






#import "BlobSentView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+ItsImage.h"
#import "TopMergeNap.h"
#import "NSString+Connected.h"
#import "SubAlertView.h"
#import "HeapNotBusWalkWindow.h"
#import "AlarmRadixKnowViewController.h"
#import "UIDevice+MixDevice.h"
#import "ExtendingManager.h"

@interface BlobSentView()  <UIGestureRecognizerDelegate> {
    CGPoint dutchHandballEstonianEnteredIllSaw;
    BOOL molarDefinesOutcomeSafePlate;
    BOOL portraitsUniversalFourTerminalCauseFigure; 
    BOOL legalLogoSeeRootBeat; 
}


@property (nonatomic, strong) HeapNotBusWalkWindow *outletMoreWindow;
@property (nonatomic, weak) UIWindow *underOldIronWindow;


@property (nonatomic, strong) UIImageView *tildeMileView;
@property (nonatomic, strong) UIView *genericEasyView;


@property (nonatomic, strong) UIView *itemSevenView;
@property (nonatomic, strong) UILabel *breakIdleLabel;
@property (nonatomic, assign) BOOL tatarAllocateFontFinnishSomali;


@property (nonatomic, strong) NSTimer *keysNodeScaleTimer;
@property (nonatomic, assign) UIEdgeInsets newtonsTruncatedBoxMetadataWrite;
@property (nonatomic, assign) CGRect milesOneUkrainianPrettyCommitLaunch;


@property (nonatomic, strong) UIImage *hisAwakeAreImage;
@property (nonatomic, copy) NSString *sensitivePresentSentenceKeepGram;
@property (nonatomic, strong) UIImage *meterFourImage;
@property (nonatomic, assign) CGFloat cupDryAskSleet;
@property (nonatomic, assign) PlayOneBlockEdge hitTopWithinEdge;
@property (nonatomic, assign) NSTimeInterval tapCapturingHockeyRelayCoverage;
@property (nonatomic, assign) BOOL saltQuechuaUpdateRedirectLambdaStylize;
@end

@implementation BlobSentView


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

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

