text: "use strict";
  var __extends = (this && this.__extends) || (function () {
      var extendStatics = Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
          function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
      return function (d, b) {
          extendStatics(d, b);
          function __() { this.constructor = d; }
          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };
  })();
  Object.defineProperty(exports, "__esModule", { value: true });
  var Observer_1 = require("../core/Observer");
  var SkipUntilSourceObserver = (function (_super) {
      __extends(SkipUntilSourceObserver, _super);
      function SkipUntilSourceObserver(prevObserver, skipUntilStream) {
          var _this = _super.call(this, null, null, null) || this;
          _this._prevObserver = null;
          _this._skipUntilStream = null;
          _this._prevObserver = prevObserver;
          _this._skipUntilStream = skipUntilStream;
          return _this;
      }
      SkipUntilSourceObserver.create = function (prevObserver, skipUntilStream) {
          return new this(prevObserver, skipUntilStream);
      };
      SkipUntilSourceObserver.prototype.onNext = function (value) {
          if (this._skipUntilStream.isOpen) {
              this._prevObserver.next(value);
          }
      };
      SkipUntilSourceObserver.prototype.onError = function (error) {
          this._prevObserver.error(error);
      };
      SkipUntilSourceObserver.prototype.onCompleted = function () {
          if (this._skipUntilStream.isOpen) {
              this._prevObserver.completed();
          }
      };
      return SkipUntilSourceObserver;
  }(Observer_1.Observer));
  exports.SkipUntilSourceObserver = SkipUntilSourceObserver;
  //# sourceMappingURL=SkipUntilSourceObserver.js.map