1 line
29 KiB
JSON
1 line
29 KiB
JSON
{"id":"../node_modules/rxjs/_esm5/internal/operators/multicast.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/multicast.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/multicast.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":"../observable/ConnectableObservable","loc":{"line":2,"column":48},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/multicast.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.multicast = multicast;\nexports.MulticastOperator = void 0;\n\nvar _ConnectableObservable = require(\"../observable/ConnectableObservable\");\n\n/** PURE_IMPORTS_START _observable_ConnectableObservable PURE_IMPORTS_END */\nfunction multicast(subjectOrSubjectFactory, selector) {\n return function multicastOperatorFunction(source) {\n var subjectFactory;\n\n if (typeof subjectOrSubjectFactory === 'function') {\n subjectFactory = subjectOrSubjectFactory;\n } else {\n subjectFactory = function subjectFactory() {\n return subjectOrSubjectFactory;\n };\n }\n\n if (typeof selector === 'function') {\n return source.lift(new MulticastOperator(subjectFactory, selector));\n }\n\n var connectable = Object.create(source, _ConnectableObservable.connectableObservableDescriptor);\n connectable.source = source;\n connectable.subjectFactory = subjectFactory;\n return connectable;\n };\n}\n\nvar MulticastOperator =\n/*@__PURE__*/\nfunction () {\n function MulticastOperator(subjectFactory, selector) {\n this.subjectFactory = subjectFactory;\n this.selector = selector;\n }\n\n MulticastOperator.prototype.call = function (subscriber, source) {\n var selector = this.selector;\n var subject = this.subjectFactory();\n var subscription = selector(subject).subscribe(subscriber);\n subscription.add(source.subscribe(subject));\n return subscription;\n };\n\n return MulticastOperator;\n}();\n\nexports.MulticastOperator = MulticastOperator;","map":{"mappings":[{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":35,"column":0},"generated":{"line":9,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":9},"generated":{"line":12,"column":9}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":12,"column":18}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":18},"generated":{"line":12,"column":19}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":12,"column":42}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":44},"generated":{"line":12,"column":44}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":2},"generated":{"line":12,"column":52}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":37,"column":65},"generated":{"line":12,"column":54}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":38,"column":4},"generated":{"line":13,"column":9}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":38,"column":8},"generated":{"line":13,"column":18}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":38,"column":4},"generated":{"line":13,"column":43}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":38,"column":41},"generated":{"line":13,"column":44}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":38,"column":4},"generated":{"line":13,"column":50}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":38,"column":41},"generated":{"line":13,"column":52}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":39,"column":8},"generated":{"line":14,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":14,"column":22}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":40,"column":6},"generated":{"line":16,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":40,"column":6},"generated":{"line":16,"column":15}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":40,"column":6},"generated":{"line":16,"column":38}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":40,"column":41},"generated":{"line":16,"column":43}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":40,"column":65},"generated":{"line":16,"column":55}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":41,"column":5},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":41,"column":5},"generated":{"line":17,"column":6}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":41,"column":5},"generated":{"line":17,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":41,"column":5},"generated":{"line":17,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":41,"column":5},"generated":{"line":17,"column":46}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":42,"column":6},"generated":{"line":18,"column":11}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":43,"column":27},"generated":{"line":19,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":43,"column":27},"generated":{"line":19,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":43,"column":27},"generated":{"line":19,"column":32}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":43,"column":27},"generated":{"line":19,"column":46}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":43,"column":51},"generated":{"line":19,"column":49}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":20,"column":15}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":20,"column":38}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":45,"column":5},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":47,"column":4},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":48,"column":6},"generated":{"line":24,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":48,"column":13},"generated":{"line":24,"column":15}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":48,"column":6},"generated":{"line":24,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":48,"column":25},"generated":{"line":24,"column":28}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":48,"column":29},"generated":{"line":24,"column":40}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":13}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":19}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":24}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":25}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":29}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":46}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":47}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":61}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":63}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":71}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":72}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":49,"column":5},"generated":{"line":25,"column":73}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":51,"column":4},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":28,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":16},"generated":{"line":28,"column":19}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":28,"column":22}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":25},"generated":{"line":28,"column":28}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":25},"generated":{"line":28,"column":29}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":28,"column":35}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":32},"generated":{"line":28,"column":36}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":28,"column":42}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":32},"generated":{"line":28,"column":44}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":28,"column":98}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":28,"column":99}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":29,"column":4}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":15},"generated":{"line":29,"column":15}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":16},"generated":{"line":29,"column":16}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":29,"column":22}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":16},"generated":{"line":29,"column":25}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":29,"column":31}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":4},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":4},"generated":{"line":30,"column":4}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":30,"column":15}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":30,"column":16}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":4},"generated":{"line":30,"column":30}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":50},"generated":{"line":30,"column":33}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":55,"column":4},"generated":{"line":30,"column":47}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":31,"column":11}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":31,"column":22}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":59,"column":0},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":35,"column":4}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":35,"column":21}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":2},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":22},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":61,"column":22},"generated":{"line":37,"column":12}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":22},"generated":{"line":38,"column":11}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":22},"generated":{"line":38,"column":29}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":54},"generated":{"line":38,"column":45}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":54},"generated":{"line":38,"column":55}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":61,"column":22},"generated":{"line":39,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":61,"column":22},"generated":{"line":39,"column":9}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":61,"column":22},"generated":{"line":39,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":61,"column":22},"generated":{"line":39,"column":26}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":61,"column":22},"generated":{"line":39,"column":40}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":62,"column":3},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":62,"column":3},"generated":{"line":40,"column":9}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":62,"column":3},"generated":{"line":40,"column":17}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":62,"column":3},"generated":{"line":40,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":62,"column":3},"generated":{"line":40,"column":28}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":63,"column":2},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":12},"generated":{"line":43,"column":19}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":12},"generated":{"line":43,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":12},"generated":{"line":43,"column":30}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":30},"generated":{"line":43,"column":37}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":30},"generated":{"line":43,"column":47}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":30},"generated":{"line":43,"column":57}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":30},"generated":{"line":43,"column":59}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":30},"generated":{"line":43,"column":65}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":64,"column":30},"generated":{"line":43,"column":67}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":65,"column":10},"generated":{"line":44,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":65,"column":17},"generated":{"line":44,"column":16}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":65,"column":20},"generated":{"line":44,"column":19}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":65,"column":25},"generated":{"line":44,"column":24}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":65,"column":4},"generated":{"line":44,"column":32}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":4},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":10},"generated":{"line":45,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":10},"generated":{"line":45,"column":15}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":10},"generated":{"line":45,"column":18}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":25},"generated":{"line":45,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":10},"generated":{"line":45,"column":37}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":66,"column":4},"generated":{"line":45,"column":39}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":46,"column":8}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":20},"generated":{"line":46,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":21},"generated":{"line":46,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":28},"generated":{"line":46,"column":31}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":28},"generated":{"line":46,"column":32}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":28},"generated":{"line":46,"column":39}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":21},"generated":{"line":46,"column":40}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":38},"generated":{"line":46,"column":41}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":21},"generated":{"line":46,"column":50}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":48},"generated":{"line":46,"column":51}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":21},"generated":{"line":46,"column":61}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":46,"column":62}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":4},"generated":{"line":47,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":4},"generated":{"line":47,"column":4}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":47,"column":16}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":47,"column":17}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":4},"generated":{"line":47,"column":20}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":47,"column":21}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":24},"generated":{"line":47,"column":27}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":24},"generated":{"line":47,"column":28}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":47,"column":37}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":24},"generated":{"line":47,"column":38}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":11},"generated":{"line":47,"column":45}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":68,"column":4},"generated":{"line":47,"column":46}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":48,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":48,"column":11}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":69,"column":3},"generated":{"line":48,"column":23}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":70,"column":0},"generated":{"line":49,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":59,"column":0},"generated":{"line":51,"column":0}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":70,"column":1},"generated":{"line":51,"column":9}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":59,"column":0},"generated":{"line":51,"column":26}},{"source":"../../../src/internal/operators/multicast.ts","name":null,"original":{"line":60,"column":22},"generated":{"line":52,"column":1}}],"sources":{"../../../src/internal/operators/multicast.ts":"import { Subject } from '../Subject';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { ConnectableObservable, connectableObservableDescriptor } from '../observable/ConnectableObservable';\nimport { FactoryOrValue, MonoTypeOperatorFunction, OperatorFunction, UnaryFunction } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function multicast<T>(subjectOrSubjectFactory: FactoryOrValue<Subject<T>>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;\nexport function multicast<T>(SubjectFactory: (this: Observable<T>) => Subject<T>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;\nexport function multicast<T>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector?: MonoTypeOperatorFunction<T>): MonoTypeOperatorFunction<T>;\nexport function multicast<T, R>(SubjectFactory: (this: Observable<T>) => Subject<T>): UnaryFunction<Observable<T>, ConnectableObservable<R>>;\nexport function multicast<T, R>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector?: OperatorFunction<T, R>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits the results of invoking a specified selector on items\n * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.\n *\n * ![](multicast.png)\n *\n * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate subject through\n * which the source sequence's elements will be multicast to the selector function\n * or Subject to push source elements into.\n * @param {Function} [selector] - Optional selector function that can use the multicasted source stream\n * as many times as needed, without causing multiple subscriptions to the source stream.\n * Subscribers to the given source will receive all notifications of the source from the\n * time of the subscription forward.\n * @return {Observable} An Observable that emits the results of invoking the selector\n * on the items emitted by a `ConnectableObservable` that shares a single subscription to\n * the underlying stream.\n * @method multicast\n * @owner Observable\n */\nexport function multicast<T, R>(subjectOrSubjectFactory: Subject<T> | (() => Subject<T>),\n selector?: (source: Observable<T>) => Observable<R>): OperatorFunction<T, R> {\n return function multicastOperatorFunction(source: Observable<T>): Observable<R> {\n let subjectFactory: () => Subject<T>;\n if (typeof subjectOrSubjectFactory === 'function') {\n subjectFactory = <() => Subject<T>>subjectOrSubjectFactory;\n } else {\n subjectFactory = function subjectFactory() {\n return <Subject<T>>subjectOrSubjectFactory;\n };\n }\n\n if (typeof selector === 'function') {\n return source.lift(new MulticastOperator(subjectFactory, selector));\n }\n\n const connectable: any = Object.create(source, connectableObservableDescriptor);\n connectable.source = source;\n connectable.subjectFactory = subjectFactory;\n\n return <ConnectableObservable<R>> connectable;\n };\n}\n\nexport class MulticastOperator<T, R> implements Operator<T, R> {\n constructor(private subjectFactory: () => Subject<T>,\n private selector: (source: Observable<T>) => Observable<R>) {\n }\n call(subscriber: Subscriber<R>, source: any): any {\n const { selector } = this;\n const subject = this.subjectFactory();\n const subscription = selector(subject).subscribe(subscriber);\n subscription.add(source.subscribe(subject));\n return subscription;\n }\n}\n"},"lineCount":null}},"hash":"52ca31e8b9a81ee7bd5e9c2c85627a14","cacheData":{"env":{}}} |