//// [restTuplesFromContextualTypes.ts]
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
(function(a, b, c) {}).apply(this, _to_consumable_array(t1));
(function() {
    for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
        x[_key] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t1));
(function(a) {
    for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
        x[_key - 1] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t1));
(function(a, b) {
    for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
        x[_key - 2] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t1));
(function(a, b, c) {
    for(var _len = arguments.length, x = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
        x[_key - 3] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t1));
f1(function(a, b, c) {});
f1(function() {
    for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
        x[_key] = arguments[_key];
    }
});
f1(function(a) {
    for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
        x[_key - 1] = arguments[_key];
    }
});
f1(function(a, b) {
    for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
        x[_key - 2] = arguments[_key];
    }
});
f1(function(a, b, c) {
    for(var _len = arguments.length, x = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
        x[_key - 3] = arguments[_key];
    }
});
(function(a, b, c) {}).apply(this, _to_consumable_array(t2));
(function() {
    for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
        x[_key] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t2));
(function(a) {
    for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
        x[_key - 1] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t2));
(function(a, b) {
    for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
        x[_key - 2] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t2));
(function(a, b, c) {
    for(var _len = arguments.length, x = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
        x[_key - 3] = arguments[_key];
    }
}).apply(this, _to_consumable_array(t2));
f2(function(a, b, c) {});
f2(function() {
    for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
        x[_key] = arguments[_key];
    }
});
f2(function(a) {
    for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
        x[_key - 1] = arguments[_key];
    }
});
f2(function(a, b) {
    for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
        x[_key - 2] = arguments[_key];
    }
});
f2(function(a, b, c) {
    for(var _len = arguments.length, x = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
        x[_key - 3] = arguments[_key];
    }
});
(function(a, b, c) {}).apply(this, [
    1
].concat(_to_consumable_array(t3)));
(function() {
    for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
        x[_key] = arguments[_key];
    }
}).apply(this, [
    1
].concat(_to_consumable_array(t3)));
(function(a) {
    for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
        x[_key - 1] = arguments[_key];
    }
}).apply(this, [
    1
].concat(_to_consumable_array(t3)));
(function(a, b) {
    for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
        x[_key - 2] = arguments[_key];
    }
}).apply(this, [
    1
].concat(_to_consumable_array(t3)));
(function(a, b, c) {
    for(var _len = arguments.length, x = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
        x[_key - 3] = arguments[_key];
    }
}).apply(this, [
    1
].concat(_to_consumable_array(t3)));
f3(function(a, b, c) {});
f3(function() {
    for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
        x[_key] = arguments[_key];
    }
});
f3(function(a) {
    for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
        x[_key - 1] = arguments[_key];
    }
});
f3(function(a, b) {
    for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
        x[_key - 2] = arguments[_key];
    }
});
f3(function(a, b, c) {
    for(var _len = arguments.length, x = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
        x[_key - 3] = arguments[_key];
    }
});
function f4(t) {
    (function() {
        for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
            x[_key] = arguments[_key];
        }
    }).apply(this, _to_consumable_array(t));
    (function(a) {
        for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
            x[_key - 1] = arguments[_key];
        }
    }).apply(this, [
        1
    ].concat(_to_consumable_array(t)));
    (function(a) {
        for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
            x[_key - 1] = arguments[_key];
        }
    }).apply(this, [
        1,
        2
    ].concat(_to_consumable_array(t)));
    function f(cb) {}
    f(function() {
        for(var _len = arguments.length, x = new Array(_len), _key = 0; _key < _len; _key++){
            x[_key] = arguments[_key];
        }
    });
    f(function(a) {
        for(var _len = arguments.length, x = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
            x[_key - 1] = arguments[_key];
        }
    });
    f(function(a, b) {
        for(var _len = arguments.length, x = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
            x[_key - 2] = arguments[_key];
        }
    });
}
var g0 = f5(function() {
    return "hello";
});
var g1 = f5(function(x, y) {
    return 42;
});
var g2 = f5(function(x, y) {
    return 42;
});
var g3 = f5(function(x, y) {
    return x + y;
});
var g4 = f5(function() {
    for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
        args[_key] = arguments[_key];
    }
    return true;
});
var g5 = pipe(function() {
    return true;
}, function(b) {
    return 42;
});
var g6 = pipe(function(x) {
    return "hello";
}, function(s) {
    return s.length;
});
var g7 = pipe(function(x, y) {
    return 42;
}, function(x) {
    return "" + x;
});
var g8 = pipe(function(x, y) {
    return 42;
}, function(x) {
    return "" + x;
});
(function foo(a, b) {}).apply(this, _to_consumable_array(tuple));
(function foo() {
    for(var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++){
        rest[_key] = arguments[_key];
    }
})(1, '');
take(function() {
    for(var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++){
        rest[_key] = arguments[_key];
    }
});
var funcUnionTupleNoRest = function(num, strOrErr) {
    return num;
};
var funcUnionTupleRest = function() {
    for(var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++){
        params[_key] = arguments[_key];
    }
    var _params = _sliced_to_array(params, 2), num = _params[0], strOrErr = _params[1];
    return num;
};
