






#import "MostSwapView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+OptImage.h"
#import "BinTopLemma.h"
#import "NSString+OutBypass.h"
#import "NowAlertView.h"
#import "NonceHowAskBarWindow.h"
#import "TenOceanBedWetViewController.h"
#import "UIDevice+CupDevice.h"
#import "ChunkyGetManager.h"

@interface MostSwapView()  <UIGestureRecognizerDelegate> {
    CGPoint partSawVitalRevisionVectorStore;
    BOOL shelfTrySexExhaustedBottom;
    BOOL purposeHundredsOperatingWayExpandingLose; 
    BOOL brotherFatExistEntropyFlush; 
}


@property (nonatomic, strong) NonceHowAskBarWindow *spaceHelloWindow;
@property (nonatomic, weak) UIWindow *sayOneAspectWindow;


@property (nonatomic, strong) UIImageView *sindhiPutView;
@property (nonatomic, strong) UIView *cropLiftDidView;


@property (nonatomic, strong) UIView *mixFixingView;
@property (nonatomic, strong) UILabel *pointMostLabel;
@property (nonatomic, assign) BOOL makeFastManagerBagSun;


@property (nonatomic, strong) NSTimer *operationStopTimer;
@property (nonatomic, assign) UIEdgeInsets dragEnsureStationPullExtents;
@property (nonatomic, assign) CGRect gainJabberFrontTabChannelsEqual;


@property (nonatomic, strong) UIImage *sobMergeAnyImage;
@property (nonatomic, copy) NSString *floorNotifiesDingbatsSignalReject;
@property (nonatomic, strong) UIImage *sedentaryImage;
@property (nonatomic, assign) CGFloat levelThirdGray;
@property (nonatomic, assign) IndicatedHerEdge renewedInputEdge;
@property (nonatomic, assign) NSTimeInterval theBeforeBorderSpinePurple;
@property (nonatomic, assign) BOOL mouthBandUploadingLostTopClang;
@end

@implementation MostSwapView


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

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

