






#import "SafeWaxSort.h"
#import "NSString+Receiving.h"
#import "UIImageView+WebCache.h"
#import "RenameInfo.h"
#import "UIColor+NotColor.h"
#import "UIImage+BadImage.h"
#import "Masonry.h"

#import "MixBlobSonConfig.h"
#import "CutterManager.h"
#import "CloseOddIntersectWrappedGasp.h"


@interface XXGCapsuleButton : UIButton
@end

@implementation XXGCapsuleButton
- (void)layoutSubviews {
    [super layoutSubviews];
    self.layer.cornerRadius = CGRectGetHeight(self.bounds) / 2.0;
}
@end

static LinkLaunchHeap *_oldBothLogStop = nil;
static GallonWake *_sinLaunchCut = nil;

@implementation SafeWaxSort

+ (LinkLaunchHeap *)oldBothLogStop {
    if (!_oldBothLogStop) {
        _oldBothLogStop = [CloseOddIntersectWrappedGasp intersectManyCellphoneKelvinSaturatedLinger:[LinkLaunchHeap class]];
    }
    return _oldBothLogStop;
}

+ (GallonWake *)sinLaunchCut {
    if (!_sinLaunchCut) {
        _sinLaunchCut = [CloseOddIntersectWrappedGasp fadeExpiresHormoneCurveDrawingResolving:[GallonWake class]];
    }
    return _sinLaunchCut;
}

+ (NSString *)darkCancelledOpticalClockwiseDailyName {
    return [CutterManager safeParserEasyStereoSpeaker].fiberGetName;
}

+ (NSString *)forSheAnonymousToneSpellToken {
    return [CutterManager safeParserEasyStereoSpeaker].sheetRedToken;
}

+ (CGFloat)maxVeryLegacyMethodFisheye {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.playbackScatteredFinderRedefinedLeft.fingerBag?:self.sinLaunchCut.hexFloaterArt;
}

+ (NSString *)sunExposeCaretNarrativeTemporary {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.namePubLose.sortingSum;
}

+ (NSString *)posterKeyDueOwnerYardAttempter {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.playbackScatteredFinderRedefinedLeft.sizeVignetteAttempterShrinkKnow;
}

+ (CGFloat)caretDidLeadAdaptiveForbid {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.playbackScatteredFinderRedefinedLeft.extendsFivePagerHertzExpires;
}
+ (BOOL)extendsFivePagerHertzExpires {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.playbackScatteredFinderRedefinedLeft.extendsFivePagerHertzExpires;
}

+ (NSString *)providerPenEditorialNanogramsDownhill {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.flashMixSeek.clangForMaxEye;
}
+ (NSString *)maleGigabytesMostCursorsCause {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.flashMixSeek.snapCupTorch;
}

+ (BOOL)howSceneExactnessExemplarInstant {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.grammarNotFeedBirthdayUsedCircularYou;
}

+ (BOOL)managerSob {
    return MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.flashMixSeek.managerSob;
}

+ (BOOL)minimumIdiomHungarianBaseHoursCinematic {
    return [MixBlobSonConfig shared].minimumIdiomHungarianBaseHoursCinematic;
}

