package o; import java.util.List; import o.C0690Mh; import o.C0907Rf; import o.PRA; import o.wRi; /* loaded from: classes4.dex */ public class bMZ extends C3967bMF { public InterfaceC6678cZu a; private final C17435wk e; /* JADX INFO: Access modifiers changed from: package-private */ @InterfaceC13391fZD public bMZ(C16903sI c16903sI, C17435wk c17435wk, C12374ewx c12374ewx) { super(c16903sI, c12374ewx); this.e = c17435wk; } @Override // o.ZI public final void w_() { this.a = null; super.w_(); } /* loaded from: classes4.dex */ protected class Sts extends wRi.LWm { private bMZ b; protected Sts(bMZ bmz) { this.b = bmz; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { KwY kwY = (KwY) obj; bMZ.b(this.b); if (this.b.a != null) { YKU c = new YKU(kwY.a).c(kwY.c); List list = (List) new YKU(c.a, new C17745zRk(c.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.bNf @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { int i; i = ((sdB) obj2).w; return Integer.valueOf(i); } }))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); if (list.size() == 1) { this.b.a.l(); } bMZ bmz = this.b; bmz.k = bmz.e.e(list, kwY.b, this.b.f8546o.e.M()); C0907Rf c0907Rf = this.b.k; C0907Rf.Sts sts = new C0907Rf.Sts(); sts.L = AyW.EMPTY; sts.H = 3; c0907Rf.e(sts); this.b.a.b(this.b.k.c); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { bMZ.d(this.b, th, C0690Mh.IeS.NAVIGATE_BACK); } } static /* synthetic */ void d(bMZ bmz, Throwable th, C0690Mh.IeS ieS) { if (bmz.b(th)) { bmz.d(bmz.j.d(th, ieS)); } } static /* synthetic */ void b(bMZ bmz) { if (bmz.f != 0) { bmz.f.aq_(); } } public final void c(long j) { if (this.f != 0) { this.f.v(); } this.f8546o.e(j, true); C12374ewx c12374ewx = this.f8546o; c12374ewx.d(c12374ewx.i, new Sts(this)); } }