






#import "EntryIcyView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+SumImage.h"
#import "IndicesBest.h"
#import "NSString+WorldHold.h"
#import "ButAlertView.h"
#import "PoloFoldWonOurWindow.h"
#import "PlusGoalEraNapViewController.h"
#import "UIDevice+CanDevice.h"
#import "AssumeNotManager.h"

@interface EntryIcyView()  <UIGestureRecognizerDelegate> {
    CGPoint segmentsReturnBeaconsArmHeapRejection;
    BOOL managerObtainGeneratesCellularRaw;
    BOOL manyKeysPrefixedLowercaseMomentaryDocument; 
    BOOL hertzMilesDisparityCoalesceTab; 
}


@property (nonatomic, strong) PoloFoldWonOurWindow *didEnteredWindow;
@property (nonatomic, weak) UIWindow *hueLessCrossWindow;


@property (nonatomic, strong) UIImageView *collapsedView;
@property (nonatomic, strong) UIView *clangSignalView;


@property (nonatomic, strong) UIView *extendFitView;
@property (nonatomic, strong) UILabel *whileJustLabel;
@property (nonatomic, assign) BOOL tabGoldenZipMillionGolf;


@property (nonatomic, strong) NSTimer *butEulerTildeTimer;
@property (nonatomic, assign) UIEdgeInsets sumExceedsLeftoverTensionMid;
@property (nonatomic, assign) CGRect contextsYoungerTildeRepairBevelSub;


@property (nonatomic, strong) UIImage *cautionBurnImage;
@property (nonatomic, copy) NSString *suitableQuotesConvertWillStepchild;
@property (nonatomic, strong) UIImage *satisfiedImage;
@property (nonatomic, assign) CGFloat resizeCoercion;
@property (nonatomic, assign) RacePressureEdge baselinesButEdge;
@property (nonatomic, assign) NSTimeInterval editorialImpactThumbnailTwelveMole;
@property (nonatomic, assign) BOOL surrogateProduceWorkingPrepareReadInstall;
@end

@implementation EntryIcyView


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

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

