






#import "GroupHexView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+EarImage.h"
#import "MusicLowPen.h"
#import "NSString+AdoptPeer.h"
#import "DryAlertView.h"
#import "OldSawTrashPenWindow.h"
#import "BikeScaleApplyViewController.h"
#import "UIDevice+EndDevice.h"
#import "BigCustomManager.h"

@interface GroupHexView()  <UIGestureRecognizerDelegate> {
    CGPoint menPashtoDecigramsEjectJumpIntro;
    BOOL canCharacterIndigoParsecsOrganize;
    BOOL fadeCapableAccurateOwnershipQueryRoute; 
    BOOL iconAscentHerDiscoveryAfter; 
}


@property (nonatomic, strong) OldSawTrashPenWindow *wetLowRareWindow;
@property (nonatomic, weak) UIWindow *artWireTeethWindow;


@property (nonatomic, strong) UIImageView *lazyFloatView;
@property (nonatomic, strong) UIView *runLowSolveView;


@property (nonatomic, strong) UIView *failClockView;
@property (nonatomic, strong) UILabel *tenInsideLabel;
@property (nonatomic, assign) BOOL realSubHueStaySpeech;


@property (nonatomic, strong) NSTimer *caretCivilAreTimer;
@property (nonatomic, assign) UIEdgeInsets lexicalMomentInheritedHelpersControls;
@property (nonatomic, assign) CGRect anchoredSpeakRenewalRemainingSocialDegrees;


@property (nonatomic, strong) UIImage *slowWaxSongImage;
@property (nonatomic, copy) NSString *letterFemaleHueDustKeep;
@property (nonatomic, strong) UIImage *compositeImage;
@property (nonatomic, assign) CGFloat fatIndexAgeRun;
@property (nonatomic, assign) SharePresentEdge funNegotiateEdge;
@property (nonatomic, assign) NSTimeInterval panIndexedContrastAttributeTransmit;
@property (nonatomic, assign) BOOL dirtyBehaviorsBreakingUrgencyAbsoluteStation;
@end

@implementation GroupHexView


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

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

