package K;

import G0.InterfaceC0279y;
import M2.B1;
import M2.C0556x0;
import T0.C0604o;
import V2.u3;
import androidx.compose.runtime.DisposableEffectScope;
import androidx.compose.runtime.MutableState;
import coil.compose.AsyncImagePainter;
import d3.v2;
import h3.o5;
import j$.time.format.DateTimeFormatter;
import java.util.List;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ MutableState f3964b;

    public /* synthetic */ C0473q(MutableState mutableState, int i6) {
        this.f3963a = i6;
        this.f3964b = mutableState;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        boolean z6 = true;
        int i6 = 0;
        C3137A c3137a = C3137A.f25453a;
        MutableState mutableState = this.f3964b;
        switch (this.f3963a) {
            case 0:
                U.h hVar = (U.h) obj;
                mutableState.setValue(hVar.f6785c ? hVar.f6784b : hVar.f6783a);
                break;
            case 1:
                List list = (List) obj;
                if (mutableState != null) {
                    mutableState.setValue(list);
                }
                break;
            case 2:
                h3.R0 it = (h3.R0) obj;
                kotlin.jvm.internal.o.h(it, "it");
                mutableState.setValue(it);
                break;
            case 3:
                M2.P0 it2 = (M2.P0) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                mutableState.setValue(it2);
                break;
            case 4:
                Boolean bool = (Boolean) obj;
                bool.booleanValue();
                mutableState.setValue(bool);
                break;
            case 5:
                T0.L it3 = (T0.L) obj;
                kotlin.jvm.internal.o.h(it3, "it");
                float f6 = (int) (it3.f6473c >> 32);
                C0604o c0604o = it3.f6472b;
                if (f6 >= c0604o.f6535d && !c0604o.f6534c && ((int) (r6 & 4294967295L)) >= c0604o.f6536e) {
                    z6 = false;
                }
                mutableState.setValue(Boolean.valueOf(z6));
                break;
            case 6:
                String url = (String) obj;
                kotlin.jvm.internal.o.h(url, "url");
                J.f fVar = B1.f4224a;
                mutableState.setValue(url);
                break;
            case 7:
                if (!((Boolean) obj).booleanValue()) {
                    u3.e(new C0556x0(6));
                    J.f fVar2 = B1.f4224a;
                    mutableState.setValue(Boolean.FALSE);
                } else {
                    J.f fVar3 = B1.f4224a;
                    mutableState.setValue(Boolean.TRUE);
                }
                break;
            case 8:
                String it4 = (String) obj;
                kotlin.jvm.internal.o.h(it4, "it");
                StringBuilder sb = new StringBuilder();
                int length = it4.length();
                while (i6 < length) {
                    char cCharAt = it4.charAt(i6);
                    if (Character.isDigit(cCharAt)) {
                        sb.append(cCharAt);
                    }
                    i6++;
                }
                mutableState.setValue(sb.toString());
                break;
            case 9:
                String it5 = (String) obj;
                kotlin.jvm.internal.o.h(it5, "it");
                StringBuilder sb2 = new StringBuilder();
                int length2 = it5.length();
                while (i6 < length2) {
                    char cCharAt2 = it5.charAt(i6);
                    if (Character.isDigit(cCharAt2)) {
                        sb2.append(cCharAt2);
                    }
                    i6++;
                }
                mutableState.setValue(sb2.toString());
                break;
            case 10:
                mutableState.setValue((InterfaceC0279y) obj);
                break;
            case 11:
                mutableState.setValue((InterfaceC0279y) obj);
                break;
            case 12:
                mutableState.setValue((InterfaceC0279y) obj);
                break;
            case 13:
                kotlin.jvm.internal.o.h((AsyncImagePainter.State.Error) obj, "it");
                mutableState.setValue(Boolean.TRUE);
                break;
            case 14:
                kotlin.jvm.internal.o.h((AsyncImagePainter.State.Error) obj, "it");
                mutableState.setValue(Boolean.TRUE);
                break;
            case 15:
                kotlin.jvm.internal.o.h((AsyncImagePainter.State.Success) obj, "it");
                S4.m mVar = b3.d.f13278a;
                mutableState.setValue(Boolean.TRUE);
                break;
            case 16:
                DisposableEffectScope DisposableEffect = (DisposableEffectScope) obj;
                kotlin.jvm.internal.o.h(DisposableEffect, "$this$DisposableEffect");
                break;
            case 17:
                d3.F root = (d3.F) obj;
                kotlin.jvm.internal.o.h(root, "root");
                Object tag = root.getTag();
                d3.P p6 = tag instanceof d3.P ? (d3.P) tag : null;
                if (p6 != null) {
                    p6.c();
                }
                mutableState.setValue(null);
                break;
            case 18:
                DisposableEffectScope DisposableEffect2 = (DisposableEffectScope) obj;
                kotlin.jvm.internal.o.h(DisposableEffect2, "$this$DisposableEffect");
                break;
            case 19:
                mutableState.setValue(Long.valueOf((((long) L4.a.v((int) ((Float) obj).floatValue(), 0, 20)) * 500) - 5000));
                break;
            case 20:
                kotlin.jvm.internal.o.h((AsyncImagePainter.State.Error) obj, "it");
                DateTimeFormatter dateTimeFormatter = v2.f16084a;
                mutableState.setValue(Boolean.TRUE);
                break;
            case 21:
                String it6 = (String) obj;
                kotlin.jvm.internal.o.h(it6, "it");
                mutableState.setValue(S4.w.y0(it6, "\n", ""));
                break;
            case 22:
                n0.B it7 = (n0.B) obj;
                kotlin.jvm.internal.o.h(it7, "it");
                mutableState.setValue(Boolean.valueOf(((n0.C) it7).b()));
                break;
            case 23:
                n0.B it8 = (n0.B) obj;
                kotlin.jvm.internal.o.h(it8, "it");
                mutableState.setValue(Boolean.valueOf(((n0.C) it8).b()));
                break;
            case 24:
                n0.B it9 = (n0.B) obj;
                kotlin.jvm.internal.o.h(it9, "it");
                mutableState.setValue(Boolean.valueOf(((n0.C) it9).b()));
                break;
            case 25:
                n0.B it10 = (n0.B) obj;
                kotlin.jvm.internal.o.h(it10, "it");
                mutableState.setValue(Boolean.valueOf(((n0.C) it10).b()));
                break;
            case 26:
                n0.B it11 = (n0.B) obj;
                kotlin.jvm.internal.o.h(it11, "it");
                boolean zB = ((n0.C) it11).b();
                J.f fVar4 = h3.T.f17335e;
                mutableState.setValue(Boolean.valueOf(zB));
                break;
            case 27:
                o5 it12 = (o5) obj;
                kotlin.jvm.internal.o.h(it12, "it");
                mutableState.setValue(it12);
                break;
            case 28:
                h3.Q0.f(mutableState, ((Float) obj).floatValue());
                break;
            default:
                o5 it13 = (o5) obj;
                kotlin.jvm.internal.o.h(it13, "it");
                mutableState.setValue(it13);
                break;
        }
        return c3137a;
    }
}
