package xyz.stream.utils;

import a4.o0;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;
import android.net.Uri;
import android.os.SystemClock;
import android.util.JsonWriter;
import android.view.MenuItem;
import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.webkit.WebView;
import androidx.core.view.f3;
import androidx.core.widget.NestedScrollView;
import androidx.datastore.preferences.protobuf.ByteString;
import androidx.datastore.preferences.protobuf.z0;
import com.bytedance.sdk.openadsdk.api.reward.PAGRewardItem;
import com.bytedance.sdk.openadsdk.api.reward.PAGRewardedAdInteractionListener;
import com.google.android.gms.ads.nativead.NativeAdView;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.internal.ads.iq;
import com.google.android.material.dockedtoolbar.DockedToolbarLayout;
import com.google.android.material.internal.u0;
import com.google.android.material.internal.v0;
import com.google.android.material.navigationrail.NavigationRailView;
import com.google.crypto.tink.shaded.protobuf.a1;
import com.google.firebase.components.ComponentDiscoveryService;
import com.google.zxing.common.reedsolomon.ReedSolomonException;
import e.m0;
import io.flutter.view.TextureRegistry$SurfaceProducer;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import l.i2;
import org.chromium.support_lib_boundary.DropDataContentProviderBoundaryInterface;
import org.chromium.support_lib_boundary.ProfileStoreBoundaryInterface;
import org.chromium.support_lib_boundary.ProxyControllerBoundaryInterface;
import org.chromium.support_lib_boundary.ServiceWorkerControllerBoundaryInterface;
import org.chromium.support_lib_boundary.StaticsBoundaryInterface;
import org.chromium.support_lib_boundary.TracingControllerBoundaryInterface;
import org.chromium.support_lib_boundary.WebViewProviderBoundaryInterface;
import org.chromium.support_lib_boundary.WebViewProviderFactoryBoundaryInterface;
import org.chromium.support_lib_boundary.WebkitToCompatConverterBoundaryInterface;
import xyz.stream.view.listener.SeekListener;
import xyz.stream.view.listener.TimeBar;

/* JADX INFO: loaded from: classes3.dex */
public final class j0 implements k.a0, i2, u0.m, o.a, o0, u5.a, n5.m, q7.f, iq, w8.b, u0, io.flutter.plugin.platform.l, PAGRewardedAdInteractionListener, SeekListener {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static volatile j0 f36152c;

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Object f36154b;

    public /* synthetic */ j0(Object obj, int i10) {
        this.f36153a = i10;
        this.f36154b = obj;
    }

    public static j0 k() {
        if (f36152c == null) {
            synchronized (j0.class) {
                try {
                    if (f36152c == null) {
                        f36152c = new j0(0);
                    }
                } finally {
                }
            }
        }
        return f36152c;
    }

