671 lines
31 KiB
Java
671 lines
31 KiB
Java
package c.i.a.c.g2;
|
|
|
|
import android.content.Context;
|
|
import android.text.Layout;
|
|
import android.text.Spanned;
|
|
import android.text.style.AbsoluteSizeSpan;
|
|
import android.text.style.BackgroundColorSpan;
|
|
import android.text.style.ForegroundColorSpan;
|
|
import android.text.style.RelativeSizeSpan;
|
|
import android.text.style.StrikethroughSpan;
|
|
import android.text.style.StyleSpan;
|
|
import android.text.style.TypefaceSpan;
|
|
import android.text.style.UnderlineSpan;
|
|
import android.util.Base64;
|
|
import android.util.SparseArray;
|
|
import android.webkit.WebView;
|
|
import android.widget.FrameLayout;
|
|
import c.i.a.c.e2.b;
|
|
import c.i.a.c.e2.c;
|
|
import c.i.a.c.g2.i;
|
|
import c.i.a.c.i2.f0;
|
|
import c.i.b.b.r0;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.exoplayer2.ui.SubtitleView;
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import java.util.Objects;
|
|
import java.util.regex.Pattern;
|
|
/* compiled from: WebViewSubtitleOutput */
|
|
public final class n extends FrameLayout implements SubtitleView.a {
|
|
public final g i;
|
|
public final WebView j;
|
|
public List<c> k = Collections.emptyList();
|
|
public b l = b.a;
|
|
public float m = 0.0533f;
|
|
public int n = 0;
|
|
public float o = 0.08f;
|
|
|
|
/* compiled from: WebViewSubtitleOutput */
|
|
public static /* synthetic */ class a {
|
|
public static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[Layout.Alignment.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[Layout.Alignment.ALIGN_NORMAL.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[Layout.Alignment.ALIGN_OPPOSITE.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
a[Layout.Alignment.ALIGN_CENTER.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public n(Context context) {
|
|
super(context, null);
|
|
g gVar = new g(context, null);
|
|
this.i = gVar;
|
|
m mVar = new m(this, context, null);
|
|
this.j = mVar;
|
|
mVar.setBackgroundColor(0);
|
|
addView(gVar);
|
|
addView(mVar);
|
|
}
|
|
|
|
public static int b(int i) {
|
|
if (i != 1) {
|
|
return i != 2 ? 0 : -100;
|
|
}
|
|
return -50;
|
|
}
|
|
|
|
@Override // com.google.android.exoplayer2.ui.SubtitleView.a
|
|
public void a(List<c> list, b bVar, float f, int i, float f2) {
|
|
this.l = bVar;
|
|
this.m = f;
|
|
this.n = i;
|
|
this.o = f2;
|
|
ArrayList arrayList = new ArrayList();
|
|
ArrayList arrayList2 = new ArrayList();
|
|
for (int i2 = 0; i2 < list.size(); i2++) {
|
|
c cVar = list.get(i2);
|
|
if (cVar.d != null) {
|
|
arrayList.add(cVar);
|
|
} else {
|
|
arrayList2.add(cVar);
|
|
}
|
|
}
|
|
if (!this.k.isEmpty() || !arrayList2.isEmpty()) {
|
|
this.k = arrayList2;
|
|
d();
|
|
}
|
|
this.i.a(arrayList, bVar, f, i, f2);
|
|
invalidate();
|
|
}
|
|
|
|
public final String c(int i, float f) {
|
|
float u2 = AnimatableValueParser.u2(i, f, getHeight(), (getHeight() - getPaddingTop()) - getPaddingBottom());
|
|
return u2 == -3.4028235E38f ? "unset" : f0.k("%.2fpx", Float.valueOf(u2 / getContext().getResources().getDisplayMetrics().density));
|
|
}
|
|
|
|
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x007e: APUT (r3v0 java.lang.Object[]), (3 ??[int, float, short, byte, char]), (r2v1 java.lang.String) */
|
|
/* JADX DEBUG: Can't convert new array creation: APUT found in different block: 0x0638: APUT (r1v9 java.lang.Object[]), (12 ??[int, float, short, byte, char]), (r3v20 java.lang.String) */
|
|
/* JADX WARNING: Code restructure failed: missing block: B:184:0x0472, code lost:
|
|
if (((android.text.style.TypefaceSpan) r9).getFamily() != null) goto L_0x04be;
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:62:0x01c6, code lost:
|
|
if (r5 != 0) goto L_0x01cd;
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:63:0x01c9, code lost:
|
|
if (r5 != 0) goto L_0x01cb;
|
|
*/
|
|
/* JADX WARNING: Removed duplicated region for block: B:207:0x04ca */
|
|
/* JADX WARNING: Removed duplicated region for block: B:231:0x05ad */
|
|
/* JADX WARNING: Removed duplicated region for block: B:240:0x0615 */
|
|
/* JADX WARNING: Removed duplicated region for block: B:246:0x0635 */
|
|
/* JADX WARNING: Removed duplicated region for block: B:261:0x0504 A[SYNTHETIC] */
|
|
/* JADX WARNING: Removed duplicated region for block: B:73:0x0202 */
|
|
/* JADX WARNING: Removed duplicated region for block: B:74:0x020c */
|
|
public final void d() {
|
|
int i;
|
|
char c2;
|
|
String str;
|
|
int i2;
|
|
String str2;
|
|
int i3;
|
|
int i4;
|
|
String str3;
|
|
CharSequence charSequence;
|
|
String str4;
|
|
String str5;
|
|
String str6;
|
|
String str7;
|
|
String str8;
|
|
String str9;
|
|
c cVar;
|
|
String str10;
|
|
i.b bVar;
|
|
float f;
|
|
int i5;
|
|
String str11;
|
|
String str12;
|
|
String str13;
|
|
float f2;
|
|
String str14;
|
|
String str15;
|
|
String str16;
|
|
String str17;
|
|
String str18;
|
|
int i6;
|
|
n nVar = this;
|
|
StringBuilder sb = new StringBuilder();
|
|
Object[] objArr = new Object[4];
|
|
char c3 = 0;
|
|
objArr[0] = AnimatableValueParser.H2(nVar.l.b);
|
|
int i7 = 1;
|
|
objArr[1] = nVar.c(nVar.n, nVar.m);
|
|
float f3 = 1.2f;
|
|
objArr[2] = Float.valueOf(1.2f);
|
|
b bVar2 = nVar.l;
|
|
int i8 = bVar2.e;
|
|
objArr[3] = i8 != 1 ? i8 != 2 ? i8 != 3 ? i8 != 4 ? "unset" : f0.k("-0.05em -0.05em 0.15em %s", AnimatableValueParser.H2(bVar2.f)) : f0.k("0.06em 0.08em 0.15em %s", AnimatableValueParser.H2(bVar2.f)) : f0.k("0.1em 0.12em 0.15em %s", AnimatableValueParser.H2(bVar2.f)) : f0.k("1px 1px 0 %1$s, 1px -1px 0 %1$s, -1px 1px 0 %1$s, -1px -1px 0 %1$s", AnimatableValueParser.H2(bVar2.f));
|
|
sb.append(f0.k("<body><div style='-webkit-user-select:none;position:fixed;top:0;bottom:0;left:0;right:0;color:%s;font-size:%s;line-height:%.2fem;text-shadow:%s;'>", objArr));
|
|
HashMap hashMap = new HashMap();
|
|
String str19 = "default_bg";
|
|
String str20 = "background-color:%s;";
|
|
hashMap.put(AnimatableValueParser.Y(str19), f0.k(str20, AnimatableValueParser.H2(nVar.l.f822c)));
|
|
int i9 = 0;
|
|
while (i9 < nVar.k.size()) {
|
|
c cVar2 = nVar.k.get(i9);
|
|
float f4 = cVar2.h;
|
|
float f5 = f4 != -3.4028235E38f ? f4 * 100.0f : 50.0f;
|
|
int b = b(cVar2.i);
|
|
float f6 = cVar2.e;
|
|
if (f6 == -3.4028235E38f) {
|
|
c2 = 0;
|
|
Object[] objArr2 = new Object[i7];
|
|
objArr2[0] = Float.valueOf((1.0f - nVar.o) * 100.0f);
|
|
str = f0.k("%.2f%%", objArr2);
|
|
c3 = 0;
|
|
i = -100;
|
|
} else if (cVar2.f != i7) {
|
|
Object[] objArr3 = new Object[i7];
|
|
objArr3[c3] = Float.valueOf(f6 * 100.0f);
|
|
str = f0.k("%.2f%%", objArr3);
|
|
c2 = 0;
|
|
i = cVar2.p == i7 ? -b(cVar2.g) : b(cVar2.g);
|
|
} else {
|
|
if (f6 >= 0.0f) {
|
|
Object[] objArr4 = new Object[i7];
|
|
Float valueOf = Float.valueOf(f6 * f3);
|
|
c2 = 0;
|
|
objArr4[0] = valueOf;
|
|
str = f0.k("%.2fem", objArr4);
|
|
c3 = 0;
|
|
} else {
|
|
Object[] objArr5 = new Object[i7];
|
|
Float valueOf2 = Float.valueOf(((-f6) - 1.0f) * f3);
|
|
c2 = 0;
|
|
objArr5[0] = valueOf2;
|
|
str = f0.k("%.2fem", objArr5);
|
|
c3 = 1;
|
|
}
|
|
i = 0;
|
|
}
|
|
float f7 = cVar2.j;
|
|
if (f7 != -3.4028235E38f) {
|
|
i2 = b;
|
|
Object[] objArr6 = new Object[i7];
|
|
objArr6[c2] = Float.valueOf(f7 * 100.0f);
|
|
str2 = f0.k("%.2f%%", objArr6);
|
|
} else {
|
|
i2 = b;
|
|
str2 = "fit-content";
|
|
}
|
|
Layout.Alignment alignment = cVar2.f823c;
|
|
String str21 = "center";
|
|
if (alignment == null) {
|
|
i3 = 2;
|
|
} else {
|
|
int i10 = a.a[alignment.ordinal()];
|
|
if (i10 != i7) {
|
|
i3 = 2;
|
|
if (i10 == 2) {
|
|
str21 = "end";
|
|
}
|
|
} else {
|
|
i3 = 2;
|
|
str21 = "start";
|
|
}
|
|
}
|
|
int i11 = cVar2.p;
|
|
String str22 = i11 != 1 ? i11 != i3 ? "horizontal-tb" : "vertical-lr" : "vertical-rl";
|
|
String c4 = nVar.c(cVar2.n, cVar2.o);
|
|
String H2 = AnimatableValueParser.H2(cVar2.l ? cVar2.m : nVar.l.d);
|
|
int i12 = cVar2.p;
|
|
String str23 = "right";
|
|
String str24 = "left";
|
|
String str25 = "top";
|
|
if (i12 != 1) {
|
|
if (i12 != 2) {
|
|
if (c3 != 0) {
|
|
str25 = "bottom";
|
|
}
|
|
i4 = 2;
|
|
if (i12 != i4 || i12 == 1) {
|
|
str3 = "height";
|
|
} else {
|
|
str3 = "width";
|
|
i2 = i;
|
|
i = i2;
|
|
}
|
|
charSequence = cVar2.b;
|
|
float f8 = getContext().getResources().getDisplayMetrics().density;
|
|
Pattern pattern = i.a;
|
|
if (charSequence != null) {
|
|
bVar = new i.b("", r0.l, null);
|
|
str10 = "";
|
|
} else if (!(charSequence instanceof Spanned)) {
|
|
str10 = "";
|
|
bVar = new i.b(i.a(charSequence), r0.l, null);
|
|
} else {
|
|
str10 = "";
|
|
Spanned spanned = (Spanned) charSequence;
|
|
HashSet hashSet = new HashSet();
|
|
cVar = cVar2;
|
|
str9 = H2;
|
|
int i13 = 0;
|
|
BackgroundColorSpan[] backgroundColorSpanArr = (BackgroundColorSpan[]) spanned.getSpans(0, spanned.length(), BackgroundColorSpan.class);
|
|
int length = backgroundColorSpanArr.length;
|
|
while (i13 < length) {
|
|
hashSet.add(Integer.valueOf(backgroundColorSpanArr[i13].getBackgroundColor()));
|
|
i13++;
|
|
backgroundColorSpanArr = backgroundColorSpanArr;
|
|
}
|
|
HashMap hashMap2 = new HashMap();
|
|
for (Iterator it = hashSet.iterator(); it.hasNext(); it = it) {
|
|
int intValue = ((Integer) it.next()).intValue();
|
|
hashMap2.put(AnimatableValueParser.Y("bg_" + intValue), f0.k(str20, AnimatableValueParser.H2(intValue)));
|
|
}
|
|
SparseArray sparseArray = new SparseArray();
|
|
str8 = str20;
|
|
Object[] spans = spanned.getSpans(0, spanned.length(), Object.class);
|
|
int length2 = spans.length;
|
|
int i14 = 0;
|
|
while (i14 < length2) {
|
|
Object obj = spans[i14];
|
|
boolean z2 = obj instanceof StrikethroughSpan;
|
|
if (z2) {
|
|
str14 = str22;
|
|
f2 = f8;
|
|
str12 = str2;
|
|
str13 = str21;
|
|
str16 = "<span style='text-decoration:line-through;'>";
|
|
str15 = c4;
|
|
} else {
|
|
str15 = c4;
|
|
if (obj instanceof ForegroundColorSpan) {
|
|
str14 = str22;
|
|
str16 = f0.k("<span style='color:%s;'>", AnimatableValueParser.H2(((ForegroundColorSpan) obj).getForegroundColor()));
|
|
} else {
|
|
str14 = str22;
|
|
if (obj instanceof BackgroundColorSpan) {
|
|
str16 = f0.k("<span class='bg_%s'>", Integer.valueOf(((BackgroundColorSpan) obj).getBackgroundColor()));
|
|
} else if (obj instanceof c.i.a.c.e2.p.a) {
|
|
str16 = "<span style='text-combine-upright:all;'>";
|
|
} else if (obj instanceof AbsoluteSizeSpan) {
|
|
AbsoluteSizeSpan absoluteSizeSpan = (AbsoluteSizeSpan) obj;
|
|
str16 = f0.k("<span style='font-size:%.2fpx;'>", Float.valueOf(absoluteSizeSpan.getDip() ? (float) absoluteSizeSpan.getSize() : ((float) absoluteSizeSpan.getSize()) / f8));
|
|
} else {
|
|
if (obj instanceof RelativeSizeSpan) {
|
|
str16 = f0.k("<span style='font-size:%.2f%%;'>", Float.valueOf(((RelativeSizeSpan) obj).getSizeChange() * 100.0f));
|
|
} else if (obj instanceof TypefaceSpan) {
|
|
String family = ((TypefaceSpan) obj).getFamily();
|
|
str16 = family != null ? f0.k("<span style='font-family:\"%s\";'>", family) : null;
|
|
} else {
|
|
if (obj instanceof StyleSpan) {
|
|
int style = ((StyleSpan) obj).getStyle();
|
|
if (style == 1) {
|
|
str16 = "<b>";
|
|
} else if (style == 2) {
|
|
str16 = "<i>";
|
|
} else if (style == 3) {
|
|
str16 = "<b><i>";
|
|
}
|
|
} else if (obj instanceof c.i.a.c.e2.p.b) {
|
|
int i15 = ((c.i.a.c.e2.p.b) obj).b;
|
|
if (i15 == -1) {
|
|
str16 = "<ruby style='ruby-position:unset;'>";
|
|
} else if (i15 == 1) {
|
|
str16 = "<ruby style='ruby-position:over;'>";
|
|
} else if (i15 == 2) {
|
|
str16 = "<ruby style='ruby-position:under;'>";
|
|
}
|
|
} else if (obj instanceof UnderlineSpan) {
|
|
str16 = "<u>";
|
|
} else if (obj instanceof c.i.a.c.e2.p.c) {
|
|
c.i.a.c.e2.p.c cVar3 = (c.i.a.c.e2.p.c) obj;
|
|
int i16 = cVar3.a;
|
|
f2 = f8;
|
|
int i17 = cVar3.b;
|
|
str13 = str21;
|
|
StringBuilder sb2 = new StringBuilder();
|
|
str12 = str2;
|
|
if (i17 != 1) {
|
|
i6 = 2;
|
|
if (i17 == 2) {
|
|
sb2.append("open ");
|
|
}
|
|
} else {
|
|
i6 = 2;
|
|
sb2.append("filled ");
|
|
}
|
|
if (i16 == 0) {
|
|
sb2.append("none");
|
|
} else if (i16 == 1) {
|
|
sb2.append("circle");
|
|
} else if (i16 == i6) {
|
|
sb2.append("dot");
|
|
} else if (i16 != 3) {
|
|
sb2.append("unset");
|
|
} else {
|
|
sb2.append("sesame");
|
|
}
|
|
str16 = f0.k("<span style='-webkit-text-emphasis-style:%1$s;text-emphasis-style:%1$s;-webkit-text-emphasis-position:%2$s;text-emphasis-position:%2$s;display:inline-block;'>", sb2.toString(), cVar3.f849c != 2 ? "over right" : "under left");
|
|
}
|
|
f2 = f8;
|
|
str12 = str2;
|
|
str13 = str21;
|
|
str16 = null;
|
|
}
|
|
f2 = f8;
|
|
str12 = str2;
|
|
str13 = str21;
|
|
}
|
|
}
|
|
f2 = f8;
|
|
str12 = str2;
|
|
str13 = str21;
|
|
}
|
|
if (!z2 && !(obj instanceof ForegroundColorSpan) && !(obj instanceof BackgroundColorSpan) && !(obj instanceof c.i.a.c.e2.p.a) && !(obj instanceof AbsoluteSizeSpan) && !(obj instanceof RelativeSizeSpan) && !(obj instanceof c.i.a.c.e2.p.c)) {
|
|
if (!(obj instanceof TypefaceSpan)) {
|
|
if (obj instanceof StyleSpan) {
|
|
int style2 = ((StyleSpan) obj).getStyle();
|
|
if (style2 == 1) {
|
|
str18 = "</b>";
|
|
} else if (style2 == 2) {
|
|
str18 = "</i>";
|
|
} else if (style2 == 3) {
|
|
str18 = "</i></b>";
|
|
}
|
|
str17 = str18;
|
|
int spanStart = spanned.getSpanStart(obj);
|
|
int spanEnd = spanned.getSpanEnd(obj);
|
|
if (str16 == null) {
|
|
Objects.requireNonNull(str17);
|
|
i.c cVar4 = new i.c(spanStart, spanEnd, str16, str17, null);
|
|
i.d dVar = (i.d) sparseArray.get(spanStart);
|
|
if (dVar == null) {
|
|
dVar = new i.d();
|
|
sparseArray.put(spanStart, dVar);
|
|
}
|
|
dVar.a.add(cVar4);
|
|
i.d dVar2 = (i.d) sparseArray.get(spanEnd);
|
|
if (dVar2 == null) {
|
|
dVar2 = new i.d();
|
|
sparseArray.put(spanEnd, dVar2);
|
|
}
|
|
dVar2.b.add(cVar4);
|
|
}
|
|
i14++;
|
|
length2 = length2;
|
|
spans = spans;
|
|
c4 = str15;
|
|
str22 = str14;
|
|
f8 = f2;
|
|
str21 = str13;
|
|
str2 = str12;
|
|
} else {
|
|
if (obj instanceof c.i.a.c.e2.p.b) {
|
|
StringBuilder P = c.d.b.a.a.P("<rt>");
|
|
P.append(i.a(((c.i.a.c.e2.p.b) obj).a));
|
|
P.append("</rt></ruby>");
|
|
str18 = P.toString();
|
|
} else if (obj instanceof UnderlineSpan) {
|
|
str18 = "</u>";
|
|
}
|
|
str17 = str18;
|
|
int spanStart = spanned.getSpanStart(obj);
|
|
int spanEnd = spanned.getSpanEnd(obj);
|
|
if (str16 == null) {
|
|
}
|
|
i14++;
|
|
length2 = length2;
|
|
spans = spans;
|
|
c4 = str15;
|
|
str22 = str14;
|
|
f8 = f2;
|
|
str21 = str13;
|
|
str2 = str12;
|
|
}
|
|
}
|
|
str18 = null;
|
|
str17 = str18;
|
|
int spanStart = spanned.getSpanStart(obj);
|
|
int spanEnd = spanned.getSpanEnd(obj);
|
|
if (str16 == null) {
|
|
}
|
|
i14++;
|
|
length2 = length2;
|
|
spans = spans;
|
|
c4 = str15;
|
|
str22 = str14;
|
|
f8 = f2;
|
|
str21 = str13;
|
|
str2 = str12;
|
|
}
|
|
str17 = "</span>";
|
|
int spanStart = spanned.getSpanStart(obj);
|
|
int spanEnd = spanned.getSpanEnd(obj);
|
|
if (str16 == null) {
|
|
}
|
|
i14++;
|
|
length2 = length2;
|
|
spans = spans;
|
|
c4 = str15;
|
|
str22 = str14;
|
|
f8 = f2;
|
|
str21 = str13;
|
|
str2 = str12;
|
|
}
|
|
str6 = str22;
|
|
str4 = str2;
|
|
str7 = c4;
|
|
str5 = str21;
|
|
StringBuilder sb3 = new StringBuilder(spanned.length());
|
|
int i18 = 0;
|
|
int i19 = 0;
|
|
while (i18 < sparseArray.size()) {
|
|
int keyAt = sparseArray.keyAt(i18);
|
|
sb3.append(i.a(spanned.subSequence(i19, keyAt)));
|
|
i.d dVar3 = (i.d) sparseArray.get(keyAt);
|
|
Collections.sort(dVar3.b, f.i);
|
|
for (i.c cVar5 : dVar3.b) {
|
|
sb3.append(cVar5.d);
|
|
}
|
|
Collections.sort(dVar3.a, e.i);
|
|
for (i.c cVar6 : dVar3.a) {
|
|
sb3.append(cVar6.f875c);
|
|
}
|
|
i18++;
|
|
i19 = keyAt;
|
|
}
|
|
sb3.append(i.a(spanned.subSequence(i19, spanned.length())));
|
|
bVar = new i.b(sb3.toString(), hashMap2, null);
|
|
for (String str26 : hashMap.keySet()) {
|
|
String str27 = (String) hashMap.put(str26, (String) hashMap.get(str26));
|
|
AnimatableValueParser.D(str27 == null || str27.equals(hashMap.get(str26)));
|
|
}
|
|
Object[] objArr7 = new Object[13];
|
|
objArr7[0] = str24;
|
|
objArr7[1] = Float.valueOf(f5);
|
|
objArr7[2] = str25;
|
|
objArr7[3] = str;
|
|
objArr7[4] = str3;
|
|
objArr7[5] = str4;
|
|
objArr7[6] = str5;
|
|
objArr7[7] = str6;
|
|
objArr7[8] = str7;
|
|
objArr7[9] = str9;
|
|
objArr7[10] = Integer.valueOf(i);
|
|
objArr7[11] = Integer.valueOf(i2);
|
|
f = cVar.q;
|
|
if (f != 0.0f) {
|
|
int i20 = cVar.p;
|
|
i5 = 1;
|
|
str11 = f0.k("%s(%.2fdeg)", (i20 == 2 || i20 == 1) ? "skewY" : "skewX", Float.valueOf(f));
|
|
} else {
|
|
i5 = 1;
|
|
str11 = str10;
|
|
}
|
|
objArr7[12] = str11;
|
|
String k = f0.k("<div style='position:absolute;%s:%.2f%%;%s:%s;%s:%s;text-align:%s;writing-mode:%s;font-size:%s;background-color:%s;transform:translate(%s%%,%s%%)%s;'>", objArr7);
|
|
sb = sb;
|
|
sb.append(k);
|
|
Object[] objArr8 = new Object[i5];
|
|
objArr8[0] = str19;
|
|
sb.append(f0.k("<span class='%s'>", objArr8));
|
|
sb.append(bVar.a);
|
|
sb.append("</span>");
|
|
sb.append("</div>");
|
|
i9++;
|
|
f3 = 1.2f;
|
|
c3 = 0;
|
|
i7 = 1;
|
|
nVar = this;
|
|
str19 = str19;
|
|
str20 = str8;
|
|
}
|
|
str6 = str22;
|
|
cVar = cVar2;
|
|
str8 = str20;
|
|
str4 = str2;
|
|
str7 = c4;
|
|
str5 = str21;
|
|
str9 = H2;
|
|
while (r1.hasNext()) {
|
|
}
|
|
Object[] objArr7 = new Object[13];
|
|
objArr7[0] = str24;
|
|
objArr7[1] = Float.valueOf(f5);
|
|
objArr7[2] = str25;
|
|
objArr7[3] = str;
|
|
objArr7[4] = str3;
|
|
objArr7[5] = str4;
|
|
objArr7[6] = str5;
|
|
objArr7[7] = str6;
|
|
objArr7[8] = str7;
|
|
objArr7[9] = str9;
|
|
objArr7[10] = Integer.valueOf(i);
|
|
objArr7[11] = Integer.valueOf(i2);
|
|
f = cVar.q;
|
|
if (f != 0.0f) {
|
|
}
|
|
objArr7[12] = str11;
|
|
String k = f0.k("<div style='position:absolute;%s:%.2f%%;%s:%s;%s:%s;text-align:%s;writing-mode:%s;font-size:%s;background-color:%s;transform:translate(%s%%,%s%%)%s;'>", objArr7);
|
|
sb = sb;
|
|
sb.append(k);
|
|
Object[] objArr8 = new Object[i5];
|
|
objArr8[0] = str19;
|
|
sb.append(f0.k("<span class='%s'>", objArr8));
|
|
sb.append(bVar.a);
|
|
sb.append("</span>");
|
|
sb.append("</div>");
|
|
i9++;
|
|
f3 = 1.2f;
|
|
c3 = 0;
|
|
i7 = 1;
|
|
nVar = this;
|
|
str19 = str19;
|
|
str20 = str8;
|
|
}
|
|
}
|
|
str23 = str24;
|
|
i4 = 2;
|
|
str24 = str25;
|
|
str25 = str23;
|
|
if (i12 != i4) {
|
|
}
|
|
str3 = "height";
|
|
charSequence = cVar2.b;
|
|
float f8 = getContext().getResources().getDisplayMetrics().density;
|
|
Pattern pattern = i.a;
|
|
if (charSequence != null) {
|
|
}
|
|
str6 = str22;
|
|
cVar = cVar2;
|
|
str8 = str20;
|
|
str4 = str2;
|
|
str7 = c4;
|
|
str5 = str21;
|
|
str9 = H2;
|
|
while (r1.hasNext()) {
|
|
}
|
|
Object[] objArr7 = new Object[13];
|
|
objArr7[0] = str24;
|
|
objArr7[1] = Float.valueOf(f5);
|
|
objArr7[2] = str25;
|
|
objArr7[3] = str;
|
|
objArr7[4] = str3;
|
|
objArr7[5] = str4;
|
|
objArr7[6] = str5;
|
|
objArr7[7] = str6;
|
|
objArr7[8] = str7;
|
|
objArr7[9] = str9;
|
|
objArr7[10] = Integer.valueOf(i);
|
|
objArr7[11] = Integer.valueOf(i2);
|
|
f = cVar.q;
|
|
if (f != 0.0f) {
|
|
}
|
|
objArr7[12] = str11;
|
|
String k = f0.k("<div style='position:absolute;%s:%.2f%%;%s:%s;%s:%s;text-align:%s;writing-mode:%s;font-size:%s;background-color:%s;transform:translate(%s%%,%s%%)%s;'>", objArr7);
|
|
sb = sb;
|
|
sb.append(k);
|
|
Object[] objArr8 = new Object[i5];
|
|
objArr8[0] = str19;
|
|
sb.append(f0.k("<span class='%s'>", objArr8));
|
|
sb.append(bVar.a);
|
|
sb.append("</span>");
|
|
sb.append("</div>");
|
|
i9++;
|
|
f3 = 1.2f;
|
|
c3 = 0;
|
|
i7 = 1;
|
|
nVar = this;
|
|
str19 = str19;
|
|
str20 = str8;
|
|
}
|
|
sb.append("</div></body></html>");
|
|
StringBuilder sb4 = new StringBuilder();
|
|
sb4.append("<html><head><style>");
|
|
for (String str28 : hashMap.keySet()) {
|
|
sb4.append(str28);
|
|
sb4.append("{");
|
|
sb4.append((String) hashMap.get(str28));
|
|
sb4.append("}");
|
|
}
|
|
sb4.append("</style></head>");
|
|
sb.insert(0, sb4.toString());
|
|
this.j.loadData(Base64.encodeToString(sb.toString().getBytes(c.i.b.a.c.f1278c), 1), "text/html", "base64");
|
|
}
|
|
|
|
@Override // android.widget.FrameLayout, android.view.View, android.view.ViewGroup
|
|
public void onLayout(boolean z2, int i, int i2, int i3, int i4) {
|
|
super.onLayout(z2, i, i2, i3, i4);
|
|
if (z2 && !this.k.isEmpty()) {
|
|
d();
|
|
}
|
|
}
|
|
}
|