- (void)spaLoudConcertFigureSlight {
    self.cupDryAskSleet = 10.0;
    self.tapCapturingHockeyRelayCoverage = 3.0;
    self.saltQuechuaUpdateRedirectLambdaStylize = YES;
    
    
    self.tildeMileView = [[UIImageView alloc] init];
    self.tildeMileView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.tildeMileView];
    
    self.itemSevenView = [[UIView alloc] init];
    self.itemSevenView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.itemSevenView.layer.cornerRadius = 20;
    self.itemSevenView.layer.masksToBounds = YES;
    self.itemSevenView.alpha = 0.0;
    
    self.breakIdleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.breakIdleLabel.text = TopMergeNap.turnFoggyPivot.yahooSexLuminanceHundredElectricCadence;
    self.breakIdleLabel.numberOfLines = 0;
    self.breakIdleLabel.textColor = [UIColor whiteColor];
    self.breakIdleLabel.textAlignment = NSTextAlignmentCenter;
    self.breakIdleLabel.font = [UIFont systemFontOfSize:14];
    [self.itemSevenView addSubview:self.breakIdleLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(farthestOutlet:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *his = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(listenersDelta)];
    [self addGestureRecognizer:his];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(unlimitedTripleTakeRearArtsTool)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setLoudPanBoxJson:(NSDictionary *)loudPanBoxJson {
    _loudPanBoxJson = loudPanBoxJson;
    if (loudPanBoxJson && self.outletMoreWindow != nil) {
        NSString *action = loudPanBoxJson[TopMergeNap.yetChromaUse.topUsedNowPass];
        if ([action isEqualToString:TopMergeNap.yetChromaUse.canEachAbout]) {
            self.genericEasyView.hidden = NO;
        }else if ([action isEqualToString:TopMergeNap.yetChromaUse.popMakerPace]) {
            self.genericEasyView.hidden = YES;
        }else if ([action isEqualToString:TopMergeNap.yetChromaUse.canceledIndicatedMostlyChamberPair]) {
            self.genericEasyView.hidden = NO;
        }
    }
}


+ (void)kazakhRaw {
    [self.shared observedPagerLiterExcludeCocoaHourImage:[UIImage stakeMaskDownForceCallName:TopMergeNap.yetChromaUse.wristConsumerDrawFitMid] decipher:TopMergeNap.retryBlurDynamicStoodIron handImage:nil];
}

+ (void)noticeStreamsImage:(UIImage *)image {
    [[self shared] observedPagerLiterExcludeCocoaHourImage:image handImage:nil];
}

+ (void)hintFormMinImage:(UIImage *)normalImage handImage:(nullable UIImage *)handImage {
    BlobSentView *instance = [self shared];
    instance.hisAwakeAreImage = normalImage;
    instance.sensitivePresentSentenceKeepGram = nil;
    instance.meterFourImage = handImage;
    instance.tildeMileView.image = normalImage;
}

+ (void)warnStale {
    [[self shared] exposuresValueBleedFlatSuffix];
}

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


- (void)observedPagerLiterExcludeCocoaHourImage:(UIImage *)image handImage:(nullable UIImage *)handImage {
    [self observedPagerLiterExcludeCocoaHourImage:image decipher:nil handImage:handImage];
}

- (void)observedPagerLiterExcludeCocoaHourImage:(UIImage *)image decipher:(NSString *)decipher handImage:(nullable UIImage *)handImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.hisAwakeAreImage = image;
        self.sensitivePresentSentenceKeepGram = decipher;
        self.meterFourImage = handImage;
        
        if (!self.outletMoreWindow) {
            [self dietaryBlurPastRangingBasalWindow];
            [self widthArtistDeliverSentSliding];
            [self helperUnwindEncodingsQuietEdgeInferiors];
            [self pingZipCellularPullDivideElastic]; 
        }
        
        [self.outletMoreWindow makeKeyAndVisible];
        [self.underOldIronWindow makeKeyWindow];
        
        [self eyeBeforeOptFingerWrapFilterAnimation:YES];
        [self priceTowerAscenderPreventsLiftTimer];
    });
}

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


- (void)dietaryBlurPastRangingBasalWindow {
    
    self.underOldIronWindow = [self filteredEmptyAspectForbiddenCelticWindow];
    
    
    HeapNotBusWalkWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[HeapNotBusWalkWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[HeapNotBusWalkWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[AlarmRadixKnowViewController alloc] init];
    window.hidden = NO;
    self.outletMoreWindow = window;
    
    
    [self.outletMoreWindow resignKeyWindow];
    [self.underOldIronWindow makeKeyWindow];
    
    
    [self addSubview:self.genericEasyView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.sensitivePresentSentenceKeepGram) {
        [self.tildeMileView sd_setImageWithURL:[NSURL URLWithString:self.sensitivePresentSentenceKeepGram] placeholderImage
                                              :[UIImage stakeMaskDownForceCallName:TopMergeNap.yetChromaUse.wristConsumerDrawFitMid]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.tildeMileView.image = self.hisAwakeAreImage;
    }
    self.tildeMileView.frame = self.bounds;
    
    [self.outletMoreWindow addSubview:self];
    [self.outletMoreWindow addSubview:self.itemSevenView];
}


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

          (requestedSee.size.width - click/2),
          requestedSee.size.height - click/2,
          click,
          click
        );
        self.itemSevenView.layer.masksToBounds = YES;
        self.itemSevenView.layer.cornerRadius = click/2;
        self.breakIdleLabel.center = CGPointMake(click/3, click/4);
    }
}


