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