package com.discord.stores; import com.discord.models.user.User; import d0.t.g0; import d0.t.n; import d0.t.u; import d0.z.d.o; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.SortedMap; import kotlin.jvm.functions.Function0; /* compiled from: StoreGameParty.kt */ public final class StoreGameParty$observeUsersForPartyId$1 extends o implements Function0> { public final /* synthetic */ String $partyId; public final /* synthetic */ StoreGameParty this$0; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public StoreGameParty$observeUsersForPartyId$1(StoreGameParty storeGameParty, String str) { super(0); this.this$0 = storeGameParty; this.$partyId = str; } /* Return type fixed from 'java.util.Map' to match base method */ @Override // kotlin.jvm.functions.Function0 /* renamed from: invoke */ public final Map mo1invoke() { List list; HashSet hashSet = (HashSet) StoreGameParty.access$getPartiesSnapshot$p(this.this$0).get(this.$partyId); StoreUser storeUser = this.this$0.getStoreUser(); if (hashSet == null || (list = u.toList(hashSet)) == null) { list = n.emptyList(); } SortedMap sortedMap = g0.toSortedMap(storeUser.getUsers(list, false)); Objects.requireNonNull(sortedMap, "null cannot be cast to non-null type kotlin.collections.Map"); return sortedMap; } }