






#import "PopNumeralViewController.h"
#import "UndefinedManager.h"
#import "TowerTheView.h"
#import "UIColor+ArmColor.h"
#import "UIDevice+RowDevice.h"
#import "UIImage+TenImage.h"
#import "SubFarSaltConfig.h"

@interface PopNumeralViewController ()

@property (nonatomic, strong) UIView * goldenView;
@property (nonatomic, strong) UIImageView * minView;

@end

@implementation PopNumeralViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = ZipCoulombs.metricPatternsRemovalItemViewImplicit ? [UIColor illRearRequestedQuantizeWidthMan:ZipCoulombs.metricPatternsRemovalItemViewImplicit]:UIColor.whiteColor;

    self.logFeetWith = self.sinFrontIll;
    [TowerTheView whiteMost];
    
    self.goldenView = [UIView new];
    self.goldenView.backgroundColor = UIColor.whiteColor;
    [self.view addSubview:self.goldenView];
    
    self.minView = [[UIImageView alloc] initWithImage:[UIImage eyeMatrixModernProcedureReportingName:ZipCoulombs.locatorCanon.angleAssertFillerUndefinedSymbolsGenerates]];;
    [self.view addSubview:self.minView];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(towerTextOur) name:ZipCoulombs.locatorCanon.candidateSuccessAnimatedElasticHandshakeAltimeter object:nil];
}

- (void)towerTextOur {
    [self.tenYearSkip reload];
}

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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([ZipCoulombs ourReachedTenProtocolsReturnedName] && SubFarSaltConfig.shared.argumentsLoseLettersBarsWas.cutHeapTree.softSkipped) {
        [TowerTheView topPerson];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)maxWarpIdiomSize {
    if ([UIDevice silent]) {
        return CGSizeMake(ZipCoulombs.tryWrappingKannadaPieceMoire, ZipCoulombs.tryWrappingKannadaPieceMoire);
    }
    UIWindow *jumpTopWindow = [[UndefinedManager shared] occurredCellWindow];
    UIEdgeInsets safe = jumpTopWindow.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) {
        if (![UIDevice vowelFor]) {
            return CGSizeMake(UIScreen.mainScreen.bounds.size.width, ZipCoulombs.tryWrappingKannadaPieceMoire);
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, ZipCoulombs.tryWrappingKannadaPieceMoire + safe.bottom);
    }else {
        if (![UIDevice vowelFor]) {
            return CGSizeMake(ZipCoulombs.tryWrappingKannadaPieceMoire,UIScreen.mainScreen.bounds.size.height);
        }
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            return CGSizeMake(ZipCoulombs.tryWrappingKannadaPieceMoire + safe.left,UIScreen.mainScreen.bounds.size.height);
        }else {
            return CGSizeMake(ZipCoulombs.tryWrappingKannadaPieceMoire + 5,UIScreen.mainScreen.bounds.size.height);
        }
    }
}

- (void)pauseDatabaseCheckPieceConverged {
    UIWindow *jumpTopWindow = [[UndefinedManager shared] occurredCellWindow];
    UIEdgeInsets safe = jumpTopWindow.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) {
        
        if ([UIDevice silent]) {
            self.goldenView.layer.cornerRadius = 5.f;
            self.goldenView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
        }
        [self.goldenView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.view.mas_top);
            make.left.right.equalTo(self.view);
            make.height.mas_equalTo(ZipCoulombs.locatorCanon.bedEqualLess);
        }];
        [self.minView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.bottom.equalTo(self.goldenView.mas_top);
            make.centerX.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(ZipCoulombs.locatorCanon.faxSerialize, ZipCoulombs.locatorCanon.callStripOdd));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.maxWarpIdiomSize);
        }];
        [self.tenYearSkip mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.mas_equalTo(0);
            make.height.mas_equalTo(ZipCoulombs.tryWrappingKannadaPieceMoire);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(0, self.maxWarpIdiomSize.height);
    }else {
        
        if ([UIDevice silent]) {
            self.goldenView.layer.cornerRadius = 5.f;
            self.goldenView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
        }
        [self.goldenView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.view.mas_right);
            make.top.bottom.equalTo(self.view);
            make.width.mas_equalTo(ZipCoulombs.locatorCanon.bedEqualLess);
        }];
        UIImage *iconThinImage = [UIImage eyeMatrixModernProcedureReportingName:ZipCoulombs.locatorCanon.angleAssertFillerUndefinedSymbolsGenerates];
        UIImage *fireMinImage = [UIImage imageWithCGImage:iconThinImage.CGImage
                                                    scale:iconThinImage.scale
                                              orientation:UIImageOrientationRight]; 
        self.minView.image = fireMinImage;
        [self.minView mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.goldenView.mas_right);
            make.centerY.equalTo(self.view);
            make.size.mas_equalTo(CGSizeMake(ZipCoulombs.locatorCanon.callStripOdd, ZipCoulombs.locatorCanon.faxSerialize));
        }];
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerY.left.mas_equalTo(0);
            make.size.mas_equalTo(self.maxWarpIdiomSize);
        }];
        [self.tenYearSkip mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.bottom.right.mas_equalTo(0);
            make.width.mas_equalTo(ZipCoulombs.tryWrappingKannadaPieceMoire);
        }];
        self.view.transform = CGAffineTransformMakeTranslation(-self.maxWarpIdiomSize.width, 0);
    }
    [UIView animateWithDuration:0.3 animations:^{
        self.view.transform = CGAffineTransformIdentity;
    }];
}

- (void)waterHallStereoGujaratiStable:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    peakHow(self);
    [super waterHallStereoGujaratiStable:touches withEvent:event];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [UIView animateWithDuration:0.3 animations:^{
            weakself.view.transform = CGAffineTransformMakeTranslation(0, weakself.maxWarpIdiomSize.height);;
        } completion:^(BOOL finished) {
            [[UndefinedManager shared] buddhistLeapSnapshotChineseSecurelySmoothedViewController:self.navigationController];
        }];
    }else {
        [UIView animateWithDuration:0.3 animations:^{
            self.view.transform = CGAffineTransformMakeTranslation(-weakself.maxWarpIdiomSize.width, 0);
        } completion:^(BOOL finished) {
            [[UndefinedManager shared] buddhistLeapSnapshotChineseSecurelySmoothedViewController:weakself.navigationController];
        }];
    }
}

@end
