@dscord/daemon 0.1.17 → 0.1.19
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 +1906 -1940
- package/dist/index.js +7569 -7499
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const _0x6aa24e = _0x3431;
|
|
2
|
+
(function (_0x243e58, _0x5a06c9) {
|
|
3
|
+
const _0x82634d = {
|
|
4
|
+
_0x2782c8: 0x1e8,
|
|
5
|
+
_0x478ff7: 0x129,
|
|
6
|
+
_0x5f153c: 0x16a,
|
|
7
|
+
_0x5b9e59: 0x1a2,
|
|
8
|
+
_0x3e6273: 0x225,
|
|
9
|
+
_0x363635: 0x133,
|
|
10
|
+
_0xb05356: 0x1cd
|
|
11
|
+
}, _0x17cd81 = _0x3431, _0x9dc8df = _0x243e58();
|
|
9
12
|
while (!![]) {
|
|
10
13
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
14
|
+
const _0x288d02 = -parseInt(_0x17cd81(_0x82634d._0x2782c8)) / 0x1 * (parseInt(_0x17cd81(_0x82634d._0x478ff7)) / 0x2) + -parseInt(_0x17cd81(_0x82634d._0x5f153c)) / 0x3 * (parseInt(_0x17cd81(0x12f)) / 0x4) + -parseInt(_0x17cd81(_0x82634d._0x5b9e59)) / 0x5 + -parseInt(_0x17cd81(0x19a)) / 0x6 + parseInt(_0x17cd81(_0x82634d._0x3e6273)) / 0x7 + parseInt(_0x17cd81(0x1ac)) / 0x8 * (-parseInt(_0x17cd81(0x263)) / 0x9) + -parseInt(_0x17cd81(_0x82634d._0x363635)) / 0xa * (-parseInt(_0x17cd81(_0x82634d._0xb05356)) / 0xb);
|
|
15
|
+
if (_0x288d02 === _0x5a06c9)
|
|
13
16
|
break;
|
|
14
17
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
18
|
+
_0x9dc8df['push'](_0x9dc8df['shift']());
|
|
19
|
+
} catch (_0xe44de0) {
|
|
20
|
+
_0x9dc8df['push'](_0x9dc8df['shift']());
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
|
-
}(
|
|
23
|
+
}(_0x4fb2, 0xd1eb9));
|
|
21
24
|
import { pathToFileURL } from 'node:url';
|
|
22
25
|
import {
|
|
23
26
|
mkdir,
|
|
@@ -27,76 +30,109 @@ import {
|
|
|
27
30
|
writeFile
|
|
28
31
|
} from 'node:fs/promises';
|
|
29
32
|
import { homedir } from 'node:os';
|
|
30
|
-
import
|
|
33
|
+
import _0x439f55 from 'node:path';
|
|
31
34
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
32
|
-
'.csv':
|
|
33
|
-
'.gif':
|
|
34
|
-
'.jpeg':
|
|
35
|
-
'.jpg':
|
|
36
|
-
'.json':
|
|
37
|
-
'.md':
|
|
38
|
-
'.pdf':
|
|
39
|
-
'.png':
|
|
40
|
-
'.svg':
|
|
41
|
-
'.txt':
|
|
42
|
-
'.webp':
|
|
43
|
-
'.xml':
|
|
44
|
-
'.zip':
|
|
35
|
+
'.csv': _0x6aa24e(0x226),
|
|
36
|
+
'.gif': _0x6aa24e(0x103),
|
|
37
|
+
'.jpeg': _0x6aa24e(0x207),
|
|
38
|
+
'.jpg': _0x6aa24e(0x207),
|
|
39
|
+
'.json': _0x6aa24e(0x181),
|
|
40
|
+
'.md': _0x6aa24e(0x128),
|
|
41
|
+
'.pdf': _0x6aa24e(0x1a9),
|
|
42
|
+
'.png': _0x6aa24e(0x24e),
|
|
43
|
+
'.svg': _0x6aa24e(0x15b),
|
|
44
|
+
'.txt': _0x6aa24e(0x131),
|
|
45
|
+
'.webp': _0x6aa24e(0x124),
|
|
46
|
+
'.xml': _0x6aa24e(0x21b),
|
|
47
|
+
'.zip': _0x6aa24e(0x1fe)
|
|
45
48
|
};
|
|
46
|
-
function guessContentType(
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
return MIME_BY_EXTENSION[
|
|
49
|
+
function guessContentType(_0x556c57) {
|
|
50
|
+
const _0x4e8545 = {
|
|
51
|
+
_0x5559d7: 0x1b9,
|
|
52
|
+
_0x24f1ee: 0x1b1
|
|
53
|
+
}, _0x113286 = _0x6aa24e;
|
|
54
|
+
return MIME_BY_EXTENSION[_0x439f55[_0x113286(_0x4e8545._0x5559d7)](_0x556c57)[_0x113286(0x199)]()] ?? _0x113286(_0x4e8545._0x24f1ee);
|
|
52
55
|
}
|
|
53
|
-
function safeFilename(
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
+
function safeFilename(_0x1d1585) {
|
|
57
|
+
const _0x23db86 = { _0x93b75b: 0x258 }, _0x3999c2 = _0x6aa24e;
|
|
58
|
+
return _0x1d1585[_0x3999c2(_0x23db86._0x93b75b)](/[\\/]/g, '-');
|
|
56
59
|
}
|
|
57
|
-
function extensionFor(
|
|
58
|
-
const
|
|
59
|
-
return
|
|
60
|
+
function extensionFor(_0x548651) {
|
|
61
|
+
const _0x12c5e6 = { _0x94bf36: 0x23c }, _0x328f45 = _0x6aa24e, _0x3c5285 = Object['entries'](MIME_BY_EXTENSION)[_0x328f45(0x22f)](([, _0x53a401]) => _0x53a401 === _0x548651);
|
|
62
|
+
return _0x3c5285?.[0x0] ?? _0x328f45(_0x12c5e6._0x94bf36);
|
|
60
63
|
}
|
|
61
|
-
async function prepareUploadFile(
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
if (!
|
|
70
|
-
throw new Error(
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
73
|
-
throw new Error(
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
throw new Error(
|
|
77
|
-
const
|
|
64
|
+
async function prepareUploadFile(_0x1bc7e6, _0x35585b = {}) {
|
|
65
|
+
const _0x24806e = {
|
|
66
|
+
_0x396962: 0x19e,
|
|
67
|
+
_0x360f78: 0x150,
|
|
68
|
+
_0x374e00: 0x19f,
|
|
69
|
+
_0x411041: 0x172,
|
|
70
|
+
_0x2907ec: 0x241
|
|
71
|
+
}, _0x5c6303 = _0x6aa24e;
|
|
72
|
+
if (!_0x439f55[_0x5c6303(_0x24806e._0x396962)](_0x1bc7e6))
|
|
73
|
+
throw new Error(_0x5c6303(_0x24806e._0x360f78));
|
|
74
|
+
const _0x4ead97 = await stat(_0x1bc7e6)[_0x5c6303(_0x24806e._0x374e00)](() => null);
|
|
75
|
+
if (!_0x4ead97 || !_0x4ead97[_0x5c6303(0x156)]())
|
|
76
|
+
throw new Error(_0x5c6303(0x1e7) + _0x1bc7e6);
|
|
77
|
+
const _0x4c36a9 = _0x35585b[_0x5c6303(_0x24806e._0x411041)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
78
|
+
if (_0x4ead97[_0x5c6303(0x1dd)] > _0x4c36a9)
|
|
79
|
+
throw new Error(_0x5c6303(0x242) + _0x4ead97[_0x5c6303(0x1dd)]);
|
|
80
|
+
const _0x35f3b1 = await readFile(_0x1bc7e6), _0x2ad215 = _0x439f55['basename'](_0x1bc7e6);
|
|
78
81
|
return {
|
|
79
|
-
'contentBase64':
|
|
80
|
-
'contentType': guessContentType(
|
|
81
|
-
'filename':
|
|
82
|
-
'sizeBytes':
|
|
82
|
+
'contentBase64': _0x35f3b1[_0x5c6303(0x167)](_0x5c6303(_0x24806e._0x2907ec)),
|
|
83
|
+
'contentType': guessContentType(_0x2ad215),
|
|
84
|
+
'filename': _0x2ad215,
|
|
85
|
+
'sizeBytes': _0x4ead97['size']
|
|
83
86
|
};
|
|
84
87
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
88
|
+
function _0x3431(_0x4092ac, _0x4ee71f) {
|
|
89
|
+
_0x4092ac = _0x4092ac - 0xfc;
|
|
90
|
+
const _0x4fb22d = _0x4fb2();
|
|
91
|
+
let _0x34319e = _0x4fb22d[_0x4092ac];
|
|
92
|
+
if (_0x3431['fDPfez'] === undefined) {
|
|
93
|
+
var _0x286052 = function (_0x2f97da) {
|
|
94
|
+
const _0x48c9a0 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
95
|
+
let _0x439f55 = '', _0x556c57 = '';
|
|
96
|
+
for (let _0x1d1585 = 0x0, _0x548651, _0x3c5285, _0x53a401 = 0x0; _0x3c5285 = _0x2f97da['charAt'](_0x53a401++); ~_0x3c5285 && (_0x548651 = _0x1d1585 % 0x4 ? _0x548651 * 0x40 + _0x3c5285 : _0x3c5285, _0x1d1585++ % 0x4) ? _0x439f55 += String['fromCharCode'](0xff & _0x548651 >> (-0x2 * _0x1d1585 & 0x6)) : 0x0) {
|
|
97
|
+
_0x3c5285 = _0x48c9a0['indexOf'](_0x3c5285);
|
|
98
|
+
}
|
|
99
|
+
for (let _0x1bc7e6 = 0x0, _0x35585b = _0x439f55['length']; _0x1bc7e6 < _0x35585b; _0x1bc7e6++) {
|
|
100
|
+
_0x556c57 += '%' + ('00' + _0x439f55['charCodeAt'](_0x1bc7e6)['toString'](0x10))['slice'](-0x2);
|
|
101
|
+
}
|
|
102
|
+
return decodeURIComponent(_0x556c57);
|
|
103
|
+
};
|
|
104
|
+
_0x3431['hJkSPM'] = _0x286052, _0x3431['uxkzZu'] = {}, _0x3431['fDPfez'] = !![];
|
|
105
|
+
}
|
|
106
|
+
const _0x3749fd = _0x4fb22d[0x0], _0x2eff16 = _0x4092ac + _0x3749fd, _0x27d6b9 = _0x3431['uxkzZu'][_0x2eff16];
|
|
107
|
+
return !_0x27d6b9 ? (_0x34319e = _0x3431['hJkSPM'](_0x34319e), _0x3431['uxkzZu'][_0x2eff16] = _0x34319e) : _0x34319e = _0x27d6b9, _0x34319e;
|
|
108
|
+
}
|
|
109
|
+
function createAttachmentCache(_0x574069 = {}) {
|
|
110
|
+
const _0x4f979f = {
|
|
111
|
+
_0x2bc9cb: 0x18d,
|
|
112
|
+
_0x2aaef6: 0x13c,
|
|
113
|
+
_0x3e7a1a: 0x12e
|
|
114
|
+
}, _0x38a227 = {
|
|
115
|
+
_0x6ca472: 0x100,
|
|
116
|
+
_0x4853ee: 0x240,
|
|
117
|
+
_0x16cdc1: 0x100,
|
|
118
|
+
_0x538658: 0x208,
|
|
119
|
+
_0x11a37e: 0x165,
|
|
120
|
+
_0x98d294: 0x13c,
|
|
121
|
+
_0x127eee: 0x193
|
|
122
|
+
}, _0x351719 = _0x6aa24e, _0x5d52fc = _0x574069[_0x351719(_0x4f979f._0x2bc9cb)] ?? _0x439f55[_0x351719(_0x4f979f._0x2aaef6)](homedir(), '.slock', _0x351719(_0x4f979f._0x3e7a1a));
|
|
87
123
|
return {
|
|
88
|
-
'cacheDir':
|
|
89
|
-
async 'findCachedPath'(
|
|
90
|
-
const
|
|
91
|
-
await mkdir(
|
|
92
|
-
const
|
|
93
|
-
return
|
|
124
|
+
'cacheDir': _0x5d52fc,
|
|
125
|
+
async 'findCachedPath'(_0x5b96c6) {
|
|
126
|
+
const _0x5874ea = _0x351719;
|
|
127
|
+
await mkdir(_0x5d52fc, { 'recursive': !![] });
|
|
128
|
+
const _0x2f603e = await readdir(_0x5d52fc), _0x181064 = _0x2f603e[_0x5874ea(0x22f)](_0xee184a => _0xee184a[_0x5874ea(0x1d0)](_0x5b96c6 + '-') || _0xee184a[_0x5874ea(0x1d0)](_0x5b96c6));
|
|
129
|
+
return _0x181064 ? _0x439f55[_0x5874ea(0x13c)](_0x5d52fc, _0x181064) : null;
|
|
94
130
|
},
|
|
95
|
-
async 'save'(
|
|
96
|
-
const
|
|
97
|
-
await mkdir(
|
|
98
|
-
const
|
|
99
|
-
return await writeFile(
|
|
131
|
+
async 'save'(_0x247362) {
|
|
132
|
+
const _0x33d170 = _0x351719;
|
|
133
|
+
await mkdir(_0x5d52fc, { 'recursive': !![] });
|
|
134
|
+
const _0x39f78d = _0x247362[_0x33d170(_0x38a227._0x6ca472)]?.[_0x33d170(_0x38a227._0x4853ee)]() ? safeFilename(_0x247362[_0x33d170(_0x38a227._0x16cdc1)]) : '' + _0x247362[_0x33d170(_0x38a227._0x538658)] + extensionFor(_0x247362[_0x33d170(_0x38a227._0x11a37e)]), _0x52f62f = _0x439f55[_0x33d170(_0x38a227._0x98d294)](_0x5d52fc, _0x247362['attachmentId'] + '-' + _0x39f78d);
|
|
135
|
+
return await writeFile(_0x52f62f, _0x247362[_0x33d170(_0x38a227._0x127eee)]), _0x52f62f;
|
|
100
136
|
}
|
|
101
137
|
};
|
|
102
138
|
}
|
|
@@ -104,2214 +140,2144 @@ import {
|
|
|
104
140
|
createHash,
|
|
105
141
|
randomUUID
|
|
106
142
|
} from 'node:crypto';
|
|
107
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
108
|
-
function ensureSegment(
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
_0x56c211: 0x1c5
|
|
112
|
-
}, _0x314615 = _0x48b8fe, _0xa9e3f9 = _0x4ba205[_0x314615(_0x1717a6._0x5e3c36)]();
|
|
113
|
-
if (!_0xa9e3f9 || _0xa9e3f9[_0x314615(_0x1717a6._0x56c211)](':'))
|
|
114
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
115
|
-
return _0xa9e3f9;
|
|
116
|
-
}
|
|
117
|
-
function parseThreadParts(_0x392468) {
|
|
118
|
-
const _0x44841e = { _0x20b0c8: 0x28c }, _0x35432e = _0x48b8fe, _0x481e98 = _0x392468[_0x35432e(_0x44841e._0x20b0c8)](':');
|
|
119
|
-
if (_0x481e98[_0x35432e(0x291)] < 0x1 || _0x481e98[_0x35432e(0x291)] > 0x2)
|
|
143
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x6aa24e(0x1fa);
|
|
144
|
+
function ensureSegment(_0x233a4b) {
|
|
145
|
+
const _0x1e8c51 = { _0x136373: 0x240 }, _0x4850a3 = _0x6aa24e, _0x47c602 = _0x233a4b[_0x4850a3(_0x1e8c51._0x136373)]();
|
|
146
|
+
if (!_0x47c602 || _0x47c602[_0x4850a3(0x10f)](':'))
|
|
120
147
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
121
|
-
return
|
|
122
|
-
'channelName': ensureSegment(_0x481e98[0x0] ?? ''),
|
|
123
|
-
'threadShortId': _0x481e98[0x1] ? ensureSegment(_0x481e98[0x1]) : null
|
|
124
|
-
};
|
|
148
|
+
return _0x47c602;
|
|
125
149
|
}
|
|
126
|
-
function
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
_0x2390ff: 0x2c4,
|
|
130
|
-
_0x458ad6: 0x218,
|
|
131
|
-
_0x4e45b4: 0x218,
|
|
132
|
-
_0x30852d: 0x234,
|
|
133
|
-
_0x76d78: 0x234,
|
|
134
|
-
_0x16b6c3: 0x15d,
|
|
135
|
-
_0x180156: 0x16a,
|
|
136
|
-
_0x281a01: 0x16a
|
|
137
|
-
}, _0x523a28 = _0x48b8fe, _0x3185a3 = _0xc370cb[_0x523a28(_0x339e00._0x24bd75)]();
|
|
138
|
-
if (!_0x3185a3)
|
|
150
|
+
function parseThreadParts(_0x26a753) {
|
|
151
|
+
const _0x47f083 = { _0x213cbc: 0x1a6 }, _0x4c0a2a = _0x6aa24e, _0x177a65 = _0x26a753[_0x4c0a2a(0x24f)](':');
|
|
152
|
+
if (_0x177a65[_0x4c0a2a(0x1a6)] < 0x1 || _0x177a65[_0x4c0a2a(_0x47f083._0x213cbc)] > 0x2)
|
|
139
153
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
140
|
-
if (_0x3185a3[_0x523a28(0x234)]('#')) {
|
|
141
|
-
const _0x1b6e68 = parseThreadParts(_0x3185a3[_0x523a28(_0x339e00._0x2390ff)](0x1)), _0x20d025 = '#' + _0x1b6e68['channelName'];
|
|
142
|
-
if (!_0x1b6e68[_0x523a28(_0x339e00._0x458ad6)])
|
|
143
|
-
return {
|
|
144
|
-
'channelName': _0x1b6e68[_0x523a28(0x16a)],
|
|
145
|
-
'channelTarget': _0x20d025,
|
|
146
|
-
'kind': 'channel',
|
|
147
|
-
'target': _0x20d025
|
|
148
|
-
};
|
|
149
|
-
return {
|
|
150
|
-
'channelName': _0x1b6e68['channelName'],
|
|
151
|
-
'channelTarget': _0x20d025,
|
|
152
|
-
'kind': _0x523a28(0x264),
|
|
153
|
-
'target': _0x20d025 + ':' + _0x1b6e68[_0x523a28(_0x339e00._0x458ad6)],
|
|
154
|
-
'threadShortId': _0x1b6e68[_0x523a28(_0x339e00._0x4e45b4)]
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
if (_0x3185a3[_0x523a28(_0x339e00._0x30852d)]('dm:')) {
|
|
158
|
-
const _0x4200dd = parseThreadParts(_0x3185a3[_0x523a28(0x2c4)](0x3));
|
|
159
|
-
if (!_0x4200dd[_0x523a28(0x16a)][_0x523a28(_0x339e00._0x76d78)](_0x523a28(_0x339e00._0x16b6c3)))
|
|
160
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
161
|
-
const _0x546126 = _0x523a28(0x1f5) + _0x4200dd[_0x523a28(0x16a)];
|
|
162
|
-
if (!_0x4200dd[_0x523a28(0x218)])
|
|
163
|
-
return {
|
|
164
|
-
'channelName': _0x4200dd[_0x523a28(_0x339e00._0x180156)],
|
|
165
|
-
'channelTarget': _0x546126,
|
|
166
|
-
'kind': 'channel',
|
|
167
|
-
'target': _0x546126
|
|
168
|
-
};
|
|
169
|
-
return {
|
|
170
|
-
'channelName': _0x4200dd[_0x523a28(_0x339e00._0x281a01)],
|
|
171
|
-
'channelTarget': _0x546126,
|
|
172
|
-
'kind': _0x523a28(0x264),
|
|
173
|
-
'target': _0x546126 + ':' + _0x4200dd[_0x523a28(0x218)],
|
|
174
|
-
'threadShortId': _0x4200dd['threadShortId']
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
178
|
-
}
|
|
179
|
-
function asErrorMessage(_0x239432, _0x1da60f) {
|
|
180
|
-
const _0x54f660 = _0x48b8fe;
|
|
181
|
-
if (typeof _0x239432 === 'string' && _0x239432[_0x54f660(0x224)]())
|
|
182
|
-
return _0x239432;
|
|
183
|
-
return _0x1da60f;
|
|
184
|
-
}
|
|
185
|
-
function asRecord(_0x14a233) {
|
|
186
|
-
const _0xb88436 = _0x48b8fe;
|
|
187
|
-
return typeof _0x14a233 === _0xb88436(0x251) && _0x14a233 !== null ? _0x14a233 : {};
|
|
188
|
-
}
|
|
189
|
-
function stableStringify(_0x587b4c) {
|
|
190
|
-
const _0x4faf2b = {
|
|
191
|
-
_0x560d4f: 0x1cc,
|
|
192
|
-
_0x320968: 0x22f,
|
|
193
|
-
_0x4fdd75: 0x265
|
|
194
|
-
}, _0x25c229 = _0x48b8fe;
|
|
195
|
-
if (_0x587b4c === null || typeof _0x587b4c !== 'object')
|
|
196
|
-
return JSON[_0x25c229(0x1a0)](_0x587b4c);
|
|
197
|
-
if (Array['isArray'](_0x587b4c))
|
|
198
|
-
return '[' + _0x587b4c[_0x25c229(_0x4faf2b._0x560d4f)](_0x594b24 => stableStringify(_0x594b24))['join'](',') + ']';
|
|
199
|
-
const _0x4182e4 = Object[_0x25c229(0x280)](_0x587b4c)[_0x25c229(_0x4faf2b._0x320968)](([, _0x514cc1]) => _0x514cc1 !== void 0x0)[_0x25c229(_0x4faf2b._0x4fdd75)](([_0x3741f2], [_0x4574bf]) => _0x3741f2[_0x25c229(0x14f)](_0x4574bf))[_0x25c229(_0x4faf2b._0x560d4f)](([_0x4c5afa, _0x509c4c]) => JSON['stringify'](_0x4c5afa) + ':' + stableStringify(_0x509c4c));
|
|
200
|
-
return '{' + _0x4182e4['join'](',') + '}';
|
|
201
|
-
}
|
|
202
|
-
function createHeaders(_0x19a6ea) {
|
|
203
|
-
const _0x5a451f = { _0x46effc: 0x1a2 }, _0x4699b8 = _0x48b8fe;
|
|
204
154
|
return {
|
|
205
|
-
'
|
|
206
|
-
'
|
|
155
|
+
'channelName': ensureSegment(_0x177a65[0x0] ?? ''),
|
|
156
|
+
'threadShortId': _0x177a65[0x1] ? ensureSegment(_0x177a65[0x1]) : null
|
|
207
157
|
};
|
|
208
158
|
}
|
|
209
|
-
function
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return !_0x5298ee || /\s|[)\]}'",。!?、:;,.!?]/[_0x5f19d2(_0x4c1615._0x3b20bd)](_0x5298ee);
|
|
228
|
-
}
|
|
229
|
-
function buildMatchableEntries(_0x50a3c2) {
|
|
230
|
-
const _0x40c825 = {
|
|
231
|
-
_0x3a96ec: 0x2a3,
|
|
232
|
-
_0x46879b: 0x231,
|
|
233
|
-
_0x4ce252: 0x21f
|
|
234
|
-
}, _0x17f0e9 = _0x48b8fe, _0x415429 = [];
|
|
235
|
-
for (const _0x5734e6 of [
|
|
236
|
-
..._0x50a3c2[_0x17f0e9(0x253)],
|
|
237
|
-
..._0x50a3c2['humans']
|
|
238
|
-
]) {
|
|
239
|
-
_0x415429[_0x17f0e9(0x21f)]({
|
|
240
|
-
'matchName': _0x5734e6[_0x17f0e9(0x231)],
|
|
241
|
-
'matchNameLower': _0x5734e6[_0x17f0e9(0x231)][_0x17f0e9(_0x40c825._0x3a96ec)](),
|
|
242
|
-
'participantId': _0x5734e6['id']
|
|
243
|
-
}), _0x5734e6['id'] !== _0x5734e6[_0x17f0e9(_0x40c825._0x46879b)] && _0x415429[_0x17f0e9(_0x40c825._0x4ce252)]({
|
|
244
|
-
'matchName': _0x5734e6['id'],
|
|
245
|
-
'matchNameLower': _0x5734e6['id'][_0x17f0e9(_0x40c825._0x3a96ec)](),
|
|
246
|
-
'participantId': _0x5734e6['id']
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
return _0x415429;
|
|
250
|
-
}
|
|
251
|
-
function extractMentionedParticipantIds(_0x9deae8, _0x4e2949) {
|
|
252
|
-
const _0x2fd59 = {
|
|
253
|
-
_0x5ad1cf: 0x291,
|
|
254
|
-
_0x3348c3: 0x21f
|
|
255
|
-
}, _0x4236ee = { _0x2102a2: 0x1bd }, _0x528fb2 = _0x48b8fe, _0x1bccbb = buildMatchableEntries(_0x4e2949)['sort']((_0x488bdf, _0x1d0167) => _0x1d0167[_0x528fb2(0x1bd)]['length'] - _0x488bdf['matchName'][_0x528fb2(0x291)]), _0x40dd15 = [], _0x3deee0 = new Set();
|
|
256
|
-
for (let _0x58d8db = 0x0; _0x58d8db < _0x9deae8[_0x528fb2(_0x2fd59._0x5ad1cf)]; _0x58d8db += 0x1) {
|
|
257
|
-
if (_0x9deae8[_0x58d8db] !== '@' || !isMentionBoundary(_0x9deae8[_0x58d8db - 0x1]))
|
|
258
|
-
continue;
|
|
259
|
-
const _0x1d5f43 = _0x9deae8['slice'](_0x58d8db + 0x1), _0x1596b7 = _0x1d5f43[_0x528fb2(0x2a3)](), _0x2e60a9 = _0x1bccbb[_0x528fb2(0x25c)](_0x972c6f => {
|
|
260
|
-
const _0x5262b7 = _0x528fb2;
|
|
261
|
-
if (!_0x1596b7[_0x5262b7(0x234)](_0x972c6f['matchNameLower']))
|
|
262
|
-
return ![];
|
|
263
|
-
return isMentionTerminal(_0x1d5f43[_0x972c6f[_0x5262b7(_0x4236ee._0x2102a2)]['length']]);
|
|
264
|
-
});
|
|
265
|
-
if (!_0x2e60a9 || _0x3deee0[_0x528fb2(0x1a3)](_0x2e60a9[_0x528fb2(0x2bb)]))
|
|
266
|
-
continue;
|
|
267
|
-
_0x3deee0['add'](_0x2e60a9['participantId']), _0x40dd15[_0x528fb2(_0x2fd59._0x3348c3)](_0x2e60a9[_0x528fb2(0x2bb)]), _0x58d8db += _0x2e60a9[_0x528fb2(0x1bd)][_0x528fb2(_0x2fd59._0x5ad1cf)];
|
|
268
|
-
}
|
|
269
|
-
return _0x40dd15;
|
|
270
|
-
}
|
|
271
|
-
function _0x28eb() {
|
|
272
|
-
const _0x2326b8 = [
|
|
273
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
274
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
275
|
-
'zxjYB3i',
|
|
276
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
277
|
-
'BwLU',
|
|
278
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
279
|
-
'Agv4',
|
|
280
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
281
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
282
|
-
'C2L6zq',
|
|
283
|
-
'zxH0BMfTzq',
|
|
284
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
285
|
-
'mZqZmdi2mhbnwKDosq',
|
|
286
|
-
'lsaJ',
|
|
287
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
288
|
-
'ue9tva',
|
|
289
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
290
|
-
'pgvTChr5pG',
|
|
291
|
-
'l3nLBMq',
|
|
292
|
-
'r0vu',
|
|
293
|
-
'zgvZy3jPChrPB24',
|
|
294
|
-
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
295
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
296
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
297
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
298
|
-
'm293rw5jtG',
|
|
299
|
-
'C3rYAw5N',
|
|
300
|
-
'BwvZC2fNzuLK',
|
|
159
|
+
function _0x4fb2() {
|
|
160
|
+
const _0x56faf6 = [
|
|
161
|
+
'yxv0BZO',
|
|
162
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
163
|
+
'DgfZA0LK',
|
|
164
|
+
'v29YA2vYia',
|
|
165
|
+
'Bg93',
|
|
166
|
+
'DgfZAW',
|
|
167
|
+
'CMvZCg9UC2u',
|
|
168
|
+
'BMv4Df9ZDgvWCW',
|
|
169
|
+
'y2XHAw1FDgfZA3m',
|
|
170
|
+
'zgLNzxn0',
|
|
171
|
+
'ChvZAa',
|
|
172
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
173
|
+
'ChvIBgLJ',
|
|
174
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
175
|
+
'Aw1Hz2uVz2LM',
|
|
176
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
301
177
|
'DxbSB2fKuhjLCgfYzxi',
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
308
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
309
|
-
'Bwv0yq',
|
|
178
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
179
|
+
'y2HHBM5LBe5HBwu',
|
|
180
|
+
'D29YA19RzxK',
|
|
181
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
182
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
310
183
|
'ywjVCNrLza',
|
|
311
|
-
'
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
184
|
+
'B3bLBL9PC3n1zxm',
|
|
185
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
186
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
187
|
+
'Aw5JBhvKzxm',
|
|
188
|
+
'BMv4Den1CNnVCG',
|
|
189
|
+
'zMfSC2u',
|
|
190
|
+
'Dw5JBgfPBv90yxnR',
|
|
191
|
+
'BNvTyMvY',
|
|
192
|
+
'Dg9VBa',
|
|
193
|
+
'C3rYAw5NAwz5',
|
|
194
|
+
'l3rHC2TZ',
|
|
195
|
+
'BM93',
|
|
196
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
197
|
+
'Dw5JBgfPBvrHC2S',
|
|
198
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
316
199
|
'zg9Uzq',
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'ig1LC3nHz2u9',
|
|
333
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
200
|
+
'CgfYDgLJAxbHBNq',
|
|
201
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
202
|
+
'iYmJiefNzw50CW',
|
|
203
|
+
'DgHYzwfKvgfYz2v0',
|
|
204
|
+
'AxnbCNjHEq',
|
|
205
|
+
'BwvZC2fNzuLK',
|
|
206
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
207
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
208
|
+
'Aw1Hz2uVD2vICa',
|
|
209
|
+
'AgLNAa',
|
|
210
|
+
'w3nLCt0',
|
|
211
|
+
'r0vu',
|
|
212
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
213
|
+
'nde2mJGYz2rKtgfg',
|
|
214
|
+
'D3m6',
|
|
334
215
|
'C2v0',
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'DgHYzwfKswq',
|
|
349
|
-
'C2vUzf9TzxnZywDL',
|
|
350
|
-
'Aw1Hz2uVCg5N',
|
|
351
|
-
'yMXVy2TLza',
|
|
352
|
-
'y29UBMvJDa',
|
|
216
|
+
'DxnLCG',
|
|
217
|
+
'zgvJAxnPB25Z',
|
|
218
|
+
'yxr0ywnOBwvUDhm',
|
|
219
|
+
'mti4ody0menqrMnQva',
|
|
220
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
221
|
+
'Dgv4Dc9WBgfPBG',
|
|
222
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
223
|
+
'mJbVC1z1Bgu',
|
|
224
|
+
'DMLZAwjPBgL0Eq',
|
|
225
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
226
|
+
'ANnVBG',
|
|
227
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
228
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
353
229
|
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'C2vUzgvYvhLWzq',
|
|
369
|
-
'DxbSB2fKrMLSzq',
|
|
370
|
-
'zMLSDgvY',
|
|
371
|
-
'C3rVCe1HAw49Dhj1zsbLEgvJDxrPB25nB2rLpxDVCMTLCG',
|
|
372
|
-
'BMfTzq',
|
|
373
|
-
'BwvTyMvYCW',
|
|
374
|
-
'yMfZzw5HBwu',
|
|
375
|
-
'C3rHCNrZv2L0Aa',
|
|
376
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
377
|
-
'C2nOzwr1BgvKrM9Y',
|
|
378
|
-
'D3m6',
|
|
230
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
231
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
232
|
+
'AM9PBG',
|
|
233
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
234
|
+
'yxjNDG',
|
|
235
|
+
'DgHYzwfKu2HVCNrjza',
|
|
236
|
+
'AgvHzgvYCW',
|
|
237
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
238
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
239
|
+
'Bwv0yq',
|
|
240
|
+
'y3vYC29Y',
|
|
241
|
+
'l3nLBMq',
|
|
242
|
+
'DgfZAY0',
|
|
243
|
+
'zNjVBq',
|
|
379
244
|
'zgfLBw9Utg9JywXvCMW',
|
|
380
|
-
'
|
|
245
|
+
'DMfSDwu',
|
|
246
|
+
'BgLTAxq',
|
|
247
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
381
248
|
'C2vUze1LC3nHz2u',
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
249
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
250
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
251
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
252
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
253
|
+
'BgLZDf90yxnRCW',
|
|
254
|
+
'y29TCgXLDgvK',
|
|
255
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
256
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
257
|
+
'6k+35Rgcia',
|
|
258
|
+
'AxngAwXL',
|
|
259
|
+
'BwfW',
|
|
260
|
+
'AxnjBNrLz2vY',
|
|
261
|
+
'yxjYyxK',
|
|
262
|
+
'DxbKyxrL',
|
|
263
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
264
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
265
|
+
'CgfYDgLJAxbHBNrjza',
|
|
266
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
267
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
268
|
+
'zxjYB3i',
|
|
269
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
270
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
271
|
+
'C3rVCe1HAw49Dhj1zsbLEgvJDxrPB25nB2rLpxDVCMTLCG',
|
|
272
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
273
|
+
'y29UDgvUDfr5Cgu',
|
|
274
|
+
'y29UDgvUDc10ExbL',
|
|
275
|
+
'Dg9tDhjPBMC',
|
|
276
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
277
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
278
|
+
'mtvQA2rJy3i',
|
|
279
|
+
'C2vUzgvYtMfTzq',
|
|
280
|
+
'zxHWAxjLC0f0',
|
|
281
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
282
|
+
'zMv0y2HjBxbS',
|
|
385
283
|
'l2LUDgvYBMfSl2fNzw50lW',
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
284
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
285
|
+
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
389
286
|
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'y29UDgvUDa',
|
|
397
|
-
'AhvTyw4',
|
|
398
|
-
'Cgf5Bg9HzePZB24',
|
|
399
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
400
|
-
'AxngAw5PDgu',
|
|
401
|
-
'zMLSzxnFy2HHBMDLza',
|
|
402
|
-
'BgLZDfnLCNzLCG',
|
|
403
|
-
'CMvHzf9OAxn0B3j5',
|
|
404
|
-
'B2jQzwn0',
|
|
405
|
-
'ihr5Cgu9ywDLBNq',
|
|
406
|
-
'ywDLBNrZ',
|
|
407
|
-
'AxngAwXL',
|
|
287
|
+
'y3jLyxrLx3rHC2TZ',
|
|
288
|
+
'yxjYyxLcDwzMzxi',
|
|
289
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
290
|
+
'Agv4',
|
|
291
|
+
'C2XPy2u',
|
|
292
|
+
'ywDNCMvNyxrLswq',
|
|
408
293
|
'CMvHC29U',
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
414
|
-
'
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
418
|
-
'z2v0',
|
|
419
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
420
|
-
'Axnoyu4',
|
|
421
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
422
|
-
'zgLZCg9ZAxrPB24',
|
|
423
|
-
'DgHYzwfK',
|
|
424
|
-
'C29YDa',
|
|
425
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
426
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
427
|
-
'l3jLy2vPDMu',
|
|
428
|
-
'C3rHDhvZ',
|
|
429
|
-
'DgfZA19Pza',
|
|
430
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
431
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
432
|
-
'C2vZC2LVBKLK',
|
|
433
|
-
'C2vX',
|
|
434
|
-
'z2v0u2vJB25KCW',
|
|
435
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
436
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
437
|
-
'C2f2zq',
|
|
438
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
439
|
-
'DgfZA3m',
|
|
440
|
-
'lsba',
|
|
441
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
294
|
+
'DgfYz2v0',
|
|
295
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
296
|
+
'zgvZy3jPChrPB24',
|
|
297
|
+
'Bwf0y2Hoyw1L',
|
|
298
|
+
'lsaJ',
|
|
299
|
+
'y29UBMvJDa',
|
|
300
|
+
'C2LNBMfS',
|
|
301
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
442
302
|
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'
|
|
449
|
-
'
|
|
450
|
-
'Aw1Hz2uVANbLzW',
|
|
451
|
-
'zw50CMLLCW',
|
|
452
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
453
|
-
'BgLZDf9Zzxj2zxi',
|
|
454
|
-
'l2HPC3rVCNK/',
|
|
455
|
-
'D29YA2vYCW',
|
|
456
|
-
'xsba',
|
|
457
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
303
|
+
'zg0T',
|
|
304
|
+
'DgHYzwfKswq',
|
|
305
|
+
'C2f2zq',
|
|
306
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
307
|
+
'y2XHAw0GzMfPBgvK',
|
|
308
|
+
'ywz0zxjtzxe',
|
|
309
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
458
310
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
459
|
-
'
|
|
460
|
-
'
|
|
461
|
-
'
|
|
462
|
-
'
|
|
463
|
-
'
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
311
|
+
'zg06',
|
|
312
|
+
'C2vZC2LVBKLK',
|
|
313
|
+
'y2fJAgveAxi',
|
|
314
|
+
'ignSywLTzwq',
|
|
315
|
+
'AgfZ',
|
|
316
|
+
'BwvTyMvYCW',
|
|
317
|
+
'DgfYz2v0zwq',
|
|
318
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
319
|
+
'zgf0yq',
|
|
320
|
+
'EM9K',
|
|
321
|
+
'yM9KEvrLEhq',
|
|
322
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
323
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
324
|
+
'ls1Zzxj2zxiTDxjS',
|
|
325
|
+
'Dg9mB3DLCKnHC2u',
|
|
326
|
+
'ndaWntuXmhfvDwPmvW',
|
|
327
|
+
'DgfZA19Pza',
|
|
328
|
+
'uefuq0G',
|
|
329
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
330
|
+
'AxnbyNnVBhv0zq',
|
|
331
|
+
'y2f0y2G',
|
|
332
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
333
|
+
'y2HHBM5LBeLK',
|
|
334
|
+
'nZq4mdm2mgnqwwzAyq',
|
|
335
|
+
'C29Tzq',
|
|
336
|
+
'icHPzdO',
|
|
337
|
+
'BMfTzq',
|
|
468
338
|
'BgvUz3rO',
|
|
339
|
+
'l2zPBMLZAa',
|
|
340
|
+
'CMvHzf9OAxn0B3j5',
|
|
341
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
342
|
+
'ls1Hz2vUDc1Pza',
|
|
343
|
+
'z2v0',
|
|
344
|
+
'offktMvwAG',
|
|
469
345
|
'AgfZtw9Yzq',
|
|
470
|
-
'
|
|
471
|
-
'
|
|
472
|
-
'
|
|
473
|
-
'
|
|
474
|
-
'
|
|
475
|
-
'
|
|
476
|
-
'
|
|
477
|
-
'
|
|
478
|
-
'
|
|
479
|
-
'
|
|
480
|
-
'mZK5otq1n3rcuhHxta',
|
|
481
|
-
'AhjLzG',
|
|
482
|
-
'BgLZDf90yxnRCW',
|
|
346
|
+
'BgLZDf9Zzxj2zxi',
|
|
347
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
348
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
349
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
350
|
+
'Dgv4Da',
|
|
351
|
+
'CMvHzeHPC3rVCNK',
|
|
352
|
+
'z2v0tw9UDgG',
|
|
353
|
+
'C2vYDMvY',
|
|
354
|
+
'Dw5RBM93BG',
|
|
355
|
+
'DgHYzwfK',
|
|
483
356
|
'y2XPzw50',
|
|
484
|
-
'
|
|
485
|
-
'
|
|
357
|
+
'zxH0BMfTzq',
|
|
358
|
+
'DxbSB2fKrMLSzq',
|
|
359
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
360
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
486
361
|
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
487
|
-
'
|
|
488
|
-
'
|
|
489
|
-
'
|
|
490
|
-
'
|
|
491
|
-
'
|
|
492
|
-
'
|
|
493
|
-
'
|
|
494
|
-
'
|
|
495
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
496
|
-
'y2HHDa',
|
|
497
|
-
'yMfZzty0',
|
|
498
|
-
'zxHWAxjLC0f0',
|
|
499
|
-
'C2vYDMvYvxjS',
|
|
500
|
-
'iYmJienOyw5UzwXZ',
|
|
501
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
502
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
503
|
-
'AxnjBNrLz2vY',
|
|
504
|
-
'D29YA2vYtw9Kzq',
|
|
505
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
506
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
507
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
508
|
-
'y29UDgvUDfr5Cgu',
|
|
362
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
363
|
+
'z2v0u2vJB25KCW',
|
|
364
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
365
|
+
'C3rYAw5N',
|
|
366
|
+
'C2vUzgvYvhLWzq',
|
|
367
|
+
'yMvMB3jL',
|
|
368
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
369
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
509
370
|
'y2HHBM5LBhm',
|
|
510
|
-
'
|
|
511
|
-
'
|
|
512
|
-
'
|
|
513
|
-
'
|
|
514
|
-
'
|
|
515
|
-
'
|
|
516
|
-
'
|
|
517
|
-
'
|
|
518
|
-
'
|
|
519
|
-
'
|
|
520
|
-
'
|
|
521
|
-
'
|
|
522
|
-
'
|
|
523
|
-
'
|
|
524
|
-
'
|
|
525
|
-
'
|
|
526
|
-
'
|
|
527
|
-
'
|
|
528
|
-
'
|
|
529
|
-
'
|
|
530
|
-
'
|
|
531
|
-
'
|
|
532
|
-
'
|
|
533
|
-
'
|
|
534
|
-
'
|
|
535
|
-
'
|
|
536
|
-
'
|
|
537
|
-
'
|
|
538
|
-
'
|
|
539
|
-
'
|
|
540
|
-
'
|
|
541
|
-
'
|
|
542
|
-
'
|
|
543
|
-
'
|
|
544
|
-
'
|
|
545
|
-
'
|
|
546
|
-
'
|
|
547
|
-
'
|
|
548
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
549
|
-
'BMv4Den1CNnVCG',
|
|
550
|
-
'y2HHBM5LBa',
|
|
371
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
372
|
+
'DgHYzwfKtNvTyMvY',
|
|
373
|
+
'sfruuca',
|
|
374
|
+
'zw51Bq',
|
|
375
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
376
|
+
'pgvTChr5pG',
|
|
377
|
+
'mJKZode2mdvxCufOEM0',
|
|
378
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
379
|
+
'ywz0zxi',
|
|
380
|
+
'C3rHCNrZv2L0Aa',
|
|
381
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
382
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
383
|
+
'CxvLDwvK',
|
|
384
|
+
'AhvTyw4',
|
|
385
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
386
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
387
|
+
'C3vTBwfYEq',
|
|
388
|
+
'BgLZDfrHC2TZ',
|
|
389
|
+
'C2nOzwr1BgvKrM9Y',
|
|
390
|
+
'l3jLy2vPDMu',
|
|
391
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
392
|
+
'ywjVCNq',
|
|
393
|
+
'C2L6zq',
|
|
394
|
+
'zMLSzw5HBwu',
|
|
395
|
+
'zw50CMLLCW',
|
|
396
|
+
'Dg9gAxHLza',
|
|
397
|
+
'ywXS',
|
|
398
|
+
'y29UDgvUDejHC2u2na',
|
|
399
|
+
'ywrK',
|
|
400
|
+
'iJOGC3rHDhvZpq',
|
|
401
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
402
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
403
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
404
|
+
'm0r3uLLnDW',
|
|
405
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
406
|
+
'zMLSDgvY',
|
|
407
|
+
'ChjVDg9JB2W',
|
|
408
|
+
'AhvTyw5Z',
|
|
551
409
|
'D29YA2vY',
|
|
552
|
-
'
|
|
553
|
-
'
|
|
554
|
-
'
|
|
555
|
-
'
|
|
410
|
+
'vgfZAZOG',
|
|
411
|
+
'C2vYDMvYtMfTzq',
|
|
412
|
+
'CMvZDwX0CW',
|
|
413
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
414
|
+
'lsba',
|
|
415
|
+
'zMLSzv9WyxrO',
|
|
416
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
417
|
+
'DgfZA3m',
|
|
418
|
+
'z2v0rNvSBfLLyxi',
|
|
419
|
+
'yMXVy2TLza',
|
|
420
|
+
'AxngAw5PDgu',
|
|
421
|
+
'Cgf5Bg9HzePZB24',
|
|
422
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
556
423
|
'igzHAwXLzdOG',
|
|
557
|
-
'
|
|
558
|
-
'
|
|
559
|
-
'
|
|
560
|
-
'
|
|
561
|
-
'
|
|
562
|
-
'
|
|
563
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
564
|
-
'B3b0Aw9UywW',
|
|
565
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
424
|
+
'C2vX',
|
|
425
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
426
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
427
|
+
'ls1ZzxnZAw9UlwLK',
|
|
428
|
+
'y29UDgvUDa',
|
|
429
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
566
430
|
'CNvUswq',
|
|
567
|
-
'
|
|
568
|
-
'
|
|
569
|
-
'
|
|
570
|
-
'y2XHAw0GzMfPBgvK',
|
|
571
|
-
'w3nLCt0',
|
|
572
|
-
'Dg9ju09tDhjPBMC',
|
|
573
|
-
'Aw5KzxHpzG',
|
|
431
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
432
|
+
'D29YA2vYCW',
|
|
433
|
+
'ue9tva',
|
|
574
434
|
'BwvZC2fNzxm',
|
|
575
|
-
'
|
|
576
|
-
'y3vYC29Y',
|
|
577
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
578
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
579
|
-
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
580
|
-
'Aw1Hz2uVz2LM',
|
|
581
|
-
'CMvZDwX0CW',
|
|
582
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
583
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
584
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
585
|
-
'yxjYyxLcDwzMzxi',
|
|
586
|
-
'z2v0vgLTzq',
|
|
435
|
+
'Aw1Hz2uVANbLzW',
|
|
587
436
|
'yxr0ywnOBwvUDeLK',
|
|
588
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
589
|
-
'C2L6zuj5DgvZ',
|
|
590
|
-
'y29UDgvUDejHC2u2na',
|
|
591
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
592
437
|
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
593
|
-
'
|
|
594
|
-
'
|
|
595
|
-
'
|
|
596
|
-
'
|
|
597
|
-
'
|
|
598
|
-
'
|
|
599
|
-
'
|
|
600
|
-
'
|
|
601
|
-
'
|
|
602
|
-
'
|
|
603
|
-
'
|
|
604
|
-
'
|
|
605
|
-
'
|
|
606
|
-
'
|
|
607
|
-
'
|
|
608
|
-
'
|
|
609
|
-
'
|
|
610
|
-
'
|
|
611
|
-
'
|
|
612
|
-
'Dgv4Dc9WBgfPBG',
|
|
613
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
614
|
-
'C3rYAw5NAwz5',
|
|
615
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
616
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
617
|
-
'AgfZ',
|
|
618
|
-
'zMLSzw5HBwu',
|
|
438
|
+
'zgvSzxrL',
|
|
439
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
440
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
441
|
+
'D3nZoG',
|
|
442
|
+
'zMfPBgvK',
|
|
443
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
444
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
445
|
+
'Bwf4',
|
|
446
|
+
'zgLZCg9ZAxrPB24',
|
|
447
|
+
'ig1LC3nHz2u9',
|
|
448
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
449
|
+
'ywDLBNrjza',
|
|
450
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
451
|
+
'ihr5Cgu9ywDLBNq',
|
|
452
|
+
'C2vYDMvYvxjS',
|
|
453
|
+
'DgL0Bgu',
|
|
454
|
+
'DxbSB2fKx2zPBgu',
|
|
455
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
456
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
619
457
|
'ywDNCMvNyxrLvhLWzq',
|
|
620
|
-
'
|
|
458
|
+
'DgvZDa',
|
|
459
|
+
'C2vUzf9TzxnZywDL',
|
|
460
|
+
'lcbWCMv2Awv3pq',
|
|
461
|
+
'DMLLD19MAwXL',
|
|
462
|
+
'ig1ZzZ0',
|
|
463
|
+
'A2LUza',
|
|
464
|
+
'l3nLCNzLCG',
|
|
465
|
+
'mtaYotq0otrzBgTYD3K',
|
|
466
|
+
'Dgv4Dc9JC3y',
|
|
467
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
468
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
469
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
470
|
+
'zgvZDhjVEwvK',
|
|
621
471
|
'DxrMoa',
|
|
622
|
-
'
|
|
623
|
-
'
|
|
624
|
-
'
|
|
625
|
-
'
|
|
626
|
-
'
|
|
627
|
-
'
|
|
628
|
-
'
|
|
629
|
-
'
|
|
472
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
473
|
+
'w3rHCMDLDd0',
|
|
474
|
+
'CgfKu3rHCNq',
|
|
475
|
+
'zMLUza',
|
|
476
|
+
'B2jQzwn0',
|
|
477
|
+
'C2HHmJu2',
|
|
478
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
479
|
+
'lIbnzxnZywDLieLeoIa',
|
|
480
|
+
'C29YDa',
|
|
481
|
+
'C3vJy2vZCW',
|
|
482
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
483
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
484
|
+
'zMLSzxnFy2HHBMDLza',
|
|
485
|
+
'ihrPBwu9',
|
|
486
|
+
'CM9VDe1LC3nHz2vjza',
|
|
487
|
+
'iYmJienOyw5UzwXZ',
|
|
488
|
+
'lMjPBG',
|
|
489
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
490
|
+
'l3rHC2TZpW',
|
|
491
|
+
'DhLWzq',
|
|
492
|
+
'DhjPBq',
|
|
493
|
+
'yMfZzty0',
|
|
494
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
495
|
+
'AhjLzG',
|
|
496
|
+
'CMvZDwX0',
|
|
497
|
+
'C3rHCNrLza',
|
|
498
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
499
|
+
'ywDNCMvNyxrLswrZ',
|
|
630
500
|
'ywDLBNq',
|
|
501
|
+
'C3rHDhvZ',
|
|
502
|
+
'DgfYz2v0zwruyxnR',
|
|
503
|
+
'BwvZC2fNzq',
|
|
504
|
+
'y3jLyxrLvgfZA3m',
|
|
505
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
506
|
+
'Aw1Hz2uVCg5N',
|
|
507
|
+
'C3bSAxq',
|
|
508
|
+
'iYmJieH1BwfUCW',
|
|
509
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
510
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
511
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
512
|
+
'yM9KEu1HCMTKB3DU',
|
|
513
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
514
|
+
'v29YA2vYici',
|
|
631
515
|
'Dg9KBW',
|
|
632
|
-
'
|
|
633
|
-
'
|
|
634
|
-
'
|
|
635
|
-
'
|
|
516
|
+
'CMvWBgfJzq',
|
|
517
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
518
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
519
|
+
'zM9Yy2vszwzYzxnO',
|
|
520
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
636
521
|
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
637
|
-
'
|
|
638
|
-
'
|
|
639
|
-
'
|
|
640
|
-
'
|
|
641
|
-
'
|
|
642
|
-
'
|
|
643
|
-
'
|
|
644
|
-
'
|
|
522
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
523
|
+
'kgXLz2fJEsK',
|
|
524
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
525
|
+
'DgfZA051BwjLCG',
|
|
526
|
+
'y3jLyxrLzef0',
|
|
527
|
+
'mtm5odyZntfmtLz2zem',
|
|
528
|
+
'DxjNzw50',
|
|
529
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
530
|
+
'l3rHC2TZl2nSywLT',
|
|
531
|
+
'B3b0Aw9UywW',
|
|
532
|
+
'xsba',
|
|
533
|
+
'Aw5FCMv2Awv3',
|
|
534
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
535
|
+
'CMvZDwX0sNnVBG',
|
|
536
|
+
'D29YA2vYtw9Kzq',
|
|
537
|
+
'C2L6zuj5DgvZ',
|
|
538
|
+
'Dg9ju09tDhjPBMC',
|
|
539
|
+
'y2HHBM5LBa',
|
|
645
540
|
'Ahr0Chm6',
|
|
646
|
-
'
|
|
647
|
-
'
|
|
648
|
-
'
|
|
649
|
-
'
|
|
650
|
-
'
|
|
651
|
-
'
|
|
652
|
-
'
|
|
653
|
-
'
|
|
654
|
-
'
|
|
655
|
-
'
|
|
656
|
-
'
|
|
657
|
-
'
|
|
658
|
-
'BwfW',
|
|
659
|
-
'CgfYC2vjBNq'
|
|
541
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
542
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
543
|
+
'BwLU',
|
|
544
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
545
|
+
'ig1LC3nHz2vZkqOk',
|
|
546
|
+
'kg5VBMuP',
|
|
547
|
+
'iokaLca',
|
|
548
|
+
'ywDLBNrZ',
|
|
549
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
550
|
+
'y2HHDa',
|
|
551
|
+
'Aw5FChjVz3jLC3m',
|
|
552
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK'
|
|
660
553
|
];
|
|
661
|
-
|
|
662
|
-
return
|
|
554
|
+
_0x4fb2 = function () {
|
|
555
|
+
return _0x56faf6;
|
|
556
|
+
};
|
|
557
|
+
return _0x4fb2();
|
|
558
|
+
}
|
|
559
|
+
function parseTarget(_0x44541d) {
|
|
560
|
+
const _0xfb089c = {
|
|
561
|
+
_0x3c1d76: 0x240,
|
|
562
|
+
_0x113fc8: 0x177,
|
|
563
|
+
_0x4d8cbf: 0x13f,
|
|
564
|
+
_0x2eb263: 0x26f,
|
|
565
|
+
_0x594d16: 0x107,
|
|
566
|
+
_0x26959b: 0x13f,
|
|
567
|
+
_0x2652e2: 0x1d0,
|
|
568
|
+
_0x2c6862: 0x18b
|
|
569
|
+
}, _0x2c6337 = _0x6aa24e, _0x4bb6cc = _0x44541d[_0x2c6337(_0xfb089c._0x3c1d76)]();
|
|
570
|
+
if (!_0x4bb6cc)
|
|
571
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
572
|
+
if (_0x4bb6cc[_0x2c6337(0x1d0)]('#')) {
|
|
573
|
+
const _0xe2ef2c = parseThreadParts(_0x4bb6cc[_0x2c6337(_0xfb089c._0x113fc8)](0x1)), _0x5349f0 = '#' + _0xe2ef2c[_0x2c6337(0x107)];
|
|
574
|
+
if (!_0xe2ef2c[_0x2c6337(_0xfb089c._0x4d8cbf)])
|
|
575
|
+
return {
|
|
576
|
+
'channelName': _0xe2ef2c[_0x2c6337(0x107)],
|
|
577
|
+
'channelTarget': _0x5349f0,
|
|
578
|
+
'kind': _0x2c6337(_0xfb089c._0x2eb263),
|
|
579
|
+
'target': _0x5349f0
|
|
580
|
+
};
|
|
581
|
+
return {
|
|
582
|
+
'channelName': _0xe2ef2c[_0x2c6337(_0xfb089c._0x594d16)],
|
|
583
|
+
'channelTarget': _0x5349f0,
|
|
584
|
+
'kind': _0x2c6337(0x1b7),
|
|
585
|
+
'target': _0x5349f0 + ':' + _0xe2ef2c[_0x2c6337(0x13f)],
|
|
586
|
+
'threadShortId': _0xe2ef2c[_0x2c6337(_0xfb089c._0x26959b)]
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
if (_0x4bb6cc['startsWith']('dm:')) {
|
|
590
|
+
const _0x54ec93 = parseThreadParts(_0x4bb6cc[_0x2c6337(0x177)](0x3));
|
|
591
|
+
if (!_0x54ec93[_0x2c6337(0x107)][_0x2c6337(_0xfb089c._0x2652e2)](_0x2c6337(0x183)))
|
|
592
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
593
|
+
const _0xc6c007 = _0x2c6337(_0xfb089c._0x2c6862) + _0x54ec93[_0x2c6337(0x107)];
|
|
594
|
+
if (!_0x54ec93[_0x2c6337(0x13f)])
|
|
595
|
+
return {
|
|
596
|
+
'channelName': _0x54ec93[_0x2c6337(_0xfb089c._0x594d16)],
|
|
597
|
+
'channelTarget': _0xc6c007,
|
|
598
|
+
'kind': _0x2c6337(0x26f),
|
|
599
|
+
'target': _0xc6c007
|
|
600
|
+
};
|
|
601
|
+
return {
|
|
602
|
+
'channelName': _0x54ec93[_0x2c6337(0x107)],
|
|
603
|
+
'channelTarget': _0xc6c007,
|
|
604
|
+
'kind': 'thread',
|
|
605
|
+
'target': _0xc6c007 + ':' + _0x54ec93[_0x2c6337(0x13f)],
|
|
606
|
+
'threadShortId': _0x54ec93[_0x2c6337(0x13f)]
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
610
|
+
}
|
|
611
|
+
function asErrorMessage(_0x14b238, _0x2780d) {
|
|
612
|
+
const _0x1a6bfe = _0x6aa24e;
|
|
613
|
+
if (typeof _0x14b238 === 'string' && _0x14b238[_0x1a6bfe(0x240)]())
|
|
614
|
+
return _0x14b238;
|
|
615
|
+
return _0x2780d;
|
|
616
|
+
}
|
|
617
|
+
function asRecord(_0x5dd923) {
|
|
618
|
+
const _0x3b2ffa = _0x6aa24e;
|
|
619
|
+
return typeof _0x5dd923 === _0x3b2ffa(0x230) && _0x5dd923 !== null ? _0x5dd923 : {};
|
|
620
|
+
}
|
|
621
|
+
function stableStringify(_0x23f4ac) {
|
|
622
|
+
const _0x3e4645 = {
|
|
623
|
+
_0x5a2e1e: 0x230,
|
|
624
|
+
_0x35e4d2: 0x115,
|
|
625
|
+
_0x204638: 0x120,
|
|
626
|
+
_0x45a047: 0x157,
|
|
627
|
+
_0x1fce9c: 0x1df
|
|
628
|
+
}, _0x21e1ce = _0x6aa24e;
|
|
629
|
+
if (_0x23f4ac === null || typeof _0x23f4ac !== _0x21e1ce(_0x3e4645._0x5a2e1e))
|
|
630
|
+
return JSON[_0x21e1ce(_0x3e4645._0x35e4d2)](_0x23f4ac);
|
|
631
|
+
if (Array[_0x21e1ce(_0x3e4645._0x204638)](_0x23f4ac))
|
|
632
|
+
return '[' + _0x23f4ac[_0x21e1ce(_0x3e4645._0x45a047)](_0x47936d => stableStringify(_0x47936d))[_0x21e1ce(0x13c)](',') + ']';
|
|
633
|
+
const _0x1147ff = Object[_0x21e1ce(_0x3e4645._0x1fce9c)](_0x23f4ac)[_0x21e1ce(0x1ea)](([, _0x42ab38]) => _0x42ab38 !== void 0x0)['sort'](([_0x42c8e4], [_0x797809]) => _0x42c8e4['localeCompare'](_0x797809))[_0x21e1ce(0x157)](([_0x303c6d, _0x44f8f8]) => JSON[_0x21e1ce(0x115)](_0x303c6d) + ':' + stableStringify(_0x44f8f8));
|
|
634
|
+
return '{' + _0x1147ff[_0x21e1ce(0x13c)](',') + '}';
|
|
635
|
+
}
|
|
636
|
+
function createHeaders(_0x17faff) {
|
|
637
|
+
return {
|
|
638
|
+
'Content-Type': 'application/json',
|
|
639
|
+
'x-daemon-api-key': _0x17faff
|
|
663
640
|
};
|
|
664
|
-
|
|
641
|
+
}
|
|
642
|
+
function toHttpBaseUrl(_0xe70180) {
|
|
643
|
+
const _0x47a4e1 = {
|
|
644
|
+
_0x2ed3e3: 0x1eb,
|
|
645
|
+
_0x39c699: 0x1eb,
|
|
646
|
+
_0x371236: 0x270,
|
|
647
|
+
_0x8971a6: 0x258
|
|
648
|
+
}, _0xc6a12c = _0x6aa24e, _0x567bb5 = new URL(_0xe70180);
|
|
649
|
+
if (_0x567bb5[_0xc6a12c(_0x47a4e1._0x2ed3e3)] === _0xc6a12c(0x12a))
|
|
650
|
+
_0x567bb5['protocol'] = 'http:';
|
|
651
|
+
else
|
|
652
|
+
_0x567bb5[_0xc6a12c(_0x47a4e1._0x39c699)] === _0xc6a12c(0x20d) && (_0x567bb5[_0xc6a12c(_0x47a4e1._0x2ed3e3)] = _0xc6a12c(_0x47a4e1._0x371236));
|
|
653
|
+
return _0x567bb5['toString']()[_0xc6a12c(_0x47a4e1._0x8971a6)](/\/$/, '');
|
|
654
|
+
}
|
|
655
|
+
function isMentionBoundary(_0x230f1d) {
|
|
656
|
+
const _0x161515 = { _0x4ee6a5: 0x21e }, _0x40a588 = _0x6aa24e;
|
|
657
|
+
return !_0x230f1d || /\s|[([{'",。!?、:;]/[_0x40a588(_0x161515._0x4ee6a5)](_0x230f1d);
|
|
658
|
+
}
|
|
659
|
+
function isMentionTerminal(_0x5c3b3a) {
|
|
660
|
+
return !_0x5c3b3a || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x5c3b3a);
|
|
661
|
+
}
|
|
662
|
+
function buildMatchableEntries(_0x59c954) {
|
|
663
|
+
const _0x3e1a19 = {
|
|
664
|
+
_0x191873: 0x278,
|
|
665
|
+
_0x573796: 0x1a5,
|
|
666
|
+
_0x2f27df: 0xff
|
|
667
|
+
}, _0x552aa3 = _0x6aa24e, _0x305937 = [];
|
|
668
|
+
for (const _0x24b87d of [
|
|
669
|
+
..._0x59c954[_0x552aa3(_0x3e1a19._0x191873)],
|
|
670
|
+
..._0x59c954['humans']
|
|
671
|
+
]) {
|
|
672
|
+
_0x305937['push']({
|
|
673
|
+
'matchName': _0x24b87d[_0x552aa3(_0x3e1a19._0x573796)],
|
|
674
|
+
'matchNameLower': _0x24b87d['name'][_0x552aa3(0x1bd)](),
|
|
675
|
+
'participantId': _0x24b87d['id']
|
|
676
|
+
}), _0x24b87d['id'] !== _0x24b87d[_0x552aa3(0x1a5)] && _0x305937[_0x552aa3(_0x3e1a19._0x2f27df)]({
|
|
677
|
+
'matchName': _0x24b87d['id'],
|
|
678
|
+
'matchNameLower': _0x24b87d['id']['toLocaleLowerCase'](),
|
|
679
|
+
'participantId': _0x24b87d['id']
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
return _0x305937;
|
|
683
|
+
}
|
|
684
|
+
function extractMentionedParticipantIds(_0x5246f6, _0x3a1f92) {
|
|
685
|
+
const _0x410c11 = {
|
|
686
|
+
_0x1e7865: 0x1a6,
|
|
687
|
+
_0x1006a9: 0x22f,
|
|
688
|
+
_0x4909d4: 0x18f,
|
|
689
|
+
_0x3f1b07: 0xff,
|
|
690
|
+
_0x1b1b1e: 0x15d
|
|
691
|
+
}, _0x156f14 = _0x6aa24e, _0x27852a = buildMatchableEntries(_0x3a1f92)[_0x156f14(0x234)]((_0x3a693d, _0x2ab54a) => _0x2ab54a['matchName'][_0x156f14(0x1a6)] - _0x3a693d[_0x156f14(0x17d)][_0x156f14(0x1a6)]), _0x1cebd1 = [], _0x56d46a = new Set();
|
|
692
|
+
for (let _0x4204aa = 0x0; _0x4204aa < _0x5246f6[_0x156f14(_0x410c11._0x1e7865)]; _0x4204aa += 0x1) {
|
|
693
|
+
if (_0x5246f6[_0x4204aa] !== '@' || !isMentionBoundary(_0x5246f6[_0x4204aa - 0x1]))
|
|
694
|
+
continue;
|
|
695
|
+
const _0x4f4b7d = _0x5246f6[_0x156f14(0x177)](_0x4204aa + 0x1), _0x31fd7a = _0x4f4b7d[_0x156f14(0x1bd)](), _0x45418e = _0x27852a[_0x156f14(_0x410c11._0x1006a9)](_0xf9805a => {
|
|
696
|
+
const _0x2f4382 = _0x156f14;
|
|
697
|
+
if (!_0x31fd7a['startsWith'](_0xf9805a[_0x2f4382(0x15e)]))
|
|
698
|
+
return ![];
|
|
699
|
+
return isMentionTerminal(_0x4f4b7d[_0xf9805a['matchName']['length']]);
|
|
700
|
+
});
|
|
701
|
+
if (!_0x45418e || _0x56d46a[_0x156f14(_0x410c11._0x4909d4)](_0x45418e['participantId']))
|
|
702
|
+
continue;
|
|
703
|
+
_0x56d46a[_0x156f14(0x1e3)](_0x45418e[_0x156f14(0x15d)]), _0x1cebd1[_0x156f14(_0x410c11._0x3f1b07)](_0x45418e[_0x156f14(_0x410c11._0x1b1b1e)]), _0x4204aa += _0x45418e['matchName']['length'];
|
|
704
|
+
}
|
|
705
|
+
return _0x1cebd1;
|
|
665
706
|
}
|
|
666
707
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
667
|
-
function anySignal(...
|
|
668
|
-
const
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
return _0x463b74[_0xf665c6(0x18d)](_0x2887b8[_0xf665c6(_0x3c2306._0x1baa6d)]), _0x463b74['signal'];
|
|
678
|
-
_0x2887b8[_0xf665c6(_0x3c2306._0x494f93)](_0xf665c6(_0x3c2306._0x547677), () => _0x463b74[_0xf665c6(0x18d)](_0x2887b8[_0xf665c6(0x255)]), {
|
|
708
|
+
function anySignal(..._0x137955) {
|
|
709
|
+
const _0x451fac = {
|
|
710
|
+
_0x30ccd2: 0x1dc,
|
|
711
|
+
_0x328fe8: 0x180,
|
|
712
|
+
_0xd35811: 0x232
|
|
713
|
+
}, _0x20d4ae = _0x6aa24e, _0xb703f9 = new AbortController();
|
|
714
|
+
for (const _0x5771ca of _0x137955) {
|
|
715
|
+
if (_0x5771ca[_0x20d4ae(0x10b)])
|
|
716
|
+
return _0xb703f9[_0x20d4ae(_0x451fac._0x30ccd2)](_0x5771ca[_0x20d4ae(0x179)]), _0xb703f9[_0x20d4ae(_0x451fac._0x328fe8)];
|
|
717
|
+
_0x5771ca[_0x20d4ae(_0x451fac._0xd35811)](_0x20d4ae(_0x451fac._0x30ccd2), () => _0xb703f9['abort'](_0x5771ca[_0x20d4ae(0x179)]), {
|
|
679
718
|
'once': !![],
|
|
680
|
-
'signal':
|
|
719
|
+
'signal': _0xb703f9[_0x20d4ae(0x180)]
|
|
681
720
|
});
|
|
682
721
|
}
|
|
683
|
-
return
|
|
722
|
+
return _0xb703f9[_0x20d4ae(0x180)];
|
|
684
723
|
}
|
|
685
|
-
function createInternalAgentClient(
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
},
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
},
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
_0x504bd2: 0x2c4,
|
|
830
|
-
_0xba3be3: 0x273,
|
|
831
|
-
_0x40df4e: 0x269,
|
|
832
|
-
_0x3f448f: 0x1b2
|
|
833
|
-
}, _0x15df04 = _0x48b8fe, _0x42ce43 = _0x28783b[_0x15df04(_0x12caa7._0x1ccd07)] ?? fetch, _0x5d85fb = _0x28783b['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x234f6f = typeof _0x28783b[_0x15df04(0x17b)] === 'number' && _0x28783b[_0x15df04(0x17b)] > 0x0 ? _0x28783b[_0x15df04(_0x12caa7._0x24cbfa)] : 0x0, _0x1dda70 = _0x28783b[_0x15df04(0x238)]?.[_0x15df04(0x224)]() || void 0x0, _0x1d4ce3 = _0x28783b[_0x15df04(_0x12caa7._0x3ed818)]?.[_0x15df04(_0x12caa7._0x3f860a)]() || void 0x0, _0x3d310b = _0x28783b['workerModeEnabled'] === !![], _0x19949b = _0x28783b[_0x15df04(0x2b8)]?.['trim']() || void 0x0, _0x4fd85b = _0x28783b[_0x15df04(0x1eb)]?.['trim']() || void 0x0, _0x24f328 = createHeaders(_0x28783b[_0x15df04(_0x12caa7._0x5719b0)]), _0x206bfc = toHttpBaseUrl(_0x28783b[_0x15df04(0x2b0)]);
|
|
834
|
-
let _0x3c1247 = null;
|
|
835
|
-
const _0x4fdb3f = new Map();
|
|
836
|
-
let _0x47facc = _0x234f6f, _0x4fd613 = _0x234f6f;
|
|
837
|
-
function _0x140304(_0x206bf0) {
|
|
838
|
-
const _0x1d0fd0 = _0x15df04, _0x90d213 = _0x206bf0[_0x1d0fd0(_0x52bd92._0x5799d3)]['headers'][_0x1d0fd0(0x25f)]('content-type') ?? _0x1d0fd0(0x2a4), _0x5a67ed = _0x206bf0['bodyText'][_0x1d0fd0(0x224)]()['replace'](/\s+/g, '\x20')[_0x1d0fd0(_0x52bd92._0x504bd2)](0x0, 0x78) || _0x1d0fd0(0x1df);
|
|
839
|
-
return '请求\x20' + _0x206bf0[_0x1d0fd0(0x2be)] + _0x1d0fd0(_0x52bd92._0xba3be3) + _0x206bf0[_0x1d0fd0(0x210)][_0x1d0fd0(_0x52bd92._0x40df4e)] + _0x1d0fd0(0x25e) + _0x90d213 + _0x1d0fd0(0x206) + _0x5a67ed + _0x1d0fd0(_0x52bd92._0x3f448f);
|
|
724
|
+
function createInternalAgentClient(_0x5b69b8) {
|
|
725
|
+
const _0x38dbc3 = {
|
|
726
|
+
_0x18b9b5: 0x16e,
|
|
727
|
+
_0x2d429a: 0x148,
|
|
728
|
+
_0x22e196: 0x240,
|
|
729
|
+
_0x1ee216: 0x18c
|
|
730
|
+
}, _0x360058 = {
|
|
731
|
+
_0x49c552: 0x188,
|
|
732
|
+
_0x758dc9: 0x167,
|
|
733
|
+
_0x1cd084: 0x144,
|
|
734
|
+
_0x163511: 0x1a6,
|
|
735
|
+
_0x3a4475: 0x1c6,
|
|
736
|
+
_0x78db33: 0x157,
|
|
737
|
+
_0x2075d0: 0x1c6,
|
|
738
|
+
_0x344bbb: 0x184,
|
|
739
|
+
_0x7b47e9: 0x23a,
|
|
740
|
+
_0x48b5f1: 0x1c8,
|
|
741
|
+
_0x4d2db2: 0x158,
|
|
742
|
+
_0x2bb5fa: 0x23a,
|
|
743
|
+
_0xd18672: 0x178,
|
|
744
|
+
_0x1964db: 0x1df,
|
|
745
|
+
_0x3445f9: 0x12b,
|
|
746
|
+
_0x523aed: 0x1f9,
|
|
747
|
+
_0x372c75: 0x206,
|
|
748
|
+
_0x5b8ee0: 0x16b,
|
|
749
|
+
_0x4cd6f3: 0x1c7,
|
|
750
|
+
_0x28a8fe: 0x1c1,
|
|
751
|
+
_0x265568: 0xff,
|
|
752
|
+
_0x15e3d9: 0x26e,
|
|
753
|
+
_0x5977f7: 0x1ea
|
|
754
|
+
}, _0x4c3ff1 = {
|
|
755
|
+
_0x3d1794: 0x1a1,
|
|
756
|
+
_0x192fe7: 0x17a
|
|
757
|
+
}, _0x3b5c83 = {
|
|
758
|
+
_0x4b6433: 0x25c,
|
|
759
|
+
_0x22c029: 0x127,
|
|
760
|
+
_0x43689c: 0x180,
|
|
761
|
+
_0x40e61a: 0x249,
|
|
762
|
+
_0x741592: 0x193,
|
|
763
|
+
_0xb44e43: 0x165
|
|
764
|
+
}, _0x3c5c8e = {
|
|
765
|
+
_0xb36b04: 0x246,
|
|
766
|
+
_0x3447f2: 0x215,
|
|
767
|
+
_0x113d6f: 0x115,
|
|
768
|
+
_0x5f1de0: 0x17a,
|
|
769
|
+
_0x356261: 0x1e2,
|
|
770
|
+
_0x560fce: 0x165,
|
|
771
|
+
_0x1fb7a6: 0x1de,
|
|
772
|
+
_0x11349e: 0x205,
|
|
773
|
+
_0x32aa6e: 0x193
|
|
774
|
+
}, _0x3e46a8 = {
|
|
775
|
+
_0x3d327c: 0x20c,
|
|
776
|
+
_0x480100: 0x115,
|
|
777
|
+
_0x58dccf: 0x255
|
|
778
|
+
}, _0x1955a5 = {
|
|
779
|
+
_0x1284a7: 0x16f,
|
|
780
|
+
_0x45d66d: 0x210,
|
|
781
|
+
_0x4dff3c: 0x115,
|
|
782
|
+
_0x1f4f2e: 0x205
|
|
783
|
+
}, _0x186995 = { _0x10f386: 0x16f }, _0x1ffc6c = { _0x3e8f08: 0x116 }, _0x20d162 = {
|
|
784
|
+
_0x4ef1c9: 0x26f,
|
|
785
|
+
_0x1a24c3: 0x249,
|
|
786
|
+
_0x42cebf: 0x249,
|
|
787
|
+
_0x5024dd: 0x249,
|
|
788
|
+
_0x379381: 0x167
|
|
789
|
+
}, _0x38e4bc = {
|
|
790
|
+
_0x38058c: 0x202,
|
|
791
|
+
_0x218db0: 0x160,
|
|
792
|
+
_0x40a2d1: 0x205
|
|
793
|
+
}, _0x4dd837 = { _0x5c5ac8: 0x202 }, _0x481ae5 = {
|
|
794
|
+
_0x4ede99: 0x115,
|
|
795
|
+
_0x238211: 0x193
|
|
796
|
+
}, _0xc39e25 = {
|
|
797
|
+
_0x3a9e05: 0x200,
|
|
798
|
+
_0x21d672: 0x10f,
|
|
799
|
+
_0x13ec2a: 0x145,
|
|
800
|
+
_0x229bea: 0x115,
|
|
801
|
+
_0x526457: 0x170,
|
|
802
|
+
_0x3e8acd: 0x1a6
|
|
803
|
+
}, _0x2e597e = {
|
|
804
|
+
_0x5da472: 0x14a,
|
|
805
|
+
_0x507f3e: 0x12b,
|
|
806
|
+
_0x48a630: 0x14a,
|
|
807
|
+
_0x532268: 0x1a1,
|
|
808
|
+
_0xc3c76b: 0x144,
|
|
809
|
+
_0x50199b: 0x1cf,
|
|
810
|
+
_0x478cb6: 0x143
|
|
811
|
+
}, _0x209e93 = { _0x148c73: 0x15d }, _0x2f3e7c = {
|
|
812
|
+
_0x117bcf: 0x223,
|
|
813
|
+
_0x1e87cf: 0x24d,
|
|
814
|
+
_0x3fd319: 0x1c8,
|
|
815
|
+
_0x392b7e: 0x23a,
|
|
816
|
+
_0x220015: 0x1d0,
|
|
817
|
+
_0xe98189: 0x184,
|
|
818
|
+
_0x1fe98e: 0x13f
|
|
819
|
+
}, _0x43b634 = {
|
|
820
|
+
_0x564df1: 0x24d,
|
|
821
|
+
_0x54bbd5: 0x1c8,
|
|
822
|
+
_0x5e4808: 0x184,
|
|
823
|
+
_0x5c9370: 0x177
|
|
824
|
+
}, _0xdbac69 = { _0x50985f: 0x25b }, _0x568587 = {
|
|
825
|
+
_0x570e51: 0x16f,
|
|
826
|
+
_0x141f43: 0x1c6,
|
|
827
|
+
_0x3a6a80: 0x193,
|
|
828
|
+
_0x469872: 0x1a5
|
|
829
|
+
}, _0x4b99d1 = {
|
|
830
|
+
_0x42cd3f: 0x115,
|
|
831
|
+
_0x2b8da8: 0x205,
|
|
832
|
+
_0x5d9572: 0x184
|
|
833
|
+
}, _0x34e838 = {
|
|
834
|
+
_0xbecb33: 0x20b,
|
|
835
|
+
_0x5373aa: 0x115
|
|
836
|
+
}, _0x3f027a = {
|
|
837
|
+
_0x95aa69: 0x180,
|
|
838
|
+
_0x386b37: 0x180,
|
|
839
|
+
_0x562235: 0x160,
|
|
840
|
+
_0x4d8df1: 0x249
|
|
841
|
+
}, _0x25a50e = { _0xbfcdd: 0x1c9 }, _0x1c8e54 = {
|
|
842
|
+
_0x4f6bf4: 0x168,
|
|
843
|
+
_0x33439b: 0x168,
|
|
844
|
+
_0x4ee08d: 0x240,
|
|
845
|
+
_0x4c05f8: 0x20a,
|
|
846
|
+
_0x3f7e07: 0x231,
|
|
847
|
+
_0x4c0dc8: 0x15a,
|
|
848
|
+
_0x2c5e55: 0x176,
|
|
849
|
+
_0x342444: 0x27d,
|
|
850
|
+
_0x258f2a: 0x12b
|
|
851
|
+
}, _0x37f92a = {
|
|
852
|
+
_0x104c4e: 0x147,
|
|
853
|
+
_0x12cc36: 0x22b
|
|
854
|
+
}, _0x5b4338 = {
|
|
855
|
+
_0x4fce95: 0x166,
|
|
856
|
+
_0x32bb94: 0x1b6,
|
|
857
|
+
_0x48e46b: 0x195,
|
|
858
|
+
_0x5da37e: 0x240,
|
|
859
|
+
_0x5bee24: 0x258,
|
|
860
|
+
_0x450716: 0x283
|
|
861
|
+
}, _0x12276d = _0x6aa24e, _0x14be2d = _0x5b69b8[_0x12276d(_0x38dbc3._0x18b9b5)] ?? fetch, _0x32b7eb = _0x5b69b8[_0x12276d(0x251)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x264efb = typeof _0x5b69b8[_0x12276d(0x1a0)] === 'number' && _0x5b69b8['initialLastSeenSeq'] > 0x0 ? _0x5b69b8[_0x12276d(0x1a0)] : 0x0, _0x4aab04 = _0x5b69b8[_0x12276d(_0x38dbc3._0x2d429a)]?.[_0x12276d(_0x38dbc3._0x22e196)]() || void 0x0, _0x440b4f = _0x5b69b8[_0x12276d(_0x38dbc3._0x1ee216)]?.[_0x12276d(0x240)]() || void 0x0, _0xd3925b = _0x5b69b8[_0x12276d(0x109)] === !![], _0x236541 = _0x5b69b8[_0x12276d(0x1d5)]?.[_0x12276d(_0x38dbc3._0x22e196)]() || void 0x0, _0x53b1a9 = _0x5b69b8['workerThreadTarget']?.[_0x12276d(0x240)]() || void 0x0, _0x186643 = createHeaders(_0x5b69b8['daemonApiKey']), _0x3fa8d3 = toHttpBaseUrl(_0x5b69b8[_0x12276d(0x218)]);
|
|
862
|
+
let _0x1e6a32 = null;
|
|
863
|
+
const _0x3405be = new Map();
|
|
864
|
+
let _0x1b7865 = _0x264efb, _0x21f674 = _0x264efb;
|
|
865
|
+
function _0x3cda31(_0x492452) {
|
|
866
|
+
const _0x230a4a = _0x12276d, _0x8a25bc = _0x492452[_0x230a4a(0x283)][_0x230a4a(0x140)][_0x230a4a(0x1ab)](_0x230a4a(_0x5b4338._0x4fce95)) ?? _0x230a4a(_0x5b4338._0x32bb94), _0x4b468f = _0x492452[_0x230a4a(_0x5b4338._0x48e46b)][_0x230a4a(_0x5b4338._0x5da37e)]()[_0x230a4a(_0x5b4338._0x5bee24)](/\s+/g, '\x20')[_0x230a4a(0x177)](0x0, 0x78) || _0x230a4a(0x1cc);
|
|
867
|
+
return _0x230a4a(0x155) + _0x492452['requestUrl'] + _0x230a4a(0x1af) + _0x492452[_0x230a4a(_0x5b4338._0x450716)][_0x230a4a(0x249)] + ',\x20content-type=' + _0x8a25bc + _0x230a4a(0x220) + _0x4b468f + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
840
868
|
}
|
|
841
|
-
async function
|
|
842
|
-
const
|
|
843
|
-
if (!
|
|
869
|
+
async function _0x4bbc7d(_0x1cf234, _0x3ab25d) {
|
|
870
|
+
const _0x3faf6f = _0x12276d, _0x530e27 = Buffer[_0x3faf6f(_0x37f92a._0x104c4e)](await _0x3ab25d['arrayBuffer']())[_0x3faf6f(0x167)](_0x3faf6f(_0x37f92a._0x12cc36));
|
|
871
|
+
if (!_0x530e27[_0x3faf6f(0x240)]())
|
|
844
872
|
return {};
|
|
845
873
|
try {
|
|
846
|
-
return JSON['parse'](
|
|
874
|
+
return JSON['parse'](_0x530e27);
|
|
847
875
|
} catch {
|
|
848
|
-
throw new Error(
|
|
849
|
-
'bodyText':
|
|
850
|
-
'requestUrl':
|
|
851
|
-
'response':
|
|
876
|
+
throw new Error(_0x3cda31({
|
|
877
|
+
'bodyText': _0x530e27,
|
|
878
|
+
'requestUrl': _0x1cf234,
|
|
879
|
+
'response': _0x3ab25d
|
|
852
880
|
}));
|
|
853
881
|
}
|
|
854
882
|
}
|
|
855
|
-
function
|
|
856
|
-
const
|
|
857
|
-
if (
|
|
858
|
-
return
|
|
859
|
-
const
|
|
860
|
-
for (const [
|
|
861
|
-
|
|
883
|
+
function _0x2a480f(_0x137bc5, _0x397bf4) {
|
|
884
|
+
const _0x5543ba = _0x12276d, _0x4d2814 = typeof _0x397bf4[_0x5543ba(_0x1c8e54._0x4f6bf4)] === 'string' ? _0x397bf4[_0x5543ba(_0x1c8e54._0x33439b)][_0x5543ba(_0x1c8e54._0x4ee08d)]() : '';
|
|
885
|
+
if (_0x4d2814)
|
|
886
|
+
return _0x4d2814;
|
|
887
|
+
const _0x49aa71 = Date[_0x5543ba(0x117)]();
|
|
888
|
+
for (const [_0x587ee3, _0x1c4a64] of _0x3405be) {
|
|
889
|
+
_0x1c4a64[_0x5543ba(0x16c)] <= _0x49aa71 && _0x3405be[_0x5543ba(_0x1c8e54._0x4c05f8)](_0x587ee3);
|
|
862
890
|
}
|
|
863
|
-
const
|
|
864
|
-
...
|
|
891
|
+
const _0x98ff39 = {
|
|
892
|
+
..._0x397bf4,
|
|
865
893
|
'idempotency_key': void 0x0
|
|
866
|
-
},
|
|
867
|
-
if (
|
|
868
|
-
return
|
|
869
|
-
const
|
|
870
|
-
return
|
|
871
|
-
'expiresAt':
|
|
872
|
-
'value':
|
|
873
|
-
}),
|
|
894
|
+
}, _0x41f9a1 = createHash(_0x5543ba(_0x1c8e54._0x3f7e07))[_0x5543ba(_0x1c8e54._0x4c0dc8)](_0x137bc5 + ':' + stableStringify(_0x98ff39))[_0x5543ba(0xfe)](_0x5543ba(_0x1c8e54._0x2c5e55)), _0x13b5dd = _0x137bc5 + ':' + _0x41f9a1, _0x4fd34c = _0x3405be[_0x5543ba(0x1ab)](_0x13b5dd);
|
|
895
|
+
if (_0x4fd34c)
|
|
896
|
+
return _0x4fd34c[_0x5543ba(0x149)];
|
|
897
|
+
const _0x2605ab = _0x5543ba(_0x1c8e54._0x342444) + _0x137bc5 + ':' + randomUUID();
|
|
898
|
+
return _0x3405be[_0x5543ba(_0x1c8e54._0x258f2a)](_0x13b5dd, {
|
|
899
|
+
'expiresAt': _0x49aa71 + 0x5 * 0x3c * 0x3e8,
|
|
900
|
+
'value': _0x2605ab
|
|
901
|
+
}), _0x2605ab;
|
|
874
902
|
}
|
|
875
|
-
async function
|
|
876
|
-
const
|
|
903
|
+
async function _0x5319c9(_0x3392c7, _0x4a4203) {
|
|
904
|
+
const _0x313a4f = _0x12276d, _0x23eb3d = new AbortController(), _0x5a80f6 = setTimeout(() => _0x23eb3d[_0x313a4f(0x1dc)](), _0x32b7eb), _0x6358f5 = _0x4a4203?.[_0x313a4f(0x180)] ? anySignal(_0x4a4203['signal'], _0x23eb3d[_0x313a4f(0x180)]) : _0x23eb3d[_0x313a4f(0x180)], _0x1dae98 = '' + _0x3fa8d3 + _0x3392c7;
|
|
877
905
|
try {
|
|
878
|
-
const
|
|
879
|
-
...
|
|
880
|
-
'signal':
|
|
881
|
-
}),
|
|
882
|
-
if (!
|
|
883
|
-
throw new Error(asErrorMessage(
|
|
884
|
-
return
|
|
906
|
+
const _0x5205ab = await _0x14be2d(_0x1dae98, {
|
|
907
|
+
..._0x4a4203,
|
|
908
|
+
'signal': _0x6358f5
|
|
909
|
+
}), _0x422443 = await _0x4bbc7d(_0x1dae98, _0x5205ab);
|
|
910
|
+
if (!_0x5205ab['ok'] || _0x422443[_0x313a4f(0x235)] === ![])
|
|
911
|
+
throw new Error(asErrorMessage(_0x422443[_0x313a4f(0x160)], _0x313a4f(_0x25a50e._0xbfcdd) + _0x5205ab[_0x313a4f(0x249)]));
|
|
912
|
+
return _0x422443;
|
|
885
913
|
} finally {
|
|
886
|
-
clearTimeout(
|
|
914
|
+
clearTimeout(_0x5a80f6);
|
|
887
915
|
}
|
|
888
916
|
}
|
|
889
|
-
async function
|
|
890
|
-
const
|
|
917
|
+
async function _0x58be69(_0x5e0645, _0x302a56) {
|
|
918
|
+
const _0x47b1ac = _0x12276d, _0x2b1f7d = new AbortController(), _0x4091c2 = setTimeout(() => _0x2b1f7d['abort'](), _0x32b7eb), _0x285ef8 = _0x302a56?.[_0x47b1ac(0x180)] ? anySignal(_0x302a56[_0x47b1ac(_0x3f027a._0x95aa69)], _0x2b1f7d[_0x47b1ac(0x180)]) : _0x2b1f7d[_0x47b1ac(_0x3f027a._0x386b37)], _0x2f98dc = '' + _0x3fa8d3 + _0x5e0645;
|
|
891
919
|
try {
|
|
892
|
-
const
|
|
893
|
-
...
|
|
894
|
-
'signal':
|
|
895
|
-
}),
|
|
896
|
-
if (!
|
|
897
|
-
throw new Error(asErrorMessage(
|
|
898
|
-
return
|
|
920
|
+
const _0x1538f0 = await _0x14be2d(_0x2f98dc, {
|
|
921
|
+
..._0x302a56,
|
|
922
|
+
'signal': _0x285ef8
|
|
923
|
+
}), _0x2a5ebf = await _0x4bbc7d(_0x2f98dc, _0x1538f0);
|
|
924
|
+
if (!_0x1538f0['ok'])
|
|
925
|
+
throw new Error(asErrorMessage(_0x2a5ebf[_0x47b1ac(_0x3f027a._0x562235)], 'HTTP\x20' + _0x1538f0[_0x47b1ac(_0x3f027a._0x4d8df1)]));
|
|
926
|
+
return _0x2a5ebf;
|
|
899
927
|
} finally {
|
|
900
|
-
clearTimeout(
|
|
928
|
+
clearTimeout(_0x4091c2);
|
|
901
929
|
}
|
|
902
930
|
}
|
|
903
|
-
async function
|
|
904
|
-
const
|
|
905
|
-
if (!
|
|
931
|
+
async function _0x1f0adf(_0x3173b5) {
|
|
932
|
+
const _0x361313 = _0x12276d;
|
|
933
|
+
if (!_0x440b4f || _0x3173b5 <= _0x21f674)
|
|
906
934
|
return;
|
|
907
|
-
await
|
|
908
|
-
'body': JSON[
|
|
909
|
-
'headers':
|
|
910
|
-
'method':
|
|
911
|
-
}),
|
|
935
|
+
await _0x5319c9(_0x361313(_0x34e838._0xbecb33) + encodeURIComponent(_0x440b4f) + '/context-metrics', {
|
|
936
|
+
'body': JSON[_0x361313(_0x34e838._0x5373aa)]({ 'lastSeenSeq': _0x3173b5 }),
|
|
937
|
+
'headers': _0x186643,
|
|
938
|
+
'method': _0x361313(0x19c)
|
|
939
|
+
}), _0x21f674 = _0x3173b5;
|
|
912
940
|
}
|
|
913
|
-
async function
|
|
914
|
-
const
|
|
915
|
-
if (!
|
|
941
|
+
async function _0x45a06c(_0x18b2bc) {
|
|
942
|
+
const _0x35175f = _0x12276d;
|
|
943
|
+
if (!_0x4aab04 || !_0x236541 || _0x18b2bc <= _0x21f674)
|
|
916
944
|
return;
|
|
917
|
-
const
|
|
918
|
-
'body': JSON[
|
|
919
|
-
'last_seen_seq':
|
|
920
|
-
'worker_session_id':
|
|
945
|
+
const _0xd5d4d6 = await _0x14be2d(_0x4aab04 + '/workers/context-metrics', {
|
|
946
|
+
'body': JSON[_0x35175f(0x115)]({
|
|
947
|
+
'last_seen_seq': _0x18b2bc,
|
|
948
|
+
'worker_session_id': _0x236541
|
|
921
949
|
}),
|
|
922
|
-
'headers': { 'Content-Type':
|
|
950
|
+
'headers': { 'Content-Type': _0x35175f(0x181) },
|
|
923
951
|
'method': 'POST'
|
|
924
952
|
});
|
|
925
|
-
if (!
|
|
926
|
-
throw new Error(
|
|
927
|
-
|
|
953
|
+
if (!_0xd5d4d6['ok'])
|
|
954
|
+
throw new Error(_0x35175f(0x1c9) + _0xd5d4d6[_0x35175f(0x249)]);
|
|
955
|
+
_0x21f674 = _0x18b2bc;
|
|
928
956
|
}
|
|
929
|
-
async function
|
|
930
|
-
const
|
|
931
|
-
'body': JSON[
|
|
932
|
-
'headers':
|
|
933
|
-
'method':
|
|
957
|
+
async function _0x230320(_0x2067b2) {
|
|
958
|
+
const _0x2d3770 = _0x12276d, _0x3c4f56 = parseTarget(_0x2067b2), _0x9a275a = await _0x5319c9('/internal/agent/' + _0x5b69b8[_0x2d3770(0x215)] + '/resolve-channel', {
|
|
959
|
+
'body': JSON[_0x2d3770(_0x4b99d1._0x42cd3f)]({ 'target': _0x3c4f56['target'] }),
|
|
960
|
+
'headers': _0x186643,
|
|
961
|
+
'method': _0x2d3770(_0x4b99d1._0x2b8da8)
|
|
934
962
|
});
|
|
935
963
|
return {
|
|
936
|
-
'channelId':
|
|
937
|
-
'target':
|
|
938
|
-
'task':
|
|
939
|
-
'threadId':
|
|
940
|
-
'threadNumber':
|
|
964
|
+
'channelId': _0x9a275a['data']?.[_0x2d3770(0x1a1)] ?? '',
|
|
965
|
+
'target': _0x3c4f56[_0x2d3770(0x24d)],
|
|
966
|
+
'task': _0x9a275a['data']?.['task'],
|
|
967
|
+
'threadId': _0x9a275a['data']?.[_0x2d3770(_0x4b99d1._0x5d9572)],
|
|
968
|
+
'threadNumber': _0x9a275a[_0x2d3770(0x193)]?.['threadNumber']
|
|
941
969
|
};
|
|
942
970
|
}
|
|
943
|
-
async function
|
|
944
|
-
const
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
'
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
try {
|
|
959
|
-
const _0x43fa98 = await _0x507e4d(_0x55678b(0x1e3) + encodeURIComponent(_0x4ce148), {
|
|
960
|
-
'headers': _0x24f328,
|
|
961
|
-
'method': _0x55678b(0x1e1)
|
|
962
|
-
});
|
|
963
|
-
_0x4ec44f = _0x43fa98[_0x55678b(0x223)] ?? [];
|
|
964
|
-
} catch {
|
|
965
|
-
_0x4ec44f = [];
|
|
966
|
-
}
|
|
967
|
-
const _0x1494eb = _0x4ec44f[_0x55678b(0x1cc)](_0x3a5c45 => ({
|
|
968
|
-
'id': _0x3a5c45['participants']?.['id'] ?? _0x3a5c45['server_members']?.[_0x55678b(0x2bb)] ?? '',
|
|
969
|
-
'name': _0x3a5c45[_0x55678b(0x171)]?.[_0x55678b(0x231)] ?? _0x3a5c45[_0x55678b(0x2a5)]?.[_0x55678b(0x2bb)] ?? ''
|
|
970
|
-
}))['filter'](_0x3bc3fe => _0x3bc3fe['id']), _0x1eb7b6 = new Set(_0x1494eb[_0x55678b(0x1cc)](_0x27a982 => _0x27a982['id'])), _0x1df0b7 = (_0x44c69e[_0x55678b(_0x1705d4._0x1b6c6a)]?.[_0x55678b(0x232)] ?? [])[_0x55678b(0x22f)](_0x2abbd1 => !_0x1eb7b6[_0x55678b(0x1a3)](_0x3e3457(_0x2abbd1)))[_0x55678b(_0x1705d4._0x169e21)](_0x1cef92 => ({
|
|
971
|
-
'id': _0x3e3457(_0x1cef92),
|
|
972
|
-
'name': _0x42e410(_0x1cef92)
|
|
973
|
-
}))[_0x55678b(_0x1705d4._0x5eb1c6)](_0x25ce18 => _0x25ce18['id']);
|
|
971
|
+
async function _0x40c4a0(_0x4be4a6 = {}) {
|
|
972
|
+
const _0x423d60 = _0x12276d;
|
|
973
|
+
if (!_0x4be4a6[_0x423d60(_0xdbac69._0x50985f)] && _0x1e6a32)
|
|
974
|
+
return _0x1e6a32;
|
|
975
|
+
return _0x1e6a32 = (async () => {
|
|
976
|
+
const _0x35fd6d = _0x423d60, _0x20161a = await _0x5319c9(_0x35fd6d(_0x568587._0x570e51) + _0x5b69b8['agentId'] + _0x35fd6d(0x224), {
|
|
977
|
+
'headers': _0x186643,
|
|
978
|
+
'method': _0x35fd6d(0x127)
|
|
979
|
+
}), _0xb88399 = _0x20161a['data']?.[_0x35fd6d(0x190)] ?? [], _0x1e8af8 = _0xb88399[_0x35fd6d(0x1ea)](_0x5ef2d3 => _0x5ef2d3['participant']?.[_0x35fd6d(0x23f)] === _0x35fd6d(0x248))[_0x35fd6d(0x157)](_0x8e5f46 => ({
|
|
980
|
+
'id': _0x3bb785(_0x8e5f46),
|
|
981
|
+
'name': _0x30485d(_0x8e5f46)
|
|
982
|
+
}))['filter'](_0x138606 => _0x138606['id']), _0x45fee5 = _0xb88399['filter'](_0x2c320f => _0x2c320f[_0x35fd6d(0x11c)]?.[_0x35fd6d(0x23f)] !== _0x35fd6d(0x248))['map'](_0x431105 => ({
|
|
983
|
+
'id': _0x3bb785(_0x431105),
|
|
984
|
+
'name': _0x30485d(_0x431105)
|
|
985
|
+
}))[_0x35fd6d(0x1ea)](_0x2929f2 => _0x2929f2['id']), _0x2a9661 = _0x20161a[_0x35fd6d(0x193)]?.['server']['id'] ?? '';
|
|
974
986
|
return {
|
|
975
|
-
'agents':
|
|
976
|
-
'channels':
|
|
977
|
-
'humans':
|
|
978
|
-
'serverId':
|
|
979
|
-
'serverName':
|
|
987
|
+
'agents': _0x1e8af8,
|
|
988
|
+
'channels': _0x20161a[_0x35fd6d(0x193)]?.[_0x35fd6d(_0x568587._0x141f43)] ?? [],
|
|
989
|
+
'humans': _0x45fee5,
|
|
990
|
+
'serverId': _0x2a9661,
|
|
991
|
+
'serverName': _0x20161a[_0x35fd6d(_0x568587._0x3a6a80)]?.[_0x35fd6d(0x1b5)][_0x35fd6d(_0x568587._0x469872)] ?? _0x2a9661
|
|
980
992
|
};
|
|
981
|
-
})()[
|
|
982
|
-
|
|
983
|
-
throw
|
|
984
|
-
})
|
|
993
|
+
})()[_0x423d60(0x19f)](_0x198a6c => {
|
|
994
|
+
_0x1e6a32 = null;
|
|
995
|
+
throw _0x198a6c;
|
|
996
|
+
}), _0x1e6a32;
|
|
985
997
|
}
|
|
986
|
-
function
|
|
987
|
-
const
|
|
988
|
-
return
|
|
998
|
+
function _0x1600b0(_0x50f599, _0xe924ec) {
|
|
999
|
+
const _0x3b1a94 = _0x12276d;
|
|
1000
|
+
return _0xe924ec[_0x3b1a94(0x278)]['some'](_0x29ef71 => _0x29ef71['id'] === _0x50f599 || _0x29ef71[_0x3b1a94(0x1a5)] === _0x50f599) ? _0x3b1a94(0x248) : _0x3b1a94(0x1d4);
|
|
989
1001
|
}
|
|
990
|
-
function
|
|
991
|
-
const
|
|
992
|
-
if (
|
|
993
|
-
return
|
|
994
|
-
if (
|
|
995
|
-
return
|
|
996
|
-
if (
|
|
997
|
-
return
|
|
998
|
-
return
|
|
1002
|
+
function _0x1c1b5f(_0x8ab79b) {
|
|
1003
|
+
const _0x28bd4c = _0x12276d;
|
|
1004
|
+
if (_0x8ab79b['threadNumber'] != null)
|
|
1005
|
+
return _0x8ab79b[_0x28bd4c(_0x43b634._0x564df1)] + ':t' + _0x8ab79b[_0x28bd4c(_0x43b634._0x54bbd5)];
|
|
1006
|
+
if (_0x8ab79b[_0x28bd4c(0x23a)])
|
|
1007
|
+
return _0x8ab79b[_0x28bd4c(_0x43b634._0x564df1)] + ':' + _0x8ab79b['rootMessageId'];
|
|
1008
|
+
if (_0x8ab79b[_0x28bd4c(_0x43b634._0x5e4808)])
|
|
1009
|
+
return _0x8ab79b[_0x28bd4c(0x24d)] + ':' + _0x8ab79b['threadId'][_0x28bd4c(_0x43b634._0x5c9370)](0x0, 0x8);
|
|
1010
|
+
return _0x8ab79b['channelTarget'];
|
|
999
1011
|
}
|
|
1000
|
-
function
|
|
1001
|
-
const
|
|
1012
|
+
function _0x1dfced(_0xdccee3, _0x58d66a) {
|
|
1013
|
+
const _0x1c28dc = _0x12276d;
|
|
1002
1014
|
try {
|
|
1003
|
-
const
|
|
1004
|
-
if (
|
|
1015
|
+
const _0xcd603d = parseTarget(_0xdccee3);
|
|
1016
|
+
if (_0xcd603d[_0x1c28dc(_0x2f3e7c._0x117bcf)] !== _0x1c28dc(0x1b7) || _0xcd603d[_0x1c28dc(_0x2f3e7c._0x1e87cf)] !== _0x58d66a[_0x1c28dc(_0x2f3e7c._0x1e87cf)])
|
|
1005
1017
|
return ![];
|
|
1006
|
-
if (
|
|
1018
|
+
if (_0x58d66a['threadNumber'] != null && _0xcd603d[_0x1c28dc(0x13f)] === 't' + _0x58d66a[_0x1c28dc(_0x2f3e7c._0x3fd319)])
|
|
1007
1019
|
return !![];
|
|
1008
|
-
if (
|
|
1009
|
-
return
|
|
1010
|
-
if (
|
|
1011
|
-
return
|
|
1020
|
+
if (_0x58d66a['rootMessageId'])
|
|
1021
|
+
return _0xcd603d[_0x1c28dc(0x13f)] === _0x58d66a[_0x1c28dc(_0x2f3e7c._0x392b7e)] || _0x58d66a[_0x1c28dc(_0x2f3e7c._0x392b7e)][_0x1c28dc(_0x2f3e7c._0x220015)](_0xcd603d['threadShortId']);
|
|
1022
|
+
if (_0x58d66a[_0x1c28dc(0x184)])
|
|
1023
|
+
return _0xcd603d['threadShortId'] === _0x58d66a[_0x1c28dc(_0x2f3e7c._0xe98189)] || _0x58d66a[_0x1c28dc(_0x2f3e7c._0xe98189)][_0x1c28dc(_0x2f3e7c._0x220015)](_0xcd603d[_0x1c28dc(_0x2f3e7c._0x1fe98e)]);
|
|
1012
1024
|
return ![];
|
|
1013
1025
|
} catch {
|
|
1014
1026
|
return ![];
|
|
1015
1027
|
}
|
|
1016
1028
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const
|
|
1019
|
-
return
|
|
1029
|
+
function _0x3bb785(_0x1f1ba2) {
|
|
1030
|
+
const _0x1babff = _0x12276d;
|
|
1031
|
+
return _0x1f1ba2['member']?.[_0x1babff(_0x209e93._0x148c73)] ?? _0x1f1ba2['participant']?.['id'] ?? _0x1f1ba2[_0x1babff(0x15d)] ?? '';
|
|
1020
1032
|
}
|
|
1021
|
-
function
|
|
1022
|
-
const
|
|
1023
|
-
return
|
|
1033
|
+
function _0x30485d(_0x15ca41) {
|
|
1034
|
+
const _0x4dad69 = _0x12276d;
|
|
1035
|
+
return _0x15ca41['participant']?.[_0x4dad69(0x1a5)] ?? _0x3bb785(_0x15ca41);
|
|
1024
1036
|
}
|
|
1025
|
-
async function
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
const
|
|
1032
|
-
'headers':
|
|
1033
|
-
'method':
|
|
1034
|
-
}),
|
|
1035
|
-
'attachments': (
|
|
1036
|
-
'filename':
|
|
1037
|
-
'id':
|
|
1037
|
+
async function _0x49cd6b(_0x1658a2) {
|
|
1038
|
+
const _0x474efc = _0x12276d, _0x500a2f = Math[_0x474efc(0x273)](_0x1658a2[_0x474efc(_0x2e597e._0x5da472)] ?? 0x32, 0x64), _0xb8481c = await _0x40c4a0(), _0x525cfa = new URLSearchParams();
|
|
1039
|
+
_0x525cfa[_0x474efc(_0x2e597e._0x507f3e)](_0x474efc(_0x2e597e._0x48a630), String(_0x500a2f));
|
|
1040
|
+
_0x1658a2[_0x474efc(0x184)] ? (_0x525cfa['set']('threadId', _0x1658a2['threadId']), _0x525cfa[_0x474efc(0x12b)](_0x474efc(0x1a1), _0x1658a2[_0x474efc(0x1a1)])) : _0x525cfa[_0x474efc(0x12b)](_0x474efc(_0x2e597e._0x532268), _0x1658a2['channelId']);
|
|
1041
|
+
_0x1658a2['before'] && _0x525cfa[_0x474efc(0x12b)](_0x474efc(_0x2e597e._0xc3c76b), String(_0x1658a2[_0x474efc(0x1c3)]));
|
|
1042
|
+
_0x1658a2[_0x474efc(0x1cf)] !== void 0x0 && _0x525cfa['set'](_0x474efc(_0x2e597e._0x50199b), String(_0x1658a2[_0x474efc(0x1cf)]));
|
|
1043
|
+
const _0x5aa50a = await _0x5319c9('/internal/agent/' + _0x5b69b8['agentId'] + '/history?' + _0x525cfa[_0x474efc(0x167)](), {
|
|
1044
|
+
'headers': _0x186643,
|
|
1045
|
+
'method': 'GET'
|
|
1046
|
+
}), _0x322dde = (_0x5aa50a[_0x474efc(0x193)] ?? [])[_0x474efc(0x157)](_0x1f04fe => ({
|
|
1047
|
+
'attachments': (_0x1f04fe[_0x474efc(0x12e)] ?? [])[_0x474efc(0x157)](_0x497a94 => ({
|
|
1048
|
+
'filename': _0x497a94[_0x474efc(0x1de)] ?? _0x497a94['id'],
|
|
1049
|
+
'id': _0x497a94['id']
|
|
1038
1050
|
})),
|
|
1039
|
-
'content':
|
|
1040
|
-
'createdAt':
|
|
1041
|
-
'messageId':
|
|
1042
|
-
'senderName':
|
|
1043
|
-
'senderType':
|
|
1044
|
-
'seq':
|
|
1051
|
+
'content': _0x1f04fe[_0x474efc(0x254)] ?? '',
|
|
1052
|
+
'createdAt': _0x1f04fe[_0x474efc(0x262)],
|
|
1053
|
+
'messageId': _0x1f04fe['id'],
|
|
1054
|
+
'senderName': _0x1f04fe[_0x474efc(0x1c7)],
|
|
1055
|
+
'senderType': _0x1600b0(_0x1f04fe[_0x474efc(0x1c7)], _0xb8481c),
|
|
1056
|
+
'seq': _0x1f04fe['eventSeq'] ?? 0x0
|
|
1045
1057
|
}));
|
|
1046
1058
|
return {
|
|
1047
|
-
'channel':
|
|
1048
|
-
'hasMore':
|
|
1049
|
-
'messages':
|
|
1050
|
-
'nextCursor':
|
|
1059
|
+
'channel': _0x1658a2[_0x474efc(0x24d)],
|
|
1060
|
+
'hasMore': _0x5aa50a['meta']?.[_0x474efc(0x1ad)] ?? ![],
|
|
1061
|
+
'messages': _0x322dde,
|
|
1062
|
+
'nextCursor': _0x5aa50a[_0x474efc(_0x2e597e._0x478cb6)]?.[_0x474efc(0x144)]
|
|
1051
1063
|
};
|
|
1052
1064
|
}
|
|
1053
1065
|
return {
|
|
1054
|
-
async 'sendMessage'(
|
|
1055
|
-
const
|
|
1056
|
-
'body': JSON[
|
|
1057
|
-
'attachment_ids':
|
|
1058
|
-
'bodyMarkdown':
|
|
1059
|
-
'channelId':
|
|
1060
|
-
...
|
|
1061
|
-
'threadId':
|
|
1062
|
-
...
|
|
1066
|
+
async 'sendMessage'(_0x44cc1c) {
|
|
1067
|
+
const _0x372882 = _0x12276d, _0x167b47 = await _0x230320(_0x44cc1c[_0x372882(0x17a)]), _0x3be212 = _0x44cc1c[_0x372882(_0xc39e25._0x3a9e05)][_0x372882(_0xc39e25._0x21d672)]('@') ? extractMentionedParticipantIds(_0x44cc1c[_0x372882(_0xc39e25._0x3a9e05)], await _0x40c4a0()) : [], _0x26dd3f = await _0x5319c9(_0x372882(0x16f) + _0x5b69b8['agentId'] + _0x372882(_0xc39e25._0x13ec2a), {
|
|
1068
|
+
'body': JSON[_0x372882(_0xc39e25._0x229bea)]({
|
|
1069
|
+
'attachment_ids': _0x44cc1c[_0x372882(_0xc39e25._0x526457)],
|
|
1070
|
+
'bodyMarkdown': _0x44cc1c['content'],
|
|
1071
|
+
'channelId': _0x167b47['channelId'],
|
|
1072
|
+
..._0x3be212[_0x372882(_0xc39e25._0x3e8acd)] > 0x0 ? { 'mentionedParticipantIds': _0x3be212 } : {},
|
|
1073
|
+
'threadId': _0x167b47[_0x372882(0x184)],
|
|
1074
|
+
..._0x44cc1c['visibility'] ? { 'visibility': _0x44cc1c[_0x372882(0x134)] } : {}
|
|
1063
1075
|
}),
|
|
1064
|
-
'headers':
|
|
1065
|
-
'method':
|
|
1076
|
+
'headers': _0x186643,
|
|
1077
|
+
'method': _0x372882(0x205)
|
|
1066
1078
|
});
|
|
1067
|
-
return { 'messageId':
|
|
1079
|
+
return { 'messageId': _0x26dd3f['data']?.['id'] ?? '' };
|
|
1068
1080
|
},
|
|
1069
1081
|
async 'listSchedules'() {
|
|
1070
|
-
const
|
|
1071
|
-
'headers':
|
|
1072
|
-
'method':
|
|
1082
|
+
const _0x2ea2a1 = _0x12276d, _0x5496ec = await _0x5319c9('/api/internal/schedules', {
|
|
1083
|
+
'headers': _0x186643,
|
|
1084
|
+
'method': _0x2ea2a1(0x127)
|
|
1073
1085
|
});
|
|
1074
|
-
return
|
|
1086
|
+
return _0x5496ec[_0x2ea2a1(0x193)] ?? [];
|
|
1075
1087
|
},
|
|
1076
|
-
async 'claimScheduleRun'(
|
|
1077
|
-
const
|
|
1078
|
-
'body': JSON[
|
|
1079
|
-
'headers':
|
|
1080
|
-
'method':
|
|
1088
|
+
async 'claimScheduleRun'(_0x563493) {
|
|
1089
|
+
const _0x4f3e2a = _0x12276d, _0x5f13c3 = await _0x5319c9(_0x4f3e2a(0x19d), {
|
|
1090
|
+
'body': JSON[_0x4f3e2a(_0x481ae5._0x4ede99)](_0x563493),
|
|
1091
|
+
'headers': _0x186643,
|
|
1092
|
+
'method': _0x4f3e2a(0x205)
|
|
1081
1093
|
});
|
|
1082
|
-
return
|
|
1094
|
+
return _0x5f13c3[_0x4f3e2a(_0x481ae5._0x238211)] ?? {
|
|
1083
1095
|
'granted': ![],
|
|
1084
1096
|
'runId': null,
|
|
1085
1097
|
'schedule': null,
|
|
1086
|
-
'scheduledFor':
|
|
1098
|
+
'scheduledFor': _0x563493[_0x4f3e2a(0x1d9)]
|
|
1087
1099
|
};
|
|
1088
1100
|
},
|
|
1089
|
-
async 'startScheduleRun'(
|
|
1090
|
-
const
|
|
1101
|
+
async 'startScheduleRun'(_0x36c6bb) {
|
|
1102
|
+
const _0x4c38bf = _0x12276d, _0x379cd4 = await _0x5319c9(_0x4c38bf(0x271) + encodeURIComponent(_0x36c6bb[_0x4c38bf(_0x4dd837._0x5c5ac8)]) + '/start', {
|
|
1091
1103
|
'body': JSON['stringify']({}),
|
|
1092
|
-
'headers':
|
|
1104
|
+
'headers': _0x186643,
|
|
1093
1105
|
'method': 'POST'
|
|
1094
1106
|
});
|
|
1095
|
-
return
|
|
1107
|
+
return _0x379cd4[_0x4c38bf(0x193)] ?? {
|
|
1096
1108
|
'claimedByDaemonId': '',
|
|
1097
|
-
'id':
|
|
1109
|
+
'id': _0x36c6bb[_0x4c38bf(_0x4dd837._0x5c5ac8)],
|
|
1098
1110
|
'scheduleId': '',
|
|
1099
1111
|
'status': 'running'
|
|
1100
1112
|
};
|
|
1101
1113
|
},
|
|
1102
|
-
async 'finishScheduleRun'(
|
|
1103
|
-
const
|
|
1104
|
-
'body': JSON[
|
|
1105
|
-
'error':
|
|
1106
|
-
'resultJson':
|
|
1107
|
-
'status':
|
|
1114
|
+
async 'finishScheduleRun'(_0x3f437b) {
|
|
1115
|
+
const _0x110220 = _0x12276d, _0x225321 = await _0x5319c9('/api/internal/schedules/' + encodeURIComponent(_0x3f437b[_0x110220(_0x38e4bc._0x38058c)]) + _0x110220(0x1a7), {
|
|
1116
|
+
'body': JSON['stringify']({
|
|
1117
|
+
'error': _0x3f437b[_0x110220(_0x38e4bc._0x218db0)],
|
|
1118
|
+
'resultJson': _0x3f437b[_0x110220(0x26b)],
|
|
1119
|
+
'status': _0x3f437b[_0x110220(0x249)]
|
|
1108
1120
|
}),
|
|
1109
|
-
'headers':
|
|
1110
|
-
'method':
|
|
1121
|
+
'headers': _0x186643,
|
|
1122
|
+
'method': _0x110220(_0x38e4bc._0x40a2d1)
|
|
1111
1123
|
});
|
|
1112
|
-
return
|
|
1124
|
+
return _0x225321['data'] ?? {
|
|
1113
1125
|
'nextRunAt': null,
|
|
1114
1126
|
'run': {
|
|
1115
1127
|
'claimedByDaemonId': '',
|
|
1116
|
-
'id':
|
|
1128
|
+
'id': _0x3f437b[_0x110220(0x202)],
|
|
1117
1129
|
'scheduleId': '',
|
|
1118
|
-
'status':
|
|
1130
|
+
'status': _0x3f437b['status']
|
|
1119
1131
|
}
|
|
1120
1132
|
};
|
|
1121
1133
|
},
|
|
1122
|
-
async 'listTasks'(
|
|
1123
|
-
const
|
|
1124
|
-
return
|
|
1125
|
-
'headers':
|
|
1126
|
-
'method':
|
|
1134
|
+
async 'listTasks'(_0x274df3) {
|
|
1135
|
+
const _0x222dcd = _0x12276d, _0x4cb11a = new URLSearchParams();
|
|
1136
|
+
return _0x4cb11a['set'](_0x222dcd(_0x20d162._0x4ef1c9), _0x274df3['channel']), _0x274df3[_0x222dcd(_0x20d162._0x1a24c3)] && _0x4cb11a[_0x222dcd(0x12b)](_0x222dcd(_0x20d162._0x42cebf), _0x274df3[_0x222dcd(_0x20d162._0x5024dd)]), _0x58be69('/internal/agent/' + _0x5b69b8[_0x222dcd(0x215)] + _0x222dcd(0x23e) + _0x4cb11a[_0x222dcd(_0x20d162._0x379381)](), {
|
|
1137
|
+
'headers': _0x186643,
|
|
1138
|
+
'method': _0x222dcd(0x127)
|
|
1127
1139
|
});
|
|
1128
1140
|
},
|
|
1129
|
-
async 'createTasks'(
|
|
1130
|
-
const
|
|
1131
|
-
return
|
|
1132
|
-
'body': JSON[
|
|
1133
|
-
...
|
|
1134
|
-
'idempotency_key':
|
|
1141
|
+
async 'createTasks'(_0x2a3e14) {
|
|
1142
|
+
const _0x4d867d = _0x12276d;
|
|
1143
|
+
return _0x58be69(_0x4d867d(0x16f) + _0x5b69b8[_0x4d867d(0x215)] + _0x4d867d(_0x1ffc6c._0x3e8f08), {
|
|
1144
|
+
'body': JSON['stringify']({
|
|
1145
|
+
..._0x2a3e14,
|
|
1146
|
+
'idempotency_key': _0x2a480f('create_tasks', _0x2a3e14)
|
|
1135
1147
|
}),
|
|
1136
|
-
'headers':
|
|
1137
|
-
'method':
|
|
1148
|
+
'headers': _0x186643,
|
|
1149
|
+
'method': 'POST'
|
|
1138
1150
|
});
|
|
1139
1151
|
},
|
|
1140
|
-
async 'claimTasks'(
|
|
1141
|
-
const
|
|
1142
|
-
return
|
|
1143
|
-
'body': JSON[
|
|
1144
|
-
...
|
|
1145
|
-
'idempotency_key':
|
|
1152
|
+
async 'claimTasks'(_0x427c77) {
|
|
1153
|
+
const _0x289832 = _0x12276d;
|
|
1154
|
+
return _0x58be69(_0x289832(_0x186995._0x10f386) + _0x5b69b8[_0x289832(0x215)] + _0x289832(0x266), {
|
|
1155
|
+
'body': JSON[_0x289832(0x115)]({
|
|
1156
|
+
..._0x427c77,
|
|
1157
|
+
'idempotency_key': _0x2a480f(_0x289832(0xfd), _0x427c77)
|
|
1146
1158
|
}),
|
|
1147
|
-
'headers':
|
|
1148
|
-
'method':
|
|
1159
|
+
'headers': _0x186643,
|
|
1160
|
+
'method': _0x289832(0x205)
|
|
1149
1161
|
});
|
|
1150
1162
|
},
|
|
1151
|
-
async 'unclaimTask'(
|
|
1152
|
-
const
|
|
1153
|
-
return
|
|
1154
|
-
'body': JSON[
|
|
1155
|
-
...
|
|
1156
|
-
'idempotency_key':
|
|
1163
|
+
async 'unclaimTask'(_0x158846) {
|
|
1164
|
+
const _0x14d020 = _0x12276d;
|
|
1165
|
+
return _0x58be69(_0x14d020(_0x1955a5._0x1284a7) + _0x5b69b8['agentId'] + _0x14d020(_0x1955a5._0x45d66d), {
|
|
1166
|
+
'body': JSON[_0x14d020(_0x1955a5._0x4dff3c)]({
|
|
1167
|
+
..._0x158846,
|
|
1168
|
+
'idempotency_key': _0x2a480f('unclaim_task', _0x158846)
|
|
1157
1169
|
}),
|
|
1158
|
-
'headers':
|
|
1159
|
-
'method':
|
|
1170
|
+
'headers': _0x186643,
|
|
1171
|
+
'method': _0x14d020(_0x1955a5._0x1f4f2e)
|
|
1160
1172
|
});
|
|
1161
1173
|
},
|
|
1162
|
-
async 'updateTaskStatus'(
|
|
1163
|
-
const
|
|
1164
|
-
return
|
|
1165
|
-
'body': JSON[
|
|
1166
|
-
...
|
|
1167
|
-
'idempotency_key':
|
|
1174
|
+
async 'updateTaskStatus'(_0x3cd00b) {
|
|
1175
|
+
const _0x3be15f = _0x12276d;
|
|
1176
|
+
return _0x58be69(_0x3be15f(0x16f) + _0x5b69b8[_0x3be15f(0x215)] + _0x3be15f(_0x3e46a8._0x3d327c), {
|
|
1177
|
+
'body': JSON[_0x3be15f(_0x3e46a8._0x480100)]({
|
|
1178
|
+
..._0x3cd00b,
|
|
1179
|
+
'idempotency_key': _0x2a480f(_0x3be15f(_0x3e46a8._0x58dccf), _0x3cd00b)
|
|
1168
1180
|
}),
|
|
1169
|
-
'headers':
|
|
1170
|
-
'method':
|
|
1181
|
+
'headers': _0x186643,
|
|
1182
|
+
'method': 'POST'
|
|
1171
1183
|
});
|
|
1172
1184
|
},
|
|
1173
|
-
async 'uploadFile'(
|
|
1174
|
-
const
|
|
1175
|
-
if (
|
|
1176
|
-
throw new Error(
|
|
1177
|
-
const
|
|
1178
|
-
'body': JSON[
|
|
1179
|
-
'channel':
|
|
1180
|
-
'contentBase64':
|
|
1181
|
-
'contentType':
|
|
1182
|
-
'originalFilename':
|
|
1185
|
+
async 'uploadFile'(_0x483f99) {
|
|
1186
|
+
const _0xc91ea2 = _0x12276d, _0x1e72b6 = await _0x230320(_0x483f99[_0xc91ea2(0x26f)]);
|
|
1187
|
+
if (_0x1e72b6['threadId'])
|
|
1188
|
+
throw new Error(_0xc91ea2(_0x3c5c8e._0xb36b04));
|
|
1189
|
+
const _0x5c44aa = await _0x5319c9(_0xc91ea2(0x16f) + _0x5b69b8[_0xc91ea2(_0x3c5c8e._0x3447f2)] + '/upload', {
|
|
1190
|
+
'body': JSON[_0xc91ea2(_0x3c5c8e._0x113d6f)]({
|
|
1191
|
+
'channel': _0x1e72b6[_0xc91ea2(_0x3c5c8e._0x5f1de0)],
|
|
1192
|
+
'contentBase64': _0x483f99[_0xc91ea2(_0x3c5c8e._0x356261)],
|
|
1193
|
+
'contentType': _0x483f99[_0xc91ea2(_0x3c5c8e._0x560fce)],
|
|
1194
|
+
'originalFilename': _0x483f99[_0xc91ea2(_0x3c5c8e._0x1fb7a6)]
|
|
1183
1195
|
}),
|
|
1184
|
-
'headers':
|
|
1185
|
-
'method':
|
|
1196
|
+
'headers': _0x186643,
|
|
1197
|
+
'method': _0xc91ea2(_0x3c5c8e._0x11349e)
|
|
1186
1198
|
});
|
|
1187
1199
|
return {
|
|
1188
|
-
'attachmentId':
|
|
1189
|
-
'filename':
|
|
1190
|
-
'sizeBytes':
|
|
1200
|
+
'attachmentId': _0x5c44aa[_0xc91ea2(_0x3c5c8e._0x32aa6e)]?.['id'] ?? '',
|
|
1201
|
+
'filename': _0x5c44aa[_0xc91ea2(_0x3c5c8e._0x32aa6e)]?.['originalFilename'] ?? _0x483f99['filename'],
|
|
1202
|
+
'sizeBytes': _0x5c44aa[_0xc91ea2(0x193)]?.[_0xc91ea2(0x26d)] ?? 0x0
|
|
1191
1203
|
};
|
|
1192
1204
|
},
|
|
1193
|
-
async 'downloadAttachment'(
|
|
1194
|
-
const
|
|
1195
|
-
'headers':
|
|
1205
|
+
async 'downloadAttachment'(_0x2994e4) {
|
|
1206
|
+
const _0x1e570a = _0x12276d, _0x564e8b = await _0x5319c9(_0x1e570a(_0x3b5c83._0x4b6433) + _0x2994e4, {
|
|
1207
|
+
'headers': _0x186643,
|
|
1196
1208
|
'method': 'GET'
|
|
1197
|
-
}),
|
|
1209
|
+
}), _0x6c5336 = new AbortController(), _0x30a95b = setTimeout(() => _0x6c5336[_0x1e570a(0x1dc)](), _0x32b7eb);
|
|
1198
1210
|
try {
|
|
1199
|
-
const
|
|
1200
|
-
'headers':
|
|
1201
|
-
'method':
|
|
1202
|
-
'signal':
|
|
1211
|
+
const _0x387071 = await _0x14be2d(_0x3fa8d3 + _0x1e570a(_0x3b5c83._0x4b6433) + _0x2994e4 + '/content', {
|
|
1212
|
+
'headers': _0x186643,
|
|
1213
|
+
'method': _0x1e570a(_0x3b5c83._0x22c029),
|
|
1214
|
+
'signal': _0x6c5336[_0x1e570a(_0x3b5c83._0x43689c)]
|
|
1203
1215
|
});
|
|
1204
|
-
if (!
|
|
1205
|
-
throw new Error('HTTP\x20' +
|
|
1216
|
+
if (!_0x387071['ok'])
|
|
1217
|
+
throw new Error('HTTP\x20' + _0x387071[_0x1e570a(_0x3b5c83._0x40e61a)]);
|
|
1206
1218
|
return {
|
|
1207
|
-
'contentType':
|
|
1208
|
-
'data': Buffer[
|
|
1209
|
-
'originalFilename':
|
|
1219
|
+
'contentType': _0x564e8b[_0x1e570a(_0x3b5c83._0x741592)]?.[_0x1e570a(_0x3b5c83._0xb44e43)] ?? _0x387071['headers'][_0x1e570a(0x1ab)](_0x1e570a(0x166)) ?? _0x1e570a(0x1b1),
|
|
1220
|
+
'data': Buffer[_0x1e570a(0x147)](await _0x387071[_0x1e570a(0x174)]()),
|
|
1221
|
+
'originalFilename': _0x564e8b[_0x1e570a(0x193)]?.[_0x1e570a(0x100)]
|
|
1210
1222
|
};
|
|
1211
1223
|
} finally {
|
|
1212
|
-
clearTimeout(
|
|
1224
|
+
clearTimeout(_0x30a95b);
|
|
1213
1225
|
}
|
|
1214
1226
|
},
|
|
1215
1227
|
async 'listServer'() {
|
|
1216
|
-
return
|
|
1228
|
+
return _0x40c4a0({ 'forceRefresh': !![] });
|
|
1217
1229
|
},
|
|
1218
|
-
async 'readHistory'(
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1221
|
-
'after':
|
|
1222
|
-
'before':
|
|
1223
|
-
'channelId':
|
|
1224
|
-
'channelTarget':
|
|
1225
|
-
'limit':
|
|
1226
|
-
'threadId':
|
|
1230
|
+
async 'readHistory'(_0x37ded0) {
|
|
1231
|
+
const _0x2ec5b3 = _0x12276d, _0x4abdec = await _0x230320(_0x37ded0['channel']);
|
|
1232
|
+
return _0x49cd6b({
|
|
1233
|
+
'after': _0x37ded0['after'],
|
|
1234
|
+
'before': _0x37ded0[_0x2ec5b3(0x1c3)],
|
|
1235
|
+
'channelId': _0x4abdec[_0x2ec5b3(_0x4c3ff1._0x3d1794)],
|
|
1236
|
+
'channelTarget': _0x4abdec[_0x2ec5b3(_0x4c3ff1._0x192fe7)],
|
|
1237
|
+
'limit': _0x37ded0['limit'],
|
|
1238
|
+
'threadId': _0x4abdec[_0x2ec5b3(0x184)]
|
|
1227
1239
|
});
|
|
1228
1240
|
},
|
|
1229
|
-
'resolveTarget':
|
|
1241
|
+
'resolveTarget': _0x230320,
|
|
1230
1242
|
async 'checkMessages'() {
|
|
1231
|
-
const
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
])),
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
+
const _0x29bf4b = {
|
|
1244
|
+
_0x5c1c06: 0x1f9,
|
|
1245
|
+
_0x5bf04e: 0x1a1
|
|
1246
|
+
}, _0x4ef99a = _0x12276d, _0xe8fb71 = new URLSearchParams();
|
|
1247
|
+
_0xe8fb71['set'](_0x4ef99a(_0x360058._0x49c552), String(_0x1b7865));
|
|
1248
|
+
const _0x2a0fde = _0xe8fb71[_0x4ef99a(_0x360058._0x758dc9)](), _0x12e38f = await _0x5319c9('/internal/agent/' + _0x5b69b8['agentId'] + _0x4ef99a(0x1da) + (_0x2a0fde ? '?' + _0x2a0fde : ''), {
|
|
1249
|
+
'headers': _0x186643,
|
|
1250
|
+
'method': _0x4ef99a(0x127)
|
|
1251
|
+
}), _0x325000 = _0x12e38f['data'] ?? [], _0x216d26 = _0x12e38f[_0x4ef99a(0x143)]?.[_0x4ef99a(_0x360058._0x1cd084)], _0x55c5de = _0x216d26 !== void 0x0 ? Math['max'](_0x1b7865, _0x216d26) : _0x325000[_0x4ef99a(_0x360058._0x163511)] > 0x0 ? Math['max'](_0x1b7865, _0x325000[_0x325000['length'] - 0x1]['seq']) : _0x1b7865, _0x573c51 = _0x325000[_0x4ef99a(0x1ea)](_0x3c8e45 => _0x3c8e45[_0x4ef99a(0x21d)] === _0x4ef99a(0x24b)), _0x20bb30 = _0x53b1a9 === void 0x0 && _0xd3925b;
|
|
1252
|
+
let _0x49331d = await _0x40c4a0(), _0xd9c645 = new Map(_0x49331d[_0x4ef99a(_0x360058._0x3a4475)][_0x4ef99a(_0x360058._0x78db33)](_0x5aa1db => [
|
|
1253
|
+
_0x5aa1db['id'],
|
|
1254
|
+
_0x5aa1db
|
|
1255
|
+
]));
|
|
1256
|
+
const _0x4e417f = _0x573c51[_0x4ef99a(0x1a3)](_0x1f2483 => {
|
|
1257
|
+
const _0x56eebb = _0x4ef99a, _0x5170f5 = asRecord(_0x1f2483[_0x56eebb(_0x29bf4b._0x5c1c06)]), _0x70de40 = typeof _0x5170f5?.['channelId'] === _0x56eebb(0x1c1) ? _0x5170f5[_0x56eebb(_0x29bf4b._0x5bf04e)] : '';
|
|
1258
|
+
return Boolean(_0x70de40) && !_0xd9c645['has'](_0x70de40);
|
|
1259
|
+
});
|
|
1260
|
+
_0x4e417f && (_0x49331d = await _0x40c4a0({ 'forceRefresh': !![] }), _0xd9c645 = new Map(_0x49331d[_0x4ef99a(_0x360058._0x2075d0)][_0x4ef99a(0x157)](_0x4925cf => [
|
|
1261
|
+
_0x4925cf['id'],
|
|
1262
|
+
_0x4925cf
|
|
1263
|
+
])));
|
|
1264
|
+
const _0x10914 = new Map();
|
|
1265
|
+
for (const _0xb1270c of _0x573c51) {
|
|
1266
|
+
const _0x206ccf = asRecord(_0xb1270c[_0x4ef99a(0x1f9)]), _0x2f56ca = typeof _0x206ccf[_0x4ef99a(0x1a1)] === _0x4ef99a(0x1c1) ? _0x206ccf[_0x4ef99a(0x1a1)] : '';
|
|
1267
|
+
if (!_0x2f56ca)
|
|
1243
1268
|
continue;
|
|
1244
|
-
const
|
|
1269
|
+
const _0x2c08f4 = typeof _0x206ccf[_0x4ef99a(_0x360058._0x344bbb)] === _0x4ef99a(0x1c1) ? _0x206ccf[_0x4ef99a(0x184)] : void 0x0, _0x400cf5 = typeof _0x206ccf[_0x4ef99a(_0x360058._0x7b47e9)] === _0x4ef99a(0x1c1) ? _0x206ccf[_0x4ef99a(0x23a)] : void 0x0, _0x5d4ee6 = typeof _0x206ccf[_0x4ef99a(_0x360058._0x48b5f1)] === 'number' && Number[_0x4ef99a(_0x360058._0x4d2db2)](_0x206ccf[_0x4ef99a(0x1c8)]) ? _0x206ccf[_0x4ef99a(_0x360058._0x48b5f1)] : void 0x0, _0x4b333a = Boolean(_0x2c08f4 && (!_0x400cf5 || _0xb1270c['aggregateId'] !== _0x400cf5)), _0x248eb2 = _0x4b333a ? _0x2f56ca + ':' + _0x2c08f4 : _0x2f56ca, _0x3fcfc5 = _0x10914[_0x4ef99a(0x1ab)](_0x248eb2) ?? {
|
|
1245
1270
|
'aggregateIds': [],
|
|
1246
|
-
'channelId':
|
|
1271
|
+
'channelId': _0x2f56ca,
|
|
1247
1272
|
'entries': new Map(),
|
|
1248
|
-
'isThreadReply':
|
|
1249
|
-
'rootMessageId':
|
|
1250
|
-
'threadNumber':
|
|
1251
|
-
'threadId':
|
|
1273
|
+
'isThreadReply': _0x4b333a,
|
|
1274
|
+
'rootMessageId': _0x400cf5,
|
|
1275
|
+
'threadNumber': _0x5d4ee6,
|
|
1276
|
+
'threadId': _0x4b333a ? _0x2c08f4 : void 0x0
|
|
1252
1277
|
};
|
|
1253
|
-
|
|
1254
|
-
'payloadJson':
|
|
1255
|
-
'seq':
|
|
1256
|
-
}),
|
|
1278
|
+
_0x3fcfc5[_0x4ef99a(0x1c8)] == null && _0x5d4ee6 != null && (_0x3fcfc5[_0x4ef99a(0x1c8)] = _0x5d4ee6), !_0x3fcfc5['rootMessageId'] && _0x400cf5 && (_0x3fcfc5[_0x4ef99a(_0x360058._0x2bb5fa)] = _0x400cf5), _0x3fcfc5[_0x4ef99a(0x247)][_0x4ef99a(0xff)](_0xb1270c[_0x4ef99a(_0x360058._0xd18672)]), _0x3fcfc5[_0x4ef99a(_0x360058._0x1964db)][_0x4ef99a(_0x360058._0x3445f9)](_0xb1270c[_0x4ef99a(_0x360058._0xd18672)], {
|
|
1279
|
+
'payloadJson': _0xb1270c[_0x4ef99a(_0x360058._0x523aed)],
|
|
1280
|
+
'seq': _0xb1270c[_0x4ef99a(0x1fc)]
|
|
1281
|
+
}), _0x10914[_0x4ef99a(0x12b)](_0x248eb2, _0x3fcfc5);
|
|
1257
1282
|
}
|
|
1258
|
-
const
|
|
1259
|
-
for (const
|
|
1283
|
+
const _0x14b931 = [];
|
|
1284
|
+
for (const _0x1c83a4 of _0x10914['values']()) {
|
|
1260
1285
|
const {
|
|
1261
|
-
channelId:
|
|
1262
|
-
threadId:
|
|
1263
|
-
rootMessageId:
|
|
1264
|
-
threadNumber:
|
|
1265
|
-
aggregateIds:
|
|
1266
|
-
isThreadReply:
|
|
1267
|
-
entries:
|
|
1268
|
-
} =
|
|
1269
|
-
'channelTarget':
|
|
1270
|
-
'rootMessageId':
|
|
1271
|
-
'threadId':
|
|
1272
|
-
'threadNumber':
|
|
1273
|
-
},
|
|
1274
|
-
'channelId':
|
|
1275
|
-
'channelTarget':
|
|
1276
|
-
'limit': Math[
|
|
1277
|
-
'threadId':
|
|
1278
|
-
}),
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
])),
|
|
1282
|
-
for (const
|
|
1283
|
-
if (!
|
|
1286
|
+
channelId: _0x59008a,
|
|
1287
|
+
threadId: _0x668fea,
|
|
1288
|
+
rootMessageId: _0x2a228f,
|
|
1289
|
+
threadNumber: _0x519d05,
|
|
1290
|
+
aggregateIds: _0x49d506,
|
|
1291
|
+
isThreadReply: _0x3214a3,
|
|
1292
|
+
entries: _0xe6acb7
|
|
1293
|
+
} = _0x1c83a4, _0x4c4db7 = _0xd9c645[_0x4ef99a(0x1ab)](_0x59008a), _0x8298d7 = _0x4c4db7?.[_0x4ef99a(0x1a5)] ?? _0x59008a, _0x15de32 = _0x4c4db7?.['kind'] === 'dm' ? _0x4ef99a(0x18b) + _0x8298d7 : '#' + _0x8298d7, _0x3c396e = {
|
|
1294
|
+
'channelTarget': _0x15de32,
|
|
1295
|
+
'rootMessageId': _0x2a228f,
|
|
1296
|
+
'threadId': _0x668fea,
|
|
1297
|
+
'threadNumber': _0x519d05
|
|
1298
|
+
}, _0x3a8df0 = await _0x49cd6b({
|
|
1299
|
+
'channelId': _0x59008a,
|
|
1300
|
+
'channelTarget': _0x15de32,
|
|
1301
|
+
'limit': Math[_0x4ef99a(0x211)](_0x49d506[_0x4ef99a(_0x360058._0x163511)], 0x32),
|
|
1302
|
+
'threadId': _0x668fea
|
|
1303
|
+
}), _0x124892 = new Map(_0x3a8df0[_0x4ef99a(_0x360058._0x372c75)]['map'](_0x5b575d => [
|
|
1304
|
+
_0x5b575d['messageId'],
|
|
1305
|
+
_0x5b575d
|
|
1306
|
+
])), _0x3d9300 = _0x668fea ? _0x1c1b5f(_0x3c396e) : _0x15de32, _0x45cf5f = _0x53b1a9 ? _0x3214a3 && _0x1dfced(_0x53b1a9, _0x3c396e) : !![], _0x2feb3b = _0x3214a3 ? _0x45cf5f && _0x53b1a9 ? _0x53b1a9 : _0x3d9300 : _0x15de32;
|
|
1307
|
+
for (const _0x5954ce of _0x49d506) {
|
|
1308
|
+
if (!_0x45cf5f)
|
|
1284
1309
|
continue;
|
|
1285
|
-
const
|
|
1286
|
-
if (
|
|
1310
|
+
const _0x4d13ac = _0xe6acb7[_0x4ef99a(0x1ab)](_0x5954ce), _0x17eda3 = _0x4d13ac ? asRecord(_0x4d13ac[_0x4ef99a(0x1f9)]) : void 0x0, _0x4d0308 = _0x17eda3?.['taskDeliveryMode'] === _0x4ef99a(0x191);
|
|
1311
|
+
if (_0x20bb30 && _0x4d0308)
|
|
1287
1312
|
continue;
|
|
1288
|
-
const
|
|
1289
|
-
if (
|
|
1290
|
-
|
|
1291
|
-
'attachments':
|
|
1292
|
-
'content':
|
|
1293
|
-
'createdAt':
|
|
1294
|
-
'messageId':
|
|
1295
|
-
'senderName':
|
|
1296
|
-
'senderType':
|
|
1297
|
-
'target':
|
|
1298
|
-
...
|
|
1313
|
+
const _0x35be27 = _0x124892['get'](_0x5954ce);
|
|
1314
|
+
if (_0x35be27) {
|
|
1315
|
+
_0x14b931['push']({
|
|
1316
|
+
'attachments': _0x35be27[_0x4ef99a(0x12e)],
|
|
1317
|
+
'content': _0x35be27['content'],
|
|
1318
|
+
'createdAt': _0x35be27['createdAt'],
|
|
1319
|
+
'messageId': _0x35be27[_0x4ef99a(0x121)],
|
|
1320
|
+
'senderName': _0x35be27[_0x4ef99a(_0x360058._0x5b8ee0)],
|
|
1321
|
+
'senderType': _0x35be27['senderType'],
|
|
1322
|
+
'target': _0x2feb3b,
|
|
1323
|
+
..._0x4d0308 ? { 'targetedTask': !![] } : {}
|
|
1299
1324
|
});
|
|
1300
1325
|
continue;
|
|
1301
1326
|
}
|
|
1302
|
-
if (
|
|
1303
|
-
const
|
|
1304
|
-
|
|
1327
|
+
if (_0x4d13ac) {
|
|
1328
|
+
const _0x442021 = typeof _0x17eda3?.[_0x4ef99a(_0x360058._0x4cd6f3)] === 'string' ? _0x17eda3['senderParticipantId'] : '', _0x5486a3 = typeof _0x17eda3?.[_0x4ef99a(0x254)] === _0x4ef99a(_0x360058._0x28a8fe) ? _0x17eda3[_0x4ef99a(0x254)] : '';
|
|
1329
|
+
_0x442021 && _0x5486a3 && _0x14b931[_0x4ef99a(_0x360058._0x265568)]({
|
|
1305
1330
|
'attachments': [],
|
|
1306
|
-
'content':
|
|
1307
|
-
'createdAt': new Date()[
|
|
1308
|
-
'messageId':
|
|
1309
|
-
'senderName':
|
|
1310
|
-
'senderType':
|
|
1311
|
-
'target':
|
|
1312
|
-
...
|
|
1331
|
+
'content': _0x5486a3,
|
|
1332
|
+
'createdAt': new Date()[_0x4ef99a(_0x360058._0x15e3d9)](),
|
|
1333
|
+
'messageId': _0x5954ce,
|
|
1334
|
+
'senderName': _0x442021,
|
|
1335
|
+
'senderType': _0x1600b0(_0x442021, _0x49331d),
|
|
1336
|
+
'target': _0x2feb3b,
|
|
1337
|
+
..._0x4d0308 ? { 'targetedTask': !![] } : {}
|
|
1313
1338
|
});
|
|
1314
1339
|
}
|
|
1315
1340
|
}
|
|
1316
1341
|
}
|
|
1317
|
-
if (
|
|
1318
|
-
if (
|
|
1319
|
-
await
|
|
1342
|
+
if (_0x55c5de > 0x0) {
|
|
1343
|
+
if (_0x440b4f)
|
|
1344
|
+
await _0x1f0adf(_0x55c5de);
|
|
1320
1345
|
else
|
|
1321
|
-
|
|
1346
|
+
_0x236541 && await _0x45a06c(_0x55c5de);
|
|
1322
1347
|
}
|
|
1323
|
-
return
|
|
1348
|
+
return _0x55c5de > _0x1b7865 && (_0x1b7865 = _0x55c5de), { 'messages': _0x53b1a9 ? _0x14b931 : _0x20bb30 ? _0x14b931[_0x4ef99a(_0x360058._0x5977f7)](_0x46ccae => _0x46ccae[_0x4ef99a(0x24a)] !== !![]) : _0x14b931 };
|
|
1324
1349
|
}
|
|
1325
1350
|
};
|
|
1326
1351
|
}
|
|
1327
|
-
function toLocalTime(
|
|
1328
|
-
const
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
return _0xc39391;
|
|
1337
|
-
const _0x4ddda1 = _0x322576 => String(_0x322576)[_0x271e93(0x22b)](0x2, '0');
|
|
1338
|
-
return _0x1dd66f[_0x271e93(0x2c1)]() + '-' + _0x4ddda1(_0x1dd66f[_0x271e93(_0x4c19d0._0x1004c0)]() + 0x1) + '-' + _0x4ddda1(_0x1dd66f[_0x271e93(_0x4c19d0._0x3b80b8)]()) + '\x20' + _0x4ddda1(_0x1dd66f[_0x271e93(_0x4c19d0._0x4d5d7f)]()) + ':' + _0x4ddda1(_0x1dd66f['getMinutes']()) + ':' + _0x4ddda1(_0x1dd66f[_0x271e93(_0x4c19d0._0x3d314f)]());
|
|
1352
|
+
function toLocalTime(_0xcfc290) {
|
|
1353
|
+
const _0x276296 = {
|
|
1354
|
+
_0x4fedfb: 0x1f6,
|
|
1355
|
+
_0x1d2181: 0x1bf
|
|
1356
|
+
}, _0xaa8b50 = _0x6aa24e, _0x56c5ab = new Date(_0xcfc290);
|
|
1357
|
+
if (Number['isNaN'](_0x56c5ab['getTime']()))
|
|
1358
|
+
return _0xcfc290;
|
|
1359
|
+
const _0x3ecc84 = _0xfe024b => String(_0xfe024b)[_0xaa8b50(0x22e)](0x2, '0');
|
|
1360
|
+
return _0x56c5ab[_0xaa8b50(_0x276296._0x4fedfb)]() + '-' + _0x3ecc84(_0x56c5ab[_0xaa8b50(0x1b4)]() + 0x1) + '-' + _0x3ecc84(_0x56c5ab['getDate']()) + '\x20' + _0x3ecc84(_0x56c5ab['getHours']()) + ':' + _0x3ecc84(_0x56c5ab['getMinutes']()) + ':' + _0x3ecc84(_0x56c5ab[_0xaa8b50(_0x276296._0x1d2181)]());
|
|
1339
1361
|
}
|
|
1340
|
-
function formatAttachmentSuffix(
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1362
|
+
function formatAttachmentSuffix(_0x3e8bba) {
|
|
1363
|
+
const _0x189387 = {
|
|
1364
|
+
_0x1ebcb0: 0x1a6,
|
|
1365
|
+
_0x118bf6: 0x1a6,
|
|
1366
|
+
_0x106e17: 0x157,
|
|
1367
|
+
_0x106c6c: 0x13c
|
|
1368
|
+
}, _0x3d3aad = _0x6aa24e;
|
|
1369
|
+
if (!_0x3e8bba || _0x3e8bba[_0x3d3aad(_0x189387._0x1ebcb0)] === 0x0)
|
|
1343
1370
|
return '';
|
|
1344
|
-
return '\x20[' +
|
|
1371
|
+
return '\x20[' + _0x3e8bba[_0x3d3aad(_0x189387._0x118bf6)] + '\x20attachment' + (_0x3e8bba['length'] > 0x1 ? 's' : '') + ':\x20' + _0x3e8bba[_0x3d3aad(_0x189387._0x106e17)](_0xbb1c6a => _0xbb1c6a['filename'] + _0x3d3aad(0x1a4) + _0xbb1c6a['id'] + ')')[_0x3d3aad(_0x189387._0x106c6c)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1345
1372
|
}
|
|
1346
|
-
function formatCheckMessages(
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
return _0x40e589[_0x3adbf8(0x1cc)](_0x2586b5 => {
|
|
1361
|
-
const _0x4e9ff0 = _0x3adbf8, _0xb8d04a = _0x2586b5['senderType'] === _0x4e9ff0(_0x335e75._0x4e6a50) ? _0x4e9ff0(_0x335e75._0x37948c) : '';
|
|
1362
|
-
return _0x4e9ff0(0x157) + _0x2586b5[_0x4e9ff0(0x15b)] + _0x4e9ff0(0x212) + _0x2586b5[_0x4e9ff0(_0x335e75._0x24ad6a)][_0x4e9ff0(_0x335e75._0x1c7721)](0x0, 0x8) + _0x4e9ff0(0x222) + toLocalTime(_0x2586b5['createdAt']) + _0xb8d04a + ']\x20@' + _0x2586b5[_0x4e9ff0(_0x335e75._0x271263)] + ':\x20' + _0x2586b5[_0x4e9ff0(_0x335e75._0x5d60e7)] + formatAttachmentSuffix(_0x2586b5[_0x4e9ff0(0x163)]);
|
|
1363
|
-
})[_0x3adbf8(_0x855ab7._0x47e8e5)]('\x0a');
|
|
1373
|
+
function formatCheckMessages(_0x46b979) {
|
|
1374
|
+
const _0x1f4a2e = {
|
|
1375
|
+
_0x3ac135: 0x22d,
|
|
1376
|
+
_0x22b8b0: 0x121,
|
|
1377
|
+
_0x41bee4: 0x239,
|
|
1378
|
+
_0x142e9a: 0x262,
|
|
1379
|
+
_0x444fac: 0x200
|
|
1380
|
+
}, _0x90b4f3 = _0x6aa24e;
|
|
1381
|
+
if (_0x46b979[_0x90b4f3(0x1a6)] === 0x0)
|
|
1382
|
+
return 'No\x20new\x20messages.';
|
|
1383
|
+
return _0x46b979[_0x90b4f3(0x157)](_0x3c9c85 => {
|
|
1384
|
+
const _0x18a385 = _0x90b4f3, _0x1f16c5 = _0x3c9c85[_0x18a385(0x1c2)] === _0x18a385(0x248) ? _0x18a385(0x217) : '';
|
|
1385
|
+
return _0x18a385(_0x1f4a2e._0x3ac135) + _0x3c9c85[_0x18a385(0x17a)] + _0x18a385(0x222) + _0x3c9c85[_0x18a385(_0x1f4a2e._0x22b8b0)]['slice'](0x0, 0x8) + _0x18a385(_0x1f4a2e._0x41bee4) + toLocalTime(_0x3c9c85[_0x18a385(_0x1f4a2e._0x142e9a)]) + _0x1f16c5 + ']\x20@' + _0x3c9c85[_0x18a385(0x16b)] + ':\x20' + _0x3c9c85[_0x18a385(_0x1f4a2e._0x444fac)] + formatAttachmentSuffix(_0x3c9c85['attachments']);
|
|
1386
|
+
})[_0x90b4f3(0x13c)]('\x0a');
|
|
1364
1387
|
}
|
|
1365
|
-
function formatHistory(
|
|
1366
|
-
const
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
},
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
}, _0x2759c9 = _0x48b8fe;
|
|
1385
|
-
if (_0x1ff15f[_0x2759c9(_0x5414ad._0x3436b2)][_0x2759c9(_0x5414ad._0x103f15)] === 0x0)
|
|
1386
|
-
return _0x2759c9(0x1b6) + _0x1ff15f[_0x2759c9(0x160)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1387
|
-
const _0x4e4b6b = _0x1ff15f[_0x2759c9(_0x5414ad._0x3436b2)][_0x2759c9(0x1cc)](_0x1e9f8a => {
|
|
1388
|
-
const _0x1d0601 = _0x2759c9, _0x1b77cd = _0x1e9f8a[_0x1d0601(0x22d)] === _0x1d0601(0x1b0) ? _0x1d0601(_0x3ced6c._0x21a08f) : '';
|
|
1389
|
-
return _0x1d0601(_0x3ced6c._0x142971) + _0x1e9f8a[_0x1d0601(_0x3ced6c._0x56fd52)] + _0x1d0601(0x212) + _0x1e9f8a[_0x1d0601(0x1e9)] + _0x1d0601(_0x3ced6c._0xde11be) + toLocalTime(_0x1e9f8a[_0x1d0601(_0x3ced6c._0x3b1963)]) + _0x1b77cd + _0x1d0601(0x285) + _0x1e9f8a[_0x1d0601(_0x3ced6c._0x1e59c5)] + ':\x20' + _0x1e9f8a[_0x1d0601(_0x3ced6c._0x420508)] + formatAttachmentSuffix(_0x1e9f8a['attachments']);
|
|
1390
|
-
})[_0x2759c9(_0x5414ad._0x5648f2)]('\x0a'), _0x138882 = _0x1ff15f[_0x2759c9(_0x5414ad._0x2aa556)] && _0x1ff15f[_0x2759c9(0x15f)] ? _0x2759c9(_0x5414ad._0x49816a) + _0x1ff15f[_0x2759c9(_0x5414ad._0x3436b2)][_0x2759c9(_0x5414ad._0x103f15)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x1ff15f[_0x2759c9(0x15f)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1391
|
-
return _0x2759c9(_0x5414ad._0x2061fd) + _0x1ff15f[_0x2759c9(_0x5414ad._0x4b08f9)] + '\x20(' + _0x1ff15f[_0x2759c9(_0x5414ad._0x2f8c13)][_0x2759c9(_0x5414ad._0x103f15)] + _0x2759c9(_0x5414ad._0x403751) + _0x4e4b6b + _0x138882;
|
|
1388
|
+
function formatHistory(_0x4604fa) {
|
|
1389
|
+
const _0x2b41d0 = {
|
|
1390
|
+
_0x2460ed: 0x1a6,
|
|
1391
|
+
_0x518b0a: 0x25d,
|
|
1392
|
+
_0x1369c9: 0x157,
|
|
1393
|
+
_0x30cf49: 0x206
|
|
1394
|
+
}, _0x4dcfa8 = {
|
|
1395
|
+
_0x37e4a4: 0x248,
|
|
1396
|
+
_0x52ce19: 0x1fc,
|
|
1397
|
+
_0x8dc5ea: 0x268,
|
|
1398
|
+
_0x4c40b9: 0x16b
|
|
1399
|
+
}, _0x2f9ea3 = _0x6aa24e;
|
|
1400
|
+
if (_0x4604fa[_0x2f9ea3(0x206)][_0x2f9ea3(_0x2b41d0._0x2460ed)] === 0x0)
|
|
1401
|
+
return _0x2f9ea3(_0x2b41d0._0x518b0a) + _0x4604fa[_0x2f9ea3(0x26f)] + _0x2f9ea3(0x25a);
|
|
1402
|
+
const _0x125181 = _0x4604fa['messages'][_0x2f9ea3(_0x2b41d0._0x1369c9)](_0x15226a => {
|
|
1403
|
+
const _0xf9d299 = _0x2f9ea3, _0x5bda36 = _0x15226a['senderType'] === _0xf9d299(_0x4dcfa8._0x37e4a4) ? '\x20type=agent' : '';
|
|
1404
|
+
return _0xf9d299(0x126) + _0x15226a[_0xf9d299(_0x4dcfa8._0x52ce19)] + _0xf9d299(0x222) + _0x15226a['messageId'] + _0xf9d299(0x239) + toLocalTime(_0x15226a[_0xf9d299(0x262)]) + _0x5bda36 + _0xf9d299(_0x4dcfa8._0x8dc5ea) + _0x15226a[_0xf9d299(_0x4dcfa8._0x4c40b9)] + ':\x20' + _0x15226a[_0xf9d299(0x200)] + formatAttachmentSuffix(_0x15226a['attachments']);
|
|
1405
|
+
})['join']('\x0a'), _0x645790 = _0x4604fa[_0x2f9ea3(0x1ad)] && _0x4604fa[_0x2f9ea3(0x110)] ? '\x0a\x0a---\x20' + _0x4604fa[_0x2f9ea3(_0x2b41d0._0x30cf49)][_0x2f9ea3(_0x2b41d0._0x2460ed)] + _0x2f9ea3(0x14b) + _0x4604fa[_0x2f9ea3(0x110)] + _0x2f9ea3(0x1b0) : '';
|
|
1406
|
+
return _0x2f9ea3(_0x2b41d0._0x518b0a) + _0x4604fa[_0x2f9ea3(0x26f)] + '\x20(' + _0x4604fa[_0x2f9ea3(_0x2b41d0._0x30cf49)][_0x2f9ea3(_0x2b41d0._0x2460ed)] + _0x2f9ea3(0x275) + _0x125181 + _0x645790;
|
|
1392
1407
|
}
|
|
1393
|
-
function formatServerDirectory(
|
|
1394
|
-
const
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
}, _0x610511 = _0x48b8fe, _0x5c0527 = _0x3c106c['channels'][_0x610511(_0x22806d._0x4a70c5)] > 0x0 ? _0x3c106c['channels']['map'](_0x55d500 => _0x55d500[_0x610511(0x1e2)] ? _0x610511(0x1db) + _0x55d500[_0x610511(0x231)] + _0x610511(0x2bc) + _0x55d500[_0x610511(0x1e2)] : _0x610511(0x1db) + _0x55d500[_0x610511(0x231)])[_0x610511(0x159)]('\x0a') : _0x610511(_0x22806d._0x3e356a), _0x155c86 = _0x3c106c['agents']['length'] > 0x0 ? _0x3c106c[_0x610511(0x253)][_0x610511(_0x22806d._0x3c27ef)](_0x15c1af => _0x610511(0x275) + _0x15c1af[_0x610511(0x231)])['join']('\x0a') : _0x610511(_0x22806d._0x5adf82), _0x1b6e70 = _0x3c106c[_0x610511(0x217)][_0x610511(0x291)] > 0x0 ? _0x3c106c['humans'][_0x610511(_0x22806d._0x3c27ef)](_0x208baa => '-\x20@' + _0x208baa[_0x610511(0x231)])[_0x610511(_0x22806d._0x4344b5)]('\x0a') : _0x610511(0x193);
|
|
1408
|
+
function formatServerDirectory(_0x5eb1ec) {
|
|
1409
|
+
const _0x5b5f0e = {
|
|
1410
|
+
_0x147474: 0x1a6,
|
|
1411
|
+
_0x291b3d: 0x278,
|
|
1412
|
+
_0x17e13d: 0x157,
|
|
1413
|
+
_0x22b3f5: 0x276,
|
|
1414
|
+
_0x2d16b4: 0x1ec,
|
|
1415
|
+
_0x1cd7f2: 0x23b
|
|
1416
|
+
}, _0x58e22e = _0x6aa24e, _0x3c9f95 = _0x5eb1ec['channels'][_0x58e22e(_0x5b5f0e._0x147474)] > 0x0 ? _0x5eb1ec['channels'][_0x58e22e(0x157)](_0x7117d => _0x7117d[_0x58e22e(0x17c)] ? '-\x20#' + _0x7117d['name'] + _0x58e22e(0x277) + _0x7117d['description'] : _0x58e22e(0x17e) + _0x7117d['name'])[_0x58e22e(0x13c)]('\x0a') : '(none)', _0x49d971 = _0x5eb1ec['agents']['length'] > 0x0 ? _0x5eb1ec[_0x58e22e(_0x5b5f0e._0x291b3d)][_0x58e22e(_0x5b5f0e._0x17e13d)](_0x271a89 => _0x58e22e(0x1f2) + _0x271a89[_0x58e22e(0x1a5)])[_0x58e22e(0x13c)]('\x0a') : _0x58e22e(_0x5b5f0e._0x22b3f5), _0x4ad901 = _0x5eb1ec[_0x58e22e(_0x5b5f0e._0x2d16b4)]['length'] > 0x0 ? _0x5eb1ec[_0x58e22e(_0x5b5f0e._0x2d16b4)][_0x58e22e(0x157)](_0x5ab46d => _0x58e22e(0x1f2) + _0x5ab46d['name'])[_0x58e22e(0x13c)]('\x0a') : '(none)';
|
|
1403
1417
|
return [
|
|
1404
|
-
'##\x20Server:\x20' +
|
|
1418
|
+
'##\x20Server:\x20' + _0x5eb1ec[_0x58e22e(0x1ef)],
|
|
1405
1419
|
'',
|
|
1406
|
-
|
|
1407
|
-
|
|
1420
|
+
_0x58e22e(_0x5b5f0e._0x1cd7f2),
|
|
1421
|
+
_0x3c9f95,
|
|
1408
1422
|
'',
|
|
1409
|
-
|
|
1410
|
-
|
|
1423
|
+
_0x58e22e(0x11e),
|
|
1424
|
+
_0x49d971,
|
|
1411
1425
|
'',
|
|
1412
|
-
|
|
1413
|
-
|
|
1426
|
+
_0x58e22e(0x250),
|
|
1427
|
+
_0x4ad901
|
|
1414
1428
|
]['join']('\x0a');
|
|
1415
1429
|
}
|
|
1416
|
-
function formatUploadResult(
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1430
|
+
function formatUploadResult(_0x4b2d24) {
|
|
1431
|
+
const _0x3ca3b3 = {
|
|
1432
|
+
_0x23dc29: 0x1db,
|
|
1433
|
+
_0x4a2c9b: 0x1de,
|
|
1434
|
+
_0x582cc6: 0x1e0,
|
|
1435
|
+
_0x27ea0d: 0x208
|
|
1436
|
+
}, _0x581fce = _0x6aa24e;
|
|
1437
|
+
return _0x581fce(_0x3ca3b3._0x23dc29) + _0x4b2d24[_0x581fce(_0x3ca3b3._0x4a2c9b)] + '\x20(' + (_0x4b2d24[_0x581fce(0x26d)] / 0x400)[_0x581fce(_0x3ca3b3._0x582cc6)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x4b2d24[_0x581fce(_0x3ca3b3._0x27ea0d)] + _0x581fce(0x138);
|
|
1422
1438
|
}
|
|
1423
|
-
function formatViewFileResult(
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1439
|
+
function formatViewFileResult(_0x74c917, _0x2ed218) {
|
|
1440
|
+
const _0x2a4f16 = { _0x54afcf: 0x14f }, _0x32f7ef = _0x6aa24e;
|
|
1441
|
+
return _0x2ed218 ? _0x32f7ef(0x228) + _0x74c917 : _0x32f7ef(_0x2a4f16._0x54afcf) + _0x74c917;
|
|
1426
1442
|
}
|
|
1427
|
-
function formatTaskList(
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
_0x312ae8: 0x258
|
|
1436
|
-
}, _0x4feedf = _0x48b8fe;
|
|
1437
|
-
if (_0x4cfea7[_0x4feedf(0x291)] === 0x0)
|
|
1438
|
-
return _0x4feedf(0x1f1);
|
|
1439
|
-
return _0x4cfea7[_0x4feedf(_0x6dd38c._0x21f421)](_0xc737dd => {
|
|
1440
|
-
const _0x4405b9 = _0x4feedf, _0x349eed = _0xc737dd[_0x4405b9(_0x2febd9._0x3e7702)] == null ? '(legacy)' : '#' + _0xc737dd[_0x4405b9(_0x2febd9._0x28d41a)], _0x1dfed4 = _0xc737dd[_0x4405b9(_0x2febd9._0x4a322f)] ? '\x20message=' + _0xc737dd[_0x4405b9(0x1e9)] : '', _0x4999ca = _0x43a6ce && _0xc737dd[_0x4405b9(_0x2febd9._0x312ae8)] != null && _0x43a6ce[_0x4405b9(0x1a3)](_0xc737dd['taskNumber']) ? '\x20executionMode=worker' : '';
|
|
1441
|
-
return _0x349eed + '\x20[' + _0xc737dd['status'] + ']\x20' + _0xc737dd[_0x4405b9(0x221)] + _0x1dfed4 + _0x4999ca;
|
|
1442
|
-
})[_0x4feedf(_0x6dd38c._0x22eb3e)]('\x0a');
|
|
1443
|
+
function formatTaskList(_0x2a57fe, _0x310989) {
|
|
1444
|
+
const _0x5d4df4 = { _0x26efe7: 0x18f }, _0x50aecc = _0x6aa24e;
|
|
1445
|
+
if (_0x2a57fe[_0x50aecc(0x1a6)] === 0x0)
|
|
1446
|
+
return _0x50aecc(0x14d);
|
|
1447
|
+
return _0x2a57fe['map'](_0x402721 => {
|
|
1448
|
+
const _0x2c3bc9 = _0x50aecc, _0x33e6a4 = _0x402721[_0x2c3bc9(0x261)] == null ? _0x2c3bc9(0x25f) : '#' + _0x402721[_0x2c3bc9(0x261)], _0x54e745 = _0x402721['messageId'] ? _0x2c3bc9(0x213) + _0x402721['messageId'] : '', _0x9a3715 = _0x310989 && _0x402721[_0x2c3bc9(0x261)] != null && _0x310989[_0x2c3bc9(_0x5d4df4._0x26efe7)](_0x402721[_0x2c3bc9(0x261)]) ? _0x2c3bc9(0x104) : '';
|
|
1449
|
+
return _0x33e6a4 + '\x20[' + _0x402721[_0x2c3bc9(0x249)] + ']\x20' + _0x402721[_0x2c3bc9(0x219)] + _0x54e745 + _0x9a3715;
|
|
1450
|
+
})['join']('\x0a');
|
|
1443
1451
|
}
|
|
1444
|
-
function formatCreatedTasks(
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
},
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
return _0x1a011c[_0x37479d(_0x418de9._0x339ab6)](_0x5dd876 => {
|
|
1456
|
-
const _0x3ef91c = _0x37479d, _0x4c097b = _0x5dd876[_0x3ef91c(_0x4c4833._0xc2279d)] == null ? _0x3ef91c(_0x4c4833._0xda9b45) : '#' + _0x5dd876[_0x3ef91c(_0x4c4833._0xc2279d)];
|
|
1457
|
-
return _0x4c097b + '\x20' + _0x5dd876['title'] + _0x3ef91c(_0x4c4833._0x41ca11) + _0x5dd876['messageId'];
|
|
1458
|
-
})[_0x37479d(0x159)]('\x0a');
|
|
1452
|
+
function formatCreatedTasks(_0xf6e6b5) {
|
|
1453
|
+
const _0x48d79d = {
|
|
1454
|
+
_0x267329: 0x216,
|
|
1455
|
+
_0x382bf9: 0x157
|
|
1456
|
+
}, _0x342107 = _0x6aa24e;
|
|
1457
|
+
if (_0xf6e6b5[_0x342107(0x1a6)] === 0x0)
|
|
1458
|
+
return _0x342107(_0x48d79d._0x267329);
|
|
1459
|
+
return _0xf6e6b5[_0x342107(_0x48d79d._0x382bf9)](_0x16f82e => {
|
|
1460
|
+
const _0x21a54f = _0x342107, _0x139a4b = _0x16f82e['taskNumber'] == null ? _0x21a54f(0x25f) : '#' + _0x16f82e[_0x21a54f(0x261)];
|
|
1461
|
+
return _0x139a4b + '\x20' + _0x16f82e[_0x21a54f(0x219)] + '\x20message=' + _0x16f82e[_0x21a54f(0x121)];
|
|
1462
|
+
})['join']('\x0a');
|
|
1459
1463
|
}
|
|
1460
|
-
function formatClaimTaskResults(
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
'
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
_0x330ebe[_0x1c3250(_0x4c40e4._0x3c9514)] ? 'workerDisposition=' + _0x330ebe[_0x1c3250(_0x4c40e4._0x27e885)] : null
|
|
1489
|
-
][_0x1c3250(0x22f)](Boolean)[_0x1c3250(0x159)]('\x20') : _0x330ebe[_0x1c3250(0x1c3)] ? _0x1c3250(0x25b) + _0x330ebe[_0x1c3250(0x1c3)] : '';
|
|
1464
|
+
function formatClaimTaskResults(_0x2bc82f) {
|
|
1465
|
+
const _0x26143e = {
|
|
1466
|
+
_0x56c4cc: 0x235,
|
|
1467
|
+
_0x7df2e9: 0x261,
|
|
1468
|
+
_0x47c853: 0x121,
|
|
1469
|
+
_0x4d0980: 0x121,
|
|
1470
|
+
_0x137d40: 0x118,
|
|
1471
|
+
_0x89bab5: 0x192,
|
|
1472
|
+
_0x313382: 0x272,
|
|
1473
|
+
_0xa4a67: 0x11f,
|
|
1474
|
+
_0x1d4c2d: 0x227,
|
|
1475
|
+
_0x456cd8: 0x13c,
|
|
1476
|
+
_0x101f73: 0x1c0,
|
|
1477
|
+
_0x483388: 0x261,
|
|
1478
|
+
_0x56946d: 0x187
|
|
1479
|
+
}, _0x1533f2 = _0x6aa24e;
|
|
1480
|
+
if (_0x2bc82f[_0x1533f2(0x1a6)] === 0x0)
|
|
1481
|
+
return 'No\x20tasks\x20claimed.';
|
|
1482
|
+
return _0x2bc82f['map'](_0x34c36f => {
|
|
1483
|
+
const _0x2a1fba = _0x1533f2;
|
|
1484
|
+
if (_0x34c36f[_0x2a1fba(_0x26143e._0x56c4cc)]) {
|
|
1485
|
+
const _0x4c82d2 = _0x34c36f[_0x2a1fba(_0x26143e._0x7df2e9)] == null ? _0x2a1fba(0x25f) : '#' + _0x34c36f['taskNumber'], _0x3cd1bb = _0x34c36f[_0x2a1fba(_0x26143e._0x47c853)] ? '\x20message=' + _0x34c36f[_0x2a1fba(_0x26143e._0x4d0980)] : '', _0x560d3e = _0x34c36f['workerHandoff'] ? [
|
|
1486
|
+
_0x2a1fba(_0x26143e._0x137d40),
|
|
1487
|
+
_0x34c36f['stopMain'] ? _0x2a1fba(_0x26143e._0x89bab5) : null,
|
|
1488
|
+
_0x34c36f['executionMode'] ? _0x2a1fba(_0x26143e._0x313382) + _0x34c36f[_0x2a1fba(0x237)] : null,
|
|
1489
|
+
_0x34c36f['threadTarget'] ? _0x2a1fba(0x236) + _0x34c36f[_0x2a1fba(_0x26143e._0xa4a67)] : null,
|
|
1490
|
+
_0x34c36f['workerDisposition'] ? 'workerDisposition=' + _0x34c36f[_0x2a1fba(_0x26143e._0x1d4c2d)] : null
|
|
1491
|
+
]['filter'](Boolean)[_0x2a1fba(_0x26143e._0x456cd8)]('\x20') : _0x34c36f[_0x2a1fba(_0x26143e._0x101f73)] ? _0x2a1fba(0x162) + _0x34c36f[_0x2a1fba(0x1c0)] : '';
|
|
1490
1492
|
return [
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
][
|
|
1493
|
+
_0x4c82d2 + _0x2a1fba(0x18e) + _0x3cd1bb,
|
|
1494
|
+
_0x560d3e
|
|
1495
|
+
]['filter'](Boolean)[_0x2a1fba(0x13c)]('\x20');
|
|
1494
1496
|
}
|
|
1495
|
-
const
|
|
1496
|
-
return
|
|
1497
|
-
})[
|
|
1497
|
+
const _0x9fcd19 = _0x34c36f[_0x2a1fba(_0x26143e._0x7df2e9)] == null ? _0x34c36f['messageId'] ?? '(unknown)' : '#' + _0x34c36f[_0x2a1fba(_0x26143e._0x483388)];
|
|
1498
|
+
return _0x9fcd19 + _0x2a1fba(0x1fb) + (_0x34c36f[_0x2a1fba(0x179)] ?? _0x2a1fba(_0x26143e._0x56946d));
|
|
1499
|
+
})['join']('\x0a');
|
|
1498
1500
|
}
|
|
1499
|
-
function formatUnclaimTaskResult(
|
|
1500
|
-
const
|
|
1501
|
-
|
|
1502
|
-
_0x411195: 0x290,
|
|
1503
|
-
_0x88ce28: 0x25a,
|
|
1504
|
-
_0x4b56d8: 0x269
|
|
1505
|
-
}, _0x4c47d6 = _0x48b8fe, _0x5158bd = _0x187c91[_0x4c47d6(_0x427bc1._0xd5a3d7)] == null ? _0x4c47d6(_0x427bc1._0x411195) : '#' + _0x187c91['taskNumber'];
|
|
1506
|
-
return _0x5158bd + _0x4c47d6(_0x427bc1._0x88ce28) + _0x187c91[_0x4c47d6(_0x427bc1._0x4b56d8)];
|
|
1501
|
+
function formatUnclaimTaskResult(_0x4a3a68) {
|
|
1502
|
+
const _0x1533f0 = _0x6aa24e, _0x47210e = _0x4a3a68['taskNumber'] == null ? _0x1533f0(0x25f) : '#' + _0x4a3a68[_0x1533f0(0x261)];
|
|
1503
|
+
return _0x47210e + '\x20status=' + _0x4a3a68['status'];
|
|
1507
1504
|
}
|
|
1508
|
-
function formatUpdateTaskStatusResult(
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1511
|
-
_0x120f6e: 0x25a
|
|
1512
|
-
}, _0x11fcf3 = _0x48b8fe, _0x5af0a7 = _0x29e63a[_0x11fcf3(_0x138e25._0x2439f9)] == null ? _0x11fcf3(0x290) : '#' + _0x29e63a[_0x11fcf3(0x258)];
|
|
1513
|
-
return _0x5af0a7 + _0x11fcf3(_0x138e25._0x120f6e) + _0x29e63a[_0x11fcf3(0x269)];
|
|
1505
|
+
function formatUpdateTaskStatusResult(_0x49b858) {
|
|
1506
|
+
const _0x38f8b9 = { _0xf07e6a: 0x261 }, _0x381a23 = _0x6aa24e, _0x3838f2 = _0x49b858[_0x381a23(0x261)] == null ? '(legacy)' : '#' + _0x49b858[_0x381a23(_0x38f8b9._0xf07e6a)];
|
|
1507
|
+
return _0x3838f2 + '\x20status=' + _0x49b858[_0x381a23(0x249)];
|
|
1514
1508
|
}
|
|
1515
1509
|
function getChatBridgeToolDefinitions() {
|
|
1516
|
-
const
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1510
|
+
const _0x414ec3 = {
|
|
1511
|
+
_0x18ef47: 0x21f,
|
|
1512
|
+
_0x1a1864: 0x13a,
|
|
1513
|
+
_0xbcdd82: 0x151,
|
|
1514
|
+
_0x49a06e: 0x1c5
|
|
1515
|
+
}, _0x30167d = _0x6aa24e;
|
|
1520
1516
|
return [
|
|
1521
|
-
{ 'name':
|
|
1522
|
-
{ 'name':
|
|
1523
|
-
{ 'name':
|
|
1524
|
-
{ 'name':
|
|
1525
|
-
{ 'name':
|
|
1526
|
-
{ 'name':
|
|
1527
|
-
{ 'name':
|
|
1528
|
-
{ 'name':
|
|
1529
|
-
{ 'name':
|
|
1530
|
-
{ 'name':
|
|
1531
|
-
{ 'name':
|
|
1532
|
-
{ 'name':
|
|
1517
|
+
{ 'name': _0x30167d(_0x414ec3._0x18ef47) },
|
|
1518
|
+
{ 'name': _0x30167d(_0x414ec3._0x1a1864) },
|
|
1519
|
+
{ 'name': _0x30167d(0x1a8) },
|
|
1520
|
+
{ 'name': _0x30167d(0x1ae) },
|
|
1521
|
+
{ 'name': _0x30167d(0x21a) },
|
|
1522
|
+
{ 'name': _0x30167d(0x221) },
|
|
1523
|
+
{ 'name': _0x30167d(_0x414ec3._0xbcdd82) },
|
|
1524
|
+
{ 'name': _0x30167d(0x173) },
|
|
1525
|
+
{ 'name': _0x30167d(0xfd) },
|
|
1526
|
+
{ 'name': _0x30167d(0x112) },
|
|
1527
|
+
{ 'name': _0x30167d(0x255) },
|
|
1528
|
+
{ 'name': _0x30167d(0x209) },
|
|
1533
1529
|
{ 'name': 'get_worker_result' },
|
|
1534
1530
|
{ 'name': 'finish_worker' },
|
|
1535
|
-
{ 'name':
|
|
1536
|
-
{ 'name':
|
|
1531
|
+
{ 'name': _0x30167d(0x123) },
|
|
1532
|
+
{ 'name': _0x30167d(_0x414ec3._0x49a06e) }
|
|
1537
1533
|
];
|
|
1538
1534
|
}
|
|
1539
|
-
function createChatBridgeHandlers(
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
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
|
-
_0x490a2f: 0x1e9,
|
|
1653
|
-
_0x173622: 0x2c4,
|
|
1654
|
-
_0x4d8237: 0x222,
|
|
1655
|
-
_0x18f909: 0x2cc,
|
|
1656
|
-
_0x46ae9b: 0x18f,
|
|
1657
|
-
_0x3f8cc4: 0x1aa,
|
|
1658
|
-
_0x5ef2c5: 0x1a0,
|
|
1659
|
-
_0x4a20fb: 0x214,
|
|
1660
|
-
_0xe1367f: 0x258,
|
|
1661
|
-
_0x30541f: 0x293,
|
|
1662
|
-
_0x40f5f6: 0x1d0,
|
|
1663
|
-
_0x4c0f8f: 0x288,
|
|
1664
|
-
_0x27381e: 0x1ec
|
|
1535
|
+
function createChatBridgeHandlers(_0x3dc6c3) {
|
|
1536
|
+
const _0x9abc5d = {
|
|
1537
|
+
_0x54b1e0: 0x153,
|
|
1538
|
+
_0x490a17: 0x136,
|
|
1539
|
+
_0x4eab87: 0x160,
|
|
1540
|
+
_0x2d68bf: 0x1bc
|
|
1541
|
+
}, _0x15209e = {
|
|
1542
|
+
_0x49ed48: 0x142,
|
|
1543
|
+
_0x281c0a: 0x205,
|
|
1544
|
+
_0x21f780: 0x181,
|
|
1545
|
+
_0x20e806: 0x215,
|
|
1546
|
+
_0x2f2396: 0x136,
|
|
1547
|
+
_0x2a956a: 0x11d,
|
|
1548
|
+
_0x4c982c: 0x108
|
|
1549
|
+
}, _0x5b369e = {
|
|
1550
|
+
_0x47c0b8: 0x115,
|
|
1551
|
+
_0x1cc8a2: 0x244,
|
|
1552
|
+
_0x448c22: 0x1d7,
|
|
1553
|
+
_0x1aad82: 0x12d,
|
|
1554
|
+
_0x3a96d3: 0x10c,
|
|
1555
|
+
_0x2e1a5a: 0x1e5,
|
|
1556
|
+
_0x235ebe: 0x244
|
|
1557
|
+
}, _0x1ee086 = {
|
|
1558
|
+
_0x3c4cf9: 0x148,
|
|
1559
|
+
_0x4bc2a1: 0x102,
|
|
1560
|
+
_0x4f5430: 0x136
|
|
1561
|
+
}, _0x504d00 = {
|
|
1562
|
+
_0x5685c7: 0x132,
|
|
1563
|
+
_0x3f28ac: 0x108,
|
|
1564
|
+
_0xba294: 0x256
|
|
1565
|
+
}, _0x4eb0c6 = {
|
|
1566
|
+
_0x593796: 0x23d,
|
|
1567
|
+
_0x17a276: 0x10a,
|
|
1568
|
+
_0x26e883: 0x185,
|
|
1569
|
+
_0x5e0797: 0x165
|
|
1570
|
+
}, _0x5c9d2f = {
|
|
1571
|
+
_0x3fce68: 0x105,
|
|
1572
|
+
_0x68ed06: 0x1ba
|
|
1573
|
+
}, _0x75981 = { _0x1c6e57: 0x1b8 }, _0x4e2a70 = { _0x5b1fa7: 0x119 }, _0x5921fe = {
|
|
1574
|
+
_0x4f9e70: 0x1b8,
|
|
1575
|
+
_0x51b9d9: 0x1f0,
|
|
1576
|
+
_0x2cd367: 0x157
|
|
1577
|
+
}, _0x3cb8b7 = {
|
|
1578
|
+
_0x39d49c: 0x235,
|
|
1579
|
+
_0x12ceaa: 0x121,
|
|
1580
|
+
_0x562e7a: 0x26f,
|
|
1581
|
+
_0x55f5d7: 0x24b,
|
|
1582
|
+
_0x586343: 0x14e
|
|
1583
|
+
}, _0x434707 = {
|
|
1584
|
+
_0xabdce7: 0x215,
|
|
1585
|
+
_0x4d7184: 0x164,
|
|
1586
|
+
_0x1e2ebd: 0x177,
|
|
1587
|
+
_0x354e7d: 0x1a6,
|
|
1588
|
+
_0xcc6aa0: 0x261,
|
|
1589
|
+
_0xe5e956: 0x22f,
|
|
1590
|
+
_0x40d406: 0x1e3
|
|
1591
|
+
}, _0x356e28 = {
|
|
1592
|
+
_0x55dc4f: 0x1ea,
|
|
1593
|
+
_0x4c8552: 0x206
|
|
1594
|
+
}, _0x3e3a9b = {
|
|
1595
|
+
_0xee10f0: 0x109,
|
|
1596
|
+
_0x31f35d: 0x148,
|
|
1597
|
+
_0x4c534a: 0x215,
|
|
1598
|
+
_0x458743: 0x1bb,
|
|
1599
|
+
_0x301360: 0x17a,
|
|
1600
|
+
_0x8bc94c: 0x282,
|
|
1601
|
+
_0x5eb393: 0x282,
|
|
1602
|
+
_0x46aa83: 0x25f,
|
|
1603
|
+
_0xbe28fe: 0x1c8,
|
|
1604
|
+
_0x4385db: 0x184,
|
|
1605
|
+
_0xcd17e2: 0x26e,
|
|
1606
|
+
_0x1ed498: 0x200,
|
|
1607
|
+
_0x520cd1: 0x1ee,
|
|
1608
|
+
_0x303a36: 0x282,
|
|
1609
|
+
_0x4e7309: 0x27f,
|
|
1610
|
+
_0x43cf0b: 0x17b,
|
|
1611
|
+
_0x4056a7: 0x205,
|
|
1612
|
+
_0x130a59: 0x215,
|
|
1613
|
+
_0x323032: 0x282,
|
|
1614
|
+
_0x262554: 0x12c,
|
|
1615
|
+
_0x1ded09: 0x136,
|
|
1616
|
+
_0x22f593: 0x1e6,
|
|
1617
|
+
_0x38ef6d: 0x163,
|
|
1618
|
+
_0x92f30d: 0x280,
|
|
1619
|
+
_0x3877ae: 0x245,
|
|
1620
|
+
_0x5e4e5c: 0x14c,
|
|
1621
|
+
_0x5f1377: 0x27e,
|
|
1622
|
+
_0x1513ca: 0x175
|
|
1623
|
+
}, _0xbbb2db = {
|
|
1624
|
+
_0x2de3c3: 0x141,
|
|
1625
|
+
_0x256b27: 0x136,
|
|
1626
|
+
_0x4dfe38: 0x204,
|
|
1627
|
+
_0x246a96: 0x164,
|
|
1628
|
+
_0xa08f38: 0x1e3
|
|
1629
|
+
}, _0x2d3a26 = {
|
|
1630
|
+
_0x594b92: 0x148,
|
|
1631
|
+
_0x4d861f: 0x109,
|
|
1632
|
+
_0x142024: 0x26f,
|
|
1633
|
+
_0x223c7c: 0x223,
|
|
1634
|
+
_0x33b6f1: 0x1c8,
|
|
1635
|
+
_0x319c0f: 0x24d,
|
|
1636
|
+
_0x11a129: 0x1c8,
|
|
1637
|
+
_0x2bdb0f: 0x206,
|
|
1638
|
+
_0x2a4291: 0x261,
|
|
1639
|
+
_0x4a5da4: 0x25f,
|
|
1640
|
+
_0x406c0b: 0x22d,
|
|
1641
|
+
_0x498599: 0x239,
|
|
1642
|
+
_0x1e2c91: 0x1e9,
|
|
1643
|
+
_0x151fdf: 0x200,
|
|
1644
|
+
_0x4d1ee1: 0x261,
|
|
1645
|
+
_0x23a6b2: 0x12c,
|
|
1646
|
+
_0x2dc6b9: 0x136,
|
|
1647
|
+
_0x1d971b: 0x1ed
|
|
1665
1648
|
};
|
|
1666
|
-
async function
|
|
1667
|
-
const
|
|
1668
|
-
if (!
|
|
1649
|
+
async function _0x39301b(_0x5aa99e) {
|
|
1650
|
+
const _0x1f69cb = _0x3431;
|
|
1651
|
+
if (!_0x3dc6c3[_0x1f69cb(_0x2d3a26._0x594b92)] || !_0x3dc6c3['agentId'] || _0x3dc6c3[_0x1f69cb(0x26c)] || _0x3dc6c3[_0x1f69cb(_0x2d3a26._0x4d861f)] !== !![])
|
|
1669
1652
|
return null;
|
|
1670
|
-
const
|
|
1671
|
-
if (
|
|
1653
|
+
const _0xb28699 = parseTarget(_0x5aa99e[_0x1f69cb(_0x2d3a26._0x142024)]);
|
|
1654
|
+
if (_0xb28699[_0x1f69cb(_0x2d3a26._0x223c7c)] !== 'channel')
|
|
1672
1655
|
return null;
|
|
1673
|
-
const
|
|
1674
|
-
let
|
|
1656
|
+
const _0x4078b4 = _0x5aa99e[_0x1f69cb(_0x2d3a26._0x33b6f1)] != null ? _0xb28699[_0x1f69cb(_0x2d3a26._0x319c0f)] + ':t' + _0x5aa99e[_0x1f69cb(_0x2d3a26._0x11a129)] : _0xb28699[_0x1f69cb(0x24d)] + ':' + _0x5aa99e['messageId'];
|
|
1657
|
+
let _0x3fad6c;
|
|
1675
1658
|
try {
|
|
1676
|
-
const
|
|
1677
|
-
'channel':
|
|
1659
|
+
const _0x124da5 = await _0x3dc6c3[_0x1f69cb(0x1b8)]['readHistory']({
|
|
1660
|
+
'channel': _0x4078b4,
|
|
1678
1661
|
'limit': 0x14
|
|
1679
1662
|
});
|
|
1680
|
-
|
|
1663
|
+
_0x3fad6c = _0x124da5[_0x1f69cb(_0x2d3a26._0x2bdb0f)][_0x1f69cb(0x22f)](_0xfe087 => _0xfe087['messageId'] === _0x5aa99e[_0x1f69cb(0x121)]);
|
|
1681
1664
|
} catch {
|
|
1682
|
-
|
|
1665
|
+
_0x3fad6c = void 0x0;
|
|
1683
1666
|
}
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1667
|
+
const _0x4be0f5 = _0x5aa99e[_0x1f69cb(_0x2d3a26._0x2a4291)] == null ? _0x1f69cb(_0x2d3a26._0x4a5da4) : '#' + _0x5aa99e[_0x1f69cb(0x261)], _0x3d40c4 = [
|
|
1668
|
+
_0x1f69cb(_0x2d3a26._0x406c0b) + _0x4078b4 + _0x1f69cb(0x222) + _0x5aa99e[_0x1f69cb(0x121)]['slice'](0x0, 0x8) + _0x1f69cb(_0x2d3a26._0x498599) + new Date()[_0x1f69cb(0x26e)]() + _0x1f69cb(0x1fd) + _0x4be0f5 + '\x20已切换到\x20worker\x20执行',
|
|
1686
1669
|
'',
|
|
1687
|
-
|
|
1670
|
+
_0x3fad6c ? _0x1f69cb(_0x2d3a26._0x1e2c91) + _0x3fad6c[_0x1f69cb(_0x2d3a26._0x151fdf)] : _0x1f69cb(0x15f) + _0x5aa99e[_0x1f69cb(0x121)],
|
|
1688
1671
|
'',
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
][
|
|
1692
|
-
'method':
|
|
1693
|
-
'headers': { 'Content-Type':
|
|
1694
|
-
'body': JSON[
|
|
1695
|
-
'agent_id':
|
|
1696
|
-
'thread_target':
|
|
1672
|
+
_0x1f69cb(0x189) + _0x4078b4,
|
|
1673
|
+
_0x1f69cb(0x1f1)
|
|
1674
|
+
][_0x1f69cb(0x13c)]('\x0a'), _0xcb2597 = await fetch(_0x3dc6c3[_0x1f69cb(0x148)] + '/workers/deliver', {
|
|
1675
|
+
'method': 'POST',
|
|
1676
|
+
'headers': { 'Content-Type': _0x1f69cb(0x181) },
|
|
1677
|
+
'body': JSON[_0x1f69cb(0x115)]({
|
|
1678
|
+
'agent_id': _0x3dc6c3[_0x1f69cb(0x215)],
|
|
1679
|
+
'thread_target': _0x4078b4,
|
|
1697
1680
|
'spawn_packet': {
|
|
1698
|
-
'replyTarget':
|
|
1699
|
-
...
|
|
1681
|
+
'replyTarget': _0x4078b4,
|
|
1682
|
+
..._0x5aa99e['taskId'] ? { 'taskId': _0x5aa99e['taskId'] } : _0x5aa99e[_0x1f69cb(0x261)] != null ? { 'taskId': _0x1f69cb(0x146) + _0x5aa99e[_0x1f69cb(_0x2d3a26._0x4d1ee1)] } : {}
|
|
1700
1683
|
},
|
|
1701
1684
|
'payload': {
|
|
1702
|
-
'mode':
|
|
1703
|
-
'text':
|
|
1685
|
+
'mode': _0x1f69cb(_0x2d3a26._0x23a6b2),
|
|
1686
|
+
'text': _0x3d40c4
|
|
1704
1687
|
}
|
|
1705
1688
|
})
|
|
1706
|
-
}),
|
|
1707
|
-
if (!
|
|
1708
|
-
throw new Error(
|
|
1689
|
+
}), _0x7db147 = await _0xcb2597[_0x1f69cb(_0x2d3a26._0x2dc6b9)]();
|
|
1690
|
+
if (!_0x7db147['ok'])
|
|
1691
|
+
throw new Error(_0x7db147['error'] ?? 'worker\x20handoff\x20failed');
|
|
1709
1692
|
return {
|
|
1710
1693
|
'stopMain': !![],
|
|
1711
|
-
'threadTarget':
|
|
1712
|
-
'workerDisposition':
|
|
1694
|
+
'threadTarget': _0x4078b4,
|
|
1695
|
+
'workerDisposition': _0x7db147[_0x1f69cb(0x212)] === _0x1f69cb(0x1d3) ? _0x1f69cb(0x1d3) : _0x1f69cb(0x245),
|
|
1713
1696
|
'workerHandoff': !![],
|
|
1714
|
-
'workerSessionId':
|
|
1715
|
-
'executionMode':
|
|
1697
|
+
'workerSessionId': _0x7db147['worker_session_id'] ?? '',
|
|
1698
|
+
'executionMode': _0x1f69cb(_0x2d3a26._0x1d971b)
|
|
1716
1699
|
};
|
|
1717
1700
|
}
|
|
1718
|
-
async function
|
|
1719
|
-
const
|
|
1720
|
-
if (!
|
|
1701
|
+
async function _0xb50e2() {
|
|
1702
|
+
const _0x10644a = _0x3431;
|
|
1703
|
+
if (!_0x3dc6c3['daemonLocalUrl'] || !_0x3dc6c3['agentId'] || _0x3dc6c3[_0x10644a(0x26c)])
|
|
1721
1704
|
return null;
|
|
1722
1705
|
try {
|
|
1723
|
-
const
|
|
1724
|
-
if (!
|
|
1706
|
+
const _0x3a75f2 = await fetch(_0x3dc6c3['daemonLocalUrl'] + _0x10644a(_0xbbb2db._0x2de3c3) + encodeURIComponent(_0x3dc6c3[_0x10644a(0x215)])), _0x3eec42 = await _0x3a75f2[_0x10644a(_0xbbb2db._0x256b27)]();
|
|
1707
|
+
if (!_0x3eec42['ok'])
|
|
1725
1708
|
return null;
|
|
1726
|
-
const
|
|
1727
|
-
for (const
|
|
1728
|
-
|
|
1709
|
+
const _0x6332fc = new Set();
|
|
1710
|
+
for (const _0x1567af of _0x3eec42[_0x10644a(_0xbbb2db._0x4dfe38)]) {
|
|
1711
|
+
_0x1567af[_0x10644a(0x249)] !== _0x10644a(0x22a) && _0x1567af[_0x10644a(_0xbbb2db._0x246a96)] && _0x6332fc[_0x10644a(_0xbbb2db._0xa08f38)](_0x1567af[_0x10644a(0x164)]);
|
|
1729
1712
|
}
|
|
1730
|
-
return
|
|
1713
|
+
return _0x6332fc[_0x10644a(0x1dd)] > 0x0 ? _0x6332fc : null;
|
|
1731
1714
|
} catch {
|
|
1732
1715
|
return null;
|
|
1733
1716
|
}
|
|
1734
1717
|
}
|
|
1735
1718
|
return {
|
|
1736
|
-
async 'send_message'(
|
|
1737
|
-
const
|
|
1738
|
-
if (!
|
|
1739
|
-
const
|
|
1740
|
-
if (
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1719
|
+
async 'send_message'(_0x1c0f61) {
|
|
1720
|
+
const _0x46204c = _0x3431;
|
|
1721
|
+
if (!_0x3dc6c3['workerMode'] && _0x3dc6c3[_0x46204c(_0x3e3a9b._0xee10f0)] && _0x3dc6c3[_0x46204c(_0x3e3a9b._0x31f35d)] && _0x3dc6c3[_0x46204c(_0x3e3a9b._0x4c534a)]) {
|
|
1722
|
+
const _0xfffd4 = await _0x3dc6c3[_0x46204c(0x1b8)][_0x46204c(_0x3e3a9b._0x458743)](_0x1c0f61[_0x46204c(_0x3e3a9b._0x301360)]);
|
|
1723
|
+
if (_0xfffd4[_0x46204c(0x282)] && _0xfffd4['threadId']) {
|
|
1724
|
+
const _0x2cd6ae = _0xfffd4[_0x46204c(_0x3e3a9b._0x8bc94c)]['taskNumber'] != null ? '#' + _0xfffd4[_0x46204c(_0x3e3a9b._0x5eb393)][_0x46204c(0x261)] : _0x46204c(_0x3e3a9b._0x46aa83), _0x5d5862 = _0xfffd4[_0x46204c(0x1c8)] != null ? _0xfffd4['target'] + ':t' + _0xfffd4[_0x46204c(_0x3e3a9b._0xbe28fe)] : _0xfffd4[_0x46204c(_0x3e3a9b._0x301360)] + ':' + _0xfffd4[_0x46204c(_0x3e3a9b._0x4385db)][_0x46204c(0x177)](0x0, 0x8), _0x9062ac = [
|
|
1725
|
+
_0x46204c(0x22d) + _0x5d5862 + '\x20msg=handoff\x20time=' + new Date()[_0x46204c(_0x3e3a9b._0xcd17e2)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1743
1726
|
'',
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
][
|
|
1749
|
-
'method':
|
|
1727
|
+
_0x46204c(0x130) + _0x1c0f61[_0x46204c(_0x3e3a9b._0x1ed498)],
|
|
1728
|
+
_0x46204c(_0x3e3a9b._0x520cd1) + _0x2cd6ae + '\x20(' + _0xfffd4[_0x46204c(_0x3e3a9b._0x303a36)][_0x46204c(_0x3e3a9b._0x4e7309)] + ')',
|
|
1729
|
+
_0x46204c(0x189) + _0x5d5862,
|
|
1730
|
+
'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
|
|
1731
|
+
]['join']('\x0a'), _0x3b3b33 = await fetch(_0x3dc6c3[_0x46204c(0x148)] + _0x46204c(_0x3e3a9b._0x43cf0b), {
|
|
1732
|
+
'method': _0x46204c(_0x3e3a9b._0x4056a7),
|
|
1750
1733
|
'headers': { 'Content-Type': 'application/json' },
|
|
1751
|
-
'body': JSON[
|
|
1752
|
-
'agent_id':
|
|
1753
|
-
'thread_target':
|
|
1734
|
+
'body': JSON[_0x46204c(0x115)]({
|
|
1735
|
+
'agent_id': _0x3dc6c3[_0x46204c(_0x3e3a9b._0x130a59)],
|
|
1736
|
+
'thread_target': _0x5d5862,
|
|
1754
1737
|
'spawn_packet': {
|
|
1755
|
-
'replyTarget':
|
|
1756
|
-
'taskId':
|
|
1738
|
+
'replyTarget': _0x5d5862,
|
|
1739
|
+
'taskId': _0xfffd4[_0x46204c(_0x3e3a9b._0x323032)][_0x46204c(_0x3e3a9b._0x4e7309)]
|
|
1757
1740
|
},
|
|
1758
1741
|
'payload': {
|
|
1759
|
-
'mode':
|
|
1760
|
-
'text':
|
|
1742
|
+
'mode': _0x46204c(_0x3e3a9b._0x262554),
|
|
1743
|
+
'text': _0x9062ac
|
|
1761
1744
|
}
|
|
1762
1745
|
})
|
|
1763
|
-
}),
|
|
1764
|
-
if (!
|
|
1765
|
-
throw new Error(
|
|
1746
|
+
}), _0x4c9889 = await _0x3b3b33[_0x46204c(_0x3e3a9b._0x1ded09)]();
|
|
1747
|
+
if (!_0x4c9889['ok'])
|
|
1748
|
+
throw new Error(_0x4c9889[_0x46204c(0x160)] ?? _0x46204c(_0x3e3a9b._0x22f593));
|
|
1766
1749
|
return [
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1750
|
+
_0x46204c(0x20f) + _0x2cd6ae + '\x20in\x20' + _0x5d5862 + '.',
|
|
1751
|
+
_0x46204c(_0x3e3a9b._0x38ef6d),
|
|
1752
|
+
_0x46204c(_0x3e3a9b._0x92f30d) + (_0x4c9889[_0x46204c(0x212)] === 'queued' ? _0x46204c(0x1d3) : _0x46204c(_0x3e3a9b._0x3877ae)) + '.',
|
|
1770
1753
|
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1771
|
-
][
|
|
1754
|
+
][_0x46204c(0x13c)]('\x20');
|
|
1772
1755
|
}
|
|
1773
1756
|
}
|
|
1774
|
-
const
|
|
1775
|
-
'attachmentIds':
|
|
1776
|
-
'content':
|
|
1777
|
-
'target':
|
|
1778
|
-
'visibility':
|
|
1757
|
+
const _0x197454 = await _0x3dc6c3['client'][_0x46204c(_0x3e3a9b._0x5e4e5c)]({
|
|
1758
|
+
'attachmentIds': _0x1c0f61[_0x46204c(_0x3e3a9b._0x5f1377)],
|
|
1759
|
+
'content': _0x1c0f61[_0x46204c(_0x3e3a9b._0x1ed498)],
|
|
1760
|
+
'target': _0x1c0f61['target'],
|
|
1761
|
+
'visibility': _0x1c0f61[_0x46204c(0x134)]
|
|
1779
1762
|
});
|
|
1780
|
-
return
|
|
1763
|
+
return _0x46204c(_0x3e3a9b._0x1513ca) + _0x1c0f61['target'] + _0x46204c(0x233) + _0x197454[_0x46204c(0x121)];
|
|
1781
1764
|
},
|
|
1782
1765
|
async 'check_messages'() {
|
|
1783
|
-
const
|
|
1784
|
-
if (!
|
|
1785
|
-
const
|
|
1786
|
-
if (
|
|
1787
|
-
return formatCheckMessages(
|
|
1766
|
+
const _0x127318 = _0x3431, _0x3cde64 = await _0x3dc6c3['client']['checkMessages']();
|
|
1767
|
+
if (!_0x3dc6c3[_0x127318(0x26c)]) {
|
|
1768
|
+
const _0x4a6215 = await _0xb50e2();
|
|
1769
|
+
if (_0x4a6215)
|
|
1770
|
+
return formatCheckMessages(_0x3cde64[_0x127318(0x206)][_0x127318(_0x356e28._0x55dc4f)](_0xaad86d => !_0x4a6215['has'](_0xaad86d[_0x127318(0x17a)])));
|
|
1788
1771
|
}
|
|
1789
|
-
return formatCheckMessages(
|
|
1772
|
+
return formatCheckMessages(_0x3cde64[_0x127318(_0x356e28._0x4c8552)]);
|
|
1790
1773
|
},
|
|
1791
|
-
async 'read_history'(
|
|
1792
|
-
const
|
|
1793
|
-
return formatHistory(
|
|
1774
|
+
async 'read_history'(_0x47011f) {
|
|
1775
|
+
const _0x7a1d45 = _0x3431, _0x3fc27d = await _0x3dc6c3[_0x7a1d45(0x1b8)][_0x7a1d45(0x1b3)](_0x47011f);
|
|
1776
|
+
return formatHistory(_0x3fc27d);
|
|
1794
1777
|
},
|
|
1795
1778
|
async 'list_server'() {
|
|
1796
|
-
const
|
|
1797
|
-
return formatServerDirectory(
|
|
1779
|
+
const _0x2051a9 = _0x3431, _0x7ca151 = await _0x3dc6c3[_0x2051a9(0x1b8)]['listServer']();
|
|
1780
|
+
return formatServerDirectory(_0x7ca151);
|
|
1798
1781
|
},
|
|
1799
|
-
async 'list_tasks'(
|
|
1800
|
-
const
|
|
1801
|
-
let
|
|
1802
|
-
if (
|
|
1782
|
+
async 'list_tasks'(_0x38b29a) {
|
|
1783
|
+
const _0x32a18f = _0x3431, _0x3daeb3 = await _0x3dc6c3['client'][_0x32a18f(0x1d8)](_0x38b29a);
|
|
1784
|
+
let _0x17b078;
|
|
1785
|
+
if (_0x3dc6c3[_0x32a18f(0x148)] && _0x3dc6c3[_0x32a18f(_0x434707._0xabdce7)])
|
|
1803
1786
|
try {
|
|
1804
|
-
const
|
|
1805
|
-
if (
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1808
|
-
for (const
|
|
1809
|
-
if (
|
|
1787
|
+
const _0x4ed710 = await fetch(_0x3dc6c3[_0x32a18f(0x148)] + '/workers/list?agent_id=' + encodeURIComponent(_0x3dc6c3[_0x32a18f(0x215)])), _0x347cee = await _0x4ed710[_0x32a18f(0x136)]();
|
|
1788
|
+
if (_0x347cee['ok']) {
|
|
1789
|
+
const _0x51572c = _0x38b29a[_0x32a18f(0x26f)] + ':';
|
|
1790
|
+
_0x17b078 = new Set();
|
|
1791
|
+
for (const _0x117264 of _0x347cee['workers']) {
|
|
1792
|
+
if (_0x117264[_0x32a18f(0x249)] === 'destroyed')
|
|
1810
1793
|
continue;
|
|
1811
|
-
if (
|
|
1812
|
-
const
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
1794
|
+
if (_0x117264['thread_target']?.['startsWith'](_0x51572c)) {
|
|
1795
|
+
const _0x11fa44 = _0x117264[_0x32a18f(_0x434707._0x4d7184)][_0x32a18f(_0x434707._0x1e2ebd)](_0x51572c[_0x32a18f(_0x434707._0x354e7d)]), _0xbe3412 = _0x3daeb3[_0x32a18f(0x1f5)]['find'](_0x267e64 => _0x267e64[_0x32a18f(0x121)]?.[_0x32a18f(0x1d0)](_0x11fa44) === !![]);
|
|
1796
|
+
if (_0xbe3412?.[_0x32a18f(_0x434707._0xcc6aa0)] != null) {
|
|
1797
|
+
_0x17b078[_0x32a18f(0x1e3)](_0xbe3412[_0x32a18f(0x261)]);
|
|
1815
1798
|
continue;
|
|
1816
1799
|
}
|
|
1817
1800
|
}
|
|
1818
|
-
if (
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1801
|
+
if (_0x117264[_0x32a18f(0x19b)]) {
|
|
1802
|
+
const _0x4f9e6d = _0x3daeb3['tasks'][_0x32a18f(_0x434707._0xe5e956)](_0x1bc39f => _0x1bc39f[_0x32a18f(0x27f)] === _0x117264[_0x32a18f(0x19b)]);
|
|
1803
|
+
_0x4f9e6d?.[_0x32a18f(0x261)] != null && _0x17b078[_0x32a18f(_0x434707._0x40d406)](_0x4f9e6d[_0x32a18f(0x261)]);
|
|
1821
1804
|
}
|
|
1822
1805
|
}
|
|
1823
1806
|
}
|
|
1824
1807
|
} catch {
|
|
1825
1808
|
}
|
|
1826
|
-
return formatTaskList(
|
|
1809
|
+
return formatTaskList(_0x3daeb3[_0x32a18f(0x1f5)], _0x17b078);
|
|
1827
1810
|
},
|
|
1828
|
-
async 'create_tasks'(
|
|
1829
|
-
const
|
|
1830
|
-
return formatCreatedTasks(
|
|
1811
|
+
async 'create_tasks'(_0x5b4fb4) {
|
|
1812
|
+
const _0x5c7fce = _0x3431, _0x38a226 = await _0x3dc6c3[_0x5c7fce(0x1b8)][_0x5c7fce(0x24c)](_0x5b4fb4);
|
|
1813
|
+
return formatCreatedTasks(_0x38a226[_0x5c7fce(0x1f5)]);
|
|
1831
1814
|
},
|
|
1832
|
-
async 'claim_tasks'(
|
|
1833
|
-
const
|
|
1834
|
-
const
|
|
1835
|
-
if (!
|
|
1836
|
-
return
|
|
1815
|
+
async 'claim_tasks'(_0x5169c8) {
|
|
1816
|
+
const _0xd6e6c4 = _0x3431, _0x20069c = await _0x3dc6c3[_0xd6e6c4(_0x5921fe._0x4f9e70)]['claimTasks'](_0x5169c8), _0x35cb34 = await Promise[_0xd6e6c4(0x1e1)](_0x20069c[_0xd6e6c4(_0x5921fe._0x51b9d9)][_0xd6e6c4(_0x5921fe._0x2cd367)](async _0x3cce8d => {
|
|
1817
|
+
const _0x6c8599 = _0xd6e6c4;
|
|
1818
|
+
if (!_0x3cce8d[_0x6c8599(_0x3cb8b7._0x39d49c)] || !_0x3cce8d[_0x6c8599(_0x3cb8b7._0x12ceaa)])
|
|
1819
|
+
return _0x3cce8d;
|
|
1837
1820
|
try {
|
|
1838
|
-
const
|
|
1839
|
-
'channel':
|
|
1840
|
-
'messageId':
|
|
1841
|
-
'taskId':
|
|
1842
|
-
'taskNumber':
|
|
1843
|
-
'threadNumber':
|
|
1821
|
+
const _0x1469c3 = await _0x39301b({
|
|
1822
|
+
'channel': _0x5169c8[_0x6c8599(_0x3cb8b7._0x562e7a)],
|
|
1823
|
+
'messageId': _0x3cce8d['messageId'],
|
|
1824
|
+
'taskId': _0x3cce8d[_0x6c8599(0x27f)],
|
|
1825
|
+
'taskNumber': _0x3cce8d[_0x6c8599(0x261)],
|
|
1826
|
+
'threadNumber': _0x3cce8d['threadNumber']
|
|
1844
1827
|
});
|
|
1845
|
-
return
|
|
1846
|
-
...
|
|
1847
|
-
...
|
|
1848
|
-
} :
|
|
1849
|
-
} catch (
|
|
1828
|
+
return _0x1469c3 ? {
|
|
1829
|
+
..._0x3cce8d,
|
|
1830
|
+
..._0x1469c3
|
|
1831
|
+
} : _0x3cce8d;
|
|
1832
|
+
} catch (_0xa3be41) {
|
|
1850
1833
|
return {
|
|
1851
|
-
...
|
|
1852
|
-
'workerHandoffError':
|
|
1834
|
+
..._0x3cce8d,
|
|
1835
|
+
'workerHandoffError': _0xa3be41 instanceof Error ? _0xa3be41[_0x6c8599(_0x3cb8b7._0x55f5d7)] : _0x6c8599(_0x3cb8b7._0x586343)
|
|
1853
1836
|
};
|
|
1854
1837
|
}
|
|
1855
1838
|
}));
|
|
1856
|
-
return formatClaimTaskResults(
|
|
1839
|
+
return formatClaimTaskResults(_0x35cb34);
|
|
1857
1840
|
},
|
|
1858
|
-
async 'unclaim_task'(
|
|
1859
|
-
const
|
|
1860
|
-
return formatUnclaimTaskResult(
|
|
1841
|
+
async 'unclaim_task'(_0xcbbcd2) {
|
|
1842
|
+
const _0x35d5c2 = _0x3431, _0x3a5fa6 = await _0x3dc6c3['client'][_0x35d5c2(_0x4e2a70._0x5b1fa7)](_0xcbbcd2);
|
|
1843
|
+
return formatUnclaimTaskResult(_0x3a5fa6);
|
|
1861
1844
|
},
|
|
1862
|
-
async 'update_task_status'(
|
|
1863
|
-
const
|
|
1864
|
-
return formatUpdateTaskStatusResult(
|
|
1845
|
+
async 'update_task_status'(_0x26be19) {
|
|
1846
|
+
const _0x32ae1f = _0x3431, _0x14f04f = await _0x3dc6c3[_0x32ae1f(_0x75981._0x1c6e57)][_0x32ae1f(0x1ce)](_0x26be19);
|
|
1847
|
+
return formatUpdateTaskStatusResult(_0x14f04f);
|
|
1865
1848
|
},
|
|
1866
|
-
async 'upload_file'(
|
|
1867
|
-
const
|
|
1868
|
-
sizeBytes:
|
|
1869
|
-
...
|
|
1870
|
-
} =
|
|
1871
|
-
'channel':
|
|
1872
|
-
...
|
|
1849
|
+
async 'upload_file'(_0x1fcb72) {
|
|
1850
|
+
const _0x356438 = _0x3431, _0x3fc728 = await _0x3dc6c3[_0x356438(_0x5c9d2f._0x3fce68)](_0x1fcb72[_0x356438(0x1f3)]), {
|
|
1851
|
+
sizeBytes: _0x1a6735,
|
|
1852
|
+
..._0x546331
|
|
1853
|
+
} = _0x3fc728, _0x236575 = await _0x3dc6c3['client'][_0x356438(_0x5c9d2f._0x68ed06)]({
|
|
1854
|
+
'channel': _0x1fcb72[_0x356438(0x26f)],
|
|
1855
|
+
..._0x546331
|
|
1873
1856
|
});
|
|
1874
|
-
return formatUploadResult(
|
|
1857
|
+
return formatUploadResult(_0x236575);
|
|
1875
1858
|
},
|
|
1876
|
-
async 'view_file'(
|
|
1877
|
-
const
|
|
1878
|
-
if (
|
|
1879
|
-
return formatViewFileResult(
|
|
1880
|
-
const
|
|
1881
|
-
'attachmentId':
|
|
1882
|
-
'contentType':
|
|
1883
|
-
'data':
|
|
1884
|
-
'originalFilename':
|
|
1859
|
+
async 'view_file'(_0x415986) {
|
|
1860
|
+
const _0x1322a9 = _0x3431, _0xf9c944 = await _0x3dc6c3[_0x1322a9(_0x4eb0c6._0x593796)][_0x1322a9(0x1d6)](_0x415986[_0x1322a9(_0x4eb0c6._0x17a276)]);
|
|
1861
|
+
if (_0xf9c944)
|
|
1862
|
+
return formatViewFileResult(_0xf9c944, !![]);
|
|
1863
|
+
const _0xe24c74 = await _0x3dc6c3[_0x1322a9(0x1b8)][_0x1322a9(0x13b)](_0x415986[_0x1322a9(0x10a)]), _0x3e5e6f = await _0x3dc6c3[_0x1322a9(_0x4eb0c6._0x593796)][_0x1322a9(_0x4eb0c6._0x26e883)]({
|
|
1864
|
+
'attachmentId': _0x415986[_0x1322a9(0x10a)],
|
|
1865
|
+
'contentType': _0xe24c74[_0x1322a9(_0x4eb0c6._0x5e0797)],
|
|
1866
|
+
'data': _0xe24c74[_0x1322a9(0x193)],
|
|
1867
|
+
'originalFilename': _0xe24c74['originalFilename']
|
|
1885
1868
|
});
|
|
1886
|
-
return formatViewFileResult(
|
|
1887
|
-
},
|
|
1888
|
-
async 'get_worker_status'(_0x45191f) {
|
|
1889
|
-
const _0x250d1a = _0xe0e1;
|
|
1890
|
-
if (!_0x44d86a[_0x250d1a(_0x42a874._0x158930)])
|
|
1891
|
-
return _0x250d1a(_0x42a874._0x53216b);
|
|
1892
|
-
const _0x3d2a6a = await fetch(_0x44d86a[_0x250d1a(_0x42a874._0x158930)] + '/workers/status?work_key=' + encodeURIComponent(_0x45191f[_0x250d1a(0x168)])), _0xfe78f3 = await _0x3d2a6a['json']();
|
|
1893
|
-
if (!_0xfe78f3['ok'])
|
|
1894
|
-
return _0x250d1a(0x153) + _0x45191f['work_key'] + '\x22\x20not\x20found';
|
|
1895
|
-
return _0x250d1a(_0x42a874._0x2fe016) + _0x45191f[_0x250d1a(_0x42a874._0x3dfa0b)] + '\x22:\x20status=' + _0xfe78f3[_0x250d1a(0x269)];
|
|
1869
|
+
return formatViewFileResult(_0x3e5e6f, ![]);
|
|
1896
1870
|
},
|
|
1897
|
-
async '
|
|
1898
|
-
const
|
|
1899
|
-
if (!
|
|
1871
|
+
async 'get_worker_status'(_0x10f486) {
|
|
1872
|
+
const _0x1bcbd6 = _0x3431;
|
|
1873
|
+
if (!_0x3dc6c3[_0x1bcbd6(0x148)])
|
|
1900
1874
|
return 'Worker\x20features\x20not\x20available';
|
|
1901
|
-
const
|
|
1902
|
-
if (!
|
|
1903
|
-
return
|
|
1904
|
-
return
|
|
1875
|
+
const _0x4dd104 = await fetch(_0x3dc6c3[_0x1bcbd6(0x148)] + _0x1bcbd6(_0x504d00._0x5685c7) + encodeURIComponent(_0x10f486[_0x1bcbd6(_0x504d00._0x3f28ac)])), _0x496309 = await _0x4dd104[_0x1bcbd6(0x136)]();
|
|
1876
|
+
if (!_0x496309['ok'])
|
|
1877
|
+
return 'Worker\x20\x22' + _0x10f486[_0x1bcbd6(_0x504d00._0x3f28ac)] + '\x22\x20not\x20found';
|
|
1878
|
+
return _0x1bcbd6(_0x504d00._0xba294) + _0x10f486[_0x1bcbd6(0x108)] + _0x1bcbd6(0x1e4) + _0x496309[_0x1bcbd6(0x249)];
|
|
1905
1879
|
},
|
|
1906
|
-
async '
|
|
1907
|
-
const
|
|
1908
|
-
if (!
|
|
1909
|
-
return
|
|
1910
|
-
const
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1880
|
+
async 'get_worker_result'(_0x2e4c64) {
|
|
1881
|
+
const _0x18397c = _0x3431;
|
|
1882
|
+
if (!_0x3dc6c3[_0x18397c(_0x1ee086._0x3c4cf9)])
|
|
1883
|
+
return _0x18397c(0x1d2);
|
|
1884
|
+
const _0x5cf0ba = await fetch(_0x3dc6c3[_0x18397c(_0x1ee086._0x3c4cf9)] + _0x18397c(_0x1ee086._0x4bc2a1) + encodeURIComponent(_0x2e4c64[_0x18397c(0x108)])), _0x5b9355 = await _0x5cf0ba[_0x18397c(_0x1ee086._0x4f5430)]();
|
|
1885
|
+
if (!_0x5b9355['resume_packet'])
|
|
1886
|
+
return 'No\x20result\x20yet\x20for\x20worker\x20\x22' + _0x2e4c64[_0x18397c(0x108)] + '\x22';
|
|
1887
|
+
return JSON['stringify'](_0x5b9355[_0x18397c(0x10d)], null, 0x2);
|
|
1888
|
+
},
|
|
1889
|
+
async 'finish_worker'(_0x3c8f52) {
|
|
1890
|
+
const _0x1e3711 = _0x3431;
|
|
1891
|
+
if (!_0x3dc6c3['daemonLocalUrl'])
|
|
1892
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1893
|
+
const _0x28af24 = await fetch(_0x3dc6c3[_0x1e3711(0x148)] + '/workers/finish', {
|
|
1894
|
+
'method': 'POST',
|
|
1895
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1896
|
+
'body': JSON[_0x1e3711(_0x5b369e._0x47c0b8)]({
|
|
1897
|
+
'work_key': _0x3c8f52[_0x1e3711(0x108)],
|
|
1915
1898
|
'resume_packet': {
|
|
1916
1899
|
'objective': '',
|
|
1917
|
-
'result':
|
|
1918
|
-
'summary':
|
|
1919
|
-
'decisions':
|
|
1920
|
-
'filesChanged':
|
|
1921
|
-
'openIssues':
|
|
1922
|
-
'nextSteps':
|
|
1900
|
+
'result': _0x3c8f52[_0x1e3711(_0x5b369e._0x1cc8a2)],
|
|
1901
|
+
'summary': _0x3c8f52[_0x1e3711(_0x5b369e._0x448c22)],
|
|
1902
|
+
'decisions': _0x3c8f52[_0x1e3711(_0x5b369e._0x1aad82)] ?? [],
|
|
1903
|
+
'filesChanged': _0x3c8f52[_0x1e3711(0x238)] ?? [],
|
|
1904
|
+
'openIssues': _0x3c8f52[_0x1e3711(_0x5b369e._0x3a96d3)] ?? [],
|
|
1905
|
+
'nextSteps': _0x3c8f52[_0x1e3711(0xfc)] ?? []
|
|
1923
1906
|
}
|
|
1924
1907
|
})
|
|
1925
|
-
}),
|
|
1926
|
-
if (!
|
|
1927
|
-
throw new Error(
|
|
1928
|
-
return
|
|
1908
|
+
}), _0x1d2598 = await _0x28af24[_0x1e3711(0x136)]();
|
|
1909
|
+
if (!_0x1d2598['ok'])
|
|
1910
|
+
throw new Error(_0x1d2598[_0x1e3711(0x160)] ?? _0x1e3711(0x1be));
|
|
1911
|
+
return _0x1e3711(0x256) + _0x3c8f52['work_key'] + _0x1e3711(_0x5b369e._0x2e1a5a) + _0x3c8f52[_0x1e3711(_0x5b369e._0x235ebe)];
|
|
1929
1912
|
},
|
|
1930
|
-
async 'mark_waiting_input'(
|
|
1931
|
-
const
|
|
1932
|
-
if (!
|
|
1933
|
-
return
|
|
1934
|
-
const
|
|
1935
|
-
'method':
|
|
1936
|
-
'headers': { 'Content-Type':
|
|
1913
|
+
async 'mark_waiting_input'(_0x2cdb7a) {
|
|
1914
|
+
const _0x323bb4 = _0x3431;
|
|
1915
|
+
if (!_0x3dc6c3['daemonLocalUrl'] || !_0x3dc6c3[_0x323bb4(0x215)])
|
|
1916
|
+
return _0x323bb4(0x186);
|
|
1917
|
+
const _0x1ea85b = await fetch(_0x3dc6c3['daemonLocalUrl'] + _0x323bb4(_0x15209e._0x49ed48), {
|
|
1918
|
+
'method': _0x323bb4(_0x15209e._0x281c0a),
|
|
1919
|
+
'headers': { 'Content-Type': _0x323bb4(_0x15209e._0x21f780) },
|
|
1937
1920
|
'body': JSON['stringify']({
|
|
1938
|
-
'work_key':
|
|
1939
|
-
'agent_id':
|
|
1921
|
+
'work_key': _0x2cdb7a[_0x323bb4(0x108)],
|
|
1922
|
+
'agent_id': _0x3dc6c3[_0x323bb4(_0x15209e._0x20e806)]
|
|
1940
1923
|
})
|
|
1941
|
-
}),
|
|
1942
|
-
if (!
|
|
1943
|
-
throw new Error(
|
|
1944
|
-
return
|
|
1924
|
+
}), _0xf9f64d = await _0x1ea85b[_0x323bb4(_0x15209e._0x2f2396)]();
|
|
1925
|
+
if (!_0xf9f64d['ok'])
|
|
1926
|
+
throw new Error(_0xf9f64d['error'] ?? _0x323bb4(_0x15209e._0x2a956a));
|
|
1927
|
+
return _0x323bb4(0x256) + _0x2cdb7a[_0x323bb4(_0x15209e._0x4c982c)] + _0x323bb4(0x18a);
|
|
1945
1928
|
},
|
|
1946
|
-
async 'escalate_to_main'(
|
|
1947
|
-
const
|
|
1948
|
-
if (!
|
|
1949
|
-
return
|
|
1950
|
-
const
|
|
1951
|
-
'method':
|
|
1952
|
-
'headers': { 'Content-Type':
|
|
1953
|
-
'body': JSON[
|
|
1954
|
-
'work_key':
|
|
1955
|
-
'reason':
|
|
1929
|
+
async 'escalate_to_main'(_0x1738b7) {
|
|
1930
|
+
const _0x4909b3 = _0x3431;
|
|
1931
|
+
if (!_0x3dc6c3[_0x4909b3(0x148)])
|
|
1932
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1933
|
+
const _0x1b1b59 = await fetch(_0x3dc6c3[_0x4909b3(0x148)] + _0x4909b3(_0x9abc5d._0x54b1e0), {
|
|
1934
|
+
'method': _0x4909b3(0x205),
|
|
1935
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1936
|
+
'body': JSON[_0x4909b3(0x115)]({
|
|
1937
|
+
'work_key': _0x1738b7['work_key'],
|
|
1938
|
+
'reason': _0x1738b7[_0x4909b3(0x179)]
|
|
1956
1939
|
})
|
|
1957
|
-
}),
|
|
1958
|
-
if (!
|
|
1959
|
-
throw new Error(
|
|
1960
|
-
return
|
|
1940
|
+
}), _0x5c25c5 = await _0x1b1b59[_0x4909b3(_0x9abc5d._0x490a17)]();
|
|
1941
|
+
if (!_0x5c25c5['ok'])
|
|
1942
|
+
throw new Error(_0x5c25c5[_0x4909b3(_0x9abc5d._0x4eab87)] ?? _0x4909b3(_0x9abc5d._0x2d68bf));
|
|
1943
|
+
return _0x4909b3(0x274) + _0x1738b7['reason'];
|
|
1961
1944
|
}
|
|
1962
1945
|
};
|
|
1963
1946
|
}
|
|
1964
|
-
function
|
|
1965
|
-
|
|
1966
|
-
const _0x28eb2a = _0x28eb();
|
|
1967
|
-
let _0xe0e17c = _0x28eb2a[_0x254175];
|
|
1968
|
-
if (_0xe0e1['gMtxeA'] === undefined) {
|
|
1969
|
-
var _0x101368 = function (_0x2f2150) {
|
|
1970
|
-
const _0x2cae45 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1971
|
-
let _0x1a4946 = '', _0x30beea = '';
|
|
1972
|
-
for (let _0x700df3 = 0x0, _0x120cae, _0x3fee2c, _0x2d9bdd = 0x0; _0x3fee2c = _0x2f2150['charAt'](_0x2d9bdd++); ~_0x3fee2c && (_0x120cae = _0x700df3 % 0x4 ? _0x120cae * 0x40 + _0x3fee2c : _0x3fee2c, _0x700df3++ % 0x4) ? _0x1a4946 += String['fromCharCode'](0xff & _0x120cae >> (-0x2 * _0x700df3 & 0x6)) : 0x0) {
|
|
1973
|
-
_0x3fee2c = _0x2cae45['indexOf'](_0x3fee2c);
|
|
1974
|
-
}
|
|
1975
|
-
for (let _0x58b71f = 0x0, _0x33c633 = _0x1a4946['length']; _0x58b71f < _0x33c633; _0x58b71f++) {
|
|
1976
|
-
_0x30beea += '%' + ('00' + _0x1a4946['charCodeAt'](_0x58b71f)['toString'](0x10))['slice'](-0x2);
|
|
1977
|
-
}
|
|
1978
|
-
return decodeURIComponent(_0x30beea);
|
|
1979
|
-
};
|
|
1980
|
-
_0xe0e1['jmxeny'] = _0x101368, _0xe0e1['OcLqRY'] = {}, _0xe0e1['gMtxeA'] = !![];
|
|
1981
|
-
}
|
|
1982
|
-
const _0x128fc0 = _0x28eb2a[0x0], _0x565303 = _0x254175 + _0x128fc0, _0x43101e = _0xe0e1['OcLqRY'][_0x565303];
|
|
1983
|
-
return !_0x43101e ? (_0xe0e17c = _0xe0e1['jmxeny'](_0xe0e17c), _0xe0e1['OcLqRY'][_0x565303] = _0xe0e17c) : _0xe0e17c = _0x43101e, _0xe0e17c;
|
|
1984
|
-
}
|
|
1985
|
-
function textResult(_0x5126d8, _0xc80a6e = ![]) {
|
|
1986
|
-
const _0x2d3c75 = _0x48b8fe;
|
|
1947
|
+
function textResult(_0x9697d1, _0x67e99 = ![]) {
|
|
1948
|
+
const _0xe9fa08 = _0x6aa24e;
|
|
1987
1949
|
return {
|
|
1988
1950
|
'content': [{
|
|
1989
|
-
'type':
|
|
1990
|
-
'text':
|
|
1951
|
+
'type': _0xe9fa08(0x1b2),
|
|
1952
|
+
'text': _0x9697d1
|
|
1991
1953
|
}],
|
|
1992
|
-
...
|
|
1954
|
+
..._0x67e99 ? { 'isError': !![] } : {}
|
|
1993
1955
|
};
|
|
1994
1956
|
}
|
|
1995
|
-
async function registerChatBridgeTools(
|
|
1996
|
-
const
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
},
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
},
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
},
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
},
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
},
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
},
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
1957
|
+
async function registerChatBridgeTools(_0x5654d0, _0x16f095, _0xad895) {
|
|
1958
|
+
const _0x3f6c6c = {
|
|
1959
|
+
_0x4a0344: 0x194,
|
|
1960
|
+
_0x1f8edb: 0x21f,
|
|
1961
|
+
_0xb59266: 0x1c1,
|
|
1962
|
+
_0x4067fd: 0x267,
|
|
1963
|
+
_0x529b47: 0x1ca,
|
|
1964
|
+
_0x3858c1: 0x101,
|
|
1965
|
+
_0x337702: 0x1a8,
|
|
1966
|
+
_0x5afea0: 0x113,
|
|
1967
|
+
_0x2a8024: 0x267,
|
|
1968
|
+
_0x247ea4: 0x114,
|
|
1969
|
+
_0x3f18f8: 0x151,
|
|
1970
|
+
_0x4ff2fa: 0x1c1,
|
|
1971
|
+
_0x3a5501: 0x257,
|
|
1972
|
+
_0x193487: 0x1c1,
|
|
1973
|
+
_0x2e0c59: 0x159,
|
|
1974
|
+
_0x175ae3: 0x230,
|
|
1975
|
+
_0x509662: 0x1ca,
|
|
1976
|
+
_0x1f4488: 0x281,
|
|
1977
|
+
_0xa95cb3: 0x125,
|
|
1978
|
+
_0x15f62f: 0x264,
|
|
1979
|
+
_0x56360d: 0x159,
|
|
1980
|
+
_0x26b6b0: 0x230,
|
|
1981
|
+
_0x4f7e80: 0x112,
|
|
1982
|
+
_0x178d71: 0x113,
|
|
1983
|
+
_0x15e762: 0x27b,
|
|
1984
|
+
_0x326165: 0x1c1,
|
|
1985
|
+
_0x9a6899: 0x21a,
|
|
1986
|
+
_0x1427be: 0x221,
|
|
1987
|
+
_0x1abfa7: 0x197,
|
|
1988
|
+
_0x551657: 0x209,
|
|
1989
|
+
_0x413166: 0x16d,
|
|
1990
|
+
_0x1f387f: 0x196,
|
|
1991
|
+
_0x327641: 0x152,
|
|
1992
|
+
_0x34930b: 0x1f7,
|
|
1993
|
+
_0x206e5c: 0x1c1,
|
|
1994
|
+
_0x3754ef: 0x1c1,
|
|
1995
|
+
_0x281a0d: 0x1c1,
|
|
1996
|
+
_0x1d4273: 0x26c,
|
|
1997
|
+
_0x16d01b: 0x1c5,
|
|
1998
|
+
_0x3277ee: 0x1c1
|
|
1999
|
+
}, _0x4918f3 = {
|
|
2000
|
+
_0x1329b1: 0x1c5,
|
|
2001
|
+
_0x359a47: 0x24b
|
|
2002
|
+
}, _0xc28660 = {
|
|
2003
|
+
_0x3318eb: 0x123,
|
|
2004
|
+
_0x54eabd: 0x24b,
|
|
2005
|
+
_0x56ee37: 0x1bc
|
|
2006
|
+
}, _0x995851 = {
|
|
2007
|
+
_0x2cc747: 0x137,
|
|
2008
|
+
_0x226f7c: 0x1be
|
|
2009
|
+
}, _0x2331ab = { _0x3ae404: 0x24b }, _0x5948c8 = {
|
|
2010
|
+
_0x37a3b1: 0x209,
|
|
2011
|
+
_0x3551dc: 0x253
|
|
2012
|
+
}, _0x2334ed = { _0x79d89d: 0x229 }, _0x47fb14 = {
|
|
2013
|
+
_0x37bd52: 0x21a,
|
|
2014
|
+
_0x5dc439: 0x139
|
|
2015
|
+
}, _0x459920 = { _0x10b7f8: 0x203 }, _0x451628 = {
|
|
2016
|
+
_0x463a13: 0x112,
|
|
2017
|
+
_0x4d717f: 0x169
|
|
2018
|
+
}, _0x459390 = { _0x4af86a: 0x24b }, _0x54f46a = { _0x2e1086: 0x24b }, _0x376465 = { _0x28a8a2: 0x151 }, _0x3b6925 = { _0x401a74: 0x27c }, _0x3c0319 = { _0xb74384: 0x1d1 }, _0x215781 = {
|
|
2019
|
+
_0x39e242: 0x24b,
|
|
2020
|
+
_0x489d85: 0x106
|
|
2021
|
+
}, _0x3f1d81 = {
|
|
2022
|
+
_0x466a91: 0x21f,
|
|
2023
|
+
_0x38acf4: 0x24b,
|
|
2024
|
+
_0x14d654: 0x265
|
|
2025
|
+
}, _0xb5edc6 = _0x6aa24e, {z: _0x38e391} = await import(_0xb5edc6(_0x3f6c6c._0x4a0344));
|
|
2026
|
+
_0x5654d0[_0xb5edc6(0x114)](_0xb5edc6(_0x3f6c6c._0x1f8edb), _0xb5edc6(0x171), {
|
|
2027
|
+
'target': _0x38e391[_0xb5edc6(0x1c1)](),
|
|
2028
|
+
'content': _0x38e391[_0xb5edc6(_0x3f6c6c._0xb59266)](),
|
|
2029
|
+
'attachment_ids': _0x38e391[_0xb5edc6(0x159)](_0x38e391['string']())[_0xb5edc6(_0x3f6c6c._0x4067fd)](),
|
|
2030
|
+
'visibility': _0x38e391[_0xb5edc6(_0x3f6c6c._0x529b47)]([
|
|
2031
|
+
_0xb5edc6(_0x3f6c6c._0x3858c1),
|
|
2063
2032
|
'aside'
|
|
2064
|
-
])[
|
|
2065
|
-
}, async
|
|
2066
|
-
const
|
|
2033
|
+
])[_0xb5edc6(0x267)]()
|
|
2034
|
+
}, async _0xae85ba => {
|
|
2035
|
+
const _0x2f3455 = _0xb5edc6;
|
|
2067
2036
|
try {
|
|
2068
|
-
return textResult(await
|
|
2069
|
-
} catch (
|
|
2070
|
-
return textResult(
|
|
2037
|
+
return textResult(await _0x16f095[_0x2f3455(_0x3f1d81._0x466a91)](_0xae85ba));
|
|
2038
|
+
} catch (_0x186538) {
|
|
2039
|
+
return textResult(_0x186538 instanceof Error ? _0x186538[_0x2f3455(_0x3f1d81._0x38acf4)] : _0x2f3455(_0x3f1d81._0x14d654), !![]);
|
|
2071
2040
|
}
|
|
2072
|
-
}),
|
|
2073
|
-
const
|
|
2041
|
+
}), _0x5654d0[_0xb5edc6(0x114)](_0xb5edc6(0x13a), _0xb5edc6(0x252), {}, async () => {
|
|
2042
|
+
const _0x4c5ed2 = _0xb5edc6;
|
|
2074
2043
|
try {
|
|
2075
|
-
return textResult(await
|
|
2076
|
-
} catch (
|
|
2077
|
-
return textResult(
|
|
2044
|
+
return textResult(await _0x16f095[_0x4c5ed2(0x13a)]());
|
|
2045
|
+
} catch (_0x5d7172) {
|
|
2046
|
+
return textResult(_0x5d7172 instanceof Error ? _0x5d7172[_0x4c5ed2(_0x215781._0x39e242)] : _0x4c5ed2(_0x215781._0x489d85), !![]);
|
|
2078
2047
|
}
|
|
2079
|
-
}),
|
|
2080
|
-
'channel':
|
|
2081
|
-
'limit':
|
|
2082
|
-
'before':
|
|
2083
|
-
'after':
|
|
2084
|
-
}, async
|
|
2085
|
-
const
|
|
2048
|
+
}), _0x5654d0['tool'](_0xb5edc6(_0x3f6c6c._0x337702), _0xb5edc6(0x182), {
|
|
2049
|
+
'channel': _0x38e391['string'](),
|
|
2050
|
+
'limit': _0x38e391[_0xb5edc6(0x113)]()[_0xb5edc6(0x267)](),
|
|
2051
|
+
'before': _0x38e391[_0xb5edc6(_0x3f6c6c._0x5afea0)]()['optional'](),
|
|
2052
|
+
'after': _0x38e391['number']()[_0xb5edc6(_0x3f6c6c._0x2a8024)]()
|
|
2053
|
+
}, async _0x2caa59 => {
|
|
2054
|
+
const _0x1da12b = _0xb5edc6;
|
|
2086
2055
|
try {
|
|
2087
|
-
return textResult(await
|
|
2088
|
-
} catch (
|
|
2089
|
-
return textResult(
|
|
2056
|
+
return textResult(await _0x16f095['read_history'](_0x2caa59));
|
|
2057
|
+
} catch (_0x56eefd) {
|
|
2058
|
+
return textResult(_0x56eefd instanceof Error ? _0x56eefd[_0x1da12b(0x24b)] : _0x1da12b(_0x3c0319._0xb74384), !![]);
|
|
2090
2059
|
}
|
|
2091
|
-
}),
|
|
2092
|
-
const
|
|
2060
|
+
}), _0x5654d0[_0xb5edc6(0x114)](_0xb5edc6(0x1ae), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2061
|
+
const _0x295ff5 = _0xb5edc6;
|
|
2093
2062
|
try {
|
|
2094
|
-
return textResult(await
|
|
2095
|
-
} catch (
|
|
2096
|
-
return textResult(
|
|
2063
|
+
return textResult(await _0x16f095['list_server']());
|
|
2064
|
+
} catch (_0x569667) {
|
|
2065
|
+
return textResult(_0x569667 instanceof Error ? _0x569667['message'] : _0x295ff5(_0x3b6925._0x401a74), !![]);
|
|
2097
2066
|
}
|
|
2098
|
-
}),
|
|
2099
|
-
'channel':
|
|
2100
|
-
'status':
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
])[
|
|
2106
|
-
}, async
|
|
2107
|
-
const
|
|
2067
|
+
}), _0x5654d0[_0xb5edc6(_0x3f6c6c._0x247ea4)](_0xb5edc6(_0x3f6c6c._0x3f18f8), 'List\x20tasks\x20in\x20a\x20channel.', {
|
|
2068
|
+
'channel': _0x38e391[_0xb5edc6(_0x3f6c6c._0x4ff2fa)](),
|
|
2069
|
+
'status': _0x38e391['enum']([
|
|
2070
|
+
_0xb5edc6(_0x3f6c6c._0x3a5501),
|
|
2071
|
+
'in_progress',
|
|
2072
|
+
_0xb5edc6(0x269),
|
|
2073
|
+
_0xb5edc6(0x11b)
|
|
2074
|
+
])['optional']()
|
|
2075
|
+
}, async _0x9f251a => {
|
|
2076
|
+
const _0x24885b = _0xb5edc6;
|
|
2108
2077
|
try {
|
|
2109
|
-
return textResult(await
|
|
2110
|
-
} catch (
|
|
2111
|
-
return textResult(
|
|
2078
|
+
return textResult(await _0x16f095[_0x24885b(_0x376465._0x28a8a2)](_0x9f251a));
|
|
2079
|
+
} catch (_0x2889a3) {
|
|
2080
|
+
return textResult(_0x2889a3 instanceof Error ? _0x2889a3[_0x24885b(0x24b)] : _0x24885b(0x154), !![]);
|
|
2112
2081
|
}
|
|
2113
|
-
}),
|
|
2114
|
-
'channel':
|
|
2115
|
-
'idempotency_key':
|
|
2116
|
-
'tasks':
|
|
2117
|
-
'title':
|
|
2118
|
-
'description':
|
|
2119
|
-
'priority':
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
])[
|
|
2082
|
+
}), _0x5654d0[_0xb5edc6(_0x3f6c6c._0x247ea4)](_0xb5edc6(0x173), _0xb5edc6(0x260), {
|
|
2083
|
+
'channel': _0x38e391[_0xb5edc6(_0x3f6c6c._0x193487)](),
|
|
2084
|
+
'idempotency_key': _0x38e391['string']()['optional'](),
|
|
2085
|
+
'tasks': _0x38e391[_0xb5edc6(_0x3f6c6c._0x2e0c59)](_0x38e391[_0xb5edc6(_0x3f6c6c._0x175ae3)]({
|
|
2086
|
+
'title': _0x38e391[_0xb5edc6(0x1c1)](),
|
|
2087
|
+
'description': _0x38e391[_0xb5edc6(0x1c1)]()[_0xb5edc6(0x267)](),
|
|
2088
|
+
'priority': _0x38e391[_0xb5edc6(_0x3f6c6c._0x509662)]([
|
|
2089
|
+
_0xb5edc6(_0x3f6c6c._0x1f4488),
|
|
2090
|
+
'medium',
|
|
2091
|
+
_0xb5edc6(_0x3f6c6c._0xa95cb3),
|
|
2092
|
+
_0xb5edc6(_0x3f6c6c._0x15f62f)
|
|
2093
|
+
])['optional']()
|
|
2125
2094
|
}))
|
|
2126
|
-
}, async
|
|
2127
|
-
const
|
|
2095
|
+
}, async _0x560627 => {
|
|
2096
|
+
const _0x4680be = _0xb5edc6;
|
|
2128
2097
|
try {
|
|
2129
|
-
return textResult(await
|
|
2130
|
-
} catch (
|
|
2131
|
-
return textResult(
|
|
2098
|
+
return textResult(await _0x16f095[_0x4680be(0x173)](_0x560627));
|
|
2099
|
+
} catch (_0x34228e) {
|
|
2100
|
+
return textResult(_0x34228e instanceof Error ? _0x34228e[_0x4680be(_0x54f46a._0x2e1086)] : _0x4680be(0x13d), !![]);
|
|
2132
2101
|
}
|
|
2133
|
-
}),
|
|
2134
|
-
'channel':
|
|
2135
|
-
'task_numbers':
|
|
2136
|
-
'message_ids':
|
|
2137
|
-
'evidence':
|
|
2138
|
-
'create_thread':
|
|
2139
|
-
'create_task':
|
|
2140
|
-
}))[
|
|
2141
|
-
'idempotency_key':
|
|
2142
|
-
}, async
|
|
2143
|
-
const
|
|
2102
|
+
}), _0x5654d0[_0xb5edc6(_0x3f6c6c._0x247ea4)](_0xb5edc6(0xfd), _0xb5edc6(0x15c), {
|
|
2103
|
+
'channel': _0x38e391[_0xb5edc6(0x1c1)](),
|
|
2104
|
+
'task_numbers': _0x38e391[_0xb5edc6(_0x3f6c6c._0x56360d)](_0x38e391[_0xb5edc6(0x113)]())[_0xb5edc6(0x267)](),
|
|
2105
|
+
'message_ids': _0x38e391[_0xb5edc6(0x159)](_0x38e391[_0xb5edc6(0x1c1)]())[_0xb5edc6(_0x3f6c6c._0x4067fd)](),
|
|
2106
|
+
'evidence': _0x38e391['record'](_0x38e391[_0xb5edc6(0x1c1)](), _0x38e391[_0xb5edc6(_0x3f6c6c._0x26b6b0)]({
|
|
2107
|
+
'create_thread': _0x38e391['unknown']()['optional'](),
|
|
2108
|
+
'create_task': _0x38e391[_0xb5edc6(0x1b6)]()[_0xb5edc6(0x267)]()
|
|
2109
|
+
}))['optional'](),
|
|
2110
|
+
'idempotency_key': _0x38e391['string']()['optional']()
|
|
2111
|
+
}, async _0x1241fa => {
|
|
2112
|
+
const _0x6405fb = _0xb5edc6;
|
|
2144
2113
|
try {
|
|
2145
|
-
return textResult(await
|
|
2146
|
-
} catch (
|
|
2147
|
-
return textResult(
|
|
2114
|
+
return textResult(await _0x16f095[_0x6405fb(0xfd)](_0x1241fa));
|
|
2115
|
+
} catch (_0x3876e4) {
|
|
2116
|
+
return textResult(_0x3876e4 instanceof Error ? _0x3876e4[_0x6405fb(_0x459390._0x4af86a)] : _0x6405fb(0x1f4), !![]);
|
|
2148
2117
|
}
|
|
2149
|
-
}),
|
|
2150
|
-
'channel':
|
|
2151
|
-
'task_number':
|
|
2152
|
-
'idempotency_key':
|
|
2153
|
-
}, async
|
|
2154
|
-
const
|
|
2118
|
+
}), _0x5654d0[_0xb5edc6(_0x3f6c6c._0x247ea4)](_0xb5edc6(_0x3f6c6c._0x4f7e80), _0xb5edc6(0x135), {
|
|
2119
|
+
'channel': _0x38e391[_0xb5edc6(_0x3f6c6c._0xb59266)](),
|
|
2120
|
+
'task_number': _0x38e391[_0xb5edc6(_0x3f6c6c._0x5afea0)](),
|
|
2121
|
+
'idempotency_key': _0x38e391[_0xb5edc6(_0x3f6c6c._0x193487)]()['optional']()
|
|
2122
|
+
}, async _0x47b683 => {
|
|
2123
|
+
const _0x41bd79 = _0xb5edc6;
|
|
2155
2124
|
try {
|
|
2156
|
-
return textResult(await
|
|
2157
|
-
} catch (
|
|
2158
|
-
return textResult(
|
|
2125
|
+
return textResult(await _0x16f095[_0x41bd79(_0x451628._0x463a13)](_0x47b683));
|
|
2126
|
+
} catch (_0xe459fc) {
|
|
2127
|
+
return textResult(_0xe459fc instanceof Error ? _0xe459fc['message'] : _0x41bd79(_0x451628._0x4d717f), !![]);
|
|
2159
2128
|
}
|
|
2160
|
-
}),
|
|
2161
|
-
'channel':
|
|
2162
|
-
'task_number':
|
|
2163
|
-
'status':
|
|
2129
|
+
}), _0x5654d0['tool']('update_task_status', 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2130
|
+
'channel': _0x38e391['string'](),
|
|
2131
|
+
'task_number': _0x38e391[_0xb5edc6(_0x3f6c6c._0x178d71)](),
|
|
2132
|
+
'status': _0x38e391[_0xb5edc6(0x1ca)]([
|
|
2164
2133
|
'todo',
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2134
|
+
_0xb5edc6(_0x3f6c6c._0x15e762),
|
|
2135
|
+
_0xb5edc6(0x269),
|
|
2136
|
+
'done'
|
|
2168
2137
|
]),
|
|
2169
|
-
'idempotency_key':
|
|
2170
|
-
}, async
|
|
2171
|
-
const
|
|
2138
|
+
'idempotency_key': _0x38e391[_0xb5edc6(_0x3f6c6c._0x326165)]()[_0xb5edc6(0x267)]()
|
|
2139
|
+
}, async _0xe0eb47 => {
|
|
2140
|
+
const _0x1005fa = _0xb5edc6;
|
|
2172
2141
|
try {
|
|
2173
|
-
return textResult(await
|
|
2174
|
-
} catch (
|
|
2175
|
-
return textResult(
|
|
2142
|
+
return textResult(await _0x16f095[_0x1005fa(0x255)](_0xe0eb47));
|
|
2143
|
+
} catch (_0x4163cb) {
|
|
2144
|
+
return textResult(_0x4163cb instanceof Error ? _0x4163cb[_0x1005fa(0x24b)] : _0x1005fa(_0x459920._0x10b7f8), !![]);
|
|
2176
2145
|
}
|
|
2177
|
-
}),
|
|
2178
|
-
'channel':
|
|
2179
|
-
'file_path':
|
|
2180
|
-
}, async
|
|
2181
|
-
const
|
|
2146
|
+
}), _0x5654d0['tool'](_0xb5edc6(_0x3f6c6c._0x9a6899), _0xb5edc6(0x279), {
|
|
2147
|
+
'channel': _0x38e391[_0xb5edc6(_0x3f6c6c._0x326165)](),
|
|
2148
|
+
'file_path': _0x38e391['string']()
|
|
2149
|
+
}, async _0x36092d => {
|
|
2150
|
+
const _0x45ee61 = _0xb5edc6;
|
|
2182
2151
|
try {
|
|
2183
|
-
return textResult(await
|
|
2184
|
-
} catch (
|
|
2185
|
-
return textResult(
|
|
2152
|
+
return textResult(await _0x16f095[_0x45ee61(_0x47fb14._0x37bd52)](_0x36092d));
|
|
2153
|
+
} catch (_0x8f0e3) {
|
|
2154
|
+
return textResult(_0x8f0e3 instanceof Error ? _0x8f0e3['message'] : _0x45ee61(_0x47fb14._0x5dc439), !![]);
|
|
2186
2155
|
}
|
|
2187
|
-
}),
|
|
2188
|
-
const
|
|
2156
|
+
}), _0x5654d0['tool'](_0xb5edc6(_0x3f6c6c._0x1427be), _0xb5edc6(_0x3f6c6c._0x1abfa7), { 'attachment_id': _0x38e391[_0xb5edc6(0x1c1)]() }, async _0x3395fd => {
|
|
2157
|
+
const _0x2edc8c = _0xb5edc6;
|
|
2189
2158
|
try {
|
|
2190
|
-
return textResult(await
|
|
2191
|
-
} catch (
|
|
2192
|
-
return textResult(
|
|
2159
|
+
return textResult(await _0x16f095['view_file'](_0x3395fd));
|
|
2160
|
+
} catch (_0x1fa905) {
|
|
2161
|
+
return textResult(_0x1fa905 instanceof Error ? _0x1fa905[_0x2edc8c(0x24b)] : _0x2edc8c(_0x2334ed._0x79d89d), !![]);
|
|
2193
2162
|
}
|
|
2194
|
-
}),
|
|
2195
|
-
const
|
|
2163
|
+
}), _0x5654d0[_0xb5edc6(0x114)](_0xb5edc6(_0x3f6c6c._0x551657), _0xb5edc6(_0x3f6c6c._0x413166), { 'work_key': _0x38e391['string']() }, async _0x341662 => {
|
|
2164
|
+
const _0x168145 = _0xb5edc6;
|
|
2196
2165
|
try {
|
|
2197
|
-
return textResult(await
|
|
2198
|
-
} catch (
|
|
2199
|
-
return textResult(
|
|
2166
|
+
return textResult(await _0x16f095[_0x168145(_0x5948c8._0x37a3b1)](_0x341662));
|
|
2167
|
+
} catch (_0x3bc0b0) {
|
|
2168
|
+
return textResult(_0x3bc0b0 instanceof Error ? _0x3bc0b0['message'] : _0x168145(_0x5948c8._0x3551dc), !![]);
|
|
2200
2169
|
}
|
|
2201
|
-
}),
|
|
2202
|
-
const
|
|
2170
|
+
}), _0x5654d0['tool'](_0xb5edc6(_0x3f6c6c._0x1f387f), 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x38e391[_0xb5edc6(0x1c1)]() }, async _0xdafcd1 => {
|
|
2171
|
+
const _0x180f44 = _0xb5edc6;
|
|
2203
2172
|
try {
|
|
2204
|
-
return textResult(await
|
|
2205
|
-
} catch (
|
|
2206
|
-
return textResult(
|
|
2173
|
+
return textResult(await _0x16f095['get_worker_result'](_0xdafcd1));
|
|
2174
|
+
} catch (_0x161d2b) {
|
|
2175
|
+
return textResult(_0x161d2b instanceof Error ? _0x161d2b[_0x180f44(_0x2331ab._0x3ae404)] : 'get_worker_result\x20failed', !![]);
|
|
2207
2176
|
}
|
|
2208
|
-
}),
|
|
2209
|
-
'work_key':
|
|
2210
|
-
'result':
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2177
|
+
}), _0x5654d0[_0xb5edc6(0x114)](_0xb5edc6(0x137), _0xb5edc6(0x22c), {
|
|
2178
|
+
'work_key': _0x38e391['string'](),
|
|
2179
|
+
'result': _0x38e391[_0xb5edc6(0x1ca)]([
|
|
2180
|
+
_0xb5edc6(_0x3f6c6c._0x327641),
|
|
2181
|
+
_0xb5edc6(_0x3f6c6c._0x34930b),
|
|
2182
|
+
_0xb5edc6(0x20e)
|
|
2214
2183
|
]),
|
|
2215
|
-
'summary':
|
|
2216
|
-
'decisions':
|
|
2217
|
-
'files_changed':
|
|
2218
|
-
'open_issues':
|
|
2219
|
-
'next_steps':
|
|
2220
|
-
}, async
|
|
2221
|
-
const
|
|
2184
|
+
'summary': _0x38e391[_0xb5edc6(_0x3f6c6c._0x206e5c)](),
|
|
2185
|
+
'decisions': _0x38e391['array'](_0x38e391['string']())['optional'](),
|
|
2186
|
+
'files_changed': _0x38e391['array'](_0x38e391[_0xb5edc6(_0x3f6c6c._0x3754ef)]())[_0xb5edc6(0x267)](),
|
|
2187
|
+
'open_issues': _0x38e391['array'](_0x38e391[_0xb5edc6(0x1c1)]())[_0xb5edc6(0x267)](),
|
|
2188
|
+
'next_steps': _0x38e391[_0xb5edc6(0x159)](_0x38e391[_0xb5edc6(_0x3f6c6c._0x281a0d)]())[_0xb5edc6(0x267)]()
|
|
2189
|
+
}, async _0xf1efed => {
|
|
2190
|
+
const _0x3d4a83 = _0xb5edc6;
|
|
2222
2191
|
try {
|
|
2223
|
-
return textResult(await
|
|
2224
|
-
} catch (
|
|
2225
|
-
return textResult(
|
|
2192
|
+
return textResult(await _0x16f095[_0x3d4a83(_0x995851._0x2cc747)](_0xf1efed));
|
|
2193
|
+
} catch (_0x4070fb) {
|
|
2194
|
+
return textResult(_0x4070fb instanceof Error ? _0x4070fb[_0x3d4a83(0x24b)] : _0x3d4a83(_0x995851._0x226f7c), !![]);
|
|
2226
2195
|
}
|
|
2227
|
-
}),
|
|
2228
|
-
'work_key':
|
|
2229
|
-
'reason':
|
|
2230
|
-
}, async
|
|
2231
|
-
const
|
|
2196
|
+
}), _0x5654d0[_0xb5edc6(_0x3f6c6c._0x247ea4)](_0xb5edc6(0x123), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2197
|
+
'work_key': _0x38e391[_0xb5edc6(0x1c1)](),
|
|
2198
|
+
'reason': _0x38e391['string']()
|
|
2199
|
+
}, async _0x3ab6ca => {
|
|
2200
|
+
const _0x3000ef = _0xb5edc6;
|
|
2232
2201
|
try {
|
|
2233
|
-
return textResult(await
|
|
2234
|
-
} catch (
|
|
2235
|
-
return textResult(
|
|
2202
|
+
return textResult(await _0x16f095[_0x3000ef(_0xc28660._0x3318eb)](_0x3ab6ca));
|
|
2203
|
+
} catch (_0x82362a) {
|
|
2204
|
+
return textResult(_0x82362a instanceof Error ? _0x82362a[_0x3000ef(_0xc28660._0x54eabd)] : _0x3000ef(_0xc28660._0x56ee37), !![]);
|
|
2236
2205
|
}
|
|
2237
|
-
}),
|
|
2238
|
-
const
|
|
2206
|
+
}), _0xad895?.[_0xb5edc6(_0x3f6c6c._0x1d4273)] && _0x5654d0[_0xb5edc6(0x114)](_0xb5edc6(_0x3f6c6c._0x16d01b), _0xb5edc6(0x1c4), { 'work_key': _0x38e391[_0xb5edc6(_0x3f6c6c._0x3277ee)]() }, async _0x508106 => {
|
|
2207
|
+
const _0x332c2d = _0xb5edc6;
|
|
2239
2208
|
try {
|
|
2240
|
-
return textResult(await
|
|
2241
|
-
} catch (
|
|
2242
|
-
return textResult(
|
|
2209
|
+
return textResult(await _0x16f095[_0x332c2d(_0x4918f3._0x1329b1)](_0x508106));
|
|
2210
|
+
} catch (_0x571d19) {
|
|
2211
|
+
return textResult(_0x571d19 instanceof Error ? _0x571d19[_0x332c2d(_0x4918f3._0x359a47)] : 'mark_waiting_input\x20failed', !![]);
|
|
2243
2212
|
}
|
|
2244
2213
|
});
|
|
2245
2214
|
}
|
|
2246
|
-
async function createChatBridgeServer(
|
|
2247
|
-
const
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
'
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
'
|
|
2257
|
-
'server': _0x10f471
|
|
2215
|
+
async function createChatBridgeServer(_0x137477) {
|
|
2216
|
+
const _0x77f7b0 = {
|
|
2217
|
+
_0x1a5484: 0x27a,
|
|
2218
|
+
_0x3f95b5: 0x26c
|
|
2219
|
+
}, _0x4c16b4 = _0x6aa24e, {McpServer: _0x4d3e4c} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x499ff9 = new _0x4d3e4c({
|
|
2220
|
+
'name': _0x4c16b4(_0x77f7b0._0x1a5484),
|
|
2221
|
+
'version': '0.0.0'
|
|
2222
|
+
}), _0x2debf6 = createChatBridgeHandlers(_0x137477);
|
|
2223
|
+
return await registerChatBridgeTools(_0x499ff9, _0x2debf6, { 'workerMode': _0x137477[_0x4c16b4(_0x77f7b0._0x3f95b5)] }), {
|
|
2224
|
+
'handlers': _0x2debf6,
|
|
2225
|
+
'server': _0x499ff9
|
|
2258
2226
|
};
|
|
2259
2227
|
}
|
|
2260
|
-
function readFlag(
|
|
2261
|
-
const
|
|
2262
|
-
if (
|
|
2228
|
+
function readFlag(_0x15a9af, _0x402e5a) {
|
|
2229
|
+
const _0x5804d1 = _0x15a9af['indexOf'](_0x402e5a);
|
|
2230
|
+
if (_0x5804d1 === -0x1)
|
|
2263
2231
|
return void 0x0;
|
|
2264
|
-
return
|
|
2232
|
+
return _0x15a9af[_0x5804d1 + 0x1];
|
|
2265
2233
|
}
|
|
2266
|
-
function parseChatBridgeArgs(
|
|
2267
|
-
const
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
throw new Error(_0x36442a(_0x5b8700._0x24cfdc));
|
|
2234
|
+
function parseChatBridgeArgs(_0x22c7e1) {
|
|
2235
|
+
const _0x423713 = {
|
|
2236
|
+
_0x5826fc: 0x25e,
|
|
2237
|
+
_0x27a7cd: 0x198,
|
|
2238
|
+
_0x2b5a08: 0x11a,
|
|
2239
|
+
_0x5c0647: 0x1ff,
|
|
2240
|
+
_0x7e24c: 0x10f,
|
|
2241
|
+
_0x397c5c: 0x214,
|
|
2242
|
+
_0x246b16: 0x1f8,
|
|
2243
|
+
_0x245d30: 0x111
|
|
2244
|
+
}, _0x5c788f = _0x6aa24e, _0x8debd0 = readFlag(_0x22c7e1, _0x5c788f(0x1aa)), _0x2ceb23 = readFlag(_0x22c7e1, _0x5c788f(_0x423713._0x5826fc)), _0x1ef798 = readFlag(_0x22c7e1, _0x5c788f(0x201)), _0x1eff94 = readFlag(_0x22c7e1, _0x5c788f(_0x423713._0x27a7cd)) ?? 'http://localhost:8121', _0x246e0f = readFlag(_0x22c7e1, _0x5c788f(_0x423713._0x2b5a08)), _0x1d3c39 = readFlag(_0x22c7e1, _0x5c788f(_0x423713._0x5c0647)), _0x34946a = readFlag(_0x22c7e1, _0x5c788f(0x1cb)), _0xa8393b = readFlag(_0x22c7e1, _0x5c788f(0x10e)), _0x453d95 = readFlag(_0x22c7e1, _0x5c788f(0x122)), _0x316a4e = _0x22c7e1[_0x5c788f(_0x423713._0x7e24c)](_0x5c788f(0x259)), _0x24439f = _0x1ef798 === void 0x0 ? void 0x0 : Number['parseInt'](_0x1ef798, 0xa);
|
|
2245
|
+
if (!_0x8debd0)
|
|
2246
|
+
throw new Error(_0x5c788f(_0x423713._0x397c5c));
|
|
2247
|
+
if (!_0x2ceb23)
|
|
2248
|
+
throw new Error(_0x5c788f(0x26a));
|
|
2249
|
+
if (_0x1ef798 !== void 0x0 && (_0x24439f === void 0x0 || !Number[_0x5c788f(_0x423713._0x246b16)](_0x24439f) || _0x24439f < 0x0))
|
|
2250
|
+
throw new Error(_0x5c788f(0x161));
|
|
2284
2251
|
return {
|
|
2285
|
-
'agentId':
|
|
2286
|
-
'daemonApiKey':
|
|
2287
|
-
'daemonLocalUrl':
|
|
2288
|
-
'initialLastSeenSeq':
|
|
2289
|
-
'sessionId':
|
|
2290
|
-
'serverUrl':
|
|
2291
|
-
'workerModeEnabled':
|
|
2292
|
-
'workerSessionId':
|
|
2293
|
-
'workerThreadTarget':
|
|
2294
|
-
'workerMode':
|
|
2252
|
+
'agentId': _0x8debd0,
|
|
2253
|
+
'daemonApiKey': _0x2ceb23,
|
|
2254
|
+
'daemonLocalUrl': _0x246e0f,
|
|
2255
|
+
'initialLastSeenSeq': _0x24439f,
|
|
2256
|
+
'sessionId': _0x1d3c39,
|
|
2257
|
+
'serverUrl': _0x1eff94,
|
|
2258
|
+
'workerModeEnabled': _0x34946a === void 0x0 ? void 0x0 : _0x34946a !== _0x5c788f(_0x423713._0x245d30),
|
|
2259
|
+
'workerSessionId': _0xa8393b,
|
|
2260
|
+
'workerThreadTarget': _0x453d95,
|
|
2261
|
+
'workerMode': _0x316a4e
|
|
2295
2262
|
};
|
|
2296
2263
|
}
|
|
2297
|
-
async function runChatBridgeCli(
|
|
2298
|
-
const
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
'
|
|
2304
|
-
'
|
|
2305
|
-
'
|
|
2306
|
-
'daemonLocalUrl': _0x35b8b6[_0x17ad82(0x238)],
|
|
2264
|
+
async function runChatBridgeCli(_0x2a3e85) {
|
|
2265
|
+
const _0x459e46 = {
|
|
2266
|
+
_0x33335e: 0x148,
|
|
2267
|
+
_0x2d2b90: 0x1b5
|
|
2268
|
+
}, _0x352c7f = _0x6aa24e, _0x305e83 = parseChatBridgeArgs(_0x2a3e85), {StdioServerTransport: _0x4ca15a} = await import(_0x352c7f(0x21c)), _0x57f6f1 = createInternalAgentClient(_0x305e83), _0x12c85a = createAttachmentCache(), _0x2b95d5 = await createChatBridgeServer({
|
|
2269
|
+
'agentId': _0x305e83['agentId'],
|
|
2270
|
+
'attachmentCache': _0x12c85a,
|
|
2271
|
+
'client': _0x57f6f1,
|
|
2272
|
+
'daemonLocalUrl': _0x305e83[_0x352c7f(_0x459e46._0x33335e)],
|
|
2307
2273
|
'uploadPreparer': prepareUploadFile,
|
|
2308
|
-
'workerModeEnabled':
|
|
2309
|
-
'workerMode':
|
|
2274
|
+
'workerModeEnabled': _0x305e83[_0x352c7f(0x109)],
|
|
2275
|
+
'workerMode': _0x305e83[_0x352c7f(0x26c)]
|
|
2310
2276
|
});
|
|
2311
|
-
await
|
|
2277
|
+
await _0x2b95d5[_0x352c7f(_0x459e46._0x2d2b90)][_0x352c7f(0x17f)](new _0x4ca15a());
|
|
2312
2278
|
}
|
|
2313
|
-
var executedAsEntry = process[
|
|
2314
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2279
|
+
var executedAsEntry = process[_0x6aa24e(0x13e)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x6aa24e(0x243)] : ![];
|
|
2280
|
+
executedAsEntry && await runChatBridgeCli(process[_0x6aa24e(0x13e)][_0x6aa24e(0x177)](0x2));
|
|
2315
2281
|
export {
|
|
2316
2282
|
createChatBridgeHandlers,
|
|
2317
2283
|
createChatBridgeServer,
|