






#import "ReliableStormViewController.h"
#import "PopParserManager.h"
#import "PortAtomView.h"
#import "UIColor+RunColor.h"
#import "UIDevice+KeyDevice.h"
#import "UIImage+HasImage.h"
#import "OwnKeysDidConfig.h"


@implementation ReliableStormViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = RuleListCut.creamyPicturesMessagingThirteenHoverResulting ? [UIColor millionActiveGainZipBoostReturning:RuleListCut.creamyPicturesMessagingThirteenHoverResulting]:UIColor.whiteColor;

    self.youPushDust = self.mostlyPlate;
    [PortAtomView tagRevert];
    

    self.sunDogWaist.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.sunDogWaist mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(phoneProfile) name:RuleListCut.coloredDraft.biotinHumanHueArabicDetectedPetite object:nil];
}

- (void)phoneProfile {
    [self.sunDogWaist reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([RuleListCut primariesDraftPullTopPlateName] && OwnKeysDidConfig.shared.sheParticleEraEitherStreet.cubicSyntax.coercionSob) {
        [PortAtomView displayed];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)staleOverlapSize {
    UIWindow *dayFormWindow = [[PopParserManager shared] draftEarBookWindow];
    UIEdgeInsets safe = dayFormWindow.safeAreaInsets;
    CGFloat illMovieFirst = 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 dolbyOur] || [UIDevice tagDid]) {//无刘海
            illMovieFirst = UIScreen.mainScreen.bounds.size.height*RuleListCut.utilitiesDismissalForkTriangleAccording;
        }else {
            illMovieFirst = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*RuleListCut.utilitiesDismissalForkTriangleAccording;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, illMovieFirst);
        
    }else { 
        if (![UIDevice dolbyOur] || [UIDevice tagDid]) {//无刘海
            illMovieFirst = UIScreen.mainScreen.bounds.size.width * RuleListCut.utilitiesDismissalForkTriangleAccording;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                illMovieFirst = (UIScreen.mainScreen.bounds.size.width - safe.left) * RuleListCut.utilitiesDismissalForkTriangleAccording;
            }else {
                illMovieFirst = (UIScreen.mainScreen.bounds.size.width - safe.right) * RuleListCut.utilitiesDismissalForkTriangleAccording;
            }
        }
        return CGSizeMake(illMovieFirst, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)menWrongStandQueryingDust {
    UIWindow *dayFormWindow = [[PopParserManager shared] draftEarBookWindow];
    UIEdgeInsets safe = dayFormWindow.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.staleOverlapSize);
        }];
    }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.staleOverlapSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.staleOverlapSize);
            }];
        }
    }
}

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

@end
