{"id":"43lo","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/endWith.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/endWith.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":"../observable/fromArray","loc":{"line":2,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/endWith.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromArray.js"},{"name":"../observable/scalar","loc":{"line":3,"column":23},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/endWith.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/scalar.js"},{"name":"../observable/empty","loc":{"line":4,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/endWith.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/empty.js"},{"name":"../observable/concat","loc":{"line":5,"column":39},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/endWith.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/concat.js"},{"name":"../util/isScheduler","loc":{"line":6,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/endWith.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isScheduler.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.endWith=c;var e=require(\"../observable/fromArray\"),r=require(\"../observable/scalar\"),t=require(\"../observable/empty\"),a=require(\"../observable/concat\"),o=require(\"../util/isScheduler\");function c(){for(var c=[],l=0;l0?(0,a.concat)(l,(0,e.fromArray)(c,n)):(0,a.concat)(l,(0,t.empty)(n)):(0,a.concat)(l,(0,r.scalar)(c[0]))}}","map":{"mappings":[{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":84}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":86}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":90}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":92}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":100}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":127}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":129}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":137}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":161}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":163}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":171}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":194}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":196}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":204}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":0},"generated":{"line":1,"column":228}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":0},"generated":{"line":1,"column":230}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":0},"generated":{"line":1,"column":238}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":261}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":270}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":274}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":278}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":282}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":284}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":287}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":291}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":27},"generated":{"line":1,"column":293}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":61},"generated":{"line":1,"column":303}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":49,"column":61},"generated":{"line":1,"column":310}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":314}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":316}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":319}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":67,"column":1},"generated":{"line":1,"column":329}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":51,"column":4},"generated":{"line":1,"column":332}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":51,"column":4},"generated":{"line":1,"column":339}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":51,"column":17},"generated":{"line":1,"column":348}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":52,"column":8},"generated":{"line":1,"column":351}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":52,"column":8},"generated":{"line":1,"column":355}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":52,"column":20},"generated":{"line":1,"column":357}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":52,"column":20},"generated":{"line":1,"column":359}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":52,"column":32},"generated":{"line":1,"column":361}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":52,"column":32},"generated":{"line":1,"column":368}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":53,"column":6},"generated":{"line":1,"column":372}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":53,"column":18},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":53,"column":18},"generated":{"line":1,"column":376}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":53,"column":18},"generated":{"line":1,"column":389}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":54,"column":5},"generated":{"line":1,"column":392}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":54,"column":5},"generated":{"line":1,"column":394}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":56,"column":5},"generated":{"line":1,"column":400}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":56,"column":5},"generated":{"line":1,"column":402}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":59,"column":8},"generated":{"line":1,"column":407}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":59,"column":8},"generated":{"line":1,"column":411}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":59,"column":11},"generated":{"line":1,"column":413}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":59,"column":17},"generated":{"line":1,"column":415}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":1,"column":422}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":60,"column":13},"generated":{"line":1,"column":429}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":60,"column":6},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":60,"column":13},"generated":{"line":1,"column":436}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":62,"column":6},"generated":{"line":1,"column":438}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":62,"column":13},"generated":{"line":1,"column":440}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":443}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":445}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":447}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":455}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":458}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":460}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":462}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":473}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":63,"column":5},"generated":{"line":1,"column":475}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":480}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":482}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":484}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":492}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":495}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":499}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":65,"column":5},"generated":{"line":1,"column":506}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":511}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":513}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":515}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":523}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":526}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":528}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":530}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":538}},{"source":"../../../src/internal/operators/endWith.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":540}}],"sources":{"../../../src/internal/operators/endWith.ts":"import { Observable } from '../Observable';\nimport { fromArray } from '../observable/fromArray';\nimport { scalar } from '../observable/scalar';\nimport { empty } from '../observable/empty';\nimport { concat as concatStatic } from '../observable/concat';\nimport { isScheduler } from '../util/isScheduler';\nimport { MonoTypeOperatorFunction, SchedulerLike } from '../types';\n\n/* tslint:disable:max-line-length */\nexport function endWith(scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(v1: T, scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(v1: T, v2: T, scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(v1: T, v2: T, v3: T, scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(v1: T, v2: T, v3: T, v4: T, scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(v1: T, v2: T, v3: T, v4: T, v5: T, scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(v1: T, v2: T, v3: T, v4: T, v5: T, v6: T, scheduler?: SchedulerLike): MonoTypeOperatorFunction;\nexport function endWith(...array: Array): MonoTypeOperatorFunction;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits the items you specify as arguments after it finishes emitting\n * items emitted by the source Observable.\n *\n * ![](endWith.png)\n *\n * ## Example\n * ### After the source observable completes, appends an emission and then completes too.\n *\n * ```javascript\n * of('hi', 'how are you?', 'sorry, I have to go now').pipe(\n * endWith('goodbye!'),\n * )\n * .subscribe(word => console.log(word));\n * // result:\n * // 'hi'\n * // 'how are you?'\n * // 'sorry, I have to go now'\n * // 'goodbye!'\n * ```\n *\n * @param {...T} values - Items you want the modified Observable to emit last.\n * @param {SchedulerLike} [scheduler] - A {@link SchedulerLike} to use for scheduling\n * the emissions of the `next` notifications.\n * @return {Observable} An Observable that emits the items emitted by the source Observable\n * and then emits the items in the specified Iterable.\n * @method endWith\n * @owner Observable\n */\nexport function endWith(...array: Array): MonoTypeOperatorFunction {\n return (source: Observable) => {\n let scheduler = array[array.length - 1];\n if (isScheduler(scheduler)) {\n array.pop();\n } else {\n scheduler = null;\n }\n\n const len = array.length;\n if (len === 1 && !scheduler) {\n return concatStatic(source, scalar(array[0] as T));\n } else if (len > 0) {\n return concatStatic(source, fromArray(array as T[], scheduler));\n } else {\n return concatStatic(source, empty(scheduler) as any);\n }\n };\n}\n"},"lineCount":null}},"hash":"c1197085bf17257aac48976472bf2d48","cacheData":{"env":{}}}