






#import "ReceivedFor.h"
#import "NSString+EntityArm.h"
#import "UIImageView+WebCache.h"
#import "KitEraInfo.h"
#import "UIColor+EndColor.h"
#import "UIImage+CatImage.h"
#import "Masonry.h"

#import "EarYearAllConfig.h"
#import "EyeFixManager.h"
#import "UnloadUnableWalkingHallBut.h"


@interface XXGCapsuleButton : UIButton
@end

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

static CutNapAlienCap *_strokeMoveStep = nil;
static FaxDayMole *_dogMagicChar = nil;

@implementation ReceivedFor

+ (CutNapAlienCap *)strokeMoveStep {
    if (!_strokeMoveStep) {
        _strokeMoveStep = [UnloadUnableWalkingHallBut decreaseGreekAscendedIntrinsicNodeHidden:[CutNapAlienCap class]];
    }
    return _strokeMoveStep;
}

+ (FaxDayMole *)dogMagicChar {
    if (!_dogMagicChar) {
        _dogMagicChar = [UnloadUnableWalkingHallBut focusWhileStrictSoftCornerSerbian:[FaxDayMole class]];
    }
    return _dogMagicChar;
}

+ (NSString *)spellCompactHomeHeartLinearName {
    return [EyeFixManager utilitiesOptQueuePreferredHand].diskLoseName;
}

+ (NSString *)literalTeluguInvitedSpaDisposeToken {
    return [EyeFixManager utilitiesOptQueuePreferredHand].compressToken;
}

+ (CGFloat)latitudeCancelsArbiterConflictsProtocols {
    return EarYearAllConfig.shared.changeEffortHitCapRun.sayBehaveQuantitySpineSelector.plugEarly?:self.dogMagicChar.onceAutomatic;
}

+ (NSString *)usedPetabytesWorkoutsSeekImplicit {
    return EarYearAllConfig.shared.changeEffortHitCapRun.stationPink.napHostAsk;
}

+ (NSString *)lappishEulerLandmarkExtensionCatRadio {
    return EarYearAllConfig.shared.changeEffortHitCapRun.sayBehaveQuantitySpineSelector.latitudeUnwindEscapesModernStarting;
}

+ (CGFloat)italicSexHormoneSideFemale {
    return EarYearAllConfig.shared.changeEffortHitCapRun.sayBehaveQuantitySpineSelector.settlingPublishItalicsSigningProvince;
}
+ (BOOL)settlingPublishItalicsSigningProvince {
    return EarYearAllConfig.shared.changeEffortHitCapRun.sayBehaveQuantitySpineSelector.settlingPublishItalicsSigningProvince;
}

+ (NSString *)disablingTraverseAxialFatalSubgroup {
    return EarYearAllConfig.shared.changeEffortHitCapRun.capExtrinsic.knowTheRingWay;
}
+ (NSString *)measureProvisionSerialFinderSaw {
    return EarYearAllConfig.shared.changeEffortHitCapRun.capExtrinsic.bedCaseTitle;
}

+ (BOOL)fitnessCompletedBlindingLexicalBar {
    return EarYearAllConfig.shared.changeEffortHitCapRun.ropeReachedLetterHandoffOutputsImmutableRefresh;
}

+ (BOOL)skipOurEgg {
    return EarYearAllConfig.shared.changeEffortHitCapRun.capExtrinsic.skipOurEgg;
}

+ (BOOL)chooseBadUnlockFilmStreamsResponds {
    return [EarYearAllConfig shared].chooseBadUnlockFilmStreamsResponds;
}

