






#import "FeaturesBatchViewController.h"
#import "HelloFormManager.h"
#import "TouchAreView.h"
#import "UIColor+FarColor.h"
#import "UIDevice+YetDevice.h"
#import "UIImage+SeeImage.h"
#import "CopticUnitConfig.h"


@implementation FeaturesBatchViewController

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = PartialBest.headerDustPrincipalFoggyArtsSudden ? [UIColor bracketedGoldenSenderExpandedConsumerResize:PartialBest.headerDustPrincipalFoggyArtsSudden]:UIColor.whiteColor;

    self.diskRadians = self.redoNineEgg;
    [TouchAreView lookQuote];
    

    self.willMaySpan.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.willMaySpan mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(logNoneCoast) name:PartialBest.mouseEarlier.decrementMostYearsVisitConcludeOpt object:nil];
}

- (void)logNoneCoast {
    [self.willMaySpan reload];
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self biometryUnboundedGenericsSexAllocated];
}

//- (void)viewDidAppear:(BOOL)animated {


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([PartialBest darkOfferDryMillionPairName] && CopticUnitConfig.shared.gatheringShortcutsHumanCancelledEngineer.drivenSolid.largeEggFor) {
        [TouchAreView totalCaps];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)flatnessAtomSize {
    UIWindow *lowCapsWindow = [[HelloFormManager shared] winGatheringWindow];
    UIEdgeInsets safe = lowCapsWindow.safeAreaInsets;
    CGFloat featOceanFilm = 0;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        if (![UIDevice sobShape] || [UIDevice askCar]) {//无刘海
            featOceanFilm = UIScreen.mainScreen.bounds.size.height*PartialBest.kernelCovariantEncodingsInitialMore;
        }else {
            featOceanFilm = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*PartialBest.kernelCovariantEncodingsInitialMore;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, featOceanFilm);
        
    }else { 
        if (![UIDevice sobShape] || [UIDevice askCar]) {//无刘海
            featOceanFilm = UIScreen.mainScreen.bounds.size.width * PartialBest.kernelCovariantEncodingsInitialMore;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                featOceanFilm = (UIScreen.mainScreen.bounds.size.width - safe.left) * PartialBest.kernelCovariantEncodingsInitialMore;
            }else {
                featOceanFilm = (UIScreen.mainScreen.bounds.size.width - safe.right) * PartialBest.kernelCovariantEncodingsInitialMore;
            }
        }
        return CGSizeMake(featOceanFilm, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)biometryUnboundedGenericsSexAllocated {
    UIWindow *lowCapsWindow = [[HelloFormManager shared] winGatheringWindow];
    UIEdgeInsets safe = lowCapsWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.flatnessAtomSize);
        }];
    }else {
        
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.mas_equalTo(0);
                make.left.mas_equalTo(safe.left);
                make.size.mas_equalTo(self.flatnessAtomSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.flatnessAtomSize);
            }];
        }
    }
}

- (void)gigabitsSemanticPathKitBed:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super gigabitsSemanticPathKitBed:touches withEvent:event];
    [[HelloFormManager shared] runLettersSevenAllocatorExclusionStreamViewController:self.navigationController];
}

@end
