package defpackage;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;

/* renamed from: ᵜᵩˎ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2849 {

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public static final C0265 f10999;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public static final C2106 f11000;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public static final C2849 f11001;

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public static final ˑᵽʾʦ f11002;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static final HashMap f11003;

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public int f11004;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C2106 f11005;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final String f11006;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final String f11007;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public String f11008;

    static {
        String str = ᵿᵧ.ᵺʙ(StandardCharsets.UTF_8.name());
        C3718 c3718 = new C3718();
        c3718.m8352("charset", str);
        f11000 = c3718.m8350();
        C0097 c0097 = C0097.f1359;
        C0097 c00972 = C0097.f1358;
        c00972.getClass();
        C4197 c4197 = new C4197(c00972);
        c0097.getClass();
        f10999 = new C0265(new C0265(new C0265(c0097, c4197), new C2227(' ', 1)), AbstractC0582.m2460("()<>@,;:\\\"/[]?=").mo1174());
        AbstractC0582.m2460("\"\\\r").mo1174().getClass();
        AbstractC0582.m2460(" \t\r\n");
        f11003 = new HashMap();
        m6976("*", "*");
        m6976("text", "*");
        m6976("image", "*");
        m6976("audio", "*");
        m6976("video", "*");
        m6976("application", "*");
        m6976("font", "*");
        m6977("text", "cache-manifest");
        m6977("text", "css");
        m6977("text", "csv");
        m6977("text", "html");
        m6977("text", "calendar");
        m6977("text", "markdown");
        m6977("text", "plain");
        m6977("text", "javascript");
        m6977("text", "tab-separated-values");
        m6977("text", "vcard");
        m6977("text", "vnd.wap.wml");
        m6977("text", "xml");
        m6977("text", "vtt");
        m6976("image", "bmp");
        m6976("image", "x-canon-crw");
        m6976("image", "gif");
        m6976("image", "vnd.microsoft.icon");
        m6976("image", "jpeg");
        m6976("image", "png");
        m6976("image", "vnd.adobe.photoshop");
        m6977("image", "svg+xml");
        m6976("image", "tiff");
        m6976("image", "webp");
        m6976("image", "heif");
        m6976("image", "jp2");
        m6976("audio", "mp4");
        m6976("audio", "mpeg");
        m6976("audio", "ogg");
        m6976("audio", "webm");
        m6976("audio", "l16");
        m6976("audio", "l24");
        m6976("audio", "basic");
        m6976("audio", "aac");
        m6976("audio", "vorbis");
        m6976("audio", "x-ms-wma");
        m6976("audio", "x-ms-wax");
        m6976("audio", "vnd.rn-realaudio");
        m6976("audio", "vnd.wave");
        m6976("video", "mp4");
        m6976("video", "mpeg");
        m6976("video", "ogg");
        m6976("video", "quicktime");
        m6976("video", "webm");
        m6976("video", "x-ms-wmv");
        m6976("video", "x-flv");
        m6976("video", "3gpp");
        m6976("video", "3gpp2");
        m6977("application", "xml");
        m6977("application", "atom+xml");
        m6976("application", "x-bzip2");
        m6977("application", "dart");
        m6976("application", "vnd.apple.pkpass");
        m6976("application", "vnd.ms-fontobject");
        m6976("application", "epub+zip");
        m6976("application", "x-www-form-urlencoded");
        m6976("application", "pkcs12");
        m6976("application", "binary");
        m6976("application", "geo+json");
        m6976("application", "x-gzip");
        m6976("application", "hal+json");
        m6977("application", "javascript");
        m6976("application", "jose");
        m6976("application", "jose+json");
        f11001 = m6977("application", "json");
        m6976("application", "jwt");
        m6977("application", "manifest+json");
        m6976("application", "vnd.google-earth.kml+xml");
        m6976("application", "vnd.google-earth.kmz");
        m6976("application", "mbox");
        m6976("application", "x-apple-aspen-config");
        m6976("application", "vnd.ms-excel");
        m6976("application", "vnd.ms-outlook");
        m6976("application", "vnd.ms-powerpoint");
        m6976("application", "msword");
        m6976("application", "dash+xml");
        m6976("application", "wasm");
        m6976("application", "x-nacl");
        m6976("application", "x-pnacl");
        m6976("application", "octet-stream");
        m6976("application", "ogg");
        m6976("application", "vnd.openxmlformats-officedocument.wordprocessingml.document");
        m6976("application", "vnd.openxmlformats-officedocument.presentationml.presentation");
        m6976("application", "vnd.openxmlformats-officedocument.spreadsheetml.sheet");
        m6976("application", "vnd.oasis.opendocument.graphics");
        m6976("application", "vnd.oasis.opendocument.presentation");
        m6976("application", "vnd.oasis.opendocument.spreadsheet");
        m6976("application", "vnd.oasis.opendocument.text");
        m6977("application", "opensearchdescription+xml");
        m6976("application", "pdf");
        m6976("application", "postscript");
        m6976("application", "protobuf");
        m6977("application", "rdf+xml");
        m6977("application", "rtf");
        m6976("application", "font-sfnt");
        m6976("application", "x-shockwave-flash");
        m6976("application", "vnd.sketchup.skp");
        m6977("application", "soap+xml");
        m6976("application", "x-tar");
        m6976("application", "font-woff");
        m6976("application", "font-woff2");
        m6977("application", "xhtml+xml");
        m6977("application", "xrd+xml");
        m6976("application", "zip");
        m6976("font", "collection");
        m6976("font", "otf");
        m6976("font", "sfnt");
        m6976("font", "ttf");
        m6976("font", "woff");
        m6976("font", "woff2");
        f11002 = new ˑᵽʾʦ(4, new C0204("; "));
    }

    public C2849(String str, String str2, C2106 c2106) {
        this.f11006 = str;
        this.f11007 = str2;
        this.f11005 = c2106;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static void m6976(String str, String str2) {
        C2849 c2849 = new C2849(str, str2, C0493.f2607);
        f11003.put(c2849, c2849);
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static C2849 m6977(String str, String str2) {
        C2849 c2849 = new C2849(str, str2, f11000);
        f11003.put(c2849, c2849);
        StandardCharsets.UTF_8.getClass();
        return c2849;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof C2849)) {
            return false;
        }
        C2849 c2849 = (C2849) obj;
        return this.f11006.equals(c2849.f11006) && this.f11007.equals(c2849.f11007) && m6978().equals(c2849.m6978());
    }

    public final int hashCode() {
        int i = this.f11004;
        if (i != 0) {
            return i;
        }
        int iHashCode = Arrays.hashCode(new Object[]{this.f11006, this.f11007, m6978()});
        this.f11004 = iHashCode;
        return iHashCode;
    }

    public final String toString() {
        String str = this.f11008;
        if (str != null) {
            return str;
        }
        StringBuilder sb = new StringBuilder();
        sb.append(this.f11006);
        sb.append('/');
        sb.append(this.f11007);
        C2106 c2106 = this.f11005;
        if (c2106.f8328 != 0) {
            sb.append("; ");
            Collection collectionMo3551 = new C4293(c2106, new ˊʘ(2, new C2834(10))).mo3551();
            ˑᵽʾʦ r2 = f11002;
            r2.getClass();
            try {
                r2.ˑᵥˁ(sb, collectionMo3551.iterator());
            } catch (IOException e) {
                throw new AssertionError(e);
            }
        }
        String string = sb.toString();
        this.f11008 = string;
        return string;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final C0419 m6978() {
        return new C0419(this.f11005.mo2140(), new ˊʘ(2, new C2834(11)));
    }
}