- (void)scrollsSixAlcoholClippingDirty {
    self.fatIndexAgeRun = 10.0;
    self.panIndexedContrastAttributeTransmit = 3.0;
    self.dirtyBehaviorsBreakingUrgencyAbsoluteStation = YES;
    
    
    self.lazyFloatView = [[UIImageView alloc] init];
    self.lazyFloatView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.lazyFloatView];
    
    self.failClockView = [[UIView alloc] init];
    self.failClockView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.failClockView.layer.cornerRadius = 20;
    self.failClockView.layer.masksToBounds = YES;
    self.failClockView.alpha = 0.0;
    
    self.tenInsideLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.tenInsideLabel.text = MusicLowPen.mailCanSkinMid.basqueMagicSortingReverseUpdateMay;
    self.tenInsideLabel.numberOfLines = 0;
    self.tenInsideLabel.textColor = [UIColor whiteColor];
    self.tenInsideLabel.textAlignment = NSTextAlignmentCenter;
    self.tenInsideLabel.font = [UIFont systemFontOfSize:14];
    [self.failClockView addSubview:self.tenInsideLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(dateModeSayOld:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *our = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(popClipEarSlow)];
    [self addGestureRecognizer:our];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(canTaggingUplinkSpeakRecipientCleanup)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setHaveMapCatJson:(NSDictionary *)haveMapCatJson {
    _haveMapCatJson = haveMapCatJson;
    if (haveMapCatJson && self.wetLowRareWindow != nil) {
        NSString *action = haveMapCatJson[MusicLowPen.artBehaveMay.manPriceTooSay];
        if ([action isEqualToString:MusicLowPen.artBehaveMay.iterateFront]) {
            self.runLowSolveView.hidden = NO;
        }else if ([action isEqualToString:MusicLowPen.artBehaveMay.getAuditDays]) {
            self.runLowSolveView.hidden = YES;
        }else if ([action isEqualToString:MusicLowPen.artBehaveMay.draftUsesBasicFunkCompile]) {
            self.runLowSolveView.hidden = NO;
        }
    }
}


+ (void)sawAssume {
    [self.shared preservesPeriodFairTeamMuteDesiredImage:[UIImage siteFastAnchorSigningWeekendName:MusicLowPen.artBehaveMay.clockIndicatorHowRequiringClang] phaseEar:MusicLowPen.cupClustersHisTerminateLoops leadImage:nil];
}

+ (void)teamInsetBeenImage:(UIImage *)image {
    [[self shared] preservesPeriodFairTeamMuteDesiredImage:image leadImage:nil];
}

+ (void)dragHashRunImage:(UIImage *)normalImage leadImage:(nullable UIImage *)leadImage {
    GroupHexView *instance = [self shared];
    instance.slowWaxSongImage = normalImage;
    instance.letterFemaleHueDustKeep = nil;
    instance.compositeImage = leadImage;
    instance.lazyFloatView.image = normalImage;
}

+ (void)floorDrum {
    [[self shared] suffixPaceJobFrenchOrder];
}

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


- (void)preservesPeriodFairTeamMuteDesiredImage:(UIImage *)image leadImage:(nullable UIImage *)leadImage {
    [self preservesPeriodFairTeamMuteDesiredImage:image phaseEar:nil leadImage:leadImage];
}

- (void)preservesPeriodFairTeamMuteDesiredImage:(UIImage *)image phaseEar:(NSString *)phaseEar leadImage:(nullable UIImage *)leadImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.slowWaxSongImage = image;
        self.letterFemaleHueDustKeep = phaseEar;
        self.compositeImage = leadImage;
        
        if (!self.wetLowRareWindow) {
            [self finishedQuantityStrictHowExistWindow];
            [self destroyBusHandledExtensionRotation];
            [self assistantSubscriptMovementEllipsisVoiceNative];
            [self sigmoidPhoneticDuplexRingLeakyHit]; 
        }
        
        [self.wetLowRareWindow makeKeyAndVisible];
        [self.artWireTeethWindow makeKeyWindow];
        
        [self locallyVarianceOrganizePrettyFusionMonitoredAnimation:YES];
        [self fatBloodIcyTheCancelingTimer];
    });
}

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


- (void)finishedQuantityStrictHowExistWindow {
    
    self.artWireTeethWindow = [self liveKitInlandPickBannerWindow];
    
    
    OldSawTrashPenWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[OldSawTrashPenWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[OldSawTrashPenWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[BikeScaleApplyViewController alloc] init];
    window.hidden = NO;
    self.wetLowRareWindow = window;
    
    
    [self.wetLowRareWindow resignKeyWindow];
    [self.artWireTeethWindow makeKeyWindow];
    
    
    [self addSubview:self.runLowSolveView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.letterFemaleHueDustKeep) {
        [self.lazyFloatView sd_setImageWithURL:[NSURL URLWithString:self.letterFemaleHueDustKeep] placeholderImage
                                              :[UIImage siteFastAnchorSigningWeekendName:MusicLowPen.artBehaveMay.clockIndicatorHowRequiringClang]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.lazyFloatView.image = self.slowWaxSongImage;
    }
    self.lazyFloatView.frame = self.bounds;
    
    [self.wetLowRareWindow addSubview:self];
    [self.wetLowRareWindow addSubview:self.failClockView];
}


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

          (redSurgeDays.size.width - mouse/2),
          redSurgeDays.size.height - mouse/2,
          mouse,
          mouse
        );
        self.failClockView.layer.masksToBounds = YES;
        self.failClockView.layer.cornerRadius = mouse/2;
        self.tenInsideLabel.center = CGPointMake(mouse/3, mouse/4);
    }
}


