"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEmpty = void 0;
const Observable_js_1 = require("../Observable.js");
function isEmpty() {
    return (source) => new Observable_js_1.Observable((destination) => {
        source.subscribe((0, Observable_js_1.operate)({
            destination,
            next: () => {
                destination.next(false);
                destination.complete();
            },
            complete: () => {
                destination.next(true);
                destination.complete();
            },
        }));
    });
}
exports.isEmpty = isEmpty;//# sourceMappingURL=http://go/sourcemap/sourcemaps/cd1c87ff9b66021918fb9731605f8d1d5fd2f0b0/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js.map