package M2;

import E.C0143d;
import V2.C0659f1;
import V2.C0686k3;
import V2.O2;
import V2.n3;
import V2.t3;
import V2.u3;
import androidx.media3.exoplayer.upstream.CmcdData;
import com.google.android.gms.common.internal.ImagesContract;
import h3.C2099d2;
import java.net.URLEncoder;
import java.util.Map;
import r0.InterfaceC2866e;
import w4.C3137A;

/* JADX INFO: renamed from: M2.x0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0556x0 implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f5021a;

    public /* synthetic */ C0556x0(int i6) {
        this.f5021a = i6;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // J4.c
    public final Object invoke(Object it) {
        Object[] objArr = 0;
        C3137A c3137a = C3137A.f25453a;
        switch (this.f5021a) {
            case 0:
                InterfaceC2866e drawBehind = (InterfaceC2866e) it;
                kotlin.jvm.internal.o.h(drawBehind, "$this$drawBehind");
                InterfaceC2866e.E(drawBehind, O0.f4478q, 0L, 0L, 0.0f, null, 126);
                return c3137a;
            case 1:
                C2099d2 it2 = (C2099d2) it;
                kotlin.jvm.internal.o.h(it2, "it");
                return it2.f17848a;
            case 2:
                a3.T it3 = (a3.T) it;
                kotlin.jvm.internal.o.h(it3, "it");
                return it3.f10589a;
            case 3:
                C0659f1 setFeatures = (C0659f1) it;
                kotlin.jvm.internal.o.h(setFeatures, "$this$setFeatures");
                return C0659f1.a(setFeatures, false, false, true, false, 11);
            case 4:
                boolean zBooleanValue = ((Boolean) it).booleanValue();
                Y4.c0 c0Var = u3.f8111b;
                n3 current = (n3) c0Var.getValue();
                kotlin.jvm.internal.o.h(current, "current");
                O2 setOfficialAddons = current.f7973c;
                kotlin.jvm.internal.o.h(setOfficialAddons, "$this$setOfficialAddons");
                n3 n3VarA = n3.a(current, null, null, new O2(zBooleanValue), null, null, null, null, null, 0, 507);
                c0Var.k(null, n3VarA);
                V4.E.y(u3.f8110a, null, null, new t3(n3VarA, null), 3);
                return c3137a;
            case 5:
                u3.e(new C0544r1(((Boolean) it).booleanValue(), objArr == true ? 1 : 0));
                return c3137a;
            case 6:
                C0659f1 setFeatures2 = (C0659f1) it;
                kotlin.jvm.internal.o.h(setFeatures2, "$this$setFeatures");
                return C0659f1.a(setFeatures2, false, false, false, false, 11);
            case 7:
                boolean zBooleanValue2 = ((Boolean) it).booleanValue();
                Y4.c0 c0Var2 = u3.f8111b;
                n3 current2 = (n3) c0Var2.getValue();
                kotlin.jvm.internal.o.h(current2, "current");
                C0686k3 setSearchFilter = current2.f7978h;
                kotlin.jvm.internal.o.h(setSearchFilter, "$this$setSearchFilter");
                n3 n3VarA2 = n3.a(current2, null, null, null, null, null, null, null, new C0686k3(zBooleanValue2), 0, 383);
                c0Var2.k(null, n3VarA2);
                V4.E.y(u3.f8110a, null, null, new t3(n3VarA2, null), 3);
                return c3137a;
            case 8:
                u3.e(new C0544r1(((Boolean) it).booleanValue(), 2));
                return c3137a;
            case 9:
                E.x item = (E.x) it;
                kotlin.jvm.internal.o.h(item, "$this$item");
                return new C0143d(e4.C.a(E.x.f1100b));
            case 10:
                Map.Entry it4 = (Map.Entry) it;
                kotlin.jvm.internal.o.h(it4, "it");
                return it4.getKey() + "→" + it4.getValue() + " ep";
            case 11:
                Map it5 = (Map) it;
                kotlin.jvm.internal.o.h(it5, "it");
                Object obj = it5.get("n");
                String str = obj instanceof String ? (String) obj : null;
                return str == null ? "" : str;
            case 12:
                Map it6 = (Map) it;
                kotlin.jvm.internal.o.h(it6, "it");
                Object obj2 = it6.get(CmcdData.Factory.STREAMING_FORMAT_SS);
                Number number = obj2 instanceof Number ? (Number) obj2 : null;
                return Long.valueOf(number != null ? number.longValue() : 0L);
            case 13:
                Map it7 = (Map) it;
                kotlin.jvm.internal.o.h(it7, "it");
                Object obj3 = it7.get("path");
                String str2 = obj3 instanceof String ? (String) obj3 : null;
                return str2 == null ? "" : str2;
            case 14:
                Map it8 = (Map) it;
                kotlin.jvm.internal.o.h(it8, "it");
                Object obj4 = it8.get("size");
                Number number2 = obj4 instanceof Number ? (Number) obj4 : null;
                return Long.valueOf(number2 != null ? number2.longValue() : 0L);
            case 15:
                Map it9 = (Map) it;
                kotlin.jvm.internal.o.h(it9, "it");
                S4.m mVar = P2.c.f5650a;
                Object obj5 = it9.get("path");
                String str3 = obj5 instanceof String ? (String) obj5 : null;
                return Boolean.valueOf(P2.c.f(str3 != null ? str3 : ""));
            case 16:
                Map it10 = (Map) it;
                kotlin.jvm.internal.o.h(it10, "it");
                Object obj6 = it10.get("path");
                String str4 = obj6 instanceof String ? (String) obj6 : null;
                return str4 == null ? "" : str4;
            case 17:
                Map it11 = (Map) it;
                kotlin.jvm.internal.o.h(it11, "it");
                Object obj7 = it11.get("size");
                Number number3 = obj7 instanceof Number ? (Number) obj7 : null;
                return Long.valueOf(number3 != null ? number3.longValue() : 0L);
            case 18:
                Map it12 = (Map) it;
                kotlin.jvm.internal.o.h(it12, "it");
                Object obj8 = it12.get(ImagesContract.URL);
                String str5 = obj8 instanceof String ? (String) obj8 : null;
                return str5 == null ? "" : str5;
            case 19:
                return ((Q2.b) it).f5914b;
            case 20:
                Map.Entry entry = (Map.Entry) it;
                kotlin.jvm.internal.o.h(entry, "<destruct>");
                return Z0.o.B(URLEncoder.encode((String) entry.getKey(), "UTF-8"), "=", URLEncoder.encode((String) entry.getValue(), "UTF-8"));
            case 21:
                Map it13 = (Map) it;
                kotlin.jvm.internal.o.h(it13, "it");
                Object obj9 = it13.get("path");
                String str6 = obj9 instanceof String ? (String) obj9 : null;
                return str6 == null ? "" : str6;
            case 22:
                Map it14 = (Map) it;
                kotlin.jvm.internal.o.h(it14, "it");
                Object obj10 = it14.get("size");
                Number number4 = obj10 instanceof Number ? (Number) obj10 : null;
                return Long.valueOf(number4 != null ? number4.longValue() : 0L);
            case 23:
                Map it15 = (Map) it;
                kotlin.jvm.internal.o.h(it15, "it");
                Object obj11 = it15.get("path");
                String str7 = obj11 instanceof String ? (String) obj11 : null;
                return str7 == null ? "" : str7;
            case 24:
                Map it16 = (Map) it;
                kotlin.jvm.internal.o.h(it16, "it");
                Object obj12 = it16.get("size");
                Number number5 = obj12 instanceof Number ? (Number) obj12 : null;
                return Long.valueOf(number5 != null ? number5.longValue() : 0L);
            case 25:
                Map it17 = (Map) it;
                kotlin.jvm.internal.o.h(it17, "it");
                Object obj13 = it17.get("link");
                String str8 = obj13 instanceof String ? (String) obj13 : null;
                return str8 == null ? "" : str8;
            case 26:
                return A0.a.n("items[]=", URLEncoder.encode((String) it, "UTF-8"));
            case 27:
                kotlin.jvm.internal.o.h(it, "it");
                return Integer.valueOf(N4.d.f5273a.c(2147418112) + androidx.media3.common.C.DEFAULT_BUFFER_SEGMENT_SIZE);
            case 28:
                return Boolean.valueOf(it == null);
            default:
                Map it18 = (Map) it;
                kotlin.jvm.internal.o.h(it18, "it");
                Object obj14 = it18.get("path");
                String str9 = obj14 instanceof String ? (String) obj14 : null;
                return str9 == null ? "" : str9;
        }
    }
}
