






#import "HisLayerView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+PopImage.h"
#import "MakerOldest.h"
#import "NSString+MidBypass.h"
#import "TagAlertView.h"
#import "ZoomReadNapGetWindow.h"
#import "BarAskUnitCertViewController.h"
#import "UIDevice+EraDevice.h"
#import "FunnelArmManager.h"

@interface HisLayerView()  <UIGestureRecognizerDelegate> {
    CGPoint elementsChunkAnchoredVisitProfileDiscrete;
    BOOL notEngravedDeliveredPermuteTurn;
    BOOL checkInuitSecureSwipeSubBond; 
    BOOL playingChannelChildRotationSix; 
}


@property (nonatomic, strong) ZoomReadNapGetWindow *manSettingWindow;
@property (nonatomic, weak) UIWindow *existentRedoWindow;


@property (nonatomic, strong) UIImageView *stakeLeftView;
@property (nonatomic, strong) UIView *domainsOnlyView;


@property (nonatomic, strong) UIView *hebrewHisView;
@property (nonatomic, strong) UILabel *manRemoteLabel;
@property (nonatomic, assign) BOOL sentencesAffineInsteadWayReplies;


@property (nonatomic, strong) NSTimer *manKannadaTwoTimer;
@property (nonatomic, assign) UIEdgeInsets sinReportedMagnitudeDigitLearned;
@property (nonatomic, assign) CGRect missingDimensionMaintainBothRedoVolatile;


@property (nonatomic, strong) UIImage *requireHourImage;
@property (nonatomic, copy) NSString *preservedFeatureOldHusbandForward;
@property (nonatomic, strong) UIImage *uploadingImage;
@property (nonatomic, assign) CGFloat hasCocoaTryOut;
@property (nonatomic, assign) RunVariationEdge zoomExpectedEdge;
@property (nonatomic, assign) NSTimeInterval innerClampWithHeadBoth;
@property (nonatomic, assign) BOOL mountLacrosseNetLayoutExactnessFax;
@end

@implementation HisLayerView


+ (instancetype)shared {
    static HisLayerView *instance = nil;
    static dispatch_once_t joinToken;
    dispatch_once(&joinToken, ^{
        instance = [[super alloc] initWithFrame:CGRectZero];
        [instance yiddishCollectedTerahertzDirectoryFair];
    });
    return instance;
}

- (UIView *)domainsOnlyView {
    if (!_domainsOnlyView) {
        _domainsOnlyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 8, 8)];
        _domainsOnlyView.backgroundColor = UIColor.redColor;
        _domainsOnlyView.layer.cornerRadius = 4;
        _domainsOnlyView.hidden = YES;
    }
    return _domainsOnlyView;
}

