








#import <AppLovinSDK/AppLovinSDK.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>

@interface ChildrenAffiliateExposeDictationWatchProgram : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *goalDismissTeamDanceZone;
@property (nonatomic, assign) NSInteger exerciseDeveloperEjectNowLocalizes;

@property (nonatomic, copy) NSString *twentyChunkData;

@property (nonatomic, copy) void (^instantIodine)(BOOL result);

@property (nonatomic, copy) void (^discountsFaxAndReservedRecentJson)(BOOL result, NSDictionary *sonJson);

@end

@implementation ChildrenAffiliateExposeDictationWatchProgram

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t hourToken;
    dispatch_once(&hourToken, ^{
        shared = [[super allocWithZone:NULL] init];
    });
    return shared;
}

+ (NSString *)rowDecompose {
    return ALSdk.version;
}

- (void)showMediationDebugger {
    [[ALSdk shared] showMediationDebugger];
}


- (void)resizePackageEligibleVolumesItsSuggestedKey:(NSString *)xxpk_maxkey anchoredCapAmharicAlternateRemoves:(NSString *)anchoredCapAmharicAlternateRemoves rawVerboseItalicsInterestChange:(NSArray *)rawVerboseItalicsInterestChange {
    
    
    
    Class opt = NSClassFromString(@"FBAdSettings");
    if (opt) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [opt performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [opt performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *exactPopBoundVitalityOptional = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (rawVerboseItalicsInterestChange) {
            builder.testDeviceAdvertisingIdentifiers = rawVerboseItalicsInterestChange;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:exactPopBoundVitalityOptional completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self aliveMouseStepperMercuryAlignTimeLarge:anchoredCapAmharicAlternateRemoves];
    }];
}

- (void)aliveMouseStepperMercuryAlignTimeLarge:(NSString *)anchoredCapAmharicAlternateRemoves
{
    self.goalDismissTeamDanceZone = [MARewardedAd sharedWithAdUnitIdentifier:anchoredCapAmharicAlternateRemoves];
    self.goalDismissTeamDanceZone.delegate = self;

    
    [self.goalDismissTeamDanceZone loadAd];
}


- (void)letterBehaveDiscountTitleOriginTryData:(nullable NSString *)twentyChunkData spaPutDaysJson:(void(^)(BOOL result, NSDictionary *sonJson))spaPutDaysJson {
    self.discountsFaxAndReservedRecentJson = spaPutDaysJson;
    self.twentyChunkData = twentyChunkData;
    if ( [self.goalDismissTeamDanceZone isReady]) {
        [self.goalDismissTeamDanceZone showAdForPlacement:nil customData:twentyChunkData];
    }else {
        spaPutDaysJson(NO,nil);
    }
}

- (void)letterBehaveDiscountTitleOriginTryData:(nullable NSString *)twentyChunkData diskDash:(void(^)(BOOL result))diskDash {
    self.instantIodine = diskDash;
    self.twentyChunkData = twentyChunkData;
    if ( [self.goalDismissTeamDanceZone isReady]) {
        [self.goalDismissTeamDanceZone showAdForPlacement:nil customData:twentyChunkData];
    }else {
        diskDash(NO);
    }
}

- (void)digitizedAcceptTorqueRadialSize:(const char *)name error:(NSString *)error {
    
}

- (NSDictionary *)textGrammarHerGatewaysBrowse:(MAAd *)ad {
    NSMutableDictionary *sonJson = [NSMutableDictionary dictionary];
    
    sonJson[@"currency"] = @"USD";
    sonJson[@"revenue"] = @(ad.revenue);
    
    if (ad.format.label.length > 0) {
        sonJson[@"format"] = ad.format.label;
    }
    
    return [sonJson copy];
}


- (void)didLoadAd:(nonnull MAAd *)ad {
    
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
    
    
    self.exerciseDeveloperEjectNowLocalizes = 0;
}

- (void)didFailToLoadAdForAdUnitIdentifier:(nonnull NSString *)adUnitIdentifier withError:(nonnull MAError *)error {
    
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:error.message];
    
    
    
    self.exerciseDeveloperEjectNowLocalizes++;
    NSInteger discards = pow(2, MIN(6, self.exerciseDeveloperEjectNowLocalizes));
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, discards * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        [self.goalDismissTeamDanceZone loadAd];
    });
}

- (void)didHideAd:(MAAd *)ad {
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
    
    
    [self.goalDismissTeamDanceZone loadAd];
}

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.goalDismissTeamDanceZone loadAd];
    
    if (self.instantIodine) {
        self.instantIodine(NO);
    }
    
    if (self.discountsFaxAndReservedRecentJson) {
        self.discountsFaxAndReservedRecentJson(NO, nil);
    }
}

- (void)didClickAd:(nonnull MAAd *)ad {
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
}

- (void)didDisplayAd:(nonnull MAAd *)ad {
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
}

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
    
    if (self.instantIodine) {
        self.instantIodine(YES);
    }
    
    if (self.discountsFaxAndReservedRecentJson) {
        NSDictionary *sonJson = [self textGrammarHerGatewaysBrowse:ad];
        self.discountsFaxAndReservedRecentJson(YES, sonJson);
    }
}


- (void)didCollapseAd:(nonnull MAAd *)ad {
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
}

- (void)didExpandAd:(nonnull MAAd *)ad {
    [self digitizedAcceptTorqueRadialSize: __PRETTY_FUNCTION__ error:nil];
}

@end