+ (NSArray *)specificOurLogoAnchorRestore {
    NSArray *megabitsMinutePrincipalTeacherGraceful = [EyeFixManager andCroppingExpandThirdBasicSettling];
    NSMutableArray *logo = [NSMutableArray arrayWithCapacity:megabitsMinutePrincipalTeacherGraceful.count];
    
    for (BleedEligible *fun in megabitsMinutePrincipalTeacherGraceful) {
        NSString *image = self.dogMagicChar.velocityPreparingMoleRunAsleepEmail;
        switch (fun.howLinerType) {
            case ButOutsideHandledSoftnessAbove:
                image = self.dogMagicChar.smallestIntentResignPlatformSayEasy;
                break;
            case CarBoxFunMakeAccount:
            case BusMinReportsRegister:
                image = self.dogMagicChar.velocityPreparingMoleRunAsleepEmail;
                break;
            case AscentAllergyPingDeleteInland:
                image = self.dogMagicChar.optCapMidClampingShapeMaterial;
                break;

case LiveLogoTargetGreenUniformCaret:
                image = self.dogMagicChar.smallEntropyRenewDryWaterInherited;
                break;
            case PublisherDomainBoxAngleDecibel:
                image = self.dogMagicChar.listenersEyeEpsilonDueFair;
                break;
            default:
                image = self.dogMagicChar.smallestIntentResignPlatformSayEasy;
                break;
        }
        
        NSArray *ill = @[fun.diskLoseName ?: @"",image,fun.decryptLongestReportingLawWarningTime];
        [logo addObject:ill];
    }
    
    
    NSArray *lineSecret = [logo sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double own = [a[2] doubleValue];
        double job = [b[2] doubleValue];
        if (own > job) {
            return NSOrderedAscending; 
        } else if (own < job) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return lineSecret;
}

+ (CGSize)hangReusableDayGestureProblemTapSize {
    return CGSizeMake(self.dogMagicChar.doneInsertionLegalKitAttachWidth, self.dogMagicChar.episodePointersSubfamilyLongestSkipUnsigned);
}

+ (UIColor *)preferPinColor{
    return [UIColor sourcesCutoffOverlapExtensionLeakyBuddy:EarYearAllConfig.shared.changeEffortHitCapRun.packetSafeYardOriginsFullSwahili.preferPinColor?:self.dogMagicChar.preferPinColor];
}

+ (UIColor *)cubicSentColor{
    return [UIColor sourcesCutoffOverlapExtensionLeakyBuddy:EarYearAllConfig.shared.changeEffortHitCapRun.packetSafeYardOriginsFullSwahili.cubicSentColor?:self.dogMagicChar.cubicSentColor];
}

+ (UIColor *)buddyMomentColor {
    NSString *hex = EarYearAllConfig.shared.changeEffortHitCapRun.packetSafeYardOriginsFullSwahili.buddyMomentColor;
    return hex.restoringStampOceanNordicModern ? [UIColor sourcesCutoffOverlapExtensionLeakyBuddy:hex] : UIColor.whiteColor;
}

+ (UIColor *)obsoleteSlantTimeCreatingExternColor{
    return [UIColor sourcesCutoffOverlapExtensionLeakyBuddy:EarYearAllConfig.shared.changeEffortHitCapRun.packetSafeYardOriginsFullSwahili.obsoleteSlantTimeCreatingExternColor?:self.dogMagicChar.obsoleteSlantTimeCreatingExternColor];
}

+ (NSString *)pongEldestCubicSlowIgnoringImage{
    NSString *image = EarYearAllConfig.shared.changeEffortHitCapRun.packetSafeYardOriginsFullSwahili.pongEldestCubicSlowIgnoringImage;
    return image.restoringStampOceanNordicModern ? image : nil;
}

+ (NSString *)minSeedSequenceLocalizedPackImage{
    NSString *image = EarYearAllConfig.shared.changeEffortHitCapRun.packetSafeYardOriginsFullSwahili.minSeedSequenceLocalizedPackImage;
    return image.restoringStampOceanNordicModern ? image : nil;
}

+ (void)uploadSeasonPrimaryMalayalamEstimatedAction {
    if (EarYearAllConfig.shared.wrappedLoopStatus != StationAxialPeerHighlightUighurOff) {
        EarYearAllConfig.shared.wrappedLoopStatus = EuropeanRestingRepairSettingPoolNow;
    }
}

+ (UIView *)clipAlongView {
    if (EarYearAllConfig.shared.changeEffortHitCapRun.sigmaDepthTelephotoFoggyExpiredAlien.restoringStampOceanNordicModern) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:EarYearAllConfig.shared.changeEffortHitCapRun.sigmaDepthTelephotoFoggyExpiredAlien]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [KitEraInfo materialName];
        label.textColor = [self cubicSentColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

    NSString *cursorExtents = [self minSeedSequenceLocalizedPackImage];
    if (cursorExtents) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:cursorExtents]
                                                    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 rareMaleYetFitColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage rareMaleYetFitColor:[self cubicSentColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage rareMaleYetFitColor:[self cubicSentColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage rareMaleYetFitColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)affectedVendorCenteringSettingBiotinStair:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (MoreFatModel *fun in EarYearAllConfig.shared.changeEffortHitCapRun.placePlanMildSatisfiedManTelephony) {
        UIView *button = [self thirdPowerReversedLettishSessionDue:fun.curveGreenText
                                           looperMapColor:[UIColor sourcesCutoffOverlapExtensionLeakyBuddy:fun.notBeaconsColor]
                                                notModule:[self noiseTexturedWasSpectralExist:fun]
                                           civilRoleAlone:fun.tradClear
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)noiseTexturedWasSpectralExist:(MoreFatModel *)fun {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t lockToken;
    dispatch_once(&lockToken, ^{
        map = @{
            
            self.dogMagicChar.audibleHow    : self.dogMagicChar.smallestIntentResignPlatformSayEasy,
            self.dogMagicChar.dynamicBack   : self.dogMagicChar.optCapMidClampingShapeMaterial,
            self.dogMagicChar.plugEarCupAnd : self.dogMagicChar.velocityPreparingMoleRunAsleepEmail,

self.dogMagicChar.bigLook       : self.dogMagicChar.listenersEyeEpsilonDueFair,
            self.dogMagicChar.leapWonRawBox : self.dogMagicChar.smallEntropyRenewDryWaterInherited,
            self.dogMagicChar.quarterFax : self.dogMagicChar.smallestIntentResignPlatformSayEasy
        };
    });
    if (fun.napHostAsk.pronounClaim) {
        
        fun.napHostAsk = map[fun.tradClear];
    }
    return fun.napHostAsk;
}

+ (UIView *)thirdPowerReversedLettishSessionDue:(NSString *)title
                      looperMapColor:(UIColor *)titleColor
                           notModule:(NSString *)image
                      civilRoleAlone:(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 minorAtomPaymentsExpansionPull: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 *logImage = [[UIImage huePromisePreservedIdleOddName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self cubicSentColor];
        [button setImage:logImage 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 = [ReceivedFor archiveBoundaryFeetCollapsedIdentical: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)minorAtomPaymentsExpansionPull:(NSString *)url
{
    NSString *bayer =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",bayer];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)unlimitedLabelMetadataAnchoringAmericanAmericanCode {
    UITextField *textField = [self headlineNowField:self.strokeMoveStep.urgencyGrowGurationNotPastChunkCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)indentPressesSectionsMegahertzMegabitsToken {
    UITextField *textField = [self headlineNowField:self.strokeMoveStep.reorderHerConstructVisitBreaking isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)sixInvertedTryTagFitAccount {
    return [self headlineNowField:self.strokeMoveStep.putStakeMonth isSecure:NO];
}

+ (UITextField *)lacrosseHundredPrimaryDecrementCupPassword:(BOOL)isNew {
    UITextField *textField = [self headlineNowField:isNew?self.strokeMoveStep.updatesJustifiedDetectionVirtualWriting:self.strokeMoveStep.subSlabBadLogKey isSecure:YES];
    [self brokenOnlyItsSpaLocalesAreYard:textField butSize:CGSizeMake(ReceivedFor.dogMagicChar.performerPop, ReceivedFor.dogMagicChar.performerPop)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *dropImage = [UIImage huePromisePreservedIdleOddName:self.dogMagicChar.nibblesEntriesBikeInferiorsTip];
    UIImage *nowSinImage = [UIImage huePromisePreservedIdleOddName:self.dogMagicChar.previewsSetupAssumeFrameFocused];
    rightButton.frame = CGRectMake(0, 0, ReceivedFor.dogMagicChar.performerPop, ReceivedFor.dogMagicChar.performerPop);
    [rightButton setImage:dropImage forState:UIControlStateNormal];
    [rightButton setImage:nowSinImage forState:UIControlStateSelected];
    CGFloat patchBookMay = (ReceivedFor.dogMagicChar.performerPop - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(patchBookMay, patchBookMay, patchBookMay, patchBookMay)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)headlineNowField:(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 cubicSentColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.dogMagicChar.modelInitial;
    
    textField.backgroundColor = [self pongEldestCubicSlowIgnoringImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self greaterUrgencyCurrentlyTrustZipBundleSolo:textField butSize:CGSizeMake(10, ReceivedFor.dogMagicChar.performerPop)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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