package x1;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import java.util.ArrayList;
import java.util.List;
import kotlin.jvm.internal.t;
import s1.g0;
import s1.u;
import s1.y;

/* loaded from: classes.dex */
public final class d {

    /* renamed from: k, reason: collision with root package name */
    public static final b f50271k = new b(null);

    /* renamed from: l, reason: collision with root package name */
    private static int f50272l;

    /* renamed from: a, reason: collision with root package name */
    private final String f50273a;

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

    /* renamed from: c, reason: collision with root package name */
    private final float f50275c;

    /* renamed from: d, reason: collision with root package name */
    private final float f50276d;

    /* renamed from: e, reason: collision with root package name */
    private final float f50277e;

    /* renamed from: f, reason: collision with root package name */
    private final n f50278f;

    /* renamed from: g, reason: collision with root package name */
    private final long f50279g;

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

    /* renamed from: i, reason: collision with root package name */
    private final boolean f50281i;

    /* renamed from: j, reason: collision with root package name */
    private final int f50282j;

    /* loaded from: classes.dex */
    public static final class a {

        /* renamed from: a, reason: collision with root package name */
        private final String f50283a;

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

        /* renamed from: c, reason: collision with root package name */
        private final float f50285c;

        /* renamed from: d, reason: collision with root package name */
        private final float f50286d;

        /* renamed from: e, reason: collision with root package name */
        private final float f50287e;

        /* renamed from: f, reason: collision with root package name */
        private final long f50288f;

        /* renamed from: g, reason: collision with root package name */
        private final int f50289g;

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

        /* renamed from: i, reason: collision with root package name */
        private final ArrayList f50291i;

        /* renamed from: j, reason: collision with root package name */
        private C0999a f50292j;

        /* renamed from: k, reason: collision with root package name */
        private boolean f50293k;

        public /* synthetic */ a(String str, float f10, float f11, float f12, float f13, long j10, int i10, boolean z10, kotlin.jvm.internal.k kVar) {
            this(str, f10, f11, f12, f13, j10, i10, z10);
        }

        public static /* synthetic */ a b(a aVar, String str, float f10, float f11, float f12, float f13, float f14, float f15, float f16, List list, int i10, Object obj) {
            String str2 = (i10 & 1) != 0 ? "" : str;
            int i11 = i10 & 2;
            float f17 = BitmapDescriptorFactory.HUE_RED;
            float f18 = i11 != 0 ? 0.0f : f10;
            float f19 = (i10 & 4) != 0 ? 0.0f : f11;
            float f20 = (i10 & 8) != 0 ? 0.0f : f12;
            float f21 = (i10 & 16) != 0 ? 1.0f : f13;
            float f22 = (i10 & 32) == 0 ? f14 : 1.0f;
            float f23 = (i10 & 64) != 0 ? 0.0f : f15;
            if ((i10 & 128) == 0) {
                f17 = f16;
            }
            return aVar.a(str2, f18, f19, f20, f21, f22, f23, f17, (i10 & 256) != 0 ? o.d() : list);
        }

        public static /* synthetic */ a d(a aVar, List list, int i10, String str, y yVar, float f10, y yVar2, float f11, float f12, int i11, int i12, float f13, float f14, float f15, float f16, int i13, Object obj) {
            int a10 = (i13 & 2) != 0 ? o.a() : i10;
            String str2 = (i13 & 4) != 0 ? "" : str;
            y yVar3 = (i13 & 8) != 0 ? null : yVar;
            float f17 = (i13 & 16) != 0 ? 1.0f : f10;
            y yVar4 = (i13 & 32) == 0 ? yVar2 : null;
            float f18 = (i13 & 64) != 0 ? 1.0f : f11;
            int i14 = i13 & 128;
            float f19 = BitmapDescriptorFactory.HUE_RED;
            float f20 = i14 != 0 ? 0.0f : f12;
            int b10 = (i13 & 256) != 0 ? o.b() : i11;
            int c10 = (i13 & 512) != 0 ? o.c() : i12;
            float f21 = (i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0 ? 4.0f : f13;
            float f22 = (i13 & 2048) != 0 ? 0.0f : f14;
            float f23 = (i13 & 4096) == 0 ? f15 : 1.0f;
            if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) == 0) {
                f19 = f16;
            }
            return aVar.c(list, a10, str2, yVar3, f17, yVar4, f18, f20, b10, c10, f21, f22, f23, f19);
        }

