






#import "InnerPinView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+MapImage.h"
#import "ButPhonetic.h"
#import "NSString+Violation.h"
#import "EyeAlertView.h"
#import "MaskRegionTrapWindow.h"
#import "AvailBringLoveViewController.h"
#import "UIDevice+PubDevice.h"
#import "WasFillerManager.h"

@interface InnerPinView()  <UIGestureRecognizerDelegate> {
    CGPoint overlapHindiPaletteOutAdverbInjection;
    BOOL mainRejectWatchSodiumMismatch;
    BOOL creditsReloadRecognizeFusionInterSum; 
    BOOL commentsSalientExportReleaseFour; 
}


@property (nonatomic, strong) MaskRegionTrapWindow *indoorSlabWindow;
@property (nonatomic, weak) UIWindow *pressureDenyWindow;


@property (nonatomic, strong) UIImageView *pullCoastView;
@property (nonatomic, strong) UIView *latencyPartView;


@property (nonatomic, strong) UIView *performerView;
@property (nonatomic, strong) UILabel *waitCivilLabel;
@property (nonatomic, assign) BOOL youLocalGuideReaderRatio;


@property (nonatomic, strong) NSTimer *saturatedPostTimer;
@property (nonatomic, assign) UIEdgeInsets sunDitherSampleSubgroupsAdaptive;
@property (nonatomic, assign) CGRect closestSinSchemeMessagingDrawSuch;


@property (nonatomic, strong) UIImage *putTapMicroImage;
@property (nonatomic, copy) NSString *plainNotifiedDeciliterWaitKilowatts;
@property (nonatomic, strong) UIImage *sayChooseImage;
@property (nonatomic, assign) CGFloat hangGetExecWho;
@property (nonatomic, assign) PopOutEitherEdge malayIconBarEdge;
@property (nonatomic, assign) NSTimeInterval frequencyAlternateWorkoutResponseSelected;
@property (nonatomic, assign) BOOL alignCopperFootWaxWrappingImplied;
@end

@implementation InnerPinView


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

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

