@dscord/daemon 0.1.83 → 0.1.85

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 +2196 -2238
  2. package/dist/index.js +10293 -10244
  3. package/package.json +1 -1
@@ -1,24 +1,24 @@
1
- const _0x51636d = _0x3278;
2
- (function (_0x249583, _0x296eb0) {
3
- const _0x547bbb = {
4
- _0x53e8e7: 0x11a,
5
- _0xc1ea86: 0x1df,
6
- _0x3b0098: 0x238,
7
- _0x4993ca: 0x236,
8
- _0x28d64d: 0x195
9
- }, _0x4c89c7 = _0x3278, _0xc253c7 = _0x249583();
1
+ const _0x5e54a5 = _0x3280;
2
+ (function (_0x58909d, _0x337cf8) {
3
+ const _0x294927 = {
4
+ _0x238225: 0x29a,
5
+ _0x141657: 0x20a,
6
+ _0x3f0b59: 0x168,
7
+ _0x290a91: 0x21e,
8
+ _0x470041: 0x2eb
9
+ }, _0x27fc71 = _0x3280, _0x3a47db = _0x58909d();
10
10
  while (!![]) {
11
11
  try {
12
- const _0x25b193 = parseInt(_0x4c89c7(_0x547bbb._0x53e8e7)) / 0x1 + -parseInt(_0x4c89c7(0x1c5)) / 0x2 + parseInt(_0x4c89c7(0x258)) / 0x3 * (parseInt(_0x4c89c7(_0x547bbb._0xc1ea86)) / 0x4) + parseInt(_0x4c89c7(_0x547bbb._0x3b0098)) / 0x5 * (-parseInt(_0x4c89c7(_0x547bbb._0x4993ca)) / 0x6) + parseInt(_0x4c89c7(0x21c)) / 0x7 + -parseInt(_0x4c89c7(_0x547bbb._0x28d64d)) / 0x8 + -parseInt(_0x4c89c7(0x261)) / 0x9;
13
- if (_0x25b193 === _0x296eb0)
12
+ const _0x2a0eb2 = parseInt(_0x27fc71(0x1e1)) / 0x1 * (parseInt(_0x27fc71(0x1f8)) / 0x2) + -parseInt(_0x27fc71(0x247)) / 0x3 * (parseInt(_0x27fc71(0x25b)) / 0x4) + parseInt(_0x27fc71(0x26c)) / 0x5 * (parseInt(_0x27fc71(0x245)) / 0x6) + -parseInt(_0x27fc71(_0x294927._0x238225)) / 0x7 * (-parseInt(_0x27fc71(_0x294927._0x141657)) / 0x8) + -parseInt(_0x27fc71(0x244)) / 0x9 * (parseInt(_0x27fc71(_0x294927._0x3f0b59)) / 0xa) + parseInt(_0x27fc71(0x1c3)) / 0xb * (parseInt(_0x27fc71(_0x294927._0x290a91)) / 0xc) + -parseInt(_0x27fc71(_0x294927._0x470041)) / 0xd;
13
+ if (_0x2a0eb2 === _0x337cf8)
14
14
  break;
15
15
  else
16
- _0xc253c7['push'](_0xc253c7['shift']());
17
- } catch (_0x585ad3) {
18
- _0xc253c7['push'](_0xc253c7['shift']());
16
+ _0x3a47db['push'](_0x3a47db['shift']());
17
+ } catch (_0x2aec8b) {
18
+ _0x3a47db['push'](_0x3a47db['shift']());
19
19
  }
20
20
  }
21
- }(_0x3988, 0x51512));
21
+ }(_0x5707, 0x7d7b0));
22
22
  import { pathToFileURL } from 'node:url';
23
23
  import {
24
24
  mkdir,
@@ -28,2455 +28,2413 @@ import {
28
28
  writeFile
29
29
  } from 'node:fs/promises';
30
30
  import { homedir } from 'node:os';
31
- import _0x358960 from 'node:path';
31
+ import _0x36a60c from 'node:path';
32
32
  var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
33
- '.csv': _0x51636d(0xf4),
34
- '.gif': 'image/gif',
35
- '.jpeg': _0x51636d(0x17f),
36
- '.jpg': 'image/jpeg',
37
- '.json': _0x51636d(0x23f),
38
- '.md': 'text/markdown',
39
- '.pdf': _0x51636d(0x14f),
40
- '.png': 'image/png',
41
- '.svg': _0x51636d(0x198),
42
- '.txt': _0x51636d(0x24c),
33
+ '.csv': _0x5e54a5(0x19b),
34
+ '.gif': _0x5e54a5(0x249),
35
+ '.jpeg': 'image/jpeg',
36
+ '.jpg': _0x5e54a5(0x238),
37
+ '.json': _0x5e54a5(0x213),
38
+ '.md': _0x5e54a5(0x224),
39
+ '.pdf': 'application/pdf',
40
+ '.png': _0x5e54a5(0x21d),
41
+ '.svg': _0x5e54a5(0x1ba),
42
+ '.txt': _0x5e54a5(0x1f6),
43
43
  '.webp': 'image/webp',
44
- '.xml': _0x51636d(0x123),
45
- '.zip': _0x51636d(0x15a)
44
+ '.xml': _0x5e54a5(0x2e6),
45
+ '.zip': 'application/zip'
46
46
  };
47
- function guessContentType(_0xb55bca) {
48
- const _0x148567 = { _0x8be80f: 0x19e }, _0x23bbb7 = _0x51636d;
49
- return MIME_BY_EXTENSION[_0x358960['extname'](_0xb55bca)['toLowerCase']()] ?? _0x23bbb7(_0x148567._0x8be80f);
47
+ function guessContentType(_0xc516c8) {
48
+ const _0x2eb4aa = { _0x2d7a33: 0x1c2 }, _0x5311bf = _0x5e54a5;
49
+ return MIME_BY_EXTENSION[_0x36a60c[_0x5311bf(_0x2eb4aa._0x2d7a33)](_0xc516c8)['toLowerCase']()] ?? 'application/octet-stream';
50
50
  }
51
- function safeFilename(_0x231ac4) {
52
- return _0x231ac4['replace'](/[\\/]/g, '-');
51
+ function safeFilename(_0x5ca015) {
52
+ const _0x1b8908 = { _0x17c679: 0x217 }, _0x22e552 = _0x5e54a5;
53
+ return _0x5ca015[_0x22e552(_0x1b8908._0x17c679)](/[\\/]/g, '-');
53
54
  }
54
- function extensionFor(_0x1aabf3) {
55
- const _0x308633 = { _0x3b9f7a: 0x174 }, _0x3377cb = _0x51636d, _0x1c87c6 = Object[_0x3377cb(0x1bf)](MIME_BY_EXTENSION)[_0x3377cb(0x251)](([, _0x459e68]) => _0x459e68 === _0x1aabf3);
56
- return _0x1c87c6?.[0x0] ?? _0x3377cb(_0x308633._0x3b9f7a);
55
+ function extensionFor(_0x525f20) {
56
+ const _0x1a0ce8 = {
57
+ _0x1917a0: 0x28d,
58
+ _0x2e26c4: 0x282,
59
+ _0x300477: 0x1bf
60
+ }, _0x1bf834 = _0x5e54a5, _0xcfa76e = Object[_0x1bf834(_0x1a0ce8._0x1917a0)](MIME_BY_EXTENSION)[_0x1bf834(_0x1a0ce8._0x2e26c4)](([, _0xc59d4d]) => _0xc59d4d === _0x525f20);
61
+ return _0xcfa76e?.[0x0] ?? _0x1bf834(_0x1a0ce8._0x300477);
57
62
  }
58
- async function prepareUploadFile(_0x30effb, _0x140193 = {}) {
59
- const _0xd618cf = {
60
- _0x5ad19a: 0x166,
61
- _0x3582e5: 0x211,
62
- _0x3c6af3: 0x16f,
63
- _0x23508d: 0x138
64
- }, _0x562fc2 = _0x51636d;
65
- if (!_0x358960[_0x562fc2(0x159)](_0x30effb))
66
- throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
67
- const _0x50df4a = await stat(_0x30effb)['catch'](() => null);
68
- if (!_0x50df4a || !_0x50df4a[_0x562fc2(0x20d)]())
69
- throw new Error('File\x20not\x20found:\x20' + _0x30effb);
70
- const _0x3d28ed = _0x140193[_0x562fc2(_0xd618cf._0x5ad19a)] ?? DEFAULT_MAX_FILE_SIZE;
71
- if (_0x50df4a['size'] > _0x3d28ed)
72
- throw new Error(_0x562fc2(_0xd618cf._0x3582e5) + _0x50df4a[_0x562fc2(0x138)]);
73
- const _0x317dca = await readFile(_0x30effb), _0x5ac7bc = _0x358960['basename'](_0x30effb);
63
+ function _0x3280(_0x74c515, _0x2c5a0c) {
64
+ _0x74c515 = _0x74c515 - 0x15f;
65
+ const _0x570700 = _0x5707();
66
+ let _0x3280c8 = _0x570700[_0x74c515];
67
+ if (_0x3280['cIbsID'] === undefined) {
68
+ var _0x268695 = function (_0x8a721e) {
69
+ const _0x28bbf1 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
70
+ let _0x36a60c = '', _0xc516c8 = '';
71
+ for (let _0x5ca015 = 0x0, _0x525f20, _0xcfa76e, _0xc59d4d = 0x0; _0xcfa76e = _0x8a721e['charAt'](_0xc59d4d++); ~_0xcfa76e && (_0x525f20 = _0x5ca015 % 0x4 ? _0x525f20 * 0x40 + _0xcfa76e : _0xcfa76e, _0x5ca015++ % 0x4) ? _0x36a60c += String['fromCharCode'](0xff & _0x525f20 >> (-0x2 * _0x5ca015 & 0x6)) : 0x0) {
72
+ _0xcfa76e = _0x28bbf1['indexOf'](_0xcfa76e);
73
+ }
74
+ for (let _0x43cae4 = 0x0, _0x27eedd = _0x36a60c['length']; _0x43cae4 < _0x27eedd; _0x43cae4++) {
75
+ _0xc516c8 += '%' + ('00' + _0x36a60c['charCodeAt'](_0x43cae4)['toString'](0x10))['slice'](-0x2);
76
+ }
77
+ return decodeURIComponent(_0xc516c8);
78
+ };
79
+ _0x3280['wlrOdb'] = _0x268695, _0x3280['hUjmwo'] = {}, _0x3280['cIbsID'] = !![];
80
+ }
81
+ const _0x1581c0 = _0x570700[0x0], _0x1f8b6e = _0x74c515 + _0x1581c0, _0x340f58 = _0x3280['hUjmwo'][_0x1f8b6e];
82
+ return !_0x340f58 ? (_0x3280c8 = _0x3280['wlrOdb'](_0x3280c8), _0x3280['hUjmwo'][_0x1f8b6e] = _0x3280c8) : _0x3280c8 = _0x340f58, _0x3280c8;
83
+ }
84
+ async function prepareUploadFile(_0x43cae4, _0x27eedd = {}) {
85
+ const _0x1e6216 = {
86
+ _0x1f9268: 0x240,
87
+ _0x479386: 0x194,
88
+ _0xd5c7ff: 0x2bd,
89
+ _0xd238ca: 0x2e5
90
+ }, _0x163667 = _0x5e54a5;
91
+ if (!_0x36a60c['isAbsolute'](_0x43cae4))
92
+ throw new Error(_0x163667(0x165));
93
+ const _0x7c1e43 = await stat(_0x43cae4)['catch'](() => null);
94
+ if (!_0x7c1e43 || !_0x7c1e43[_0x163667(0x206)]())
95
+ throw new Error(_0x163667(_0x1e6216._0x1f9268) + _0x43cae4);
96
+ const _0x4a48bf = _0x27eedd[_0x163667(0x2b3)] ?? DEFAULT_MAX_FILE_SIZE;
97
+ if (_0x7c1e43['size'] > _0x4a48bf)
98
+ throw new Error(_0x163667(_0x1e6216._0x479386) + _0x7c1e43['size']);
99
+ const _0x5cf995 = await readFile(_0x43cae4), _0x157073 = _0x36a60c[_0x163667(_0x1e6216._0xd5c7ff)](_0x43cae4);
74
100
  return {
75
- 'contentBase64': _0x317dca['toString'](_0x562fc2(_0xd618cf._0x3c6af3)),
76
- 'contentType': guessContentType(_0x5ac7bc),
77
- 'filename': _0x5ac7bc,
78
- 'sizeBytes': _0x50df4a[_0x562fc2(_0xd618cf._0x23508d)]
101
+ 'contentBase64': _0x5cf995['toString'](_0x163667(0x252)),
102
+ 'contentType': guessContentType(_0x157073),
103
+ 'filename': _0x157073,
104
+ 'sizeBytes': _0x7c1e43[_0x163667(_0x1e6216._0xd238ca)]
79
105
  };
80
106
  }
81
- function _0x3988() {
82
- const _0x2c6691 = [
83
- 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
84
- 'BgLZDf90yxnRCW',
85
- 'DgfZA051BwjLCG',
86
- 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
87
- 'D29YA2vYrgLZCg9ZAxrPB24',
88
- 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
89
- 'twLZC2LUzYaTlwfNzw50lwLK',
90
- 'ywDLBNrZ',
91
- 'yxjYyxLcDwzMzxi',
92
- 'BwfYA193ywL0Aw5Nx2LUChv0',
93
- 'r0vu',
94
- 'l3nLCNzLCG',
95
- 'EM9K',
96
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
107
+ function createAttachmentCache(_0x2555fa = {}) {
108
+ const _0x5b100a = {
109
+ _0xdc174f: 0x1c8,
110
+ _0x543d67: 0x2c4,
111
+ _0x21a95d: 0x27f,
112
+ _0x69f8fd: 0x232
113
+ }, _0x56c1e8 = _0x5e54a5, _0x2506fa = _0x2555fa['cacheDir'] ?? _0x36a60c[_0x56c1e8(0x27f)](homedir(), _0x56c1e8(0x219), 'attachments');
114
+ return {
115
+ 'cacheDir': _0x2506fa,
116
+ async 'findCachedPath'(_0x18b8a4) {
117
+ const _0x56d9f8 = _0x56c1e8;
118
+ await mkdir(_0x2506fa, { 'recursive': !![] });
119
+ const _0x556fce = await readdir(_0x2506fa), _0x208586 = _0x556fce[_0x56d9f8(0x282)](_0x422508 => _0x422508[_0x56d9f8(0x285)](_0x18b8a4 + '-') || _0x422508[_0x56d9f8(0x285)](_0x18b8a4));
120
+ return _0x208586 ? _0x36a60c['join'](_0x2506fa, _0x208586) : null;
121
+ },
122
+ async 'save'(_0x4ce46b) {
123
+ const _0x18d667 = _0x56c1e8;
124
+ await mkdir(_0x2506fa, { 'recursive': !![] });
125
+ const _0x2c9d6d = _0x4ce46b[_0x18d667(0x170)]?.[_0x18d667(_0x5b100a._0xdc174f)]() ? safeFilename(_0x4ce46b[_0x18d667(0x170)]) : '' + _0x4ce46b['attachmentId'] + extensionFor(_0x4ce46b[_0x18d667(_0x5b100a._0x543d67)]), _0x474c48 = _0x36a60c[_0x18d667(_0x5b100a._0x21a95d)](_0x2506fa, _0x4ce46b[_0x18d667(0x2b7)] + '-' + _0x2c9d6d);
126
+ return await writeFile(_0x474c48, _0x4ce46b[_0x18d667(_0x5b100a._0x69f8fd)]), _0x474c48;
127
+ }
128
+ };
129
+ }
130
+ import {
131
+ createHash,
132
+ randomUUID
133
+ } from 'node:crypto';
134
+ var UNSUPPORTED_TARGET_MESSAGE = _0x5e54a5(0x2e0);
135
+ function ensureSegment(_0x2e2c2c) {
136
+ const _0x47ca55 = { _0x1690f6: 0x2a2 }, _0xc56ddc = _0x5e54a5, _0x45ff9c = _0x2e2c2c[_0xc56ddc(0x1c8)]();
137
+ if (!_0x45ff9c || _0x45ff9c[_0xc56ddc(_0x47ca55._0x1690f6)](':'))
138
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
139
+ return _0x45ff9c;
140
+ }
141
+ function parseThreadParts(_0x42c141) {
142
+ const _0x27fdc4 = { _0x309451: 0x1a1 }, _0x5c6c4f = _0x5e54a5, _0x4a7e53 = _0x42c141[_0x5c6c4f(0x272)](':');
143
+ if (_0x4a7e53['length'] < 0x1 || _0x4a7e53[_0x5c6c4f(_0x27fdc4._0x309451)] > 0x2)
144
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
145
+ return {
146
+ 'channelName': ensureSegment(_0x4a7e53[0x0] ?? ''),
147
+ 'threadShortId': _0x4a7e53[0x1] ? ensureSegment(_0x4a7e53[0x1]) : null
148
+ };
149
+ }
150
+ function parseTarget(_0x3596a8) {
151
+ const _0x35d5d6 = {
152
+ _0x4e9865: 0x1c8,
153
+ _0x5c9309: 0x2ab,
154
+ _0x518b82: 0x2d4,
155
+ _0x26b7b7: 0x2d4,
156
+ _0x4bf43e: 0x2d4,
157
+ _0x43be09: 0x212,
158
+ _0x7b55bf: 0x2b2,
159
+ _0x317886: 0x1e4
160
+ }, _0xd6a3f2 = _0x5e54a5, _0x37b44d = _0x3596a8[_0xd6a3f2(_0x35d5d6._0x4e9865)]();
161
+ if (!_0x37b44d)
162
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
163
+ if (_0x37b44d['startsWith']('#')) {
164
+ const _0x137f1b = parseThreadParts(_0x37b44d[_0xd6a3f2(_0x35d5d6._0x5c9309)](0x1)), _0x54e7c6 = '#' + _0x137f1b[_0xd6a3f2(0x2b2)];
165
+ if (!_0x137f1b[_0xd6a3f2(_0x35d5d6._0x518b82)])
166
+ return {
167
+ 'channelName': _0x137f1b[_0xd6a3f2(0x2b2)],
168
+ 'channelTarget': _0x54e7c6,
169
+ 'kind': _0xd6a3f2(0x298),
170
+ 'target': _0x54e7c6
171
+ };
172
+ return {
173
+ 'channelName': _0x137f1b['channelName'],
174
+ 'channelTarget': _0x54e7c6,
175
+ 'kind': _0xd6a3f2(0x1e4),
176
+ 'target': _0x54e7c6 + ':' + _0x137f1b[_0xd6a3f2(_0x35d5d6._0x26b7b7)],
177
+ 'threadShortId': _0x137f1b[_0xd6a3f2(_0x35d5d6._0x4bf43e)]
178
+ };
179
+ }
180
+ if (_0x37b44d[_0xd6a3f2(0x285)](_0xd6a3f2(0x1ff))) {
181
+ const _0x2e7a7b = parseThreadParts(_0x37b44d[_0xd6a3f2(0x2ab)](0x3));
182
+ if (!_0x2e7a7b[_0xd6a3f2(0x2b2)][_0xd6a3f2(0x285)](_0xd6a3f2(_0x35d5d6._0x43be09)))
183
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
184
+ const _0x224f38 = _0xd6a3f2(0x1ff) + _0x2e7a7b['channelName'];
185
+ if (!_0x2e7a7b[_0xd6a3f2(0x2d4)])
186
+ return {
187
+ 'channelName': _0x2e7a7b['channelName'],
188
+ 'channelTarget': _0x224f38,
189
+ 'kind': 'channel',
190
+ 'target': _0x224f38
191
+ };
192
+ return {
193
+ 'channelName': _0x2e7a7b[_0xd6a3f2(_0x35d5d6._0x7b55bf)],
194
+ 'channelTarget': _0x224f38,
195
+ 'kind': _0xd6a3f2(_0x35d5d6._0x317886),
196
+ 'target': _0x224f38 + ':' + _0x2e7a7b[_0xd6a3f2(0x2d4)],
197
+ 'threadShortId': _0x2e7a7b[_0xd6a3f2(0x2d4)]
198
+ };
199
+ }
200
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
201
+ }
202
+ function asErrorMessage(_0x3afe59, _0x10e115) {
203
+ const _0x38498d = _0x5e54a5;
204
+ if (typeof _0x3afe59 === _0x38498d(0x216) && _0x3afe59['trim']())
205
+ return _0x3afe59;
206
+ return _0x10e115;
207
+ }
208
+ function asRecord(_0x5079b2) {
209
+ const _0x3aba7c = { _0x317fb4: 0x2cc }, _0x5075c7 = _0x5e54a5;
210
+ return typeof _0x5079b2 === _0x5075c7(_0x3aba7c._0x317fb4) && _0x5079b2 !== null ? _0x5079b2 : {};
211
+ }
212
+ function stableStringify(_0x36df3c) {
213
+ const _0x2b703e = {
214
+ _0x3ed606: 0x1a9,
215
+ _0x1fee8d: 0x1f7
216
+ }, _0x1f0cc4 = _0x5e54a5;
217
+ if (_0x36df3c === null || typeof _0x36df3c !== _0x1f0cc4(0x2cc))
218
+ return JSON[_0x1f0cc4(_0x2b703e._0x3ed606)](_0x36df3c);
219
+ if (Array['isArray'](_0x36df3c))
220
+ return '[' + _0x36df3c[_0x1f0cc4(0x209)](_0x54d1cb => stableStringify(_0x54d1cb))[_0x1f0cc4(0x27f)](',') + ']';
221
+ const _0x5d7a58 = Object[_0x1f0cc4(0x28d)](_0x36df3c)[_0x1f0cc4(0x2de)](([, _0xe6a5fc]) => _0xe6a5fc !== void 0x0)[_0x1f0cc4(_0x2b703e._0x1fee8d)](([_0xe4183b], [_0x5e06f7]) => _0xe4183b[_0x1f0cc4(0x16a)](_0x5e06f7))['map'](([_0x126757, _0xad1ac5]) => JSON[_0x1f0cc4(0x1a9)](_0x126757) + ':' + stableStringify(_0xad1ac5));
222
+ return '{' + _0x5d7a58['join'](',') + '}';
223
+ }
224
+ function createHeaders(_0x266950) {
225
+ const _0x35f395 = _0x5e54a5;
226
+ return {
227
+ 'Content-Type': _0x35f395(0x213),
228
+ 'x-daemon-api-key': _0x266950
229
+ };
230
+ }
231
+ function toHttpBaseUrl(_0xca182c) {
232
+ const _0x22749a = {
233
+ _0x2137d3: 0x2b4,
234
+ _0x29448a: 0x1b7,
235
+ _0x254f6a: 0x1c6,
236
+ _0x325d59: 0x1bc,
237
+ _0x34babd: 0x2b1
238
+ }, _0x1adea7 = _0x5e54a5, _0x5eef70 = new URL(_0xca182c);
239
+ if (_0x5eef70[_0x1adea7(0x1e3)] === _0x1adea7(_0x22749a._0x2137d3))
240
+ _0x5eef70[_0x1adea7(0x1e3)] = _0x1adea7(_0x22749a._0x29448a);
241
+ else
242
+ _0x5eef70[_0x1adea7(0x1e3)] === _0x1adea7(_0x22749a._0x254f6a) && (_0x5eef70['protocol'] = _0x1adea7(_0x22749a._0x325d59));
243
+ return _0x5eef70[_0x1adea7(_0x22749a._0x34babd)]()[_0x1adea7(0x217)](/\/$/, '');
244
+ }
245
+ function isMentionBoundary(_0x2ebd2a) {
246
+ return !_0x2ebd2a || /\s|[([{'",。!?、:;]/['test'](_0x2ebd2a);
247
+ }
248
+ function isMentionTerminal(_0x45052c) {
249
+ const _0x59192d = { _0x1b5628: 0x228 }, _0x4be07a = _0x5e54a5;
250
+ return !_0x45052c || /\s|[)\]}'",。!?、:;,.!?]/[_0x4be07a(_0x59192d._0x1b5628)](_0x45052c);
251
+ }
252
+ function buildMatchableEntries(_0x4fa2b7) {
253
+ const _0x2d3f80 = {
254
+ _0x3b282e: 0x24d,
255
+ _0x56013d: 0x1a4,
256
+ _0x9e6b4c: 0x1c9
257
+ }, _0x3b21b8 = _0x5e54a5, _0x5cf4c1 = [];
258
+ for (const _0x1ad302 of [
259
+ ..._0x4fa2b7[_0x3b21b8(_0x2d3f80._0x3b282e)],
260
+ ..._0x4fa2b7[_0x3b21b8(0x183)]
261
+ ]) {
262
+ _0x5cf4c1['push']({
263
+ 'matchName': _0x1ad302[_0x3b21b8(_0x2d3f80._0x56013d)],
264
+ 'matchNameLower': _0x1ad302['name'][_0x3b21b8(0x1c9)](),
265
+ 'participantId': _0x1ad302['id']
266
+ }), _0x1ad302['id'] !== _0x1ad302[_0x3b21b8(_0x2d3f80._0x56013d)] && _0x5cf4c1['push']({
267
+ 'matchName': _0x1ad302['id'],
268
+ 'matchNameLower': _0x1ad302['id'][_0x3b21b8(_0x2d3f80._0x9e6b4c)](),
269
+ 'participantId': _0x1ad302['id']
270
+ });
271
+ }
272
+ return _0x5cf4c1;
273
+ }
274
+ function extractMentionedParticipantIds(_0x3babfb, _0x399ba5) {
275
+ const _0x56cb6c = {
276
+ _0x2ee22a: 0x282,
277
+ _0x56b286: 0x17e,
278
+ _0x5da3c0: 0x26d,
279
+ _0x116aa0: 0x214,
280
+ _0xa9f41c: 0x1a1
281
+ }, _0x49318f = { _0x534c30: 0x1a1 }, _0x159585 = _0x5e54a5, _0x520c30 = buildMatchableEntries(_0x399ba5)['sort']((_0x48170e, _0x3861e6) => _0x3861e6[_0x159585(0x214)][_0x159585(0x1a1)] - _0x48170e[_0x159585(0x214)][_0x159585(0x1a1)]), _0x56c083 = [], _0x53e7e9 = new Set();
282
+ for (let _0xe8eeb8 = 0x0; _0xe8eeb8 < _0x3babfb[_0x159585(0x1a1)]; _0xe8eeb8 += 0x1) {
283
+ if (_0x3babfb[_0xe8eeb8] !== '@' || !isMentionBoundary(_0x3babfb[_0xe8eeb8 - 0x1]))
284
+ continue;
285
+ const _0x200005 = _0x3babfb[_0x159585(0x2ab)](_0xe8eeb8 + 0x1), _0x9366b = _0x200005['toLocaleLowerCase'](), _0x1fefa4 = _0x520c30[_0x159585(_0x56cb6c._0x2ee22a)](_0x548098 => {
286
+ const _0x18a788 = _0x159585;
287
+ if (!_0x9366b[_0x18a788(0x285)](_0x548098[_0x18a788(0x1d4)]))
288
+ return ![];
289
+ return isMentionTerminal(_0x200005[_0x548098[_0x18a788(0x214)][_0x18a788(_0x49318f._0x534c30)]]);
290
+ });
291
+ if (!_0x1fefa4 || _0x53e7e9[_0x159585(0x2d8)](_0x1fefa4[_0x159585(0x2ed)]))
292
+ continue;
293
+ _0x53e7e9[_0x159585(_0x56cb6c._0x56b286)](_0x1fefa4[_0x159585(0x2ed)]), _0x56c083[_0x159585(_0x56cb6c._0x5da3c0)](_0x1fefa4[_0x159585(0x2ed)]), _0xe8eeb8 += _0x1fefa4[_0x159585(_0x56cb6c._0x116aa0)][_0x159585(_0x56cb6c._0xa9f41c)];
294
+ }
295
+ return _0x56c083;
296
+ }
297
+ var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
298
+ function anySignal(..._0x4b395b) {
299
+ const _0x55e0ac = { _0x2777f5: 0x21c }, _0x44e130 = _0x5e54a5, _0x3445e9 = new AbortController();
300
+ for (const _0x195a48 of _0x4b395b) {
301
+ if (_0x195a48['aborted'])
302
+ return _0x3445e9[_0x44e130(0x2dd)](_0x195a48[_0x44e130(0x195)]), _0x3445e9[_0x44e130(0x2d9)];
303
+ _0x195a48[_0x44e130(_0x55e0ac._0x2777f5)](_0x44e130(0x2dd), () => _0x3445e9['abort'](_0x195a48[_0x44e130(0x195)]), {
304
+ 'once': !![],
305
+ 'signal': _0x3445e9[_0x44e130(0x2d9)]
306
+ });
307
+ }
308
+ return _0x3445e9['signal'];
309
+ }
310
+ function createInternalAgentClient(_0x1786d1) {
311
+ const _0x326003 = {
312
+ _0x471757: 0x23c,
313
+ _0x4aa39d: 0x22b,
314
+ _0x528d4f: 0x1c8,
315
+ _0x284793: 0x274,
316
+ _0x38c636: 0x1c5,
317
+ _0xf6477b: 0x1df
318
+ }, _0x3e0a30 = {
319
+ _0x23d205: 0x2b1,
320
+ _0x405146: 0x22a,
321
+ _0x53154e: 0x232,
322
+ _0x35beb4: 0x1a1,
323
+ _0x1b11bf: 0x1f5,
324
+ _0x1e0b64: 0x209,
325
+ _0x1eff78: 0x17f,
326
+ _0x4b3c74: 0x26e,
327
+ _0x612eff: 0x216,
328
+ _0x38c49a: 0x2c6,
329
+ _0x40112: 0x1a2,
330
+ _0x5185b0: 0x216,
331
+ _0x3ed71e: 0x279,
332
+ _0x6773cf: 0x283,
333
+ _0x12187d: 0x283,
334
+ _0x275c16: 0x283,
335
+ _0x1f585b: 0x2a3,
336
+ _0x3e9002: 0x25f,
337
+ _0x34b488: 0x1b5,
338
+ _0x3abe99: 0x1d2,
339
+ _0x13cd17: 0x1d2,
340
+ _0x704b31: 0x2ea,
341
+ _0x582e72: 0x273,
342
+ _0x218e37: 0x26d,
343
+ _0x5b16d7: 0x22f,
344
+ _0x5b4cd7: 0x29f,
345
+ _0x360947: 0x189,
346
+ _0x2ddf5c: 0x210,
347
+ _0x4c2649: 0x25a,
348
+ _0x527ceb: 0x1ce,
349
+ _0x218d0b: 0x1fe
350
+ }, _0x2e1f14 = {
351
+ _0xb4d320: 0x298,
352
+ _0x361e85: 0x242,
353
+ _0x5abfea: 0x1a2
354
+ }, _0x327281 = {
355
+ _0x50ddd4: 0x2a3,
356
+ _0x1eb4d0: 0x242,
357
+ _0x33822e: 0x176,
358
+ _0x1c5266: 0x1b6,
359
+ _0x16005b: 0x259
360
+ }, _0x2b6bec = {
361
+ _0xa73d2e: 0x1de,
362
+ _0x3e2ca6: 0x22a,
363
+ _0x728828: 0x22a,
364
+ _0x3d935d: 0x2d9,
365
+ _0x34355c: 0x185,
366
+ _0x57e4f: 0x1f3,
367
+ _0x3e48f1: 0x192,
368
+ _0x4206b8: 0x1d2,
369
+ _0x149724: 0x1e9
370
+ }, _0x131671 = {
371
+ _0x228673: 0x1a2,
372
+ _0x40e847: 0x1b6,
373
+ _0x3ee8c3: 0x289,
374
+ _0x56898a: 0x175,
375
+ _0x3a3519: 0x232,
376
+ _0x106cb0: 0x170,
377
+ _0x4a9350: 0x1b0
378
+ }, _0x50b0e3 = {
379
+ _0x1f838b: 0x176,
380
+ _0x3ba3ef: 0x1b6,
381
+ _0x5f2652: 0x2ae,
382
+ _0x592ead: 0x1a9,
383
+ _0x27692c: 0x175
384
+ }, _0x8be683 = {
385
+ _0x3cffde: 0x1b6,
386
+ _0x1a2b74: 0x16d
387
+ }, _0x585cc0 = {
388
+ _0x59bdd1: 0x2ce,
389
+ _0x23ccbb: 0x1a9,
390
+ _0xffa4c9: 0x1eb
391
+ }, _0x25c44c = { _0x53ddc7: 0x1b6 }, _0x37de94 = {
392
+ _0x5dbb67: 0x1f3,
393
+ _0x13d0e5: 0x22a
394
+ }, _0x100727 = {
395
+ _0x161ef7: 0x257,
396
+ _0x359404: 0x1f3,
397
+ _0x43e21e: 0x2e7
398
+ }, _0x3f6cc9 = {
399
+ _0x1a3bc2: 0x2e7,
400
+ _0x6c47dd: 0x175
401
+ }, _0x2f0eb3 = {
402
+ _0x3a8403: 0x229,
403
+ _0x33e572: 0x175,
404
+ _0x8a6cfd: 0x232
405
+ }, _0x1f72eb = { _0x17137c: 0x22a }, _0x2cf042 = {
406
+ _0x4dc270: 0x291,
407
+ _0x1d6fc4: 0x292,
408
+ _0x11a857: 0x1a2,
409
+ _0x26fbc9: 0x175
410
+ }, _0x1c0222 = {
411
+ _0x418d53: 0x1a2,
412
+ _0x23f67d: 0x2a3,
413
+ _0x3aedbd: 0x2c6,
414
+ _0x1a832e: 0x2c6,
415
+ _0x4a1452: 0x2c6,
416
+ _0x5ac7e8: 0x2a3,
417
+ _0x462d4b: 0x255,
418
+ _0x281719: 0x2b5,
419
+ _0x539f9e: 0x176,
420
+ _0x45297c: 0x232,
421
+ _0x5ae46c: 0x20d,
422
+ _0x559af0: 0x193
423
+ }, _0x282a23 = { _0x1949b8: 0x25d }, _0xee3b1d = {
424
+ _0x1295e9: 0x283,
425
+ _0x1ab68f: 0x279,
426
+ _0x3de64a: 0x283,
427
+ _0x3a6ea1: 0x19c,
428
+ _0x3b701a: 0x2d4,
429
+ _0x2c7281: 0x216
430
+ }, _0x4a54ed = {
431
+ _0x1c06bc: 0x28e,
432
+ _0x2d823d: 0x19c,
433
+ _0x510100: 0x2d4,
434
+ _0x586305: 0x1a2,
435
+ _0x829bfd: 0x285
436
+ }, _0x17417e = {
437
+ _0x57eddd: 0x283,
438
+ _0x50aa3d: 0x28e,
439
+ _0x20b501: 0x19c,
440
+ _0x284740: 0x1a2
441
+ }, _0x5bf8b2 = {
442
+ _0x5ef0e9: 0x24d,
443
+ _0x32b83e: 0x282
444
+ }, _0x46362f = { _0x3fbf4f: 0x17f }, _0x5b83d6 = {
445
+ _0x3b4726: 0x1d9,
446
+ _0x49aa34: 0x241
447
+ }, _0x3207f9 = {
448
+ _0x5a3db2: 0x1b6,
449
+ _0x2e3b7d: 0x2c9,
450
+ _0x201763: 0x232,
451
+ _0xfb3619: 0x1cf,
452
+ _0x47cbd1: 0x2de,
453
+ _0x3f2d7d: 0x209,
454
+ _0x2bacfd: 0x2de,
455
+ _0xf238f7: 0x232,
456
+ _0x550df1: 0x205
457
+ }, _0x33a2f0 = {
458
+ _0x21414d: 0x176,
459
+ _0x4d8598: 0x291,
460
+ _0x3101f0: 0x175,
461
+ _0x347683: 0x232,
462
+ _0x5142ef: 0x2c6,
463
+ _0x208d9f: 0x232
464
+ }, _0x387f27 = {
465
+ _0x141764: 0x239,
466
+ _0x488057: 0x213,
467
+ _0x1855ab: 0x1f3
468
+ }, _0x457472 = { _0x18e114: 0x2a6 }, _0x2e7ed8 = { _0x4920e5: 0x1c0 }, _0x3b4e03 = { _0x591745: 0x2d9 }, _0x2789b0 = {
469
+ _0x44db2b: 0x15f,
470
+ _0x26c239: 0x1c8,
471
+ _0x4f00fb: 0x169
472
+ }, _0x4ce3c0 = {
473
+ _0x5dcae5: 0x1e9,
474
+ _0x59ce1e: 0x200
475
+ }, _0x5d250f = {
476
+ _0x44e2d4: 0x2c7,
477
+ _0x4876b4: 0x1d2,
478
+ _0x1aa41d: 0x217,
479
+ _0x7278d9: 0x2ab,
480
+ _0x6a88d5: 0x19d,
481
+ _0x221113: 0x178,
482
+ _0x1c2560: 0x171
483
+ }, _0x2bf35a = _0x5e54a5, _0x51c4fc = _0x1786d1['fetchImpl'] ?? fetch, _0x1e54d7 = _0x1786d1['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3956f6 = typeof _0x1786d1[_0x2bf35a(0x2a8)] === _0x2bf35a(_0x326003._0x471757) && _0x1786d1['initialLastSeenSeq'] > 0x0 ? _0x1786d1['initialLastSeenSeq'] : 0x0, _0x2895f3 = _0x1786d1[_0x2bf35a(_0x326003._0x4aa39d)]?.['trim']() || void 0x0, _0x5df0ea = _0x1786d1['sessionId']?.[_0x2bf35a(_0x326003._0x528d4f)]() || void 0x0, _0x1e6d67 = _0x1786d1['workerModeEnabled'] === !![], _0x28a5fe = _0x1786d1[_0x2bf35a(_0x326003._0x284793)]?.[_0x2bf35a(_0x326003._0x528d4f)]() || void 0x0, _0x1d06a1 = _0x1786d1[_0x2bf35a(_0x326003._0x38c636)]?.[_0x2bf35a(0x1c8)]() || void 0x0, _0xd8cb6f = createHeaders(_0x1786d1[_0x2bf35a(_0x326003._0xf6477b)]), _0x4e14a2 = toHttpBaseUrl(_0x1786d1['serverUrl']);
484
+ let _0x5ed55f = null;
485
+ const _0x52699e = new Map();
486
+ let _0x24a660 = _0x3956f6, _0x5b4179 = _0x3956f6;
487
+ function _0x20a533(_0x472de7) {
488
+ const _0xe9a112 = _0x2bf35a, _0x20739d = _0x472de7[_0xe9a112(_0x5d250f._0x44e2d4)]['headers'][_0xe9a112(_0x5d250f._0x4876b4)](_0xe9a112(0x17d)) ?? _0xe9a112(0x1c4), _0x462a89 = _0x472de7['bodyText'][_0xe9a112(0x1c8)]()[_0xe9a112(_0x5d250f._0x1aa41d)](/\s+/g, '\x20')[_0xe9a112(_0x5d250f._0x7278d9)](0x0, 0x78) || _0xe9a112(0x1aa);
489
+ return '请求\x20' + _0x472de7[_0xe9a112(_0x5d250f._0x6a88d5)] + _0xe9a112(0x287) + _0x472de7[_0xe9a112(0x2c7)][_0xe9a112(0x1f3)] + _0xe9a112(_0x5d250f._0x221113) + _0x20739d + _0xe9a112(0x1b4) + _0x462a89 + _0xe9a112(_0x5d250f._0x1c2560);
490
+ }
491
+ async function _0x4467bb(_0x4a89b5, _0x20b470) {
492
+ const _0x4a6165 = _0x2bf35a, _0x401740 = Buffer['from'](await _0x20b470[_0x4a6165(_0x4ce3c0._0x5dcae5)]())[_0x4a6165(0x2b1)]('utf8');
493
+ if (!_0x401740['trim']())
494
+ return {};
495
+ try {
496
+ return JSON[_0x4a6165(_0x4ce3c0._0x59ce1e)](_0x401740);
497
+ } catch {
498
+ throw new Error(_0x20a533({
499
+ 'bodyText': _0x401740,
500
+ 'requestUrl': _0x4a89b5,
501
+ 'response': _0x20b470
502
+ }));
503
+ }
504
+ }
505
+ function _0x59b96e(_0x237151, _0x5bd421) {
506
+ const _0x378078 = _0x2bf35a, _0x173991 = typeof _0x5bd421['idempotency_key'] === _0x378078(0x216) ? _0x5bd421[_0x378078(_0x2789b0._0x44db2b)][_0x378078(_0x2789b0._0x26c239)]() : '';
507
+ if (_0x173991)
508
+ return _0x173991;
509
+ const _0x20b6cc = Date[_0x378078(0x226)]();
510
+ for (const [_0x369e0c, _0x59d1f4] of _0x52699e) {
511
+ _0x59d1f4['expiresAt'] <= _0x20b6cc && _0x52699e['delete'](_0x369e0c);
512
+ }
513
+ const _0x128f53 = {
514
+ ..._0x5bd421,
515
+ 'idempotency_key': void 0x0
516
+ }, _0x4df93f = createHash(_0x378078(0x296))['update'](_0x237151 + ':' + stableStringify(_0x128f53))[_0x378078(0x23a)](_0x378078(_0x2789b0._0x4f00fb)), _0x47a772 = _0x237151 + ':' + _0x4df93f, _0x971fd2 = _0x52699e[_0x378078(0x1d2)](_0x47a772);
517
+ if (_0x971fd2)
518
+ return _0x971fd2[_0x378078(0x1d5)];
519
+ const _0x74e671 = _0x378078(0x208) + _0x237151 + ':' + randomUUID();
520
+ return _0x52699e['set'](_0x47a772, {
521
+ 'expiresAt': _0x20b6cc + 0x5 * 0x3c * 0x3e8,
522
+ 'value': _0x74e671
523
+ }), _0x74e671;
524
+ }
525
+ async function _0x1fa09a(_0x230c77, _0x5386b1) {
526
+ const _0x5899c2 = _0x2bf35a, _0x4e4be0 = new AbortController(), _0x57ad29 = setTimeout(() => _0x4e4be0[_0x5899c2(0x2dd)](), _0x1e54d7), _0x10ae85 = _0x5386b1?.[_0x5899c2(0x2d9)] ? anySignal(_0x5386b1[_0x5899c2(_0x3b4e03._0x591745)], _0x4e4be0[_0x5899c2(0x2d9)]) : _0x4e4be0[_0x5899c2(_0x3b4e03._0x591745)], _0x1bf59e = '' + _0x4e14a2 + _0x230c77;
527
+ try {
528
+ const _0x1f2887 = await _0x51c4fc(_0x1bf59e, {
529
+ ..._0x5386b1,
530
+ 'signal': _0x10ae85
531
+ }), _0x4c4dc0 = await _0x4467bb(_0x1bf59e, _0x1f2887);
532
+ if (!_0x1f2887['ok'] || _0x4c4dc0[_0x5899c2(0x1bb)] === ![])
533
+ throw new Error(asErrorMessage(_0x4c4dc0[_0x5899c2(0x1c0)], _0x5899c2(0x185) + _0x1f2887['status']));
534
+ return _0x4c4dc0;
535
+ } finally {
536
+ clearTimeout(_0x57ad29);
537
+ }
538
+ }
539
+ async function _0x4d7c33(_0x190509, _0x5cee2f) {
540
+ const _0x5eb603 = _0x2bf35a, _0x345adf = new AbortController(), _0x5bfe32 = setTimeout(() => _0x345adf[_0x5eb603(0x2dd)](), _0x1e54d7), _0xcf3cb6 = _0x5cee2f?.[_0x5eb603(0x2d9)] ? anySignal(_0x5cee2f['signal'], _0x345adf['signal']) : _0x345adf[_0x5eb603(0x2d9)], _0x4f4938 = '' + _0x4e14a2 + _0x190509;
541
+ try {
542
+ const _0x56c701 = await _0x51c4fc(_0x4f4938, {
543
+ ..._0x5cee2f,
544
+ 'signal': _0xcf3cb6
545
+ }), _0x5e3648 = await _0x4467bb(_0x4f4938, _0x56c701);
546
+ if (!_0x56c701['ok'])
547
+ throw new Error(asErrorMessage(_0x5e3648[_0x5eb603(_0x2e7ed8._0x4920e5)], _0x5eb603(0x185) + _0x56c701[_0x5eb603(0x1f3)]));
548
+ return _0x5e3648;
549
+ } finally {
550
+ clearTimeout(_0x5bfe32);
551
+ }
552
+ }
553
+ async function _0x280996(_0x1bb6f8) {
554
+ const _0x53fa75 = _0x2bf35a;
555
+ if (!_0x5df0ea || _0x1bb6f8 <= _0x5b4179)
556
+ return;
557
+ await _0x1fa09a(_0x53fa75(0x246) + encodeURIComponent(_0x5df0ea) + _0x53fa75(0x2e1), {
558
+ 'body': JSON['stringify']({ 'lastSeenSeq': _0x1bb6f8 }),
559
+ 'headers': _0xd8cb6f,
560
+ 'method': _0x53fa75(_0x457472._0x18e114)
561
+ }), _0x5b4179 = _0x1bb6f8;
562
+ }
563
+ async function _0x3de8b2(_0x2ccbef) {
564
+ const _0x5699bd = _0x2bf35a;
565
+ if (!_0x2895f3 || !_0x28a5fe || _0x2ccbef <= _0x5b4179)
566
+ return;
567
+ const _0x3a1ef6 = await _0x51c4fc(_0x2895f3 + _0x5699bd(_0x387f27._0x141764), {
568
+ 'body': JSON[_0x5699bd(0x1a9)]({
569
+ 'last_seen_seq': _0x2ccbef,
570
+ 'worker_session_id': _0x28a5fe
571
+ }),
572
+ 'headers': { 'Content-Type': _0x5699bd(_0x387f27._0x488057) },
573
+ 'method': _0x5699bd(0x175)
574
+ });
575
+ if (!_0x3a1ef6['ok'])
576
+ throw new Error(_0x5699bd(0x185) + _0x3a1ef6[_0x5699bd(_0x387f27._0x1855ab)]);
577
+ _0x5b4179 = _0x2ccbef;
578
+ }
579
+ async function _0x7faf44(_0x2d5dac) {
580
+ const _0x416a39 = _0x2bf35a, _0x5376a9 = parseTarget(_0x2d5dac), _0x4f5f44 = await _0x1fa09a(_0x416a39(_0x33a2f0._0x21414d) + _0x1786d1['agentId'] + _0x416a39(0x17c), {
581
+ 'body': JSON[_0x416a39(0x1a9)]({ 'target': _0x5376a9[_0x416a39(_0x33a2f0._0x4d8598)] }),
582
+ 'headers': _0xd8cb6f,
583
+ 'method': _0x416a39(_0x33a2f0._0x3101f0)
584
+ });
585
+ return {
586
+ 'channelId': _0x4f5f44[_0x416a39(_0x33a2f0._0x347683)]?.[_0x416a39(_0x33a2f0._0x5142ef)] ?? '',
587
+ 'target': _0x5376a9[_0x416a39(0x28e)],
588
+ 'task': _0x4f5f44[_0x416a39(0x232)]?.[_0x416a39(0x286)],
589
+ 'threadId': _0x4f5f44[_0x416a39(0x232)]?.['threadId'],
590
+ 'threadNumber': _0x4f5f44[_0x416a39(_0x33a2f0._0x208d9f)]?.['threadNumber']
591
+ };
592
+ }
593
+ async function _0x10dedb(_0x3c7326 = {}) {
594
+ const _0x29f524 = _0x2bf35a;
595
+ if (!_0x3c7326[_0x29f524(_0x5b83d6._0x3b4726)] && _0x5ed55f)
596
+ return _0x5ed55f;
597
+ return _0x5ed55f = (async () => {
598
+ const _0x566a9d = _0x29f524, _0x76684d = await _0x1fa09a(_0x566a9d(0x176) + _0x1786d1[_0x566a9d(_0x3207f9._0x5a3db2)] + _0x566a9d(_0x3207f9._0x2e3b7d), {
599
+ 'headers': _0xd8cb6f,
600
+ 'method': _0x566a9d(0x22a)
601
+ }), _0x145924 = _0x76684d[_0x566a9d(_0x3207f9._0x201763)]?.[_0x566a9d(_0x3207f9._0xfb3619)] ?? [], _0x25d16f = _0x145924[_0x566a9d(_0x3207f9._0x47cbd1)](_0x4f1ad8 => _0x4f1ad8[_0x566a9d(0x25d)]?.[_0x566a9d(0x1ef)] === _0x566a9d(0x2d1))[_0x566a9d(_0x3207f9._0x3f2d7d)](_0x2f33ee => ({
602
+ 'id': _0x387e51(_0x2f33ee),
603
+ 'name': _0x287fe8(_0x2f33ee)
604
+ }))[_0x566a9d(_0x3207f9._0x2bacfd)](_0x3aaf3f => _0x3aaf3f['id']), _0x436d2f = _0x145924['filter'](_0x9bdd59 => _0x9bdd59[_0x566a9d(0x25d)]?.[_0x566a9d(0x1ef)] !== _0x566a9d(0x2d1))[_0x566a9d(_0x3207f9._0x3f2d7d)](_0x521d4a => ({
605
+ 'id': _0x387e51(_0x521d4a),
606
+ 'name': _0x287fe8(_0x521d4a)
607
+ }))[_0x566a9d(_0x3207f9._0x47cbd1)](_0x5303db => _0x5303db['id']), _0x3b0460 = _0x76684d[_0x566a9d(_0x3207f9._0xf238f7)]?.[_0x566a9d(_0x3207f9._0x550df1)]['id'] ?? '';
608
+ return {
609
+ 'agents': _0x25d16f,
610
+ 'channels': _0x76684d[_0x566a9d(0x232)]?.[_0x566a9d(0x262)] ?? [],
611
+ 'humans': _0x436d2f,
612
+ 'serverId': _0x3b0460,
613
+ 'serverName': _0x76684d['data']?.[_0x566a9d(0x205)]['name'] ?? _0x3b0460
614
+ };
615
+ })()[_0x29f524(_0x5b83d6._0x49aa34)](_0x4ad413 => {
616
+ _0x5ed55f = null;
617
+ throw _0x4ad413;
618
+ }), _0x5ed55f;
619
+ }
620
+ function _0x4cf133(_0x21ae24, _0x38b5fd) {
621
+ const _0x1e2f81 = _0x2bf35a;
622
+ return _0x38b5fd['agents'][_0x1e2f81(_0x46362f._0x3fbf4f)](_0x366b78 => _0x366b78['id'] === _0x21ae24 || _0x366b78['name'] === _0x21ae24) ? 'agent' : 'human';
623
+ }
624
+ function _0x5e12dc(_0x3f5976, _0x180552) {
625
+ const _0x137be8 = _0x2bf35a, _0x5e6725 = [
626
+ ..._0x180552[_0x137be8(_0x5bf8b2._0x5ef0e9)],
627
+ ..._0x180552[_0x137be8(0x183)]
628
+ ][_0x137be8(_0x5bf8b2._0x32b83e)](_0x2038ca => _0x2038ca['id'] === _0x3f5976);
629
+ return _0x5e6725?.[_0x137be8(0x1a4)] ?? _0x3f5976;
630
+ }
631
+ function _0x1dcadb(_0x564a2a) {
632
+ const _0x49ca1f = _0x2bf35a;
633
+ if (_0x564a2a[_0x49ca1f(_0x17417e._0x57eddd)] != null)
634
+ return _0x564a2a[_0x49ca1f(_0x17417e._0x50aa3d)] + ':t' + _0x564a2a['threadNumber'];
635
+ if (_0x564a2a[_0x49ca1f(0x19c)])
636
+ return _0x564a2a['channelTarget'] + ':' + _0x564a2a[_0x49ca1f(_0x17417e._0x20b501)];
637
+ if (_0x564a2a[_0x49ca1f(_0x17417e._0x284740)])
638
+ return _0x564a2a[_0x49ca1f(0x28e)] + ':' + _0x564a2a['threadId'][_0x49ca1f(0x2ab)](0x0, 0x8);
639
+ return _0x564a2a[_0x49ca1f(0x28e)];
640
+ }
641
+ function _0x16fb41(_0x35826d, _0x4a881b) {
642
+ const _0x155cce = _0x2bf35a;
643
+ try {
644
+ const _0x1f7783 = parseTarget(_0x35826d);
645
+ if (_0x1f7783['kind'] !== _0x155cce(0x1e4) || _0x1f7783[_0x155cce(_0x4a54ed._0x1c06bc)] !== _0x4a881b[_0x155cce(0x28e)])
646
+ return ![];
647
+ if (_0x4a881b['threadNumber'] != null && _0x1f7783['threadShortId'] === 't' + _0x4a881b['threadNumber'])
648
+ return !![];
649
+ if (_0x4a881b['rootMessageId'])
650
+ return _0x1f7783[_0x155cce(0x2d4)] === _0x4a881b[_0x155cce(_0x4a54ed._0x2d823d)] || _0x4a881b[_0x155cce(0x19c)][_0x155cce(0x285)](_0x1f7783[_0x155cce(_0x4a54ed._0x510100)]);
651
+ if (_0x4a881b[_0x155cce(_0x4a54ed._0x586305)])
652
+ return _0x1f7783[_0x155cce(_0x4a54ed._0x510100)] === _0x4a881b[_0x155cce(0x1a2)] || _0x4a881b[_0x155cce(0x1a2)][_0x155cce(_0x4a54ed._0x829bfd)](_0x1f7783[_0x155cce(0x2d4)]);
653
+ return ![];
654
+ } catch {
655
+ return ![];
656
+ }
657
+ }
658
+ function _0x5d3d0c(_0x3e78a7, _0x310bc7) {
659
+ const _0x3e3a13 = _0x2bf35a;
660
+ try {
661
+ const _0x2d4242 = parseTarget(_0x3e78a7);
662
+ if (_0x2d4242['kind'] !== 'thread')
663
+ return ![];
664
+ const _0x49bd9a = typeof _0x310bc7[_0x3e3a13(_0xee3b1d._0x1295e9)] === _0x3e3a13(0x23c) && Number[_0x3e3a13(_0xee3b1d._0x1ab68f)](_0x310bc7[_0x3e3a13(_0xee3b1d._0x3de64a)]) ? _0x310bc7[_0x3e3a13(0x283)] : void 0x0;
665
+ if (_0x49bd9a != null && _0x2d4242['threadShortId'] === 't' + _0x49bd9a)
666
+ return !![];
667
+ const _0x57c962 = typeof _0x310bc7[_0x3e3a13(_0xee3b1d._0x3a6ea1)] === 'string' ? _0x310bc7[_0x3e3a13(0x19c)] : void 0x0;
668
+ if (_0x57c962)
669
+ return _0x2d4242[_0x3e3a13(_0xee3b1d._0x3b701a)] === _0x57c962 || _0x57c962[_0x3e3a13(0x285)](_0x2d4242[_0x3e3a13(0x2d4)]);
670
+ const _0x6ecf37 = typeof _0x310bc7[_0x3e3a13(0x1a2)] === _0x3e3a13(_0xee3b1d._0x2c7281) ? _0x310bc7[_0x3e3a13(0x1a2)] : void 0x0;
671
+ return Boolean(_0x6ecf37) && (_0x2d4242[_0x3e3a13(0x2d4)] === _0x6ecf37 || _0x6ecf37['startsWith'](_0x2d4242[_0x3e3a13(0x2d4)]));
672
+ } catch {
673
+ return ![];
674
+ }
675
+ }
676
+ function _0x387e51(_0x513b23) {
677
+ const _0x3c528a = _0x2bf35a;
678
+ return _0x513b23[_0x3c528a(0x29c)]?.[_0x3c528a(0x2ed)] ?? _0x513b23[_0x3c528a(_0x282a23._0x1949b8)]?.['id'] ?? _0x513b23[_0x3c528a(0x2ed)] ?? '';
679
+ }
680
+ function _0x287fe8(_0xf04ba2) {
681
+ return _0xf04ba2['participant']?.['name'] ?? _0x387e51(_0xf04ba2);
682
+ }
683
+ async function _0x5d1401(_0x3c2338) {
684
+ const _0x568cde = _0x2bf35a, _0x3d693b = Math[_0x568cde(0x225)](_0x3c2338[_0x568cde(0x242)] ?? 0x32, 0x64), _0x216c38 = await _0x10dedb(), _0x280028 = new URLSearchParams();
685
+ _0x280028[_0x568cde(0x2a3)](_0x568cde(0x242), String(_0x3d693b));
686
+ _0x3c2338[_0x568cde(0x1a2)] ? (_0x280028['set'](_0x568cde(_0x1c0222._0x418d53), _0x3c2338[_0x568cde(0x1a2)]), _0x280028[_0x568cde(_0x1c0222._0x23f67d)](_0x568cde(0x2c6), _0x3c2338[_0x568cde(_0x1c0222._0x3aedbd)])) : _0x280028[_0x568cde(_0x1c0222._0x23f67d)](_0x568cde(_0x1c0222._0x1a832e), _0x3c2338[_0x568cde(_0x1c0222._0x4a1452)]);
687
+ _0x3c2338[_0x568cde(0x2b5)] && _0x280028[_0x568cde(_0x1c0222._0x5ac7e8)](_0x568cde(_0x1c0222._0x462d4b), String(_0x3c2338[_0x568cde(_0x1c0222._0x281719)]));
688
+ _0x3c2338[_0x568cde(0x21b)] !== void 0x0 && _0x280028[_0x568cde(0x2a3)]('after', String(_0x3c2338[_0x568cde(0x21b)]));
689
+ const _0x3a0d1f = await _0x1fa09a(_0x568cde(_0x1c0222._0x539f9e) + _0x1786d1[_0x568cde(0x1b6)] + _0x568cde(0x1e0) + _0x280028['toString'](), {
690
+ 'headers': _0xd8cb6f,
691
+ 'method': 'GET'
692
+ }), _0x4bd4ea = (_0x3a0d1f[_0x568cde(_0x1c0222._0x45297c)] ?? [])[_0x568cde(0x209)](_0x36cd7a => ({
693
+ 'attachments': (_0x36cd7a[_0x568cde(0x20b)] ?? [])[_0x568cde(0x209)](_0x5b01f2 => ({
694
+ 'filename': _0x5b01f2[_0x568cde(0x289)] ?? _0x5b01f2['id'],
695
+ 'id': _0x5b01f2['id']
696
+ })),
697
+ 'content': _0x36cd7a['bodyMarkdown'] ?? '',
698
+ 'createdAt': _0x36cd7a['createdAt'],
699
+ ..._0x36cd7a['kind'] && _0x36cd7a[_0x568cde(0x189)] !== _0x568cde(0x28f) ? { 'kind': _0x36cd7a['kind'] } : {},
700
+ 'messageId': _0x36cd7a['id'],
701
+ 'senderName': _0x5e12dc(_0x36cd7a[_0x568cde(0x25a)], _0x216c38),
702
+ 'senderType': _0x4cf133(_0x36cd7a[_0x568cde(0x25a)], _0x216c38),
703
+ 'seq': _0x36cd7a[_0x568cde(0x1ad)] ?? 0x0
704
+ }));
705
+ return {
706
+ 'channel': _0x3c2338[_0x568cde(0x28e)],
707
+ 'hasMore': _0x3a0d1f[_0x568cde(_0x1c0222._0x5ae46c)]?.[_0x568cde(_0x1c0222._0x559af0)] ?? ![],
708
+ 'messages': _0x4bd4ea,
709
+ 'nextCursor': _0x3a0d1f[_0x568cde(0x20d)]?.[_0x568cde(0x255)]
710
+ };
711
+ }
712
+ return {
713
+ async 'sendMessage'(_0x1463af) {
714
+ const _0x595375 = _0x2bf35a, _0xc5370e = await _0x7faf44(_0x1463af[_0x595375(_0x2cf042._0x4dc270)]), _0x443ba7 = _0x1463af['content']['includes']('@') ? extractMentionedParticipantIds(_0x1463af[_0x595375(0x22f)], await _0x10dedb()) : [], _0x39ae6c = await _0x1fa09a(_0x595375(0x176) + _0x1786d1['agentId'] + _0x595375(_0x2cf042._0x1d6fc4), {
715
+ 'body': JSON[_0x595375(0x1a9)]({
716
+ 'attachment_ids': _0x1463af[_0x595375(0x186)],
717
+ 'bodyMarkdown': _0x1463af['content'],
718
+ 'channelId': _0xc5370e['channelId'],
719
+ ..._0x443ba7['length'] > 0x0 ? { 'mentionedParticipantIds': _0x443ba7 } : {},
720
+ 'threadId': _0xc5370e[_0x595375(_0x2cf042._0x11a857)],
721
+ ..._0x1463af[_0x595375(0x1c1)] ? { 'visibility': _0x1463af['visibility'] } : {}
722
+ }),
723
+ 'headers': _0xd8cb6f,
724
+ 'method': _0x595375(_0x2cf042._0x26fbc9)
725
+ });
726
+ return { 'messageId': _0x39ae6c[_0x595375(0x232)]?.['id'] ?? '' };
727
+ },
728
+ async 'listSchedules'() {
729
+ const _0x439d10 = _0x2bf35a, _0x414075 = await _0x1fa09a('/api/internal/schedules', {
730
+ 'headers': _0xd8cb6f,
731
+ 'method': _0x439d10(_0x1f72eb._0x17137c)
732
+ });
733
+ return _0x414075[_0x439d10(0x232)] ?? [];
734
+ },
735
+ async 'claimScheduleRun'(_0x898a85) {
736
+ const _0x2f91d7 = _0x2bf35a, _0x1372ca = await _0x1fa09a(_0x2f91d7(_0x2f0eb3._0x3a8403), {
737
+ 'body': JSON['stringify'](_0x898a85),
738
+ 'headers': _0xd8cb6f,
739
+ 'method': _0x2f91d7(_0x2f0eb3._0x33e572)
740
+ });
741
+ return _0x1372ca[_0x2f91d7(_0x2f0eb3._0x8a6cfd)] ?? {
742
+ 'granted': ![],
743
+ 'runId': null,
744
+ 'schedule': null,
745
+ 'scheduledFor': _0x898a85[_0x2f91d7(0x1ca)]
746
+ };
747
+ },
748
+ async 'startScheduleRun'(_0x5dafe5) {
749
+ const _0x1e9e9c = _0x2bf35a, _0x3e2462 = await _0x1fa09a('/api/internal/schedules/' + encodeURIComponent(_0x5dafe5[_0x1e9e9c(_0x3f6cc9._0x1a3bc2)]) + '/start', {
750
+ 'body': JSON[_0x1e9e9c(0x1a9)]({}),
751
+ 'headers': _0xd8cb6f,
752
+ 'method': _0x1e9e9c(_0x3f6cc9._0x6c47dd)
753
+ });
754
+ return _0x3e2462['data'] ?? {
755
+ 'claimedByDaemonId': '',
756
+ 'id': _0x5dafe5[_0x1e9e9c(0x2e7)],
757
+ 'scheduleId': '',
758
+ 'status': 'running'
759
+ };
760
+ },
761
+ async 'finishScheduleRun'(_0x57e219) {
762
+ const _0x28e583 = _0x2bf35a, _0x2b0f68 = await _0x1fa09a(_0x28e583(_0x100727._0x161ef7) + encodeURIComponent(_0x57e219[_0x28e583(0x2e7)]) + '/finish', {
763
+ 'body': JSON['stringify']({
764
+ 'error': _0x57e219[_0x28e583(0x1c0)],
765
+ 'resultJson': _0x57e219['resultJson'],
766
+ 'status': _0x57e219[_0x28e583(_0x100727._0x359404)]
767
+ }),
768
+ 'headers': _0xd8cb6f,
769
+ 'method': _0x28e583(0x175)
770
+ });
771
+ return _0x2b0f68[_0x28e583(0x232)] ?? {
772
+ 'nextRunAt': null,
773
+ 'run': {
774
+ 'claimedByDaemonId': '',
775
+ 'id': _0x57e219[_0x28e583(_0x100727._0x43e21e)],
776
+ 'scheduleId': '',
777
+ 'status': _0x57e219['status']
778
+ }
779
+ };
780
+ },
781
+ async 'listTasks'(_0x4685fa) {
782
+ const _0x1d2509 = _0x2bf35a, _0x292d26 = new URLSearchParams();
783
+ return _0x292d26['set'](_0x1d2509(0x298), _0x4685fa[_0x1d2509(0x298)]), _0x4685fa[_0x1d2509(_0x37de94._0x5dbb67)] && _0x292d26[_0x1d2509(0x2a3)](_0x1d2509(_0x37de94._0x5dbb67), _0x4685fa[_0x1d2509(_0x37de94._0x5dbb67)]), _0x4d7c33('/internal/agent/' + _0x1786d1['agentId'] + _0x1d2509(0x269) + _0x292d26['toString'](), {
784
+ 'headers': _0xd8cb6f,
785
+ 'method': _0x1d2509(_0x37de94._0x13d0e5)
786
+ });
787
+ },
788
+ async 'createTasks'(_0x17c4e2) {
789
+ const _0x26b7fc = _0x2bf35a;
790
+ return _0x4d7c33(_0x26b7fc(0x176) + _0x1786d1[_0x26b7fc(_0x25c44c._0x53ddc7)] + '/tasks', {
791
+ 'body': JSON['stringify']({
792
+ ..._0x17c4e2,
793
+ 'idempotency_key': _0x59b96e('create_tasks', _0x17c4e2)
794
+ }),
795
+ 'headers': _0xd8cb6f,
796
+ 'method': _0x26b7fc(0x175)
797
+ });
798
+ },
799
+ async 'claimTasks'(_0x3f2a3b) {
800
+ const _0x1e07ba = _0x2bf35a;
801
+ return _0x4d7c33(_0x1e07ba(0x176) + _0x1786d1['agentId'] + _0x1e07ba(_0x585cc0._0x59bdd1), {
802
+ 'body': JSON[_0x1e07ba(_0x585cc0._0x23ccbb)]({
803
+ ..._0x3f2a3b,
804
+ 'idempotency_key': _0x59b96e(_0x1e07ba(_0x585cc0._0xffa4c9), _0x3f2a3b)
805
+ }),
806
+ 'headers': _0xd8cb6f,
807
+ 'method': _0x1e07ba(0x175)
808
+ });
809
+ },
810
+ async 'unclaimTask'(_0x3de529) {
811
+ const _0x36aec6 = _0x2bf35a;
812
+ return _0x4d7c33('/internal/agent/' + _0x1786d1[_0x36aec6(_0x8be683._0x3cffde)] + _0x36aec6(_0x8be683._0x1a2b74), {
813
+ 'body': JSON['stringify']({
814
+ ..._0x3de529,
815
+ 'idempotency_key': _0x59b96e(_0x36aec6(0x24a), _0x3de529)
816
+ }),
817
+ 'headers': _0xd8cb6f,
818
+ 'method': _0x36aec6(0x175)
819
+ });
820
+ },
821
+ async 'updateTaskStatus'(_0x246da1) {
822
+ const _0x3c9ce2 = _0x2bf35a;
823
+ return _0x4d7c33(_0x3c9ce2(_0x50b0e3._0x1f838b) + _0x1786d1[_0x3c9ce2(_0x50b0e3._0x3ba3ef)] + _0x3c9ce2(_0x50b0e3._0x5f2652), {
824
+ 'body': JSON[_0x3c9ce2(_0x50b0e3._0x592ead)]({
825
+ ..._0x246da1,
826
+ 'idempotency_key': _0x59b96e(_0x3c9ce2(0x1f1), _0x246da1)
827
+ }),
828
+ 'headers': _0xd8cb6f,
829
+ 'method': _0x3c9ce2(_0x50b0e3._0x27692c)
830
+ });
831
+ },
832
+ async 'uploadFile'(_0x1129fe) {
833
+ const _0x255750 = _0x2bf35a, _0x5902a3 = await _0x7faf44(_0x1129fe[_0x255750(0x298)]);
834
+ if (_0x5902a3[_0x255750(_0x131671._0x228673)])
835
+ throw new Error(_0x255750(0x2c0));
836
+ const _0x583176 = await _0x1fa09a(_0x255750(0x176) + _0x1786d1[_0x255750(_0x131671._0x40e847)] + _0x255750(0x1dc), {
837
+ 'body': JSON[_0x255750(0x1a9)]({
838
+ 'channel': _0x5902a3[_0x255750(0x291)],
839
+ 'contentBase64': _0x1129fe['contentBase64'],
840
+ 'contentType': _0x1129fe[_0x255750(0x2c4)],
841
+ 'originalFilename': _0x1129fe[_0x255750(_0x131671._0x3ee8c3)]
842
+ }),
843
+ 'headers': _0xd8cb6f,
844
+ 'method': _0x255750(_0x131671._0x56898a)
845
+ });
846
+ return {
847
+ 'attachmentId': _0x583176['data']?.['id'] ?? '',
848
+ 'filename': _0x583176[_0x255750(_0x131671._0x3a3519)]?.[_0x255750(_0x131671._0x106cb0)] ?? _0x1129fe[_0x255750(0x289)],
849
+ 'sizeBytes': _0x583176[_0x255750(0x232)]?.[_0x255750(_0x131671._0x4a9350)] ?? 0x0
850
+ };
851
+ },
852
+ async 'downloadAttachment'(_0x473e7b) {
853
+ const _0x124f1e = _0x2bf35a, _0x5d2b16 = await _0x1fa09a(_0x124f1e(_0x2b6bec._0xa73d2e) + _0x473e7b, {
854
+ 'headers': _0xd8cb6f,
855
+ 'method': _0x124f1e(_0x2b6bec._0x3e2ca6)
856
+ }), _0x2bc03f = new AbortController(), _0x1546c2 = setTimeout(() => _0x2bc03f[_0x124f1e(0x2dd)](), _0x1e54d7);
857
+ try {
858
+ const _0x5287f7 = await _0x51c4fc(_0x4e14a2 + _0x124f1e(0x1de) + _0x473e7b + '/content', {
859
+ 'headers': _0xd8cb6f,
860
+ 'method': _0x124f1e(_0x2b6bec._0x728828),
861
+ 'signal': _0x2bc03f[_0x124f1e(_0x2b6bec._0x3d935d)]
862
+ });
863
+ if (!_0x5287f7['ok'])
864
+ throw new Error(_0x124f1e(_0x2b6bec._0x34355c) + _0x5287f7[_0x124f1e(_0x2b6bec._0x57e4f)]);
865
+ return {
866
+ 'contentType': _0x5d2b16[_0x124f1e(0x232)]?.[_0x124f1e(0x2c4)] ?? _0x5287f7[_0x124f1e(_0x2b6bec._0x3e48f1)][_0x124f1e(_0x2b6bec._0x4206b8)](_0x124f1e(0x17d)) ?? _0x124f1e(0x174),
867
+ 'data': Buffer[_0x124f1e(0x197)](await _0x5287f7[_0x124f1e(_0x2b6bec._0x149724)]()),
868
+ 'originalFilename': _0x5d2b16[_0x124f1e(0x232)]?.[_0x124f1e(0x170)]
869
+ };
870
+ } finally {
871
+ clearTimeout(_0x1546c2);
872
+ }
873
+ },
874
+ async 'listServer'() {
875
+ return _0x10dedb({ 'forceRefresh': !![] });
876
+ },
877
+ async 'getLatestEventSeq'() {
878
+ const _0x86b083 = _0x2bf35a, _0x44858e = new URLSearchParams();
879
+ _0x44858e[_0x86b083(0x2a3)](_0x86b083(0x268), '0'), _0x44858e[_0x86b083(_0x327281._0x50ddd4)](_0x86b083(_0x327281._0x1eb4d0), '1');
880
+ const _0xa46024 = await _0x1fa09a(_0x86b083(_0x327281._0x33822e) + _0x1786d1[_0x86b083(_0x327281._0x1c5266)] + _0x86b083(0x182) + _0x44858e['toString'](), {
881
+ 'headers': _0xd8cb6f,
882
+ 'method': 'GET'
883
+ }), _0x3dad47 = _0xa46024[_0x86b083(0x20d)]?.[_0x86b083(_0x327281._0x16005b)];
884
+ return typeof _0x3dad47 === 'number' && _0x3dad47 > 0x0 ? _0x3dad47 : 0x0;
885
+ },
886
+ async 'readHistory'(_0x7cd8f2) {
887
+ const _0x1bc9ba = _0x2bf35a, _0x48c781 = await _0x7faf44(_0x7cd8f2[_0x1bc9ba(_0x2e1f14._0xb4d320)]);
888
+ return _0x5d1401({
889
+ 'after': _0x7cd8f2[_0x1bc9ba(0x21b)],
890
+ 'before': _0x7cd8f2[_0x1bc9ba(0x2b5)],
891
+ 'channelId': _0x48c781['channelId'],
892
+ 'channelTarget': _0x48c781[_0x1bc9ba(0x291)],
893
+ 'limit': _0x7cd8f2[_0x1bc9ba(_0x2e1f14._0x361e85)],
894
+ 'threadId': _0x48c781[_0x1bc9ba(_0x2e1f14._0x5abfea)]
895
+ });
896
+ },
897
+ 'resolveTarget': _0x7faf44,
898
+ async 'checkMessages'() {
899
+ const _0x43071d = {
900
+ _0x58eb64: 0x1e8,
901
+ _0x18e237: 0x26e
902
+ }, _0xdcb3e1 = _0x2bf35a, _0x2b2067 = new URLSearchParams();
903
+ _0x2b2067[_0xdcb3e1(0x2a3)](_0xdcb3e1(0x268), String(_0x24a660));
904
+ const _0xfbedac = _0x2b2067[_0xdcb3e1(_0x3e0a30._0x23d205)](), _0x2b826f = await _0x1fa09a(_0xdcb3e1(0x176) + _0x1786d1[_0xdcb3e1(0x1b6)] + '/receive' + (_0xfbedac ? '?' + _0xfbedac : ''), {
905
+ 'headers': _0xd8cb6f,
906
+ 'method': _0xdcb3e1(_0x3e0a30._0x405146)
907
+ }), _0x337ce7 = _0x2b826f[_0xdcb3e1(_0x3e0a30._0x53154e)] ?? [], _0x5c78a4 = _0x2b826f[_0xdcb3e1(0x20d)]?.[_0xdcb3e1(0x255)], _0x398634 = _0x1d06a1 ? _0x337ce7[_0xdcb3e1(0x2de)](_0x5a8c4a => {
908
+ const _0x1562f8 = _0xdcb3e1;
909
+ if (_0x5a8c4a['aggregateType'] !== _0x1562f8(_0x43071d._0x58eb64))
910
+ return ![];
911
+ return _0x5d3d0c(_0x1d06a1, asRecord(_0x5a8c4a[_0x1562f8(_0x43071d._0x18e237)]));
912
+ }) : _0x337ce7, _0x4f4167 = _0x5c78a4 !== void 0x0 ? _0x1d06a1 ? Math[_0xdcb3e1(0x23d)](_0x24a660, _0x398634[_0xdcb3e1(_0x3e0a30._0x35beb4)] > 0x0 ? _0x398634[_0x398634[_0xdcb3e1(0x1a1)] - 0x1][_0xdcb3e1(0x1f5)] : _0x24a660) : Math[_0xdcb3e1(0x23d)](_0x24a660, _0x5c78a4) : _0x398634[_0xdcb3e1(0x1a1)] > 0x0 ? Math[_0xdcb3e1(0x23d)](_0x24a660, _0x398634[_0x398634['length'] - 0x1][_0xdcb3e1(_0x3e0a30._0x1b11bf)]) : _0x24a660, _0x3dca49 = (_0x1d06a1 ? _0x398634 : _0x337ce7)['filter'](_0x1c55b5 => _0x1c55b5[_0xdcb3e1(0x204)] === 'message');
913
+ let _0x352e07 = await _0x10dedb(), _0xc184de = new Map(_0x352e07[_0xdcb3e1(0x262)][_0xdcb3e1(_0x3e0a30._0x1e0b64)](_0x3b8607 => [
914
+ _0x3b8607['id'],
915
+ _0x3b8607
916
+ ]));
917
+ const _0x33a4c4 = _0x3dca49[_0xdcb3e1(_0x3e0a30._0x1eff78)](_0xaac87f => {
918
+ const _0x537908 = _0xdcb3e1, _0x1fa786 = asRecord(_0xaac87f[_0x537908(0x26e)]), _0x119b23 = typeof _0x1fa786?.[_0x537908(0x2c6)] === _0x537908(0x216) ? _0x1fa786['channelId'] : '';
919
+ return Boolean(_0x119b23) && !_0xc184de['has'](_0x119b23);
920
+ });
921
+ _0x33a4c4 && (_0x352e07 = await _0x10dedb({ 'forceRefresh': !![] }), _0xc184de = new Map(_0x352e07[_0xdcb3e1(0x262)]['map'](_0x5d6b0f => [
922
+ _0x5d6b0f['id'],
923
+ _0x5d6b0f
924
+ ])));
925
+ const _0x2e91f6 = new Map();
926
+ for (const _0x51f200 of _0x3dca49) {
927
+ const _0x317f55 = asRecord(_0x51f200[_0xdcb3e1(_0x3e0a30._0x4b3c74)]), _0x51f726 = typeof _0x317f55['channelId'] === _0xdcb3e1(_0x3e0a30._0x612eff) ? _0x317f55[_0xdcb3e1(_0x3e0a30._0x38c49a)] : '';
928
+ if (!_0x51f726)
929
+ continue;
930
+ const _0x12ec9e = typeof _0x317f55[_0xdcb3e1(_0x3e0a30._0x40112)] === 'string' ? _0x317f55['threadId'] : void 0x0, _0x136ae5 = typeof _0x317f55[_0xdcb3e1(0x19c)] === _0xdcb3e1(_0x3e0a30._0x5185b0) ? _0x317f55['rootMessageId'] : void 0x0, _0xcbaedb = typeof _0x317f55[_0xdcb3e1(0x283)] === _0xdcb3e1(0x23c) && Number[_0xdcb3e1(_0x3e0a30._0x3ed71e)](_0x317f55[_0xdcb3e1(_0x3e0a30._0x6773cf)]) ? _0x317f55[_0xdcb3e1(_0x3e0a30._0x12187d)] : void 0x0, _0x191e97 = Boolean(_0x12ec9e && (!_0x136ae5 || _0x51f200[_0xdcb3e1(0x25f)] !== _0x136ae5)), _0x13ca31 = _0x191e97 ? _0x51f726 + ':' + _0x12ec9e : _0x51f726, _0x50fc2e = _0x2e91f6[_0xdcb3e1(0x1d2)](_0x13ca31) ?? {
931
+ 'aggregateIds': [],
932
+ 'channelId': _0x51f726,
933
+ 'entries': new Map(),
934
+ 'isThreadReply': _0x191e97,
935
+ 'rootMessageId': _0x136ae5,
936
+ 'threadNumber': _0xcbaedb,
937
+ 'threadId': _0x191e97 ? _0x12ec9e : void 0x0
938
+ };
939
+ _0x50fc2e[_0xdcb3e1(_0x3e0a30._0x275c16)] == null && _0xcbaedb != null && (_0x50fc2e[_0xdcb3e1(0x283)] = _0xcbaedb), !_0x50fc2e['rootMessageId'] && _0x136ae5 && (_0x50fc2e['rootMessageId'] = _0x136ae5), _0x50fc2e['aggregateIds'][_0xdcb3e1(0x26d)](_0x51f200[_0xdcb3e1(0x25f)]), _0x50fc2e[_0xdcb3e1(0x28d)][_0xdcb3e1(_0x3e0a30._0x1f585b)](_0x51f200[_0xdcb3e1(_0x3e0a30._0x3e9002)], {
940
+ 'payloadJson': _0x51f200['payloadJson'],
941
+ 'seq': _0x51f200[_0xdcb3e1(0x1f5)]
942
+ }), _0x2e91f6['set'](_0x13ca31, _0x50fc2e);
943
+ }
944
+ const _0x37bfed = [];
945
+ for (const _0xeb7efd of _0x2e91f6[_0xdcb3e1(_0x3e0a30._0x34b488)]()) {
946
+ const {
947
+ channelId: _0x5a29e2,
948
+ threadId: _0x359da1,
949
+ rootMessageId: _0xdb1846,
950
+ threadNumber: _0x3b9e53,
951
+ aggregateIds: _0x4487df,
952
+ isThreadReply: _0x3c399a,
953
+ entries: _0x45ef10
954
+ } = _0xeb7efd, _0x297d2b = _0xc184de[_0xdcb3e1(_0x3e0a30._0x3abe99)](_0x5a29e2), _0x3d96c3 = _0x297d2b?.[_0xdcb3e1(0x1a4)] ?? _0x5a29e2, _0x312ff3 = _0x297d2b?.[_0xdcb3e1(0x189)] === 'dm' ? 'dm:' + _0x3d96c3 : '#' + _0x3d96c3, _0x2283b2 = {
955
+ 'channelTarget': _0x312ff3,
956
+ 'rootMessageId': _0xdb1846,
957
+ 'threadId': _0x359da1,
958
+ 'threadNumber': _0x3b9e53
959
+ }, _0x3eaf15 = await _0x5d1401({
960
+ 'channelId': _0x5a29e2,
961
+ 'channelTarget': _0x312ff3,
962
+ 'limit': Math['max'](_0x4487df['length'], 0x32),
963
+ 'threadId': _0x359da1
964
+ }), _0x369910 = new Map(_0x3eaf15[_0xdcb3e1(0x264)][_0xdcb3e1(0x209)](_0x8a7c1d => [
965
+ _0x8a7c1d[_0xdcb3e1(0x210)],
966
+ _0x8a7c1d
967
+ ])), _0x1324ca = _0x359da1 ? _0x1dcadb(_0x2283b2) : _0x312ff3, _0xa84c59 = _0x1d06a1 ? _0x3c399a && _0x16fb41(_0x1d06a1, _0x2283b2) : !![], _0xbe3aad = _0x3c399a ? _0xa84c59 && _0x1d06a1 ? _0x1d06a1 : _0x1324ca : _0x312ff3;
968
+ for (const _0x480825 of _0x4487df) {
969
+ if (!_0xa84c59)
970
+ continue;
971
+ const _0x415e9e = _0x45ef10[_0xdcb3e1(_0x3e0a30._0x13cd17)](_0x480825), _0x5e5ffd = _0x415e9e ? asRecord(_0x415e9e[_0xdcb3e1(0x26e)]) : void 0x0, _0x5e8bbb = _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x704b31)] === _0xdcb3e1(_0x3e0a30._0x582e72), _0x1c370b = _0x369910[_0xdcb3e1(0x1d2)](_0x480825);
972
+ if (_0x1c370b) {
973
+ _0x37bfed[_0xdcb3e1(_0x3e0a30._0x218e37)]({
974
+ 'attachments': _0x1c370b['attachments'],
975
+ 'content': _0x1c370b[_0xdcb3e1(_0x3e0a30._0x5b16d7)],
976
+ 'createdAt': _0x1c370b[_0xdcb3e1(_0x3e0a30._0x5b4cd7)],
977
+ ..._0x1c370b[_0xdcb3e1(_0x3e0a30._0x360947)] ? { 'kind': _0x1c370b[_0xdcb3e1(0x189)] } : {},
978
+ 'messageId': _0x1c370b[_0xdcb3e1(_0x3e0a30._0x2ddf5c)],
979
+ 'senderName': _0x1c370b[_0xdcb3e1(0x1e7)],
980
+ 'senderType': _0x1c370b[_0xdcb3e1(0x1d6)],
981
+ 'target': _0xbe3aad,
982
+ ..._0x5e8bbb ? { 'targetedTask': !![] } : {}
983
+ });
984
+ continue;
985
+ }
986
+ if (_0x415e9e) {
987
+ const _0x13d372 = typeof _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x4c2649)] === _0xdcb3e1(0x216) ? _0x5e5ffd[_0xdcb3e1(0x25a)] : '', _0x2d3361 = typeof _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x527ceb)] === _0xdcb3e1(0x216) ? _0x5e5ffd[_0xdcb3e1(0x1ce)] : '', _0x2b363e = typeof _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x360947)] === 'string' && _0x5e5ffd[_0xdcb3e1(_0x3e0a30._0x360947)] !== _0xdcb3e1(0x28f) ? _0x5e5ffd[_0xdcb3e1(0x189)] : void 0x0;
988
+ _0x13d372 && _0x2d3361 && _0x37bfed[_0xdcb3e1(0x26d)]({
989
+ 'attachments': [],
990
+ 'content': _0x2d3361,
991
+ 'createdAt': new Date()[_0xdcb3e1(_0x3e0a30._0x218d0b)](),
992
+ ..._0x2b363e ? { 'kind': _0x2b363e } : {},
993
+ 'messageId': _0x480825,
994
+ 'senderName': _0x5e12dc(_0x13d372, _0x352e07),
995
+ 'senderType': _0x4cf133(_0x13d372, _0x352e07),
996
+ 'target': _0xbe3aad,
997
+ ..._0x5e8bbb ? { 'targetedTask': !![] } : {}
998
+ });
999
+ }
1000
+ }
1001
+ }
1002
+ if (_0x4f4167 > 0x0) {
1003
+ if (_0x5df0ea)
1004
+ await _0x280996(_0x4f4167);
1005
+ else
1006
+ _0x28a5fe && await _0x3de8b2(_0x4f4167);
1007
+ }
1008
+ return _0x4f4167 > _0x24a660 && (_0x24a660 = _0x4f4167), { 'messages': _0x37bfed };
1009
+ }
1010
+ };
1011
+ }
1012
+ function _0x5707() {
1013
+ const _0x3d105e = [
1014
+ 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
1015
+ 'ihr5Cgu9ywDLBNq',
1016
+ 'Dg9gAxHLza',
97
1017
  'AgfZ',
98
- 'C3vIDgfZA051BwjLCG',
99
- 'D29YA2vYu2vZC2LVBKLK',
100
- 'D3m6',
101
- 'oeDtENvQqG',
102
- 'Axnoyu4',
103
- 'y2HLy2TnzxnZywDLCW',
104
- 'y3jLyxrLzef0',
105
- 'v29YA2vYici',
106
- 'DxbSB2fKx2zPBgu',
1018
+ 'C2LNBMfS',
1019
+ 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
1020
+ 'C3rHCNrLza',
1021
+ 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
1022
+ 'ywjVCNq',
1023
+ 'zMLSDgvY',
1024
+ 'iIbUB3qGzM91BMq',
1025
+ 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
1026
+ 'l2nVBNrLEhqTBwv0CMLJCW',
1027
+ 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
1028
+ 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
1029
+ 'yxjNDG',
1030
+ 'C2L6zq',
1031
+ 'yxbWBgLJyxrPB24VEg1S',
107
1032
  'CNvUswq',
108
- 'C2HHmJu2',
109
- 'C3rVCe1HAw4',
110
- 'vgfZAYa',
111
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
112
- 'CgfYC2vjBNq',
113
- 'ywz0zxjtzxe',
114
- 'cGOTls0G',
115
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
116
- 'ywrKrxzLBNrmAxn0zw5LCG',
117
- 'zg06',
1033
+ 'ChvIBgLJ',
1034
+ 'igrVBMuP',
1035
+ 'DgfZA0rLBgL2zxj5tw9Kzq',
1036
+ 'nZq0mJi2nKnXtKvnCa',
1037
+ 'Axnoyu4',
1038
+ 'CgfYDgLJAxbHBNrjza',
1039
+ 'BwfYA193ywL0Aw5Nx2LUChv0',
1040
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
1041
+ 'CgfYA193B3jRzxiGzMfPBgvK',
1042
+ 'AwrLBxbVDgvUy3LFA2v5',
1043
+ 'C2vUzf9TzxnZywDL',
1044
+ 'mc4WlJa',
1045
+ 'ls1Zzxj2zxiTDxjS',
1046
+ 'tM8GDgfZA3mGy3jLyxrLzc4',
1047
+ 'zgvZDhjVEwvK',
1048
+ 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
1049
+ 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
1050
+ 'lsba',
1051
+ 'mJmWnJi4mfbzBKzAqW',
1052
+ 'Agv4',
1053
+ 'Bg9JywXLq29TCgfYzq',
1054
+ 'y2XPzw50',
1055
+ 'B3b0Aw9UywW',
118
1056
  'l3rHC2TZl3vUy2XHAw0',
119
- 'yxjNDG',
120
- 'BwvTyMvY',
121
- 'CMvJB3jK',
122
- 'Bwv0yq',
123
- 'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
124
- 'CgfYA193B3jRzxi',
125
- 'ls1KywvTB24TBg9JywWTDxjS',
126
- 'C2vYDMvYtMfTzq',
127
- 'zNjVBq',
128
- 'z2v0sg91CNm',
129
- 'zxHLy3v0Aw9Utw9Kzq',
130
- '6k+35Rgcia',
131
- 'ls1ZzxnZAw9UlwLK',
132
- 'C2LNBMfS',
133
- 'C3vIDgfZA19UDw1Izxi',
134
- 'l2nVBNrLBNq',
1057
+ 'zgLZCg9ZAxrPB24',
1058
+ 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
1059
+ 'B3jPz2LUywXgAwXLBMfTzq',
1060
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
1061
+ 'tM8GBMv3ig1LC3nHz2vZlG',
1062
+ 'y3jLyxrLx3rHC2TZ',
1063
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
1064
+ 'ue9tva',
1065
+ 'l2LUDgvYBMfSl2fNzw50lW',
1066
+ 'CMvZDwX0CW',
135
1067
  'lcbJB250zw50lxr5Cgu9',
136
- 'yxnPzgu',
137
- 'zgvZDhjVEwvK',
138
- 'C2vYDMvY',
139
- 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
140
- 'BwLU',
141
- 'DgfZA0LK',
1068
+ 'DxbSB2fKx2zPBguGzMfPBgvK',
1069
+ 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
1070
+ 'ls13B3jRzxiTC2vZC2LVBI1Pza',
142
1071
  'l3jLC29SDMuTy2HHBM5LBa',
1072
+ 'y29UDgvUDc10ExbL',
1073
+ 'ywrK',
1074
+ 'C29Tzq',
1075
+ 'C3vIDgfZA19UDw1IzxjZ',
1076
+ 'ig1LC3nHz2vZkqOk',
1077
+ 'l3jLy2vPDMu/',
143
1078
  'AhvTyw5Z',
144
- 'yxnZAwDUzwvoyw1L',
145
- 'Agv4',
146
- 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
147
- 'AxngAwXL',
148
- 'zxnJywXHDgvFDg9FBwfPBG',
149
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
150
- 'y2HPBgrYzw5eB25L',
151
- 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
1079
+ 'l3DVCMTLCNmVzxnJywXHDgu',
1080
+ 'sfruuca',
1081
+ 'yxr0ywnOBwvUDeLKCW',
1082
+ 'AwrSzq',
1083
+ 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
1084
+ 'A2LUza',
1085
+ 'ls1Hz2vUDc1Pza',
1086
+ 'DxbSB2fKrMLSzq',
1087
+ 'z2v0u2vJB25KCW',
152
1088
  'DgHYzwfKvgfYz2v0',
153
- 'D29YA19RzxK',
1089
+ 'CNvUBMLUzW',
1090
+ 'kg5VBMuP',
1091
+ 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
1092
+ 'DMLLD19MAwXLigzHAwXLza',
1093
+ 'AgvHzgvYCW',
1094
+ 'AgfZtw9Yzq',
1095
+ 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
154
1096
  'CMvHC29U',
155
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
156
- 'lsaJ',
157
- 'BMv4Den1CNnVCG',
158
- 'D29YA2vYCW',
159
- 'Bg9JywXLq29TCgfYzq',
160
- 'ls13B3jRzxiTBw9Kzq',
161
- 'BwvZC2fNzq',
162
- 'mZu3nZm4nw92Ew9HBG',
163
- 'ig1LC3nHz2vZkqOk',
164
- 'igfZC2LNBMvLpua',
165
- 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
166
- 'ChvZAa',
167
- 'CMvHzeHPC3rVCNK',
168
- 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
169
- 'pgvTChr5pG',
170
- 't3jPz2LUywWGBwvZC2fNztOG',
1097
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
1098
+ 'zNjVBq',
1099
+ 'DgfZAYa',
1100
+ 'khvUA25VD24P',
1101
+ 'cGOTls0G',
1102
+ 'Dgv4Dc9JC3y',
1103
+ 'CM9VDe1LC3nHz2vjza',
1104
+ 'CMvXDwvZDfvYBa',
1105
+ 'C3vIDgfZA051BwjLCG',
1106
+ 'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
1107
+ 'Dw5JBgfPBvrHC2S',
171
1108
  'BgvUz3rO',
172
- 'v29YA2vYia',
173
- 'zgvZy3jPChrPB24',
174
- 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
175
- 'ywjVCNq',
176
- 'z2v0tw9UDgG',
177
- 'DgHYzwfKx3rHCMDLDa',
178
- 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
179
- 'DMfSDwvZ',
180
- 'D2fPDgLUz19PBNb1Da',
181
- 'zMLSzw5HBwu',
182
- 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
183
- 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
184
- 'C2L6zuj5DgvZ',
185
- 'C3vJy2vZCW',
186
- 'BM93',
187
- 'BgLZDfnLCNzLCG',
188
- 'mZG1ogr3yw96CW',
189
- 'C2vX',
190
- 'mJeXnwXjB05eCq',
191
- 'CMvZCg9UC2u',
192
- 'DgfZA3m',
193
- 'D29YA2vYtw9Kzq',
194
- 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
195
- 'Dw5RBM93BG',
196
- 'C2vUzf9TzxnZywDLigzHAwXLza',
197
- 'yxbWBgLJyxrPB24VANnVBG',
198
- 'yxjYyxK',
199
- 'CgfYDgLJAxbHBNrjza',
200
- 'C3rHDhvZ',
201
- 'DxjNzw50',
202
- 'ywDLBNrjza',
203
- 'y2HLy2TFBwvZC2fNzxm',
204
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
205
- 'z2v0u2vJB25KCW',
206
- 'A2LUza',
207
- 'y2XPzw50',
208
- 'DxrMoa',
209
- 'zgvSzxrL',
210
- 'Dgv4Dc9WBgfPBG',
211
- 'yxr0ywnOBwvUDf9Pza',
212
1109
  'DgHYzwfKswq',
213
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
214
- 'BgLTAxq',
215
- 'zMLUza',
216
- 'Aw5FChjVz3jLC3m',
217
- 'ywDNCMvNyxrLswq',
218
- 'yxr0ywnOBwvUDf9Pzhm',
219
- 'ChvIBgLJ',
220
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
221
- 'DgfYz2v0',
222
- 'nteWnteZtgvAzuTA',
223
- 'l3rHC2TZl2nSywLT',
224
- 'zgvZy3jPyMu',
225
- 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
1110
+ 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
1111
+ 'BMfTzq',
1112
+ 'tM8GDgfZA3mGzM91BMqU',
1113
+ 'icHPzdO',
1114
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
1115
+ 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
226
1116
  'C3rYAw5NAwz5',
227
- 'CMvHzf9OAxn0B3j5',
228
- 'DgHYzwfK',
229
- 'zw50zxiTAgfUzg9MzIbMywLSzwq',
230
- 'C2vYDMvYvxjS',
231
- 'mtGXotGWufPNs2HO',
232
- 'zgLZCg9ZAxrPB24',
233
- 'D29YA2vYvgHYzwfKvgfYz2v0',
234
- 'C2vUze1LC3nHz2u',
235
- 'ywrK',
236
- 'iYmJieH1BwfUCW',
237
- 'l3nLBMq',
238
- 'C29YDa',
239
- 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
240
- 'y29UDgvUDc10ExbL',
241
- 'DgvZDa',
242
- 'igTPBMq9',
243
- 'l3jLy2vPDMu/',
244
- 'ihrPBwu9',
245
- 'C2vZC2LVBKLK',
246
- 'ihr5Cgu9ywDLBNq',
247
- 'lsba',
248
- 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
249
- 'ig1LC3nHz2u9',
250
- 'y2HPBgrYzw5uB3rHBa',
251
- 'xsba',
252
- 'zgfLBw9UqxbPs2v5',
253
- 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
254
- 'z2v0rNvSBfLLyxi',
255
- 'CMvZDwX0sNnVBG',
256
- 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
257
- 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
258
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
259
- 'z2v0rgf0zq',
260
- 'BNvTyMvY',
261
- 'C2vUzgvYtMfTzq',
1117
+ 'pgvTChr5pG',
1118
+ 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
1119
+ 'ls1KywvTB24TBg9JywWTDxjS',
262
1120
  'zxzLBNrtzxe',
263
- 'C3rHCNrLza',
1121
+ 'ANnVBG',
1122
+ 'BwvZC2fNzv9Pzhm',
1123
+ 'C2L6zuj5DgvZ',
1124
+ 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
1125
+ 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
1126
+ 'y2HPBgrYzw5uB3rHBa',
1127
+ 'lcbWCMv2Awv3pq',
1128
+ 'DMfSDwvZ',
1129
+ 'ywDLBNrjza',
1130
+ 'Ahr0CdO',
1131
+ 'w3rHCMDLDd0',
1132
+ 'lIbnzxnZywDLieLeoIa',
1133
+ 'Aw1Hz2uVC3zNk3HTBa',
1134
+ 'C3vJy2vZCW',
1135
+ 'Ahr0Chm6',
264
1136
  'Dgv4Da',
265
- 'zg9Uzq',
1137
+ 'tM8GDgfZA3mGy2XHAw1Lzc4',
1138
+ 'lMjPBG',
266
1139
  'zxjYB3i',
267
- 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
268
- 'BwvTyMvYCW',
269
- 'DxnLCG',
270
- 'ywDNCMvNyxrLvhLWzq',
271
- 'iJOGC3rHDhvZpq',
272
- 'yxr0ywnOBwvUDenHy2HL',
273
- 'Dgv4Dc9JC3y',
274
- 'zMLSzv9WyxrO',
275
- 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
276
- 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
277
- 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
278
- 'y3jLyxrLx3rHC2TZ',
279
- 'ywjVCNrLza',
280
- 'sfruuca',
1140
+ 'DMLZAwjPBgL0Eq',
1141
+ 'zxH0BMfTzq',
1142
+ 'mti2mZm1D1ziuK13',
1143
+ 'Dw5RBM93BG',
1144
+ 'D29YA2vYvgHYzwfKvgfYz2v0',
1145
+ 'D3nZoG',
1146
+ 'C3rVCe1HAw4',
281
1147
  'DhjPBq',
282
- 'y29UDgvUDfr5Cgu',
283
- 'y3jLyxrLx3rHC2TZigzHAwXLza',
1148
+ 'Dg9mB2nHBgvmB3DLCKnHC2u',
1149
+ 'C2nOzwr1BgvKrM9Y',
1150
+ 'CMvHzf9OAxn0B3j5igzHAwXLza',
284
1151
  'BgLZDf9Zzxj2zxi',
285
- 'DgfZA19Pza',
286
- 'AgvHzgvYCW',
287
- 'BwfPBG',
288
- 'CNvUBMLUzW',
289
- 'Ahr0CdO',
290
- 'C2vUzf9TzxnZywDL',
291
- 'iYmGu2vYDMvYoIa',
292
- 'z2v0twLUDxrLCW',
293
- 'y29UDgvUDejHC2u2na',
294
- 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
295
- 'l2nVBNrLEhqTBwv0CMLJCW',
296
- 'CMvXDwvZDfvYBa',
297
- 'C3rVCe1HAw49Dhj1zq',
298
- 'BgLZDfrHC2TZ',
299
- 'CMvZDwX0CW',
300
- 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
301
- 'AM9PBG',
302
- 'DgHYzwfKtNvTyMvY',
303
- 'y2XHAw0GzMfPBgvK',
304
- 'CMvZB2X2zvrHCMDLDa',
305
- 'y2XHAw1FDgfZA3mGzMfPBgvK',
306
- 'igf0DgfJAg1LBNq',
307
- 'l3DVCMTLCNmVCgfYAW',
308
- 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
309
- 'Dg9tDhjPBMC',
310
- 'zMLSDgvY',
311
- 'ntG5odG1s2n6Cw1L',
312
- 'l2zPBMLZAa',
1152
+ 'CgfYA193B3jRzxi',
313
1153
  'yM9KEu1HCMTKB3DU',
314
- 'y2HHBM5LBeLK',
1154
+ 'BwvTyMvYCW',
1155
+ 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
1156
+ 'C2vUzf9TzxnZywDLigzHAwXLza',
1157
+ 'z2v0',
1158
+ 'DMLLD19MAwXL',
1159
+ 'Bwf0y2Hoyw1Ltg93zxi',
1160
+ 'DMfSDwu',
1161
+ 'C2vUzgvYvhLWzq',
1162
+ 'D2fPDgLUz19PBNb1Da',
315
1163
  'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
316
- 'AgLNAa',
317
- 'y2HHBM5LBhm',
318
- 'ihn0yxr1CZ0',
319
- 'Dg9KBW',
320
- 'yxbWBgLJyxrPB24VEg1S',
321
- 'tM8GDgfZA3mGzM91BMqU',
322
- 'Bwf0y2Hoyw1L',
1164
+ 'zM9Yy2vszwzYzxnO',
1165
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
1166
+ 'yxjYyxK',
1167
+ 'l3vWBg9Hza',
1168
+ 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
1169
+ 'l2fWAs9HDhrHy2HTzw50CY8',
1170
+ 'zgfLBw9UqxbPs2v5',
1171
+ 'l2HPC3rVCNK/',
1172
+ 'mti4nty0C1zKywno',
1173
+ 'BgLZDf90yxnRCW',
1174
+ 'ChjVDg9JB2W',
1175
+ 'DgHYzwfK',
1176
+ 'vgfZAYa',
1177
+ 'Dw5JBgfPBv90yxnRigzHAwXLza',
1178
+ 'C2vUzgvYtMfTzq',
1179
+ 'BwvZC2fNzq',
1180
+ 'yxjYyxLcDwzMzxi',
1181
+ 'DxnLCG',
323
1182
  'y2XHAw1FDgfZA3m',
324
- 'BwvZC2fNzxm',
325
- 'Dg9ju09tDhjPBMC',
326
- 'AwrSzq',
327
- 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
328
- 'ywDNCMvNyxrLswrZ',
329
- 'yMvMB3jL',
330
- 'ywDLBNq',
331
- 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
332
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
1183
+ 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
1184
+ 'v29YA2vYia',
1185
+ 'BMv4Den1CNnVCG',
1186
+ 'DhLWzq',
1187
+ 'C2vYDMvYtMfTzq',
1188
+ 'DxbKyxrLx3rHC2TFC3rHDhvZ',
1189
+ 'z2v0rgf0zq',
1190
+ 'C3rHDhvZ',
1191
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
1192
+ 'C2vX',
1193
+ 'Dgv4Dc9WBgfPBG',
1194
+ 'C29YDa',
1195
+ 'nM56rKzoua',
333
1196
  'BwvKAxvT',
334
- 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
335
- 'zgLNzxn0',
336
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
337
- 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
338
- 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
339
- 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
340
- 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
341
- 'C2L6zq',
342
- 'Dw5JBgfPBvrHC2S',
343
- 'B2jQzwn0',
344
- 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
345
- 'vgHYzwfKihrHCMDLDdOG',
1197
+ 'iYmJienOyw5UzwXZ',
1198
+ 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
1199
+ 'ignSywLTzwq',
1200
+ 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
1201
+ 'Dg9ju09tDhjPBMC',
1202
+ 'zg06',
1203
+ 'CgfYC2u',
1204
+ 'D29YA2vYCW',
1205
+ 'DgfZA19Pza',
1206
+ 'DxbKyxrLvgfZA1n0yxr1CW',
1207
+ 'ywDNCMvNyxrLvhLWzq',
1208
+ 'C2vYDMvY',
1209
+ 'AxngAwXL',
1210
+ 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
1211
+ 'yxv0BZO',
1212
+ 'BwfW',
1213
+ 'odm1nJHlBw9hr0m',
346
1214
  'yxr0ywnOBwvUDhm',
347
- 'DxbSB2fKrMLSzq',
348
- 'C2XPy2u',
349
- 'z2v0',
350
- '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
351
- 'kgXLz2fJEsK',
352
- 'C2f2zq',
353
- 'Bwf0y2Hoyw1Ltg93zxi',
354
- 'AgfZtw9Yzq',
355
- 'DgL0Bgu',
356
- 'C3rYAw5N',
357
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
358
- 'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
359
- 'ig1ZzZ0',
360
- 'yxr0ywnOBwvUDenHy2HLrgLY',
361
- 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
362
- 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
363
- 'ANnVBG',
364
- 'yxbWBgLJyxrPB24VCgrM',
365
- 'yxr0ywnOBwvUDeLKCW',
366
- 'y3vYC29Y',
367
- 'DMLLD19MAwXLigzHAwXLza',
368
- 'DgHYzwfKu2HVCNrjza',
1215
+ 'D29YA2vYrgLZCg9ZAxrPB24',
1216
+ 'Bwv0yq',
1217
+ 'iYmGu2vYDMvYoIa',
369
1218
  'DxbSB2fKuhjLCgfYzxi',
370
- 'zMLUzenHy2HLzfbHDgG',
371
- 'C3vIDgfZA19UDw1IzxjZ',
372
- 'lMrZy29Yza',
373
- 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
374
- 'AxnbyNnVBhv0zq',
375
- 'yxbWBgLJyxrPB24VEMLW',
376
- 'BMfTzq',
377
- 'tM8GDgfZA3mGy3jLyxrLzc4',
378
- 'yM9KEvrLEhq',
379
- 'zMv0y2HjBxbS',
380
- 'ls13B3jRzxiTC2vZC2LVBI1Pza',
381
- 'AxngAw5PDgu',
382
- 'C3rHCNrZv2L0Aa',
383
- 'ignSywLTzwq',
384
- 'zgfLBw9Utg9JywXvCMW',
385
- 'y29UDgvUDa',
386
1219
  'BwvZC2fNzuLK',
387
- 'Bwf4rMLSzvnPEMvcExrLCW',
388
- 'ue9tva',
389
- 'zw51Bq',
390
- 'CgfYDgLJAxbHBNq',
391
- 'Bwf4',
1220
+ 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
1221
+ 'zg0T',
1222
+ 'yxbWBgLJyxrPB24VANnVBG',
1223
+ 'Bwf0y2Hoyw1L',
1224
+ 'BgLZDfrHC2TZ',
1225
+ 'C3rYAw5N',
392
1226
  'CMvWBgfJzq',
393
- 'Cgf5Bg9HzePZB24',
394
- 'Dg9mB2nHBgvmB3DLCKnHC2u',
395
- 'tM8GDgfZA3mGy2XHAw1Lzc4',
396
- 'yMfZzty0',
397
- 'Bg93',
398
- 'w3rHCMDLDd0',
399
- 'l3DVCMTLCNmVzgvSAxzLCG',
400
- 'Aw5JBhvKzxm',
401
- 'lMjPBG',
402
- 'BwvZC2fNzv9Pzhm',
403
- 'w3nLCt0',
404
- 'ChjVDg9JB2W',
405
- 'zMv0y2HuAw1LB3v0txm',
406
- 'iokaLca',
407
- 'BwfW',
408
- 'D29YA2vYtw9KzuvUywjSzwq',
1227
+ 'v29YA2vYici',
1228
+ 'lMrZy29Yza',
1229
+ 'D29YA2vY',
409
1230
  'ywz0zxi',
410
- 'C2v0',
411
- 'AxnjBNrLz2vY',
1231
+ 'ywrKrxzLBNrmAxn0zw5LCG',
1232
+ 'Aw1Hz2uVCg5N',
1233
+ 'nda4wgDvDM12',
1234
+ 'z2v0rNvSBfLLyxi',
1235
+ 'D29YA19RzxK',
1236
+ 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
1237
+ 'D29YA2vYrgLZCg9ZAxrPB249',
1238
+ 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
1239
+ 'Dgv4Dc9TyxjRzg93BG',
1240
+ 'BwLU',
1241
+ 'BM93',
1242
+ 'D29YA2vYtw9KzuvUywjSzwq',
1243
+ 'DgvZDa',
1244
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
1245
+ 'r0vu',
1246
+ 'zgfLBw9Utg9JywXvCMW',
1247
+ 'AxngAw5PDgu',
1248
+ 'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
1249
+ 'igfZC2LNBMvLpua',
1250
+ 'y29UDgvUDa',
1251
+ 'DgfZA0LK',
1252
+ 'DgfZA3m',
1253
+ 'zgf0yq',
1254
+ 'ig1LC3nHz2u9',
1255
+ 'C2f2zq',
1256
+ 'yxr0ywnOBwvUDenHy2HL',
1257
+ 'yxnZAwDUzwvoyw1L',
1258
+ 'kgXLz2fJEsK',
412
1259
  'Aw1Hz2uVANbLzW',
413
- 'CgfKu3rHCNq',
414
- 'vgfZAZOG',
415
- 'Bgf0zxn0u2vX',
416
- 'D3nZoG',
417
- 'B3jPz2LUywXgAwXLBMfTzq',
418
- 'y2HHBM5LBfrHCMDLDa',
419
- 'y29UBMvJDa',
420
- 'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
421
- 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
422
- 'l3n0yxj0',
423
- 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
424
- 'ls1KywvTB24TyxbPlwTLEq',
425
- 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
426
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
427
- 'DxbKyxrLx3rHC2TFC3rHDhvZ',
428
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
429
- 'C2nOzwr1BgvKrM9Y',
430
- 'Aw5KzxHpzG',
431
- 'y2HHDa',
432
- 'C2vUzgvYvhLWzq',
433
- 'z2v0vgLTzq',
434
- 'mti1nZuXmLj6sK9MyW',
435
- 'D29YA2vY',
436
- 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
437
- 'Aw1Hz2uVC3zNk3HTBa',
438
- 'D29YA2vYsgfUzg9MzG',
439
- 'y2HHBM5LBe5HBwu',
440
- 'AhvTyw4',
1260
+ 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
1261
+ 'zgLNzxn0',
1262
+ 'yxnPzgu',
1263
+ 'BNvTyMvY',
1264
+ 'Bwf4',
1265
+ 'y2XHAw1FDgfZA3mGzMfPBgvK',
441
1266
  'zMfSC2u',
442
- 'zgf0yq',
443
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
444
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
445
- 'y2HHBM5LBa',
446
- 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
447
- 'yxr0ywnOBwvUDeLK',
448
- 'DgfZAW',
449
- 'l3vWBg9Hza',
450
- 'kg5VBMuP',
451
- 'lIbnzxnZywDLieLeoIa',
452
- 'AwrLBxbVDgvUy3LFA2v5',
453
- 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
454
- 'B3b0Aw9UywW',
455
- 'CM9VDe1LC3nHz2vjza',
456
- 'DMLLD19MAwXL',
457
- 'igzHAwXLzdOG',
1267
+ 'rMLSzsbUB3qGzM91BMq6ia',
1268
+ 'y2f0y2G',
1269
+ 'BgLTAxq',
1270
+ 'xsba',
1271
+ 'mtHvyunwrMK',
1272
+ 'mteWnZC4Aw5jyNnY',
1273
+ 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
1274
+ 'm25OuMHosa',
1275
+ 'BwfPBG',
1276
+ 'Aw1Hz2uVz2LM',
1277
+ 'Dw5JBgfPBv90yxnR',
1278
+ 'D29YA2vYsgfUzg9MzG',
458
1279
  'BgLZDf90yxnRCYbMywLSzwq',
459
- 'Aw5FCMv2Awv3',
460
- 'tM8GBMv3ig1LC3nHz2vZlG',
461
- 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
462
- 'D29YA2vYrgLZCg9ZAxrPB249',
463
- 'Dg9VBa',
464
- 'DMfSDwu',
1280
+ 'ywDLBNrZ',
1281
+ 'C3vIDgfZA19UDw1Izxi',
1282
+ 'ig1ZzZ0',
1283
+ 'iJOGC3rHDhvZpq',
1284
+ 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
1285
+ 'yMfZzty0',
1286
+ 'zMLSzv9WyxrO',
1287
+ 'y2XHAw0GzMfPBgvK',
1288
+ 'y3vYC29Y',
1289
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1290
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
1291
+ 'yxr0ywnOBwvUDf9Pzhm',
1292
+ 'Bgf0zxn0u2vX',
1293
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
1294
+ 'nZqZndG0B1Pqzw1d',
1295
+ 'DgfZA051BwjLCG',
1296
+ 'CgfYDgLJAxbHBNq',
1297
+ 'CMvJB3jK',
1298
+ 'ywDNCMvNyxrLswq',
465
1299
  'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
466
- 'l3jLy2vPDMu',
467
- 'DMLZAwjPBgL0Eq',
468
- 'l2LUDgvYBMfSl2fNzw50lW',
469
- 'l2HPC3rVCNK/',
470
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
471
- 'l2fWAs9HDhrHy2HTzw50CY8',
472
- 'l3DVCMTLCNmVzxnJywXHDgu',
473
- 'iYmJienOyw5UzwXZ',
474
- 'yxv0BZO',
475
1300
  'zxHLy3v0Aw9Utw9Kzt0',
476
- 'zw50CMLLCW',
477
- 'Dw5JBgfPBv90yxnR',
478
- 'y2f0y2G',
479
- 'ywXS',
480
- 'CgfYA193B3jRzxiGzMfPBgvK',
481
- 'D29YA2vYx3nLC3nPB25FAwq',
482
- 'mtmXnZyYmgXqsKXSzq',
483
- 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
484
- 'DgfYz2v0zwq',
1301
+ 'y2HHBM5LBhm',
1302
+ 'vgHYzwfKihrHCMDLDdOG',
1303
+ 'BwvZC2fNzxm',
1304
+ 'DgfZAY0',
1305
+ 'rg93BMXVywrLzcb0BZOG',
1306
+ 'D29YA2vYtw9Kzq',
1307
+ 'ywz0zxjtzxe',
485
1308
  'l3rHC2TZpW',
486
- 'CxvLDwvK',
1309
+ 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
1310
+ 'Dg9KBW',
1311
+ 'mte1v3HZqvzq',
1312
+ 'ChvZAa',
1313
+ 'Cgf5Bg9HzePZB24',
1314
+ 'CMvHzeHPC3rVCNK',
1315
+ 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
1316
+ 'lsaJ',
1317
+ 'C3bSAxq',
1318
+ 'DgfYz2v0zwq',
1319
+ 'D29YA2vYu2vZC2LVBKLK',
1320
+ 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
1321
+ 'y2XHAw1uyxnRCW',
1322
+ 'ihrPBwu9',
1323
+ 'ywXS',
1324
+ 'AxnjBNrLz2vY',
1325
+ 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4GqxnZAwDUzwuGCNvSzxm6igfUihvUy2XHAw1Lzcb0yxnRl3n1yNrHC2SGAxmGyxv0B21HDgLJywXSEsbJBgfPBwvKigj5ihLVDsbPBIb0AguGC2fTzsbJywXSicHJywXSzxiGyMvJB21LCYb0AguGyxnZAwDUzwuPoYbPzIb0AguGDgfZAYbPCYbHBhjLywr5ignSywLTzwqGyNKGyw5VDgHLCIbWyxj0AwnPCgfUDcWGDgHLihnLCNzLCIbYzxr1CM5ZidqWmYb3AxrOihrOzsbJDxjYzw50ignSywLTzxiNCYbUyw1LigfUzcb5B3uGBxvZDcbot1qGCMv0CNKG4OcuigXLDcb0AguGyxnZAwDUzwuGzMLUAxnOig9YigfZAYb0AgvTihrVihjLBgvHC2uGDgHLihrHC2SUifDOzw4GBw92Aw5NihDVCMSGDg8GAw5FCMv2Awv3lcbJAgvJAYb5B3vYig1LBw9YEsbVCIbJAgfUBMvSihj1BgvZigfUzcbZzw5KigeGCMv2Awv3zxiGBwvUDgLVBIb5B3vYC2vSzIb3AgvUigfWChjVChjPyxrLlG',
1326
+ 'Aw5FCMv2Awv3',
1327
+ 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
1328
+ 'iokaLca',
1329
+ 'igTPBMq9',
1330
+ 'AM9PBG',
1331
+ 'C3rVCe1HAw49Dhj1zq',
1332
+ 'zgvZy3jPChrPB24',
1333
+ 'zMLUza',
1334
+ 'DgHYzwfKtNvTyMvY',
1335
+ 'y2HLy2TFBwvZC2fNzxm',
1336
+ 'C3rHCNrZv2L0Aa',
1337
+ 'DgfZAW',
1338
+ 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
1339
+ 'zg9Uzq',
1340
+ 'zMLSzw5HBwu',
1341
+ 'vgfZAZOG',
1342
+ 'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
1343
+ 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
1344
+ 'zw50CMLLCW',
1345
+ 'y2HHBM5LBfrHCMDLDa',
1346
+ 'y2HHDa',
1347
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
1348
+ 'DgfYz2v0',
1349
+ 'l3nLBMq',
1350
+ 'iYmJieH1BwfUCW',
1351
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
1352
+ 'igf0DgfJAg1LBNq',
1353
+ 'C2HHmJu2',
1354
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
1355
+ 'y2HHBM5LBa',
1356
+ 'y3jLyxrLvgfZA3m',
1357
+ 'mZu3u1P6zgvN',
1358
+ 'BgLZDfnLCNzLCG',
1359
+ 'BwvTyMvY',
1360
+ 'y29UBMvJDa',
1361
+ 'zg93BMXVywrbDhrHy2HTzw50',
1362
+ 'y3jLyxrLzef0',
1363
+ 'Dg9VBa',
1364
+ 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
1365
+ 'Aw5JBhvKzxm',
1366
+ 'C2v0',
1367
+ 'Bg93',
1368
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
1369
+ 'uefuq0G',
1370
+ 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
487
1371
  'Aw5PDgLHBeXHC3rtzwvUu2vX',
488
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
489
- 'igLUia'
1372
+ 'igzHAwXLzdOG',
1373
+ 'z2v0vgLTzq',
1374
+ 'C2XPy2u',
1375
+ 'EM9K',
1376
+ 'DgL0Bgu',
1377
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
1378
+ 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
1379
+ 'zMLUzenHy2HLzfbHDgG',
1380
+ 'Dg9tDhjPBMC',
1381
+ 'y2HHBM5LBe5HBwu',
1382
+ 'Bwf4rMLSzvnPEMvcExrLCW',
1383
+ 'D3m6',
1384
+ 'yMvMB3jL',
1385
+ 'zxnJywXHDgvFDg9FBwfPBG',
1386
+ 'yxr0ywnOBwvUDeLK',
1387
+ 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
1388
+ 'DxbSB2fKx2zPBgu',
1389
+ 'CMvZB2X2zvrHCMDLDa',
1390
+ 'CMvHzf9OAxn0B3j5',
1391
+ 'ihn0yxr1CZ0',
1392
+ 'yMfZzw5HBwu',
1393
+ 'DgHYzwfKx3rHCMDLDa',
1394
+ 'Aw5FChjVz3jLC3m',
1395
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1396
+ 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
1397
+ 'zxHLy3v0Aw9Utw9Kzq',
1398
+ 'igLUia',
1399
+ 'y29UDgvUDfr5Cgu',
1400
+ 'zw51Bq',
1401
+ 'y2HHBM5LBeLK',
1402
+ 'CMvZCg9UC2u',
1403
+ 'yxr0ywnOBwvUDf9Pza',
1404
+ 'l3nLCNzLCG',
1405
+ 'DgHYzwfKvgfYz2v0pq',
1406
+ 'C2vUze1LC3nHz2u',
1407
+ 'B2jQzwn0',
1408
+ 'yxr0ywnOBwvUDenHy2HLrgLY',
1409
+ 'l3rHC2TZl2nSywLT',
1410
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
1411
+ 'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
1412
+ 'ywDLBNq',
1413
+ 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
1414
+ 'CxvLDwvK',
1415
+ 'DgHYzwfKu2HVCNrjza'
490
1416
  ];
491
- _0x3988 = function () {
492
- return _0x2c6691;
493
- };
494
- return _0x3988();
495
- }
496
- function createAttachmentCache(_0x3d4b58 = {}) {
497
- const _0x1f7dbc = {
498
- _0x5df921: 0x110,
499
- _0x498fd9: 0x13d
500
- }, _0x463e78 = {
501
- _0x1296a6: 0x1a2,
502
- _0x4e43f2: 0x19d
503
- }, _0xa9bc49 = {
504
- _0x28a37a: 0x251,
505
- _0x50b352: 0x110
506
- }, _0x3d2df5 = _0x51636d, _0x5e2db6 = _0x3d4b58['cacheDir'] ?? _0x358960[_0x3d2df5(_0x1f7dbc._0x5df921)](homedir(), _0x3d2df5(0x157), _0x3d2df5(_0x1f7dbc._0x498fd9));
507
- return {
508
- 'cacheDir': _0x5e2db6,
509
- async 'findCachedPath'(_0x368823) {
510
- const _0x176931 = _0x3d2df5;
511
- await mkdir(_0x5e2db6, { 'recursive': !![] });
512
- const _0x1fa270 = await readdir(_0x5e2db6), _0x4e5227 = _0x1fa270[_0x176931(_0xa9bc49._0x28a37a)](_0x2994a2 => _0x2994a2['startsWith'](_0x368823 + '-') || _0x2994a2[_0x176931(0x161)](_0x368823));
513
- return _0x4e5227 ? _0x358960[_0x176931(_0xa9bc49._0x50b352)](_0x5e2db6, _0x4e5227) : null;
514
- },
515
- async 'save'(_0x58cff0) {
516
- const _0x143fa8 = _0x3d2df5;
517
- await mkdir(_0x5e2db6, { 'recursive': !![] });
518
- const _0x13293c = _0x58cff0[_0x143fa8(0x184)]?.['trim']() ? safeFilename(_0x58cff0['originalFilename']) : '' + _0x58cff0['attachmentId'] + extensionFor(_0x58cff0['contentType']), _0x13ea3b = _0x358960[_0x143fa8(0x110)](_0x5e2db6, _0x58cff0[_0x143fa8(_0x463e78._0x1296a6)] + '-' + _0x13293c);
519
- return await writeFile(_0x13ea3b, _0x58cff0[_0x143fa8(_0x463e78._0x4e43f2)]), _0x13ea3b;
520
- }
521
- };
522
- }
523
- import {
524
- createHash,
525
- randomUUID
526
- } from 'node:crypto';
527
- var UNSUPPORTED_TARGET_MESSAGE = _0x51636d(0x205);
528
- function ensureSegment(_0x4a5ecd) {
529
- const _0x55fc03 = {
530
- _0xcc2d82: 0xfc,
531
- _0xe09fbb: 0x173
532
- }, _0x582631 = _0x51636d, _0x1b16be = _0x4a5ecd[_0x582631(_0x55fc03._0xcc2d82)]();
533
- if (!_0x1b16be || _0x1b16be[_0x582631(_0x55fc03._0xe09fbb)](':'))
534
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
535
- return _0x1b16be;
536
- }
537
- function parseThreadParts(_0x5288c4) {
538
- const _0x524b33 = {
539
- _0x34146f: 0x225,
540
- _0x4c5a35: 0x225
541
- }, _0x327266 = _0x51636d, _0x15762d = _0x5288c4['split'](':');
542
- if (_0x15762d[_0x327266(_0x524b33._0x34146f)] < 0x1 || _0x15762d[_0x327266(_0x524b33._0x4c5a35)] > 0x2)
543
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
544
- return {
545
- 'channelName': ensureSegment(_0x15762d[0x0] ?? ''),
546
- 'threadShortId': _0x15762d[0x1] ? ensureSegment(_0x15762d[0x1]) : null
547
- };
548
- }
549
- function parseTarget(_0x2a4c5b) {
550
- const _0xf11a13 = {
551
- _0x253dc4: 0x13f,
552
- _0x27d141: 0x19a,
553
- _0x3a51ed: 0x1a0,
554
- _0x132b94: 0x153,
555
- _0x4335b2: 0x1ef,
556
- _0x156acf: 0x25e
557
- }, _0x3ba6a7 = _0x51636d, _0x1f991e = _0x2a4c5b['trim']();
558
- if (!_0x1f991e)
559
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
560
- if (_0x1f991e[_0x3ba6a7(0x161)]('#')) {
561
- const _0x206348 = parseThreadParts(_0x1f991e[_0x3ba6a7(_0xf11a13._0x253dc4)](0x1)), _0x22c831 = '#' + _0x206348[_0x3ba6a7(0x19a)];
562
- if (!_0x206348['threadShortId'])
563
- return {
564
- 'channelName': _0x206348[_0x3ba6a7(_0xf11a13._0x27d141)],
565
- 'channelTarget': _0x22c831,
566
- 'kind': _0x3ba6a7(_0xf11a13._0x3a51ed),
567
- 'target': _0x22c831
568
- };
569
- return {
570
- 'channelName': _0x206348[_0x3ba6a7(0x19a)],
571
- 'channelTarget': _0x22c831,
572
- 'kind': _0x3ba6a7(0x25e),
573
- 'target': _0x22c831 + ':' + _0x206348[_0x3ba6a7(_0xf11a13._0x132b94)],
574
- 'threadShortId': _0x206348[_0x3ba6a7(_0xf11a13._0x132b94)]
575
- };
576
- }
577
- if (_0x1f991e[_0x3ba6a7(0x161)](_0x3ba6a7(0x1ef))) {
578
- const _0x3a5c8d = parseThreadParts(_0x1f991e['slice'](0x3));
579
- if (!_0x3a5c8d['channelName']['startsWith']('dm-'))
580
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
581
- const _0x4a0725 = _0x3ba6a7(_0xf11a13._0x4335b2) + _0x3a5c8d['channelName'];
582
- if (!_0x3a5c8d[_0x3ba6a7(_0xf11a13._0x132b94)])
583
- return {
584
- 'channelName': _0x3a5c8d[_0x3ba6a7(0x19a)],
585
- 'channelTarget': _0x4a0725,
586
- 'kind': _0x3ba6a7(0x1a0),
587
- 'target': _0x4a0725
588
- };
589
- return {
590
- 'channelName': _0x3a5c8d[_0x3ba6a7(0x19a)],
591
- 'channelTarget': _0x4a0725,
592
- 'kind': _0x3ba6a7(_0xf11a13._0x156acf),
593
- 'target': _0x4a0725 + ':' + _0x3a5c8d['threadShortId'],
594
- 'threadShortId': _0x3a5c8d[_0x3ba6a7(0x153)]
595
- };
596
- }
597
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
598
- }
599
- function asErrorMessage(_0xc16a7, _0x4ee3bc) {
600
- const _0x21a4b3 = { _0x3dabb4: 0x147 }, _0x4e3b19 = _0x51636d;
601
- if (typeof _0xc16a7 === _0x4e3b19(_0x21a4b3._0x3dabb4) && _0xc16a7[_0x4e3b19(0xfc)]())
602
- return _0xc16a7;
603
- return _0x4ee3bc;
604
- }
605
- function asRecord(_0x3c5b80) {
606
- const _0xc54ffd = { _0x24b1ca: 0x13a }, _0x190baa = _0x51636d;
607
- return typeof _0x3c5b80 === _0x190baa(_0xc54ffd._0x24b1ca) && _0x3c5b80 !== null ? _0x3c5b80 : {};
608
- }
609
- function stableStringify(_0x3bfffc) {
610
- const _0x4c463b = {
611
- _0x6b0c06: 0x1bf,
612
- _0x5904b5: 0x268
613
- }, _0x31c0e0 = _0x51636d;
614
- if (_0x3bfffc === null || typeof _0x3bfffc !== 'object')
615
- return JSON['stringify'](_0x3bfffc);
616
- if (Array['isArray'](_0x3bfffc))
617
- return '[' + _0x3bfffc['map'](_0x95bb78 => stableStringify(_0x95bb78))[_0x31c0e0(0x110)](',') + ']';
618
- const _0x3c53ff = Object[_0x31c0e0(_0x4c463b._0x6b0c06)](_0x3bfffc)[_0x31c0e0(0x119)](([, _0x34c8f8]) => _0x34c8f8 !== void 0x0)[_0x31c0e0(_0x4c463b._0x5904b5)](([_0x35ec56], [_0x512aab]) => _0x35ec56[_0x31c0e0(0x219)](_0x512aab))['map'](([_0x31c439, _0x5612ee]) => JSON['stringify'](_0x31c439) + ':' + stableStringify(_0x5612ee));
619
- return '{' + _0x3c53ff['join'](',') + '}';
620
- }
621
- function createHeaders(_0x46e5cf) {
622
- return {
623
- 'Content-Type': 'application/json',
624
- 'x-daemon-api-key': _0x46e5cf
625
- };
626
- }
627
- function toHttpBaseUrl(_0x3972e1) {
628
- const _0x4159ed = {
629
- _0x16581c: 0x177,
630
- _0x1434bd: 0x104,
631
- _0x159809: 0x183,
632
- _0x250374: 0x16b
633
- }, _0x3367b6 = _0x51636d, _0x44a5ef = new URL(_0x3972e1);
634
- if (_0x44a5ef['protocol'] === _0x3367b6(0x1de))
635
- _0x44a5ef[_0x3367b6(_0x4159ed._0x16581c)] = _0x3367b6(_0x4159ed._0x1434bd);
636
- else
637
- _0x44a5ef[_0x3367b6(0x177)] === _0x3367b6(_0x4159ed._0x159809) && (_0x44a5ef[_0x3367b6(0x177)] = 'https:');
638
- return _0x44a5ef[_0x3367b6(0x118)]()[_0x3367b6(_0x4159ed._0x250374)](/\/$/, '');
639
- }
640
- function isMentionBoundary(_0x2d86a5) {
641
- return !_0x2d86a5 || /\s|[([{'",。!?、:;]/['test'](_0x2d86a5);
642
- }
643
- function isMentionTerminal(_0x6e62b2) {
644
- const _0x21140c = _0x51636d;
645
- return !_0x6e62b2 || /\s|[)\]}'",。!?、:;,.!?]/[_0x21140c(0x26b)](_0x6e62b2);
646
- }
647
- function buildMatchableEntries(_0x3c893e) {
648
- const _0x16b418 = {
649
- _0x3a2475: 0x1d4,
650
- _0x217420: 0x209,
651
- _0x1b7c69: 0x15b,
652
- _0x51a4e3: 0x15b,
653
- _0x27f2d1: 0x16d,
654
- _0x4ead1c: 0x15b,
655
- _0x403ac0: 0x16d
656
- }, _0x5ec0ed = _0x51636d, _0x447052 = [];
657
- for (const _0x34bc94 of [
658
- ..._0x3c893e[_0x5ec0ed(_0x16b418._0x3a2475)],
659
- ..._0x3c893e[_0x5ec0ed(_0x16b418._0x217420)]
660
- ]) {
661
- _0x447052[_0x5ec0ed(0x220)]({
662
- 'matchName': _0x34bc94[_0x5ec0ed(_0x16b418._0x1b7c69)],
663
- 'matchNameLower': _0x34bc94[_0x5ec0ed(_0x16b418._0x51a4e3)][_0x5ec0ed(_0x16b418._0x27f2d1)](),
664
- 'participantId': _0x34bc94['id']
665
- }), _0x34bc94['id'] !== _0x34bc94[_0x5ec0ed(_0x16b418._0x4ead1c)] && _0x447052[_0x5ec0ed(0x220)]({
666
- 'matchName': _0x34bc94['id'],
667
- 'matchNameLower': _0x34bc94['id'][_0x5ec0ed(_0x16b418._0x403ac0)](),
668
- 'participantId': _0x34bc94['id']
669
- });
670
- }
671
- return _0x447052;
672
- }
673
- function _0x3278(_0x13278c, _0x574cc4) {
674
- _0x13278c = _0x13278c - 0xde;
675
- const _0x398853 = _0x3988();
676
- let _0x327812 = _0x398853[_0x13278c];
677
- if (_0x3278['hyiTvA'] === undefined) {
678
- var _0xcc5602 = function (_0x275d7d) {
679
- const _0x49fee3 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
680
- let _0x358960 = '', _0xb55bca = '';
681
- for (let _0x231ac4 = 0x0, _0x1aabf3, _0x1c87c6, _0x459e68 = 0x0; _0x1c87c6 = _0x275d7d['charAt'](_0x459e68++); ~_0x1c87c6 && (_0x1aabf3 = _0x231ac4 % 0x4 ? _0x1aabf3 * 0x40 + _0x1c87c6 : _0x1c87c6, _0x231ac4++ % 0x4) ? _0x358960 += String['fromCharCode'](0xff & _0x1aabf3 >> (-0x2 * _0x231ac4 & 0x6)) : 0x0) {
682
- _0x1c87c6 = _0x49fee3['indexOf'](_0x1c87c6);
683
- }
684
- for (let _0x30effb = 0x0, _0x140193 = _0x358960['length']; _0x30effb < _0x140193; _0x30effb++) {
685
- _0xb55bca += '%' + ('00' + _0x358960['charCodeAt'](_0x30effb)['toString'](0x10))['slice'](-0x2);
686
- }
687
- return decodeURIComponent(_0xb55bca);
688
- };
689
- _0x3278['jfOOOP'] = _0xcc5602, _0x3278['EQgyJB'] = {}, _0x3278['hyiTvA'] = !![];
690
- }
691
- const _0x4d883a = _0x398853[0x0], _0x4b8332 = _0x13278c + _0x4d883a, _0x362829 = _0x3278['EQgyJB'][_0x4b8332];
692
- return !_0x362829 ? (_0x327812 = _0x3278['jfOOOP'](_0x327812), _0x3278['EQgyJB'][_0x4b8332] = _0x327812) : _0x327812 = _0x362829, _0x327812;
693
- }
694
- function extractMentionedParticipantIds(_0x5e037b, _0x49a3aa) {
695
- const _0x52153a = {
696
- _0x260a5d: 0x225,
697
- _0x3d05a2: 0x13f,
698
- _0x5de73b: 0x251,
699
- _0x358143: 0x265,
700
- _0x4f5451: 0x220,
701
- _0x57bbe3: 0x225
702
- }, _0xa29319 = { _0x255d0b: 0x125 }, _0x393381 = _0x51636d, _0x13e824 = buildMatchableEntries(_0x49a3aa)[_0x393381(0x268)]((_0x1d135f, _0x2d2ce3) => _0x2d2ce3[_0x393381(0x125)][_0x393381(0x225)] - _0x1d135f[_0x393381(0x125)][_0x393381(0x225)]), _0x203eee = [], _0x3fd015 = new Set();
703
- for (let _0x54493c = 0x0; _0x54493c < _0x5e037b[_0x393381(_0x52153a._0x260a5d)]; _0x54493c += 0x1) {
704
- if (_0x5e037b[_0x54493c] !== '@' || !isMentionBoundary(_0x5e037b[_0x54493c - 0x1]))
705
- continue;
706
- const _0x4a646e = _0x5e037b[_0x393381(_0x52153a._0x3d05a2)](_0x54493c + 0x1), _0x51f075 = _0x4a646e[_0x393381(0x16d)](), _0x3c1f1b = _0x13e824[_0x393381(_0x52153a._0x5de73b)](_0x532cce => {
707
- const _0x35d768 = _0x393381;
708
- if (!_0x51f075[_0x35d768(0x161)](_0x532cce[_0x35d768(0x144)]))
709
- return ![];
710
- return isMentionTerminal(_0x4a646e[_0x532cce[_0x35d768(_0xa29319._0x255d0b)][_0x35d768(0x225)]]);
711
- });
712
- if (!_0x3c1f1b || _0x3fd015['has'](_0x3c1f1b[_0x393381(0x241)]))
713
- continue;
714
- _0x3fd015[_0x393381(_0x52153a._0x358143)](_0x3c1f1b[_0x393381(0x241)]), _0x203eee[_0x393381(_0x52153a._0x4f5451)](_0x3c1f1b[_0x393381(0x241)]), _0x54493c += _0x3c1f1b[_0x393381(0x125)][_0x393381(_0x52153a._0x57bbe3)];
715
- }
716
- return _0x203eee;
717
- }
718
- var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
719
- function anySignal(..._0x36b8a0) {
720
- const _0x7ba5b9 = {
721
- _0x3a705c: 0x1ee,
722
- _0x29025d: 0x1fe
723
- }, _0x46d267 = _0x51636d, _0x1a483d = new AbortController();
724
- for (const _0x4a1bd2 of _0x36b8a0) {
725
- if (_0x4a1bd2[_0x46d267(0xfa)])
726
- return _0x1a483d['abort'](_0x4a1bd2[_0x46d267(0x214)]), _0x1a483d[_0x46d267(0x1fe)];
727
- _0x4a1bd2[_0x46d267(_0x7ba5b9._0x3a705c)]('abort', () => _0x1a483d[_0x46d267(0x229)](_0x4a1bd2['reason']), {
728
- 'once': !![],
729
- 'signal': _0x1a483d[_0x46d267(0x1fe)]
730
- });
731
- }
732
- return _0x1a483d[_0x46d267(_0x7ba5b9._0x29025d)];
733
- }
734
- function createInternalAgentClient(_0x41566c) {
735
- const _0x58533a = {
736
- _0x7e3aca: 0x178,
737
- _0x66b110: 0x1ca,
738
- _0x113f19: 0xe7,
739
- _0x247bf2: 0x163,
740
- _0x40480a: 0x26f,
741
- _0x27d8fa: 0x1dd,
742
- _0x6ecd43: 0xfc,
743
- _0x38ca79: 0x263,
744
- _0x1a640a: 0xdf,
745
- _0x4721a9: 0x260
746
- }, _0x466d41 = {
747
- _0x3e669c: 0x1eb,
748
- _0x3fff22: 0x118,
749
- _0x5b990a: 0x1b5,
750
- _0x2096f4: 0x19d,
751
- _0x2a9c1c: 0x225,
752
- _0x575a29: 0x16a,
753
- _0x217724: 0x225,
754
- _0x2d76a3: 0x237,
755
- _0x512453: 0x120,
756
- _0x33a1f7: 0x147,
757
- _0x2a5717: 0x24e,
758
- _0x16b58f: 0x147,
759
- _0x302ba8: 0x24e,
760
- _0x92c17b: 0x1aa,
761
- _0x3b8a09: 0x111,
762
- _0x257f5c: 0xe7,
763
- _0x2b26b7: 0x220,
764
- _0x3c92af: 0x253,
765
- _0x51f040: 0x1bf,
766
- _0x38a942: 0x22d,
767
- _0x101b2f: 0x127,
768
- _0x4a6850: 0x140,
769
- _0x2aad9e: 0x220,
770
- _0x5c522c: 0x248,
771
- _0x2b9c6b: 0x165,
772
- _0x598ed5: 0x246,
773
- _0x30f847: 0x11c,
774
- _0x621874: 0x147,
775
- _0x5453d2: 0x192,
776
- _0x454138: 0x220,
777
- _0x19de64: 0x128
778
- }, _0x19dd75 = { _0x2ab8cf: 0x16c }, _0x449abe = {
779
- _0x16c689: 0x17c,
780
- _0x4b4e32: 0x11d,
781
- _0x32abc6: 0x257
782
- }, _0x2ede4b = {
783
- _0x14548c: 0x1eb,
784
- _0x113aab: 0x17d,
785
- _0x3566b8: 0x1b7,
786
- _0x394d1d: 0x26d,
787
- _0x3cdedf: 0x118,
788
- _0x7f6b83: 0x1d7
789
- }, _0x23b025 = {
790
- _0x49fb0c: 0x1d7,
791
- _0x2dbe51: 0x1fe,
792
- _0x176c6e: 0x19d,
793
- _0x45738c: 0x101,
794
- _0x5af0ac: 0x140,
795
- _0x4764fa: 0x26a,
796
- _0x5d41db: 0x19e,
797
- _0x4d1f80: 0x1f9
798
- }, _0x3dfaaf = {
799
- _0x534c26: 0x1a0,
800
- _0x1f10c0: 0x21f,
801
- _0x52e265: 0x1b7,
802
- _0x354803: 0x25c,
803
- _0x1778bc: 0x257,
804
- _0x4ce899: 0x108,
805
- _0xe2627b: 0x167,
806
- _0x56d696: 0x19d,
807
- _0x485e6c: 0x184,
808
- _0x5d1e66: 0x22f
809
- }, _0x40d2f0 = {
810
- _0x2d414c: 0x244,
811
- _0x3398a9: 0x25c,
812
- _0x3e1de4: 0x18e,
813
- _0x3c9c14: 0x167
814
- }, _0x1e7ec8 = {
815
- _0x263b84: 0x1b7,
816
- _0x2a2f5f: 0x25c,
817
- _0x344f70: 0x126,
818
- _0x47115b: 0x167
819
- }, _0x5e115b = {
820
- _0x520ed1: 0x244,
821
- _0x57ca3e: 0xf9,
822
- _0x14c610: 0x167
823
- }, _0x3d77ee = {
824
- _0x2cbc7e: 0x17d,
825
- _0x6a29f9: 0x17d,
826
- _0x586e7a: 0x242,
827
- _0x15b2aa: 0x1c8,
828
- _0x5c2415: 0x118,
829
- _0x346fb7: 0x1d7
830
- }, _0x5e1783 = {
831
- _0x1188fa: 0x1e5,
832
- _0x5c05a6: 0x11b,
833
- _0x27f047: 0xed,
834
- _0x31ea1d: 0xe2,
835
- _0x52fd7d: 0x242,
836
- _0x339893: 0x167
837
- }, _0x3733bf = {
838
- _0x2304f3: 0x189,
839
- _0x5aaea2: 0x1e5,
840
- _0x55183b: 0x103
841
- }, _0x2b5ce8 = {
842
- _0x5b149e: 0x25c,
843
- _0x396574: 0x167,
844
- _0x117c54: 0x190
845
- }, _0xa75eb7 = {
846
- _0x1645df: 0x1ed,
847
- _0x22dea9: 0x1d7
848
- }, _0x3a56c0 = {
849
- _0x4f8b8b: 0x244,
850
- _0x18d325: 0x267,
851
- _0x5e00b6: 0x25c,
852
- _0x1911c5: 0x164,
853
- _0x3971fe: 0x11d,
854
- _0x401e0f: 0x1b6,
855
- _0x5e2237: 0x167
856
- }, _0x3816cb = {
857
- _0x300800: 0x206,
858
- _0x128fc0: 0x17d,
859
- _0x5d9edd: 0x17c,
860
- _0x24632b: 0x244,
861
- _0x49234b: 0x118,
862
- _0x4e82ee: 0x17a,
863
- _0x3a8419: 0x145,
864
- _0xb5592f: 0x151
865
- }, _0x35af64 = { _0x55ddef: 0x169 }, _0x3a70ce = {
866
- _0x2cbbd6: 0x248,
867
- _0x36a20a: 0x111,
868
- _0x6a954: 0x1aa,
869
- _0x3ac428: 0x153,
870
- _0x1d279e: 0x153
871
- }, _0x47c428 = {
872
- _0x714195: 0x248,
873
- _0x127fbd: 0x185,
874
- _0x1839dd: 0x111,
875
- _0x59d635: 0x1aa,
876
- _0x17bace: 0x1aa,
877
- _0x17792b: 0x161,
878
- _0x23fe21: 0x153
879
- }, _0x594aa0 = {
880
- _0x5673f2: 0x111,
881
- _0x35cc4d: 0x1aa,
882
- _0x19a133: 0x24e,
883
- _0x52d1f4: 0x24e,
884
- _0x1adb2d: 0x13f
885
- }, _0x1af188 = { _0x55cf1f: 0x19b }, _0x4cda93 = { _0x2bee89: 0x1c1 }, _0x410f6b = {
886
- _0x4a40d4: 0x1b7,
887
- _0x3d8448: 0x208,
888
- _0x58db06: 0x25c,
889
- _0x5d2093: 0x11d,
890
- _0xedaeef: 0x185,
891
- _0x299210: 0x19d
892
- }, _0x236e1c = {
893
- _0x5071b8: 0x23f,
894
- _0x2040a0: 0xfb
895
- }, _0x38db79 = {
896
- _0x121e4c: 0x10a,
897
- _0x34cd8b: 0x25c
898
- }, _0x5dc57e = {
899
- _0x5e6cca: 0x1fe,
900
- _0x299406: 0xed
901
- }, _0x5d932e = { _0x27a269: 0x233 }, _0x148b19 = {
902
- _0xf0abea: 0x1a7,
903
- _0x273fa3: 0xfc,
904
- _0x3de802: 0x234,
905
- _0x59e420: 0x1e6,
906
- _0x5b842a: 0x20b,
907
- _0x1a5557: 0x1b3,
908
- _0x3eb45e: 0x17d
909
- }, _0x1a2e4d = {
910
- _0x2c6c59: 0x1d5,
911
- _0x233ea2: 0xfc
912
- }, _0x1502bd = {
913
- _0x58e908: 0x101,
914
- _0x575c0c: 0x26a,
915
- _0x1cd1c3: 0x15d,
916
- _0x1c8c17: 0x16b,
917
- _0x48454e: 0x13f,
918
- _0x57d98d: 0x223,
919
- _0x4e10ba: 0x1fc,
920
- _0x458c3d: 0x239,
921
- _0x2e581c: 0x141
922
- }, _0x6e117d = _0x51636d, _0x322819 = _0x41566c[_0x6e117d(0x15e)] ?? fetch, _0x381526 = _0x41566c[_0x6e117d(_0x58533a._0x7e3aca)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4d2af3 = typeof _0x41566c[_0x6e117d(_0x58533a._0x66b110)] === _0x6e117d(_0x58533a._0x113f19) && _0x41566c[_0x6e117d(0x1ca)] > 0x0 ? _0x41566c[_0x6e117d(0x1ca)] : 0x0, _0x214eb0 = _0x41566c[_0x6e117d(_0x58533a._0x247bf2)]?.['trim']() || void 0x0, _0x5cf57d = _0x41566c[_0x6e117d(_0x58533a._0x40480a)]?.[_0x6e117d(0xfc)]() || void 0x0, _0x533db4 = _0x41566c['workerModeEnabled'] === !![], _0xc38639 = _0x41566c[_0x6e117d(_0x58533a._0x27d8fa)]?.[_0x6e117d(_0x58533a._0x6ecd43)]() || void 0x0, _0x1201ef = _0x41566c[_0x6e117d(_0x58533a._0x38ca79)]?.[_0x6e117d(0xfc)]() || void 0x0, _0x98cb3a = createHeaders(_0x41566c[_0x6e117d(_0x58533a._0x1a640a)]), _0x1fd27c = toHttpBaseUrl(_0x41566c[_0x6e117d(_0x58533a._0x4721a9)]);
923
- let _0x33bc4b = null;
924
- const _0x18400e = new Map();
925
- let _0x4b7f23 = _0x4d2af3, _0x5c611d = _0x4d2af3;
926
- function _0x3690a2(_0x229de0) {
927
- const _0x378ede = _0x6e117d, _0x4ee490 = _0x229de0[_0x378ede(0x239)][_0x378ede(_0x1502bd._0x58e908)][_0x378ede(0x140)](_0x378ede(_0x1502bd._0x575c0c)) ?? _0x378ede(0x23d), _0x193321 = _0x229de0[_0x378ede(_0x1502bd._0x1cd1c3)]['trim']()[_0x378ede(_0x1502bd._0x1c8c17)](/\s+/g, '\x20')[_0x378ede(_0x1502bd._0x48454e)](0x0, 0x78) || _0x378ede(_0x1502bd._0x57d98d);
928
- return _0x378ede(_0x1502bd._0x4e10ba) + _0x229de0[_0x378ede(0x10b)] + _0x378ede(0xe3) + _0x229de0[_0x378ede(_0x1502bd._0x458c3d)]['status'] + _0x378ede(0x201) + _0x4ee490 + ',\x20preview=' + _0x193321 + _0x378ede(_0x1502bd._0x2e581c);
929
- }
930
- async function _0x3ee54f(_0x5b9e0d, _0x11e241) {
931
- const _0x239398 = _0x6e117d, _0x12f51a = Buffer['from'](await _0x11e241[_0x239398(_0x1a2e4d._0x2c6c59)]())[_0x239398(0x118)](_0x239398(0x24a));
932
- if (!_0x12f51a[_0x239398(_0x1a2e4d._0x233ea2)]())
933
- return {};
934
- try {
935
- return JSON['parse'](_0x12f51a);
936
- } catch {
937
- throw new Error(_0x3690a2({
938
- 'bodyText': _0x12f51a,
939
- 'requestUrl': _0x5b9e0d,
940
- 'response': _0x11e241
941
- }));
942
- }
943
- }
944
- function _0xc35264(_0x5c3885, _0x401fd3) {
945
- const _0x482bd6 = _0x6e117d, _0x3ab32c = typeof _0x401fd3[_0x482bd6(0x1a7)] === _0x482bd6(0x147) ? _0x401fd3[_0x482bd6(_0x148b19._0xf0abea)][_0x482bd6(_0x148b19._0x273fa3)]() : '';
946
- if (_0x3ab32c)
947
- return _0x3ab32c;
948
- const _0x33cd1f = Date[_0x482bd6(_0x148b19._0x3de802)]();
949
- for (const [_0x15bfd9, _0x4ea9bf] of _0x18400e) {
950
- _0x4ea9bf['expiresAt'] <= _0x33cd1f && _0x18400e[_0x482bd6(0x24b)](_0x15bfd9);
951
- }
952
- const _0x322909 = {
953
- ..._0x401fd3,
954
- 'idempotency_key': void 0x0
955
- }, _0x4ebc43 = createHash(_0x482bd6(_0x148b19._0x59e420))['update'](_0x5c3885 + ':' + stableStringify(_0x322909))[_0x482bd6(0x132)](_0x482bd6(_0x148b19._0x5b842a)), _0x251cce = _0x5c3885 + ':' + _0x4ebc43, _0x42c7be = _0x18400e['get'](_0x251cce);
956
- if (_0x42c7be)
957
- return _0x42c7be[_0x482bd6(_0x148b19._0x1a5557)];
958
- const _0x43bde8 = _0x482bd6(0x1bd) + _0x5c3885 + ':' + randomUUID();
959
- return _0x18400e[_0x482bd6(_0x148b19._0x3eb45e)](_0x251cce, {
960
- 'expiresAt': _0x33cd1f + 0x5 * 0x3c * 0x3e8,
961
- 'value': _0x43bde8
962
- }), _0x43bde8;
963
- }
964
- async function _0x479fa8(_0x589b0b, _0x4298a6) {
965
- const _0xdb4777 = _0x6e117d, _0x1c0c81 = new AbortController(), _0x21eb6b = setTimeout(() => _0x1c0c81['abort'](), _0x381526), _0x2699d9 = _0x4298a6?.[_0xdb4777(0x1fe)] ? anySignal(_0x4298a6[_0xdb4777(0x1fe)], _0x1c0c81['signal']) : _0x1c0c81['signal'], _0x4f9118 = '' + _0x1fd27c + _0x589b0b;
966
- try {
967
- const _0x741ff7 = await _0x322819(_0x4f9118, {
968
- ..._0x4298a6,
969
- 'signal': _0x2699d9
970
- }), _0x36ce1b = await _0x3ee54f(_0x4f9118, _0x741ff7);
971
- if (!_0x741ff7['ok'] || _0x36ce1b[_0xdb4777(_0x5d932e._0x27a269)] === ![])
972
- throw new Error(asErrorMessage(_0x36ce1b['error'], _0xdb4777(0xfb) + _0x741ff7[_0xdb4777(0x242)]));
973
- return _0x36ce1b;
974
- } finally {
975
- clearTimeout(_0x21eb6b);
976
- }
977
- }
978
- async function _0x8d9f31(_0xc7ca2d, _0x27d05f) {
979
- const _0x15dd78 = _0x6e117d, _0x4b7755 = new AbortController(), _0x3c5fc6 = setTimeout(() => _0x4b7755['abort'](), _0x381526), _0x98d74 = _0x27d05f?.[_0x15dd78(0x1fe)] ? anySignal(_0x27d05f[_0x15dd78(0x1fe)], _0x4b7755[_0x15dd78(_0x5dc57e._0x5e6cca)]) : _0x4b7755[_0x15dd78(_0x5dc57e._0x5e6cca)], _0xa30219 = '' + _0x1fd27c + _0xc7ca2d;
980
- try {
981
- const _0x1cac8e = await _0x322819(_0xa30219, {
982
- ..._0x27d05f,
983
- 'signal': _0x98d74
984
- }), _0x36131f = await _0x3ee54f(_0xa30219, _0x1cac8e);
985
- if (!_0x1cac8e['ok'])
986
- throw new Error(asErrorMessage(_0x36131f[_0x15dd78(_0x5dc57e._0x299406)], 'HTTP\x20' + _0x1cac8e[_0x15dd78(0x242)]));
987
- return _0x36131f;
988
- } finally {
989
- clearTimeout(_0x3c5fc6);
990
- }
991
- }
992
- async function _0x9c829(_0xc76a68) {
993
- const _0x1d7bde = _0x6e117d;
994
- if (!_0x5cf57d || _0xc76a68 <= _0x5c611d)
995
- return;
996
- await _0x479fa8(_0x1d7bde(0x131) + encodeURIComponent(_0x5cf57d) + _0x1d7bde(_0x38db79._0x121e4c), {
997
- 'body': JSON[_0x1d7bde(_0x38db79._0x34cd8b)]({ 'lastSeenSeq': _0xc76a68 }),
998
- 'headers': _0x98cb3a,
999
- 'method': 'PATCH'
1000
- }), _0x5c611d = _0xc76a68;
1001
- }
1002
- async function _0x4909d5(_0x487d46) {
1003
- const _0x4c8f1f = _0x6e117d;
1004
- if (!_0x214eb0 || !_0xc38639 || _0x487d46 <= _0x5c611d)
1005
- return;
1006
- const _0x1ce398 = await _0x322819(_0x214eb0 + '/workers/context-metrics', {
1007
- 'body': JSON[_0x4c8f1f(0x25c)]({
1008
- 'last_seen_seq': _0x487d46,
1009
- 'worker_session_id': _0xc38639
1010
- }),
1011
- 'headers': { 'Content-Type': _0x4c8f1f(_0x236e1c._0x5071b8) },
1012
- 'method': _0x4c8f1f(0x167)
1013
- });
1014
- if (!_0x1ce398['ok'])
1015
- throw new Error(_0x4c8f1f(_0x236e1c._0x2040a0) + _0x1ce398['status']);
1016
- _0x5c611d = _0x487d46;
1017
- }
1018
- async function _0x29186f(_0x1040ef) {
1019
- const _0x5dd108 = _0x6e117d, _0x212681 = parseTarget(_0x1040ef), _0x38371f = await _0x479fa8(_0x5dd108(_0x410f6b._0x4a40d4) + _0x41566c[_0x5dd108(0x244)] + _0x5dd108(_0x410f6b._0x3d8448), {
1020
- 'body': JSON[_0x5dd108(_0x410f6b._0x58db06)]({ 'target': _0x212681[_0x5dd108(0x257)] }),
1021
- 'headers': _0x98cb3a,
1022
- 'method': _0x5dd108(0x167)
1023
- });
1024
- return {
1025
- 'channelId': _0x38371f[_0x5dd108(0x19d)]?.[_0x5dd108(_0x410f6b._0x5d2093)] ?? '',
1026
- 'target': _0x212681[_0x5dd108(_0x410f6b._0xedaeef)],
1027
- 'task': _0x38371f[_0x5dd108(0x19d)]?.[_0x5dd108(0x1a3)],
1028
- 'threadId': _0x38371f['data']?.[_0x5dd108(0x24e)],
1029
- 'threadNumber': _0x38371f[_0x5dd108(_0x410f6b._0x299210)]?.['threadNumber']
1030
- };
1031
- }
1032
- async function _0x3a402c(_0x3a1a83 = {}) {
1033
- const _0x11e577 = {
1034
- _0x1a2863: 0x244,
1035
- _0x37e1f8: 0x1d8,
1036
- _0x3ae371: 0x1d7,
1037
- _0xf86d5d: 0x119,
1038
- _0x1d6ebb: 0x17a,
1039
- _0x5b7ab3: 0x120,
1040
- _0xa7caae: 0x19d,
1041
- _0x3ca231: 0x204
1042
- }, _0x438211 = _0x6e117d;
1043
- if (!_0x3a1a83['forceRefresh'] && _0x33bc4b)
1044
- return _0x33bc4b;
1045
- return _0x33bc4b = (async () => {
1046
- const _0x1dc194 = _0x3278, _0x349954 = await _0x479fa8(_0x1dc194(0x1b7) + _0x41566c[_0x1dc194(_0x11e577._0x1a2863)] + _0x1dc194(_0x11e577._0x37e1f8), {
1047
- 'headers': _0x98cb3a,
1048
- 'method': _0x1dc194(_0x11e577._0x3ae371)
1049
- }), _0x2b97 = _0x349954[_0x1dc194(0x19d)]?.[_0x1dc194(0xef)] ?? [], _0x54d57b = _0x2b97['filter'](_0x20c218 => _0x20c218[_0x1dc194(0x169)]?.['type'] === _0x1dc194(0x12d))['map'](_0x4a992e => ({
1050
- 'id': _0x1fc4e5(_0x4a992e),
1051
- 'name': _0xd19132(_0x4a992e)
1052
- }))[_0x1dc194(_0x11e577._0xf86d5d)](_0x1d8546 => _0x1d8546['id']), _0x275167 = _0x2b97[_0x1dc194(0x119)](_0x175213 => _0x175213['participant']?.['type'] !== _0x1dc194(0x12d))[_0x1dc194(_0x11e577._0x1d6ebb)](_0x2507de => ({
1053
- 'id': _0x1fc4e5(_0x2507de),
1054
- 'name': _0xd19132(_0x2507de)
1055
- }))['filter'](_0x1b3efd => _0x1b3efd['id']), _0x3659bb = _0x349954['data']?.['server']['id'] ?? '';
1056
- return {
1057
- 'agents': _0x54d57b,
1058
- 'channels': _0x349954[_0x1dc194(0x19d)]?.[_0x1dc194(_0x11e577._0x5b7ab3)] ?? [],
1059
- 'humans': _0x275167,
1060
- 'serverId': _0x3659bb,
1061
- 'serverName': _0x349954[_0x1dc194(_0x11e577._0xa7caae)]?.[_0x1dc194(_0x11e577._0x3ca231)][_0x1dc194(0x15b)] ?? _0x3659bb
1062
- };
1063
- })()[_0x438211(_0x4cda93._0x2bee89)](_0x1417ed => {
1064
- _0x33bc4b = null;
1065
- throw _0x1417ed;
1066
- }), _0x33bc4b;
1067
- }
1068
- function _0x4e2256(_0x1a3171, _0x22c595) {
1069
- const _0x21fb38 = _0x6e117d;
1070
- return _0x22c595['agents']['some'](_0x3d03e9 => _0x3d03e9['id'] === _0x1a3171 || _0x3d03e9[_0x21fb38(0x15b)] === _0x1a3171) ? _0x21fb38(0x12d) : _0x21fb38(_0x1af188._0x55cf1f);
1071
- }
1072
- function _0x440c09(_0x18d5aa, _0x13b717) {
1073
- const _0x217555 = _0x6e117d, _0x4951a6 = [
1074
- ..._0x13b717['agents'],
1075
- ..._0x13b717[_0x217555(0x209)]
1076
- ]['find'](_0x1ddda0 => _0x1ddda0['id'] === _0x18d5aa);
1077
- return _0x4951a6?.['name'] ?? _0x18d5aa;
1078
- }
1079
- function _0x1324fb(_0x270310) {
1080
- const _0x5bb93c = _0x6e117d;
1081
- if (_0x270310[_0x5bb93c(_0x594aa0._0x5673f2)] != null)
1082
- return _0x270310['channelTarget'] + ':t' + _0x270310['threadNumber'];
1083
- if (_0x270310[_0x5bb93c(_0x594aa0._0x35cc4d)])
1084
- return _0x270310['channelTarget'] + ':' + _0x270310[_0x5bb93c(0x1aa)];
1085
- if (_0x270310[_0x5bb93c(_0x594aa0._0x19a133)])
1086
- return _0x270310[_0x5bb93c(0x185)] + ':' + _0x270310[_0x5bb93c(_0x594aa0._0x52d1f4)][_0x5bb93c(_0x594aa0._0x1adb2d)](0x0, 0x8);
1087
- return _0x270310[_0x5bb93c(0x185)];
1088
- }
1089
- function _0x1eb86f(_0x2f9c27, _0x3070ad) {
1090
- const _0x234ae5 = _0x6e117d;
1091
- try {
1092
- const _0x686905 = parseTarget(_0x2f9c27);
1093
- if (_0x686905[_0x234ae5(_0x47c428._0x714195)] !== _0x234ae5(0x25e) || _0x686905[_0x234ae5(_0x47c428._0x127fbd)] !== _0x3070ad[_0x234ae5(0x185)])
1094
- return ![];
1095
- if (_0x3070ad[_0x234ae5(0x111)] != null && _0x686905[_0x234ae5(0x153)] === 't' + _0x3070ad[_0x234ae5(_0x47c428._0x1839dd)])
1096
- return !![];
1097
- if (_0x3070ad[_0x234ae5(_0x47c428._0x59d635)])
1098
- return _0x686905['threadShortId'] === _0x3070ad[_0x234ae5(_0x47c428._0x17bace)] || _0x3070ad[_0x234ae5(_0x47c428._0x17bace)]['startsWith'](_0x686905[_0x234ae5(0x153)]);
1099
- if (_0x3070ad['threadId'])
1100
- return _0x686905['threadShortId'] === _0x3070ad['threadId'] || _0x3070ad[_0x234ae5(0x24e)][_0x234ae5(_0x47c428._0x17792b)](_0x686905[_0x234ae5(_0x47c428._0x23fe21)]);
1101
- return ![];
1102
- } catch {
1103
- return ![];
1104
- }
1105
- }
1106
- function _0x47cc32(_0x5a507c, _0x405e00) {
1107
- const _0x16d8de = _0x6e117d;
1108
- try {
1109
- const _0x317450 = parseTarget(_0x5a507c);
1110
- if (_0x317450[_0x16d8de(_0x3a70ce._0x2cbbd6)] !== 'thread')
1111
- return ![];
1112
- const _0x2843e = typeof _0x405e00[_0x16d8de(_0x3a70ce._0x36a20a)] === _0x16d8de(0xe7) && Number[_0x16d8de(0x17e)](_0x405e00['threadNumber']) ? _0x405e00['threadNumber'] : void 0x0;
1113
- if (_0x2843e != null && _0x317450[_0x16d8de(0x153)] === 't' + _0x2843e)
1114
- return !![];
1115
- const _0x4451a4 = typeof _0x405e00[_0x16d8de(_0x3a70ce._0x6a954)] === 'string' ? _0x405e00['rootMessageId'] : void 0x0;
1116
- if (_0x4451a4)
1117
- return _0x317450['threadShortId'] === _0x4451a4 || _0x4451a4['startsWith'](_0x317450[_0x16d8de(_0x3a70ce._0x3ac428)]);
1118
- const _0x22a5f1 = typeof _0x405e00['threadId'] === _0x16d8de(0x147) ? _0x405e00[_0x16d8de(0x24e)] : void 0x0;
1119
- return Boolean(_0x22a5f1) && (_0x317450[_0x16d8de(_0x3a70ce._0x3ac428)] === _0x22a5f1 || _0x22a5f1[_0x16d8de(0x161)](_0x317450[_0x16d8de(_0x3a70ce._0x1d279e)]));
1120
- } catch {
1121
- return ![];
1122
- }
1123
- }
1124
- function _0x1fc4e5(_0x322071) {
1125
- const _0x413b89 = _0x6e117d;
1126
- return _0x322071[_0x413b89(0x1f2)]?.[_0x413b89(0x241)] ?? _0x322071[_0x413b89(_0x35af64._0x55ddef)]?.['id'] ?? _0x322071[_0x413b89(0x241)] ?? '';
1127
- }
1128
- function _0xd19132(_0x4923a6) {
1129
- const _0x429de0 = _0x6e117d;
1130
- return _0x4923a6['participant']?.[_0x429de0(0x15b)] ?? _0x1fc4e5(_0x4923a6);
1131
- }
1132
- async function _0x1fe6dc(_0x21b761) {
1133
- const _0x453612 = _0x6e117d, _0x1d6d76 = Math[_0x453612(_0x3816cb._0x300800)](_0x21b761[_0x453612(0x250)] ?? 0x32, 0x64), _0x42c737 = await _0x3a402c(), _0x1c6537 = new URLSearchParams();
1134
- _0x1c6537['set'](_0x453612(0x250), String(_0x1d6d76));
1135
- _0x21b761[_0x453612(0x24e)] ? (_0x1c6537[_0x453612(_0x3816cb._0x128fc0)](_0x453612(0x24e), _0x21b761['threadId']), _0x1c6537['set'](_0x453612(0x11d), _0x21b761['channelId'])) : _0x1c6537[_0x453612(0x17d)]('channelId', _0x21b761['channelId']);
1136
- _0x21b761['before'] && _0x1c6537[_0x453612(0x17d)](_0x453612(0x151), String(_0x21b761[_0x453612(0x12c)]));
1137
- _0x21b761[_0x453612(0x17c)] !== void 0x0 && _0x1c6537[_0x453612(0x17d)](_0x453612(0x17c), String(_0x21b761[_0x453612(_0x3816cb._0x5d9edd)]));
1138
- const _0x4d0184 = await _0x479fa8('/internal/agent/' + _0x41566c[_0x453612(_0x3816cb._0x24632b)] + _0x453612(0x1b8) + _0x1c6537[_0x453612(_0x3816cb._0x49234b)](), {
1139
- 'headers': _0x98cb3a,
1140
- 'method': _0x453612(0x1d7)
1141
- }), _0x2c442e = (_0x4d0184['data'] ?? [])[_0x453612(_0x3816cb._0x4e82ee)](_0x18017c => ({
1142
- 'attachments': (_0x18017c['attachments'] ?? [])[_0x453612(0x17a)](_0x2a214b => ({
1143
- 'filename': _0x2a214b[_0x453612(0x22f)] ?? _0x2a214b['id'],
1144
- 'id': _0x2a214b['id']
1145
- })),
1146
- 'content': _0x18017c[_0x453612(0x11c)] ?? '',
1147
- 'createdAt': _0x18017c[_0x453612(0x1e2)],
1148
- ..._0x18017c[_0x453612(0x248)] && _0x18017c['kind'] !== _0x453612(0x192) ? { 'kind': _0x18017c[_0x453612(0x248)] } : {},
1149
- 'messageId': _0x18017c['id'],
1150
- 'senderName': _0x440c09(_0x18017c[_0x453612(0x246)], _0x42c737),
1151
- 'senderType': _0x4e2256(_0x18017c['senderParticipantId'], _0x42c737),
1152
- 'seq': _0x18017c[_0x453612(0xe9)] ?? 0x0
1153
- }));
1154
- return {
1155
- 'channel': _0x21b761[_0x453612(0x185)],
1156
- 'hasMore': _0x4d0184[_0x453612(0x1f4)]?.[_0x453612(_0x3816cb._0x3a8419)] ?? ![],
1157
- 'messages': _0x2c442e,
1158
- 'nextCursor': _0x4d0184[_0x453612(0x1f4)]?.[_0x453612(_0x3816cb._0xb5592f)]
1159
- };
1160
- }
1161
- return {
1162
- async 'sendMessage'(_0x1a1adb) {
1163
- const _0xc51e6c = _0x6e117d, _0xfd3c33 = await _0x29186f(_0x1a1adb['target']), _0x440815 = _0x1a1adb[_0xc51e6c(0x164)][_0xc51e6c(0x173)]('@') ? extractMentionedParticipantIds(_0x1a1adb[_0xc51e6c(0x164)], await _0x3a402c()) : [], _0x42354b = await _0x479fa8(_0xc51e6c(0x1b7) + _0x41566c[_0xc51e6c(_0x3a56c0._0x4f8b8b)] + _0xc51e6c(_0x3a56c0._0x18d325), {
1164
- 'body': JSON[_0xc51e6c(_0x3a56c0._0x5e00b6)]({
1165
- 'attachment_ids': _0x1a1adb[_0xc51e6c(0x150)],
1166
- 'bodyMarkdown': _0x1a1adb[_0xc51e6c(_0x3a56c0._0x1911c5)],
1167
- 'channelId': _0xfd3c33[_0xc51e6c(_0x3a56c0._0x3971fe)],
1168
- ..._0x440815[_0xc51e6c(0x225)] > 0x0 ? { 'mentionedParticipantIds': _0x440815 } : {},
1169
- 'threadId': _0xfd3c33['threadId'],
1170
- ..._0x1a1adb[_0xc51e6c(_0x3a56c0._0x401e0f)] ? { 'visibility': _0x1a1adb[_0xc51e6c(0x1b6)] } : {}
1171
- }),
1172
- 'headers': _0x98cb3a,
1173
- 'method': _0xc51e6c(_0x3a56c0._0x5e2237)
1174
- });
1175
- return { 'messageId': _0x42354b['data']?.['id'] ?? '' };
1176
- },
1177
- async 'listSchedules'() {
1178
- const _0x138cd0 = _0x6e117d, _0x565582 = await _0x479fa8(_0x138cd0(_0xa75eb7._0x1645df), {
1179
- 'headers': _0x98cb3a,
1180
- 'method': _0x138cd0(_0xa75eb7._0x22dea9)
1181
- });
1182
- return _0x565582['data'] ?? [];
1183
- },
1184
- async 'claimScheduleRun'(_0x32c1a9) {
1185
- const _0x43462c = _0x6e117d, _0x57978d = await _0x479fa8('/api/internal/schedules/claim', {
1186
- 'body': JSON[_0x43462c(_0x2b5ce8._0x5b149e)](_0x32c1a9),
1187
- 'headers': _0x98cb3a,
1188
- 'method': _0x43462c(_0x2b5ce8._0x396574)
1189
- });
1190
- return _0x57978d['data'] ?? {
1191
- 'granted': ![],
1192
- 'runId': null,
1193
- 'schedule': null,
1194
- 'scheduledFor': _0x32c1a9[_0x43462c(_0x2b5ce8._0x117c54)]
1195
- };
1196
- },
1197
- async 'startScheduleRun'(_0x77a163) {
1198
- const _0x37bff6 = _0x6e117d, _0x173cf5 = await _0x479fa8(_0x37bff6(0x256) + encodeURIComponent(_0x77a163[_0x37bff6(0x1e5)]) + _0x37bff6(_0x3733bf._0x2304f3), {
1199
- 'body': JSON[_0x37bff6(0x25c)]({}),
1200
- 'headers': _0x98cb3a,
1201
- 'method': 'POST'
1202
- });
1203
- return _0x173cf5['data'] ?? {
1204
- 'claimedByDaemonId': '',
1205
- 'id': _0x77a163[_0x37bff6(_0x3733bf._0x5aaea2)],
1206
- 'scheduleId': '',
1207
- 'status': _0x37bff6(_0x3733bf._0x55183b)
1208
- };
1209
- },
1210
- async 'finishScheduleRun'(_0x4d94e2) {
1211
- const _0x48cd56 = _0x6e117d, _0x426416 = await _0x479fa8(_0x48cd56(0x256) + encodeURIComponent(_0x4d94e2[_0x48cd56(_0x5e1783._0x1188fa)]) + _0x48cd56(_0x5e1783._0x5c05a6), {
1212
- 'body': JSON[_0x48cd56(0x25c)]({
1213
- 'error': _0x4d94e2[_0x48cd56(_0x5e1783._0x27f047)],
1214
- 'resultJson': _0x4d94e2[_0x48cd56(_0x5e1783._0x31ea1d)],
1215
- 'status': _0x4d94e2[_0x48cd56(_0x5e1783._0x52fd7d)]
1216
- }),
1217
- 'headers': _0x98cb3a,
1218
- 'method': _0x48cd56(_0x5e1783._0x339893)
1219
- });
1220
- return _0x426416['data'] ?? {
1221
- 'nextRunAt': null,
1222
- 'run': {
1223
- 'claimedByDaemonId': '',
1224
- 'id': _0x4d94e2[_0x48cd56(0x1e5)],
1225
- 'scheduleId': '',
1226
- 'status': _0x4d94e2[_0x48cd56(_0x5e1783._0x52fd7d)]
1227
- }
1228
- };
1229
- },
1230
- async 'listTasks'(_0x10b366) {
1231
- const _0x52a765 = _0x6e117d, _0x2a4a6a = new URLSearchParams();
1232
- return _0x2a4a6a[_0x52a765(_0x3d77ee._0x2cbc7e)](_0x52a765(0x1a0), _0x10b366[_0x52a765(0x1a0)]), _0x10b366[_0x52a765(0x242)] && _0x2a4a6a[_0x52a765(_0x3d77ee._0x6a29f9)](_0x52a765(0x242), _0x10b366[_0x52a765(_0x3d77ee._0x586e7a)]), _0x8d9f31('/internal/agent/' + _0x41566c[_0x52a765(0x244)] + _0x52a765(_0x3d77ee._0x15b2aa) + _0x2a4a6a[_0x52a765(_0x3d77ee._0x5c2415)](), {
1233
- 'headers': _0x98cb3a,
1234
- 'method': _0x52a765(_0x3d77ee._0x346fb7)
1235
- });
1236
- },
1237
- async 'createTasks'(_0x261654) {
1238
- const _0x2fdc83 = _0x6e117d;
1239
- return _0x8d9f31(_0x2fdc83(0x1b7) + _0x41566c[_0x2fdc83(_0x5e115b._0x520ed1)] + '/tasks', {
1240
- 'body': JSON['stringify']({
1241
- ..._0x261654,
1242
- 'idempotency_key': _0xc35264(_0x2fdc83(_0x5e115b._0x57ca3e), _0x261654)
1243
- }),
1244
- 'headers': _0x98cb3a,
1245
- 'method': _0x2fdc83(_0x5e115b._0x14c610)
1246
- });
1247
- },
1248
- async 'claimTasks'(_0x395527) {
1249
- const _0x2ed6bb = _0x6e117d;
1250
- return _0x8d9f31(_0x2ed6bb(_0x1e7ec8._0x263b84) + _0x41566c['agentId'] + _0x2ed6bb(0x259), {
1251
- 'body': JSON[_0x2ed6bb(_0x1e7ec8._0x2a2f5f)]({
1252
- ..._0x395527,
1253
- 'idempotency_key': _0xc35264(_0x2ed6bb(_0x1e7ec8._0x344f70), _0x395527)
1254
- }),
1255
- 'headers': _0x98cb3a,
1256
- 'method': _0x2ed6bb(_0x1e7ec8._0x47115b)
1257
- });
1258
- },
1259
- async 'unclaimTask'(_0x67849d) {
1260
- const _0x157946 = _0x6e117d;
1261
- return _0x8d9f31(_0x157946(0x1b7) + _0x41566c[_0x157946(0x244)] + _0x157946(0x1f0), {
1262
- 'body': JSON[_0x157946(0x25c)]({
1263
- ..._0x67849d,
1264
- 'idempotency_key': _0xc35264(_0x157946(0x1c0), _0x67849d)
1265
- }),
1266
- 'headers': _0x98cb3a,
1267
- 'method': 'POST'
1268
- });
1269
- },
1270
- async 'updateTaskStatus'(_0x5d9eb8) {
1271
- const _0x25fa01 = _0x6e117d;
1272
- return _0x8d9f31(_0x25fa01(0x1b7) + _0x41566c[_0x25fa01(_0x40d2f0._0x2d414c)] + _0x25fa01(0x230), {
1273
- 'body': JSON[_0x25fa01(_0x40d2f0._0x3398a9)]({
1274
- ..._0x5d9eb8,
1275
- 'idempotency_key': _0xc35264(_0x25fa01(_0x40d2f0._0x3e1de4), _0x5d9eb8)
1276
- }),
1277
- 'headers': _0x98cb3a,
1278
- 'method': _0x25fa01(_0x40d2f0._0x3c9c14)
1279
- });
1280
- },
1281
- async 'uploadFile'(_0x46c83d) {
1282
- const _0x161671 = _0x6e117d, _0x71252e = await _0x29186f(_0x46c83d[_0x161671(_0x3dfaaf._0x534c26)]);
1283
- if (_0x71252e['threadId'])
1284
- throw new Error(_0x161671(_0x3dfaaf._0x1f10c0));
1285
- const _0x3991cd = await _0x479fa8(_0x161671(_0x3dfaaf._0x52e265) + _0x41566c[_0x161671(0x244)] + _0x161671(0x1a4), {
1286
- 'body': JSON[_0x161671(_0x3dfaaf._0x354803)]({
1287
- 'channel': _0x71252e[_0x161671(_0x3dfaaf._0x1778bc)],
1288
- 'contentBase64': _0x46c83d[_0x161671(_0x3dfaaf._0x4ce899)],
1289
- 'contentType': _0x46c83d[_0x161671(0xfd)],
1290
- 'originalFilename': _0x46c83d[_0x161671(0x22f)]
1291
- }),
1292
- 'headers': _0x98cb3a,
1293
- 'method': _0x161671(_0x3dfaaf._0xe2627b)
1294
- });
1295
- return {
1296
- 'attachmentId': _0x3991cd[_0x161671(_0x3dfaaf._0x56d696)]?.['id'] ?? '',
1297
- 'filename': _0x3991cd['data']?.[_0x161671(_0x3dfaaf._0x485e6c)] ?? _0x46c83d[_0x161671(_0x3dfaaf._0x5d1e66)],
1298
- 'sizeBytes': _0x3991cd[_0x161671(_0x3dfaaf._0x56d696)]?.['sizeBytes'] ?? 0x0
1299
- };
1300
- },
1301
- async 'downloadAttachment'(_0xf64548) {
1302
- const _0x1185ba = _0x6e117d, _0x33aac1 = await _0x479fa8(_0x1185ba(0x1ba) + _0xf64548, {
1303
- 'headers': _0x98cb3a,
1304
- 'method': _0x1185ba(_0x23b025._0x49fb0c)
1305
- }), _0x1ec3a0 = new AbortController(), _0x5e15bf = setTimeout(() => _0x1ec3a0[_0x1185ba(0x229)](), _0x381526);
1306
- try {
1307
- const _0x525f24 = await _0x322819(_0x1fd27c + _0x1185ba(0x1ba) + _0xf64548 + _0x1185ba(0x200), {
1308
- 'headers': _0x98cb3a,
1309
- 'method': 'GET',
1310
- 'signal': _0x1ec3a0[_0x1185ba(_0x23b025._0x2dbe51)]
1311
- });
1312
- if (!_0x525f24['ok'])
1313
- throw new Error(_0x1185ba(0xfb) + _0x525f24[_0x1185ba(0x242)]);
1314
- return {
1315
- 'contentType': _0x33aac1[_0x1185ba(_0x23b025._0x176c6e)]?.[_0x1185ba(0xfd)] ?? _0x525f24[_0x1185ba(_0x23b025._0x45738c)][_0x1185ba(_0x23b025._0x5af0ac)](_0x1185ba(_0x23b025._0x4764fa)) ?? _0x1185ba(_0x23b025._0x5d41db),
1316
- 'data': Buffer[_0x1185ba(_0x23b025._0x4d1f80)](await _0x525f24[_0x1185ba(0x1d5)]()),
1317
- 'originalFilename': _0x33aac1[_0x1185ba(0x19d)]?.[_0x1185ba(0x184)]
1318
- };
1319
- } finally {
1320
- clearTimeout(_0x5e15bf);
1321
- }
1322
- },
1323
- async 'listServer'() {
1324
- return _0x3a402c({ 'forceRefresh': !![] });
1325
- },
1326
- async 'getLatestEventSeq'() {
1327
- const _0x390b51 = _0x6e117d, _0xafccde = new URLSearchParams();
1328
- _0xafccde[_0x390b51(0x17d)](_0x390b51(_0x2ede4b._0x14548c), '0'), _0xafccde[_0x390b51(_0x2ede4b._0x113aab)](_0x390b51(0x250), '1');
1329
- const _0xceec85 = await _0x479fa8(_0x390b51(_0x2ede4b._0x3566b8) + _0x41566c['agentId'] + _0x390b51(_0x2ede4b._0x394d1d) + _0xafccde[_0x390b51(_0x2ede4b._0x3cdedf)](), {
1330
- 'headers': _0x98cb3a,
1331
- 'method': _0x390b51(_0x2ede4b._0x7f6b83)
1332
- }), _0x144a8c = _0xceec85[_0x390b51(0x1f4)]?.[_0x390b51(0x182)];
1333
- return typeof _0x144a8c === 'number' && _0x144a8c > 0x0 ? _0x144a8c : 0x0;
1334
- },
1335
- async 'readHistory'(_0x9cd705) {
1336
- const _0x1db420 = _0x6e117d, _0x3bb6e3 = await _0x29186f(_0x9cd705[_0x1db420(0x1a0)]);
1337
- return _0x1fe6dc({
1338
- 'after': _0x9cd705[_0x1db420(_0x449abe._0x16c689)],
1339
- 'before': _0x9cd705[_0x1db420(0x12c)],
1340
- 'channelId': _0x3bb6e3[_0x1db420(_0x449abe._0x4b4e32)],
1341
- 'channelTarget': _0x3bb6e3[_0x1db420(_0x449abe._0x32abc6)],
1342
- 'limit': _0x9cd705['limit'],
1343
- 'threadId': _0x3bb6e3['threadId']
1344
- });
1345
- },
1346
- 'resolveTarget': _0x29186f,
1347
- async 'checkMessages'() {
1348
- const _0x4029c5 = {
1349
- _0x30d8a7: 0xf1,
1350
- _0x44be95: 0x16c
1351
- }, _0x4526d6 = _0x6e117d, _0x565f00 = new URLSearchParams();
1352
- _0x565f00['set'](_0x4526d6(_0x466d41._0x3e669c), String(_0x4b7f23));
1353
- const _0x14e8d2 = _0x565f00[_0x4526d6(_0x466d41._0x3fff22)](), _0x23f6d4 = await _0x479fa8(_0x4526d6(0x1b7) + _0x41566c['agentId'] + _0x4526d6(_0x466d41._0x5b990a) + (_0x14e8d2 ? '?' + _0x14e8d2 : ''), {
1354
- 'headers': _0x98cb3a,
1355
- 'method': _0x4526d6(0x1d7)
1356
- }), _0x1b5415 = _0x23f6d4[_0x4526d6(_0x466d41._0x2096f4)] ?? [], _0x59d997 = _0x23f6d4['meta']?.[_0x4526d6(0x151)], _0x3189aa = _0x1201ef ? _0x1b5415['filter'](_0x5d55d1 => {
1357
- const _0x3628af = _0x4526d6;
1358
- if (_0x5d55d1[_0x3628af(_0x4029c5._0x30d8a7)] !== 'message')
1359
- return ![];
1360
- return _0x47cc32(_0x1201ef, asRecord(_0x5d55d1[_0x3628af(_0x4029c5._0x44be95)]));
1361
- }) : _0x1b5415, _0x268d24 = _0x59d997 !== void 0x0 ? _0x1201ef ? Math[_0x4526d6(0x16a)](_0x4b7f23, _0x3189aa[_0x4526d6(_0x466d41._0x2a9c1c)] > 0x0 ? _0x3189aa[_0x3189aa['length'] - 0x1][_0x4526d6(0x237)] : _0x4b7f23) : Math[_0x4526d6(_0x466d41._0x575a29)](_0x4b7f23, _0x59d997) : _0x3189aa[_0x4526d6(_0x466d41._0x217724)] > 0x0 ? Math['max'](_0x4b7f23, _0x3189aa[_0x3189aa[_0x4526d6(0x225)] - 0x1][_0x4526d6(_0x466d41._0x2d76a3)]) : _0x4b7f23, _0x14a503 = (_0x1201ef ? _0x3189aa : _0x1b5415)[_0x4526d6(0x119)](_0x52af38 => _0x52af38[_0x4526d6(0xf1)] === _0x4526d6(0x21b));
1362
- let _0x205f95 = await _0x3a402c(), _0x2fa1ce = new Map(_0x205f95[_0x4526d6(0x120)][_0x4526d6(0x17a)](_0x5abe4a => [
1363
- _0x5abe4a['id'],
1364
- _0x5abe4a
1365
- ]));
1366
- const _0x488332 = _0x14a503['some'](_0x583e22 => {
1367
- const _0x425d5e = _0x4526d6, _0xd838d4 = asRecord(_0x583e22[_0x425d5e(_0x19dd75._0x2ab8cf)]), _0x591766 = typeof _0xd838d4?.[_0x425d5e(0x11d)] === _0x425d5e(0x147) ? _0xd838d4[_0x425d5e(0x11d)] : '';
1368
- return Boolean(_0x591766) && !_0x2fa1ce[_0x425d5e(0x1db)](_0x591766);
1369
- });
1370
- _0x488332 && (_0x205f95 = await _0x3a402c({ 'forceRefresh': !![] }), _0x2fa1ce = new Map(_0x205f95[_0x4526d6(_0x466d41._0x512453)]['map'](_0x5e831c => [
1371
- _0x5e831c['id'],
1372
- _0x5e831c
1373
- ])));
1374
- const _0x5be8fa = new Map();
1375
- for (const _0x40328b of _0x14a503) {
1376
- const _0x3bc38d = asRecord(_0x40328b[_0x4526d6(0x16c)]), _0xa603ab = typeof _0x3bc38d[_0x4526d6(0x11d)] === _0x4526d6(_0x466d41._0x33a1f7) ? _0x3bc38d[_0x4526d6(0x11d)] : '';
1377
- if (!_0xa603ab)
1378
- continue;
1379
- const _0x673562 = typeof _0x3bc38d[_0x4526d6(_0x466d41._0x2a5717)] === _0x4526d6(_0x466d41._0x16b58f) ? _0x3bc38d[_0x4526d6(_0x466d41._0x302ba8)] : void 0x0, _0x50d838 = typeof _0x3bc38d['rootMessageId'] === _0x4526d6(0x147) ? _0x3bc38d[_0x4526d6(_0x466d41._0x92c17b)] : void 0x0, _0x464bb1 = typeof _0x3bc38d[_0x4526d6(_0x466d41._0x3b8a09)] === _0x4526d6(_0x466d41._0x257f5c) && Number[_0x4526d6(0x17e)](_0x3bc38d['threadNumber']) ? _0x3bc38d[_0x4526d6(_0x466d41._0x3b8a09)] : void 0x0, _0x33e604 = Boolean(_0x673562 && (!_0x50d838 || _0x40328b['aggregateId'] !== _0x50d838)), _0x1d636f = _0x33e604 ? _0xa603ab + ':' + _0x673562 : _0xa603ab, _0x2bafa6 = _0x5be8fa[_0x4526d6(0x140)](_0x1d636f) ?? {
1380
- 'aggregateIds': [],
1381
- 'channelId': _0xa603ab,
1382
- 'entries': new Map(),
1383
- 'isThreadReply': _0x33e604,
1384
- 'rootMessageId': _0x50d838,
1385
- 'threadNumber': _0x464bb1,
1386
- 'threadId': _0x33e604 ? _0x673562 : void 0x0
1387
- };
1388
- _0x2bafa6[_0x4526d6(_0x466d41._0x3b8a09)] == null && _0x464bb1 != null && (_0x2bafa6['threadNumber'] = _0x464bb1), !_0x2bafa6[_0x4526d6(_0x466d41._0x92c17b)] && _0x50d838 && (_0x2bafa6['rootMessageId'] = _0x50d838), _0x2bafa6[_0x4526d6(0x12b)][_0x4526d6(_0x466d41._0x2b26b7)](_0x40328b[_0x4526d6(_0x466d41._0x3c92af)]), _0x2bafa6[_0x4526d6(_0x466d41._0x51f040)][_0x4526d6(0x17d)](_0x40328b[_0x4526d6(_0x466d41._0x3c92af)], {
1389
- 'payloadJson': _0x40328b['payloadJson'],
1390
- 'seq': _0x40328b['seq']
1391
- }), _0x5be8fa['set'](_0x1d636f, _0x2bafa6);
1392
- }
1393
- const _0x23cc51 = [];
1394
- for (const _0x541fe0 of _0x5be8fa[_0x4526d6(_0x466d41._0x38a942)]()) {
1395
- const {
1396
- channelId: _0x4d458c,
1397
- threadId: _0x8be797,
1398
- rootMessageId: _0x5e49cc,
1399
- threadNumber: _0x33b50b,
1400
- aggregateIds: _0x43b195,
1401
- isThreadReply: _0xacad00,
1402
- entries: _0x7773dd
1403
- } = _0x541fe0, _0x57b87e = _0x2fa1ce[_0x4526d6(0x140)](_0x4d458c), _0x299e10 = _0x57b87e?.['name'] ?? _0x4d458c, _0x32de8f = _0x57b87e?.[_0x4526d6(0x248)] === 'dm' ? 'dm:' + _0x299e10 : '#' + _0x299e10, _0x2dca95 = {
1404
- 'channelTarget': _0x32de8f,
1405
- 'rootMessageId': _0x5e49cc,
1406
- 'threadId': _0x8be797,
1407
- 'threadNumber': _0x33b50b
1408
- }, _0x4b4d5d = await _0x1fe6dc({
1409
- 'channelId': _0x4d458c,
1410
- 'channelTarget': _0x32de8f,
1411
- 'limit': Math[_0x4526d6(_0x466d41._0x575a29)](_0x43b195[_0x4526d6(0x225)], 0x32),
1412
- 'threadId': _0x8be797
1413
- }), _0x284193 = new Map(_0x4b4d5d[_0x4526d6(_0x466d41._0x101b2f)][_0x4526d6(0x17a)](_0x2952c4 => [
1414
- _0x2952c4[_0x4526d6(0x165)],
1415
- _0x2952c4
1416
- ])), _0x9ec66e = _0x8be797 ? _0x1324fb(_0x2dca95) : _0x32de8f, _0x468aa8 = _0x1201ef ? _0xacad00 && _0x1eb86f(_0x1201ef, _0x2dca95) : !![], _0xb3e9b = _0xacad00 ? _0x468aa8 && _0x1201ef ? _0x1201ef : _0x9ec66e : _0x32de8f;
1417
- for (const _0x591bc2 of _0x43b195) {
1418
- if (!_0x468aa8)
1419
- continue;
1420
- const _0xfb7cdc = _0x7773dd['get'](_0x591bc2), _0x18e59c = _0xfb7cdc ? asRecord(_0xfb7cdc['payloadJson']) : void 0x0, _0x4b4760 = _0x18e59c?.['taskDeliveryMode'] === _0x4526d6(0x1c7), _0x505848 = _0x284193[_0x4526d6(_0x466d41._0x4a6850)](_0x591bc2);
1421
- if (_0x505848) {
1422
- _0x23cc51[_0x4526d6(_0x466d41._0x2aad9e)]({
1423
- 'attachments': _0x505848['attachments'],
1424
- 'content': _0x505848['content'],
1425
- 'createdAt': _0x505848[_0x4526d6(0x1e2)],
1426
- ..._0x505848[_0x4526d6(_0x466d41._0x5c522c)] ? { 'kind': _0x505848[_0x4526d6(0x248)] } : {},
1427
- 'messageId': _0x505848[_0x4526d6(_0x466d41._0x2b9c6b)],
1428
- 'senderName': _0x505848[_0x4526d6(0xe8)],
1429
- 'senderType': _0x505848['senderType'],
1430
- 'target': _0xb3e9b,
1431
- ..._0x4b4760 ? { 'targetedTask': !![] } : {}
1432
- });
1433
- continue;
1434
- }
1435
- if (_0xfb7cdc) {
1436
- const _0x1d9101 = typeof _0x18e59c?.[_0x4526d6(0x246)] === 'string' ? _0x18e59c[_0x4526d6(_0x466d41._0x598ed5)] : '', _0x54e344 = typeof _0x18e59c?.[_0x4526d6(_0x466d41._0x30f847)] === 'string' ? _0x18e59c[_0x4526d6(0x11c)] : '', _0x502c11 = typeof _0x18e59c?.[_0x4526d6(_0x466d41._0x5c522c)] === _0x4526d6(_0x466d41._0x621874) && _0x18e59c['kind'] !== _0x4526d6(_0x466d41._0x5453d2) ? _0x18e59c['kind'] : void 0x0;
1437
- _0x1d9101 && _0x54e344 && _0x23cc51[_0x4526d6(_0x466d41._0x454138)]({
1438
- 'attachments': [],
1439
- 'content': _0x54e344,
1440
- 'createdAt': new Date()[_0x4526d6(_0x466d41._0x19de64)](),
1441
- ..._0x502c11 ? { 'kind': _0x502c11 } : {},
1442
- 'messageId': _0x591bc2,
1443
- 'senderName': _0x440c09(_0x1d9101, _0x205f95),
1444
- 'senderType': _0x4e2256(_0x1d9101, _0x205f95),
1445
- 'target': _0xb3e9b,
1446
- ..._0x4b4760 ? { 'targetedTask': !![] } : {}
1447
- });
1448
- }
1449
- }
1450
- }
1451
- if (_0x268d24 > 0x0) {
1452
- if (_0x5cf57d)
1453
- await _0x9c829(_0x268d24);
1454
- else
1455
- _0xc38639 && await _0x4909d5(_0x268d24);
1456
- }
1457
- return _0x268d24 > _0x4b7f23 && (_0x4b7f23 = _0x268d24), { 'messages': _0x23cc51 };
1458
- }
1417
+ _0x5707 = function () {
1418
+ return _0x3d105e;
1459
1419
  };
1420
+ return _0x5707();
1460
1421
  }
1461
- function toLocalTime(_0x2e455a) {
1462
- const _0x7e60b4 = {
1463
- _0x2f9e13: 0xe6,
1464
- _0x550a42: 0x107,
1465
- _0x15eee2: 0x247
1466
- }, _0x3d9b66 = _0x51636d, _0x2bc5e1 = new Date(_0x2e455a);
1467
- if (Number[_0x3d9b66(0x1e0)](_0x2bc5e1[_0x3d9b66(0x194)]()))
1468
- return _0x2e455a;
1469
- const _0x55b64b = _0x4eb519 => String(_0x4eb519)[_0x3d9b66(0x180)](0x2, '0');
1470
- return _0x2bc5e1[_0x3d9b66(0xe1)]() + '-' + _0x55b64b(_0x2bc5e1[_0x3d9b66(0x22a)]() + 0x1) + '-' + _0x55b64b(_0x2bc5e1[_0x3d9b66(_0x7e60b4._0x2f9e13)]()) + '\x20' + _0x55b64b(_0x2bc5e1[_0x3d9b66(0x1fa)]()) + ':' + _0x55b64b(_0x2bc5e1[_0x3d9b66(_0x7e60b4._0x550a42)]()) + ':' + _0x55b64b(_0x2bc5e1[_0x3d9b66(_0x7e60b4._0x15eee2)]());
1422
+ function toLocalTime(_0xb6ccdb) {
1423
+ const _0x53f00a = {
1424
+ _0x340c53: 0x2aa,
1425
+ _0x47f679: 0x21f,
1426
+ _0x744d62: 0x18c
1427
+ }, _0x18d881 = _0x5e54a5, _0x405ea1 = new Date(_0xb6ccdb);
1428
+ if (Number[_0x18d881(0x2ec)](_0x405ea1[_0x18d881(_0x53f00a._0x340c53)]()))
1429
+ return _0xb6ccdb;
1430
+ const _0x161fff = _0x1a945e => String(_0x1a945e)['padStart'](0x2, '0');
1431
+ return _0x405ea1[_0x18d881(_0x53f00a._0x47f679)]() + '-' + _0x161fff(_0x405ea1['getMonth']() + 0x1) + '-' + _0x161fff(_0x405ea1[_0x18d881(0x1f2)]()) + '\x20' + _0x161fff(_0x405ea1['getHours']()) + ':' + _0x161fff(_0x405ea1['getMinutes']()) + ':' + _0x161fff(_0x405ea1[_0x18d881(_0x53f00a._0x744d62)]());
1471
1432
  }
1472
- function formatAttachmentSuffix(_0x40ec7e) {
1473
- const _0xdcca29 = { _0x1af1ff: 0x225 }, _0x14fe07 = _0x51636d;
1474
- if (!_0x40ec7e || _0x40ec7e[_0x14fe07(0x225)] === 0x0)
1433
+ function formatAttachmentSuffix(_0x35ddfc) {
1434
+ const _0x91bcdf = { _0x28c197: 0x1a1 }, _0x160eab = _0x5e54a5;
1435
+ if (!_0x35ddfc || _0x35ddfc['length'] === 0x0)
1475
1436
  return '';
1476
- return '\x20[' + _0x40ec7e[_0x14fe07(_0xdcca29._0x1af1ff)] + _0x14fe07(0x115) + (_0x40ec7e[_0x14fe07(0x225)] > 0x1 ? 's' : '') + ':\x20' + _0x40ec7e['map'](_0x3d167b => _0x3d167b['filename'] + '\x20(id:' + _0x3d167b['id'] + ')')[_0x14fe07(0x110)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
1437
+ return '\x20[' + _0x35ddfc[_0x160eab(_0x91bcdf._0x28c197)] + _0x160eab(0x295) + (_0x35ddfc[_0x160eab(0x1a1)] > 0x1 ? 's' : '') + ':\x20' + _0x35ddfc['map'](_0x2f914f => _0x2f914f[_0x160eab(0x289)] + _0x160eab(0x1a6) + _0x2f914f['id'] + ')')['join'](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
1477
1438
  }
1478
- function formatCheckMessages(_0x514972) {
1479
- const _0x3223d1 = {
1480
- _0x4fb9df: 0x1af,
1481
- _0x212260: 0x110
1482
- }, _0x4417e7 = {
1483
- _0x4abc75: 0x270,
1484
- _0x567106: 0x165,
1485
- _0x34ed71: 0x13f,
1486
- _0x1e2d37: 0x26e
1487
- }, _0x430cfa = _0x51636d;
1488
- if (_0x514972['length'] === 0x0)
1489
- return _0x430cfa(_0x3223d1._0x4fb9df);
1490
- return _0x514972[_0x430cfa(0x17a)](_0x10accb => {
1491
- const _0x1a5209 = _0x430cfa, _0x339976 = _0x10accb[_0x1a5209(0x193)] === _0x1a5209(0x12d) ? _0x1a5209(_0x4417e7._0x4abc75) : '', _0x15cb9f = _0x10accb[_0x1a5209(0x248)] && _0x10accb[_0x1a5209(0x248)] !== 'chat' ? '\x20kind=' + _0x10accb['kind'] : '';
1492
- return '[target=' + _0x10accb[_0x1a5209(0x257)] + _0x1a5209(0x14a) + _0x10accb[_0x1a5209(_0x4417e7._0x567106)][_0x1a5209(_0x4417e7._0x34ed71)](0x0, 0x8) + _0x1a5209(_0x4417e7._0x1e2d37) + toLocalTime(_0x10accb[_0x1a5209(0x1e2)]) + _0x339976 + _0x15cb9f + ']\x20@' + _0x10accb['senderName'] + ':\x20' + _0x10accb[_0x1a5209(0x164)] + formatAttachmentSuffix(_0x10accb['attachments']);
1493
- })[_0x430cfa(_0x3223d1._0x212260)]('\x0a');
1439
+ function formatCheckMessages(_0x34b143) {
1440
+ const _0x2eb3b9 = {
1441
+ _0x48baee: 0x1a1,
1442
+ _0x324a7d: 0x172,
1443
+ _0x3e1efc: 0x209,
1444
+ _0x26cad7: 0x27f
1445
+ }, _0x394fd3 = {
1446
+ _0x18d701: 0x189,
1447
+ _0x42659f: 0x189,
1448
+ _0x411740: 0x27e,
1449
+ _0x23e4c9: 0x1b8,
1450
+ _0x419281: 0x24f,
1451
+ _0x3a947e: 0x277,
1452
+ _0x15442e: 0x29f,
1453
+ _0x27f65f: 0x243
1454
+ }, _0x312604 = _0x5e54a5;
1455
+ if (_0x34b143[_0x312604(_0x2eb3b9._0x48baee)] === 0x0)
1456
+ return _0x312604(_0x2eb3b9._0x324a7d);
1457
+ return _0x34b143[_0x312604(_0x2eb3b9._0x3e1efc)](_0xd73486 => {
1458
+ const _0x1478c0 = _0x312604, _0x4e5f4d = _0xd73486['senderType'] === 'agent' ? _0x1478c0(0x2d6) : '', _0x1d1144 = _0xd73486[_0x1478c0(_0x394fd3._0x18d701)] && _0xd73486[_0x1478c0(_0x394fd3._0x42659f)] !== 'chat' ? _0x1478c0(_0x394fd3._0x411740) + _0xd73486[_0x1478c0(0x189)] : '';
1459
+ return _0x1478c0(_0x394fd3._0x23e4c9) + _0xd73486['target'] + _0x1478c0(_0x394fd3._0x419281) + _0xd73486['messageId'][_0x1478c0(0x2ab)](0x0, 0x8) + _0x1478c0(_0x394fd3._0x3a947e) + toLocalTime(_0xd73486[_0x1478c0(_0x394fd3._0x15442e)]) + _0x4e5f4d + _0x1d1144 + _0x1478c0(_0x394fd3._0x27f65f) + _0xd73486[_0x1478c0(0x1e7)] + ':\x20' + _0xd73486['content'] + formatAttachmentSuffix(_0xd73486[_0x1478c0(0x20b)]);
1460
+ })[_0x312604(_0x2eb3b9._0x26cad7)]('\x0a');
1494
1461
  }
1495
- function formatHistory(_0x4454ed) {
1496
- const _0x3c3bd2 = {
1497
- _0x8f898c: 0x225,
1498
- _0x4bde4b: 0x12f,
1499
- _0x4b69b3: 0x17a,
1500
- _0x579259: 0x110,
1501
- _0x3ea9d7: 0x145,
1502
- _0xdafe8e: 0x217,
1503
- _0x12f5ec: 0x127,
1504
- _0x25727d: 0x1e9,
1505
- _0x12b1de: 0x1a0
1506
- }, _0xf2847 = {
1507
- _0x57498a: 0x193,
1508
- _0x582219: 0x12d,
1509
- _0x3c20ed: 0x270,
1510
- _0x1aa6fb: 0x248,
1511
- _0x3ed9ab: 0x165,
1512
- _0x320aef: 0xde
1513
- }, _0x20d53a = _0x51636d;
1514
- if (_0x4454ed[_0x20d53a(0x127)][_0x20d53a(_0x3c3bd2._0x8f898c)] === 0x0)
1515
- return _0x20d53a(_0x3c3bd2._0x4bde4b) + _0x4454ed['channel'] + _0x20d53a(0x25b);
1516
- const _0x41d920 = _0x4454ed[_0x20d53a(0x127)][_0x20d53a(_0x3c3bd2._0x4b69b3)](_0x12e888 => {
1517
- const _0x3c3ce6 = _0x20d53a, _0x667a73 = _0x12e888[_0x3c3ce6(_0xf2847._0x57498a)] === _0x3c3ce6(_0xf2847._0x582219) ? _0x3c3ce6(_0xf2847._0x3c20ed) : '', _0x1d7613 = _0x12e888[_0x3c3ce6(0x248)] && _0x12e888[_0x3c3ce6(0x248)] !== _0x3c3ce6(0x192) ? _0x3c3ce6(0x26c) + _0x12e888[_0x3c3ce6(_0xf2847._0x1aa6fb)] : '';
1518
- return _0x3c3ce6(0x176) + _0x12e888[_0x3c3ce6(0x237)] + '\x20msg=' + _0x12e888[_0x3c3ce6(_0xf2847._0x3ed9ab)] + '\x20time=' + toLocalTime(_0x12e888['createdAt']) + _0x667a73 + _0x1d7613 + _0x3c3ce6(_0xf2847._0x320aef) + _0x12e888[_0x3c3ce6(0xe8)] + ':\x20' + _0x12e888['content'] + formatAttachmentSuffix(_0x12e888['attachments']);
1519
- })[_0x20d53a(_0x3c3bd2._0x579259)]('\x0a'), _0x29e475 = _0x4454ed[_0x20d53a(_0x3c3bd2._0x3ea9d7)] && _0x4454ed[_0x20d53a(_0x3c3bd2._0xdafe8e)] ? _0x20d53a(0x1ec) + _0x4454ed[_0x20d53a(_0x3c3bd2._0x12f5ec)][_0x20d53a(0x225)] + _0x20d53a(_0x3c3bd2._0x25727d) + _0x4454ed['nextCursor'] + _0x20d53a(0xf8) : '';
1520
- return _0x20d53a(0x12f) + _0x4454ed[_0x20d53a(_0x3c3bd2._0x12b1de)] + '\x20(' + _0x4454ed['messages'][_0x20d53a(0x225)] + _0x20d53a(0x21d) + _0x41d920 + _0x29e475;
1462
+ function formatHistory(_0xb81bde) {
1463
+ const _0x47ec0b = {
1464
+ _0x4b7c02: 0x264,
1465
+ _0x315d43: 0x19a,
1466
+ _0x3806a6: 0x298,
1467
+ _0x41e3e0: 0x1a1
1468
+ }, _0x4163e6 = {
1469
+ _0x3b18f7: 0x1d6,
1470
+ _0x3cb114: 0x2d1,
1471
+ _0x4d3b6d: 0x2d6,
1472
+ _0x1af0a8: 0x189,
1473
+ _0x4cc131: 0x189,
1474
+ _0x4cd8c6: 0x27e,
1475
+ _0xcd5f02: 0x24f,
1476
+ _0x433048: 0x277,
1477
+ _0x339cab: 0x1e7,
1478
+ _0x32c6d7: 0x22f,
1479
+ _0x37831e: 0x20b
1480
+ }, _0x239665 = _0x5e54a5;
1481
+ if (_0xb81bde[_0x239665(_0x47ec0b._0x4b7c02)]['length'] === 0x0)
1482
+ return '##\x20Message\x20History\x20for\x20' + _0xb81bde[_0x239665(0x298)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
1483
+ const _0x31a54b = _0xb81bde['messages'][_0x239665(0x209)](_0x2c4631 => {
1484
+ const _0x579053 = _0x239665, _0x1b77fc = _0x2c4631[_0x579053(_0x4163e6._0x3b18f7)] === _0x579053(_0x4163e6._0x3cb114) ? _0x579053(_0x4163e6._0x4d3b6d) : '', _0x30dd40 = _0x2c4631[_0x579053(_0x4163e6._0x1af0a8)] && _0x2c4631[_0x579053(_0x4163e6._0x4cc131)] !== _0x579053(0x28f) ? _0x579053(_0x4163e6._0x4cd8c6) + _0x2c4631['kind'] : '';
1485
+ return '[seq=' + _0x2c4631['seq'] + _0x579053(_0x4163e6._0xcd5f02) + _0x2c4631[_0x579053(0x210)] + _0x579053(_0x4163e6._0x433048) + toLocalTime(_0x2c4631[_0x579053(0x29f)]) + _0x1b77fc + _0x30dd40 + _0x579053(0x243) + _0x2c4631[_0x579053(_0x4163e6._0x339cab)] + ':\x20' + _0x2c4631[_0x579053(_0x4163e6._0x32c6d7)] + formatAttachmentSuffix(_0x2c4631[_0x579053(_0x4163e6._0x37831e)]);
1486
+ })['join']('\x0a'), _0x4be725 = _0xb81bde['hasMore'] && _0xb81bde['nextCursor'] ? _0x239665(_0x47ec0b._0x315d43) + _0xb81bde['messages']['length'] + '\x20messages\x20shown.\x20Use\x20before=' + _0xb81bde[_0x239665(0x1ee)] + _0x239665(0x1ab) : '';
1487
+ return _0x239665(0x1b1) + _0xb81bde[_0x239665(_0x47ec0b._0x3806a6)] + '\x20(' + _0xb81bde['messages'][_0x239665(_0x47ec0b._0x41e3e0)] + _0x239665(0x181) + _0x31a54b + _0x4be725;
1521
1488
  }
1522
- function formatServerDirectory(_0x2d6d2b) {
1523
- const _0x221a16 = {
1524
- _0x5eadd6: 0x120,
1525
- _0x256593: 0x110,
1526
- _0x2ca5c4: 0x1a5,
1527
- _0x499af0: 0x17a,
1528
- _0x43f8a5: 0x209,
1529
- _0x45dfc5: 0x225,
1530
- _0x4f177f: 0x106,
1531
- _0x1d75c9: 0x1f8
1532
- }, _0x42ec29 = _0x51636d, _0x21d708 = _0x2d6d2b['channels']['length'] > 0x0 ? _0x2d6d2b[_0x42ec29(_0x221a16._0x5eadd6)][_0x42ec29(0x17a)](_0x34711c => _0x34711c[_0x42ec29(0x227)] ? _0x42ec29(0x216) + _0x34711c[_0x42ec29(0x15b)] + _0x42ec29(0x179) + _0x34711c[_0x42ec29(0x227)] : _0x42ec29(0x216) + _0x34711c['name'])[_0x42ec29(_0x221a16._0x256593)]('\x0a') : _0x42ec29(_0x221a16._0x2ca5c4), _0x53bf46 = _0x2d6d2b[_0x42ec29(0x1d4)][_0x42ec29(0x225)] > 0x0 ? _0x2d6d2b[_0x42ec29(0x1d4)][_0x42ec29(_0x221a16._0x499af0)](_0x52c936 => _0x42ec29(0x271) + _0x52c936['name'])['join']('\x0a') : '(none)', _0x3f4718 = _0x2d6d2b[_0x42ec29(_0x221a16._0x43f8a5)][_0x42ec29(_0x221a16._0x45dfc5)] > 0x0 ? _0x2d6d2b[_0x42ec29(0x209)][_0x42ec29(0x17a)](_0x11b10b => '-\x20@' + _0x11b10b[_0x42ec29(0x15b)])[_0x42ec29(0x110)]('\x0a') : _0x42ec29(0x1a5);
1489
+ function formatServerDirectory(_0x5cb532) {
1490
+ const _0x334119 = {
1491
+ _0x1b3d64: 0x27f,
1492
+ _0x57abc4: 0x18f,
1493
+ _0x4240fe: 0x209
1494
+ }, _0xab5276 = _0x5e54a5, _0x223727 = _0x5cb532['channels']['length'] > 0x0 ? _0x5cb532[_0xab5276(0x262)][_0xab5276(0x209)](_0x23124e => _0x23124e['description'] ? _0xab5276(0x271) + _0x23124e['name'] + _0xab5276(0x27d) + _0x23124e[_0xab5276(0x281)] : _0xab5276(0x271) + _0x23124e[_0xab5276(0x1a4)])[_0xab5276(_0x334119._0x1b3d64)]('\x0a') : _0xab5276(_0x334119._0x57abc4), _0x481ae1 = _0x5cb532['agents']['length'] > 0x0 ? _0x5cb532['agents'][_0xab5276(0x209)](_0x8f3e07 => _0xab5276(0x167) + _0x8f3e07['name'])[_0xab5276(0x27f)]('\x0a') : _0xab5276(0x18f), _0x50591c = _0x5cb532['humans'][_0xab5276(0x1a1)] > 0x0 ? _0x5cb532[_0xab5276(0x183)][_0xab5276(_0x334119._0x4240fe)](_0x318c07 => _0xab5276(0x167) + _0x318c07[_0xab5276(0x1a4)])[_0xab5276(_0x334119._0x1b3d64)]('\x0a') : _0xab5276(0x18f);
1533
1495
  return [
1534
- _0x42ec29(_0x221a16._0x4f177f) + _0x2d6d2b[_0x42ec29(_0x221a16._0x1d75c9)],
1496
+ _0xab5276(0x20e) + _0x5cb532[_0xab5276(0x1f0)],
1535
1497
  '',
1536
- _0x42ec29(0x1bc),
1537
- _0x21d708,
1498
+ _0xab5276(0x1fa),
1499
+ _0x223727,
1538
1500
  '',
1539
1501
  '###\x20Agents',
1540
- _0x53bf46,
1502
+ _0x481ae1,
1541
1503
  '',
1542
- _0x42ec29(0x266),
1543
- _0x3f4718
1504
+ _0xab5276(0x293),
1505
+ _0x50591c
1544
1506
  ]['join']('\x0a');
1545
1507
  }
1546
- function formatUploadResult(_0x383f21) {
1547
- const _0x43722e = { _0x3d7d94: 0x1a2 }, _0x4cadf0 = _0x51636d;
1548
- return 'File\x20uploaded:\x20' + _0x383f21[_0x4cadf0(0x22f)] + '\x20(' + (_0x383f21[_0x4cadf0(0x232)] / 0x400)['toFixed'](0x1) + _0x4cadf0(0x148) + _0x383f21[_0x4cadf0(_0x43722e._0x3d7d94)] + _0x4cadf0(0x14d);
1508
+ function formatUploadResult(_0x3d1ce3) {
1509
+ const _0x569b79 = {
1510
+ _0x208e4d: 0x2d7,
1511
+ _0x3b3010: 0x2b7
1512
+ }, _0x261d1f = _0x5e54a5;
1513
+ return 'File\x20uploaded:\x20' + _0x3d1ce3[_0x261d1f(0x289)] + '\x20(' + (_0x3d1ce3[_0x261d1f(0x1b0)] / 0x400)[_0x261d1f(_0x569b79._0x208e4d)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x3d1ce3[_0x261d1f(_0x569b79._0x3b3010)] + _0x261d1f(0x27c);
1549
1514
  }
1550
- function formatViewFileResult(_0xf0aa76, _0x4630dc) {
1551
- const _0x5de002 = _0x51636d;
1552
- return _0x4630dc ? _0x5de002(0x187) + _0xf0aa76 : 'Downloaded\x20to:\x20' + _0xf0aa76;
1515
+ function formatViewFileResult(_0x4138f2, _0x4e5eea) {
1516
+ const _0x375a05 = _0x5e54a5;
1517
+ return _0x4e5eea ? _0x375a05(0x19f) + _0x4138f2 : _0x375a05(0x266) + _0x4138f2;
1553
1518
  }
1554
- function formatTaskList(_0x10800a, _0x4c6ca6) {
1555
- const _0x1f127a = {
1556
- _0x4ee5f8: 0x124,
1557
- _0x266f60: 0x110
1558
- }, _0x48ca4c = {
1559
- _0x4b9546: 0x1cf,
1560
- _0x36f414: 0x142,
1561
- _0x1c3237: 0x1dc,
1562
- _0x343f1d: 0x273,
1563
- _0x6ff720: 0xe0,
1564
- _0x256b40: 0x210,
1565
- _0x555662: 0x274,
1566
- _0x34e5e4: 0x21e,
1567
- _0x339cd5: 0x242,
1568
- _0x334cc4: 0x146
1569
- }, _0x216571 = _0x51636d;
1570
- if (_0x10800a[_0x216571(0x225)] === 0x0)
1571
- return _0x216571(_0x1f127a._0x4ee5f8);
1572
- return _0x10800a['map'](_0x35b68a => {
1573
- const _0x21d353 = _0x216571, _0x389802 = _0x35b68a[_0x21d353(_0x48ca4c._0x4b9546)] == null ? _0x21d353(_0x48ca4c._0x36f414) : _0x35b68a[_0x21d353(_0x48ca4c._0x1c3237)] != null ? '#' + _0x35b68a[_0x21d353(0x1cf)] + '.' + _0x35b68a[_0x21d353(0x1dc)] : '#' + _0x35b68a[_0x21d353(0x1cf)], _0x27d0e8 = _0x35b68a['messageId'] ? _0x21d353(_0x48ca4c._0x343f1d) + _0x35b68a['messageId'] : '', _0x535e0e = _0x4c6ca6 && _0x35b68a['taskNumber'] != null && !_0x35b68a[_0x21d353(0x1dc)] && _0x4c6ca6['has'](_0x35b68a[_0x21d353(0x1cf)]) ? _0x21d353(_0x48ca4c._0x6ff720) : '', _0x181425 = _0x35b68a['childrenTotal'] != null && _0x35b68a[_0x21d353(0x274)] > 0x0 ? '\x20(' + (_0x35b68a[_0x21d353(_0x48ca4c._0x256b40)] ?? 0x0) + '/' + _0x35b68a[_0x21d353(_0x48ca4c._0x555662)] + '\x20done)' : '', _0x22b924 = _0x35b68a[_0x21d353(0x20a)] ? _0x21d353(_0x48ca4c._0x34e5e4) + _0x35b68a[_0x21d353(0x20a)] : '';
1574
- return _0x389802 + '\x20[' + _0x35b68a[_0x21d353(_0x48ca4c._0x339cd5)] + ']\x20' + _0x35b68a[_0x21d353(_0x48ca4c._0x334cc4)] + _0x181425 + _0x22b924 + _0x27d0e8 + _0x535e0e;
1575
- })[_0x216571(_0x1f127a._0x266f60)]('\x0a');
1519
+ function formatTaskList(_0x4dd39f, _0x36dc03) {
1520
+ const _0x573524 = {
1521
+ _0x1a4483: 0x1a5,
1522
+ _0x251de6: 0x209
1523
+ }, _0x57cc6a = {
1524
+ _0x2a548f: 0x25c,
1525
+ _0x49d411: 0x1b3,
1526
+ _0x356a0b: 0x2ad
1527
+ }, _0x16b359 = _0x5e54a5;
1528
+ if (_0x4dd39f['length'] === 0x0)
1529
+ return _0x16b359(_0x573524._0x1a4483);
1530
+ return _0x4dd39f[_0x16b359(_0x573524._0x251de6)](_0x526551 => {
1531
+ const _0x34a92d = _0x16b359, _0x1441d0 = _0x526551['taskNumber'] == null ? '(legacy)' : _0x526551[_0x34a92d(0x19e)] != null ? '#' + _0x526551[_0x34a92d(0x25c)] + '.' + _0x526551[_0x34a92d(0x19e)] : '#' + _0x526551[_0x34a92d(0x25c)], _0x5b2baf = _0x526551['messageId'] ? _0x34a92d(0x233) + _0x526551[_0x34a92d(0x210)] : '', _0x473681 = _0x36dc03 && _0x526551[_0x34a92d(_0x57cc6a._0x2a548f)] != null && !_0x526551['subtaskNumber'] && _0x36dc03['has'](_0x526551['taskNumber']) ? _0x34a92d(0x2d2) : '', _0x5bfcd7 = _0x526551[_0x34a92d(_0x57cc6a._0x49d411)] != null && _0x526551[_0x34a92d(0x1b3)] > 0x0 ? '\x20(' + (_0x526551['childrenDone'] ?? 0x0) + '/' + _0x526551[_0x34a92d(0x1b3)] + _0x34a92d(0x2e9) : '', _0x240716 = _0x526551[_0x34a92d(0x236)] ? _0x34a92d(0x22e) + _0x526551[_0x34a92d(0x236)] : '';
1532
+ return _0x1441d0 + '\x20[' + _0x526551['status'] + ']\x20' + _0x526551[_0x34a92d(_0x57cc6a._0x356a0b)] + _0x5bfcd7 + _0x240716 + _0x5b2baf + _0x473681;
1533
+ })['join']('\x0a');
1576
1534
  }
1577
- function formatCreatedTasks(_0x3ce567) {
1578
- const _0xe371d0 = {
1579
- _0x33da69: 0x225,
1580
- _0x45f445: 0x15c,
1581
- _0x2793ce: 0x110
1582
- }, _0x9072df = {
1583
- _0x38896f: 0x1dc,
1584
- _0x3b38a1: 0x1cf,
1585
- _0x4e9508: 0x1dc,
1586
- _0x1a58d5: 0x1cf,
1587
- _0x2bed7a: 0x146
1588
- }, _0xc0d24 = _0x51636d;
1589
- if (_0x3ce567[_0xc0d24(_0xe371d0._0x33da69)] === 0x0)
1590
- return _0xc0d24(_0xe371d0._0x45f445);
1591
- return _0x3ce567[_0xc0d24(0x17a)](_0x59c7de => {
1592
- const _0xf7ce84 = _0xc0d24, _0x1e9b0a = _0x59c7de[_0xf7ce84(0x1cf)] == null ? _0xf7ce84(0x142) : _0x59c7de[_0xf7ce84(_0x9072df._0x38896f)] != null ? '#' + _0x59c7de[_0xf7ce84(_0x9072df._0x3b38a1)] + '.' + _0x59c7de[_0xf7ce84(_0x9072df._0x4e9508)] : '#' + _0x59c7de[_0xf7ce84(_0x9072df._0x1a58d5)], _0x5e140d = _0x59c7de['messageId'] ? _0xf7ce84(0x273) + _0x59c7de['messageId'] : '';
1593
- return _0x1e9b0a + '\x20' + _0x59c7de[_0xf7ce84(_0x9072df._0x2bed7a)] + _0x5e140d;
1594
- })[_0xc0d24(_0xe371d0._0x2793ce)]('\x0a');
1535
+ function formatCreatedTasks(_0x2d6daa) {
1536
+ const _0x320d42 = {
1537
+ _0x24aee5: 0x163,
1538
+ _0x5a6bca: 0x209
1539
+ }, _0x233fc4 = { _0xeb24f9: 0x19e }, _0x528c63 = _0x5e54a5;
1540
+ if (_0x2d6daa[_0x528c63(0x1a1)] === 0x0)
1541
+ return _0x528c63(_0x320d42._0x24aee5);
1542
+ return _0x2d6daa[_0x528c63(_0x320d42._0x5a6bca)](_0x565f9d => {
1543
+ const _0x870923 = _0x528c63, _0x346756 = _0x565f9d['taskNumber'] == null ? '(legacy)' : _0x565f9d[_0x870923(0x19e)] != null ? '#' + _0x565f9d[_0x870923(0x25c)] + '.' + _0x565f9d[_0x870923(_0x233fc4._0xeb24f9)] : '#' + _0x565f9d['taskNumber'], _0x5285a6 = _0x565f9d[_0x870923(0x210)] ? _0x870923(0x233) + _0x565f9d[_0x870923(0x210)] : '';
1544
+ return _0x346756 + '\x20' + _0x565f9d[_0x870923(0x2ad)] + _0x5285a6;
1545
+ })['join']('\x0a');
1595
1546
  }
1596
- function formatClaimTaskLabel(_0x5e3763, _0x438d84) {
1597
- if (_0x5e3763 == null)
1598
- return '(legacy)';
1599
- return _0x438d84 != null ? '#' + _0x5e3763 + '.' + _0x438d84 : '#' + _0x5e3763;
1547
+ function formatClaimTaskLabel(_0x51ae5d, _0x4087b2) {
1548
+ const _0x5e7d8c = _0x5e54a5;
1549
+ if (_0x51ae5d == null)
1550
+ return _0x5e7d8c(0x237);
1551
+ return _0x4087b2 != null ? '#' + _0x51ae5d + '.' + _0x4087b2 : '#' + _0x51ae5d;
1600
1552
  }
1601
- function formatClaimTaskResults(_0x13f698) {
1602
- const _0x2ad6ad = {
1603
- _0x2af53a: 0x233,
1604
- _0x25859b: 0x1e7,
1605
- _0x4a2e68: 0x1fb,
1606
- _0x3b27c1: 0x1be,
1607
- _0xce3f4b: 0x212,
1608
- _0x1ea4c2: 0x1b1,
1609
- _0x602857: 0x119,
1610
- _0xa4c084: 0x102,
1611
- _0x405ca4: 0x162,
1612
- _0xea1ab0: 0x1cf,
1613
- _0x36f4b9: 0x1dc,
1614
- _0x2955a5: 0x1ac
1615
- }, _0x3650ff = _0x51636d;
1616
- if (_0x13f698['length'] === 0x0)
1617
- return _0x3650ff(0x16e);
1618
- return _0x13f698[_0x3650ff(0x17a)](_0x3664f7 => {
1619
- const _0x9a7840 = _0x3650ff;
1620
- if (_0x3664f7[_0x9a7840(_0x2ad6ad._0x2af53a)]) {
1621
- const _0x56d556 = formatClaimTaskLabel(_0x3664f7[_0x9a7840(0x1cf)], _0x3664f7[_0x9a7840(0x1dc)]), _0x11fd46 = _0x3664f7[_0x9a7840(0x165)] ? '\x20message=' + _0x3664f7[_0x9a7840(0x165)] : '';
1622
- if (_0x3664f7[_0x9a7840(0x199)]) {
1623
- const _0x2037f3 = [
1624
- 'workerHandoff=true',
1625
- _0x3664f7[_0x9a7840(_0x2ad6ad._0x25859b)] ? _0x9a7840(0x10c) : null,
1626
- _0x3664f7[_0x9a7840(_0x2ad6ad._0x4a2e68)] ? _0x9a7840(_0x2ad6ad._0x3b27c1) + _0x3664f7['executionMode'] : null,
1627
- _0x3664f7[_0x9a7840(0x212)] ? 'threadTarget=' + _0x3664f7[_0x9a7840(_0x2ad6ad._0xce3f4b)] : null,
1628
- _0x3664f7[_0x9a7840(0x1d1)] ? _0x9a7840(_0x2ad6ad._0x1ea4c2) + _0x3664f7['workerDisposition'] : null
1629
- ][_0x9a7840(_0x2ad6ad._0x602857)](Boolean)['join']('\x20');
1630
- return _0x56d556 + '\x20claimed' + _0x11fd46 + '\x20' + _0x2037f3 + _0x9a7840(0x1d2);
1553
+ function formatClaimTaskResults(_0x389b75) {
1554
+ const _0x26c070 = {
1555
+ _0x2f126d: 0x1a1,
1556
+ _0x3910b6: 0x1be,
1557
+ _0x53eead: 0x27f
1558
+ }, _0x35b613 = {
1559
+ _0x3829c6: 0x1bb,
1560
+ _0x25f9c3: 0x210,
1561
+ _0x6b31d0: 0x1f4,
1562
+ _0x390672: 0x1c7,
1563
+ _0x19e084: 0x280,
1564
+ _0x3e746e: 0x261,
1565
+ _0x4541cf: 0x2ca,
1566
+ _0x3d3aff: 0x222,
1567
+ _0x55b643: 0x27f,
1568
+ _0x2847b6: 0x188,
1569
+ _0x135967: 0x248,
1570
+ _0x52814e: 0x294,
1571
+ _0x5e2a80: 0x199,
1572
+ _0x48d42a: 0x195,
1573
+ _0x10348f: 0x254
1574
+ }, _0x2617bd = _0x5e54a5;
1575
+ if (_0x389b75[_0x2617bd(_0x26c070._0x2f126d)] === 0x0)
1576
+ return _0x2617bd(_0x26c070._0x3910b6);
1577
+ return _0x389b75['map'](_0x4b91ac => {
1578
+ const _0x2b8119 = _0x2617bd;
1579
+ if (_0x4b91ac[_0x2b8119(_0x35b613._0x3829c6)]) {
1580
+ const _0x192aca = formatClaimTaskLabel(_0x4b91ac['taskNumber'], _0x4b91ac['subtaskNumber']), _0x2ac57b = _0x4b91ac[_0x2b8119(_0x35b613._0x25f9c3)] ? '\x20message=' + _0x4b91ac[_0x2b8119(_0x35b613._0x25f9c3)] : '';
1581
+ if (_0x4b91ac[_0x2b8119(0x24b)]) {
1582
+ const _0x31a59b = [
1583
+ _0x2b8119(_0x35b613._0x6b31d0),
1584
+ _0x4b91ac[_0x2b8119(_0x35b613._0x390672)] ? _0x2b8119(_0x35b613._0x19e084) : null,
1585
+ _0x4b91ac[_0x2b8119(0x2c2)] ? _0x2b8119(_0x35b613._0x3e746e) + _0x4b91ac['executionMode'] : null,
1586
+ _0x4b91ac[_0x2b8119(0x18d)] ? _0x2b8119(_0x35b613._0x4541cf) + _0x4b91ac[_0x2b8119(0x18d)] : null,
1587
+ _0x4b91ac['workerDisposition'] ? _0x2b8119(_0x35b613._0x3d3aff) + _0x4b91ac[_0x2b8119(0x20c)] : null
1588
+ ][_0x2b8119(0x2de)](Boolean)[_0x2b8119(_0x35b613._0x55b643)]('\x20');
1589
+ return _0x192aca + _0x2b8119(0x1fc) + _0x2ac57b + '\x20' + _0x31a59b + _0x2b8119(_0x35b613._0x2847b6);
1631
1590
  }
1632
- if (_0x3664f7[_0x9a7840(_0x2ad6ad._0x4a2e68)] === _0x9a7840(_0x2ad6ad._0xa4c084))
1633
- return _0x56d556 + _0x9a7840(_0x2ad6ad._0x405ca4) + _0x11fd46 + '\x20workerHandoff=false\x20executionMode=main\x0aStay\x20in\x20main\x20session:\x20read\x20the\x20referenced\x20plan/document\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20(or\x20otherwise\x20advance\x20the\x20task\x20in\x20main\x20without\x20handing\x20off\x20to\x20a\x20worker).';
1634
- const _0x119b20 = _0x3664f7['workerHandoffError'] ? _0x9a7840(0xf6) + _0x3664f7['workerHandoffError'] : '';
1635
- return _0x56d556 + _0x9a7840(_0x2ad6ad._0x405ca4) + _0x11fd46 + _0x119b20;
1591
+ if (_0x4b91ac[_0x2b8119(0x2c2)] === _0x2b8119(_0x35b613._0x135967))
1592
+ return _0x192aca + '\x20claimed' + _0x2ac57b + _0x2b8119(_0x35b613._0x52814e);
1593
+ const _0x294fa4 = _0x4b91ac['workerHandoffError'] ? _0x2b8119(0x1a7) + _0x4b91ac[_0x2b8119(0x297)] : '';
1594
+ return _0x192aca + _0x2b8119(0x1fc) + _0x2ac57b + _0x294fa4;
1636
1595
  }
1637
- const _0x15e2bc = _0x3664f7[_0x9a7840(_0x2ad6ad._0xea1ab0)] == null ? _0x3664f7[_0x9a7840(0x165)] ?? '(unknown)' : formatClaimTaskLabel(_0x3664f7[_0x9a7840(0x1cf)], _0x3664f7[_0x9a7840(_0x2ad6ad._0x36f4b9)]);
1638
- return _0x15e2bc + _0x9a7840(_0x2ad6ad._0x2955a5) + (_0x3664f7[_0x9a7840(0x214)] ?? _0x9a7840(0x112));
1639
- })[_0x3650ff(0x110)]('\x0a');
1596
+ const _0x5818a2 = _0x4b91ac[_0x2b8119(0x25c)] == null ? _0x4b91ac[_0x2b8119(_0x35b613._0x25f9c3)] ?? _0x2b8119(_0x35b613._0x5e2a80) : formatClaimTaskLabel(_0x4b91ac['taskNumber'], _0x4b91ac[_0x2b8119(0x19e)]);
1597
+ return _0x5818a2 + _0x2b8119(0x2a9) + (_0x4b91ac[_0x2b8119(_0x35b613._0x48d42a)] ?? _0x2b8119(_0x35b613._0x10348f));
1598
+ })[_0x2617bd(_0x26c070._0x53eead)]('\x0a');
1640
1599
  }
1641
- function formatUnclaimTaskResult(_0x22ca7e) {
1642
- const _0x11524d = {
1643
- _0xedfe82: 0x1cf,
1644
- _0x3b28d2: 0x1dc,
1645
- _0x2956cf: 0x121
1646
- }, _0x216f2e = _0x51636d, _0x2e2f56 = _0x22ca7e[_0x216f2e(_0x11524d._0xedfe82)] == null ? _0x216f2e(0x142) : _0x22ca7e[_0x216f2e(_0x11524d._0x3b28d2)] != null ? '#' + _0x22ca7e[_0x216f2e(0x1cf)] + '.' + _0x22ca7e['subtaskNumber'] : '#' + _0x22ca7e['taskNumber'];
1647
- return _0x2e2f56 + _0x216f2e(_0x11524d._0x2956cf) + _0x22ca7e['status'];
1600
+ function formatUnclaimTaskResult(_0x300725) {
1601
+ const _0x5b209d = {
1602
+ _0x248bc8: 0x19e,
1603
+ _0x760a01: 0x25c,
1604
+ _0xf5f533: 0x2bc
1605
+ }, _0x828133 = _0x5e54a5, _0x56e35f = _0x300725[_0x828133(0x25c)] == null ? _0x828133(0x237) : _0x300725[_0x828133(_0x5b209d._0x248bc8)] != null ? '#' + _0x300725['taskNumber'] + '.' + _0x300725['subtaskNumber'] : '#' + _0x300725[_0x828133(_0x5b209d._0x760a01)];
1606
+ return _0x56e35f + _0x828133(_0x5b209d._0xf5f533) + _0x300725['status'];
1648
1607
  }
1649
- function formatUpdateTaskStatusResult(_0x423749) {
1650
- const _0xbbe15e = {
1651
- _0x352ff1: 0x1cf,
1652
- _0x13048d: 0x121,
1653
- _0x2df6ea: 0x242,
1654
- _0x5a62ac: 0x1ae,
1655
- _0x5896a0: 0x1f5
1656
- }, _0x4afa30 = _0x51636d, _0xe1073c = _0x423749['taskNumber'] == null ? _0x4afa30(0x142) : _0x423749[_0x4afa30(0x1dc)] != null ? '#' + _0x423749[_0x4afa30(0x1cf)] + '.' + _0x423749[_0x4afa30(0x1dc)] : '#' + _0x423749[_0x4afa30(_0xbbe15e._0x352ff1)], _0x4bbd96 = _0xe1073c + _0x4afa30(_0xbbe15e._0x13048d) + _0x423749[_0x4afa30(_0xbbe15e._0x2df6ea)];
1657
- if (_0x423749[_0x4afa30(0x242)] !== _0x4afa30(_0xbbe15e._0x5a62ac))
1658
- return _0x4bbd96;
1659
- return _0x4bbd96 + _0x4afa30(_0xbbe15e._0x5896a0);
1608
+ function formatUpdateTaskStatusResult(_0x3e1be0) {
1609
+ const _0x408b87 = {
1610
+ _0x1825f4: 0x25c,
1611
+ _0x32bef7: 0x237,
1612
+ _0x50844c: 0x2bc,
1613
+ _0x54b0b1: 0x1f3,
1614
+ _0x3bf815: 0x27b,
1615
+ _0x58455e: 0x2d0
1616
+ }, _0x35c882 = _0x5e54a5, _0x3eafe8 = _0x3e1be0[_0x35c882(_0x408b87._0x1825f4)] == null ? _0x35c882(_0x408b87._0x32bef7) : _0x3e1be0[_0x35c882(0x19e)] != null ? '#' + _0x3e1be0[_0x35c882(0x25c)] + '.' + _0x3e1be0[_0x35c882(0x19e)] : '#' + _0x3e1be0['taskNumber'], _0x4ac478 = _0x3eafe8 + _0x35c882(_0x408b87._0x50844c) + _0x3e1be0[_0x35c882(_0x408b87._0x54b0b1)];
1617
+ if (_0x3e1be0[_0x35c882(_0x408b87._0x54b0b1)] !== _0x35c882(_0x408b87._0x3bf815))
1618
+ return _0x4ac478;
1619
+ return _0x4ac478 + _0x35c882(_0x408b87._0x58455e);
1660
1620
  }
1661
1621
  function getChatBridgeToolDefinitions() {
1662
- const _0x33c56d = { _0x4fd07b: 0x1d6 }, _0x51517e = _0x51636d;
1622
+ const _0x42050c = {
1623
+ _0x2412eb: 0x160,
1624
+ _0x4b6df5: 0x2b9,
1625
+ _0x255265: 0x173,
1626
+ _0x57a2dc: 0x24a,
1627
+ _0x14760b: 0x256,
1628
+ _0x42385f: 0x1cd,
1629
+ _0x3975b8: 0x2b6,
1630
+ _0x3ebacf: 0x2ee
1631
+ }, _0x211862 = _0x5e54a5;
1663
1632
  return [
1664
- { 'name': _0x51517e(0x105) },
1665
- { 'name': 'check_messages' },
1633
+ { 'name': _0x211862(_0x42050c._0x2412eb) },
1634
+ { 'name': _0x211862(0x284) },
1666
1635
  { 'name': 'read_history' },
1667
- { 'name': 'list_server' },
1668
- { 'name': _0x51517e(0x1e4) },
1636
+ { 'name': _0x211862(0x1cc) },
1637
+ { 'name': _0x211862(_0x42050c._0x4b6df5) },
1669
1638
  { 'name': 'view_file' },
1670
- { 'name': _0x51517e(0x1ce) },
1671
- { 'name': 'create_tasks' },
1672
- { 'name': _0x51517e(0x126) },
1673
- { 'name': _0x51517e(0x1c0) },
1639
+ { 'name': 'list_tasks' },
1640
+ { 'name': _0x211862(_0x42050c._0x255265) },
1641
+ { 'name': 'claim_tasks' },
1642
+ { 'name': _0x211862(_0x42050c._0x57a2dc) },
1674
1643
  { 'name': 'update_task_status' },
1675
- { 'name': 'get_worker_status' },
1676
- { 'name': _0x51517e(0x1f6) },
1677
- { 'name': _0x51517e(0x20e) },
1678
- { 'name': _0x51517e(_0x33c56d._0x4fd07b) }
1644
+ { 'name': _0x211862(_0x42050c._0x14760b) },
1645
+ { 'name': _0x211862(_0x42050c._0x42385f) },
1646
+ { 'name': _0x211862(_0x42050c._0x3975b8) },
1647
+ { 'name': _0x211862(_0x42050c._0x3ebacf) }
1679
1648
  ];
1680
1649
  }
1681
- function createChatBridgeHandlers(_0x17d0f2) {
1682
- const _0x44ef97 = { _0x36191c: 0x22e }, _0x440039 = {
1683
- _0x3c166a: 0x163,
1684
- _0xac99f9: 0x167,
1685
- _0x58c1c2: 0x25c,
1686
- _0x39e15d: 0xed,
1687
- _0x2a431f: 0x214
1688
- }, _0x4e0493 = {
1689
- _0x5115d6: 0x244,
1690
- _0x3632e2: 0x1b9,
1691
- _0x3f2f9d: 0x14e,
1692
- _0x390ded: 0x1e3
1693
- }, _0x38cecb = {
1694
- _0x134d9d: 0x163,
1695
- _0x136f52: 0x167,
1696
- _0x4b3c0f: 0x25c,
1697
- _0x136fb8: 0x14e,
1698
- _0x229385: 0xed,
1699
- _0x221f9c: 0x213,
1700
- _0x33ea2c: 0x20c
1701
- }, _0x3690d1 = {
1702
- _0x1e48af: 0x20f,
1703
- _0x4563c8: 0x163,
1704
- _0x179cf8: 0x14c,
1705
- _0x4b9cc2: 0x213,
1706
- _0x2e6b65: 0x14e,
1707
- _0x4daafa: 0xf2
1708
- }, _0x2bd1ac = {
1709
- _0x190acd: 0x24d,
1710
- _0x32e693: 0xf3,
1711
- _0x2b6c55: 0x19d,
1712
- _0x6ebc00: 0x184
1713
- }, _0x1901f5 = { _0x199b8f: 0xf5 }, _0x84e2b1 = {
1714
- _0x5b1d78: 0x1a0,
1715
- _0x15ac37: 0x249
1716
- }, _0x5d2c3f = {
1717
- _0x32faf0: 0x1c0,
1718
- _0x11cd24: 0x222
1719
- }, _0x5d2e22 = {
1720
- _0x522d62: 0x1a0,
1721
- _0x4c8eac: 0x175,
1722
- _0xdf640b: 0x156,
1723
- _0x23a315: 0x225,
1724
- _0x53400c: 0x10e
1725
- }, _0x1921d4 = {
1726
- _0x1813d6: 0xf9,
1727
- _0x5d5714: 0x1a0,
1728
- _0x34ca26: 0x23a
1729
- }, _0x274f28 = {
1730
- _0x2492fb: 0x249,
1731
- _0xce5252: 0x10d,
1732
- _0x5909ef: 0x163,
1733
- _0x597900: 0x244,
1734
- _0x40d17f: 0x163,
1735
- _0x80ab38: 0x218,
1736
- _0x1bb77d: 0x242,
1737
- _0x559e0d: 0x203,
1738
- _0x36d420: 0x22b,
1739
- _0x10456f: 0x225,
1740
- _0x5e4db5: 0x23a,
1741
- _0x2687a9: 0x251,
1742
- _0x41bdf4: 0x1cf,
1743
- _0x49c094: 0x23a,
1744
- _0x2f433b: 0x265,
1745
- _0x3229a5: 0x1cf,
1746
- _0x2d3cdf: 0x23a
1747
- }, _0xd20c98 = { _0x2b6a32: 0x235 }, _0x84bac8 = {
1748
- _0x2f100d: 0x249,
1749
- _0x583c9b: 0x127
1750
- }, _0x21f724 = {
1751
- _0x17156f: 0x244,
1752
- _0x239a35: 0x249,
1753
- _0x48f1b1: 0x113,
1754
- _0x14b3a3: 0x102,
1755
- _0x142f71: 0x254,
1756
- _0x34505e: 0x257,
1757
- _0x24ba44: 0x257,
1758
- _0x20f2f6: 0x1a6,
1759
- _0x5c7dd9: 0x165,
1760
- _0x39ed89: 0x1cf,
1761
- _0x1eb1bf: 0x1a3,
1762
- _0x2771a5: 0x111,
1763
- _0x471426: 0x111,
1764
- _0x5c431f: 0x257,
1765
- _0x455d6c: 0x13f,
1766
- _0x521148: 0x1db,
1767
- _0x4a3cc4: 0x12e,
1768
- _0x6d79fa: 0x110,
1769
- _0x2e1a34: 0x197,
1770
- _0x3f3eee: 0x128,
1771
- _0x505119: 0x181,
1772
- _0x5e5b5d: 0x1a3,
1773
- _0x49153a: 0x207,
1774
- _0xe25544: 0x13c,
1775
- _0x2f5202: 0x137,
1776
- _0x22d23e: 0x167,
1777
- _0x46d0d9: 0x244,
1778
- _0x4576ef: 0xf0,
1779
- _0x16b9a7: 0x14e,
1780
- _0x34178b: 0x25f,
1781
- _0x24f84c: 0x1cc,
1782
- _0x39ad21: 0x262,
1783
- _0x455844: 0x1c9,
1784
- _0x212ad3: 0x249,
1785
- _0x5b239c: 0x1b6
1786
- }, _0x1bb1b7 = {
1787
- _0x4667e2: 0x163,
1788
- _0x584a8e: 0x14e,
1789
- _0x341caa: 0x242,
1790
- _0x103d4c: 0x265
1791
- }, _0x1f0353 = {
1792
- _0x103adb: 0x163,
1793
- _0x56a2fa: 0x244,
1794
- _0x3c8ee5: 0x265
1795
- }, _0x3944ee = {
1796
- _0x3dfa47: 0x163,
1797
- _0x43c36b: 0x17b,
1798
- _0x1a91b4: 0x1a0,
1799
- _0x31f50d: 0x102,
1800
- _0xcb90ec: 0x149,
1801
- _0x352cc6: 0x111,
1802
- _0x1411db: 0x185,
1803
- _0x2d7279: 0x165,
1804
- _0x1e9f15: 0x221,
1805
- _0x40c743: 0x251,
1806
- _0x3d892d: 0x171,
1807
- _0x13964f: 0x26e,
1808
- _0xa42dc8: 0x117,
1809
- _0x1a34a7: 0x188,
1810
- _0x38d07d: 0x163,
1811
- _0x11da94: 0x23f,
1812
- _0x19463f: 0x25c,
1813
- _0x22e9d9: 0x244,
1814
- _0xc37a61: 0x207,
1815
- _0x4136a8: 0x1cf,
1816
- _0x41e685: 0x1da,
1817
- _0x2fc19d: 0x1c4,
1818
- _0x33eed6: 0x196
1819
- }, _0x30589b = {
1820
- _0x3677ad: 0x23b,
1821
- _0xc1d499: 0x263
1822
- }, _0x31765a = _0x51636d;
1823
- function _0x23f8b9(_0x17b8f3, _0x2328b0) {
1824
- const _0x113bdb = _0x3278;
1825
- if (!_0x17d0f2[_0x113bdb(_0x30589b._0x3677ad)])
1650
+ function createChatBridgeHandlers(_0x2aabed) {
1651
+ const _0x1418c4 = { _0x431a90: 0x1d7 }, _0x494eff = {
1652
+ _0x4163d8: 0x2a5,
1653
+ _0x52bee1: 0x213,
1654
+ _0x427a84: 0x1a9,
1655
+ _0x16a874: 0x1ae,
1656
+ _0xd7ca6b: 0x1c0,
1657
+ _0x41842d: 0x1d0,
1658
+ _0x571605: 0x195
1659
+ }, _0x1844b4 = {
1660
+ _0x25991e: 0x22b,
1661
+ _0x3e9e39: 0x1b6,
1662
+ _0x335eb1: 0x2ef,
1663
+ _0x5f2a3b: 0x22b,
1664
+ _0x12a1c4: 0x190,
1665
+ _0x1ae9ef: 0x175,
1666
+ _0x100d39: 0x220,
1667
+ _0x59f81d: 0x1b6,
1668
+ _0x1e2a10: 0x1c0,
1669
+ _0x4742aa: 0x218,
1670
+ _0x407425: 0x2b8
1671
+ }, _0x31e6d5 = {
1672
+ _0x3f01d9: 0x22b,
1673
+ _0x3c45d1: 0x2f0,
1674
+ _0x2da937: 0x220
1675
+ }, _0x59729b = {
1676
+ _0x52927c: 0x22b,
1677
+ _0x2eae2e: 0x1ae,
1678
+ _0x27440c: 0x218,
1679
+ _0x315703: 0x2df,
1680
+ _0x3b5b5e: 0x220,
1681
+ _0x3ee3ed: 0x250
1682
+ }, _0x1507b9 = {
1683
+ _0x563e47: 0x234,
1684
+ _0xf184ef: 0x2c8,
1685
+ _0x73e49: 0x2c4,
1686
+ _0x443222: 0x232
1687
+ }, _0x38ba99 = {
1688
+ _0x8e720a: 0x20f,
1689
+ _0x123372: 0x253,
1690
+ _0x57a2ed: 0x18b,
1691
+ _0x31e6af: 0x298
1692
+ }, _0xe06bff = { _0x30f911: 0x203 }, _0x432d4c = {
1693
+ _0x2ee253: 0x24e,
1694
+ _0x5675a9: 0x270,
1695
+ _0x319cb5: 0x1a0
1696
+ }, _0xe20664 = {
1697
+ _0x129955: 0x298,
1698
+ _0x4dcbf2: 0x1af,
1699
+ _0x8bcf65: 0x1da,
1700
+ _0x4b69db: 0x16b,
1701
+ _0x51826b: 0x276,
1702
+ _0x1aa11f: 0x278,
1703
+ _0x1af9b0: 0x209
1704
+ }, _0x510d2c = {
1705
+ _0xa94307: 0x210,
1706
+ _0x1daeeb: 0x298,
1707
+ _0xabf647: 0x25c,
1708
+ _0x45182c: 0x283
1709
+ }, _0xd6b609 = { _0xe9c2aa: 0x173 }, _0x585fc2 = {
1710
+ _0x769e49: 0x215,
1711
+ _0xbffd0b: 0x22b,
1712
+ _0x286b97: 0x1b6,
1713
+ _0x3ca304: 0x2e3,
1714
+ _0x3d8585: 0x1ae,
1715
+ _0xd9cc16: 0x2ab,
1716
+ _0x56c181: 0x282,
1717
+ _0x52807d: 0x17e,
1718
+ _0x139f73: 0x25c
1719
+ }, _0xf27901 = { _0x2a1b15: 0x26f }, _0x3f471b = {
1720
+ _0xfeb205: 0x267,
1721
+ _0x16fbf7: 0x264
1722
+ }, _0x380663 = {
1723
+ _0x4dad4f: 0x267,
1724
+ _0x16b7be: 0x227,
1725
+ _0x51fbc8: 0x1b6,
1726
+ _0x996a83: 0x16b,
1727
+ _0x5bef8b: 0x2ba,
1728
+ _0x17d8fd: 0x286,
1729
+ _0x482ecb: 0x1a2,
1730
+ _0x307b17: 0x286,
1731
+ _0x4581f1: 0x248,
1732
+ _0xbf45c3: 0x2cb,
1733
+ _0x4aefb4: 0x291,
1734
+ _0x13b586: 0x291,
1735
+ _0x96cbd: 0x25c,
1736
+ _0xbd8b9e: 0x283,
1737
+ _0x5d5f06: 0x1e5,
1738
+ _0x89f065: 0x2c3,
1739
+ _0x1f02a6: 0x2dc,
1740
+ _0x122e01: 0x1b2,
1741
+ _0xb774b8: 0x28a,
1742
+ _0x5a4144: 0x263,
1743
+ _0xaa22fd: 0x22b,
1744
+ _0x34a580: 0x211,
1745
+ _0x5d0e9b: 0x1ed,
1746
+ _0x5e1c35: 0x2d3,
1747
+ _0x208909: 0x2db,
1748
+ _0x5b8f8b: 0x2cb,
1749
+ _0x8695fa: 0x1b9
1750
+ }, _0x579520 = {
1751
+ _0x5dfc29: 0x1b6,
1752
+ _0x1c5b24: 0x22b,
1753
+ _0x23e3fe: 0x2e3,
1754
+ _0x4382c6: 0x201,
1755
+ _0x1cdbd3: 0x2d8,
1756
+ _0xb8ad29: 0x17e,
1757
+ _0x2ff2e3: 0x2be,
1758
+ _0x45c9ed: 0x2e5
1759
+ }, _0x2993f9 = {
1760
+ _0x440a9e: 0x1b6,
1761
+ _0x10a421: 0x2e3,
1762
+ _0x14c950: 0x2be,
1763
+ _0x1e901b: 0x2be
1764
+ }, _0x4a21fb = {
1765
+ _0x30b739: 0x227,
1766
+ _0x5c684b: 0x298,
1767
+ _0x294ce9: 0x189,
1768
+ _0x346b8c: 0x25c,
1769
+ _0x944015: 0x198,
1770
+ _0x1f2a76: 0x283,
1771
+ _0x1a32ba: 0x28e,
1772
+ _0x55115a: 0x210,
1773
+ _0x1cd676: 0x26f,
1774
+ _0x4f9ec5: 0x210,
1775
+ _0x33f41e: 0x22b,
1776
+ _0x337b8e: 0x213,
1777
+ _0xea8554: 0x230,
1778
+ _0x16902f: 0x1c0,
1779
+ _0x2441ca: 0x21a
1780
+ }, _0x393a47 = {
1781
+ _0x7711a1: 0x26a,
1782
+ _0xb32849: 0x1c5
1783
+ }, _0x28f47a = _0x5e54a5;
1784
+ function _0x5d7ba3(_0x2892c1, _0x4fe838) {
1785
+ const _0x423fbd = _0x3280;
1786
+ if (!_0x2aabed[_0x423fbd(0x267)])
1826
1787
  return;
1827
- if (!_0x17d0f2[_0x113bdb(_0x30589b._0xc1d499)])
1828
- throw new Error(_0x17b8f3 + _0x113bdb(0xee));
1829
- if (_0x2328b0 !== _0x17d0f2[_0x113bdb(0x263)])
1830
- throw new Error(_0x17b8f3 + ':\x20worker\x20can\x20only\x20operate\x20inside\x20its\x20own\x20task\x20thread\x20(' + _0x17d0f2['workerThreadTarget'] + ');\x20got\x20channel=' + _0x2328b0);
1788
+ if (!_0x2aabed['workerThreadTarget'])
1789
+ throw new Error(_0x2892c1 + _0x423fbd(_0x393a47._0x7711a1));
1790
+ if (_0x4fe838 !== _0x2aabed[_0x423fbd(0x1c5)])
1791
+ throw new Error(_0x2892c1 + _0x423fbd(0x207) + _0x2aabed[_0x423fbd(_0x393a47._0xb32849)] + ');\x20got\x20channel=' + _0x4fe838);
1831
1792
  }
1832
- async function _0xc4faea(_0x22f63f) {
1833
- const _0x27d483 = _0x3278;
1834
- if (!_0x17d0f2[_0x27d483(_0x3944ee._0x3dfa47)] || !_0x17d0f2['agentId'] || _0x17d0f2[_0x27d483(0x23b)] || _0x17d0f2[_0x27d483(_0x3944ee._0x43c36b)] !== !![])
1793
+ async function _0x595752(_0x1333e6) {
1794
+ const _0x589cc9 = _0x3280;
1795
+ if (!_0x2aabed['daemonLocalUrl'] || !_0x2aabed['agentId'] || _0x2aabed[_0x589cc9(0x267)] || _0x2aabed[_0x589cc9(_0x4a21fb._0x30b739)] !== !![])
1835
1796
  return null;
1836
- const _0xb47447 = parseTarget(_0x22f63f[_0x27d483(0x1a0)]);
1837
- if (_0xb47447['kind'] !== _0x27d483(_0x3944ee._0x1a91b4))
1797
+ const _0x3b2d37 = parseTarget(_0x1333e6[_0x589cc9(_0x4a21fb._0x5c684b)]);
1798
+ if (_0x3b2d37[_0x589cc9(_0x4a21fb._0x294ce9)] !== _0x589cc9(0x298))
1838
1799
  return null;
1839
- if (_0x22f63f[_0x27d483(0x1fb)] === _0x27d483(0x102)) {
1840
- const _0x301f17 = _0x22f63f[_0x27d483(0x1cf)] == null ? '(legacy)' : '#' + _0x22f63f[_0x27d483(0x1cf)];
1800
+ if (_0x1333e6['executionMode'] === _0x589cc9(0x248)) {
1801
+ const _0xfc0b60 = _0x1333e6[_0x589cc9(_0x4a21fb._0x346b8c)] == null ? _0x589cc9(0x237) : '#' + _0x1333e6[_0x589cc9(_0x4a21fb._0x346b8c)];
1841
1802
  return {
1842
- 'executionMode': _0x27d483(_0x3944ee._0x31f50d),
1803
+ 'executionMode': _0x589cc9(0x248),
1843
1804
  'stopMain': ![],
1844
1805
  'workerHandoff': ![],
1845
- 'workerHandoffError': 'task\x20' + _0x301f17 + _0x27d483(_0x3944ee._0xcb90ec)
1806
+ 'workerHandoffError': _0x589cc9(_0x4a21fb._0x944015) + _0xfc0b60 + _0x589cc9(0x22d)
1846
1807
  };
1847
1808
  }
1848
- const _0x186cba = _0x22f63f[_0x27d483(_0x3944ee._0x352cc6)] != null ? _0xb47447['channelTarget'] + ':t' + _0x22f63f[_0x27d483(0x111)] : _0xb47447[_0x27d483(_0x3944ee._0x1411db)] + ':' + _0x22f63f[_0x27d483(_0x3944ee._0x2d7279)];
1849
- let _0x5bc2e2;
1809
+ const _0xa3597c = _0x1333e6[_0x589cc9(_0x4a21fb._0x1f2a76)] != null ? _0x3b2d37[_0x589cc9(_0x4a21fb._0x1a32ba)] + ':t' + _0x1333e6[_0x589cc9(_0x4a21fb._0x1f2a76)] : _0x3b2d37[_0x589cc9(0x28e)] + ':' + _0x1333e6[_0x589cc9(_0x4a21fb._0x55115a)];
1810
+ let _0x12c519;
1850
1811
  try {
1851
- const _0x58c2d3 = await _0x17d0f2[_0x27d483(0x249)][_0x27d483(_0x3944ee._0x1e9f15)]({
1852
- 'channel': _0x186cba,
1812
+ const _0x15d786 = await _0x2aabed[_0x589cc9(0x16b)][_0x589cc9(_0x4a21fb._0x1cd676)]({
1813
+ 'channel': _0xa3597c,
1853
1814
  'limit': 0x14
1854
1815
  });
1855
- _0x5bc2e2 = _0x58c2d3[_0x27d483(0x127)][_0x27d483(_0x3944ee._0x40c743)](_0x41bdb5 => _0x41bdb5[_0x27d483(0x165)] === _0x22f63f[_0x27d483(0x165)]);
1816
+ _0x12c519 = _0x15d786[_0x589cc9(0x264)][_0x589cc9(0x282)](_0x400482 => _0x400482[_0x589cc9(0x210)] === _0x1333e6[_0x589cc9(0x210)]);
1856
1817
  } catch {
1857
- _0x5bc2e2 = void 0x0;
1818
+ _0x12c519 = void 0x0;
1858
1819
  }
1859
- const _0x2ef4ef = _0x22f63f[_0x27d483(0x1cf)] == null ? _0x27d483(0x142) : '#' + _0x22f63f['taskNumber'], _0xc35d3 = [
1860
- _0x27d483(_0x3944ee._0x3d892d) + _0x186cba + _0x27d483(0x14a) + _0x22f63f[_0x27d483(0x165)][_0x27d483(0x13f)](0x0, 0x8) + _0x27d483(_0x3944ee._0x13964f) + new Date()[_0x27d483(0x128)]() + _0x27d483(0x18a) + _0x2ef4ef + _0x27d483(_0x3944ee._0xa42dc8),
1820
+ const _0xf33c91 = _0x1333e6['taskNumber'] == null ? _0x589cc9(0x237) : '#' + _0x1333e6[_0x589cc9(0x25c)], _0x5507f9 = [
1821
+ '[target=' + _0xa3597c + _0x589cc9(0x24f) + _0x1333e6[_0x589cc9(_0x4a21fb._0x4f9ec5)][_0x589cc9(0x2ab)](0x0, 0x8) + '\x20time=' + new Date()['toISOString']() + _0x589cc9(0x2c1) + _0xf33c91 + _0x589cc9(0x1fb),
1861
1822
  '',
1862
- _0x5bc2e2 ? _0x27d483(0x1cb) + _0x5bc2e2[_0x27d483(0x164)] : 'Root\x20task\x20message\x20id:\x20' + _0x22f63f[_0x27d483(0x165)],
1823
+ _0x12c519 ? _0x589cc9(0x196) + _0x12c519['content'] : _0x589cc9(0x1a8) + _0x1333e6['messageId'],
1863
1824
  '',
1864
- _0x27d483(0x13c) + _0x186cba,
1865
- _0x27d483(_0x3944ee._0x1a34a7)
1866
- ][_0x27d483(0x110)]('\x0a'), _0xe593c5 = await fetch(_0x17d0f2[_0x27d483(_0x3944ee._0x38d07d)] + '/workers/deliver', {
1867
- 'method': _0x27d483(0x167),
1868
- 'headers': { 'Content-Type': _0x27d483(_0x3944ee._0x11da94) },
1869
- 'body': JSON[_0x27d483(_0x3944ee._0x19463f)]({
1870
- 'agent_id': _0x17d0f2[_0x27d483(_0x3944ee._0x22e9d9)],
1871
- 'thread_target': _0x186cba,
1825
+ _0x589cc9(0x263) + _0xa3597c,
1826
+ 'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
1827
+ ]['join']('\x0a'), _0x246017 = await fetch(_0x2aabed[_0x589cc9(_0x4a21fb._0x33f41e)] + '/workers/deliver', {
1828
+ 'method': _0x589cc9(0x175),
1829
+ 'headers': { 'Content-Type': _0x589cc9(_0x4a21fb._0x337b8e) },
1830
+ 'body': JSON[_0x589cc9(0x1a9)]({
1831
+ 'agent_id': _0x2aabed['agentId'],
1832
+ 'thread_target': _0xa3597c,
1872
1833
  'spawn_packet': {
1873
- 'replyTarget': _0x186cba,
1874
- ..._0x22f63f['taskId'] ? { 'taskId': _0x22f63f[_0x27d483(_0x3944ee._0xc37a61)] } : _0x22f63f[_0x27d483(_0x3944ee._0x4136a8)] != null ? { 'taskId': 'task-' + _0x22f63f[_0x27d483(0x1cf)] } : {}
1834
+ 'replyTarget': _0xa3597c,
1835
+ ..._0x1333e6[_0x589cc9(_0x4a21fb._0xea8554)] ? { 'taskId': _0x1333e6[_0x589cc9(0x230)] } : _0x1333e6['taskNumber'] != null ? { 'taskId': _0x589cc9(0x265) + _0x1333e6[_0x589cc9(0x25c)] } : {}
1875
1836
  },
1876
1837
  'payload': {
1877
- 'mode': _0x27d483(0xf0),
1878
- 'text': _0xc35d3
1838
+ 'mode': 'user',
1839
+ 'text': _0x5507f9
1879
1840
  }
1880
1841
  })
1881
- }), _0x4d1d5c = await _0xe593c5['json']();
1882
- if (!_0x4d1d5c['ok'])
1883
- throw new Error(_0x4d1d5c[_0x27d483(0xed)] ?? _0x27d483(_0x3944ee._0x41e685));
1842
+ }), _0x319823 = await _0x246017[_0x589cc9(0x1ae)]();
1843
+ if (!_0x319823['ok'])
1844
+ throw new Error(_0x319823[_0x589cc9(_0x4a21fb._0x16902f)] ?? _0x589cc9(0x2da));
1884
1845
  return {
1885
1846
  'stopMain': !![],
1886
- 'threadTarget': _0x186cba,
1887
- 'workerDisposition': _0x4d1d5c[_0x27d483(0x262)] === _0x27d483(0x1c9) ? 'queued' : 'started',
1847
+ 'threadTarget': _0xa3597c,
1848
+ 'workerDisposition': _0x319823['disposition'] === _0x589cc9(0x2d3) ? _0x589cc9(0x2d3) : 'started',
1888
1849
  'workerHandoff': !![],
1889
- 'workerSessionId': _0x4d1d5c[_0x27d483(_0x3944ee._0x2fc19d)] ?? '',
1890
- 'executionMode': _0x27d483(_0x3944ee._0x33eed6)
1850
+ 'workerSessionId': _0x319823['worker_session_id'] ?? '',
1851
+ 'executionMode': _0x589cc9(_0x4a21fb._0x2441ca)
1891
1852
  };
1892
1853
  }
1893
- async function _0x68c17a() {
1894
- const _0x438e6c = _0x3278;
1895
- if (!_0x17d0f2[_0x438e6c(_0x1f0353._0x103adb)] || !_0x17d0f2['agentId'] || _0x17d0f2['workerMode'])
1854
+ async function _0x190b2c() {
1855
+ const _0x2dd189 = _0x3280;
1856
+ if (!_0x2aabed[_0x2dd189(0x22b)] || !_0x2aabed[_0x2dd189(_0x2993f9._0x440a9e)] || _0x2aabed[_0x2dd189(0x267)])
1896
1857
  return null;
1897
1858
  try {
1898
- const _0x562661 = await fetch(_0x17d0f2['daemonLocalUrl'] + _0x438e6c(0xe4) + encodeURIComponent(_0x17d0f2[_0x438e6c(_0x1f0353._0x56a2fa)])), _0x3e745e = await _0x562661[_0x438e6c(0x14e)]();
1899
- if (!_0x3e745e['ok'])
1859
+ const _0x53b998 = await fetch(_0x2aabed[_0x2dd189(0x22b)] + _0x2dd189(_0x2993f9._0x10a421) + encodeURIComponent(_0x2aabed['agentId'])), _0x3c750b = await _0x53b998['json']();
1860
+ if (!_0x3c750b['ok'])
1900
1861
  return null;
1901
- const _0x483583 = new Set();
1902
- for (const _0x3ede5 of _0x3e745e[_0x438e6c(0x218)]) {
1903
- _0x3ede5[_0x438e6c(0x242)] !== _0x438e6c(0x203) && _0x3ede5[_0x438e6c(0x22b)] && _0x483583[_0x438e6c(_0x1f0353._0x3c8ee5)](_0x3ede5[_0x438e6c(0x22b)]);
1862
+ const _0xf9dfe9 = new Set();
1863
+ for (const _0xd60147 of _0x3c750b[_0x2dd189(0x201)]) {
1864
+ _0xd60147[_0x2dd189(0x1f3)] !== _0x2dd189(0x164) && _0xd60147[_0x2dd189(_0x2993f9._0x14c950)] && _0xf9dfe9['add'](_0xd60147[_0x2dd189(_0x2993f9._0x1e901b)]);
1904
1865
  }
1905
- return _0x483583[_0x438e6c(0x138)] > 0x0 ? _0x483583 : null;
1866
+ return _0xf9dfe9[_0x2dd189(0x2e5)] > 0x0 ? _0xf9dfe9 : null;
1906
1867
  } catch {
1907
1868
  return null;
1908
1869
  }
1909
1870
  }
1910
- const _0x395e02 = new Set([
1911
- _0x31765a(0x103),
1912
- _0x31765a(0x129),
1913
- _0x31765a(_0x44ef97._0x36191c)
1871
+ const _0x5ae73e = new Set([
1872
+ _0x28f47a(0x18e),
1873
+ _0x28f47a(0x187),
1874
+ _0x28f47a(_0x1418c4._0x431a90)
1914
1875
  ]);
1915
- async function _0x31e1a3() {
1916
- const _0x489617 = _0x31765a;
1917
- if (!_0x17d0f2[_0x489617(0x163)] || !_0x17d0f2['agentId'] || _0x17d0f2['workerMode'])
1876
+ async function _0x47234c() {
1877
+ const _0xfbe112 = _0x28f47a;
1878
+ if (!_0x2aabed['daemonLocalUrl'] || !_0x2aabed[_0xfbe112(_0x579520._0x5dfc29)] || _0x2aabed['workerMode'])
1918
1879
  return null;
1919
1880
  try {
1920
- const _0x2d727d = await fetch(_0x17d0f2[_0x489617(_0x1bb1b7._0x4667e2)] + _0x489617(0xe4) + encodeURIComponent(_0x17d0f2[_0x489617(0x244)])), _0x103e08 = await _0x2d727d[_0x489617(_0x1bb1b7._0x584a8e)]();
1921
- if (!_0x103e08['ok'])
1881
+ const _0x291403 = await fetch(_0x2aabed[_0xfbe112(_0x579520._0x1c5b24)] + _0xfbe112(_0x579520._0x23e3fe) + encodeURIComponent(_0x2aabed['agentId'])), _0xcbb13e = await _0x291403['json']();
1882
+ if (!_0xcbb13e['ok'])
1922
1883
  return null;
1923
- const _0x4ec4b4 = new Set();
1924
- for (const _0x34e89d of _0x103e08['workers']) {
1925
- _0x395e02[_0x489617(0x1db)](_0x34e89d[_0x489617(_0x1bb1b7._0x341caa)]) && _0x34e89d['thread_target'] && _0x4ec4b4[_0x489617(_0x1bb1b7._0x103d4c)](_0x34e89d[_0x489617(0x22b)]);
1884
+ const _0x43ce68 = new Set();
1885
+ for (const _0x437f45 of _0xcbb13e[_0xfbe112(_0x579520._0x4382c6)]) {
1886
+ _0x5ae73e[_0xfbe112(_0x579520._0x1cdbd3)](_0x437f45[_0xfbe112(0x1f3)]) && _0x437f45[_0xfbe112(0x2be)] && _0x43ce68[_0xfbe112(_0x579520._0xb8ad29)](_0x437f45[_0xfbe112(_0x579520._0x2ff2e3)]);
1926
1887
  }
1927
- return _0x4ec4b4[_0x489617(0x138)] > 0x0 ? _0x4ec4b4 : null;
1888
+ return _0x43ce68[_0xfbe112(_0x579520._0x45c9ed)] > 0x0 ? _0x43ce68 : null;
1928
1889
  } catch {
1929
1890
  return null;
1930
1891
  }
1931
1892
  }
1932
1893
  return {
1933
- async 'send_message'(_0x3f387a) {
1934
- const _0x3755f2 = _0x31765a;
1935
- if (!_0x17d0f2[_0x3755f2(0x23b)] && _0x17d0f2[_0x3755f2(0x17b)] && _0x17d0f2[_0x3755f2(0x163)] && _0x17d0f2[_0x3755f2(_0x21f724._0x17156f)]) {
1936
- const _0x2ef302 = await _0x17d0f2[_0x3755f2(_0x21f724._0x239a35)][_0x3755f2(_0x21f724._0x48f1b1)](_0x3f387a[_0x3755f2(0x257)]);
1937
- if (_0x2ef302[_0x3755f2(0x1a3)] && _0x2ef302['threadId']) {
1938
- if (_0x2ef302[_0x3755f2(0x1a3)][_0x3755f2(0x1fb)] === _0x3755f2(_0x21f724._0x14b3a3)) {
1939
- const _0x131eac = await _0x17d0f2[_0x3755f2(0x249)][_0x3755f2(0x264)]({
1940
- 'attachmentIds': _0x3f387a[_0x3755f2(_0x21f724._0x142f71)],
1941
- 'content': _0x3f387a[_0x3755f2(0x164)],
1942
- 'target': _0x3f387a[_0x3755f2(_0x21f724._0x34505e)],
1943
- 'visibility': _0x3f387a[_0x3755f2(0x1b6)]
1894
+ async 'send_message'(_0x1e9bac) {
1895
+ const _0x5e485f = _0x28f47a;
1896
+ if (!_0x2aabed[_0x5e485f(_0x380663._0x4dad4f)] && _0x2aabed[_0x5e485f(_0x380663._0x16b7be)] && _0x2aabed['daemonLocalUrl'] && _0x2aabed[_0x5e485f(_0x380663._0x51fbc8)]) {
1897
+ const _0x3f7076 = await _0x2aabed[_0x5e485f(_0x380663._0x996a83)][_0x5e485f(_0x380663._0x5bef8b)](_0x1e9bac[_0x5e485f(0x291)]);
1898
+ if (_0x3f7076[_0x5e485f(_0x380663._0x17d8fd)] && _0x3f7076[_0x5e485f(_0x380663._0x482ecb)]) {
1899
+ if (_0x3f7076[_0x5e485f(_0x380663._0x307b17)]['executionMode'] === _0x5e485f(_0x380663._0x4581f1)) {
1900
+ const _0x2b0b79 = await _0x2aabed[_0x5e485f(0x16b)][_0x5e485f(_0x380663._0xbf45c3)]({
1901
+ 'attachmentIds': _0x1e9bac[_0x5e485f(0x258)],
1902
+ 'content': _0x1e9bac['content'],
1903
+ 'target': _0x1e9bac[_0x5e485f(_0x380663._0x4aefb4)],
1904
+ 'visibility': _0x1e9bac['visibility']
1944
1905
  });
1945
- return 'Message\x20sent\x20to\x20' + _0x3f387a[_0x3755f2(_0x21f724._0x24ba44)] + _0x3755f2(_0x21f724._0x20f2f6) + _0x131eac[_0x3755f2(_0x21f724._0x5c7dd9)];
1906
+ return 'Message\x20sent\x20to\x20' + _0x1e9bac[_0x5e485f(_0x380663._0x13b586)] + _0x5e485f(0x1b9) + _0x2b0b79[_0x5e485f(0x210)];
1946
1907
  }
1947
- const _0x3c8e42 = _0x2ef302[_0x3755f2(0x1a3)][_0x3755f2(_0x21f724._0x39ed89)] != null ? '#' + _0x2ef302[_0x3755f2(_0x21f724._0x1eb1bf)][_0x3755f2(_0x21f724._0x39ed89)] : '(legacy)', _0x4fd377 = _0x2ef302[_0x3755f2(_0x21f724._0x2771a5)] != null ? _0x2ef302[_0x3755f2(0x257)] + ':t' + _0x2ef302[_0x3755f2(_0x21f724._0x471426)] : _0x2ef302[_0x3755f2(_0x21f724._0x5c431f)] + ':' + _0x2ef302[_0x3755f2(0x24e)][_0x3755f2(_0x21f724._0x455d6c)](0x0, 0x8), _0x10774d = await _0x31e1a3();
1948
- if (_0x10774d?.[_0x3755f2(_0x21f724._0x521148)](_0x4fd377))
1908
+ const _0x249aed = _0x3f7076[_0x5e485f(_0x380663._0x17d8fd)]['taskNumber'] != null ? '#' + _0x3f7076[_0x5e485f(0x286)][_0x5e485f(_0x380663._0x96cbd)] : '(legacy)', _0x410191 = _0x3f7076[_0x5e485f(0x283)] != null ? _0x3f7076[_0x5e485f(0x291)] + ':t' + _0x3f7076[_0x5e485f(_0x380663._0xbd8b9e)] : _0x3f7076[_0x5e485f(_0x380663._0x4aefb4)] + ':' + _0x3f7076[_0x5e485f(0x1a2)]['slice'](0x0, 0x8), _0x2ebd1b = await _0x47234c();
1909
+ if (_0x2ebd1b?.['has'](_0x410191))
1949
1910
  return [
1950
- _0x3755f2(0x1e8) + _0x3c8e42 + '\x20in\x20' + _0x4fd377 + _0x3755f2(_0x21f724._0x4a3cc4),
1951
- _0x3755f2(0x136)
1952
- ][_0x3755f2(_0x21f724._0x6d79fa)]('\x0a');
1953
- const _0x1db8bd = [
1954
- '[target=' + _0x4fd377 + _0x3755f2(_0x21f724._0x2e1a34) + new Date()[_0x3755f2(_0x21f724._0x3f3eee)]() + ']\x20@system:\x20[enter-handoff]',
1911
+ _0x5e485f(_0x380663._0x5d5f06) + _0x249aed + _0x5e485f(_0x380663._0x89f065) + _0x410191 + _0x5e485f(_0x380663._0x1f02a6),
1912
+ _0x5e485f(0x28c)
1913
+ ][_0x5e485f(0x27f)]('\x0a');
1914
+ const _0x4f8ddb = [
1915
+ '[target=' + _0x410191 + '\x20msg=handoff\x20time=' + new Date()['toISOString']() + _0x5e485f(_0x380663._0x122e01),
1955
1916
  '',
1956
- _0x3755f2(0x224) + _0x3f387a[_0x3755f2(0x164)],
1957
- _0x3755f2(_0x21f724._0x505119) + _0x3c8e42 + '\x20(' + _0x2ef302[_0x3755f2(_0x21f724._0x5e5b5d)][_0x3755f2(_0x21f724._0x49153a)] + ')',
1958
- _0x3755f2(_0x21f724._0xe25544) + _0x4fd377,
1959
- _0x3755f2(_0x21f724._0x2f5202)
1960
- ][_0x3755f2(0x110)]('\x0a'), _0x3e30aa = await fetch(_0x17d0f2[_0x3755f2(0x163)] + _0x3755f2(0x172), {
1961
- 'method': _0x3755f2(_0x21f724._0x22d23e),
1962
- 'headers': { 'Content-Type': _0x3755f2(0x23f) },
1917
+ 'Original\x20message:\x20' + _0x1e9bac['content'],
1918
+ _0x5e485f(_0x380663._0xb774b8) + _0x249aed + '\x20(' + _0x3f7076[_0x5e485f(0x286)]['taskId'] + ')',
1919
+ _0x5e485f(_0x380663._0x5a4144) + _0x410191,
1920
+ _0x5e485f(0x2a7)
1921
+ ][_0x5e485f(0x27f)]('\x0a'), _0x276bd3 = await fetch(_0x2aabed[_0x5e485f(_0x380663._0xaa22fd)] + '/workers/deliver', {
1922
+ 'method': _0x5e485f(0x175),
1923
+ 'headers': { 'Content-Type': _0x5e485f(0x213) },
1963
1924
  'body': JSON['stringify']({
1964
- 'agent_id': _0x17d0f2[_0x3755f2(_0x21f724._0x46d0d9)],
1965
- 'thread_target': _0x4fd377,
1925
+ 'agent_id': _0x2aabed[_0x5e485f(0x1b6)],
1926
+ 'thread_target': _0x410191,
1966
1927
  'spawn_packet': {
1967
- 'replyTarget': _0x4fd377,
1968
- 'taskId': _0x2ef302[_0x3755f2(0x1a3)][_0x3755f2(0x207)]
1928
+ 'replyTarget': _0x410191,
1929
+ 'taskId': _0x3f7076[_0x5e485f(0x286)]['taskId']
1969
1930
  },
1970
1931
  'payload': {
1971
- 'mode': _0x3755f2(_0x21f724._0x4576ef),
1972
- 'text': _0x1db8bd
1932
+ 'mode': _0x5e485f(0x1ea),
1933
+ 'text': _0x4f8ddb
1973
1934
  }
1974
1935
  })
1975
- }), _0x5ad0e3 = await _0x3e30aa[_0x3755f2(_0x21f724._0x16b9a7)]();
1976
- if (!_0x5ad0e3['ok'])
1977
- throw new Error(_0x5ad0e3['error'] ?? _0x3755f2(_0x21f724._0x34178b));
1936
+ }), _0x22cabe = await _0x276bd3['json']();
1937
+ if (!_0x22cabe['ok'])
1938
+ throw new Error(_0x22cabe['error'] ?? _0x5e485f(0x2cf));
1978
1939
  return [
1979
- 'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x3c8e42 + _0x3755f2(_0x21f724._0x24f84c) + _0x4fd377 + '.\x20stopMain=true\x20executionMode=worker',
1980
- _0x3755f2(0x226) + (_0x5ad0e3[_0x3755f2(_0x21f724._0x39ad21)] === _0x3755f2(_0x21f724._0x455844) ? 'queued' : _0x3755f2(0xea)) + '.',
1940
+ _0x5e485f(_0x380663._0x34a580) + _0x249aed + '\x20in\x20' + _0x410191 + '.\x20stopMain=true\x20executionMode=worker',
1941
+ _0x5e485f(_0x380663._0x5d0e9b) + (_0x22cabe[_0x5e485f(0x16e)] === _0x5e485f(0x2d3) ? _0x5e485f(_0x380663._0x5e1c35) : _0x5e485f(_0x380663._0x208909)) + '.',
1981
1942
  '⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
1982
- ][_0x3755f2(0x110)]('\x0a');
1943
+ ][_0x5e485f(0x27f)]('\x0a');
1983
1944
  }
1984
1945
  }
1985
- const _0x1a125c = await _0x17d0f2[_0x3755f2(_0x21f724._0x212ad3)]['sendMessage']({
1986
- 'attachmentIds': _0x3f387a[_0x3755f2(0x254)],
1987
- 'content': _0x3f387a[_0x3755f2(0x164)],
1988
- 'target': _0x3f387a[_0x3755f2(_0x21f724._0x5c431f)],
1989
- 'visibility': _0x3f387a[_0x3755f2(_0x21f724._0x5b239c)]
1946
+ const _0x33da71 = await _0x2aabed[_0x5e485f(0x16b)][_0x5e485f(_0x380663._0x5b8f8b)]({
1947
+ 'attachmentIds': _0x1e9bac[_0x5e485f(0x258)],
1948
+ 'content': _0x1e9bac['content'],
1949
+ 'target': _0x1e9bac[_0x5e485f(0x291)],
1950
+ 'visibility': _0x1e9bac['visibility']
1990
1951
  });
1991
- return 'Message\x20sent\x20to\x20' + _0x3f387a[_0x3755f2(_0x21f724._0x24ba44)] + '.\x20Message\x20ID:\x20' + _0x1a125c[_0x3755f2(0x165)];
1952
+ return 'Message\x20sent\x20to\x20' + _0x1e9bac[_0x5e485f(0x291)] + _0x5e485f(_0x380663._0x8695fa) + _0x33da71[_0x5e485f(0x210)];
1992
1953
  },
1993
1954
  async 'check_messages'() {
1994
- const _0x59deeb = _0x31765a, _0x28c389 = await _0x17d0f2[_0x59deeb(_0x84bac8._0x2f100d)][_0x59deeb(0x1e1)]();
1995
- if (!_0x17d0f2[_0x59deeb(0x23b)]) {
1996
- const _0x40bd7c = await _0x68c17a();
1997
- if (_0x40bd7c)
1998
- return formatCheckMessages(_0x28c389[_0x59deeb(_0x84bac8._0x583c9b)][_0x59deeb(0x119)](_0x40fbae => !_0x40bd7c[_0x59deeb(0x1db)](_0x40fbae[_0x59deeb(0x257)])));
1955
+ const _0x277864 = _0x28f47a, _0x3804bb = await _0x2aabed[_0x277864(0x16b)]['checkMessages']();
1956
+ if (!_0x2aabed[_0x277864(_0x3f471b._0xfeb205)]) {
1957
+ const _0x52fbee = await _0x190b2c();
1958
+ if (_0x52fbee)
1959
+ return formatCheckMessages(_0x3804bb[_0x277864(0x264)][_0x277864(0x2de)](_0x30cd23 => !_0x52fbee[_0x277864(0x2d8)](_0x30cd23[_0x277864(0x291)])));
1999
1960
  }
2000
- return formatCheckMessages(_0x28c389[_0x59deeb(_0x84bac8._0x583c9b)]);
1961
+ return formatCheckMessages(_0x3804bb[_0x277864(_0x3f471b._0x16fbf7)]);
2001
1962
  },
2002
- async 'read_history'(_0x4b467e) {
2003
- const _0x285424 = _0x31765a, _0x2354ee = await _0x17d0f2[_0x285424(0x249)]['readHistory'](_0x4b467e);
2004
- return formatHistory(_0x2354ee);
1963
+ async 'read_history'(_0x2bb90c) {
1964
+ const _0x43a241 = _0x28f47a, _0x520c23 = await _0x2aabed[_0x43a241(0x16b)][_0x43a241(_0xf27901._0x2a1b15)](_0x2bb90c);
1965
+ return formatHistory(_0x520c23);
2005
1966
  },
2006
1967
  async 'list_server'() {
2007
- const _0x2841bb = _0x31765a, _0x4a4162 = await _0x17d0f2[_0x2841bb(0x249)][_0x2841bb(_0xd20c98._0x2b6a32)]();
2008
- return formatServerDirectory(_0x4a4162);
1968
+ const _0x50dc2e = _0x28f47a, _0x3309d3 = await _0x2aabed[_0x50dc2e(0x16b)][_0x50dc2e(0x29b)]();
1969
+ return formatServerDirectory(_0x3309d3);
2009
1970
  },
2010
- async 'list_tasks'(_0x3262d2) {
2011
- const _0x1e95db = _0x31765a, _0xbeec26 = await _0x17d0f2[_0x1e95db(_0x274f28._0x2492fb)][_0x1e95db(_0x274f28._0xce5252)](_0x3262d2);
2012
- let _0x477ac4;
2013
- if (_0x17d0f2[_0x1e95db(_0x274f28._0x5909ef)] && _0x17d0f2[_0x1e95db(_0x274f28._0x597900)])
1971
+ async 'list_tasks'(_0x19307a) {
1972
+ const _0x4bec9f = _0x28f47a, _0x338794 = await _0x2aabed[_0x4bec9f(0x16b)][_0x4bec9f(_0x585fc2._0x769e49)](_0x19307a);
1973
+ let _0xf10bcb;
1974
+ if (_0x2aabed[_0x4bec9f(_0x585fc2._0xbffd0b)] && _0x2aabed[_0x4bec9f(_0x585fc2._0x286b97)])
2014
1975
  try {
2015
- const _0x583913 = await fetch(_0x17d0f2[_0x1e95db(_0x274f28._0x40d17f)] + _0x1e95db(0xe4) + encodeURIComponent(_0x17d0f2[_0x1e95db(0x244)])), _0x25cb19 = await _0x583913['json']();
2016
- if (_0x25cb19['ok']) {
2017
- const _0x28d7bc = _0x3262d2[_0x1e95db(0x1a0)] + ':';
2018
- _0x477ac4 = new Set();
2019
- for (const _0x5565e4 of _0x25cb19[_0x1e95db(_0x274f28._0x80ab38)]) {
2020
- if (_0x5565e4[_0x1e95db(_0x274f28._0x1bb77d)] === _0x1e95db(_0x274f28._0x559e0d))
1976
+ const _0x583621 = await fetch(_0x2aabed[_0x4bec9f(_0x585fc2._0xbffd0b)] + _0x4bec9f(_0x585fc2._0x3ca304) + encodeURIComponent(_0x2aabed[_0x4bec9f(0x1b6)])), _0x5b8dab = await _0x583621[_0x4bec9f(_0x585fc2._0x3d8585)]();
1977
+ if (_0x5b8dab['ok']) {
1978
+ const _0x3bfc80 = _0x19307a['channel'] + ':';
1979
+ _0xf10bcb = new Set();
1980
+ for (const _0x50cf4f of _0x5b8dab[_0x4bec9f(0x201)]) {
1981
+ if (_0x50cf4f[_0x4bec9f(0x1f3)] === _0x4bec9f(0x164))
2021
1982
  continue;
2022
- if (_0x5565e4[_0x1e95db(_0x274f28._0x36d420)]?.[_0x1e95db(0x161)](_0x28d7bc)) {
2023
- const _0x39e279 = _0x5565e4[_0x1e95db(0x22b)]['slice'](_0x28d7bc[_0x1e95db(_0x274f28._0x10456f)]), _0x363500 = _0xbeec26[_0x1e95db(_0x274f28._0x5e4db5)][_0x1e95db(_0x274f28._0x2687a9)](_0x378cde => _0x378cde[_0x1e95db(0x165)]?.[_0x1e95db(0x161)](_0x39e279) === !![]);
2024
- if (_0x363500?.[_0x1e95db(_0x274f28._0x41bdf4)] != null) {
2025
- _0x477ac4[_0x1e95db(0x265)](_0x363500[_0x1e95db(0x1cf)]);
1983
+ if (_0x50cf4f['thread_target']?.[_0x4bec9f(0x285)](_0x3bfc80)) {
1984
+ const _0x3169b6 = _0x50cf4f[_0x4bec9f(0x2be)][_0x4bec9f(_0x585fc2._0xd9cc16)](_0x3bfc80[_0x4bec9f(0x1a1)]), _0x3921ec = _0x338794[_0x4bec9f(0x231)][_0x4bec9f(_0x585fc2._0x56c181)](_0x4301a6 => _0x4301a6[_0x4bec9f(0x210)]?.[_0x4bec9f(0x285)](_0x3169b6) === !![]);
1985
+ if (_0x3921ec?.['taskNumber'] != null) {
1986
+ _0xf10bcb[_0x4bec9f(_0x585fc2._0x52807d)](_0x3921ec['taskNumber']);
2026
1987
  continue;
2027
1988
  }
2028
1989
  }
2029
- if (_0x5565e4[_0x1e95db(0x100)]) {
2030
- const _0x58d39a = _0xbeec26[_0x1e95db(_0x274f28._0x49c094)][_0x1e95db(0x251)](_0x2e9b86 => _0x2e9b86[_0x1e95db(0x207)] === _0x5565e4[_0x1e95db(0x100)]);
2031
- _0x58d39a?.[_0x1e95db(_0x274f28._0x41bdf4)] != null && _0x477ac4[_0x1e95db(_0x274f28._0x2f433b)](_0x58d39a[_0x1e95db(_0x274f28._0x3229a5)]);
1990
+ if (_0x50cf4f[_0x4bec9f(0x202)]) {
1991
+ const _0x3f2182 = _0x338794[_0x4bec9f(0x231)][_0x4bec9f(0x282)](_0x564fea => _0x564fea['taskId'] === _0x50cf4f[_0x4bec9f(0x202)]);
1992
+ _0x3f2182?.[_0x4bec9f(0x25c)] != null && _0xf10bcb[_0x4bec9f(_0x585fc2._0x52807d)](_0x3f2182[_0x4bec9f(_0x585fc2._0x139f73)]);
2032
1993
  }
2033
1994
  }
2034
1995
  }
2035
1996
  } catch {
2036
1997
  }
2037
- return formatTaskList(_0xbeec26[_0x1e95db(_0x274f28._0x2d3cdf)], _0x477ac4);
1998
+ return formatTaskList(_0x338794[_0x4bec9f(0x231)], _0xf10bcb);
2038
1999
  },
2039
- async 'create_tasks'(_0x398023) {
2040
- const _0x315307 = _0x31765a;
2041
- _0x23f8b9(_0x315307(_0x1921d4._0x1813d6), _0x398023[_0x315307(_0x1921d4._0x5d5714)]);
2042
- const _0x38420c = await _0x17d0f2[_0x315307(0x249)]['createTasks'](_0x398023);
2043
- return formatCreatedTasks(_0x38420c[_0x315307(_0x1921d4._0x34ca26)]);
2000
+ async 'create_tasks'(_0x3b0632) {
2001
+ const _0x1b43f9 = _0x28f47a;
2002
+ _0x5d7ba3(_0x1b43f9(_0xd6b609._0xe9c2aa), _0x3b0632['channel']);
2003
+ const _0x6a7c8 = await _0x2aabed['client'][_0x1b43f9(0x299)](_0x3b0632);
2004
+ return formatCreatedTasks(_0x6a7c8[_0x1b43f9(0x231)]);
2044
2005
  },
2045
- async 'claim_tasks'(_0x3695fe) {
2046
- const _0x440850 = {
2047
- _0x2798d5: 0x233,
2048
- _0x3db58c: 0x1fb,
2049
- _0x405ac9: 0x165,
2050
- _0x37ca79: 0x1cf,
2051
- _0x4f0470: 0x21b,
2052
- _0x1a2f0c: 0x1da
2053
- }, _0x27c5cd = _0x31765a;
2054
- if (_0x17d0f2[_0x27c5cd(0x23b)]) {
2055
- _0x23f8b9('claim_tasks', _0x3695fe[_0x27c5cd(_0x5d2e22._0x522d62)]);
2056
- if (_0x3695fe[_0x27c5cd(0x175)] && _0x3695fe[_0x27c5cd(_0x5d2e22._0x4c8eac)][_0x27c5cd(0x225)] > 0x0)
2057
- throw new Error(_0x27c5cd(0x1a1));
2058
- if (!_0x3695fe[_0x27c5cd(_0x5d2e22._0xdf640b)] || _0x3695fe[_0x27c5cd(_0x5d2e22._0xdf640b)][_0x27c5cd(_0x5d2e22._0x23a315)] === 0x0)
2006
+ async 'claim_tasks'(_0x3c1968) {
2007
+ const _0x3aa367 = _0x28f47a;
2008
+ if (_0x2aabed[_0x3aa367(0x267)]) {
2009
+ _0x5d7ba3(_0x3aa367(0x1eb), _0x3c1968[_0x3aa367(_0xe20664._0x129955)]);
2010
+ if (_0x3c1968['message_ids'] && _0x3c1968[_0x3aa367(_0xe20664._0x4dcbf2)][_0x3aa367(0x1a1)] > 0x0)
2011
+ throw new Error(_0x3aa367(_0xe20664._0x8bcf65));
2012
+ if (!_0x3c1968['subtask_numbers'] || _0x3c1968[_0x3aa367(0x180)][_0x3aa367(0x1a1)] === 0x0)
2059
2013
  throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
2060
2014
  }
2061
- const _0x101142 = await _0x17d0f2['client']['claimTasks'](_0x3695fe), _0x5c15d4 = await Promise[_0x27c5cd(0x1c2)](_0x101142[_0x27c5cd(_0x5d2e22._0x53400c)]['map'](async _0x377319 => {
2062
- const _0x2ac0bb = _0x27c5cd;
2063
- if (!_0x377319[_0x2ac0bb(_0x440850._0x2798d5)] || !_0x377319['messageId'])
2064
- return _0x377319;
2015
+ const _0x55498a = await _0x2aabed[_0x3aa367(_0xe20664._0x4b69db)][_0x3aa367(_0xe20664._0x51826b)](_0x3c1968), _0x56929e = await Promise[_0x3aa367(_0xe20664._0x1aa11f)](_0x55498a[_0x3aa367(0x177)][_0x3aa367(_0xe20664._0x1af9b0)](async _0x1c9154 => {
2016
+ const _0x164b70 = _0x3aa367;
2017
+ if (!_0x1c9154[_0x164b70(0x1bb)] || !_0x1c9154[_0x164b70(_0x510d2c._0xa94307)])
2018
+ return _0x1c9154;
2065
2019
  try {
2066
- const _0x116fa7 = await _0xc4faea({
2067
- 'channel': _0x3695fe['channel'],
2068
- 'executionMode': _0x377319[_0x2ac0bb(_0x440850._0x3db58c)],
2069
- 'messageId': _0x377319[_0x2ac0bb(_0x440850._0x405ac9)],
2070
- 'taskId': _0x377319[_0x2ac0bb(0x207)],
2071
- 'taskNumber': _0x377319[_0x2ac0bb(_0x440850._0x37ca79)],
2072
- 'threadNumber': _0x377319[_0x2ac0bb(0x111)]
2020
+ const _0x5c5d9e = await _0x595752({
2021
+ 'channel': _0x3c1968[_0x164b70(_0x510d2c._0x1daeeb)],
2022
+ 'executionMode': _0x1c9154[_0x164b70(0x2c2)],
2023
+ 'messageId': _0x1c9154[_0x164b70(0x210)],
2024
+ 'taskId': _0x1c9154['taskId'],
2025
+ 'taskNumber': _0x1c9154[_0x164b70(_0x510d2c._0xabf647)],
2026
+ 'threadNumber': _0x1c9154[_0x164b70(_0x510d2c._0x45182c)]
2073
2027
  });
2074
- return _0x116fa7 ? {
2075
- ..._0x377319,
2076
- ..._0x116fa7
2077
- } : _0x377319;
2078
- } catch (_0x2e0633) {
2028
+ return _0x5c5d9e ? {
2029
+ ..._0x1c9154,
2030
+ ..._0x5c5d9e
2031
+ } : _0x1c9154;
2032
+ } catch (_0x38d346) {
2079
2033
  return {
2080
- ..._0x377319,
2081
- 'workerHandoffError': _0x2e0633 instanceof Error ? _0x2e0633[_0x2ac0bb(_0x440850._0x4f0470)] : _0x2ac0bb(_0x440850._0x1a2f0c)
2034
+ ..._0x1c9154,
2035
+ 'workerHandoffError': _0x38d346 instanceof Error ? _0x38d346['message'] : _0x164b70(0x2da)
2082
2036
  };
2083
2037
  }
2084
2038
  }));
2085
- return formatClaimTaskResults(_0x5c15d4);
2039
+ return formatClaimTaskResults(_0x56929e);
2086
2040
  },
2087
- async 'unclaim_task'(_0x4674b1) {
2088
- const _0x499f05 = _0x31765a;
2089
- if (_0x17d0f2[_0x499f05(0x23b)]) {
2090
- _0x23f8b9(_0x499f05(_0x5d2c3f._0x32faf0), _0x4674b1[_0x499f05(0x1a0)]);
2091
- if (_0x4674b1[_0x499f05(0x1ff)] == null)
2092
- throw new Error(_0x499f05(_0x5d2c3f._0x11cd24));
2041
+ async 'unclaim_task'(_0x4ea8eb) {
2042
+ const _0x285bce = _0x28f47a;
2043
+ if (_0x2aabed['workerMode']) {
2044
+ _0x5d7ba3(_0x285bce(0x24a), _0x4ea8eb[_0x285bce(0x298)]);
2045
+ if (_0x4ea8eb[_0x285bce(_0x432d4c._0x2ee253)] == null)
2046
+ throw new Error(_0x285bce(_0x432d4c._0x5675a9));
2093
2047
  }
2094
- const _0x221e68 = await _0x17d0f2['client'][_0x499f05(0x139)](_0x4674b1);
2095
- return formatUnclaimTaskResult(_0x221e68);
2048
+ const _0x2837aa = await _0x2aabed[_0x285bce(0x16b)][_0x285bce(_0x432d4c._0x319cb5)](_0x4ea8eb);
2049
+ return formatUnclaimTaskResult(_0x2837aa);
2096
2050
  },
2097
- async 'update_task_status'(_0x19eefc) {
2098
- const _0x5f1c3c = _0x31765a;
2099
- _0x23f8b9(_0x5f1c3c(0x18e), _0x19eefc[_0x5f1c3c(_0x84e2b1._0x5b1d78)]);
2100
- const _0x3f61cc = await _0x17d0f2[_0x5f1c3c(_0x84e2b1._0x15ac37)]['updateTaskStatus'](_0x19eefc);
2101
- return formatUpdateTaskStatusResult(_0x3f61cc);
2051
+ async 'update_task_status'(_0x549a8a) {
2052
+ const _0xd3e475 = _0x28f47a;
2053
+ _0x5d7ba3(_0xd3e475(0x1f1), _0x549a8a['channel']);
2054
+ const _0x55a534 = await _0x2aabed['client'][_0xd3e475(_0xe06bff._0x30f911)](_0x549a8a);
2055
+ return formatUpdateTaskStatusResult(_0x55a534);
2102
2056
  },
2103
- async 'upload_file'(_0x51b8da) {
2104
- const _0x5fd55 = _0x31765a, _0x22ed36 = await _0x17d0f2[_0x5fd55(0x154)](_0x51b8da[_0x5fd55(_0x1901f5._0x199b8f)]), {
2105
- sizeBytes: _0x15861e,
2106
- ..._0x4e6cf6
2107
- } = _0x22ed36, _0x55f041 = await _0x17d0f2[_0x5fd55(0x249)][_0x5fd55(0x13e)]({
2108
- 'channel': _0x51b8da['channel'],
2109
- ..._0x4e6cf6
2057
+ async 'upload_file'(_0x36c818) {
2058
+ const _0x1f3218 = _0x28f47a, _0x292624 = await _0x2aabed[_0x1f3218(_0x38ba99._0x8e720a)](_0x36c818[_0x1f3218(_0x38ba99._0x123372)]), {
2059
+ sizeBytes: _0x8e748,
2060
+ ..._0x24c0ec
2061
+ } = _0x292624, _0x1bc51d = await _0x2aabed[_0x1f3218(0x16b)][_0x1f3218(_0x38ba99._0x57a2ed)]({
2062
+ 'channel': _0x36c818[_0x1f3218(_0x38ba99._0x31e6af)],
2063
+ ..._0x24c0ec
2110
2064
  });
2111
- return formatUploadResult(_0x55f041);
2065
+ return formatUploadResult(_0x1bc51d);
2112
2066
  },
2113
- async 'view_file'(_0x5883aa) {
2114
- const _0x245719 = _0x31765a, _0x4b4198 = await _0x17d0f2['attachmentCache'][_0x245719(0x155)](_0x5883aa[_0x245719(0x24d)]);
2115
- if (_0x4b4198)
2116
- return formatViewFileResult(_0x4b4198, !![]);
2117
- const _0x420088 = await _0x17d0f2[_0x245719(0x249)]['downloadAttachment'](_0x5883aa[_0x245719(_0x2bd1ac._0x190acd)]), _0x293eb7 = await _0x17d0f2[_0x245719(_0x2bd1ac._0x32e693)][_0x245719(0x143)]({
2118
- 'attachmentId': _0x5883aa[_0x245719(0x24d)],
2119
- 'contentType': _0x420088[_0x245719(0xfd)],
2120
- 'data': _0x420088[_0x245719(_0x2bd1ac._0x2b6c55)],
2121
- 'originalFilename': _0x420088[_0x245719(_0x2bd1ac._0x6ebc00)]
2067
+ async 'view_file'(_0x132344) {
2068
+ const _0x3d976f = _0x28f47a, _0x3e7cbc = await _0x2aabed[_0x3d976f(0x235)][_0x3d976f(0x2b0)](_0x132344['attachment_id']);
2069
+ if (_0x3e7cbc)
2070
+ return formatViewFileResult(_0x3e7cbc, !![]);
2071
+ const _0xe2271c = await _0x2aabed[_0x3d976f(0x16b)][_0x3d976f(0x29e)](_0x132344[_0x3d976f(0x2c8)]), _0x3c9f2c = await _0x2aabed['attachmentCache'][_0x3d976f(_0x1507b9._0x563e47)]({
2072
+ 'attachmentId': _0x132344[_0x3d976f(_0x1507b9._0xf184ef)],
2073
+ 'contentType': _0xe2271c[_0x3d976f(_0x1507b9._0x73e49)],
2074
+ 'data': _0xe2271c[_0x3d976f(_0x1507b9._0x443222)],
2075
+ 'originalFilename': _0xe2271c[_0x3d976f(0x170)]
2122
2076
  });
2123
- return formatViewFileResult(_0x293eb7, ![]);
2077
+ return formatViewFileResult(_0x3c9f2c, ![]);
2124
2078
  },
2125
- async 'get_worker_status'(_0x112993) {
2126
- const _0x27dce4 = _0x31765a;
2127
- if (!_0x17d0f2['daemonLocalUrl'])
2128
- return _0x27dce4(_0x3690d1._0x1e48af);
2129
- const _0x574691 = await fetch(_0x17d0f2[_0x27dce4(_0x3690d1._0x4563c8)] + _0x27dce4(_0x3690d1._0x179cf8) + encodeURIComponent(_0x112993[_0x27dce4(_0x3690d1._0x4b9cc2)])), _0x1eec7c = await _0x574691[_0x27dce4(_0x3690d1._0x2e6b65)]();
2130
- if (!_0x1eec7c['ok'])
2131
- return 'Worker\x20\x22' + _0x112993[_0x27dce4(0x213)] + '\x22\x20not\x20found';
2132
- return _0x27dce4(0x1e3) + _0x112993['work_key'] + _0x27dce4(_0x3690d1._0x4daafa) + _0x1eec7c['status'];
2079
+ async 'get_worker_status'(_0xd95288) {
2080
+ const _0x56f9f5 = _0x28f47a;
2081
+ if (!_0x2aabed[_0x56f9f5(_0x59729b._0x52927c)])
2082
+ return _0x56f9f5(0x2a5);
2083
+ const _0x1c5790 = await fetch(_0x2aabed['daemonLocalUrl'] + _0x56f9f5(0x275) + encodeURIComponent(_0xd95288[_0x56f9f5(0x220)])), _0x534f41 = await _0x1c5790[_0x56f9f5(_0x59729b._0x2eae2e)]();
2084
+ if (!_0x534f41['ok'])
2085
+ return _0x56f9f5(_0x59729b._0x27440c) + _0xd95288['work_key'] + _0x56f9f5(_0x59729b._0x315703);
2086
+ return 'Worker\x20\x22' + _0xd95288[_0x56f9f5(_0x59729b._0x3b5b5e)] + _0x56f9f5(_0x59729b._0x3ee3ed) + _0x534f41['status'];
2133
2087
  },
2134
- async 'park_worker'(_0x49130c) {
2135
- const _0x20a91d = _0x31765a;
2136
- if (!_0x17d0f2[_0x20a91d(_0x38cecb._0x134d9d)])
2137
- return _0x20a91d(0x20f);
2138
- const _0x24f158 = await fetch(_0x17d0f2[_0x20a91d(0x163)] + _0x20a91d(0x116), {
2139
- 'method': _0x20a91d(_0x38cecb._0x136f52),
2140
- 'headers': { 'Content-Type': _0x20a91d(0x23f) },
2141
- 'body': JSON[_0x20a91d(_0x38cecb._0x4b3c0f)]({ 'work_key': _0x49130c['work_key'] })
2142
- }), _0x542924 = await _0x24f158[_0x20a91d(_0x38cecb._0x136fb8)]();
2143
- if (!_0x542924['ok'])
2144
- throw new Error(_0x542924[_0x20a91d(_0x38cecb._0x229385)] ?? _0x20a91d(0x1c3));
2145
- return 'Worker\x20\x22' + _0x49130c[_0x20a91d(_0x38cecb._0x221f9c)] + _0x20a91d(_0x38cecb._0x33ea2c);
2088
+ async 'park_worker'(_0x28b996) {
2089
+ const _0x327078 = _0x28f47a;
2090
+ if (!_0x2aabed['daemonLocalUrl'])
2091
+ return _0x327078(0x2a5);
2092
+ const _0x4c3f5e = await fetch(_0x2aabed[_0x327078(_0x31e6d5._0x3f01d9)] + '/workers/park', {
2093
+ 'method': _0x327078(0x175),
2094
+ 'headers': { 'Content-Type': _0x327078(0x213) },
2095
+ 'body': JSON[_0x327078(0x1a9)]({ 'work_key': _0x28b996[_0x327078(0x220)] })
2096
+ }), _0x221a1d = await _0x4c3f5e[_0x327078(0x1ae)]();
2097
+ if (!_0x221a1d['ok'])
2098
+ throw new Error(_0x221a1d['error'] ?? _0x327078(_0x31e6d5._0x3c45d1));
2099
+ return _0x327078(0x218) + _0x28b996[_0x327078(_0x31e6d5._0x2da937)] + _0x327078(0x16f);
2146
2100
  },
2147
- async 'mark_waiting_input'(_0x4fbdeb) {
2148
- const _0x5413be = _0x31765a;
2149
- if (!_0x17d0f2[_0x5413be(0x163)] || !_0x17d0f2[_0x5413be(_0x4e0493._0x5115d6)])
2150
- return _0x5413be(_0x4e0493._0x3632e2);
2151
- const _0x5d36b5 = await fetch(_0x17d0f2[_0x5413be(0x163)] + _0x5413be(0x22c), {
2152
- 'method': _0x5413be(0x167),
2101
+ async 'mark_waiting_input'(_0x28c1d2) {
2102
+ const _0x7923b5 = _0x28f47a;
2103
+ if (!_0x2aabed[_0x7923b5(_0x1844b4._0x25991e)] || !_0x2aabed[_0x7923b5(_0x1844b4._0x3e9e39)])
2104
+ return _0x7923b5(_0x1844b4._0x335eb1);
2105
+ const _0x467206 = await fetch(_0x2aabed[_0x7923b5(_0x1844b4._0x5f2a3b)] + _0x7923b5(_0x1844b4._0x12a1c4), {
2106
+ 'method': _0x7923b5(_0x1844b4._0x1ae9ef),
2153
2107
  'headers': { 'Content-Type': 'application/json' },
2154
- 'body': JSON['stringify']({
2155
- 'work_key': _0x4fbdeb['work_key'],
2156
- 'agent_id': _0x17d0f2['agentId']
2108
+ 'body': JSON[_0x7923b5(0x1a9)]({
2109
+ 'work_key': _0x28c1d2[_0x7923b5(_0x1844b4._0x100d39)],
2110
+ 'agent_id': _0x2aabed[_0x7923b5(_0x1844b4._0x59f81d)]
2157
2111
  })
2158
- }), _0x4d2e58 = await _0x5d36b5[_0x5413be(_0x4e0493._0x3f2f9d)]();
2159
- if (!_0x4d2e58['ok'])
2160
- throw new Error(_0x4d2e58[_0x5413be(0xed)] ?? _0x5413be(0x1d0));
2161
- return _0x5413be(_0x4e0493._0x390ded) + _0x4fbdeb['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
2112
+ }), _0x26d795 = await _0x467206[_0x7923b5(0x1ae)]();
2113
+ if (!_0x26d795['ok'])
2114
+ throw new Error(_0x26d795[_0x7923b5(_0x1844b4._0x1e2a10)] ?? _0x7923b5(0x2af));
2115
+ return _0x7923b5(_0x1844b4._0x4742aa) + _0x28c1d2[_0x7923b5(0x220)] + _0x7923b5(_0x1844b4._0x407425);
2162
2116
  },
2163
- async 'escalate_to_main'(_0x381f8f) {
2164
- const _0x4c42c5 = _0x31765a;
2165
- if (!_0x17d0f2[_0x4c42c5(0x163)])
2166
- return _0x4c42c5(0x20f);
2167
- const _0x406f69 = await fetch(_0x17d0f2[_0x4c42c5(_0x440039._0x3c166a)] + _0x4c42c5(0x1bb), {
2168
- 'method': _0x4c42c5(_0x440039._0xac99f9),
2169
- 'headers': { 'Content-Type': 'application/json' },
2170
- 'body': JSON[_0x4c42c5(_0x440039._0x58c1c2)]({
2171
- 'work_key': _0x381f8f['work_key'],
2172
- 'reason': _0x381f8f[_0x4c42c5(0x214)]
2117
+ async 'escalate_to_main'(_0x5515bf) {
2118
+ const _0x167692 = _0x28f47a;
2119
+ if (!_0x2aabed[_0x167692(0x22b)])
2120
+ return _0x167692(_0x494eff._0x4163d8);
2121
+ const _0x28d916 = await fetch(_0x2aabed['daemonLocalUrl'] + _0x167692(0x184), {
2122
+ 'method': 'POST',
2123
+ 'headers': { 'Content-Type': _0x167692(_0x494eff._0x52bee1) },
2124
+ 'body': JSON[_0x167692(_0x494eff._0x427a84)]({
2125
+ 'work_key': _0x5515bf[_0x167692(0x220)],
2126
+ 'reason': _0x5515bf[_0x167692(0x195)]
2173
2127
  })
2174
- }), _0x24756a = await _0x406f69[_0x4c42c5(0x14e)]();
2175
- if (!_0x24756a['ok'])
2176
- throw new Error(_0x24756a[_0x4c42c5(_0x440039._0x39e15d)] ?? _0x4c42c5(0xe5));
2177
- return _0x4c42c5(0x135) + _0x381f8f[_0x4c42c5(_0x440039._0x2a431f)];
2128
+ }), _0x3fe5d9 = await _0x28d916[_0x167692(_0x494eff._0x16a874)]();
2129
+ if (!_0x3fe5d9['ok'])
2130
+ throw new Error(_0x3fe5d9[_0x167692(_0x494eff._0xd7ca6b)] ?? _0x167692(_0x494eff._0x41842d));
2131
+ return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x5515bf[_0x167692(_0x494eff._0x571605)];
2178
2132
  }
2179
2133
  };
2180
2134
  }
2181
- function textResult(_0x53199c, _0x556ada = ![]) {
2182
- const _0x33ad70 = { _0x3a9590: 0xeb }, _0x32ebe0 = _0x51636d;
2135
+ function textResult(_0x132824, _0x7e7048 = ![]) {
2136
+ const _0x16cea0 = { _0x52831b: 0x1bd }, _0x4786db = _0x5e54a5;
2183
2137
  return {
2184
2138
  'content': [{
2185
- 'type': _0x32ebe0(_0x33ad70._0x3a9590),
2186
- 'text': _0x53199c
2139
+ 'type': _0x4786db(_0x16cea0._0x52831b),
2140
+ 'text': _0x132824
2187
2141
  }],
2188
- ..._0x556ada ? { 'isError': !![] } : {}
2142
+ ..._0x7e7048 ? { 'isError': !![] } : {}
2189
2143
  };
2190
2144
  }
2191
- async function registerChatBridgeTools(_0x5ec6ad, _0x195266, _0x2c609d) {
2192
- const _0x2ed3ca = {
2193
- _0x377845: 0x105,
2194
- _0x3d3244: 0x147,
2195
- _0x502fb9: 0x240,
2196
- _0x58280c: 0x147,
2197
- _0x16ccf2: 0x1a9,
2198
- _0x3f617d: 0x168,
2199
- _0x513973: 0x255,
2200
- _0x235660: 0x1a9,
2201
- _0x144901: 0x1cd,
2202
- _0x3bc586: 0x1b2,
2203
- _0x343889: 0x245,
2204
- _0x3d446f: 0xf7,
2205
- _0x5251ad: 0x1b2,
2206
- _0x1aea89: 0x25d,
2207
- _0x2b4bc7: 0xe7,
2208
- _0x24bd9e: 0x1b2,
2209
- _0x4c82aa: 0xff,
2210
- _0x56b5c9: 0x1b2,
2211
- _0x294554: 0x122,
2212
- _0x13a47d: 0x24f,
2213
- _0x1d2b23: 0x1a9,
2214
- _0x167bae: 0x240,
2215
- _0x4e0796: 0x168,
2216
- _0x594217: 0x170,
2217
- _0x1647ce: 0x243,
2218
- _0x12efb6: 0x228,
2219
- _0x515c18: 0x1a9,
2220
- _0x2b567a: 0x1a9,
2221
- _0x11a097: 0x1f3,
2222
- _0x2fea92: 0x147,
2223
- _0x2f3586: 0x13a,
2224
- _0x556d7b: 0x23d,
2225
- _0x112086: 0x1a9,
2226
- _0x39974b: 0x1a9,
2227
- _0x532c23: 0x147,
2228
- _0x30eab7: 0x1a9,
2229
- _0x273d60: 0xe7,
2230
- _0x506c11: 0x252,
2231
- _0xb17d6a: 0x1b2,
2232
- _0x12ed3c: 0x10f,
2233
- _0x316a59: 0x23b,
2234
- _0x3bfe2a: 0x272,
2235
- _0x3c3fc0: 0x147,
2236
- _0xd655c1: 0x11e
2237
- }, _0xe68999 = {
2238
- _0x401b81: 0x21b,
2239
- _0x33d364: 0x1d0
2240
- }, _0xe52ac0 = { _0x669be: 0x20e }, _0x23aebc = { _0x42325c: 0x1f6 }, _0x1e489a = { _0xe34054: 0x231 }, _0x4a7441 = { _0x3fc132: 0x1ab }, _0x50d469 = { _0x447b18: 0x1e4 }, _0x5d98b2 = {
2241
- _0x2e9329: 0x18e,
2242
- _0x11bea3: 0x12a
2243
- }, _0x4c975e = {
2244
- _0x54c260: 0x126,
2245
- _0x12782f: 0x114
2246
- }, _0xe662fa = { _0x1866f5: 0x21b }, _0x33a9ed = { _0x1e5276: 0x21b }, _0x2bf137 = { _0x3feb68: 0x245 }, _0x1562fe = { _0x6cf171: 0x23e }, _0x23692f = _0x51636d, {z: _0x1ddc83} = await import(_0x23692f(0x1d9));
2247
- _0x5ec6ad[_0x23692f(0x1b2)](_0x23692f(_0x2ed3ca._0x377845), _0x23692f(0x158), {
2248
- 'target': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3d3244)](),
2249
- 'content': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3d3244)](),
2250
- 'attachment_ids': _0x1ddc83[_0x23692f(_0x2ed3ca._0x502fb9)](_0x1ddc83[_0x23692f(_0x2ed3ca._0x58280c)]())[_0x23692f(_0x2ed3ca._0x16ccf2)](),
2251
- 'visibility': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3f617d)]([
2252
- _0x23692f(_0x2ed3ca._0x513973),
2253
- _0x23692f(0x202)
2254
- ])[_0x23692f(_0x2ed3ca._0x235660)]()[_0x23692f(0x25a)](_0x23692f(_0x2ed3ca._0x144901))
2255
- }, async _0x58370a => {
2256
- const _0x5941d6 = _0x23692f;
2145
+ async function registerChatBridgeTools(_0x3897e6, _0x3ab95f, _0x5aa2f4) {
2146
+ const _0x2900de = {
2147
+ _0xeedc3b: 0x166,
2148
+ _0x229f83: 0x216,
2149
+ _0x4e13b5: 0x216,
2150
+ _0x11d43f: 0x16c,
2151
+ _0x52abe2: 0x2c5,
2152
+ _0xb5a337: 0x2e8,
2153
+ _0x19316f: 0x23b,
2154
+ _0x2005ce: 0x2a0,
2155
+ _0x4b2349: 0x284,
2156
+ _0x492153: 0x2d5,
2157
+ _0x141598: 0x2bb,
2158
+ _0x318708: 0x216,
2159
+ _0x120858: 0x1cc,
2160
+ _0x22376f: 0x1e2,
2161
+ _0x1157be: 0x1ec,
2162
+ _0xf83893: 0x2bf,
2163
+ _0x420667: 0x288,
2164
+ _0x10cda0: 0x2a0,
2165
+ _0x12e8f1: 0x173,
2166
+ _0x257c42: 0x16c,
2167
+ _0x18ed0b: 0x1db,
2168
+ _0x2c7010: 0x2c5,
2169
+ _0x36156: 0x1eb,
2170
+ _0x2c4105: 0x23c,
2171
+ _0x448641: 0x16c,
2172
+ _0x499a60: 0x24a,
2173
+ _0x4f796c: 0x2a0,
2174
+ _0x64c1ce: 0x27a,
2175
+ _0x438734: 0x26b,
2176
+ _0x5ede04: 0x2e2,
2177
+ _0x198fa6: 0x216,
2178
+ _0x3e2e85: 0x1d3,
2179
+ _0x5034d2: 0x1fd,
2180
+ _0x1104e8: 0x2b6,
2181
+ _0x2a6331: 0x216,
2182
+ _0x60f8e8: 0x2ee,
2183
+ _0x5af8eb: 0x1d8
2184
+ }, _0x565701 = { _0x56eb2b: 0x2b6 }, _0x47e496 = { _0x256814: 0x1e8 }, _0x1686b6 = { _0x337a22: 0x1e8 }, _0x214e56 = {
2185
+ _0x19ce9f: 0x1e8,
2186
+ _0x119f8c: 0x191
2187
+ }, _0x2272b9 = {
2188
+ _0x4b982a: 0x1e8,
2189
+ _0x249ea5: 0x179
2190
+ }, _0x273e82 = {
2191
+ _0x3364e0: 0x1e8,
2192
+ _0x395e5d: 0x223
2193
+ }, _0x57173d = {
2194
+ _0xdb4bcd: 0x1e8,
2195
+ _0x51e8c5: 0x1e6
2196
+ }, _0x1cb219 = { _0x5edfee: 0x1e8 }, _0xef352f = { _0x172fa7: 0x173 }, _0x34c9ff = { _0x439448: 0x24c }, _0x150426 = { _0x2daa00: 0x1cc }, _0x19ec69 = {
2197
+ _0x2e94e3: 0x2bb,
2198
+ _0x2c7d54: 0x1cb
2199
+ }, _0x2352ee = { _0x2603d7: 0x284 }, _0x4a7fe1 = {
2200
+ _0x344cf0: 0x160,
2201
+ _0x15a113: 0x1e8,
2202
+ _0x5cf0dd: 0x1d1
2203
+ }, _0x21f93c = _0x5e54a5, {z: _0xdf0738} = await import(_0x21f93c(0x2ac));
2204
+ _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(0x160), _0x21f93c(_0x2900de._0xeedc3b), {
2205
+ 'target': _0xdf0738[_0x21f93c(_0x2900de._0x229f83)](),
2206
+ 'content': _0xdf0738[_0x21f93c(_0x2900de._0x4e13b5)](),
2207
+ 'attachment_ids': _0xdf0738[_0x21f93c(0x1db)](_0xdf0738[_0x21f93c(0x216)]())[_0x21f93c(_0x2900de._0x11d43f)](),
2208
+ 'visibility': _0xdf0738[_0x21f93c(_0x2900de._0x52abe2)]([
2209
+ _0x21f93c(_0x2900de._0xb5a337),
2210
+ _0x21f93c(_0x2900de._0x19316f)
2211
+ ])[_0x21f93c(0x16c)]()['describe']('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
2212
+ }, async _0x24e57a => {
2213
+ const _0x5566b3 = _0x21f93c;
2257
2214
  try {
2258
- return textResult(await _0x195266['send_message'](_0x58370a));
2259
- } catch (_0x1e2e46) {
2260
- return textResult(_0x1e2e46 instanceof Error ? _0x1e2e46[_0x5941d6(0x21b)] : _0x5941d6(_0x1562fe._0x6cf171), !![]);
2215
+ return textResult(await _0x3ab95f[_0x5566b3(_0x4a7fe1._0x344cf0)](_0x24e57a));
2216
+ } catch (_0x237fa9) {
2217
+ return textResult(_0x237fa9 instanceof Error ? _0x237fa9[_0x5566b3(_0x4a7fe1._0x15a113)] : _0x5566b3(_0x4a7fe1._0x5cf0dd), !![]);
2261
2218
  }
2262
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x3bc586)](_0x23692f(_0x2ed3ca._0x343889), _0x23692f(_0x2ed3ca._0x3d446f), {}, async () => {
2263
- const _0x235cbf = _0x23692f;
2219
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x2005ce)](_0x21f93c(_0x2900de._0x4b2349), _0x21f93c(_0x2900de._0x492153), {}, async () => {
2220
+ const _0x39012d = _0x21f93c;
2264
2221
  try {
2265
- return textResult(await _0x195266[_0x235cbf(_0x2bf137._0x3feb68)]());
2266
- } catch (_0xab1c89) {
2267
- return textResult(_0xab1c89 instanceof Error ? _0xab1c89[_0x235cbf(0x21b)] : _0x235cbf(0x18d), !![]);
2222
+ return textResult(await _0x3ab95f[_0x39012d(_0x2352ee._0x2603d7)]());
2223
+ } catch (_0x20818d) {
2224
+ return textResult(_0x20818d instanceof Error ? _0x20818d[_0x39012d(0x1e8)] : 'check_messages\x20failed', !![]);
2268
2225
  }
2269
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x5251ad)](_0x23692f(_0x2ed3ca._0x1aea89), _0x23692f(0x23c), {
2270
- 'channel': _0x1ddc83['string'](),
2271
- 'limit': _0x1ddc83[_0x23692f(_0x2ed3ca._0x2b4bc7)]()[_0x23692f(0x1a9)](),
2272
- 'before': _0x1ddc83[_0x23692f(_0x2ed3ca._0x2b4bc7)]()[_0x23692f(0x1a9)](),
2273
- 'after': _0x1ddc83[_0x23692f(_0x2ed3ca._0x2b4bc7)]()['optional']()
2274
- }, async _0xf8bd63 => {
2226
+ }), _0x3897e6['tool'](_0x21f93c(_0x2900de._0x141598), _0x21f93c(0x1a3), {
2227
+ 'channel': _0xdf0738[_0x21f93c(_0x2900de._0x318708)](),
2228
+ 'limit': _0xdf0738[_0x21f93c(0x23c)]()[_0x21f93c(_0x2900de._0x11d43f)](),
2229
+ 'before': _0xdf0738['number']()[_0x21f93c(_0x2900de._0x11d43f)](),
2230
+ 'after': _0xdf0738[_0x21f93c(0x23c)]()[_0x21f93c(0x16c)]()
2231
+ }, async _0x4b4cde => {
2232
+ const _0x10dc4c = _0x21f93c;
2275
2233
  try {
2276
- return textResult(await _0x195266['read_history'](_0xf8bd63));
2277
- } catch (_0x2b19de) {
2278
- return textResult(_0x2b19de instanceof Error ? _0x2b19de['message'] : 'read_history\x20failed', !![]);
2234
+ return textResult(await _0x3ab95f[_0x10dc4c(_0x19ec69._0x2e94e3)](_0x4b4cde));
2235
+ } catch (_0x26b0df) {
2236
+ return textResult(_0x26b0df instanceof Error ? _0x26b0df[_0x10dc4c(0x1e8)] : _0x10dc4c(_0x19ec69._0x2c7d54), !![]);
2279
2237
  }
2280
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x24bd9e)](_0x23692f(_0x2ed3ca._0x4c82aa), _0x23692f(0x134), {}, async () => {
2281
- const _0x2eea0a = _0x23692f;
2238
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x120858), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
2239
+ const _0x5cd589 = _0x21f93c;
2282
2240
  try {
2283
- return textResult(await _0x195266[_0x2eea0a(0xff)]());
2284
- } catch (_0xe76507) {
2285
- return textResult(_0xe76507 instanceof Error ? _0xe76507[_0x2eea0a(0x21b)] : 'list_server\x20failed', !![]);
2241
+ return textResult(await _0x3ab95f[_0x5cd589(_0x150426._0x2daa00)]());
2242
+ } catch (_0x4203c6) {
2243
+ return textResult(_0x4203c6 instanceof Error ? _0x4203c6['message'] : 'list_server\x20failed', !![]);
2286
2244
  }
2287
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x56b5c9)](_0x23692f(0x1ce), _0x23692f(0x215), {
2288
- 'channel': _0x1ddc83[_0x23692f(0x147)](),
2289
- 'status': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3f617d)]([
2290
- _0x23692f(_0x2ed3ca._0x294554),
2291
- 'in_progress',
2292
- _0x23692f(0x1ae),
2293
- _0x23692f(0xec)
2245
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x2005ce)](_0x21f93c(_0x2900de._0x22376f), _0x21f93c(_0x2900de._0x1157be), {
2246
+ 'channel': _0xdf0738[_0x21f93c(0x216)](),
2247
+ 'status': _0xdf0738[_0x21f93c(0x2c5)]([
2248
+ _0x21f93c(0x26b),
2249
+ _0x21f93c(_0x2900de._0xf83893),
2250
+ 'in_review',
2251
+ _0x21f93c(_0x2900de._0x420667)
2294
2252
  ])['optional']()
2295
- }, async _0x1984e8 => {
2296
- const _0x7d018a = _0x23692f;
2253
+ }, async _0x1a0367 => {
2254
+ const _0x4aa4c7 = _0x21f93c;
2297
2255
  try {
2298
- return textResult(await _0x195266[_0x7d018a(0x1ce)](_0x1984e8));
2299
- } catch (_0x5f0575) {
2300
- return textResult(_0x5f0575 instanceof Error ? _0x5f0575[_0x7d018a(_0x33a9ed._0x1e5276)] : _0x7d018a(0x1ad), !![]);
2256
+ return textResult(await _0x3ab95f[_0x4aa4c7(0x1e2)](_0x1a0367));
2257
+ } catch (_0x533657) {
2258
+ return textResult(_0x533657 instanceof Error ? _0x533657[_0x4aa4c7(0x1e8)] : _0x4aa4c7(_0x34c9ff._0x439448), !![]);
2301
2259
  }
2302
- }), _0x5ec6ad[_0x23692f(0x1b2)](_0x23692f(0xf9), _0x23692f(_0x2ed3ca._0x13a47d), {
2303
- 'channel': _0x1ddc83['string'](),
2304
- 'idempotency_key': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3d3244)]()[_0x23692f(_0x2ed3ca._0x1d2b23)](),
2305
- 'tasks': _0x1ddc83[_0x23692f(_0x2ed3ca._0x167bae)](_0x1ddc83[_0x23692f(0x13a)]({
2306
- 'title': _0x1ddc83['string'](),
2307
- 'description': _0x1ddc83['string']()[_0x23692f(0x1a9)](),
2308
- 'priority': _0x1ddc83[_0x23692f(_0x2ed3ca._0x4e0796)]([
2309
- _0x23692f(_0x2ed3ca._0x594217),
2310
- _0x23692f(0x130),
2311
- _0x23692f(0x11f),
2312
- _0x23692f(_0x2ed3ca._0x1647ce)
2313
- ])[_0x23692f(0x1a9)]()
2260
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x10cda0)](_0x21f93c(_0x2900de._0x12e8f1), _0x21f93c(0x251), {
2261
+ 'channel': _0xdf0738['string'](),
2262
+ 'idempotency_key': _0xdf0738[_0x21f93c(0x216)]()[_0x21f93c(_0x2900de._0x257c42)](),
2263
+ 'tasks': _0xdf0738[_0x21f93c(_0x2900de._0x18ed0b)](_0xdf0738[_0x21f93c(0x2cc)]({
2264
+ 'title': _0xdf0738[_0x21f93c(0x216)](),
2265
+ 'description': _0xdf0738['string']()[_0x21f93c(_0x2900de._0x257c42)](),
2266
+ 'priority': _0xdf0738[_0x21f93c(_0x2900de._0x2c7010)]([
2267
+ _0x21f93c(0x2a4),
2268
+ _0x21f93c(0x1f9),
2269
+ 'high',
2270
+ 'urgent'
2271
+ ])[_0x21f93c(_0x2900de._0x257c42)]()
2314
2272
  }))
2315
- }, async _0xbfa49a => {
2316
- const _0x342799 = _0x23692f;
2273
+ }, async _0x4dd073 => {
2274
+ const _0x4ff5d2 = _0x21f93c;
2317
2275
  try {
2318
- return textResult(await _0x195266[_0x342799(0xf9)](_0xbfa49a));
2319
- } catch (_0x1c3497) {
2320
- return textResult(_0x1c3497 instanceof Error ? _0x1c3497[_0x342799(_0xe662fa._0x1866f5)] : _0x342799(0xfe), !![]);
2276
+ return textResult(await _0x3ab95f[_0x4ff5d2(_0xef352f._0x172fa7)](_0x4dd073));
2277
+ } catch (_0x303cc7) {
2278
+ return textResult(_0x303cc7 instanceof Error ? _0x303cc7[_0x4ff5d2(0x1e8)] : 'create_tasks\x20failed', !![]);
2321
2279
  }
2322
- }), _0x5ec6ad[_0x23692f(0x1b2)](_0x23692f(0x126), _0x23692f(_0x2ed3ca._0x12efb6), {
2323
- 'channel': _0x1ddc83['string'](),
2324
- 'task_numbers': _0x1ddc83[_0x23692f(_0x2ed3ca._0x167bae)](_0x1ddc83['number']())[_0x23692f(_0x2ed3ca._0x515c18)](),
2325
- 'subtask_numbers': _0x1ddc83['array'](_0x1ddc83[_0x23692f(0xe7)]())['optional'](),
2326
- 'message_ids': _0x1ddc83[_0x23692f(0x240)](_0x1ddc83[_0x23692f(_0x2ed3ca._0x58280c)]())[_0x23692f(_0x2ed3ca._0x2b567a)](),
2327
- 'evidence': _0x1ddc83[_0x23692f(_0x2ed3ca._0x11a097)](_0x1ddc83[_0x23692f(_0x2ed3ca._0x2fea92)](), _0x1ddc83[_0x23692f(_0x2ed3ca._0x2f3586)]({
2328
- 'create_thread': _0x1ddc83[_0x23692f(0x23d)]()[_0x23692f(0x1a9)](),
2329
- 'create_task': _0x1ddc83[_0x23692f(_0x2ed3ca._0x556d7b)]()[_0x23692f(_0x2ed3ca._0x112086)]()
2330
- }))[_0x23692f(_0x2ed3ca._0x39974b)](),
2331
- 'idempotency_key': _0x1ddc83[_0x23692f(_0x2ed3ca._0x532c23)]()[_0x23692f(0x1a9)]()
2332
- }, async _0x56932c => {
2333
- const _0x10ae9a = _0x23692f;
2280
+ }), _0x3897e6['tool'](_0x21f93c(_0x2900de._0x36156), _0x21f93c(0x2a1), {
2281
+ 'channel': _0xdf0738[_0x21f93c(0x216)](),
2282
+ 'task_numbers': _0xdf0738[_0x21f93c(0x1db)](_0xdf0738[_0x21f93c(_0x2900de._0x2c4105)]())[_0x21f93c(0x16c)](),
2283
+ 'subtask_numbers': _0xdf0738[_0x21f93c(_0x2900de._0x18ed0b)](_0xdf0738['number']())[_0x21f93c(_0x2900de._0x448641)](),
2284
+ 'message_ids': _0xdf0738['array'](_0xdf0738[_0x21f93c(0x216)]())[_0x21f93c(0x16c)](),
2285
+ 'evidence': _0xdf0738[_0x21f93c(0x25e)](_0xdf0738['string'](), _0xdf0738['object']({
2286
+ 'create_thread': _0xdf0738['unknown']()[_0x21f93c(0x16c)](),
2287
+ 'create_task': _0xdf0738[_0x21f93c(0x1c4)]()['optional']()
2288
+ }))[_0x21f93c(0x16c)](),
2289
+ 'idempotency_key': _0xdf0738[_0x21f93c(0x216)]()[_0x21f93c(0x16c)]()
2290
+ }, async _0x5388b4 => {
2291
+ const _0x265823 = _0x21f93c;
2334
2292
  try {
2335
- return textResult(await _0x195266[_0x10ae9a(_0x4c975e._0x54c260)](_0x56932c));
2336
- } catch (_0x5c6705) {
2337
- return textResult(_0x5c6705 instanceof Error ? _0x5c6705[_0x10ae9a(0x21b)] : _0x10ae9a(_0x4c975e._0x12782f), !![]);
2293
+ return textResult(await _0x3ab95f[_0x265823(0x1eb)](_0x5388b4));
2294
+ } catch (_0x19f958) {
2295
+ return textResult(_0x19f958 instanceof Error ? _0x19f958[_0x265823(_0x1cb219._0x5edfee)] : _0x265823(0x23e), !![]);
2338
2296
  }
2339
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x3bc586)](_0x23692f(0x1c0), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
2340
- 'channel': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3d3244)](),
2341
- 'task_number': _0x1ddc83[_0x23692f(0xe7)](),
2342
- 'subtask_number': _0x1ddc83['number']()[_0x23692f(_0x2ed3ca._0x16ccf2)](),
2343
- 'idempotency_key': _0x1ddc83[_0x23692f(_0x2ed3ca._0x532c23)]()[_0x23692f(_0x2ed3ca._0x30eab7)]()
2344
- }, async _0x11dca7 => {
2345
- const _0x3969e7 = _0x23692f;
2297
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x499a60), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
2298
+ 'channel': _0xdf0738[_0x21f93c(_0x2900de._0x4e13b5)](),
2299
+ 'task_number': _0xdf0738[_0x21f93c(0x23c)](),
2300
+ 'subtask_number': _0xdf0738[_0x21f93c(_0x2900de._0x2c4105)]()[_0x21f93c(_0x2900de._0x257c42)](),
2301
+ 'idempotency_key': _0xdf0738[_0x21f93c(_0x2900de._0x318708)]()[_0x21f93c(0x16c)]()
2302
+ }, async _0x9efe67 => {
2303
+ const _0x59e095 = _0x21f93c;
2346
2304
  try {
2347
- return textResult(await _0x195266[_0x3969e7(0x1c0)](_0x11dca7));
2348
- } catch (_0x35db2c) {
2349
- return textResult(_0x35db2c instanceof Error ? _0x35db2c['message'] : _0x3969e7(0x133), !![]);
2305
+ return textResult(await _0x3ab95f['unclaim_task'](_0x9efe67));
2306
+ } catch (_0x484cb1) {
2307
+ return textResult(_0x484cb1 instanceof Error ? _0x484cb1[_0x59e095(_0x57173d._0xdb4bcd)] : _0x59e095(_0x57173d._0x51e8c5), !![]);
2350
2308
  }
2351
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x24bd9e)](_0x23692f(0x18e), _0x23692f(0x1b0), {
2352
- 'channel': _0x1ddc83[_0x23692f(0x147)](),
2353
- 'task_number': _0x1ddc83[_0x23692f(_0x2ed3ca._0x2b4bc7)](),
2354
- 'subtask_number': _0x1ddc83[_0x23692f(_0x2ed3ca._0x273d60)]()[_0x23692f(_0x2ed3ca._0x2b567a)](),
2355
- 'status': _0x1ddc83[_0x23692f(0x168)]([
2356
- _0x23692f(0x122),
2357
- _0x23692f(_0x2ed3ca._0x506c11),
2358
- 'in_review',
2359
- 'done'
2309
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x4f796c)](_0x21f93c(0x1f1), _0x21f93c(_0x2900de._0x64c1ce), {
2310
+ 'channel': _0xdf0738[_0x21f93c(0x216)](),
2311
+ 'task_number': _0xdf0738['number'](),
2312
+ 'subtask_number': _0xdf0738[_0x21f93c(0x23c)]()[_0x21f93c(_0x2900de._0x11d43f)](),
2313
+ 'status': _0xdf0738[_0x21f93c(_0x2900de._0x52abe2)]([
2314
+ _0x21f93c(_0x2900de._0x438734),
2315
+ _0x21f93c(0x2bf),
2316
+ _0x21f93c(0x27b),
2317
+ _0x21f93c(0x288)
2360
2318
  ]),
2361
- 'idempotency_key': _0x1ddc83[_0x23692f(0x147)]()['optional']()
2362
- }, async _0x37a025 => {
2363
- const _0xa9584e = _0x23692f;
2319
+ 'idempotency_key': _0xdf0738['string']()[_0x21f93c(_0x2900de._0x257c42)]()
2320
+ }, async _0x237852 => {
2321
+ const _0x271c34 = _0x21f93c;
2364
2322
  try {
2365
- return textResult(await _0x195266[_0xa9584e(_0x5d98b2._0x2e9329)](_0x37a025));
2366
- } catch (_0x4b14ed) {
2367
- return textResult(_0x4b14ed instanceof Error ? _0x4b14ed[_0xa9584e(0x21b)] : _0xa9584e(_0x5d98b2._0x11bea3), !![]);
2323
+ return textResult(await _0x3ab95f[_0x271c34(0x1f1)](_0x237852));
2324
+ } catch (_0x3ffd20) {
2325
+ return textResult(_0x3ffd20 instanceof Error ? _0x3ffd20[_0x271c34(_0x273e82._0x3364e0)] : _0x271c34(_0x273e82._0x395e5d), !![]);
2368
2326
  }
2369
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0xb17d6a)](_0x23692f(0x1e4), _0x23692f(_0x2ed3ca._0x12ed3c), {
2370
- 'channel': _0x1ddc83[_0x23692f(0x147)](),
2371
- 'file_path': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3d3244)]()
2372
- }, async _0x56b35a => {
2373
- const _0x23fc52 = _0x23692f;
2327
+ }), _0x3897e6['tool'](_0x21f93c(0x2b9), _0x21f93c(_0x2900de._0x5ede04), {
2328
+ 'channel': _0xdf0738['string'](),
2329
+ 'file_path': _0xdf0738[_0x21f93c(_0x2900de._0x198fa6)]()
2330
+ }, async _0x307e80 => {
2331
+ const _0x451b08 = _0x21f93c;
2374
2332
  try {
2375
- return textResult(await _0x195266[_0x23fc52(_0x50d469._0x447b18)](_0x56b35a));
2376
- } catch (_0x5a3bc0) {
2377
- return textResult(_0x5a3bc0 instanceof Error ? _0x5a3bc0['message'] : 'upload_file\x20failed', !![]);
2333
+ return textResult(await _0x3ab95f[_0x451b08(0x2b9)](_0x307e80));
2334
+ } catch (_0xc18c01) {
2335
+ return textResult(_0xc18c01 instanceof Error ? _0xc18c01[_0x451b08(_0x2272b9._0x4b982a)] : _0x451b08(_0x2272b9._0x249ea5), !![]);
2378
2336
  }
2379
- }), _0x5ec6ad[_0x23692f(_0x2ed3ca._0x5251ad)](_0x23692f(0x1ab), _0x23692f(0x109), { 'attachment_id': _0x1ddc83[_0x23692f(0x147)]() }, async _0x5ec75a => {
2380
- const _0x3d3cb6 = _0x23692f;
2337
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x3e2e85), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0xdf0738['string']() }, async _0x488de7 => {
2338
+ const _0x2c5dbb = _0x21f93c;
2381
2339
  try {
2382
- return textResult(await _0x195266[_0x3d3cb6(_0x4a7441._0x3fc132)](_0x5ec75a));
2383
- } catch (_0xe16152) {
2384
- return textResult(_0xe16152 instanceof Error ? _0xe16152[_0x3d3cb6(0x21b)] : _0x3d3cb6(0x152), !![]);
2340
+ return textResult(await _0x3ab95f[_0x2c5dbb(0x1d3)](_0x488de7));
2341
+ } catch (_0x1cb324) {
2342
+ return textResult(_0x1cb324 instanceof Error ? _0x1cb324[_0x2c5dbb(_0x214e56._0x19ce9f)] : _0x2c5dbb(_0x214e56._0x119f8c), !![]);
2385
2343
  }
2386
- }), _0x5ec6ad['tool'](_0x23692f(0x19f), _0x23692f(0x18c), { 'work_key': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3d3244)]() }, async _0x495279 => {
2387
- const _0x576492 = _0x23692f;
2344
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(0x256), _0x21f93c(_0x2900de._0x5034d2), { 'work_key': _0xdf0738[_0x21f93c(_0x2900de._0x229f83)]() }, async _0x199f0d => {
2345
+ const _0x4aa91a = _0x21f93c;
2388
2346
  try {
2389
- return textResult(await _0x195266[_0x576492(0x19f)](_0x495279));
2390
- } catch (_0x3aac84) {
2391
- return textResult(_0x3aac84 instanceof Error ? _0x3aac84[_0x576492(0x21b)] : _0x576492(_0x1e489a._0xe34054), !![]);
2347
+ return textResult(await _0x3ab95f[_0x4aa91a(0x256)](_0x199f0d));
2348
+ } catch (_0x200390) {
2349
+ return textResult(_0x200390 instanceof Error ? _0x200390[_0x4aa91a(_0x1686b6._0x337a22)] : _0x4aa91a(0x1dd), !![]);
2392
2350
  }
2393
- }), _0x5ec6ad[_0x23692f(0x1b2)](_0x23692f(0x1f6), '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': _0x1ddc83['string']() }, async _0x4b22bf => {
2394
- const _0x23f242 = _0x23692f;
2351
+ }), _0x3897e6[_0x21f93c(0x2a0)]('park_worker', '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': _0xdf0738['string']() }, async _0x39d626 => {
2352
+ const _0x1b313c = _0x21f93c;
2395
2353
  try {
2396
- return textResult(await _0x195266[_0x23f242(_0x23aebc._0x42325c)](_0x4b22bf));
2397
- } catch (_0x476f9e) {
2398
- return textResult(_0x476f9e instanceof Error ? _0x476f9e[_0x23f242(0x21b)] : _0x23f242(0x1c3), !![]);
2354
+ return textResult(await _0x3ab95f[_0x1b313c(0x1cd)](_0x39d626));
2355
+ } catch (_0x37b4e0) {
2356
+ return textResult(_0x37b4e0 instanceof Error ? _0x37b4e0[_0x1b313c(_0x47e496._0x256814)] : 'park_worker\x20failed', !![]);
2399
2357
  }
2400
- }), !_0x2c609d?.[_0x23692f(_0x2ed3ca._0x316a59)] && _0x5ec6ad[_0x23692f(_0x2ed3ca._0x5251ad)](_0x23692f(0x20e), _0x23692f(_0x2ed3ca._0x3bfe2a), {
2401
- 'work_key': _0x1ddc83[_0x23692f(_0x2ed3ca._0x3c3fc0)](),
2402
- 'reason': _0x1ddc83['string']()
2403
- }, async _0x54b334 => {
2404
- const _0x3df81f = _0x23692f;
2358
+ }), !_0x5aa2f4?.[_0x21f93c(0x267)] && _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x1104e8), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
2359
+ 'work_key': _0xdf0738[_0x21f93c(_0x2900de._0x2a6331)](),
2360
+ 'reason': _0xdf0738['string']()
2361
+ }, async _0x3b89ec => {
2362
+ const _0x218429 = _0x21f93c;
2405
2363
  try {
2406
- return textResult(await _0x195266[_0x3df81f(_0xe52ac0._0x669be)](_0x54b334));
2407
- } catch (_0x17fff0) {
2408
- return textResult(_0x17fff0 instanceof Error ? _0x17fff0[_0x3df81f(0x21b)] : _0x3df81f(0xe5), !![]);
2364
+ return textResult(await _0x3ab95f[_0x218429(_0x565701._0x56eb2b)](_0x3b89ec));
2365
+ } catch (_0x2f316a) {
2366
+ return textResult(_0x2f316a instanceof Error ? _0x2f316a[_0x218429(0x1e8)] : 'escalate_to_main\x20failed', !![]);
2409
2367
  }
2410
- }), _0x2c609d?.['workerMode'] && _0x5ec6ad['tool'](_0x23692f(0x1d6), _0x23692f(_0x2ed3ca._0xd655c1), { 'work_key': _0x1ddc83['string']() }, async _0x2d34ee => {
2411
- const _0xcd4b50 = _0x23692f;
2368
+ }), _0x5aa2f4?.[_0x21f93c(0x267)] && _0x3897e6[_0x21f93c(_0x2900de._0x10cda0)](_0x21f93c(_0x2900de._0x60f8e8), _0x21f93c(_0x2900de._0x5af8eb), { 'work_key': _0xdf0738['string']() }, async _0x12b460 => {
2369
+ const _0x57469d = _0x21f93c;
2412
2370
  try {
2413
- return textResult(await _0x195266['mark_waiting_input'](_0x2d34ee));
2414
- } catch (_0x3ffb08) {
2415
- return textResult(_0x3ffb08 instanceof Error ? _0x3ffb08[_0xcd4b50(_0xe68999._0x401b81)] : _0xcd4b50(_0xe68999._0x33d364), !![]);
2371
+ return textResult(await _0x3ab95f[_0x57469d(0x2ee)](_0x12b460));
2372
+ } catch (_0x5259d3) {
2373
+ return textResult(_0x5259d3 instanceof Error ? _0x5259d3[_0x57469d(0x1e8)] : _0x57469d(0x2af), !![]);
2416
2374
  }
2417
2375
  });
2418
2376
  }
2419
- async function createChatBridgeServer(_0x13a8c7) {
2420
- const _0x2d6d43 = { _0x519f7c: 0x192 }, _0x43e86c = _0x51636d, {McpServer: _0x2b1c98} = await import(_0x43e86c(0x1b4)), _0x394356 = new _0x2b1c98({
2421
- 'name': _0x43e86c(_0x2d6d43._0x519f7c),
2422
- 'version': '0.0.0'
2423
- }), _0x1482a0 = createChatBridgeHandlers(_0x13a8c7);
2424
- return await registerChatBridgeTools(_0x394356, _0x1482a0, { 'workerMode': _0x13a8c7['workerMode'] }), {
2425
- 'handlers': _0x1482a0,
2426
- 'server': _0x394356
2377
+ async function createChatBridgeServer(_0x1c4491) {
2378
+ const _0x1fa105 = { _0x1b8b48: 0x28f }, _0xe1234e = _0x5e54a5, {McpServer: _0x3c9d26} = await import(_0xe1234e(0x260)), _0x102fe7 = new _0x3c9d26({
2379
+ 'name': _0xe1234e(_0x1fa105._0x1b8b48),
2380
+ 'version': _0xe1234e(0x161)
2381
+ }), _0xbcc532 = createChatBridgeHandlers(_0x1c4491);
2382
+ return await registerChatBridgeTools(_0x102fe7, _0xbcc532, { 'workerMode': _0x1c4491[_0xe1234e(0x267)] }), {
2383
+ 'handlers': _0xbcc532,
2384
+ 'server': _0x102fe7
2427
2385
  };
2428
2386
  }
2429
- function readFlag(_0x18d88e, _0x38e115) {
2430
- const _0x39757c = _0x51636d, _0x439f1d = _0x18d88e[_0x39757c(0x191)](_0x38e115);
2431
- if (_0x439f1d === -0x1)
2387
+ function readFlag(_0x46f811, _0x113581) {
2388
+ const _0x2c266f = _0x46f811['indexOf'](_0x113581);
2389
+ if (_0x2c266f === -0x1)
2432
2390
  return void 0x0;
2433
- return _0x18d88e[_0x439f1d + 0x1];
2391
+ return _0x46f811[_0x2c266f + 0x1];
2434
2392
  }
2435
- function parseChatBridgeArgs(_0x2a6cda) {
2436
- const _0x2f3136 = {
2437
- _0x39845a: 0x1a8,
2438
- _0x27d99e: 0x13b,
2439
- _0x45ec86: 0x160
2440
- }, _0x3243c4 = _0x51636d, _0x5802b8 = readFlag(_0x2a6cda, '--agent-id'), _0x3b73d2 = readFlag(_0x2a6cda, '--attachment-cache-dir'), _0x3bd29d = readFlag(_0x2a6cda, _0x3243c4(0x18b)), _0x2abf0f = readFlag(_0x2a6cda, '--initial-last-seen-seq'), _0x42ac50 = readFlag(_0x2a6cda, '--server-url') ?? _0x3243c4(0x1c6), _0x52a03a = readFlag(_0x2a6cda, _0x3243c4(0x1f7)), _0x1626e4 = readFlag(_0x2a6cda, _0x3243c4(0x1fd)), _0x499597 = readFlag(_0x2a6cda, '--worker-mode-enabled'), _0x17b460 = readFlag(_0x2a6cda, _0x3243c4(0x15f)), _0x46a050 = readFlag(_0x2a6cda, _0x3243c4(_0x2f3136._0x39845a)), _0x48368e = _0x2a6cda['includes'](_0x3243c4(0x21a)), _0x134a03 = _0x2abf0f === void 0x0 ? void 0x0 : Number[_0x3243c4(0x1ea)](_0x2abf0f, 0xa);
2441
- if (!_0x5802b8)
2442
- throw new Error(_0x3243c4(0x1d3));
2443
- if (!_0x3bd29d)
2444
- throw new Error(_0x3243c4(_0x2f3136._0x27d99e));
2445
- if (_0x2abf0f !== void 0x0 && (_0x134a03 === void 0x0 || !Number[_0x3243c4(_0x2f3136._0x45ec86)](_0x134a03) || _0x134a03 < 0x0))
2446
- throw new Error(_0x3243c4(0x269));
2393
+ function parseChatBridgeArgs(_0xd931a7) {
2394
+ const _0x44058d = {
2395
+ _0x5ead58: 0x18a,
2396
+ _0x148463: 0x1ac,
2397
+ _0x269156: 0x290,
2398
+ _0x4d0a07: 0x2a2
2399
+ }, _0x273842 = _0x5e54a5, _0x5eabe1 = readFlag(_0xd931a7, _0x273842(_0x44058d._0x5ead58)), _0x4cb0dc = readFlag(_0xd931a7, _0x273842(0x28b)), _0x1afe93 = readFlag(_0xd931a7, '--daemon-api-key'), _0x9a05ff = readFlag(_0xd931a7, '--initial-last-seen-seq'), _0x244e09 = readFlag(_0xd931a7, _0x273842(0x162)) ?? 'http://localhost:8121', _0x188d5b = readFlag(_0xd931a7, _0x273842(_0x44058d._0x148463)), _0x17a196 = readFlag(_0xd931a7, '--session-id'), _0x24478f = readFlag(_0xd931a7, _0x273842(_0x44058d._0x269156)), _0x4d7f22 = readFlag(_0xd931a7, _0x273842(0x17b)), _0x3eaf0f = readFlag(_0xd931a7, _0x273842(0x17a)), _0x4b8f27 = _0xd931a7[_0x273842(_0x44058d._0x4d0a07)]('--worker-mode'), _0x8238e0 = _0x9a05ff === void 0x0 ? void 0x0 : Number['parseInt'](_0x9a05ff, 0xa);
2400
+ if (!_0x5eabe1)
2401
+ throw new Error('Missing\x20--agent-id');
2402
+ if (!_0x1afe93)
2403
+ throw new Error('Missing\x20--daemon-api-key');
2404
+ if (_0x9a05ff !== void 0x0 && (_0x8238e0 === void 0x0 || !Number[_0x273842(0x22c)](_0x8238e0) || _0x8238e0 < 0x0))
2405
+ throw new Error(_0x273842(0x221));
2447
2406
  return {
2448
- 'agentId': _0x5802b8,
2449
- 'attachmentCacheDir': _0x3b73d2,
2450
- 'daemonApiKey': _0x3bd29d,
2451
- 'daemonLocalUrl': _0x52a03a,
2452
- 'initialLastSeenSeq': _0x134a03,
2453
- 'sessionId': _0x1626e4,
2454
- 'serverUrl': _0x42ac50,
2455
- 'workerModeEnabled': _0x499597 === void 0x0 ? void 0x0 : _0x499597 !== _0x3243c4(0x19c),
2456
- 'workerSessionId': _0x17b460,
2457
- 'workerThreadTarget': _0x46a050,
2458
- 'workerMode': _0x48368e
2407
+ 'agentId': _0x5eabe1,
2408
+ 'attachmentCacheDir': _0x4cb0dc,
2409
+ 'daemonApiKey': _0x1afe93,
2410
+ 'daemonLocalUrl': _0x188d5b,
2411
+ 'initialLastSeenSeq': _0x8238e0,
2412
+ 'sessionId': _0x17a196,
2413
+ 'serverUrl': _0x244e09,
2414
+ 'workerModeEnabled': _0x24478f === void 0x0 ? void 0x0 : _0x24478f !== _0x273842(0x23f),
2415
+ 'workerSessionId': _0x4d7f22,
2416
+ 'workerThreadTarget': _0x3eaf0f,
2417
+ 'workerMode': _0x4b8f27
2459
2418
  };
2460
2419
  }
2461
- async function runChatBridgeCli(_0x7ce05e) {
2462
- const _0x3579df = {
2463
- _0x554174: 0x18f,
2464
- _0x594c7d: 0x263,
2465
- _0xf86c0c: 0x186
2466
- }, _0x4c9a97 = _0x51636d, _0x240fc2 = parseChatBridgeArgs(_0x7ce05e), {StdioServerTransport: _0x2ab455} = await import(_0x4c9a97(_0x3579df._0x554174)), _0x1117e3 = createInternalAgentClient(_0x240fc2), _0x352d7c = createAttachmentCache({ 'cacheDir': _0x240fc2[_0x4c9a97(0x14b)] }), _0x511c2d = await createChatBridgeServer({
2467
- 'agentId': _0x240fc2[_0x4c9a97(0x244)],
2468
- 'attachmentCache': _0x352d7c,
2469
- 'client': _0x1117e3,
2470
- 'daemonLocalUrl': _0x240fc2[_0x4c9a97(0x163)],
2420
+ async function runChatBridgeCli(_0x5a9fbf) {
2421
+ const _0x1d6888 = {
2422
+ _0x54b3e7: 0x267,
2423
+ _0x271fb1: 0x205
2424
+ }, _0x2dacd7 = _0x5e54a5, _0x1a2f87 = parseChatBridgeArgs(_0x5a9fbf), {StdioServerTransport: _0x274690} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x5b58f9 = createInternalAgentClient(_0x1a2f87), _0x455f0e = createAttachmentCache({ 'cacheDir': _0x1a2f87[_0x2dacd7(0x2cd)] }), _0x3b87a3 = await createChatBridgeServer({
2425
+ 'agentId': _0x1a2f87['agentId'],
2426
+ 'attachmentCache': _0x455f0e,
2427
+ 'client': _0x5b58f9,
2428
+ 'daemonLocalUrl': _0x1a2f87['daemonLocalUrl'],
2471
2429
  'uploadPreparer': prepareUploadFile,
2472
- 'workerModeEnabled': _0x240fc2['workerModeEnabled'],
2473
- 'workerMode': _0x240fc2['workerMode'],
2474
- 'workerThreadTarget': _0x240fc2[_0x4c9a97(_0x3579df._0x594c7d)]
2430
+ 'workerModeEnabled': _0x1a2f87[_0x2dacd7(0x227)],
2431
+ 'workerMode': _0x1a2f87[_0x2dacd7(_0x1d6888._0x54b3e7)],
2432
+ 'workerThreadTarget': _0x1a2f87[_0x2dacd7(0x1c5)]
2475
2433
  });
2476
- await _0x511c2d[_0x4c9a97(0x204)][_0x4c9a97(_0x3579df._0xf86c0c)](new _0x2ab455());
2434
+ await _0x3b87a3[_0x2dacd7(_0x1d6888._0x271fb1)][_0x2dacd7(0x29d)](new _0x274690());
2477
2435
  }
2478
- var executedAsEntry = process[_0x51636d(0x1f1)][0x1] ? import.meta.url === pathToFileURL(process[_0x51636d(0x1f1)][0x1])['href'] : ![];
2479
- executedAsEntry && await runChatBridgeCli(process[_0x51636d(0x1f1)]['slice'](0x2));
2436
+ var executedAsEntry = process[_0x5e54a5(0x2e4)][0x1] ? import.meta.url === pathToFileURL(process[_0x5e54a5(0x2e4)][0x1])['href'] : ![];
2437
+ executedAsEntry && await runChatBridgeCli(process[_0x5e54a5(0x2e4)][_0x5e54a5(0x2ab)](0x2));
2480
2438
  export {
2481
2439
  createChatBridgeHandlers,
2482
2440
  createChatBridgeServer,