package o; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.List; import o.C0690Mh; import o.C14930gcM; import o.C5668bxR; import o.YNc; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.bxR, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C5668bxR extends ZI { public EnumC5550bvF a; public final C15755iM b; public boolean c; public final QhN d; YNc.HBt e; private final C17176ua h; private String i; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C5668bxR(C16903sI c16903sI, C17176ua c17176ua, QhN qhN, C15755iM c15755iM) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(c17176ua, ""); C14957gcv.e(qhN, ""); C14957gcv.e(c15755iM, ""); this.h = c17176ua; this.d = qhN; this.b = c15755iM; this.e = new YNc.HBt(0, 0); } /* renamed from: o.bxR$ZqN */ /* loaded from: classes4.dex */ public static final class ZqN extends wRi.LWm { private C5668bxR e; public ZqN(C5668bxR c5668bxR) { this.e = c5668bxR; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { String str = (String) obj; C14957gcv.e(str, ""); this.e.i = str; } } /* renamed from: o.bxR$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private C5668bxR b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C5668bxR.e(this.b, th2, C0690Mh.IeS.NAVIGATE_BACK); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RVV(C5668bxR c5668bxR) { super(1); this.b = c5668bxR; } } /* renamed from: o.bxR$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private C5668bxR c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(YNc yNc) { final YNc yNc2 = yNc; C14957gcv.e(yNc2, ""); final C14930gcM.IeS ieS = new C14930gcM.IeS(); Iterator it = yNc2.d.iterator(); while (it.hasNext()) { Iterator it2 = it.next().d.iterator(); while (it2.hasNext()) { ieS.b += it2.next().j; } } C5668bxR c5668bxR = this.c; YNc.HBt hBt = yNc2.e; C14957gcv.e(hBt, ""); c5668bxR.e = hBt; this.c.c = yNc2.a; final C5668bxR c5668bxR2 = this.c; ZI.IeS ieS2 = new ZI.IeS(c5668bxR2, yNc2, ieS) { // from class: o.bxU private C14930gcM.IeS a; private YNc b; private C5668bxR e; @Override // o.ZI.IeS public final void e(Object obj) { C5668bxR.LWm.a(this.e, this.b, this.a, (InterfaceC9314dhR) obj); } { this.e = c5668bxR2; this.b = yNc2; this.a = ieS; } }; if (c5668bxR2.f != 0) { ieS2.e(c5668bxR2.f); } C5668bxR.e(this.c); return C14866gag.c; } public static /* synthetic */ void a(C5668bxR c5668bxR, YNc yNc, C14930gcM.IeS ieS, InterfaceC9314dhR interfaceC9314dhR) { int i; String str = ""; C14957gcv.e(c5668bxR, ""); C14957gcv.e(yNc, ""); C14957gcv.e(ieS, ""); EnumC5550bvF enumC5550bvF = c5668bxR.a; if (enumC5550bvF == null) { C14957gcv.a(""); enumC5550bvF = null; } if (enumC5550bvF == EnumC5550bvF.RESUBMISSION) { interfaceC9314dhR.b(); C17176ua c17176ua = c5668bxR.h; OffsetDateTime offsetDateTime = yNc.c; C14957gcv.e(offsetDateTime, ""); String str2 = (String) C16157lj.c(new Object[]{c17176ua, offsetDateTime}, 838289628, -838289623, System.identityHashCode(c17176ua)); C14957gcv.c((Object) str2, ""); interfaceC9314dhR.c(str2, true); } else { C17176ua c17176ua2 = c5668bxR.h; OffsetDateTime offsetDateTime2 = yNc.c; C14957gcv.e(offsetDateTime2, ""); String str3 = (String) C16157lj.c(new Object[]{c17176ua2, offsetDateTime2}, 838289628, -838289623, System.identityHashCode(c17176ua2)); C14957gcv.c((Object) str3, ""); interfaceC9314dhR.c(str3, false); } C17176ua unused = c5668bxR.h; List list = yNc.d; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(); Iterator it = list.iterator(); while (it.hasNext()) { YNc.IeS ieS2 = (YNc.IeS) it.next(); List singletonList = Collections.singletonList(new C0783Om(ieS2.b)); C14957gcv.c(singletonList, str); List list2 = singletonList; List list3 = ieS2.d; C14957gcv.e(list3, str); ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10); Iterator it2 = list3.iterator(); while (it2.hasNext()) { YNc.Sts sts = (YNc.Sts) it2.next(); arrayList2.add(new C0775Oi(sts.e, C17176ua.m(sts.a), C17176ua.n(sts.c), sts.c, ieS2.e, sts.e, sts.b, Integer.valueOf(sts.j), sts.f, sts.j)); it = it; str = str; it2 = it2; ieS2 = ieS2; } C14881gav.d(arrayList, C14881gav.e(list2, arrayList2)); it = it; } ArrayList arrayList3 = arrayList; ArrayList arrayList4 = new ArrayList(); for (Object obj : arrayList3) { if (obj instanceof C0775Oi) { arrayList4.add(obj); } } ArrayList arrayList5 = arrayList4; if (arrayList5.isEmpty()) { i = 0; } else { i = 0; for (C0775Oi c0775Oi : arrayList5) { if (C14957gcv.b((Object) c0775Oi.j, (Object) EBL.RESUBMIT.name()) || C14957gcv.b((Object) c0775Oi.j, (Object) "M")) { int i2 = c0775Oi.f; Integer num = c0775Oi.g; if (i2 < (num != null ? num.intValue() : 0) && (i = i + 1) < 0) { throw new ArithmeticException("Count overflow has happened."); } } } } interfaceC9314dhR.b(arrayList3); interfaceC9314dhR.b(String.valueOf(ieS.b), String.valueOf(c5668bxR.e.b)); interfaceC9314dhR.d(i == 0); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public LWm(C5668bxR c5668bxR) { super(1); this.c = c5668bxR; } } /* renamed from: o.bxR$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN { private C5668bxR a; @Override // o.InterfaceC14890gbN public final /* synthetic */ C14866gag invoke() { C5668bxR c5668bxR = this.a; ZI.IeS ieS = new ZI.IeS() { // from class: o.bxV @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9314dhR) obj).d(); } }; if (c5668bxR.f != 0) { ieS.e(c5668bxR.f); } return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C5668bxR c5668bxR) { super(0); this.a = c5668bxR; } } /* renamed from: o.bxR$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C5668bxR d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C5668bxR.e(this.d, th2, C0690Mh.IeS.JUST_DISMISS); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(C5668bxR c5668bxR) { super(1); this.d = c5668bxR; } } public static /* synthetic */ void d(C0791Oq c0791Oq, C5668bxR c5668bxR, InterfaceC9314dhR interfaceC9314dhR) { C14957gcv.e(c0791Oq, ""); C14957gcv.e(c5668bxR, ""); interfaceC9314dhR.b(c0791Oq, c5668bxR.e); } public static final /* synthetic */ void e(C5668bxR c5668bxR) { if (c5668bxR.f != 0) { c5668bxR.f.ar_(); } } public static final /* synthetic */ void e(C5668bxR c5668bxR, Throwable th, C0690Mh.IeS ieS) { if (c5668bxR.b(th)) { c5668bxR.d(c5668bxR.j.d(th, ieS)); } } /* renamed from: o.bxR$Sts */ /* loaded from: classes4.dex */ public final /* synthetic */ class Sts { public static final int[] b; static { int[] iArr = new int[EnumC5550bvF.values().length]; try { iArr[EnumC5550bvF.SUBMISSION.ordinal()] = 1; } catch (NoSuchFieldError unused) { } try { iArr[EnumC5550bvF.RESUBMISSION.ordinal()] = 2; } catch (NoSuchFieldError unused2) { } b = iArr; } } }