package o;

import java.text.DateFormat;
import java.util.Date;
import java.util.regex.Pattern;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Nm, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0349Nm {
    public static final Pattern j = Pattern.compile("(\\d{2,4})[^\\d]*");
    public static final Pattern k = Pattern.compile("(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*");
    public static final Pattern l = Pattern.compile("(\\d{1,2})[^\\d]*");
    public static final Pattern m = Pattern.compile("(\\d{1,2}):(\\d{1,2}):(\\d{1,2})[^\\d]*");
    public final String a;
    public final String b;
    public final long c;
    public final String d;
    public final String e;
    public final boolean f;
    public final boolean g;
    public final boolean h;
    public final boolean i;

    public C0349Nm(String str, String str2, long j2, String str3, String str4, boolean z, boolean z2, boolean z3, boolean z4) {
        this.a = str;
        this.b = str2;
        this.c = j2;
        this.d = str3;
        this.e = str4;
        this.f = z;
        this.g = z2;
        this.h = z3;
        this.i = z4;
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof C0349Nm)) {
            return false;
        }
        C0349Nm c0349Nm = (C0349Nm) obj;
        return F3.c(c0349Nm.a, this.a) && F3.c(c0349Nm.b, this.b) && c0349Nm.c == this.c && F3.c(c0349Nm.d, this.d) && F3.c(c0349Nm.e, this.e) && c0349Nm.f == this.f && c0349Nm.g == this.g && c0349Nm.h == this.h && c0349Nm.i == this.i;
    }

    public final int hashCode() {
        return Boolean.hashCode(this.i) + Ag0.d(Ag0.d(Ag0.d(AbstractC0126Ew.h(AbstractC0126Ew.h(AbstractC0126Ew.f(AbstractC0126Ew.h(AbstractC0126Ew.h(527, this.a, 31), this.b, 31), 31, this.c), this.d, 31), this.e, 31), this.f, 31), this.g, 31), this.h, 31);
    }

    public final String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.a);
        sb.append('=');
        sb.append(this.b);
        if (this.h) {
            long j2 = this.c;
            if (j2 == Long.MIN_VALUE) {
                sb.append("; max-age=0");
            } else {
                sb.append("; expires=");
                sb.append(((DateFormat) AbstractC0145Fp.a.get()).format(new Date(j2)));
            }
        }
        if (!this.i) {
            sb.append("; domain=");
            sb.append(this.d);
        }
        sb.append("; path=");
        sb.append(this.e);
        if (this.f) {
            sb.append("; secure");
        }
        if (this.g) {
            sb.append("; httponly");
        }
        return sb.toString();
    }
}
