package androidx.navigation; import kotlin.Metadata; import kotlin.jvm.internal.Intrinsics; /* compiled from: NavGraph.kt */ @Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u001a\u0017\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\b\b\u0001\u0010\u0003\u001a\u00020\u0004H\u0086\u0002\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0086\u0002\u001a\u0017\u0010\u0007\u001a\u00020\b*\u00020\u00022\b\b\u0001\u0010\u0003\u001a\u00020\u0004H\u0086\n\u001a\u0015\u0010\u0007\u001a\u00020\b*\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0006H\u0086\n\u001a\u0015\u0010\t\u001a\u00020\n*\u00020\u00022\u0006\u0010\u000b\u001a\u00020\bH\u0086\n\u001a\u0015\u0010\f\u001a\u00020\n*\u00020\u00022\u0006\u0010\u000b\u001a\u00020\bH\u0086\n\u001a\u0015\u0010\f\u001a\u00020\n*\u00020\u00022\u0006\u0010\r\u001a\u00020\u0002H\u0086\n¨\u0006\u000e"}, d2 = {"contains", "", "Landroidx/navigation/NavGraph;", "id", "", "route", "", "get", "Landroidx/navigation/NavDestination;", "minusAssign", "", "node", "plusAssign", "other", "navigation-common_release"}, k = 2, mv = {1, 8, 0}, xi = 48) /* loaded from: classes2.dex */ public final class NavGraphKt { public static final NavDestination get(NavGraph navGraph, int i) { Intrinsics.checkNotNullParameter(navGraph, ""); NavDestination findNode = navGraph.findNode(i); if (findNode != null) { return findNode; } throw new IllegalArgumentException("No destination for " + i + " was found in " + navGraph); } public static final NavDestination get(NavGraph navGraph, String route) { Intrinsics.checkNotNullParameter(navGraph, ""); Intrinsics.checkNotNullParameter(route, "route"); NavDestination findNode = navGraph.findNode(route); if (findNode != null) { return findNode; } throw new IllegalArgumentException("No destination for " + route + " was found in " + navGraph); } public static final boolean contains(NavGraph navGraph, int i) { Intrinsics.checkNotNullParameter(navGraph, ""); return navGraph.findNode(i) != null; } public static final boolean contains(NavGraph navGraph, String route) { Intrinsics.checkNotNullParameter(navGraph, ""); Intrinsics.checkNotNullParameter(route, "route"); return navGraph.findNode(route) != null; } public static final void plusAssign(NavGraph navGraph, NavDestination node) { Intrinsics.checkNotNullParameter(navGraph, ""); Intrinsics.checkNotNullParameter(node, "node"); navGraph.addDestination(node); } public static final void plusAssign(NavGraph navGraph, NavGraph other) { Intrinsics.checkNotNullParameter(navGraph, ""); Intrinsics.checkNotNullParameter(other, "other"); navGraph.addAll(other); } public static final void minusAssign(NavGraph navGraph, NavDestination node) { Intrinsics.checkNotNullParameter(navGraph, ""); Intrinsics.checkNotNullParameter(node, "node"); navGraph.remove(node); } }