- (void)ephemeralPrintedBothSleetWhite {
    self.hangGetExecWho = 10.0;
    self.frequencyAlternateWorkoutResponseSelected = 3.0;
    self.alignCopperFootWaxWrappingImplied = YES;
    
    
    self.pullCoastView = [[UIImageView alloc] init];
    self.pullCoastView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.pullCoastView];
    
    self.performerView = [[UIView alloc] init];
    self.performerView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.performerView.layer.cornerRadius = 20;
    self.performerView.layer.masksToBounds = YES;
    self.performerView.alpha = 0.0;
    
    self.waitCivilLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.waitCivilLabel.text = ButPhonetic.snowTabWhoDrum.bagDisallowResetPrettyVersionsEye;
    self.waitCivilLabel.numberOfLines = 0;
    self.waitCivilLabel.textColor = [UIColor whiteColor];
    self.waitCivilLabel.textAlignment = NSTextAlignmentCenter;
    self.waitCivilLabel.font = [UIFont systemFontOfSize:14];
    [self.performerView addSubview:self.waitCivilLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(likeSortSquare:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *way = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(underageRender)];
    [self addGestureRecognizer:way];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(foundScanningAdapterLeftoverTerahertzChild)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setBarNetMustJson:(NSDictionary *)barNetMustJson {
    _barNetMustJson = barNetMustJson;
    if (barNetMustJson && self.indoorSlabWindow != nil) {
        NSString *action = barNetMustJson[ButPhonetic.ditheredFast.toggleSameDrum];
        if ([action isEqualToString:ButPhonetic.ditheredFast.mixBloodMust]) {
            self.latencyPartView.hidden = NO;
        }else if ([action isEqualToString:ButPhonetic.ditheredFast.creamyEraPen]) {
            self.latencyPartView.hidden = YES;
        }else if ([action isEqualToString:ButPhonetic.ditheredFast.grandsonFemaleWetJoinDefined]) {
            self.latencyPartView.hidden = NO;
        }
    }
}


+ (void)deciliter {
    [self.shared diagnoseActionLatencySucceededCheckOutletImage:[UIImage healthProvidedMillibarsOperatingDividerName:ButPhonetic.ditheredFast.visitedTimeLemmaConditionCleared] strategy:ButPhonetic.chromeEnsureOrangeDelayUnfocused showImage:nil];
}

+ (void)contextsFocalImage:(UIImage *)image {
    [[self shared] diagnoseActionLatencySucceededCheckOutletImage:image showImage:nil];
}

+ (void)dueMixAlongImage:(UIImage *)normalImage showImage:(nullable UIImage *)showImage {
    InnerPinView *instance = [self shared];
    instance.putTapMicroImage = normalImage;
    instance.plainNotifiedDeciliterWaitKilowatts = nil;
    instance.sayChooseImage = showImage;
    instance.pullCoastView.image = normalImage;
}

+ (void)eyeWidget {
    [[self shared] runSumPipeMirroringSlashed];
}

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


- (void)diagnoseActionLatencySucceededCheckOutletImage:(UIImage *)image showImage:(nullable UIImage *)showImage {
    [self diagnoseActionLatencySucceededCheckOutletImage:image strategy:nil showImage:showImage];
}

- (void)diagnoseActionLatencySucceededCheckOutletImage:(UIImage *)image strategy:(NSString *)strategy showImage:(nullable UIImage *)showImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.putTapMicroImage = image;
        self.plainNotifiedDeciliterWaitKilowatts = strategy;
        self.sayChooseImage = showImage;
        
        if (!self.indoorSlabWindow) {
            [self applierPlusSelectingPoolTabWindow];
            [self chromiumCapableDriveCancelSub];
            [self farStrideUseDayPermutePen];
            [self ouncesEnsureAuthorsEncodingsFlipMaximum]; 
        }
        
        [self.indoorSlabWindow makeKeyAndVisible];
        [self.pressureDenyWindow makeKeyWindow];
        
        [self chlorideRevertingDustDistanceDiamondPullAnimation:YES];
        [self coloredWhoReversedItsProvinceTimer];
    });
}

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


- (void)applierPlusSelectingPoolTabWindow {
    
    self.pressureDenyWindow = [self axesManFatalNetLessWindow];
    
    
    MaskRegionTrapWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[MaskRegionTrapWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[MaskRegionTrapWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[AvailBringLoveViewController alloc] init];
    window.hidden = NO;
    self.indoorSlabWindow = window;
    
    
    [self.indoorSlabWindow resignKeyWindow];
    [self.pressureDenyWindow makeKeyWindow];
    
    
    [self addSubview:self.latencyPartView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.plainNotifiedDeciliterWaitKilowatts) {
        [self.pullCoastView sd_setImageWithURL:[NSURL URLWithString:self.plainNotifiedDeciliterWaitKilowatts] placeholderImage
                                              :[UIImage healthProvidedMillibarsOperatingDividerName:ButPhonetic.ditheredFast.visitedTimeLemmaConditionCleared]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.pullCoastView.image = self.putTapMicroImage;
    }
    self.pullCoastView.frame = self.bounds;
    
    [self.indoorSlabWindow addSubview:self];
    [self.indoorSlabWindow addSubview:self.performerView];
}


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

          (signalRunMay.size.width - stand/2),
          signalRunMay.size.height - stand/2,
          stand,
          stand
        );
        self.performerView.layer.masksToBounds = YES;
        self.performerView.layer.cornerRadius = stand/2;
        self.waitCivilLabel.center = CGPointMake(stand/3, stand/4);
    }
}


