@hot-updater/firebase 0.20.15 → 0.21.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { calculatePagination, createDatabasePlugin, createStorageKeyBuilder } from "@hot-updater/plugin-core";
1
+ import { calculatePagination, createDatabasePlugin, createStorageKeyBuilder, getContentType, parseStorageUri } from "@hot-updater/plugin-core";
2
2
  import * as admin from "firebase-admin";
3
3
  import fs from "fs/promises";
4
4
  import path from "path";
@@ -153,1344 +153,6 @@ const firebaseDatabase = (config, hooks) => {
153
153
  }, hooks);
154
154
  };
155
155
 
156
- //#endregion
157
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/other.js
158
- const types$1 = {
159
- "application/prs.cww": ["cww"],
160
- "application/prs.xsf+xml": ["xsf"],
161
- "application/vnd.1000minds.decision-model+xml": ["1km"],
162
- "application/vnd.3gpp.pic-bw-large": ["plb"],
163
- "application/vnd.3gpp.pic-bw-small": ["psb"],
164
- "application/vnd.3gpp.pic-bw-var": ["pvb"],
165
- "application/vnd.3gpp2.tcap": ["tcap"],
166
- "application/vnd.3m.post-it-notes": ["pwn"],
167
- "application/vnd.accpac.simply.aso": ["aso"],
168
- "application/vnd.accpac.simply.imp": ["imp"],
169
- "application/vnd.acucobol": ["acu"],
170
- "application/vnd.acucorp": ["atc", "acutc"],
171
- "application/vnd.adobe.air-application-installer-package+zip": ["air"],
172
- "application/vnd.adobe.formscentral.fcdt": ["fcdt"],
173
- "application/vnd.adobe.fxp": ["fxp", "fxpl"],
174
- "application/vnd.adobe.xdp+xml": ["xdp"],
175
- "application/vnd.adobe.xfdf": ["*xfdf"],
176
- "application/vnd.age": ["age"],
177
- "application/vnd.ahead.space": ["ahead"],
178
- "application/vnd.airzip.filesecure.azf": ["azf"],
179
- "application/vnd.airzip.filesecure.azs": ["azs"],
180
- "application/vnd.amazon.ebook": ["azw"],
181
- "application/vnd.americandynamics.acc": ["acc"],
182
- "application/vnd.amiga.ami": ["ami"],
183
- "application/vnd.android.package-archive": ["apk"],
184
- "application/vnd.anser-web-certificate-issue-initiation": ["cii"],
185
- "application/vnd.anser-web-funds-transfer-initiation": ["fti"],
186
- "application/vnd.antix.game-component": ["atx"],
187
- "application/vnd.apple.installer+xml": ["mpkg"],
188
- "application/vnd.apple.keynote": ["key"],
189
- "application/vnd.apple.mpegurl": ["m3u8"],
190
- "application/vnd.apple.numbers": ["numbers"],
191
- "application/vnd.apple.pages": ["pages"],
192
- "application/vnd.apple.pkpass": ["pkpass"],
193
- "application/vnd.aristanetworks.swi": ["swi"],
194
- "application/vnd.astraea-software.iota": ["iota"],
195
- "application/vnd.audiograph": ["aep"],
196
- "application/vnd.balsamiq.bmml+xml": ["bmml"],
197
- "application/vnd.blueice.multipass": ["mpm"],
198
- "application/vnd.bmi": ["bmi"],
199
- "application/vnd.businessobjects": ["rep"],
200
- "application/vnd.chemdraw+xml": ["cdxml"],
201
- "application/vnd.chipnuts.karaoke-mmd": ["mmd"],
202
- "application/vnd.cinderella": ["cdy"],
203
- "application/vnd.citationstyles.style+xml": ["csl"],
204
- "application/vnd.claymore": ["cla"],
205
- "application/vnd.cloanto.rp9": ["rp9"],
206
- "application/vnd.clonk.c4group": [
207
- "c4g",
208
- "c4d",
209
- "c4f",
210
- "c4p",
211
- "c4u"
212
- ],
213
- "application/vnd.cluetrust.cartomobile-config": ["c11amc"],
214
- "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
215
- "application/vnd.commonspace": ["csp"],
216
- "application/vnd.contact.cmsg": ["cdbcmsg"],
217
- "application/vnd.cosmocaller": ["cmc"],
218
- "application/vnd.crick.clicker": ["clkx"],
219
- "application/vnd.crick.clicker.keyboard": ["clkk"],
220
- "application/vnd.crick.clicker.palette": ["clkp"],
221
- "application/vnd.crick.clicker.template": ["clkt"],
222
- "application/vnd.crick.clicker.wordbank": ["clkw"],
223
- "application/vnd.criticaltools.wbs+xml": ["wbs"],
224
- "application/vnd.ctc-posml": ["pml"],
225
- "application/vnd.cups-ppd": ["ppd"],
226
- "application/vnd.curl.car": ["car"],
227
- "application/vnd.curl.pcurl": ["pcurl"],
228
- "application/vnd.dart": ["dart"],
229
- "application/vnd.data-vision.rdz": ["rdz"],
230
- "application/vnd.dbf": ["dbf"],
231
- "application/vnd.dece.data": [
232
- "uvf",
233
- "uvvf",
234
- "uvd",
235
- "uvvd"
236
- ],
237
- "application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
238
- "application/vnd.dece.unspecified": ["uvx", "uvvx"],
239
- "application/vnd.dece.zip": ["uvz", "uvvz"],
240
- "application/vnd.denovo.fcselayout-link": ["fe_launch"],
241
- "application/vnd.dna": ["dna"],
242
- "application/vnd.dolby.mlp": ["mlp"],
243
- "application/vnd.dpgraph": ["dpg"],
244
- "application/vnd.dreamfactory": ["dfac"],
245
- "application/vnd.ds-keypoint": ["kpxx"],
246
- "application/vnd.dvb.ait": ["ait"],
247
- "application/vnd.dvb.service": ["svc"],
248
- "application/vnd.dynageo": ["geo"],
249
- "application/vnd.ecowin.chart": ["mag"],
250
- "application/vnd.enliven": ["nml"],
251
- "application/vnd.epson.esf": ["esf"],
252
- "application/vnd.epson.msf": ["msf"],
253
- "application/vnd.epson.quickanime": ["qam"],
254
- "application/vnd.epson.salt": ["slt"],
255
- "application/vnd.epson.ssf": ["ssf"],
256
- "application/vnd.eszigno3+xml": ["es3", "et3"],
257
- "application/vnd.ezpix-album": ["ez2"],
258
- "application/vnd.ezpix-package": ["ez3"],
259
- "application/vnd.fdf": ["*fdf"],
260
- "application/vnd.fdsn.mseed": ["mseed"],
261
- "application/vnd.fdsn.seed": ["seed", "dataless"],
262
- "application/vnd.flographit": ["gph"],
263
- "application/vnd.fluxtime.clip": ["ftc"],
264
- "application/vnd.framemaker": [
265
- "fm",
266
- "frame",
267
- "maker",
268
- "book"
269
- ],
270
- "application/vnd.frogans.fnc": ["fnc"],
271
- "application/vnd.frogans.ltf": ["ltf"],
272
- "application/vnd.fsc.weblaunch": ["fsc"],
273
- "application/vnd.fujitsu.oasys": ["oas"],
274
- "application/vnd.fujitsu.oasys2": ["oa2"],
275
- "application/vnd.fujitsu.oasys3": ["oa3"],
276
- "application/vnd.fujitsu.oasysgp": ["fg5"],
277
- "application/vnd.fujitsu.oasysprs": ["bh2"],
278
- "application/vnd.fujixerox.ddd": ["ddd"],
279
- "application/vnd.fujixerox.docuworks": ["xdw"],
280
- "application/vnd.fujixerox.docuworks.binder": ["xbd"],
281
- "application/vnd.fuzzysheet": ["fzs"],
282
- "application/vnd.genomatix.tuxedo": ["txd"],
283
- "application/vnd.geogebra.file": ["ggb"],
284
- "application/vnd.geogebra.tool": ["ggt"],
285
- "application/vnd.geometry-explorer": ["gex", "gre"],
286
- "application/vnd.geonext": ["gxt"],
287
- "application/vnd.geoplan": ["g2w"],
288
- "application/vnd.geospace": ["g3w"],
289
- "application/vnd.gmx": ["gmx"],
290
- "application/vnd.google-apps.document": ["gdoc"],
291
- "application/vnd.google-apps.presentation": ["gslides"],
292
- "application/vnd.google-apps.spreadsheet": ["gsheet"],
293
- "application/vnd.google-earth.kml+xml": ["kml"],
294
- "application/vnd.google-earth.kmz": ["kmz"],
295
- "application/vnd.grafeq": ["gqf", "gqs"],
296
- "application/vnd.groove-account": ["gac"],
297
- "application/vnd.groove-help": ["ghf"],
298
- "application/vnd.groove-identity-message": ["gim"],
299
- "application/vnd.groove-injector": ["grv"],
300
- "application/vnd.groove-tool-message": ["gtm"],
301
- "application/vnd.groove-tool-template": ["tpl"],
302
- "application/vnd.groove-vcard": ["vcg"],
303
- "application/vnd.hal+xml": ["hal"],
304
- "application/vnd.handheld-entertainment+xml": ["zmm"],
305
- "application/vnd.hbci": ["hbci"],
306
- "application/vnd.hhe.lesson-player": ["les"],
307
- "application/vnd.hp-hpgl": ["hpgl"],
308
- "application/vnd.hp-hpid": ["hpid"],
309
- "application/vnd.hp-hps": ["hps"],
310
- "application/vnd.hp-jlyt": ["jlt"],
311
- "application/vnd.hp-pcl": ["pcl"],
312
- "application/vnd.hp-pclxl": ["pclxl"],
313
- "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
314
- "application/vnd.ibm.minipay": ["mpy"],
315
- "application/vnd.ibm.modcap": [
316
- "afp",
317
- "listafp",
318
- "list3820"
319
- ],
320
- "application/vnd.ibm.rights-management": ["irm"],
321
- "application/vnd.ibm.secure-container": ["sc"],
322
- "application/vnd.iccprofile": ["icc", "icm"],
323
- "application/vnd.igloader": ["igl"],
324
- "application/vnd.immervision-ivp": ["ivp"],
325
- "application/vnd.immervision-ivu": ["ivu"],
326
- "application/vnd.insors.igm": ["igm"],
327
- "application/vnd.intercon.formnet": ["xpw", "xpx"],
328
- "application/vnd.intergeo": ["i2g"],
329
- "application/vnd.intu.qbo": ["qbo"],
330
- "application/vnd.intu.qfx": ["qfx"],
331
- "application/vnd.ipunplugged.rcprofile": ["rcprofile"],
332
- "application/vnd.irepository.package+xml": ["irp"],
333
- "application/vnd.is-xpr": ["xpr"],
334
- "application/vnd.isac.fcs": ["fcs"],
335
- "application/vnd.jam": ["jam"],
336
- "application/vnd.jcp.javame.midlet-rms": ["rms"],
337
- "application/vnd.jisp": ["jisp"],
338
- "application/vnd.joost.joda-archive": ["joda"],
339
- "application/vnd.kahootz": ["ktz", "ktr"],
340
- "application/vnd.kde.karbon": ["karbon"],
341
- "application/vnd.kde.kchart": ["chrt"],
342
- "application/vnd.kde.kformula": ["kfo"],
343
- "application/vnd.kde.kivio": ["flw"],
344
- "application/vnd.kde.kontour": ["kon"],
345
- "application/vnd.kde.kpresenter": ["kpr", "kpt"],
346
- "application/vnd.kde.kspread": ["ksp"],
347
- "application/vnd.kde.kword": ["kwd", "kwt"],
348
- "application/vnd.kenameaapp": ["htke"],
349
- "application/vnd.kidspiration": ["kia"],
350
- "application/vnd.kinar": ["kne", "knp"],
351
- "application/vnd.koan": [
352
- "skp",
353
- "skd",
354
- "skt",
355
- "skm"
356
- ],
357
- "application/vnd.kodak-descriptor": ["sse"],
358
- "application/vnd.las.las+xml": ["lasxml"],
359
- "application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
360
- "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
361
- "application/vnd.lotus-1-2-3": ["123"],
362
- "application/vnd.lotus-approach": ["apr"],
363
- "application/vnd.lotus-freelance": ["pre"],
364
- "application/vnd.lotus-notes": ["nsf"],
365
- "application/vnd.lotus-organizer": ["org"],
366
- "application/vnd.lotus-screencam": ["scm"],
367
- "application/vnd.lotus-wordpro": ["lwp"],
368
- "application/vnd.macports.portpkg": ["portpkg"],
369
- "application/vnd.mapbox-vector-tile": ["mvt"],
370
- "application/vnd.mcd": ["mcd"],
371
- "application/vnd.medcalcdata": ["mc1"],
372
- "application/vnd.mediastation.cdkey": ["cdkey"],
373
- "application/vnd.mfer": ["mwf"],
374
- "application/vnd.mfmp": ["mfm"],
375
- "application/vnd.micrografx.flo": ["flo"],
376
- "application/vnd.micrografx.igx": ["igx"],
377
- "application/vnd.mif": ["mif"],
378
- "application/vnd.mobius.daf": ["daf"],
379
- "application/vnd.mobius.dis": ["dis"],
380
- "application/vnd.mobius.mbk": ["mbk"],
381
- "application/vnd.mobius.mqy": ["mqy"],
382
- "application/vnd.mobius.msl": ["msl"],
383
- "application/vnd.mobius.plc": ["plc"],
384
- "application/vnd.mobius.txf": ["txf"],
385
- "application/vnd.mophun.application": ["mpn"],
386
- "application/vnd.mophun.certificate": ["mpc"],
387
- "application/vnd.mozilla.xul+xml": ["xul"],
388
- "application/vnd.ms-artgalry": ["cil"],
389
- "application/vnd.ms-cab-compressed": ["cab"],
390
- "application/vnd.ms-excel": [
391
- "xls",
392
- "xlm",
393
- "xla",
394
- "xlc",
395
- "xlt",
396
- "xlw"
397
- ],
398
- "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
399
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
400
- "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
401
- "application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
402
- "application/vnd.ms-fontobject": ["eot"],
403
- "application/vnd.ms-htmlhelp": ["chm"],
404
- "application/vnd.ms-ims": ["ims"],
405
- "application/vnd.ms-lrm": ["lrm"],
406
- "application/vnd.ms-officetheme": ["thmx"],
407
- "application/vnd.ms-outlook": ["msg"],
408
- "application/vnd.ms-pki.seccat": ["cat"],
409
- "application/vnd.ms-pki.stl": ["*stl"],
410
- "application/vnd.ms-powerpoint": [
411
- "ppt",
412
- "pps",
413
- "pot"
414
- ],
415
- "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
416
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
417
- "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
418
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
419
- "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
420
- "application/vnd.ms-project": ["*mpp", "mpt"],
421
- "application/vnd.ms-word.document.macroenabled.12": ["docm"],
422
- "application/vnd.ms-word.template.macroenabled.12": ["dotm"],
423
- "application/vnd.ms-works": [
424
- "wps",
425
- "wks",
426
- "wcm",
427
- "wdb"
428
- ],
429
- "application/vnd.ms-wpl": ["wpl"],
430
- "application/vnd.ms-xpsdocument": ["xps"],
431
- "application/vnd.mseq": ["mseq"],
432
- "application/vnd.musician": ["mus"],
433
- "application/vnd.muvee.style": ["msty"],
434
- "application/vnd.mynfc": ["taglet"],
435
- "application/vnd.neurolanguage.nlu": ["nlu"],
436
- "application/vnd.nitf": ["ntf", "nitf"],
437
- "application/vnd.noblenet-directory": ["nnd"],
438
- "application/vnd.noblenet-sealer": ["nns"],
439
- "application/vnd.noblenet-web": ["nnw"],
440
- "application/vnd.nokia.n-gage.ac+xml": ["*ac"],
441
- "application/vnd.nokia.n-gage.data": ["ngdat"],
442
- "application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
443
- "application/vnd.nokia.radio-preset": ["rpst"],
444
- "application/vnd.nokia.radio-presets": ["rpss"],
445
- "application/vnd.novadigm.edm": ["edm"],
446
- "application/vnd.novadigm.edx": ["edx"],
447
- "application/vnd.novadigm.ext": ["ext"],
448
- "application/vnd.oasis.opendocument.chart": ["odc"],
449
- "application/vnd.oasis.opendocument.chart-template": ["otc"],
450
- "application/vnd.oasis.opendocument.database": ["odb"],
451
- "application/vnd.oasis.opendocument.formula": ["odf"],
452
- "application/vnd.oasis.opendocument.formula-template": ["odft"],
453
- "application/vnd.oasis.opendocument.graphics": ["odg"],
454
- "application/vnd.oasis.opendocument.graphics-template": ["otg"],
455
- "application/vnd.oasis.opendocument.image": ["odi"],
456
- "application/vnd.oasis.opendocument.image-template": ["oti"],
457
- "application/vnd.oasis.opendocument.presentation": ["odp"],
458
- "application/vnd.oasis.opendocument.presentation-template": ["otp"],
459
- "application/vnd.oasis.opendocument.spreadsheet": ["ods"],
460
- "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
461
- "application/vnd.oasis.opendocument.text": ["odt"],
462
- "application/vnd.oasis.opendocument.text-master": ["odm"],
463
- "application/vnd.oasis.opendocument.text-template": ["ott"],
464
- "application/vnd.oasis.opendocument.text-web": ["oth"],
465
- "application/vnd.olpc-sugar": ["xo"],
466
- "application/vnd.oma.dd2+xml": ["dd2"],
467
- "application/vnd.openblox.game+xml": ["obgx"],
468
- "application/vnd.openofficeorg.extension": ["oxt"],
469
- "application/vnd.openstreetmap.data+xml": ["osm"],
470
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"],
471
- "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"],
472
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"],
473
- "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"],
474
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
475
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"],
476
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"],
477
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"],
478
- "application/vnd.osgeo.mapguide.package": ["mgp"],
479
- "application/vnd.osgi.dp": ["dp"],
480
- "application/vnd.osgi.subsystem": ["esa"],
481
- "application/vnd.palm": [
482
- "pdb",
483
- "pqa",
484
- "oprc"
485
- ],
486
- "application/vnd.pawaafile": ["paw"],
487
- "application/vnd.pg.format": ["str"],
488
- "application/vnd.pg.osasli": ["ei6"],
489
- "application/vnd.picsel": ["efif"],
490
- "application/vnd.pmi.widget": ["wg"],
491
- "application/vnd.pocketlearn": ["plf"],
492
- "application/vnd.powerbuilder6": ["pbd"],
493
- "application/vnd.previewsystems.box": ["box"],
494
- "application/vnd.proteus.magazine": ["mgz"],
495
- "application/vnd.publishare-delta-tree": ["qps"],
496
- "application/vnd.pvi.ptid1": ["ptid"],
497
- "application/vnd.pwg-xhtml-print+xml": ["xhtm"],
498
- "application/vnd.quark.quarkxpress": [
499
- "qxd",
500
- "qxt",
501
- "qwd",
502
- "qwt",
503
- "qxl",
504
- "qxb"
505
- ],
506
- "application/vnd.rar": ["rar"],
507
- "application/vnd.realvnc.bed": ["bed"],
508
- "application/vnd.recordare.musicxml": ["mxl"],
509
- "application/vnd.recordare.musicxml+xml": ["musicxml"],
510
- "application/vnd.rig.cryptonote": ["cryptonote"],
511
- "application/vnd.rim.cod": ["cod"],
512
- "application/vnd.rn-realmedia": ["rm"],
513
- "application/vnd.rn-realmedia-vbr": ["rmvb"],
514
- "application/vnd.route66.link66+xml": ["link66"],
515
- "application/vnd.sailingtracker.track": ["st"],
516
- "application/vnd.seemail": ["see"],
517
- "application/vnd.sema": ["sema"],
518
- "application/vnd.semd": ["semd"],
519
- "application/vnd.semf": ["semf"],
520
- "application/vnd.shana.informed.formdata": ["ifm"],
521
- "application/vnd.shana.informed.formtemplate": ["itp"],
522
- "application/vnd.shana.informed.interchange": ["iif"],
523
- "application/vnd.shana.informed.package": ["ipk"],
524
- "application/vnd.simtech-mindmapper": ["twd", "twds"],
525
- "application/vnd.smaf": ["mmf"],
526
- "application/vnd.smart.teacher": ["teacher"],
527
- "application/vnd.software602.filler.form+xml": ["fo"],
528
- "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
529
- "application/vnd.spotfire.dxp": ["dxp"],
530
- "application/vnd.spotfire.sfs": ["sfs"],
531
- "application/vnd.stardivision.calc": ["sdc"],
532
- "application/vnd.stardivision.draw": ["sda"],
533
- "application/vnd.stardivision.impress": ["sdd"],
534
- "application/vnd.stardivision.math": ["smf"],
535
- "application/vnd.stardivision.writer": ["sdw", "vor"],
536
- "application/vnd.stardivision.writer-global": ["sgl"],
537
- "application/vnd.stepmania.package": ["smzip"],
538
- "application/vnd.stepmania.stepchart": ["sm"],
539
- "application/vnd.sun.wadl+xml": ["wadl"],
540
- "application/vnd.sun.xml.calc": ["sxc"],
541
- "application/vnd.sun.xml.calc.template": ["stc"],
542
- "application/vnd.sun.xml.draw": ["sxd"],
543
- "application/vnd.sun.xml.draw.template": ["std"],
544
- "application/vnd.sun.xml.impress": ["sxi"],
545
- "application/vnd.sun.xml.impress.template": ["sti"],
546
- "application/vnd.sun.xml.math": ["sxm"],
547
- "application/vnd.sun.xml.writer": ["sxw"],
548
- "application/vnd.sun.xml.writer.global": ["sxg"],
549
- "application/vnd.sun.xml.writer.template": ["stw"],
550
- "application/vnd.sus-calendar": ["sus", "susp"],
551
- "application/vnd.svd": ["svd"],
552
- "application/vnd.symbian.install": ["sis", "sisx"],
553
- "application/vnd.syncml+xml": ["xsm"],
554
- "application/vnd.syncml.dm+wbxml": ["bdm"],
555
- "application/vnd.syncml.dm+xml": ["xdm"],
556
- "application/vnd.syncml.dmddf+xml": ["ddf"],
557
- "application/vnd.tao.intent-module-archive": ["tao"],
558
- "application/vnd.tcpdump.pcap": [
559
- "pcap",
560
- "cap",
561
- "dmp"
562
- ],
563
- "application/vnd.tmobile-livetv": ["tmo"],
564
- "application/vnd.trid.tpt": ["tpt"],
565
- "application/vnd.triscape.mxs": ["mxs"],
566
- "application/vnd.trueapp": ["tra"],
567
- "application/vnd.ufdl": ["ufd", "ufdl"],
568
- "application/vnd.uiq.theme": ["utz"],
569
- "application/vnd.umajin": ["umj"],
570
- "application/vnd.unity": ["unityweb"],
571
- "application/vnd.uoml+xml": ["uoml", "uo"],
572
- "application/vnd.vcx": ["vcx"],
573
- "application/vnd.visio": [
574
- "vsd",
575
- "vst",
576
- "vss",
577
- "vsw"
578
- ],
579
- "application/vnd.visionary": ["vis"],
580
- "application/vnd.vsf": ["vsf"],
581
- "application/vnd.wap.wbxml": ["wbxml"],
582
- "application/vnd.wap.wmlc": ["wmlc"],
583
- "application/vnd.wap.wmlscriptc": ["wmlsc"],
584
- "application/vnd.webturbo": ["wtb"],
585
- "application/vnd.wolfram.player": ["nbp"],
586
- "application/vnd.wordperfect": ["wpd"],
587
- "application/vnd.wqd": ["wqd"],
588
- "application/vnd.wt.stf": ["stf"],
589
- "application/vnd.xara": ["xar"],
590
- "application/vnd.xfdl": ["xfdl"],
591
- "application/vnd.yamaha.hv-dic": ["hvd"],
592
- "application/vnd.yamaha.hv-script": ["hvs"],
593
- "application/vnd.yamaha.hv-voice": ["hvp"],
594
- "application/vnd.yamaha.openscoreformat": ["osf"],
595
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
596
- "application/vnd.yamaha.smaf-audio": ["saf"],
597
- "application/vnd.yamaha.smaf-phrase": ["spf"],
598
- "application/vnd.yellowriver-custom-menu": ["cmp"],
599
- "application/vnd.zul": ["zir", "zirz"],
600
- "application/vnd.zzazz.deck+xml": ["zaz"],
601
- "application/x-7z-compressed": ["7z"],
602
- "application/x-abiword": ["abw"],
603
- "application/x-ace-compressed": ["ace"],
604
- "application/x-apple-diskimage": ["*dmg"],
605
- "application/x-arj": ["arj"],
606
- "application/x-authorware-bin": [
607
- "aab",
608
- "x32",
609
- "u32",
610
- "vox"
611
- ],
612
- "application/x-authorware-map": ["aam"],
613
- "application/x-authorware-seg": ["aas"],
614
- "application/x-bcpio": ["bcpio"],
615
- "application/x-bdoc": ["*bdoc"],
616
- "application/x-bittorrent": ["torrent"],
617
- "application/x-blorb": ["blb", "blorb"],
618
- "application/x-bzip": ["bz"],
619
- "application/x-bzip2": ["bz2", "boz"],
620
- "application/x-cbr": [
621
- "cbr",
622
- "cba",
623
- "cbt",
624
- "cbz",
625
- "cb7"
626
- ],
627
- "application/x-cdlink": ["vcd"],
628
- "application/x-cfs-compressed": ["cfs"],
629
- "application/x-chat": ["chat"],
630
- "application/x-chess-pgn": ["pgn"],
631
- "application/x-chrome-extension": ["crx"],
632
- "application/x-cocoa": ["cco"],
633
- "application/x-conference": ["nsc"],
634
- "application/x-cpio": ["cpio"],
635
- "application/x-csh": ["csh"],
636
- "application/x-debian-package": ["*deb", "udeb"],
637
- "application/x-dgc-compressed": ["dgc"],
638
- "application/x-director": [
639
- "dir",
640
- "dcr",
641
- "dxr",
642
- "cst",
643
- "cct",
644
- "cxt",
645
- "w3d",
646
- "fgd",
647
- "swa"
648
- ],
649
- "application/x-doom": ["wad"],
650
- "application/x-dtbncx+xml": ["ncx"],
651
- "application/x-dtbook+xml": ["dtb"],
652
- "application/x-dtbresource+xml": ["res"],
653
- "application/x-dvi": ["dvi"],
654
- "application/x-envoy": ["evy"],
655
- "application/x-eva": ["eva"],
656
- "application/x-font-bdf": ["bdf"],
657
- "application/x-font-ghostscript": ["gsf"],
658
- "application/x-font-linux-psf": ["psf"],
659
- "application/x-font-pcf": ["pcf"],
660
- "application/x-font-snf": ["snf"],
661
- "application/x-font-type1": [
662
- "pfa",
663
- "pfb",
664
- "pfm",
665
- "afm"
666
- ],
667
- "application/x-freearc": ["arc"],
668
- "application/x-futuresplash": ["spl"],
669
- "application/x-gca-compressed": ["gca"],
670
- "application/x-glulx": ["ulx"],
671
- "application/x-gnumeric": ["gnumeric"],
672
- "application/x-gramps-xml": ["gramps"],
673
- "application/x-gtar": ["gtar"],
674
- "application/x-hdf": ["hdf"],
675
- "application/x-httpd-php": ["php"],
676
- "application/x-install-instructions": ["install"],
677
- "application/x-iso9660-image": ["*iso"],
678
- "application/x-iwork-keynote-sffkey": ["*key"],
679
- "application/x-iwork-numbers-sffnumbers": ["*numbers"],
680
- "application/x-iwork-pages-sffpages": ["*pages"],
681
- "application/x-java-archive-diff": ["jardiff"],
682
- "application/x-java-jnlp-file": ["jnlp"],
683
- "application/x-keepass2": ["kdbx"],
684
- "application/x-latex": ["latex"],
685
- "application/x-lua-bytecode": ["luac"],
686
- "application/x-lzh-compressed": ["lzh", "lha"],
687
- "application/x-makeself": ["run"],
688
- "application/x-mie": ["mie"],
689
- "application/x-mobipocket-ebook": ["*prc", "mobi"],
690
- "application/x-ms-application": ["application"],
691
- "application/x-ms-shortcut": ["lnk"],
692
- "application/x-ms-wmd": ["wmd"],
693
- "application/x-ms-wmz": ["wmz"],
694
- "application/x-ms-xbap": ["xbap"],
695
- "application/x-msaccess": ["mdb"],
696
- "application/x-msbinder": ["obd"],
697
- "application/x-mscardfile": ["crd"],
698
- "application/x-msclip": ["clp"],
699
- "application/x-msdos-program": ["*exe"],
700
- "application/x-msdownload": [
701
- "*exe",
702
- "*dll",
703
- "com",
704
- "bat",
705
- "*msi"
706
- ],
707
- "application/x-msmediaview": [
708
- "mvb",
709
- "m13",
710
- "m14"
711
- ],
712
- "application/x-msmetafile": [
713
- "*wmf",
714
- "*wmz",
715
- "*emf",
716
- "emz"
717
- ],
718
- "application/x-msmoney": ["mny"],
719
- "application/x-mspublisher": ["pub"],
720
- "application/x-msschedule": ["scd"],
721
- "application/x-msterminal": ["trm"],
722
- "application/x-mswrite": ["wri"],
723
- "application/x-netcdf": ["nc", "cdf"],
724
- "application/x-ns-proxy-autoconfig": ["pac"],
725
- "application/x-nzb": ["nzb"],
726
- "application/x-perl": ["pl", "pm"],
727
- "application/x-pilot": ["*prc", "*pdb"],
728
- "application/x-pkcs12": ["p12", "pfx"],
729
- "application/x-pkcs7-certificates": ["p7b", "spc"],
730
- "application/x-pkcs7-certreqresp": ["p7r"],
731
- "application/x-rar-compressed": ["*rar"],
732
- "application/x-redhat-package-manager": ["rpm"],
733
- "application/x-research-info-systems": ["ris"],
734
- "application/x-sea": ["sea"],
735
- "application/x-sh": ["sh"],
736
- "application/x-shar": ["shar"],
737
- "application/x-shockwave-flash": ["swf"],
738
- "application/x-silverlight-app": ["xap"],
739
- "application/x-sql": ["*sql"],
740
- "application/x-stuffit": ["sit"],
741
- "application/x-stuffitx": ["sitx"],
742
- "application/x-subrip": ["srt"],
743
- "application/x-sv4cpio": ["sv4cpio"],
744
- "application/x-sv4crc": ["sv4crc"],
745
- "application/x-t3vm-image": ["t3"],
746
- "application/x-tads": ["gam"],
747
- "application/x-tar": ["tar"],
748
- "application/x-tcl": ["tcl", "tk"],
749
- "application/x-tex": ["tex"],
750
- "application/x-tex-tfm": ["tfm"],
751
- "application/x-texinfo": ["texinfo", "texi"],
752
- "application/x-tgif": ["*obj"],
753
- "application/x-ustar": ["ustar"],
754
- "application/x-virtualbox-hdd": ["hdd"],
755
- "application/x-virtualbox-ova": ["ova"],
756
- "application/x-virtualbox-ovf": ["ovf"],
757
- "application/x-virtualbox-vbox": ["vbox"],
758
- "application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
759
- "application/x-virtualbox-vdi": ["vdi"],
760
- "application/x-virtualbox-vhd": ["vhd"],
761
- "application/x-virtualbox-vmdk": ["vmdk"],
762
- "application/x-wais-source": ["src"],
763
- "application/x-web-app-manifest+json": ["webapp"],
764
- "application/x-x509-ca-cert": [
765
- "der",
766
- "crt",
767
- "pem"
768
- ],
769
- "application/x-xfig": ["fig"],
770
- "application/x-xliff+xml": ["*xlf"],
771
- "application/x-xpinstall": ["xpi"],
772
- "application/x-xz": ["xz"],
773
- "application/x-zmachine": [
774
- "z1",
775
- "z2",
776
- "z3",
777
- "z4",
778
- "z5",
779
- "z6",
780
- "z7",
781
- "z8"
782
- ],
783
- "audio/vnd.dece.audio": ["uva", "uvva"],
784
- "audio/vnd.digital-winds": ["eol"],
785
- "audio/vnd.dra": ["dra"],
786
- "audio/vnd.dts": ["dts"],
787
- "audio/vnd.dts.hd": ["dtshd"],
788
- "audio/vnd.lucent.voice": ["lvp"],
789
- "audio/vnd.ms-playready.media.pya": ["pya"],
790
- "audio/vnd.nuera.ecelp4800": ["ecelp4800"],
791
- "audio/vnd.nuera.ecelp7470": ["ecelp7470"],
792
- "audio/vnd.nuera.ecelp9600": ["ecelp9600"],
793
- "audio/vnd.rip": ["rip"],
794
- "audio/x-aac": ["*aac"],
795
- "audio/x-aiff": [
796
- "aif",
797
- "aiff",
798
- "aifc"
799
- ],
800
- "audio/x-caf": ["caf"],
801
- "audio/x-flac": ["flac"],
802
- "audio/x-m4a": ["*m4a"],
803
- "audio/x-matroska": ["mka"],
804
- "audio/x-mpegurl": ["m3u"],
805
- "audio/x-ms-wax": ["wax"],
806
- "audio/x-ms-wma": ["wma"],
807
- "audio/x-pn-realaudio": ["ram", "ra"],
808
- "audio/x-pn-realaudio-plugin": ["rmp"],
809
- "audio/x-realaudio": ["*ra"],
810
- "audio/x-wav": ["*wav"],
811
- "chemical/x-cdx": ["cdx"],
812
- "chemical/x-cif": ["cif"],
813
- "chemical/x-cmdf": ["cmdf"],
814
- "chemical/x-cml": ["cml"],
815
- "chemical/x-csml": ["csml"],
816
- "chemical/x-xyz": ["xyz"],
817
- "image/prs.btif": ["btif", "btf"],
818
- "image/prs.pti": ["pti"],
819
- "image/vnd.adobe.photoshop": ["psd"],
820
- "image/vnd.airzip.accelerator.azv": ["azv"],
821
- "image/vnd.dece.graphic": [
822
- "uvi",
823
- "uvvi",
824
- "uvg",
825
- "uvvg"
826
- ],
827
- "image/vnd.djvu": ["djvu", "djv"],
828
- "image/vnd.dvb.subtitle": ["*sub"],
829
- "image/vnd.dwg": ["dwg"],
830
- "image/vnd.dxf": ["dxf"],
831
- "image/vnd.fastbidsheet": ["fbs"],
832
- "image/vnd.fpx": ["fpx"],
833
- "image/vnd.fst": ["fst"],
834
- "image/vnd.fujixerox.edmics-mmr": ["mmr"],
835
- "image/vnd.fujixerox.edmics-rlc": ["rlc"],
836
- "image/vnd.microsoft.icon": ["ico"],
837
- "image/vnd.ms-dds": ["dds"],
838
- "image/vnd.ms-modi": ["mdi"],
839
- "image/vnd.ms-photo": ["wdp"],
840
- "image/vnd.net-fpx": ["npx"],
841
- "image/vnd.pco.b16": ["b16"],
842
- "image/vnd.tencent.tap": ["tap"],
843
- "image/vnd.valve.source.texture": ["vtf"],
844
- "image/vnd.wap.wbmp": ["wbmp"],
845
- "image/vnd.xiff": ["xif"],
846
- "image/vnd.zbrush.pcx": ["pcx"],
847
- "image/x-3ds": ["3ds"],
848
- "image/x-cmu-raster": ["ras"],
849
- "image/x-cmx": ["cmx"],
850
- "image/x-freehand": [
851
- "fh",
852
- "fhc",
853
- "fh4",
854
- "fh5",
855
- "fh7"
856
- ],
857
- "image/x-icon": ["*ico"],
858
- "image/x-jng": ["jng"],
859
- "image/x-mrsid-image": ["sid"],
860
- "image/x-ms-bmp": ["*bmp"],
861
- "image/x-pcx": ["*pcx"],
862
- "image/x-pict": ["pic", "pct"],
863
- "image/x-portable-anymap": ["pnm"],
864
- "image/x-portable-bitmap": ["pbm"],
865
- "image/x-portable-graymap": ["pgm"],
866
- "image/x-portable-pixmap": ["ppm"],
867
- "image/x-rgb": ["rgb"],
868
- "image/x-tga": ["tga"],
869
- "image/x-xbitmap": ["xbm"],
870
- "image/x-xpixmap": ["xpm"],
871
- "image/x-xwindowdump": ["xwd"],
872
- "message/vnd.wfa.wsc": ["wsc"],
873
- "model/vnd.cld": ["cld"],
874
- "model/vnd.collada+xml": ["dae"],
875
- "model/vnd.dwf": ["dwf"],
876
- "model/vnd.gdl": ["gdl"],
877
- "model/vnd.gtw": ["gtw"],
878
- "model/vnd.mts": ["mts"],
879
- "model/vnd.opengex": ["ogex"],
880
- "model/vnd.parasolid.transmit.binary": ["x_b"],
881
- "model/vnd.parasolid.transmit.text": ["x_t"],
882
- "model/vnd.pytha.pyox": ["pyo", "pyox"],
883
- "model/vnd.sap.vds": ["vds"],
884
- "model/vnd.usda": ["usda"],
885
- "model/vnd.usdz+zip": ["usdz"],
886
- "model/vnd.valve.source.compiled-map": ["bsp"],
887
- "model/vnd.vtu": ["vtu"],
888
- "text/prs.lines.tag": ["dsc"],
889
- "text/vnd.curl": ["curl"],
890
- "text/vnd.curl.dcurl": ["dcurl"],
891
- "text/vnd.curl.mcurl": ["mcurl"],
892
- "text/vnd.curl.scurl": ["scurl"],
893
- "text/vnd.dvb.subtitle": ["sub"],
894
- "text/vnd.familysearch.gedcom": ["ged"],
895
- "text/vnd.fly": ["fly"],
896
- "text/vnd.fmi.flexstor": ["flx"],
897
- "text/vnd.graphviz": ["gv"],
898
- "text/vnd.in3d.3dml": ["3dml"],
899
- "text/vnd.in3d.spot": ["spot"],
900
- "text/vnd.sun.j2me.app-descriptor": ["jad"],
901
- "text/vnd.wap.wml": ["wml"],
902
- "text/vnd.wap.wmlscript": ["wmls"],
903
- "text/x-asm": ["s", "asm"],
904
- "text/x-c": [
905
- "c",
906
- "cc",
907
- "cxx",
908
- "cpp",
909
- "h",
910
- "hh",
911
- "dic"
912
- ],
913
- "text/x-component": ["htc"],
914
- "text/x-fortran": [
915
- "f",
916
- "for",
917
- "f77",
918
- "f90"
919
- ],
920
- "text/x-handlebars-template": ["hbs"],
921
- "text/x-java-source": ["java"],
922
- "text/x-lua": ["lua"],
923
- "text/x-markdown": ["mkd"],
924
- "text/x-nfo": ["nfo"],
925
- "text/x-opml": ["opml"],
926
- "text/x-org": ["*org"],
927
- "text/x-pascal": ["p", "pas"],
928
- "text/x-processing": ["pde"],
929
- "text/x-sass": ["sass"],
930
- "text/x-scss": ["scss"],
931
- "text/x-setext": ["etx"],
932
- "text/x-sfv": ["sfv"],
933
- "text/x-suse-ymp": ["ymp"],
934
- "text/x-uuencode": ["uu"],
935
- "text/x-vcalendar": ["vcs"],
936
- "text/x-vcard": ["vcf"],
937
- "video/vnd.dece.hd": ["uvh", "uvvh"],
938
- "video/vnd.dece.mobile": ["uvm", "uvvm"],
939
- "video/vnd.dece.pd": ["uvp", "uvvp"],
940
- "video/vnd.dece.sd": ["uvs", "uvvs"],
941
- "video/vnd.dece.video": ["uvv", "uvvv"],
942
- "video/vnd.dvb.file": ["dvb"],
943
- "video/vnd.fvt": ["fvt"],
944
- "video/vnd.mpegurl": ["mxu", "m4u"],
945
- "video/vnd.ms-playready.media.pyv": ["pyv"],
946
- "video/vnd.uvvu.mp4": ["uvu", "uvvu"],
947
- "video/vnd.vivo": ["viv"],
948
- "video/x-f4v": ["f4v"],
949
- "video/x-fli": ["fli"],
950
- "video/x-flv": ["flv"],
951
- "video/x-m4v": ["m4v"],
952
- "video/x-matroska": [
953
- "mkv",
954
- "mk3d",
955
- "mks"
956
- ],
957
- "video/x-mng": ["mng"],
958
- "video/x-ms-asf": ["asf", "asx"],
959
- "video/x-ms-vob": ["vob"],
960
- "video/x-ms-wm": ["wm"],
961
- "video/x-ms-wmv": ["wmv"],
962
- "video/x-ms-wmx": ["wmx"],
963
- "video/x-ms-wvx": ["wvx"],
964
- "video/x-msvideo": ["avi"],
965
- "video/x-sgi-movie": ["movie"],
966
- "video/x-smv": ["smv"],
967
- "x-conference/x-cooltalk": ["ice"]
968
- };
969
- Object.freeze(types$1);
970
- var other_default = types$1;
971
-
972
- //#endregion
973
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/types/standard.js
974
- const types = {
975
- "application/andrew-inset": ["ez"],
976
- "application/appinstaller": ["appinstaller"],
977
- "application/applixware": ["aw"],
978
- "application/appx": ["appx"],
979
- "application/appxbundle": ["appxbundle"],
980
- "application/atom+xml": ["atom"],
981
- "application/atomcat+xml": ["atomcat"],
982
- "application/atomdeleted+xml": ["atomdeleted"],
983
- "application/atomsvc+xml": ["atomsvc"],
984
- "application/atsc-dwd+xml": ["dwd"],
985
- "application/atsc-held+xml": ["held"],
986
- "application/atsc-rsat+xml": ["rsat"],
987
- "application/automationml-aml+xml": ["aml"],
988
- "application/automationml-amlx+zip": ["amlx"],
989
- "application/bdoc": ["bdoc"],
990
- "application/calendar+xml": ["xcs"],
991
- "application/ccxml+xml": ["ccxml"],
992
- "application/cdfx+xml": ["cdfx"],
993
- "application/cdmi-capability": ["cdmia"],
994
- "application/cdmi-container": ["cdmic"],
995
- "application/cdmi-domain": ["cdmid"],
996
- "application/cdmi-object": ["cdmio"],
997
- "application/cdmi-queue": ["cdmiq"],
998
- "application/cpl+xml": ["cpl"],
999
- "application/cu-seeme": ["cu"],
1000
- "application/cwl": ["cwl"],
1001
- "application/dash+xml": ["mpd"],
1002
- "application/dash-patch+xml": ["mpp"],
1003
- "application/davmount+xml": ["davmount"],
1004
- "application/docbook+xml": ["dbk"],
1005
- "application/dssc+der": ["dssc"],
1006
- "application/dssc+xml": ["xdssc"],
1007
- "application/ecmascript": ["ecma"],
1008
- "application/emma+xml": ["emma"],
1009
- "application/emotionml+xml": ["emotionml"],
1010
- "application/epub+zip": ["epub"],
1011
- "application/exi": ["exi"],
1012
- "application/express": ["exp"],
1013
- "application/fdf": ["fdf"],
1014
- "application/fdt+xml": ["fdt"],
1015
- "application/font-tdpfr": ["pfr"],
1016
- "application/geo+json": ["geojson"],
1017
- "application/gml+xml": ["gml"],
1018
- "application/gpx+xml": ["gpx"],
1019
- "application/gxf": ["gxf"],
1020
- "application/gzip": ["gz"],
1021
- "application/hjson": ["hjson"],
1022
- "application/hyperstudio": ["stk"],
1023
- "application/inkml+xml": ["ink", "inkml"],
1024
- "application/ipfix": ["ipfix"],
1025
- "application/its+xml": ["its"],
1026
- "application/java-archive": [
1027
- "jar",
1028
- "war",
1029
- "ear"
1030
- ],
1031
- "application/java-serialized-object": ["ser"],
1032
- "application/java-vm": ["class"],
1033
- "application/javascript": ["*js"],
1034
- "application/json": ["json", "map"],
1035
- "application/json5": ["json5"],
1036
- "application/jsonml+json": ["jsonml"],
1037
- "application/ld+json": ["jsonld"],
1038
- "application/lgr+xml": ["lgr"],
1039
- "application/lost+xml": ["lostxml"],
1040
- "application/mac-binhex40": ["hqx"],
1041
- "application/mac-compactpro": ["cpt"],
1042
- "application/mads+xml": ["mads"],
1043
- "application/manifest+json": ["webmanifest"],
1044
- "application/marc": ["mrc"],
1045
- "application/marcxml+xml": ["mrcx"],
1046
- "application/mathematica": [
1047
- "ma",
1048
- "nb",
1049
- "mb"
1050
- ],
1051
- "application/mathml+xml": ["mathml"],
1052
- "application/mbox": ["mbox"],
1053
- "application/media-policy-dataset+xml": ["mpf"],
1054
- "application/mediaservercontrol+xml": ["mscml"],
1055
- "application/metalink+xml": ["metalink"],
1056
- "application/metalink4+xml": ["meta4"],
1057
- "application/mets+xml": ["mets"],
1058
- "application/mmt-aei+xml": ["maei"],
1059
- "application/mmt-usd+xml": ["musd"],
1060
- "application/mods+xml": ["mods"],
1061
- "application/mp21": ["m21", "mp21"],
1062
- "application/mp4": [
1063
- "*mp4",
1064
- "*mpg4",
1065
- "mp4s",
1066
- "m4p"
1067
- ],
1068
- "application/msix": ["msix"],
1069
- "application/msixbundle": ["msixbundle"],
1070
- "application/msword": ["doc", "dot"],
1071
- "application/mxf": ["mxf"],
1072
- "application/n-quads": ["nq"],
1073
- "application/n-triples": ["nt"],
1074
- "application/node": ["cjs"],
1075
- "application/octet-stream": [
1076
- "bin",
1077
- "dms",
1078
- "lrf",
1079
- "mar",
1080
- "so",
1081
- "dist",
1082
- "distz",
1083
- "pkg",
1084
- "bpk",
1085
- "dump",
1086
- "elc",
1087
- "deploy",
1088
- "exe",
1089
- "dll",
1090
- "deb",
1091
- "dmg",
1092
- "iso",
1093
- "img",
1094
- "msi",
1095
- "msp",
1096
- "msm",
1097
- "buffer"
1098
- ],
1099
- "application/oda": ["oda"],
1100
- "application/oebps-package+xml": ["opf"],
1101
- "application/ogg": ["ogx"],
1102
- "application/omdoc+xml": ["omdoc"],
1103
- "application/onenote": [
1104
- "onetoc",
1105
- "onetoc2",
1106
- "onetmp",
1107
- "onepkg"
1108
- ],
1109
- "application/oxps": ["oxps"],
1110
- "application/p2p-overlay+xml": ["relo"],
1111
- "application/patch-ops-error+xml": ["xer"],
1112
- "application/pdf": ["pdf"],
1113
- "application/pgp-encrypted": ["pgp"],
1114
- "application/pgp-keys": ["asc"],
1115
- "application/pgp-signature": ["sig", "*asc"],
1116
- "application/pics-rules": ["prf"],
1117
- "application/pkcs10": ["p10"],
1118
- "application/pkcs7-mime": ["p7m", "p7c"],
1119
- "application/pkcs7-signature": ["p7s"],
1120
- "application/pkcs8": ["p8"],
1121
- "application/pkix-attr-cert": ["ac"],
1122
- "application/pkix-cert": ["cer"],
1123
- "application/pkix-crl": ["crl"],
1124
- "application/pkix-pkipath": ["pkipath"],
1125
- "application/pkixcmp": ["pki"],
1126
- "application/pls+xml": ["pls"],
1127
- "application/postscript": [
1128
- "ai",
1129
- "eps",
1130
- "ps"
1131
- ],
1132
- "application/provenance+xml": ["provx"],
1133
- "application/pskc+xml": ["pskcxml"],
1134
- "application/raml+yaml": ["raml"],
1135
- "application/rdf+xml": ["rdf", "owl"],
1136
- "application/reginfo+xml": ["rif"],
1137
- "application/relax-ng-compact-syntax": ["rnc"],
1138
- "application/resource-lists+xml": ["rl"],
1139
- "application/resource-lists-diff+xml": ["rld"],
1140
- "application/rls-services+xml": ["rs"],
1141
- "application/route-apd+xml": ["rapd"],
1142
- "application/route-s-tsid+xml": ["sls"],
1143
- "application/route-usd+xml": ["rusd"],
1144
- "application/rpki-ghostbusters": ["gbr"],
1145
- "application/rpki-manifest": ["mft"],
1146
- "application/rpki-roa": ["roa"],
1147
- "application/rsd+xml": ["rsd"],
1148
- "application/rss+xml": ["rss"],
1149
- "application/rtf": ["rtf"],
1150
- "application/sbml+xml": ["sbml"],
1151
- "application/scvp-cv-request": ["scq"],
1152
- "application/scvp-cv-response": ["scs"],
1153
- "application/scvp-vp-request": ["spq"],
1154
- "application/scvp-vp-response": ["spp"],
1155
- "application/sdp": ["sdp"],
1156
- "application/senml+xml": ["senmlx"],
1157
- "application/sensml+xml": ["sensmlx"],
1158
- "application/set-payment-initiation": ["setpay"],
1159
- "application/set-registration-initiation": ["setreg"],
1160
- "application/shf+xml": ["shf"],
1161
- "application/sieve": ["siv", "sieve"],
1162
- "application/smil+xml": ["smi", "smil"],
1163
- "application/sparql-query": ["rq"],
1164
- "application/sparql-results+xml": ["srx"],
1165
- "application/sql": ["sql"],
1166
- "application/srgs": ["gram"],
1167
- "application/srgs+xml": ["grxml"],
1168
- "application/sru+xml": ["sru"],
1169
- "application/ssdl+xml": ["ssdl"],
1170
- "application/ssml+xml": ["ssml"],
1171
- "application/swid+xml": ["swidtag"],
1172
- "application/tei+xml": ["tei", "teicorpus"],
1173
- "application/thraud+xml": ["tfi"],
1174
- "application/timestamped-data": ["tsd"],
1175
- "application/toml": ["toml"],
1176
- "application/trig": ["trig"],
1177
- "application/ttml+xml": ["ttml"],
1178
- "application/ubjson": ["ubj"],
1179
- "application/urc-ressheet+xml": ["rsheet"],
1180
- "application/urc-targetdesc+xml": ["td"],
1181
- "application/voicexml+xml": ["vxml"],
1182
- "application/wasm": ["wasm"],
1183
- "application/watcherinfo+xml": ["wif"],
1184
- "application/widget": ["wgt"],
1185
- "application/winhlp": ["hlp"],
1186
- "application/wsdl+xml": ["wsdl"],
1187
- "application/wspolicy+xml": ["wspolicy"],
1188
- "application/xaml+xml": ["xaml"],
1189
- "application/xcap-att+xml": ["xav"],
1190
- "application/xcap-caps+xml": ["xca"],
1191
- "application/xcap-diff+xml": ["xdf"],
1192
- "application/xcap-el+xml": ["xel"],
1193
- "application/xcap-ns+xml": ["xns"],
1194
- "application/xenc+xml": ["xenc"],
1195
- "application/xfdf": ["xfdf"],
1196
- "application/xhtml+xml": ["xhtml", "xht"],
1197
- "application/xliff+xml": ["xlf"],
1198
- "application/xml": [
1199
- "xml",
1200
- "xsl",
1201
- "xsd",
1202
- "rng"
1203
- ],
1204
- "application/xml-dtd": ["dtd"],
1205
- "application/xop+xml": ["xop"],
1206
- "application/xproc+xml": ["xpl"],
1207
- "application/xslt+xml": ["*xsl", "xslt"],
1208
- "application/xspf+xml": ["xspf"],
1209
- "application/xv+xml": [
1210
- "mxml",
1211
- "xhvml",
1212
- "xvml",
1213
- "xvm"
1214
- ],
1215
- "application/yang": ["yang"],
1216
- "application/yin+xml": ["yin"],
1217
- "application/zip": ["zip"],
1218
- "audio/3gpp": ["*3gpp"],
1219
- "audio/aac": ["adts", "aac"],
1220
- "audio/adpcm": ["adp"],
1221
- "audio/amr": ["amr"],
1222
- "audio/basic": ["au", "snd"],
1223
- "audio/midi": [
1224
- "mid",
1225
- "midi",
1226
- "kar",
1227
- "rmi"
1228
- ],
1229
- "audio/mobile-xmf": ["mxmf"],
1230
- "audio/mp3": ["*mp3"],
1231
- "audio/mp4": ["m4a", "mp4a"],
1232
- "audio/mpeg": [
1233
- "mpga",
1234
- "mp2",
1235
- "mp2a",
1236
- "mp3",
1237
- "m2a",
1238
- "m3a"
1239
- ],
1240
- "audio/ogg": [
1241
- "oga",
1242
- "ogg",
1243
- "spx",
1244
- "opus"
1245
- ],
1246
- "audio/s3m": ["s3m"],
1247
- "audio/silk": ["sil"],
1248
- "audio/wav": ["wav"],
1249
- "audio/wave": ["*wav"],
1250
- "audio/webm": ["weba"],
1251
- "audio/xm": ["xm"],
1252
- "font/collection": ["ttc"],
1253
- "font/otf": ["otf"],
1254
- "font/ttf": ["ttf"],
1255
- "font/woff": ["woff"],
1256
- "font/woff2": ["woff2"],
1257
- "image/aces": ["exr"],
1258
- "image/apng": ["apng"],
1259
- "image/avci": ["avci"],
1260
- "image/avcs": ["avcs"],
1261
- "image/avif": ["avif"],
1262
- "image/bmp": ["bmp", "dib"],
1263
- "image/cgm": ["cgm"],
1264
- "image/dicom-rle": ["drle"],
1265
- "image/dpx": ["dpx"],
1266
- "image/emf": ["emf"],
1267
- "image/fits": ["fits"],
1268
- "image/g3fax": ["g3"],
1269
- "image/gif": ["gif"],
1270
- "image/heic": ["heic"],
1271
- "image/heic-sequence": ["heics"],
1272
- "image/heif": ["heif"],
1273
- "image/heif-sequence": ["heifs"],
1274
- "image/hej2k": ["hej2"],
1275
- "image/hsj2": ["hsj2"],
1276
- "image/ief": ["ief"],
1277
- "image/jls": ["jls"],
1278
- "image/jp2": ["jp2", "jpg2"],
1279
- "image/jpeg": [
1280
- "jpeg",
1281
- "jpg",
1282
- "jpe"
1283
- ],
1284
- "image/jph": ["jph"],
1285
- "image/jphc": ["jhc"],
1286
- "image/jpm": ["jpm", "jpgm"],
1287
- "image/jpx": ["jpx", "jpf"],
1288
- "image/jxr": ["jxr"],
1289
- "image/jxra": ["jxra"],
1290
- "image/jxrs": ["jxrs"],
1291
- "image/jxs": ["jxs"],
1292
- "image/jxsc": ["jxsc"],
1293
- "image/jxsi": ["jxsi"],
1294
- "image/jxss": ["jxss"],
1295
- "image/ktx": ["ktx"],
1296
- "image/ktx2": ["ktx2"],
1297
- "image/png": ["png"],
1298
- "image/sgi": ["sgi"],
1299
- "image/svg+xml": ["svg", "svgz"],
1300
- "image/t38": ["t38"],
1301
- "image/tiff": ["tif", "tiff"],
1302
- "image/tiff-fx": ["tfx"],
1303
- "image/webp": ["webp"],
1304
- "image/wmf": ["wmf"],
1305
- "message/disposition-notification": ["disposition-notification"],
1306
- "message/global": ["u8msg"],
1307
- "message/global-delivery-status": ["u8dsn"],
1308
- "message/global-disposition-notification": ["u8mdn"],
1309
- "message/global-headers": ["u8hdr"],
1310
- "message/rfc822": ["eml", "mime"],
1311
- "model/3mf": ["3mf"],
1312
- "model/gltf+json": ["gltf"],
1313
- "model/gltf-binary": ["glb"],
1314
- "model/iges": ["igs", "iges"],
1315
- "model/jt": ["jt"],
1316
- "model/mesh": [
1317
- "msh",
1318
- "mesh",
1319
- "silo"
1320
- ],
1321
- "model/mtl": ["mtl"],
1322
- "model/obj": ["obj"],
1323
- "model/prc": ["prc"],
1324
- "model/step+xml": ["stpx"],
1325
- "model/step+zip": ["stpz"],
1326
- "model/step-xml+zip": ["stpxz"],
1327
- "model/stl": ["stl"],
1328
- "model/u3d": ["u3d"],
1329
- "model/vrml": ["wrl", "vrml"],
1330
- "model/x3d+binary": ["*x3db", "x3dbz"],
1331
- "model/x3d+fastinfoset": ["x3db"],
1332
- "model/x3d+vrml": ["*x3dv", "x3dvz"],
1333
- "model/x3d+xml": ["x3d", "x3dz"],
1334
- "model/x3d-vrml": ["x3dv"],
1335
- "text/cache-manifest": ["appcache", "manifest"],
1336
- "text/calendar": ["ics", "ifb"],
1337
- "text/coffeescript": ["coffee", "litcoffee"],
1338
- "text/css": ["css"],
1339
- "text/csv": ["csv"],
1340
- "text/html": [
1341
- "html",
1342
- "htm",
1343
- "shtml"
1344
- ],
1345
- "text/jade": ["jade"],
1346
- "text/javascript": ["js", "mjs"],
1347
- "text/jsx": ["jsx"],
1348
- "text/less": ["less"],
1349
- "text/markdown": ["md", "markdown"],
1350
- "text/mathml": ["mml"],
1351
- "text/mdx": ["mdx"],
1352
- "text/n3": ["n3"],
1353
- "text/plain": [
1354
- "txt",
1355
- "text",
1356
- "conf",
1357
- "def",
1358
- "list",
1359
- "log",
1360
- "in",
1361
- "ini"
1362
- ],
1363
- "text/richtext": ["rtx"],
1364
- "text/rtf": ["*rtf"],
1365
- "text/sgml": ["sgml", "sgm"],
1366
- "text/shex": ["shex"],
1367
- "text/slim": ["slim", "slm"],
1368
- "text/spdx": ["spdx"],
1369
- "text/stylus": ["stylus", "styl"],
1370
- "text/tab-separated-values": ["tsv"],
1371
- "text/troff": [
1372
- "t",
1373
- "tr",
1374
- "roff",
1375
- "man",
1376
- "me",
1377
- "ms"
1378
- ],
1379
- "text/turtle": ["ttl"],
1380
- "text/uri-list": [
1381
- "uri",
1382
- "uris",
1383
- "urls"
1384
- ],
1385
- "text/vcard": ["vcard"],
1386
- "text/vtt": ["vtt"],
1387
- "text/wgsl": ["wgsl"],
1388
- "text/xml": ["*xml"],
1389
- "text/yaml": ["yaml", "yml"],
1390
- "video/3gpp": ["3gp", "3gpp"],
1391
- "video/3gpp2": ["3g2"],
1392
- "video/h261": ["h261"],
1393
- "video/h263": ["h263"],
1394
- "video/h264": ["h264"],
1395
- "video/iso.segment": ["m4s"],
1396
- "video/jpeg": ["jpgv"],
1397
- "video/jpm": ["*jpm", "*jpgm"],
1398
- "video/mj2": ["mj2", "mjp2"],
1399
- "video/mp2t": ["ts"],
1400
- "video/mp4": [
1401
- "mp4",
1402
- "mp4v",
1403
- "mpg4"
1404
- ],
1405
- "video/mpeg": [
1406
- "mpeg",
1407
- "mpg",
1408
- "mpe",
1409
- "m1v",
1410
- "m2v"
1411
- ],
1412
- "video/ogg": ["ogv"],
1413
- "video/quicktime": ["qt", "mov"],
1414
- "video/webm": ["webm"]
1415
- };
1416
- Object.freeze(types);
1417
- var standard_default = types;
1418
-
1419
- //#endregion
1420
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/Mime.js
1421
- var __classPrivateFieldGet = void 0 && (void 0).__classPrivateFieldGet || function(receiver, state, kind, f) {
1422
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
1423
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1424
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
1425
- };
1426
- var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
1427
- var Mime = class {
1428
- constructor(...args) {
1429
- _Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
1430
- _Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
1431
- _Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
1432
- for (const arg of args) this.define(arg);
1433
- }
1434
- define(typeMap, force = false) {
1435
- for (let [type, extensions] of Object.entries(typeMap)) {
1436
- type = type.toLowerCase();
1437
- extensions = extensions.map((ext) => ext.toLowerCase());
1438
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, /* @__PURE__ */ new Set());
1439
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
1440
- let first = true;
1441
- for (let extension of extensions) {
1442
- const starred = extension.startsWith("*");
1443
- extension = starred ? extension.slice(1) : extension;
1444
- allExtensions?.add(extension);
1445
- if (first) __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
1446
- first = false;
1447
- if (starred) continue;
1448
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
1449
- if (currentType && currentType != type && !force) throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
1450
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
1451
- }
1452
- }
1453
- return this;
1454
- }
1455
- getType(path$1) {
1456
- if (typeof path$1 !== "string") return null;
1457
- const last = path$1.replace(/^.*[/\\]/, "").toLowerCase();
1458
- const ext = last.replace(/^.*\./, "").toLowerCase();
1459
- const hasPath = last.length < path$1.length;
1460
- if (!(ext.length < last.length - 1) && hasPath) return null;
1461
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
1462
- }
1463
- getExtension(type) {
1464
- if (typeof type !== "string") return null;
1465
- type = type?.split?.(";")[0];
1466
- return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
1467
- }
1468
- getAllExtensions(type) {
1469
- if (typeof type !== "string") return null;
1470
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
1471
- }
1472
- _freeze() {
1473
- this.define = () => {
1474
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
1475
- };
1476
- Object.freeze(this);
1477
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) Object.freeze(extensions);
1478
- return this;
1479
- }
1480
- _getTestState() {
1481
- return {
1482
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
1483
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
1484
- };
1485
- }
1486
- };
1487
- _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
1488
- var Mime_default = Mime;
1489
-
1490
- //#endregion
1491
- //#region ../../node_modules/.pnpm/mime@4.0.4/node_modules/mime/dist/src/index.js
1492
- var src_default = new Mime_default(standard_default, other_default)._freeze();
1493
-
1494
156
  //#endregion