- (void)popClipEarSlow {
    if (self.haveMapCatJson) {
        !self.leapEdgaHandler ?: self.leapEdgaHandler(self.haveMapCatJson[MusicLowPen.artBehaveMay.anyAloneBig]);
        if ([self.haveMapCatJson[MusicLowPen.artBehaveMay.manPriceTooSay] isEqualToString:MusicLowPen.artBehaveMay.draftUsesBasicFunkCompile]) {
            self.runLowSolveView.hidden = YES;
            _haveMapCatJson = nil;
        }
    }else {
        !self.leapEdgaHandler ?: self.leapEdgaHandler(nil);
    }
}

- (void)dateModeSayOld:(UIPanGestureRecognizer *)gesture {
    if (canCharacterIndigoParsecsOrganize) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            menPashtoDecigramsEjectJumpIntro = self.center;
            _lazyFloatView.alpha = 1;
            [self serializeEachExtendsSkinContains];
            fadeCapableAccurateOwnershipQueryRoute = NO; 
            iconAscentHerDiscoveryAfter = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.failClockView.layer removeAllAnimations];
            
            
            self.failClockView.alpha = 0.0;
            self.failClockView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self burstTerminateDrivenActionsLemmaPackFocalCenter:
                           CGPointMake(menPashtoDecigramsEjectJumpIntro.x + translation.x,
                                       menPashtoDecigramsEjectJumpIntro.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL GoldenNonce = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect shotFrame = self.failClockView.frame;
            CGRect reporting = CGRectInset(shotFrame, -280, GoldenNonce?-100:-280); 
            BOOL atomicDogBin = CGRectContainsPoint(reporting, self.center);
            
            
            
            
            if (atomicDogBin != iconAscentHerDiscoveryAfter) {
                iconAscentHerDiscoveryAfter = atomicDogBin;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.failClockView.alpha = atomicDogBin ? 1.0 : 0.0;
                    self.failClockView.transform = atomicDogBin ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            atomicDogBin = CGRectContainsPoint(CGRectInset(shotFrame, 0, 0), self.center);
            if (atomicDogBin && !fadeCapableAccurateOwnershipQueryRoute) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                fadeCapableAccurateOwnershipQueryRoute = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.failClockView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!atomicDogBin) {
                if (fadeCapableAccurateOwnershipQueryRoute) {
                    self.failClockView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                fadeCapableAccurateOwnershipQueryRoute = NO;
            }
            
            
            reporting = CGRectInset(shotFrame, 0, 0);
            _realSubHueStaySpeech = CGRectContainsPoint(reporting, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.failClockView.alpha = 0.0;
                self.failClockView.transform = CGAffineTransformIdentity;
            }];
            
            if (_realSubHueStaySpeech) {
                [DryAlertView tightRelayPromptFixingSetupTruncated:nil message:MusicLowPen.mailCanSkinMid.yetAlwaysCaffeineBeenTooPredicate boxFlatLossy:@[MusicLowPen.mailCanSkinMid.tooTenTwist, MusicLowPen.mailCanSkinMid.dryTail] completion:^(NSInteger retainIndex) {
                    if (retainIndex ==1) {
                        [self suffixPaceJobFrenchOrder];
                    }else {
                        [self locallyVarianceOrganizePrettyFusionMonitoredAnimation:YES];
                        [self fatBloodIcyTheCancelingTimer];
                    }
                }];
            } else {
                [self locallyVarianceOrganizePrettyFusionMonitoredAnimation:YES];
                [self fatBloodIcyTheCancelingTimer];
            }
            fadeCapableAccurateOwnershipQueryRoute = NO;
            iconAscentHerDiscoveryAfter = NO;
            break;
        }

        default: break;
    }
}


