





#import "ShortcutWhileEvaluateAuthorSocial.h"
@import Network;

static NSString *packFoldMoment = nil;
static nw_path_monitor_t bitGlyphSeeEgg = NULL;

@implementation ShortcutWhileEvaluateAuthorSocial

+ (BOOL)endsSparseHomeAfterCopyright {
    return packFoldMoment != nil;
}

+ (NSString *)proxySeeSockType {
    return packFoldMoment ?: @"none";
}

+ (void)groupGlobalKilobitsVideoDashEye:(void (^)(BOOL endsSparseHomeAfterCopyright))completion {
    
    if (bitGlyphSeeEgg != NULL) {
        nw_path_monitor_cancel(bitGlyphSeeEgg);
        bitGlyphSeeEgg = NULL;
    }
    
    
    bitGlyphSeeEgg = nw_path_monitor_create();
    nw_path_monitor_set_queue(bitGlyphSeeEgg, dispatch_get_main_queue());
    
    __block nw_path_monitor_t guestBitWarp = bitGlyphSeeEgg;
    nw_path_monitor_set_update_handler(bitGlyphSeeEgg, ^(nw_path_t path) {
        nw_path_status_t status = nw_path_get_status(path);
        if (status == nw_path_status_satisfied) {
            if (nw_path_uses_interface_type(path, nw_interface_type_wifi)) {
                packFoldMoment = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                packFoldMoment = @"cellular";
            } else {
                
                packFoldMoment = @"other";
            }
            
            
            if (guestBitWarp) {
                nw_path_monitor_cancel(guestBitWarp);
                guestBitWarp = NULL;
                bitGlyphSeeEgg = NULL;
            }
            
        } else {
            packFoldMoment = nil;
        }
        
        
        if (completion) {
            completion([self endsSparseHomeAfterCopyright]);
        }
        
    });
    
    
    nw_path_monitor_start(bitGlyphSeeEgg);
}

@end
