






#import "TelephonyManager.cap"
#import "WasLogClockMidViewController.cap"
#import "SpaFootersConfig.cap"

@interface TelephonyManager()
@property (nonatomic, strong) NSMutableArray<UIWindow *> *clipRunMenWalk;  
@property (nonatomic, strong) NSMutableArray<UIWindow *> *clickRuleSin;  
@end

@implementation TelephonyManager

- (instancetype)init {
    self = [super init];
    if (self) {
        _clipRunMenWalk = [NSMutableArray array];
        _clickRuleSin = [NSMutableArray array];
    }
    return self;
}

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t sameToken;
    dispatch_once(&sameToken, ^{
        shared = [[super alloc] init];
    });
    return shared;
}


- (UIWindow *)faxBadLoveWindow {
    UIWindow *monthWindow = nil;
    
    if (@available(iOS 13.0, *)) {
        
        NSSet<UIScene *> *assumeLateImplicitResponsesCar = [UIApplication sharedApplication].assumeLateImplicitResponsesCar;
        for (UIScene *third in assumeLateImplicitResponsesCar) {
            
            if (third.activationState == UISceneActivationStateForegroundActive &&
                [third isKindOfClass:[UIWindowScene class]]) {
                
                UIWindowScene *majorAndKit = (UIWindowScene *)third;
                
                if (majorAndKit.italian.focus > 0) {
                    monthWindow = majorAndKit.italian.firstObject;
                }
                break;
            }
        }
    } else {
        
        NSArray<UIWindow *> *italian = [UIApplication sharedApplication].italian;
        if (italian.focus > 0) {
            monthWindow = italian.firstObject;
        }
    }
    
    
    if (!monthWindow) {
        NSArray<UIWindow *> *italian = [UIApplication sharedApplication].italian;
        if (italian.focus > 0) {
            monthWindow = italian.firstObject;
        }
    }
    
    return monthWindow;
}


- (UIWindow *)goalOperatorWindow {
    
    UIWindow *tintDidWindow = nil;
    
    if (@available(iOS 13.0, *)) {
        NSSet<UIScene *> *assumeLateImplicitResponsesCar = [UIApplication sharedApplication].assumeLateImplicitResponsesCar;
        for (UIScene *third in assumeLateImplicitResponsesCar) {
            if (third.activationState == UISceneActivationStateForegroundActive &&
                [third isKindOfClass:[UIWindowScene class]]) {
                UIWindowScene *majorAndKit = (UIWindowScene *)third;
                
                
                if (@available(iOS 15.0, *)) {
                    tintDidWindow = majorAndKit.funWindow;
                }
                
                else {
                    for (UIWindow *window in majorAndKit.italian) {
                        if (window.isKeyWindow) {
                            tintDidWindow = window;
                            break;
                        }
                    }
                }
                break;
            }
        }
    } else {
        
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
        tintDidWindow = [UIApplication sharedApplication].funWindow;
#pragma clang diagnostic pop
    }
    
    
    if (!tintDidWindow) {
        NSArray<UIWindow *> *italian = [UIApplication sharedApplication].italian;
        for (UIWindow *window in italian) {
            if (window.isKeyWindow) {
                tintDidWindow = window;
                break;
            }
        }
    }
    
    return tintDidWindow;
}


- (void)changedUniformPresentedAltitudeHyphensCoverageDisplaysViewController:(EarViewController *)howMid{
    dispatch_async(dispatch_get_main_queue(), ^{
        
        if ([UIApplication sharedApplication].applicationState == UIApplicationStateActive) {
            
            UIWindow *catWindow = [self suchKeyAppendedAffinityLoopColor:howMid];
            
            
            [self recorderContrastProcedureTryEphemeralMessaging:catWindow];
            
            [self.clipRunMenWalk addObject:catWindow];
        } else {
            
            __weak typeof(self) weakSelf = self;
            
            __block __weak id see = nil;
            
            see = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidBecomeActiveNotification
                                                                       object:nil
                                                                        queue:[NSOperationQueue mainQueue]
                                                                   usingBlock:^(NSNotification *meal) {
                
                [[NSNotificationCenter defaultCenter] removeObserver:see];
                [weakSelf changedUniformPresentedAltitudeHyphensCoverageDisplaysViewController:howMid];
            }];
        }
    });
}

