reactfire 4.2.3-exp.c7357da → 4.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/SuspenseSubject.d.ts +5 -0
- package/dist/auth.d.ts +1 -1
- package/dist/firebaseApp.d.ts +1 -2
- package/dist/firestore.d.ts +3 -3
- package/dist/index.js +2204 -2214
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +4 -122
- package/dist/index.umd.cjs.map +1 -1
- package/dist/performance.d.ts +1 -1
- package/dist/sdk.d.ts +9 -9
- package/dist/storage.d.ts +2 -3
- package/dist/useObservable.d.ts +18 -2
- package/package.json +17 -15
- package/src/SuspenseSubject.ts +41 -1
- package/src/auth.tsx +20 -3
- package/src/firebaseApp.tsx +3 -1
- package/src/firestore.tsx +4 -4
- package/src/performance.tsx +7 -6
- package/src/sdk.tsx +1 -1
- package/src/storage.tsx +3 -3
- package/src/useObservable.ts +71 -54
package/dist/index.js
CHANGED
|
@@ -1,2267 +1,2257 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { onIdTokenChanged as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { onSnapshot as
|
|
6
|
-
import { httpsCallable as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { onIdTokenChanged as t } from "firebase/auth";
|
|
3
|
+
import { getApps as n, initializeApp as r, registerVersion as i } from "firebase/app";
|
|
4
|
+
import { get as a, off as o, onChildAdded as s, onChildChanged as c, onChildMoved as l, onChildRemoved as u, onValue as d } from "firebase/database";
|
|
5
|
+
import { onSnapshot as f, queryEqual as p } from "firebase/firestore";
|
|
6
|
+
import { httpsCallable as m } from "firebase/functions";
|
|
7
|
+
import { ensureInitialized as h, getAll as g, getBoolean as ee, getNumber as te, getString as ne, getValue as re } from "firebase/remote-config";
|
|
8
|
+
import { getDownloadURL as ie, ref as ae } from "firebase/storage";
|
|
9
|
+
//#region \0rolldown/runtime.js
|
|
10
|
+
var oe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), se = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
11
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
12
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
13
|
+
}), ce = function(e, t) {
|
|
14
|
+
return ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
15
|
+
e.__proto__ = t;
|
|
16
|
+
} || function(e, t) {
|
|
17
|
+
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
18
|
+
}, ce(e, t);
|
|
16
19
|
};
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
205
|
-
var t = e[Symbol.asyncIterator], n;
|
|
206
|
-
return t ? t.call(e) : (e = typeof V == "function" ? V(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
|
|
207
|
-
return this;
|
|
208
|
-
}, n);
|
|
209
|
-
function r(o) {
|
|
210
|
-
n[o] = e[o] && function(u) {
|
|
211
|
-
return new Promise(function(s, a) {
|
|
212
|
-
u = e[o](u), i(s, a, u.done, u.value);
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function i(o, u, s, a) {
|
|
217
|
-
Promise.resolve(a).then(function(c) {
|
|
218
|
-
o({ value: c, done: s });
|
|
219
|
-
}, u);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
function b(e) {
|
|
223
|
-
return typeof e == "function";
|
|
20
|
+
function _(e, t) {
|
|
21
|
+
if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
22
|
+
ce(e, t);
|
|
23
|
+
function n() {
|
|
24
|
+
this.constructor = e;
|
|
25
|
+
}
|
|
26
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
27
|
+
}
|
|
28
|
+
function le(e, t) {
|
|
29
|
+
var n = {};
|
|
30
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
31
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
32
|
+
return n;
|
|
33
|
+
}
|
|
34
|
+
function ue(e, t, n, r) {
|
|
35
|
+
function i(e) {
|
|
36
|
+
return e instanceof n ? e : new n(function(t) {
|
|
37
|
+
t(e);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return new (n ||= Promise)(function(n, a) {
|
|
41
|
+
function o(e) {
|
|
42
|
+
try {
|
|
43
|
+
c(r.next(e));
|
|
44
|
+
} catch (e) {
|
|
45
|
+
a(e);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function s(e) {
|
|
49
|
+
try {
|
|
50
|
+
c(r.throw(e));
|
|
51
|
+
} catch (e) {
|
|
52
|
+
a(e);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function c(e) {
|
|
56
|
+
e.done ? n(e.value) : i(e.value).then(o, s);
|
|
57
|
+
}
|
|
58
|
+
c((r = r.apply(e, t || [])).next());
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function de(e, t) {
|
|
62
|
+
var n = {
|
|
63
|
+
label: 0,
|
|
64
|
+
sent: function() {
|
|
65
|
+
if (a[0] & 1) throw a[1];
|
|
66
|
+
return a[1];
|
|
67
|
+
},
|
|
68
|
+
trys: [],
|
|
69
|
+
ops: []
|
|
70
|
+
}, r, i, a, o;
|
|
71
|
+
return o = {
|
|
72
|
+
next: s(0),
|
|
73
|
+
throw: s(1),
|
|
74
|
+
return: s(2)
|
|
75
|
+
}, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
|
|
76
|
+
return this;
|
|
77
|
+
}), o;
|
|
78
|
+
function s(e) {
|
|
79
|
+
return function(t) {
|
|
80
|
+
return c([e, t]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function c(s) {
|
|
84
|
+
if (r) throw TypeError("Generator is already executing.");
|
|
85
|
+
for (; o && (o = 0, s[0] && (n = 0)), n;) try {
|
|
86
|
+
if (r = 1, i && (a = s[0] & 2 ? i.return : s[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, s[1])).done) return a;
|
|
87
|
+
switch (i = 0, a && (s = [s[0] & 2, a.value]), s[0]) {
|
|
88
|
+
case 0:
|
|
89
|
+
case 1:
|
|
90
|
+
a = s;
|
|
91
|
+
break;
|
|
92
|
+
case 4: return n.label++, {
|
|
93
|
+
value: s[1],
|
|
94
|
+
done: !1
|
|
95
|
+
};
|
|
96
|
+
case 5:
|
|
97
|
+
n.label++, i = s[1], s = [0];
|
|
98
|
+
continue;
|
|
99
|
+
case 7:
|
|
100
|
+
s = n.ops.pop(), n.trys.pop();
|
|
101
|
+
continue;
|
|
102
|
+
default:
|
|
103
|
+
if ((a = n.trys, !(a = a.length > 0 && a[a.length - 1])) && (s[0] === 6 || s[0] === 2)) {
|
|
104
|
+
n = 0;
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
if (s[0] === 3 && (!a || s[1] > a[0] && s[1] < a[3])) {
|
|
108
|
+
n.label = s[1];
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
if (s[0] === 6 && n.label < a[1]) {
|
|
112
|
+
n.label = a[1], a = s;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
if (a && n.label < a[2]) {
|
|
116
|
+
n.label = a[2], n.ops.push(s);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
a[2] && n.ops.pop(), n.trys.pop();
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
s = t.call(e, n);
|
|
123
|
+
} catch (e) {
|
|
124
|
+
s = [6, e], i = 0;
|
|
125
|
+
} finally {
|
|
126
|
+
r = a = 0;
|
|
127
|
+
}
|
|
128
|
+
if (s[0] & 5) throw s[1];
|
|
129
|
+
return {
|
|
130
|
+
value: s[0] ? s[1] : void 0,
|
|
131
|
+
done: !0
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function v(e) {
|
|
136
|
+
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
137
|
+
if (n) return n.call(e);
|
|
138
|
+
if (e && typeof e.length == "number") return { next: function() {
|
|
139
|
+
return e && r >= e.length && (e = void 0), {
|
|
140
|
+
value: e && e[r++],
|
|
141
|
+
done: !e
|
|
142
|
+
};
|
|
143
|
+
} };
|
|
144
|
+
throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
145
|
+
}
|
|
146
|
+
function y(e, t) {
|
|
147
|
+
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
148
|
+
if (!n) return e;
|
|
149
|
+
var r = n.call(e), i, a = [], o;
|
|
150
|
+
try {
|
|
151
|
+
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
|
|
152
|
+
} catch (e) {
|
|
153
|
+
o = { error: e };
|
|
154
|
+
} finally {
|
|
155
|
+
try {
|
|
156
|
+
i && !i.done && (n = r.return) && n.call(r);
|
|
157
|
+
} finally {
|
|
158
|
+
if (o) throw o.error;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return a;
|
|
162
|
+
}
|
|
163
|
+
function b(e, t, n) {
|
|
164
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
165
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
166
|
+
}
|
|
167
|
+
function x(e) {
|
|
168
|
+
return this instanceof x ? (this.v = e, this) : new x(e);
|
|
169
|
+
}
|
|
170
|
+
function fe(e, t, n) {
|
|
171
|
+
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
172
|
+
var r = n.apply(e, t || []), i, a = [];
|
|
173
|
+
return i = {}, o("next"), o("throw"), o("return"), i[Symbol.asyncIterator] = function() {
|
|
174
|
+
return this;
|
|
175
|
+
}, i;
|
|
176
|
+
function o(e) {
|
|
177
|
+
r[e] && (i[e] = function(t) {
|
|
178
|
+
return new Promise(function(n, r) {
|
|
179
|
+
a.push([
|
|
180
|
+
e,
|
|
181
|
+
t,
|
|
182
|
+
n,
|
|
183
|
+
r
|
|
184
|
+
]) > 1 || s(e, t);
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function s(e, t) {
|
|
189
|
+
try {
|
|
190
|
+
c(r[e](t));
|
|
191
|
+
} catch (e) {
|
|
192
|
+
d(a[0][3], e);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function c(e) {
|
|
196
|
+
e.value instanceof x ? Promise.resolve(e.value.v).then(l, u) : d(a[0][2], e);
|
|
197
|
+
}
|
|
198
|
+
function l(e) {
|
|
199
|
+
s("next", e);
|
|
200
|
+
}
|
|
201
|
+
function u(e) {
|
|
202
|
+
s("throw", e);
|
|
203
|
+
}
|
|
204
|
+
function d(e, t) {
|
|
205
|
+
e(t), a.shift(), a.length && s(a[0][0], a[0][1]);
|
|
206
|
+
}
|
|
224
207
|
}
|
|
225
208
|
function pe(e) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
209
|
+
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
210
|
+
var t = e[Symbol.asyncIterator], n;
|
|
211
|
+
return t ? t.call(e) : (e = typeof v == "function" ? v(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
|
|
212
|
+
return this;
|
|
213
|
+
}, n);
|
|
214
|
+
function r(t) {
|
|
215
|
+
n[t] = e[t] && function(n) {
|
|
216
|
+
return new Promise(function(r, a) {
|
|
217
|
+
n = e[t](n), i(r, a, n.done, n.value);
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
function i(e, t, n, r) {
|
|
222
|
+
Promise.resolve(r).then(function(t) {
|
|
223
|
+
e({
|
|
224
|
+
value: t,
|
|
225
|
+
done: n
|
|
226
|
+
});
|
|
227
|
+
}, t);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isFunction.js
|
|
232
|
+
function S(e) {
|
|
233
|
+
return typeof e == "function";
|
|
234
|
+
}
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js
|
|
237
|
+
function me(e) {
|
|
238
|
+
var t = e(function(e) {
|
|
239
|
+
Error.call(e), e.stack = (/* @__PURE__ */ Error()).stack;
|
|
240
|
+
});
|
|
241
|
+
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js
|
|
245
|
+
var he = me(function(e) {
|
|
246
|
+
return function(t) {
|
|
247
|
+
e(this), this.message = t ? t.length + " errors occurred during unsubscription:\n" + t.map(function(e, t) {
|
|
248
|
+
return t + 1 + ") " + e.toString();
|
|
249
|
+
}).join("\n ") : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
250
|
+
};
|
|
239
251
|
});
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/arrRemove.js
|
|
254
|
+
function ge(e, t) {
|
|
255
|
+
if (e) {
|
|
256
|
+
var n = e.indexOf(t);
|
|
257
|
+
0 <= n && e.splice(n, 1);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region node_modules/rxjs/dist/esm5/internal/Subscription.js
|
|
262
|
+
var C = function() {
|
|
263
|
+
function e(e) {
|
|
264
|
+
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
265
|
+
}
|
|
266
|
+
return e.prototype.unsubscribe = function() {
|
|
267
|
+
var e, t, n, r, i;
|
|
268
|
+
if (!this.closed) {
|
|
269
|
+
this.closed = !0;
|
|
270
|
+
var a = this._parentage;
|
|
271
|
+
if (a) if (this._parentage = null, Array.isArray(a)) try {
|
|
272
|
+
for (var o = v(a), s = o.next(); !s.done; s = o.next()) s.value.remove(this);
|
|
273
|
+
} catch (t) {
|
|
274
|
+
e = { error: t };
|
|
275
|
+
} finally {
|
|
276
|
+
try {
|
|
277
|
+
s && !s.done && (t = o.return) && t.call(o);
|
|
278
|
+
} finally {
|
|
279
|
+
if (e) throw e.error;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
else a.remove(this);
|
|
283
|
+
var c = this.initialTeardown;
|
|
284
|
+
if (S(c)) try {
|
|
285
|
+
c();
|
|
286
|
+
} catch (e) {
|
|
287
|
+
i = e instanceof he ? e.errors : [e];
|
|
288
|
+
}
|
|
289
|
+
var l = this._finalizers;
|
|
290
|
+
if (l) {
|
|
291
|
+
this._finalizers = null;
|
|
292
|
+
try {
|
|
293
|
+
for (var u = v(l), d = u.next(); !d.done; d = u.next()) {
|
|
294
|
+
var f = d.value;
|
|
295
|
+
try {
|
|
296
|
+
ye(f);
|
|
297
|
+
} catch (e) {
|
|
298
|
+
i ??= [], e instanceof he ? i = b(b([], y(i)), y(e.errors)) : i.push(e);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
} catch (e) {
|
|
302
|
+
n = { error: e };
|
|
303
|
+
} finally {
|
|
304
|
+
try {
|
|
305
|
+
d && !d.done && (r = u.return) && r.call(u);
|
|
306
|
+
} finally {
|
|
307
|
+
if (n) throw n.error;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
if (i) throw new he(i);
|
|
312
|
+
}
|
|
313
|
+
}, e.prototype.add = function(t) {
|
|
314
|
+
if (t && t !== this) if (this.closed) ye(t);
|
|
315
|
+
else {
|
|
316
|
+
if (t instanceof e) {
|
|
317
|
+
if (t.closed || t._hasParent(this)) return;
|
|
318
|
+
t._addParent(this);
|
|
319
|
+
}
|
|
320
|
+
(this._finalizers = this._finalizers ?? []).push(t);
|
|
321
|
+
}
|
|
322
|
+
}, e.prototype._hasParent = function(e) {
|
|
323
|
+
var t = this._parentage;
|
|
324
|
+
return t === e || Array.isArray(t) && t.includes(e);
|
|
325
|
+
}, e.prototype._addParent = function(e) {
|
|
326
|
+
var t = this._parentage;
|
|
327
|
+
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
328
|
+
}, e.prototype._removeParent = function(e) {
|
|
329
|
+
var t = this._parentage;
|
|
330
|
+
t === e ? this._parentage = null : Array.isArray(t) && ge(t, e);
|
|
331
|
+
}, e.prototype.remove = function(t) {
|
|
332
|
+
var n = this._finalizers;
|
|
333
|
+
n && ge(n, t), t instanceof e && t._removeParent(this);
|
|
334
|
+
}, e.EMPTY = (function() {
|
|
335
|
+
var t = new e();
|
|
336
|
+
return t.closed = !0, t;
|
|
337
|
+
})(), e;
|
|
338
|
+
}(), _e = C.EMPTY;
|
|
339
|
+
function ve(e) {
|
|
340
|
+
return e instanceof C || e && "closed" in e && S(e.remove) && S(e.add) && S(e.unsubscribe);
|
|
341
|
+
}
|
|
342
|
+
function ye(e) {
|
|
343
|
+
S(e) ? e() : e.unsubscribe();
|
|
344
|
+
}
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region node_modules/rxjs/dist/esm5/internal/config.js
|
|
347
|
+
var w = {
|
|
348
|
+
onUnhandledError: null,
|
|
349
|
+
onStoppedNotification: null,
|
|
350
|
+
Promise: void 0,
|
|
351
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
352
|
+
useDeprecatedNextContext: !1
|
|
353
|
+
}, be = {
|
|
354
|
+
setTimeout: function(e, t) {
|
|
355
|
+
var n = [...arguments].slice(2), r = be.delegate;
|
|
356
|
+
return r?.setTimeout ? r.setTimeout.apply(r, b([e, t], y(n))) : setTimeout.apply(void 0, b([e, t], y(n)));
|
|
357
|
+
},
|
|
358
|
+
clearTimeout: function(e) {
|
|
359
|
+
return (be.delegate?.clearTimeout || clearTimeout)(e);
|
|
360
|
+
},
|
|
361
|
+
delegate: void 0
|
|
362
|
+
};
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js
|
|
365
|
+
function xe(e) {
|
|
366
|
+
be.setTimeout(function() {
|
|
367
|
+
var t = w.onUnhandledError;
|
|
368
|
+
if (t) t(e);
|
|
369
|
+
else throw e;
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/noop.js
|
|
374
|
+
function Se() {}
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region node_modules/rxjs/dist/esm5/internal/NotificationFactories.js
|
|
377
|
+
var Ce = (function() {
|
|
378
|
+
return Ee("C", void 0, void 0);
|
|
379
|
+
})();
|
|
380
|
+
function we(e) {
|
|
381
|
+
return Ee("E", void 0, e);
|
|
382
|
+
}
|
|
383
|
+
function Te(e) {
|
|
384
|
+
return Ee("N", e, void 0);
|
|
385
|
+
}
|
|
386
|
+
function Ee(e, t, n) {
|
|
387
|
+
return {
|
|
388
|
+
kind: e,
|
|
389
|
+
value: t,
|
|
390
|
+
error: n
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/errorContext.js
|
|
395
|
+
var T = null;
|
|
396
|
+
function E(e) {
|
|
397
|
+
if (w.useDeprecatedSynchronousErrorHandling) {
|
|
398
|
+
var t = !T;
|
|
399
|
+
if (t && (T = {
|
|
400
|
+
errorThrown: !1,
|
|
401
|
+
error: null
|
|
402
|
+
}), e(), t) {
|
|
403
|
+
var n = T, r = n.errorThrown, i = n.error;
|
|
404
|
+
if (T = null, r) throw i;
|
|
405
|
+
}
|
|
406
|
+
} else e();
|
|
407
|
+
}
|
|
408
|
+
function De(e) {
|
|
409
|
+
w.useDeprecatedSynchronousErrorHandling && T && (T.errorThrown = !0, T.error = e);
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region node_modules/rxjs/dist/esm5/internal/Subscriber.js
|
|
413
|
+
var Oe = function(e) {
|
|
414
|
+
_(t, e);
|
|
415
|
+
function t(t) {
|
|
416
|
+
var n = e.call(this) || this;
|
|
417
|
+
return n.isStopped = !1, t ? (n.destination = t, ve(t) && t.add(n)) : n.destination = Fe, n;
|
|
418
|
+
}
|
|
419
|
+
return t.create = function(e, t, n) {
|
|
420
|
+
return new D(e, t, n);
|
|
421
|
+
}, t.prototype.next = function(e) {
|
|
422
|
+
this.isStopped ? Pe(Te(e), this) : this._next(e);
|
|
423
|
+
}, t.prototype.error = function(e) {
|
|
424
|
+
this.isStopped ? Pe(we(e), this) : (this.isStopped = !0, this._error(e));
|
|
425
|
+
}, t.prototype.complete = function() {
|
|
426
|
+
this.isStopped ? Pe(Ce, this) : (this.isStopped = !0, this._complete());
|
|
427
|
+
}, t.prototype.unsubscribe = function() {
|
|
428
|
+
this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
|
|
429
|
+
}, t.prototype._next = function(e) {
|
|
430
|
+
this.destination.next(e);
|
|
431
|
+
}, t.prototype._error = function(e) {
|
|
432
|
+
try {
|
|
433
|
+
this.destination.error(e);
|
|
434
|
+
} finally {
|
|
435
|
+
this.unsubscribe();
|
|
436
|
+
}
|
|
437
|
+
}, t.prototype._complete = function() {
|
|
438
|
+
try {
|
|
439
|
+
this.destination.complete();
|
|
440
|
+
} finally {
|
|
441
|
+
this.unsubscribe();
|
|
442
|
+
}
|
|
443
|
+
}, t;
|
|
444
|
+
}(C), ke = Function.prototype.bind;
|
|
445
|
+
function Ae(e, t) {
|
|
446
|
+
return ke.call(e, t);
|
|
447
|
+
}
|
|
448
|
+
var je = function() {
|
|
449
|
+
function e(e) {
|
|
450
|
+
this.partialObserver = e;
|
|
451
|
+
}
|
|
452
|
+
return e.prototype.next = function(e) {
|
|
453
|
+
var t = this.partialObserver;
|
|
454
|
+
if (t.next) try {
|
|
455
|
+
t.next(e);
|
|
456
|
+
} catch (e) {
|
|
457
|
+
Me(e);
|
|
458
|
+
}
|
|
459
|
+
}, e.prototype.error = function(e) {
|
|
460
|
+
var t = this.partialObserver;
|
|
461
|
+
if (t.error) try {
|
|
462
|
+
t.error(e);
|
|
463
|
+
} catch (e) {
|
|
464
|
+
Me(e);
|
|
465
|
+
}
|
|
466
|
+
else Me(e);
|
|
467
|
+
}, e.prototype.complete = function() {
|
|
468
|
+
var e = this.partialObserver;
|
|
469
|
+
if (e.complete) try {
|
|
470
|
+
e.complete();
|
|
471
|
+
} catch (e) {
|
|
472
|
+
Me(e);
|
|
473
|
+
}
|
|
474
|
+
}, e;
|
|
475
|
+
}(), D = function(e) {
|
|
476
|
+
_(t, e);
|
|
477
|
+
function t(t, n, r) {
|
|
478
|
+
var i = e.call(this) || this, a;
|
|
479
|
+
if (S(t) || !t) a = {
|
|
480
|
+
next: t ?? void 0,
|
|
481
|
+
error: n ?? void 0,
|
|
482
|
+
complete: r ?? void 0
|
|
483
|
+
};
|
|
484
|
+
else {
|
|
485
|
+
var o;
|
|
486
|
+
i && w.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
|
|
487
|
+
return i.unsubscribe();
|
|
488
|
+
}, a = {
|
|
489
|
+
next: t.next && Ae(t.next, o),
|
|
490
|
+
error: t.error && Ae(t.error, o),
|
|
491
|
+
complete: t.complete && Ae(t.complete, o)
|
|
492
|
+
}) : a = t;
|
|
493
|
+
}
|
|
494
|
+
return i.destination = new je(a), i;
|
|
495
|
+
}
|
|
496
|
+
return t;
|
|
497
|
+
}(Oe);
|
|
498
|
+
function Me(e) {
|
|
499
|
+
w.useDeprecatedSynchronousErrorHandling ? De(e) : xe(e);
|
|
339
500
|
}
|
|
501
|
+
function Ne(e) {
|
|
502
|
+
throw e;
|
|
503
|
+
}
|
|
504
|
+
function Pe(e, t) {
|
|
505
|
+
var n = w.onStoppedNotification;
|
|
506
|
+
n && be.setTimeout(function() {
|
|
507
|
+
return n(e, t);
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
var Fe = {
|
|
511
|
+
closed: !0,
|
|
512
|
+
next: Se,
|
|
513
|
+
error: Ne,
|
|
514
|
+
complete: Se
|
|
515
|
+
}, Ie = (function() {
|
|
516
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
517
|
+
})();
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/identity.js
|
|
520
|
+
function O(e) {
|
|
521
|
+
return e;
|
|
522
|
+
}
|
|
523
|
+
//#endregion
|
|
524
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/pipe.js
|
|
340
525
|
function Le(e) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
};
|
|
362
|
-
function
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
return Xt.call(e, t);
|
|
406
|
-
}
|
|
407
|
-
var en = function() {
|
|
408
|
-
function e(t) {
|
|
409
|
-
this.partialObserver = t;
|
|
410
|
-
}
|
|
411
|
-
return e.prototype.next = function(t) {
|
|
412
|
-
var n = this.partialObserver;
|
|
413
|
-
if (n.next)
|
|
414
|
-
try {
|
|
415
|
-
n.next(t);
|
|
416
|
-
} catch (r) {
|
|
417
|
-
G(r);
|
|
418
|
-
}
|
|
419
|
-
}, e.prototype.error = function(t) {
|
|
420
|
-
var n = this.partialObserver;
|
|
421
|
-
if (n.error)
|
|
422
|
-
try {
|
|
423
|
-
n.error(t);
|
|
424
|
-
} catch (r) {
|
|
425
|
-
G(r);
|
|
426
|
-
}
|
|
427
|
-
else
|
|
428
|
-
G(t);
|
|
429
|
-
}, e.prototype.complete = function() {
|
|
430
|
-
var t = this.partialObserver;
|
|
431
|
-
if (t.complete)
|
|
432
|
-
try {
|
|
433
|
-
t.complete();
|
|
434
|
-
} catch (n) {
|
|
435
|
-
G(n);
|
|
436
|
-
}
|
|
437
|
-
}, e;
|
|
438
|
-
}(), L = function(e) {
|
|
439
|
-
I(t, e);
|
|
440
|
-
function t(n, r, i) {
|
|
441
|
-
var o = e.call(this) || this, u;
|
|
442
|
-
if (b(n) || !n)
|
|
443
|
-
u = {
|
|
444
|
-
next: n ?? void 0,
|
|
445
|
-
error: r ?? void 0,
|
|
446
|
-
complete: i ?? void 0
|
|
447
|
-
};
|
|
448
|
-
else {
|
|
449
|
-
var s;
|
|
450
|
-
o && Ye.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
|
|
451
|
-
return o.unsubscribe();
|
|
452
|
-
}, u = {
|
|
453
|
-
next: n.next && oe(n.next, s),
|
|
454
|
-
error: n.error && oe(n.error, s),
|
|
455
|
-
complete: n.complete && oe(n.complete, s)
|
|
456
|
-
}) : u = n;
|
|
457
|
-
}
|
|
458
|
-
return o.destination = new en(u), o;
|
|
459
|
-
}
|
|
460
|
-
return t;
|
|
461
|
-
}(me);
|
|
462
|
-
function G(e) {
|
|
463
|
-
Ge(e);
|
|
464
|
-
}
|
|
465
|
-
function tn(e) {
|
|
466
|
-
throw e;
|
|
467
|
-
}
|
|
468
|
-
var nn = {
|
|
469
|
-
closed: !0,
|
|
470
|
-
next: le,
|
|
471
|
-
error: tn,
|
|
472
|
-
complete: le
|
|
473
|
-
}, be = function() {
|
|
474
|
-
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
475
|
-
}();
|
|
476
|
-
function W(e) {
|
|
477
|
-
return e;
|
|
478
|
-
}
|
|
479
|
-
function rn(e) {
|
|
480
|
-
return e.length === 0 ? W : e.length === 1 ? e[0] : function(n) {
|
|
481
|
-
return e.reduce(function(r, i) {
|
|
482
|
-
return i(r);
|
|
483
|
-
}, n);
|
|
484
|
-
};
|
|
485
|
-
}
|
|
486
|
-
var y = function() {
|
|
487
|
-
function e(t) {
|
|
488
|
-
t && (this._subscribe = t);
|
|
489
|
-
}
|
|
490
|
-
return e.prototype.lift = function(t) {
|
|
491
|
-
var n = new e();
|
|
492
|
-
return n.source = this, n.operator = t, n;
|
|
493
|
-
}, e.prototype.subscribe = function(t, n, r) {
|
|
494
|
-
var i = this, o = un(t) ? t : new L(t, n, r);
|
|
495
|
-
return J(function() {
|
|
496
|
-
var u = i, s = u.operator, a = u.source;
|
|
497
|
-
o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
|
|
498
|
-
}), o;
|
|
499
|
-
}, e.prototype._trySubscribe = function(t) {
|
|
500
|
-
try {
|
|
501
|
-
return this._subscribe(t);
|
|
502
|
-
} catch (n) {
|
|
503
|
-
t.error(n);
|
|
504
|
-
}
|
|
505
|
-
}, e.prototype.forEach = function(t, n) {
|
|
506
|
-
var r = this;
|
|
507
|
-
return n = Ne(n), new n(function(i, o) {
|
|
508
|
-
var u = new L({
|
|
509
|
-
next: function(s) {
|
|
510
|
-
try {
|
|
511
|
-
t(s);
|
|
512
|
-
} catch (a) {
|
|
513
|
-
o(a), u.unsubscribe();
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
error: o,
|
|
517
|
-
complete: i
|
|
518
|
-
});
|
|
519
|
-
r.subscribe(u);
|
|
520
|
-
});
|
|
521
|
-
}, e.prototype._subscribe = function(t) {
|
|
522
|
-
var n;
|
|
523
|
-
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
524
|
-
}, e.prototype[be] = function() {
|
|
525
|
-
return this;
|
|
526
|
-
}, e.prototype.pipe = function() {
|
|
527
|
-
for (var t = [], n = 0; n < arguments.length; n++)
|
|
528
|
-
t[n] = arguments[n];
|
|
529
|
-
return rn(t)(this);
|
|
530
|
-
}, e.prototype.toPromise = function(t) {
|
|
531
|
-
var n = this;
|
|
532
|
-
return t = Ne(t), new t(function(r, i) {
|
|
533
|
-
var o;
|
|
534
|
-
n.subscribe(function(u) {
|
|
535
|
-
return o = u;
|
|
536
|
-
}, function(u) {
|
|
537
|
-
return i(u);
|
|
538
|
-
}, function() {
|
|
539
|
-
return r(o);
|
|
540
|
-
});
|
|
541
|
-
});
|
|
542
|
-
}, e.create = function(t) {
|
|
543
|
-
return new e(t);
|
|
544
|
-
}, e;
|
|
526
|
+
return e.length === 0 ? O : e.length === 1 ? e[0] : function(t) {
|
|
527
|
+
return e.reduce(function(e, t) {
|
|
528
|
+
return t(e);
|
|
529
|
+
}, t);
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
//#endregion
|
|
533
|
+
//#region node_modules/rxjs/dist/esm5/internal/Observable.js
|
|
534
|
+
var k = function() {
|
|
535
|
+
function e(e) {
|
|
536
|
+
e && (this._subscribe = e);
|
|
537
|
+
}
|
|
538
|
+
return e.prototype.lift = function(t) {
|
|
539
|
+
var n = new e();
|
|
540
|
+
return n.source = this, n.operator = t, n;
|
|
541
|
+
}, e.prototype.subscribe = function(e, t, n) {
|
|
542
|
+
var r = this, i = Be(e) ? e : new D(e, t, n);
|
|
543
|
+
return E(function() {
|
|
544
|
+
var e = r, t = e.operator, n = e.source;
|
|
545
|
+
i.add(t ? t.call(i, n) : n ? r._subscribe(i) : r._trySubscribe(i));
|
|
546
|
+
}), i;
|
|
547
|
+
}, e.prototype._trySubscribe = function(e) {
|
|
548
|
+
try {
|
|
549
|
+
return this._subscribe(e);
|
|
550
|
+
} catch (t) {
|
|
551
|
+
e.error(t);
|
|
552
|
+
}
|
|
553
|
+
}, e.prototype.forEach = function(e, t) {
|
|
554
|
+
var n = this;
|
|
555
|
+
return t = Re(t), new t(function(t, r) {
|
|
556
|
+
var i = new D({
|
|
557
|
+
next: function(t) {
|
|
558
|
+
try {
|
|
559
|
+
e(t);
|
|
560
|
+
} catch (e) {
|
|
561
|
+
r(e), i.unsubscribe();
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
error: r,
|
|
565
|
+
complete: t
|
|
566
|
+
});
|
|
567
|
+
n.subscribe(i);
|
|
568
|
+
});
|
|
569
|
+
}, e.prototype._subscribe = function(e) {
|
|
570
|
+
return this.source?.subscribe(e);
|
|
571
|
+
}, e.prototype[Ie] = function() {
|
|
572
|
+
return this;
|
|
573
|
+
}, e.prototype.pipe = function() {
|
|
574
|
+
return Le([...arguments])(this);
|
|
575
|
+
}, e.prototype.toPromise = function(e) {
|
|
576
|
+
var t = this;
|
|
577
|
+
return e = Re(e), new e(function(e, n) {
|
|
578
|
+
var r;
|
|
579
|
+
t.subscribe(function(e) {
|
|
580
|
+
return r = e;
|
|
581
|
+
}, function(e) {
|
|
582
|
+
return n(e);
|
|
583
|
+
}, function() {
|
|
584
|
+
return e(r);
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
}, e.create = function(t) {
|
|
588
|
+
return new e(t);
|
|
589
|
+
}, e;
|
|
545
590
|
}();
|
|
546
|
-
function
|
|
547
|
-
|
|
548
|
-
return (t = e ?? Ye.Promise) !== null && t !== void 0 ? t : Promise;
|
|
549
|
-
}
|
|
550
|
-
function on(e) {
|
|
551
|
-
return e && b(e.next) && b(e.error) && b(e.complete);
|
|
552
|
-
}
|
|
553
|
-
function un(e) {
|
|
554
|
-
return e && e instanceof me || on(e) && He(e);
|
|
555
|
-
}
|
|
556
|
-
function sn(e) {
|
|
557
|
-
return b(e == null ? void 0 : e.lift);
|
|
558
|
-
}
|
|
559
|
-
function _(e) {
|
|
560
|
-
return function(t) {
|
|
561
|
-
if (sn(t))
|
|
562
|
-
return t.lift(function(n) {
|
|
563
|
-
try {
|
|
564
|
-
return e(n, this);
|
|
565
|
-
} catch (r) {
|
|
566
|
-
this.error(r);
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
throw new TypeError("Unable to lift unknown Observable type");
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
function w(e, t, n, r, i) {
|
|
573
|
-
return new an(e, t, n, r, i);
|
|
574
|
-
}
|
|
575
|
-
var an = function(e) {
|
|
576
|
-
I(t, e);
|
|
577
|
-
function t(n, r, i, o, u, s) {
|
|
578
|
-
var a = e.call(this, n) || this;
|
|
579
|
-
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = r ? function(c) {
|
|
580
|
-
try {
|
|
581
|
-
r(c);
|
|
582
|
-
} catch (l) {
|
|
583
|
-
n.error(l);
|
|
584
|
-
}
|
|
585
|
-
} : e.prototype._next, a._error = o ? function(c) {
|
|
586
|
-
try {
|
|
587
|
-
o(c);
|
|
588
|
-
} catch (l) {
|
|
589
|
-
n.error(l);
|
|
590
|
-
} finally {
|
|
591
|
-
this.unsubscribe();
|
|
592
|
-
}
|
|
593
|
-
} : e.prototype._error, a._complete = i ? function() {
|
|
594
|
-
try {
|
|
595
|
-
i();
|
|
596
|
-
} catch (c) {
|
|
597
|
-
n.error(c);
|
|
598
|
-
} finally {
|
|
599
|
-
this.unsubscribe();
|
|
600
|
-
}
|
|
601
|
-
} : e.prototype._complete, a;
|
|
602
|
-
}
|
|
603
|
-
return t.prototype.unsubscribe = function() {
|
|
604
|
-
var n;
|
|
605
|
-
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
606
|
-
var r = this.closed;
|
|
607
|
-
e.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
|
|
608
|
-
}
|
|
609
|
-
}, t;
|
|
610
|
-
}(me), cn = pe(function(e) {
|
|
611
|
-
return function() {
|
|
612
|
-
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
613
|
-
};
|
|
614
|
-
}), te = function(e) {
|
|
615
|
-
I(t, e);
|
|
616
|
-
function t() {
|
|
617
|
-
var n = e.call(this) || this;
|
|
618
|
-
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
619
|
-
}
|
|
620
|
-
return t.prototype.lift = function(n) {
|
|
621
|
-
var r = new We(this, this);
|
|
622
|
-
return r.operator = n, r;
|
|
623
|
-
}, t.prototype._throwIfClosed = function() {
|
|
624
|
-
if (this.closed)
|
|
625
|
-
throw new cn();
|
|
626
|
-
}, t.prototype.next = function(n) {
|
|
627
|
-
var r = this;
|
|
628
|
-
J(function() {
|
|
629
|
-
var i, o;
|
|
630
|
-
if (r._throwIfClosed(), !r.isStopped) {
|
|
631
|
-
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
632
|
-
try {
|
|
633
|
-
for (var u = V(r.currentObservers), s = u.next(); !s.done; s = u.next()) {
|
|
634
|
-
var a = s.value;
|
|
635
|
-
a.next(n);
|
|
636
|
-
}
|
|
637
|
-
} catch (c) {
|
|
638
|
-
i = { error: c };
|
|
639
|
-
} finally {
|
|
640
|
-
try {
|
|
641
|
-
s && !s.done && (o = u.return) && o.call(u);
|
|
642
|
-
} finally {
|
|
643
|
-
if (i)
|
|
644
|
-
throw i.error;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
});
|
|
649
|
-
}, t.prototype.error = function(n) {
|
|
650
|
-
var r = this;
|
|
651
|
-
J(function() {
|
|
652
|
-
if (r._throwIfClosed(), !r.isStopped) {
|
|
653
|
-
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
654
|
-
for (var i = r.observers; i.length; )
|
|
655
|
-
i.shift().error(n);
|
|
656
|
-
}
|
|
657
|
-
});
|
|
658
|
-
}, t.prototype.complete = function() {
|
|
659
|
-
var n = this;
|
|
660
|
-
J(function() {
|
|
661
|
-
if (n._throwIfClosed(), !n.isStopped) {
|
|
662
|
-
n.isStopped = !0;
|
|
663
|
-
for (var r = n.observers; r.length; )
|
|
664
|
-
r.shift().complete();
|
|
665
|
-
}
|
|
666
|
-
});
|
|
667
|
-
}, t.prototype.unsubscribe = function() {
|
|
668
|
-
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
669
|
-
}, Object.defineProperty(t.prototype, "observed", {
|
|
670
|
-
get: function() {
|
|
671
|
-
var n;
|
|
672
|
-
return ((n = this.observers) === null || n === void 0 ? void 0 : n.length) > 0;
|
|
673
|
-
},
|
|
674
|
-
enumerable: !1,
|
|
675
|
-
configurable: !0
|
|
676
|
-
}), t.prototype._trySubscribe = function(n) {
|
|
677
|
-
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, n);
|
|
678
|
-
}, t.prototype._subscribe = function(n) {
|
|
679
|
-
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
680
|
-
}, t.prototype._innerSubscribe = function(n) {
|
|
681
|
-
var r = this, i = this, o = i.hasError, u = i.isStopped, s = i.observers;
|
|
682
|
-
return o || u ? Ke : (this.currentObservers = null, s.push(n), new N(function() {
|
|
683
|
-
r.currentObservers = null, Z(s, n);
|
|
684
|
-
}));
|
|
685
|
-
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
686
|
-
var r = this, i = r.hasError, o = r.thrownError, u = r.isStopped;
|
|
687
|
-
i ? n.error(o) : u && n.complete();
|
|
688
|
-
}, t.prototype.asObservable = function() {
|
|
689
|
-
var n = new y();
|
|
690
|
-
return n.source = this, n;
|
|
691
|
-
}, t.create = function(n, r) {
|
|
692
|
-
return new We(n, r);
|
|
693
|
-
}, t;
|
|
694
|
-
}(y), We = function(e) {
|
|
695
|
-
I(t, e);
|
|
696
|
-
function t(n, r) {
|
|
697
|
-
var i = e.call(this) || this;
|
|
698
|
-
return i.destination = n, i.source = r, i;
|
|
699
|
-
}
|
|
700
|
-
return t.prototype.next = function(n) {
|
|
701
|
-
var r, i;
|
|
702
|
-
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.next) === null || i === void 0 || i.call(r, n);
|
|
703
|
-
}, t.prototype.error = function(n) {
|
|
704
|
-
var r, i;
|
|
705
|
-
(i = (r = this.destination) === null || r === void 0 ? void 0 : r.error) === null || i === void 0 || i.call(r, n);
|
|
706
|
-
}, t.prototype.complete = function() {
|
|
707
|
-
var n, r;
|
|
708
|
-
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
709
|
-
}, t.prototype._subscribe = function(n) {
|
|
710
|
-
var r, i;
|
|
711
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Ke;
|
|
712
|
-
}, t;
|
|
713
|
-
}(te), ye = {
|
|
714
|
-
now: function() {
|
|
715
|
-
return (ye.delegate || Date).now();
|
|
716
|
-
},
|
|
717
|
-
delegate: void 0
|
|
718
|
-
}, ln = function(e) {
|
|
719
|
-
I(t, e);
|
|
720
|
-
function t(n, r, i) {
|
|
721
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = ye);
|
|
722
|
-
var o = e.call(this) || this;
|
|
723
|
-
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
724
|
-
}
|
|
725
|
-
return t.prototype.next = function(n) {
|
|
726
|
-
var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow, s = r._timestampProvider, a = r._windowTime;
|
|
727
|
-
i || (o.push(n), !u && o.push(s.now() + a)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
728
|
-
}, t.prototype._subscribe = function(n) {
|
|
729
|
-
this._throwIfClosed(), this._trimBuffer();
|
|
730
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer, s = u.slice(), a = 0; a < s.length && !n.closed; a += o ? 1 : 2)
|
|
731
|
-
n.next(s[a]);
|
|
732
|
-
return this._checkFinalizedStatuses(n), r;
|
|
733
|
-
}, t.prototype._trimBuffer = function() {
|
|
734
|
-
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow, s = (u ? 1 : 2) * r;
|
|
735
|
-
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !u) {
|
|
736
|
-
for (var a = i.now(), c = 0, l = 1; l < o.length && o[l] <= a; l += 2)
|
|
737
|
-
c = l;
|
|
738
|
-
c && o.splice(0, c + 1);
|
|
739
|
-
}
|
|
740
|
-
}, t;
|
|
741
|
-
}(te), fn = function(e) {
|
|
742
|
-
I(t, e);
|
|
743
|
-
function t(n, r) {
|
|
744
|
-
return e.call(this) || this;
|
|
745
|
-
}
|
|
746
|
-
return t.prototype.schedule = function(n, r) {
|
|
747
|
-
return this;
|
|
748
|
-
}, t;
|
|
749
|
-
}(N), B = {
|
|
750
|
-
setInterval: function(e, t) {
|
|
751
|
-
for (var n = [], r = 2; r < arguments.length; r++)
|
|
752
|
-
n[r - 2] = arguments[r];
|
|
753
|
-
var i = B.delegate;
|
|
754
|
-
return i != null && i.setInterval ? i.setInterval.apply(i, R([e, t], D(n))) : setInterval.apply(void 0, R([e, t], D(n)));
|
|
755
|
-
},
|
|
756
|
-
clearInterval: function(e) {
|
|
757
|
-
var t = B.delegate;
|
|
758
|
-
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
|
|
759
|
-
},
|
|
760
|
-
delegate: void 0
|
|
761
|
-
}, dn = function(e) {
|
|
762
|
-
I(t, e);
|
|
763
|
-
function t(n, r) {
|
|
764
|
-
var i = e.call(this, n, r) || this;
|
|
765
|
-
return i.scheduler = n, i.work = r, i.pending = !1, i;
|
|
766
|
-
}
|
|
767
|
-
return t.prototype.schedule = function(n, r) {
|
|
768
|
-
var i;
|
|
769
|
-
if (r === void 0 && (r = 0), this.closed)
|
|
770
|
-
return this;
|
|
771
|
-
this.state = n;
|
|
772
|
-
var o = this.id, u = this.scheduler;
|
|
773
|
-
return o != null && (this.id = this.recycleAsyncId(u, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(u, this.id, r), this;
|
|
774
|
-
}, t.prototype.requestAsyncId = function(n, r, i) {
|
|
775
|
-
return i === void 0 && (i = 0), B.setInterval(n.flush.bind(n, this), i);
|
|
776
|
-
}, t.prototype.recycleAsyncId = function(n, r, i) {
|
|
777
|
-
if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
|
|
778
|
-
return r;
|
|
779
|
-
r != null && B.clearInterval(r);
|
|
780
|
-
}, t.prototype.execute = function(n, r) {
|
|
781
|
-
if (this.closed)
|
|
782
|
-
return new Error("executing a cancelled action");
|
|
783
|
-
this.pending = !1;
|
|
784
|
-
var i = this._execute(n, r);
|
|
785
|
-
if (i)
|
|
786
|
-
return i;
|
|
787
|
-
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
788
|
-
}, t.prototype._execute = function(n, r) {
|
|
789
|
-
var i = !1, o;
|
|
790
|
-
try {
|
|
791
|
-
this.work(n);
|
|
792
|
-
} catch (u) {
|
|
793
|
-
i = !0, o = u || new Error("Scheduled action threw falsy error");
|
|
794
|
-
}
|
|
795
|
-
if (i)
|
|
796
|
-
return this.unsubscribe(), o;
|
|
797
|
-
}, t.prototype.unsubscribe = function() {
|
|
798
|
-
if (!this.closed) {
|
|
799
|
-
var n = this, r = n.id, i = n.scheduler, o = i.actions;
|
|
800
|
-
this.work = this.state = this.scheduler = null, this.pending = !1, Z(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
801
|
-
}
|
|
802
|
-
}, t;
|
|
803
|
-
}(fn), qe = function() {
|
|
804
|
-
function e(t, n) {
|
|
805
|
-
n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
|
|
806
|
-
}
|
|
807
|
-
return e.prototype.schedule = function(t, n, r) {
|
|
808
|
-
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, t).schedule(r, n);
|
|
809
|
-
}, e.now = ye.now, e;
|
|
810
|
-
}(), vn = function(e) {
|
|
811
|
-
I(t, e);
|
|
812
|
-
function t(n, r) {
|
|
813
|
-
r === void 0 && (r = qe.now);
|
|
814
|
-
var i = e.call(this, n, r) || this;
|
|
815
|
-
return i.actions = [], i._active = !1, i;
|
|
816
|
-
}
|
|
817
|
-
return t.prototype.flush = function(n) {
|
|
818
|
-
var r = this.actions;
|
|
819
|
-
if (this._active) {
|
|
820
|
-
r.push(n);
|
|
821
|
-
return;
|
|
822
|
-
}
|
|
823
|
-
var i;
|
|
824
|
-
this._active = !0;
|
|
825
|
-
do
|
|
826
|
-
if (i = n.execute(n.state, n.delay))
|
|
827
|
-
break;
|
|
828
|
-
while (n = r.shift());
|
|
829
|
-
if (this._active = !1, i) {
|
|
830
|
-
for (; n = r.shift(); )
|
|
831
|
-
n.unsubscribe();
|
|
832
|
-
throw i;
|
|
833
|
-
}
|
|
834
|
-
}, t;
|
|
835
|
-
}(qe), ge = new vn(dn), hn = ge, we = new y(function(e) {
|
|
836
|
-
return e.complete();
|
|
837
|
-
});
|
|
838
|
-
function pn(e) {
|
|
839
|
-
return e ? mn(e) : we;
|
|
840
|
-
}
|
|
841
|
-
function mn(e) {
|
|
842
|
-
return new y(function(t) {
|
|
843
|
-
return e.schedule(function() {
|
|
844
|
-
return t.complete();
|
|
845
|
-
});
|
|
846
|
-
});
|
|
847
|
-
}
|
|
848
|
-
function Je(e) {
|
|
849
|
-
return e && b(e.schedule);
|
|
591
|
+
function Re(e) {
|
|
592
|
+
return e ?? w.Promise ?? Promise;
|
|
850
593
|
}
|
|
851
594
|
function ze(e) {
|
|
852
|
-
|
|
595
|
+
return e && S(e.next) && S(e.error) && S(e.complete);
|
|
853
596
|
}
|
|
854
|
-
function _e(e) {
|
|
855
|
-
return Je(ze(e)) ? e.pop() : void 0;
|
|
856
|
-
}
|
|
857
|
-
function bn(e, t) {
|
|
858
|
-
return typeof ze(e) == "number" ? e.pop() : t;
|
|
859
|
-
}
|
|
860
|
-
var Ze = function(e) {
|
|
861
|
-
return e && typeof e.length == "number" && typeof e != "function";
|
|
862
|
-
};
|
|
863
597
|
function Be(e) {
|
|
864
|
-
|
|
598
|
+
return e && e instanceof Oe || ze(e) && ve(e);
|
|
865
599
|
}
|
|
866
|
-
|
|
867
|
-
|
|
600
|
+
//#endregion
|
|
601
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/lift.js
|
|
602
|
+
function Ve(e) {
|
|
603
|
+
return S(e?.lift);
|
|
868
604
|
}
|
|
869
|
-
function
|
|
870
|
-
|
|
605
|
+
function A(e) {
|
|
606
|
+
return function(t) {
|
|
607
|
+
if (Ve(t)) return t.lift(function(t) {
|
|
608
|
+
try {
|
|
609
|
+
return e(t, this);
|
|
610
|
+
} catch (e) {
|
|
611
|
+
this.error(e);
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
throw TypeError("Unable to lift unknown Observable type");
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js
|
|
619
|
+
function j(e, t, n, r, i) {
|
|
620
|
+
return new He(e, t, n, r, i);
|
|
621
|
+
}
|
|
622
|
+
var He = function(e) {
|
|
623
|
+
_(t, e);
|
|
624
|
+
function t(t, n, r, i, a, o) {
|
|
625
|
+
var s = e.call(this, t) || this;
|
|
626
|
+
return s.onFinalize = a, s.shouldUnsubscribe = o, s._next = n ? function(e) {
|
|
627
|
+
try {
|
|
628
|
+
n(e);
|
|
629
|
+
} catch (e) {
|
|
630
|
+
t.error(e);
|
|
631
|
+
}
|
|
632
|
+
} : e.prototype._next, s._error = i ? function(e) {
|
|
633
|
+
try {
|
|
634
|
+
i(e);
|
|
635
|
+
} catch (e) {
|
|
636
|
+
t.error(e);
|
|
637
|
+
} finally {
|
|
638
|
+
this.unsubscribe();
|
|
639
|
+
}
|
|
640
|
+
} : e.prototype._error, s._complete = r ? function() {
|
|
641
|
+
try {
|
|
642
|
+
r();
|
|
643
|
+
} catch (e) {
|
|
644
|
+
t.error(e);
|
|
645
|
+
} finally {
|
|
646
|
+
this.unsubscribe();
|
|
647
|
+
}
|
|
648
|
+
} : e.prototype._complete, s;
|
|
649
|
+
}
|
|
650
|
+
return t.prototype.unsubscribe = function() {
|
|
651
|
+
var t;
|
|
652
|
+
if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
|
|
653
|
+
var n = this.closed;
|
|
654
|
+
e.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) == null || t.call(this));
|
|
655
|
+
}
|
|
656
|
+
}, t;
|
|
657
|
+
}(Oe), Ue = me(function(e) {
|
|
658
|
+
return function() {
|
|
659
|
+
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
660
|
+
};
|
|
661
|
+
}), M = function(e) {
|
|
662
|
+
_(t, e);
|
|
663
|
+
function t() {
|
|
664
|
+
var t = e.call(this) || this;
|
|
665
|
+
return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
|
|
666
|
+
}
|
|
667
|
+
return t.prototype.lift = function(e) {
|
|
668
|
+
var t = new We(this, this);
|
|
669
|
+
return t.operator = e, t;
|
|
670
|
+
}, t.prototype._throwIfClosed = function() {
|
|
671
|
+
if (this.closed) throw new Ue();
|
|
672
|
+
}, t.prototype.next = function(e) {
|
|
673
|
+
var t = this;
|
|
674
|
+
E(function() {
|
|
675
|
+
var n, r;
|
|
676
|
+
if (t._throwIfClosed(), !t.isStopped) {
|
|
677
|
+
t.currentObservers ||= Array.from(t.observers);
|
|
678
|
+
try {
|
|
679
|
+
for (var i = v(t.currentObservers), a = i.next(); !a.done; a = i.next()) a.value.next(e);
|
|
680
|
+
} catch (e) {
|
|
681
|
+
n = { error: e };
|
|
682
|
+
} finally {
|
|
683
|
+
try {
|
|
684
|
+
a && !a.done && (r = i.return) && r.call(i);
|
|
685
|
+
} finally {
|
|
686
|
+
if (n) throw n.error;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}, t.prototype.error = function(e) {
|
|
692
|
+
var t = this;
|
|
693
|
+
E(function() {
|
|
694
|
+
if (t._throwIfClosed(), !t.isStopped) {
|
|
695
|
+
t.hasError = t.isStopped = !0, t.thrownError = e;
|
|
696
|
+
for (var n = t.observers; n.length;) n.shift().error(e);
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
}, t.prototype.complete = function() {
|
|
700
|
+
var e = this;
|
|
701
|
+
E(function() {
|
|
702
|
+
if (e._throwIfClosed(), !e.isStopped) {
|
|
703
|
+
e.isStopped = !0;
|
|
704
|
+
for (var t = e.observers; t.length;) t.shift().complete();
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
}, t.prototype.unsubscribe = function() {
|
|
708
|
+
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
709
|
+
}, Object.defineProperty(t.prototype, "observed", {
|
|
710
|
+
get: function() {
|
|
711
|
+
return this.observers?.length > 0;
|
|
712
|
+
},
|
|
713
|
+
enumerable: !1,
|
|
714
|
+
configurable: !0
|
|
715
|
+
}), t.prototype._trySubscribe = function(t) {
|
|
716
|
+
return this._throwIfClosed(), e.prototype._trySubscribe.call(this, t);
|
|
717
|
+
}, t.prototype._subscribe = function(e) {
|
|
718
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
719
|
+
}, t.prototype._innerSubscribe = function(e) {
|
|
720
|
+
var t = this, n = this, r = n.hasError, i = n.isStopped, a = n.observers;
|
|
721
|
+
return r || i ? _e : (this.currentObservers = null, a.push(e), new C(function() {
|
|
722
|
+
t.currentObservers = null, ge(a, e);
|
|
723
|
+
}));
|
|
724
|
+
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
725
|
+
var t = this, n = t.hasError, r = t.thrownError, i = t.isStopped;
|
|
726
|
+
n ? e.error(r) : i && e.complete();
|
|
727
|
+
}, t.prototype.asObservable = function() {
|
|
728
|
+
var e = new k();
|
|
729
|
+
return e.source = this, e;
|
|
730
|
+
}, t.create = function(e, t) {
|
|
731
|
+
return new We(e, t);
|
|
732
|
+
}, t;
|
|
733
|
+
}(k), We = function(e) {
|
|
734
|
+
_(t, e);
|
|
735
|
+
function t(t, n) {
|
|
736
|
+
var r = e.call(this) || this;
|
|
737
|
+
return r.destination = t, r.source = n, r;
|
|
738
|
+
}
|
|
739
|
+
return t.prototype.next = function(e) {
|
|
740
|
+
var t, n;
|
|
741
|
+
(n = (t = this.destination)?.next) == null || n.call(t, e);
|
|
742
|
+
}, t.prototype.error = function(e) {
|
|
743
|
+
var t, n;
|
|
744
|
+
(n = (t = this.destination)?.error) == null || n.call(t, e);
|
|
745
|
+
}, t.prototype.complete = function() {
|
|
746
|
+
var e, t;
|
|
747
|
+
(t = (e = this.destination)?.complete) == null || t.call(e);
|
|
748
|
+
}, t.prototype._subscribe = function(e) {
|
|
749
|
+
return this.source?.subscribe(e) ?? _e;
|
|
750
|
+
}, t;
|
|
751
|
+
}(M), Ge = {
|
|
752
|
+
now: function() {
|
|
753
|
+
return (Ge.delegate || Date).now();
|
|
754
|
+
},
|
|
755
|
+
delegate: void 0
|
|
756
|
+
}, Ke = function(e) {
|
|
757
|
+
_(t, e);
|
|
758
|
+
function t(t, n, r) {
|
|
759
|
+
t === void 0 && (t = Infinity), n === void 0 && (n = Infinity), r === void 0 && (r = Ge);
|
|
760
|
+
var i = e.call(this) || this;
|
|
761
|
+
return i._bufferSize = t, i._windowTime = n, i._timestampProvider = r, i._buffer = [], i._infiniteTimeWindow = !0, i._infiniteTimeWindow = n === Infinity, i._bufferSize = Math.max(1, t), i._windowTime = Math.max(1, n), i;
|
|
762
|
+
}
|
|
763
|
+
return t.prototype.next = function(t) {
|
|
764
|
+
var n = this, r = n.isStopped, i = n._buffer, a = n._infiniteTimeWindow, o = n._timestampProvider, s = n._windowTime;
|
|
765
|
+
r || (i.push(t), !a && i.push(o.now() + s)), this._trimBuffer(), e.prototype.next.call(this, t);
|
|
766
|
+
}, t.prototype._subscribe = function(e) {
|
|
767
|
+
this._throwIfClosed(), this._trimBuffer();
|
|
768
|
+
for (var t = this._innerSubscribe(e), n = this, r = n._infiniteTimeWindow, i = n._buffer.slice(), a = 0; a < i.length && !e.closed; a += r ? 1 : 2) e.next(i[a]);
|
|
769
|
+
return this._checkFinalizedStatuses(e), t;
|
|
770
|
+
}, t.prototype._trimBuffer = function() {
|
|
771
|
+
var e = this, t = e._bufferSize, n = e._timestampProvider, r = e._buffer, i = e._infiniteTimeWindow, a = (i ? 1 : 2) * t;
|
|
772
|
+
if (t < Infinity && a < r.length && r.splice(0, r.length - a), !i) {
|
|
773
|
+
for (var o = n.now(), s = 0, c = 1; c < r.length && r[c] <= o; c += 2) s = c;
|
|
774
|
+
s && r.splice(0, s + 1);
|
|
775
|
+
}
|
|
776
|
+
}, t;
|
|
777
|
+
}(M), qe = function(e) {
|
|
778
|
+
_(t, e);
|
|
779
|
+
function t(t, n) {
|
|
780
|
+
return e.call(this) || this;
|
|
781
|
+
}
|
|
782
|
+
return t.prototype.schedule = function(e, t) {
|
|
783
|
+
return t === void 0 && (t = 0), this;
|
|
784
|
+
}, t;
|
|
785
|
+
}(C), N = {
|
|
786
|
+
setInterval: function(e, t) {
|
|
787
|
+
var n = [...arguments].slice(2), r = N.delegate;
|
|
788
|
+
return r?.setInterval ? r.setInterval.apply(r, b([e, t], y(n))) : setInterval.apply(void 0, b([e, t], y(n)));
|
|
789
|
+
},
|
|
790
|
+
clearInterval: function(e) {
|
|
791
|
+
return (N.delegate?.clearInterval || clearInterval)(e);
|
|
792
|
+
},
|
|
793
|
+
delegate: void 0
|
|
794
|
+
}, Je = function(e) {
|
|
795
|
+
_(t, e);
|
|
796
|
+
function t(t, n) {
|
|
797
|
+
var r = e.call(this, t, n) || this;
|
|
798
|
+
return r.scheduler = t, r.work = n, r.pending = !1, r;
|
|
799
|
+
}
|
|
800
|
+
return t.prototype.schedule = function(e, t) {
|
|
801
|
+
if (t === void 0 && (t = 0), this.closed) return this;
|
|
802
|
+
this.state = e;
|
|
803
|
+
var n = this.id, r = this.scheduler;
|
|
804
|
+
return n != null && (this.id = this.recycleAsyncId(r, n, t)), this.pending = !0, this.delay = t, this.id = this.id ?? this.requestAsyncId(r, this.id, t), this;
|
|
805
|
+
}, t.prototype.requestAsyncId = function(e, t, n) {
|
|
806
|
+
return n === void 0 && (n = 0), N.setInterval(e.flush.bind(e, this), n);
|
|
807
|
+
}, t.prototype.recycleAsyncId = function(e, t, n) {
|
|
808
|
+
if (n === void 0 && (n = 0), n != null && this.delay === n && this.pending === !1) return t;
|
|
809
|
+
t != null && N.clearInterval(t);
|
|
810
|
+
}, t.prototype.execute = function(e, t) {
|
|
811
|
+
if (this.closed) return /* @__PURE__ */ Error("executing a cancelled action");
|
|
812
|
+
this.pending = !1;
|
|
813
|
+
var n = this._execute(e, t);
|
|
814
|
+
if (n) return n;
|
|
815
|
+
this.pending === !1 && this.id != null && (this.id = this.recycleAsyncId(this.scheduler, this.id, null));
|
|
816
|
+
}, t.prototype._execute = function(e, t) {
|
|
817
|
+
var n = !1, r;
|
|
818
|
+
try {
|
|
819
|
+
this.work(e);
|
|
820
|
+
} catch (e) {
|
|
821
|
+
n = !0, r = e || /* @__PURE__ */ Error("Scheduled action threw falsy error");
|
|
822
|
+
}
|
|
823
|
+
if (n) return this.unsubscribe(), r;
|
|
824
|
+
}, t.prototype.unsubscribe = function() {
|
|
825
|
+
if (!this.closed) {
|
|
826
|
+
var t = this, n = t.id, r = t.scheduler, i = r.actions;
|
|
827
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, ge(i, this), n != null && (this.id = this.recycleAsyncId(r, n, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
828
|
+
}
|
|
829
|
+
}, t;
|
|
830
|
+
}(qe), Ye = function() {
|
|
831
|
+
function e(t, n) {
|
|
832
|
+
n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
|
|
833
|
+
}
|
|
834
|
+
return e.prototype.schedule = function(e, t, n) {
|
|
835
|
+
return t === void 0 && (t = 0), new this.schedulerActionCtor(this, e).schedule(n, t);
|
|
836
|
+
}, e.now = Ge.now, e;
|
|
837
|
+
}(), Xe = new (function(e) {
|
|
838
|
+
_(t, e);
|
|
839
|
+
function t(t, n) {
|
|
840
|
+
n === void 0 && (n = Ye.now);
|
|
841
|
+
var r = e.call(this, t, n) || this;
|
|
842
|
+
return r.actions = [], r._active = !1, r;
|
|
843
|
+
}
|
|
844
|
+
return t.prototype.flush = function(e) {
|
|
845
|
+
var t = this.actions;
|
|
846
|
+
if (this._active) {
|
|
847
|
+
t.push(e);
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
var n;
|
|
851
|
+
this._active = !0;
|
|
852
|
+
do
|
|
853
|
+
if (n = e.execute(e.state, e.delay)) break;
|
|
854
|
+
while (e = t.shift());
|
|
855
|
+
if (this._active = !1, n) {
|
|
856
|
+
for (; e = t.shift();) e.unsubscribe();
|
|
857
|
+
throw n;
|
|
858
|
+
}
|
|
859
|
+
}, t;
|
|
860
|
+
}(Ye))(Je), Ze = Xe, Qe = new k(function(e) {
|
|
861
|
+
return e.complete();
|
|
862
|
+
});
|
|
863
|
+
function $e(e) {
|
|
864
|
+
return e ? et(e) : Qe;
|
|
871
865
|
}
|
|
866
|
+
function et(e) {
|
|
867
|
+
return new k(function(t) {
|
|
868
|
+
return e.schedule(function() {
|
|
869
|
+
return t.complete();
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
//#endregion
|
|
874
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isScheduler.js
|
|
872
875
|
function tt(e) {
|
|
873
|
-
|
|
876
|
+
return e && S(e.schedule);
|
|
874
877
|
}
|
|
875
|
-
|
|
876
|
-
|
|
878
|
+
//#endregion
|
|
879
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/args.js
|
|
880
|
+
function nt(e) {
|
|
881
|
+
return e[e.length - 1];
|
|
877
882
|
}
|
|
878
|
-
var nt = yn();
|
|
879
883
|
function rt(e) {
|
|
880
|
-
|
|
881
|
-
}
|
|
882
|
-
function it(e) {
|
|
883
|
-
return Zt(this, arguments, function() {
|
|
884
|
-
var n, r, i, o;
|
|
885
|
-
return Qe(this, function(u) {
|
|
886
|
-
switch (u.label) {
|
|
887
|
-
case 0:
|
|
888
|
-
n = e.getReader(), u.label = 1;
|
|
889
|
-
case 1:
|
|
890
|
-
u.trys.push([1, , 9, 10]), u.label = 2;
|
|
891
|
-
case 2:
|
|
892
|
-
return [4, U(n.read())];
|
|
893
|
-
case 3:
|
|
894
|
-
return r = u.sent(), i = r.value, o = r.done, o ? [4, U(void 0)] : [3, 5];
|
|
895
|
-
case 4:
|
|
896
|
-
return [2, u.sent()];
|
|
897
|
-
case 5:
|
|
898
|
-
return [4, U(i)];
|
|
899
|
-
case 6:
|
|
900
|
-
return [4, u.sent()];
|
|
901
|
-
case 7:
|
|
902
|
-
return u.sent(), [3, 2];
|
|
903
|
-
case 8:
|
|
904
|
-
return [3, 10];
|
|
905
|
-
case 9:
|
|
906
|
-
return n.releaseLock(), [7];
|
|
907
|
-
case 10:
|
|
908
|
-
return [2];
|
|
909
|
-
}
|
|
910
|
-
});
|
|
911
|
-
});
|
|
884
|
+
return tt(nt(e)) ? e.pop() : void 0;
|
|
912
885
|
}
|
|
886
|
+
function it(e, t) {
|
|
887
|
+
return typeof nt(e) == "number" ? e.pop() : t;
|
|
888
|
+
}
|
|
889
|
+
//#endregion
|
|
890
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js
|
|
891
|
+
var at = (function(e) {
|
|
892
|
+
return e && typeof e.length == "number" && typeof e != "function";
|
|
893
|
+
});
|
|
894
|
+
//#endregion
|
|
895
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isPromise.js
|
|
913
896
|
function ot(e) {
|
|
914
|
-
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
897
|
+
return S(e?.then);
|
|
898
|
+
}
|
|
899
|
+
//#endregion
|
|
900
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js
|
|
901
|
+
function st(e) {
|
|
902
|
+
return S(e[Ie]);
|
|
903
|
+
}
|
|
904
|
+
//#endregion
|
|
905
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js
|
|
906
|
+
function ct(e) {
|
|
907
|
+
return Symbol.asyncIterator && S(e?.[Symbol.asyncIterator]);
|
|
908
|
+
}
|
|
909
|
+
//#endregion
|
|
910
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js
|
|
911
|
+
function lt(e) {
|
|
912
|
+
return /* @__PURE__ */ TypeError("You provided " + (typeof e == "object" && e ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
913
|
+
}
|
|
914
|
+
//#endregion
|
|
915
|
+
//#region node_modules/rxjs/dist/esm5/internal/symbol/iterator.js
|
|
916
|
+
function ut() {
|
|
917
|
+
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
918
|
+
}
|
|
919
|
+
var dt = ut();
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isIterable.js
|
|
922
|
+
function ft(e) {
|
|
923
|
+
return S(e?.[dt]);
|
|
924
|
+
}
|
|
925
|
+
//#endregion
|
|
926
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js
|
|
927
|
+
function pt(e) {
|
|
928
|
+
return fe(this, arguments, function() {
|
|
929
|
+
var t, n, r, i;
|
|
930
|
+
return de(this, function(a) {
|
|
931
|
+
switch (a.label) {
|
|
932
|
+
case 0: t = e.getReader(), a.label = 1;
|
|
933
|
+
case 1: a.trys.push([
|
|
934
|
+
1,
|
|
935
|
+
,
|
|
936
|
+
9,
|
|
937
|
+
10
|
|
938
|
+
]), a.label = 2;
|
|
939
|
+
case 2: return [4, x(t.read())];
|
|
940
|
+
case 3: return n = a.sent(), r = n.value, i = n.done, i ? [4, x(void 0)] : [3, 5];
|
|
941
|
+
case 4: return [2, a.sent()];
|
|
942
|
+
case 5: return [4, x(r)];
|
|
943
|
+
case 6: return [4, a.sent()];
|
|
944
|
+
case 7: return a.sent(), [3, 2];
|
|
945
|
+
case 8: return [3, 10];
|
|
946
|
+
case 9: return t.releaseLock(), [7];
|
|
947
|
+
case 10: return [2];
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
function mt(e) {
|
|
953
|
+
return S(e?.getReader);
|
|
954
|
+
}
|
|
955
|
+
//#endregion
|
|
956
|
+
//#region node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js
|
|
957
|
+
function P(e) {
|
|
958
|
+
if (e instanceof k) return e;
|
|
959
|
+
if (e != null) {
|
|
960
|
+
if (st(e)) return ht(e);
|
|
961
|
+
if (at(e)) return gt(e);
|
|
962
|
+
if (ot(e)) return _t(e);
|
|
963
|
+
if (ct(e)) return yt(e);
|
|
964
|
+
if (ft(e)) return vt(e);
|
|
965
|
+
if (mt(e)) return bt(e);
|
|
966
|
+
}
|
|
967
|
+
throw lt(e);
|
|
968
|
+
}
|
|
969
|
+
function ht(e) {
|
|
970
|
+
return new k(function(t) {
|
|
971
|
+
var n = e[Ie]();
|
|
972
|
+
if (S(n.subscribe)) return n.subscribe(t);
|
|
973
|
+
throw TypeError("Provided object does not correctly implement Symbol.observable");
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
function gt(e) {
|
|
977
|
+
return new k(function(t) {
|
|
978
|
+
for (var n = 0; n < e.length && !t.closed; n++) t.next(e[n]);
|
|
979
|
+
t.complete();
|
|
980
|
+
});
|
|
949
981
|
}
|
|
982
|
+
function _t(e) {
|
|
983
|
+
return new k(function(t) {
|
|
984
|
+
e.then(function(e) {
|
|
985
|
+
t.closed || (t.next(e), t.complete());
|
|
986
|
+
}, function(e) {
|
|
987
|
+
return t.error(e);
|
|
988
|
+
}).then(null, xe);
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
function vt(e) {
|
|
992
|
+
return new k(function(t) {
|
|
993
|
+
var n, r;
|
|
994
|
+
try {
|
|
995
|
+
for (var i = v(e), a = i.next(); !a.done; a = i.next()) {
|
|
996
|
+
var o = a.value;
|
|
997
|
+
if (t.next(o), t.closed) return;
|
|
998
|
+
}
|
|
999
|
+
} catch (e) {
|
|
1000
|
+
n = { error: e };
|
|
1001
|
+
} finally {
|
|
1002
|
+
try {
|
|
1003
|
+
a && !a.done && (r = i.return) && r.call(i);
|
|
1004
|
+
} finally {
|
|
1005
|
+
if (n) throw n.error;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
t.complete();
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
function yt(e) {
|
|
1012
|
+
return new k(function(t) {
|
|
1013
|
+
xt(e, t).catch(function(e) {
|
|
1014
|
+
return t.error(e);
|
|
1015
|
+
});
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
function bt(e) {
|
|
1019
|
+
return yt(pt(e));
|
|
1020
|
+
}
|
|
1021
|
+
function xt(e, t) {
|
|
1022
|
+
var n, r, i, a;
|
|
1023
|
+
return ue(this, void 0, void 0, function() {
|
|
1024
|
+
var o, s;
|
|
1025
|
+
return de(this, function(c) {
|
|
1026
|
+
switch (c.label) {
|
|
1027
|
+
case 0: c.trys.push([
|
|
1028
|
+
0,
|
|
1029
|
+
5,
|
|
1030
|
+
6,
|
|
1031
|
+
11
|
|
1032
|
+
]), n = pe(e), c.label = 1;
|
|
1033
|
+
case 1: return [4, n.next()];
|
|
1034
|
+
case 2:
|
|
1035
|
+
if (r = c.sent(), r.done) return [3, 4];
|
|
1036
|
+
if (o = r.value, t.next(o), t.closed) return [2];
|
|
1037
|
+
c.label = 3;
|
|
1038
|
+
case 3: return [3, 1];
|
|
1039
|
+
case 4: return [3, 11];
|
|
1040
|
+
case 5: return s = c.sent(), i = { error: s }, [3, 11];
|
|
1041
|
+
case 6: return c.trys.push([
|
|
1042
|
+
6,
|
|
1043
|
+
,
|
|
1044
|
+
9,
|
|
1045
|
+
10
|
|
1046
|
+
]), r && !r.done && (a = n.return) ? [4, a.call(n)] : [3, 8];
|
|
1047
|
+
case 7: c.sent(), c.label = 8;
|
|
1048
|
+
case 8: return [3, 10];
|
|
1049
|
+
case 9:
|
|
1050
|
+
if (i) throw i.error;
|
|
1051
|
+
return [7];
|
|
1052
|
+
case 10: return [7];
|
|
1053
|
+
case 11: return t.complete(), [2];
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
});
|
|
1057
|
+
}
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js
|
|
1060
|
+
function F(e, t, n, r, i) {
|
|
1061
|
+
r === void 0 && (r = 0), i === void 0 && (i = !1);
|
|
1062
|
+
var a = t.schedule(function() {
|
|
1063
|
+
n(), i ? e.add(this.schedule(null, r)) : this.unsubscribe();
|
|
1064
|
+
}, r);
|
|
1065
|
+
if (e.add(a), !i) return a;
|
|
1066
|
+
}
|
|
1067
|
+
//#endregion
|
|
1068
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/observeOn.js
|
|
1069
|
+
function St(e, t) {
|
|
1070
|
+
return t === void 0 && (t = 0), A(function(n, r) {
|
|
1071
|
+
n.subscribe(j(r, function(n) {
|
|
1072
|
+
return F(r, e, function() {
|
|
1073
|
+
return r.next(n);
|
|
1074
|
+
}, t);
|
|
1075
|
+
}, function() {
|
|
1076
|
+
return F(r, e, function() {
|
|
1077
|
+
return r.complete();
|
|
1078
|
+
}, t);
|
|
1079
|
+
}, function(n) {
|
|
1080
|
+
return F(r, e, function() {
|
|
1081
|
+
return r.error(n);
|
|
1082
|
+
}, t);
|
|
1083
|
+
}));
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
//#endregion
|
|
1087
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js
|
|
1088
|
+
function Ct(e, t) {
|
|
1089
|
+
return t === void 0 && (t = 0), A(function(n, r) {
|
|
1090
|
+
r.add(e.schedule(function() {
|
|
1091
|
+
return n.subscribe(r);
|
|
1092
|
+
}, t));
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
//#endregion
|
|
1096
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js
|
|
1097
|
+
function wt(e, t) {
|
|
1098
|
+
return P(e).pipe(Ct(t), St(t));
|
|
1099
|
+
}
|
|
1100
|
+
//#endregion
|
|
1101
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js
|
|
1102
|
+
function Tt(e, t) {
|
|
1103
|
+
return P(e).pipe(Ct(t), St(t));
|
|
1104
|
+
}
|
|
1105
|
+
//#endregion
|
|
1106
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js
|
|
1107
|
+
function Et(e, t) {
|
|
1108
|
+
return new k(function(n) {
|
|
1109
|
+
var r = 0;
|
|
1110
|
+
return t.schedule(function() {
|
|
1111
|
+
r === e.length ? n.complete() : (n.next(e[r++]), n.closed || this.schedule());
|
|
1112
|
+
});
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js
|
|
1117
|
+
function Dt(e, t) {
|
|
1118
|
+
return new k(function(n) {
|
|
1119
|
+
var r;
|
|
1120
|
+
return F(n, t, function() {
|
|
1121
|
+
r = e[dt](), F(n, t, function() {
|
|
1122
|
+
var e, t, i;
|
|
1123
|
+
try {
|
|
1124
|
+
e = r.next(), t = e.value, i = e.done;
|
|
1125
|
+
} catch (e) {
|
|
1126
|
+
n.error(e);
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
i ? n.complete() : n.next(t);
|
|
1130
|
+
}, 0, !0);
|
|
1131
|
+
}), function() {
|
|
1132
|
+
return S(r?.return) && r.return();
|
|
1133
|
+
};
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
//#endregion
|
|
1137
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js
|
|
1138
|
+
function Ot(e, t) {
|
|
1139
|
+
if (!e) throw Error("Iterable cannot be null");
|
|
1140
|
+
return new k(function(n) {
|
|
1141
|
+
F(n, t, function() {
|
|
1142
|
+
var r = e[Symbol.asyncIterator]();
|
|
1143
|
+
F(n, t, function() {
|
|
1144
|
+
r.next().then(function(e) {
|
|
1145
|
+
e.done ? n.complete() : n.next(e.value);
|
|
1146
|
+
});
|
|
1147
|
+
}, 0, !0);
|
|
1148
|
+
});
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
//#endregion
|
|
1152
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js
|
|
1153
|
+
function kt(e, t) {
|
|
1154
|
+
return Ot(pt(e), t);
|
|
1155
|
+
}
|
|
1156
|
+
//#endregion
|
|
1157
|
+
//#region node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js
|
|
1158
|
+
function At(e, t) {
|
|
1159
|
+
if (e != null) {
|
|
1160
|
+
if (st(e)) return wt(e, t);
|
|
1161
|
+
if (at(e)) return Et(e, t);
|
|
1162
|
+
if (ot(e)) return Tt(e, t);
|
|
1163
|
+
if (ct(e)) return Ot(e, t);
|
|
1164
|
+
if (ft(e)) return Dt(e, t);
|
|
1165
|
+
if (mt(e)) return kt(e, t);
|
|
1166
|
+
}
|
|
1167
|
+
throw lt(e);
|
|
1168
|
+
}
|
|
1169
|
+
//#endregion
|
|
1170
|
+
//#region node_modules/rxjs/dist/esm5/internal/observable/from.js
|
|
1171
|
+
function I(e, t) {
|
|
1172
|
+
return t ? At(e, t) : P(e);
|
|
1173
|
+
}
|
|
1174
|
+
//#endregion
|
|
1175
|
+
//#region node_modules/rxjs/dist/esm5/internal/observable/of.js
|
|
1176
|
+
function jt() {
|
|
1177
|
+
var e = [...arguments];
|
|
1178
|
+
return I(e, rt(e));
|
|
1179
|
+
}
|
|
1180
|
+
//#endregion
|
|
1181
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/EmptyError.js
|
|
1182
|
+
var Mt = me(function(e) {
|
|
1183
|
+
return function() {
|
|
1184
|
+
e(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
|
1185
|
+
};
|
|
1186
|
+
});
|
|
1187
|
+
//#endregion
|
|
1188
|
+
//#region node_modules/rxjs/dist/esm5/internal/util/isDate.js
|
|
1189
|
+
function Nt(e) {
|
|
1190
|
+
return e instanceof Date && !isNaN(e);
|
|
1191
|
+
}
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/map.js
|
|
1194
|
+
function L(e, t) {
|
|
1195
|
+
return A(function(n, r) {
|
|
1196
|
+
var i = 0;
|
|
1197
|
+
n.subscribe(j(r, function(n) {
|
|
1198
|
+
r.next(e.call(t, n, i++));
|
|
1199
|
+
}));
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js
|
|
1204
|
+
function Pt(e, t, n, r, i, a, o, s) {
|
|
1205
|
+
var c = [], l = 0, u = 0, d = !1, f = function() {
|
|
1206
|
+
d && !c.length && !l && t.complete();
|
|
1207
|
+
}, p = function(e) {
|
|
1208
|
+
return l < r ? m(e) : c.push(e);
|
|
1209
|
+
}, m = function(e) {
|
|
1210
|
+
a && t.next(e), l++;
|
|
1211
|
+
var s = !1;
|
|
1212
|
+
P(n(e, u++)).subscribe(j(t, function(e) {
|
|
1213
|
+
i?.(e), a ? p(e) : t.next(e);
|
|
1214
|
+
}, function() {
|
|
1215
|
+
s = !0;
|
|
1216
|
+
}, void 0, function() {
|
|
1217
|
+
if (s) try {
|
|
1218
|
+
l--;
|
|
1219
|
+
for (var e = function() {
|
|
1220
|
+
var e = c.shift();
|
|
1221
|
+
o ? F(t, o, function() {
|
|
1222
|
+
return m(e);
|
|
1223
|
+
}) : m(e);
|
|
1224
|
+
}; c.length && l < r;) e();
|
|
1225
|
+
f();
|
|
1226
|
+
} catch (e) {
|
|
1227
|
+
t.error(e);
|
|
1228
|
+
}
|
|
1229
|
+
}));
|
|
1230
|
+
};
|
|
1231
|
+
return e.subscribe(j(t, p, function() {
|
|
1232
|
+
d = !0, f();
|
|
1233
|
+
})), function() {
|
|
1234
|
+
s?.();
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
//#endregion
|
|
1238
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js
|
|
1239
|
+
function Ft(e, t, n) {
|
|
1240
|
+
return n === void 0 && (n = Infinity), S(t) ? Ft(function(n, r) {
|
|
1241
|
+
return L(function(e, i) {
|
|
1242
|
+
return t(n, e, r, i);
|
|
1243
|
+
})(P(e(n, r)));
|
|
1244
|
+
}, n) : (typeof t == "number" && (n = t), A(function(t, r) {
|
|
1245
|
+
return Pt(t, r, e, n);
|
|
1246
|
+
}));
|
|
1247
|
+
}
|
|
1248
|
+
//#endregion
|
|
1249
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
|
|
1250
|
+
function It(e) {
|
|
1251
|
+
return e === void 0 && (e = Infinity), Ft(O, e);
|
|
1252
|
+
}
|
|
1253
|
+
//#endregion
|
|
1254
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/concatAll.js
|
|
1255
|
+
function Lt() {
|
|
1256
|
+
return It(1);
|
|
1257
|
+
}
|
|
1258
|
+
//#endregion
|
|
1259
|
+
//#region node_modules/rxjs/dist/esm5/internal/observable/concat.js
|
|
1260
|
+
function Rt() {
|
|
1261
|
+
var e = [...arguments];
|
|
1262
|
+
return Lt()(I(e, rt(e)));
|
|
1263
|
+
}
|
|
1264
|
+
//#endregion
|
|
1265
|
+
//#region node_modules/rxjs/dist/esm5/internal/observable/timer.js
|
|
1266
|
+
function zt(e, t, n) {
|
|
1267
|
+
e === void 0 && (e = 0), n === void 0 && (n = Ze);
|
|
1268
|
+
var r = -1;
|
|
1269
|
+
return t != null && (tt(t) ? n = t : r = t), new k(function(t) {
|
|
1270
|
+
var i = Nt(e) ? +e - n.now() : e;
|
|
1271
|
+
i < 0 && (i = 0);
|
|
1272
|
+
var a = 0;
|
|
1273
|
+
return n.schedule(function() {
|
|
1274
|
+
t.closed || (t.next(a++), 0 <= r ? this.schedule(void 0, r) : t.complete());
|
|
1275
|
+
}, i);
|
|
1276
|
+
});
|
|
1277
|
+
}
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#region node_modules/rxjs/dist/esm5/internal/observable/merge.js
|
|
1280
|
+
function Bt() {
|
|
1281
|
+
var e = [...arguments], t = rt(e), n = it(e, Infinity), r = e;
|
|
1282
|
+
return r.length ? r.length === 1 ? P(r[0]) : It(n)(I(r, t)) : Qe;
|
|
1283
|
+
}
|
|
1284
|
+
//#endregion
|
|
1285
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/filter.js
|
|
1286
|
+
function Vt(e, t) {
|
|
1287
|
+
return A(function(n, r) {
|
|
1288
|
+
var i = 0;
|
|
1289
|
+
n.subscribe(j(r, function(n) {
|
|
1290
|
+
return e.call(t, n, i++) && r.next(n);
|
|
1291
|
+
}));
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
//#endregion
|
|
1295
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/catchError.js
|
|
1296
|
+
function Ht(e) {
|
|
1297
|
+
return A(function(t, n) {
|
|
1298
|
+
var r = null, i = !1, a;
|
|
1299
|
+
r = t.subscribe(j(n, void 0, void 0, function(o) {
|
|
1300
|
+
a = P(e(o, Ht(e)(t))), r ? (r.unsubscribe(), r = null, a.subscribe(n)) : i = !0;
|
|
1301
|
+
})), i && (r.unsubscribe(), r = null, a.subscribe(n));
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js
|
|
1306
|
+
function Ut(e, t, n, r, i) {
|
|
1307
|
+
return function(a, o) {
|
|
1308
|
+
var s = n, c = t, l = 0;
|
|
1309
|
+
a.subscribe(j(o, function(t) {
|
|
1310
|
+
var n = l++;
|
|
1311
|
+
c = s ? e(c, t, n) : (s = !0, t), r && o.next(c);
|
|
1312
|
+
}, i && (function() {
|
|
1313
|
+
s && o.next(c), o.complete();
|
|
1314
|
+
})));
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js
|
|
1319
|
+
function Wt(e) {
|
|
1320
|
+
return A(function(t, n) {
|
|
1321
|
+
var r = !1;
|
|
1322
|
+
t.subscribe(j(n, function(e) {
|
|
1323
|
+
r = !0, n.next(e);
|
|
1324
|
+
}, function() {
|
|
1325
|
+
r || n.next(e), n.complete();
|
|
1326
|
+
}));
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
//#endregion
|
|
1330
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/take.js
|
|
1331
|
+
function Gt(e) {
|
|
1332
|
+
return e <= 0 ? function() {
|
|
1333
|
+
return Qe;
|
|
1334
|
+
} : A(function(t, n) {
|
|
1335
|
+
var r = 0;
|
|
1336
|
+
t.subscribe(j(n, function(t) {
|
|
1337
|
+
++r <= e && (n.next(t), e <= r && n.complete());
|
|
1338
|
+
}));
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js
|
|
1343
|
+
function Kt() {
|
|
1344
|
+
return A(function(e, t) {
|
|
1345
|
+
e.subscribe(j(t, Se));
|
|
1346
|
+
});
|
|
1347
|
+
}
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/mapTo.js
|
|
1350
|
+
function qt(e) {
|
|
1351
|
+
return L(function() {
|
|
1352
|
+
return e;
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
//#endregion
|
|
1356
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js
|
|
1357
|
+
function Jt(e, t) {
|
|
1358
|
+
return t ? function(n) {
|
|
1359
|
+
return Rt(t.pipe(Gt(1), Kt()), n.pipe(Jt(e)));
|
|
1360
|
+
} : Ft(function(t, n) {
|
|
1361
|
+
return P(e(t, n)).pipe(Gt(1), qt(t));
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/delay.js
|
|
1366
|
+
function Yt(e, t) {
|
|
1367
|
+
t === void 0 && (t = Xe);
|
|
1368
|
+
var n = zt(e, t);
|
|
1369
|
+
return Jt(function() {
|
|
1370
|
+
return n;
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
//#endregion
|
|
1374
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js
|
|
1375
|
+
function Xt(e, t) {
|
|
1376
|
+
return t === void 0 && (t = O), e ??= Zt, A(function(n, r) {
|
|
1377
|
+
var i, a = !0;
|
|
1378
|
+
n.subscribe(j(r, function(n) {
|
|
1379
|
+
var o = t(n);
|
|
1380
|
+
(a || !e(i, o)) && (a = !1, i = o, r.next(n));
|
|
1381
|
+
}));
|
|
1382
|
+
});
|
|
1383
|
+
}
|
|
1384
|
+
function Zt(e, t) {
|
|
1385
|
+
return e === t;
|
|
1386
|
+
}
|
|
1387
|
+
//#endregion
|
|
1388
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js
|
|
1389
|
+
function Qt(e) {
|
|
1390
|
+
return e === void 0 && (e = $t), A(function(t, n) {
|
|
1391
|
+
var r = !1;
|
|
1392
|
+
t.subscribe(j(n, function(e) {
|
|
1393
|
+
r = !0, n.next(e);
|
|
1394
|
+
}, function() {
|
|
1395
|
+
return r ? n.complete() : n.error(e());
|
|
1396
|
+
}));
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
function $t() {
|
|
1400
|
+
return new Mt();
|
|
1401
|
+
}
|
|
1402
|
+
//#endregion
|
|
1403
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/first.js
|
|
1404
|
+
function en(e, t) {
|
|
1405
|
+
var n = arguments.length >= 2;
|
|
1406
|
+
return function(r) {
|
|
1407
|
+
return r.pipe(e ? Vt(function(t, n) {
|
|
1408
|
+
return e(t, n, r);
|
|
1409
|
+
}) : O, Gt(1), n ? Wt(t) : Qt(function() {
|
|
1410
|
+
return new Mt();
|
|
1411
|
+
}));
|
|
1412
|
+
};
|
|
1413
|
+
}
|
|
1414
|
+
//#endregion
|
|
1415
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/scan.js
|
|
1416
|
+
function tn(e, t) {
|
|
1417
|
+
return A(Ut(e, t, arguments.length >= 2, !0));
|
|
1418
|
+
}
|
|
1419
|
+
//#endregion
|
|
1420
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/share.js
|
|
1421
|
+
function nn(e) {
|
|
1422
|
+
e === void 0 && (e = {});
|
|
1423
|
+
var t = e.connector, n = t === void 0 ? function() {
|
|
1424
|
+
return new M();
|
|
1425
|
+
} : t, r = e.resetOnError, i = r === void 0 ? !0 : r, a = e.resetOnComplete, o = a === void 0 ? !0 : a, s = e.resetOnRefCountZero, c = s === void 0 ? !0 : s;
|
|
1426
|
+
return function(e) {
|
|
1427
|
+
var t, r, a, s = 0, l = !1, u = !1, d = function() {
|
|
1428
|
+
r?.unsubscribe(), r = void 0;
|
|
1429
|
+
}, f = function() {
|
|
1430
|
+
d(), t = a = void 0, l = u = !1;
|
|
1431
|
+
}, p = function() {
|
|
1432
|
+
var e = t;
|
|
1433
|
+
f(), e?.unsubscribe();
|
|
1434
|
+
};
|
|
1435
|
+
return A(function(e, m) {
|
|
1436
|
+
s++, !u && !l && d();
|
|
1437
|
+
var h = a ??= n();
|
|
1438
|
+
m.add(function() {
|
|
1439
|
+
s--, s === 0 && !u && !l && (r = rn(p, c));
|
|
1440
|
+
}), h.subscribe(m), !t && s > 0 && (t = new D({
|
|
1441
|
+
next: function(e) {
|
|
1442
|
+
return h.next(e);
|
|
1443
|
+
},
|
|
1444
|
+
error: function(e) {
|
|
1445
|
+
u = !0, d(), r = rn(f, i, e), h.error(e);
|
|
1446
|
+
},
|
|
1447
|
+
complete: function() {
|
|
1448
|
+
l = !0, d(), r = rn(f, o), h.complete();
|
|
1449
|
+
}
|
|
1450
|
+
}), P(e).subscribe(t));
|
|
1451
|
+
})(e);
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
function rn(e, t) {
|
|
1455
|
+
var n = [...arguments].slice(2);
|
|
1456
|
+
if (t === !0) {
|
|
1457
|
+
e();
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
if (t !== !1) {
|
|
1461
|
+
var r = new D({ next: function() {
|
|
1462
|
+
r.unsubscribe(), e();
|
|
1463
|
+
} });
|
|
1464
|
+
return P(t.apply(void 0, b([], y(n)))).subscribe(r);
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
//#endregion
|
|
1468
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js
|
|
1469
|
+
function an(e, t, n) {
|
|
1470
|
+
var r, i, a, o, s = !1;
|
|
1471
|
+
return e && typeof e == "object" ? (r = e.bufferSize, o = r === void 0 ? Infinity : r, i = e.windowTime, t = i === void 0 ? Infinity : i, a = e.refCount, s = a === void 0 ? !1 : a, n = e.scheduler) : o = e ?? Infinity, nn({
|
|
1472
|
+
connector: function() {
|
|
1473
|
+
return new Ke(o, t, n);
|
|
1474
|
+
},
|
|
1475
|
+
resetOnError: !0,
|
|
1476
|
+
resetOnComplete: !1,
|
|
1477
|
+
resetOnRefCountZero: s
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
//#endregion
|
|
1481
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/switchMap.js
|
|
1482
|
+
function on(e, t) {
|
|
1483
|
+
return A(function(n, r) {
|
|
1484
|
+
var i = null, a = 0, o = !1, s = function() {
|
|
1485
|
+
return o && !i && r.complete();
|
|
1486
|
+
};
|
|
1487
|
+
n.subscribe(j(r, function(n) {
|
|
1488
|
+
i?.unsubscribe();
|
|
1489
|
+
var o = 0, c = a++;
|
|
1490
|
+
P(e(n, c)).subscribe(i = j(r, function(e) {
|
|
1491
|
+
return r.next(t ? t(n, e, c, o++) : e);
|
|
1492
|
+
}, function() {
|
|
1493
|
+
i = null, s();
|
|
1494
|
+
}));
|
|
1495
|
+
}, function() {
|
|
1496
|
+
o = !0, s();
|
|
1497
|
+
}));
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
//#endregion
|
|
1501
|
+
//#region node_modules/rxjs/dist/esm5/internal/operators/tap.js
|
|
1502
|
+
function sn(e, t, n) {
|
|
1503
|
+
var r = S(e) || t || n ? {
|
|
1504
|
+
next: e,
|
|
1505
|
+
error: t,
|
|
1506
|
+
complete: n
|
|
1507
|
+
} : e;
|
|
1508
|
+
return r ? A(function(e, t) {
|
|
1509
|
+
var n;
|
|
1510
|
+
(n = r.subscribe) == null || n.call(r);
|
|
1511
|
+
var i = !0;
|
|
1512
|
+
e.subscribe(j(t, function(e) {
|
|
1513
|
+
var n;
|
|
1514
|
+
(n = r.next) == null || n.call(r, e), t.next(e);
|
|
1515
|
+
}, function() {
|
|
1516
|
+
var e;
|
|
1517
|
+
i = !1, (e = r.complete) == null || e.call(r), t.complete();
|
|
1518
|
+
}, function(e) {
|
|
1519
|
+
var n;
|
|
1520
|
+
i = !1, (n = r.error) == null || n.call(r, e), t.error(e);
|
|
1521
|
+
}, function() {
|
|
1522
|
+
var e, t;
|
|
1523
|
+
i && ((e = r.unsubscribe) == null || e.call(r)), (t = r.finalize) == null || t.call(r);
|
|
1524
|
+
}));
|
|
1525
|
+
}) : O;
|
|
1526
|
+
}
|
|
1527
|
+
//#endregion
|
|
1528
|
+
//#region node_modules/rxfire/auth/index.esm.js
|
|
1529
|
+
function cn(e) {
|
|
1530
|
+
return new k(function(n) {
|
|
1531
|
+
return { unsubscribe: t(e, n.next.bind(n), n.error.bind(n), n.complete.bind(n)) };
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region src/firebaseApp.tsx
|
|
1536
|
+
var ln = "[DEFAULT]", un = e.createContext(void 0), dn = e.createContext(!1), fn = "4.2.4", pn = (e, t) => e === t || [...Object.keys(e), ...Object.keys(t)].every((n) => e[n] === t[n]);
|
|
1537
|
+
function mn(t) {
|
|
1538
|
+
let { firebaseConfig: a, appName: o, suspense: s } = t, c = e.useMemo(() => {
|
|
1539
|
+
if (t.firebaseApp) return t.firebaseApp;
|
|
1540
|
+
let s = n().find((e) => e.name === (o || ln));
|
|
1541
|
+
if (s) {
|
|
1542
|
+
if (a && pn(s.options, a)) return s;
|
|
1543
|
+
throw Error(`Does not match the options already provided to the ${o || "default"} firebase app instance, give this new instance a different appName.`);
|
|
1544
|
+
} else {
|
|
1545
|
+
if (!a) throw Error("No firebaseConfig provided");
|
|
1546
|
+
return i("react", e.version || "unknown"), i("reactfire", fn), r(a, o);
|
|
1547
|
+
}
|
|
1548
|
+
}, [
|
|
1549
|
+
t.firebaseApp,
|
|
1550
|
+
a,
|
|
1551
|
+
o
|
|
1552
|
+
]);
|
|
1553
|
+
return e.createElement(un.Provider, { value: c }, e.createElement(dn.Provider, Object.assign({ value: s ?? !1 }, t)));
|
|
1554
|
+
}
|
|
1555
|
+
function hn() {
|
|
1556
|
+
return e.useContext(dn) ?? !1;
|
|
1557
|
+
}
|
|
1558
|
+
function R(t) {
|
|
1559
|
+
let n = e.useContext(dn);
|
|
1560
|
+
return t === void 0 ? n : t;
|
|
1561
|
+
}
|
|
1562
|
+
function gn() {
|
|
1563
|
+
let t = e.useContext(un);
|
|
1564
|
+
if (!t) throw Error("Cannot call useFirebaseApp unless your component is within a FirebaseAppProvider");
|
|
1565
|
+
return t;
|
|
1566
|
+
}
|
|
1567
|
+
//#endregion
|
|
1568
|
+
//#region src/auth.tsx
|
|
950
1569
|
function _n(e) {
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
function
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}, t);
|
|
1053
|
-
}));
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
function at(e, t) {
|
|
1057
|
-
return t === void 0 && (t = 0), _(function(n, r) {
|
|
1058
|
-
r.add(e.schedule(function() {
|
|
1059
|
-
return n.subscribe(r);
|
|
1060
|
-
}, t));
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
|
-
function xn(e, t) {
|
|
1064
|
-
return C(e).pipe(at(t), st(t));
|
|
1570
|
+
return ue(this, void 0, void 0, function* () {
|
|
1571
|
+
let t = yield e();
|
|
1572
|
+
return W(cn(t), `auth:user:${t.name}`).toPromise();
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1575
|
+
function vn(e) {
|
|
1576
|
+
let t = Jr(), n = `auth:user:${t.name}`, r = cn(t), i = Object.assign({}, e);
|
|
1577
|
+
return t.currentUser && !("initialData" in i) && !("startWithValue" in i) && (i.initialData = t.currentUser), G(n, r, i);
|
|
1578
|
+
}
|
|
1579
|
+
function yn(e, t = !1, n) {
|
|
1580
|
+
if (!e) throw Error("you must provide a user");
|
|
1581
|
+
return G(`auth:idTokenResult:${e.uid}:forceRefresh=${t}`, I(e.getIdTokenResult(t)), n);
|
|
1582
|
+
}
|
|
1583
|
+
function bn(e) {
|
|
1584
|
+
if (e?.hasOwnProperty("requiredClaims") && e?.hasOwnProperty("validateCustomClaims")) throw Error("Cannot have both \"requiredClaims\" and \"validateCustomClaims\". Use one or the other.");
|
|
1585
|
+
let t = Jr(), n = `auth:signInCheck:${t.name}::forceRefresh:${!!e?.forceRefresh}`;
|
|
1586
|
+
e?.forceRefresh && (n = `${n}:forceRefresh:${e.forceRefresh}`), e?.hasOwnProperty("requiredClaims") ? n = `${n}:requiredClaims:${JSON.stringify(e.requiredClaims)}` : e?.hasOwnProperty("validateCustomClaims") && (n = `${n}:validateCustomClaims:${JSON.stringify(e.validateCustomClaims)}`);
|
|
1587
|
+
let r = cn(t).pipe(on((t) => t ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? I(t.getIdTokenResult(e?.forceRefresh ?? !1)).pipe(L((n) => {
|
|
1588
|
+
let r;
|
|
1589
|
+
r = e.hasOwnProperty("requiredClaims") ? xn(e.requiredClaims) : e.validateCustomClaims;
|
|
1590
|
+
let { hasRequiredClaims: i, errors: a } = r(n.claims);
|
|
1591
|
+
return {
|
|
1592
|
+
signedIn: !0,
|
|
1593
|
+
hasRequiredClaims: i,
|
|
1594
|
+
errors: a,
|
|
1595
|
+
user: t
|
|
1596
|
+
};
|
|
1597
|
+
})) : jt({
|
|
1598
|
+
signedIn: !0,
|
|
1599
|
+
hasRequiredClaims: !0,
|
|
1600
|
+
errors: {},
|
|
1601
|
+
user: t
|
|
1602
|
+
}) : jt({
|
|
1603
|
+
signedIn: !1,
|
|
1604
|
+
hasRequiredClaims: !1,
|
|
1605
|
+
errors: {},
|
|
1606
|
+
user: null
|
|
1607
|
+
})));
|
|
1608
|
+
return G(n, r, e);
|
|
1609
|
+
}
|
|
1610
|
+
function xn(e) {
|
|
1611
|
+
return function(t) {
|
|
1612
|
+
let n = {};
|
|
1613
|
+
return Object.keys(e).forEach((r) => {
|
|
1614
|
+
e[r] !== t[r] && (n[r] = [new di("auth/missing-claim", `Expected "${e[r]}", but user has "${t[r]}" instead`)]);
|
|
1615
|
+
}), {
|
|
1616
|
+
hasRequiredClaims: Object.keys(n).length === 0,
|
|
1617
|
+
errors: n
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
function Sn({ user: t, fallback: n, children: r, requiredClaims: i }) {
|
|
1622
|
+
let { data: a, status: o, error: s } = yn(t, !1);
|
|
1623
|
+
if (o === "loading") throw Error("ClaimsCheck must be run in Suspense mode");
|
|
1624
|
+
if (o === "error") throw s;
|
|
1625
|
+
let { claims: c } = a, l = {};
|
|
1626
|
+
return R() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), i && Object.keys(i).forEach((e) => {
|
|
1627
|
+
i[e] !== c[e] && (l[e] = {
|
|
1628
|
+
expected: i[e],
|
|
1629
|
+
actual: c[e]?.toString()
|
|
1630
|
+
});
|
|
1631
|
+
}), Object.keys(l).length === 0 ? e.createElement(e.Fragment, null, r) : e.createElement(e.Fragment, null, n);
|
|
1632
|
+
}
|
|
1633
|
+
function Cn({ fallback: t, children: n, requiredClaims: r }) {
|
|
1634
|
+
let { data: i } = vn();
|
|
1635
|
+
return R() || console.warn("AuthCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), i ? r ? e.createElement(Sn, {
|
|
1636
|
+
user: i,
|
|
1637
|
+
fallback: t,
|
|
1638
|
+
requiredClaims: r
|
|
1639
|
+
}, n) : e.createElement(e.Fragment, null, n) : e.createElement(e.Fragment, null, t);
|
|
1640
|
+
}
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region node_modules/rxfire/database/index.esm.js
|
|
1643
|
+
var z, B;
|
|
1644
|
+
(function(e) {
|
|
1645
|
+
e.added = "child_added", e.removed = "child_removed", e.changed = "child_changed", e.moved = "child_moved", e.value = "value";
|
|
1646
|
+
})(B ||= {});
|
|
1647
|
+
var wn = Object.freeze((z = {}, z[B.added] = s, z[B.removed] = u, z[B.changed] = c, z[B.moved] = l, z[B.value] = d, z));
|
|
1648
|
+
function Tn(e, t) {
|
|
1649
|
+
return new k(function(n) {
|
|
1650
|
+
var r = wn[t](e, function(e, r) {
|
|
1651
|
+
n.next({
|
|
1652
|
+
snapshot: e,
|
|
1653
|
+
prevKey: r,
|
|
1654
|
+
event: t
|
|
1655
|
+
});
|
|
1656
|
+
}, n.error.bind(n));
|
|
1657
|
+
return { unsubscribe: function() {
|
|
1658
|
+
o(e, t, r);
|
|
1659
|
+
} };
|
|
1660
|
+
}).pipe(Yt(0));
|
|
1661
|
+
}
|
|
1662
|
+
var En = function() {
|
|
1663
|
+
return En = Object.assign || function(e) {
|
|
1664
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1665
|
+
return e;
|
|
1666
|
+
}, En.apply(this, arguments);
|
|
1667
|
+
};
|
|
1668
|
+
function Dn(e, t, n) {
|
|
1669
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
1670
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
1065
1671
|
}
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1077
|
-
function kn(e, t) {
|
|
1078
|
-
return new y(function(n) {
|
|
1079
|
-
var r;
|
|
1080
|
-
return P(n, t, function() {
|
|
1081
|
-
r = e[nt](), P(n, t, function() {
|
|
1082
|
-
var i, o, u;
|
|
1083
|
-
try {
|
|
1084
|
-
i = r.next(), o = i.value, u = i.done;
|
|
1085
|
-
} catch (s) {
|
|
1086
|
-
n.error(s);
|
|
1087
|
-
return;
|
|
1088
|
-
}
|
|
1089
|
-
u ? n.complete() : n.next(o);
|
|
1090
|
-
}, 0, !0);
|
|
1091
|
-
}), function() {
|
|
1092
|
-
return b(r == null ? void 0 : r.return) && r.return();
|
|
1093
|
-
};
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
function ct(e, t) {
|
|
1097
|
-
if (!e)
|
|
1098
|
-
throw new Error("Iterable cannot be null");
|
|
1099
|
-
return new y(function(n) {
|
|
1100
|
-
P(n, t, function() {
|
|
1101
|
-
var r = e[Symbol.asyncIterator]();
|
|
1102
|
-
P(n, t, function() {
|
|
1103
|
-
r.next().then(function(i) {
|
|
1104
|
-
i.done ? n.complete() : n.next(i.value);
|
|
1105
|
-
});
|
|
1106
|
-
}, 0, !0);
|
|
1107
|
-
});
|
|
1108
|
-
});
|
|
1672
|
+
function On(e) {
|
|
1673
|
+
return (e == null || e.length === 0) && (e = [
|
|
1674
|
+
B.added,
|
|
1675
|
+
B.removed,
|
|
1676
|
+
B.changed,
|
|
1677
|
+
B.moved
|
|
1678
|
+
]), e;
|
|
1679
|
+
}
|
|
1680
|
+
function kn(e) {
|
|
1681
|
+
return Tn(e, B.value);
|
|
1109
1682
|
}
|
|
1110
1683
|
function An(e, t) {
|
|
1111
|
-
|
|
1684
|
+
return t === void 0 && (t = {}), Tn(e, B.value).pipe(L(function(e) {
|
|
1685
|
+
return jn(e, t);
|
|
1686
|
+
}));
|
|
1687
|
+
}
|
|
1688
|
+
function jn(e, t) {
|
|
1689
|
+
var n;
|
|
1690
|
+
t === void 0 && (t = {});
|
|
1691
|
+
var r = e.snapshot.val();
|
|
1692
|
+
return !e.snapshot.exists() || typeof r != "object" ? r : En(En({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
|
|
1693
|
+
}
|
|
1694
|
+
function Mn(e) {
|
|
1695
|
+
return I(a(e)).pipe(L(function(e) {
|
|
1696
|
+
return {
|
|
1697
|
+
snapshot: e,
|
|
1698
|
+
prevKey: null,
|
|
1699
|
+
event: B.value
|
|
1700
|
+
};
|
|
1701
|
+
}));
|
|
1702
|
+
}
|
|
1703
|
+
function Nn(e, t) {
|
|
1704
|
+
t === void 0 && (t = {});
|
|
1705
|
+
var n = On(t.events);
|
|
1706
|
+
return Mn(e).pipe(on(function(t) {
|
|
1707
|
+
var r = [jt(t)];
|
|
1708
|
+
return n.forEach(function(t) {
|
|
1709
|
+
r.push(Tn(e, t));
|
|
1710
|
+
}), Bt.apply(void 0, r).pipe(tn(Ln, []));
|
|
1711
|
+
}), Xt());
|
|
1712
|
+
}
|
|
1713
|
+
function Pn(e, t) {
|
|
1714
|
+
return t === void 0 && (t = {}), Nn(e).pipe(L(function(e) {
|
|
1715
|
+
return e.map(function(e) {
|
|
1716
|
+
return jn(e, t);
|
|
1717
|
+
});
|
|
1718
|
+
}));
|
|
1112
1719
|
}
|
|
1113
1720
|
function Fn(e, t) {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
return xn(e, t);
|
|
1117
|
-
if (Ze(e))
|
|
1118
|
-
return On(e, t);
|
|
1119
|
-
if (Be(e))
|
|
1120
|
-
return In(e, t);
|
|
1121
|
-
if (et(e))
|
|
1122
|
-
return ct(e, t);
|
|
1123
|
-
if (rt(e))
|
|
1124
|
-
return kn(e, t);
|
|
1125
|
-
if (ot(e))
|
|
1126
|
-
return An(e, t);
|
|
1127
|
-
}
|
|
1128
|
-
throw tt(e);
|
|
1129
|
-
}
|
|
1130
|
-
function O(e, t) {
|
|
1131
|
-
return t ? Fn(e, t) : C(e);
|
|
1132
|
-
}
|
|
1133
|
-
function X() {
|
|
1134
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1135
|
-
e[t] = arguments[t];
|
|
1136
|
-
var n = _e(e);
|
|
1137
|
-
return O(e, n);
|
|
1138
|
-
}
|
|
1139
|
-
var lt = pe(function(e) {
|
|
1140
|
-
return function() {
|
|
1141
|
-
e(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
|
1142
|
-
};
|
|
1143
|
-
});
|
|
1144
|
-
function Pn(e) {
|
|
1145
|
-
return e instanceof Date && !isNaN(e);
|
|
1146
|
-
}
|
|
1147
|
-
function E(e, t) {
|
|
1148
|
-
return _(function(n, r) {
|
|
1149
|
-
var i = 0;
|
|
1150
|
-
n.subscribe(w(r, function(o) {
|
|
1151
|
-
r.next(e.call(t, o, i++));
|
|
1152
|
-
}));
|
|
1153
|
-
});
|
|
1154
|
-
}
|
|
1155
|
-
function $n(e, t, n, r, i, o, u, s) {
|
|
1156
|
-
var a = [], c = 0, l = 0, d = !1, v = function() {
|
|
1157
|
-
d && !a.length && !c && t.complete();
|
|
1158
|
-
}, p = function(h) {
|
|
1159
|
-
return c < r ? S(h) : a.push(h);
|
|
1160
|
-
}, S = function(h) {
|
|
1161
|
-
o && t.next(h), c++;
|
|
1162
|
-
var $ = !1;
|
|
1163
|
-
C(n(h, l++)).subscribe(w(t, function(x) {
|
|
1164
|
-
i == null || i(x), o ? p(x) : t.next(x);
|
|
1165
|
-
}, function() {
|
|
1166
|
-
$ = !0;
|
|
1167
|
-
}, void 0, function() {
|
|
1168
|
-
if ($)
|
|
1169
|
-
try {
|
|
1170
|
-
c--;
|
|
1171
|
-
for (var x = function() {
|
|
1172
|
-
var j = a.shift();
|
|
1173
|
-
u ? P(t, u, function() {
|
|
1174
|
-
return S(j);
|
|
1175
|
-
}) : S(j);
|
|
1176
|
-
}; a.length && c < r; )
|
|
1177
|
-
x();
|
|
1178
|
-
v();
|
|
1179
|
-
} catch (j) {
|
|
1180
|
-
t.error(j);
|
|
1181
|
-
}
|
|
1182
|
-
}));
|
|
1183
|
-
};
|
|
1184
|
-
return e.subscribe(w(t, p, function() {
|
|
1185
|
-
d = !0, v();
|
|
1186
|
-
})), function() {
|
|
1187
|
-
s == null || s();
|
|
1188
|
-
};
|
|
1189
|
-
}
|
|
1190
|
-
function Se(e, t, n) {
|
|
1191
|
-
return n === void 0 && (n = 1 / 0), b(t) ? Se(function(r, i) {
|
|
1192
|
-
return E(function(o, u) {
|
|
1193
|
-
return t(r, o, i, u);
|
|
1194
|
-
})(C(e(r, i)));
|
|
1195
|
-
}, n) : (typeof t == "number" && (n = t), _(function(r, i) {
|
|
1196
|
-
return $n(r, i, e, n);
|
|
1197
|
-
}));
|
|
1721
|
+
for (var n = e.length, r = 0; r < n; r++) if (e[r].snapshot.key === t) return r;
|
|
1722
|
+
return -1;
|
|
1198
1723
|
}
|
|
1199
|
-
function
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
function
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1724
|
+
function In(e, t) {
|
|
1725
|
+
if (t == null) return 0;
|
|
1726
|
+
var n = Fn(e, t);
|
|
1727
|
+
return n === -1 ? e.length : n + 1;
|
|
1728
|
+
}
|
|
1729
|
+
function Ln(e, t) {
|
|
1730
|
+
var n = t.snapshot, r = t.prevKey, i = t.event, a = n.key, o = Fn(e, a), s = In(e, r || void 0);
|
|
1731
|
+
switch (i) {
|
|
1732
|
+
case B.value:
|
|
1733
|
+
if (t.snapshot && t.snapshot.exists()) {
|
|
1734
|
+
var c = null;
|
|
1735
|
+
t.snapshot.forEach(function(t) {
|
|
1736
|
+
var n = {
|
|
1737
|
+
snapshot: t,
|
|
1738
|
+
event: B.value,
|
|
1739
|
+
prevKey: c
|
|
1740
|
+
};
|
|
1741
|
+
return c = t.key, e = Dn(Dn([], e, !0), [n], !1), !1;
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
return e;
|
|
1745
|
+
case B.added:
|
|
1746
|
+
if (o > -1) {
|
|
1747
|
+
var l = e[o - 1];
|
|
1748
|
+
(l && l.snapshot.key || null) !== r && (e = e.filter(function(e) {
|
|
1749
|
+
return e.snapshot.key !== n.key;
|
|
1750
|
+
}), e.splice(s, 0, t));
|
|
1751
|
+
} else if (r == null) return Dn([t], e, !0);
|
|
1752
|
+
else e = e.slice(), e.splice(s, 0, t);
|
|
1753
|
+
return e;
|
|
1754
|
+
case B.removed: return e.filter(function(e) {
|
|
1755
|
+
return e.snapshot.key !== n.key;
|
|
1756
|
+
});
|
|
1757
|
+
case B.changed: return e.map(function(e) {
|
|
1758
|
+
return e.snapshot.key === a ? t : e;
|
|
1759
|
+
});
|
|
1760
|
+
case B.moved:
|
|
1761
|
+
if (o > -1) {
|
|
1762
|
+
var u = e.splice(o, 1)[0];
|
|
1763
|
+
return e = e.slice(), e.splice(s, 0, u), e;
|
|
1764
|
+
}
|
|
1765
|
+
return e;
|
|
1766
|
+
default: return e;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
//#endregion
|
|
1770
|
+
//#region src/database.tsx
|
|
1771
|
+
var Rn = globalThis._reactFireDatabaseCachedQueries || [];
|
|
1772
|
+
globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries = Rn);
|
|
1773
|
+
function zn(e) {
|
|
1774
|
+
let t = Rn.findIndex((t) => t.isEqual(e));
|
|
1775
|
+
return t > -1 ? t : Rn.push(e) - 1;
|
|
1776
|
+
}
|
|
1777
|
+
function Bn(e, t) {
|
|
1778
|
+
return G(`database:object:${e.toString()}`, kn(e), t);
|
|
1779
|
+
}
|
|
1780
|
+
function Vn(e, t) {
|
|
1781
|
+
let n = t ? $(t) : "NO_ID_FIELD";
|
|
1782
|
+
return G(`database:objectVal:${e.toString()}:idField=${n}`, An(e, { keyField: n }), t);
|
|
1783
|
+
}
|
|
1784
|
+
function Hn(e, t) {
|
|
1785
|
+
return G(`database:list:${zn(e)}`, Nn(e), t);
|
|
1227
1786
|
}
|
|
1228
1787
|
function Un(e, t) {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
var d = c++;
|
|
1249
|
-
a = s ? e(a, l, d) : (s = !0, l), r && u.next(a);
|
|
1250
|
-
}, i && function() {
|
|
1251
|
-
s && u.next(a), u.complete();
|
|
1252
|
-
}));
|
|
1253
|
-
};
|
|
1254
|
-
}
|
|
1255
|
-
function Mn(e, t) {
|
|
1256
|
-
return t === void 0 && (t = ge), _(function(n, r) {
|
|
1257
|
-
var i = null, o = null, u = null, s = function() {
|
|
1258
|
-
if (i) {
|
|
1259
|
-
i.unsubscribe(), i = null;
|
|
1260
|
-
var c = o;
|
|
1261
|
-
o = null, r.next(c);
|
|
1262
|
-
}
|
|
1263
|
-
};
|
|
1264
|
-
function a() {
|
|
1265
|
-
var c = u + e, l = t.now();
|
|
1266
|
-
if (l < c) {
|
|
1267
|
-
i = this.schedule(void 0, c - l), r.add(i);
|
|
1268
|
-
return;
|
|
1269
|
-
}
|
|
1270
|
-
s();
|
|
1271
|
-
}
|
|
1272
|
-
n.subscribe(w(r, function(c) {
|
|
1273
|
-
o = c, u = t.now(), i || (i = t.schedule(a, e), r.add(i));
|
|
1274
|
-
}, function() {
|
|
1275
|
-
s(), r.complete();
|
|
1276
|
-
}, void 0, function() {
|
|
1277
|
-
o = i = null;
|
|
1278
|
-
}));
|
|
1279
|
-
});
|
|
1280
|
-
}
|
|
1281
|
-
function Ln(e) {
|
|
1282
|
-
return _(function(t, n) {
|
|
1283
|
-
var r = !1;
|
|
1284
|
-
t.subscribe(w(n, function(i) {
|
|
1285
|
-
r = !0, n.next(i);
|
|
1286
|
-
}, function() {
|
|
1287
|
-
r || n.next(e), n.complete();
|
|
1288
|
-
}));
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
function fe(e) {
|
|
1292
|
-
return e <= 0 ? function() {
|
|
1293
|
-
return we;
|
|
1294
|
-
} : _(function(t, n) {
|
|
1295
|
-
var r = 0;
|
|
1296
|
-
t.subscribe(w(n, function(i) {
|
|
1297
|
-
++r <= e && (n.next(i), e <= r && n.complete());
|
|
1298
|
-
}));
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
function Nn() {
|
|
1302
|
-
return _(function(e, t) {
|
|
1303
|
-
e.subscribe(w(t, le));
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
function Wn(e) {
|
|
1307
|
-
return E(function() {
|
|
1308
|
-
return e;
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
function vt(e, t) {
|
|
1312
|
-
return t ? function(n) {
|
|
1313
|
-
return Dn(t.pipe(fe(1), Nn()), n.pipe(vt(e)));
|
|
1314
|
-
} : Se(function(n, r) {
|
|
1315
|
-
return C(e(n, r)).pipe(fe(1), Wn(n));
|
|
1316
|
-
});
|
|
1788
|
+
let n = t ? $(t) : "NO_ID_FIELD";
|
|
1789
|
+
return G(`database:listVal:${zn(e)}:idField=${n}`, Pn(e, { keyField: n }), t);
|
|
1790
|
+
}
|
|
1791
|
+
//#endregion
|
|
1792
|
+
//#region node_modules/rxfire/firestore/index.esm.js
|
|
1793
|
+
var V = function() {
|
|
1794
|
+
return V = Object.assign || function(e) {
|
|
1795
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
1796
|
+
return e;
|
|
1797
|
+
}, V.apply(this, arguments);
|
|
1798
|
+
}, Wn = { includeMetadataChanges: !1 };
|
|
1799
|
+
function Gn(e, t) {
|
|
1800
|
+
return t === void 0 && (t = Wn), new k(function(n) {
|
|
1801
|
+
return { unsubscribe: f(e, t, {
|
|
1802
|
+
next: n.next.bind(n),
|
|
1803
|
+
error: n.error.bind(n),
|
|
1804
|
+
complete: n.complete.bind(n)
|
|
1805
|
+
}) };
|
|
1806
|
+
});
|
|
1317
1807
|
}
|
|
1318
|
-
function
|
|
1319
|
-
|
|
1320
|
-
var n = Rn(e, t);
|
|
1321
|
-
return vt(function() {
|
|
1322
|
-
return n;
|
|
1323
|
-
});
|
|
1324
|
-
}
|
|
1325
|
-
function Qn(e, t) {
|
|
1326
|
-
return t === void 0 && (t = W), e = e ?? Kn, _(function(n, r) {
|
|
1327
|
-
var i, o = !0;
|
|
1328
|
-
n.subscribe(w(r, function(u) {
|
|
1329
|
-
var s = t(u);
|
|
1330
|
-
(o || !e(i, s)) && (o = !1, i = s, r.next(u));
|
|
1331
|
-
}));
|
|
1332
|
-
});
|
|
1808
|
+
function H(e) {
|
|
1809
|
+
return Gn(e, { includeMetadataChanges: !0 });
|
|
1333
1810
|
}
|
|
1334
1811
|
function Kn(e, t) {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
return e === void 0 && (e = Yn), _(function(t, n) {
|
|
1339
|
-
var r = !1;
|
|
1340
|
-
t.subscribe(w(n, function(i) {
|
|
1341
|
-
r = !0, n.next(i);
|
|
1342
|
-
}, function() {
|
|
1343
|
-
return r ? n.complete() : n.error(e());
|
|
1344
|
-
}));
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
function Yn() {
|
|
1348
|
-
return new lt();
|
|
1349
|
-
}
|
|
1350
|
-
function ht(e, t) {
|
|
1351
|
-
var n = arguments.length >= 2;
|
|
1352
|
-
return function(r) {
|
|
1353
|
-
return r.pipe(e ? Un(function(i, o) {
|
|
1354
|
-
return e(i, o, r);
|
|
1355
|
-
}) : W, fe(1), n ? Ln(t) : Hn(function() {
|
|
1356
|
-
return new lt();
|
|
1357
|
-
}));
|
|
1358
|
-
};
|
|
1812
|
+
return t === void 0 && (t = {}), H(e).pipe(L(function(e) {
|
|
1813
|
+
return qn(e, t);
|
|
1814
|
+
}));
|
|
1359
1815
|
}
|
|
1360
|
-
function
|
|
1361
|
-
|
|
1816
|
+
function qn(e, t) {
|
|
1817
|
+
var n;
|
|
1818
|
+
t === void 0 && (t = {});
|
|
1819
|
+
var r = e.data(t);
|
|
1820
|
+
return !e.exists() || typeof r != "object" || !r || !t.idField ? r : V(V({}, r), (n = {}, n[t.idField] = e.id, n));
|
|
1362
1821
|
}
|
|
1363
1822
|
function Jn(e) {
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
}
|
|
1462
|
-
function
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1823
|
+
return Gn(e, { includeMetadataChanges: !0 }).pipe(L(function(e) {
|
|
1824
|
+
return e.docs;
|
|
1825
|
+
}));
|
|
1826
|
+
}
|
|
1827
|
+
function Yn(e, t) {
|
|
1828
|
+
return t === void 0 && (t = {}), Jn(e).pipe(L(function(e) {
|
|
1829
|
+
return e.map(function(e) {
|
|
1830
|
+
return qn(e, t);
|
|
1831
|
+
});
|
|
1832
|
+
}));
|
|
1833
|
+
}
|
|
1834
|
+
//#endregion
|
|
1835
|
+
//#region node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js
|
|
1836
|
+
var Xn = /* @__PURE__ */ oe(((e) => {
|
|
1837
|
+
var t = se("react");
|
|
1838
|
+
function n(e, t) {
|
|
1839
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
1840
|
+
}
|
|
1841
|
+
var r = typeof Object.is == "function" ? Object.is : n, i = t.useState, a = t.useEffect, o = t.useLayoutEffect, s = t.useDebugValue;
|
|
1842
|
+
function c(e, t) {
|
|
1843
|
+
var n = t(), r = i({ inst: {
|
|
1844
|
+
value: n,
|
|
1845
|
+
getSnapshot: t
|
|
1846
|
+
} }), c = r[0].inst, u = r[1];
|
|
1847
|
+
return o(function() {
|
|
1848
|
+
c.value = n, c.getSnapshot = t, l(c) && u({ inst: c });
|
|
1849
|
+
}, [
|
|
1850
|
+
e,
|
|
1851
|
+
n,
|
|
1852
|
+
t
|
|
1853
|
+
]), a(function() {
|
|
1854
|
+
return l(c) && u({ inst: c }), e(function() {
|
|
1855
|
+
l(c) && u({ inst: c });
|
|
1856
|
+
});
|
|
1857
|
+
}, [e]), s(n), n;
|
|
1858
|
+
}
|
|
1859
|
+
function l(e) {
|
|
1860
|
+
var t = e.getSnapshot;
|
|
1861
|
+
e = e.value;
|
|
1862
|
+
try {
|
|
1863
|
+
var n = t();
|
|
1864
|
+
return !r(e, n);
|
|
1865
|
+
} catch {
|
|
1866
|
+
return !0;
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
function u(e, t) {
|
|
1870
|
+
return t();
|
|
1871
|
+
}
|
|
1872
|
+
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
|
|
1873
|
+
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
|
|
1874
|
+
})), Zn = /* @__PURE__ */ oe(((e) => {
|
|
1875
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
1876
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(/* @__PURE__ */ Error());
|
|
1877
|
+
var t = se("react"), n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1878
|
+
function r(e) {
|
|
1879
|
+
i("error", e, [...arguments].slice(1));
|
|
1880
|
+
}
|
|
1881
|
+
function i(e, t, r) {
|
|
1882
|
+
var i = n.ReactDebugCurrentFrame.getStackAddendum();
|
|
1883
|
+
i !== "" && (t += "%s", r = r.concat([i]));
|
|
1884
|
+
var a = r.map(function(e) {
|
|
1885
|
+
return String(e);
|
|
1886
|
+
});
|
|
1887
|
+
a.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, a);
|
|
1888
|
+
}
|
|
1889
|
+
function a(e, t) {
|
|
1890
|
+
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
1891
|
+
}
|
|
1892
|
+
var o = typeof Object.is == "function" ? Object.is : a, s = t.useState, c = t.useEffect, l = t.useLayoutEffect, u = t.useDebugValue, d = !1, f = !1;
|
|
1893
|
+
function p(e, n, i) {
|
|
1894
|
+
d || t.startTransition !== void 0 && (d = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
1895
|
+
var a = n();
|
|
1896
|
+
f || o(a, n()) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0);
|
|
1897
|
+
var p = s({ inst: {
|
|
1898
|
+
value: a,
|
|
1899
|
+
getSnapshot: n
|
|
1900
|
+
} }), h = p[0].inst, g = p[1];
|
|
1901
|
+
return l(function() {
|
|
1902
|
+
h.value = a, h.getSnapshot = n, m(h) && g({ inst: h });
|
|
1903
|
+
}, [
|
|
1904
|
+
e,
|
|
1905
|
+
a,
|
|
1906
|
+
n
|
|
1907
|
+
]), c(function() {
|
|
1908
|
+
return m(h) && g({ inst: h }), e(function() {
|
|
1909
|
+
m(h) && g({ inst: h });
|
|
1910
|
+
});
|
|
1911
|
+
}, [e]), u(a), a;
|
|
1912
|
+
}
|
|
1913
|
+
function m(e) {
|
|
1914
|
+
var t = e.getSnapshot, n = e.value;
|
|
1915
|
+
try {
|
|
1916
|
+
return !o(n, t());
|
|
1917
|
+
} catch {
|
|
1918
|
+
return !0;
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
function h(e, t, n) {
|
|
1922
|
+
return t();
|
|
1923
|
+
}
|
|
1924
|
+
var g = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? p : h;
|
|
1925
|
+
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? g : t.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(/* @__PURE__ */ Error());
|
|
1926
|
+
})();
|
|
1927
|
+
})), Qn = (/* @__PURE__ */ oe(((e, t) => {
|
|
1928
|
+
process.env.NODE_ENV === "production" ? t.exports = Xn() : t.exports = Zn();
|
|
1929
|
+
})))(), $n = class extends M {
|
|
1930
|
+
constructor(e, t, n) {
|
|
1931
|
+
super(), this._timeoutWindow = t, this._suspenseEnabled = n, this._hasValue = !1, this._error = void 0, this._isComplete = !1, this._firstEmission = new Promise((e) => this._resolveFirstEmission = e), this._immutableStatus = {
|
|
1932
|
+
status: "loading",
|
|
1933
|
+
hasEmitted: !1,
|
|
1934
|
+
isComplete: !1,
|
|
1935
|
+
data: void 0,
|
|
1936
|
+
error: void 0,
|
|
1937
|
+
firstValuePromise: this._firstEmission
|
|
1938
|
+
}, this._innerObservable = e.pipe(sn({
|
|
1939
|
+
next: (e) => {
|
|
1940
|
+
this._next(e);
|
|
1941
|
+
},
|
|
1942
|
+
error: (e) => {
|
|
1943
|
+
this._error = e, this._resolveFirstEmission(), this._updateImmutableStatus();
|
|
1944
|
+
},
|
|
1945
|
+
complete: () => {
|
|
1946
|
+
this._isComplete = !0, this._updateImmutableStatus();
|
|
1947
|
+
}
|
|
1948
|
+
}), Ht(() => $e()), an(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? this._timeoutHandler = setTimeout(() => {}, this._timeoutWindow) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
|
|
1949
|
+
}
|
|
1950
|
+
get hasValue() {
|
|
1951
|
+
return this._hasValue || !!this._error;
|
|
1952
|
+
}
|
|
1953
|
+
get value() {
|
|
1954
|
+
if (this._error) throw this._error;
|
|
1955
|
+
if (!this.hasValue) throw Error("Can only get value if SuspenseSubject has a value");
|
|
1956
|
+
return this._value;
|
|
1957
|
+
}
|
|
1958
|
+
get firstEmission() {
|
|
1959
|
+
return this._firstEmission;
|
|
1960
|
+
}
|
|
1961
|
+
_updateImmutableStatus() {
|
|
1962
|
+
this._immutableStatus = {
|
|
1963
|
+
status: this._error ? "error" : this._hasValue ? "success" : "loading",
|
|
1964
|
+
hasEmitted: this._hasValue,
|
|
1965
|
+
isComplete: this._isComplete,
|
|
1966
|
+
data: this._value,
|
|
1967
|
+
error: this._error,
|
|
1968
|
+
firstValuePromise: this._firstEmission
|
|
1969
|
+
};
|
|
1970
|
+
}
|
|
1971
|
+
_next(e) {
|
|
1972
|
+
this._hasValue = !0, this._value = e, this._resolveFirstEmission(), this._updateImmutableStatus();
|
|
1973
|
+
}
|
|
1974
|
+
_reset() {
|
|
1975
|
+
this._warmupSubscription && this._warmupSubscription.unsubscribe(), this._hasValue = !1, this._value = void 0, this._error = void 0, this._firstEmission = new Promise((e) => this._resolveFirstEmission = e), this._updateImmutableStatus();
|
|
1976
|
+
}
|
|
1977
|
+
_subscribe(e) {
|
|
1978
|
+
return this._timeoutHandler && clearTimeout(this._timeoutHandler), this._innerSubscriber = this._innerObservable.subscribe(e), this._innerSubscriber;
|
|
1979
|
+
}
|
|
1980
|
+
get ourError() {
|
|
1981
|
+
return this._error;
|
|
1982
|
+
}
|
|
1983
|
+
get immutableStatus() {
|
|
1984
|
+
return this._immutableStatus;
|
|
1985
|
+
}
|
|
1986
|
+
}, er = 3e4, U = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
|
|
1987
|
+
globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = U);
|
|
1988
|
+
function W(e, t, n = !1) {
|
|
1989
|
+
if (U.has(t)) return U.get(t);
|
|
1990
|
+
{
|
|
1991
|
+
let r = new $n(e, er, n);
|
|
1992
|
+
return U.set(t, r), r;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
function G(t, n, r = {}) {
|
|
1996
|
+
if (!t) throw Error("cannot call useObservable without an observableId");
|
|
1997
|
+
let i = R(r.suspense), a = W(n, t, i), o = r.hasOwnProperty("initialData") || r.hasOwnProperty("startWithValue"), s = a.hasValue || o;
|
|
1998
|
+
if (i === !0 && !s) throw a.firstEmission;
|
|
1999
|
+
let c = (0, Qn.useSyncExternalStore)(e.useCallback((e) => {
|
|
2000
|
+
let t = a.subscribe({
|
|
2001
|
+
next: () => {
|
|
2002
|
+
e();
|
|
2003
|
+
},
|
|
2004
|
+
error: (t) => {
|
|
2005
|
+
throw e(), t;
|
|
2006
|
+
},
|
|
2007
|
+
complete: () => {
|
|
2008
|
+
e();
|
|
2009
|
+
}
|
|
2010
|
+
});
|
|
2011
|
+
return () => {
|
|
2012
|
+
t.unsubscribe();
|
|
2013
|
+
};
|
|
2014
|
+
}, [a]), e.useCallback(() => a.immutableStatus, [a]));
|
|
2015
|
+
if (!a.hasValue && s) {
|
|
2016
|
+
let e = r?.initialData ?? r?.startWithValue;
|
|
2017
|
+
if (i && c.error) throw c.error;
|
|
2018
|
+
return Object.assign(Object.assign({}, c), {
|
|
2019
|
+
data: e,
|
|
2020
|
+
status: "success",
|
|
2021
|
+
hasEmitted: !0
|
|
2022
|
+
});
|
|
2023
|
+
}
|
|
2024
|
+
if (c.error) throw c.error;
|
|
2025
|
+
return c;
|
|
2026
|
+
}
|
|
2027
|
+
//#endregion
|
|
2028
|
+
//#region src/firestore.tsx
|
|
2029
|
+
var tr = globalThis._reactFireFirestoreQueryCache || [];
|
|
2030
|
+
globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache = tr);
|
|
2031
|
+
function nr(e) {
|
|
2032
|
+
let t = tr.findIndex((t) => p(t, e));
|
|
2033
|
+
return t > -1 ? t : tr.push(e) - 1;
|
|
1537
2034
|
}
|
|
1538
2035
|
function rr(e) {
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
}), {
|
|
1544
|
-
hasRequiredClaims: Object.keys(r).length === 0,
|
|
1545
|
-
errors: r
|
|
1546
|
-
};
|
|
1547
|
-
};
|
|
1548
|
-
}
|
|
1549
|
-
function ir({ user: e, fallback: t, children: n, requiredClaims: r }) {
|
|
1550
|
-
const { data: i } = nr(e, !1), { claims: o } = i, u = {};
|
|
1551
|
-
return ne() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((a) => {
|
|
1552
|
-
var c;
|
|
1553
|
-
r[a] !== o[a] && (u[a] = {
|
|
1554
|
-
expected: r[a],
|
|
1555
|
-
actual: (c = o[a]) === null || c === void 0 ? void 0 : c.toString()
|
|
1556
|
-
});
|
|
1557
|
-
}), Object.keys(u).length === 0 ? f.createElement(f.Fragment, null, n) : f.createElement(f.Fragment, null, t);
|
|
1558
|
-
}
|
|
1559
|
-
function qr({ fallback: e, children: t, requiredClaims: n }) {
|
|
1560
|
-
const { data: r } = tr();
|
|
1561
|
-
return ne() || console.warn("AuthCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r ? n ? f.createElement(ir, { user: r, fallback: e, requiredClaims: n }, t) : f.createElement(f.Fragment, null, t) : f.createElement(f.Fragment, null, e);
|
|
1562
|
-
}
|
|
1563
|
-
/*! *****************************************************************************
|
|
1564
|
-
Copyright (c) Microsoft Corporation.
|
|
1565
|
-
|
|
1566
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
1567
|
-
purpose with or without fee is hereby granted.
|
|
1568
|
-
|
|
1569
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
1570
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
1571
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
1572
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
1573
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
1574
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1575
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
1576
|
-
***************************************************************************** */
|
|
1577
|
-
var ee = function() {
|
|
1578
|
-
return ee = Object.assign || function(t) {
|
|
1579
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1580
|
-
n = arguments[r];
|
|
1581
|
-
for (var o in n)
|
|
1582
|
-
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1583
|
-
}
|
|
1584
|
-
return t;
|
|
1585
|
-
}, ee.apply(this, arguments);
|
|
1586
|
-
};
|
|
1587
|
-
function se(e, t) {
|
|
1588
|
-
for (var n = 0, r = t.length, i = e.length; n < r; n++, i++)
|
|
1589
|
-
e[i] = t[n];
|
|
1590
|
-
return e;
|
|
1591
|
-
}
|
|
1592
|
-
/**
|
|
1593
|
-
* @license
|
|
1594
|
-
* Copyright 2021 Google LLC
|
|
1595
|
-
*
|
|
1596
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1597
|
-
* you may not use this file except in compliance with the License.
|
|
1598
|
-
* You may obtain a copy of the License at
|
|
1599
|
-
*
|
|
1600
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1601
|
-
*
|
|
1602
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1603
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1604
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1605
|
-
* See the License for the specific language governing permissions and
|
|
1606
|
-
* limitations under the License.
|
|
1607
|
-
*/
|
|
1608
|
-
var T, m;
|
|
1609
|
-
(function(e) {
|
|
1610
|
-
e.added = "child_added", e.removed = "child_removed", e.changed = "child_changed", e.moved = "child_moved", e.value = "value";
|
|
1611
|
-
})(m || (m = {}));
|
|
1612
|
-
var or = Object.freeze((T = {}, T[m.added] = Ft, T[m.removed] = Pt, T[m.changed] = $t, T[m.moved] = Tt, T[m.value] = Dt, T));
|
|
1613
|
-
/**
|
|
1614
|
-
* @license
|
|
1615
|
-
* Copyright 2021 Google LLC
|
|
1616
|
-
*
|
|
1617
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1618
|
-
* you may not use this file except in compliance with the License.
|
|
1619
|
-
* You may obtain a copy of the License at
|
|
1620
|
-
*
|
|
1621
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1622
|
-
*
|
|
1623
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1624
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1625
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1626
|
-
* See the License for the specific language governing permissions and
|
|
1627
|
-
* limitations under the License.
|
|
1628
|
-
*/
|
|
1629
|
-
function xe(e, t) {
|
|
1630
|
-
return new y(function(n) {
|
|
1631
|
-
var r = or[t](e, function(i, o) {
|
|
1632
|
-
n.next({ snapshot: i, prevKey: o, event: t });
|
|
1633
|
-
}, n.error.bind(n));
|
|
1634
|
-
return {
|
|
1635
|
-
unsubscribe: function() {
|
|
1636
|
-
Rt(e, t, r);
|
|
1637
|
-
}
|
|
1638
|
-
};
|
|
1639
|
-
}).pipe(
|
|
1640
|
-
// Ensures subscribe on observable is async. This handles
|
|
1641
|
-
// a quirk in the SDK where on/once callbacks can happen
|
|
1642
|
-
// synchronously.
|
|
1643
|
-
qn(0)
|
|
1644
|
-
);
|
|
1645
|
-
}
|
|
1646
|
-
/**
|
|
1647
|
-
* @license
|
|
1648
|
-
* Copyright 2021 Google LLC
|
|
1649
|
-
*
|
|
1650
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1651
|
-
* you may not use this file except in compliance with the License.
|
|
1652
|
-
* You may obtain a copy of the License at
|
|
1653
|
-
*
|
|
1654
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1655
|
-
*
|
|
1656
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1657
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1658
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1659
|
-
* See the License for the specific language governing permissions and
|
|
1660
|
-
* limitations under the License.
|
|
1661
|
-
*/
|
|
1662
|
-
function ur(e) {
|
|
1663
|
-
return (e == null || e.length === 0) && (e = [
|
|
1664
|
-
m.added,
|
|
1665
|
-
m.removed,
|
|
1666
|
-
m.changed,
|
|
1667
|
-
m.moved
|
|
1668
|
-
]), e;
|
|
1669
|
-
}
|
|
1670
|
-
/**
|
|
1671
|
-
* @license
|
|
1672
|
-
* Copyright 2021 Google LLC
|
|
1673
|
-
*
|
|
1674
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1675
|
-
* you may not use this file except in compliance with the License.
|
|
1676
|
-
* You may obtain a copy of the License at
|
|
1677
|
-
*
|
|
1678
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1679
|
-
*
|
|
1680
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1681
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1682
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1683
|
-
* See the License for the specific language governing permissions and
|
|
1684
|
-
* limitations under the License.
|
|
1685
|
-
*/
|
|
1686
|
-
function sr(e) {
|
|
1687
|
-
return xe(e, m.value);
|
|
1688
|
-
}
|
|
1689
|
-
function ar(e, t) {
|
|
1690
|
-
return t === void 0 && (t = {}), xe(e, m.value).pipe(E(function(n) {
|
|
1691
|
-
return yt(n, t);
|
|
1692
|
-
}));
|
|
1693
|
-
}
|
|
1694
|
-
function yt(e, t) {
|
|
1695
|
-
var n;
|
|
1696
|
-
t === void 0 && (t = {});
|
|
1697
|
-
var r = e.snapshot.val();
|
|
1698
|
-
return !e.snapshot.exists() || typeof r != "object" ? r : ee(ee({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
|
|
1699
|
-
}
|
|
1700
|
-
function cr(e) {
|
|
1701
|
-
return O(jt(e)).pipe(E(function(t) {
|
|
1702
|
-
var n = m.value;
|
|
1703
|
-
return { snapshot: t, prevKey: null, event: n };
|
|
1704
|
-
}));
|
|
1705
|
-
}
|
|
1706
|
-
function gt(e, t) {
|
|
1707
|
-
t === void 0 && (t = {});
|
|
1708
|
-
var n = ur(t.events);
|
|
1709
|
-
return cr(e).pipe(pt(function(r) {
|
|
1710
|
-
if (!r.snapshot.exists())
|
|
1711
|
-
return X([]);
|
|
1712
|
-
var i = [X(r)];
|
|
1713
|
-
return n.forEach(function(o) {
|
|
1714
|
-
i.push(xe(e, o));
|
|
1715
|
-
}), jn.apply(void 0, i).pipe(Gn(dr, []));
|
|
1716
|
-
}), Qn());
|
|
2036
|
+
return ue(this, void 0, void 0, function* () {
|
|
2037
|
+
let t = yield e();
|
|
2038
|
+
return W(H(t), ir(t));
|
|
2039
|
+
});
|
|
1717
2040
|
}
|
|
1718
|
-
function
|
|
1719
|
-
|
|
1720
|
-
return n.map(function(r) {
|
|
1721
|
-
return yt(r, t);
|
|
1722
|
-
});
|
|
1723
|
-
}));
|
|
2041
|
+
function ir(e) {
|
|
2042
|
+
return `firestore:doc:${e.firestore.app.name}:${e.path}`;
|
|
1724
2043
|
}
|
|
1725
|
-
function
|
|
1726
|
-
|
|
1727
|
-
if (e[r].snapshot.key === t)
|
|
1728
|
-
return r;
|
|
1729
|
-
return -1;
|
|
2044
|
+
function ar(e, t) {
|
|
2045
|
+
return G(ir(e), H(e), t);
|
|
1730
2046
|
}
|
|
1731
|
-
function
|
|
1732
|
-
|
|
1733
|
-
return 0;
|
|
1734
|
-
var n = wt(e, t);
|
|
1735
|
-
return n === -1 ? e.length : n + 1;
|
|
1736
|
-
}
|
|
1737
|
-
function dr(e, t) {
|
|
1738
|
-
var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = wt(e, o), s = fr(e, r || void 0);
|
|
1739
|
-
switch (i) {
|
|
1740
|
-
case m.value:
|
|
1741
|
-
if (t.snapshot && t.snapshot.exists()) {
|
|
1742
|
-
var a = null;
|
|
1743
|
-
t.snapshot.forEach(function(d) {
|
|
1744
|
-
var v = {
|
|
1745
|
-
snapshot: d,
|
|
1746
|
-
event: m.value,
|
|
1747
|
-
prevKey: a
|
|
1748
|
-
};
|
|
1749
|
-
return a = d.key, e = se(se([], e), [v]), !1;
|
|
1750
|
-
});
|
|
1751
|
-
}
|
|
1752
|
-
return e;
|
|
1753
|
-
case m.added:
|
|
1754
|
-
if (u > -1) {
|
|
1755
|
-
var c = e[u - 1];
|
|
1756
|
-
(c && c.snapshot.key || null) !== r && (e = e.filter(function(d) {
|
|
1757
|
-
return d.snapshot.key !== n.key;
|
|
1758
|
-
}), e.splice(s, 0, t));
|
|
1759
|
-
} else {
|
|
1760
|
-
if (r == null)
|
|
1761
|
-
return se([t], e);
|
|
1762
|
-
e = e.slice(), e.splice(s, 0, t);
|
|
1763
|
-
}
|
|
1764
|
-
return e;
|
|
1765
|
-
case m.removed:
|
|
1766
|
-
return e.filter(function(d) {
|
|
1767
|
-
return d.snapshot.key !== n.key;
|
|
1768
|
-
});
|
|
1769
|
-
case m.changed:
|
|
1770
|
-
return e.map(function(d) {
|
|
1771
|
-
return d.snapshot.key === o ? t : d;
|
|
1772
|
-
});
|
|
1773
|
-
case m.moved:
|
|
1774
|
-
if (u > -1) {
|
|
1775
|
-
var l = e.splice(u, 1)[0];
|
|
1776
|
-
return e = e.slice(), e.splice(s, 0, l), e;
|
|
1777
|
-
}
|
|
1778
|
-
return e;
|
|
1779
|
-
default:
|
|
1780
|
-
return e;
|
|
1781
|
-
}
|
|
1782
|
-
}
|
|
1783
|
-
const de = globalThis._reactFireDatabaseCachedQueries || [];
|
|
1784
|
-
globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries = de);
|
|
1785
|
-
function _t(e) {
|
|
1786
|
-
const t = de.findIndex((n) => n.isEqual(e));
|
|
1787
|
-
return t > -1 ? t : de.push(e) - 1;
|
|
1788
|
-
}
|
|
1789
|
-
function Qr(e, t) {
|
|
1790
|
-
const n = `database:object:${e.toString()}`, r = sr(e);
|
|
1791
|
-
return g(n, r, t);
|
|
1792
|
-
}
|
|
1793
|
-
function Kr(e, t) {
|
|
1794
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i = ar(e, { keyField: n });
|
|
1795
|
-
return g(r, i, t);
|
|
1796
|
-
}
|
|
1797
|
-
function Hr(e, t) {
|
|
1798
|
-
const n = `database:list:${_t(e)}`, r = gt(e);
|
|
1799
|
-
return g(n, r, t);
|
|
1800
|
-
}
|
|
1801
|
-
function Yr(e, t) {
|
|
1802
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `database:listVal:${_t(e)}:idField=${n}`, i = lr(e, { keyField: n });
|
|
1803
|
-
return g(r, i, t);
|
|
1804
|
-
}
|
|
1805
|
-
/**
|
|
1806
|
-
* @license
|
|
1807
|
-
* Copyright 2018 Google LLC
|
|
1808
|
-
*
|
|
1809
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1810
|
-
* you may not use this file except in compliance with the License.
|
|
1811
|
-
* You may obtain a copy of the License at
|
|
1812
|
-
*
|
|
1813
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1814
|
-
*
|
|
1815
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1816
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1817
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1818
|
-
* See the License for the specific language governing permissions and
|
|
1819
|
-
* limitations under the License.
|
|
1820
|
-
*/
|
|
1821
|
-
var vr = { includeMetadataChanges: !1 };
|
|
1822
|
-
function Ie(e, t) {
|
|
1823
|
-
return t === void 0 && (t = vr), new y(function(n) {
|
|
1824
|
-
var r = Mt(e, t, {
|
|
1825
|
-
next: n.next.bind(n),
|
|
1826
|
-
error: n.error.bind(n),
|
|
1827
|
-
complete: n.complete.bind(n)
|
|
1828
|
-
});
|
|
1829
|
-
return { unsubscribe: r };
|
|
1830
|
-
});
|
|
1831
|
-
}
|
|
1832
|
-
/**
|
|
1833
|
-
* @license
|
|
1834
|
-
* Copyright 2018 Google LLC
|
|
1835
|
-
*
|
|
1836
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1837
|
-
* you may not use this file except in compliance with the License.
|
|
1838
|
-
* You may obtain a copy of the License at
|
|
1839
|
-
*
|
|
1840
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1841
|
-
*
|
|
1842
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1843
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1844
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1845
|
-
* See the License for the specific language governing permissions and
|
|
1846
|
-
* limitations under the License.
|
|
1847
|
-
*/
|
|
1848
|
-
function re(e) {
|
|
1849
|
-
return Ie(e, { includeMetadataChanges: !0 });
|
|
2047
|
+
function or(e, t) {
|
|
2048
|
+
return G(`firestore:docOnce:${e.firestore.app.name}:${e.path}`, H(e).pipe(en()), t);
|
|
1850
2049
|
}
|
|
1851
|
-
function
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
}));
|
|
2050
|
+
function sr(e, t) {
|
|
2051
|
+
let n = t ? $(t) : "NO_ID_FIELD";
|
|
2052
|
+
return G(`firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, Kn(e, { idField: n }), t);
|
|
1855
2053
|
}
|
|
1856
|
-
function
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
return !e.exists() || typeof n != "object" || n === null || t.idField && (n[t.idField] = e.id), n;
|
|
1860
|
-
}
|
|
1861
|
-
function hr(e) {
|
|
1862
|
-
return Ie(e, { includeMetadataChanges: !0 }).pipe(E(function(t) {
|
|
1863
|
-
return t.docs;
|
|
1864
|
-
}));
|
|
1865
|
-
}
|
|
1866
|
-
function pr(e, t) {
|
|
1867
|
-
return t === void 0 && (t = {}), hr(e).pipe(E(function(n) {
|
|
1868
|
-
return n.map(function(r) {
|
|
1869
|
-
return Ct(r, t);
|
|
1870
|
-
});
|
|
1871
|
-
}));
|
|
1872
|
-
}
|
|
1873
|
-
class mr extends te {
|
|
1874
|
-
constructor(t, n, r) {
|
|
1875
|
-
super(), this._timeoutWindow = n, this._suspenseEnabled = r, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((i) => this._resolveFirstEmission = i), this._innerObservable = t.pipe(Zn({
|
|
1876
|
-
next: (i) => {
|
|
1877
|
-
this._next(i);
|
|
1878
|
-
},
|
|
1879
|
-
error: (i) => {
|
|
1880
|
-
this._error = i, this._resolveFirstEmission();
|
|
1881
|
-
}
|
|
1882
|
-
}), dt(() => pn()), zn(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? this._timeoutHandler = setTimeout(() => {
|
|
1883
|
-
}, this._timeoutWindow) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
|
|
1884
|
-
}
|
|
1885
|
-
get hasValue() {
|
|
1886
|
-
return this._hasValue || !!this._error;
|
|
1887
|
-
}
|
|
1888
|
-
get value() {
|
|
1889
|
-
if (this._error)
|
|
1890
|
-
throw this._error;
|
|
1891
|
-
if (!this.hasValue)
|
|
1892
|
-
throw Error("Can only get value if SuspenseSubject has a value");
|
|
1893
|
-
return this._value;
|
|
1894
|
-
}
|
|
1895
|
-
get firstEmission() {
|
|
1896
|
-
return this._firstEmission;
|
|
1897
|
-
}
|
|
1898
|
-
_next(t) {
|
|
1899
|
-
this._hasValue = !0, this._value = t, this._resolveFirstEmission();
|
|
1900
|
-
}
|
|
1901
|
-
_reset() {
|
|
1902
|
-
this._warmupSubscription && this._warmupSubscription.unsubscribe(), this._hasValue = !1, this._value = void 0, this._error = void 0, this._firstEmission = new Promise((t) => this._resolveFirstEmission = t);
|
|
1903
|
-
}
|
|
1904
|
-
_subscribe(t) {
|
|
1905
|
-
return this._timeoutHandler && clearTimeout(this._timeoutHandler), this._innerSubscriber = this._innerObservable.subscribe(t), this._innerSubscriber;
|
|
1906
|
-
}
|
|
1907
|
-
get ourError() {
|
|
1908
|
-
return this._error;
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
const br = 3e4, z = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
|
|
1912
|
-
globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = z);
|
|
1913
|
-
function Oe(e, t, n = !1) {
|
|
1914
|
-
if (z.has(t))
|
|
1915
|
-
return z.get(t);
|
|
1916
|
-
{
|
|
1917
|
-
const r = new mr(e, br, n);
|
|
1918
|
-
return z.set(t, r), r;
|
|
1919
|
-
}
|
|
2054
|
+
function cr(e, t) {
|
|
2055
|
+
let n = t ? $(t) : "NO_ID_FIELD";
|
|
2056
|
+
return G(`firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, Kn(e, { idField: n }).pipe(en()), t);
|
|
1920
2057
|
}
|
|
1921
|
-
function
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
}
|
|
1981
|
-
function
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
return g(n, r, t);
|
|
1988
|
-
}
|
|
1989
|
-
function Zr(e, t) {
|
|
1990
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, i = St(e, { idField: n });
|
|
1991
|
-
return g(r, i, t);
|
|
1992
|
-
}
|
|
1993
|
-
function Br(e, t) {
|
|
1994
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, i = St(e, { idField: n }).pipe(ht());
|
|
1995
|
-
return g(r, i, t);
|
|
1996
|
-
}
|
|
1997
|
-
function Xr(e, t) {
|
|
1998
|
-
const n = `firestore:collection:${Et(e)}`, r = Ie(e);
|
|
1999
|
-
return g(n, r, t);
|
|
2000
|
-
}
|
|
2001
|
-
function ei(e, t) {
|
|
2002
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:collectionData:${Et(e)}:idField=${n}`, i = pr(e, { idField: n });
|
|
2003
|
-
return g(r, i, t);
|
|
2004
|
-
}
|
|
2005
|
-
/**
|
|
2006
|
-
* @license
|
|
2007
|
-
* Copyright 2021 Google LLC
|
|
2008
|
-
*
|
|
2009
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2010
|
-
* you may not use this file except in compliance with the License.
|
|
2011
|
-
* You may obtain a copy of the License at
|
|
2012
|
-
*
|
|
2013
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2014
|
-
*
|
|
2015
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2016
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2017
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2018
|
-
* See the License for the specific language governing permissions and
|
|
2019
|
-
* limitations under the License.
|
|
2020
|
-
*/
|
|
2021
|
-
function gr(e, t, n) {
|
|
2022
|
-
var r = Nt(e, t, n);
|
|
2023
|
-
return function(i) {
|
|
2024
|
-
return O(r(i)).pipe(E(function(o) {
|
|
2025
|
-
return o.data;
|
|
2026
|
-
}));
|
|
2027
|
-
};
|
|
2028
|
-
}
|
|
2029
|
-
function ti(e, t) {
|
|
2030
|
-
const n = Ar(), r = `functions:callableResponse:${e}:${JSON.stringify(t == null ? void 0 : t.data)}:${JSON.stringify(t == null ? void 0 : t.httpsCallableOptions)}`, o = gr(n, e, t == null ? void 0 : t.httpsCallableOptions)(t == null ? void 0 : t.data);
|
|
2031
|
-
return g(r, o, t);
|
|
2032
|
-
}
|
|
2033
|
-
function ni({ children: e, traceId: t, fallback: n }) {
|
|
2034
|
-
var r;
|
|
2035
|
-
const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`, s = () => (f.useLayoutEffect(() => {
|
|
2036
|
-
var a;
|
|
2037
|
-
return (a = performance == null ? void 0 : performance.mark) === null || a === void 0 || a.call(performance, o), () => {
|
|
2038
|
-
var c, l;
|
|
2039
|
-
(c = performance == null ? void 0 : performance.mark) === null || c === void 0 || c.call(performance, u), (l = performance == null ? void 0 : performance.measure) === null || l === void 0 || l.call(performance, t, o, u);
|
|
2040
|
-
};
|
|
2041
|
-
}, []), f.createElement(f.Fragment, null, n));
|
|
2042
|
-
return f.createElement(f.Suspense, { fallback: f.createElement(s, null) }, e);
|
|
2043
|
-
}
|
|
2044
|
-
function q(e) {
|
|
2045
|
-
var t = e.remoteConfig, n = e.key, r = e.getter;
|
|
2046
|
-
return new y(function(i) {
|
|
2047
|
-
Qt(t).then(function() {
|
|
2048
|
-
var o = r.bind(t);
|
|
2049
|
-
i.next(o(t, n));
|
|
2050
|
-
});
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
function wr(e, t) {
|
|
2054
|
-
var n = Kt;
|
|
2055
|
-
return q({ remoteConfig: e, key: t, getter: n });
|
|
2058
|
+
function lr(e, t) {
|
|
2059
|
+
return G(`firestore:collection:${nr(e)}`, Gn(e), t);
|
|
2060
|
+
}
|
|
2061
|
+
function ur(e, t) {
|
|
2062
|
+
let n = t ? $(t) : "NO_ID_FIELD";
|
|
2063
|
+
return G(`firestore:collectionData:${nr(e)}:idField=${n}`, Yn(e, { idField: n }), t);
|
|
2064
|
+
}
|
|
2065
|
+
//#endregion
|
|
2066
|
+
//#region node_modules/rxfire/functions/index.esm.js
|
|
2067
|
+
function dr(e, t, n) {
|
|
2068
|
+
var r = m(e, t, n);
|
|
2069
|
+
return function(e) {
|
|
2070
|
+
return I(r(e)).pipe(L(function(e) {
|
|
2071
|
+
return e.data;
|
|
2072
|
+
}));
|
|
2073
|
+
};
|
|
2074
|
+
}
|
|
2075
|
+
//#endregion
|
|
2076
|
+
//#region src/functions.tsx
|
|
2077
|
+
function fr(e, t) {
|
|
2078
|
+
let n = Qr();
|
|
2079
|
+
return G(`functions:callableResponse:${e}:${JSON.stringify(t?.data)}:${JSON.stringify(t?.httpsCallableOptions)}`, dr(n, e, t?.httpsCallableOptions)(t?.data), t);
|
|
2080
|
+
}
|
|
2081
|
+
//#endregion
|
|
2082
|
+
//#region src/performance.tsx
|
|
2083
|
+
function pr({ children: t, traceId: n, fallback: r }) {
|
|
2084
|
+
let i = typeof globalThis < "u" ? globalThis.performance : void 0, a = (i?.getEntriesByName)?.call(i, n, "measure") || [], o = `_${n}Start[${a.length}]`, s = `_${n}End[${a.length}]`;
|
|
2085
|
+
return e.createElement(e.Suspense, { fallback: e.createElement(() => (e.useEffect(() => {
|
|
2086
|
+
var e;
|
|
2087
|
+
return (e = i?.mark) == null || e.call(i, o), () => {
|
|
2088
|
+
var e, t;
|
|
2089
|
+
(e = i?.mark) == null || e.call(i, s), (t = i?.measure) == null || t.call(i, n, o, s);
|
|
2090
|
+
};
|
|
2091
|
+
}, []), e.createElement(e.Fragment, null, r)), null) }, t);
|
|
2092
|
+
}
|
|
2093
|
+
//#endregion
|
|
2094
|
+
//#region node_modules/rxfire/remote-config/index.esm.js
|
|
2095
|
+
function K(e) {
|
|
2096
|
+
var t = e.remoteConfig, n = e.key, r = e.getter;
|
|
2097
|
+
return new k(function(e) {
|
|
2098
|
+
h(t).then(function() {
|
|
2099
|
+
var i = r.bind(t);
|
|
2100
|
+
e.next(i(t, n));
|
|
2101
|
+
});
|
|
2102
|
+
});
|
|
2103
|
+
}
|
|
2104
|
+
function mr(e, t) {
|
|
2105
|
+
return K({
|
|
2106
|
+
remoteConfig: e,
|
|
2107
|
+
key: t,
|
|
2108
|
+
getter: re
|
|
2109
|
+
});
|
|
2110
|
+
}
|
|
2111
|
+
function hr(e, t) {
|
|
2112
|
+
return K({
|
|
2113
|
+
remoteConfig: e,
|
|
2114
|
+
key: t,
|
|
2115
|
+
getter: ne
|
|
2116
|
+
});
|
|
2117
|
+
}
|
|
2118
|
+
function gr(e, t) {
|
|
2119
|
+
return K({
|
|
2120
|
+
remoteConfig: e,
|
|
2121
|
+
key: t,
|
|
2122
|
+
getter: te
|
|
2123
|
+
});
|
|
2056
2124
|
}
|
|
2057
2125
|
function _r(e, t) {
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
function
|
|
2074
|
-
|
|
2075
|
-
|
|
2126
|
+
return K({
|
|
2127
|
+
remoteConfig: e,
|
|
2128
|
+
key: t,
|
|
2129
|
+
getter: ee
|
|
2130
|
+
});
|
|
2131
|
+
}
|
|
2132
|
+
function vr(e) {
|
|
2133
|
+
return K({
|
|
2134
|
+
remoteConfig: e,
|
|
2135
|
+
key: "",
|
|
2136
|
+
getter: g
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
//#endregion
|
|
2140
|
+
//#region src/remote-config.tsx
|
|
2141
|
+
function q(e, t) {
|
|
2142
|
+
let n = ti(), r = n.app.name, i = t(n, e);
|
|
2143
|
+
return G(`remoteConfig:${e}:${t.name}:${r}`, i);
|
|
2076
2144
|
}
|
|
2077
|
-
function
|
|
2078
|
-
|
|
2079
|
-
}
|
|
2080
|
-
function ii(e) {
|
|
2081
|
-
return Q(e, _r);
|
|
2082
|
-
}
|
|
2083
|
-
function oi(e) {
|
|
2084
|
-
return Q(e, Sr);
|
|
2085
|
-
}
|
|
2086
|
-
function ui(e) {
|
|
2087
|
-
return Q(e, Cr);
|
|
2145
|
+
function yr(e) {
|
|
2146
|
+
return q(e, mr);
|
|
2088
2147
|
}
|
|
2089
|
-
function
|
|
2090
|
-
|
|
2148
|
+
function br(e) {
|
|
2149
|
+
return q(e, hr);
|
|
2091
2150
|
}
|
|
2092
2151
|
function xr(e) {
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2152
|
+
return q(e, gr);
|
|
2153
|
+
}
|
|
2154
|
+
function Sr(e) {
|
|
2155
|
+
return q(e, _r);
|
|
2156
|
+
}
|
|
2157
|
+
function Cr(e) {
|
|
2158
|
+
return q(e, vr);
|
|
2159
|
+
}
|
|
2160
|
+
//#endregion
|
|
2161
|
+
//#region node_modules/rxfire/storage/index.esm.js
|
|
2162
|
+
function wr(e) {
|
|
2163
|
+
return new k(function(t) {
|
|
2164
|
+
var n = null, r = !1, i = !1, a = null, o = function(e) {
|
|
2165
|
+
n = e, c();
|
|
2166
|
+
}, s = null, c = function() {
|
|
2167
|
+
s ||= setTimeout(function() {
|
|
2168
|
+
s = null, n && t.next(n), r && t.complete(), i && t.error(a);
|
|
2169
|
+
});
|
|
2170
|
+
};
|
|
2171
|
+
t.add(function() {
|
|
2172
|
+
s && clearTimeout(s);
|
|
2173
|
+
}), o(e.snapshot), t.add(e.on("state_changed", o)), t.add(I(e).subscribe({
|
|
2174
|
+
next: o,
|
|
2175
|
+
error: function(e) {
|
|
2176
|
+
i = !0, a = e, c();
|
|
2177
|
+
},
|
|
2178
|
+
complete: function() {
|
|
2179
|
+
r = !0, c();
|
|
2180
|
+
}
|
|
2181
|
+
}));
|
|
2182
|
+
});
|
|
2183
|
+
}
|
|
2184
|
+
function Tr(e) {
|
|
2185
|
+
return I(ie(e));
|
|
2186
|
+
}
|
|
2187
|
+
//#endregion
|
|
2188
|
+
//#region src/storage.tsx
|
|
2189
|
+
function Er(e, t, n) {
|
|
2190
|
+
return G(`storage:task:${t.toString()}`, wr(e), n);
|
|
2191
|
+
}
|
|
2192
|
+
function Dr(e, t) {
|
|
2193
|
+
return G(`storage:downloadUrl:${e.toString()}`, Tr(e), t);
|
|
2194
|
+
}
|
|
2195
|
+
function Or(t) {
|
|
2196
|
+
let n = ei();
|
|
2197
|
+
return t = Object.assign(Object.assign({}, t), { storage: n }), e.createElement(kr, Object.assign({}, t));
|
|
2198
|
+
}
|
|
2199
|
+
function kr(t) {
|
|
2200
|
+
let { storage: n, storagePath: r, suspense: i, placeHolder: a } = t, o = le(t, [
|
|
2201
|
+
"storage",
|
|
2202
|
+
"storagePath",
|
|
2203
|
+
"suspense",
|
|
2204
|
+
"placeHolder"
|
|
2205
|
+
]), s = { suspense: R(i) };
|
|
2206
|
+
if (!n) throw Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
|
|
2207
|
+
let { status: c, data: l } = Dr(ae(n, r), s);
|
|
2208
|
+
return c === "success" ? (o.alt || o.alt === "" || console.warn(`No alt prop provided for StorageImage with storagePath "${r}"`, "img elements must have an alt prop, either with meaningful text, or an empty string for decorative images"), e.createElement("img", Object.assign({
|
|
2209
|
+
src: l,
|
|
2210
|
+
alt: o.alt
|
|
2211
|
+
}, o))) : a ?? e.createElement(e.Fragment, null, "''");
|
|
2212
|
+
}
|
|
2213
|
+
function Ar(t) {
|
|
2214
|
+
let { storage: n } = t;
|
|
2215
|
+
return n ? e.createElement(kr, Object.assign({}, t)) : e.createElement(Or, Object.assign({}, t));
|
|
2216
|
+
}
|
|
2217
|
+
//#endregion
|
|
2218
|
+
//#region src/sdk.tsx
|
|
2219
|
+
var J = e.createContext(void 0), jr = e.createContext(void 0), Mr = e.createContext(void 0), Y = e.createContext(void 0), Nr = e.createContext(void 0), Pr = e.createContext(void 0), Fr = e.createContext(void 0), Ir = e.createContext(void 0), Lr = e.createContext(void 0);
|
|
2220
|
+
function X(t) {
|
|
2221
|
+
return function(n) {
|
|
2222
|
+
if (!n.sdk) throw Error("no sdk provided");
|
|
2223
|
+
let r = gn().name;
|
|
2224
|
+
if (n?.sdk?.app?.name !== r) throw Error("sdk was initialized with a different firebase app");
|
|
2225
|
+
return e.createElement(t.Provider, Object.assign({ value: n.sdk }, n));
|
|
2226
|
+
};
|
|
2227
|
+
}
|
|
2228
|
+
function Z(t) {
|
|
2229
|
+
let n = e.useContext(t);
|
|
2230
|
+
if (!n) throw Error("SDK not found. useSdk must be called from within a provider");
|
|
2231
|
+
return n;
|
|
2232
|
+
}
|
|
2233
|
+
function Q(t, n, r, i) {
|
|
2234
|
+
let a = gn();
|
|
2235
|
+
if (e.useContext(n)) throw Error(`Cannot initialize SDK ${t} because it already exists in Context`);
|
|
2236
|
+
let o = e.useMemo(() => r(a), [a]);
|
|
2237
|
+
return G(`firebase-sdk:${t}:${a.name}`, I(o), i);
|
|
2238
|
+
}
|
|
2239
|
+
var Rr = X(J), zr = X(jr), Br = X(Mr), Vr = X(Y), Hr = X(Nr), Ur = X(Pr), Wr = X(Ir), Gr = X(Fr), Kr = X(Lr), qr = () => Z(J), Jr = () => Z(jr), Yr = () => Z(Mr), Xr = () => Z(Y), Zr = () => Z(Nr), Qr = () => Z(Pr), $r = () => Z(Ir), ei = () => Z(Fr), ti = () => Z(Lr), ni = (e, t) => Q("appcheck", J, e, t), ri = (e, t) => Q("auth", jr, e, t), ii = (e, t) => Q("analytics", Mr, e, t), ai = (e, t) => Q("database", Y, e, t), oi = (e, t) => Q("firestore", Nr, e, t), si = (e, t) => Q("functions", Pr, e, t), ci = (e, t) => Q("performance", Ir, e, t), li = (e, t) => Q("remoteconfig", Lr, e, t), ui = (e, t) => Q("storage", Fr, e, t), di = class e extends Error {
|
|
2240
|
+
constructor(t, n, r) {
|
|
2241
|
+
super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, e.prototype);
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
function fi(e, t) {
|
|
2245
|
+
if (t === "idField" || t === "initialData" || t === "suspense") return e ? e[t] : void 0;
|
|
2246
|
+
throw Error(`Field "${t}" is not a valid key in ReactFireOptions`);
|
|
2135
2247
|
}
|
|
2136
|
-
function
|
|
2137
|
-
|
|
2138
|
-
suspense: ne(r)
|
|
2139
|
-
};
|
|
2140
|
-
if (!t)
|
|
2141
|
-
throw new Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
|
|
2142
|
-
const { status: s, data: a } = Or(qt(t, n), u);
|
|
2143
|
-
return s === "success" ? (o.alt || o.alt === "" || console.warn(`No alt prop provided for StorageImage with storagePath "${n}"`, "img elements must have an alt prop, either with meaningful text, or an empty string for decorative images"), f.createElement("img", Object.assign({ src: a, alt: o.alt }, o))) : i ?? f.createElement(f.Fragment, null, "''");
|
|
2144
|
-
}
|
|
2145
|
-
function ci(e) {
|
|
2146
|
-
const { storage: t } = e;
|
|
2147
|
-
return t ? f.createElement(It, Object.assign({}, e)) : f.createElement(kr, Object.assign({}, e));
|
|
2148
|
-
}
|
|
2149
|
-
const ke = f.createContext(void 0), Ae = f.createContext(void 0), Fe = f.createContext(void 0), Pe = f.createContext(void 0), $e = f.createContext(void 0), Te = f.createContext(void 0), De = f.createContext(void 0), Re = f.createContext(void 0), je = f.createContext(void 0);
|
|
2150
|
-
function k(e) {
|
|
2151
|
-
return function(n) {
|
|
2152
|
-
var r, i;
|
|
2153
|
-
if (!n.sdk)
|
|
2154
|
-
throw new Error("no sdk provided");
|
|
2155
|
-
const o = bt().name;
|
|
2156
|
-
if (((i = (r = n == null ? void 0 : n.sdk) === null || r === void 0 ? void 0 : r.app) === null || i === void 0 ? void 0 : i.name) !== o)
|
|
2157
|
-
throw new Error("sdk was initialized with a different firebase app");
|
|
2158
|
-
return f.createElement(e.Provider, Object.assign({ value: n.sdk }, n));
|
|
2159
|
-
};
|
|
2248
|
+
function pi(e) {
|
|
2249
|
+
return fi(e, "initialData");
|
|
2160
2250
|
}
|
|
2161
|
-
function
|
|
2162
|
-
|
|
2163
|
-
if (!t)
|
|
2164
|
-
throw new Error("SDK not found. useSdk must be called from within a provider");
|
|
2165
|
-
return t;
|
|
2166
|
-
}
|
|
2167
|
-
function F(e, t, n, r) {
|
|
2168
|
-
const i = bt();
|
|
2169
|
-
if (f.useContext(t))
|
|
2170
|
-
throw new Error(`Cannot initialize SDK ${e} because it already exists in Context`);
|
|
2171
|
-
const o = f.useMemo(() => n(i), [i]);
|
|
2172
|
-
return g(`firebase-sdk:${e}:${i.name}`, O(o), r);
|
|
2173
|
-
}
|
|
2174
|
-
const li = k(ke), fi = k(Ae), di = k(Fe), vi = k(Pe), hi = k($e), pi = k(Te), mi = k(Re), bi = k(De), yi = k(je), gi = () => A(ke), Ot = () => A(Ae), wi = () => A(Fe), _i = () => A(Pe), Si = () => A($e), Ar = () => A(Te), Ci = () => A(Re), Fr = () => A(De), Pr = () => A(je), Ei = (e, t) => F("appcheck", ke, e, t), xi = (e, t) => F("auth", Ae, e, t), Ii = (e, t) => F("analytics", Fe, e, t), Oi = (e, t) => F("database", Pe, e, t), ki = (e, t) => F("firestore", $e, e, t), Ai = (e, t) => F("functions", Te, e, t), Fi = (e, t) => F("performance", Re, e, t), Pi = (e, t) => F("remoteconfig", je, e, t), $i = (e, t) => F("storage", De, e, t);
|
|
2175
|
-
class Ue extends Error {
|
|
2176
|
-
constructor(t, n, r) {
|
|
2177
|
-
super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, Ue.prototype);
|
|
2178
|
-
}
|
|
2179
|
-
}
|
|
2180
|
-
function kt(e, t) {
|
|
2181
|
-
if (t === "idField" || t === "initialData" || t === "suspense")
|
|
2182
|
-
return e ? e[t] : void 0;
|
|
2183
|
-
throw new Error(`Field "${t}" is not a valid key in ReactFireOptions`);
|
|
2251
|
+
function $(e) {
|
|
2252
|
+
return fi(e, "idField");
|
|
2184
2253
|
}
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
return kt(e, "idField");
|
|
2190
|
-
}
|
|
2191
|
-
export {
|
|
2192
|
-
di as AnalyticsProvider,
|
|
2193
|
-
Fe as AnalyticsSdkContext,
|
|
2194
|
-
li as AppCheckProvider,
|
|
2195
|
-
ke as AppCheckSdkContext,
|
|
2196
|
-
qr as AuthCheck,
|
|
2197
|
-
fi as AuthProvider,
|
|
2198
|
-
Ae as AuthSdkContext,
|
|
2199
|
-
ir as ClaimsCheck,
|
|
2200
|
-
vi as DatabaseProvider,
|
|
2201
|
-
Pe as DatabaseSdkContext,
|
|
2202
|
-
Mr as FirebaseAppProvider,
|
|
2203
|
-
hi as FirestoreProvider,
|
|
2204
|
-
$e as FirestoreSdkContext,
|
|
2205
|
-
pi as FunctionsProvider,
|
|
2206
|
-
Te as FunctionsSdkContext,
|
|
2207
|
-
mi as PerformanceProvider,
|
|
2208
|
-
Re as PerformanceSdkContext,
|
|
2209
|
-
Ue as ReactFireError,
|
|
2210
|
-
yi as RemoteConfigProvider,
|
|
2211
|
-
je as RemoteConfigSdkContext,
|
|
2212
|
-
ci as StorageImage,
|
|
2213
|
-
bi as StorageProvider,
|
|
2214
|
-
De as StorageSdkContext,
|
|
2215
|
-
ni as SuspenseWithPerf,
|
|
2216
|
-
K as checkIdField,
|
|
2217
|
-
kt as checkOptions,
|
|
2218
|
-
Ti as checkinitialData,
|
|
2219
|
-
Gr as preloadFirestoreDoc,
|
|
2220
|
-
Oe as preloadObservable,
|
|
2221
|
-
Nr as preloadUser,
|
|
2222
|
-
wi as useAnalytics,
|
|
2223
|
-
gi as useAppCheck,
|
|
2224
|
-
Ot as useAuth,
|
|
2225
|
-
ti as useCallableFunctionResponse,
|
|
2226
|
-
_i as useDatabase,
|
|
2227
|
-
Hr as useDatabaseList,
|
|
2228
|
-
Yr as useDatabaseListData,
|
|
2229
|
-
Qr as useDatabaseObject,
|
|
2230
|
-
Kr as useDatabaseObjectData,
|
|
2231
|
-
bt as useFirebaseApp,
|
|
2232
|
-
Si as useFirestore,
|
|
2233
|
-
Xr as useFirestoreCollection,
|
|
2234
|
-
ei as useFirestoreCollectionData,
|
|
2235
|
-
Jr as useFirestoreDoc,
|
|
2236
|
-
Zr as useFirestoreDocData,
|
|
2237
|
-
Br as useFirestoreDocDataOnce,
|
|
2238
|
-
zr as useFirestoreDocOnce,
|
|
2239
|
-
Ar as useFunctions,
|
|
2240
|
-
nr as useIdTokenResult,
|
|
2241
|
-
Ii as useInitAnalytics,
|
|
2242
|
-
Ei as useInitAppCheck,
|
|
2243
|
-
xi as useInitAuth,
|
|
2244
|
-
Oi as useInitDatabase,
|
|
2245
|
-
ki as useInitFirestore,
|
|
2246
|
-
Ai as useInitFunctions,
|
|
2247
|
-
Fi as useInitPerformance,
|
|
2248
|
-
Pi as useInitRemoteConfig,
|
|
2249
|
-
$i as useInitStorage,
|
|
2250
|
-
Lr as useIsSuspenseEnabled,
|
|
2251
|
-
g as useObservable,
|
|
2252
|
-
Ci as usePerformance,
|
|
2253
|
-
Pr as useRemoteConfig,
|
|
2254
|
-
si as useRemoteConfigAll,
|
|
2255
|
-
ui as useRemoteConfigBoolean,
|
|
2256
|
-
oi as useRemoteConfigNumber,
|
|
2257
|
-
ii as useRemoteConfigString,
|
|
2258
|
-
ri as useRemoteConfigValue,
|
|
2259
|
-
Wr as useSigninCheck,
|
|
2260
|
-
Fr as useStorage,
|
|
2261
|
-
Or as useStorageDownloadURL,
|
|
2262
|
-
ai as useStorageTask,
|
|
2263
|
-
ne as useSuspenseEnabledFromConfigAndContext,
|
|
2264
|
-
tr as useUser,
|
|
2265
|
-
Xn as version
|
|
2266
|
-
};
|
|
2267
|
-
//# sourceMappingURL=index.js.map
|
|
2254
|
+
//#endregion
|
|
2255
|
+
export { Br as AnalyticsProvider, Mr as AnalyticsSdkContext, Rr as AppCheckProvider, J as AppCheckSdkContext, Cn as AuthCheck, zr as AuthProvider, jr as AuthSdkContext, Sn as ClaimsCheck, Vr as DatabaseProvider, Y as DatabaseSdkContext, mn as FirebaseAppProvider, Hr as FirestoreProvider, Nr as FirestoreSdkContext, Ur as FunctionsProvider, Pr as FunctionsSdkContext, Wr as PerformanceProvider, Ir as PerformanceSdkContext, di as ReactFireError, Kr as RemoteConfigProvider, Lr as RemoteConfigSdkContext, Ar as StorageImage, Gr as StorageProvider, Fr as StorageSdkContext, pr as SuspenseWithPerf, $ as checkIdField, fi as checkOptions, pi as checkinitialData, rr as preloadFirestoreDoc, W as preloadObservable, _n as preloadUser, Yr as useAnalytics, qr as useAppCheck, Jr as useAuth, fr as useCallableFunctionResponse, Xr as useDatabase, Hn as useDatabaseList, Un as useDatabaseListData, Bn as useDatabaseObject, Vn as useDatabaseObjectData, gn as useFirebaseApp, Zr as useFirestore, lr as useFirestoreCollection, ur as useFirestoreCollectionData, ar as useFirestoreDoc, sr as useFirestoreDocData, cr as useFirestoreDocDataOnce, or as useFirestoreDocOnce, Qr as useFunctions, yn as useIdTokenResult, ii as useInitAnalytics, ni as useInitAppCheck, ri as useInitAuth, ai as useInitDatabase, oi as useInitFirestore, si as useInitFunctions, ci as useInitPerformance, li as useInitRemoteConfig, ui as useInitStorage, hn as useIsSuspenseEnabled, G as useObservable, $r as usePerformance, ti as useRemoteConfig, Cr as useRemoteConfigAll, Sr as useRemoteConfigBoolean, xr as useRemoteConfigNumber, br as useRemoteConfigString, yr as useRemoteConfigValue, bn as useSigninCheck, ei as useStorage, Dr as useStorageDownloadURL, Er as useStorageTask, R as useSuspenseEnabledFromConfigAndContext, vn as useUser, fn as version };
|
|
2256
|
+
|
|
2257
|
+
//# sourceMappingURL=index.js.map
|