package com.airbnb.deeplinkdispatch; import com.airbnb.deeplinkdispatch.base.MatchIndex; import com.airbnb.deeplinkdispatch.base.Utils; import java.util.List; import java.util.Map; import o.C14854gaM; import o.C14957gcv; /* loaded from: classes.dex */ public abstract class BaseRegistry { private final MatchIndex matchIndex; private final List pathSegmentReplacementKeysInRegistry; public BaseRegistry(byte[] bArr, String[] strArr) { C14957gcv.e(bArr, ""); C14957gcv.e(strArr, ""); this.pathSegmentReplacementKeysInRegistry = Utils.toByteArraysList(strArr); this.matchIndex = new MatchIndex(bArr); } public final DeepLinkMatchResult idxMatch(DeepLinkUri deepLinkUri, Map map) { C14957gcv.e(map, ""); if (deepLinkUri == null) { return null; } MatchIndex matchIndex = this.matchIndex; List matchList = new SchemeHostAndPath(deepLinkUri).getMatchList(); C14854gaM c14854gaM = C14854gaM.c; C14957gcv.d(c14854gaM, ""); return matchIndex.matchUri(deepLinkUri, matchList, c14854gaM, 0, 0, this.matchIndex.length(), map); } public final List getAllEntries() { MatchIndex matchIndex = this.matchIndex; List allEntries = matchIndex.getAllEntries(0, matchIndex.length()); C14957gcv.c(allEntries, ""); return allEntries; } public final boolean supports(DeepLinkUri deepLinkUri, Map map) { C14957gcv.e(map, ""); return idxMatch(deepLinkUri, map) != null; } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ DeepLinkMatchResult idxMatch$default(BaseRegistry baseRegistry, DeepLinkUri deepLinkUri, Map map, int i, Object obj) { if (obj != null) { throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: idxMatch"); } if ((i & 2) != 0) { C14854gaM c14854gaM = C14854gaM.c; C14957gcv.d(c14854gaM, ""); map = c14854gaM; } return baseRegistry.idxMatch(deepLinkUri, map); } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ boolean supports$default(BaseRegistry baseRegistry, DeepLinkUri deepLinkUri, Map map, int i, Object obj) { if (obj != null) { throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: supports"); } if ((i & 2) != 0) { C14854gaM c14854gaM = C14854gaM.c; C14957gcv.d(c14854gaM, ""); map = c14854gaM; } return baseRegistry.supports(deepLinkUri, map); } public final MatchIndex matchIndex() { return this.matchIndex; } public final DeepLinkMatchResult idxMatch(DeepLinkUri deepLinkUri) { return idxMatch$default(this, deepLinkUri, null, 2, null); } public final List getPathSegmentReplacementKeysInRegistry() { return this.pathSegmentReplacementKeysInRegistry; } }