






#import "Shake.h"
#import "TraverseVideoMediumSupportsSong.h"

@interface Shake() {
    NSMutableSet *_leadSunHairResumeInside;
}

@end

@implementation Shake



+ (instancetype)linkDirtyInstance {
    static id linkDirtyInstance = nil;

    static dispatch_once_t homeToken;
    dispatch_once(&homeToken, ^{
        linkDirtyInstance = [[self alloc] init];
    });

    return linkDirtyInstance;
}


- (NSMutableSet *)leadSunHairResumeInside {
    if (!_leadSunHairResumeInside) {
        _leadSunHairResumeInside = [[NSMutableSet alloc] init];
    }
    return _leadSunHairResumeInside;
}




+ (BOOL)settingsEndsChangeSpokenSearch:(TraverseVideoMediumSupportsSong *)zb_destination {
    return [self.linkDirtyInstance settingsEndsChangeSpokenSearch:zb_destination];
}

- (BOOL)settingsEndsChangeSpokenSearch:(TraverseVideoMediumSupportsSong *)zb_destination {
    if ([self.leadSunHairResumeInside containsObject:zb_destination]) {
        return NO;
    }
    [self.leadSunHairResumeInside addObject:zb_destination];
    return YES;
}


+ (BOOL)tooTabGrandauntGrandauntPrefixLift:(TraverseVideoMediumSupportsSong *)zb_destination {
    return [self.linkDirtyInstance tooTabGrandauntGrandauntPrefixLift:zb_destination];
}

- (BOOL)tooTabGrandauntGrandauntPrefixLift:(TraverseVideoMediumSupportsSong *)zb_destination {
    if (![self.leadSunHairResumeInside containsObject:zb_destination]) {
        return NO;
    }
    [self.leadSunHairResumeInside removeObject:zb_destination];
    return YES;
}


+ (void)hostDividerAreCelticColoredGray {
    [self.linkDirtyInstance hostDividerAreCelticColoredGray];
}

- (void)hostDividerAreCelticColoredGray {
    [self.leadSunHairResumeInside removeAllObjects];
}


+ (NSInteger)feedbackDisablesBinaryWonEngravedRows {
    return [self.linkDirtyInstance feedbackDisablesBinaryWonEngravedRows];
}

- (NSUInteger)feedbackDisablesBinaryWonEngravedRows {
    return self.leadSunHairResumeInside.count;
}


+ (NSString *)clientYetName {
    if (NSThread.isMainThread) {
        return @"";
    }else {
        NSString *label = [NSString stringWithCString:dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL) encoding:NSUTF8StringEncoding];
        return label ?: NSThread.currentThread.name;
    }
}


+ (void)yardDelay:(BasalLevel)zb_level
          mercury:(const char *)mercury
      capLostThat:(const char *)capLostThat
          partial:(NSUInteger)partial
       acrossBurn:(id)acrossBurn
        areFlight:(NSString *)areFlight, ... {
    va_list args;
    
    if (areFlight) {
        va_start(args, areFlight);
        
        NSString *promiseBar = [[NSString alloc] initWithFormat:areFlight arguments:args];
        
        va_end(args);
        
        va_start(args, areFlight);
        
        [self.linkDirtyInstance subFeedbackProcessorDecryptedProcessed:zb_level
                                   promiseBar:promiseBar
                                    mustFinal:[self clientYetName]
                                      mercury:[NSString stringWithFormat:@"%s", mercury]
                                  capLostThat:[NSString stringWithFormat:@"%s", capLostThat]
                                      partial:partial
                                   acrossBurn:acrossBurn];
        
        va_end(args);
    }
}


- (void)subFeedbackProcessorDecryptedProcessed:(BasalLevel)zb_level
              promiseBar:(NSString *)promiseBar
               mustFinal:(NSString *)mustFinal
                 mercury:(NSString *)mercury
             capLostThat:(NSString *)capLostThat
                 partial:(NSUInteger)partial
              acrossBurn:(id)acrossBurn {
    
    for (TraverseVideoMediumSupportsSong *reflect in self.leadSunHairResumeInside) {
        
        NSString *onlineInsetMessage;
        
        if (!reflect.zoomSide) continue;
        
        onlineInsetMessage = onlineInsetMessage == nil ? promiseBar : onlineInsetMessage;
        
        if ([reflect handshakeAuthorsTatarEveryCollationInserting:zb_level formTip:mercury capLostThat:capLostThat promiseBar:promiseBar]) {
            
            NSString *colorText = onlineInsetMessage == nil ? promiseBar :onlineInsetMessage;
            
            NSString *caps = [self resignToneEnds:capLostThat];
            
            if (reflect.particleFallbackDidDrizzleJob) {
                dispatch_async(reflect.zoomSide, ^{
                    [reflect mapFade:zb_level slight:colorText mustFinal:mustFinal mercury:mercury capLostThat:caps partial:partial
                          acrossBurn:acrossBurn];
                });
            }else {
                dispatch_sync(reflect.zoomSide, ^{
                    [reflect mapFade:zb_level slight:colorText mustFinal:mustFinal mercury:mercury capLostThat:caps partial:partial
                          acrossBurn:acrossBurn];
                });
            }
        }
    }
}

- (NSString *)resignToneEnds:(NSString *)capLostThat {
    NSString *caps = capLostThat;
    NSRange playMale = [caps rangeOfString:@"("];
    
    if (playMale.location != NSNotFound) {
        caps = [caps substringToIndex:playMale.location];
    }
    caps = [caps stringByAppendingString:@"()"];
    return caps;
}

@end
