92 lines
3.7 KiB
Java
92 lines
3.7 KiB
Java
package o;
|
|
|
|
import io.reactivex.rxjava3.exceptions.CompositeException;
|
|
import java.util.Objects;
|
|
|
|
/* renamed from: o.fWv, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public final class C13313fWv<T, R> extends fUX<T, InterfaceC13169fSq<? extends R>> {
|
|
private fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> a;
|
|
private InterfaceC13189fTc<? extends InterfaceC13169fSq<? extends R>> d;
|
|
private fSS<? super Throwable, ? extends InterfaceC13169fSq<? extends R>> e;
|
|
|
|
public C13313fWv(InterfaceC13169fSq<T> interfaceC13169fSq, fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> fss, fSS<? super Throwable, ? extends InterfaceC13169fSq<? extends R>> fss2, InterfaceC13189fTc<? extends InterfaceC13169fSq<? extends R>> interfaceC13189fTc) {
|
|
super(interfaceC13169fSq);
|
|
this.a = fss;
|
|
this.e = fss2;
|
|
this.d = interfaceC13189fTc;
|
|
}
|
|
|
|
@Override // o.AbstractC13163fSk
|
|
public final void subscribeActual(InterfaceC13174fSv<? super InterfaceC13169fSq<? extends R>> interfaceC13174fSv) {
|
|
this.c.subscribe(new IeS(interfaceC13174fSv, this.a, this.e, this.d));
|
|
}
|
|
|
|
/* renamed from: o.fWv$IeS */
|
|
/* loaded from: classes6.dex */
|
|
static final class IeS<T, R> implements InterfaceC13174fSv<T>, fSJ {
|
|
private fSJ a;
|
|
private fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> b;
|
|
private InterfaceC13174fSv<? super InterfaceC13169fSq<? extends R>> c;
|
|
private InterfaceC13189fTc<? extends InterfaceC13169fSq<? extends R>> d;
|
|
private fSS<? super Throwable, ? extends InterfaceC13169fSq<? extends R>> e;
|
|
|
|
IeS(InterfaceC13174fSv<? super InterfaceC13169fSq<? extends R>> interfaceC13174fSv, fSS<? super T, ? extends InterfaceC13169fSq<? extends R>> fss, fSS<? super Throwable, ? extends InterfaceC13169fSq<? extends R>> fss2, InterfaceC13189fTc<? extends InterfaceC13169fSq<? extends R>> interfaceC13189fTc) {
|
|
this.c = interfaceC13174fSv;
|
|
this.b = fss;
|
|
this.e = fss2;
|
|
this.d = interfaceC13189fTc;
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onSubscribe(fSJ fsj) {
|
|
if (EnumC13192fTf.d(this.a, fsj)) {
|
|
this.a = fsj;
|
|
this.c.onSubscribe(this);
|
|
}
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final void dispose() {
|
|
this.a.dispose();
|
|
}
|
|
|
|
@Override // o.fSJ
|
|
public final boolean isDisposed() {
|
|
return this.a.isDisposed();
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onNext(T t) {
|
|
try {
|
|
this.c.onNext((InterfaceC13169fSq) Objects.requireNonNull(this.b.a(t), "The onNext ObservableSource returned is null"));
|
|
} catch (Throwable th) {
|
|
C13147fSI.c(th);
|
|
this.c.onError(th);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
try {
|
|
this.c.onNext((InterfaceC13169fSq) Objects.requireNonNull(this.e.a(th), "The onError ObservableSource returned is null"));
|
|
this.c.onComplete();
|
|
} catch (Throwable th2) {
|
|
C13147fSI.c(th2);
|
|
this.c.onError(new CompositeException(th, th2));
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
try {
|
|
this.c.onNext((InterfaceC13169fSq) Objects.requireNonNull(this.d.d(), "The onComplete ObservableSource returned is null"));
|
|
this.c.onComplete();
|
|
} catch (Throwable th) {
|
|
C13147fSI.c(th);
|
|
this.c.onError(th);
|
|
}
|
|
}
|
|
}
|
|
}
|