package ap;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import kotlin.jvm.internal.t;
import sm.u;
import tn.d1;

/* loaded from: classes3.dex */
public final class f extends i {

    /* renamed from: b, reason: collision with root package name */
    private final h f6141b;

    public f(h workerScope) {
        t.g(workerScope, "workerScope");
        this.f6141b = workerScope;
    }

    @Override // ap.i, ap.h
    public Set a() {
        return this.f6141b.a();
    }

    @Override // ap.i, ap.h
    public Set d() {
        return this.f6141b.d();
    }

    @Override // ap.i, ap.k
    public tn.h e(ro.f name, ao.b location) {
        t.g(name, "name");
        t.g(location, "location");
        tn.h e10 = this.f6141b.e(name, location);
        if (e10 == null) {
            return null;
        }
        tn.e eVar = e10 instanceof tn.e ? (tn.e) e10 : null;
        if (eVar != null) {
            return eVar;
        }
        if (e10 instanceof d1) {
            return (d1) e10;
        }
        return null;
    }

    @Override // ap.i, ap.h
    public Set g() {
        return this.f6141b.g();
    }

    @Override // ap.i, ap.k
    /* renamed from: h, reason: merged with bridge method [inline-methods] */
    public List f(d kindFilter, dn.l nameFilter) {
        List k10;
        t.g(kindFilter, "kindFilter");
        t.g(nameFilter, "nameFilter");
        d n10 = kindFilter.n(d.f6107c.c());
        if (n10 == null) {
            k10 = u.k();
            return k10;
        }
        Collection f10 = this.f6141b.f(n10, nameFilter);
        ArrayList arrayList = new ArrayList();
        for (Object obj : f10) {
            if (obj instanceof tn.i) {
                arrayList.add(obj);
            }
        }
        return arrayList;
    }

    public String toString() {
        return "Classes from " + this.f6141b;
    }
}