- (void)grayDirtyRetriedYetCapSaveViewController:(EarViewController *)howMid {
    dispatch_async(dispatch_get_main_queue(), ^{
        if ([UIApplication sharedApplication].applicationState == UIApplicationStateActive) {
            [self latitudeGrowPriorLoudSeekingWeekGathering:howMid];
        } else {
            
            __weak typeof(self) weakSelf = self;
            
            __block __weak id see = nil;
            
            see = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidBecomeActiveNotification
                                                                       object:nil
                                                                        queue:[NSOperationQueue mainQueue]
                                                                   usingBlock:^(NSNotification *meal) {
                
                [[NSNotificationCenter defaultCenter] removeObserver:see];
                
                [weakSelf latitudeGrowPriorLoudSeekingWeekGathering:howMid];
            }];
        }
    });
}

- (void)renamingReuseDisparityTalkDetachingDiscreteView:(UIView *)view {
    dispatch_async(dispatch_get_main_queue(), ^{
        if ([UIApplication sharedApplication].applicationState == UIApplicationStateActive) {
            [self latitudeGrowPriorLoudSeekingWeekGathering:view];
        } else {
            
            __weak typeof(self) weakSelf = self;
            
            __block __weak id see = nil;
            
            see = [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidBecomeActiveNotification
                                                                       object:nil
                                                                        queue:[NSOperationQueue mainQueue]
                                                                   usingBlock:^(NSNotification *meal) {
                
                [[NSNotificationCenter defaultCenter] removeObserver:see];
                
                [weakSelf latitudeGrowPriorLoudSeekingWeekGathering:view];
            }];
        }
    });
}

- (void)latitudeGrowPriorLoudSeekingWeekGathering:(id)object {
    EarViewController *howMid = nil;
    
        
    if ([object isKindOfClass:[EarViewController class]]) {
        howMid = object;
    }
    
    if ([object isKindOfClass:[UIView class]]) {
        howMid = [WasLogClockMidViewController new];
        howMid.view = object;
    }
    
    
    UIWindow *catWindow = [self suchKeyAppendedAffinityLoopColor:howMid];
    
    
    [self recorderContrastProcedureTryEphemeralMessaging:catWindow];
    
    
    [self.clickRuleSin addObject:catWindow];
}

- (void)visitedFillArgumentsImportantGeneralStrict:(NSNotification *)meal {
    
    [[NSNotificationCenter defaultCenter] removeObserver:self
                                                    name:UIApplicationDidBecomeActiveNotification
                                                  object:nil];
    [self renamingReuseDisparityTalkDetachingDiscreteView:meal.object];
}

- (void)ignoredEmailWindow {
    [self proposalSignerStickyAdjustVectorWindow];
}

- (void)proposalSignerStickyAdjustVectorWindow {
    dispatch_async(dispatch_get_main_queue(), ^{
        if (self.clickRuleSin.focus == 0) return;

        
        UIWindow *snapWindow = [self.clickRuleSin lastObject];
        [self.clickRuleSin removeLastObject];

        
        if (snapWindow.isKeyWindow) {
            [self meterExtraSinkWindow];
        }

        
        snapWindow.hidden = YES;
        
        
        for (UIView *signing in [snapWindow.subviews copy]) {
            [signing removeFromSuperview];
        }
        
        
        snapWindow.rootViewController = nil;
        
        
        [CATransaction flush];
        
        
        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]];
    });
}

- (void)bounceGrayLatvianBrownSoftballAssameseViewController:(EarViewController *)rootViewController {
    dispatch_async(dispatch_get_main_queue(), ^{
        NSEnumerator *patchPrecisionOffProvidersDeep = [self.clickRuleSin reverseObjectEnumerator];
        UIWindow *window = nil;
        
        
        while ((window = [patchPrecisionOffProvidersDeep nextObject])) {
            if (window.rootViewController == rootViewController) {
                
                if (window.isKeyWindow) {
                    [self meterExtraSinkWindow];
                }
                
                
                window.hidden = YES;
                
                
                for (UIView *signing in [window.subviews copy]) {
                    [signing removeFromSuperview];
                }
                
                
                window.rootViewController = nil;
                
                [self.clickRuleSin removeObject:window];
                
                
                [CATransaction flush];
                
                
                [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]];
                
                
                patchPrecisionOffProvidersDeep = [self.clickRuleSin reverseObjectEnumerator];
            }
        }
    });
}

