package C0;

import D0.j;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

/* JADX INFO: loaded from: classes.dex */
public abstract class d {
    public static boolean a(String str) {
        D0.b bVar = j.f434a;
        Set<D0.d> setUnmodifiableSet = Collections.unmodifiableSet(D0.c.f427c);
        HashSet hashSet = new HashSet();
        for (D0.d dVar : setUnmodifiableSet) {
            if (((D0.c) dVar).f428a.equals(str)) {
                hashSet.add(dVar);
            }
        }
        if (hashSet.isEmpty()) {
            throw new RuntimeException(s0.c.f("Unknown feature ", str));
        }
        Iterator it = hashSet.iterator();
        while (it.hasNext()) {
            D0.c cVar = (D0.c) ((D0.d) it.next());
            if (cVar.a() || cVar.b()) {
                return true;
            }
        }
        return false;
    }
}
