package com.applovin.impl; import android.net.Uri; import android.os.Bundle; import com.applovin.impl.o2; import com.applovin.impl.td; import com.mbridge.msdk.playercommon.exoplayer2.C; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.UUID; /* loaded from: classes.dex */ public final class td implements o2 { public static final td g = new c().a(); public static final o2.a h = new o2.a() { // from class: com.applovin.impl.td$$ExternalSyntheticLambda0 @Override // com.applovin.impl.o2.a public final o2 a(Bundle bundle) { td a2; a2 = td.a(bundle); return a2; } }; public final String a; public final g b; public final f c; public final vd d; public final d f; public static final class b { } public static final class c { private String a; private Uri b; private String c; private long d; private long e; private boolean f; private boolean g; private boolean h; private e.a i; private List j; private String k; private List l; private Object m; private vd n; private f.a o; public c a(Uri uri) { this.b = uri; return this; } public c a(Object obj) { this.m = obj; return this; } public c a(String str) { this.k = str; return this; } public c() { this.e = Long.MIN_VALUE; this.i = new e.a(); this.j = Collections.emptyList(); this.l = Collections.emptyList(); this.o = new f.a(); } public c b(String str) { this.a = (String) b1.a((Object) str); return this; } private c(td tdVar) { this(); e.a aVar; d dVar = tdVar.f; this.e = dVar.b; this.f = dVar.c; this.g = dVar.d; this.d = dVar.a; this.h = dVar.f; this.a = tdVar.a; this.n = tdVar.d; this.o = tdVar.c.a(); g gVar = tdVar.b; if (gVar != null) { this.k = gVar.e; this.c = gVar.b; this.b = gVar.a; this.j = gVar.d; this.l = gVar.f; this.m = gVar.g; e eVar = gVar.c; if (eVar != null) { aVar = eVar.a(); } else { aVar = new e.a(); } this.i = aVar; } } public td a() { g gVar; b1.b(this.i.b == null || this.i.a != null); Uri uri = this.b; if (uri != null) { gVar = new g(uri, this.c, this.i.a != null ? this.i.a() : null, null, this.j, this.k, this.l, this.m); } else { gVar = null; } String str = this.a; if (str == null) { str = ""; } String str2 = str; d dVar = new d(this.d, this.e, this.f, this.g, this.h); f a = this.o.a(); vd vdVar = this.n; if (vdVar == null) { vdVar = vd.H; } return new td(str2, dVar, gVar, a, vdVar); } } public static final class e { public final UUID a; public final Uri b; public final gb c; public final boolean d; public final boolean e; public final boolean f; public final eb g; private final byte[] h; public a a() { return new a(); } public static final class a { private UUID a; private Uri b; private gb c; private boolean d; private boolean e; private boolean f; private eb g; private byte[] h; public e a() { return new e(this); } private a() { this.c = gb.h(); this.g = eb.h(); } private a(e eVar) { this.a = eVar.a; this.b = eVar.b; this.c = eVar.c; this.d = eVar.d; this.e = eVar.e; this.f = eVar.f; this.g = eVar.g; this.h = eVar.h; } } private e(a aVar) { b1.b((aVar.f && aVar.b == null) ? false : true); this.a = (UUID) b1.a(aVar.a); this.b = aVar.b; this.c = aVar.c; this.d = aVar.d; this.f = aVar.f; this.e = aVar.e; this.g = aVar.g; this.h = aVar.h != null ? Arrays.copyOf(aVar.h, aVar.h.length) : null; } public byte[] b() { byte[] bArr = this.h; if (bArr != null) { return Arrays.copyOf(bArr, bArr.length); } return null; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof e)) { return false; } e eVar = (e) obj; return this.a.equals(eVar.a) && xp.a(this.b, eVar.b) && xp.a(this.c, eVar.c) && this.d == eVar.d && this.f == eVar.f && this.e == eVar.e && this.g.equals(eVar.g) && Arrays.equals(this.h, eVar.h); } public int hashCode() { int hashCode = this.a.hashCode() * 31; Uri uri = this.b; return ((((((((((((hashCode + (uri != null ? uri.hashCode() : 0)) * 31) + this.c.hashCode()) * 31) + (this.d ? 1 : 0)) * 31) + (this.f ? 1 : 0)) * 31) + (this.e ? 1 : 0)) * 31) + this.g.hashCode()) * 31) + Arrays.hashCode(this.h); } } public static final class g { public final Uri a; public final String b; public final e c; public final List d; public final String e; public final List f; public final Object g; private g(Uri uri, String str, e eVar, b bVar, List list, String str2, List list2, Object obj) { this.a = uri; this.b = str; this.c = eVar; this.d = list; this.e = str2; this.f = list2; this.g = obj; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof g)) { return false; } g gVar = (g) obj; return this.a.equals(gVar.a) && xp.a((Object) this.b, (Object) gVar.b) && xp.a(this.c, gVar.c) && xp.a((Object) null, (Object) null) && this.d.equals(gVar.d) && xp.a((Object) this.e, (Object) gVar.e) && this.f.equals(gVar.f) && xp.a(this.g, gVar.g); } public int hashCode() { int hashCode = this.a.hashCode() * 31; String str = this.b; int hashCode2 = (hashCode + (str == null ? 0 : str.hashCode())) * 31; e eVar = this.c; int hashCode3 = (((hashCode2 + (eVar == null ? 0 : eVar.hashCode())) * 961) + this.d.hashCode()) * 31; String str2 = this.e; int hashCode4 = (((hashCode3 + (str2 == null ? 0 : str2.hashCode())) * 31) + this.f.hashCode()) * 31; Object obj = this.g; return hashCode4 + (obj != null ? obj.hashCode() : 0); } } public static final class f implements o2 { public static final f g = new a().a(); public static final o2.a h = new o2.a() { // from class: com.applovin.impl.td$f$$ExternalSyntheticLambda0 @Override // com.applovin.impl.o2.a public final o2 a(Bundle bundle) { td.f a2; a2 = td.f.a(bundle); return a2; } }; public final long a; public final long b; public final long c; public final float d; public final float f; public static final class a { private long a; private long b; private long c; private float d; private float e; public f a() { return new f(this); } public a() { this.a = C.TIME_UNSET; this.b = C.TIME_UNSET; this.c = C.TIME_UNSET; this.d = -3.4028235E38f; this.e = -3.4028235E38f; } private a(f fVar) { this.a = fVar.a; this.b = fVar.b; this.c = fVar.c; this.d = fVar.d; this.e = fVar.f; } } public f(long j, long j2, long j3, float f, float f2) { this.a = j; this.b = j2; this.c = j3; this.d = f; this.f = f2; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof f)) { return false; } f fVar = (f) obj; return this.a == fVar.a && this.b == fVar.b && this.c == fVar.c && this.d == fVar.d && this.f == fVar.f; } public int hashCode() { long j = this.a; long j2 = this.b; int i = ((((int) (j ^ (j >>> 32))) * 31) + ((int) (j2 ^ (j2 >>> 32)))) * 31; long j3 = this.c; int i2 = (i + ((int) ((j3 >>> 32) ^ j3))) * 31; float f = this.d; int floatToIntBits = (i2 + (f != 0.0f ? Float.floatToIntBits(f) : 0)) * 31; float f2 = this.f; return floatToIntBits + (f2 != 0.0f ? Float.floatToIntBits(f2) : 0); } private static String a(int i) { return Integer.toString(i, 36); } public a a() { return new a(); } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ f a(Bundle bundle) { return new f(bundle.getLong(a(0), C.TIME_UNSET), bundle.getLong(a(1), C.TIME_UNSET), bundle.getLong(a(2), C.TIME_UNSET), bundle.getFloat(a(3), -3.4028235E38f), bundle.getFloat(a(4), -3.4028235E38f)); } private f(a aVar) { this(aVar.a, aVar.b, aVar.c, aVar.d, aVar.e); } } public static final class d implements o2 { public static final o2.a g = new o2.a() { // from class: com.applovin.impl.td$d$$ExternalSyntheticLambda0 @Override // com.applovin.impl.o2.a public final o2 a(Bundle bundle) { td.d a; a = td.d.a(bundle); return a; } }; public final long a; public final long b; public final boolean c; public final boolean d; public final boolean f; public int hashCode() { long j = this.a; int i = ((int) (j ^ (j >>> 32))) * 31; long j2 = this.b; return ((((((i + ((int) ((j2 >>> 32) ^ j2))) * 31) + (this.c ? 1 : 0)) * 31) + (this.d ? 1 : 0)) * 31) + (this.f ? 1 : 0); } private d(long j, long j2, boolean z, boolean z2, boolean z3) { this.a = j; this.b = j2; this.c = z; this.d = z2; this.f = z3; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof d)) { return false; } d dVar = (d) obj; return this.a == dVar.a && this.b == dVar.b && this.c == dVar.c && this.d == dVar.d && this.f == dVar.f; } private static String a(int i) { return Integer.toString(i, 36); } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ d a(Bundle bundle) { return new d(bundle.getLong(a(0), 0L), bundle.getLong(a(1), Long.MIN_VALUE), bundle.getBoolean(a(2), false), bundle.getBoolean(a(3), false), bundle.getBoolean(a(4), false)); } } private td(String str, d dVar, g gVar, f fVar, vd vdVar) { this.a = str; this.b = gVar; this.c = fVar; this.d = vdVar; this.f = dVar; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof td)) { return false; } td tdVar = (td) obj; return xp.a((Object) this.a, (Object) tdVar.a) && this.f.equals(tdVar.f) && xp.a(this.b, tdVar.b) && xp.a(this.c, tdVar.c) && xp.a(this.d, tdVar.d); } public int hashCode() { int hashCode = this.a.hashCode() * 31; g gVar = this.b; return ((((((hashCode + (gVar != null ? gVar.hashCode() : 0)) * 31) + this.c.hashCode()) * 31) + this.f.hashCode()) * 31) + this.d.hashCode(); } /* JADX INFO: Access modifiers changed from: private */ public static td a(Bundle bundle) { f fVar; vd vdVar; d dVar; String str = (String) b1.a((Object) bundle.getString(a(0), "")); Bundle bundle2 = bundle.getBundle(a(1)); if (bundle2 == null) { fVar = f.g; } else { fVar = (f) f.h.a(bundle2); } f fVar2 = fVar; Bundle bundle3 = bundle.getBundle(a(2)); if (bundle3 == null) { vdVar = vd.H; } else { vdVar = (vd) vd.I.a(bundle3); } vd vdVar2 = vdVar; Bundle bundle4 = bundle.getBundle(a(3)); if (bundle4 == null) { dVar = new d(0L, Long.MIN_VALUE, false, false, false); } else { dVar = (d) d.g.a(bundle4); } return new td(str, dVar, null, fVar2, vdVar2); } private static String a(int i) { return Integer.toString(i, 36); } public static td a(Uri uri) { return new c().a(uri).a(); } public c a() { return new c(); } }