- (void)leftItsSucceedMarginVibrancy {
    self.resizeCoercion = 10.0;
    self.editorialImpactThumbnailTwelveMole = 3.0;
    self.surrogateProduceWorkingPrepareReadInstall = YES;
    
    
    self.collapsedView = [[UIImageView alloc] init];
    self.collapsedView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.collapsedView];
    
    self.extendFitView = [[UIView alloc] init];
    self.extendFitView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.extendFitView.layer.cornerRadius = 20;
    self.extendFitView.layer.masksToBounds = YES;
    self.extendFitView.alpha = 0.0;
    
    self.whileJustLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.whileJustLabel.text = IndicesBest.linerSharpness.yetIllegalTakeSonSolutionsTen;
    self.whileJustLabel.numberOfLines = 0;
    self.whileJustLabel.textColor = [UIColor whiteColor];
    self.whileJustLabel.textAlignment = NSTextAlignmentCenter;
    self.whileJustLabel.font = [UIFont systemFontOfSize:14];
    [self.extendFitView addSubview:self.whileJustLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(ephemeralEvent:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *hit = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(shortAreBadSob)];
    [self addGestureRecognizer:hit];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(characterHexJumpPressedSignalResource)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setCropMayWayJson:(NSDictionary *)cropMayWayJson {
    _cropMayWayJson = cropMayWayJson;
    if (cropMayWayJson && self.didEnteredWindow != nil) {
        NSString *action = cropMayWayJson[IndicesBest.trustMainArm.armTreeMainLog];
        if ([action isEqualToString:IndicesBest.trustMainArm.routerOpaque]) {
            self.clangSignalView.hidden = NO;
        }else if ([action isEqualToString:IndicesBest.trustMainArm.sodiumSmooth]) {
            self.clangSignalView.hidden = YES;
        }else if ([action isEqualToString:IndicesBest.trustMainArm.twoExpectedReturningBehaviorsBasic]) {
            self.clangSignalView.hidden = NO;
        }
    }
}


+ (void)arabicAge {
    [self.shared menPreviewsThatArrivalRawCenteringImage:[UIImage busFactoredSockFlemishDeliveryName:IndicesBest.trustMainArm.missingManganeseTildeTruncatesTorch] exitsWas:IndicesBest.lifetimeSiteComplexWhiteRoute fairImage:nil];
}

+ (void)cupKitAndToolImage:(UIImage *)image {
    [[self shared] menPreviewsThatArrivalRawCenteringImage:image fairImage:nil];
}

+ (void)hyphenStillImage:(UIImage *)normalImage fairImage:(nullable UIImage *)fairImage {
    EntryIcyView *instance = [self shared];
    instance.cautionBurnImage = normalImage;
    instance.suitableQuotesConvertWillStepchild = nil;
    instance.satisfiedImage = fairImage;
    instance.collapsedView.image = normalImage;
}

+ (void)asleepAir {
    [[self shared] launchSystolicSonOuncesSections];
}

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


- (void)menPreviewsThatArrivalRawCenteringImage:(UIImage *)image fairImage:(nullable UIImage *)fairImage {
    [self menPreviewsThatArrivalRawCenteringImage:image exitsWas:nil fairImage:fairImage];
}

- (void)menPreviewsThatArrivalRawCenteringImage:(UIImage *)image exitsWas:(NSString *)exitsWas fairImage:(nullable UIImage *)fairImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.cautionBurnImage = image;
        self.suitableQuotesConvertWillStepchild = exitsWas;
        self.satisfiedImage = fairImage;
        
        if (!self.didEnteredWindow) {
            [self smartLargerAwayAmericanLinkWindow];
            [self useAdjustingBuddyOwnerLog];
            [self combinePanGregorianBottomCreatingSuffix];
            [self receivingAssamesePhysicalOriginsAllDependent]; 
        }
        
        [self.didEnteredWindow makeKeyAndVisible];
        [self.hueLessCrossWindow makeKeyWindow];
        
        [self existPacketsTryDeliveryWirePutAnimation:YES];
        [self calciumDuplexDismissalClockwiseFeaturedTimer];
    });
}

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


- (void)smartLargerAwayAmericanLinkWindow {
    
    self.hueLessCrossWindow = [self walkFemaleThresholdListObtainWindow];
    
    
    PoloFoldWonOurWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[PoloFoldWonOurWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[PoloFoldWonOurWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[PlusGoalEraNapViewController alloc] init];
    window.hidden = NO;
    self.didEnteredWindow = window;
    
    
    [self.didEnteredWindow resignKeyWindow];
    [self.hueLessCrossWindow makeKeyWindow];
    
    
    [self addSubview:self.clangSignalView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.suitableQuotesConvertWillStepchild) {
        [self.collapsedView sd_setImageWithURL:[NSURL URLWithString:self.suitableQuotesConvertWillStepchild] placeholderImage
                                              :[UIImage busFactoredSockFlemishDeliveryName:IndicesBest.trustMainArm.missingManganeseTildeTruncatesTorch]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.collapsedView.image = self.cautionBurnImage;
    }
    self.collapsedView.frame = self.bounds;
    
    [self.didEnteredWindow addSubview:self];
    [self.didEnteredWindow addSubview:self.extendFitView];
}


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

          (aboveSixIron.size.width - child/2),
          aboveSixIron.size.height - child/2,
          child,
          child
        );
        self.extendFitView.layer.masksToBounds = YES;
        self.extendFitView.layer.cornerRadius = child/2;
        self.whileJustLabel.center = CGPointMake(child/3, child/4);
    }
}


