{"id":"../node_modules/rxjs/_esm5/internal/operators/refCount.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/refCount.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/refCount.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/refCount.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../Subscriber","loc":{"line":3,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/refCount.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.refCount = refCount;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\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,_Subscriber PURE_IMPORTS_END */\nfunction refCount() {\n return function refCountOperatorFunction(source) {\n return source.lift(new RefCountOperator(source));\n };\n}\n\nvar RefCountOperator =\n/*@__PURE__*/\nfunction () {\n function RefCountOperator(connectable) {\n this.connectable = connectable;\n }\n\n RefCountOperator.prototype.call = function (subscriber, source) {\n var connectable = this.connectable;\n connectable._refCount++;\n var refCounter = new RefCountSubscriber(subscriber, connectable);\n var subscription = source.subscribe(refCounter);\n\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n\n return subscription;\n };\n\n return RefCountOperator;\n}();\n\nvar RefCountSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(RefCountSubscriber, _super);\n\n function RefCountSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n\n _this.connectable = connectable;\n return _this;\n }\n\n RefCountSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n\n if (!connectable) {\n this.connection = null;\n return;\n }\n\n this.connectable = null;\n var refCount = connectable._refCount;\n\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n\n connectable._refCount = refCount - 1;\n\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n\n var connection = this.connection;\n var sharedConnection = connectable._connection;\n this.connection = null;\n\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n };\n\n return RefCountSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":9,"column":2},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":9,"column":9},"generated":{"line":15,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":9,"column":2},"generated":{"line":15,"column":17}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":9,"column":18},"generated":{"line":15,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":10,"column":4},"generated":{"line":16,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":10,"column":11},"generated":{"line":16,"column":18}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":10,"column":4},"generated":{"line":16,"column":42}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":10,"column":27},"generated":{"line":16,"column":43}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":10,"column":4},"generated":{"line":16,"column":49}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":10,"column":44},"generated":{"line":16,"column":51}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":17}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":18}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":43}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":44}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":50}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":51}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":11,"column":35},"generated":{"line":17,"column":52}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":12,"column":1},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":14,"column":0},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":21,"column":4}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":21,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":23,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":59},"generated":{"line":23,"column":12}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":24,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":24,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":59},"generated":{"line":24,"column":41}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":16,"column":3},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":16,"column":3},"generated":{"line":25,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":16,"column":3},"generated":{"line":25,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":16,"column":3},"generated":{"line":25,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":16,"column":3},"generated":{"line":25,"column":34}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":17,"column":2},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":18}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":29}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":36}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":33},"generated":{"line":28,"column":46}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":56}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":33},"generated":{"line":28,"column":58}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":64}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":19,"column":33},"generated":{"line":28,"column":66}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":20,"column":11},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":20,"column":11},"generated":{"line":29,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":20,"column":24},"generated":{"line":29,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":20,"column":24},"generated":{"line":29,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":20,"column":35},"generated":{"line":29,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":20,"column":11},"generated":{"line":29,"column":38}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":22,"column":4},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":22,"column":4},"generated":{"line":30,"column":4}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":22,"column":10},"generated":{"line":30,"column":15}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":22,"column":10},"generated":{"line":30,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":22,"column":4},"generated":{"line":30,"column":25}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":4},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":10},"generated":{"line":31,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":10},"generated":{"line":31,"column":18}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":22},"generated":{"line":31,"column":21}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":25},"generated":{"line":31,"column":25}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":22},"generated":{"line":31,"column":43}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":42},"generated":{"line":31,"column":44}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":22},"generated":{"line":31,"column":54}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":54},"generated":{"line":31,"column":56}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":22},"generated":{"line":31,"column":67}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":23,"column":4},"generated":{"line":31,"column":68}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":4},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":32,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":20},"generated":{"line":32,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":20},"generated":{"line":32,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":28},"generated":{"line":32,"column":29}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":28},"generated":{"line":32,"column":30}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":20},"generated":{"line":32,"column":39}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":28},"generated":{"line":32,"column":40}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":20},"generated":{"line":32,"column":50}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":25,"column":4},"generated":{"line":32,"column":51}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":26,"column":13},"generated":{"line":34,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":26,"column":13},"generated":{"line":34,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":26,"column":25},"generated":{"line":34,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":26,"column":25},"generated":{"line":34,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":26,"column":25},"generated":{"line":34,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":6}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":17}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":30}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":41}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":42}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":49}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":27,"column":5},"generated":{"line":35,"column":51}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":29,"column":4},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":30,"column":3},"generated":{"line":38,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":30,"column":3},"generated":{"line":38,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":30,"column":3},"generated":{"line":38,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":31,"column":0},"generated":{"line":39,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":14,"column":0},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":31,"column":1},"generated":{"line":41,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":14,"column":0},"generated":{"line":41,"column":25}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":0},"generated":{"line":42,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":42,"column":1}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":44,"column":4}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":44,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":49},"generated":{"line":46,"column":10}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":46,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":49},"generated":{"line":46,"column":18}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":2}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":10}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":38}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":14},"generated":{"line":47,"column":40}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":47,"column":46}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":49,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":49,"column":30}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":39,"column":10},"generated":{"line":49,"column":43}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":39,"column":22},"generated":{"line":49,"column":56}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":13}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":33},"generated":{"line":50,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":33},"generated":{"line":50,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":32}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":34}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":45}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":59},"generated":{"line":50,"column":50}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":38,"column":22},"generated":{"line":50,"column":54}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":40,"column":3},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":40,"column":3},"generated":{"line":53,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":40,"column":3},"generated":{"line":53,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":42,"column":12},"generated":{"line":54,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":44,"column":12},"generated":{"line":56,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":44,"column":12},"generated":{"line":56,"column":21}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":44,"column":12},"generated":{"line":56,"column":31}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":44,"column":33},"generated":{"line":56,"column":46}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":44,"column":33},"generated":{"line":56,"column":58}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":57,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":45,"column":8},"generated":{"line":57,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":45,"column":9},"generated":{"line":57,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":45,"column":22},"generated":{"line":57,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":45,"column":22},"generated":{"line":57,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":57,"column":38}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":46,"column":6},"generated":{"line":59,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":46,"column":6},"generated":{"line":59,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":46,"column":11},"generated":{"line":59,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":60,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":60,"column":21}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":47,"column":13},"generated":{"line":60,"column":24}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":60,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":48,"column":5},"generated":{"line":61,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":50,"column":4},"generated":{"line":62,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":51,"column":4},"generated":{"line":64,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":51,"column":10},"generated":{"line":64,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":51,"column":4},"generated":{"line":64,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":51,"column":28},"generated":{"line":64,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":51,"column":4},"generated":{"line":64,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":65,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":8},"generated":{"line":65,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":16},"generated":{"line":65,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":16},"generated":{"line":65,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":23},"generated":{"line":65,"column":30}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":23},"generated":{"line":65,"column":31}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":65,"column":40}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":53,"column":6},"generated":{"line":67,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":53,"column":11},"generated":{"line":67,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":53,"column":11},"generated":{"line":67,"column":20}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":53,"column":21},"generated":{"line":67,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":54,"column":6},"generated":{"line":68,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":54,"column":6},"generated":{"line":68,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":54,"column":6},"generated":{"line":68,"column":21}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":54,"column":13},"generated":{"line":68,"column":24}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":54,"column":6},"generated":{"line":68,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":55,"column":5},"generated":{"line":69,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":57,"column":11},"generated":{"line":70,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":72,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":72,"column":4}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":8},"generated":{"line":72,"column":15}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":16},"generated":{"line":72,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":72,"column":25}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":22},"generated":{"line":72,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":22},"generated":{"line":72,"column":36}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":22},"generated":{"line":72,"column":39}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":58,"column":4},"generated":{"line":72,"column":40}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":59,"column":6},"generated":{"line":74,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":74,"column":16}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":74,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":74,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":75,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":75,"column":11}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":75,"column":21}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":60,"column":13},"generated":{"line":75,"column":24}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":75,"column":28}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":76,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":87,"column":12},"generated":{"line":77,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":88,"column":4},"generated":{"line":79,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":88,"column":10},"generated":{"line":79,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":88,"column":10},"generated":{"line":79,"column":18}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":88,"column":10},"generated":{"line":79,"column":21}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":88,"column":26},"generated":{"line":79,"column":26}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":88,"column":4},"generated":{"line":79,"column":36}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":4},"generated":{"line":80,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":8},"generated":{"line":80,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":22},"generated":{"line":80,"column":24}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":27},"generated":{"line":80,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":27},"generated":{"line":80,"column":38}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":27},"generated":{"line":80,"column":39}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":89,"column":4},"generated":{"line":80,"column":50}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":91,"column":4},"generated":{"line":81,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":91,"column":8},"generated":{"line":81,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":91,"column":4},"generated":{"line":81,"column":19}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":91,"column":8},"generated":{"line":81,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":91,"column":4},"generated":{"line":81,"column":26}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":6},"generated":{"line":83,"column":8}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":22},"generated":{"line":83,"column":24}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":83,"column":29}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":83,"column":30}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":23},"generated":{"line":83,"column":40}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":37},"generated":{"line":83,"column":44}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":37},"generated":{"line":83,"column":60}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":37},"generated":{"line":83,"column":65}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":22},"generated":{"line":83,"column":75}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":92,"column":37},"generated":{"line":83,"column":78}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":84,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":84,"column":6}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":84,"column":22}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":84,"column":23}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":93,"column":5},"generated":{"line":84,"column":34}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":94,"column":3},"generated":{"line":85,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":95,"column":0},"generated":{"line":86,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":88,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":88,"column":9}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":88,"column":27}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":89,"column":1}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":33,"column":36},"generated":{"line":89,"column":24}}],"sources":{"../../../src/internal/operators/refCount.ts":"import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction, TeardownLogic } from '../types';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { Observable } from '../Observable';\n\nexport function refCount(): MonoTypeOperatorFunction {\n return function refCountOperatorFunction(source: ConnectableObservable): Observable {\n return source.lift(new RefCountOperator(source));\n } as MonoTypeOperatorFunction;\n}\n\nclass RefCountOperator implements Operator {\n constructor(private connectable: ConnectableObservable) {\n }\n call(subscriber: Subscriber, source: any): TeardownLogic {\n\n const { connectable } = this;\n ( connectable)._refCount++;\n\n const refCounter = new RefCountSubscriber(subscriber, connectable);\n const subscription = source.subscribe(refCounter);\n\n if (!refCounter.closed) {\n ( refCounter).connection = connectable.connect();\n }\n\n return subscription;\n }\n}\n\nclass RefCountSubscriber extends Subscriber {\n\n private connection: Subscription;\n\n constructor(destination: Subscriber,\n private connectable: ConnectableObservable) {\n super(destination);\n }\n\n protected _unsubscribe() {\n\n const { connectable } = this;\n if (!connectable) {\n this.connection = null;\n return;\n }\n\n this.connectable = null;\n const refCount = ( connectable)._refCount;\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n\n ( connectable)._refCount = refCount - 1;\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n\n ///\n // Compare the local RefCountSubscriber's connection Subscription to the\n // connection Subscription on the shared ConnectableObservable. In cases\n // where the ConnectableObservable source synchronously emits values, and\n // the RefCountSubscriber's downstream Observers synchronously unsubscribe,\n // execution continues to here before the RefCountOperator has a chance to\n // supply the RefCountSubscriber with the shared connection Subscription.\n // For example:\n // ```\n // range(0, 10).pipe(\n // publish(),\n // refCount(),\n // take(5),\n // )\n // .subscribe();\n // ```\n // In order to account for this case, RefCountSubscriber should only dispose\n // the ConnectableObservable's shared connection Subscription if the\n // connection Subscription exists, *and* either:\n // a. RefCountSubscriber doesn't have a reference to the shared connection\n // Subscription yet, or,\n // b. RefCountSubscriber's connection Subscription reference is identical\n // to the shared connection Subscription\n ///\n const { connection } = this;\n const sharedConnection = ( connectable)._connection;\n this.connection = null;\n\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n }\n}\n"},"lineCount":null}},"hash":"663fc8c6a1669223087cc31f98a73418","cacheData":{"env":{}}}