- (void)underageRender {
    if (self.barNetMustJson) {
        !self.queryingHandler ?: self.queryingHandler(self.barNetMustJson[ButPhonetic.ditheredFast.tagJumpMark]);
        if ([self.barNetMustJson[ButPhonetic.ditheredFast.toggleSameDrum] isEqualToString:ButPhonetic.ditheredFast.grandsonFemaleWetJoinDefined]) {
            self.latencyPartView.hidden = YES;
            _barNetMustJson = nil;
        }
    }else {
        !self.queryingHandler ?: self.queryingHandler(nil);
    }
}

- (void)likeSortSquare:(UIPanGestureRecognizer *)gesture {
    if (mainRejectWatchSodiumMismatch) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            overlapHindiPaletteOutAdverbInjection = self.center;
            _pullCoastView.alpha = 1;
            [self menstrualTalkPongLaunchingDecrypted];
            creditsReloadRecognizeFusionInterSum = NO; 
            commentsSalientExportReleaseFour = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.performerView.layer removeAllAnimations];
            
            
            self.performerView.alpha = 0.0;
            self.performerView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self scanningMoleStoneMillMuteHeavyBusCenter:
                           CGPointMake(overlapHindiPaletteOutAdverbInjection.x + translation.x,
                                       overlapHindiPaletteOutAdverbInjection.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL EndChloride = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect toolFrame = self.performerView.frame;
            CGRect prologEnd = CGRectInset(toolFrame, -280, EndChloride?-100:-280); 
            BOOL filmClusters = CGRectContainsPoint(prologEnd, self.center);
            
            
            
            
            if (filmClusters != commentsSalientExportReleaseFour) {
                commentsSalientExportReleaseFour = filmClusters;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.performerView.alpha = filmClusters ? 1.0 : 0.0;
                    self.performerView.transform = filmClusters ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            filmClusters = CGRectContainsPoint(CGRectInset(toolFrame, 0, 0), self.center);
            if (filmClusters && !creditsReloadRecognizeFusionInterSum) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                creditsReloadRecognizeFusionInterSum = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.performerView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!filmClusters) {
                if (creditsReloadRecognizeFusionInterSum) {
                    self.performerView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                creditsReloadRecognizeFusionInterSum = NO;
            }
            
            
            prologEnd = CGRectInset(toolFrame, 0, 0);
            _youLocalGuideReaderRatio = CGRectContainsPoint(prologEnd, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.performerView.alpha = 0.0;
                self.performerView.transform = CGAffineTransformIdentity;
            }];
            
            if (_youLocalGuideReaderRatio) {
                [EyeAlertView layoutCupSetupBuiltSurfaceRank:nil message:ButPhonetic.snowTabWhoDrum.cubeSequencerSerializeSexBrandHash foundSquares:@[ButPhonetic.snowTabWhoDrum.menChunkSon, ButPhonetic.snowTabWhoDrum.floater] completion:^(NSInteger sensorIndex) {
                    if (sensorIndex ==1) {
                        [self runSumPipeMirroringSlashed];
                    }else {
                        [self chlorideRevertingDustDistanceDiamondPullAnimation:YES];
                        [self coloredWhoReversedItsProvinceTimer];
                    }
                }];
            } else {
                [self chlorideRevertingDustDistanceDiamondPullAnimation:YES];
                [self coloredWhoReversedItsProvinceTimer];
            }
            creditsReloadRecognizeFusionInterSum = NO;
            commentsSalientExportReleaseFour = NO;
            break;
        }

        default: break;
    }
}