- (void)locallyVarianceOrganizePrettyFusionMonitoredAnimation:(BOOL)animate {
    if (!_dirtyBehaviorsBreakingUrgencyAbsoluteStation) return;
    
    
    if (canCharacterIndigoParsecsOrganize && animate) return;
    
    CGRect pickFrame = [self highSilenceInheritedLaotianDismissalFrame];
    CGPoint center = self.center;
    
    CGFloat dust = pickFrame.origin.x;
    CGFloat plug = pickFrame.origin.x + pickFrame.size.width;
    CGFloat clip = pickFrame.origin.y;
    CGFloat sock = pickFrame.origin.y + pickFrame.size.height;
    
    
    SharePresentEdge theKeyEdge = ControlFourteenDesiredGlyphConsumesReload;
    CGFloat teluguWrist = CGFLOAT_MAX;
    
    
    CGFloat cutter = center.x - dust;
    CGFloat defines = plug - center.x;
    CGFloat wrist = center.y - clip;
    CGFloat mixerBed = sock - center.y;
    
    NSArray *runOrange = @[@(cutter), @(defines), @(wrist), @(mixerBed)];
    NSArray *edges = @[@(RowSelectingInfoChannelLastUploading), @(DetachYiddishGoalConvertEphemeralOverride),
                       @(MemberAliveDiscardedSmartAdaptor), @(CopperFixEquallyFavoritesHighestLow)];
    
    for (NSInteger i = 0; i < runOrange.count; i++) {
        CGFloat distance = [runOrange[i] floatValue];
        if (distance < teluguWrist) {
            teluguWrist = distance;
            theKeyEdge = [edges[i] integerValue];
        }
    }
    
    
    if (theKeyEdge == self.funNegotiateEdge) {
        CGPoint poloWetCenter = self.center;
        CGPoint oddOwnCenter = [self pauseSeeAdapterMolarItsSurrogateEdge:theKeyEdge];
        CGFloat distance = hypot(poloWetCenter.x - oddOwnCenter.x, poloWetCenter.y - oddOwnCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.funNegotiateEdge = theKeyEdge;
    
    
    CGPoint oddOwnCenter = [self pauseSeeAdapterMolarItsSurrogateEdge:theKeyEdge];
    CGPoint vowelCenter = [self sheSwitchCutWonKilogramsRowsGuideEdge:theKeyEdge];
    
    
    canCharacterIndigoParsecsOrganize = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->canCharacterIndigoParsecsOrganize = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = oddOwnCenter;
        self.runLowSolveView.center = vowelCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)pauseSeeAdapterMolarItsSurrogateEdge:(SharePresentEdge)edge {
    CGRect pickFrame = [self highSilenceInheritedLaotianDismissalFrame];
    CGPoint center = self.center;
    
    CGFloat dust = pickFrame.origin.x;
    CGFloat plug = pickFrame.origin.x + pickFrame.size.width;
    CGFloat clip = pickFrame.origin.y;
    CGFloat sock = pickFrame.origin.y + pickFrame.size.height;
    
    CGPoint oddOwnCenter = center;
    
    switch (edge) {
        case RowSelectingInfoChannelLastUploading:
            oddOwnCenter.x = dust + self.bounds.size.width/2 + _fatIndexAgeRun;
            break;
        case DetachYiddishGoalConvertEphemeralOverride:
            oddOwnCenter.x = plug - self.bounds.size.width/2 - _fatIndexAgeRun;
            break;
        case MemberAliveDiscardedSmartAdaptor:
            oddOwnCenter.y = clip + self.bounds.size.height/2 + _fatIndexAgeRun;
            break;
        case CopperFixEquallyFavoritesHighestLow:
            oddOwnCenter.y = sock - self.bounds.size.height/2 - _fatIndexAgeRun;
            break;
        default:
            break;
    }
    
    
    return [self burstTerminateDrivenActionsLemmaPackFocalCenter:oddOwnCenter];
}


- (CGPoint)sheSwitchCutWonKilogramsRowsGuideEdge:(SharePresentEdge)edge {
    CGPoint vowelCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case RowSelectingInfoChannelLastUploading:
            vowelCenter.x = self.bounds.size.width;
            break;
        case DetachYiddishGoalConvertEphemeralOverride:
            
            break;
        case MemberAliveDiscardedSmartAdaptor:
            vowelCenter.x = self.bounds.size.width;
            vowelCenter.y = self.bounds.size.height;
            break;
        case CopperFixEquallyFavoritesHighestLow:
            vowelCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return vowelCenter;
}


- (void)fatBloodIcyTheCancelingTimer {
    if (_panIndexedContrastAttributeTransmit <= 0) return;
    
    [self serializeEachExtendsSkinContains];
    _caretCivilAreTimer = [NSTimer scheduledTimerWithTimeInterval:_panIndexedContrastAttributeTransmit
                                                     target:self
                                                   selector:@selector(alignedArmFairPetiteMalayalam)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)serializeEachExtendsSkinContains {
    [_caretCivilAreTimer invalidate];
    _caretCivilAreTimer = nil;
}

- (void)alignedArmFairPetiteMalayalam {
    [UIView animateWithDuration:0.3 animations:^{
        self.lazyFloatView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.funNegotiateEdge) {
            case RowSelectingInfoChannelLastUploading:
                frame.origin.x -= self.fatIndexAgeRun;
                break;
            case DetachYiddishGoalConvertEphemeralOverride:
                frame.origin.x += self.fatIndexAgeRun;
                break;
            case MemberAliveDiscardedSmartAdaptor:
                frame.origin.y -= self.fatIndexAgeRun;
                break;
            case CopperFixEquallyFavoritesHighestLow:
                frame.origin.y += self.fatIndexAgeRun;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)canTaggingUplinkSpeakRecipientCleanup {
    [self destroyBusHandledExtensionRotation];
    [self sigmoidPhoneticDuplexRingLeakyHit]; 
    [self locallyVarianceOrganizePrettyFusionMonitoredAnimation:YES];
}


- (void)destroyBusHandledExtensionRotation {
    UIWindow *keyWindow = BigCustomManager.shared.performerRedWindow; //self.artWireTeethWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice sunBevel]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice subHow]) {
        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.lexicalMomentInheritedHelpersControls = safeArea;
    self.anchoredSpeakRenewalRemainingSocialDegrees = keyWindow.bounds;
}

- (CGRect)highSilenceInheritedLaotianDismissalFrame {
    
    return CGRectMake(
        self.anchoredSpeakRenewalRemainingSocialDegrees.origin.x + self.lexicalMomentInheritedHelpersControls.left,
        self.anchoredSpeakRenewalRemainingSocialDegrees.origin.y + self.lexicalMomentInheritedHelpersControls.top,
        self.anchoredSpeakRenewalRemainingSocialDegrees.size.width - (self.lexicalMomentInheritedHelpersControls.left + self.lexicalMomentInheritedHelpersControls.right),
        self.anchoredSpeakRenewalRemainingSocialDegrees.size.height - (self.lexicalMomentInheritedHelpersControls.top + self.lexicalMomentInheritedHelpersControls.bottom)
    );
}


- (void)assistantSubscriptMovementEllipsisVoiceNative {
    NSString *offToggleEar = [[NSUserDefaults standardUserDefaults] valueForKey:MusicLowPen.artBehaveMay.revisionsAxesSelfMandatoryVowelUndone];
    if (offToggleEar) {
        self.center = CGPointFromString(offToggleEar);
    }else {
        
        CGRect pickFrame = [self highSilenceInheritedLaotianDismissalFrame];
        self.center = CGPointMake(pickFrame.origin.x + pickFrame.size.width - self.bounds.size.width/2 - _fatIndexAgeRun,
                                  pickFrame.origin.y + pickFrame.size.height/2);
    }
}


- (UIWindow *)liveKitInlandPickBannerWindow {
    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)burstTerminateDrivenActionsLemmaPackFocalCenter:(CGPoint)proposedCenter {
    CGRect pickFrame = [self highSilenceInheritedLaotianDismissalFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat dust = pickFrame.origin.x + buttonSize.width/2;
    CGFloat plug = pickFrame.origin.x + pickFrame.size.width - buttonSize.width/2;
    CGFloat clip = pickFrame.origin.y + buttonSize.height/2;
    CGFloat sock = pickFrame.origin.y + pickFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(dust, MIN(proposedCenter.x, plug)),
        MAX(clip, MIN(proposedCenter.y, sock))
    );
}

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

@end
