Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
dasemu committed 2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 files changed
+1086536

No files matched your search

@@ -0,0 +1,16 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.internal.Intrinsics;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/full/IllegalCallableAccessException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "Ljava/lang/IllegalAccessException;", "(Ljava/lang/IllegalAccessException;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class IllegalCallableAccessException extends Exception {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IllegalCallableAccessException(IllegalAccessException cause) {
super(cause);
Intrinsics.checkNotNullParameter(cause, "cause");
}
}
@@ -0,0 +1,16 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.internal.Intrinsics;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/full/IllegalPropertyDelegateAccessException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "Ljava/lang/IllegalAccessException;", "(Ljava/lang/IllegalAccessException;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class IllegalPropertyDelegateAccessException extends Exception {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IllegalPropertyDelegateAccessException(IllegalAccessException cause) {
super("Cannot obtain the delegate of a non-accessible property. Use \"isAccessible = true\" to make the property accessible", cause);
Intrinsics.checkNotNullParameter(cause, "cause");
}
}
@@ -0,0 +1,71 @@
package kotlin.reflect.full;
import java.lang.annotation.Annotation;
import java.lang.annotation.Repeatable;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0002\b\u0003\bÂ\u0002\u0018\u00002\u00020\u0001:\u0001\u000eB\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J \u0010\n\u001a\f\u0012\u0006\b\u0001\u0012\u00020\f\u0018\u00010\u000b2\u000e\u0010\r\u001a\n\u0012\u0006\b\u0001\u0012\u00020\f0\u000bR\u001c\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\b¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/full/Java8RepeatableContainerLoader;", "", "()V", "cache", "Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "getCache", "()Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "setCache", "(Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;)V", "buildCache", "loadRepeatableContainer", "Ljava/lang/Class;", "", "klass", "Cache", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKAnnotatedElements.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/Java8RepeatableContainerLoader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,102:1\n1#2:103\n*E\n"})
/* loaded from: classes3.dex */
final class Java8RepeatableContainerLoader {
public static final Java8RepeatableContainerLoader INSTANCE = new Java8RepeatableContainerLoader();
private static Cache cache;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B!\u0012\u0010\u0010\u0002\u001a\f\u0012\u0006\b\u0001\u0012\u00020\u0004\u0018\u00010\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007R\u001b\u0010\u0002\u001a\f\u0012\u0006\b\u0001\u0012\u00020\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\f"}, d2 = {"Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "", "repeatableClass", "Ljava/lang/Class;", "", "valueMethod", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/lang/reflect/Method;)V", "getRepeatableClass", "()Ljava/lang/Class;", "getValueMethod", "()Ljava/lang/reflect/Method;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Cache {
private final Class<? extends Annotation> repeatableClass;
private final Method valueMethod;
public Cache(Class<? extends Annotation> cls, Method method) {
this.repeatableClass = cls;
this.valueMethod = method;
}
public final Class<? extends Annotation> getRepeatableClass() {
return this.repeatableClass;
}
public final Method getValueMethod() {
return this.valueMethod;
}
}
private Java8RepeatableContainerLoader() {
}
private final Cache buildCache() {
try {
Intrinsics.checkNotNull(Repeatable.class, "null cannot be cast to non-null type java.lang.Class<out kotlin.Annotation>");
return new Cache(Repeatable.class, Repeatable.class.getMethod("value", new Class[0]));
} catch (ClassNotFoundException unused) {
return new Cache(null, null);
}
}
public final Class<? extends Annotation> loadRepeatableContainer(Class<? extends Annotation> klass) {
Annotation annotation;
Method valueMethod;
Intrinsics.checkNotNullParameter(klass, "klass");
Cache cache2 = cache;
if (cache2 == null) {
synchronized (this) {
cache2 = cache;
if (cache2 == null) {
cache2 = INSTANCE.buildCache();
cache = cache2;
}
}
}
Class repeatableClass = cache2.getRepeatableClass();
if (repeatableClass == null || (annotation = klass.getAnnotation(repeatableClass)) == null || (valueMethod = cache2.getValueMethod()) == null) {
return null;
}
Object invoke = valueMethod.invoke(annotation, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type java.lang.Class<out kotlin.Annotation>");
return (Class) invoke;
}
}
@@ -0,0 +1,108 @@
package kotlin.reflect.full;
import java.lang.annotation.Annotation;
import java.util.Iterator;
import java.util.List;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.WasExperimental;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KAnnotatedElement;
import kotlin.reflect.KClass;
@Metadata(d1 = {"\u0000\"\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u001a \u0010\u0000\u001a\u0004\u0018\u0001H\u0001\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b¢\u0006\u0002\u0010\u0004\u001a\u001f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0006\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b\u001a*\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0006\"\b\b\u0000\u0010\u0001*\u00020\u0002*\u00020\u00032\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00010\bH\u0007\u001a\u0019\u0010\t\u001a\u00020\n\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b¨\u0006\u000b"}, d2 = {"findAnnotation", "T", "", "Lkotlin/reflect/KAnnotatedElement;", "(Lkotlin/reflect/KAnnotatedElement;)Ljava/lang/annotation/Annotation;", "findAnnotations", "", "klass", "Lkotlin/reflect/KClass;", "hasAnnotation", "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KAnnotatedElements")
@SourceDebugExtension({"SMAP\nKAnnotatedElements.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/KAnnotatedElements\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,102:1\n20#1:105\n288#2,2:103\n288#2,2:106\n288#2,2:108\n*S KotlinDebug\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/KAnnotatedElements\n*L\n29#1:105\n20#1:103,2\n29#1:106,2\n62#1:108,2\n*E\n"})
/* loaded from: classes3.dex */
public final class KAnnotatedElements {
@SinceKotlin(version = "1.1")
public static final /* synthetic */ <T extends Annotation> T findAnnotation(KAnnotatedElement kAnnotatedElement) {
Object obj;
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
Annotation annotation = (Annotation) obj;
Intrinsics.reifiedOperationMarker(3, "T");
if (annotation != null) {
break;
}
}
Intrinsics.reifiedOperationMarker(1, "T?");
return (T) obj;
}
@SinceKotlin(version = "1.7")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final /* synthetic */ <T extends Annotation> List<T> findAnnotations(KAnnotatedElement kAnnotatedElement) {
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Intrinsics.reifiedOperationMarker(4, "T");
return findAnnotations(kAnnotatedElement, Reflection.getOrCreateKotlinClass(Annotation.class));
}
@SinceKotlin(version = "1.4")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final /* synthetic */ <T extends Annotation> boolean hasAnnotation(KAnnotatedElement kAnnotatedElement) {
Object obj;
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
Annotation annotation = (Annotation) obj;
Intrinsics.reifiedOperationMarker(3, "T");
if (annotation != null) {
break;
}
}
Intrinsics.reifiedOperationMarker(1, "T?");
return ((Annotation) obj) != null;
}
@SinceKotlin(version = "1.7")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final <T extends Annotation> List<T> findAnnotations(KAnnotatedElement kAnnotatedElement, KClass<T> klass) {
Object obj;
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Intrinsics.checkNotNullParameter(klass, "klass");
List<T> filterIsInstance = CollectionsKt.filterIsInstance(kAnnotatedElement.getAnnotations(), JvmClassMappingKt.getJavaClass((KClass) klass));
if (!filterIsInstance.isEmpty()) {
return filterIsInstance;
}
Class<? extends Annotation> loadRepeatableContainer = Java8RepeatableContainerLoader.INSTANCE.loadRepeatableContainer(JvmClassMappingKt.getJavaClass((KClass) klass));
if (loadRepeatableContainer != null) {
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (Intrinsics.areEqual(JvmClassMappingKt.getJavaClass(JvmClassMappingKt.getAnnotationClass((Annotation) obj)), loadRepeatableContainer)) {
break;
}
}
Annotation annotation = (Annotation) obj;
if (annotation != null) {
Object invoke = annotation.getClass().getMethod("value", new Class[0]).invoke(annotation, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Array<T of kotlin.reflect.full.KAnnotatedElements.findAnnotations>");
return ArraysKt.asList((Annotation[]) invoke);
}
}
return CollectionsKt.emptyList();
}
}
@@ -0,0 +1,28 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.IntCompanionObject;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
@DebugMetadata(c = "kotlin.reflect.full.KCallables", f = "KCallables.kt", i = {0, 0}, l = {56}, m = "callSuspend", n = {"$this$callSuspend", "args"}, s = {"L$0", "L$1"})
/* loaded from: classes3.dex */
public final class KCallables$callSuspend$1<R> extends ContinuationImpl {
Object L$0;
Object L$1;
int label;
/* synthetic */ Object result;
public KCallables$callSuspend$1(Continuation<? super KCallables$callSuspend$1> continuation) {
super(continuation);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.result = obj;
this.label |= IntCompanionObject.MIN_VALUE;
return KCallables.callSuspend(null, null, this);
}
}
@@ -0,0 +1,29 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.IntCompanionObject;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
@DebugMetadata(c = "kotlin.reflect.full.KCallables", f = "KCallables.kt", i = {0, 0, 0}, l = {74}, m = "callSuspendBy", n = {"$this$callSuspendBy", "args", "kCallable"}, s = {"L$0", "L$1", "L$2"})
/* loaded from: classes3.dex */
public final class KCallables$callSuspendBy$1<R> extends ContinuationImpl {
Object L$0;
Object L$1;
Object L$2;
int label;
/* synthetic */ Object result;
public KCallables$callSuspendBy$1(Continuation<? super KCallables$callSuspendBy$1> continuation) {
super(continuation);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.result = obj;
this.label |= IntCompanionObject.MIN_VALUE;
return KCallables.callSuspendBy(null, null, this);
}
}
@@ -0,0 +1,316 @@
package kotlin.reflect.full;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KParameter;
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\u001a6\u0010\u000f\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u00100\u00022\u0016\u0010\u0011\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00130\u0012\"\u0004\u0018\u00010\u0013H\u0087@¢\u0006\u0002\u0010\u0014\u001a4\u0010\u0015\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u00100\u00022\u0014\u0010\u0011\u001a\u0010\u0012\u0004\u0012\u00020\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00130\u0016H\u0087@¢\u0006\u0002\u0010\u0017\u001a\u001a\u0010\u0018\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0019\u001a\u00020\u001aH\u0007\"$\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"$\u0010\u0007\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\b\u0010\u0004\u001a\u0004\b\t\u0010\u0006\"(\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00010\u000b*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\f\u0010\u0004\u001a\u0004\b\r\u0010\u000e¨\u0006\u001b"}, d2 = {"extensionReceiverParameter", "Lkotlin/reflect/KParameter;", "Lkotlin/reflect/KCallable;", "getExtensionReceiverParameter$annotations", "(Lkotlin/reflect/KCallable;)V", "getExtensionReceiverParameter", "(Lkotlin/reflect/KCallable;)Lkotlin/reflect/KParameter;", "instanceParameter", "getInstanceParameter$annotations", "getInstanceParameter", "valueParameters", "", "getValueParameters$annotations", "getValueParameters", "(Lkotlin/reflect/KCallable;)Ljava/util/List;", "callSuspend", "R", "args", "", "", "(Lkotlin/reflect/KCallable;[Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "callSuspendBy", "", "(Lkotlin/reflect/KCallable;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "findParameterByName", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KCallables")
@SourceDebugExtension({"SMAP\nKCallables.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KCallables.kt\nkotlin/reflect/full/KCallables\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,82:1\n661#2,11:83\n661#2,11:94\n766#2:105\n857#2,2:106\n661#2,11:108\n1#3:119\n*S KotlinDebug\n*F\n+ 1 KCallables.kt\nkotlin/reflect/full/KCallables\n*L\n23#1:83,11\n31#1:94,11\n38#1:105\n38#1:106,2\n45#1:108,11\n*E\n"})
/* loaded from: classes3.dex */
public final class KCallables {
/* JADX WARN: Removed duplicated region for block: B:20:0x0039 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@kotlin.SinceKotlin(version = "1.3")
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final <R> java.lang.Object callSuspend(kotlin.reflect.KCallable<? extends R> r4, java.lang.Object[] r5, kotlin.coroutines.Continuation<? super R> r6) {
/*
boolean r0 = r6 instanceof kotlin.reflect.full.KCallables$callSuspend$1
if (r0 == 0) goto L13
r0 = r6
kotlin.reflect.full.KCallables$callSuspend$1 r0 = (kotlin.reflect.full.KCallables$callSuspend$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.label = r1
goto L18
L13:
kotlin.reflect.full.KCallables$callSuspend$1 r0 = new kotlin.reflect.full.KCallables$callSuspend$1
r0.<init>(r6)
L18:
java.lang.Object r6 = r0.result
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.label
r3 = 1
if (r2 == 0) goto L39
if (r2 != r3) goto L31
java.lang.Object r4 = r0.L$1
java.lang.Object[] r4 = (java.lang.Object[]) r4
java.lang.Object r4 = r0.L$0
kotlin.reflect.KCallable r4 = (kotlin.reflect.KCallable) r4
kotlin.ResultKt.throwOnFailure(r6)
goto L7c
L31:
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
r4.<init>(r5)
throw r4
L39:
kotlin.ResultKt.throwOnFailure(r6)
boolean r6 = r4.isSuspend()
if (r6 != 0) goto L4c
int r6 = r5.length
java.lang.Object[] r5 = java.util.Arrays.copyOf(r5, r6)
java.lang.Object r4 = r4.call(r5)
return r4
L4c:
boolean r6 = r4 instanceof kotlin.reflect.KFunction
if (r6 == 0) goto L9e
r0.L$0 = r4
r0.L$1 = r5
r0.label = r3
kotlin.jvm.internal.SpreadBuilder r6 = new kotlin.jvm.internal.SpreadBuilder
r2 = 2
r6.<init>(r2)
r6.addSpread(r5)
r6.add(r0)
int r5 = r6.size()
java.lang.Object[] r5 = new java.lang.Object[r5]
java.lang.Object[] r5 = r6.toArray(r5)
java.lang.Object r6 = r4.call(r5)
java.lang.Object r5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
if (r6 != r5) goto L79
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
L79:
if (r6 != r1) goto L7c
return r1
L7c:
kotlin.reflect.KType r5 = r4.getReturnType()
kotlin.reflect.KClassifier r5 = r5.getClassifier()
java.lang.Class<kotlin.Unit> r0 = kotlin.Unit.class
kotlin.reflect.KClass r0 = kotlin.jvm.internal.Reflection.getOrCreateKotlinClass(r0)
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r5, r0)
if (r5 == 0) goto L9d
kotlin.reflect.KType r4 = r4.getReturnType()
boolean r4 = r4.isMarkedNullable()
if (r4 != 0) goto L9d
kotlin.Unit r4 = kotlin.Unit.INSTANCE
return r4
L9d:
return r6
L9e:
java.lang.IllegalArgumentException r5 = new java.lang.IllegalArgumentException
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "Cannot callSuspend on a property "
r6.<init>(r0)
r6.append(r4)
java.lang.String r4 = ": suspend properties are not supported yet"
r6.append(r4)
java.lang.String r4 = r6.toString()
r5.<init>(r4)
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.full.KCallables.callSuspend(kotlin.reflect.KCallable, java.lang.Object[], kotlin.coroutines.Continuation):java.lang.Object");
}
/* JADX WARN: Removed duplicated region for block: B:20:0x003d */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@kotlin.SinceKotlin(version = "1.3")
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final <R> java.lang.Object callSuspendBy(kotlin.reflect.KCallable<? extends R> r4, java.util.Map<kotlin.reflect.KParameter, ? extends java.lang.Object> r5, kotlin.coroutines.Continuation<? super R> r6) {
/*
boolean r0 = r6 instanceof kotlin.reflect.full.KCallables$callSuspendBy$1
if (r0 == 0) goto L13
r0 = r6
kotlin.reflect.full.KCallables$callSuspendBy$1 r0 = (kotlin.reflect.full.KCallables$callSuspendBy$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.label = r1
goto L18
L13:
kotlin.reflect.full.KCallables$callSuspendBy$1 r0 = new kotlin.reflect.full.KCallables$callSuspendBy$1
r0.<init>(r6)
L18:
java.lang.Object r6 = r0.result
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.label
r3 = 1
if (r2 == 0) goto L3d
if (r2 != r3) goto L35
java.lang.Object r4 = r0.L$2
kotlin.reflect.jvm.internal.KCallableImpl r4 = (kotlin.reflect.jvm.internal.KCallableImpl) r4
java.lang.Object r4 = r0.L$1
java.util.Map r4 = (java.util.Map) r4
java.lang.Object r4 = r0.L$0
kotlin.reflect.KCallable r4 = (kotlin.reflect.KCallable) r4
kotlin.ResultKt.throwOnFailure(r6)
goto L6d
L35:
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
r4.<init>(r5)
throw r4
L3d:
kotlin.ResultKt.throwOnFailure(r6)
boolean r6 = r4.isSuspend()
if (r6 != 0) goto L4b
java.lang.Object r4 = r4.callBy(r5)
return r4
L4b:
boolean r6 = r4 instanceof kotlin.reflect.KFunction
if (r6 == 0) goto La3
kotlin.reflect.jvm.internal.KCallableImpl r6 = kotlin.reflect.jvm.internal.UtilKt.asKCallableImpl(r4)
if (r6 == 0) goto L8f
r0.L$0 = r4
r0.L$1 = r5
r0.L$2 = r6
r0.label = r3
java.lang.Object r6 = r6.callDefaultMethod$kotlin_reflection(r5, r0)
java.lang.Object r5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
if (r6 != r5) goto L6a
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
L6a:
if (r6 != r1) goto L6d
return r1
L6d:
kotlin.reflect.KType r5 = r4.getReturnType()
kotlin.reflect.KClassifier r5 = r5.getClassifier()
java.lang.Class<kotlin.Unit> r0 = kotlin.Unit.class
kotlin.reflect.KClass r0 = kotlin.jvm.internal.Reflection.getOrCreateKotlinClass(r0)
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r5, r0)
if (r5 == 0) goto L8e
kotlin.reflect.KType r4 = r4.getReturnType()
boolean r4 = r4.isMarkedNullable()
if (r4 != 0) goto L8e
kotlin.Unit r4 = kotlin.Unit.INSTANCE
return r4
L8e:
return r6
L8f:
kotlin.reflect.jvm.internal.KotlinReflectionInternalError r5 = new kotlin.reflect.jvm.internal.KotlinReflectionInternalError
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "This callable does not support a default call: "
r6.<init>(r0)
r6.append(r4)
java.lang.String r4 = r6.toString()
r5.<init>(r4)
throw r5
La3:
java.lang.IllegalArgumentException r5 = new java.lang.IllegalArgumentException
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "Cannot callSuspendBy on a property "
r6.<init>(r0)
r6.append(r4)
java.lang.String r4 = ": suspend properties are not supported yet"
r6.append(r4)
java.lang.String r4 = r6.toString()
r5.<init>(r4)
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.full.KCallables.callSuspendBy(kotlin.reflect.KCallable, java.util.Map, kotlin.coroutines.Continuation):java.lang.Object");
}
@SinceKotlin(version = "1.1")
public static final KParameter findParameterByName(KCallable<?> kCallable, String name) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
Intrinsics.checkNotNullParameter(name, "name");
Iterator<T> it = kCallable.getParameters().iterator();
Object obj = null;
boolean z3 = false;
Object obj2 = null;
while (true) {
if (it.hasNext()) {
Object next = it.next();
if (Intrinsics.areEqual(((KParameter) next).getName(), name)) {
if (z3) {
break;
}
z3 = true;
obj2 = next;
}
} else if (z3) {
obj = obj2;
}
}
return (KParameter) obj;
}
public static final KParameter getExtensionReceiverParameter(KCallable<?> kCallable) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
Iterator<T> it = kCallable.getParameters().iterator();
Object obj = null;
boolean z3 = false;
Object obj2 = null;
while (true) {
if (it.hasNext()) {
Object next = it.next();
if (((KParameter) next).getKind() == KParameter.Kind.EXTENSION_RECEIVER) {
if (z3) {
break;
}
z3 = true;
obj2 = next;
}
} else if (z3) {
obj = obj2;
}
}
return (KParameter) obj;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getExtensionReceiverParameter$annotations(KCallable kCallable) {
}
public static final KParameter getInstanceParameter(KCallable<?> kCallable) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
Iterator<T> it = kCallable.getParameters().iterator();
Object obj = null;
boolean z3 = false;
Object obj2 = null;
while (true) {
if (it.hasNext()) {
Object next = it.next();
if (((KParameter) next).getKind() == KParameter.Kind.INSTANCE) {
if (z3) {
break;
}
z3 = true;
obj2 = next;
}
} else if (z3) {
obj = obj2;
}
}
return (KParameter) obj;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getInstanceParameter$annotations(KCallable kCallable) {
}
public static final List<KParameter> getValueParameters(KCallable<?> kCallable) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
List<KParameter> parameters = kCallable.getParameters();
ArrayList arrayList = new ArrayList();
for (Object obj : parameters) {
if (((KParameter) obj).getKind() == KParameter.Kind.VALUE) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getValueParameters$annotations(KCallable kCallable) {
}
}
@@ -0,0 +1,575 @@
package kotlin.reflect.full;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.TypeCastException;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.KFunction;
import kotlin.reflect.KParameter;
import kotlin.reflect.KProperty0;
import kotlin.reflect.KProperty1;
import kotlin.reflect.KProperty2;
import kotlin.reflect.KType;
import kotlin.reflect.jvm.internal.KCallableImpl;
import kotlin.reflect.jvm.internal.KClassImpl;
import kotlin.reflect.jvm.internal.KFunctionImpl;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
import kotlin.reflect.jvm.internal.impl.types.Variance;
import kotlin.reflect.jvm.internal.impl.utils.DFS;
@Metadata(d1 = {"\u0000Z\n\u0000\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\r\u001a+\u0010S\u001a\u0002H\u001d\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00022\b\u0010T\u001a\u0004\u0018\u00010\u0010H\u0007¢\u0006\u0002\u0010U\u001a!\u0010V\u001a\u0002H\u001d\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u0002H\u0007¢\u0006\u0002\u0010\u0013\u001a\u001c\u0010W\u001a\u000203*\u0006\u0012\u0002\b\u00030\u00022\n\u0010X\u001a\u0006\u0012\u0002\b\u00030\u0002H\u0007\u001a\u001c\u0010Y\u001a\u000203*\u0006\u0012\u0002\b\u00030\u00022\n\u0010Z\u001a\u0006\u0012\u0002\b\u00030\u0002H\u0007\u001a-\u0010[\u001a\u0004\u0018\u0001H\u001d\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00022\b\u0010T\u001a\u0004\u0018\u00010\u0010H\u0007¢\u0006\u0002\u0010U\",\u0010\u0000\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"(\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\t\u0010\u0004\u001a\u0004\b\n\u0010\u0006\"(\u0010\u000b\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0002*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\f\u0010\u0004\u001a\u0004\b\r\u0010\u000e\"$\u0010\u000f\u001a\u0004\u0018\u00010\u0010*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0011\u0010\u0004\u001a\u0004\b\u0012\u0010\u0013\",\u0010\u0014\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0016\u0010\u0004\u001a\u0004\b\u0017\u0010\u0006\",\u0010\u0018\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0019\u0010\u0004\u001a\u0004\b\u001a\u0010\u0006\"B\u0010\u001b\u001a\u0016\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u001c0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u001e\u0010\u0004\u001a\u0004\b\u001f\u0010\u0006\",\u0010 \u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b!\u0010\u0004\u001a\u0004\b\"\u0010\u0006\">\u0010#\u001a\u0012\u0012\u000e\u0012\f\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u00030$0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b%\u0010\u0004\u001a\u0004\b&\u0010\u0006\",\u0010'\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030(0\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b)\u0010\u0004\u001a\u0004\b*\u0010\u0006\"\"\u0010+\u001a\u00020\b*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b,\u0010\u0004\u001a\u0004\b-\u0010.\",\u0010/\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b0\u0010\u0004\u001a\u0004\b1\u0010\u0006\"\u001c\u00102\u001a\u000203*\u0006\u0012\u0002\b\u0003048BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b2\u00105\"\u001c\u00106\u001a\u000203*\u0006\u0012\u0002\b\u0003048BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b6\u00105\",\u00107\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b8\u0010\u0004\u001a\u0004\b9\u0010\u0006\"B\u0010:\u001a\u0016\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u001c0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b;\u0010\u0004\u001a\u0004\b<\u0010\u0006\",\u0010=\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b>\u0010\u0004\u001a\u0004\b?\u0010\u0006\">\u0010@\u001a\u0012\u0012\u000e\u0012\f\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u00030$0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\bA\u0010\u0004\u001a\u0004\bB\u0010\u0006\"6\u0010C\u001a\n\u0012\u0004\u0012\u0002H\u001d\u0018\u00010\u0015\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\bD\u0010\u0004\u001a\u0004\bE\u0010F\",\u0010G\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u000Line truncated
@JvmName(name = "KClasses")
@SourceDebugExtension({"SMAP\nKClasses.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KClasses.kt\nkotlin/reflect/full/KClasses\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,281:1\n288#2,2:282\n288#2,2:284\n800#2,11:286\n800#2,11:297\n766#2:308\n857#2,2:309\n766#2:311\n857#2,2:312\n800#2,11:314\n766#2:325\n857#2,2:326\n766#2:328\n857#2,2:329\n766#2:331\n857#2,2:332\n766#2:334\n857#2,2:335\n766#2:337\n857#2,2:338\n766#2:340\n857#2,2:341\n766#2:343\n857#2,2:344\n1603#2,9:346\n1855#2:355\n1856#2:357\n1612#2:358\n1549#2:359\n1620#2,3:360\n661#2,4:363\n1726#2,3:367\n665#2,7:370\n1549#2:377\n1620#2,3:378\n1#3:356\n*S KotlinDebug\n*F\n+ 1 KClasses.kt\nkotlin/reflect/full/KClasses\n*L\n36#1:282,2\n47#1:284,2\n89#1:286,11\n96#1:297,11\n103#1:308\n103#1:309,2\n110#1:311\n110#1:312,2\n119#1:314,11\n126#1:325\n126#1:326,2\n133#1:328\n133#1:329,2\n141#1:331\n141#1:332,2\n148#1:334\n148#1:335,2\n155#1:337\n155#1:338,2\n162#1:340\n162#1:341,2\n169#1:343\n169#1:344,2\n184#1:346,9\n184#1:355\n184#1:357\n184#1:358\n223#1:359\n223#1:360,3\n276#1:363,4\n276#1:367,3\n276#1:370,7\n200#1:377\n200#1:378,3\n184#1:356\n*E\n"})
/* loaded from: classes3.dex */
public final class KClasses {
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
public static final Iterable _get_allSupertypes_$lambda$14(KType kType) {
int collectionSizeOrDefault;
KClassifier classifier = kType.getClassifier();
Function0 function0 = null;
Object[] objArr = 0;
KClass kClass = classifier instanceof KClass ? (KClass) classifier : null;
if (kClass == null) {
throw new KotlinReflectionInternalError("Supertype not a class: " + kType);
}
List<KType> supertypes = kClass.getSupertypes();
if (kType.getArguments().isEmpty()) {
return supertypes;
}
Intrinsics.checkNotNull(kType, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
TypeSubstitutor create = TypeSubstitutor.create(((KTypeImpl) kType).getType());
List<KType> list = supertypes;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (KType kType2 : list) {
Intrinsics.checkNotNull(kType2, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
KotlinType substitute = create.substitute(((KTypeImpl) kType2).getType(), Variance.INVARIANT);
if (substitute == null) {
throw new KotlinReflectionInternalError("Type substitution failed: " + kType2 + " (" + kType + ')');
}
Intrinsics.checkNotNull(substitute);
arrayList.add(new KTypeImpl(substitute, function0, 2, objArr == true ? 1 : 0));
}
return arrayList;
}
/* JADX WARN: Multi-variable type inference failed */
@SinceKotlin(version = "1.1")
public static final <T> T cast(KClass<T> kClass, Object obj) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
if (kClass.isInstance(obj)) {
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of kotlin.reflect.full.KClasses.cast");
return obj;
}
throw new TypeCastException("Value cannot be cast to " + kClass.getQualifiedName());
}
@SinceKotlin(version = "1.1")
public static final <T> T createInstance(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Iterator<T> it = kClass.getConstructors().iterator();
T t2 = null;
boolean z3 = false;
T t4 = null;
while (true) {
if (it.hasNext()) {
T next = it.next();
List<KParameter> parameters = ((KFunction) next).getParameters();
if (!(parameters instanceof Collection) || !parameters.isEmpty()) {
Iterator<T> it2 = parameters.iterator();
while (it2.hasNext()) {
if (!((KParameter) it2.next()).isOptional()) {
break;
}
}
}
if (z3) {
break;
}
z3 = true;
t4 = next;
} else if (z3) {
t2 = t4;
}
}
KFunction kFunction = (KFunction) t2;
if (kFunction != null) {
return (T) kFunction.callBy(MapsKt.emptyMap());
}
throw new IllegalArgumentException("Class should have a single no-arg constructor: " + kClass);
}
public static final Collection<KClass<?>> getAllSuperclasses(KClass<?> kClass) {
int collectionSizeOrDefault;
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KType> allSupertypes = getAllSupertypes(kClass);
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(allSupertypes, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (KType kType : allSupertypes) {
KClassifier classifier = kType.getClassifier();
KClass kClass2 = classifier instanceof KClass ? (KClass) classifier : null;
if (kClass2 == null) {
throw new KotlinReflectionInternalError("Supertype not a class: " + kType);
}
arrayList.add(kClass2);
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getAllSuperclasses$annotations(KClass kClass) {
}
public static final Collection<KType> getAllSupertypes(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Object dfs = DFS.dfs(kClass.getSupertypes(), new DFS.Neighbors() { // from class: kotlin.reflect.full.KClasses$$Lambda$0
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.Neighbors
public Iterable getNeighbors(Object obj) {
Iterable _get_allSupertypes_$lambda$14;
_get_allSupertypes_$lambda$14 = KClasses._get_allSupertypes_$lambda$14((KType) obj);
return _get_allSupertypes_$lambda$14;
}
}, new DFS.VisitedWithSet(), new DFS.NodeHandlerWithListResult<KType, KType>() { // from class: kotlin.reflect.full.KClasses$allSupertypes$2
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler, kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler
public boolean beforeChildren(KType current) {
Intrinsics.checkNotNullParameter(current, "current");
((LinkedList) this.result).add(current);
return true;
}
});
Intrinsics.checkNotNullExpressionValue(dfs, "dfs(...)");
return (Collection) dfs;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getAllSupertypes$annotations(KClass kClass) {
}
public static final KClass<?> getCompanionObject(KClass<?> kClass) {
Object obj;
Intrinsics.checkNotNullParameter(kClass, "<this>");
Iterator<T> it = kClass.getNestedClasses().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
KClass kClass2 = (KClass) obj;
Intrinsics.checkNotNull(kClass2, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<*>");
if (((KClassImpl) kClass2).getDescriptor().isCompanionObject()) {
break;
}
}
return (KClass) obj;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getCompanionObject$annotations(KClass kClass) {
}
public static final Object getCompanionObjectInstance(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
KClass<?> companionObject = getCompanionObject(kClass);
if (companionObject != null) {
return companionObject.getObjectInstance();
}
return null;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getCompanionObjectInstance$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getDeclaredFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : declaredMembers) {
if (obj instanceof KFunction) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredFunctions$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getDeclaredMemberExtensionFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberExtensionFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty2<T, ?, ?>> getDeclaredMemberExtensionProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KProperty2)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberExtensionProperties$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getDeclaredMemberFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty1<T, ?>> getDeclaredMemberProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KProperty1)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberProperties$annotations(KClass kClass) {
}
public static final Collection<KCallable<?>> getDeclaredMembers(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
return ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredMembers();
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMembers$annotations(KClass kClass) {
}
public static final KType getDefaultType(final KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
SimpleType defaultType = ((KClassImpl) kClass).getDescriptor().getDefaultType();
Intrinsics.checkNotNullExpressionValue(defaultType, "getDefaultType(...)");
return new KTypeImpl(defaultType, new Function0<Type>() { // from class: kotlin.reflect.full.KClasses$defaultType$1
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
return ((KClassImpl) kClass).getJClass();
}
});
}
@Deprecated(message = "This function creates a type which rarely makes sense for generic classes. For example, such type can only be used in signatures of members of that class. Use starProjectedType or createType() for clearer semantics.")
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDefaultType$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallable<?>> members = kClass.getMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : members) {
if (obj instanceof KFunction) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getFunctions$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getMemberExtensionFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberExtensionFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty2<T, ?, ?>> getMemberExtensionProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KProperty2)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberExtensionProperties$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getMemberFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty1<T, ?>> getMemberProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KProperty1)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberProperties$annotations(KClass kClass) {
}
public static final <T> KFunction<T> getPrimaryConstructor(KClass<T> kClass) {
T t2;
Intrinsics.checkNotNullParameter(kClass, "<this>");
Iterator<T> it = ((KClassImpl) kClass).getConstructors().iterator();
while (true) {
if (!it.hasNext()) {
t2 = null;
break;
}
t2 = it.next();
KFunction kFunction = (KFunction) t2;
Intrinsics.checkNotNull(kFunction, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KFunctionImpl");
FunctionDescriptor descriptor = ((KFunctionImpl) kFunction).getDescriptor();
Intrinsics.checkNotNull(descriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ConstructorDescriptor");
if (((ConstructorDescriptor) descriptor).isPrimary()) {
break;
}
}
return (KFunction) t2;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getPrimaryConstructor$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getStaticFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allStaticMembers) {
if (obj instanceof KFunction) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getStaticFunctions$annotations(KClass kClass) {
}
public static final Collection<KProperty0<?>> getStaticProperties(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KProperty0)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getStaticProperties$annotations(KClass kClass) {
}
public static final List<KClass<?>> getSuperclasses(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
List<KType> supertypes = kClass.getSupertypes();
ArrayList arrayList = new ArrayList();
Iterator<T> it = supertypes.iterator();
while (it.hasNext()) {
KClassifier classifier = ((KType) it.next()).getClassifier();
KClass kClass2 = classifier instanceof KClass ? (KClass) classifier : null;
if (kClass2 != null) {
arrayList.add(kClass2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getSuperclasses$annotations(KClass kClass) {
}
private static final boolean isExtension(KCallableImpl<?> kCallableImpl) {
return kCallableImpl.getDescriptor().getExtensionReceiverParameter() != null;
}
private static final boolean isNotExtension(KCallableImpl<?> kCallableImpl) {
return !isExtension(kCallableImpl);
}
@SinceKotlin(version = "1.1")
public static final boolean isSubclassOf(KClass<?> kClass, final KClass<?> base) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Intrinsics.checkNotNullParameter(base, "base");
if (Intrinsics.areEqual(kClass, base)) {
return true;
}
List listOf = CollectionsKt.listOf(kClass);
final KClasses$isSubclassOf$1 kClasses$isSubclassOf$1 = new PropertyReference1() { // from class: kotlin.reflect.full.KClasses$isSubclassOf$1
@Override // kotlin.reflect.KProperty1
public Object get(Object obj) {
return KClasses.getSuperclasses((KClass) obj);
}
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
public String getName() {
return "superclasses";
}
@Override // kotlin.jvm.internal.CallableReference
public KDeclarationContainer getOwner() {
return Reflection.getOrCreateKotlinPackage(KClasses.class, "kotlin-reflection");
}
@Override // kotlin.jvm.internal.CallableReference
public String getSignature() {
return "getSuperclasses(Lkotlin/reflect/KClass;)Ljava/util/List;";
}
};
Boolean ifAny = DFS.ifAny(listOf, new DFS.Neighbors(kClasses$isSubclassOf$1) { // from class: kotlin.reflect.full.KClasses$$Lambda$1
private final KProperty1 arg$0;
{
this.arg$0 = kClasses$isSubclassOf$1;
}
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.Neighbors
public Iterable getNeighbors(Object obj) {
Iterable isSubclassOf$lambda$16;
isSubclassOf$lambda$16 = KClasses.isSubclassOf$lambda$16(this.arg$0, (KClass) obj);
return isSubclassOf$lambda$16;
}
}, new Function1<KClass<?>, Boolean>() { // from class: kotlin.reflect.full.KClasses$isSubclassOf$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(1);
}
@Override // kotlin.jvm.functions.Function1
public final Boolean invoke(KClass<?> kClass2) {
return Boolean.valueOf(Intrinsics.areEqual(kClass2, base));
}
});
Intrinsics.checkNotNullExpressionValue(ifAny, "ifAny(...)");
return ifAny.booleanValue();
}
/* JADX INFO: Access modifiers changed from: private */
public static final Iterable isSubclassOf$lambda$16(KProperty1 tmp0, KClass kClass) {
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
return (Iterable) tmp0.invoke(kClass);
}
@SinceKotlin(version = "1.1")
public static final boolean isSuperclassOf(KClass<?> kClass, KClass<?> derived) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Intrinsics.checkNotNullParameter(derived, "derived");
return isSubclassOf(derived, kClass);
}
/* JADX WARN: Multi-variable type inference failed */
@SinceKotlin(version = "1.1")
public static final <T> T safeCast(KClass<T> kClass, Object obj) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
if (!kClass.isInstance(obj)) {
return null;
}
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of kotlin.reflect.full.KClasses.safeCast");
return obj;
}
}
@@ -0,0 +1,166 @@
package kotlin.reflect.full;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.SinceKotlin;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.KVariance;
import kotlin.reflect.jvm.internal.KClassifierImpl;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.types.StarProjectionImpl;
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionBase;
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionImpl;
import kotlin.reflect.jvm.internal.impl.types.Variance;
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
@Metadata(d1 = {"\u00008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0000\u001a.\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002\u001a6\u0010\u0012\u001a\u00020\u0001*\u00020\u00022\u000e\b\u0002\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\b\b\u0002\u0010\u0010\u001a\u00020\u00112\u000e\b\u0002\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00140\u000eH\u0007\"\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0015"}, d2 = {"starProjectedType", "Lkotlin/reflect/KType;", "Lkotlin/reflect/KClassifier;", "getStarProjectedType$annotations", "(Lkotlin/reflect/KClassifier;)V", "getStarProjectedType", "(Lkotlin/reflect/KClassifier;)Lkotlin/reflect/KType;", "createKotlinType", "Lkotlin/reflect/jvm/internal/impl/types/SimpleType;", "attributes", "Lkotlin/reflect/jvm/internal/impl/types/TypeAttributes;", "typeConstructor", "Lkotlin/reflect/jvm/internal/impl/types/TypeConstructor;", "arguments", "", "Lkotlin/reflect/KTypeProjection;", "nullable", "", "createType", "annotations", "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KClassifiers")
@SourceDebugExtension({"SMAP\nKClassifiers.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KClassifiers.kt\nkotlin/reflect/full/KClassifiers\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,97:1\n1559#2:98\n1590#2,4:99\n1549#2:103\n1620#2,3:104\n*S KotlinDebug\n*F\n+ 1 KClassifiers.kt\nkotlin/reflect/full/KClassifiers\n*L\n69#1:98\n69#1:99,4\n95#1:103\n95#1:104,3\n*E\n"})
/* loaded from: classes3.dex */
public final class KClassifiers {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KVariance.values().length];
try {
iArr[KVariance.INVARIANT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KVariance.IN.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KVariance.OUT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
private static final SimpleType createKotlinType(TypeAttributes typeAttributes, TypeConstructor typeConstructor, List<KTypeProjection> list, boolean z3) {
int collectionSizeOrDefault;
TypeProjectionBase starProjectionImpl;
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
List<KTypeProjection> list2 = list;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
int i = 0;
for (Object obj : list2) {
int i4 = i + 1;
if (i < 0) {
CollectionsKt.throwIndexOverflow();
}
KTypeProjection kTypeProjection = (KTypeProjection) obj;
KTypeImpl kTypeImpl = (KTypeImpl) kTypeProjection.getType();
KotlinType type = kTypeImpl != null ? kTypeImpl.getType() : null;
KVariance variance = kTypeProjection.getVariance();
int i5 = variance == null ? -1 : WhenMappings.$EnumSwitchMapping$0[variance.ordinal()];
if (i5 == -1) {
TypeParameterDescriptor typeParameterDescriptor = parameters.get(i);
Intrinsics.checkNotNullExpressionValue(typeParameterDescriptor, "get(...)");
starProjectionImpl = new StarProjectionImpl(typeParameterDescriptor);
} else if (i5 == 1) {
Variance variance2 = Variance.INVARIANT;
Intrinsics.checkNotNull(type);
starProjectionImpl = new TypeProjectionImpl(variance2, type);
} else if (i5 == 2) {
Variance variance3 = Variance.IN_VARIANCE;
Intrinsics.checkNotNull(type);
starProjectionImpl = new TypeProjectionImpl(variance3, type);
} else {
if (i5 != 3) {
throw new NoWhenBranchMatchedException();
}
Variance variance4 = Variance.OUT_VARIANCE;
Intrinsics.checkNotNull(type);
starProjectionImpl = new TypeProjectionImpl(variance4, type);
}
arrayList.add(starProjectionImpl);
i = i4;
}
return KotlinTypeFactory.simpleType$default(typeAttributes, typeConstructor, arrayList, z3, (KotlinTypeRefiner) null, 16, (Object) null);
}
@SinceKotlin(version = "1.1")
public static final KType createType(KClassifier kClassifier, List<KTypeProjection> arguments, boolean z3, List<? extends Annotation> annotations) {
ClassifierDescriptor descriptor;
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
Intrinsics.checkNotNullParameter(arguments, "arguments");
Intrinsics.checkNotNullParameter(annotations, "annotations");
KClassifierImpl kClassifierImpl = kClassifier instanceof KClassifierImpl ? (KClassifierImpl) kClassifier : null;
if (kClassifierImpl == null || (descriptor = kClassifierImpl.getDescriptor()) == null) {
throw new KotlinReflectionInternalError("Cannot create type for an unsupported classifier: " + kClassifier + " (" + kClassifier.getClass() + ')');
}
TypeConstructor typeConstructor = descriptor.getTypeConstructor();
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
if (parameters.size() == arguments.size()) {
return new KTypeImpl(createKotlinType(annotations.isEmpty() ? TypeAttributes.Companion.getEmpty() : TypeAttributes.Companion.getEmpty(), typeConstructor, arguments, z3), null, 2, null);
}
throw new IllegalArgumentException("Class declares " + parameters.size() + " type parameters, but " + arguments.size() + " were provided.");
}
public static /* synthetic */ KType createType$default(KClassifier kClassifier, List list, boolean z3, List list2, int i, Object obj) {
if ((i & 1) != 0) {
list = CollectionsKt.emptyList();
}
if ((i & 2) != 0) {
z3 = false;
}
if ((i & 4) != 0) {
list2 = CollectionsKt.emptyList();
}
return createType(kClassifier, list, z3, list2);
}
public static final KType getStarProjectedType(KClassifier kClassifier) {
ClassifierDescriptor descriptor;
int collectionSizeOrDefault;
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
KClassifierImpl kClassifierImpl = kClassifier instanceof KClassifierImpl ? (KClassifierImpl) kClassifier : null;
if (kClassifierImpl == null || (descriptor = kClassifierImpl.getDescriptor()) == null) {
return createType$default(kClassifier, null, false, null, 7, null);
}
List<TypeParameterDescriptor> parameters = descriptor.getTypeConstructor().getParameters();
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
if (parameters.isEmpty()) {
return createType$default(kClassifier, null, false, null, 7, null);
}
List<TypeParameterDescriptor> list = parameters;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (TypeParameterDescriptor typeParameterDescriptor : list) {
arrayList.add(KTypeProjection.INSTANCE.getSTAR());
}
return createType$default(kClassifier, arrayList, false, null, 6, null);
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getStarProjectedType$annotations(KClassifier kClassifier) {
}
}
@@ -0,0 +1,26 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KProperty1;
import kotlin.reflect.KProperty2;
import kotlin.reflect.jvm.internal.KPropertyImpl;
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a\u0016\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u0002H\u0007\u001a/\u0010\u0000\u001a\u0004\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0003*\u0010\u0012\u0004\u0012\u0002H\u0003\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00042\u0006\u0010\u0005\u001a\u0002H\u0003H\u0007¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"getExtensionDelegate", "", "Lkotlin/reflect/KProperty1;", "D", "Lkotlin/reflect/KProperty2;", "receiver", "(Lkotlin/reflect/KProperty2;Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KProperties")
/* loaded from: classes3.dex */
public final class KProperties {
@SinceKotlin(version = "1.1")
public static final Object getExtensionDelegate(KProperty1<?, ?> kProperty1) {
Intrinsics.checkNotNullParameter(kProperty1, "<this>");
return kProperty1.getDelegate(KPropertyImpl.INSTANCE.getEXTENSION_PROPERTY_DELEGATE());
}
@SinceKotlin(version = "1.1")
public static final <D> Object getExtensionDelegate(KProperty2<D, ?, ?> kProperty2, D d4) {
Intrinsics.checkNotNullParameter(kProperty2, "<this>");
return kProperty2.getDelegate(d4, KPropertyImpl.INSTANCE.getEXTENSION_PROPERTY_DELEGATE());
}
}
@@ -0,0 +1,34 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KType;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0005\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0014\u0010\u0004\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0014\u0010\u0005\u001a\u00020\u0002*\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0001H\u0007¨\u0006\u0007"}, d2 = {"isSubtypeOf", "", "Lkotlin/reflect/KType;", "other", "isSupertypeOf", "withNullability", "nullable", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KTypes")
/* loaded from: classes3.dex */
public final class KTypes {
@SinceKotlin(version = "1.1")
public static final boolean isSubtypeOf(KType kType, KType other) {
Intrinsics.checkNotNullParameter(kType, "<this>");
Intrinsics.checkNotNullParameter(other, "other");
return TypeUtilsKt.isSubtypeOf(((KTypeImpl) kType).getType(), ((KTypeImpl) other).getType());
}
@SinceKotlin(version = "1.1")
public static final boolean isSupertypeOf(KType kType, KType other) {
Intrinsics.checkNotNullParameter(kType, "<this>");
Intrinsics.checkNotNullParameter(other, "other");
return isSubtypeOf(other, kType);
}
@SinceKotlin(version = "1.1")
public static final KType withNullability(KType kType, boolean z3) {
Intrinsics.checkNotNullParameter(kType, "<this>");
return ((KTypeImpl) kType).makeNullableAsSpecified$kotlin_reflection(z3);
}
}
@@ -0,0 +1,23 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.internal.DefaultConstructorMarker;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\u0017\u0012\u0010\b\u0002\u0010\u0003\u001a\n\u0018\u00010\u0001j\u0004\u0018\u0001`\u0002¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/full/NoSuchPropertyException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "(Ljava/lang/Exception;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class NoSuchPropertyException extends Exception {
/* JADX WARN: Multi-variable type inference failed */
public NoSuchPropertyException() {
this(null, 1, 0 == true ? 1 : 0);
}
public NoSuchPropertyException(Exception exc) {
super(exc);
}
public /* synthetic */ NoSuchPropertyException(Exception exc, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : exc);
}
}