- (void)viewServicesMenuLayoutChannels {
    self.levelThirdGray = 10.0;
    self.theBeforeBorderSpinePurple = 3.0;
    self.mouthBandUploadingLostTopClang = YES;
    
    
    self.sindhiPutView = [[UIImageView alloc] init];
    self.sindhiPutView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.sindhiPutView];
    
    self.mixFixingView = [[UIView alloc] init];
    self.mixFixingView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.mixFixingView.layer.cornerRadius = 20;
    self.mixFixingView.layer.masksToBounds = YES;
    self.mixFixingView.alpha = 0.0;
    
    self.pointMostLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.pointMostLabel.text = BinTopLemma.oldHitDownIron.moireMinderTipRestEldestAgreement;
    self.pointMostLabel.numberOfLines = 0;
    self.pointMostLabel.textColor = [UIColor whiteColor];
    self.pointMostLabel.textAlignment = NSTextAlignmentCenter;
    self.pointMostLabel.font = [UIFont systemFontOfSize:14];
    [self.mixFixingView addSubview:self.pointMostLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(mileAskPackBox:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *law = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(causeShakeJust)];
    [self addGestureRecognizer:law];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(cancelledFrequencySlashUpdatesDropWet)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setHostingAddJson:(NSDictionary *)hostingAddJson {
    _hostingAddJson = hostingAddJson;
    if (hostingAddJson && self.spaceHelloWindow != nil) {
        NSString *action = hostingAddJson[BinTopLemma.drainCatFair.zoneFitWorkTap];
        if ([action isEqualToString:BinTopLemma.drainCatFair.siteCyrillic]) {
            self.cropLiftDidView.hidden = NO;
        }else if ([action isEqualToString:BinTopLemma.drainCatFair.cosmicForbid]) {
            self.cropLiftDidView.hidden = YES;
        }else if ([action isEqualToString:BinTopLemma.drainCatFair.rangeNetBinAffectedSlight]) {
            self.cropLiftDidView.hidden = NO;
        }
    }
}


+ (void)cellShare {
    [self.shared inheritedBitsVolatileSpeechOrdinarySamplingImage:[UIImage chinaRecursiveAuditPartPintName:BinTopLemma.drainCatFair.summariesDarkFeetNotSymbolic] malaySub:BinTopLemma.tagDetailsActionGoalEmail darkImage:nil];
}

+ (void)slopeAskLimitImage:(UIImage *)image {
    [[self shared] inheritedBitsVolatileSpeechOrdinarySamplingImage:image darkImage:nil];
}

+ (void)brownEitherImage:(UIImage *)normalImage darkImage:(nullable UIImage *)darkImage {
    MostSwapView *instance = [self shared];
    instance.sobMergeAnyImage = normalImage;
    instance.floorNotifiesDingbatsSignalReject = nil;
    instance.sedentaryImage = darkImage;
    instance.sindhiPutView.image = normalImage;
}

+ (void)warnSpace {
    [[self shared] reservedFactoredOldDistinctElevation];
}

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


- (void)inheritedBitsVolatileSpeechOrdinarySamplingImage:(UIImage *)image darkImage:(nullable UIImage *)darkImage {
    [self inheritedBitsVolatileSpeechOrdinarySamplingImage:image malaySub:nil darkImage:darkImage];
}

- (void)inheritedBitsVolatileSpeechOrdinarySamplingImage:(UIImage *)image malaySub:(NSString *)malaySub darkImage:(nullable UIImage *)darkImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.sobMergeAnyImage = image;
        self.floorNotifiesDingbatsSignalReject = malaySub;
        self.sedentaryImage = darkImage;
        
        if (!self.spaceHelloWindow) {
            [self collectRemotelyHigherExclusionBridgeWindow];
            [self touchesOnlineAnimatedAmbientEye];
            [self bitIgnoresJabberPeerSumRectified];
            [self grandauntSearchKernelsInfinityDailyForm]; 
        }
        
        [self.spaceHelloWindow makeKeyAndVisible];
        [self.sayOneAspectWindow makeKeyWindow];
        
        [self calculateBinNearSamplingGuestTagAnimation:YES];
        [self displayDigitDividingStaticReservedTimer];
    });
}

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


- (void)collectRemotelyHigherExclusionBridgeWindow {
    
    self.sayOneAspectWindow = [self jouleLexiconWhoQueryYetWindow];
    
    
    NonceHowAskBarWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[NonceHowAskBarWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[NonceHowAskBarWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[TenOceanBedWetViewController alloc] init];
    window.hidden = NO;
    self.spaceHelloWindow = window;
    
    
    [self.spaceHelloWindow resignKeyWindow];
    [self.sayOneAspectWindow makeKeyWindow];
    
    
    [self addSubview:self.cropLiftDidView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.floorNotifiesDingbatsSignalReject) {
        [self.sindhiPutView sd_setImageWithURL:[NSURL URLWithString:self.floorNotifiesDingbatsSignalReject] placeholderImage
                                              :[UIImage chinaRecursiveAuditPartPintName:BinTopLemma.drainCatFair.summariesDarkFeetNotSymbolic]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.sindhiPutView.image = self.sobMergeAnyImage;
    }
    self.sindhiPutView.frame = self.bounds;
    
    [self.spaceHelloWindow addSubview:self];
    [self.spaceHelloWindow addSubview:self.mixFixingView];
}


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

          (greenEqually.size.width - boost/2),
          greenEqually.size.height - boost/2,
          boost,
          boost
        );
        self.mixFixingView.layer.masksToBounds = YES;
        self.mixFixingView.layer.cornerRadius = boost/2;
        self.pointMostLabel.center = CGPointMake(boost/3, boost/4);
    }
}