- (void)shortAreBadSob {
    if (self.cropMayWayJson) {
        !self.barsBurnHandler ?: self.barsBurnHandler(self.cropMayWayJson[IndicesBest.trustMainArm.wonQuitRare]);
        if ([self.cropMayWayJson[IndicesBest.trustMainArm.armTreeMainLog] isEqualToString:IndicesBest.trustMainArm.twoExpectedReturningBehaviorsBasic]) {
            self.clangSignalView.hidden = YES;
            _cropMayWayJson = nil;
        }
    }else {
        !self.barsBurnHandler ?: self.barsBurnHandler(nil);
    }
}

- (void)ephemeralEvent:(UIPanGestureRecognizer *)gesture {
    if (managerObtainGeneratesCellularRaw) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            segmentsReturnBeaconsArmHeapRejection = self.center;
            _collapsedView.alpha = 1;
            [self hueManEncodingsGatewaysAzimuth];
            manyKeysPrefixedLowercaseMomentaryDocument = NO; 
            hertzMilesDisparityCoalesceTab = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.extendFitView.layer removeAllAnimations];
            
            
            self.extendFitView.alpha = 0.0;
            self.extendFitView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self importantApplySwipeFaxSquareTapCoastCenter:
                           CGPointMake(segmentsReturnBeaconsArmHeapRejection.x + translation.x,
                                       segmentsReturnBeaconsArmHeapRejection.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL SafetyHello = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect showFrame = self.extendFitView.frame;
            CGRect snapRenew = CGRectInset(showFrame, -280, SafetyHello?-100:-280); 
            BOOL oddResignPut = CGRectContainsPoint(snapRenew, self.center);
            
            
            
            
            if (oddResignPut != hertzMilesDisparityCoalesceTab) {
                hertzMilesDisparityCoalesceTab = oddResignPut;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.extendFitView.alpha = oddResignPut ? 1.0 : 0.0;
                    self.extendFitView.transform = oddResignPut ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            oddResignPut = CGRectContainsPoint(CGRectInset(showFrame, 0, 0), self.center);
            if (oddResignPut && !manyKeysPrefixedLowercaseMomentaryDocument) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                manyKeysPrefixedLowercaseMomentaryDocument = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.extendFitView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!oddResignPut) {
                if (manyKeysPrefixedLowercaseMomentaryDocument) {
                    self.extendFitView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                manyKeysPrefixedLowercaseMomentaryDocument = NO;
            }
            
            
            snapRenew = CGRectInset(showFrame, 0, 0);
            _tabGoldenZipMillionGolf = CGRectContainsPoint(snapRenew, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.extendFitView.alpha = 0.0;
                self.extendFitView.transform = CGAffineTransformIdentity;
            }];
            
            if (_tabGoldenZipMillionGolf) {
                [ButAlertView boyfriendMessagingRedefinedMegahertzServicesTolerance:nil message:IndicesBest.linerSharpness.softnessResizeAcceptedSpanVisitedNative restingLower:@[IndicesBest.linerSharpness.costRequest, IndicesBest.linerSharpness.sawClip] completion:^(NSInteger askDidIndex) {
                    if (askDidIndex ==1) {
                        [self launchSystolicSonOuncesSections];
                    }else {
                        [self existPacketsTryDeliveryWirePutAnimation:YES];
                        [self calciumDuplexDismissalClockwiseFeaturedTimer];
                    }
                }];
            } else {
                [self existPacketsTryDeliveryWirePutAnimation:YES];
                [self calciumDuplexDismissalClockwiseFeaturedTimer];
            }
            manyKeysPrefixedLowercaseMomentaryDocument = NO;
            hertzMilesDisparityCoalesceTab = NO;
            break;
        }

        default: break;
    }
}


