kw.java
20 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
import android.content.Context;
import com.google.android.gms.internal.zzai;
import com.google.android.gms.internal.zzaj.zzi;
import com.google.android.gms.internal.zzak.zza;
import com.google.android.gms.internal.zzbjf;
import com.google.android.gms.internal.zzbjf.zza;
import com.google.android.gms.internal.zzbjf.zzc;
import com.google.android.gms.internal.zzbjf.zze;
import com.google.android.gms.tagmanager.DataLayer;
import com.google.android.gms.tagmanager.zzah;
import com.google.android.gms.tagmanager.zzbj;
import com.google.android.gms.tagmanager.zzbo;
import com.google.android.gms.tagmanager.zzdl;
import com.google.android.gms.tagmanager.zzdm;
import com.google.android.gms.tagmanager.zzj;
import com.google.android.gms.tagmanager.zzm;
import com.google.android.gms.tagmanager.zzm.zza;
import com.google.android.gms.tagmanager.zzu;
import com.google.android.gms.tagmanager.zzu.zza;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public final class kw
{
private static final ke<zzak.zza> a = new ke(zzdl.zzRR(), true);
private final zzbjf.zzc b;
private final it c;
private final Map<String, iw> d;
private final Map<String, iw> e;
private final Map<String, iw> f;
private final lp<zzbjf.zza, ke<zzak.zza>> g;
private final lp<String, kw.b> h;
private final Set<zzbjf.zze> i;
private final DataLayer j;
private final Map<String, kw.c> k;
private volatile String l;
private int m;
public kw(Context paramContext, zzbjf.zzc paramzzc, DataLayer paramDataLayer, zzu.zza paramzza1, zzu.zza paramzza2, it paramit)
{
if (paramzzc == null) {
throw new NullPointerException("resource cannot be null");
}
this.b = paramzzc;
this.i = new HashSet(paramzzc.zzSU());
this.j = paramDataLayer;
this.c = paramit;
paramzzc = new zzm.zza() {};
new zzm();
this.g = zzm.a(paramzzc);
paramzzc = new zzm.zza() {};
new zzm();
this.h = zzm.a(paramzzc);
this.d = new HashMap();
b(new zzj(paramContext));
b(new zzu(paramzza2));
b(new lx(paramDataLayer));
b(new zzdm(paramContext, paramDataLayer));
this.e = new HashMap();
c(new ls());
c(new ir());
c(new zzah());
c(new iy());
c(new iz());
c(new jm());
c(new jn());
c(new km());
c(new lc());
this.f = new HashMap();
a(new jh(paramContext));
a(new ka(paramContext));
a(new lk(paramContext));
a(new ll(paramContext));
a(new lm(paramContext));
a(new ln(paramContext));
a(new lo(paramContext));
a(new lq());
a(new lr(this.b.getVersion()));
a(new zzu(paramzza1));
a(new lv(paramDataLayer));
a(new in(paramContext));
a(new io());
a(new iq());
a(new iu(this));
a(new ja());
a(new jb());
a(new ji(paramContext));
a(new jj());
a(new zzbj());
a(new jq());
a(new js(paramContext));
a(new kf());
a(new kh());
a(new kj());
a(new kl());
a(new kn(paramContext));
a(new kx());
a(new ky());
a(new le());
a(new lh());
this.k = new HashMap();
paramDataLayer = this.i.iterator();
while (paramDataLayer.hasNext())
{
paramzza1 = (zzbjf.zze)paramDataLayer.next();
int n = 0;
while (n < paramzza1.zzTC().size())
{
paramit = (zzbjf.zza)paramzza1.zzTC().get(n);
paramzza2 = a(this.k, a(paramit));
paramzza2.a(paramzza1);
paramzzc = (List)paramzza2.b.get(paramzza1);
paramContext = paramzzc;
if (paramzzc == null)
{
paramContext = new ArrayList();
paramzza2.b.put(paramzza1, paramContext);
}
paramContext.add(paramit);
paramzzc = (List)paramzza2.d.get(paramzza1);
paramContext = paramzzc;
if (paramzzc == null)
{
paramContext = new ArrayList();
paramzza2.d.put(paramzza1, paramContext);
}
paramContext.add("Unknown");
n += 1;
}
n = 0;
while (n < paramzza1.zzTD().size())
{
paramit = (zzbjf.zza)paramzza1.zzTD().get(n);
paramzza2 = a(this.k, a(paramit));
paramzza2.a(paramzza1);
paramzzc = (List)paramzza2.c.get(paramzza1);
paramContext = paramzzc;
if (paramzzc == null)
{
paramContext = new ArrayList();
paramzza2.c.put(paramzza1, paramContext);
}
paramContext.add(paramit);
paramzzc = (List)paramzza2.e.get(paramzza1);
paramContext = paramzzc;
if (paramzzc == null)
{
paramContext = new ArrayList();
paramzza2.e.put(paramzza1, paramContext);
}
paramContext.add("Unknown");
n += 1;
}
}
paramContext = this.b.zzTz().entrySet().iterator();
while (paramContext.hasNext())
{
paramzzc = (Map.Entry)paramContext.next();
paramDataLayer = ((List)paramzzc.getValue()).iterator();
while (paramDataLayer.hasNext())
{
paramzza1 = (zzbjf.zza)paramDataLayer.next();
if (!zzdl.zzi((zzak.zza)paramzza1.zzSW().get(zzai.zzin.toString())).booleanValue()) {
a(this.k, (String)paramzzc.getKey()).f = paramzza1;
}
}
}
}
private static String a(zzbjf.zza paramzza)
{
return zzdl.zze((zzak.zza)paramzza.zzSW().get(zzai.zzhI.toString()));
}
private ke<zzak.zza> a(zzak.zza paramzza, Set<String> paramSet, li paramli)
{
if (!paramzza.zzlD) {
return new ke(paramzza, true);
}
ke localke1;
switch (paramzza.type)
{
case 5:
case 6:
default:
n = paramzza.type;
zzbo.e(25 + "Unknown type: " + n);
return a;
case 2:
localzza = zzbjf.zzm(paramzza);
localzza.zzlu = new zzak.zza[paramzza.zzlu.length];
n = 0;
while (n < paramzza.zzlu.length)
{
localke1 = a(paramzza.zzlu[n], paramSet, paramli.a());
if (localke1 == a) {
return a;
}
localzza.zzlu[n] = ((zzak.zza)localke1.a);
n += 1;
}
return new ke(localzza, false);
case 3:
localzza = zzbjf.zzm(paramzza);
if (paramzza.zzlv.length != paramzza.zzlw.length)
{
paramzza = String.valueOf(paramzza.toString());
if (paramzza.length() != 0) {}
for (paramzza = "Invalid serving value: ".concat(paramzza);; paramzza = new String("Invalid serving value: "))
{
zzbo.e(paramzza);
return a;
}
}
localzza.zzlv = new zzak.zza[paramzza.zzlv.length];
localzza.zzlw = new zzak.zza[paramzza.zzlv.length];
n = 0;
while (n < paramzza.zzlv.length)
{
localke1 = a(paramzza.zzlv[n], paramSet, paramli.b());
ke localke2 = a(paramzza.zzlw[n], paramSet, paramli.c());
if ((localke1 == a) || (localke2 == a)) {
return a;
}
localzza.zzlv[n] = ((zzak.zza)localke1.a);
localzza.zzlw[n] = ((zzak.zza)localke2.a);
n += 1;
}
return new ke(localzza, false);
case 4:
if (paramSet.contains(paramzza.zzlx))
{
paramzza = String.valueOf(paramzza.zzlx);
paramSet = String.valueOf(paramSet.toString());
zzbo.e(String.valueOf(paramzza).length() + 79 + String.valueOf(paramSet).length() + "Macro cycle detected. Current macro reference: " + paramzza + ". Previous macro references: " + paramSet + ".");
return a;
}
paramSet.add(paramzza.zzlx);
paramli = lj.a(a(paramzza.zzlx, paramSet, paramli.e()), paramzza.zzlC);
paramSet.remove(paramzza.zzlx);
return paramli;
}
zzak.zza localzza = zzbjf.zzm(paramzza);
localzza.zzlB = new zzak.zza[paramzza.zzlB.length];
int n = 0;
while (n < paramzza.zzlB.length)
{
localke1 = a(paramzza.zzlB[n], paramSet, paramli.d());
if (localke1 == a) {
return a;
}
localzza.zzlB[n] = ((zzak.zza)localke1.a);
n += 1;
}
return new ke(localzza, false);
}
private ke<Boolean> a(zzbjf.zza paramzza, Set<String> paramSet, ko paramko)
{
paramzza = a(this.e, paramzza, paramSet, paramko);
paramSet = zzdl.zzi((zzak.zza)paramzza.a);
zzdl.zzR(paramSet);
return new ke(paramSet, paramzza.b);
}
private ke<Boolean> a(zzbjf.zze paramzze, Set<String> paramSet, kr paramkr)
{
Object localObject = paramzze.zzSZ().iterator();
boolean bool = true;
if (((Iterator)localObject).hasNext())
{
ke localke = a((zzbjf.zza)((Iterator)localObject).next(), paramSet, paramkr.a());
if (((Boolean)localke.a).booleanValue())
{
zzdl.zzR(Boolean.valueOf(false));
return new ke(Boolean.valueOf(false), localke.b);
}
if ((bool) && (localke.b)) {}
for (bool = true;; bool = false) {
break;
}
}
paramzze = paramzze.zzSY().iterator();
while (paramzze.hasNext())
{
localObject = a((zzbjf.zza)paramzze.next(), paramSet, paramkr.b());
if (!((Boolean)((ke)localObject).a).booleanValue())
{
zzdl.zzR(Boolean.valueOf(false));
return new ke(Boolean.valueOf(false), ((ke)localObject).b);
}
if ((bool) && (((ke)localObject).b)) {
bool = true;
} else {
bool = false;
}
}
zzdl.zzR(Boolean.valueOf(true));
return new ke(Boolean.valueOf(true), bool);
}
private ke<zzak.zza> a(String paramString, Set<String> paramSet, jr paramjr)
{
this.m += 1;
Object localObject = (kw.b)this.h.a(paramString);
if (localObject != null)
{
a(((kw.b)localObject).b, paramSet);
this.m -= 1;
return ((kw.b)localObject).a;
}
localObject = (kw.c)this.k.get(paramString);
if (localObject == null)
{
paramSet = String.valueOf(b());
zzbo.e(String.valueOf(paramSet).length() + 15 + String.valueOf(paramString).length() + paramSet + "Invalid macro: " + paramString);
this.m -= 1;
return a;
}
ke localke = a(((kw.c)localObject).a, ((kw.c)localObject).b, ((kw.c)localObject).d, ((kw.c)localObject).c, ((kw.c)localObject).e, paramSet, paramjr.b());
if (((Set)localke.a).isEmpty()) {}
for (localObject = ((kw.c)localObject).f; localObject == null; localObject = (zzbjf.zza)((Set)localke.a).iterator().next())
{
this.m -= 1;
return a;
if (((Set)localke.a).size() > 1)
{
localObject = String.valueOf(b());
zzbo.zzbh(String.valueOf(localObject).length() + 37 + String.valueOf(paramString).length() + (String)localObject + "Multiple macros active for macroName " + paramString);
}
}
paramjr = a(this.f, (zzbjf.zza)localObject, paramSet, paramjr.a());
boolean bool;
if ((localke.b) && (paramjr.b))
{
bool = true;
if (paramjr != a) {
break label428;
}
}
label428:
for (paramjr = a;; paramjr = new ke((zzak.zza)paramjr.a, bool))
{
localObject = ((zzbjf.zza)localObject).zzRr();
if (paramjr.b) {
this.h.a(paramString, new kw.b(paramjr, (zzak.zza)localObject));
}
a((zzak.zza)localObject, paramSet);
this.m -= 1;
return paramjr;
bool = false;
break;
}
}
private ke<zzak.zza> a(Map<String, iw> paramMap, zzbjf.zza paramzza, Set<String> paramSet, ko paramko)
{
boolean bool = true;
Object localObject1 = (zzak.zza)paramzza.zzSW().get(zzai.zzhw.toString());
if (localObject1 == null)
{
zzbo.e("No function id in properties");
paramMap = a;
}
String str;
iw localiw;
do
{
return paramMap;
str = ((zzak.zza)localObject1).zzly;
localiw = (iw)paramMap.get(str);
if (localiw == null)
{
zzbo.e(String.valueOf(str).concat(" has no backing implementation."));
return a;
}
localObject1 = (ke)this.g.a(paramzza);
paramMap = (Map<String, iw>)localObject1;
} while (localObject1 != null);
paramMap = new HashMap();
localObject1 = paramzza.zzSW().entrySet().iterator();
int n = 1;
if (((Iterator)localObject1).hasNext())
{
Map.Entry localEntry = (Map.Entry)((Iterator)localObject1).next();
localEntry.getKey();
Object localObject2 = paramko.a();
zzak.zza localzza = (zzak.zza)localEntry.getValue();
localEntry.getValue();
localObject2 = a(localzza, paramSet, ((kq)localObject2).a());
if (localObject2 == a) {
return a;
}
if (((ke)localObject2).b) {
paramzza.zza((String)localEntry.getKey(), (zzak.zza)((ke)localObject2).a);
}
for (;;)
{
paramMap.put((String)localEntry.getKey(), (zzak.zza)((ke)localObject2).a);
break;
n = 0;
}
}
if (!paramMap.keySet().containsAll(localiw.a))
{
paramzza = String.valueOf(localiw.zzQM());
paramMap = String.valueOf(paramMap.keySet());
zzbo.e(String.valueOf(str).length() + 43 + String.valueOf(paramzza).length() + String.valueOf(paramMap).length() + "Incorrect keys for function " + str + " required " + paramzza + " had " + paramMap);
return a;
}
if ((n != 0) && (localiw.zzQb())) {}
for (;;)
{
paramSet = new ke(localiw.zzZ(paramMap), bool);
paramMap = paramSet;
if (!bool) {
break;
}
this.g.a(paramzza, paramSet);
return paramSet;
bool = false;
}
}
private ke<Set<zzbjf.zza>> a(Set<zzbjf.zze> paramSet, Map<zzbjf.zze, List<zzbjf.zza>> paramMap1, final Map<zzbjf.zze, List<String>> paramMap2, final Map<zzbjf.zze, List<zzbjf.zza>> paramMap3, final Map<zzbjf.zze, List<String>> paramMap4, Set<String> paramSet1, kv paramkv)
{
a(paramSet, paramSet1, new kw.a()
{
public final void a(zzbjf.zze paramAnonymouszze, Set<zzbjf.zza> paramAnonymousSet1, Set<zzbjf.zza> paramAnonymousSet2, kr paramAnonymouskr)
{
List localList = (List)kw.this.get(paramAnonymouszze);
paramMap2.get(paramAnonymouszze);
if (localList != null)
{
paramAnonymousSet1.addAll(localList);
paramAnonymouskr.c();
}
paramAnonymousSet1 = (List)paramMap3.get(paramAnonymouszze);
paramMap4.get(paramAnonymouszze);
if (paramAnonymousSet1 != null)
{
paramAnonymousSet2.addAll(paramAnonymousSet1);
paramAnonymouskr.d();
}
}
}, paramkv);
}
private ke<Set<zzbjf.zza>> a(Set<zzbjf.zze> paramSet, Set<String> paramSet1, kw.a parama, kv paramkv)
{
HashSet localHashSet1 = new HashSet();
HashSet localHashSet2 = new HashSet();
paramSet = paramSet.iterator();
boolean bool = true;
if (paramSet.hasNext())
{
zzbjf.zze localzze = (zzbjf.zze)paramSet.next();
kr localkr = paramkv.a();
ke localke = a(localzze, paramSet1, localkr);
if (((Boolean)localke.a).booleanValue()) {
parama.a(localzze, localHashSet1, localHashSet2, localkr);
}
if ((bool) && (localke.b)) {}
for (bool = true;; bool = false) {
break;
}
}
localHashSet1.removeAll(localHashSet2);
return new ke(localHashSet1, bool);
}
private static kw.c a(Map<String, kw.c> paramMap, String paramString)
{
kw.c localc2 = (kw.c)paramMap.get(paramString);
kw.c localc1 = localc2;
if (localc2 == null)
{
localc1 = new kw.c();
paramMap.put(paramString, localc1);
}
return localc1;
}
private void a(zzak.zza paramzza, Set<String> paramSet)
{
if (paramzza == null) {}
for (;;)
{
return;
paramzza = a(paramzza, paramSet, new kc());
if (paramzza != a)
{
paramzza = zzdl.zzj((zzak.zza)paramzza.a);
if ((paramzza instanceof Map))
{
paramzza = (Map)paramzza;
this.j.push(paramzza);
return;
}
if (!(paramzza instanceof List)) {
break;
}
paramzza = ((List)paramzza).iterator();
while (paramzza.hasNext())
{
paramSet = paramzza.next();
if ((paramSet instanceof Map))
{
paramSet = (Map)paramSet;
this.j.push(paramSet);
}
else
{
zzbo.zzbh("pushAfterEvaluate: value not a Map");
}
}
}
}
zzbo.zzbh("pushAfterEvaluate: value not a Map or List");
}
private void a(iw paramiw)
{
a(this.f, paramiw);
}
private static void a(Map<String, iw> paramMap, iw paramiw)
{
if (paramMap.containsKey(paramiw.zzQL()))
{
paramMap = String.valueOf(paramiw.zzQL());
if (paramMap.length() != 0) {}
for (paramMap = "Duplicate function type name: ".concat(paramMap);; paramMap = new String("Duplicate function type name: ")) {
throw new IllegalArgumentException(paramMap);
}
}
paramMap.put(paramiw.zzQL(), paramiw);
}
private String b()
{
if (this.m <= 1) {
return "";
}
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append(Integer.toString(this.m));
int n = 2;
while (n < this.m)
{
localStringBuilder.append(' ');
n += 1;
}
localStringBuilder.append(": ");
return localStringBuilder.toString();
}
private void b(iw paramiw)
{
a(this.d, paramiw);
}
private void c(iw paramiw)
{
a(this.e, paramiw);
}
private void c(String paramString)
{
try
{
this.l = paramString;
return;
}
finally
{
paramString = finally;
throw paramString;
}
}
final String a()
{
try
{
String str = this.l;
return str;
}
finally
{
localObject = finally;
throw ((Throwable)localObject);
}
}
public final void a(String paramString)
{
try
{
c(paramString);
paramString = this.c.b().b();
Object localObject1 = this.i;
Object localObject2 = paramString.b();
localObject1 = ((Set)
{
public final void a(zzbjf.zze paramAnonymouszze, Set<zzbjf.zza> paramAnonymousSet1, Set<zzbjf.zza> paramAnonymousSet2, kr paramAnonymouskr)
{
paramAnonymousSet1.addAll(paramAnonymouszze.zzTa());
paramAnonymousSet2.addAll(paramAnonymouszze.zzTb());
paramAnonymouskr.e();
paramAnonymouskr.f();
}
}).iterator();
while (((Iterator)localObject1).hasNext())
{
localObject2 = (zzbjf.zza)((Iterator)localObject1).next();
a(this.d, (zzbjf.zza)localObject2, new HashSet(), paramString.a());
}
c(null);
}
finally {}
}
public final void a(List<zzaj.zzi> paramList)
{
for (;;)
{
try
{
paramList = paramList.iterator();
if (!paramList.hasNext()) {
break;
}
Object localObject = (zzaj.zzi)paramList.next();
if ((((zzaj.zzi)localObject).name == null) || (!((zzaj.zzi)localObject).name.startsWith("gaExperiment:")))
{
localObject = String.valueOf(localObject);
zzbo.v(String.valueOf(localObject).length() + 22 + "Ignored supplemental: " + (String)localObject);
}
else
{
iv.a(this.j, (zzaj.zzi)localObject);
}
}
finally {}
}
}
public final ke<zzak.zza> b(String paramString)
{
this.m = 0;
is localis = this.c.a();
return a(paramString, new HashSet(), localis.a());
}
static abstract interface a
{
public abstract void a(zzbjf.zze paramzze, Set<zzbjf.zza> paramSet1, Set<zzbjf.zza> paramSet2, kr paramkr);
}
static final class b
{
ke<zzak.zza> a;
zzak.zza b;
public b(ke<zzak.zza> paramke, zzak.zza paramzza)
{
this.a = paramke;
this.b = paramzza;
}
}
static final class c
{
final Set<zzbjf.zze> a = new HashSet();
final Map<zzbjf.zze, List<zzbjf.zza>> b = new HashMap();
final Map<zzbjf.zze, List<zzbjf.zza>> c = new HashMap();
final Map<zzbjf.zze, List<String>> d = new HashMap();
final Map<zzbjf.zze, List<String>> e = new HashMap();
zzbjf.zza f;
public final void a(zzbjf.zze paramzze)
{
this.a.add(paramzze);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/kw.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/