- (void)yiddishCollectedTerahertzDirectoryFair {
    self.hasCocoaTryOut = 10.0;
    self.innerClampWithHeadBoth = 3.0;
    self.mountLacrosseNetLayoutExactnessFax = YES;
    
    
    self.stakeLeftView = [[UIImageView alloc] init];
    self.stakeLeftView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.stakeLeftView];
    
    self.hebrewHisView = [[UIView alloc] init];
    self.hebrewHisView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.hebrewHisView.layer.cornerRadius = 20;
    self.hebrewHisView.layer.masksToBounds = YES;
    self.hebrewHisView.alpha = 0.0;
    
    self.manRemoteLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.manRemoteLabel.text = MakerOldest.patternsTwenty.wetStoodAngleDecibelEnteredCustom;
    self.manRemoteLabel.numberOfLines = 0;
    self.manRemoteLabel.textColor = [UIColor whiteColor];
    self.manRemoteLabel.textAlignment = NSTextAlignmentCenter;
    self.manRemoteLabel.font = [UIFont systemFontOfSize:14];
    [self.hebrewHisView addSubview:self.manRemoteLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(sonSuchMoveCat:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *sub = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(postalLiftFact)];
    [self addGestureRecognizer:sub];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(arbiterRoleMapFunkDaughterTension)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setTensionFunJson:(NSDictionary *)tensionFunJson {
    _tensionFunJson = tensionFunJson;
    if (tensionFunJson && self.manSettingWindow != nil) {
        NSString *action = tensionFunJson[MakerOldest.redoneFinder.kinEightMenAll];
        if ([action isEqualToString:MakerOldest.redoneFinder.preparingSin]) {
            self.domainsOnlyView.hidden = NO;
        }else if ([action isEqualToString:MakerOldest.redoneFinder.eraMinFemale]) {
            self.domainsOnlyView.hidden = YES;
        }else if ([action isEqualToString:MakerOldest.redoneFinder.policiesEjectSettlingFitBit]) {
            self.domainsOnlyView.hidden = NO;
        }
    }
}


+ (void)barEldest {
    [self.shared linkSixMusicTitleGatewaysSupplyImage:[UIImage kirghizDecodeDetachingRhythmCharName:MakerOldest.redoneFinder.ownerOwnWaxProgramLine] outerWax:MakerOldest.spaceTagExemplarTryExtending certImage:nil];
}

+ (void)densityPersonImage:(UIImage *)image {
    [[self shared] linkSixMusicTitleGatewaysSupplyImage:image certImage:nil];
}

+ (void)boxReferentImage:(UIImage *)normalImage certImage:(nullable UIImage *)certImage {
    HisLayerView *instance = [self shared];
    instance.requireHourImage = normalImage;
    instance.preservedFeatureOldHusbandForward = nil;
    instance.uploadingImage = certImage;
    instance.stakeLeftView.image = normalImage;
}

+ (void)daughters {
    [[self shared] waterGatheringMenuLineFar];
}

+ (BOOL)europeanChroma {
    return [self shared].manSettingWindow != nil;
}


- (void)linkSixMusicTitleGatewaysSupplyImage:(UIImage *)image certImage:(nullable UIImage *)certImage {
    [self linkSixMusicTitleGatewaysSupplyImage:image outerWax:nil certImage:certImage];
}

- (void)linkSixMusicTitleGatewaysSupplyImage:(UIImage *)image outerWax:(NSString *)outerWax certImage:(nullable UIImage *)certImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.requireHourImage = image;
        self.preservedFeatureOldHusbandForward = outerWax;
        self.uploadingImage = certImage;
        
        if (!self.manSettingWindow) {
            [self midFifteenBeginZipAdaptorWindow];
            [self installBusyDueLowSeek];
            [self managedSongDarkReportSortingPeople];
            [self whoTypeRenewalLessWateryHer]; 
        }
        
        [self.manSettingWindow makeKeyAndVisible];
        [self.existentRedoWindow makeKeyWindow];
        
        [self dogOuncesExtrinsicCursorDominantConductorAnimation:YES];
        [self editorAngularLettersHistoryEarTimer];
    });
}

- (void)waterGatheringMenuLineFar {
    dispatch_async(dispatch_get_main_queue(), ^{
        [self.manSettingWindow resignKeyWindow];
        self.manSettingWindow.hidden = YES;
        self.manSettingWindow = nil;
    });
}


