package q2; import android.content.Context; import java.util.Collections; import java.util.Set; /* loaded from: classes.dex */ public class t implements s { /* renamed from: e, reason: collision with root package name */ private static volatile u f13447e; /* renamed from: a, reason: collision with root package name */ private final a3.a f13448a; /* renamed from: b, reason: collision with root package name */ private final a3.a f13449b; /* renamed from: c, reason: collision with root package name */ private final w2.e f13450c; /* renamed from: d, reason: collision with root package name */ private final x2.r f13451d; t(a3.a aVar, a3.a aVar2, w2.e eVar, x2.r rVar, x2.v vVar) { this.f13448a = aVar; this.f13449b = aVar2; this.f13450c = eVar; this.f13451d = rVar; vVar.c(); } private i b(n nVar) { return i.a().i(this.f13448a.a()).k(this.f13449b.a()).j(nVar.g()).h(new h(nVar.b(), nVar.d())).g(nVar.c().a()).d(); } public static t c() { u uVar = f13447e; if (uVar != null) { return uVar.z(); } throw new IllegalStateException("Not initialized!"); } private static Set d(f fVar) { return fVar instanceof g ? Collections.unmodifiableSet(((g) fVar).b()) : Collections.singleton(o2.b.b("proto")); } public static void f(Context context) { if (f13447e == null) { synchronized (t.class) { if (f13447e == null) { f13447e = e.G().a(context).build(); } } } } @Override // q2.s public void a(n nVar, o2.h hVar) { this.f13450c.a(nVar.f().f(nVar.c().c()), b(nVar), hVar); } public x2.r e() { return this.f13451d; } public o2.g g(f fVar) { return new p(d(fVar), o.a().b(fVar.a()).c(fVar.getExtras()).a(), this); } }