+ (NSArray *)regionsManVersionMoveFirst {
    NSArray *howAddLearnedCatIncluding = [CutterManager tatarSemanticLazyGopherThresholdBirth];
    NSMutableArray *slab = [NSMutableArray arrayWithCapacity:howAddLearnedCatIncluding.count];
    
    for (AskSnowPutSaw *odd in howAddLearnedCatIncluding) {
        NSString *image = self.sinLaunchCut.pluralDistantAdvisedBehaviorChinaPitch;
        switch (odd.underageType) {
            case DialogOperationElementMilesRegions:
                image = self.sinLaunchCut.partlyMinLineExtensionLetterDisorder;
                break;
            case SedentaryBookAccount:
            case QuietPortBeenRegister:
                image = self.sinLaunchCut.pluralDistantAdvisedBehaviorChinaPitch;
                break;
            case MajorGroupRespondsInsertingTwo:
                image = self.sinLaunchCut.tapPaperHertzInviteeOptimizeCorner;
                break;

case InsteadMalayalamGivenAccessoryTwoCarbon:
                image = self.sinLaunchCut.stoodShipmentDuplicateKirghizRequiringHow;
                break;
            case MismatchCentralsRemoteAndGreater:
                image = self.sinLaunchCut.tiedCentralsForeverMaximumSemaphore;
                break;
            default:
                image = self.sinLaunchCut.partlyMinLineExtensionLetterDisorder;
                break;
        }
        
        NSArray *say = @[odd.fiberGetName ?: @"",image,odd.undoneStrokedKoreanTexturedSurgeTime];
        [slab addObject:say];
    }
    
    
    NSArray *howWeekTen = [slab sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double egg = [a[2] doubleValue];
        double dog = [b[2] doubleValue];
        if (egg > dog) {
            return NSOrderedAscending; 
        } else if (egg < dog) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return howWeekTen;
}

+ (CGSize)oddMostPaddleMeanPaddleIgnoresSize {
    return CGSizeMake(self.sinLaunchCut.arteryAndWalkItalicInterlaceWidth, self.sinLaunchCut.youOutAlphabetExtractBirthLimited);
}

+ (UIColor *)twelveHueColor{
    return [UIColor impactJoinBlurCelticSignalingArrow:MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.invalidHeaderGuideCatalystRedirectsDownhill.twelveHueColor?:self.sinLaunchCut.twelveHueColor];
}

+ (UIColor *)teluguDidColor{
    return [UIColor impactJoinBlurCelticSignalingArrow:MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.invalidHeaderGuideCatalystRedirectsDownhill.teluguDidColor?:self.sinLaunchCut.teluguDidColor];
}

+ (UIColor *)yiddishOnlyColor {
    NSString *hex = MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.invalidHeaderGuideCatalystRedirectsDownhill.yiddishOnlyColor;
    return hex.passwordsThatSemanticFrontPlane ? [UIColor impactJoinBlurCelticSignalingArrow:hex] : UIColor.whiteColor;
}

+ (UIColor *)dominantPictureWaitQuickSmallColor{
    return [UIColor impactJoinBlurCelticSignalingArrow:MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.invalidHeaderGuideCatalystRedirectsDownhill.dominantPictureWaitQuickSmallColor?:self.sinLaunchCut.dominantPictureWaitQuickSmallColor];
}

+ (NSString *)feedHeaderKelvinProcessedNetImage{
    NSString *image = MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.invalidHeaderGuideCatalystRedirectsDownhill.feedHeaderKelvinProcessedNetImage;
    return image.passwordsThatSemanticFrontPlane ? image : nil;
}

+ (NSString *)sobMillAdjustingMonitoredItemImage{
    NSString *image = MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.invalidHeaderGuideCatalystRedirectsDownhill.sobMillAdjustingMonitoredItemImage;
    return image.passwordsThatSemanticFrontPlane ? image : nil;
}

+ (void)discountPagerGermanTwoGroupedAction {
    if (MixBlobSonConfig.shared.mixPickFillStatus != PerformerFaeroeseMagentaBadBoxSin) {
        MixBlobSonConfig.shared.mixPickFillStatus = CallArtsUpsideWalkingSundaneseFocused;
    }
}

+ (UIView *)badLooperView {
    if (MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.trainingDiscardedLeaveKirghizForRemote.passwordsThatSemanticFrontPlane) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.trainingDiscardedLeaveKirghizForRemote]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [RenameInfo elementsName];
        label.textColor = [self teluguDidColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

+ (UILabel *)allowAllOverwriteZeroWide:(NSString *)title {
    UILabel *label = [UILabel new];
    label.text = title;
    label.textColor = [self teluguDidColor];
    label.font = [UIFont systemFontOfSize:13];
    return label;
}

+ (UIButton *)affinityThreeResponderGaelicFooters:(NSString *)title {
    UIButton *button = [[UIButton alloc] init];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self teluguDidColor] forState:UIControlStateNormal];
    [button setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:13];
    return button;
}

+ (UIButton *)uniformBarrierWillGainSignalColor:(NSString *)title {

    XXGCapsuleButton *button = [XXGCapsuleButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self yiddishOnlyColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    
    button.layer.masksToBounds = YES;

    NSString *consumedDelay = [self sobMillAdjustingMonitoredItemImage];
    if (consumedDelay) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:consumedDelay]
                                                    options:0
                                                   progress:nil
                                                  completed:^(UIImage *image, NSData *data, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
            if (image) {
                dispatch_async(dispatch_get_main_queue(), ^{
                    [button setBackgroundImage:image forState:UIControlStateNormal];
                    [button setBackgroundImage:[UIImage focusingNiacinColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage focusingNiacinColor:[self teluguDidColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage focusingNiacinColor:[self teluguDidColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage focusingNiacinColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)carProfilesTodayFootersMoirePromise:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (BurnMidModel *odd in MixBlobSonConfig.shared.existentCancelsNegateCapturedPush.covariantBasalMonthNepaliHasFind) {
        UIView *button = [self assameseKinRetAboveGrowStep:odd.optMinTagsText
                                           siteReplyColor:[UIColor impactJoinBlurCelticSignalingArrow:odd.askWrappedColor]
                                                striation:[self unsavedLargerRankTrackingSwashes:odd]
                                           earEmptyPutFun:odd.guideRate
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)unsavedLargerRankTrackingSwashes:(BurnMidModel *)odd {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t pastToken;
    dispatch_once(&pastToken, ^{
        map = @{
            
            self.sinLaunchCut.mealExtras    : self.sinLaunchCut.partlyMinLineExtensionLetterDisorder,
            self.sinLaunchCut.denseMargin   : self.sinLaunchCut.tapPaperHertzInviteeOptimizeCorner,
            self.sinLaunchCut.immutableMask : self.sinLaunchCut.pluralDistantAdvisedBehaviorChinaPitch,

self.sinLaunchCut.illZone       : self.sinLaunchCut.tiedCentralsForeverMaximumSemaphore,
            self.sinLaunchCut.licenseEnergy : self.sinLaunchCut.stoodShipmentDuplicateKirghizRequiringHow,
            self.sinLaunchCut.bondAppear : self.sinLaunchCut.partlyMinLineExtensionLetterDisorder
        };
    });
    if (odd.sortingSum.shareParsing) {
        
        odd.sortingSum = map[odd.guideRate];
    }
    return odd.sortingSum;
}

+ (UIView *)assameseKinRetAboveGrowStep:(NSString *)title
                      siteReplyColor:(UIColor *)titleColor
                           striation:(NSString *)image
                      earEmptyPutFun:(NSString *)idf
                              target:(id)target
                              action:(SEL)action {
    
    UIView *view = [[UIView alloc] init];
    view.backgroundColor = UIColor.clearColor;
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.layer.masksToBounds = YES;
    button.accessibilityIdentifier = idf;
    
    if ([self quickBasqueTransferDecidePassively:image]) {
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:image] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                [button setImage:image2 forState:UIControlStateNormal];
            });
        }];

    }else {
        UIImage *minImage = [[UIImage rawTatarLiftNicknameParagraphName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self teluguDidColor];
        [button setImage:minImage forState:UIControlStateNormal];
    }
    
    button.contentEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 0);
    [[button imageView] setContentMode:UIViewContentModeScaleAspectFill];
    button.contentHorizontalAlignment= UIControlContentHorizontalAlignmentFill;
    button.contentVerticalAlignment = UIControlContentVerticalAlignmentFill;
    [button addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
    [view addSubview:button];
    
    UILabel *label = [SafeWaxSort allowAllOverwriteZeroWide:title];
    label.textColor = titleColor;
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:12];
    label.numberOfLines = 0;
    [view addSubview:label];
    
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(view);
        make.size.equalTo(view);
    }];
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(view.mas_bottom).offset(8);
        make.left.right.equalTo(view);
    }];
    
    return view;
}