- (void)listenersDelta {
    if (self.loudPanBoxJson) {
        !self.creationHandler ?: self.creationHandler(self.loudPanBoxJson[TopMergeNap.yetChromaUse.introDueTry]);
        if ([self.loudPanBoxJson[TopMergeNap.yetChromaUse.topUsedNowPass] isEqualToString:TopMergeNap.yetChromaUse.canceledIndicatedMostlyChamberPair]) {
            self.genericEasyView.hidden = YES;
            _loudPanBoxJson = nil;
        }
    }else {
        !self.creationHandler ?: self.creationHandler(nil);
    }
}

- (void)farthestOutlet:(UIPanGestureRecognizer *)gesture {
    if (molarDefinesOutcomeSafePlate) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            dutchHandballEstonianEnteredIllSaw = self.center;
            _tildeMileView.alpha = 1;
            [self semicolonCapableMonthMindExtrinsic];
            portraitsUniversalFourTerminalCauseFigure = NO; 
            legalLogoSeeRootBeat = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.itemSevenView.layer removeAllAnimations];
            
            
            self.itemSevenView.alpha = 0.0;
            self.itemSevenView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self appliesMonotonicPersianDirectionCountingLessHusbandCenter:
                           CGPointMake(dutchHandballEstonianEnteredIllSaw.x + translation.x,
                                       dutchHandballEstonianEnteredIllSaw.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL ItemCapFour = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect workFrame = self.itemSevenView.frame;
            CGRect polarClip = CGRectInset(workFrame, -280, ItemCapFour?-100:-280); 
            BOOL arrangerRoll = CGRectContainsPoint(polarClip, self.center);
            
            
            
            
            if (arrangerRoll != legalLogoSeeRootBeat) {
                legalLogoSeeRootBeat = arrangerRoll;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.itemSevenView.alpha = arrangerRoll ? 1.0 : 0.0;
                    self.itemSevenView.transform = arrangerRoll ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            arrangerRoll = CGRectContainsPoint(CGRectInset(workFrame, 0, 0), self.center);
            if (arrangerRoll && !portraitsUniversalFourTerminalCauseFigure) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                portraitsUniversalFourTerminalCauseFigure = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.itemSevenView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!arrangerRoll) {
                if (portraitsUniversalFourTerminalCauseFigure) {
                    self.itemSevenView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                portraitsUniversalFourTerminalCauseFigure = NO;
            }
            
            
            polarClip = CGRectInset(workFrame, 0, 0);
            _tatarAllocateFontFinnishSomali = CGRectContainsPoint(polarClip, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.itemSevenView.alpha = 0.0;
                self.itemSevenView.transform = CGAffineTransformIdentity;
            }];
            
            if (_tatarAllocateFontFinnishSomali) {
                [SubAlertView cardTransitPreparePoloOneSindhi:nil message:TopMergeNap.turnFoggyPivot.hexFarCertStereoFormatsYet rankedTwoAir:@[TopMergeNap.turnFoggyPivot.eachMaskSin, TopMergeNap.turnFoggyPivot.husband] completion:^(NSInteger bagEggIndex) {
                    if (bagEggIndex ==1) {
                        [self exposuresValueBleedFlatSuffix];
                    }else {
                        [self eyeBeforeOptFingerWrapFilterAnimation:YES];
                        [self priceTowerAscenderPreventsLiftTimer];
                    }
                }];
            } else {
                [self eyeBeforeOptFingerWrapFilterAnimation:YES];
                [self priceTowerAscenderPreventsLiftTimer];
            }
            portraitsUniversalFourTerminalCauseFigure = NO;
            legalLogoSeeRootBeat = NO;
            break;
        }

        default: break;
    }
}


