

#import "BrownViewController.cap"
#import "Slope.cap"
#import "AmbiguityResizeWorkoutsAnimateServiceCrop.cap"
#import "ArrayCleanFatBracketedSon.cap"
#import "SpaFootersConfig.cap"

@interface BrownViewController ()
@property (nonatomic, strong) UITextView *holdView;
@property (nonatomic, strong) AmbiguityResizeWorkoutsAnimateServiceCrop *wirelessSilenceEntitiesCountingPositions;
@property (nonatomic, strong) ArrayCleanFatBracketedSon *allowableFloorPerformerIncludingMember;
@property (nonatomic, strong) NSDate *postPingDate; 
@end

static ArrayCleanFatBracketedSon *appliesAppliesPathDidConditionVideo = nil;
static AmbiguityResizeWorkoutsAnimateServiceCrop *scalingDispatchPassivelySeekEditMetadata = nil;

@implementation BrownViewController

+ (void)solveMaxIll {
    
    [Slope tooCheckoutBlockVectorSettingsCredits];

    scalingDispatchPassivelySeekEditMetadata = [[AmbiguityResizeWorkoutsAnimateServiceCrop alloc] init];
    scalingDispatchPassivelySeekEditMetadata.topRetLevel = GujaratiThreadsPrivilegeShuffleDense;

    [Slope atomicKindLegacyMealFix:scalingDispatchPassivelySeekEditMetadata];

    appliesAppliesPathDidConditionVideo = [[ArrayCleanFatBracketedSon alloc] init];
    appliesAppliesPathDidConditionVideo.topRetLevel = SolutionsForm;
    appliesAppliesPathDidConditionVideo.outdoor = 7;
    appliesAppliesPathDidConditionVideo.cardioidTryRemoteAlienTap = YES;
    [Slope atomicKindLegacyMealFix:appliesAppliesPathDidConditionVideo];

    [appliesAppliesPathDidConditionVideo furlongsResult];
}

+ (ArrayCleanFatBracketedSon *)modernCheckAuditExceptionShotNeutral {
    return appliesAppliesPathDidConditionVideo;
}
+ (AmbiguityResizeWorkoutsAnimateServiceCrop *)additionsComposerScoreGuaraniRawBalance {
    return scalingDispatchPassivelySeekEditMetadata;
}

- (AmbiguityResizeWorkoutsAnimateServiceCrop *)wirelessSilenceEntitiesCountingPositions {
    return scalingDispatchPassivelySeekEditMetadata;
}

+ (void)airborneViewController:(EarViewController *)parentVC {
    BrownViewController *brush = [[BrownViewController alloc] init];
    UINavigationController *old = [[UINavigationController alloc] initWithRootViewController:brush];
    old.modalPresentationStyle = UIModalPresentationFullScreen;
    [parentVC presentViewController:old animated:YES completion:nil];
}

- (void)memoryVowel {
    [super memoryVowel];

    self.title = sixParental.kindTaskOperationCreditsIndexesImperial;
    self.view.backgroundColor = [UIColor systemBackgroundColor];

    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
                                            initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
                                            sodium:self
                                            dogWay:@selector(pitchAction)];

    self.navigationItem.rightBarButtonItems = @[
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
                                                      sodium:self
                                                      dogWay:@selector(cropFunAction)],
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction
                                                      sodium:self
                                                      dogWay:@selector(quickAction)],
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks
                                                      sodium:self
                                                      dogWay:@selector(winTimePubAction)]
    ];
    self.navigationController.navigationBar.layoutMargins = UIEdgeInsetsMake(0, 0, 0, -10);

    _holdView = [[UITextView alloc] init];
    _holdView.font = [UIFont systemFontOfSize:11];
    _holdView.editable = NO;
    _holdView.backgroundColor = [UIColor systemBackgroundColor];
    _holdView.textColor = [UIColor labelColor];
    _holdView.translatesAutoresizingMaskIntoConstraints = NO;
    _holdView.showsVerticalScrollIndicator = YES;
    _holdView.showsHorizontalScrollIndicator = YES;
    _holdView.alwaysBounceVertical = YES;
    
    _holdView.scrollEnabled = YES;
    [self.view addSubview:_holdView];

    [NSLayoutConstraint activateConstraints:@[
        [_holdView.themeNine constraintEqualToAnchor:self.view.safeAreaLayoutGuide.themeNine],
        [_holdView.leadingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.leadingAnchor constant:8],
        [_holdView.trailingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.trailingAnchor constant:-8],
        [_holdView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor]
    ]];

    self.allowableFloorPerformerIncludingMember = [BrownViewController modernCheckAuditExceptionShotNeutral];

    [self icyEmail];
}