- (void)chlorideRevertingDustDistanceDiamondPullAnimation:(BOOL)animate {
    if (!_alignCopperFootWaxWrappingImplied) return;
    
    
    if (mainRejectWatchSodiumMismatch && animate) return;
    
    CGRect ringFrame = [self olympusHerRestoredLacrosseUnloadFrame];
    CGPoint center = self.center;
    
    CGFloat mild = ringFrame.origin.x;
    CGFloat once = ringFrame.origin.x + ringFrame.size.width;
    CGFloat hand = ringFrame.origin.y;
    CGFloat card = ringFrame.origin.y + ringFrame.size.height;
    
    
    PopOutEitherEdge endOurEdge = EraPrimaryOwnEyeExpansionChange;
    CGFloat maintainRun = CGFLOAT_MAX;
    
    
    CGFloat panSix = center.x - mild;
    CGFloat youPath = once - center.x;
    CGFloat cycle = center.y - hand;
    CGFloat counting = card - center.y;
    
    NSArray *undoTitle = @[@(panSix), @(youPath), @(cycle), @(counting)];
    NSArray *edges = @[@(DaysProcedureChangingEggFlightQuantity), @(StepRollTipProminentMixEar),
                       @(MainSuffixResponseEdgeFeed), @(HeadphoneBehaviorsExportedExpectsIntersectCreamy)];
    
    for (NSInteger i = 0; i < undoTitle.count; i++) {
        CGFloat distance = [undoTitle[i] floatValue];
        if (distance < maintainRun) {
            maintainRun = distance;
            endOurEdge = [edges[i] integerValue];
        }
    }
    
    
    if (endOurEdge == self.malayIconBarEdge) {
        CGPoint fontPenCenter = self.center;
        CGPoint runSpaCenter = [self lazySobExhaustedHerFloatLocallyEdge:endOurEdge];
        CGFloat distance = hypot(fontPenCenter.x - runSpaCenter.x, fontPenCenter.y - runSpaCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.malayIconBarEdge = endOurEdge;
    
    
    CGPoint runSpaCenter = [self lazySobExhaustedHerFloatLocallyEdge:endOurEdge];
    CGPoint acuteCenter = [self transformSuspendedAbsentCutRoomEncryptedLacrosseEdge:endOurEdge];
    
    
    mainRejectWatchSodiumMismatch = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->mainRejectWatchSodiumMismatch = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = runSpaCenter;
        self.latencyPartView.center = acuteCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)lazySobExhaustedHerFloatLocallyEdge:(PopOutEitherEdge)edge {
    CGRect ringFrame = [self olympusHerRestoredLacrosseUnloadFrame];
    CGPoint center = self.center;
    
    CGFloat mild = ringFrame.origin.x;
    CGFloat once = ringFrame.origin.x + ringFrame.size.width;
    CGFloat hand = ringFrame.origin.y;
    CGFloat card = ringFrame.origin.y + ringFrame.size.height;
    
    CGPoint runSpaCenter = center;
    
    switch (edge) {
        case DaysProcedureChangingEggFlightQuantity:
            runSpaCenter.x = mild + self.bounds.size.width/2 + _hangGetExecWho;
            break;
        case StepRollTipProminentMixEar:
            runSpaCenter.x = once - self.bounds.size.width/2 - _hangGetExecWho;
            break;
        case MainSuffixResponseEdgeFeed:
            runSpaCenter.y = hand + self.bounds.size.height/2 + _hangGetExecWho;
            break;
        case HeadphoneBehaviorsExportedExpectsIntersectCreamy:
            runSpaCenter.y = card - self.bounds.size.height/2 - _hangGetExecWho;
            break;
        default:
            break;
    }
    
    
    return [self scanningMoleStoneMillMuteHeavyBusCenter:runSpaCenter];
}


- (CGPoint)transformSuspendedAbsentCutRoomEncryptedLacrosseEdge:(PopOutEitherEdge)edge {
    CGPoint acuteCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case DaysProcedureChangingEggFlightQuantity:
            acuteCenter.x = self.bounds.size.width;
            break;
        case StepRollTipProminentMixEar:
            
            break;
        case MainSuffixResponseEdgeFeed:
            acuteCenter.x = self.bounds.size.width;
            acuteCenter.y = self.bounds.size.height;
            break;
        case HeadphoneBehaviorsExportedExpectsIntersectCreamy:
            acuteCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return acuteCenter;
}


- (void)coloredWhoReversedItsProvinceTimer {
    if (_frequencyAlternateWorkoutResponseSelected <= 0) return;
    
    [self menstrualTalkPongLaunchingDecrypted];
    _saturatedPostTimer = [NSTimer scheduledTimerWithTimeInterval:_frequencyAlternateWorkoutResponseSelected
                                                     target:self
                                                   selector:@selector(earlierChainPieceGallonThreads)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)menstrualTalkPongLaunchingDecrypted {
    [_saturatedPostTimer invalidate];
    _saturatedPostTimer = nil;
}

- (void)earlierChainPieceGallonThreads {
    [UIView animateWithDuration:0.3 animations:^{
        self.pullCoastView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.malayIconBarEdge) {
            case DaysProcedureChangingEggFlightQuantity:
                frame.origin.x -= self.hangGetExecWho;
                break;
            case StepRollTipProminentMixEar:
                frame.origin.x += self.hangGetExecWho;
                break;
            case MainSuffixResponseEdgeFeed:
                frame.origin.y -= self.hangGetExecWho;
                break;
            case HeadphoneBehaviorsExportedExpectsIntersectCreamy:
                frame.origin.y += self.hangGetExecWho;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)foundScanningAdapterLeftoverTerahertzChild {
    [self chromiumCapableDriveCancelSub];
    [self ouncesEnsureAuthorsEncodingsFlipMaximum]; 
    [self chlorideRevertingDustDistanceDiamondPullAnimation:YES];
}


- (void)chromiumCapableDriveCancelSub {
    UIWindow *keyWindow = WasFillerManager.shared.delaySubPickWindow; //self.pressureDenyWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice arrowWax]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice nowCap]) {
        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.sunDitherSampleSubgroupsAdaptive = safeArea;
    self.closestSinSchemeMessagingDrawSuch = keyWindow.bounds;
}

- (CGRect)olympusHerRestoredLacrosseUnloadFrame {
    
    return CGRectMake(
        self.closestSinSchemeMessagingDrawSuch.origin.x + self.sunDitherSampleSubgroupsAdaptive.left,
        self.closestSinSchemeMessagingDrawSuch.origin.y + self.sunDitherSampleSubgroupsAdaptive.top,
        self.closestSinSchemeMessagingDrawSuch.size.width - (self.sunDitherSampleSubgroupsAdaptive.left + self.sunDitherSampleSubgroupsAdaptive.right),
        self.closestSinSchemeMessagingDrawSuch.size.height - (self.sunDitherSampleSubgroupsAdaptive.top + self.sunDitherSampleSubgroupsAdaptive.bottom)
    );
}


- (void)farStrideUseDayPermutePen {
    NSString *startPurpose = [[NSUserDefaults standardUserDefaults] valueForKey:ButPhonetic.ditheredFast.ditheredFormDetailsCoverageLookFor];
    if (startPurpose) {
        self.center = CGPointFromString(startPurpose);
    }else {
        
        CGRect ringFrame = [self olympusHerRestoredLacrosseUnloadFrame];
        self.center = CGPointMake(ringFrame.origin.x + ringFrame.size.width - self.bounds.size.width/2 - _hangGetExecWho,
                                  ringFrame.origin.y + ringFrame.size.height/2);
    }
}


- (UIWindow *)axesManFatalNetLessWindow {
    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)scanningMoleStoneMillMuteHeavyBusCenter:(CGPoint)proposedCenter {
    CGRect ringFrame = [self olympusHerRestoredLacrosseUnloadFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat mild = ringFrame.origin.x + buttonSize.width/2;
    CGFloat once = ringFrame.origin.x + ringFrame.size.width - buttonSize.width/2;
    CGFloat hand = ringFrame.origin.y + buttonSize.height/2;
    CGFloat card = ringFrame.origin.y + ringFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(mild, MIN(proposedCenter.x, once)),
        MAX(hand, MIN(proposedCenter.y, card))
    );
}

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

@end
