1 line
50 KiB
JSON
1 line
50 KiB
JSON
{"id":"../node_modules/rxjs/_esm5/internal/operators/distinct.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/distinct.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/distinct.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"tslib","loc":{"line":2,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/distinct.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../OuterSubscriber","loc":{"line":3,"column":32},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/distinct.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/OuterSubscriber.js"},{"name":"../util/subscribeToResult","loc":{"line":4,"column":34},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/distinct.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.distinct = distinct;\nexports.DistinctSubscriber = void 0;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _OuterSubscriber = require(\"../OuterSubscriber\");\n\nvar _subscribeToResult = require(\"../util/subscribeToResult\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\n/** PURE_IMPORTS_START tslib,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nfunction distinct(keySelector, flushes) {\n return function (source) {\n return source.lift(new DistinctOperator(keySelector, flushes));\n };\n}\n\nvar DistinctOperator =\n/*@__PURE__*/\nfunction () {\n function DistinctOperator(keySelector, flushes) {\n this.keySelector = keySelector;\n this.flushes = flushes;\n }\n\n DistinctOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n };\n\n return DistinctOperator;\n}();\n\nvar DistinctSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(DistinctSubscriber, _super);\n\n function DistinctSubscriber(destination, keySelector, flushes) {\n var _this = _super.call(this, destination) || this;\n\n _this.keySelector = keySelector;\n _this.values = new Set();\n\n if (flushes) {\n _this.add((0, _subscribeToResult.subscribeToResult)(_this, flushes));\n }\n\n return _this;\n }\n\n DistinctSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.values.clear();\n };\n\n DistinctSubscriber.prototype.notifyError = function (error, innerSub) {\n this._error(error);\n };\n\n DistinctSubscriber.prototype._next = function (value) {\n if (this.keySelector) {\n this._useKeySelector(value);\n } else {\n this._finalizeNext(value, value);\n }\n };\n\n DistinctSubscriber.prototype._useKeySelector = function (value) {\n var key;\n var destination = this.destination;\n\n try {\n key = this.keySelector(value);\n } catch (err) {\n destination.error(err);\n return;\n }\n\n this._finalizeNext(key, value);\n };\n\n DistinctSubscriber.prototype._finalizeNext = function (key, value) {\n var values = this.values;\n\n if (!values.has(key)) {\n values.add(key);\n this.destination.next(value);\n }\n };\n\n return DistinctSubscriber;\n}(_OuterSubscriber.OuterSubscriber);\n\nexports.DistinctSubscriber = DistinctSubscriber;","map":{"mappings":[{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":9,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":61,"column":0},"generated":{"line":13,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":9},"generated":{"line":18,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":18,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":10},"generated":{"line":18,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":18,"column":29}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":36},"generated":{"line":18,"column":31}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":18,"column":38}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":63,"column":43},"generated":{"line":18,"column":40}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":19,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":19,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":19,"column":25}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":19,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":43}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":44}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":55}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":57}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":64}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":65}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":20,"column":66}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":21,"column":3}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":66,"column":0},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":2},"generated":{"line":24,"column":4}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":2},"generated":{"line":24,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":2},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":22},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":84},"generated":{"line":26,"column":12}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":22},"generated":{"line":27,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":22},"generated":{"line":27,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":50},"generated":{"line":27,"column":41}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":50},"generated":{"line":27,"column":50}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":60},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":60},"generated":{"line":28,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":60},"generated":{"line":28,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":60},"generated":{"line":28,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":60},"generated":{"line":28,"column":34}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":29,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":29,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":29,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":68,"column":3},"generated":{"line":29,"column":26}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":70,"column":2},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":11},"generated":{"line":32,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":17},"generated":{"line":32,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":27},"generated":{"line":32,"column":29}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":32},"generated":{"line":32,"column":36}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":32},"generated":{"line":32,"column":46}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":32},"generated":{"line":32,"column":56}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":51},"generated":{"line":32,"column":58}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":32},"generated":{"line":32,"column":64}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":71,"column":63},"generated":{"line":32,"column":66}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":32}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":50}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":51}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":61}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":63}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":68}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":79}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":81}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":86}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":93}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":94}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":72,"column":3},"generated":{"line":33,"column":95}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":73,"column":0},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":66,"column":0},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":73,"column":1},"generated":{"line":36,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":66,"column":0},"generated":{"line":36,"column":25}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":0},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":67,"column":22},"generated":{"line":37,"column":1}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":39,"column":4}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":39,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":67},"generated":{"line":41,"column":10}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":41,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":67},"generated":{"line":41,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":2}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":10}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":38}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":14},"generated":{"line":42,"column":40}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":42,"column":46}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":2},"generated":{"line":44,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":84,"column":4},"generated":{"line":44,"column":30}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":84,"column":10},"generated":{"line":44,"column":43}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":84,"column":22},"generated":{"line":44,"column":56}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":44,"column":65}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":13}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":61},"generated":{"line":45,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":61},"generated":{"line":45,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":32}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":34}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":45}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":78},"generated":{"line":45,"column":50}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":83,"column":50},"generated":{"line":45,"column":54}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":47,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":47,"column":4}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":47,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":47,"column":10}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":47,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":23},"generated":{"line":47,"column":24}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":81,"column":10},"generated":{"line":47,"column":35}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":4},"generated":{"line":48,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":4},"generated":{"line":48,"column":4}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":8},"generated":{"line":48,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":8},"generated":{"line":48,"column":10}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":4},"generated":{"line":48,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":17},"generated":{"line":48,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":17},"generated":{"line":48,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":17},"generated":{"line":48,"column":26}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":86,"column":4},"generated":{"line":48,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":87,"column":6},"generated":{"line":50,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":87,"column":14},"generated":{"line":50,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":6}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":12}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":15}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":58}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":63}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":65}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":72}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":88,"column":5},"generated":{"line":51,"column":73}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":54,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":54,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":54,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":91,"column":2},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":16},"generated":{"line":57,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":16},"generated":{"line":57,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":31}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":44}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":54}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":64}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":66}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":76}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":78}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":88}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":90}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":100}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":102}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":110}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":94,"column":24},"generated":{"line":57,"column":112}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":95,"column":3},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":95,"column":3},"generated":{"line":58,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":95,"column":3},"generated":{"line":58,"column":15}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":95,"column":3},"generated":{"line":58,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":95,"column":3},"generated":{"line":58,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":97,"column":2},"generated":{"line":59,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":16},"generated":{"line":61,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":16},"generated":{"line":61,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":31}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":45}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":55}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":60}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":62}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":70}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":98,"column":23},"generated":{"line":61,"column":72}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":99,"column":3},"generated":{"line":62,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":99,"column":3},"generated":{"line":62,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":99,"column":3},"generated":{"line":62,"column":15}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":99,"column":3},"generated":{"line":62,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":99,"column":3},"generated":{"line":62,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":101,"column":12},"generated":{"line":63,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":13},"generated":{"line":65,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":13},"generated":{"line":65,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":26},"generated":{"line":65,"column":31}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":26},"generated":{"line":65,"column":39}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":26},"generated":{"line":65,"column":49}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":26},"generated":{"line":65,"column":54}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":102,"column":26},"generated":{"line":65,"column":56}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":103,"column":6},"generated":{"line":66,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":103,"column":11},"generated":{"line":66,"column":13}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":103,"column":11},"generated":{"line":66,"column":26}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":104,"column":5},"generated":{"line":67,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":104,"column":5},"generated":{"line":67,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":104,"column":5},"generated":{"line":67,"column":26}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":104,"column":5},"generated":{"line":67,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":104,"column":5},"generated":{"line":67,"column":32}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":105,"column":6},"generated":{"line":68,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":24}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":25}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":30}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":32}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":106,"column":5},"generated":{"line":69,"column":37}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":107,"column":3},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":109,"column":10},"generated":{"line":71,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":31}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":49}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":59}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":64}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":110,"column":15},"generated":{"line":73,"column":66}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":111,"column":12},"generated":{"line":74,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":111,"column":12},"generated":{"line":74,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":111,"column":12},"generated":{"line":74,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":112,"column":4},"generated":{"line":75,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":112,"column":8},"generated":{"line":75,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":112,"column":8},"generated":{"line":75,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":112,"column":8},"generated":{"line":75,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":112,"column":8},"generated":{"line":75,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":112,"column":4},"generated":{"line":75,"column":38}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":113,"column":6},"generated":{"line":77,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":6}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":12}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":29}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":34}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":5},"generated":{"line":78,"column":35}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":114,"column":6},"generated":{"line":79,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":115,"column":6},"generated":{"line":79,"column":13}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":115,"column":6},"generated":{"line":79,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":6},"generated":{"line":80,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":6},"generated":{"line":80,"column":6}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":13},"generated":{"line":80,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":13},"generated":{"line":80,"column":18}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":6},"generated":{"line":80,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":13},"generated":{"line":80,"column":24}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":116,"column":6},"generated":{"line":80,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":117,"column":5},"generated":{"line":81,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":118,"column":4},"generated":{"line":82,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":26}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":119,"column":3},"generated":{"line":84,"column":33}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":121,"column":10},"generated":{"line":85,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":12},"generated":{"line":87,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":12},"generated":{"line":87,"column":21}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":31}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":47}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":57}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":60}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":62}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":67}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":122,"column":28},"generated":{"line":87,"column":69}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":123,"column":4},"generated":{"line":88,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":123,"column":8},"generated":{"line":88,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":123,"column":9},"generated":{"line":88,"column":14}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":123,"column":16},"generated":{"line":88,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":123,"column":23},"generated":{"line":88,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":123,"column":4},"generated":{"line":88,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":6},"generated":{"line":90,"column":8}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":6},"generated":{"line":90,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":13},"generated":{"line":90,"column":15}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":13},"generated":{"line":90,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":6},"generated":{"line":90,"column":19}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":20},"generated":{"line":90,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":6},"generated":{"line":90,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":124,"column":25},"generated":{"line":90,"column":26}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":6},"generated":{"line":91,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":6},"generated":{"line":91,"column":6}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":11},"generated":{"line":91,"column":12}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":11},"generated":{"line":91,"column":13}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":6},"generated":{"line":91,"column":16}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":11},"generated":{"line":91,"column":17}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":125,"column":6},"generated":{"line":91,"column":20}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":11}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":22}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":23}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":28}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":126,"column":5},"generated":{"line":92,"column":33}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":127,"column":3},"generated":{"line":93,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":129,"column":0},"generated":{"line":94,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":96,"column":0}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":96,"column":9}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":96,"column":27}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":97,"column":1}},{"source":"../../../src/internal/operators/distinct.ts","name":null,"original":{"line":80,"column":46},"generated":{"line":97,"column":34}}],"sources":{"../../../src/internal/operators/distinct.ts":"import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction, TeardownLogic } from '../types';\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.\n *\n * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will\n * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the\n * source observable directly with an equality check against previous values.\n *\n * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.\n *\n * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the\n * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`\n * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so\n * that the internal `Set` can be \"flushed\", basically clearing it of values.\n *\n * ## Examples\n * A simple example with numbers\n * ```javascript\n * of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1).pipe(\n * distinct(),\n * )\n * .subscribe(x => console.log(x)); // 1, 2, 3, 4\n * ```\n *\n * An example using a keySelector function\n * ```typescript\n * interface Person {\n * age: number,\n * name: string\n * }\n *\n * of<Person>(\n * { age: 4, name: 'Foo'},\n * { age: 7, name: 'Bar'},\n * { age: 5, name: 'Foo'},\n * ).pipe(\n * distinct((p: Person) => p.name),\n * )\n * .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * ```\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param {function} [keySelector] Optional function to select which value you want to check as distinct.\n * @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values.\n * @method distinct\n * @owner Observable\n */\nexport function distinct<T, K>(keySelector?: (value: T) => K,\n flushes?: Observable<any>): MonoTypeOperatorFunction<T> {\n return (source: Observable<T>) => source.lift(new DistinctOperator(keySelector, flushes));\n}\n\nclass DistinctOperator<T, K> implements Operator<T, T> {\n constructor(private keySelector: (value: T) => K, private flushes: Observable<any>) {\n }\n\n call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class DistinctSubscriber<T, K> extends OuterSubscriber<T, T> {\n private values = new Set<K>();\n\n constructor(destination: Subscriber<T>, private keySelector: (value: T) => K, flushes: Observable<any>) {\n super(destination);\n\n if (flushes) {\n this.add(subscribeToResult(this, flushes));\n }\n }\n\n notifyNext(outerValue: T, innerValue: T,\n outerIndex: number, innerIndex: number,\n innerSub: InnerSubscriber<T, T>): void {\n this.values.clear();\n }\n\n notifyError(error: any, innerSub: InnerSubscriber<T, T>): void {\n this._error(error);\n }\n\n protected _next(value: T): void {\n if (this.keySelector) {\n this._useKeySelector(value);\n } else {\n this._finalizeNext(value, value);\n }\n }\n\n private _useKeySelector(value: T): void {\n let key: K;\n const { destination } = this;\n try {\n key = this.keySelector(value);\n } catch (err) {\n destination.error(err);\n return;\n }\n this._finalizeNext(key, value);\n }\n\n private _finalizeNext(key: K|T, value: T) {\n const { values } = this;\n if (!values.has(<K>key)) {\n values.add(<K>key);\n this.destination.next(value);\n }\n }\n\n}\n"},"lineCount":null}},"hash":"6bcbf0609594b47bc2d40aae0e615780","cacheData":{"env":{}}} |