








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

@interface CupAlgorithmFreeRadialVariableBody : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *neverDiscardElevationMarqueeSurface;
@property (nonatomic, assign) NSInteger bannerDesignHerSilencedJust;

@property (nonatomic, copy) NSString *layerWinBusData;

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

@property (nonatomic, copy) void (^mapBeatRefreshLatvianDailyJson)(BOOL result, NSDictionary *nowJson);

@end

@implementation CupAlgorithmFreeRadialVariableBody

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

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

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


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

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

- (void)hyphenApplierIndexingAudioBoldYesterdayIdentify:(NSString *)laterMouthMasterExecutingChild
{
    self.neverDiscardElevationMarqueeSurface = [MARewardedAd sharedWithAdUnitIdentifier:laterMouthMasterExecutingChild];
    self.neverDiscardElevationMarqueeSurface.delegate = self;

    
    [self.neverDiscardElevationMarqueeSurface loadAd];
}


- (void)luminanceDeepMomentSignalPreferPreventData:(nullable NSString *)layerWinBusData invertPlugJson:(void(^)(BOOL result, NSDictionary *nowJson))invertPlugJson {
    self.mapBeatRefreshLatvianDailyJson = invertPlugJson;
    self.layerWinBusData = layerWinBusData;
    if ( [self.neverDiscardElevationMarqueeSurface isReady]) {
        [self.neverDiscardElevationMarqueeSurface showAdForPlacement:nil customData:layerWinBusData];
    }else {
        invertPlugJson(NO,nil);
    }
}

- (void)luminanceDeepMomentSignalPreferPreventData:(nullable NSString *)layerWinBusData bagInset:(void(^)(BOOL result))bagInset {
    self.hexMixFlagMin = bagInset;
    self.layerWinBusData = layerWinBusData;
    if ( [self.neverDiscardElevationMarqueeSurface isReady]) {
        [self.neverDiscardElevationMarqueeSurface showAdForPlacement:nil customData:layerWinBusData];
    }else {
        bagInset(NO);
    }
}

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

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


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

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

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

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self featurePaperFeatSpatialCascade: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.neverDiscardElevationMarqueeSurface loadAd];
    
    if (self.hexMixFlagMin) {
        self.hexMixFlagMin(NO);
    }
    
    if (self.mapBeatRefreshLatvianDailyJson) {
        self.mapBeatRefreshLatvianDailyJson(NO, nil);
    }
}

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

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

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self featurePaperFeatSpatialCascade: __PRETTY_FUNCTION__ error:nil];
    
    if (self.hexMixFlagMin) {
        self.hexMixFlagMin(YES);
    }
    
    if (self.mapBeatRefreshLatvianDailyJson) {
        NSDictionary *nowJson = [self wrapRetryTaskPointWeekday:ad];
        self.mapBeatRefreshLatvianDailyJson(YES, nowJson);
    }
}


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

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

@end
