package h6; import h6.o; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; import l6.m; /* loaded from: classes2.dex */ final class n { /* renamed from: a, reason: collision with root package name */ private final List f10406a = new ArrayList(); /* renamed from: b, reason: collision with root package name */ private final List f10407b = new ArrayList(); /* renamed from: c, reason: collision with root package name */ private b6.c f10408c; /* renamed from: d, reason: collision with root package name */ private Object f10409d; /* renamed from: e, reason: collision with root package name */ private int f10410e; /* renamed from: f, reason: collision with root package name */ private int f10411f; /* renamed from: g, reason: collision with root package name */ private Class f10412g; /* renamed from: h, reason: collision with root package name */ private o.e f10413h; /* renamed from: i, reason: collision with root package name */ private e6.j f10414i; /* renamed from: j, reason: collision with root package name */ private Map f10415j; /* renamed from: k, reason: collision with root package name */ private Class f10416k; /* renamed from: l, reason: collision with root package name */ private boolean f10417l; /* renamed from: m, reason: collision with root package name */ private boolean f10418m; /* renamed from: n, reason: collision with root package name */ private e6.h f10419n; /* renamed from: o, reason: collision with root package name */ private b6.g f10420o; /* renamed from: p, reason: collision with root package name */ private c f10421p; /* renamed from: q, reason: collision with root package name */ private boolean f10422q; /* renamed from: r, reason: collision with root package name */ private boolean f10423r; n() { } e6.d a(Object obj) { return this.f10408c.i().m(obj); } e6.m b(h hVar) { return this.f10408c.i().k(hVar); } g c(Class cls) { return this.f10408c.i().h(cls, this.f10412g, this.f10416k); } List d(File file) { return this.f10408c.i().i(file); } void e() { this.f10408c = null; this.f10409d = null; this.f10419n = null; this.f10412g = null; this.f10416k = null; this.f10414i = null; this.f10420o = null; this.f10415j = null; this.f10421p = null; this.f10406a.clear(); this.f10417l = false; this.f10407b.clear(); this.f10418m = false; } void f(b6.c cVar, Object obj, e6.h hVar, int i10, int i11, c cVar2, Class cls, Class cls2, b6.g gVar, e6.j jVar, Map map, boolean z10, boolean z11, o.e eVar) { this.f10408c = cVar; this.f10409d = obj; this.f10419n = hVar; this.f10410e = i10; this.f10411f = i11; this.f10421p = cVar2; this.f10412g = cls; this.f10413h = eVar; this.f10416k = cls2; this.f10420o = gVar; this.f10414i = jVar; this.f10415j = map; this.f10422q = z10; this.f10423r = z11; } boolean g(e6.h hVar) { List p10 = p(); int size = p10.size(); for (int i10 = 0; i10 < size; i10++) { if (((m.a) p10.get(i10)).f11674a.equals(hVar)) { return true; } } return false; } e6.n h(Class cls) { e6.n nVar = (e6.n) this.f10415j.get(cls); if (nVar == null) { Iterator it = this.f10415j.entrySet().iterator(); while (true) { if (!it.hasNext()) { break; } Map.Entry entry = (Map.Entry) it.next(); if (((Class) entry.getKey()).isAssignableFrom(cls)) { nVar = (e6.n) entry.getValue(); break; } } } if (nVar != null) { return nVar; } if (!this.f10415j.isEmpty() || !this.f10422q) { return n6.c.c(); } throw new IllegalArgumentException("Missing transformation for " + cls + ". If you wish to ignore unknown resource types, use the optional transformation methods."); } i6.a i() { return this.f10408c.b(); } boolean j(h hVar) { return this.f10408c.i().n(hVar); } List k() { if (!this.f10418m) { this.f10418m = true; this.f10407b.clear(); List p10 = p(); int size = p10.size(); for (int i10 = 0; i10 < size; i10++) { m.a aVar = (m.a) p10.get(i10); if (!this.f10407b.contains(aVar.f11674a)) { this.f10407b.add(aVar.f11674a); } for (int i11 = 0; i11 < aVar.f11675b.size(); i11++) { if (!this.f10407b.contains(aVar.f11675b.get(i11))) { this.f10407b.add((e6.h) aVar.f11675b.get(i11)); } } } } return this.f10407b; } boolean l(Class cls) { return c(cls) != null; } j6.a m() { return this.f10413h.a(); } c n() { return this.f10421p; } int o() { return this.f10411f; } List p() { if (!this.f10417l) { this.f10417l = true; this.f10406a.clear(); List i10 = this.f10408c.i().i(this.f10409d); int size = i10.size(); for (int i11 = 0; i11 < size; i11++) { m.a b10 = ((l6.m) i10.get(i11)).b(this.f10409d, this.f10410e, this.f10411f, this.f10414i); if (b10 != null) { this.f10406a.add(b10); } } } return this.f10406a; } Class q() { return this.f10409d.getClass(); } e6.j r() { return this.f10414i; } b6.g s() { return this.f10420o; } List t() { return this.f10408c.i().j(this.f10409d.getClass(), this.f10412g, this.f10416k); } e6.h u() { return this.f10419n; } Class v() { return this.f10416k; } int w() { return this.f10410e; } boolean x() { return this.f10423r; } }