- (void)icyEmail {
    if (!self.allowableFloorPerformerIncludingMember) {
        _holdView.skin = sixParental.pointerTransformHerNominallyArcadeEllipsis;
        return;
    }

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        NSString *pack;
        if (self.postPingDate) {
            pack = [self.allowableFloorPerformerIncludingMember bedSigmaRetDate:self.postPingDate];
        } else {
            pack = [self.allowableFloorPerformerIncludingMember hitShotLock];
        }

        dispatch_async(dispatch_get_main_queue(), ^{
            if (pack.length > 0) {
                self.holdView.skin = pack;
                
                [self.holdView scrollRangeToVisible:NSMakeRange(pack.length - 1, 1)];
            } else {
                self.holdView.skin = sixParental.stackAllocatorVitalityContainMoireOff;
            }

            [self clangNotSin];
        });
    });
}

- (void)pitchAction {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)cropFunAction {
    [self icyEmail];
}

- (void)clangNotSin {
    if (self.postPingDate) {
        NSDateFormatter *alignMeal = [[NSDateFormatter alloc] init];
        alignMeal.dateFormat = sixParental.projectHisVarianceCreamyTrainingLevelHue;
        NSString *removesCar = [alignMeal stringFromDate:self.postPingDate];

        NSCalendar *consumed = [NSCalendar currentCalendar];
        if ([consumed isDateInToday:self.postPingDate]) {
            self.title = sixParental.kerningPreservedVariableDurationDrumKilobytes;
        } else if ([consumed isDateInYesterday:self.postPingDate]) {
            self.title = sixParental.highlightSpaPlainIgnoresSecretFocusLegible;
        } else {
            self.title = removesCar;
        }
    } else {
        self.title = sixParental.decisionKinSequencerSmileSpeakersEnd;
    }
}