+ (BOOL)quickBasqueTransferDecidePassively:(NSString *)url
{
    NSString *teeth =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",teeth];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)bondWrapInvokeSolutionsUndoneFlatnessCode {
    UITextField *textField = [self glyphMemoryField:self.oldBothLogStop.innerGestureAgeBikeCreditsRowsCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)planarCursorDeviceTelephotoArtInverse {
    UITextField *textField = [self glyphMemoryField:self.oldBothLogStop.initialAuditAlignedMiddleKeep isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)justSubsetGaspCommittedImpactAccount {
    return [self glyphMemoryField:self.oldBothLogStop.queryThousand isSecure:NO];
}

+ (UITextField *)evaluatedFractionsSupportsStalePortalPassword:(BOOL)isNew {
    UITextField *textField = [self glyphMemoryField:isNew?self.oldBothLogStop.hexPlayableDrawSequencerThumb:self.oldBothLogStop.eraKinHueDateKey isSecure:YES];
    [self behaviorsDialogTrackHormoneAndWritingPublic:textField subSize:CGSizeMake(SafeWaxSort.sinLaunchCut.policyStrict, SafeWaxSort.sinLaunchCut.policyStrict)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *chatImage = [UIImage rawTatarLiftNicknameParagraphName:self.sinLaunchCut.offIdiomBeaconsCameraBed];
    UIImage *reduceImage = [UIImage rawTatarLiftNicknameParagraphName:self.sinLaunchCut.languageSlideExistRenameAlbanian];
    rightButton.frame = CGRectMake(0, 0, SafeWaxSort.sinLaunchCut.policyStrict, SafeWaxSort.sinLaunchCut.policyStrict);
    [rightButton setImage:chatImage forState:UIControlStateNormal];
    [rightButton setImage:reduceImage forState:UIControlStateSelected];
    CGFloat labelPushSub = (SafeWaxSort.sinLaunchCut.policyStrict - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(labelPushSub, labelPushSub, labelPushSub, labelPushSub)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)glyphMemoryField:(NSString *)placeholder isSecure:(BOOL)isSecure {
    UITextField *textField = [UITextField new];
    textField.secureTextEntry = isSecure;
    textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    textField.autocorrectionType = UITextAutocorrectionTypeNo;
    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    textField.font = [UIFont systemFontOfSize:15];
    textField.layer.borderColor = [self teluguDidColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.sinLaunchCut.radixForMenu;
    
    textField.backgroundColor = [self feedHeaderKelvinProcessedNetImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self clearRelevancePickRoomInsideConstructBlur:textField subSize:CGSizeMake(10, SafeWaxSort.sinLaunchCut.policyStrict)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

+ (void)clearRelevancePickRoomInsideConstructBlur:(UITextField *)textField subSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *pivotOff = [[UIView alloc] initWithFrame:frame];
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = pivotOff;
}

+ (void)behaviorsDialogTrackHormoneAndWritingPublic:(UITextField *)textField subSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *artGoogle = [[UIView alloc] initWithFrame:frame];
    textField.rightViewMode = UITextFieldViewModeAlways;
    textField.rightView = artGoogle;
}
@end
