package e.a;

import com.seewo.libmcuservice.constant.ITVStateConstants;
import d.g0;
import d.j0.p;
import d.n;
import d.n0.c.a0;
import d.n0.c.s;
import d.n0.c.t;
import e.a.o.d;
import e.a.o.j;
import java.lang.annotation.Annotation;
import java.util.List;

/* JADX INFO: compiled from: PolymorphicSerializer.kt */
/* JADX INFO: loaded from: classes.dex */
@n
public final class e<T> extends e.a.q.b<T> {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final d.q0.b<T> f2748a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private List<? extends Annotation> f2749b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private final d.i f2750c;

    /* JADX INFO: compiled from: PolymorphicSerializer.kt */
    @n
    static final class a extends t implements d.n0.b.a<e.a.o.f> {

        /* JADX INFO: renamed from: d, reason: collision with root package name */
        final /* synthetic */ e<T> f2751d;

        /* JADX INFO: renamed from: e.a.e$a$a, reason: collision with other inner class name */
        /* JADX INFO: compiled from: PolymorphicSerializer.kt */
        @n
        static final class C0089a extends t implements d.n0.b.l<e.a.o.a, g0> {

            /* JADX INFO: renamed from: d, reason: collision with root package name */
            final /* synthetic */ e<T> f2752d;

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            C0089a(e<T> eVar) {
                super(1);
                this.f2752d = eVar;
            }

            public final void c(e.a.o.a aVar) {
                s.e(aVar, "$this$buildSerialDescriptor");
                e.a.o.a.b(aVar, "type", e.a.n.a.G(a0.f2623a).getDescriptor(), null, false, 12, null);
                e.a.o.a.b(aVar, ITVStateConstants.KEY_VOICE_VALUE, e.a.o.i.d("kotlinx.serialization.Polymorphic<" + this.f2752d.e().a() + '>', j.a.f2790a, new e.a.o.f[0], null, 8, null), null, false, 12, null);
                aVar.h(((e) this.f2752d).f2749b);
            }

            @Override // d.n0.b.l
            public /* bridge */ /* synthetic */ g0 e(e.a.o.a aVar) {
                c(aVar);
                return g0.f2578a;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(e<T> eVar) {
            super(0);
            this.f2751d = eVar;
        }

        @Override // d.n0.b.a
        /* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
        public final e.a.o.f a() {
            return e.a.o.b.c(e.a.o.i.c("kotlinx.serialization.Polymorphic", d.a.f2763a, new e.a.o.f[0], new C0089a(this.f2751d)), this.f2751d.e());
        }
    }

    public e(d.q0.b<T> bVar) {
        s.e(bVar, "baseClass");
        this.f2748a = bVar;
        this.f2749b = p.d();
        this.f2750c = d.k.a(d.m.PUBLICATION, new a(this));
    }

    @Override // e.a.q.b
    public d.q0.b<T> e() {
        return this.f2748a;
    }

    @Override // e.a.b, e.a.j, e.a.a
    public e.a.o.f getDescriptor() {
        return (e.a.o.f) this.f2750c.getValue();
    }

    public String toString() {
        return "kotlinx.serialization.PolymorphicSerializer(baseClass: " + e() + ')';
    }
}
