@dscord/daemon 0.1.57 → 0.1.59

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.
Files changed (3) hide show
  1. package/dist/chat-bridge.js +2014 -1999
  2. package/dist/index.js +11428 -10804
  3. package/package.json +1 -1
@@ -1,2360 +1,2375 @@
1
- const _0x1e865e = _0x9c1d;
2
- (function (_0x1a1412, _0x2b6326) {
3
- const _0x3bfeef = {
4
- _0x823835: 0x203,
5
- _0x23f0d6: 0x242,
6
- _0x13ce2f: 0x2c8,
7
- _0x278e27: 0x216,
8
- _0x7616a9: 0x1e8,
9
- _0x4b0712: 0x262
10
- }, _0x516196 = _0x9c1d, _0x591533 = _0x1a1412();
11
- while (!![]) {
12
- try {
13
- const _0x5f0b17 = -parseInt(_0x516196(0x26b)) / 0x1 + parseInt(_0x516196(_0x3bfeef._0x823835)) / 0x2 * (parseInt(_0x516196(_0x3bfeef._0x23f0d6)) / 0x3) + -parseInt(_0x516196(0x19e)) / 0x4 + -parseInt(_0x516196(_0x3bfeef._0x13ce2f)) / 0x5 * (parseInt(_0x516196(0x1ad)) / 0x6) + -parseInt(_0x516196(_0x3bfeef._0x278e27)) / 0x7 + parseInt(_0x516196(_0x3bfeef._0x7616a9)) / 0x8 + parseInt(_0x516196(_0x3bfeef._0x4b0712)) / 0x9;
14
- if (_0x5f0b17 === _0x2b6326)
15
- break;
16
- else
17
- _0x591533['push'](_0x591533['shift']());
18
- } catch (_0x3f5c62) {
19
- _0x591533['push'](_0x591533['shift']());
20
- }
21
- }
22
- }(_0x5d96, 0xda40b));
23
- import { pathToFileURL } from 'node:url';
24
- import {
25
- mkdir,
26
- readFile,
27
- readdir,
28
- stat,
29
- writeFile
30
- } from 'node:fs/promises';
31
- import { homedir } from 'node:os';
32
- import _0x2974da from 'node:path';
33
- var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
34
- '.csv': _0x1e865e(0x235),
35
- '.gif': _0x1e865e(0x241),
36
- '.jpeg': _0x1e865e(0x1ce),
37
- '.jpg': _0x1e865e(0x1ce),
38
- '.json': _0x1e865e(0x1b7),
39
- '.md': 'text/markdown',
40
- '.pdf': _0x1e865e(0x19d),
41
- '.png': _0x1e865e(0x2d8),
42
- '.svg': _0x1e865e(0x22d),
43
- '.txt': _0x1e865e(0x16a),
44
- '.webp': _0x1e865e(0x189),
45
- '.xml': _0x1e865e(0x24d),
46
- '.zip': _0x1e865e(0x2dd)
47
- };
48
- function guessContentType(_0xbd05e4) {
49
- const _0xdd82e8 = { _0x46482b: 0x25e }, _0x1d4c11 = _0x1e865e;
50
- return MIME_BY_EXTENSION[_0x2974da[_0x1d4c11(0x210)](_0xbd05e4)[_0x1d4c11(_0xdd82e8._0x46482b)]()] ?? _0x1d4c11(0x225);
51
- }
52
- function safeFilename(_0x1b6919) {
53
- const _0xdc5d9d = _0x1e865e;
54
- return _0x1b6919[_0xdc5d9d(0x1a7)](/[\\/]/g, '-');
55
- }
56
- function extensionFor(_0x40af45) {
57
- const _0x2fa61d = {
58
- _0x33faca: 0x1ff,
59
- _0x5a054: 0x1bf
60
- }, _0x193286 = _0x1e865e, _0x5ebbca = Object['entries'](MIME_BY_EXTENSION)[_0x193286(_0x2fa61d._0x33faca)](([, _0x2f113c]) => _0x2f113c === _0x40af45);
61
- return _0x5ebbca?.[0x0] ?? _0x193286(_0x2fa61d._0x5a054);
62
- }
63
- async function prepareUploadFile(_0x1718a8, _0x3e5ca4 = {}) {
64
- const _0x43cb9b = {
65
- _0x979ad5: 0x2a1,
66
- _0x5e2bfa: 0x2b5,
67
- _0x4db2d3: 0x1b8,
68
- _0xeabc10: 0x158,
69
- _0x20b912: 0x1a0
70
- }, _0x20a6d5 = _0x1e865e;
71
- if (!_0x2974da['isAbsolute'](_0x1718a8))
72
- throw new Error(_0x20a6d5(_0x43cb9b._0x979ad5));
73
- const _0x3ad9b3 = await stat(_0x1718a8)[_0x20a6d5(_0x43cb9b._0x5e2bfa)](() => null);
74
- if (!_0x3ad9b3 || !_0x3ad9b3[_0x20a6d5(0x256)]())
75
- throw new Error(_0x20a6d5(0x2db) + _0x1718a8);
76
- const _0x42397e = _0x3e5ca4[_0x20a6d5(0x16d)] ?? DEFAULT_MAX_FILE_SIZE;
77
- if (_0x3ad9b3['size'] > _0x42397e)
78
- throw new Error(_0x20a6d5(0x1df) + _0x3ad9b3[_0x20a6d5(_0x43cb9b._0x4db2d3)]);
79
- const _0x30b9b1 = await readFile(_0x1718a8), _0x2b1024 = _0x2974da[_0x20a6d5(_0x43cb9b._0xeabc10)](_0x1718a8);
80
- return {
81
- 'contentBase64': _0x30b9b1[_0x20a6d5(_0x43cb9b._0x20b912)](_0x20a6d5(0x2b6)),
82
- 'contentType': guessContentType(_0x2b1024),
83
- 'filename': _0x2b1024,
84
- 'sizeBytes': _0x3ad9b3[_0x20a6d5(_0x43cb9b._0x4db2d3)]
85
- };
86
- }
87
- function createAttachmentCache(_0x591876 = {}) {
88
- const _0x3689c3 = {
89
- _0x1a4fca: 0x1e7,
90
- _0x48c1be: 0x1a1,
91
- _0x4408bf: 0x1e3
92
- }, _0x17714e = {
93
- _0x412e96: 0x25f,
94
- _0x840ab1: 0x20b
95
- }, _0x2545e1 = { _0x4a3346: 0x1ff }, _0x277e07 = _0x1e865e, _0x341f55 = _0x591876[_0x277e07(_0x3689c3._0x1a4fca)] ?? _0x2974da['join'](homedir(), _0x277e07(_0x3689c3._0x48c1be), _0x277e07(_0x3689c3._0x4408bf));
96
- return {
97
- 'cacheDir': _0x341f55,
98
- async 'findCachedPath'(_0xea3df2) {
99
- const _0xac78ef = _0x277e07;
100
- await mkdir(_0x341f55, { 'recursive': !![] });
101
- const _0x2d065c = await readdir(_0x341f55), _0x205905 = _0x2d065c[_0xac78ef(_0x2545e1._0x4a3346)](_0xda4d6e => _0xda4d6e['startsWith'](_0xea3df2 + '-') || _0xda4d6e[_0xac78ef(0x1a4)](_0xea3df2));
102
- return _0x205905 ? _0x2974da[_0xac78ef(0x1d1)](_0x341f55, _0x205905) : null;
103
- },
104
- async 'save'(_0x107dd1) {
105
- const _0x38dac3 = _0x277e07;
106
- await mkdir(_0x341f55, { 'recursive': !![] });
107
- const _0x3663d0 = _0x107dd1['originalFilename']?.[_0x38dac3(0x1c0)]() ? safeFilename(_0x107dd1[_0x38dac3(0x1af)]) : '' + _0x107dd1[_0x38dac3(0x20b)] + extensionFor(_0x107dd1[_0x38dac3(_0x17714e._0x412e96)]), _0x5511b2 = _0x2974da[_0x38dac3(0x1d1)](_0x341f55, _0x107dd1[_0x38dac3(_0x17714e._0x840ab1)] + '-' + _0x3663d0);
108
- return await writeFile(_0x5511b2, _0x107dd1[_0x38dac3(0x182)]), _0x5511b2;
109
- }
110
- };
111
- }
112
- import {
113
- createHash,
114
- randomUUID
115
- } from 'node:crypto';
116
- var UNSUPPORTED_TARGET_MESSAGE = _0x1e865e(0x2af);
117
- function ensureSegment(_0x5052d0) {
118
- const _0x153de1 = _0x5052d0['trim']();
119
- if (!_0x153de1 || _0x153de1['includes'](':'))
120
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
121
- return _0x153de1;
122
- }
123
- function parseThreadParts(_0x1c131d) {
124
- const _0x9517b = {
125
- _0x5257c6: 0x2ae,
126
- _0xcc3a7c: 0x198,
127
- _0x4f7d8c: 0x198
128
- }, _0x7df097 = _0x1e865e, _0x3991a4 = _0x1c131d[_0x7df097(_0x9517b._0x5257c6)](':');
129
- if (_0x3991a4[_0x7df097(_0x9517b._0xcc3a7c)] < 0x1 || _0x3991a4[_0x7df097(_0x9517b._0x4f7d8c)] > 0x2)
130
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
131
- return {
132
- 'channelName': ensureSegment(_0x3991a4[0x0] ?? ''),
133
- 'threadShortId': _0x3991a4[0x1] ? ensureSegment(_0x3991a4[0x1]) : null
134
- };
135
- }
136
- function parseTarget(_0x267208) {
137
- const _0x25f4c5 = {
138
- _0x3aaeb1: 0x1c0,
139
- _0x24d689: 0x20c,
140
- _0x53e4e3: 0x279,
141
- _0x562f5e: 0x21f,
142
- _0x4141a5: 0x1a4,
143
- _0x10d5aa: 0x165,
144
- _0x278d6d: 0x229,
145
- _0x4e2189: 0x279,
146
- _0x180ef0: 0x20c
147
- }, _0x11bd73 = _0x1e865e, _0x8f61ab = _0x267208[_0x11bd73(_0x25f4c5._0x3aaeb1)]();
148
- if (!_0x8f61ab)
149
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
150
- if (_0x8f61ab['startsWith']('#')) {
151
- const _0x5cdc26 = parseThreadParts(_0x8f61ab[_0x11bd73(0x229)](0x1)), _0x3d91bd = '#' + _0x5cdc26[_0x11bd73(_0x25f4c5._0x24d689)];
152
- if (!_0x5cdc26[_0x11bd73(_0x25f4c5._0x53e4e3)])
153
- return {
154
- 'channelName': _0x5cdc26['channelName'],
155
- 'channelTarget': _0x3d91bd,
156
- 'kind': _0x11bd73(_0x25f4c5._0x562f5e),
157
- 'target': _0x3d91bd
158
- };
159
- return {
160
- 'channelName': _0x5cdc26[_0x11bd73(0x20c)],
161
- 'channelTarget': _0x3d91bd,
162
- 'kind': _0x11bd73(0x1de),
163
- 'target': _0x3d91bd + ':' + _0x5cdc26[_0x11bd73(0x279)],
164
- 'threadShortId': _0x5cdc26['threadShortId']
165
- };
166
- }
167
- if (_0x8f61ab[_0x11bd73(_0x25f4c5._0x4141a5)](_0x11bd73(_0x25f4c5._0x10d5aa))) {
168
- const _0x3fa94d = parseThreadParts(_0x8f61ab[_0x11bd73(_0x25f4c5._0x278d6d)](0x3));
169
- if (!_0x3fa94d['channelName']['startsWith']('dm-'))
170
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
171
- const _0x4bb0c0 = _0x11bd73(_0x25f4c5._0x10d5aa) + _0x3fa94d['channelName'];
172
- if (!_0x3fa94d[_0x11bd73(_0x25f4c5._0x4e2189)])
173
- return {
174
- 'channelName': _0x3fa94d[_0x11bd73(_0x25f4c5._0x180ef0)],
175
- 'channelTarget': _0x4bb0c0,
176
- 'kind': _0x11bd73(0x21f),
177
- 'target': _0x4bb0c0
178
- };
179
- return {
180
- 'channelName': _0x3fa94d[_0x11bd73(0x20c)],
181
- 'channelTarget': _0x4bb0c0,
182
- 'kind': _0x11bd73(0x1de),
183
- 'target': _0x4bb0c0 + ':' + _0x3fa94d[_0x11bd73(_0x25f4c5._0x53e4e3)],
184
- 'threadShortId': _0x3fa94d['threadShortId']
185
- };
186
- }
187
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
188
- }
189
- function _0x5d96() {
190
- const _0xaba391 = [
191
- 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
192
- 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
193
- 'ywXS',
194
- 'zM9Yy2vszwzYzxnO',
195
- 'C2v0',
196
- 'BgLZDf9Zzxj2zxiGzMfPBgvK',
197
- 'Ahr0Chm6',
198
- 'l3nLBMq',
199
- 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
200
- 'pgvTChr5pG',
201
- 'yM9KEu1HCMTKB3DU',
202
- 'ig1LC3nHz2u9',
203
- 'vgHYzwfKihrHCMDLDdOG',
204
- 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
205
- 'Bg9JywXLq29TCgfYzq',
206
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
207
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
208
- 'zgfLBw9Utg9JywXvCMW',
209
- 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
210
- 'BgLZDf9Zzxj2zxi',
211
- 'zMfSC2u',
212
- 'yxr0ywnOBwvUDf9Pzhm',
213
- 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
214
- 'DgHYzwfKx3rHCMDLDa',
215
- 'zgvSzxrL',
216
- 'C3rYAw5NAwz5',
217
- 'y2HPBgrYzw5eB25L',
218
- 'l2nVBNrLBNq',
219
- 'l2LUDgvYBMfSl2fNzw50lW',
220
- 'ywDNCMvNyxrLswq',
221
- 'DgHYzwfKswq',
222
- 'CMvJB3jK',
223
- 'ig1ZzZ0',
224
- 'y2HHBM5LBeLK',
225
- 'C3rHDhvZ',
226
- 'C3bSAxq',
227
- 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
228
- 'ihn0yxr1CZ0',
229
- 'zxHLy3v0Aw9Utw9Kzq',
230
- 'z2v0sg91CNm',
231
- 'C3vIDgfZA19UDw1IzxjZ',
232
- 'AwrLBxbVDgvUy3LFA2v5',
233
- 'y2f0y2G',
234
- 'yMfZzty0',
235
- 'BwvZC2fNzxm',
236
- 'AhvTyw4',
237
- 'Bwf0y2Hoyw1Ltg93zxi',
238
- 'A2LUza',
239
- 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
240
- 'ywjVCNq',
241
- 'l3jLy2vPDMu',
242
- 'DgL0Bgu',
243
- 'AwrSzq',
244
- 'igrVBMuP',
1
+ function _0x5b92() {
2
+ const _0x543c38 = [
3
+ 'DgHYzwfK',
4
+ 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
245
5
  'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
6
+ 'ignSywLTzwq',
7
+ 'DMLLD19MAwXL',
8
+ 'y2HHBM5LBeLK',
9
+ 'CMvZB2X2zvrHCMDLDa',
10
+ 'zxHWAxjLC0f0',
11
+ 'cGOTls0G',
12
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
13
+ 'r0vu',
14
+ 'C2L6zq',
15
+ 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
16
+ 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
17
+ 'icHPzdO',
18
+ 'CMvHzf9OAxn0B3j5',
19
+ 'B3jPz2LUywXgAwXLBMfTzq',
20
+ 'C2vUzgvYvhLWzq',
21
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
246
22
  'C2vYDMvYtMfTzq',
247
- 'CMvHzeHPC3rVCNK',
248
- 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
249
- 'zMLSzv9WyxrO',
250
- 'ls1Zzxj2zxiTDxjS',
251
- 'DxbKyxrL',
252
- 'mtiYndyWnxjfwuHMqG',
253
- 'z2v0rgf0zq',
254
- 'BgLZDfnLCNzLCG',
23
+ 'y3jLyxrLzef0',
24
+ 'DxjNzw50',
25
+ 'CgfYC2u',
26
+ 'ihn0yxr1CZ0',
255
27
  'igLUia',
256
- 'Aw5PDgLHBeXHC3rtzwvUu2vX',
257
- 'yxr0ywnOBwvUDenHy2HL',
258
- 'kgXLz2fJEsK',
259
- 'y29UDgvUDa',
260
- 'ywz0zxi',
261
- 'CM9VDe1LC3nHz2vjza',
262
- 'zMLSzw5HBwu',
263
- 'C3rHCNrLza',
264
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
265
- 'zgLZCg9ZAxrPB24',
266
- 'iJOGC3rHDhvZpq',
267
- 'z2v0u2vJB25KCW',
268
- 'Aw1Hz2uVCg5N',
269
- 'y2XHAw1FDgfZA3m',
270
- 'l3DVCMTLCNmVCgfYAW',
271
- 'rMLSzsbUB3qGzM91BMq6ia',
272
- 'z2v0',
273
- 'yxbWBgLJyxrPB24VEMLW',
274
- 'CgfYDgLJAxbHBNq',
275
- 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
28
+ 'ywjVCNrLza',
29
+ 'BwvZC2fNzq',
30
+ 'DhLWzq',
31
+ 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
32
+ 'mc4WlJa',
33
+ 'AgLNAa',
34
+ 'yxr0ywnOBwvUDf9Pza',
35
+ 'Dw5JBgfPBv90yxnRigzHAwXLza',
36
+ 'CMvHzeHPC3rVCNK',
37
+ 'ANnVBG',
38
+ 'C2nOzwr1BgvKrM9Y',
39
+ 'vgfZAYa',
40
+ 'BwfYA193ywL0Aw5Nx2LUChv0',
41
+ 'CMvZCg9UC2u',
42
+ 'yxr0ywnOBwvUDf9Pzhm',
43
+ 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
44
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
45
+ 'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
46
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
47
+ 'y2XHAw1uyxnRCW',
48
+ 'l3DVCMTLCNmVzgvSAxzLCG',
49
+ 'CMvHC29U',
50
+ 'C3rVCe1HAw49Dhj1zq',
51
+ 'DgHYzwfKtNvTyMvY',
52
+ 'l2HPC3rVCNK/',
53
+ 'D3m6',
54
+ 'ihr5Cgu9ywDLBNq',
55
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
56
+ 'ChjVDg9JB2W',
57
+ '4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
58
+ 'ywDLBNrZ',
59
+ 'Dg9gAxHLza',
60
+ 'igTPBMq9',
61
+ 'l3nLCNzLCG',
276
62
  'l3vWBg9Hza',
277
- 'tM8GDgfZA3mGzM91BMqU',
278
- 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
279
- 'Aw5FChjVz3jLC3m',
280
63
  'D29YA2vYCW',
281
- 'l2nVBNrLEhqTBwv0CMLJCW',
282
- 'DgfZA3m',
64
+ 'DgfYz2v0',
65
+ 'y2HPBgrYzw5eB25L',
66
+ 'Dw5RBM93BG',
67
+ 'Aw5PDgLHBeXHC3rtzwvUu2vX',
68
+ 'zMLSDgvY',
69
+ 'ywjVCNq',
70
+ 'ig1LC3nHz2u9',
283
71
  'ywDLBNq',
284
- 'C3vJy2vZCW',
285
- 'kg5VBMuP',
286
- 'zxHLy3v0Aw9Utw9Kzt0',
287
- 'yMfZzw5HBwu',
288
- 'ChjVDg9JB2W',
289
- 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
290
- 'zgfLBw9UqxbPs2v5',
291
- 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
292
- 'C2vUze1LC3nHz2u',
293
- 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
294
- 'rMLSzsb1CgXVywrLzdOG',
295
- 'BMfTzq',
72
+ 'C3rHCNrZv2L0Aa',
73
+ 'z2v0twLUDxrLCW',
74
+ 'z2v0u2vJB25KCW',
75
+ 'zxH0BMfTzq',
296
76
  'y29UBMvJDa',
297
- 'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
298
- 'BgLZDf90yxnRCYbMywLSzwq',
299
- 'zgvZy3jPChrPB24',
300
- 'zg06',
301
- 'BwvTyMvYCW',
302
- 'D29YA2vYrgLZCg9ZAxrPB24',
303
- 'Bwf4',
304
- 'ls1Hz2vUDc1Pza',
305
- 'Dgv4Dc9WBgfPBG',
306
- 'BwvTyMvY',
307
- 'yxr0ywnOBwvUDf9Pza',
308
- 'Bwf4rMLSzvnPEMvcExrLCW',
77
+ 'zMLSzv9WyxrO',
78
+ 'y29UDgvUDfr5Cgu',
79
+ 'w3nLCt0',
80
+ 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
309
81
  'v29YA2vYia',
310
- 'zw50CMLLCW',
311
- 'igTPBMq9',
312
- 'CgfYDgLJAxbHBNrjza',
313
- 'D29YA2vYsgfUzg9MzG',
314
- 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
315
- 'DgfZA051BwjLCG',
316
- 'yxjNDG',
317
- 'C2vUzgvYtMfTzq',
318
- 'AxnbCNjHEq',
319
- 'ywDNCMvNyxrLvhLWzq',
320
- 'twLZC2LUzYaTlwfNzw50lwLK',
321
- 'y2HPBgrYzw5uB3rHBa',
322
- 'DgfZAY0',
323
- 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
324
- 'icHPzdO',
325
- 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
326
- 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
327
- 'rg93BMXVywrLzcb0BZOG',
328
- 'ihrPBwu9',
329
- 'zgf0yq',
330
- 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
331
- 'C2vUzgvYvhLWzq',
332
- 'CNvUswq',
333
- 'igf0DgfJAg1LBNq',
334
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
335
- 'Dw5JBgfPBv90yxnR',
336
- 'Aw1Hz2uVD2vICa',
82
+ 'C3rYAw5N',
83
+ 'ig1LC3nHz2vZkqOk',
84
+ 'ChvZAa',
85
+ 'D29YA2vYrgLZCg9ZAxrPB249',
86
+ 'C3vIDgfZA19UDw1Izxi',
87
+ 'zxnJywXHDgvFDg9FBwfPBG',
88
+ '6k+35Rgcia',
337
89
  'B3b0Aw9UywW',
338
- 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
339
- 'DxbSB2fKx2zPBguGzMfPBgvK',
340
- 'Dw5JBgfPBvrHC2S',
341
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
342
- 'C2LNBMfS',
343
- 'C29Tzq',
344
- 'ywDNCMvNyxrLswrZ',
345
- 'C2vX',
346
- 'vgfZAZOG',
347
90
  'DgHYzwfKvgfYz2v0pq',
348
- 'iYmGu2vYDMvYoIa',
349
- 'C2vUzf9TzxnZywDLigzHAwXLza',
350
- 'Dg9gAxHLza',
351
- 'BgvUz3rO',
352
- 'ls1ZzxnZAw9UlwLK',
353
- 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
354
- 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
355
- 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
356
- 'yxbWBgLJyxrPB24VCgrM',
357
- 'ntq1otqXmLzAENviBW',
358
- 'BM93',
359
- 'Dg9tDhjPBMC',
360
- 'lMrZy29Yza',
361
- 'DgHYzwfKtNvTyMvY',
362
- 'cGOTls0G',
363
- 'C3rHCNrZv2L0Aa',
364
- 'yxr0ywnOBwvUDenHy2HLrgLY',
365
- 'y2XPzw50',
366
- 'CMvWBgfJzq',
367
- 'y3jLyxrLx3rHC2TZ',
368
- 'y2HHBM5LBfrHCMDLDa',
369
- 'y2XHAw1uyxnRCW',
370
- 'Dgv4Da',
371
- 'l2fWAs9HDhrHy2HTzw50CY8',
372
- 'nKDVwuLrCW',
373
- '6k+35Rgcia',
374
- 'B3jPz2LUywXgAwXLBMfTzq',
375
- 'DgfZA19Pza',
376
- 'C2L6zuj5DgvZ',
377
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
378
- 'w3nLCt0',
379
- 'CgfYC2u',
380
- 'y3vYC29Y',
381
- 'CMvXDwvZDfvYBa',
382
- 'yxbWBgLJyxrPB24VANnVBG',
383
- 'C2L6zq',
384
- 'r0vu',
385
- 'BMv4Den1CNnVCG',
386
- 'yxjYyxLcDwzMzxi',
387
- 'C3rYAw5N',
388
- 'Aw5KzxHpzG',
91
+ 'DxbKyxrLx3rHC2TFC3rHDhvZ',
92
+ 'mZbIsxziCva',
93
+ 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
94
+ 'y2XHAw0GzMfPBgvK',
95
+ 'AgfZ',
96
+ 'y3jLyxrLvgfZA3m',
389
97
  'D29YA2vY',
390
- 'lMjPBG',
391
- 'DhjPBq',
392
- 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
393
- 'l2HPC3rVCNK/',
394
- 'ignSywLTzwq',
395
- 'C2vUzf9TzxnZywDL',
396
- 'D29YA2vYsgfUzg9MzJ10CNvL',
397
- 'DMfSDwvZ',
398
- 'l3DVCMTLCNmVzxnJywXHDgu',
399
- 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
400
- 'khvUA25VD24P',
401
- 'Bwf0y2Hoyw1L',
402
- 'DxbSB2fKuhjLCgfYzxi',
403
- 'ywrK',
404
- 'C2HHmJu2',
405
- 'Aw1Hz2uVANbLzW',
406
- 'zxzLBNrtzxe',
407
- 'CMvHzf9OAxn0B3j5',
408
- 'AM9PBG',
98
+ 'zgfLBw9UqxbPs2v5',
409
99
  'v29YA2vYici',
410
- 'Aw5FCMv2Awv3',
411
- 'BwvZC2fNzv9Pzhm',
412
- 'l3rHC2TZ',
413
- 'ue9tva',
414
- 'BwvKAxvT',
415
- 'zxnJywXHDgvFDg9FBwfPBG',
416
- 'zw51Bq',
417
- 'lsba',
418
- 'zgvZDhjVEwvK',
419
- 'DMLZAwjPBgL0Eq',
420
- 'ls1KywvTB24TBg9JywWTDxjS',
421
- 'DgHYzwfK',
422
- 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
423
- 'BwfYA193ywL0Aw5Nx2LUChv0',
424
- 'AgvHzgvYCW',
425
- 'ANnVBG',
100
+ 'Bwf4rMLSzvnPEMvcExrLCW',
426
101
  'yxr0ywnOBwvUDhm',
427
- 'l3nLCNzLCG',
428
- 'D29YA2vYrgLZCg9ZAxrPB249',
429
- 'BwLU',
430
- 'y2fJAgveAxi',
431
- 'mta0mZq4oefyAfPPDW',
432
- 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
433
- 'D29YA2vYsgfUzg9MzKvYCM9Y',
102
+ 'zw51Bq',
103
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
104
+ 'BgLTAxq',
105
+ 'pgvTChr5pG',
106
+ 'DgHYzwfKu2HVCNrjza',
107
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
108
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
109
+ 'l3rHC2TZl2nSywLT',
110
+ 'iJOGC3rHDhvZpq',
111
+ 'Cgf5Bg9HzePZB24',
112
+ 'yxnPzgu',
113
+ 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
114
+ 'BgLZDfnLCNzLCG',
115
+ 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
116
+ 'zg0T',
117
+ 'yxbWBgLJyxrPB24VEMLW',
118
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
119
+ 'BwvZC2fNzv9Pzhm',
120
+ 'zNjVBq',
121
+ 'CxvLDwvK',
122
+ 'ywDNCMvNyxrLswrZ',
123
+ 'zgfLBw9Utg9JywXvCMW',
124
+ 'l3DVCMTLCNmVzxnJywXHDgu',
125
+ 'C2vZC2LVBKLK',
126
+ 'ig1ZzZ0',
127
+ 'CgfYA193B3jRzxi',
128
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
129
+ 'ls13B3jRzxiTBw9Kzq',
434
130
  'Aw5JBhvKzxm',
131
+ 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
132
+ 'CMvZDwX0CW',
133
+ 'CgfYDgLJAxbHBNrjza',
134
+ 'zgvZy3jPyMu',
135
+ 'C2vYDMvY',
136
+ 'ywDLBNrjza',
137
+ 'y29UDgvUDa',
138
+ 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
139
+ 'DgfZAW',
140
+ 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
141
+ 'C2vUzgvYtMfTzq',
142
+ 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
143
+ 'AgfZtw9Yzq',
144
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
145
+ 'ntKYodvKtxjxAKC',
146
+ 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
147
+ 'DxbKyxrL',
148
+ 'otu3nJKWmhfVvNjNrq',
149
+ 'D2fPDgLUz19PBNb1Da',
150
+ 'Aw5KzxHpzG',
151
+ 'y2XHAw1FDgfZA3mGzMfPBgvK',
152
+ 'D29YA2vYtw9KzuvUywjSzwq',
153
+ 'vgHYzwfKihrHCMDLDdOG',
435
154
  'C2f2zq',
436
- 'Dw5RBM93BG',
437
- 'Agv4',
438
- 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
439
- 't3jPz2LUywWGBwvZC2fNztOG',
440
- 'l3rHC2TZpW',
441
- 'y2HLy2TFBwvZC2fNzxm',
442
- 'yMvMB3jL',
443
- 'ChvZAa',
444
- 'ywjVCNrLza',
445
- 'CMvZDwX0sNnVBG',
446
- 'C29YDa',
447
- 'CgfYA193B3jRzxi',
448
- 'CgfKu3rHCNq',
449
- 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
450
- 'CMvZB2X2zvrHCMDLDa',
451
- 'Cgf5Bg9HzePZB24',
155
+ 'DxbSB2fKrMLSzq',
156
+ 'yMfZzty0',
157
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
158
+ 'BwvKAxvT',
159
+ 'z2v0tw9UDgG',
160
+ 'iYmJieH1BwfUCW',
161
+ 'CMvJB3jK',
162
+ 'C3vJy2vZCW',
163
+ 'y2XHAw1FDgfZA3m',
164
+ 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
165
+ 'Axnoyu4',
166
+ 'Aw1Hz2uVz2LM',
167
+ 'lsba',
168
+ 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
169
+ 'D29YA2vYu2vZC2LVBKLK',
170
+ 'y2HHBM5LBe5HBwu',
171
+ 'CMvXDwvZDfvYBa',
452
172
  'Dg9ju09tDhjPBMC',
173
+ 'CgfKu3rHCNq',
453
174
  'B2jQzwn0',
175
+ 'C2LNBMfS',
176
+ 'DgHYzwfKswq',
177
+ 'Dgv4Dc9JC3y',
178
+ 'Dgv4Dc9TyxjRzg93BG',
179
+ 'AhvTyw5Z',
180
+ 'Dg9VBa',
181
+ 'BwvTyMvY',
182
+ 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
454
183
  'zMLUza',
455
- 'y3jLyxrLvgfZA3m',
456
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
457
- 'D29YA19RzxK',
458
- 'mteZnJy4nM1sEMX4wq',
459
- 'EM9K',
460
- 'igzHAwXLzdOG',
461
- 'lsaJ',
462
- 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
463
- 'zw50zxiTAgfUzg9MzIbMywLSzwq',
464
- 'BwfW',
465
- 'CNvUBMLUzW',
466
- 'yxr0ywnOBwvUDeLK',
467
- 'y2HHBM5LBe5HBwu',
468
- 'C3vIDgfZA051BwjLCG',
184
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
185
+ 'ywz0zxi',
186
+ 'Ahr0CdO',
187
+ 's0iPcKf0DgfJAg1LBNqGsuq6ia',
188
+ 'AhvTyw4',
189
+ 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
190
+ 'yxjNDG',
191
+ 'DhjPBq',
192
+ 'DMLLD19MAwXLigzHAwXLza',
193
+ 'BwvTyMvYCW',
194
+ 'DMfSDwvZ',
195
+ 'DxnLCG',
196
+ 'C2XPy2u',
197
+ 'Bwv0yq',
198
+ 'kgXLz2fJEsK',
199
+ 'ywXS',
200
+ 'y2HHBM5LBfrHCMDLDa',
201
+ 'Dgv4Da',
469
202
  'xsba',
470
- 'iYmJieH1BwfUCW',
471
- 'zxH0BMfTzq',
472
- 'DhLWzq',
473
- 'ihr5Cgu9ywDLBNq',
474
- 'AgfZ',
475
- 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
476
- 'Dg9mB2nHBgvmB3DLCKnHC2u',
477
- 'mteWodG2mJnSq0f4tvO',
478
- 'AhvTyw5Z',
479
- 'y3jLyxrLzef0',
480
- 'Dg9KBW',
203
+ 'zMv0y2HjBxbS',
204
+ 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
205
+ 'zxHLy3v0Aw9Utw9Kzt0',
206
+ 'Dw5JBgfPBvrHC2S',
207
+ 'BgLZDf9Zzxj2zxi',
208
+ 'y2HHBM5LBa',
209
+ 'sfruuca',
210
+ 'y2HHBM5LBhm',
481
211
  'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
482
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
483
212
  'BNvTyMvY',
484
- 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
485
- 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
486
- 'y2HHBM5LBa',
487
- 'l3DVCMTLCNmVzgvSAxzLCG',
488
- 'l3rHC2TZl3vUy2XHAw0',
489
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
490
- 'DxbKyxrLvgfZA1n0yxr1CW',
491
- 'ls13B3jRzxiTBw9Kzq',
492
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
493
- 'zxjYB3i',
494
- 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
495
- 'C3rVCe1HAw4',
496
- 'C2XPy2u',
213
+ 'rg93BMXVywrLzcb0BZOG',
214
+ 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
215
+ 'DxbSB2fKx2zPBgu',
216
+ 'yxbWBgLJyxrPB24VCgrM',
217
+ 'zMLSzw5HBwu',
218
+ 'lMjPBG',
219
+ 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
220
+ 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
221
+ 'CMvWBgfJzq',
222
+ 'BM93',
223
+ 'C3bSAxq',
224
+ 'AxnjBNrLz2vY',
225
+ 'twvZC2fNzsbZzw50ihrVia',
226
+ 'DMfSDwu',
227
+ 'l3DVCMTLCNmVCgfYAW',
228
+ 'yM9KEvrLEhq',
229
+ 'l2LUDgvYBMfSl2fNzw50lW',
230
+ 'BgLZDf90yxnRCW',
231
+ 'AwrLBxbVDgvUy3LFA2v5',
232
+ 'Bwf4',
233
+ 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
234
+ 'ls1ZzxnZAw9UlwLK',
235
+ 'y2HLy2TnzxnZywDLCW',
236
+ 'zMfSC2u',
237
+ 'y29UDgvUDejHC2u2na',
238
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
239
+ 'khvUA25VD24P',
240
+ 'DgfZA051BwjLCG',
241
+ 'zMv0y2HuAw1LB3v0txm',
242
+ 'yxbWBgLJyxrPB24VANnVBG',
243
+ 'BgLZDfrHC2TZ',
244
+ 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
245
+ 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
246
+ 'AxnbyNnVBhv0zq',
247
+ 'kg5VBMuP',
248
+ 'yxbWBgLJyxrPB24VEg1S',
249
+ 'ywDNCMvNyxrLswq',
250
+ 'igzHAwXLzdOG',
251
+ 'zgf0yq',
497
252
  'DgHYzwfKvgfYz2v0',
498
- 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
499
- 'ywrKrxzLBNrmAxn0zw5LCG',
500
- 'Aw1Hz2uVC3zNk3HTBa',
501
- 'ywz0zxjtzxe',
502
- 'y2XHAw1FDgfZA3mGzMfPBgvK',
503
- 'AgfZtw9Yzq',
253
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
254
+ 'BgLZDf90yxnRCYbMywLSzwq',
255
+ 'yxv0BZO',
256
+ 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
257
+ 'AxnbCNjHEq',
258
+ 'zw50CMLLCW',
259
+ 'DgfZA3m',
260
+ 'tM8GDgfZA3mGzM91BMqU',
261
+ 'DgfZAY0',
504
262
  'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
505
- 'DgfYz2v0',
506
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
507
- 'ls13B3jRzxiTC2vZC2LVBI1Pza',
508
- 'Dgv4Dc9JC3y',
509
- 'BgLZDf90yxnRCW',
510
- 'DxbSB2fKrMLSzq',
511
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
512
- 'zMLUzenHy2HLzfbHDgG',
513
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
514
- 'twvZC2fNzsbZzw50ihrVia',
515
- 'iokaLca',
516
- 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
517
- 'Ahr0CdO',
518
- 'CgfYA193B3jRzxiGzMfPBgvK',
519
- 'CMvHzf9OAxn0B3j5igzHAwXLza',
520
- 'Aw1Hz2uVz2LM',
521
- 'ovryzKnTtW',
522
- 'C3vIDgfZA19UDw1Izxi',
523
- 'AxngAw5PDgu',
524
- 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
525
- 'DxbKyxrLx3rHC2TFC3rHDhvZ',
526
- 'Bwv0yq',
263
+ 'Bg9JywXLq29TCgfYzq',
264
+ 'tM8GDgfZA3mGy3jLyxrLzc4',
265
+ 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
266
+ 'ue9tva',
267
+ 'EM9K',
268
+ 'ywz0zxjtzxe',
269
+ 'BwfW',
270
+ 't3jPz2LUywWGBwvZC2fNztOG',
271
+ 'ihrPBwu9',
272
+ 'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
273
+ 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
274
+ 'tM8GBMv3ig1LC3nHz2vZlG',
275
+ 'C2vUze1LC3nHz2u',
276
+ 'Bwf0y2Hoyw1Ltg93zxi',
277
+ 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
278
+ 'zg06',
279
+ 'y3vYC29Y',
280
+ 'y3jLyxrLx3rHC2TZigzHAwXLza',
527
281
  'z2v0vgLTzq',
528
- 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
282
+ 'zgLZCg9ZAxrPB24',
283
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
284
+ 'mti0nZm1mw5cBMLorW',
285
+ 'lcbJB250zw50lxr5Cgu9',
286
+ 'mty4zKD2C3rf',
287
+ 'lsaJ',
288
+ 'l3jLC29SDMuTy2HHBM5LBa',
289
+ 'l3rHC2TZl3vUy2XHAw0',
290
+ 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
291
+ 'rMLSzsb1CgXVywrLzdOG',
292
+ 'iYmJiefNzw50CW',
293
+ 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
294
+ 'D29YA2vYx3nLC3nPB25FAwq',
295
+ 'DMLZAwjPBgL0Eq',
296
+ 'C3rYAw5NAwz5',
297
+ 'Dg9KBW',
298
+ 'l2nVBNrLEhqTBwv0CMLJCW',
299
+ 'C3rHCNrLza',
300
+ 'Aw5FCMv2Awv3',
301
+ 'zg93BMXVywrbDhrHy2HTzw50',
302
+ 'BgLZDf9Zzxj2zxiGzMfPBgvK',
529
303
  'yxjYyxK',
530
- 'D29YA2vYvgHYzwfKvgfYz2v0',
531
- '4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
532
- 'yxbWBgLJyxrPB24VEg1S',
533
- 'BwvZC2fNzq',
534
- 'Dg9VBa',
535
- 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
536
- 'yxv0BZO',
537
- 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
538
- 'CMvZCg9UC2u',
539
- 'BgLTAxq',
304
+ 'C29YDa',
305
+ 'yM9KEu1HCMTKB3DU',
306
+ 'DgfZA19Pza',
307
+ 'Aw1Hz2uVCg5N',
308
+ 'D29YA19RzxK',
309
+ 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
310
+ 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
311
+ 'D29YA2vYsgfUzg9MzG',
312
+ 'iIbUB3qGzM91BMq',
313
+ 'DxbKyxrLvgfZA1n0yxr1CW',
314
+ 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
315
+ 'C2L6zuj5DgvZ',
316
+ 'DgfZA0rLBgL2zxj5tw9Kzq',
317
+ 'Bg93',
318
+ 'CM9VDe1LC3nHz2vjza',
319
+ 'C2vYDMvYvxjS',
320
+ 'z2v0sg91CNm',
321
+ 'DgfZA0LK',
322
+ 'DgL0Bgu',
323
+ 'ChvIBgLJ',
324
+ 'C3rHDhvZ',
325
+ 'nJC4ndKWC25OAwvv',
540
326
  'zg9Uzq',
541
- 'AxngAwXL',
542
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
543
- 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
544
- 'DMfSDwu',
545
- 'y29UDgvUDejHC2u2na',
546
- 'y2HHBM5LBhm',
547
- 'ktSGz290ignOyw5UzwW9',
327
+ 'C2vUzf9TzxnZywDL',
328
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
329
+ 'DgHYzwfKx3rHCMDLDa',
330
+ 'C3vIDgfZA19UDw1IzxjZ',
331
+ 'w3rHCMDLDd0',
332
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
333
+ 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
334
+ 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
335
+ 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
336
+ 'ls13B3jRzxiTC2vZC2LVBI1Pza',
337
+ 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
338
+ 'ywrK',
339
+ 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
340
+ 'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
341
+ 'Dgv4Dc9WBgfPBG',
342
+ 'Agv4',
343
+ 'C2vX',
344
+ 'iYmJienOyw5UzwXZ',
345
+ 'zgvZDhjVEwvK',
346
+ 'D29YA2vYrgLZCg9ZAxrPB24',
347
+ 'BMfTzq',
348
+ 'BgvUz3rO',
349
+ 'mZm4ndqWsw11A2Pq',
350
+ 'Dw5JBgfPBv90yxnR',
351
+ 'yxr0ywnOBwvUDeLK',
352
+ 'D29YA2vYtw9Kzq',
353
+ 'ywDNCMvNyxrLvhLWzq',
354
+ 'Aw1Hz2uVC3zNk3HTBa',
355
+ 'zxjYB3i',
356
+ 'DxbSB2fKx2zPBguGzMfPBgvK',
357
+ 'Dg9tDhjPBMC',
358
+ 'BMv4Den1CNnVCG',
548
359
  'y2HHDa',
360
+ 'CNvUswq',
361
+ 'ls1KywvTB24TBg9JywWTDxjS',
362
+ 'l3n0yxj0',
363
+ 'yxr0ywnOBwvUDenHy2HL',
364
+ 'C3vIDgfZA051BwjLCG',
365
+ 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
366
+ 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
549
367
  'Dg9mB3DLCKnHC2u',
550
- 'y29UDgvUDfr5Cgu',
551
- 'D29YA2vYtw9KzuvUywjSzwq',
552
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
553
- 'mJuWotq3otb3uevpr1q',
554
- 'DgfZAW',
555
- 'ywDLBNrjza',
556
- 'sfruuca',
557
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
558
- 'y2XHAw0GzMfPBgvK',
559
- 'DxrMoa',
560
- 'yxnPzgu',
561
- 'yM9KEvrLEhq',
562
- 'ntm1otq5rNrjD2nX',
563
- 'DxbSB2fKx2zPBgu',
564
- 'l3rHC2TZl2nSywLT',
565
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
566
- 'z2v0rNvSBfLLyxi',
567
- 'tM8GDgfZA3mGy3jLyxrLzc4',
568
- 'zMLSDgvY',
569
- 'CMvHC29U',
570
- 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
571
- 'ywDLBNrZ',
572
- 'zNjVBq',
368
+ 'ktSGz290ignOyw5UzwW9',
369
+ 'l2nVBNrLBNq',
370
+ 'CgfYDgLJAxbHBNq',
371
+ 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
573
372
  'BwvZC2fNzuLK',
574
- 'DxnLCG',
575
- 'D29YA2vYx3nLC3nPB25FAwq',
576
- 'DgHYzwfKu2HVCNrjza',
577
- 'C2vYDMvY',
578
- 'y29UDgvUDc10ExbL',
579
- 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
580
- 'DxjNzw50',
581
- 'w3rHCMDLDd0',
582
- 'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
583
- 'lcbJB250zw50lxr5Cgu9',
584
- 'D2fPDgLUz19PBNb1Da',
585
- 'CxvLDwvK',
586
- 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
587
- 'y2HLy2TnzxnZywDLCW',
588
- '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
589
- 'D29YA2vYtw9Kzq',
590
- 'DgfZA0LK',
591
- 'DMLLD19MAwXL',
592
- 'DgvZDa',
593
- 'mc4WlJa'
373
+ 'A2LUza',
374
+ 'mtq0nZGZsKvsu3bU',
375
+ 'z2v0',
376
+ 'AgvHzgvYCW',
377
+ 'y3jLyxrLx3rHC2TZ',
378
+ 'Bwf0y2Hoyw1L',
379
+ 'y2HLy2TFBwvZC2fNzxm',
380
+ 'lIbnzxnZywDLieLeoIa',
381
+ 'y2XPzw50',
382
+ 'CNvUBMLUzW',
383
+ 'Dg9mB2nHBgvmB3DLCKnHC2u',
384
+ 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
385
+ 'mZmWmti2BKr2yLvf',
386
+ 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
387
+ 'ndj3ufjxteC',
388
+ 'BwvZC2fNzxm',
389
+ 'C2v0',
390
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
391
+ 'zgvSzxrL',
392
+ 'AM9PBG',
393
+ 'Aw1Hz2uVANbLzW',
394
+ 'ls1Zzxj2zxiTDxjS',
395
+ 'l3rHC2TZpW',
396
+ 'C29Tzq',
397
+ 'igrVBMuP',
398
+ 'D29YA2vYvgHYzwfKvgfYz2v0',
399
+ 'l2fWAs9HDhrHy2HTzw50CY8',
400
+ 'yMvMB3jL',
401
+ 'ywrKrxzLBNrmAxn0zw5LCG'
594
402
  ];
595
- _0x5d96 = function () {
596
- return _0xaba391;
403
+ _0x5b92 = function () {
404
+ return _0x543c38;
405
+ };
406
+ return _0x5b92();
407
+ }
408
+ const _0x77ce4b = _0x4210;
409
+ (function (_0x44f5a5, _0xc7f535) {
410
+ const _0x1f5cae = {
411
+ _0x3fc08c: 0x16b,
412
+ _0x5cfb8f: 0x12f,
413
+ _0x3bfd52: 0x147,
414
+ _0x594efe: 0x16d,
415
+ _0x341798: 0x20d
416
+ }, _0x10548d = _0x4210, _0x269c42 = _0x44f5a5();
417
+ while (!![]) {
418
+ try {
419
+ const _0x36c4fc = -parseInt(_0x10548d(_0x1f5cae._0x3fc08c)) / 0x1 + parseInt(_0x10548d(_0x1f5cae._0x5cfb8f)) / 0x2 + parseInt(_0x10548d(0x1d5)) / 0x3 * (-parseInt(_0x10548d(_0x1f5cae._0x3bfd52)) / 0x4) + -parseInt(_0x10548d(0x20a)) / 0x5 * (parseInt(_0x10548d(_0x1f5cae._0x594efe)) / 0x6) + parseInt(_0x10548d(0x106)) / 0x7 + -parseInt(_0x10548d(0x108)) / 0x8 * (-parseInt(_0x10548d(0x160)) / 0x9) + parseInt(_0x10548d(_0x1f5cae._0x341798)) / 0xa;
420
+ if (_0x36c4fc === _0xc7f535)
421
+ break;
422
+ else
423
+ _0x269c42['push'](_0x269c42['shift']());
424
+ } catch (_0x36d0c3) {
425
+ _0x269c42['push'](_0x269c42['shift']());
426
+ }
427
+ }
428
+ }(_0x5b92, 0x87302));
429
+ import { pathToFileURL } from 'node:url';
430
+ import {
431
+ mkdir,
432
+ readFile,
433
+ readdir,
434
+ stat,
435
+ writeFile
436
+ } from 'node:fs/promises';
437
+ import { homedir } from 'node:os';
438
+ import _0x3bc217 from 'node:path';
439
+ var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
440
+ '.csv': _0x77ce4b(0x22a),
441
+ '.gif': _0x77ce4b(0x21f),
442
+ '.jpeg': _0x77ce4b(0x173),
443
+ '.jpg': _0x77ce4b(0x173),
444
+ '.json': _0x77ce4b(0xdc),
445
+ '.md': _0x77ce4b(0x22b),
446
+ '.pdf': _0x77ce4b(0xc2),
447
+ '.png': _0x77ce4b(0x11d),
448
+ '.svg': _0x77ce4b(0x14c),
449
+ '.txt': _0x77ce4b(0x13f),
450
+ '.webp': 'image/webp',
451
+ '.xml': _0x77ce4b(0xe2),
452
+ '.zip': _0x77ce4b(0x1ee)
453
+ };
454
+ function guessContentType(_0xe73669) {
455
+ const _0x4c310e = { _0x191e12: 0x1c4 }, _0x40ba56 = _0x77ce4b;
456
+ return MIME_BY_EXTENSION[_0x3bc217[_0x40ba56(_0x4c310e._0x191e12)](_0xe73669)[_0x40ba56(0x159)]()] ?? _0x40ba56(0x170);
457
+ }
458
+ function safeFilename(_0x3b24f5) {
459
+ return _0x3b24f5['replace'](/[\\/]/g, '-');
460
+ }
461
+ function extensionFor(_0x1c7017) {
462
+ const _0x5c0d53 = {
463
+ _0x44fb4c: 0xec,
464
+ _0x3314e3: 0xc4
465
+ }, _0x185b39 = _0x77ce4b, _0xb948bf = Object[_0x185b39(_0x5c0d53._0x44fb4c)](MIME_BY_EXTENSION)['find'](([, _0x4d18b5]) => _0x4d18b5 === _0x1c7017);
466
+ return _0xb948bf?.[0x0] ?? _0x185b39(_0x5c0d53._0x3314e3);
467
+ }
468
+ async function prepareUploadFile(_0x49c4a4, _0x1c7c61 = {}) {
469
+ const _0x3b2f42 = {
470
+ _0x4746b7: 0x1dd,
471
+ _0xfa8a96: 0x1c9,
472
+ _0x5bbe2e: 0x187,
473
+ _0x1d6619: 0x215
474
+ }, _0x2117bf = _0x77ce4b;
475
+ if (!_0x3bc217[_0x2117bf(0xe0)](_0x49c4a4))
476
+ throw new Error(_0x2117bf(0x11f));
477
+ const _0x519531 = await stat(_0x49c4a4)['catch'](() => null);
478
+ if (!_0x519531 || !_0x519531['isFile']())
479
+ throw new Error('File\x20not\x20found:\x20' + _0x49c4a4);
480
+ const _0xae7671 = _0x1c7c61[_0x2117bf(_0x3b2f42._0x4746b7)] ?? DEFAULT_MAX_FILE_SIZE;
481
+ if (_0x519531['size'] > _0xae7671)
482
+ throw new Error(_0x2117bf(_0x3b2f42._0xfa8a96) + _0x519531[_0x2117bf(_0x3b2f42._0x5bbe2e)]);
483
+ const _0x22c89a = await readFile(_0x49c4a4), _0x18942e = _0x3bc217['basename'](_0x49c4a4);
484
+ return {
485
+ 'contentBase64': _0x22c89a[_0x2117bf(0x14f)](_0x2117bf(_0x3b2f42._0x1d6619)),
486
+ 'contentType': guessContentType(_0x18942e),
487
+ 'filename': _0x18942e,
488
+ 'sizeBytes': _0x519531[_0x2117bf(0x187)]
489
+ };
490
+ }
491
+ function createAttachmentCache(_0xbd544 = {}) {
492
+ const _0x211b68 = { _0x5572b1: 0x1de }, _0x119f69 = {
493
+ _0x2f2ab2: 0x18c,
494
+ _0x5275a3: 0xe5
495
+ }, _0x2c6b81 = {
496
+ _0x23e3e9: 0x230,
497
+ _0x2f76dc: 0x172
498
+ }, _0x8918c6 = _0x77ce4b, _0x358dad = _0xbd544['cacheDir'] ?? _0x3bc217[_0x8918c6(0x172)](homedir(), '.dscord', _0x8918c6(_0x211b68._0x5572b1));
499
+ return {
500
+ 'cacheDir': _0x358dad,
501
+ async 'findCachedPath'(_0xb141a6) {
502
+ const _0x54c0d4 = _0x8918c6;
503
+ await mkdir(_0x358dad, { 'recursive': !![] });
504
+ const _0x1130c9 = await readdir(_0x358dad), _0x4a922f = _0x1130c9[_0x54c0d4(_0x2c6b81._0x23e3e9)](_0x202b18 => _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6 + '-') || _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6));
505
+ return _0x4a922f ? _0x3bc217[_0x54c0d4(_0x2c6b81._0x2f76dc)](_0x358dad, _0x4a922f) : null;
506
+ },
507
+ async 'save'(_0x5ae7ef) {
508
+ const _0x2cbd63 = _0x8918c6;
509
+ await mkdir(_0x358dad, { 'recursive': !![] });
510
+ const _0x361841 = _0x5ae7ef['originalFilename']?.['trim']() ? safeFilename(_0x5ae7ef[_0x2cbd63(_0x119f69._0x2f2ab2)]) : '' + _0x5ae7ef['attachmentId'] + extensionFor(_0x5ae7ef[_0x2cbd63(0x1c7)]), _0x1ad2c9 = _0x3bc217['join'](_0x358dad, _0x5ae7ef[_0x2cbd63(0x149)] + '-' + _0x361841);
511
+ return await writeFile(_0x1ad2c9, _0x5ae7ef[_0x2cbd63(_0x119f69._0x5275a3)]), _0x1ad2c9;
512
+ }
513
+ };
514
+ }
515
+ import {
516
+ createHash,
517
+ randomUUID
518
+ } from 'node:crypto';
519
+ var UNSUPPORTED_TARGET_MESSAGE = _0x77ce4b(0x1fc);
520
+ function ensureSegment(_0x97dcee) {
521
+ const _0x5438af = { _0x1be54b: 0x1fb }, _0x1b142a = _0x77ce4b, _0x10772c = _0x97dcee['trim']();
522
+ if (!_0x10772c || _0x10772c[_0x1b142a(_0x5438af._0x1be54b)](':'))
523
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
524
+ return _0x10772c;
525
+ }
526
+ function parseThreadParts(_0x2676f6) {
527
+ const _0x55693b = { _0x80e6e: 0x146 }, _0x5e33c1 = _0x77ce4b, _0xf49f9f = _0x2676f6[_0x5e33c1(0xc9)](':');
528
+ if (_0xf49f9f['length'] < 0x1 || _0xf49f9f[_0x5e33c1(_0x55693b._0x80e6e)] > 0x2)
529
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
530
+ return {
531
+ 'channelName': ensureSegment(_0xf49f9f[0x0] ?? ''),
532
+ 'threadShortId': _0xf49f9f[0x1] ? ensureSegment(_0xf49f9f[0x1]) : null
597
533
  };
598
- return _0x5d96();
599
534
  }
600
- function asErrorMessage(_0x388e81, _0x2ae296) {
601
- const _0x4615dc = { _0x19cc56: 0x1bc }, _0x3dcf0f = _0x1e865e;
602
- if (typeof _0x388e81 === _0x3dcf0f(_0x4615dc._0x19cc56) && _0x388e81[_0x3dcf0f(0x1c0)]())
603
- return _0x388e81;
604
- return _0x2ae296;
535
+ function parseTarget(_0x23cf35) {
536
+ const _0x1f8521 = {
537
+ _0x201415: 0x238,
538
+ _0x127c40: 0x1e3,
539
+ _0x40f1c8: 0x17c,
540
+ _0x304860: 0x1c1,
541
+ _0x3d905c: 0x100,
542
+ _0x348342: 0x223,
543
+ _0xf9a60f: 0x1ed,
544
+ _0xe52e81: 0x1e3
545
+ }, _0x1c7d57 = _0x77ce4b, _0x540b43 = _0x23cf35[_0x1c7d57(_0x1f8521._0x201415)]();
546
+ if (!_0x540b43)
547
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
548
+ if (_0x540b43[_0x1c7d57(0x1c1)]('#')) {
549
+ const _0x2a72ac = parseThreadParts(_0x540b43[_0x1c7d57(0x23d)](0x1)), _0x4cd7a1 = '#' + _0x2a72ac[_0x1c7d57(0x223)];
550
+ if (!_0x2a72ac[_0x1c7d57(_0x1f8521._0x127c40)])
551
+ return {
552
+ 'channelName': _0x2a72ac['channelName'],
553
+ 'channelTarget': _0x4cd7a1,
554
+ 'kind': _0x1c7d57(0xba),
555
+ 'target': _0x4cd7a1
556
+ };
557
+ return {
558
+ 'channelName': _0x2a72ac[_0x1c7d57(0x223)],
559
+ 'channelTarget': _0x4cd7a1,
560
+ 'kind': _0x1c7d57(_0x1f8521._0x40f1c8),
561
+ 'target': _0x4cd7a1 + ':' + _0x2a72ac[_0x1c7d57(0x1e3)],
562
+ 'threadShortId': _0x2a72ac['threadShortId']
563
+ };
564
+ }
565
+ if (_0x540b43[_0x1c7d57(_0x1f8521._0x304860)](_0x1c7d57(_0x1f8521._0x3d905c))) {
566
+ const _0x5a751e = parseThreadParts(_0x540b43[_0x1c7d57(0x23d)](0x3));
567
+ if (!_0x5a751e[_0x1c7d57(_0x1f8521._0x348342)][_0x1c7d57(0x1c1)](_0x1c7d57(_0x1f8521._0xf9a60f)))
568
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
569
+ const _0x4c42b5 = 'dm:' + _0x5a751e[_0x1c7d57(0x223)];
570
+ if (!_0x5a751e['threadShortId'])
571
+ return {
572
+ 'channelName': _0x5a751e['channelName'],
573
+ 'channelTarget': _0x4c42b5,
574
+ 'kind': 'channel',
575
+ 'target': _0x4c42b5
576
+ };
577
+ return {
578
+ 'channelName': _0x5a751e[_0x1c7d57(0x223)],
579
+ 'channelTarget': _0x4c42b5,
580
+ 'kind': _0x1c7d57(_0x1f8521._0x40f1c8),
581
+ 'target': _0x4c42b5 + ':' + _0x5a751e['threadShortId'],
582
+ 'threadShortId': _0x5a751e[_0x1c7d57(_0x1f8521._0xe52e81)]
583
+ };
584
+ }
585
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
586
+ }
587
+ function asErrorMessage(_0x31d18c, _0x18fba7) {
588
+ const _0x54b348 = _0x77ce4b;
589
+ if (typeof _0x31d18c === 'string' && _0x31d18c[_0x54b348(0x238)]())
590
+ return _0x31d18c;
591
+ return _0x18fba7;
605
592
  }
606
- function asRecord(_0x1095df) {
607
- const _0x2c9409 = { _0x21d028: 0x1fe }, _0x1b91c8 = _0x1e865e;
608
- return typeof _0x1095df === _0x1b91c8(_0x2c9409._0x21d028) && _0x1095df !== null ? _0x1095df : {};
593
+ function asRecord(_0x37d8cd) {
594
+ return typeof _0x37d8cd === 'object' && _0x37d8cd !== null ? _0x37d8cd : {};
609
595
  }
610
- function stableStringify(_0x36b8f9) {
611
- const _0x5a9919 = { _0x20730d: 0x271 }, _0x471907 = _0x1e865e;
612
- if (_0x36b8f9 === null || typeof _0x36b8f9 !== _0x471907(0x1fe))
613
- return JSON[_0x471907(0x2a4)](_0x36b8f9);
614
- if (Array[_0x471907(0x177)](_0x36b8f9))
615
- return '[' + _0x36b8f9[_0x471907(0x209)](_0x11b544 => stableStringify(_0x11b544))[_0x471907(0x1d1)](',') + ']';
616
- const _0x1fd1bc = Object['entries'](_0x36b8f9)[_0x471907(_0x5a9919._0x20730d)](([, _0x2e4838]) => _0x2e4838 !== void 0x0)['sort'](([_0x5665ad], [_0x2a557b]) => _0x5665ad[_0x471907(0x299)](_0x2a557b))['map'](([_0x2e5053, _0x4e9191]) => JSON[_0x471907(0x2a4)](_0x2e5053) + ':' + stableStringify(_0x4e9191));
617
- return '{' + _0x1fd1bc[_0x471907(0x1d1)](',') + '}';
596
+ function stableStringify(_0x8c2560) {
597
+ const _0x4cd153 = {
598
+ _0x1e11e1: 0xf7,
599
+ _0x551551: 0x11a
600
+ }, _0x5e06b2 = _0x77ce4b;
601
+ if (_0x8c2560 === null || typeof _0x8c2560 !== 'object')
602
+ return JSON[_0x5e06b2(0x112)](_0x8c2560);
603
+ if (Array[_0x5e06b2(0xeb)](_0x8c2560))
604
+ return '[' + _0x8c2560[_0x5e06b2(_0x4cd153._0x1e11e1)](_0xdebb11 => stableStringify(_0xdebb11))[_0x5e06b2(0x172)](',') + ']';
605
+ const _0x49bcf3 = Object[_0x5e06b2(0xec)](_0x8c2560)['filter'](([, _0x20c879]) => _0x20c879 !== void 0x0)[_0x5e06b2(_0x4cd153._0x551551)](([_0xd72224], [_0x3d7a88]) => _0xd72224[_0x5e06b2(0xf1)](_0x3d7a88))['map'](([_0x4ee06f, _0x3aba3e]) => JSON[_0x5e06b2(0x112)](_0x4ee06f) + ':' + stableStringify(_0x3aba3e));
606
+ return '{' + _0x49bcf3['join'](',') + '}';
618
607
  }
619
- function createHeaders(_0x5cf93f) {
620
- const _0x2b7ac1 = _0x1e865e;
608
+ function createHeaders(_0x3917d6) {
609
+ const _0x290a29 = _0x77ce4b;
621
610
  return {
622
- 'Content-Type': _0x2b7ac1(0x1b7),
623
- 'x-daemon-api-key': _0x5cf93f
611
+ 'Content-Type': _0x290a29(0xdc),
612
+ 'x-daemon-api-key': _0x3917d6
624
613
  };
625
614
  }
626
- function toHttpBaseUrl(_0x438350) {
627
- const _0x1a3212 = { _0x5ad75a: 0x159 }, _0x2d6532 = _0x1e865e, _0x28430a = new URL(_0x438350);
628
- if (_0x28430a[_0x2d6532(0x159)] === 'ws:')
629
- _0x28430a[_0x2d6532(0x159)] = _0x2d6532(0x23e);
615
+ function toHttpBaseUrl(_0x3a855e) {
616
+ const _0x13b186 = {
617
+ _0x59814c: 0x1ae,
618
+ _0x1830a7: 0x1b1,
619
+ _0x2b792a: 0x233,
620
+ _0x34fd16: 0x14f,
621
+ _0x45aaf3: 0xc7
622
+ }, _0x5c9b36 = _0x77ce4b, _0x22e2aa = new URL(_0x3a855e);
623
+ if (_0x22e2aa['protocol'] === _0x5c9b36(_0x13b186._0x59814c))
624
+ _0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = _0x5c9b36(_0x13b186._0x2b792a);
630
625
  else
631
- _0x28430a[_0x2d6532(_0x1a3212._0x5ad75a)] === 'wss:' && (_0x28430a[_0x2d6532(_0x1a3212._0x5ad75a)] = _0x2d6532(0x291));
632
- return _0x28430a[_0x2d6532(0x1a0)]()[_0x2d6532(0x1a7)](/\/$/, '');
626
+ _0x22e2aa[_0x5c9b36(0x1b1)] === 'wss:' && (_0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = 'https:');
627
+ return _0x22e2aa[_0x5c9b36(_0x13b186._0x34fd16)]()[_0x5c9b36(_0x13b186._0x45aaf3)](/\/$/, '');
633
628
  }
634
- function isMentionBoundary(_0x1e9bfd) {
635
- const _0x460642 = _0x1e865e;
636
- return !_0x1e9bfd || /\s|[([{'",。!?、:;]/[_0x460642(0x289)](_0x1e9bfd);
629
+ function isMentionBoundary(_0x543e04) {
630
+ return !_0x543e04 || /\s|[([{'",。!?、:;]/['test'](_0x543e04);
637
631
  }
638
- function isMentionTerminal(_0x30caab) {
639
- const _0x61664e = { _0x2886de: 0x289 }, _0x408f6c = _0x1e865e;
640
- return !_0x30caab || /\s|[)\]}'",。!?、:;,.!?]/[_0x408f6c(_0x61664e._0x2886de)](_0x30caab);
632
+ function isMentionTerminal(_0x2aee97) {
633
+ return !_0x2aee97 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x2aee97);
641
634
  }
642
- function buildMatchableEntries(_0x487e4e) {
643
- const _0x3f1e84 = {
644
- _0x4fe433: 0x217,
645
- _0x700ea4: 0x160,
646
- _0x2bf6bd: 0x215
647
- }, _0x13565f = _0x1e865e, _0x1cddb6 = [];
648
- for (const _0xe272c8 of [
649
- ..._0x487e4e[_0x13565f(0x274)],
650
- ..._0x487e4e[_0x13565f(_0x3f1e84._0x4fe433)]
635
+ function buildMatchableEntries(_0x5a51bc) {
636
+ const _0x4ea667 = {
637
+ _0x7397d8: 0x1b3,
638
+ _0x134fa0: 0x1cd,
639
+ _0x3abb81: 0x169
640
+ }, _0x29012f = _0x77ce4b, _0x3aa7d7 = [];
641
+ for (const _0x55adb1 of [
642
+ ..._0x5a51bc[_0x29012f(_0x4ea667._0x7397d8)],
643
+ ..._0x5a51bc[_0x29012f(0x22c)]
651
644
  ]) {
652
- _0x1cddb6[_0x13565f(0x1f4)]({
653
- 'matchName': _0xe272c8[_0x13565f(_0x3f1e84._0x700ea4)],
654
- 'matchNameLower': _0xe272c8[_0x13565f(0x160)][_0x13565f(0x215)](),
655
- 'participantId': _0xe272c8['id']
656
- }), _0xe272c8['id'] !== _0xe272c8[_0x13565f(0x160)] && _0x1cddb6[_0x13565f(0x1f4)]({
657
- 'matchName': _0xe272c8['id'],
658
- 'matchNameLower': _0xe272c8['id'][_0x13565f(_0x3f1e84._0x2bf6bd)](),
659
- 'participantId': _0xe272c8['id']
645
+ _0x3aa7d7[_0x29012f(0x1cd)]({
646
+ 'matchName': _0x55adb1[_0x29012f(0x145)],
647
+ 'matchNameLower': _0x55adb1[_0x29012f(0x145)][_0x29012f(0x169)](),
648
+ 'participantId': _0x55adb1['id']
649
+ }), _0x55adb1['id'] !== _0x55adb1[_0x29012f(0x145)] && _0x3aa7d7[_0x29012f(_0x4ea667._0x134fa0)]({
650
+ 'matchName': _0x55adb1['id'],
651
+ 'matchNameLower': _0x55adb1['id'][_0x29012f(_0x4ea667._0x3abb81)](),
652
+ 'participantId': _0x55adb1['id']
660
653
  });
661
654
  }
662
- return _0x1cddb6;
655
+ return _0x3aa7d7;
663
656
  }
664
- function extractMentionedParticipantIds(_0x3de5be, _0x8c9ef3) {
665
- const _0x40d5af = {
666
- _0x2ad045: 0x1f7,
667
- _0x168000: 0x198,
668
- _0x5b6a0a: 0x213,
669
- _0x248136: 0x1cc,
670
- _0xe1c55e: 0x1f4,
671
- _0x1c499c: 0x1ca,
672
- _0x2d0697: 0x198
673
- }, _0x293818 = { _0x43038d: 0x198 }, _0xf1a0d1 = _0x1e865e, _0x3d3b60 = buildMatchableEntries(_0x8c9ef3)[_0xf1a0d1(_0x40d5af._0x2ad045)]((_0x47734a, _0x2aa794) => _0x2aa794['matchName'][_0xf1a0d1(0x198)] - _0x47734a[_0xf1a0d1(0x1ca)][_0xf1a0d1(0x198)]), _0x38f4ab = [], _0x5eae5e = new Set();
674
- for (let _0x4cba93 = 0x0; _0x4cba93 < _0x3de5be[_0xf1a0d1(_0x40d5af._0x168000)]; _0x4cba93 += 0x1) {
675
- if (_0x3de5be[_0x4cba93] !== '@' || !isMentionBoundary(_0x3de5be[_0x4cba93 - 0x1]))
657
+ function extractMentionedParticipantIds(_0x48469f, _0x15eb36) {
658
+ const _0x15ed40 = {
659
+ _0x3af4f5: 0x146,
660
+ _0x326e10: 0x23d,
661
+ _0x4a7139: 0x1d8,
662
+ _0x19dab3: 0x13c,
663
+ _0x34ec5e: 0x1cd
664
+ }, _0x593cbe = {
665
+ _0x3dcd21: 0x164,
666
+ _0x3c6e55: 0x146
667
+ }, _0x32f41d = _0x77ce4b, _0x436497 = buildMatchableEntries(_0x15eb36)[_0x32f41d(0x11a)]((_0x114a80, _0xe6b260) => _0xe6b260[_0x32f41d(0x164)]['length'] - _0x114a80['matchName']['length']), _0x4d8fe9 = [], _0x47a6c8 = new Set();
668
+ for (let _0x47cae6 = 0x0; _0x47cae6 < _0x48469f[_0x32f41d(_0x15ed40._0x3af4f5)]; _0x47cae6 += 0x1) {
669
+ if (_0x48469f[_0x47cae6] !== '@' || !isMentionBoundary(_0x48469f[_0x47cae6 - 0x1]))
676
670
  continue;
677
- const _0x499b7a = _0x3de5be['slice'](_0x4cba93 + 0x1), _0x546a69 = _0x499b7a[_0xf1a0d1(0x215)](), _0x3d77f2 = _0x3d3b60['find'](_0x2e5f7b => {
678
- const _0x44d54c = _0xf1a0d1;
679
- if (!_0x546a69[_0x44d54c(0x1a4)](_0x2e5f7b[_0x44d54c(0x2b9)]))
671
+ const _0x5cfe4b = _0x48469f[_0x32f41d(_0x15ed40._0x326e10)](_0x47cae6 + 0x1), _0xa5d2e1 = _0x5cfe4b[_0x32f41d(0x169)](), _0x7d2580 = _0x436497[_0x32f41d(0x230)](_0x5dec6d => {
672
+ const _0x4f2dbf = _0x32f41d;
673
+ if (!_0xa5d2e1[_0x4f2dbf(0x1c1)](_0x5dec6d[_0x4f2dbf(0xfe)]))
680
674
  return ![];
681
- return isMentionTerminal(_0x499b7a[_0x2e5f7b['matchName'][_0x44d54c(_0x293818._0x43038d)]]);
675
+ return isMentionTerminal(_0x5cfe4b[_0x5dec6d[_0x4f2dbf(_0x593cbe._0x3dcd21)][_0x4f2dbf(_0x593cbe._0x3c6e55)]]);
682
676
  });
683
- if (!_0x3d77f2 || _0x5eae5e[_0xf1a0d1(_0x40d5af._0x5b6a0a)](_0x3d77f2[_0xf1a0d1(0x171)]))
677
+ if (!_0x7d2580 || _0x47a6c8[_0x32f41d(_0x15ed40._0x4a7139)](_0x7d2580[_0x32f41d(0x1fe)]))
684
678
  continue;
685
- _0x5eae5e[_0xf1a0d1(_0x40d5af._0x248136)](_0x3d77f2[_0xf1a0d1(0x171)]), _0x38f4ab[_0xf1a0d1(_0x40d5af._0xe1c55e)](_0x3d77f2[_0xf1a0d1(0x171)]), _0x4cba93 += _0x3d77f2[_0xf1a0d1(_0x40d5af._0x1c499c)][_0xf1a0d1(_0x40d5af._0x2d0697)];
679
+ _0x47a6c8[_0x32f41d(_0x15ed40._0x19dab3)](_0x7d2580['participantId']), _0x4d8fe9[_0x32f41d(_0x15ed40._0x34ec5e)](_0x7d2580[_0x32f41d(0x1fe)]), _0x47cae6 += _0x7d2580[_0x32f41d(0x164)][_0x32f41d(0x146)];
686
680
  }
687
- return _0x38f4ab;
681
+ return _0x4d8fe9;
688
682
  }
689
683
  var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
690
- function anySignal(..._0x2eb1eb) {
691
- const _0x3532e7 = {
692
- _0x335bb5: 0x272,
693
- _0x1f0647: 0x18f
694
- }, _0x4a01dc = _0x1e865e, _0x52b0fa = new AbortController();
695
- for (const _0x33e679 of _0x2eb1eb) {
696
- if (_0x33e679[_0x4a01dc(0x1f5)])
697
- return _0x52b0fa[_0x4a01dc(0x2bc)](_0x33e679[_0x4a01dc(_0x3532e7._0x335bb5)]), _0x52b0fa[_0x4a01dc(_0x3532e7._0x1f0647)];
698
- _0x33e679[_0x4a01dc(0x22c)](_0x4a01dc(0x2bc), () => _0x52b0fa[_0x4a01dc(0x2bc)](_0x33e679['reason']), {
684
+ function anySignal(..._0x4b6c3f) {
685
+ const _0x4692c5 = {
686
+ _0x2c984b: 0x1aa,
687
+ _0x508e8d: 0x17b,
688
+ _0x52b6d4: 0x228,
689
+ _0x3ca165: 0x228
690
+ }, _0x5abb1b = _0x77ce4b, _0x36ee4e = new AbortController();
691
+ for (const _0x44ca63 of _0x4b6c3f) {
692
+ if (_0x44ca63[_0x5abb1b(0x195)])
693
+ return _0x36ee4e['abort'](_0x44ca63[_0x5abb1b(_0x4692c5._0x2c984b)]), _0x36ee4e[_0x5abb1b(0x228)];
694
+ _0x44ca63[_0x5abb1b(_0x4692c5._0x508e8d)](_0x5abb1b(0x1be), () => _0x36ee4e[_0x5abb1b(0x1be)](_0x44ca63['reason']), {
699
695
  'once': !![],
700
- 'signal': _0x52b0fa[_0x4a01dc(_0x3532e7._0x1f0647)]
696
+ 'signal': _0x36ee4e[_0x5abb1b(_0x4692c5._0x52b6d4)]
701
697
  });
702
698
  }
703
- return _0x52b0fa['signal'];
699
+ return _0x36ee4e[_0x5abb1b(_0x4692c5._0x3ca165)];
704
700
  }
705
- function _0x9c1d(_0x2a393b, _0x1fd20b) {
706
- _0x2a393b = _0x2a393b - 0x14e;
707
- const _0x5d966d = _0x5d96();
708
- let _0x9c1dfc = _0x5d966d[_0x2a393b];
709
- if (_0x9c1d['PyrAJh'] === undefined) {
710
- var _0x1e024e = function (_0xa25be9) {
711
- const _0x196eab = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
712
- let _0x2974da = '', _0xbd05e4 = '';
713
- for (let _0x1b6919 = 0x0, _0x40af45, _0x5ebbca, _0x2f113c = 0x0; _0x5ebbca = _0xa25be9['charAt'](_0x2f113c++); ~_0x5ebbca && (_0x40af45 = _0x1b6919 % 0x4 ? _0x40af45 * 0x40 + _0x5ebbca : _0x5ebbca, _0x1b6919++ % 0x4) ? _0x2974da += String['fromCharCode'](0xff & _0x40af45 >> (-0x2 * _0x1b6919 & 0x6)) : 0x0) {
714
- _0x5ebbca = _0x196eab['indexOf'](_0x5ebbca);
715
- }
716
- for (let _0x1718a8 = 0x0, _0x3e5ca4 = _0x2974da['length']; _0x1718a8 < _0x3e5ca4; _0x1718a8++) {
717
- _0xbd05e4 += '%' + ('00' + _0x2974da['charCodeAt'](_0x1718a8)['toString'](0x10))['slice'](-0x2);
718
- }
719
- return decodeURIComponent(_0xbd05e4);
720
- };
721
- _0x9c1d['GDyPva'] = _0x1e024e, _0x9c1d['UToLDA'] = {}, _0x9c1d['PyrAJh'] = !![];
722
- }
723
- const _0x1db0c0 = _0x5d966d[0x0], _0x52ab18 = _0x2a393b + _0x1db0c0, _0x1a2647 = _0x9c1d['UToLDA'][_0x52ab18];
724
- return !_0x1a2647 ? (_0x9c1dfc = _0x9c1d['GDyPva'](_0x9c1dfc), _0x9c1d['UToLDA'][_0x52ab18] = _0x9c1dfc) : _0x9c1dfc = _0x1a2647, _0x9c1dfc;
725
- }
726
- function createInternalAgentClient(_0x10fadd) {
727
- const _0x16e0bd = {
728
- _0xfb773d: 0x21c,
729
- _0x3ec066: 0x1c0
730
- }, _0xef03fa = {
731
- _0x44e2ee: 0x28f,
732
- _0x3afb94: 0x2a7,
733
- _0x1b610d: 0x247,
734
- _0xddc3fc: 0x1b5,
735
- _0x3faa9e: 0x198,
736
- _0x532893: 0x192,
737
- _0x5e65f3: 0x209,
738
- _0x34ca7e: 0x190,
739
- _0x30662c: 0x209,
740
- _0x2361b8: 0x1fc,
741
- _0x27f307: 0x2ac,
742
- _0x5b6eae: 0x2a9,
743
- _0x2b4399: 0x1bc,
744
- _0x1e25bd: 0x1a2,
745
- _0x39fe24: 0x21c,
746
- _0x18561a: 0x1a2,
747
- _0x4a0a1c: 0x2a8,
748
- _0x13f11a: 0x1a2,
749
- _0x3d9895: 0x2d1,
750
- _0x1a7e42: 0x191,
751
- _0x13db3f: 0x2a8,
752
- _0x8b63db: 0x2dc,
753
- _0x2469d8: 0x160,
754
- _0x4675db: 0x2dc,
755
- _0xc61f40: 0x1f4,
756
- _0x17ce51: 0x2ba,
757
- _0x1f781c: 0x1bc,
758
- _0x16f248: 0x2ba,
759
- _0x373434: 0x2ba
760
- }, _0x50c598 = {
761
- _0x461a8e: 0x2ac,
762
- _0x25ffe2: 0x1bc,
763
- _0x2e5d05: 0x213
764
- }, _0x2d4a03 = {
765
- _0x424d4e: 0x1f3,
766
- _0x123ff5: 0x2ac,
767
- _0x3d3eff: 0x2a9
768
- }, _0x65940a = {
769
- _0x374431: 0x1ac,
770
- _0x494a86: 0x1b9,
771
- _0x2a7989: 0x2a6,
772
- _0x305887: 0x18f,
773
- _0x3252a4: 0x275,
774
- _0x42ef8d: 0x182,
775
- _0x27d5bd: 0x1af
776
- }, _0x308e17 = {
777
- _0x241b37: 0x2a9,
778
- _0x34fdf: 0x2a7,
779
- _0x58ed62: 0x264,
780
- _0x19a9e7: 0x2e0,
781
- _0xb1ed11: 0x232,
782
- _0x4faf0d: 0x2d2,
783
- _0xed121f: 0x182,
784
- _0x4b0d6d: 0x1b1
785
- }, _0x1d4482 = {
786
- _0x330e9d: 0x2c4,
787
- _0x3e156d: 0x2a4
788
- }, _0x3fee09 = {
789
- _0x2495e2: 0x2a4,
790
- _0xc29ee1: 0x188
791
- }, _0x101fee = {
792
- _0x460ddc: 0x264,
793
- _0x5f0dd6: 0x26d,
794
- _0x2e5dcc: 0x2d9
795
- }, _0x8555c6 = {
796
- _0x1c03a8: 0x2a4,
797
- _0x56ad98: 0x1a8
798
- }, _0x510621 = {
799
- _0x23c458: 0x2ad,
800
- _0x471b8e: 0x2a7,
801
- _0x1f65e7: 0x1b9
802
- }, _0x52418c = {
803
- _0x40db17: 0x185,
804
- _0xae9d37: 0x226,
805
- _0x29b4c7: 0x1f6,
806
- _0x3c2704: 0x1d6,
807
- _0x41ccaa: 0x2ad
808
- }, _0x19bb39 = {
809
- _0x39b809: 0x185,
810
- _0x8b3daf: 0x1d6,
811
- _0x4acc3f: 0x20a
812
- }, _0x5a1afa = { _0x3a6b7a: 0x182 }, _0x3e85fa = {
813
- _0x519dcb: 0x232,
814
- _0x277078: 0x2cf,
815
- _0x3e9f18: 0x1eb,
816
- _0x436a3c: 0x2cf,
817
- _0x1a3b67: 0x264,
818
- _0x28e806: 0x2cf,
819
- _0x3818ce: 0x2a9,
820
- _0xe06b4: 0x1d6
821
- }, _0x1e2c34 = {
822
- _0x219481: 0x1e6,
823
- _0x428204: 0x2a9,
824
- _0x25daad: 0x28f,
825
- _0x2efcba: 0x2ac,
826
- _0x4caa95: 0x2ac,
827
- _0x5f4c7f: 0x2ac,
828
- _0xc495ec: 0x1f3,
829
- _0x27486e: 0x2d0,
830
- _0x1b519c: 0x264,
831
- _0x4aee22: 0x1c2,
832
- _0xf9663e: 0x1a0,
833
- _0x2376ba: 0x247
834
- }, _0x1a3099 = {
835
- _0x4979fc: 0x16b,
836
- _0x5b3185: 0x171
837
- }, _0x5baa04 = {
838
- _0x505327: 0x2ba,
839
- _0x503013: 0x1de,
840
- _0x367b7b: 0x2d1,
841
- _0x3aa5a3: 0x2d1,
842
- _0x52698d: 0x279,
843
- _0x929ed4: 0x2a9,
844
- _0x82dea: 0x2a9,
845
- _0x9fa142: 0x1a4
846
- }, _0x593225 = {
847
- _0x1b4ddc: 0x1a2,
848
- _0x3f3e68: 0x1a9,
849
- _0xaac78d: 0x1a9,
850
- _0x5ddbec: 0x2d1,
851
- _0x171f0b: 0x2a9
852
- }, _0x3b9eed = { _0x497e6b: 0x274 }, _0x37d591 = {
853
- _0x350609: 0x28e,
854
- _0x770266: 0x2b5
855
- }, _0x127f2a = {
856
- _0x4ee9d7: 0x264,
857
- _0x3efb06: 0x182,
858
- _0x229144: 0x182
859
- }, _0x48d815 = {
860
- _0x30db1e: 0x1d6,
861
- _0x53d203: 0x265
862
- }, _0x7be2da = { _0x4f8325: 0x18f }, _0xbb0e55 = {
863
- _0x15b3b8: 0x18f,
864
- _0x5ce51a: 0x226,
865
- _0x47a61b: 0x2ad
866
- }, _0x3fa2c1 = {
867
- _0x587f49: 0x2b4,
868
- _0x31f421: 0x19f,
869
- _0x4c2b08: 0x1cd,
870
- _0x39cd35: 0x2c7,
871
- _0x1b2bd1: 0x251
872
- }, _0x58d8fb = {
873
- _0x3dbb56: 0x275,
874
- _0x362e30: 0x1bb,
875
- _0xe34b9f: 0x268
876
- }, _0x267f14 = {
877
- _0x11bdf8: 0x253,
878
- _0x4855c0: 0x1e1,
879
- _0x2b7cf9: 0x2dc,
880
- _0x5bce59: 0x27b,
881
- _0x43c7fb: 0x1ed,
882
- _0x4dc578: 0x26a,
883
- _0x3a8869: 0x1ae,
884
- _0x2b07db: 0x2ad,
885
- _0x2774f3: 0x285
886
- }, _0x3e6ba3 = _0x1e865e, _0x3ede2d = _0x10fadd['fetchImpl'] ?? fetch, _0x55cb1f = _0x10fadd['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1493de = typeof _0x10fadd['initialLastSeenSeq'] === _0x3e6ba3(_0x16e0bd._0xfb773d) && _0x10fadd['initialLastSeenSeq'] > 0x0 ? _0x10fadd[_0x3e6ba3(0x2cc)] : 0x0, _0x3907eb = _0x10fadd[_0x3e6ba3(0x29c)]?.[_0x3e6ba3(_0x16e0bd._0x3ec066)]() || void 0x0, _0x18f930 = _0x10fadd['sessionId']?.[_0x3e6ba3(_0x16e0bd._0x3ec066)]() || void 0x0, _0x3c15f9 = _0x10fadd[_0x3e6ba3(0x260)] === !![], _0x17dd87 = _0x10fadd['workerSessionId']?.[_0x3e6ba3(0x1c0)]() || void 0x0, _0x40bb70 = _0x10fadd[_0x3e6ba3(0x24b)]?.['trim']() || void 0x0, _0x54c31e = createHeaders(_0x10fadd[_0x3e6ba3(0x15b)]), _0x556da7 = toHttpBaseUrl(_0x10fadd['serverUrl']);
887
- let _0x2c0c14 = null;
888
- const _0x5c841e = new Map();
889
- let _0x491264 = _0x1493de, _0x1706aa = _0x1493de;
890
- function _0x2c05e3(_0x529c3e) {
891
- const _0x27f14a = _0x3e6ba3, _0x5eb141 = _0x529c3e[_0x27f14a(_0x267f14._0x11bdf8)][_0x27f14a(_0x267f14._0x4855c0)][_0x27f14a(_0x267f14._0x2b7cf9)](_0x27f14a(_0x267f14._0x5bce59)) ?? _0x27f14a(_0x267f14._0x43c7fb), _0x4689e4 = _0x529c3e[_0x27f14a(_0x267f14._0x4dc578)]['trim']()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x27f14a(0x294);
892
- return _0x27f14a(_0x267f14._0x3a8869) + _0x529c3e[_0x27f14a(0x1b6)] + _0x27f14a(0x214) + _0x529c3e[_0x27f14a(_0x267f14._0x11bdf8)][_0x27f14a(_0x267f14._0x2b07db)] + _0x27f14a(0x280) + _0x5eb141 + ',\x20preview=' + _0x4689e4 + _0x27f14a(_0x267f14._0x2774f3);
701
+ function createInternalAgentClient(_0x17262b) {
702
+ const _0x4cccbb = {
703
+ _0x49999b: 0x244,
704
+ _0x107fb2: 0x1bc,
705
+ _0x6b6218: 0x238,
706
+ _0x485086: 0x1f6,
707
+ _0x1cedb1: 0x238,
708
+ _0x34b6c5: 0x1db,
709
+ _0x36f012: 0x129
710
+ }, _0x5eb86d = {
711
+ _0x5211aa: 0xf6,
712
+ _0x5c99df: 0x14f,
713
+ _0x10cbf9: 0x201,
714
+ _0x5036b3: 0xe5,
715
+ _0x9c83a5: 0x23e,
716
+ _0x2dcf9d: 0x146,
717
+ _0x1b2e6f: 0xbc,
718
+ _0x1ab9ee: 0xf7,
719
+ _0xba0cf2: 0x1e8,
720
+ _0x1fc159: 0x1cb,
721
+ _0x4dc78b: 0x229,
722
+ _0x5c65d1: 0x128,
723
+ _0x6b6ebb: 0x1ac,
724
+ _0x2616dd: 0xe3,
725
+ _0x195701: 0x1ac,
726
+ _0x5ca5a2: 0x1f3,
727
+ _0x1c8f2d: 0xe3,
728
+ _0x35a1ee: 0x141,
729
+ _0x405f28: 0x16f,
730
+ _0x64deb5: 0x23b,
731
+ _0x248a3f: 0x145,
732
+ _0x331458: 0x15f,
733
+ _0x50df31: 0x1e8,
734
+ _0x3e7ad3: 0x1de,
735
+ _0x4a4596: 0x18e,
736
+ _0x39d06a: 0x18e,
737
+ _0x5469f2: 0x11b,
738
+ _0x8d02ed: 0x11b
739
+ }, _0x37d62d = {
740
+ _0x31e0ff: 0x232,
741
+ _0x421439: 0x229
742
+ }, _0x79709b = {
743
+ _0xec87a1: 0x179,
744
+ _0x47cd7a: 0x15b,
745
+ _0x264bcd: 0x186,
746
+ _0x5ad6ca: 0x162,
747
+ _0x592170: 0x161,
748
+ _0x48f7d5: 0x170,
749
+ _0x42a5f7: 0x1f1,
750
+ _0x3330: 0xe5
751
+ }, _0x59c219 = {
752
+ _0x2ef705: 0xba,
753
+ _0xeb7af1: 0x229,
754
+ _0x10894e: 0x1f9,
755
+ _0x3b43f8: 0x201,
756
+ _0x4b9117: 0x112,
757
+ _0x5cbe6e: 0xd7,
758
+ _0xb8ff69: 0x1c7,
759
+ _0xe8cb0b: 0xf4,
760
+ _0x5d2ddd: 0xe5
761
+ }, _0x1e3217 = { _0x2b975f: 0x201 }, _0x1c41eb = {
762
+ _0x98c01e: 0x201,
763
+ _0x1b0c3e: 0x112,
764
+ _0x4636e4: 0xf4
765
+ }, _0x1ee795 = {
766
+ _0x38044b: 0xcf,
767
+ _0xf9120b: 0x1e6,
768
+ _0x525d95: 0xf4
769
+ }, _0x1f62fd = {
770
+ _0xa88028: 0xcf,
771
+ _0x4dc32e: 0x112
772
+ }, _0x19ff08 = {
773
+ _0x50c22c: 0x12e,
774
+ _0xebf989: 0x186
775
+ }, _0x4732ae = {
776
+ _0x1bcd45: 0x12e,
777
+ _0x43e7c4: 0xf4,
778
+ _0x5c2126: 0xe5,
779
+ _0x1ea312: 0x152
780
+ }, _0x334940 = { _0x29cba5: 0x168 }, _0x12f6eb = {
781
+ _0x4d193e: 0x112,
782
+ _0x5e874b: 0xf4
783
+ }, _0x1d8d90 = { _0x39cbd8: 0x186 }, _0x1a5601 = {
784
+ _0x96342b: 0x1b9,
785
+ _0x20175a: 0x202,
786
+ _0x4e45ee: 0xcf,
787
+ _0x566a05: 0x112,
788
+ _0x4a85b1: 0x229,
789
+ _0x181916: 0x111,
790
+ _0x428acc: 0xe5
791
+ }, _0xbdddf3 = {
792
+ _0x351cbe: 0x1e1,
793
+ _0x37a14f: 0x1e1,
794
+ _0x37d0bc: 0x16f,
795
+ _0xd0ea38: 0x181,
796
+ _0x5b401e: 0x17a,
797
+ _0x473ba5: 0x232,
798
+ _0x3de3db: 0xcf,
799
+ _0x5ec29d: 0x14f,
800
+ _0x5f5860: 0x186,
801
+ _0x3945d1: 0xf7,
802
+ _0x1660e5: 0x241,
803
+ _0x58a87: 0x208
804
+ }, _0x86e614 = { _0x433040: 0x145 }, _0x1fef53 = {
805
+ _0x33af9d: 0x22e,
806
+ _0x4d52dd: 0x1fe
807
+ }, _0x475d86 = {
808
+ _0x110104: 0x241,
809
+ _0x104bb6: 0x241,
810
+ _0x2ca3c3: 0x128,
811
+ _0x2bc81b: 0x1c1,
812
+ _0x26e801: 0x1e3,
813
+ _0x3583ee: 0x229,
814
+ _0x5ba51d: 0x229
815
+ }, _0x565212 = {
816
+ _0x32b250: 0x1ac,
817
+ _0x57264e: 0x1ac,
818
+ _0x3afbd3: 0x128,
819
+ _0x4e8d8a: 0x229,
820
+ _0x420f5a: 0x241
821
+ }, _0x1ba010 = {
822
+ _0x484a56: 0x1b3,
823
+ _0x4d251b: 0x235
824
+ }, _0x460f5d = {
825
+ _0xa58413: 0x201,
826
+ _0x2eaede: 0x10a,
827
+ _0x365299: 0xe5,
828
+ _0x3f2b0e: 0xe5,
829
+ _0x57ab94: 0x229,
830
+ _0x434c45: 0x1ac
831
+ }, _0x1116b3 = {
832
+ _0x12e2ca: 0xdf,
833
+ _0x49a26b: 0xdc
834
+ }, _0x1c9961 = {
835
+ _0x134a2b: 0x158,
836
+ _0x34cd20: 0x114
837
+ }, _0x1665e5 = {
838
+ _0x3a92b5: 0x228,
839
+ _0x4a7092: 0x228,
840
+ _0x3bb7d2: 0x228,
841
+ _0x5270bc: 0xbb
842
+ }, _0x45358f = {
843
+ _0x53fc06: 0x228,
844
+ _0x492b44: 0x228,
845
+ _0x2d8e52: 0x21b,
846
+ _0x58358c: 0xbb,
847
+ _0x41a709: 0x12e
848
+ }, _0x324c4b = {
849
+ _0x9cd001: 0x1cb,
850
+ _0x4c3d34: 0xd1,
851
+ _0x485492: 0x183,
852
+ _0x5e1e99: 0x171,
853
+ _0x3af37f: 0x20c
854
+ }, _0x4bd8da = {
855
+ _0x6d6384: 0x1f1,
856
+ _0x52486f: 0x14f,
857
+ _0x27b7fd: 0x238
858
+ }, _0x38143e = {
859
+ _0x4c4252: 0x1a2,
860
+ _0x3e924d: 0x161,
861
+ _0x1a84d0: 0xce,
862
+ _0x2e3dc3: 0x238,
863
+ _0x32fb11: 0xc7,
864
+ _0x48d641: 0x1e2
865
+ }, _0x51700c = _0x77ce4b, _0x56c41b = _0x17262b[_0x51700c(_0x4cccbb._0x49999b)] ?? fetch, _0x44146a = _0x17262b[_0x51700c(0xdb)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x35dec7 = typeof _0x17262b['initialLastSeenSeq'] === _0x51700c(0xbe) && _0x17262b[_0x51700c(_0x4cccbb._0x107fb2)] > 0x0 ? _0x17262b[_0x51700c(_0x4cccbb._0x107fb2)] : 0x0, _0x190988 = _0x17262b[_0x51700c(0x1f4)]?.[_0x51700c(_0x4cccbb._0x6b6218)]() || void 0x0, _0x2dd09a = _0x17262b[_0x51700c(_0x4cccbb._0x485086)]?.[_0x51700c(0x238)]() || void 0x0, _0x5a3c40 = _0x17262b[_0x51700c(0x211)] === !![], _0x4d1720 = _0x17262b[_0x51700c(0x222)]?.[_0x51700c(_0x4cccbb._0x1cedb1)]() || void 0x0, _0x1f9804 = _0x17262b['workerThreadTarget']?.[_0x51700c(_0x4cccbb._0x1cedb1)]() || void 0x0, _0x597408 = createHeaders(_0x17262b[_0x51700c(_0x4cccbb._0x34b6c5)]), _0x558388 = toHttpBaseUrl(_0x17262b[_0x51700c(_0x4cccbb._0x36f012)]);
866
+ let _0x382a40 = null;
867
+ const _0x30575d = new Map();
868
+ let _0xdfb599 = _0x35dec7, _0x443b7c = _0x35dec7;
869
+ function _0x5123c0(_0x390e0c) {
870
+ const _0x4cc795 = _0x51700c, _0x370df0 = _0x390e0c[_0x4cc795(_0x38143e._0x4c4252)][_0x4cc795(0x162)][_0x4cc795(_0x38143e._0x3e924d)]('content-type') ?? 'unknown', _0x2b818c = _0x390e0c[_0x4cc795(_0x38143e._0x1a84d0)][_0x4cc795(_0x38143e._0x2e3dc3)]()[_0x4cc795(_0x38143e._0x32fb11)](/\s+/g, '\x20')[_0x4cc795(0x23d)](0x0, 0x78) || _0x4cc795(_0x38143e._0x48d641);
871
+ return _0x4cc795(0x1d1) + _0x390e0c[_0x4cc795(0x224)] + _0x4cc795(0x16c) + _0x390e0c[_0x4cc795(0x1a2)]['status'] + _0x4cc795(0x107) + _0x370df0 + ',\x20preview=' + _0x2b818c + _0x4cc795(0x1e5);
893
872
  }
894
- async function _0x18caad(_0x68ef7b, _0x7783fe) {
895
- const _0x1788e8 = _0x3e6ba3, _0x3b17e4 = Buffer[_0x1788e8(_0x58d8fb._0x3dbb56)](await _0x7783fe[_0x1788e8(_0x58d8fb._0x362e30)]())['toString'](_0x1788e8(_0x58d8fb._0xe34b9f));
896
- if (!_0x3b17e4[_0x1788e8(0x1c0)]())
873
+ async function _0x458481(_0x315432, _0x15a37b) {
874
+ const _0xa62eea = _0x51700c, _0x2c2596 = Buffer[_0xa62eea(_0x4bd8da._0x6d6384)](await _0x15a37b['arrayBuffer']())[_0xa62eea(_0x4bd8da._0x52486f)]('utf8');
875
+ if (!_0x2c2596[_0xa62eea(_0x4bd8da._0x27b7fd)]())
897
876
  return {};
898
877
  try {
899
- return JSON[_0x1788e8(0x1b4)](_0x3b17e4);
878
+ return JSON[_0xa62eea(0x192)](_0x2c2596);
900
879
  } catch {
901
- throw new Error(_0x2c05e3({
902
- 'bodyText': _0x3b17e4,
903
- 'requestUrl': _0x68ef7b,
904
- 'response': _0x7783fe
880
+ throw new Error(_0x5123c0({
881
+ 'bodyText': _0x2c2596,
882
+ 'requestUrl': _0x315432,
883
+ 'response': _0x15a37b
905
884
  }));
906
885
  }
907
886
  }
908
- function _0x341566(_0x527165, _0x5ec242) {
909
- const _0xd3c257 = _0x3e6ba3, _0x16a8eb = typeof _0x5ec242[_0xd3c257(_0x3fa2c1._0x587f49)] === _0xd3c257(0x1bc) ? _0x5ec242[_0xd3c257(0x2b4)][_0xd3c257(0x1c0)]() : '';
910
- if (_0x16a8eb)
911
- return _0x16a8eb;
912
- const _0x50233a = Date[_0xd3c257(_0x3fa2c1._0x31f421)]();
913
- for (const [_0x4b0025, _0x14461c] of _0x5c841e) {
914
- _0x14461c['expiresAt'] <= _0x50233a && _0x5c841e[_0xd3c257(0x2a3)](_0x4b0025);
887
+ function _0x390ff5(_0xdedfbd, _0x21443c) {
888
+ const _0x367d93 = _0x51700c, _0x1d05fa = typeof _0x21443c['idempotency_key'] === _0x367d93(_0x324c4b._0x9cd001) ? _0x21443c[_0x367d93(_0x324c4b._0x4c3d34)]['trim']() : '';
889
+ if (_0x1d05fa)
890
+ return _0x1d05fa;
891
+ const _0x3ea6ec = Date[_0x367d93(0xc8)]();
892
+ for (const [_0x5849df, _0x5c1f4c] of _0x30575d) {
893
+ _0x5c1f4c[_0x367d93(_0x324c4b._0x485492)] <= _0x3ea6ec && _0x30575d[_0x367d93(_0x324c4b._0x5e1e99)](_0x5849df);
915
894
  }
916
- const _0xd2b65d = {
917
- ..._0x5ec242,
895
+ const _0x2586a8 = {
896
+ ..._0x21443c,
918
897
  'idempotency_key': void 0x0
919
- }, _0x4cb2a4 = createHash(_0xd3c257(_0x3fa2c1._0x4c2b08))[_0xd3c257(_0x3fa2c1._0x39cd35)](_0x527165 + ':' + stableStringify(_0xd2b65d))['digest'](_0xd3c257(0x1ee)), _0x2aa7fa = _0x527165 + ':' + _0x4cb2a4, _0x4618f4 = _0x5c841e[_0xd3c257(0x2dc)](_0x2aa7fa);
920
- if (_0x4618f4)
921
- return _0x4618f4[_0xd3c257(0x259)];
922
- const _0x3a043f = _0xd3c257(_0x3fa2c1._0x1b2bd1) + _0x527165 + ':' + randomUUID();
923
- return _0x5c841e['set'](_0x2aa7fa, {
924
- 'expiresAt': _0x50233a + 0x5 * 0x3c * 0x3e8,
925
- 'value': _0x3a043f
926
- }), _0x3a043f;
898
+ }, _0x223fac = createHash('sha256')[_0x367d93(_0x324c4b._0x3af37f)](_0xdedfbd + ':' + stableStringify(_0x2586a8))['digest'](_0x367d93(0x140)), _0x2b6baa = _0xdedfbd + ':' + _0x223fac, _0x3bad23 = _0x30575d['get'](_0x2b6baa);
899
+ if (_0x3bad23)
900
+ return _0x3bad23[_0x367d93(0xcc)];
901
+ const _0x5f241c = _0x367d93(0xe9) + _0xdedfbd + ':' + randomUUID();
902
+ return _0x30575d[_0x367d93(0x16f)](_0x2b6baa, {
903
+ 'expiresAt': _0x3ea6ec + 0x5 * 0x3c * 0x3e8,
904
+ 'value': _0x5f241c
905
+ }), _0x5f241c;
927
906
  }
928
- async function _0x5425cd(_0x55cb78, _0x43dfc9) {
929
- const _0x510bae = _0x3e6ba3, _0x5cde01 = new AbortController(), _0x5a4655 = setTimeout(() => _0x5cde01['abort'](), _0x55cb1f), _0x8dbaca = _0x43dfc9?.[_0x510bae(_0xbb0e55._0x15b3b8)] ? anySignal(_0x43dfc9[_0x510bae(0x18f)], _0x5cde01[_0x510bae(0x18f)]) : _0x5cde01['signal'], _0x137e6d = '' + _0x556da7 + _0x55cb78;
907
+ async function _0x236761(_0x5b0687, _0x606404) {
908
+ const _0x521a31 = _0x51700c, _0x422026 = new AbortController(), _0x1eb447 = setTimeout(() => _0x422026['abort'](), _0x44146a), _0x3c0347 = _0x606404?.[_0x521a31(_0x45358f._0x53fc06)] ? anySignal(_0x606404[_0x521a31(_0x45358f._0x492b44)], _0x422026[_0x521a31(0x228)]) : _0x422026[_0x521a31(_0x45358f._0x53fc06)], _0x197e51 = '' + _0x558388 + _0x5b0687;
930
909
  try {
931
- const _0x5bfd1b = await _0x3ede2d(_0x137e6d, {
932
- ..._0x43dfc9,
933
- 'signal': _0x8dbaca
934
- }), _0x422297 = await _0x18caad(_0x137e6d, _0x5bfd1b);
935
- if (!_0x5bfd1b['ok'] || _0x422297[_0x510bae(0x155)] === ![])
936
- throw new Error(asErrorMessage(_0x422297[_0x510bae(_0xbb0e55._0x5ce51a)], 'HTTP\x20' + _0x5bfd1b[_0x510bae(_0xbb0e55._0x47a61b)]));
937
- return _0x422297;
910
+ const _0x21c541 = await _0x56c41b(_0x197e51, {
911
+ ..._0x606404,
912
+ 'signal': _0x3c0347
913
+ }), _0x3bf181 = await _0x458481(_0x197e51, _0x21c541);
914
+ if (!_0x21c541['ok'] || _0x3bf181[_0x521a31(_0x45358f._0x2d8e52)] === ![])
915
+ throw new Error(asErrorMessage(_0x3bf181['error'], _0x521a31(_0x45358f._0x58358c) + _0x21c541[_0x521a31(_0x45358f._0x41a709)]));
916
+ return _0x3bf181;
938
917
  } finally {
939
- clearTimeout(_0x5a4655);
918
+ clearTimeout(_0x1eb447);
940
919
  }
941
920
  }
942
- async function _0x1dd566(_0x422a77, _0x3b1f63) {
943
- const _0x5730a6 = _0x3e6ba3, _0x4b0e32 = new AbortController(), _0x49d3a8 = setTimeout(() => _0x4b0e32['abort'](), _0x55cb1f), _0x16526b = _0x3b1f63?.[_0x5730a6(0x18f)] ? anySignal(_0x3b1f63['signal'], _0x4b0e32[_0x5730a6(_0x7be2da._0x4f8325)]) : _0x4b0e32['signal'], _0x4b7507 = '' + _0x556da7 + _0x422a77;
921
+ async function _0x4e5101(_0xe41b8b, _0x13fb25) {
922
+ const _0x42c733 = _0x51700c, _0x1cb598 = new AbortController(), _0xa21c8e = setTimeout(() => _0x1cb598[_0x42c733(0x1be)](), _0x44146a), _0x4b50ce = _0x13fb25?.[_0x42c733(_0x1665e5._0x3a92b5)] ? anySignal(_0x13fb25[_0x42c733(_0x1665e5._0x4a7092)], _0x1cb598[_0x42c733(_0x1665e5._0x3bb7d2)]) : _0x1cb598[_0x42c733(0x228)], _0x5b5143 = '' + _0x558388 + _0xe41b8b;
944
923
  try {
945
- const _0x79d2eb = await _0x3ede2d(_0x4b7507, {
946
- ..._0x3b1f63,
947
- 'signal': _0x16526b
948
- }), _0x4a0e5c = await _0x18caad(_0x4b7507, _0x79d2eb);
949
- if (!_0x79d2eb['ok'])
950
- throw new Error(asErrorMessage(_0x4a0e5c[_0x5730a6(0x226)], _0x5730a6(0x265) + _0x79d2eb[_0x5730a6(0x2ad)]));
951
- return _0x4a0e5c;
924
+ const _0x4e68cd = await _0x56c41b(_0x5b5143, {
925
+ ..._0x13fb25,
926
+ 'signal': _0x4b50ce
927
+ }), _0x1472c0 = await _0x458481(_0x5b5143, _0x4e68cd);
928
+ if (!_0x4e68cd['ok'])
929
+ throw new Error(asErrorMessage(_0x1472c0[_0x42c733(0x14d)], _0x42c733(_0x1665e5._0x5270bc) + _0x4e68cd['status']));
930
+ return _0x1472c0;
952
931
  } finally {
953
- clearTimeout(_0x49d3a8);
932
+ clearTimeout(_0xa21c8e);
954
933
  }
955
934
  }
956
- async function _0x30e23a(_0x2cf027) {
957
- const _0xc771ee = _0x3e6ba3;
958
- if (!_0x18f930 || _0x2cf027 <= _0x1706aa)
935
+ async function _0x455686(_0x1a0120) {
936
+ const _0xb79838 = _0x51700c;
937
+ if (!_0x2dd09a || _0x1a0120 <= _0x443b7c)
959
938
  return;
960
- await _0x5425cd('/api/agent-sessions/' + encodeURIComponent(_0x18f930) + _0xc771ee(0x152), {
961
- 'body': JSON[_0xc771ee(0x2a4)]({ 'lastSeenSeq': _0x2cf027 }),
962
- 'headers': _0x54c31e,
939
+ await _0x236761(_0xb79838(_0x1c9961._0x134a2b) + encodeURIComponent(_0x2dd09a) + _0xb79838(_0x1c9961._0x34cd20), {
940
+ 'body': JSON[_0xb79838(0x112)]({ 'lastSeenSeq': _0x1a0120 }),
941
+ 'headers': _0x597408,
963
942
  'method': 'PATCH'
964
- }), _0x1706aa = _0x2cf027;
943
+ }), _0x443b7c = _0x1a0120;
965
944
  }
966
- async function _0xe5de36(_0x1c9a4c) {
967
- const _0x476d56 = _0x3e6ba3;
968
- if (!_0x3907eb || !_0x17dd87 || _0x1c9a4c <= _0x1706aa)
945
+ async function _0x61fc0e(_0x44bebc) {
946
+ const _0x486af4 = _0x51700c;
947
+ if (!_0x190988 || !_0x4d1720 || _0x44bebc <= _0x443b7c)
969
948
  return;
970
- const _0x53bbaf = await _0x3ede2d(_0x3907eb + '/workers/context-metrics', {
971
- 'body': JSON[_0x476d56(0x2a4)]({
972
- 'last_seen_seq': _0x1c9a4c,
973
- 'worker_session_id': _0x17dd87
949
+ const _0x31f820 = await _0x56c41b(_0x190988 + _0x486af4(_0x1116b3._0x12e2ca), {
950
+ 'body': JSON[_0x486af4(0x112)]({
951
+ 'last_seen_seq': _0x44bebc,
952
+ 'worker_session_id': _0x4d1720
974
953
  }),
975
- 'headers': { 'Content-Type': 'application/json' },
976
- 'method': _0x476d56(_0x48d815._0x30db1e)
954
+ 'headers': { 'Content-Type': _0x486af4(_0x1116b3._0x49a26b) },
955
+ 'method': 'POST'
977
956
  });
978
- if (!_0x53bbaf['ok'])
979
- throw new Error(_0x476d56(_0x48d815._0x53d203) + _0x53bbaf['status']);
980
- _0x1706aa = _0x1c9a4c;
957
+ if (!_0x31f820['ok'])
958
+ throw new Error(_0x486af4(0xbb) + _0x31f820['status']);
959
+ _0x443b7c = _0x44bebc;
981
960
  }
982
- async function _0x36c1f3(_0x5347d6) {
983
- const _0x5cbbe1 = _0x3e6ba3, _0x25bc8b = parseTarget(_0x5347d6), _0x576f24 = await _0x5425cd(_0x5cbbe1(0x2a7) + _0x10fadd[_0x5cbbe1(_0x127f2a._0x4ee9d7)] + '/resolve-channel', {
984
- 'body': JSON[_0x5cbbe1(0x2a4)]({ 'target': _0x25bc8b['target'] }),
985
- 'headers': _0x54c31e,
961
+ async function _0x5322c7(_0x28b5fd) {
962
+ const _0x198d3 = _0x51700c, _0x1102fa = parseTarget(_0x28b5fd), _0x757c5 = await _0x236761('/internal/agent/' + _0x17262b[_0x198d3(_0x460f5d._0xa58413)] + _0x198d3(_0x460f5d._0x2eaede), {
963
+ 'body': JSON['stringify']({ 'target': _0x1102fa[_0x198d3(0x1b9)] }),
964
+ 'headers': _0x597408,
986
965
  'method': 'POST'
987
966
  });
988
967
  return {
989
- 'channelId': _0x576f24[_0x5cbbe1(_0x127f2a._0x3efb06)]?.[_0x5cbbe1(0x2ac)] ?? '',
990
- 'target': _0x25bc8b[_0x5cbbe1(0x1a9)],
991
- 'task': _0x576f24['data']?.[_0x5cbbe1(0x263)],
992
- 'threadId': _0x576f24[_0x5cbbe1(_0x127f2a._0x3efb06)]?.['threadId'],
993
- 'threadNumber': _0x576f24[_0x5cbbe1(_0x127f2a._0x229144)]?.['threadNumber']
968
+ 'channelId': _0x757c5['data']?.[_0x198d3(0x181)] ?? '',
969
+ 'target': _0x1102fa['channelTarget'],
970
+ 'task': _0x757c5[_0x198d3(_0x460f5d._0x365299)]?.['task'],
971
+ 'threadId': _0x757c5[_0x198d3(_0x460f5d._0x3f2b0e)]?.[_0x198d3(_0x460f5d._0x57ab94)],
972
+ 'threadNumber': _0x757c5[_0x198d3(0xe5)]?.[_0x198d3(_0x460f5d._0x434c45)]
994
973
  };
995
974
  }
996
- async function _0x113e03(_0x1a6b9f = {}) {
997
- const _0x43a847 = {
998
- _0x258aba: 0x166,
999
- _0x36d333: 0x271,
1000
- _0x30c4b0: 0x271,
1001
- _0x3467d1: 0x25b,
1002
- _0xb84091: 0x27a,
1003
- _0x19ae18: 0x160
1004
- }, _0x10c342 = _0x3e6ba3;
1005
- if (!_0x1a6b9f[_0x10c342(_0x37d591._0x350609)] && _0x2c0c14)
1006
- return _0x2c0c14;
1007
- return _0x2c0c14 = (async () => {
1008
- const _0x1d1930 = _0x10c342, _0x38ba2a = await _0x5425cd(_0x1d1930(0x2a7) + _0x10fadd[_0x1d1930(0x264)] + _0x1d1930(0x1e4), {
1009
- 'headers': _0x54c31e,
1010
- 'method': _0x1d1930(0x1b9)
1011
- }), _0x498e1a = _0x38ba2a[_0x1d1930(0x182)]?.[_0x1d1930(_0x43a847._0x258aba)] ?? [], _0x229fe5 = _0x498e1a[_0x1d1930(_0x43a847._0x36d333)](_0x3a47df => _0x3a47df[_0x1d1930(0x2de)]?.[_0x1d1930(0x211)] === _0x1d1930(0x154))[_0x1d1930(0x209)](_0x2d6bf4 => ({
1012
- 'id': _0x518ee5(_0x2d6bf4),
1013
- 'name': _0x2403d3(_0x2d6bf4)
1014
- }))[_0x1d1930(_0x43a847._0x30c4b0)](_0xf79258 => _0xf79258['id']), _0x4fa604 = _0x498e1a[_0x1d1930(0x271)](_0x424a5a => _0x424a5a[_0x1d1930(0x2de)]?.[_0x1d1930(0x211)] !== _0x1d1930(0x154))['map'](_0x3054df => ({
1015
- 'id': _0x518ee5(_0x3054df),
1016
- 'name': _0x2403d3(_0x3054df)
1017
- }))['filter'](_0x890eeb => _0x890eeb['id']), _0x31ed56 = _0x38ba2a['data']?.[_0x1d1930(0x27a)]['id'] ?? '';
975
+ async function _0x3307fb(_0x3a5314 = {}) {
976
+ const _0x7b5865 = {
977
+ _0x46b924: 0x186,
978
+ _0x2a225e: 0x1bd,
979
+ _0x5b2f17: 0x1bd,
980
+ _0x3e3ad6: 0x200,
981
+ _0x4a3269: 0x200
982
+ };
983
+ if (!_0x3a5314['forceRefresh'] && _0x382a40)
984
+ return _0x382a40;
985
+ return _0x382a40 = (async () => {
986
+ const _0x392985 = _0x4210, _0x3f40f0 = await _0x236761(_0x392985(0xcf) + _0x17262b['agentId'] + _0x392985(0x1b6), {
987
+ 'headers': _0x597408,
988
+ 'method': _0x392985(_0x7b5865._0x46b924)
989
+ }), _0x33cd32 = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(0x23a)] ?? [], _0x7a425d = _0x33cd32['filter'](_0x2f6a70 => _0x2f6a70['participant']?.[_0x392985(0x197)] === _0x392985(0x1c0))['map'](_0x2f3b8e => ({
990
+ 'id': _0x5bbe81(_0x2f3b8e),
991
+ 'name': _0x3b4522(_0x2f3b8e)
992
+ }))[_0x392985(_0x7b5865._0x2a225e)](_0x4e5480 => _0x4e5480['id']), _0x31536d = _0x33cd32[_0x392985(_0x7b5865._0x5b2f17)](_0x5497cf => _0x5497cf['participant']?.[_0x392985(0x197)] !== _0x392985(0x1c0))[_0x392985(0xf7)](_0x52feda => ({
993
+ 'id': _0x5bbe81(_0x52feda),
994
+ 'name': _0x3b4522(_0x52feda)
995
+ }))[_0x392985(0x1bd)](_0x17892b => _0x17892b['id']), _0x4c5acc = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(_0x7b5865._0x3e3ad6)]['id'] ?? '';
1018
996
  return {
1019
- 'agents': _0x229fe5,
1020
- 'channels': _0x38ba2a[_0x1d1930(0x182)]?.[_0x1d1930(_0x43a847._0x3467d1)] ?? [],
1021
- 'humans': _0x4fa604,
1022
- 'serverId': _0x31ed56,
1023
- 'serverName': _0x38ba2a[_0x1d1930(0x182)]?.[_0x1d1930(_0x43a847._0xb84091)][_0x1d1930(_0x43a847._0x19ae18)] ?? _0x31ed56
997
+ 'agents': _0x7a425d,
998
+ 'channels': _0x3f40f0[_0x392985(0xe5)]?.['channels'] ?? [],
999
+ 'humans': _0x31536d,
1000
+ 'serverId': _0x4c5acc,
1001
+ 'serverName': _0x3f40f0['data']?.[_0x392985(_0x7b5865._0x4a3269)][_0x392985(0x145)] ?? _0x4c5acc
1024
1002
  };
1025
- })()[_0x10c342(_0x37d591._0x770266)](_0x1cf2f5 => {
1026
- _0x2c0c14 = null;
1027
- throw _0x1cf2f5;
1028
- }), _0x2c0c14;
1003
+ })()['catch'](_0x592546 => {
1004
+ _0x382a40 = null;
1005
+ throw _0x592546;
1006
+ }), _0x382a40;
1029
1007
  }
1030
- function _0x242aec(_0x4256db, _0x29478d) {
1031
- const _0xf6d801 = _0x3e6ba3;
1032
- return _0x29478d[_0xf6d801(_0x3b9eed._0x497e6b)]['some'](_0x393a48 => _0x393a48['id'] === _0x4256db || _0x393a48[_0xf6d801(0x160)] === _0x4256db) ? _0xf6d801(0x154) : _0xf6d801(0x2b8);
1008
+ function _0x4c91ee(_0x586cf4, _0x3b5010) {
1009
+ const _0x486681 = _0x51700c;
1010
+ return _0x3b5010[_0x486681(_0x1ba010._0x484a56)][_0x486681(0x176)](_0x4753c7 => _0x4753c7['id'] === _0x586cf4 || _0x4753c7[_0x486681(0x145)] === _0x586cf4) ? 'agent' : _0x486681(_0x1ba010._0x4d251b);
1033
1011
  }
1034
- function _0x1b2d20(_0x341aef) {
1035
- const _0x424a2c = _0x3e6ba3;
1036
- if (_0x341aef[_0x424a2c(_0x593225._0x1b4ddc)] != null)
1037
- return _0x341aef[_0x424a2c(_0x593225._0x3f3e68)] + ':t' + _0x341aef[_0x424a2c(_0x593225._0x1b4ddc)];
1038
- if (_0x341aef[_0x424a2c(0x2d1)])
1039
- return _0x341aef[_0x424a2c(_0x593225._0xaac78d)] + ':' + _0x341aef[_0x424a2c(_0x593225._0x5ddbec)];
1040
- if (_0x341aef[_0x424a2c(0x2a9)])
1041
- return _0x341aef[_0x424a2c(0x1a9)] + ':' + _0x341aef[_0x424a2c(_0x593225._0x171f0b)]['slice'](0x0, 0x8);
1042
- return _0x341aef[_0x424a2c(0x1a9)];
1012
+ function _0x2e978f(_0x52b938) {
1013
+ const _0x1c3d58 = _0x51700c;
1014
+ if (_0x52b938[_0x1c3d58(_0x565212._0x32b250)] != null)
1015
+ return _0x52b938[_0x1c3d58(0x241)] + ':t' + _0x52b938[_0x1c3d58(_0x565212._0x57264e)];
1016
+ if (_0x52b938[_0x1c3d58(0x128)])
1017
+ return _0x52b938[_0x1c3d58(0x241)] + ':' + _0x52b938[_0x1c3d58(_0x565212._0x3afbd3)];
1018
+ if (_0x52b938[_0x1c3d58(_0x565212._0x4e8d8a)])
1019
+ return _0x52b938['channelTarget'] + ':' + _0x52b938[_0x1c3d58(_0x565212._0x4e8d8a)][_0x1c3d58(0x23d)](0x0, 0x8);
1020
+ return _0x52b938[_0x1c3d58(_0x565212._0x420f5a)];
1043
1021
  }
1044
- function _0x43744f(_0x24eea7, _0x2cc3e5) {
1045
- const _0x5b949b = _0x3e6ba3;
1022
+ function _0x4d7892(_0x2552e3, _0x1fa855) {
1023
+ const _0x3de046 = _0x51700c;
1046
1024
  try {
1047
- const _0x1afe61 = parseTarget(_0x24eea7);
1048
- if (_0x1afe61[_0x5b949b(_0x5baa04._0x505327)] !== _0x5b949b(_0x5baa04._0x503013) || _0x1afe61[_0x5b949b(0x1a9)] !== _0x2cc3e5[_0x5b949b(0x1a9)])
1025
+ const _0x5c2974 = parseTarget(_0x2552e3);
1026
+ if (_0x5c2974[_0x3de046(0x15f)] !== _0x3de046(0x17c) || _0x5c2974[_0x3de046(_0x475d86._0x110104)] !== _0x1fa855[_0x3de046(_0x475d86._0x104bb6)])
1049
1027
  return ![];
1050
- if (_0x2cc3e5[_0x5b949b(0x1a2)] != null && _0x1afe61['threadShortId'] === 't' + _0x2cc3e5[_0x5b949b(0x1a2)])
1028
+ if (_0x1fa855[_0x3de046(0x1ac)] != null && _0x5c2974[_0x3de046(0x1e3)] === 't' + _0x1fa855[_0x3de046(0x1ac)])
1051
1029
  return !![];
1052
- if (_0x2cc3e5[_0x5b949b(_0x5baa04._0x367b7b)])
1053
- return _0x1afe61['threadShortId'] === _0x2cc3e5['rootMessageId'] || _0x2cc3e5[_0x5b949b(_0x5baa04._0x3aa5a3)]['startsWith'](_0x1afe61[_0x5b949b(_0x5baa04._0x52698d)]);
1054
- if (_0x2cc3e5[_0x5b949b(_0x5baa04._0x929ed4)])
1055
- return _0x1afe61['threadShortId'] === _0x2cc3e5[_0x5b949b(0x2a9)] || _0x2cc3e5[_0x5b949b(_0x5baa04._0x82dea)][_0x5b949b(_0x5baa04._0x9fa142)](_0x1afe61['threadShortId']);
1030
+ if (_0x1fa855[_0x3de046(0x128)])
1031
+ return _0x5c2974['threadShortId'] === _0x1fa855[_0x3de046(_0x475d86._0x2ca3c3)] || _0x1fa855[_0x3de046(0x128)][_0x3de046(_0x475d86._0x2bc81b)](_0x5c2974[_0x3de046(_0x475d86._0x26e801)]);
1032
+ if (_0x1fa855[_0x3de046(_0x475d86._0x3583ee)])
1033
+ return _0x5c2974[_0x3de046(0x1e3)] === _0x1fa855[_0x3de046(_0x475d86._0x5ba51d)] || _0x1fa855[_0x3de046(0x229)][_0x3de046(0x1c1)](_0x5c2974['threadShortId']);
1056
1034
  return ![];
1057
1035
  } catch {
1058
1036
  return ![];
1059
1037
  }
1060
1038
  }
1061
- function _0x518ee5(_0x30b049) {
1062
- const _0x5c4253 = _0x3e6ba3;
1063
- return _0x30b049[_0x5c4253(_0x1a3099._0x4979fc)]?.[_0x5c4253(_0x1a3099._0x5b3185)] ?? _0x30b049[_0x5c4253(0x2de)]?.['id'] ?? _0x30b049[_0x5c4253(0x171)] ?? '';
1039
+ function _0x5bbe81(_0x40941a) {
1040
+ const _0x20927d = _0x51700c;
1041
+ return _0x40941a[_0x20927d(_0x1fef53._0x33af9d)]?.['participantId'] ?? _0x40941a[_0x20927d(0x15c)]?.['id'] ?? _0x40941a[_0x20927d(_0x1fef53._0x4d52dd)] ?? '';
1064
1042
  }
1065
- function _0x2403d3(_0x43f3fb) {
1066
- const _0x17417a = _0x3e6ba3;
1067
- return _0x43f3fb[_0x17417a(0x2de)]?.[_0x17417a(0x160)] ?? _0x518ee5(_0x43f3fb);
1043
+ function _0x3b4522(_0x368670) {
1044
+ const _0x3974be = _0x51700c;
1045
+ return _0x368670[_0x3974be(0x15c)]?.[_0x3974be(_0x86e614._0x433040)] ?? _0x5bbe81(_0x368670);
1068
1046
  }
1069
- async function _0xb838e2(_0x879481) {
1070
- const _0x4ba6a7 = _0x3e6ba3, _0x28a1ce = Math[_0x4ba6a7(_0x1e2c34._0x219481)](_0x879481[_0x4ba6a7(0x254)] ?? 0x32, 0x64), _0x36f355 = await _0x113e03(), _0x18d16c = new URLSearchParams();
1071
- _0x18d16c[_0x4ba6a7(0x28f)]('limit', String(_0x28a1ce));
1072
- _0x879481[_0x4ba6a7(_0x1e2c34._0x428204)] ? (_0x18d16c['set']('threadId', _0x879481[_0x4ba6a7(0x2a9)]), _0x18d16c[_0x4ba6a7(_0x1e2c34._0x25daad)](_0x4ba6a7(_0x1e2c34._0x2efcba), _0x879481[_0x4ba6a7(_0x1e2c34._0x4caa95)])) : _0x18d16c[_0x4ba6a7(0x28f)](_0x4ba6a7(_0x1e2c34._0x5f4c7f), _0x879481[_0x4ba6a7(0x2ac)]);
1073
- _0x879481[_0x4ba6a7(_0x1e2c34._0xc495ec)] && _0x18d16c[_0x4ba6a7(_0x1e2c34._0x25daad)](_0x4ba6a7(0x1b5), String(_0x879481[_0x4ba6a7(_0x1e2c34._0xc495ec)]));
1074
- _0x879481[_0x4ba6a7(0x2d0)] !== void 0x0 && _0x18d16c['set'](_0x4ba6a7(_0x1e2c34._0x27486e), String(_0x879481[_0x4ba6a7(0x2d0)]));
1075
- const _0x42cb1 = await _0x5425cd('/internal/agent/' + _0x10fadd[_0x4ba6a7(_0x1e2c34._0x1b519c)] + _0x4ba6a7(_0x1e2c34._0x4aee22) + _0x18d16c[_0x4ba6a7(_0x1e2c34._0xf9663e)](), {
1076
- 'headers': _0x54c31e,
1077
- 'method': 'GET'
1078
- }), _0x38f533 = (_0x42cb1[_0x4ba6a7(0x182)] ?? [])[_0x4ba6a7(0x209)](_0x18c2ae => ({
1079
- 'attachments': (_0x18c2ae[_0x4ba6a7(0x1e3)] ?? [])[_0x4ba6a7(0x209)](_0x37ab29 => ({
1080
- 'filename': _0x37ab29[_0x4ba6a7(0x2d2)] ?? _0x37ab29['id'],
1081
- 'id': _0x37ab29['id']
1047
+ async function _0x3af4b2(_0x401cdb) {
1048
+ const _0x322ed3 = _0x51700c, _0x1a5d1f = Math['min'](_0x401cdb[_0x322ed3(_0xbdddf3._0x351cbe)] ?? 0x32, 0x64), _0x474d75 = await _0x3307fb(), _0x5bbea2 = new URLSearchParams();
1049
+ _0x5bbea2[_0x322ed3(0x16f)](_0x322ed3(_0xbdddf3._0x37a14f), String(_0x1a5d1f));
1050
+ _0x401cdb[_0x322ed3(0x229)] ? (_0x5bbea2[_0x322ed3(_0xbdddf3._0x37d0bc)](_0x322ed3(0x229), _0x401cdb[_0x322ed3(0x229)]), _0x5bbea2[_0x322ed3(0x16f)]('channelId', _0x401cdb[_0x322ed3(0x181)])) : _0x5bbea2['set'](_0x322ed3(_0xbdddf3._0xd0ea38), _0x401cdb[_0x322ed3(_0xbdddf3._0xd0ea38)]);
1051
+ _0x401cdb[_0x322ed3(_0xbdddf3._0x5b401e)] && _0x5bbea2[_0x322ed3(_0xbdddf3._0x37d0bc)](_0x322ed3(0x101), String(_0x401cdb['before']));
1052
+ _0x401cdb[_0x322ed3(0x232)] !== void 0x0 && _0x5bbea2['set'](_0x322ed3(_0xbdddf3._0x473ba5), String(_0x401cdb[_0x322ed3(_0xbdddf3._0x473ba5)]));
1053
+ const _0x21c61f = await _0x236761(_0x322ed3(_0xbdddf3._0x3de3db) + _0x17262b[_0x322ed3(0x201)] + _0x322ed3(0x1ad) + _0x5bbea2[_0x322ed3(_0xbdddf3._0x5ec29d)](), {
1054
+ 'headers': _0x597408,
1055
+ 'method': _0x322ed3(_0xbdddf3._0x5f5860)
1056
+ }), _0x4e5cfe = (_0x21c61f[_0x322ed3(0xe5)] ?? [])[_0x322ed3(_0xbdddf3._0x3945d1)](_0x91d02c => ({
1057
+ 'attachments': (_0x91d02c['attachments'] ?? [])[_0x322ed3(0xf7)](_0x360864 => ({
1058
+ 'filename': _0x360864[_0x322ed3(0xc3)] ?? _0x360864['id'],
1059
+ 'id': _0x360864['id']
1082
1060
  })),
1083
- 'content': _0x18c2ae[_0x4ba6a7(0x295)] ?? '',
1084
- 'createdAt': _0x18c2ae[_0x4ba6a7(0x218)],
1085
- ..._0x18c2ae['kind'] && _0x18c2ae[_0x4ba6a7(0x2ba)] !== 'chat' ? { 'kind': _0x18c2ae[_0x4ba6a7(0x2ba)] } : {},
1086
- 'messageId': _0x18c2ae['id'],
1087
- 'senderName': _0x18c2ae[_0x4ba6a7(0x26e)],
1088
- 'senderType': _0x242aec(_0x18c2ae[_0x4ba6a7(0x26e)], _0x36f355),
1089
- 'seq': _0x18c2ae[_0x4ba6a7(0x1cf)] ?? 0x0
1061
+ 'content': _0x91d02c[_0x322ed3(0x11b)] ?? '',
1062
+ 'createdAt': _0x91d02c[_0x322ed3(0x190)],
1063
+ ..._0x91d02c['kind'] && _0x91d02c['kind'] !== _0x322ed3(0x151) ? { 'kind': _0x91d02c[_0x322ed3(0x15f)] } : {},
1064
+ 'messageId': _0x91d02c['id'],
1065
+ 'senderName': _0x91d02c['senderParticipantId'],
1066
+ 'senderType': _0x4c91ee(_0x91d02c[_0x322ed3(0x18e)], _0x474d75),
1067
+ 'seq': _0x91d02c['eventSeq'] ?? 0x0
1090
1068
  }));
1091
1069
  return {
1092
- 'channel': _0x879481[_0x4ba6a7(0x1a9)],
1093
- 'hasMore': _0x42cb1[_0x4ba6a7(_0x1e2c34._0x2376ba)]?.['hasMore'] ?? ![],
1094
- 'messages': _0x38f533,
1095
- 'nextCursor': _0x42cb1['meta']?.['cursor']
1070
+ 'channel': _0x401cdb[_0x322ed3(_0xbdddf3._0x1660e5)],
1071
+ 'hasMore': _0x21c61f[_0x322ed3(0x23e)]?.[_0x322ed3(_0xbdddf3._0x58a87)] ?? ![],
1072
+ 'messages': _0x4e5cfe,
1073
+ 'nextCursor': _0x21c61f[_0x322ed3(0x23e)]?.[_0x322ed3(0x101)]
1096
1074
  };
1097
1075
  }
1098
1076
  return {
1099
- async 'sendMessage'(_0x441845) {
1100
- const _0x3876e7 = _0x3e6ba3, _0x3b068e = await _0x36c1f3(_0x441845[_0x3876e7(_0x3e85fa._0x519dcb)]), _0x46fee9 = _0x441845[_0x3876e7(_0x3e85fa._0x277078)][_0x3876e7(_0x3e85fa._0x3e9f18)]('@') ? extractMentionedParticipantIds(_0x441845[_0x3876e7(_0x3e85fa._0x436a3c)], await _0x113e03()) : [], _0x168de0 = await _0x5425cd('/internal/agent/' + _0x10fadd[_0x3876e7(_0x3e85fa._0x1a3b67)] + _0x3876e7(0x292), {
1101
- 'body': JSON[_0x3876e7(0x2a4)]({
1102
- 'attachment_ids': _0x441845['attachmentIds'],
1103
- 'bodyMarkdown': _0x441845[_0x3876e7(_0x3e85fa._0x28e806)],
1104
- 'channelId': _0x3b068e[_0x3876e7(0x2ac)],
1105
- ..._0x46fee9[_0x3876e7(0x198)] > 0x0 ? { 'mentionedParticipantIds': _0x46fee9 } : {},
1106
- 'threadId': _0x3b068e[_0x3876e7(_0x3e85fa._0x3818ce)],
1107
- ..._0x441845['visibility'] ? { 'visibility': _0x441845[_0x3876e7(0x1dc)] } : {}
1077
+ async 'sendMessage'(_0x50cfb7) {
1078
+ const _0x37a5a9 = _0x51700c, _0x257706 = await _0x5322c7(_0x50cfb7[_0x37a5a9(_0x1a5601._0x96342b)]), _0x5ae3c9 = _0x50cfb7[_0x37a5a9(0x202)][_0x37a5a9(0x1fb)]('@') ? extractMentionedParticipantIds(_0x50cfb7[_0x37a5a9(_0x1a5601._0x20175a)], await _0x3307fb()) : [], _0x3e6d41 = await _0x236761(_0x37a5a9(_0x1a5601._0x4e45ee) + _0x17262b[_0x37a5a9(0x201)] + '/send', {
1079
+ 'body': JSON[_0x37a5a9(_0x1a5601._0x566a05)]({
1080
+ 'attachment_ids': _0x50cfb7['attachmentIds'],
1081
+ 'bodyMarkdown': _0x50cfb7['content'],
1082
+ 'channelId': _0x257706[_0x37a5a9(0x181)],
1083
+ ..._0x5ae3c9[_0x37a5a9(0x146)] > 0x0 ? { 'mentionedParticipantIds': _0x5ae3c9 } : {},
1084
+ 'threadId': _0x257706[_0x37a5a9(_0x1a5601._0x4a85b1)],
1085
+ ..._0x50cfb7['visibility'] ? { 'visibility': _0x50cfb7[_0x37a5a9(_0x1a5601._0x181916)] } : {}
1108
1086
  }),
1109
- 'headers': _0x54c31e,
1110
- 'method': _0x3876e7(_0x3e85fa._0xe06b4)
1087
+ 'headers': _0x597408,
1088
+ 'method': _0x37a5a9(0xf4)
1111
1089
  });
1112
- return { 'messageId': _0x168de0['data']?.['id'] ?? '' };
1090
+ return { 'messageId': _0x3e6d41[_0x37a5a9(_0x1a5601._0x428acc)]?.['id'] ?? '' };
1113
1091
  },
1114
1092
  async 'listSchedules'() {
1115
- const _0x4a0f16 = await _0x5425cd('/api/internal/schedules', {
1116
- 'headers': _0x54c31e,
1117
- 'method': 'GET'
1118
- });
1119
- return _0x4a0f16['data'] ?? [];
1093
+ const _0x168381 = _0x51700c, _0x844dbb = await _0x236761(_0x168381(0x1e0), {
1094
+ 'headers': _0x597408,
1095
+ 'method': _0x168381(_0x1d8d90._0x39cbd8)
1096
+ });
1097
+ return _0x844dbb[_0x168381(0xe5)] ?? [];
1120
1098
  },
1121
- async 'claimScheduleRun'(_0x2b1af4) {
1122
- const _0x4e3317 = _0x3e6ba3, _0xd2b54d = await _0x5425cd(_0x4e3317(0x238), {
1123
- 'body': JSON['stringify'](_0x2b1af4),
1124
- 'headers': _0x54c31e,
1125
- 'method': 'POST'
1099
+ async 'claimScheduleRun'(_0xa17036) {
1100
+ const _0x35ae17 = _0x51700c, _0x3be6b5 = await _0x236761('/api/internal/schedules/claim', {
1101
+ 'body': JSON[_0x35ae17(_0x12f6eb._0x4d193e)](_0xa17036),
1102
+ 'headers': _0x597408,
1103
+ 'method': _0x35ae17(_0x12f6eb._0x5e874b)
1126
1104
  });
1127
- return _0xd2b54d[_0x4e3317(_0x5a1afa._0x3a6b7a)] ?? {
1105
+ return _0x3be6b5['data'] ?? {
1128
1106
  'granted': ![],
1129
1107
  'runId': null,
1130
1108
  'schedule': null,
1131
- 'scheduledFor': _0x2b1af4['scheduledFor']
1109
+ 'scheduledFor': _0xa17036[_0x35ae17(0x19f)]
1132
1110
  };
1133
1111
  },
1134
- async 'startScheduleRun'(_0x563d08) {
1135
- const _0xaaa19b = _0x3e6ba3, _0x134c3b = await _0x5425cd(_0xaaa19b(0x29a) + encodeURIComponent(_0x563d08[_0xaaa19b(_0x19bb39._0x39b809)]) + '/start', {
1136
- 'body': JSON['stringify']({}),
1137
- 'headers': _0x54c31e,
1138
- 'method': _0xaaa19b(_0x19bb39._0x8b3daf)
1112
+ async 'startScheduleRun'(_0x5cb60a) {
1113
+ const _0x5b76db = _0x51700c, _0x38c95d = await _0x236761(_0x5b76db(0x1b0) + encodeURIComponent(_0x5cb60a[_0x5b76db(0x152)]) + _0x5b76db(0x154), {
1114
+ 'body': JSON[_0x5b76db(0x112)]({}),
1115
+ 'headers': _0x597408,
1116
+ 'method': _0x5b76db(0xf4)
1139
1117
  });
1140
- return _0x134c3b['data'] ?? {
1118
+ return _0x38c95d['data'] ?? {
1141
1119
  'claimedByDaemonId': '',
1142
- 'id': _0x563d08[_0xaaa19b(0x185)],
1120
+ 'id': _0x5cb60a['runId'],
1143
1121
  'scheduleId': '',
1144
- 'status': _0xaaa19b(_0x19bb39._0x4acc3f)
1122
+ 'status': _0x5b76db(_0x334940._0x29cba5)
1145
1123
  };
1146
1124
  },
1147
- async 'finishScheduleRun'(_0x5d8de7) {
1148
- const _0xfa0d5f = _0x3e6ba3, _0x41350d = await _0x5425cd('/api/internal/schedules/' + encodeURIComponent(_0x5d8de7[_0xfa0d5f(_0x52418c._0x40db17)]) + '/finish', {
1149
- 'body': JSON[_0xfa0d5f(0x2a4)]({
1150
- 'error': _0x5d8de7[_0xfa0d5f(_0x52418c._0xae9d37)],
1151
- 'resultJson': _0x5d8de7[_0xfa0d5f(_0x52418c._0x29b4c7)],
1152
- 'status': _0x5d8de7[_0xfa0d5f(0x2ad)]
1125
+ async 'finishScheduleRun'(_0x57b832) {
1126
+ const _0x226397 = _0x51700c, _0x43d825 = await _0x236761('/api/internal/schedules/' + encodeURIComponent(_0x57b832[_0x226397(0x152)]) + '/finish', {
1127
+ 'body': JSON['stringify']({
1128
+ 'error': _0x57b832[_0x226397(0x14d)],
1129
+ 'resultJson': _0x57b832['resultJson'],
1130
+ 'status': _0x57b832[_0x226397(_0x4732ae._0x1bcd45)]
1153
1131
  }),
1154
- 'headers': _0x54c31e,
1155
- 'method': _0xfa0d5f(_0x52418c._0x3c2704)
1132
+ 'headers': _0x597408,
1133
+ 'method': _0x226397(_0x4732ae._0x43e7c4)
1156
1134
  });
1157
- return _0x41350d['data'] ?? {
1135
+ return _0x43d825[_0x226397(_0x4732ae._0x5c2126)] ?? {
1158
1136
  'nextRunAt': null,
1159
1137
  'run': {
1160
1138
  'claimedByDaemonId': '',
1161
- 'id': _0x5d8de7['runId'],
1139
+ 'id': _0x57b832[_0x226397(_0x4732ae._0x1ea312)],
1162
1140
  'scheduleId': '',
1163
- 'status': _0x5d8de7[_0xfa0d5f(_0x52418c._0x41ccaa)]
1141
+ 'status': _0x57b832[_0x226397(0x12e)]
1164
1142
  }
1165
1143
  };
1166
1144
  },
1167
- async 'listTasks'(_0x15f436) {
1168
- const _0x2f8d7b = _0x3e6ba3, _0x58c1ae = new URLSearchParams();
1169
- return _0x58c1ae['set']('channel', _0x15f436[_0x2f8d7b(0x21f)]), _0x15f436[_0x2f8d7b(0x2ad)] && _0x58c1ae[_0x2f8d7b(0x28f)](_0x2f8d7b(_0x510621._0x23c458), _0x15f436['status']), _0x1dd566(_0x2f8d7b(_0x510621._0x471b8e) + _0x10fadd['agentId'] + _0x2f8d7b(0x1f1) + _0x58c1ae['toString'](), {
1170
- 'headers': _0x54c31e,
1171
- 'method': _0x2f8d7b(_0x510621._0x1f65e7)
1145
+ async 'listTasks'(_0x1a25c4) {
1146
+ const _0x2e0dd4 = _0x51700c, _0x31f29f = new URLSearchParams();
1147
+ return _0x31f29f['set'](_0x2e0dd4(0xba), _0x1a25c4['channel']), _0x1a25c4[_0x2e0dd4(_0x19ff08._0x50c22c)] && _0x31f29f[_0x2e0dd4(0x16f)](_0x2e0dd4(0x12e), _0x1a25c4[_0x2e0dd4(_0x19ff08._0x50c22c)]), _0x4e5101('/internal/agent/' + _0x17262b['agentId'] + _0x2e0dd4(0x175) + _0x31f29f['toString'](), {
1148
+ 'headers': _0x597408,
1149
+ 'method': _0x2e0dd4(_0x19ff08._0xebf989)
1172
1150
  });
1173
1151
  },
1174
- async 'createTasks'(_0x3e3a8e) {
1175
- const _0x390d61 = _0x3e6ba3;
1176
- return _0x1dd566('/internal/agent/' + _0x10fadd['agentId'] + _0x390d61(0x1d5), {
1177
- 'body': JSON[_0x390d61(_0x8555c6._0x1c03a8)]({
1178
- ..._0x3e3a8e,
1179
- 'idempotency_key': _0x341566(_0x390d61(_0x8555c6._0x56ad98), _0x3e3a8e)
1152
+ async 'createTasks'(_0x36209d) {
1153
+ const _0x61776e = _0x51700c;
1154
+ return _0x4e5101(_0x61776e(_0x1f62fd._0xa88028) + _0x17262b[_0x61776e(0x201)] + '/tasks', {
1155
+ 'body': JSON[_0x61776e(_0x1f62fd._0x4dc32e)]({
1156
+ ..._0x36209d,
1157
+ 'idempotency_key': _0x390ff5(_0x61776e(0x163), _0x36209d)
1180
1158
  }),
1181
- 'headers': _0x54c31e,
1182
- 'method': _0x390d61(0x1d6)
1159
+ 'headers': _0x597408,
1160
+ 'method': 'POST'
1183
1161
  });
1184
1162
  },
1185
- async 'claimTasks'(_0x4cbc21) {
1186
- const _0x506ce6 = _0x3e6ba3;
1187
- return _0x1dd566('/internal/agent/' + _0x10fadd[_0x506ce6(_0x101fee._0x460ddc)] + _0x506ce6(_0x101fee._0x5f0dd6), {
1188
- 'body': JSON[_0x506ce6(0x2a4)]({
1189
- ..._0x4cbc21,
1190
- 'idempotency_key': _0x341566(_0x506ce6(_0x101fee._0x2e5dcc), _0x4cbc21)
1163
+ async 'claimTasks'(_0x4944a5) {
1164
+ const _0x2b59a6 = _0x51700c;
1165
+ return _0x4e5101(_0x2b59a6(_0x1ee795._0x38044b) + _0x17262b[_0x2b59a6(0x201)] + _0x2b59a6(_0x1ee795._0xf9120b), {
1166
+ 'body': JSON['stringify']({
1167
+ ..._0x4944a5,
1168
+ 'idempotency_key': _0x390ff5(_0x2b59a6(0x21c), _0x4944a5)
1191
1169
  }),
1192
- 'headers': _0x54c31e,
1193
- 'method': _0x506ce6(0x1d6)
1170
+ 'headers': _0x597408,
1171
+ 'method': _0x2b59a6(_0x1ee795._0x525d95)
1194
1172
  });
1195
1173
  },
1196
- async 'unclaimTask'(_0x2f39cf) {
1197
- const _0xc3b000 = _0x3e6ba3;
1198
- return _0x1dd566('/internal/agent/' + _0x10fadd[_0xc3b000(0x264)] + _0xc3b000(0x221), {
1199
- 'body': JSON[_0xc3b000(_0x3fee09._0x2495e2)]({
1200
- ..._0x2f39cf,
1201
- 'idempotency_key': _0x341566(_0xc3b000(_0x3fee09._0xc29ee1), _0x2f39cf)
1174
+ async 'unclaimTask'(_0x40fe53) {
1175
+ const _0x3b9459 = _0x51700c;
1176
+ return _0x4e5101(_0x3b9459(0xcf) + _0x17262b[_0x3b9459(_0x1c41eb._0x98c01e)] + _0x3b9459(0x10b), {
1177
+ 'body': JSON[_0x3b9459(_0x1c41eb._0x1b0c3e)]({
1178
+ ..._0x40fe53,
1179
+ 'idempotency_key': _0x390ff5(_0x3b9459(0x148), _0x40fe53)
1202
1180
  }),
1203
- 'headers': _0x54c31e,
1204
- 'method': _0xc3b000(0x1d6)
1181
+ 'headers': _0x597408,
1182
+ 'method': _0x3b9459(_0x1c41eb._0x4636e4)
1205
1183
  });
1206
1184
  },
1207
- async 'updateTaskStatus'(_0x3c51ee) {
1208
- const _0x363a12 = _0x3e6ba3;
1209
- return _0x1dd566(_0x363a12(0x2a7) + _0x10fadd['agentId'] + _0x363a12(_0x1d4482._0x330e9d), {
1210
- 'body': JSON[_0x363a12(_0x1d4482._0x3e156d)]({
1211
- ..._0x3c51ee,
1212
- 'idempotency_key': _0x341566(_0x363a12(0x246), _0x3c51ee)
1185
+ async 'updateTaskStatus'(_0x133ef4) {
1186
+ const _0x25b0e3 = _0x51700c;
1187
+ return _0x4e5101(_0x25b0e3(0xcf) + _0x17262b[_0x25b0e3(_0x1e3217._0x2b975f)] + _0x25b0e3(0x132), {
1188
+ 'body': JSON[_0x25b0e3(0x112)]({
1189
+ ..._0x133ef4,
1190
+ 'idempotency_key': _0x390ff5(_0x25b0e3(0x1d4), _0x133ef4)
1213
1191
  }),
1214
- 'headers': _0x54c31e,
1215
- 'method': _0x363a12(0x1d6)
1192
+ 'headers': _0x597408,
1193
+ 'method': _0x25b0e3(0xf4)
1216
1194
  });
1217
1195
  },
1218
- async 'uploadFile'(_0x49ec67) {
1219
- const _0x234802 = _0x3e6ba3, _0x562556 = await _0x36c1f3(_0x49ec67[_0x234802(0x21f)]);
1220
- if (_0x562556[_0x234802(_0x308e17._0x241b37)])
1221
- throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
1222
- const _0x5c8993 = await _0x5425cd(_0x234802(_0x308e17._0x34fdf) + _0x10fadd[_0x234802(_0x308e17._0x58ed62)] + _0x234802(_0x308e17._0x19a9e7), {
1223
- 'body': JSON[_0x234802(0x2a4)]({
1224
- 'channel': _0x562556[_0x234802(_0x308e17._0xb1ed11)],
1225
- 'contentBase64': _0x49ec67[_0x234802(0x25a)],
1226
- 'contentType': _0x49ec67['contentType'],
1227
- 'originalFilename': _0x49ec67[_0x234802(_0x308e17._0x4faf0d)]
1196
+ async 'uploadFile'(_0x52122c) {
1197
+ const _0x5bede0 = _0x51700c, _0x3c4059 = await _0x5322c7(_0x52122c[_0x5bede0(_0x59c219._0x2ef705)]);
1198
+ if (_0x3c4059[_0x5bede0(_0x59c219._0xeb7af1)])
1199
+ throw new Error(_0x5bede0(_0x59c219._0x10894e));
1200
+ const _0x410a4f = await _0x236761(_0x5bede0(0xcf) + _0x17262b[_0x5bede0(_0x59c219._0x3b43f8)] + _0x5bede0(0x1b7), {
1201
+ 'body': JSON[_0x5bede0(_0x59c219._0x4b9117)]({
1202
+ 'channel': _0x3c4059['target'],
1203
+ 'contentBase64': _0x52122c[_0x5bede0(_0x59c219._0x5cbe6e)],
1204
+ 'contentType': _0x52122c[_0x5bede0(_0x59c219._0xb8ff69)],
1205
+ 'originalFilename': _0x52122c['filename']
1228
1206
  }),
1229
- 'headers': _0x54c31e,
1230
- 'method': 'POST'
1207
+ 'headers': _0x597408,
1208
+ 'method': _0x5bede0(_0x59c219._0xe8cb0b)
1231
1209
  });
1232
1210
  return {
1233
- 'attachmentId': _0x5c8993[_0x234802(0x182)]?.['id'] ?? '',
1234
- 'filename': _0x5c8993[_0x234802(_0x308e17._0xed121f)]?.['originalFilename'] ?? _0x49ec67['filename'],
1235
- 'sizeBytes': _0x5c8993[_0x234802(_0x308e17._0xed121f)]?.[_0x234802(_0x308e17._0x4b0d6d)] ?? 0x0
1211
+ 'attachmentId': _0x410a4f[_0x5bede0(_0x59c219._0x5d2ddd)]?.['id'] ?? '',
1212
+ 'filename': _0x410a4f['data']?.[_0x5bede0(0x18c)] ?? _0x52122c[_0x5bede0(0xc3)],
1213
+ 'sizeBytes': _0x410a4f[_0x5bede0(_0x59c219._0x5d2ddd)]?.[_0x5bede0(0x125)] ?? 0x0
1236
1214
  };
1237
1215
  },
1238
- async 'downloadAttachment'(_0x5ded88) {
1239
- const _0x10cedf = _0x3e6ba3, _0x1ac58c = await _0x5425cd(_0x10cedf(_0x65940a._0x374431) + _0x5ded88, {
1240
- 'headers': _0x54c31e,
1241
- 'method': _0x10cedf(_0x65940a._0x494a86)
1242
- }), _0x2b3269 = new AbortController(), _0x4d27fb = setTimeout(() => _0x2b3269['abort'](), _0x55cb1f);
1216
+ async 'downloadAttachment'(_0x15e0f4) {
1217
+ const _0xa82a43 = _0x51700c, _0x4a9e80 = await _0x236761(_0xa82a43(_0x79709b._0xec87a1) + _0x15e0f4, {
1218
+ 'headers': _0x597408,
1219
+ 'method': _0xa82a43(0x186)
1220
+ }), _0x18636f = new AbortController(), _0x48e02e = setTimeout(() => _0x18636f[_0xa82a43(0x1be)](), _0x44146a);
1243
1221
  try {
1244
- const _0x5b81f6 = await _0x3ede2d(_0x556da7 + _0x10cedf(0x1ac) + _0x5ded88 + _0x10cedf(_0x65940a._0x2a7989), {
1245
- 'headers': _0x54c31e,
1246
- 'method': 'GET',
1247
- 'signal': _0x2b3269[_0x10cedf(_0x65940a._0x305887)]
1222
+ const _0x59421a = await _0x56c41b(_0x558388 + _0xa82a43(0x179) + _0x15e0f4 + _0xa82a43(_0x79709b._0x47cd7a), {
1223
+ 'headers': _0x597408,
1224
+ 'method': _0xa82a43(_0x79709b._0x264bcd),
1225
+ 'signal': _0x18636f['signal']
1248
1226
  });
1249
- if (!_0x5b81f6['ok'])
1250
- throw new Error('HTTP\x20' + _0x5b81f6[_0x10cedf(0x2ad)]);
1227
+ if (!_0x59421a['ok'])
1228
+ throw new Error(_0xa82a43(0xbb) + _0x59421a['status']);
1251
1229
  return {
1252
- 'contentType': _0x1ac58c['data']?.[_0x10cedf(0x25f)] ?? _0x5b81f6[_0x10cedf(0x1e1)][_0x10cedf(0x2dc)](_0x10cedf(0x27b)) ?? 'application/octet-stream',
1253
- 'data': Buffer[_0x10cedf(_0x65940a._0x3252a4)](await _0x5b81f6[_0x10cedf(0x1bb)]()),
1254
- 'originalFilename': _0x1ac58c[_0x10cedf(_0x65940a._0x42ef8d)]?.[_0x10cedf(_0x65940a._0x27d5bd)]
1230
+ 'contentType': _0x4a9e80['data']?.['contentType'] ?? _0x59421a[_0xa82a43(_0x79709b._0x5ad6ca)][_0xa82a43(_0x79709b._0x592170)]('content-type') ?? _0xa82a43(_0x79709b._0x48f7d5),
1231
+ 'data': Buffer[_0xa82a43(_0x79709b._0x42a5f7)](await _0x59421a['arrayBuffer']()),
1232
+ 'originalFilename': _0x4a9e80[_0xa82a43(_0x79709b._0x3330)]?.[_0xa82a43(0x18c)]
1255
1233
  };
1256
1234
  } finally {
1257
- clearTimeout(_0x4d27fb);
1235
+ clearTimeout(_0x48e02e);
1258
1236
  }
1259
1237
  },
1260
1238
  async 'listServer'() {
1261
- return _0x113e03({ 'forceRefresh': !![] });
1239
+ return _0x3307fb({ 'forceRefresh': !![] });
1262
1240
  },
1263
- async 'readHistory'(_0x4268e8) {
1264
- const _0x30913e = _0x3e6ba3, _0x37c001 = await _0x36c1f3(_0x4268e8[_0x30913e(0x21f)]);
1265
- return _0xb838e2({
1266
- 'after': _0x4268e8[_0x30913e(0x2d0)],
1267
- 'before': _0x4268e8[_0x30913e(_0x2d4a03._0x424d4e)],
1268
- 'channelId': _0x37c001[_0x30913e(_0x2d4a03._0x123ff5)],
1269
- 'channelTarget': _0x37c001['target'],
1270
- 'limit': _0x4268e8['limit'],
1271
- 'threadId': _0x37c001[_0x30913e(_0x2d4a03._0x3d3eff)]
1241
+ async 'readHistory'(_0x287452) {
1242
+ const _0x24141b = _0x51700c, _0x25e009 = await _0x5322c7(_0x287452[_0x24141b(0xba)]);
1243
+ return _0x3af4b2({
1244
+ 'after': _0x287452[_0x24141b(_0x37d62d._0x31e0ff)],
1245
+ 'before': _0x287452[_0x24141b(0x17a)],
1246
+ 'channelId': _0x25e009[_0x24141b(0x181)],
1247
+ 'channelTarget': _0x25e009['target'],
1248
+ 'limit': _0x287452[_0x24141b(0x1e1)],
1249
+ 'threadId': _0x25e009[_0x24141b(_0x37d62d._0x421439)]
1272
1250
  });
1273
1251
  },
1274
- 'resolveTarget': _0x36c1f3,
1252
+ 'resolveTarget': _0x5322c7,
1275
1253
  async 'checkMessages'() {
1276
- const _0xce475a = _0x3e6ba3, _0x28dd70 = new URLSearchParams();
1277
- _0x28dd70[_0xce475a(_0xef03fa._0x44e2ee)](_0xce475a(0x22e), String(_0x491264));
1278
- const _0x13e48b = _0x28dd70[_0xce475a(0x1a0)](), _0x2dc4ae = await _0x5425cd(_0xce475a(_0xef03fa._0x3afb94) + _0x10fadd['agentId'] + _0xce475a(0x2bd) + (_0x13e48b ? '?' + _0x13e48b : ''), {
1279
- 'headers': _0x54c31e,
1280
- 'method': _0xce475a(0x1b9)
1281
- }), _0x3ba2a3 = _0x2dc4ae[_0xce475a(0x182)] ?? [], _0x9ef1de = _0x2dc4ae[_0xce475a(_0xef03fa._0x1b610d)]?.[_0xce475a(_0xef03fa._0xddc3fc)], _0x2d708c = _0x9ef1de !== void 0x0 ? Math['max'](_0x491264, _0x9ef1de) : _0x3ba2a3[_0xce475a(_0xef03fa._0x3faa9e)] > 0x0 ? Math[_0xce475a(0x168)](_0x491264, _0x3ba2a3[_0x3ba2a3[_0xce475a(0x198)] - 0x1][_0xce475a(_0xef03fa._0x532893)]) : _0x491264, _0x206c3b = _0x3ba2a3['filter'](_0x4bc613 => _0x4bc613[_0xce475a(0x178)] === _0xce475a(0x24e)), _0x71089c = _0x40bb70 === void 0x0 && _0x3c15f9;
1282
- let _0x4c7019 = await _0x113e03(), _0x57c715 = new Map(_0x4c7019['channels'][_0xce475a(_0xef03fa._0x5e65f3)](_0x49ccaf => [
1283
- _0x49ccaf['id'],
1284
- _0x49ccaf
1254
+ const _0x4291d9 = { _0x2ae815: 0x1e8 }, _0x3cda68 = _0x51700c, _0x4082eb = new URLSearchParams();
1255
+ _0x4082eb['set'](_0x3cda68(_0x5eb86d._0x5211aa), String(_0xdfb599));
1256
+ const _0x516920 = _0x4082eb[_0x3cda68(_0x5eb86d._0x5c99df)](), _0x555e65 = await _0x236761(_0x3cda68(0xcf) + _0x17262b[_0x3cda68(_0x5eb86d._0x10cbf9)] + '/receive' + (_0x516920 ? '?' + _0x516920 : ''), {
1257
+ 'headers': _0x597408,
1258
+ 'method': _0x3cda68(0x186)
1259
+ }), _0xd77f2d = _0x555e65[_0x3cda68(_0x5eb86d._0x5036b3)] ?? [], _0x1a7890 = _0x555e65[_0x3cda68(_0x5eb86d._0x9c83a5)]?.[_0x3cda68(0x101)], _0x922da4 = _0x1a7890 !== void 0x0 ? Math['max'](_0xdfb599, _0x1a7890) : _0xd77f2d[_0x3cda68(_0x5eb86d._0x2dcf9d)] > 0x0 ? Math[_0x3cda68(0xd2)](_0xdfb599, _0xd77f2d[_0xd77f2d[_0x3cda68(_0x5eb86d._0x2dcf9d)] - 0x1]['seq']) : _0xdfb599, _0x593e45 = _0xd77f2d[_0x3cda68(0x1bd)](_0x5e006b => _0x5e006b[_0x3cda68(0x14b)] === 'message'), _0xe69790 = _0x1f9804 === void 0x0 && _0x5a3c40;
1260
+ let _0x128078 = await _0x3307fb(), _0x4434a9 = new Map(_0x128078[_0x3cda68(_0x5eb86d._0x1b2e6f)][_0x3cda68(_0x5eb86d._0x1ab9ee)](_0x5c066e => [
1261
+ _0x5c066e['id'],
1262
+ _0x5c066e
1285
1263
  ]));
1286
- const _0x5ae216 = _0x206c3b[_0xce475a(_0xef03fa._0x34ca7e)](_0x1d55a9 => {
1287
- const _0x5273b2 = _0xce475a, _0x343cb2 = asRecord(_0x1d55a9[_0x5273b2(0x1fc)]), _0x17fc78 = typeof _0x343cb2?.[_0x5273b2(_0x50c598._0x461a8e)] === _0x5273b2(_0x50c598._0x25ffe2) ? _0x343cb2[_0x5273b2(0x2ac)] : '';
1288
- return Boolean(_0x17fc78) && !_0x57c715[_0x5273b2(_0x50c598._0x2e5d05)](_0x17fc78);
1264
+ const _0x312f0b = _0x593e45['some'](_0x1fe5f4 => {
1265
+ const _0x2d3711 = _0x3cda68, _0x20b60c = asRecord(_0x1fe5f4[_0x2d3711(_0x4291d9._0x2ae815)]), _0x52c678 = typeof _0x20b60c?.['channelId'] === _0x2d3711(0x1cb) ? _0x20b60c[_0x2d3711(0x181)] : '';
1266
+ return Boolean(_0x52c678) && !_0x4434a9['has'](_0x52c678);
1289
1267
  });
1290
- _0x5ae216 && (_0x4c7019 = await _0x113e03({ 'forceRefresh': !![] }), _0x57c715 = new Map(_0x4c7019[_0xce475a(0x25b)][_0xce475a(_0xef03fa._0x30662c)](_0x3a3f7e => [
1291
- _0x3a3f7e['id'],
1292
- _0x3a3f7e
1268
+ _0x312f0b && (_0x128078 = await _0x3307fb({ 'forceRefresh': !![] }), _0x4434a9 = new Map(_0x128078[_0x3cda68(0xbc)][_0x3cda68(0xf7)](_0x595838 => [
1269
+ _0x595838['id'],
1270
+ _0x595838
1293
1271
  ])));
1294
- const _0x4c99e7 = new Map();
1295
- for (const _0x41de28 of _0x206c3b) {
1296
- const _0x39d622 = asRecord(_0x41de28[_0xce475a(_0xef03fa._0x2361b8)]), _0x43c910 = typeof _0x39d622['channelId'] === _0xce475a(0x1bc) ? _0x39d622[_0xce475a(_0xef03fa._0x27f307)] : '';
1297
- if (!_0x43c910)
1272
+ const _0x882ad9 = new Map();
1273
+ for (const _0x327196 of _0x593e45) {
1274
+ const _0x1c2c93 = asRecord(_0x327196[_0x3cda68(_0x5eb86d._0xba0cf2)]), _0x3b1401 = typeof _0x1c2c93[_0x3cda68(0x181)] === _0x3cda68(_0x5eb86d._0x1fc159) ? _0x1c2c93['channelId'] : '';
1275
+ if (!_0x3b1401)
1298
1276
  continue;
1299
- const _0x15c59f = typeof _0x39d622[_0xce475a(_0xef03fa._0x5b6eae)] === _0xce475a(_0xef03fa._0x2b4399) ? _0x39d622[_0xce475a(_0xef03fa._0x5b6eae)] : void 0x0, _0x473e62 = typeof _0x39d622[_0xce475a(0x2d1)] === _0xce475a(_0xef03fa._0x2b4399) ? _0x39d622['rootMessageId'] : void 0x0, _0x48662e = typeof _0x39d622[_0xce475a(_0xef03fa._0x1e25bd)] === _0xce475a(_0xef03fa._0x39fe24) && Number['isInteger'](_0x39d622[_0xce475a(_0xef03fa._0x1e25bd)]) ? _0x39d622[_0xce475a(_0xef03fa._0x18561a)] : void 0x0, _0x48e9e8 = Boolean(_0x15c59f && (!_0x473e62 || _0x41de28[_0xce475a(_0xef03fa._0x4a0a1c)] !== _0x473e62)), _0x9d24d9 = _0x48e9e8 ? _0x43c910 + ':' + _0x15c59f : _0x43c910, _0x128305 = _0x4c99e7[_0xce475a(0x2dc)](_0x9d24d9) ?? {
1277
+ const _0x89d110 = typeof _0x1c2c93[_0x3cda68(0x229)] === 'string' ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x4dc78b)] : void 0x0, _0x482c55 = typeof _0x1c2c93['rootMessageId'] === _0x3cda68(0x1cb) ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x5c65d1)] : void 0x0, _0x6e5080 = typeof _0x1c2c93[_0x3cda68(0x1ac)] === _0x3cda68(0xbe) && Number[_0x3cda68(0xca)](_0x1c2c93[_0x3cda68(0x1ac)]) ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x6b6ebb)] : void 0x0, _0x576c36 = Boolean(_0x89d110 && (!_0x482c55 || _0x327196[_0x3cda68(_0x5eb86d._0x2616dd)] !== _0x482c55)), _0x35bfe3 = _0x576c36 ? _0x3b1401 + ':' + _0x89d110 : _0x3b1401, _0x1b8cb0 = _0x882ad9[_0x3cda68(0x161)](_0x35bfe3) ?? {
1300
1278
  'aggregateIds': [],
1301
- 'channelId': _0x43c910,
1279
+ 'channelId': _0x3b1401,
1302
1280
  'entries': new Map(),
1303
- 'isThreadReply': _0x48e9e8,
1304
- 'rootMessageId': _0x473e62,
1305
- 'threadNumber': _0x48662e,
1306
- 'threadId': _0x48e9e8 ? _0x15c59f : void 0x0
1281
+ 'isThreadReply': _0x576c36,
1282
+ 'rootMessageId': _0x482c55,
1283
+ 'threadNumber': _0x6e5080,
1284
+ 'threadId': _0x576c36 ? _0x89d110 : void 0x0
1307
1285
  };
1308
- _0x128305[_0xce475a(_0xef03fa._0x13f11a)] == null && _0x48662e != null && (_0x128305[_0xce475a(0x1a2)] = _0x48662e), !_0x128305['rootMessageId'] && _0x473e62 && (_0x128305[_0xce475a(_0xef03fa._0x3d9895)] = _0x473e62), _0x128305[_0xce475a(_0xef03fa._0x1a7e42)][_0xce475a(0x1f4)](_0x41de28[_0xce475a(0x2a8)]), _0x128305[_0xce475a(0x16f)][_0xce475a(0x28f)](_0x41de28[_0xce475a(_0xef03fa._0x13db3f)], {
1309
- 'payloadJson': _0x41de28['payloadJson'],
1310
- 'seq': _0x41de28['seq']
1311
- }), _0x4c99e7[_0xce475a(0x28f)](_0x9d24d9, _0x128305);
1286
+ _0x1b8cb0[_0x3cda68(_0x5eb86d._0x195701)] == null && _0x6e5080 != null && (_0x1b8cb0['threadNumber'] = _0x6e5080), !_0x1b8cb0[_0x3cda68(0x128)] && _0x482c55 && (_0x1b8cb0['rootMessageId'] = _0x482c55), _0x1b8cb0[_0x3cda68(_0x5eb86d._0x5ca5a2)][_0x3cda68(0x1cd)](_0x327196[_0x3cda68(_0x5eb86d._0x1c8f2d)]), _0x1b8cb0[_0x3cda68(0xec)]['set'](_0x327196[_0x3cda68(_0x5eb86d._0x1c8f2d)], {
1287
+ 'payloadJson': _0x327196[_0x3cda68(0x1e8)],
1288
+ 'seq': _0x327196[_0x3cda68(_0x5eb86d._0x35a1ee)]
1289
+ }), _0x882ad9[_0x3cda68(_0x5eb86d._0x405f28)](_0x35bfe3, _0x1b8cb0);
1312
1290
  }
1313
- const _0x559fc5 = [];
1314
- for (const _0x1c8ec of _0x4c99e7[_0xce475a(0x1c6)]()) {
1291
+ const _0x1deb9b = [];
1292
+ for (const _0x4c7636 of _0x882ad9[_0x3cda68(_0x5eb86d._0x64deb5)]()) {
1315
1293
  const {
1316
- channelId: _0x2f8a59,
1317
- threadId: _0x4489b1,
1318
- rootMessageId: _0x3e94fa,
1319
- threadNumber: _0x3aa8c4,
1320
- aggregateIds: _0x3ee396,
1321
- isThreadReply: _0x3a7676,
1322
- entries: _0x2b83ab
1323
- } = _0x1c8ec, _0x2c5f03 = _0x57c715[_0xce475a(_0xef03fa._0x8b63db)](_0x2f8a59), _0x3143bd = _0x2c5f03?.[_0xce475a(_0xef03fa._0x2469d8)] ?? _0x2f8a59, _0x1a7543 = _0x2c5f03?.['kind'] === 'dm' ? 'dm:' + _0x3143bd : '#' + _0x3143bd, _0x502950 = {
1324
- 'channelTarget': _0x1a7543,
1325
- 'rootMessageId': _0x3e94fa,
1326
- 'threadId': _0x4489b1,
1327
- 'threadNumber': _0x3aa8c4
1328
- }, _0x1170a2 = await _0xb838e2({
1329
- 'channelId': _0x2f8a59,
1330
- 'channelTarget': _0x1a7543,
1331
- 'limit': Math['max'](_0x3ee396[_0xce475a(0x198)], 0x32),
1332
- 'threadId': _0x4489b1
1333
- }), _0xb1c74e = new Map(_0x1170a2[_0xce475a(0x2b7)]['map'](_0x3077f9 => [
1334
- _0x3077f9['messageId'],
1335
- _0x3077f9
1336
- ])), _0x2de97f = _0x4489b1 ? _0x1b2d20(_0x502950) : _0x1a7543, _0x50720f = _0x40bb70 ? _0x3a7676 && _0x43744f(_0x40bb70, _0x502950) : !![], _0x897b9c = _0x3a7676 ? _0x50720f && _0x40bb70 ? _0x40bb70 : _0x2de97f : _0x1a7543;
1337
- for (const _0x4c82d2 of _0x3ee396) {
1338
- if (!_0x50720f)
1294
+ channelId: _0x4f9650,
1295
+ threadId: _0x19cc33,
1296
+ rootMessageId: _0x485965,
1297
+ threadNumber: _0x3bc4ab,
1298
+ aggregateIds: _0x37bb6c,
1299
+ isThreadReply: _0x56ab18,
1300
+ entries: _0x453026
1301
+ } = _0x4c7636, _0x43ccc7 = _0x4434a9[_0x3cda68(0x161)](_0x4f9650), _0x428f4c = _0x43ccc7?.[_0x3cda68(_0x5eb86d._0x248a3f)] ?? _0x4f9650, _0x3aaaf1 = _0x43ccc7?.[_0x3cda68(_0x5eb86d._0x331458)] === 'dm' ? _0x3cda68(0x100) + _0x428f4c : '#' + _0x428f4c, _0x52cefd = {
1302
+ 'channelTarget': _0x3aaaf1,
1303
+ 'rootMessageId': _0x485965,
1304
+ 'threadId': _0x19cc33,
1305
+ 'threadNumber': _0x3bc4ab
1306
+ }, _0x5a163d = await _0x3af4b2({
1307
+ 'channelId': _0x4f9650,
1308
+ 'channelTarget': _0x3aaaf1,
1309
+ 'limit': Math[_0x3cda68(0xd2)](_0x37bb6c[_0x3cda68(0x146)], 0x32),
1310
+ 'threadId': _0x19cc33
1311
+ }), _0x28ec32 = new Map(_0x5a163d['messages'][_0x3cda68(_0x5eb86d._0x1ab9ee)](_0x464a56 => [
1312
+ _0x464a56[_0x3cda68(0x15e)],
1313
+ _0x464a56
1314
+ ])), _0x339d9e = _0x19cc33 ? _0x2e978f(_0x52cefd) : _0x3aaaf1, _0x2f7408 = _0x1f9804 ? _0x56ab18 && _0x4d7892(_0x1f9804, _0x52cefd) : !![], _0xd80891 = _0x56ab18 ? _0x2f7408 && _0x1f9804 ? _0x1f9804 : _0x339d9e : _0x3aaaf1;
1315
+ for (const _0x2811fa of _0x37bb6c) {
1316
+ if (!_0x2f7408)
1339
1317
  continue;
1340
- const _0x11a9ce = _0x2b83ab[_0xce475a(_0xef03fa._0x4675db)](_0x4c82d2), _0xf1e767 = _0x11a9ce ? asRecord(_0x11a9ce[_0xce475a(0x1fc)]) : void 0x0, _0x6a8b27 = _0xf1e767?.['taskDeliveryMode'] === 'targeted';
1341
- if (_0x71089c && _0x6a8b27)
1318
+ const _0x37bc26 = _0x453026[_0x3cda68(0x161)](_0x2811fa), _0x4643b6 = _0x37bc26 ? asRecord(_0x37bc26[_0x3cda68(_0x5eb86d._0x50df31)]) : void 0x0, _0x1ed7d9 = _0x4643b6?.[_0x3cda68(0x126)] === 'targeted';
1319
+ if (_0xe69790 && _0x1ed7d9)
1342
1320
  continue;
1343
- const _0x44971e = _0xb1c74e['get'](_0x4c82d2);
1344
- if (_0x44971e) {
1345
- _0x559fc5[_0xce475a(_0xef03fa._0xc61f40)]({
1346
- 'attachments': _0x44971e[_0xce475a(0x1e3)],
1347
- 'content': _0x44971e['content'],
1348
- 'createdAt': _0x44971e[_0xce475a(0x218)],
1349
- ..._0x44971e[_0xce475a(_0xef03fa._0x17ce51)] ? { 'kind': _0x44971e['kind'] } : {},
1350
- 'messageId': _0x44971e[_0xce475a(0x276)],
1351
- 'senderName': _0x44971e[_0xce475a(0x176)],
1352
- 'senderType': _0x44971e[_0xce475a(0x184)],
1353
- 'target': _0x897b9c,
1354
- ..._0x6a8b27 ? { 'targetedTask': !![] } : {}
1321
+ const _0x49b982 = _0x28ec32[_0x3cda68(0x161)](_0x2811fa);
1322
+ if (_0x49b982) {
1323
+ _0x1deb9b['push']({
1324
+ 'attachments': _0x49b982[_0x3cda68(_0x5eb86d._0x3e7ad3)],
1325
+ 'content': _0x49b982['content'],
1326
+ 'createdAt': _0x49b982[_0x3cda68(0x190)],
1327
+ ..._0x49b982[_0x3cda68(0x15f)] ? { 'kind': _0x49b982[_0x3cda68(_0x5eb86d._0x331458)] } : {},
1328
+ 'messageId': _0x49b982['messageId'],
1329
+ 'senderName': _0x49b982['senderName'],
1330
+ 'senderType': _0x49b982[_0x3cda68(0x18d)],
1331
+ 'target': _0xd80891,
1332
+ ..._0x1ed7d9 ? { 'targetedTask': !![] } : {}
1355
1333
  });
1356
1334
  continue;
1357
1335
  }
1358
- if (_0x11a9ce) {
1359
- const _0x29c2f3 = typeof _0xf1e767?.[_0xce475a(0x26e)] === _0xce475a(_0xef03fa._0x1f781c) ? _0xf1e767['senderParticipantId'] : '', _0x3e7ef8 = typeof _0xf1e767?.['bodyMarkdown'] === _0xce475a(0x1bc) ? _0xf1e767['bodyMarkdown'] : '', _0x5df33a = typeof _0xf1e767?.[_0xce475a(_0xef03fa._0x16f248)] === 'string' && _0xf1e767[_0xce475a(_0xef03fa._0x373434)] !== _0xce475a(0x25d) ? _0xf1e767[_0xce475a(0x2ba)] : void 0x0;
1360
- _0x29c2f3 && _0x3e7ef8 && _0x559fc5[_0xce475a(_0xef03fa._0xc61f40)]({
1336
+ if (_0x37bc26) {
1337
+ const _0x3d9f05 = typeof _0x4643b6?.[_0x3cda68(_0x5eb86d._0x4a4596)] === _0x3cda68(0x1cb) ? _0x4643b6[_0x3cda68(_0x5eb86d._0x39d06a)] : '', _0x5f1f28 = typeof _0x4643b6?.[_0x3cda68(_0x5eb86d._0x5469f2)] === _0x3cda68(_0x5eb86d._0x1fc159) ? _0x4643b6[_0x3cda68(_0x5eb86d._0x8d02ed)] : '', _0x2b442e = typeof _0x4643b6?.[_0x3cda68(0x15f)] === 'string' && _0x4643b6[_0x3cda68(0x15f)] !== 'chat' ? _0x4643b6[_0x3cda68(_0x5eb86d._0x331458)] : void 0x0;
1338
+ _0x3d9f05 && _0x5f1f28 && _0x1deb9b['push']({
1361
1339
  'attachments': [],
1362
- 'content': _0x3e7ef8,
1363
- 'createdAt': new Date()[_0xce475a(0x1fd)](),
1364
- ..._0x5df33a ? { 'kind': _0x5df33a } : {},
1365
- 'messageId': _0x4c82d2,
1366
- 'senderName': _0x29c2f3,
1367
- 'senderType': _0x242aec(_0x29c2f3, _0x4c7019),
1368
- 'target': _0x897b9c,
1369
- ..._0x6a8b27 ? { 'targetedTask': !![] } : {}
1340
+ 'content': _0x5f1f28,
1341
+ 'createdAt': new Date()['toISOString'](),
1342
+ ..._0x2b442e ? { 'kind': _0x2b442e } : {},
1343
+ 'messageId': _0x2811fa,
1344
+ 'senderName': _0x3d9f05,
1345
+ 'senderType': _0x4c91ee(_0x3d9f05, _0x128078),
1346
+ 'target': _0xd80891,
1347
+ ..._0x1ed7d9 ? { 'targetedTask': !![] } : {}
1370
1348
  });
1371
1349
  }
1372
1350
  }
1373
1351
  }
1374
- if (_0x2d708c > 0x0) {
1375
- if (_0x18f930)
1376
- await _0x30e23a(_0x2d708c);
1352
+ if (_0x922da4 > 0x0) {
1353
+ if (_0x2dd09a)
1354
+ await _0x455686(_0x922da4);
1377
1355
  else
1378
- _0x17dd87 && await _0xe5de36(_0x2d708c);
1356
+ _0x4d1720 && await _0x61fc0e(_0x922da4);
1379
1357
  }
1380
- return _0x2d708c > _0x491264 && (_0x491264 = _0x2d708c), { 'messages': _0x40bb70 ? _0x559fc5 : _0x71089c ? _0x559fc5[_0xce475a(0x271)](_0x4e8a2e => _0x4e8a2e['targetedTask'] !== !![]) : _0x559fc5 };
1358
+ return _0x922da4 > _0xdfb599 && (_0xdfb599 = _0x922da4), { 'messages': _0x1f9804 ? _0x1deb9b : _0xe69790 ? _0x1deb9b[_0x3cda68(0x1bd)](_0x306cbe => _0x306cbe['targetedTask'] !== !![]) : _0x1deb9b };
1381
1359
  }
1382
1360
  };
1383
1361
  }
1384
- function toLocalTime(_0x518bbf) {
1385
- const _0x515872 = {
1386
- _0x1d3ad5: 0x2c9,
1387
- _0x4d1abc: 0x2b2
1388
- }, _0x2cfed5 = _0x1e865e, _0xff5aa5 = new Date(_0x518bbf);
1389
- if (Number['isNaN'](_0xff5aa5[_0x2cfed5(0x248)]()))
1390
- return _0x518bbf;
1391
- const _0x554771 = _0x2cadec => String(_0x2cadec)[_0x2cfed5(0x1f9)](0x2, '0');
1392
- return _0xff5aa5[_0x2cfed5(0x26f)]() + '-' + _0x554771(_0xff5aa5['getMonth']() + 0x1) + '-' + _0x554771(_0xff5aa5[_0x2cfed5(_0x515872._0x1d3ad5)]()) + '\x20' + _0x554771(_0xff5aa5[_0x2cfed5(_0x515872._0x4d1abc)]()) + ':' + _0x554771(_0xff5aa5['getMinutes']()) + ':' + _0x554771(_0xff5aa5[_0x2cfed5(0x2d7)]());
1362
+ function toLocalTime(_0x18c512) {
1363
+ const _0x688624 = {
1364
+ _0x11b363: 0x21e,
1365
+ _0x371214: 0x103,
1366
+ _0xa14129: 0x12a,
1367
+ _0x178524: 0x1c2,
1368
+ _0x4291cf: 0x1c3
1369
+ }, _0xa58538 = _0x77ce4b, _0x9c3873 = new Date(_0x18c512);
1370
+ if (Number[_0xa58538(_0x688624._0x11b363)](_0x9c3873[_0xa58538(_0x688624._0x371214)]()))
1371
+ return _0x18c512;
1372
+ const _0x42da82 = _0x463b9e => String(_0x463b9e)[_0xa58538(0x226)](0x2, '0');
1373
+ return _0x9c3873['getFullYear']() + '-' + _0x42da82(_0x9c3873[_0xa58538(0x218)]() + 0x1) + '-' + _0x42da82(_0x9c3873['getDate']()) + '\x20' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0xa14129)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x178524)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x4291cf)]());
1393
1374
  }
1394
- function formatAttachmentSuffix(_0x9a9d88) {
1395
- const _0x1baa8e = {
1396
- _0x46cddf: 0x198,
1397
- _0xda9364: 0x17c
1398
- }, _0x276743 = _0x1e865e;
1399
- if (!_0x9a9d88 || _0x9a9d88[_0x276743(0x198)] === 0x0)
1375
+ function formatAttachmentSuffix(_0x1cc08e) {
1376
+ const _0x16bf13 = _0x77ce4b;
1377
+ if (!_0x1cc08e || _0x1cc08e[_0x16bf13(0x146)] === 0x0)
1400
1378
  return '';
1401
- return '\x20[' + _0x9a9d88[_0x276743(_0x1baa8e._0x46cddf)] + _0x276743(0x186) + (_0x9a9d88['length'] > 0x1 ? 's' : '') + ':\x20' + _0x9a9d88[_0x276743(0x209)](_0x163fbc => _0x163fbc['filename'] + _0x276743(0x17d) + _0x163fbc['id'] + ')')['join'](',\x20') + _0x276743(_0x1baa8e._0xda9364);
1379
+ return '\x20[' + _0x1cc08e[_0x16bf13(0x146)] + '\x20attachment' + (_0x1cc08e[_0x16bf13(0x146)] > 0x1 ? 's' : '') + ':\x20' + _0x1cc08e[_0x16bf13(0xf7)](_0x45e1f0 => _0x45e1f0['filename'] + _0x16bf13(0x18a) + _0x45e1f0['id'] + ')')['join'](',\x20') + _0x16bf13(0x188);
1402
1380
  }
1403
- function formatCheckMessages(_0x3d96de) {
1404
- const _0x10b685 = { _0x1b2963: 0x198 }, _0x37a326 = {
1405
- _0x3ead65: 0x184,
1406
- _0x56284c: 0x154,
1407
- _0x55e46f: 0x170,
1408
- _0x32fb1e: 0x2ba,
1409
- _0xf4c242: 0x27e,
1410
- _0x2c03a4: 0x2ab,
1411
- _0x3b6976: 0x218,
1412
- _0x4c71db: 0x20e
1413
- }, _0x38b952 = _0x1e865e;
1414
- if (_0x3d96de[_0x38b952(_0x10b685._0x1b2963)] === 0x0)
1415
- return 'No\x20new\x20messages.';
1416
- return _0x3d96de[_0x38b952(0x209)](_0x55f43d => {
1417
- const _0x191dfd = _0x38b952, _0x23d401 = _0x55f43d[_0x191dfd(_0x37a326._0x3ead65)] === _0x191dfd(_0x37a326._0x56284c) ? _0x191dfd(0x212) : '', _0x46aa1c = _0x55f43d['kind'] && _0x55f43d['kind'] !== _0x191dfd(0x25d) ? _0x191dfd(_0x37a326._0x55e46f) + _0x55f43d[_0x191dfd(_0x37a326._0x32fb1e)] : '';
1418
- return _0x191dfd(_0x37a326._0xf4c242) + _0x55f43d['target'] + _0x191dfd(_0x37a326._0x2c03a4) + _0x55f43d['messageId'][_0x191dfd(0x229)](0x0, 0x8) + _0x191dfd(0x181) + toLocalTime(_0x55f43d[_0x191dfd(_0x37a326._0x3b6976)]) + _0x23d401 + _0x46aa1c + _0x191dfd(_0x37a326._0x4c71db) + _0x55f43d[_0x191dfd(0x176)] + ':\x20' + _0x55f43d['content'] + formatAttachmentSuffix(_0x55f43d['attachments']);
1419
- })[_0x38b952(0x1d1)]('\x0a');
1381
+ function formatCheckMessages(_0x1e2190) {
1382
+ const _0x49e9a3 = { _0x414d8e: 0x146 }, _0x27b6e7 = {
1383
+ _0x12d667: 0x1af,
1384
+ _0xdeacd8: 0x15f,
1385
+ _0x5b3fdb: 0x1b5,
1386
+ _0x429b89: 0x135,
1387
+ _0x2242f1: 0xf9,
1388
+ _0x2af270: 0x190,
1389
+ _0x16d7e8: 0x202
1390
+ }, _0x4c0ef5 = _0x77ce4b;
1391
+ if (_0x1e2190[_0x4c0ef5(_0x49e9a3._0x414d8e)] === 0x0)
1392
+ return _0x4c0ef5(0xfc);
1393
+ return _0x1e2190['map'](_0x262962 => {
1394
+ const _0xf02aad = _0x4c0ef5, _0x12231a = _0x262962['senderType'] === _0xf02aad(0x1c0) ? _0xf02aad(_0x27b6e7._0x12d667) : '', _0x3b869f = _0x262962[_0xf02aad(0x15f)] && _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] !== 'chat' ? _0xf02aad(_0x27b6e7._0x5b3fdb) + _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] : '';
1395
+ return _0xf02aad(_0x27b6e7._0x429b89) + _0x262962[_0xf02aad(0x1b9)] + _0xf02aad(0x1f7) + _0x262962['messageId'][_0xf02aad(0x23d)](0x0, 0x8) + _0xf02aad(_0x27b6e7._0x2242f1) + toLocalTime(_0x262962[_0xf02aad(_0x27b6e7._0x2af270)]) + _0x12231a + _0x3b869f + _0xf02aad(0x243) + _0x262962[_0xf02aad(0x206)] + ':\x20' + _0x262962[_0xf02aad(_0x27b6e7._0x16d7e8)] + formatAttachmentSuffix(_0x262962[_0xf02aad(0x1de)]);
1396
+ })[_0x4c0ef5(0x172)]('\x0a');
1420
1397
  }
1421
- function formatHistory(_0x18a1dc) {
1422
- const _0x5d3954 = {
1423
- _0x3db2f7: 0x198,
1424
- _0x31009c: 0x17e,
1425
- _0x83c27f: 0x2b7,
1426
- _0x3e1c21: 0x230,
1427
- _0x5e6f2a: 0x1a3,
1428
- _0x3c23be: 0x19c,
1429
- _0x31c7a3: 0x21f
1430
- }, _0x309bce = {
1431
- _0x5117ae: 0x2ba,
1432
- _0xf3b2ed: 0x170,
1433
- _0x13853d: 0x192,
1434
- _0x4afd78: 0x20e,
1435
- _0x3d9b0e: 0x176
1436
- }, _0x176c49 = _0x1e865e;
1437
- if (_0x18a1dc[_0x176c49(0x2b7)][_0x176c49(_0x5d3954._0x3db2f7)] === 0x0)
1438
- return _0x176c49(0x233) + _0x18a1dc['channel'] + _0x176c49(_0x5d3954._0x31009c);
1439
- const _0x21ff56 = _0x18a1dc[_0x176c49(_0x5d3954._0x83c27f)]['map'](_0xafbb11 => {
1440
- const _0x3f3565 = _0x176c49, _0x45ca4e = _0xafbb11['senderType'] === 'agent' ? '\x20type=agent' : '', _0x1a29f3 = _0xafbb11[_0x3f3565(_0x309bce._0x5117ae)] && _0xafbb11[_0x3f3565(0x2ba)] !== 'chat' ? _0x3f3565(_0x309bce._0xf3b2ed) + _0xafbb11['kind'] : '';
1441
- return _0x3f3565(0x1b3) + _0xafbb11[_0x3f3565(_0x309bce._0x13853d)] + '\x20msg=' + _0xafbb11[_0x3f3565(0x276)] + _0x3f3565(0x181) + toLocalTime(_0xafbb11['createdAt']) + _0x45ca4e + _0x1a29f3 + _0x3f3565(_0x309bce._0x4afd78) + _0xafbb11[_0x3f3565(_0x309bce._0x3d9b0e)] + ':\x20' + _0xafbb11['content'] + formatAttachmentSuffix(_0xafbb11[_0x3f3565(0x1e3)]);
1442
- })[_0x176c49(0x1d1)]('\x0a'), _0x4666c3 = _0x18a1dc[_0x176c49(_0x5d3954._0x3e1c21)] && _0x18a1dc[_0x176c49(0x1ba)] ? _0x176c49(_0x5d3954._0x5e6f2a) + _0x18a1dc['messages'][_0x176c49(_0x5d3954._0x3db2f7)] + _0x176c49(0x201) + _0x18a1dc[_0x176c49(0x1ba)] + _0x176c49(_0x5d3954._0x3c23be) : '';
1443
- return _0x176c49(0x233) + _0x18a1dc[_0x176c49(_0x5d3954._0x31c7a3)] + '\x20(' + _0x18a1dc['messages']['length'] + '\x20messages)\x0a\x0a' + _0x21ff56 + _0x4666c3;
1398
+ function formatHistory(_0x21b53f) {
1399
+ const _0x5b10fb = {
1400
+ _0x1710bc: 0x16e,
1401
+ _0x19050c: 0x207,
1402
+ _0x31567e: 0x172,
1403
+ _0x6b0cb8: 0x150,
1404
+ _0x5c999b: 0x184,
1405
+ _0x18b78d: 0x146
1406
+ }, _0x48083e = {
1407
+ _0x5ed52a: 0x18d,
1408
+ _0x527bd8: 0x1af,
1409
+ _0x366f34: 0x15f,
1410
+ _0x53490a: 0x15f,
1411
+ _0xca3a36: 0x15e,
1412
+ _0x3ca5d9: 0xf9,
1413
+ _0x487b77: 0x202,
1414
+ _0x435689: 0x1de
1415
+ }, _0x349759 = _0x77ce4b;
1416
+ if (_0x21b53f[_0x349759(_0x5b10fb._0x1710bc)][_0x349759(0x146)] === 0x0)
1417
+ return _0x349759(0xd3) + _0x21b53f['channel'] + _0x349759(_0x5b10fb._0x19050c);
1418
+ const _0x58d6bc = _0x21b53f['messages']['map'](_0x451878 => {
1419
+ const _0x52dc38 = _0x349759, _0x107f4e = _0x451878[_0x52dc38(_0x48083e._0x5ed52a)] === _0x52dc38(0x1c0) ? _0x52dc38(_0x48083e._0x527bd8) : '', _0x30f245 = _0x451878[_0x52dc38(_0x48083e._0x366f34)] && _0x451878[_0x52dc38(_0x48083e._0x53490a)] !== _0x52dc38(0x151) ? _0x52dc38(0x1b5) + _0x451878['kind'] : '';
1420
+ return _0x52dc38(0x1c8) + _0x451878['seq'] + _0x52dc38(0x1f7) + _0x451878[_0x52dc38(_0x48083e._0xca3a36)] + _0x52dc38(_0x48083e._0x3ca5d9) + toLocalTime(_0x451878['createdAt']) + _0x107f4e + _0x30f245 + _0x52dc38(0x243) + _0x451878['senderName'] + ':\x20' + _0x451878[_0x52dc38(_0x48083e._0x487b77)] + formatAttachmentSuffix(_0x451878[_0x52dc38(_0x48083e._0x435689)]);
1421
+ })[_0x349759(_0x5b10fb._0x31567e)]('\x0a'), _0x50f3c3 = _0x21b53f[_0x349759(0x208)] && _0x21b53f[_0x349759(_0x5b10fb._0x6b0cb8)] ? _0x349759(_0x5b10fb._0x5c999b) + _0x21b53f[_0x349759(0x16e)][_0x349759(0x146)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x21b53f[_0x349759(_0x5b10fb._0x6b0cb8)] + _0x349759(0x21d) : '';
1422
+ return _0x349759(0xd3) + _0x21b53f['channel'] + '\x20(' + _0x21b53f[_0x349759(0x16e)][_0x349759(_0x5b10fb._0x18b78d)] + _0x349759(0x1cc) + _0x58d6bc + _0x50f3c3;
1444
1423
  }
1445
- function formatServerDirectory(_0x3b94fe) {
1446
- const _0x42a6b1 = {
1447
- _0x7f7dbe: 0x25b,
1448
- _0x4b71d4: 0x209,
1449
- _0x5ab84d: 0x1d1,
1450
- _0x5aebf7: 0x1d1,
1451
- _0x2ea6e7: 0x209,
1452
- _0x4c7894: 0x156,
1453
- _0x426b12: 0x2c2,
1454
- _0x517899: 0x20f
1455
- }, _0x37246c = _0x1e865e, _0xbd4a7f = _0x3b94fe[_0x37246c(_0x42a6b1._0x7f7dbe)][_0x37246c(0x198)] > 0x0 ? _0x3b94fe['channels'][_0x37246c(_0x42a6b1._0x4b71d4)](_0x271062 => _0x271062[_0x37246c(0x164)] ? _0x37246c(0x206) + _0x271062[_0x37246c(0x160)] + _0x37246c(0x23c) + _0x271062[_0x37246c(0x164)] : '-\x20#' + _0x271062[_0x37246c(0x160)])[_0x37246c(_0x42a6b1._0x5ab84d)]('\x0a') : '(none)', _0x119838 = _0x3b94fe[_0x37246c(0x274)][_0x37246c(0x198)] > 0x0 ? _0x3b94fe[_0x37246c(0x274)][_0x37246c(_0x42a6b1._0x4b71d4)](_0x2d30d4 => _0x37246c(0x1da) + _0x2d30d4['name'])[_0x37246c(_0x42a6b1._0x5aebf7)]('\x0a') : _0x37246c(0x156), _0x28d27a = _0x3b94fe[_0x37246c(0x217)]['length'] > 0x0 ? _0x3b94fe[_0x37246c(0x217)][_0x37246c(_0x42a6b1._0x2ea6e7)](_0x544d0b => _0x37246c(0x1da) + _0x544d0b[_0x37246c(0x160)])[_0x37246c(0x1d1)]('\x0a') : _0x37246c(_0x42a6b1._0x4c7894);
1424
+ function formatServerDirectory(_0x588a54) {
1425
+ const _0x15992f = {
1426
+ _0x343599: 0x146,
1427
+ _0x3e6632: 0x1b3,
1428
+ _0x2ddec2: 0xf7,
1429
+ _0x56325c: 0x146,
1430
+ _0x575f7b: 0x22c,
1431
+ _0x44b21e: 0xe1,
1432
+ _0x76e0ba: 0x142,
1433
+ _0x47addc: 0x10e,
1434
+ _0x3780da: 0x172
1435
+ }, _0x546416 = _0x77ce4b, _0x2c4b09 = _0x588a54['channels'][_0x546416(_0x15992f._0x343599)] > 0x0 ? _0x588a54[_0x546416(0xbc)]['map'](_0x4d703c => _0x4d703c['description'] ? _0x546416(0x109) + _0x4d703c['name'] + '\x20—\x20' + _0x4d703c['description'] : '-\x20#' + _0x4d703c[_0x546416(0x145)])[_0x546416(0x172)]('\x0a') : '(none)', _0x2604c8 = _0x588a54[_0x546416(0x1b3)][_0x546416(_0x15992f._0x343599)] > 0x0 ? _0x588a54[_0x546416(_0x15992f._0x3e6632)][_0x546416(_0x15992f._0x2ddec2)](_0x309e4b => _0x546416(0x220) + _0x309e4b['name'])[_0x546416(0x172)]('\x0a') : _0x546416(0xe1), _0x24290e = _0x588a54[_0x546416(0x22c)][_0x546416(_0x15992f._0x56325c)] > 0x0 ? _0x588a54[_0x546416(_0x15992f._0x575f7b)][_0x546416(0xf7)](_0x2e08ea => '-\x20@' + _0x2e08ea[_0x546416(0x145)])[_0x546416(0x172)]('\x0a') : _0x546416(_0x15992f._0x44b21e);
1456
1436
  return [
1457
- _0x37246c(0x195) + _0x3b94fe[_0x37246c(_0x42a6b1._0x426b12)],
1437
+ '##\x20Server:\x20' + _0x588a54[_0x546416(0x18f)],
1458
1438
  '',
1459
- '###\x20Channels',
1460
- _0xbd4a7f,
1439
+ _0x546416(_0x15992f._0x76e0ba),
1440
+ _0x2c4b09,
1461
1441
  '',
1462
- '###\x20Agents',
1463
- _0x119838,
1442
+ _0x546416(_0x15992f._0x47addc),
1443
+ _0x2604c8,
1464
1444
  '',
1465
- _0x37246c(_0x42a6b1._0x517899),
1466
- _0x28d27a
1467
- ][_0x37246c(0x1d1)]('\x0a');
1445
+ _0x546416(0x219),
1446
+ _0x24290e
1447
+ ][_0x546416(_0x15992f._0x3780da)]('\x0a');
1468
1448
  }
1469
- function formatUploadResult(_0x42f9d3) {
1470
- const _0x5c86ba = {
1471
- _0x18df5: 0x15f,
1472
- _0x4ff3cd: 0x197,
1473
- _0x4a332a: 0x261,
1474
- _0x18c604: 0x2bb
1475
- }, _0xc51975 = _0x1e865e;
1476
- return _0xc51975(_0x5c86ba._0x18df5) + _0x42f9d3['filename'] + '\x20(' + (_0x42f9d3[_0xc51975(0x1b1)] / 0x400)[_0xc51975(_0x5c86ba._0x4ff3cd)](0x1) + _0xc51975(_0x5c86ba._0x4a332a) + _0x42f9d3['attachmentId'] + _0xc51975(_0x5c86ba._0x18c604);
1449
+ function formatUploadResult(_0x5ea479) {
1450
+ const _0x38a2fc = {
1451
+ _0x149b39: 0x10d,
1452
+ _0x22b857: 0xc3,
1453
+ _0x1e424d: 0x234,
1454
+ _0x320f0f: 0x149,
1455
+ _0x4a1a03: 0xff
1456
+ }, _0x28145e = _0x77ce4b;
1457
+ return _0x28145e(_0x38a2fc._0x149b39) + _0x5ea479[_0x28145e(_0x38a2fc._0x22b857)] + '\x20(' + (_0x5ea479[_0x28145e(0x125)] / 0x400)[_0x28145e(0x1b4)](0x1) + _0x28145e(_0x38a2fc._0x1e424d) + _0x5ea479[_0x28145e(_0x38a2fc._0x320f0f)] + _0x28145e(_0x38a2fc._0x4a1a03);
1477
1458
  }
1478
- function formatViewFileResult(_0x4e336f, _0x9859d2) {
1479
- const _0x5dc08f = {
1480
- _0x580613: 0x27f,
1481
- _0xcdab52: 0x180
1482
- }, _0x4e8f2b = _0x1e865e;
1483
- return _0x9859d2 ? _0x4e8f2b(_0x5dc08f._0x580613) + _0x4e336f : _0x4e8f2b(_0x5dc08f._0xcdab52) + _0x4e336f;
1459
+ function formatViewFileResult(_0x5d99c3, _0x431ade) {
1460
+ const _0x380d8b = _0x77ce4b;
1461
+ return _0x431ade ? 'File\x20already\x20cached\x20at:\x20' + _0x5d99c3 : _0x380d8b(0xbf) + _0x5d99c3;
1462
+ }
1463
+ function _0x4210(_0x5f2d22, _0x441680) {
1464
+ _0x5f2d22 = _0x5f2d22 - 0xb9;
1465
+ const _0x5b9233 = _0x5b92();
1466
+ let _0x4210ab = _0x5b9233[_0x5f2d22];
1467
+ if (_0x4210['fiuQGB'] === undefined) {
1468
+ var _0xbfa810 = function (_0x4264d9) {
1469
+ const _0x2b6932 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
1470
+ let _0x3bc217 = '', _0xe73669 = '';
1471
+ for (let _0x3b24f5 = 0x0, _0x1c7017, _0xb948bf, _0x4d18b5 = 0x0; _0xb948bf = _0x4264d9['charAt'](_0x4d18b5++); ~_0xb948bf && (_0x1c7017 = _0x3b24f5 % 0x4 ? _0x1c7017 * 0x40 + _0xb948bf : _0xb948bf, _0x3b24f5++ % 0x4) ? _0x3bc217 += String['fromCharCode'](0xff & _0x1c7017 >> (-0x2 * _0x3b24f5 & 0x6)) : 0x0) {
1472
+ _0xb948bf = _0x2b6932['indexOf'](_0xb948bf);
1473
+ }
1474
+ for (let _0x49c4a4 = 0x0, _0x1c7c61 = _0x3bc217['length']; _0x49c4a4 < _0x1c7c61; _0x49c4a4++) {
1475
+ _0xe73669 += '%' + ('00' + _0x3bc217['charCodeAt'](_0x49c4a4)['toString'](0x10))['slice'](-0x2);
1476
+ }
1477
+ return decodeURIComponent(_0xe73669);
1478
+ };
1479
+ _0x4210['LjVwCm'] = _0xbfa810, _0x4210['rIlSeZ'] = {}, _0x4210['fiuQGB'] = !![];
1480
+ }
1481
+ const _0x989cb9 = _0x5b9233[0x0], _0x554e6d = _0x5f2d22 + _0x989cb9, _0x3d4cff = _0x4210['rIlSeZ'][_0x554e6d];
1482
+ return !_0x3d4cff ? (_0x4210ab = _0x4210['LjVwCm'](_0x4210ab), _0x4210['rIlSeZ'][_0x554e6d] = _0x4210ab) : _0x4210ab = _0x3d4cff, _0x4210ab;
1484
1483
  }
1485
- function formatTaskList(_0x39be20, _0x2ffaab) {
1486
- const _0x29ff11 = {
1487
- _0x135fbd: 0x14e,
1488
- _0x336748: 0x1d1
1489
- }, _0x543e65 = {
1490
- _0x4c849e: 0x174,
1491
- _0x12c77a: 0x20d,
1492
- _0xa8b568: 0x174,
1493
- _0x1ee189: 0x213,
1494
- _0x7bf49c: 0x2a5
1495
- }, _0x2f853b = _0x1e865e;
1496
- if (_0x39be20['length'] === 0x0)
1497
- return _0x2f853b(_0x29ff11._0x135fbd);
1498
- return _0x39be20[_0x2f853b(0x209)](_0x83a4ae => {
1499
- const _0x2ed96a = _0x2f853b, _0x16b9ef = _0x83a4ae[_0x2ed96a(_0x543e65._0x4c849e)] == null ? '(legacy)' : _0x83a4ae[_0x2ed96a(_0x543e65._0x12c77a)] != null ? '#' + _0x83a4ae[_0x2ed96a(0x174)] + '.' + _0x83a4ae['subtaskNumber'] : '#' + _0x83a4ae['taskNumber'], _0x1441e2 = _0x83a4ae['messageId'] ? '\x20message=' + _0x83a4ae[_0x2ed96a(0x276)] : '', _0x6b2096 = _0x2ffaab && _0x83a4ae[_0x2ed96a(_0x543e65._0xa8b568)] != null && !_0x83a4ae[_0x2ed96a(0x20d)] && _0x2ffaab[_0x2ed96a(_0x543e65._0x1ee189)](_0x83a4ae[_0x2ed96a(_0x543e65._0xa8b568)]) ? '\x20executionMode=worker' : '', _0x25958a = _0x83a4ae[_0x2ed96a(0x17a)] != null && _0x83a4ae[_0x2ed96a(0x17a)] > 0x0 ? '\x20(' + (_0x83a4ae[_0x2ed96a(_0x543e65._0x7bf49c)] ?? 0x0) + '/' + _0x83a4ae[_0x2ed96a(0x17a)] + _0x2ed96a(0x2c0) : '';
1500
- return _0x16b9ef + '\x20[' + _0x83a4ae['status'] + ']\x20' + _0x83a4ae[_0x2ed96a(0x2be)] + _0x25958a + _0x1441e2 + _0x6b2096;
1501
- })[_0x2f853b(_0x29ff11._0x336748)]('\x0a');
1484
+ function formatTaskList(_0x592dc5, _0x20d4ba) {
1485
+ const _0x4d4645 = { _0x25099a: 0xee }, _0x4055c6 = { _0x296a96: 0xda }, _0x593291 = _0x77ce4b;
1486
+ if (_0x592dc5[_0x593291(0x146)] === 0x0)
1487
+ return _0x593291(_0x4d4645._0x25099a);
1488
+ return _0x592dc5[_0x593291(0xf7)](_0x56acd6 => {
1489
+ const _0x178808 = _0x593291, _0x4578d5 = _0x56acd6[_0x178808(0xda)] == null ? _0x178808(0x23f) : _0x56acd6[_0x178808(0x156)] != null ? '#' + _0x56acd6[_0x178808(0xda)] + '.' + _0x56acd6[_0x178808(0x156)] : '#' + _0x56acd6[_0x178808(_0x4055c6._0x296a96)], _0x3e7a4d = _0x56acd6[_0x178808(0x15e)] ? _0x178808(0x1bf) + _0x56acd6['messageId'] : '', _0x378733 = _0x20d4ba && _0x56acd6[_0x178808(_0x4055c6._0x296a96)] != null && !_0x56acd6['subtaskNumber'] && _0x20d4ba[_0x178808(0x1d8)](_0x56acd6[_0x178808(_0x4055c6._0x296a96)]) ? '\x20executionMode=worker' : '', _0x1d97de = _0x56acd6['childrenTotal'] != null && _0x56acd6['childrenTotal'] > 0x0 ? '\x20(' + (_0x56acd6[_0x178808(0x1ba)] ?? 0x0) + '/' + _0x56acd6['childrenTotal'] + _0x178808(0x177) : '';
1490
+ return _0x4578d5 + '\x20[' + _0x56acd6[_0x178808(0x12e)] + ']\x20' + _0x56acd6['title'] + _0x1d97de + _0x3e7a4d + _0x378733;
1491
+ })[_0x593291(0x172)]('\x0a');
1502
1492
  }
1503
- function formatCreatedTasks(_0x2de33c) {
1504
- const _0x29093c = {
1505
- _0x269cc9: 0x2ce,
1506
- _0x34e92f: 0x20d,
1507
- _0x556ae0: 0x174
1508
- }, _0x34112d = _0x1e865e;
1509
- if (_0x2de33c['length'] === 0x0)
1510
- return _0x34112d(0x270);
1511
- return _0x2de33c[_0x34112d(0x209)](_0x3a99ad => {
1512
- const _0x114daf = _0x34112d, _0x2d5477 = _0x3a99ad['taskNumber'] == null ? _0x114daf(_0x29093c._0x269cc9) : _0x3a99ad[_0x114daf(_0x29093c._0x34e92f)] != null ? '#' + _0x3a99ad[_0x114daf(_0x29093c._0x556ae0)] + '.' + _0x3a99ad[_0x114daf(_0x29093c._0x34e92f)] : '#' + _0x3a99ad[_0x114daf(0x174)], _0x3d697c = _0x3a99ad['messageId'] ? _0x114daf(0x296) + _0x3a99ad[_0x114daf(0x276)] : '';
1513
- return _0x2d5477 + '\x20' + _0x3a99ad[_0x114daf(0x2be)] + _0x3d697c;
1514
- })[_0x34112d(0x1d1)]('\x0a');
1493
+ function formatCreatedTasks(_0x571ac2) {
1494
+ const _0x2af328 = { _0x2fe035: 0x172 }, _0x4f3a6f = {
1495
+ _0x117745: 0x23f,
1496
+ _0x14d908: 0xda,
1497
+ _0x3b6404: 0x15e
1498
+ }, _0x241e1b = _0x77ce4b;
1499
+ if (_0x571ac2['length'] === 0x0)
1500
+ return _0x241e1b(0xf2);
1501
+ return _0x571ac2[_0x241e1b(0xf7)](_0x193e67 => {
1502
+ const _0x3b2253 = _0x241e1b, _0x541e03 = _0x193e67['taskNumber'] == null ? _0x3b2253(_0x4f3a6f._0x117745) : _0x193e67['subtaskNumber'] != null ? '#' + _0x193e67[_0x3b2253(0xda)] + '.' + _0x193e67[_0x3b2253(0x156)] : '#' + _0x193e67[_0x3b2253(_0x4f3a6f._0x14d908)], _0x35d8a7 = _0x193e67[_0x3b2253(_0x4f3a6f._0x3b6404)] ? '\x20message=' + _0x193e67[_0x3b2253(0x15e)] : '';
1503
+ return _0x541e03 + '\x20' + _0x193e67[_0x3b2253(0x12c)] + _0x35d8a7;
1504
+ })[_0x241e1b(_0x2af328._0x2fe035)]('\x0a');
1515
1505
  }
1516
- function formatClaimTaskResults(_0xf3d4dd) {
1517
- const _0x3d4888 = { _0x3b4ecb: 0x209 }, _0x176ce8 = {
1518
- _0x16b5cd: 0x174,
1519
- _0x1985cb: 0x174,
1520
- _0x5a7b7b: 0x1c5,
1521
- _0x31449e: 0x22a,
1522
- _0x5bd515: 0x167,
1523
- _0x1dee01: 0x1e5,
1524
- _0x587a79: 0x271,
1525
- _0x3dadab: 0x1d1,
1526
- _0x56a117: 0x15e,
1527
- _0x35c924: 0x1ea
1528
- }, _0x177ef8 = _0x1e865e;
1529
- if (_0xf3d4dd[_0x177ef8(0x198)] === 0x0)
1506
+ function formatClaimTaskResults(_0xf98e3b) {
1507
+ const _0x56e7e2 = {
1508
+ _0x668dc6: 0x146,
1509
+ _0x17a08e: 0x172
1510
+ }, _0x338681 = {
1511
+ _0x2c7a6e: 0x21b,
1512
+ _0x3d9a1e: 0x156,
1513
+ _0x1560bd: 0xda,
1514
+ _0x5d1546: 0x15e,
1515
+ _0x484a9e: 0x121,
1516
+ _0x2b6876: 0x136,
1517
+ _0x2b874f: 0x1ab,
1518
+ _0x1369d1: 0x246,
1519
+ _0x2f4274: 0xe6,
1520
+ _0x17990c: 0x144,
1521
+ _0x209746: 0x1ce,
1522
+ _0x3358ae: 0x17f,
1523
+ _0xa47efb: 0xbd,
1524
+ _0x81ba70: 0x1d7
1525
+ }, _0x5980d6 = _0x77ce4b;
1526
+ if (_0xf98e3b[_0x5980d6(_0x56e7e2._0x668dc6)] === 0x0)
1530
1527
  return 'No\x20tasks\x20claimed.';
1531
- return _0xf3d4dd[_0x177ef8(_0x3d4888._0x3b4ecb)](_0x238c55 => {
1532
- const _0x2b5014 = _0x177ef8;
1533
- if (_0x238c55['success']) {
1534
- const _0x533de3 = _0x238c55[_0x2b5014(_0x176ce8._0x16b5cd)] == null ? '(legacy)' : _0x238c55[_0x2b5014(0x20d)] != null ? '#' + _0x238c55[_0x2b5014(0x174)] + '.' + _0x238c55['subtaskNumber'] : '#' + _0x238c55[_0x2b5014(_0x176ce8._0x1985cb)], _0x525781 = _0x238c55[_0x2b5014(0x276)] ? '\x20message=' + _0x238c55['messageId'] : '';
1535
- if (_0x238c55[_0x2b5014(0x172)]) {
1536
- const _0x120bcd = [
1537
- _0x2b5014(_0x176ce8._0x5a7b7b),
1538
- _0x238c55[_0x2b5014(0x228)] ? 'stopMain=true' : null,
1539
- _0x238c55[_0x2b5014(0x2b1)] ? _0x2b5014(0x157) + _0x238c55[_0x2b5014(0x2b1)] : null,
1540
- _0x238c55[_0x2b5014(_0x176ce8._0x31449e)] ? _0x2b5014(0x194) + _0x238c55[_0x2b5014(0x22a)] : null,
1541
- _0x238c55[_0x2b5014(_0x176ce8._0x5bd515)] ? _0x2b5014(_0x176ce8._0x1dee01) + _0x238c55[_0x2b5014(0x167)] : null
1542
- ][_0x2b5014(_0x176ce8._0x587a79)](Boolean)[_0x2b5014(_0x176ce8._0x3dadab)]('\x20');
1543
- return _0x533de3 + _0x2b5014(0x1c3) + _0x525781 + '\x20' + _0x120bcd + _0x2b5014(_0x176ce8._0x56a117);
1528
+ return _0xf98e3b['map'](_0x5902bf => {
1529
+ const _0xd46be4 = _0x5980d6;
1530
+ if (_0x5902bf[_0xd46be4(_0x338681._0x2c7a6e)]) {
1531
+ const _0x5e84b2 = _0x5902bf[_0xd46be4(0xda)] == null ? '(legacy)' : _0x5902bf['subtaskNumber'] != null ? '#' + _0x5902bf[_0xd46be4(0xda)] + '.' + _0x5902bf[_0xd46be4(_0x338681._0x3d9a1e)] : '#' + _0x5902bf[_0xd46be4(_0x338681._0x1560bd)], _0x26bbcc = _0x5902bf[_0xd46be4(_0x338681._0x5d1546)] ? _0xd46be4(0x1bf) + _0x5902bf[_0xd46be4(0x15e)] : '';
1532
+ if (_0x5902bf[_0xd46be4(_0x338681._0x484a9e)]) {
1533
+ const _0xaba746 = [
1534
+ _0xd46be4(_0x338681._0x2b6876),
1535
+ _0x5902bf['stopMain'] ? _0xd46be4(_0x338681._0x2b874f) : null,
1536
+ _0x5902bf['executionMode'] ? _0xd46be4(_0x338681._0x1369d1) + _0x5902bf['executionMode'] : null,
1537
+ _0x5902bf['threadTarget'] ? _0xd46be4(0x1d3) + _0x5902bf[_0xd46be4(_0x338681._0x2f4274)] : null,
1538
+ _0x5902bf[_0xd46be4(_0x338681._0x17990c)] ? _0xd46be4(_0x338681._0x209746) + _0x5902bf[_0xd46be4(0x144)] : null
1539
+ ][_0xd46be4(0x1bd)](Boolean)[_0xd46be4(0x172)]('\x20');
1540
+ return _0x5e84b2 + _0xd46be4(_0x338681._0x3358ae) + _0x26bbcc + '\x20' + _0xaba746 + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
1544
1541
  }
1545
- const _0x4f0e31 = _0x238c55[_0x2b5014(0x1ea)] ? _0x2b5014(0x21a) + _0x238c55[_0x2b5014(_0x176ce8._0x35c924)] : '';
1546
- return _0x533de3 + _0x2b5014(0x1c3) + _0x525781 + _0x4f0e31;
1542
+ const _0x424ead = _0x5902bf['workerHandoffError'] ? _0xd46be4(_0x338681._0xa47efb) + _0x5902bf[_0xd46be4(0x185)] : '';
1543
+ return _0x5e84b2 + '\x20claimed' + _0x26bbcc + _0x424ead;
1547
1544
  }
1548
- const _0x5edba5 = _0x238c55[_0x2b5014(0x174)] == null ? _0x238c55[_0x2b5014(0x276)] ?? _0x2b5014(0x1c9) : '#' + _0x238c55[_0x2b5014(0x174)];
1549
- return _0x5edba5 + _0x2b5014(0x205) + (_0x238c55[_0x2b5014(0x272)] ?? _0x2b5014(0x267));
1550
- })[_0x177ef8(0x1d1)]('\x0a');
1545
+ const _0x47ea16 = _0x5902bf[_0xd46be4(0xda)] == null ? _0x5902bf['messageId'] ?? _0xd46be4(0xd9) : '#' + _0x5902bf[_0xd46be4(_0x338681._0x1560bd)];
1546
+ return _0x47ea16 + _0xd46be4(0xe4) + (_0x5902bf[_0xd46be4(0x1aa)] ?? _0xd46be4(_0x338681._0x81ba70));
1547
+ })[_0x5980d6(_0x56e7e2._0x17a08e)]('\x0a');
1551
1548
  }
1552
- function formatUnclaimTaskResult(_0x47fd64) {
1553
- const _0x4fcc6e = _0x1e865e, _0x4b924b = _0x47fd64['taskNumber'] == null ? _0x4fcc6e(0x2ce) : _0x47fd64[_0x4fcc6e(0x20d)] != null ? '#' + _0x47fd64[_0x4fcc6e(0x174)] + '.' + _0x47fd64[_0x4fcc6e(0x20d)] : '#' + _0x47fd64[_0x4fcc6e(0x174)];
1554
- return _0x4b924b + _0x4fcc6e(0x2b0) + _0x47fd64['status'];
1549
+ function formatUnclaimTaskResult(_0x846aec) {
1550
+ const _0x2d4ae5 = {
1551
+ _0x15ee15: 0x156,
1552
+ _0x4eeae5: 0xda
1553
+ }, _0x12fb05 = _0x77ce4b, _0x2d6bc2 = _0x846aec[_0x12fb05(0xda)] == null ? _0x12fb05(0x23f) : _0x846aec[_0x12fb05(_0x2d4ae5._0x15ee15)] != null ? '#' + _0x846aec[_0x12fb05(_0x2d4ae5._0x4eeae5)] + '.' + _0x846aec[_0x12fb05(0x156)] : '#' + _0x846aec['taskNumber'];
1554
+ return _0x2d6bc2 + _0x12fb05(0x193) + _0x846aec[_0x12fb05(0x12e)];
1555
1555
  }
1556
- function formatUpdateTaskStatusResult(_0xf68a86) {
1557
- const _0x4d11b1 = { _0x51c3cb: 0x20d }, _0x219a52 = _0x1e865e, _0xa817f4 = _0xf68a86['taskNumber'] == null ? _0x219a52(0x2ce) : _0xf68a86['subtaskNumber'] != null ? '#' + _0xf68a86[_0x219a52(0x174)] + '.' + _0xf68a86[_0x219a52(_0x4d11b1._0x51c3cb)] : '#' + _0xf68a86[_0x219a52(0x174)];
1558
- return _0xa817f4 + '\x20status=' + _0xf68a86['status'];
1556
+ function formatUpdateTaskStatusResult(_0x2c672b) {
1557
+ const _0x1c6086 = {
1558
+ _0x5f3727: 0xda,
1559
+ _0x4c0106: 0x156,
1560
+ _0x50d98b: 0xda
1561
+ }, _0x21e892 = _0x77ce4b, _0x224e74 = _0x2c672b[_0x21e892(_0x1c6086._0x5f3727)] == null ? _0x21e892(0x23f) : _0x2c672b[_0x21e892(_0x1c6086._0x4c0106)] != null ? '#' + _0x2c672b[_0x21e892(_0x1c6086._0x5f3727)] + '.' + _0x2c672b[_0x21e892(_0x1c6086._0x4c0106)] : '#' + _0x2c672b[_0x21e892(_0x1c6086._0x50d98b)];
1562
+ return _0x224e74 + '\x20status=' + _0x2c672b['status'];
1559
1563
  }
1560
1564
  function getChatBridgeToolDefinitions() {
1561
- const _0x4d3007 = {
1562
- _0x130e06: 0x1c4,
1563
- _0x4c924b: 0x29e,
1564
- _0x3d7383: 0x188,
1565
- _0x509b58: 0x1d8
1566
- }, _0x426655 = _0x1e865e;
1565
+ const _0x5f2ebc = {
1566
+ _0x5e2768: 0x131,
1567
+ _0x5318b9: 0x18b,
1568
+ _0x143801: 0x180,
1569
+ _0x5d762d: 0x163,
1570
+ _0x443357: 0x148,
1571
+ _0x2b52e9: 0x1d0
1572
+ }, _0x344d5d = _0x77ce4b;
1567
1573
  return [
1568
- { 'name': _0x426655(_0x4d3007._0x130e06) },
1574
+ { 'name': _0x344d5d(_0x5f2ebc._0x5e2768) },
1569
1575
  { 'name': 'check_messages' },
1570
- { 'name': 'read_history' },
1571
- { 'name': _0x426655(_0x4d3007._0x4c924b) },
1576
+ { 'name': _0x344d5d(_0x5f2ebc._0x5318b9) },
1577
+ { 'name': _0x344d5d(0xb9) },
1572
1578
  { 'name': 'upload_file' },
1573
- { 'name': 'view_file' },
1574
- { 'name': _0x426655(0x236) },
1575
- { 'name': 'create_tasks' },
1576
- { 'name': _0x426655(0x2d9) },
1577
- { 'name': _0x426655(_0x4d3007._0x3d7383) },
1578
- { 'name': _0x426655(0x246) },
1579
- { 'name': _0x426655(0x29b) },
1580
- { 'name': _0x426655(0x1f8) },
1581
- { 'name': _0x426655(_0x4d3007._0x509b58) },
1582
- { 'name': _0x426655(0x1e0) }
1579
+ { 'name': _0x344d5d(_0x5f2ebc._0x143801) },
1580
+ { 'name': 'list_tasks' },
1581
+ { 'name': _0x344d5d(_0x5f2ebc._0x5d762d) },
1582
+ { 'name': 'claim_tasks' },
1583
+ { 'name': _0x344d5d(_0x5f2ebc._0x443357) },
1584
+ { 'name': 'update_task_status' },
1585
+ { 'name': _0x344d5d(0x231) },
1586
+ { 'name': _0x344d5d(0x1f8) },
1587
+ { 'name': _0x344d5d(_0x5f2ebc._0x2b52e9) },
1588
+ { 'name': _0x344d5d(0x1a1) }
1583
1589
  ];
1584
1590
  }
1585
- function createChatBridgeHandlers(_0x1b888f) {
1586
- const _0xbcbba3 = {
1587
- _0x4231e7: 0x20a,
1588
- _0x5626c4: 0x281
1589
- }, _0x2dfc9d = {
1590
- _0x1f1b5f: 0x29c,
1591
- _0x286181: 0x187,
1592
- _0x1ed248: 0x1d6,
1593
- _0x5c7ac2: 0x202,
1594
- _0x262db5: 0x1e2,
1595
- _0x3dda70: 0x23a
1596
- }, _0x401425 = {
1597
- _0xc2aded: 0x29c,
1598
- _0x44f927: 0x1b2,
1599
- _0x456396: 0x1b7,
1600
- _0xb7b06f: 0x202,
1601
- _0x50191c: 0x264,
1602
- _0x4a6cef: 0x231,
1603
- _0x41fe60: 0x1c8
1604
- }, _0x4e3da4 = {
1605
- _0x2f57e3: 0x2a4,
1606
- _0x2b32bd: 0x1e2,
1607
- _0x43982e: 0x226,
1608
- _0xc30f7d: 0x23f,
1609
- _0x1e592b: 0x1d2,
1610
- _0x2b5679: 0x273
1611
- }, _0x4a6ae1 = {
1612
- _0x4cd417: 0x15a,
1613
- _0x1fbc40: 0x1d2,
1614
- _0x374e66: 0x202
1615
- }, _0x8ee56e = { _0x12fa53: 0x1ec }, _0xcc22ab = { _0x4faa6a: 0x2c5 }, _0x33d330 = {
1616
- _0x320866: 0x246,
1617
- _0x164d63: 0x223
1618
- }, _0x52b962 = {
1619
- _0x5af7c3: 0x1a6,
1620
- _0x203082: 0x18d
1621
- }, _0x2f5f43 = {
1622
- _0x2682ee: 0x2d9,
1623
- _0x5ac758: 0x1d4,
1624
- _0x31ad97: 0x198,
1625
- _0x4ee1d1: 0x28d
1626
- }, _0x312df0 = { _0x3c1d24: 0x200 }, _0x122b8a = {
1627
- _0x54ba02: 0x29c,
1628
- _0x5a5dc2: 0x264,
1629
- _0x50fd5d: 0x264,
1630
- _0x56f697: 0x1e2,
1631
- _0x3b38dc: 0x2ad,
1632
- _0x404889: 0x2a2,
1633
- _0x3d0d68: 0x1cc,
1634
- _0x2b4371: 0x153,
1635
- _0x5c4c76: 0x174,
1636
- _0x345177: 0x153
1637
- }, _0x162343 = { _0x1f1a2e: 0x2ca }, _0xf01c8e = {
1638
- _0x21e3e4: 0x271,
1639
- _0x19b1a5: 0x2b7
1640
- }, _0x22cfaa = {
1641
- _0x320472: 0x232,
1642
- _0x50eee8: 0x263,
1643
- _0x2dbbc6: 0x174,
1644
- _0x42fa79: 0x2ce,
1645
- _0x5927fe: 0x232,
1646
- _0xa59a4a: 0x229,
1647
- _0x5c784d: 0x213,
1648
- _0x49cc4f: 0x2cb,
1649
- _0x28ccb0: 0x22b,
1650
- _0x1bc9af: 0x1d1,
1651
- _0x4273e1: 0x14f,
1652
- _0x165ad2: 0x1f0,
1653
- _0x2ff4ef: 0x193,
1654
- _0x34bb9b: 0x287,
1655
- _0xcd7b82: 0x220,
1656
- _0x451e34: 0x1b7,
1657
- _0x3d08f7: 0x2a4,
1658
- _0x10ffc1: 0x263,
1659
- _0xbdc636: 0x287,
1660
- _0x2de0c5: 0x226,
1661
- _0x40509b: 0x208,
1662
- _0x3623dc: 0x293,
1663
- _0x3c4768: 0x16e,
1664
- _0x4de521: 0x2d5,
1665
- _0x13ca2f: 0x282,
1666
- _0x1b719b: 0x1d1,
1667
- _0x367fbf: 0x2a0,
1668
- _0x39c5d4: 0x1dc,
1669
- _0x15c3af: 0x23b,
1670
- _0x35033e: 0x276
1671
- }, _0x37c7b1 = {
1672
- _0x211ef7: 0x29c,
1673
- _0x19770b: 0x151,
1674
- _0x210959: 0x1cc,
1675
- _0x86217d: 0x2a2
1676
- }, _0x4dcf62 = {
1677
- _0x336148: 0x264,
1678
- _0x12615c: 0x29c,
1679
- _0x36b555: 0x2c1,
1680
- _0x3e3add: 0x1e2,
1681
- _0x291ed4: 0x1db,
1682
- _0x35fba0: 0x2a2
1683
- }, _0x23f509 = {
1684
- _0x32f3f3: 0x264,
1685
- _0x430962: 0x21f,
1686
- _0x26d455: 0x2ba,
1687
- _0x8aa740: 0x1a2,
1688
- _0x543aa3: 0x276,
1689
- _0x428964: 0x2b7,
1690
- _0x381acc: 0x1ff,
1691
- _0x17a162: 0x174,
1692
- _0x59f498: 0x27e,
1693
- _0x4a1dac: 0x2ab,
1694
- _0x175542: 0x276,
1695
- _0x5a3d47: 0x183,
1696
- _0x402013: 0x222,
1697
- _0x2b7b7d: 0x250,
1698
- _0x217d54: 0x1d1,
1699
- _0x4a46a6: 0x1d6,
1700
- _0x17e7d5: 0x1b7,
1701
- _0x1ab230: 0x17b,
1702
- _0x1e75e2: 0x1be
1703
- }, _0x1a6af5 = {
1704
- _0x332181: 0x286,
1705
- _0xefdb70: 0x24b,
1706
- _0x427512: 0x25c
1707
- }, _0x3e3605 = _0x1e865e;
1708
- function _0x3feae9(_0x370e15, _0x46a3aa) {
1709
- const _0x1489e0 = _0x9c1d;
1710
- if (!_0x1b888f[_0x1489e0(_0x1a6af5._0x332181)])
1591
+ function createChatBridgeHandlers(_0x1423f4) {
1592
+ const _0x1db53f = {
1593
+ _0x4ef7a1: 0x168,
1594
+ _0x2e50f4: 0x20e
1595
+ }, _0x3e4170 = {
1596
+ _0x54aba4: 0x1f4,
1597
+ _0x6c3ce: 0xf4,
1598
+ _0x2d9516: 0x14d,
1599
+ _0x10486d: 0x1d6
1600
+ }, _0x1d03c = {
1601
+ _0x33f496: 0x1f4,
1602
+ _0x594420: 0x216,
1603
+ _0x312b4c: 0x112,
1604
+ _0x1efdbb: 0x19e,
1605
+ _0x4e0410: 0x11e,
1606
+ _0x4757ef: 0x1a4
1607
+ }, _0x4313a3 = {
1608
+ _0x26f4ee: 0xdc,
1609
+ _0x3ad986: 0x1dc,
1610
+ _0x3c13ae: 0x11e,
1611
+ _0x282fa5: 0xc5
1612
+ }, _0x253e2f = {
1613
+ _0x1c5026: 0xd8,
1614
+ _0x2540fa: 0xc6,
1615
+ _0x2cb4a2: 0x11e,
1616
+ _0x6a8d90: 0x19e,
1617
+ _0x58d0a4: 0x1dc,
1618
+ _0x3110ac: 0x1dc,
1619
+ _0x5cd365: 0x11e
1620
+ }, _0x376121 = {
1621
+ _0x100aa6: 0x19b,
1622
+ _0x3b5019: 0x155,
1623
+ _0x3e832f: 0x1c7
1624
+ }, _0x38e71d = {
1625
+ _0xb40706: 0x1c6,
1626
+ _0x225744: 0x214
1627
+ }, _0x2063b0 = {
1628
+ _0x3953e6: 0x1d4,
1629
+ _0x4c7f4d: 0x167
1630
+ }, _0x5c01d4 = {
1631
+ _0x13446f: 0xba,
1632
+ _0x4034ee: 0x1cf,
1633
+ _0x3a2ac5: 0x138
1634
+ }, _0x17001a = {
1635
+ _0x114449: 0x146,
1636
+ _0x87ebca: 0x134,
1637
+ _0x54ce4d: 0xe7,
1638
+ _0x5ed3c5: 0x167,
1639
+ _0x2bffcd: 0x1a8,
1640
+ _0x2c10c7: 0x240,
1641
+ _0x8f27f8: 0xf7
1642
+ }, _0x1ab349 = { _0x2b2aa8: 0x163 }, _0x5f4dc5 = {
1643
+ _0x56ad80: 0x1f4,
1644
+ _0x1080ad: 0xba,
1645
+ _0x21ed2d: 0x1b8,
1646
+ _0x3320d9: 0x133,
1647
+ _0x47c8bc: 0xed,
1648
+ _0x5714e7: 0xda,
1649
+ _0x3c4980: 0x11c,
1650
+ _0xd34cc8: 0xed,
1651
+ _0x4a718a: 0xed
1652
+ }, _0x1ae460 = { _0x57a2ab: 0x1eb }, _0x298ff5 = { _0x1feda4: 0x19d }, _0x2b9617 = { _0x47917e: 0x16e }, _0x1deb74 = {
1653
+ _0x1166a4: 0x14a,
1654
+ _0x16ec6d: 0x1f4,
1655
+ _0x1aebfd: 0x167,
1656
+ _0xa0cbca: 0x1b9,
1657
+ _0x42be42: 0x229,
1658
+ _0xb7629f: 0x204,
1659
+ _0x3456f0: 0xda,
1660
+ _0x593951: 0x1b9,
1661
+ _0x35dfef: 0x1ac,
1662
+ _0x541ee8: 0x229,
1663
+ _0x19064a: 0x1a0,
1664
+ _0x5c77ce: 0x172,
1665
+ _0x2f9b88: 0x135,
1666
+ _0x1fee48: 0x225,
1667
+ _0x233ec3: 0x120,
1668
+ _0x5d327b: 0xf8,
1669
+ _0xd3043c: 0x202,
1670
+ _0x4d1388: 0x1a9,
1671
+ _0x20af05: 0x201,
1672
+ _0x50616a: 0x204,
1673
+ _0x3a55c6: 0x12b,
1674
+ _0x401fe5: 0x19e,
1675
+ _0x528fa1: 0xfa,
1676
+ _0x2d78e6: 0x1ca,
1677
+ _0x735711: 0xfd,
1678
+ _0x2f9d06: 0x1b9,
1679
+ _0x3e8485: 0xcb,
1680
+ _0x4eab13: 0x166
1681
+ }, _0x16242b = {
1682
+ _0x1e65c0: 0x201,
1683
+ _0x49be13: 0x1b8,
1684
+ _0x40ff58: 0x187
1685
+ }, _0x1deec9 = {
1686
+ _0x8ad15b: 0x1f4,
1687
+ _0x10570b: 0x17e,
1688
+ _0x438e14: 0x201,
1689
+ _0x3163a7: 0x19e,
1690
+ _0x2fded8: 0x143,
1691
+ _0x4bef18: 0x133,
1692
+ _0xf2b9ba: 0x13c,
1693
+ _0x205aff: 0x133
1694
+ }, _0x5ad453 = {
1695
+ _0x37c804: 0xba,
1696
+ _0x1337e3: 0x15e,
1697
+ _0x18d1cd: 0x16e,
1698
+ _0x151cee: 0x230,
1699
+ _0x1699e2: 0xda,
1700
+ _0x5e0d54: 0x135,
1701
+ _0x3b1ed0: 0x15e,
1702
+ _0x53850c: 0xf9,
1703
+ _0x2b5a9c: 0x225,
1704
+ _0xaa2b18: 0x1ea,
1705
+ _0x14b122: 0x202,
1706
+ _0x1f77d2: 0x198,
1707
+ _0x438c90: 0x1a9,
1708
+ _0x2c9f97: 0xdc,
1709
+ _0x130321: 0x112,
1710
+ _0x248270: 0x201,
1711
+ _0x2f20cb: 0x12b,
1712
+ _0x2be5d3: 0xef,
1713
+ _0x3b4e8f: 0x19e,
1714
+ _0x31e2ec: 0x14d,
1715
+ _0x4b11a2: 0x104,
1716
+ _0x14228a: 0x1f2,
1717
+ _0x435d06: 0x115
1718
+ }, _0x5acba3 = {
1719
+ _0xbdb81a: 0x178,
1720
+ _0x292681: 0x15a
1721
+ }, _0x3727a4 = _0x77ce4b;
1722
+ function _0x5af70d(_0x29f296, _0x7fe21b) {
1723
+ const _0x119c97 = _0x4210;
1724
+ if (!_0x1423f4[_0x119c97(0x14a)])
1711
1725
  return;
1712
- if (!_0x1b888f['workerThreadTarget'])
1713
- throw new Error(_0x370e15 + _0x1489e0(0x283));
1714
- if (_0x46a3aa !== _0x1b888f[_0x1489e0(_0x1a6af5._0xefdb70)])
1715
- throw new Error(_0x370e15 + ':\x20worker\x20can\x20only\x20operate\x20inside\x20its\x20own\x20task\x20thread\x20(' + _0x1b888f[_0x1489e0(0x24b)] + _0x1489e0(_0x1a6af5._0x427512) + _0x46a3aa);
1726
+ if (!_0x1423f4[_0x119c97(0x178)])
1727
+ throw new Error(_0x29f296 + _0x119c97(0x203));
1728
+ if (_0x7fe21b !== _0x1423f4[_0x119c97(_0x5acba3._0xbdb81a)])
1729
+ throw new Error(_0x29f296 + _0x119c97(0x189) + _0x1423f4[_0x119c97(0x178)] + _0x119c97(_0x5acba3._0x292681) + _0x7fe21b);
1716
1730
  }
1717
- async function _0x123bae(_0x2e48d9) {
1718
- const _0x45e3b7 = _0x9c1d;
1719
- if (!_0x1b888f[_0x45e3b7(0x29c)] || !_0x1b888f[_0x45e3b7(_0x23f509._0x32f3f3)] || _0x1b888f['workerMode'] || _0x1b888f[_0x45e3b7(0x260)] !== !![])
1731
+ async function _0xc552ae(_0xefd027) {
1732
+ const _0x37ec20 = _0x4210;
1733
+ if (!_0x1423f4[_0x37ec20(0x1f4)] || !_0x1423f4['agentId'] || _0x1423f4['workerMode'] || _0x1423f4[_0x37ec20(0x211)] !== !![])
1720
1734
  return null;
1721
- const _0x2cfc8b = parseTarget(_0x2e48d9[_0x45e3b7(_0x23f509._0x430962)]);
1722
- if (_0x2cfc8b[_0x45e3b7(_0x23f509._0x26d455)] !== _0x45e3b7(0x21f))
1735
+ const _0x169c28 = parseTarget(_0xefd027[_0x37ec20(0xba)]);
1736
+ if (_0x169c28[_0x37ec20(0x15f)] !== _0x37ec20(_0x5ad453._0x37c804))
1723
1737
  return null;
1724
- const _0x592fb1 = _0x2e48d9[_0x45e3b7(_0x23f509._0x8aa740)] != null ? _0x2cfc8b['channelTarget'] + ':t' + _0x2e48d9['threadNumber'] : _0x2cfc8b[_0x45e3b7(0x1a9)] + ':' + _0x2e48d9[_0x45e3b7(_0x23f509._0x543aa3)];
1725
- let _0x39684d;
1738
+ const _0x2c375b = _0xefd027['threadNumber'] != null ? _0x169c28[_0x37ec20(0x241)] + ':t' + _0xefd027['threadNumber'] : _0x169c28['channelTarget'] + ':' + _0xefd027[_0x37ec20(_0x5ad453._0x1337e3)];
1739
+ let _0x2c4afe;
1726
1740
  try {
1727
- const _0x451149 = await _0x1b888f[_0x45e3b7(0x1a6)][_0x45e3b7(0x2c3)]({
1728
- 'channel': _0x592fb1,
1741
+ const _0x19d6d2 = await _0x1423f4['client']['readHistory']({
1742
+ 'channel': _0x2c375b,
1729
1743
  'limit': 0x14
1730
1744
  });
1731
- _0x39684d = _0x451149[_0x45e3b7(_0x23f509._0x428964)][_0x45e3b7(_0x23f509._0x381acc)](_0x3a3921 => _0x3a3921[_0x45e3b7(0x276)] === _0x2e48d9[_0x45e3b7(0x276)]);
1745
+ _0x2c4afe = _0x19d6d2[_0x37ec20(_0x5ad453._0x18d1cd)][_0x37ec20(_0x5ad453._0x151cee)](_0x37bc8e => _0x37bc8e[_0x37ec20(0x15e)] === _0xefd027[_0x37ec20(0x15e)]);
1732
1746
  } catch {
1733
- _0x39684d = void 0x0;
1747
+ _0x2c4afe = void 0x0;
1734
1748
  }
1735
- const _0x2e097e = _0x2e48d9[_0x45e3b7(0x174)] == null ? _0x45e3b7(0x2ce) : '#' + _0x2e48d9[_0x45e3b7(_0x23f509._0x17a162)], _0x5dd4f3 = [
1736
- _0x45e3b7(_0x23f509._0x59f498) + _0x592fb1 + _0x45e3b7(_0x23f509._0x4a1dac) + _0x2e48d9[_0x45e3b7(_0x23f509._0x175542)][_0x45e3b7(0x229)](0x0, 0x8) + _0x45e3b7(0x181) + new Date()[_0x45e3b7(0x1fd)]() + _0x45e3b7(0x2df) + _0x2e097e + _0x45e3b7(_0x23f509._0x5a3d47),
1749
+ const _0x355549 = _0xefd027[_0x37ec20(_0x5ad453._0x1699e2)] == null ? '(legacy)' : '#' + _0xefd027[_0x37ec20(0xda)], _0x364bf6 = [
1750
+ _0x37ec20(_0x5ad453._0x5e0d54) + _0x2c375b + '\x20msg=' + _0xefd027[_0x37ec20(_0x5ad453._0x3b1ed0)][_0x37ec20(0x23d)](0x0, 0x8) + _0x37ec20(_0x5ad453._0x53850c) + new Date()[_0x37ec20(_0x5ad453._0x2b5a9c)]() + _0x37ec20(0x10c) + _0x355549 + _0x37ec20(_0x5ad453._0xaa2b18),
1737
1751
  '',
1738
- _0x39684d ? _0x45e3b7(_0x23f509._0x402013) + _0x39684d['content'] : _0x45e3b7(_0x23f509._0x2b7b7d) + _0x2e48d9['messageId'],
1752
+ _0x2c4afe ? _0x37ec20(0x1a7) + _0x2c4afe[_0x37ec20(_0x5ad453._0x14b122)] : 'Root\x20task\x20message\x20id:\x20' + _0xefd027['messageId'],
1739
1753
  '',
1740
- _0x45e3b7(0x297) + _0x592fb1,
1741
- _0x45e3b7(0x227)
1742
- ][_0x45e3b7(_0x23f509._0x217d54)]('\x0a'), _0x1db547 = await fetch(_0x1b888f['daemonLocalUrl'] + '/workers/deliver', {
1743
- 'method': _0x45e3b7(_0x23f509._0x4a46a6),
1744
- 'headers': { 'Content-Type': _0x45e3b7(_0x23f509._0x17e7d5) },
1745
- 'body': JSON[_0x45e3b7(0x2a4)]({
1746
- 'agent_id': _0x1b888f[_0x45e3b7(0x264)],
1747
- 'thread_target': _0x592fb1,
1754
+ _0x37ec20(0x212) + _0x2c375b,
1755
+ _0x37ec20(_0x5ad453._0x1f77d2)
1756
+ ]['join']('\x0a'), _0x447ed8 = await fetch(_0x1423f4[_0x37ec20(0x1f4)] + _0x37ec20(_0x5ad453._0x438c90), {
1757
+ 'method': _0x37ec20(0xf4),
1758
+ 'headers': { 'Content-Type': _0x37ec20(_0x5ad453._0x2c9f97) },
1759
+ 'body': JSON[_0x37ec20(_0x5ad453._0x130321)]({
1760
+ 'agent_id': _0x1423f4[_0x37ec20(_0x5ad453._0x248270)],
1761
+ 'thread_target': _0x2c375b,
1748
1762
  'spawn_packet': {
1749
- 'replyTarget': _0x592fb1,
1750
- ..._0x2e48d9[_0x45e3b7(0x287)] ? { 'taskId': _0x2e48d9[_0x45e3b7(0x287)] } : _0x2e48d9[_0x45e3b7(0x174)] != null ? { 'taskId': _0x45e3b7(_0x23f509._0x1ab230) + _0x2e48d9[_0x45e3b7(0x174)] } : {}
1763
+ 'replyTarget': _0x2c375b,
1764
+ ..._0xefd027[_0x37ec20(_0x5ad453._0x2f20cb)] ? { 'taskId': _0xefd027[_0x37ec20(0x12b)] } : _0xefd027[_0x37ec20(0xda)] != null ? { 'taskId': _0x37ec20(_0x5ad453._0x2be5d3) + _0xefd027[_0x37ec20(0xda)] } : {}
1751
1765
  },
1752
1766
  'payload': {
1753
- 'mode': 'user',
1754
- 'text': _0x5dd4f3
1767
+ 'mode': _0x37ec20(0x23c),
1768
+ 'text': _0x364bf6
1755
1769
  }
1756
1770
  })
1757
- }), _0x462e95 = await _0x1db547['json']();
1758
- if (!_0x462e95['ok'])
1759
- throw new Error(_0x462e95['error'] ?? 'worker\x20handoff\x20failed');
1771
+ }), _0x2e1acc = await _0x447ed8[_0x37ec20(_0x5ad453._0x3b4e8f)]();
1772
+ if (!_0x2e1acc['ok'])
1773
+ throw new Error(_0x2e1acc[_0x37ec20(_0x5ad453._0x31e2ec)] ?? 'worker\x20handoff\x20failed');
1760
1774
  return {
1761
1775
  'stopMain': !![],
1762
- 'threadTarget': _0x592fb1,
1763
- 'workerDisposition': _0x462e95['disposition'] === 'queued' ? _0x45e3b7(0x282) : _0x45e3b7(0x2d3),
1776
+ 'threadTarget': _0x2c375b,
1777
+ 'workerDisposition': _0x2e1acc[_0x37ec20(_0x5ad453._0x4b11a2)] === _0x37ec20(_0x5ad453._0x14228a) ? _0x37ec20(0x1f2) : _0x37ec20(_0x5ad453._0x435d06),
1764
1778
  'workerHandoff': !![],
1765
- 'workerSessionId': _0x462e95[_0x45e3b7(0x278)] ?? '',
1766
- 'executionMode': _0x45e3b7(_0x23f509._0x1e75e2)
1779
+ 'workerSessionId': _0x2e1acc[_0x37ec20(0x110)] ?? '',
1780
+ 'executionMode': _0x37ec20(0x1da)
1767
1781
  };
1768
1782
  }
1769
- async function _0x33c7aa() {
1770
- const _0x378c19 = _0x9c1d;
1771
- if (!_0x1b888f[_0x378c19(0x29c)] || !_0x1b888f[_0x378c19(_0x4dcf62._0x336148)] || _0x1b888f['workerMode'])
1783
+ async function _0x47f2d9() {
1784
+ const _0x56536a = _0x4210;
1785
+ if (!_0x1423f4[_0x56536a(_0x1deec9._0x8ad15b)] || !_0x1423f4[_0x56536a(0x201)] || _0x1423f4[_0x56536a(0x14a)])
1772
1786
  return null;
1773
1787
  try {
1774
- const _0x3804e3 = await fetch(_0x1b888f[_0x378c19(_0x4dcf62._0x12615c)] + _0x378c19(_0x4dcf62._0x36b555) + encodeURIComponent(_0x1b888f[_0x378c19(_0x4dcf62._0x336148)])), _0x3ad934 = await _0x3804e3[_0x378c19(_0x4dcf62._0x3e3add)]();
1775
- if (!_0x3ad934['ok'])
1788
+ const _0xf4e038 = await fetch(_0x1423f4[_0x56536a(_0x1deec9._0x8ad15b)] + _0x56536a(_0x1deec9._0x10570b) + encodeURIComponent(_0x1423f4[_0x56536a(_0x1deec9._0x438e14)])), _0x325ca6 = await _0xf4e038[_0x56536a(_0x1deec9._0x3163a7)]();
1789
+ if (!_0x325ca6['ok'])
1776
1790
  return null;
1777
- const _0x5265f2 = new Set();
1778
- for (const _0x1ca589 of _0x3ad934[_0x378c19(0x151)]) {
1779
- _0x1ca589[_0x378c19(0x2ad)] !== _0x378c19(_0x4dcf62._0x291ed4) && _0x1ca589[_0x378c19(0x2a2)] && _0x5265f2[_0x378c19(0x1cc)](_0x1ca589[_0x378c19(_0x4dcf62._0x35fba0)]);
1791
+ const _0x5506d8 = new Set();
1792
+ for (const _0x51fd7c of _0x325ca6['workers']) {
1793
+ _0x51fd7c[_0x56536a(0x12e)] !== _0x56536a(_0x1deec9._0x2fded8) && _0x51fd7c[_0x56536a(_0x1deec9._0x4bef18)] && _0x5506d8[_0x56536a(_0x1deec9._0xf2b9ba)](_0x51fd7c[_0x56536a(_0x1deec9._0x205aff)]);
1780
1794
  }
1781
- return _0x5265f2[_0x378c19(0x1b8)] > 0x0 ? _0x5265f2 : null;
1795
+ return _0x5506d8['size'] > 0x0 ? _0x5506d8 : null;
1782
1796
  } catch {
1783
1797
  return null;
1784
1798
  }
1785
1799
  }
1786
- const _0x53b1db = new Set([
1787
- _0x3e3605(_0xbcbba3._0x4231e7),
1788
- _0x3e3605(0x2bf),
1789
- _0x3e3605(_0xbcbba3._0x5626c4)
1800
+ const _0x36e7a8 = new Set([
1801
+ _0x3727a4(_0x1db53f._0x4ef7a1),
1802
+ 'idle',
1803
+ _0x3727a4(_0x1db53f._0x2e50f4)
1790
1804
  ]);
1791
- async function _0x3e22f1() {
1792
- const _0x1f9bbd = _0x3e3605;
1793
- if (!_0x1b888f[_0x1f9bbd(_0x37c7b1._0x211ef7)] || !_0x1b888f['agentId'] || _0x1b888f[_0x1f9bbd(0x286)])
1805
+ async function _0x13d77c() {
1806
+ const _0x10c13b = _0x3727a4;
1807
+ if (!_0x1423f4[_0x10c13b(0x1f4)] || !_0x1423f4[_0x10c13b(_0x16242b._0x1e65c0)] || _0x1423f4[_0x10c13b(0x14a)])
1794
1808
  return null;
1795
1809
  try {
1796
- const _0x4fe66c = await fetch(_0x1b888f[_0x1f9bbd(0x29c)] + _0x1f9bbd(0x2c1) + encodeURIComponent(_0x1b888f['agentId'])), _0x38b74a = await _0x4fe66c[_0x1f9bbd(0x1e2)]();
1797
- if (!_0x38b74a['ok'])
1810
+ const _0x3ffa58 = await fetch(_0x1423f4[_0x10c13b(0x1f4)] + '/workers/list?agent_id=' + encodeURIComponent(_0x1423f4['agentId'])), _0x39dcb7 = await _0x3ffa58[_0x10c13b(0x19e)]();
1811
+ if (!_0x39dcb7['ok'])
1798
1812
  return null;
1799
- const _0x1c28e0 = new Set();
1800
- for (const _0x14ab86 of _0x38b74a[_0x1f9bbd(_0x37c7b1._0x19770b)]) {
1801
- _0x53b1db['has'](_0x14ab86[_0x1f9bbd(0x2ad)]) && _0x14ab86[_0x1f9bbd(0x2a2)] && _0x1c28e0[_0x1f9bbd(_0x37c7b1._0x210959)](_0x14ab86[_0x1f9bbd(_0x37c7b1._0x86217d)]);
1813
+ const _0x27deb1 = new Set();
1814
+ for (const _0x19576a of _0x39dcb7[_0x10c13b(_0x16242b._0x49be13)]) {
1815
+ _0x36e7a8[_0x10c13b(0x1d8)](_0x19576a['status']) && _0x19576a[_0x10c13b(0x133)] && _0x27deb1[_0x10c13b(0x13c)](_0x19576a['thread_target']);
1802
1816
  }
1803
- return _0x1c28e0['size'] > 0x0 ? _0x1c28e0 : null;
1817
+ return _0x27deb1[_0x10c13b(_0x16242b._0x40ff58)] > 0x0 ? _0x27deb1 : null;
1804
1818
  } catch {
1805
1819
  return null;
1806
1820
  }
1807
1821
  }
1808
1822
  return {
1809
- async 'send_message'(_0x2c2797) {
1810
- const _0x35fc6c = _0x3e3605;
1811
- if (!_0x1b888f[_0x35fc6c(0x286)] && _0x1b888f[_0x35fc6c(0x260)] && _0x1b888f['daemonLocalUrl'] && _0x1b888f['agentId']) {
1812
- const _0x81ce3e = await _0x1b888f['client'][_0x35fc6c(0x1fb)](_0x2c2797[_0x35fc6c(_0x22cfaa._0x320472)]);
1813
- if (_0x81ce3e[_0x35fc6c(_0x22cfaa._0x50eee8)] && _0x81ce3e['threadId']) {
1814
- const _0x5f4491 = _0x81ce3e['task'][_0x35fc6c(_0x22cfaa._0x2dbbc6)] != null ? '#' + _0x81ce3e[_0x35fc6c(0x263)][_0x35fc6c(0x174)] : _0x35fc6c(_0x22cfaa._0x42fa79), _0x4550d5 = _0x81ce3e[_0x35fc6c(0x1a2)] != null ? _0x81ce3e[_0x35fc6c(_0x22cfaa._0x5927fe)] + ':t' + _0x81ce3e['threadNumber'] : _0x81ce3e[_0x35fc6c(0x232)] + ':' + _0x81ce3e[_0x35fc6c(0x2a9)][_0x35fc6c(_0x22cfaa._0xa59a4a)](0x0, 0x8), _0x10bf86 = await _0x3e22f1();
1815
- if (_0x10bf86?.[_0x35fc6c(_0x22cfaa._0x5c784d)](_0x4550d5))
1823
+ async 'send_message'(_0x467ba3) {
1824
+ const _0x5c9f80 = _0x3727a4;
1825
+ if (!_0x1423f4[_0x5c9f80(_0x1deb74._0x1166a4)] && _0x1423f4['workerModeEnabled'] && _0x1423f4[_0x5c9f80(_0x1deb74._0x16ec6d)] && _0x1423f4[_0x5c9f80(0x201)]) {
1826
+ const _0x129720 = await _0x1423f4[_0x5c9f80(_0x1deb74._0x1aebfd)][_0x5c9f80(0x182)](_0x467ba3[_0x5c9f80(_0x1deb74._0xa0cbca)]);
1827
+ if (_0x129720[_0x5c9f80(0x204)] && _0x129720[_0x5c9f80(_0x1deb74._0x42be42)]) {
1828
+ const _0x205530 = _0x129720['task'][_0x5c9f80(0xda)] != null ? '#' + _0x129720[_0x5c9f80(_0x1deb74._0xb7629f)][_0x5c9f80(_0x1deb74._0x3456f0)] : '(legacy)', _0x5e61aa = _0x129720[_0x5c9f80(0x1ac)] != null ? _0x129720[_0x5c9f80(_0x1deb74._0x593951)] + ':t' + _0x129720[_0x5c9f80(_0x1deb74._0x35dfef)] : _0x129720[_0x5c9f80(_0x1deb74._0x593951)] + ':' + _0x129720[_0x5c9f80(_0x1deb74._0x541ee8)][_0x5c9f80(0x23d)](0x0, 0x8), _0x413c80 = await _0x13d77c();
1829
+ if (_0x413c80?.['has'](_0x5e61aa))
1816
1830
  return [
1817
- 'Task\x20' + _0x5f4491 + _0x35fc6c(_0x22cfaa._0x49cc4f) + _0x4550d5 + _0x35fc6c(_0x22cfaa._0x28ccb0),
1818
- _0x35fc6c(0x1ef)
1819
- ][_0x35fc6c(_0x22cfaa._0x1bc9af)]('\x0a');
1820
- const _0x542cdc = [
1821
- '[target=' + _0x4550d5 + _0x35fc6c(0x19b) + new Date()['toISOString']() + _0x35fc6c(_0x22cfaa._0x4273e1),
1831
+ _0x5c9f80(_0x1deb74._0x19064a) + _0x205530 + _0x5c9f80(0x194) + _0x5e61aa + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
1832
+ _0x5c9f80(0x15d)
1833
+ ][_0x5c9f80(_0x1deb74._0x5c77ce)]('\x0a');
1834
+ const _0x297c9b = [
1835
+ _0x5c9f80(_0x1deb74._0x2f9b88) + _0x5e61aa + _0x5c9f80(0x13d) + new Date()[_0x5c9f80(_0x1deb74._0x1fee48)]() + _0x5c9f80(_0x1deb74._0x233ec3),
1822
1836
  '',
1823
- _0x35fc6c(_0x22cfaa._0x165ad2) + _0x2c2797['content'],
1824
- _0x35fc6c(_0x22cfaa._0x2ff4ef) + _0x5f4491 + '\x20(' + _0x81ce3e['task'][_0x35fc6c(_0x22cfaa._0x34bb9b)] + ')',
1825
- _0x35fc6c(0x297) + _0x4550d5,
1837
+ _0x5c9f80(_0x1deb74._0x5d327b) + _0x467ba3[_0x5c9f80(_0x1deb74._0xd3043c)],
1838
+ 'Task:\x20' + _0x205530 + '\x20(' + _0x129720[_0x5c9f80(_0x1deb74._0xb7629f)][_0x5c9f80(0x12b)] + ')',
1839
+ _0x5c9f80(0x212) + _0x5e61aa,
1826
1840
  'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
1827
- ][_0x35fc6c(0x1d1)]('\x0a'), _0x3cde54 = await fetch(_0x1b888f['daemonLocalUrl'] + _0x35fc6c(_0x22cfaa._0xcd7b82), {
1841
+ ][_0x5c9f80(_0x1deb74._0x5c77ce)]('\x0a'), _0x11a6cd = await fetch(_0x1423f4[_0x5c9f80(0x1f4)] + _0x5c9f80(_0x1deb74._0x4d1388), {
1828
1842
  'method': 'POST',
1829
- 'headers': { 'Content-Type': _0x35fc6c(_0x22cfaa._0x451e34) },
1830
- 'body': JSON[_0x35fc6c(_0x22cfaa._0x3d08f7)]({
1831
- 'agent_id': _0x1b888f[_0x35fc6c(0x264)],
1832
- 'thread_target': _0x4550d5,
1843
+ 'headers': { 'Content-Type': 'application/json' },
1844
+ 'body': JSON['stringify']({
1845
+ 'agent_id': _0x1423f4[_0x5c9f80(_0x1deb74._0x20af05)],
1846
+ 'thread_target': _0x5e61aa,
1833
1847
  'spawn_packet': {
1834
- 'replyTarget': _0x4550d5,
1835
- 'taskId': _0x81ce3e[_0x35fc6c(_0x22cfaa._0x10ffc1)][_0x35fc6c(_0x22cfaa._0xbdc636)]
1848
+ 'replyTarget': _0x5e61aa,
1849
+ 'taskId': _0x129720[_0x5c9f80(_0x1deb74._0x50616a)][_0x5c9f80(_0x1deb74._0x3a55c6)]
1836
1850
  },
1837
1851
  'payload': {
1838
- 'mode': _0x35fc6c(0x277),
1839
- 'text': _0x542cdc
1852
+ 'mode': _0x5c9f80(0x23c),
1853
+ 'text': _0x297c9b
1840
1854
  }
1841
1855
  })
1842
- }), _0x4ac87a = await _0x3cde54[_0x35fc6c(0x1e2)]();
1843
- if (!_0x4ac87a['ok'])
1844
- throw new Error(_0x4ac87a[_0x35fc6c(_0x22cfaa._0x2de0c5)] ?? _0x35fc6c(_0x22cfaa._0x40509b));
1856
+ }), _0xc5cbd2 = await _0x11a6cd[_0x5c9f80(_0x1deb74._0x401fe5)]();
1857
+ if (!_0xc5cbd2['ok'])
1858
+ throw new Error(_0xc5cbd2['error'] ?? _0x5c9f80(0x1ef));
1845
1859
  return [
1846
- _0x35fc6c(_0x22cfaa._0x3623dc) + _0x5f4491 + _0x35fc6c(0x2cb) + _0x4550d5 + '.\x20stopMain=true\x20executionMode=worker',
1847
- _0x35fc6c(_0x22cfaa._0x3c4768) + (_0x4ac87a[_0x35fc6c(_0x22cfaa._0x4de521)] === 'queued' ? _0x35fc6c(_0x22cfaa._0x13ca2f) : 'started') + '.',
1848
- _0x35fc6c(0x24c)
1849
- ][_0x35fc6c(_0x22cfaa._0x1b719b)]('\x0a');
1860
+ 'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x205530 + _0x5c9f80(0x194) + _0x5e61aa + _0x5c9f80(_0x1deb74._0x528fa1),
1861
+ _0x5c9f80(_0x1deb74._0x2d78e6) + (_0xc5cbd2['disposition'] === _0x5c9f80(0x1f2) ? 'queued' : 'started') + '.',
1862
+ _0x5c9f80(0x1b2)
1863
+ ][_0x5c9f80(0x172)]('\x0a');
1850
1864
  }
1851
1865
  }
1852
- const _0x23cb12 = await _0x1b888f[_0x35fc6c(0x1a6)][_0x35fc6c(0x15d)]({
1853
- 'attachmentIds': _0x2c2797[_0x35fc6c(_0x22cfaa._0x367fbf)],
1854
- 'content': _0x2c2797['content'],
1855
- 'target': _0x2c2797[_0x35fc6c(0x232)],
1856
- 'visibility': _0x2c2797[_0x35fc6c(_0x22cfaa._0x39c5d4)]
1866
+ const _0xcf96a = await _0x1423f4[_0x5c9f80(0x167)][_0x5c9f80(_0x1deb74._0x735711)]({
1867
+ 'attachmentIds': _0x467ba3[_0x5c9f80(0x1a3)],
1868
+ 'content': _0x467ba3[_0x5c9f80(0x202)],
1869
+ 'target': _0x467ba3[_0x5c9f80(_0x1deb74._0x2f9d06)],
1870
+ 'visibility': _0x467ba3[_0x5c9f80(0x111)]
1857
1871
  });
1858
- return _0x35fc6c(_0x22cfaa._0x15c3af) + _0x2c2797[_0x35fc6c(_0x22cfaa._0x5927fe)] + '.\x20Message\x20ID:\x20' + _0x23cb12[_0x35fc6c(_0x22cfaa._0x35033e)];
1872
+ return _0x5c9f80(_0x1deb74._0x3e8485) + _0x467ba3['target'] + _0x5c9f80(_0x1deb74._0x4eab13) + _0xcf96a['messageId'];
1859
1873
  },
1860
1874
  async 'check_messages'() {
1861
- const _0x349d9e = _0x3e3605, _0x35a29f = await _0x1b888f[_0x349d9e(0x1a6)][_0x349d9e(0x284)]();
1862
- if (!_0x1b888f['workerMode']) {
1863
- const _0x468e23 = await _0x33c7aa();
1864
- if (_0x468e23)
1865
- return formatCheckMessages(_0x35a29f['messages'][_0x349d9e(_0xf01c8e._0x21e3e4)](_0x152648 => !_0x468e23[_0x349d9e(0x213)](_0x152648[_0x349d9e(0x232)])));
1875
+ const _0x62dd63 = _0x3727a4, _0x77a0df = await _0x1423f4[_0x62dd63(0x167)][_0x62dd63(0xd5)]();
1876
+ if (!_0x1423f4['workerMode']) {
1877
+ const _0x1376b2 = await _0x47f2d9();
1878
+ if (_0x1376b2)
1879
+ return formatCheckMessages(_0x77a0df[_0x62dd63(_0x2b9617._0x47917e)]['filter'](_0x550747 => !_0x1376b2[_0x62dd63(0x1d8)](_0x550747['target'])));
1866
1880
  }
1867
- return formatCheckMessages(_0x35a29f[_0x349d9e(_0xf01c8e._0x19b1a5)]);
1881
+ return formatCheckMessages(_0x77a0df[_0x62dd63(_0x2b9617._0x47917e)]);
1868
1882
  },
1869
- async 'read_history'(_0x1d2f5e) {
1870
- const _0x128d7a = _0x3e3605, _0x3ec9c3 = await _0x1b888f[_0x128d7a(0x1a6)][_0x128d7a(0x2c3)](_0x1d2f5e);
1871
- return formatHistory(_0x3ec9c3);
1883
+ async 'read_history'(_0x3aef81) {
1884
+ const _0x9f5c4c = _0x3727a4, _0x5563d6 = await _0x1423f4[_0x9f5c4c(0x167)][_0x9f5c4c(_0x298ff5._0x1feda4)](_0x3aef81);
1885
+ return formatHistory(_0x5563d6);
1872
1886
  },
1873
1887
  async 'list_server'() {
1874
- const _0x2850c7 = _0x3e3605, _0x378610 = await _0x1b888f[_0x2850c7(0x1a6)][_0x2850c7(_0x162343._0x1f1a2e)]();
1875
- return formatServerDirectory(_0x378610);
1888
+ const _0x1584fd = _0x3727a4, _0x349bcf = await _0x1423f4['client'][_0x1584fd(_0x1ae460._0x57a2ab)]();
1889
+ return formatServerDirectory(_0x349bcf);
1876
1890
  },
1877
- async 'list_tasks'(_0x3c1ef4) {
1878
- const _0xbef3e7 = _0x3e3605, _0x12937b = await _0x1b888f[_0xbef3e7(0x1a6)]['listTasks'](_0x3c1ef4);
1879
- let _0x19caa6;
1880
- if (_0x1b888f[_0xbef3e7(_0x122b8a._0x54ba02)] && _0x1b888f[_0xbef3e7(_0x122b8a._0x5a5dc2)])
1891
+ async 'list_tasks'(_0x5e988f) {
1892
+ const _0x292728 = _0x3727a4, _0x5e724c = await _0x1423f4[_0x292728(0x167)][_0x292728(0xdd)](_0x5e988f);
1893
+ let _0x1786c6;
1894
+ if (_0x1423f4['daemonLocalUrl'] && _0x1423f4['agentId'])
1881
1895
  try {
1882
- const _0x300634 = await fetch(_0x1b888f['daemonLocalUrl'] + _0xbef3e7(0x2c1) + encodeURIComponent(_0x1b888f[_0xbef3e7(_0x122b8a._0x50fd5d)])), _0x2dee2f = await _0x300634[_0xbef3e7(_0x122b8a._0x56f697)]();
1883
- if (_0x2dee2f['ok']) {
1884
- const _0x450728 = _0x3c1ef4[_0xbef3e7(0x21f)] + ':';
1885
- _0x19caa6 = new Set();
1886
- for (const _0x49e04d of _0x2dee2f[_0xbef3e7(0x151)]) {
1887
- if (_0x49e04d[_0xbef3e7(_0x122b8a._0x3b38dc)] === _0xbef3e7(0x1db))
1896
+ const _0x492d3a = await fetch(_0x1423f4[_0x292728(_0x5f4dc5._0x56ad80)] + _0x292728(0x17e) + encodeURIComponent(_0x1423f4['agentId'])), _0x5c7353 = await _0x492d3a[_0x292728(0x19e)]();
1897
+ if (_0x5c7353['ok']) {
1898
+ const _0x493cc3 = _0x5e988f[_0x292728(_0x5f4dc5._0x1080ad)] + ':';
1899
+ _0x1786c6 = new Set();
1900
+ for (const _0x4d708f of _0x5c7353[_0x292728(_0x5f4dc5._0x21ed2d)]) {
1901
+ if (_0x4d708f['status'] === _0x292728(0x143))
1888
1902
  continue;
1889
- if (_0x49e04d[_0xbef3e7(0x2a2)]?.[_0xbef3e7(0x1a4)](_0x450728)) {
1890
- const _0x5f4762 = _0x49e04d[_0xbef3e7(_0x122b8a._0x404889)]['slice'](_0x450728['length']), _0x891a08 = _0x12937b['tasks'][_0xbef3e7(0x1ff)](_0x19e4e5 => _0x19e4e5[_0xbef3e7(0x276)]?.['startsWith'](_0x5f4762) === !![]);
1891
- if (_0x891a08?.[_0xbef3e7(0x174)] != null) {
1892
- _0x19caa6[_0xbef3e7(_0x122b8a._0x3d0d68)](_0x891a08[_0xbef3e7(0x174)]);
1903
+ if (_0x4d708f[_0x292728(_0x5f4dc5._0x3320d9)]?.['startsWith'](_0x493cc3)) {
1904
+ const _0x3344cc = _0x4d708f[_0x292728(_0x5f4dc5._0x3320d9)][_0x292728(0x23d)](_0x493cc3[_0x292728(0x146)]), _0x34dc85 = _0x5e724c[_0x292728(_0x5f4dc5._0x47c8bc)][_0x292728(0x230)](_0xafe803 => _0xafe803['messageId']?.[_0x292728(0x1c1)](_0x3344cc) === !![]);
1905
+ if (_0x34dc85?.[_0x292728(_0x5f4dc5._0x5714e7)] != null) {
1906
+ _0x1786c6['add'](_0x34dc85[_0x292728(_0x5f4dc5._0x5714e7)]);
1893
1907
  continue;
1894
1908
  }
1895
1909
  }
1896
- if (_0x49e04d[_0xbef3e7(0x1b0)]) {
1897
- const _0x19fb6f = _0x12937b[_0xbef3e7(_0x122b8a._0x2b4371)]['find'](_0x4c2897 => _0x4c2897[_0xbef3e7(0x287)] === _0x49e04d[_0xbef3e7(0x1b0)]);
1898
- _0x19fb6f?.[_0xbef3e7(_0x122b8a._0x5c4c76)] != null && _0x19caa6['add'](_0x19fb6f[_0xbef3e7(_0x122b8a._0x5c4c76)]);
1910
+ if (_0x4d708f[_0x292728(_0x5f4dc5._0x3c4980)]) {
1911
+ const _0x54ed4d = _0x5e724c[_0x292728(_0x5f4dc5._0xd34cc8)][_0x292728(0x230)](_0x377a8b => _0x377a8b[_0x292728(0x12b)] === _0x4d708f['task_id']);
1912
+ _0x54ed4d?.[_0x292728(0xda)] != null && _0x1786c6[_0x292728(0x13c)](_0x54ed4d['taskNumber']);
1899
1913
  }
1900
1914
  }
1901
1915
  }
1902
1916
  } catch {
1903
1917
  }
1904
- return formatTaskList(_0x12937b[_0xbef3e7(_0x122b8a._0x345177)], _0x19caa6);
1918
+ return formatTaskList(_0x5e724c[_0x292728(_0x5f4dc5._0x4a718a)], _0x1786c6);
1905
1919
  },
1906
- async 'create_tasks'(_0x3a0504) {
1907
- const _0x46a736 = _0x3e3605;
1908
- _0x3feae9('create_tasks', _0x3a0504[_0x46a736(0x21f)]);
1909
- const _0xe12b0b = await _0x1b888f[_0x46a736(0x1a6)][_0x46a736(_0x312df0._0x3c1d24)](_0x3a0504);
1910
- return formatCreatedTasks(_0xe12b0b[_0x46a736(0x153)]);
1920
+ async 'create_tasks'(_0x8ed7bc) {
1921
+ const _0xbbd311 = _0x3727a4;
1922
+ _0x5af70d(_0xbbd311(_0x1ab349._0x2b2aa8), _0x8ed7bc['channel']);
1923
+ const _0x4bce9e = await _0x1423f4['client'][_0xbbd311(0x1d9)](_0x8ed7bc);
1924
+ return formatCreatedTasks(_0x4bce9e['tasks']);
1911
1925
  },
1912
- async 'claim_tasks'(_0x352d7f) {
1913
- const _0x29d3a7 = {
1914
- _0x2c46f8: 0x276,
1915
- _0x19f8e2: 0x24e,
1916
- _0x5a9225: 0x21b
1917
- }, _0x2ffe9e = _0x3e3605;
1918
- if (_0x1b888f['workerMode']) {
1919
- _0x3feae9(_0x2ffe9e(_0x2f5f43._0x2682ee), _0x352d7f[_0x2ffe9e(0x21f)]);
1920
- if (_0x352d7f[_0x2ffe9e(_0x2f5f43._0x5ac758)] && _0x352d7f['message_ids']['length'] > 0x0)
1921
- throw new Error(_0x2ffe9e(0x28c));
1922
- if (!_0x352d7f[_0x2ffe9e(0x2b3)] || _0x352d7f[_0x2ffe9e(0x2b3)][_0x2ffe9e(_0x2f5f43._0x31ad97)] === 0x0)
1923
- throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
1926
+ async 'claim_tasks'(_0x3e35cc) {
1927
+ const _0x4756a5 = {
1928
+ _0x327087: 0x15e,
1929
+ _0x483de7: 0x15e,
1930
+ _0x31cc88: 0x12b,
1931
+ _0x888b6e: 0x1ac
1932
+ }, _0x40ad70 = _0x3727a4;
1933
+ if (_0x1423f4[_0x40ad70(0x14a)]) {
1934
+ _0x5af70d(_0x40ad70(0x21c), _0x3e35cc['channel']);
1935
+ if (_0x3e35cc[_0x40ad70(0x1f0)] && _0x3e35cc[_0x40ad70(0x1f0)][_0x40ad70(_0x17001a._0x114449)] > 0x0)
1936
+ throw new Error(_0x40ad70(0x1a5));
1937
+ if (!_0x3e35cc['subtask_numbers'] || _0x3e35cc[_0x40ad70(_0x17001a._0x87ebca)]['length'] === 0x0)
1938
+ throw new Error(_0x40ad70(_0x17001a._0x54ce4d));
1924
1939
  }
1925
- const _0x4afb21 = await _0x1b888f['client'][_0x2ffe9e(0x1aa)](_0x352d7f), _0x12bb0f = await Promise[_0x2ffe9e(_0x2f5f43._0x4ee1d1)](_0x4afb21['results'][_0x2ffe9e(0x209)](async _0x3bc685 => {
1926
- const _0x553aae = _0x2ffe9e;
1927
- if (!_0x3bc685[_0x553aae(0x155)] || !_0x3bc685[_0x553aae(_0x29d3a7._0x2c46f8)])
1928
- return _0x3bc685;
1940
+ const _0x207bc7 = await _0x1423f4[_0x40ad70(_0x17001a._0x5ed3c5)][_0x40ad70(_0x17001a._0x2bffcd)](_0x3e35cc), _0x2825d1 = await Promise[_0x40ad70(_0x17001a._0x2c10c7)](_0x207bc7[_0x40ad70(0x1fd)][_0x40ad70(_0x17001a._0x8f27f8)](async _0x4dae3e => {
1941
+ const _0x149052 = _0x40ad70;
1942
+ if (!_0x4dae3e[_0x149052(0x21b)] || !_0x4dae3e[_0x149052(_0x4756a5._0x327087)])
1943
+ return _0x4dae3e;
1929
1944
  try {
1930
- const _0x3695ee = await _0x123bae({
1931
- 'channel': _0x352d7f['channel'],
1932
- 'messageId': _0x3bc685['messageId'],
1933
- 'taskId': _0x3bc685[_0x553aae(0x287)],
1934
- 'taskNumber': _0x3bc685['taskNumber'],
1935
- 'threadNumber': _0x3bc685['threadNumber']
1945
+ const _0x4e7f75 = await _0xc552ae({
1946
+ 'channel': _0x3e35cc[_0x149052(0xba)],
1947
+ 'messageId': _0x4dae3e[_0x149052(_0x4756a5._0x483de7)],
1948
+ 'taskId': _0x4dae3e[_0x149052(_0x4756a5._0x31cc88)],
1949
+ 'taskNumber': _0x4dae3e['taskNumber'],
1950
+ 'threadNumber': _0x4dae3e[_0x149052(_0x4756a5._0x888b6e)]
1936
1951
  });
1937
- return _0x3695ee ? {
1938
- ..._0x3bc685,
1939
- ..._0x3695ee
1940
- } : _0x3bc685;
1941
- } catch (_0x30ac2e) {
1952
+ return _0x4e7f75 ? {
1953
+ ..._0x4dae3e,
1954
+ ..._0x4e7f75
1955
+ } : _0x4dae3e;
1956
+ } catch (_0xf9fdcd) {
1942
1957
  return {
1943
- ..._0x3bc685,
1944
- 'workerHandoffError': _0x30ac2e instanceof Error ? _0x30ac2e[_0x553aae(_0x29d3a7._0x19f8e2)] : _0x553aae(_0x29d3a7._0x5a9225)
1958
+ ..._0x4dae3e,
1959
+ 'workerHandoffError': _0xf9fdcd instanceof Error ? _0xf9fdcd['message'] : _0x149052(0x10f)
1945
1960
  };
1946
1961
  }
1947
1962
  }));
1948
- return formatClaimTaskResults(_0x12bb0f);
1963
+ return formatClaimTaskResults(_0x2825d1);
1949
1964
  },
1950
- async 'unclaim_task'(_0x51722f) {
1951
- const _0x500ed0 = _0x3e3605;
1952
- if (_0x1b888f[_0x500ed0(0x286)]) {
1953
- _0x3feae9(_0x500ed0(0x188), _0x51722f[_0x500ed0(0x21f)]);
1954
- if (_0x51722f[_0x500ed0(0x243)] == null)
1955
- throw new Error(_0x500ed0(0x17f));
1965
+ async 'unclaim_task'(_0x39e5b1) {
1966
+ const _0x759094 = _0x3727a4;
1967
+ if (_0x1423f4['workerMode']) {
1968
+ _0x5af70d('unclaim_task', _0x39e5b1[_0x759094(_0x5c01d4._0x13446f)]);
1969
+ if (_0x39e5b1[_0x759094(_0x5c01d4._0x4034ee)] == null)
1970
+ throw new Error(_0x759094(_0x5c01d4._0x3a2ac5));
1956
1971
  }
1957
- const _0x52ebf8 = await _0x1b888f[_0x500ed0(_0x52b962._0x5af7c3)][_0x500ed0(_0x52b962._0x203082)](_0x51722f);
1958
- return formatUnclaimTaskResult(_0x52ebf8);
1972
+ const _0x2f1d7b = await _0x1423f4['client'][_0x759094(0x247)](_0x39e5b1);
1973
+ return formatUnclaimTaskResult(_0x2f1d7b);
1959
1974
  },
1960
- async 'update_task_status'(_0x4ab8e9) {
1961
- const _0x558e36 = _0x3e3605;
1962
- _0x3feae9(_0x558e36(_0x33d330._0x320866), _0x4ab8e9[_0x558e36(0x21f)]);
1963
- const _0x27a099 = await _0x1b888f[_0x558e36(0x1a6)][_0x558e36(_0x33d330._0x164d63)](_0x4ab8e9);
1964
- return formatUpdateTaskStatusResult(_0x27a099);
1975
+ async 'update_task_status'(_0x741793) {
1976
+ const _0x534446 = _0x3727a4;
1977
+ _0x5af70d(_0x534446(_0x2063b0._0x3953e6), _0x741793[_0x534446(0xba)]);
1978
+ const _0xb3ddc6 = await _0x1423f4[_0x534446(_0x2063b0._0x4c7f4d)][_0x534446(0x123)](_0x741793);
1979
+ return formatUpdateTaskStatusResult(_0xb3ddc6);
1965
1980
  },
1966
- async 'upload_file'(_0x2052a5) {
1967
- const _0x2591c3 = _0x3e3605, _0x26d1cc = await _0x1b888f[_0x2591c3(0x1cb)](_0x2052a5[_0x2591c3(_0xcc22ab._0x4faa6a)]), {
1968
- sizeBytes: _0x5ccb99,
1969
- ..._0x46a981
1970
- } = _0x26d1cc, _0x1c69a6 = await _0x1b888f['client'][_0x2591c3(0x237)]({
1971
- 'channel': _0x2052a5[_0x2591c3(0x21f)],
1972
- ..._0x46a981
1981
+ async 'upload_file'(_0x4d7766) {
1982
+ const _0xce5a6a = _0x3727a4, _0x4193b3 = await _0x1423f4['uploadPreparer'](_0x4d7766[_0xce5a6a(_0x38e71d._0xb40706)]), {
1983
+ sizeBytes: _0x1e0d9d,
1984
+ ..._0x3663d9
1985
+ } = _0x4193b3, _0xab27f4 = await _0x1423f4['client'][_0xce5a6a(_0x38e71d._0x225744)]({
1986
+ 'channel': _0x4d7766[_0xce5a6a(0xba)],
1987
+ ..._0x3663d9
1973
1988
  });
1974
- return formatUploadResult(_0x1c69a6);
1989
+ return formatUploadResult(_0xab27f4);
1975
1990
  },
1976
- async 'view_file'(_0x240935) {
1977
- const _0x169262 = _0x3e3605, _0x2f67be = await _0x1b888f[_0x169262(0x2cd)][_0x169262(0x239)](_0x240935[_0x169262(0x16c)]);
1978
- if (_0x2f67be)
1979
- return formatViewFileResult(_0x2f67be, !![]);
1980
- const _0x14d3a7 = await _0x1b888f[_0x169262(0x1a6)]['downloadAttachment'](_0x240935[_0x169262(0x16c)]), _0x114e7d = await _0x1b888f[_0x169262(0x2cd)][_0x169262(_0x8ee56e._0x12fa53)]({
1981
- 'attachmentId': _0x240935[_0x169262(0x16c)],
1982
- 'contentType': _0x14d3a7['contentType'],
1983
- 'data': _0x14d3a7['data'],
1984
- 'originalFilename': _0x14d3a7[_0x169262(0x1af)]
1991
+ async 'view_file'(_0x51ddfb) {
1992
+ const _0x1de03f = _0x3727a4, _0x571f54 = await _0x1423f4['attachmentCache']['findCachedPath'](_0x51ddfb[_0x1de03f(0x19b)]);
1993
+ if (_0x571f54)
1994
+ return formatViewFileResult(_0x571f54, !![]);
1995
+ const _0x57e57c = await _0x1423f4[_0x1de03f(0x167)][_0x1de03f(0x117)](_0x51ddfb[_0x1de03f(_0x376121._0x100aa6)]), _0xed9b90 = await _0x1423f4[_0x1de03f(_0x376121._0x3b5019)][_0x1de03f(0x213)]({
1996
+ 'attachmentId': _0x51ddfb[_0x1de03f(0x19b)],
1997
+ 'contentType': _0x57e57c[_0x1de03f(_0x376121._0x3e832f)],
1998
+ 'data': _0x57e57c['data'],
1999
+ 'originalFilename': _0x57e57c['originalFilename']
1985
2000
  });
1986
- return formatViewFileResult(_0x114e7d, ![]);
2001
+ return formatViewFileResult(_0xed9b90, ![]);
1987
2002
  },
1988
- async 'get_worker_status'(_0x1be764) {
1989
- const _0x562f0d = _0x3e3605;
1990
- if (!_0x1b888f[_0x562f0d(0x29c)])
1991
- return _0x562f0d(0x187);
1992
- const _0x17746a = await fetch(_0x1b888f[_0x562f0d(0x29c)] + _0x562f0d(_0x4a6ae1._0x4cd417) + encodeURIComponent(_0x1be764['work_key'])), _0x20ee5c = await _0x17746a[_0x562f0d(0x1e2)]();
1993
- if (!_0x20ee5c['ok'])
1994
- return _0x562f0d(0x1d2) + _0x1be764['work_key'] + '\x22\x20not\x20found';
1995
- return _0x562f0d(_0x4a6ae1._0x1fbc40) + _0x1be764[_0x562f0d(_0x4a6ae1._0x374e66)] + _0x562f0d(0x2d6) + _0x20ee5c[_0x562f0d(0x2ad)];
2003
+ async 'get_worker_status'(_0x2eaa6c) {
2004
+ const _0x588873 = _0x3727a4;
2005
+ if (!_0x1423f4[_0x588873(0x1f4)])
2006
+ return _0x588873(_0x253e2f._0x1c5026);
2007
+ const _0x1dc2be = await fetch(_0x1423f4[_0x588873(0x1f4)] + _0x588873(_0x253e2f._0x2540fa) + encodeURIComponent(_0x2eaa6c[_0x588873(_0x253e2f._0x2cb4a2)])), _0x1c122d = await _0x1dc2be[_0x588873(_0x253e2f._0x6a8d90)]();
2008
+ if (!_0x1c122d['ok'])
2009
+ return _0x588873(_0x253e2f._0x58d0a4) + _0x2eaa6c['work_key'] + _0x588873(0x122);
2010
+ return _0x588873(_0x253e2f._0x3110ac) + _0x2eaa6c[_0x588873(_0x253e2f._0x5cd365)] + _0x588873(0x1e7) + _0x1c122d[_0x588873(0x12e)];
1996
2011
  },
1997
- async 'park_worker'(_0x5e36b1) {
1998
- const _0x2bedfe = _0x3e3605;
1999
- if (!_0x1b888f['daemonLocalUrl'])
2000
- return _0x2bedfe(0x187);
2001
- const _0x321172 = await fetch(_0x1b888f['daemonLocalUrl'] + _0x2bedfe(0x2da), {
2002
- 'method': 'POST',
2003
- 'headers': { 'Content-Type': _0x2bedfe(0x1b7) },
2004
- 'body': JSON[_0x2bedfe(_0x4e3da4._0x2f57e3)]({ 'work_key': _0x5e36b1[_0x2bedfe(0x202)] })
2005
- }), _0x408207 = await _0x321172[_0x2bedfe(_0x4e3da4._0x2b32bd)]();
2006
- if (!_0x408207['ok'])
2007
- throw new Error(_0x408207[_0x2bedfe(_0x4e3da4._0x43982e)] ?? _0x2bedfe(_0x4e3da4._0xc30f7d));
2008
- return _0x2bedfe(_0x4e3da4._0x1e592b) + _0x5e36b1['work_key'] + _0x2bedfe(_0x4e3da4._0x2b5679);
2012
+ async 'park_worker'(_0x1543cf) {
2013
+ const _0x3d758e = _0x3727a4;
2014
+ if (!_0x1423f4['daemonLocalUrl'])
2015
+ return _0x3d758e(0xd8);
2016
+ const _0x2aea52 = await fetch(_0x1423f4[_0x3d758e(0x1f4)] + _0x3d758e(0xcd), {
2017
+ 'method': _0x3d758e(0xf4),
2018
+ 'headers': { 'Content-Type': _0x3d758e(_0x4313a3._0x26f4ee) },
2019
+ 'body': JSON['stringify']({ 'work_key': _0x1543cf[_0x3d758e(0x11e)] })
2020
+ }), _0x17ec14 = await _0x2aea52[_0x3d758e(0x19e)]();
2021
+ if (!_0x17ec14['ok'])
2022
+ throw new Error(_0x17ec14[_0x3d758e(0x14d)] ?? 'park_worker\x20failed');
2023
+ return _0x3d758e(_0x4313a3._0x3ad986) + _0x1543cf[_0x3d758e(_0x4313a3._0x3c13ae)] + _0x3d758e(_0x4313a3._0x282fa5);
2009
2024
  },
2010
- async 'mark_waiting_input'(_0xc99844) {
2011
- const _0x37fb80 = _0x3e3605;
2012
- if (!_0x1b888f[_0x37fb80(_0x401425._0xc2aded)] || !_0x1b888f[_0x37fb80(0x264)])
2013
- return _0x37fb80(_0x401425._0x44f927);
2014
- const _0x39ea63 = await fetch(_0x1b888f['daemonLocalUrl'] + _0x37fb80(0x18b), {
2025
+ async 'mark_waiting_input'(_0xa6987e) {
2026
+ const _0x16b204 = _0x3727a4;
2027
+ if (!_0x1423f4[_0x16b204(_0x1d03c._0x33f496)] || !_0x1423f4[_0x16b204(0x201)])
2028
+ return _0x16b204(_0x1d03c._0x594420);
2029
+ const _0xf7b9fa = await fetch(_0x1423f4[_0x16b204(0x1f4)] + _0x16b204(0x13b), {
2015
2030
  'method': 'POST',
2016
- 'headers': { 'Content-Type': _0x37fb80(_0x401425._0x456396) },
2017
- 'body': JSON[_0x37fb80(0x2a4)]({
2018
- 'work_key': _0xc99844[_0x37fb80(_0x401425._0xb7b06f)],
2019
- 'agent_id': _0x1b888f[_0x37fb80(_0x401425._0x50191c)]
2031
+ 'headers': { 'Content-Type': _0x16b204(0xdc) },
2032
+ 'body': JSON[_0x16b204(_0x1d03c._0x312b4c)]({
2033
+ 'work_key': _0xa6987e[_0x16b204(0x11e)],
2034
+ 'agent_id': _0x1423f4['agentId']
2020
2035
  })
2021
- }), _0x48f595 = await _0x39ea63[_0x37fb80(0x1e2)]();
2022
- if (!_0x48f595['ok'])
2023
- throw new Error(_0x48f595['error'] ?? _0x37fb80(_0x401425._0x4a6cef));
2024
- return _0x37fb80(0x1d2) + _0xc99844['work_key'] + _0x37fb80(_0x401425._0x41fe60);
2036
+ }), _0x25060c = await _0xf7b9fa[_0x16b204(_0x1d03c._0x1efdbb)]();
2037
+ if (!_0x25060c['ok'])
2038
+ throw new Error(_0x25060c['error'] ?? _0x16b204(0xf0));
2039
+ return _0x16b204(0x1dc) + _0xa6987e[_0x16b204(_0x1d03c._0x4e0410)] + _0x16b204(_0x1d03c._0x4757ef);
2025
2040
  },
2026
- async 'escalate_to_main'(_0x23fc1b) {
2027
- const _0x5b1d5e = _0x3e3605;
2028
- if (!_0x1b888f[_0x5b1d5e(_0x2dfc9d._0x1f1b5f)])
2029
- return _0x5b1d5e(_0x2dfc9d._0x286181);
2030
- const _0x38fb68 = await fetch(_0x1b888f[_0x5b1d5e(0x29c)] + _0x5b1d5e(0x1c7), {
2031
- 'method': _0x5b1d5e(_0x2dfc9d._0x1ed248),
2032
- 'headers': { 'Content-Type': 'application/json' },
2033
- 'body': JSON[_0x5b1d5e(0x2a4)]({
2034
- 'work_key': _0x23fc1b[_0x5b1d5e(_0x2dfc9d._0x5c7ac2)],
2035
- 'reason': _0x23fc1b['reason']
2041
+ async 'escalate_to_main'(_0x179c6d) {
2042
+ const _0x192d95 = _0x3727a4;
2043
+ if (!_0x1423f4[_0x192d95(_0x3e4170._0x54aba4)])
2044
+ return 'Worker\x20features\x20not\x20available';
2045
+ const _0x11d1c7 = await fetch(_0x1423f4['daemonLocalUrl'] + _0x192d95(0x1f5), {
2046
+ 'method': _0x192d95(_0x3e4170._0x6c3ce),
2047
+ 'headers': { 'Content-Type': _0x192d95(0xdc) },
2048
+ 'body': JSON['stringify']({
2049
+ 'work_key': _0x179c6d[_0x192d95(0x11e)],
2050
+ 'reason': _0x179c6d[_0x192d95(0x1aa)]
2036
2051
  })
2037
- }), _0x30b5cb = await _0x38fb68[_0x5b1d5e(_0x2dfc9d._0x262db5)]();
2038
- if (!_0x30b5cb['ok'])
2039
- throw new Error(_0x30b5cb[_0x5b1d5e(0x226)] ?? _0x5b1d5e(_0x2dfc9d._0x3dda70));
2040
- return _0x5b1d5e(0x1c1) + _0x23fc1b[_0x5b1d5e(0x272)];
2052
+ }), _0x1bec12 = await _0x11d1c7['json']();
2053
+ if (!_0x1bec12['ok'])
2054
+ throw new Error(_0x1bec12[_0x192d95(_0x3e4170._0x2d9516)] ?? _0x192d95(_0x3e4170._0x10486d));
2055
+ return _0x192d95(0x236) + _0x179c6d[_0x192d95(0x1aa)];
2041
2056
  }
2042
2057
  };
2043
2058
  }
2044
- function textResult(_0x29ac16, _0x211c81 = ![]) {
2045
- const _0x39299a = { _0x20d024: 0x1ab }, _0x453d12 = _0x1e865e;
2059
+ function textResult(_0x1ada2c, _0x3a528c = ![]) {
2060
+ const _0x459bb1 = _0x77ce4b;
2046
2061
  return {
2047
2062
  'content': [{
2048
- 'type': _0x453d12(_0x39299a._0x20d024),
2049
- 'text': _0x29ac16
2063
+ 'type': _0x459bb1(0x242),
2064
+ 'text': _0x1ada2c
2050
2065
  }],
2051
- ..._0x211c81 ? { 'isError': !![] } : {}
2066
+ ..._0x3a528c ? { 'isError': !![] } : {}
2052
2067
  };
2053
2068
  }
2054
- async function registerChatBridgeTools(_0x13d479, _0x1daf41, _0x29ca4a) {
2055
- const _0x33b012 = {
2056
- _0x33e347: 0x21d,
2057
- _0x44a2b8: 0x1bc,
2058
- _0x35aeec: 0x24a,
2059
- _0x4369be: 0x21e,
2060
- _0x439ad7: 0x24f,
2061
- _0x396beb: 0x23d,
2062
- _0x350268: 0x21c,
2063
- _0x504234: 0x2d4,
2064
- _0x398036: 0x150,
2065
- _0x4104b8: 0x1d3,
2066
- _0x31444b: 0x1bc,
2067
- _0x317743: 0x1d7,
2068
- _0x1b8576: 0x18a,
2069
- _0xbe0c4b: 0x2d9,
2070
- _0x101023: 0x21c,
2071
- _0x325056: 0x1bc,
2072
- _0x36e994: 0x18a,
2073
- _0x589ae1: 0x18a,
2074
- _0x22ac48: 0x188,
2075
- _0x5973f3: 0x18a,
2076
- _0x2a2594: 0x1e9,
2077
- _0x54e9f6: 0x18a,
2078
- _0x57370e: 0x219,
2079
- _0x2086eb: 0x255,
2080
- _0x13c02f: 0x1bc,
2081
- _0x4a3d7d: 0x24f,
2082
- _0x15914b: 0x1bc,
2083
- _0x3f77a2: 0x1f8,
2084
- _0x4472a0: 0x24f,
2085
- _0x50d9e0: 0x1d8,
2086
- _0x2a7ca7: 0x24f,
2087
- _0x323e1: 0x1e0,
2088
- _0x4e1df2: 0x1bc
2089
- }, _0x8f2968 = {
2090
- _0xbe6d32: 0x1e0,
2091
- _0x5673a1: 0x24e
2092
- }, _0x282c90 = {
2093
- _0x319ca6: 0x24e,
2094
- _0x25ed8: 0x23f
2095
- }, _0x124c34 = { _0x5c3813: 0x29b }, _0x3acd2b = {
2096
- _0x433a77: 0x288,
2097
- _0x504aac: 0x24e
2098
- }, _0x238ffb = { _0x421eac: 0x246 }, _0x58c0b0 = { _0x235232: 0x24e }, _0x5e058b = { _0x4d0bae: 0x24e }, _0x54e7bb = {
2099
- _0x3c6b22: 0x24e,
2100
- _0x43f9f6: 0x290
2101
- }, _0x4d7476 = {
2102
- _0x663464: 0x1d0,
2103
- _0x3234ab: 0x24e,
2104
- _0x109cd0: 0x240
2105
- }, _0x542236 = {
2106
- _0x54f8c0: 0x1f2,
2107
- _0x2567d9: 0x24e
2108
- }, _0x4618ee = _0x1e865e, {z: _0x316437} = await import(_0x4618ee(0x204));
2109
- _0x13d479[_0x4618ee(0x24f)]('send_message', _0x4618ee(_0x33b012._0x33e347), {
2110
- 'target': _0x316437[_0x4618ee(_0x33b012._0x44a2b8)](),
2111
- 'content': _0x316437[_0x4618ee(0x1bc)](),
2112
- 'attachment_ids': _0x316437[_0x4618ee(_0x33b012._0x35aeec)](_0x316437['string']())[_0x4618ee(0x18a)](),
2113
- 'visibility': _0x316437[_0x4618ee(0x1d9)]([
2114
- 'public',
2115
- _0x4618ee(0x269)
2116
- ])[_0x4618ee(0x18a)]()['describe'](_0x4618ee(_0x33b012._0x4369be))
2117
- }, async _0x70142c => {
2118
- const _0x1188ea = _0x4618ee;
2069
+ async function registerChatBridgeTools(_0x5391b9, _0x1364a7, _0x560ea8) {
2070
+ const _0x575365 = {
2071
+ _0x542bf2: 0x22d,
2072
+ _0x250a89: 0x131,
2073
+ _0x1ba32d: 0x1cb,
2074
+ _0x170289: 0x1d2,
2075
+ _0x2d2d5d: 0x1df,
2076
+ _0x5e6cb7: 0x12d,
2077
+ _0x4ed69e: 0x124,
2078
+ _0x177a87: 0x18b,
2079
+ _0x19e050: 0x1d2,
2080
+ _0x12c246: 0xb9,
2081
+ _0xdc0d23: 0x16a,
2082
+ _0x383448: 0x137,
2083
+ _0x52b624: 0x1df,
2084
+ _0x5382de: 0x113,
2085
+ _0x5b37cd: 0x116,
2086
+ _0x40abd3: 0x130,
2087
+ _0x4496ce: 0x1cb,
2088
+ _0x193f9f: 0x127,
2089
+ _0x2156b5: 0x217,
2090
+ _0x351417: 0x191,
2091
+ _0x48e366: 0x21c,
2092
+ _0x1d52df: 0x119,
2093
+ _0x663c39: 0xbe,
2094
+ _0x8ce38e: 0x119,
2095
+ _0x140765: 0xbe,
2096
+ _0x520015: 0x21a,
2097
+ _0x2f465e: 0x227,
2098
+ _0x200468: 0x1bb,
2099
+ _0x441598: 0xde,
2100
+ _0xc915e2: 0xbe,
2101
+ _0x23c1cd: 0x1d4,
2102
+ _0x503e87: 0x113,
2103
+ _0x5d326e: 0x116,
2104
+ _0x47a63a: 0x1cb,
2105
+ _0x48548a: 0x1cb,
2106
+ _0x49528b: 0x22d,
2107
+ _0x365def: 0x231,
2108
+ _0x9d5e14: 0x205,
2109
+ _0xa2a0f2: 0x1cb
2110
+ }, _0x5d2d80 = {
2111
+ _0x290399: 0x1a1,
2112
+ _0x2f901b: 0x196
2113
+ }, _0x102ace = { _0x2887a7: 0x1d0 }, _0x124aba = { _0x26cc7d: 0x196 }, _0x2a1e70 = {
2114
+ _0x9d2939: 0x231,
2115
+ _0x31af4c: 0x157
2116
+ }, _0x3bce40 = { _0x291584: 0x239 }, _0x902716 = { _0x4b1085: 0xc1 }, _0x5635b7 = { _0x2ff3bc: 0x196 }, _0x1f9631 = {
2117
+ _0x1cc852: 0x196,
2118
+ _0x1d6c44: 0x19c
2119
+ }, _0x544322 = { _0x456e90: 0x21c }, _0x697838 = {
2120
+ _0x269bc7: 0xd0,
2121
+ _0xc20f51: 0xe8
2122
+ }, _0x3d98ee = {
2123
+ _0x400965: 0xb9,
2124
+ _0x27b333: 0x118
2125
+ }, _0x592fc3 = { _0x235017: 0x196 }, _0x4aa75b = {
2126
+ _0x128618: 0x196,
2127
+ _0x5b34e9: 0x139
2128
+ }, _0x1bea5f = _0x77ce4b, {z: _0xb4e087} = await import(_0x1bea5f(0xf5));
2129
+ _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(_0x575365._0x250a89), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
2130
+ 'target': _0xb4e087[_0x1bea5f(_0x575365._0x1ba32d)](),
2131
+ 'content': _0xb4e087[_0x1bea5f(_0x575365._0x1ba32d)](),
2132
+ 'attachment_ids': _0xb4e087[_0x1bea5f(0x119)](_0xb4e087['string']())[_0x1bea5f(_0x575365._0x170289)](),
2133
+ 'visibility': _0xb4e087[_0x1bea5f(_0x575365._0x2d2d5d)]([
2134
+ _0x1bea5f(_0x575365._0x5e6cb7),
2135
+ _0x1bea5f(0x1e9)
2136
+ ])[_0x1bea5f(0x1d2)]()[_0x1bea5f(0x1ff)](_0x1bea5f(_0x575365._0x4ed69e))
2137
+ }, async _0x2dd9c7 => {
2138
+ const _0x2ffb66 = _0x1bea5f;
2119
2139
  try {
2120
- return textResult(await _0x1daf41['send_message'](_0x70142c));
2121
- } catch (_0x301d76) {
2122
- return textResult(_0x301d76 instanceof Error ? _0x301d76['message'] : _0x1188ea(0x196), !![]);
2140
+ return textResult(await _0x1364a7[_0x2ffb66(0x131)](_0x2dd9c7));
2141
+ } catch (_0x3f6642) {
2142
+ return textResult(_0x3f6642 instanceof Error ? _0x3f6642[_0x2ffb66(0x196)] : 'send_message\x20failed', !![]);
2123
2143
  }
2124
- }), _0x13d479['tool']('check_messages', _0x4618ee(0x258), {}, async () => {
2125
- const _0x38dd2b = _0x4618ee;
2144
+ }), _0x5391b9['tool'](_0x1bea5f(0x165), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
2145
+ const _0x12bb1c = _0x1bea5f;
2126
2146
  try {
2127
- return textResult(await _0x1daf41[_0x38dd2b(_0x542236._0x54f8c0)]());
2128
- } catch (_0x570b08) {
2129
- return textResult(_0x570b08 instanceof Error ? _0x570b08[_0x38dd2b(_0x542236._0x2567d9)] : _0x38dd2b(0x18e), !![]);
2147
+ return textResult(await _0x1364a7['check_messages']());
2148
+ } catch (_0x4ae4a4) {
2149
+ return textResult(_0x4ae4a4 instanceof Error ? _0x4ae4a4[_0x12bb1c(_0x4aa75b._0x128618)] : _0x12bb1c(_0x4aa75b._0x5b34e9), !![]);
2130
2150
  }
2131
- }), _0x13d479[_0x4618ee(_0x33b012._0x439ad7)](_0x4618ee(0x1d0), _0x4618ee(_0x33b012._0x396beb), {
2132
- 'channel': _0x316437[_0x4618ee(_0x33b012._0x44a2b8)](),
2133
- 'limit': _0x316437[_0x4618ee(_0x33b012._0x350268)]()[_0x4618ee(0x18a)](),
2134
- 'before': _0x316437[_0x4618ee(0x21c)]()[_0x4618ee(0x18a)](),
2135
- 'after': _0x316437[_0x4618ee(0x21c)]()[_0x4618ee(0x18a)]()
2136
- }, async _0x5b90cf => {
2137
- const _0x598ee6 = _0x4618ee;
2151
+ }), _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(_0x575365._0x177a87), _0x1bea5f(0x245), {
2152
+ 'channel': _0xb4e087[_0x1bea5f(0x1cb)](),
2153
+ 'limit': _0xb4e087[_0x1bea5f(0xbe)]()['optional'](),
2154
+ 'before': _0xb4e087[_0x1bea5f(0xbe)]()['optional'](),
2155
+ 'after': _0xb4e087[_0x1bea5f(0xbe)]()[_0x1bea5f(_0x575365._0x19e050)]()
2156
+ }, async _0xdbbce8 => {
2157
+ const _0x10c90e = _0x1bea5f;
2138
2158
  try {
2139
- return textResult(await _0x1daf41[_0x598ee6(_0x4d7476._0x663464)](_0x5b90cf));
2140
- } catch (_0x3a5679) {
2141
- return textResult(_0x3a5679 instanceof Error ? _0x3a5679[_0x598ee6(_0x4d7476._0x3234ab)] : _0x598ee6(_0x4d7476._0x109cd0), !![]);
2159
+ return textResult(await _0x1364a7['read_history'](_0xdbbce8));
2160
+ } catch (_0x13fb7d) {
2161
+ return textResult(_0x13fb7d instanceof Error ? _0x13fb7d[_0x10c90e(_0x592fc3._0x235017)] : 'read_history\x20failed', !![]);
2142
2162
  }
2143
- }), _0x13d479[_0x4618ee(0x24f)](_0x4618ee(0x29e), _0x4618ee(0x29d), {}, async () => {
2144
- const _0x166f97 = _0x4618ee;
2163
+ }), _0x5391b9[_0x1bea5f(0x22d)](_0x1bea5f(_0x575365._0x12c246), _0x1bea5f(_0x575365._0xdc0d23), {}, async () => {
2164
+ const _0x258c46 = _0x1bea5f;
2145
2165
  try {
2146
- return textResult(await _0x1daf41[_0x166f97(0x29e)]());
2147
- } catch (_0xe91d4b) {
2148
- return textResult(_0xe91d4b instanceof Error ? _0xe91d4b[_0x166f97(_0x54e7bb._0x3c6b22)] : _0x166f97(_0x54e7bb._0x43f9f6), !![]);
2166
+ return textResult(await _0x1364a7[_0x258c46(_0x3d98ee._0x400965)]());
2167
+ } catch (_0x4c2534) {
2168
+ return textResult(_0x4c2534 instanceof Error ? _0x4c2534[_0x258c46(0x196)] : _0x258c46(_0x3d98ee._0x27b333), !![]);
2149
2169
  }
2150
- }), _0x13d479['tool'](_0x4618ee(0x236), _0x4618ee(_0x33b012._0x504234), {
2151
- 'channel': _0x316437[_0x4618ee(0x1bc)](),
2152
- 'status': _0x316437[_0x4618ee(0x1d9)]([
2153
- _0x4618ee(0x219),
2154
- _0x4618ee(_0x33b012._0x398036),
2155
- _0x4618ee(_0x33b012._0x4104b8),
2156
- _0x4618ee(0x255)
2157
- ])['optional']()
2158
- }, async _0x3aebe2 => {
2159
- const _0x2cd7f7 = _0x4618ee;
2170
+ }), _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(0xd0), _0x1bea5f(_0x575365._0x383448), {
2171
+ 'channel': _0xb4e087['string'](),
2172
+ 'status': _0xb4e087[_0x1bea5f(_0x575365._0x52b624)]([
2173
+ _0x1bea5f(_0x575365._0x5382de),
2174
+ 'in_progress',
2175
+ _0x1bea5f(_0x575365._0x5b37cd),
2176
+ _0x1bea5f(_0x575365._0x40abd3)
2177
+ ])[_0x1bea5f(0x1d2)]()
2178
+ }, async _0x18806f => {
2179
+ const _0x1a5e75 = _0x1bea5f;
2160
2180
  try {
2161
- return textResult(await _0x1daf41['list_tasks'](_0x3aebe2));
2162
- } catch (_0x3334cc) {
2163
- return textResult(_0x3334cc instanceof Error ? _0x3334cc['message'] : _0x2cd7f7(0x163), !![]);
2181
+ return textResult(await _0x1364a7[_0x1a5e75(_0x697838._0x269bc7)](_0x18806f));
2182
+ } catch (_0x459c7e) {
2183
+ return textResult(_0x459c7e instanceof Error ? _0x459c7e['message'] : _0x1a5e75(_0x697838._0xc20f51), !![]);
2164
2184
  }
2165
- }), _0x13d479[_0x4618ee(_0x33b012._0x439ad7)]('create_tasks', _0x4618ee(0x257), {
2166
- 'channel': _0x316437['string'](),
2167
- 'idempotency_key': _0x316437[_0x4618ee(0x1bc)]()[_0x4618ee(0x18a)](),
2168
- 'tasks': _0x316437[_0x4618ee(_0x33b012._0x35aeec)](_0x316437['object']({
2169
- 'title': _0x316437[_0x4618ee(_0x33b012._0x31444b)](),
2170
- 'description': _0x316437[_0x4618ee(_0x33b012._0x44a2b8)]()[_0x4618ee(0x18a)](),
2171
- 'priority': _0x316437['enum']([
2172
- 'low',
2173
- _0x4618ee(_0x33b012._0x317743),
2174
- 'high',
2175
- _0x4618ee(0x27d)
2176
- ])[_0x4618ee(_0x33b012._0x1b8576)]()
2185
+ }), _0x5391b9['tool']('create_tasks', 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.\x20In\x20a\x20thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22),\x20creates\x20subtasks\x20under\x20the\x20existing\x20parent\x20task.', {
2186
+ 'channel': _0xb4e087[_0x1bea5f(0x1cb)](),
2187
+ 'idempotency_key': _0xb4e087[_0x1bea5f(_0x575365._0x1ba32d)]()['optional'](),
2188
+ 'tasks': _0xb4e087[_0x1bea5f(0x119)](_0xb4e087[_0x1bea5f(0x227)]({
2189
+ 'title': _0xb4e087[_0x1bea5f(_0x575365._0x4496ce)](),
2190
+ 'description': _0xb4e087['string']()[_0x1bea5f(0x1d2)](),
2191
+ 'priority': _0xb4e087['enum']([
2192
+ _0x1bea5f(_0x575365._0x193f9f),
2193
+ _0x1bea5f(_0x575365._0x2156b5),
2194
+ _0x1bea5f(0x19a),
2195
+ _0x1bea5f(_0x575365._0x351417)
2196
+ ])[_0x1bea5f(0x1d2)]()
2177
2197
  }))
2178
- }, async _0x4bb841 => {
2179
- const _0x2405a2 = _0x4618ee;
2198
+ }, async _0x204e02 => {
2199
+ const _0x1368fa = _0x1bea5f;
2180
2200
  try {
2181
- return textResult(await _0x1daf41['create_tasks'](_0x4bb841));
2182
- } catch (_0x4e4000) {
2183
- return textResult(_0x4e4000 instanceof Error ? _0x4e4000[_0x2405a2(_0x5e058b._0x4d0bae)] : 'create_tasks\x20failed', !![]);
2201
+ return textResult(await _0x1364a7[_0x1368fa(0x163)](_0x204e02));
2202
+ } catch (_0x5d2ff1) {
2203
+ return textResult(_0x5d2ff1 instanceof Error ? _0x5d2ff1['message'] : _0x1368fa(0x102), !![]);
2184
2204
  }
2185
- }), _0x13d479[_0x4618ee(_0x33b012._0x439ad7)](_0x4618ee(_0x33b012._0xbe0c4b), _0x4618ee(0x19a), {
2186
- 'channel': _0x316437['string'](),
2187
- 'task_numbers': _0x316437[_0x4618ee(0x24a)](_0x316437[_0x4618ee(_0x33b012._0x350268)]())[_0x4618ee(0x18a)](),
2188
- 'subtask_numbers': _0x316437[_0x4618ee(0x24a)](_0x316437[_0x4618ee(_0x33b012._0x101023)]())['optional'](),
2189
- 'message_ids': _0x316437[_0x4618ee(0x24a)](_0x316437[_0x4618ee(_0x33b012._0x325056)]())[_0x4618ee(0x18a)](),
2190
- 'evidence': _0x316437[_0x4618ee(0x2aa)](_0x316437[_0x4618ee(0x1bc)](), _0x316437['object']({
2191
- 'create_thread': _0x316437[_0x4618ee(0x1ed)]()[_0x4618ee(0x18a)](),
2192
- 'create_task': _0x316437['unknown']()[_0x4618ee(_0x33b012._0x36e994)]()
2193
- }))[_0x4618ee(0x18a)](),
2194
- 'idempotency_key': _0x316437['string']()[_0x4618ee(_0x33b012._0x589ae1)]()
2195
- }, async _0x126940 => {
2196
- const _0x2a2a76 = _0x4618ee;
2205
+ }), _0x5391b9[_0x1bea5f(0x22d)](_0x1bea5f(_0x575365._0x48e366), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
2206
+ 'channel': _0xb4e087['string'](),
2207
+ 'task_numbers': _0xb4e087[_0x1bea5f(_0x575365._0x1d52df)](_0xb4e087[_0x1bea5f(_0x575365._0x663c39)]())[_0x1bea5f(0x1d2)](),
2208
+ 'subtask_numbers': _0xb4e087[_0x1bea5f(_0x575365._0x8ce38e)](_0xb4e087[_0x1bea5f(_0x575365._0x140765)]())[_0x1bea5f(_0x575365._0x170289)](),
2209
+ 'message_ids': _0xb4e087['array'](_0xb4e087['string']())['optional'](),
2210
+ 'evidence': _0xb4e087[_0x1bea5f(_0x575365._0x520015)](_0xb4e087['string'](), _0xb4e087[_0x1bea5f(_0x575365._0x2f465e)]({
2211
+ 'create_thread': _0xb4e087[_0x1bea5f(_0x575365._0x200468)]()[_0x1bea5f(_0x575365._0x170289)](),
2212
+ 'create_task': _0xb4e087['unknown']()[_0x1bea5f(0x1d2)]()
2213
+ }))[_0x1bea5f(_0x575365._0x19e050)](),
2214
+ 'idempotency_key': _0xb4e087['string']()[_0x1bea5f(0x1d2)]()
2215
+ }, async _0x2bf4e3 => {
2216
+ const _0x25e743 = _0x1bea5f;
2197
2217
  try {
2198
- return textResult(await _0x1daf41[_0x2a2a76(0x2d9)](_0x126940));
2199
- } catch (_0x58af5a) {
2200
- return textResult(_0x58af5a instanceof Error ? _0x58af5a[_0x2a2a76(0x24e)] : _0x2a2a76(0x22f), !![]);
2218
+ return textResult(await _0x1364a7[_0x25e743(_0x544322._0x456e90)](_0x2bf4e3));
2219
+ } catch (_0x2d5202) {
2220
+ return textResult(_0x2d5202 instanceof Error ? _0x2d5202[_0x25e743(0x196)] : _0x25e743(0x210), !![]);
2201
2221
  }
2202
- }), _0x13d479['tool'](_0x4618ee(_0x33b012._0x22ac48), _0x4618ee(0x173), {
2203
- 'channel': _0x316437[_0x4618ee(0x1bc)](),
2204
- 'task_number': _0x316437[_0x4618ee(0x21c)](),
2205
- 'subtask_number': _0x316437[_0x4618ee(_0x33b012._0x101023)]()[_0x4618ee(0x18a)](),
2206
- 'idempotency_key': _0x316437[_0x4618ee(_0x33b012._0x31444b)]()[_0x4618ee(_0x33b012._0x5973f3)]()
2207
- }, async _0x4cebde => {
2208
- const _0x18ba56 = _0x4618ee;
2222
+ }), _0x5391b9[_0x1bea5f(0x22d)]('unclaim_task', _0x1bea5f(_0x575365._0x441598), {
2223
+ 'channel': _0xb4e087[_0x1bea5f(0x1cb)](),
2224
+ 'task_number': _0xb4e087['number'](),
2225
+ 'subtask_number': _0xb4e087[_0x1bea5f(_0x575365._0xc915e2)]()[_0x1bea5f(0x1d2)](),
2226
+ 'idempotency_key': _0xb4e087['string']()['optional']()
2227
+ }, async _0x5416ab => {
2228
+ const _0x8596b6 = _0x1bea5f;
2209
2229
  try {
2210
- return textResult(await _0x1daf41['unclaim_task'](_0x4cebde));
2211
- } catch (_0x48156d) {
2212
- return textResult(_0x48156d instanceof Error ? _0x48156d[_0x18ba56(_0x58c0b0._0x235232)] : _0x18ba56(0x266), !![]);
2230
+ return textResult(await _0x1364a7[_0x8596b6(0x148)](_0x5416ab));
2231
+ } catch (_0x525712) {
2232
+ return textResult(_0x525712 instanceof Error ? _0x525712[_0x8596b6(_0x1f9631._0x1cc852)] : _0x8596b6(_0x1f9631._0x1d6c44), !![]);
2213
2233
  }
2214
- }), _0x13d479['tool'](_0x4618ee(0x246), _0x4618ee(_0x33b012._0x2a2594), {
2215
- 'channel': _0x316437['string'](),
2216
- 'task_number': _0x316437[_0x4618ee(0x21c)](),
2217
- 'subtask_number': _0x316437[_0x4618ee(0x21c)]()[_0x4618ee(_0x33b012._0x54e9f6)](),
2218
- 'status': _0x316437[_0x4618ee(0x1d9)]([
2219
- _0x4618ee(_0x33b012._0x57370e),
2220
- _0x4618ee(0x150),
2221
- 'in_review',
2222
- _0x4618ee(_0x33b012._0x2086eb)
2234
+ }), _0x5391b9[_0x1bea5f(_0x575365._0x542bf2)](_0x1bea5f(_0x575365._0x23c1cd), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
2235
+ 'channel': _0xb4e087['string'](),
2236
+ 'task_number': _0xb4e087[_0x1bea5f(0xbe)](),
2237
+ 'subtask_number': _0xb4e087[_0x1bea5f(0xbe)]()[_0x1bea5f(_0x575365._0x19e050)](),
2238
+ 'status': _0xb4e087[_0x1bea5f(_0x575365._0x52b624)]([
2239
+ _0x1bea5f(_0x575365._0x503e87),
2240
+ 'in_progress',
2241
+ _0x1bea5f(_0x575365._0x5d326e),
2242
+ _0x1bea5f(_0x575365._0x40abd3)
2223
2243
  ]),
2224
- 'idempotency_key': _0x316437[_0x4618ee(_0x33b012._0x13c02f)]()[_0x4618ee(_0x33b012._0x36e994)]()
2225
- }, async _0xf77caa => {
2226
- const _0x2d993a = _0x4618ee;
2244
+ 'idempotency_key': _0xb4e087[_0x1bea5f(0x1cb)]()['optional']()
2245
+ }, async _0x5e06c5 => {
2246
+ const _0x16fb3d = _0x1bea5f;
2227
2247
  try {
2228
- return textResult(await _0x1daf41[_0x2d993a(_0x238ffb._0x421eac)](_0xf77caa));
2229
- } catch (_0x130cc9) {
2230
- return textResult(_0x130cc9 instanceof Error ? _0x130cc9[_0x2d993a(0x24e)] : _0x2d993a(0x1fa), !![]);
2248
+ return textResult(await _0x1364a7['update_task_status'](_0x5e06c5));
2249
+ } catch (_0xfc954b) {
2250
+ return textResult(_0xfc954b instanceof Error ? _0xfc954b[_0x16fb3d(_0x5635b7._0x2ff3bc)] : _0x16fb3d(0x1ec), !![]);
2231
2251
  }
2232
- }), _0x13d479[_0x4618ee(_0x33b012._0x4a3d7d)]('upload_file', 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
2233
- 'channel': _0x316437[_0x4618ee(0x1bc)](),
2234
- 'file_path': _0x316437['string']()
2235
- }, async _0x5bff7b => {
2236
- const _0x4d42d0 = _0x4618ee;
2252
+ }), _0x5391b9[_0x1bea5f(0x22d)]('upload_file', _0x1bea5f(0xf3), {
2253
+ 'channel': _0xb4e087[_0x1bea5f(_0x575365._0x47a63a)](),
2254
+ 'file_path': _0xb4e087[_0x1bea5f(0x1cb)]()
2255
+ }, async _0x77f71f => {
2256
+ const _0x1d8018 = _0x1bea5f;
2237
2257
  try {
2238
- return textResult(await _0x1daf41[_0x4d42d0(0x26c)](_0x5bff7b));
2239
- } catch (_0x62a91c) {
2240
- return textResult(_0x62a91c instanceof Error ? _0x62a91c['message'] : _0x4d42d0(0x18c), !![]);
2258
+ return textResult(await _0x1364a7[_0x1d8018(_0x902716._0x4b1085)](_0x77f71f));
2259
+ } catch (_0x443a71) {
2260
+ return textResult(_0x443a71 instanceof Error ? _0x443a71[_0x1d8018(0x196)] : _0x1d8018(0x14e), !![]);
2241
2261
  }
2242
- }), _0x13d479[_0x4618ee(_0x33b012._0x4a3d7d)](_0x4618ee(0x288), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x316437[_0x4618ee(_0x33b012._0x44a2b8)]() }, async _0x37b461 => {
2243
- const _0x19ec3a = _0x4618ee;
2262
+ }), _0x5391b9[_0x1bea5f(0x22d)]('view_file', _0x1bea5f(0xc0), { 'attachment_id': _0xb4e087[_0x1bea5f(_0x575365._0x48548a)]() }, async _0x321189 => {
2263
+ const _0x4cc828 = _0x1bea5f;
2244
2264
  try {
2245
- return textResult(await _0x1daf41[_0x19ec3a(_0x3acd2b._0x433a77)](_0x37b461));
2246
- } catch (_0x5403b2) {
2247
- return textResult(_0x5403b2 instanceof Error ? _0x5403b2[_0x19ec3a(_0x3acd2b._0x504aac)] : 'view_file\x20failed', !![]);
2265
+ return textResult(await _0x1364a7['view_file'](_0x321189));
2266
+ } catch (_0x27b3cf) {
2267
+ return textResult(_0x27b3cf instanceof Error ? _0x27b3cf[_0x4cc828(0x196)] : _0x4cc828(_0x3bce40._0x291584), !![]);
2248
2268
  }
2249
- }), _0x13d479['tool']('get_worker_status', _0x4618ee(0x28b), { 'work_key': _0x316437[_0x4618ee(_0x33b012._0x15914b)]() }, async _0x4fc0ac => {
2250
- const _0x3f00d3 = _0x4618ee;
2269
+ }), _0x5391b9[_0x1bea5f(_0x575365._0x49528b)](_0x1bea5f(_0x575365._0x365def), _0x1bea5f(_0x575365._0x9d5e14), { 'work_key': _0xb4e087[_0x1bea5f(_0x575365._0xa2a0f2)]() }, async _0x349a99 => {
2270
+ const _0x450941 = _0x1bea5f;
2251
2271
  try {
2252
- return textResult(await _0x1daf41[_0x3f00d3(_0x124c34._0x5c3813)](_0x4fc0ac));
2253
- } catch (_0x39c4ec) {
2254
- return textResult(_0x39c4ec instanceof Error ? _0x39c4ec[_0x3f00d3(0x24e)] : 'get_worker_status\x20failed', !![]);
2272
+ return textResult(await _0x1364a7[_0x450941(_0x2a1e70._0x9d2939)](_0x349a99));
2273
+ } catch (_0x44518d) {
2274
+ return textResult(_0x44518d instanceof Error ? _0x44518d[_0x450941(0x196)] : _0x450941(_0x2a1e70._0x31af4c), !![]);
2255
2275
  }
2256
- }), _0x13d479[_0x4618ee(_0x33b012._0x439ad7)](_0x4618ee(_0x33b012._0x3f77a2), 'Worker-only.\x20Park\x20the\x20current\x20worker\x20lane\x20after\x20you\x20have\x20already\x20reported\x20results\x20in\x20this\x20thread.\x20This\x20does\x20not\x20end\x20the\x20session;\x20same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.', { 'work_key': _0x316437[_0x4618ee(0x1bc)]() }, async _0x31d590 => {
2257
- const _0x518c54 = _0x4618ee;
2276
+ }), _0x5391b9['tool'](_0x1bea5f(0x1f8), _0x1bea5f(0x13e), { 'work_key': _0xb4e087[_0x1bea5f(0x1cb)]() }, async _0x5bf9e6 => {
2277
+ const _0x14cd5b = _0x1bea5f;
2258
2278
  try {
2259
- return textResult(await _0x1daf41[_0x518c54(0x1f8)](_0x31d590));
2260
- } catch (_0x5db212) {
2261
- return textResult(_0x5db212 instanceof Error ? _0x5db212[_0x518c54(_0x282c90._0x319ca6)] : _0x518c54(_0x282c90._0x25ed8), !![]);
2279
+ return textResult(await _0x1364a7[_0x14cd5b(0x1f8)](_0x5bf9e6));
2280
+ } catch (_0x2d66a4) {
2281
+ return textResult(_0x2d66a4 instanceof Error ? _0x2d66a4[_0x14cd5b(_0x124aba._0x26cc7d)] : 'park_worker\x20failed', !![]);
2262
2282
  }
2263
- }), _0x13d479[_0x4618ee(_0x33b012._0x4472a0)](_0x4618ee(_0x33b012._0x50d9e0), _0x4618ee(0x298), {
2264
- 'work_key': _0x316437[_0x4618ee(0x1bc)](),
2265
- 'reason': _0x316437[_0x4618ee(_0x33b012._0x44a2b8)]()
2266
- }, async _0x1d9af1 => {
2267
- const _0x14b517 = _0x4618ee;
2283
+ }), _0x5391b9[_0x1bea5f(0x22d)]('escalate_to_main', 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
2284
+ 'work_key': _0xb4e087[_0x1bea5f(0x1cb)](),
2285
+ 'reason': _0xb4e087['string']()
2286
+ }, async _0x23cfa4 => {
2287
+ const _0x544666 = _0x1bea5f;
2268
2288
  try {
2269
- return textResult(await _0x1daf41['escalate_to_main'](_0x1d9af1));
2270
- } catch (_0x83a7d2) {
2271
- return textResult(_0x83a7d2 instanceof Error ? _0x83a7d2[_0x14b517(0x24e)] : 'escalate_to_main\x20failed', !![]);
2289
+ return textResult(await _0x1364a7[_0x544666(_0x102ace._0x2887a7)](_0x23cfa4));
2290
+ } catch (_0x531e28) {
2291
+ return textResult(_0x531e28 instanceof Error ? _0x531e28['message'] : _0x544666(0x1d6), !![]);
2272
2292
  }
2273
- }), _0x29ca4a?.['workerMode'] && _0x13d479[_0x4618ee(_0x33b012._0x2a7ca7)](_0x4618ee(_0x33b012._0x323e1), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x316437[_0x4618ee(_0x33b012._0x4e1df2)]() }, async _0x2db785 => {
2274
- const _0x3b668c = _0x4618ee;
2293
+ }), _0x560ea8?.[_0x1bea5f(0x14a)] && _0x5391b9['tool'](_0x1bea5f(0x1a1), _0x1bea5f(0x221), { 'work_key': _0xb4e087[_0x1bea5f(_0x575365._0x4496ce)]() }, async _0x59df14 => {
2294
+ const _0x124f78 = _0x1bea5f;
2275
2295
  try {
2276
- return textResult(await _0x1daf41[_0x3b668c(_0x8f2968._0xbe6d32)](_0x2db785));
2277
- } catch (_0x27b1f5) {
2278
- return textResult(_0x27b1f5 instanceof Error ? _0x27b1f5[_0x3b668c(_0x8f2968._0x5673a1)] : _0x3b668c(0x231), !![]);
2296
+ return textResult(await _0x1364a7[_0x124f78(_0x5d2d80._0x290399)](_0x59df14));
2297
+ } catch (_0x17cadb) {
2298
+ return textResult(_0x17cadb instanceof Error ? _0x17cadb[_0x124f78(_0x5d2d80._0x2f901b)] : 'mark_waiting_input\x20failed', !![]);
2279
2299
  }
2280
2300
  });
2281
2301
  }
2282
- async function createChatBridgeServer(_0x2c0f58) {
2283
- const _0x538b8a = {
2284
- _0x1a8314: 0x25d,
2285
- _0x24fd6d: 0x28a
2286
- }, _0x129c92 = _0x1e865e, {McpServer: _0x24eae2} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x2e2d58 = new _0x24eae2({
2287
- 'name': _0x129c92(_0x538b8a._0x1a8314),
2288
- 'version': _0x129c92(_0x538b8a._0x24fd6d)
2289
- }), _0x375f7c = createChatBridgeHandlers(_0x2c0f58);
2290
- return await registerChatBridgeTools(_0x2e2d58, _0x375f7c, { 'workerMode': _0x2c0f58[_0x129c92(0x286)] }), {
2291
- 'handlers': _0x375f7c,
2292
- 'server': _0x2e2d58
2302
+ async function createChatBridgeServer(_0x531467) {
2303
+ const _0xb3e166 = {
2304
+ _0x407e7e: 0x209,
2305
+ _0x34a73e: 0x199,
2306
+ _0x20b861: 0x14a
2307
+ }, _0x18eac7 = _0x77ce4b, {McpServer: _0xa6f356} = await import(_0x18eac7(_0xb3e166._0x407e7e)), _0x59b300 = new _0xa6f356({
2308
+ 'name': _0x18eac7(0x151),
2309
+ 'version': _0x18eac7(_0xb3e166._0x34a73e)
2310
+ }), _0x5d1cf1 = createChatBridgeHandlers(_0x531467);
2311
+ return await registerChatBridgeTools(_0x59b300, _0x5d1cf1, { 'workerMode': _0x531467[_0x18eac7(_0xb3e166._0x20b861)] }), {
2312
+ 'handlers': _0x5d1cf1,
2313
+ 'server': _0x59b300
2293
2314
  };
2294
2315
  }
2295
- function readFlag(_0x419483, _0xf03308) {
2296
- const _0x29009d = _0x1e865e, _0x17277c = _0x419483[_0x29009d(0x1bd)](_0xf03308);
2297
- if (_0x17277c === -0x1)
2316
+ function readFlag(_0x13c405, _0x1764df) {
2317
+ const _0x3dbcbf = { _0x4f75c4: 0x20f }, _0xff98b4 = _0x77ce4b, _0x12cdbd = _0x13c405[_0xff98b4(_0x3dbcbf._0x4f75c4)](_0x1764df);
2318
+ if (_0x12cdbd === -0x1)
2298
2319
  return void 0x0;
2299
- return _0x419483[_0x17277c + 0x1];
2320
+ return _0x13c405[_0x12cdbd + 0x1];
2300
2321
  }
2301
- function parseChatBridgeArgs(_0x293b7d) {
2302
- const _0x4605be = {
2303
- _0x37d7d1: 0x169,
2304
- _0x2798e1: 0x162,
2305
- _0x24b89c: 0x245,
2306
- _0x58d2df: 0x2c6,
2307
- _0x58985f: 0x1dd,
2308
- _0x29b9a6: 0x199,
2309
- _0x49e1e4: 0x207,
2310
- _0x5643d1: 0x252,
2311
- _0x271804: 0x224,
2312
- _0x117a7f: 0x179,
2313
- _0xba17de: 0x15c,
2314
- _0x668098: 0x244,
2315
- _0x1ad284: 0x29f
2316
- }, _0x189e90 = _0x1e865e, _0x4c1689 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x37d7d1)), _0x234705 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x2798e1)), _0xb7282b = readFlag(_0x293b7d, '--daemon-api-key'), _0xd008b7 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x24b89c)), _0x39ae8a = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x58d2df)) ?? _0x189e90(0x249), _0x22a1e1 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x58985f)), _0x16c5f7 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x29b9a6)), _0x40bdf5 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x49e1e4)), _0x77f7a4 = readFlag(_0x293b7d, _0x189e90(0x234)), _0x2137f6 = readFlag(_0x293b7d, _0x189e90(_0x4605be._0x5643d1)), _0x4235a3 = _0x293b7d[_0x189e90(0x1eb)](_0x189e90(_0x4605be._0x271804)), _0x567422 = _0xd008b7 === void 0x0 ? void 0x0 : Number['parseInt'](_0xd008b7, 0xa);
2317
- if (!_0x4c1689)
2318
- throw new Error(_0x189e90(_0x4605be._0x117a7f));
2319
- if (!_0xb7282b)
2320
- throw new Error(_0x189e90(_0x4605be._0xba17de));
2321
- if (_0xd008b7 !== void 0x0 && (_0x567422 === void 0x0 || !Number[_0x189e90(_0x4605be._0x668098)](_0x567422) || _0x567422 < 0x0))
2322
- throw new Error(_0x189e90(0x27c));
2322
+ function parseChatBridgeArgs(_0x227136) {
2323
+ const _0x2ee99d = {
2324
+ _0x2dbace: 0x17d,
2325
+ _0x5d9175: 0x153,
2326
+ _0x33d4c6: 0xd4,
2327
+ _0x30cf09: 0x1e4,
2328
+ _0x46db3c: 0x13a,
2329
+ _0x47492e: 0x1fa,
2330
+ _0x41aada: 0xea,
2331
+ _0x1db49e: 0x22f
2332
+ }, _0x5b9163 = _0x77ce4b, _0x3e2ca2 = readFlag(_0x227136, '--agent-id'), _0xe15f1 = readFlag(_0x227136, _0x5b9163(0x1a6)), _0x94494e = readFlag(_0x227136, '--daemon-api-key'), _0x3409f2 = readFlag(_0x227136, _0x5b9163(0x20b)), _0x180fcc = readFlag(_0x227136, _0x5b9163(0x174)) ?? _0x5b9163(_0x2ee99d._0x2dbace), _0x3aca88 = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x5d9175)), _0x2c01fb = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x33d4c6)), _0x2ee61d = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x30cf09)), _0x14ae21 = readFlag(_0x227136, _0x5b9163(_0x2ee99d._0x46db3c)), _0x518d20 = readFlag(_0x227136, _0x5b9163(0xfb)), _0x5632dd = _0x227136[_0x5b9163(0x1fb)](_0x5b9163(_0x2ee99d._0x47492e)), _0xb46e9 = _0x3409f2 === void 0x0 ? void 0x0 : Number['parseInt'](_0x3409f2, 0xa);
2333
+ if (!_0x3e2ca2)
2334
+ throw new Error('Missing\x20--agent-id');
2335
+ if (!_0x94494e)
2336
+ throw new Error(_0x5b9163(_0x2ee99d._0x41aada));
2337
+ if (_0x3409f2 !== void 0x0 && (_0xb46e9 === void 0x0 || !Number['isFinite'](_0xb46e9) || _0xb46e9 < 0x0))
2338
+ throw new Error(_0x5b9163(_0x2ee99d._0x1db49e));
2323
2339
  return {
2324
- 'agentId': _0x4c1689,
2325
- 'attachmentCacheDir': _0x234705,
2326
- 'daemonApiKey': _0xb7282b,
2327
- 'daemonLocalUrl': _0x22a1e1,
2328
- 'initialLastSeenSeq': _0x567422,
2329
- 'sessionId': _0x16c5f7,
2330
- 'serverUrl': _0x39ae8a,
2331
- 'workerModeEnabled': _0x40bdf5 === void 0x0 ? void 0x0 : _0x40bdf5 !== _0x189e90(_0x4605be._0x1ad284),
2332
- 'workerSessionId': _0x77f7a4,
2333
- 'workerThreadTarget': _0x2137f6,
2334
- 'workerMode': _0x4235a3
2340
+ 'agentId': _0x3e2ca2,
2341
+ 'attachmentCacheDir': _0xe15f1,
2342
+ 'daemonApiKey': _0x94494e,
2343
+ 'daemonLocalUrl': _0x3aca88,
2344
+ 'initialLastSeenSeq': _0xb46e9,
2345
+ 'sessionId': _0x2c01fb,
2346
+ 'serverUrl': _0x180fcc,
2347
+ 'workerModeEnabled': _0x2ee61d === void 0x0 ? void 0x0 : _0x2ee61d !== _0x5b9163(0xd6),
2348
+ 'workerSessionId': _0x14ae21,
2349
+ 'workerThreadTarget': _0x518d20,
2350
+ 'workerMode': _0x5632dd
2335
2351
  };
2336
2352
  }
2337
- async function runChatBridgeCli(_0x19e37b) {
2338
- const _0x3e9c49 = {
2339
- _0x66c20e: 0x1a5,
2340
- _0xc2a2dd: 0x260,
2341
- _0x3fe54c: 0x286,
2342
- _0x2b455d: 0x27a,
2343
- _0x4529ed: 0x161
2344
- }, _0x1052d1 = _0x1e865e, _0xe644c1 = parseChatBridgeArgs(_0x19e37b), {StdioServerTransport: _0xa599a2} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x59aad3 = createInternalAgentClient(_0xe644c1), _0x445326 = createAttachmentCache({ 'cacheDir': _0xe644c1[_0x1052d1(_0x3e9c49._0x66c20e)] }), _0x294a95 = await createChatBridgeServer({
2345
- 'agentId': _0xe644c1['agentId'],
2346
- 'attachmentCache': _0x445326,
2347
- 'client': _0x59aad3,
2348
- 'daemonLocalUrl': _0xe644c1['daemonLocalUrl'],
2353
+ async function runChatBridgeCli(_0x51d944) {
2354
+ const _0x1110cf = {
2355
+ _0x29f346: 0x211,
2356
+ _0x20b292: 0x14a,
2357
+ _0x3a1d36: 0x200,
2358
+ _0x2aa1de: 0x1c5
2359
+ }, _0x13711d = _0x77ce4b, _0x5e4bfd = parseChatBridgeArgs(_0x51d944), {StdioServerTransport: _0x18dd92} = await import(_0x13711d(0x105)), _0x1a7c9a = createInternalAgentClient(_0x5e4bfd), _0x2c3e21 = createAttachmentCache({ 'cacheDir': _0x5e4bfd['attachmentCacheDir'] }), _0x2c9a9c = await createChatBridgeServer({
2360
+ 'agentId': _0x5e4bfd['agentId'],
2361
+ 'attachmentCache': _0x2c3e21,
2362
+ 'client': _0x1a7c9a,
2363
+ 'daemonLocalUrl': _0x5e4bfd['daemonLocalUrl'],
2349
2364
  'uploadPreparer': prepareUploadFile,
2350
- 'workerModeEnabled': _0xe644c1[_0x1052d1(_0x3e9c49._0xc2a2dd)],
2351
- 'workerMode': _0xe644c1[_0x1052d1(_0x3e9c49._0x3fe54c)],
2352
- 'workerThreadTarget': _0xe644c1['workerThreadTarget']
2365
+ 'workerModeEnabled': _0x5e4bfd[_0x13711d(_0x1110cf._0x29f346)],
2366
+ 'workerMode': _0x5e4bfd[_0x13711d(_0x1110cf._0x20b292)],
2367
+ 'workerThreadTarget': _0x5e4bfd['workerThreadTarget']
2353
2368
  });
2354
- await _0x294a95[_0x1052d1(_0x3e9c49._0x2b455d)][_0x1052d1(_0x3e9c49._0x4529ed)](new _0xa599a2());
2369
+ await _0x2c9a9c[_0x13711d(_0x1110cf._0x3a1d36)][_0x13711d(_0x1110cf._0x2aa1de)](new _0x18dd92());
2355
2370
  }
2356
- var executedAsEntry = process[_0x1e865e(0x175)][0x1] ? import.meta.url === pathToFileURL(process[_0x1e865e(0x175)][0x1])['href'] : ![];
2357
- executedAsEntry && await runChatBridgeCli(process[_0x1e865e(0x175)][_0x1e865e(0x229)](0x2));
2371
+ var executedAsEntry = process[_0x77ce4b(0x237)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])['href'] : ![];
2372
+ executedAsEntry && await runChatBridgeCli(process[_0x77ce4b(0x237)][_0x77ce4b(0x23d)](0x2));
2358
2373
  export {
2359
2374
  createChatBridgeHandlers,
2360
2375
  createChatBridgeServer,