- (void)midFifteenBeginZipAdaptorWindow {
    
    self.existentRedoWindow = [self numbersGreenMovieSphereGallonsWindow];
    
    
    ZoomReadNapGetWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[ZoomReadNapGetWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[ZoomReadNapGetWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[BarAskUnitCertViewController alloc] init];
    window.hidden = NO;
    self.manSettingWindow = window;
    
    
    [self.manSettingWindow resignKeyWindow];
    [self.existentRedoWindow makeKeyWindow];
    
    
    [self addSubview:self.domainsOnlyView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.preservedFeatureOldHusbandForward) {
        [self.stakeLeftView sd_setImageWithURL:[NSURL URLWithString:self.preservedFeatureOldHusbandForward] placeholderImage
                                              :[UIImage kirghizDecodeDetachingRhythmCharName:MakerOldest.redoneFinder.ownerOwnWaxProgramLine]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.stakeLeftView.image = self.requireHourImage;
    }
    self.stakeLeftView.frame = self.bounds;
    
    [self.manSettingWindow addSubview:self];
    [self.manSettingWindow addSubview:self.hebrewHisView];
}


- (void)whoTypeRenewalLessWateryHer {
    CGRect restMinorMin = self.missingDimensionMaintainBothRedoVolatile;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
#pragma clang diagnostic pop
    
    if (UIInterfaceOrientationIsLandscape(orientation)) {
        CGFloat trust = 180;
        self.hebrewHisView.frame = CGRectMake(
         (restMinorMin.size.width - trust)/2,
          restMinorMin.size.height - trust/2,
          trust,
          trust
        );
        self.hebrewHisView.layer.masksToBounds = YES;
        self.hebrewHisView.layer.cornerRadius = trust/2;
        self.manRemoteLabel.center = CGPointMake(trust/2, trust/4);
    }
    
    else {
        CGFloat trust = 240;
        self.hebrewHisView.frame = CGRectMake(

          (restMinorMin.size.width - trust/2),
          restMinorMin.size.height - trust/2,
          trust,
          trust
        );
        self.hebrewHisView.layer.masksToBounds = YES;
        self.hebrewHisView.layer.cornerRadius = trust/2;
        self.manRemoteLabel.center = CGPointMake(trust/3, trust/4);
    }
}


- (void)postalLiftFact {
    if (self.tensionFunJson) {
        !self.ligatureHandler ?: self.ligatureHandler(self.tensionFunJson[MakerOldest.redoneFinder.pingDeliver]);
        if ([self.tensionFunJson[MakerOldest.redoneFinder.kinEightMenAll] isEqualToString:MakerOldest.redoneFinder.policiesEjectSettlingFitBit]) {
            self.domainsOnlyView.hidden = YES;
            _tensionFunJson = nil;
        }
    }else {
        !self.ligatureHandler ?: self.ligatureHandler(nil);
    }
}

- (void)sonSuchMoveCat:(UIPanGestureRecognizer *)gesture {
    if (notEngravedDeliveredPermuteTurn) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            elementsChunkAnchoredVisitProfileDiscrete = self.center;
            _stakeLeftView.alpha = 1;
            [self epsilonOurGolfOutcomePlural];
            checkInuitSecureSwipeSubBond = NO; 
            playingChannelChildRotationSix = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.hebrewHisView.layer removeAllAnimations];
            
            
            self.hebrewHisView.alpha = 0.0;
            self.hebrewHisView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self mapSuchLoopsPerfusionInferiorsEveryHardCenter:
                           CGPointMake(elementsChunkAnchoredVisitProfileDiscrete.x + translation.x,
                                       elementsChunkAnchoredVisitProfileDiscrete.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL FarBevelDue = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect pageFrame = self.hebrewHisView.frame;
            CGRect yetIndoor = CGRectInset(pageFrame, -280, FarBevelDue?-100:-280); 
            BOOL middleToggle = CGRectContainsPoint(yetIndoor, self.center);
            
            
            
            
            if (middleToggle != playingChannelChildRotationSix) {
                playingChannelChildRotationSix = middleToggle;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.hebrewHisView.alpha = middleToggle ? 1.0 : 0.0;
                    self.hebrewHisView.transform = middleToggle ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            middleToggle = CGRectContainsPoint(CGRectInset(pageFrame, 0, 0), self.center);
            if (middleToggle && !checkInuitSecureSwipeSubBond) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                checkInuitSecureSwipeSubBond = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.hebrewHisView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!middleToggle) {
                if (checkInuitSecureSwipeSubBond) {
                    self.hebrewHisView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                checkInuitSecureSwipeSubBond = NO;
            }
            
            
            yetIndoor = CGRectInset(pageFrame, 0, 0);
            _sentencesAffineInsteadWayReplies = CGRectContainsPoint(yetIndoor, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.hebrewHisView.alpha = 0.0;
                self.hebrewHisView.transform = CGAffineTransformIdentity;
            }];
            
            if (_sentencesAffineInsteadWayReplies) {
                [TagAlertView seekingFontStayBeenLibrariesSlovak:nil message:MakerOldest.patternsTwenty.chatUppercasePlanRevealRedefinedAdaptor stakeBurnSob:@[MakerOldest.patternsTwenty.herAskPiece, MakerOldest.patternsTwenty.areaArt] completion:^(NSInteger subDogIndex) {
                    if (subDogIndex ==1) {
                        [self waterGatheringMenuLineFar];
                    }else {
                        [self dogOuncesExtrinsicCursorDominantConductorAnimation:YES];
                        [self editorAngularLettersHistoryEarTimer];
                    }
                }];
            } else {
                [self dogOuncesExtrinsicCursorDominantConductorAnimation:YES];
                [self editorAngularLettersHistoryEarTimer];
            }
            checkInuitSecureSwipeSubBond = NO;
            playingChannelChildRotationSix = NO;
            break;
        }

        default: break;
    }
}


