package z2;

import java.util.Set;
import w2.C1699b;
import w2.InterfaceC1701d;
import w2.InterfaceC1702e;

/* JADX INFO: loaded from: classes.dex */
public final class n implements InterfaceC1702e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Set f19273a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final i f19274b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final o f19275c;

    public n(Set set, i iVar, o oVar) {
        this.f19273a = set;
        this.f19274b = iVar;
        this.f19275c = oVar;
    }

    public final K2.e a(String str, C1699b c1699b, InterfaceC1701d interfaceC1701d) {
        Set set = this.f19273a;
        if (!set.contains(c1699b)) {
            throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", c1699b, set));
        }
        i iVar = this.f19274b;
        o oVar = this.f19275c;
        K2.e eVar = new K2.e();
        eVar.f3552q = iVar;
        eVar.f3553r = str;
        eVar.f3554s = c1699b;
        eVar.f3555t = interfaceC1701d;
        eVar.f3556u = oVar;
        return eVar;
    }
}
