webdetector/.cache/63/88be027960bb6d57bb3e641e33a4fa.json
2018-12-21 13:36:28 +01:00

1 line
51 KiB
JSON

{"id":"GYT2","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowCount.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/windowCount.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395749058},{"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/windowCount.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/windowCount.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"},{"name":"../Subject","loc":{"line":4,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/windowCount.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subject.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.windowCount=n;var t=r(require(\"tslib\")),e=require(\"../Subscriber\"),i=require(\"../Subject\");function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};r.get||r.set?Object.defineProperty(e,i,r):e[i]=t[i]}return e.default=t,e}function n(t,e){return void 0===e&&(e=0),function(i){return i.lift(new o(t,e))}}var o=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.windowSize,this.startWindowEvery))},t}(),s=function(e){function r(t,r,n){var o=e.call(this,t)||this;return o.destination=t,o.windowSize=r,o.startWindowEvery=n,o.windows=[new i.Subject],o.count=0,t.next(o.windows[0]),o}return t.__extends(r,e),r.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,o=this.windows,s=o.length,c=0;c<s&&!this.closed;c++)o[c].next(t);var u=this.count-n+1;if(u>=0&&u%e==0&&!this.closed&&o.shift().complete(),++this.count%e==0&&!this.closed){var w=new i.Subject;o.push(w),r.next(w)}},r.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},r.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},r.prototype._unsubscribe=function(){this.count=0,this.windows=null},r}(e.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":88}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":90}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":94}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":96}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":98}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":106}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":116}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":118}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":126}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":1,"column":143}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":1,"column":153}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":167}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":176}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":178}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":181}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":187}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":189}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":200}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":207}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":209}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":213}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":215}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":221}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":227}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":229}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":233}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":237}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":242}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":244}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":247}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":254}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":264}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":279}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":284}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":286}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":290}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":294}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":296}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":303}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":319}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":326}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":351}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":358}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":383}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":385}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":388}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":391}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":393}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":398}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":400}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":404}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":411}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":426}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":428}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":430}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":435}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":438}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":440}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":443}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":450}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":452}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":460}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":462}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":1,"column":464}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":1,"column":473}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":1,"column":475}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":65,"column":31},"generated":{"line":1,"column":477}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":69,"column":1},"generated":{"line":1,"column":480}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":66,"column":18},"generated":{"line":1,"column":492}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":66,"column":2},"generated":{"line":1,"column":496}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":67,"column":4},"generated":{"line":1,"column":500}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":67,"column":23},"generated":{"line":1,"column":502}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":69,"column":1},"generated":{"line":1,"column":505}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":69,"column":1},"generated":{"line":1,"column":514}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":517}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":524}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":526}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":531}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":535}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":537}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":1,"column":539}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":74,"column":22},"generated":{"line":1,"column":544}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":74,"column":22},"generated":{"line":1,"column":548}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":74,"column":22},"generated":{"line":1,"column":550}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":1,"column":561}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":1,"column":570}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":1,"column":572}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":75,"column":3},"generated":{"line":1,"column":574}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":77,"column":2},"generated":{"line":1,"column":577}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":77,"column":2},"generated":{"line":1,"column":582}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":77,"column":2},"generated":{"line":1,"column":593}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":78,"column":4},"generated":{"line":1,"column":595}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":78,"column":4},"generated":{"line":1,"column":600}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":78,"column":28},"generated":{"line":1,"column":617}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":87,"column":39},"generated":{"line":1,"column":619}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":0},"generated":{"line":1,"column":626}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":0},"generated":{"line":1,"column":628}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":638}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":643}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":652}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":654}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":657}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":664}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":666}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":676}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":680}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":682}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":684}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":689}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":700}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":80,"column":1},"generated":{"line":1,"column":705}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":87,"column":39},"generated":{"line":1,"column":725}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":74,"column":22},"generated":{"line":1,"column":727}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":4},"generated":{"line":1,"column":730}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":732}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":22},"generated":{"line":1,"column":741}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":92,"column":22},"generated":{"line":1,"column":744}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":92,"column":22},"generated":{"line":1,"column":753}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":92,"column":22},"generated":{"line":1,"column":755}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":92,"column":40},"generated":{"line":1,"column":757}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":92,"column":40},"generated":{"line":1,"column":759}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":22},"generated":{"line":1,"column":762}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":22},"generated":{"line":1,"column":766}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":22},"generated":{"line":1,"column":768}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":22},"generated":{"line":1,"column":770}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":38},"generated":{"line":1,"column":775}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":22},"generated":{"line":1,"column":780}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":93,"column":46},"generated":{"line":1,"column":784}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":99,"column":10},"generated":{"line":1,"column":789}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":88,"column":10},"generated":{"line":1,"column":796}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":88,"column":10},"generated":{"line":1,"column":798}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":88,"column":36},"generated":{"line":1,"column":810}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":89,"column":10},"generated":{"line":1,"column":812}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":89,"column":10},"generated":{"line":1,"column":814}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":89,"column":28},"generated":{"line":1,"column":825}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":827}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":95,"column":4},"generated":{"line":1,"column":829}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":95,"column":26},"generated":{"line":1,"column":846}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":848}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":850}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":858}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":859}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":863}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":865}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":1,"column":874}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":1,"column":876}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":96,"column":3},"generated":{"line":1,"column":882}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":884}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":886}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":891}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":893}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":98,"column":12},"generated":{"line":1,"column":901}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":99,"column":10},"generated":{"line":1,"column":905}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":907}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":91,"column":24},"generated":{"line":1,"column":914}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":91,"column":24},"generated":{"line":1,"column":916}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":91,"column":24},"generated":{"line":1,"column":926}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":91,"column":62},"generated":{"line":1,"column":928}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":101,"column":23},"generated":{"line":1,"column":931}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":101,"column":23},"generated":{"line":1,"column":933}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":101,"column":28},"generated":{"line":1,"column":943}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":101,"column":39},"generated":{"line":1,"column":949}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":101,"column":39},"generated":{"line":1,"column":958}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":11},"generated":{"line":1,"column":961}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":10},"generated":{"line":1,"column":965}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":10},"generated":{"line":1,"column":969}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":25},"generated":{"line":1,"column":971}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":33},"generated":{"line":1,"column":976}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":33},"generated":{"line":1,"column":993}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":33},"generated":{"line":1,"column":995}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":33},"generated":{"line":1,"column":1000}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":33},"generated":{"line":1,"column":1017}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":102,"column":33},"generated":{"line":1,"column":1022}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":103,"column":10},"generated":{"line":1,"column":1033}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":103,"column":24},"generated":{"line":1,"column":1035}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":103,"column":24},"generated":{"line":1,"column":1040}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":105,"column":4},"generated":{"line":1,"column":1052}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":105,"column":21},"generated":{"line":1,"column":1054}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":105,"column":24},"generated":{"line":1,"column":1059}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":106,"column":6},"generated":{"line":1,"column":1070}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":106,"column":16},"generated":{"line":1,"column":1072}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":106,"column":21},"generated":{"line":1,"column":1077}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":107,"column":5},"generated":{"line":1,"column":1085}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":107,"column":5},"generated":{"line":1,"column":1087}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":107,"column":5},"generated":{"line":1,"column":1089}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":14},"generated":{"line":1,"column":1096}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":19},"generated":{"line":1,"column":1098}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":19},"generated":{"line":1,"column":1100}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":24},"generated":{"line":1,"column":1102}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":27},"generated":{"line":1,"column":1106}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":37},"generated":{"line":1,"column":1111}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":108,"column":42},"generated":{"line":1,"column":1118}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":109,"column":8},"generated":{"line":1,"column":1122}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":109,"column":14},"generated":{"line":1,"column":1124}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":109,"column":19},"generated":{"line":1,"column":1127}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":109,"column":22},"generated":{"line":1,"column":1132}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":111,"column":5},"generated":{"line":1,"column":1135}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":111,"column":5},"generated":{"line":1,"column":1139}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":111,"column":5},"generated":{"line":1,"column":1141}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":111,"column":5},"generated":{"line":1,"column":1146}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":111,"column":5},"generated":{"line":1,"column":1152}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":111,"column":5},"generated":{"line":1,"column":1154}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":6},"generated":{"line":1,"column":1156}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":8},"generated":{"line":1,"column":1159}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":10},"generated":{"line":1,"column":1162}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":15},"generated":{"line":1,"column":1165}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":20},"generated":{"line":1,"column":1167}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":39},"generated":{"line":1,"column":1170}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":49},"generated":{"line":1,"column":1174}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":112,"column":54},"generated":{"line":1,"column":1179}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":113,"column":6},"generated":{"line":1,"column":1187}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":113,"column":12},"generated":{"line":1,"column":1189}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":113,"column":21},"generated":{"line":1,"column":1197}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":6},"generated":{"line":1,"column":1210}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":6},"generated":{"line":1,"column":1215}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":18},"generated":{"line":1,"column":1221}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":31},"generated":{"line":1,"column":1224}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":31},"generated":{"line":1,"column":1228}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":31},"generated":{"line":1,"column":1233}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":115,"column":31},"generated":{"line":1,"column":1240}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":116,"column":5},"generated":{"line":1,"column":1241}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":116,"column":5},"generated":{"line":1,"column":1245}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":116,"column":5},"generated":{"line":1,"column":1247}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":116,"column":5},"generated":{"line":1,"column":1251}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":116,"column":5},"generated":{"line":1,"column":1253}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":117,"column":3},"generated":{"line":1,"column":1261}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":117,"column":3},"generated":{"line":1,"column":1263}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":117,"column":3},"generated":{"line":1,"column":1268}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":119,"column":12},"generated":{"line":1,"column":1271}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":119,"column":12},"generated":{"line":1,"column":1273}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":119,"column":12},"generated":{"line":1,"column":1278}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":122,"column":13},"generated":{"line":1,"column":1283}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":122,"column":20},"generated":{"line":1,"column":1285}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":122,"column":30},"generated":{"line":1,"column":1295}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":122,"column":36},"generated":{"line":1,"column":1302}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":122,"column":49},"generated":{"line":1,"column":1311}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":123,"column":8},"generated":{"line":1,"column":1314}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":123,"column":8},"generated":{"line":1,"column":1318}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":123,"column":8},"generated":{"line":1,"column":1320}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":123,"column":16},"generated":{"line":1,"column":1325}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":124,"column":7},"generated":{"line":1,"column":1333}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":124,"column":7},"generated":{"line":1,"column":1336}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1338}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1343}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1345}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1352}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1356}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":125,"column":5},"generated":{"line":1,"column":1361}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":126,"column":9},"generated":{"line":1,"column":1369}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":126,"column":20},"generated":{"line":1,"column":1371}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":126,"column":27},"generated":{"line":1,"column":1379}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":126,"column":32},"generated":{"line":1,"column":1385}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":130,"column":10},"generated":{"line":1,"column":1388}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":130,"column":10},"generated":{"line":1,"column":1393}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":130,"column":20},"generated":{"line":1,"column":1405}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":130,"column":25},"generated":{"line":1,"column":1411}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":132,"column":13},"generated":{"line":1,"column":1415}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":132,"column":20},"generated":{"line":1,"column":1417}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":132,"column":30},"generated":{"line":1,"column":1427}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":132,"column":41},"generated":{"line":1,"column":1437}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":133,"column":8},"generated":{"line":1,"column":1448}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":133,"column":8},"generated":{"line":1,"column":1452}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":133,"column":8},"generated":{"line":1,"column":1454}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":133,"column":16},"generated":{"line":1,"column":1459}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":134,"column":7},"generated":{"line":1,"column":1467}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":134,"column":7},"generated":{"line":1,"column":1470}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":135,"column":5},"generated":{"line":1,"column":1472}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":135,"column":5},"generated":{"line":1,"column":1477}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":135,"column":5},"generated":{"line":1,"column":1479}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":135,"column":5},"generated":{"line":1,"column":1486}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":135,"column":5},"generated":{"line":1,"column":1490}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":135,"column":5},"generated":{"line":1,"column":1495}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":136,"column":9},"generated":{"line":1,"column":1503}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":136,"column":20},"generated":{"line":1,"column":1505}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":136,"column":21},"generated":{"line":1,"column":1513}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":140,"column":9},"generated":{"line":1,"column":1524}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":140,"column":9},"generated":{"line":1,"column":1529}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":140,"column":19},"generated":{"line":1,"column":1541}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":142,"column":2},"generated":{"line":1,"column":1553}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":142,"column":3},"generated":{"line":1,"column":1555}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":142,"column":3},"generated":{"line":1,"column":1565}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":142,"column":3},"generated":{"line":1,"column":1578}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":143,"column":0},"generated":{"line":1,"column":1589}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":143,"column":0},"generated":{"line":1,"column":1594}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":143,"column":0},"generated":{"line":1,"column":1600}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":87,"column":49},"generated":{"line":1,"column":1602}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":87,"column":49},"generated":{"line":1,"column":1607}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":143,"column":1},"generated":{"line":1,"column":1615}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":1621}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":1623}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":1624}},{"source":"../../../src/internal/operators/windowCount.ts","name":null,"original":{"line":94,"column":10},"generated":{"line":1,"column":1626}}],"sources":{"../../../src/internal/operators/windowCount.ts":"import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { OperatorFunction } from '../types';\n\n/**\n * Branch out the source Observable values as a nested Observable with each\n * nested Observable emitting at most `windowSize` values.\n *\n * <span class=\"informal\">It's like {@link bufferCount}, but emits a nested\n * Observable instead of an array.</span>\n *\n * ![](windowCount.png)\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows every `startWindowEvery`\n * items, each containing no more than `windowSize` items. When the source\n * Observable completes or encounters an error, the output Observable emits\n * the current window and propagates the notification from the source\n * Observable. If `startWindowEvery` is not provided, then new windows are\n * started immediately at the start of the source and when each window completes\n * with size `windowSize`.\n *\n * ## Examples\n * Ignore every 3rd click event, starting from the first one\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(\n * windowCount(3)),\n * map(win => win.skip(1)), // skip first of every 3 clicks\n * mergeAll(), // flatten the Observable-of-Observables\n * );\n * result.subscribe(x => console.log(x));\n * ```\n *\n * Ignore every 3rd click event, starting from the third one\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const result = clicks.pipe(\n * windowCount(2, 3),\n * mergeAll(), // flatten the Observable-of-Observables\n * );\n * result.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link window}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link bufferCount}\n *\n * @param {number} windowSize The maximum number of values emitted by each\n * window.\n * @param {number} [startWindowEvery] Interval at which to start a new window.\n * For example if `startWindowEvery` is `2`, then a new window will be started\n * on every other value from the source. A new window is started at the\n * beginning of the source by default.\n * @return {Observable<Observable<T>>} An Observable of windows, which in turn\n * are Observable of values.\n * @method windowCount\n * @owner Observable\n */\nexport function windowCount<T>(windowSize: number,\n startWindowEvery: number = 0): OperatorFunction<T, Observable<T>> {\n return function windowCountOperatorFunction(source: Observable<T>) {\n return source.lift(new WindowCountOperator<T>(windowSize, startWindowEvery));\n };\n}\n\nclass WindowCountOperator<T> implements Operator<T, Observable<T>> {\n\n constructor(private windowSize: number,\n private startWindowEvery: number) {\n }\n\n call(subscriber: Subscriber<Observable<T>>, source: any): any {\n return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowCountSubscriber<T> extends Subscriber<T> {\n private windows: Subject<T>[] = [ new Subject<T>() ];\n private count: number = 0;\n\n constructor(protected destination: Subscriber<Observable<T>>,\n private windowSize: number,\n private startWindowEvery: number) {\n super(destination);\n destination.next(this.windows[0]);\n }\n\n protected _next(value: T) {\n const startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;\n const destination = this.destination;\n const windowSize = this.windowSize;\n const windows = this.windows;\n const len = windows.length;\n\n for (let i = 0; i < len && !this.closed; i++) {\n windows[i].next(value);\n }\n const c = this.count - windowSize + 1;\n if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {\n windows.shift().complete();\n }\n if (++this.count % startWindowEvery === 0 && !this.closed) {\n const window = new Subject<T>();\n windows.push(window);\n destination.next(window);\n }\n }\n\n protected _error(err: any) {\n const windows = this.windows;\n if (windows) {\n while (windows.length > 0 && !this.closed) {\n windows.shift().error(err);\n }\n }\n this.destination.error(err);\n }\n\n protected _complete() {\n const windows = this.windows;\n if (windows) {\n while (windows.length > 0 && !this.closed) {\n windows.shift().complete();\n }\n }\n this.destination.complete();\n }\n\n protected _unsubscribe() {\n this.count = 0;\n this.windows = null;\n }\n}\n"},"lineCount":null}},"hash":"d8c43a0d947d7b684be4a6ebf92db10f","cacheData":{"env":{}}}