summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/rxjs/bundles/rxjs.umd.min.js
blob: ad956739957adec388f72e27921c048a0cc64a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
/**
  @license
  Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt
 **/
/**
  @license
  Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt
 **/
/*
 *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
*****************************************************************************/
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,d,l){if(l.get||l.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[d]=l.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(e,d,l,k){if(d){l=$jscomp.global;e=e.split(".");for(k=0;k<e.length-1;k++){var x=e[k];x in l||(l[x]={});l=l[x]}e=e[e.length-1];k=l[e];d=d(k);d!=k&&null!=d&&$jscomp.defineProperty(l,e,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Object.setPrototypeOf",function(e){return e?e:"object"!=typeof"".__proto__?null:function(d,e){d.__proto__=e;if(d.__proto__!==e)throw new TypeError(d+" is not extensible");return d}},"es6","es5");
$jscomp.owns=function(e,d){return Object.prototype.hasOwnProperty.call(e,d)};$jscomp.polyfill("Object.assign",function(e){return e?e:function(d,e){for(var k=1;k<arguments.length;k++){var l=arguments[k];if(l)for(var m in l)$jscomp.owns(l,m)&&(d[m]=l[m])}return d}},"es6-impl","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;
$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};
$jscomp.arrayIterator=function(e){var d=0;return $jscomp.iteratorPrototype(function(){return d<e.length?{done:!1,value:e[d++]}:{done:!0}})};$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this};return e};$jscomp.makeIterator=function(e){$jscomp.initSymbolIterator();var d=e[Symbol.iterator];return d?d.call(e):$jscomp.arrayIterator(e)};$jscomp.EXPOSE_ASYNC_EXECUTOR=!0;$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.polyfill("Promise",function(e){function d(){this.batch_=null}if(e&&!$jscomp.FORCE_POLYFILL_PROMISE)return e;d.prototype.asyncExecute=function(d){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(d);return this};d.prototype.asyncExecuteBatch_=function(){var d=this;this.asyncExecuteFunction(function(){d.executeBatch_()})};var l=$jscomp.global.setTimeout;d.prototype.asyncExecuteFunction=function(d){l(d,0)};d.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var d=
this.batch_;this.batch_=[];for(var e=0;e<d.length;++e){var n=d[e];delete d[e];try{n()}catch(I){this.asyncThrow_(I)}}}this.batch_=null};d.prototype.asyncThrow_=function(d){this.asyncExecuteFunction(function(){throw d;})};var k=function(d){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var e=this.createResolveAndReject_();try{d(e.resolve,e.reject)}catch(n){e.reject(n)}};k.prototype.createResolveAndReject_=function(){function d(d){return function(m){n||(n=!0,d.call(e,m))}}var e=this,n=
!1;return{resolve:d(this.resolveTo_),reject:d(this.reject_)}};k.prototype.resolveTo_=function(d){if(d===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(d instanceof k)this.settleSameAsPromise_(d);else{var e;a:switch(typeof d){case "object":e=null!=d;break a;case "function":e=!0;break a;default:e=!1}e?this.resolveToNonPromiseObj_(d):this.fulfill_(d)}};k.prototype.resolveToNonPromiseObj_=function(d){var e=void 0;try{e=d.then}catch(n){this.reject_(n);return}"function"==
typeof e?this.settleSameAsThenable_(e,d):this.fulfill_(d)};k.prototype.reject_=function(d){this.settle_(2,d)};k.prototype.fulfill_=function(d){this.settle_(1,d)};k.prototype.settle_=function(d,e){if(0!=this.state_)throw Error("Cannot settle("+d+", "+e|"): Promise already settled in state"+this.state_);this.state_=d;this.result_=e;this.executeOnSettledCallbacks_()};k.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var d=this.onSettledCallbacks_,e=0;e<d.length;++e)d[e].call(),
d[e]=null;this.onSettledCallbacks_=null}};var x=new d;k.prototype.settleSameAsPromise_=function(d){var e=this.createResolveAndReject_();d.callWhenSettled_(e.resolve,e.reject)};k.prototype.settleSameAsThenable_=function(d,e){var n=this.createResolveAndReject_();try{d.call(e,n.resolve,n.reject)}catch(I){n.reject(I)}};k.prototype.then=function(d,e){function n(d,e){return"function"==typeof d?function(e){try{l(d(e))}catch(ea){m(ea)}}:e}var l,m,Q=new k(function(d,e){l=d;m=e});this.callWhenSettled_(n(d,
l),n(e,m));return Q};k.prototype.catch=function(d){return this.then(void 0,d)};k.prototype.callWhenSettled_=function(d,e){function n(){switch(k.state_){case 1:d(k.result_);break;case 2:e(k.result_);break;default:throw Error("Unexpected state: "+k.state_);}}var k=this;null==this.onSettledCallbacks_?x.asyncExecute(n):this.onSettledCallbacks_.push(function(){x.asyncExecute(n)})};k.resolve=function(d){return d instanceof k?d:new k(function(e,n){e(d)})};k.reject=function(d){return new k(function(e,n){n(d)})};
k.race=function(d){return new k(function(e,n){for(var l=$jscomp.makeIterator(d),m=l.next();!m.done;m=l.next())k.resolve(m.value).callWhenSettled_(e,n)})};k.all=function(d){var e=$jscomp.makeIterator(d),n=e.next();return n.done?k.resolve([]):new k(function(d,l){function m(e){return function(n){A[e]=n;I--;0==I&&d(A)}}var A=[],I=0;do A.push(void 0),I++,k.resolve(n.value).callWhenSettled_(m(A.length-1),l),n=e.next();while(!n.done)})};$jscomp.EXPOSE_ASYNC_EXECUTOR&&(k.$jscomp$new$AsyncExecutor=function(){return new d});
return k},"es6-impl","es3");
$jscomp.polyfill("WeakMap",function(e){function d(d){$jscomp.owns(d,k)||$jscomp.defineProperty(d,k,{value:{}})}function l(e){var n=Object[e];n&&(Object[e]=function(e){d(e);return n(e)})}if(function(){if(!e||!Object.seal)return!1;try{var d=Object.seal({}),n=Object.seal({}),k=new e([[d,2],[n,3]]);if(2!=k.get(d)||3!=k.get(n))return!1;k.delete(d);k.set(n,4);return!k.has(d)&&4==k.get(n)}catch(A){return!1}}())return e;var k="$jscomp_hidden_"+Math.random().toString().substring(2);l("freeze");l("preventExtensions");
l("seal");var x=0,m=function(d){this.id_=(x+=Math.random()+1).toString();if(d){$jscomp.initSymbol();$jscomp.initSymbolIterator();d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)e=e.value,this.set(e[0],e[1])}};m.prototype.set=function(e,n){d(e);if(!$jscomp.owns(e,k))throw Error("WeakMap key fail: "+e);e[k][this.id_]=n;return this};m.prototype.get=function(d){return $jscomp.owns(d,k)?d[k][this.id_]:void 0};m.prototype.has=function(d){return $jscomp.owns(d,k)&&$jscomp.owns(d[k],this.id_)};m.prototype.delete=
function(d){return $jscomp.owns(d,k)&&$jscomp.owns(d[k],this.id_)?delete d[k][this.id_]:!1};return m},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_MAP=!1;
$jscomp.polyfill("Map",function(e){if(!$jscomp.ASSUME_NO_NATIVE_MAP&&function(){if(!e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),k=new e($jscomp.makeIterator([[d,"s"]]));if("s"!=k.get(d)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=d||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||"t"!=m.value[1]||!l.next().done?!1:!0}catch(va){return!1}}())return e;$jscomp.initSymbol();
$jscomp.initSymbolIterator();var d=new WeakMap,l=function(d){this.data_={};this.head_=m();this.size=0;if(d){d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)e=e.value,this.set(e[0],e[1])}};l.prototype.set=function(d,e){var n=k(this,d);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=e:(n.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:d,value:e},n.list.push(n.entry),this.head_.previous.next=n.entry,this.head_.previous=n.entry,this.size++);return this};l.prototype.delete=
function(d){d=k(this,d);return d.entry&&d.list?(d.list.splice(d.index,1),d.list.length||delete this.data_[d.id],d.entry.previous.next=d.entry.next,d.entry.next.previous=d.entry.previous,d.entry.head=null,this.size--,!0):!1};l.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=m();this.size=0};l.prototype.has=function(d){return!!k(this,d).entry};l.prototype.get=function(d){return(d=k(this,d).entry)&&d.value};l.prototype.entries=function(){return x(this,function(d){return[d.key,
d.value]})};l.prototype.keys=function(){return x(this,function(d){return d.key})};l.prototype.values=function(){return x(this,function(d){return d.value})};l.prototype.forEach=function(d,e){for(var k=this.entries(),l;!(l=k.next()).done;)l=l.value,d.call(e,l[1],l[0],this)};l.prototype[Symbol.iterator]=l.prototype.entries;var k=function(e,k){var l;l=k&&typeof k;"object"==l||"function"==l?d.has(k)?l=d.get(k):(l=""+ ++Q,d.set(k,l)):l="p_"+k;var m=e.data_[l];if(m&&$jscomp.owns(e.data_,l))for(e=0;e<m.length;e++){var n=
m[e];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:e,entry:n}}return{id:l,list:m,index:-1,entry:void 0}},x=function(d,e){var k=d.head_;return $jscomp.iteratorPrototype(function(){if(k){for(;k.head!=d.head_;)k=k.previous;for(;k.next!=k.head;)return k=k.next,{done:!1,value:e(k)};k=null}return{done:!0,value:void 0}})},m=function(){var d={};return d.previous=d.next=d.head=d},Q=0;return l},"es6-impl","es3");$jscomp.array=$jscomp.array||{};
$jscomp.iteratorFromArray=function(e,d){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var l=0,k={next:function(){if(l<e.length){var x=l++;return{value:d(x,e[x]),done:!1}}k.next=function(){return{done:!0,value:void 0}};return k.next()}};k[Symbol.iterator]=function(){return k};return k};$jscomp.polyfill("Array.prototype.values",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(d,e){return e})}},"es6","es3");
$jscomp.polyfill("Array.prototype.keys",function(e){return e?e:function(){return $jscomp.iteratorFromArray(this,function(d){return d})}},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.polyfill("Set",function(e){if(!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var d=Object.seal({x:4}),k=new e($jscomp.makeIterator([d]));if(!k.has(d)||1!=k.size||k.add(d)!=k||1!=k.size||k.add({x:4})!=k||2!=k.size)return!1;var x=k.entries(),m=x.next();if(m.done||m.value[0]!=d||m.value[1]!=d)return!1;m=x.next();return m.done||m.value[0]==d||4!=m.value[0].x||m.value[1]!=m.value[0]?!1:x.next().done}catch(Q){return!1}}())return e;
$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=function(d){this.map_=new Map;if(d){d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)this.add(e.value)}this.size=this.map_.size};d.prototype.add=function(d){this.map_.set(d,d);this.size=this.map_.size;return this};d.prototype.delete=function(d){d=this.map_.delete(d);this.size=this.map_.size;return d};d.prototype.clear=function(){this.map_.clear();this.size=0};d.prototype.has=function(d){return this.map_.has(d)};d.prototype.entries=function(){return this.map_.entries()};
d.prototype.values=function(){return this.map_.values()};d.prototype.keys=d.prototype.values;d.prototype[Symbol.iterator]=d.prototype.values;d.prototype.forEach=function(d,e){var k=this;this.map_.forEach(function(l){return d.call(e,l,l,k)})};return d},"es6-impl","es3");
(function(e,d){"object"===typeof exports&&"undefined"!==typeof module?d(exports):"function"===typeof define&&define.amd?define(["exports"],d):d(e.rxjs=e.rxjs||{})})(this,function(e){function d(c,a){function b(){this.constructor=c}Qb(c,a);c.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}function l(c){return"function"===typeof c}function k(c){setTimeout(function(){throw c;})}function x(){try{return Pa.apply(this,arguments)}catch(c){return p.e=c,p}}function m(c){Pa=c;return x}function Q(c){Error.call(this);
this.message=c?c.length+" errors occurred during unsubscription:\n"+c.map(function(a,b){return b+1+") "+a.toString()}).join("\n  "):"";this.name="UnsubscriptionError";this.errors=c;return this}function n(c){return c.reduce(function(a,b){return a.concat(b instanceof fa?b.errors:b)},[])}function I(c){for(;c;){var a=c.destination,b=c.isStopped;if(c.closed||b)return!1;c=a&&a instanceof q?a:null}return!0}function A(){}function wa(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return va(c)}
function va(c){return c?1===c.length?c[0]:function(a){return c.reduce(function(b,a){return a(b)},a)}:A}function Oa(c){c||(c=H.Promise||Promise);if(!c)throw Error("no Promise impl found");return c}function J(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}function ea(){return function(c){return c.lift(new Rb(c))}}function K(c){return c?Sb(c):R}function Sb(c){return new r(function(a){return c.schedule(function(){return a.complete()})})}function B(c){return c&&
"function"===typeof c.schedule}function L(c,a){return a?new r(function(b){var f=new w,g=0;f.add(a.schedule(function(){g===c.length?b.complete():(b.next(c[g++]),b.closed||f.add(this.schedule()))}));return f}):new r(Qa(c))}function xa(c){var a=new r(function(b){b.next(c);b.complete()});a._isScalar=!0;a.value=c;return a}function ya(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];a=c[c.length-1];B(a)?c.pop():a=void 0;switch(c.length){case 0:return K(a);case 1:return a?L(c,a):xa(c[0]);default:return L(c,
a)}}function za(c,a){return a?new r(function(b){return a.schedule(Tb,0,{error:c,subscriber:b})}):new r(function(b){return b.error(c)})}function Tb(c){c.subscriber.error(c.error)}function S(c){return c}function T(){Error.call(this);this.message="argument out of range";this.name="ArgumentOutOfRangeError";return this}function Ra(){Error.call(this);this.message="no elements in sequence";this.name="EmptyError";return this}function Aa(){Error.call(this);this.message="Timeout has occurred";this.name="TimeoutError";
return this}function G(c,a){return function(b){if("function"!==typeof c)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return b.lift(new Ub(c,a))}}function Sa(c,a,b){if(a)if(B(a))b=a;else return function(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];return Sa(c,b).apply(void 0,f).pipe(G(function(b){return D(b)?a.apply(void 0,b):a(b)}))};return function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];var h=this,d,e={context:h,subject:d,callbackFunc:c,
scheduler:b};return new r(function(f){if(b)return b.schedule(Vb,0,{args:a,subscriber:f,params:e});if(!d){d=new aa;try{c.apply(h,a.concat([function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];d.next(1>=b.length?b[0]:b);d.complete()}]))}catch(ga){I(d)?d.error(ga):console.warn(ga)}}return d.subscribe(f)})}}function Vb(c){var a=this,b=c.args,f=c.subscriber;c=c.params;var g=c.callbackFunc,h=c.context,d=c.scheduler,e=c.subject;if(!e){e=c.subject=new aa;try{g.apply(h,b.concat([function(){for(var b=
[],c=0;c<arguments.length;c++)b[c]=arguments[c];a.add(d.schedule(Wb,0,{value:1>=b.length?b[0]:b,subject:e}))}]))}catch(U){e.error(U)}}this.add(e.subscribe(f))}function Wb(c){var a=c.subject;a.next(c.value);a.complete()}function Ta(c,a,b){if(a)if(B(a))b=a;else return function(){for(var f=[],g=0;g<arguments.length;g++)f[g]=arguments[g];return Ta(c,b).apply(void 0,f).pipe(G(function(b){return D(b)?a.apply(void 0,b):a(b)}))};return function(){for(var a=[],g=0;g<arguments.length;g++)a[g]=arguments[g];
var h={subject:void 0,args:a,callbackFunc:c,scheduler:b,context:this};return new r(function(f){var g=h.context,d=h.subject;if(b)return b.schedule(Xb,0,{params:h,subscriber:f,context:g});if(!d){d=h.subject=new aa;try{c.apply(g,a.concat([function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];(a=b.shift())?d.error(a):(d.next(1>=b.length?b[0]:b),d.complete())}]))}catch(ga){I(d)?d.error(ga):console.warn(ga)}}return d.subscribe(f)})}}function Xb(c){var a=this,b=c.params,f=c.subscriber;c=c.context;
var g=b.callbackFunc,h=b.args,d=b.scheduler,e=b.subject;if(!e){e=b.subject=new aa;try{g.apply(c,h.concat([function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];(c=b.shift())?a.add(d.schedule(Ua,0,{err:c,subject:e})):a.add(d.schedule(Yb,0,{value:1>=b.length?b[0]:b,subject:e}))}]))}catch(U){this.add(d.schedule(Ua,0,{err:U,subject:e}))}}this.add(e.subscribe(f))}function Yb(c){var a=c.subject;a.next(c.value);a.complete()}function Ua(c){c.subject.error(c.err)}function Va(c){return c&&"function"!==
typeof c.subscribe&&"function"===typeof c.then}function u(c,a,b,f,g){void 0===g&&(g=new O(c,b,f));if(!g.closed)return Wa(a)(g)}function Zb(c,a){return a?new r(function(b){var f=new w;f.add(a.schedule(function(){return c.then(function(c){f.add(a.schedule(function(){b.next(c);f.add(a.schedule(function(){return b.complete()}))}))},function(c){f.add(a.schedule(function(){return b.error(c)}))})}));return f}):new r(Xa(c))}function $b(c,a){if(!c)throw Error("Iterable cannot be null");return a?new r(function(b){var f=
new w,g;f.add(function(){g&&"function"===typeof g.return&&g.return()});f.add(a.schedule(function(){g=c[M]();f.add(a.schedule(function(){if(!b.closed){var a,c;try{var f=g.next();a=f.value;c=f.done}catch(U){b.error(U);return}c?b.complete():(b.next(a),this.schedule())}}))}));return f}):new r(Ya(c))}function ac(c,a){return a?new r(function(b){var f=new w;f.add(a.schedule(function(){var g=c[ba]();f.add(g.subscribe({next:function(c){f.add(a.schedule(function(){return b.next(c)}))},error:function(c){f.add(a.schedule(function(){return b.error(c)}))},
complete:function(){f.add(a.schedule(function(){return b.complete()}))}}))}));return f}):new r(Za(c))}function N(c,a){if(!a)return c instanceof r?c:new r(Wa(c));if(null!=c){if(c&&"function"===typeof c[ba])return ac(c,a);if(Va(c))return Zb(c,a);if($a(c))return L(c,a);if(c&&"function"===typeof c[M]||"string"===typeof c)return $b(c,a)}throw new TypeError((null!==c&&typeof c||c)+" is not observable");}function V(c,a,b){void 0===b&&(b=Number.POSITIVE_INFINITY);if("function"===typeof a)return function(f){return f.pipe(V(function(b,
f){return N(c(b,f)).pipe(G(function(c,g){return a(b,c,f,g)}))},b))};"number"===typeof a&&(b=a);return function(a){return a.lift(new bc(c,b))}}function Ca(c){void 0===c&&(c=Number.POSITIVE_INFINITY);return V(S,c)}function ab(){return Ca(1)}function P(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return 1===c.length||2===c.length&&B(c[1])?N(c[0]):ab()(ya.apply(void 0,c))}function Da(c){return new r(function(a){var b;try{b=c()}catch(f){a.error(f);return}return(b?N(b):K()).subscribe(a)})}
function bb(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var b;"function"===typeof c[c.length-1]&&(b=c.pop());1===c.length&&D(c[0])&&(c=c[0]);return 0===c.length?R:b?bb(c).pipe(G(function(a){return b.apply(void 0,a)})):new r(function(b){return new cc(b,c)})}function cb(c,a,b,f){l(b)&&(f=b,b=void 0);return f?cb(c,a,b).pipe(G(function(b){return D(b)?f.apply(void 0,b):f(b)})):new r(function(f){db(c,a,function(b){1<arguments.length?f.next(Array.prototype.slice.call(arguments)):f.next(b)},
f,b)})}function db(c,a,b,f,g){var h;if(c&&"function"===typeof c.addEventListener&&"function"===typeof c.removeEventListener)c.addEventListener(a,b,g),h=function(){return c.removeEventListener(a,b,g)};else if(c&&"function"===typeof c.on&&"function"===typeof c.off)c.on(a,b),h=function(){return c.off(a,b)};else if(c&&"function"===typeof c.addListener&&"function"===typeof c.removeListener)c.addListener(a,b),h=function(){return c.removeListener(a,b)};else if(c&&c.length)for(var d=0,e=c.length;d<e;d++)db(c[d],
a,b,f,g);else throw new TypeError("Invalid event target");f.add(h)}function eb(c,a,b){return b?eb(c,a).pipe(G(function(a){return D(a)?b.apply(void 0,a):b(a)})):new r(function(b){var f=function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return b.next(1===a.length?a[0]:a)},h;try{h=c(f)}catch(E){b.error(E);return}if(l(a))return function(){return a(f,h)}})}function dc(c){var a=c.subscriber,b=c.condition;if(!a.closed){if(c.needIterate)try{c.state=c.iterate(c.state)}catch(h){a.error(h);
return}else c.needIterate=!0;if(b){var f=void 0;try{f=b(c.state)}catch(h){a.error(h);return}if(!f){a.complete();return}if(a.closed)return}var g;try{g=c.resultSelector(c.state)}catch(h){a.error(h);return}if(!a.closed&&(a.next(g),!a.closed))return this.schedule(c)}}function ca(c){return!D(c)&&0<=c-parseFloat(c)+1}function ec(c){var a=c.subscriber,b=c.counter;c=c.period;a.next(b);this.schedule({subscriber:a,counter:b+1,period:c},c)}function fb(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];
var a=Number.POSITIVE_INFINITY,b=null,f=c[c.length-1];B(f)?(b=c.pop(),1<c.length&&"number"===typeof c[c.length-1]&&(a=c.pop())):"number"===typeof f&&(a=c.pop());return null===b&&1===c.length&&c[0]instanceof r?c[0]:Ca(a)(L(c,b))}function Ea(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(0===c.length)return R;var b=c[0],f=c.slice(1);return 1===c.length&&D(b)?Ea.apply(void 0,b):new r(function(a){var c=function(){return a.add(Ea.apply(void 0,f).subscribe(a))};return N(b).subscribe({next:function(b){a.next(b)},
error:c,complete:c})})}function fc(c){var a=c.keys,b=c.index,f=c.subscriber,g=c.subscription;c=c.obj;if(!f.closed)if(b<a.length){var h=a[b];f.next([h,c[h]]);g.add(this.schedule({keys:a,index:b+1,subscriber:f,subscription:g,obj:c}))}else f.complete()}function gb(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(1===c.length)if(D(c[0]))c=c[0];else return c[0];return L(c,void 0).lift(new gc)}function hc(c){var a=c.start,b=c.index,f=c.subscriber;b>=c.count?f.complete():(f.next(a),f.closed||
(c.index=b+1,c.start=a+1,this.schedule(c)))}function hb(c,a,b){void 0===c&&(c=0);var f=-1;ca(a)?f=1>Number(a)&&1||Number(a):B(a)&&(b=a);B(b)||(b=C);return new r(function(a){var g=ca(c)?c:+c-b.now();return b.schedule(ic,g,{index:0,period:f,subscriber:a})})}function ic(c){var a=c.index,b=c.period,f=c.subscriber;f.next(a);if(!f.closed){if(-1===b)return f.complete();c.index=a+1;this.schedule(c,b)}}function ib(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];a=c[c.length-1];"function"===typeof a&&
c.pop();return L(c,void 0).lift(new jb(a))}function kb(c){return function(a){return a.lift(new jc(c))}}function lb(c){var a=c.subscriber,b=c.context;b&&a.closeContext(b);a.closed||(c.context=a.openContext(),c.context.closeAction=this.schedule(c,c.bufferTimeSpan))}function kc(c){var a=c.bufferCreationInterval,b=c.bufferTimeSpan,f=c.subscriber,g=c.scheduler,h=f.openContext();f.closed||(f.add(h.closeAction=g.schedule(mb,b,{subscriber:f,context:h})),this.schedule(c,a))}function mb(c){c.subscriber.closeContext(c.context)}
function nb(c,a){return V(c,a,1)}function lc(c){c.debouncedNext()}function ha(c){void 0===c&&(c=null);return function(a){return a.lift(new mc(c))}}function ob(c,a){return function(b){return b.lift(new nc(c,a))}}function da(c,a){return function(b){return b.lift(new oc(c,a))}}function pb(c,a,b){return function(f){return f.lift(new pc(c,a,b))}}function qc(){return new ia}function Fa(c){return function(a){return 0===c?K():a.lift(new rc(c))}}function qb(c,a){return a?function(b){return b.pipe(qb(function(b,
g){return N(c(b,g)).pipe(G(function(c,f){return a(b,c,g,f)}))}))}:function(b){return b.lift(new sc(c))}}function na(c){return function(a){return 0===c?K():a.lift(new tc(c))}}function oa(c,a){var b=!1;2<=arguments.length&&(b=!0);return function(f){return f.lift(new uc(c,a,b))}}function pa(c,a){return 2<=arguments.length?function(b){return wa(oa(c,a),na(1),ha(a))(b)}:function(b){return wa(oa(function(b,a,h){return c(b,a,h+1)}),na(1))(b)}}function W(c,a){return function(b){var f;f="function"===typeof c?
c:function(){return c};if("function"===typeof a)return b.lift(new vc(f,a));var g=Object.create(b,wc);g.source=b;g.subjectFactory=f;return g}}function xc(c,a){function b(){return!b.pred.apply(b.thisArg,arguments)}b.pred=c;b.thisArg=a;return b}function yc(c,a){return function(b){var f=b;for(b=0;b<a;b++)if(f=f[c[b]],"undefined"===typeof f)return;return f}}function zc(c){var a=c.period;c.subscriber.notifyNext();this.schedule(c,a)}function Ac(){return new y}function Bc(c,a,b){var f,g=0,h,d=!1,e=!1;return function(E){g++;
if(!f||d)d=!1,f=new X(c,a,b),h=E.subscribe({next:function(b){f.next(b)},error:function(b){d=!0;f.error(b)},complete:function(){e=!0;f.complete()}});var k=f.subscribe(this);return function(){g--;k.unsubscribe();h&&0===g&&e&&h.unsubscribe()}}}function ja(c,a){return"function"===typeof a?function(b){return b.pipe(ja(function(b,g){return N(c(b,g)).pipe(G(function(c,f){return a(b,c,g,f)}))}))}:function(b){return b.lift(new Cc(c))}}function Dc(c){c.subscriber.clearThrottle()}function rb(c,a,b){void 0===
b&&(b=C);return function(f){var g=c instanceof Date&&!isNaN(+c),h=g?+c-b.now():Math.abs(c);return f.lift(new Ec(h,g,a,b))}}function Fc(c,a,b){if(0===b)return[a];c.push(a);return c}function Gc(c){var a=c.subscriber,b=c.windowTimeSpan,f=c.window;f&&a.closeWindow(f);c.window=a.openWindow();this.schedule(c,b)}function Hc(c){var a=c.windowTimeSpan,b=c.subscriber,f=c.scheduler,g=c.windowCreationInterval,h=b.openWindow(),d={action:this,subscription:null};d.subscription=f.schedule(sb,a,{subscriber:b,window:h,
context:d});this.add(d.subscription);this.schedule(c,g)}function sb(c){var a=c.subscriber,b=c.window;(c=c.context)&&c.action&&c.subscription&&c.action.remove(c.subscription);a.closeWindow(b)}function tb(c,a){for(var b=0,f=a.length;b<f;b++)for(var g=a[b],h=Object.getOwnPropertyNames(g.prototype),d=0,e=h.length;d<e;d++){var k=h[d];c.prototype[k]=g.prototype[k]}}function Ic(c,a){void 0===a&&(a=null);return new Y({method:"GET",url:c,headers:a})}function Jc(c,a,b){return new Y({method:"POST",url:c,body:a,
headers:b})}function Kc(c,a){return new Y({method:"DELETE",url:c,headers:a})}function Lc(c,a,b){return new Y({method:"PUT",url:c,body:a,headers:b})}function Mc(c,a,b){return new Y({method:"PATCH",url:c,body:a,headers:b})}function Nc(c,a){return Oc(new Y({method:"GET",url:c,responseType:"json",headers:a}))}function ub(c,a,b){Error.call(this);this.message=c;this.name="AjaxError";this.xhr=a;this.request=b;this.status=a.status;this.responseType=a.responseType||b.responseType;this.response=vb(this.responseType,
a);return this}function Pc(c){return"response"in c?c.responseType?c.response:JSON.parse(c.response||c.responseText||"null"):JSON.parse(c.responseText||"null")}function vb(c,a){switch(c){case "json":return m(Pc)(a);case "xml":return a.responseXML;default:return"response"in a?a.response:a.responseText}}var Qb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])},Qc=Object.assign||function(c){for(var a,b=1,
f=arguments.length;b<f;b++){a=arguments[b];for(var g in a)Object.prototype.hasOwnProperty.call(a,g)&&(c[g]=a[g])}return c},Ga=!1,H={Promise:void 0,set useDeprecatedSynchronousErrorHandling(c){c?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):Ga&&console.log("RxJS: Back to a better error behavior. Thank you. \x3c3");Ga=c},get useDeprecatedSynchronousErrorHandling(){return Ga}},qa={closed:!0,next:function(c){},error:function(c){if(H.useDeprecatedSynchronousErrorHandling)throw c;
k(c)},complete:function(){}},D=Array.isArray||function(c){return c&&"number"===typeof c.length},p={e:{}},Pa;Q.prototype=Object.create(Error.prototype);var fa=Q,w=function(){function c(a){this.closed=!1;this._subscriptions=this._parents=this._parent=null;a&&(this._unsubscribe=a)}c.prototype.unsubscribe=function(){var a=!1,b;if(!this.closed){var c=this._parent,g=this._parents,h=this._unsubscribe,d=this._subscriptions;this.closed=!0;this._subscriptions=this._parents=this._parent=null;for(var e=-1,k=
g?g.length:0;c;)c.remove(this),c=++e<k&&g[e]||null;l(h)&&(c=m(h).call(this),c===p&&(a=!0,b=b||(p.e instanceof fa?n(p.e.errors):[p.e])));if(D(d))for(e=-1,k=d.length;++e<k;)c=d[e],null!=c&&"object"===typeof c&&(c=m(c.unsubscribe).call(c),c===p&&(a=!0,b=b||[],c=p.e,c instanceof fa?b=b.concat(n(c.errors)):b.push(c)));if(a)throw new fa(b);}};c.prototype.add=function(a){if(!a||a===c.EMPTY)return c.EMPTY;if(a===this)return this;var b=a;switch(typeof a){case "function":b=new c(a);case "object":if(b.closed||
"function"!==typeof b.unsubscribe)return b;if(this.closed)return b.unsubscribe(),b;"function"!==typeof b._addParent&&(a=b,b=new c,b._subscriptions=[a]);break;default:throw Error("unrecognized teardown "+a+" added to Subscription.");}(this._subscriptions||(this._subscriptions=[])).push(b);b._addParent(this);return b};c.prototype.remove=function(a){var b=this._subscriptions;b&&(a=b.indexOf(a),-1!==a&&b.splice(a,1))};c.prototype._addParent=function(a){var b=this._parent,c=this._parents;b&&b!==a?c?-1===
c.indexOf(a)&&c.push(a):this._parents=[a]:this._parent=a};c.EMPTY=function(a){a.closed=!0;return a}(new c);return c}(),ra="function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),q=function(c){function a(b,f,g){var h=c.call(this)||this;h.syncErrorValue=null;h.syncErrorThrown=!1;h.syncErrorThrowable=!1;h.isStopped=!1;h._parentSubscription=null;switch(arguments.length){case 0:h.destination=qa;break;case 1:if(!b){h.destination=qa;break}if("object"===typeof b){b instanceof a?
(h.syncErrorThrowable=b.syncErrorThrowable,h.destination=b,b.add(h)):(h.syncErrorThrowable=!0,h.destination=new wb(h,b));break}default:h.syncErrorThrowable=!0,h.destination=new wb(h,b,f,g)}return h}d(a,c);a.prototype[ra]=function(){return this};a.create=function(b,c,g){b=new a(b,c,g);b.syncErrorThrowable=!1;return b};a.prototype.next=function(b){this.isStopped||this._next(b)};a.prototype.error=function(b){this.isStopped||(this.isStopped=!0,this._error(b))};a.prototype.complete=function(){this.isStopped||
(this.isStopped=!0,this._complete())};a.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,c.prototype.unsubscribe.call(this))};a.prototype._next=function(b){this.destination.next(b)};a.prototype._error=function(b){this.destination.error(b);this.unsubscribe()};a.prototype._complete=function(){this.destination.complete();this.unsubscribe()};a.prototype._unsubscribeAndRecycle=function(){var b=this._parent,a=this._parents;this._parents=this._parent=null;this.unsubscribe();this.isStopped=
this.closed=!1;this._parent=b;this._parents=a;this._parentSubscription=null;return this};return a}(w),wb=function(c){function a(b,a,g,h){var f=c.call(this)||this;f._parentSubscriber=b;var d;b=f;l(a)?d=a:a&&(d=a.next,g=a.error,h=a.complete,a!==qa&&(b=Object.create(a),l(b.unsubscribe)&&f.add(b.unsubscribe.bind(b)),b.unsubscribe=f.unsubscribe.bind(f)));f._context=b;f._next=d;f._error=g;f._complete=h;return f}d(a,c);a.prototype.next=function(b){if(!this.isStopped&&this._next){var a=this._parentSubscriber;
H.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable?this.__tryOrSetError(a,this._next,b)&&this.unsubscribe():this.__tryOrUnsub(this._next,b)}};a.prototype.error=function(b){if(!this.isStopped){var a=this._parentSubscriber,c=H.useDeprecatedSynchronousErrorHandling;if(this._error)c&&a.syncErrorThrowable?this.__tryOrSetError(a,this._error,b):this.__tryOrUnsub(this._error,b),this.unsubscribe();else if(a.syncErrorThrowable)c?(a.syncErrorValue=b,a.syncErrorThrown=!0):k(b),this.unsubscribe();else{this.unsubscribe();
if(c)throw b;k(b)}}};a.prototype.complete=function(){var b=this;if(!this.isStopped){var a=this._parentSubscriber;if(this._complete){var c=function(){return b._complete.call(b._context)};H.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable?this.__tryOrSetError(a,c):this.__tryOrUnsub(c)}this.unsubscribe()}};a.prototype.__tryOrUnsub=function(b,a){try{b.call(this._context,a)}catch(g){this.unsubscribe();if(H.useDeprecatedSynchronousErrorHandling)throw g;k(g)}};a.prototype.__tryOrSetError=function(b,
a,c){if(!H.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{a.call(this._context,c)}catch(h){return H.useDeprecatedSynchronousErrorHandling?(b.syncErrorValue=h,b.syncErrorThrown=!0):k(h),!0}return!1};a.prototype._unsubscribe=function(){var b=this._parentSubscriber;this._parentSubscriber=this._context=null;b.unsubscribe()};return a}(q),ba="function"===typeof Symbol&&Symbol.observable||"@@observable",r=function(){function c(a){this._isScalar=!1;a&&(this._subscribe=a)}c.prototype.lift=
function(a){var b=new c;b.source=this;b.operator=a;return b};c.prototype.subscribe=function(a,b,c){var f=this.operator;a:{if(a){if(a instanceof q)break a;if(a[ra]){a=a[ra]();break a}}a=a||b||c?new q(a,b,c):new q(qa)}f?f.call(a,this.source):a.add(this.source||H.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(H.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};
c.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){H.useDeprecatedSynchronousErrorHandling&&(a.syncErrorThrown=!0,a.syncErrorValue=b),I(a)?a.error(b):console.warn(b)}};c.prototype.forEach=function(a,b){var c=this;b=Oa(b);return new b(function(b,f){var g;g=c.subscribe(function(b){try{a(b)}catch(U){f(U),g&&g.unsubscribe()}},f,b)})};c.prototype._subscribe=function(a){var b=this.source;return b&&b.subscribe(a)};c.prototype[ba]=function(){return this};c.prototype.pipe=function(){for(var a=
[],b=0;b<arguments.length;b++)a[b]=arguments[b];return 0===a.length?this:va(a)(this)};c.prototype.toPromise=function(a){var b=this;a=Oa(a);return new a(function(a,c){var f;b.subscribe(function(b){return f=b},function(b){return c(b)},function(){return a(f)})})};c.create=function(a){return new c(a)};return c}();J.prototype=Object.create(Error.prototype);var xb=function(c){function a(b,a){var f=c.call(this)||this;f.subject=b;f.subscriber=a;f.closed=!1;return f}d(a,c);a.prototype.unsubscribe=function(){if(!this.closed){this.closed=
!0;var b=this.subject,a=b.observers;this.subject=null;!a||0===a.length||b.isStopped||b.closed||(b=a.indexOf(this.subscriber),-1!==b&&a.splice(b,1))}};return a}(w),yb=function(c){function a(b){var a=c.call(this,b)||this;a.destination=b;return a}d(a,c);return a}(q),y=function(c){function a(){var b=c.call(this)||this;b.observers=[];b.closed=!1;b.isStopped=!1;b.hasError=!1;b.thrownError=null;return b}d(a,c);a.prototype[ra]=function(){return new yb(this)};a.prototype.lift=function(b){var a=new Ha(this,
this);a.operator=b;return a};a.prototype.next=function(b){if(this.closed)throw new J;if(!this.isStopped)for(var a=this.observers,c=a.length,a=a.slice(),h=0;h<c;h++)a[h].next(b)};a.prototype.error=function(b){if(this.closed)throw new J;this.hasError=!0;this.thrownError=b;this.isStopped=!0;for(var a=this.observers,c=a.length,a=a.slice(),h=0;h<c;h++)a[h].error(b);this.observers.length=0};a.prototype.complete=function(){if(this.closed)throw new J;this.isStopped=!0;for(var b=this.observers,a=b.length,
b=b.slice(),c=0;c<a;c++)b[c].complete();this.observers.length=0};a.prototype.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};a.prototype._trySubscribe=function(b){if(this.closed)throw new J;return c.prototype._trySubscribe.call(this,b)};a.prototype._subscribe=function(b){if(this.closed)throw new J;if(this.hasError)return b.error(this.thrownError),w.EMPTY;if(this.isStopped)return b.complete(),w.EMPTY;this.observers.push(b);return new xb(this,b)};a.prototype.asObservable=function(){var b=
new r;b.source=this;return b};a.create=function(b,a){return new Ha(b,a)};return a}(r),Ha=function(c){function a(b,a){var f=c.call(this)||this;f.destination=b;f.source=a;return f}d(a,c);a.prototype.next=function(b){var a=this.destination;a&&a.next&&a.next(b)};a.prototype.error=function(b){var a=this.destination;a&&a.error&&this.destination.error(b)};a.prototype.complete=function(){var b=this.destination;b&&b.complete&&this.destination.complete()};a.prototype._subscribe=function(b){return this.source?
this.source.subscribe(b):w.EMPTY};return a}(y),Rb=function(){function c(a){this.connectable=a}c.prototype.call=function(a,b){var c=this.connectable;c._refCount++;a=new Rc(a,c);b=b.subscribe(a);a.closed||(a.connection=c.connect());return b};return c}(),Rc=function(c){function a(b,a){b=c.call(this,b)||this;b.connectable=a;return b}d(a,c);a.prototype._unsubscribe=function(){var b=this.connectable;if(b){this.connectable=null;var a=b._refCount;0>=a?this.connection=null:(b._refCount=a-1,1<a?this.connection=
null:(a=this.connection,b=b._connection,this.connection=null,!b||a&&b!==a||b.unsubscribe()))}else this.connection=null};return a}(q),zb=function(c){function a(b,a){var f=c.call(this)||this;f.source=b;f.subjectFactory=a;f._refCount=0;f._isComplete=!1;return f}d(a,c);a.prototype._subscribe=function(b){return this.getSubject().subscribe(b)};a.prototype.getSubject=function(){var b=this._subject;if(!b||b.isStopped)this._subject=this.subjectFactory();return this._subject};a.prototype.connect=function(){var b=
this._connection;b||(this._isComplete=!1,b=this._connection=new w,b.add(this.source.subscribe(new Sc(this.getSubject(),this))),b.closed?(this._connection=null,b=w.EMPTY):this._connection=b);return b};a.prototype.refCount=function(){return ea()(this)};return a}(r),ka=zb.prototype,wc={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ka._subscribe},_isComplete:{value:ka._isComplete,writable:!0},getSubject:{value:ka.getSubject},
connect:{value:ka.connect},refCount:{value:ka.refCount}},Sc=function(c){function a(b,a){b=c.call(this,b)||this;b.connectable=a;return b}d(a,c);a.prototype._error=function(b){this._unsubscribe();c.prototype._error.call(this,b)};a.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();c.prototype._complete.call(this)};a.prototype._unsubscribe=function(){var b=this.connectable;if(b){this.connectable=null;var a=b._connection;b._refCount=0;b._subject=null;b._connection=null;
a&&a.unsubscribe()}};return a}(yb);(function(c){function a(b,a){b=c.call(this,b)||this;b.connectable=a;return b}d(a,c);a.prototype._unsubscribe=function(){var b=this.connectable;if(b){this.connectable=null;var a=b._refCount;0>=a?this.connection=null:(b._refCount=a-1,1<a?this.connection=null:(a=this.connection,b=b._connection,this.connection=null,!b||a&&b!==a||b.unsubscribe()))}else this.connection=null};return a})(q);var Uc=function(){function c(a,b,c,g){this.keySelector=a;this.elementSelector=b;
this.durationSelector=c;this.subjectSelector=g}c.prototype.call=function(a,b){return b.subscribe(new Tc(a,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))};return c}(),Tc=function(c){function a(b,a,g,h,d){b=c.call(this,b)||this;b.keySelector=a;b.elementSelector=g;b.durationSelector=h;b.subjectSelector=d;b.groups=null;b.attemptedToUnsubscribe=!1;b.count=0;return b}d(a,c);a.prototype._next=function(b){var a;try{a=this.keySelector(b)}catch(g){this.error(g);return}this._group(b,
a)};a.prototype._group=function(b,a){var c=this.groups;c||(c=this.groups=new Map);var f=c.get(a),d;if(this.elementSelector)try{d=this.elementSelector(b)}catch(Ba){this.error(Ba)}else d=b;if(!f&&(f=this.subjectSelector?this.subjectSelector():new y,c.set(a,f),b=new Ia(a,f,this),this.destination.next(b),this.durationSelector)){b=void 0;try{b=this.durationSelector(new Ia(a,f))}catch(Ba){this.error(Ba);return}this.add(b.subscribe(new Vc(a,f,this)))}f.closed||f.next(d)};a.prototype._error=function(b){var a=
this.groups;a&&(a.forEach(function(a,c){a.error(b)}),a.clear());this.destination.error(b)};a.prototype._complete=function(){var b=this.groups;b&&(b.forEach(function(b,a){b.complete()}),b.clear());this.destination.complete()};a.prototype.removeGroup=function(b){this.groups.delete(b)};a.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&c.prototype.unsubscribe.call(this))};return a}(q),Vc=function(c){function a(b,a,g){var f=c.call(this,a)||this;f.key=b;f.group=
a;f.parent=g;return f}d(a,c);a.prototype._next=function(b){this.complete()};a.prototype._unsubscribe=function(){var b=this.parent,a=this.key;this.key=this.parent=null;b&&b.removeGroup(a)};return a}(q),Ia=function(c){function a(b,a,g){var f=c.call(this)||this;f.key=b;f.groupSubject=a;f.refCountSubscription=g;return f}d(a,c);a.prototype._subscribe=function(b){var a=new w,c=this.refCountSubscription,h=this.groupSubject;c&&!c.closed&&a.add(new Wc(c));a.add(h.subscribe(b));return a};return a}(r),Wc=function(c){function a(b){var a=
c.call(this)||this;a.parent=b;b.count++;return a}d(a,c);a.prototype.unsubscribe=function(){var b=this.parent;b.closed||this.closed||(c.prototype.unsubscribe.call(this),--b.count,0===b.count&&b.attemptedToUnsubscribe&&b.unsubscribe())};return a}(w),Ab=function(c){function a(b){var a=c.call(this)||this;a._value=b;return a}d(a,c);Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0});a.prototype._subscribe=function(b){var a=c.prototype._subscribe.call(this,
b);a&&!a.closed&&b.next(this._value);return a};a.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new J;return this._value};a.prototype.next=function(b){c.prototype.next.call(this,this._value=b)};return a}(y),la=function(c){function a(b,a){var f=c.call(this,b,a)||this;f.scheduler=b;f.work=a;f.pending=!1;return f}d(a,c);a.prototype.schedule=function(b,a){void 0===a&&(a=0);if(this.closed)return this;this.state=b;b=this.id;var c=this.scheduler;null!=b&&(this.id=
this.recycleAsyncId(c,b,a));this.pending=!0;this.delay=a;this.id=this.id||this.requestAsyncId(c,this.id,a);return this};a.prototype.requestAsyncId=function(b,a,c){void 0===c&&(c=0);return setInterval(b.flush.bind(b,this),c)};a.prototype.recycleAsyncId=function(b,a,c){void 0===c&&(c=0);if(null!==c&&this.delay===c&&!1===this.pending)return a;clearInterval(a)};a.prototype.execute=function(b,a){if(this.closed)return Error("executing a cancelled action");this.pending=!1;if(b=this._execute(b,a))return b;
!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};a.prototype._execute=function(b,a){a=!1;var c=void 0;try{this.work(b)}catch(h){a=!0,c=!!h&&h||Error(h)}if(a)return this.unsubscribe(),c};a.prototype._unsubscribe=function(){var b=this.id,a=this.scheduler,c=a.actions,h=c.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==h&&c.splice(h,1);null!=b&&(this.id=this.recycleAsyncId(a,b,null));this.delay=null};return a}(function(c){function a(b,
a){return c.call(this)||this}d(a,c);a.prototype.schedule=function(b,a){return this};return a}(w)),Xc=function(c){function a(b,a){var f=c.call(this,b,a)||this;f.scheduler=b;f.work=a;return f}d(a,c);a.prototype.schedule=function(b,a){void 0===a&&(a=0);if(0<a)return c.prototype.schedule.call(this,b,a);this.delay=a;this.state=b;this.scheduler.flush(this);return this};a.prototype.execute=function(b,a){return 0<a||this.closed?c.prototype.execute.call(this,b,a):this._execute(b,a)};a.prototype.requestAsyncId=
function(b,a,g){void 0===g&&(g=0);return null!==g&&0<g||null===g&&0<this.delay?c.prototype.requestAsyncId.call(this,b,a,g):b.flush(this)};return a}(la),Ja=function(){function c(a,b){void 0===b&&(b=c.now);this.SchedulerAction=a;this.now=b}c.prototype.schedule=function(a,b,c){void 0===b&&(b=0);return(new this.SchedulerAction(this,a)).schedule(c,b)};c.now=function(){return Date.now()};return c}(),Z=function(c){function a(b,f){void 0===f&&(f=Ja.now);var g=c.call(this,b,function(){return a.delegate&&a.delegate!==
g?a.delegate.now():f()})||this;g.actions=[];g.active=!1;g.scheduled=void 0;return g}d(a,c);a.prototype.schedule=function(b,f,g){void 0===f&&(f=0);return a.delegate&&a.delegate!==this?a.delegate.schedule(b,f,g):c.prototype.schedule.call(this,b,f,g)};a.prototype.flush=function(b){var a=this.actions;if(this.active)a.push(b);else{var c;this.active=!0;do if(c=b.execute(b.state,b.delay))break;while(b=a.shift());this.active=!1;if(c){for(;b=a.shift();)b.unsubscribe();throw c;}}};return a}(Ja),Bb=new (function(c){function a(){return null!==
c&&c.apply(this,arguments)||this}d(a,c);return a}(Z))(Xc),R=new r(function(c){return c.complete()}),Qa=function(c){return function(a){for(var b=0,f=c.length;b<f&&!a.closed;b++)a.next(c[b]);a.closed||a.complete()}},z=function(){function c(a,b,c){this.kind=a;this.value=b;this.error=c;this.hasValue="N"===a}c.prototype.observe=function(a){switch(this.kind){case "N":return a.next&&a.next(this.value);case "E":return a.error&&a.error(this.error);case "C":return a.complete&&a.complete()}};c.prototype.do=
function(a,b,c){switch(this.kind){case "N":return a&&a(this.value);case "E":return b&&b(this.error);case "C":return c&&c()}};c.prototype.accept=function(a,b,c){return a&&"function"===typeof a.next?this.observe(a):this.do(a,b,c)};c.prototype.toObservable=function(){switch(this.kind){case "N":return ya(this.value);case "E":return za(this.error);case "C":return K()}throw Error("unexpected notification kind value");};c.createNext=function(a){return"undefined"!==typeof a?new c("N",a):c.undefinedValueNotification};
c.createError=function(a){return new c("E",void 0,a)};c.createComplete=function(){return c.completeNotification};c.completeNotification=new c("C");c.undefinedValueNotification=new c("N",void 0);return c}(),Yc=function(){function c(a,b){void 0===b&&(b=0);this.scheduler=a;this.delay=b}c.prototype.call=function(a,b){return b.subscribe(new Cb(a,this.scheduler,this.delay))};return c}(),Cb=function(c){function a(b,a,g){void 0===g&&(g=0);b=c.call(this,b)||this;b.scheduler=a;b.delay=g;return b}d(a,c);a.dispatch=
function(b){b.notification.observe(b.destination);this.unsubscribe()};a.prototype.scheduleMessage=function(b){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new Zc(b,this.destination)))};a.prototype._next=function(b){this.scheduleMessage(z.createNext(b))};a.prototype._error=function(b){this.scheduleMessage(z.createError(b));this.unsubscribe()};a.prototype._complete=function(){this.scheduleMessage(z.createComplete());this.unsubscribe()};return a}(q),Zc=function(){return function(c,
a){this.notification=c;this.destination=a}}(),X=function(c){function a(b,a,g){void 0===b&&(b=Number.POSITIVE_INFINITY);void 0===a&&(a=Number.POSITIVE_INFINITY);var f=c.call(this)||this;f.scheduler=g;f._events=[];f._infiniteTimeWindow=!1;f._bufferSize=1>b?1:b;f._windowTime=1>a?1:a;a===Number.POSITIVE_INFINITY?(f._infiniteTimeWindow=!0,f.next=f.nextInfiniteTimeWindow):f.next=f.nextTimeWindow;return f}d(a,c);a.prototype.nextInfiniteTimeWindow=function(b){var a=this._events;a.push(b);a.length>this._bufferSize&&
a.shift();c.prototype.next.call(this,b)};a.prototype.nextTimeWindow=function(b){this._events.push(new $c(this._getNow(),b));this._trimBufferThenGetEvents();c.prototype.next.call(this,b)};a.prototype._subscribe=function(b){var a=this._infiniteTimeWindow,c=a?this._events:this._trimBufferThenGetEvents(),h=this.scheduler,d=c.length,e;if(this.closed)throw new J;this.isStopped||this.hasError?e=w.EMPTY:(this.observers.push(b),e=new xb(this,b));h&&b.add(b=new Cb(b,h));if(a)for(a=0;a<d&&!b.closed;a++)b.next(c[a]);
else for(a=0;a<d&&!b.closed;a++)b.next(c[a].value);this.hasError?b.error(this.thrownError):this.isStopped&&b.complete();return e};a.prototype._getNow=function(){return(this.scheduler||Bb).now()};a.prototype._trimBufferThenGetEvents=function(){for(var b=this._getNow(),a=this._bufferSize,c=this._windowTime,h=this._events,d=h.length,e=0;e<d&&!(b-h[e].time<c);)e++;d>a&&(e=Math.max(e,d-a));0<e&&h.splice(0,e);return h};return a}(y),$c=function(){return function(c,a){this.time=c;this.value=a}}(),aa=function(c){function a(){var b=
null!==c&&c.apply(this,arguments)||this;b.value=null;b.hasNext=!1;b.hasCompleted=!1;return b}d(a,c);a.prototype._subscribe=function(b){return this.hasError?(b.error(this.thrownError),w.EMPTY):this.hasCompleted&&this.hasNext?(b.next(this.value),b.complete(),w.EMPTY):c.prototype._subscribe.call(this,b)};a.prototype.next=function(b){this.hasCompleted||(this.value=b,this.hasNext=!0)};a.prototype.error=function(b){this.hasCompleted||c.prototype.error.call(this,b)};a.prototype.complete=function(){this.hasCompleted=
!0;this.hasNext&&c.prototype.next.call(this,this.value);c.prototype.complete.call(this)};return a}(y),ad=1,Ka={},Db={setImmediate:function(c){var a=ad++;Ka[a]=c;Promise.resolve().then(function(){var b=Ka[a];b&&b()});return a},clearImmediate:function(c){delete Ka[c]}},bd=function(c){function a(b,a){var f=c.call(this,b,a)||this;f.scheduler=b;f.work=a;return f}d(a,c);a.prototype.requestAsyncId=function(b,a,g){void 0===g&&(g=0);if(null!==g&&0<g)return c.prototype.requestAsyncId.call(this,b,a,g);b.actions.push(this);
return b.scheduled||(b.scheduled=Db.setImmediate(b.flush.bind(b,null)))};a.prototype.recycleAsyncId=function(b,a,g){void 0===g&&(g=0);if(null!==g&&0<g||null===g&&0<this.delay)return c.prototype.recycleAsyncId.call(this,b,a,g);0===b.actions.length&&(Db.clearImmediate(a),b.scheduled=void 0)};return a}(la),sa=new (function(c){function a(){return null!==c&&c.apply(this,arguments)||this}d(a,c);a.prototype.flush=function(b){this.active=!0;this.scheduled=void 0;var a=this.actions,c,h=-1,d=a.length;b=b||
a.shift();do if(c=b.execute(b.state,b.delay))break;while(++h<d&&(b=a.shift()));this.active=!1;if(c){for(;++h<d&&(b=a.shift());)b.unsubscribe();throw c;}};return a}(Z))(bd),C=new Z(la),cd=function(c){function a(b,a){var f=c.call(this,b,a)||this;f.scheduler=b;f.work=a;return f}d(a,c);a.prototype.requestAsyncId=function(b,a,g){void 0===g&&(g=0);if(null!==g&&0<g)return c.prototype.requestAsyncId.call(this,b,a,g);b.actions.push(this);return b.scheduled||(b.scheduled=requestAnimationFrame(function(){return b.flush(null)}))};
a.prototype.recycleAsyncId=function(b,a,g){void 0===g&&(g=0);if(null!==g&&0<g||null===g&&0<this.delay)return c.prototype.recycleAsyncId.call(this,b,a,g);0===b.actions.length&&(cancelAnimationFrame(a),b.scheduled=void 0)};return a}(la),dd=new (function(c){function a(){return null!==c&&c.apply(this,arguments)||this}d(a,c);a.prototype.flush=function(b){this.active=!0;this.scheduled=void 0;var a=this.actions,c,h=-1,d=a.length;b=b||a.shift();do if(c=b.execute(b.state,b.delay))break;while(++h<d&&(b=a.shift()));
this.active=!1;if(c){for(;++h<d&&(b=a.shift());)b.unsubscribe();throw c;}};return a}(Z))(cd),Eb=function(c){function a(b,a){void 0===b&&(b=La);void 0===a&&(a=Number.POSITIVE_INFINITY);var f=c.call(this,b,function(){return f.frame})||this;f.maxFrames=a;f.frame=0;f.index=-1;return f}d(a,c);a.prototype.flush=function(){for(var b=this.actions,a=this.maxFrames,c,h;(h=b.shift())&&(this.frame=h.delay)<=a&&!(c=h.execute(h.state,h.delay)););if(c){for(;h=b.shift();)h.unsubscribe();throw c;}};a.frameTimeFactor=
10;return a}(Z),La=function(c){function a(b,a,g){void 0===g&&(g=b.index+=1);var f=c.call(this,b,a)||this;f.scheduler=b;f.work=a;f.index=g;f.active=!0;f.index=b.index=g;return f}d(a,c);a.prototype.schedule=function(b,f){void 0===f&&(f=0);if(!this.id)return c.prototype.schedule.call(this,b,f);this.active=!1;var g=new a(this.scheduler,this.work);this.add(g);return g.schedule(b,f)};a.prototype.requestAsyncId=function(b,c,g){void 0===g&&(g=0);this.delay=b.frame+g;b=b.actions;b.push(this);b.sort(a.sortActions);
return!0};a.prototype.recycleAsyncId=function(b,a,c){};a.prototype._execute=function(b,a){if(!0===this.active)return c.prototype._execute.call(this,b,a)};a.sortActions=function(b,a){return b.delay===a.delay?b.index===a.index?0:b.index>a.index?1:-1:b.delay>a.delay?1:-1};return a}(la);T.prototype=Object.create(Error.prototype);Ra.prototype=Object.create(Error.prototype);var ia=Ra;Aa.prototype=Object.create(Error.prototype);var Ub=function(){function c(a,b){this.project=a;this.thisArg=b}c.prototype.call=
function(a,b){return b.subscribe(new ed(a,this.project,this.thisArg))};return c}(),ed=function(c){function a(b,a,g){b=c.call(this,b)||this;b.project=a;b.count=0;b.thisArg=g||b;return b}d(a,c);a.prototype._next=function(b){var a;try{a=this.project.call(this.thisArg,b,this.count++)}catch(g){this.destination.error(g);return}this.destination.next(a)};return a}(q),v=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}d(a,c);a.prototype.notifyNext=function(b,a,c,h,d){this.destination.next(a)};
a.prototype.notifyError=function(b,a){this.destination.error(b)};a.prototype.notifyComplete=function(b){this.destination.complete()};return a}(q),O=function(c){function a(b,a,g){var f=c.call(this)||this;f.parent=b;f.outerValue=a;f.outerIndex=g;f.index=0;return f}d(a,c);a.prototype._next=function(b){this.parent.notifyNext(this.outerValue,b,this.outerIndex,this.index++,this)};a.prototype._error=function(b){this.parent.notifyError(b,this);this.unsubscribe()};a.prototype._complete=function(){this.parent.notifyComplete(this);
this.unsubscribe()};return a}(q),Xa=function(c){return function(a){c.then(function(b){a.closed||(a.next(b),a.complete())},function(b){return a.error(b)}).then(null,k);return a}},M;M="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";var Ya=function(c){return function(a){var b=c[M]();do{var f=b.next();if(f.done){a.complete();break}a.next(f.value);if(a.closed)break}while(1);"function"===typeof b.return&&a.add(function(){b.return&&b.return()});return a}},Za=function(c){return function(a){var b=
c[ba]();if("function"!==typeof b.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return b.subscribe(a)}},$a=function(c){return c&&"number"===typeof c.length&&"function"!==typeof c},Wa=function(c){if(c instanceof r)return function(a){if(c._isScalar)a.next(c.value),a.complete();else return c.subscribe(a)};if(c&&"function"===typeof c[ba])return Za(c);if($a(c))return Qa(c);if(Va(c))return Xa(c);if(c&&"function"===typeof c[M])return Ya(c);throw new TypeError("You provided "+
(null!=c&&"object"===typeof c?"an invalid object":"'"+c+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.");},Fb={},Ma=function(){function c(a){this.resultSelector=a}c.prototype.call=function(a,b){return b.subscribe(new fd(a,this.resultSelector))};return c}(),fd=function(c){function a(b,a){b=c.call(this,b)||this;b.resultSelector=a;b.active=0;b.values=[];b.observables=[];return b}d(a,c);a.prototype._next=function(b){this.values.push(Fb);this.observables.push(b)};
a.prototype._complete=function(){var b=this.observables,a=b.length;if(0===a)this.destination.complete();else{this.toRespond=this.active=a;for(var c=0;c<a;c++){var h=b[c];this.add(u(this,h,h,c))}}};a.prototype.notifyComplete=function(b){0===--this.active&&this.destination.complete()};a.prototype.notifyNext=function(b,a,c,h,d){b=this.values;h=b[c];h=this.toRespond?h===Fb?--this.toRespond:this.toRespond:0;b[c]=a;0===h&&(this.resultSelector?this._tryResultSelector(b):this.destination.next(b.slice()))};
a.prototype._tryResultSelector=function(b){var a;try{a=this.resultSelector.apply(this,b)}catch(g){this.destination.error(g);return}this.destination.next(a)};return a}(v),bc=function(){function c(a,b){void 0===b&&(b=Number.POSITIVE_INFINITY);this.project=a;this.concurrent=b}c.prototype.call=function(a,b){return b.subscribe(new gd(a,this.project,this.concurrent))};return c}(),gd=function(c){function a(b,a,g){void 0===g&&(g=Number.POSITIVE_INFINITY);b=c.call(this,b)||this;b.project=a;b.concurrent=g;
b.hasCompleted=!1;b.buffer=[];b.active=0;b.index=0;return b}d(a,c);a.prototype._next=function(b){this.active<this.concurrent?this._tryNext(b):this.buffer.push(b)};a.prototype._tryNext=function(b){var a,c=this.index++;try{a=this.project(b,c)}catch(h){this.destination.error(h);return}this.active++;this._innerSub(a,b,c)};a.prototype._innerSub=function(b,a,c){var f=new O(this,void 0,void 0);this.destination.add(f);u(this,b,a,c,f)};a.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&
0===this.buffer.length&&this.destination.complete();this.unsubscribe()};a.prototype.notifyNext=function(b,a,c,h,d){this.destination.next(a)};a.prototype.notifyComplete=function(b){var a=this.buffer;this.remove(b);this.active--;0<a.length?this._next(a.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return a}(v),cc=function(c){function a(b,a){b=c.call(this,b)||this;b.sources=a;b.completed=0;b.haveValues=0;var f=a.length;b.values=Array(f);for(var h=0;h<f;h++){var d=u(b,a[h],
null,h);d&&b.add(d)}return b}d(a,c);a.prototype.notifyNext=function(b,a,c,h,d){this.values[c]=a;d._hasValue||(d._hasValue=!0,this.haveValues++)};a.prototype.notifyComplete=function(b){var a=this.destination,c=this.haveValues,h=this.values,d=h.length;b._hasValue?(this.completed++,this.completed===d&&(c===d&&a.next(h),a.complete())):a.complete()};return a}(v),Gb=new r(A),gc=function(){function c(){}c.prototype.call=function(a,b){return b.subscribe(new hd(a))};return c}(),hd=function(c){function a(b){b=
c.call(this,b)||this;b.hasFirst=!1;b.observables=[];b.subscriptions=[];return b}d(a,c);a.prototype._next=function(b){this.observables.push(b)};a.prototype._complete=function(){var b=this.observables,a=b.length;if(0===a)this.destination.complete();else{for(var c=0;c<a&&!this.hasFirst;c++){var h=b[c],h=u(this,h,h,c);this.subscriptions&&this.subscriptions.push(h);this.add(h)}this.observables=null}};a.prototype.notifyNext=function(b,a,c,h,d){if(!this.hasFirst){this.hasFirst=!0;for(b=0;b<this.subscriptions.length;b++)b!==
c&&(h=this.subscriptions[b],h.unsubscribe(),this.remove(h));this.subscriptions=null}this.destination.next(a)};return a}(v),jb=function(){function c(a){this.resultSelector=a}c.prototype.call=function(a,b){return b.subscribe(new id(a,this.resultSelector))};return c}(),id=function(c){function a(b,a,g){void 0===g&&(g=Object.create(null));b=c.call(this,b)||this;b.iterators=[];b.active=0;b.resultSelector="function"===typeof a?a:null;b.values=g;return b}d(a,c);a.prototype._next=function(b){var a=this.iterators;
D(b)?a.push(new jd(b)):"function"===typeof b[M]?a.push(new kd(b[M]())):a.push(new ld(this.destination,this,b))};a.prototype._complete=function(){var b=this.iterators,a=b.length;this.unsubscribe();if(0===a)this.destination.complete();else{this.active=a;for(var c=0;c<a;c++){var h=b[c];h.stillUnsubscribed?this.destination.add(h.subscribe(h,c)):this.active--}}};a.prototype.notifyInactive=function(){this.active--;0===this.active&&this.destination.complete()};a.prototype.checkIterators=function(){for(var b=
this.iterators,a=b.length,c=this.destination,h=0;h<a;h++){var d=b[h];if("function"===typeof d.hasValue&&!d.hasValue())return}for(var e=!1,k=[],h=0;h<a;h++){var d=b[h],l=d.next();d.hasCompleted()&&(e=!0);if(l.done){c.complete();return}k.push(l.value)}this.resultSelector?this._tryresultSelector(k):c.next(k);e&&c.complete()};a.prototype._tryresultSelector=function(b){var a;try{a=this.resultSelector.apply(this,b)}catch(g){this.destination.error(g);return}this.destination.next(a)};return a}(q),kd=function(){function c(a){this.iterator=
a;this.nextResult=a.next()}c.prototype.hasValue=function(){return!0};c.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};c.prototype.hasCompleted=function(){var a=this.nextResult;return a&&a.done};return c}(),jd=function(){function c(a){this.array=a;this.length=this.index=0;this.length=a.length}c.prototype[M]=function(){return this};c.prototype.next=function(a){a=this.index++;var b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};
c.prototype.hasValue=function(){return this.array.length>this.index};c.prototype.hasCompleted=function(){return this.array.length===this.index};return c}(),ld=function(c){function a(b,a,g){b=c.call(this,b)||this;b.parent=a;b.observable=g;b.stillUnsubscribed=!0;b.buffer=[];b.isComplete=!1;return b}d(a,c);a.prototype[M]=function(){return this};a.prototype.next=function(){var b=this.buffer;return 0===b.length&&this.isComplete?{value:null,done:!0}:{value:b.shift(),done:!1}};a.prototype.hasValue=function(){return 0<
this.buffer.length};a.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};a.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()};a.prototype.notifyNext=function(b,a,c,h,d){this.buffer.push(a);this.parent.checkIterators()};a.prototype.subscribe=function(b,a){return u(this,this.observable,this,a)};return a}(v),jc=function(){function c(a){this.durationSelector=a}c.prototype.call=function(a,
b){return b.subscribe(new md(a,this.durationSelector))};return c}(),md=function(c){function a(b,a){b=c.call(this,b)||this;b.durationSelector=a;b.hasValue=!1;return b}d(a,c);a.prototype._next=function(b){this.value=b;this.hasValue=!0;this.throttled||(b=m(this.durationSelector)(b),b===p?this.destination.error(p.e):(b=u(this,b),!b||b.closed?this.clearThrottle():this.add(this.throttled=b)))};a.prototype.clearThrottle=function(){var b=this.value,a=this.hasValue,c=this.throttled;c&&(this.remove(c),this.throttled=
null,c.unsubscribe());a&&(this.value=null,this.hasValue=!1,this.destination.next(b))};a.prototype.notifyNext=function(b,a,c,h){this.clearThrottle()};a.prototype.notifyComplete=function(){this.clearThrottle()};return a}(v),od=function(){function c(a){this.closingNotifier=a}c.prototype.call=function(a,b){return b.subscribe(new nd(a,this.closingNotifier))};return c}(),nd=function(c){function a(b,a){b=c.call(this,b)||this;b.buffer=[];b.add(u(b,a));return b}d(a,c);a.prototype._next=function(b){this.buffer.push(b)};
a.prototype.notifyNext=function(b,a,c,h,d){b=this.buffer;this.buffer=[];this.destination.next(b)};return a}(v),rd=function(){function c(a,b){this.bufferSize=a;this.subscriberClass=(this.startBufferEvery=b)&&a!==b?pd:qd}c.prototype.call=function(a,b){return b.subscribe(new this.subscriberClass(a,this.bufferSize,this.startBufferEvery))};return c}(),qd=function(c){function a(b,a){b=c.call(this,b)||this;b.bufferSize=a;b.buffer=[];return b}d(a,c);a.prototype._next=function(b){var a=this.buffer;a.push(b);
a.length==this.bufferSize&&(this.destination.next(a),this.buffer=[])};a.prototype._complete=function(){var b=this.buffer;0<b.length&&this.destination.next(b);c.prototype._complete.call(this)};return a}(q),pd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.bufferSize=a;b.startBufferEvery=g;b.buffers=[];b.count=0;return b}d(a,c);a.prototype._next=function(b){var a=this.bufferSize,c=this.startBufferEvery,h=this.buffers,d=this.count;this.count++;0===d%c&&h.push([]);for(c=h.length;c--;)d=h[c],d.push(b),
d.length===a&&(h.splice(c,1),this.destination.next(d))};a.prototype._complete=function(){for(var b=this.buffers,a=this.destination;0<b.length;){var g=b.shift();0<g.length&&a.next(g)}c.prototype._complete.call(this)};return a}(q),td=function(){function c(a,b,c,g){this.bufferTimeSpan=a;this.bufferCreationInterval=b;this.maxBufferSize=c;this.scheduler=g}c.prototype.call=function(a,b){return b.subscribe(new sd(a,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return c}(),
ud=function(){return function(){this.buffer=[]}}(),sd=function(c){function a(b,a,g,h,d){b=c.call(this,b)||this;b.bufferTimeSpan=a;b.bufferCreationInterval=g;b.maxBufferSize=h;b.scheduler=d;b.contexts=[];h=b.openContext();b.timespanOnly=null==g||0>g;if(b.timespanOnly)b.add(h.closeAction=d.schedule(lb,a,{subscriber:b,context:h,bufferTimeSpan:a}));else{var f={bufferTimeSpan:a,bufferCreationInterval:g,subscriber:b,scheduler:d};b.add(h.closeAction=d.schedule(mb,a,{subscriber:b,context:h}));b.add(d.schedule(kc,
g,f))}return b}d(a,c);a.prototype._next=function(b){for(var a=this.contexts,c=a.length,d,e=0;e<c;e++){var k=a[e],l=k.buffer;l.push(b);l.length==this.maxBufferSize&&(d=k)}if(d)this.onBufferFull(d)};a.prototype._error=function(b){this.contexts.length=0;c.prototype._error.call(this,b)};a.prototype._complete=function(){for(var b=this.contexts,a=this.destination;0<b.length;){var g=b.shift();a.next(g.buffer)}c.prototype._complete.call(this)};a.prototype._unsubscribe=function(){this.contexts=null};a.prototype.onBufferFull=
function(b){this.closeContext(b);b=b.closeAction;b.unsubscribe();this.remove(b);if(!this.closed&&this.timespanOnly){b=this.openContext();var a=this.bufferTimeSpan;this.add(b.closeAction=this.scheduler.schedule(lb,a,{subscriber:this,context:b,bufferTimeSpan:a}))}};a.prototype.openContext=function(){var b=new ud;this.contexts.push(b);return b};a.prototype.closeContext=function(b){this.destination.next(b.buffer);var a=this.contexts;0<=(a?a.indexOf(b):-1)&&a.splice(a.indexOf(b),1)};return a}(q),wd=function(){function c(a,
b){this.openings=a;this.closingSelector=b}c.prototype.call=function(a,b){return b.subscribe(new vd(a,this.openings,this.closingSelector))};return c}(),vd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.openings=a;b.closingSelector=g;b.contexts=[];b.add(u(b,a));return b}d(a,c);a.prototype._next=function(b){for(var a=this.contexts,c=a.length,d=0;d<c;d++)a[d].buffer.push(b)};a.prototype._error=function(b){for(var a=this.contexts;0<a.length;){var g=a.shift();g.subscription.unsubscribe();g.buffer=
null;g.subscription=null}this.contexts=null;c.prototype._error.call(this,b)};a.prototype._complete=function(){for(var b=this.contexts;0<b.length;){var a=b.shift();this.destination.next(a.buffer);a.subscription.unsubscribe();a.buffer=null;a.subscription=null}this.contexts=null;c.prototype._complete.call(this)};a.prototype.notifyNext=function(b,a,c,d,e){b?this.closeBuffer(b):this.openBuffer(a)};a.prototype.notifyComplete=function(b){this.closeBuffer(b.context)};a.prototype.openBuffer=function(b){try{var a=
this.closingSelector.call(this,b);a&&this.trySubscribe(a)}catch(g){this._error(g)}};a.prototype.closeBuffer=function(b){var a=this.contexts;if(a&&b){var c=b.subscription;this.destination.next(b.buffer);a.splice(a.indexOf(b),1);this.remove(c);c.unsubscribe()}};a.prototype.trySubscribe=function(b){var a=this.contexts,c=new w,d={buffer:[],subscription:c};a.push(d);b=u(this,b,d);!b||b.closed?this.closeBuffer(d):(b.context=d,this.add(b),c.add(b))};return a}(v),yd=function(){function c(a){this.closingSelector=
a}c.prototype.call=function(a,b){return b.subscribe(new xd(a,this.closingSelector))};return c}(),xd=function(c){function a(b,a){b=c.call(this,b)||this;b.closingSelector=a;b.subscribing=!1;b.openBuffer();return b}d(a,c);a.prototype._next=function(b){this.buffer.push(b)};a.prototype._complete=function(){var b=this.buffer;b&&this.destination.next(b);c.prototype._complete.call(this)};a.prototype._unsubscribe=function(){this.buffer=null;this.subscribing=!1};a.prototype.notifyNext=function(b,a,c,d,e){this.openBuffer()};
a.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()};a.prototype.openBuffer=function(){var b=this.closingSubscription;b&&(this.remove(b),b.unsubscribe());(b=this.buffer)&&this.destination.next(b);this.buffer=[];var a=m(this.closingSelector)();a===p?this.error(p.e):(this.closingSubscription=b=new w,this.add(b),this.subscribing=!0,b.add(u(this,a)),this.subscribing=!1)};return a}(v),Ad=function(){function c(a){this.selector=a}c.prototype.call=function(a,b){return b.subscribe(new zd(a,
this.selector,this.caught))};return c}(),zd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.selector=a;b.caught=g;return b}d(a,c);a.prototype.error=function(b){if(!this.isStopped){var a=void 0;try{a=this.selector(b,this.caught)}catch(g){c.prototype.error.call(this,g);return}this._unsubscribeAndRecycle();b=new O(this,void 0,void 0);this.add(b);u(this,a,void 0,void 0,b)}};return a}(v),Cd=function(){function c(a,b){this.predicate=a;this.source=b}c.prototype.call=function(a,b){return b.subscribe(new Bd(a,
this.predicate,this.source))};return c}(),Bd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.predicate=a;b.source=g;b.count=0;b.index=0;return b}d(a,c);a.prototype._next=function(b){this.predicate?this._tryPredicate(b):this.count++};a.prototype._tryPredicate=function(b){var a;try{a=this.predicate(b,this.index++,this.source)}catch(g){this.destination.error(g);return}a&&this.count++};a.prototype._complete=function(){this.destination.next(this.count);this.destination.complete()};return a}(q),
Ed=function(){function c(a){this.durationSelector=a}c.prototype.call=function(a,b){return b.subscribe(new Dd(a,this.durationSelector))};return c}(),Dd=function(c){function a(b,a){b=c.call(this,b)||this;b.durationSelector=a;b.hasValue=!1;b.durationSubscription=null;return b}d(a,c);a.prototype._next=function(b){try{var a=this.durationSelector.call(this,b);a&&this._tryNext(b,a)}catch(g){this.destination.error(g)}};a.prototype._complete=function(){this.emitValue();this.destination.complete()};a.prototype._tryNext=
function(b,a){var c=this.durationSubscription;this.value=b;this.hasValue=!0;c&&(c.unsubscribe(),this.remove(c));(c=u(this,a))&&!c.closed&&this.add(this.durationSubscription=c)};a.prototype.notifyNext=function(b,a,c,d,e){this.emitValue()};a.prototype.notifyComplete=function(){this.emitValue()};a.prototype.emitValue=function(){if(this.hasValue){var b=this.value,a=this.durationSubscription;a&&(this.durationSubscription=null,a.unsubscribe(),this.remove(a));this.value=null;this.hasValue=!1;c.prototype._next.call(this,
b)}};return a}(v),Gd=function(){function c(a,b){this.dueTime=a;this.scheduler=b}c.prototype.call=function(a,b){return b.subscribe(new Fd(a,this.dueTime,this.scheduler))};return c}(),Fd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.dueTime=a;b.scheduler=g;b.debouncedSubscription=null;b.lastValue=null;b.hasValue=!1;return b}d(a,c);a.prototype._next=function(b){this.clearDebounce();this.lastValue=b;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(lc,this.dueTime,
this))};a.prototype._complete=function(){this.debouncedNext();this.destination.complete()};a.prototype.debouncedNext=function(){this.clearDebounce();if(this.hasValue){var b=this.lastValue;this.lastValue=null;this.hasValue=!1;this.destination.next(b)}};a.prototype.clearDebounce=function(){var b=this.debouncedSubscription;null!==b&&(this.remove(b),b.unsubscribe(),this.debouncedSubscription=null)};return a}(q),mc=function(){function c(a){this.defaultValue=a}c.prototype.call=function(a,b){return b.subscribe(new Hd(a,
this.defaultValue))};return c}(),Hd=function(c){function a(b,a){b=c.call(this,b)||this;b.defaultValue=a;b.isEmpty=!0;return b}d(a,c);a.prototype._next=function(b){this.isEmpty=!1;this.destination.next(b)};a.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};return a}(q),Jd=function(){function c(a,b){this.delay=a;this.scheduler=b}c.prototype.call=function(a,b){return b.subscribe(new Id(a,this.delay,this.scheduler))};return c}(),Id=function(c){function a(b,
a,g){b=c.call(this,b)||this;b.delay=a;b.scheduler=g;b.queue=[];b.active=!1;b.errored=!1;return b}d(a,c);a.dispatch=function(b){for(var a=b.source,c=a.queue,d=b.scheduler,e=b.destination;0<c.length&&0>=c[0].time-d.now();)c.shift().notification.observe(e);0<c.length?(a=Math.max(0,c[0].time-d.now()),this.schedule(b,a)):(this.unsubscribe(),a.active=!1)};a.prototype._schedule=function(b){this.active=!0;this.destination.add(b.schedule(a.dispatch,this.delay,{source:this,destination:this.destination,scheduler:b}))};
a.prototype.scheduleNotification=function(b){if(!0!==this.errored){var a=this.scheduler;b=new Kd(a.now()+this.delay,b);this.queue.push(b);!1===this.active&&this._schedule(a)}};a.prototype._next=function(b){this.scheduleNotification(z.createNext(b))};a.prototype._error=function(b){this.errored=!0;this.queue=[];this.destination.error(b);this.unsubscribe()};a.prototype._complete=function(){this.scheduleNotification(z.createComplete());this.unsubscribe()};return a}(q),Kd=function(){return function(c,
a){this.time=c;this.notification=a}}(),Hb=function(){function c(a){this.delayDurationSelector=a}c.prototype.call=function(a,b){return b.subscribe(new Ld(a,this.delayDurationSelector))};return c}(),Ld=function(c){function a(b,a){b=c.call(this,b)||this;b.delayDurationSelector=a;b.completed=!1;b.delayNotifierSubscriptions=[];b.index=0;return b}d(a,c);a.prototype.notifyNext=function(b,a,c,d,e){this.destination.next(b);this.removeSubscription(e);this.tryComplete()};a.prototype.notifyError=function(b,a){this._error(b)};
a.prototype.notifyComplete=function(b){(b=this.removeSubscription(b))&&this.destination.next(b);this.tryComplete()};a.prototype._next=function(b){var a=this.index++;try{var c=this.delayDurationSelector(b,a);c&&this.tryDelay(c,b)}catch(h){this.destination.error(h)}};a.prototype._complete=function(){this.completed=!0;this.tryComplete();this.unsubscribe()};a.prototype.removeSubscription=function(b){b.unsubscribe();var a=this.delayNotifierSubscriptions.indexOf(b);-1!==a&&this.delayNotifierSubscriptions.splice(a,
1);return b.outerValue};a.prototype.tryDelay=function(b,a){(b=u(this,b,a))&&!b.closed&&(this.destination.add(b),this.delayNotifierSubscriptions.push(b))};a.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()};return a}(v),Nd=function(c){function a(b,a){var f=c.call(this)||this;f.source=b;f.subscriptionDelay=a;return f}d(a,c);a.prototype._subscribe=function(b){this.subscriptionDelay.subscribe(new Md(b,this.source))};return a}(r),
Md=function(c){function a(b,a){var f=c.call(this)||this;f.parent=b;f.source=a;f.sourceSubscribed=!1;return f}d(a,c);a.prototype._next=function(b){this.subscribeToSource()};a.prototype._error=function(b){this.unsubscribe();this.parent.error(b)};a.prototype._complete=function(){this.unsubscribe();this.subscribeToSource()};a.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))};return a}(q),Pd=function(){function c(){}
c.prototype.call=function(a,b){return b.subscribe(new Od(a))};return c}(),Od=function(c){function a(b){return c.call(this,b)||this}d(a,c);a.prototype._next=function(b){b.observe(this.destination)};return a}(q),Rd=function(){function c(a,b){this.keySelector=a;this.flushes=b}c.prototype.call=function(a,b){return b.subscribe(new Qd(a,this.keySelector,this.flushes))};return c}(),Qd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.keySelector=a;b.values=new Set;g&&b.add(u(b,g));return b}d(a,c);a.prototype.notifyNext=
function(b,a,c,d,e){this.values.clear()};a.prototype.notifyError=function(b,a){this._error(b)};a.prototype._next=function(b){this.keySelector?this._useKeySelector(b):this._finalizeNext(b,b)};a.prototype._useKeySelector=function(b){var a,c=this.destination;try{a=this.keySelector(b)}catch(h){c.error(h);return}this._finalizeNext(a,b)};a.prototype._finalizeNext=function(b,a){var c=this.values;c.has(b)||(c.add(b),this.destination.next(a))};return a}(v),nc=function(){function c(a,b){this.compare=a;this.keySelector=
b}c.prototype.call=function(a,b){return b.subscribe(new Sd(a,this.compare,this.keySelector))};return c}(),Sd=function(c){function a(b,a,g){b=c.call(this,b)||this;b.keySelector=g;b.hasKey=!1;"function"===typeof a&&(b.compare=a);return b}d(a,c);a.prototype.compare=function(b,a){return b===a};a.prototype._next=function(b){var a=b;if(this.keySelector&&(a=m(this.keySelector)(b),a===p))return this.destination.error(p.e);var c=!1;if(this.hasKey){if(c=m(this.compare)(this.key,a),c===p)return this.destination.error(p.e)}else this.hasKey=
!0;!1===!!c&&(this.key=a,this.destination.next(b))};return a}(q),oc=function(){function c(a,b){this.predicate=a;this.thisArg=b}c.prototype.call=function(a,b){return b.subscribe(new Td(a,this.predicate,this.thisArg))};return c}(),Td=function(c){function a(b,a,g){b=c.call(this,b)||this;b.predicate=a;b.thisArg=g;b.count=0;return b}d(a,c);a.prototype._next=function(b){var a;try{a=this.predicate.call(this.thisArg,b,this.count++)}catch(g){this.destination.error(g);return}a&&this.destination.next(b)};return a}(q),
pc=function(){function c(a,b,c){this.nextOrObserver=a;this.error=b;this.complete=c}c.prototype.call=function(a,b){return b.subscribe(new Ud(a,this.nextOrObserver,this.error,this.complete))};return c}(),Ud=function(c){function a(b,a,g,d){b=c.call(this,b)||this;b._tapNext=A;b._tapError=A;b._tapComplete=A;b._tapError=g||A;b._tapComplete=d||A;l(a)?(b._context=b,b._tapNext=a):a&&(b._context=a,b._tapNext=a.next||A,b._tapError=a.error||A,b._tapComplete=a.complete||A);return b}d(a,c);a.prototype._next=function(b){try{this._tapNext.call(this._context,
b)}catch(f){this.destination.error(f);return}this.destination.next(b)};a.prototype._error=function(b){try{this._tapError.call(this._context,b)}catch(f){this.destination.error(f);return}this.destination.error(b)};a.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(b){this.destination.error(b);return}return this.destination.complete()};return a}(q),ta=function(c){void 0===c&&(c=qc);return pb({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw c();
}})},rc=function(){function c(a){this.total=a;if(0>this.total)throw new T;}c.prototype.call=function(a,b){return b.subscribe(new Vd(a,this.total))};return c}(),Vd=function(c){function a(b,a){b=c.call(this,b)||this;b.total=a;b.count=0;return b}d(a,c);a.prototype._next=function(b){var a=this.total,c=++this.count;c<=a&&(this.destination.next(b),c===a&&(this.destination.complete(),this.unsubscribe()))};return a}(q),Xd=function(){function c(a,b,c){this.predicate=a;this.thisArg=b;this.source=c}c.prototype.call=
function(a,b){return b.subscribe(new Wd(a,this.predicate,this.thisArg,this.source))};return c}(),Wd=function(c){function a(b,a,g,d){b=c.call(this,b)||this;b.predicate=a;b.thisArg=g;b.source=d;b.index=0;b.thisArg=g||b;return b}d(a,c);a.prototype.notifyComplete=function(b){this.destination.next(b);this.destination.complete()};a.prototype._next=function(b){var a=!1;try{a=this.predicate.call(this.thisArg,b,this.index++,this.source)}catch(g){this.destination.error(g);return}a||this.notifyComplete(!1)};
a.prototype._complete=function(){this.notifyComplete(!0)};return a}(q),Zd=function(){function c(){}c.prototype.call=function(a,b){return b.subscribe(new Yd(a))};return c}(),Yd=function(c){function a(b){b=c.call(this,b)||this;b.hasCompleted=!1;b.hasSubscription=!1;return b}d(a,c);a.prototype._next=function(b){this.hasSubscription||(this.hasSubscription=!0,this.add(u(this,b)))};a.prototype._complete=function(){this.hasCompleted=!0;this.hasSubscription||this.destination.complete()};a.prototype.notifyComplete=
function(b){this.remove(b);this.hasSubscription=!1;this.hasCompleted&&this.destination.complete()};return a}(v),sc=function(){function c(a){this.project=a}c.prototype.call=function(a,b){return b.subscribe(new $d(a,this.project))};return c}(),$d=function(c){function a(b,a){b=c.call(this,b)||this;b.project=a;b.hasSubscription=!1;b.hasCompleted=!1;b.index=0;return b}d(a,c);a.prototype._next=function(b){this.hasSubscription||this.tryNext(b)};a.prototype.tryNext=function(b){var a,c=this.index++;try{a=
this.project(b,c)}catch(h){this.destination.error(h);return}this.hasSubscription=!0;this._innerSub(a,b,c)};a.prototype._innerSub=function(b,a,c){var f=new O(this,void 0,void 0);this.destination.add(f);u(this,b,a,c,f)};a.prototype._complete=function(){this.hasCompleted=!0;this.hasSubscription||this.destination.complete();this.unsubscribe()};a.prototype.notifyNext=function(b,a,c,d,e){this.destination.next(a)};a.prototype.notifyError=function(b){this.destination.error(b)};a.prototype.notifyComplete=
function(b){this.destination.remove(b);this.hasSubscription=!1;this.hasCompleted&&this.destination.complete()};return a}(v),be=function(){function c(a,b,c){this.project=a;this.concurrent=b;this.scheduler=c}c.prototype.call=function(a,b){return b.subscribe(new ae(a,this.project,this.concurrent,this.scheduler))};return c}(),ae=function(c){function a(b,a,g,d){b=c.call(this,b)||this;b.project=a;b.concurrent=g;b.scheduler=d;b.index=0;b.active=0;b.hasCompleted=!1;g<Number.POSITIVE_INFINITY&&(b.buffer=[]);
return b}d(a,c);a.dispatch=function(b){b.subscriber.subscribeToProjection(b.result,b.value,b.index)};a.prototype._next=function(b){var c=this.destination;if(c.closed)this._complete();else{var g=this.index++;if(this.active<this.concurrent){c.next(b);var d=m(this.project)(b,g);d===p?c.error(p.e):this.scheduler?this.destination.add(this.scheduler.schedule(a.dispatch,0,{subscriber:this,result:d,value:b,index:g})):this.subscribeToProjection(d,b,g)}else this.buffer.push(b)}};a.prototype.subscribeToProjection=
function(b,a,c){this.active++;this.destination.add(u(this,b,a,c))};a.prototype._complete=function(){(this.hasCompleted=!0,0===this.active)&&this.destination.complete();this.unsubscribe()};a.prototype.notifyNext=function(b,a,c,d,e){this._next(a)};a.prototype.notifyComplete=function(b){var a=this.buffer;this.destination.remove(b);this.active--;a&&0<a.length&&this._next(a.shift());this.hasCompleted&&0===this.active&&this.destination.complete()};return a}(v),de=function(){function c(a){this.callback=
a}c.prototype.call=function(a,b){return b.subscribe(new ce(a,this.callback))};return c}(),ce=function(c){function a(b,a){b=c.call(this,b)||this;b.add(new w(a));return b}d(a,c);return a}(q),Ib=function(){function c(a,b,c,g){this.predicate=a;this.source=b;this.yieldIndex=c;this.thisArg=g}c.prototype.call=function(a,b){return b.subscribe(new ee(a,this.predicate,this.source,this.yieldIndex,this.thisArg))};return c}(),ee=function(c){function a(b,a,g,d,e){b=c.call(this,b)||this;b.predicate=a;b.source=g;
b.yieldIndex=d;b.thisArg=e;b.index=0;return b}d(a,c);a.prototype.notifyComplete=function(b){var a=this.destination;a.next(b);a.complete();this.unsubscribe()};a.prototype._next=function(b){var a=this.predicate,c=this.thisArg,d=this.index++;try{a.call(c||this,b,d,this.source)&&this.notifyComplete(this.yieldIndex?d:b)}catch(E){this.destination.error(E)}};a.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)};return a}(q),ge=function(){function c(){}c.prototype.call=function(a,
b){return b.subscribe(new fe(a))};return c}(),fe=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}d(a,c);a.prototype._next=function(b){};return a}(q),ie=function(){function c(){}c.prototype.call=function(a,b){return b.subscribe(new he(a))};return c}(),he=function(c){function a(b){return c.call(this,b)||this}d(a,c);a.prototype.notifyComplete=function(b){var a=this.destination;a.next(b);a.complete()};a.prototype._next=function(b){this.notifyComplete(!1)};a.prototype._complete=
function(){this.notifyComplete(!0)};return a}(q),tc=function(){function c(a){this.total=a;if(0>this.total)throw new T;}c.prototype.call=function(a,b){return b.subscribe(new je(a,this.total))};return c}(),je=function(c){function a(b,a){b=c.call(this,b)||this;b.total=a;b.ring=[];b.count=0;return b}d(a,c);a.prototype._next=function(b){var a=this.ring,c=this.total,d=this.count++;a.length<c?a.push(b):a[d%c]=b};a.prototype._complete=function(){var b=this.destination,a=this.count;if(0<a)for(var c=this.count>=
this.total?this.total:this.count,d=this.ring,e=0;e<c;e++){var k=a++%c;b.next(d[k])}b.complete()};return a}(q),le=function(){function c(a){this.value=a}c.prototype.call=function(a,b){return b.subscribe(new ke(a,this.value))};return c}(),ke=function(c){function a(b,a){b=c.call(this,b)||this;b.value=a;return b}d(a,c);a.prototype._next=function(b){this.destination.next(this.value)};return a}(q),ne=function(){function c(){}c.prototype.call=function(a,b){return b.subscribe(new me(a))};return c}(),me=function(c){function a(b){return c.call(this,
b)||this}d(a,c);a.prototype._next=function(b){this.destination.next(z.createNext(b))};a.prototype._error=function(b){var a=this.destination;a.next(z.createError(b));a.complete()};a.prototype._complete=function(){var b=this.destination;b.next(z.createComplete());b.complete()};return a}(q),uc=function(){function c(a,b,c){void 0===c&&(c=!1);this.accumulator=a;this.seed=b;this.hasSeed=c}c.prototype.call=function(a,b){return b.subscribe(new oe(a,this.accumulator,this.seed,this.hasSeed))};return c}(),oe=
function(c){function a(b,a,g,d){b=c.call(this,b)||this;b.accumulator=a;b._seed=g;b.hasSeed=d;b.index=0;return b}d(a,c);Object.defineProperty(a.prototype,"seed",{get:function(){return this._seed},set:function(b){this.hasSeed=!0;this._seed=b},enumerable:!0,configurable:!0});a.prototype._next=function(b){if(this.hasSeed)return this._tryNext(b);this.seed=b;this.destination.next(b)};a.prototype._tryNext=function(b){var a=this.index++,c;try{c=this.accumulator(this.seed,b,a)}catch(h){this.destination.error(h)}this.seed=
c;this.destination.next(c)};return a}(q),qe=function(){function c(a,b,c){this.accumulator=a;this.seed=b;this.concurrent=c}c.prototype.call=function(a,b){return b.subscribe(new pe(a,this.accumulator,this.seed,this.concurrent))};return c}(),pe=function(c){function a(b,a,g,d){b=c.call(this,b)||this;b.accumulator=a;b.acc=g;b.concurrent=d;b.hasValue=!1;b.hasCompleted=!1;b.buffer=[];b.active=0;b.index=0;return b}d(a,c);a.prototype._next=function(b){if(this.active<this.concurrent){var a=this.index++,c=m(this.accumulator)(this.acc,
b),d=this.destination;c===p?d.error(p.e):(this.active++,this._innerSub(c,b,a))}else this.buffer.push(b)};a.prototype._innerSub=function(b,a,c){var f=new O(this,void 0,void 0);this.destination.add(f);u(this,b,a,c,f)};a.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete());this.unsubscribe()};a.prototype.notifyNext=function(b,a,c,d,e){b=this.destination;this.acc=a;this.hasValue=!0;
b.next(a)};a.prototype.notifyComplete=function(b){var a=this.buffer;this.destination.remove(b);this.active--;0<a.length?this._next(a.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())};return a}(v),vc=function(){function c(a,b){this.subjectFactory=a;this.selector=b}c.prototype.call=function(a,b){var c=this.selector,g=this.subjectFactory();a=c(g).subscribe(a);a.add(b.subscribe(g));return a};return c}(),se=function(){function c(a){this.nextSources=
a}c.prototype.call=function(a,b){return b.subscribe(new re(a,this.nextSources))};return c}(),re=function(c){function a(b,a){var f=c.call(this,b)||this;f.destination=b;f.nextSources=a;return f}d(a,c);a.prototype.notifyError=function(b,a){this.subscribeToNextSource()};a.prototype.notifyComplete=function(b){this.subscribeToNextSource()};a.prototype._error=function(b){this.subscribeToNextSource();this.unsubscribe()};a.prototype._complete=function(){this.subscribeToNextSource();this.unsubscribe()};a.prototype.subscribeToNextSource=
function(){var b=this.nextSources.shift();if(b){var a=new O(this,void 0,void 0);this.destination.add(a);u(this,b,void 0,void 0,a)}else this.destination.complete()};return a}(v),ue=function(){function c(){}c.prototype.call=function(a,b){return b.subscribe(new te(a))};return c}(),te=function(c){function a(b){b=c.call(this,b)||this;b.hasPrev=!1;return b}d(a,c);a.prototype._next=function(b){this.hasPrev?this.destination.next([this.prev,b]):this.hasPrev=!0;this.prev=b};return a}(q),Jb=function(){function c(a,
b){this.count=a;this.source=b}c.prototype.call=function(a,b){return b.subscribe(new ve(a,this.count,this.source))};return c}(),ve=function(c){function a(b,a,g){b=c.call(this,b)||this;b.count=a;b.source=g;return b}d(a,c);a.prototype.complete=function(){if(!this.isStopped){var b=this.source,a=this.count;if(0===a)return c.prototype.complete.call(this);-1<a&&(this.count=a-1);b.subscribe(this._unsubscribeAndRecycle())}};return a}(q),xe=function(){function c(a){this.notifier=a}c.prototype.call=function(a,
b){return b.subscribe(new we(a,this.notifier,b))};return c}(),we=function(c){function a(b,a,g){b=c.call(this,b)||this;b.notifier=a;b.source=g;b.sourceIsBeingSubscribedTo=!0;return b}d(a,c);a.prototype.notifyNext=function(b,a,c,d,e){this.sourceIsBeingSubscribedTo=!0;this.source.subscribe(this)};a.prototype.notifyComplete=function(b){if(!1===this.sourceIsBeingSubscribedTo)return c.prototype.complete.call(this)};a.prototype.complete=function(){this.sourceIsBeingSubscribedTo=!1;if(!this.isStopped){this.retries||
this.subscribeToRetries();if(!this.retriesSubscription||this.retriesSubscription.closed)return c.prototype.complete.call(this);this._unsubscribeAndRecycle();this.notifications.next()}};a.prototype._unsubscribe=function(){var b=this.notifications,a=this.retriesSubscription;b&&(b.unsubscribe(),this.notifications=null);a&&(a.unsubscribe(),this.retriesSubscription=null);this.retries=null};a.prototype._unsubscribeAndRecycle=function(){var b=this._unsubscribe;this._unsubscribe=null;c.prototype._unsubscribeAndRecycle.call(this);
this._unsubscribe=b;return this};a.prototype.subscribeToRetries=function(){this.notifications=new y;var b=m(this.notifier)(this.notifications);if(b===p)return c.prototype.complete.call(this);this.retries=b;this.retriesSubscription=u(this,b)};return a}(v),ze=function(){function c(a,b){this.count=a;this.source=b}c.prototype.call=function(a,b){return b.subscribe(new ye(a,this.count,this.source))};return c}(),ye=function(c){function a(b,a,g){b=c.call(this,b)||this;b.count=a;b.source=g;return b}d(a,c);
a.prototype.error=function(b){if(!this.isStopped){var a=this.source,g=this.count;if(0===g)return c.prototype.error.call(this,b);-1<g&&(this.count=g-1);a.subscribe(this._unsubscribeAndRecycle())}};return a}(q),Be=function(){function c(a,b){this.notifier=a;this.source=b}c.prototype.call=function(a,b){return b.subscribe(new Ae(a,this.notifier,this.source))};return c}(),Ae=function(c){function a(b,a,g){b=c.call(this,b)||this;b.notifier=a;b.source=g;return b}d(a,c);a.prototype.error=function(b){if(!this.isStopped){var a=
this.errors,g=this.retries,d=this.retriesSubscription;if(g)this.retriesSubscription=this.errors=null;else{a=new y;g=m(this.notifier)(a);if(g===p)return c.prototype.error.call(this,p.e);d=u(this,g)}this._unsubscribeAndRecycle();this.errors=a;this.retries=g;this.retriesSubscription=d;a.next(b)}};a.prototype._unsubscribe=function(){var b=this.errors,a=this.retriesSubscription;b&&(b.unsubscribe(),this.errors=null);a&&(a.unsubscribe(),this.retriesSubscription=null);this.retries=null};a.prototype.notifyNext=
function(b,a,c,d,e){b=this._unsubscribe;this._unsubscribe=null;this._unsubscribeAndRecycle();this._unsubscribe=b;this.source.subscribe(this)};return a}(v),De=function(){function c(a){this.notifier=a}c.prototype.call=function(a,b){a=new Ce(a);b=b.subscribe(a);b.add(u(a,this.notifier));return b};return c}(),Ce=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.hasValue=!1;return b}d(a,c);a.prototype._next=function(b){this.value=b;this.hasValue=!0};a.prototype.notifyNext=function(b,
a,c,d,e){this.emitValue()};a.prototype.notifyComplete=function(){this.emitValue()};a.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))};return a}(v),Fe=function(){function c(a,b){this.period=a;this.scheduler=b}c.prototype.call=function(a,b){return b.subscribe(new Ee(a,this.period,this.scheduler))};return c}(),Ee=function(c){function a(b,a,g){b=c.call(this,b)||this;b.period=a;b.scheduler=g;b.hasValue=!1;b.add(g.schedule(zc,a,{subscriber:b,period:a}));
return b}d(a,c);a.prototype._next=function(b){this.lastValue=b;this.hasValue=!0};a.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))};return a}(q),He=function(){function c(a,b){this.compareTo=a;this.comparor=b}c.prototype.call=function(a,b){return b.subscribe(new Ge(a,this.compareTo,this.comparor))};return c}(),Ge=function(c){function a(b,a,g){var f=c.call(this,b)||this;f.compareTo=a;f.comparor=g;f._a=[];f._b=[];f._oneComplete=!1;f.destination.add(a.subscribe(new Ie(b,
f)));return f}d(a,c);a.prototype._next=function(b){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(b),this.checkValues())};a.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0;this.unsubscribe()};a.prototype.checkValues=function(){for(var b=this._a,a=this._b,c=this.comparor;0<b.length&&0<a.length;){var d=b.shift(),e=a.shift();c?(d=m(c)(d,e),d===p&&this.destination.error(p.e)):d=d===e;d||this.emit(!1)}};a.prototype.emit=
function(b){var a=this.destination;a.next(b);a.complete()};a.prototype.nextB=function(b){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(b),this.checkValues())};a.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0};return a}(q),Ie=function(c){function a(b,a){b=c.call(this,b)||this;b.parent=a;return b}d(a,c);a.prototype._next=function(b){this.parent.nextB(b)};a.prototype._error=function(b){this.parent.error(b);this.unsubscribe()};
a.prototype._complete=function(){this.parent.completeB();this.unsubscribe()};return a}(q),Ke=function(){function c(a,b){this.predicate=a;this.source=b}c.prototype.call=function(a,b){return b.subscribe(new Je(a,this.predicate,this.source))};return c}(),Je=function(c){function a(b,a,g){b=c.call(this,b)||this;b.predicate=a;b.source=g;b.seenValue=!1;b.index=0;return b}d(a,c);a.prototype.applySingleValue=function(b){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=
!0,this.singleValue=b)};a.prototype._next=function(b){var a=this.index++;this.predicate?this.tryNext(b,a):this.applySingleValue(b)};a.prototype.tryNext=function(b,a){try{this.predicate(b,a,this.source)&&this.applySingleValue(b)}catch(g){this.destination.error(g)}};a.prototype._complete=function(){var b=this.destination;0<this.index?(b.next(this.seenValue?this.singleValue:void 0),b.complete()):b.error(new ia)};return a}(q),Me=function(){function c(a){this.total=a}c.prototype.call=function(a,b){return b.subscribe(new Le(a,
this.total))};return c}(),Le=function(c){function a(b,a){b=c.call(this,b)||this;b.total=a;b.count=0;return b}d(a,c);a.prototype._next=function(b){++this.count>this.total&&this.destination.next(b)};return a}(q),Oe=function(){function c(a){this._skipCount=a;if(0>this._skipCount)throw new T;}c.prototype.call=function(a,b){return 0===this._skipCount?b.subscribe(new q(a)):b.subscribe(new Ne(a,this._skipCount))};return c}(),Ne=function(c){function a(b,a){b=c.call(this,b)||this;b._skipCount=a;b._count=0;
b._ring=Array(a);return b}d(a,c);a.prototype._next=function(b){var a=this._skipCount,c=this._count++;if(c<a)this._ring[c]=b;else{var a=c%a,c=this._ring,d=c[a];c[a]=b;this.destination.next(d)}};return a}(q),Qe=function(){function c(a){this.notifier=a}c.prototype.call=function(a,b){return b.subscribe(new Pe(a,this.notifier))};return c}(),Pe=function(c){function a(a,f){a=c.call(this,a)||this;a.hasValue=!1;var b=new O(a,void 0,void 0);a.add(b);a.innerSubscription=b;u(a,f,void 0,void 0,b);return a}d(a,
c);a.prototype._next=function(a){this.hasValue&&c.prototype._next.call(this,a)};a.prototype.notifyNext=function(a,c,g,d,e){this.hasValue=!0;this.innerSubscription&&this.innerSubscription.unsubscribe()};a.prototype.notifyComplete=function(){};return a}(v),Se=function(){function c(a){this.predicate=a}c.prototype.call=function(a,b){return b.subscribe(new Re(a,this.predicate))};return c}(),Re=function(c){function a(a,f){a=c.call(this,a)||this;a.predicate=f;a.skipping=!0;a.index=0;return a}d(a,c);a.prototype._next=
function(a){var b=this.destination;this.skipping&&this.tryCallPredicate(a);this.skipping||b.next(a)};a.prototype.tryCallPredicate=function(a){try{this.skipping=!!this.predicate(a,this.index++)}catch(f){this.destination.error(f)}};return a}(q),Te=function(c){function a(a,f,g){void 0===f&&(f=0);void 0===g&&(g=sa);var b=c.call(this)||this;b.source=a;b.delayTime=f;b.scheduler=g;if(!ca(f)||0>f)b.delayTime=0;g&&"function"===typeof g.schedule||(b.scheduler=sa);return b}d(a,c);a.create=function(b,c,g){void 0===
c&&(c=0);void 0===g&&(g=sa);return new a(b,c,g)};a.dispatch=function(a){return this.add(a.source.subscribe(a.subscriber))};a.prototype._subscribe=function(b){return this.scheduler.schedule(a.dispatch,this.delayTime,{source:this.source,subscriber:b})};return a}(r),Ue=function(){function c(a,b){this.scheduler=a;this.delay=b}c.prototype.call=function(a,b){return(new Te(b,this.delay,this.scheduler)).subscribe(a)};return c}(),Cc=function(){function c(a){this.project=a}c.prototype.call=function(a,b){return b.subscribe(new Ve(a,
this.project))};return c}(),Ve=function(c){function a(a,f){a=c.call(this,a)||this;a.project=f;a.index=0;return a}d(a,c);a.prototype._next=function(a){var b,c=this.index++;try{b=this.project(a,c)}catch(h){this.destination.error(h);return}this._innerSub(b,a,c)};a.prototype._innerSub=function(a,c,g){var b=this.innerSubscription;b&&b.unsubscribe();b=new O(this,void 0,void 0);this.destination.add(b);this.innerSubscription=u(this,a,c,g,b)};a.prototype._complete=function(){var a=this.innerSubscription;a&&
!a.closed||c.prototype._complete.call(this);this.unsubscribe()};a.prototype._unsubscribe=function(){this.innerSubscription=null};a.prototype.notifyComplete=function(a){this.destination.remove(a);this.innerSubscription=null;this.isStopped&&c.prototype._complete.call(this)};a.prototype.notifyNext=function(a,c,g,d,e){this.destination.next(c)};return a}(v),Xe=function(){function c(a){this.notifier=a}c.prototype.call=function(a,b){a=new We(a);var c=u(a,this.notifier);return c&&!a.seenValue?(a.add(c),b.subscribe(a)):
a};return c}(),We=function(c){function a(a){a=c.call(this,a)||this;a.seenValue=!1;return a}d(a,c);a.prototype.notifyNext=function(a,c,g,d,e){this.seenValue=!0;this.complete()};a.prototype.notifyComplete=function(){};return a}(v),Ze=function(){function c(a){this.predicate=a}c.prototype.call=function(a,b){return b.subscribe(new Ye(a,this.predicate))};return c}(),Ye=function(c){function a(a,f){a=c.call(this,a)||this;a.predicate=f;a.index=0;return a}d(a,c);a.prototype._next=function(a){var b=this.destination,
c;try{c=this.predicate(a,this.index++)}catch(h){b.error(h);return}this.nextOrComplete(a,c)};a.prototype.nextOrComplete=function(a,c){var b=this.destination;c?b.next(a):b.complete()};return a}(q),Kb={leading:!0,trailing:!1},af=function(){function c(a,b,c){this.durationSelector=a;this.leading=b;this.trailing=c}c.prototype.call=function(a,b){return b.subscribe(new $e(a,this.durationSelector,this.leading,this.trailing))};return c}(),$e=function(c){function a(a,f,g,d){var b=c.call(this,a)||this;b.destination=
a;b.durationSelector=f;b._leading=g;b._trailing=d;b._hasValue=!1;return b}d(a,c);a.prototype._next=function(a){this._hasValue=!0;this._sendValue=a;this._throttled||(this._leading?this.send():this.throttle(a))};a.prototype.send=function(){var a=this._sendValue;this._hasValue&&(this.destination.next(a),this.throttle(a));this._hasValue=!1;this._sendValue=null};a.prototype.throttle=function(a){(a=this.tryDurationSelector(a))&&this.add(this._throttled=u(this,a))};a.prototype.tryDurationSelector=function(a){try{return this.durationSelector(a)}catch(f){return this.destination.error(f),
null}};a.prototype.throttlingDone=function(){var a=this._throttled,c=this._trailing;a&&a.unsubscribe();this._throttled=null;c&&this.send()};a.prototype.notifyNext=function(a,c,g,d,e){this.throttlingDone()};a.prototype.notifyComplete=function(){this.throttlingDone()};return a}(v),cf=function(){function c(a,b,c,g){this.duration=a;this.scheduler=b;this.leading=c;this.trailing=g}c.prototype.call=function(a,b){return b.subscribe(new bf(a,this.duration,this.scheduler,this.leading,this.trailing))};return c}(),
bf=function(c){function a(a,f,g,d,e){a=c.call(this,a)||this;a.duration=f;a.scheduler=g;a.leading=d;a.trailing=e;a._hasTrailingValue=!1;a._trailingValue=null;return a}d(a,c);a.prototype._next=function(a){this.throttled?this.trailing&&(this._trailingValue=a,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Dc,this.duration,{subscriber:this})),this.leading&&this.destination.next(a))};a.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue);
this.destination.complete()};a.prototype.clearThrottle=function(){var a=this.throttled;a&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),a.unsubscribe(),this.remove(a),this.throttled=null)};return a}(q),df=function(){return function(c,a){this.value=c;this.interval=a}}(),Ec=function(){function c(a,b,c,g){this.waitFor=a;this.absoluteTimeout=b;this.withObservable=c;this.scheduler=g}c.prototype.call=function(a,b){return b.subscribe(new ef(a,
this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))};return c}(),ef=function(c){function a(a,f,g,d,e){a=c.call(this,a)||this;a.absoluteTimeout=f;a.waitFor=g;a.withObservable=d;a.scheduler=e;a.action=null;a.scheduleTimeout();return a}d(a,c);a.dispatchTimeout=function(a){var b=a.withObservable;a._unsubscribeAndRecycle();a.add(u(a,b))};a.prototype.scheduleTimeout=function(){var b=this.action;b?this.action=b.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(a.dispatchTimeout,
this.waitFor,this))};a.prototype._next=function(a){this.absoluteTimeout||this.scheduleTimeout();c.prototype._next.call(this,a)};a.prototype._unsubscribe=function(){this.withObservable=this.scheduler=this.action=null};return a}(v),ff=function(){return function(c,a){this.value=c;this.timestamp=a}}(),hf=function(){function c(a){this.windowBoundaries=a}c.prototype.call=function(a,b){a=new gf(a);b=b.subscribe(a);b.closed||a.add(u(a,this.windowBoundaries));return b};return c}(),gf=function(c){function a(a){var b=
c.call(this,a)||this;b.window=new y;a.next(b.window);return b}d(a,c);a.prototype.notifyNext=function(a,c,d,h,e){this.openWindow()};a.prototype.notifyError=function(a,c){this._error(a)};a.prototype.notifyComplete=function(a){this._complete()};a.prototype._next=function(a){this.window.next(a)};a.prototype._error=function(a){this.window.error(a);this.destination.error(a)};a.prototype._complete=function(){this.window.complete();this.destination.complete()};a.prototype._unsubscribe=function(){this.window=
null};a.prototype.openWindow=function(){var a=this.window;a&&a.complete();var a=this.destination,c=this.window=new y;a.next(c)};return a}(v),kf=function(){function c(a,b){this.windowSize=a;this.startWindowEvery=b}c.prototype.call=function(a,b){return b.subscribe(new jf(a,this.windowSize,this.startWindowEvery))};return c}(),jf=function(c){function a(a,f,d){var b=c.call(this,a)||this;b.destination=a;b.windowSize=f;b.startWindowEvery=d;b.windows=[new y];b.count=0;a.next(b.windows[0]);return b}d(a,c);
a.prototype._next=function(a){for(var b=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,c=this.destination,d=this.windowSize,e=this.windows,k=e.length,l=0;l<k&&!this.closed;l++)e[l].next(a);a=this.count-d+1;0<=a&&0===a%b&&!this.closed&&e.shift().complete();0!==++this.count%b||this.closed||(b=new y,e.push(b),c.next(b))};a.prototype._error=function(a){var b=this.windows;if(b)for(;0<b.length&&!this.closed;)b.shift().error(a);this.destination.error(a)};a.prototype._complete=function(){var a=
this.windows;if(a)for(;0<a.length&&!this.closed;)a.shift().complete();this.destination.complete()};a.prototype._unsubscribe=function(){this.count=0;this.windows=null};return a}(q),mf=function(){function c(a,b,c,d){this.windowTimeSpan=a;this.windowCreationInterval=b;this.maxWindowSize=c;this.scheduler=d}c.prototype.call=function(a,b){return b.subscribe(new lf(a,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))};return c}(),nf=function(c){function a(){var a=null!==
c&&c.apply(this,arguments)||this;a._numberOfNextedValues=0;return a}d(a,c);a.prototype.next=function(a){this._numberOfNextedValues++;c.prototype.next.call(this,a)};Object.defineProperty(a.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0});return a}(y),lf=function(c){function a(a,f,d,e,k){var b=c.call(this,a)||this;b.destination=a;b.windowTimeSpan=f;b.windowCreationInterval=d;b.maxWindowSize=e;b.scheduler=k;b.windows=[];a=b.openWindow();
null!==d&&0<=d?(e={windowTimeSpan:f,windowCreationInterval:d,subscriber:b,scheduler:k},b.add(k.schedule(sb,f,{subscriber:b,window:a,context:null})),b.add(k.schedule(Hc,d,e))):b.add(k.schedule(Gc,f,{subscriber:b,window:a,windowTimeSpan:f}));return b}d(a,c);a.prototype._next=function(a){for(var b=this.windows,c=b.length,d=0;d<c;d++){var e=b[d];e.closed||(e.next(a),e.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(e))}};a.prototype._error=function(a){for(var b=this.windows;0<b.length;)b.shift().error(a);
this.destination.error(a)};a.prototype._complete=function(){for(var a=this.windows;0<a.length;){var c=a.shift();c.closed||c.complete()}this.destination.complete()};a.prototype.openWindow=function(){var a=new nf;this.windows.push(a);this.destination.next(a);return a};a.prototype.closeWindow=function(a){a.complete();var b=this.windows;b.splice(b.indexOf(a),1)};return a}(q),pf=function(){function c(a,b){this.openings=a;this.closingSelector=b}c.prototype.call=function(a,b){return b.subscribe(new of(a,
this.openings,this.closingSelector))};return c}(),of=function(c){function a(a,f,d){a=c.call(this,a)||this;a.openings=f;a.closingSelector=d;a.contexts=[];a.add(a.openSubscription=u(a,f,f));return a}d(a,c);a.prototype._next=function(a){var b=this.contexts;if(b)for(var c=b.length,d=0;d<c;d++)b[d].window.next(a)};a.prototype._error=function(a){var b=this.contexts;this.contexts=null;if(b)for(var d=b.length,e=-1;++e<d;){var k=b[e];k.window.error(a);k.subscription.unsubscribe()}c.prototype._error.call(this,
a)};a.prototype._complete=function(){var a=this.contexts;this.contexts=null;if(a)for(var f=a.length,d=-1;++d<f;){var e=a[d];e.window.complete();e.subscription.unsubscribe()}c.prototype._complete.call(this)};a.prototype._unsubscribe=function(){var a=this.contexts;this.contexts=null;if(a)for(var c=a.length,d=-1;++d<c;){var e=a[d];e.window.unsubscribe();e.subscription.unsubscribe()}};a.prototype.notifyNext=function(a,c,d,e,k){if(a===this.openings){e=m(this.closingSelector)(c);if(e===p)return this.error(p.e);
a=new y;c=new w;d={window:a,subscription:c};this.contexts.push(d);e=u(this,e,d);e.closed?this.closeWindow(this.contexts.length-1):(e.context=d,c.add(e));this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(a))};a.prototype.notifyError=function(a){this.error(a)};a.prototype.notifyComplete=function(a){a!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(a.context))};a.prototype.closeWindow=function(a){if(-1!==a){var b=this.contexts,c=b[a],d=c.window,c=c.subscription;b.splice(a,
1);d.complete();c.unsubscribe()}};return a}(v),rf=function(){function c(a){this.closingSelector=a}c.prototype.call=function(a,b){return b.subscribe(new qf(a,this.closingSelector))};return c}(),qf=function(c){function a(a,d){var b=c.call(this,a)||this;b.destination=a;b.closingSelector=d;b.openWindow();return b}d(a,c);a.prototype.notifyNext=function(a,c,d,e,k){this.openWindow(k)};a.prototype.notifyError=function(a,c){this._error(a)};a.prototype.notifyComplete=function(a){this.openWindow(a)};a.prototype._next=
function(a){this.window.next(a)};a.prototype._error=function(a){this.window.error(a);this.destination.error(a);this.unsubscribeClosingNotification()};a.prototype._complete=function(){this.window.complete();this.destination.complete();this.unsubscribeClosingNotification()};a.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()};a.prototype.openWindow=function(a){void 0===a&&(a=null);a&&(this.remove(a),a.unsubscribe());(a=this.window)&&
a.complete();a=this.window=new y;this.destination.next(a);a=m(this.closingSelector)();a===p?(a=p.e,this.destination.error(a),this.window.error(a)):this.add(this.closingNotification=u(this,a))};return a}(v),tf=function(){function c(a,b){this.observables=a;this.project=b}c.prototype.call=function(a,b){return b.subscribe(new sf(a,this.observables,this.project))};return c}(),sf=function(c){function a(a,d,g){a=c.call(this,a)||this;a.observables=d;a.project=g;a.toRespond=[];g=d.length;a.values=Array(g);
for(var b=0;b<g;b++)a.toRespond.push(b);for(b=0;b<g;b++){var f=d[b];a.add(u(a,f,f,b))}return a}d(a,c);a.prototype.notifyNext=function(a,c,d,e,k){this.values[d]=c;a=this.toRespond;0<a.length&&(d=a.indexOf(d),-1!==d&&a.splice(d,1))};a.prototype.notifyComplete=function(){};a.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(this.values),this.project?this._tryProject(a):this.destination.next(a))};a.prototype._tryProject=function(a){var b;try{b=this.project.apply(this,a)}catch(g){this.destination.error(g);
return}this.destination.next(b)};return a}(v),uf=Object.freeze({audit:kb,auditTime:function(c,a){void 0===a&&(a=C);return kb(function(){return hb(c,a)})},buffer:function(c){return function(a){return a.lift(new od(c))}},bufferCount:function(c,a){void 0===a&&(a=null);return function(b){return b.lift(new rd(c,a))}},bufferTime:function(c){var a=arguments.length,b=C;B(arguments[arguments.length-1])&&(b=arguments[arguments.length-1],a--);var d=null;2<=a&&(d=arguments[1]);var g=Number.POSITIVE_INFINITY;
3<=a&&(g=arguments[2]);return function(a){return a.lift(new td(c,d,g,b))}},bufferToggle:function(c,a){return function(b){return b.lift(new wd(c,a))}},bufferWhen:function(c){return function(a){return a.lift(new yd(c))}},catchError:function(c){return function(a){var b=new Ad(c);a=a.lift(b);return b.caught=a}},combineAll:function(c){return function(a){return a.lift(new Ma(c))}},combineLatest:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var b=null;"function"===typeof c[c.length-
1]&&(b=c.pop());1===c.length&&D(c[0])&&(c=c[0].slice());return function(a){return a.lift.call(N([a].concat(c)),new Ma(b))}},concat:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){return a.lift.call(P.apply(void 0,[a].concat(c)))}},concatAll:ab,concatMap:nb,concatMapTo:function(c,a){return nb(function(){return c},a)},count:function(c){return function(a){return a.lift(new Cd(c,a))}},debounce:function(c){return function(a){return a.lift(new Ed(c))}},debounceTime:function(c,
a){void 0===a&&(a=C);return function(b){return b.lift(new Gd(c,a))}},defaultIfEmpty:ha,delay:function(c,a){void 0===a&&(a=C);var b=c instanceof Date&&!isNaN(+c)?+c-a.now():Math.abs(c);return function(c){return c.lift(new Jd(b,a))}},delayWhen:function(c,a){return a?function(b){return(new Nd(b,a)).lift(new Hb(c))}:function(a){return a.lift(new Hb(c))}},dematerialize:function(){return function(c){return c.lift(new Pd)}},distinct:function(c,a){return function(b){return b.lift(new Rd(c,a))}},distinctUntilChanged:ob,
distinctUntilKeyChanged:function(c,a){return ob(function(b,d){return a?a(b[c],d[c]):b[c]===d[c]})},elementAt:function(c,a){if(0>c)throw new T;var b=2<=arguments.length;return function(d){return d.pipe(da(function(a,b){return b===c}),Fa(1),b?ha(a):ta(function(){return new T}))}},endWith:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){var b=c[c.length-1];B(b)?c.pop():b=null;var d=c.length;return 1!==d||b?0<d?P(a,L(c,b)):P(a,K(b)):P(a,xa(c[0]))}},every:function(c,
a){return function(b){return b.lift(new Xd(c,a,b))}},exhaust:function(){return function(c){return c.lift(new Zd)}},exhaustMap:qb,expand:function(c,a,b){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===b&&(b=void 0);a=1>(a||0)?Number.POSITIVE_INFINITY:a;return function(d){return d.lift(new be(c,a,b))}},filter:da,finalize:function(c){return function(a){return a.lift(new de(c))}},find:function(c,a){if("function"!==typeof c)throw new TypeError("predicate is not a function");return function(b){return b.lift(new Ib(c,
b,!1,a))}},findIndex:function(c,a){return function(b){return b.lift(new Ib(c,b,!0,a))}},first:function(c,a){var b=2<=arguments.length;return function(d){return d.pipe(c?da(function(a,b){return c(a,b,d)}):S,Fa(1),b?ha(a):ta(function(){return new ia}))}},groupBy:function(c,a,b,d){return function(f){return f.lift(new Uc(c,a,b,d))}},ignoreElements:function(){return function(c){return c.lift(new ge)}},isEmpty:function(){return function(c){return c.lift(new ie)}},last:function(c,a){var b=2<=arguments.length;
return function(d){return d.pipe(c?da(function(a,b){return c(a,b,d)}):S,na(1),b?ha(a):ta(function(){return new ia}))}},map:G,mapTo:function(c){return function(a){return a.lift(new le(c))}},materialize:function(){return function(c){return c.lift(new ne)}},max:function(c){return pa("function"===typeof c?function(a,b){return 0<c(a,b)?a:b}:function(a,b){return a>b?a:b})},merge:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){return a.lift.call(fb.apply(void 0,[a].concat(c)))}},
mergeAll:Ca,mergeMap:V,flatMap:V,mergeMapTo:function(c,a,b){void 0===b&&(b=Number.POSITIVE_INFINITY);if("function"===typeof a)return V(function(){return c},a,b);"number"===typeof a&&(b=a);return V(function(){return c},b)},mergeScan:function(c,a,b){void 0===b&&(b=Number.POSITIVE_INFINITY);return function(d){return d.lift(new qe(c,a,b))}},min:function(c){return pa("function"===typeof c?function(a,b){return 0>c(a,b)?a:b}:function(a,b){return a<b?a:b})},multicast:W,observeOn:function(c,a){void 0===a&&
(a=0);return function(b){return b.lift(new Yc(c,a))}},onErrorResumeNext:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];1===c.length&&D(c[0])&&(c=c[0]);return function(a){return a.lift(new se(c))}},pairwise:function(){return function(c){return c.lift(new ue)}},partition:function(c,a){return function(b){return[da(c,a)(b),da(xc(c,a))(b)]}},pluck:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var b=c.length;if(0===b)throw Error("list of properties cannot be empty.");
return function(a){return G(yc(c,b))(a)}},publish:function(c){return c?W(function(){return new y},c):W(new y)},publishBehavior:function(c){return function(a){return W(new Ab(c))(a)}},publishLast:function(){return function(c){return W(new aa)(c)}},publishReplay:function(c,a,b,d){b&&"function"!==typeof b&&(d=b);var f="function"===typeof b?b:void 0,e=new X(c,a,d);return function(a){return W(function(){return e},f)(a)}},race:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){1===
c.length&&D(c[0])&&(c=c[0]);return a.lift.call(gb.apply(void 0,[a].concat(c)))}},reduce:pa,repeat:function(c){void 0===c&&(c=-1);return function(a){return 0===c?K():0>c?a.lift(new Jb(-1,a)):a.lift(new Jb(c-1,a))}},repeatWhen:function(c){return function(a){return a.lift(new xe(c))}},retry:function(c){void 0===c&&(c=-1);return function(a){return a.lift(new ze(c,a))}},retryWhen:function(c){return function(a){return a.lift(new Be(c,a))}},refCount:ea,sample:function(c){return function(a){return a.lift(new De(c))}},
sampleTime:function(c,a){void 0===a&&(a=C);return function(b){return b.lift(new Fe(c,a))}},scan:oa,sequenceEqual:function(c,a){return function(b){return b.lift(new He(c,a))}},share:function(){return function(c){return ea()(W(Ac)(c))}},shareReplay:function(c,a,b){void 0===c&&(c=Number.POSITIVE_INFINITY);void 0===a&&(a=Number.POSITIVE_INFINITY);return function(d){return d.lift(Bc(c,a,b))}},single:function(c){return function(a){return a.lift(new Ke(c,a))}},skip:function(c){return function(a){return a.lift(new Me(c))}},
skipLast:function(c){return function(a){return a.lift(new Oe(c))}},skipUntil:function(c){return function(a){return a.lift(new Qe(c))}},skipWhile:function(c){return function(a){return a.lift(new Se(c))}},startWith:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){var b=c[c.length-1];B(b)?c.pop():b=null;var d=c.length;return 1!==d||b?0<d?P(L(c,b),a):P(K(b),a):P(xa(c[0]),a)}},subscribeOn:function(c,a){void 0===a&&(a=0);return function(b){return b.lift(new Ue(c,a))}},
switchAll:function(){return ja(S)},switchMap:ja,switchMapTo:function(c,a){return a?ja(function(){return c},a):ja(function(){return c})},take:Fa,takeLast:na,takeUntil:function(c){return function(a){return a.lift(new Xe(c))}},takeWhile:function(c){return function(a){return a.lift(new Ze(c))}},tap:pb,throttle:function(c,a){void 0===a&&(a=Kb);return function(b){return b.lift(new af(c,a.leading,a.trailing))}},throttleTime:function(c,a,b){void 0===a&&(a=C);void 0===b&&(b=Kb);return function(d){return d.lift(new cf(c,
a,b.leading,b.trailing))}},throwIfEmpty:ta,timeInterval:function(c){void 0===c&&(c=C);return function(a){return Da(function(){return a.pipe(oa(function(a,d){a=a.current;return{value:d,current:c.now(),last:a}},{current:c.now(),value:void 0,last:void 0}),G(function(a){return new df(a.value,a.current-a.last)}))})}},timeout:function(c,a){void 0===a&&(a=C);return rb(c,za(new Aa),a)},timeoutWith:rb,timestamp:function(c){void 0===c&&(c=C);return G(function(a){return new ff(a,c.now())})},toArray:function(){return pa(Fc,
[])},window:function(c){return function(a){return a.lift(new hf(c))}},windowCount:function(c,a){void 0===a&&(a=0);return function(b){return b.lift(new kf(c,a))}},windowTime:function(c,a,b,d){var f=C,e=null,k=Number.POSITIVE_INFINITY;B(d)&&(f=d);B(b)?f=b:ca(b)&&(k=b);B(a)?f=a:ca(a)&&(e=a);return function(a){return a.lift(new mf(c,e,k,f))}},windowToggle:function(c,a){return function(b){return b.lift(new pf(c,a))}},windowWhen:function(c){return function(a){return a.lift(new rf(c))}},withLatestFrom:function(){for(var c=
[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){var b;"function"===typeof c[c.length-1]&&(b=c.pop());return a.lift(new tf(c,b))}},zip:function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return function(a){return a.lift.call(ib.apply(void 0,[a].concat(c)))}},zipAll:function(c){return function(a){return a.lift(new jb(c))}}}),ma=function(){return function(c,a){void 0===a&&(a=Number.POSITIVE_INFINITY);this.subscribedFrame=c;this.unsubscribedFrame=a}}(),Lb=function(){function c(){this.subscriptions=
[]}c.prototype.logSubscribedFrame=function(){this.subscriptions.push(new ma(this.scheduler.now()));return this.subscriptions.length-1};c.prototype.logUnsubscribedFrame=function(a){var b=this.subscriptions;b[a]=new ma(b[a].subscribedFrame,this.scheduler.now())};return c}(),Na=function(c){function a(a,d){var b=c.call(this,function(a){var b=this,c=b.logSubscribedFrame(),d=new w;d.add(new w(function(){b.logUnsubscribedFrame(c)}));b.scheduleMessages(a);return d})||this;b.messages=a;b.subscriptions=[];
b.scheduler=d;return b}d(a,c);a.prototype.scheduleMessages=function(a){for(var b=this.messages.length,c=0;c<b;c++){var d=this.messages[c];a.add(this.scheduler.schedule(function(a){a.message.notification.observe(a.subscriber)},d.frame,{message:d,subscriber:a}))}};return a}(r);tb(Na,[Lb]);var Mb=function(c){function a(a,d){var b=c.call(this)||this;b.messages=a;b.subscriptions=[];b.scheduler=d;return b}d(a,c);a.prototype._subscribe=function(a){var b=this,d=b.logSubscribedFrame(),e=new w;e.add(new w(function(){b.logUnsubscribedFrame(d)}));
e.add(c.prototype._subscribe.call(this,a));return e};a.prototype.setup=function(){for(var a=this,c=a.messages.length,d=0;d<c;d++)(function(){var b=a.messages[d];a.scheduler.schedule(function(){b.notification.observe(a)},b.frame)})()};return a}(y);tb(Mb,[Lb]);var vf=function(c){function a(a){var b=c.call(this,La,750)||this;b.assertDeepEqual=a;b.hotObservables=[];b.coldObservables=[];b.flushTests=[];b.runMode=!1;return b}d(a,c);a.prototype.createTime=function(b){b=b.indexOf("|");if(-1===b)throw Error('marble diagram for time should have a completion marker "|"');
return b*a.frameTimeFactor};a.prototype.createColdObservable=function(b,c,d){if(-1!==b.indexOf("^"))throw Error('cold observable cannot have subscription offset "^"');if(-1!==b.indexOf("!"))throw Error('cold observable cannot have unsubscription marker "!"');b=a.parseMarbles(b,c,d,void 0,this.runMode);b=new Na(b,this);this.coldObservables.push(b);return b};a.prototype.createHotObservable=function(b,c,d){if(-1!==b.indexOf("!"))throw Error('hot observable cannot have unsubscription marker "!"');b=a.parseMarbles(b,
c,d,void 0,this.runMode);b=new Mb(b,this);this.hotObservables.push(b);return b};a.prototype.materializeInnerObservable=function(a,c){var b=this,d=[];a.subscribe(function(a){d.push({frame:b.frame-c,notification:z.createNext(a)})},function(a){d.push({frame:b.frame-c,notification:z.createError(a)})},function(){d.push({frame:b.frame-c,notification:z.createComplete()})});return d};a.prototype.expectObservable=function(b,c){var d=this;void 0===c&&(c=null);var f=[],e={actual:f,ready:!1};c=a.parseMarblesAsSubscriptions(c,
this.runMode);var k=c.unsubscribedFrame,l;this.schedule(function(){l=b.subscribe(function(a){var b=a;a instanceof r&&(b=d.materializeInnerObservable(b,d.frame));f.push({frame:d.frame,notification:z.createNext(b)})},function(a){f.push({frame:d.frame,notification:z.createError(a)})},function(){f.push({frame:d.frame,notification:z.createComplete()})})},c.subscribedFrame===Number.POSITIVE_INFINITY?0:c.subscribedFrame);k!==Number.POSITIVE_INFINITY&&this.schedule(function(){return l.unsubscribe()},k);this.flushTests.push(e);
var m=this.runMode;return{toBe:function(b,c,d){e.ready=!0;e.expected=a.parseMarbles(b,c,d,!0,m)}}};a.prototype.expectSubscriptions=function(b){var c={actual:b,ready:!1};this.flushTests.push(c);var d=this.runMode;return{toBe:function(b){b="string"===typeof b?[b]:b;c.ready=!0;c.expected=b.map(function(b){return a.parseMarblesAsSubscriptions(b,d)})}}};a.prototype.flush=function(){for(var a=this,d=this.hotObservables;0<d.length;)d.shift().setup();c.prototype.flush.call(this);this.flushTests=this.flushTests.filter(function(b){return b.ready?
(a.assertDeepEqual(b.actual,b.expected),!1):!0})};a.parseMarblesAsSubscriptions=function(a,c){var b=this;void 0===c&&(c=!1);if("string"!==typeof a)return new ma(Number.POSITIVE_INFINITY);for(var d=a.length,f=-1,e=Number.POSITIVE_INFINITY,k=Number.POSITIVE_INFINITY,l=0,m=function(d){var g=l,h=function(a){g+=a*b.frameTimeFactor},m=a[d];switch(m){case " ":c||h(1);break;case "-":h(1);break;case "(":f=l;h(1);break;case ")":f=-1;h(1);break;case "^":if(e!==Number.POSITIVE_INFINITY)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");
e=-1<f?f:l;h(1);break;case "!":if(k!==Number.POSITIVE_INFINITY)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");k=-1<f?f:l;break;default:if(c&&m.match(/^[0-9]$/)&&(0===d||" "===a[d-1])){var t=a.slice(d).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(t){d+=t[0].length-1;var m=parseFloat(t[1]),p=void 0;switch(t[2]){case "ms":p=m;break;case "s":p=1E3*m;break;case "m":p=6E4*m}h(p/n.frameTimeFactor);break}}throw Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+
m+"'.");}l=g;q=d},n=this,q,p=0;p<d;p++)m(p),p=q;return 0>k?new ma(e):new ma(e,k)};a.parseMarbles=function(a,c,d,e,k){var b=this;void 0===e&&(e=!1);void 0===k&&(k=!1);if(-1!==a.indexOf("!"))throw Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var f=a.length,g=[],h=k?a.replace(/^[ ]+/,"").indexOf("^"):a.indexOf("^"),l=-1===h?0:h*-this.frameTimeFactor,m="object"!==typeof c?function(a){return a}:function(a){return e&&c[a]instanceof Na?c[a].messages:c[a]},p=-1,h=function(c){var f=
l,e=function(a){f+=a*b.frameTimeFactor},h=void 0,t=a[c];switch(t){case " ":k||e(1);break;case "-":e(1);break;case "(":p=l;e(1);break;case ")":p=-1;e(1);break;case "|":h=z.createComplete();e(1);break;case "^":e(1);break;case "#":h=z.createError(d||"error");e(1);break;default:if(k&&t.match(/^[0-9]$/)&&(0===c||" "===a[c-1])){var r=a.slice(c).match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(r){c+=r[0].length-1;var t=parseFloat(r[1]),E=void 0;switch(r[2]){case "ms":E=t;break;case "s":E=1E3*t;break;case "m":E=
6E4*t}e(E/n.frameTimeFactor);break}}h=z.createNext(m(t));e(1)}h&&g.push({frame:-1<p?p:l,notification:h});l=f;q=c},n=this,q,r=0;r<f;r++)h(r),r=q;return g};a.prototype.run=function(b){var c=a.frameTimeFactor,d=this.maxFrames;a.frameTimeFactor=1;this.maxFrames=Number.POSITIVE_INFINITY;this.runMode=!0;Z.delegate=this;var e={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this)};
try{var k=b(e);this.flush();return k}finally{a.frameTimeFactor=c,this.maxFrames=d,this.runMode=!1,Z.delegate=void 0}};return a}(Eb),wf=Object.freeze({TestScheduler:vf}),xf="undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,yf="undefined"!==typeof global&&global,F="undefined"!==typeof window&&window||yf||xf;if(!F)throw Error("RxJS could not find any global context (window, self, global)");var Oc=G(function(c,a){return c.response}),Y=function(c){function a(a){var b=
c.call(this)||this,d={async:!0,createXHR:function(){var a;if(this.crossDomain)if(F.XMLHttpRequest)a=new F.XMLHttpRequest;else if(F.XDomainRequest)a=new F.XDomainRequest;else throw Error("CORS is not supported by your browser");else if(F.XMLHttpRequest)a=new F.XMLHttpRequest;else{var b=void 0;try{for(var c=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],d=0;3>d;d++)try{b=c[d];new F.ActiveXObject(b);break}catch(t){}a=new F.ActiveXObject(b)}catch(t){throw Error("XMLHttpRequest is not supported by your browser");
}}return a},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"===typeof a)d.url=a;else for(var e in a)a.hasOwnProperty(e)&&(d[e]=a[e]);b.request=d;return b}d(a,c);a.prototype._subscribe=function(a){return new zf(a,this.request)};a.create=function(){var b=function(b){return new a(b)};b.get=Ic;b.post=Jc;b.delete=Kc;b.put=Lc;b.patch=Mc;b.getJSON=Nc;return b}();return a}(r),zf=function(c){function a(a,d){a=c.call(this,a)||this;a.request=d;a.done=!1;var b=
d.headers=d.headers||{};d.crossDomain||b["X-Requested-With"]||(b["X-Requested-With"]="XMLHttpRequest");"Content-Type"in b||F.FormData&&d.body instanceof F.FormData||"undefined"===typeof d.body||(b["Content-Type"]="application/x-www-form-urlencoded; charset\x3dUTF-8");d.body=a.serializeBody(d.body,d.headers["Content-Type"]);a.send();return a}d(a,c);a.prototype.next=function(a){this.done=!0;var b=this.destination;a=new Nb(a,this.xhr,this.request);a.response===p?b.error(p.e):b.next(a)};a.prototype.send=
function(){var a=this.request,c=this.request,d=c.user,e=c.method,k=c.url,l=c.async,n=c.password,q=c.headers,c=c.body,t=m(a.createXHR).call(a);if(t===p)this.error(p.e);else{this.xhr=t;this.setupEvents(t,a);d=d?m(t.open).call(t,e,k,l,d,n):m(t.open).call(t,e,k,l);if(d===p)return this.error(p.e),null;l&&(t.timeout=a.timeout,t.responseType=a.responseType);"withCredentials"in t&&(t.withCredentials=!!a.withCredentials);this.setHeaders(t,q);d=c?m(t.send).call(t,c):m(t.send).call(t);if(d===p)return this.error(p.e),
null}return t};a.prototype.serializeBody=function(a,c){if(!a||"string"===typeof a||F.FormData&&a instanceof F.FormData)return a;if(c){var b=c.indexOf(";");-1!==b&&(c=c.substring(0,b))}switch(c){case "application/x-www-form-urlencoded":return Object.keys(a).map(function(b){return encodeURIComponent(b)+"\x3d"+encodeURIComponent(a[b])}).join("\x26");case "application/json":return JSON.stringify(a);default:return a}};a.prototype.setHeaders=function(a,c){for(var b in c)c.hasOwnProperty(b)&&a.setRequestHeader(b,
c[b])};a.prototype.setupEvents=function(a,c){function b(a){var c=b.subscriber,d=b.progressSubscriber,f=b.request;d&&d.error(a);a=new Ob(this,f);a.response===p?c.error(p.e):c.error(a)}function d(a){}function f(a){var b=f.subscriber,c=f.progressSubscriber,d=f.request;if(4===this.readyState){var e=1223===this.status?204:this.status,g="text"===this.responseType?this.response||this.responseText:this.response;0===e&&(e=g?200:0);400>e?(c&&c.complete(),b.next(a),b.complete()):(c&&c.error(a),a=new ua("ajax error "+
e,this,d),a.response===p?b.error(p.e):b.error(a))}}var e=c.progressSubscriber;a.ontimeout=b;b.request=c;b.subscriber=this;b.progressSubscriber=e;if(a.upload&&"withCredentials"in a){if(e){var k;k=function(a){k.progressSubscriber.next(a)};F.XDomainRequest?a.onprogress=k:a.upload.onprogress=k;k.progressSubscriber=e}var l;l=function(a){var b=l.progressSubscriber,c=l.subscriber,d=l.request;b&&b.error(a);a=new ua("ajax error",this,d);a.response===p?c.error(p.e):c.error(a)};a.onerror=l;l.request=c;l.subscriber=
this;l.progressSubscriber=e}a.onreadystatechange=d;d.subscriber=this;d.progressSubscriber=e;d.request=c;a.onload=f;f.subscriber=this;f.progressSubscriber=e;f.request=c};a.prototype.unsubscribe=function(){var a=this.xhr;!this.done&&a&&4!==a.readyState&&"function"===typeof a.abort&&a.abort();c.prototype.unsubscribe.call(this)};return a}(q),Nb=function(){return function(c,a,b){this.originalEvent=c;this.xhr=a;this.request=b;this.status=a.status;this.responseType=a.responseType||b.responseType;this.response=
vb(this.responseType,a)}}();ub.prototype=Object.create(Error.prototype);var ua=ub,Ob=function(c,a){ua.call(this,"ajax timeout",c,a);this.name="AjaxTimeoutError";return this},Af=Object.freeze({ajax:Y.create,AjaxResponse:Nb,AjaxError:ua,AjaxTimeoutError:Ob}),Bf={url:"",deserializer:function(c){return JSON.parse(c.data)},serializer:function(c){return JSON.stringify(c)}},Pb=function(c){function a(a,d){var b=c.call(this)||this;if(a instanceof r)b.destination=d,b.source=a;else{d=b._config=Qc({},Bf);b._output=
new y;if("string"===typeof a)d.url=a;else for(var f in a)a.hasOwnProperty(f)&&(d[f]=a[f]);if(!d.WebSocketCtor&&WebSocket)d.WebSocketCtor=WebSocket;else if(!d.WebSocketCtor)throw Error("no WebSocket constructor can be found");b.destination=new X}return b}d(a,c);a.prototype.lift=function(b){var c=new a(this._config,this.destination);c.operator=b;c.source=this;return c};a.prototype._resetState=function(){this._socket=null;this.source||(this.destination=new X);this._output=new y};a.prototype.multiplex=
function(a,c,d){var b=this;return new r(function(f){var e=m(a)();e===p?f.error(p.e):b.next(e);var g=b.subscribe(function(a){var b=m(d)(a);b===p?f.error(p.e):b&&f.next(a)},function(a){return f.error(a)},function(){return f.complete()});return function(){var a=m(c)();a===p?f.error(p.e):b.next(a);g.unsubscribe()}})};a.prototype._connectSocket=function(){var a=this,c=this._config,d=c.WebSocketCtor,e=c.protocol,k=c.url,c=c.binaryType,l=this._output,n=null;try{this._socket=n=e?new d(k,e):new d(k),c&&(this._socket.binaryType=
c)}catch(t){l.error(t);return}var r=new w(function(){a._socket=null;n&&1===n.readyState&&n.close()});n.onopen=function(b){var c=a._config.openObserver;c&&c.next(b);b=a.destination;a.destination=q.create(function(b){1===n.readyState&&(b=m(a._config.serializer)(b),b===p?a.destination.error(p.e):n.send(b))},function(b){var c=a._config.closingObserver;c&&c.next(void 0);b&&b.code?n.close(b.code,b.reason):l.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }"));
a._resetState()},function(){var b=a._config.closingObserver;b&&b.next(void 0);n.close();a._resetState()});b&&b instanceof X&&r.add(b.subscribe(a.destination))};n.onerror=function(b){a._resetState();l.error(b)};n.onclose=function(b){a._resetState();var c=a._config.closeObserver;c&&c.next(b);b.wasClean?l.complete():l.error(b)};n.onmessage=function(b){b=m(a._config.deserializer)(b);b===p?l.error(p.e):l.next(b)}};a.prototype._subscribe=function(a){var b=this,c=this.source;if(c)return c.subscribe(a);this._socket||
this._connectSocket();this._output.subscribe(a);a.add(function(){var a=b._socket;0===b._output.observers.length&&(a&&1===a.readyState&&a.close(),b._resetState())});return a};a.prototype.unsubscribe=function(){var a=this.source,d=this._socket;d&&1===d.readyState&&(d.close(),this._resetState());c.prototype.unsubscribe.call(this);a||(this.destination=new X)};return a}(Ha),Cf=Object.freeze({webSocket:function(c){return new Pb(c)},WebSocketSubject:Pb});e.operators=uf;e.testing=wf;e.ajax=Af;e.webSocket=
Cf;e.Observable=r;e.ConnectableObservable=zb;e.GroupedObservable=Ia;e.observable=ba;e.Subject=y;e.BehaviorSubject=Ab;e.ReplaySubject=X;e.AsyncSubject=aa;e.asapScheduler=sa;e.asyncScheduler=C;e.queueScheduler=Bb;e.animationFrameScheduler=dd;e.VirtualTimeScheduler=Eb;e.VirtualAction=La;e.Scheduler=Ja;e.Subscription=w;e.Subscriber=q;e.Notification=z;e.pipe=wa;e.noop=A;e.identity=S;e.isObservable=function(c){return!!c&&(c instanceof r||"function"===typeof c.lift&&"function"===typeof c.subscribe)};e.ArgumentOutOfRangeError=
T;e.EmptyError=ia;e.ObjectUnsubscribedError=J;e.UnsubscriptionError=fa;e.TimeoutError=Aa;e.bindCallback=Sa;e.bindNodeCallback=Ta;e.combineLatest=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var b=a=null;B(c[c.length-1])&&(b=c.pop());"function"===typeof c[c.length-1]&&(a=c.pop());1===c.length&&D(c[0])&&(c=c[0]);return L(c,b).lift(new Ma(a))};e.concat=P;e.defer=Da;e.empty=K;e.forkJoin=bb;e.from=N;e.fromEvent=cb;e.fromEventPattern=eb;e.generate=function(c,a,b,d,e){var f,g;1==
arguments.length?(g=c.initialState,a=c.condition,b=c.iterate,f=c.resultSelector||S,e=c.scheduler):void 0===d||B(d)?(g=c,f=S,e=d):(g=c,f=d);return new r(function(c){var d=g;if(e)return e.schedule(dc,0,{subscriber:c,iterate:b,condition:a,resultSelector:f,state:d});do{if(a){var h=void 0;try{h=a(d)}catch(t){c.error(t);break}if(!h){c.complete();break}}h=void 0;try{h=f(d)}catch(t){c.error(t);break}c.next(h);if(c.closed)break;try{d=b(d)}catch(t){c.error(t);break}}while(1)})};e.iif=function(c,a,b){void 0===
a&&(a=R);void 0===b&&(b=R);return Da(function(){return c()?a:b})};e.interval=function(c,a){void 0===c&&(c=0);void 0===a&&(a=C);if(!ca(c)||0>c)c=0;a&&"function"===typeof a.schedule||(a=C);return new r(function(b){b.add(a.schedule(ec,c,{subscriber:b,counter:0,period:c}));return b})};e.merge=fb;e.never=function(){return Gb};e.of=ya;e.onErrorResumeNext=Ea;e.pairs=function(c,a){return a?new r(function(b){var d=Object.keys(c),e=new w;e.add(a.schedule(fc,0,{keys:d,index:0,subscriber:b,subscription:e,obj:c}));
return e}):new r(function(a){for(var b=Object.keys(c),d=0;d<b.length&&!a.closed;d++){var e=b[d];c.hasOwnProperty(e)&&a.next([e,c[e]])}a.complete()})};e.race=gb;e.range=function(c,a,b){void 0===c&&(c=0);void 0===a&&(a=0);return new r(function(d){var e=0,f=c;if(b)return b.schedule(hc,0,{index:e,count:a,start:c,subscriber:d});do{if(e++>=a){d.complete();break}d.next(f++);if(d.closed)break}while(1)})};e.throwError=za;e.timer=hb;e.using=function(c,a){return new r(function(b){var d;try{d=c()}catch(E){b.error(E);
return}var e;try{e=a(d)}catch(E){b.error(E);return}var h=(e?N(e):R).subscribe(b);return function(){h.unsubscribe();d&&d.unsubscribe()}})};e.zip=ib;e.EMPTY=R;e.NEVER=Gb;e.config=H;Object.defineProperty(e,"__esModule",{value:!0})});