yoyoyo 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- metadata +11 -128
- data/LICENSE +0 -21
- data/README.md +0 -116
- data/_includes/categories.html +0 -8
- data/_includes/footer.html +0 -3
- data/_includes/head.html +0 -104
- data/_includes/header.html +0 -13
- data/_includes/home-footer.html +0 -3
- data/_includes/home-header.html +0 -4
- data/_includes/home-navigation.html +0 -7
- data/_includes/navigation.html +0 -7
- data/_includes/pagination.html +0 -41
- data/_includes/post-card.html +0 -12
- data/_includes/tags.html +0 -8
- data/_layouts/about.html +0 -6
- data/_layouts/author.html +0 -15
- data/_layouts/default.html +0 -30
- data/_layouts/home.html +0 -22
- data/_layouts/post.html +0 -25
- data/_sass/.DS_Store +0 -0
- data/_sass/_alert.scss +0 -51
- data/_sass/_badge.scss +0 -53
- data/_sass/_breadcrumb.scss +0 -41
- data/_sass/_button-group.scss +0 -163
- data/_sass/_buttons.scss +0 -140
- data/_sass/_card.scss +0 -310
- data/_sass/_carousel.scss +0 -198
- data/_sass/_close.scss +0 -44
- data/_sass/_code.scss +0 -48
- data/_sass/_custom-forms.scss +0 -507
- data/_sass/_dropdown.scss +0 -191
- data/_sass/_forms.scss +0 -334
- data/_sass/_functions.scss +0 -86
- data/_sass/_grid.scss +0 -52
- data/_sass/_images.scss +0 -42
- data/_sass/_input-group.scss +0 -193
- data/_sass/_jumbotron.scss +0 -16
- data/_sass/_list-group.scss +0 -121
- data/_sass/_media.scss +0 -8
- data/_sass/_mixins.scss +0 -41
- data/_sass/_modal.scss +0 -186
- data/_sass/_nav.scss +0 -120
- data/_sass/_navbar.scss +0 -299
- data/_sass/_pagination.scss +0 -78
- data/_sass/_popover.scss +0 -183
- data/_sass/_print.scss +0 -141
- data/_sass/_progress.scss +0 -34
- data/_sass/_reboot.scss +0 -462
- data/_sass/_root.scss +0 -19
- data/_sass/_spinners.scss +0 -53
- data/_sass/_tables.scss +0 -187
- data/_sass/_toasts.scss +0 -43
- data/_sass/_tooltip.scss +0 -115
- data/_sass/_transitions.scss +0 -22
- data/_sass/_type.scss +0 -125
- data/_sass/_utilities.scss +0 -16
- data/_sass/_variables.scss +0 -1091
- data/_sass/body.scss +0 -22
- data/_sass/bootstrap-grid.scss +0 -29
- data/_sass/bootstrap-reboot.scss +0 -12
- data/_sass/bootstrap.scss +0 -44
- data/_sass/header.scss +0 -54
- data/_sass/main.scss +0 -23
- data/_sass/mixins/_alert.scss +0 -13
- data/_sass/mixins/_background-variant.scss +0 -21
- data/_sass/mixins/_badge.scss +0 -11
- data/_sass/mixins/_border-radius.scss +0 -35
- data/_sass/mixins/_box-shadow.scss +0 -5
- data/_sass/mixins/_breakpoints.scss +0 -123
- data/_sass/mixins/_buttons.scss +0 -111
- data/_sass/mixins/_caret.scss +0 -62
- data/_sass/mixins/_clearfix.scss +0 -7
- data/_sass/mixins/_float.scss +0 -11
- data/_sass/mixins/_forms.scss +0 -198
- data/_sass/mixins/_gradients.scss +0 -45
- data/_sass/mixins/_grid-framework.scss +0 -66
- data/_sass/mixins/_grid.scss +0 -51
- data/_sass/mixins/_hover.scss +0 -37
- data/_sass/mixins/_image.scss +0 -36
- data/_sass/mixins/_list-group.scss +0 -21
- data/_sass/mixins/_lists.scss +0 -7
- data/_sass/mixins/_nav-divider.scss +0 -10
- data/_sass/mixins/_pagination.scss +0 -22
- data/_sass/mixins/_reset-text.scss +0 -17
- data/_sass/mixins/_resize.scss +0 -6
- data/_sass/mixins/_screen-reader.scss +0 -33
- data/_sass/mixins/_size.scss +0 -6
- data/_sass/mixins/_table-row.scss +0 -39
- data/_sass/mixins/_text-emphasis.scss +0 -14
- data/_sass/mixins/_text-hide.scss +0 -13
- data/_sass/mixins/_text-truncate.scss +0 -8
- data/_sass/mixins/_transition.scss +0 -16
- data/_sass/mixins/_visibility.scss +0 -7
- data/_sass/post.scss +0 -3
- data/_sass/utilities/_align.scss +0 -8
- data/_sass/utilities/_background.scss +0 -19
- data/_sass/utilities/_borders.scss +0 -63
- data/_sass/utilities/_clearfix.scss +0 -3
- data/_sass/utilities/_display.scss +0 -38
- data/_sass/utilities/_embed.scss +0 -39
- data/_sass/utilities/_flex.scss +0 -51
- data/_sass/utilities/_float.scss +0 -9
- data/_sass/utilities/_overflow.scss +0 -5
- data/_sass/utilities/_position.scss +0 -32
- data/_sass/utilities/_screenreaders.scss +0 -11
- data/_sass/utilities/_shadows.scss +0 -6
- data/_sass/utilities/_sizing.scss +0 -20
- data/_sass/utilities/_spacing.scss +0 -73
- data/_sass/utilities/_text.scss +0 -67
- data/_sass/utilities/_visibility.scss +0 -11
- data/assets/.DS_Store +0 -0
- data/assets/css/styles.scss +0 -5
- data/assets/images/programming_code.svg +0 -1
- data/assets/images/wxmp.png +0 -0
- data/assets/js/app.js +0 -4504
- data/assets/js/app.js.map +0 -1
- data/assets/ts/app.ts +0 -10
data/assets/js/app.js
DELETED
@@ -1,4504 +0,0 @@
|
|
1
|
-
/******/ (function(modules) { // webpackBootstrap
|
2
|
-
/******/ // The module cache
|
3
|
-
/******/ var installedModules = {};
|
4
|
-
/******/
|
5
|
-
/******/ // The require function
|
6
|
-
/******/ function __webpack_require__(moduleId) {
|
7
|
-
/******/
|
8
|
-
/******/ // Check if module is in cache
|
9
|
-
/******/ if(installedModules[moduleId]) {
|
10
|
-
/******/ return installedModules[moduleId].exports;
|
11
|
-
/******/ }
|
12
|
-
/******/ // Create a new module (and put it into the cache)
|
13
|
-
/******/ var module = installedModules[moduleId] = {
|
14
|
-
/******/ i: moduleId,
|
15
|
-
/******/ l: false,
|
16
|
-
/******/ exports: {}
|
17
|
-
/******/ };
|
18
|
-
/******/
|
19
|
-
/******/ // Execute the module function
|
20
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
-
/******/
|
22
|
-
/******/ // Flag the module as loaded
|
23
|
-
/******/ module.l = true;
|
24
|
-
/******/
|
25
|
-
/******/ // Return the exports of the module
|
26
|
-
/******/ return module.exports;
|
27
|
-
/******/ }
|
28
|
-
/******/
|
29
|
-
/******/
|
30
|
-
/******/ // expose the modules object (__webpack_modules__)
|
31
|
-
/******/ __webpack_require__.m = modules;
|
32
|
-
/******/
|
33
|
-
/******/ // expose the module cache
|
34
|
-
/******/ __webpack_require__.c = installedModules;
|
35
|
-
/******/
|
36
|
-
/******/ // define getter function for harmony exports
|
37
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
39
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
40
|
-
/******/ }
|
41
|
-
/******/ };
|
42
|
-
/******/
|
43
|
-
/******/ // define __esModule on exports
|
44
|
-
/******/ __webpack_require__.r = function(exports) {
|
45
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
46
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
47
|
-
/******/ }
|
48
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
49
|
-
/******/ };
|
50
|
-
/******/
|
51
|
-
/******/ // create a fake namespace object
|
52
|
-
/******/ // mode & 1: value is a module id, require it
|
53
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
54
|
-
/******/ // mode & 4: return value when already ns object
|
55
|
-
/******/ // mode & 8|1: behave like require
|
56
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
57
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
58
|
-
/******/ if(mode & 8) return value;
|
59
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
60
|
-
/******/ var ns = Object.create(null);
|
61
|
-
/******/ __webpack_require__.r(ns);
|
62
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
63
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
64
|
-
/******/ return ns;
|
65
|
-
/******/ };
|
66
|
-
/******/
|
67
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
68
|
-
/******/ __webpack_require__.n = function(module) {
|
69
|
-
/******/ var getter = module && module.__esModule ?
|
70
|
-
/******/ function getDefault() { return module['default']; } :
|
71
|
-
/******/ function getModuleExports() { return module; };
|
72
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
73
|
-
/******/ return getter;
|
74
|
-
/******/ };
|
75
|
-
/******/
|
76
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
77
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
78
|
-
/******/
|
79
|
-
/******/ // __webpack_public_path__
|
80
|
-
/******/ __webpack_require__.p = "";
|
81
|
-
/******/
|
82
|
-
/******/
|
83
|
-
/******/ // Load entry module and return exports
|
84
|
-
/******/ return __webpack_require__(__webpack_require__.s = "./assets/ts/app.ts");
|
85
|
-
/******/ })
|
86
|
-
/************************************************************************/
|
87
|
-
/******/ ({
|
88
|
-
|
89
|
-
/***/ "./assets/ts/app.ts":
|
90
|
-
/*!**************************!*\
|
91
|
-
!*** ./assets/ts/app.ts ***!
|
92
|
-
\**************************/
|
93
|
-
/*! no static exports found */
|
94
|
-
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
|
95
|
-
/***/ (function(module, exports, __webpack_require__) {
|
96
|
-
|
97
|
-
"use strict";
|
98
|
-
|
99
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
100
|
-
var rxjs_1 = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
101
|
-
var bodyEvent = rxjs_1.fromEvent(document, 'DOMContentLoaded');
|
102
|
-
var bodyAddClass = function (className) {
|
103
|
-
var body = document.body;
|
104
|
-
body.classList.add(className);
|
105
|
-
};
|
106
|
-
bodyEvent.subscribe(function () { return bodyAddClass('render'); });
|
107
|
-
|
108
|
-
|
109
|
-
/***/ }),
|
110
|
-
|
111
|
-
/***/ "./node_modules/rxjs/_esm5/index.js":
|
112
|
-
/*!********************************************************!*\
|
113
|
-
!*** ./node_modules/rxjs/_esm5/index.js + 101 modules ***!
|
114
|
-
\********************************************************/
|
115
|
-
/*! exports provided: Observable, ConnectableObservable, GroupedObservable, observable, Subject, BehaviorSubject, ReplaySubject, AsyncSubject, asapScheduler, asyncScheduler, queueScheduler, animationFrameScheduler, VirtualTimeScheduler, VirtualAction, Scheduler, Subscription, Subscriber, Notification, NotificationKind, pipe, noop, identity, isObservable, ArgumentOutOfRangeError, EmptyError, ObjectUnsubscribedError, UnsubscriptionError, TimeoutError, bindCallback, bindNodeCallback, combineLatest, concat, defer, empty, forkJoin, from, fromEvent, fromEventPattern, generate, iif, interval, merge, never, of, onErrorResumeNext, pairs, partition, race, range, throwError, timer, using, zip, scheduled, EMPTY, NEVER, config */
|
116
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
117
|
-
|
118
|
-
"use strict";
|
119
|
-
__webpack_require__.r(__webpack_exports__);
|
120
|
-
|
121
|
-
// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.js
|
122
|
-
/*! *****************************************************************************
|
123
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
124
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
125
|
-
this file except in compliance with the License. You may obtain a copy of the
|
126
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
127
|
-
|
128
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
129
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
130
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
131
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
132
|
-
|
133
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
134
|
-
and limitations under the License.
|
135
|
-
***************************************************************************** */
|
136
|
-
/* global Reflect, Promise */
|
137
|
-
|
138
|
-
var extendStatics = function(d, b) {
|
139
|
-
extendStatics = Object.setPrototypeOf ||
|
140
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
141
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
142
|
-
return extendStatics(d, b);
|
143
|
-
};
|
144
|
-
|
145
|
-
function __extends(d, b) {
|
146
|
-
extendStatics(d, b);
|
147
|
-
function __() { this.constructor = d; }
|
148
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
149
|
-
}
|
150
|
-
|
151
|
-
var __assign = function() {
|
152
|
-
__assign = Object.assign || function __assign(t) {
|
153
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
154
|
-
s = arguments[i];
|
155
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
156
|
-
}
|
157
|
-
return t;
|
158
|
-
}
|
159
|
-
return __assign.apply(this, arguments);
|
160
|
-
}
|
161
|
-
|
162
|
-
function __rest(s, e) {
|
163
|
-
var t = {};
|
164
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
165
|
-
t[p] = s[p];
|
166
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
167
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
168
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
169
|
-
t[p[i]] = s[p[i]];
|
170
|
-
}
|
171
|
-
return t;
|
172
|
-
}
|
173
|
-
|
174
|
-
function __decorate(decorators, target, key, desc) {
|
175
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
176
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
177
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
178
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
179
|
-
}
|
180
|
-
|
181
|
-
function __param(paramIndex, decorator) {
|
182
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
183
|
-
}
|
184
|
-
|
185
|
-
function __metadata(metadataKey, metadataValue) {
|
186
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
187
|
-
}
|
188
|
-
|
189
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
190
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
191
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
192
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
193
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
194
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
195
|
-
});
|
196
|
-
}
|
197
|
-
|
198
|
-
function __generator(thisArg, body) {
|
199
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
200
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
201
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
202
|
-
function step(op) {
|
203
|
-
if (f) throw new TypeError("Generator is already executing.");
|
204
|
-
while (_) try {
|
205
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
206
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
207
|
-
switch (op[0]) {
|
208
|
-
case 0: case 1: t = op; break;
|
209
|
-
case 4: _.label++; return { value: op[1], done: false };
|
210
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
211
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
212
|
-
default:
|
213
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
214
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
215
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
216
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
217
|
-
if (t[2]) _.ops.pop();
|
218
|
-
_.trys.pop(); continue;
|
219
|
-
}
|
220
|
-
op = body.call(thisArg, _);
|
221
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
222
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
223
|
-
}
|
224
|
-
}
|
225
|
-
|
226
|
-
function __exportStar(m, exports) {
|
227
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
228
|
-
}
|
229
|
-
|
230
|
-
function __values(o) {
|
231
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
232
|
-
if (m) return m.call(o);
|
233
|
-
return {
|
234
|
-
next: function () {
|
235
|
-
if (o && i >= o.length) o = void 0;
|
236
|
-
return { value: o && o[i++], done: !o };
|
237
|
-
}
|
238
|
-
};
|
239
|
-
}
|
240
|
-
|
241
|
-
function __read(o, n) {
|
242
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
243
|
-
if (!m) return o;
|
244
|
-
var i = m.call(o), r, ar = [], e;
|
245
|
-
try {
|
246
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
247
|
-
}
|
248
|
-
catch (error) { e = { error: error }; }
|
249
|
-
finally {
|
250
|
-
try {
|
251
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
252
|
-
}
|
253
|
-
finally { if (e) throw e.error; }
|
254
|
-
}
|
255
|
-
return ar;
|
256
|
-
}
|
257
|
-
|
258
|
-
function __spread() {
|
259
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
260
|
-
ar = ar.concat(__read(arguments[i]));
|
261
|
-
return ar;
|
262
|
-
}
|
263
|
-
|
264
|
-
function __spreadArrays() {
|
265
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
266
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
267
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
268
|
-
r[k] = a[j];
|
269
|
-
return r;
|
270
|
-
};
|
271
|
-
|
272
|
-
function __await(v) {
|
273
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
274
|
-
}
|
275
|
-
|
276
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
277
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
278
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
279
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
280
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
281
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
282
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
283
|
-
function fulfill(value) { resume("next", value); }
|
284
|
-
function reject(value) { resume("throw", value); }
|
285
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
286
|
-
}
|
287
|
-
|
288
|
-
function __asyncDelegator(o) {
|
289
|
-
var i, p;
|
290
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
291
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
292
|
-
}
|
293
|
-
|
294
|
-
function __asyncValues(o) {
|
295
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
296
|
-
var m = o[Symbol.asyncIterator], i;
|
297
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
298
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
299
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
300
|
-
}
|
301
|
-
|
302
|
-
function __makeTemplateObject(cooked, raw) {
|
303
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
304
|
-
return cooked;
|
305
|
-
};
|
306
|
-
|
307
|
-
function __importStar(mod) {
|
308
|
-
if (mod && mod.__esModule) return mod;
|
309
|
-
var result = {};
|
310
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
311
|
-
result.default = mod;
|
312
|
-
return result;
|
313
|
-
}
|
314
|
-
|
315
|
-
function __importDefault(mod) {
|
316
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
317
|
-
}
|
318
|
-
|
319
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isFunction.js
|
320
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
321
|
-
function isFunction(x) {
|
322
|
-
return typeof x === 'function';
|
323
|
-
}
|
324
|
-
|
325
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/config.js
|
326
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
327
|
-
var _enable_super_gross_mode_that_will_cause_bad_things = false;
|
328
|
-
var config = {
|
329
|
-
Promise: undefined,
|
330
|
-
set useDeprecatedSynchronousErrorHandling(value) {
|
331
|
-
if (value) {
|
332
|
-
var error = /*@__PURE__*/ new Error();
|
333
|
-
/*@__PURE__*/ console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack);
|
334
|
-
}
|
335
|
-
else if (_enable_super_gross_mode_that_will_cause_bad_things) {
|
336
|
-
/*@__PURE__*/ console.log('RxJS: Back to a better error behavior. Thank you. <3');
|
337
|
-
}
|
338
|
-
_enable_super_gross_mode_that_will_cause_bad_things = value;
|
339
|
-
},
|
340
|
-
get useDeprecatedSynchronousErrorHandling() {
|
341
|
-
return _enable_super_gross_mode_that_will_cause_bad_things;
|
342
|
-
},
|
343
|
-
};
|
344
|
-
|
345
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/hostReportError.js
|
346
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
347
|
-
function hostReportError(err) {
|
348
|
-
setTimeout(function () { throw err; }, 0);
|
349
|
-
}
|
350
|
-
|
351
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Observer.js
|
352
|
-
/** PURE_IMPORTS_START _config,_util_hostReportError PURE_IMPORTS_END */
|
353
|
-
|
354
|
-
|
355
|
-
var empty = {
|
356
|
-
closed: true,
|
357
|
-
next: function (value) { },
|
358
|
-
error: function (err) {
|
359
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
360
|
-
throw err;
|
361
|
-
}
|
362
|
-
else {
|
363
|
-
hostReportError(err);
|
364
|
-
}
|
365
|
-
},
|
366
|
-
complete: function () { }
|
367
|
-
};
|
368
|
-
|
369
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isArray.js
|
370
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
371
|
-
var isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; });
|
372
|
-
|
373
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isObject.js
|
374
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
375
|
-
function isObject(x) {
|
376
|
-
return x !== null && typeof x === 'object';
|
377
|
-
}
|
378
|
-
|
379
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js
|
380
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
381
|
-
function UnsubscriptionErrorImpl(errors) {
|
382
|
-
Error.call(this);
|
383
|
-
this.message = errors ?
|
384
|
-
errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') : '';
|
385
|
-
this.name = 'UnsubscriptionError';
|
386
|
-
this.errors = errors;
|
387
|
-
return this;
|
388
|
-
}
|
389
|
-
UnsubscriptionErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
|
390
|
-
var UnsubscriptionError = UnsubscriptionErrorImpl;
|
391
|
-
|
392
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subscription.js
|
393
|
-
/** PURE_IMPORTS_START _util_isArray,_util_isObject,_util_isFunction,_util_UnsubscriptionError PURE_IMPORTS_END */
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
var Subscription_Subscription = /*@__PURE__*/ (function () {
|
399
|
-
function Subscription(unsubscribe) {
|
400
|
-
this.closed = false;
|
401
|
-
this._parentOrParents = null;
|
402
|
-
this._subscriptions = null;
|
403
|
-
if (unsubscribe) {
|
404
|
-
this._unsubscribe = unsubscribe;
|
405
|
-
}
|
406
|
-
}
|
407
|
-
Subscription.prototype.unsubscribe = function () {
|
408
|
-
var errors;
|
409
|
-
if (this.closed) {
|
410
|
-
return;
|
411
|
-
}
|
412
|
-
var _a = this, _parentOrParents = _a._parentOrParents, _unsubscribe = _a._unsubscribe, _subscriptions = _a._subscriptions;
|
413
|
-
this.closed = true;
|
414
|
-
this._parentOrParents = null;
|
415
|
-
this._subscriptions = null;
|
416
|
-
if (_parentOrParents instanceof Subscription) {
|
417
|
-
_parentOrParents.remove(this);
|
418
|
-
}
|
419
|
-
else if (_parentOrParents !== null) {
|
420
|
-
for (var index = 0; index < _parentOrParents.length; ++index) {
|
421
|
-
var parent_1 = _parentOrParents[index];
|
422
|
-
parent_1.remove(this);
|
423
|
-
}
|
424
|
-
}
|
425
|
-
if (isFunction(_unsubscribe)) {
|
426
|
-
try {
|
427
|
-
_unsubscribe.call(this);
|
428
|
-
}
|
429
|
-
catch (e) {
|
430
|
-
errors = e instanceof UnsubscriptionError ? flattenUnsubscriptionErrors(e.errors) : [e];
|
431
|
-
}
|
432
|
-
}
|
433
|
-
if (isArray(_subscriptions)) {
|
434
|
-
var index = -1;
|
435
|
-
var len = _subscriptions.length;
|
436
|
-
while (++index < len) {
|
437
|
-
var sub = _subscriptions[index];
|
438
|
-
if (isObject(sub)) {
|
439
|
-
try {
|
440
|
-
sub.unsubscribe();
|
441
|
-
}
|
442
|
-
catch (e) {
|
443
|
-
errors = errors || [];
|
444
|
-
if (e instanceof UnsubscriptionError) {
|
445
|
-
errors = errors.concat(flattenUnsubscriptionErrors(e.errors));
|
446
|
-
}
|
447
|
-
else {
|
448
|
-
errors.push(e);
|
449
|
-
}
|
450
|
-
}
|
451
|
-
}
|
452
|
-
}
|
453
|
-
}
|
454
|
-
if (errors) {
|
455
|
-
throw new UnsubscriptionError(errors);
|
456
|
-
}
|
457
|
-
};
|
458
|
-
Subscription.prototype.add = function (teardown) {
|
459
|
-
var subscription = teardown;
|
460
|
-
if (!teardown) {
|
461
|
-
return Subscription.EMPTY;
|
462
|
-
}
|
463
|
-
switch (typeof teardown) {
|
464
|
-
case 'function':
|
465
|
-
subscription = new Subscription(teardown);
|
466
|
-
case 'object':
|
467
|
-
if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {
|
468
|
-
return subscription;
|
469
|
-
}
|
470
|
-
else if (this.closed) {
|
471
|
-
subscription.unsubscribe();
|
472
|
-
return subscription;
|
473
|
-
}
|
474
|
-
else if (!(subscription instanceof Subscription)) {
|
475
|
-
var tmp = subscription;
|
476
|
-
subscription = new Subscription();
|
477
|
-
subscription._subscriptions = [tmp];
|
478
|
-
}
|
479
|
-
break;
|
480
|
-
default: {
|
481
|
-
throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');
|
482
|
-
}
|
483
|
-
}
|
484
|
-
var _parentOrParents = subscription._parentOrParents;
|
485
|
-
if (_parentOrParents === null) {
|
486
|
-
subscription._parentOrParents = this;
|
487
|
-
}
|
488
|
-
else if (_parentOrParents instanceof Subscription) {
|
489
|
-
if (_parentOrParents === this) {
|
490
|
-
return subscription;
|
491
|
-
}
|
492
|
-
subscription._parentOrParents = [_parentOrParents, this];
|
493
|
-
}
|
494
|
-
else if (_parentOrParents.indexOf(this) === -1) {
|
495
|
-
_parentOrParents.push(this);
|
496
|
-
}
|
497
|
-
else {
|
498
|
-
return subscription;
|
499
|
-
}
|
500
|
-
var subscriptions = this._subscriptions;
|
501
|
-
if (subscriptions === null) {
|
502
|
-
this._subscriptions = [subscription];
|
503
|
-
}
|
504
|
-
else {
|
505
|
-
subscriptions.push(subscription);
|
506
|
-
}
|
507
|
-
return subscription;
|
508
|
-
};
|
509
|
-
Subscription.prototype.remove = function (subscription) {
|
510
|
-
var subscriptions = this._subscriptions;
|
511
|
-
if (subscriptions) {
|
512
|
-
var subscriptionIndex = subscriptions.indexOf(subscription);
|
513
|
-
if (subscriptionIndex !== -1) {
|
514
|
-
subscriptions.splice(subscriptionIndex, 1);
|
515
|
-
}
|
516
|
-
}
|
517
|
-
};
|
518
|
-
Subscription.EMPTY = (function (empty) {
|
519
|
-
empty.closed = true;
|
520
|
-
return empty;
|
521
|
-
}(new Subscription()));
|
522
|
-
return Subscription;
|
523
|
-
}());
|
524
|
-
|
525
|
-
function flattenUnsubscriptionErrors(errors) {
|
526
|
-
return errors.reduce(function (errs, err) { return errs.concat((err instanceof UnsubscriptionError) ? err.errors : err); }, []);
|
527
|
-
}
|
528
|
-
|
529
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js
|
530
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
531
|
-
var rxSubscriber = typeof Symbol === 'function'
|
532
|
-
? /*@__PURE__*/ Symbol('rxSubscriber')
|
533
|
-
: '@@rxSubscriber_' + /*@__PURE__*/ Math.random();
|
534
|
-
var $$rxSubscriber = rxSubscriber;
|
535
|
-
|
536
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subscriber.js
|
537
|
-
/** PURE_IMPORTS_START tslib,_util_isFunction,_Observer,_Subscription,_internal_symbol_rxSubscriber,_config,_util_hostReportError PURE_IMPORTS_END */
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
var Subscriber_Subscriber = /*@__PURE__*/ (function (_super) {
|
546
|
-
__extends(Subscriber, _super);
|
547
|
-
function Subscriber(destinationOrNext, error, complete) {
|
548
|
-
var _this = _super.call(this) || this;
|
549
|
-
_this.syncErrorValue = null;
|
550
|
-
_this.syncErrorThrown = false;
|
551
|
-
_this.syncErrorThrowable = false;
|
552
|
-
_this.isStopped = false;
|
553
|
-
switch (arguments.length) {
|
554
|
-
case 0:
|
555
|
-
_this.destination = empty;
|
556
|
-
break;
|
557
|
-
case 1:
|
558
|
-
if (!destinationOrNext) {
|
559
|
-
_this.destination = empty;
|
560
|
-
break;
|
561
|
-
}
|
562
|
-
if (typeof destinationOrNext === 'object') {
|
563
|
-
if (destinationOrNext instanceof Subscriber) {
|
564
|
-
_this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
|
565
|
-
_this.destination = destinationOrNext;
|
566
|
-
destinationOrNext.add(_this);
|
567
|
-
}
|
568
|
-
else {
|
569
|
-
_this.syncErrorThrowable = true;
|
570
|
-
_this.destination = new Subscriber_SafeSubscriber(_this, destinationOrNext);
|
571
|
-
}
|
572
|
-
break;
|
573
|
-
}
|
574
|
-
default:
|
575
|
-
_this.syncErrorThrowable = true;
|
576
|
-
_this.destination = new Subscriber_SafeSubscriber(_this, destinationOrNext, error, complete);
|
577
|
-
break;
|
578
|
-
}
|
579
|
-
return _this;
|
580
|
-
}
|
581
|
-
Subscriber.prototype[rxSubscriber] = function () { return this; };
|
582
|
-
Subscriber.create = function (next, error, complete) {
|
583
|
-
var subscriber = new Subscriber(next, error, complete);
|
584
|
-
subscriber.syncErrorThrowable = false;
|
585
|
-
return subscriber;
|
586
|
-
};
|
587
|
-
Subscriber.prototype.next = function (value) {
|
588
|
-
if (!this.isStopped) {
|
589
|
-
this._next(value);
|
590
|
-
}
|
591
|
-
};
|
592
|
-
Subscriber.prototype.error = function (err) {
|
593
|
-
if (!this.isStopped) {
|
594
|
-
this.isStopped = true;
|
595
|
-
this._error(err);
|
596
|
-
}
|
597
|
-
};
|
598
|
-
Subscriber.prototype.complete = function () {
|
599
|
-
if (!this.isStopped) {
|
600
|
-
this.isStopped = true;
|
601
|
-
this._complete();
|
602
|
-
}
|
603
|
-
};
|
604
|
-
Subscriber.prototype.unsubscribe = function () {
|
605
|
-
if (this.closed) {
|
606
|
-
return;
|
607
|
-
}
|
608
|
-
this.isStopped = true;
|
609
|
-
_super.prototype.unsubscribe.call(this);
|
610
|
-
};
|
611
|
-
Subscriber.prototype._next = function (value) {
|
612
|
-
this.destination.next(value);
|
613
|
-
};
|
614
|
-
Subscriber.prototype._error = function (err) {
|
615
|
-
this.destination.error(err);
|
616
|
-
this.unsubscribe();
|
617
|
-
};
|
618
|
-
Subscriber.prototype._complete = function () {
|
619
|
-
this.destination.complete();
|
620
|
-
this.unsubscribe();
|
621
|
-
};
|
622
|
-
Subscriber.prototype._unsubscribeAndRecycle = function () {
|
623
|
-
var _parentOrParents = this._parentOrParents;
|
624
|
-
this._parentOrParents = null;
|
625
|
-
this.unsubscribe();
|
626
|
-
this.closed = false;
|
627
|
-
this.isStopped = false;
|
628
|
-
this._parentOrParents = _parentOrParents;
|
629
|
-
return this;
|
630
|
-
};
|
631
|
-
return Subscriber;
|
632
|
-
}(Subscription_Subscription));
|
633
|
-
|
634
|
-
var Subscriber_SafeSubscriber = /*@__PURE__*/ (function (_super) {
|
635
|
-
__extends(SafeSubscriber, _super);
|
636
|
-
function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {
|
637
|
-
var _this = _super.call(this) || this;
|
638
|
-
_this._parentSubscriber = _parentSubscriber;
|
639
|
-
var next;
|
640
|
-
var context = _this;
|
641
|
-
if (isFunction(observerOrNext)) {
|
642
|
-
next = observerOrNext;
|
643
|
-
}
|
644
|
-
else if (observerOrNext) {
|
645
|
-
next = observerOrNext.next;
|
646
|
-
error = observerOrNext.error;
|
647
|
-
complete = observerOrNext.complete;
|
648
|
-
if (observerOrNext !== empty) {
|
649
|
-
context = Object.create(observerOrNext);
|
650
|
-
if (isFunction(context.unsubscribe)) {
|
651
|
-
_this.add(context.unsubscribe.bind(context));
|
652
|
-
}
|
653
|
-
context.unsubscribe = _this.unsubscribe.bind(_this);
|
654
|
-
}
|
655
|
-
}
|
656
|
-
_this._context = context;
|
657
|
-
_this._next = next;
|
658
|
-
_this._error = error;
|
659
|
-
_this._complete = complete;
|
660
|
-
return _this;
|
661
|
-
}
|
662
|
-
SafeSubscriber.prototype.next = function (value) {
|
663
|
-
if (!this.isStopped && this._next) {
|
664
|
-
var _parentSubscriber = this._parentSubscriber;
|
665
|
-
if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
|
666
|
-
this.__tryOrUnsub(this._next, value);
|
667
|
-
}
|
668
|
-
else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
|
669
|
-
this.unsubscribe();
|
670
|
-
}
|
671
|
-
}
|
672
|
-
};
|
673
|
-
SafeSubscriber.prototype.error = function (err) {
|
674
|
-
if (!this.isStopped) {
|
675
|
-
var _parentSubscriber = this._parentSubscriber;
|
676
|
-
var useDeprecatedSynchronousErrorHandling = config.useDeprecatedSynchronousErrorHandling;
|
677
|
-
if (this._error) {
|
678
|
-
if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
|
679
|
-
this.__tryOrUnsub(this._error, err);
|
680
|
-
this.unsubscribe();
|
681
|
-
}
|
682
|
-
else {
|
683
|
-
this.__tryOrSetError(_parentSubscriber, this._error, err);
|
684
|
-
this.unsubscribe();
|
685
|
-
}
|
686
|
-
}
|
687
|
-
else if (!_parentSubscriber.syncErrorThrowable) {
|
688
|
-
this.unsubscribe();
|
689
|
-
if (useDeprecatedSynchronousErrorHandling) {
|
690
|
-
throw err;
|
691
|
-
}
|
692
|
-
hostReportError(err);
|
693
|
-
}
|
694
|
-
else {
|
695
|
-
if (useDeprecatedSynchronousErrorHandling) {
|
696
|
-
_parentSubscriber.syncErrorValue = err;
|
697
|
-
_parentSubscriber.syncErrorThrown = true;
|
698
|
-
}
|
699
|
-
else {
|
700
|
-
hostReportError(err);
|
701
|
-
}
|
702
|
-
this.unsubscribe();
|
703
|
-
}
|
704
|
-
}
|
705
|
-
};
|
706
|
-
SafeSubscriber.prototype.complete = function () {
|
707
|
-
var _this = this;
|
708
|
-
if (!this.isStopped) {
|
709
|
-
var _parentSubscriber = this._parentSubscriber;
|
710
|
-
if (this._complete) {
|
711
|
-
var wrappedComplete = function () { return _this._complete.call(_this._context); };
|
712
|
-
if (!config.useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
|
713
|
-
this.__tryOrUnsub(wrappedComplete);
|
714
|
-
this.unsubscribe();
|
715
|
-
}
|
716
|
-
else {
|
717
|
-
this.__tryOrSetError(_parentSubscriber, wrappedComplete);
|
718
|
-
this.unsubscribe();
|
719
|
-
}
|
720
|
-
}
|
721
|
-
else {
|
722
|
-
this.unsubscribe();
|
723
|
-
}
|
724
|
-
}
|
725
|
-
};
|
726
|
-
SafeSubscriber.prototype.__tryOrUnsub = function (fn, value) {
|
727
|
-
try {
|
728
|
-
fn.call(this._context, value);
|
729
|
-
}
|
730
|
-
catch (err) {
|
731
|
-
this.unsubscribe();
|
732
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
733
|
-
throw err;
|
734
|
-
}
|
735
|
-
else {
|
736
|
-
hostReportError(err);
|
737
|
-
}
|
738
|
-
}
|
739
|
-
};
|
740
|
-
SafeSubscriber.prototype.__tryOrSetError = function (parent, fn, value) {
|
741
|
-
if (!config.useDeprecatedSynchronousErrorHandling) {
|
742
|
-
throw new Error('bad call');
|
743
|
-
}
|
744
|
-
try {
|
745
|
-
fn.call(this._context, value);
|
746
|
-
}
|
747
|
-
catch (err) {
|
748
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
749
|
-
parent.syncErrorValue = err;
|
750
|
-
parent.syncErrorThrown = true;
|
751
|
-
return true;
|
752
|
-
}
|
753
|
-
else {
|
754
|
-
hostReportError(err);
|
755
|
-
return true;
|
756
|
-
}
|
757
|
-
}
|
758
|
-
return false;
|
759
|
-
};
|
760
|
-
SafeSubscriber.prototype._unsubscribe = function () {
|
761
|
-
var _parentSubscriber = this._parentSubscriber;
|
762
|
-
this._context = null;
|
763
|
-
this._parentSubscriber = null;
|
764
|
-
_parentSubscriber.unsubscribe();
|
765
|
-
};
|
766
|
-
return SafeSubscriber;
|
767
|
-
}(Subscriber_Subscriber));
|
768
|
-
|
769
|
-
|
770
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/canReportError.js
|
771
|
-
/** PURE_IMPORTS_START _Subscriber PURE_IMPORTS_END */
|
772
|
-
|
773
|
-
function canReportError(observer) {
|
774
|
-
while (observer) {
|
775
|
-
var _a = observer, closed_1 = _a.closed, destination = _a.destination, isStopped = _a.isStopped;
|
776
|
-
if (closed_1 || isStopped) {
|
777
|
-
return false;
|
778
|
-
}
|
779
|
-
else if (destination && destination instanceof Subscriber_Subscriber) {
|
780
|
-
observer = destination;
|
781
|
-
}
|
782
|
-
else {
|
783
|
-
observer = null;
|
784
|
-
}
|
785
|
-
}
|
786
|
-
return true;
|
787
|
-
}
|
788
|
-
|
789
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/toSubscriber.js
|
790
|
-
/** PURE_IMPORTS_START _Subscriber,_symbol_rxSubscriber,_Observer PURE_IMPORTS_END */
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
function toSubscriber(nextOrObserver, error, complete) {
|
795
|
-
if (nextOrObserver) {
|
796
|
-
if (nextOrObserver instanceof Subscriber_Subscriber) {
|
797
|
-
return nextOrObserver;
|
798
|
-
}
|
799
|
-
if (nextOrObserver[rxSubscriber]) {
|
800
|
-
return nextOrObserver[rxSubscriber]();
|
801
|
-
}
|
802
|
-
}
|
803
|
-
if (!nextOrObserver && !error && !complete) {
|
804
|
-
return new Subscriber_Subscriber(empty);
|
805
|
-
}
|
806
|
-
return new Subscriber_Subscriber(nextOrObserver, error, complete);
|
807
|
-
}
|
808
|
-
|
809
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/symbol/observable.js
|
810
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
811
|
-
var observable_observable = typeof Symbol === 'function' && Symbol.observable || '@@observable';
|
812
|
-
|
813
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/noop.js
|
814
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
815
|
-
function noop() { }
|
816
|
-
|
817
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/pipe.js
|
818
|
-
/** PURE_IMPORTS_START _noop PURE_IMPORTS_END */
|
819
|
-
|
820
|
-
function pipe() {
|
821
|
-
var fns = [];
|
822
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
823
|
-
fns[_i] = arguments[_i];
|
824
|
-
}
|
825
|
-
return pipeFromArray(fns);
|
826
|
-
}
|
827
|
-
function pipeFromArray(fns) {
|
828
|
-
if (!fns) {
|
829
|
-
return noop;
|
830
|
-
}
|
831
|
-
if (fns.length === 1) {
|
832
|
-
return fns[0];
|
833
|
-
}
|
834
|
-
return function piped(input) {
|
835
|
-
return fns.reduce(function (prev, fn) { return fn(prev); }, input);
|
836
|
-
};
|
837
|
-
}
|
838
|
-
|
839
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Observable.js
|
840
|
-
/** PURE_IMPORTS_START _util_canReportError,_util_toSubscriber,_symbol_observable,_util_pipe,_config PURE_IMPORTS_END */
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
var Observable_Observable = /*@__PURE__*/ (function () {
|
847
|
-
function Observable(subscribe) {
|
848
|
-
this._isScalar = false;
|
849
|
-
if (subscribe) {
|
850
|
-
this._subscribe = subscribe;
|
851
|
-
}
|
852
|
-
}
|
853
|
-
Observable.prototype.lift = function (operator) {
|
854
|
-
var observable = new Observable();
|
855
|
-
observable.source = this;
|
856
|
-
observable.operator = operator;
|
857
|
-
return observable;
|
858
|
-
};
|
859
|
-
Observable.prototype.subscribe = function (observerOrNext, error, complete) {
|
860
|
-
var operator = this.operator;
|
861
|
-
var sink = toSubscriber(observerOrNext, error, complete);
|
862
|
-
if (operator) {
|
863
|
-
sink.add(operator.call(sink, this.source));
|
864
|
-
}
|
865
|
-
else {
|
866
|
-
sink.add(this.source || (config.useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?
|
867
|
-
this._subscribe(sink) :
|
868
|
-
this._trySubscribe(sink));
|
869
|
-
}
|
870
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
871
|
-
if (sink.syncErrorThrowable) {
|
872
|
-
sink.syncErrorThrowable = false;
|
873
|
-
if (sink.syncErrorThrown) {
|
874
|
-
throw sink.syncErrorValue;
|
875
|
-
}
|
876
|
-
}
|
877
|
-
}
|
878
|
-
return sink;
|
879
|
-
};
|
880
|
-
Observable.prototype._trySubscribe = function (sink) {
|
881
|
-
try {
|
882
|
-
return this._subscribe(sink);
|
883
|
-
}
|
884
|
-
catch (err) {
|
885
|
-
if (config.useDeprecatedSynchronousErrorHandling) {
|
886
|
-
sink.syncErrorThrown = true;
|
887
|
-
sink.syncErrorValue = err;
|
888
|
-
}
|
889
|
-
if (canReportError(sink)) {
|
890
|
-
sink.error(err);
|
891
|
-
}
|
892
|
-
else {
|
893
|
-
console.warn(err);
|
894
|
-
}
|
895
|
-
}
|
896
|
-
};
|
897
|
-
Observable.prototype.forEach = function (next, promiseCtor) {
|
898
|
-
var _this = this;
|
899
|
-
promiseCtor = getPromiseCtor(promiseCtor);
|
900
|
-
return new promiseCtor(function (resolve, reject) {
|
901
|
-
var subscription;
|
902
|
-
subscription = _this.subscribe(function (value) {
|
903
|
-
try {
|
904
|
-
next(value);
|
905
|
-
}
|
906
|
-
catch (err) {
|
907
|
-
reject(err);
|
908
|
-
if (subscription) {
|
909
|
-
subscription.unsubscribe();
|
910
|
-
}
|
911
|
-
}
|
912
|
-
}, reject, resolve);
|
913
|
-
});
|
914
|
-
};
|
915
|
-
Observable.prototype._subscribe = function (subscriber) {
|
916
|
-
var source = this.source;
|
917
|
-
return source && source.subscribe(subscriber);
|
918
|
-
};
|
919
|
-
Observable.prototype[observable_observable] = function () {
|
920
|
-
return this;
|
921
|
-
};
|
922
|
-
Observable.prototype.pipe = function () {
|
923
|
-
var operations = [];
|
924
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
925
|
-
operations[_i] = arguments[_i];
|
926
|
-
}
|
927
|
-
if (operations.length === 0) {
|
928
|
-
return this;
|
929
|
-
}
|
930
|
-
return pipeFromArray(operations)(this);
|
931
|
-
};
|
932
|
-
Observable.prototype.toPromise = function (promiseCtor) {
|
933
|
-
var _this = this;
|
934
|
-
promiseCtor = getPromiseCtor(promiseCtor);
|
935
|
-
return new promiseCtor(function (resolve, reject) {
|
936
|
-
var value;
|
937
|
-
_this.subscribe(function (x) { return value = x; }, function (err) { return reject(err); }, function () { return resolve(value); });
|
938
|
-
});
|
939
|
-
};
|
940
|
-
Observable.create = function (subscribe) {
|
941
|
-
return new Observable(subscribe);
|
942
|
-
};
|
943
|
-
return Observable;
|
944
|
-
}());
|
945
|
-
|
946
|
-
function getPromiseCtor(promiseCtor) {
|
947
|
-
if (!promiseCtor) {
|
948
|
-
promiseCtor = config.Promise || Promise;
|
949
|
-
}
|
950
|
-
if (!promiseCtor) {
|
951
|
-
throw new Error('no Promise impl found');
|
952
|
-
}
|
953
|
-
return promiseCtor;
|
954
|
-
}
|
955
|
-
|
956
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js
|
957
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
958
|
-
function ObjectUnsubscribedErrorImpl() {
|
959
|
-
Error.call(this);
|
960
|
-
this.message = 'object unsubscribed';
|
961
|
-
this.name = 'ObjectUnsubscribedError';
|
962
|
-
return this;
|
963
|
-
}
|
964
|
-
ObjectUnsubscribedErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
|
965
|
-
var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;
|
966
|
-
|
967
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/SubjectSubscription.js
|
968
|
-
/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */
|
969
|
-
|
970
|
-
|
971
|
-
var SubjectSubscription_SubjectSubscription = /*@__PURE__*/ (function (_super) {
|
972
|
-
__extends(SubjectSubscription, _super);
|
973
|
-
function SubjectSubscription(subject, subscriber) {
|
974
|
-
var _this = _super.call(this) || this;
|
975
|
-
_this.subject = subject;
|
976
|
-
_this.subscriber = subscriber;
|
977
|
-
_this.closed = false;
|
978
|
-
return _this;
|
979
|
-
}
|
980
|
-
SubjectSubscription.prototype.unsubscribe = function () {
|
981
|
-
if (this.closed) {
|
982
|
-
return;
|
983
|
-
}
|
984
|
-
this.closed = true;
|
985
|
-
var subject = this.subject;
|
986
|
-
var observers = subject.observers;
|
987
|
-
this.subject = null;
|
988
|
-
if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
|
989
|
-
return;
|
990
|
-
}
|
991
|
-
var subscriberIndex = observers.indexOf(this.subscriber);
|
992
|
-
if (subscriberIndex !== -1) {
|
993
|
-
observers.splice(subscriberIndex, 1);
|
994
|
-
}
|
995
|
-
};
|
996
|
-
return SubjectSubscription;
|
997
|
-
}(Subscription_Subscription));
|
998
|
-
|
999
|
-
|
1000
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Subject.js
|
1001
|
-
/** PURE_IMPORTS_START tslib,_Observable,_Subscriber,_Subscription,_util_ObjectUnsubscribedError,_SubjectSubscription,_internal_symbol_rxSubscriber PURE_IMPORTS_END */
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
var Subject_SubjectSubscriber = /*@__PURE__*/ (function (_super) {
|
1010
|
-
__extends(SubjectSubscriber, _super);
|
1011
|
-
function SubjectSubscriber(destination) {
|
1012
|
-
var _this = _super.call(this, destination) || this;
|
1013
|
-
_this.destination = destination;
|
1014
|
-
return _this;
|
1015
|
-
}
|
1016
|
-
return SubjectSubscriber;
|
1017
|
-
}(Subscriber_Subscriber));
|
1018
|
-
|
1019
|
-
var Subject_Subject = /*@__PURE__*/ (function (_super) {
|
1020
|
-
__extends(Subject, _super);
|
1021
|
-
function Subject() {
|
1022
|
-
var _this = _super.call(this) || this;
|
1023
|
-
_this.observers = [];
|
1024
|
-
_this.closed = false;
|
1025
|
-
_this.isStopped = false;
|
1026
|
-
_this.hasError = false;
|
1027
|
-
_this.thrownError = null;
|
1028
|
-
return _this;
|
1029
|
-
}
|
1030
|
-
Subject.prototype[rxSubscriber] = function () {
|
1031
|
-
return new Subject_SubjectSubscriber(this);
|
1032
|
-
};
|
1033
|
-
Subject.prototype.lift = function (operator) {
|
1034
|
-
var subject = new Subject_AnonymousSubject(this, this);
|
1035
|
-
subject.operator = operator;
|
1036
|
-
return subject;
|
1037
|
-
};
|
1038
|
-
Subject.prototype.next = function (value) {
|
1039
|
-
if (this.closed) {
|
1040
|
-
throw new ObjectUnsubscribedError();
|
1041
|
-
}
|
1042
|
-
if (!this.isStopped) {
|
1043
|
-
var observers = this.observers;
|
1044
|
-
var len = observers.length;
|
1045
|
-
var copy = observers.slice();
|
1046
|
-
for (var i = 0; i < len; i++) {
|
1047
|
-
copy[i].next(value);
|
1048
|
-
}
|
1049
|
-
}
|
1050
|
-
};
|
1051
|
-
Subject.prototype.error = function (err) {
|
1052
|
-
if (this.closed) {
|
1053
|
-
throw new ObjectUnsubscribedError();
|
1054
|
-
}
|
1055
|
-
this.hasError = true;
|
1056
|
-
this.thrownError = err;
|
1057
|
-
this.isStopped = true;
|
1058
|
-
var observers = this.observers;
|
1059
|
-
var len = observers.length;
|
1060
|
-
var copy = observers.slice();
|
1061
|
-
for (var i = 0; i < len; i++) {
|
1062
|
-
copy[i].error(err);
|
1063
|
-
}
|
1064
|
-
this.observers.length = 0;
|
1065
|
-
};
|
1066
|
-
Subject.prototype.complete = function () {
|
1067
|
-
if (this.closed) {
|
1068
|
-
throw new ObjectUnsubscribedError();
|
1069
|
-
}
|
1070
|
-
this.isStopped = true;
|
1071
|
-
var observers = this.observers;
|
1072
|
-
var len = observers.length;
|
1073
|
-
var copy = observers.slice();
|
1074
|
-
for (var i = 0; i < len; i++) {
|
1075
|
-
copy[i].complete();
|
1076
|
-
}
|
1077
|
-
this.observers.length = 0;
|
1078
|
-
};
|
1079
|
-
Subject.prototype.unsubscribe = function () {
|
1080
|
-
this.isStopped = true;
|
1081
|
-
this.closed = true;
|
1082
|
-
this.observers = null;
|
1083
|
-
};
|
1084
|
-
Subject.prototype._trySubscribe = function (subscriber) {
|
1085
|
-
if (this.closed) {
|
1086
|
-
throw new ObjectUnsubscribedError();
|
1087
|
-
}
|
1088
|
-
else {
|
1089
|
-
return _super.prototype._trySubscribe.call(this, subscriber);
|
1090
|
-
}
|
1091
|
-
};
|
1092
|
-
Subject.prototype._subscribe = function (subscriber) {
|
1093
|
-
if (this.closed) {
|
1094
|
-
throw new ObjectUnsubscribedError();
|
1095
|
-
}
|
1096
|
-
else if (this.hasError) {
|
1097
|
-
subscriber.error(this.thrownError);
|
1098
|
-
return Subscription_Subscription.EMPTY;
|
1099
|
-
}
|
1100
|
-
else if (this.isStopped) {
|
1101
|
-
subscriber.complete();
|
1102
|
-
return Subscription_Subscription.EMPTY;
|
1103
|
-
}
|
1104
|
-
else {
|
1105
|
-
this.observers.push(subscriber);
|
1106
|
-
return new SubjectSubscription_SubjectSubscription(this, subscriber);
|
1107
|
-
}
|
1108
|
-
};
|
1109
|
-
Subject.prototype.asObservable = function () {
|
1110
|
-
var observable = new Observable_Observable();
|
1111
|
-
observable.source = this;
|
1112
|
-
return observable;
|
1113
|
-
};
|
1114
|
-
Subject.create = function (destination, source) {
|
1115
|
-
return new Subject_AnonymousSubject(destination, source);
|
1116
|
-
};
|
1117
|
-
return Subject;
|
1118
|
-
}(Observable_Observable));
|
1119
|
-
|
1120
|
-
var Subject_AnonymousSubject = /*@__PURE__*/ (function (_super) {
|
1121
|
-
__extends(AnonymousSubject, _super);
|
1122
|
-
function AnonymousSubject(destination, source) {
|
1123
|
-
var _this = _super.call(this) || this;
|
1124
|
-
_this.destination = destination;
|
1125
|
-
_this.source = source;
|
1126
|
-
return _this;
|
1127
|
-
}
|
1128
|
-
AnonymousSubject.prototype.next = function (value) {
|
1129
|
-
var destination = this.destination;
|
1130
|
-
if (destination && destination.next) {
|
1131
|
-
destination.next(value);
|
1132
|
-
}
|
1133
|
-
};
|
1134
|
-
AnonymousSubject.prototype.error = function (err) {
|
1135
|
-
var destination = this.destination;
|
1136
|
-
if (destination && destination.error) {
|
1137
|
-
this.destination.error(err);
|
1138
|
-
}
|
1139
|
-
};
|
1140
|
-
AnonymousSubject.prototype.complete = function () {
|
1141
|
-
var destination = this.destination;
|
1142
|
-
if (destination && destination.complete) {
|
1143
|
-
this.destination.complete();
|
1144
|
-
}
|
1145
|
-
};
|
1146
|
-
AnonymousSubject.prototype._subscribe = function (subscriber) {
|
1147
|
-
var source = this.source;
|
1148
|
-
if (source) {
|
1149
|
-
return this.source.subscribe(subscriber);
|
1150
|
-
}
|
1151
|
-
else {
|
1152
|
-
return Subscription_Subscription.EMPTY;
|
1153
|
-
}
|
1154
|
-
};
|
1155
|
-
return AnonymousSubject;
|
1156
|
-
}(Subject_Subject));
|
1157
|
-
|
1158
|
-
|
1159
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/refCount.js
|
1160
|
-
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
1161
|
-
|
1162
|
-
|
1163
|
-
function refCount() {
|
1164
|
-
return function refCountOperatorFunction(source) {
|
1165
|
-
return source.lift(new RefCountOperator(source));
|
1166
|
-
};
|
1167
|
-
}
|
1168
|
-
var RefCountOperator = /*@__PURE__*/ (function () {
|
1169
|
-
function RefCountOperator(connectable) {
|
1170
|
-
this.connectable = connectable;
|
1171
|
-
}
|
1172
|
-
RefCountOperator.prototype.call = function (subscriber, source) {
|
1173
|
-
var connectable = this.connectable;
|
1174
|
-
connectable._refCount++;
|
1175
|
-
var refCounter = new refCount_RefCountSubscriber(subscriber, connectable);
|
1176
|
-
var subscription = source.subscribe(refCounter);
|
1177
|
-
if (!refCounter.closed) {
|
1178
|
-
refCounter.connection = connectable.connect();
|
1179
|
-
}
|
1180
|
-
return subscription;
|
1181
|
-
};
|
1182
|
-
return RefCountOperator;
|
1183
|
-
}());
|
1184
|
-
var refCount_RefCountSubscriber = /*@__PURE__*/ (function (_super) {
|
1185
|
-
__extends(RefCountSubscriber, _super);
|
1186
|
-
function RefCountSubscriber(destination, connectable) {
|
1187
|
-
var _this = _super.call(this, destination) || this;
|
1188
|
-
_this.connectable = connectable;
|
1189
|
-
return _this;
|
1190
|
-
}
|
1191
|
-
RefCountSubscriber.prototype._unsubscribe = function () {
|
1192
|
-
var connectable = this.connectable;
|
1193
|
-
if (!connectable) {
|
1194
|
-
this.connection = null;
|
1195
|
-
return;
|
1196
|
-
}
|
1197
|
-
this.connectable = null;
|
1198
|
-
var refCount = connectable._refCount;
|
1199
|
-
if (refCount <= 0) {
|
1200
|
-
this.connection = null;
|
1201
|
-
return;
|
1202
|
-
}
|
1203
|
-
connectable._refCount = refCount - 1;
|
1204
|
-
if (refCount > 1) {
|
1205
|
-
this.connection = null;
|
1206
|
-
return;
|
1207
|
-
}
|
1208
|
-
var connection = this.connection;
|
1209
|
-
var sharedConnection = connectable._connection;
|
1210
|
-
this.connection = null;
|
1211
|
-
if (sharedConnection && (!connection || sharedConnection === connection)) {
|
1212
|
-
sharedConnection.unsubscribe();
|
1213
|
-
}
|
1214
|
-
};
|
1215
|
-
return RefCountSubscriber;
|
1216
|
-
}(Subscriber_Subscriber));
|
1217
|
-
|
1218
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js
|
1219
|
-
/** PURE_IMPORTS_START tslib,_Subject,_Observable,_Subscriber,_Subscription,_operators_refCount PURE_IMPORTS_END */
|
1220
|
-
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
var ConnectableObservable_ConnectableObservable = /*@__PURE__*/ (function (_super) {
|
1227
|
-
__extends(ConnectableObservable, _super);
|
1228
|
-
function ConnectableObservable(source, subjectFactory) {
|
1229
|
-
var _this = _super.call(this) || this;
|
1230
|
-
_this.source = source;
|
1231
|
-
_this.subjectFactory = subjectFactory;
|
1232
|
-
_this._refCount = 0;
|
1233
|
-
_this._isComplete = false;
|
1234
|
-
return _this;
|
1235
|
-
}
|
1236
|
-
ConnectableObservable.prototype._subscribe = function (subscriber) {
|
1237
|
-
return this.getSubject().subscribe(subscriber);
|
1238
|
-
};
|
1239
|
-
ConnectableObservable.prototype.getSubject = function () {
|
1240
|
-
var subject = this._subject;
|
1241
|
-
if (!subject || subject.isStopped) {
|
1242
|
-
this._subject = this.subjectFactory();
|
1243
|
-
}
|
1244
|
-
return this._subject;
|
1245
|
-
};
|
1246
|
-
ConnectableObservable.prototype.connect = function () {
|
1247
|
-
var connection = this._connection;
|
1248
|
-
if (!connection) {
|
1249
|
-
this._isComplete = false;
|
1250
|
-
connection = this._connection = new Subscription_Subscription();
|
1251
|
-
connection.add(this.source
|
1252
|
-
.subscribe(new ConnectableObservable_ConnectableSubscriber(this.getSubject(), this)));
|
1253
|
-
if (connection.closed) {
|
1254
|
-
this._connection = null;
|
1255
|
-
connection = Subscription_Subscription.EMPTY;
|
1256
|
-
}
|
1257
|
-
}
|
1258
|
-
return connection;
|
1259
|
-
};
|
1260
|
-
ConnectableObservable.prototype.refCount = function () {
|
1261
|
-
return refCount()(this);
|
1262
|
-
};
|
1263
|
-
return ConnectableObservable;
|
1264
|
-
}(Observable_Observable));
|
1265
|
-
|
1266
|
-
var connectableProto = ConnectableObservable_ConnectableObservable.prototype;
|
1267
|
-
var connectableObservableDescriptor = {
|
1268
|
-
operator: { value: null },
|
1269
|
-
_refCount: { value: 0, writable: true },
|
1270
|
-
_subject: { value: null, writable: true },
|
1271
|
-
_connection: { value: null, writable: true },
|
1272
|
-
_subscribe: { value: connectableProto._subscribe },
|
1273
|
-
_isComplete: { value: connectableProto._isComplete, writable: true },
|
1274
|
-
getSubject: { value: connectableProto.getSubject },
|
1275
|
-
connect: { value: connectableProto.connect },
|
1276
|
-
refCount: { value: connectableProto.refCount }
|
1277
|
-
};
|
1278
|
-
var ConnectableObservable_ConnectableSubscriber = /*@__PURE__*/ (function (_super) {
|
1279
|
-
__extends(ConnectableSubscriber, _super);
|
1280
|
-
function ConnectableSubscriber(destination, connectable) {
|
1281
|
-
var _this = _super.call(this, destination) || this;
|
1282
|
-
_this.connectable = connectable;
|
1283
|
-
return _this;
|
1284
|
-
}
|
1285
|
-
ConnectableSubscriber.prototype._error = function (err) {
|
1286
|
-
this._unsubscribe();
|
1287
|
-
_super.prototype._error.call(this, err);
|
1288
|
-
};
|
1289
|
-
ConnectableSubscriber.prototype._complete = function () {
|
1290
|
-
this.connectable._isComplete = true;
|
1291
|
-
this._unsubscribe();
|
1292
|
-
_super.prototype._complete.call(this);
|
1293
|
-
};
|
1294
|
-
ConnectableSubscriber.prototype._unsubscribe = function () {
|
1295
|
-
var connectable = this.connectable;
|
1296
|
-
if (connectable) {
|
1297
|
-
this.connectable = null;
|
1298
|
-
var connection = connectable._connection;
|
1299
|
-
connectable._refCount = 0;
|
1300
|
-
connectable._subject = null;
|
1301
|
-
connectable._connection = null;
|
1302
|
-
if (connection) {
|
1303
|
-
connection.unsubscribe();
|
1304
|
-
}
|
1305
|
-
}
|
1306
|
-
};
|
1307
|
-
return ConnectableSubscriber;
|
1308
|
-
}(Subject_SubjectSubscriber));
|
1309
|
-
var ConnectableObservable_RefCountOperator = /*@__PURE__*/ (function () {
|
1310
|
-
function RefCountOperator(connectable) {
|
1311
|
-
this.connectable = connectable;
|
1312
|
-
}
|
1313
|
-
RefCountOperator.prototype.call = function (subscriber, source) {
|
1314
|
-
var connectable = this.connectable;
|
1315
|
-
connectable._refCount++;
|
1316
|
-
var refCounter = new ConnectableObservable_RefCountSubscriber(subscriber, connectable);
|
1317
|
-
var subscription = source.subscribe(refCounter);
|
1318
|
-
if (!refCounter.closed) {
|
1319
|
-
refCounter.connection = connectable.connect();
|
1320
|
-
}
|
1321
|
-
return subscription;
|
1322
|
-
};
|
1323
|
-
return RefCountOperator;
|
1324
|
-
}());
|
1325
|
-
var ConnectableObservable_RefCountSubscriber = /*@__PURE__*/ (function (_super) {
|
1326
|
-
__extends(RefCountSubscriber, _super);
|
1327
|
-
function RefCountSubscriber(destination, connectable) {
|
1328
|
-
var _this = _super.call(this, destination) || this;
|
1329
|
-
_this.connectable = connectable;
|
1330
|
-
return _this;
|
1331
|
-
}
|
1332
|
-
RefCountSubscriber.prototype._unsubscribe = function () {
|
1333
|
-
var connectable = this.connectable;
|
1334
|
-
if (!connectable) {
|
1335
|
-
this.connection = null;
|
1336
|
-
return;
|
1337
|
-
}
|
1338
|
-
this.connectable = null;
|
1339
|
-
var refCount = connectable._refCount;
|
1340
|
-
if (refCount <= 0) {
|
1341
|
-
this.connection = null;
|
1342
|
-
return;
|
1343
|
-
}
|
1344
|
-
connectable._refCount = refCount - 1;
|
1345
|
-
if (refCount > 1) {
|
1346
|
-
this.connection = null;
|
1347
|
-
return;
|
1348
|
-
}
|
1349
|
-
var connection = this.connection;
|
1350
|
-
var sharedConnection = connectable._connection;
|
1351
|
-
this.connection = null;
|
1352
|
-
if (sharedConnection && (!connection || sharedConnection === connection)) {
|
1353
|
-
sharedConnection.unsubscribe();
|
1354
|
-
}
|
1355
|
-
};
|
1356
|
-
return RefCountSubscriber;
|
1357
|
-
}(Subscriber_Subscriber));
|
1358
|
-
|
1359
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/groupBy.js
|
1360
|
-
/** PURE_IMPORTS_START tslib,_Subscriber,_Subscription,_Observable,_Subject PURE_IMPORTS_END */
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
1364
|
-
|
1365
|
-
|
1366
|
-
function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {
|
1367
|
-
return function (source) {
|
1368
|
-
return source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));
|
1369
|
-
};
|
1370
|
-
}
|
1371
|
-
var GroupByOperator = /*@__PURE__*/ (function () {
|
1372
|
-
function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {
|
1373
|
-
this.keySelector = keySelector;
|
1374
|
-
this.elementSelector = elementSelector;
|
1375
|
-
this.durationSelector = durationSelector;
|
1376
|
-
this.subjectSelector = subjectSelector;
|
1377
|
-
}
|
1378
|
-
GroupByOperator.prototype.call = function (subscriber, source) {
|
1379
|
-
return source.subscribe(new groupBy_GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));
|
1380
|
-
};
|
1381
|
-
return GroupByOperator;
|
1382
|
-
}());
|
1383
|
-
var groupBy_GroupBySubscriber = /*@__PURE__*/ (function (_super) {
|
1384
|
-
__extends(GroupBySubscriber, _super);
|
1385
|
-
function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {
|
1386
|
-
var _this = _super.call(this, destination) || this;
|
1387
|
-
_this.keySelector = keySelector;
|
1388
|
-
_this.elementSelector = elementSelector;
|
1389
|
-
_this.durationSelector = durationSelector;
|
1390
|
-
_this.subjectSelector = subjectSelector;
|
1391
|
-
_this.groups = null;
|
1392
|
-
_this.attemptedToUnsubscribe = false;
|
1393
|
-
_this.count = 0;
|
1394
|
-
return _this;
|
1395
|
-
}
|
1396
|
-
GroupBySubscriber.prototype._next = function (value) {
|
1397
|
-
var key;
|
1398
|
-
try {
|
1399
|
-
key = this.keySelector(value);
|
1400
|
-
}
|
1401
|
-
catch (err) {
|
1402
|
-
this.error(err);
|
1403
|
-
return;
|
1404
|
-
}
|
1405
|
-
this._group(value, key);
|
1406
|
-
};
|
1407
|
-
GroupBySubscriber.prototype._group = function (value, key) {
|
1408
|
-
var groups = this.groups;
|
1409
|
-
if (!groups) {
|
1410
|
-
groups = this.groups = new Map();
|
1411
|
-
}
|
1412
|
-
var group = groups.get(key);
|
1413
|
-
var element;
|
1414
|
-
if (this.elementSelector) {
|
1415
|
-
try {
|
1416
|
-
element = this.elementSelector(value);
|
1417
|
-
}
|
1418
|
-
catch (err) {
|
1419
|
-
this.error(err);
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
else {
|
1423
|
-
element = value;
|
1424
|
-
}
|
1425
|
-
if (!group) {
|
1426
|
-
group = (this.subjectSelector ? this.subjectSelector() : new Subject_Subject());
|
1427
|
-
groups.set(key, group);
|
1428
|
-
var groupedObservable = new groupBy_GroupedObservable(key, group, this);
|
1429
|
-
this.destination.next(groupedObservable);
|
1430
|
-
if (this.durationSelector) {
|
1431
|
-
var duration = void 0;
|
1432
|
-
try {
|
1433
|
-
duration = this.durationSelector(new groupBy_GroupedObservable(key, group));
|
1434
|
-
}
|
1435
|
-
catch (err) {
|
1436
|
-
this.error(err);
|
1437
|
-
return;
|
1438
|
-
}
|
1439
|
-
this.add(duration.subscribe(new groupBy_GroupDurationSubscriber(key, group, this)));
|
1440
|
-
}
|
1441
|
-
}
|
1442
|
-
if (!group.closed) {
|
1443
|
-
group.next(element);
|
1444
|
-
}
|
1445
|
-
};
|
1446
|
-
GroupBySubscriber.prototype._error = function (err) {
|
1447
|
-
var groups = this.groups;
|
1448
|
-
if (groups) {
|
1449
|
-
groups.forEach(function (group, key) {
|
1450
|
-
group.error(err);
|
1451
|
-
});
|
1452
|
-
groups.clear();
|
1453
|
-
}
|
1454
|
-
this.destination.error(err);
|
1455
|
-
};
|
1456
|
-
GroupBySubscriber.prototype._complete = function () {
|
1457
|
-
var groups = this.groups;
|
1458
|
-
if (groups) {
|
1459
|
-
groups.forEach(function (group, key) {
|
1460
|
-
group.complete();
|
1461
|
-
});
|
1462
|
-
groups.clear();
|
1463
|
-
}
|
1464
|
-
this.destination.complete();
|
1465
|
-
};
|
1466
|
-
GroupBySubscriber.prototype.removeGroup = function (key) {
|
1467
|
-
this.groups.delete(key);
|
1468
|
-
};
|
1469
|
-
GroupBySubscriber.prototype.unsubscribe = function () {
|
1470
|
-
if (!this.closed) {
|
1471
|
-
this.attemptedToUnsubscribe = true;
|
1472
|
-
if (this.count === 0) {
|
1473
|
-
_super.prototype.unsubscribe.call(this);
|
1474
|
-
}
|
1475
|
-
}
|
1476
|
-
};
|
1477
|
-
return GroupBySubscriber;
|
1478
|
-
}(Subscriber_Subscriber));
|
1479
|
-
var groupBy_GroupDurationSubscriber = /*@__PURE__*/ (function (_super) {
|
1480
|
-
__extends(GroupDurationSubscriber, _super);
|
1481
|
-
function GroupDurationSubscriber(key, group, parent) {
|
1482
|
-
var _this = _super.call(this, group) || this;
|
1483
|
-
_this.key = key;
|
1484
|
-
_this.group = group;
|
1485
|
-
_this.parent = parent;
|
1486
|
-
return _this;
|
1487
|
-
}
|
1488
|
-
GroupDurationSubscriber.prototype._next = function (value) {
|
1489
|
-
this.complete();
|
1490
|
-
};
|
1491
|
-
GroupDurationSubscriber.prototype._unsubscribe = function () {
|
1492
|
-
var _a = this, parent = _a.parent, key = _a.key;
|
1493
|
-
this.key = this.parent = null;
|
1494
|
-
if (parent) {
|
1495
|
-
parent.removeGroup(key);
|
1496
|
-
}
|
1497
|
-
};
|
1498
|
-
return GroupDurationSubscriber;
|
1499
|
-
}(Subscriber_Subscriber));
|
1500
|
-
var groupBy_GroupedObservable = /*@__PURE__*/ (function (_super) {
|
1501
|
-
__extends(GroupedObservable, _super);
|
1502
|
-
function GroupedObservable(key, groupSubject, refCountSubscription) {
|
1503
|
-
var _this = _super.call(this) || this;
|
1504
|
-
_this.key = key;
|
1505
|
-
_this.groupSubject = groupSubject;
|
1506
|
-
_this.refCountSubscription = refCountSubscription;
|
1507
|
-
return _this;
|
1508
|
-
}
|
1509
|
-
GroupedObservable.prototype._subscribe = function (subscriber) {
|
1510
|
-
var subscription = new Subscription_Subscription();
|
1511
|
-
var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;
|
1512
|
-
if (refCountSubscription && !refCountSubscription.closed) {
|
1513
|
-
subscription.add(new groupBy_InnerRefCountSubscription(refCountSubscription));
|
1514
|
-
}
|
1515
|
-
subscription.add(groupSubject.subscribe(subscriber));
|
1516
|
-
return subscription;
|
1517
|
-
};
|
1518
|
-
return GroupedObservable;
|
1519
|
-
}(Observable_Observable));
|
1520
|
-
|
1521
|
-
var groupBy_InnerRefCountSubscription = /*@__PURE__*/ (function (_super) {
|
1522
|
-
__extends(InnerRefCountSubscription, _super);
|
1523
|
-
function InnerRefCountSubscription(parent) {
|
1524
|
-
var _this = _super.call(this) || this;
|
1525
|
-
_this.parent = parent;
|
1526
|
-
parent.count++;
|
1527
|
-
return _this;
|
1528
|
-
}
|
1529
|
-
InnerRefCountSubscription.prototype.unsubscribe = function () {
|
1530
|
-
var parent = this.parent;
|
1531
|
-
if (!parent.closed && !this.closed) {
|
1532
|
-
_super.prototype.unsubscribe.call(this);
|
1533
|
-
parent.count -= 1;
|
1534
|
-
if (parent.count === 0 && parent.attemptedToUnsubscribe) {
|
1535
|
-
parent.unsubscribe();
|
1536
|
-
}
|
1537
|
-
}
|
1538
|
-
};
|
1539
|
-
return InnerRefCountSubscription;
|
1540
|
-
}(Subscription_Subscription));
|
1541
|
-
|
1542
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/BehaviorSubject.js
|
1543
|
-
/** PURE_IMPORTS_START tslib,_Subject,_util_ObjectUnsubscribedError PURE_IMPORTS_END */
|
1544
|
-
|
1545
|
-
|
1546
|
-
|
1547
|
-
var BehaviorSubject_BehaviorSubject = /*@__PURE__*/ (function (_super) {
|
1548
|
-
__extends(BehaviorSubject, _super);
|
1549
|
-
function BehaviorSubject(_value) {
|
1550
|
-
var _this = _super.call(this) || this;
|
1551
|
-
_this._value = _value;
|
1552
|
-
return _this;
|
1553
|
-
}
|
1554
|
-
Object.defineProperty(BehaviorSubject.prototype, "value", {
|
1555
|
-
get: function () {
|
1556
|
-
return this.getValue();
|
1557
|
-
},
|
1558
|
-
enumerable: true,
|
1559
|
-
configurable: true
|
1560
|
-
});
|
1561
|
-
BehaviorSubject.prototype._subscribe = function (subscriber) {
|
1562
|
-
var subscription = _super.prototype._subscribe.call(this, subscriber);
|
1563
|
-
if (subscription && !subscription.closed) {
|
1564
|
-
subscriber.next(this._value);
|
1565
|
-
}
|
1566
|
-
return subscription;
|
1567
|
-
};
|
1568
|
-
BehaviorSubject.prototype.getValue = function () {
|
1569
|
-
if (this.hasError) {
|
1570
|
-
throw this.thrownError;
|
1571
|
-
}
|
1572
|
-
else if (this.closed) {
|
1573
|
-
throw new ObjectUnsubscribedError();
|
1574
|
-
}
|
1575
|
-
else {
|
1576
|
-
return this._value;
|
1577
|
-
}
|
1578
|
-
};
|
1579
|
-
BehaviorSubject.prototype.next = function (value) {
|
1580
|
-
_super.prototype.next.call(this, this._value = value);
|
1581
|
-
};
|
1582
|
-
return BehaviorSubject;
|
1583
|
-
}(Subject_Subject));
|
1584
|
-
|
1585
|
-
|
1586
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/Action.js
|
1587
|
-
/** PURE_IMPORTS_START tslib,_Subscription PURE_IMPORTS_END */
|
1588
|
-
|
1589
|
-
|
1590
|
-
var Action_Action = /*@__PURE__*/ (function (_super) {
|
1591
|
-
__extends(Action, _super);
|
1592
|
-
function Action(scheduler, work) {
|
1593
|
-
return _super.call(this) || this;
|
1594
|
-
}
|
1595
|
-
Action.prototype.schedule = function (state, delay) {
|
1596
|
-
if (delay === void 0) {
|
1597
|
-
delay = 0;
|
1598
|
-
}
|
1599
|
-
return this;
|
1600
|
-
};
|
1601
|
-
return Action;
|
1602
|
-
}(Subscription_Subscription));
|
1603
|
-
|
1604
|
-
|
1605
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js
|
1606
|
-
/** PURE_IMPORTS_START tslib,_Action PURE_IMPORTS_END */
|
1607
|
-
|
1608
|
-
|
1609
|
-
var AsyncAction_AsyncAction = /*@__PURE__*/ (function (_super) {
|
1610
|
-
__extends(AsyncAction, _super);
|
1611
|
-
function AsyncAction(scheduler, work) {
|
1612
|
-
var _this = _super.call(this, scheduler, work) || this;
|
1613
|
-
_this.scheduler = scheduler;
|
1614
|
-
_this.work = work;
|
1615
|
-
_this.pending = false;
|
1616
|
-
return _this;
|
1617
|
-
}
|
1618
|
-
AsyncAction.prototype.schedule = function (state, delay) {
|
1619
|
-
if (delay === void 0) {
|
1620
|
-
delay = 0;
|
1621
|
-
}
|
1622
|
-
if (this.closed) {
|
1623
|
-
return this;
|
1624
|
-
}
|
1625
|
-
this.state = state;
|
1626
|
-
var id = this.id;
|
1627
|
-
var scheduler = this.scheduler;
|
1628
|
-
if (id != null) {
|
1629
|
-
this.id = this.recycleAsyncId(scheduler, id, delay);
|
1630
|
-
}
|
1631
|
-
this.pending = true;
|
1632
|
-
this.delay = delay;
|
1633
|
-
this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
|
1634
|
-
return this;
|
1635
|
-
};
|
1636
|
-
AsyncAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
1637
|
-
if (delay === void 0) {
|
1638
|
-
delay = 0;
|
1639
|
-
}
|
1640
|
-
return setInterval(scheduler.flush.bind(scheduler, this), delay);
|
1641
|
-
};
|
1642
|
-
AsyncAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
1643
|
-
if (delay === void 0) {
|
1644
|
-
delay = 0;
|
1645
|
-
}
|
1646
|
-
if (delay !== null && this.delay === delay && this.pending === false) {
|
1647
|
-
return id;
|
1648
|
-
}
|
1649
|
-
clearInterval(id);
|
1650
|
-
return undefined;
|
1651
|
-
};
|
1652
|
-
AsyncAction.prototype.execute = function (state, delay) {
|
1653
|
-
if (this.closed) {
|
1654
|
-
return new Error('executing a cancelled action');
|
1655
|
-
}
|
1656
|
-
this.pending = false;
|
1657
|
-
var error = this._execute(state, delay);
|
1658
|
-
if (error) {
|
1659
|
-
return error;
|
1660
|
-
}
|
1661
|
-
else if (this.pending === false && this.id != null) {
|
1662
|
-
this.id = this.recycleAsyncId(this.scheduler, this.id, null);
|
1663
|
-
}
|
1664
|
-
};
|
1665
|
-
AsyncAction.prototype._execute = function (state, delay) {
|
1666
|
-
var errored = false;
|
1667
|
-
var errorValue = undefined;
|
1668
|
-
try {
|
1669
|
-
this.work(state);
|
1670
|
-
}
|
1671
|
-
catch (e) {
|
1672
|
-
errored = true;
|
1673
|
-
errorValue = !!e && e || new Error(e);
|
1674
|
-
}
|
1675
|
-
if (errored) {
|
1676
|
-
this.unsubscribe();
|
1677
|
-
return errorValue;
|
1678
|
-
}
|
1679
|
-
};
|
1680
|
-
AsyncAction.prototype._unsubscribe = function () {
|
1681
|
-
var id = this.id;
|
1682
|
-
var scheduler = this.scheduler;
|
1683
|
-
var actions = scheduler.actions;
|
1684
|
-
var index = actions.indexOf(this);
|
1685
|
-
this.work = null;
|
1686
|
-
this.state = null;
|
1687
|
-
this.pending = false;
|
1688
|
-
this.scheduler = null;
|
1689
|
-
if (index !== -1) {
|
1690
|
-
actions.splice(index, 1);
|
1691
|
-
}
|
1692
|
-
if (id != null) {
|
1693
|
-
this.id = this.recycleAsyncId(scheduler, id, null);
|
1694
|
-
}
|
1695
|
-
this.delay = null;
|
1696
|
-
};
|
1697
|
-
return AsyncAction;
|
1698
|
-
}(Action_Action));
|
1699
|
-
|
1700
|
-
|
1701
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/QueueAction.js
|
1702
|
-
/** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */
|
1703
|
-
|
1704
|
-
|
1705
|
-
var QueueAction_QueueAction = /*@__PURE__*/ (function (_super) {
|
1706
|
-
__extends(QueueAction, _super);
|
1707
|
-
function QueueAction(scheduler, work) {
|
1708
|
-
var _this = _super.call(this, scheduler, work) || this;
|
1709
|
-
_this.scheduler = scheduler;
|
1710
|
-
_this.work = work;
|
1711
|
-
return _this;
|
1712
|
-
}
|
1713
|
-
QueueAction.prototype.schedule = function (state, delay) {
|
1714
|
-
if (delay === void 0) {
|
1715
|
-
delay = 0;
|
1716
|
-
}
|
1717
|
-
if (delay > 0) {
|
1718
|
-
return _super.prototype.schedule.call(this, state, delay);
|
1719
|
-
}
|
1720
|
-
this.delay = delay;
|
1721
|
-
this.state = state;
|
1722
|
-
this.scheduler.flush(this);
|
1723
|
-
return this;
|
1724
|
-
};
|
1725
|
-
QueueAction.prototype.execute = function (state, delay) {
|
1726
|
-
return (delay > 0 || this.closed) ?
|
1727
|
-
_super.prototype.execute.call(this, state, delay) :
|
1728
|
-
this._execute(state, delay);
|
1729
|
-
};
|
1730
|
-
QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
1731
|
-
if (delay === void 0) {
|
1732
|
-
delay = 0;
|
1733
|
-
}
|
1734
|
-
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
1735
|
-
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
1736
|
-
}
|
1737
|
-
return scheduler.flush(this);
|
1738
|
-
};
|
1739
|
-
return QueueAction;
|
1740
|
-
}(AsyncAction_AsyncAction));
|
1741
|
-
|
1742
|
-
|
1743
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Scheduler.js
|
1744
|
-
var Scheduler = /*@__PURE__*/ (function () {
|
1745
|
-
function Scheduler(SchedulerAction, now) {
|
1746
|
-
if (now === void 0) {
|
1747
|
-
now = Scheduler.now;
|
1748
|
-
}
|
1749
|
-
this.SchedulerAction = SchedulerAction;
|
1750
|
-
this.now = now;
|
1751
|
-
}
|
1752
|
-
Scheduler.prototype.schedule = function (work, delay, state) {
|
1753
|
-
if (delay === void 0) {
|
1754
|
-
delay = 0;
|
1755
|
-
}
|
1756
|
-
return new this.SchedulerAction(this, work).schedule(state, delay);
|
1757
|
-
};
|
1758
|
-
Scheduler.now = function () { return Date.now(); };
|
1759
|
-
return Scheduler;
|
1760
|
-
}());
|
1761
|
-
|
1762
|
-
|
1763
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js
|
1764
|
-
/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */
|
1765
|
-
|
1766
|
-
|
1767
|
-
var AsyncScheduler_AsyncScheduler = /*@__PURE__*/ (function (_super) {
|
1768
|
-
__extends(AsyncScheduler, _super);
|
1769
|
-
function AsyncScheduler(SchedulerAction, now) {
|
1770
|
-
if (now === void 0) {
|
1771
|
-
now = Scheduler.now;
|
1772
|
-
}
|
1773
|
-
var _this = _super.call(this, SchedulerAction, function () {
|
1774
|
-
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) {
|
1775
|
-
return AsyncScheduler.delegate.now();
|
1776
|
-
}
|
1777
|
-
else {
|
1778
|
-
return now();
|
1779
|
-
}
|
1780
|
-
}) || this;
|
1781
|
-
_this.actions = [];
|
1782
|
-
_this.active = false;
|
1783
|
-
_this.scheduled = undefined;
|
1784
|
-
return _this;
|
1785
|
-
}
|
1786
|
-
AsyncScheduler.prototype.schedule = function (work, delay, state) {
|
1787
|
-
if (delay === void 0) {
|
1788
|
-
delay = 0;
|
1789
|
-
}
|
1790
|
-
if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
|
1791
|
-
return AsyncScheduler.delegate.schedule(work, delay, state);
|
1792
|
-
}
|
1793
|
-
else {
|
1794
|
-
return _super.prototype.schedule.call(this, work, delay, state);
|
1795
|
-
}
|
1796
|
-
};
|
1797
|
-
AsyncScheduler.prototype.flush = function (action) {
|
1798
|
-
var actions = this.actions;
|
1799
|
-
if (this.active) {
|
1800
|
-
actions.push(action);
|
1801
|
-
return;
|
1802
|
-
}
|
1803
|
-
var error;
|
1804
|
-
this.active = true;
|
1805
|
-
do {
|
1806
|
-
if (error = action.execute(action.state, action.delay)) {
|
1807
|
-
break;
|
1808
|
-
}
|
1809
|
-
} while (action = actions.shift());
|
1810
|
-
this.active = false;
|
1811
|
-
if (error) {
|
1812
|
-
while (action = actions.shift()) {
|
1813
|
-
action.unsubscribe();
|
1814
|
-
}
|
1815
|
-
throw error;
|
1816
|
-
}
|
1817
|
-
};
|
1818
|
-
return AsyncScheduler;
|
1819
|
-
}(Scheduler));
|
1820
|
-
|
1821
|
-
|
1822
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/QueueScheduler.js
|
1823
|
-
/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */
|
1824
|
-
|
1825
|
-
|
1826
|
-
var QueueScheduler_QueueScheduler = /*@__PURE__*/ (function (_super) {
|
1827
|
-
__extends(QueueScheduler, _super);
|
1828
|
-
function QueueScheduler() {
|
1829
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
1830
|
-
}
|
1831
|
-
return QueueScheduler;
|
1832
|
-
}(AsyncScheduler_AsyncScheduler));
|
1833
|
-
|
1834
|
-
|
1835
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/queue.js
|
1836
|
-
/** PURE_IMPORTS_START _QueueAction,_QueueScheduler PURE_IMPORTS_END */
|
1837
|
-
|
1838
|
-
|
1839
|
-
var queue = /*@__PURE__*/ new QueueScheduler_QueueScheduler(QueueAction_QueueAction);
|
1840
|
-
|
1841
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/empty.js
|
1842
|
-
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
1843
|
-
|
1844
|
-
var EMPTY = /*@__PURE__*/ new Observable_Observable(function (subscriber) { return subscriber.complete(); });
|
1845
|
-
function empty_empty(scheduler) {
|
1846
|
-
return scheduler ? emptyScheduled(scheduler) : EMPTY;
|
1847
|
-
}
|
1848
|
-
function emptyScheduled(scheduler) {
|
1849
|
-
return new Observable_Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
|
1850
|
-
}
|
1851
|
-
|
1852
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isScheduler.js
|
1853
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
1854
|
-
function isScheduler(value) {
|
1855
|
-
return value && typeof value.schedule === 'function';
|
1856
|
-
}
|
1857
|
-
|
1858
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js
|
1859
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
1860
|
-
var subscribeToArray = function (array) {
|
1861
|
-
return function (subscriber) {
|
1862
|
-
for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
|
1863
|
-
subscriber.next(array[i]);
|
1864
|
-
}
|
1865
|
-
subscriber.complete();
|
1866
|
-
};
|
1867
|
-
};
|
1868
|
-
|
1869
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js
|
1870
|
-
/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */
|
1871
|
-
|
1872
|
-
|
1873
|
-
function scheduleArray(input, scheduler) {
|
1874
|
-
return new Observable_Observable(function (subscriber) {
|
1875
|
-
var sub = new Subscription_Subscription();
|
1876
|
-
var i = 0;
|
1877
|
-
sub.add(scheduler.schedule(function () {
|
1878
|
-
if (i === input.length) {
|
1879
|
-
subscriber.complete();
|
1880
|
-
return;
|
1881
|
-
}
|
1882
|
-
subscriber.next(input[i++]);
|
1883
|
-
if (!subscriber.closed) {
|
1884
|
-
sub.add(this.schedule());
|
1885
|
-
}
|
1886
|
-
}));
|
1887
|
-
return sub;
|
1888
|
-
});
|
1889
|
-
}
|
1890
|
-
|
1891
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/fromArray.js
|
1892
|
-
/** PURE_IMPORTS_START _Observable,_util_subscribeToArray,_scheduled_scheduleArray PURE_IMPORTS_END */
|
1893
|
-
|
1894
|
-
|
1895
|
-
|
1896
|
-
function fromArray(input, scheduler) {
|
1897
|
-
if (!scheduler) {
|
1898
|
-
return new Observable_Observable(subscribeToArray(input));
|
1899
|
-
}
|
1900
|
-
else {
|
1901
|
-
return scheduleArray(input, scheduler);
|
1902
|
-
}
|
1903
|
-
}
|
1904
|
-
|
1905
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/of.js
|
1906
|
-
/** PURE_IMPORTS_START _util_isScheduler,_fromArray,_scheduled_scheduleArray PURE_IMPORTS_END */
|
1907
|
-
|
1908
|
-
|
1909
|
-
|
1910
|
-
function of() {
|
1911
|
-
var args = [];
|
1912
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
1913
|
-
args[_i] = arguments[_i];
|
1914
|
-
}
|
1915
|
-
var scheduler = args[args.length - 1];
|
1916
|
-
if (isScheduler(scheduler)) {
|
1917
|
-
args.pop();
|
1918
|
-
return scheduleArray(args, scheduler);
|
1919
|
-
}
|
1920
|
-
else {
|
1921
|
-
return fromArray(args);
|
1922
|
-
}
|
1923
|
-
}
|
1924
|
-
|
1925
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/throwError.js
|
1926
|
-
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
1927
|
-
|
1928
|
-
function throwError(error, scheduler) {
|
1929
|
-
if (!scheduler) {
|
1930
|
-
return new Observable_Observable(function (subscriber) { return subscriber.error(error); });
|
1931
|
-
}
|
1932
|
-
else {
|
1933
|
-
return new Observable_Observable(function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); });
|
1934
|
-
}
|
1935
|
-
}
|
1936
|
-
function dispatch(_a) {
|
1937
|
-
var error = _a.error, subscriber = _a.subscriber;
|
1938
|
-
subscriber.error(error);
|
1939
|
-
}
|
1940
|
-
|
1941
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/Notification.js
|
1942
|
-
/** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */
|
1943
|
-
|
1944
|
-
|
1945
|
-
|
1946
|
-
var NotificationKind;
|
1947
|
-
/*@__PURE__*/ (function (NotificationKind) {
|
1948
|
-
NotificationKind["NEXT"] = "N";
|
1949
|
-
NotificationKind["ERROR"] = "E";
|
1950
|
-
NotificationKind["COMPLETE"] = "C";
|
1951
|
-
})(NotificationKind || (NotificationKind = {}));
|
1952
|
-
var Notification_Notification = /*@__PURE__*/ (function () {
|
1953
|
-
function Notification(kind, value, error) {
|
1954
|
-
this.kind = kind;
|
1955
|
-
this.value = value;
|
1956
|
-
this.error = error;
|
1957
|
-
this.hasValue = kind === 'N';
|
1958
|
-
}
|
1959
|
-
Notification.prototype.observe = function (observer) {
|
1960
|
-
switch (this.kind) {
|
1961
|
-
case 'N':
|
1962
|
-
return observer.next && observer.next(this.value);
|
1963
|
-
case 'E':
|
1964
|
-
return observer.error && observer.error(this.error);
|
1965
|
-
case 'C':
|
1966
|
-
return observer.complete && observer.complete();
|
1967
|
-
}
|
1968
|
-
};
|
1969
|
-
Notification.prototype.do = function (next, error, complete) {
|
1970
|
-
var kind = this.kind;
|
1971
|
-
switch (kind) {
|
1972
|
-
case 'N':
|
1973
|
-
return next && next(this.value);
|
1974
|
-
case 'E':
|
1975
|
-
return error && error(this.error);
|
1976
|
-
case 'C':
|
1977
|
-
return complete && complete();
|
1978
|
-
}
|
1979
|
-
};
|
1980
|
-
Notification.prototype.accept = function (nextOrObserver, error, complete) {
|
1981
|
-
if (nextOrObserver && typeof nextOrObserver.next === 'function') {
|
1982
|
-
return this.observe(nextOrObserver);
|
1983
|
-
}
|
1984
|
-
else {
|
1985
|
-
return this.do(nextOrObserver, error, complete);
|
1986
|
-
}
|
1987
|
-
};
|
1988
|
-
Notification.prototype.toObservable = function () {
|
1989
|
-
var kind = this.kind;
|
1990
|
-
switch (kind) {
|
1991
|
-
case 'N':
|
1992
|
-
return of(this.value);
|
1993
|
-
case 'E':
|
1994
|
-
return throwError(this.error);
|
1995
|
-
case 'C':
|
1996
|
-
return empty_empty();
|
1997
|
-
}
|
1998
|
-
throw new Error('unexpected notification kind value');
|
1999
|
-
};
|
2000
|
-
Notification.createNext = function (value) {
|
2001
|
-
if (typeof value !== 'undefined') {
|
2002
|
-
return new Notification('N', value);
|
2003
|
-
}
|
2004
|
-
return Notification.undefinedValueNotification;
|
2005
|
-
};
|
2006
|
-
Notification.createError = function (err) {
|
2007
|
-
return new Notification('E', undefined, err);
|
2008
|
-
};
|
2009
|
-
Notification.createComplete = function () {
|
2010
|
-
return Notification.completeNotification;
|
2011
|
-
};
|
2012
|
-
Notification.completeNotification = new Notification('C');
|
2013
|
-
Notification.undefinedValueNotification = new Notification('N', undefined);
|
2014
|
-
return Notification;
|
2015
|
-
}());
|
2016
|
-
|
2017
|
-
|
2018
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/observeOn.js
|
2019
|
-
/** PURE_IMPORTS_START tslib,_Subscriber,_Notification PURE_IMPORTS_END */
|
2020
|
-
|
2021
|
-
|
2022
|
-
|
2023
|
-
function observeOn(scheduler, delay) {
|
2024
|
-
if (delay === void 0) {
|
2025
|
-
delay = 0;
|
2026
|
-
}
|
2027
|
-
return function observeOnOperatorFunction(source) {
|
2028
|
-
return source.lift(new ObserveOnOperator(scheduler, delay));
|
2029
|
-
};
|
2030
|
-
}
|
2031
|
-
var ObserveOnOperator = /*@__PURE__*/ (function () {
|
2032
|
-
function ObserveOnOperator(scheduler, delay) {
|
2033
|
-
if (delay === void 0) {
|
2034
|
-
delay = 0;
|
2035
|
-
}
|
2036
|
-
this.scheduler = scheduler;
|
2037
|
-
this.delay = delay;
|
2038
|
-
}
|
2039
|
-
ObserveOnOperator.prototype.call = function (subscriber, source) {
|
2040
|
-
return source.subscribe(new observeOn_ObserveOnSubscriber(subscriber, this.scheduler, this.delay));
|
2041
|
-
};
|
2042
|
-
return ObserveOnOperator;
|
2043
|
-
}());
|
2044
|
-
|
2045
|
-
var observeOn_ObserveOnSubscriber = /*@__PURE__*/ (function (_super) {
|
2046
|
-
__extends(ObserveOnSubscriber, _super);
|
2047
|
-
function ObserveOnSubscriber(destination, scheduler, delay) {
|
2048
|
-
if (delay === void 0) {
|
2049
|
-
delay = 0;
|
2050
|
-
}
|
2051
|
-
var _this = _super.call(this, destination) || this;
|
2052
|
-
_this.scheduler = scheduler;
|
2053
|
-
_this.delay = delay;
|
2054
|
-
return _this;
|
2055
|
-
}
|
2056
|
-
ObserveOnSubscriber.dispatch = function (arg) {
|
2057
|
-
var notification = arg.notification, destination = arg.destination;
|
2058
|
-
notification.observe(destination);
|
2059
|
-
this.unsubscribe();
|
2060
|
-
};
|
2061
|
-
ObserveOnSubscriber.prototype.scheduleMessage = function (notification) {
|
2062
|
-
var destination = this.destination;
|
2063
|
-
destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));
|
2064
|
-
};
|
2065
|
-
ObserveOnSubscriber.prototype._next = function (value) {
|
2066
|
-
this.scheduleMessage(Notification_Notification.createNext(value));
|
2067
|
-
};
|
2068
|
-
ObserveOnSubscriber.prototype._error = function (err) {
|
2069
|
-
this.scheduleMessage(Notification_Notification.createError(err));
|
2070
|
-
this.unsubscribe();
|
2071
|
-
};
|
2072
|
-
ObserveOnSubscriber.prototype._complete = function () {
|
2073
|
-
this.scheduleMessage(Notification_Notification.createComplete());
|
2074
|
-
this.unsubscribe();
|
2075
|
-
};
|
2076
|
-
return ObserveOnSubscriber;
|
2077
|
-
}(Subscriber_Subscriber));
|
2078
|
-
|
2079
|
-
var ObserveOnMessage = /*@__PURE__*/ (function () {
|
2080
|
-
function ObserveOnMessage(notification, destination) {
|
2081
|
-
this.notification = notification;
|
2082
|
-
this.destination = destination;
|
2083
|
-
}
|
2084
|
-
return ObserveOnMessage;
|
2085
|
-
}());
|
2086
|
-
|
2087
|
-
|
2088
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/ReplaySubject.js
|
2089
|
-
/** PURE_IMPORTS_START tslib,_Subject,_scheduler_queue,_Subscription,_operators_observeOn,_util_ObjectUnsubscribedError,_SubjectSubscription PURE_IMPORTS_END */
|
2090
|
-
|
2091
|
-
|
2092
|
-
|
2093
|
-
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
var ReplaySubject_ReplaySubject = /*@__PURE__*/ (function (_super) {
|
2098
|
-
__extends(ReplaySubject, _super);
|
2099
|
-
function ReplaySubject(bufferSize, windowTime, scheduler) {
|
2100
|
-
if (bufferSize === void 0) {
|
2101
|
-
bufferSize = Number.POSITIVE_INFINITY;
|
2102
|
-
}
|
2103
|
-
if (windowTime === void 0) {
|
2104
|
-
windowTime = Number.POSITIVE_INFINITY;
|
2105
|
-
}
|
2106
|
-
var _this = _super.call(this) || this;
|
2107
|
-
_this.scheduler = scheduler;
|
2108
|
-
_this._events = [];
|
2109
|
-
_this._infiniteTimeWindow = false;
|
2110
|
-
_this._bufferSize = bufferSize < 1 ? 1 : bufferSize;
|
2111
|
-
_this._windowTime = windowTime < 1 ? 1 : windowTime;
|
2112
|
-
if (windowTime === Number.POSITIVE_INFINITY) {
|
2113
|
-
_this._infiniteTimeWindow = true;
|
2114
|
-
_this.next = _this.nextInfiniteTimeWindow;
|
2115
|
-
}
|
2116
|
-
else {
|
2117
|
-
_this.next = _this.nextTimeWindow;
|
2118
|
-
}
|
2119
|
-
return _this;
|
2120
|
-
}
|
2121
|
-
ReplaySubject.prototype.nextInfiniteTimeWindow = function (value) {
|
2122
|
-
var _events = this._events;
|
2123
|
-
_events.push(value);
|
2124
|
-
if (_events.length > this._bufferSize) {
|
2125
|
-
_events.shift();
|
2126
|
-
}
|
2127
|
-
_super.prototype.next.call(this, value);
|
2128
|
-
};
|
2129
|
-
ReplaySubject.prototype.nextTimeWindow = function (value) {
|
2130
|
-
this._events.push(new ReplayEvent(this._getNow(), value));
|
2131
|
-
this._trimBufferThenGetEvents();
|
2132
|
-
_super.prototype.next.call(this, value);
|
2133
|
-
};
|
2134
|
-
ReplaySubject.prototype._subscribe = function (subscriber) {
|
2135
|
-
var _infiniteTimeWindow = this._infiniteTimeWindow;
|
2136
|
-
var _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();
|
2137
|
-
var scheduler = this.scheduler;
|
2138
|
-
var len = _events.length;
|
2139
|
-
var subscription;
|
2140
|
-
if (this.closed) {
|
2141
|
-
throw new ObjectUnsubscribedError();
|
2142
|
-
}
|
2143
|
-
else if (this.isStopped || this.hasError) {
|
2144
|
-
subscription = Subscription_Subscription.EMPTY;
|
2145
|
-
}
|
2146
|
-
else {
|
2147
|
-
this.observers.push(subscriber);
|
2148
|
-
subscription = new SubjectSubscription_SubjectSubscription(this, subscriber);
|
2149
|
-
}
|
2150
|
-
if (scheduler) {
|
2151
|
-
subscriber.add(subscriber = new observeOn_ObserveOnSubscriber(subscriber, scheduler));
|
2152
|
-
}
|
2153
|
-
if (_infiniteTimeWindow) {
|
2154
|
-
for (var i = 0; i < len && !subscriber.closed; i++) {
|
2155
|
-
subscriber.next(_events[i]);
|
2156
|
-
}
|
2157
|
-
}
|
2158
|
-
else {
|
2159
|
-
for (var i = 0; i < len && !subscriber.closed; i++) {
|
2160
|
-
subscriber.next(_events[i].value);
|
2161
|
-
}
|
2162
|
-
}
|
2163
|
-
if (this.hasError) {
|
2164
|
-
subscriber.error(this.thrownError);
|
2165
|
-
}
|
2166
|
-
else if (this.isStopped) {
|
2167
|
-
subscriber.complete();
|
2168
|
-
}
|
2169
|
-
return subscription;
|
2170
|
-
};
|
2171
|
-
ReplaySubject.prototype._getNow = function () {
|
2172
|
-
return (this.scheduler || queue).now();
|
2173
|
-
};
|
2174
|
-
ReplaySubject.prototype._trimBufferThenGetEvents = function () {
|
2175
|
-
var now = this._getNow();
|
2176
|
-
var _bufferSize = this._bufferSize;
|
2177
|
-
var _windowTime = this._windowTime;
|
2178
|
-
var _events = this._events;
|
2179
|
-
var eventsCount = _events.length;
|
2180
|
-
var spliceCount = 0;
|
2181
|
-
while (spliceCount < eventsCount) {
|
2182
|
-
if ((now - _events[spliceCount].time) < _windowTime) {
|
2183
|
-
break;
|
2184
|
-
}
|
2185
|
-
spliceCount++;
|
2186
|
-
}
|
2187
|
-
if (eventsCount > _bufferSize) {
|
2188
|
-
spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);
|
2189
|
-
}
|
2190
|
-
if (spliceCount > 0) {
|
2191
|
-
_events.splice(0, spliceCount);
|
2192
|
-
}
|
2193
|
-
return _events;
|
2194
|
-
};
|
2195
|
-
return ReplaySubject;
|
2196
|
-
}(Subject_Subject));
|
2197
|
-
|
2198
|
-
var ReplayEvent = /*@__PURE__*/ (function () {
|
2199
|
-
function ReplayEvent(time, value) {
|
2200
|
-
this.time = time;
|
2201
|
-
this.value = value;
|
2202
|
-
}
|
2203
|
-
return ReplayEvent;
|
2204
|
-
}());
|
2205
|
-
|
2206
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/AsyncSubject.js
|
2207
|
-
/** PURE_IMPORTS_START tslib,_Subject,_Subscription PURE_IMPORTS_END */
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
var AsyncSubject_AsyncSubject = /*@__PURE__*/ (function (_super) {
|
2212
|
-
__extends(AsyncSubject, _super);
|
2213
|
-
function AsyncSubject() {
|
2214
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
2215
|
-
_this.value = null;
|
2216
|
-
_this.hasNext = false;
|
2217
|
-
_this.hasCompleted = false;
|
2218
|
-
return _this;
|
2219
|
-
}
|
2220
|
-
AsyncSubject.prototype._subscribe = function (subscriber) {
|
2221
|
-
if (this.hasError) {
|
2222
|
-
subscriber.error(this.thrownError);
|
2223
|
-
return Subscription_Subscription.EMPTY;
|
2224
|
-
}
|
2225
|
-
else if (this.hasCompleted && this.hasNext) {
|
2226
|
-
subscriber.next(this.value);
|
2227
|
-
subscriber.complete();
|
2228
|
-
return Subscription_Subscription.EMPTY;
|
2229
|
-
}
|
2230
|
-
return _super.prototype._subscribe.call(this, subscriber);
|
2231
|
-
};
|
2232
|
-
AsyncSubject.prototype.next = function (value) {
|
2233
|
-
if (!this.hasCompleted) {
|
2234
|
-
this.value = value;
|
2235
|
-
this.hasNext = true;
|
2236
|
-
}
|
2237
|
-
};
|
2238
|
-
AsyncSubject.prototype.error = function (error) {
|
2239
|
-
if (!this.hasCompleted) {
|
2240
|
-
_super.prototype.error.call(this, error);
|
2241
|
-
}
|
2242
|
-
};
|
2243
|
-
AsyncSubject.prototype.complete = function () {
|
2244
|
-
this.hasCompleted = true;
|
2245
|
-
if (this.hasNext) {
|
2246
|
-
_super.prototype.next.call(this, this.value);
|
2247
|
-
}
|
2248
|
-
_super.prototype.complete.call(this);
|
2249
|
-
};
|
2250
|
-
return AsyncSubject;
|
2251
|
-
}(Subject_Subject));
|
2252
|
-
|
2253
|
-
|
2254
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/Immediate.js
|
2255
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2256
|
-
var nextHandle = 1;
|
2257
|
-
var tasksByHandle = {};
|
2258
|
-
function runIfPresent(handle) {
|
2259
|
-
var cb = tasksByHandle[handle];
|
2260
|
-
if (cb) {
|
2261
|
-
cb();
|
2262
|
-
}
|
2263
|
-
}
|
2264
|
-
var Immediate = {
|
2265
|
-
setImmediate: function (cb) {
|
2266
|
-
var handle = nextHandle++;
|
2267
|
-
tasksByHandle[handle] = cb;
|
2268
|
-
Promise.resolve().then(function () { return runIfPresent(handle); });
|
2269
|
-
return handle;
|
2270
|
-
},
|
2271
|
-
clearImmediate: function (handle) {
|
2272
|
-
delete tasksByHandle[handle];
|
2273
|
-
},
|
2274
|
-
};
|
2275
|
-
|
2276
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/AsapAction.js
|
2277
|
-
/** PURE_IMPORTS_START tslib,_util_Immediate,_AsyncAction PURE_IMPORTS_END */
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
var AsapAction_AsapAction = /*@__PURE__*/ (function (_super) {
|
2282
|
-
__extends(AsapAction, _super);
|
2283
|
-
function AsapAction(scheduler, work) {
|
2284
|
-
var _this = _super.call(this, scheduler, work) || this;
|
2285
|
-
_this.scheduler = scheduler;
|
2286
|
-
_this.work = work;
|
2287
|
-
return _this;
|
2288
|
-
}
|
2289
|
-
AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
2290
|
-
if (delay === void 0) {
|
2291
|
-
delay = 0;
|
2292
|
-
}
|
2293
|
-
if (delay !== null && delay > 0) {
|
2294
|
-
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
2295
|
-
}
|
2296
|
-
scheduler.actions.push(this);
|
2297
|
-
return scheduler.scheduled || (scheduler.scheduled = Immediate.setImmediate(scheduler.flush.bind(scheduler, null)));
|
2298
|
-
};
|
2299
|
-
AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
2300
|
-
if (delay === void 0) {
|
2301
|
-
delay = 0;
|
2302
|
-
}
|
2303
|
-
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
2304
|
-
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
2305
|
-
}
|
2306
|
-
if (scheduler.actions.length === 0) {
|
2307
|
-
Immediate.clearImmediate(id);
|
2308
|
-
scheduler.scheduled = undefined;
|
2309
|
-
}
|
2310
|
-
return undefined;
|
2311
|
-
};
|
2312
|
-
return AsapAction;
|
2313
|
-
}(AsyncAction_AsyncAction));
|
2314
|
-
|
2315
|
-
|
2316
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/AsapScheduler.js
|
2317
|
-
/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */
|
2318
|
-
|
2319
|
-
|
2320
|
-
var AsapScheduler_AsapScheduler = /*@__PURE__*/ (function (_super) {
|
2321
|
-
__extends(AsapScheduler, _super);
|
2322
|
-
function AsapScheduler() {
|
2323
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
2324
|
-
}
|
2325
|
-
AsapScheduler.prototype.flush = function (action) {
|
2326
|
-
this.active = true;
|
2327
|
-
this.scheduled = undefined;
|
2328
|
-
var actions = this.actions;
|
2329
|
-
var error;
|
2330
|
-
var index = -1;
|
2331
|
-
var count = actions.length;
|
2332
|
-
action = action || actions.shift();
|
2333
|
-
do {
|
2334
|
-
if (error = action.execute(action.state, action.delay)) {
|
2335
|
-
break;
|
2336
|
-
}
|
2337
|
-
} while (++index < count && (action = actions.shift()));
|
2338
|
-
this.active = false;
|
2339
|
-
if (error) {
|
2340
|
-
while (++index < count && (action = actions.shift())) {
|
2341
|
-
action.unsubscribe();
|
2342
|
-
}
|
2343
|
-
throw error;
|
2344
|
-
}
|
2345
|
-
};
|
2346
|
-
return AsapScheduler;
|
2347
|
-
}(AsyncScheduler_AsyncScheduler));
|
2348
|
-
|
2349
|
-
|
2350
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/asap.js
|
2351
|
-
/** PURE_IMPORTS_START _AsapAction,_AsapScheduler PURE_IMPORTS_END */
|
2352
|
-
|
2353
|
-
|
2354
|
-
var asap = /*@__PURE__*/ new AsapScheduler_AsapScheduler(AsapAction_AsapAction);
|
2355
|
-
|
2356
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/async.js
|
2357
|
-
/** PURE_IMPORTS_START _AsyncAction,_AsyncScheduler PURE_IMPORTS_END */
|
2358
|
-
|
2359
|
-
|
2360
|
-
var async_async = /*@__PURE__*/ new AsyncScheduler_AsyncScheduler(AsyncAction_AsyncAction);
|
2361
|
-
|
2362
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameAction.js
|
2363
|
-
/** PURE_IMPORTS_START tslib,_AsyncAction PURE_IMPORTS_END */
|
2364
|
-
|
2365
|
-
|
2366
|
-
var AnimationFrameAction_AnimationFrameAction = /*@__PURE__*/ (function (_super) {
|
2367
|
-
__extends(AnimationFrameAction, _super);
|
2368
|
-
function AnimationFrameAction(scheduler, work) {
|
2369
|
-
var _this = _super.call(this, scheduler, work) || this;
|
2370
|
-
_this.scheduler = scheduler;
|
2371
|
-
_this.work = work;
|
2372
|
-
return _this;
|
2373
|
-
}
|
2374
|
-
AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
2375
|
-
if (delay === void 0) {
|
2376
|
-
delay = 0;
|
2377
|
-
}
|
2378
|
-
if (delay !== null && delay > 0) {
|
2379
|
-
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
2380
|
-
}
|
2381
|
-
scheduler.actions.push(this);
|
2382
|
-
return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(function () { return scheduler.flush(null); }));
|
2383
|
-
};
|
2384
|
-
AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
2385
|
-
if (delay === void 0) {
|
2386
|
-
delay = 0;
|
2387
|
-
}
|
2388
|
-
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
2389
|
-
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
2390
|
-
}
|
2391
|
-
if (scheduler.actions.length === 0) {
|
2392
|
-
cancelAnimationFrame(id);
|
2393
|
-
scheduler.scheduled = undefined;
|
2394
|
-
}
|
2395
|
-
return undefined;
|
2396
|
-
};
|
2397
|
-
return AnimationFrameAction;
|
2398
|
-
}(AsyncAction_AsyncAction));
|
2399
|
-
|
2400
|
-
|
2401
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameScheduler.js
|
2402
|
-
/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */
|
2403
|
-
|
2404
|
-
|
2405
|
-
var AnimationFrameScheduler_AnimationFrameScheduler = /*@__PURE__*/ (function (_super) {
|
2406
|
-
__extends(AnimationFrameScheduler, _super);
|
2407
|
-
function AnimationFrameScheduler() {
|
2408
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
2409
|
-
}
|
2410
|
-
AnimationFrameScheduler.prototype.flush = function (action) {
|
2411
|
-
this.active = true;
|
2412
|
-
this.scheduled = undefined;
|
2413
|
-
var actions = this.actions;
|
2414
|
-
var error;
|
2415
|
-
var index = -1;
|
2416
|
-
var count = actions.length;
|
2417
|
-
action = action || actions.shift();
|
2418
|
-
do {
|
2419
|
-
if (error = action.execute(action.state, action.delay)) {
|
2420
|
-
break;
|
2421
|
-
}
|
2422
|
-
} while (++index < count && (action = actions.shift()));
|
2423
|
-
this.active = false;
|
2424
|
-
if (error) {
|
2425
|
-
while (++index < count && (action = actions.shift())) {
|
2426
|
-
action.unsubscribe();
|
2427
|
-
}
|
2428
|
-
throw error;
|
2429
|
-
}
|
2430
|
-
};
|
2431
|
-
return AnimationFrameScheduler;
|
2432
|
-
}(AsyncScheduler_AsyncScheduler));
|
2433
|
-
|
2434
|
-
|
2435
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/animationFrame.js
|
2436
|
-
/** PURE_IMPORTS_START _AnimationFrameAction,_AnimationFrameScheduler PURE_IMPORTS_END */
|
2437
|
-
|
2438
|
-
|
2439
|
-
var animationFrame = /*@__PURE__*/ new AnimationFrameScheduler_AnimationFrameScheduler(AnimationFrameAction_AnimationFrameAction);
|
2440
|
-
|
2441
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js
|
2442
|
-
/** PURE_IMPORTS_START tslib,_AsyncAction,_AsyncScheduler PURE_IMPORTS_END */
|
2443
|
-
|
2444
|
-
|
2445
|
-
|
2446
|
-
var VirtualTimeScheduler_VirtualTimeScheduler = /*@__PURE__*/ (function (_super) {
|
2447
|
-
__extends(VirtualTimeScheduler, _super);
|
2448
|
-
function VirtualTimeScheduler(SchedulerAction, maxFrames) {
|
2449
|
-
if (SchedulerAction === void 0) {
|
2450
|
-
SchedulerAction = VirtualTimeScheduler_VirtualAction;
|
2451
|
-
}
|
2452
|
-
if (maxFrames === void 0) {
|
2453
|
-
maxFrames = Number.POSITIVE_INFINITY;
|
2454
|
-
}
|
2455
|
-
var _this = _super.call(this, SchedulerAction, function () { return _this.frame; }) || this;
|
2456
|
-
_this.maxFrames = maxFrames;
|
2457
|
-
_this.frame = 0;
|
2458
|
-
_this.index = -1;
|
2459
|
-
return _this;
|
2460
|
-
}
|
2461
|
-
VirtualTimeScheduler.prototype.flush = function () {
|
2462
|
-
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
2463
|
-
var error, action;
|
2464
|
-
while ((action = actions[0]) && action.delay <= maxFrames) {
|
2465
|
-
actions.shift();
|
2466
|
-
this.frame = action.delay;
|
2467
|
-
if (error = action.execute(action.state, action.delay)) {
|
2468
|
-
break;
|
2469
|
-
}
|
2470
|
-
}
|
2471
|
-
if (error) {
|
2472
|
-
while (action = actions.shift()) {
|
2473
|
-
action.unsubscribe();
|
2474
|
-
}
|
2475
|
-
throw error;
|
2476
|
-
}
|
2477
|
-
};
|
2478
|
-
VirtualTimeScheduler.frameTimeFactor = 10;
|
2479
|
-
return VirtualTimeScheduler;
|
2480
|
-
}(AsyncScheduler_AsyncScheduler));
|
2481
|
-
|
2482
|
-
var VirtualTimeScheduler_VirtualAction = /*@__PURE__*/ (function (_super) {
|
2483
|
-
__extends(VirtualAction, _super);
|
2484
|
-
function VirtualAction(scheduler, work, index) {
|
2485
|
-
if (index === void 0) {
|
2486
|
-
index = scheduler.index += 1;
|
2487
|
-
}
|
2488
|
-
var _this = _super.call(this, scheduler, work) || this;
|
2489
|
-
_this.scheduler = scheduler;
|
2490
|
-
_this.work = work;
|
2491
|
-
_this.index = index;
|
2492
|
-
_this.active = true;
|
2493
|
-
_this.index = scheduler.index = index;
|
2494
|
-
return _this;
|
2495
|
-
}
|
2496
|
-
VirtualAction.prototype.schedule = function (state, delay) {
|
2497
|
-
if (delay === void 0) {
|
2498
|
-
delay = 0;
|
2499
|
-
}
|
2500
|
-
if (!this.id) {
|
2501
|
-
return _super.prototype.schedule.call(this, state, delay);
|
2502
|
-
}
|
2503
|
-
this.active = false;
|
2504
|
-
var action = new VirtualAction(this.scheduler, this.work);
|
2505
|
-
this.add(action);
|
2506
|
-
return action.schedule(state, delay);
|
2507
|
-
};
|
2508
|
-
VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
2509
|
-
if (delay === void 0) {
|
2510
|
-
delay = 0;
|
2511
|
-
}
|
2512
|
-
this.delay = scheduler.frame + delay;
|
2513
|
-
var actions = scheduler.actions;
|
2514
|
-
actions.push(this);
|
2515
|
-
actions.sort(VirtualAction.sortActions);
|
2516
|
-
return true;
|
2517
|
-
};
|
2518
|
-
VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {
|
2519
|
-
if (delay === void 0) {
|
2520
|
-
delay = 0;
|
2521
|
-
}
|
2522
|
-
return undefined;
|
2523
|
-
};
|
2524
|
-
VirtualAction.prototype._execute = function (state, delay) {
|
2525
|
-
if (this.active === true) {
|
2526
|
-
return _super.prototype._execute.call(this, state, delay);
|
2527
|
-
}
|
2528
|
-
};
|
2529
|
-
VirtualAction.sortActions = function (a, b) {
|
2530
|
-
if (a.delay === b.delay) {
|
2531
|
-
if (a.index === b.index) {
|
2532
|
-
return 0;
|
2533
|
-
}
|
2534
|
-
else if (a.index > b.index) {
|
2535
|
-
return 1;
|
2536
|
-
}
|
2537
|
-
else {
|
2538
|
-
return -1;
|
2539
|
-
}
|
2540
|
-
}
|
2541
|
-
else if (a.delay > b.delay) {
|
2542
|
-
return 1;
|
2543
|
-
}
|
2544
|
-
else {
|
2545
|
-
return -1;
|
2546
|
-
}
|
2547
|
-
};
|
2548
|
-
return VirtualAction;
|
2549
|
-
}(AsyncAction_AsyncAction));
|
2550
|
-
|
2551
|
-
|
2552
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/identity.js
|
2553
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2554
|
-
function identity(x) {
|
2555
|
-
return x;
|
2556
|
-
}
|
2557
|
-
|
2558
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isObservable.js
|
2559
|
-
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
2560
|
-
|
2561
|
-
function isObservable(obj) {
|
2562
|
-
return !!obj && (obj instanceof Observable_Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));
|
2563
|
-
}
|
2564
|
-
|
2565
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js
|
2566
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2567
|
-
function ArgumentOutOfRangeErrorImpl() {
|
2568
|
-
Error.call(this);
|
2569
|
-
this.message = 'argument out of range';
|
2570
|
-
this.name = 'ArgumentOutOfRangeError';
|
2571
|
-
return this;
|
2572
|
-
}
|
2573
|
-
ArgumentOutOfRangeErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
|
2574
|
-
var ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;
|
2575
|
-
|
2576
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/EmptyError.js
|
2577
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2578
|
-
function EmptyErrorImpl() {
|
2579
|
-
Error.call(this);
|
2580
|
-
this.message = 'no elements in sequence';
|
2581
|
-
this.name = 'EmptyError';
|
2582
|
-
return this;
|
2583
|
-
}
|
2584
|
-
EmptyErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
|
2585
|
-
var EmptyError = EmptyErrorImpl;
|
2586
|
-
|
2587
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/TimeoutError.js
|
2588
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2589
|
-
function TimeoutErrorImpl() {
|
2590
|
-
Error.call(this);
|
2591
|
-
this.message = 'Timeout has occurred';
|
2592
|
-
this.name = 'TimeoutError';
|
2593
|
-
return this;
|
2594
|
-
}
|
2595
|
-
TimeoutErrorImpl.prototype = /*@__PURE__*/ Object.create(Error.prototype);
|
2596
|
-
var TimeoutError = TimeoutErrorImpl;
|
2597
|
-
|
2598
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/map.js
|
2599
|
-
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
2600
|
-
|
2601
|
-
|
2602
|
-
function map(project, thisArg) {
|
2603
|
-
return function mapOperation(source) {
|
2604
|
-
if (typeof project !== 'function') {
|
2605
|
-
throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');
|
2606
|
-
}
|
2607
|
-
return source.lift(new MapOperator(project, thisArg));
|
2608
|
-
};
|
2609
|
-
}
|
2610
|
-
var MapOperator = /*@__PURE__*/ (function () {
|
2611
|
-
function MapOperator(project, thisArg) {
|
2612
|
-
this.project = project;
|
2613
|
-
this.thisArg = thisArg;
|
2614
|
-
}
|
2615
|
-
MapOperator.prototype.call = function (subscriber, source) {
|
2616
|
-
return source.subscribe(new map_MapSubscriber(subscriber, this.project, this.thisArg));
|
2617
|
-
};
|
2618
|
-
return MapOperator;
|
2619
|
-
}());
|
2620
|
-
|
2621
|
-
var map_MapSubscriber = /*@__PURE__*/ (function (_super) {
|
2622
|
-
__extends(MapSubscriber, _super);
|
2623
|
-
function MapSubscriber(destination, project, thisArg) {
|
2624
|
-
var _this = _super.call(this, destination) || this;
|
2625
|
-
_this.project = project;
|
2626
|
-
_this.count = 0;
|
2627
|
-
_this.thisArg = thisArg || _this;
|
2628
|
-
return _this;
|
2629
|
-
}
|
2630
|
-
MapSubscriber.prototype._next = function (value) {
|
2631
|
-
var result;
|
2632
|
-
try {
|
2633
|
-
result = this.project.call(this.thisArg, value, this.count++);
|
2634
|
-
}
|
2635
|
-
catch (err) {
|
2636
|
-
this.destination.error(err);
|
2637
|
-
return;
|
2638
|
-
}
|
2639
|
-
this.destination.next(result);
|
2640
|
-
};
|
2641
|
-
return MapSubscriber;
|
2642
|
-
}(Subscriber_Subscriber));
|
2643
|
-
|
2644
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/bindCallback.js
|
2645
|
-
/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isArray,_util_isScheduler PURE_IMPORTS_END */
|
2646
|
-
|
2647
|
-
|
2648
|
-
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
function bindCallback(callbackFunc, resultSelector, scheduler) {
|
2653
|
-
if (resultSelector) {
|
2654
|
-
if (isScheduler(resultSelector)) {
|
2655
|
-
scheduler = resultSelector;
|
2656
|
-
}
|
2657
|
-
else {
|
2658
|
-
return function () {
|
2659
|
-
var args = [];
|
2660
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2661
|
-
args[_i] = arguments[_i];
|
2662
|
-
}
|
2663
|
-
return bindCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));
|
2664
|
-
};
|
2665
|
-
}
|
2666
|
-
}
|
2667
|
-
return function () {
|
2668
|
-
var args = [];
|
2669
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2670
|
-
args[_i] = arguments[_i];
|
2671
|
-
}
|
2672
|
-
var context = this;
|
2673
|
-
var subject;
|
2674
|
-
var params = {
|
2675
|
-
context: context,
|
2676
|
-
subject: subject,
|
2677
|
-
callbackFunc: callbackFunc,
|
2678
|
-
scheduler: scheduler,
|
2679
|
-
};
|
2680
|
-
return new Observable_Observable(function (subscriber) {
|
2681
|
-
if (!scheduler) {
|
2682
|
-
if (!subject) {
|
2683
|
-
subject = new AsyncSubject_AsyncSubject();
|
2684
|
-
var handler = function () {
|
2685
|
-
var innerArgs = [];
|
2686
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2687
|
-
innerArgs[_i] = arguments[_i];
|
2688
|
-
}
|
2689
|
-
subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
|
2690
|
-
subject.complete();
|
2691
|
-
};
|
2692
|
-
try {
|
2693
|
-
callbackFunc.apply(context, args.concat([handler]));
|
2694
|
-
}
|
2695
|
-
catch (err) {
|
2696
|
-
if (canReportError(subject)) {
|
2697
|
-
subject.error(err);
|
2698
|
-
}
|
2699
|
-
else {
|
2700
|
-
console.warn(err);
|
2701
|
-
}
|
2702
|
-
}
|
2703
|
-
}
|
2704
|
-
return subject.subscribe(subscriber);
|
2705
|
-
}
|
2706
|
-
else {
|
2707
|
-
var state = {
|
2708
|
-
args: args, subscriber: subscriber, params: params,
|
2709
|
-
};
|
2710
|
-
return scheduler.schedule(bindCallback_dispatch, 0, state);
|
2711
|
-
}
|
2712
|
-
});
|
2713
|
-
};
|
2714
|
-
}
|
2715
|
-
function bindCallback_dispatch(state) {
|
2716
|
-
var _this = this;
|
2717
|
-
var self = this;
|
2718
|
-
var args = state.args, subscriber = state.subscriber, params = state.params;
|
2719
|
-
var callbackFunc = params.callbackFunc, context = params.context, scheduler = params.scheduler;
|
2720
|
-
var subject = params.subject;
|
2721
|
-
if (!subject) {
|
2722
|
-
subject = params.subject = new AsyncSubject_AsyncSubject();
|
2723
|
-
var handler = function () {
|
2724
|
-
var innerArgs = [];
|
2725
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2726
|
-
innerArgs[_i] = arguments[_i];
|
2727
|
-
}
|
2728
|
-
var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;
|
2729
|
-
_this.add(scheduler.schedule(dispatchNext, 0, { value: value, subject: subject }));
|
2730
|
-
};
|
2731
|
-
try {
|
2732
|
-
callbackFunc.apply(context, args.concat([handler]));
|
2733
|
-
}
|
2734
|
-
catch (err) {
|
2735
|
-
subject.error(err);
|
2736
|
-
}
|
2737
|
-
}
|
2738
|
-
this.add(subject.subscribe(subscriber));
|
2739
|
-
}
|
2740
|
-
function dispatchNext(state) {
|
2741
|
-
var value = state.value, subject = state.subject;
|
2742
|
-
subject.next(value);
|
2743
|
-
subject.complete();
|
2744
|
-
}
|
2745
|
-
function dispatchError(state) {
|
2746
|
-
var err = state.err, subject = state.subject;
|
2747
|
-
subject.error(err);
|
2748
|
-
}
|
2749
|
-
|
2750
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/bindNodeCallback.js
|
2751
|
-
/** PURE_IMPORTS_START _Observable,_AsyncSubject,_operators_map,_util_canReportError,_util_isScheduler,_util_isArray PURE_IMPORTS_END */
|
2752
|
-
|
2753
|
-
|
2754
|
-
|
2755
|
-
|
2756
|
-
|
2757
|
-
|
2758
|
-
function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
|
2759
|
-
if (resultSelector) {
|
2760
|
-
if (isScheduler(resultSelector)) {
|
2761
|
-
scheduler = resultSelector;
|
2762
|
-
}
|
2763
|
-
else {
|
2764
|
-
return function () {
|
2765
|
-
var args = [];
|
2766
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2767
|
-
args[_i] = arguments[_i];
|
2768
|
-
}
|
2769
|
-
return bindNodeCallback(callbackFunc, scheduler).apply(void 0, args).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));
|
2770
|
-
};
|
2771
|
-
}
|
2772
|
-
}
|
2773
|
-
return function () {
|
2774
|
-
var args = [];
|
2775
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2776
|
-
args[_i] = arguments[_i];
|
2777
|
-
}
|
2778
|
-
var params = {
|
2779
|
-
subject: undefined,
|
2780
|
-
args: args,
|
2781
|
-
callbackFunc: callbackFunc,
|
2782
|
-
scheduler: scheduler,
|
2783
|
-
context: this,
|
2784
|
-
};
|
2785
|
-
return new Observable_Observable(function (subscriber) {
|
2786
|
-
var context = params.context;
|
2787
|
-
var subject = params.subject;
|
2788
|
-
if (!scheduler) {
|
2789
|
-
if (!subject) {
|
2790
|
-
subject = params.subject = new AsyncSubject_AsyncSubject();
|
2791
|
-
var handler = function () {
|
2792
|
-
var innerArgs = [];
|
2793
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2794
|
-
innerArgs[_i] = arguments[_i];
|
2795
|
-
}
|
2796
|
-
var err = innerArgs.shift();
|
2797
|
-
if (err) {
|
2798
|
-
subject.error(err);
|
2799
|
-
return;
|
2800
|
-
}
|
2801
|
-
subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
|
2802
|
-
subject.complete();
|
2803
|
-
};
|
2804
|
-
try {
|
2805
|
-
callbackFunc.apply(context, args.concat([handler]));
|
2806
|
-
}
|
2807
|
-
catch (err) {
|
2808
|
-
if (canReportError(subject)) {
|
2809
|
-
subject.error(err);
|
2810
|
-
}
|
2811
|
-
else {
|
2812
|
-
console.warn(err);
|
2813
|
-
}
|
2814
|
-
}
|
2815
|
-
}
|
2816
|
-
return subject.subscribe(subscriber);
|
2817
|
-
}
|
2818
|
-
else {
|
2819
|
-
return scheduler.schedule(bindNodeCallback_dispatch, 0, { params: params, subscriber: subscriber, context: context });
|
2820
|
-
}
|
2821
|
-
});
|
2822
|
-
};
|
2823
|
-
}
|
2824
|
-
function bindNodeCallback_dispatch(state) {
|
2825
|
-
var _this = this;
|
2826
|
-
var params = state.params, subscriber = state.subscriber, context = state.context;
|
2827
|
-
var callbackFunc = params.callbackFunc, args = params.args, scheduler = params.scheduler;
|
2828
|
-
var subject = params.subject;
|
2829
|
-
if (!subject) {
|
2830
|
-
subject = params.subject = new AsyncSubject_AsyncSubject();
|
2831
|
-
var handler = function () {
|
2832
|
-
var innerArgs = [];
|
2833
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
2834
|
-
innerArgs[_i] = arguments[_i];
|
2835
|
-
}
|
2836
|
-
var err = innerArgs.shift();
|
2837
|
-
if (err) {
|
2838
|
-
_this.add(scheduler.schedule(bindNodeCallback_dispatchError, 0, { err: err, subject: subject }));
|
2839
|
-
}
|
2840
|
-
else {
|
2841
|
-
var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;
|
2842
|
-
_this.add(scheduler.schedule(bindNodeCallback_dispatchNext, 0, { value: value, subject: subject }));
|
2843
|
-
}
|
2844
|
-
};
|
2845
|
-
try {
|
2846
|
-
callbackFunc.apply(context, args.concat([handler]));
|
2847
|
-
}
|
2848
|
-
catch (err) {
|
2849
|
-
this.add(scheduler.schedule(bindNodeCallback_dispatchError, 0, { err: err, subject: subject }));
|
2850
|
-
}
|
2851
|
-
}
|
2852
|
-
this.add(subject.subscribe(subscriber));
|
2853
|
-
}
|
2854
|
-
function bindNodeCallback_dispatchNext(arg) {
|
2855
|
-
var value = arg.value, subject = arg.subject;
|
2856
|
-
subject.next(value);
|
2857
|
-
subject.complete();
|
2858
|
-
}
|
2859
|
-
function bindNodeCallback_dispatchError(arg) {
|
2860
|
-
var err = arg.err, subject = arg.subject;
|
2861
|
-
subject.error(err);
|
2862
|
-
}
|
2863
|
-
|
2864
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/OuterSubscriber.js
|
2865
|
-
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
2866
|
-
|
2867
|
-
|
2868
|
-
var OuterSubscriber_OuterSubscriber = /*@__PURE__*/ (function (_super) {
|
2869
|
-
__extends(OuterSubscriber, _super);
|
2870
|
-
function OuterSubscriber() {
|
2871
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
2872
|
-
}
|
2873
|
-
OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
|
2874
|
-
this.destination.next(innerValue);
|
2875
|
-
};
|
2876
|
-
OuterSubscriber.prototype.notifyError = function (error, innerSub) {
|
2877
|
-
this.destination.error(error);
|
2878
|
-
};
|
2879
|
-
OuterSubscriber.prototype.notifyComplete = function (innerSub) {
|
2880
|
-
this.destination.complete();
|
2881
|
-
};
|
2882
|
-
return OuterSubscriber;
|
2883
|
-
}(Subscriber_Subscriber));
|
2884
|
-
|
2885
|
-
|
2886
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/InnerSubscriber.js
|
2887
|
-
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
2888
|
-
|
2889
|
-
|
2890
|
-
var InnerSubscriber_InnerSubscriber = /*@__PURE__*/ (function (_super) {
|
2891
|
-
__extends(InnerSubscriber, _super);
|
2892
|
-
function InnerSubscriber(parent, outerValue, outerIndex) {
|
2893
|
-
var _this = _super.call(this) || this;
|
2894
|
-
_this.parent = parent;
|
2895
|
-
_this.outerValue = outerValue;
|
2896
|
-
_this.outerIndex = outerIndex;
|
2897
|
-
_this.index = 0;
|
2898
|
-
return _this;
|
2899
|
-
}
|
2900
|
-
InnerSubscriber.prototype._next = function (value) {
|
2901
|
-
this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
|
2902
|
-
};
|
2903
|
-
InnerSubscriber.prototype._error = function (error) {
|
2904
|
-
this.parent.notifyError(error, this);
|
2905
|
-
this.unsubscribe();
|
2906
|
-
};
|
2907
|
-
InnerSubscriber.prototype._complete = function () {
|
2908
|
-
this.parent.notifyComplete(this);
|
2909
|
-
this.unsubscribe();
|
2910
|
-
};
|
2911
|
-
return InnerSubscriber;
|
2912
|
-
}(Subscriber_Subscriber));
|
2913
|
-
|
2914
|
-
|
2915
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js
|
2916
|
-
/** PURE_IMPORTS_START _hostReportError PURE_IMPORTS_END */
|
2917
|
-
|
2918
|
-
var subscribeToPromise = function (promise) {
|
2919
|
-
return function (subscriber) {
|
2920
|
-
promise.then(function (value) {
|
2921
|
-
if (!subscriber.closed) {
|
2922
|
-
subscriber.next(value);
|
2923
|
-
subscriber.complete();
|
2924
|
-
}
|
2925
|
-
}, function (err) { return subscriber.error(err); })
|
2926
|
-
.then(null, hostReportError);
|
2927
|
-
return subscriber;
|
2928
|
-
};
|
2929
|
-
};
|
2930
|
-
|
2931
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/symbol/iterator.js
|
2932
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2933
|
-
function getSymbolIterator() {
|
2934
|
-
if (typeof Symbol !== 'function' || !Symbol.iterator) {
|
2935
|
-
return '@@iterator';
|
2936
|
-
}
|
2937
|
-
return Symbol.iterator;
|
2938
|
-
}
|
2939
|
-
var iterator_iterator = /*@__PURE__*/ getSymbolIterator();
|
2940
|
-
var $$iterator = iterator_iterator;
|
2941
|
-
|
2942
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToIterable.js
|
2943
|
-
/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */
|
2944
|
-
|
2945
|
-
var subscribeToIterable = function (iterable) {
|
2946
|
-
return function (subscriber) {
|
2947
|
-
var iterator = iterable[iterator_iterator]();
|
2948
|
-
do {
|
2949
|
-
var item = iterator.next();
|
2950
|
-
if (item.done) {
|
2951
|
-
subscriber.complete();
|
2952
|
-
break;
|
2953
|
-
}
|
2954
|
-
subscriber.next(item.value);
|
2955
|
-
if (subscriber.closed) {
|
2956
|
-
break;
|
2957
|
-
}
|
2958
|
-
} while (true);
|
2959
|
-
if (typeof iterator.return === 'function') {
|
2960
|
-
subscriber.add(function () {
|
2961
|
-
if (iterator.return) {
|
2962
|
-
iterator.return();
|
2963
|
-
}
|
2964
|
-
});
|
2965
|
-
}
|
2966
|
-
return subscriber;
|
2967
|
-
};
|
2968
|
-
};
|
2969
|
-
|
2970
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToObservable.js
|
2971
|
-
/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */
|
2972
|
-
|
2973
|
-
var subscribeToObservable = function (obj) {
|
2974
|
-
return function (subscriber) {
|
2975
|
-
var obs = obj[observable_observable]();
|
2976
|
-
if (typeof obs.subscribe !== 'function') {
|
2977
|
-
throw new TypeError('Provided object does not correctly implement Symbol.observable');
|
2978
|
-
}
|
2979
|
-
else {
|
2980
|
-
return obs.subscribe(subscriber);
|
2981
|
-
}
|
2982
|
-
};
|
2983
|
-
};
|
2984
|
-
|
2985
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isArrayLike.js
|
2986
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2987
|
-
var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });
|
2988
|
-
|
2989
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isPromise.js
|
2990
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
2991
|
-
function isPromise(value) {
|
2992
|
-
return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
|
2993
|
-
}
|
2994
|
-
|
2995
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeTo.js
|
2996
|
-
/** PURE_IMPORTS_START _subscribeToArray,_subscribeToPromise,_subscribeToIterable,_subscribeToObservable,_isArrayLike,_isPromise,_isObject,_symbol_iterator,_symbol_observable PURE_IMPORTS_END */
|
2997
|
-
|
2998
|
-
|
2999
|
-
|
3000
|
-
|
3001
|
-
|
3002
|
-
|
3003
|
-
|
3004
|
-
|
3005
|
-
|
3006
|
-
var subscribeTo = function (result) {
|
3007
|
-
if (!!result && typeof result[observable_observable] === 'function') {
|
3008
|
-
return subscribeToObservable(result);
|
3009
|
-
}
|
3010
|
-
else if (isArrayLike(result)) {
|
3011
|
-
return subscribeToArray(result);
|
3012
|
-
}
|
3013
|
-
else if (isPromise(result)) {
|
3014
|
-
return subscribeToPromise(result);
|
3015
|
-
}
|
3016
|
-
else if (!!result && typeof result[iterator_iterator] === 'function') {
|
3017
|
-
return subscribeToIterable(result);
|
3018
|
-
}
|
3019
|
-
else {
|
3020
|
-
var value = isObject(result) ? 'an invalid object' : "'" + result + "'";
|
3021
|
-
var msg = "You provided " + value + " where a stream was expected."
|
3022
|
-
+ ' You can provide an Observable, Promise, Array, or Iterable.';
|
3023
|
-
throw new TypeError(msg);
|
3024
|
-
}
|
3025
|
-
};
|
3026
|
-
|
3027
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js
|
3028
|
-
/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo,_Observable PURE_IMPORTS_END */
|
3029
|
-
|
3030
|
-
|
3031
|
-
|
3032
|
-
function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, destination) {
|
3033
|
-
if (destination === void 0) {
|
3034
|
-
destination = new InnerSubscriber_InnerSubscriber(outerSubscriber, outerValue, outerIndex);
|
3035
|
-
}
|
3036
|
-
if (destination.closed) {
|
3037
|
-
return undefined;
|
3038
|
-
}
|
3039
|
-
if (result instanceof Observable_Observable) {
|
3040
|
-
return result.subscribe(destination);
|
3041
|
-
}
|
3042
|
-
return subscribeTo(result)(destination);
|
3043
|
-
}
|
3044
|
-
|
3045
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/combineLatest.js
|
3046
|
-
/** PURE_IMPORTS_START tslib,_util_isScheduler,_util_isArray,_OuterSubscriber,_util_subscribeToResult,_fromArray PURE_IMPORTS_END */
|
3047
|
-
|
3048
|
-
|
3049
|
-
|
3050
|
-
|
3051
|
-
|
3052
|
-
|
3053
|
-
var NONE = {};
|
3054
|
-
function combineLatest() {
|
3055
|
-
var observables = [];
|
3056
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3057
|
-
observables[_i] = arguments[_i];
|
3058
|
-
}
|
3059
|
-
var resultSelector = null;
|
3060
|
-
var scheduler = null;
|
3061
|
-
if (isScheduler(observables[observables.length - 1])) {
|
3062
|
-
scheduler = observables.pop();
|
3063
|
-
}
|
3064
|
-
if (typeof observables[observables.length - 1] === 'function') {
|
3065
|
-
resultSelector = observables.pop();
|
3066
|
-
}
|
3067
|
-
if (observables.length === 1 && isArray(observables[0])) {
|
3068
|
-
observables = observables[0];
|
3069
|
-
}
|
3070
|
-
return fromArray(observables, scheduler).lift(new CombineLatestOperator(resultSelector));
|
3071
|
-
}
|
3072
|
-
var CombineLatestOperator = /*@__PURE__*/ (function () {
|
3073
|
-
function CombineLatestOperator(resultSelector) {
|
3074
|
-
this.resultSelector = resultSelector;
|
3075
|
-
}
|
3076
|
-
CombineLatestOperator.prototype.call = function (subscriber, source) {
|
3077
|
-
return source.subscribe(new combineLatest_CombineLatestSubscriber(subscriber, this.resultSelector));
|
3078
|
-
};
|
3079
|
-
return CombineLatestOperator;
|
3080
|
-
}());
|
3081
|
-
|
3082
|
-
var combineLatest_CombineLatestSubscriber = /*@__PURE__*/ (function (_super) {
|
3083
|
-
__extends(CombineLatestSubscriber, _super);
|
3084
|
-
function CombineLatestSubscriber(destination, resultSelector) {
|
3085
|
-
var _this = _super.call(this, destination) || this;
|
3086
|
-
_this.resultSelector = resultSelector;
|
3087
|
-
_this.active = 0;
|
3088
|
-
_this.values = [];
|
3089
|
-
_this.observables = [];
|
3090
|
-
return _this;
|
3091
|
-
}
|
3092
|
-
CombineLatestSubscriber.prototype._next = function (observable) {
|
3093
|
-
this.values.push(NONE);
|
3094
|
-
this.observables.push(observable);
|
3095
|
-
};
|
3096
|
-
CombineLatestSubscriber.prototype._complete = function () {
|
3097
|
-
var observables = this.observables;
|
3098
|
-
var len = observables.length;
|
3099
|
-
if (len === 0) {
|
3100
|
-
this.destination.complete();
|
3101
|
-
}
|
3102
|
-
else {
|
3103
|
-
this.active = len;
|
3104
|
-
this.toRespond = len;
|
3105
|
-
for (var i = 0; i < len; i++) {
|
3106
|
-
var observable = observables[i];
|
3107
|
-
this.add(subscribeToResult(this, observable, observable, i));
|
3108
|
-
}
|
3109
|
-
}
|
3110
|
-
};
|
3111
|
-
CombineLatestSubscriber.prototype.notifyComplete = function (unused) {
|
3112
|
-
if ((this.active -= 1) === 0) {
|
3113
|
-
this.destination.complete();
|
3114
|
-
}
|
3115
|
-
};
|
3116
|
-
CombineLatestSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
|
3117
|
-
var values = this.values;
|
3118
|
-
var oldVal = values[outerIndex];
|
3119
|
-
var toRespond = !this.toRespond
|
3120
|
-
? 0
|
3121
|
-
: oldVal === NONE ? --this.toRespond : this.toRespond;
|
3122
|
-
values[outerIndex] = innerValue;
|
3123
|
-
if (toRespond === 0) {
|
3124
|
-
if (this.resultSelector) {
|
3125
|
-
this._tryResultSelector(values);
|
3126
|
-
}
|
3127
|
-
else {
|
3128
|
-
this.destination.next(values.slice());
|
3129
|
-
}
|
3130
|
-
}
|
3131
|
-
};
|
3132
|
-
CombineLatestSubscriber.prototype._tryResultSelector = function (values) {
|
3133
|
-
var result;
|
3134
|
-
try {
|
3135
|
-
result = this.resultSelector.apply(this, values);
|
3136
|
-
}
|
3137
|
-
catch (err) {
|
3138
|
-
this.destination.error(err);
|
3139
|
-
return;
|
3140
|
-
}
|
3141
|
-
this.destination.next(result);
|
3142
|
-
};
|
3143
|
-
return CombineLatestSubscriber;
|
3144
|
-
}(OuterSubscriber_OuterSubscriber));
|
3145
|
-
|
3146
|
-
|
3147
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleObservable.js
|
3148
|
-
/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_observable PURE_IMPORTS_END */
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
3152
|
-
function scheduleObservable(input, scheduler) {
|
3153
|
-
return new Observable_Observable(function (subscriber) {
|
3154
|
-
var sub = new Subscription_Subscription();
|
3155
|
-
sub.add(scheduler.schedule(function () {
|
3156
|
-
var observable = input[observable_observable]();
|
3157
|
-
sub.add(observable.subscribe({
|
3158
|
-
next: function (value) { sub.add(scheduler.schedule(function () { return subscriber.next(value); })); },
|
3159
|
-
error: function (err) { sub.add(scheduler.schedule(function () { return subscriber.error(err); })); },
|
3160
|
-
complete: function () { sub.add(scheduler.schedule(function () { return subscriber.complete(); })); },
|
3161
|
-
}));
|
3162
|
-
}));
|
3163
|
-
return sub;
|
3164
|
-
});
|
3165
|
-
}
|
3166
|
-
|
3167
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/schedulePromise.js
|
3168
|
-
/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */
|
3169
|
-
|
3170
|
-
|
3171
|
-
function schedulePromise(input, scheduler) {
|
3172
|
-
return new Observable_Observable(function (subscriber) {
|
3173
|
-
var sub = new Subscription_Subscription();
|
3174
|
-
sub.add(scheduler.schedule(function () {
|
3175
|
-
return input.then(function (value) {
|
3176
|
-
sub.add(scheduler.schedule(function () {
|
3177
|
-
subscriber.next(value);
|
3178
|
-
sub.add(scheduler.schedule(function () { return subscriber.complete(); }));
|
3179
|
-
}));
|
3180
|
-
}, function (err) {
|
3181
|
-
sub.add(scheduler.schedule(function () { return subscriber.error(err); }));
|
3182
|
-
});
|
3183
|
-
}));
|
3184
|
-
return sub;
|
3185
|
-
});
|
3186
|
-
}
|
3187
|
-
|
3188
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduleIterable.js
|
3189
|
-
/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator PURE_IMPORTS_END */
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3193
|
-
function scheduleIterable(input, scheduler) {
|
3194
|
-
if (!input) {
|
3195
|
-
throw new Error('Iterable cannot be null');
|
3196
|
-
}
|
3197
|
-
return new Observable_Observable(function (subscriber) {
|
3198
|
-
var sub = new Subscription_Subscription();
|
3199
|
-
var iterator;
|
3200
|
-
sub.add(function () {
|
3201
|
-
if (iterator && typeof iterator.return === 'function') {
|
3202
|
-
iterator.return();
|
3203
|
-
}
|
3204
|
-
});
|
3205
|
-
sub.add(scheduler.schedule(function () {
|
3206
|
-
iterator = input[iterator_iterator]();
|
3207
|
-
sub.add(scheduler.schedule(function () {
|
3208
|
-
if (subscriber.closed) {
|
3209
|
-
return;
|
3210
|
-
}
|
3211
|
-
var value;
|
3212
|
-
var done;
|
3213
|
-
try {
|
3214
|
-
var result = iterator.next();
|
3215
|
-
value = result.value;
|
3216
|
-
done = result.done;
|
3217
|
-
}
|
3218
|
-
catch (err) {
|
3219
|
-
subscriber.error(err);
|
3220
|
-
return;
|
3221
|
-
}
|
3222
|
-
if (done) {
|
3223
|
-
subscriber.complete();
|
3224
|
-
}
|
3225
|
-
else {
|
3226
|
-
subscriber.next(value);
|
3227
|
-
this.schedule();
|
3228
|
-
}
|
3229
|
-
}));
|
3230
|
-
}));
|
3231
|
-
return sub;
|
3232
|
-
});
|
3233
|
-
}
|
3234
|
-
|
3235
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isInteropObservable.js
|
3236
|
-
/** PURE_IMPORTS_START _symbol_observable PURE_IMPORTS_END */
|
3237
|
-
|
3238
|
-
function isInteropObservable(input) {
|
3239
|
-
return input && typeof input[observable_observable] === 'function';
|
3240
|
-
}
|
3241
|
-
|
3242
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isIterable.js
|
3243
|
-
/** PURE_IMPORTS_START _symbol_iterator PURE_IMPORTS_END */
|
3244
|
-
|
3245
|
-
function isIterable(input) {
|
3246
|
-
return input && typeof input[iterator_iterator] === 'function';
|
3247
|
-
}
|
3248
|
-
|
3249
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js
|
3250
|
-
/** PURE_IMPORTS_START _scheduleObservable,_schedulePromise,_scheduleArray,_scheduleIterable,_util_isInteropObservable,_util_isPromise,_util_isArrayLike,_util_isIterable PURE_IMPORTS_END */
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
3257
|
-
|
3258
|
-
|
3259
|
-
function scheduled(input, scheduler) {
|
3260
|
-
if (input != null) {
|
3261
|
-
if (isInteropObservable(input)) {
|
3262
|
-
return scheduleObservable(input, scheduler);
|
3263
|
-
}
|
3264
|
-
else if (isPromise(input)) {
|
3265
|
-
return schedulePromise(input, scheduler);
|
3266
|
-
}
|
3267
|
-
else if (isArrayLike(input)) {
|
3268
|
-
return scheduleArray(input, scheduler);
|
3269
|
-
}
|
3270
|
-
else if (isIterable(input) || typeof input === 'string') {
|
3271
|
-
return scheduleIterable(input, scheduler);
|
3272
|
-
}
|
3273
|
-
}
|
3274
|
-
throw new TypeError((input !== null && typeof input || input) + ' is not observable');
|
3275
|
-
}
|
3276
|
-
|
3277
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/from.js
|
3278
|
-
/** PURE_IMPORTS_START _Observable,_util_subscribeTo,_scheduled_scheduled PURE_IMPORTS_END */
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
function from(input, scheduler) {
|
3283
|
-
if (!scheduler) {
|
3284
|
-
if (input instanceof Observable_Observable) {
|
3285
|
-
return input;
|
3286
|
-
}
|
3287
|
-
return new Observable_Observable(subscribeTo(input));
|
3288
|
-
}
|
3289
|
-
else {
|
3290
|
-
return scheduled(input, scheduler);
|
3291
|
-
}
|
3292
|
-
}
|
3293
|
-
|
3294
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/mergeMap.js
|
3295
|
-
/** PURE_IMPORTS_START tslib,_util_subscribeToResult,_OuterSubscriber,_InnerSubscriber,_map,_observable_from PURE_IMPORTS_END */
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
function mergeMap(project, resultSelector, concurrent) {
|
3303
|
-
if (concurrent === void 0) {
|
3304
|
-
concurrent = Number.POSITIVE_INFINITY;
|
3305
|
-
}
|
3306
|
-
if (typeof resultSelector === 'function') {
|
3307
|
-
return function (source) { return source.pipe(mergeMap(function (a, i) { return from(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); }, concurrent)); };
|
3308
|
-
}
|
3309
|
-
else if (typeof resultSelector === 'number') {
|
3310
|
-
concurrent = resultSelector;
|
3311
|
-
}
|
3312
|
-
return function (source) { return source.lift(new MergeMapOperator(project, concurrent)); };
|
3313
|
-
}
|
3314
|
-
var MergeMapOperator = /*@__PURE__*/ (function () {
|
3315
|
-
function MergeMapOperator(project, concurrent) {
|
3316
|
-
if (concurrent === void 0) {
|
3317
|
-
concurrent = Number.POSITIVE_INFINITY;
|
3318
|
-
}
|
3319
|
-
this.project = project;
|
3320
|
-
this.concurrent = concurrent;
|
3321
|
-
}
|
3322
|
-
MergeMapOperator.prototype.call = function (observer, source) {
|
3323
|
-
return source.subscribe(new mergeMap_MergeMapSubscriber(observer, this.project, this.concurrent));
|
3324
|
-
};
|
3325
|
-
return MergeMapOperator;
|
3326
|
-
}());
|
3327
|
-
|
3328
|
-
var mergeMap_MergeMapSubscriber = /*@__PURE__*/ (function (_super) {
|
3329
|
-
__extends(MergeMapSubscriber, _super);
|
3330
|
-
function MergeMapSubscriber(destination, project, concurrent) {
|
3331
|
-
if (concurrent === void 0) {
|
3332
|
-
concurrent = Number.POSITIVE_INFINITY;
|
3333
|
-
}
|
3334
|
-
var _this = _super.call(this, destination) || this;
|
3335
|
-
_this.project = project;
|
3336
|
-
_this.concurrent = concurrent;
|
3337
|
-
_this.hasCompleted = false;
|
3338
|
-
_this.buffer = [];
|
3339
|
-
_this.active = 0;
|
3340
|
-
_this.index = 0;
|
3341
|
-
return _this;
|
3342
|
-
}
|
3343
|
-
MergeMapSubscriber.prototype._next = function (value) {
|
3344
|
-
if (this.active < this.concurrent) {
|
3345
|
-
this._tryNext(value);
|
3346
|
-
}
|
3347
|
-
else {
|
3348
|
-
this.buffer.push(value);
|
3349
|
-
}
|
3350
|
-
};
|
3351
|
-
MergeMapSubscriber.prototype._tryNext = function (value) {
|
3352
|
-
var result;
|
3353
|
-
var index = this.index++;
|
3354
|
-
try {
|
3355
|
-
result = this.project(value, index);
|
3356
|
-
}
|
3357
|
-
catch (err) {
|
3358
|
-
this.destination.error(err);
|
3359
|
-
return;
|
3360
|
-
}
|
3361
|
-
this.active++;
|
3362
|
-
this._innerSub(result, value, index);
|
3363
|
-
};
|
3364
|
-
MergeMapSubscriber.prototype._innerSub = function (ish, value, index) {
|
3365
|
-
var innerSubscriber = new InnerSubscriber_InnerSubscriber(this, undefined, undefined);
|
3366
|
-
var destination = this.destination;
|
3367
|
-
destination.add(innerSubscriber);
|
3368
|
-
subscribeToResult(this, ish, value, index, innerSubscriber);
|
3369
|
-
};
|
3370
|
-
MergeMapSubscriber.prototype._complete = function () {
|
3371
|
-
this.hasCompleted = true;
|
3372
|
-
if (this.active === 0 && this.buffer.length === 0) {
|
3373
|
-
this.destination.complete();
|
3374
|
-
}
|
3375
|
-
this.unsubscribe();
|
3376
|
-
};
|
3377
|
-
MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
|
3378
|
-
this.destination.next(innerValue);
|
3379
|
-
};
|
3380
|
-
MergeMapSubscriber.prototype.notifyComplete = function (innerSub) {
|
3381
|
-
var buffer = this.buffer;
|
3382
|
-
this.remove(innerSub);
|
3383
|
-
this.active--;
|
3384
|
-
if (buffer.length > 0) {
|
3385
|
-
this._next(buffer.shift());
|
3386
|
-
}
|
3387
|
-
else if (this.active === 0 && this.hasCompleted) {
|
3388
|
-
this.destination.complete();
|
3389
|
-
}
|
3390
|
-
};
|
3391
|
-
return MergeMapSubscriber;
|
3392
|
-
}(OuterSubscriber_OuterSubscriber));
|
3393
|
-
|
3394
|
-
|
3395
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/mergeAll.js
|
3396
|
-
/** PURE_IMPORTS_START _mergeMap,_util_identity PURE_IMPORTS_END */
|
3397
|
-
|
3398
|
-
|
3399
|
-
function mergeAll(concurrent) {
|
3400
|
-
if (concurrent === void 0) {
|
3401
|
-
concurrent = Number.POSITIVE_INFINITY;
|
3402
|
-
}
|
3403
|
-
return mergeMap(identity, concurrent);
|
3404
|
-
}
|
3405
|
-
|
3406
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/concatAll.js
|
3407
|
-
/** PURE_IMPORTS_START _mergeAll PURE_IMPORTS_END */
|
3408
|
-
|
3409
|
-
function concatAll() {
|
3410
|
-
return mergeAll(1);
|
3411
|
-
}
|
3412
|
-
|
3413
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/concat.js
|
3414
|
-
/** PURE_IMPORTS_START _of,_operators_concatAll PURE_IMPORTS_END */
|
3415
|
-
|
3416
|
-
|
3417
|
-
function concat() {
|
3418
|
-
var observables = [];
|
3419
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3420
|
-
observables[_i] = arguments[_i];
|
3421
|
-
}
|
3422
|
-
return concatAll()(of.apply(void 0, observables));
|
3423
|
-
}
|
3424
|
-
|
3425
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/defer.js
|
3426
|
-
/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */
|
3427
|
-
|
3428
|
-
|
3429
|
-
|
3430
|
-
function defer(observableFactory) {
|
3431
|
-
return new Observable_Observable(function (subscriber) {
|
3432
|
-
var input;
|
3433
|
-
try {
|
3434
|
-
input = observableFactory();
|
3435
|
-
}
|
3436
|
-
catch (err) {
|
3437
|
-
subscriber.error(err);
|
3438
|
-
return undefined;
|
3439
|
-
}
|
3440
|
-
var source = input ? from(input) : empty_empty();
|
3441
|
-
return source.subscribe(subscriber);
|
3442
|
-
});
|
3443
|
-
}
|
3444
|
-
|
3445
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/forkJoin.js
|
3446
|
-
/** PURE_IMPORTS_START _Observable,_util_isArray,_operators_map,_util_isObject,_from PURE_IMPORTS_END */
|
3447
|
-
|
3448
|
-
|
3449
|
-
|
3450
|
-
|
3451
|
-
|
3452
|
-
function forkJoin() {
|
3453
|
-
var sources = [];
|
3454
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3455
|
-
sources[_i] = arguments[_i];
|
3456
|
-
}
|
3457
|
-
if (sources.length === 1) {
|
3458
|
-
var first_1 = sources[0];
|
3459
|
-
if (isArray(first_1)) {
|
3460
|
-
return forkJoinInternal(first_1, null);
|
3461
|
-
}
|
3462
|
-
if (isObject(first_1) && Object.getPrototypeOf(first_1) === Object.prototype) {
|
3463
|
-
var keys = Object.keys(first_1);
|
3464
|
-
return forkJoinInternal(keys.map(function (key) { return first_1[key]; }), keys);
|
3465
|
-
}
|
3466
|
-
}
|
3467
|
-
if (typeof sources[sources.length - 1] === 'function') {
|
3468
|
-
var resultSelector_1 = sources.pop();
|
3469
|
-
sources = (sources.length === 1 && isArray(sources[0])) ? sources[0] : sources;
|
3470
|
-
return forkJoinInternal(sources, null).pipe(map(function (args) { return resultSelector_1.apply(void 0, args); }));
|
3471
|
-
}
|
3472
|
-
return forkJoinInternal(sources, null);
|
3473
|
-
}
|
3474
|
-
function forkJoinInternal(sources, keys) {
|
3475
|
-
return new Observable_Observable(function (subscriber) {
|
3476
|
-
var len = sources.length;
|
3477
|
-
if (len === 0) {
|
3478
|
-
subscriber.complete();
|
3479
|
-
return;
|
3480
|
-
}
|
3481
|
-
var values = new Array(len);
|
3482
|
-
var completed = 0;
|
3483
|
-
var emitted = 0;
|
3484
|
-
var _loop_1 = function (i) {
|
3485
|
-
var source = from(sources[i]);
|
3486
|
-
var hasValue = false;
|
3487
|
-
subscriber.add(source.subscribe({
|
3488
|
-
next: function (value) {
|
3489
|
-
if (!hasValue) {
|
3490
|
-
hasValue = true;
|
3491
|
-
emitted++;
|
3492
|
-
}
|
3493
|
-
values[i] = value;
|
3494
|
-
},
|
3495
|
-
error: function (err) { return subscriber.error(err); },
|
3496
|
-
complete: function () {
|
3497
|
-
completed++;
|
3498
|
-
if (completed === len || !hasValue) {
|
3499
|
-
if (emitted === len) {
|
3500
|
-
subscriber.next(keys ?
|
3501
|
-
keys.reduce(function (result, key, i) { return (result[key] = values[i], result); }, {}) :
|
3502
|
-
values);
|
3503
|
-
}
|
3504
|
-
subscriber.complete();
|
3505
|
-
}
|
3506
|
-
}
|
3507
|
-
}));
|
3508
|
-
};
|
3509
|
-
for (var i = 0; i < len; i++) {
|
3510
|
-
_loop_1(i);
|
3511
|
-
}
|
3512
|
-
});
|
3513
|
-
}
|
3514
|
-
|
3515
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/fromEvent.js
|
3516
|
-
/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */
|
3517
|
-
|
3518
|
-
|
3519
|
-
|
3520
|
-
|
3521
|
-
var fromEvent_toString = Object.prototype.toString;
|
3522
|
-
function fromEvent(target, eventName, options, resultSelector) {
|
3523
|
-
if (isFunction(options)) {
|
3524
|
-
resultSelector = options;
|
3525
|
-
options = undefined;
|
3526
|
-
}
|
3527
|
-
if (resultSelector) {
|
3528
|
-
return fromEvent(target, eventName, options).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));
|
3529
|
-
}
|
3530
|
-
return new Observable_Observable(function (subscriber) {
|
3531
|
-
function handler(e) {
|
3532
|
-
if (arguments.length > 1) {
|
3533
|
-
subscriber.next(Array.prototype.slice.call(arguments));
|
3534
|
-
}
|
3535
|
-
else {
|
3536
|
-
subscriber.next(e);
|
3537
|
-
}
|
3538
|
-
}
|
3539
|
-
setupSubscription(target, eventName, handler, subscriber, options);
|
3540
|
-
});
|
3541
|
-
}
|
3542
|
-
function setupSubscription(sourceObj, eventName, handler, subscriber, options) {
|
3543
|
-
var unsubscribe;
|
3544
|
-
if (isEventTarget(sourceObj)) {
|
3545
|
-
var source_1 = sourceObj;
|
3546
|
-
sourceObj.addEventListener(eventName, handler, options);
|
3547
|
-
unsubscribe = function () { return source_1.removeEventListener(eventName, handler, options); };
|
3548
|
-
}
|
3549
|
-
else if (isJQueryStyleEventEmitter(sourceObj)) {
|
3550
|
-
var source_2 = sourceObj;
|
3551
|
-
sourceObj.on(eventName, handler);
|
3552
|
-
unsubscribe = function () { return source_2.off(eventName, handler); };
|
3553
|
-
}
|
3554
|
-
else if (isNodeStyleEventEmitter(sourceObj)) {
|
3555
|
-
var source_3 = sourceObj;
|
3556
|
-
sourceObj.addListener(eventName, handler);
|
3557
|
-
unsubscribe = function () { return source_3.removeListener(eventName, handler); };
|
3558
|
-
}
|
3559
|
-
else if (sourceObj && sourceObj.length) {
|
3560
|
-
for (var i = 0, len = sourceObj.length; i < len; i++) {
|
3561
|
-
setupSubscription(sourceObj[i], eventName, handler, subscriber, options);
|
3562
|
-
}
|
3563
|
-
}
|
3564
|
-
else {
|
3565
|
-
throw new TypeError('Invalid event target');
|
3566
|
-
}
|
3567
|
-
subscriber.add(unsubscribe);
|
3568
|
-
}
|
3569
|
-
function isNodeStyleEventEmitter(sourceObj) {
|
3570
|
-
return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';
|
3571
|
-
}
|
3572
|
-
function isJQueryStyleEventEmitter(sourceObj) {
|
3573
|
-
return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';
|
3574
|
-
}
|
3575
|
-
function isEventTarget(sourceObj) {
|
3576
|
-
return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';
|
3577
|
-
}
|
3578
|
-
|
3579
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/fromEventPattern.js
|
3580
|
-
/** PURE_IMPORTS_START _Observable,_util_isArray,_util_isFunction,_operators_map PURE_IMPORTS_END */
|
3581
|
-
|
3582
|
-
|
3583
|
-
|
3584
|
-
|
3585
|
-
function fromEventPattern(addHandler, removeHandler, resultSelector) {
|
3586
|
-
if (resultSelector) {
|
3587
|
-
return fromEventPattern(addHandler, removeHandler).pipe(map(function (args) { return isArray(args) ? resultSelector.apply(void 0, args) : resultSelector(args); }));
|
3588
|
-
}
|
3589
|
-
return new Observable_Observable(function (subscriber) {
|
3590
|
-
var handler = function () {
|
3591
|
-
var e = [];
|
3592
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3593
|
-
e[_i] = arguments[_i];
|
3594
|
-
}
|
3595
|
-
return subscriber.next(e.length === 1 ? e[0] : e);
|
3596
|
-
};
|
3597
|
-
var retValue;
|
3598
|
-
try {
|
3599
|
-
retValue = addHandler(handler);
|
3600
|
-
}
|
3601
|
-
catch (err) {
|
3602
|
-
subscriber.error(err);
|
3603
|
-
return undefined;
|
3604
|
-
}
|
3605
|
-
if (!isFunction(removeHandler)) {
|
3606
|
-
return undefined;
|
3607
|
-
}
|
3608
|
-
return function () { return removeHandler(handler, retValue); };
|
3609
|
-
});
|
3610
|
-
}
|
3611
|
-
|
3612
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/generate.js
|
3613
|
-
/** PURE_IMPORTS_START _Observable,_util_identity,_util_isScheduler PURE_IMPORTS_END */
|
3614
|
-
|
3615
|
-
|
3616
|
-
|
3617
|
-
function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {
|
3618
|
-
var resultSelector;
|
3619
|
-
var initialState;
|
3620
|
-
if (arguments.length == 1) {
|
3621
|
-
var options = initialStateOrOptions;
|
3622
|
-
initialState = options.initialState;
|
3623
|
-
condition = options.condition;
|
3624
|
-
iterate = options.iterate;
|
3625
|
-
resultSelector = options.resultSelector || identity;
|
3626
|
-
scheduler = options.scheduler;
|
3627
|
-
}
|
3628
|
-
else if (resultSelectorOrObservable === undefined || isScheduler(resultSelectorOrObservable)) {
|
3629
|
-
initialState = initialStateOrOptions;
|
3630
|
-
resultSelector = identity;
|
3631
|
-
scheduler = resultSelectorOrObservable;
|
3632
|
-
}
|
3633
|
-
else {
|
3634
|
-
initialState = initialStateOrOptions;
|
3635
|
-
resultSelector = resultSelectorOrObservable;
|
3636
|
-
}
|
3637
|
-
return new Observable_Observable(function (subscriber) {
|
3638
|
-
var state = initialState;
|
3639
|
-
if (scheduler) {
|
3640
|
-
return scheduler.schedule(generate_dispatch, 0, {
|
3641
|
-
subscriber: subscriber,
|
3642
|
-
iterate: iterate,
|
3643
|
-
condition: condition,
|
3644
|
-
resultSelector: resultSelector,
|
3645
|
-
state: state
|
3646
|
-
});
|
3647
|
-
}
|
3648
|
-
do {
|
3649
|
-
if (condition) {
|
3650
|
-
var conditionResult = void 0;
|
3651
|
-
try {
|
3652
|
-
conditionResult = condition(state);
|
3653
|
-
}
|
3654
|
-
catch (err) {
|
3655
|
-
subscriber.error(err);
|
3656
|
-
return undefined;
|
3657
|
-
}
|
3658
|
-
if (!conditionResult) {
|
3659
|
-
subscriber.complete();
|
3660
|
-
break;
|
3661
|
-
}
|
3662
|
-
}
|
3663
|
-
var value = void 0;
|
3664
|
-
try {
|
3665
|
-
value = resultSelector(state);
|
3666
|
-
}
|
3667
|
-
catch (err) {
|
3668
|
-
subscriber.error(err);
|
3669
|
-
return undefined;
|
3670
|
-
}
|
3671
|
-
subscriber.next(value);
|
3672
|
-
if (subscriber.closed) {
|
3673
|
-
break;
|
3674
|
-
}
|
3675
|
-
try {
|
3676
|
-
state = iterate(state);
|
3677
|
-
}
|
3678
|
-
catch (err) {
|
3679
|
-
subscriber.error(err);
|
3680
|
-
return undefined;
|
3681
|
-
}
|
3682
|
-
} while (true);
|
3683
|
-
return undefined;
|
3684
|
-
});
|
3685
|
-
}
|
3686
|
-
function generate_dispatch(state) {
|
3687
|
-
var subscriber = state.subscriber, condition = state.condition;
|
3688
|
-
if (subscriber.closed) {
|
3689
|
-
return undefined;
|
3690
|
-
}
|
3691
|
-
if (state.needIterate) {
|
3692
|
-
try {
|
3693
|
-
state.state = state.iterate(state.state);
|
3694
|
-
}
|
3695
|
-
catch (err) {
|
3696
|
-
subscriber.error(err);
|
3697
|
-
return undefined;
|
3698
|
-
}
|
3699
|
-
}
|
3700
|
-
else {
|
3701
|
-
state.needIterate = true;
|
3702
|
-
}
|
3703
|
-
if (condition) {
|
3704
|
-
var conditionResult = void 0;
|
3705
|
-
try {
|
3706
|
-
conditionResult = condition(state.state);
|
3707
|
-
}
|
3708
|
-
catch (err) {
|
3709
|
-
subscriber.error(err);
|
3710
|
-
return undefined;
|
3711
|
-
}
|
3712
|
-
if (!conditionResult) {
|
3713
|
-
subscriber.complete();
|
3714
|
-
return undefined;
|
3715
|
-
}
|
3716
|
-
if (subscriber.closed) {
|
3717
|
-
return undefined;
|
3718
|
-
}
|
3719
|
-
}
|
3720
|
-
var value;
|
3721
|
-
try {
|
3722
|
-
value = state.resultSelector(state.state);
|
3723
|
-
}
|
3724
|
-
catch (err) {
|
3725
|
-
subscriber.error(err);
|
3726
|
-
return undefined;
|
3727
|
-
}
|
3728
|
-
if (subscriber.closed) {
|
3729
|
-
return undefined;
|
3730
|
-
}
|
3731
|
-
subscriber.next(value);
|
3732
|
-
if (subscriber.closed) {
|
3733
|
-
return undefined;
|
3734
|
-
}
|
3735
|
-
return this.schedule(state);
|
3736
|
-
}
|
3737
|
-
|
3738
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/iif.js
|
3739
|
-
/** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */
|
3740
|
-
|
3741
|
-
|
3742
|
-
function iif(condition, trueResult, falseResult) {
|
3743
|
-
if (trueResult === void 0) {
|
3744
|
-
trueResult = EMPTY;
|
3745
|
-
}
|
3746
|
-
if (falseResult === void 0) {
|
3747
|
-
falseResult = EMPTY;
|
3748
|
-
}
|
3749
|
-
return defer(function () { return condition() ? trueResult : falseResult; });
|
3750
|
-
}
|
3751
|
-
|
3752
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/isNumeric.js
|
3753
|
-
/** PURE_IMPORTS_START _isArray PURE_IMPORTS_END */
|
3754
|
-
|
3755
|
-
function isNumeric(val) {
|
3756
|
-
return !isArray(val) && (val - parseFloat(val) + 1) >= 0;
|
3757
|
-
}
|
3758
|
-
|
3759
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/interval.js
|
3760
|
-
/** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric PURE_IMPORTS_END */
|
3761
|
-
|
3762
|
-
|
3763
|
-
|
3764
|
-
function interval(period, scheduler) {
|
3765
|
-
if (period === void 0) {
|
3766
|
-
period = 0;
|
3767
|
-
}
|
3768
|
-
if (scheduler === void 0) {
|
3769
|
-
scheduler = async_async;
|
3770
|
-
}
|
3771
|
-
if (!isNumeric(period) || period < 0) {
|
3772
|
-
period = 0;
|
3773
|
-
}
|
3774
|
-
if (!scheduler || typeof scheduler.schedule !== 'function') {
|
3775
|
-
scheduler = async_async;
|
3776
|
-
}
|
3777
|
-
return new Observable_Observable(function (subscriber) {
|
3778
|
-
subscriber.add(scheduler.schedule(interval_dispatch, period, { subscriber: subscriber, counter: 0, period: period }));
|
3779
|
-
return subscriber;
|
3780
|
-
});
|
3781
|
-
}
|
3782
|
-
function interval_dispatch(state) {
|
3783
|
-
var subscriber = state.subscriber, counter = state.counter, period = state.period;
|
3784
|
-
subscriber.next(counter);
|
3785
|
-
this.schedule({ subscriber: subscriber, counter: counter + 1, period: period }, period);
|
3786
|
-
}
|
3787
|
-
|
3788
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/merge.js
|
3789
|
-
/** PURE_IMPORTS_START _Observable,_util_isScheduler,_operators_mergeAll,_fromArray PURE_IMPORTS_END */
|
3790
|
-
|
3791
|
-
|
3792
|
-
|
3793
|
-
|
3794
|
-
function merge() {
|
3795
|
-
var observables = [];
|
3796
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3797
|
-
observables[_i] = arguments[_i];
|
3798
|
-
}
|
3799
|
-
var concurrent = Number.POSITIVE_INFINITY;
|
3800
|
-
var scheduler = null;
|
3801
|
-
var last = observables[observables.length - 1];
|
3802
|
-
if (isScheduler(last)) {
|
3803
|
-
scheduler = observables.pop();
|
3804
|
-
if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {
|
3805
|
-
concurrent = observables.pop();
|
3806
|
-
}
|
3807
|
-
}
|
3808
|
-
else if (typeof last === 'number') {
|
3809
|
-
concurrent = observables.pop();
|
3810
|
-
}
|
3811
|
-
if (scheduler === null && observables.length === 1 && observables[0] instanceof Observable_Observable) {
|
3812
|
-
return observables[0];
|
3813
|
-
}
|
3814
|
-
return mergeAll(concurrent)(fromArray(observables, scheduler));
|
3815
|
-
}
|
3816
|
-
|
3817
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/never.js
|
3818
|
-
/** PURE_IMPORTS_START _Observable,_util_noop PURE_IMPORTS_END */
|
3819
|
-
|
3820
|
-
|
3821
|
-
var NEVER = /*@__PURE__*/ new Observable_Observable(noop);
|
3822
|
-
function never() {
|
3823
|
-
return NEVER;
|
3824
|
-
}
|
3825
|
-
|
3826
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/onErrorResumeNext.js
|
3827
|
-
/** PURE_IMPORTS_START _Observable,_from,_util_isArray,_empty PURE_IMPORTS_END */
|
3828
|
-
|
3829
|
-
|
3830
|
-
|
3831
|
-
|
3832
|
-
function onErrorResumeNext() {
|
3833
|
-
var sources = [];
|
3834
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3835
|
-
sources[_i] = arguments[_i];
|
3836
|
-
}
|
3837
|
-
if (sources.length === 0) {
|
3838
|
-
return EMPTY;
|
3839
|
-
}
|
3840
|
-
var first = sources[0], remainder = sources.slice(1);
|
3841
|
-
if (sources.length === 1 && isArray(first)) {
|
3842
|
-
return onErrorResumeNext.apply(void 0, first);
|
3843
|
-
}
|
3844
|
-
return new Observable_Observable(function (subscriber) {
|
3845
|
-
var subNext = function () { return subscriber.add(onErrorResumeNext.apply(void 0, remainder).subscribe(subscriber)); };
|
3846
|
-
return from(first).subscribe({
|
3847
|
-
next: function (value) { subscriber.next(value); },
|
3848
|
-
error: subNext,
|
3849
|
-
complete: subNext,
|
3850
|
-
});
|
3851
|
-
});
|
3852
|
-
}
|
3853
|
-
|
3854
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/pairs.js
|
3855
|
-
/** PURE_IMPORTS_START _Observable,_Subscription PURE_IMPORTS_END */
|
3856
|
-
|
3857
|
-
|
3858
|
-
function pairs(obj, scheduler) {
|
3859
|
-
if (!scheduler) {
|
3860
|
-
return new Observable_Observable(function (subscriber) {
|
3861
|
-
var keys = Object.keys(obj);
|
3862
|
-
for (var i = 0; i < keys.length && !subscriber.closed; i++) {
|
3863
|
-
var key = keys[i];
|
3864
|
-
if (obj.hasOwnProperty(key)) {
|
3865
|
-
subscriber.next([key, obj[key]]);
|
3866
|
-
}
|
3867
|
-
}
|
3868
|
-
subscriber.complete();
|
3869
|
-
});
|
3870
|
-
}
|
3871
|
-
else {
|
3872
|
-
return new Observable_Observable(function (subscriber) {
|
3873
|
-
var keys = Object.keys(obj);
|
3874
|
-
var subscription = new Subscription_Subscription();
|
3875
|
-
subscription.add(scheduler.schedule(pairs_dispatch, 0, { keys: keys, index: 0, subscriber: subscriber, subscription: subscription, obj: obj }));
|
3876
|
-
return subscription;
|
3877
|
-
});
|
3878
|
-
}
|
3879
|
-
}
|
3880
|
-
function pairs_dispatch(state) {
|
3881
|
-
var keys = state.keys, index = state.index, subscriber = state.subscriber, subscription = state.subscription, obj = state.obj;
|
3882
|
-
if (!subscriber.closed) {
|
3883
|
-
if (index < keys.length) {
|
3884
|
-
var key = keys[index];
|
3885
|
-
subscriber.next([key, obj[key]]);
|
3886
|
-
subscription.add(this.schedule({ keys: keys, index: index + 1, subscriber: subscriber, subscription: subscription, obj: obj }));
|
3887
|
-
}
|
3888
|
-
else {
|
3889
|
-
subscriber.complete();
|
3890
|
-
}
|
3891
|
-
}
|
3892
|
-
}
|
3893
|
-
|
3894
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/util/not.js
|
3895
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
3896
|
-
function not(pred, thisArg) {
|
3897
|
-
function notPred() {
|
3898
|
-
return !(notPred.pred.apply(notPred.thisArg, arguments));
|
3899
|
-
}
|
3900
|
-
notPred.pred = pred;
|
3901
|
-
notPred.thisArg = thisArg;
|
3902
|
-
return notPred;
|
3903
|
-
}
|
3904
|
-
|
3905
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/operators/filter.js
|
3906
|
-
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
3907
|
-
|
3908
|
-
|
3909
|
-
function filter(predicate, thisArg) {
|
3910
|
-
return function filterOperatorFunction(source) {
|
3911
|
-
return source.lift(new FilterOperator(predicate, thisArg));
|
3912
|
-
};
|
3913
|
-
}
|
3914
|
-
var FilterOperator = /*@__PURE__*/ (function () {
|
3915
|
-
function FilterOperator(predicate, thisArg) {
|
3916
|
-
this.predicate = predicate;
|
3917
|
-
this.thisArg = thisArg;
|
3918
|
-
}
|
3919
|
-
FilterOperator.prototype.call = function (subscriber, source) {
|
3920
|
-
return source.subscribe(new filter_FilterSubscriber(subscriber, this.predicate, this.thisArg));
|
3921
|
-
};
|
3922
|
-
return FilterOperator;
|
3923
|
-
}());
|
3924
|
-
var filter_FilterSubscriber = /*@__PURE__*/ (function (_super) {
|
3925
|
-
__extends(FilterSubscriber, _super);
|
3926
|
-
function FilterSubscriber(destination, predicate, thisArg) {
|
3927
|
-
var _this = _super.call(this, destination) || this;
|
3928
|
-
_this.predicate = predicate;
|
3929
|
-
_this.thisArg = thisArg;
|
3930
|
-
_this.count = 0;
|
3931
|
-
return _this;
|
3932
|
-
}
|
3933
|
-
FilterSubscriber.prototype._next = function (value) {
|
3934
|
-
var result;
|
3935
|
-
try {
|
3936
|
-
result = this.predicate.call(this.thisArg, value, this.count++);
|
3937
|
-
}
|
3938
|
-
catch (err) {
|
3939
|
-
this.destination.error(err);
|
3940
|
-
return;
|
3941
|
-
}
|
3942
|
-
if (result) {
|
3943
|
-
this.destination.next(value);
|
3944
|
-
}
|
3945
|
-
};
|
3946
|
-
return FilterSubscriber;
|
3947
|
-
}(Subscriber_Subscriber));
|
3948
|
-
|
3949
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/partition.js
|
3950
|
-
/** PURE_IMPORTS_START _util_not,_util_subscribeTo,_operators_filter,_Observable PURE_IMPORTS_END */
|
3951
|
-
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
function partition(source, predicate, thisArg) {
|
3956
|
-
return [
|
3957
|
-
filter(predicate, thisArg)(new Observable_Observable(subscribeTo(source))),
|
3958
|
-
filter(not(predicate, thisArg))(new Observable_Observable(subscribeTo(source)))
|
3959
|
-
];
|
3960
|
-
}
|
3961
|
-
|
3962
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/race.js
|
3963
|
-
/** PURE_IMPORTS_START tslib,_util_isArray,_fromArray,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */
|
3964
|
-
|
3965
|
-
|
3966
|
-
|
3967
|
-
|
3968
|
-
|
3969
|
-
function race() {
|
3970
|
-
var observables = [];
|
3971
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
3972
|
-
observables[_i] = arguments[_i];
|
3973
|
-
}
|
3974
|
-
if (observables.length === 1) {
|
3975
|
-
if (isArray(observables[0])) {
|
3976
|
-
observables = observables[0];
|
3977
|
-
}
|
3978
|
-
else {
|
3979
|
-
return observables[0];
|
3980
|
-
}
|
3981
|
-
}
|
3982
|
-
return fromArray(observables, undefined).lift(new RaceOperator());
|
3983
|
-
}
|
3984
|
-
var RaceOperator = /*@__PURE__*/ (function () {
|
3985
|
-
function RaceOperator() {
|
3986
|
-
}
|
3987
|
-
RaceOperator.prototype.call = function (subscriber, source) {
|
3988
|
-
return source.subscribe(new race_RaceSubscriber(subscriber));
|
3989
|
-
};
|
3990
|
-
return RaceOperator;
|
3991
|
-
}());
|
3992
|
-
|
3993
|
-
var race_RaceSubscriber = /*@__PURE__*/ (function (_super) {
|
3994
|
-
__extends(RaceSubscriber, _super);
|
3995
|
-
function RaceSubscriber(destination) {
|
3996
|
-
var _this = _super.call(this, destination) || this;
|
3997
|
-
_this.hasFirst = false;
|
3998
|
-
_this.observables = [];
|
3999
|
-
_this.subscriptions = [];
|
4000
|
-
return _this;
|
4001
|
-
}
|
4002
|
-
RaceSubscriber.prototype._next = function (observable) {
|
4003
|
-
this.observables.push(observable);
|
4004
|
-
};
|
4005
|
-
RaceSubscriber.prototype._complete = function () {
|
4006
|
-
var observables = this.observables;
|
4007
|
-
var len = observables.length;
|
4008
|
-
if (len === 0) {
|
4009
|
-
this.destination.complete();
|
4010
|
-
}
|
4011
|
-
else {
|
4012
|
-
for (var i = 0; i < len && !this.hasFirst; i++) {
|
4013
|
-
var observable = observables[i];
|
4014
|
-
var subscription = subscribeToResult(this, observable, observable, i);
|
4015
|
-
if (this.subscriptions) {
|
4016
|
-
this.subscriptions.push(subscription);
|
4017
|
-
}
|
4018
|
-
this.add(subscription);
|
4019
|
-
}
|
4020
|
-
this.observables = null;
|
4021
|
-
}
|
4022
|
-
};
|
4023
|
-
RaceSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
|
4024
|
-
if (!this.hasFirst) {
|
4025
|
-
this.hasFirst = true;
|
4026
|
-
for (var i = 0; i < this.subscriptions.length; i++) {
|
4027
|
-
if (i !== outerIndex) {
|
4028
|
-
var subscription = this.subscriptions[i];
|
4029
|
-
subscription.unsubscribe();
|
4030
|
-
this.remove(subscription);
|
4031
|
-
}
|
4032
|
-
}
|
4033
|
-
this.subscriptions = null;
|
4034
|
-
}
|
4035
|
-
this.destination.next(innerValue);
|
4036
|
-
};
|
4037
|
-
return RaceSubscriber;
|
4038
|
-
}(OuterSubscriber_OuterSubscriber));
|
4039
|
-
|
4040
|
-
|
4041
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/range.js
|
4042
|
-
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
4043
|
-
|
4044
|
-
function range(start, count, scheduler) {
|
4045
|
-
if (start === void 0) {
|
4046
|
-
start = 0;
|
4047
|
-
}
|
4048
|
-
return new Observable_Observable(function (subscriber) {
|
4049
|
-
if (count === undefined) {
|
4050
|
-
count = start;
|
4051
|
-
start = 0;
|
4052
|
-
}
|
4053
|
-
var index = 0;
|
4054
|
-
var current = start;
|
4055
|
-
if (scheduler) {
|
4056
|
-
return scheduler.schedule(range_dispatch, 0, {
|
4057
|
-
index: index, count: count, start: start, subscriber: subscriber
|
4058
|
-
});
|
4059
|
-
}
|
4060
|
-
else {
|
4061
|
-
do {
|
4062
|
-
if (index++ >= count) {
|
4063
|
-
subscriber.complete();
|
4064
|
-
break;
|
4065
|
-
}
|
4066
|
-
subscriber.next(current++);
|
4067
|
-
if (subscriber.closed) {
|
4068
|
-
break;
|
4069
|
-
}
|
4070
|
-
} while (true);
|
4071
|
-
}
|
4072
|
-
return undefined;
|
4073
|
-
});
|
4074
|
-
}
|
4075
|
-
function range_dispatch(state) {
|
4076
|
-
var start = state.start, index = state.index, count = state.count, subscriber = state.subscriber;
|
4077
|
-
if (index >= count) {
|
4078
|
-
subscriber.complete();
|
4079
|
-
return;
|
4080
|
-
}
|
4081
|
-
subscriber.next(start);
|
4082
|
-
if (subscriber.closed) {
|
4083
|
-
return;
|
4084
|
-
}
|
4085
|
-
state.index = index + 1;
|
4086
|
-
state.start = start + 1;
|
4087
|
-
this.schedule(state);
|
4088
|
-
}
|
4089
|
-
|
4090
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/timer.js
|
4091
|
-
/** PURE_IMPORTS_START _Observable,_scheduler_async,_util_isNumeric,_util_isScheduler PURE_IMPORTS_END */
|
4092
|
-
|
4093
|
-
|
4094
|
-
|
4095
|
-
|
4096
|
-
function timer(dueTime, periodOrScheduler, scheduler) {
|
4097
|
-
if (dueTime === void 0) {
|
4098
|
-
dueTime = 0;
|
4099
|
-
}
|
4100
|
-
var period = -1;
|
4101
|
-
if (isNumeric(periodOrScheduler)) {
|
4102
|
-
period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);
|
4103
|
-
}
|
4104
|
-
else if (isScheduler(periodOrScheduler)) {
|
4105
|
-
scheduler = periodOrScheduler;
|
4106
|
-
}
|
4107
|
-
if (!isScheduler(scheduler)) {
|
4108
|
-
scheduler = async_async;
|
4109
|
-
}
|
4110
|
-
return new Observable_Observable(function (subscriber) {
|
4111
|
-
var due = isNumeric(dueTime)
|
4112
|
-
? dueTime
|
4113
|
-
: (+dueTime - scheduler.now());
|
4114
|
-
return scheduler.schedule(timer_dispatch, due, {
|
4115
|
-
index: 0, period: period, subscriber: subscriber
|
4116
|
-
});
|
4117
|
-
});
|
4118
|
-
}
|
4119
|
-
function timer_dispatch(state) {
|
4120
|
-
var index = state.index, period = state.period, subscriber = state.subscriber;
|
4121
|
-
subscriber.next(index);
|
4122
|
-
if (subscriber.closed) {
|
4123
|
-
return;
|
4124
|
-
}
|
4125
|
-
else if (period === -1) {
|
4126
|
-
return subscriber.complete();
|
4127
|
-
}
|
4128
|
-
state.index = index + 1;
|
4129
|
-
this.schedule(state, period);
|
4130
|
-
}
|
4131
|
-
|
4132
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/using.js
|
4133
|
-
/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */
|
4134
|
-
|
4135
|
-
|
4136
|
-
|
4137
|
-
function using(resourceFactory, observableFactory) {
|
4138
|
-
return new Observable_Observable(function (subscriber) {
|
4139
|
-
var resource;
|
4140
|
-
try {
|
4141
|
-
resource = resourceFactory();
|
4142
|
-
}
|
4143
|
-
catch (err) {
|
4144
|
-
subscriber.error(err);
|
4145
|
-
return undefined;
|
4146
|
-
}
|
4147
|
-
var result;
|
4148
|
-
try {
|
4149
|
-
result = observableFactory(resource);
|
4150
|
-
}
|
4151
|
-
catch (err) {
|
4152
|
-
subscriber.error(err);
|
4153
|
-
return undefined;
|
4154
|
-
}
|
4155
|
-
var source = result ? from(result) : EMPTY;
|
4156
|
-
var subscription = source.subscribe(subscriber);
|
4157
|
-
return function () {
|
4158
|
-
subscription.unsubscribe();
|
4159
|
-
if (resource) {
|
4160
|
-
resource.unsubscribe();
|
4161
|
-
}
|
4162
|
-
};
|
4163
|
-
});
|
4164
|
-
}
|
4165
|
-
|
4166
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/internal/observable/zip.js
|
4167
|
-
/** PURE_IMPORTS_START tslib,_fromArray,_util_isArray,_Subscriber,_OuterSubscriber,_util_subscribeToResult,_.._internal_symbol_iterator PURE_IMPORTS_END */
|
4168
|
-
|
4169
|
-
|
4170
|
-
|
4171
|
-
|
4172
|
-
|
4173
|
-
|
4174
|
-
|
4175
|
-
function zip() {
|
4176
|
-
var observables = [];
|
4177
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
4178
|
-
observables[_i] = arguments[_i];
|
4179
|
-
}
|
4180
|
-
var resultSelector = observables[observables.length - 1];
|
4181
|
-
if (typeof resultSelector === 'function') {
|
4182
|
-
observables.pop();
|
4183
|
-
}
|
4184
|
-
return fromArray(observables, undefined).lift(new ZipOperator(resultSelector));
|
4185
|
-
}
|
4186
|
-
var ZipOperator = /*@__PURE__*/ (function () {
|
4187
|
-
function ZipOperator(resultSelector) {
|
4188
|
-
this.resultSelector = resultSelector;
|
4189
|
-
}
|
4190
|
-
ZipOperator.prototype.call = function (subscriber, source) {
|
4191
|
-
return source.subscribe(new zip_ZipSubscriber(subscriber, this.resultSelector));
|
4192
|
-
};
|
4193
|
-
return ZipOperator;
|
4194
|
-
}());
|
4195
|
-
|
4196
|
-
var zip_ZipSubscriber = /*@__PURE__*/ (function (_super) {
|
4197
|
-
__extends(ZipSubscriber, _super);
|
4198
|
-
function ZipSubscriber(destination, resultSelector, values) {
|
4199
|
-
if (values === void 0) {
|
4200
|
-
values = Object.create(null);
|
4201
|
-
}
|
4202
|
-
var _this = _super.call(this, destination) || this;
|
4203
|
-
_this.iterators = [];
|
4204
|
-
_this.active = 0;
|
4205
|
-
_this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : null;
|
4206
|
-
_this.values = values;
|
4207
|
-
return _this;
|
4208
|
-
}
|
4209
|
-
ZipSubscriber.prototype._next = function (value) {
|
4210
|
-
var iterators = this.iterators;
|
4211
|
-
if (isArray(value)) {
|
4212
|
-
iterators.push(new zip_StaticArrayIterator(value));
|
4213
|
-
}
|
4214
|
-
else if (typeof value[iterator_iterator] === 'function') {
|
4215
|
-
iterators.push(new StaticIterator(value[iterator_iterator]()));
|
4216
|
-
}
|
4217
|
-
else {
|
4218
|
-
iterators.push(new zip_ZipBufferIterator(this.destination, this, value));
|
4219
|
-
}
|
4220
|
-
};
|
4221
|
-
ZipSubscriber.prototype._complete = function () {
|
4222
|
-
var iterators = this.iterators;
|
4223
|
-
var len = iterators.length;
|
4224
|
-
this.unsubscribe();
|
4225
|
-
if (len === 0) {
|
4226
|
-
this.destination.complete();
|
4227
|
-
return;
|
4228
|
-
}
|
4229
|
-
this.active = len;
|
4230
|
-
for (var i = 0; i < len; i++) {
|
4231
|
-
var iterator = iterators[i];
|
4232
|
-
if (iterator.stillUnsubscribed) {
|
4233
|
-
var destination = this.destination;
|
4234
|
-
destination.add(iterator.subscribe(iterator, i));
|
4235
|
-
}
|
4236
|
-
else {
|
4237
|
-
this.active--;
|
4238
|
-
}
|
4239
|
-
}
|
4240
|
-
};
|
4241
|
-
ZipSubscriber.prototype.notifyInactive = function () {
|
4242
|
-
this.active--;
|
4243
|
-
if (this.active === 0) {
|
4244
|
-
this.destination.complete();
|
4245
|
-
}
|
4246
|
-
};
|
4247
|
-
ZipSubscriber.prototype.checkIterators = function () {
|
4248
|
-
var iterators = this.iterators;
|
4249
|
-
var len = iterators.length;
|
4250
|
-
var destination = this.destination;
|
4251
|
-
for (var i = 0; i < len; i++) {
|
4252
|
-
var iterator = iterators[i];
|
4253
|
-
if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {
|
4254
|
-
return;
|
4255
|
-
}
|
4256
|
-
}
|
4257
|
-
var shouldComplete = false;
|
4258
|
-
var args = [];
|
4259
|
-
for (var i = 0; i < len; i++) {
|
4260
|
-
var iterator = iterators[i];
|
4261
|
-
var result = iterator.next();
|
4262
|
-
if (iterator.hasCompleted()) {
|
4263
|
-
shouldComplete = true;
|
4264
|
-
}
|
4265
|
-
if (result.done) {
|
4266
|
-
destination.complete();
|
4267
|
-
return;
|
4268
|
-
}
|
4269
|
-
args.push(result.value);
|
4270
|
-
}
|
4271
|
-
if (this.resultSelector) {
|
4272
|
-
this._tryresultSelector(args);
|
4273
|
-
}
|
4274
|
-
else {
|
4275
|
-
destination.next(args);
|
4276
|
-
}
|
4277
|
-
if (shouldComplete) {
|
4278
|
-
destination.complete();
|
4279
|
-
}
|
4280
|
-
};
|
4281
|
-
ZipSubscriber.prototype._tryresultSelector = function (args) {
|
4282
|
-
var result;
|
4283
|
-
try {
|
4284
|
-
result = this.resultSelector.apply(this, args);
|
4285
|
-
}
|
4286
|
-
catch (err) {
|
4287
|
-
this.destination.error(err);
|
4288
|
-
return;
|
4289
|
-
}
|
4290
|
-
this.destination.next(result);
|
4291
|
-
};
|
4292
|
-
return ZipSubscriber;
|
4293
|
-
}(Subscriber_Subscriber));
|
4294
|
-
|
4295
|
-
var StaticIterator = /*@__PURE__*/ (function () {
|
4296
|
-
function StaticIterator(iterator) {
|
4297
|
-
this.iterator = iterator;
|
4298
|
-
this.nextResult = iterator.next();
|
4299
|
-
}
|
4300
|
-
StaticIterator.prototype.hasValue = function () {
|
4301
|
-
return true;
|
4302
|
-
};
|
4303
|
-
StaticIterator.prototype.next = function () {
|
4304
|
-
var result = this.nextResult;
|
4305
|
-
this.nextResult = this.iterator.next();
|
4306
|
-
return result;
|
4307
|
-
};
|
4308
|
-
StaticIterator.prototype.hasCompleted = function () {
|
4309
|
-
var nextResult = this.nextResult;
|
4310
|
-
return nextResult && nextResult.done;
|
4311
|
-
};
|
4312
|
-
return StaticIterator;
|
4313
|
-
}());
|
4314
|
-
var zip_StaticArrayIterator = /*@__PURE__*/ (function () {
|
4315
|
-
function StaticArrayIterator(array) {
|
4316
|
-
this.array = array;
|
4317
|
-
this.index = 0;
|
4318
|
-
this.length = 0;
|
4319
|
-
this.length = array.length;
|
4320
|
-
}
|
4321
|
-
StaticArrayIterator.prototype[iterator_iterator] = function () {
|
4322
|
-
return this;
|
4323
|
-
};
|
4324
|
-
StaticArrayIterator.prototype.next = function (value) {
|
4325
|
-
var i = this.index++;
|
4326
|
-
var array = this.array;
|
4327
|
-
return i < this.length ? { value: array[i], done: false } : { value: null, done: true };
|
4328
|
-
};
|
4329
|
-
StaticArrayIterator.prototype.hasValue = function () {
|
4330
|
-
return this.array.length > this.index;
|
4331
|
-
};
|
4332
|
-
StaticArrayIterator.prototype.hasCompleted = function () {
|
4333
|
-
return this.array.length === this.index;
|
4334
|
-
};
|
4335
|
-
return StaticArrayIterator;
|
4336
|
-
}());
|
4337
|
-
var zip_ZipBufferIterator = /*@__PURE__*/ (function (_super) {
|
4338
|
-
__extends(ZipBufferIterator, _super);
|
4339
|
-
function ZipBufferIterator(destination, parent, observable) {
|
4340
|
-
var _this = _super.call(this, destination) || this;
|
4341
|
-
_this.parent = parent;
|
4342
|
-
_this.observable = observable;
|
4343
|
-
_this.stillUnsubscribed = true;
|
4344
|
-
_this.buffer = [];
|
4345
|
-
_this.isComplete = false;
|
4346
|
-
return _this;
|
4347
|
-
}
|
4348
|
-
ZipBufferIterator.prototype[iterator_iterator] = function () {
|
4349
|
-
return this;
|
4350
|
-
};
|
4351
|
-
ZipBufferIterator.prototype.next = function () {
|
4352
|
-
var buffer = this.buffer;
|
4353
|
-
if (buffer.length === 0 && this.isComplete) {
|
4354
|
-
return { value: null, done: true };
|
4355
|
-
}
|
4356
|
-
else {
|
4357
|
-
return { value: buffer.shift(), done: false };
|
4358
|
-
}
|
4359
|
-
};
|
4360
|
-
ZipBufferIterator.prototype.hasValue = function () {
|
4361
|
-
return this.buffer.length > 0;
|
4362
|
-
};
|
4363
|
-
ZipBufferIterator.prototype.hasCompleted = function () {
|
4364
|
-
return this.buffer.length === 0 && this.isComplete;
|
4365
|
-
};
|
4366
|
-
ZipBufferIterator.prototype.notifyComplete = function () {
|
4367
|
-
if (this.buffer.length > 0) {
|
4368
|
-
this.isComplete = true;
|
4369
|
-
this.parent.notifyInactive();
|
4370
|
-
}
|
4371
|
-
else {
|
4372
|
-
this.destination.complete();
|
4373
|
-
}
|
4374
|
-
};
|
4375
|
-
ZipBufferIterator.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
|
4376
|
-
this.buffer.push(innerValue);
|
4377
|
-
this.parent.checkIterators();
|
4378
|
-
};
|
4379
|
-
ZipBufferIterator.prototype.subscribe = function (value, index) {
|
4380
|
-
return subscribeToResult(this, this.observable, this, index);
|
4381
|
-
};
|
4382
|
-
return ZipBufferIterator;
|
4383
|
-
}(OuterSubscriber_OuterSubscriber));
|
4384
|
-
|
4385
|
-
// CONCATENATED MODULE: ./node_modules/rxjs/_esm5/index.js
|
4386
|
-
/* concated harmony reexport Observable */__webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable_Observable; });
|
4387
|
-
/* concated harmony reexport ConnectableObservable */__webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return ConnectableObservable_ConnectableObservable; });
|
4388
|
-
/* concated harmony reexport GroupedObservable */__webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return groupBy_GroupedObservable; });
|
4389
|
-
/* concated harmony reexport observable */__webpack_require__.d(__webpack_exports__, "observable", function() { return observable_observable; });
|
4390
|
-
/* concated harmony reexport Subject */__webpack_require__.d(__webpack_exports__, "Subject", function() { return Subject_Subject; });
|
4391
|
-
/* concated harmony reexport BehaviorSubject */__webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return BehaviorSubject_BehaviorSubject; });
|
4392
|
-
/* concated harmony reexport ReplaySubject */__webpack_require__.d(__webpack_exports__, "ReplaySubject", function() { return ReplaySubject_ReplaySubject; });
|
4393
|
-
/* concated harmony reexport AsyncSubject */__webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return AsyncSubject_AsyncSubject; });
|
4394
|
-
/* concated harmony reexport asapScheduler */__webpack_require__.d(__webpack_exports__, "asapScheduler", function() { return asap; });
|
4395
|
-
/* concated harmony reexport asyncScheduler */__webpack_require__.d(__webpack_exports__, "asyncScheduler", function() { return async_async; });
|
4396
|
-
/* concated harmony reexport queueScheduler */__webpack_require__.d(__webpack_exports__, "queueScheduler", function() { return queue; });
|
4397
|
-
/* concated harmony reexport animationFrameScheduler */__webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function() { return animationFrame; });
|
4398
|
-
/* concated harmony reexport VirtualTimeScheduler */__webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function() { return VirtualTimeScheduler_VirtualTimeScheduler; });
|
4399
|
-
/* concated harmony reexport VirtualAction */__webpack_require__.d(__webpack_exports__, "VirtualAction", function() { return VirtualTimeScheduler_VirtualAction; });
|
4400
|
-
/* concated harmony reexport Scheduler */__webpack_require__.d(__webpack_exports__, "Scheduler", function() { return Scheduler; });
|
4401
|
-
/* concated harmony reexport Subscription */__webpack_require__.d(__webpack_exports__, "Subscription", function() { return Subscription_Subscription; });
|
4402
|
-
/* concated harmony reexport Subscriber */__webpack_require__.d(__webpack_exports__, "Subscriber", function() { return Subscriber_Subscriber; });
|
4403
|
-
/* concated harmony reexport Notification */__webpack_require__.d(__webpack_exports__, "Notification", function() { return Notification_Notification; });
|
4404
|
-
/* concated harmony reexport NotificationKind */__webpack_require__.d(__webpack_exports__, "NotificationKind", function() { return NotificationKind; });
|
4405
|
-
/* concated harmony reexport pipe */__webpack_require__.d(__webpack_exports__, "pipe", function() { return pipe; });
|
4406
|
-
/* concated harmony reexport noop */__webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
|
4407
|
-
/* concated harmony reexport identity */__webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
|
4408
|
-
/* concated harmony reexport isObservable */__webpack_require__.d(__webpack_exports__, "isObservable", function() { return isObservable; });
|
4409
|
-
/* concated harmony reexport ArgumentOutOfRangeError */__webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function() { return ArgumentOutOfRangeError; });
|
4410
|
-
/* concated harmony reexport EmptyError */__webpack_require__.d(__webpack_exports__, "EmptyError", function() { return EmptyError; });
|
4411
|
-
/* concated harmony reexport ObjectUnsubscribedError */__webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function() { return ObjectUnsubscribedError; });
|
4412
|
-
/* concated harmony reexport UnsubscriptionError */__webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function() { return UnsubscriptionError; });
|
4413
|
-
/* concated harmony reexport TimeoutError */__webpack_require__.d(__webpack_exports__, "TimeoutError", function() { return TimeoutError; });
|
4414
|
-
/* concated harmony reexport bindCallback */__webpack_require__.d(__webpack_exports__, "bindCallback", function() { return bindCallback; });
|
4415
|
-
/* concated harmony reexport bindNodeCallback */__webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return bindNodeCallback; });
|
4416
|
-
/* concated harmony reexport combineLatest */__webpack_require__.d(__webpack_exports__, "combineLatest", function() { return combineLatest; });
|
4417
|
-
/* concated harmony reexport concat */__webpack_require__.d(__webpack_exports__, "concat", function() { return concat; });
|
4418
|
-
/* concated harmony reexport defer */__webpack_require__.d(__webpack_exports__, "defer", function() { return defer; });
|
4419
|
-
/* concated harmony reexport empty */__webpack_require__.d(__webpack_exports__, "empty", function() { return empty_empty; });
|
4420
|
-
/* concated harmony reexport forkJoin */__webpack_require__.d(__webpack_exports__, "forkJoin", function() { return forkJoin; });
|
4421
|
-
/* concated harmony reexport from */__webpack_require__.d(__webpack_exports__, "from", function() { return from; });
|
4422
|
-
/* concated harmony reexport fromEvent */__webpack_require__.d(__webpack_exports__, "fromEvent", function() { return fromEvent; });
|
4423
|
-
/* concated harmony reexport fromEventPattern */__webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return fromEventPattern; });
|
4424
|
-
/* concated harmony reexport generate */__webpack_require__.d(__webpack_exports__, "generate", function() { return generate; });
|
4425
|
-
/* concated harmony reexport iif */__webpack_require__.d(__webpack_exports__, "iif", function() { return iif; });
|
4426
|
-
/* concated harmony reexport interval */__webpack_require__.d(__webpack_exports__, "interval", function() { return interval; });
|
4427
|
-
/* concated harmony reexport merge */__webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
|
4428
|
-
/* concated harmony reexport never */__webpack_require__.d(__webpack_exports__, "never", function() { return never; });
|
4429
|
-
/* concated harmony reexport of */__webpack_require__.d(__webpack_exports__, "of", function() { return of; });
|
4430
|
-
/* concated harmony reexport onErrorResumeNext */__webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return onErrorResumeNext; });
|
4431
|
-
/* concated harmony reexport pairs */__webpack_require__.d(__webpack_exports__, "pairs", function() { return pairs; });
|
4432
|
-
/* concated harmony reexport partition */__webpack_require__.d(__webpack_exports__, "partition", function() { return partition; });
|
4433
|
-
/* concated harmony reexport race */__webpack_require__.d(__webpack_exports__, "race", function() { return race; });
|
4434
|
-
/* concated harmony reexport range */__webpack_require__.d(__webpack_exports__, "range", function() { return range; });
|
4435
|
-
/* concated harmony reexport throwError */__webpack_require__.d(__webpack_exports__, "throwError", function() { return throwError; });
|
4436
|
-
/* concated harmony reexport timer */__webpack_require__.d(__webpack_exports__, "timer", function() { return timer; });
|
4437
|
-
/* concated harmony reexport using */__webpack_require__.d(__webpack_exports__, "using", function() { return using; });
|
4438
|
-
/* concated harmony reexport zip */__webpack_require__.d(__webpack_exports__, "zip", function() { return zip; });
|
4439
|
-
/* concated harmony reexport scheduled */__webpack_require__.d(__webpack_exports__, "scheduled", function() { return scheduled; });
|
4440
|
-
/* concated harmony reexport EMPTY */__webpack_require__.d(__webpack_exports__, "EMPTY", function() { return EMPTY; });
|
4441
|
-
/* concated harmony reexport NEVER */__webpack_require__.d(__webpack_exports__, "NEVER", function() { return NEVER; });
|
4442
|
-
/* concated harmony reexport config */__webpack_require__.d(__webpack_exports__, "config", function() { return config; });
|
4443
|
-
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
4444
|
-
|
4445
|
-
|
4446
|
-
|
4447
|
-
|
4448
|
-
|
4449
|
-
|
4450
|
-
|
4451
|
-
|
4452
|
-
|
4453
|
-
|
4454
|
-
|
4455
|
-
|
4456
|
-
|
4457
|
-
|
4458
|
-
|
4459
|
-
|
4460
|
-
|
4461
|
-
|
4462
|
-
|
4463
|
-
|
4464
|
-
|
4465
|
-
|
4466
|
-
|
4467
|
-
|
4468
|
-
|
4469
|
-
|
4470
|
-
|
4471
|
-
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4479
|
-
|
4480
|
-
|
4481
|
-
|
4482
|
-
|
4483
|
-
|
4484
|
-
|
4485
|
-
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4490
|
-
|
4491
|
-
|
4492
|
-
|
4493
|
-
|
4494
|
-
|
4495
|
-
|
4496
|
-
|
4497
|
-
|
4498
|
-
|
4499
|
-
|
4500
|
-
|
4501
|
-
/***/ })
|
4502
|
-
|
4503
|
-
/******/ });
|
4504
|
-
//# sourceMappingURL=app.js.map
|