CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 d.java 源代码,内容仅作参考
package i.j.a.e.t;
import android.animation.Keyframe;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Point;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
import android.renderscript.Allocation;
import android.renderscript.Element;
import android.renderscript.RSRuntimeException;
import android.renderscript.RenderScript;
import android.renderscript.ScriptIntrinsicBlur;
import android.text.TextUtils;
import android.util.Log;
import android.util.TypedValue;
import android.view.View;
import android.view.WindowManager;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.exoplayer2.metadata.icy.IcyHeaders;
import com.google.android.gms.common.util.concurrent.NamedThreadFactory;
import com.google.android.gms.measurement.AppMeasurement;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.android.material.shape.MaterialShapeDrawable;
import com.google.android.material.timepicker.TimeModel;
import com.google.firebase.components.DependencyCycleException;
import com.liulishuo.filedownloader.download.DownloadLaunchRunnable;
import com.liulishuo.filedownloader.exception.PathConflictException;
import com.liulishuo.filedownloader.message.LargeMessageSnapshot;
import com.liulishuo.filedownloader.message.MessageSnapshot;
import com.liulishuo.filedownloader.message.SmallMessageSnapshot;
import com.liulishuo.filedownloader.model.FileDownloadModel;
import com.wdullaer.materialdatetimepicker.R$attr;
import e.i.i.a0;
import e.i.i.e0;
import i.j.a.e.t.d;
import i.j.b.j.n;
import i.j.b.j.t;
import i.j.b.j.u;
import i.j.b.j.v;
import i.j.b.k.j.j.g0;
import i.j.b.k.j.j.h0;
import i.m.a.g0.b;
import java.io.Closeable;
import java.io.File;
import java.io.Reader;
import java.io.StringWriter;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Proxy;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.regex.Pattern;
import kotlin.DeprecationLevel;
import kotlin.LazyThreadSafetyMode;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.Result;
import kotlin.SafePublicationLazyImpl;
import kotlin.SynchronizedLazyImpl;
import kotlin.UnsafeLazyImpl;
import kotlin.collections.EmptyList;
import kotlin.collections.EmptySet;
import kotlin.coroutines.EmptyCoroutineContext;
import kotlin.coroutines.jvm.internal.BaseContinuationImpl;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.RestrictedContinuationImpl;
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
import kotlin.reflect.jvm.internal.KDeclarationContainerImpl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.KPropertyImplKt$computeCallerForAccessor$1;
import kotlin.reflect.jvm.internal.KPropertyImplKt$computeCallerForAccessor$2;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$2;
import kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt$findNonGenericClassAcrossDependencies$typeParametersCount$1;
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterUtilsKt$computeConstructorTypeParameters$parametersFromContainingFunctions$1;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.CompositeAnnotations;
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
import kotlin.reflect.jvm.internal.impl.incremental.components.Position;
import kotlin.reflect.jvm.internal.impl.incremental.components.ScopeKind;
import kotlin.reflect.jvm.internal.impl.load.java.AnnotationQualifierApplicabilityType;
import kotlin.reflect.jvm.internal.impl.load.java.AnnotationTypeQualifierResolver;
import kotlin.reflect.jvm.internal.impl.load.java.BuiltinMethodsWithSpecialGenericSignature;
import kotlin.reflect.jvm.internal.impl.load.java.ClassicBuiltinSpecialProperties$getBuiltinSpecialPropertyGetterName$descriptor$1;
import kotlin.reflect.jvm.internal.impl.load.java.ReportLevel;
import kotlin.reflect.jvm.internal.impl.load.java.SpecialGenericSignatures;
import kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaAnnotations;
import kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaTypeParameterResolver;
import kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaStaticClassScope;
import kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.MutabilityQualifier;
import kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.NullabilityQualifier;
import kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.TypeComponentPosition;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Class;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Constructor;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Function;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$MemberKind;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Property;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Type;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$TypeAlias;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$ValueParameter;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$VersionRequirement;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Visibility;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
import kotlin.reflect.jvm.internal.impl.renderer.DescriptorRenderer;
import kotlin.reflect.jvm.internal.impl.resolve.OverridingUtil;
import kotlin.reflect.jvm.internal.impl.resolve.constants.IntegerLiteralTypeConstructor;
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType;
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.storage.LockBasedStorageManager;
import kotlin.reflect.jvm.internal.impl.types.IntersectionTypeConstructor;
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
import kotlin.reflect.jvm.internal.impl.types.Variance;
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypePreparator;
import kotlin.reflect.jvm.internal.impl.types.checker.NewCapturedTypeConstructor;
import kotlin.reflect.jvm.internal.impl.types.checker.TypeIntersector;
import kotlin.reflect.jvm.internal.impl.types.model.ArgumentList;
import kotlin.reflect.jvm.internal.impl.types.model.CaptureStatus;
import kotlin.reflect.jvm.internal.impl.types.model.TypeVariance;
import kotlin.reflect.jvm.internal.impl.utils.FunctionsKt;
import kotlin.sequences.SequencesKt___SequencesKt;
import n.e;
import n.i.b.h;
import n.m.t.a.c;
import n.m.t.a.o.d;
import n.m.t.a.o.f;
import n.m.t.a.p.b.f;
import n.m.t.a.p.b.h;
import n.m.t.a.p.b.l.c;
import n.m.t.a.p.c.a;
import n.m.t.a.p.c.b0;
import n.m.t.a.p.c.d0;
import n.m.t.a.p.c.g;
import n.m.t.a.p.c.i;
import n.m.t.a.p.c.i0;
import n.m.t.a.p.c.n0;
import n.m.t.a.p.c.q0;
import n.m.t.a.p.c.r0;
import n.m.t.a.p.c.t0.f;
import n.m.t.a.p.c.v0.w;
import n.m.t.a.p.c.z;
import n.m.t.a.p.d.a.c;
import n.m.t.a.p.e.a.y.y;
import n.m.t.a.p.e.b.i;
import n.m.t.a.p.e.b.p;
import n.m.t.a.p.e.b.q;
import n.m.t.a.p.f.c.f;
import n.m.t.a.p.f.d.a.d;
import n.m.t.a.p.g.b;
import n.m.t.a.p.j.m;
import n.m.t.a.p.m.c0;
import n.m.t.a.p.m.d1.j;
import n.m.t.a.p.m.d1.k;
import n.m.t.a.p.m.d1.l;
import n.m.t.a.p.m.d1.o;
import n.m.t.a.p.m.f0;
import n.m.t.a.p.m.m0;
import n.m.t.a.p.m.o0;
import n.m.t.a.p.m.p0;
import n.m.t.a.p.m.r;
import n.m.t.a.p.m.r0;
import n.m.t.a.p.m.s;
import n.m.t.a.p.m.s0;
import n.m.t.a.p.m.t0;
import n.m.t.a.p.m.v0;
import n.m.t.a.p.m.w0;
import n.m.t.a.p.m.x;
import n.m.t.a.p.m.x0;
import n.m.t.a.p.m.z0;
import n.m.t.a.p.o.h;
import org.apache.lucene.analysis.miscellaneous.WordDelimiterFilterFactory;
import org.apache.lucene.analysis.shingle.ShingleFilter;
import org.godfootsteps.arch.api.entity.Track;
import org.godfootsteps.audio.R$color;
@Deprecated
public class d {
@SuppressLint({"StaticFieldLeak"})
public static Context a;
public static final String A(Object obj, Object obj2) {
h.e(obj, "from");
h.e(obj2, "until");
return "Random range is empty: [" + obj + ", " + obj2 + ").";
}
public static void A0(List<n<?>> list) {
Set<t> set;
HashMap hashMap = new HashMap(list.size());
Iterator<n<?>> it = list.iterator();
while (true) {
int i2 = 0;
if (it.hasNext()) {
n<?> next = it.next();
t tVar = new t(next);
for (Class<? super Object> cls : next.a) {
u uVar = new u(cls, !next.b(), null);
if (!hashMap.containsKey(uVar)) {
hashMap.put(uVar, new HashSet());
}
Set set2 = (Set) hashMap.get(uVar);
if (!set2.isEmpty() && !uVar.b) {
throw new IllegalArgumentException(String.format("Multiple components provide %s.", cls));
}
set2.add(tVar);
}
} else {
for (Set<t> set3 : hashMap.values()) {
for (t tVar2 : set3) {
for (v vVar : tVar2.a.b) {
if ((vVar.c == 0) && (set = (Set) hashMap.get(new u(vVar.a, vVar.a(), null))) != null) {
for (t tVar3 : set) {
tVar2.b.add(tVar3);
tVar3.c.add(tVar2);
}
}
}
}
}
HashSet hashSet = new HashSet();
for (Set set4 : hashMap.values()) {
hashSet.addAll(set4);
}
HashSet hashSet2 = new HashSet();
Iterator it2 = hashSet.iterator();
while (it2.hasNext()) {
t tVar4 = (t) it2.next();
if (tVar4.a()) {
hashSet2.add(tVar4);
}
}
while (!hashSet2.isEmpty()) {
t tVar5 = (t) hashSet2.iterator().next();
hashSet2.remove(tVar5);
i2++;
for (t tVar6 : tVar5.b) {
tVar6.c.remove(tVar5);
if (tVar6.a()) {
hashSet2.add(tVar6);
}
}
}
if (i2 == list.size()) {
return;
}
ArrayList arrayList = new ArrayList();
Iterator it3 = hashSet.iterator();
while (it3.hasNext()) {
t tVar7 = (t) it3.next();
if (!tVar7.a() && !tVar7.b.isEmpty()) {
arrayList.add(tVar7.a);
}
}
throw new DependencyCycleException(arrayList);
}
}
}
public static final int A1(int i2, int i3, int i4) {
if (i4 > 0) {
return i2 >= i3 ? i3 : i3 - G3(G3(i3, i4) - G3(i2, i4), i4);
} else if (i4 < 0) {
if (i2 <= i3) {
return i3;
}
int i5 = -i4;
return i3 + G3(G3(i2, i5) - G3(i3, i5), i5);
} else {
throw new IllegalArgumentException("Step is zero.");
}
}
public static final boolean A2(x xVar) {
h.e(xVar, "<this>");
z0 M0 = xVar.M0();
return (M0 instanceof r) || ((M0 instanceof n.m.t.a.p.m.t) && (((n.m.t.a.p.m.t) M0).Q0() instanceof r));
}
public static void A3(List<Track> list, int i2) {
if (list.isEmpty()) {
return;
}
if (i2 >= 0 && i2 < list.size()) {
Collections.shuffle(list);
list.add(0, list.remove(i2));
return;
}
Collections.shuffle(list);
}
public static void A4(Path path, float f2, float f3, float f4) {
Matrix matrix = new Matrix();
matrix.setScale(1.0f, f2, f3, f4);
path.transform(matrix);
}
public static final b0 B(x xVar, g gVar, int i2) {
if (gVar == null || s.j(gVar)) {
return null;
}
int size = gVar.u().size() + i2;
if (!gVar.N()) {
if (size != xVar.I0().size()) {
n.m.t.a.p.j.d.t(gVar);
}
return new b0(gVar, xVar.I0().subList(i2, xVar.I0().size()), null);
}
List<p0> subList = xVar.I0().subList(i2, size);
i c = gVar.c();
return new b0(gVar, subList, B(xVar, c instanceof g ? (g) c : null, size));
}
public static List<n.m.t.a.p.m.d1.h> B0(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar, k kVar) {
h.e(cVar, "this");
h.e(hVar, "receiver");
h.e(kVar, "constructor");
h.e(cVar, "this");
h.e(hVar, "receiver");
h.e(kVar, "constructor");
h.e(cVar, "this");
h.e(hVar, "receiver");
h.e(kVar, "constructor");
return null;
}
public static ObjectAnimator B1(View view, float f2, float f3) {
Keyframe ofFloat = Keyframe.ofFloat(0.0f, 1.0f);
Keyframe ofFloat2 = Keyframe.ofFloat(0.275f, f2);
Keyframe ofFloat3 = Keyframe.ofFloat(0.69f, f3);
Keyframe ofFloat4 = Keyframe.ofFloat(1.0f, 1.0f);
ObjectAnimator ofPropertyValuesHolder = ObjectAnimator.ofPropertyValuesHolder(view, PropertyValuesHolder.ofKeyframe("scaleX", ofFloat, ofFloat2, ofFloat3, ofFloat4), PropertyValuesHolder.ofKeyframe("scaleY", ofFloat, ofFloat2, ofFloat3, ofFloat4));
ofPropertyValuesHolder.setDuration(544L);
return ofPropertyValuesHolder;
}
public static boolean B2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
h.e(cVar, "this");
h.e(gVar, "receiver");
if (gVar instanceof x) {
return A2((x) gVar);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static final int B3(int i2) {
if (i2 < 0) {
return i2;
}
if (i2 < 3) {
return i2 + 1;
}
if (i2 < 1073741824) {
return (int) ((i2 / 0.75f) + 1.0f);
}
return Integer.MAX_VALUE;
}
public static void B4(Path path, float f2) {
RectF rectF = new RectF();
path.computeBounds(rectF, true);
Matrix matrix = new Matrix();
float f3 = rectF.left;
matrix.setRectToRect(rectF, new RectF(f3, rectF.top, f2 + f3, rectF.bottom), Matrix.ScaleToFit.FILL);
path.transform(matrix);
}
public static ExecutorService C(String str) {
ExecutorService unconfigurableExecutorService = Executors.unconfigurableExecutorService(new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new g0(str, new AtomicLong(1L)), new ThreadPoolExecutor.DiscardPolicy()));
Runtime.getRuntime().addShutdownHook(new Thread(new h0(str, unconfigurableExecutorService, 2L, TimeUnit.SECONDS), i.a.b.a.a.r("Crashlytics Shutdown Hook for ", str)));
return unconfigurableExecutorService;
}
public static final int C0(int i2) {
return 31 - Integer.numberOfLeadingZeros(i2);
}
public static n.m.t.a.p.m.d1.g C1(n.m.t.a.p.m.b1.c cVar, l lVar) {
h.e(cVar, "this");
h.e(lVar, "receiver");
if (lVar instanceof n0) {
return n.m.t.a.p.m.e1.a.O0((n0) lVar);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + lVar + ", " + n.i.b.k.a(lVar.getClass())).toString());
}
public static boolean C2(char c) {
return c >= 128 && c <= 255;
}
public static final <K, V> Map<K, V> C3(Pair<? extends K, ? extends V> pair) {
h.e(pair, "pair");
Map<K, V> singletonMap = Collections.singletonMap(pair.getFirst(), pair.getSecond());
h.d(singletonMap, "singletonMap(pair.first, pair.second)");
return singletonMap;
}
public static final boolean C4(TypeComponentPosition typeComponentPosition) {
h.e(typeComponentPosition, "<this>");
return typeComponentPosition != TypeComponentPosition.INFLEXIBLE;
}
public static final x D(List<? extends m0> list, List<? extends x> list2, f fVar) {
x k2 = TypeSubstitutor.e(new n.m.t.a.p.m.h0(list)).k((x) n.f.g.o(list2), Variance.OUT_VARIANCE);
if (k2 == null) {
k2 = fVar.n();
}
h.d(k2, "typeParameters: List<Typ… ?: builtIns.defaultBound");
return k2;
}
public static n.m.t.a.p.c.t0.c D0(n.m.t.a.p.c.t0.f fVar, n.m.t.a.p.g.c cVar) {
n.m.t.a.p.c.t0.c cVar2;
h.e(fVar, "this");
h.e(cVar, "fqName");
Iterator<n.m.t.a.p.c.t0.c> it = fVar.iterator();
while (true) {
if (!it.hasNext()) {
cVar2 = null;
break;
}
cVar2 = it.next();
if (h.a(cVar2.e(), cVar)) {
break;
}
}
return cVar2;
}
public static n.m.t.a.p.m.d1.g D1(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.m.t.a.p.c.s<c0> v2;
h.e(cVar, "this");
h.e(gVar, "receiver");
if (gVar instanceof x) {
x xVar = (x) gVar;
int i2 = n.m.t.a.p.j.e.a;
h.e(xVar, "<this>");
h.e(xVar, "<this>");
n.m.t.a.p.c.f d2 = xVar.J0().d();
if (!(d2 instanceof n.m.t.a.p.c.d)) {
d2 = null;
}
n.m.t.a.p.c.d dVar = (n.m.t.a.p.c.d) d2;
c0 c0Var = (dVar == null || (v2 = dVar.v()) == null) ? null : v2.b;
if (c0Var == null) {
return null;
}
return TypeSubstitutor.d(xVar).k(c0Var, Variance.INVARIANT);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static final boolean D2(n.m.t.a.p.c.d dVar) {
h.e(dVar, "<this>");
return dVar.k() == Modality.FINAL && dVar.h() != ClassKind.ENUM_CLASS;
}
public static final Object D3(x xVar, n.m.t.a.p.e.b.g gVar, n.m.t.a.p.e.b.s sVar, q qVar, n.i.a.q qVar2) {
Object obj;
n.m.t.a.p.e.b.s sVar2;
Object D3;
int ordinal;
boolean z;
boolean z2;
m0 j2;
h.e(xVar, "kotlinType");
h.e(gVar, "factory");
h.e(sVar, "mode");
h.e(qVar, "typeMappingConfiguration");
h.e(qVar2, "writeGenericType");
x e2 = qVar.e(xVar);
if (e2 == null) {
if (n.m.t.a.p.b.e.h(xVar)) {
boolean f2 = qVar.f();
w wVar = n.m.t.a.p.b.i.a;
h.e(xVar, "suspendFunType");
n.m.t.a.p.b.e.h(xVar);
f y0 = n.m.t.a.p.m.e1.a.y0(xVar);
n.m.t.a.p.c.t0.f annotations = xVar.getAnnotations();
x d2 = n.m.t.a.p.b.e.d(xVar);
List<p0> f3 = n.m.t.a.p.b.e.f(xVar);
ArrayList arrayList = new ArrayList(S(f3, 10));
for (p0 p0Var : f3) {
arrayList.add(p0Var.b());
}
Objects.requireNonNull(n.m.t.a.p.c.t0.f.f14255d);
n.m.t.a.p.c.t0.f fVar = f.a.b;
if (f2) {
j2 = n.m.t.a.p.b.i.b.j();
} else {
j2 = n.m.t.a.p.b.i.a.j();
}
m0 m0Var = j2;
h.d(m0Var, "if (isReleaseCoroutines)…ERIMENTAL.typeConstructor");
List M = n.f.g.M(arrayList, KotlinTypeFactory.g(fVar, m0Var, r3(n.m.t.a.p.m.e1.a.n(n.m.t.a.p.b.e.e(xVar))), false, null, 16));
c0 q2 = n.m.t.a.p.m.e1.a.y0(xVar).q();
h.d(q2, "suspendFunType.builtIns.nullableAnyType");
return D3(n.m.t.a.p.b.e.a(y0, annotations, d2, M, null, q2, false).N0(xVar.K0()), gVar, sVar, qVar, qVar2);
}
n.m.t.a.p.m.b1.l lVar = n.m.t.a.p.m.b1.l.a;
h.e(lVar, "<this>");
h.e(xVar, "type");
h.e(gVar, "typeFactory");
h.e(sVar, "mode");
k d5 = d5(lVar, xVar);
Object obj2 = null;
if (p2(lVar, d5)) {
PrimitiveType z1 = z1(lVar, d5);
if (z1 != null) {
Object f4 = gVar.f(z1);
if (!S2(lVar, xVar)) {
h.e(lVar, "<this>");
h.e(xVar, "type");
n.m.t.a.p.g.c cVar = n.m.t.a.p.e.a.r.f14427o;
h.d(cVar, "ENHANCED_NULLABILITY_ANNOTATION");
if (!S1(lVar, xVar, cVar)) {
z2 = false;
h.e(gVar, "<this>");
h.e(f4, "possiblyPrimitiveType");
if (z2) {
f4 = gVar.d(f4);
}
obj2 = f4;
}
}
z2 = true;
h.e(gVar, "<this>");
h.e(f4, "possiblyPrimitiveType");
if (z2) {
}
obj2 = f4;
} else {
PrimitiveType y1 = y1(lVar, d5);
if (y1 != null) {
obj2 = gVar.b(h.j("[", JvmPrimitiveType.get(y1).getDesc()));
} else if (b3(lVar, d5)) {
n.m.t.a.p.g.b h2 = n.m.t.a.p.b.l.c.a.h(b1(lVar, d5));
if (h2 != null) {
if (!sVar.f14504g) {
List<c.a> list = n.m.t.a.p.b.l.c.f14226m;
if (!(list instanceof Collection) || !list.isEmpty()) {
for (c.a aVar : list) {
if (h.a(aVar.a, h2)) {
z = true;
break;
}
}
}
z = false;
}
String e3 = n.m.t.a.p.j.t.c.b(h2).e();
h.d(e3, "byClassId(classId).internalName");
obj2 = gVar.c(e3);
}
}
}
}
if (obj2 == null) {
m0 J0 = xVar.J0();
if (J0 instanceof IntersectionTypeConstructor) {
IntersectionTypeConstructor intersectionTypeConstructor = (IntersectionTypeConstructor) J0;
x xVar2 = intersectionTypeConstructor.a;
if (xVar2 == null) {
xVar2 = qVar.c(intersectionTypeConstructor.b);
}
return D3(n.m.t.a.p.m.e1.a.d2(xVar2), gVar, sVar, qVar, qVar2);
}
n.m.t.a.p.c.f d3 = J0.d();
if (d3 != null) {
if (s.j(d3)) {
Object c = gVar.c("error/NonExistentClass");
qVar.g(xVar, (n.m.t.a.p.c.d) d3);
return c;
}
boolean z3 = d3 instanceof n.m.t.a.p.c.d;
if (z3 && n.m.t.a.p.b.f.A(xVar)) {
if (xVar.I0().size() == 1) {
p0 p0Var2 = xVar.I0().get(0);
x b = p0Var2.b();
h.d(b, "memberProjection.type");
if (p0Var2.a() == Variance.IN_VARIANCE) {
D3 = gVar.c("java/lang/Object");
} else {
Variance a2 = p0Var2.a();
h.d(a2, "memberProjection.projectionKind");
h.e(a2, "effectiveVariance");
if (sVar.c || ((ordinal = a2.ordinal()) == 0 ? (sVar2 = sVar.f14506i) == null : !(ordinal == 1 ? (sVar2 = sVar.f14505h) != null : (sVar2 = sVar.f14503f) != null))) {
sVar2 = sVar;
}
D3 = D3(b, gVar, sVar2, qVar, qVar2);
}
return gVar.b(h.j("[", gVar.a(D3)));
}
throw new UnsupportedOperationException("arrays must have one type argument");
} else if (z3) {
if (n.m.t.a.p.j.e.b(d3) && !sVar.b) {
n.m.t.a.p.m.b1.l lVar2 = n.m.t.a.p.m.b1.l.a;
h.e(lVar2, "<this>");
h.e(xVar, "inlineClassType");
x xVar3 = (x) W(lVar2, xVar, new HashSet());
if (xVar3 != null) {
return D3(xVar3, gVar, new n.m.t.a.p.e.b.s(sVar.a, true, sVar.c, sVar.f14501d, sVar.f14502e, sVar.f14503f, sVar.f14504g, sVar.f14505h, sVar.f14506i, false, RecyclerView.b0.FLAG_ADAPTER_POSITION_UNKNOWN), qVar, qVar2);
}
}
if (sVar.c && n.m.t.a.p.b.f.F((n.m.t.a.p.c.d) d3)) {
obj = gVar.e();
} else {
n.m.t.a.p.c.d dVar = (n.m.t.a.p.c.d) d3;
n.m.t.a.p.c.d a3 = dVar.a();
h.d(a3, "descriptor.original");
Object a4 = qVar.a(a3);
if (a4 == null) {
if (dVar.h() == ClassKind.ENUM_ENTRY) {
dVar = (n.m.t.a.p.c.d) dVar.c();
}
n.m.t.a.p.c.d a5 = dVar.a();
h.d(a5, "enumClassIfEnumEntry.original");
obj = gVar.c(X(a5, qVar));
} else {
obj = a4;
}
}
qVar2.invoke(xVar, obj, sVar);
return obj;
} else if (d3 instanceof n0) {
return D3(n.m.t.a.p.m.e1.a.O0((n0) d3), gVar, sVar, qVar, FunctionsKt.b);
} else {
if ((d3 instanceof n.m.t.a.p.c.m0) && sVar.f14507j) {
return D3(((n.m.t.a.p.c.m0) d3).W(), gVar, sVar, qVar, qVar2);
}
throw new UnsupportedOperationException(h.j("Unknown type ", xVar));
}
}
throw new UnsupportedOperationException(h.j("no descriptor for type constructor of ", xVar));
}
boolean z4 = sVar.a;
h.e(gVar, "<this>");
h.e(obj2, "possiblyPrimitiveType");
if (z4) {
obj2 = gVar.d(obj2);
}
qVar2.invoke(xVar, obj2, sVar);
return obj2;
}
return D3(e2, gVar, sVar, qVar, qVar2);
}
public static boolean D4(Intent intent) {
Bundle extras;
if (intent == null || "com.google.firebase.messaging.RECEIVE_DIRECT_BOOT".equals(intent.getAction()) || (extras = intent.getExtras()) == null) {
return false;
}
return IcyHeaders.REQUEST_HEADER_ENABLE_METADATA_VALUE.equals(extras.getString("google.c.a.e"));
}
public static n.m.t.a.p.m.d1.h E(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar, CaptureStatus captureStatus) {
ArrayList arrayList;
boolean z;
h.e(cVar, "this");
h.e(hVar, "type");
h.e(captureStatus, FileDownloadModel.STATUS);
if (hVar instanceof c0) {
c0 c0Var = (c0) hVar;
h.e(c0Var, "type");
h.e(captureStatus, FileDownloadModel.STATUS);
if (c0Var.I0().size() == c0Var.J0().getParameters().size()) {
List<p0> I0 = c0Var.I0();
boolean z2 = true;
int i2 = 0;
if (!(I0 instanceof Collection) || !I0.isEmpty()) {
Iterator<T> it = I0.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
if (((p0) it.next()).a() == Variance.INVARIANT) {
z = true;
continue;
} else {
z = false;
continue;
}
if (!z) {
z2 = false;
break;
}
}
}
if (!z2) {
List<n0> parameters = c0Var.J0().getParameters();
h.d(parameters, "type.constructor.parameters");
List l0 = n.f.g.l0(I0, parameters);
ArrayList arrayList2 = new ArrayList(S(l0, 10));
Iterator it2 = ((ArrayList) l0).iterator();
while (it2.hasNext()) {
Pair pair = (Pair) it2.next();
p0 p0Var = (p0) pair.component1();
n0 n0Var = (n0) pair.component2();
if (p0Var.a() != Variance.INVARIANT) {
z0 M0 = (p0Var.d() || p0Var.a() != Variance.IN_VARIANCE) ? null : p0Var.b().M0();
h.d(n0Var, "parameter");
h.e(captureStatus, "captureStatus");
h.e(p0Var, "projection");
h.e(n0Var, "typeParameter");
p0Var = n.m.t.a.p.m.e1.a.n(new n.m.t.a.p.m.b1.g(captureStatus, new NewCapturedTypeConstructor(p0Var, null, null, n0Var, 6), M0, null, false, false, 56));
}
arrayList2.add(p0Var);
}
TypeSubstitutor c = o0.b.b(c0Var.J0(), arrayList2).c();
int size = I0.size() - 1;
if (size >= 0) {
while (true) {
int i3 = i2 + 1;
p0 p0Var2 = I0.get(i2);
p0 p0Var3 = (p0) arrayList2.get(i2);
if (p0Var2.a() != Variance.INVARIANT) {
List<x> upperBounds = c0Var.J0().getParameters().get(i2).getUpperBounds();
final ArrayList R = i.a.b.a.a.R(upperBounds, "type.constructor.parameters[index].upperBounds");
for (x xVar : upperBounds) {
R.add(KotlinTypePreparator.a.a.a(c.i(xVar, Variance.INVARIANT).M0()));
}
if (!p0Var2.d() && p0Var2.a() == Variance.OUT_VARIANCE) {
R.add(KotlinTypePreparator.a.a.a(p0Var2.b().M0()));
}
NewCapturedTypeConstructor newCapturedTypeConstructor = ((n.m.t.a.p.m.b1.g) p0Var3.b()).f14714k;
Objects.requireNonNull(newCapturedTypeConstructor);
h.e(R, "supertypes");
newCapturedTypeConstructor.b = new n.i.a.a<List<? extends z0>>() {
{
super(0);
}
@Override
public final List<? extends z0> invoke() {
return R;
}
};
}
if (i3 > size) {
break;
}
i2 = i3;
}
}
arrayList = arrayList2;
if (arrayList != null) {
return null;
}
return KotlinTypeFactory.g(c0Var.getAnnotations(), c0Var.J0(), arrayList, c0Var.K0(), null, 16);
}
}
arrayList = null;
if (arrayList != null) {
}
} else {
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
}
public static n.m.t.a.p.c.x0.b.b E0(n.m.t.a.p.c.x0.b.e eVar, n.m.t.a.p.g.c cVar) {
Annotation[] declaredAnnotations;
h.e(eVar, "this");
h.e(cVar, "fqName");
AnnotatedElement v2 = eVar.v();
if (v2 == null || (declaredAnnotations = v2.getDeclaredAnnotations()) == null) {
return null;
}
return F0(declaredAnnotations, cVar);
}
public static final n.m.t.a.p.c.f E1(i iVar) {
h.e(iVar, "<this>");
i c = iVar.c();
if (c == null || (iVar instanceof n.m.t.a.p.c.w)) {
return null;
}
h.e(c, "<this>");
if (!(c.c() instanceof n.m.t.a.p.c.w)) {
return E1(c);
}
if (c instanceof n.m.t.a.p.c.f) {
return (n.m.t.a.p.c.f) c;
}
return null;
}
public static final boolean E2(x xVar) {
h.e(xVar, "<this>");
return xVar.M0() instanceof n.m.t.a.p.m.t;
}
public static final CallableMemberDescriptor.Kind E3(n.m.t.a.p.k.b.s sVar, ProtoBuf$MemberKind protoBuf$MemberKind) {
h.e(sVar, "<this>");
int i2 = protoBuf$MemberKind == null ? -1 : n.m.t.a.p.k.b.t.a[protoBuf$MemberKind.ordinal()];
if (i2 != 1) {
if (i2 != 2) {
if (i2 != 3) {
if (i2 != 4) {
return CallableMemberDescriptor.Kind.DECLARATION;
}
return CallableMemberDescriptor.Kind.SYNTHESIZED;
}
return CallableMemberDescriptor.Kind.DELEGATION;
}
return CallableMemberDescriptor.Kind.FAKE_OVERRIDE;
}
return CallableMemberDescriptor.Kind.DECLARATION;
}
public static final String E4(p pVar, n.m.t.a.p.c.d dVar, String str) {
String e2;
h.e(pVar, "<this>");
h.e(dVar, "classDescriptor");
h.e(str, "jvmDescriptor");
h.e(dVar, "<this>");
n.m.t.a.p.b.l.c cVar = n.m.t.a.p.b.l.c.a;
n.m.t.a.p.g.d j2 = DescriptorUtilsKt.g(dVar).j();
h.d(j2, "fqNameSafe.toUnsafe()");
n.m.t.a.p.g.b h2 = cVar.h(j2);
if (h2 == null) {
e2 = X(dVar, n.m.t.a.p.e.b.r.a);
} else {
e2 = n.m.t.a.p.j.t.c.b(h2).e();
h.d(e2, "byClassId(it).internalName");
}
return pVar.h(e2, str);
}
public static CaptureStatus F(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.b bVar) {
h.e(cVar, "this");
h.e(bVar, "receiver");
if (bVar instanceof n.m.t.a.p.m.b1.g) {
return ((n.m.t.a.p.m.b1.g) bVar).f14713j;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + bVar + ", " + n.i.b.k.a(bVar.getClass())).toString());
}
public static final n.m.t.a.p.c.x0.b.b F0(Annotation[] annotationArr, n.m.t.a.p.g.c cVar) {
Annotation annotation;
h.e(annotationArr, "<this>");
h.e(cVar, "fqName");
int length = annotationArr.length;
int i2 = 0;
while (true) {
if (i2 >= length) {
annotation = null;
break;
}
annotation = annotationArr[i2];
if (h.a(ReflectClassUtilKt.a(k1(R0(annotation))).b(), cVar)) {
break;
}
i2++;
}
if (annotation == null) {
return null;
}
return new n.m.t.a.p.c.x0.b.b(annotation);
}
public static String F1(Bundle bundle) {
String string = bundle.getString("from");
if (string == null || !string.startsWith("/topics/")) {
return null;
}
return string;
}
public static boolean F2(int i2) {
return i2 > 0;
}
public static final int F3(int i2, int i3) {
float alpha = Color.alpha(i3) / 255;
if (alpha == 1.0f) {
return i3;
}
float f2 = 1 - alpha;
return Color.argb(255, (int) ((Color.red(i3) * alpha) + (Color.red(i2) * f2)), (int) ((Color.green(i3) * alpha) + (Color.green(i2) * f2)), (int) ((Color.blue(i3) * alpha) + (Color.blue(i2) * f2)));
}
public static final char F4(char[] cArr) {
h.e(cArr, "<this>");
int length = cArr.length;
if (length != 0) {
if (length == 1) {
return cArr[0];
}
throw new IllegalArgumentException("Array has more than one element.");
}
throw new NoSuchElementException("Array is empty.");
}
public static void G(boolean z) {
if (!z) {
throw new IllegalArgumentException();
}
}
public static final n.m.t.a.p.c.d G0(n.m.t.a.p.c.v vVar, n.m.t.a.p.g.b bVar) {
h.e(vVar, "<this>");
h.e(bVar, "classId");
n.m.t.a.p.c.f H0 = H0(vVar, bVar);
if (H0 instanceof n.m.t.a.p.c.d) {
return (n.m.t.a.p.c.d) H0;
}
return null;
}
public static n.m.t.a.p.m.d1.g G1(n.m.t.a.p.m.b1.c cVar, j jVar) {
h.e(cVar, "this");
h.e(jVar, "receiver");
if (jVar instanceof p0) {
return ((p0) jVar).b().M0();
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + jVar + ", " + n.i.b.k.a(jVar.getClass())).toString());
}
public static boolean G2(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
n.m.t.a.p.c.d dVar = d2 instanceof n.m.t.a.p.c.d ? (n.m.t.a.p.c.d) d2 : null;
return dVar != null && n.m.t.a.p.j.e.b(dVar);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static final int G3(int i2, int i3) {
int i4 = i2 % i3;
return i4 >= 0 ? i4 : i4 + i3;
}
public static final <T> T G4(T[] tArr) {
h.e(tArr, "<this>");
int length = tArr.length;
if (length != 0) {
if (length == 1) {
return tArr[0];
}
throw new IllegalArgumentException("Array has more than one element.");
}
throw new NoSuchElementException("Array is empty.");
}
public static <M extends Member> void H(n.m.t.a.o.c<? extends M> cVar, Object[] objArr) {
h.e(objArr, "args");
if (Z0(cVar) == objArr.length) {
return;
}
StringBuilder J = i.a.b.a.a.J("Callable expects ");
J.append(Z0(cVar));
J.append(" arguments, but ");
throw new IllegalArgumentException(i.a.b.a.a.w(J, objArr.length, " were provided."));
}
public static final n.m.t.a.p.c.f H0(n.m.t.a.p.c.v vVar, n.m.t.a.p.g.b bVar) {
n.m.t.a.p.c.f f2;
h.e(vVar, "<this>");
h.e(bVar, "classId");
n.m.t.a.p.c.u<m> uVar = n.m.t.a.p.j.n.a;
h.e(vVar, "<this>");
m mVar = (m) vVar.E0(n.m.t.a.p.j.n.a);
n.m.t.a.p.c.v a2 = mVar == null ? null : mVar.a(vVar);
if (a2 == null) {
n.m.t.a.p.g.c h2 = bVar.h();
h.d(h2, "classId.packageFqName");
z O = vVar.O(h2);
List<n.m.t.a.p.g.e> f3 = bVar.i().f();
h.d(f3, "classId.relativeClassName.pathSegments()");
MemberScope p2 = O.p();
Object o2 = n.f.g.o(f3);
h.d(o2, "segments.first()");
f2 = p2.f((n.m.t.a.p.g.e) o2, NoLookupLocation.FROM_DESERIALIZATION);
if (f2 == null) {
return null;
}
for (n.m.t.a.p.g.e eVar : f3.subList(1, f3.size())) {
if (!(f2 instanceof n.m.t.a.p.c.d)) {
return null;
}
MemberScope y0 = ((n.m.t.a.p.c.d) f2).y0();
h.d(eVar, "name");
n.m.t.a.p.c.f f4 = y0.f(eVar, NoLookupLocation.FROM_DESERIALIZATION);
if (f4 instanceof n.m.t.a.p.c.d) {
f2 = (n.m.t.a.p.c.d) f4;
continue;
} else {
f2 = null;
continue;
}
if (f2 == null) {
return null;
}
}
} else {
n.m.t.a.p.g.c h3 = bVar.h();
h.d(h3, "classId.packageFqName");
z O2 = a2.O(h3);
List<n.m.t.a.p.g.e> f5 = bVar.i().f();
h.d(f5, "classId.relativeClassName.pathSegments()");
MemberScope p3 = O2.p();
Object o3 = n.f.g.o(f5);
h.d(o3, "segments.first()");
n.m.t.a.p.c.f f6 = p3.f((n.m.t.a.p.g.e) o3, NoLookupLocation.FROM_DESERIALIZATION);
if (f6 != null) {
for (n.m.t.a.p.g.e eVar2 : f5.subList(1, f5.size())) {
if (f6 instanceof n.m.t.a.p.c.d) {
MemberScope y02 = ((n.m.t.a.p.c.d) f6).y0();
h.d(eVar2, "name");
n.m.t.a.p.c.f f7 = y02.f(eVar2, NoLookupLocation.FROM_DESERIALIZATION);
if (f7 instanceof n.m.t.a.p.c.d) {
f6 = (n.m.t.a.p.c.d) f7;
continue;
} else {
f6 = null;
continue;
}
if (f6 == null) {
}
}
}
if (f6 == null) {
return f6;
}
n.m.t.a.p.g.c h4 = bVar.h();
h.d(h4, "classId.packageFqName");
z O3 = vVar.O(h4);
List<n.m.t.a.p.g.e> f8 = bVar.i().f();
h.d(f8, "classId.relativeClassName.pathSegments()");
MemberScope p4 = O3.p();
Object o4 = n.f.g.o(f8);
h.d(o4, "segments.first()");
f2 = p4.f((n.m.t.a.p.g.e) o4, NoLookupLocation.FROM_DESERIALIZATION);
if (f2 == null) {
return null;
}
for (n.m.t.a.p.g.e eVar3 : f8.subList(1, f8.size())) {
if (!(f2 instanceof n.m.t.a.p.c.d)) {
return null;
}
MemberScope y03 = ((n.m.t.a.p.c.d) f2).y0();
h.d(eVar3, "name");
n.m.t.a.p.c.f f9 = y03.f(eVar3, NoLookupLocation.FROM_DESERIALIZATION);
if (f9 instanceof n.m.t.a.p.c.d) {
f2 = (n.m.t.a.p.c.d) f9;
continue;
} else {
f2 = null;
continue;
}
if (f2 == null) {
return null;
}
}
}
f6 = null;
if (f6 == null) {
}
}
return f2;
}
public static l H1(n.m.t.a.p.m.b1.c cVar, o oVar) {
h.e(cVar, "this");
h.e(oVar, "receiver");
if (oVar instanceof n.m.t.a.p.m.b1.j) {
return ((n.m.t.a.p.m.b1.j) oVar).a();
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + oVar + ", " + n.i.b.k.a(oVar.getClass())).toString());
}
public static boolean H2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
h.e(cVar, "this");
h.e(hVar, "receiver");
h.e(cVar, "this");
h.e(hVar, "receiver");
h.e(cVar, "this");
h.e(hVar, "receiver");
return cVar.f0(cVar.b(hVar));
}
public static ThreadPoolExecutor H3(int i2, String str) {
return I3(i2, new LinkedBlockingQueue(), str);
}
public static int H4(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.i iVar) {
h.e(cVar, "this");
h.e(iVar, "receiver");
h.e(cVar, "this");
h.e(iVar, "receiver");
h.e(cVar, "this");
h.e(iVar, "receiver");
if (iVar instanceof n.m.t.a.p.m.d1.h) {
return cVar.h((n.m.t.a.p.m.d1.g) iVar);
}
if (iVar instanceof ArgumentList) {
return ((ArgumentList) iVar).size();
}
throw new IllegalStateException(("unknown type argument list type: " + iVar + ", " + n.i.b.k.a(iVar.getClass())).toString());
}
public static final n.m.t.a.p.e.a.w.d I(n.m.t.a.p.e.a.w.d dVar, i iVar, y yVar, int i2, n.c<n.m.t.a.p.e.a.o> cVar) {
n.m.t.a.p.e.a.w.b bVar = dVar.a;
n.m.t.a.p.e.a.w.g lazyJavaTypeParameterResolver = yVar == null ? null : new LazyJavaTypeParameterResolver(dVar, iVar, yVar, i2);
if (lazyJavaTypeParameterResolver == null) {
lazyJavaTypeParameterResolver = dVar.b;
}
return new n.m.t.a.p.e.a.w.d(bVar, lazyJavaTypeParameterResolver, cVar);
}
public static final n.m.t.a.p.e.b.j I0(n.m.t.a.p.e.b.i iVar, n.m.t.a.p.g.b bVar) {
h.e(iVar, "<this>");
h.e(bVar, "classId");
i.a c = iVar.c(bVar);
if (c == null) {
return null;
}
return c.a();
}
public static l I1(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
if (d2 instanceof n0) {
return (n0) d2;
}
return null;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static boolean I2(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
return kVar instanceof IntegerLiteralTypeConstructor;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static ThreadPoolExecutor I3(int i2, LinkedBlockingQueue<Runnable> linkedBlockingQueue, String str) {
ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(i2, i2, 15L, TimeUnit.SECONDS, linkedBlockingQueue, new i.m.a.k0.b(str));
threadPoolExecutor.allowCoreThreadTimeOut(true);
return threadPoolExecutor;
}
public static final <T extends Comparable<? super T>> void I4(List<T> list) {
h.e(list, "<this>");
if (list.size() > 1) {
Collections.sort(list);
}
}
public static n.m.t.a.p.e.a.w.d J(final n.m.t.a.p.e.a.w.d dVar, final n.m.t.a.p.c.e eVar, y yVar, int i2, int i3) {
if ((i3 & 2) != 0) {
yVar = null;
}
if ((i3 & 4) != 0) {
i2 = 0;
}
h.e(dVar, "<this>");
h.e(eVar, "containingDeclaration");
return I(dVar, eVar, yVar, i2, m3(LazyThreadSafetyMode.NONE, new n.i.a.a<n.m.t.a.p.e.a.o>() {
{
super(0);
}
@Override
public final n.m.t.a.p.e.a.o invoke() {
return d.Y(n.m.t.a.p.e.a.w.d.this, eVar.getAnnotations());
}
}));
}
public static int J0(float[] fArr, int[] iArr, int i2, byte[] bArr) {
Arrays.fill(bArr, (byte) 0);
for (int i3 = 0; i3 < 6; i3++) {
iArr[i3] = (int) Math.ceil(fArr[i3]);
int i4 = iArr[i3];
if (i2 > i4) {
Arrays.fill(bArr, (byte) 0);
i2 = i4;
}
if (i2 == i4) {
bArr[i3] = (byte) (bArr[i3] + 1);
}
}
return i2;
}
public static DateFormat J1(int i2, int i3) {
String str;
String str2;
StringBuilder sb = new StringBuilder();
if (i2 == 0) {
str = "EEEE, MMMM d, yyyy";
} else if (i2 == 1) {
str = "MMMM d, yyyy";
} else if (i2 == 2) {
str = "MMM d, yyyy";
} else if (i2 != 3) {
throw new IllegalArgumentException(i.a.b.a.a.i("Unknown DateFormat style: ", i2));
} else {
str = "M/d/yy";
}
sb.append(str);
sb.append(ShingleFilter.DEFAULT_TOKEN_SEPARATOR);
if (i3 == 0 || i3 == 1) {
str2 = "h:mm:ss a z";
} else if (i3 == 2) {
str2 = "h:mm:ss a";
} else if (i3 != 3) {
throw new IllegalArgumentException(i.a.b.a.a.i("Unknown DateFormat style: ", i3));
} else {
str2 = "h:mm a";
}
sb.append(str2);
return new SimpleDateFormat(sb.toString(), Locale.US);
}
public static boolean J2(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
return kVar instanceof IntersectionTypeConstructor;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static ExecutorService J3() {
return Executors.newSingleThreadExecutor(new NamedThreadFactory("Firebase-Messaging-Network-Io"));
}
public static final <T> void J4(List<T> list, Comparator<? super T> comparator) {
h.e(list, "<this>");
h.e(comparator, "comparator");
if (list.size() > 1) {
Collections.sort(list, comparator);
}
}
public static n.m.t.a.p.e.a.w.d K(n.m.t.a.p.e.a.w.d dVar, n.m.t.a.p.c.i iVar, y yVar, int i2, int i3) {
if ((i3 & 4) != 0) {
i2 = 0;
}
h.e(dVar, "<this>");
h.e(iVar, "containingDeclaration");
h.e(yVar, "typeParameterOwner");
return I(dVar, iVar, yVar, i2, dVar.c);
}
public static final n.m.t.a.p.c.d K0(n.m.t.a.p.c.v vVar, n.m.t.a.p.g.b bVar, NotFoundClasses notFoundClasses) {
h.e(vVar, "<this>");
h.e(bVar, "classId");
h.e(notFoundClasses, "notFoundClasses");
n.m.t.a.p.c.d G0 = G0(vVar, bVar);
return G0 != null ? G0 : notFoundClasses.a(bVar, SequencesKt___SequencesKt.i(SequencesKt___SequencesKt.f(n.m.t.a.p.m.e1.a.q0(bVar, FindClassInModuleKt$findNonGenericClassAcrossDependencies$typeParametersCount$1.INSTANCE), new n.i.a.l<n.m.t.a.p.g.b, Integer>() {
@Override
public final Integer invoke(b bVar2) {
h.e(bVar2, "it");
return 0;
}
})));
}
public static final Method K1(Class<?> cls, CallableMemberDescriptor callableMemberDescriptor) {
h.e(cls, "$this$getUnboxMethod");
h.e(callableMemberDescriptor, "descriptor");
try {
Method declaredMethod = cls.getDeclaredMethod("unbox-impl", new Class[0]);
h.d(declaredMethod, "getDeclaredMethod(\"unbox…FOR_INLINE_CLASS_MEMBERS)");
return declaredMethod;
} catch (NoSuchMethodException unused) {
throw new KotlinReflectionInternalError("No unbox method found in inline class: " + cls + " (calling " + callableMemberDescriptor + ')');
}
}
public static final boolean K2(d0 d0Var) {
h.e(d0Var, "<this>");
return d0Var.getGetter() == null;
}
public static Bitmap K3(Context context, Bitmap bitmap, m.a.a.a aVar) {
boolean z;
int[] iArr;
m.a.a.a aVar2 = aVar;
int i2 = aVar2.a;
int i3 = aVar2.f14075d;
int i4 = i2 / i3;
int i5 = aVar2.b / i3;
int[] iArr2 = {i4, i5};
int i6 = 0;
while (true) {
if (i6 >= 2) {
z = false;
break;
} else if (iArr2[i6] == 0) {
z = true;
break;
} else {
i6++;
}
}
Bitmap bitmap2 = null;
if (z) {
return null;
}
Bitmap createBitmap = Bitmap.createBitmap(i4, i5, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(createBitmap);
int i7 = aVar2.f14075d;
canvas.scale(1.0f / i7, 1.0f / i7);
Paint paint = new Paint();
paint.setFlags(3);
paint.setColorFilter(new PorterDuffColorFilter(0, PorterDuff.Mode.SRC_ATOP));
canvas.drawBitmap(bitmap, 0.0f, 0.0f, paint);
try {
o4(context, createBitmap, aVar2.c);
} catch (RSRuntimeException unused) {
int i8 = aVar2.c;
if (i8 >= 1) {
int width = createBitmap.getWidth();
int height = createBitmap.getHeight();
int i9 = width * height;
int[] iArr3 = new int[i9];
createBitmap.getPixels(iArr3, 0, width, 0, 0, width, height);
int i10 = width - 1;
int i11 = height - 1;
int i12 = i8 + i8 + 1;
int[] iArr4 = new int[i9];
int[] iArr5 = new int[i9];
int[] iArr6 = new int[i9];
int[] iArr7 = new int[Math.max(width, height)];
int i13 = (i12 + 1) >> 1;
int i14 = i13 * i13;
int i15 = i14 * 256;
int[] iArr8 = new int[i15];
for (int i16 = 0; i16 < i15; i16++) {
iArr8[i16] = i16 / i14;
}
int[][] iArr9 = (int[][]) Array.newInstance(int.class, i12, 3);
int i17 = i8 + 1;
int i18 = 0;
int i19 = 0;
int i20 = 0;
while (i18 < height) {
int i21 = -i8;
int i22 = 0;
int i23 = 0;
int i24 = 0;
int i25 = 0;
int i26 = 0;
int i27 = 0;
int i28 = 0;
int i29 = 0;
int i30 = 0;
while (i21 <= i8) {
Bitmap bitmap3 = createBitmap;
int i31 = height;
int i32 = iArr3[Math.min(i10, Math.max(i21, 0)) + i19];
int[] iArr10 = iArr9[i21 + i8];
iArr10[0] = (i32 & 16711680) >> 16;
iArr10[1] = (i32 & 65280) >> 8;
iArr10[2] = i32 & 255;
int abs = i17 - Math.abs(i21);
i22 = (iArr10[0] * abs) + i22;
i23 = (iArr10[1] * abs) + i23;
i24 = (iArr10[2] * abs) + i24;
if (i21 > 0) {
i28 += iArr10[0];
i29 += iArr10[1];
i30 += iArr10[2];
} else {
i25 += iArr10[0];
i26 += iArr10[1];
i27 += iArr10[2];
}
i21++;
height = i31;
createBitmap = bitmap3;
}
Bitmap bitmap4 = createBitmap;
int i33 = height;
int i34 = i8;
int i35 = 0;
while (i35 < width) {
iArr4[i19] = iArr8[i22];
iArr5[i19] = iArr8[i23];
iArr6[i19] = iArr8[i24];
int i36 = i22 - i25;
int i37 = i23 - i26;
int i38 = i24 - i27;
int[] iArr11 = iArr9[((i34 - i8) + i12) % i12];
int i39 = i25 - iArr11[0];
int i40 = i26 - iArr11[1];
int i41 = i27 - iArr11[2];
if (i18 == 0) {
iArr = iArr8;
iArr7[i35] = Math.min(i35 + i8 + 1, i10);
} else {
iArr = iArr8;
}
int i42 = iArr3[i20 + iArr7[i35]];
iArr11[0] = (i42 & 16711680) >> 16;
iArr11[1] = (i42 & 65280) >> 8;
iArr11[2] = i42 & 255;
int i43 = i28 + iArr11[0];
int i44 = i29 + iArr11[1];
int i45 = i30 + iArr11[2];
i22 = i36 + i43;
i23 = i37 + i44;
i24 = i38 + i45;
i34 = (i34 + 1) % i12;
int[] iArr12 = iArr9[i34 % i12];
i25 = i39 + iArr12[0];
i26 = i40 + iArr12[1];
i27 = i41 + iArr12[2];
i28 = i43 - iArr12[0];
i29 = i44 - iArr12[1];
i30 = i45 - iArr12[2];
i19++;
i35++;
iArr8 = iArr;
}
i20 += width;
i18++;
height = i33;
createBitmap = bitmap4;
}
Bitmap bitmap5 = createBitmap;
int[] iArr13 = iArr8;
int i46 = height;
int i47 = 0;
while (i47 < width) {
int i48 = -i8;
int i49 = i48 * width;
int i50 = 0;
int i51 = 0;
int i52 = 0;
int i53 = 0;
int i54 = 0;
int i55 = 0;
int i56 = 0;
int i57 = 0;
int i58 = 0;
while (i48 <= i8) {
int[] iArr14 = iArr7;
int max = Math.max(0, i49) + i47;
int[] iArr15 = iArr9[i48 + i8];
iArr15[0] = iArr4[max];
iArr15[1] = iArr5[max];
iArr15[2] = iArr6[max];
int abs2 = i17 - Math.abs(i48);
i51 = (iArr4[max] * abs2) + i51;
i50 = (iArr5[max] * abs2) + i50;
i52 = (iArr6[max] * abs2) + i52;
if (i48 > 0) {
i56 += iArr15[0];
i57 += iArr15[1];
i58 += iArr15[2];
} else {
i53 += iArr15[0];
i54 += iArr15[1];
i55 += iArr15[2];
}
if (i48 < i11) {
i49 += width;
}
i48++;
iArr7 = iArr14;
}
int[] iArr16 = iArr7;
int i59 = 0;
int i60 = i46;
int i61 = i47;
int i62 = i8;
while (i59 < i60) {
iArr3[i61] = (iArr3[i61] & (-16777216)) | (iArr13[i51] << 16) | (iArr13[i50] << 8) | iArr13[i52];
int i63 = i51 - i53;
int i64 = i50 - i54;
int i65 = i52 - i55;
int[] iArr17 = iArr9[((i62 - i8) + i12) % i12];
int i66 = i53 - iArr17[0];
int i67 = i54 - iArr17[1];
int i68 = i55 - iArr17[2];
int i69 = i8;
if (i47 == 0) {
iArr16[i59] = Math.min(i59 + i17, i11) * width;
}
int i70 = iArr16[i59] + i47;
iArr17[0] = iArr4[i70];
iArr17[1] = iArr5[i70];
iArr17[2] = iArr6[i70];
int i71 = i56 + iArr17[0];
int i72 = i57 + iArr17[1];
int i73 = i58 + iArr17[2];
i51 = i63 + i71;
i50 = i64 + i72;
i52 = i65 + i73;
i62 = (i62 + 1) % i12;
int[] iArr18 = iArr9[i62];
i53 = i66 + iArr18[0];
i54 = i67 + iArr18[1];
i55 = i68 + iArr18[2];
i56 = i71 - iArr18[0];
i57 = i72 - iArr18[1];
i58 = i73 - iArr18[2];
i61 += width;
i59++;
i8 = i69;
}
i47++;
i46 = i60;
iArr7 = iArr16;
}
bitmap5.setPixels(iArr3, 0, width, 0, 0, width, i46);
bitmap2 = bitmap5;
}
aVar2 = aVar;
createBitmap = bitmap2;
}
if (aVar2.f14075d == 1) {
return createBitmap;
}
Bitmap createScaledBitmap = Bitmap.createScaledBitmap(createBitmap, aVar2.a, aVar2.b, true);
createBitmap.recycle();
return createScaledBitmap;
}
public static final <T> List<T> K4(T[] tArr, Comparator<? super T> comparator) {
h.e(tArr, "<this>");
h.e(comparator, "comparator");
h.e(tArr, "<this>");
h.e(comparator, "comparator");
if (!(tArr.length == 0)) {
tArr = (T[]) Arrays.copyOf(tArr, tArr.length);
h.d(tArr, "copyOf(this, size)");
h.e(tArr, "<this>");
h.e(comparator, "comparator");
if (tArr.length > 1) {
Arrays.sort(tArr, comparator);
}
}
return n.f.g.d(tArr);
}
public static void L(View view) {
AtomicInteger atomicInteger = a0.a;
view.setAlpha(1.0f);
view.setScaleY(1.0f);
view.setScaleX(1.0f);
view.setTranslationY(0.0f);
view.setTranslationX(0.0f);
view.setRotation(0.0f);
view.setRotationY(0.0f);
view.setRotationX(0.0f);
view.setPivotY(view.getMeasuredHeight() / 2);
view.setPivotX(view.getMeasuredWidth() / 2);
e0 b = a0.b(view);
b.d(null);
b.g(0L);
}
public static final <T> T L0(T[] tArr) {
h.e(tArr, "<this>");
if (!(tArr.length == 0)) {
return tArr[0];
}
throw new NoSuchElementException("Array is empty.");
}
public static final Object L1(n.m.t.a.p.l.h hVar, n.m.k kVar) {
h.e(hVar, "<this>");
h.e(kVar, "p");
return hVar.invoke();
}
public static final boolean L2(n.m.t.a.p.b.b bVar, n.m.t.a.p.c.d dVar) {
h.e(bVar, "<this>");
h.e(dVar, "classDescriptor");
if (n.m.t.a.p.j.d.p(dVar)) {
Set<n.m.t.a.p.g.b> set = n.m.t.a.p.b.b.b;
n.m.t.a.p.g.b f2 = DescriptorUtilsKt.f(dVar);
if (n.f.g.f(set, f2 == null ? null : f2.g())) {
return true;
}
}
return false;
}
public static n.m.t.a.p.m.d1.h L3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.c cVar2) {
h.e(cVar, "this");
h.e(cVar2, "receiver");
if (cVar2 instanceof n.m.t.a.p.m.l) {
return ((n.m.t.a.p.m.l) cVar2).f14739j;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + cVar2 + ", " + n.i.b.k.a(cVar2.getClass())).toString());
}
public static final x L4(n0 n0Var) {
h.e(n0Var, "<this>");
n.m.t.a.p.c.i c = n0Var.c();
h.d(c, "this.containingDeclaration");
if (c instanceof g) {
List<n0> parameters = ((g) c).j().getParameters();
h.d(parameters, "descriptor.typeConstructor.parameters");
ArrayList arrayList = new ArrayList(S(parameters, 10));
for (n0 n0Var2 : parameters) {
m0 j2 = n0Var2.j();
h.d(j2, "it.typeConstructor");
arrayList.add(j2);
}
List<x> upperBounds = n0Var.getUpperBounds();
h.d(upperBounds, "upperBounds");
return D(arrayList, upperBounds, DescriptorUtilsKt.e(n0Var));
} else if (c instanceof n.m.t.a.p.c.r) {
List<n0> typeParameters = ((n.m.t.a.p.c.r) c).getTypeParameters();
h.d(typeParameters, "descriptor.typeParameters");
ArrayList arrayList2 = new ArrayList(S(typeParameters, 10));
for (n0 n0Var3 : typeParameters) {
m0 j3 = n0Var3.j();
h.d(j3, "it.typeConstructor");
arrayList2.add(j3);
}
List<x> upperBounds2 = n0Var.getUpperBounds();
h.d(upperBounds2, "upperBounds");
return D(arrayList2, upperBounds2, DescriptorUtilsKt.e(n0Var));
} else {
throw new IllegalArgumentException("Unsupported descriptor type to build star projection type based on type parameters of it");
}
}
public static final void M(Closeable closeable, Throwable th) {
if (th == null) {
closeable.close();
return;
}
try {
closeable.close();
} catch (Throwable th2) {
k(th, th2);
}
}
public static final <T> T M0(T[] tArr) {
h.e(tArr, "<this>");
if (tArr.length == 0) {
return null;
}
return tArr[0];
}
public static TypeVariance M1(n.m.t.a.p.m.b1.c cVar, j jVar) {
h.e(cVar, "this");
h.e(jVar, "receiver");
if (jVar instanceof p0) {
Variance a2 = ((p0) jVar).a();
h.d(a2, "this.projectionKind");
return b0(a2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + jVar + ", " + n.i.b.k.a(jVar.getClass())).toString());
}
public static boolean M2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
h.e(cVar, "this");
h.e(gVar, "receiver");
h.e(cVar, "this");
h.e(gVar, "receiver");
h.e(cVar, "this");
h.e(gVar, "receiver");
return (gVar instanceof n.m.t.a.p.m.d1.h) && cVar.P((n.m.t.a.p.m.d1.h) gVar);
}
public static final ProtoBuf$Type M3(ProtoBuf$Type protoBuf$Type, n.m.t.a.p.f.c.e eVar) {
h.e(protoBuf$Type, "<this>");
h.e(eVar, "typeTable");
if (protoBuf$Type.hasOuterType()) {
return protoBuf$Type.getOuterType();
}
if (protoBuf$Type.hasOuterTypeId()) {
return eVar.a(protoBuf$Type.getOuterTypeId());
}
return null;
}
public static TypeSubstitutor M4(List<n0> list, s0 s0Var, n.m.t.a.p.c.i iVar, List<n0> list2) {
if (s0Var == null) {
e(1);
throw null;
} else if (iVar == null) {
e(2);
throw null;
} else if (list2 != null) {
TypeSubstitutor N4 = N4(list, s0Var, iVar, list2, null);
if (N4 != null) {
return N4;
}
throw new AssertionError("Substitution failed");
} else {
e(3);
throw null;
}
}
public static final float N(float f2, float f3) {
return f2 > f3 ? f3 : f2;
}
public static final Set<n.m.t.a.p.g.e> N0(Iterable<? extends MemberScope> iterable) {
h.e(iterable, "<this>");
HashSet hashSet = new HashSet();
for (MemberScope memberScope : iterable) {
Set<n.m.t.a.p.g.e> e2 = memberScope.e();
if (e2 == null) {
return null;
}
n.f.g.b(hashSet, e2);
}
return hashSet;
}
public static TypeVariance N1(n.m.t.a.p.m.b1.c cVar, l lVar) {
h.e(cVar, "this");
h.e(lVar, "receiver");
if (lVar instanceof n0) {
Variance m2 = ((n0) lVar).m();
h.d(m2, "this.variance");
return b0(m2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + lVar + ", " + n.i.b.k.a(lVar.getClass())).toString());
}
public static boolean N2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
h.e(cVar, "this");
h.e(hVar, "receiver");
if (hVar instanceof c0) {
return ((c0) hVar).K0();
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final List<n.m.t.a.p.c.w> N3(n.m.t.a.p.c.x xVar, n.m.t.a.p.g.c cVar) {
h.e(xVar, "<this>");
h.e(cVar, "fqName");
ArrayList arrayList = new ArrayList();
R(xVar, cVar, arrayList);
return arrayList;
}
public static TypeSubstitutor N4(List<n0> list, s0 s0Var, n.m.t.a.p.c.i iVar, List<n0> list2, boolean[] zArr) {
TypeSubstitutor typeSubstitutor;
x k2;
if (list == null) {
e(5);
throw null;
} else if (s0Var == null) {
e(6);
throw null;
} else if (iVar == null) {
e(7);
throw null;
} else if (list2 != null) {
HashMap hashMap = new HashMap();
HashMap hashMap2 = new HashMap();
int i2 = 0;
for (n0 n0Var : list) {
n.m.t.a.p.c.v0.h0 M0 = n.m.t.a.p.c.v0.h0.M0(iVar, n0Var.getAnnotations(), n0Var.D(), n0Var.m(), n0Var.getName(), i2, i0.a, n0Var.i0());
hashMap.put(n0Var.j(), new r0(M0.r()));
hashMap2.put(n0Var, M0);
list2.add(M0);
i2++;
}
h.e(hashMap, "map");
h.e(hashMap, "map");
n.m.t.a.p.m.n0 n0Var2 = new n.m.t.a.p.m.n0(hashMap, false);
TypeSubstitutor f2 = TypeSubstitutor.f(s0Var, n0Var2);
TypeSubstitutor f3 = TypeSubstitutor.f(new t0(s0Var), n0Var2);
for (n0 n0Var3 : list) {
n.m.t.a.p.c.v0.h0 h0Var = (n.m.t.a.p.c.v0.h0) hashMap2.get(n0Var3);
for (x xVar : n0Var3.getUpperBounds()) {
n.m.t.a.p.c.f d2 = xVar.J0().d();
if (d2 instanceof n0) {
n0 n0Var4 = (n0) d2;
h.e(n0Var4, "typeParameter");
if (n.m.t.a.p.m.e1.a.Z0(n0Var4, null, null)) {
typeSubstitutor = f2;
k2 = typeSubstitutor.k(xVar, Variance.OUT_VARIANCE);
if (k2 != null) {
return null;
}
if (k2 != xVar && zArr != null) {
zArr[0] = true;
}
h0Var.K0(k2);
}
}
typeSubstitutor = f3;
k2 = typeSubstitutor.k(xVar, Variance.OUT_VARIANCE);
if (k2 != null) {
}
}
h0Var.L0();
h0Var.f14308u = true;
}
return f2;
} else {
e(8);
throw null;
}
}
public static final float O(float f2, float f3, float f4) {
if (f3 <= f4) {
return f2 < f3 ? f3 : f2 > f4 ? f4 : f2;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + f4 + " is less than minimum " + f3 + '.');
}
public static String O0(long j2) {
int abs = (int) Math.abs(j2 / 60000);
int abs2 = (int) (Math.abs(j2 / 1000) % 60);
String format = String.format(d.c.a.j.s.g(), TimeModel.ZERO_LEADING_NUMBER_FORMAT, Integer.valueOf(abs));
String format2 = String.format(d.c.a.j.s.g(), TimeModel.ZERO_LEADING_NUMBER_FORMAT, Integer.valueOf(abs2));
if (j2 < 0) {
return "-" + format + ":" + format2;
}
return i.a.b.a.a.s(format, ":", format2);
}
public static List<n.m.t.a.p.f.c.f> O1(n.m.t.a.p.k.b.w.b bVar) {
h.e(bVar, "this");
return P1(bVar);
}
public static boolean O2(char c) {
if (g3(c) || c == ' ') {
return true;
}
if (c < '0' || c > '9') {
return c >= 'A' && c <= 'Z';
}
return true;
}
public static int O3(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
return ((m0) kVar).getParameters().size();
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static Collection<n.m.t.a.p.m.d1.g> O4(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
Collection<x> a2 = ((m0) kVar).a();
h.d(a2, "this.supertypes");
return a2;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static final int P(int i2, int i3, int i4) {
if (i3 <= i4) {
return i2 < i3 ? i3 : i2 > i4 ? i4 : i2;
}
throw new IllegalArgumentException("Cannot coerce value to an empty range: maximum " + i4 + " is less than minimum " + i3 + '.');
}
public static n<?> P0(final String str, final i.j.b.w.g<Context> gVar) {
n.b a2 = n.a(i.j.b.w.f.class);
a2.f12603d = 1;
a2.a(new v(Context.class, 1, 0));
a2.c(new i.j.b.j.p() {
@Override
public final Object a(i.j.b.j.o oVar) {
return new c(str, gVar.a((Context) oVar.a(Context.class)));
}
});
return a2.b();
}
public static List<n.m.t.a.p.f.c.f> P1(DeserializedMemberDescriptor deserializedMemberDescriptor) {
List<Integer> versionRequirementList;
f.a aVar;
f.a aVar2;
int ordinal;
DeprecationLevel deprecationLevel;
h.e(deserializedMemberDescriptor, "this");
n.m.t.a.p.h.m C = deserializedMemberDescriptor.C();
n.m.t.a.p.f.c.c a0 = deserializedMemberDescriptor.a0();
n.m.t.a.p.f.c.g Z = deserializedMemberDescriptor.Z();
h.e(C, "proto");
h.e(a0, "nameResolver");
h.e(Z, "table");
if (C instanceof ProtoBuf$Class) {
versionRequirementList = ((ProtoBuf$Class) C).getVersionRequirementList();
} else if (C instanceof ProtoBuf$Constructor) {
versionRequirementList = ((ProtoBuf$Constructor) C).getVersionRequirementList();
} else if (C instanceof ProtoBuf$Function) {
versionRequirementList = ((ProtoBuf$Function) C).getVersionRequirementList();
} else if (C instanceof ProtoBuf$Property) {
versionRequirementList = ((ProtoBuf$Property) C).getVersionRequirementList();
} else if (!(C instanceof ProtoBuf$TypeAlias)) {
throw new IllegalStateException(h.j("Unexpected declaration: ", C.getClass()));
} else {
versionRequirementList = ((ProtoBuf$TypeAlias) C).getVersionRequirementList();
}
ArrayList R = i.a.b.a.a.R(versionRequirementList, "ids");
for (Integer num : versionRequirementList) {
h.d(num, "id");
int intValue = num.intValue();
h.e(a0, "nameResolver");
h.e(Z, "table");
ProtoBuf$VersionRequirement protoBuf$VersionRequirement = (ProtoBuf$VersionRequirement) n.f.g.s(Z.a, intValue);
n.m.t.a.p.f.c.f fVar = null;
if (protoBuf$VersionRequirement != null) {
Integer valueOf = protoBuf$VersionRequirement.hasVersion() ? Integer.valueOf(protoBuf$VersionRequirement.getVersion()) : null;
Integer valueOf2 = protoBuf$VersionRequirement.hasVersionFull() ? Integer.valueOf(protoBuf$VersionRequirement.getVersionFull()) : null;
if (valueOf2 != null) {
aVar = new f.a(valueOf2.intValue() & 255, (valueOf2.intValue() >> 8) & 255, (valueOf2.intValue() >> 16) & 255);
} else if (valueOf != null) {
aVar2 = new f.a(valueOf.intValue() & 7, (valueOf.intValue() >> 3) & 15, (valueOf.intValue() >> 7) & 127);
ProtoBuf$VersionRequirement.Level level = protoBuf$VersionRequirement.getLevel();
h.c(level);
ordinal = level.ordinal();
if (ordinal != 0) {
deprecationLevel = DeprecationLevel.WARNING;
} else if (ordinal == 1) {
deprecationLevel = DeprecationLevel.ERROR;
} else if (ordinal != 2) {
throw new NoWhenBranchMatchedException();
} else {
deprecationLevel = DeprecationLevel.HIDDEN;
}
DeprecationLevel deprecationLevel2 = deprecationLevel;
Integer valueOf3 = !protoBuf$VersionRequirement.hasErrorCode() ? Integer.valueOf(protoBuf$VersionRequirement.getErrorCode()) : null;
String string = protoBuf$VersionRequirement.hasMessage() ? a0.getString(protoBuf$VersionRequirement.getMessage()) : null;
ProtoBuf$VersionRequirement.VersionKind versionKind = protoBuf$VersionRequirement.getVersionKind();
h.d(versionKind, "info.versionKind");
fVar = new n.m.t.a.p.f.c.f(aVar2, versionKind, deprecationLevel2, valueOf3, string);
} else {
aVar = f.a.f14551e;
}
aVar2 = aVar;
ProtoBuf$VersionRequirement.Level level2 = protoBuf$VersionRequirement.getLevel();
h.c(level2);
ordinal = level2.ordinal();
if (ordinal != 0) {
}
DeprecationLevel deprecationLevel22 = deprecationLevel;
if (!protoBuf$VersionRequirement.hasErrorCode()) {
}
if (protoBuf$VersionRequirement.hasMessage()) {
}
ProtoBuf$VersionRequirement.VersionKind versionKind2 = protoBuf$VersionRequirement.getVersionKind();
h.d(versionKind2, "info.versionKind");
fVar = new n.m.t.a.p.f.c.f(aVar2, versionKind2, deprecationLevel22, valueOf3, string);
}
if (fVar != null) {
R.add(fVar);
}
}
return R;
}
public static boolean P2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
h.e(cVar, "this");
h.e(gVar, "receiver");
h.e(cVar, "this");
h.e(gVar, "receiver");
h.e(cVar, "this");
h.e(gVar, "receiver");
return cVar.m(cVar.t(gVar)) && !cVar.e0(gVar);
}
public static int P3(byte[] bArr, int i2, int i3) {
while (i2 < i3 && bArr[i2] >= 0) {
i2++;
}
if (i2 >= i3) {
return 0;
}
while (i2 < i3) {
int i4 = i2 + 1;
byte b = bArr[i2];
if (b < 0) {
if (b < -32) {
if (i4 >= i3) {
return b;
}
if (b >= -62) {
i2 = i4 + 1;
if (bArr[i4] > -65) {
}
}
return -1;
}
if (b < -16) {
if (i4 >= i3 - 1) {
return c2(bArr, i4, i3);
}
int i5 = i4 + 1;
byte b2 = bArr[i4];
if (b2 <= -65 && ((b != -32 || b2 >= -96) && (b != -19 || b2 < -96))) {
i2 = i5 + 1;
if (bArr[i5] > -65) {
}
}
} else if (i4 >= i3 - 2) {
return c2(bArr, i4, i3);
} else {
int i6 = i4 + 1;
byte b3 = bArr[i4];
if (b3 <= -65) {
if ((((b3 + 112) + (b << 28)) >> 30) == 0) {
int i7 = i6 + 1;
if (bArr[i6] <= -65) {
i4 = i7 + 1;
if (bArr[i7] > -65) {
}
}
}
}
}
return -1;
}
i2 = i4;
}
return 0;
}
public static final n.m.t.a.p.g.c P4(n.m.t.a.p.g.c cVar, n.m.t.a.p.g.c cVar2) {
h.e(cVar, "<this>");
h.e(cVar2, "prefix");
h.e(cVar, "<this>");
h.e(cVar2, "packageName");
boolean z = false;
if (!h.a(cVar, cVar2) && !cVar2.d()) {
String b = cVar.b();
h.d(b, "this.asString()");
String b2 = cVar2.b();
h.d(b2, "packageName.asString()");
if (n.o.a.C(b, b2, false, 2)) {
}
if (!z && !cVar2.d()) {
if (h.a(cVar, cVar2)) {
n.m.t.a.p.g.c cVar3 = n.m.t.a.p.g.c.c;
h.d(cVar3, "ROOT");
return cVar3;
}
String b3 = cVar.b();
h.d(b3, "asString()");
String substring = b3.substring(cVar2.b().length() + 1);
h.d(substring, "(this as java.lang.String).substring(startIndex)");
return new n.m.t.a.p.g.c(substring);
}
}
z = true;
return !z ? cVar : cVar;
}
public static final Object Q(Object obj, CallableMemberDescriptor callableMemberDescriptor) {
x f1;
Class<?> U4;
h.e(callableMemberDescriptor, "descriptor");
return (((callableMemberDescriptor instanceof d0) && n.m.t.a.p.j.e.d((q0) callableMemberDescriptor)) || (f1 = f1(callableMemberDescriptor)) == null || (U4 = U4(f1)) == null) ? obj : K1(U4, callableMemberDescriptor).invoke(obj, new Object[0]);
}
public static j Q0(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.i iVar, int i2) {
h.e(cVar, "this");
h.e(iVar, "receiver");
h.e(cVar, "this");
h.e(iVar, "receiver");
h.e(cVar, "this");
h.e(iVar, "receiver");
if (iVar instanceof n.m.t.a.p.m.d1.h) {
return cVar.X((n.m.t.a.p.m.d1.g) iVar, i2);
}
if (iVar instanceof ArgumentList) {
j jVar = ((ArgumentList) iVar).get(i2);
h.d(jVar, "get(index)");
return jVar;
}
throw new IllegalStateException(("unknown type argument list type: " + iVar + ", " + n.i.b.k.a(iVar.getClass())).toString());
}
public static n.m.t.a.p.c.s0 Q1(n.m.t.a.p.c.x0.b.r rVar) {
h.e(rVar, "this");
int D = rVar.D();
if (Modifier.isPublic(D)) {
return r0.h.c;
}
if (Modifier.isPrivate(D)) {
return r0.e.c;
}
if (Modifier.isProtected(D)) {
return Modifier.isStatic(D) ? n.m.t.a.p.c.w0.c.c : n.m.t.a.p.c.w0.b.c;
}
return n.m.t.a.p.c.w0.a.c;
}
public static boolean Q2(n.m.t.a.p.m.b1.c cVar, k kVar) {
h.e(cVar, "this");
h.e(kVar, "receiver");
if (kVar instanceof m0) {
return n.m.t.a.p.b.f.N((m0) kVar, h.a.c);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static Collection<n.m.t.a.p.m.d1.g> Q3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
k b = cVar.b(hVar);
if (b instanceof IntegerLiteralTypeConstructor) {
return ((IntegerLiteralTypeConstructor) b).c;
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final void Q4(Object obj) {
if (obj instanceof Result.Failure) {
throw ((Result.Failure) obj).exception;
}
}
public static final void R(n.m.t.a.p.c.x xVar, n.m.t.a.p.g.c cVar, Collection<n.m.t.a.p.c.w> collection) {
n.i.b.h.e(xVar, "<this>");
n.i.b.h.e(cVar, "fqName");
n.i.b.h.e(collection, "packageFragments");
if (xVar instanceof n.m.t.a.p.c.y) {
((n.m.t.a.p.c.y) xVar).b(cVar, collection);
} else {
collection.addAll(xVar.a(cVar));
}
}
public static final <T extends Annotation> n.m.d<? extends T> R0(T t2) {
n.i.b.h.e(t2, "<this>");
Class<? extends Annotation> annotationType = t2.annotationType();
n.i.b.h.d(annotationType, "this as java.lang.annota…otation).annotationType()");
return q1(annotationType);
}
public static boolean R1(n.m.t.a.p.c.t0.f fVar, n.m.t.a.p.g.c cVar) {
n.i.b.h.e(fVar, "this");
n.i.b.h.e(cVar, "fqName");
return fVar.i(cVar) != null;
}
public static final boolean R2(x xVar) {
n.i.b.h.e(xVar, "<this>");
return w0.h(xVar);
}
public static j R3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.a aVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(aVar, "receiver");
if (aVar instanceof NewCapturedTypeConstructor) {
return ((NewCapturedTypeConstructor) aVar).a;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + aVar + ", " + n.i.b.k.a(aVar.getClass())).toString());
}
public static final <T, C extends Collection<? super T>> C R4(T[] tArr, C c) {
n.i.b.h.e(tArr, "<this>");
n.i.b.h.e(c, "destination");
for (T t2 : tArr) {
c.add(t2);
}
return c;
}
public static final <T> int S(Iterable<? extends T> iterable, int i2) {
n.i.b.h.e(iterable, "<this>");
return iterable instanceof Collection ? ((Collection) iterable).size() : i2;
}
public static n.m.t.a.p.c.p0 S0(n.m.t.a.p.g.e eVar, n.m.t.a.p.c.d dVar) {
if (eVar == null) {
c(19);
throw null;
} else if (dVar != null) {
Collection<n.m.t.a.p.c.c> l2 = dVar.l();
if (l2.size() != 1) {
return null;
}
for (n.m.t.a.p.c.p0 p0Var : l2.iterator().next().g()) {
if (p0Var.getName().equals(eVar)) {
return p0Var;
}
}
return null;
} else {
c(20);
throw null;
}
}
public static boolean S1(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar, n.m.t.a.p.g.c cVar2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar2, "fqName");
if (gVar instanceof x) {
return ((x) gVar).getAnnotations().e0(cVar2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static boolean S2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof x) {
return w0.h((x) gVar);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static final n.m.t.a.p.g.e S3(n.m.t.a.p.g.e eVar, boolean z) {
n.i.b.h.e(eVar, "methodName");
return T3(eVar, "set", false, z ? "is" : null, 4);
}
public static final n.m.t.a.p.c.p S4(n.m.t.a.p.c.s0 s0Var) {
n.i.b.h.e(s0Var, "<this>");
n.m.t.a.p.c.p pVar = n.m.t.a.p.e.a.k.f14410d.get(s0Var);
if (pVar == null) {
pVar = n.m.t.a.p.c.o.h(s0Var);
}
n.i.b.h.d(pVar, "toDescriptorVisibility(this)");
return pVar;
}
public static final <T extends Comparable<?>> int T(T t2, T t3) {
if (t2 == t3) {
return 0;
}
if (t2 == null) {
return -1;
}
if (t3 == null) {
return 1;
}
return t2.compareTo(t3);
}
public static List<n.m.t.a.p.c.x0.b.b> T0(n.m.t.a.p.c.x0.b.e eVar) {
n.i.b.h.e(eVar, "this");
AnnotatedElement v2 = eVar.v();
Annotation[] declaredAnnotations = v2 == null ? null : v2.getDeclaredAnnotations();
if (declaredAnnotations == null) {
return EmptyList.INSTANCE;
}
return U0(declaredAnnotations);
}
public static boolean T1(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
return cVar.P(cVar.Y(gVar)) != cVar.P(cVar.M(gVar));
}
public static boolean T2(int i2) {
return i2 < 0;
}
public static n.m.t.a.p.g.e T3(n.m.t.a.p.g.e eVar, String str, boolean z, String str2, int i2) {
Object obj;
if ((i2 & 4) != 0) {
z = true;
}
if ((i2 & 8) != 0) {
str2 = null;
}
if (!eVar.f14564j) {
String d2 = eVar.d();
n.i.b.h.d(d2, "methodName.identifier");
boolean z2 = false;
if (n.o.a.C(d2, str, false, 2) && d2.length() != str.length()) {
char charAt = d2.charAt(str.length());
if (!('a' <= charAt && charAt <= 'z')) {
if (str2 != null) {
return n.m.t.a.p.g.e.j(n.i.b.h.j(str2, n.o.a.t(d2, str)));
}
if (!z) {
return eVar;
}
String t2 = n.o.a.t(d2, str);
n.i.b.h.e(t2, "<this>");
if (!(t2.length() == 0) && n.m.t.a.p.m.e1.a.w1(t2, 0, true)) {
if (t2.length() != 1 && n.m.t.a.p.m.e1.a.w1(t2, 1, true)) {
n.i.b.h.e(t2, "<this>");
Iterator<Integer> it = new n.l.c(0, t2.length() - 1).iterator();
while (true) {
if (!((n.l.b) it).f14128k) {
obj = null;
break;
}
obj = ((n.f.p) it).next();
if (!n.m.t.a.p.m.e1.a.w1(t2, ((Number) obj).intValue(), true)) {
break;
}
}
Integer num = (Integer) obj;
if (num == null) {
t2 = n.m.t.a.p.m.e1.a.K2(t2, true);
} else {
int intValue = num.intValue() - 1;
String substring = t2.substring(0, intValue);
n.i.b.h.d(substring, "(this as java.lang.Strin…ing(startIndex, endIndex)");
String K2 = n.m.t.a.p.m.e1.a.K2(substring, true);
String substring2 = t2.substring(intValue);
n.i.b.h.d(substring2, "(this as java.lang.String).substring(startIndex)");
t2 = n.i.b.h.j(K2, substring2);
}
} else {
n.i.b.h.e(t2, "<this>");
if (!(t2.length() == 0)) {
char charAt2 = t2.charAt(0);
if ('A' <= charAt2 && charAt2 <= 'Z') {
z2 = true;
}
if (z2) {
char lowerCase = Character.toLowerCase(charAt2);
String substring3 = t2.substring(1);
StringBuilder N = i.a.b.a.a.N(substring3, "(this as java.lang.String).substring(startIndex)");
N.append(String.valueOf(lowerCase));
N.append(substring3);
t2 = N.toString();
}
}
}
}
if (n.m.t.a.p.g.e.k(t2)) {
return n.m.t.a.p.g.e.j(t2);
}
}
}
}
return null;
}
public static final Class<?> T4(n.m.t.a.p.c.i iVar) {
if ((iVar instanceof n.m.t.a.p.c.d) && n.m.t.a.p.j.e.b(iVar)) {
n.m.t.a.p.c.d dVar = (n.m.t.a.p.c.d) iVar;
Class<?> h2 = n.m.t.a.m.h(dVar);
if (h2 != null) {
return h2;
}
StringBuilder J = i.a.b.a.a.J("Class object for the class ");
J.append(dVar.getName());
J.append(" cannot be found (classId=");
J.append(DescriptorUtilsKt.f((n.m.t.a.p.c.f) iVar));
J.append(')');
throw new KotlinReflectionInternalError(J.toString());
}
return null;
}
public static final n.m.t.a.p.c.t0.f U(n.m.t.a.p.c.t0.f fVar, n.m.t.a.p.c.t0.f fVar2) {
n.i.b.h.e(fVar, "first");
n.i.b.h.e(fVar2, "second");
return fVar.isEmpty() ? fVar2 : fVar2.isEmpty() ? fVar : new CompositeAnnotations(fVar, fVar2);
}
public static final List<n.m.t.a.p.c.x0.b.b> U0(Annotation[] annotationArr) {
n.i.b.h.e(annotationArr, "<this>");
ArrayList arrayList = new ArrayList(annotationArr.length);
for (Annotation annotation : annotationArr) {
arrayList.add(new n.m.t.a.p.c.x0.b.b(annotation));
}
return arrayList;
}
public static final boolean U1(n.m.t.a.p.c.d dVar, n.m.t.a.p.c.a aVar) {
boolean z;
boolean z2;
n.i.b.h.e(dVar, "<this>");
n.i.b.h.e(aVar, "specialCallableDescriptor");
c0 r2 = ((n.m.t.a.p.c.d) aVar.c()).r();
n.i.b.h.d(r2, "specialCallableDescripto…ssDescriptor).defaultType");
n.m.t.a.p.c.d l2 = n.m.t.a.p.j.d.l(dVar);
while (true) {
boolean z3 = false;
if (l2 == null) {
return false;
}
if (!(l2 instanceof n.m.t.a.p.e.a.v.c)) {
c0 r3 = l2.r();
x xVar = null;
if (r3 != null) {
n.m.t.a.p.m.b1.n nVar = new n.m.t.a.p.m.b1.n();
n.i.b.h.e(r3, "subtype");
n.i.b.h.e(r2, "supertype");
n.i.b.h.e(nVar, "typeCheckingProcedureCallbacks");
ArrayDeque arrayDeque = new ArrayDeque();
arrayDeque.add(new n.m.t.a.p.m.b1.m(r3, null));
m0 J0 = r2.J0();
while (true) {
if (arrayDeque.isEmpty()) {
break;
}
n.m.t.a.p.m.b1.m mVar = (n.m.t.a.p.m.b1.m) arrayDeque.poll();
x xVar2 = mVar.a;
m0 J02 = xVar2.J0();
if (nVar.b(J02, J0)) {
boolean K0 = xVar2.K0();
for (n.m.t.a.p.m.b1.m mVar2 = mVar.b; mVar2 != null; mVar2 = mVar2.b) {
x xVar3 = mVar2.a;
List<p0> I0 = xVar3.I0();
if (!(I0 instanceof Collection) || !I0.isEmpty()) {
for (p0 p0Var : I0) {
if (p0Var.a() != Variance.INVARIANT) {
z = true;
continue;
} else {
z = false;
continue;
}
if (z) {
z2 = true;
break;
}
}
}
z2 = false;
if (z2) {
x i2 = m5(o0.b.a(xVar3), false, 1).c().i(xVar2, Variance.INVARIANT);
n.i.b.h.d(i2, "TypeConstructorSubstitut…uted, Variance.INVARIANT)");
xVar2 = n.m.t.a.p.m.e1.a.l(i2).b;
} else {
xVar2 = o0.b.a(xVar3).c().i(xVar2, Variance.INVARIANT);
n.i.b.h.d(xVar2, "{\n Ty…ARIANT)\n }");
}
K0 = K0 || xVar3.K0();
}
m0 J03 = xVar2.J0();
if (nVar.b(J03, J0)) {
xVar = w0.k(xVar2, K0);
} else {
StringBuilder J = i.a.b.a.a.J("Type constructors should be equals!\nsubstitutedSuperType: ");
J.append(x0(J03));
J.append(", \n\nsupertype: ");
J.append(x0(J0));
J.append(" \n");
J.append(nVar.b(J03, J0));
throw new AssertionError(J.toString());
}
} else {
for (x xVar4 : J02.a()) {
n.i.b.h.d(xVar4, "immediateSupertype");
arrayDeque.add(new n.m.t.a.p.m.b1.m(xVar4, mVar));
}
}
}
} else {
n.m.t.a.p.m.b1.o.a(0);
throw null;
}
}
l2 = n.m.t.a.p.j.d.l(l2);
}
}
public static boolean U2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof x) {
return n.m.t.a.p.b.f.K((x) hVar);
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final String U3(Reader reader) {
n.i.b.h.e(reader, "<this>");
StringWriter stringWriter = new StringWriter();
n.i.b.h.e(reader, "<this>");
n.i.b.h.e(stringWriter, "out");
char[] cArr = new char[RecyclerView.b0.FLAG_BOUNCED_FROM_HIDDEN_LIST];
int read = reader.read(cArr);
while (read >= 0) {
stringWriter.write(cArr, 0, read);
read = reader.read(cArr);
}
String stringWriter2 = stringWriter.toString();
n.i.b.h.d(stringWriter2, "buffer.toString()");
return stringWriter2;
}
public static final Class<?> U4(x xVar) {
n.i.b.h.e(xVar, "$this$toInlineClass");
return T4(xVar.J0().d());
}
public static final List<n0> V(g gVar) {
List<n0> list;
n.m.t.a.p.c.i iVar;
m0 j2;
n.i.b.h.e(gVar, "<this>");
List<n0> u2 = gVar.u();
n.i.b.h.d(u2, "declaredTypeParameters");
if (gVar.N() || (gVar.c() instanceof n.m.t.a.p.c.a)) {
n.n.h<n.m.t.a.p.c.i> k2 = DescriptorUtilsKt.k(gVar);
TypeParameterUtilsKt$computeConstructorTypeParameters$parametersFromContainingFunctions$1 typeParameterUtilsKt$computeConstructorTypeParameters$parametersFromContainingFunctions$1 = new n.i.a.l<n.m.t.a.p.c.i, Boolean>() {
@Override
public final Boolean invoke(n.m.t.a.p.c.i iVar2) {
n.i.b.h.e(iVar2, "it");
return Boolean.valueOf(iVar2 instanceof a);
}
};
n.i.b.h.e(k2, "<this>");
n.i.b.h.e(typeParameterUtilsKt$computeConstructorTypeParameters$parametersFromContainingFunctions$1, "predicate");
List i2 = SequencesKt___SequencesKt.i(SequencesKt___SequencesKt.e(SequencesKt___SequencesKt.c(new n.n.p(k2, typeParameterUtilsKt$computeConstructorTypeParameters$parametersFromContainingFunctions$1), new n.i.a.l<n.m.t.a.p.c.i, Boolean>() {
@Override
public final Boolean invoke(n.m.t.a.p.c.i iVar2) {
n.i.b.h.e(iVar2, "it");
return Boolean.valueOf(!(iVar2 instanceof n.m.t.a.p.c.h));
}
}), new n.i.a.l<n.m.t.a.p.c.i, n.n.h<? extends n0>>() {
@Override
public final n.n.h<n0> invoke(n.m.t.a.p.c.i iVar2) {
n.i.b.h.e(iVar2, "it");
List<n0> typeParameters = ((a) iVar2).getTypeParameters();
n.i.b.h.d(typeParameters, "it as CallableDescriptor).typeParameters");
return n.f.g.e(typeParameters);
}
}));
Iterator<n.m.t.a.p.c.i> it = DescriptorUtilsKt.k(gVar).iterator();
while (true) {
list = null;
if (!it.hasNext()) {
iVar = null;
break;
}
iVar = it.next();
if (iVar instanceof n.m.t.a.p.c.d) {
break;
}
}
n.m.t.a.p.c.d dVar = (n.m.t.a.p.c.d) iVar;
if (dVar != null && (j2 = dVar.j()) != null) {
list = j2.getParameters();
}
if (list == null) {
list = EmptyList.INSTANCE;
}
if (i2.isEmpty() && list.isEmpty()) {
List<n0> u3 = gVar.u();
n.i.b.h.d(u3, "declaredTypeParameters");
return u3;
}
List<n0> L = n.f.g.L(i2, list);
ArrayList arrayList = new ArrayList(S(L, 10));
for (n0 n0Var : L) {
n.i.b.h.d(n0Var, "it");
arrayList.add(new n.m.t.a.p.c.b(n0Var, gVar, u2.size()));
}
return n.f.g.L(u2, arrayList);
}
return u2;
}
public static final int V0(Context context) {
n.i.b.h.e(context, "$this$getAppScreenHeight");
Object systemService = context.getSystemService("window");
Objects.requireNonNull(systemService, "null cannot be cast to non-null type android.view.WindowManager");
Point point = new Point();
((WindowManager) systemService).getDefaultDisplay().getSize(point);
return point.y;
}
public static final boolean V1(ProtoBuf$Function protoBuf$Function) {
n.i.b.h.e(protoBuf$Function, "<this>");
return protoBuf$Function.hasReceiverType() || protoBuf$Function.hasReceiverTypeId();
}
public static boolean V2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.b bVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(bVar, "receiver");
if (bVar instanceof n.m.t.a.p.m.b1.g) {
return ((n.m.t.a.p.m.b1.g) bVar).f14718o;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + bVar + ", " + n.i.b.k.a(bVar.getClass())).toString());
}
public static final ProtoBuf$Type V3(ProtoBuf$Function protoBuf$Function, n.m.t.a.p.f.c.e eVar) {
n.i.b.h.e(protoBuf$Function, "<this>");
n.i.b.h.e(eVar, "typeTable");
if (protoBuf$Function.hasReceiverType()) {
return protoBuf$Function.getReceiverType();
}
if (protoBuf$Function.hasReceiverTypeId()) {
return eVar.a(protoBuf$Function.getReceiverTypeId());
}
return null;
}
public static final <T> List<T> V4(T[] tArr) {
n.i.b.h.e(tArr, "<this>");
int length = tArr.length;
if (length != 0) {
if (length != 1) {
n.i.b.h.e(tArr, "<this>");
n.i.b.h.e(tArr, "<this>");
return new ArrayList(new n.f.d(tArr, false));
}
return r3(tArr[0]);
}
return EmptyList.INSTANCE;
}
public static final n.m.t.a.p.m.d1.g W(v0 v0Var, n.m.t.a.p.m.d1.g gVar, HashSet<k> hashSet) {
n.m.t.a.p.m.d1.g W;
k t2 = v0Var.t(gVar);
if (hashSet.add(t2)) {
l A = v0Var.A(t2);
if (A != null) {
W = W(v0Var, v0Var.j(A), hashSet);
if (W == null) {
return null;
}
if (!v0Var.e0(W) && v0Var.d0(gVar)) {
return v0Var.p0(W);
}
} else if (!v0Var.S(t2)) {
return gVar;
} else {
n.m.t.a.p.m.d1.g T = v0Var.T(gVar);
if (T == null || (W = W(v0Var, T, hashSet)) == null) {
return null;
}
if (v0Var.e0(gVar)) {
return v0Var.e0(W) ? gVar : ((W instanceof n.m.t.a.p.m.d1.h) && v0Var.r0((n.m.t.a.p.m.d1.h) W)) ? gVar : v0Var.p0(W);
}
}
return W;
}
return null;
}
public static final int W0(Context context) {
n.i.b.h.e(context, "$this$getAppScreenWidth");
Object systemService = context.getSystemService("window");
Objects.requireNonNull(systemService, "null cannot be cast to non-null type android.view.WindowManager");
Point point = new Point();
((WindowManager) systemService).getDefaultDisplay().getSize(point);
return point.x;
}
public static final boolean W1(ProtoBuf$Property protoBuf$Property) {
n.i.b.h.e(protoBuf$Property, "<this>");
return protoBuf$Property.hasReceiverType() || protoBuf$Property.hasReceiverTypeId();
}
public static boolean W2(n.m.t.a.p.m.b1.c cVar, j jVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(jVar, "receiver");
if (jVar instanceof p0) {
return ((p0) jVar).d();
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + jVar + ", " + n.i.b.k.a(jVar.getClass())).toString());
}
public static final void W3(n.m.t.a.p.d.a.c cVar, n.m.t.a.p.d.a.b bVar, n.m.t.a.p.c.d dVar, n.m.t.a.p.g.e eVar) {
n.m.t.a.p.d.a.a location;
Position position;
n.i.b.h.e(cVar, "<this>");
n.i.b.h.e(bVar, "from");
n.i.b.h.e(dVar, "scopeOwner");
n.i.b.h.e(eVar, "name");
if (cVar == c.a.a || (location = bVar.getLocation()) == null) {
return;
}
if (cVar.a()) {
position = location.getPosition();
} else {
Objects.requireNonNull(Position.Companion);
position = Position.f13558i;
}
String a2 = location.a();
String b = n.m.t.a.p.j.d.g(dVar).b();
n.i.b.h.d(b, "getFqName(scopeOwner).asString()");
ScopeKind scopeKind = ScopeKind.CLASSIFIER;
String c = eVar.c();
n.i.b.h.d(c, "name.asString()");
cVar.b(a2, position, b, scopeKind, c);
}
public static final <T> Set<T> W4(T[] tArr) {
n.i.b.h.e(tArr, "<this>");
int length = tArr.length;
if (length != 0) {
if (length != 1) {
LinkedHashSet linkedHashSet = new LinkedHashSet(B3(tArr.length));
R4(tArr, linkedHashSet);
return linkedHashSet;
}
return t4(tArr[0]);
}
return EmptySet.INSTANCE;
}
public static final String X(n.m.t.a.p.c.d dVar, q<?> qVar) {
n.i.b.h.e(dVar, "klass");
n.i.b.h.e(qVar, "typeMappingConfiguration");
String b = qVar.b(dVar);
if (b == null) {
n.m.t.a.p.c.i c = dVar.c();
n.i.b.h.d(c, "klass.containingDeclaration");
n.m.t.a.p.g.e name = dVar.getName();
n.m.t.a.p.g.e eVar = n.m.t.a.p.g.g.a;
if (name == null || name.f14564j) {
name = n.m.t.a.p.g.g.c;
}
if (name != null) {
String d2 = name.d();
n.i.b.h.d(d2, "safeIdentifier(klass.name).identifier");
if (c instanceof n.m.t.a.p.c.w) {
n.m.t.a.p.g.c e2 = ((n.m.t.a.p.c.w) c).e();
if (e2.d()) {
return d2;
}
StringBuilder sb = new StringBuilder();
String b2 = e2.b();
n.i.b.h.d(b2, "fqName.asString()");
sb.append(n.o.a.v(b2, '.', '/', false, 4));
sb.append('/');
sb.append(d2);
return sb.toString();
}
n.m.t.a.p.c.d dVar2 = c instanceof n.m.t.a.p.c.d ? (n.m.t.a.p.c.d) c : null;
if (dVar2 != null) {
String d3 = qVar.d(dVar2);
if (d3 == null) {
d3 = X(dVar2, qVar);
}
return d3 + '$' + d2;
}
throw new IllegalArgumentException("Unexpected container: " + c + " for " + dVar);
}
n.m.t.a.p.g.g.a(0);
throw null;
}
return b;
}
public static j X0(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar, int i2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof x) {
return ((x) gVar).I0().get(i2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static boolean X1(n.m.t.a.p.m.b1.c cVar, l lVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(lVar, "receiver");
if (lVar instanceof n0) {
if (kVar == null ? true : kVar instanceof m0) {
return n.m.t.a.p.m.e1.a.Z0((n0) lVar, (m0) kVar, null);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + lVar + ", " + n.i.b.k.a(lVar.getClass())).toString());
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + lVar + ", " + n.i.b.k.a(lVar.getClass())).toString());
}
public static boolean X2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
if (hVar instanceof n.m.t.a.p.m.e) {
return true;
}
return (hVar instanceof n.m.t.a.p.m.l) && (((n.m.t.a.p.m.l) hVar).f14739j instanceof n.m.t.a.p.m.e);
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final void X3(n.m.t.a.p.d.a.c cVar, n.m.t.a.p.d.a.b bVar, n.m.t.a.p.c.w wVar, n.m.t.a.p.g.e eVar) {
n.m.t.a.p.d.a.a location;
Position position;
n.i.b.h.e(cVar, "<this>");
n.i.b.h.e(bVar, "from");
n.i.b.h.e(wVar, "scopeOwner");
n.i.b.h.e(eVar, "name");
String b = wVar.e().b();
n.i.b.h.d(b, "scopeOwner.fqName.asString()");
String c = eVar.c();
n.i.b.h.d(c, "name.asString()");
n.i.b.h.e(cVar, "<this>");
n.i.b.h.e(bVar, "from");
n.i.b.h.e(b, "packageFqName");
n.i.b.h.e(c, "name");
if (cVar == c.a.a || (location = bVar.getLocation()) == null) {
return;
}
if (cVar.a()) {
position = location.getPosition();
} else {
Objects.requireNonNull(Position.Companion);
position = Position.f13558i;
}
cVar.b(location.a(), position, b, ScopeKind.PACKAGE, c);
}
public static final <K, V> Map<K, V> X4(Map<? extends K, ? extends V> map) {
n.i.b.h.e(map, "<this>");
Map.Entry<? extends K, ? extends V> next = map.entrySet().iterator().next();
Map<K, V> singletonMap = Collections.singletonMap(next.getKey(), next.getValue());
n.i.b.h.d(singletonMap, "with(entries.iterator().…ingletonMap(key, value) }");
return singletonMap;
}
public static final n.m.t.a.p.e.a.o Y(n.m.t.a.p.e.a.w.d dVar, n.m.t.a.p.c.t0.f fVar) {
EnumMap enumMap;
boolean z;
EnumMap<AnnotationQualifierApplicabilityType, n.m.t.a.p.e.a.j> enumMap2;
n.m.t.a.p.e.a.j jVar;
AnnotationTypeQualifierResolver.a aVar;
n.m.t.a.p.c.t0.c cVar;
boolean z2;
List<AnnotationQualifierApplicabilityType> list;
n.m.t.a.p.e.a.j jVar2;
ReportLevel b;
n.i.b.h.e(dVar, "<this>");
n.i.b.h.e(fVar, "additionalAnnotations");
if (dVar.a.f14461v.c) {
return dVar.a();
}
ArrayList arrayList = new ArrayList();
Iterator<n.m.t.a.p.c.t0.c> it = fVar.iterator();
while (true) {
enumMap = null;
r2 = null;
r2 = null;
n.m.t.a.p.e.a.j jVar3 = null;
enumMap = null;
z = false;
if (!it.hasNext()) {
break;
}
n.m.t.a.p.c.t0.c next = it.next();
AnnotationTypeQualifierResolver annotationTypeQualifierResolver = dVar.a.f14456q;
Objects.requireNonNull(annotationTypeQualifierResolver);
n.i.b.h.e(next, "annotationDescriptor");
if (!annotationTypeQualifierResolver.a.c && (jVar2 = n.m.t.a.p.e.a.a.f14404g.get(next.e())) != null) {
n.m.t.a.p.g.c e2 = next.e();
if (e2 != null && n.m.t.a.p.e.a.a.f14403f.containsKey(e2)) {
b = annotationTypeQualifierResolver.a.b.invoke(e2);
} else {
b = annotationTypeQualifierResolver.b(next);
}
if (!(b != ReportLevel.IGNORE)) {
b = null;
}
if (b != null) {
n.m.t.a.p.e.a.z.g a2 = n.m.t.a.p.e.a.z.g.a(jVar2.a, null, b.isWarning(), 1);
Collection<AnnotationQualifierApplicabilityType> collection = jVar2.b;
boolean z3 = jVar2.c;
boolean z4 = jVar2.f14409d;
n.i.b.h.e(a2, "nullabilityQualifier");
n.i.b.h.e(collection, "qualifierApplicabilityTypes");
jVar = new n.m.t.a.p.e.a.j(a2, collection, z3, z4);
if (jVar != null) {
n.i.b.h.e(next, "annotationDescriptor");
if (!annotationTypeQualifierResolver.a.a.f14415e) {
n.m.t.a.p.c.d d2 = DescriptorUtilsKt.d(next);
d2 = (d2 == null || !d2.getAnnotations().e0(n.m.t.a.p.e.a.a.c)) ? null : null;
if (d2 != null) {
n.m.t.a.p.c.d d3 = DescriptorUtilsKt.d(next);
n.i.b.h.c(d3);
n.m.t.a.p.c.t0.c i2 = d3.getAnnotations().i(n.m.t.a.p.e.a.a.c);
n.i.b.h.c(i2);
Map<n.m.t.a.p.g.e, n.m.t.a.p.j.q.g<?>> a3 = i2.a();
ArrayList arrayList2 = new ArrayList();
for (Map.Entry<n.m.t.a.p.g.e, n.m.t.a.p.j.q.g<?>> entry : a3.entrySet()) {
n.m.t.a.p.j.q.g<?> value = entry.getValue();
if (n.i.b.h.a(entry.getKey(), n.m.t.a.p.e.a.r.b)) {
list = annotationTypeQualifierResolver.a(value, new n.i.a.p<n.m.t.a.p.j.q.i, AnnotationQualifierApplicabilityType, Boolean>() {
@Override
public final Boolean invoke(n.m.t.a.p.j.q.i iVar, AnnotationQualifierApplicabilityType annotationQualifierApplicabilityType) {
n.i.b.h.e(iVar, "$this$mapConstantToQualifierApplicabilityTypes");
n.i.b.h.e(annotationQualifierApplicabilityType, "it");
return Boolean.valueOf(n.i.b.h.a(iVar.c.d(), annotationQualifierApplicabilityType.getJavaTarget()));
}
});
} else {
list = EmptyList.INSTANCE;
}
n.f.g.b(arrayList2, list);
}
Iterator it2 = arrayList2.iterator();
int i3 = 0;
while (it2.hasNext()) {
i3 |= 1 << ((AnnotationQualifierApplicabilityType) it2.next()).ordinal();
}
Iterator<n.m.t.a.p.c.t0.c> it3 = d2.getAnnotations().iterator();
while (true) {
if (!it3.hasNext()) {
cVar = null;
break;
}
cVar = it3.next();
if (annotationTypeQualifierResolver.d(cVar) != null) {
z2 = true;
continue;
} else {
z2 = false;
continue;
}
if (z2) {
break;
}
}
n.m.t.a.p.c.t0.c cVar2 = cVar;
if (cVar2 != null) {
aVar = new AnnotationTypeQualifierResolver.a(cVar2, i3);
if (aVar != null) {
n.m.t.a.p.c.t0.c cVar3 = aVar.a;
List<AnnotationQualifierApplicabilityType> a4 = aVar.a();
ReportLevel c = annotationTypeQualifierResolver.c(next);
if (c == null) {
c = annotationTypeQualifierResolver.b(cVar3);
}
if (!c.isIgnore()) {
n.m.t.a.p.e.a.z.g b2 = dVar.a.f14457r.b(cVar3, dVar.a.f14459t.c(), false);
n.m.t.a.p.e.a.z.g a5 = b2 == null ? null : n.m.t.a.p.e.a.z.g.a(b2, null, c.isWarning(), 1);
if (a5 != null) {
jVar3 = new n.m.t.a.p.e.a.j(a5, a4, false, false, 12);
}
}
}
}
}
}
aVar = null;
if (aVar != null) {
}
} else {
jVar3 = jVar;
}
if (jVar3 == null) {
arrayList.add(jVar3);
}
}
}
jVar = null;
if (jVar != null) {
}
if (jVar3 == null) {
}
}
if (arrayList.isEmpty()) {
return dVar.a();
}
n.m.t.a.p.e.a.o a6 = dVar.a();
if (a6 != null && (enumMap2 = a6.a) != null) {
enumMap = new EnumMap((EnumMap) enumMap2);
}
if (enumMap == null) {
enumMap = new EnumMap(AnnotationQualifierApplicabilityType.class);
}
Iterator it4 = arrayList.iterator();
while (it4.hasNext()) {
n.m.t.a.p.e.a.j jVar4 = (n.m.t.a.p.e.a.j) it4.next();
for (AnnotationQualifierApplicabilityType annotationQualifierApplicabilityType : jVar4.b) {
enumMap.put((EnumMap) annotationQualifierApplicabilityType, (AnnotationQualifierApplicabilityType) jVar4);
z = true;
}
}
return !z ? dVar.a() : new n.m.t.a.p.e.a.o(enumMap);
}
public static j Y0(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar, int i2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (i2 >= 0 && i2 < cVar.h(hVar)) {
return cVar.X(hVar, i2);
}
return null;
}
public static boolean Y1(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar, n.m.t.a.p.m.d1.h hVar2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "a");
n.i.b.h.e(hVar2, "b");
if (hVar instanceof c0) {
if (hVar2 instanceof c0) {
return ((c0) hVar).I0() == ((c0) hVar2).I0();
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar2, ", ");
Q.append(n.i.b.k.a(hVar2.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
StringBuilder Q2 = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q2.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q2.toString().toString());
}
public static boolean Y2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
if (hVar instanceof n.m.t.a.p.m.i0) {
return true;
}
return (hVar instanceof n.m.t.a.p.m.l) && (((n.m.t.a.p.m.l) hVar).f14739j instanceof n.m.t.a.p.m.i0);
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final String Y3(n.m.t.a.p.g.e eVar) {
boolean z;
n.i.b.h.e(eVar, "<this>");
boolean z2 = false;
if (!eVar.f14564j) {
String c = eVar.c();
n.i.b.h.d(c, "asString()");
if (!n.m.t.a.p.i.e.a.contains(c)) {
int i2 = 0;
while (true) {
if (i2 >= c.length()) {
z = false;
break;
}
char charAt = c.charAt(i2);
if ((Character.isLetterOrDigit(charAt) || charAt == '_') ? false : true) {
z = true;
break;
}
i2++;
}
}
z2 = true;
}
if (!z2) {
String c2 = eVar.c();
n.i.b.h.d(c2, "asString()");
return c2;
}
String c3 = eVar.c();
n.i.b.h.d(c3, "asString()");
return n.i.b.h.j(String.valueOf('`') + c3, "`");
}
public static Calendar Y4(Calendar calendar) {
calendar.set(11, 0);
calendar.set(12, 0);
calendar.set(13, 0);
calendar.set(14, 0);
return calendar;
}
public static final <T> boolean Z(T[] tArr, T t2) {
n.i.b.h.e(tArr, "<this>");
return e2(tArr, t2) >= 0;
}
public static final int Z0(n.m.t.a.o.c<?> cVar) {
n.i.b.h.e(cVar, "$this$arity");
return cVar.a().size();
}
public static void Z1(char c) {
String hexString;
throw new IllegalArgumentException("Illegal character: " + c + " (0x" + ("0000".substring(0, 4 - hexString.length()) + Integer.toHexString(c)) + ')');
}
public static final boolean Z2(Activity activity) {
n.i.b.h.e(activity, "$this$isTransparent");
TypedValue typedValue = new TypedValue();
return activity.getTheme().resolveAttribute(16842840, typedValue, true) && typedValue.data != 0;
}
public static final String Z3(List<n.m.t.a.p.g.e> list) {
n.i.b.h.e(list, "pathSegments");
StringBuilder sb = new StringBuilder();
for (n.m.t.a.p.g.e eVar : list) {
if (sb.length() > 0) {
sb.append(".");
}
sb.append(Y3(eVar));
}
String sb2 = sb.toString();
n.i.b.h.d(sb2, "StringBuilder().apply(builderAction).toString()");
return sb2;
}
public static void Z4(View view, CharSequence charSequence) {
if (view == null || charSequence == null) {
return;
}
view.announceForAccessibility(charSequence);
}
public static void a(int i2) {
Object[] objArr = new Object[3];
objArr[0] = "initializer";
objArr[1] = "kotlin/reflect/jvm/internal/ReflectProperties";
if (i2 == 1 || i2 == 2) {
objArr[2] = "lazySoft";
} else {
objArr[2] = "lazy";
}
throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", objArr));
}
public static final <T> Collection<T> a0(Iterable<? extends T> iterable, Iterable<? extends T> iterable2) {
n.i.b.h.e(iterable, "<this>");
n.i.b.h.e(iterable2, "source");
if (iterable instanceof Set) {
return (Collection) iterable;
}
if (!(iterable instanceof Collection)) {
return n.f.j.a ? n.f.g.Z(iterable) : n.f.g.b0(iterable);
} else if (((Collection) iterable2).size() < 2) {
return (Collection) iterable;
} else {
Collection<T> collection = (Collection) iterable;
return n.f.j.a && collection.size() > 2 && (collection instanceof ArrayList) ? n.f.g.Z(iterable) : collection;
}
}
public static final Object a1(KPropertyImpl.a<?, ?> aVar) {
n.i.b.h.e(aVar, "$this$boundReceiver");
KPropertyImpl<?> r2 = aVar.r();
return Q(r2.f13484r, r2.n());
}
public static int a2(int i2, int i3) {
if (i2 > -12 || i3 > -65) {
return -1;
}
return i2 ^ (i3 << 8);
}
public static final boolean a3(x xVar) {
n.m.t.a.p.c.f d2 = xVar.J0().d();
n0 n0Var = d2 instanceof n0 ? (n0) d2 : null;
if (n0Var == null) {
return false;
}
return d4(n.m.t.a.p.m.e1.a.O0(n0Var));
}
public static final c0 a4(c0 c0Var, List<? extends p0> list, n.m.t.a.p.c.t0.f fVar) {
n.i.b.h.e(c0Var, "<this>");
n.i.b.h.e(list, "newArguments");
n.i.b.h.e(fVar, "newAnnotations");
if (list.isEmpty() && fVar == c0Var.getAnnotations()) {
return c0Var;
}
if (list.isEmpty()) {
return c0Var.P0(fVar);
}
return KotlinTypeFactory.g(fVar, c0Var.J0(), list, c0Var.K0(), null, 16);
}
public static final Class<?> a5(ClassLoader classLoader, String str) {
n.i.b.h.e(classLoader, "<this>");
n.i.b.h.e(str, "fqName");
try {
return Class.forName(str, false, classLoader);
} catch (ClassNotFoundException unused) {
return null;
}
}
public static void b(int i2) {
Object[] objArr = new Object[3];
if (i2 == 1 || i2 == 2) {
objArr[0] = "companionObject";
} else if (i2 != 3) {
objArr[0] = "propertyDescriptor";
} else {
objArr[0] = "memberDescriptor";
}
objArr[1] = "kotlin/reflect/jvm/internal/impl/load/java/DescriptorsJvmAbiUtil";
if (i2 == 1) {
objArr[2] = "isClassCompanionObjectWithBackingFieldsInOuter";
} else if (i2 == 2) {
objArr[2] = "isMappedIntrinsicCompanionObject";
} else if (i2 != 3) {
objArr[2] = "isPropertyWithBackingFieldInOuterClass";
} else {
objArr[2] = "hasJvmFieldAnnotation";
}
throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", objArr));
}
public static final TypeVariance b0(Variance variance) {
n.i.b.h.e(variance, "<this>");
int ordinal = variance.ordinal();
if (ordinal != 0) {
if (ordinal != 1) {
if (ordinal == 2) {
return TypeVariance.OUT;
}
throw new NoWhenBranchMatchedException();
}
return TypeVariance.IN;
}
return TypeVariance.INV;
}
public static n.m.t.a.p.g.d b1(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
Objects.requireNonNull(d2, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
return DescriptorUtilsKt.h((n.m.t.a.p.c.d) d2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static int b2(int i2, int i3, int i4) {
if (i2 > -12 || i3 > -65 || i4 > -65) {
return -1;
}
return (i2 ^ (i3 << 8)) ^ (i4 << 16);
}
public static boolean b3(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
return d2 != null && n.m.t.a.p.b.f.O(d2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static x b4(x xVar, List list, n.m.t.a.p.c.t0.f fVar, List list2, int i2) {
if ((i2 & 1) != 0) {
list = xVar.I0();
}
if ((i2 & 2) != 0) {
fVar = xVar.getAnnotations();
}
List list3 = (i2 & 4) != 0 ? list : null;
n.i.b.h.e(xVar, "<this>");
n.i.b.h.e(list, "newArguments");
n.i.b.h.e(fVar, "newAnnotations");
n.i.b.h.e(list3, "newArgumentsForUpperBound");
if ((list.isEmpty() || list == xVar.I0()) && fVar == xVar.getAnnotations()) {
return xVar;
}
z0 M0 = xVar.M0();
if (M0 instanceof n.m.t.a.p.m.t) {
n.m.t.a.p.m.t tVar = (n.m.t.a.p.m.t) M0;
return KotlinTypeFactory.c(a4(tVar.f14752j, list, fVar), a4(tVar.f14753k, list3, fVar));
} else if (M0 instanceof c0) {
return a4((c0) M0, list, fVar);
} else {
throw new NoWhenBranchMatchedException();
}
}
public static final ProtoBuf$Type b5(ProtoBuf$ValueParameter protoBuf$ValueParameter, n.m.t.a.p.f.c.e eVar) {
n.i.b.h.e(protoBuf$ValueParameter, "<this>");
n.i.b.h.e(eVar, "typeTable");
if (protoBuf$ValueParameter.hasType()) {
ProtoBuf$Type type = protoBuf$ValueParameter.getType();
n.i.b.h.d(type, "type");
return type;
} else if (protoBuf$ValueParameter.hasTypeId()) {
return eVar.a(protoBuf$ValueParameter.getTypeId());
} else {
throw new IllegalStateException("No type in ProtoBuf.ValueParameter".toString());
}
}
public static void c(int i2) {
String str = i2 != 18 ? "Argument for @NotNull parameter '%s' of %s.%s must not be null" : "@NotNull method %s.%s must not return null";
Object[] objArr = new Object[i2 != 18 ? 3 : 2];
switch (i2) {
case 1:
case 7:
case 13:
objArr[0] = "membersFromSupertypes";
break;
case 2:
case 8:
case 14:
objArr[0] = "membersFromCurrent";
break;
case 3:
case 9:
case 15:
objArr[0] = "classDescriptor";
break;
case 4:
case 10:
case 16:
objArr[0] = "errorReporter";
break;
case 5:
case 11:
case 17:
objArr[0] = "overridingUtil";
break;
case 6:
case 12:
case 19:
default:
objArr[0] = "name";
break;
case 18:
objArr[0] = "kotlin/reflect/jvm/internal/impl/load/java/components/DescriptorResolverUtils";
break;
case 20:
objArr[0] = "annotationClass";
break;
}
if (i2 != 18) {
objArr[1] = "kotlin/reflect/jvm/internal/impl/load/java/components/DescriptorResolverUtils";
} else {
objArr[1] = "resolveOverrides";
}
switch (i2) {
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
objArr[2] = "resolveOverridesForStaticMembers";
break;
case 12:
case 13:
case 14:
case 15:
case 16:
case 17:
objArr[2] = "resolveOverrides";
break;
case 18:
break;
case 19:
case 20:
objArr[2] = "getAnnotationParameterByName";
break;
default:
objArr[2] = "resolveOverridesForNonStaticMembers";
break;
}
String format = String.format(str, objArr);
if (i2 == 18) {
throw new IllegalStateException(format);
}
}
public static final <T> T[] c0(T[] tArr, int i2) {
n.i.b.h.e(tArr, "<this>");
T[] tArr2 = (T[]) Arrays.copyOf(tArr, i2);
n.i.b.h.d(tArr2, "copyOf(this, newSize)");
return tArr2;
}
public static final n.m.t.a.p.g.b c1(n.m.t.a.p.f.c.c cVar, int i2) {
n.i.b.h.e(cVar, "<this>");
n.m.t.a.p.g.b f2 = n.m.t.a.p.g.b.f(cVar.a(i2), cVar.b(i2));
n.i.b.h.d(f2, "fromString(getQualifiedC… isLocalClassName(index))");
return f2;
}
public static int c2(byte[] bArr, int i2, int i3) {
byte b = bArr[i2 - 1];
int i4 = i3 - i2;
if (i4 == 0) {
if (b > -12) {
return -1;
}
return b;
} else if (i4 != 1) {
if (i4 == 2) {
return b2(b, bArr[i2], bArr[i2 + 1]);
}
throw new AssertionError();
} else {
return a2(b, bArr[i2]);
}
}
public static boolean c3(byte[] bArr, int i2, int i3) {
return P3(bArr, i2, i3) == 0;
}
public static c0 c4(c0 c0Var, List list, n.m.t.a.p.c.t0.f fVar, int i2) {
if ((i2 & 1) != 0) {
list = c0Var.I0();
}
if ((i2 & 2) != 0) {
fVar = c0Var.getAnnotations();
}
return a4(c0Var, list, fVar);
}
public static n.m.t.a.p.m.d1.a c5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.b bVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(bVar, "receiver");
if (bVar instanceof n.m.t.a.p.m.b1.g) {
return ((n.m.t.a.p.m.b1.g) bVar).f14714k;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + bVar + ", " + n.i.b.k.a(bVar.getClass())).toString());
}
public static void d(int i2) {
String str = (i2 == 12 || i2 == 23 || i2 == 25) ? "@NotNull method %s.%s must not return null" : "Argument for @NotNull parameter '%s' of %s.%s must not be null";
Object[] objArr = new Object[(i2 == 12 || i2 == 23 || i2 == 25) ? 2 : 3];
switch (i2) {
case 1:
case 4:
case 8:
case 14:
case 16:
case 18:
case 30:
objArr[0] = "annotations";
break;
case 2:
case 5:
case 9:
objArr[0] = "parameterAnnotations";
break;
case 3:
case 7:
case 13:
case 15:
case 17:
default:
objArr[0] = "propertyDescriptor";
break;
case 6:
case 11:
case 19:
objArr[0] = "sourceElement";
break;
case 10:
objArr[0] = "visibility";
break;
case 12:
case 23:
case 25:
objArr[0] = "kotlin/reflect/jvm/internal/impl/resolve/DescriptorFactory";
break;
case 20:
objArr[0] = "containingClass";
break;
case 21:
objArr[0] = "source";
break;
case 22:
case 24:
objArr[0] = "enumClass";
break;
case 26:
case 27:
case 28:
objArr[0] = "descriptor";
break;
case 29:
objArr[0] = "owner";
break;
}
if (i2 == 12) {
objArr[1] = "createSetter";
} else if (i2 == 23) {
objArr[1] = "createEnumValuesMethod";
} else if (i2 != 25) {
objArr[1] = "kotlin/reflect/jvm/internal/impl/resolve/DescriptorFactory";
} else {
objArr[1] = "createEnumValueOfMethod";
}
switch (i2) {
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
objArr[2] = "createSetter";
break;
case 12:
case 23:
case 25:
break;
case 13:
case 14:
objArr[2] = "createDefaultGetter";
break;
case 15:
case 16:
case 17:
case 18:
case 19:
objArr[2] = "createGetter";
break;
case 20:
case 21:
objArr[2] = "createPrimaryConstructorForObject";
break;
case 22:
objArr[2] = "createEnumValuesMethod";
break;
case 24:
objArr[2] = "createEnumValueOfMethod";
break;
case 26:
objArr[2] = "isEnumValuesMethod";
break;
case 27:
objArr[2] = "isEnumValueOfMethod";
break;
case 28:
objArr[2] = "isEnumSpecialMethod";
break;
case 29:
case 30:
objArr[2] = "createExtensionReceiverParameterForCallable";
break;
default:
objArr[2] = "createDefaultSetter";
break;
}
String format = String.format(str, objArr);
if (i2 != 12 && i2 != 23 && i2 != 25) {
throw new IllegalArgumentException(format);
}
throw new IllegalStateException(format);
}
public static final List<n.m.t.a.p.c.p0> d0(Collection<n.m.t.a.p.e.a.v.g> collection, Collection<? extends n.m.t.a.p.c.p0> collection2, n.m.t.a.p.c.a aVar) {
n.i.b.h.e(collection, "newValueParametersTypes");
n.i.b.h.e(collection2, "oldValueParameters");
n.i.b.h.e(aVar, "newOwner");
collection.size();
collection2.size();
List l0 = n.f.g.l0(collection, collection2);
ArrayList arrayList = new ArrayList(S(l0, 10));
Iterator it = ((ArrayList) l0).iterator();
while (it.hasNext()) {
Pair pair = (Pair) it.next();
n.m.t.a.p.e.a.v.g gVar = (n.m.t.a.p.e.a.v.g) pair.component1();
n.m.t.a.p.c.p0 p0Var = (n.m.t.a.p.c.p0) pair.component2();
int index = p0Var.getIndex();
n.m.t.a.p.c.t0.f annotations = p0Var.getAnnotations();
n.m.t.a.p.g.e name = p0Var.getName();
n.i.b.h.d(name, "oldParameter.name");
x xVar = gVar.a;
boolean z = gVar.b;
boolean c0 = p0Var.c0();
boolean Y = p0Var.Y();
x g2 = p0Var.m0() != null ? DescriptorUtilsKt.j(aVar).n().g(gVar.a) : null;
i0 i2 = p0Var.i();
n.i.b.h.d(i2, "oldParameter.source");
arrayList.add(new ValueParameterDescriptorImpl(aVar, null, index, annotations, name, xVar, z, c0, Y, g2, i2));
}
return arrayList;
}
public static Collection d1(n.m.t.a.p.j.v.h hVar, n.m.t.a.p.j.v.d dVar, n.i.a.l lVar, int i2, Object obj) {
n.i.a.l<n.m.t.a.p.g.e, Boolean> lVar2;
if ((i2 & 1) != 0) {
dVar = n.m.t.a.p.j.v.d.f14641o;
}
if ((i2 & 2) != 0) {
Objects.requireNonNull(MemberScope.a);
lVar2 = MemberScope.Companion.b;
} else {
lVar2 = null;
}
return hVar.g(dVar, lVar2);
}
public static final int d2(int[] iArr, int i2) {
n.i.b.h.e(iArr, "<this>");
int length = iArr.length;
for (int i3 = 0; i3 < length; i3++) {
if (i2 == iArr[i3]) {
return i3;
}
}
return -1;
}
public static final boolean d3(String str) {
n.i.b.h.e(str, "$this$isVimeoId");
return Pattern.matches("^[0-9]+$", str);
}
public static final boolean d4(x xVar) {
boolean z;
n.i.b.h.e(xVar, "<this>");
n.m.t.a.p.c.f d2 = xVar.J0().d();
if (d2 != null) {
n.i.b.h.e(d2, "<this>");
if (n.m.t.a.p.j.e.b(d2) && !n.i.b.h.a(DescriptorUtilsKt.g((n.m.t.a.p.c.d) d2), n.m.t.a.p.b.h.f14173h)) {
z = true;
return !z || a3(xVar);
}
}
z = false;
if (z) {
}
}
public static k d5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.h a2 = cVar.a(gVar);
if (a2 == null) {
a2 = cVar.Y(gVar);
}
return cVar.b(a2);
}
public static void e(int i2) {
String str = i2 != 4 ? "Argument for @NotNull parameter '%s' of %s.%s must not be null" : "@NotNull method %s.%s must not return null";
Object[] objArr = new Object[i2 != 4 ? 3 : 2];
switch (i2) {
case 1:
case 6:
objArr[0] = "originalSubstitution";
break;
case 2:
case 7:
objArr[0] = "newContainingDeclaration";
break;
case 3:
case 8:
objArr[0] = "result";
break;
case 4:
objArr[0] = "kotlin/reflect/jvm/internal/impl/types/DescriptorSubstitutor";
break;
case 5:
default:
objArr[0] = "typeParameters";
break;
}
if (i2 != 4) {
objArr[1] = "kotlin/reflect/jvm/internal/impl/types/DescriptorSubstitutor";
} else {
objArr[1] = "substituteTypeParameters";
}
if (i2 != 4) {
objArr[2] = "substituteTypeParameters";
}
String format = String.format(str, objArr);
if (i2 == 4) {
throw new IllegalStateException(format);
}
}
public static final n.m.t.a.p.e.a.w.d e0(final n.m.t.a.p.e.a.w.d dVar, final n.m.t.a.p.c.t0.f fVar) {
n.i.b.h.e(dVar, "<this>");
n.i.b.h.e(fVar, "additionalAnnotations");
return fVar.isEmpty() ? dVar : new n.m.t.a.p.e.a.w.d(dVar.a, dVar.b, m3(LazyThreadSafetyMode.NONE, new n.i.a.a<n.m.t.a.p.e.a.o>() {
{
super(0);
}
@Override
public final n.m.t.a.p.e.a.o invoke() {
return d.Y(n.m.t.a.p.e.a.w.d.this, fVar);
}
}));
}
public static final x e1(x xVar) {
n.i.b.h.e(xVar, "<this>");
if (xVar instanceof x0) {
return ((x0) xVar).G();
}
return null;
}
public static final <T> int e2(T[] tArr, T t2) {
n.i.b.h.e(tArr, "<this>");
int i2 = 0;
if (t2 == null) {
int length = tArr.length;
while (i2 < length) {
if (tArr[i2] == null) {
return i2;
}
i2++;
}
return -1;
}
int length2 = tArr.length;
while (i2 < length2) {
if (n.i.b.h.a(t2, tArr[i2])) {
return i2;
}
i2++;
}
return -1;
}
public static boolean e3(byte[] bArr, int i2, int i3) {
int min = Math.min(i3, bArr.length);
for (int max = Math.max(i2, 0); max < min; max++) {
if (bArr[max] == 1) {
return false;
}
}
return true;
}
public static final <E> void e4(E[] eArr, int i2) {
n.i.b.h.e(eArr, "<this>");
eArr[i2] = null;
}
public static k e5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
return ((c0) hVar).J0();
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final n.m.t.a.p.g.c f(n.m.t.a.p.g.c cVar, String str) {
n.m.t.a.p.g.c c = cVar.c(n.m.t.a.p.g.e.j(str));
n.i.b.h.d(c, "child(Name.identifier(name))");
return c;
}
public static n<?> f0(String str, String str2) {
final i.j.b.w.c cVar = new i.j.b.w.c(str, str2);
n.b a2 = n.a(i.j.b.w.f.class);
a2.f12603d = 1;
a2.c(new i.j.b.j.p() {
@Override
public final Object a(o oVar) {
return cVar;
}
});
return a2.b();
}
public static final x f1(CallableMemberDescriptor callableMemberDescriptor) {
n.m.t.a.p.c.g0 n0 = callableMemberDescriptor.n0();
n.m.t.a.p.c.g0 g0 = callableMemberDescriptor.g0();
if (n0 != null) {
return n0.b();
}
if (g0 == null) {
return null;
}
if (callableMemberDescriptor instanceof n.m.t.a.p.c.h) {
return g0.b();
}
n.m.t.a.p.c.i c = callableMemberDescriptor.c();
if (!(c instanceof n.m.t.a.p.c.d)) {
c = null;
}
n.m.t.a.p.c.d dVar = (n.m.t.a.p.c.d) c;
if (dVar != null) {
return dVar.r();
}
return null;
}
public static final z0 f2(z0 z0Var, x xVar) {
n.i.b.h.e(z0Var, "<this>");
n.i.b.h.e(xVar, AppMeasurementSdk.ConditionalUserProperty.ORIGIN);
return l5(z0Var, e1(xVar));
}
public static boolean f3(byte[][] bArr, int i2, int i3, int i4) {
int min = Math.min(i4, bArr.length);
for (int max = Math.max(i3, 0); max < min; max++) {
if (bArr[max][i2] == 1) {
return false;
}
}
return true;
}
public static final <E> void f4(E[] eArr, int i2, int i3) {
n.i.b.h.e(eArr, "<this>");
while (i2 < i3) {
e4(eArr, i2);
i2++;
}
}
public static final n.l.c f5(int i2, int i3) {
if (i3 <= Integer.MIN_VALUE) {
n.l.c cVar = n.l.c.f14130l;
return n.l.c.f14131m;
}
return new n.l.c(i2, i3 - 1);
}
public static final n.m.t.a.p.g.c g(n.m.t.a.p.g.d dVar, String str) {
n.m.t.a.p.g.c i2 = dVar.c(n.m.t.a.p.g.e.j(str)).i();
n.i.b.h.d(i2, "child(Name.identifier(name)).toSafe()");
return i2;
}
public static final <T> T g0(final Class<T> cls, final Map<String, ? extends Object> map, List<Method> list) {
n.i.b.h.e(cls, "annotationClass");
n.i.b.h.e(map, "values");
n.i.b.h.e(list, "methods");
AnnotationConstructorCallerKt$createAnnotationInstance$2 annotationConstructorCallerKt$createAnnotationInstance$2 = new AnnotationConstructorCallerKt$createAnnotationInstance$2(cls, list, map);
n.c n3 = n3(new n.i.a.a<Integer>() {
{
super(0);
}
public final int invoke2() {
int hashCode;
int i2 = 0;
for (Map.Entry entry : map.entrySet()) {
String str = (String) entry.getKey();
Object value = entry.getValue();
if (value instanceof boolean[]) {
hashCode = Arrays.hashCode((boolean[]) value);
} else if (value instanceof char[]) {
hashCode = Arrays.hashCode((char[]) value);
} else if (value instanceof byte[]) {
hashCode = Arrays.hashCode((byte[]) value);
} else if (value instanceof short[]) {
hashCode = Arrays.hashCode((short[]) value);
} else if (value instanceof int[]) {
hashCode = Arrays.hashCode((int[]) value);
} else if (value instanceof float[]) {
hashCode = Arrays.hashCode((float[]) value);
} else if (value instanceof long[]) {
hashCode = Arrays.hashCode((long[]) value);
} else if (value instanceof double[]) {
hashCode = Arrays.hashCode((double[]) value);
} else {
hashCode = value instanceof Object[] ? Arrays.hashCode((Object[]) value) : value.hashCode();
}
i2 += hashCode ^ (str.hashCode() * 127);
}
return i2;
}
@Override
public Integer invoke() {
return Integer.valueOf(invoke2());
}
});
T t2 = (T) Proxy.newProxyInstance(cls.getClassLoader(), new Class[]{cls}, new n.m.t.a.o.a(cls, n3(new n.i.a.a<String>() {
{
super(0);
}
@Override
public final java.lang.String invoke() {
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$toString$2.invoke():java.lang.String");
}
}), null, n3, null, annotationConstructorCallerKt$createAnnotationInstance$2, map));
Objects.requireNonNull(t2, "null cannot be cast to non-null type T");
return t2;
}
public static final <M extends GeneratedMessageLite.ExtendableMessage<M>, T> T g1(GeneratedMessageLite.ExtendableMessage<M> extendableMessage, GeneratedMessageLite.e<M, T> eVar) {
n.i.b.h.e(extendableMessage, "<this>");
n.i.b.h.e(eVar, "extension");
if (extendableMessage.hasExtension(eVar)) {
return (T) extendableMessage.getExtension(eVar);
}
return null;
}
public static boolean g2(int i2, long j2, String str, String str2, i.m.a.w wVar) {
int i3;
MessageSnapshot errorMessageSnapshot;
if (str2 != null && str != null) {
i.m.a.i0.g gVar = ((i.m.a.i0.f) wVar).b;
synchronized (gVar) {
int size = gVar.a.size();
int i4 = 0;
while (true) {
if (i4 >= size) {
i3 = 0;
break;
}
DownloadLaunchRunnable valueAt = gVar.a.valueAt(i4);
if (valueAt != null && valueAt.i() && valueAt.e() != i2 && str.equals(valueAt.f3766j.getTempFilePath())) {
break;
}
i4++;
}
}
if (i3 != 0) {
i.m.a.g0.b bVar = b.a.a;
PathConflictException pathConflictException = new PathConflictException(i3, str, str2);
if (j2 > 2147483647L) {
errorMessageSnapshot = new LargeMessageSnapshot.ErrorMessageSnapshot(i2, j2, pathConflictException);
} else {
errorMessageSnapshot = new SmallMessageSnapshot.ErrorMessageSnapshot(i2, (int) j2, pathConflictException);
}
bVar.a(errorMessageSnapshot);
return true;
}
}
return false;
}
public static boolean g3(char c) {
return c == '\r' || c == '*' || c == '>';
}
public static final n.m.t.a.p.c.t0.f g4(n.m.t.a.p.e.a.w.d dVar, n.m.t.a.p.e.a.y.d dVar2) {
n.i.b.h.e(dVar, "<this>");
n.i.b.h.e(dVar2, "annotationsOwner");
return new LazyJavaAnnotations(dVar, dVar2, false);
}
public static n.m.t.a.p.m.d1.h g5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.e eVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(eVar, "receiver");
if (eVar instanceof n.m.t.a.p.m.t) {
return ((n.m.t.a.p.m.t) eVar).f14753k;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + eVar + ", " + n.i.b.k.a(eVar.getClass())).toString());
}
public static final n.m.t.a.o.c h(final KPropertyImpl.a aVar, final boolean z) {
JvmFunctionSignature.c cVar;
Method method;
n.m.t.a.o.c aVar2;
JvmProtoBuf.JvmMethodSignature setter;
Method l2;
n.m.t.a.o.c cVar2;
KDeclarationContainerImpl kDeclarationContainerImpl = KDeclarationContainerImpl.f13441k;
if (KDeclarationContainerImpl.f13440j.matches(aVar.r().f13483q)) {
return n.m.t.a.o.g.a;
}
final KPropertyImplKt$computeCallerForAccessor$1 kPropertyImplKt$computeCallerForAccessor$1 = new KPropertyImplKt$computeCallerForAccessor$1(aVar);
final KPropertyImplKt$computeCallerForAccessor$2 kPropertyImplKt$computeCallerForAccessor$2 = new KPropertyImplKt$computeCallerForAccessor$2(aVar);
n.i.a.l<Field, n.m.t.a.o.d<? extends Field>> lVar = new n.i.a.l<Field, n.m.t.a.o.d<? extends Field>>() {
{
super(1);
}
@Override
public final n.m.t.a.o.d<Field> invoke(Field field) {
n.i.b.h.e(field, "field");
d0 n2 = KPropertyImpl.a.this.r().n();
n.m.t.a.p.c.i c = n2.c();
n.i.b.h.d(c, "containingDeclaration");
boolean z2 = false;
if (n.m.t.a.p.j.d.p(c)) {
n.m.t.a.p.c.i c2 = c.c();
if ((!n.m.t.a.p.j.d.s(c2, ClassKind.INTERFACE) && !n.m.t.a.p.j.d.m(c2)) || ((n2 instanceof n.m.t.a.p.k.b.w.f) && n.m.t.a.p.f.d.a.g.d(((n.m.t.a.p.k.b.w.f) n2).I))) {
z2 = true;
}
}
return (z2 || !Modifier.isStatic(field.getModifiers())) ? z ? KPropertyImpl.a.this.p() ? new d.e.a(field, i.j.a.e.t.d.a1(KPropertyImpl.a.this)) : new d.e.c(field) : KPropertyImpl.a.this.p() ? new d.f.a(field, kPropertyImplKt$computeCallerForAccessor$2.invoke2(), i.j.a.e.t.d.a1(KPropertyImpl.a.this)) : new d.f.c(field, kPropertyImplKt$computeCallerForAccessor$2.invoke2()) : kPropertyImplKt$computeCallerForAccessor$1.invoke2() ? z ? KPropertyImpl.a.this.p() ? new d.e.b(field) : new d.e.C0229d(field) : KPropertyImpl.a.this.p() ? new d.f.b(field, kPropertyImplKt$computeCallerForAccessor$2.invoke2()) : new d.f.C0231d(field, kPropertyImplKt$computeCallerForAccessor$2.invoke2()) : z ? new d.e.C0230e(field) : new d.f.e(field, kPropertyImplKt$computeCallerForAccessor$2.invoke2());
}
};
n.m.t.a.l lVar2 = n.m.t.a.l.b;
n.m.t.a.c c = n.m.t.a.l.c(aVar.r().n());
if (c instanceof c.C0227c) {
c.C0227c c0227c = (c.C0227c) c;
JvmProtoBuf.JvmPropertySignature jvmPropertySignature = c0227c.f14140d;
if (z) {
if (jvmPropertySignature.hasGetter()) {
setter = jvmPropertySignature.getGetter();
l2 = setter != null ? aVar.r().f13481o.l(c0227c.f14141e.getString(setter.getName()), c0227c.f14141e.getString(setter.getDesc())) : null;
if (l2 != null) {
if (n.m.t.a.p.j.e.d(aVar.r().n()) && n.i.b.h.a(aVar.r().n().getVisibility(), n.m.t.a.p.c.o.f14239d)) {
Class<?> T4 = T4(aVar.r().n().c());
if (T4 != null) {
Method K1 = K1(T4, aVar.r().n());
aVar2 = aVar.p() ? new f.a(K1, a1(aVar)) : new f.b(K1);
} else {
StringBuilder J = i.a.b.a.a.J("Underlying property of inline class ");
J.append(aVar.r());
J.append(" should have a field");
throw new KotlinReflectionInternalError(J.toString());
}
} else {
Field invoke = aVar.r().f13479m.invoke();
if (invoke != null) {
aVar2 = lVar.invoke(invoke);
} else {
StringBuilder J2 = i.a.b.a.a.J("No accessors or field is found for property ");
J2.append(aVar.r());
throw new KotlinReflectionInternalError(J2.toString());
}
}
} else {
if (!Modifier.isStatic(l2.getModifiers())) {
cVar2 = aVar.p() ? new d.g.a(l2, a1(aVar)) : new d.g.C0232d(l2);
} else if (kPropertyImplKt$computeCallerForAccessor$1.invoke2()) {
cVar2 = aVar.p() ? new d.g.b(l2) : new d.g.e(l2);
} else {
cVar2 = aVar.p() ? new d.g.c(l2, a1(aVar)) : new d.g.f(l2);
}
aVar2 = cVar2;
}
}
setter = null;
if (setter != null) {
}
if (l2 != null) {
}
} else {
if (jvmPropertySignature.hasSetter()) {
setter = jvmPropertySignature.getSetter();
if (setter != null) {
}
if (l2 != null) {
}
}
setter = null;
if (setter != null) {
}
if (l2 != null) {
}
}
} else if (c instanceof c.a) {
aVar2 = lVar.invoke(((c.a) c).a);
} else if (c instanceof c.b) {
if (z) {
method = ((c.b) c).a;
} else {
c.b bVar = (c.b) c;
method = bVar.b;
if (method == null) {
StringBuilder J3 = i.a.b.a.a.J("No source found for setter of Java method property: ");
J3.append(bVar.a);
throw new KotlinReflectionInternalError(J3.toString());
}
}
aVar2 = aVar.p() ? new d.g.a(method, a1(aVar)) : new d.g.C0232d(method);
} else if (c instanceof c.d) {
if (z) {
cVar = ((c.d) c).a;
} else {
cVar = ((c.d) c).b;
if (cVar == null) {
StringBuilder J4 = i.a.b.a.a.J("No setter found for property ");
J4.append(aVar.r());
throw new KotlinReflectionInternalError(J4.toString());
}
}
KDeclarationContainerImpl kDeclarationContainerImpl2 = aVar.r().f13481o;
d.b bVar2 = cVar.b;
Method l3 = kDeclarationContainerImpl2.l(bVar2.a, bVar2.b);
if (l3 != null) {
Modifier.isStatic(l3.getModifiers());
return aVar.p() ? new d.g.a(l3, a1(aVar)) : new d.g.C0232d(l3);
}
StringBuilder J5 = i.a.b.a.a.J("No accessor found for property ");
J5.append(aVar.r());
throw new KotlinReflectionInternalError(J5.toString());
} else {
throw new NoWhenBranchMatchedException();
}
return s0(aVar2, aVar.q(), false);
}
public static final p0 h0(final p0 p0Var, n0 n0Var) {
if (n0Var == null || p0Var.a() == Variance.INVARIANT) {
return p0Var;
}
if (n0Var.m() == p0Var.a()) {
if (p0Var.d()) {
n.m.t.a.p.l.l lVar = LockBasedStorageManager.f14014e;
n.i.b.h.d(lVar, "NO_LOCKS");
return new n.m.t.a.p.m.r0(new n.m.t.a.p.m.y(lVar, new n.i.a.a<x>() {
{
super(0);
}
@Override
public final x invoke() {
x b = p0.this.b();
n.i.b.h.d(b, "this@createCapturedIfNeeded.type");
return b;
}
}));
}
return new n.m.t.a.p.m.r0(p0Var.b());
}
n.i.b.h.e(p0Var, "typeProjection");
n.m.t.a.p.j.p.a.c cVar = new n.m.t.a.p.j.p.a.c(p0Var);
Objects.requireNonNull(n.m.t.a.p.c.t0.f.f14255d);
return new n.m.t.a.p.m.r0(new n.m.t.a.p.j.p.a.a(p0Var, cVar, false, f.a.b));
}
public static final <M extends GeneratedMessageLite.ExtendableMessage<M>, T> T h1(GeneratedMessageLite.ExtendableMessage<M> extendableMessage, GeneratedMessageLite.e<M, List<T>> eVar, int i2) {
n.i.b.h.e(extendableMessage, "<this>");
n.i.b.h.e(eVar, "extension");
if (i2 < extendableMessage.getExtensionCount(eVar)) {
return (T) extendableMessage.getExtension(eVar, i2);
}
return null;
}
public static boolean h2(int i2, String str, boolean z, boolean z2) {
MessageSnapshot completedSnapshot;
if (!z && str != null) {
File file = new File(str);
if (file.exists()) {
i.m.a.g0.b bVar = b.a.a;
long length = file.length();
if (length > 2147483647L) {
if (z2) {
completedSnapshot = new LargeMessageSnapshot.CompletedFlowDirectlySnapshot(i2, true, length);
} else {
completedSnapshot = new LargeMessageSnapshot.CompletedSnapshot(i2, true, length);
}
} else if (z2) {
completedSnapshot = new SmallMessageSnapshot.CompletedFlowDirectlySnapshot(i2, true, (int) length);
} else {
completedSnapshot = new SmallMessageSnapshot.CompletedSnapshot(i2, true, (int) length);
}
bVar.a(completedSnapshot);
return true;
}
}
return false;
}
public static final boolean h3(String str) {
n.i.b.h.e(str, "$this$isYouTubeId");
return !d3(str);
}
public static final n.m.t.a.p.c.d h4(n.m.t.a.p.c.v vVar, n.m.t.a.p.g.c cVar, n.m.t.a.p.d.a.b bVar) {
MemberScope y0;
n.m.t.a.p.c.f f2;
n.i.b.h.e(vVar, "<this>");
n.i.b.h.e(cVar, "fqName");
n.i.b.h.e(bVar, "lookupLocation");
if (cVar.d()) {
return null;
}
n.m.t.a.p.g.c e2 = cVar.e();
n.i.b.h.d(e2, "fqName.parent()");
MemberScope p2 = vVar.O(e2).p();
n.m.t.a.p.g.e g2 = cVar.g();
n.i.b.h.d(g2, "fqName.shortName()");
n.m.t.a.p.c.f f3 = p2.f(g2, bVar);
n.m.t.a.p.c.d dVar = f3 instanceof n.m.t.a.p.c.d ? (n.m.t.a.p.c.d) f3 : null;
if (dVar == null) {
n.m.t.a.p.g.c e3 = cVar.e();
n.i.b.h.d(e3, "fqName.parent()");
n.m.t.a.p.c.d h4 = h4(vVar, e3, bVar);
if (h4 == null || (y0 = h4.y0()) == null) {
f2 = null;
} else {
n.m.t.a.p.g.e g3 = cVar.g();
n.i.b.h.d(g3, "fqName.shortName()");
f2 = y0.f(g3, bVar);
}
if (f2 instanceof n.m.t.a.p.c.d) {
return (n.m.t.a.p.c.d) f2;
}
return null;
}
return dVar;
}
public static n.m.t.a.p.m.d1.h h5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.e F = cVar.F(gVar);
if (F == null) {
n.m.t.a.p.m.d1.h a2 = cVar.a(gVar);
n.i.b.h.c(a2);
return a2;
}
return cVar.d(F);
}
public static final String i(Object obj) {
StringBuilder J = i.a.b.a.a.J("ClassicTypeCheckerContext couldn't handle ");
J.append(n.i.b.k.a(obj.getClass()));
J.append(' ');
J.append(obj);
return J.toString();
}
public static i.j.a.e.w.d i0(int i2) {
if (i2 != 0) {
if (i2 != 1) {
return new i.j.a.e.w.k();
}
return new i.j.a.e.w.e();
}
return new i.j.a.e.w.k();
}
public static n.m.t.a.p.g.c i1(n.m.t.a.p.c.t0.c cVar) {
n.i.b.h.e(cVar, "this");
n.m.t.a.p.c.d d2 = DescriptorUtilsKt.d(cVar);
if (d2 == null) {
return null;
}
if (s.j(d2)) {
d2 = null;
}
if (d2 == null) {
return null;
}
return DescriptorUtilsKt.c(d2);
}
public static boolean i2(int i2, FileDownloadModel fileDownloadModel, i.m.a.w wVar, boolean z) {
MessageSnapshot warnMessageSnapshot;
if (((i.m.a.i0.f) wVar).c(fileDownloadModel)) {
i.m.a.g0.b bVar = b.a.a;
long soFar = fileDownloadModel.getSoFar();
long total = fileDownloadModel.getTotal();
if (total > 2147483647L) {
if (z) {
warnMessageSnapshot = new LargeMessageSnapshot.WarnFlowDirectlySnapshot(i2, soFar, total);
} else {
warnMessageSnapshot = new LargeMessageSnapshot.WarnMessageSnapshot(i2, soFar, total);
}
} else if (z) {
warnMessageSnapshot = new SmallMessageSnapshot.WarnFlowDirectlySnapshot(i2, (int) soFar, (int) total);
} else {
warnMessageSnapshot = new SmallMessageSnapshot.WarnMessageSnapshot(i2, (int) soFar, (int) total);
}
bVar.a(warnMessageSnapshot);
return true;
}
return false;
}
public static final <T> Iterator<T> i3(T[] tArr) {
n.i.b.h.e(tArr, "array");
return new n.i.b.a(tArr);
}
public static <D extends CallableMemberDescriptor> Collection<D> i4(n.m.t.a.p.g.e eVar, Collection<D> collection, Collection<D> collection2, n.m.t.a.p.c.d dVar, n.m.t.a.p.k.b.l lVar, OverridingUtil overridingUtil, boolean z) {
if (eVar == null) {
c(12);
throw null;
} else if (collection == null) {
c(13);
throw null;
} else if (collection2 == null) {
c(14);
throw null;
} else if (dVar == null) {
c(15);
throw null;
} else if (lVar == null) {
c(16);
throw null;
} else if (overridingUtil != null) {
LinkedHashSet linkedHashSet = new LinkedHashSet();
overridingUtil.h(eVar, collection, collection2, dVar, new n.m.t.a.p.e.a.u.a(lVar, linkedHashSet, z));
return linkedHashSet;
} else {
c(17);
throw null;
}
}
public static final c0 i5(x xVar) {
n.i.b.h.e(xVar, "<this>");
z0 M0 = xVar.M0();
if (M0 instanceof n.m.t.a.p.m.t) {
return ((n.m.t.a.p.m.t) M0).f14753k;
}
if (M0 instanceof c0) {
return (c0) M0;
}
throw new NoWhenBranchMatchedException();
}
public static final String j(Method method) {
StringBuilder sb = new StringBuilder();
sb.append(method.getName());
Class<?>[] parameterTypes = method.getParameterTypes();
n.i.b.h.d(parameterTypes, "parameterTypes");
sb.append(k3(parameterTypes, "", "(", ")", 0, null, new n.i.a.l<Class<?>, CharSequence>() {
@Override
public final CharSequence invoke(Class<?> cls) {
n.i.b.h.d(cls, "it");
return ReflectClassUtilKt.b(cls);
}
}, 24));
Class<?> returnType = method.getReturnType();
n.i.b.h.d(returnType, "returnType");
sb.append(ReflectClassUtilKt.b(returnType));
return sb.toString();
}
public static final <R, T> n.g.c<n.e> j0(final n.i.a.p<? super R, ? super n.g.c<? super T>, ? extends Object> pVar, final R r2, final n.g.c<? super T> cVar) {
n.i.b.h.e(pVar, "<this>");
n.i.b.h.e(cVar, "completion");
n.i.b.h.e(cVar, "completion");
if (pVar instanceof BaseContinuationImpl) {
return ((BaseContinuationImpl) pVar).create(r2, cVar);
}
final n.g.e context = cVar.getContext();
if (context == EmptyCoroutineContext.INSTANCE) {
return new RestrictedContinuationImpl(cVar) {
private int label;
@Override
public Object invokeSuspend(Object obj) {
int i2 = this.label;
if (i2 != 0) {
if (i2 == 1) {
this.label = 2;
i.j.a.e.t.d.Q4(obj);
return obj;
}
throw new IllegalStateException("This coroutine had already completed".toString());
}
this.label = 1;
i.j.a.e.t.d.Q4(obj);
n.i.a.p pVar2 = pVar;
n.i.b.o.f(pVar2, 2);
return pVar2.invoke(r2, this);
}
};
}
return new ContinuationImpl(cVar, context) {
private int label;
@Override
public Object invokeSuspend(Object obj) {
int i2 = this.label;
if (i2 != 0) {
if (i2 == 1) {
this.label = 2;
i.j.a.e.t.d.Q4(obj);
return obj;
}
throw new IllegalStateException("This coroutine had already completed".toString());
}
this.label = 1;
i.j.a.e.t.d.Q4(obj);
n.i.a.p pVar2 = pVar;
n.i.b.o.f(pVar2, 2);
return pVar2.invoke(r2, this);
}
};
}
public static int j1(int i2) {
switch (i2) {
case 1:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_yellow);
case 2:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_orange);
case 3:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_pink2);
case 4:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_green);
case 5:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_red);
case 6:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_purple);
case 7:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_pink);
case 8:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_blue);
default:
return e.i.b.a.b(i.c.a.c.y.J(), R$color.lyric_high_color_yellow);
}
}
public static final <T> n.g.c<T> j2(n.g.c<? super T> cVar) {
n.g.c<T> cVar2;
n.i.b.h.e(cVar, "<this>");
ContinuationImpl continuationImpl = cVar instanceof ContinuationImpl ? (ContinuationImpl) cVar : null;
return (continuationImpl == null || (cVar2 = (n.g.c<T>) continuationImpl.intercepted()) == null) ? cVar : cVar2;
}
public static final <T, A extends Appendable> A j3(T[] tArr, A a2, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, int i2, CharSequence charSequence4, n.i.a.l<? super T, ? extends CharSequence> lVar) {
n.i.b.h.e(tArr, "<this>");
n.i.b.h.e(a2, "buffer");
n.i.b.h.e(charSequence, "separator");
n.i.b.h.e(charSequence2, "prefix");
n.i.b.h.e(charSequence3, "postfix");
n.i.b.h.e(charSequence4, "truncated");
a2.append(charSequence2);
int i3 = 0;
for (T t2 : tArr) {
i3++;
if (i3 > 1) {
a2.append(charSequence);
}
if (i2 >= 0 && i3 > i2) {
break;
}
n.m.t.a.p.m.e1.a.k(a2, t2, lVar);
}
if (i2 >= 0 && i3 > i2) {
a2.append(charSequence4);
}
a2.append(charSequence3);
return a2;
}
public static <D extends CallableMemberDescriptor> Collection<D> j4(n.m.t.a.p.g.e eVar, Collection<D> collection, Collection<D> collection2, n.m.t.a.p.c.d dVar, n.m.t.a.p.k.b.l lVar, OverridingUtil overridingUtil) {
if (eVar == null) {
c(0);
throw null;
} else if (collection == null) {
c(1);
throw null;
} else if (collection2 == null) {
c(2);
throw null;
} else if (dVar == null) {
c(3);
throw null;
} else if (lVar == null) {
c(4);
throw null;
} else if (overridingUtil != null) {
return i4(eVar, collection, collection2, dVar, lVar, overridingUtil, false);
} else {
c(5);
throw null;
}
}
public static n.m.t.a.p.m.d1.g j5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar, boolean z) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof n.m.t.a.p.m.d1.h) {
return cVar.c((n.m.t.a.p.m.d1.h) gVar, z);
}
if (gVar instanceof n.m.t.a.p.m.d1.e) {
n.m.t.a.p.m.d1.e eVar = (n.m.t.a.p.m.d1.e) gVar;
return cVar.z(cVar.c(cVar.f(eVar), z), cVar.c(cVar.d(eVar), z));
}
throw new IllegalStateException("sealed".toString());
}
public static final void k(Throwable th, Throwable th2) {
n.i.b.h.e(th, "<this>");
n.i.b.h.e(th2, "exception");
if (th != th2) {
n.h.b.a.a(th, th2);
}
}
public static n.m.t.a.p.c.v0.b0 k0(d0 d0Var, n.m.t.a.p.c.t0.f fVar) {
if (fVar != null) {
return r0(d0Var, fVar, true, false, false, d0Var.i());
}
d(14);
throw null;
}
public static final <T> Class<T> k1(n.m.d<T> dVar) {
n.i.b.h.e(dVar, "<this>");
return (Class<T>) ((n.i.b.b) dVar).i();
}
public static n.m.t.a.p.m.d1.g k2(n.m.t.a.p.m.b1.c cVar, List<? extends n.m.t.a.p.m.d1.g> list) {
c0 c0Var;
n.i.b.h.e(cVar, "this");
n.i.b.h.e(list, WordDelimiterFilterFactory.TYPES);
n.i.b.h.e(list, WordDelimiterFilterFactory.TYPES);
int size = list.size();
if (size != 0) {
if (size != 1) {
ArrayList arrayList = new ArrayList(S(list, 10));
Iterator<T> it = list.iterator();
boolean z = false;
boolean z2 = false;
while (it.hasNext()) {
z0 z0Var = (z0) it.next();
z = z || A2(z0Var);
if (z0Var instanceof c0) {
c0Var = (c0) z0Var;
} else if (z0Var instanceof n.m.t.a.p.m.t) {
if (w2(z0Var)) {
return z0Var;
}
c0Var = ((n.m.t.a.p.m.t) z0Var).f14752j;
z2 = true;
} else {
throw new NoWhenBranchMatchedException();
}
arrayList.add(c0Var);
}
if (z) {
c0 d2 = s.d(n.i.b.h.j("Intersection of error types: ", list));
n.i.b.h.d(d2, "createErrorType(\"Interse… of error types: $types\")");
return d2;
} else if (!z2) {
return TypeIntersector.a.b(arrayList);
} else {
ArrayList arrayList2 = new ArrayList(S(list, 10));
Iterator<T> it2 = list.iterator();
while (it2.hasNext()) {
arrayList2.add(i5((z0) it2.next()));
}
TypeIntersector typeIntersector = TypeIntersector.a;
return KotlinTypeFactory.c(typeIntersector.b(arrayList), typeIntersector.b(arrayList2));
}
}
return (z0) n.f.g.S(list);
}
throw new IllegalStateException("Expected some types".toString());
}
public static String k3(Object[] objArr, CharSequence charSequence, CharSequence charSequence2, CharSequence charSequence3, int i2, CharSequence charSequence4, n.i.a.l lVar, int i3) {
if ((i3 & 1) != 0) {
charSequence = ", ";
}
CharSequence charSequence5 = charSequence;
String str = (i3 & 2) != 0 ? "" : charSequence2;
String str2 = (i3 & 4) != 0 ? "" : charSequence3;
int i4 = (i3 & 8) != 0 ? -1 : i2;
String str3 = (i3 & 16) != 0 ? "..." : null;
n.i.a.l lVar2 = (i3 & 32) != 0 ? null : lVar;
n.i.b.h.e(objArr, "<this>");
n.i.b.h.e(charSequence5, "separator");
n.i.b.h.e(str, "prefix");
n.i.b.h.e(str2, "postfix");
n.i.b.h.e(str3, "truncated");
StringBuilder sb = new StringBuilder();
j3(objArr, sb, charSequence5, str, str2, i4, str3, lVar2);
String sb2 = sb.toString();
n.i.b.h.d(sb2, "joinTo(StringBuilder(), …ed, transform).toString()");
return sb2;
}
public static <D extends CallableMemberDescriptor> Collection<D> k4(n.m.t.a.p.g.e eVar, Collection<D> collection, Collection<D> collection2, n.m.t.a.p.c.d dVar, n.m.t.a.p.k.b.l lVar, OverridingUtil overridingUtil) {
if (collection == null) {
c(7);
throw null;
} else if (dVar == null) {
c(9);
throw null;
} else if (lVar == null) {
c(10);
throw null;
} else if (overridingUtil != null) {
return i4(eVar, collection, collection2, dVar, lVar, overridingUtil, true);
} else {
c(11);
throw null;
}
}
public static n.m.t.a.p.m.d1.h k5(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar, boolean z) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
return ((c0) hVar).N0(z);
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static int l(i.j.e.i.c.b bVar, boolean z) {
int i2;
int i3;
if (z) {
i2 = bVar.c;
} else {
i2 = bVar.b;
}
if (z) {
i3 = bVar.b;
} else {
i3 = bVar.c;
}
byte[][] bArr = bVar.a;
int i4 = 0;
for (int i5 = 0; i5 < i2; i5++) {
byte b = -1;
int i6 = 0;
for (int i7 = 0; i7 < i3; i7++) {
byte b2 = z ? bArr[i5][i7] : bArr[i7][i5];
if (b2 == b) {
i6++;
} else {
if (i6 >= 5) {
i4 += (i6 - 5) + 3;
}
b = b2;
i6 = 1;
}
}
if (i6 >= 5) {
i4 = (i6 - 5) + 3 + i4;
}
}
return i4;
}
public static n.m.t.a.p.c.v0.c0 l0(d0 d0Var, n.m.t.a.p.c.t0.f fVar, n.m.t.a.p.c.t0.f fVar2) {
if (fVar == null) {
d(1);
throw null;
} else if (fVar2 != null) {
i0 i2 = d0Var.i();
if (i2 != null) {
return v0(d0Var, fVar, fVar2, true, false, false, d0Var.getVisibility(), i2);
}
d(6);
throw null;
} else {
d(2);
throw null;
}
}
public static final <T> Class<T> l1(n.m.d<T> dVar) {
n.i.b.h.e(dVar, "<this>");
Class<T> cls = (Class<T>) ((n.i.b.b) dVar).i();
if (cls.isPrimitive()) {
String name = cls.getName();
switch (name.hashCode()) {
case -1325958191:
return !name.equals("double") ? cls : Double.class;
case 104431:
return !name.equals("int") ? cls : Integer.class;
case 3039496:
return !name.equals("byte") ? cls : Byte.class;
case 3052374:
return !name.equals("char") ? cls : Character.class;
case 3327612:
return !name.equals("long") ? cls : Long.class;
case 3625364:
return !name.equals("void") ? cls : Void.class;
case 64711720:
return !name.equals("boolean") ? cls : Boolean.class;
case 97526364:
return !name.equals("float") ? cls : Float.class;
case 109413500:
return !name.equals("short") ? cls : Short.class;
default:
return cls;
}
}
return cls;
}
public static boolean l2(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
return n.m.t.a.p.b.f.N((m0) kVar, h.a.b);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static final <T> T l3(T[] tArr) {
n.i.b.h.e(tArr, "<this>");
if (!(tArr.length == 0)) {
return tArr[r1(tArr)];
}
throw new NoSuchElementException("Array is empty.");
}
public static final ProtoBuf$Type l4(ProtoBuf$Function protoBuf$Function, n.m.t.a.p.f.c.e eVar) {
n.i.b.h.e(protoBuf$Function, "<this>");
n.i.b.h.e(eVar, "typeTable");
if (protoBuf$Function.hasReturnType()) {
ProtoBuf$Type returnType = protoBuf$Function.getReturnType();
n.i.b.h.d(returnType, "returnType");
return returnType;
} else if (protoBuf$Function.hasReturnTypeId()) {
return eVar.a(protoBuf$Function.getReturnTypeId());
} else {
throw new IllegalStateException("No returnType in ProtoBuf.Function".toString());
}
}
public static final z0 l5(z0 z0Var, x xVar) {
n.i.b.h.e(z0Var, "<this>");
if (xVar == null) {
return z0Var;
}
if (z0Var instanceof c0) {
return new n.m.t.a.p.m.e0((c0) z0Var, xVar);
}
if (z0Var instanceof n.m.t.a.p.m.t) {
return new n.m.t.a.p.m.v((n.m.t.a.p.m.t) z0Var, xVar);
}
throw new NoWhenBranchMatchedException();
}
public static boolean m(n.m.t.a.p.m.b1.c cVar, k kVar, k kVar2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "c1");
n.i.b.h.e(kVar2, "c2");
if (kVar instanceof m0) {
if (kVar2 instanceof m0) {
return n.i.b.h.a(kVar, kVar2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar2 + ", " + n.i.b.k.a(kVar2.getClass())).toString());
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static n.m.t.a.p.c.h0 m0(n.m.t.a.p.c.d dVar) {
if (dVar != null) {
f.a aVar = n.m.t.a.p.c.t0.f.f14255d;
Objects.requireNonNull(aVar);
n.m.t.a.p.c.t0.f fVar = f.a.b;
n.m.t.a.p.c.v0.e0 S0 = n.m.t.a.p.c.v0.e0.S0(dVar, fVar, n.m.t.a.p.b.h.c, CallableMemberDescriptor.Kind.SYNTHESIZED, dVar.i());
Objects.requireNonNull(aVar);
n.m.t.a.p.c.v0.e0 L0 = S0.L0(null, null, Collections.emptyList(), Collections.singletonList(new ValueParameterDescriptorImpl(S0, null, 0, fVar, n.m.t.a.p.g.e.j(AppMeasurementSdk.ConditionalUserProperty.VALUE), DescriptorUtilsKt.e(dVar).w(), false, false, false, null, dVar.i())), dVar.r(), Modality.FINAL, n.m.t.a.p.c.o.f14240e);
if (L0 != null) {
return L0;
}
d(25);
throw null;
}
d(24);
throw null;
}
public static final <T> Class<T> m1(n.m.d<T> dVar) {
n.i.b.h.e(dVar, "<this>");
Class<T> cls = (Class<T>) ((n.i.b.b) dVar).i();
if (cls.isPrimitive()) {
return cls;
}
String name = cls.getName();
switch (name.hashCode()) {
case -2056817302:
if (name.equals("java.lang.Integer")) {
return Integer.TYPE;
}
break;
case -527879800:
if (name.equals("java.lang.Float")) {
return Float.TYPE;
}
break;
case -515992664:
if (name.equals("java.lang.Short")) {
return Short.TYPE;
}
break;
case 155276373:
if (name.equals("java.lang.Character")) {
return Character.TYPE;
}
break;
case 344809556:
if (name.equals("java.lang.Boolean")) {
return Boolean.TYPE;
}
break;
case 398507100:
if (name.equals("java.lang.Byte")) {
return Byte.TYPE;
}
break;
case 398795216:
if (name.equals("java.lang.Long")) {
return Long.TYPE;
}
break;
case 399092968:
if (name.equals("java.lang.Void")) {
return Void.TYPE;
}
break;
case 761287205:
if (name.equals("java.lang.Double")) {
return Double.TYPE;
}
break;
}
return null;
}
public static final boolean m2(x xVar) {
n.i.b.h.e(xVar, "<this>");
return xVar.J0() instanceof n.m.t.a.p.j.p.a.b;
}
public static final <T> n.c<T> m3(LazyThreadSafetyMode lazyThreadSafetyMode, n.i.a.a<? extends T> aVar) {
n.i.b.h.e(lazyThreadSafetyMode, "mode");
n.i.b.h.e(aVar, "initializer");
int ordinal = lazyThreadSafetyMode.ordinal();
if (ordinal != 0) {
if (ordinal != 1) {
if (ordinal == 2) {
return new UnsafeLazyImpl(aVar);
}
throw new NoWhenBranchMatchedException();
}
return new SafePublicationLazyImpl(aVar);
}
return new SynchronizedLazyImpl(aVar, null, 2, null);
}
public static final ProtoBuf$Type m4(ProtoBuf$Property protoBuf$Property, n.m.t.a.p.f.c.e eVar) {
n.i.b.h.e(protoBuf$Property, "<this>");
n.i.b.h.e(eVar, "typeTable");
if (protoBuf$Property.hasReturnType()) {
ProtoBuf$Type returnType = protoBuf$Property.getReturnType();
n.i.b.h.d(returnType, "returnType");
return returnType;
} else if (protoBuf$Property.hasReturnTypeId()) {
return eVar.a(protoBuf$Property.getReturnTypeId());
} else {
throw new IllegalStateException("No returnType in ProtoBuf.Property".toString());
}
}
public static s0 m5(s0 s0Var, boolean z, int i2) {
if ((i2 & 1) != 0) {
z = true;
}
n.i.b.h.e(s0Var, "<this>");
if (s0Var instanceof n.m.t.a.p.m.w) {
n.m.t.a.p.m.w wVar = (n.m.t.a.p.m.w) s0Var;
n0[] n0VarArr = wVar.b;
p0[] p0VarArr = wVar.c;
n.i.b.h.e(p0VarArr, "<this>");
n.i.b.h.e(n0VarArr, "other");
int min = Math.min(p0VarArr.length, n0VarArr.length);
ArrayList arrayList = new ArrayList(min);
for (int i3 = 0; i3 < min; i3++) {
arrayList.add(new Pair(p0VarArr[i3], n0VarArr[i3]));
}
ArrayList arrayList2 = new ArrayList(S(arrayList, 10));
Iterator it = arrayList.iterator();
while (it.hasNext()) {
Pair pair = (Pair) it.next();
arrayList2.add(h0((p0) pair.getFirst(), (n0) pair.getSecond()));
}
Object[] array = arrayList2.toArray(new p0[0]);
Objects.requireNonNull(array, "null cannot be cast to non-null type kotlin.Array<T>");
return new n.m.t.a.p.m.w(n0VarArr, (p0[]) array, z);
}
return new n.m.t.a.p.j.p.a.d(z, s0Var);
}
public static int n(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof x) {
return ((x) gVar).I0().size();
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static n.m.t.a.p.c.h0 n0(n.m.t.a.p.c.d dVar) {
if (dVar != null) {
Objects.requireNonNull(n.m.t.a.p.c.t0.f.f14255d);
n.m.t.a.p.c.v0.e0 L0 = n.m.t.a.p.c.v0.e0.S0(dVar, f.a.b, n.m.t.a.p.b.h.b, CallableMemberDescriptor.Kind.SYNTHESIZED, dVar.i()).L0(null, null, Collections.emptyList(), Collections.emptyList(), DescriptorUtilsKt.e(dVar).h(Variance.INVARIANT, dVar.r()), Modality.FINAL, n.m.t.a.p.c.o.f14240e);
if (L0 != null) {
return L0;
}
d(23);
throw null;
}
d(22);
throw null;
}
public static final n.m.d<?> n1(n.m.e eVar) {
Object obj;
boolean z;
n.i.b.h.e(eVar, "$this$jvmErasure");
if (eVar instanceof n.m.d) {
return (n.m.d) eVar;
}
if (eVar instanceof n.m.o) {
List<n.m.n> upperBounds = ((n.m.o) eVar).getUpperBounds();
Iterator<T> it = upperBounds.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
Object next = it.next();
n.m.n nVar = (n.m.n) next;
Objects.requireNonNull(nVar, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
Object d2 = ((KTypeImpl) nVar).f13495l.J0().d();
n.m.t.a.p.c.d dVar = (n.m.t.a.p.c.d) (d2 instanceof n.m.t.a.p.c.d ? d2 : null);
if (dVar == null || dVar.h() == ClassKind.INTERFACE || dVar.h() == ClassKind.ANNOTATION_CLASS) {
z = false;
continue;
} else {
z = true;
continue;
}
if (z) {
obj = next;
break;
}
}
n.m.n nVar2 = (n.m.n) obj;
if (nVar2 == null) {
nVar2 = (n.m.n) n.f.g.q(upperBounds);
}
return nVar2 != null ? o1(nVar2) : n.i.b.k.a(Object.class);
}
throw new KotlinReflectionInternalError("Cannot calculate JVM erasure for type: " + eVar);
}
public static boolean n2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.h a2 = cVar.a(gVar);
return (a2 == null ? null : cVar.e(a2)) != null;
}
public static final <T> n.c<T> n3(n.i.a.a<? extends T> aVar) {
n.i.b.h.e(aVar, "initializer");
return new SynchronizedLazyImpl(aVar, null, 2, null);
}
public static final <T> void n4(List<T> list) {
n.i.b.h.e(list, "<this>");
Collections.reverse(list);
}
public static final <E> E[] o(int i2) {
if (i2 >= 0) {
return (E[]) new Object[i2];
}
throw new IllegalArgumentException("capacity must be non-negative.".toString());
}
public static n.m.t.a.p.c.g0 o0(n.m.t.a.p.c.a aVar, x xVar, n.m.t.a.p.c.t0.f fVar) {
if (fVar == null) {
d(30);
throw null;
} else if (xVar == null) {
return null;
} else {
return new n.m.t.a.p.c.v0.d0(aVar, new n.m.t.a.p.j.v.i.b(aVar, xVar, null), fVar);
}
}
public static final n.m.d<?> o1(n.m.n nVar) {
n.m.d<?> n1;
n.i.b.h.e(nVar, "$this$jvmErasure");
n.m.e f2 = nVar.f();
if (f2 == null || (n1 = n1(f2)) == null) {
throw new KotlinReflectionInternalError("Cannot calculate JVM erasure for type: " + nVar);
}
return n1;
}
public static boolean o2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
return cVar.O(cVar.b(hVar));
}
public static <T> n.m.t.a.i<T> o3(n.i.a.a<T> aVar) {
return new n.m.t.a.i<>(aVar);
}
public static Bitmap o4(Context context, Bitmap bitmap, int i2) throws RSRuntimeException {
ScriptIntrinsicBlur scriptIntrinsicBlur;
Allocation allocation;
Allocation allocation2;
RenderScript create;
RenderScript renderScript = null;
ScriptIntrinsicBlur scriptIntrinsicBlur2 = null;
try {
create = RenderScript.create(context);
try {
create.setMessageHandler(new RenderScript.RSMessageHandler());
allocation = Allocation.createFromBitmap(create, bitmap, Allocation.MipmapControl.MIPMAP_NONE, 1);
} catch (Throwable th) {
th = th;
allocation = null;
allocation2 = null;
}
} catch (Throwable th2) {
th = th2;
scriptIntrinsicBlur = null;
allocation = null;
allocation2 = null;
}
try {
allocation2 = Allocation.createTyped(create, allocation.getType());
try {
scriptIntrinsicBlur2 = ScriptIntrinsicBlur.create(create, Element.U8_4(create));
scriptIntrinsicBlur2.setInput(allocation);
scriptIntrinsicBlur2.setRadius(i2);
scriptIntrinsicBlur2.forEach(allocation2);
allocation2.copyTo(bitmap);
if (Build.VERSION.SDK_INT >= 23) {
RenderScript.releaseAllContexts();
} else {
create.destroy();
}
allocation.destroy();
allocation2.destroy();
scriptIntrinsicBlur2.destroy();
return bitmap;
} catch (Throwable th3) {
th = th3;
ScriptIntrinsicBlur scriptIntrinsicBlur3 = scriptIntrinsicBlur2;
renderScript = create;
scriptIntrinsicBlur = scriptIntrinsicBlur3;
if (renderScript != null) {
if (Build.VERSION.SDK_INT >= 23) {
RenderScript.releaseAllContexts();
} else {
renderScript.destroy();
}
}
if (allocation != null) {
allocation.destroy();
}
if (allocation2 != null) {
allocation2.destroy();
}
if (scriptIntrinsicBlur != null) {
scriptIntrinsicBlur.destroy();
}
throw th;
}
} catch (Throwable th4) {
th = th4;
allocation2 = null;
renderScript = create;
scriptIntrinsicBlur = allocation2;
if (renderScript != null) {
}
if (allocation != null) {
}
if (allocation2 != null) {
}
if (scriptIntrinsicBlur != null) {
}
throw th;
}
}
public static n.m.t.a.p.m.d1.i p(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
return (n.m.t.a.p.m.d1.i) hVar;
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static final Object p0(Throwable th) {
n.i.b.h.e(th, "exception");
return new Result.Failure(th);
}
public static final String p1(CallableMemberDescriptor callableMemberDescriptor) {
n.i.b.h.e(callableMemberDescriptor, "callableMemberDescriptor");
CallableMemberDescriptor u1 = n.m.t.a.p.b.f.B(callableMemberDescriptor) ? u1(callableMemberDescriptor) : null;
CallableMemberDescriptor l2 = u1 == null ? null : DescriptorUtilsKt.l(u1);
if (l2 == null) {
return null;
}
if (l2 instanceof d0) {
n.i.b.h.e(l2, "<this>");
n.m.t.a.p.b.f.B(l2);
CallableMemberDescriptor b = DescriptorUtilsKt.b(DescriptorUtilsKt.l(l2), false, ClassicBuiltinSpecialProperties$getBuiltinSpecialPropertyGetterName$descriptor$1.INSTANCE, 1);
if (b == null) {
return null;
}
n.m.t.a.p.e.a.c cVar = n.m.t.a.p.e.a.c.a;
n.m.t.a.p.g.e eVar = n.m.t.a.p.e.a.c.b.get(DescriptorUtilsKt.g(b));
if (eVar == null) {
return null;
}
return eVar.c();
} else if (l2 instanceof n.m.t.a.p.c.h0) {
n.m.t.a.p.e.a.b bVar = n.m.t.a.p.e.a.b.f14406m;
n.m.t.a.p.c.h0 h0Var = (n.m.t.a.p.c.h0) l2;
n.i.b.h.e(h0Var, "functionDescriptor");
Map<String, n.m.t.a.p.g.e> map = SpecialGenericSignatures.f13572j;
String c = n.m.t.a.p.e.b.n.c(h0Var);
n.m.t.a.p.g.e eVar2 = c == null ? null : map.get(c);
if (eVar2 == null) {
return null;
}
return eVar2.c();
} else {
return null;
}
}
public static boolean p2(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
return ((m0) kVar).d() instanceof n.m.t.a.p.c.d;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static <T> n.m.t.a.h<T> p3(T t2, n.i.a.a<T> aVar) {
if (aVar != null) {
return new n.m.t.a.h<>(t2, aVar);
}
a(1);
throw null;
}
public static final <T> T p4(Set<? extends T> set, T t2, T t3, T t4, boolean z) {
Set<? extends T> j0;
n.i.b.h.e(set, "<this>");
n.i.b.h.e(t2, "low");
n.i.b.h.e(t3, "high");
if (z) {
T t5 = set.contains(t2) ? t2 : set.contains(t3) ? t3 : null;
if (n.i.b.h.a(t5, t2) && n.i.b.h.a(t4, t3)) {
return null;
}
return t4 == null ? t5 : t4;
}
if (t4 != null && (j0 = n.f.g.j0(n.f.g.O(set, t4))) != null) {
set = j0;
}
return (T) n.f.g.T(set);
}
public static n.m.t.a.p.m.d1.b q(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
if (hVar instanceof n.m.t.a.p.m.e0) {
return cVar.e(((n.m.t.a.p.m.e0) hVar).f14729j);
}
if (hVar instanceof n.m.t.a.p.m.b1.g) {
return (n.m.t.a.p.m.b1.g) hVar;
}
return null;
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static n.m.t.a.p.m.d1.g q0(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar, n.m.t.a.p.m.d1.h hVar2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "lowerBound");
n.i.b.h.e(hVar2, "upperBound");
if (hVar instanceof c0) {
if (hVar2 instanceof c0) {
return KotlinTypeFactory.c((c0) hVar, (c0) hVar2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + cVar + ", " + n.i.b.k.a(cVar.getClass())).toString());
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + cVar + ", " + n.i.b.k.a(cVar.getClass())).toString());
}
public static final <T> n.m.d<T> q1(Class<T> cls) {
n.i.b.h.e(cls, "<this>");
return n.i.b.k.a(cls);
}
public static boolean q2(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
n.m.t.a.p.c.d dVar = d2 instanceof n.m.t.a.p.c.d ? (n.m.t.a.p.c.d) d2 : null;
return (dVar == null || !D2(dVar) || dVar.h() == ClassKind.ENUM_ENTRY || dVar.h() == ClassKind.ANNOTATION_CLASS) ? false : true;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static <T> n.m.t.a.h<T> q3(n.i.a.a<T> aVar) {
return p3(null, aVar);
}
public static final NullabilityQualifier q4(Set<? extends NullabilityQualifier> set, NullabilityQualifier nullabilityQualifier, boolean z) {
n.i.b.h.e(set, "<this>");
NullabilityQualifier nullabilityQualifier2 = NullabilityQualifier.FORCE_FLEXIBILITY;
return nullabilityQualifier == nullabilityQualifier2 ? nullabilityQualifier2 : (NullabilityQualifier) p4(set, NullabilityQualifier.NOT_NULL, NullabilityQualifier.NULLABLE, nullabilityQualifier, z);
}
public static n.m.t.a.p.m.d1.c r(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.h hVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(hVar, "receiver");
if (hVar instanceof c0) {
if (hVar instanceof n.m.t.a.p.m.l) {
return (n.m.t.a.p.m.l) hVar;
}
return null;
}
StringBuilder Q = i.a.b.a.a.Q("ClassicTypeSystemContext couldn't handle: ", hVar, ", ");
Q.append(n.i.b.k.a(hVar.getClass()));
throw new IllegalArgumentException(Q.toString().toString());
}
public static n.m.t.a.p.c.v0.b0 r0(d0 d0Var, n.m.t.a.p.c.t0.f fVar, boolean z, boolean z2, boolean z3, i0 i0Var) {
if (fVar == null) {
d(18);
throw null;
} else if (i0Var != null) {
return new n.m.t.a.p.c.v0.b0(d0Var, fVar, d0Var.k(), d0Var.getVisibility(), z, z2, z3, CallableMemberDescriptor.Kind.DECLARATION, null, i0Var);
} else {
d(19);
throw null;
}
}
public static final <T> int r1(T[] tArr) {
n.i.b.h.e(tArr, "<this>");
return tArr.length - 1;
}
public static boolean r2(Context context, boolean z) {
TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(new int[]{R$attr.mdtp_theme_dark});
try {
return obtainStyledAttributes.getBoolean(0, z);
} finally {
obtainStyledAttributes.recycle();
}
}
public static final <T> List<T> r3(T t2) {
List<T> singletonList = Collections.singletonList(t2);
n.i.b.h.d(singletonList, "singletonList(element)");
return singletonList;
}
public static final <H> Collection<H> r4(Collection<? extends H> collection, n.i.a.l<? super H, ? extends n.m.t.a.p.c.a> lVar) {
n.i.b.h.e(collection, "<this>");
n.i.b.h.e(lVar, "descriptorByHandle");
if (collection.size() <= 1) {
return collection;
}
LinkedList linkedList = new LinkedList(collection);
n.m.t.a.p.o.h a2 = h.b.a();
while (!linkedList.isEmpty()) {
Object o2 = n.f.g.o(linkedList);
final n.m.t.a.p.o.h a3 = h.b.a();
Collection g2 = OverridingUtil.g(o2, linkedList, lVar, new n.i.a.l<H, n.e>() {
{
super(1);
}
@Override
public e invoke(Object obj) {
invoke2((OverridingUtilsKt$selectMostSpecificInEachOverridableGroup$overridableGroup$1<H>) obj);
return e.a;
}
public final void invoke2(H h2) {
n.m.t.a.p.o.h<H> hVar = a3;
n.i.b.h.d(h2, "it");
hVar.add(h2);
}
});
n.i.b.h.d(g2, "val conflictedHandles = …nflictedHandles.add(it) }");
ArrayList arrayList = (ArrayList) g2;
if (arrayList.size() == 1 && a3.isEmpty()) {
Object R = n.f.g.R(g2);
n.i.b.h.d(R, "overridableGroup.single()");
a2.add(R);
} else {
Object obj = (Object) OverridingUtil.s(g2, lVar);
n.i.b.h.d(obj, "selectMostSpecificMember…roup, descriptorByHandle)");
n.m.t.a.p.c.a invoke = lVar.invoke(obj);
Iterator it = arrayList.iterator();
while (it.hasNext()) {
Object obj2 = (Object) it.next();
n.i.b.h.d(obj2, "it");
if (!OverridingUtil.k(invoke, lVar.invoke(obj2))) {
a3.add(obj2);
}
}
if (!a3.isEmpty()) {
a2.addAll(a3);
}
a2.add(obj);
}
}
return a2;
}
public static n.m.t.a.p.m.d1.d s(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.e eVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(eVar, "receiver");
if (eVar instanceof n.m.t.a.p.m.t) {
if (eVar instanceof n.m.t.a.p.m.q) {
return (n.m.t.a.p.m.q) eVar;
}
return null;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + eVar + ", " + n.i.b.k.a(eVar.getClass())).toString());
}
public static final <M extends Member> n.m.t.a.o.c<M> s0(n.m.t.a.o.c<? extends M> cVar, CallableMemberDescriptor callableMemberDescriptor, boolean z) {
boolean z2;
x returnType;
n.i.b.h.e(cVar, "$this$createInlineClassAwareCallerIfNeeded");
n.i.b.h.e(callableMemberDescriptor, "descriptor");
boolean z3 = false;
if (!n.m.t.a.p.j.e.a(callableMemberDescriptor)) {
List<n.m.t.a.p.c.p0> g2 = callableMemberDescriptor.g();
n.i.b.h.d(g2, "descriptor.valueParameters");
if (!g2.isEmpty()) {
for (n.m.t.a.p.c.p0 p0Var : g2) {
n.i.b.h.d(p0Var, "it");
x b = p0Var.b();
n.i.b.h.d(b, "it.type");
if (n.m.t.a.p.j.e.c(b)) {
z2 = true;
break;
}
}
}
z2 = false;
if (!z2 && ((returnType = callableMemberDescriptor.getReturnType()) == null || !n.m.t.a.p.j.e.c(returnType))) {
if (!(cVar instanceof n.m.t.a.o.b)) {
x f1 = f1(callableMemberDescriptor);
}
return !z3 ? new n.m.t.a.o.e(callableMemberDescriptor, cVar, z) : cVar;
}
}
z3 = true;
if (!z3) {
}
}
public static final n.m.t.a.p.g.e s1(n.m.t.a.p.f.c.c cVar, int i2) {
n.i.b.h.e(cVar, "<this>");
n.m.t.a.p.g.e g2 = n.m.t.a.p.g.e.g(cVar.getString(i2));
n.i.b.h.d(g2, "guessByFirstCharacter(getString(index))");
return g2;
}
public static boolean s2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.h a2 = cVar.a(gVar);
return (a2 == null ? null : cVar.h0(a2)) != null;
}
public static void s3(String str, Bundle bundle) {
if (bundle == null) {
bundle = new Bundle();
}
Bundle bundle2 = new Bundle();
String string = bundle.getString("google.c.a.c_id");
if (string != null) {
bundle2.putString("_nmid", string);
}
String string2 = bundle.getString("google.c.a.c_l");
if (string2 != null) {
bundle2.putString("_nmn", string2);
}
String string3 = bundle.getString("google.c.a.m_l");
if (!TextUtils.isEmpty(string3)) {
bundle2.putString("label", string3);
}
String string4 = bundle.getString("google.c.a.m_c");
if (!TextUtils.isEmpty(string4)) {
bundle2.putString("message_channel", string4);
}
String F1 = F1(bundle);
if (F1 != null) {
bundle2.putString("_nt", F1);
}
String string5 = bundle.getString("google.c.a.ts");
if (string5 != null) {
try {
bundle2.putInt("_nmt", Integer.parseInt(string5));
} catch (NumberFormatException e2) {
Log.w("FirebaseMessaging", "Error while parsing timestamp in GCM event", e2);
}
}
String string6 = bundle.containsKey("google.c.a.udt") ? bundle.getString("google.c.a.udt") : null;
if (string6 != null) {
try {
bundle2.putInt("_ndt", Integer.parseInt(string6));
} catch (NumberFormatException e3) {
Log.w("FirebaseMessaging", "Error while parsing use_device_time in GCM event", e3);
}
}
String str2 = true != i.j.b.v.i0.l(bundle) ? "data" : "display";
if ("_nr".equals(str) || "_nf".equals(str)) {
bundle2.putString("_nmc", str2);
}
if (Log.isLoggable("FirebaseMessaging", 3)) {
String valueOf = String.valueOf(bundle2);
Log.d("FirebaseMessaging", i.a.b.a.a.C(new StringBuilder(str.length() + 37 + valueOf.length()), "Logging to scion event=", str, " scionPayload=", valueOf));
}
i.j.b.g b = i.j.b.g.b();
b.a();
i.j.b.i.a.a aVar = (i.j.b.i.a.a) b.f12575d.a(i.j.b.i.a.a.class);
if (aVar != null) {
aVar.a(AppMeasurement.FCM_ORIGIN, str, bundle2);
} else {
Log.w("FirebaseMessaging", "Unable to log event: analytics library is missing");
}
}
public static void s4(View view, float f2) {
Drawable background = view.getBackground();
if (background instanceof MaterialShapeDrawable) {
MaterialShapeDrawable materialShapeDrawable = (MaterialShapeDrawable) background;
MaterialShapeDrawable.b bVar = materialShapeDrawable.f3354i;
if (bVar.f3380o != f2) {
bVar.f3380o = f2;
materialShapeDrawable.L();
}
}
}
public static final n.m.t.a.p.m.t t(x xVar) {
n.i.b.h.e(xVar, "<this>");
return (n.m.t.a.p.m.t) xVar.M0();
}
public static final n.m.t.a.p.e.a.z.e t0(NullabilityQualifier nullabilityQualifier, MutabilityQualifier mutabilityQualifier, boolean z, boolean z2) {
if (z2 && nullabilityQualifier == NullabilityQualifier.NOT_NULL) {
return new n.m.t.a.p.e.a.z.e(nullabilityQualifier, mutabilityQualifier, true, z);
}
return new n.m.t.a.p.e.a.z.e(nullabilityQualifier, mutabilityQualifier, false, z);
}
public static final Integer t1(int[] iArr, int i2) {
n.i.b.h.e(iArr, "<this>");
if (i2 >= 0) {
n.i.b.h.e(iArr, "<this>");
if (i2 <= iArr.length - 1) {
return Integer.valueOf(iArr[i2]);
}
}
return null;
}
public static boolean t2(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
return ((m0) kVar).e();
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static int t3(CharSequence charSequence, int i2, int i3) {
float[] fArr;
if (i2 >= charSequence.length()) {
return i3;
}
if (i3 == 0) {
fArr = new float[]{0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.25f};
} else {
fArr = new float[]{1.0f, 2.0f, 2.0f, 2.0f, 2.0f, 2.25f};
fArr[i3] = 0.0f;
}
int i4 = 0;
while (true) {
int i5 = i2 + i4;
if (i5 == charSequence.length()) {
byte[] bArr = new byte[6];
int[] iArr = new int[6];
int J0 = J0(fArr, iArr, Integer.MAX_VALUE, bArr);
int i6 = 0;
for (int i7 = 0; i7 < 6; i7++) {
i6 += bArr[i7];
}
if (iArr[0] == J0) {
return 0;
}
if (i6 != 1 || bArr[5] <= 0) {
if (i6 != 1 || bArr[4] <= 0) {
if (i6 != 1 || bArr[2] <= 0) {
return (i6 != 1 || bArr[3] <= 0) ? 1 : 3;
}
return 2;
}
return 4;
}
return 5;
}
char charAt = charSequence.charAt(i5);
i4++;
if (v2(charAt)) {
fArr[0] = fArr[0] + 0.5f;
} else if (C2(charAt)) {
fArr[0] = (float) Math.ceil(fArr[0]);
fArr[0] = fArr[0] + 2.0f;
} else {
fArr[0] = (float) Math.ceil(fArr[0]);
fArr[0] = fArr[0] + 1.0f;
}
if (charAt == ' ' || (charAt >= '0' && charAt <= '9') || (charAt >= 'A' && charAt <= 'Z')) {
fArr[1] = fArr[1] + 0.6666667f;
} else if (C2(charAt)) {
fArr[1] = fArr[1] + 2.6666667f;
} else {
fArr[1] = fArr[1] + 1.3333334f;
}
if (charAt == ' ' || (charAt >= '0' && charAt <= '9') || (charAt >= 'a' && charAt <= 'z')) {
fArr[2] = fArr[2] + 0.6666667f;
} else if (C2(charAt)) {
fArr[2] = fArr[2] + 2.6666667f;
} else {
fArr[2] = fArr[2] + 1.3333334f;
}
if (O2(charAt)) {
fArr[3] = fArr[3] + 0.6666667f;
} else if (C2(charAt)) {
fArr[3] = fArr[3] + 4.3333335f;
} else {
fArr[3] = fArr[3] + 3.3333333f;
}
if (charAt >= ' ' && charAt <= '^') {
fArr[4] = fArr[4] + 0.75f;
} else if (C2(charAt)) {
fArr[4] = fArr[4] + 4.25f;
} else {
fArr[4] = fArr[4] + 3.25f;
}
fArr[5] = fArr[5] + 1.0f;
if (i4 >= 4) {
int[] iArr2 = new int[6];
byte[] bArr2 = new byte[6];
J0(fArr, iArr2, Integer.MAX_VALUE, bArr2);
int i8 = 0;
for (int i9 = 0; i9 < 6; i9++) {
i8 += bArr2[i9];
}
if (iArr2[0] < iArr2[5] && iArr2[0] < iArr2[1] && iArr2[0] < iArr2[2] && iArr2[0] < iArr2[3] && iArr2[0] < iArr2[4]) {
return 0;
}
if (iArr2[5] < iArr2[0] || bArr2[1] + bArr2[2] + bArr2[3] + bArr2[4] == 0) {
return 5;
}
if (i8 == 1 && bArr2[4] > 0) {
return 4;
}
if (i8 == 1 && bArr2[2] > 0) {
return 2;
}
if (i8 == 1 && bArr2[3] > 0) {
return 3;
}
if (iArr2[1] + 1 < iArr2[0] && iArr2[1] + 1 < iArr2[5] && iArr2[1] + 1 < iArr2[4] && iArr2[1] + 1 < iArr2[2]) {
if (iArr2[1] < iArr2[3]) {
return 1;
}
if (iArr2[1] == iArr2[3]) {
for (int i10 = i2 + i4 + 1; i10 < charSequence.length(); i10++) {
char charAt2 = charSequence.charAt(i10);
if (g3(charAt2)) {
return 3;
}
if (!O2(charAt2)) {
break;
}
}
return 1;
}
}
}
}
}
public static final <T> Set<T> t4(T t2) {
Set<T> singleton = Collections.singleton(t2);
n.i.b.h.d(singleton, "singleton(element)");
return singleton;
}
public static n.m.t.a.p.m.d1.e u(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof x) {
z0 M0 = ((x) gVar).M0();
if (M0 instanceof n.m.t.a.p.m.t) {
return (n.m.t.a.p.m.t) M0;
}
return null;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static final o0 u0(n.m.t.a.p.c.d dVar, n.m.t.a.p.c.d dVar2) {
n.i.b.h.e(dVar, "from");
n.i.b.h.e(dVar2, "to");
dVar.u().size();
dVar2.u().size();
List<n0> u2 = dVar.u();
n.i.b.h.d(u2, "from.declaredTypeParameters");
ArrayList arrayList = new ArrayList(S(u2, 10));
for (n0 n0Var : u2) {
arrayList.add(n0Var.j());
}
List<n0> u3 = dVar2.u();
n.i.b.h.d(u3, "to.declaredTypeParameters");
ArrayList arrayList2 = new ArrayList(S(u3, 10));
for (n0 n0Var2 : u3) {
c0 r2 = n0Var2.r();
n.i.b.h.d(r2, "it.defaultType");
arrayList2.add(n.m.t.a.p.m.e1.a.n(r2));
}
Map c0 = n.f.g.c0(n.f.g.l0(arrayList, arrayList2));
boolean z = true & true;
n.i.b.h.e(c0, "map");
return new n.m.t.a.p.m.n0(c0, false);
}
public static final <T extends CallableMemberDescriptor> T u1(T t2) {
n.i.b.h.e(t2, "<this>");
SpecialGenericSignatures.a aVar = SpecialGenericSignatures.a;
if (!SpecialGenericSignatures.f13573k.contains(t2.getName())) {
n.m.t.a.p.e.a.c cVar = n.m.t.a.p.e.a.c.a;
if (!n.m.t.a.p.e.a.c.f14408e.contains(DescriptorUtilsKt.l(t2).getName())) {
return null;
}
}
if (t2 instanceof d0 ? true : t2 instanceof n.m.t.a.p.c.c0) {
return (T) DescriptorUtilsKt.b(t2, false, new n.i.a.l<CallableMemberDescriptor, Boolean>() {
@Override
public final Boolean invoke(CallableMemberDescriptor callableMemberDescriptor) {
n.i.b.h.e(callableMemberDescriptor, "it");
CallableMemberDescriptor l2 = DescriptorUtilsKt.l(callableMemberDescriptor);
n.i.b.h.e(l2, "callableMemberDescriptor");
n.m.t.a.p.e.a.c cVar2 = n.m.t.a.p.e.a.c.a;
boolean z = false;
if (n.m.t.a.p.e.a.c.f14408e.contains(l2.getName())) {
if (n.f.g.f(n.m.t.a.p.e.a.c.f14407d, DescriptorUtilsKt.c(l2)) && l2.g().isEmpty()) {
z = true;
break;
} else if (n.m.t.a.p.b.f.B(l2)) {
Collection<? extends CallableMemberDescriptor> f2 = l2.f();
n.i.b.h.d(f2, "overriddenDescriptors");
if (!f2.isEmpty()) {
for (CallableMemberDescriptor callableMemberDescriptor2 : f2) {
n.i.b.h.d(callableMemberDescriptor2, "it");
if (n.m.t.a.p.e.a.d.a(callableMemberDescriptor2)) {
z = true;
break;
}
}
}
}
}
return Boolean.valueOf(z);
}
}, 1);
}
if (t2 instanceof n.m.t.a.p.c.h0) {
return (T) DescriptorUtilsKt.b(t2, false, new n.i.a.l<CallableMemberDescriptor, Boolean>() {
@Override
public final Boolean invoke(CallableMemberDescriptor callableMemberDescriptor) {
n.i.b.h.e(callableMemberDescriptor, "it");
n.m.t.a.p.e.a.b bVar = n.m.t.a.p.e.a.b.f14406m;
final n.m.t.a.p.c.h0 h0Var = (n.m.t.a.p.c.h0) callableMemberDescriptor;
n.i.b.h.e(h0Var, "functionDescriptor");
boolean z = true;
return Boolean.valueOf((!n.m.t.a.p.b.f.B(h0Var) || DescriptorUtilsKt.b(h0Var, false, new n.i.a.l<CallableMemberDescriptor, Boolean>() {
{
super(1);
}
@Override
public final Boolean invoke(CallableMemberDescriptor callableMemberDescriptor2) {
n.i.b.h.e(callableMemberDescriptor2, "it");
SpecialGenericSignatures.a aVar2 = SpecialGenericSignatures.a;
Map<String, n.m.t.a.p.g.e> map = SpecialGenericSignatures.f13572j;
String c = n.m.t.a.p.e.b.n.c(n.m.t.a.p.c.h0.this);
Objects.requireNonNull(map, "null cannot be cast to non-null type kotlin.collections.Map<K, *>");
return Boolean.valueOf(map.containsKey(c));
}
}, 1) == null) ? false : false);
}
}, 1);
}
return null;
}
public static boolean u2(n.m.t.a.p.c.x0.b.e eVar) {
n.i.b.h.e(eVar, "this");
return false;
}
public static n.m.t.a.p.m.d1.h u3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.e eVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(eVar, "receiver");
if (eVar instanceof n.m.t.a.p.m.t) {
return ((n.m.t.a.p.m.t) eVar).f14752j;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + eVar + ", " + n.i.b.k.a(eVar.getClass())).toString());
}
public static void u4(View view, MaterialShapeDrawable materialShapeDrawable) {
i.j.a.e.m.a aVar = materialShapeDrawable.f3354i.b;
if (aVar != null && aVar.a) {
float d0 = i.c.a.c.y.d0(view);
MaterialShapeDrawable.b bVar = materialShapeDrawable.f3354i;
if (bVar.f3379n != d0) {
bVar.f3379n = d0;
materialShapeDrawable.L();
}
}
}
public static final <T> Iterable<T> v(T[] tArr) {
n.i.b.h.e(tArr, "<this>");
if (tArr.length == 0) {
return EmptyList.INSTANCE;
}
return new n.f.h(tArr);
}
public static n.m.t.a.p.c.v0.c0 v0(d0 d0Var, n.m.t.a.p.c.t0.f fVar, n.m.t.a.p.c.t0.f fVar2, boolean z, boolean z2, boolean z3, n.m.t.a.p.c.p pVar, i0 i0Var) {
if (fVar == null) {
d(8);
throw null;
} else if (fVar2 == null) {
d(9);
throw null;
} else if (pVar == null) {
d(10);
throw null;
} else if (i0Var != null) {
n.m.t.a.p.c.v0.c0 c0Var = new n.m.t.a.p.c.v0.c0(d0Var, fVar, d0Var.k(), pVar, z, z2, z3, CallableMemberDescriptor.Kind.DECLARATION, null, i0Var);
c0Var.L0(n.m.t.a.p.c.v0.c0.J0(c0Var, d0Var.b(), fVar2));
return c0Var;
} else {
d(11);
throw null;
}
}
public static final <T extends CallableMemberDescriptor> T v1(T t2) {
n.i.b.h.e(t2, "<this>");
T t3 = (T) u1(t2);
if (t3 == null) {
BuiltinMethodsWithSpecialGenericSignature builtinMethodsWithSpecialGenericSignature = BuiltinMethodsWithSpecialGenericSignature.f13561m;
n.m.t.a.p.g.e name = t2.getName();
n.i.b.h.d(name, "name");
if (builtinMethodsWithSpecialGenericSignature.b(name)) {
return (T) DescriptorUtilsKt.b(t2, false, new n.i.a.l<CallableMemberDescriptor, Boolean>() {
@Override
public final Boolean invoke(CallableMemberDescriptor callableMemberDescriptor) {
Object obj;
SpecialGenericSignatures.SpecialSignatureInfo specialSignatureInfo;
n.i.b.h.e(callableMemberDescriptor, "it");
boolean z = true;
if (n.m.t.a.p.b.f.B(callableMemberDescriptor)) {
BuiltinMethodsWithSpecialGenericSignature builtinMethodsWithSpecialGenericSignature2 = BuiltinMethodsWithSpecialGenericSignature.f13561m;
n.i.b.h.e(callableMemberDescriptor, "<this>");
SpecialGenericSignatures.SpecialSignatureInfo specialSignatureInfo2 = null;
if (SpecialGenericSignatures.f13568f.contains(callableMemberDescriptor.getName())) {
CallableMemberDescriptor b = DescriptorUtilsKt.b(callableMemberDescriptor, false, new n.i.a.l<CallableMemberDescriptor, Boolean>() {
@Override
public final Boolean invoke(CallableMemberDescriptor callableMemberDescriptor2) {
boolean z2;
n.i.b.h.e(callableMemberDescriptor2, "it");
if (callableMemberDescriptor2 instanceof n.m.t.a.p.c.r) {
BuiltinMethodsWithSpecialGenericSignature builtinMethodsWithSpecialGenericSignature3 = BuiltinMethodsWithSpecialGenericSignature.f13561m;
if (n.f.g.f(SpecialGenericSignatures.f13569g, n.m.t.a.p.e.b.n.c(callableMemberDescriptor2))) {
z2 = true;
return Boolean.valueOf(z2);
}
}
z2 = false;
return Boolean.valueOf(z2);
}
}, 1);
String c = b == null ? null : n.m.t.a.p.e.b.n.c(b);
if (c != null) {
n.i.b.h.e(c, "builtinSignature");
if (SpecialGenericSignatures.c.contains(c)) {
specialSignatureInfo = SpecialGenericSignatures.SpecialSignatureInfo.ONE_COLLECTION_PARAMETER;
} else {
Map<String, SpecialGenericSignatures.TypeSafeBarrierDescription> map = SpecialGenericSignatures.f13567e;
n.i.b.h.e(map, "<this>");
n.i.b.h.e(map, "<this>");
if (map instanceof n.f.q) {
obj = ((n.f.q) map).e(c);
} else {
SpecialGenericSignatures.TypeSafeBarrierDescription typeSafeBarrierDescription = map.get(c);
if (typeSafeBarrierDescription == null && !map.containsKey(c)) {
throw new NoSuchElementException("Key " + ((Object) c) + " is missing in the map.");
}
obj = typeSafeBarrierDescription;
}
if (((SpecialGenericSignatures.TypeSafeBarrierDescription) obj) == SpecialGenericSignatures.TypeSafeBarrierDescription.NULL) {
specialSignatureInfo = SpecialGenericSignatures.SpecialSignatureInfo.OBJECT_PARAMETER_GENERIC;
} else {
specialSignatureInfo = SpecialGenericSignatures.SpecialSignatureInfo.OBJECT_PARAMETER_NON_GENERIC;
}
}
specialSignatureInfo2 = specialSignatureInfo;
}
}
}
z = false;
return Boolean.valueOf(z);
}
}, 1);
}
return null;
}
return t3;
}
public static boolean v2(char c) {
return c >= '0' && c <= '9';
}
public static n.m.t.a.p.m.d1.h v3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.e F = cVar.F(gVar);
if (F == null) {
n.m.t.a.p.m.d1.h a2 = cVar.a(gVar);
n.i.b.h.c(a2);
return a2;
}
return cVar.f(F);
}
public static void v4(Path path, float f2) {
RectF rectF = new RectF();
path.computeBounds(rectF, true);
Matrix matrix = new Matrix();
float f3 = rectF.left;
float f4 = rectF.top;
matrix.setRectToRect(rectF, new RectF(f3, f4, rectF.right, f2 + f4), Matrix.ScaleToFit.FILL);
path.transform(matrix);
}
public static final <T> n.n.h<T> w(T[] tArr) {
n.i.b.h.e(tArr, "<this>");
return tArr.length == 0 ? n.n.d.a : new n.f.i(tArr);
}
public static int w0(int i2) {
Color.colorToHSV(i2, r0);
float[] fArr = {0.0f, 0.0f, fArr[2] * 0.8f};
return Color.HSVToColor(fArr);
}
public static l w1(n.m.t.a.p.m.b1.c cVar, k kVar, int i2) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
n0 n0Var = ((m0) kVar).getParameters().get(i2);
n.i.b.h.d(n0Var, "this.parameters[index]");
return n0Var;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static final boolean w2(x xVar) {
n.i.b.h.e(xVar, "<this>");
return xVar.M0() instanceof n.m.t.a.p.m.q;
}
public static final c0 w3(x xVar) {
n.i.b.h.e(xVar, "<this>");
z0 M0 = xVar.M0();
if (M0 instanceof n.m.t.a.p.m.t) {
return ((n.m.t.a.p.m.t) M0).f14752j;
}
if (M0 instanceof c0) {
return (c0) M0;
}
throw new NoWhenBranchMatchedException();
}
public static void w4(Path path, float f2, float f3, float f4) {
Matrix matrix = new Matrix();
matrix.setRotate(f2, f3, f4);
path.transform(matrix);
}
public static final c0 x(x xVar) {
n.i.b.h.e(xVar, "<this>");
z0 M0 = xVar.M0();
c0 c0Var = M0 instanceof c0 ? (c0) M0 : null;
if (c0Var != null) {
return c0Var;
}
throw new IllegalStateException(n.i.b.h.j("This is should be simple type: ", xVar).toString());
}
public static final String x0(m0 m0Var) {
StringBuilder sb = new StringBuilder();
y0(n.i.b.h.j("type: ", m0Var), sb);
y0(n.i.b.h.j("hashCode: ", Integer.valueOf(m0Var.hashCode())), sb);
y0(n.i.b.h.j("javaClass: ", m0Var.getClass().getCanonicalName()), sb);
for (n.m.t.a.p.c.i d2 = m0Var.d(); d2 != null; d2 = d2.c()) {
y0(n.i.b.h.j("fqName: ", DescriptorRenderer.a.p(d2)), sb);
y0(n.i.b.h.j("javaClass: ", d2.getClass().getCanonicalName()), sb);
}
String sb2 = sb.toString();
n.i.b.h.d(sb2, "StringBuilder().apply(builderAction).toString()");
return sb2;
}
public static final LazyJavaStaticClassScope x1(n.m.t.a.p.c.d dVar) {
n.m.t.a.p.c.d dVar2;
n.i.b.h.e(dVar, "<this>");
int i2 = DescriptorUtilsKt.a;
n.i.b.h.e(dVar, "<this>");
Iterator<x> it = dVar.r().J0().a().iterator();
while (true) {
if (!it.hasNext()) {
dVar2 = null;
break;
}
x next = it.next();
if (!n.m.t.a.p.b.f.z(next)) {
n.m.t.a.p.c.f d2 = next.J0().d();
if (n.m.t.a.p.j.d.o(d2)) {
Objects.requireNonNull(d2, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
dVar2 = (n.m.t.a.p.c.d) d2;
break;
}
}
}
if (dVar2 == null) {
return null;
}
MemberScope S = dVar2.S();
LazyJavaStaticClassScope lazyJavaStaticClassScope = S instanceof LazyJavaStaticClassScope ? (LazyJavaStaticClassScope) S : null;
return lazyJavaStaticClassScope == null ? x1(dVar2) : lazyJavaStaticClassScope;
}
public static boolean x2(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.e F = cVar.F(gVar);
return (F == null ? null : cVar.n0(F)) != null;
}
public static n.m.t.a.p.m.d1.g x3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.b bVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(bVar, "receiver");
if (bVar instanceof n.m.t.a.p.m.b1.g) {
return ((n.m.t.a.p.m.b1.g) bVar).f14715l;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + bVar + ", " + n.i.b.k.a(bVar.getClass())).toString());
}
public static void x4(Path path, float f2) {
RectF rectF = new RectF();
path.computeBounds(rectF, true);
y4(path, f2, rectF.centerX(), rectF.centerY());
}
public static n.m.t.a.p.m.d1.h y(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof x) {
z0 M0 = ((x) gVar).M0();
if (M0 instanceof c0) {
return (c0) M0;
}
return null;
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static final StringBuilder y0(String str, StringBuilder sb) {
n.i.b.h.e(str, "<this>");
sb.append(str);
n.i.b.h.d(sb, "append(value)");
sb.append('\n');
n.i.b.h.d(sb, "append('\\n')");
return sb;
}
public static PrimitiveType y1(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
Objects.requireNonNull(d2, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
return n.m.t.a.p.b.f.t((n.m.t.a.p.c.d) d2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static final boolean y2(n.m.t.a.p.c.x xVar, n.m.t.a.p.g.c cVar) {
n.i.b.h.e(xVar, "<this>");
n.i.b.h.e(cVar, "fqName");
return xVar instanceof n.m.t.a.p.c.y ? ((n.m.t.a.p.c.y) xVar).c(cVar) : ((ArrayList) N3(xVar, cVar)).isEmpty();
}
public static n.m.t.a.p.m.d1.g y3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof z0) {
return f0.b((z0) gVar, false, 1);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static void y4(Path path, float f2, float f3, float f4) {
Matrix matrix = new Matrix();
matrix.setScale(f2, 1.0f, f3, f4);
path.transform(matrix);
}
public static j z(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
if (gVar instanceof x) {
return n.m.t.a.p.m.e1.a.n((x) gVar);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + gVar + ", " + n.i.b.k.a(gVar.getClass())).toString());
}
public static final n.m.t.a.p.c.p z0(n.m.t.a.p.k.b.s sVar, ProtoBuf$Visibility protoBuf$Visibility) {
n.i.b.h.e(sVar, "<this>");
switch (protoBuf$Visibility == null ? -1 : n.m.t.a.p.k.b.t.b[protoBuf$Visibility.ordinal()]) {
case 1:
n.m.t.a.p.c.p pVar = n.m.t.a.p.c.o.f14239d;
n.i.b.h.d(pVar, "INTERNAL");
return pVar;
case 2:
n.m.t.a.p.c.p pVar2 = n.m.t.a.p.c.o.a;
n.i.b.h.d(pVar2, "PRIVATE");
return pVar2;
case 3:
n.m.t.a.p.c.p pVar3 = n.m.t.a.p.c.o.b;
n.i.b.h.d(pVar3, "PRIVATE_TO_THIS");
return pVar3;
case 4:
n.m.t.a.p.c.p pVar4 = n.m.t.a.p.c.o.c;
n.i.b.h.d(pVar4, "PROTECTED");
return pVar4;
case 5:
n.m.t.a.p.c.p pVar5 = n.m.t.a.p.c.o.f14240e;
n.i.b.h.d(pVar5, "PUBLIC");
return pVar5;
case 6:
n.m.t.a.p.c.p pVar6 = n.m.t.a.p.c.o.f14241f;
n.i.b.h.d(pVar6, "LOCAL");
return pVar6;
default:
n.m.t.a.p.c.p pVar7 = n.m.t.a.p.c.o.a;
n.i.b.h.d(pVar7, "PRIVATE");
return pVar7;
}
}
public static PrimitiveType z1(n.m.t.a.p.m.b1.c cVar, k kVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(kVar, "receiver");
if (kVar instanceof m0) {
n.m.t.a.p.c.f d2 = ((m0) kVar).d();
Objects.requireNonNull(d2, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
return n.m.t.a.p.b.f.v((n.m.t.a.p.c.d) d2);
}
throw new IllegalArgumentException(("ClassicTypeSystemContext couldn't handle: " + kVar + ", " + n.i.b.k.a(kVar.getClass())).toString());
}
public static boolean z2(n.m.t.a.p.c.r rVar) {
return rVar.h() == CallableMemberDescriptor.Kind.SYNTHESIZED && n.m.t.a.p.j.d.q(rVar.c());
}
public static n.m.t.a.p.m.d1.g z3(n.m.t.a.p.m.b1.c cVar, n.m.t.a.p.m.d1.g gVar) {
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.i.b.h.e(cVar, "this");
n.i.b.h.e(gVar, "receiver");
n.m.t.a.p.m.d1.h a2 = cVar.a(gVar);
return a2 == null ? gVar : cVar.c(a2, true);
}
public static void z4(Path path, float f2) {
RectF rectF = new RectF();
path.computeBounds(rectF, true);
A4(path, f2, rectF.centerX(), rectF.centerY());
}
}