        private final n e(C0999a c0999a) {
            return new n(c0999a.c(), c0999a.f(), c0999a.d(), c0999a.e(), c0999a.g(), c0999a.h(), c0999a.i(), c0999a.j(), c0999a.b(), c0999a.a());
        }

        private final void h() {
            if (!this.f50293k) {
                return;
            }
            g2.a.b("ImageVector.Builder is single use, create a new instance to create a new ImageVector");
        }

        private final C0999a i() {
            Object d10;
            d10 = e.d(this.f50291i);
            return (C0999a) d10;
        }

        public final a a(String str, float f10, float f11, float f12, float f13, float f14, float f15, float f16, List list) {
            h();
            e.f(this.f50291i, new C0999a(str, f10, f11, f12, f13, f14, f15, f16, list, null, 512, null));
            return this;
        }

        public final a c(List list, int i10, String str, y yVar, float f10, y yVar2, float f11, float f12, int i11, int i12, float f13, float f14, float f15, float f16) {
            h();
            i().a().add(new s(str, list, i10, yVar, f10, yVar2, f11, f12, i11, i12, f13, f14, f15, f16, null));
            return this;
        }

        public final d f() {
            h();
            while (this.f50291i.size() > 1) {
                g();
            }
            d dVar = new d(this.f50283a, this.f50284b, this.f50285c, this.f50286d, this.f50287e, e(this.f50292j), this.f50288f, this.f50289g, this.f50290h, 0, 512, null);
            this.f50293k = true;
            return dVar;
        }

        public final a g() {
            Object e10;
            h();
            e10 = e.e(this.f50291i);
            i().a().add(e((C0999a) e10));
            return this;
        }

        private a(String str, float f10, float f11, float f12, float f13, long j10, int i10, boolean z10) {
            this.f50283a = str;
            this.f50284b = f10;
            this.f50285c = f11;
            this.f50286d = f12;
            this.f50287e = f13;
            this.f50288f = j10;
            this.f50289g = i10;
            this.f50290h = z10;
            ArrayList arrayList = new ArrayList();
            this.f50291i = arrayList;
            C0999a c0999a = new C0999a(null, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, null, null, 1023, null);
            this.f50292j = c0999a;
            e.f(arrayList, c0999a);
        }

        /* JADX INFO: Access modifiers changed from: private */
        /* renamed from: x1.d$a$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static final class C0999a {

            /* renamed from: a, reason: collision with root package name */
            private String f50294a;

            /* renamed from: b, reason: collision with root package name */
            private float f50295b;

            /* renamed from: c, reason: collision with root package name */
            private float f50296c;

            /* renamed from: d, reason: collision with root package name */
            private float f50297d;

            /* renamed from: e, reason: collision with root package name */
            private float f50298e;

            /* renamed from: f, reason: collision with root package name */
            private float f50299f;

            /* renamed from: g, reason: collision with root package name */
            private float f50300g;

            /* renamed from: h, reason: collision with root package name */
            private float f50301h;

            /* renamed from: i, reason: collision with root package name */
            private List f50302i;

            /* renamed from: j, reason: collision with root package name */
            private List f50303j;

            public C0999a(String str, float f10, float f11, float f12, float f13, float f14, float f15, float f16, List list, List list2) {
                this.f50294a = str;
                this.f50295b = f10;
                this.f50296c = f11;
                this.f50297d = f12;
                this.f50298e = f13;
                this.f50299f = f14;
                this.f50300g = f15;
                this.f50301h = f16;
                this.f50302i = list;
                this.f50303j = list2;
            }

            public final List a() {
                return this.f50303j;
            }

            public final List b() {
                return this.f50302i;
            }

            public final String c() {
                return this.f50294a;
            }

            public final float d() {
                return this.f50296c;
            }

            public final float e() {
                return this.f50297d;
            }

            public final float f() {
                return this.f50295b;
            }

            public final float g() {
                return this.f50298e;
            }

            public final float h() {
                return this.f50299f;
            }

            public final float i() {
                return this.f50300g;
            }

            public final float j() {
                return this.f50301h;
            }

