"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dematerialize = void 0;
const Notification_js_1 = require("../Notification.js");
const Observable_js_1 = require("../Observable.js");
function dematerialize() {
    return (source) => new Observable_js_1.Observable((destination) => {
        source.subscribe((0, Observable_js_1.operate)({ destination, next: (notification) => (0, Notification_js_1.observeNotification)(notification, destination) }));
    });
}
exports.dematerialize = dematerialize;