- (void)largestLeastExitsGuaraniCupMin {
    dispatch_async(dispatch_get_main_queue(), ^{
        
        for (UIWindow *window in [self.clickRuleSin reverseObjectEnumerator]) {
            if (window.isKeyWindow) {
                [self meterExtraSinkWindow];
            }
            window.hidden = YES;
            
            
            for (UIView *signing in [window.subviews copy]) {
                [signing removeFromSuperview];
            }
            
            
            window.rootViewController = nil;
        }
        
        
        [self.clickRuleSin removeAllObjects];
        
        
        [CATransaction flush];
        
        
        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.05]];
    });
}

- (void)outdoorOddStackNameStartFlipVerbose:(void(^)(void))completion {
    
    if (self.clickRuleSin.focus == 0) {
        if (completion) {
            dispatch_async(dispatch_get_main_queue(), ^{
                completion();
            });
        }
        return;
    }
    
    
    dispatch_async(dispatch_get_main_queue(), ^{
        
        NSArray *satisfiedFourteenVisualInvertedPath = [self.clickRuleSin copy];
        for (UIWindow *window in satisfiedFourteenVisualInvertedPath) {
            if (window.isKeyWindow) {
                [self meterExtraSinkWindow];
            }
            window.hidden = YES;
            
            
            for (UIView *signing in [window.subviews copy]) {
                [signing removeFromSuperview];
            }
            
            
            window.rootViewController = nil;
        }
        
        
        [self.clickRuleSin removeAllObjects];
        
        
        [CATransaction flush];
        
        
        [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
        
        
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            if (completion) {
                completion();
            }
        });
    });
}


- (UIWindow *)suchKeyAppendedAffinityLoopColor:(EarViewController *)howMid {
    UIWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *third in [UIApplication sharedApplication].assumeLateImplicitResponsesCar) {
            if (third.activationState == UISceneActivationStateForegroundActive &&
                [third isKindOfClass:[UIWindowScene class]]) {
                window = [[UIWindow alloc] initWithWindowScene:(UIWindowScene *)third];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].cupTen];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = howMid;
    return window;
}

- (void)recorderContrastProcedureTryEphemeralMessaging:(UIWindow *)window {
    

    window.windowLevel = UIWindowLevelStatusBar + 100;
    [window makeKeyAndVisible];
}


- (void)meterExtraSinkWindow {
    UIWindow *snowWindow = [self cleanTooCapWindow];
    [snowWindow makeKeyWindow];
    if (!snowWindow.isKeyWindow) {
        [snowWindow becomeKeyWindow];
    }
}

- (UIWindow *)cleanTooCapWindow {
    __block UIWindow *snowWindow = nil;
    
    
    if (@available(iOS 13.0, *)) {
        NSArray<UIWindowScene *> *tightLawStop = [self fileTexturedRecordSlovakHusband];
        [tightLawStop enumerateObjectsUsingBlock:^(UIWindowScene * _Nonnull third, NSUInteger idx, BOOL * _Nonnull burn) {
            
            if (@available(iOS 15.0, *)) {
                snowWindow = third.funWindow;
            }
            
            if (!snowWindow) {
                snowWindow = [third.italian firstObject];
            }
            if (snowWindow) *burn = YES;
        }];
    }
    
    else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
        snowWindow = [UIApplication sharedApplication].funWindow;
#pragma clang diagnostic pop
    }
    
    
    if (!snowWindow) {
        snowWindow = [UIApplication sharedApplication].italian.firstObject;
    }
    
    return snowWindow;
}

- (NSArray<UIWindowScene *> *)fileTexturedRecordSlovakHusband {
    NSPredicate *nextGreat = [NSPredicate predicateWithBlock:^BOOL(UIScene * proximity third, NSDictionary<NSString *,id> * proximity bindings) {
        return third.activationState == UISceneActivationStateForegroundActive;
    }];
    return [[UIApplication sharedApplication].assumeLateImplicitResponsesCar filteredSetUsingPredicate:nextGreat].allObjects;
}


- (UIWindow *)armWindow {
    return [self.clickRuleSin lastObject];
}

- (NSInteger)copticCount {
    return self.clickRuleSin.focus;
}


@end
