{"ast":null,"code":"import _assertThisInitialized from \"C:/Users/kgamal/Downloads/HijriGregorianDatepicker-master/HijriGregorianDatepicker-master/node_modules/@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _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 { Subscriber } from '../Subscriber';\nexport function map(project, thisArg) {\n  return function mapOperation(source) {\n    if (typeof project !== 'function') {\n      throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n    }\n\n    return source.lift(new MapOperator(project, thisArg));\n  };\n}\nexport var MapOperator = /*#__PURE__*/function () {\n  function MapOperator(project, thisArg) {\n    _classCallCheck(this, MapOperator);\n\n    this.project = project;\n    this.thisArg = thisArg;\n  }\n\n  _createClass(MapOperator, [{\n    key: \"call\",\n    value: function call(subscriber, source) {\n      return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n    }\n  }]);\n\n  return MapOperator;\n}();\n\nvar MapSubscriber = /*#__PURE__*/function (_Subscriber) {\n  _inherits(MapSubscriber, _Subscriber);\n\n  var _super = _createSuper(MapSubscriber);\n\n  function MapSubscriber(destination, project, thisArg) {\n    var _this;\n\n    _classCallCheck(this, MapSubscriber);\n\n    _this = _super.call(this, destination);\n    _this.project = project;\n    _this.count = 0;\n    _this.thisArg = thisArg || _assertThisInitialized(_this);\n    return _this;\n  }\n\n  _createClass(MapSubscriber, [{\n    key: \"_next\",\n    value: function _next(value) {\n      var result;\n\n      try {\n        result = this.project.call(this.thisArg, value, this.count++);\n      } catch (err) {\n        this.destination.error(err);\n        return;\n      }\n\n      this.destination.next(result);\n    }\n  }]);\n\n  return MapSubscriber;\n}(Subscriber); //# sourceMappingURL=map.js.map","map":null,"metadata":{},"sourceType":"module"}