WeChat.apk(点击下载) / i.java


package io1;

import br1.g1;
import bw3.f01;
import bw3.g21;
import bw3.oy0;
import bw3.x31;
import bw3.z81;
import com.tencent.mm.plugin.finder.utils.a5;
import com.tencent.mm.protocal.protobuf.FinderContact;
import com.tencent.mm.sdk.platformtools.MMApplicationContext;
import java.util.LinkedList;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import lh4.m;
import lh4.o;
import tr.b;
import wg4.b0;
import wg4.g;
import wg4.h;
import wg4.l;
import wg4.n;
import yz3.j;

public final class i {

    /* renamed from: a  reason: collision with root package name */
    public static final i f234254a = new i();

    /* renamed from: b  reason: collision with root package name */
    public static int f234255b = 1;

    /* renamed from: c  reason: collision with root package name */
    public static boolean f234256c;

    /* renamed from: d  reason: collision with root package name */
    public static final g f234257d = h.a(a.f234259d);

    /* renamed from: e  reason: collision with root package name */
    public static long f234258e;

    public static final class a extends o implements kh4.a<Random> {

        /* renamed from: d  reason: collision with root package name */
        public static final a f234259d = new a();

        public a() {
            super(0);
        }

        /* Return type fixed from 'java.lang.Object' to match base method */
        @Override // kh4.a
        public Random invoke() {
            return new Random();
        }
    }

    public final g21 a(g21 g212) {
        m.g(g212, "<this>");
        g21 g213 = new g21();
        g213.f22245d = g212.f22245d;
        g213.f22246e = g212.f22246e;
        g213.f22247f = g212.f22247f;
        g213.f22248g = g212.f22248g;
        g213.f22249h = g212.f22249h;
        g213.f22250i = g212.f22250i;
        return g213;
    }

    public final g1 b() {
        oy0 oy02 = new oy0();
        oy02.f32480e = 20013;
        a5 a5Var = a5.f118672a;
        f01 f012 = new f01();
        f012.f21080j = "12345";
        f012.f21075e = 2;
        z81 z812 = new z81();
        z812.f44187f = "http://dldir1.qq.com/weixin/checkresupdate/fans_54fc0cc071084cc1b7767055fe901823.png";
        f012.f21077g = z812;
        b0 b0Var = b0.f332794a;
        oy02.f32483h = a5Var.n0(f012);
        x31 x312 = new x31();
        LinkedList<g21> linkedList = new LinkedList<>();
        g21 g212 = new g21();
        g212.f22245d = 2;
        g212.f22249h = "送礼物仔来了";
        g212.f22247f = f234255b + 1;
        f234255b = ((Random) ((n) f234257d).getValue()).nextInt(100);
        linkedList.add(g212);
        x312.f41760r = linkedList;
        FinderContact finderContact = new FinderContact();
        finderContact.nickname = "送礼的大王叫来来巡山";
        finderContact.username = ((b) j.c(b.class)).C2(MMApplicationContext.getContext());
        x312.f41749d = finderContact;
        oy02.f32491s = x312;
        return new g1(oy02);
    }

    public final l<Integer, Integer> c(String str) {
        Matcher matcher = Pattern.compile("(.*?)粉丝团弹幕(\\d+)级(.*?)").matcher(str);
        if (matcher.matches()) {
            String group = matcher.group(2);
            m.f(group, "matcher.group(2)");
            return new l<>(4, Integer.valueOf(Integer.parseInt(group)));
        }
        Matcher matcher2 = Pattern.compile("(.*?)等级弹幕(\\d+)级(.*?)").matcher(str);
        if (!matcher2.matches()) {
            return new l<>(0, -1);
        }
        String group2 = matcher2.group(2);
        m.f(group2, "matcher.group(2)");
        return new l<>(2, Integer.valueOf(Integer.parseInt(group2)));
    }
}