- (void)eyeBeforeOptFingerWrapFilterAnimation:(BOOL)animate {
    if (!_saltQuechuaUpdateRedirectLambdaStylize) return;
    
    
    if (molarDefinesOutcomeSafePlate && animate) return;
    
    CGRect snowFrame = [self flightsPortalPubShortcutListenFrame];
    CGPoint center = self.center;
    
    CGFloat warp = snowFrame.origin.x;
    CGFloat sent = snowFrame.origin.x + snowFrame.size.width;
    CGFloat ring = snowFrame.origin.y;
    CGFloat just = snowFrame.origin.y + snowFrame.size.height;
    
    
    PlayOneBlockEdge lookupEdge = PriceTiedInvokeDescenderSheetObscured;
    CGFloat optAskPatch = CGFLOAT_MAX;
    
    
    CGFloat didAdd = center.x - warp;
    CGFloat bedGolf = sent - center.x;
    CGFloat sugar = center.y - ring;
    CGFloat guestPut = just - center.y;
    
    NSArray *sobObject = @[@(didAdd), @(bedGolf), @(sugar), @(guestPut)];
    NSArray *edges = @[@(FinishUseOldEndEstablishArea), @(TorchLacrosseSlidingRankLeastWindow),
                       @(SingularTelephoneGlyphSchedulerPrincipal), @(FetchedBadgePullStylusLogInherited)];
    
    for (NSInteger i = 0; i < sobObject.count; i++) {
        CGFloat distance = [sobObject[i] floatValue];
        if (distance < optAskPatch) {
            optAskPatch = distance;
            lookupEdge = [edges[i] integerValue];
        }
    }
    
    
    if (lookupEdge == self.hitTopWithinEdge) {
        CGPoint notLoudCenter = self.center;
        CGPoint cornerCenter = [self literRedWirelessYahooStepperExtentEdge:lookupEdge];
        CGFloat distance = hypot(notLoudCenter.x - cornerCenter.x, notLoudCenter.y - cornerCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.hitTopWithinEdge = lookupEdge;
    
    
    CGPoint cornerCenter = [self literRedWirelessYahooStepperExtentEdge:lookupEdge];
    CGPoint drainCenter = [self signCentralsHyphenBandWarnStateObservingEdge:lookupEdge];
    
    
    molarDefinesOutcomeSafePlate = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->molarDefinesOutcomeSafePlate = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = cornerCenter;
        self.genericEasyView.center = drainCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)literRedWirelessYahooStepperExtentEdge:(PlayOneBlockEdge)edge {
    CGRect snowFrame = [self flightsPortalPubShortcutListenFrame];
    CGPoint center = self.center;
    
    CGFloat warp = snowFrame.origin.x;
    CGFloat sent = snowFrame.origin.x + snowFrame.size.width;
    CGFloat ring = snowFrame.origin.y;
    CGFloat just = snowFrame.origin.y + snowFrame.size.height;
    
    CGPoint cornerCenter = center;
    
    switch (edge) {
        case FinishUseOldEndEstablishArea:
            cornerCenter.x = warp + self.bounds.size.width/2 + _cupDryAskSleet;
            break;
        case TorchLacrosseSlidingRankLeastWindow:
            cornerCenter.x = sent - self.bounds.size.width/2 - _cupDryAskSleet;
            break;
        case SingularTelephoneGlyphSchedulerPrincipal:
            cornerCenter.y = ring + self.bounds.size.height/2 + _cupDryAskSleet;
            break;
        case FetchedBadgePullStylusLogInherited:
            cornerCenter.y = just - self.bounds.size.height/2 - _cupDryAskSleet;
            break;
        default:
            break;
    }
    
    
    return [self appliesMonotonicPersianDirectionCountingLessHusbandCenter:cornerCenter];
}


- (CGPoint)signCentralsHyphenBandWarnStateObservingEdge:(PlayOneBlockEdge)edge {
    CGPoint drainCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case FinishUseOldEndEstablishArea:
            drainCenter.x = self.bounds.size.width;
            break;
        case TorchLacrosseSlidingRankLeastWindow:
            
            break;
        case SingularTelephoneGlyphSchedulerPrincipal:
            drainCenter.x = self.bounds.size.width;
            drainCenter.y = self.bounds.size.height;
            break;
        case FetchedBadgePullStylusLogInherited:
            drainCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return drainCenter;
}


- (void)priceTowerAscenderPreventsLiftTimer {
    if (_tapCapturingHockeyRelayCoverage <= 0) return;
    
    [self semicolonCapableMonthMindExtrinsic];
    _keysNodeScaleTimer = [NSTimer scheduledTimerWithTimeInterval:_tapCapturingHockeyRelayCoverage
                                                     target:self
                                                   selector:@selector(farsiBlindingVignetteBackwardsTabular)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)semicolonCapableMonthMindExtrinsic {
    [_keysNodeScaleTimer invalidate];
    _keysNodeScaleTimer = nil;
}

- (void)farsiBlindingVignetteBackwardsTabular {
    [UIView animateWithDuration:0.3 animations:^{
        self.tildeMileView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.hitTopWithinEdge) {
            case FinishUseOldEndEstablishArea:
                frame.origin.x -= self.cupDryAskSleet;
                break;
            case TorchLacrosseSlidingRankLeastWindow:
                frame.origin.x += self.cupDryAskSleet;
                break;
            case SingularTelephoneGlyphSchedulerPrincipal:
                frame.origin.y -= self.cupDryAskSleet;
                break;
            case FetchedBadgePullStylusLogInherited:
                frame.origin.y += self.cupDryAskSleet;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)unlimitedTripleTakeRearArtsTool {
    [self widthArtistDeliverSentSliding];
    [self pingZipCellularPullDivideElastic]; 
    [self eyeBeforeOptFingerWrapFilterAnimation:YES];
}


- (void)widthArtistDeliverSentSliding {
    UIWindow *keyWindow = ExtendingManager.shared.startupBadgeWindow; //self.underOldIronWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice pubTorch]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice hueCat]) {
        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.newtonsTruncatedBoxMetadataWrite = safeArea;
    self.milesOneUkrainianPrettyCommitLaunch = keyWindow.bounds;
}

- (CGRect)flightsPortalPubShortcutListenFrame {
    
    return CGRectMake(
        self.milesOneUkrainianPrettyCommitLaunch.origin.x + self.newtonsTruncatedBoxMetadataWrite.left,
        self.milesOneUkrainianPrettyCommitLaunch.origin.y + self.newtonsTruncatedBoxMetadataWrite.top,
        self.milesOneUkrainianPrettyCommitLaunch.size.width - (self.newtonsTruncatedBoxMetadataWrite.left + self.newtonsTruncatedBoxMetadataWrite.right),
        self.milesOneUkrainianPrettyCommitLaunch.size.height - (self.newtonsTruncatedBoxMetadataWrite.top + self.newtonsTruncatedBoxMetadataWrite.bottom)
    );
}


- (void)helperUnwindEncodingsQuietEdgeInferiors {
    NSString *hitOwnership = [[NSUserDefaults standardUserDefaults] valueForKey:TopMergeNap.yetChromaUse.slashesIndoorAirInferiorsCaretKernels];
    if (hitOwnership) {
        self.center = CGPointFromString(hitOwnership);
    }else {
        
        CGRect snowFrame = [self flightsPortalPubShortcutListenFrame];
        self.center = CGPointMake(snowFrame.origin.x + snowFrame.size.width - self.bounds.size.width/2 - _cupDryAskSleet,
                                  snowFrame.origin.y + snowFrame.size.height/2);
    }
}


- (UIWindow *)filteredEmptyAspectForbiddenCelticWindow {
    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)appliesMonotonicPersianDirectionCountingLessHusbandCenter:(CGPoint)proposedCenter {
    CGRect snowFrame = [self flightsPortalPubShortcutListenFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat warp = snowFrame.origin.x + buttonSize.width/2;
    CGFloat sent = snowFrame.origin.x + snowFrame.size.width - buttonSize.width/2;
    CGFloat ring = snowFrame.origin.y + buttonSize.height/2;
    CGFloat just = snowFrame.origin.y + snowFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(warp, MIN(proposedCenter.x, sent)),
        MAX(ring, MIN(proposedCenter.y, just))
    );
}

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

@end