            public /* synthetic */ C0999a(String str, float f10, float f11, float f12, float f13, float f14, float f15, float f16, List list, List list2, int i10, kotlin.jvm.internal.k kVar) {
                this((i10 & 1) != 0 ? "" : str, (i10 & 2) != 0 ? 0.0f : f10, (i10 & 4) != 0 ? 0.0f : f11, (i10 & 8) != 0 ? 0.0f : f12, (i10 & 16) != 0 ? 1.0f : f13, (i10 & 32) == 0 ? f14 : 1.0f, (i10 & 64) != 0 ? 0.0f : f15, (i10 & 128) == 0 ? f16 : BitmapDescriptorFactory.HUE_RED, (i10 & 256) != 0 ? o.d() : list, (i10 & 512) != 0 ? new ArrayList() : list2);
            }
        }

        public /* synthetic */ a(String str, float f10, float f11, float f12, float f13, long j10, int i10, boolean z10, int i11, kotlin.jvm.internal.k kVar) {
            this((i11 & 1) != 0 ? "" : str, f10, f11, f12, f13, (i11 & 32) != 0 ? g0.f35254b.f() : j10, (i11 & 64) != 0 ? u.f35333a.z() : i10, (i11 & 128) != 0 ? false : z10, null);
        }
    }

    /* loaded from: classes.dex */
    public static final class b {
        private b() {
        }

        public /* synthetic */ b(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final int a() {
            int i10;
            synchronized (this) {
                i10 = d.f50272l;
                d.f50272l = i10 + 1;
            }
            return i10;
        }
    }

    public /* synthetic */ d(String str, float f10, float f11, float f12, float f13, n nVar, long j10, int i10, boolean z10, int i11, kotlin.jvm.internal.k kVar) {
        this(str, f10, f11, f12, f13, nVar, j10, i10, z10, i11);
    }

    public final boolean c() {
        return this.f50281i;
    }

    public final float d() {
        return this.f50275c;
    }

    public final float e() {
        return this.f50274b;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof d)) {
            return false;
        }
        d dVar = (d) obj;
        if (!t.b(this.f50273a, dVar.f50273a) || !c3.h.v(this.f50274b, dVar.f50274b) || !c3.h.v(this.f50275c, dVar.f50275c)) {
            return false;
        }
        if (this.f50276d == dVar.f50276d) {
            return ((this.f50277e > dVar.f50277e ? 1 : (this.f50277e == dVar.f50277e ? 0 : -1)) == 0) && t.b(this.f50278f, dVar.f50278f) && g0.n(this.f50279g, dVar.f50279g) && u.E(this.f50280h, dVar.f50280h) && this.f50281i == dVar.f50281i;
        }
        return false;
    }

    public final int f() {
        return this.f50282j;
    }

    public final String g() {
        return this.f50273a;
    }

    public final n h() {
        return this.f50278f;
    }

    public int hashCode() {
        return (((((((((((((((this.f50273a.hashCode() * 31) + c3.h.w(this.f50274b)) * 31) + c3.h.w(this.f50275c)) * 31) + Float.hashCode(this.f50276d)) * 31) + Float.hashCode(this.f50277e)) * 31) + this.f50278f.hashCode()) * 31) + g0.t(this.f50279g)) * 31) + u.F(this.f50280h)) * 31) + Boolean.hashCode(this.f50281i);
    }

    public final int i() {
        return this.f50280h;
    }

    public final long j() {
        return this.f50279g;
    }

    public final float k() {
        return this.f50277e;
    }

    public final float l() {
        return this.f50276d;
    }

    private d(String str, float f10, float f11, float f12, float f13, n nVar, long j10, int i10, boolean z10, int i11) {
        this.f50273a = str;
        this.f50274b = f10;
        this.f50275c = f11;
        this.f50276d = f12;
        this.f50277e = f13;
        this.f50278f = nVar;
        this.f50279g = j10;
        this.f50280h = i10;
        this.f50281i = z10;
        this.f50282j = i11;
    }

    public /* synthetic */ d(String str, float f10, float f11, float f12, float f13, n nVar, long j10, int i10, boolean z10, int i11, int i12, kotlin.jvm.internal.k kVar) {
        this(str, f10, f11, f12, f13, nVar, j10, i10, z10, (i12 & 512) != 0 ? f50271k.a() : i11, null);
    }
}
