rezo 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +9 -9
- package/dist/crawler/index.cjs +40 -40
- package/dist/entries/crawler.cjs +4 -4
- package/dist/index.cjs +27 -27
- package/dist/internal/agents/index.cjs +10 -10
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/wget/asset-extractor.cjs +556 -0
- package/dist/wget/asset-extractor.js +553 -0
- package/dist/wget/asset-organizer.cjs +230 -0
- package/dist/wget/asset-organizer.js +227 -0
- package/dist/wget/download-cache.cjs +221 -0
- package/dist/wget/download-cache.js +218 -0
- package/dist/wget/downloader.cjs +607 -0
- package/dist/wget/downloader.js +604 -0
- package/dist/wget/file-writer.cjs +349 -0
- package/dist/wget/file-writer.js +346 -0
- package/dist/wget/filter-lists.cjs +1330 -0
- package/dist/wget/filter-lists.js +1330 -0
- package/dist/wget/index.cjs +633 -0
- package/dist/wget/index.d.ts +8494 -0
- package/dist/wget/index.js +614 -0
- package/dist/wget/link-converter.cjs +342 -0
- package/dist/wget/link-converter.js +339 -0
- package/dist/wget/progress.cjs +271 -0
- package/dist/wget/progress.js +266 -0
- package/dist/wget/resume.cjs +166 -0
- package/dist/wget/resume.js +163 -0
- package/dist/wget/robots.cjs +303 -0
- package/dist/wget/robots.js +300 -0
- package/dist/wget/types.cjs +200 -0
- package/dist/wget/types.js +197 -0
- package/dist/wget/url-filter.cjs +351 -0
- package/dist/wget/url-filter.js +348 -0
- package/package.json +6 -1
|
@@ -0,0 +1,1330 @@
|
|
|
1
|
+
export const EXECUTABLE_EXTENSIONS = [
|
|
2
|
+
".exe",
|
|
3
|
+
".dll",
|
|
4
|
+
".sys",
|
|
5
|
+
".drv",
|
|
6
|
+
".ocx",
|
|
7
|
+
".cpl",
|
|
8
|
+
".scr",
|
|
9
|
+
".bat",
|
|
10
|
+
".cmd",
|
|
11
|
+
".com",
|
|
12
|
+
".msi",
|
|
13
|
+
".msp",
|
|
14
|
+
".msu",
|
|
15
|
+
".cab",
|
|
16
|
+
".pif",
|
|
17
|
+
".gadget",
|
|
18
|
+
".hta",
|
|
19
|
+
".inf",
|
|
20
|
+
".reg",
|
|
21
|
+
".scf",
|
|
22
|
+
".lnk",
|
|
23
|
+
".ws",
|
|
24
|
+
".wsf",
|
|
25
|
+
".wsc",
|
|
26
|
+
".wsh",
|
|
27
|
+
".msc",
|
|
28
|
+
".vbs",
|
|
29
|
+
".vbe",
|
|
30
|
+
".vb",
|
|
31
|
+
".jse",
|
|
32
|
+
".ps1",
|
|
33
|
+
".ps1xml",
|
|
34
|
+
".ps2",
|
|
35
|
+
".ps2xml",
|
|
36
|
+
".psc1",
|
|
37
|
+
".psc2",
|
|
38
|
+
".psm1",
|
|
39
|
+
".psd1",
|
|
40
|
+
".pssc",
|
|
41
|
+
".cdxml",
|
|
42
|
+
".msh",
|
|
43
|
+
".msh1",
|
|
44
|
+
".msh2",
|
|
45
|
+
".mshxml",
|
|
46
|
+
".msh1xml",
|
|
47
|
+
".msh2xml",
|
|
48
|
+
".app",
|
|
49
|
+
".dmg",
|
|
50
|
+
".pkg",
|
|
51
|
+
".mpkg",
|
|
52
|
+
".command",
|
|
53
|
+
".action",
|
|
54
|
+
".workflow",
|
|
55
|
+
".scpt",
|
|
56
|
+
".scptd",
|
|
57
|
+
".applescript",
|
|
58
|
+
".sh",
|
|
59
|
+
".bash",
|
|
60
|
+
".zsh",
|
|
61
|
+
".csh",
|
|
62
|
+
".tcsh",
|
|
63
|
+
".ksh",
|
|
64
|
+
".fish",
|
|
65
|
+
".run",
|
|
66
|
+
".bin",
|
|
67
|
+
".elf",
|
|
68
|
+
".out",
|
|
69
|
+
".so",
|
|
70
|
+
".ko",
|
|
71
|
+
".deb",
|
|
72
|
+
".rpm",
|
|
73
|
+
".snap",
|
|
74
|
+
".flatpak",
|
|
75
|
+
".appimage",
|
|
76
|
+
".jar",
|
|
77
|
+
".war",
|
|
78
|
+
".ear",
|
|
79
|
+
".class",
|
|
80
|
+
".jnlp",
|
|
81
|
+
".py",
|
|
82
|
+
".pyc",
|
|
83
|
+
".pyo",
|
|
84
|
+
".pyw",
|
|
85
|
+
".pyz",
|
|
86
|
+
".pyzw",
|
|
87
|
+
".pl",
|
|
88
|
+
".pm",
|
|
89
|
+
".pod",
|
|
90
|
+
".t",
|
|
91
|
+
".rb",
|
|
92
|
+
".rbw",
|
|
93
|
+
".gem",
|
|
94
|
+
".php",
|
|
95
|
+
".php3",
|
|
96
|
+
".php4",
|
|
97
|
+
".php5",
|
|
98
|
+
".php7",
|
|
99
|
+
".phtml",
|
|
100
|
+
".phar",
|
|
101
|
+
".asp",
|
|
102
|
+
".aspx",
|
|
103
|
+
".ashx",
|
|
104
|
+
".asmx",
|
|
105
|
+
".axd",
|
|
106
|
+
".jsp",
|
|
107
|
+
".jspx",
|
|
108
|
+
".jsf",
|
|
109
|
+
".faces",
|
|
110
|
+
".cgi",
|
|
111
|
+
".fcgi",
|
|
112
|
+
".apk",
|
|
113
|
+
".aab",
|
|
114
|
+
".xapk",
|
|
115
|
+
".ipa",
|
|
116
|
+
".dSYM",
|
|
117
|
+
".ade",
|
|
118
|
+
".adp",
|
|
119
|
+
".application",
|
|
120
|
+
".chm",
|
|
121
|
+
".crt",
|
|
122
|
+
".der",
|
|
123
|
+
".hlp",
|
|
124
|
+
".ins",
|
|
125
|
+
".isp",
|
|
126
|
+
".mdb",
|
|
127
|
+
".mde",
|
|
128
|
+
".mdt",
|
|
129
|
+
".mdw",
|
|
130
|
+
".mdz",
|
|
131
|
+
".mst",
|
|
132
|
+
".ops",
|
|
133
|
+
".pcd",
|
|
134
|
+
".prg",
|
|
135
|
+
".sct",
|
|
136
|
+
".shb",
|
|
137
|
+
".shs",
|
|
138
|
+
".url",
|
|
139
|
+
".vsmacros",
|
|
140
|
+
".xnk"
|
|
141
|
+
];
|
|
142
|
+
export const ARCHIVE_EXTENSIONS = [
|
|
143
|
+
".zip",
|
|
144
|
+
".rar",
|
|
145
|
+
".7z",
|
|
146
|
+
".tar",
|
|
147
|
+
".gz",
|
|
148
|
+
".bz2",
|
|
149
|
+
".xz",
|
|
150
|
+
".lz",
|
|
151
|
+
".lzma",
|
|
152
|
+
".lzo",
|
|
153
|
+
".z",
|
|
154
|
+
".Z",
|
|
155
|
+
".tar.gz",
|
|
156
|
+
".tar.bz2",
|
|
157
|
+
".tar.xz",
|
|
158
|
+
".tar.lz",
|
|
159
|
+
".tar.lzma",
|
|
160
|
+
".tar.lzo",
|
|
161
|
+
".tar.Z",
|
|
162
|
+
".tar.zst",
|
|
163
|
+
".tgz",
|
|
164
|
+
".tbz",
|
|
165
|
+
".tbz2",
|
|
166
|
+
".txz",
|
|
167
|
+
".tlz",
|
|
168
|
+
".tzst",
|
|
169
|
+
".cab",
|
|
170
|
+
".arj",
|
|
171
|
+
".lzh",
|
|
172
|
+
".lha",
|
|
173
|
+
".ace",
|
|
174
|
+
".zoo",
|
|
175
|
+
".arc",
|
|
176
|
+
".pak",
|
|
177
|
+
".ice",
|
|
178
|
+
".sit",
|
|
179
|
+
".sitx",
|
|
180
|
+
".sea",
|
|
181
|
+
".hqx",
|
|
182
|
+
".cpio",
|
|
183
|
+
".shar",
|
|
184
|
+
".a",
|
|
185
|
+
".ar",
|
|
186
|
+
".zst",
|
|
187
|
+
".zstd",
|
|
188
|
+
".br",
|
|
189
|
+
".brotli",
|
|
190
|
+
".lz4",
|
|
191
|
+
".sz",
|
|
192
|
+
".snappy",
|
|
193
|
+
".iso",
|
|
194
|
+
".img",
|
|
195
|
+
".bin",
|
|
196
|
+
".cue",
|
|
197
|
+
".nrg",
|
|
198
|
+
".mdf",
|
|
199
|
+
".mds",
|
|
200
|
+
".ccd",
|
|
201
|
+
".sub",
|
|
202
|
+
".bwi",
|
|
203
|
+
".bws",
|
|
204
|
+
".bwt",
|
|
205
|
+
".cdi",
|
|
206
|
+
".vhd",
|
|
207
|
+
".vhdx",
|
|
208
|
+
".vmdk",
|
|
209
|
+
".vdi",
|
|
210
|
+
".qcow",
|
|
211
|
+
".qcow2",
|
|
212
|
+
".001",
|
|
213
|
+
".002",
|
|
214
|
+
".003",
|
|
215
|
+
".r00",
|
|
216
|
+
".r01",
|
|
217
|
+
".z01",
|
|
218
|
+
".z02",
|
|
219
|
+
".sparsebundle",
|
|
220
|
+
".sparseimage",
|
|
221
|
+
".bak",
|
|
222
|
+
".backup",
|
|
223
|
+
".old"
|
|
224
|
+
];
|
|
225
|
+
export const DOCUMENT_EXTENSIONS = [
|
|
226
|
+
".pdf",
|
|
227
|
+
".fdf",
|
|
228
|
+
".xfdf",
|
|
229
|
+
".doc",
|
|
230
|
+
".docx",
|
|
231
|
+
".docm",
|
|
232
|
+
".dot",
|
|
233
|
+
".dotx",
|
|
234
|
+
".dotm",
|
|
235
|
+
".xls",
|
|
236
|
+
".xlsx",
|
|
237
|
+
".xlsm",
|
|
238
|
+
".xlsb",
|
|
239
|
+
".xlt",
|
|
240
|
+
".xltx",
|
|
241
|
+
".xltm",
|
|
242
|
+
".xlam",
|
|
243
|
+
".ppt",
|
|
244
|
+
".pptx",
|
|
245
|
+
".pptm",
|
|
246
|
+
".pot",
|
|
247
|
+
".potx",
|
|
248
|
+
".potm",
|
|
249
|
+
".pps",
|
|
250
|
+
".ppsx",
|
|
251
|
+
".ppsm",
|
|
252
|
+
".ppam",
|
|
253
|
+
".mdb",
|
|
254
|
+
".accdb",
|
|
255
|
+
".accde",
|
|
256
|
+
".accdr",
|
|
257
|
+
".accdt",
|
|
258
|
+
".pub",
|
|
259
|
+
".vsd",
|
|
260
|
+
".vsdx",
|
|
261
|
+
".vsdm",
|
|
262
|
+
".vss",
|
|
263
|
+
".vssx",
|
|
264
|
+
".vst",
|
|
265
|
+
".vstx",
|
|
266
|
+
".one",
|
|
267
|
+
".onepkg",
|
|
268
|
+
".onetoc",
|
|
269
|
+
".onetoc2",
|
|
270
|
+
".odt",
|
|
271
|
+
".ods",
|
|
272
|
+
".odp",
|
|
273
|
+
".odg",
|
|
274
|
+
".odf",
|
|
275
|
+
".odb",
|
|
276
|
+
".odc",
|
|
277
|
+
".odm",
|
|
278
|
+
".ott",
|
|
279
|
+
".ots",
|
|
280
|
+
".otp",
|
|
281
|
+
".otg",
|
|
282
|
+
".sxw",
|
|
283
|
+
".sxc",
|
|
284
|
+
".sxi",
|
|
285
|
+
".sxd",
|
|
286
|
+
".sxm",
|
|
287
|
+
".pages",
|
|
288
|
+
".numbers",
|
|
289
|
+
".keynote",
|
|
290
|
+
".rtf",
|
|
291
|
+
".txt",
|
|
292
|
+
".text",
|
|
293
|
+
".md",
|
|
294
|
+
".markdown",
|
|
295
|
+
".rst",
|
|
296
|
+
".tex",
|
|
297
|
+
".latex",
|
|
298
|
+
".bib",
|
|
299
|
+
".wps",
|
|
300
|
+
".wpd",
|
|
301
|
+
".wri",
|
|
302
|
+
".abw",
|
|
303
|
+
".zabw",
|
|
304
|
+
".hwp",
|
|
305
|
+
".hwpx",
|
|
306
|
+
".epub",
|
|
307
|
+
".mobi",
|
|
308
|
+
".azw",
|
|
309
|
+
".azw3",
|
|
310
|
+
".azw4",
|
|
311
|
+
".kf8",
|
|
312
|
+
".kfx",
|
|
313
|
+
".fb2",
|
|
314
|
+
".fb3",
|
|
315
|
+
".lit",
|
|
316
|
+
".lrf",
|
|
317
|
+
".pdb",
|
|
318
|
+
".prc",
|
|
319
|
+
".tcr",
|
|
320
|
+
".djvu",
|
|
321
|
+
".djv",
|
|
322
|
+
".cbz",
|
|
323
|
+
".cbr",
|
|
324
|
+
".cb7",
|
|
325
|
+
".cbt",
|
|
326
|
+
".cba",
|
|
327
|
+
".csv",
|
|
328
|
+
".tsv",
|
|
329
|
+
".psv",
|
|
330
|
+
".json",
|
|
331
|
+
".jsonl",
|
|
332
|
+
".ndjson",
|
|
333
|
+
".xml",
|
|
334
|
+
".xsl",
|
|
335
|
+
".xslt",
|
|
336
|
+
".xsd",
|
|
337
|
+
".dtd",
|
|
338
|
+
".yaml",
|
|
339
|
+
".yml",
|
|
340
|
+
".toml",
|
|
341
|
+
".ini",
|
|
342
|
+
".cfg",
|
|
343
|
+
".conf",
|
|
344
|
+
".config",
|
|
345
|
+
".properties",
|
|
346
|
+
".env"
|
|
347
|
+
];
|
|
348
|
+
export const IMAGE_EXTENSIONS = [
|
|
349
|
+
".jpg",
|
|
350
|
+
".jpeg",
|
|
351
|
+
".jpe",
|
|
352
|
+
".jif",
|
|
353
|
+
".jfif",
|
|
354
|
+
".jfi",
|
|
355
|
+
".png",
|
|
356
|
+
".apng",
|
|
357
|
+
".gif",
|
|
358
|
+
".webp",
|
|
359
|
+
".svg",
|
|
360
|
+
".svgz",
|
|
361
|
+
".ico",
|
|
362
|
+
".cur",
|
|
363
|
+
".avif",
|
|
364
|
+
".heic",
|
|
365
|
+
".heif",
|
|
366
|
+
".heics",
|
|
367
|
+
".heifs",
|
|
368
|
+
".jxl",
|
|
369
|
+
".jpegxl",
|
|
370
|
+
".webp2",
|
|
371
|
+
".wp2",
|
|
372
|
+
".bmp",
|
|
373
|
+
".dib",
|
|
374
|
+
".tiff",
|
|
375
|
+
".tif",
|
|
376
|
+
".raw",
|
|
377
|
+
".arw",
|
|
378
|
+
".cr2",
|
|
379
|
+
".cr3",
|
|
380
|
+
".crw",
|
|
381
|
+
".dcr",
|
|
382
|
+
".dng",
|
|
383
|
+
".erf",
|
|
384
|
+
".fff",
|
|
385
|
+
".gpr",
|
|
386
|
+
".iiq",
|
|
387
|
+
".k25",
|
|
388
|
+
".kdc",
|
|
389
|
+
".mef",
|
|
390
|
+
".mos",
|
|
391
|
+
".mrw",
|
|
392
|
+
".nef",
|
|
393
|
+
".nrw",
|
|
394
|
+
".orf",
|
|
395
|
+
".pef",
|
|
396
|
+
".ptx",
|
|
397
|
+
".pxn",
|
|
398
|
+
".r3d",
|
|
399
|
+
".raf",
|
|
400
|
+
".rw2",
|
|
401
|
+
".rwl",
|
|
402
|
+
".rwz",
|
|
403
|
+
".sr2",
|
|
404
|
+
".srf",
|
|
405
|
+
".srw",
|
|
406
|
+
".x3f",
|
|
407
|
+
".psd",
|
|
408
|
+
".psb",
|
|
409
|
+
".pdd",
|
|
410
|
+
".ai",
|
|
411
|
+
".eps",
|
|
412
|
+
".epsf",
|
|
413
|
+
".epsi",
|
|
414
|
+
".indd",
|
|
415
|
+
".indt",
|
|
416
|
+
".indb",
|
|
417
|
+
".inx",
|
|
418
|
+
".idml",
|
|
419
|
+
".fla",
|
|
420
|
+
".swf",
|
|
421
|
+
".xcf",
|
|
422
|
+
".xcfgz",
|
|
423
|
+
".xcfbz2",
|
|
424
|
+
".kra",
|
|
425
|
+
".ora",
|
|
426
|
+
".cdr",
|
|
427
|
+
".cmx",
|
|
428
|
+
".pat",
|
|
429
|
+
".pcx",
|
|
430
|
+
".pct",
|
|
431
|
+
".pict",
|
|
432
|
+
".tga",
|
|
433
|
+
".vda",
|
|
434
|
+
".icb",
|
|
435
|
+
".vst",
|
|
436
|
+
".sgi",
|
|
437
|
+
".rgb",
|
|
438
|
+
".rgba",
|
|
439
|
+
".bw",
|
|
440
|
+
".int",
|
|
441
|
+
".inta",
|
|
442
|
+
".cin",
|
|
443
|
+
".dpx",
|
|
444
|
+
".exr",
|
|
445
|
+
".hdr",
|
|
446
|
+
".rgbe",
|
|
447
|
+
".pfm",
|
|
448
|
+
".pbm",
|
|
449
|
+
".pgm",
|
|
450
|
+
".ppm",
|
|
451
|
+
".pnm",
|
|
452
|
+
".pam",
|
|
453
|
+
".fits",
|
|
454
|
+
".fit",
|
|
455
|
+
".fts",
|
|
456
|
+
".jng",
|
|
457
|
+
".mng",
|
|
458
|
+
".dds",
|
|
459
|
+
".jp2",
|
|
460
|
+
".j2k",
|
|
461
|
+
".jpf",
|
|
462
|
+
".jpx",
|
|
463
|
+
".jpm",
|
|
464
|
+
".mj2",
|
|
465
|
+
".wdp",
|
|
466
|
+
".hdp",
|
|
467
|
+
".jxr",
|
|
468
|
+
".flif",
|
|
469
|
+
".bpg",
|
|
470
|
+
".icns",
|
|
471
|
+
".icon"
|
|
472
|
+
];
|
|
473
|
+
export const VIDEO_EXTENSIONS = [
|
|
474
|
+
".mp4",
|
|
475
|
+
".m4v",
|
|
476
|
+
".m4p",
|
|
477
|
+
".webm",
|
|
478
|
+
".mkv",
|
|
479
|
+
".mk3d",
|
|
480
|
+
".mka",
|
|
481
|
+
".mks",
|
|
482
|
+
".avi",
|
|
483
|
+
".divx",
|
|
484
|
+
".xvid",
|
|
485
|
+
".mov",
|
|
486
|
+
".qt",
|
|
487
|
+
".wmv",
|
|
488
|
+
".wm",
|
|
489
|
+
".asf",
|
|
490
|
+
".asx",
|
|
491
|
+
".flv",
|
|
492
|
+
".f4v",
|
|
493
|
+
".f4p",
|
|
494
|
+
".f4a",
|
|
495
|
+
".f4b",
|
|
496
|
+
".mpg",
|
|
497
|
+
".mpeg",
|
|
498
|
+
".mpe",
|
|
499
|
+
".mpv",
|
|
500
|
+
".mp2",
|
|
501
|
+
".m2v",
|
|
502
|
+
".m1v",
|
|
503
|
+
".m2p",
|
|
504
|
+
".m2t",
|
|
505
|
+
".m2ts",
|
|
506
|
+
".mts",
|
|
507
|
+
".mt2s",
|
|
508
|
+
".ts",
|
|
509
|
+
".tsv",
|
|
510
|
+
".tsa",
|
|
511
|
+
".trp",
|
|
512
|
+
".tp",
|
|
513
|
+
".3gp",
|
|
514
|
+
".3g2",
|
|
515
|
+
".3gpp",
|
|
516
|
+
".3gpp2",
|
|
517
|
+
".mxf",
|
|
518
|
+
".gxf",
|
|
519
|
+
".dv",
|
|
520
|
+
".dif",
|
|
521
|
+
".vob",
|
|
522
|
+
".ifo",
|
|
523
|
+
".bup",
|
|
524
|
+
".rec",
|
|
525
|
+
".rm",
|
|
526
|
+
".rmvb",
|
|
527
|
+
".ram",
|
|
528
|
+
".roq",
|
|
529
|
+
".nsv",
|
|
530
|
+
".amv",
|
|
531
|
+
".ogv",
|
|
532
|
+
".ogg",
|
|
533
|
+
".ogm",
|
|
534
|
+
".ogx",
|
|
535
|
+
".yuv",
|
|
536
|
+
".y4m",
|
|
537
|
+
".m3u",
|
|
538
|
+
".m3u8",
|
|
539
|
+
".pls",
|
|
540
|
+
".mpd",
|
|
541
|
+
".braw",
|
|
542
|
+
".prores",
|
|
543
|
+
".dnxhd",
|
|
544
|
+
".dnxhr",
|
|
545
|
+
".cineform",
|
|
546
|
+
".gifv",
|
|
547
|
+
".wtv",
|
|
548
|
+
".dvr-ms",
|
|
549
|
+
".tivo",
|
|
550
|
+
".bik",
|
|
551
|
+
".bk2",
|
|
552
|
+
".smk",
|
|
553
|
+
".fli",
|
|
554
|
+
".flc",
|
|
555
|
+
".str",
|
|
556
|
+
".pss"
|
|
557
|
+
];
|
|
558
|
+
export const AUDIO_EXTENSIONS = [
|
|
559
|
+
".mp3",
|
|
560
|
+
".mp2",
|
|
561
|
+
".mp1",
|
|
562
|
+
".m4a",
|
|
563
|
+
".m4b",
|
|
564
|
+
".m4p",
|
|
565
|
+
".m4r",
|
|
566
|
+
".aac",
|
|
567
|
+
".aax",
|
|
568
|
+
".oga",
|
|
569
|
+
".opus",
|
|
570
|
+
".spx",
|
|
571
|
+
".flac",
|
|
572
|
+
".wav",
|
|
573
|
+
".wave",
|
|
574
|
+
".bwf",
|
|
575
|
+
".wma",
|
|
576
|
+
".aiff",
|
|
577
|
+
".aif",
|
|
578
|
+
".aifc",
|
|
579
|
+
".ape",
|
|
580
|
+
".wv",
|
|
581
|
+
".wvp",
|
|
582
|
+
".alac",
|
|
583
|
+
".tta",
|
|
584
|
+
".tak",
|
|
585
|
+
".ofr",
|
|
586
|
+
".ofs",
|
|
587
|
+
".la",
|
|
588
|
+
".pac",
|
|
589
|
+
".shn",
|
|
590
|
+
".mlp",
|
|
591
|
+
".mod",
|
|
592
|
+
".s3m",
|
|
593
|
+
".it",
|
|
594
|
+
".xm",
|
|
595
|
+
".umx",
|
|
596
|
+
".stm",
|
|
597
|
+
".med",
|
|
598
|
+
".mtm",
|
|
599
|
+
".669",
|
|
600
|
+
".far",
|
|
601
|
+
".amf",
|
|
602
|
+
".ams",
|
|
603
|
+
".dbm",
|
|
604
|
+
".dmf",
|
|
605
|
+
".dsm",
|
|
606
|
+
".gdm",
|
|
607
|
+
".imf",
|
|
608
|
+
".mdl",
|
|
609
|
+
".okt",
|
|
610
|
+
".ptm",
|
|
611
|
+
".psm",
|
|
612
|
+
".j2b",
|
|
613
|
+
".mo3",
|
|
614
|
+
".mptm",
|
|
615
|
+
".mid",
|
|
616
|
+
".midi",
|
|
617
|
+
".kar",
|
|
618
|
+
".rmi",
|
|
619
|
+
".ra",
|
|
620
|
+
".rmj",
|
|
621
|
+
".au",
|
|
622
|
+
".snd",
|
|
623
|
+
".gsm",
|
|
624
|
+
".vox",
|
|
625
|
+
".voc",
|
|
626
|
+
".cda",
|
|
627
|
+
".mpc",
|
|
628
|
+
".mp+",
|
|
629
|
+
".mpp",
|
|
630
|
+
".amr",
|
|
631
|
+
".awb",
|
|
632
|
+
".dts",
|
|
633
|
+
".dtshd",
|
|
634
|
+
".dtsma",
|
|
635
|
+
".ac3",
|
|
636
|
+
".eac3",
|
|
637
|
+
".ec3",
|
|
638
|
+
".truehd",
|
|
639
|
+
".caf",
|
|
640
|
+
".w64",
|
|
641
|
+
".rf64",
|
|
642
|
+
".dff",
|
|
643
|
+
".dsf",
|
|
644
|
+
".weba",
|
|
645
|
+
".qcp",
|
|
646
|
+
".mmf",
|
|
647
|
+
".smaf",
|
|
648
|
+
".brstm",
|
|
649
|
+
".bcstm",
|
|
650
|
+
".bfstm",
|
|
651
|
+
".cwav",
|
|
652
|
+
".bcwav",
|
|
653
|
+
".fsb",
|
|
654
|
+
".bnk",
|
|
655
|
+
".wem",
|
|
656
|
+
".sab",
|
|
657
|
+
".sob",
|
|
658
|
+
".xwb",
|
|
659
|
+
".xsb",
|
|
660
|
+
".adx",
|
|
661
|
+
".aix",
|
|
662
|
+
".hca",
|
|
663
|
+
".acb"
|
|
664
|
+
];
|
|
665
|
+
export const FONT_EXTENSIONS = [
|
|
666
|
+
".woff",
|
|
667
|
+
".woff2",
|
|
668
|
+
".eot",
|
|
669
|
+
".ttf",
|
|
670
|
+
".ttc",
|
|
671
|
+
".otf",
|
|
672
|
+
".otc",
|
|
673
|
+
".pfb",
|
|
674
|
+
".pfm",
|
|
675
|
+
".afm",
|
|
676
|
+
".pfa",
|
|
677
|
+
".fon",
|
|
678
|
+
".fnt",
|
|
679
|
+
".bdf",
|
|
680
|
+
".pcf",
|
|
681
|
+
".snf",
|
|
682
|
+
".sfd",
|
|
683
|
+
".ufo",
|
|
684
|
+
".dfont",
|
|
685
|
+
".suit",
|
|
686
|
+
".vfb",
|
|
687
|
+
".glyphs",
|
|
688
|
+
".glyphx"
|
|
689
|
+
];
|
|
690
|
+
export const WEB_ASSET_EXTENSIONS = [
|
|
691
|
+
".css",
|
|
692
|
+
".scss",
|
|
693
|
+
".sass",
|
|
694
|
+
".less",
|
|
695
|
+
".styl",
|
|
696
|
+
".stylus",
|
|
697
|
+
".pcss",
|
|
698
|
+
".postcss",
|
|
699
|
+
".js",
|
|
700
|
+
".mjs",
|
|
701
|
+
".cjs",
|
|
702
|
+
".jsx",
|
|
703
|
+
".ts",
|
|
704
|
+
".tsx",
|
|
705
|
+
".mts",
|
|
706
|
+
".cts",
|
|
707
|
+
".vue",
|
|
708
|
+
".svelte",
|
|
709
|
+
".astro",
|
|
710
|
+
".html",
|
|
711
|
+
".htm",
|
|
712
|
+
".xhtml",
|
|
713
|
+
".shtml",
|
|
714
|
+
".map",
|
|
715
|
+
".wasm",
|
|
716
|
+
".wat",
|
|
717
|
+
".webmanifest"
|
|
718
|
+
];
|
|
719
|
+
export const DATA_EXTENSIONS = [
|
|
720
|
+
".sql",
|
|
721
|
+
".sqlite",
|
|
722
|
+
".sqlite3",
|
|
723
|
+
".db",
|
|
724
|
+
".db3",
|
|
725
|
+
".mdf",
|
|
726
|
+
".ldf",
|
|
727
|
+
".ndf",
|
|
728
|
+
".frm",
|
|
729
|
+
".myd",
|
|
730
|
+
".myi",
|
|
731
|
+
".ibd",
|
|
732
|
+
".bson",
|
|
733
|
+
".rdb",
|
|
734
|
+
".aof",
|
|
735
|
+
".dbf",
|
|
736
|
+
".fdb",
|
|
737
|
+
".gdb",
|
|
738
|
+
".parquet",
|
|
739
|
+
".avro",
|
|
740
|
+
".orc",
|
|
741
|
+
".feather",
|
|
742
|
+
".arrow",
|
|
743
|
+
".hdf",
|
|
744
|
+
".hdf5",
|
|
745
|
+
".h5",
|
|
746
|
+
".he5",
|
|
747
|
+
".nc",
|
|
748
|
+
".nc4",
|
|
749
|
+
".netcdf",
|
|
750
|
+
".mat",
|
|
751
|
+
".sav",
|
|
752
|
+
".zsav",
|
|
753
|
+
".por",
|
|
754
|
+
".dta",
|
|
755
|
+
".sas7bdat",
|
|
756
|
+
".xpt",
|
|
757
|
+
".rdata",
|
|
758
|
+
".rds",
|
|
759
|
+
".rda",
|
|
760
|
+
".log",
|
|
761
|
+
".logs",
|
|
762
|
+
".dump",
|
|
763
|
+
".dmp"
|
|
764
|
+
];
|
|
765
|
+
export const EXECUTABLE_MIME_TYPES = [
|
|
766
|
+
"application/x-msdownload",
|
|
767
|
+
"application/x-msdos-program",
|
|
768
|
+
"application/exe",
|
|
769
|
+
"application/x-exe",
|
|
770
|
+
"application/dos-exe",
|
|
771
|
+
"application/x-winexe",
|
|
772
|
+
"application/msdos-windows",
|
|
773
|
+
"application/x-msi",
|
|
774
|
+
"application/x-ms-installer",
|
|
775
|
+
"application/vnd.microsoft.portable-executable",
|
|
776
|
+
"application/x-dosexec",
|
|
777
|
+
"application/x-ms-shortcut",
|
|
778
|
+
"application/x-ms-application",
|
|
779
|
+
"application/x-executable",
|
|
780
|
+
"application/x-elf",
|
|
781
|
+
"application/x-sharedlib",
|
|
782
|
+
"application/x-object",
|
|
783
|
+
"application/x-pie-executable",
|
|
784
|
+
"application/x-sh",
|
|
785
|
+
"application/x-shellscript",
|
|
786
|
+
"application/x-bash",
|
|
787
|
+
"application/x-csh",
|
|
788
|
+
"application/x-tcsh",
|
|
789
|
+
"application/x-zsh",
|
|
790
|
+
"application/x-ksh",
|
|
791
|
+
"application/x-fish",
|
|
792
|
+
"application/x-powershell",
|
|
793
|
+
"application/x-python",
|
|
794
|
+
"application/x-python-code",
|
|
795
|
+
"text/x-python",
|
|
796
|
+
"text/x-python-script",
|
|
797
|
+
"application/x-perl",
|
|
798
|
+
"text/x-perl",
|
|
799
|
+
"application/x-ruby",
|
|
800
|
+
"text/x-ruby",
|
|
801
|
+
"application/x-php",
|
|
802
|
+
"text/x-php",
|
|
803
|
+
"application/java-archive",
|
|
804
|
+
"application/x-java-archive",
|
|
805
|
+
"application/x-jar",
|
|
806
|
+
"application/java",
|
|
807
|
+
"application/x-java",
|
|
808
|
+
"application/java-vm",
|
|
809
|
+
"application/x-java-vm",
|
|
810
|
+
"application/x-java-jnlp-file",
|
|
811
|
+
"application/vnd.android.package-archive",
|
|
812
|
+
"application/x-ios-app",
|
|
813
|
+
"application/x-apple-diskimage",
|
|
814
|
+
"application/x-newton-compatible-pkg",
|
|
815
|
+
"application/x-apple-installer-package",
|
|
816
|
+
"application/x-deb",
|
|
817
|
+
"application/x-debian-package",
|
|
818
|
+
"application/x-rpm",
|
|
819
|
+
"application/x-redhat-package-manager",
|
|
820
|
+
"application/x-snap",
|
|
821
|
+
"application/x-flatpak",
|
|
822
|
+
"application/vnd.flatpak",
|
|
823
|
+
"application/vnd.flatpak.ref",
|
|
824
|
+
"application/vnd.snap",
|
|
825
|
+
"application/octet-stream",
|
|
826
|
+
"application/macbinary",
|
|
827
|
+
"application/x-macbinary"
|
|
828
|
+
];
|
|
829
|
+
export const ARCHIVE_MIME_TYPES = [
|
|
830
|
+
"application/zip",
|
|
831
|
+
"application/x-zip",
|
|
832
|
+
"application/x-zip-compressed",
|
|
833
|
+
"application/x-compress",
|
|
834
|
+
"application/x-compressed",
|
|
835
|
+
"multipart/x-zip",
|
|
836
|
+
"application/x-rar",
|
|
837
|
+
"application/x-rar-compressed",
|
|
838
|
+
"application/vnd.rar",
|
|
839
|
+
"application/x-7z-compressed",
|
|
840
|
+
"application/x-tar",
|
|
841
|
+
"application/x-gtar",
|
|
842
|
+
"application/x-ustar",
|
|
843
|
+
"application/x-cpio",
|
|
844
|
+
"application/x-shar",
|
|
845
|
+
"application/gzip",
|
|
846
|
+
"application/x-gzip",
|
|
847
|
+
"application/x-gunzip",
|
|
848
|
+
"application/gzipped",
|
|
849
|
+
"application/gzip-compressed",
|
|
850
|
+
"application/x-bzip",
|
|
851
|
+
"application/x-bzip2",
|
|
852
|
+
"application/x-bz2",
|
|
853
|
+
"application/x-xz",
|
|
854
|
+
"application/x-lzma",
|
|
855
|
+
"application/x-lzip",
|
|
856
|
+
"application/x-lzop",
|
|
857
|
+
"application/x-lzo",
|
|
858
|
+
"application/compress",
|
|
859
|
+
"application/zstd",
|
|
860
|
+
"application/x-zstd",
|
|
861
|
+
"application/x-zstandard",
|
|
862
|
+
"application/x-br",
|
|
863
|
+
"application/x-brotli",
|
|
864
|
+
"application/brotli",
|
|
865
|
+
"application/x-lz4",
|
|
866
|
+
"application/x-snappy",
|
|
867
|
+
"application/x-cab",
|
|
868
|
+
"application/vnd.ms-cab-compressed",
|
|
869
|
+
"application/x-arj",
|
|
870
|
+
"application/arj",
|
|
871
|
+
"application/x-lzh",
|
|
872
|
+
"application/x-lha",
|
|
873
|
+
"application/x-lzh-compressed",
|
|
874
|
+
"application/x-ace-compressed",
|
|
875
|
+
"application/x-ace",
|
|
876
|
+
"application/x-zoo",
|
|
877
|
+
"application/x-arc",
|
|
878
|
+
"application/x-stuffit",
|
|
879
|
+
"application/x-stuffitx",
|
|
880
|
+
"application/x-sit",
|
|
881
|
+
"application/x-sitx",
|
|
882
|
+
"application/mac-binhex40",
|
|
883
|
+
"application/x-sea",
|
|
884
|
+
"application/x-iso9660-image",
|
|
885
|
+
"application/x-raw-disk-image",
|
|
886
|
+
"application/x-cd-image",
|
|
887
|
+
"application/vnd.vmware.disc-image",
|
|
888
|
+
"application/x-virtualbox-vhd",
|
|
889
|
+
"application/x-virtualbox-vmdk",
|
|
890
|
+
"application/x-virtualbox-vdi",
|
|
891
|
+
"application/x-qemu-disk",
|
|
892
|
+
"application/x-webarchive"
|
|
893
|
+
];
|
|
894
|
+
export const DOCUMENT_MIME_TYPES = [
|
|
895
|
+
"application/pdf",
|
|
896
|
+
"application/x-pdf",
|
|
897
|
+
"application/acrobat",
|
|
898
|
+
"text/pdf",
|
|
899
|
+
"text/x-pdf",
|
|
900
|
+
"application/msword",
|
|
901
|
+
"application/vnd.ms-word",
|
|
902
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
903
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
|
|
904
|
+
"application/vnd.ms-word.document.macroEnabled.12",
|
|
905
|
+
"application/vnd.ms-word.template.macroEnabled.12",
|
|
906
|
+
"application/vnd.ms-excel",
|
|
907
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
908
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.template",
|
|
909
|
+
"application/vnd.ms-excel.sheet.macroEnabled.12",
|
|
910
|
+
"application/vnd.ms-excel.sheet.binary.macroEnabled.12",
|
|
911
|
+
"application/vnd.ms-excel.template.macroEnabled.12",
|
|
912
|
+
"application/vnd.ms-excel.addin.macroEnabled.12",
|
|
913
|
+
"application/vnd.ms-powerpoint",
|
|
914
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
915
|
+
"application/vnd.openxmlformats-officedocument.presentationml.template",
|
|
916
|
+
"application/vnd.openxmlformats-officedocument.presentationml.slideshow",
|
|
917
|
+
"application/vnd.ms-powerpoint.presentation.macroEnabled.12",
|
|
918
|
+
"application/vnd.ms-powerpoint.template.macroEnabled.12",
|
|
919
|
+
"application/vnd.ms-powerpoint.slideshow.macroEnabled.12",
|
|
920
|
+
"application/vnd.ms-powerpoint.addin.macroEnabled.12",
|
|
921
|
+
"application/vnd.ms-access",
|
|
922
|
+
"application/vnd.visio",
|
|
923
|
+
"application/vnd.ms-visio.drawing",
|
|
924
|
+
"application/vnd.ms-project",
|
|
925
|
+
"application/vnd.ms-publisher",
|
|
926
|
+
"application/vnd.onenote",
|
|
927
|
+
"application/vnd.oasis.opendocument.text",
|
|
928
|
+
"application/vnd.oasis.opendocument.text-template",
|
|
929
|
+
"application/vnd.oasis.opendocument.spreadsheet",
|
|
930
|
+
"application/vnd.oasis.opendocument.spreadsheet-template",
|
|
931
|
+
"application/vnd.oasis.opendocument.presentation",
|
|
932
|
+
"application/vnd.oasis.opendocument.presentation-template",
|
|
933
|
+
"application/vnd.oasis.opendocument.graphics",
|
|
934
|
+
"application/vnd.oasis.opendocument.graphics-template",
|
|
935
|
+
"application/vnd.oasis.opendocument.formula",
|
|
936
|
+
"application/vnd.oasis.opendocument.database",
|
|
937
|
+
"application/vnd.oasis.opendocument.chart",
|
|
938
|
+
"application/vnd.apple.pages",
|
|
939
|
+
"application/vnd.apple.numbers",
|
|
940
|
+
"application/vnd.apple.keynote",
|
|
941
|
+
"application/x-iwork-pages-sffpages",
|
|
942
|
+
"application/x-iwork-numbers-sffnumbers",
|
|
943
|
+
"application/x-iwork-keynote-sffkey",
|
|
944
|
+
"application/rtf",
|
|
945
|
+
"text/rtf",
|
|
946
|
+
"application/x-rtf",
|
|
947
|
+
"text/richtext",
|
|
948
|
+
"application/x-abiword",
|
|
949
|
+
"application/x-abiword-compressed",
|
|
950
|
+
"application/vnd.wordperfect",
|
|
951
|
+
"application/wordperfect",
|
|
952
|
+
"application/x-wordperfect",
|
|
953
|
+
"application/vnd.lotus-1-2-3",
|
|
954
|
+
"application/x-123",
|
|
955
|
+
"application/vnd.lotus-wordpro",
|
|
956
|
+
"application/x-freelance",
|
|
957
|
+
"application/epub+zip",
|
|
958
|
+
"application/x-mobipocket-ebook",
|
|
959
|
+
"application/vnd.amazon.ebook",
|
|
960
|
+
"application/vnd.amazon.mobi8-ebook",
|
|
961
|
+
"application/x-fictionbook+xml",
|
|
962
|
+
"application/x-fb2",
|
|
963
|
+
"application/x-fb3",
|
|
964
|
+
"application/x-cbz",
|
|
965
|
+
"application/x-cbr",
|
|
966
|
+
"application/x-cb7",
|
|
967
|
+
"application/vnd.comicbook+zip",
|
|
968
|
+
"application/vnd.comicbook-rar",
|
|
969
|
+
"text/plain",
|
|
970
|
+
"text/markdown",
|
|
971
|
+
"text/x-markdown",
|
|
972
|
+
"application/x-latex",
|
|
973
|
+
"application/x-tex"
|
|
974
|
+
];
|
|
975
|
+
export const IMAGE_MIME_TYPES = [
|
|
976
|
+
"image/jpeg",
|
|
977
|
+
"image/pjpeg",
|
|
978
|
+
"image/jpg",
|
|
979
|
+
"image/png",
|
|
980
|
+
"image/apng",
|
|
981
|
+
"image/gif",
|
|
982
|
+
"image/webp",
|
|
983
|
+
"image/svg+xml",
|
|
984
|
+
"image/x-icon",
|
|
985
|
+
"image/vnd.microsoft.icon",
|
|
986
|
+
"image/ico",
|
|
987
|
+
"image/icon",
|
|
988
|
+
"image/avif",
|
|
989
|
+
"image/heic",
|
|
990
|
+
"image/heif",
|
|
991
|
+
"image/heic-sequence",
|
|
992
|
+
"image/heif-sequence",
|
|
993
|
+
"image/jxl",
|
|
994
|
+
"image/bmp",
|
|
995
|
+
"image/x-bmp",
|
|
996
|
+
"image/x-ms-bmp",
|
|
997
|
+
"image/x-windows-bmp",
|
|
998
|
+
"image/tiff",
|
|
999
|
+
"image/x-tiff",
|
|
1000
|
+
"image/tiff-fx",
|
|
1001
|
+
"image/x-raw",
|
|
1002
|
+
"image/x-dcraw",
|
|
1003
|
+
"image/x-canon-cr2",
|
|
1004
|
+
"image/x-canon-cr3",
|
|
1005
|
+
"image/x-canon-crw",
|
|
1006
|
+
"image/x-nikon-nef",
|
|
1007
|
+
"image/x-nikon-nrw",
|
|
1008
|
+
"image/x-sony-arw",
|
|
1009
|
+
"image/x-sony-sr2",
|
|
1010
|
+
"image/x-sony-srf",
|
|
1011
|
+
"image/x-olympus-orf",
|
|
1012
|
+
"image/x-panasonic-rw2",
|
|
1013
|
+
"image/x-pentax-pef",
|
|
1014
|
+
"image/x-fuji-raf",
|
|
1015
|
+
"image/x-sigma-x3f",
|
|
1016
|
+
"image/x-adobe-dng",
|
|
1017
|
+
"image/x-leica-rwl",
|
|
1018
|
+
"image/x-samsung-srw",
|
|
1019
|
+
"image/x-minolta-mrw",
|
|
1020
|
+
"image/x-kodak-dcr",
|
|
1021
|
+
"image/x-kodak-kdc",
|
|
1022
|
+
"image/x-phase-one-iiq",
|
|
1023
|
+
"image/vnd.adobe.photoshop",
|
|
1024
|
+
"image/x-photoshop",
|
|
1025
|
+
"image/psd",
|
|
1026
|
+
"application/photoshop",
|
|
1027
|
+
"application/psd",
|
|
1028
|
+
"application/postscript",
|
|
1029
|
+
"application/eps",
|
|
1030
|
+
"application/x-eps",
|
|
1031
|
+
"image/x-eps",
|
|
1032
|
+
"application/illustrator",
|
|
1033
|
+
"image/x-xcf",
|
|
1034
|
+
"image/x-portable-pixmap",
|
|
1035
|
+
"image/x-portable-graymap",
|
|
1036
|
+
"image/x-portable-bitmap",
|
|
1037
|
+
"image/x-portable-anymap",
|
|
1038
|
+
"image/x-tga",
|
|
1039
|
+
"image/x-targa",
|
|
1040
|
+
"image/targa",
|
|
1041
|
+
"image/x-pcx",
|
|
1042
|
+
"image/x-sgi",
|
|
1043
|
+
"image/x-rgb",
|
|
1044
|
+
"image/vnd.radiance",
|
|
1045
|
+
"image/x-hdr",
|
|
1046
|
+
"image/x-exr",
|
|
1047
|
+
"image/x-dpx",
|
|
1048
|
+
"image/x-cineon",
|
|
1049
|
+
"image/jp2",
|
|
1050
|
+
"image/jpx",
|
|
1051
|
+
"image/jpm",
|
|
1052
|
+
"image/j2c",
|
|
1053
|
+
"image/j2k",
|
|
1054
|
+
"image/vnd.ms-photo",
|
|
1055
|
+
"image/vnd.ms-dds",
|
|
1056
|
+
"image/x-freehand",
|
|
1057
|
+
"image/x-xwindowdump",
|
|
1058
|
+
"image/x-xpixmap",
|
|
1059
|
+
"image/x-xbitmap",
|
|
1060
|
+
"image/fits"
|
|
1061
|
+
];
|
|
1062
|
+
export const VIDEO_MIME_TYPES = [
|
|
1063
|
+
"video/mp4",
|
|
1064
|
+
"video/x-m4v",
|
|
1065
|
+
"video/webm",
|
|
1066
|
+
"video/x-matroska",
|
|
1067
|
+
"video/x-msvideo",
|
|
1068
|
+
"video/avi",
|
|
1069
|
+
"video/msvideo",
|
|
1070
|
+
"video/x-ms-wmv",
|
|
1071
|
+
"video/x-ms-asf",
|
|
1072
|
+
"video/quicktime",
|
|
1073
|
+
"video/x-flv",
|
|
1074
|
+
"video/x-f4v",
|
|
1075
|
+
"video/mpeg",
|
|
1076
|
+
"video/x-mpeg",
|
|
1077
|
+
"video/mpeg2",
|
|
1078
|
+
"video/mp2t",
|
|
1079
|
+
"video/vnd.dlna.mpeg-tts",
|
|
1080
|
+
"video/mp2p",
|
|
1081
|
+
"video/3gpp",
|
|
1082
|
+
"video/3gpp2",
|
|
1083
|
+
"video/mxf",
|
|
1084
|
+
"application/mxf",
|
|
1085
|
+
"video/x-dv",
|
|
1086
|
+
"video/x-ms-vob",
|
|
1087
|
+
"video/ogg",
|
|
1088
|
+
"video/x-ogg",
|
|
1089
|
+
"video/x-ogm",
|
|
1090
|
+
"video/x-ogm+ogg",
|
|
1091
|
+
"application/vnd.apple.mpegurl",
|
|
1092
|
+
"audio/mpegurl",
|
|
1093
|
+
"application/x-mpegURL",
|
|
1094
|
+
"application/dash+xml",
|
|
1095
|
+
"video/vnd.mpegurl",
|
|
1096
|
+
"video/divx",
|
|
1097
|
+
"video/x-divx",
|
|
1098
|
+
"video/xvid",
|
|
1099
|
+
"video/x-xvid",
|
|
1100
|
+
"video/x-ms-wmx",
|
|
1101
|
+
"video/x-ms-wvx",
|
|
1102
|
+
"video/x-sgi-movie",
|
|
1103
|
+
"video/x-fli",
|
|
1104
|
+
"video/x-flc",
|
|
1105
|
+
"video/x-nsv",
|
|
1106
|
+
"video/x-smv",
|
|
1107
|
+
"video/x-braw",
|
|
1108
|
+
"video/x-r3d",
|
|
1109
|
+
"video/x-prores",
|
|
1110
|
+
"video/x-dnxhd",
|
|
1111
|
+
"video/x-cineform",
|
|
1112
|
+
"application/vnd.rn-realmedia",
|
|
1113
|
+
"application/vnd.rn-realmedia-vbr",
|
|
1114
|
+
"video/vnd.rn-realvideo"
|
|
1115
|
+
];
|
|
1116
|
+
export const AUDIO_MIME_TYPES = [
|
|
1117
|
+
"audio/mpeg",
|
|
1118
|
+
"audio/mp3",
|
|
1119
|
+
"audio/mpeg3",
|
|
1120
|
+
"audio/x-mpeg-3",
|
|
1121
|
+
"audio/mp4",
|
|
1122
|
+
"audio/x-m4a",
|
|
1123
|
+
"audio/m4a",
|
|
1124
|
+
"audio/aac",
|
|
1125
|
+
"audio/x-aac",
|
|
1126
|
+
"audio/aacp",
|
|
1127
|
+
"audio/ogg",
|
|
1128
|
+
"audio/x-ogg",
|
|
1129
|
+
"audio/opus",
|
|
1130
|
+
"audio/vorbis",
|
|
1131
|
+
"audio/x-vorbis",
|
|
1132
|
+
"audio/flac",
|
|
1133
|
+
"audio/x-flac",
|
|
1134
|
+
"audio/wav",
|
|
1135
|
+
"audio/x-wav",
|
|
1136
|
+
"audio/wave",
|
|
1137
|
+
"audio/x-pn-wav",
|
|
1138
|
+
"audio/vnd.wave",
|
|
1139
|
+
"audio/x-ms-wma",
|
|
1140
|
+
"audio/wma",
|
|
1141
|
+
"audio/aiff",
|
|
1142
|
+
"audio/x-aiff",
|
|
1143
|
+
"audio/x-ape",
|
|
1144
|
+
"audio/x-monkeys-audio",
|
|
1145
|
+
"audio/x-wavpack",
|
|
1146
|
+
"audio/x-tta",
|
|
1147
|
+
"audio/x-tak",
|
|
1148
|
+
"audio/x-shorten",
|
|
1149
|
+
"audio/mod",
|
|
1150
|
+
"audio/x-mod",
|
|
1151
|
+
"audio/s3m",
|
|
1152
|
+
"audio/x-s3m",
|
|
1153
|
+
"audio/it",
|
|
1154
|
+
"audio/x-it",
|
|
1155
|
+
"audio/xm",
|
|
1156
|
+
"audio/x-xm",
|
|
1157
|
+
"audio/midi",
|
|
1158
|
+
"audio/x-midi",
|
|
1159
|
+
"audio/mid",
|
|
1160
|
+
"audio/basic",
|
|
1161
|
+
"audio/x-au",
|
|
1162
|
+
"audio/au",
|
|
1163
|
+
"audio/x-pn-realaudio",
|
|
1164
|
+
"audio/vnd.rn-realaudio",
|
|
1165
|
+
"audio/x-realaudio",
|
|
1166
|
+
"audio/x-gsm",
|
|
1167
|
+
"audio/gsm",
|
|
1168
|
+
"audio/amr",
|
|
1169
|
+
"audio/amr-wb",
|
|
1170
|
+
"audio/3gpp",
|
|
1171
|
+
"audio/3gpp2",
|
|
1172
|
+
"audio/ac3",
|
|
1173
|
+
"audio/eac3",
|
|
1174
|
+
"audio/x-ac3",
|
|
1175
|
+
"audio/vnd.dolby.heaac.1",
|
|
1176
|
+
"audio/vnd.dolby.heaac.2",
|
|
1177
|
+
"audio/vnd.dts",
|
|
1178
|
+
"audio/vnd.dts.hd",
|
|
1179
|
+
"audio/x-dts",
|
|
1180
|
+
"audio/x-dtshd",
|
|
1181
|
+
"audio/x-matroska",
|
|
1182
|
+
"audio/webm",
|
|
1183
|
+
"audio/x-ms-wax",
|
|
1184
|
+
"audio/x-musepack",
|
|
1185
|
+
"audio/musepack",
|
|
1186
|
+
"audio/x-caf",
|
|
1187
|
+
"audio/x-w64",
|
|
1188
|
+
"audio/x-rf64",
|
|
1189
|
+
"audio/x-dsd",
|
|
1190
|
+
"audio/x-dsf",
|
|
1191
|
+
"audio/x-dff",
|
|
1192
|
+
"audio/speex",
|
|
1193
|
+
"audio/x-speex",
|
|
1194
|
+
"audio/qcelp",
|
|
1195
|
+
"audio/evrc",
|
|
1196
|
+
"audio/smv"
|
|
1197
|
+
];
|
|
1198
|
+
export const FONT_MIME_TYPES = [
|
|
1199
|
+
"font/woff",
|
|
1200
|
+
"font/woff2",
|
|
1201
|
+
"application/font-woff",
|
|
1202
|
+
"application/font-woff2",
|
|
1203
|
+
"application/x-font-woff",
|
|
1204
|
+
"application/x-font-woff2",
|
|
1205
|
+
"font/ttf",
|
|
1206
|
+
"font/sfnt",
|
|
1207
|
+
"application/font-sfnt",
|
|
1208
|
+
"application/x-font-ttf",
|
|
1209
|
+
"application/x-font-truetype",
|
|
1210
|
+
"font/otf",
|
|
1211
|
+
"application/x-font-otf",
|
|
1212
|
+
"application/x-font-opentype",
|
|
1213
|
+
"application/vnd.ms-opentype",
|
|
1214
|
+
"application/vnd.ms-fontobject",
|
|
1215
|
+
"font/eot",
|
|
1216
|
+
"application/x-font-type1",
|
|
1217
|
+
"application/x-font-pfb",
|
|
1218
|
+
"application/x-font-pfm",
|
|
1219
|
+
"font/type1",
|
|
1220
|
+
"application/x-font-bdf",
|
|
1221
|
+
"application/x-font-pcf",
|
|
1222
|
+
"application/x-font-snf",
|
|
1223
|
+
"application/x-font-linux-psf"
|
|
1224
|
+
];
|
|
1225
|
+
export const WEB_ASSET_MIME_TYPES = [
|
|
1226
|
+
"text/css",
|
|
1227
|
+
"text/javascript",
|
|
1228
|
+
"application/javascript",
|
|
1229
|
+
"application/x-javascript",
|
|
1230
|
+
"application/ecmascript",
|
|
1231
|
+
"text/ecmascript",
|
|
1232
|
+
"text/jscript",
|
|
1233
|
+
"application/json",
|
|
1234
|
+
"text/json",
|
|
1235
|
+
"application/ld+json",
|
|
1236
|
+
"application/manifest+json",
|
|
1237
|
+
"application/x-web-app-manifest+json",
|
|
1238
|
+
"application/wasm",
|
|
1239
|
+
"application/xml",
|
|
1240
|
+
"text/xml",
|
|
1241
|
+
"application/xhtml+xml",
|
|
1242
|
+
"application/atom+xml",
|
|
1243
|
+
"application/rss+xml",
|
|
1244
|
+
"application/xslt+xml",
|
|
1245
|
+
"application/mathml+xml",
|
|
1246
|
+
"text/html"
|
|
1247
|
+
];
|
|
1248
|
+
export const DATA_MIME_TYPES = [
|
|
1249
|
+
"application/json",
|
|
1250
|
+
"text/json",
|
|
1251
|
+
"application/x-json",
|
|
1252
|
+
"application/jsonl",
|
|
1253
|
+
"application/x-ndjson",
|
|
1254
|
+
"application/geo+json",
|
|
1255
|
+
"application/xml",
|
|
1256
|
+
"text/xml",
|
|
1257
|
+
"application/x-xml",
|
|
1258
|
+
"application/yaml",
|
|
1259
|
+
"application/x-yaml",
|
|
1260
|
+
"text/yaml",
|
|
1261
|
+
"text/x-yaml",
|
|
1262
|
+
"application/toml",
|
|
1263
|
+
"text/toml",
|
|
1264
|
+
"application/x-sqlite3",
|
|
1265
|
+
"application/vnd.sqlite3",
|
|
1266
|
+
"application/x-msaccess",
|
|
1267
|
+
"application/vnd.ms-access",
|
|
1268
|
+
"text/csv",
|
|
1269
|
+
"text/tab-separated-values",
|
|
1270
|
+
"text/comma-separated-values",
|
|
1271
|
+
"application/csv",
|
|
1272
|
+
"application/x-parquet",
|
|
1273
|
+
"application/x-avro",
|
|
1274
|
+
"application/x-orc",
|
|
1275
|
+
"application/vnd.apache.parquet",
|
|
1276
|
+
"application/vnd.apache.avro",
|
|
1277
|
+
"application/x-hdf",
|
|
1278
|
+
"application/x-hdf5",
|
|
1279
|
+
"application/x-netcdf",
|
|
1280
|
+
"application/x-matlab-data",
|
|
1281
|
+
"application/x-spss-sav",
|
|
1282
|
+
"application/x-spss-por",
|
|
1283
|
+
"application/x-stata-dta",
|
|
1284
|
+
"application/x-sas-data",
|
|
1285
|
+
"application/x-wine-extension-ini",
|
|
1286
|
+
"text/x-properties"
|
|
1287
|
+
];
|
|
1288
|
+
export const SAFE_WEB_PRESET = {
|
|
1289
|
+
excludeExtensions: [
|
|
1290
|
+
...EXECUTABLE_EXTENSIONS,
|
|
1291
|
+
...ARCHIVE_EXTENSIONS,
|
|
1292
|
+
...VIDEO_EXTENSIONS,
|
|
1293
|
+
...AUDIO_EXTENSIONS
|
|
1294
|
+
],
|
|
1295
|
+
excludeMimeTypes: [
|
|
1296
|
+
...EXECUTABLE_MIME_TYPES,
|
|
1297
|
+
...ARCHIVE_MIME_TYPES,
|
|
1298
|
+
...VIDEO_MIME_TYPES,
|
|
1299
|
+
...AUDIO_MIME_TYPES
|
|
1300
|
+
]
|
|
1301
|
+
};
|
|
1302
|
+
export const DOCUMENTS_ONLY_PRESET = {
|
|
1303
|
+
acceptAssetTypes: ["document"]
|
|
1304
|
+
};
|
|
1305
|
+
export const NO_MEDIA_PRESET = {
|
|
1306
|
+
excludeExtensions: [
|
|
1307
|
+
...VIDEO_EXTENSIONS,
|
|
1308
|
+
...AUDIO_EXTENSIONS
|
|
1309
|
+
],
|
|
1310
|
+
excludeMimeTypes: [
|
|
1311
|
+
...VIDEO_MIME_TYPES,
|
|
1312
|
+
...AUDIO_MIME_TYPES
|
|
1313
|
+
],
|
|
1314
|
+
rejectAssetTypes: ["video", "audio"]
|
|
1315
|
+
};
|
|
1316
|
+
export const MINIMAL_MIRROR_PRESET = {
|
|
1317
|
+
acceptAssetTypes: ["document", "stylesheet", "script", "image", "font", "favicon"],
|
|
1318
|
+
excludeExtensions: [
|
|
1319
|
+
...EXECUTABLE_EXTENSIONS,
|
|
1320
|
+
...ARCHIVE_EXTENSIONS,
|
|
1321
|
+
...VIDEO_EXTENSIONS,
|
|
1322
|
+
...AUDIO_EXTENSIONS,
|
|
1323
|
+
...DOCUMENT_EXTENSIONS,
|
|
1324
|
+
...DATA_EXTENSIONS
|
|
1325
|
+
]
|
|
1326
|
+
};
|
|
1327
|
+
export const TEXT_ONLY_PRESET = {
|
|
1328
|
+
acceptAssetTypes: ["document", "stylesheet"],
|
|
1329
|
+
rejectAssetTypes: ["image", "video", "audio", "font", "script"]
|
|
1330
|
+
};
|