@bellaxchuu/flowred 0.8.6

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 (142) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +214 -0
  3. package/WAProto/GenerateStatics.sh +3 -0
  4. package/WAProto/WAProto.proto +6902 -0
  5. package/WAProto/fix-imports.js +85 -0
  6. package/WAProto/index.js +242946 -0
  7. package/engine-requirements.js +10 -0
  8. package/lib/Defaults/index.js +190 -0
  9. package/lib/Defaults/phonenumber-mcc.json +223 -0
  10. package/lib/Signal/Group/ciphertext-message.js +15 -0
  11. package/lib/Signal/Group/group-session-builder.js +92 -0
  12. package/lib/Signal/Group/group_cipher.js +89 -0
  13. package/lib/Signal/Group/index.js +136 -0
  14. package/lib/Signal/Group/keyhelper.js +73 -0
  15. package/lib/Signal/Group/sender-chain-key.js +32 -0
  16. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  17. package/lib/Signal/Group/sender-key-message.js +69 -0
  18. package/lib/Signal/Group/sender-key-name.js +50 -0
  19. package/lib/Signal/Group/sender-key-record.js +44 -0
  20. package/lib/Signal/Group/sender-key-state.js +97 -0
  21. package/lib/Signal/Group/sender-message-key.js +30 -0
  22. package/lib/Signal/libsignal.js +490 -0
  23. package/lib/Signal/lid-mapping.js +262 -0
  24. package/lib/Socket/Client/index.js +30 -0
  25. package/lib/Socket/Client/types.js +13 -0
  26. package/lib/Socket/Client/websocket.js +62 -0
  27. package/lib/Socket/aigroups.js +240 -0
  28. package/lib/Socket/business.js +422 -0
  29. package/lib/Socket/chats.js +1816 -0
  30. package/lib/Socket/communities.js +549 -0
  31. package/lib/Socket/graphql.js +656 -0
  32. package/lib/Socket/groups.js +764 -0
  33. package/lib/Socket/index.js +39 -0
  34. package/lib/Socket/interactive-handler.js +522 -0
  35. package/lib/Socket/interop.js +549 -0
  36. package/lib/Socket/luxu.js +387 -0
  37. package/lib/Socket/managed-account.js +183 -0
  38. package/lib/Socket/messages-recv.js +2440 -0
  39. package/lib/Socket/messages-send.js +1853 -0
  40. package/lib/Socket/mex.js +60 -0
  41. package/lib/Socket/newsletter.js +820 -0
  42. package/lib/Socket/privacy.js +449 -0
  43. package/lib/Socket/registration.js +427 -0
  44. package/lib/Socket/socket.js +1092 -0
  45. package/lib/Socket/text-router.js +83 -0
  46. package/lib/Socket/username.js +243 -0
  47. package/lib/Store/index.js +36 -0
  48. package/lib/Store/keyed-db.js +108 -0
  49. package/lib/Store/make-cache-manager-store.js +90 -0
  50. package/lib/Store/make-in-memory-store.js +604 -0
  51. package/lib/Store/make-ordered-dictionary.js +81 -0
  52. package/lib/Store/object-repository.js +29 -0
  53. package/lib/Types/Auth.js +38 -0
  54. package/lib/Types/Bussines.js +2 -0
  55. package/lib/Types/Call.js +2 -0
  56. package/lib/Types/Chat.js +4 -0
  57. package/lib/Types/Contact.js +2 -0
  58. package/lib/Types/Events.js +2 -0
  59. package/lib/Types/GroupMetadata.js +2 -0
  60. package/lib/Types/Label.js +27 -0
  61. package/lib/Types/LabelAssociation.js +9 -0
  62. package/lib/Types/Message.js +95 -0
  63. package/lib/Types/Mex.js +112 -0
  64. package/lib/Types/Newsletter.js +121 -0
  65. package/lib/Types/Product.js +2 -0
  66. package/lib/Types/Signal.js +2 -0
  67. package/lib/Types/Socket.js +2 -0
  68. package/lib/Types/State.js +70 -0
  69. package/lib/Types/USync.js +2 -0
  70. package/lib/Types/index.js +55 -0
  71. package/lib/Utils/auth-utils.js +306 -0
  72. package/lib/Utils/browser-utils.js +114 -0
  73. package/lib/Utils/business.js +247 -0
  74. package/lib/Utils/chat-utils.js +1208 -0
  75. package/lib/Utils/command-loader.js +100 -0
  76. package/lib/Utils/companion-reg-client-utils.js +42 -0
  77. package/lib/Utils/consumer-application.js +107 -0
  78. package/lib/Utils/crypto.js +155 -0
  79. package/lib/Utils/curve25519-js.js +275 -0
  80. package/lib/Utils/decode-wa-message.js +560 -0
  81. package/lib/Utils/event-buffer.js +607 -0
  82. package/lib/Utils/generics.js +563 -0
  83. package/lib/Utils/group-history.js +60 -0
  84. package/lib/Utils/history.js +244 -0
  85. package/lib/Utils/identity-change-handler.js +52 -0
  86. package/lib/Utils/index.js +57 -0
  87. package/lib/Utils/jid-display-normalization.js +218 -0
  88. package/lib/Utils/link-preview.js +143 -0
  89. package/lib/Utils/logger.js +9 -0
  90. package/lib/Utils/lt-hash.js +39 -0
  91. package/lib/Utils/make-mutex.js +36 -0
  92. package/lib/Utils/message-composer.js +479 -0
  93. package/lib/Utils/message-retry-manager.js +270 -0
  94. package/lib/Utils/messages-media.js +896 -0
  95. package/lib/Utils/messages.js +2904 -0
  96. package/lib/Utils/meta-ai-msmsg.js +262 -0
  97. package/lib/Utils/native-bridge.js +82 -0
  98. package/lib/Utils/noise-handler.js +196 -0
  99. package/lib/Utils/offline-node-processor.js +42 -0
  100. package/lib/Utils/pre-key-manager.js +107 -0
  101. package/lib/Utils/process-message.js +1048 -0
  102. package/lib/Utils/reporting-utils.js +262 -0
  103. package/lib/Utils/session-pool.js +94 -0
  104. package/lib/Utils/signal.js +224 -0
  105. package/lib/Utils/stanza-ack.js +40 -0
  106. package/lib/Utils/sticker.js +145 -0
  107. package/lib/Utils/sync-action-utils.js +54 -0
  108. package/lib/Utils/tc-token-utils.js +161 -0
  109. package/lib/Utils/use-multi-file-auth-state.js +121 -0
  110. package/lib/Utils/validate-connection.js +219 -0
  111. package/lib/Utils/view-once-cache.js +79 -0
  112. package/lib/Utils/voip-rekey.js +22 -0
  113. package/lib/WABinary/constants.js +1304 -0
  114. package/lib/WABinary/decode.js +343 -0
  115. package/lib/WABinary/encode.js +228 -0
  116. package/lib/WABinary/generic-utils.js +240 -0
  117. package/lib/WABinary/index.js +33 -0
  118. package/lib/WABinary/jid-utils.js +361 -0
  119. package/lib/WABinary/types.js +2 -0
  120. package/lib/WAM/BinaryInfo.js +13 -0
  121. package/lib/WAM/constants.js +39486 -0
  122. package/lib/WAM/encode.js +142 -0
  123. package/lib/WAM/index.js +31 -0
  124. package/lib/WAUSync/Protocols/USyncBotProfileProtocol.js +55 -0
  125. package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +43 -0
  126. package/lib/WAUSync/Protocols/USyncContactProtocol.js +54 -0
  127. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +57 -0
  128. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +30 -0
  129. package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +59 -0
  130. package/lib/WAUSync/Protocols/USyncLIDProtocol.js +31 -0
  131. package/lib/WAUSync/Protocols/USyncPictureProtocol.js +32 -0
  132. package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +29 -0
  133. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +39 -0
  134. package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +38 -0
  135. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +27 -0
  136. package/lib/WAUSync/Protocols/index.js +39 -0
  137. package/lib/WAUSync/USyncQuery.js +133 -0
  138. package/lib/WAUSync/USyncUser.js +50 -0
  139. package/lib/WAUSync/index.js +31 -0
  140. package/lib/antiban.js +4637 -0
  141. package/lib/index.js +45 -0
  142. package/package.json +107 -0
