package L1;

import android.os.Parcel;
import android.os.Parcelable;
import t1.AbstractC1022a;

/* JADX INFO: loaded from: classes.dex */
public final class Z1 extends AbstractC1022a {
    public static final Parcelable.Creator<Z1> CREATOR = new B0.a(19);

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final int f1653k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final String f1654l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final long f1655m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final Long f1656n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final String f1657o;
    public final String p;
    public final Double q;

    public Z1(int i, String str, long j5, Long l5, Float f6, String str2, String str3, Double d3) {
        this.f1653k = i;
        this.f1654l = str;
        this.f1655m = j5;
        this.f1656n = l5;
        this.q = i == 1 ? f6 != null ? Double.valueOf(f6.doubleValue()) : null : d3;
        this.f1657o = str2;
        this.p = str3;
    }

    public final Object a() {
        Long l5 = this.f1656n;
        if (l5 != null) {
            return l5;
        }
        Double d3 = this.q;
        if (d3 != null) {
            return d3;
        }
        String str = this.f1657o;
        if (str != null) {
            return str;
        }
        return null;
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        B0.a.b(this, parcel);
    }

    public Z1(long j5, Object obj, String str, String str2) {
        s1.z.d(str);
        this.f1653k = 2;
        this.f1654l = str;
        this.f1655m = j5;
        this.p = str2;
        if (obj == null) {
            this.f1656n = null;
            this.q = null;
            this.f1657o = null;
            return;
        }
        if (obj instanceof Long) {
            this.f1656n = (Long) obj;
            this.q = null;
            this.f1657o = null;
        } else if (obj instanceof String) {
            this.f1656n = null;
            this.q = null;
            this.f1657o = (String) obj;
        } else {
            if (obj instanceof Double) {
                this.f1656n = null;
                this.q = (Double) obj;
                this.f1657o = null;
                return;
            }
            throw new IllegalArgumentException("User attribute given of un-supported type");
        }
    }

    /* JADX WARN: Illegal instructions before constructor call */
    public Z1(a2 a2Var) {
        String str = a2Var.f1670c;
        this(a2Var.f1671d, a2Var.f1672e, str, a2Var.f1669b);
    }
}
