package o;

import com.google.android.gms.common.ConnectionResult;
import com.google.firebase.concurrent.ExecutorsRegistrar;
import java.nio.charset.Charset;
import java.util.Set;
import java.util.concurrent.ScheduledExecutorService;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Pi, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C0397Pi implements InterfaceC0070Cs, InterfaceC1880mg0, InterfaceC0320Mj, InterfaceC0564Vt, InterfaceC0246Jm, LT {
    public final /* synthetic */ int l;

    public /* synthetic */ C0397Pi(int i) {
        this.l = i;
    }

    @Override // o.InterfaceC1880mg0, o.J30
    public Object apply(Object obj) {
        switch (this.l) {
            case 12:
                C0067Cp.b.getClass();
                return C2844wo.a.c((AbstractC2654uo) obj).getBytes(Charset.forName("UTF-8"));
            default:
                return C1073e70.b.c((C0978d70) obj).getBytes(AbstractC2355rh.a);
        }
    }

    @Override // o.InterfaceC0070Cs
    public double c(double d) {
        switch (this.l) {
            case 0:
                double d2 = d < 0.0d ? -d : d;
                return Math.copySign(d2 >= 0.0031308049535603718d ? (Math.pow(d2, 0.4166666666666667d) - 0.05213270142180095d) / 0.9478672985781991d : d2 / 0.07739938080495357d, d);
            case 1:
                double d3 = d < 0.0d ? -d : d;
                return Math.copySign(d3 >= 0.04045d ? Math.pow((0.9478672985781991d * d3) + 0.05213270142180095d, 2.4d) : d3 * 0.07739938080495357d, d);
            case 2:
                float[] fArr = C0423Qi.a;
                return C0423Qi.b(C0423Qi.c, d);
            case 3:
                float[] fArr2 = C0423Qi.a;
                return C0423Qi.a(C0423Qi.c, d);
            case 4:
                float[] fArr3 = C0423Qi.a;
                return C0423Qi.d(C0423Qi.d, d);
            default:
                float[] fArr4 = C0423Qi.a;
                return C0423Qi.c(C0423Qi.d, d);
        }
    }

    @Override // o.InterfaceC0320Mj
    public Object i(U7 u7) {
        switch (this.l) {
            case 13:
                Set setC = u7.c(JZ.a(C0572Wb.class));
                OD od = OD.n;
                if (od == null) {
                    synchronized (OD.class) {
                        try {
                            od = OD.n;
                            if (od == null) {
                                od = new OD(0);
                                OD.n = od;
                            }
                        } finally {
                        }
                    }
                }
                return new C0224Iq(setC, od);
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                return (ScheduledExecutorService) ExecutorsRegistrar.a.get();
            case 19:
                return (ScheduledExecutorService) ExecutorsRegistrar.c.get();
            case 20:
                return (ScheduledExecutorService) ExecutorsRegistrar.b.get();
            default:
                AK ak = ExecutorsRegistrar.a;
                return Dh0.l;
        }
    }

    @Override // o.InterfaceC0246Jm
    public Object then(Pc0 pc0) {
        int i;
        switch (this.l) {
            case 22:
                i = 403;
                break;
            default:
                i = -1;
                break;
        }
        return Integer.valueOf(i);
    }

    public /* synthetic */ C0397Pi(C0204Hw c0204Hw) {
        this.l = 17;
    }

    @Override // o.InterfaceC0564Vt
    public float a(float f) {
        return f;
    }

    @Override // o.LT
    public void d(Exception exc) {
    }
}