1495
157
  //#region src/firebaseStorage.ts
1496
158
  const firebaseStorage = (config, hooks) => (_) => {
@@ -1504,30 +166,43 @@ const firebaseStorage = (config, hooks) => (_) => {
1504
166
  const getStorageKey = createStorageKeyBuilder(config.basePath);
1505
167
  return {
1506
168
  name: "firebaseStorage",
1507
- async deleteBundle(bundleId) {
1508
- const key = getStorageKey(bundleId, "bundle.zip");
169
+ supportedProtocol: "gs",
170
+ async delete(storageUri) {
171
+ const { bucket: bucketName, key } = parseStorageUri(storageUri, "gs");
172
+ if (bucketName !== config.storageBucket) throw new Error(`Bucket name mismatch: expected "${config.storageBucket}", but found "${bucketName}".`);
1509
173
  try {
1510
174
  const [files] = await bucket.getFiles({ prefix: key });
1511
175
  await Promise.all(files.map((file) => file.delete()));
1512
- return { storageUri: `gs://${config.storageBucket}/${key}` };
1513
176
  } catch (e) {
1514
177
  console.error("Error listing or deleting files:", e);
1515
178
  throw new Error("Bundle Not Found");
1516
179
  }
1517
180
  },
1518
- async uploadBundle(bundleId, bundlePath) {
181
+ async upload(key, filePath) {
1519
182
  try {
1520
- const fileContent = await fs.readFile(bundlePath);
1521
- const contentType = src_default.getType(bundlePath) ?? "application/octet-stream";
1522
- const key = getStorageKey(bundleId, path.basename(bundlePath));
1523
- await bucket.file(key).save(fileContent, { metadata: { contentType } });
183
+ const fileContent = await fs.readFile(filePath);
184
+ const contentType = getContentType(filePath);
185
+ const storageKey = getStorageKey(key, path.basename(filePath));
186
+ await bucket.file(storageKey).save(fileContent, { metadata: { contentType } });
1524
187
  hooks?.onStorageUploaded?.();
1525
- return { storageUri: `gs://${config.storageBucket}/${key}` };
188
+ return { storageUri: `gs://${config.storageBucket}/${storageKey}` };
1526
189
  } catch (error) {
1527
190
  console.error("Error uploading bundle:", error);
1528
191
  if (error instanceof Error) throw new Error(`Failed to upload bundle: ${error.message}`);
1529
192
  throw error;
1530
193
  }
194
+ },
195
+ async getDownloadUrl(storageUri) {
196
+ const u = new URL(storageUri);
197
+ if (u.protocol.replace(":", "") !== "gs") throw new Error("Invalid Firebase storage URI protocol");
198
+ const key = u.pathname.slice(1);
199
+ if (!key) throw new Error("Invalid Firebase storage URI: missing key");
200
+ const [signedUrl] = await bucket.file(key).getSignedUrl({
201
+ action: "read",
202
+ expires: Date.now() + 3600 * 1e3
203
+ });
204
+ if (!signedUrl) throw new Error("Failed to generate download URL");
205
+ return { fileUrl: signedUrl };
1531
206
  }
1532
207
  };
1533
208
  };