jj.java 5.01 KB
import com.google.android.gms.internal.zzah;
import com.google.android.gms.internal.zzai;
import com.google.android.gms.internal.zzak.zza;
import com.google.android.gms.tagmanager.zzbo;
import com.google.android.gms.tagmanager.zzdl;
import java.io.UnsupportedEncodingException;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

final class jj
  extends iw
{
  private static final String b = zzah.zzdQ.toString();
  private static final String c = zzai.zzfI.toString();
  private static final String d = zzai.zzhM.toString();
  private static final String e = zzai.zzhQ.toString();
  private static final String f = zzai.zzhg.toString();
  
  public jj()
  {
    super(b, new String[] { c });
  }
  
  private static String a(String paramString, int paramInt, Set<Character> paramSet)
  {
    switch (jj.1.a[(paramInt - 1)])
    {
    default: 
      return paramString;
    case 1: 
      try
      {
        paramSet = lj.a(paramString);
        return paramSet;
      }
      catch (UnsupportedEncodingException paramSet)
      {
        zzbo.zzb("Joiner: unsupported encoding", paramSet);
        return paramString;
      }
    }
    paramString = paramString.replace("\\", "\\\\");
    Iterator localIterator = paramSet.iterator();
    if (localIterator.hasNext())
    {
      String str = ((Character)localIterator.next()).toString();
      paramSet = String.valueOf(str);
      if (paramSet.length() != 0) {}
      for (paramSet = "\\".concat(paramSet);; paramSet = new String("\\"))
      {
        paramString = paramString.replace(str, paramSet);
        break;
      }
    }
    return paramString;
  }
  
  private static void a(StringBuilder paramStringBuilder, String paramString, int paramInt, Set<Character> paramSet)
  {
    paramStringBuilder.append(a(paramString, paramInt, paramSet));
  }
  
  private static void a(Set<Character> paramSet, String paramString)
  {
    int i = 0;
    while (i < paramString.length())
    {
      paramSet.add(Character.valueOf(paramString.charAt(i)));
      i += 1;
    }
  }
  
  public final boolean zzQb()
  {
    return true;
  }
  
  public final zzak.zza zzZ(Map<String, zzak.zza> paramMap)
  {
    zzak.zza localzza = (zzak.zza)paramMap.get(c);
    if (localzza == null) {
      return zzdl.zzRR();
    }
    Object localObject1 = (zzak.zza)paramMap.get(d);
    Object localObject2;
    label75:
    int i;
    if (localObject1 != null)
    {
      localObject1 = zzdl.zze((zzak.zza)localObject1);
      localObject2 = (zzak.zza)paramMap.get(e);
      if (localObject2 == null) {
        break label180;
      }
      localObject2 = zzdl.zze((zzak.zza)localObject2);
      i = jj.a.a;
      paramMap = (zzak.zza)paramMap.get(f);
      if (paramMap == null) {
        break label420;
      }
      paramMap = zzdl.zze(paramMap);
      if (!"url".equals(paramMap)) {
        break label187;
      }
      i = jj.a.b;
      paramMap = null;
    }
    for (;;)
    {
      label116:
      StringBuilder localStringBuilder = new StringBuilder();
      switch (localzza.type)
      {
      default: 
        a(localStringBuilder, zzdl.zze(localzza), i, paramMap);
      }
      for (;;)
      {
        return zzdl.zzR(localStringBuilder.toString());
        localObject1 = "";
        break;
        label180:
        localObject2 = "=";
        break label75;
        label187:
        if ("backslash".equals(paramMap))
        {
          i = jj.a.c;
          paramMap = new HashSet();
          a(paramMap, (String)localObject1);
          a(paramMap, (String)localObject2);
          paramMap.remove(Character.valueOf('\\'));
          break label116;
        }
        paramMap = String.valueOf(paramMap);
        if (paramMap.length() != 0) {}
        for (paramMap = "Joiner: unsupported escape type: ".concat(paramMap);; paramMap = new String("Joiner: unsupported escape type: "))
        {
          zzbo.e(paramMap);
          return zzdl.zzRR();
        }
        int k = 1;
        localObject2 = localzza.zzlu;
        int m = localObject2.length;
        int j = 0;
        while (j < m)
        {
          localzza = localObject2[j];
          if (k == 0) {
            localStringBuilder.append((String)localObject1);
          }
          a(localStringBuilder, zzdl.zze(localzza), i, paramMap);
          j += 1;
          k = 0;
        }
        j = 0;
        while (j < localzza.zzlv.length)
        {
          if (j > 0) {
            localStringBuilder.append((String)localObject1);
          }
          String str1 = zzdl.zze(localzza.zzlv[j]);
          String str2 = zzdl.zze(localzza.zzlw[j]);
          a(localStringBuilder, str1, i, paramMap);
          localStringBuilder.append((String)localObject2);
          a(localStringBuilder, str2, i, paramMap);
          j += 1;
        }
      }
      label420:
      paramMap = null;
    }
  }
  
  static enum a
  {
    public static int[] a()
    {
      return (int[])d.clone();
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/jj.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */