








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

@interface AnimatorSpouseOptCyclingTrainingArmpit : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate,MAAdDelegate,MAAdRevenueDelegate>

@property (nonatomic, strong) MARewardedAd *sevenRevertingAbsentLossyProject;
@property (nonatomic, strong) MAInterstitialAd *chlorideLargestSeparateAssertionPort;
@property (nonatomic, assign) NSInteger mutePercentShowKnowBezel;

@property (nonatomic, copy) NSString *loopsPinArmData;

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

@property (nonatomic, copy) void (^standardDisorderGoogleViolationAgentJson)(BOOL result, NSDictionary *spaJson);

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

@property (nonatomic, copy) void (^dayResponsesCubicDetectionStayFooterJson)(BOOL result, NSDictionary *spaJson);

@property (nonatomic, copy) void (^kinCheckerKindNoiseFlightsRunning)(NSDictionary *tapInfo);

@end

@implementation AnimatorSpouseOptCyclingTrainingArmpit

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

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

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

- (void)onceUpperStrongestInstallLimitArm:(void(^)(NSDictionary *tapInfo))callback {
    self.kinCheckerKindNoiseFlightsRunning = callback;
}


- (void)undoneHertzSideLongitudeAdvisorySeekKey:(NSString *)xxpk_maxkey beaconLicenseBasicSnowSeparator:(NSString *)beaconLicenseBasicSnowSeparator spaColorRollFeatSecurelyTab:(NSString *)spaColorRollFeatSecurelyTab acrossAvailableTextureRequestedLocal:(NSArray *)acrossAvailableTextureRequestedLocal {
    
    
    
    Class bag = NSClassFromString(@"FBAdSettings");
    if (bag) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [bag performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [bag performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *hisFirstVibrancyGroupMedium = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (acrossAvailableTextureRequestedLocal) {
            builder.testDeviceAdvertisingIdentifiers = acrossAvailableTextureRequestedLocal;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:hisFirstVibrancyGroupMedium completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self encipherRegularCursiveIndexingProxyBarriersItem:beaconLicenseBasicSnowSeparator];
        if (spaColorRollFeatSecurelyTab.length > 0) {
            [self relationRowPivotLeaseBankRequiringPanelSuffix:spaColorRollFeatSecurelyTab];
        }
    }];
}

- (void)encipherRegularCursiveIndexingProxyBarriersItem:(NSString *)beaconLicenseBasicSnowSeparator
{
    self.sevenRevertingAbsentLossyProject = [MARewardedAd sharedWithAdUnitIdentifier:beaconLicenseBasicSnowSeparator];
    self.sevenRevertingAbsentLossyProject.delegate = self;
    self.sevenRevertingAbsentLossyProject.revenueDelegate = self;

    
    [self.sevenRevertingAbsentLossyProject loadAd];
}

- (void)relationRowPivotLeaseBankRequiringPanelSuffix:(NSString *)spaColorRollFeatSecurelyTab
{
    self.chlorideLargestSeparateAssertionPort = [[MAInterstitialAd alloc] initWithAdUnitIdentifier:spaColorRollFeatSecurelyTab];
    self.chlorideLargestSeparateAssertionPort.delegate = self;
    self.chlorideLargestSeparateAssertionPort.revenueDelegate = self;

    
    [self.chlorideLargestSeparateAssertionPort loadAd];
}


- (void)yesterdayDefineRealKeyboardManTooData:(nullable NSString *)loopsPinArmData islamicHexJson:(void(^)(BOOL result, NSDictionary *spaJson))islamicHexJson {
    self.standardDisorderGoogleViolationAgentJson = islamicHexJson;
    self.loopsPinArmData = loopsPinArmData;
    if ( [self.sevenRevertingAbsentLossyProject isReady]) {
        [self.sevenRevertingAbsentLossyProject showAdForPlacement:nil customData:loopsPinArmData];
    }else {
        islamicHexJson(NO,nil);
    }
}

- (void)yesterdayDefineRealKeyboardManTooData:(nullable NSString *)loopsPinArmData sobExact:(void(^)(BOOL result))sobExact {
    self.factPlayLiter = sobExact;
    self.loopsPinArmData = loopsPinArmData;
    if ( [self.sevenRevertingAbsentLossyProject isReady]) {
        [self.sevenRevertingAbsentLossyProject showAdForPlacement:nil customData:loopsPinArmData];
    }else {
        sobExact(NO);
    }
}

- (void)kitCameraVolumesLiterBetterEraLegacyData:(nullable NSString *)loopsPinArmData sobExact:(void(^)(BOOL result))sobExact {
    self.convergedProvideBundleNothingUnionDismissed = sobExact;
    self.loopsPinArmData = loopsPinArmData;
    if ([self.chlorideLargestSeparateAssertionPort isReady]) {
        [self.chlorideLargestSeparateAssertionPort showAd];
    } else {
        [self.chlorideLargestSeparateAssertionPort loadAd];
        if (sobExact) {
            sobExact(NO);
        }
    }
}

- (void)kitCameraVolumesLiterBetterEraLegacyData:(nullable NSString *)loopsPinArmData islamicHexJson:(void(^)(BOOL result, NSDictionary *spaJson))islamicHexJson {
    self.dayResponsesCubicDetectionStayFooterJson = islamicHexJson;
    self.loopsPinArmData = loopsPinArmData;
    if ([self.chlorideLargestSeparateAssertionPort isReady]) {
        [self.chlorideLargestSeparateAssertionPort showAd];
    } else {
        [self.chlorideLargestSeparateAssertionPort loadAd];
        if (islamicHexJson) {
            islamicHexJson(NO, nil);
        }
    }
}

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

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

- (void)designerMediumAllDeliveredOurProfiles:(MAAd *)ad eventType:(NSString *)eventType {
    if (!self.kinCheckerKindNoiseFlightsRunning) {
        return;
    }

    NSString *adType = @"UNKNOWN";
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        adType = @"REWARD";
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        adType = @"INTERSTITIAL";
    }

    NSDictionary *tapInfo = @{
        @"ads_platform": @"APPLOVIN",
        @"ad_unit_id": ad.adUnitIdentifier ?: @"",
        @"event_type": eventType,  
        @"ad_type": adType,
        @"revenue": @(ad.revenue).stringValue ?: @"0"
    };

    self.kinCheckerKindNoiseFlightsRunning(tapInfo);
}


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

- (void)didFailToLoadAdForAdUnitIdentifier:(nonnull NSString *)adUnitIdentifier withError:(nonnull MAError *)error {

    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:error.message];

    

    self.mutePercentShowKnowBezel++;
    NSInteger assamese = pow(2, MIN(6, self.mutePercentShowKnowBezel));

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, assamese * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        
        if ([adUnitIdentifier isEqualToString:self.sevenRevertingAbsentLossyProject.adUnitIdentifier]) {
            [self.sevenRevertingAbsentLossyProject loadAd];
        } else if ([adUnitIdentifier isEqualToString:self.chlorideLargestSeparateAssertionPort.adUnitIdentifier]) {
            [self.chlorideLargestSeparateAssertionPort loadAd];
        }
    });
}

- (void)didHideAd:(MAAd *)ad {
    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:nil];

    
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        [self.sevenRevertingAbsentLossyProject loadAd];
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        [self.chlorideLargestSeparateAssertionPort loadAd];

        
        if (self.convergedProvideBundleNothingUnionDismissed) {
            self.convergedProvideBundleNothingUnionDismissed(YES);
        }

        if (self.dayResponsesCubicDetectionStayFooterJson) {
            NSDictionary *spaJson = [self sexAdobeFatElevenTelephoto:ad];
            self.dayResponsesCubicDetectionStayFooterJson(YES, spaJson);
        }
    }
}

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:error.message];

    
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        [self.sevenRevertingAbsentLossyProject loadAd];

        if (self.factPlayLiter) {
            self.factPlayLiter(NO);
        }

        if (self.standardDisorderGoogleViolationAgentJson) {
            self.standardDisorderGoogleViolationAgentJson(NO, nil);
        }
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        [self.chlorideLargestSeparateAssertionPort loadAd];

        if (self.convergedProvideBundleNothingUnionDismissed) {
            self.convergedProvideBundleNothingUnionDismissed(NO);
        }

        if (self.dayResponsesCubicDetectionStayFooterJson) {
            self.dayResponsesCubicDetectionStayFooterJson(NO, nil);
        }
    }
}

- (void)didClickAd:(nonnull MAAd *)ad {
    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:nil];
    [self designerMediumAllDeliveredOurProfiles:ad eventType:@"1"];
}

- (void)didDisplayAd:(nonnull MAAd *)ad {
    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:nil];
    [self designerMediumAllDeliveredOurProfiles:ad eventType:@"2"];
}

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:nil];

    if (self.factPlayLiter) {
        self.factPlayLiter(YES);
    }

    if (self.standardDisorderGoogleViolationAgentJson) {
        NSDictionary *spaJson = [self sexAdobeFatElevenTelephoto:ad];
        self.standardDisorderGoogleViolationAgentJson(YES, spaJson);
    }
}


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

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


- (void)didPayRevenueForAd:(MAAd *)ad {
    [self twoDocumentsZeroMightPrevious: __PRETTY_FUNCTION__ error:nil];
    [self designerMediumAllDeliveredOurProfiles:ad eventType:@"3"];
}

@end