- (void)dogOuncesExtrinsicCursorDominantConductorAnimation:(BOOL)animate {
    if (!_mountLacrosseNetLayoutExactnessFax) return;
    
    
    if (notEngravedDeliveredPermuteTurn && animate) return;
    
    CGRect leapFrame = [self squaredPeakSumFirstDistortedFrame];
    CGPoint center = self.center;
    
    CGFloat more = leapFrame.origin.x;
    CGFloat thin = leapFrame.origin.x + leapFrame.size.width;
    CGFloat head = leapFrame.origin.y;
    CGFloat bold = leapFrame.origin.y + leapFrame.size.height;
    
    
    RunVariationEdge ourNotEdge = TrackOutletNarrativeNeutralMildTab;
    CGFloat autoOnePush = CGFLOAT_MAX;
    
    
    CGFloat danish = center.x - more;
    CGFloat turkmen = thin - center.x;
    CGFloat rotor = center.y - head;
    CGFloat willFull = bold - center.y;
    
    NSArray *brownDrop = @[@(danish), @(turkmen), @(rotor), @(willFull)];
    NSArray *edges = @[@(MinIdentifyInterlaceLowAlignmentBaseline), @(EndCropBadmintonAbortPhotoPrime),
                       @(CellularPriorSpanDomainProcessor), @(DecrementWetPlacePeakDroppedFunctions)];
    
    for (NSInteger i = 0; i < brownDrop.count; i++) {
        CGFloat distance = [brownDrop[i] floatValue];
        if (distance < autoOnePush) {
            autoOnePush = distance;
            ourNotEdge = [edges[i] integerValue];
        }
    }
    
    
    if (ourNotEdge == self.zoomExpectedEdge) {
        CGPoint hangDryCenter = self.center;
        CGPoint anyRowCenter = [self awakeTwelveRankedMicroVortexPathEdge:ourNotEdge];
        CGFloat distance = hypot(hangDryCenter.x - anyRowCenter.x, hangDryCenter.y - anyRowCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.zoomExpectedEdge = ourNotEdge;
    
    
    CGPoint anyRowCenter = [self awakeTwelveRankedMicroVortexPathEdge:ourNotEdge];
    CGPoint caretCenter = [self expireEarlyShipmentSinFlatnessShakeFemaleEdge:ourNotEdge];
    
    
    notEngravedDeliveredPermuteTurn = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->notEngravedDeliveredPermuteTurn = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = anyRowCenter;
        self.domainsOnlyView.center = caretCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)awakeTwelveRankedMicroVortexPathEdge:(RunVariationEdge)edge {
    CGRect leapFrame = [self squaredPeakSumFirstDistortedFrame];
    CGPoint center = self.center;
    
    CGFloat more = leapFrame.origin.x;
    CGFloat thin = leapFrame.origin.x + leapFrame.size.width;
    CGFloat head = leapFrame.origin.y;
    CGFloat bold = leapFrame.origin.y + leapFrame.size.height;
    
    CGPoint anyRowCenter = center;
    
    switch (edge) {
        case MinIdentifyInterlaceLowAlignmentBaseline:
            anyRowCenter.x = more + self.bounds.size.width/2 + _hasCocoaTryOut;
            break;
        case EndCropBadmintonAbortPhotoPrime:
            anyRowCenter.x = thin - self.bounds.size.width/2 - _hasCocoaTryOut;
            break;
        case CellularPriorSpanDomainProcessor:
            anyRowCenter.y = head + self.bounds.size.height/2 + _hasCocoaTryOut;
            break;
        case DecrementWetPlacePeakDroppedFunctions:
            anyRowCenter.y = bold - self.bounds.size.height/2 - _hasCocoaTryOut;
            break;
        default:
            break;
    }
    
    
    return [self mapSuchLoopsPerfusionInferiorsEveryHardCenter:anyRowCenter];
}


- (CGPoint)expireEarlyShipmentSinFlatnessShakeFemaleEdge:(RunVariationEdge)edge {
    CGPoint caretCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case MinIdentifyInterlaceLowAlignmentBaseline:
            caretCenter.x = self.bounds.size.width;
            break;
        case EndCropBadmintonAbortPhotoPrime:
            
            break;
        case CellularPriorSpanDomainProcessor:
            caretCenter.x = self.bounds.size.width;
            caretCenter.y = self.bounds.size.height;
            break;
        case DecrementWetPlacePeakDroppedFunctions:
            caretCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return caretCenter;
}


- (void)editorAngularLettersHistoryEarTimer {
    if (_innerClampWithHeadBoth <= 0) return;
    
    [self epsilonOurGolfOutcomePlural];
    _manKannadaTwoTimer = [NSTimer scheduledTimerWithTimeInterval:_innerClampWithHeadBoth
                                                     target:self
                                                   selector:@selector(theEggFlemishUighurBackup)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)epsilonOurGolfOutcomePlural {
    [_manKannadaTwoTimer invalidate];
    _manKannadaTwoTimer = nil;
}

- (void)theEggFlemishUighurBackup {
    [UIView animateWithDuration:0.3 animations:^{
        self.stakeLeftView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.zoomExpectedEdge) {
            case MinIdentifyInterlaceLowAlignmentBaseline:
                frame.origin.x -= self.hasCocoaTryOut;
                break;
            case EndCropBadmintonAbortPhotoPrime:
                frame.origin.x += self.hasCocoaTryOut;
                break;
            case CellularPriorSpanDomainProcessor:
                frame.origin.y -= self.hasCocoaTryOut;
                break;
            case DecrementWetPlacePeakDroppedFunctions:
                frame.origin.y += self.hasCocoaTryOut;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)arbiterRoleMapFunkDaughterTension {
    [self installBusyDueLowSeek];
    [self whoTypeRenewalLessWateryHer]; 
    [self dogOuncesExtrinsicCursorDominantConductorAnimation:YES];
}


- (void)installBusyDueLowSeek {
    UIWindow *keyWindow = FunnelArmManager.shared.bedShiftMoveWindow; //self.existentRedoWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice ejectHer]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice waxAge]) {
        safeArea = UIEdgeInsetsMake(0, 0, 20, 0);
    }else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
        UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
        safeArea = keyWindow.safeAreaInsets;
        switch (orientation) {
            case UIInterfaceOrientationPortrait:
                safeArea = UIEdgeInsetsMake(safeArea.top-10, 5, 15, 5);
                break;
            case UIInterfaceOrientationPortraitUpsideDown:
                safeArea = UIEdgeInsetsMake(15, 5, safeArea.bottom-10, 5);
                break;
            case UIInterfaceOrientationLandscapeRight:
                safeArea = UIEdgeInsetsMake(5, safeArea.right-10, 15, 5);
                break;
            case UIInterfaceOrientationLandscapeLeft:
                safeArea = UIEdgeInsetsMake(5, 5, 15, safeArea.left-10);
                break;
            case UIInterfaceOrientationUnknown:
            default:
                safeArea = safeArea;
        }
    }
    
    self.sinReportedMagnitudeDigitLearned = safeArea;
    self.missingDimensionMaintainBothRedoVolatile = keyWindow.bounds;
}

- (CGRect)squaredPeakSumFirstDistortedFrame {
    
    return CGRectMake(
        self.missingDimensionMaintainBothRedoVolatile.origin.x + self.sinReportedMagnitudeDigitLearned.left,
        self.missingDimensionMaintainBothRedoVolatile.origin.y + self.sinReportedMagnitudeDigitLearned.top,
        self.missingDimensionMaintainBothRedoVolatile.size.width - (self.sinReportedMagnitudeDigitLearned.left + self.sinReportedMagnitudeDigitLearned.right),
        self.missingDimensionMaintainBothRedoVolatile.size.height - (self.sinReportedMagnitudeDigitLearned.top + self.sinReportedMagnitudeDigitLearned.bottom)
    );
}


- (void)managedSongDarkReportSortingPeople {
    NSString *allPanIssuer = [[NSUserDefaults standardUserDefaults] valueForKey:MakerOldest.redoneFinder.tradWasViabilityPutExchangesSecond];
    if (allPanIssuer) {
        self.center = CGPointFromString(allPanIssuer);
    }else {
        
        CGRect leapFrame = [self squaredPeakSumFirstDistortedFrame];
        self.center = CGPointMake(leapFrame.origin.x + leapFrame.size.width - self.bounds.size.width/2 - _hasCocoaTryOut,
                                  leapFrame.origin.y + leapFrame.size.height/2);
    }
}


- (UIWindow *)numbersGreenMovieSphereGallonsWindow {
    if (@available(iOS 13.0, *)) {
        NSSet<UIScene *> *scenes = [UIApplication sharedApplication].connectedScenes;
        for (UIScene *scene in scenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                UIWindowScene *windowScene = (UIWindowScene *)scene;
                return windowScene.windows.firstObject;
            }
        }
    }
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    return [UIApplication sharedApplication].keyWindow;
#pragma clang diagnostic pop
}

- (CGPoint)mapSuchLoopsPerfusionInferiorsEveryHardCenter:(CGPoint)proposedCenter {
    CGRect leapFrame = [self squaredPeakSumFirstDistortedFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat more = leapFrame.origin.x + buttonSize.width/2;
    CGFloat thin = leapFrame.origin.x + leapFrame.size.width - buttonSize.width/2;
    CGFloat head = leapFrame.origin.y + buttonSize.height/2;
    CGFloat bold = leapFrame.origin.y + leapFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(more, MIN(proposedCenter.x, thin)),
        MAX(head, MIN(proposedCenter.y, bold))
    );
}

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

@end
