reactfire 4.2.3-exp.8d83c9e → 4.2.3-exp.9429194

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