package com.google.android.libraries.places.internal; import com.huawei.hms.framework.common.ContainerUtils; import java.io.IOException; import java.util.Iterator; import java.util.Map; /* loaded from: classes2.dex */ public final class zzia { public static final Appendable zza(Appendable appendable, Iterator it, zzib zzibVar, String str) throws IOException { String str2; if (it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); appendable.append(zzibVar.zza(entry.getKey())); appendable.append(ContainerUtils.KEY_VALUE_DELIMITER); appendable.append(zzibVar.zza(entry.getValue())); while (it.hasNext()) { str2 = zzibVar.zza; appendable.append(str2); Map.Entry entry2 = (Map.Entry) it.next(); appendable.append(zzibVar.zza(entry2.getKey())); appendable.append(ContainerUtils.KEY_VALUE_DELIMITER); appendable.append(zzibVar.zza(entry2.getValue())); } } return appendable; } }