






#import "ActiveInfo.h"
#import "ArteryPlugConfig.h"
#import "GainFileCinematicPatternsNeutral.h"

@import AdSupport;
@import AppTrackingTransparency;
@import UIKit;

#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>
#import <SystemConfiguration/SystemConfiguration.h>

#import "sys/utsname.h" //utsname


#import <AdServices/AdServices.h>

@implementation ActiveInfo

+ (UIImage *)foundSeekingTwitterRaceCelsiusImage {
    NSDictionary *hexUptime = [[NSBundle mainBundle] infoDictionary];
    NSString *icon = [[hexUptime valueForKeyPath:@"CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles"] lastObject];
    return [UIImage imageNamed:icon];
}

+ (NSString *)kitEndSlopeOneIdentifier {
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
}

+ (NSString *)menuObserverTapSonCascade {
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}

+ (NSString *)boxTrustName {
    NSString *displayName = [[NSBundle mainBundle] localizedInfoDictionary][@"CFBundleDisplayName"];

    if (!displayName) {
        displayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
    }

    if (!displayName) {
        displayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleName"];
    }

    return displayName;
}

+ (NSString *)sexTopWhiteName {
    return [UIDevice currentDevice].name;
}

+ (NSString *)knowValidityLowerInventoryDelay {
    return [ASIdentifierManager sharedManager].advertisingIdentifier.UUIDString;
}

+ (NSString *)silentDeclineEntityNearestTibetan {
    return [UIDevice currentDevice].identifierForVendor.UUIDString;
}

+ (NSString *)fixHelpNoteModel {
    struct utsname systemInfo;
    uname(&systemInfo);
    NSString *eyeDueModel = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
    return eyeDueModel;
}

+ (NSString *)promiseCaretHailSamplesUnwind {
    return [UIDevice currentDevice].systemVersion;
}

+ (NSString *)leaseBypassThreeTwoCiphersPath {
    return NSHomeDirectory().lastPathComponent;
}

+ (BOOL)bottomDegreeWhiteMatchPack {
    CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];
    NSDictionary<NSString *, CTCarrier *> *anyNever = info.serviceSubscriberCellularProviders;
    if (anyNever.count == 0) {
        return NO;
    }
    NSDictionary<NSString *, NSString *> *logCousinLog = info.serviceCurrentRadioAccessTechnology; 
    for (NSString *tooNearby in anyNever.allKeys) {
        CTCarrier *carrier = anyNever[tooNearby];
        if (!carrier) { continue; }
        NSString *saw = carrier.mobileCountryCode ?: @"";
        NSString *dog = carrier.mobileNetworkCode ?: @"";
        NSInteger vision = saw.integerValue;
        NSInteger sobDid = dog.integerValue;
        BOOL microEar = (saw.length > 0) && (vision > 0);
        BOOL produced = (dog.length > 0) && (sobDid > 0);
        NSString *far = logCousinLog[tooNearby];
        BOOL oldOur = (far.length > 0);
        if (microEar && produced && oldOur) {
            return YES;
        }
    }
    return NO;
}

+ (NSString *)sunOrderMayToken {
    
    if (@available(iOS 14.3, *)) {
        NSError *error = nil;
        NSString *token = [AAAttribution attributionTokenWithError:&error];
        
        if (token) {
            
            
            return token;
        } else {
            
            return @"";
        }
    } else {
        
        return @"";
    }
}


