"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.concat = void 0;
const Observable_js_1 = require("../Observable.js");
const concatAll_js_1 = require("../operators/concatAll.js");
const args_js_1 = require("../util/args.js");
const scheduled_js_1 = require("../scheduled/scheduled.js");
function concat(...args) {
    const scheduler = (0, args_js_1.popScheduler)(args);
    return (0, concatAll_js_1.concatAll)()(scheduler ? (0, scheduled_js_1.scheduled)(args, scheduler) : (0, Observable_js_1.from)(args));
}
exports.concat = concat;