{"ast":null,"code":"import _inherits from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/createSuper\";\nimport _classCallCheck from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/createClass\";\nimport { from } from '../observable/from';\nimport { isArray } from '../util/isArray';\nimport { SimpleOuterSubscriber, SimpleInnerSubscriber, innerSubscribe } from '../innerSubscribe';\nexport function onErrorResumeNext() {\n  for (var _len = arguments.length, nextSources = new Array(_len), _key = 0; _key < _len; _key++) {\n    nextSources[_key] = arguments[_key];\n  }\n\n  if (nextSources.length === 1 && isArray(nextSources[0])) {\n    nextSources = nextSources[0];\n  }\n\n  return function (source) {\n    return source.lift(new OnErrorResumeNextOperator(nextSources));\n  };\n}\nexport function onErrorResumeNextStatic() {\n  for (var _len2 = arguments.length, nextSources = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n    nextSources[_key2] = arguments[_key2];\n  }\n\n  var source = undefined;\n\n  if (nextSources.length === 1 && isArray(nextSources[0])) {\n    nextSources = nextSources[0];\n  }\n\n  source = nextSources.shift();\n  return from(source).lift(new OnErrorResumeNextOperator(nextSources));\n}\n\nvar OnErrorResumeNextOperator = /*#__PURE__*/function () {\n  function OnErrorResumeNextOperator(nextSources) {\n    _classCallCheck(this, OnErrorResumeNextOperator);\n\n    this.nextSources = nextSources;\n  }\n\n  _createClass(OnErrorResumeNextOperator, [{\n    key: \"call\",\n    value: function call(subscriber, source) {\n      return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));\n    }\n  }]);\n\n  return OnErrorResumeNextOperator;\n}();\n\nvar OnErrorResumeNextSubscriber = /*#__PURE__*/function (_SimpleOuterSubscribe) {\n  _inherits(OnErrorResumeNextSubscriber, _SimpleOuterSubscribe);\n\n  var _super = _createSuper(OnErrorResumeNextSubscriber);\n\n  function OnErrorResumeNextSubscriber(destination, nextSources) {\n    var _this;\n\n    _classCallCheck(this, OnErrorResumeNextSubscriber);\n\n    _this = _super.call(this, destination);\n    _this.destination = destination;\n    _this.nextSources = nextSources;\n    return _this;\n  }\n\n  _createClass(OnErrorResumeNextSubscriber, [{\n    key: \"notifyError\",\n    value: function notifyError() {\n      this.subscribeToNextSource();\n    }\n  }, {\n    key: \"notifyComplete\",\n    value: function notifyComplete() {\n      this.subscribeToNextSource();\n    }\n  }, {\n    key: \"_error\",\n    value: function _error(err) {\n      this.subscribeToNextSource();\n      this.unsubscribe();\n    }\n  }, {\n    key: \"_complete\",\n    value: function _complete() {\n      this.subscribeToNextSource();\n      this.unsubscribe();\n    }\n  }, {\n    key: \"subscribeToNextSource\",\n    value: function subscribeToNextSource() {\n      var next = this.nextSources.shift();\n\n      if (!!next) {\n        var innerSubscriber = new SimpleInnerSubscriber(this);\n        var destination = this.destination;\n        destination.add(innerSubscriber);\n        var innerSubscription = innerSubscribe(next, innerSubscriber);\n\n        if (innerSubscription !== innerSubscriber) {\n          destination.add(innerSubscription);\n        }\n      } else {\n        this.destination.complete();\n      }\n    }\n  }]);\n\n  return OnErrorResumeNextSubscriber;\n}(SimpleOuterSubscriber); //# sourceMappingURL=onErrorResumeNext.js.map","map":null,"metadata":{},"sourceType":"module"}