- (void)causeShakeJust {
    if (self.hostingAddJson) {
        !self.wetVisitHandler ?: self.wetVisitHandler(self.hostingAddJson[BinTopLemma.drainCatFair.napCarGuest]);
        if ([self.hostingAddJson[BinTopLemma.drainCatFair.zoneFitWorkTap] isEqualToString:BinTopLemma.drainCatFair.rangeNetBinAffectedSlight]) {
            self.cropLiftDidView.hidden = YES;
            _hostingAddJson = nil;
        }
    }else {
        !self.wetVisitHandler ?: self.wetVisitHandler(nil);
    }
}

- (void)mileAskPackBox:(UIPanGestureRecognizer *)gesture {
    if (shelfTrySexExhaustedBottom) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            partSawVitalRevisionVectorStore = self.center;
            _sindhiPutView.alpha = 1;
            [self tatarBookMiddleFocusingYoungest];
            purposeHundredsOperatingWayExpandingLose = NO; 
            brotherFatExistEntropyFlush = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.mixFixingView.layer removeAllAnimations];
            
            
            self.mixFixingView.alpha = 0.0;
            self.mixFixingView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self allFloorSpanExecPreviewsCutExactnessCenter:
                           CGPointMake(partSawVitalRevisionVectorStore.x + translation.x,
                                       partSawVitalRevisionVectorStore.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL OurIntroBus = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect fairFrame = self.mixFixingView.frame;
            CGRect observing = CGRectInset(fairFrame, -280, OurIntroBus?-100:-280); 
            BOOL heapUbiquity = CGRectContainsPoint(observing, self.center);
            
            
            
            
            if (heapUbiquity != brotherFatExistEntropyFlush) {
                brotherFatExistEntropyFlush = heapUbiquity;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.mixFixingView.alpha = heapUbiquity ? 1.0 : 0.0;
                    self.mixFixingView.transform = heapUbiquity ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            heapUbiquity = CGRectContainsPoint(CGRectInset(fairFrame, 0, 0), self.center);
            if (heapUbiquity && !purposeHundredsOperatingWayExpandingLose) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                purposeHundredsOperatingWayExpandingLose = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.mixFixingView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!heapUbiquity) {
                if (purposeHundredsOperatingWayExpandingLose) {
                    self.mixFixingView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                purposeHundredsOperatingWayExpandingLose = NO;
            }
            
            
            observing = CGRectInset(fairFrame, 0, 0);
            _makeFastManagerBagSun = CGRectContainsPoint(observing, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.mixFixingView.alpha = 0.0;
                self.mixFixingView.transform = CGAffineTransformIdentity;
            }];
            
            if (_makeFastManagerBagSun) {
                [NowAlertView prominentGoldenProfilesTropicalPivotViolation:nil message:BinTopLemma.oldHitDownIron.minimumInstallsFallbackStopLikeSub ascendedTall:@[BinTopLemma.oldHitDownIron.mathIllPong, BinTopLemma.oldHitDownIron.specify] completion:^(NSInteger retKinIndex) {
                    if (retKinIndex ==1) {
                        [self reservedFactoredOldDistinctElevation];
                    }else {
                        [self calculateBinNearSamplingGuestTagAnimation:YES];
                        [self displayDigitDividingStaticReservedTimer];
                    }
                }];
            } else {
                [self calculateBinNearSamplingGuestTagAnimation:YES];
                [self displayDigitDividingStaticReservedTimer];
            }
            purposeHundredsOperatingWayExpandingLose = NO;
            brotherFatExistEntropyFlush = NO;
            break;
        }

        default: break;
    }
}


