package i2; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import com.google.android.gms.ads.AdRequest; import java.util.Map; import m2.k; import q1.l; import s1.j; import z1.n; import z1.v; import z1.x; /* loaded from: classes.dex */ public abstract class a implements Cloneable { /* renamed from: a, reason: collision with root package name */ private int f10790a; /* renamed from: e, reason: collision with root package name */ private Drawable f10794e; /* renamed from: f, reason: collision with root package name */ private int f10795f; /* renamed from: g, reason: collision with root package name */ private Drawable f10796g; /* renamed from: h, reason: collision with root package name */ private int f10797h; /* renamed from: m, reason: collision with root package name */ private boolean f10802m; /* renamed from: o, reason: collision with root package name */ private Drawable f10804o; /* renamed from: p, reason: collision with root package name */ private int f10805p; /* renamed from: t, reason: collision with root package name */ private boolean f10809t; /* renamed from: u, reason: collision with root package name */ private Resources.Theme f10810u; /* renamed from: v, reason: collision with root package name */ private boolean f10811v; /* renamed from: w, reason: collision with root package name */ private boolean f10812w; /* renamed from: x, reason: collision with root package name */ private boolean f10813x; /* renamed from: z, reason: collision with root package name */ private boolean f10815z; /* renamed from: b, reason: collision with root package name */ private float f10791b = 1.0f; /* renamed from: c, reason: collision with root package name */ private j f10792c = j.f13870e; /* renamed from: d, reason: collision with root package name */ private com.bumptech.glide.g f10793d = com.bumptech.glide.g.NORMAL; /* renamed from: i, reason: collision with root package name */ private boolean f10798i = true; /* renamed from: j, reason: collision with root package name */ private int f10799j = -1; /* renamed from: k, reason: collision with root package name */ private int f10800k = -1; /* renamed from: l, reason: collision with root package name */ private q1.f f10801l = l2.a.c(); /* renamed from: n, reason: collision with root package name */ private boolean f10803n = true; /* renamed from: q, reason: collision with root package name */ private q1.h f10806q = new q1.h(); /* renamed from: r, reason: collision with root package name */ private Map f10807r = new m2.b(); /* renamed from: s, reason: collision with root package name */ private Class f10808s = Object.class; /* renamed from: y, reason: collision with root package name */ private boolean f10814y = true; private boolean H(int i10) { return I(this.f10790a, i10); } private static boolean I(int i10, int i11) { return (i10 & i11) != 0; } private a R(n nVar, l lVar) { return V(nVar, lVar, false); } private a V(n nVar, l lVar, boolean z10) { a f02 = z10 ? f0(nVar, lVar) : S(nVar, lVar); f02.f10814y = true; return f02; } private a W() { return this; } public final boolean A() { return this.f10815z; } public final boolean B() { return this.f10812w; } protected final boolean C() { return this.f10811v; } public final boolean D() { return this.f10798i; } public final boolean E() { return H(8); } boolean F() { return this.f10814y; } public final boolean J() { return this.f10803n; } public final boolean K() { return this.f10802m; } public final boolean L() { return H(2048); } public final boolean M() { return k.s(this.f10800k, this.f10799j); } public a N() { this.f10809t = true; return W(); } public a O() { return S(n.f15766e, new z1.k()); } public a P() { return R(n.f15765d, new z1.l()); } public a Q() { return R(n.f15764c, new x()); } final a S(n nVar, l lVar) { if (this.f10811v) { return clone().S(nVar, lVar); } g(nVar); return e0(lVar, false); } public a T(int i10, int i11) { if (this.f10811v) { return clone().T(i10, i11); } this.f10800k = i10; this.f10799j = i11; this.f10790a |= AdRequest.MAX_CONTENT_URL_LENGTH; return X(); } public a U(com.bumptech.glide.g gVar) { if (this.f10811v) { return clone().U(gVar); } this.f10793d = (com.bumptech.glide.g) m2.j.d(gVar); this.f10790a |= 8; return X(); } protected final a X() { if (this.f10809t) { throw new IllegalStateException("You cannot modify locked T, consider clone()"); } return W(); } public a Y(q1.g gVar, Object obj) { if (this.f10811v) { return clone().Y(gVar, obj); } m2.j.d(gVar); m2.j.d(obj); this.f10806q.e(gVar, obj); return X(); } public a Z(q1.f fVar) { if (this.f10811v) { return clone().Z(fVar); } this.f10801l = (q1.f) m2.j.d(fVar); this.f10790a |= 1024; return X(); } public a a(a aVar) { if (this.f10811v) { return clone().a(aVar); } if (I(aVar.f10790a, 2)) { this.f10791b = aVar.f10791b; } if (I(aVar.f10790a, 262144)) { this.f10812w = aVar.f10812w; } if (I(aVar.f10790a, 1048576)) { this.f10815z = aVar.f10815z; } if (I(aVar.f10790a, 4)) { this.f10792c = aVar.f10792c; } if (I(aVar.f10790a, 8)) { this.f10793d = aVar.f10793d; } if (I(aVar.f10790a, 16)) { this.f10794e = aVar.f10794e; this.f10795f = 0; this.f10790a &= -33; } if (I(aVar.f10790a, 32)) { this.f10795f = aVar.f10795f; this.f10794e = null; this.f10790a &= -17; } if (I(aVar.f10790a, 64)) { this.f10796g = aVar.f10796g; this.f10797h = 0; this.f10790a &= -129; } if (I(aVar.f10790a, 128)) { this.f10797h = aVar.f10797h; this.f10796g = null; this.f10790a &= -65; } if (I(aVar.f10790a, 256)) { this.f10798i = aVar.f10798i; } if (I(aVar.f10790a, AdRequest.MAX_CONTENT_URL_LENGTH)) { this.f10800k = aVar.f10800k; this.f10799j = aVar.f10799j; } if (I(aVar.f10790a, 1024)) { this.f10801l = aVar.f10801l; } if (I(aVar.f10790a, 4096)) { this.f10808s = aVar.f10808s; } if (I(aVar.f10790a, 8192)) { this.f10804o = aVar.f10804o; this.f10805p = 0; this.f10790a &= -16385; } if (I(aVar.f10790a, 16384)) { this.f10805p = aVar.f10805p; this.f10804o = null; this.f10790a &= -8193; } if (I(aVar.f10790a, 32768)) { this.f10810u = aVar.f10810u; } if (I(aVar.f10790a, 65536)) { this.f10803n = aVar.f10803n; } if (I(aVar.f10790a, 131072)) { this.f10802m = aVar.f10802m; } if (I(aVar.f10790a, 2048)) { this.f10807r.putAll(aVar.f10807r); this.f10814y = aVar.f10814y; } if (I(aVar.f10790a, 524288)) { this.f10813x = aVar.f10813x; } if (!this.f10803n) { this.f10807r.clear(); int i10 = this.f10790a & (-2049); this.f10802m = false; this.f10790a = i10 & (-131073); this.f10814y = true; } this.f10790a |= aVar.f10790a; this.f10806q.d(aVar.f10806q); return X(); } public a a0(float f10) { if (this.f10811v) { return clone().a0(f10); } if (f10 < 0.0f || f10 > 1.0f) { throw new IllegalArgumentException("sizeMultiplier must be between 0 and 1"); } this.f10791b = f10; this.f10790a |= 2; return X(); } public a b() { if (this.f10809t && !this.f10811v) { throw new IllegalStateException("You cannot auto lock an already locked options object, try clone() first"); } this.f10811v = true; return N(); } public a b0(boolean z10) { if (this.f10811v) { return clone().b0(true); } this.f10798i = !z10; this.f10790a |= 256; return X(); } a c0(Class cls, l lVar, boolean z10) { if (this.f10811v) { return clone().c0(cls, lVar, z10); } m2.j.d(cls); m2.j.d(lVar); this.f10807r.put(cls, lVar); int i10 = this.f10790a | 2048; this.f10803n = true; int i11 = i10 | 65536; this.f10790a = i11; this.f10814y = false; if (z10) { this.f10790a = i11 | 131072; this.f10802m = true; } return X(); } @Override // /* renamed from: d, reason: merged with bridge method [inline-methods] */ public a clone() { try { a aVar = (a) super.clone(); q1.h hVar = new q1.h(); aVar.f10806q = hVar; hVar.d(this.f10806q); m2.b bVar = new m2.b(); aVar.f10807r = bVar; bVar.putAll(this.f10807r); aVar.f10809t = false; aVar.f10811v = false; return aVar; } catch (CloneNotSupportedException e10) { throw new RuntimeException(e10); } } public a d0(l lVar) { return e0(lVar, true); } public a e(Class cls) { if (this.f10811v) { return clone().e(cls); } this.f10808s = (Class) m2.j.d(cls); this.f10790a |= 4096; return X(); } a e0(l lVar, boolean z10) { if (this.f10811v) { return clone().e0(lVar, z10); } v vVar = new v(lVar, z10); c0(Bitmap.class, lVar, z10); c0(Drawable.class, vVar, z10); c0(BitmapDrawable.class, vVar.c(), z10); c0(d2.c.class, new d2.f(lVar), z10); return X(); } public boolean equals(Object obj) { if (!(obj instanceof a)) { return false; } a aVar = (a) obj; return Float.compare(aVar.f10791b, this.f10791b) == 0 && this.f10795f == aVar.f10795f && k.c(this.f10794e, aVar.f10794e) && this.f10797h == aVar.f10797h && k.c(this.f10796g, aVar.f10796g) && this.f10805p == aVar.f10805p && k.c(this.f10804o, aVar.f10804o) && this.f10798i == aVar.f10798i && this.f10799j == aVar.f10799j && this.f10800k == aVar.f10800k && this.f10802m == aVar.f10802m && this.f10803n == aVar.f10803n && this.f10812w == aVar.f10812w && this.f10813x == aVar.f10813x && this.f10792c.equals(aVar.f10792c) && this.f10793d == aVar.f10793d && this.f10806q.equals(aVar.f10806q) && this.f10807r.equals(aVar.f10807r) && this.f10808s.equals(aVar.f10808s) && k.c(this.f10801l, aVar.f10801l) && k.c(this.f10810u, aVar.f10810u); } public a f(j jVar) { if (this.f10811v) { return clone().f(jVar); } this.f10792c = (j) m2.j.d(jVar); this.f10790a |= 4; return X(); } final a f0(n nVar, l lVar) { if (this.f10811v) { return clone().f0(nVar, lVar); } g(nVar); return d0(lVar); } public a g(n nVar) { return Y(n.f15769h, m2.j.d(nVar)); } public a g0(boolean z10) { if (this.f10811v) { return clone().g0(z10); } this.f10815z = z10; this.f10790a |= 1048576; return X(); } public a h(int i10) { if (this.f10811v) { return clone().h(i10); } this.f10795f = i10; int i11 = this.f10790a | 32; this.f10794e = null; this.f10790a = i11 & (-17); return X(); } public int hashCode() { return k.n(this.f10810u, k.n(this.f10801l, k.n(this.f10808s, k.n(this.f10807r, k.n(this.f10806q, k.n(this.f10793d, k.n(this.f10792c, k.o(this.f10813x, k.o(this.f10812w, k.o(this.f10803n, k.o(this.f10802m, k.m(this.f10800k, k.m(this.f10799j, k.o(this.f10798i, k.n(this.f10804o, k.m(this.f10805p, k.n(this.f10796g, k.m(this.f10797h, k.n(this.f10794e, k.m(this.f10795f, k.k(this.f10791b))))))))))))))))))))); } public final j i() { return this.f10792c; } public final int j() { return this.f10795f; } public final Drawable k() { return this.f10794e; } public final Drawable l() { return this.f10804o; } public final int m() { return this.f10805p; } public final boolean n() { return this.f10813x; } public final q1.h o() { return this.f10806q; } public final int p() { return this.f10799j; } public final int q() { return this.f10800k; } public final Drawable r() { return this.f10796g; } public final int s() { return this.f10797h; } public final com.bumptech.glide.g t() { return this.f10793d; } public final Class u() { return this.f10808s; } public final q1.f v() { return this.f10801l; } public final float w() { return this.f10791b; } public final Resources.Theme x() { return this.f10810u; } public final Map y() { return this.f10807r; } }