@@ -0,0 +1,1304 @@
1
+ 'use strict'
2
+ Object.defineProperty(exports, '__esModule', { value: true })
3
+ exports.TOKEN_MAP = exports.SINGLE_BYTE_TOKENS = exports.DOUBLE_BYTE_TOKENS = exports.TAGS = void 0
4
+ exports.TAGS = {
5
+ LIST_EMPTY: 0,
6
+ DICTIONARY_0: 236,
7
+ DICTIONARY_1: 237,
8
+ DICTIONARY_2: 238,
9
+ DICTIONARY_3: 239,
10
+ INTEROP_JID_TUPLE: 244,
11
+ INTEROP_JID: 245,
12
+ FB_JID: 246,
13
+ AD_JID: 247,
14
+ LIST_8: 248,
15
+ LIST_16: 249,
16
+ JID_PAIR: 250,
17
+ HEX_8: 251,
18
+ BINARY_8: 252,
19
+ BINARY_20: 253,
20
+ BINARY_32: 254,
21
+ NIBBLE_8: 255,
22
+ PACKED_MAX: 127
23
+ }
24
+ exports.DOUBLE_BYTE_TOKENS = [
25
+ [
26
+ 'read-self',
27
+ 'active',
28
+ 'fbns',
29
+ 'protocol',
30
+ 'reaction',
31
+ 'screen_width',
32
+ 'heartbeat',
33
+ 'deviceid',
34
+ '2:47DEQpj8',
35
+ 'uploadfieldstat',
36
+ 'voip_settings',
37
+ 'retry',
38
+ 'priority',
39
+ 'longitude',
40
+ 'conflict',
41
+ 'false',
42
+ 'ig_professional',
43
+ 'replaced',
44
+ 'preaccept',
45
+ 'cover_photo',
46
+ 'uncompressed',
47
+ 'encopt',
48
+ 'ppic',
49
+ '04',
50
+ 'passive',
51
+ 'status-revoke-drop',
52
+ 'keygen',
53
+ '540',
54
+ 'offer',
55
+ 'rate',
56
+ 'opus',
57
+ 'latitude',
58
+ 'w:gp2',
59
+ 'ver',
60
+ '4',
61
+ 'business_profile',
62
+ 'medium',
63
+ 'sender',
64
+ 'prev_v_id',
65
+ 'email',
66
+ 'website',
67
+ 'invited',
68
+ 'sign_credential',
69
+ '05',
70
+ 'transport',
71
+ 'skey',
72
+ 'reason',
73
+ 'peer_abtest_bucket',
74
+ 'America/Sao_Paulo',
75
+ 'appid',
76
+ 'refresh',
77
+ '100',
78
+ '06',
79
+ '404',
80
+ '101',
81
+ '104',
82
+ '107',
83
+ '102',
84
+ '109',
85
+ '103',
86
+ 'member_add_mode',
87
+ '105',
88
+ 'transaction-id',
89
+ '110',
90
+ '106',
91
+ 'outgoing',
92
+ '108',
93
+ '111',
94
+ 'tokens',
95
+ 'followers',
96
+ 'ig_handle',
97
+ 'self_pid',
98
+ 'tue',
99
+ 'dec',
100
+ 'thu',
101
+ 'joinable',
102
+ 'peer_pid',
103
+ 'mon',
104
+ 'features',
105
+ 'wed',
106
+ 'peer_device_presence',
107
+ 'pn',
108
+ 'delete',
109
+ '07',
110
+ 'fri',
111
+ 'audio_duration',
112
+ 'admin',
113
+ 'connected',
114
+ 'delta',
115
+ 'rcat',
116
+ 'disable',
117
+ 'collection',
118
+ '08',
119
+ '480',
120
+ 'sat',
121
+ 'phash',
122
+ 'all',
123
+ 'invite',
124
+ 'accept',
125
+ 'critical_unblock_low',
126
+ 'group_update',
127
+ 'signed_credential',
128
+ 'blinded_credential',
129
+ 'eph_setting',
130
+ 'net',
131
+ '09',
132
+ 'background_location',
133
+ 'refresh_id',
134
+ 'Asia/Kolkata',
135
+ 'privacy_mode_ts',
136
+ 'account_sync',
137
+ 'voip_payload_type',
138
+ 'service_areas',
139
+ 'acs_public_key',
140
+ 'v_id',
141
+ '0a',
142
+ 'fallback_class',
143
+ 'relay',
144
+ 'actual_actors',
145
+ 'metadata',
146
+ 'w:biz',
147
+ '5',
148
+ 'connected-limit',
149
+ 'notice',
150
+ '0b',
151
+ 'host_storage',
152
+ 'fb_page',
153
+ 'subject',
154
+ 'privatestats',
155
+ 'invis',
156
+ 'groupadd',
157
+ '010',
158
+ 'note.m4r',
159
+ 'uuid',
160
+ '0c',
161
+ '8000',
162
+ 'sun',
163
+ '372',
164
+ '1020',
165
+ 'stage',
166
+ '1200',
167
+ '720',
168
+ 'canonical',
169
+ 'fb',
170
+ '011',
171
+ 'video_duration',
172
+ '0d',
173
+ '1140',
174
+ 'superadmin',
175
+ '012',
176
+ 'Opening.m4r',
177
+ 'keystore_attestation',
178
+ 'dleq_proof',
179
+ '013',
180
+ 'timestamp',
181
+ 'ab_key',
182
+ 'w:sync:app:state',
183
+ '0e',
184
+ 'vertical',
185
+ '600',
186
+ 'p_v_id',
187
+ '6',
188
+ 'likes',
189
+ '014',
190
+ '500',
191
+ '1260',
192
+ 'creator',
193
+ '0f',
194
+ 'rte',
195
+ 'destination',
196
+ 'group',
197
+ 'group_info',
198
+ 'syncd_anti_tampering_fatal_exception_enabled',
199
+ '015',
200
+ 'dl_bw',
201
+ 'Asia/Jakarta',
202
+ 'vp8/h.264',
203
+ 'online',
204
+ '1320',
205
+ 'fb:multiway',
206
+ '10',
207
+ 'timeout',
208
+ '016',
209
+ 'nse_retry',
210
+ 'urn:xmpp:whatsapp:dirty',
211
+ '017',
212
+ 'a_v_id',
213
+ 'web_shops_chat_header_button_enabled',
214
+ 'nse_call',
215
+ 'inactive-upgrade',
216
+ 'none',
217
+ 'web',
218
+ 'groups',
219
+ '2250',
220
+ 'mms_hot_content_timespan_in_seconds',
221
+ 'contact_blacklist',
222
+ 'nse_read',
223
+ 'suspended_group_deletion_notification',
224
+ 'binary_version',
225
+ '018',
226
+ 'https://www.whatsapp.com/otp/copy/',
227
+ 'reg_push',
228
+ 'shops_hide_catalog_attachment_entrypoint',
229
+ 'server_sync',
230
+ '.',
231
+ 'ephemeral_messages_allowed_values',
232
+ '019',
233
+ 'mms_vcache_aggregation_enabled',
234
+ 'iphone',
235
+ 'America/Argentina/Buenos_Aires',
236
+ '01a',
237
+ 'mms_vcard_autodownload_size_kb',
238
+ 'nse_ver',
239
+ 'shops_header_dropdown_menu_item',
240
+ 'dhash',
241
+ 'catalog_status',
242
+ 'communities_mvp_new_iqs_serverprop',
243
+ 'blocklist',
244
+ 'default',
245
+ '11',
246
+ 'ephemeral_messages_enabled',
247
+ '01b',
248
+ 'original_dimensions',
249
+ '8',
250
+ 'mms4_media_retry_notification_encryption_enabled',
251
+ 'mms4_server_error_receipt_encryption_enabled',
252
+ 'original_image_url',
253
+ 'sync',
254
+ 'multiway',
255
+ '420',
256
+ 'companion_enc_static',
257
+ 'shops_profile_drawer_entrypoint',
258
+ '01c',
259
+ 'vcard_as_document_size_kb',
260
+ 'status_video_max_duration',
261
+ 'request_image_url',
262
+ '01d',
263
+ 'regular_high',
264
+ 's_t',
265
+ 'abt',
266
+ 'share_ext_min_preliminary_image_quality',
267
+ '01e',
268
+ '32',
269
+ 'syncd_key_rotation_enabled',
270
+ 'data_namespace',
271
+ 'md_downgrade_read_receipts2',
272
+ 'patch',
273
+ 'polltype',
274
+ 'ephemeral_messages_setting',
275
+ 'userrate',
276
+ '15',
277
+ 'partial_pjpeg_bw_threshold',
278
+ 'played-self',
279
+ 'catalog_exists',
280
+ '01f',
281
+ 'mute_v2'
282
+ ],
283
+ [
284
+ 'reject',
285
+ 'dirty',
286
+ 'announcement',
287
+ '020',
288
+ '13',
289
+ '9',
290
+ 'status_video_max_bitrate',
291
+ 'fb:thrift_iq',
292
+ 'offline_batch',
293
+ '022',
294
+ 'full',
295
+ 'ctwa_first_business_reply_logging',
296
+ 'h.264',
297
+ 'smax_id',
298
+ 'group_description_length',
299
+ 'https://www.whatsapp.com/otp/code',
300
+ 'status_image_max_edge',
301
+ 'smb_upsell_business_profile_enabled',
302
+ '021',
303
+ 'web_upgrade_to_md_modal',
304
+ '14',
305
+ '023',
306
+ 's_o',
307
+ 'smaller_video_thumbs_status_enabled',
308
+ 'media_max_autodownload',
309
+ '960',
310
+ 'blocking_status',
311
+ 'peer_msg',
312
+ 'joinable_group_call_client_version',
313
+ 'group_call_video_maximization_enabled',
314
+ 'return_snapshot',
315
+ 'high',
316
+ 'America/Mexico_City',
317
+ 'entry_point_block_logging_enabled',
318
+ 'pop',
319
+ '024',
320
+ '1050',
321
+ '16',
322
+ '1380',
323
+ 'one_tap_calling_in_group_chat_size',
324
+ 'regular_low',
325
+ 'inline_joinable_education_enabled',
326
+ 'hq_image_max_edge',
327
+ 'locked',
328
+ 'America/Bogota',
329
+ 'smb_biztools_deeplink_enabled',
330
+ 'status_image_quality',
331
+ '1088',
332
+ '025',
333
+ 'payments_upi_intent_transaction_limit',
334
+ 'voip',
335
+ 'w:g2',
336
+ '027',
337
+ 'md_pin_chat_enabled',
338
+ '026',
339
+ 'multi_scan_pjpeg_download_enabled',
340
+ 'shops_product_grid',
341
+ 'transaction_id',
342
+ 'ctwa_context_enabled',
343
+ '20',
344
+ 'fna',
345
+ 'hq_image_quality',
346
+ 'alt_jpeg_doc_detection_quality',
347
+ 'group_call_max_participants',
348
+ 'pkey',
349
+ 'America/Belem',
350
+ 'image_max_kbytes',
351
+ 'web_cart_v1_1_order_message_changes_enabled',
352
+ 'ctwa_context_enterprise_enabled',
353
+ 'urn:xmpp:whatsapp:account',
354
+ '840',
355
+ 'Asia/Kuala_Lumpur',
356
+ 'max_participants',
357
+ 'video_remux_after_repair_enabled',
358
+ 'stella_addressbook_restriction_type',
359
+ '660',
360
+ '900',
361
+ '780',
362
+ 'context_menu_ios13_enabled',
363
+ 'mute-state',
364
+ 'ref',
365
+ 'payments_request_messages',
366
+ '029',
367
+ 'frskmsg',
368
+ 'vcard_max_size_kb',
369
+ 'sample_buffer_gif_player_enabled',
370
+ 'match_last_seen',
371
+ '510',
372
+ '4983',
373
+ 'video_max_bitrate',
374
+ '028',
375
+ 'w:comms:chat',
376
+ '17',
377
+ 'frequently_forwarded_max',
378
+ 'groups_privacy_blacklist',
379
+ 'Asia/Karachi',
380
+ '02a',
381
+ 'web_download_document_thumb_mms_enabled',
382
+ '02b',
383
+ 'hist_sync',
384
+ 'biz_block_reasons_version',
385
+ '1024',
386
+ '18',
387
+ 'web_is_direct_connection_for_plm_transparent',
388
+ 'view_once_write',
389
+ 'file_max_size',
390
+ 'paid_convo_id',
391
+ 'online_privacy_setting',
392
+ 'video_max_edge',
393
+ 'view_once_read',
394
+ 'enhanced_storage_management',
395
+ 'multi_scan_pjpeg_encoding_enabled',
396
+ 'ctwa_context_forward_enabled',
397
+ 'video_transcode_downgrade_enable',
398
+ 'template_doc_mime_types',
399
+ 'hq_image_bw_threshold',
400
+ '30',
401
+ 'body',
402
+ 'u_aud_limit_sil_restarts_ctrl',
403
+ 'other',
404
+ 'participating',
405
+ 'w:biz:directory',
406
+ '1110',
407
+ 'vp8',
408
+ '4018',
409
+ 'meta',
410
+ 'doc_detection_image_max_edge',
411
+ 'image_quality',
412
+ '1170',
413
+ '02c',
414
+ 'smb_upsell_chat_banner_enabled',
415
+ 'key_expiry_time_second',
416
+ 'pid',
417
+ 'stella_interop_enabled',
418
+ '19',
419
+ 'linked_device_max_count',
420
+ 'md_device_sync_enabled',
421
+ '02d',
422
+ '02e',
423
+ '360',
424
+ 'enhanced_block_enabled',
425
+ 'ephemeral_icon_in_forwarding',
426
+ 'paid_convo_status',
427
+ 'gif_provider',
428
+ 'project_name',
429
+ 'server-error',
430
+ 'canonical_url_validation_enabled',
431
+ 'wallpapers_v2',
432
+ 'syncd_clear_chat_delete_chat_enabled',
433
+ 'medianotify',
434
+ '02f',
435
+ 'shops_required_tos_version',
436
+ 'vote',
437
+ 'reset_skey_on_id_change',
438
+ '030',
439
+ 'image_max_edge',
440
+ 'multicast_limit_global',
441
+ 'ul_bw',
442
+ '21',
443
+ '25',
444
+ '5000',
445
+ 'poll',
446
+ '570',
447
+ '22',
448
+ '031',
449
+ '1280',
450
+ 'WhatsApp',
451
+ '032',
452
+ 'bloks_shops_enabled',
453
+ '50',
454
+ 'upload_host_switching_enabled',
455
+ 'web_ctwa_context_compose_enabled',
456
+ 'ptt_forwarded_features_enabled',
457
+ 'unblocked',
458
+ 'partial_pjpeg_enabled',
459
+ 'fbid:devices',
460
+ 'height',
461
+ 'ephemeral_group_query_ts',
462
+ 'group_join_permissions',
463
+ 'order',
464
+ '033',
465
+ 'alt_jpeg_status_quality',
466
+ 'migrate',
467
+ 'popular-bank',
468
+ 'win_uwp_deprecation_killswitch_enabled',
469
+ 'web_download_status_thumb_mms_enabled',
470
+ 'blocking',
471
+ 'url_text',
472
+ '035',
473
+ 'web_forwarding_limit_to_groups',
474
+ '1600',
475
+ 'val',
476
+ '1000',
477
+ 'syncd_msg_date_enabled',
478
+ 'bank-ref-id',
479
+ 'max_subject',
480
+ 'payments_web_enabled',
481
+ 'web_upload_document_thumb_mms_enabled',
482
+ 'size',
483
+ 'request',
484
+ 'ephemeral',
485
+ '24',
486
+ 'receipt_agg',
487
+ 'ptt_remember_play_position',
488
+ 'sampling_weight',
489
+ 'enc_rekey',
490
+ 'mute_always',
491
+ '037',
492
+ '034',
493
+ '23',
494
+ '036',
495
+ 'action',
496
+ 'click_to_chat_qr_enabled',
497
+ 'width',
498
+ 'disabled',
499
+ '038',
500
+ 'md_blocklist_v2',
501
+ 'played_self_enabled',
502
+ 'web_buttons_message_enabled',
503
+ 'flow_id',
504
+ 'clear',
505
+ '450',
506
+ 'fbid:thread',
507
+ 'bloks_session_state',
508
+ 'America/Lima',
509
+ 'attachment_picker_refresh',
510
+ 'download_host_switching_enabled',
511
+ '1792',
512
+ 'u_aud_limit_sil_restarts_test2',
513
+ 'custom_urls',
514
+ 'device_fanout',
515
+ 'optimistic_upload',
516
+ '2000',
517
+ 'key_cipher_suite',
518
+ 'web_smb_upsell_in_biz_profile_enabled',
519
+ 'e',
520
+ '039',
521
+ 'siri_post_status_shortcut',
522
+ 'pair-device',
523
+ 'lg',
524
+ 'lc',
525
+ 'stream_attribution_url',
526
+ 'model',
527
+ 'mspjpeg_phash_gen',
528
+ 'catalog_send_all',
529
+ 'new_multi_vcards_ui',
530
+ 'share_biz_vcard_enabled',
531
+ '-',
532
+ 'clean',
533
+ '200',
534
+ 'md_blocklist_v2_server',
535
+ '03b',
536
+ '03a',
537
+ 'web_md_migration_experience',
538
+ 'ptt_conversation_waveform',
539
+ 'u_aud_limit_sil_restarts_test1'
540
+ ],
541
+ [
542
+ '64',
543
+ 'ptt_playback_speed_enabled',
544
+ 'web_product_list_message_enabled',
545
+ 'paid_convo_ts',
546
+ '27',
547
+ 'manufacturer',
548
+ 'psp-routing',
549
+ 'grp_uii_cleanup',
550
+ 'ptt_draft_enabled',
551
+ '03c',
552
+ 'business_initiated',
553
+ 'web_catalog_products_onoff',
554
+ 'web_upload_link_thumb_mms_enabled',
555
+ '03e',
556
+ 'mediaretry',
557
+ '35',
558
+ 'hfm_string_changes',
559
+ '28',
560
+ 'America/Fortaleza',
561
+ 'max_keys',
562
+ 'md_mhfs_days',
563
+ 'streaming_upload_chunk_size',
564
+ '5541',
565
+ '040',
566
+ '03d',
567
+ '2675',
568
+ '03f',
569
+ '...',
570
+ '512',
571
+ 'mute',
572
+ '48',
573
+ '041',
574
+ 'alt_jpeg_quality',
575
+ '60',
576
+ '042',
577
+ 'md_smb_quick_reply',
578
+ '5183',
579
+ 'c',
580
+ '1343',
581
+ '40',
582
+ '1230',
583
+ '043',
584
+ '044',
585
+ 'mms_cat_v1_forward_hot_override_enabled',
586
+ 'user_notice',
587
+ 'ptt_waveform_send',
588
+ '047',
589
+ 'Asia/Calcutta',
590
+ '250',
591
+ 'md_privacy_v2',
592
+ '31',
593
+ '29',
594
+ '128',
595
+ 'md_messaging_enabled',
596
+ '046',
597
+ 'crypto',
598
+ '690',
599
+ '045',
600
+ 'enc_iv',
601
+ '75',
602
+ 'failure',
603
+ 'ptt_oot_playback',
604
+ 'AIzaSyDR5yfaG7OG8sMTUj8kfQEb8T9pN8BM6Lk',
605
+ 'w',
606
+ '048',
607
+ '2201',
608
+ 'web_large_files_ui',
609
+ 'Asia/Makassar',
610
+ '812',
611
+ 'status_collapse_muted',
612
+ '1334',
613
+ '257',
614
+ '2HP4dm',
615
+ '049',
616
+ 'patches',
617
+ '1290',
618
+ '43cY6T',
619
+ 'America/Caracas',
620
+ 'web_sticker_maker',
621
+ 'campaign',
622
+ 'ptt_pausable_enabled',
623
+ '33',
624
+ '42',
625
+ 'attestation',
626
+ 'biz',
627
+ '04b',
628
+ 'query_linked',
629
+ 's',
630
+ '125',
631
+ '04a',
632
+ '810',
633
+ 'availability',
634
+ '1411',
635
+ 'responsiveness_v2_m1',
636
+ 'catalog_not_created',
637
+ '34',
638
+ 'America/Santiago',
639
+ '1465',
640
+ 'enc_p',
641
+ '04d',
642
+ 'status_info',
643
+ '04f',
644
+ 'key_version',
645
+ '..',
646
+ '04c',
647
+ '04e',
648
+ 'md_group_notification',
649
+ '1598',
650
+ '1215',
651
+ 'web_cart_enabled',
652
+ '37',
653
+ '630',
654
+ '1920',
655
+ '2394',
656
+ '-1',
657
+ 'vcard',
658
+ '38',
659
+ 'elapsed',
660
+ '36',
661
+ '828',
662
+ 'peer',
663
+ 'pricing_category',
664
+ '1245',
665
+ 'invalid',
666
+ 'stella_ios_enabled',
667
+ '2687',
668
+ '45',
669
+ '1528',
670
+ '39',
671
+ 'u_is_redial_audio_1104_ctrl',
672
+ '1025',
673
+ '1455',
674
+ '58',
675
+ '2524',
676
+ '2603',
677
+ '054',
678
+ 'bsp_system_message_enabled',
679
+ 'web_pip_redesign',
680
+ '051',
681
+ 'verify_apps',
682
+ '1974',
683
+ '1272',
684
+ '1322',
685
+ '1755',
686
+ '052',
687
+ '70',
688
+ '050',
689
+ '1063',
690
+ '1135',
691
+ '1361',
692
+ '80',
693
+ '1096',
694
+ '1828',
695
+ '1851',
696
+ '1251',
697
+ '1921',
698
+ 'key_config_id',
699
+ '1254',
700
+ '1566',
701
+ '1252',
702
+ '2525',
703
+ 'critical_block',
704
+ '1669',
705
+ 'max_available',
706
+ 'w:auth:backup:token',
707
+ 'product',
708
+ '2530',
709
+ '870',
710
+ '1022',
711
+ 'participant_uuid',
712
+ 'web_cart_on_off',
713
+ '1255',
714
+ '1432',
715
+ '1867',
716
+ '41',
717
+ '1415',
718
+ '1440',
719
+ '240',
720
+ '1204',
721
+ '1608',
722
+ '1690',
723
+ '1846',
724
+ '1483',
725
+ '1687',
726
+ '1749',
727
+ '69',
728
+ 'url_number',
729
+ '053',
730
+ '1325',
731
+ '1040',
732
+ '365',
733
+ '59',
734
+ 'Asia/Riyadh',
735
+ '1177',
736
+ 'test_recommended',
737
+ '057',
738
+ '1612',
739
+ '43',
740
+ '1061',
741
+ '1518',
742
+ '1635',
743
+ '055',
744
+ '1034',
745
+ '1375',
746
+ '750',
747
+ '1430',
748
+ 'event_code',
749
+ '1682',
750
+ '503',
751
+ '55',
752
+ '865',
753
+ '78',
754
+ '1309',
755
+ '1365',
756
+ '44',
757
+ 'America/Guayaquil',
758
+ '535',
759
+ 'LIMITED',
760
+ '1377',
761
+ '1613',
762
+ '1420',
763
+ '1599',
764
+ '1822',
765
+ '05a',
766
+ '1681',
767
+ 'password',
768
+ '1111',
769
+ '1214',
770
+ '1376',
771
+ '1478',
772
+ '47',
773
+ '1082',
774
+ '4282',
775
+ 'Europe/Istanbul',
776
+ '1307',
777
+ '46',
778
+ '058',
779
+ '1124',
780
+ '256',
781
+ 'rate-overlimit',
782
+ 'retail',
783
+ 'u_a_socket_err_fix_succ_test',
784
+ '1292',
785
+ '1370',
786
+ '1388',
787
+ '520',
788
+ '861',
789
+ 'psa',
790
+ 'regular',
791
+ '1181',
792
+ '1766',
793
+ '05b',
794
+ '1183',
795
+ '1213',
796
+ '1304',
797
+ '1537'
798
+ ],
799
+ [
800
+ '1724',
801
+ 'profile_picture',
802
+ '1071',
803
+ '1314',
804
+ '1605',
805
+ '407',
806
+ '990',
807
+ '1710',
808
+ '746',
809
+ 'pricing_model',
810
+ '056',
811
+ '059',
812
+ '061',
813
+ '1119',
814
+ '6027',
815
+ '65',
816
+ '877',
817
+ '1607',
818
+ '05d',
819
+ '917',
820
+ 'seen',
821
+ '1516',
822
+ '49',
823
+ '470',
824
+ '973',
825
+ '1037',
826
+ '1350',
827
+ '1394',
828
+ '1480',
829
+ '1796',
830
+ 'keys',
831
+ '794',
832
+ '1536',
833
+ '1594',
834
+ '2378',
835
+ '1333',
836
+ '1524',
837
+ '1825',
838
+ '116',
839
+ '309',
840
+ '52',
841
+ '808',
842
+ '827',
843
+ '909',
844
+ '495',
845
+ '1660',
846
+ '361',
847
+ '957',
848
+ 'google',
849
+ '1357',
850
+ '1565',
851
+ '1967',
852
+ '996',
853
+ '1775',
854
+ '586',
855
+ '736',
856
+ '1052',
857
+ '1670',
858
+ 'bank',
859
+ '177',
860
+ '1416',
861
+ '2194',
862
+ '2222',
863
+ '1454',
864
+ '1839',
865
+ '1275',
866
+ '53',
867
+ '997',
868
+ '1629',
869
+ '6028',
870
+ 'smba',
871
+ '1378',
872
+ '1410',
873
+ '05c',
874
+ '1849',
875
+ '727',
876
+ 'create',
877
+ '1559',
878
+ '536',
879
+ '1106',
880
+ '1310',
881
+ '1944',
882
+ '670',
883
+ '1297',
884
+ '1316',
885
+ '1762',
886
+ 'en',
887
+ '1148',
888
+ '1295',
889
+ '1551',
890
+ '1853',
891
+ '1890',
892
+ '1208',
893
+ '1784',
894
+ '7200',
895
+ '05f',
896
+ '178',
897
+ '1283',
898
+ '1332',
899
+ '381',
900
+ '643',
901
+ '1056',
902
+ '1238',
903
+ '2024',
904
+ '2387',
905
+ '179',
906
+ '981',
907
+ '1547',
908
+ '1705',
909
+ '05e',
910
+ '290',
911
+ '903',
912
+ '1069',
913
+ '1285',
914
+ '2436',
915
+ '062',
916
+ '251',
917
+ '560',
918
+ '582',
919
+ '719',
920
+ '56',
921
+ '1700',
922
+ '2321',
923
+ '325',
924
+ '448',
925
+ '613',
926
+ '777',
927
+ '791',
928
+ '51',
929
+ '488',
930
+ '902',
931
+ 'Asia/Almaty',
932
+ 'is_hidden',
933
+ '1398',
934
+ '1527',
935
+ '1893',
936
+ '1999',
937
+ '2367',
938
+ '2642',
939
+ '237',
940
+ 'busy',
941
+ '065',
942
+ '067',
943
+ '233',
944
+ '590',
945
+ '993',
946
+ '1511',
947
+ '54',
948
+ '723',
949
+ '860',
950
+ '363',
951
+ '487',
952
+ '522',
953
+ '605',
954
+ '995',
955
+ '1321',
956
+ '1691',
957
+ '1865',
958
+ '2447',
959
+ '2462',
960
+ 'NON_TRANSACTIONAL',
961
+ '433',
962
+ '871',
963
+ '432',
964
+ '1004',
965
+ '1207',
966
+ '2032',
967
+ '2050',
968
+ '2379',
969
+ '2446',
970
+ '279',
971
+ '636',
972
+ '703',
973
+ '904',
974
+ '248',
975
+ '370',
976
+ '691',
977
+ '700',
978
+ '1068',
979
+ '1655',
980
+ '2334',
981
+ '060',
982
+ '063',
983
+ '364',
984
+ '533',
985
+ '534',
986
+ '567',
987
+ '1191',
988
+ '1210',
989
+ '1473',
990
+ '1827',
991
+ '069',
992
+ '701',
993
+ '2531',
994
+ '514',
995
+ 'prev_dhash',
996
+ '064',
997
+ '496',
998
+ '790',
999
+ '1046',
1000
+ '1139',
1001
+ '1505',
1002
+ '1521',
1003
+ '1108',
1004
+ '207',
1005
+ '544',
1006
+ '637',
1007
+ 'final',
1008
+ '1173',
1009
+ '1293',
1010
+ '1694',
1011
+ '1939',
1012
+ '1951',
1013
+ '1993',
1014
+ '2353',
1015
+ '2515',
1016
+ '504',
1017
+ '601',
1018
+ '857',
1019
+ 'modify',
1020
+ 'spam_request',
1021
+ 'p_121_aa_1101_test4',
1022
+ '866',
1023
+ '1427',
1024
+ '1502',
1025
+ '1638',
1026
+ '1744',
1027
+ '2153',
1028
+ '068',
1029
+ '382',
1030
+ '725',
1031
+ '1704',
1032
+ '1864',
1033
+ '1990',
1034
+ '2003',
1035
+ 'Asia/Dubai',
1036
+ '508',
1037
+ '531',
1038
+ '1387',
1039
+ '1474',
1040
+ '1632',
1041
+ '2307',
1042
+ '2386',
1043
+ '819',
1044
+ '2014',
1045
+ '066',
1046
+ '387',
1047
+ '1468',
1048
+ '1706',
1049
+ '2186',
1050
+ '2261',
1051
+ '471',
1052
+ '728',
1053
+ '1147',
1054
+ '1372',
1055
+ '1961'
1056
+ ]
1057
+ ]
1058
+ exports.SINGLE_BYTE_TOKENS = [
1059
+ '',
1060
+ 'xmlstreamstart',
1061
+ 'xmlstreamend',
1062
+ 's.whatsapp.net',
1063
+ 'type',
1064
+ 'participant',
1065
+ 'from',
1066
+ 'receipt',
1067
+ 'id',
1068
+ 'notification',
1069
+ 'disappearing_mode',
1070
+ 'status',
1071
+ 'jid',
1072
+ 'broadcast',
1073
+ 'user',
1074
+ 'devices',
1075
+ 'device_hash',
1076
+ 'to',
1077
+ 'offline',
1078
+ 'message',
1079
+ 'result',
1080
+ 'class',
1081
+ 'xmlns',
1082
+ 'duration',
1083
+ 'notify',
1084
+ 'iq',
1085
+ 't',
1086
+ 'ack',
1087
+ 'g.us',
1088
+ 'enc',
1089
+ 'urn:xmpp:whatsapp:push',
1090
+ 'presence',
1091
+ 'config_value',
1092
+ 'picture',
1093
+ 'verified_name',
1094
+ 'config_code',
1095
+ 'key-index-list',
1096
+ 'contact',
1097
+ 'mediatype',
1098
+ 'routing_info',
1099
+ 'edge_routing',
1100
+ 'get',
1101
+ 'read',
1102
+ 'urn:xmpp:ping',
1103
+ 'fallback_hostname',
1104
+ '0',
1105
+ 'chatstate',
1106
+ 'business_hours_config',
1107
+ 'unavailable',
1108
+ 'download_buckets',
1109
+ 'skmsg',
1110
+ 'verified_level',
1111
+ 'composing',
1112
+ 'handshake',
1113
+ 'device-list',
1114
+ 'media',
1115
+ 'text',
1116
+ 'fallback_ip4',
1117
+ 'media_conn',
1118
+ 'device',
1119
+ 'creation',
1120
+ 'location',
1121
+ 'config',
1122
+ 'item',
1123
+ 'fallback_ip6',
1124
+ 'count',
1125
+ 'w:profile:picture',
1126
+ 'image',
1127
+ 'business',
1128
+ '2',
1129
+ 'hostname',
1130
+ 'call-creator',
1131
+ 'display_name',
1132
+ 'relaylatency',
1133
+ 'platform',
1134
+ 'abprops',
1135
+ 'success',
1136
+ 'msg',
1137
+ 'offline_preview',
1138
+ 'prop',
1139
+ 'key-index',
1140
+ 'v',
1141
+ 'day_of_week',
1142
+ 'pkmsg',
1143
+ 'version',
1144
+ '1',
1145
+ 'ping',
1146
+ 'w:p',
1147
+ 'download',
1148
+ 'video',
1149
+ 'set',
1150
+ 'specific_hours',
1151
+ 'props',
1152
+ 'primary',
1153
+ 'unknown',
1154
+ 'hash',
1155
+ 'commerce_experience',
1156
+ 'last',
1157
+ 'subscribe',
1158
+ 'max_buckets',
1159
+ 'call',
1160
+ 'profile',
1161
+ 'member_since_text',
1162
+ 'close_time',
1163
+ 'call-id',
1164
+ 'sticker',
1165
+ 'mode',
1166
+ 'participants',
1167
+ 'value',
1168
+ 'query',
1169
+ 'profile_options',
1170
+ 'open_time',
1171
+ 'code',
1172
+ 'list',
1173
+ 'host',
1174
+ 'ts',
1175
+ 'contacts',
1176
+ 'upload',
1177
+ 'lid',
1178
+ 'preview',
1179
+ 'update',
1180
+ 'usync',
1181
+ 'w:stats',
1182
+ 'delivery',
1183
+ 'auth_ttl',
1184
+ 'context',
1185
+ 'fail',
1186
+ 'cart_enabled',
1187
+ 'appdata',
1188
+ 'category',
1189
+ 'atn',
1190
+ 'direct_connection',
1191
+ 'decrypt-fail',
1192
+ 'relay_id',
1193
+ 'mmg-fallback.whatsapp.net',
1194
+ 'target',
1195
+ 'available',
1196
+ 'name',
1197
+ 'last_id',
1198
+ 'mmg.whatsapp.net',
1199
+ 'categories',
1200
+ '401',
1201
+ 'is_new',
1202
+ 'index',
1203
+ 'tctoken',
1204
+ 'ip4',
1205
+ 'token_id',
1206
+ 'latency',
1207
+ 'recipient',
1208
+ 'edit',
1209
+ 'ip6',
1210
+ 'add',
1211
+ 'thumbnail-document',
1212
+ '26',
1213
+ 'paused',
1214
+ 'true',
1215
+ 'identity',
1216
+ 'stream:error',
1217
+ 'key',
1218
+ 'sidelist',
1219
+ 'background',
1220
+ 'audio',
1221
+ '3',
1222
+ 'thumbnail-image',
1223
+ 'biz-cover-photo',
1224
+ 'cat',
1225
+ 'gcm',
1226
+ 'thumbnail-video',
1227
+ 'error',
1228
+ 'auth',
1229
+ 'deny',
1230
+ 'serial',
1231
+ 'in',
1232
+ 'registration',
1233
+ 'thumbnail-link',
1234
+ 'remove',
1235
+ '00',
1236
+ 'gif',
1237
+ 'thumbnail-gif',
1238
+ 'tag',
1239
+ 'capability',
1240
+ 'multicast',
1241
+ 'item-not-found',
1242
+ 'description',
1243
+ 'business_hours',
1244
+ 'config_expo_key',
1245
+ 'md-app-state',
1246
+ 'expiration',
1247
+ 'fallback',
1248
+ 'ttl',
1249
+ '300',
1250
+ 'md-msg-hist',
1251
+ 'device_orientation',
1252
+ 'out',
1253
+ 'w:m',
1254
+ 'open_24h',
1255
+ 'side_list',
1256
+ 'token',
1257
+ 'inactive',
1258
+ '01',
1259
+ 'document',
1260
+ 'te2',
1261
+ 'played',
1262
+ 'encrypt',
1263
+ 'msgr',
1264
+ 'hide',
1265
+ 'direct_path',
1266
+ '12',
1267
+ 'state',
1268
+ 'not-authorized',
1269
+ 'url',
1270
+ 'terminate',
1271
+ 'signature',
1272
+ 'status-revoke-delay',
1273
+ '02',
1274
+ 'te',
1275
+ 'linked_accounts',
1276
+ 'trusted_contact',
1277
+ 'timezone',
1278
+ 'ptt',
1279
+ 'kyc-id',
1280
+ 'privacy_token',
1281
+ 'readreceipts',
1282
+ 'appointment_only',
1283
+ 'address',
1284
+ 'expected_ts',
1285
+ 'privacy',
1286
+ '7',
1287
+ 'android',
1288
+ 'interactive',
1289
+ 'device-identity',
1290
+ 'enabled',
1291
+ 'attribute_padding',
1292
+ '1080',
1293
+ '03',
1294
+ 'screen_height'
1295
+ ]
1296
+ exports.TOKEN_MAP = {}
1297
+ for (const [i, SINGLE_BYTE_TOKEN] of exports.SINGLE_BYTE_TOKENS.entries()) {
1298
+ exports.TOKEN_MAP[SINGLE_BYTE_TOKEN] = { index: i }
1299
+ }
1300
+ for (const [i, DOUBLE_BYTE_TOKEN] of exports.DOUBLE_BYTE_TOKENS.entries()) {
1301
+ for (const [j, element] of DOUBLE_BYTE_TOKEN.entries()) {
1302
+ exports.TOKEN_MAP[element] = { dict: i, index: j }
1303
+ }
1304
+ }