+ (void)domainCallingEffectiveTomorrowReleasedEight:(void (^)(void))bordered {
    static dispatch_once_t sideToken;
    static BOOL longJobMonth = NO;

    
    if (longJobMonth) {
        CloudInfo(sourcesFont.longestCountKinTintPostSilenceIcon);
        return;
    }	

    dispatch_once(&sideToken, ^{
        longJobMonth = YES;
        CloudInfo(sourcesFont.sensitiveSingularIntentsExpectingShowingParameter);

        if (@available(iOS 14, *)) {
            ATTrackingManagerAuthorizationStatus status = [ATTrackingManager trackingAuthorizationStatus];

            NSString *blobNormal = [self towerBigSumBedStatus:status];

            CloudInfo(sourcesFont.geometrySwappedCascadeFixtureRowIndoor, blobNormal, (long)status);

            switch (status) {
                case ATTrackingManagerAuthorizationStatusAuthorized:
                    CloudInfo(sourcesFont.bundleHumanTouchTitleMakerDrumUnique);
                    longJobMonth = NO;
                    if (bordered) {
                        bordered();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusDenied:
                    CloudInfo(sourcesFont.preserveMinimalHighReceiverVariable);
                    longJobMonth = NO;
                    if (bordered) {
                        bordered();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusRestricted:
                    CloudInfo(sourcesFont.offsetPotentialNegateCommentClampedComments);
                    longJobMonth = NO;
                    if (bordered) {
                        bordered();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusNotDetermined:
                    CloudInfo(sourcesFont.cellDeletingArrayProductDarkenWho);
                    [self changingTooBleedFriendsIcyFisheyeYounger:^{
                        longJobMonth = NO;
                        if (bordered) {
                            bordered();
                        }
                    }];
                    break;
            }
        } else {
            CloudInfo(sourcesFont.emailFaceDecrementPortionWateryWeek);
            longJobMonth = NO;
            if (bordered) {
                bordered();
            }
        }
    });
}

+ (void)changingTooBleedFriendsIcyFisheyeYounger:(void (^)(void))completion {
    CloudInfo(sourcesFont.revealRemainingAgentHexMagicIntervals);

    
    static int subZeroScore = 6;

    __block id fairKeep = [[NSNotificationCenter defaultCenter]
        addObserverForName:UIApplicationDidBecomeActiveNotification
                    object:nil
                     queue:[NSOperationQueue mainQueue]
                usingBlock:^(NSNotification *notification) {

        CloudInfo(sourcesFont.eyeOxygenMoreDayThickOrigins, subZeroScore);

        
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(subZeroScore * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{


            UIApplicationState currentState = [UIApplication sharedApplication].applicationState;

            NSString *switchSob = [self chainLocalizesState:currentState];

            CloudInfo(sourcesFont.showersPeerOutputSawMetricsWeekend, switchSob);

            if (currentState == UIApplicationStateActive) {
                CloudInfo(sourcesFont.expectsSearchConvertedScreenQuickTapExact);
                [self mouthBinShowRequest:completion];
            } else {

                CloudInfo(sourcesFont.illStartingDesignNecessarySelectDatum, switchSob);
                CloudInfo(sourcesFont.secondKilogramsRenewedFitnessFaceNoise);
                fairKeep = [[NSNotificationCenter defaultCenter]
                    addObserverForName:UIApplicationDidBecomeActiveNotification
                                object:nil
                                 queue:[NSOperationQueue mainQueue]
                            usingBlock:^(NSNotification *notification) {
                    
                    CloudInfo(sourcesFont.pencilSurfaceInternalTurkmenMatchWidth);
                    [[NSNotificationCenter defaultCenter] removeObserver:fairKeep];
                    CloudInfo(sourcesFont.workflowTraitBreakingWonKirghizFarExtern);
                    [self mouthBinShowRequest:completion];
                }];
            }

        });

        CloudInfo(sourcesFont.datumBestRemovalScaleNewtonsThe);
        
        [[NSNotificationCenter defaultCenter] removeObserver:fairKeep];
    }];
}

+ (void)mouthBinShowRequest:(void (^)(void))completion {
    if (@available(iOS 14, *)) {
        CloudInfo(sourcesFont.interiorDynamicDirtyRegionsExpandingStretch);

        [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
            ATTrackingManagerAuthorizationStatus teamManStatus = [ATTrackingManager trackingAuthorizationStatus];

            NSString *cityAirGregorianFlexibleObserve = [self towerBigSumBedStatus:status];
            NSString *enhanceSaturateFrenchAnimationExist = [self towerBigSumBedStatus:teamManStatus];

            CloudInfo(sourcesFont.dependentLongestCapacityCanNoticeBig);
            CloudInfo(sourcesFont.extentFairPreferredTopAnimatePivot, cityAirGregorianFlexibleObserve, (long)status);
            CloudInfo(sourcesFont.futureIndexedVitalUpsideAddressIdentifyAccessory, enhanceSaturateFrenchAnimationExist, (long)teamManStatus);

            
            
            
            
            BOOL geometricDay = (teamManStatus == ATTrackingManagerAuthorizationStatusAuthorized) ||
                               (status == ATTrackingManagerAuthorizationStatusAuthorized);

            if (geometricDay) {
                CloudInfo(sourcesFont.awaySquaresBlobMetabolicAssignRejectionFarsi);
                if (completion) {
                    completion();
                }
            } else if (teamManStatus == ATTrackingManagerAuthorizationStatusNotDetermined) {
                CloudInfo(sourcesFont.routeOwnMayIrishCrossFrameAnimated);
                [self pingSetupTwistStartedExporterLearnedProvided:completion recursiveUnion:0];
            } else {
                CloudInfo(sourcesFont.connectFeaturesHailNepaliArmenianEldestStepson);
                if (completion) {
                    completion();
                }
            }
        }];
    }
}


+ (NSString *)towerBigSumBedStatus:(ATTrackingManagerAuthorizationStatus)status  API_AVAILABLE(ios(14)){
    if (@available(iOS 14, *)) {
        switch (status) {
            case ATTrackingManagerAuthorizationStatusNotDetermined:
                return sourcesFont.limitTaggerCutterIrishStickyCalciumLimit;
            case ATTrackingManagerAuthorizationStatusRestricted:
                return sourcesFont.quechuaChooseDecideHostingCounterRaw;
            case ATTrackingManagerAuthorizationStatusDenied:
                return sourcesFont.midAxesDiacriticSplitFatFloat;
            case ATTrackingManagerAuthorizationStatusAuthorized:
                return sourcesFont.deprecateSonSeekEphemeralDigestAssistant;
            default:
                return [NSString stringWithFormat:sourcesFont.batteryIndicatorSumDayUnsafeRectified, (long)status];
        }
    }
    return sourcesFont.tabJumpTheModifyRetryKilovoltsIntents;
}

+ (NSString *)chainLocalizesState:(UIApplicationState)state {
    switch (state) {
        case UIApplicationStateActive:
            return sourcesFont.cathedralRankScrollAffectingRawMap;
        case UIApplicationStateInactive:
            return sourcesFont.sheNorthOverlayEthernetStillReceiving;
        case UIApplicationStateBackground:
            return sourcesFont.unsignedPhaseTriggerObsoleteRequestedExporter;
        default:
            return [NSString stringWithFormat:sourcesFont.ourUnfocusedMakerMirroringStretchVisitor, (long)state];
    }
}


+ (void)pingSetupTwistStartedExporterLearnedProvided:(void (^)(void))bordered recursiveUnion:(NSInteger)recursiveUnion {
    NSInteger sheetCount = 10;

    if (@available(iOS 14, *)) {
        ATTrackingManagerAuthorizationStatus teamManStatus = [ATTrackingManager trackingAuthorizationStatus];

        NSString *blobNormal = [self towerBigSumBedStatus:teamManStatus];

        CloudInfo(sourcesFont.coastPlusOverlapSplitMegabitsExpires,
              (long)(recursiveUnion + 1), (long)sheetCount, blobNormal);

        
        if (teamManStatus == ATTrackingManagerAuthorizationStatusNotDetermined && recursiveUnion < sheetCount) {
            CloudInfo(sourcesFont.nauticalPackIndexesEmptyCallbackSexual, (long)(recursiveUnion + 2));

            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0f * NSEC_PER_SEC)),
                          dispatch_get_main_queue(), ^{
                [self pingSetupTwistStartedExporterLearnedProvided:bordered recursiveUnion:recursiveUnion + 1];
            });
            return;
        } else {
            
            
            if (recursiveUnion >= sheetCount) {
                CloudInfo(sourcesFont.closeExporterSubTransportReportDog, (long)sheetCount);
                CloudInfo(sourcesFont.inviteKinStorageOrdinalsFinishDecipher, blobNormal);
            } else {
                CloudInfo(sourcesFont.eraPredictedBackupMostDiacriticBuddhist, blobNormal);

                if (teamManStatus == ATTrackingManagerAuthorizationStatusAuthorized) {
                    CloudInfo(sourcesFont.eighteenOrnamentImproperEditorialBitLyricist);
                } else if (teamManStatus == ATTrackingManagerAuthorizationStatusDenied) {
                    CloudInfo(sourcesFont.browseDogJouleJustClockwiseTatar);
                } else if (teamManStatus == ATTrackingManagerAuthorizationStatusRestricted) {
                    CloudInfo(sourcesFont.defaultsZipOneVowelDisappearAssistant);
                }
            }

            CloudInfo(sourcesFont.deriveFatSemanticsRecognizeWateryAssistive);
            if (bordered) {
                bordered();
            }
        }
    } else {
        CloudInfo(sourcesFont.degradedPintAuditRetainClockwiseEdgaStylize);
        if (bordered) {
            bordered();
        }
    }
}
@end
