reactfire 4.2.3-exp.6734b6a → 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/index.js CHANGED
@@ -1,29 +1,30 @@
1
- import * as f from "react";
2
- import { onIdTokenChanged as Ft } from "firebase/auth";
3
- import { onChildAdded as Pt, onChildRemoved as $t, onChildChanged as Tt, onChildMoved as Dt, onValue as Rt, off as jt, get as Ut } from "firebase/database";
4
- import { getApps as Vt, registerVersion as Ne, initializeApp as Mt } from "firebase/app";
5
- import { onSnapshot as Lt, queryEqual as Nt } from "firebase/firestore";
6
- import { httpsCallable as Wt } from "firebase/functions";
7
- import { getDownloadURL as qt, ref as Qt } from "firebase/storage";
8
- import { ensureInitialized as Kt, getValue as Ht, getString as Yt, getNumber as Gt, getBoolean as Jt, getAll as zt } from "firebase/remote-config";
9
- var ce = function(e, t) {
10
- return ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
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
- }, ce(e, t);
16
+ }, pe(e, t);
16
17
  };
17
- function x(e, t) {
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
- ce(e, t);
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 Zt(e, t) {
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,7 +33,7 @@ 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 pe(e, t, n, r) {
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);
@@ -42,15 +43,15 @@ function pe(e, t, n, r) {
42
43
  function a(l) {
43
44
  try {
44
45
  c(r.next(l));
45
- } catch (d) {
46
- u(d);
46
+ } catch (f) {
47
+ u(f);
47
48
  }
48
49
  }
49
50
  function s(l) {
50
51
  try {
51
52
  c(r.throw(l));
52
- } catch (d) {
53
- u(d);
53
+ } catch (f) {
54
+ u(f);
54
55
  }
55
56
  }
56
57
  function c(l) {
@@ -59,7 +60,7 @@ function pe(e, t, n, r) {
59
60
  c((r = r.apply(e, t || [])).next());
60
61
  });
61
62
  }
62
- function He(e, t) {
63
+ function et(e, t) {
63
64
  var n = { label: 0, sent: function() {
64
65
  if (o[0] & 1)
65
66
  throw o[1];
@@ -76,7 +77,7 @@ function He(e, t) {
76
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 He(e, t) {
124
125
  return { value: c[0] ? c[1] : void 0, done: !0 };
125
126
  }
126
127
  }
127
- function V(e) {
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 D(e, t) {
140
+ function M(e, t) {
140
141
  var n = typeof Symbol == "function" && e[Symbol.iterator];
141
142
  if (!n)
142
143
  return e;
@@ -156,54 +157,54 @@ function D(e, t) {
156
157
  }
157
158
  return o;
158
159
  }
159
- function R(e, t, n) {
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 U(e) {
166
- return this instanceof U ? (this.v = e, this) : new U(e);
166
+ function W(e) {
167
+ return this instanceof W ? (this.v = e, this) : new W(e);
167
168
  }
168
- function Bt(e, t, n) {
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(v) {
176
- r[v] && (i[v] = function(p) {
177
- return new Promise(function(S, h) {
178
- o.push([v, p, S, h]) > 1 || a(v, p);
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 a(v, p) {
183
+ function a(d, p) {
183
184
  try {
184
- s(r[v](p));
185
- } catch (S) {
186
- d(o[0][3], S);
185
+ s(r[d](p));
186
+ } catch (y) {
187
+ f(o[0][3], y);
187
188
  }
188
189
  }
189
- function s(v) {
190
- v.value instanceof U ? Promise.resolve(v.value.v).then(c, l) : d(o[0][2], v);
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(v) {
193
- a("next", v);
193
+ function c(d) {
194
+ a("next", d);
194
195
  }
195
- function l(v) {
196
- a("throw", v);
196
+ function l(d) {
197
+ a("throw", d);
197
198
  }
198
- function d(v, p) {
199
- v(p), o.shift(), o.length && a(o[0][0], o[0][1]);
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 Xt(e) {
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 V == "function" ? V(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
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) {
@@ -219,16 +220,16 @@ function Xt(e) {
219
220
  }, u);
220
221
  }
221
222
  }
222
- function b(e) {
223
+ function S(e) {
223
224
  return typeof e == "function";
224
225
  }
225
- function me(e) {
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 oe = me(function(e) {
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 B(e, t) {
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 N = function() {
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,7 +256,7 @@ var N = function() {
255
256
  if (u)
256
257
  if (this._parentage = null, Array.isArray(u))
257
258
  try {
258
- for (var a = V(u), s = a.next(); !s.done; s = a.next()) {
259
+ for (var a = q(u), s = a.next(); !s.done; s = a.next()) {
259
260
  var c = s.value;
260
261
  c.remove(this);
261
262
  }
@@ -272,29 +273,29 @@ var N = function() {
272
273
  else
273
274
  u.remove(this);
274
275
  var l = this.initialTeardown;
275
- if (b(l))
276
+ if (S(l))
276
277
  try {
277
278
  l();
278
279
  } catch (h) {
279
- o = h instanceof oe ? h.errors : [h];
280
+ o = h instanceof ce ? h.errors : [h];
280
281
  }
281
- var d = this._finalizers;
282
- if (d) {
282
+ var f = this._finalizers;
283
+ if (f) {
283
284
  this._finalizers = null;
284
285
  try {
285
- for (var v = V(d), p = v.next(); !p.done; p = v.next()) {
286
- var S = p.value;
286
+ for (var d = q(f), p = d.next(); !p.done; p = d.next()) {
287
+ var y = p.value;
287
288
  try {
288
- We(S);
289
+ Qe(y);
289
290
  } catch (h) {
290
- o = o != null ? o : [], h instanceof oe ? o = R(R([], D(o)), D(h.errors)) : o.push(h);
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 = v.return) && i.call(v);
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 oe(o);
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
- We(t);
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) && B(n, t);
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 && B(n, t), t instanceof e && t._removeParent(this);
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
- }(), Ye = N.EMPTY;
337
- function Ge(e) {
338
- return e instanceof N || e && "closed" in e && b(e.remove) && b(e.add) && b(e.unsubscribe);
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 We(e) {
341
- b(e) ? e() : e.unsubscribe();
341
+ function Qe(e) {
342
+ S(e) ? e() : e.unsubscribe();
342
343
  }
343
- var be = {
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
- }, le = {
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 = le.delegate;
354
- return i != null && i.setTimeout ? i.setTimeout.apply(i, R([e, t], D(n))) : setTimeout.apply(void 0, R([e, t], D(n)));
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 = le.delegate;
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 Je(e) {
363
- le.setTimeout(function() {
363
+ function it(e) {
364
+ me.setTimeout(function() {
364
365
  throw e;
365
366
  });
366
367
  }
367
- function fe() {
368
+ function be() {
368
369
  }
369
- var G = null;
370
- function z(e) {
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 ye = function(e) {
382
- x(t, e);
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, Ge(n) && n.add(r)) : r.destination = rn, r;
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 L(n, r, i);
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
- }(N), en = Function.prototype.bind;
413
- function ue(e, t) {
414
- return en.call(e, t);
404
+ }(Q), fn = Function.prototype.bind;
405
+ function le(e, t) {
406
+ return fn.call(e, t);
415
407
  }
416
- var tn = function() {
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
- J(r);
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
- J(r);
426
+ Z(r);
435
427
  }
436
428
  else
437
- J(t);
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
- J(n);
436
+ Z(n);
445
437
  }
446
438
  }, e;
447
- }(), L = function(e) {
448
- x(t, e);
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 (b(n) || !n)
443
+ if (S(n) || !n)
452
444
  u = {
453
- next: n != null ? n : void 0,
454
- error: r != null ? r : void 0,
455
- complete: i != null ? i : void 0
445
+ next: n ?? void 0,
446
+ error: r ?? void 0,
447
+ complete: i ?? void 0
456
448
  };
457
449
  else {
458
450
  var a;
459
- o && be.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
451
+ o && rt.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
460
452
  return o.unsubscribe();
461
453
  }, u = {
462
- next: n.next && ue(n.next, a),
463
- error: n.error && ue(n.error, a),
464
- complete: n.complete && ue(n.complete, a)
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 tn(u), o;
459
+ return o.destination = new dn(u), o;
468
460
  }
469
461
  return t;
470
- }(ye);
471
- function J(e) {
472
- Je(e);
462
+ }(Ce);
463
+ function Z(e) {
464
+ it(e);
473
465
  }
474
- function nn(e) {
466
+ function vn(e) {
475
467
  throw e;
476
468
  }
477
- var rn = {
469
+ var hn = {
478
470
  closed: !0,
479
- next: fe,
480
- error: nn,
481
- complete: fe
482
- }, ge = function() {
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 W(e) {
477
+ function Y(e) {
486
478
  return e;
487
479
  }
488
- function on(e) {
489
- return e.length === 0 ? W : e.length === 1 ? e[0] : function(n) {
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 y = function() {
487
+ var w = function() {
496
488
  function e(t) {
497
489
  t && (this._subscribe = t);
498
490
  }
@@ -500,8 +492,8 @@ 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 = an(t) ? t : new L(t, n, r);
504
- return z(function() {
495
+ var i = this, o = bn(t) ? t : new G(t, n, r);
496
+ return X(function() {
505
497
  var u = i, a = u.operator, s = u.source;
506
498
  o.add(a ? a.call(o, s) : s ? i._subscribe(o) : i._trySubscribe(o));
507
499
  }), o;
@@ -513,8 +505,8 @@ var y = function() {
513
505
  }
514
506
  }, e.prototype.forEach = function(t, n) {
515
507
  var r = this;
516
- return n = qe(n), new n(function(i, o) {
517
- var u = new L({
508
+ return n = Ye(n), new n(function(i, o) {
509
+ var u = new G({
518
510
  next: function(a) {
519
511
  try {
520
512
  t(a);
@@ -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[ge] = function() {
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 on(t)(this);
530
+ return pn(t)(this);
539
531
  }, e.prototype.toPromise = function(t) {
540
532
  var n = this;
541
- return t = qe(t), new t(function(r, i) {
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 qe(e) {
547
+ function Ye(e) {
556
548
  var t;
557
- return (t = e != null ? e : be.Promise) !== null && t !== void 0 ? t : Promise;
549
+ return (t = e ?? rt.Promise) !== null && t !== void 0 ? t : Promise;
558
550
  }
559
- function un(e) {
560
- return e && b(e.next) && b(e.error) && b(e.complete);
551
+ function mn(e) {
552
+ return e && S(e.next) && S(e.error) && S(e.complete);
561
553
  }
562
- function an(e) {
563
- return e && e instanceof ye || un(e) && Ge(e);
554
+ function bn(e) {
555
+ return e && e instanceof Ce || mn(e) && nt(e);
564
556
  }
565
- function sn(e) {
566
- return b(e == null ? void 0 : e.lift);
557
+ function yn(e) {
558
+ return S(e == null ? void 0 : e.lift);
567
559
  }
568
- function _(e) {
560
+ function x(e) {
569
561
  return function(t) {
570
- if (sn(t))
562
+ if (yn(t))
571
563
  return t.lift(function(n) {
572
564
  try {
573
565
  return e(n, this);
@@ -578,11 +570,11 @@ function _(e) {
578
570
  throw new TypeError("Unable to lift unknown Observable type");
579
571
  };
580
572
  }
581
- function w(e, t, n, r, i) {
582
- return new cn(e, t, n, r, i);
573
+ function C(e, t, n, r, i) {
574
+ return new gn(e, t, n, r, i);
583
575
  }
584
- var cn = function(e) {
585
- x(t, e);
576
+ var gn = function(e) {
577
+ T(t, e);
586
578
  function t(n, r, i, o, u, a) {
587
579
  var s = e.call(this, n) || this;
588
580
  return s.onFinalize = u, s.shouldUnsubscribe = a, s._next = r ? function(c) {
@@ -616,30 +608,30 @@ 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
- }(ye), ln = me(function(e) {
611
+ }(Ce), _n = Ee(function(e) {
620
612
  return function() {
621
613
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
622
614
  };
623
- }), ne = function(e) {
624
- x(t, e);
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 Qe(this, this);
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 ln();
626
+ throw new _n();
635
627
  }, t.prototype.next = function(n) {
636
628
  var r = this;
637
- z(function() {
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 = V(r.currentObservers), a = u.next(); !a.done; a = u.next()) {
634
+ for (var u = q(r.currentObservers), a = u.next(); !a.done; a = u.next()) {
643
635
  var s = a.value;
644
636
  s.next(n);
645
637
  }
@@ -657,7 +649,7 @@ var cn = function(e) {
657
649
  });
658
650
  }, t.prototype.error = function(n) {
659
651
  var r = this;
660
- z(function() {
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
- z(function() {
661
+ X(function() {
670
662
  if (n._throwIfClosed(), !n.isStopped) {
671
663
  n.isStopped = !0;
672
664
  for (var r = n.observers; r.length; )
@@ -688,20 +680,20 @@ var cn = function(e) {
688
680
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
689
681
  }, t.prototype._innerSubscribe = function(n) {
690
682
  var r = this, i = this, o = i.hasError, u = i.isStopped, a = i.observers;
691
- return o || u ? Ye : (this.currentObservers = null, a.push(n), new N(function() {
692
- r.currentObservers = null, B(a, n);
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 y();
690
+ var n = new w();
699
691
  return n.source = this, n;
700
692
  }, t.create = function(n, r) {
701
- return new Qe(n, r);
693
+ return new Be(n, r);
702
694
  }, t;
703
- }(y), Qe = function(e) {
704
- x(t, e);
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,17 +709,17 @@ 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 : Ye;
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
- }(ne), we = {
714
+ }(oe), Oe = {
723
715
  now: function() {
724
- return (we.delegate || Date).now();
716
+ return (Oe.delegate || Date).now();
725
717
  },
726
718
  delegate: void 0
727
- }, fn = function(e) {
728
- x(t, e);
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 = we);
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
  }
@@ -747,44 +739,45 @@ var cn = function(e) {
747
739
  c && o.splice(0, c + 1);
748
740
  }
749
741
  }, t;
750
- }(ne), dn = function(e) {
751
- x(t, e);
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
- }(N), X = {
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 = X.delegate;
763
- return i != null && i.setInterval ? i.setInterval.apply(i, R([e, t], D(n))) : setInterval.apply(void 0, R([e, t], D(n)));
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 = X.delegate;
758
+ var t = ne.delegate;
767
759
  return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
768
760
  },
769
761
  delegate: void 0
770
- }, vn = function(e) {
771
- x(t, e);
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 i = this.id, o = this.scheduler;
781
- return i != null && (this.id = this.recycleAsyncId(o, i, r)), this.pending = !0, this.delay = r, this.id = this.id || this.requestAsyncId(o, this.id, r), this;
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), X.setInterval(n.flush.bind(n, this), i);
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
- X.clearInterval(r);
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, B(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
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
- }(dn), Ke = function() {
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 = we.now, e;
818
- }(), hn = function(e) {
819
- x(t, e);
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 = Ke.now);
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._scheduled = void 0, 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
- }(Ke), _e = new hn(vn), pn = _e, Se = new y(function(e) {
836
+ }(Je), Ie = new Cn(En), xn = Ie, Ae = new w(function(e) {
844
837
  return e.complete();
845
838
  });
846
- function mn(e) {
847
- return e ? bn(e) : Se;
839
+ function On(e) {
840
+ return e ? In(e) : Ae;
848
841
  }
849
- function bn(e) {
850
- return new y(function(t) {
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 ze(e) {
857
- return e && b(e.schedule);
849
+ function ot(e) {
850
+ return e && S(e.schedule);
858
851
  }
859
- function Ze(e) {
852
+ function ut(e) {
860
853
  return e[e.length - 1];
861
854
  }
862
- function Ce(e) {
863
- return ze(Ze(e)) ? e.pop() : void 0;
855
+ function ke(e) {
856
+ return ot(ut(e)) ? e.pop() : void 0;
864
857
  }
865
- function yn(e, t) {
866
- return typeof Ze(e) == "number" ? e.pop() : t;
858
+ function An(e, t) {
859
+ return typeof ut(e) == "number" ? e.pop() : t;
867
860
  }
868
- var Be = function(e) {
861
+ var at = function(e) {
869
862
  return e && typeof e.length == "number" && typeof e != "function";
870
863
  };
871
- function Xe(e) {
872
- return b(e == null ? void 0 : e.then);
864
+ function st(e) {
865
+ return S(e == null ? void 0 : e.then);
873
866
  }
874
- function et(e) {
875
- return b(e[ge]);
867
+ function ct(e) {
868
+ return S(e[xe]);
876
869
  }
877
- function tt(e) {
878
- return Symbol.asyncIterator && b(e == null ? void 0 : e[Symbol.asyncIterator]);
870
+ function lt(e) {
871
+ return Symbol.asyncIterator && S(e == null ? void 0 : e[Symbol.asyncIterator]);
879
872
  }
880
- function nt(e) {
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 gn() {
876
+ function kn() {
884
877
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
885
878
  }
886
- var rt = gn();
887
- function it(e) {
888
- return b(e == null ? void 0 : e[rt]);
879
+ var dt = kn();
880
+ function vt(e) {
881
+ return S(e == null ? void 0 : e[dt]);
889
882
  }
890
- function ot(e) {
891
- return Bt(this, arguments, function() {
883
+ function ht(e) {
884
+ return cn(this, arguments, function() {
892
885
  var n, r, i, o;
893
- return He(this, function(u) {
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, U(n.read())];
893
+ return [4, W(n.read())];
901
894
  case 3:
902
- return r = u.sent(), i = r.value, o = r.done, o ? [4, U(void 0)] : [3, 5];
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, U(i)];
899
+ return [4, W(i)];
907
900
  case 6:
908
901
  return [4, u.sent()];
909
902
  case 7:
@@ -918,57 +911,57 @@ function ot(e) {
918
911
  });
919
912
  });
920
913
  }
921
- function ut(e) {
922
- return b(e == null ? void 0 : e.getReader);
914
+ function pt(e) {
915
+ return S(e == null ? void 0 : e.getReader);
923
916
  }
924
- function I(e) {
925
- if (e instanceof y)
917
+ function k(e) {
918
+ if (e instanceof w)
926
919
  return e;
927
920
  if (e != null) {
928
- if (et(e))
929
- return wn(e);
930
- if (Be(e))
931
- return _n(e);
932
- if (Xe(e))
933
- return Sn(e);
934
- if (tt(e))
935
- return at(e);
936
- if (it(e))
937
- return Cn(e);
938
- if (ut(e))
939
- return En(e);
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 nt(e);
934
+ throw ft(e);
942
935
  }
943
- function wn(e) {
944
- return new y(function(t) {
945
- var n = e[ge]();
946
- if (b(n.subscribe))
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 _n(e) {
952
- return new y(function(t) {
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 Sn(e) {
959
- return new y(function(t) {
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, Je);
957
+ }).then(null, it);
965
958
  });
966
959
  }
967
- function Cn(e) {
968
- return new y(function(t) {
960
+ function $n(e) {
961
+ return new w(function(t) {
969
962
  var n, r;
970
963
  try {
971
- for (var i = V(e), o = i.next(); !o.done; o = i.next()) {
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;
@@ -986,24 +979,24 @@ function Cn(e) {
986
979
  t.complete();
987
980
  });
988
981
  }
989
- function at(e) {
990
- return new y(function(t) {
991
- xn(e, t).catch(function(n) {
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 En(e) {
997
- return at(ot(e));
989
+ function Dn(e) {
990
+ return mt(ht(e));
998
991
  }
999
- function xn(e, t) {
992
+ function Rn(e, t) {
1000
993
  var n, r, i, o;
1001
- return pe(this, void 0, void 0, function() {
994
+ return we(this, void 0, void 0, function() {
1002
995
  var u, a;
1003
- return He(this, function(s) {
996
+ return et(this, function(s) {
1004
997
  switch (s.label) {
1005
998
  case 0:
1006
- s.trys.push([0, 5, 6, 11]), n = Xt(e), s.label = 1;
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:
@@ -1036,7 +1029,7 @@ function xn(e, t) {
1036
1029
  });
1037
1030
  });
1038
1031
  }
1039
- function P(e, t, n, r, i) {
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,49 +1037,49 @@ function P(e, t, n, r, i) {
1044
1037
  if (e.add(o), !i)
1045
1038
  return o;
1046
1039
  }
1047
- function st(e, t) {
1048
- return t === void 0 && (t = 0), _(function(n, r) {
1049
- n.subscribe(w(r, function(i) {
1050
- return P(r, e, function() {
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 P(r, e, function() {
1047
+ return V(r, e, function() {
1055
1048
  return r.complete();
1056
1049
  }, t);
1057
1050
  }, function(i) {
1058
- return P(r, e, function() {
1051
+ return V(r, e, function() {
1059
1052
  return r.error(i);
1060
1053
  }, t);
1061
1054
  }));
1062
1055
  });
1063
1056
  }
1064
- function ct(e, t) {
1065
- return t === void 0 && (t = 0), _(function(n, r) {
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 In(e, t) {
1072
- return I(e).pipe(ct(t), st(t));
1064
+ function jn(e, t) {
1065
+ return k(e).pipe(yt(t), bt(t));
1073
1066
  }
1074
- function On(e, t) {
1075
- return I(e).pipe(ct(t), st(t));
1067
+ function Ln(e, t) {
1068
+ return k(e).pipe(yt(t), bt(t));
1076
1069
  }
1077
- function kn(e, t) {
1078
- return new y(function(n) {
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 An(e, t) {
1086
- return new y(function(n) {
1078
+ function Un(e, t) {
1079
+ return new w(function(n) {
1087
1080
  var r;
1088
- return P(n, t, function() {
1089
- r = e[rt](), P(n, t, function() {
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;
@@ -1097,17 +1090,17 @@ function An(e, t) {
1097
1090
  u ? n.complete() : n.next(o);
1098
1091
  }, 0, !0);
1099
1092
  }), function() {
1100
- return b(r == null ? void 0 : r.return) && r.return();
1093
+ return S(r == null ? void 0 : r.return) && r.return();
1101
1094
  };
1102
1095
  });
1103
1096
  }
1104
- function lt(e, t) {
1097
+ function gt(e, t) {
1105
1098
  if (!e)
1106
1099
  throw new Error("Iterable cannot be null");
1107
- return new y(function(n) {
1108
- P(n, t, function() {
1100
+ return new w(function(n) {
1101
+ V(n, t, function() {
1109
1102
  var r = e[Symbol.asyncIterator]();
1110
- P(n, t, function() {
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 Fn(e, t) {
1119
- return lt(ot(e), t);
1111
+ function Mn(e, t) {
1112
+ return gt(ht(e), t);
1120
1113
  }
1121
- function Pn(e, t) {
1114
+ function Nn(e, t) {
1122
1115
  if (e != null) {
1123
- if (et(e))
1124
- return In(e, t);
1125
- if (Be(e))
1126
- return kn(e, t);
1127
- if (Xe(e))
1128
- return On(e, t);
1129
- if (tt(e))
1130
- return lt(e, t);
1131
- if (it(e))
1132
- return An(e, t);
1133
- if (ut(e))
1134
- return Fn(e, t);
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 nt(e);
1129
+ throw ft(e);
1137
1130
  }
1138
- function O(e, t) {
1139
- return t ? Pn(e, t) : I(e);
1131
+ function $(e, t) {
1132
+ return t ? Nn(e, t) : k(e);
1140
1133
  }
1141
- function ee() {
1134
+ function re() {
1142
1135
  for (var e = [], t = 0; t < arguments.length; t++)
1143
1136
  e[t] = arguments[t];
1144
- var n = Ce(e);
1145
- return O(e, n);
1137
+ var n = ke(e);
1138
+ return $(e, n);
1146
1139
  }
1147
- var ft = me(function(e) {
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 $n(e) {
1145
+ function Wn(e) {
1153
1146
  return e instanceof Date && !isNaN(e);
1154
1147
  }
1155
- function C(e, t) {
1156
- return _(function(n, r) {
1148
+ function P(e, t) {
1149
+ return x(function(n, r) {
1157
1150
  var i = 0;
1158
- n.subscribe(w(r, function(o) {
1151
+ n.subscribe(C(r, function(o) {
1159
1152
  r.next(e.call(t, o, i++));
1160
1153
  }));
1161
1154
  });
1162
1155
  }
1163
- function Tn(e, t, n, r, i, o, u, a) {
1164
- var s = [], c = 0, l = 0, d = !1, v = function() {
1165
- d && !s.length && !c && t.complete();
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 ? S(h) : s.push(h);
1168
- }, S = function(h) {
1160
+ return c < r ? y(h) : s.push(h);
1161
+ }, y = function(h) {
1169
1162
  o && t.next(h), c++;
1170
- var $ = !1;
1171
- I(n(h, l++)).subscribe(w(t, function(E) {
1172
- i == null || i(E), o ? p(E) : t.next(E);
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
- $ = !0;
1167
+ I = !0;
1175
1168
  }, void 0, function() {
1176
- if ($)
1169
+ if (I)
1177
1170
  try {
1178
1171
  c--;
1179
- for (var E = function() {
1180
- var j = s.shift();
1181
- u ? P(t, u, function() {
1182
- return S(j);
1183
- }) : S(j);
1172
+ for (var A = function() {
1173
+ var L = s.shift();
1174
+ u ? V(t, u, function() {
1175
+ return y(L);
1176
+ }) : y(L);
1184
1177
  }; s.length && c < r; )
1185
- E();
1186
- v();
1187
- } catch (j) {
1188
- t.error(j);
1178
+ A();
1179
+ d();
1180
+ } catch (L) {
1181
+ t.error(L);
1189
1182
  }
1190
1183
  }));
1191
1184
  };
1192
- return e.subscribe(w(t, p, function() {
1193
- d = !0, v();
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 Ee(e, t, n) {
1199
- return n === void 0 && (n = 1 / 0), b(t) ? Ee(function(r, i) {
1200
- return C(function(o, u) {
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
- })(I(e(r, i)));
1203
- }, n) : (typeof t == "number" && (n = t), _(function(r, i) {
1204
- return Tn(r, i, e, n);
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 dt(e) {
1208
- return e === void 0 && (e = 1 / 0), Ee(W, e);
1200
+ function St(e) {
1201
+ return e === void 0 && (e = 1 / 0), Fe(Y, e);
1209
1202
  }
1210
- function Dn() {
1211
- return dt(1);
1203
+ function Kn() {
1204
+ return St(1);
1212
1205
  }
1213
- function Rn() {
1206
+ function Hn() {
1214
1207
  for (var e = [], t = 0; t < arguments.length; t++)
1215
1208
  e[t] = arguments[t];
1216
- return Dn()(O(e, Ce(e)));
1209
+ return Kn()($(e, ke(e)));
1217
1210
  }
1218
- function jn(e, t, n) {
1219
- e === void 0 && (e = 0), n === void 0 && (n = pn);
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 && (ze(t) ? n = t : r = t), new y(function(i) {
1222
- var o = $n(e) ? +e - n.now() : e;
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,41 +1220,41 @@ function jn(e, t, n) {
1227
1220
  }, o);
1228
1221
  });
1229
1222
  }
1230
- function Un() {
1223
+ function Qn() {
1231
1224
  for (var e = [], t = 0; t < arguments.length; t++)
1232
1225
  e[t] = arguments[t];
1233
- var n = Ce(e), r = yn(e, 1 / 0), i = e;
1234
- return i.length ? i.length === 1 ? I(i[0]) : dt(r)(O(i, n)) : Se;
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 Vn(e, t) {
1237
- return _(function(n, r) {
1229
+ function Yn(e, t) {
1230
+ return x(function(n, r) {
1238
1231
  var i = 0;
1239
- n.subscribe(w(r, function(o) {
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 vt(e) {
1245
- return _(function(t, n) {
1237
+ function wt(e) {
1238
+ return x(function(t, n) {
1246
1239
  var r = null, i = !1, o;
1247
- r = t.subscribe(w(n, void 0, void 0, function(u) {
1248
- o = I(e(u, vt(e)(t))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
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 Mn(e, t, n, r, i) {
1245
+ function Bn(e, t, n, r, i) {
1253
1246
  return function(o, u) {
1254
1247
  var a = n, s = t, c = 0;
1255
- o.subscribe(w(u, function(l) {
1256
- var d = c++;
1257
- s = a ? e(s, l, d) : (a = !0, l), r && u.next(s);
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 Ln(e, t) {
1264
- return t === void 0 && (t = _e), _(function(n, r) {
1256
+ function Jn(e, t) {
1257
+ return t === void 0 && (t = Ie), x(function(n, r) {
1265
1258
  var i = null, o = null, u = null, a = function() {
1266
1259
  if (i) {
1267
1260
  i.unsubscribe(), i = null;
@@ -1277,7 +1270,7 @@ function Ln(e, t) {
1277
1270
  }
1278
1271
  a();
1279
1272
  }
1280
- n.subscribe(w(r, function(c) {
1273
+ n.subscribe(C(r, function(c) {
1281
1274
  o = c, u = t.now(), i || (i = t.schedule(s, e), r.add(i));
1282
1275
  }, function() {
1283
1276
  a(), r.complete();
@@ -1286,122 +1279,122 @@ function Ln(e, t) {
1286
1279
  }));
1287
1280
  });
1288
1281
  }
1289
- function Nn(e) {
1290
- return _(function(t, n) {
1282
+ function zn(e) {
1283
+ return x(function(t, n) {
1291
1284
  var r = !1;
1292
- t.subscribe(w(n, function(i) {
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 de(e) {
1292
+ function ye(e) {
1300
1293
  return e <= 0 ? function() {
1301
- return Se;
1302
- } : _(function(t, n) {
1294
+ return Ae;
1295
+ } : x(function(t, n) {
1303
1296
  var r = 0;
1304
- t.subscribe(w(n, function(i) {
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 Wn() {
1310
- return _(function(e, t) {
1311
- e.subscribe(w(t, fe));
1302
+ function Zn() {
1303
+ return x(function(e, t) {
1304
+ e.subscribe(C(t, be));
1312
1305
  });
1313
1306
  }
1314
- function qn(e) {
1315
- return C(function() {
1307
+ function Xn(e) {
1308
+ return P(function() {
1316
1309
  return e;
1317
1310
  });
1318
1311
  }
1319
- function ht(e, t) {
1312
+ function Et(e, t) {
1320
1313
  return t ? function(n) {
1321
- return Rn(t.pipe(de(1), Wn()), n.pipe(ht(e)));
1322
- } : Ee(function(n, r) {
1323
- return e(n, r).pipe(de(1), qn(n));
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 Qn(e, t) {
1327
- t === void 0 && (t = _e);
1328
- var n = jn(e, t);
1329
- return ht(function() {
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 Kn(e, t) {
1334
- return t === void 0 && (t = W), e = e != null ? e : Hn, _(function(n, r) {
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(w(r, function(u) {
1329
+ n.subscribe(C(r, function(u) {
1337
1330
  var a = t(u);
1338
1331
  (o || !e(i, a)) && (o = !1, i = a, r.next(u));
1339
1332
  }));
1340
1333
  });
1341
1334
  }
1342
- function Hn(e, t) {
1335
+ function nr(e, t) {
1343
1336
  return e === t;
1344
1337
  }
1345
- function Yn(e) {
1346
- return e === void 0 && (e = Gn), _(function(t, n) {
1338
+ function rr(e) {
1339
+ return e === void 0 && (e = ir), x(function(t, n) {
1347
1340
  var r = !1;
1348
- t.subscribe(w(n, function(i) {
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 Gn() {
1356
- return new ft();
1348
+ function ir() {
1349
+ return new _t();
1357
1350
  }
1358
- function pt(e, t) {
1351
+ function Ct(e, t) {
1359
1352
  var n = arguments.length >= 2;
1360
1353
  return function(r) {
1361
- return r.pipe(e ? Vn(function(i, o) {
1354
+ return r.pipe(e ? Yn(function(i, o) {
1362
1355
  return e(i, o, r);
1363
- }) : W, de(1), n ? Nn(t) : Yn(function() {
1364
- return new ft();
1356
+ }) : Y, ye(1), n ? zn(t) : rr(function() {
1357
+ return new _t();
1365
1358
  }));
1366
1359
  };
1367
1360
  }
1368
- function Jn(e, t) {
1369
- return _(Mn(e, t, arguments.length >= 2, !0));
1361
+ function or(e, t) {
1362
+ return x(Bn(e, t, arguments.length >= 2, !0));
1370
1363
  }
1371
- function zn(e) {
1364
+ function ur(e) {
1372
1365
  e === void 0 && (e = {});
1373
1366
  var t = e.connector, n = t === void 0 ? function() {
1374
- return new ne();
1367
+ return new oe();
1375
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, d, v, p = 0, S = !1, h = !1, $ = function() {
1378
- d == null || d.unsubscribe(), d = void 0;
1379
- }, E = function() {
1380
- $(), l = v = void 0, S = h = !1;
1381
- }, j = function() {
1382
- var M = l;
1383
- E(), M == null || M.unsubscribe();
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 _(function(M, Le) {
1386
- p++, !h && !S && $();
1387
- var H = v = v != null ? v : n();
1388
- Le.add(function() {
1389
- p--, p === 0 && !h && !S && (d = ae(j, s));
1390
- }), H.subscribe(Le), !l && p > 0 && (l = new L({
1391
- next: function(Y) {
1392
- return H.next(Y);
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(Y) {
1395
- h = !0, $(), d = ae(E, i, Y), H.error(Y);
1387
+ error: function(g) {
1388
+ h = !0, I(), f = fe(A, i, g), O.error(g);
1396
1389
  },
1397
1390
  complete: function() {
1398
- S = !0, $(), d = ae(E, u), H.complete();
1391
+ y = !0, I(), f = fe(A, u), O.complete();
1399
1392
  }
1400
- }), I(M).subscribe(l));
1393
+ }), k(b).subscribe(l));
1401
1394
  })(c);
1402
1395
  };
1403
1396
  }
1404
- function ae(e, t) {
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,35 +1402,35 @@ function ae(e, t) {
1409
1402
  return;
1410
1403
  }
1411
1404
  if (t !== !1) {
1412
- var i = new L({
1405
+ var i = new G({
1413
1406
  next: function() {
1414
1407
  i.unsubscribe(), e();
1415
1408
  }
1416
1409
  });
1417
- return t.apply(void 0, R([], D(n))).subscribe(i);
1410
+ return k(t.apply(void 0, N([], M(n)))).subscribe(i);
1418
1411
  }
1419
1412
  }
1420
- function Zn(e, t, n) {
1413
+ function ar(e, t, n) {
1421
1414
  var r, i, o, u, a = !1;
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, a = o === void 0 ? !1 : o, n = e.scheduler) : u = e != null ? e : 1 / 0, zn({
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 fn(u, t, n);
1417
+ return new Sn(u, t, n);
1425
1418
  },
1426
1419
  resetOnError: !0,
1427
1420
  resetOnComplete: !1,
1428
1421
  resetOnRefCountZero: a
1429
1422
  });
1430
1423
  }
1431
- function mt(e, t) {
1432
- return _(function(n, r) {
1424
+ function xt(e, t) {
1425
+ return x(function(n, r) {
1433
1426
  var i = null, o = 0, u = !1, a = function() {
1434
1427
  return u && !i && r.complete();
1435
1428
  };
1436
- n.subscribe(w(r, function(s) {
1429
+ n.subscribe(C(r, function(s) {
1437
1430
  i == null || i.unsubscribe();
1438
1431
  var c = 0, l = o++;
1439
- I(e(s, l)).subscribe(i = w(r, function(d) {
1440
- return r.next(t ? t(s, d, l, c++) : d);
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
1435
  i = null, a();
1443
1436
  }));
@@ -1446,13 +1439,13 @@ function mt(e, t) {
1446
1439
  }));
1447
1440
  });
1448
1441
  }
1449
- function Bn(e, t, n) {
1450
- var r = b(e) || t || n ? { next: e, error: t, complete: n } : e;
1451
- return r ? _(function(i, o) {
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
1447
  var a = !0;
1455
- i.subscribe(w(o, function(s) {
1448
+ i.subscribe(C(o, function(s) {
1456
1449
  var c;
1457
1450
  (c = r.next) === null || c === void 0 || c.call(r, s), o.next(s);
1458
1451
  }, function() {
@@ -1465,149 +1458,113 @@ function Bn(e, t, n) {
1465
1458
  var s, c;
1466
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
- }) : W;
1461
+ }) : Y;
1469
1462
  }
1470
- function xe(e) {
1471
- return new y(function(t) {
1472
- var n = Ft(e, t.next.bind(t), t.error.bind(t), t.complete.bind(t));
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 Xn = "[DEFAULT]", bt = f.createContext(void 0), Ie = f.createContext(!1), er = "4.2.3-exp.6734b6a", tr = (e, t) => e === t || [...Object.keys(e), ...Object.keys(t)].every((n) => e[n] === t[n]);
1477
- function Lr(e) {
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 = Vt().find((u) => u.name === (n || Xn));
1474
+ const o = Yt().find((u) => u.name === (n || cr));
1486
1475
  if (o) {
1487
- if (t && tr(o.options, 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 = f.version || "unknown";
1494
- return Ne("react", u), Ne("reactfire", er), Mt(t, n);
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 f.createElement(bt.Provider, {
1498
- value: i
1499
- }, f.createElement(Ie.Provider, Object.assign({
1500
- value: r != null ? r : !1
1501
- }, e)));
1502
- }
1503
- function Nr() {
1504
- const e = f.useContext(Ie);
1505
- return e != null ? e : !1;
1506
- }
1507
- function re(e) {
1508
- let t = f.useContext(Ie);
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 yt() {
1512
- const e = f.useContext(bt);
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 Wr(e) {
1518
- return pe(this, void 0, void 0, function* () {
1506
+ function ti(e) {
1507
+ return we(this, void 0, void 0, function* () {
1519
1508
  const t = yield e();
1520
- return Ae(xe(t), `auth:user:${t.name}`).toPromise();
1509
+ return Re(Pe(t), `auth:user:${t.name}`).toPromise();
1521
1510
  });
1522
1511
  }
1523
- function nr(e) {
1524
- const t = kt(), n = `auth:user:${t.name}`, r = xe(t);
1525
- return g(n, r, e);
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 rr(e, t = !1, n) {
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 = O(e.getIdTokenResult(t));
1531
- return g(r, i, n);
1519
+ const r = `auth:idTokenResult:${e.uid}:forceRefresh=${t}`, i = $(e.getIdTokenResult(t));
1520
+ return E(r, i, n);
1532
1521
  }
1533
- function qr(e) {
1534
- if ((e == null ? void 0 : e.hasOwnProperty("requiredClaims")) && (e == null ? void 0 : e.hasOwnProperty("validateCustomClaims")))
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 = kt();
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 = xe(t).pipe(mt((i) => {
1528
+ const r = Pe(t).pipe(xt((i) => {
1540
1529
  var o;
1541
- return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? O(i.getIdTokenResult((o = e == null ? void 0 : e.forceRefresh) !== null && o !== void 0 ? o : !1)).pipe(C((u) => {
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) => {
1542
1531
  let a;
1543
- e.hasOwnProperty("requiredClaims") ? a = ir(e.requiredClaims) : a = e.validateCustomClaims;
1544
- const {
1545
- hasRequiredClaims: s,
1546
- errors: c
1547
- } = a(u.claims);
1548
- return {
1549
- signedIn: !0,
1550
- hasRequiredClaims: s,
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
- });
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 g(n, r);
1537
+ return E(n, r, e);
1567
1538
  }
1568
- function ir(e) {
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 Me("auth/missing-claim", `Expected "${e[i]}", but user has "${n[i]}" instead`)]);
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 or({
1580
- user: e,
1581
- fallback: t,
1582
- children: n,
1583
- requiredClaims: r
1584
- }) {
1585
- const {
1586
- data: i
1587
- } = rr(e, !1), {
1588
- claims: o
1589
- } = i, u = {};
1590
- return re() || 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((s) => {
1591
- var c;
1592
- r[s] !== o[s] && (u[s] = {
1593
- expected: r[s],
1594
- actual: (c = o[s]) === 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(u).length === 0 ? f.createElement(f.Fragment, null, n) : f.createElement(f.Fragment, null, t);
1597
- }
1598
- function Qr({
1599
- fallback: e,
1600
- children: t,
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 te = function() {
1627
- return te = Object.assign || function(t) {
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
- }, te.apply(this, arguments);
1591
+ }, ie.apply(this, arguments);
1635
1592
  };
1636
- function se(e, t) {
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 se(e, t) {
1654
1611
  * See the License for the specific language governing permissions and
1655
1612
  * limitations under the License.
1656
1613
  */
1657
- var T, m;
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
- })(m || (m = {}));
1661
- var ur = Object.freeze((T = {}, T[m.added] = Pt, T[m.removed] = $t, T[m.changed] = Tt, T[m.moved] = Dt, T[m.value] = Rt, T));
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 Oe(e, t) {
1679
- return new y(function(n) {
1680
- var r = ur[t](e, function(i, o) {
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
- jt(e, t, r);
1642
+ Gt(e, t, r);
1686
1643
  }
1687
1644
  };
1688
- }).pipe(Qn(0));
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 ar(e) {
1668
+ function br(e) {
1707
1669
  return (e == null || e.length === 0) && (e = [
1708
- m.added,
1709
- m.removed,
1710
- m.changed,
1711
- m.moved
1670
+ _.added,
1671
+ _.removed,
1672
+ _.changed,
1673
+ _.moved
1712
1674
  ]), e;
1713
1675
  }
1714
1676
  /**
@@ -1727,94 +1689,94 @@ function ar(e) {
1727
1689
  * See the License for the specific language governing permissions and
1728
1690
  * limitations under the License.
1729
1691
  */
1730
- function sr(e) {
1731
- return Oe(e, m.value);
1692
+ function yr(e) {
1693
+ return $e(e, _.value);
1732
1694
  }
1733
- function cr(e, t) {
1734
- return t === void 0 && (t = {}), Oe(e, m.value).pipe(C(function(n) {
1735
- return gt(n, t);
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 gt(e, t) {
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 : te(te({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
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 lr(e) {
1745
- return O(Ut(e)).pipe(C(function(t) {
1746
- var n = m.value;
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 wt(e, t) {
1712
+ function kt(e, t) {
1751
1713
  t === void 0 && (t = {});
1752
- var n = ar(t.events);
1753
- return lr(e).pipe(mt(function(r) {
1714
+ var n = br(t.events);
1715
+ return _r(e).pipe(xt(function(r) {
1754
1716
  if (!r.snapshot.exists())
1755
- return ee([]);
1756
- var i = [ee(r)];
1717
+ return re([]);
1718
+ var i = [re(r)];
1757
1719
  return n.forEach(function(o) {
1758
- i.push(Oe(e, o));
1759
- }), Un.apply(void 0, i).pipe(Jn(vr, []));
1760
- }), Kn());
1720
+ i.push($e(e, o));
1721
+ }), Qn.apply(void 0, i).pipe(or(Er, []));
1722
+ }), tr());
1761
1723
  }
1762
- function fr(e, t) {
1763
- return t === void 0 && (t = {}), wt(e).pipe(C(function(n) {
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 gt(r, t);
1727
+ return At(r, t);
1766
1728
  });
1767
1729
  }));
1768
1730
  }
1769
- function _t(e, t) {
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 dr(e, t) {
1737
+ function wr(e, t) {
1776
1738
  if (t == null)
1777
1739
  return 0;
1778
- var n = _t(e, t);
1740
+ var n = Ft(e, t);
1779
1741
  return n === -1 ? e.length : n + 1;
1780
1742
  }
1781
- function vr(e, t) {
1782
- var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = _t(e, o), a = dr(e, r || void 0);
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 m.value:
1746
+ case _.value:
1785
1747
  if (t.snapshot && t.snapshot.exists()) {
1786
1748
  var s = null;
1787
- t.snapshot.forEach(function(d) {
1788
- var v = {
1789
- snapshot: d,
1790
- event: m.value,
1749
+ t.snapshot.forEach(function(f) {
1750
+ var d = {
1751
+ snapshot: f,
1752
+ event: _.value,
1791
1753
  prevKey: s
1792
1754
  };
1793
- return s = d.key, e = se(se([], e), [v]), !1;
1755
+ return s = f.key, e = de(de([], e), [d]), !1;
1794
1756
  });
1795
1757
  }
1796
1758
  return e;
1797
- case m.added:
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(d) {
1801
- return d.snapshot.key !== n.key;
1762
+ (c && c.snapshot.key || null) !== r && (e = e.filter(function(f) {
1763
+ return f.snapshot.key !== n.key;
1802
1764
  }), e.splice(a, 0, t));
1803
1765
  } else {
1804
1766
  if (r == null)
1805
- return se([t], e);
1767
+ return de([t], e);
1806
1768
  e = e.slice(), e.splice(a, 0, t);
1807
1769
  }
1808
1770
  return e;
1809
- case m.removed:
1810
- return e.filter(function(d) {
1811
- return d.snapshot.key !== n.key;
1771
+ case _.removed:
1772
+ return e.filter(function(f) {
1773
+ return f.snapshot.key !== n.key;
1812
1774
  });
1813
- case m.changed:
1814
- return e.map(function(d) {
1815
- return d.snapshot.key === o ? t : d;
1775
+ case _.changed:
1776
+ return e.map(function(f) {
1777
+ return f.snapshot.key === o ? t : f;
1816
1778
  });
1817
- case m.moved:
1779
+ case _.moved:
1818
1780
  if (u > -1) {
1819
1781
  var l = e.splice(u, 1)[0];
1820
1782
  return e = e.slice(), e.splice(a, 0, l), e;
@@ -1824,31 +1786,27 @@ function vr(e, t) {
1824
1786
  return e;
1825
1787
  }
1826
1788
  }
1827
- const ve = globalThis._reactFireDatabaseCachedQueries || [];
1828
- globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries = ve);
1829
- function St(e) {
1830
- const t = ve.findIndex((n) => n.isEqual(e));
1831
- return t > -1 ? t : ve.push(e) - 1;
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 Kr(e, t) {
1834
- const n = `database:object:${e.toString()}`, r = sr(e);
1835
- return g(n, r, t);
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 Hr(e, t) {
1838
- const n = t ? K(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i = cr(e, {
1839
- keyField: n
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 Yr(e, t) {
1844
- const n = `database:list:${St(e)}`, r = wt(e);
1845
- return g(n, r, t);
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 Gr(e, t) {
1848
- const n = t ? K(t) : "NO_ID_FIELD", r = `database:listVal:${St(e)}:idField=${n}`, i = fr(e, {
1849
- keyField: n
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 hr = { includeMetadataChanges: !1 };
1870
- function ke(e, t) {
1871
- return t === void 0 && (t = hr), new y(function(n) {
1872
- var r = Lt(e, t, {
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,41 +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 ie(e) {
1897
- return ke(e, { includeMetadataChanges: !0 });
1854
+ function ae(e) {
1855
+ return De(e, { includeMetadataChanges: !0 });
1898
1856
  }
1899
- function Ct(e, t) {
1900
- return t === void 0 && (t = {}), ie(e).pipe(C(function(n) {
1901
- return Et(n, t);
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 Et(e, t) {
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 pr(e) {
1910
- return ke(e, { includeMetadataChanges: !0 }).pipe(C(function(t) {
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 mr(e, t) {
1915
- return t === void 0 && (t = {}), pr(e).pipe(C(function(n) {
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 Et(r, t);
1875
+ return $t(r, t);
1918
1876
  });
1919
1877
  }));
1920
1878
  }
1921
- class br extends ne {
1922
- constructor(t, n) {
1923
- super(), this._timeoutWindow = n, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((r) => this._resolveFirstEmission = r), this._innerObservable = t.pipe(Bn({
1924
- next: (r) => {
1925
- this._next(r);
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 {
2009
+ constructor(t, n, r) {
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({
2018
+ next: (i) => {
2019
+ this._next(i);
1926
2020
  },
1927
- error: (r) => {
1928
- this._error = r, this._resolveFirstEmission();
2021
+ error: (i) => {
2022
+ this._error = i, this._resolveFirstEmission(), this._updateImmutableStatus();
2023
+ },
2024
+ complete: () => {
2025
+ this._isComplete = !0, this._updateImmutableStatus();
1929
2026
  }
1930
- }), vt(() => mn()), Zn(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._timeoutHandler = setTimeout(this._reset.bind(this), 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);
1931
2029
  }
1932
2030
  get hasValue() {
1933
2031
  return this._hasValue || !!this._error;
@@ -1942,11 +2040,21 @@ class br extends ne {
1942
2040
  get firstEmission() {
1943
2041
  return this._firstEmission;
1944
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
+ }
1945
2053
  _next(t) {
1946
- this._hasValue = !0, this._value = t, this._resolveFirstEmission();
2054
+ this._hasValue = !0, this._value = t, this._resolveFirstEmission(), this._updateImmutableStatus();
1947
2055
  }
1948
2056
  _reset() {
1949
- 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();
1950
2058
  }
1951
2059
  _subscribe(t) {
1952
2060
  return this._timeoutHandler && clearTimeout(this._timeoutHandler), this._innerSubscriber = this._innerObservable.subscribe(t), this._innerSubscriber;
@@ -1954,106 +2062,85 @@ class br extends ne {
1954
2062
  get ourError() {
1955
2063
  return this._error;
1956
2064
  }
2065
+ get immutableStatus() {
2066
+ return this._immutableStatus;
2067
+ }
1957
2068
  }
1958
- const yr = 3e4, Z = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
1959
- globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = Z);
1960
- function Ae(e, t) {
1961
- if (Z.has(t))
1962
- return Z.get(t);
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);
1963
2074
  {
1964
- const n = new br(e, yr);
1965
- return Z.set(t, n), n;
2075
+ const r = new Fr(e, Pr, n);
2076
+ return ee.set(t, r), r;
1966
2077
  }
1967
2078
  }
1968
- function gr(e) {
1969
- return function(n, r) {
1970
- const i = Object.assign(Object.assign({}, n), { hasEmitted: n.hasEmitted || e.hasValue, error: e.ourError, firstValuePromise: e.firstEmission });
1971
- switch (e.hasValue && (i.data = e.value), r) {
1972
- case "value":
1973
- return i.status = "success", i;
1974
- case "error":
1975
- return i.status = "error", i;
1976
- case "complete":
1977
- return i.isComplete = !0, i;
1978
- default:
1979
- throw new Error(`invalid action "${r}"`);
1980
- }
1981
- };
1982
- }
1983
- function g(e, t, n = {}) {
2079
+ function E(e, t, n = {}) {
1984
2080
  var r;
1985
2081
  if (!e)
1986
2082
  throw new Error("cannot call useObservable without an observableId");
1987
- const i = Ae(t, e), o = n.hasOwnProperty("initialData") || n.hasOwnProperty("startWithValue"), u = i.hasValue || o;
1988
- if (re(n.suspense) === !0 && !u)
1989
- throw i.firstEmission;
1990
- const s = {
1991
- status: u ? "success" : "loading",
1992
- hasEmitted: u,
1993
- isComplete: !1,
1994
- data: i.hasValue ? i.value : (r = n == null ? void 0 : n.initialData) !== null && r !== void 0 ? r : n == null ? void 0 : n.startWithValue,
1995
- error: i.ourError,
1996
- firstValuePromise: i.firstEmission
1997
- }, [c, l] = f.useReducer(gr(i), s);
1998
- return f.useEffect(() => {
1999
- const d = i.subscribe({
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)
2085
+ throw o.firstEmission;
2086
+ const s = v.useCallback((f) => {
2087
+ const d = o.subscribe({
2000
2088
  next: () => {
2001
- l("value");
2089
+ f();
2002
2090
  },
2003
- error: (v) => {
2004
- throw l("error"), v;
2091
+ error: (p) => {
2092
+ throw f(), p;
2005
2093
  },
2006
2094
  complete: () => {
2007
- l("complete");
2095
+ f();
2008
2096
  }
2009
2097
  });
2010
- return () => d.unsubscribe();
2011
- }, [i]), c;
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;
2012
2105
  }
2013
- const he = globalThis._reactFireFirestoreQueryCache || [];
2014
- globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache = he);
2015
- function xt(e) {
2016
- const t = he.findIndex((n) => Nt(n, e));
2017
- return t > -1 ? t : he.push(e) - 1;
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;
2018
2111
  }
2019
- function Jr(e) {
2020
- return pe(this, void 0, void 0, function* () {
2112
+ function si(e) {
2113
+ return we(this, void 0, void 0, function* () {
2021
2114
  const t = yield e();
2022
- return Ae(ie(t), It(t));
2115
+ return Re(ae(t), Rt(t));
2023
2116
  });
2024
2117
  }
2025
- function It(e) {
2118
+ function Rt(e) {
2026
2119
  return `firestore:doc:${e.firestore.app.name}:${e.path}`;
2027
2120
  }
2028
- function zr(e, t) {
2029
- const n = It(e), r = ie(e);
2030
- return g(n, r, t);
2121
+ function ci(e, t) {
2122
+ const n = Rt(e), r = ae(e);
2123
+ return E(n, r, t);
2031
2124
  }
2032
- function Zr(e, t) {
2033
- const n = `firestore:docOnce:${e.firestore.app.name}:${e.path}`, r = ie(e).pipe(pt());
2034
- return g(n, r, t);
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);
2035
2128
  }
2036
- function Br(e, t) {
2037
- const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Ct(e, {
2038
- idField: n
2039
- });
2040
- 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);
2041
2132
  }
2042
- function Xr(e, t) {
2043
- const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Ct(e, {
2044
- idField: n
2045
- }).pipe(pt());
2046
- 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);
2047
2136
  }
2048
- function ei(e, t) {
2049
- const n = `firestore:collection:${xt(e)}`, r = ke(e);
2050
- return g(n, r, t);
2137
+ function vi(e, t) {
2138
+ const n = `firestore:collection:${Dt(e)}`, r = De(e);
2139
+ return E(n, r, t);
2051
2140
  }
2052
- function ti(e, t) {
2053
- const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:collectionData:${xt(e)}:idField=${n}`, i = mr(e, {
2054
- idField: n
2055
- });
2056
- 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);
2057
2144
  }
2058
2145
  /**
2059
2146
  * @license
@@ -2071,85 +2158,79 @@ function ti(e, t) {
2071
2158
  * See the License for the specific language governing permissions and
2072
2159
  * limitations under the License.
2073
2160
  */
2074
- function wr(e, t, n) {
2075
- var r = Wt(e, t, n);
2161
+ function Tr(e, t, n) {
2162
+ var r = Zt(e, t, n);
2076
2163
  return function(i) {
2077
- return O(r(i)).pipe(C(function(o) {
2164
+ return $(r(i)).pipe(P(function(o) {
2078
2165
  return o.data;
2079
2166
  }));
2080
2167
  };
2081
2168
  }
2082
- function ni(e, t) {
2083
- const n = Fr(), r = `functions:callableResponse:${e}:${JSON.stringify(t == null ? void 0 : t.data)}:${JSON.stringify(t == null ? void 0 : t.httpsCallableOptions)}`, o = wr(n, e, t == null ? void 0 : t.httpsCallableOptions)(t == null ? void 0 : t.data);
2084
- return g(r, o, t);
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);
2085
2172
  }
2086
- function ri({
2087
- children: e,
2088
- traceId: t,
2089
- fallback: n
2090
- }) {
2173
+ function mi({ children: e, traceId: t, fallback: n }) {
2091
2174
  var r;
2092
- 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 = () => (f.useLayoutEffect(() => {
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(() => {
2093
2176
  var s;
2094
2177
  return (s = performance == null ? void 0 : performance.mark) === null || s === void 0 || s.call(performance, o), () => {
2095
2178
  var c, l;
2096
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);
2097
2180
  };
2098
- }, []), f.createElement(f.Fragment, null, n));
2099
- return f.createElement(f.Suspense, {
2100
- fallback: f.createElement(a, null)
2101
- }, e);
2181
+ }, []), v.createElement(v.Fragment, null, n));
2182
+ return v.createElement(v.Suspense, { fallback: v.createElement(a, null) }, e);
2102
2183
  }
2103
- function q(e) {
2184
+ function B(e) {
2104
2185
  var t = e.remoteConfig, n = e.key, r = e.getter;
2105
- return new y(function(i) {
2106
- Kt(t).then(function() {
2186
+ return new w(function(i) {
2187
+ tn(t).then(function() {
2107
2188
  var o = r.bind(t);
2108
2189
  i.next(o(t, n));
2109
2190
  });
2110
2191
  });
2111
2192
  }
2112
- function _r(e, t) {
2113
- var n = Ht;
2114
- return q({ remoteConfig: e, key: t, getter: n });
2193
+ function $r(e, t) {
2194
+ var n = nn;
2195
+ return B({ remoteConfig: e, key: t, getter: n });
2115
2196
  }
2116
- function Sr(e, t) {
2117
- var n = Yt;
2118
- return q({ remoteConfig: e, key: t, getter: n });
2197
+ function Dr(e, t) {
2198
+ var n = rn;
2199
+ return B({ remoteConfig: e, key: t, getter: n });
2119
2200
  }
2120
- function Cr(e, t) {
2121
- var n = Gt;
2122
- return q({ remoteConfig: e, key: t, getter: n });
2201
+ function Rr(e, t) {
2202
+ var n = on;
2203
+ return B({ remoteConfig: e, key: t, getter: n });
2123
2204
  }
2124
- function Er(e, t) {
2125
- var n = Jt;
2126
- return q({ remoteConfig: e, key: t, getter: n });
2205
+ function jr(e, t) {
2206
+ var n = un;
2207
+ return B({ remoteConfig: e, key: t, getter: n });
2127
2208
  }
2128
- function xr(e) {
2129
- var t = zt;
2130
- return q({ remoteConfig: e, key: "", getter: t });
2209
+ function Lr(e) {
2210
+ var t = an;
2211
+ return B({ remoteConfig: e, key: "", getter: t });
2131
2212
  }
2132
- function Q(e, t) {
2133
- const n = $r(), r = n.app.name, i = t(n, e), o = `remoteConfig:${e}:${t.name}:${r}`;
2134
- return g(o, i);
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);
2135
2216
  }
2136
- function ii(e) {
2137
- return Q(e, _r);
2217
+ function bi(e) {
2218
+ return J(e, $r);
2138
2219
  }
2139
- function oi(e) {
2140
- return Q(e, Sr);
2220
+ function yi(e) {
2221
+ return J(e, Dr);
2141
2222
  }
2142
- function ui(e) {
2143
- return Q(e, Cr);
2223
+ function gi(e) {
2224
+ return J(e, Rr);
2144
2225
  }
2145
- function ai(e) {
2146
- return Q(e, Er);
2226
+ function _i(e) {
2227
+ return J(e, jr);
2147
2228
  }
2148
- function si(e) {
2149
- return Q(e, xr);
2229
+ function Si(e) {
2230
+ return J(e, Lr);
2150
2231
  }
2151
- function Ir(e) {
2152
- return new y(function(t) {
2232
+ function Vr(e) {
2233
+ return new w(function(t) {
2153
2234
  var n = function(u) {
2154
2235
  return t.next(u);
2155
2236
  }, r = function(u) {
@@ -2170,170 +2251,157 @@ function Ir(e) {
2170
2251
  }), function() {
2171
2252
  o();
2172
2253
  };
2173
- }).pipe(Ln(0));
2174
- }
2175
- function Or(e) {
2176
- return O(qt(e));
2177
- }
2178
- function ci(e, t, n) {
2179
- const r = `storage:task:${t.toString()}`, i = Ir(e);
2180
- return g(r, i, n);
2181
- }
2182
- function kr(e, t) {
2183
- const n = `storage:downloadUrl:${e.toString()}`, r = Or(e);
2184
- return g(n, r, t);
2185
- }
2186
- function Ar(e) {
2187
- const t = Pr();
2188
- return e = Object.assign(Object.assign({}, e), {
2189
- storage: t
2190
- }), f.createElement(Ot, Object.assign({}, e));
2191
- }
2192
- function Ot(e) {
2193
- let {
2194
- storage: t,
2195
- storagePath: n,
2196
- suspense: r,
2197
- placeHolder: i
2198
- } = e, o = Zt(e, ["storage", "storagePath", "suspense", "placeHolder"]);
2199
- const u = {
2200
- 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)
2201
2279
  };
2202
2280
  if (!t)
2203
2281
  throw new Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
2204
- const {
2205
- status: a,
2206
- data: s
2207
- } = kr(Qt(t, n), u);
2208
- 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"), f.createElement("img", Object.assign({
2209
- src: s,
2210
- alt: o.alt
2211
- }, o))) : i != null ? i : f.createElement(f.Fragment, null, "''");
2212
- }
2213
- function li(e) {
2214
- let {
2215
- storage: t
2216
- } = e;
2217
- return t ? f.createElement(Ot, Object.assign({}, e)) : f.createElement(Ar, Object.assign({}, e));
2218
- }
2219
- 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);
2220
- 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) {
2221
2291
  return function(n) {
2222
2292
  var r, i;
2223
2293
  if (!n.sdk)
2224
2294
  throw new Error("no sdk provided");
2225
- const o = yt().name;
2295
+ const o = It().name;
2226
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)
2227
2297
  throw new Error("sdk was initialized with a different firebase app");
2228
- return f.createElement(e.Provider, Object.assign({
2229
- value: n.sdk
2230
- }, n));
2298
+ return v.createElement(e.Provider, Object.assign({ value: n.sdk }, n));
2231
2299
  };
2232
2300
  }
2233
- function A(e) {
2234
- const t = f.useContext(e);
2301
+ function R(e) {
2302
+ const t = v.useContext(e);
2235
2303
  if (!t)
2236
2304
  throw new Error("SDK not found. useSdk must be called from within a provider");
2237
2305
  return t;
2238
2306
  }
2239
- function F(e, t, n, r) {
2240
- const i = yt();
2241
- if (f.useContext(t))
2307
+ function j(e, t, n, r) {
2308
+ const i = It();
2309
+ if (v.useContext(t))
2242
2310
  throw new Error(`Cannot initialize SDK ${e} because it already exists in Context`);
2243
- const o = f.useMemo(() => n(i), [i]);
2244
- return g(`firebase-sdk:${e}:${i.name}`, O(o), r);
2311
+ const o = v.useMemo(() => n(i), [i]);
2312
+ return E(`firebase-sdk:${e}:${i.name}`, $(o), r);
2245
2313
  }
2246
- const fi = k(Fe), di = k(Pe), vi = k($e), hi = k(Te), pi = k(De), mi = k(Re), bi = k(Ue), yi = k(je), gi = k(Ve), wi = () => A(Fe), kt = () => A(Pe), _i = () => A($e), Si = () => A(Te), Ci = () => A(De), Fr = () => A(Re), Ei = () => A(Ue), Pr = () => A(je), $r = () => A(Ve), xi = (e, t) => F("appcheck", Fe, e, t), Ii = (e, t) => F("auth", Pe, e, t), Oi = (e, t) => F("analytics", $e, e, t), ki = (e, t) => F("database", Te, e, t), Ai = (e, t) => F("firestore", De, e, t), Fi = (e, t) => F("functions", Re, e, t), Pi = (e, t) => F("performance", Ue, e, t), $i = (e, t) => F("remoteconfig", Ve, e, t), Ti = (e, t) => F("storage", je, e, t);
2247
- class Me extends Error {
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 {
2248
2316
  constructor(t, n, r) {
2249
- super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, Me.prototype);
2317
+ super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, He.prototype);
2250
2318
  }
2251
2319
  }
2252
- function At(e, t) {
2320
+ function Vt(e, t) {
2253
2321
  if (t === "idField" || t === "initialData" || t === "suspense")
2254
2322
  return e ? e[t] : void 0;
2255
2323
  throw new Error(`Field "${t}" is not a valid key in ReactFireOptions`);
2256
2324
  }
2257
- function Di(e) {
2258
- return At(e, "initialData");
2325
+ function Qi(e) {
2326
+ return Vt(e, "initialData");
2259
2327
  }
2260
- function K(e) {
2261
- return At(e, "idField");
2328
+ function z(e) {
2329
+ return Vt(e, "idField");
2262
2330
  }
2263
2331
  export {
2264
- vi as AnalyticsProvider,
2265
- $e as AnalyticsSdkContext,
2266
- fi as AppCheckProvider,
2267
- Fe as AppCheckSdkContext,
2268
- Qr as AuthCheck,
2269
- di as AuthProvider,
2270
- Pe as AuthSdkContext,
2271
- or as ClaimsCheck,
2272
- hi as DatabaseProvider,
2273
- Te as DatabaseSdkContext,
2274
- Lr as FirebaseAppProvider,
2275
- pi as FirestoreProvider,
2276
- De as FirestoreSdkContext,
2277
- mi as FunctionsProvider,
2278
- Re as FunctionsSdkContext,
2279
- bi as PerformanceProvider,
2280
- Ue as PerformanceSdkContext,
2281
- Me as ReactFireError,
2282
- gi as RemoteConfigProvider,
2283
- Ve as RemoteConfigSdkContext,
2284
- li as StorageImage,
2285
- yi as StorageProvider,
2286
- je as StorageSdkContext,
2287
- ri as SuspenseWithPerf,
2288
- K as checkIdField,
2289
- At as checkOptions,
2290
- Di as checkinitialData,
2291
- Jr as preloadFirestoreDoc,
2292
- Ae as preloadObservable,
2293
- Wr as preloadUser,
2294
- _i as useAnalytics,
2295
- wi as useAppCheck,
2296
- kt as useAuth,
2297
- ni as useCallableFunctionResponse,
2298
- Si as useDatabase,
2299
- Yr as useDatabaseList,
2300
- Gr as useDatabaseListData,
2301
- Kr as useDatabaseObject,
2302
- Hr as useDatabaseObjectData,
2303
- yt as useFirebaseApp,
2304
- Ci as useFirestore,
2305
- ei as useFirestoreCollection,
2306
- ti as useFirestoreCollectionData,
2307
- zr as useFirestoreDoc,
2308
- Br as useFirestoreDocData,
2309
- Xr as useFirestoreDocDataOnce,
2310
- Zr as useFirestoreDocOnce,
2311
- Fr as useFunctions,
2312
- rr as useIdTokenResult,
2313
- Oi as useInitAnalytics,
2314
- xi as useInitAppCheck,
2315
- Ii as useInitAuth,
2316
- ki as useInitDatabase,
2317
- Ai as useInitFirestore,
2318
- Fi as useInitFunctions,
2319
- Pi as useInitPerformance,
2320
- $i as useInitRemoteConfig,
2321
- Ti as useInitStorage,
2322
- Nr as useIsSuspenseEnabled,
2323
- g as useObservable,
2324
- Ei as usePerformance,
2325
- $r as useRemoteConfig,
2326
- si as useRemoteConfigAll,
2327
- ai as useRemoteConfigBoolean,
2328
- ui as useRemoteConfigNumber,
2329
- oi as useRemoteConfigString,
2330
- ii as useRemoteConfigValue,
2331
- qr as useSigninCheck,
2332
- Pr as useStorage,
2333
- kr as useStorageDownloadURL,
2334
- ci as useStorageTask,
2335
- re as useSuspenseEnabledFromConfigAndContext,
2336
- nr as useUser,
2337
- er as version
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
2338
2406
  };
2339
2407
  //# sourceMappingURL=index.js.map