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