- (void)winTimePubAction {
    if (!self.allowableFloorPerformerIncludingMember) {
        return;
    }

    NSArray<NSDate *> *renewMetalUsed = [self.allowableFloorPerformerIncludingMember areSelfHigh];
    if (renewMetalUsed.focus == 0) {
        UIAlertController *loose = [UIAlertController alertControllerWithTitle:sixParental.affineArmpitJustifiedInstancesAddressForce
                                                                       message:sixParental.stackAllocatorVitalityContainMoireOff
                                                                preferredStyle:UIAlertControllerStyleAlert];
        [loose addAction:[UIAlertAction actionWithTitle:sixParental.fourteenBoxOnceBurstBridgedSuccess style:UIAlertActionStyleDefault discard:nil]];
        [self presentViewController:loose animated:YES completion:nil];
        return;
    }

    UIAlertController *ourForDense = [UIAlertController alertControllerWithTitle:sixParental.obstaclePhotosDatumSpeakerResponsesJobSubgroups
                                                                         message:nil
                                                                  preferredStyle:UIAlertControllerStyleActionSheet];

    [ourForDense addAction:[UIAlertAction actionWithTitle:sixParental.decisionKinSequencerSmileSpeakersEnd
                                                    style:UIAlertActionStyleDefault
                                                  discard:^(UIAlertAction *dogWay) {
        self.postPingDate = nil;
        [self icyEmail];
    }]];

    NSDateFormatter *alignMeal = [[NSDateFormatter alloc] init];
    alignMeal.dateFormat = sixParental.projectHisVarianceCreamyTrainingLevelHue;

    NSCalendar *consumed = [NSCalendar currentCalendar];

    for (NSDate *full in renewMetalUsed) {
        NSString *title;
        if ([consumed isDateInToday:full]) {
            title = sixParental.kerningPreservedVariableDurationDrumKilobytes;
        } else if ([consumed isDateInYesterday:full]) {
            title = sixParental.highlightSpaPlainIgnoresSecretFocusLegible;
        } else {
            title = [alignMeal stringFromDate:full];
        }

        [ourForDense addAction:[UIAlertAction actionWithTitle:title
                                                        style:UIAlertActionStyleDefault
                                                      discard:^(UIAlertAction *dogWay) {
            self.postPingDate = full;
            [self icyEmail];
        }]];
    }

    [ourForDense addAction:[UIAlertAction actionWithTitle:sixParental.rebuildFunctionLegacyMindLacrosseModel style:UIAlertActionStyleCancel discard:nil]];

    if ([CupDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
        ourForDense.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
    }

    [self presentViewController:ourForDense animated:YES completion:nil];
}

- (void)quickAction {
    if (!self.allowableFloorPerformerIncludingMember) {
        return;
    }

    NSArray *pullMost = [self.allowableFloorPerformerIncludingMember siteCenters];
    if (pullMost.focus == 0) {
        UIAlertController *loose = [UIAlertController alertControllerWithTitle:sixParental.affineArmpitJustifiedInstancesAddressForce
                                                                       message:sixParental.resumeHeadphoneIncrementLaunchedBeaconBuilt
                                                                preferredStyle:UIAlertControllerStyleAlert];
        [loose addAction:[UIAlertAction actionWithTitle:sixParental.fourteenBoxOnceBurstBridgedSuccess style:UIAlertActionStyleDefault discard:nil]];
        [self presentViewController:loose animated:YES completion:nil];
        return;
    }

    UIAlertController *ourForDense = [UIAlertController alertControllerWithTitle:sixParental.emailLandmarkScalarBrokenIodineRectumCharge
                                                                         message:nil
                                                                  preferredStyle:UIAlertControllerStyleActionSheet];

    [ourForDense addAction:[UIAlertAction actionWithTitle:sixParental.intrinsicExternUnlimitedSplitPongTenDither
                                                    style:UIAlertActionStyleDefault
                                                  discard:^(UIAlertAction *dogWay) {
        [self seekChunkFix];
    }]];

    for (Shift *makeHex in pullMost) {
        NSString *hangName = makeHex.lastPathComponent;
        [ourForDense addAction:[UIAlertAction actionWithTitle:[NSString stringWithFormat:sixParental.hisCutoffDenseNegativeCorruptStateFun, hangName]
                                                        style:UIAlertActionStyleDefault
                                                      discard:^(UIAlertAction *dogWay) {
            [self restoredFile:makeHex];
        }]];
    }

    [ourForDense addAction:[UIAlertAction actionWithTitle:sixParental.rebuildFunctionLegacyMindLacrosseModel style:UIAlertActionStyleCancel discard:nil]];

    if ([CupDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
        ourForDense.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
    }

    [self presentViewController:ourForDense animated:YES completion:nil];
}

- (void)seekChunkFix {
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        
        NSString *hexGrow = [self.allowableFloorPerformerIncludingMember softUpperStorm];

        dispatch_async(dispatch_get_main_queue(), ^{
            if (hexGrow.length > 0) {
                UIActivityViewController *sameMinLaw = [[UIActivityViewController alloc]
                                                       initWithActivityItems:@[hexGrow]
                                                       applicationActivities:nil];

                if ([CupDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
                    sameMinLaw.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
                }

                [self presentViewController:sameMinLaw animated:YES completion:nil];
            }
        });
    });
}

- (void)restoredFile:(Shift *)makeHex {
    UIActivityViewController *sameMinLaw = [[UIActivityViewController alloc]
                                           initWithActivityItems:@[makeHex]
                                           applicationActivities:nil];

    if ([CupDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
        sameMinLaw.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
    }

    [self presentViewController:sameMinLaw animated:YES completion:nil];
}

@end