- (void)calculateBinNearSamplingGuestTagAnimation:(BOOL)animate {
    if (!_mouthBandUploadingLostTopClang) return;
    
    
    if (shelfTrySexExhaustedBottom && animate) return;
    
    CGRect skinFrame = [self pubFireEffectStopYouFrame];
    CGPoint center = self.center;
    
    CGFloat slow = skinFrame.origin.x;
    CGFloat such = skinFrame.origin.x + skinFrame.size.width;
    CGFloat mole = skinFrame.origin.y;
    CGFloat most = skinFrame.origin.y + skinFrame.size.height;
    
    
    IndicatedHerEdge ourBagEdge = PongSynthesisPhaseOriginalChatterProfiles;
    CGFloat earTabVital = CGFLOAT_MAX;
    
    
    CGFloat wonBad = center.x - slow;
    CGFloat ownFeed = such - center.x;
    CGFloat awake = center.y - mole;
    CGFloat nowLater = most - center.y;
    
    NSArray *italicBus = @[@(wonBad), @(ownFeed), @(awake), @(nowLater)];
    NSArray *edges = @[@(ApplierAnyPolarCanFreeKeys), @(PoliciesIntentsAltitudeRequestedConditionFormats),
                       @(ClampCycleKilowattsCiphersExpansion), @(AirAssetFixUbiquityStairNominally)];
    
    for (NSInteger i = 0; i < italicBus.count; i++) {
        CGFloat distance = [italicBus[i] floatValue];
        if (distance < earTabVital) {
            earTabVital = distance;
            ourBagEdge = [edges[i] integerValue];
        }
    }
    
    
    if (ourBagEdge == self.renewedInputEdge) {
        CGPoint lowCharCenter = self.center;
        CGPoint drivenCenter = [self panelInsetWorkspacePatientIrregularFathomsEdge:ourBagEdge];
        CGFloat distance = hypot(lowCharCenter.x - drivenCenter.x, lowCharCenter.y - drivenCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.renewedInputEdge = ourBagEdge;
    
    
    CGPoint drivenCenter = [self panelInsetWorkspacePatientIrregularFathomsEdge:ourBagEdge];
    CGPoint beginCenter = [self carbonPublishHomePanGravityVitalityCovariantEdge:ourBagEdge];
    
    
    shelfTrySexExhaustedBottom = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->shelfTrySexExhaustedBottom = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = drivenCenter;
        self.cropLiftDidView.center = beginCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)panelInsetWorkspacePatientIrregularFathomsEdge:(IndicatedHerEdge)edge {
    CGRect skinFrame = [self pubFireEffectStopYouFrame];
    CGPoint center = self.center;
    
    CGFloat slow = skinFrame.origin.x;
    CGFloat such = skinFrame.origin.x + skinFrame.size.width;
    CGFloat mole = skinFrame.origin.y;
    CGFloat most = skinFrame.origin.y + skinFrame.size.height;
    
    CGPoint drivenCenter = center;
    
    switch (edge) {
        case ApplierAnyPolarCanFreeKeys:
            drivenCenter.x = slow + self.bounds.size.width/2 + _levelThirdGray;
            break;
        case PoliciesIntentsAltitudeRequestedConditionFormats:
            drivenCenter.x = such - self.bounds.size.width/2 - _levelThirdGray;
            break;
        case ClampCycleKilowattsCiphersExpansion:
            drivenCenter.y = mole + self.bounds.size.height/2 + _levelThirdGray;
            break;
        case AirAssetFixUbiquityStairNominally:
            drivenCenter.y = most - self.bounds.size.height/2 - _levelThirdGray;
            break;
        default:
            break;
    }
    
    
    return [self allFloorSpanExecPreviewsCutExactnessCenter:drivenCenter];
}


- (CGPoint)carbonPublishHomePanGravityVitalityCovariantEdge:(IndicatedHerEdge)edge {
    CGPoint beginCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case ApplierAnyPolarCanFreeKeys:
            beginCenter.x = self.bounds.size.width;
            break;
        case PoliciesIntentsAltitudeRequestedConditionFormats:
            
            break;
        case ClampCycleKilowattsCiphersExpansion:
            beginCenter.x = self.bounds.size.width;
            beginCenter.y = self.bounds.size.height;
            break;
        case AirAssetFixUbiquityStairNominally:
            beginCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return beginCenter;
}


- (void)displayDigitDividingStaticReservedTimer {
    if (_theBeforeBorderSpinePurple <= 0) return;
    
    [self tatarBookMiddleFocusingYoungest];
    _operationStopTimer = [NSTimer scheduledTimerWithTimeInterval:_theBeforeBorderSpinePurple
                                                     target:self
                                                   selector:@selector(emptySuggestedOnlineTeamMovie)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)tatarBookMiddleFocusingYoungest {
    [_operationStopTimer invalidate];
    _operationStopTimer = nil;
}

- (void)emptySuggestedOnlineTeamMovie {
    [UIView animateWithDuration:0.3 animations:^{
        self.sindhiPutView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.renewedInputEdge) {
            case ApplierAnyPolarCanFreeKeys:
                frame.origin.x -= self.levelThirdGray;
                break;
            case PoliciesIntentsAltitudeRequestedConditionFormats:
                frame.origin.x += self.levelThirdGray;
                break;
            case ClampCycleKilowattsCiphersExpansion:
                frame.origin.y -= self.levelThirdGray;
                break;
            case AirAssetFixUbiquityStairNominally:
                frame.origin.y += self.levelThirdGray;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)cancelledFrequencySlashUpdatesDropWet {
    [self touchesOnlineAnimatedAmbientEye];
    [self grandauntSearchKernelsInfinityDailyForm]; 
    [self calculateBinNearSamplingGuestTagAnimation:YES];
}


- (void)touchesOnlineAnimatedAmbientEye {
    UIWindow *keyWindow = ChunkyGetManager.shared.identicalDogWindow; //self.sayOneAspectWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice hasNotch]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice energy]) {
        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.dragEnsureStationPullExtents = safeArea;
    self.gainJabberFrontTabChannelsEqual = keyWindow.bounds;
}

- (CGRect)pubFireEffectStopYouFrame {
    
    return CGRectMake(
        self.gainJabberFrontTabChannelsEqual.origin.x + self.dragEnsureStationPullExtents.left,
        self.gainJabberFrontTabChannelsEqual.origin.y + self.dragEnsureStationPullExtents.top,
        self.gainJabberFrontTabChannelsEqual.size.width - (self.dragEnsureStationPullExtents.left + self.dragEnsureStationPullExtents.right),
        self.gainJabberFrontTabChannelsEqual.size.height - (self.dragEnsureStationPullExtents.top + self.dragEnsureStationPullExtents.bottom)
    );
}


- (void)bitIgnoresJabberPeerSumRectified {
    NSString *endAgentSlab = [[NSUserDefaults standardUserDefaults] valueForKey:BinTopLemma.drainCatFair.cervicalEightFloaterSerializeFatSymbolic];
    if (endAgentSlab) {
        self.center = CGPointFromString(endAgentSlab);
    }else {
        
        CGRect skinFrame = [self pubFireEffectStopYouFrame];
        self.center = CGPointMake(skinFrame.origin.x + skinFrame.size.width - self.bounds.size.width/2 - _levelThirdGray,
                                  skinFrame.origin.y + skinFrame.size.height/2);
    }
}


- (UIWindow *)jouleLexiconWhoQueryYetWindow {
    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)allFloorSpanExecPreviewsCutExactnessCenter:(CGPoint)proposedCenter {
    CGRect skinFrame = [self pubFireEffectStopYouFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat slow = skinFrame.origin.x + buttonSize.width/2;
    CGFloat such = skinFrame.origin.x + skinFrame.size.width - buttonSize.width/2;
    CGFloat mole = skinFrame.origin.y + buttonSize.height/2;
    CGFloat most = skinFrame.origin.y + skinFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(slow, MIN(proposedCenter.x, such)),
        MAX(mole, MIN(proposedCenter.y, most))
    );
}

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

@end
