package o;

import java.util.Set;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Tg0 implements Sg0 {
    public final Set a;
    public final C2156pc b;
    public final Ug0 c;

    public Tg0(Set set, C2156pc c2156pc, Ug0 ug0) {
        this.a = set;
        this.b = c2156pc;
        this.c = ug0;
    }

    public final Q1 a(String str, C0618Xv c0618Xv, InterfaceC1880mg0 interfaceC1880mg0) {
        Set set = this.a;
        if (!set.contains(c0618Xv)) {
            throw new IllegalArgumentException(String.format("%s is not supported byt this factory. Supported encodings are: %s.", c0618Xv, set));
        }
        return new Q1(this.b, str, c0618Xv, interfaceC1880mg0, this.c, 10);
    }
}
