package com.google.android.gms.internal.p002firebaseauthapi; import android.content.Context; import com.google.android.gms.common.internal.Preconditions; import com.google.android.gms.common.logging.Logger; import com.google.firebase.auth.a0; import com.google.firebase.auth.f0; import com.google.firebase.auth.p0; import java.util.concurrent.ScheduledExecutorService; import w3.f; /* loaded from: classes.dex */ public final class zzaar { private static final Logger zza = new Logger("FirebaseAuth", "FirebaseAuthFallback:"); private final zzys zzb; private final zzacm zzc; zzaar(f fVar, ScheduledExecutorService scheduledExecutorService) { Preconditions.checkNotNull(fVar); Context k10 = fVar.k(); Preconditions.checkNotNull(k10); this.zzb = new zzys(new zzabf(fVar, zzabe.zza(), null, null, null)); this.zzc = new zzacm(k10, scheduledExecutorService); } private static boolean zzJ(long j10, boolean z10) { if (j10 > 0 && z10) { return true; } zza.w("App hash will not be appended to the request.", new Object[0]); return false; } public final void zzA(zzwu zzwuVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzaapVar); Preconditions.checkNotNull(zzwuVar); this.zzb.zzG(zzacc.zza((f0) Preconditions.checkNotNull(zzwuVar.zza())), new zzaaq(zzaapVar, zza)); } public final void zzB(String str, String str2, String str3, long j10, boolean z10, boolean z11, String str4, String str5, boolean z12, zzaap zzaapVar) { Preconditions.checkNotEmpty(str, "idToken should not be empty."); Preconditions.checkNotNull(zzaapVar); zzaaq zzaaqVar = new zzaaq(zzaapVar, zza); if (this.zzc.zzk(str2)) { if (!z10) { this.zzc.zzh(zzaaqVar, str2); return; } this.zzc.zzi(str2); } zzaeo zzb = zzaeo.zzb(str, str2, str3, str4, str5, null); if (zzJ(j10, z12)) { zzb.zzd(new zzacr(this.zzc.zzb())); } this.zzc.zzj(str2, zzaaqVar, j10, z12); this.zzb.zzH(zzb, new zzacj(this.zzc, zzaaqVar, str2)); } public final void zzC(zzwv zzwvVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwvVar); Preconditions.checkNotNull(zzaapVar); String S = zzwvVar.zzb().S(); zzaaq zzaaqVar = new zzaaq(zzaapVar, zza); if (this.zzc.zzk(S)) { if (!zzwvVar.zzg()) { this.zzc.zzh(zzaaqVar, S); return; } this.zzc.zzi(S); } long zza2 = zzwvVar.zza(); boolean zzh = zzwvVar.zzh(); zzaem zzb = zzaem.zzb(zzwvVar.zzd(), zzwvVar.zzb().Y(), zzwvVar.zzb().S(), zzwvVar.zzc(), zzwvVar.zzf(), zzwvVar.zze()); if (zzJ(zza2, zzh)) { zzb.zzd(new zzacr(this.zzc.zzb())); } this.zzc.zzj(S, zzaaqVar, zza2, zzh); this.zzb.zzI(zzb, new zzacj(this.zzc, zzaaqVar, S)); } public final void zzD(zzaeq zzaeqVar, zzaap zzaapVar) { this.zzb.zzH(zzaeqVar, new zzaaq((zzaap) Preconditions.checkNotNull(zzaapVar), zza)); } public final void zzE(String str, String str2, String str3, zzaap zzaapVar) { Preconditions.checkNotEmpty(str, "cachedTokenState should not be empty."); Preconditions.checkNotEmpty(str2, "uid should not be empty."); Preconditions.checkNotNull(zzaapVar); this.zzb.zzJ(str, str2, str3, new zzaaq(zzaapVar, zza)); } public final void zzF(String str, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaapVar); this.zzb.zzK(str, new zzaaq(zzaapVar, zza)); } public final void zzG(String str, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotEmpty(str2); Preconditions.checkNotNull(zzaapVar); this.zzb.zzL(str, str2, new zzaaq(zzaapVar, zza)); } public final void zzH(String str, p0 p0Var, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(p0Var); Preconditions.checkNotNull(zzaapVar); this.zzb.zzM(str, p0Var, new zzaaq(zzaapVar, zza)); } public final void zzI(zzww zzwwVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwwVar); this.zzb.zzN(zzadn.zzc(zzwwVar.zza(), zzwwVar.zzb(), zzwwVar.zzc()), new zzaaq(zzaapVar, zza)); } public final void zza(String str, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaapVar); this.zzb.zzg(str, str2, new zzaaq(zzaapVar, zza)); } public final void zzb(String str, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotEmpty(str2); Preconditions.checkNotNull(zzaapVar); this.zzb.zzh(str, str2, new zzaaq(zzaapVar, zza)); } public final void zzc(String str, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotEmpty(str2); Preconditions.checkNotNull(zzaapVar); this.zzb.zzi(str, str2, new zzaaq(zzaapVar, zza)); } public final void zzd(String str, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaapVar); this.zzb.zzj(str, str2, new zzaaq(zzaapVar, zza)); } public final void zze(zzwl zzwlVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwlVar); Preconditions.checkNotEmpty(zzwlVar.zza()); Preconditions.checkNotEmpty(zzwlVar.zzb()); Preconditions.checkNotNull(zzaapVar); this.zzb.zzk(zzwlVar.zza(), zzwlVar.zzb(), zzwlVar.zzc(), new zzaaq(zzaapVar, zza)); } public final void zzf(String str, String str2, String str3, String str4, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotEmpty(str2); Preconditions.checkNotNull(zzaapVar); this.zzb.zzl(str, str2, str3, str4, new zzaaq(zzaapVar, zza)); } public final void zzg(String str, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaapVar); this.zzb.zzm(str, new zzaaq(zzaapVar, zza)); } public final void zzh(a0 a0Var, String str, String str2, String str3, zzaap zzaapVar) { Preconditions.checkNotNull(a0Var); Preconditions.checkNotEmpty(str, "cachedTokenState should not be empty."); Preconditions.checkNotNull(zzaapVar); throw new IllegalArgumentException("multiFactorAssertion must be either PhoneMultiFactorAssertion or TotpMultiFactorAssertion."); } public final void zzi(String str, a0 a0Var, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(a0Var); Preconditions.checkNotNull(zzaapVar); throw new IllegalArgumentException("multiFactorAssertion must be either PhoneMultiFactorAssertion or TotpMultiFactorAssertion."); } public final void zzj(String str, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaapVar); this.zzb.zzp(str, new zzaaq(zzaapVar, zza)); } public final void zzk(zzwm zzwmVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwmVar); this.zzb.zzq(zzadp.zzb(), new zzaaq(zzaapVar, zza)); } public final void zzl(String str, String str2, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); this.zzb.zzr(str, str2, new zzaaq(zzaapVar, zza)); } public final void zzm(zzwn zzwnVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwnVar); this.zzb.zzs(zzads.zzb(zzwnVar.zzb(), zzwnVar.zza()), new zzaaq(zzaapVar, zza)); } public final void zzn(String str, String str2, String str3, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotEmpty(str2); Preconditions.checkNotEmpty(str3); Preconditions.checkNotNull(zzaapVar); this.zzb.zzt(str, str2, str3, new zzaaq(zzaapVar, zza)); } public final void zzo(String str, zzaev zzaevVar, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaevVar); Preconditions.checkNotNull(zzaapVar); this.zzb.zzu(str, zzaevVar, new zzaaq(zzaapVar, zza)); } public final void zzp(zzwo zzwoVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzaapVar); Preconditions.checkNotNull(zzwoVar); f0 f0Var = (f0) Preconditions.checkNotNull(zzwoVar.zza()); this.zzb.zzv(Preconditions.checkNotEmpty(zzwoVar.zzb()), zzacc.zza(f0Var), new zzaaq(zzaapVar, zza)); } public final void zzq(String str, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotNull(zzaapVar); this.zzb.zzw(str, new zzaaq(zzaapVar, zza)); } public final void zzr(zzwp zzwpVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwpVar); Preconditions.checkNotEmpty(zzwpVar.zzb()); Preconditions.checkNotNull(zzaapVar); this.zzb.zzx(zzwpVar.zzb(), zzwpVar.zza(), new zzaaq(zzaapVar, zza)); } public final void zzs(zzwq zzwqVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwqVar); Preconditions.checkNotEmpty(zzwqVar.zzc()); Preconditions.checkNotNull(zzaapVar); this.zzb.zzy(zzwqVar.zzc(), zzwqVar.zza(), zzwqVar.zzd(), zzwqVar.zzb(), new zzaaq(zzaapVar, zza)); } public final void zzt(zzwr zzwrVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzaapVar); Preconditions.checkNotNull(zzwrVar); zzaee zzaeeVar = (zzaee) Preconditions.checkNotNull(zzwrVar.zza()); String zzd = zzaeeVar.zzd(); zzaaq zzaaqVar = new zzaaq(zzaapVar, zza); if (this.zzc.zzk(zzd)) { if (!zzaeeVar.zzf()) { this.zzc.zzh(zzaaqVar, zzd); return; } this.zzc.zzi(zzd); } long zzb = zzaeeVar.zzb(); boolean zzg = zzaeeVar.zzg(); if (zzJ(zzb, zzg)) { zzaeeVar.zze(new zzacr(this.zzc.zzb())); } this.zzc.zzj(zzd, zzaaqVar, zzb, zzg); this.zzb.zzz(zzaeeVar, new zzacj(this.zzc, zzaaqVar, zzd)); } public final void zzu(zzws zzwsVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwsVar); Preconditions.checkNotNull(zzaapVar); this.zzb.zzA(zzwsVar.zza(), new zzaaq(zzaapVar, zza)); } public final void zzv(String str, zzaap zzaapVar) { Preconditions.checkNotNull(zzaapVar); this.zzb.zzB(str, new zzaaq(zzaapVar, zza)); } public final void zzw(zzaev zzaevVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzaevVar); Preconditions.checkNotNull(zzaapVar); this.zzb.zzC(zzaevVar, new zzaaq(zzaapVar, zza)); } public final void zzx(zzaey zzaeyVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzaeyVar); Preconditions.checkNotNull(zzaapVar); this.zzb.zzD(zzaeyVar, new zzaaq(zzaapVar, zza)); } public final void zzy(String str, String str2, String str3, String str4, zzaap zzaapVar) { Preconditions.checkNotEmpty(str); Preconditions.checkNotEmpty(str2); Preconditions.checkNotNull(zzaapVar); Preconditions.checkNotNull(zzaapVar); this.zzb.zzE(str, str2, str3, str4, new zzaaq(zzaapVar, zza)); } public final void zzz(zzwt zzwtVar, zzaap zzaapVar) { Preconditions.checkNotNull(zzwtVar); Preconditions.checkNotNull(zzwtVar.zza()); Preconditions.checkNotNull(zzaapVar); this.zzb.zzF(zzwtVar.zza(), zzwtVar.zzb(), new zzaaq(zzaapVar, zza)); } }