@dscord/daemon 0.1.47 → 0.1.48
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/dist/chat-bridge.js +2152 -2140
- package/dist/index.js +8868 -8675
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,21 +1,48 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
const _0x54fce = _0xd0d8;
|
|
2
|
+
(function (_0x120329, _0x5da9c9) {
|
|
3
|
+
const _0x42fc3a = {
|
|
4
|
+
_0x146bb9: 0x205,
|
|
5
|
+
_0x8ced64: 0x2dc,
|
|
6
|
+
_0xd1e0d8: 0x283,
|
|
7
|
+
_0x370ed4: 0x31f,
|
|
8
|
+
_0x3d0a7c: 0x30e,
|
|
9
|
+
_0x557842: 0x203,
|
|
10
|
+
_0x542af3: 0x275,
|
|
11
|
+
_0x1b6298: 0x211
|
|
12
|
+
}, _0x6a0769 = _0xd0d8, _0x46529d = _0x120329();
|
|
7
13
|
while (!![]) {
|
|
8
14
|
try {
|
|
9
|
-
const
|
|
10
|
-
if (
|
|
15
|
+
const _0x1952c7 = parseInt(_0x6a0769(_0x42fc3a._0x146bb9)) / 0x1 + -parseInt(_0x6a0769(_0x42fc3a._0x8ced64)) / 0x2 * (-parseInt(_0x6a0769(_0x42fc3a._0xd1e0d8)) / 0x3) + -parseInt(_0x6a0769(_0x42fc3a._0x370ed4)) / 0x4 + parseInt(_0x6a0769(_0x42fc3a._0x3d0a7c)) / 0x5 * (parseInt(_0x6a0769(0x24b)) / 0x6) + -parseInt(_0x6a0769(0x2ce)) / 0x7 + -parseInt(_0x6a0769(_0x42fc3a._0x557842)) / 0x8 + parseInt(_0x6a0769(_0x42fc3a._0x542af3)) / 0x9 * (parseInt(_0x6a0769(_0x42fc3a._0x1b6298)) / 0xa);
|
|
16
|
+
if (_0x1952c7 === _0x5da9c9)
|
|
11
17
|
break;
|
|
12
18
|
else
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
19
|
+
_0x46529d['push'](_0x46529d['shift']());
|
|
20
|
+
} catch (_0x5b4909) {
|
|
21
|
+
_0x46529d['push'](_0x46529d['shift']());
|
|
16
22
|
}
|
|
17
23
|
}
|
|
18
|
-
}(
|
|
24
|
+
}(_0x2b34, 0x3f208));
|
|
25
|
+
function _0xd0d8(_0x285679, _0xd316a9) {
|
|
26
|
+
_0x285679 = _0x285679 - 0x1a1;
|
|
27
|
+
const _0x2b34c5 = _0x2b34();
|
|
28
|
+
let _0xd0d876 = _0x2b34c5[_0x285679];
|
|
29
|
+
if (_0xd0d8['CDpGUY'] === undefined) {
|
|
30
|
+
var _0x1fd57a = function (_0x48556d) {
|
|
31
|
+
const _0x401744 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
32
|
+
let _0x54f963 = '', _0x272da0 = '';
|
|
33
|
+
for (let _0x277c7e = 0x0, _0x19703f, _0x8b3d0, _0x4d623b = 0x0; _0x8b3d0 = _0x48556d['charAt'](_0x4d623b++); ~_0x8b3d0 && (_0x19703f = _0x277c7e % 0x4 ? _0x19703f * 0x40 + _0x8b3d0 : _0x8b3d0, _0x277c7e++ % 0x4) ? _0x54f963 += String['fromCharCode'](0xff & _0x19703f >> (-0x2 * _0x277c7e & 0x6)) : 0x0) {
|
|
34
|
+
_0x8b3d0 = _0x401744['indexOf'](_0x8b3d0);
|
|
35
|
+
}
|
|
36
|
+
for (let _0x21e59c = 0x0, _0x366008 = _0x54f963['length']; _0x21e59c < _0x366008; _0x21e59c++) {
|
|
37
|
+
_0x272da0 += '%' + ('00' + _0x54f963['charCodeAt'](_0x21e59c)['toString'](0x10))['slice'](-0x2);
|
|
38
|
+
}
|
|
39
|
+
return decodeURIComponent(_0x272da0);
|
|
40
|
+
};
|
|
41
|
+
_0xd0d8['GdhRpU'] = _0x1fd57a, _0xd0d8['GYeZhm'] = {}, _0xd0d8['CDpGUY'] = !![];
|
|
42
|
+
}
|
|
43
|
+
const _0x43556f = _0x2b34c5[0x0], _0x42853c = _0x285679 + _0x43556f, _0x2b711c = _0xd0d8['GYeZhm'][_0x42853c];
|
|
44
|
+
return !_0x2b711c ? (_0xd0d876 = _0xd0d8['GdhRpU'](_0xd0d876), _0xd0d8['GYeZhm'][_0x42853c] = _0xd0d876) : _0xd0d876 = _0x2b711c, _0xd0d876;
|
|
45
|
+
}
|
|
19
46
|
import { pathToFileURL } from 'node:url';
|
|
20
47
|
import {
|
|
21
48
|
mkdir,
|
|
@@ -24,2340 +51,2325 @@ import {
|
|
|
24
51
|
stat,
|
|
25
52
|
writeFile
|
|
26
53
|
} from 'node:fs/promises';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
'
|
|
31
|
-
'.gif': _0x602e11(0x1cd),
|
|
32
|
-
'.jpeg': _0x602e11(0x200),
|
|
33
|
-
'.jpg': 'image/jpeg',
|
|
34
|
-
'.json': _0x602e11(0x266),
|
|
35
|
-
'.md': _0x602e11(0x23a),
|
|
36
|
-
'.pdf': _0x602e11(0x185),
|
|
37
|
-
'.png': _0x602e11(0x21f),
|
|
38
|
-
'.svg': _0x602e11(0x28a),
|
|
39
|
-
'.txt': _0x602e11(0x26f),
|
|
40
|
-
'.webp': _0x602e11(0x213),
|
|
41
|
-
'.xml': _0x602e11(0x18b),
|
|
42
|
-
'.zip': _0x602e11(0x2c6)
|
|
43
|
-
};
|
|
44
|
-
function guessContentType(_0x4bb1d5) {
|
|
45
|
-
const _0x127565 = { _0x10cce0: 0x23b }, _0x50f537 = _0x602e11;
|
|
46
|
-
return MIME_BY_EXTENSION[_0x58a35a[_0x50f537(_0x127565._0x10cce0)](_0x4bb1d5)[_0x50f537(0x17f)]()] ?? _0x50f537(0x2e3);
|
|
47
|
-
}
|
|
48
|
-
function safeFilename(_0x3457f4) {
|
|
49
|
-
const _0x42b6ec = { _0x2a155b: 0x244 }, _0x5e9300 = _0x602e11;
|
|
50
|
-
return _0x3457f4[_0x5e9300(_0x42b6ec._0x2a155b)](/[\\/]/g, '-');
|
|
51
|
-
}
|
|
52
|
-
function extensionFor(_0x3ae0ae) {
|
|
53
|
-
const _0x3ba431 = { _0xd9e830: 0x2fa }, _0x3cb274 = _0x602e11, _0x163f51 = Object['entries'](MIME_BY_EXTENSION)[_0x3cb274(0x268)](([, _0x3bef55]) => _0x3bef55 === _0x3ae0ae);
|
|
54
|
-
return _0x163f51?.[0x0] ?? _0x3cb274(_0x3ba431._0xd9e830);
|
|
55
|
-
}
|
|
56
|
-
async function prepareUploadFile(_0x1387e6, _0x33408e = {}) {
|
|
57
|
-
const _0x294646 = {
|
|
58
|
-
_0x27472d: 0x272,
|
|
59
|
-
_0x13cdc8: 0x26a,
|
|
60
|
-
_0x1eeb2d: 0x18a,
|
|
61
|
-
_0x5564c9: 0x251
|
|
62
|
-
}, _0x27114c = _0x602e11;
|
|
63
|
-
if (!_0x58a35a[_0x27114c(_0x294646._0x27472d)](_0x1387e6))
|
|
64
|
-
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
65
|
-
const _0x595bdb = await stat(_0x1387e6)[_0x27114c(0x1ac)](() => null);
|
|
66
|
-
if (!_0x595bdb || !_0x595bdb['isFile']())
|
|
67
|
-
throw new Error('File\x20not\x20found:\x20' + _0x1387e6);
|
|
68
|
-
const _0x734309 = _0x33408e[_0x27114c(_0x294646._0x13cdc8)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
69
|
-
if (_0x595bdb[_0x27114c(_0x294646._0x1eeb2d)] > _0x734309)
|
|
70
|
-
throw new Error(_0x27114c(0x249) + _0x595bdb[_0x27114c(_0x294646._0x1eeb2d)]);
|
|
71
|
-
const _0x38e0fb = await readFile(_0x1387e6), _0x3e1e6b = _0x58a35a[_0x27114c(_0x294646._0x5564c9)](_0x1387e6);
|
|
72
|
-
return {
|
|
73
|
-
'contentBase64': _0x38e0fb['toString'](_0x27114c(0x2f8)),
|
|
74
|
-
'contentType': guessContentType(_0x3e1e6b),
|
|
75
|
-
'filename': _0x3e1e6b,
|
|
76
|
-
'sizeBytes': _0x595bdb[_0x27114c(0x18a)]
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function _0xd828(_0x42b5b4, _0x2103a9) {
|
|
80
|
-
_0x42b5b4 = _0x42b5b4 - 0x178;
|
|
81
|
-
const _0x511f14 = _0x511f();
|
|
82
|
-
let _0xd8282 = _0x511f14[_0x42b5b4];
|
|
83
|
-
if (_0xd828['aTBise'] === undefined) {
|
|
84
|
-
var _0x20778a = function (_0x2577a6) {
|
|
85
|
-
const _0x5a3167 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
86
|
-
let _0x58a35a = '', _0x4bb1d5 = '';
|
|
87
|
-
for (let _0x3457f4 = 0x0, _0x3ae0ae, _0x163f51, _0x3bef55 = 0x0; _0x163f51 = _0x2577a6['charAt'](_0x3bef55++); ~_0x163f51 && (_0x3ae0ae = _0x3457f4 % 0x4 ? _0x3ae0ae * 0x40 + _0x163f51 : _0x163f51, _0x3457f4++ % 0x4) ? _0x58a35a += String['fromCharCode'](0xff & _0x3ae0ae >> (-0x2 * _0x3457f4 & 0x6)) : 0x0) {
|
|
88
|
-
_0x163f51 = _0x5a3167['indexOf'](_0x163f51);
|
|
89
|
-
}
|
|
90
|
-
for (let _0x1387e6 = 0x0, _0x33408e = _0x58a35a['length']; _0x1387e6 < _0x33408e; _0x1387e6++) {
|
|
91
|
-
_0x4bb1d5 += '%' + ('00' + _0x58a35a['charCodeAt'](_0x1387e6)['toString'](0x10))['slice'](-0x2);
|
|
92
|
-
}
|
|
93
|
-
return decodeURIComponent(_0x4bb1d5);
|
|
94
|
-
};
|
|
95
|
-
_0xd828['sMFrzy'] = _0x20778a, _0xd828['hGvcIs'] = {}, _0xd828['aTBise'] = !![];
|
|
96
|
-
}
|
|
97
|
-
const _0x2cf28b = _0x511f14[0x0], _0x38d5d1 = _0x42b5b4 + _0x2cf28b, _0x1bcc5f = _0xd828['hGvcIs'][_0x38d5d1];
|
|
98
|
-
return !_0x1bcc5f ? (_0xd8282 = _0xd828['sMFrzy'](_0xd8282), _0xd828['hGvcIs'][_0x38d5d1] = _0xd8282) : _0xd8282 = _0x1bcc5f, _0xd8282;
|
|
99
|
-
}
|
|
100
|
-
function createAttachmentCache(_0x3b5468 = {}) {
|
|
101
|
-
const _0x8a2767 = { _0x1c74f1: 0x229 }, _0x43e546 = {
|
|
102
|
-
_0x392f4a: 0x1b9,
|
|
103
|
-
_0x43dd48: 0x280,
|
|
104
|
-
_0x219b56: 0x282
|
|
105
|
-
}, _0x82e148 = _0x602e11, _0x13fb6d = _0x3b5468[_0x82e148(_0x8a2767._0x1c74f1)] ?? _0x58a35a[_0x82e148(0x2ed)](homedir(), _0x82e148(0x209), 'attachments');
|
|
106
|
-
return {
|
|
107
|
-
'cacheDir': _0x13fb6d,
|
|
108
|
-
async 'findCachedPath'(_0x8f3d55) {
|
|
109
|
-
const _0x12852c = _0x82e148;
|
|
110
|
-
await mkdir(_0x13fb6d, { 'recursive': !![] });
|
|
111
|
-
const _0xed31c6 = await readdir(_0x13fb6d), _0x43dad0 = _0xed31c6[_0x12852c(0x268)](_0x13d0f1 => _0x13d0f1[_0x12852c(0x270)](_0x8f3d55 + '-') || _0x13d0f1[_0x12852c(0x270)](_0x8f3d55));
|
|
112
|
-
return _0x43dad0 ? _0x58a35a['join'](_0x13fb6d, _0x43dad0) : null;
|
|
113
|
-
},
|
|
114
|
-
async 'save'(_0x250ab0) {
|
|
115
|
-
const _0x11f135 = _0x82e148;
|
|
116
|
-
await mkdir(_0x13fb6d, { 'recursive': !![] });
|
|
117
|
-
const _0x21f788 = _0x250ab0[_0x11f135(_0x43e546._0x392f4a)]?.[_0x11f135(0x1cf)]() ? safeFilename(_0x250ab0[_0x11f135(0x1b9)]) : '' + _0x250ab0[_0x11f135(0x280)] + extensionFor(_0x250ab0['contentType']), _0x1ef810 = _0x58a35a[_0x11f135(0x2ed)](_0x13fb6d, _0x250ab0[_0x11f135(_0x43e546._0x43dd48)] + '-' + _0x21f788);
|
|
118
|
-
return await writeFile(_0x1ef810, _0x250ab0[_0x11f135(_0x43e546._0x219b56)]), _0x1ef810;
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
import {
|
|
123
|
-
createHash,
|
|
124
|
-
randomUUID
|
|
125
|
-
} from 'node:crypto';
|
|
126
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x602e11(0x227);
|
|
127
|
-
function ensureSegment(_0x4d43c8) {
|
|
128
|
-
const _0x25c696 = { _0x2389bd: 0x199 }, _0x14a96e = _0x602e11, _0xb2b63c = _0x4d43c8['trim']();
|
|
129
|
-
if (!_0xb2b63c || _0xb2b63c[_0x14a96e(_0x25c696._0x2389bd)](':'))
|
|
130
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
131
|
-
return _0xb2b63c;
|
|
132
|
-
}
|
|
133
|
-
function parseThreadParts(_0x2c731b) {
|
|
134
|
-
const _0x11ba9b = _0x602e11, _0x542dca = _0x2c731b['split'](':');
|
|
135
|
-
if (_0x542dca[_0x11ba9b(0x235)] < 0x1 || _0x542dca['length'] > 0x2)
|
|
136
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
137
|
-
return {
|
|
138
|
-
'channelName': ensureSegment(_0x542dca[0x0] ?? ''),
|
|
139
|
-
'threadShortId': _0x542dca[0x1] ? ensureSegment(_0x542dca[0x1]) : null
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function parseTarget(_0x545b91) {
|
|
143
|
-
const _0xd6ac97 = {
|
|
144
|
-
_0xaf4544: 0x270,
|
|
145
|
-
_0x1ddc5d: 0x192,
|
|
146
|
-
_0x12e66a: 0x1aa,
|
|
147
|
-
_0x2d3344: 0x2dd,
|
|
148
|
-
_0x587579: 0x29d,
|
|
149
|
-
_0x29d629: 0x1f4,
|
|
150
|
-
_0x290eaf: 0x29d,
|
|
151
|
-
_0x1cac6d: 0x192,
|
|
152
|
-
_0x3ed64b: 0x2dd,
|
|
153
|
-
_0x1024fa: 0x1fe
|
|
154
|
-
}, _0xdd58dd = _0x602e11, _0x1cbbd4 = _0x545b91['trim']();
|
|
155
|
-
if (!_0x1cbbd4)
|
|
156
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
157
|
-
if (_0x1cbbd4[_0xdd58dd(_0xd6ac97._0xaf4544)]('#')) {
|
|
158
|
-
const _0x31b2bc = parseThreadParts(_0x1cbbd4[_0xdd58dd(0x1c5)](0x1)), _0x2bebf8 = '#' + _0x31b2bc[_0xdd58dd(_0xd6ac97._0x1ddc5d)];
|
|
159
|
-
if (!_0x31b2bc[_0xdd58dd(0x1fe)])
|
|
160
|
-
return {
|
|
161
|
-
'channelName': _0x31b2bc[_0xdd58dd(0x192)],
|
|
162
|
-
'channelTarget': _0x2bebf8,
|
|
163
|
-
'kind': _0xdd58dd(_0xd6ac97._0x12e66a),
|
|
164
|
-
'target': _0x2bebf8
|
|
165
|
-
};
|
|
166
|
-
return {
|
|
167
|
-
'channelName': _0x31b2bc['channelName'],
|
|
168
|
-
'channelTarget': _0x2bebf8,
|
|
169
|
-
'kind': _0xdd58dd(_0xd6ac97._0x2d3344),
|
|
170
|
-
'target': _0x2bebf8 + ':' + _0x31b2bc['threadShortId'],
|
|
171
|
-
'threadShortId': _0x31b2bc['threadShortId']
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
if (_0x1cbbd4[_0xdd58dd(_0xd6ac97._0xaf4544)](_0xdd58dd(_0xd6ac97._0x587579))) {
|
|
175
|
-
const _0x293500 = parseThreadParts(_0x1cbbd4['slice'](0x3));
|
|
176
|
-
if (!_0x293500[_0xdd58dd(0x192)][_0xdd58dd(0x270)](_0xdd58dd(_0xd6ac97._0x29d629)))
|
|
177
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
178
|
-
const _0x1f4c00 = _0xdd58dd(_0xd6ac97._0x290eaf) + _0x293500[_0xdd58dd(0x192)];
|
|
179
|
-
if (!_0x293500[_0xdd58dd(0x1fe)])
|
|
180
|
-
return {
|
|
181
|
-
'channelName': _0x293500[_0xdd58dd(_0xd6ac97._0x1cac6d)],
|
|
182
|
-
'channelTarget': _0x1f4c00,
|
|
183
|
-
'kind': _0xdd58dd(0x1aa),
|
|
184
|
-
'target': _0x1f4c00
|
|
185
|
-
};
|
|
186
|
-
return {
|
|
187
|
-
'channelName': _0x293500['channelName'],
|
|
188
|
-
'channelTarget': _0x1f4c00,
|
|
189
|
-
'kind': _0xdd58dd(_0xd6ac97._0x3ed64b),
|
|
190
|
-
'target': _0x1f4c00 + ':' + _0x293500[_0xdd58dd(_0xd6ac97._0x1024fa)],
|
|
191
|
-
'threadShortId': _0x293500[_0xdd58dd(0x1fe)]
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
195
|
-
}
|
|
196
|
-
function asErrorMessage(_0x429d78, _0x2978c6) {
|
|
197
|
-
const _0x357820 = {
|
|
198
|
-
_0x5b5bb3: 0x1e0,
|
|
199
|
-
_0x502a73: 0x1cf
|
|
200
|
-
}, _0x3af4a8 = _0x602e11;
|
|
201
|
-
if (typeof _0x429d78 === _0x3af4a8(_0x357820._0x5b5bb3) && _0x429d78[_0x3af4a8(_0x357820._0x502a73)]())
|
|
202
|
-
return _0x429d78;
|
|
203
|
-
return _0x2978c6;
|
|
204
|
-
}
|
|
205
|
-
function asRecord(_0x2c1d7a) {
|
|
206
|
-
return typeof _0x2c1d7a === 'object' && _0x2c1d7a !== null ? _0x2c1d7a : {};
|
|
207
|
-
}
|
|
208
|
-
function stableStringify(_0x412221) {
|
|
209
|
-
const _0x3bc538 = {
|
|
210
|
-
_0xab719a: 0x1fd,
|
|
211
|
-
_0x16c7bd: 0x1fd
|
|
212
|
-
}, _0x436748 = _0x602e11;
|
|
213
|
-
if (_0x412221 === null || typeof _0x412221 !== _0x436748(0x2d9))
|
|
214
|
-
return JSON[_0x436748(0x234)](_0x412221);
|
|
215
|
-
if (Array['isArray'](_0x412221))
|
|
216
|
-
return '[' + _0x412221[_0x436748(_0x3bc538._0xab719a)](_0x143f9d => stableStringify(_0x143f9d))[_0x436748(0x2ed)](',') + ']';
|
|
217
|
-
const _0x54bd2a = Object['entries'](_0x412221)[_0x436748(0x189)](([, _0x1142d2]) => _0x1142d2 !== void 0x0)[_0x436748(0x1e7)](([_0x46fb23], [_0x48b67c]) => _0x46fb23[_0x436748(0x1e9)](_0x48b67c))[_0x436748(_0x3bc538._0x16c7bd)](([_0x5c5d23, _0x5503c2]) => JSON[_0x436748(0x234)](_0x5c5d23) + ':' + stableStringify(_0x5503c2));
|
|
218
|
-
return '{' + _0x54bd2a[_0x436748(0x2ed)](',') + '}';
|
|
219
|
-
}
|
|
220
|
-
function createHeaders(_0x30df3f) {
|
|
221
|
-
const _0x53ed29 = _0x602e11;
|
|
222
|
-
return {
|
|
223
|
-
'Content-Type': _0x53ed29(0x266),
|
|
224
|
-
'x-daemon-api-key': _0x30df3f
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
function toHttpBaseUrl(_0x14b908) {
|
|
228
|
-
const _0x28b722 = {
|
|
229
|
-
_0x3f3a36: 0x1b5,
|
|
230
|
-
_0x4e8a5f: 0x244
|
|
231
|
-
}, _0x32a36a = _0x602e11, _0x48d90b = new URL(_0x14b908);
|
|
232
|
-
if (_0x48d90b[_0x32a36a(0x1f0)] === _0x32a36a(0x1b7))
|
|
233
|
-
_0x48d90b['protocol'] = _0x32a36a(_0x28b722._0x3f3a36);
|
|
234
|
-
else
|
|
235
|
-
_0x48d90b['protocol'] === 'wss:' && (_0x48d90b[_0x32a36a(0x1f0)] = _0x32a36a(0x1a1));
|
|
236
|
-
return _0x48d90b['toString']()[_0x32a36a(_0x28b722._0x4e8a5f)](/\/$/, '');
|
|
237
|
-
}
|
|
238
|
-
function isMentionBoundary(_0x43c8bb) {
|
|
239
|
-
const _0x2cb8c = { _0x403c9b: 0x202 }, _0x1b184d = _0x602e11;
|
|
240
|
-
return !_0x43c8bb || /\s|[([{'",。!?、:;]/[_0x1b184d(_0x2cb8c._0x403c9b)](_0x43c8bb);
|
|
241
|
-
}
|
|
242
|
-
function isMentionTerminal(_0x2495fd) {
|
|
243
|
-
const _0x50a2eb = _0x602e11;
|
|
244
|
-
return !_0x2495fd || /\s|[)\]}'",。!?、:;,.!?]/[_0x50a2eb(0x202)](_0x2495fd);
|
|
245
|
-
}
|
|
246
|
-
function buildMatchableEntries(_0x5e81e5) {
|
|
247
|
-
const _0x12cae0 = {
|
|
248
|
-
_0x13b4a7: 0x19a,
|
|
249
|
-
_0x2c298c: 0x2c3,
|
|
250
|
-
_0x38b7cb: 0x2ef
|
|
251
|
-
}, _0x344bfa = _0x602e11, _0x1b6130 = [];
|
|
252
|
-
for (const _0x4671d1 of [
|
|
253
|
-
..._0x5e81e5[_0x344bfa(0x25b)],
|
|
254
|
-
..._0x5e81e5['humans']
|
|
255
|
-
]) {
|
|
256
|
-
_0x1b6130[_0x344bfa(0x2ef)]({
|
|
257
|
-
'matchName': _0x4671d1[_0x344bfa(0x2c3)],
|
|
258
|
-
'matchNameLower': _0x4671d1[_0x344bfa(0x2c3)][_0x344bfa(_0x12cae0._0x13b4a7)](),
|
|
259
|
-
'participantId': _0x4671d1['id']
|
|
260
|
-
}), _0x4671d1['id'] !== _0x4671d1[_0x344bfa(_0x12cae0._0x2c298c)] && _0x1b6130[_0x344bfa(_0x12cae0._0x38b7cb)]({
|
|
261
|
-
'matchName': _0x4671d1['id'],
|
|
262
|
-
'matchNameLower': _0x4671d1['id'][_0x344bfa(_0x12cae0._0x13b4a7)](),
|
|
263
|
-
'participantId': _0x4671d1['id']
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
return _0x1b6130;
|
|
267
|
-
}
|
|
268
|
-
function extractMentionedParticipantIds(_0x239ecc, _0x10fa00) {
|
|
269
|
-
const _0x49ad05 = {
|
|
270
|
-
_0x1bffce: 0x1e7,
|
|
271
|
-
_0x8b1141: 0x235,
|
|
272
|
-
_0x4521b4: 0x268,
|
|
273
|
-
_0x2c3b97: 0x2d0,
|
|
274
|
-
_0x37c65a: 0x2ef
|
|
275
|
-
}, _0x1f2cde = { _0xc89654: 0x270 }, _0x3f4636 = _0x602e11, _0xaec79e = buildMatchableEntries(_0x10fa00)[_0x3f4636(_0x49ad05._0x1bffce)]((_0x18f034, _0xe58b63) => _0xe58b63['matchName'][_0x3f4636(0x235)] - _0x18f034['matchName'][_0x3f4636(0x235)]), _0x41593e = [], _0x27c073 = new Set();
|
|
276
|
-
for (let _0x31d0bc = 0x0; _0x31d0bc < _0x239ecc[_0x3f4636(_0x49ad05._0x8b1141)]; _0x31d0bc += 0x1) {
|
|
277
|
-
if (_0x239ecc[_0x31d0bc] !== '@' || !isMentionBoundary(_0x239ecc[_0x31d0bc - 0x1]))
|
|
278
|
-
continue;
|
|
279
|
-
const _0x415f4c = _0x239ecc['slice'](_0x31d0bc + 0x1), _0x1cc54b = _0x415f4c[_0x3f4636(0x19a)](), _0x5171e3 = _0xaec79e[_0x3f4636(_0x49ad05._0x4521b4)](_0x518b9e => {
|
|
280
|
-
const _0x142840 = _0x3f4636;
|
|
281
|
-
if (!_0x1cc54b[_0x142840(_0x1f2cde._0xc89654)](_0x518b9e[_0x142840(0x182)]))
|
|
282
|
-
return ![];
|
|
283
|
-
return isMentionTerminal(_0x415f4c[_0x518b9e[_0x142840(0x24d)][_0x142840(0x235)]]);
|
|
284
|
-
});
|
|
285
|
-
if (!_0x5171e3 || _0x27c073[_0x3f4636(0x2ab)](_0x5171e3['participantId']))
|
|
286
|
-
continue;
|
|
287
|
-
_0x27c073[_0x3f4636(_0x49ad05._0x2c3b97)](_0x5171e3['participantId']), _0x41593e[_0x3f4636(_0x49ad05._0x37c65a)](_0x5171e3[_0x3f4636(0x2a8)]), _0x31d0bc += _0x5171e3['matchName']['length'];
|
|
288
|
-
}
|
|
289
|
-
return _0x41593e;
|
|
290
|
-
}
|
|
291
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
292
|
-
function anySignal(..._0x24e5ba) {
|
|
293
|
-
const _0x580389 = {
|
|
294
|
-
_0x51b887: 0x1df,
|
|
295
|
-
_0x222319: 0x29c,
|
|
296
|
-
_0x25f588: 0x2db
|
|
297
|
-
}, _0x2561cd = _0x602e11, _0x52cebe = new AbortController();
|
|
298
|
-
for (const _0x57ae0f of _0x24e5ba) {
|
|
299
|
-
if (_0x57ae0f[_0x2561cd(_0x580389._0x51b887)])
|
|
300
|
-
return _0x52cebe[_0x2561cd(0x304)](_0x57ae0f[_0x2561cd(_0x580389._0x222319)]), _0x52cebe[_0x2561cd(_0x580389._0x25f588)];
|
|
301
|
-
_0x57ae0f[_0x2561cd(0x18e)](_0x2561cd(0x304), () => _0x52cebe[_0x2561cd(0x304)](_0x57ae0f['reason']), {
|
|
302
|
-
'once': !![],
|
|
303
|
-
'signal': _0x52cebe[_0x2561cd(_0x580389._0x25f588)]
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
return _0x52cebe[_0x2561cd(0x2db)];
|
|
307
|
-
}
|
|
308
|
-
function createInternalAgentClient(_0x21a809) {
|
|
309
|
-
const _0x53cc9a = {
|
|
310
|
-
_0x5d8679: 0x188,
|
|
311
|
-
_0x39545f: 0x24a,
|
|
312
|
-
_0xeda1e6: 0x274,
|
|
313
|
-
_0x353fc2: 0x17a
|
|
314
|
-
}, _0x4f1608 = {
|
|
315
|
-
_0x54759c: 0x1b0,
|
|
316
|
-
_0x1f67e9: 0x292,
|
|
317
|
-
_0x157fa6: 0x2f1,
|
|
318
|
-
_0x55ec71: 0x189,
|
|
319
|
-
_0x3aca21: 0x1fd,
|
|
320
|
-
_0x47dd2a: 0x198,
|
|
321
|
-
_0x349c5f: 0x283,
|
|
322
|
-
_0x45c178: 0x1e0,
|
|
323
|
-
_0x3dd466: 0x21a,
|
|
324
|
-
_0x36b09a: 0x1ee,
|
|
325
|
-
_0x6b3b98: 0x2b2,
|
|
326
|
-
_0x1082ce: 0x1bf,
|
|
327
|
-
_0xdadafa: 0x198,
|
|
328
|
-
_0x23de31: 0x2c3,
|
|
329
|
-
_0x52b21b: 0x2a5,
|
|
330
|
-
_0x4e0b7e: 0x29d,
|
|
331
|
-
_0x3705aa: 0x235,
|
|
332
|
-
_0x199332: 0x1fd,
|
|
333
|
-
_0x3a9483: 0x198,
|
|
334
|
-
_0x51f5cb: 0x2ef,
|
|
335
|
-
_0x579d40: 0x2f5,
|
|
336
|
-
_0x4e70d6: 0x2a5,
|
|
337
|
-
_0x10d283: 0x184,
|
|
338
|
-
_0x2c3bb4: 0x2a0,
|
|
339
|
-
_0x4341b6: 0x25f,
|
|
340
|
-
_0x418ace: 0x20b,
|
|
341
|
-
_0x185bac: 0x2ef
|
|
342
|
-
}, _0x75045f = {
|
|
343
|
-
_0x130c75: 0x1af,
|
|
344
|
-
_0x21ed09: 0x2f3
|
|
345
|
-
}, _0x2ba9bd = {
|
|
346
|
-
_0x27a1eb: 0x1a4,
|
|
347
|
-
_0x154eb2: 0x1b0,
|
|
348
|
-
_0x17031c: 0x252,
|
|
349
|
-
_0x732f32: 0x2ae,
|
|
350
|
-
_0x2a4f59: 0x282,
|
|
351
|
-
_0xf5a0a7: 0x2e3,
|
|
352
|
-
_0x58b46e: 0x265,
|
|
353
|
-
_0x2403a0: 0x282
|
|
354
|
-
}, _0x158f75 = {
|
|
355
|
-
_0x53419b: 0x1aa,
|
|
356
|
-
_0x2e51ec: 0x2e9,
|
|
357
|
-
_0x442389: 0x210,
|
|
358
|
-
_0xb87cf2: 0x204,
|
|
359
|
-
_0x61ce5a: 0x269,
|
|
360
|
-
_0x14c2a2: 0x282,
|
|
361
|
-
_0x2cccc9: 0x291
|
|
362
|
-
}, _0x47b932 = {
|
|
363
|
-
_0x2a113f: 0x210,
|
|
364
|
-
_0x31e796: 0x204,
|
|
365
|
-
_0x305da9: 0x1c4
|
|
366
|
-
}, _0x2d0a36 = { _0x4d77ac: 0x29e }, _0x421d21 = {
|
|
367
|
-
_0x23e19b: 0x234,
|
|
368
|
-
_0x59004e: 0x29e
|
|
369
|
-
}, _0x20110d = {
|
|
370
|
-
_0x59d540: 0x204,
|
|
371
|
-
_0x2a294e: 0x234
|
|
372
|
-
}, _0x22f9c6 = {
|
|
373
|
-
_0x15999b: 0x2b2,
|
|
374
|
-
_0x7faadb: 0x2ae
|
|
375
|
-
}, _0x503968 = {
|
|
376
|
-
_0x596300: 0x2a1,
|
|
377
|
-
_0x4000ff: 0x253,
|
|
378
|
-
_0x539dcd: 0x231,
|
|
379
|
-
_0x532a70: 0x29e
|
|
380
|
-
}, _0x3fc82e = {
|
|
381
|
-
_0x34d7c2: 0x2f6,
|
|
382
|
-
_0x548b4f: 0x2a1,
|
|
383
|
-
_0xf1b54d: 0x234,
|
|
384
|
-
_0x13478b: 0x282
|
|
385
|
-
}, _0x76d3b4 = {
|
|
386
|
-
_0x1f8d17: 0x29e,
|
|
387
|
-
_0x507268: 0x282
|
|
388
|
-
}, _0x4aa387 = {
|
|
389
|
-
_0x5ba3ea: 0x2c8,
|
|
390
|
-
_0x338494: 0x282
|
|
391
|
-
}, _0x241e2c = {
|
|
392
|
-
_0x315843: 0x2f3,
|
|
393
|
-
_0x4c6f91: 0x199,
|
|
394
|
-
_0x51b6f2: 0x204,
|
|
395
|
-
_0x3107eb: 0x22d,
|
|
396
|
-
_0x501cd5: 0x283,
|
|
397
|
-
_0x2ad42d: 0x235,
|
|
398
|
-
_0x1a8d4f: 0x2e9,
|
|
399
|
-
_0x21287c: 0x279,
|
|
400
|
-
_0x1c21da: 0x29e
|
|
401
|
-
}, _0x350b96 = {
|
|
402
|
-
_0x5adb91: 0x2b2,
|
|
403
|
-
_0xb389b5: 0x2e9,
|
|
404
|
-
_0x5655c1: 0x1af,
|
|
405
|
-
_0x3d7904: 0x292,
|
|
406
|
-
_0x22529a: 0x277,
|
|
407
|
-
_0x159d06: 0x210,
|
|
408
|
-
_0xb3fb96: 0x1f2,
|
|
409
|
-
_0x206727: 0x282,
|
|
410
|
-
_0x139def: 0x1fd,
|
|
411
|
-
_0x4a813f: 0x2c7,
|
|
412
|
-
_0x43278a: 0x2e2
|
|
413
|
-
}, _0x35cb42 = {
|
|
414
|
-
_0x2b9d0d: 0x1ab,
|
|
415
|
-
_0x182f4d: 0x2c3
|
|
416
|
-
}, _0x267f5e = {
|
|
417
|
-
_0x3bc389: 0x2a8,
|
|
418
|
-
_0x287218: 0x2a8
|
|
419
|
-
}, _0x33932c = {
|
|
420
|
-
_0x29639c: 0x2a5,
|
|
421
|
-
_0x2c18a1: 0x2dd,
|
|
422
|
-
_0x2643b1: 0x2c7,
|
|
423
|
-
_0x3feae5: 0x1fe,
|
|
424
|
-
_0x2f3a95: 0x270,
|
|
425
|
-
_0x387d93: 0x2e9,
|
|
426
|
-
_0x574bc0: 0x2e9,
|
|
427
|
-
_0x2da418: 0x1fe
|
|
428
|
-
}, _0x3b5718 = {
|
|
429
|
-
_0x593a9f: 0x2c7,
|
|
430
|
-
_0x2e7978: 0x18f
|
|
431
|
-
}, _0x349605 = { _0x3ae278: 0x26d }, _0x41529f = {
|
|
432
|
-
_0x1accd3: 0x1ea,
|
|
433
|
-
_0x35a9fa: 0x1fd,
|
|
434
|
-
_0x40acde: 0x189,
|
|
435
|
-
_0x552871: 0x282,
|
|
436
|
-
_0x21c283: 0x245
|
|
437
|
-
}, _0x44f9a2 = {
|
|
438
|
-
_0x585826: 0x210,
|
|
439
|
-
_0x5f3e69: 0x29e,
|
|
440
|
-
_0x39f829: 0x282,
|
|
441
|
-
_0x2907b7: 0x1a3,
|
|
442
|
-
_0x1ea1e6: 0x282,
|
|
443
|
-
_0x5f1b79: 0x21a
|
|
444
|
-
}, _0xd41166 = {
|
|
445
|
-
_0x865dc5: 0x266,
|
|
446
|
-
_0x171e08: 0x29e
|
|
447
|
-
}, _0x1de3cf = {
|
|
448
|
-
_0x284247: 0x179,
|
|
449
|
-
_0x55ce03: 0x2de
|
|
450
|
-
}, _0x4fe39b = {
|
|
451
|
-
_0x5af10f: 0x2db,
|
|
452
|
-
_0xadbcee: 0x252,
|
|
453
|
-
_0x57cdae: 0x2ae
|
|
454
|
-
}, _0x5beecc = { _0x5ecd9d: 0x252 }, _0x32d59d = {
|
|
455
|
-
_0x5de18d: 0x23f,
|
|
456
|
-
_0x2fe312: 0x1e0,
|
|
457
|
-
_0x1f9ff2: 0x1cf,
|
|
458
|
-
_0x498ead: 0x1ba,
|
|
459
|
-
_0x414ba3: 0x2b4,
|
|
460
|
-
_0x688c9e: 0x2b5,
|
|
461
|
-
_0x455ca8: 0x1fa,
|
|
462
|
-
_0x526c97: 0x20f,
|
|
463
|
-
_0x443886: 0x2b2
|
|
464
|
-
}, _0x521425 = {
|
|
465
|
-
_0x2327ee: 0x265,
|
|
466
|
-
_0x40cb76: 0x1d6,
|
|
467
|
-
_0x5eb5d5: 0x1f2,
|
|
468
|
-
_0x6b5a93: 0x26e
|
|
469
|
-
}, _0x132b0a = {
|
|
470
|
-
_0x24cad5: 0x1f9,
|
|
471
|
-
_0x3aa3c6: 0x1cf,
|
|
472
|
-
_0x3285cb: 0x244,
|
|
473
|
-
_0x1323df: 0x303,
|
|
474
|
-
_0x1637e0: 0x295,
|
|
475
|
-
_0xbad63f: 0x1b4,
|
|
476
|
-
_0x596d0f: 0x2ae,
|
|
477
|
-
_0x30c1af: 0x296,
|
|
478
|
-
_0x3fa014: 0x1c9
|
|
479
|
-
}, _0x2e7ca6 = _0x602e11, _0x2197a7 = _0x21a809[_0x2e7ca6(0x21b)] ?? fetch, _0x2effb9 = _0x21a809[_0x2e7ca6(_0x53cc9a._0x5d8679)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x378d16 = typeof _0x21a809['initialLastSeenSeq'] === _0x2e7ca6(0x2e8) && _0x21a809[_0x2e7ca6(_0x53cc9a._0x39545f)] > 0x0 ? _0x21a809[_0x2e7ca6(0x24a)] : 0x0, _0x1325de = _0x21a809['daemonLocalUrl']?.[_0x2e7ca6(0x1cf)]() || void 0x0, _0x2c8033 = _0x21a809['sessionId']?.[_0x2e7ca6(0x1cf)]() || void 0x0, _0x115e71 = _0x21a809['workerModeEnabled'] === !![], _0x9b2cc6 = _0x21a809['workerSessionId']?.[_0x2e7ca6(0x1cf)]() || void 0x0, _0x29ee68 = _0x21a809[_0x2e7ca6(_0x53cc9a._0xeda1e6)]?.[_0x2e7ca6(0x1cf)]() || void 0x0, _0x5c7a99 = createHeaders(_0x21a809[_0x2e7ca6(_0x53cc9a._0x353fc2)]), _0x507360 = toHttpBaseUrl(_0x21a809['serverUrl']);
|
|
480
|
-
let _0x20ce0c = null;
|
|
481
|
-
const _0x2a3fc1 = new Map();
|
|
482
|
-
let _0x4e7d37 = _0x378d16, _0x2172ac = _0x378d16;
|
|
483
|
-
function _0x2c4524(_0xe7b9b7) {
|
|
484
|
-
const _0x26b255 = _0x2e7ca6, _0x198825 = _0xe7b9b7['response'][_0x26b255(0x23e)]['get'](_0x26b255(0x2b0)) ?? _0x26b255(_0x132b0a._0x24cad5), _0x56cb6c = _0xe7b9b7['bodyText'][_0x26b255(_0x132b0a._0x3aa3c6)]()[_0x26b255(_0x132b0a._0x3285cb)](/\s+/g, '\x20')[_0x26b255(0x1c5)](0x0, 0x78) || _0x26b255(_0x132b0a._0x1323df);
|
|
485
|
-
return _0x26b255(_0x132b0a._0x1637e0) + _0xe7b9b7[_0x26b255(0x1c2)] + _0x26b255(0x2a7) + _0xe7b9b7[_0x26b255(_0x132b0a._0xbad63f)][_0x26b255(_0x132b0a._0x596d0f)] + _0x26b255(0x1ca) + _0x198825 + _0x26b255(_0x132b0a._0x30c1af) + _0x56cb6c + _0x26b255(_0x132b0a._0x3fa014);
|
|
486
|
-
}
|
|
487
|
-
async function _0x5aa6eb(_0x34ee0f, _0x1ca4e8) {
|
|
488
|
-
const _0x4f209f = _0x2e7ca6, _0x301109 = Buffer[_0x4f209f(_0x521425._0x2327ee)](await _0x1ca4e8[_0x4f209f(_0x521425._0x40cb76)]())[_0x4f209f(_0x521425._0x5eb5d5)](_0x4f209f(0x27c));
|
|
489
|
-
if (!_0x301109[_0x4f209f(0x1cf)]())
|
|
490
|
-
return {};
|
|
491
|
-
try {
|
|
492
|
-
return JSON[_0x4f209f(_0x521425._0x6b5a93)](_0x301109);
|
|
493
|
-
} catch {
|
|
494
|
-
throw new Error(_0x2c4524({
|
|
495
|
-
'bodyText': _0x301109,
|
|
496
|
-
'requestUrl': _0x34ee0f,
|
|
497
|
-
'response': _0x1ca4e8
|
|
498
|
-
}));
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
function _0x22f906(_0x3084a7, _0x249efa) {
|
|
502
|
-
const _0x3516c7 = _0x2e7ca6, _0xa7cccd = typeof _0x249efa[_0x3516c7(_0x32d59d._0x5de18d)] === _0x3516c7(_0x32d59d._0x2fe312) ? _0x249efa['idempotency_key'][_0x3516c7(_0x32d59d._0x1f9ff2)]() : '';
|
|
503
|
-
if (_0xa7cccd)
|
|
504
|
-
return _0xa7cccd;
|
|
505
|
-
const _0x1c20d0 = Date[_0x3516c7(_0x32d59d._0x498ead)]();
|
|
506
|
-
for (const [_0x329dbb, _0x27f387] of _0x2a3fc1) {
|
|
507
|
-
_0x27f387[_0x3516c7(_0x32d59d._0x414ba3)] <= _0x1c20d0 && _0x2a3fc1['delete'](_0x329dbb);
|
|
508
|
-
}
|
|
509
|
-
const _0x2ea5a1 = {
|
|
510
|
-
..._0x249efa,
|
|
511
|
-
'idempotency_key': void 0x0
|
|
512
|
-
}, _0x3b56aa = createHash(_0x3516c7(0x1ec))[_0x3516c7(_0x32d59d._0x688c9e)](_0x3084a7 + ':' + stableStringify(_0x2ea5a1))['digest']('hex'), _0x46d122 = _0x3084a7 + ':' + _0x3b56aa, _0x2e866f = _0x2a3fc1[_0x3516c7(_0x32d59d._0x455ca8)](_0x46d122);
|
|
513
|
-
if (_0x2e866f)
|
|
514
|
-
return _0x2e866f[_0x3516c7(0x1e3)];
|
|
515
|
-
const _0x22da68 = _0x3516c7(_0x32d59d._0x526c97) + _0x3084a7 + ':' + randomUUID();
|
|
516
|
-
return _0x2a3fc1[_0x3516c7(_0x32d59d._0x443886)](_0x46d122, {
|
|
517
|
-
'expiresAt': _0x1c20d0 + 0x5 * 0x3c * 0x3e8,
|
|
518
|
-
'value': _0x22da68
|
|
519
|
-
}), _0x22da68;
|
|
520
|
-
}
|
|
521
|
-
async function _0x2d8706(_0x21b658, _0x40221a) {
|
|
522
|
-
const _0x4e0868 = _0x2e7ca6, _0x48598d = new AbortController(), _0x16e9e3 = setTimeout(() => _0x48598d[_0x4e0868(0x304)](), _0x2effb9), _0x3fa2ff = _0x40221a?.[_0x4e0868(0x2db)] ? anySignal(_0x40221a[_0x4e0868(0x2db)], _0x48598d['signal']) : _0x48598d[_0x4e0868(0x2db)], _0x5e4850 = '' + _0x507360 + _0x21b658;
|
|
523
|
-
try {
|
|
524
|
-
const _0x488647 = await _0x2197a7(_0x5e4850, {
|
|
525
|
-
..._0x40221a,
|
|
526
|
-
'signal': _0x3fa2ff
|
|
527
|
-
}), _0x593c06 = await _0x5aa6eb(_0x5e4850, _0x488647);
|
|
528
|
-
if (!_0x488647['ok'] || _0x593c06[_0x4e0868(0x27a)] === ![])
|
|
529
|
-
throw new Error(asErrorMessage(_0x593c06[_0x4e0868(0x231)], _0x4e0868(_0x5beecc._0x5ecd9d) + _0x488647[_0x4e0868(0x2ae)]));
|
|
530
|
-
return _0x593c06;
|
|
531
|
-
} finally {
|
|
532
|
-
clearTimeout(_0x16e9e3);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
async function _0x1e683a(_0x402f1e, _0x1c509e) {
|
|
536
|
-
const _0x1923b4 = _0x2e7ca6, _0x512bff = new AbortController(), _0x227763 = setTimeout(() => _0x512bff[_0x1923b4(0x304)](), _0x2effb9), _0x3c5f51 = _0x1c509e?.['signal'] ? anySignal(_0x1c509e['signal'], _0x512bff[_0x1923b4(_0x4fe39b._0x5af10f)]) : _0x512bff['signal'], _0x139957 = '' + _0x507360 + _0x402f1e;
|
|
537
|
-
try {
|
|
538
|
-
const _0x4e7e41 = await _0x2197a7(_0x139957, {
|
|
539
|
-
..._0x1c509e,
|
|
540
|
-
'signal': _0x3c5f51
|
|
541
|
-
}), _0x5f4ecd = await _0x5aa6eb(_0x139957, _0x4e7e41);
|
|
542
|
-
if (!_0x4e7e41['ok'])
|
|
543
|
-
throw new Error(asErrorMessage(_0x5f4ecd['error'], _0x1923b4(_0x4fe39b._0xadbcee) + _0x4e7e41[_0x1923b4(_0x4fe39b._0x57cdae)]));
|
|
544
|
-
return _0x5f4ecd;
|
|
545
|
-
} finally {
|
|
546
|
-
clearTimeout(_0x227763);
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
async function _0x35621e(_0x7c7f0d) {
|
|
550
|
-
const _0x1e81bb = _0x2e7ca6;
|
|
551
|
-
if (!_0x2c8033 || _0x7c7f0d <= _0x2172ac)
|
|
552
|
-
return;
|
|
553
|
-
await _0x2d8706(_0x1e81bb(_0x1de3cf._0x284247) + encodeURIComponent(_0x2c8033) + _0x1e81bb(_0x1de3cf._0x55ce03), {
|
|
554
|
-
'body': JSON[_0x1e81bb(0x234)]({ 'lastSeenSeq': _0x7c7f0d }),
|
|
555
|
-
'headers': _0x5c7a99,
|
|
556
|
-
'method': _0x1e81bb(0x190)
|
|
557
|
-
}), _0x2172ac = _0x7c7f0d;
|
|
558
|
-
}
|
|
559
|
-
async function _0x4168c1(_0x78bf1b) {
|
|
560
|
-
const _0x539772 = _0x2e7ca6;
|
|
561
|
-
if (!_0x1325de || !_0x9b2cc6 || _0x78bf1b <= _0x2172ac)
|
|
562
|
-
return;
|
|
563
|
-
const _0x5ce75e = await _0x2197a7(_0x1325de + '/workers/context-metrics', {
|
|
564
|
-
'body': JSON['stringify']({
|
|
565
|
-
'last_seen_seq': _0x78bf1b,
|
|
566
|
-
'worker_session_id': _0x9b2cc6
|
|
567
|
-
}),
|
|
568
|
-
'headers': { 'Content-Type': _0x539772(_0xd41166._0x865dc5) },
|
|
569
|
-
'method': _0x539772(_0xd41166._0x171e08)
|
|
570
|
-
});
|
|
571
|
-
if (!_0x5ce75e['ok'])
|
|
572
|
-
throw new Error(_0x539772(0x252) + _0x5ce75e[_0x539772(0x2ae)]);
|
|
573
|
-
_0x2172ac = _0x78bf1b;
|
|
574
|
-
}
|
|
575
|
-
async function _0x163e04(_0x561b73) {
|
|
576
|
-
const _0xa71855 = _0x2e7ca6, _0x6f4a23 = parseTarget(_0x561b73), _0x5bae61 = await _0x2d8706(_0xa71855(_0x44f9a2._0x585826) + _0x21a809[_0xa71855(0x204)] + _0xa71855(0x186), {
|
|
577
|
-
'body': JSON['stringify']({ 'target': _0x6f4a23[_0xa71855(0x2f3)] }),
|
|
578
|
-
'headers': _0x5c7a99,
|
|
579
|
-
'method': _0xa71855(_0x44f9a2._0x5f3e69)
|
|
580
|
-
});
|
|
581
|
-
return {
|
|
582
|
-
'channelId': _0x5bae61[_0xa71855(_0x44f9a2._0x39f829)]?.['channelId'] ?? '',
|
|
583
|
-
'target': _0x6f4a23[_0xa71855(0x2c7)],
|
|
584
|
-
'task': _0x5bae61[_0xa71855(0x282)]?.[_0xa71855(_0x44f9a2._0x2907b7)],
|
|
585
|
-
'threadId': _0x5bae61[_0xa71855(_0x44f9a2._0x1ea1e6)]?.[_0xa71855(0x2e9)],
|
|
586
|
-
'threadNumber': _0x5bae61[_0xa71855(_0x44f9a2._0x39f829)]?.[_0xa71855(_0x44f9a2._0x5f1b79)]
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
async function _0x73bd40(_0x5e40a1 = {}) {
|
|
590
|
-
const _0x5d8ccb = _0x2e7ca6;
|
|
591
|
-
if (!_0x5e40a1[_0x5d8ccb(0x17d)] && _0x20ce0c)
|
|
592
|
-
return _0x20ce0c;
|
|
593
|
-
return _0x20ce0c = (async () => {
|
|
594
|
-
const _0x13f2fd = _0x5d8ccb, _0x30dda5 = await _0x2d8706(_0x13f2fd(0x210) + _0x21a809['agentId'] + _0x13f2fd(_0x41529f._0x1accd3), {
|
|
595
|
-
'headers': _0x5c7a99,
|
|
596
|
-
'method': 'GET'
|
|
597
|
-
}), _0x3811a3 = _0x30dda5[_0x13f2fd(0x282)]?.[_0x13f2fd(0x273)] ?? [], _0x28d368 = _0x3811a3['filter'](_0x337c77 => _0x337c77[_0x13f2fd(0x1ab)]?.[_0x13f2fd(0x256)] === 'agent')[_0x13f2fd(_0x41529f._0x35a9fa)](_0x3c7fed => ({
|
|
598
|
-
'id': _0x27d93e(_0x3c7fed),
|
|
599
|
-
'name': _0x37b305(_0x3c7fed)
|
|
600
|
-
}))[_0x13f2fd(_0x41529f._0x40acde)](_0xa0f46e => _0xa0f46e['id']), _0x44319f = _0x3811a3['filter'](_0x2ee20d => _0x2ee20d['participant']?.['type'] !== _0x13f2fd(0x206))['map'](_0x3475df => ({
|
|
601
|
-
'id': _0x27d93e(_0x3475df),
|
|
602
|
-
'name': _0x37b305(_0x3475df)
|
|
603
|
-
}))[_0x13f2fd(0x189)](_0x1c7b7d => _0x1c7b7d['id']), _0x302c2 = _0x30dda5[_0x13f2fd(_0x41529f._0x552871)]?.['server']['id'] ?? '';
|
|
604
|
-
return {
|
|
605
|
-
'agents': _0x28d368,
|
|
606
|
-
'channels': _0x30dda5[_0x13f2fd(_0x41529f._0x552871)]?.[_0x13f2fd(_0x41529f._0x21c283)] ?? [],
|
|
607
|
-
'humans': _0x44319f,
|
|
608
|
-
'serverId': _0x302c2,
|
|
609
|
-
'serverName': _0x30dda5[_0x13f2fd(0x282)]?.['server'][_0x13f2fd(0x2c3)] ?? _0x302c2
|
|
610
|
-
};
|
|
611
|
-
})()['catch'](_0xf829f1 => {
|
|
612
|
-
_0x20ce0c = null;
|
|
613
|
-
throw _0xf829f1;
|
|
614
|
-
}), _0x20ce0c;
|
|
615
|
-
}
|
|
616
|
-
function _0x34cff6(_0x13e2cb, _0x1aaa2a) {
|
|
617
|
-
const _0x5097e8 = _0x2e7ca6;
|
|
618
|
-
return _0x1aaa2a['agents'][_0x5097e8(_0x349605._0x3ae278)](_0x59f125 => _0x59f125['id'] === _0x13e2cb || _0x59f125['name'] === _0x13e2cb) ? _0x5097e8(0x206) : 'human';
|
|
619
|
-
}
|
|
620
|
-
function _0x55bf03(_0x1f57e7) {
|
|
621
|
-
const _0x496d7d = _0x2e7ca6;
|
|
622
|
-
if (_0x1f57e7['threadNumber'] != null)
|
|
623
|
-
return _0x1f57e7[_0x496d7d(0x2c7)] + ':t' + _0x1f57e7[_0x496d7d(0x21a)];
|
|
624
|
-
if (_0x1f57e7[_0x496d7d(0x18f)])
|
|
625
|
-
return _0x1f57e7[_0x496d7d(_0x3b5718._0x593a9f)] + ':' + _0x1f57e7[_0x496d7d(_0x3b5718._0x2e7978)];
|
|
626
|
-
if (_0x1f57e7[_0x496d7d(0x2e9)])
|
|
627
|
-
return _0x1f57e7[_0x496d7d(0x2c7)] + ':' + _0x1f57e7['threadId'][_0x496d7d(0x1c5)](0x0, 0x8);
|
|
628
|
-
return _0x1f57e7['channelTarget'];
|
|
629
|
-
}
|
|
630
|
-
function _0xb59ac(_0x5cc0d8, _0x3e125c) {
|
|
631
|
-
const _0x6bc219 = _0x2e7ca6;
|
|
632
|
-
try {
|
|
633
|
-
const _0x30c170 = parseTarget(_0x5cc0d8);
|
|
634
|
-
if (_0x30c170[_0x6bc219(_0x33932c._0x29639c)] !== _0x6bc219(_0x33932c._0x2c18a1) || _0x30c170[_0x6bc219(0x2c7)] !== _0x3e125c[_0x6bc219(_0x33932c._0x2643b1)])
|
|
635
|
-
return ![];
|
|
636
|
-
if (_0x3e125c[_0x6bc219(0x21a)] != null && _0x30c170[_0x6bc219(_0x33932c._0x3feae5)] === 't' + _0x3e125c['threadNumber'])
|
|
637
|
-
return !![];
|
|
638
|
-
if (_0x3e125c[_0x6bc219(0x18f)])
|
|
639
|
-
return _0x30c170[_0x6bc219(0x1fe)] === _0x3e125c['rootMessageId'] || _0x3e125c['rootMessageId'][_0x6bc219(_0x33932c._0x2f3a95)](_0x30c170['threadShortId']);
|
|
640
|
-
if (_0x3e125c[_0x6bc219(_0x33932c._0x387d93)])
|
|
641
|
-
return _0x30c170[_0x6bc219(0x1fe)] === _0x3e125c[_0x6bc219(0x2e9)] || _0x3e125c[_0x6bc219(_0x33932c._0x574bc0)][_0x6bc219(0x270)](_0x30c170[_0x6bc219(_0x33932c._0x2da418)]);
|
|
642
|
-
return ![];
|
|
643
|
-
} catch {
|
|
644
|
-
return ![];
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
function _0x27d93e(_0x353589) {
|
|
648
|
-
const _0x5b8b9e = _0x2e7ca6;
|
|
649
|
-
return _0x353589[_0x5b8b9e(0x293)]?.[_0x5b8b9e(_0x267f5e._0x3bc389)] ?? _0x353589[_0x5b8b9e(0x1ab)]?.['id'] ?? _0x353589[_0x5b8b9e(_0x267f5e._0x287218)] ?? '';
|
|
650
|
-
}
|
|
651
|
-
function _0x37b305(_0x1f1bde) {
|
|
652
|
-
const _0x55316a = _0x2e7ca6;
|
|
653
|
-
return _0x1f1bde[_0x55316a(_0x35cb42._0x2b9d0d)]?.[_0x55316a(_0x35cb42._0x182f4d)] ?? _0x27d93e(_0x1f1bde);
|
|
654
|
-
}
|
|
655
|
-
async function _0x1495ac(_0x17ca6b) {
|
|
656
|
-
const _0x59595f = _0x2e7ca6, _0x279f8a = Math[_0x59595f(0x2c1)](_0x17ca6b['limit'] ?? 0x32, 0x64), _0x27425d = await _0x73bd40(), _0x78e8f1 = new URLSearchParams();
|
|
657
|
-
_0x78e8f1[_0x59595f(_0x350b96._0x5adb91)](_0x59595f(0x1d1), String(_0x279f8a));
|
|
658
|
-
_0x17ca6b[_0x59595f(_0x350b96._0xb389b5)] ? (_0x78e8f1['set'](_0x59595f(0x2e9), _0x17ca6b[_0x59595f(0x2e9)]), _0x78e8f1['set'](_0x59595f(0x283), _0x17ca6b[_0x59595f(0x283)])) : _0x78e8f1[_0x59595f(0x2b2)]('channelId', _0x17ca6b['channelId']);
|
|
659
|
-
_0x17ca6b[_0x59595f(_0x350b96._0x5655c1)] && _0x78e8f1[_0x59595f(0x2b2)](_0x59595f(_0x350b96._0x3d7904), String(_0x17ca6b['before']));
|
|
660
|
-
_0x17ca6b[_0x59595f(_0x350b96._0x22529a)] !== void 0x0 && _0x78e8f1['set'](_0x59595f(0x277), String(_0x17ca6b[_0x59595f(0x277)]));
|
|
661
|
-
const _0x512795 = await _0x2d8706(_0x59595f(_0x350b96._0x159d06) + _0x21a809[_0x59595f(0x204)] + _0x59595f(0x2b9) + _0x78e8f1[_0x59595f(_0x350b96._0xb3fb96)](), {
|
|
662
|
-
'headers': _0x5c7a99,
|
|
663
|
-
'method': 'GET'
|
|
664
|
-
}), _0x4facfc = (_0x512795[_0x59595f(_0x350b96._0x206727)] ?? [])[_0x59595f(_0x350b96._0x139def)](_0x359f86 => ({
|
|
665
|
-
'attachments': (_0x359f86[_0x59595f(0x2f5)] ?? [])[_0x59595f(0x1fd)](_0x5025e6 => ({
|
|
666
|
-
'filename': _0x5025e6['filename'] ?? _0x5025e6['id'],
|
|
667
|
-
'id': _0x5025e6['id']
|
|
668
|
-
})),
|
|
669
|
-
'content': _0x359f86['bodyMarkdown'] ?? '',
|
|
670
|
-
'createdAt': _0x359f86[_0x59595f(0x2d4)],
|
|
671
|
-
..._0x359f86[_0x59595f(0x2a5)] && _0x359f86['kind'] !== 'chat' ? { 'kind': _0x359f86[_0x59595f(0x2a5)] } : {},
|
|
672
|
-
'messageId': _0x359f86['id'],
|
|
673
|
-
'senderName': _0x359f86[_0x59595f(0x25f)],
|
|
674
|
-
'senderType': _0x34cff6(_0x359f86[_0x59595f(0x25f)], _0x27425d),
|
|
675
|
-
'seq': _0x359f86[_0x59595f(0x2da)] ?? 0x0
|
|
676
|
-
}));
|
|
677
|
-
return {
|
|
678
|
-
'channel': _0x17ca6b[_0x59595f(_0x350b96._0x4a813f)],
|
|
679
|
-
'hasMore': _0x512795[_0x59595f(0x2e2)]?.[_0x59595f(0x207)] ?? ![],
|
|
680
|
-
'messages': _0x4facfc,
|
|
681
|
-
'nextCursor': _0x512795[_0x59595f(_0x350b96._0x43278a)]?.[_0x59595f(_0x350b96._0x3d7904)]
|
|
682
|
-
};
|
|
683
|
-
}
|
|
684
|
-
return {
|
|
685
|
-
async 'sendMessage'(_0x48522e) {
|
|
686
|
-
const _0x4bc7f6 = _0x2e7ca6, _0x11c7b2 = await _0x163e04(_0x48522e[_0x4bc7f6(_0x241e2c._0x315843)]), _0xed56fa = _0x48522e['content'][_0x4bc7f6(_0x241e2c._0x4c6f91)]('@') ? extractMentionedParticipantIds(_0x48522e['content'], await _0x73bd40()) : [], _0x527466 = await _0x2d8706(_0x4bc7f6(0x210) + _0x21a809[_0x4bc7f6(_0x241e2c._0x51b6f2)] + _0x4bc7f6(_0x241e2c._0x3107eb), {
|
|
687
|
-
'body': JSON['stringify']({
|
|
688
|
-
'attachment_ids': _0x48522e[_0x4bc7f6(0x211)],
|
|
689
|
-
'bodyMarkdown': _0x48522e[_0x4bc7f6(0x1dd)],
|
|
690
|
-
'channelId': _0x11c7b2[_0x4bc7f6(_0x241e2c._0x501cd5)],
|
|
691
|
-
..._0xed56fa[_0x4bc7f6(_0x241e2c._0x2ad42d)] > 0x0 ? { 'mentionedParticipantIds': _0xed56fa } : {},
|
|
692
|
-
'threadId': _0x11c7b2[_0x4bc7f6(_0x241e2c._0x1a8d4f)],
|
|
693
|
-
..._0x48522e[_0x4bc7f6(0x279)] ? { 'visibility': _0x48522e[_0x4bc7f6(_0x241e2c._0x21287c)] } : {}
|
|
694
|
-
}),
|
|
695
|
-
'headers': _0x5c7a99,
|
|
696
|
-
'method': _0x4bc7f6(_0x241e2c._0x1c21da)
|
|
697
|
-
});
|
|
698
|
-
return { 'messageId': _0x527466[_0x4bc7f6(0x282)]?.['id'] ?? '' };
|
|
699
|
-
},
|
|
700
|
-
async 'listSchedules'() {
|
|
701
|
-
const _0x2ce3bf = _0x2e7ca6, _0x5732a5 = await _0x2d8706(_0x2ce3bf(_0x4aa387._0x5ba3ea), {
|
|
702
|
-
'headers': _0x5c7a99,
|
|
703
|
-
'method': _0x2ce3bf(0x1b0)
|
|
704
|
-
});
|
|
705
|
-
return _0x5732a5[_0x2ce3bf(_0x4aa387._0x338494)] ?? [];
|
|
706
|
-
},
|
|
707
|
-
async 'claimScheduleRun'(_0x54aa3e) {
|
|
708
|
-
const _0x2483d2 = _0x2e7ca6, _0x448465 = await _0x2d8706(_0x2483d2(0x2eb), {
|
|
709
|
-
'body': JSON[_0x2483d2(0x234)](_0x54aa3e),
|
|
710
|
-
'headers': _0x5c7a99,
|
|
711
|
-
'method': _0x2483d2(_0x76d3b4._0x1f8d17)
|
|
712
|
-
});
|
|
713
|
-
return _0x448465[_0x2483d2(_0x76d3b4._0x507268)] ?? {
|
|
714
|
-
'granted': ![],
|
|
715
|
-
'runId': null,
|
|
716
|
-
'schedule': null,
|
|
717
|
-
'scheduledFor': _0x54aa3e[_0x2483d2(0x301)]
|
|
718
|
-
};
|
|
719
|
-
},
|
|
720
|
-
async 'startScheduleRun'(_0x55fdde) {
|
|
721
|
-
const _0x28f2d0 = _0x2e7ca6, _0x475912 = await _0x2d8706(_0x28f2d0(_0x3fc82e._0x34d7c2) + encodeURIComponent(_0x55fdde[_0x28f2d0(_0x3fc82e._0x548b4f)]) + _0x28f2d0(0x29a), {
|
|
722
|
-
'body': JSON[_0x28f2d0(_0x3fc82e._0xf1b54d)]({}),
|
|
723
|
-
'headers': _0x5c7a99,
|
|
724
|
-
'method': _0x28f2d0(0x29e)
|
|
725
|
-
});
|
|
726
|
-
return _0x475912[_0x28f2d0(_0x3fc82e._0x13478b)] ?? {
|
|
727
|
-
'claimedByDaemonId': '',
|
|
728
|
-
'id': _0x55fdde['runId'],
|
|
729
|
-
'scheduleId': '',
|
|
730
|
-
'status': _0x28f2d0(0x241)
|
|
731
|
-
};
|
|
732
|
-
},
|
|
733
|
-
async 'finishScheduleRun'(_0x41559b) {
|
|
734
|
-
const _0xb8a303 = _0x2e7ca6, _0x24d95a = await _0x2d8706(_0xb8a303(0x2f6) + encodeURIComponent(_0x41559b[_0xb8a303(_0x503968._0x596300)]) + _0xb8a303(_0x503968._0x4000ff), {
|
|
735
|
-
'body': JSON['stringify']({
|
|
736
|
-
'error': _0x41559b[_0xb8a303(_0x503968._0x539dcd)],
|
|
737
|
-
'resultJson': _0x41559b[_0xb8a303(0x1da)],
|
|
738
|
-
'status': _0x41559b[_0xb8a303(0x2ae)]
|
|
739
|
-
}),
|
|
740
|
-
'headers': _0x5c7a99,
|
|
741
|
-
'method': _0xb8a303(_0x503968._0x532a70)
|
|
742
|
-
});
|
|
743
|
-
return _0x24d95a['data'] ?? {
|
|
744
|
-
'nextRunAt': null,
|
|
745
|
-
'run': {
|
|
746
|
-
'claimedByDaemonId': '',
|
|
747
|
-
'id': _0x41559b[_0xb8a303(0x2a1)],
|
|
748
|
-
'scheduleId': '',
|
|
749
|
-
'status': _0x41559b['status']
|
|
750
|
-
}
|
|
751
|
-
};
|
|
752
|
-
},
|
|
753
|
-
async 'listTasks'(_0x26ee68) {
|
|
754
|
-
const _0xdf6cc3 = _0x2e7ca6, _0x142c8b = new URLSearchParams();
|
|
755
|
-
return _0x142c8b[_0xdf6cc3(_0x22f9c6._0x15999b)]('channel', _0x26ee68[_0xdf6cc3(0x1aa)]), _0x26ee68[_0xdf6cc3(0x2ae)] && _0x142c8b[_0xdf6cc3(_0x22f9c6._0x15999b)](_0xdf6cc3(_0x22f9c6._0x7faadb), _0x26ee68[_0xdf6cc3(0x2ae)]), _0x1e683a('/internal/agent/' + _0x21a809[_0xdf6cc3(0x204)] + _0xdf6cc3(0x263) + _0x142c8b['toString'](), {
|
|
756
|
-
'headers': _0x5c7a99,
|
|
757
|
-
'method': _0xdf6cc3(0x1b0)
|
|
758
|
-
});
|
|
759
|
-
},
|
|
760
|
-
async 'createTasks'(_0x4d9efc) {
|
|
761
|
-
const _0x3814ab = _0x2e7ca6;
|
|
762
|
-
return _0x1e683a('/internal/agent/' + _0x21a809[_0x3814ab(_0x20110d._0x59d540)] + _0x3814ab(0x22c), {
|
|
763
|
-
'body': JSON[_0x3814ab(_0x20110d._0x2a294e)]({
|
|
764
|
-
..._0x4d9efc,
|
|
765
|
-
'idempotency_key': _0x22f906('create_tasks', _0x4d9efc)
|
|
766
|
-
}),
|
|
767
|
-
'headers': _0x5c7a99,
|
|
768
|
-
'method': 'POST'
|
|
769
|
-
});
|
|
770
|
-
},
|
|
771
|
-
async 'claimTasks'(_0x50c236) {
|
|
772
|
-
const _0x4d85d4 = _0x2e7ca6;
|
|
773
|
-
return _0x1e683a('/internal/agent/' + _0x21a809['agentId'] + _0x4d85d4(0x1c0), {
|
|
774
|
-
'body': JSON[_0x4d85d4(_0x421d21._0x23e19b)]({
|
|
775
|
-
..._0x50c236,
|
|
776
|
-
'idempotency_key': _0x22f906(_0x4d85d4(0x20c), _0x50c236)
|
|
777
|
-
}),
|
|
778
|
-
'headers': _0x5c7a99,
|
|
779
|
-
'method': _0x4d85d4(_0x421d21._0x59004e)
|
|
780
|
-
});
|
|
781
|
-
},
|
|
782
|
-
async 'unclaimTask'(_0x168a54) {
|
|
783
|
-
const _0x5b1281 = _0x2e7ca6;
|
|
784
|
-
return _0x1e683a(_0x5b1281(0x210) + _0x21a809[_0x5b1281(0x204)] + _0x5b1281(0x25a), {
|
|
785
|
-
'body': JSON[_0x5b1281(0x234)]({
|
|
786
|
-
..._0x168a54,
|
|
787
|
-
'idempotency_key': _0x22f906('unclaim_task', _0x168a54)
|
|
788
|
-
}),
|
|
789
|
-
'headers': _0x5c7a99,
|
|
790
|
-
'method': _0x5b1281(_0x2d0a36._0x4d77ac)
|
|
791
|
-
});
|
|
792
|
-
},
|
|
793
|
-
async 'updateTaskStatus'(_0x362004) {
|
|
794
|
-
const _0xfe2c27 = _0x2e7ca6;
|
|
795
|
-
return _0x1e683a(_0xfe2c27(_0x47b932._0x2a113f) + _0x21a809[_0xfe2c27(_0x47b932._0x31e796)] + _0xfe2c27(0x2fc), {
|
|
796
|
-
'body': JSON[_0xfe2c27(0x234)]({
|
|
797
|
-
..._0x362004,
|
|
798
|
-
'idempotency_key': _0x22f906(_0xfe2c27(_0x47b932._0x305da9), _0x362004)
|
|
799
|
-
}),
|
|
800
|
-
'headers': _0x5c7a99,
|
|
801
|
-
'method': _0xfe2c27(0x29e)
|
|
802
|
-
});
|
|
803
|
-
},
|
|
804
|
-
async 'uploadFile'(_0x26234a) {
|
|
805
|
-
const _0xf5b565 = _0x2e7ca6, _0x2ae444 = await _0x163e04(_0x26234a[_0xf5b565(_0x158f75._0x53419b)]);
|
|
806
|
-
if (_0x2ae444[_0xf5b565(_0x158f75._0x2e51ec)])
|
|
807
|
-
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
808
|
-
const _0x38112d = await _0x2d8706(_0xf5b565(_0x158f75._0x442389) + _0x21a809[_0xf5b565(_0x158f75._0xb87cf2)] + _0xf5b565(0x21d), {
|
|
809
|
-
'body': JSON[_0xf5b565(0x234)]({
|
|
810
|
-
'channel': _0x2ae444['target'],
|
|
811
|
-
'contentBase64': _0x26234a[_0xf5b565(0x22f)],
|
|
812
|
-
'contentType': _0x26234a[_0xf5b565(_0x158f75._0x61ce5a)],
|
|
813
|
-
'originalFilename': _0x26234a[_0xf5b565(0x2cf)]
|
|
814
|
-
}),
|
|
815
|
-
'headers': _0x5c7a99,
|
|
816
|
-
'method': 'POST'
|
|
817
|
-
});
|
|
818
|
-
return {
|
|
819
|
-
'attachmentId': _0x38112d[_0xf5b565(0x282)]?.['id'] ?? '',
|
|
820
|
-
'filename': _0x38112d[_0xf5b565(0x282)]?.[_0xf5b565(0x1b9)] ?? _0x26234a[_0xf5b565(0x2cf)],
|
|
821
|
-
'sizeBytes': _0x38112d[_0xf5b565(_0x158f75._0x14c2a2)]?.[_0xf5b565(_0x158f75._0x2cccc9)] ?? 0x0
|
|
822
|
-
};
|
|
823
|
-
},
|
|
824
|
-
async 'downloadAttachment'(_0xd6659e) {
|
|
825
|
-
const _0x16cf4e = _0x2e7ca6, _0xde4618 = await _0x2d8706(_0x16cf4e(0x1a4) + _0xd6659e, {
|
|
826
|
-
'headers': _0x5c7a99,
|
|
827
|
-
'method': _0x16cf4e(0x1b0)
|
|
828
|
-
}), _0x14f133 = new AbortController(), _0x5e1fa7 = setTimeout(() => _0x14f133['abort'](), _0x2effb9);
|
|
829
|
-
try {
|
|
830
|
-
const _0x4fe898 = await _0x2197a7(_0x507360 + _0x16cf4e(_0x2ba9bd._0x27a1eb) + _0xd6659e + _0x16cf4e(0x19d), {
|
|
831
|
-
'headers': _0x5c7a99,
|
|
832
|
-
'method': _0x16cf4e(_0x2ba9bd._0x154eb2),
|
|
833
|
-
'signal': _0x14f133[_0x16cf4e(0x2db)]
|
|
834
|
-
});
|
|
835
|
-
if (!_0x4fe898['ok'])
|
|
836
|
-
throw new Error(_0x16cf4e(_0x2ba9bd._0x17031c) + _0x4fe898[_0x16cf4e(_0x2ba9bd._0x732f32)]);
|
|
837
|
-
return {
|
|
838
|
-
'contentType': _0xde4618[_0x16cf4e(_0x2ba9bd._0x2a4f59)]?.['contentType'] ?? _0x4fe898[_0x16cf4e(0x23e)][_0x16cf4e(0x1fa)](_0x16cf4e(0x2b0)) ?? _0x16cf4e(_0x2ba9bd._0xf5a0a7),
|
|
839
|
-
'data': Buffer[_0x16cf4e(_0x2ba9bd._0x58b46e)](await _0x4fe898[_0x16cf4e(0x1d6)]()),
|
|
840
|
-
'originalFilename': _0xde4618[_0x16cf4e(_0x2ba9bd._0x2403a0)]?.[_0x16cf4e(0x1b9)]
|
|
841
|
-
};
|
|
842
|
-
} finally {
|
|
843
|
-
clearTimeout(_0x5e1fa7);
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
async 'listServer'() {
|
|
847
|
-
return _0x73bd40({ 'forceRefresh': !![] });
|
|
848
|
-
},
|
|
849
|
-
async 'readHistory'(_0x7b06a7) {
|
|
850
|
-
const _0xc0bf02 = _0x2e7ca6, _0x47ad25 = await _0x163e04(_0x7b06a7['channel']);
|
|
851
|
-
return _0x1495ac({
|
|
852
|
-
'after': _0x7b06a7[_0xc0bf02(0x277)],
|
|
853
|
-
'before': _0x7b06a7[_0xc0bf02(_0x75045f._0x130c75)],
|
|
854
|
-
'channelId': _0x47ad25[_0xc0bf02(0x283)],
|
|
855
|
-
'channelTarget': _0x47ad25[_0xc0bf02(_0x75045f._0x21ed09)],
|
|
856
|
-
'limit': _0x7b06a7['limit'],
|
|
857
|
-
'threadId': _0x47ad25[_0xc0bf02(0x2e9)]
|
|
858
|
-
});
|
|
859
|
-
},
|
|
860
|
-
'resolveTarget': _0x163e04,
|
|
861
|
-
async 'checkMessages'() {
|
|
862
|
-
const _0x3bfda2 = { _0x19de6b: 0x283 }, _0x2f7fb3 = _0x2e7ca6, _0x59cbe4 = new URLSearchParams();
|
|
863
|
-
_0x59cbe4[_0x2f7fb3(0x2b2)]('afterSeq', String(_0x4e7d37));
|
|
864
|
-
const _0x425b2b = _0x59cbe4['toString'](), _0x38e27f = await _0x2d8706(_0x2f7fb3(0x210) + _0x21a809[_0x2f7fb3(0x204)] + '/receive' + (_0x425b2b ? '?' + _0x425b2b : ''), {
|
|
865
|
-
'headers': _0x5c7a99,
|
|
866
|
-
'method': _0x2f7fb3(_0x4f1608._0x54759c)
|
|
867
|
-
}), _0x13b79f = _0x38e27f[_0x2f7fb3(0x282)] ?? [], _0x5e764d = _0x38e27f['meta']?.[_0x2f7fb3(_0x4f1608._0x1f67e9)], _0x2b2ec3 = _0x5e764d !== void 0x0 ? Math[_0x2f7fb3(_0x4f1608._0x157fa6)](_0x4e7d37, _0x5e764d) : _0x13b79f[_0x2f7fb3(0x235)] > 0x0 ? Math[_0x2f7fb3(_0x4f1608._0x157fa6)](_0x4e7d37, _0x13b79f[_0x13b79f[_0x2f7fb3(0x235)] - 0x1]['seq']) : _0x4e7d37, _0x316dc3 = _0x13b79f[_0x2f7fb3(_0x4f1608._0x55ec71)](_0x3eedc2 => _0x3eedc2['aggregateType'] === _0x2f7fb3(0x1d2)), _0x5be61d = _0x29ee68 === void 0x0 && _0x115e71;
|
|
868
|
-
let _0x224421 = await _0x73bd40(), _0x527568 = new Map(_0x224421['channels']['map'](_0x21de6a => [
|
|
869
|
-
_0x21de6a['id'],
|
|
870
|
-
_0x21de6a
|
|
871
|
-
]));
|
|
872
|
-
const _0x3ee4a7 = _0x316dc3[_0x2f7fb3(0x26d)](_0x583416 => {
|
|
873
|
-
const _0x151564 = _0x2f7fb3, _0x208624 = asRecord(_0x583416[_0x151564(0x198)]), _0x172849 = typeof _0x208624?.[_0x151564(0x283)] === 'string' ? _0x208624[_0x151564(_0x3bfda2._0x19de6b)] : '';
|
|
874
|
-
return Boolean(_0x172849) && !_0x527568['has'](_0x172849);
|
|
875
|
-
});
|
|
876
|
-
_0x3ee4a7 && (_0x224421 = await _0x73bd40({ 'forceRefresh': !![] }), _0x527568 = new Map(_0x224421['channels'][_0x2f7fb3(_0x4f1608._0x3aca21)](_0x4a87e9 => [
|
|
877
|
-
_0x4a87e9['id'],
|
|
878
|
-
_0x4a87e9
|
|
879
|
-
])));
|
|
880
|
-
const _0x5af6ad = new Map();
|
|
881
|
-
for (const _0x560d02 of _0x316dc3) {
|
|
882
|
-
const _0x49a9b4 = asRecord(_0x560d02[_0x2f7fb3(_0x4f1608._0x47dd2a)]), _0x2c2515 = typeof _0x49a9b4[_0x2f7fb3(_0x4f1608._0x349c5f)] === _0x2f7fb3(_0x4f1608._0x45c178) ? _0x49a9b4['channelId'] : '';
|
|
883
|
-
if (!_0x2c2515)
|
|
884
|
-
continue;
|
|
885
|
-
const _0x1a9f9b = typeof _0x49a9b4['threadId'] === _0x2f7fb3(_0x4f1608._0x45c178) ? _0x49a9b4['threadId'] : void 0x0, _0x145fb0 = typeof _0x49a9b4['rootMessageId'] === _0x2f7fb3(0x1e0) ? _0x49a9b4[_0x2f7fb3(0x18f)] : void 0x0, _0x1f0f19 = typeof _0x49a9b4[_0x2f7fb3(0x21a)] === _0x2f7fb3(0x2e8) && Number[_0x2f7fb3(0x2ca)](_0x49a9b4[_0x2f7fb3(_0x4f1608._0x3dd466)]) ? _0x49a9b4['threadNumber'] : void 0x0, _0x1a21c8 = Boolean(_0x1a9f9b && (!_0x145fb0 || _0x560d02[_0x2f7fb3(0x1bf)] !== _0x145fb0)), _0x5292ee = _0x1a21c8 ? _0x2c2515 + ':' + _0x1a9f9b : _0x2c2515, _0x2e5cbb = _0x5af6ad[_0x2f7fb3(0x1fa)](_0x5292ee) ?? {
|
|
886
|
-
'aggregateIds': [],
|
|
887
|
-
'channelId': _0x2c2515,
|
|
888
|
-
'entries': new Map(),
|
|
889
|
-
'isThreadReply': _0x1a21c8,
|
|
890
|
-
'rootMessageId': _0x145fb0,
|
|
891
|
-
'threadNumber': _0x1f0f19,
|
|
892
|
-
'threadId': _0x1a21c8 ? _0x1a9f9b : void 0x0
|
|
893
|
-
};
|
|
894
|
-
_0x2e5cbb[_0x2f7fb3(0x21a)] == null && _0x1f0f19 != null && (_0x2e5cbb[_0x2f7fb3(0x21a)] = _0x1f0f19), !_0x2e5cbb[_0x2f7fb3(0x18f)] && _0x145fb0 && (_0x2e5cbb[_0x2f7fb3(0x18f)] = _0x145fb0), _0x2e5cbb[_0x2f7fb3(_0x4f1608._0x36b09a)][_0x2f7fb3(0x2ef)](_0x560d02[_0x2f7fb3(0x1bf)]), _0x2e5cbb[_0x2f7fb3(0x2d2)][_0x2f7fb3(_0x4f1608._0x6b3b98)](_0x560d02[_0x2f7fb3(_0x4f1608._0x1082ce)], {
|
|
895
|
-
'payloadJson': _0x560d02[_0x2f7fb3(_0x4f1608._0xdadafa)],
|
|
896
|
-
'seq': _0x560d02['seq']
|
|
897
|
-
}), _0x5af6ad[_0x2f7fb3(0x2b2)](_0x5292ee, _0x2e5cbb);
|
|
898
|
-
}
|
|
899
|
-
const _0x257cee = [];
|
|
900
|
-
for (const _0x51b7a9 of _0x5af6ad['values']()) {
|
|
901
|
-
const {
|
|
902
|
-
channelId: _0x35593c,
|
|
903
|
-
threadId: _0x5ea254,
|
|
904
|
-
rootMessageId: _0x5e2353,
|
|
905
|
-
threadNumber: _0x1526c1,
|
|
906
|
-
aggregateIds: _0x4a6aee,
|
|
907
|
-
isThreadReply: _0x349654,
|
|
908
|
-
entries: _0x508278
|
|
909
|
-
} = _0x51b7a9, _0x386ca4 = _0x527568['get'](_0x35593c), _0x5bb471 = _0x386ca4?.[_0x2f7fb3(_0x4f1608._0x23de31)] ?? _0x35593c, _0x1b326c = _0x386ca4?.[_0x2f7fb3(_0x4f1608._0x52b21b)] === 'dm' ? _0x2f7fb3(_0x4f1608._0x4e0b7e) + _0x5bb471 : '#' + _0x5bb471, _0x5a94cc = {
|
|
910
|
-
'channelTarget': _0x1b326c,
|
|
911
|
-
'rootMessageId': _0x5e2353,
|
|
912
|
-
'threadId': _0x5ea254,
|
|
913
|
-
'threadNumber': _0x1526c1
|
|
914
|
-
}, _0x291b56 = await _0x1495ac({
|
|
915
|
-
'channelId': _0x35593c,
|
|
916
|
-
'channelTarget': _0x1b326c,
|
|
917
|
-
'limit': Math[_0x2f7fb3(0x2f1)](_0x4a6aee[_0x2f7fb3(_0x4f1608._0x3705aa)], 0x32),
|
|
918
|
-
'threadId': _0x5ea254
|
|
919
|
-
}), _0x547af8 = new Map(_0x291b56[_0x2f7fb3(0x225)][_0x2f7fb3(_0x4f1608._0x199332)](_0x287ec1 => [
|
|
920
|
-
_0x287ec1[_0x2f7fb3(0x184)],
|
|
921
|
-
_0x287ec1
|
|
922
|
-
])), _0x428678 = _0x5ea254 ? _0x55bf03(_0x5a94cc) : _0x1b326c, _0x175a4d = _0x29ee68 ? _0x349654 && _0xb59ac(_0x29ee68, _0x5a94cc) : !![], _0x4452ae = _0x349654 ? _0x175a4d && _0x29ee68 ? _0x29ee68 : _0x428678 : _0x1b326c;
|
|
923
|
-
for (const _0x49b7f6 of _0x4a6aee) {
|
|
924
|
-
if (!_0x175a4d)
|
|
925
|
-
continue;
|
|
926
|
-
const _0x593cf4 = _0x508278['get'](_0x49b7f6), _0x3ee6e0 = _0x593cf4 ? asRecord(_0x593cf4[_0x2f7fb3(_0x4f1608._0x3a9483)]) : void 0x0, _0x251740 = _0x3ee6e0?.[_0x2f7fb3(0x2ba)] === _0x2f7fb3(0x2f7);
|
|
927
|
-
if (_0x5be61d && _0x251740)
|
|
928
|
-
continue;
|
|
929
|
-
const _0x5c21fd = _0x547af8[_0x2f7fb3(0x1fa)](_0x49b7f6);
|
|
930
|
-
if (_0x5c21fd) {
|
|
931
|
-
_0x257cee[_0x2f7fb3(_0x4f1608._0x51f5cb)]({
|
|
932
|
-
'attachments': _0x5c21fd[_0x2f7fb3(_0x4f1608._0x579d40)],
|
|
933
|
-
'content': _0x5c21fd[_0x2f7fb3(0x1dd)],
|
|
934
|
-
'createdAt': _0x5c21fd[_0x2f7fb3(0x2d4)],
|
|
935
|
-
..._0x5c21fd[_0x2f7fb3(0x2a5)] ? { 'kind': _0x5c21fd[_0x2f7fb3(_0x4f1608._0x4e70d6)] } : {},
|
|
936
|
-
'messageId': _0x5c21fd[_0x2f7fb3(_0x4f1608._0x10d283)],
|
|
937
|
-
'senderName': _0x5c21fd['senderName'],
|
|
938
|
-
'senderType': _0x5c21fd[_0x2f7fb3(_0x4f1608._0x2c3bb4)],
|
|
939
|
-
'target': _0x4452ae,
|
|
940
|
-
..._0x251740 ? { 'targetedTask': !![] } : {}
|
|
941
|
-
});
|
|
942
|
-
continue;
|
|
943
|
-
}
|
|
944
|
-
if (_0x593cf4) {
|
|
945
|
-
const _0x459c0b = typeof _0x3ee6e0?.[_0x2f7fb3(_0x4f1608._0x4341b6)] === _0x2f7fb3(_0x4f1608._0x45c178) ? _0x3ee6e0[_0x2f7fb3(0x25f)] : '', _0xa2f89e = typeof _0x3ee6e0?.[_0x2f7fb3(_0x4f1608._0x418ace)] === _0x2f7fb3(_0x4f1608._0x45c178) ? _0x3ee6e0[_0x2f7fb3(0x20b)] : '', _0x42731b = typeof _0x3ee6e0?.[_0x2f7fb3(_0x4f1608._0x4e70d6)] === 'string' && _0x3ee6e0[_0x2f7fb3(0x2a5)] !== 'chat' ? _0x3ee6e0['kind'] : void 0x0;
|
|
946
|
-
_0x459c0b && _0xa2f89e && _0x257cee[_0x2f7fb3(_0x4f1608._0x185bac)]({
|
|
947
|
-
'attachments': [],
|
|
948
|
-
'content': _0xa2f89e,
|
|
949
|
-
'createdAt': new Date()[_0x2f7fb3(0x284)](),
|
|
950
|
-
..._0x42731b ? { 'kind': _0x42731b } : {},
|
|
951
|
-
'messageId': _0x49b7f6,
|
|
952
|
-
'senderName': _0x459c0b,
|
|
953
|
-
'senderType': _0x34cff6(_0x459c0b, _0x224421),
|
|
954
|
-
'target': _0x4452ae,
|
|
955
|
-
..._0x251740 ? { 'targetedTask': !![] } : {}
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
if (_0x2b2ec3 > 0x0) {
|
|
961
|
-
if (_0x2c8033)
|
|
962
|
-
await _0x35621e(_0x2b2ec3);
|
|
963
|
-
else
|
|
964
|
-
_0x9b2cc6 && await _0x4168c1(_0x2b2ec3);
|
|
965
|
-
}
|
|
966
|
-
return _0x2b2ec3 > _0x4e7d37 && (_0x4e7d37 = _0x2b2ec3), { 'messages': _0x29ee68 ? _0x257cee : _0x5be61d ? _0x257cee[_0x2f7fb3(0x189)](_0x134e92 => _0x134e92[_0x2f7fb3(0x248)] !== !![]) : _0x257cee };
|
|
967
|
-
}
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
function toLocalTime(_0x312866) {
|
|
971
|
-
const _0x510218 = {
|
|
972
|
-
_0x33061b: 0x1f8,
|
|
973
|
-
_0x2b85c2: 0x2bd,
|
|
974
|
-
_0xec732e: 0x217
|
|
975
|
-
}, _0x20829f = _0x602e11, _0x1fb79c = new Date(_0x312866);
|
|
976
|
-
if (Number['isNaN'](_0x1fb79c['getTime']()))
|
|
977
|
-
return _0x312866;
|
|
978
|
-
const _0x3e11ab = _0x13cd1a => String(_0x13cd1a)[_0x20829f(0x19e)](0x2, '0');
|
|
979
|
-
return _0x1fb79c[_0x20829f(0x2ad)]() + '-' + _0x3e11ab(_0x1fb79c[_0x20829f(0x2bc)]() + 0x1) + '-' + _0x3e11ab(_0x1fb79c[_0x20829f(0x240)]()) + '\x20' + _0x3e11ab(_0x1fb79c[_0x20829f(_0x510218._0x33061b)]()) + ':' + _0x3e11ab(_0x1fb79c[_0x20829f(_0x510218._0x2b85c2)]()) + ':' + _0x3e11ab(_0x1fb79c[_0x20829f(_0x510218._0xec732e)]());
|
|
980
|
-
}
|
|
981
|
-
function _0x511f() {
|
|
982
|
-
const _0x333b81 = [
|
|
983
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
984
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
985
|
-
'Dw5JBgfPBv90yxnR',
|
|
986
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
987
|
-
'Aw1Hz2uVz2LM',
|
|
988
|
-
'Dg9gAxHLza',
|
|
989
|
-
'DhjPBq',
|
|
990
|
-
'DgL0Bgu',
|
|
991
|
-
'BgLTAxq',
|
|
992
|
-
'BwvZC2fNzq',
|
|
993
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
994
|
-
'BgLZDfrHC2TZ',
|
|
995
|
-
'C2vYDMvY',
|
|
996
|
-
'yxjYyxLcDwzMzxi',
|
|
997
|
-
'iokaLca',
|
|
998
|
-
'AxngAw5PDgu',
|
|
999
|
-
'zMLSzv9WyxrO',
|
|
1000
|
-
'CMvZDwX0sNnVBG',
|
|
1001
|
-
'mu9QthfxAG',
|
|
1002
|
-
'DgfZAY0',
|
|
1003
|
-
'y29UDgvUDa',
|
|
1004
|
-
'zw51Bq',
|
|
1005
|
-
'ywjVCNrLza',
|
|
1006
|
-
'C3rYAw5N',
|
|
1007
|
-
'C3rHCNrLza',
|
|
1008
|
-
'y2XHAw1uyxnRCW',
|
|
1009
|
-
'DMfSDwu',
|
|
1010
|
-
'igLUia',
|
|
1011
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1012
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1013
|
-
'C29YDa',
|
|
1014
|
-
'ig1LC3nHz2u9',
|
|
1015
|
-
'Bg9JywXLq29TCgfYzq',
|
|
1016
|
-
'l3nLCNzLCG',
|
|
1017
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1018
|
-
'C2HHmJu2',
|
|
1019
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
1020
|
-
'ywDNCMvNyxrLswrZ',
|
|
1021
|
-
'CMvZDwX0',
|
|
1022
|
-
'ChjVDg9JB2W',
|
|
1023
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1024
|
-
'Dg9tDhjPBMC',
|
|
1025
|
-
'ndq0ntbdDKXKueO',
|
|
1026
|
-
'zg0T',
|
|
1027
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1028
|
-
'm3znrer2za',
|
|
1029
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1030
|
-
'z2v0sg91CNm',
|
|
1031
|
-
'Dw5RBM93BG',
|
|
1032
|
-
'z2v0',
|
|
1033
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1034
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
1035
|
-
'BwfW',
|
|
1036
|
-
'DgHYzwfKu2HVCNrjza',
|
|
1037
|
-
'C3vTBwfYEq',
|
|
1038
|
-
'Aw1Hz2uVANbLzW',
|
|
1039
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1040
|
-
'DgvZDa',
|
|
1041
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1042
|
-
'ywDLBNrjza',
|
|
1043
|
-
'v29YA2vYici',
|
|
1044
|
-
'ywDLBNq',
|
|
1045
|
-
'AgfZtw9Yzq',
|
|
1046
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1047
|
-
'lNnSB2nR',
|
|
1048
|
-
'zMfSC2u',
|
|
1049
|
-
'yM9KEu1HCMTKB3DU',
|
|
1050
|
-
'y2XHAw1FDgfZA3m',
|
|
1051
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1052
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1053
|
-
'yxv0BZO',
|
|
1054
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1055
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
1056
|
-
'BgLZDf9Zzxj2zxi',
|
|
1057
|
-
'Aw1Hz2uVD2vICa',
|
|
1058
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1059
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1060
|
-
'Dgv4Dc9JC3y',
|
|
1061
|
-
'z2v0u2vJB25KCW',
|
|
1062
|
-
'y2HPBgrYzw5eB25L',
|
|
1063
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1064
|
-
'DgHYzwfKtNvTyMvY',
|
|
1065
|
-
'zMv0y2HjBxbS',
|
|
1066
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1067
|
-
'l3vWBg9Hza',
|
|
54
|
+
function _0x2b34() {
|
|
55
|
+
const _0x1756c1 = [
|
|
56
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
57
|
+
'l2HPC3rVCNK/',
|
|
1068
58
|
'yxjYyxK',
|
|
59
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
60
|
+
'Dg9KBW',
|
|
61
|
+
'yMfZzty0',
|
|
62
|
+
'yxjYyxLcDwzMzxi',
|
|
63
|
+
'Bwv0yq',
|
|
64
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
65
|
+
'zgvZy3jPyMu',
|
|
66
|
+
'igrVBMuP',
|
|
67
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
68
|
+
'BgLZDfrHC2TZ',
|
|
1069
69
|
'Aw1Hz2uVCg5N',
|
|
1070
|
-
'
|
|
1071
|
-
'igf0DgfJAg1LBNq',
|
|
1072
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1073
|
-
'D29YA2vY',
|
|
1074
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1075
|
-
'BwvZC2fNzxm',
|
|
1076
|
-
'ouvuDNLxrq',
|
|
1077
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1078
|
-
'iYmJieH1BwfUCW',
|
|
1079
|
-
'y2fJAgveAxi',
|
|
1080
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
1081
|
-
'igzHAwXLzdOG',
|
|
70
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1082
71
|
'l3rHC2TZ',
|
|
1083
|
-
'
|
|
1084
|
-
'
|
|
1085
|
-
'
|
|
72
|
+
'CMvWBgfJzq',
|
|
73
|
+
'AxnjBNrLz2vY',
|
|
74
|
+
'iYmJienOyw5UzwXZ',
|
|
75
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1086
76
|
'B3bLBL9PC3n1zxm',
|
|
1087
|
-
'
|
|
1088
|
-
'
|
|
1089
|
-
'
|
|
1090
|
-
'
|
|
1091
|
-
'
|
|
1092
|
-
'
|
|
1093
|
-
'
|
|
1094
|
-
'
|
|
77
|
+
'Aw1Hz2uVD2vICa',
|
|
78
|
+
'CgfYDgLJAxbHBNrjza',
|
|
79
|
+
'BgLZDfnLCNzLCG',
|
|
80
|
+
'mc4WlJa',
|
|
81
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
82
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
83
|
+
'l3n0yxj0',
|
|
84
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
85
|
+
'l3nLBMq',
|
|
86
|
+
'BwvZC2fNzuLK',
|
|
1095
87
|
'D29YA19RzxK',
|
|
1096
|
-
'
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'
|
|
88
|
+
'Aw5FCMv2Awv3',
|
|
89
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
90
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
91
|
+
'DMLLD19MAwXL',
|
|
92
|
+
'D29YA2vY',
|
|
93
|
+
'Dg9mB3DLCKnHC2u',
|
|
94
|
+
'Dg9tDhjPBMC',
|
|
95
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
96
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
97
|
+
'DgHYzwfKswq',
|
|
98
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
99
|
+
'C2vUzgvYvhLWzq',
|
|
100
|
+
'C2vX',
|
|
101
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
102
|
+
'ywz0zxjtzxe',
|
|
103
|
+
'zMLSDgvY',
|
|
104
|
+
'D3nZoG',
|
|
105
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
106
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
107
|
+
'ihn0yxr1CZ0',
|
|
108
|
+
'C2L6zuj5DgvZ',
|
|
109
|
+
'BwvZC2fNzxm',
|
|
110
|
+
'BNvTyMvY',
|
|
111
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
112
|
+
'y29UDgvUDejHC2u2na',
|
|
113
|
+
'C2vYDMvYvxjS',
|
|
114
|
+
'yxnPzgu',
|
|
115
|
+
'AxnbCNjHEq',
|
|
116
|
+
'DxjNzw50',
|
|
1102
117
|
'z2v0rgf0zq',
|
|
1103
|
-
'
|
|
1104
|
-
'
|
|
1105
|
-
'
|
|
1106
|
-
'
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'
|
|
1111
|
-
'
|
|
1112
|
-
'
|
|
118
|
+
'DgHYzwfKu2HVCNrjza',
|
|
119
|
+
'y2HHBM5LBa',
|
|
120
|
+
'ig1ZzZ0',
|
|
121
|
+
'zgLNzxn0',
|
|
122
|
+
'D29YA2vYsgfUzg9MzG',
|
|
123
|
+
'AM9PBG',
|
|
124
|
+
'zM9Yy2vszwzYzxnO',
|
|
125
|
+
'AgfZ',
|
|
126
|
+
'y2XHAw1uyxnRCW',
|
|
127
|
+
'CMvZDwX0CW',
|
|
128
|
+
'AgvHzgvYCW',
|
|
129
|
+
'ChvZAa',
|
|
130
|
+
'C3rYAw5NAwz5',
|
|
131
|
+
'l3rHC2TZl2nSywLT',
|
|
132
|
+
'zgvJAxnPB25Z',
|
|
1113
133
|
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1114
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1115
|
-
'Bwf0y2Hoyw1L',
|
|
1116
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1117
|
-
'kg5VBMuP',
|
|
1118
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
1119
|
-
'yMfZzw5HBwu',
|
|
1120
|
-
'sfruuca',
|
|
1121
|
-
'l2zPBMLZAa',
|
|
1122
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
1123
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1124
|
-
'DhLWzq',
|
|
1125
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1126
134
|
'ANnVBG',
|
|
1127
|
-
'
|
|
1128
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
1129
|
-
'ywDLBNrZ',
|
|
1130
|
-
'zgvJAxnPB25Z',
|
|
1131
|
-
'otK2mtmWAgLpwNrA',
|
|
1132
|
-
'yxnPzgu',
|
|
1133
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1134
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
1135
|
-
'BgLZDf90yxnRCW',
|
|
135
|
+
'ihr5Cgu9ywDLBNq',
|
|
1136
136
|
'yxjNDG',
|
|
1137
|
-
'
|
|
1138
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
137
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1139
138
|
'zNjVBq',
|
|
1140
|
-
'
|
|
1141
|
-
'
|
|
1142
|
-
'
|
|
1143
|
-
'
|
|
1144
|
-
'
|
|
1145
|
-
'
|
|
1146
|
-
'
|
|
1147
|
-
'
|
|
1148
|
-
'
|
|
1149
|
-
'
|
|
139
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
140
|
+
'mJK4mJuZnMvPBMfiAG',
|
|
141
|
+
'y3jLyxrLzef0',
|
|
142
|
+
'mJm2nJy3D3rcz0XT',
|
|
143
|
+
'Ahr0CdO',
|
|
144
|
+
'DgvZDa',
|
|
145
|
+
'CxvLDwvK',
|
|
146
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
147
|
+
'z2v0vgLTzq',
|
|
148
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
149
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
150
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
151
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
152
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
153
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
154
|
+
'nZmWBNnTCw9m',
|
|
155
|
+
'zw50CMLLCW',
|
|
156
|
+
'B2jQzwn0',
|
|
157
|
+
'zMLSzxnFy2HHBMDLza',
|
|
158
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
159
|
+
'zMfSC2u',
|
|
160
|
+
'C2vUze1LC3nHz2u',
|
|
161
|
+
'Aw5JBhvKzxm',
|
|
162
|
+
'igzHAwXLzdOG',
|
|
163
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
164
|
+
'cGOTls0G',
|
|
165
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
166
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
167
|
+
'Agv4',
|
|
168
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
169
|
+
'l3rHC2TZpW',
|
|
170
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
171
|
+
'DxrMoa',
|
|
172
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
173
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
174
|
+
'C2nOzwr1BgvKrM9Y',
|
|
175
|
+
'y2XHAw1FDgfZA3m',
|
|
176
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1150
177
|
'C3rHCNrZv2L0Aa',
|
|
1151
|
-
'
|
|
1152
|
-
'
|
|
1153
|
-
'
|
|
1154
|
-
'
|
|
1155
|
-
'
|
|
178
|
+
'Axnoyu4',
|
|
179
|
+
'C2vYDMvY',
|
|
180
|
+
'D29YA2vYCW',
|
|
181
|
+
'Ahr0Chm6',
|
|
182
|
+
'w3rHCMDLDd0',
|
|
183
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
184
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
185
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
186
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
187
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
188
|
+
'CgfYC2vjBNq',
|
|
189
|
+
'y29UDgvUDfr5Cgu',
|
|
1156
190
|
'xsba',
|
|
1157
|
-
'
|
|
1158
|
-
'
|
|
1159
|
-
'
|
|
1160
|
-
'
|
|
1161
|
-
'
|
|
1162
|
-
'
|
|
1163
|
-
'
|
|
1164
|
-
'
|
|
1165
|
-
'
|
|
1166
|
-
'
|
|
1167
|
-
'
|
|
1168
|
-
'
|
|
191
|
+
'kg5VBMuP',
|
|
192
|
+
'C2f2zq',
|
|
193
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
194
|
+
'DxnLCG',
|
|
195
|
+
'iYmGu2vYDMvYoIa',
|
|
196
|
+
'CNvUBMLUzW',
|
|
197
|
+
'zxjYB3i',
|
|
198
|
+
'v29YA2vYici',
|
|
199
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
200
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
201
|
+
'yM9KEu1HCMTKB3DU',
|
|
202
|
+
'6k+35Rgcia',
|
|
203
|
+
'uefuq0G',
|
|
204
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
205
|
+
'zMLUza',
|
|
1169
206
|
'y2HHBM5LBeLK',
|
|
1170
|
-
'Dg9ju09tDhjPBMC',
|
|
1171
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1172
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1173
|
-
'Aw5KzxHpzG',
|
|
1174
|
-
'lsaJ',
|
|
1175
|
-
'mtC4nJiYofvNs2vxBW',
|
|
1176
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
1177
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1178
|
-
'lsba',
|
|
1179
207
|
'AgLNAa',
|
|
1180
|
-
'
|
|
1181
|
-
'
|
|
1182
|
-
'
|
|
1183
|
-
'
|
|
1184
|
-
'
|
|
1185
|
-
'
|
|
1186
|
-
'
|
|
1187
|
-
'6k+35Rgcia',
|
|
1188
|
-
'lcbWCMv2Awv3pq',
|
|
1189
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
1190
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
1191
|
-
'y2XPzw50',
|
|
1192
|
-
'l3n0yxj0',
|
|
1193
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1194
|
-
'CMvHC29U',
|
|
1195
|
-
'zg06',
|
|
1196
|
-
'ue9tva',
|
|
1197
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1198
|
-
'C2vUzgvYvhLWzq',
|
|
1199
|
-
'CNvUswq',
|
|
1200
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
1201
|
-
'ihr5Cgu9ywDLBNq',
|
|
1202
|
-
'kgXLz2fJEsK',
|
|
1203
|
-
'A2LUza',
|
|
1204
|
-
'ls1Hz2vUDc1Pza',
|
|
1205
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1206
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1207
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1208
|
-
'zgLZCg9ZAxrPB24',
|
|
1209
|
-
'AgfZ',
|
|
1210
|
-
'vgfZAZOG',
|
|
1211
|
-
'z2v0rNvSBfLLyxi',
|
|
1212
|
-
'C3rHDhvZ',
|
|
1213
|
-
'DxbSB2fKx2zPBgu',
|
|
1214
|
-
'y29UDgvUDc10ExbL',
|
|
1215
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1216
|
-
'C2v0',
|
|
1217
|
-
'vgfZAYa',
|
|
1218
|
-
'zxHWAxjLC0f0',
|
|
1219
|
-
'DxbKyxrL',
|
|
1220
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1221
|
-
'DMLLD19MAwXL',
|
|
1222
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
1223
|
-
'l2HPC3rVCNK/',
|
|
1224
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1225
|
-
'D2fPDgLUz19PBNb1Da',
|
|
1226
|
-
'z2v0tw9UDgG',
|
|
1227
|
-
'z2v0twLUDxrLCW',
|
|
1228
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
1229
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1230
|
-
'Dg9VBa',
|
|
1231
|
-
'BwLU',
|
|
1232
|
-
'ig1ZzZ0',
|
|
1233
|
-
'BMfTzq',
|
|
1234
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
1235
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
208
|
+
'DgfZA051BwjLCG',
|
|
209
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
210
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
211
|
+
'DgHYzwfK',
|
|
212
|
+
'nKTZAvLcva',
|
|
213
|
+
'yxr0ywnOBwvUDeLK',
|
|
214
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1236
215
|
'yxbWBgLJyxrPB24VEMLW',
|
|
1237
216
|
'y2HHBM5LBfrHCMDLDa',
|
|
1238
|
-
'
|
|
1239
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1240
|
-
'AxnjBNrLz2vY',
|
|
1241
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1242
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1243
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1244
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
1245
|
-
'zMLSzw5HBwu',
|
|
1246
|
-
'ywrK',
|
|
1247
|
-
'C2vX',
|
|
1248
|
-
'zw50CMLLCW',
|
|
1249
|
-
'w3nLCt0',
|
|
1250
|
-
'y3jLyxrLzef0',
|
|
1251
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
1252
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
1253
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1254
|
-
'y29UBMvJDa',
|
|
1255
|
-
'B2jQzwn0',
|
|
217
|
+
'iYmJieH1BwfUCW',
|
|
1256
218
|
'zxzLBNrtzxe',
|
|
1257
|
-
'C2LNBMfS',
|
|
1258
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1259
|
-
'DgHYzwfK',
|
|
1260
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1261
|
-
'icHPzdO',
|
|
1262
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
1263
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1264
|
-
'Bwv0yq',
|
|
1265
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1266
|
-
'BwvKAxvT',
|
|
1267
|
-
'lIbnzxnZywDLieLeoIa',
|
|
1268
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1269
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1270
|
-
'BNvTyMvY',
|
|
1271
|
-
'DgHYzwfKswq',
|
|
1272
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1273
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1274
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1275
|
-
'AM9PBG',
|
|
1276
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1277
|
-
'ChvZAa',
|
|
1278
|
-
'DxjNzw50',
|
|
1279
|
-
'Bwf4',
|
|
1280
219
|
'ihrPBwu9',
|
|
1281
|
-
'
|
|
1282
|
-
'
|
|
1283
|
-
'yxr0ywnOBwvUDhm',
|
|
1284
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1285
|
-
'DgfYz2v0zwq',
|
|
1286
|
-
'yMfZzty0',
|
|
1287
|
-
'DgfZA0LK',
|
|
1288
|
-
'lMjPBG',
|
|
220
|
+
'l3nLCNzLCG',
|
|
221
|
+
'lsba',
|
|
1289
222
|
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1290
|
-
'
|
|
1291
|
-
'
|
|
1292
|
-
'
|
|
1293
|
-
'
|
|
1294
|
-
'
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'
|
|
1300
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1301
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
223
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
224
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
225
|
+
'lMjPBG',
|
|
226
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
227
|
+
'C29YDa',
|
|
228
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
229
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
230
|
+
'r0vu',
|
|
231
|
+
'ig1LC3nHz2vZkqOk',
|
|
232
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1302
233
|
'zgfLBw9UqxbPs2v5',
|
|
234
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
235
|
+
'y2HHBM5LBhm',
|
|
236
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
237
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
238
|
+
'Aw1Hz2uVANbLzW',
|
|
239
|
+
'igTPBMq9',
|
|
240
|
+
'C3rHCNrLza',
|
|
241
|
+
'C3vJy2vZCW',
|
|
242
|
+
'lsaJ',
|
|
243
|
+
'DgHYzwfKtNvTyMvY',
|
|
244
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
245
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
246
|
+
'C29Tzq',
|
|
247
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
248
|
+
'C3vTBwfYEq',
|
|
249
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
250
|
+
'CMvXDwvZDfvYBa',
|
|
251
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
252
|
+
'Dw5JBgfPBv90yxnR',
|
|
253
|
+
'DgfZA19Pza',
|
|
254
|
+
'nda2mtDjr25st0i',
|
|
255
|
+
'AxngAwXL',
|
|
1303
256
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1304
|
-
'
|
|
1305
|
-
'
|
|
1306
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1307
|
-
'Dg9mB3DLCKnHC2u',
|
|
1308
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1309
|
-
'C3vIDgfZA051BwjLCG',
|
|
1310
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1311
|
-
'ChvIBgLJ',
|
|
1312
|
-
'BwvZC2fNzuLK',
|
|
1313
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
1314
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1315
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1316
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
1317
|
-
'zMLSDgvY',
|
|
1318
|
-
'C2L6zq',
|
|
1319
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
1320
|
-
'D29YA2vYCW',
|
|
1321
|
-
'iYmGu2vYDMvYoIa',
|
|
257
|
+
'BgvUz3rO',
|
|
258
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1322
259
|
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1325
|
-
'
|
|
1326
|
-
'
|
|
260
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
261
|
+
'DxbSB2fKx2zPBgu',
|
|
262
|
+
'y2HHDa',
|
|
263
|
+
'zMLSzv9WyxrO',
|
|
264
|
+
'zgLZCg9ZAxrPB24',
|
|
1327
265
|
'C3rVCe1HAw4',
|
|
1328
|
-
'
|
|
1329
|
-
'
|
|
1330
|
-
'
|
|
1331
|
-
'
|
|
1332
|
-
'
|
|
1333
|
-
'
|
|
1334
|
-
'
|
|
1335
|
-
'
|
|
1336
|
-
'
|
|
1337
|
-
'
|
|
1338
|
-
'
|
|
1339
|
-
'
|
|
1340
|
-
'
|
|
1341
|
-
'
|
|
1342
|
-
'
|
|
1343
|
-
'
|
|
1344
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1345
|
-
'w3rHCMDLDd0',
|
|
1346
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1347
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
1348
|
-
'Dg9KBW',
|
|
266
|
+
'C3rHDhvZ',
|
|
267
|
+
'DxbKyxrL',
|
|
268
|
+
'oxLUtM5LtW',
|
|
269
|
+
'ig1LC3nHz2u9',
|
|
270
|
+
'ywDLBNq',
|
|
271
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
272
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
273
|
+
'ChjVDg9JB2W',
|
|
274
|
+
'Bwf4',
|
|
275
|
+
'z2v0sg91CNm',
|
|
276
|
+
'y2HHBM5LBe5HBwu',
|
|
277
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
278
|
+
'D29YA2vYtw9Kzq',
|
|
279
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
280
|
+
'y2XHAw0GzMfPBgvK',
|
|
281
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1349
282
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1350
|
-
'
|
|
283
|
+
'Dg9VBa',
|
|
284
|
+
'ls1ZzxnZAw9UlwLK',
|
|
285
|
+
'BM93',
|
|
286
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
287
|
+
'ywz0zxi',
|
|
288
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
289
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
290
|
+
'y2HPBgrYzw5eB25L',
|
|
291
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
292
|
+
'v29YA2vYia',
|
|
293
|
+
'BMfTzq',
|
|
294
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
295
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
296
|
+
'y29UDgvUDa',
|
|
297
|
+
'zxH0BMfTzq',
|
|
298
|
+
'yMvMB3jL',
|
|
299
|
+
'igf0DgfJAg1LBNq',
|
|
300
|
+
'C2vUzf9TzxnZywDL',
|
|
301
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
302
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
303
|
+
'zgvZDhjVEwvK',
|
|
304
|
+
'y3jLyxrLvgfZA3m',
|
|
305
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
306
|
+
'BwvKAxvT',
|
|
307
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
308
|
+
'CM9VDe1LC3nHz2vjza',
|
|
309
|
+
'DgfZAY0',
|
|
310
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
311
|
+
'BwvTyMvYCW',
|
|
312
|
+
'zgvZy3jPChrPB24',
|
|
313
|
+
'DMLZAwjPBgL0Eq',
|
|
314
|
+
'sfruuca',
|
|
315
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
316
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
317
|
+
'zxHWAxjLC0f0',
|
|
318
|
+
'ywDLBNrjza',
|
|
319
|
+
'lNnSB2nR',
|
|
320
|
+
'yMfZzw5HBwu',
|
|
321
|
+
'y29UDgvUDc10ExbL',
|
|
322
|
+
'DgfYz2v0zwq',
|
|
323
|
+
'ywDNCMvNyxrLswq',
|
|
324
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
325
|
+
'C2L6zq',
|
|
326
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
327
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
328
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
329
|
+
'D3m6',
|
|
330
|
+
'kgXLz2fJEsK',
|
|
331
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
332
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
333
|
+
'BwfW',
|
|
334
|
+
'C3rYAw5N',
|
|
335
|
+
'Dg9ju09tDhjPBMC',
|
|
336
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
337
|
+
'EM9K',
|
|
338
|
+
'zw51Bq',
|
|
339
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
340
|
+
'zMLSzw5HBwu',
|
|
341
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
342
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
343
|
+
'mJaXndq3nfHSEfvRDa',
|
|
344
|
+
'Dg9gAxHLza',
|
|
345
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
346
|
+
'DgfZA0LK',
|
|
347
|
+
'l2zPBMLZAa',
|
|
348
|
+
'zg9Uzq',
|
|
349
|
+
'ls1Hz2vUDc1Pza',
|
|
350
|
+
'y2XPzw50',
|
|
351
|
+
'AhvTyw4',
|
|
352
|
+
'AxngAw5PDgu',
|
|
353
|
+
'BgLZDf9Zzxj2zxi',
|
|
354
|
+
'icHPzdO',
|
|
355
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
356
|
+
'CMvHC29U',
|
|
357
|
+
'mZe3nti2vLzHwLrz',
|
|
358
|
+
'AhvTyw5Z',
|
|
359
|
+
'C3vIDgfZA051BwjLCG',
|
|
360
|
+
'Dw5RBM93BG',
|
|
361
|
+
'CNvUswq',
|
|
362
|
+
'ue9tva',
|
|
363
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
364
|
+
'yMXVy2TLza',
|
|
365
|
+
'ywjVCNq',
|
|
366
|
+
'C2LNBMfS',
|
|
367
|
+
'z2v0twLUDxrLCW',
|
|
368
|
+
'iIbUB3qGzM91BMq',
|
|
369
|
+
'C2vZC2LVBKLK',
|
|
370
|
+
'DMfSDwvZ',
|
|
1351
371
|
'CgfYDgLJAxbHBNq',
|
|
1352
372
|
'y2f0y2G',
|
|
1353
|
-
'
|
|
1354
|
-
'
|
|
1355
|
-
'
|
|
1356
|
-
'
|
|
1357
|
-
'
|
|
1358
|
-
'
|
|
1359
|
-
'
|
|
373
|
+
'BgLZDf90yxnRCW',
|
|
374
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
375
|
+
'C2XPy2u',
|
|
376
|
+
'z2v0',
|
|
377
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
378
|
+
'Aw5FChjVz3jLC3m',
|
|
379
|
+
'CMvHzeHPC3rVCNK',
|
|
380
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1360
381
|
'CMvZCg9UC2u',
|
|
1361
|
-
'
|
|
1362
|
-
'
|
|
1363
|
-
'
|
|
382
|
+
'C2v0',
|
|
383
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
384
|
+
'yxr0ywnOBwvUDhm',
|
|
385
|
+
'y2fJAgveAxi',
|
|
386
|
+
'ignSywLTzwq',
|
|
387
|
+
'DgHYzwfKvgfYz2v0',
|
|
388
|
+
'CMvHzf9OAxn0B3j5',
|
|
389
|
+
'Dgv4Dc9JC3y',
|
|
390
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
391
|
+
'yM9KEvrLEhq',
|
|
392
|
+
'ywjVCNrLza',
|
|
393
|
+
'AhjLzG',
|
|
394
|
+
'z2v0tw9UDgG',
|
|
395
|
+
'ywDLBNrZ',
|
|
396
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
397
|
+
'y3vYC29Y',
|
|
398
|
+
'Aw1Hz2uVz2LM',
|
|
399
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
400
|
+
'D2fPDgLUz19PBNb1Da',
|
|
401
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
402
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
403
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
404
|
+
'DgfZA3m',
|
|
405
|
+
'BwvZC2fNzq',
|
|
406
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
407
|
+
'nJCXmZi1qwj4t2r1',
|
|
408
|
+
'A2LUza',
|
|
409
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
410
|
+
'ywDNCMvNyxrLswrZ',
|
|
411
|
+
'DhjPBq',
|
|
412
|
+
'B3b0Aw9UywW',
|
|
413
|
+
'y3jLyxrLx3rHC2TZ',
|
|
414
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
415
|
+
'lIbnzxnZywDLieLeoIa',
|
|
416
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
417
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
418
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
419
|
+
'AgfZtw9Yzq',
|
|
420
|
+
'ywrK',
|
|
421
|
+
'C2HHmJu2',
|
|
422
|
+
'ls1Zzxj2zxiTDxjS',
|
|
423
|
+
'C2vUzgvYtMfTzq',
|
|
424
|
+
'mtaZmdaXmKTWwunJAa',
|
|
425
|
+
'DgfZAW',
|
|
426
|
+
'ywXS',
|
|
427
|
+
'CgfKu3rHCNq',
|
|
428
|
+
'ChvIBgLJ',
|
|
429
|
+
'Cgf5Bg9HzePZB24',
|
|
430
|
+
'zMv0y2HjBxbS',
|
|
431
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
432
|
+
'DgfYz2v0',
|
|
433
|
+
'DgL0Bgu',
|
|
1364
434
|
'DxbSB2fKrMLSzq',
|
|
1365
|
-
'
|
|
1366
|
-
'
|
|
1367
|
-
'
|
|
1368
|
-
'
|
|
1369
|
-
'
|
|
1370
|
-
'
|
|
1371
|
-
'
|
|
1372
|
-
'
|
|
1373
|
-
'
|
|
1374
|
-
'
|
|
1375
|
-
'
|
|
1376
|
-
'
|
|
1377
|
-
'
|
|
1378
|
-
'
|
|
1379
|
-
'
|
|
1380
|
-
'
|
|
435
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
436
|
+
'igLUia',
|
|
437
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
438
|
+
'vgfZAYa',
|
|
439
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
440
|
+
'BgLTAxq',
|
|
441
|
+
'BMv4Den1CNnVCG',
|
|
442
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
443
|
+
'zgf0yq',
|
|
444
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
445
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
446
|
+
'BwvTyMvY',
|
|
447
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
448
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
449
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
450
|
+
'Bwf0y2Hoyw1L',
|
|
451
|
+
'Dw5JBgfPBvrHC2S',
|
|
452
|
+
'z2v0u2vJB25KCW',
|
|
453
|
+
'CMvZDwX0',
|
|
454
|
+
'CMvZDwX0sNnVBG',
|
|
455
|
+
'CMvJB3jK',
|
|
456
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
457
|
+
'Aw5KzxHpzG'
|
|
1381
458
|
];
|
|
1382
|
-
|
|
1383
|
-
return
|
|
459
|
+
_0x2b34 = function () {
|
|
460
|
+
return _0x1756c1;
|
|
461
|
+
};
|
|
462
|
+
return _0x2b34();
|
|
463
|
+
}
|
|
464
|
+
import { homedir } from 'node:os';
|
|
465
|
+
import _0x54f963 from 'node:path';
|
|
466
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
467
|
+
'.csv': _0x54fce(0x2fc),
|
|
468
|
+
'.gif': _0x54fce(0x305),
|
|
469
|
+
'.jpeg': _0x54fce(0x265),
|
|
470
|
+
'.jpg': _0x54fce(0x265),
|
|
471
|
+
'.json': _0x54fce(0x270),
|
|
472
|
+
'.md': _0x54fce(0x243),
|
|
473
|
+
'.pdf': _0x54fce(0x202),
|
|
474
|
+
'.png': _0x54fce(0x1bc),
|
|
475
|
+
'.svg': 'image/svg+xml',
|
|
476
|
+
'.txt': 'text/plain',
|
|
477
|
+
'.webp': _0x54fce(0x1c4),
|
|
478
|
+
'.xml': _0x54fce(0x1c2),
|
|
479
|
+
'.zip': _0x54fce(0x24e)
|
|
480
|
+
};
|
|
481
|
+
function guessContentType(_0x272da0) {
|
|
482
|
+
const _0x108a1d = { _0x1c00b2: 0x1d4 }, _0x12552a = _0x54fce;
|
|
483
|
+
return MIME_BY_EXTENSION[_0x54f963[_0x12552a(0x2a0)](_0x272da0)[_0x12552a(_0x108a1d._0x1c00b2)]()] ?? _0x12552a(0x263);
|
|
484
|
+
}
|
|
485
|
+
function safeFilename(_0x277c7e) {
|
|
486
|
+
const _0x545700 = _0x54fce;
|
|
487
|
+
return _0x277c7e[_0x545700(0x1bf)](/[\\/]/g, '-');
|
|
488
|
+
}
|
|
489
|
+
function extensionFor(_0x19703f) {
|
|
490
|
+
const _0x35e6bf = {
|
|
491
|
+
_0x3c2f59: 0x244,
|
|
492
|
+
_0x5cce02: 0x258
|
|
493
|
+
}, _0x40ab8c = _0x54fce, _0x8b3d0 = Object['entries'](MIME_BY_EXTENSION)[_0x40ab8c(_0x35e6bf._0x3c2f59)](([, _0x4d623b]) => _0x4d623b === _0x19703f);
|
|
494
|
+
return _0x8b3d0?.[0x0] ?? _0x40ab8c(_0x35e6bf._0x5cce02);
|
|
495
|
+
}
|
|
496
|
+
async function prepareUploadFile(_0x21e59c, _0x366008 = {}) {
|
|
497
|
+
const _0x335ea8 = {
|
|
498
|
+
_0x3de0a0: 0x30a,
|
|
499
|
+
_0xc18ede: 0x24d,
|
|
500
|
+
_0x3ee7a5: 0x21d,
|
|
501
|
+
_0x339701: 0x2b7,
|
|
502
|
+
_0x2a69a8: 0x1b4
|
|
503
|
+
}, _0x4495cc = _0x54fce;
|
|
504
|
+
if (!_0x54f963['isAbsolute'](_0x21e59c))
|
|
505
|
+
throw new Error(_0x4495cc(_0x335ea8._0x3de0a0));
|
|
506
|
+
const _0x3b1800 = await stat(_0x21e59c)['catch'](() => null);
|
|
507
|
+
if (!_0x3b1800 || !_0x3b1800[_0x4495cc(0x276)]())
|
|
508
|
+
throw new Error(_0x4495cc(_0x335ea8._0xc18ede) + _0x21e59c);
|
|
509
|
+
const _0x2a98d4 = _0x366008['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
510
|
+
if (_0x3b1800['size'] > _0x2a98d4)
|
|
511
|
+
throw new Error(_0x4495cc(_0x335ea8._0x3ee7a5) + _0x3b1800[_0x4495cc(0x2bc)]);
|
|
512
|
+
const _0x17abf2 = await readFile(_0x21e59c), _0x409b3f = _0x54f963[_0x4495cc(_0x335ea8._0x339701)](_0x21e59c);
|
|
513
|
+
return {
|
|
514
|
+
'contentBase64': _0x17abf2['toString'](_0x4495cc(_0x335ea8._0x2a69a8)),
|
|
515
|
+
'contentType': guessContentType(_0x409b3f),
|
|
516
|
+
'filename': _0x409b3f,
|
|
517
|
+
'sizeBytes': _0x3b1800[_0x4495cc(0x2bc)]
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
function createAttachmentCache(_0xab2aef = {}) {
|
|
521
|
+
const _0x15536e = {
|
|
522
|
+
_0x162794: 0x2f8,
|
|
523
|
+
_0x3502be: 0x1f2,
|
|
524
|
+
_0x55086e: 0x2b6
|
|
525
|
+
}, _0x2215bd = {
|
|
526
|
+
_0x404f5f: 0x312,
|
|
527
|
+
_0x167d44: 0x234,
|
|
528
|
+
_0x572410: 0x24c,
|
|
529
|
+
_0x4a1951: 0x332
|
|
530
|
+
}, _0x538711 = { _0x2199a0: 0x1f2 }, _0x3658bf = _0x54fce, _0x1fcc7e = _0xab2aef[_0x3658bf(_0x15536e._0x162794)] ?? _0x54f963[_0x3658bf(_0x15536e._0x3502be)](homedir(), _0x3658bf(_0x15536e._0x55086e), 'attachments');
|
|
531
|
+
return {
|
|
532
|
+
'cacheDir': _0x1fcc7e,
|
|
533
|
+
async 'findCachedPath'(_0xb39a59) {
|
|
534
|
+
const _0x416c45 = _0x3658bf;
|
|
535
|
+
await mkdir(_0x1fcc7e, { 'recursive': !![] });
|
|
536
|
+
const _0x248c29 = await readdir(_0x1fcc7e), _0x3fc562 = _0x248c29['find'](_0x21bd6f => _0x21bd6f[_0x416c45(0x228)](_0xb39a59 + '-') || _0x21bd6f['startsWith'](_0xb39a59));
|
|
537
|
+
return _0x3fc562 ? _0x54f963[_0x416c45(_0x538711._0x2199a0)](_0x1fcc7e, _0x3fc562) : null;
|
|
538
|
+
},
|
|
539
|
+
async 'save'(_0x49c54c) {
|
|
540
|
+
const _0x2ee033 = _0x3658bf;
|
|
541
|
+
await mkdir(_0x1fcc7e, { 'recursive': !![] });
|
|
542
|
+
const _0x107734 = _0x49c54c['originalFilename']?.[_0x2ee033(_0x2215bd._0x404f5f)]() ? safeFilename(_0x49c54c['originalFilename']) : '' + _0x49c54c[_0x2ee033(0x24c)] + extensionFor(_0x49c54c[_0x2ee033(_0x2215bd._0x167d44)]), _0x58a654 = _0x54f963['join'](_0x1fcc7e, _0x49c54c[_0x2ee033(_0x2215bd._0x572410)] + '-' + _0x107734);
|
|
543
|
+
return await writeFile(_0x58a654, _0x49c54c[_0x2ee033(_0x2215bd._0x4a1951)]), _0x58a654;
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
import {
|
|
548
|
+
createHash,
|
|
549
|
+
randomUUID
|
|
550
|
+
} from 'node:crypto';
|
|
551
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x54fce(0x221);
|
|
552
|
+
function ensureSegment(_0x1bd93f) {
|
|
553
|
+
const _0x4a44d9 = { _0x58c7e9: 0x218 }, _0x57232c = _0x54fce, _0x37637f = _0x1bd93f[_0x57232c(0x312)]();
|
|
554
|
+
if (!_0x37637f || _0x37637f[_0x57232c(_0x4a44d9._0x58c7e9)](':'))
|
|
555
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
556
|
+
return _0x37637f;
|
|
557
|
+
}
|
|
558
|
+
function parseThreadParts(_0x516381) {
|
|
559
|
+
const _0x2c8c86 = { _0x32a999: 0x278 }, _0x1af32b = _0x54fce, _0x23c20d = _0x516381['split'](':');
|
|
560
|
+
if (_0x23c20d['length'] < 0x1 || _0x23c20d[_0x1af32b(_0x2c8c86._0x32a999)] > 0x2)
|
|
561
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
562
|
+
return {
|
|
563
|
+
'channelName': ensureSegment(_0x23c20d[0x0] ?? ''),
|
|
564
|
+
'threadShortId': _0x23c20d[0x1] ? ensureSegment(_0x23c20d[0x1]) : null
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
function parseTarget(_0x39dad5) {
|
|
568
|
+
const _0x5d02ca = {
|
|
569
|
+
_0x4da32f: 0x228,
|
|
570
|
+
_0x19434d: 0x28b,
|
|
571
|
+
_0xddb17: 0x1ed,
|
|
572
|
+
_0x162ef4: 0x1ee,
|
|
573
|
+
_0x13114b: 0x28b,
|
|
574
|
+
_0x1cb158: 0x24a
|
|
575
|
+
}, _0xeef8a7 = _0x54fce, _0x366559 = _0x39dad5[_0xeef8a7(0x312)]();
|
|
576
|
+
if (!_0x366559)
|
|
577
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
578
|
+
if (_0x366559[_0xeef8a7(_0x5d02ca._0x4da32f)]('#')) {
|
|
579
|
+
const _0x52586a = parseThreadParts(_0x366559[_0xeef8a7(0x2ee)](0x1)), _0x53d571 = '#' + _0x52586a[_0xeef8a7(_0x5d02ca._0x19434d)];
|
|
580
|
+
if (!_0x52586a[_0xeef8a7(_0x5d02ca._0xddb17)])
|
|
581
|
+
return {
|
|
582
|
+
'channelName': _0x52586a[_0xeef8a7(0x28b)],
|
|
583
|
+
'channelTarget': _0x53d571,
|
|
584
|
+
'kind': _0xeef8a7(_0x5d02ca._0x162ef4),
|
|
585
|
+
'target': _0x53d571
|
|
586
|
+
};
|
|
587
|
+
return {
|
|
588
|
+
'channelName': _0x52586a['channelName'],
|
|
589
|
+
'channelTarget': _0x53d571,
|
|
590
|
+
'kind': _0xeef8a7(0x24a),
|
|
591
|
+
'target': _0x53d571 + ':' + _0x52586a[_0xeef8a7(0x1ed)],
|
|
592
|
+
'threadShortId': _0x52586a['threadShortId']
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
if (_0x366559[_0xeef8a7(0x228)]('dm:')) {
|
|
596
|
+
const _0x310ec8 = parseThreadParts(_0x366559[_0xeef8a7(0x2ee)](0x3));
|
|
597
|
+
if (!_0x310ec8['channelName'][_0xeef8a7(_0x5d02ca._0x4da32f)]('dm-'))
|
|
598
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
599
|
+
const _0x5103fe = 'dm:' + _0x310ec8[_0xeef8a7(_0x5d02ca._0x13114b)];
|
|
600
|
+
if (!_0x310ec8[_0xeef8a7(0x1ed)])
|
|
601
|
+
return {
|
|
602
|
+
'channelName': _0x310ec8[_0xeef8a7(0x28b)],
|
|
603
|
+
'channelTarget': _0x5103fe,
|
|
604
|
+
'kind': _0xeef8a7(0x1ee),
|
|
605
|
+
'target': _0x5103fe
|
|
606
|
+
};
|
|
607
|
+
return {
|
|
608
|
+
'channelName': _0x310ec8[_0xeef8a7(_0x5d02ca._0x19434d)],
|
|
609
|
+
'channelTarget': _0x5103fe,
|
|
610
|
+
'kind': _0xeef8a7(_0x5d02ca._0x1cb158),
|
|
611
|
+
'target': _0x5103fe + ':' + _0x310ec8[_0xeef8a7(0x1ed)],
|
|
612
|
+
'threadShortId': _0x310ec8['threadShortId']
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
616
|
+
}
|
|
617
|
+
function asErrorMessage(_0x1d4aa3, _0x1679cf) {
|
|
618
|
+
const _0xe9833d = { _0x518700: 0x312 }, _0x1d7842 = _0x54fce;
|
|
619
|
+
if (typeof _0x1d4aa3 === _0x1d7842(0x2c5) && _0x1d4aa3[_0x1d7842(_0xe9833d._0x518700)]())
|
|
620
|
+
return _0x1d4aa3;
|
|
621
|
+
return _0x1679cf;
|
|
622
|
+
}
|
|
623
|
+
function asRecord(_0x3f8e1f) {
|
|
624
|
+
const _0x382f1f = _0x54fce;
|
|
625
|
+
return typeof _0x3f8e1f === _0x382f1f(0x213) && _0x3f8e1f !== null ? _0x3f8e1f : {};
|
|
626
|
+
}
|
|
627
|
+
function stableStringify(_0xf8f8ba) {
|
|
628
|
+
const _0x220fd7 = {
|
|
629
|
+
_0x2330f3: 0x1f9,
|
|
630
|
+
_0x452ed3: 0x2c4,
|
|
631
|
+
_0x2535f6: 0x1f2,
|
|
632
|
+
_0xec9a66: 0x25a
|
|
633
|
+
}, _0x1ad1ab = _0x54fce;
|
|
634
|
+
if (_0xf8f8ba === null || typeof _0xf8f8ba !== _0x1ad1ab(0x213))
|
|
635
|
+
return JSON[_0x1ad1ab(_0x220fd7._0x2330f3)](_0xf8f8ba);
|
|
636
|
+
if (Array[_0x1ad1ab(0x1ea)](_0xf8f8ba))
|
|
637
|
+
return '[' + _0xf8f8ba[_0x1ad1ab(_0x220fd7._0x452ed3)](_0x16338f => stableStringify(_0x16338f))[_0x1ad1ab(_0x220fd7._0x2535f6)](',') + ']';
|
|
638
|
+
const _0x307028 = Object['entries'](_0xf8f8ba)['filter'](([, _0x10cf78]) => _0x10cf78 !== void 0x0)[_0x1ad1ab(_0x220fd7._0xec9a66)](([_0x1fc553], [_0x40b19a]) => _0x1fc553['localeCompare'](_0x40b19a))[_0x1ad1ab(_0x220fd7._0x452ed3)](([_0x908682, _0x3aef55]) => JSON[_0x1ad1ab(0x1f9)](_0x908682) + ':' + stableStringify(_0x3aef55));
|
|
639
|
+
return '{' + _0x307028['join'](',') + '}';
|
|
640
|
+
}
|
|
641
|
+
function createHeaders(_0x4055a3) {
|
|
642
|
+
return {
|
|
643
|
+
'Content-Type': 'application/json',
|
|
644
|
+
'x-daemon-api-key': _0x4055a3
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
function toHttpBaseUrl(_0x5e1b34) {
|
|
648
|
+
const _0x494d41 = {
|
|
649
|
+
_0x467019: 0x288,
|
|
650
|
+
_0x5b5757: 0x288,
|
|
651
|
+
_0x24b495: 0x206,
|
|
652
|
+
_0x3fe9bc: 0x22c,
|
|
653
|
+
_0x354fd9: 0x1d5,
|
|
654
|
+
_0x4bebd0: 0x1bf
|
|
655
|
+
}, _0x6763f8 = _0x54fce, _0x3259f7 = new URL(_0x5e1b34);
|
|
656
|
+
if (_0x3259f7[_0x6763f8(_0x494d41._0x467019)] === _0x6763f8(0x2c0))
|
|
657
|
+
_0x3259f7[_0x6763f8(_0x494d41._0x5b5757)] = _0x6763f8(_0x494d41._0x24b495);
|
|
658
|
+
else
|
|
659
|
+
_0x3259f7[_0x6763f8(0x288)] === _0x6763f8(0x1df) && (_0x3259f7[_0x6763f8(0x288)] = _0x6763f8(_0x494d41._0x3fe9bc));
|
|
660
|
+
return _0x3259f7[_0x6763f8(_0x494d41._0x354fd9)]()[_0x6763f8(_0x494d41._0x4bebd0)](/\/$/, '');
|
|
661
|
+
}
|
|
662
|
+
function isMentionBoundary(_0xb2aeda) {
|
|
663
|
+
const _0x5c8c09 = { _0x1a5f82: 0x207 }, _0xd8817 = _0x54fce;
|
|
664
|
+
return !_0xb2aeda || /\s|[([{'",。!?、:;]/[_0xd8817(_0x5c8c09._0x1a5f82)](_0xb2aeda);
|
|
665
|
+
}
|
|
666
|
+
function isMentionTerminal(_0x22d1c1) {
|
|
667
|
+
const _0x2a3606 = _0x54fce;
|
|
668
|
+
return !_0x22d1c1 || /\s|[)\]}'",。!?、:;,.!?]/[_0x2a3606(0x207)](_0x22d1c1);
|
|
669
|
+
}
|
|
670
|
+
function buildMatchableEntries(_0xa44251) {
|
|
671
|
+
const _0x55bdc0 = {
|
|
672
|
+
_0x7cd697: 0x302,
|
|
673
|
+
_0x1ca608: 0x2dd
|
|
674
|
+
}, _0x4ca20b = _0x54fce, _0x4508a0 = [];
|
|
675
|
+
for (const _0x26260f of [
|
|
676
|
+
..._0xa44251[_0x4ca20b(_0x55bdc0._0x7cd697)],
|
|
677
|
+
..._0xa44251[_0x4ca20b(_0x55bdc0._0x1ca608)]
|
|
678
|
+
]) {
|
|
679
|
+
_0x4508a0['push']({
|
|
680
|
+
'matchName': _0x26260f['name'],
|
|
681
|
+
'matchNameLower': _0x26260f[_0x4ca20b(0x29c)][_0x4ca20b(0x2ed)](),
|
|
682
|
+
'participantId': _0x26260f['id']
|
|
683
|
+
}), _0x26260f['id'] !== _0x26260f[_0x4ca20b(0x29c)] && _0x4508a0['push']({
|
|
684
|
+
'matchName': _0x26260f['id'],
|
|
685
|
+
'matchNameLower': _0x26260f['id'][_0x4ca20b(0x2ed)](),
|
|
686
|
+
'participantId': _0x26260f['id']
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
return _0x4508a0;
|
|
690
|
+
}
|
|
691
|
+
function extractMentionedParticipantIds(_0x1caad2, _0x1f674d) {
|
|
692
|
+
const _0x226d8d = {
|
|
693
|
+
_0x3291bc: 0x31b,
|
|
694
|
+
_0x5f5c1d: 0x1c5,
|
|
695
|
+
_0x508775: 0x1a7
|
|
696
|
+
}, _0x2ab50e = { _0xe4a325: 0x2be }, _0x3bf18a = _0x54fce, _0x52a390 = buildMatchableEntries(_0x1f674d)[_0x3bf18a(0x25a)]((_0x19fb4e, _0x1ab778) => _0x1ab778[_0x3bf18a(0x1a7)][_0x3bf18a(0x278)] - _0x19fb4e[_0x3bf18a(0x1a7)][_0x3bf18a(0x278)]), _0x350120 = [], _0x934ca1 = new Set();
|
|
697
|
+
for (let _0x337289 = 0x0; _0x337289 < _0x1caad2[_0x3bf18a(0x278)]; _0x337289 += 0x1) {
|
|
698
|
+
if (_0x1caad2[_0x337289] !== '@' || !isMentionBoundary(_0x1caad2[_0x337289 - 0x1]))
|
|
699
|
+
continue;
|
|
700
|
+
const _0x265d7b = _0x1caad2['slice'](_0x337289 + 0x1), _0x1c7e82 = _0x265d7b[_0x3bf18a(0x2ed)](), _0x7dca02 = _0x52a390['find'](_0x5c2f62 => {
|
|
701
|
+
const _0x3b50f3 = _0x3bf18a;
|
|
702
|
+
if (!_0x1c7e82[_0x3b50f3(0x228)](_0x5c2f62[_0x3b50f3(_0x2ab50e._0xe4a325)]))
|
|
703
|
+
return ![];
|
|
704
|
+
return isMentionTerminal(_0x265d7b[_0x5c2f62[_0x3b50f3(0x1a7)][_0x3b50f3(0x278)]]);
|
|
705
|
+
});
|
|
706
|
+
if (!_0x7dca02 || _0x934ca1[_0x3bf18a(0x1f4)](_0x7dca02[_0x3bf18a(0x1c5)]))
|
|
707
|
+
continue;
|
|
708
|
+
_0x934ca1[_0x3bf18a(_0x226d8d._0x3291bc)](_0x7dca02[_0x3bf18a(_0x226d8d._0x5f5c1d)]), _0x350120[_0x3bf18a(0x1f8)](_0x7dca02['participantId']), _0x337289 += _0x7dca02[_0x3bf18a(_0x226d8d._0x508775)][_0x3bf18a(0x278)];
|
|
709
|
+
}
|
|
710
|
+
return _0x350120;
|
|
711
|
+
}
|
|
712
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
713
|
+
function anySignal(..._0x1c24ea) {
|
|
714
|
+
const _0x22aa11 = {
|
|
715
|
+
_0x3bc9f5: 0x2ff,
|
|
716
|
+
_0x5c6fb3: 0x2e4
|
|
717
|
+
}, _0x598139 = _0x54fce, _0x276cad = new AbortController();
|
|
718
|
+
for (const _0x501586 of _0x1c24ea) {
|
|
719
|
+
if (_0x501586[_0x598139(_0x22aa11._0x3bc9f5)])
|
|
720
|
+
return _0x276cad[_0x598139(0x2e4)](_0x501586['reason']), _0x276cad['signal'];
|
|
721
|
+
_0x501586[_0x598139(0x27a)](_0x598139(_0x22aa11._0x5c6fb3), () => _0x276cad[_0x598139(0x2e4)](_0x501586[_0x598139(0x2db)]), {
|
|
722
|
+
'once': !![],
|
|
723
|
+
'signal': _0x276cad['signal']
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
return _0x276cad[_0x598139(0x2e5)];
|
|
727
|
+
}
|
|
728
|
+
function createInternalAgentClient(_0x58bb63) {
|
|
729
|
+
const _0x574f75 = {
|
|
730
|
+
_0x15da16: 0x21c,
|
|
731
|
+
_0x4e2685: 0x1e5,
|
|
732
|
+
_0x5e3082: 0x21c,
|
|
733
|
+
_0x59edb9: 0x2e8,
|
|
734
|
+
_0x587196: 0x260,
|
|
735
|
+
_0x24a8b4: 0x1e8
|
|
736
|
+
}, _0x4c5cea = {
|
|
737
|
+
_0x11fa28: 0x304,
|
|
738
|
+
_0x5f1eff: 0x278,
|
|
739
|
+
_0x534b0e: 0x1db,
|
|
740
|
+
_0x42a407: 0x1de,
|
|
741
|
+
_0x49d6ce: 0x262,
|
|
742
|
+
_0xf8dd7d: 0x262,
|
|
743
|
+
_0x3d04a1: 0x1d8,
|
|
744
|
+
_0x284c82: 0x1c0,
|
|
745
|
+
_0xd7cf40: 0x2ef,
|
|
746
|
+
_0x49987a: 0x26a,
|
|
747
|
+
_0x428bc4: 0x2ab,
|
|
748
|
+
_0x449b6d: 0x311,
|
|
749
|
+
_0x3aed21: 0x1f8,
|
|
750
|
+
_0x3b3d9f: 0x2f5,
|
|
751
|
+
_0x1d0679: 0x324,
|
|
752
|
+
_0x4c255a: 0x1db,
|
|
753
|
+
_0x45d946: 0x278,
|
|
754
|
+
_0x1ab6b0: 0x2ef,
|
|
755
|
+
_0x5d5850: 0x2b9,
|
|
756
|
+
_0x4ad5de: 0x2f7,
|
|
757
|
+
_0x5b6d1a: 0x204,
|
|
758
|
+
_0x2b65f2: 0x30f,
|
|
759
|
+
_0x151a98: 0x1cd,
|
|
760
|
+
_0x5b11af: 0x31e,
|
|
761
|
+
_0x142f32: 0x2c5,
|
|
762
|
+
_0x242253: 0x30f,
|
|
763
|
+
_0xe38586: 0x27d
|
|
764
|
+
}, _0x5e0fa5 = {
|
|
765
|
+
_0x374667: 0x2c5,
|
|
766
|
+
_0x3e7b53: 0x245,
|
|
767
|
+
_0xbef4b8: 0x1f4
|
|
768
|
+
}, _0x263f0a = {
|
|
769
|
+
_0x3510b3: 0x296,
|
|
770
|
+
_0xe4cb5a: 0x1d8
|
|
771
|
+
}, _0x40bf93 = {
|
|
772
|
+
_0xbf9558: 0x2b1,
|
|
773
|
+
_0x464cfb: 0x234,
|
|
774
|
+
_0x2a6777: 0x2ef,
|
|
775
|
+
_0x2730a6: 0x1b5,
|
|
776
|
+
_0x1b1e4d: 0x2c7
|
|
777
|
+
}, _0x2b7994 = {
|
|
778
|
+
_0x30c73c: 0x1ee,
|
|
779
|
+
_0x3f2632: 0x1c8,
|
|
780
|
+
_0x4564c2: 0x1e7,
|
|
781
|
+
_0x16b018: 0x2e1,
|
|
782
|
+
_0x367551: 0x332
|
|
783
|
+
}, _0x1fa51d = {
|
|
784
|
+
_0x4d9086: 0x1d0,
|
|
785
|
+
_0x27ea52: 0x1f9,
|
|
786
|
+
_0x14075f: 0x2e1
|
|
787
|
+
}, _0x1b12e3 = {
|
|
788
|
+
_0x5dd8d1: 0x1c8,
|
|
789
|
+
_0x419c0f: 0x2b5,
|
|
790
|
+
_0x2bc9e3: 0x20f,
|
|
791
|
+
_0x5be6bf: 0x1f9
|
|
792
|
+
}, _0xb1d01b = {
|
|
793
|
+
_0x527b4a: 0x1c8,
|
|
794
|
+
_0x49513c: 0x1f9
|
|
795
|
+
}, _0x907907 = {
|
|
796
|
+
_0x29bdfc: 0x2b5,
|
|
797
|
+
_0x15bf9e: 0x1be
|
|
798
|
+
}, _0x1bb01d = {
|
|
799
|
+
_0x4f1d97: 0x2f5,
|
|
800
|
+
_0x1f11c3: 0x1ee,
|
|
801
|
+
_0x1fcbba: 0x281,
|
|
802
|
+
_0x15005b: 0x1d5
|
|
803
|
+
}, _0x447f64 = {
|
|
804
|
+
_0x376263: 0x30d,
|
|
805
|
+
_0x9cd6b4: 0x2e0,
|
|
806
|
+
_0x2195a8: 0x2d2,
|
|
807
|
+
_0x477efc: 0x1f9,
|
|
808
|
+
_0x2eba75: 0x281,
|
|
809
|
+
_0x19d346: 0x2e1,
|
|
810
|
+
_0x3d8ab1: 0x332
|
|
811
|
+
}, _0x4d20a4 = {
|
|
812
|
+
_0x5afa84: 0x2e0,
|
|
813
|
+
_0x42271a: 0x1f9,
|
|
814
|
+
_0x4ccd43: 0x2e1,
|
|
815
|
+
_0x90f555: 0x23b
|
|
816
|
+
}, _0x5767f2 = {
|
|
817
|
+
_0x1c61fa: 0x1f9,
|
|
818
|
+
_0x5affba: 0x2e1,
|
|
819
|
+
_0x3ff88f: 0x332,
|
|
820
|
+
_0x1d5125: 0x225
|
|
821
|
+
}, _0x14c8c9 = { _0x43bd39: 0x279 }, _0x28c57c = {
|
|
822
|
+
_0x49458a: 0x327,
|
|
823
|
+
_0x1907b7: 0x29f,
|
|
824
|
+
_0x11ef6b: 0x218,
|
|
825
|
+
_0xc4924e: 0x1c8,
|
|
826
|
+
_0x2c6266: 0x2b5,
|
|
827
|
+
_0x414c47: 0x1f9,
|
|
828
|
+
_0x5b6fa8: 0x1d8,
|
|
829
|
+
_0x201588: 0x2b0
|
|
830
|
+
}, _0x5bd2f6 = {
|
|
831
|
+
_0x5a4337: 0x2f5,
|
|
832
|
+
_0x150fb1: 0x1d8,
|
|
833
|
+
_0x5d72ef: 0x245,
|
|
834
|
+
_0x17db19: 0x2a1,
|
|
835
|
+
_0x199f54: 0x296,
|
|
836
|
+
_0x2b8cc4: 0x296,
|
|
837
|
+
_0x575373: 0x1c8,
|
|
838
|
+
_0x1ab69b: 0x1b0,
|
|
839
|
+
_0x7fbf09: 0x1d5,
|
|
840
|
+
_0x14f31b: 0x24f
|
|
841
|
+
}, _0x5c753f = { _0x27179c: 0x1a3 }, _0x16dbb4 = {
|
|
842
|
+
_0x88de41: 0x24a,
|
|
843
|
+
_0x314d26: 0x24f,
|
|
844
|
+
_0x27a927: 0x1ed,
|
|
845
|
+
_0x2e60c8: 0x2ab,
|
|
846
|
+
_0x157a0b: 0x1d8
|
|
847
|
+
}, _0x5591f4 = {
|
|
848
|
+
_0x30dc6a: 0x26a,
|
|
849
|
+
_0x29f117: 0x2ab,
|
|
850
|
+
_0x5c3fed: 0x1d8,
|
|
851
|
+
_0xebfa0c: 0x24f
|
|
852
|
+
}, _0x3339ed = {
|
|
853
|
+
_0x3b7a54: 0x1f3,
|
|
854
|
+
_0x2f40a9: 0x2eb
|
|
855
|
+
}, _0x5057b5 = {
|
|
856
|
+
_0x12c8ea: 0x2e1,
|
|
857
|
+
_0x758d6d: 0x24f,
|
|
858
|
+
_0x2f3aa8: 0x320
|
|
859
|
+
}, _0x560119 = {
|
|
860
|
+
_0x416e2b: 0x270,
|
|
861
|
+
_0x1b4275: 0x2b1
|
|
862
|
+
}, _0x586f9d = {
|
|
863
|
+
_0x498882: 0x1d9,
|
|
864
|
+
_0x5b8fd2: 0x295,
|
|
865
|
+
_0x457d31: 0x1f9
|
|
866
|
+
}, _0x35dc26 = {
|
|
867
|
+
_0x164e27: 0x2e5,
|
|
868
|
+
_0x2c08ef: 0x23c,
|
|
869
|
+
_0x467ddc: 0x281
|
|
870
|
+
}, _0x5b0ae2 = {
|
|
871
|
+
_0x2f86f1: 0x2e5,
|
|
872
|
+
_0x1242ef: 0x23c,
|
|
873
|
+
_0x15d1c7: 0x2b1
|
|
874
|
+
}, _0x38e7ea = {
|
|
875
|
+
_0x5aea2a: 0x26e,
|
|
876
|
+
_0x56b1e1: 0x26e,
|
|
877
|
+
_0xb31ecf: 0x294,
|
|
878
|
+
_0x30c659: 0x31c,
|
|
879
|
+
_0x28e047: 0x2ef,
|
|
880
|
+
_0x27ec83: 0x2f5
|
|
881
|
+
}, _0x3974ec = { _0x118cb2: 0x201 }, _0x425407 = {
|
|
882
|
+
_0x1385f7: 0x2f4,
|
|
883
|
+
_0xda7a0b: 0x1f7,
|
|
884
|
+
_0x31c818: 0x312,
|
|
885
|
+
_0x562251: 0x271,
|
|
886
|
+
_0x3670e6: 0x2a5
|
|
887
|
+
}, _0x3c8627 = _0x54fce, _0x37ea3e = _0x58bb63[_0x3c8627(0x325)] ?? fetch, _0x2be008 = _0x58bb63[_0x3c8627(0x227)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1238de = typeof _0x58bb63[_0x3c8627(_0x574f75._0x15da16)] === _0x3c8627(_0x574f75._0x4e2685) && _0x58bb63[_0x3c8627(0x21c)] > 0x0 ? _0x58bb63[_0x3c8627(_0x574f75._0x5e3082)] : 0x0, _0x1f6611 = _0x58bb63[_0x3c8627(0x317)]?.['trim']() || void 0x0, _0x13f758 = _0x58bb63[_0x3c8627(_0x574f75._0x59edb9)]?.[_0x3c8627(0x312)]() || void 0x0, _0x2436e5 = _0x58bb63[_0x3c8627(0x27b)] === !![], _0x5c9be4 = _0x58bb63[_0x3c8627(0x2d0)]?.[_0x3c8627(0x312)]() || void 0x0, _0x2fe640 = _0x58bb63[_0x3c8627(0x2a4)]?.[_0x3c8627(0x312)]() || void 0x0, _0x421244 = createHeaders(_0x58bb63[_0x3c8627(_0x574f75._0x587196)]), _0x3d0438 = toHttpBaseUrl(_0x58bb63[_0x3c8627(_0x574f75._0x24a8b4)]);
|
|
888
|
+
let _0x58a285 = null;
|
|
889
|
+
const _0x13666c = new Map();
|
|
890
|
+
let _0x107c50 = _0x1238de, _0x5bd610 = _0x1238de;
|
|
891
|
+
function _0x4e6cb1(_0x2c32b8) {
|
|
892
|
+
const _0x212f41 = _0x3c8627, _0x21a1fe = _0x2c32b8[_0x212f41(_0x425407._0x1385f7)][_0x212f41(_0x425407._0xda7a0b)][_0x212f41(0x2ef)](_0x212f41(0x2b8)) ?? _0x212f41(0x2df), _0x2c8775 = _0x2c32b8[_0x212f41(0x2fe)][_0x212f41(_0x425407._0x31c818)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
893
|
+
return _0x212f41(0x241) + _0x2c32b8[_0x212f41(_0x425407._0x562251)] + _0x212f41(_0x425407._0x3670e6) + _0x2c32b8[_0x212f41(0x2f4)]['status'] + _0x212f41(0x286) + _0x21a1fe + ',\x20preview=' + _0x2c8775 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
894
|
+
}
|
|
895
|
+
async function _0x5d23d8(_0x502dbf, _0x2ff21f) {
|
|
896
|
+
const _0x52a45d = _0x3c8627, _0x362af1 = Buffer[_0x52a45d(_0x3974ec._0x118cb2)](await _0x2ff21f['arrayBuffer']())['toString'](_0x52a45d(0x222));
|
|
897
|
+
if (!_0x362af1[_0x52a45d(0x312)]())
|
|
898
|
+
return {};
|
|
899
|
+
try {
|
|
900
|
+
return JSON['parse'](_0x362af1);
|
|
901
|
+
} catch {
|
|
902
|
+
throw new Error(_0x4e6cb1({
|
|
903
|
+
'bodyText': _0x362af1,
|
|
904
|
+
'requestUrl': _0x502dbf,
|
|
905
|
+
'response': _0x2ff21f
|
|
906
|
+
}));
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function _0x9d512a(_0x3e6a94, _0xf15cc6) {
|
|
910
|
+
const _0x1039af = _0x3c8627, _0x371f6b = typeof _0xf15cc6[_0x1039af(_0x38e7ea._0x5aea2a)] === _0x1039af(0x2c5) ? _0xf15cc6[_0x1039af(_0x38e7ea._0x56b1e1)][_0x1039af(0x312)]() : '';
|
|
911
|
+
if (_0x371f6b)
|
|
912
|
+
return _0x371f6b;
|
|
913
|
+
const _0x27db9e = Date[_0x1039af(_0x38e7ea._0xb31ecf)]();
|
|
914
|
+
for (const [_0x3ce6a8, _0x20154a] of _0x13666c) {
|
|
915
|
+
_0x20154a[_0x1039af(0x2b4)] <= _0x27db9e && _0x13666c['delete'](_0x3ce6a8);
|
|
916
|
+
}
|
|
917
|
+
const _0x515d50 = {
|
|
918
|
+
..._0xf15cc6,
|
|
919
|
+
'idempotency_key': void 0x0
|
|
920
|
+
}, _0x5673be = createHash(_0x1039af(_0x38e7ea._0x30c659))[_0x1039af(0x282)](_0x3e6a94 + ':' + stableStringify(_0x515d50))[_0x1039af(0x1f0)](_0x1039af(0x21e)), _0x559bd5 = _0x3e6a94 + ':' + _0x5673be, _0x55637e = _0x13666c[_0x1039af(_0x38e7ea._0x28e047)](_0x559bd5);
|
|
921
|
+
if (_0x55637e)
|
|
922
|
+
return _0x55637e['value'];
|
|
923
|
+
const _0x3befe9 = 'auto:' + _0x3e6a94 + ':' + randomUUID();
|
|
924
|
+
return _0x13666c[_0x1039af(_0x38e7ea._0x27ec83)](_0x559bd5, {
|
|
925
|
+
'expiresAt': _0x27db9e + 0x5 * 0x3c * 0x3e8,
|
|
926
|
+
'value': _0x3befe9
|
|
927
|
+
}), _0x3befe9;
|
|
928
|
+
}
|
|
929
|
+
async function _0x588864(_0xd34240, _0x52d91f) {
|
|
930
|
+
const _0x4a6051 = _0x3c8627, _0x491e2d = new AbortController(), _0x4f3a59 = setTimeout(() => _0x491e2d[_0x4a6051(0x2e4)](), _0x2be008), _0x27a040 = _0x52d91f?.['signal'] ? anySignal(_0x52d91f[_0x4a6051(0x2e5)], _0x491e2d[_0x4a6051(0x2e5)]) : _0x491e2d[_0x4a6051(_0x5b0ae2._0x2f86f1)], _0x1d822f = '' + _0x3d0438 + _0xd34240;
|
|
931
|
+
try {
|
|
932
|
+
const _0x5292d5 = await _0x37ea3e(_0x1d822f, {
|
|
933
|
+
..._0x52d91f,
|
|
934
|
+
'signal': _0x27a040
|
|
935
|
+
}), _0x2c7b5a = await _0x5d23d8(_0x1d822f, _0x5292d5);
|
|
936
|
+
if (!_0x5292d5['ok'] || _0x2c7b5a['success'] === ![])
|
|
937
|
+
throw new Error(asErrorMessage(_0x2c7b5a[_0x4a6051(_0x5b0ae2._0x1242ef)], _0x4a6051(_0x5b0ae2._0x15d1c7) + _0x5292d5[_0x4a6051(0x281)]));
|
|
938
|
+
return _0x2c7b5a;
|
|
939
|
+
} finally {
|
|
940
|
+
clearTimeout(_0x4f3a59);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
async function _0x509799(_0x1ed5bd, _0x5f1252) {
|
|
944
|
+
const _0x19378b = _0x3c8627, _0x24a90e = new AbortController(), _0x23b704 = setTimeout(() => _0x24a90e[_0x19378b(0x2e4)](), _0x2be008), _0x5566a5 = _0x5f1252?.['signal'] ? anySignal(_0x5f1252[_0x19378b(_0x35dc26._0x164e27)], _0x24a90e[_0x19378b(0x2e5)]) : _0x24a90e['signal'], _0x8e7d90 = '' + _0x3d0438 + _0x1ed5bd;
|
|
945
|
+
try {
|
|
946
|
+
const _0x3293b9 = await _0x37ea3e(_0x8e7d90, {
|
|
947
|
+
..._0x5f1252,
|
|
948
|
+
'signal': _0x5566a5
|
|
949
|
+
}), _0x279fa5 = await _0x5d23d8(_0x8e7d90, _0x3293b9);
|
|
950
|
+
if (!_0x3293b9['ok'])
|
|
951
|
+
throw new Error(asErrorMessage(_0x279fa5[_0x19378b(_0x35dc26._0x2c08ef)], 'HTTP\x20' + _0x3293b9[_0x19378b(_0x35dc26._0x467ddc)]));
|
|
952
|
+
return _0x279fa5;
|
|
953
|
+
} finally {
|
|
954
|
+
clearTimeout(_0x23b704);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
async function _0x4eb18d(_0x2822c5) {
|
|
958
|
+
const _0x4d7493 = _0x3c8627;
|
|
959
|
+
if (!_0x13f758 || _0x2822c5 <= _0x5bd610)
|
|
960
|
+
return;
|
|
961
|
+
await _0x588864(_0x4d7493(_0x586f9d._0x498882) + encodeURIComponent(_0x13f758) + _0x4d7493(_0x586f9d._0x5b8fd2), {
|
|
962
|
+
'body': JSON[_0x4d7493(_0x586f9d._0x457d31)]({ 'lastSeenSeq': _0x2822c5 }),
|
|
963
|
+
'headers': _0x421244,
|
|
964
|
+
'method': _0x4d7493(0x242)
|
|
965
|
+
}), _0x5bd610 = _0x2822c5;
|
|
966
|
+
}
|
|
967
|
+
async function _0x4b057a(_0x2bf67d) {
|
|
968
|
+
const _0x51d661 = _0x3c8627;
|
|
969
|
+
if (!_0x1f6611 || !_0x5c9be4 || _0x2bf67d <= _0x5bd610)
|
|
970
|
+
return;
|
|
971
|
+
const _0xf23480 = await _0x37ea3e(_0x1f6611 + _0x51d661(0x2f3), {
|
|
972
|
+
'body': JSON[_0x51d661(0x1f9)]({
|
|
973
|
+
'last_seen_seq': _0x2bf67d,
|
|
974
|
+
'worker_session_id': _0x5c9be4
|
|
975
|
+
}),
|
|
976
|
+
'headers': { 'Content-Type': _0x51d661(_0x560119._0x416e2b) },
|
|
977
|
+
'method': _0x51d661(0x2e1)
|
|
978
|
+
});
|
|
979
|
+
if (!_0xf23480['ok'])
|
|
980
|
+
throw new Error(_0x51d661(_0x560119._0x1b4275) + _0xf23480['status']);
|
|
981
|
+
_0x5bd610 = _0x2bf67d;
|
|
982
|
+
}
|
|
983
|
+
async function _0x24f23c(_0x22ac40) {
|
|
984
|
+
const _0x19ddd3 = _0x3c8627, _0x5917e7 = parseTarget(_0x22ac40), _0x5b09d0 = await _0x588864('/internal/agent/' + _0x58bb63['agentId'] + '/resolve-channel', {
|
|
985
|
+
'body': JSON[_0x19ddd3(0x1f9)]({ 'target': _0x5917e7[_0x19ddd3(0x327)] }),
|
|
986
|
+
'headers': _0x421244,
|
|
987
|
+
'method': _0x19ddd3(_0x5057b5._0x12c8ea)
|
|
988
|
+
});
|
|
989
|
+
return {
|
|
990
|
+
'channelId': _0x5b09d0[_0x19ddd3(0x332)]?.['channelId'] ?? '',
|
|
991
|
+
'target': _0x5917e7[_0x19ddd3(_0x5057b5._0x758d6d)],
|
|
992
|
+
'task': _0x5b09d0[_0x19ddd3(0x332)]?.[_0x19ddd3(_0x5057b5._0x2f3aa8)],
|
|
993
|
+
'threadId': _0x5b09d0[_0x19ddd3(0x332)]?.['threadId'],
|
|
994
|
+
'threadNumber': _0x5b09d0[_0x19ddd3(0x332)]?.[_0x19ddd3(0x26a)]
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
async function _0x57c9e5(_0x500279 = {}) {
|
|
998
|
+
const _0x12644c = {
|
|
999
|
+
_0x3c4ef0: 0x1c8,
|
|
1000
|
+
_0x5020ac: 0x253,
|
|
1001
|
+
_0x47caa0: 0x2ae,
|
|
1002
|
+
_0x49df56: 0x1de,
|
|
1003
|
+
_0x5ab2a5: 0x332
|
|
1004
|
+
}, _0x541f8c = _0x3c8627;
|
|
1005
|
+
if (!_0x500279[_0x541f8c(_0x3339ed._0x3b7a54)] && _0x58a285)
|
|
1006
|
+
return _0x58a285;
|
|
1007
|
+
return _0x58a285 = (async () => {
|
|
1008
|
+
const _0x148de2 = _0x541f8c, _0x37e984 = await _0x588864(_0x148de2(_0x12644c._0x3c4ef0) + _0x58bb63['agentId'] + _0x148de2(_0x12644c._0x5020ac), {
|
|
1009
|
+
'headers': _0x421244,
|
|
1010
|
+
'method': _0x148de2(0x25d)
|
|
1011
|
+
}), _0x4b72d2 = _0x37e984[_0x148de2(0x332)]?.[_0x148de2(_0x12644c._0x47caa0)] ?? [], _0x265585 = _0x4b72d2[_0x148de2(0x1de)](_0x2272d2 => _0x2272d2[_0x148de2(0x2ea)]?.['type'] === _0x148de2(0x285))[_0x148de2(0x2c4)](_0x5f5299 => ({
|
|
1012
|
+
'id': _0x14aa05(_0x5f5299),
|
|
1013
|
+
'name': _0x4a086a(_0x5f5299)
|
|
1014
|
+
}))[_0x148de2(0x1de)](_0x366283 => _0x366283['id']), _0x52e6a4 = _0x4b72d2[_0x148de2(_0x12644c._0x49df56)](_0x12ad32 => _0x12ad32['participant']?.['type'] !== 'agent')[_0x148de2(0x2c4)](_0x26456f => ({
|
|
1015
|
+
'id': _0x14aa05(_0x26456f),
|
|
1016
|
+
'name': _0x4a086a(_0x26456f)
|
|
1017
|
+
}))[_0x148de2(0x1de)](_0x297c56 => _0x297c56['id']), _0x3ac3a1 = _0x37e984[_0x148de2(_0x12644c._0x5ab2a5)]?.[_0x148de2(0x22a)]['id'] ?? '';
|
|
1018
|
+
return {
|
|
1019
|
+
'agents': _0x265585,
|
|
1020
|
+
'channels': _0x37e984[_0x148de2(_0x12644c._0x5ab2a5)]?.[_0x148de2(0x262)] ?? [],
|
|
1021
|
+
'humans': _0x52e6a4,
|
|
1022
|
+
'serverId': _0x3ac3a1,
|
|
1023
|
+
'serverName': _0x37e984[_0x148de2(0x332)]?.[_0x148de2(0x22a)]['name'] ?? _0x3ac3a1
|
|
1024
|
+
};
|
|
1025
|
+
})()[_0x541f8c(_0x3339ed._0x2f40a9)](_0x361cff => {
|
|
1026
|
+
_0x58a285 = null;
|
|
1027
|
+
throw _0x361cff;
|
|
1028
|
+
}), _0x58a285;
|
|
1029
|
+
}
|
|
1030
|
+
function _0x4f8d49(_0x29f4fa, _0x9fc49a) {
|
|
1031
|
+
const _0xa77b5c = _0x3c8627;
|
|
1032
|
+
return _0x9fc49a['agents'][_0xa77b5c(0x26d)](_0x4caccb => _0x4caccb['id'] === _0x29f4fa || _0x4caccb[_0xa77b5c(0x29c)] === _0x29f4fa) ? _0xa77b5c(0x285) : _0xa77b5c(0x2d6);
|
|
1033
|
+
}
|
|
1034
|
+
function _0x273150(_0x43b011) {
|
|
1035
|
+
const _0x4032e0 = _0x3c8627;
|
|
1036
|
+
if (_0x43b011['threadNumber'] != null)
|
|
1037
|
+
return _0x43b011[_0x4032e0(0x24f)] + ':t' + _0x43b011[_0x4032e0(_0x5591f4._0x30dc6a)];
|
|
1038
|
+
if (_0x43b011[_0x4032e0(0x2ab)])
|
|
1039
|
+
return _0x43b011[_0x4032e0(0x24f)] + ':' + _0x43b011[_0x4032e0(_0x5591f4._0x29f117)];
|
|
1040
|
+
if (_0x43b011[_0x4032e0(0x1d8)])
|
|
1041
|
+
return _0x43b011[_0x4032e0(0x24f)] + ':' + _0x43b011[_0x4032e0(_0x5591f4._0x5c3fed)][_0x4032e0(0x2ee)](0x0, 0x8);
|
|
1042
|
+
return _0x43b011[_0x4032e0(_0x5591f4._0xebfa0c)];
|
|
1043
|
+
}
|
|
1044
|
+
function _0x506440(_0x373052, _0x2dd017) {
|
|
1045
|
+
const _0x2dafb6 = _0x3c8627;
|
|
1046
|
+
try {
|
|
1047
|
+
const _0x1b09e1 = parseTarget(_0x373052);
|
|
1048
|
+
if (_0x1b09e1['kind'] !== _0x2dafb6(_0x16dbb4._0x88de41) || _0x1b09e1[_0x2dafb6(_0x16dbb4._0x314d26)] !== _0x2dd017[_0x2dafb6(0x24f)])
|
|
1049
|
+
return ![];
|
|
1050
|
+
if (_0x2dd017['threadNumber'] != null && _0x1b09e1[_0x2dafb6(_0x16dbb4._0x27a927)] === 't' + _0x2dd017[_0x2dafb6(0x26a)])
|
|
1051
|
+
return !![];
|
|
1052
|
+
if (_0x2dd017[_0x2dafb6(0x2ab)])
|
|
1053
|
+
return _0x1b09e1['threadShortId'] === _0x2dd017[_0x2dafb6(0x2ab)] || _0x2dd017[_0x2dafb6(_0x16dbb4._0x2e60c8)][_0x2dafb6(0x228)](_0x1b09e1[_0x2dafb6(0x1ed)]);
|
|
1054
|
+
if (_0x2dd017[_0x2dafb6(_0x16dbb4._0x157a0b)])
|
|
1055
|
+
return _0x1b09e1['threadShortId'] === _0x2dd017[_0x2dafb6(0x1d8)] || _0x2dd017[_0x2dafb6(0x1d8)][_0x2dafb6(0x228)](_0x1b09e1['threadShortId']);
|
|
1056
|
+
return ![];
|
|
1057
|
+
} catch {
|
|
1058
|
+
return ![];
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
function _0x14aa05(_0x174945) {
|
|
1062
|
+
const _0x2d3e27 = _0x3c8627;
|
|
1063
|
+
return _0x174945[_0x2d3e27(_0x5c753f._0x27179c)]?.['participantId'] ?? _0x174945[_0x2d3e27(0x2ea)]?.['id'] ?? _0x174945['participantId'] ?? '';
|
|
1064
|
+
}
|
|
1065
|
+
function _0x4a086a(_0x572e61) {
|
|
1066
|
+
return _0x572e61['participant']?.['name'] ?? _0x14aa05(_0x572e61);
|
|
1067
|
+
}
|
|
1068
|
+
async function _0x6c5d9c(_0x28c37b) {
|
|
1069
|
+
const _0x539bd6 = _0x3c8627, _0x53faf6 = Math['min'](_0x28c37b[_0x539bd6(0x32f)] ?? 0x32, 0x64), _0x2cf01b = await _0x57c9e5(), _0x2efb45 = new URLSearchParams();
|
|
1070
|
+
_0x2efb45[_0x539bd6(_0x5bd2f6._0x5a4337)](_0x539bd6(0x32f), String(_0x53faf6));
|
|
1071
|
+
_0x28c37b[_0x539bd6(0x1d8)] ? (_0x2efb45[_0x539bd6(_0x5bd2f6._0x5a4337)](_0x539bd6(_0x5bd2f6._0x150fb1), _0x28c37b[_0x539bd6(0x1d8)]), _0x2efb45['set']('channelId', _0x28c37b[_0x539bd6(0x245)])) : _0x2efb45[_0x539bd6(0x2f5)]('channelId', _0x28c37b[_0x539bd6(_0x5bd2f6._0x5d72ef)]);
|
|
1072
|
+
_0x28c37b['before'] && _0x2efb45['set'](_0x539bd6(0x304), String(_0x28c37b[_0x539bd6(_0x5bd2f6._0x17db19)]));
|
|
1073
|
+
_0x28c37b[_0x539bd6(_0x5bd2f6._0x199f54)] !== void 0x0 && _0x2efb45[_0x539bd6(0x2f5)](_0x539bd6(_0x5bd2f6._0x2b8cc4), String(_0x28c37b[_0x539bd6(0x296)]));
|
|
1074
|
+
const _0x4ad6d0 = await _0x588864(_0x539bd6(_0x5bd2f6._0x575373) + _0x58bb63[_0x539bd6(0x2b5)] + _0x539bd6(_0x5bd2f6._0x1ab69b) + _0x2efb45[_0x539bd6(_0x5bd2f6._0x7fbf09)](), {
|
|
1075
|
+
'headers': _0x421244,
|
|
1076
|
+
'method': _0x539bd6(0x25d)
|
|
1077
|
+
}), _0x93d269 = (_0x4ad6d0[_0x539bd6(0x332)] ?? [])['map'](_0x557be0 => ({
|
|
1078
|
+
'attachments': (_0x557be0[_0x539bd6(0x2f7)] ?? [])[_0x539bd6(0x2c4)](_0x6461e2 => ({
|
|
1079
|
+
'filename': _0x6461e2[_0x539bd6(0x2cb)] ?? _0x6461e2['id'],
|
|
1080
|
+
'id': _0x6461e2['id']
|
|
1081
|
+
})),
|
|
1082
|
+
'content': _0x557be0['bodyMarkdown'] ?? '',
|
|
1083
|
+
'createdAt': _0x557be0['createdAt'],
|
|
1084
|
+
..._0x557be0['kind'] && _0x557be0['kind'] !== 'chat' ? { 'kind': _0x557be0[_0x539bd6(0x30f)] } : {},
|
|
1085
|
+
'messageId': _0x557be0['id'],
|
|
1086
|
+
'senderName': _0x557be0[_0x539bd6(0x259)],
|
|
1087
|
+
'senderType': _0x4f8d49(_0x557be0[_0x539bd6(0x259)], _0x2cf01b),
|
|
1088
|
+
'seq': _0x557be0[_0x539bd6(0x251)] ?? 0x0
|
|
1089
|
+
}));
|
|
1090
|
+
return {
|
|
1091
|
+
'channel': _0x28c37b[_0x539bd6(_0x5bd2f6._0x14f31b)],
|
|
1092
|
+
'hasMore': _0x4ad6d0[_0x539bd6(0x1b6)]?.[_0x539bd6(0x31a)] ?? ![],
|
|
1093
|
+
'messages': _0x93d269,
|
|
1094
|
+
'nextCursor': _0x4ad6d0[_0x539bd6(0x1b6)]?.[_0x539bd6(0x304)]
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
return {
|
|
1098
|
+
async 'sendMessage'(_0x4bd821) {
|
|
1099
|
+
const _0x56337c = _0x3c8627, _0x1f1870 = await _0x24f23c(_0x4bd821[_0x56337c(_0x28c57c._0x49458a)]), _0x41cf70 = _0x4bd821[_0x56337c(_0x28c57c._0x1907b7)][_0x56337c(_0x28c57c._0x11ef6b)]('@') ? extractMentionedParticipantIds(_0x4bd821[_0x56337c(_0x28c57c._0x1907b7)], await _0x57c9e5()) : [], _0x20dddd = await _0x588864(_0x56337c(_0x28c57c._0xc4924e) + _0x58bb63[_0x56337c(_0x28c57c._0x2c6266)] + _0x56337c(0x1cc), {
|
|
1100
|
+
'body': JSON[_0x56337c(_0x28c57c._0x414c47)]({
|
|
1101
|
+
'attachment_ids': _0x4bd821[_0x56337c(0x249)],
|
|
1102
|
+
'bodyMarkdown': _0x4bd821['content'],
|
|
1103
|
+
'channelId': _0x1f1870[_0x56337c(0x245)],
|
|
1104
|
+
..._0x41cf70['length'] > 0x0 ? { 'mentionedParticipantIds': _0x41cf70 } : {},
|
|
1105
|
+
'threadId': _0x1f1870[_0x56337c(_0x28c57c._0x5b6fa8)],
|
|
1106
|
+
..._0x4bd821[_0x56337c(_0x28c57c._0x201588)] ? { 'visibility': _0x4bd821[_0x56337c(_0x28c57c._0x201588)] } : {}
|
|
1107
|
+
}),
|
|
1108
|
+
'headers': _0x421244,
|
|
1109
|
+
'method': 'POST'
|
|
1110
|
+
});
|
|
1111
|
+
return { 'messageId': _0x20dddd['data']?.['id'] ?? '' };
|
|
1112
|
+
},
|
|
1113
|
+
async 'listSchedules'() {
|
|
1114
|
+
const _0x63528e = _0x3c8627, _0x5bc5e5 = await _0x588864(_0x63528e(_0x14c8c9._0x43bd39), {
|
|
1115
|
+
'headers': _0x421244,
|
|
1116
|
+
'method': _0x63528e(0x25d)
|
|
1117
|
+
});
|
|
1118
|
+
return _0x5bc5e5[_0x63528e(0x332)] ?? [];
|
|
1119
|
+
},
|
|
1120
|
+
async 'claimScheduleRun'(_0x4c68c6) {
|
|
1121
|
+
const _0x274a9b = _0x3c8627, _0x226cca = await _0x588864('/api/internal/schedules/claim', {
|
|
1122
|
+
'body': JSON[_0x274a9b(_0x5767f2._0x1c61fa)](_0x4c68c6),
|
|
1123
|
+
'headers': _0x421244,
|
|
1124
|
+
'method': _0x274a9b(_0x5767f2._0x5affba)
|
|
1125
|
+
});
|
|
1126
|
+
return _0x226cca[_0x274a9b(_0x5767f2._0x3ff88f)] ?? {
|
|
1127
|
+
'granted': ![],
|
|
1128
|
+
'runId': null,
|
|
1129
|
+
'schedule': null,
|
|
1130
|
+
'scheduledFor': _0x4c68c6[_0x274a9b(_0x5767f2._0x1d5125)]
|
|
1131
|
+
};
|
|
1132
|
+
},
|
|
1133
|
+
async 'startScheduleRun'(_0x19ac62) {
|
|
1134
|
+
const _0x6101d2 = _0x3c8627, _0x242e39 = await _0x588864(_0x6101d2(0x30d) + encodeURIComponent(_0x19ac62[_0x6101d2(_0x4d20a4._0x5afa84)]) + _0x6101d2(0x1ca), {
|
|
1135
|
+
'body': JSON[_0x6101d2(_0x4d20a4._0x42271a)]({}),
|
|
1136
|
+
'headers': _0x421244,
|
|
1137
|
+
'method': _0x6101d2(_0x4d20a4._0x4ccd43)
|
|
1138
|
+
});
|
|
1139
|
+
return _0x242e39['data'] ?? {
|
|
1140
|
+
'claimedByDaemonId': '',
|
|
1141
|
+
'id': _0x19ac62['runId'],
|
|
1142
|
+
'scheduleId': '',
|
|
1143
|
+
'status': _0x6101d2(_0x4d20a4._0x90f555)
|
|
1144
|
+
};
|
|
1145
|
+
},
|
|
1146
|
+
async 'finishScheduleRun'(_0x5a060d) {
|
|
1147
|
+
const _0x300179 = _0x3c8627, _0x3e441c = await _0x588864(_0x300179(_0x447f64._0x376263) + encodeURIComponent(_0x5a060d[_0x300179(_0x447f64._0x9cd6b4)]) + _0x300179(_0x447f64._0x2195a8), {
|
|
1148
|
+
'body': JSON[_0x300179(_0x447f64._0x477efc)]({
|
|
1149
|
+
'error': _0x5a060d[_0x300179(0x23c)],
|
|
1150
|
+
'resultJson': _0x5a060d[_0x300179(0x1ab)],
|
|
1151
|
+
'status': _0x5a060d[_0x300179(_0x447f64._0x2eba75)]
|
|
1152
|
+
}),
|
|
1153
|
+
'headers': _0x421244,
|
|
1154
|
+
'method': _0x300179(_0x447f64._0x19d346)
|
|
1155
|
+
});
|
|
1156
|
+
return _0x3e441c[_0x300179(_0x447f64._0x3d8ab1)] ?? {
|
|
1157
|
+
'nextRunAt': null,
|
|
1158
|
+
'run': {
|
|
1159
|
+
'claimedByDaemonId': '',
|
|
1160
|
+
'id': _0x5a060d[_0x300179(_0x447f64._0x9cd6b4)],
|
|
1161
|
+
'scheduleId': '',
|
|
1162
|
+
'status': _0x5a060d['status']
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
},
|
|
1166
|
+
async 'listTasks'(_0xfd5ad1) {
|
|
1167
|
+
const _0x253405 = _0x3c8627, _0x2cb7c6 = new URLSearchParams();
|
|
1168
|
+
return _0x2cb7c6[_0x253405(_0x1bb01d._0x4f1d97)](_0x253405(_0x1bb01d._0x1f11c3), _0xfd5ad1[_0x253405(_0x1bb01d._0x1f11c3)]), _0xfd5ad1[_0x253405(_0x1bb01d._0x1fcbba)] && _0x2cb7c6[_0x253405(_0x1bb01d._0x4f1d97)](_0x253405(0x281), _0xfd5ad1[_0x253405(0x281)]), _0x509799(_0x253405(0x1c8) + _0x58bb63[_0x253405(0x2b5)] + _0x253405(0x220) + _0x2cb7c6[_0x253405(_0x1bb01d._0x15005b)](), {
|
|
1169
|
+
'headers': _0x421244,
|
|
1170
|
+
'method': 'GET'
|
|
1171
|
+
});
|
|
1172
|
+
},
|
|
1173
|
+
async 'createTasks'(_0x543f7a) {
|
|
1174
|
+
const _0xe93f2a = _0x3c8627;
|
|
1175
|
+
return _0x509799('/internal/agent/' + _0x58bb63[_0xe93f2a(_0x907907._0x29bdfc)] + _0xe93f2a(_0x907907._0x15bf9e), {
|
|
1176
|
+
'body': JSON['stringify']({
|
|
1177
|
+
..._0x543f7a,
|
|
1178
|
+
'idempotency_key': _0x9d512a('create_tasks', _0x543f7a)
|
|
1179
|
+
}),
|
|
1180
|
+
'headers': _0x421244,
|
|
1181
|
+
'method': _0xe93f2a(0x2e1)
|
|
1182
|
+
});
|
|
1183
|
+
},
|
|
1184
|
+
async 'claimTasks'(_0x47dbd8) {
|
|
1185
|
+
const _0x585634 = _0x3c8627;
|
|
1186
|
+
return _0x509799(_0x585634(_0xb1d01b._0x527b4a) + _0x58bb63[_0x585634(0x2b5)] + _0x585634(0x1fa), {
|
|
1187
|
+
'body': JSON[_0x585634(_0xb1d01b._0x49513c)]({
|
|
1188
|
+
..._0x47dbd8,
|
|
1189
|
+
'idempotency_key': _0x9d512a(_0x585634(0x226), _0x47dbd8)
|
|
1190
|
+
}),
|
|
1191
|
+
'headers': _0x421244,
|
|
1192
|
+
'method': _0x585634(0x2e1)
|
|
1193
|
+
});
|
|
1194
|
+
},
|
|
1195
|
+
async 'unclaimTask'(_0x53703c) {
|
|
1196
|
+
const _0x15d8a1 = _0x3c8627;
|
|
1197
|
+
return _0x509799(_0x15d8a1(_0x1b12e3._0x5dd8d1) + _0x58bb63[_0x15d8a1(_0x1b12e3._0x419c0f)] + _0x15d8a1(_0x1b12e3._0x2bc9e3), {
|
|
1198
|
+
'body': JSON[_0x15d8a1(_0x1b12e3._0x5be6bf)]({
|
|
1199
|
+
..._0x53703c,
|
|
1200
|
+
'idempotency_key': _0x9d512a(_0x15d8a1(0x273), _0x53703c)
|
|
1201
|
+
}),
|
|
1202
|
+
'headers': _0x421244,
|
|
1203
|
+
'method': _0x15d8a1(0x2e1)
|
|
1204
|
+
});
|
|
1205
|
+
},
|
|
1206
|
+
async 'updateTaskStatus'(_0x5d3ada) {
|
|
1207
|
+
const _0x38df19 = _0x3c8627;
|
|
1208
|
+
return _0x509799(_0x38df19(0x1c8) + _0x58bb63[_0x38df19(0x2b5)] + _0x38df19(_0x1fa51d._0x4d9086), {
|
|
1209
|
+
'body': JSON[_0x38df19(_0x1fa51d._0x27ea52)]({
|
|
1210
|
+
..._0x5d3ada,
|
|
1211
|
+
'idempotency_key': _0x9d512a(_0x38df19(0x1af), _0x5d3ada)
|
|
1212
|
+
}),
|
|
1213
|
+
'headers': _0x421244,
|
|
1214
|
+
'method': _0x38df19(_0x1fa51d._0x14075f)
|
|
1215
|
+
});
|
|
1216
|
+
},
|
|
1217
|
+
async 'uploadFile'(_0x4edf6a) {
|
|
1218
|
+
const _0x4760d8 = _0x3c8627, _0x390471 = await _0x24f23c(_0x4edf6a[_0x4760d8(_0x2b7994._0x30c73c)]);
|
|
1219
|
+
if (_0x390471[_0x4760d8(0x1d8)])
|
|
1220
|
+
throw new Error(_0x4760d8(0x28c));
|
|
1221
|
+
const _0x4e783b = await _0x588864(_0x4760d8(_0x2b7994._0x3f2632) + _0x58bb63[_0x4760d8(0x2b5)] + '/upload', {
|
|
1222
|
+
'body': JSON[_0x4760d8(0x1f9)]({
|
|
1223
|
+
'channel': _0x390471[_0x4760d8(0x327)],
|
|
1224
|
+
'contentBase64': _0x4edf6a[_0x4760d8(_0x2b7994._0x4564c2)],
|
|
1225
|
+
'contentType': _0x4edf6a[_0x4760d8(0x234)],
|
|
1226
|
+
'originalFilename': _0x4edf6a['filename']
|
|
1227
|
+
}),
|
|
1228
|
+
'headers': _0x421244,
|
|
1229
|
+
'method': _0x4760d8(_0x2b7994._0x16b018)
|
|
1230
|
+
});
|
|
1231
|
+
return {
|
|
1232
|
+
'attachmentId': _0x4e783b['data']?.['id'] ?? '',
|
|
1233
|
+
'filename': _0x4e783b[_0x4760d8(_0x2b7994._0x367551)]?.['originalFilename'] ?? _0x4edf6a['filename'],
|
|
1234
|
+
'sizeBytes': _0x4e783b[_0x4760d8(0x332)]?.['sizeBytes'] ?? 0x0
|
|
1235
|
+
};
|
|
1236
|
+
},
|
|
1237
|
+
async 'downloadAttachment'(_0x5e00ef) {
|
|
1238
|
+
const _0x51e37a = _0x3c8627, _0xb70d48 = await _0x588864('/api/attachments/' + _0x5e00ef, {
|
|
1239
|
+
'headers': _0x421244,
|
|
1240
|
+
'method': _0x51e37a(0x25d)
|
|
1241
|
+
}), _0x3bef7d = new AbortController(), _0x3ba40e = setTimeout(() => _0x3bef7d[_0x51e37a(0x2e4)](), _0x2be008);
|
|
1242
|
+
try {
|
|
1243
|
+
const _0x5e06ef = await _0x37ea3e(_0x3d0438 + _0x51e37a(0x23e) + _0x5e00ef + '/content', {
|
|
1244
|
+
'headers': _0x421244,
|
|
1245
|
+
'method': 'GET',
|
|
1246
|
+
'signal': _0x3bef7d[_0x51e37a(0x2e5)]
|
|
1247
|
+
});
|
|
1248
|
+
if (!_0x5e06ef['ok'])
|
|
1249
|
+
throw new Error(_0x51e37a(_0x40bf93._0xbf9558) + _0x5e06ef['status']);
|
|
1250
|
+
return {
|
|
1251
|
+
'contentType': _0xb70d48['data']?.[_0x51e37a(_0x40bf93._0x464cfb)] ?? _0x5e06ef['headers'][_0x51e37a(_0x40bf93._0x2a6777)](_0x51e37a(0x2b8)) ?? _0x51e37a(0x263),
|
|
1252
|
+
'data': Buffer[_0x51e37a(0x201)](await _0x5e06ef[_0x51e37a(_0x40bf93._0x2730a6)]()),
|
|
1253
|
+
'originalFilename': _0xb70d48[_0x51e37a(0x332)]?.[_0x51e37a(_0x40bf93._0x1b1e4d)]
|
|
1254
|
+
};
|
|
1255
|
+
} finally {
|
|
1256
|
+
clearTimeout(_0x3ba40e);
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
async 'listServer'() {
|
|
1260
|
+
return _0x57c9e5({ 'forceRefresh': !![] });
|
|
1261
|
+
},
|
|
1262
|
+
async 'readHistory'(_0x5c5475) {
|
|
1263
|
+
const _0x16914c = _0x3c8627, _0x427233 = await _0x24f23c(_0x5c5475[_0x16914c(0x1ee)]);
|
|
1264
|
+
return _0x6c5d9c({
|
|
1265
|
+
'after': _0x5c5475[_0x16914c(_0x263f0a._0x3510b3)],
|
|
1266
|
+
'before': _0x5c5475[_0x16914c(0x2a1)],
|
|
1267
|
+
'channelId': _0x427233['channelId'],
|
|
1268
|
+
'channelTarget': _0x427233['target'],
|
|
1269
|
+
'limit': _0x5c5475[_0x16914c(0x32f)],
|
|
1270
|
+
'threadId': _0x427233[_0x16914c(_0x263f0a._0xe4cb5a)]
|
|
1271
|
+
});
|
|
1272
|
+
},
|
|
1273
|
+
'resolveTarget': _0x24f23c,
|
|
1274
|
+
async 'checkMessages'() {
|
|
1275
|
+
const _0x557e19 = _0x3c8627, _0x381d4e = new URLSearchParams();
|
|
1276
|
+
_0x381d4e['set'](_0x557e19(0x1dd), String(_0x107c50));
|
|
1277
|
+
const _0x82a0cf = _0x381d4e[_0x557e19(0x1d5)](), _0x1ea653 = await _0x588864('/internal/agent/' + _0x58bb63[_0x557e19(0x2b5)] + '/receive' + (_0x82a0cf ? '?' + _0x82a0cf : ''), {
|
|
1278
|
+
'headers': _0x421244,
|
|
1279
|
+
'method': _0x557e19(0x25d)
|
|
1280
|
+
}), _0x255a6c = _0x1ea653['data'] ?? [], _0x2f857d = _0x1ea653['meta']?.[_0x557e19(_0x4c5cea._0x11fa28)], _0xe62f67 = _0x2f857d !== void 0x0 ? Math['max'](_0x107c50, _0x2f857d) : _0x255a6c['length'] > 0x0 ? Math['max'](_0x107c50, _0x255a6c[_0x255a6c[_0x557e19(_0x4c5cea._0x5f1eff)] - 0x1][_0x557e19(_0x4c5cea._0x534b0e)]) : _0x107c50, _0x46e2d4 = _0x255a6c[_0x557e19(_0x4c5cea._0x42a407)](_0x34ef43 => _0x34ef43[_0x557e19(0x32e)] === _0x557e19(0x30c)), _0x4b5652 = _0x2fe640 === void 0x0 && _0x2436e5;
|
|
1281
|
+
let _0xd24cbc = await _0x57c9e5(), _0x56d3f7 = new Map(_0xd24cbc[_0x557e19(_0x4c5cea._0x49d6ce)][_0x557e19(0x2c4)](_0x1654dd => [
|
|
1282
|
+
_0x1654dd['id'],
|
|
1283
|
+
_0x1654dd
|
|
1284
|
+
]));
|
|
1285
|
+
const _0x35659e = _0x46e2d4[_0x557e19(0x26d)](_0x3bb48c => {
|
|
1286
|
+
const _0x3e2b21 = _0x557e19, _0x426a77 = asRecord(_0x3bb48c['payloadJson']), _0x4d2a1c = typeof _0x426a77?.[_0x3e2b21(0x245)] === _0x3e2b21(_0x5e0fa5._0x374667) ? _0x426a77[_0x3e2b21(_0x5e0fa5._0x3e7b53)] : '';
|
|
1287
|
+
return Boolean(_0x4d2a1c) && !_0x56d3f7[_0x3e2b21(_0x5e0fa5._0xbef4b8)](_0x4d2a1c);
|
|
1288
|
+
});
|
|
1289
|
+
_0x35659e && (_0xd24cbc = await _0x57c9e5({ 'forceRefresh': !![] }), _0x56d3f7 = new Map(_0xd24cbc[_0x557e19(_0x4c5cea._0xf8dd7d)][_0x557e19(0x2c4)](_0x5476c7 => [
|
|
1290
|
+
_0x5476c7['id'],
|
|
1291
|
+
_0x5476c7
|
|
1292
|
+
])));
|
|
1293
|
+
const _0x151d52 = new Map();
|
|
1294
|
+
for (const _0x26d468 of _0x46e2d4) {
|
|
1295
|
+
const _0xe73d8c = asRecord(_0x26d468[_0x557e19(0x324)]), _0x182f29 = typeof _0xe73d8c[_0x557e19(0x245)] === _0x557e19(0x2c5) ? _0xe73d8c['channelId'] : '';
|
|
1296
|
+
if (!_0x182f29)
|
|
1297
|
+
continue;
|
|
1298
|
+
const _0x4a6490 = typeof _0xe73d8c[_0x557e19(_0x4c5cea._0x3d04a1)] === _0x557e19(0x2c5) ? _0xe73d8c['threadId'] : void 0x0, _0x488a5f = typeof _0xe73d8c[_0x557e19(0x2ab)] === 'string' ? _0xe73d8c['rootMessageId'] : void 0x0, _0x23df7a = typeof _0xe73d8c['threadNumber'] === _0x557e19(0x1e5) && Number[_0x557e19(_0x4c5cea._0x284c82)](_0xe73d8c['threadNumber']) ? _0xe73d8c[_0x557e19(0x26a)] : void 0x0, _0x455b67 = Boolean(_0x4a6490 && (!_0x488a5f || _0x26d468[_0x557e19(0x2ba)] !== _0x488a5f)), _0x38b430 = _0x455b67 ? _0x182f29 + ':' + _0x4a6490 : _0x182f29, _0xbfd728 = _0x151d52[_0x557e19(_0x4c5cea._0xd7cf40)](_0x38b430) ?? {
|
|
1299
|
+
'aggregateIds': [],
|
|
1300
|
+
'channelId': _0x182f29,
|
|
1301
|
+
'entries': new Map(),
|
|
1302
|
+
'isThreadReply': _0x455b67,
|
|
1303
|
+
'rootMessageId': _0x488a5f,
|
|
1304
|
+
'threadNumber': _0x23df7a,
|
|
1305
|
+
'threadId': _0x455b67 ? _0x4a6490 : void 0x0
|
|
1306
|
+
};
|
|
1307
|
+
_0xbfd728[_0x557e19(_0x4c5cea._0x49987a)] == null && _0x23df7a != null && (_0xbfd728[_0x557e19(_0x4c5cea._0x49987a)] = _0x23df7a), !_0xbfd728['rootMessageId'] && _0x488a5f && (_0xbfd728[_0x557e19(_0x4c5cea._0x428bc4)] = _0x488a5f), _0xbfd728[_0x557e19(_0x4c5cea._0x449b6d)][_0x557e19(_0x4c5cea._0x3aed21)](_0x26d468[_0x557e19(0x2ba)]), _0xbfd728[_0x557e19(0x212)][_0x557e19(_0x4c5cea._0x3b3d9f)](_0x26d468[_0x557e19(0x2ba)], {
|
|
1308
|
+
'payloadJson': _0x26d468[_0x557e19(_0x4c5cea._0x1d0679)],
|
|
1309
|
+
'seq': _0x26d468[_0x557e19(_0x4c5cea._0x4c255a)]
|
|
1310
|
+
}), _0x151d52[_0x557e19(0x2f5)](_0x38b430, _0xbfd728);
|
|
1311
|
+
}
|
|
1312
|
+
const _0x27cc37 = [];
|
|
1313
|
+
for (const _0x8f2b26 of _0x151d52[_0x557e19(0x2e9)]()) {
|
|
1314
|
+
const {
|
|
1315
|
+
channelId: _0x52abde,
|
|
1316
|
+
threadId: _0x19be6b,
|
|
1317
|
+
rootMessageId: _0x143ee0,
|
|
1318
|
+
threadNumber: _0x7f6dbf,
|
|
1319
|
+
aggregateIds: _0x3d5322,
|
|
1320
|
+
isThreadReply: _0x566d84,
|
|
1321
|
+
entries: _0x31ca06
|
|
1322
|
+
} = _0x8f2b26, _0x119f13 = _0x56d3f7[_0x557e19(0x2ef)](_0x52abde), _0x11507f = _0x119f13?.['name'] ?? _0x52abde, _0x66b88a = _0x119f13?.[_0x557e19(0x30f)] === 'dm' ? 'dm:' + _0x11507f : '#' + _0x11507f, _0xd7c0c2 = {
|
|
1323
|
+
'channelTarget': _0x66b88a,
|
|
1324
|
+
'rootMessageId': _0x143ee0,
|
|
1325
|
+
'threadId': _0x19be6b,
|
|
1326
|
+
'threadNumber': _0x7f6dbf
|
|
1327
|
+
}, _0x49c900 = await _0x6c5d9c({
|
|
1328
|
+
'channelId': _0x52abde,
|
|
1329
|
+
'channelTarget': _0x66b88a,
|
|
1330
|
+
'limit': Math[_0x557e19(0x289)](_0x3d5322[_0x557e19(_0x4c5cea._0x45d946)], 0x32),
|
|
1331
|
+
'threadId': _0x19be6b
|
|
1332
|
+
}), _0x211d79 = new Map(_0x49c900['messages'][_0x557e19(0x2c4)](_0x55180e => [
|
|
1333
|
+
_0x55180e['messageId'],
|
|
1334
|
+
_0x55180e
|
|
1335
|
+
])), _0x53e9f4 = _0x19be6b ? _0x273150(_0xd7c0c2) : _0x66b88a, _0x257d31 = _0x2fe640 ? _0x566d84 && _0x506440(_0x2fe640, _0xd7c0c2) : !![], _0x486596 = _0x566d84 ? _0x257d31 && _0x2fe640 ? _0x2fe640 : _0x53e9f4 : _0x66b88a;
|
|
1336
|
+
for (const _0x3dd4c9 of _0x3d5322) {
|
|
1337
|
+
if (!_0x257d31)
|
|
1338
|
+
continue;
|
|
1339
|
+
const _0x268132 = _0x31ca06[_0x557e19(_0x4c5cea._0x1ab6b0)](_0x3dd4c9), _0x2f9c21 = _0x268132 ? asRecord(_0x268132['payloadJson']) : void 0x0, _0x1ceb17 = _0x2f9c21?.['taskDeliveryMode'] === _0x557e19(_0x4c5cea._0x5d5850);
|
|
1340
|
+
if (_0x4b5652 && _0x1ceb17)
|
|
1341
|
+
continue;
|
|
1342
|
+
const _0x47d11e = _0x211d79[_0x557e19(_0x4c5cea._0x1ab6b0)](_0x3dd4c9);
|
|
1343
|
+
if (_0x47d11e) {
|
|
1344
|
+
_0x27cc37[_0x557e19(0x1f8)]({
|
|
1345
|
+
'attachments': _0x47d11e[_0x557e19(_0x4c5cea._0x4ad5de)],
|
|
1346
|
+
'content': _0x47d11e['content'],
|
|
1347
|
+
'createdAt': _0x47d11e[_0x557e19(_0x4c5cea._0x5b6d1a)],
|
|
1348
|
+
..._0x47d11e[_0x557e19(_0x4c5cea._0x2b65f2)] ? { 'kind': _0x47d11e[_0x557e19(0x30f)] } : {},
|
|
1349
|
+
'messageId': _0x47d11e[_0x557e19(_0x4c5cea._0x151a98)],
|
|
1350
|
+
'senderName': _0x47d11e[_0x557e19(_0x4c5cea._0x5b11af)],
|
|
1351
|
+
'senderType': _0x47d11e[_0x557e19(0x1da)],
|
|
1352
|
+
'target': _0x486596,
|
|
1353
|
+
..._0x1ceb17 ? { 'targetedTask': !![] } : {}
|
|
1354
|
+
});
|
|
1355
|
+
continue;
|
|
1356
|
+
}
|
|
1357
|
+
if (_0x268132) {
|
|
1358
|
+
const _0x419894 = typeof _0x2f9c21?.['senderParticipantId'] === _0x557e19(0x2c5) ? _0x2f9c21[_0x557e19(0x259)] : '', _0x58c88c = typeof _0x2f9c21?.[_0x557e19(0x240)] === _0x557e19(_0x4c5cea._0x142f32) ? _0x2f9c21[_0x557e19(0x240)] : '', _0x42ec95 = typeof _0x2f9c21?.[_0x557e19(0x30f)] === _0x557e19(_0x4c5cea._0x142f32) && _0x2f9c21[_0x557e19(_0x4c5cea._0x242253)] !== _0x557e19(_0x4c5cea._0xe38586) ? _0x2f9c21['kind'] : void 0x0;
|
|
1359
|
+
_0x419894 && _0x58c88c && _0x27cc37[_0x557e19(_0x4c5cea._0x3aed21)]({
|
|
1360
|
+
'attachments': [],
|
|
1361
|
+
'content': _0x58c88c,
|
|
1362
|
+
'createdAt': new Date()['toISOString'](),
|
|
1363
|
+
..._0x42ec95 ? { 'kind': _0x42ec95 } : {},
|
|
1364
|
+
'messageId': _0x3dd4c9,
|
|
1365
|
+
'senderName': _0x419894,
|
|
1366
|
+
'senderType': _0x4f8d49(_0x419894, _0xd24cbc),
|
|
1367
|
+
'target': _0x486596,
|
|
1368
|
+
..._0x1ceb17 ? { 'targetedTask': !![] } : {}
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
if (_0xe62f67 > 0x0) {
|
|
1374
|
+
if (_0x13f758)
|
|
1375
|
+
await _0x4eb18d(_0xe62f67);
|
|
1376
|
+
else
|
|
1377
|
+
_0x5c9be4 && await _0x4b057a(_0xe62f67);
|
|
1378
|
+
}
|
|
1379
|
+
return _0xe62f67 > _0x107c50 && (_0x107c50 = _0xe62f67), { 'messages': _0x2fe640 ? _0x27cc37 : _0x4b5652 ? _0x27cc37['filter'](_0x288fbf => _0x288fbf['targetedTask'] !== !![]) : _0x27cc37 };
|
|
1380
|
+
}
|
|
1384
1381
|
};
|
|
1385
|
-
return _0x511f();
|
|
1386
1382
|
}
|
|
1387
|
-
function
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1383
|
+
function toLocalTime(_0x4564a3) {
|
|
1384
|
+
const _0x2dc7e3 = {
|
|
1385
|
+
_0x2e142b: 0x2e6,
|
|
1386
|
+
_0x55c514: 0x1a9
|
|
1387
|
+
}, _0x3c4b93 = _0x54fce, _0x401b9d = new Date(_0x4564a3);
|
|
1388
|
+
if (Number[_0x3c4b93(0x229)](_0x401b9d[_0x3c4b93(0x20a)]()))
|
|
1389
|
+
return _0x4564a3;
|
|
1390
|
+
const _0x8a68ae = _0x373044 => String(_0x373044)[_0x3c4b93(0x322)](0x2, '0');
|
|
1391
|
+
return _0x401b9d['getFullYear']() + '-' + _0x8a68ae(_0x401b9d[_0x3c4b93(0x301)]() + 0x1) + '-' + _0x8a68ae(_0x401b9d[_0x3c4b93(0x1ec)]()) + '\x20' + _0x8a68ae(_0x401b9d[_0x3c4b93(0x28a)]()) + ':' + _0x8a68ae(_0x401b9d[_0x3c4b93(_0x2dc7e3._0x2e142b)]()) + ':' + _0x8a68ae(_0x401b9d[_0x3c4b93(_0x2dc7e3._0x55c514)]());
|
|
1392
|
+
}
|
|
1393
|
+
function formatAttachmentSuffix(_0x44bfe4) {
|
|
1394
|
+
const _0x4e4cb4 = {
|
|
1395
|
+
_0x25229d: 0x278,
|
|
1396
|
+
_0x4f9091: 0x2c4,
|
|
1397
|
+
_0x319b27: 0x1f2
|
|
1398
|
+
}, _0x45373c = _0x54fce;
|
|
1399
|
+
if (!_0x44bfe4 || _0x44bfe4[_0x45373c(_0x4e4cb4._0x25229d)] === 0x0)
|
|
1394
1400
|
return '';
|
|
1395
|
-
return '\x20[' +
|
|
1401
|
+
return '\x20[' + _0x44bfe4['length'] + _0x45373c(0x2a2) + (_0x44bfe4[_0x45373c(0x278)] > 0x1 ? 's' : '') + ':\x20' + _0x44bfe4[_0x45373c(_0x4e4cb4._0x4f9091)](_0x5405c0 => _0x5405c0[_0x45373c(0x2cb)] + _0x45373c(0x2d9) + _0x5405c0['id'] + ')')[_0x45373c(_0x4e4cb4._0x319b27)](',\x20') + _0x45373c(0x319);
|
|
1396
1402
|
}
|
|
1397
|
-
function formatCheckMessages(
|
|
1398
|
-
const
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
},
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
})[_0x16a85c(_0x37f368._0x27ee05)]('\x0a');
|
|
1403
|
+
function formatCheckMessages(_0x5c28ea) {
|
|
1404
|
+
const _0x54b6aa = {
|
|
1405
|
+
_0x130726: 0x22f,
|
|
1406
|
+
_0x504dda: 0x1f2
|
|
1407
|
+
}, _0x536076 = {
|
|
1408
|
+
_0x106644: 0x1da,
|
|
1409
|
+
_0x10b993: 0x30f,
|
|
1410
|
+
_0x33fbc3: 0x30f,
|
|
1411
|
+
_0x456c68: 0x266,
|
|
1412
|
+
_0x4a24b9: 0x22d,
|
|
1413
|
+
_0xfe568d: 0x1ef,
|
|
1414
|
+
_0x148892: 0x2ee
|
|
1415
|
+
}, _0x2fb8ef = _0x54fce;
|
|
1416
|
+
if (_0x5c28ea[_0x2fb8ef(0x278)] === 0x0)
|
|
1417
|
+
return _0x2fb8ef(_0x54b6aa._0x130726);
|
|
1418
|
+
return _0x5c28ea[_0x2fb8ef(0x2c4)](_0x6dd674 => {
|
|
1419
|
+
const _0x352b1e = _0x2fb8ef, _0x341173 = _0x6dd674[_0x352b1e(_0x536076._0x106644)] === 'agent' ? _0x352b1e(0x1fe) : '', _0x338316 = _0x6dd674[_0x352b1e(_0x536076._0x10b993)] && _0x6dd674[_0x352b1e(_0x536076._0x33fbc3)] !== 'chat' ? _0x352b1e(_0x536076._0x456c68) + _0x6dd674[_0x352b1e(0x30f)] : '';
|
|
1420
|
+
return _0x352b1e(_0x536076._0x4a24b9) + _0x6dd674[_0x352b1e(0x327)] + _0x352b1e(_0x536076._0xfe568d) + _0x6dd674['messageId'][_0x352b1e(_0x536076._0x148892)](0x0, 0x8) + _0x352b1e(0x252) + toLocalTime(_0x6dd674[_0x352b1e(0x204)]) + _0x341173 + _0x338316 + _0x352b1e(0x235) + _0x6dd674['senderName'] + ':\x20' + _0x6dd674[_0x352b1e(0x29f)] + formatAttachmentSuffix(_0x6dd674[_0x352b1e(0x2f7)]);
|
|
1421
|
+
})[_0x2fb8ef(_0x54b6aa._0x504dda)]('\x0a');
|
|
1417
1422
|
}
|
|
1418
|
-
function formatHistory(
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1423
|
+
function formatHistory(_0x13fecb) {
|
|
1424
|
+
const _0x276120 = {
|
|
1425
|
+
_0x18d25d: 0x278,
|
|
1426
|
+
_0x40a2e9: 0x2cd,
|
|
1427
|
+
_0x1c612d: 0x2fd,
|
|
1428
|
+
_0x1d46d9: 0x1ee,
|
|
1429
|
+
_0x123cb7: 0x1e4
|
|
1430
|
+
}, _0x4e013d = {
|
|
1431
|
+
_0x13e4be: 0x1da,
|
|
1432
|
+
_0x17ac5a: 0x1fe,
|
|
1433
|
+
_0x3ca160: 0x266,
|
|
1434
|
+
_0x104d1c: 0x1cd,
|
|
1435
|
+
_0x3c8938: 0x31e,
|
|
1436
|
+
_0x1d9e9c: 0x29f
|
|
1437
|
+
}, _0x2ed055 = _0x54fce;
|
|
1438
|
+
if (_0x13fecb[_0x2ed055(0x1e4)][_0x2ed055(0x278)] === 0x0)
|
|
1439
|
+
return _0x2ed055(0x2fd) + _0x13fecb['channel'] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1440
|
+
const _0x2631df = _0x13fecb[_0x2ed055(0x1e4)][_0x2ed055(0x2c4)](_0x256aa9 => {
|
|
1441
|
+
const _0x428982 = _0x2ed055, _0x4f1aa5 = _0x256aa9[_0x428982(_0x4e013d._0x13e4be)] === _0x428982(0x285) ? _0x428982(_0x4e013d._0x17ac5a) : '', _0x333a7a = _0x256aa9[_0x428982(0x30f)] && _0x256aa9[_0x428982(0x30f)] !== 'chat' ? _0x428982(_0x4e013d._0x3ca160) + _0x256aa9[_0x428982(0x30f)] : '';
|
|
1442
|
+
return '[seq=' + _0x256aa9['seq'] + '\x20msg=' + _0x256aa9[_0x428982(_0x4e013d._0x104d1c)] + _0x428982(0x252) + toLocalTime(_0x256aa9[_0x428982(0x204)]) + _0x4f1aa5 + _0x333a7a + ']\x20@' + _0x256aa9[_0x428982(_0x4e013d._0x3c8938)] + ':\x20' + _0x256aa9[_0x428982(_0x4e013d._0x1d9e9c)] + formatAttachmentSuffix(_0x256aa9['attachments']);
|
|
1443
|
+
})[_0x2ed055(0x1f2)]('\x0a'), _0x3acb0f = _0x13fecb[_0x2ed055(0x31a)] && _0x13fecb[_0x2ed055(0x330)] ? _0x2ed055(0x21b) + _0x13fecb[_0x2ed055(0x1e4)][_0x2ed055(_0x276120._0x18d25d)] + _0x2ed055(_0x276120._0x40a2e9) + _0x13fecb[_0x2ed055(0x330)] + _0x2ed055(0x1bd) : '';
|
|
1444
|
+
return _0x2ed055(_0x276120._0x1c612d) + _0x13fecb[_0x2ed055(_0x276120._0x1d46d9)] + '\x20(' + _0x13fecb[_0x2ed055(_0x276120._0x123cb7)][_0x2ed055(0x278)] + _0x2ed055(0x25e) + _0x2631df + _0x3acb0f;
|
|
1436
1445
|
}
|
|
1437
|
-
function formatServerDirectory(
|
|
1438
|
-
const
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1446
|
+
function formatServerDirectory(_0x551daf) {
|
|
1447
|
+
const _0x5262b6 = {
|
|
1448
|
+
_0x4146b1: 0x262,
|
|
1449
|
+
_0x28b8ba: 0x278,
|
|
1450
|
+
_0x5da312: 0x262,
|
|
1451
|
+
_0x39907e: 0x2c4,
|
|
1452
|
+
_0x922456: 0x278,
|
|
1453
|
+
_0x4527b0: 0x1f2,
|
|
1454
|
+
_0x5cae94: 0x236,
|
|
1455
|
+
_0xf2343d: 0x250
|
|
1456
|
+
}, _0x12bd4e = _0x54fce, _0x6d07b1 = _0x551daf[_0x12bd4e(_0x5262b6._0x4146b1)][_0x12bd4e(_0x5262b6._0x28b8ba)] > 0x0 ? _0x551daf[_0x12bd4e(_0x5262b6._0x5da312)][_0x12bd4e(_0x5262b6._0x39907e)](_0x64b3cf => _0x64b3cf[_0x12bd4e(0x2af)] ? _0x12bd4e(0x269) + _0x64b3cf['name'] + '\x20—\x20' + _0x64b3cf[_0x12bd4e(0x2af)] : _0x12bd4e(0x269) + _0x64b3cf['name'])['join']('\x0a') : _0x12bd4e(0x236), _0x23e7a9 = _0x551daf[_0x12bd4e(0x302)][_0x12bd4e(_0x5262b6._0x922456)] > 0x0 ? _0x551daf['agents']['map'](_0x1e11d9 => _0x12bd4e(0x254) + _0x1e11d9[_0x12bd4e(0x29c)])[_0x12bd4e(_0x5262b6._0x4527b0)]('\x0a') : _0x12bd4e(0x236), _0x301b6f = _0x551daf[_0x12bd4e(0x2dd)]['length'] > 0x0 ? _0x551daf['humans']['map'](_0x438e51 => _0x12bd4e(0x254) + _0x438e51[_0x12bd4e(0x29c)])['join']('\x0a') : _0x12bd4e(_0x5262b6._0x5cae94);
|
|
1447
1457
|
return [
|
|
1448
|
-
|
|
1458
|
+
_0x12bd4e(0x23a) + _0x551daf['serverName'],
|
|
1449
1459
|
'',
|
|
1450
|
-
|
|
1451
|
-
|
|
1460
|
+
_0x12bd4e(0x1c1),
|
|
1461
|
+
_0x6d07b1,
|
|
1452
1462
|
'',
|
|
1453
1463
|
'###\x20Agents',
|
|
1454
|
-
|
|
1464
|
+
_0x23e7a9,
|
|
1455
1465
|
'',
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
][
|
|
1466
|
+
_0x12bd4e(_0x5262b6._0xf2343d),
|
|
1467
|
+
_0x301b6f
|
|
1468
|
+
]['join']('\x0a');
|
|
1459
1469
|
}
|
|
1460
|
-
function formatUploadResult(
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
return _0x3d5caf(0x264) + _0x364420['filename'] + '\x20(' + (_0x364420['sizeBytes'] / 0x400)[_0x3d5caf(_0x2c09e9._0x15137c)](0x1) + _0x3d5caf(_0x2c09e9._0x5336aa) + _0x364420[_0x3d5caf(_0x2c09e9._0x3f73c1)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1470
|
+
function formatUploadResult(_0x18c17b) {
|
|
1471
|
+
const _0x33806f = {
|
|
1472
|
+
_0x53b639: 0x1e3,
|
|
1473
|
+
_0x5c370c: 0x2ad
|
|
1474
|
+
}, _0x2c6f89 = _0x54fce;
|
|
1475
|
+
return 'File\x20uploaded:\x20' + _0x18c17b[_0x2c6f89(0x2cb)] + '\x20(' + (_0x18c17b[_0x2c6f89(_0x33806f._0x53b639)] / 0x400)[_0x2c6f89(0x2cf)](0x1) + _0x2c6f89(_0x33806f._0x5c370c) + _0x18c17b[_0x2c6f89(0x24c)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1467
1476
|
}
|
|
1468
|
-
function formatViewFileResult(
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1471
|
-
_0x3837b8: 0x1a2
|
|
1472
|
-
}, _0x7e6d0f = _0x602e11;
|
|
1473
|
-
return _0x47fc10 ? _0x7e6d0f(_0x523083._0x59463c) + _0x660595 : _0x7e6d0f(_0x523083._0x3837b8) + _0x660595;
|
|
1477
|
+
function formatViewFileResult(_0x4848c6, _0x28c521) {
|
|
1478
|
+
const _0x3dbdcc = _0x54fce;
|
|
1479
|
+
return _0x28c521 ? _0x3dbdcc(0x1a1) + _0x4848c6 : 'Downloaded\x20to:\x20' + _0x4848c6;
|
|
1474
1480
|
}
|
|
1475
|
-
function formatTaskList(
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1481
|
+
function formatTaskList(_0x302208, _0x168102) {
|
|
1482
|
+
const _0x5902ca = {
|
|
1483
|
+
_0x59652d: 0x2c4,
|
|
1484
|
+
_0x3e1d15: 0x1f2
|
|
1485
|
+
}, _0x4ee501 = {
|
|
1486
|
+
_0x1203e1: 0x247,
|
|
1487
|
+
_0x5af76e: 0x2de,
|
|
1488
|
+
_0x4c97d1: 0x1cd,
|
|
1489
|
+
_0x4bd0c9: 0x284,
|
|
1490
|
+
_0x5b9c33: 0x1cd,
|
|
1491
|
+
_0x205334: 0x1f4,
|
|
1492
|
+
_0x12dfaf: 0x299
|
|
1493
|
+
}, _0x16e039 = _0x54fce;
|
|
1494
|
+
if (_0x302208['length'] === 0x0)
|
|
1495
|
+
return _0x16e039(0x2cc);
|
|
1496
|
+
return _0x302208[_0x16e039(_0x5902ca._0x59652d)](_0x2256ff => {
|
|
1497
|
+
const _0x479cfb = _0x16e039, _0x4664b1 = _0x2256ff[_0x479cfb(_0x4ee501._0x1203e1)] == null ? '(legacy)' : _0x2256ff[_0x479cfb(_0x4ee501._0x5af76e)] != null ? '#' + _0x2256ff[_0x479cfb(0x247)] + '.' + _0x2256ff[_0x479cfb(0x2de)] : '#' + _0x2256ff[_0x479cfb(0x247)], _0x5a54a7 = _0x2256ff[_0x479cfb(_0x4ee501._0x4c97d1)] ? _0x479cfb(_0x4ee501._0x4bd0c9) + _0x2256ff[_0x479cfb(_0x4ee501._0x5b9c33)] : '', _0x92f79e = _0x168102 && _0x2256ff['taskNumber'] != null && !_0x2256ff['subtaskNumber'] && _0x168102[_0x479cfb(_0x4ee501._0x205334)](_0x2256ff[_0x479cfb(0x247)]) ? _0x479cfb(0x20d) : '', _0x17db2f = _0x2256ff[_0x479cfb(0x25b)] != null && _0x2256ff[_0x479cfb(0x25b)] > 0x0 ? '\x20(' + (_0x2256ff[_0x479cfb(_0x4ee501._0x12dfaf)] ?? 0x0) + '/' + _0x2256ff[_0x479cfb(0x25b)] + _0x479cfb(0x1b9) : '';
|
|
1498
|
+
return _0x4664b1 + '\x20[' + _0x2256ff['status'] + ']\x20' + _0x2256ff['title'] + _0x17db2f + _0x5a54a7 + _0x92f79e;
|
|
1499
|
+
})[_0x16e039(_0x5902ca._0x3e1d15)]('\x0a');
|
|
1489
1500
|
}
|
|
1490
|
-
function formatCreatedTasks(
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1501
|
+
function formatCreatedTasks(_0x51654e) {
|
|
1502
|
+
const _0x22de98 = {
|
|
1503
|
+
_0x57d355: 0x2c4,
|
|
1504
|
+
_0x5171c0: 0x1f2
|
|
1505
|
+
}, _0x350881 = {
|
|
1506
|
+
_0x451728: 0x247,
|
|
1507
|
+
_0x22d6ee: 0x2de,
|
|
1508
|
+
_0x51c011: 0x1cd
|
|
1509
|
+
}, _0x1cea7f = _0x54fce;
|
|
1510
|
+
if (_0x51654e['length'] === 0x0)
|
|
1511
|
+
return _0x1cea7f(0x2da);
|
|
1512
|
+
return _0x51654e[_0x1cea7f(_0x22de98._0x57d355)](_0xa663fa => {
|
|
1513
|
+
const _0x4cd471 = _0x1cea7f, _0x2be8fe = _0xa663fa['taskNumber'] == null ? '(legacy)' : _0xa663fa['subtaskNumber'] != null ? '#' + _0xa663fa[_0x4cd471(_0x350881._0x451728)] + '.' + _0xa663fa[_0x4cd471(_0x350881._0x22d6ee)] : '#' + _0xa663fa['taskNumber'], _0x352680 = _0xa663fa['messageId'] ? '\x20message=' + _0xa663fa[_0x4cd471(_0x350881._0x51c011)] : '';
|
|
1514
|
+
return _0x2be8fe + '\x20' + _0xa663fa[_0x4cd471(0x328)] + _0x352680;
|
|
1515
|
+
})[_0x1cea7f(_0x22de98._0x5171c0)]('\x0a');
|
|
1503
1516
|
}
|
|
1504
|
-
function formatClaimTaskResults(
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
]['filter'](Boolean)[_0x293745(_0x55917e._0x4a1957)]('\x20');
|
|
1536
|
-
return _0x2f951d + _0x293745(_0x55917e._0x17b393) + _0x3b7ef6 + '\x20' + _0x18e891 + _0x293745(0x26c);
|
|
1517
|
+
function formatClaimTaskResults(_0x3c631f) {
|
|
1518
|
+
const _0x373757 = { _0x15f52e: 0x2c4 }, _0x200666 = {
|
|
1519
|
+
_0x4f2184: 0x247,
|
|
1520
|
+
_0x8d7e65: 0x1f1,
|
|
1521
|
+
_0x2e042b: 0x287,
|
|
1522
|
+
_0x2d0269: 0x280,
|
|
1523
|
+
_0x5b577e: 0x210,
|
|
1524
|
+
_0x122e1a: 0x23f,
|
|
1525
|
+
_0x53f1f5: 0x1e0,
|
|
1526
|
+
_0x376371: 0x1de,
|
|
1527
|
+
_0x5a7bea: 0x1e6,
|
|
1528
|
+
_0x2ec10b: 0x247,
|
|
1529
|
+
_0x4c2ca8: 0x219,
|
|
1530
|
+
_0x31ea0d: 0x2db,
|
|
1531
|
+
_0x1f3784: 0x28f
|
|
1532
|
+
}, _0x3e6388 = _0x54fce;
|
|
1533
|
+
if (_0x3c631f['length'] === 0x0)
|
|
1534
|
+
return 'No\x20tasks\x20claimed.';
|
|
1535
|
+
return _0x3c631f[_0x3e6388(_0x373757._0x15f52e)](_0x3da6b1 => {
|
|
1536
|
+
const _0x337076 = _0x3e6388;
|
|
1537
|
+
if (_0x3da6b1['success']) {
|
|
1538
|
+
const _0x4019ad = _0x3da6b1['taskNumber'] == null ? '(legacy)' : _0x3da6b1['subtaskNumber'] != null ? '#' + _0x3da6b1[_0x337076(_0x200666._0x4f2184)] + '.' + _0x3da6b1[_0x337076(0x2de)] : '#' + _0x3da6b1[_0x337076(_0x200666._0x4f2184)], _0x324e69 = _0x3da6b1['messageId'] ? _0x337076(0x284) + _0x3da6b1['messageId'] : '';
|
|
1539
|
+
if (_0x3da6b1[_0x337076(_0x200666._0x8d7e65)]) {
|
|
1540
|
+
const _0x320d62 = [
|
|
1541
|
+
_0x337076(_0x200666._0x2e042b),
|
|
1542
|
+
_0x3da6b1[_0x337076(_0x200666._0x2d0269)] ? _0x337076(_0x200666._0x5b577e) : null,
|
|
1543
|
+
_0x3da6b1[_0x337076(_0x200666._0x122e1a)] ? 'executionMode=' + _0x3da6b1[_0x337076(0x23f)] : null,
|
|
1544
|
+
_0x3da6b1['threadTarget'] ? 'threadTarget=' + _0x3da6b1[_0x337076(0x2fa)] : null,
|
|
1545
|
+
_0x3da6b1['workerDisposition'] ? _0x337076(_0x200666._0x53f1f5) + _0x3da6b1['workerDisposition'] : null
|
|
1546
|
+
][_0x337076(_0x200666._0x376371)](Boolean)['join']('\x20');
|
|
1547
|
+
return _0x4019ad + _0x337076(0x2f9) + _0x324e69 + '\x20' + _0x320d62 + _0x337076(0x1ba);
|
|
1537
1548
|
}
|
|
1538
|
-
const
|
|
1539
|
-
return
|
|
1549
|
+
const _0x19504d = _0x3da6b1['workerHandoffError'] ? _0x337076(0x2bb) + _0x3da6b1[_0x337076(_0x200666._0x5a7bea)] : '';
|
|
1550
|
+
return _0x4019ad + _0x337076(0x2f9) + _0x324e69 + _0x19504d;
|
|
1540
1551
|
}
|
|
1541
|
-
const
|
|
1542
|
-
return
|
|
1543
|
-
})[
|
|
1552
|
+
const _0x43fdb4 = _0x3da6b1[_0x337076(_0x200666._0x2ec10b)] == null ? _0x3da6b1[_0x337076(0x1cd)] ?? '(unknown)' : '#' + _0x3da6b1[_0x337076(_0x200666._0x4f2184)];
|
|
1553
|
+
return _0x43fdb4 + _0x337076(_0x200666._0x4c2ca8) + (_0x3da6b1[_0x337076(_0x200666._0x31ea0d)] ?? _0x337076(_0x200666._0x1f3784));
|
|
1554
|
+
})[_0x3e6388(0x1f2)]('\x0a');
|
|
1544
1555
|
}
|
|
1545
|
-
function formatUnclaimTaskResult(
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1556
|
+
function formatUnclaimTaskResult(_0x138350) {
|
|
1557
|
+
const _0x7ac31c = {
|
|
1558
|
+
_0x15d91c: 0x2c1,
|
|
1559
|
+
_0x586282: 0x2de,
|
|
1560
|
+
_0x35b4bb: 0x2de,
|
|
1561
|
+
_0x4ac6f1: 0x1e2
|
|
1562
|
+
}, _0x44c8ec = _0x54fce, _0x9b22f5 = _0x138350[_0x44c8ec(0x247)] == null ? _0x44c8ec(_0x7ac31c._0x15d91c) : _0x138350[_0x44c8ec(_0x7ac31c._0x586282)] != null ? '#' + _0x138350[_0x44c8ec(0x247)] + '.' + _0x138350[_0x44c8ec(_0x7ac31c._0x35b4bb)] : '#' + _0x138350[_0x44c8ec(0x247)];
|
|
1563
|
+
return _0x9b22f5 + _0x44c8ec(_0x7ac31c._0x4ac6f1) + _0x138350['status'];
|
|
1548
1564
|
}
|
|
1549
|
-
function formatUpdateTaskStatusResult(
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
},
|
|
1555
|
-
return
|
|
1565
|
+
function formatUpdateTaskStatusResult(_0x33f0c9) {
|
|
1566
|
+
const _0x5581c4 = {
|
|
1567
|
+
_0x541a72: 0x2de,
|
|
1568
|
+
_0x2f2cb7: 0x247,
|
|
1569
|
+
_0x545174: 0x281
|
|
1570
|
+
}, _0x2c2b5c = _0x54fce, _0x5bd349 = _0x33f0c9['taskNumber'] == null ? _0x2c2b5c(0x2c1) : _0x33f0c9[_0x2c2b5c(_0x5581c4._0x541a72)] != null ? '#' + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x2f2cb7)] + '.' + _0x33f0c9['subtaskNumber'] : '#' + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x2f2cb7)];
|
|
1571
|
+
return _0x5bd349 + _0x2c2b5c(0x1e2) + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x545174)];
|
|
1556
1572
|
}
|
|
1557
1573
|
function getChatBridgeToolDefinitions() {
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1574
|
+
const _0x4d6f08 = {
|
|
1575
|
+
_0xd67619: 0x27c,
|
|
1576
|
+
_0xd95da6: 0x1d2,
|
|
1577
|
+
_0x5c93b2: 0x2ec,
|
|
1578
|
+
_0x33bfc7: 0x226,
|
|
1579
|
+
_0x5e300b: 0x1af,
|
|
1580
|
+
_0x453559: 0x2f0,
|
|
1581
|
+
_0x27972e: 0x1a2
|
|
1582
|
+
}, _0x4c52f2 = _0x54fce;
|
|
1563
1583
|
return [
|
|
1564
|
-
{ 'name':
|
|
1565
|
-
{ 'name':
|
|
1566
|
-
{ 'name':
|
|
1567
|
-
{ 'name':
|
|
1568
|
-
{ 'name':
|
|
1569
|
-
{ 'name':
|
|
1570
|
-
{ 'name':
|
|
1571
|
-
{ 'name':
|
|
1572
|
-
{ 'name':
|
|
1573
|
-
{ 'name':
|
|
1574
|
-
{ 'name':
|
|
1575
|
-
{ 'name':
|
|
1576
|
-
{ 'name':
|
|
1577
|
-
{ 'name':
|
|
1578
|
-
{ 'name':
|
|
1579
|
-
{ 'name':
|
|
1584
|
+
{ 'name': _0x4c52f2(0x2a3) },
|
|
1585
|
+
{ 'name': 'check_messages' },
|
|
1586
|
+
{ 'name': _0x4c52f2(0x2fb) },
|
|
1587
|
+
{ 'name': _0x4c52f2(0x2d8) },
|
|
1588
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0xd67619) },
|
|
1589
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0xd95da6) },
|
|
1590
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0x5c93b2) },
|
|
1591
|
+
{ 'name': _0x4c52f2(0x314) },
|
|
1592
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0x33bfc7) },
|
|
1593
|
+
{ 'name': _0x4c52f2(0x273) },
|
|
1594
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0x5e300b) },
|
|
1595
|
+
{ 'name': _0x4c52f2(0x223) },
|
|
1596
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0x453559) },
|
|
1597
|
+
{ 'name': _0x4c52f2(_0x4d6f08._0x27972e) },
|
|
1598
|
+
{ 'name': _0x4c52f2(0x318) },
|
|
1599
|
+
{ 'name': _0x4c52f2(0x20b) }
|
|
1580
1600
|
];
|
|
1581
1601
|
}
|
|
1582
|
-
function createChatBridgeHandlers(
|
|
1583
|
-
const
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
},
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
const _0x4fe7fd = _0xd828;
|
|
1711
|
-
if (!_0x4bd367[_0x4fe7fd(0x254)] || !_0x4bd367[_0x4fe7fd(0x204)] || _0x4bd367[_0x4fe7fd(0x27e)] || _0x4bd367[_0x4fe7fd(0x201)] !== !![])
|
|
1602
|
+
function createChatBridgeHandlers(_0x2c49b7) {
|
|
1603
|
+
const _0x2ce565 = { _0x1235fb: 0x307 }, _0x58ab7a = {
|
|
1604
|
+
_0x59fd4a: 0x317,
|
|
1605
|
+
_0x5c8aa9: 0x270,
|
|
1606
|
+
_0x25bfdb: 0x2db,
|
|
1607
|
+
_0x23c89a: 0x1fd,
|
|
1608
|
+
_0x54b0d0: 0x23c
|
|
1609
|
+
}, _0x235431 = {
|
|
1610
|
+
_0x532b17: 0x2b5,
|
|
1611
|
+
_0x306db7: 0x317,
|
|
1612
|
+
_0x44e6f8: 0x1ce,
|
|
1613
|
+
_0x2bd67a: 0x291
|
|
1614
|
+
}, _0xdfbf23 = {
|
|
1615
|
+
_0x58227d: 0x2e1,
|
|
1616
|
+
_0x2ce916: 0x1fb,
|
|
1617
|
+
_0x32f24d: 0x214,
|
|
1618
|
+
_0x516e69: 0x1fd
|
|
1619
|
+
}, _0x546ae9 = {
|
|
1620
|
+
_0x6cd2da: 0x1d1,
|
|
1621
|
+
_0x3fb063: 0x1fd,
|
|
1622
|
+
_0x453508: 0x2f6,
|
|
1623
|
+
_0xdf2a4b: 0x1ce,
|
|
1624
|
+
_0x4b4211: 0x1f9
|
|
1625
|
+
}, _0x5b8292 = {
|
|
1626
|
+
_0x4188af: 0x1d1,
|
|
1627
|
+
_0x494ba8: 0x1ce,
|
|
1628
|
+
_0x2ebc8d: 0x23d,
|
|
1629
|
+
_0x111bd0: 0x281
|
|
1630
|
+
}, _0x23078a = {
|
|
1631
|
+
_0x2f6c96: 0x32a,
|
|
1632
|
+
_0x156445: 0x2d5,
|
|
1633
|
+
_0x1a8d80: 0x297,
|
|
1634
|
+
_0x1129b7: 0x234
|
|
1635
|
+
}, _0x5ef0f7 = {
|
|
1636
|
+
_0x115b28: 0x1a6,
|
|
1637
|
+
_0x17343a: 0x27e
|
|
1638
|
+
}, _0x2c1fbf = { _0x24b045: 0x2d5 }, _0x488320 = {
|
|
1639
|
+
_0x2c84c3: 0x1f5,
|
|
1640
|
+
_0x14b461: 0x321
|
|
1641
|
+
}, _0xef4f06 = {
|
|
1642
|
+
_0x5deba9: 0x2d5,
|
|
1643
|
+
_0x3ebfb6: 0x30b
|
|
1644
|
+
}, _0x232b0f = {
|
|
1645
|
+
_0x20bc6f: 0x1bb,
|
|
1646
|
+
_0x51651e: 0x317,
|
|
1647
|
+
_0x1200af: 0x232,
|
|
1648
|
+
_0x1dad32: 0x2b5,
|
|
1649
|
+
_0x36d437: 0x2a6,
|
|
1650
|
+
_0x4c0be7: 0x261,
|
|
1651
|
+
_0x4329e4: 0x228,
|
|
1652
|
+
_0x29d568: 0x261,
|
|
1653
|
+
_0x2636ed: 0x244,
|
|
1654
|
+
_0xfffb30: 0x244,
|
|
1655
|
+
_0x311b41: 0x247
|
|
1656
|
+
}, _0x3d41ce = {
|
|
1657
|
+
_0x18ccec: 0x2d5,
|
|
1658
|
+
_0x103e9e: 0x28d,
|
|
1659
|
+
_0x2483ba: 0x1e4,
|
|
1660
|
+
_0x35d855: 0x1de
|
|
1661
|
+
}, _0xd34657 = {
|
|
1662
|
+
_0x24d925: 0x317,
|
|
1663
|
+
_0x562e19: 0x2d5,
|
|
1664
|
+
_0x4ba3c7: 0x320,
|
|
1665
|
+
_0x5d26ea: 0x26a,
|
|
1666
|
+
_0x108eaf: 0x327,
|
|
1667
|
+
_0x244602: 0x2ee,
|
|
1668
|
+
_0x137458: 0x32d,
|
|
1669
|
+
_0x161660: 0x32b,
|
|
1670
|
+
_0x1f2e59: 0x1d6,
|
|
1671
|
+
_0x5aa01b: 0x1f2,
|
|
1672
|
+
_0x5c4724: 0x22d,
|
|
1673
|
+
_0x572613: 0x255,
|
|
1674
|
+
_0x1d6128: 0x1d7,
|
|
1675
|
+
_0x34a181: 0x231,
|
|
1676
|
+
_0x2f31b7: 0x2b2,
|
|
1677
|
+
_0x113d13: 0x331,
|
|
1678
|
+
_0x5c6ac1: 0x208,
|
|
1679
|
+
_0x1a3700: 0x267,
|
|
1680
|
+
_0x48cc28: 0x2c3,
|
|
1681
|
+
_0x58ee0f: 0x1f2,
|
|
1682
|
+
_0x302524: 0x217,
|
|
1683
|
+
_0x433a8b: 0x2b0,
|
|
1684
|
+
_0x54b10f: 0x2c2
|
|
1685
|
+
}, _0xb5e401 = {
|
|
1686
|
+
_0x13832c: 0x28d,
|
|
1687
|
+
_0x5abc9d: 0x317,
|
|
1688
|
+
_0x2c3760: 0x232,
|
|
1689
|
+
_0x8beef9: 0x2b5,
|
|
1690
|
+
_0x352ae4: 0x1fd,
|
|
1691
|
+
_0x2ebf7d: 0x261
|
|
1692
|
+
}, _0x5659cc = {
|
|
1693
|
+
_0x59cbb1: 0x2b5,
|
|
1694
|
+
_0x27c2c8: 0x281,
|
|
1695
|
+
_0x49c166: 0x2a6
|
|
1696
|
+
}, _0x4b2eb0 = {
|
|
1697
|
+
_0x36cdfc: 0x317,
|
|
1698
|
+
_0x1c8521: 0x28d,
|
|
1699
|
+
_0x58dccf: 0x1ee,
|
|
1700
|
+
_0x4b8297: 0x26a,
|
|
1701
|
+
_0x2cc973: 0x24f,
|
|
1702
|
+
_0x430bd2: 0x2d5,
|
|
1703
|
+
_0x2d8c3e: 0x244,
|
|
1704
|
+
_0x16d1b0: 0x247,
|
|
1705
|
+
_0x1cfa57: 0x2c1,
|
|
1706
|
+
_0x4c33e5: 0x247,
|
|
1707
|
+
_0x4604fc: 0x2c6,
|
|
1708
|
+
_0x3ea825: 0x326,
|
|
1709
|
+
_0x482b73: 0x25c,
|
|
1710
|
+
_0x4180b4: 0x29f,
|
|
1711
|
+
_0x3039e1: 0x1cd,
|
|
1712
|
+
_0x3f8ed3: 0x1d7,
|
|
1713
|
+
_0x1ecfe6: 0x21f,
|
|
1714
|
+
_0x2ed734: 0x317,
|
|
1715
|
+
_0x4856d9: 0x2e1,
|
|
1716
|
+
_0x5d82d8: 0x1f9,
|
|
1717
|
+
_0x4fa73a: 0x2b5,
|
|
1718
|
+
_0x270e88: 0x2d1,
|
|
1719
|
+
_0x2ee298: 0x1fd,
|
|
1720
|
+
_0xa259e2: 0x23c,
|
|
1721
|
+
_0x1aba03: 0x29d,
|
|
1722
|
+
_0x4a964f: 0x27f,
|
|
1723
|
+
_0x411229: 0x208,
|
|
1724
|
+
_0x53b2dc: 0x267,
|
|
1725
|
+
_0x50954a: 0x1ad
|
|
1726
|
+
}, _0xbb1c94 = _0x54fce;
|
|
1727
|
+
async function _0x16583b(_0x34ee32) {
|
|
1728
|
+
const _0x51f403 = _0xd0d8;
|
|
1729
|
+
if (!_0x2c49b7[_0x51f403(_0x4b2eb0._0x36cdfc)] || !_0x2c49b7[_0x51f403(0x2b5)] || _0x2c49b7[_0x51f403(_0x4b2eb0._0x1c8521)] || _0x2c49b7[_0x51f403(0x27b)] !== !![])
|
|
1712
1730
|
return null;
|
|
1713
|
-
const
|
|
1714
|
-
if (
|
|
1731
|
+
const _0x8fa2d7 = parseTarget(_0x34ee32['channel']);
|
|
1732
|
+
if (_0x8fa2d7[_0x51f403(0x30f)] !== _0x51f403(_0x4b2eb0._0x58dccf))
|
|
1715
1733
|
return null;
|
|
1716
|
-
const
|
|
1717
|
-
let
|
|
1734
|
+
const _0x1ce140 = _0x34ee32[_0x51f403(_0x4b2eb0._0x4b8297)] != null ? _0x8fa2d7[_0x51f403(_0x4b2eb0._0x2cc973)] + ':t' + _0x34ee32[_0x51f403(_0x4b2eb0._0x4b8297)] : _0x8fa2d7[_0x51f403(0x24f)] + ':' + _0x34ee32[_0x51f403(0x1cd)];
|
|
1735
|
+
let _0x56c013;
|
|
1718
1736
|
try {
|
|
1719
|
-
const
|
|
1720
|
-
'channel':
|
|
1737
|
+
const _0x29fefb = await _0x2c49b7[_0x51f403(_0x4b2eb0._0x430bd2)]['readHistory']({
|
|
1738
|
+
'channel': _0x1ce140,
|
|
1721
1739
|
'limit': 0x14
|
|
1722
1740
|
});
|
|
1723
|
-
|
|
1741
|
+
_0x56c013 = _0x29fefb[_0x51f403(0x1e4)][_0x51f403(_0x4b2eb0._0x2d8c3e)](_0x533560 => _0x533560[_0x51f403(0x1cd)] === _0x34ee32[_0x51f403(0x1cd)]);
|
|
1724
1742
|
} catch {
|
|
1725
|
-
|
|
1743
|
+
_0x56c013 = void 0x0;
|
|
1726
1744
|
}
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1745
|
+
const _0x3d24de = _0x34ee32[_0x51f403(_0x4b2eb0._0x16d1b0)] == null ? _0x51f403(_0x4b2eb0._0x1cfa57) : '#' + _0x34ee32[_0x51f403(_0x4b2eb0._0x4c33e5)], _0x550abf = [
|
|
1746
|
+
_0x51f403(0x22d) + _0x1ce140 + '\x20msg=' + _0x34ee32['messageId'][_0x51f403(0x2ee)](0x0, 0x8) + '\x20time=' + new Date()[_0x51f403(_0x4b2eb0._0x4604fc)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x3d24de + _0x51f403(_0x4b2eb0._0x3ea825),
|
|
1729
1747
|
'',
|
|
1730
|
-
|
|
1748
|
+
_0x56c013 ? _0x51f403(_0x4b2eb0._0x482b73) + _0x56c013[_0x51f403(_0x4b2eb0._0x4180b4)] : 'Root\x20task\x20message\x20id:\x20' + _0x34ee32[_0x51f403(_0x4b2eb0._0x3039e1)],
|
|
1731
1749
|
'',
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
][
|
|
1735
|
-
'method':
|
|
1736
|
-
'headers': { 'Content-Type':
|
|
1737
|
-
'body': JSON[
|
|
1738
|
-
'agent_id':
|
|
1739
|
-
'thread_target':
|
|
1750
|
+
_0x51f403(_0x4b2eb0._0x3f8ed3) + _0x1ce140,
|
|
1751
|
+
_0x51f403(_0x4b2eb0._0x1ecfe6)
|
|
1752
|
+
]['join']('\x0a'), _0x3f2d80 = await fetch(_0x2c49b7[_0x51f403(_0x4b2eb0._0x2ed734)] + '/workers/deliver', {
|
|
1753
|
+
'method': _0x51f403(_0x4b2eb0._0x4856d9),
|
|
1754
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1755
|
+
'body': JSON[_0x51f403(_0x4b2eb0._0x5d82d8)]({
|
|
1756
|
+
'agent_id': _0x2c49b7[_0x51f403(_0x4b2eb0._0x4fa73a)],
|
|
1757
|
+
'thread_target': _0x1ce140,
|
|
1740
1758
|
'spawn_packet': {
|
|
1741
|
-
'replyTarget':
|
|
1742
|
-
...
|
|
1759
|
+
'replyTarget': _0x1ce140,
|
|
1760
|
+
..._0x34ee32[_0x51f403(_0x4b2eb0._0x270e88)] ? { 'taskId': _0x34ee32['taskId'] } : _0x34ee32[_0x51f403(_0x4b2eb0._0x16d1b0)] != null ? { 'taskId': _0x51f403(0x2ac) + _0x34ee32[_0x51f403(0x247)] } : {}
|
|
1743
1761
|
},
|
|
1744
1762
|
'payload': {
|
|
1745
1763
|
'mode': 'user',
|
|
1746
|
-
'text':
|
|
1764
|
+
'text': _0x550abf
|
|
1747
1765
|
}
|
|
1748
1766
|
})
|
|
1749
|
-
}),
|
|
1750
|
-
if (!
|
|
1751
|
-
throw new Error(
|
|
1767
|
+
}), _0x500a85 = await _0x3f2d80[_0x51f403(_0x4b2eb0._0x2ee298)]();
|
|
1768
|
+
if (!_0x500a85['ok'])
|
|
1769
|
+
throw new Error(_0x500a85[_0x51f403(_0x4b2eb0._0xa259e2)] ?? _0x51f403(_0x4b2eb0._0x1aba03));
|
|
1752
1770
|
return {
|
|
1753
1771
|
'stopMain': !![],
|
|
1754
|
-
'threadTarget':
|
|
1755
|
-
'workerDisposition':
|
|
1772
|
+
'threadTarget': _0x1ce140,
|
|
1773
|
+
'workerDisposition': _0x500a85[_0x51f403(_0x4b2eb0._0x4a964f)] === _0x51f403(_0x4b2eb0._0x411229) ? 'queued' : _0x51f403(_0x4b2eb0._0x53b2dc),
|
|
1756
1774
|
'workerHandoff': !![],
|
|
1757
|
-
'workerSessionId':
|
|
1758
|
-
'executionMode':
|
|
1775
|
+
'workerSessionId': _0x500a85[_0x51f403(_0x4b2eb0._0x50954a)] ?? '',
|
|
1776
|
+
'executionMode': _0x51f403(0x1d3)
|
|
1759
1777
|
};
|
|
1760
1778
|
}
|
|
1761
|
-
async function
|
|
1762
|
-
const
|
|
1763
|
-
if (!
|
|
1779
|
+
async function _0x3a967e() {
|
|
1780
|
+
const _0x148a85 = _0xd0d8;
|
|
1781
|
+
if (!_0x2c49b7['daemonLocalUrl'] || !_0x2c49b7['agentId'] || _0x2c49b7[_0x148a85(0x28d)])
|
|
1764
1782
|
return null;
|
|
1765
1783
|
try {
|
|
1766
|
-
const
|
|
1767
|
-
if (!
|
|
1784
|
+
const _0x5c0b2a = await fetch(_0x2c49b7['daemonLocalUrl'] + _0x148a85(0x232) + encodeURIComponent(_0x2c49b7[_0x148a85(_0x5659cc._0x59cbb1)])), _0x4d4bfd = await _0x5c0b2a[_0x148a85(0x1fd)]();
|
|
1785
|
+
if (!_0x4d4bfd['ok'])
|
|
1768
1786
|
return null;
|
|
1769
|
-
const
|
|
1770
|
-
for (const
|
|
1771
|
-
|
|
1787
|
+
const _0x4f9489 = new Set();
|
|
1788
|
+
for (const _0x1e2064 of _0x4d4bfd['workers']) {
|
|
1789
|
+
_0x1e2064[_0x148a85(_0x5659cc._0x27c2c8)] !== _0x148a85(_0x5659cc._0x49c166) && _0x1e2064[_0x148a85(0x261)] && _0x4f9489['add'](_0x1e2064[_0x148a85(0x261)]);
|
|
1772
1790
|
}
|
|
1773
|
-
return
|
|
1791
|
+
return _0x4f9489[_0x148a85(0x2bc)] > 0x0 ? _0x4f9489 : null;
|
|
1774
1792
|
} catch {
|
|
1775
1793
|
return null;
|
|
1776
1794
|
}
|
|
1777
1795
|
}
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1796
|
+
const _0x5729bc = new Set([
|
|
1797
|
+
'running',
|
|
1780
1798
|
'idle',
|
|
1781
|
-
|
|
1799
|
+
_0xbb1c94(_0x2ce565._0x1235fb)
|
|
1782
1800
|
]);
|
|
1783
|
-
async function
|
|
1784
|
-
const
|
|
1785
|
-
if (!
|
|
1801
|
+
async function _0xd5c232() {
|
|
1802
|
+
const _0x296fe2 = _0xbb1c94;
|
|
1803
|
+
if (!_0x2c49b7[_0x296fe2(0x317)] || !_0x2c49b7['agentId'] || _0x2c49b7[_0x296fe2(_0xb5e401._0x13832c)])
|
|
1786
1804
|
return null;
|
|
1787
1805
|
try {
|
|
1788
|
-
const
|
|
1789
|
-
if (!
|
|
1806
|
+
const _0x411235 = await fetch(_0x2c49b7[_0x296fe2(_0xb5e401._0x5abc9d)] + _0x296fe2(_0xb5e401._0x2c3760) + encodeURIComponent(_0x2c49b7[_0x296fe2(_0xb5e401._0x8beef9)])), _0x35d6cc = await _0x411235[_0x296fe2(_0xb5e401._0x352ae4)]();
|
|
1807
|
+
if (!_0x35d6cc['ok'])
|
|
1790
1808
|
return null;
|
|
1791
|
-
const
|
|
1792
|
-
for (const
|
|
1793
|
-
|
|
1809
|
+
const _0x58d8de = new Set();
|
|
1810
|
+
for (const _0x382896 of _0x35d6cc['workers']) {
|
|
1811
|
+
_0x5729bc[_0x296fe2(0x1f4)](_0x382896[_0x296fe2(0x281)]) && _0x382896[_0x296fe2(_0xb5e401._0x2ebf7d)] && _0x58d8de['add'](_0x382896[_0x296fe2(0x261)]);
|
|
1794
1812
|
}
|
|
1795
|
-
return
|
|
1813
|
+
return _0x58d8de[_0x296fe2(0x2bc)] > 0x0 ? _0x58d8de : null;
|
|
1796
1814
|
} catch {
|
|
1797
1815
|
return null;
|
|
1798
1816
|
}
|
|
1799
1817
|
}
|
|
1800
1818
|
return {
|
|
1801
|
-
async 'send_message'(
|
|
1802
|
-
const
|
|
1803
|
-
if (!
|
|
1804
|
-
const
|
|
1805
|
-
if (
|
|
1806
|
-
const
|
|
1807
|
-
if (
|
|
1819
|
+
async 'send_message'(_0x473348) {
|
|
1820
|
+
const _0x30ccfb = _0xbb1c94;
|
|
1821
|
+
if (!_0x2c49b7[_0x30ccfb(0x28d)] && _0x2c49b7[_0x30ccfb(0x27b)] && _0x2c49b7[_0x30ccfb(_0xd34657._0x24d925)] && _0x2c49b7[_0x30ccfb(0x2b5)]) {
|
|
1822
|
+
const _0x391f59 = await _0x2c49b7[_0x30ccfb(_0xd34657._0x562e19)]['resolveTarget'](_0x473348['target']);
|
|
1823
|
+
if (_0x391f59[_0x30ccfb(_0xd34657._0x4ba3c7)] && _0x391f59[_0x30ccfb(0x1d8)]) {
|
|
1824
|
+
const _0x159efa = _0x391f59[_0x30ccfb(0x320)]['taskNumber'] != null ? '#' + _0x391f59['task'][_0x30ccfb(0x247)] : '(legacy)', _0x3d3031 = _0x391f59[_0x30ccfb(_0xd34657._0x5d26ea)] != null ? _0x391f59['target'] + ':t' + _0x391f59['threadNumber'] : _0x391f59[_0x30ccfb(_0xd34657._0x108eaf)] + ':' + _0x391f59[_0x30ccfb(0x1d8)][_0x30ccfb(_0xd34657._0x244602)](0x0, 0x8), _0x36ca67 = await _0xd5c232();
|
|
1825
|
+
if (_0x36ca67?.[_0x30ccfb(0x1f4)](_0x3d3031))
|
|
1808
1826
|
return [
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
][
|
|
1812
|
-
const
|
|
1813
|
-
|
|
1827
|
+
_0x30ccfb(_0xd34657._0x137458) + _0x159efa + _0x30ccfb(_0xd34657._0x161660) + _0x3d3031 + _0x30ccfb(_0xd34657._0x1f2e59),
|
|
1828
|
+
_0x30ccfb(0x2bd)
|
|
1829
|
+
][_0x30ccfb(_0xd34657._0x5aa01b)]('\x0a');
|
|
1830
|
+
const _0x40d51e = [
|
|
1831
|
+
_0x30ccfb(_0xd34657._0x5c4724) + _0x3d3031 + '\x20msg=handoff\x20time=' + new Date()['toISOString']() + _0x30ccfb(0x1b7),
|
|
1814
1832
|
'',
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
][
|
|
1820
|
-
'method':
|
|
1821
|
-
'headers': { 'Content-Type':
|
|
1822
|
-
'body': JSON[
|
|
1823
|
-
'agent_id':
|
|
1824
|
-
'thread_target':
|
|
1833
|
+
_0x30ccfb(_0xd34657._0x572613) + _0x473348[_0x30ccfb(0x29f)],
|
|
1834
|
+
'Task:\x20' + _0x159efa + '\x20(' + _0x391f59[_0x30ccfb(_0xd34657._0x4ba3c7)][_0x30ccfb(0x2d1)] + ')',
|
|
1835
|
+
_0x30ccfb(_0xd34657._0x1d6128) + _0x3d3031,
|
|
1836
|
+
_0x30ccfb(_0xd34657._0x34a181)
|
|
1837
|
+
]['join']('\x0a'), _0x2a1ed3 = await fetch(_0x2c49b7['daemonLocalUrl'] + _0x30ccfb(_0xd34657._0x2f31b7), {
|
|
1838
|
+
'method': 'POST',
|
|
1839
|
+
'headers': { 'Content-Type': _0x30ccfb(0x270) },
|
|
1840
|
+
'body': JSON[_0x30ccfb(0x1f9)]({
|
|
1841
|
+
'agent_id': _0x2c49b7['agentId'],
|
|
1842
|
+
'thread_target': _0x3d3031,
|
|
1825
1843
|
'spawn_packet': {
|
|
1826
|
-
'replyTarget':
|
|
1827
|
-
'taskId':
|
|
1844
|
+
'replyTarget': _0x3d3031,
|
|
1845
|
+
'taskId': _0x391f59[_0x30ccfb(_0xd34657._0x4ba3c7)][_0x30ccfb(0x2d1)]
|
|
1828
1846
|
},
|
|
1829
1847
|
'payload': {
|
|
1830
|
-
'mode':
|
|
1831
|
-
'text':
|
|
1848
|
+
'mode': _0x30ccfb(0x239),
|
|
1849
|
+
'text': _0x40d51e
|
|
1832
1850
|
}
|
|
1833
1851
|
})
|
|
1834
|
-
}),
|
|
1835
|
-
if (!
|
|
1836
|
-
throw new Error(
|
|
1852
|
+
}), _0x70be6f = await _0x2a1ed3['json']();
|
|
1853
|
+
if (!_0x70be6f['ok'])
|
|
1854
|
+
throw new Error(_0x70be6f['error'] ?? 'enter-handoff\x20failed');
|
|
1837
1855
|
return [
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
][
|
|
1856
|
+
_0x30ccfb(_0xd34657._0x113d13) + _0x159efa + _0x30ccfb(0x32b) + _0x3d3031 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1857
|
+
_0x30ccfb(0x29b) + (_0x70be6f[_0x30ccfb(0x27f)] === 'queued' ? _0x30ccfb(_0xd34657._0x5c6ac1) : _0x30ccfb(_0xd34657._0x1a3700)) + '.',
|
|
1858
|
+
_0x30ccfb(_0xd34657._0x48cc28)
|
|
1859
|
+
][_0x30ccfb(_0xd34657._0x58ee0f)]('\x0a');
|
|
1842
1860
|
}
|
|
1843
1861
|
}
|
|
1844
|
-
const
|
|
1845
|
-
'attachmentIds':
|
|
1846
|
-
'content':
|
|
1847
|
-
'target':
|
|
1848
|
-
'visibility':
|
|
1862
|
+
const _0x3ee963 = await _0x2c49b7[_0x30ccfb(0x2d5)][_0x30ccfb(_0xd34657._0x302524)]({
|
|
1863
|
+
'attachmentIds': _0x473348[_0x30ccfb(0x264)],
|
|
1864
|
+
'content': _0x473348[_0x30ccfb(0x29f)],
|
|
1865
|
+
'target': _0x473348[_0x30ccfb(0x327)],
|
|
1866
|
+
'visibility': _0x473348[_0x30ccfb(_0xd34657._0x433a8b)]
|
|
1849
1867
|
});
|
|
1850
|
-
return
|
|
1868
|
+
return _0x30ccfb(_0xd34657._0x54b10f) + _0x473348[_0x30ccfb(_0xd34657._0x108eaf)] + _0x30ccfb(0x316) + _0x3ee963[_0x30ccfb(0x1cd)];
|
|
1851
1869
|
},
|
|
1852
1870
|
async 'check_messages'() {
|
|
1853
|
-
const
|
|
1854
|
-
if (!
|
|
1855
|
-
const
|
|
1856
|
-
if (
|
|
1857
|
-
return formatCheckMessages(
|
|
1871
|
+
const _0x445fb3 = _0xbb1c94, _0x32e76a = await _0x2c49b7[_0x445fb3(_0x3d41ce._0x18ccec)]['checkMessages']();
|
|
1872
|
+
if (!_0x2c49b7[_0x445fb3(_0x3d41ce._0x103e9e)]) {
|
|
1873
|
+
const _0x13638c = await _0x3a967e();
|
|
1874
|
+
if (_0x13638c)
|
|
1875
|
+
return formatCheckMessages(_0x32e76a[_0x445fb3(_0x3d41ce._0x2483ba)][_0x445fb3(_0x3d41ce._0x35d855)](_0x573aef => !_0x13638c[_0x445fb3(0x1f4)](_0x573aef[_0x445fb3(0x327)])));
|
|
1858
1876
|
}
|
|
1859
|
-
return formatCheckMessages(
|
|
1877
|
+
return formatCheckMessages(_0x32e76a[_0x445fb3(0x1e4)]);
|
|
1860
1878
|
},
|
|
1861
|
-
async 'read_history'(
|
|
1862
|
-
const
|
|
1863
|
-
return formatHistory(
|
|
1879
|
+
async 'read_history'(_0x520500) {
|
|
1880
|
+
const _0x1fa388 = _0xbb1c94, _0x3ca9eb = await _0x2c49b7['client'][_0x1fa388(0x2f2)](_0x520500);
|
|
1881
|
+
return formatHistory(_0x3ca9eb);
|
|
1864
1882
|
},
|
|
1865
1883
|
async 'list_server'() {
|
|
1866
|
-
const
|
|
1867
|
-
return formatServerDirectory(
|
|
1884
|
+
const _0x1ea9ec = _0xbb1c94, _0x39acad = await _0x2c49b7['client'][_0x1ea9ec(0x1c6)]();
|
|
1885
|
+
return formatServerDirectory(_0x39acad);
|
|
1868
1886
|
},
|
|
1869
|
-
async 'list_tasks'(
|
|
1870
|
-
const
|
|
1871
|
-
let
|
|
1872
|
-
if (
|
|
1887
|
+
async 'list_tasks'(_0xe65e4) {
|
|
1888
|
+
const _0x2c9128 = _0xbb1c94, _0x124f3f = await _0x2c49b7[_0x2c9128(0x2d5)][_0x2c9128(_0x232b0f._0x20bc6f)](_0xe65e4);
|
|
1889
|
+
let _0x398473;
|
|
1890
|
+
if (_0x2c49b7[_0x2c9128(0x317)] && _0x2c49b7['agentId'])
|
|
1873
1891
|
try {
|
|
1874
|
-
const
|
|
1875
|
-
if (
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1878
|
-
for (const
|
|
1879
|
-
if (
|
|
1892
|
+
const _0x2a40d1 = await fetch(_0x2c49b7[_0x2c9128(_0x232b0f._0x51651e)] + _0x2c9128(_0x232b0f._0x1200af) + encodeURIComponent(_0x2c49b7[_0x2c9128(_0x232b0f._0x1dad32)])), _0x4ac74f = await _0x2a40d1['json']();
|
|
1893
|
+
if (_0x4ac74f['ok']) {
|
|
1894
|
+
const _0x180a51 = _0xe65e4[_0x2c9128(0x1ee)] + ':';
|
|
1895
|
+
_0x398473 = new Set();
|
|
1896
|
+
for (const _0x353a48 of _0x4ac74f[_0x2c9128(0x22b)]) {
|
|
1897
|
+
if (_0x353a48['status'] === _0x2c9128(_0x232b0f._0x36d437))
|
|
1880
1898
|
continue;
|
|
1881
|
-
if (
|
|
1882
|
-
const
|
|
1883
|
-
if (
|
|
1884
|
-
|
|
1899
|
+
if (_0x353a48[_0x2c9128(_0x232b0f._0x4c0be7)]?.[_0x2c9128(_0x232b0f._0x4329e4)](_0x180a51)) {
|
|
1900
|
+
const _0x3e0e89 = _0x353a48[_0x2c9128(_0x232b0f._0x29d568)][_0x2c9128(0x2ee)](_0x180a51[_0x2c9128(0x278)]), _0x52cf7f = _0x124f3f[_0x2c9128(0x30b)][_0x2c9128(_0x232b0f._0x2636ed)](_0x567d4b => _0x567d4b[_0x2c9128(0x1cd)]?.['startsWith'](_0x3e0e89) === !![]);
|
|
1901
|
+
if (_0x52cf7f?.[_0x2c9128(0x247)] != null) {
|
|
1902
|
+
_0x398473['add'](_0x52cf7f[_0x2c9128(0x247)]);
|
|
1885
1903
|
continue;
|
|
1886
1904
|
}
|
|
1887
1905
|
}
|
|
1888
|
-
if (
|
|
1889
|
-
const
|
|
1890
|
-
|
|
1906
|
+
if (_0x353a48[_0x2c9128(0x274)]) {
|
|
1907
|
+
const _0x1961b3 = _0x124f3f[_0x2c9128(0x30b)][_0x2c9128(_0x232b0f._0xfffb30)](_0x299140 => _0x299140[_0x2c9128(0x2d1)] === _0x353a48[_0x2c9128(0x274)]);
|
|
1908
|
+
_0x1961b3?.[_0x2c9128(_0x232b0f._0x311b41)] != null && _0x398473[_0x2c9128(0x31b)](_0x1961b3[_0x2c9128(_0x232b0f._0x311b41)]);
|
|
1891
1909
|
}
|
|
1892
1910
|
}
|
|
1893
1911
|
}
|
|
1894
1912
|
} catch {
|
|
1895
1913
|
}
|
|
1896
|
-
return formatTaskList(
|
|
1914
|
+
return formatTaskList(_0x124f3f[_0x2c9128(0x30b)], _0x398473);
|
|
1897
1915
|
},
|
|
1898
|
-
async 'create_tasks'(
|
|
1899
|
-
const
|
|
1900
|
-
return formatCreatedTasks(
|
|
1916
|
+
async 'create_tasks'(_0x5c6c72) {
|
|
1917
|
+
const _0x425df0 = _0xbb1c94, _0x537317 = await _0x2c49b7[_0x425df0(_0xef4f06._0x5deba9)][_0x425df0(0x2a7)](_0x5c6c72);
|
|
1918
|
+
return formatCreatedTasks(_0x537317[_0x425df0(_0xef4f06._0x3ebfb6)]);
|
|
1901
1919
|
},
|
|
1902
|
-
async 'claim_tasks'(
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1920
|
+
async 'claim_tasks'(_0xb67c60) {
|
|
1921
|
+
const _0x4730f3 = {
|
|
1922
|
+
_0x85ac2e: 0x268,
|
|
1923
|
+
_0x5782fd: 0x26a,
|
|
1924
|
+
_0x387b23: 0x30c,
|
|
1925
|
+
_0x9932c6: 0x29d
|
|
1926
|
+
}, _0x5804db = _0xbb1c94, _0x5fa431 = await _0x2c49b7['client'][_0x5804db(_0x488320._0x2c84c3)](_0xb67c60), _0x3362db = await Promise[_0x5804db(_0x488320._0x14b461)](_0x5fa431[_0x5804db(0x1f6)][_0x5804db(0x2c4)](async _0x7f81 => {
|
|
1927
|
+
const _0x30ac37 = _0x5804db;
|
|
1928
|
+
if (!_0x7f81[_0x30ac37(_0x4730f3._0x85ac2e)] || !_0x7f81['messageId'])
|
|
1929
|
+
return _0x7f81;
|
|
1910
1930
|
try {
|
|
1911
|
-
const
|
|
1912
|
-
'channel':
|
|
1913
|
-
'messageId':
|
|
1914
|
-
'taskId':
|
|
1915
|
-
'taskNumber':
|
|
1916
|
-
'threadNumber':
|
|
1931
|
+
const _0x4e1d28 = await _0x16583b({
|
|
1932
|
+
'channel': _0xb67c60[_0x30ac37(0x1ee)],
|
|
1933
|
+
'messageId': _0x7f81['messageId'],
|
|
1934
|
+
'taskId': _0x7f81['taskId'],
|
|
1935
|
+
'taskNumber': _0x7f81[_0x30ac37(0x247)],
|
|
1936
|
+
'threadNumber': _0x7f81[_0x30ac37(_0x4730f3._0x5782fd)]
|
|
1917
1937
|
});
|
|
1918
|
-
return
|
|
1919
|
-
...
|
|
1920
|
-
...
|
|
1921
|
-
} :
|
|
1922
|
-
} catch (
|
|
1938
|
+
return _0x4e1d28 ? {
|
|
1939
|
+
..._0x7f81,
|
|
1940
|
+
..._0x4e1d28
|
|
1941
|
+
} : _0x7f81;
|
|
1942
|
+
} catch (_0x6c2970) {
|
|
1923
1943
|
return {
|
|
1924
|
-
...
|
|
1925
|
-
'workerHandoffError':
|
|
1944
|
+
..._0x7f81,
|
|
1945
|
+
'workerHandoffError': _0x6c2970 instanceof Error ? _0x6c2970[_0x30ac37(_0x4730f3._0x387b23)] : _0x30ac37(_0x4730f3._0x9932c6)
|
|
1926
1946
|
};
|
|
1927
1947
|
}
|
|
1928
1948
|
}));
|
|
1929
|
-
return formatClaimTaskResults(
|
|
1949
|
+
return formatClaimTaskResults(_0x3362db);
|
|
1930
1950
|
},
|
|
1931
|
-
async 'unclaim_task'(
|
|
1932
|
-
const
|
|
1933
|
-
return formatUnclaimTaskResult(
|
|
1951
|
+
async 'unclaim_task'(_0x290eac) {
|
|
1952
|
+
const _0x223986 = _0xbb1c94, _0x95431b = await _0x2c49b7[_0x223986(_0x2c1fbf._0x24b045)][_0x223986(0x1a8)](_0x290eac);
|
|
1953
|
+
return formatUnclaimTaskResult(_0x95431b);
|
|
1934
1954
|
},
|
|
1935
|
-
async 'update_task_status'(
|
|
1936
|
-
const
|
|
1937
|
-
return formatUpdateTaskStatusResult(
|
|
1955
|
+
async 'update_task_status'(_0x21d1aa) {
|
|
1956
|
+
const _0xbd27b6 = _0xbb1c94, _0x2c965f = await _0x2c49b7[_0xbd27b6(0x2d5)]['updateTaskStatus'](_0x21d1aa);
|
|
1957
|
+
return formatUpdateTaskStatusResult(_0x2c965f);
|
|
1938
1958
|
},
|
|
1939
|
-
async 'upload_file'(
|
|
1940
|
-
const
|
|
1941
|
-
sizeBytes:
|
|
1942
|
-
...
|
|
1943
|
-
} =
|
|
1944
|
-
'channel':
|
|
1945
|
-
...
|
|
1959
|
+
async 'upload_file'(_0x51023e) {
|
|
1960
|
+
const _0x198a71 = _0xbb1c94, _0x4b36c9 = await _0x2c49b7[_0x198a71(_0x5ef0f7._0x115b28)](_0x51023e[_0x198a71(_0x5ef0f7._0x17343a)]), {
|
|
1961
|
+
sizeBytes: _0x136cc0,
|
|
1962
|
+
..._0x3262ac
|
|
1963
|
+
} = _0x4b36c9, _0x3a5aab = await _0x2c49b7[_0x198a71(0x2d5)][_0x198a71(0x329)]({
|
|
1964
|
+
'channel': _0x51023e[_0x198a71(0x1ee)],
|
|
1965
|
+
..._0x3262ac
|
|
1946
1966
|
});
|
|
1947
|
-
return formatUploadResult(
|
|
1967
|
+
return formatUploadResult(_0x3a5aab);
|
|
1948
1968
|
},
|
|
1949
|
-
async 'view_file'(
|
|
1950
|
-
const
|
|
1951
|
-
if (
|
|
1952
|
-
return formatViewFileResult(
|
|
1953
|
-
const
|
|
1954
|
-
'attachmentId':
|
|
1955
|
-
'contentType':
|
|
1956
|
-
'data':
|
|
1957
|
-
'originalFilename':
|
|
1969
|
+
async 'view_file'(_0x399532) {
|
|
1970
|
+
const _0x42fec4 = _0xbb1c94, _0x33535b = await _0x2c49b7[_0x42fec4(0x32c)][_0x42fec4(_0x23078a._0x2f6c96)](_0x399532['attachment_id']);
|
|
1971
|
+
if (_0x33535b)
|
|
1972
|
+
return formatViewFileResult(_0x33535b, !![]);
|
|
1973
|
+
const _0x13966a = await _0x2c49b7[_0x42fec4(_0x23078a._0x156445)]['downloadAttachment'](_0x399532[_0x42fec4(_0x23078a._0x1a8d80)]), _0x35bea7 = await _0x2c49b7['attachmentCache'][_0x42fec4(0x237)]({
|
|
1974
|
+
'attachmentId': _0x399532['attachment_id'],
|
|
1975
|
+
'contentType': _0x13966a[_0x42fec4(_0x23078a._0x1129b7)],
|
|
1976
|
+
'data': _0x13966a['data'],
|
|
1977
|
+
'originalFilename': _0x13966a['originalFilename']
|
|
1958
1978
|
});
|
|
1959
|
-
return formatViewFileResult(
|
|
1979
|
+
return formatViewFileResult(_0x35bea7, ![]);
|
|
1960
1980
|
},
|
|
1961
|
-
async 'get_worker_status'(
|
|
1962
|
-
const
|
|
1963
|
-
if (!
|
|
1964
|
-
return
|
|
1965
|
-
const
|
|
1966
|
-
if (!
|
|
1967
|
-
return 'Worker\x20\x22' +
|
|
1968
|
-
return
|
|
1981
|
+
async 'get_worker_status'(_0x59503a) {
|
|
1982
|
+
const _0x28690f = _0xbb1c94;
|
|
1983
|
+
if (!_0x2c49b7[_0x28690f(0x317)])
|
|
1984
|
+
return _0x28690f(_0x5b8292._0x4188af);
|
|
1985
|
+
const _0x241b9e = await fetch(_0x2c49b7[_0x28690f(0x317)] + _0x28690f(0x1dc) + encodeURIComponent(_0x59503a[_0x28690f(_0x5b8292._0x494ba8)])), _0x2ef6d3 = await _0x241b9e['json']();
|
|
1986
|
+
if (!_0x2ef6d3['ok'])
|
|
1987
|
+
return 'Worker\x20\x22' + _0x59503a[_0x28690f(0x1ce)] + _0x28690f(0x2e7);
|
|
1988
|
+
return _0x28690f(_0x5b8292._0x2ebc8d) + _0x59503a[_0x28690f(0x1ce)] + '\x22:\x20status=' + _0x2ef6d3[_0x28690f(_0x5b8292._0x111bd0)];
|
|
1969
1989
|
},
|
|
1970
|
-
async 'get_worker_result'(
|
|
1971
|
-
const
|
|
1972
|
-
if (!
|
|
1973
|
-
return
|
|
1974
|
-
const
|
|
1975
|
-
if (!
|
|
1976
|
-
return
|
|
1977
|
-
return JSON[
|
|
1990
|
+
async 'get_worker_result'(_0x5abbea) {
|
|
1991
|
+
const _0x3e4875 = _0xbb1c94;
|
|
1992
|
+
if (!_0x2c49b7[_0x3e4875(0x317)])
|
|
1993
|
+
return _0x3e4875(_0x546ae9._0x6cd2da);
|
|
1994
|
+
const _0x487438 = await fetch(_0x2c49b7[_0x3e4875(0x317)] + '/workers/result?work_key=' + encodeURIComponent(_0x5abbea[_0x3e4875(0x1ce)])), _0x67c496 = await _0x487438[_0x3e4875(_0x546ae9._0x3fb063)]();
|
|
1995
|
+
if (!_0x67c496['resume_packet'])
|
|
1996
|
+
return _0x3e4875(_0x546ae9._0x453508) + _0x5abbea[_0x3e4875(_0x546ae9._0xdf2a4b)] + '\x22';
|
|
1997
|
+
return JSON[_0x3e4875(_0x546ae9._0x4b4211)](_0x67c496[_0x3e4875(0x25f)], null, 0x2);
|
|
1978
1998
|
},
|
|
1979
|
-
async 'finish_worker'(
|
|
1980
|
-
const
|
|
1981
|
-
if (!
|
|
1982
|
-
return
|
|
1983
|
-
const
|
|
1984
|
-
'method':
|
|
1985
|
-
'headers': { 'Content-Type':
|
|
1986
|
-
'body': JSON[
|
|
1987
|
-
'work_key':
|
|
1999
|
+
async 'finish_worker'(_0x36e28c) {
|
|
2000
|
+
const _0x59bdd1 = _0xbb1c94;
|
|
2001
|
+
if (!_0x2c49b7[_0x59bdd1(0x317)])
|
|
2002
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2003
|
+
const _0x32fc51 = await fetch(_0x2c49b7[_0x59bdd1(0x317)] + _0x59bdd1(0x20e), {
|
|
2004
|
+
'method': _0x59bdd1(_0xdfbf23._0x58227d),
|
|
2005
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2006
|
+
'body': JSON[_0x59bdd1(0x1f9)]({
|
|
2007
|
+
'work_key': _0x36e28c['work_key'],
|
|
1988
2008
|
'resume_packet': {
|
|
1989
2009
|
'objective': '',
|
|
1990
|
-
'result':
|
|
1991
|
-
'summary':
|
|
1992
|
-
'decisions':
|
|
1993
|
-
'filesChanged':
|
|
1994
|
-
'openIssues':
|
|
1995
|
-
'nextSteps':
|
|
2010
|
+
'result': _0x36e28c[_0x59bdd1(0x1aa)],
|
|
2011
|
+
'summary': _0x36e28c[_0x59bdd1(0x26f)],
|
|
2012
|
+
'decisions': _0x36e28c[_0x59bdd1(_0xdfbf23._0x2ce916)] ?? [],
|
|
2013
|
+
'filesChanged': _0x36e28c[_0x59bdd1(_0xdfbf23._0x32f24d)] ?? [],
|
|
2014
|
+
'openIssues': _0x36e28c[_0x59bdd1(0x1c3)] ?? [],
|
|
2015
|
+
'nextSteps': _0x36e28c['next_steps'] ?? []
|
|
1996
2016
|
}
|
|
1997
2017
|
})
|
|
1998
|
-
}),
|
|
1999
|
-
if (!
|
|
2000
|
-
throw new Error(
|
|
2001
|
-
return
|
|
2018
|
+
}), _0x546660 = await _0x32fc51[_0x59bdd1(_0xdfbf23._0x516e69)]();
|
|
2019
|
+
if (!_0x546660['ok'])
|
|
2020
|
+
throw new Error(_0x546660[_0x59bdd1(0x23c)] ?? _0x59bdd1(0x2a8));
|
|
2021
|
+
return 'Worker\x20\x22' + _0x36e28c[_0x59bdd1(0x1ce)] + '\x22\x20finished\x20with\x20result:\x20' + _0x36e28c['result'];
|
|
2002
2022
|
},
|
|
2003
|
-
async 'mark_waiting_input'(
|
|
2004
|
-
const
|
|
2005
|
-
if (!
|
|
2006
|
-
return
|
|
2007
|
-
const
|
|
2008
|
-
'method':
|
|
2009
|
-
'headers': { 'Content-Type':
|
|
2010
|
-
'body': JSON[
|
|
2011
|
-
'work_key':
|
|
2012
|
-
'agent_id':
|
|
2023
|
+
async 'mark_waiting_input'(_0x184f56) {
|
|
2024
|
+
const _0x4dc773 = _0xbb1c94;
|
|
2025
|
+
if (!_0x2c49b7['daemonLocalUrl'] || !_0x2c49b7[_0x4dc773(_0x235431._0x532b17)])
|
|
2026
|
+
return _0x4dc773(0x277);
|
|
2027
|
+
const _0x37fe5b = await fetch(_0x2c49b7[_0x4dc773(_0x235431._0x306db7)] + '/workers/waiting_input', {
|
|
2028
|
+
'method': _0x4dc773(0x2e1),
|
|
2029
|
+
'headers': { 'Content-Type': _0x4dc773(0x270) },
|
|
2030
|
+
'body': JSON['stringify']({
|
|
2031
|
+
'work_key': _0x184f56[_0x4dc773(_0x235431._0x44e6f8)],
|
|
2032
|
+
'agent_id': _0x2c49b7['agentId']
|
|
2013
2033
|
})
|
|
2014
|
-
}),
|
|
2015
|
-
if (!
|
|
2016
|
-
throw new Error(
|
|
2017
|
-
return
|
|
2034
|
+
}), _0x205607 = await _0x37fe5b[_0x4dc773(0x1fd)]();
|
|
2035
|
+
if (!_0x205607['ok'])
|
|
2036
|
+
throw new Error(_0x205607[_0x4dc773(0x23c)] ?? _0x4dc773(0x1a4));
|
|
2037
|
+
return 'Worker\x20\x22' + _0x184f56[_0x4dc773(0x1ce)] + _0x4dc773(_0x235431._0x2bd67a);
|
|
2018
2038
|
},
|
|
2019
|
-
async 'escalate_to_main'(
|
|
2020
|
-
const
|
|
2021
|
-
if (!
|
|
2022
|
-
return
|
|
2023
|
-
const
|
|
2024
|
-
'method':
|
|
2025
|
-
'headers': { 'Content-Type':
|
|
2026
|
-
'body': JSON[
|
|
2027
|
-
'work_key':
|
|
2028
|
-
'reason':
|
|
2039
|
+
async 'escalate_to_main'(_0x2c228b) {
|
|
2040
|
+
const _0x26583d = _0xbb1c94;
|
|
2041
|
+
if (!_0x2c49b7[_0x26583d(_0x58ab7a._0x59fd4a)])
|
|
2042
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2043
|
+
const _0x3e6daf = await fetch(_0x2c49b7[_0x26583d(0x317)] + _0x26583d(0x248), {
|
|
2044
|
+
'method': 'POST',
|
|
2045
|
+
'headers': { 'Content-Type': _0x26583d(_0x58ab7a._0x5c8aa9) },
|
|
2046
|
+
'body': JSON[_0x26583d(0x1f9)]({
|
|
2047
|
+
'work_key': _0x2c228b[_0x26583d(0x1ce)],
|
|
2048
|
+
'reason': _0x2c228b[_0x26583d(_0x58ab7a._0x25bfdb)]
|
|
2029
2049
|
})
|
|
2030
|
-
}),
|
|
2031
|
-
if (!
|
|
2032
|
-
throw new Error(
|
|
2033
|
-
return
|
|
2050
|
+
}), _0x421181 = await _0x3e6daf[_0x26583d(_0x58ab7a._0x23c89a)]();
|
|
2051
|
+
if (!_0x421181['ok'])
|
|
2052
|
+
throw new Error(_0x421181[_0x26583d(_0x58ab7a._0x54b0d0)] ?? 'escalate_to_main\x20failed');
|
|
2053
|
+
return _0x26583d(0x306) + _0x2c228b[_0x26583d(0x2db)];
|
|
2034
2054
|
}
|
|
2035
2055
|
};
|
|
2036
2056
|
}
|
|
2037
|
-
function textResult(
|
|
2057
|
+
function textResult(_0x3953c2, _0x35fa04 = ![]) {
|
|
2038
2058
|
return {
|
|
2039
2059
|
'content': [{
|
|
2040
2060
|
'type': 'text',
|
|
2041
|
-
'text':
|
|
2061
|
+
'text': _0x3953c2
|
|
2042
2062
|
}],
|
|
2043
|
-
...
|
|
2063
|
+
..._0x35fa04 ? { 'isError': !![] } : {}
|
|
2044
2064
|
};
|
|
2045
2065
|
}
|
|
2046
|
-
async function registerChatBridgeTools(
|
|
2047
|
-
const
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
_0xe990c6(0x183),
|
|
2114
|
-
_0xe990c6(0x25e)
|
|
2115
|
-
])[_0xe990c6(_0x3ed7c6._0x5e54e0)]()['describe']('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2116
|
-
}, async _0x3e95f7 => {
|
|
2117
|
-
const _0x1f7316 = _0xe990c6;
|
|
2066
|
+
async function registerChatBridgeTools(_0x7f9630, _0x35452b, _0x4a7117) {
|
|
2067
|
+
const _0x335c9b = {
|
|
2068
|
+
_0x353b68: 0x292,
|
|
2069
|
+
_0x2cf06b: 0x26b,
|
|
2070
|
+
_0x37a9ac: 0x2c5,
|
|
2071
|
+
_0x4a3f93: 0x2c5,
|
|
2072
|
+
_0x359b19: 0x323,
|
|
2073
|
+
_0x12b94b: 0x22e,
|
|
2074
|
+
_0x16b7ed: 0x1cb,
|
|
2075
|
+
_0x4128b9: 0x2fb,
|
|
2076
|
+
_0x35dd24: 0x1e5,
|
|
2077
|
+
_0xe0dad9: 0x313,
|
|
2078
|
+
_0x2ef80c: 0x2d8,
|
|
2079
|
+
_0x2b0f17: 0x303,
|
|
2080
|
+
_0x4bc742: 0x2e2,
|
|
2081
|
+
_0x2a8b17: 0x314,
|
|
2082
|
+
_0x1274b0: 0x1b1,
|
|
2083
|
+
_0x194a5a: 0x2a9,
|
|
2084
|
+
_0x57ee79: 0x1eb,
|
|
2085
|
+
_0x5db6ff: 0x226,
|
|
2086
|
+
_0x5a4383: 0x2c5,
|
|
2087
|
+
_0x57122e: 0x1e5,
|
|
2088
|
+
_0x439ef3: 0x1b1,
|
|
2089
|
+
_0x34884e: 0x1fc,
|
|
2090
|
+
_0x5265ca: 0x292,
|
|
2091
|
+
_0x55f9bf: 0x2c9,
|
|
2092
|
+
_0x3f9988: 0x1cf,
|
|
2093
|
+
_0x11f863: 0x292,
|
|
2094
|
+
_0x2e5fc5: 0x223,
|
|
2095
|
+
_0x20c991: 0x257,
|
|
2096
|
+
_0x11ab05: 0x2c5,
|
|
2097
|
+
_0x425fa4: 0x292,
|
|
2098
|
+
_0x161e1b: 0x2f0,
|
|
2099
|
+
_0x54f551: 0x1a2,
|
|
2100
|
+
_0x358ea3: 0x2c5,
|
|
2101
|
+
_0x40751c: 0x2c9,
|
|
2102
|
+
_0x5b88bc: 0x2e3,
|
|
2103
|
+
_0x409aaf: 0x2c5,
|
|
2104
|
+
_0x4e8239: 0x20b,
|
|
2105
|
+
_0x4a01a0: 0x230,
|
|
2106
|
+
_0x56b75f: 0x2c5
|
|
2107
|
+
}, _0x785c45 = {
|
|
2108
|
+
_0x72ba9c: 0x20b,
|
|
2109
|
+
_0x2a7056: 0x1a4
|
|
2110
|
+
}, _0x38c2c2 = {
|
|
2111
|
+
_0x102376: 0x318,
|
|
2112
|
+
_0x414d5b: 0x30c
|
|
2113
|
+
}, _0x56ffd9 = { _0x4b7bf7: 0x1a2 }, _0x35a4f5 = { _0x19f271: 0x223 }, _0x208284 = { _0x37d299: 0x30c }, _0x4e415e = { _0x592dac: 0x30c }, _0x324983 = {
|
|
2114
|
+
_0x2348e5: 0x273,
|
|
2115
|
+
_0xe66f9d: 0x30c
|
|
2116
|
+
}, _0x25daff = { _0x3b57f0: 0x30c }, _0x10e057 = {
|
|
2117
|
+
_0x4ba507: 0x314,
|
|
2118
|
+
_0x1d41f4: 0x2bf
|
|
2119
|
+
}, _0x2c34a2 = { _0x579248: 0x2ec }, _0x3f8a30 = { _0x318fcd: 0x2d8 }, _0x21360d = {
|
|
2120
|
+
_0x471be2: 0x2fb,
|
|
2121
|
+
_0x216dff: 0x310
|
|
2122
|
+
}, _0x4aecfd = { _0x194d74: 0x30c }, _0x455c78 = _0x54fce, {z: _0x586e6f} = await import(_0x455c78(0x2c8));
|
|
2123
|
+
_0x7f9630[_0x455c78(_0x335c9b._0x353b68)](_0x455c78(0x2a3), _0x455c78(_0x335c9b._0x2cf06b), {
|
|
2124
|
+
'target': _0x586e6f[_0x455c78(_0x335c9b._0x37a9ac)](),
|
|
2125
|
+
'content': _0x586e6f[_0x455c78(_0x335c9b._0x37a9ac)](),
|
|
2126
|
+
'attachment_ids': _0x586e6f['array'](_0x586e6f[_0x455c78(_0x335c9b._0x4a3f93)]())[_0x455c78(0x313)](),
|
|
2127
|
+
'visibility': _0x586e6f[_0x455c78(0x2c9)]([
|
|
2128
|
+
_0x455c78(_0x335c9b._0x359b19),
|
|
2129
|
+
_0x455c78(0x1e9)
|
|
2130
|
+
])[_0x455c78(0x313)]()[_0x455c78(0x1b8)](_0x455c78(_0x335c9b._0x12b94b))
|
|
2131
|
+
}, async _0xc4f5f => {
|
|
2132
|
+
const _0x50820d = _0x455c78;
|
|
2118
2133
|
try {
|
|
2119
|
-
return textResult(await
|
|
2120
|
-
} catch (
|
|
2121
|
-
return textResult(
|
|
2134
|
+
return textResult(await _0x35452b[_0x50820d(0x2a3)](_0xc4f5f));
|
|
2135
|
+
} catch (_0x12668d) {
|
|
2136
|
+
return textResult(_0x12668d instanceof Error ? _0x12668d[_0x50820d(_0x4aecfd._0x194d74)] : _0x50820d(0x238), !![]);
|
|
2122
2137
|
}
|
|
2123
|
-
}),
|
|
2124
|
-
const
|
|
2138
|
+
}), _0x7f9630['tool'](_0x455c78(_0x335c9b._0x16b7ed), _0x455c78(0x215), {}, async () => {
|
|
2139
|
+
const _0x3a5649 = _0x455c78;
|
|
2125
2140
|
try {
|
|
2126
|
-
return textResult(await
|
|
2127
|
-
} catch (
|
|
2128
|
-
return textResult(
|
|
2141
|
+
return textResult(await _0x35452b[_0x3a5649(0x1cb)]());
|
|
2142
|
+
} catch (_0x2ca7e7) {
|
|
2143
|
+
return textResult(_0x2ca7e7 instanceof Error ? _0x2ca7e7['message'] : _0x3a5649(0x28e), !![]);
|
|
2129
2144
|
}
|
|
2130
|
-
}),
|
|
2131
|
-
'channel':
|
|
2132
|
-
'limit':
|
|
2133
|
-
'before':
|
|
2134
|
-
'after':
|
|
2135
|
-
}, async
|
|
2136
|
-
const
|
|
2145
|
+
}), _0x7f9630[_0x455c78(0x292)](_0x455c78(_0x335c9b._0x4128b9), _0x455c78(0x272), {
|
|
2146
|
+
'channel': _0x586e6f[_0x455c78(0x2c5)](),
|
|
2147
|
+
'limit': _0x586e6f[_0x455c78(_0x335c9b._0x35dd24)]()[_0x455c78(0x313)](),
|
|
2148
|
+
'before': _0x586e6f['number']()[_0x455c78(_0x335c9b._0xe0dad9)](),
|
|
2149
|
+
'after': _0x586e6f['number']()[_0x455c78(0x313)]()
|
|
2150
|
+
}, async _0x5b1f48 => {
|
|
2151
|
+
const _0x43c18a = _0x455c78;
|
|
2137
2152
|
try {
|
|
2138
|
-
return textResult(await
|
|
2139
|
-
} catch (
|
|
2140
|
-
return textResult(
|
|
2153
|
+
return textResult(await _0x35452b[_0x43c18a(_0x21360d._0x471be2)](_0x5b1f48));
|
|
2154
|
+
} catch (_0x2a6d26) {
|
|
2155
|
+
return textResult(_0x2a6d26 instanceof Error ? _0x2a6d26['message'] : _0x43c18a(_0x21360d._0x216dff), !![]);
|
|
2141
2156
|
}
|
|
2142
|
-
}),
|
|
2143
|
-
const
|
|
2157
|
+
}), _0x7f9630[_0x455c78(0x292)](_0x455c78(_0x335c9b._0x2ef80c), _0x455c78(_0x335c9b._0x2b0f17), {}, async () => {
|
|
2158
|
+
const _0x50b710 = _0x455c78;
|
|
2144
2159
|
try {
|
|
2145
|
-
return textResult(await
|
|
2146
|
-
} catch (
|
|
2147
|
-
return textResult(
|
|
2160
|
+
return textResult(await _0x35452b[_0x50b710(_0x3f8a30._0x318fcd)]());
|
|
2161
|
+
} catch (_0x16cf4b) {
|
|
2162
|
+
return textResult(_0x16cf4b instanceof Error ? _0x16cf4b[_0x50b710(0x30c)] : 'list_server\x20failed', !![]);
|
|
2148
2163
|
}
|
|
2149
|
-
}),
|
|
2150
|
-
'channel':
|
|
2151
|
-
'status':
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
])[
|
|
2157
|
-
}, async
|
|
2158
|
-
const
|
|
2164
|
+
}), _0x7f9630[_0x455c78(0x292)](_0x455c78(0x2ec), _0x455c78(_0x335c9b._0x4bc742), {
|
|
2165
|
+
'channel': _0x586e6f[_0x455c78(0x2c5)](),
|
|
2166
|
+
'status': _0x586e6f[_0x455c78(0x2c9)]([
|
|
2167
|
+
_0x455c78(0x1b3),
|
|
2168
|
+
_0x455c78(0x2f1),
|
|
2169
|
+
'in_review',
|
|
2170
|
+
'done'
|
|
2171
|
+
])[_0x455c78(_0x335c9b._0xe0dad9)]()
|
|
2172
|
+
}, async _0x460628 => {
|
|
2173
|
+
const _0x44e874 = _0x455c78;
|
|
2159
2174
|
try {
|
|
2160
|
-
return textResult(await
|
|
2161
|
-
} catch (
|
|
2162
|
-
return textResult(
|
|
2175
|
+
return textResult(await _0x35452b[_0x44e874(_0x2c34a2._0x579248)](_0x460628));
|
|
2176
|
+
} catch (_0x483525) {
|
|
2177
|
+
return textResult(_0x483525 instanceof Error ? _0x483525['message'] : 'list_tasks\x20failed', !![]);
|
|
2163
2178
|
}
|
|
2164
|
-
}),
|
|
2165
|
-
'channel':
|
|
2166
|
-
'idempotency_key':
|
|
2167
|
-
'tasks':
|
|
2168
|
-
'title':
|
|
2169
|
-
'description':
|
|
2170
|
-
'priority':
|
|
2179
|
+
}), _0x7f9630[_0x455c78(_0x335c9b._0x353b68)](_0x455c78(_0x335c9b._0x2a8b17), _0x455c78(0x224), {
|
|
2180
|
+
'channel': _0x586e6f['string'](),
|
|
2181
|
+
'idempotency_key': _0x586e6f[_0x455c78(0x2c5)]()['optional'](),
|
|
2182
|
+
'tasks': _0x586e6f[_0x455c78(_0x335c9b._0x1274b0)](_0x586e6f[_0x455c78(0x213)]({
|
|
2183
|
+
'title': _0x586e6f[_0x455c78(0x2c5)](),
|
|
2184
|
+
'description': _0x586e6f[_0x455c78(0x2c5)]()[_0x455c78(_0x335c9b._0xe0dad9)](),
|
|
2185
|
+
'priority': _0x586e6f['enum']([
|
|
2171
2186
|
'low',
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
])[
|
|
2187
|
+
_0x455c78(_0x335c9b._0x194a5a),
|
|
2188
|
+
_0x455c78(0x246),
|
|
2189
|
+
_0x455c78(_0x335c9b._0x57ee79)
|
|
2190
|
+
])[_0x455c78(_0x335c9b._0xe0dad9)]()
|
|
2176
2191
|
}))
|
|
2177
|
-
}, async
|
|
2178
|
-
const
|
|
2192
|
+
}, async _0x203a74 => {
|
|
2193
|
+
const _0x118c6d = _0x455c78;
|
|
2179
2194
|
try {
|
|
2180
|
-
return textResult(await
|
|
2181
|
-
} catch (
|
|
2182
|
-
return textResult(
|
|
2195
|
+
return textResult(await _0x35452b[_0x118c6d(_0x10e057._0x4ba507)](_0x203a74));
|
|
2196
|
+
} catch (_0x5e0fc9) {
|
|
2197
|
+
return textResult(_0x5e0fc9 instanceof Error ? _0x5e0fc9['message'] : _0x118c6d(_0x10e057._0x1d41f4), !![]);
|
|
2183
2198
|
}
|
|
2184
|
-
}),
|
|
2185
|
-
'channel':
|
|
2186
|
-
'task_numbers':
|
|
2187
|
-
'subtask_numbers':
|
|
2188
|
-
'message_ids':
|
|
2189
|
-
'evidence':
|
|
2190
|
-
'create_thread':
|
|
2191
|
-
'create_task':
|
|
2192
|
-
}))[
|
|
2193
|
-
'idempotency_key':
|
|
2194
|
-
}, async
|
|
2195
|
-
const
|
|
2199
|
+
}), _0x7f9630['tool'](_0x455c78(_0x335c9b._0x5db6ff), _0x455c78(0x20c), {
|
|
2200
|
+
'channel': _0x586e6f[_0x455c78(_0x335c9b._0x5a4383)](),
|
|
2201
|
+
'task_numbers': _0x586e6f[_0x455c78(0x1b1)](_0x586e6f[_0x455c78(_0x335c9b._0x57122e)]())[_0x455c78(0x313)](),
|
|
2202
|
+
'subtask_numbers': _0x586e6f[_0x455c78(_0x335c9b._0x439ef3)](_0x586e6f[_0x455c78(_0x335c9b._0x57122e)]())[_0x455c78(0x313)](),
|
|
2203
|
+
'message_ids': _0x586e6f[_0x455c78(0x1b1)](_0x586e6f[_0x455c78(0x2c5)]())[_0x455c78(0x313)](),
|
|
2204
|
+
'evidence': _0x586e6f[_0x455c78(0x1ac)](_0x586e6f['string'](), _0x586e6f[_0x455c78(0x213)]({
|
|
2205
|
+
'create_thread': _0x586e6f[_0x455c78(0x2df)]()['optional'](),
|
|
2206
|
+
'create_task': _0x586e6f['unknown']()[_0x455c78(_0x335c9b._0xe0dad9)]()
|
|
2207
|
+
}))[_0x455c78(_0x335c9b._0xe0dad9)](),
|
|
2208
|
+
'idempotency_key': _0x586e6f['string']()['optional']()
|
|
2209
|
+
}, async _0x1758f6 => {
|
|
2210
|
+
const _0x3743c0 = _0x455c78;
|
|
2196
2211
|
try {
|
|
2197
|
-
return textResult(await
|
|
2198
|
-
} catch (
|
|
2199
|
-
return textResult(
|
|
2212
|
+
return textResult(await _0x35452b[_0x3743c0(0x226)](_0x1758f6));
|
|
2213
|
+
} catch (_0x47c54f) {
|
|
2214
|
+
return textResult(_0x47c54f instanceof Error ? _0x47c54f[_0x3743c0(_0x25daff._0x3b57f0)] : 'claim_tasks\x20failed', !![]);
|
|
2200
2215
|
}
|
|
2201
|
-
}),
|
|
2202
|
-
'channel':
|
|
2203
|
-
'task_number':
|
|
2204
|
-
'subtask_number':
|
|
2205
|
-
'idempotency_key':
|
|
2206
|
-
}, async
|
|
2207
|
-
const
|
|
2216
|
+
}), _0x7f9630['tool'](_0x455c78(0x273), _0x455c78(_0x335c9b._0x34884e), {
|
|
2217
|
+
'channel': _0x586e6f[_0x455c78(0x2c5)](),
|
|
2218
|
+
'task_number': _0x586e6f[_0x455c78(_0x335c9b._0x35dd24)](),
|
|
2219
|
+
'subtask_number': _0x586e6f[_0x455c78(_0x335c9b._0x35dd24)]()[_0x455c78(_0x335c9b._0xe0dad9)](),
|
|
2220
|
+
'idempotency_key': _0x586e6f['string']()[_0x455c78(0x313)]()
|
|
2221
|
+
}, async _0x242fd7 => {
|
|
2222
|
+
const _0x5e8a42 = _0x455c78;
|
|
2208
2223
|
try {
|
|
2209
|
-
return textResult(await
|
|
2210
|
-
} catch (
|
|
2211
|
-
return textResult(
|
|
2224
|
+
return textResult(await _0x35452b[_0x5e8a42(_0x324983._0x2348e5)](_0x242fd7));
|
|
2225
|
+
} catch (_0x5b6578) {
|
|
2226
|
+
return textResult(_0x5b6578 instanceof Error ? _0x5b6578[_0x5e8a42(_0x324983._0xe66f9d)] : _0x5e8a42(0x309), !![]);
|
|
2212
2227
|
}
|
|
2213
|
-
}),
|
|
2214
|
-
'channel':
|
|
2215
|
-
'task_number':
|
|
2216
|
-
'subtask_number':
|
|
2217
|
-
'status':
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2228
|
+
}), _0x7f9630[_0x455c78(_0x335c9b._0x5265ca)]('update_task_status', _0x455c78(0x29a), {
|
|
2229
|
+
'channel': _0x586e6f[_0x455c78(_0x335c9b._0x37a9ac)](),
|
|
2230
|
+
'task_number': _0x586e6f[_0x455c78(_0x335c9b._0x57122e)](),
|
|
2231
|
+
'subtask_number': _0x586e6f[_0x455c78(0x1e5)]()[_0x455c78(0x313)](),
|
|
2232
|
+
'status': _0x586e6f[_0x455c78(_0x335c9b._0x55f9bf)]([
|
|
2233
|
+
_0x455c78(0x1b3),
|
|
2234
|
+
_0x455c78(0x2f1),
|
|
2235
|
+
_0x455c78(_0x335c9b._0x3f9988),
|
|
2236
|
+
_0x455c78(0x2d3)
|
|
2222
2237
|
]),
|
|
2223
|
-
'idempotency_key':
|
|
2224
|
-
}, async
|
|
2225
|
-
const
|
|
2238
|
+
'idempotency_key': _0x586e6f[_0x455c78(0x2c5)]()['optional']()
|
|
2239
|
+
}, async _0x52fc11 => {
|
|
2240
|
+
const _0x57b57c = _0x455c78;
|
|
2226
2241
|
try {
|
|
2227
|
-
return textResult(await
|
|
2228
|
-
} catch (
|
|
2229
|
-
return textResult(
|
|
2242
|
+
return textResult(await _0x35452b['update_task_status'](_0x52fc11));
|
|
2243
|
+
} catch (_0x22b80e) {
|
|
2244
|
+
return textResult(_0x22b80e instanceof Error ? _0x22b80e[_0x57b57c(_0x4e415e._0x592dac)] : _0x57b57c(0x290), !![]);
|
|
2230
2245
|
}
|
|
2231
|
-
}),
|
|
2232
|
-
'channel':
|
|
2233
|
-
'file_path':
|
|
2234
|
-
}, async
|
|
2235
|
-
const
|
|
2246
|
+
}), _0x7f9630[_0x455c78(_0x335c9b._0x353b68)]('upload_file', 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2247
|
+
'channel': _0x586e6f[_0x455c78(0x2c5)](),
|
|
2248
|
+
'file_path': _0x586e6f[_0x455c78(0x2c5)]()
|
|
2249
|
+
}, async _0x4c257e => {
|
|
2250
|
+
const _0x1aad9e = _0x455c78;
|
|
2236
2251
|
try {
|
|
2237
|
-
return textResult(await
|
|
2238
|
-
} catch (
|
|
2239
|
-
return textResult(
|
|
2252
|
+
return textResult(await _0x35452b[_0x1aad9e(0x27c)](_0x4c257e));
|
|
2253
|
+
} catch (_0x50cca7) {
|
|
2254
|
+
return textResult(_0x50cca7 instanceof Error ? _0x50cca7[_0x1aad9e(0x30c)] : 'upload_file\x20failed', !![]);
|
|
2240
2255
|
}
|
|
2241
|
-
}),
|
|
2242
|
-
const
|
|
2256
|
+
}), _0x7f9630[_0x455c78(_0x335c9b._0x11f863)]('view_file', 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x586e6f[_0x455c78(0x2c5)]() }, async _0x57654e => {
|
|
2257
|
+
const _0x1d0833 = _0x455c78;
|
|
2243
2258
|
try {
|
|
2244
|
-
return textResult(await
|
|
2245
|
-
} catch (
|
|
2246
|
-
return textResult(
|
|
2259
|
+
return textResult(await _0x35452b[_0x1d0833(0x1d2)](_0x57654e));
|
|
2260
|
+
} catch (_0x3e17e8) {
|
|
2261
|
+
return textResult(_0x3e17e8 instanceof Error ? _0x3e17e8[_0x1d0833(_0x208284._0x37d299)] : 'view_file\x20failed', !![]);
|
|
2247
2262
|
}
|
|
2248
|
-
}),
|
|
2249
|
-
const
|
|
2263
|
+
}), _0x7f9630[_0x455c78(0x292)](_0x455c78(_0x335c9b._0x2e5fc5), _0x455c78(_0x335c9b._0x20c991), { 'work_key': _0x586e6f[_0x455c78(_0x335c9b._0x11ab05)]() }, async _0x35299b => {
|
|
2264
|
+
const _0x4c1a65 = _0x455c78;
|
|
2250
2265
|
try {
|
|
2251
|
-
return textResult(await
|
|
2252
|
-
} catch (
|
|
2253
|
-
return textResult(
|
|
2266
|
+
return textResult(await _0x35452b[_0x4c1a65(_0x35a4f5._0x19f271)](_0x35299b));
|
|
2267
|
+
} catch (_0x22bf16) {
|
|
2268
|
+
return textResult(_0x22bf16 instanceof Error ? _0x22bf16['message'] : 'get_worker_status\x20failed', !![]);
|
|
2254
2269
|
}
|
|
2255
|
-
}),
|
|
2256
|
-
const
|
|
2270
|
+
}), _0x7f9630[_0x455c78(_0x335c9b._0x425fa4)](_0x455c78(_0x335c9b._0x161e1b), _0x455c78(0x21a), { 'work_key': _0x586e6f[_0x455c78(0x2c5)]() }, async _0x4b4699 => {
|
|
2271
|
+
const _0xff9659 = _0x455c78;
|
|
2257
2272
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2273
|
+
return textResult(await _0x35452b['get_worker_result'](_0x4b4699));
|
|
2274
|
+
} catch (_0x8de3c1) {
|
|
2275
|
+
return textResult(_0x8de3c1 instanceof Error ? _0x8de3c1[_0xff9659(0x30c)] : _0xff9659(0x1b2), !![]);
|
|
2261
2276
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
'work_key':
|
|
2264
|
-
'result':
|
|
2277
|
+
}), _0x7f9630[_0x455c78(0x292)](_0x455c78(_0x335c9b._0x54f551), _0x455c78(0x315), {
|
|
2278
|
+
'work_key': _0x586e6f[_0x455c78(_0x335c9b._0x358ea3)](),
|
|
2279
|
+
'result': _0x586e6f[_0x455c78(_0x335c9b._0x40751c)]([
|
|
2265
2280
|
'completed',
|
|
2266
|
-
|
|
2281
|
+
_0x455c78(_0x335c9b._0x5b88bc),
|
|
2267
2282
|
'failed'
|
|
2268
2283
|
]),
|
|
2269
|
-
'summary':
|
|
2270
|
-
'decisions':
|
|
2271
|
-
'files_changed':
|
|
2272
|
-
'open_issues':
|
|
2273
|
-
'next_steps':
|
|
2274
|
-
}, async
|
|
2275
|
-
const
|
|
2284
|
+
'summary': _0x586e6f['string'](),
|
|
2285
|
+
'decisions': _0x586e6f['array'](_0x586e6f['string']())[_0x455c78(0x313)](),
|
|
2286
|
+
'files_changed': _0x586e6f[_0x455c78(_0x335c9b._0x1274b0)](_0x586e6f[_0x455c78(0x2c5)]())[_0x455c78(_0x335c9b._0xe0dad9)](),
|
|
2287
|
+
'open_issues': _0x586e6f[_0x455c78(_0x335c9b._0x1274b0)](_0x586e6f[_0x455c78(_0x335c9b._0x409aaf)]())[_0x455c78(0x313)](),
|
|
2288
|
+
'next_steps': _0x586e6f['array'](_0x586e6f['string']())['optional']()
|
|
2289
|
+
}, async _0x3b6008 => {
|
|
2290
|
+
const _0x37deb8 = _0x455c78;
|
|
2276
2291
|
try {
|
|
2277
|
-
return textResult(await
|
|
2278
|
-
} catch (
|
|
2279
|
-
return textResult(
|
|
2292
|
+
return textResult(await _0x35452b[_0x37deb8(_0x56ffd9._0x4b7bf7)](_0x3b6008));
|
|
2293
|
+
} catch (_0x462e0c) {
|
|
2294
|
+
return textResult(_0x462e0c instanceof Error ? _0x462e0c[_0x37deb8(0x30c)] : 'finish_worker\x20failed', !![]);
|
|
2280
2295
|
}
|
|
2281
|
-
}),
|
|
2282
|
-
'work_key':
|
|
2283
|
-
'reason':
|
|
2284
|
-
}, async
|
|
2285
|
-
const
|
|
2296
|
+
}), _0x7f9630['tool'](_0x455c78(0x318), _0x455c78(0x256), {
|
|
2297
|
+
'work_key': _0x586e6f['string'](),
|
|
2298
|
+
'reason': _0x586e6f[_0x455c78(0x2c5)]()
|
|
2299
|
+
}, async _0x160838 => {
|
|
2300
|
+
const _0x533b43 = _0x455c78;
|
|
2286
2301
|
try {
|
|
2287
|
-
return textResult(await
|
|
2288
|
-
} catch (
|
|
2289
|
-
return textResult(
|
|
2302
|
+
return textResult(await _0x35452b[_0x533b43(_0x38c2c2._0x102376)](_0x160838));
|
|
2303
|
+
} catch (_0x12d896) {
|
|
2304
|
+
return textResult(_0x12d896 instanceof Error ? _0x12d896[_0x533b43(_0x38c2c2._0x414d5b)] : _0x533b43(0x200), !![]);
|
|
2290
2305
|
}
|
|
2291
|
-
}),
|
|
2292
|
-
const
|
|
2306
|
+
}), _0x4a7117?.['workerMode'] && _0x7f9630['tool'](_0x455c78(_0x335c9b._0x4e8239), _0x455c78(_0x335c9b._0x4a01a0), { 'work_key': _0x586e6f[_0x455c78(_0x335c9b._0x56b75f)]() }, async _0xfef345 => {
|
|
2307
|
+
const _0x2a4afb = _0x455c78;
|
|
2293
2308
|
try {
|
|
2294
|
-
return textResult(await
|
|
2295
|
-
} catch (
|
|
2296
|
-
return textResult(
|
|
2309
|
+
return textResult(await _0x35452b[_0x2a4afb(_0x785c45._0x72ba9c)](_0xfef345));
|
|
2310
|
+
} catch (_0x2278c0) {
|
|
2311
|
+
return textResult(_0x2278c0 instanceof Error ? _0x2278c0['message'] : _0x2a4afb(_0x785c45._0x2a7056), !![]);
|
|
2297
2312
|
}
|
|
2298
2313
|
});
|
|
2299
2314
|
}
|
|
2300
|
-
async function createChatBridgeServer(
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
},
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
return await registerChatBridgeTools(_0x55f139, _0x4e0837, { 'workerMode': _0x16b22c[_0x42e630(0x27e)] }), {
|
|
2309
|
-
'handlers': _0x4e0837,
|
|
2310
|
-
'server': _0x55f139
|
|
2315
|
+
async function createChatBridgeServer(_0x5f0ff1) {
|
|
2316
|
+
const _0x116595 = { _0x27fdaf: 0x1c9 }, _0x188079 = _0x54fce, {McpServer: _0x1f7469} = await import(_0x188079(_0x116595._0x27fdaf)), _0xa3a5b1 = new _0x1f7469({
|
|
2317
|
+
'name': 'chat',
|
|
2318
|
+
'version': _0x188079(0x1c7)
|
|
2319
|
+
}), _0x24bfe3 = createChatBridgeHandlers(_0x5f0ff1);
|
|
2320
|
+
return await registerChatBridgeTools(_0xa3a5b1, _0x24bfe3, { 'workerMode': _0x5f0ff1[_0x188079(0x28d)] }), {
|
|
2321
|
+
'handlers': _0x24bfe3,
|
|
2322
|
+
'server': _0xa3a5b1
|
|
2311
2323
|
};
|
|
2312
2324
|
}
|
|
2313
|
-
function readFlag(
|
|
2314
|
-
const
|
|
2315
|
-
if (
|
|
2325
|
+
function readFlag(_0x349303, _0x46de4d) {
|
|
2326
|
+
const _0x160427 = _0x54fce, _0x54ac6c = _0x349303[_0x160427(0x1ae)](_0x46de4d);
|
|
2327
|
+
if (_0x54ac6c === -0x1)
|
|
2316
2328
|
return void 0x0;
|
|
2317
|
-
return
|
|
2329
|
+
return _0x349303[_0x54ac6c + 0x1];
|
|
2318
2330
|
}
|
|
2319
|
-
function parseChatBridgeArgs(
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
},
|
|
2325
|
-
if (!
|
|
2326
|
-
throw new Error(
|
|
2327
|
-
if (!
|
|
2328
|
-
throw new Error(
|
|
2329
|
-
if (
|
|
2331
|
+
function parseChatBridgeArgs(_0x5b8ce8) {
|
|
2332
|
+
const _0x44fc09 = {
|
|
2333
|
+
_0x48647d: 0x29e,
|
|
2334
|
+
_0x47b927: 0x293,
|
|
2335
|
+
_0x3fa3c3: 0x1e1
|
|
2336
|
+
}, _0x4afa58 = _0x54fce, _0x212c66 = readFlag(_0x5b8ce8, _0x4afa58(0x2d4)), _0x189d69 = readFlag(_0x5b8ce8, _0x4afa58(_0x44fc09._0x48647d)), _0x18af76 = readFlag(_0x5b8ce8, '--initial-last-seen-seq'), _0x79e37 = readFlag(_0x5b8ce8, _0x4afa58(0x31d)) ?? _0x4afa58(0x2aa), _0x25f35a = readFlag(_0x5b8ce8, _0x4afa58(0x308)), _0x13fb7d = readFlag(_0x5b8ce8, _0x4afa58(_0x44fc09._0x47b927)), _0x4e8ec7 = readFlag(_0x5b8ce8, _0x4afa58(0x2b3)), _0x191caf = readFlag(_0x5b8ce8, _0x4afa58(_0x44fc09._0x3fa3c3)), _0x308dac = readFlag(_0x5b8ce8, _0x4afa58(0x26c)), _0x1680ed = _0x5b8ce8[_0x4afa58(0x218)](_0x4afa58(0x209)), _0x4c7bd2 = _0x18af76 === void 0x0 ? void 0x0 : Number[_0x4afa58(0x233)](_0x18af76, 0xa);
|
|
2337
|
+
if (!_0x212c66)
|
|
2338
|
+
throw new Error(_0x4afa58(0x2ca));
|
|
2339
|
+
if (!_0x189d69)
|
|
2340
|
+
throw new Error(_0x4afa58(0x298));
|
|
2341
|
+
if (_0x18af76 !== void 0x0 && (_0x4c7bd2 === void 0x0 || !Number[_0x4afa58(0x2d7)](_0x4c7bd2) || _0x4c7bd2 < 0x0))
|
|
2330
2342
|
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2331
2343
|
return {
|
|
2332
|
-
'agentId':
|
|
2333
|
-
'daemonApiKey':
|
|
2334
|
-
'daemonLocalUrl':
|
|
2335
|
-
'initialLastSeenSeq':
|
|
2336
|
-
'sessionId':
|
|
2337
|
-
'serverUrl':
|
|
2338
|
-
'workerModeEnabled':
|
|
2339
|
-
'workerSessionId':
|
|
2340
|
-
'workerThreadTarget':
|
|
2341
|
-
'workerMode':
|
|
2344
|
+
'agentId': _0x212c66,
|
|
2345
|
+
'daemonApiKey': _0x189d69,
|
|
2346
|
+
'daemonLocalUrl': _0x25f35a,
|
|
2347
|
+
'initialLastSeenSeq': _0x4c7bd2,
|
|
2348
|
+
'sessionId': _0x13fb7d,
|
|
2349
|
+
'serverUrl': _0x79e37,
|
|
2350
|
+
'workerModeEnabled': _0x4e8ec7 === void 0x0 ? void 0x0 : _0x4e8ec7 !== _0x4afa58(0x216),
|
|
2351
|
+
'workerSessionId': _0x191caf,
|
|
2352
|
+
'workerThreadTarget': _0x308dac,
|
|
2353
|
+
'workerMode': _0x1680ed
|
|
2342
2354
|
};
|
|
2343
2355
|
}
|
|
2344
|
-
async function runChatBridgeCli(
|
|
2345
|
-
const
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
},
|
|
2349
|
-
'agentId':
|
|
2350
|
-
'attachmentCache':
|
|
2351
|
-
'client':
|
|
2352
|
-
'daemonLocalUrl':
|
|
2356
|
+
async function runChatBridgeCli(_0x42c17a) {
|
|
2357
|
+
const _0x2d2ed9 = {
|
|
2358
|
+
_0x526377: 0x28d,
|
|
2359
|
+
_0x35f1ce: 0x22a
|
|
2360
|
+
}, _0x2cbb19 = _0x54fce, _0x31ed69 = parseChatBridgeArgs(_0x42c17a), {StdioServerTransport: _0xec05aa} = await import(_0x2cbb19(0x1a5)), _0xf4469b = createInternalAgentClient(_0x31ed69), _0x4cd610 = createAttachmentCache(), _0x3bd126 = await createChatBridgeServer({
|
|
2361
|
+
'agentId': _0x31ed69[_0x2cbb19(0x2b5)],
|
|
2362
|
+
'attachmentCache': _0x4cd610,
|
|
2363
|
+
'client': _0xf4469b,
|
|
2364
|
+
'daemonLocalUrl': _0x31ed69[_0x2cbb19(0x317)],
|
|
2353
2365
|
'uploadPreparer': prepareUploadFile,
|
|
2354
|
-
'workerModeEnabled':
|
|
2355
|
-
'workerMode':
|
|
2366
|
+
'workerModeEnabled': _0x31ed69['workerModeEnabled'],
|
|
2367
|
+
'workerMode': _0x31ed69[_0x2cbb19(_0x2d2ed9._0x526377)]
|
|
2356
2368
|
});
|
|
2357
|
-
await
|
|
2369
|
+
await _0x3bd126[_0x2cbb19(_0x2d2ed9._0x35f1ce)]['connect'](new _0xec05aa());
|
|
2358
2370
|
}
|
|
2359
|
-
var executedAsEntry = process[
|
|
2360
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2371
|
+
var executedAsEntry = process[_0x54fce(0x1ff)][0x1] ? import.meta.url === pathToFileURL(process[_0x54fce(0x1ff)][0x1])[_0x54fce(0x300)] : ![];
|
|
2372
|
+
executedAsEntry && await runChatBridgeCli(process[_0x54fce(0x1ff)][_0x54fce(0x2ee)](0x2));
|
|
2361
2373
|
export {
|
|
2362
2374
|
createChatBridgeHandlers,
|
|
2363
2375
|
createChatBridgeServer,
|