package yk;

import java.util.Map;
import pl.b0;

/* loaded from: classes3.dex */
public final class l implements u {

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes3.dex */
    public static /* synthetic */ class a {

        /* renamed from: a, reason: collision with root package name */
        static final /* synthetic */ int[] f52822a;

        static {
            int[] iArr = new int[yk.a.values().length];
            f52822a = iArr;
            try {
                iArr[yk.a.EAN_8.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                f52822a[yk.a.UPC_E.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                f52822a[yk.a.EAN_13.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                f52822a[yk.a.UPC_A.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                f52822a[yk.a.QR_CODE.ordinal()] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                f52822a[yk.a.CODE_39.ordinal()] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                f52822a[yk.a.CODE_93.ordinal()] = 7;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                f52822a[yk.a.CODE_128.ordinal()] = 8;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                f52822a[yk.a.ITF.ordinal()] = 9;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                f52822a[yk.a.PDF_417.ordinal()] = 10;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                f52822a[yk.a.CODABAR.ordinal()] = 11;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                f52822a[yk.a.DATA_MATRIX.ordinal()] = 12;
            } catch (NoSuchFieldError unused12) {
            }
            try {
                f52822a[yk.a.AZTEC.ordinal()] = 13;
            } catch (NoSuchFieldError unused13) {
            }
        }
    }

    @Override // yk.u
    public fl.b a(String str, yk.a aVar, int i10, int i11, Map map) {
        u lVar;
        switch (a.f52822a[aVar.ordinal()]) {
            case 1:
                lVar = new pl.l();
                break;
            case 2:
                lVar = new b0();
                break;
            case 3:
                lVar = new pl.j();
                break;
            case 4:
                lVar = new pl.u();
                break;
            case 5:
                lVar = new yl.b();
                break;
            case 6:
                lVar = new pl.f();
                break;
            case 7:
                lVar = new pl.h();
                break;
            case 8:
                lVar = new pl.d();
                break;
            case 9:
                lVar = new pl.o();
                break;
            case 10:
                lVar = new tl.d();
                break;
            case 11:
                lVar = new pl.b();
                break;
            case 12:
                lVar = new il.b();
                break;
            case 13:
                lVar = new zk.c();
                break;
            default:
                throw new IllegalArgumentException("No encoder available for format ".concat(String.valueOf(aVar)));
        }
        return lVar.a(str, aVar, i10, i11, map);
    }

    public fl.b b(String str, yk.a aVar, int i10, int i11) {
        return a(str, aVar, i10, i11, null);
    }
}