- (void)existPacketsTryDeliveryWirePutAnimation:(BOOL)animate {
    if (!_surrogateProduceWorkingPrepareReadInstall) return;
    
    
    if (managerObtainGeneratesCellularRaw && animate) return;
    
    CGRect taskFrame = [self suffixIndexNetscapeTorqueFractionsFrame];
    CGPoint center = self.center;
    
    CGFloat ring = taskFrame.origin.x;
    CGFloat hold = taskFrame.origin.x + taskFrame.size.width;
    CGFloat tint = taskFrame.origin.y;
    CGFloat best = taskFrame.origin.y + taskFrame.size.height;
    
    
    RacePressureEdge heightEdge = SwashesForcePlayPressHeightIntegers;
    CGFloat setupSunDue = CGFLOAT_MAX;
    
    
    CGFloat oddMin = center.x - ring;
    CGFloat pingBar = hold - center.x;
    CGFloat daily = center.y - tint;
    CGFloat consumer = best - center.y;
    
    NSArray *molarFull = @[@(oddMin), @(pingBar), @(daily), @(consumer)];
    NSArray *edges = @[@(MagnesiumDanishOutTempNativeEmergency), @(SharpnessCoercionCompoundMillManPremature),
                       @(SexOrdinalIncomingWorkHurricane), @(KazakhBrokenParallelColoredArmpitPong)];
    
    for (NSInteger i = 0; i < molarFull.count; i++) {
        CGFloat distance = [molarFull[i] floatValue];
        if (distance < setupSunDue) {
            setupSunDue = distance;
            heightEdge = [edges[i] integerValue];
        }
    }
    
    
    if (heightEdge == self.baselinesButEdge) {
        CGPoint getBodyCenter = self.center;
        CGPoint toggleCenter = [self learnedBundleSerbianNapCaretPosterEdge:heightEdge];
        CGFloat distance = hypot(getBodyCenter.x - toggleCenter.x, getBodyCenter.y - toggleCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.baselinesButEdge = heightEdge;
    
    
    CGPoint toggleCenter = [self learnedBundleSerbianNapCaretPosterEdge:heightEdge];
    CGPoint legalCenter = [self markupTagNibblesReminderClearedOrdinalSafeEdge:heightEdge];
    
    
    managerObtainGeneratesCellularRaw = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->managerObtainGeneratesCellularRaw = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = toggleCenter;
        self.clangSignalView.center = legalCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)learnedBundleSerbianNapCaretPosterEdge:(RacePressureEdge)edge {
    CGRect taskFrame = [self suffixIndexNetscapeTorqueFractionsFrame];
    CGPoint center = self.center;
    
    CGFloat ring = taskFrame.origin.x;
    CGFloat hold = taskFrame.origin.x + taskFrame.size.width;
    CGFloat tint = taskFrame.origin.y;
    CGFloat best = taskFrame.origin.y + taskFrame.size.height;
    
    CGPoint toggleCenter = center;
    
    switch (edge) {
        case MagnesiumDanishOutTempNativeEmergency:
            toggleCenter.x = ring + self.bounds.size.width/2 + _resizeCoercion;
            break;
        case SharpnessCoercionCompoundMillManPremature:
            toggleCenter.x = hold - self.bounds.size.width/2 - _resizeCoercion;
            break;
        case SexOrdinalIncomingWorkHurricane:
            toggleCenter.y = tint + self.bounds.size.height/2 + _resizeCoercion;
            break;
        case KazakhBrokenParallelColoredArmpitPong:
            toggleCenter.y = best - self.bounds.size.height/2 - _resizeCoercion;
            break;
        default:
            break;
    }
    
    
    return [self importantApplySwipeFaxSquareTapCoastCenter:toggleCenter];
}


- (CGPoint)markupTagNibblesReminderClearedOrdinalSafeEdge:(RacePressureEdge)edge {
    CGPoint legalCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case MagnesiumDanishOutTempNativeEmergency:
            legalCenter.x = self.bounds.size.width;
            break;
        case SharpnessCoercionCompoundMillManPremature:
            
            break;
        case SexOrdinalIncomingWorkHurricane:
            legalCenter.x = self.bounds.size.width;
            legalCenter.y = self.bounds.size.height;
            break;
        case KazakhBrokenParallelColoredArmpitPong:
            legalCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return legalCenter;
}


- (void)calciumDuplexDismissalClockwiseFeaturedTimer {
    if (_editorialImpactThumbnailTwelveMole <= 0) return;
    
    [self hueManEncodingsGatewaysAzimuth];
    _butEulerTildeTimer = [NSTimer scheduledTimerWithTimeInterval:_editorialImpactThumbnailTwelveMole
                                                     target:self
                                                   selector:@selector(availIdentifyKilohertzCollisionPlug)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)hueManEncodingsGatewaysAzimuth {
    [_butEulerTildeTimer invalidate];
    _butEulerTildeTimer = nil;
}

- (void)availIdentifyKilohertzCollisionPlug {
    [UIView animateWithDuration:0.3 animations:^{
        self.collapsedView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.baselinesButEdge) {
            case MagnesiumDanishOutTempNativeEmergency:
                frame.origin.x -= self.resizeCoercion;
                break;
            case SharpnessCoercionCompoundMillManPremature:
                frame.origin.x += self.resizeCoercion;
                break;
            case SexOrdinalIncomingWorkHurricane:
                frame.origin.y -= self.resizeCoercion;
                break;
            case KazakhBrokenParallelColoredArmpitPong:
                frame.origin.y += self.resizeCoercion;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)characterHexJumpPressedSignalResource {
    [self useAdjustingBuddyOwnerLog];
    [self receivingAssamesePhysicalOriginsAllDependent]; 
    [self existPacketsTryDeliveryWirePutAnimation:YES];
}


- (void)useAdjustingBuddyOwnerLog {
    UIWindow *keyWindow = AssumeNotManager.shared.headsetEarlyWindow; //self.hueLessCrossWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice rowInuit]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice badTry]) {
        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.sumExceedsLeftoverTensionMid = safeArea;
    self.contextsYoungerTildeRepairBevelSub = keyWindow.bounds;
}

- (CGRect)suffixIndexNetscapeTorqueFractionsFrame {
    
    return CGRectMake(
        self.contextsYoungerTildeRepairBevelSub.origin.x + self.sumExceedsLeftoverTensionMid.left,
        self.contextsYoungerTildeRepairBevelSub.origin.y + self.sumExceedsLeftoverTensionMid.top,
        self.contextsYoungerTildeRepairBevelSub.size.width - (self.sumExceedsLeftoverTensionMid.left + self.sumExceedsLeftoverTensionMid.right),
        self.contextsYoungerTildeRepairBevelSub.size.height - (self.sumExceedsLeftoverTensionMid.top + self.sumExceedsLeftoverTensionMid.bottom)
    );
}


- (void)combinePanGregorianBottomCreatingSuffix {
    NSString *tagQuoteLose = [[NSUserDefaults standardUserDefaults] valueForKey:IndicesBest.trustMainArm.jobDispatchNeverHairTempDefault];
    if (tagQuoteLose) {
        self.center = CGPointFromString(tagQuoteLose);
    }else {
        
        CGRect taskFrame = [self suffixIndexNetscapeTorqueFractionsFrame];
        self.center = CGPointMake(taskFrame.origin.x + taskFrame.size.width - self.bounds.size.width/2 - _resizeCoercion,
                                  taskFrame.origin.y + taskFrame.size.height/2);
    }
}


- (UIWindow *)walkFemaleThresholdListObtainWindow {
    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)importantApplySwipeFaxSquareTapCoastCenter:(CGPoint)proposedCenter {
    CGRect taskFrame = [self suffixIndexNetscapeTorqueFractionsFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat ring = taskFrame.origin.x + buttonSize.width/2;
    CGFloat hold = taskFrame.origin.x + taskFrame.size.width - buttonSize.width/2;
    CGFloat tint = taskFrame.origin.y + buttonSize.height/2;
    CGFloat best = taskFrame.origin.y + taskFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(ring, MIN(proposedCenter.x, hold)),
        MAX(tint, MIN(proposedCenter.y, best))
    );
}

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

@end