    public final void A(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.z)) {
                    B(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.y)) {
                    B(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.y yVar = (com.google.crypto.tink.shaded.protobuf.y) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iS0 = 0;
                    while (true) {
                        yVar.getClass();
                        if (i12 < 0) {
                            iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(yVar.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                            while (true) {
                                yVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).B0(yVar.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        yVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).A0(i10, yVar.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void B(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iC = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        iC += androidx.datastore.preferences.protobuf.n.C(((Integer) list.get(i12)).intValue());
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iC);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).O(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).N(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iS0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(((Integer) list.get(i13)).intValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).B0(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).A0(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void C(int i10, int i11) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).J(i10, i11);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).w0(i10, i11);
                break;
        }
    }

    public final void D(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.z)) {
                    E(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.y)) {
                    E(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.y yVar = (com.google.crypto.tink.shaded.protobuf.y) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        yVar.getClass();
                        if (i12 < 0) {
                            yVar.h(i12);
                            Logger logger = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                            i13 += 4;
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i13);
                            while (true) {
                                yVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).x0(yVar.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        yVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).w0(i10, yVar.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void E(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Integer) list.get(i13)).intValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12 += 4;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).K(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).J(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Integer) list.get(i15)).intValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14 += 4;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).x0(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).w0(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void F(int i10, long j10) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).L(i10, j10);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).y0(i10, j10);
                break;
        }
    }

    public final void G(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.f0)) {
                    H(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.f0)) {
                    H(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.f0 f0Var = (com.google.crypto.tink.shaded.protobuf.f0) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        f0Var.getClass();
                        if (i12 < 0) {
                            f0Var.h(i12);
                            Logger logger = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                            i13 += 8;
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i13);
                            while (true) {
                                f0Var.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).z0(f0Var.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        f0Var.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).y0(i10, f0Var.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void H(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Long) list.get(i13)).longValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12 += 8;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).M(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).L(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Long) list.get(i15)).longValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14 += 8;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).z0(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).y0(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void I(float f10, int i10) {
        switch (this.f36153a) {
            case 6:
                androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                nVar.getClass();
                nVar.J(i10, Float.floatToRawIntBits(f10));
                break;
            default:
                com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                nVar2.getClass();
                nVar2.w0(i10, Float.floatToRawIntBits(f10));
                break;
        }
    }

    public final void J(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.u)) {
                    K(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.t)) {
                    K(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.t tVar = (com.google.crypto.tink.shaded.protobuf.t) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        tVar.getClass();
                        if (i12 < 0) {
                            tVar.h(i12);
                            float f10 = tVar.f23977b[i12];
                            Logger logger = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                            i13 += 4;
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i13);
                            while (true) {
                                tVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                                tVar.h(i11);
                                float f11 = tVar.f23977b[i11];
                                nVar.getClass();
                                nVar.x0(Float.floatToRawIntBits(f11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        tVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        tVar.h(i11);
                        float f12 = tVar.f23977b[i11];
                        nVar2.getClass();
                        nVar2.w0(i10, Float.floatToRawIntBits(f12));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void K(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Float) list.get(i13)).floatValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12 += 4;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        float fFloatValue = ((Float) list.get(i11)).floatValue();
                        nVar.getClass();
                        nVar.K(Float.floatToRawIntBits(fFloatValue));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar2 = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        float fFloatValue2 = ((Float) list.get(i11)).floatValue();
                        nVar2.getClass();
                        nVar2.J(i10, Float.floatToRawIntBits(fFloatValue2));
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Float) list.get(i15)).floatValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14 += 4;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar3 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        float fFloatValue3 = ((Float) list.get(i11)).floatValue();
                        nVar3.getClass();
                        nVar3.x0(Float.floatToRawIntBits(fFloatValue3));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar4 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        float fFloatValue4 = ((Float) list.get(i11)).floatValue();
                        nVar4.getClass();
                        nVar4.w0(i10, Float.floatToRawIntBits(fFloatValue4));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void L(int i10, z0 z0Var, Object obj) {
        androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
        nVar.T(i10, 3);
        z0Var.i((androidx.datastore.preferences.protobuf.o0) obj, nVar.f2119b);
        nVar.T(i10, 4);
    }

    public final void M(int i10, a1 a1Var, Object obj) {
        com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
        nVar.D0(i10, 3);
        a1Var.i((com.google.crypto.tink.shaded.protobuf.o0) obj, nVar.f23946b);
        nVar.D0(i10, 4);
    }

    public final void N(int i10, int i11) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).N(i10, i11);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).A0(i10, i11);
                break;
        }
    }

    public final void O(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.z)) {
                    P(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.y)) {
                    P(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.y yVar = (com.google.crypto.tink.shaded.protobuf.y) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iS0 = 0;
                    while (true) {
                        yVar.getClass();
                        if (i12 < 0) {
                            iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(yVar.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                            while (true) {
                                yVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).B0(yVar.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        yVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).A0(i10, yVar.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void P(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iC = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        iC += androidx.datastore.preferences.protobuf.n.C(((Integer) list.get(i12)).intValue());
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iC);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).O(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).N(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iS0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(((Integer) list.get(i13)).intValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).B0(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).A0(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void Q(int i10, long j10) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).W(i10, j10);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, j10);
                break;
        }
    }

    public final void R(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.f0)) {
                    S(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.f0)) {
                    S(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.f0 f0Var = (com.google.crypto.tink.shaded.protobuf.f0) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iS0 = 0;
                    while (true) {
                        f0Var.getClass();
                        if (i12 < 0) {
                            iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(f0Var.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                            while (true) {
                                f0Var.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).H0(f0Var.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        f0Var.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, f0Var.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void S(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iC = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        iC += androidx.datastore.preferences.protobuf.n.C(((Long) list.get(i12)).longValue());
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iC);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).X(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).W(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iS0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(((Long) list.get(i13)).longValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).H0(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void T(int i10, Object obj) {
        switch (this.f36153a) {
            case 6:
                if (!(obj instanceof String)) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).H(i10, (ByteString) obj);
                } else {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).R(i10, (String) obj);
                }
                break;
            default:
                if (!(obj instanceof String)) {
                    com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                    nVar.D0(i10, 2);
                    nVar.v0((com.google.crypto.tink.shaded.protobuf.ByteString) obj);
                } else {
                    com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                    nVar2.D0(i10, 2);
                    nVar2.C0((String) obj);
                }
                break;
        }
    }

    public final void U(int i10, z0 z0Var, Object obj) {
        ((androidx.datastore.preferences.protobuf.n) this.f36154b).P(i10, (androidx.datastore.preferences.protobuf.o0) obj, z0Var);
    }

    public final void V(int i10, a1 a1Var, Object obj) {
        com.google.crypto.tink.shaded.protobuf.b bVar = (com.google.crypto.tink.shaded.protobuf.b) obj;
        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(bVar.c(a1Var));
        a1Var.i(bVar, this);
    }

    public final void W(int i10, int i11) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).J(i10, i11);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).w0(i10, i11);
                break;
        }
    }

    public final void X(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.z)) {
                    Y(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.y)) {
                    Y(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.y yVar = (com.google.crypto.tink.shaded.protobuf.y) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        yVar.getClass();
                        if (i12 < 0) {
                            yVar.h(i12);
                            Logger logger = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                            i13 += 4;
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i13);
                            while (true) {
                                yVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).x0(yVar.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        yVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).w0(i10, yVar.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void Y(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Integer) list.get(i13)).intValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12 += 4;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).K(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).J(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Integer) list.get(i15)).intValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14 += 4;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).x0(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).w0(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void Z(int i10, long j10) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).L(i10, j10);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).y0(i10, j10);
                break;
        }
    }

    @Override // a4.o0
    public final String[] a() {
        return ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getSupportedFeatures();
    }

    public final void a0(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.f0)) {
                    b0(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.f0)) {
                    b0(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.f0 f0Var = (com.google.crypto.tink.shaded.protobuf.f0) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        f0Var.getClass();
                        if (i12 < 0) {
                            f0Var.h(i12);
                            Logger logger = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                            i13 += 8;
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i13);
                            while (true) {
                                f0Var.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).z0(f0Var.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        f0Var.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).y0(i10, f0Var.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // o.a
    public final Object apply(Object obj) {
        androidx.fragment.app.e0 e0Var = (androidx.fragment.app.e0) this.f36154b;
        Object obj2 = e0Var.W;
        return obj2 instanceof androidx.activity.result.j ? ((androidx.activity.result.j) obj2).getActivityResultRegistry() : e0Var.requireActivity().getActivityResultRegistry();
    }

    @Override // u0.m
    public final void b(NestedScrollView nestedScrollView, int i10, int i11) {
    }

    public final void b0(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Long) list.get(i13)).longValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12 += 8;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).M(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).L(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Long) list.get(i15)).longValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14 += 8;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).z0(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).y0(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // q7.f
    public final /* synthetic */ void c(JsonWriter jsonWriter) throws IOException {
        Object obj = q7.g.f32230b;
        jsonWriter.name("params").beginObject();
        String str = (String) this.f36154b;
        if (str != null) {
            jsonWriter.name("error_description").value(str);
        }
        jsonWriter.endObject();
    }

    public final void c0(int i10, int i11) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).U(i10, (i11 >> 31) ^ (i11 << 1));
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).E0(i10, (i11 >> 31) ^ (i11 << 1));
                break;
        }
    }

    @Override // a4.o0
    public final WebViewProviderBoundaryInterface createWebView(WebView webView) {
        return (WebViewProviderBoundaryInterface) ee.b.castToSuppLibClass(WebViewProviderBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).createWebView(webView));
    }

    @Override // u5.a
    public final Object d() {
        try {
            return new d5.k(MessageDigest.getInstance("SHA-256"));
        } catch (NoSuchAlgorithmException e10) {
            throw new RuntimeException(e10);
        }
    }

    public final void d0(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.z)) {
                    e0(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.y)) {
                    e0(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.y yVar = (com.google.crypto.tink.shaded.protobuf.y) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iJ0 = 0;
                    while (true) {
                        yVar.getClass();
                        if (i12 < 0) {
                            iJ0 += com.google.crypto.tink.shaded.protobuf.n.j0(yVar.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iJ0);
                            while (true) {
                                yVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                                int iH = yVar.h(i11);
                                nVar.F0((iH >> 31) ^ (iH << 1));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        yVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        int iH2 = yVar.h(i11);
                        nVar2.E0(i10, (iH2 >> 31) ^ (iH2 << 1));
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // k.a0
    public final boolean e(k.p pVar) {
        Window.Callback callback = ((m0) this.f36154b).f25287l.getCallback();
        if (callback == null) {
            return true;
        }
        callback.onMenuOpened(108, pVar);
        return true;
    }

    public final void e0(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iA = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        int iIntValue = ((Integer) list.get(i12)).intValue();
                        iA += androidx.datastore.preferences.protobuf.n.A((iIntValue >> 31) ^ (iIntValue << 1));
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iA);
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        int iIntValue2 = ((Integer) list.get(i11)).intValue();
                        nVar.V((iIntValue2 >> 31) ^ (iIntValue2 << 1));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar2 = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        int iIntValue3 = ((Integer) list.get(i11)).intValue();
                        nVar2.U(i10, (iIntValue3 >> 31) ^ (iIntValue3 << 1));
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iJ0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iJ0 += com.google.crypto.tink.shaded.protobuf.n.j0(((Integer) list.get(i13)).intValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iJ0);
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar3 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        int iIntValue4 = ((Integer) list.get(i11)).intValue();
                        nVar3.F0((iIntValue4 >> 31) ^ (iIntValue4 << 1));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar4 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        int iIntValue5 = ((Integer) list.get(i11)).intValue();
                        nVar4.E0(i10, (iIntValue5 >> 31) ^ (iIntValue5 << 1));
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // l.i2
    public final void f(k.p pVar, k.r rVar) {
        ((k.j) this.f36154b).f28857g.removeCallbacksAndMessages(null);
        int size = ((k.j) this.f36154b).f28859i.size();
        int i10 = 0;
        while (true) {
            if (i10 >= size) {
                i10 = -1;
                break;
            } else if (pVar == ((k.i) ((k.j) this.f36154b).f28859i.get(i10)).f28845b) {
                break;
            } else {
                i10++;
            }
        }
        if (i10 == -1) {
            return;
        }
        int i11 = i10 + 1;
        ((k.j) this.f36154b).f28857g.postAtTime(new k.h(this, i11 < ((k.j) this.f36154b).f28859i.size() ? (k.i) ((k.j) this.f36154b).f28859i.get(i11) : null, rVar, pVar, 0), pVar, SystemClock.uptimeMillis() + 200);
    }

    public final void f0(int i10, long j10) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).W(i10, (j10 >> 63) ^ (j10 << 1));
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, (j10 >> 63) ^ (j10 << 1));
                break;
        }
    }

    @Override // l.i2
    public final void g(k.p pVar, MenuItem menuItem) {
        ((k.j) this.f36154b).f28857g.removeCallbacksAndMessages(pVar);
    }

    public final void g0(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.f0)) {
                    h0(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.f0)) {
                    h0(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.f0 f0Var = (com.google.crypto.tink.shaded.protobuf.f0) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iL0 = 0;
                    while (true) {
                        f0Var.getClass();
                        if (i12 < 0) {
                            iL0 += com.google.crypto.tink.shaded.protobuf.n.l0(f0Var.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iL0);
                            while (true) {
                                f0Var.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                                long jH = f0Var.h(i11);
                                nVar.H0((jH >> 63) ^ (jH << 1));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        f0Var.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        long jH2 = f0Var.h(i11);
                        nVar2.G0(i10, (jH2 >> 63) ^ (jH2 << 1));
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // a4.o0
    public final DropDataContentProviderBoundaryInterface getDropDataProvider() {
        return (DropDataContentProviderBoundaryInterface) ee.b.castToSuppLibClass(DropDataContentProviderBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getDropDataProvider());
    }

    @Override // io.flutter.plugin.platform.l
    public final int getHeight() {
        return ((TextureRegistry$SurfaceProducer) this.f36154b).getHeight();
    }

    @Override // io.flutter.plugin.platform.l
    public final long getId() {
        return ((TextureRegistry$SurfaceProducer) this.f36154b).id();
    }

    @Override // a4.o0
    public final ProfileStoreBoundaryInterface getProfileStore() {
        return (ProfileStoreBoundaryInterface) ee.b.castToSuppLibClass(ProfileStoreBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getProfileStore());
    }

    @Override // a4.o0
    public final ProxyControllerBoundaryInterface getProxyController() {
        return (ProxyControllerBoundaryInterface) ee.b.castToSuppLibClass(ProxyControllerBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getProxyController());
    }

    @Override // a4.o0
    public final ServiceWorkerControllerBoundaryInterface getServiceWorkerController() {
        return (ServiceWorkerControllerBoundaryInterface) ee.b.castToSuppLibClass(ServiceWorkerControllerBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getServiceWorkerController());
    }

    @Override // a4.o0
    public final StaticsBoundaryInterface getStatics() {
        return (StaticsBoundaryInterface) ee.b.castToSuppLibClass(StaticsBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getStatics());
    }

    @Override // io.flutter.plugin.platform.l
    public final Surface getSurface() {
        return ((TextureRegistry$SurfaceProducer) this.f36154b).getSurface();
    }

    @Override // a4.o0
    public final TracingControllerBoundaryInterface getTracingController() {
        return (TracingControllerBoundaryInterface) ee.b.castToSuppLibClass(TracingControllerBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getTracingController());
    }

    @Override // a4.o0
    public final WebkitToCompatConverterBoundaryInterface getWebkitToCompatConverter() {
        return (WebkitToCompatConverterBoundaryInterface) ee.b.castToSuppLibClass(WebkitToCompatConverterBoundaryInterface.class, ((WebViewProviderFactoryBoundaryInterface) this.f36154b).getWebkitToCompatConverter());
    }

    @Override // io.flutter.plugin.platform.l
    public final int getWidth() {
        return ((TextureRegistry$SurfaceProducer) this.f36154b).getWidth();
    }

    /* JADX WARN: Removed duplicated region for block: B:43:0x00dc  */
    /* JADX WARN: Removed duplicated region for block: B:51:0x00f9  */
    @Override // com.google.android.material.internal.u0
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final f3 h(View view, f3 f3Var, v0 v0Var) {
        switch (this.f36153a) {
            case 19:
                DockedToolbarLayout dockedToolbarLayout = (DockedToolbarLayout) this.f36154b;
                Boolean bool = dockedToolbarLayout.f22526a;
                if (bool == null || dockedToolbarLayout.f22527b == null || bool.booleanValue() || ((DockedToolbarLayout) this.f36154b).f22527b.booleanValue()) {
                    j0.d dVarF = f3Var.f1747a.f(143);
                    int i10 = dVarF.f28505d;
                    ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
                    boolean zA = DockedToolbarLayout.a((DockedToolbarLayout) this.f36154b, layoutParams, 48);
                    int i11 = dVarF.f28503b;
                    if (zA) {
                        DockedToolbarLayout dockedToolbarLayout2 = (DockedToolbarLayout) this.f36154b;
                        int i12 = (dockedToolbarLayout2.f22526a == null && dockedToolbarLayout2.getFitsSystemWindows()) ? i11 : 0;
                        if (DockedToolbarLayout.a((DockedToolbarLayout) this.f36154b, layoutParams, 80)) {
                            DockedToolbarLayout dockedToolbarLayout3 = (DockedToolbarLayout) this.f36154b;
                            int i13 = (dockedToolbarLayout3.f22527b == null && dockedToolbarLayout3.getFitsSystemWindows()) ? i10 : 0;
                            Boolean bool2 = ((DockedToolbarLayout) this.f36154b).f22527b;
                            if (bool2 != null) {
                                if (!bool2.booleanValue()) {
                                    i10 = 0;
                                }
                                i13 = i10;
                            }
                            Boolean bool3 = ((DockedToolbarLayout) this.f36154b).f22526a;
                            if (bool3 != null) {
                                i12 = bool3.booleanValue() ? i11 : 0;
                            }
                            int i14 = v0Var.f22811b + i12;
                            v0Var.f22811b = i14;
                            int i15 = v0Var.f22813d + i13;
                            v0Var.f22813d = i15;
                            view.setPaddingRelative(v0Var.f22810a, i14, v0Var.f22812c, i15);
                            break;
                        }
                    }
                }
                break;
            default:
                j0.d dVarF2 = f3Var.f1747a.f(7);
                j0.d dVarF3 = f3Var.f1747a.f(128);
                NavigationRailView navigationRailView = (NavigationRailView) this.f36154b;
                Boolean bool4 = navigationRailView.paddingTopSystemWindowInsets;
                if (bool4 != null ? bool4.booleanValue() : navigationRailView.getFitsSystemWindows()) {
                    v0Var.f22811b += dVarF2.f28503b;
                }
                NavigationRailView navigationRailView2 = (NavigationRailView) this.f36154b;
                Boolean bool5 = navigationRailView2.paddingBottomSystemWindowInsets;
                if (bool5 != null ? bool5.booleanValue() : navigationRailView2.getFitsSystemWindows()) {
                    v0Var.f22813d += dVarF2.f28505d;
                }
                NavigationRailView navigationRailView3 = (NavigationRailView) this.f36154b;
                Boolean bool6 = navigationRailView3.paddingStartSystemWindowInsets;
                if (bool6 != null ? bool6.booleanValue() : navigationRailView3.getFitsSystemWindows()) {
                    if (view.getLayoutDirection() == 1) {
                        v0Var.f22810a = Math.max(dVarF2.f28504c, dVarF3.f28504c) + v0Var.f22810a;
                    } else {
                        v0Var.f22810a = Math.max(dVarF2.f28502a, dVarF3.f28502a) + v0Var.f22810a;
                    }
                }
                view.setPaddingRelative(v0Var.f22810a, v0Var.f22811b, v0Var.f22812c, v0Var.f22813d);
                break;
        }
        return f3Var;
    }

    public final void h0(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iC = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        long jLongValue = ((Long) list.get(i12)).longValue();
                        iC += androidx.datastore.preferences.protobuf.n.C((jLongValue >> 63) ^ (jLongValue << 1));
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iC);
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        long jLongValue2 = ((Long) list.get(i11)).longValue();
                        nVar.X((jLongValue2 >> 63) ^ (jLongValue2 << 1));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar2 = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        long jLongValue3 = ((Long) list.get(i11)).longValue();
                        nVar2.W(i10, (jLongValue3 >> 63) ^ (jLongValue3 << 1));
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iL0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iL0 += com.google.crypto.tink.shaded.protobuf.n.l0(((Long) list.get(i13)).longValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iL0);
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar3 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        long jLongValue4 = ((Long) list.get(i11)).longValue();
                        nVar3.H0((jLongValue4 >> 63) ^ (jLongValue4 << 1));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar4 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        long jLongValue5 = ((Long) list.get(i11)).longValue();
                        nVar4.G0(i10, (jLongValue5 >> 63) ^ (jLongValue5 << 1));
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // io.flutter.plugin.platform.l
    public final void i(int i10, int i11) {
        ((TextureRegistry$SurfaceProducer) this.f36154b).setSize(i10, i11);
    }

    public final void i0(int i10, List list) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.c0)) {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).R(i10, (String) list.get(i11));
                        i11++;
                    }
                } else {
                    androidx.datastore.preferences.protobuf.c0 c0Var = (androidx.datastore.preferences.protobuf.c0) list;
                    while (i11 < list.size()) {
                        T(i10, c0Var.a());
                        i11++;
                    }
                }
                break;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.c0)) {
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        String str = (String) list.get(i11);
                        nVar.D0(i10, 2);
                        nVar.C0(str);
                        i11++;
                    }
                } else {
                    com.google.crypto.tink.shaded.protobuf.c0 c0Var2 = (com.google.crypto.tink.shaded.protobuf.c0) list;
                    while (i11 < list.size()) {
                        T(i10, c0Var2.a());
                        i11++;
                    }
                }
                break;
        }
    }

    public final int j(int i10, int[] iArr) throws ReedSolomonException {
        int[] iArr2;
        ub.b bVar = new ub.b((ub.a) this.f36154b, iArr);
        int[] iArr3 = new int[i10];
        boolean z10 = true;
        for (int i11 = 0; i11 < i10; i11++) {
            ub.a aVar = (ub.a) this.f36154b;
            int iB = bVar.b(aVar.f33430a[aVar.f33436g + i11]);
            iArr3[(i10 - 1) - i11] = iB;
            if (iB != 0) {
                z10 = false;
            }
        }
        if (z10) {
            return 0;
        }
        ub.b bVar2 = new ub.b((ub.a) this.f36154b, iArr3);
        ub.b bVarA = ((ub.a) this.f36154b).a(i10, 1);
        if (bVarA.d() >= bVar2.d()) {
            bVarA = bVar2;
            bVar2 = bVarA;
        }
        ub.a aVar2 = (ub.a) this.f36154b;
        ub.b bVar3 = aVar2.f33432c;
        ub.b bVarA2 = aVar2.f33433d;
        do {
            ub.b bVar4 = bVarA;
            bVarA = bVar2;
            bVar2 = bVar4;
            ub.b bVar5 = bVar3;
            bVar3 = bVarA2;
            if (bVar2.d() * 2 < i10) {
                int iC = bVar3.c(0);
                if (iC == 0) {
                    throw new ReedSolomonException("sigmaTilde(0) was zero");
                }
                int iB2 = ((ub.a) this.f36154b).b(iC);
                ub.b[] bVarArr = {bVar3.f(iB2), bVar2.f(iB2)};
                ub.b bVar6 = bVarArr[0];
                ub.b bVar7 = bVarArr[1];
                int iD = bVar6.d();
                if (iD == 1) {
                    iArr2 = new int[]{bVar6.c(1)};
                } else {
                    int[] iArr4 = new int[iD];
                    int i12 = 0;
                    for (int i13 = 1; i13 < ((ub.a) this.f36154b).f33434e && i12 < iD; i13++) {
                        if (bVar6.b(i13) == 0) {
                            iArr4[i12] = ((ub.a) this.f36154b).b(i13);
                            i12++;
                        }
                    }
                    if (i12 != iD) {
                        throw new ReedSolomonException("Error locator degree does not match number of roots");
                    }
                    iArr2 = iArr4;
                }
                int length = iArr2.length;
                int[] iArr5 = new int[length];
                for (int i14 = 0; i14 < length; i14++) {
                    int iB3 = ((ub.a) this.f36154b).b(iArr2[i14]);
                    int iC2 = 1;
                    for (int i15 = 0; i15 < length; i15++) {
                        if (i14 != i15) {
                            int iC3 = ((ub.a) this.f36154b).c(iArr2[i15], iB3);
                            iC2 = ((ub.a) this.f36154b).c(iC2, (iC3 & 1) == 0 ? iC3 | 1 : iC3 & (-2));
                        }
                    }
                    int iC4 = ((ub.a) this.f36154b).c(bVar7.b(iB3), ((ub.a) this.f36154b).b(iC2));
                    iArr5[i14] = iC4;
                    ub.a aVar3 = (ub.a) this.f36154b;
                    if (aVar3.f33436g != 0) {
                        iArr5[i14] = aVar3.c(iC4, iB3);
                    }
                }
                for (int i16 = 0; i16 < iArr2.length; i16++) {
                    int length2 = iArr.length - 1;
                    ub.a aVar4 = (ub.a) this.f36154b;
                    int i17 = iArr2[i16];
                    if (i17 == 0) {
                        aVar4.getClass();
                        throw new IllegalArgumentException();
                    }
                    int i18 = length2 - aVar4.f33431b[i17];
                    if (i18 < 0) {
                        throw new ReedSolomonException("Bad error location");
                    }
                    iArr[i18] = iArr[i18] ^ iArr5[i16];
                }
                return iArr2.length;
            }
            if (bVar2.e()) {
                throw new ReedSolomonException("r_{i-1} was zero");
            }
            ub.b bVarA3 = ((ub.a) this.f36154b).f33432c;
            int iB4 = ((ub.a) this.f36154b).b(bVar2.c(bVar2.d()));
            while (bVarA.d() >= bVar2.d() && !bVarA.e()) {
                int iD2 = bVarA.d() - bVar2.d();
                int iC5 = ((ub.a) this.f36154b).c(bVarA.c(bVarA.d()), iB4);
                bVarA3 = bVarA3.a(((ub.a) this.f36154b).a(iD2, iC5));
                bVarA = bVarA.a(bVar2.h(iD2, iC5));
            }
            bVarA2 = bVarA3.g(bVar3).a(bVar5);
        } while (bVarA.d() < bVar2.d());
        throw new IllegalStateException("Division algorithm failed to reduce polynomial? r: " + bVarA + ", rLast: " + bVar2);
    }

    public final void j0(int i10, int i11) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).U(i10, i11);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).E0(i10, i11);
                break;
        }
    }

    public final void k0(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.z)) {
                    l0(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.y)) {
                    l0(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.y yVar = (com.google.crypto.tink.shaded.protobuf.y) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iQ0 = 0;
                    while (true) {
                        yVar.getClass();
                        if (i12 < 0) {
                            iQ0 += com.google.crypto.tink.shaded.protobuf.n.q0(yVar.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iQ0);
                            while (true) {
                                yVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(yVar.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        yVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).E0(i10, yVar.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final short l(int i10) {
        if (((ByteBuffer) this.f36154b).remaining() - i10 >= 2) {
            return ((ByteBuffer) this.f36154b).getShort(i10);
        }
        return (short) -1;
    }

    public final void l0(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iA = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        iA += androidx.datastore.preferences.protobuf.n.A(((Integer) list.get(i12)).intValue());
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iA);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).U(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iQ0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iQ0 += com.google.crypto.tink.shaded.protobuf.n.q0(((Integer) list.get(i13)).intValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iQ0);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).E0(i10, ((Integer) list.get(i11)).intValue());
                        i11++;
                    }
                }
                break;
        }
    }

    public final void m(mc.w wVar) {
        synchronized (((mc.o) this.f36154b).f30633h) {
            try {
                Object obj = this.f36154b;
                if (((mc.o) obj).f30632g) {
                    ((mc.o) obj).f30628c.obtainMessage(rb.i.zxing_decode, wVar).sendToTarget();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final void m0(int i10, long j10) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).W(i10, j10);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, j10);
                break;
        }
    }

    public final void n() {
        synchronized (((mc.o) this.f36154b).f30633h) {
            try {
                Object obj = this.f36154b;
                if (((mc.o) obj).f30632g) {
                    ((mc.o) obj).f30628c.obtainMessage(rb.i.zxing_preview_failed).sendToTarget();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    public final void n0(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.f0)) {
                    o0(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.f0)) {
                    o0(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.f0 f0Var = (com.google.crypto.tink.shaded.protobuf.f0) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int iS0 = 0;
                    while (true) {
                        f0Var.getClass();
                        if (i12 < 0) {
                            iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(f0Var.h(i12));
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                            while (true) {
                                f0Var.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).H0(f0Var.h(i11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        f0Var.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, f0Var.h(i11));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void o(Activity activity, i0 i0Var) {
        if (((BroadcastReceiver) ((Map) this.f36154b).get(activity)) == null) {
            h0 h0Var = new h0(i0Var);
            ((Map) this.f36154b).put(activity, h0Var);
            IntentFilter intentFilter = new IntentFilter();
            intentFilter.addAction("android.intent.action.SCREEN_OFF");
            intentFilter.addAction("android.intent.action.SCREEN_ON");
            intentFilter.addAction("android.intent.action.USER_PRESENT");
            intentFilter.addAction("android.intent.action.CLOSE_SYSTEM_DIALOGS");
            g0.d.registerReceiver(activity, h0Var, intentFilter, 4);
        }
    }

    public final void o0(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int iC = 0;
                    for (int i12 = 0; i12 < list.size(); i12++) {
                        iC += androidx.datastore.preferences.protobuf.n.C(((Long) list.get(i12)).longValue());
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(iC);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).X(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).W(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int iS0 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        iS0 += com.google.crypto.tink.shaded.protobuf.n.s0(((Long) list.get(i13)).longValue());
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(iS0);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).H0(((Long) list.get(i11)).longValue());
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).G0(i10, ((Long) list.get(i11)).longValue());
                        i11++;
                    }
                }
                break;
        }
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGAdListener
    public final void onAdClicked() {
        ((xyz.netfly.ads.n) this.f36154b).f34871c.getClass();
        xyz.netfly.ads.r.i("rewarded_ad", "Clicked");
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGAdListener
    public final void onAdDismissed() {
        ((xyz.netfly.ads.n) this.f36154b).f34871c.getClass();
        xyz.netfly.ads.r.i("rewarded_ad", "Dismissed");
        xyz.netfly.ads.n nVar = (xyz.netfly.ads.n) this.f36154b;
        nVar.f34871c.c(nVar.f34869a);
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGAdListener
    public final void onAdShowed() {
        ((xyz.netfly.ads.n) this.f36154b).f34871c.getClass();
        xyz.netfly.ads.r.i("rewarded_ad", "Showed");
    }

    @Override // k.a0
    public final void onCloseMenu(k.p pVar, boolean z10) {
        ((m0) this.f36154b).p(pVar);
    }

    @Override // xyz.stream.view.listener.SeekListener
    public final void onSeekMove(TimeBar timeBar, long j10) {
    }

    @Override // xyz.stream.view.listener.SeekListener
    public final void onSeekStart(TimeBar timeBar, long j10) {
        me.c cVar = (me.c) this.f36154b;
        cVar.f30659b.removeCallbacks(cVar.f30668k);
    }

    @Override // xyz.stream.view.listener.SeekListener
    public final void onSeekStop(TimeBar timeBar, long j10, boolean z10) {
        ((me.c) this.f36154b).c();
    }

    @Override // com.bytedance.sdk.openadsdk.api.reward.PAGRewardedAdInteractionListener
    public final void onUserEarnedReward(PAGRewardItem pAGRewardItem) {
        ((xyz.netfly.ads.n) this.f36154b).f34871c.getClass();
        xyz.netfly.ads.r.i("rewarded_ad", "EarnedReward");
    }

    @Override // com.bytedance.sdk.openadsdk.api.reward.PAGRewardedAdInteractionListener
    public final void onUserEarnedRewardFail(int i10, String str) {
        ((xyz.netfly.ads.n) this.f36154b).f34871c.getClass();
        xyz.netfly.ads.r.i("rewarded_ad", "EarnedRewardFail");
    }

    public final void p(Activity activity) {
        BroadcastReceiver broadcastReceiver = (BroadcastReceiver) ((Map) this.f36154b).get(activity);
        if (broadcastReceiver != null) {
            activity.unregisterReceiver(broadcastReceiver);
            ((Map) this.f36154b).remove(activity);
        }
    }

    public final void q(int i10, boolean z10) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).F(i10, z10);
                break;
            default:
                com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                nVar.D0(i10, 0);
                nVar.t0(z10 ? (byte) 1 : (byte) 0);
                break;
        }
    }

    public final void r(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.e)) {
                    s(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.e)) {
                    s(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.e eVar = (com.google.crypto.tink.shaded.protobuf.e) list;
                if (!z10) {
                    eVar.getClass();
                    return;
                }
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                eVar.getClass();
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(0);
                eVar.getClass();
                return;
        }
    }

    @Override // io.flutter.plugin.platform.l
    public final void release() {
        ((TextureRegistry$SurfaceProducer) this.f36154b).release();
        this.f36154b = null;
    }

    public final void s(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Boolean) list.get(i13)).booleanValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12++;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).E(((Boolean) list.get(i11)).booleanValue() ? (byte) 1 : (byte) 0);
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        ((androidx.datastore.preferences.protobuf.n) this.f36154b).F(i10, ((Boolean) list.get(i11)).booleanValue());
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Boolean) list.get(i15)).booleanValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14++;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).t0(((Boolean) list.get(i11)).booleanValue() ? (byte) 1 : (byte) 0);
                        i11++;
                    }
                } else {
                    for (int i16 = 0; i16 < list.size(); i16++) {
                        com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        boolean zBooleanValue = ((Boolean) list.get(i16)).booleanValue();
                        nVar.D0(i10, 0);
                        nVar.t0(zBooleanValue ? (byte) 1 : (byte) 0);
                    }
                }
                break;
        }
    }

    @Override // io.flutter.plugin.platform.l
    public final void scheduleFrame() {
        ((TextureRegistry$SurfaceProducer) this.f36154b).scheduleFrame();
    }

    public final void t(int i10, ByteString byteString) {
        ((androidx.datastore.preferences.protobuf.n) this.f36154b).H(i10, byteString);
    }

    @Override // w8.b
    public final Object then(w8.h hVar) {
        n8.h hVar2 = (n8.h) this.f36154b;
        if (hVar.j() || ((w8.t) hVar).f34253d) {
            return hVar;
        }
        Exception exception = hVar.getException();
        if (!(exception instanceof ApiException)) {
            return hVar;
        }
        int iB = ((ApiException) exception).b();
        return (iB == 43001 || iB == 43002 || iB == 43003 || iB == 17) ? hVar2.f31107b.a() : iB == 43000 ? w8.k.d(new Exception("Failed to get app set ID due to an internal error. Please try again later.")) : iB != 15 ? hVar : w8.k.d(new Exception("The operation to get app set ID timed out. Please try again later."));
    }

    public final String toString() {
        switch (this.f36153a) {
            case 13:
                return super.toString() + "{fragment=" + ((n5.t) this.f36154b) + "}";
            default:
                return super.toString();
        }
    }

    public final void u(int i10, com.google.crypto.tink.shaded.protobuf.ByteString byteString) {
        com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
        nVar.D0(i10, 2);
        nVar.v0(byteString);
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    public final void v(int i10, List list) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                while (i11 < list.size()) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).H(i10, (ByteString) list.get(i11));
                    i11++;
                }
                break;
            default:
                while (i11 < list.size()) {
                    com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                    com.google.crypto.tink.shaded.protobuf.ByteString byteString = (com.google.crypto.tink.shaded.protobuf.ByteString) list.get(i11);
                    nVar.D0(i10, 2);
                    nVar.v0(byteString);
                    i11++;
                }
                break;
        }
    }

    public final void w(double d10, int i10) {
        switch (this.f36153a) {
            case 6:
                androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                nVar.getClass();
                nVar.L(i10, Double.doubleToRawLongBits(d10));
                break;
            default:
                com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                nVar2.getClass();
                nVar2.y0(i10, Double.doubleToRawLongBits(d10));
                break;
        }
    }

    public final void x(int i10, List list, boolean z10) {
        switch (this.f36153a) {
            case 6:
                if (!(list instanceof androidx.datastore.preferences.protobuf.o)) {
                    y(i10, list, z10);
                    return;
                }
                if (!z10) {
                    throw null;
                }
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                throw null;
            default:
                if (!(list instanceof com.google.crypto.tink.shaded.protobuf.o)) {
                    y(i10, list, z10);
                    return;
                }
                com.google.crypto.tink.shaded.protobuf.o oVar = (com.google.crypto.tink.shaded.protobuf.o) list;
                int i11 = 0;
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i12 = 0;
                    int i13 = 0;
                    while (true) {
                        oVar.getClass();
                        if (i12 < 0) {
                            oVar.h(i12);
                            double d10 = oVar.f23951b[i12];
                            Logger logger = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                            i13 += 8;
                            i12++;
                        } else {
                            ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i13);
                            while (true) {
                                oVar.getClass();
                                if (i11 >= 0) {
                                    return;
                                }
                                com.google.crypto.tink.shaded.protobuf.n nVar = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                                oVar.h(i11);
                                double d11 = oVar.f23951b[i11];
                                nVar.getClass();
                                nVar.z0(Double.doubleToRawLongBits(d11));
                                i11++;
                            }
                        }
                    }
                } else {
                    while (true) {
                        oVar.getClass();
                        if (i11 >= 0) {
                            return;
                        }
                        com.google.crypto.tink.shaded.protobuf.n nVar2 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        oVar.h(i11);
                        double d12 = oVar.f23951b[i11];
                        nVar2.getClass();
                        nVar2.y0(i10, Double.doubleToRawLongBits(d12));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void y(int i10, List list, boolean z10) {
        int i11 = 0;
        switch (this.f36153a) {
            case 6:
                if (z10) {
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).T(i10, 2);
                    int i12 = 0;
                    for (int i13 = 0; i13 < list.size(); i13++) {
                        ((Double) list.get(i13)).doubleValue();
                        Logger logger = androidx.datastore.preferences.protobuf.n.f2117c;
                        i12 += 8;
                    }
                    ((androidx.datastore.preferences.protobuf.n) this.f36154b).V(i12);
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        double dDoubleValue = ((Double) list.get(i11)).doubleValue();
                        nVar.getClass();
                        nVar.M(Double.doubleToRawLongBits(dDoubleValue));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        androidx.datastore.preferences.protobuf.n nVar2 = (androidx.datastore.preferences.protobuf.n) this.f36154b;
                        double dDoubleValue2 = ((Double) list.get(i11)).doubleValue();
                        nVar2.getClass();
                        nVar2.L(i10, Double.doubleToRawLongBits(dDoubleValue2));
                        i11++;
                    }
                }
                break;
            default:
                if (z10) {
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).D0(i10, 2);
                    int i14 = 0;
                    for (int i15 = 0; i15 < list.size(); i15++) {
                        ((Double) list.get(i15)).doubleValue();
                        Logger logger2 = com.google.crypto.tink.shaded.protobuf.n.f23944f;
                        i14 += 8;
                    }
                    ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).F0(i14);
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar3 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        double dDoubleValue3 = ((Double) list.get(i11)).doubleValue();
                        nVar3.getClass();
                        nVar3.z0(Double.doubleToRawLongBits(dDoubleValue3));
                        i11++;
                    }
                } else {
                    while (i11 < list.size()) {
                        com.google.crypto.tink.shaded.protobuf.n nVar4 = (com.google.crypto.tink.shaded.protobuf.n) this.f36154b;
                        double dDoubleValue4 = ((Double) list.get(i11)).doubleValue();
                        nVar4.getClass();
                        nVar4.y0(i10, Double.doubleToRawLongBits(dDoubleValue4));
                        i11++;
                    }
                }
                break;
        }
    }

    public final void z(int i10, int i11) {
        switch (this.f36153a) {
            case 6:
                ((androidx.datastore.preferences.protobuf.n) this.f36154b).N(i10, i11);
                break;
            default:
                ((com.google.crypto.tink.shaded.protobuf.n) this.f36154b).A0(i10, i11);
                break;
        }
    }

    @Override // com.google.android.gms.internal.ads.iq
    public final /* synthetic */ void zza(g7.l lVar) {
        ((NativeAdView) this.f36154b).a(lVar);
    }

    public j0(androidx.datastore.preferences.protobuf.n nVar) {
        this.f36153a = 6;
        Charset charset = androidx.datastore.preferences.protobuf.b0.f2047a;
        if (nVar == null) {
            throw new NullPointerException("output");
        }
        this.f36154b = nVar;
        nVar.f2119b = this;
    }

    public j0(com.google.crypto.tink.shaded.protobuf.n nVar) {
        this.f36153a = 21;
        Charset charset = com.google.crypto.tink.shaded.protobuf.b0.f23882a;
        if (nVar != null) {
            this.f36154b = nVar;
            nVar.f23946b = this;
            return;
        }
        throw new NullPointerException("output");
    }

    public j0(int i10) {
        this.f36153a = i10;
        if (i10 == 14) {
            this.f36154b = null;
        } else if (i10 != 25) {
            this.f36154b = new HashMap();
        } else {
            this.f36154b = wc.b.a().f34276c;
        }
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ j0() {
        this(ComponentDiscoveryService.class, 22);
        this.f36153a = 22;
    }

    public j0(Context context, Uri uri) {
        this.f36153a = 5;
        this.f36154b = context.getContentResolver().acquireUnstableContentProviderClient(uri);
    }

    public j0(byte[] bArr, int i10) {
        this.f36153a = 12;
        this.f36154b = (ByteBuffer) ByteBuffer.wrap(bArr).order(ByteOrder.BIG_ENDIAN).limit(i10);
    }

    /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ j0(j2.d dVar) {
        this(dVar, 8);
        this.f36153a = 8;
    }
}
