use phf::phf_map;
pub static ASSET_NUMBERS: phf::Map<&'static str, &'static [u8]> = phf_map! {
"jpeg" => &[0xFF, 0xD8, 0xFF],
"pdf" => b"%PDF",
"png" => &[0x89, 0x50, 0x4E, 0x47],
"gif" => &[0x47, 0x49, 0x46, 0x38],
"bmp" => &[0x42, 0x4D],
"tiff_le" => &[0x49, 0x49, 0x2A, 0x00], "tiff_be" => &[0x4D, 0x4D, 0x00, 0x2A], "bigtiff_le" => &[0x49, 0x49, 0x2B, 0x00], "bigtiff_be" => &[0x4D, 0x4D, 0x00, 0x2B], "mp3_id3" => &[0x49, 0x44, 0x33], "mp3_no_id3" => &[0xFF, 0xFB], "ogg" => &[0x4F, 0x67, 0x67, 0x53],
"flac" => &[0x66, 0x4C, 0x61, 0x43],
"riff" => &[0x52, 0x49, 0x46, 0x46], "mpg_mpeg" => &[0x00, 0x00, 0x01, 0xBA], "mkv" => &[0x1A, 0x45, 0xDF, 0xA3],
"flv" => &[0x46, 0x4C, 0x56, 0x01],
"mp4" => &[0x00, 0x00, 0x00, 0x18],
"mpeg_1b3" => &[0x00, 0x00, 0x01, 0xB3], "zip" => &[0x50, 0x4B, 0x03, 0x04],
"gzip" => &[0x1F, 0x8B],
"bzip" => &[0x42, 0x5A, 0x68],
"bzip2" => &[0x42, 0x5A, 0x68], "java_class" => &[0xCA, 0xFE, 0xBA, 0xBE],
"lha" => &[0x4C], "elf" => &[0x7F, 0x45, 0x4C, 0x46], };
pub static FIRST_BYTE_MAP: phf::Map<u8, &'static [&'static str]> = phf_map! {
0xFFu8 => &["jpeg", "mp3_no_id3"],
0x89u8 => &["png"],
0x47u8 => &["gif"],
0x42u8 => &["bmp", "bzip", "bzip2"],
0x49u8 => &["tiff_le", "bigtiff_le", "mp3_id3"],
0x4Du8 => &["tiff_be", "bigtiff_be"],
0x4Fu8 => &["ogg"],
0x66u8 => &["flac"],
0x52u8 => &["riff", "rar"],
0x00u8 => &["mpg_mpeg", "mp4", "mpeg_1b3"],
0x1Au8 => &["mkv"],
0x46u8 => &["flv"],
0x50u8 => &["zip"],
0x1Fu8 => &["gzip"],
0x25u8 => &["pdf"],
0x38u8 => &["gif"],
0x5Au8 => &["7z"],
0xCAu8 => &["java_class"],
0x4Cu8 => &["lha"],
0x7Fu8 => &["elf"],
};
pub static ENCODINGS_BY_LOCALE: phf::Map<&'static str, &'static encoding_rs::Encoding> = phf::phf_map! {
"af-za" => encoding_rs::WINDOWS_1252, "ar-ae" => encoding_rs::WINDOWS_1256, "ar-bh" => encoding_rs::WINDOWS_1256, "ar-dz" => encoding_rs::WINDOWS_1256, "ar-eg" => encoding_rs::WINDOWS_1256, "ar-iq" => encoding_rs::WINDOWS_1256, "ar-jo" => encoding_rs::WINDOWS_1256, "ar-kw" => encoding_rs::WINDOWS_1256, "ar-lb" => encoding_rs::WINDOWS_1256, "ar-ly" => encoding_rs::WINDOWS_1256, "ar-ma" => encoding_rs::WINDOWS_1256, "ar-om" => encoding_rs::WINDOWS_1256, "ar-qa" => encoding_rs::WINDOWS_1256, "ar-sa" => encoding_rs::WINDOWS_1256, "ar-sy" => encoding_rs::WINDOWS_1256, "ar-tn" => encoding_rs::WINDOWS_1256, "ar-ye" => encoding_rs::WINDOWS_1256, "be-by" => encoding_rs::WINDOWS_1251, "bg-bg" => encoding_rs::WINDOWS_1251, "ca-es" => encoding_rs::WINDOWS_1252, "cs-cz" => encoding_rs::WINDOWS_1250, "da-dk" => encoding_rs::WINDOWS_1252, "de-at" => encoding_rs::WINDOWS_1252, "de-ch" => encoding_rs::WINDOWS_1252, "de-de" => encoding_rs::WINDOWS_1252, "de-lu" => encoding_rs::WINDOWS_1252, "el-gr" => encoding_rs::WINDOWS_1253, "en-au" => encoding_rs::WINDOWS_1252, "en-ca" => encoding_rs::WINDOWS_1252, "en-gb" => encoding_rs::WINDOWS_1252, "en-ie" => encoding_rs::WINDOWS_1252, "en-nz" => encoding_rs::WINDOWS_1252, "en-us" => encoding_rs::UTF_8, "es-ar" => encoding_rs::WINDOWS_1252, "es-bo" => encoding_rs::WINDOWS_1252, "es-cl" => encoding_rs::WINDOWS_1252, "es-co" => encoding_rs::WINDOWS_1252, "es-cr" => encoding_rs::WINDOWS_1252, "es-do" => encoding_rs::WINDOWS_1252, "es-ec" => encoding_rs::WINDOWS_1252, "es-es" => encoding_rs::WINDOWS_1252, "es-gt" => encoding_rs::WINDOWS_1252, "es-hn" => encoding_rs::WINDOWS_1252, "es-mx" => encoding_rs::WINDOWS_1252, "es-ni" => encoding_rs::WINDOWS_1252, "es-pa" => encoding_rs::WINDOWS_1252, "es-pe" => encoding_rs::WINDOWS_1252, "es-pr" => encoding_rs::WINDOWS_1252, "es-py" => encoding_rs::WINDOWS_1252, "es-sv" => encoding_rs::WINDOWS_1252, "es-uy" => encoding_rs::WINDOWS_1252, "es-ve" => encoding_rs::WINDOWS_1252, "et-ee" => encoding_rs::WINDOWS_1257, "fi-fi" => encoding_rs::WINDOWS_1252, "fr-be" => encoding_rs::WINDOWS_1252, "fr-ca" => encoding_rs::WINDOWS_1252, "fr-ch" => encoding_rs::WINDOWS_1252, "fr-fr" => encoding_rs::WINDOWS_1252, "fr-lu" => encoding_rs::WINDOWS_1252, "he-il" => encoding_rs::WINDOWS_1255, "hi-in" => encoding_rs::UTF_8, "hr-hr" => encoding_rs::WINDOWS_1250, "hu-hu" => encoding_rs::WINDOWS_1250, "is-is" => encoding_rs::WINDOWS_1252, "it-ch" => encoding_rs::WINDOWS_1252, "it-it" => encoding_rs::WINDOWS_1252, "ja-jp" => encoding_rs::SHIFT_JIS, "ko-kr" => encoding_rs::EUC_KR, "lt-lt" => encoding_rs::WINDOWS_1257, "lv-lv" => encoding_rs::WINDOWS_1257, "mk-mk" => encoding_rs::WINDOWS_1251, "ms-my" => encoding_rs::WINDOWS_1252, "mt-mt" => encoding_rs::WINDOWS_1252, "nl-be" => encoding_rs::WINDOWS_1252, "nl-nl" => encoding_rs::WINDOWS_1252, "no-no" => encoding_rs::WINDOWS_1252, "pl-pl" => encoding_rs::WINDOWS_1250, "pt-br" => encoding_rs::WINDOWS_1252, "pt-pt" => encoding_rs::WINDOWS_1252, "ro-ro" => encoding_rs::WINDOWS_1250, "ru-ru" => encoding_rs::WINDOWS_1251, "sk-sk" => encoding_rs::WINDOWS_1250, "sl-si" => encoding_rs::WINDOWS_1250, "sr-sp" => encoding_rs::WINDOWS_1251, "sv-fi" => encoding_rs::WINDOWS_1252, "sv-se" => encoding_rs::WINDOWS_1252, "th-th" => encoding_rs::WINDOWS_874, "tr-tr" => encoding_rs::WINDOWS_1254, "uk-ua" => encoding_rs::WINDOWS_1251, "vi-vn" => encoding_rs::WINDOWS_1258, "zh-cn" => encoding_rs::GB18030, "zh-tw" => encoding_rs::BIG5, };
pub struct HtmlMetadata {
pub lang: Option<String>,
pub encoding: Option<String>,
}