package a4; import android.os.Parcel; import android.os.Parcelable; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /* loaded from: classes2.dex */ public final class f extends com.google.firebase.auth.d0 { public static final Parcelable.Creator CREATOR = new g(); /* renamed from: a, reason: collision with root package name */ private String f73a; /* renamed from: b, reason: collision with root package name */ private String f74b; /* renamed from: c, reason: collision with root package name */ private List f75c; /* renamed from: d, reason: collision with root package name */ private List f76d; /* renamed from: e, reason: collision with root package name */ private e1 f77e; private f() { } public static f P(List list, String str) { Preconditions.checkNotNull(list); Preconditions.checkNotEmpty(str); f fVar = new f(); fVar.f75c = new ArrayList(); fVar.f76d = new ArrayList(); Iterator it = list.iterator(); while (it.hasNext()) { com.google.firebase.auth.b0 b0Var = (com.google.firebase.auth.b0) it.next(); if (b0Var instanceof com.google.firebase.auth.j0) { fVar.f75c.add((com.google.firebase.auth.j0) b0Var); } else { if (!(b0Var instanceof com.google.firebase.auth.m0)) { throw new IllegalArgumentException("MultiFactorInfo must be either PhoneMultiFactorInfo or TotpMultiFactorInfo. The factorId of this MultiFactorInfo: ".concat(String.valueOf(b0Var.P()))); } fVar.f76d.add((com.google.firebase.auth.m0) b0Var); } } fVar.f74b = str; return fVar; } public final String R() { return this.f73a; } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i10) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeString(parcel, 1, this.f73a, false); SafeParcelWriter.writeString(parcel, 2, this.f74b, false); SafeParcelWriter.writeTypedList(parcel, 3, this.f75c, false); SafeParcelWriter.writeTypedList(parcel, 4, this.f76d, false); SafeParcelWriter.writeParcelable(parcel, 5, this.f77e, i10, false); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } public final String zze() { return this.f74b; } f(String str, String str2, List list, List list2, e1 e1Var) { this.f73a = str; this.f74b = str2; this.f75c = list; this.f76d = list2; this.f77e = e1Var; } }