@firebase/firestore 4.4.2 → 4.4.3-canary.245dd26e1

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.rn.js CHANGED
@@ -4,7 +4,7 @@ import { Component as s } from "@firebase/component";
4
4
 
5
5
  import { Logger as o, LogLevel as _ } from "@firebase/logger";
6
6
 
7
- import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as E, getDefaultEmulatorHostnameAndPort as d } from "@firebase/util";
7
+ import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as d, getDefaultEmulatorHostnameAndPort as E } from "@firebase/util";
8
8
 
9
9
  import { Integer as A, Md5 as R, XhrIo as V, EventType as m, ErrorCode as f, createWebChannelTransport as g, getStatEventTarget as p, WebChannel as y, Event as w, Stat as S } from "@firebase/webchannel-wrapper";
10
10
 
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let D = "10.8.0";
73
+ let D = "10.8.1-canary.245dd26e1";
74
74
 
75
75
  /**
76
76
  * @license
@@ -5855,16 +5855,16 @@ class BloomFilter {
5855
5855
  throw new __PRIVATE_BloomFilterError(`Invalid padding when bitmap length is 0: ${t}`);
5856
5856
  this.Te = 8 * e.length - t,
5857
5857
  // Set the bit count in Integer to avoid repetition in mightContain().
5858
- this.Ee = A.fromNumber(this.Te);
5858
+ this.de = A.fromNumber(this.Te);
5859
5859
  }
5860
5860
  // Calculate the ith hash value based on the hashed 64bit integers,
5861
5861
  // and calculate its corresponding bit index in the bitmap to be checked.
5862
- de(e, t, n) {
5862
+ Ee(e, t, n) {
5863
5863
  // Calculate hashed value h(i) = h1 + (i * h2).
5864
5864
  let r = e.add(t.multiply(A.fromNumber(n)));
5865
5865
  // Wrap if hash value overflow 64bit.
5866
5866
  return 1 === r.compare(Pe) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
5867
- r.modulo(this.Ee).toNumber();
5867
+ r.modulo(this.de).toNumber();
5868
5868
  }
5869
5869
  // Return whether the bit on the given index in the bitmap is set to 1.
5870
5870
  Ae(e) {
@@ -5875,7 +5875,7 @@ class BloomFilter {
5875
5875
  if (0 === this.Te) return !1;
5876
5876
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5877
5877
  for (let e = 0; e < this.hashCount; e++) {
5878
- const t = this.de(n, r, e);
5878
+ const t = this.Ee(n, r, e);
5879
5879
  if (!this.Ae(t)) return !1;
5880
5880
  }
5881
5881
  return !0;
@@ -5888,7 +5888,7 @@ class BloomFilter {
5888
5888
  if (0 === this.Te) return;
5889
5889
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5890
5890
  for (let e = 0; e < this.hashCount; e++) {
5891
- const t = this.de(n, r, e);
5891
+ const t = this.Ee(n, r, e);
5892
5892
  this.Re(t);
5893
5893
  }
5894
5894
  }
@@ -6517,7 +6517,7 @@ const Ie = (() => {
6517
6517
  "array-contains-any": "ARRAY_CONTAINS_ANY"
6518
6518
  };
6519
6519
  return e;
6520
- })(), Ee = (() => {
6520
+ })(), de = (() => {
6521
6521
  const e = {
6522
6522
  and: "AND",
6523
6523
  or: "OR"
@@ -7058,7 +7058,7 @@ function __PRIVATE_toOperatorName(e) {
7058
7058
  }
7059
7059
 
7060
7060
  function __PRIVATE_toCompositeOperatorName(e) {
7061
- return Ee[e];
7061
+ return de[e];
7062
7062
  }
7063
7063
 
7064
7064
  function __PRIVATE_toFieldPathReference(e) {
@@ -7609,52 +7609,52 @@ class __PRIVATE_FirestoreIndexValueWriter {
7609
7609
  t.Tt();
7610
7610
  }
7611
7611
  It(e, t) {
7612
- if ("nullValue" in e) this.Et(t, 5); else if ("booleanValue" in e) this.Et(t, 10),
7613
- t.dt(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Et(t, 15), t.dt(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7612
+ if ("nullValue" in e) this.dt(t, 5); else if ("booleanValue" in e) this.dt(t, 10),
7613
+ t.Et(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.dt(t, 15), t.Et(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7614
7614
  const n = __PRIVATE_normalizeNumber(e.doubleValue);
7615
- isNaN(n) ? this.Et(t, 13) : (this.Et(t, 15), __PRIVATE_isNegativeZero(n) ?
7615
+ isNaN(n) ? this.dt(t, 13) : (this.dt(t, 15), __PRIVATE_isNegativeZero(n) ?
7616
7616
  // -0.0, 0 and 0.0 are all considered the same
7617
- t.dt(0) : t.dt(n));
7617
+ t.Et(0) : t.Et(n));
7618
7618
  } else if ("timestampValue" in e) {
7619
7619
  const n = e.timestampValue;
7620
- this.Et(t, 20), "string" == typeof n ? t.At(n) : (t.At(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7621
- } else if ("stringValue" in e) this.Rt(e.stringValue, t), this.Vt(t); else if ("bytesValue" in e) this.Et(t, 30),
7620
+ this.dt(t, 20), "string" == typeof n ? t.At(n) : (t.At(`${n.seconds || ""}`), t.Et(n.nanos || 0));
7621
+ } else if ("stringValue" in e) this.Rt(e.stringValue, t), this.Vt(t); else if ("bytesValue" in e) this.dt(t, 30),
7622
7622
  t.ft(__PRIVATE_normalizeByteString(e.bytesValue)), this.Vt(t); else if ("referenceValue" in e) this.gt(e.referenceValue, t); else if ("geoPointValue" in e) {
7623
7623
  const n = e.geoPointValue;
7624
- this.Et(t, 45), t.dt(n.latitude || 0), t.dt(n.longitude || 0);
7625
- } else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Et(t, Number.MAX_SAFE_INTEGER) : (this.yt(e.mapValue, t),
7624
+ this.dt(t, 45), t.Et(n.latitude || 0), t.Et(n.longitude || 0);
7625
+ } else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.dt(t, Number.MAX_SAFE_INTEGER) : (this.yt(e.mapValue, t),
7626
7626
  this.Vt(t)) : "arrayValue" in e ? (this.wt(e.arrayValue, t), this.Vt(t)) : fail();
7627
7627
  }
7628
7628
  Rt(e, t) {
7629
- this.Et(t, 25), this.St(e, t);
7629
+ this.dt(t, 25), this.St(e, t);
7630
7630
  }
7631
7631
  St(e, t) {
7632
7632
  t.At(e);
7633
7633
  }
7634
7634
  yt(e, t) {
7635
7635
  const n = e.fields || {};
7636
- this.Et(t, 55);
7636
+ this.dt(t, 55);
7637
7637
  for (const e of Object.keys(n)) this.Rt(e, t), this.It(n[e], t);
7638
7638
  }
7639
7639
  wt(e, t) {
7640
7640
  const n = e.values || [];
7641
- this.Et(t, 50);
7641
+ this.dt(t, 50);
7642
7642
  for (const e of n) this.It(e, t);
7643
7643
  }
7644
7644
  gt(e, t) {
7645
- this.Et(t, 37);
7645
+ this.dt(t, 37);
7646
7646
  DocumentKey.fromName(e).path.forEach((e => {
7647
- this.Et(t, 60), this.St(e, t);
7647
+ this.dt(t, 60), this.St(e, t);
7648
7648
  }));
7649
7649
  }
7650
- Et(e, t) {
7651
- e.dt(t);
7650
+ dt(e, t) {
7651
+ e.Et(t);
7652
7652
  }
7653
7653
  Vt(e) {
7654
7654
  // While the SDK does not implement truncation, the truncation marker is
7655
7655
  // used to terminate all variable length values (which are strings, bytes,
7656
7656
  // references, arrays and maps).
7657
- e.dt(2);
7657
+ e.Et(2);
7658
7658
  }
7659
7659
  }
7660
7660
 
@@ -7844,7 +7844,7 @@ class __PRIVATE_AscendingIndexByteEncoder {
7844
7844
  At(e) {
7845
7845
  this.Gt.Ot(e);
7846
7846
  }
7847
- dt(e) {
7847
+ Et(e) {
7848
7848
  this.Gt.Bt(e);
7849
7849
  }
7850
7850
  Tt() {
@@ -7862,7 +7862,7 @@ class __PRIVATE_DescendingIndexByteEncoder {
7862
7862
  At(e) {
7863
7863
  this.Gt.Nt(e);
7864
7864
  }
7865
- dt(e) {
7865
+ Et(e) {
7866
7866
  this.Gt.qt(e);
7867
7867
  }
7868
7868
  Tt() {
@@ -8379,7 +8379,7 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8379
8379
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8380
8380
  * See the License for the specific language governing permissions and
8381
8381
  * limitations under the License.
8382
- */ const de = new Uint8Array(0);
8382
+ */ const Ee = new Uint8Array(0);
8383
8383
 
8384
8384
  /**
8385
8385
  * A persisted implementation of IndexManager.
@@ -8593,17 +8593,17 @@ class __PRIVATE_IndexedDbIndexManager {
8593
8593
  // combined with the values from the query bounds.
8594
8594
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8595
8595
  for (let c = 0; c < _; ++c) {
8596
- const _ = t ? this.Tn(t[c / a]) : de, l = this.En(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8596
+ const _ = t ? this.Tn(t[c / a]) : Ee, l = this.dn(e, _, n[c % a], r), h = this.En(e, _, i[c % a], s), P = o.map((t => this.dn(e, _, t,
8597
8597
  /* inclusive= */ !0)));
8598
8598
  u.push(...this.createRange(l, h, P));
8599
8599
  }
8600
8600
  return u;
8601
8601
  }
8602
- /** Generates the lower bound for `arrayValue` and `directionalValue`. */ En(e, t, n, r) {
8602
+ /** Generates the lower bound for `arrayValue` and `directionalValue`. */ dn(e, t, n, r) {
8603
8603
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8604
8604
  return r ? i : i.Jt();
8605
8605
  }
8606
- /** Generates the upper bound for `arrayValue` and `directionalValue`. */ dn(e, t, n, r) {
8606
+ /** Generates the upper bound for `arrayValue` and `directionalValue`. */ En(e, t, n, r) {
8607
8607
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8608
8608
  return r ? i.Jt() : i;
8609
8609
  }
@@ -8790,7 +8790,7 @@ class __PRIVATE_IndexedDbIndexManager {
8790
8790
  if (null != i) {
8791
8791
  const s = e.data.field(i.fieldPath);
8792
8792
  if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.Tn(i), r));
8793
- } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, de, r));
8793
+ } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Ee, r));
8794
8794
  return n;
8795
8795
  }
8796
8796
  /**
@@ -8865,7 +8865,7 @@ class __PRIVATE_IndexedDbIndexManager {
8865
8865
  // If we encounter two bounds that will create an unmatchable key range,
8866
8866
  // then we return an empty set of key ranges.
8867
8867
  if (this.Dn(r[e], r[e + 1])) return [];
8868
- const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, de, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, de, [] ];
8868
+ const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, Ee, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, Ee, [] ];
8869
8869
  i.push(IDBKeyRange.bound(t, n));
8870
8870
  }
8871
8871
  return i;
@@ -10709,7 +10709,7 @@ class OverlayedDocument {
10709
10709
  // A set of outstanding references to a document sorted by key.
10710
10710
  this.Pr = new SortedSet(__PRIVATE_DocReference.Ir),
10711
10711
  // A set of outstanding references to a document sorted by target id.
10712
- this.Tr = new SortedSet(__PRIVATE_DocReference.Er);
10712
+ this.Tr = new SortedSet(__PRIVATE_DocReference.dr);
10713
10713
  }
10714
10714
  /** Returns true if the reference set contains no references. */ isEmpty() {
10715
10715
  return this.Pr.isEmpty();
@@ -10718,7 +10718,7 @@ class OverlayedDocument {
10718
10718
  const n = new __PRIVATE_DocReference(e, t);
10719
10719
  this.Pr = this.Pr.add(n), this.Tr = this.Tr.add(n);
10720
10720
  }
10721
- /** Add references to the given document keys for the given ID. */ dr(e, t) {
10721
+ /** Add references to the given document keys for the given ID. */ Er(e, t) {
10722
10722
  e.forEach((e => this.addReference(e, t)));
10723
10723
  }
10724
10724
  /**
@@ -10765,7 +10765,7 @@ class __PRIVATE_DocReference {
10765
10765
  /** Compare by key then by ID */ static Ir(e, t) {
10766
10766
  return DocumentKey.comparator(e.key, t.key) || __PRIVATE_primitiveComparator(e.pr, t.pr);
10767
10767
  }
10768
- /** Compare by ID then by key */ static Er(e, t) {
10768
+ /** Compare by ID then by key */ static dr(e, t) {
10769
10769
  return __PRIVATE_primitiveComparator(e.pr, t.pr) || DocumentKey.comparator(e.key, t.key);
10770
10770
  }
10771
10771
  }
@@ -11144,7 +11144,7 @@ class __PRIVATE_MemoryRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuf
11144
11144
  return PersistencePromise.resolve(n);
11145
11145
  }
11146
11146
  addMatchingKeys(e, t, n) {
11147
- return this.Nr.dr(t, n), PersistencePromise.resolve();
11147
+ return this.Nr.Er(t, n), PersistencePromise.resolve();
11148
11148
  }
11149
11149
  removeMatchingKeys(e, t, n) {
11150
11150
  this.Nr.Rr(t, n);
@@ -11760,10 +11760,10 @@ class __PRIVATE_IndexedDbPersistence {
11760
11760
  /** A listener to notify on primary state changes. */
11761
11761
  this.Ii = e => Promise.resolve(), !__PRIVATE_IndexedDbPersistence.D()) throw new FirestoreError(v.UNIMPLEMENTED, "This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
11762
11762
  this.referenceDelegate = new __PRIVATE_IndexedDbLruDelegateImpl(this, r), this.Ti = t + "main",
11763
- this.serializer = new __PRIVATE_LocalSerializer(_), this.Ei = new __PRIVATE_SimpleDb(this.Ti, this.ui, new __PRIVATE_SchemaConverter(this.serializer)),
11763
+ this.serializer = new __PRIVATE_LocalSerializer(_), this.di = new __PRIVATE_SimpleDb(this.Ti, this.ui, new __PRIVATE_SchemaConverter(this.serializer)),
11764
11764
  this.Qr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
11765
11765
  this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
11766
- this.$r = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.di = this.window.localStorage : (this.di = null,
11766
+ this.$r = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ei = this.window.localStorage : (this.Ei = null,
11767
11767
  !1 === u && __PRIVATE_logError("IndexedDbPersistence", "LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."));
11768
11768
  }
11769
11769
  /**
@@ -11784,7 +11784,7 @@ class __PRIVATE_IndexedDbPersistence {
11784
11784
  this.kr = new __PRIVATE_ListenSequence(e, this._i);
11785
11785
  })).then((() => {
11786
11786
  this.qr = !0;
11787
- })).catch((e => (this.Ei && this.Ei.close(), Promise.reject(e))));
11787
+ })).catch((e => (this.di && this.di.close(), Promise.reject(e))));
11788
11788
  }
11789
11789
  /**
11790
11790
  * Registers a listener that gets called when the primary state of the
@@ -11803,7 +11803,7 @@ class __PRIVATE_IndexedDbPersistence {
11803
11803
  *
11804
11804
  * PORTING NOTE: This is only used for Web multi-tab.
11805
11805
  */ setDatabaseDeletedListener(e) {
11806
- this.Ei.L((async t => {
11806
+ this.di.L((async t => {
11807
11807
  // Check if an attempt is made to delete IndexedDB.
11808
11808
  null === t.newVersion && await e();
11809
11809
  }));
@@ -11875,7 +11875,7 @@ class __PRIVATE_IndexedDbPersistence {
11875
11875
  // Ideally we'd delete the IndexedDb and LocalStorage zombie entries for
11876
11876
  // the client atomically, but we can't. So we opt to delete the IndexedDb
11877
11877
  // entries first to avoid potentially reviving a zombied client.
11878
- if (this.di) for (const t of e) this.di.removeItem(this.Fi(t.clientId));
11878
+ if (this.Ei) for (const t of e) this.Ei.removeItem(this.Fi(t.clientId));
11879
11879
  }
11880
11880
  }
11881
11881
  /**
@@ -11941,10 +11941,10 @@ class __PRIVATE_IndexedDbPersistence {
11941
11941
  this.Ni(),
11942
11942
  // Use `SimpleDb.runTransaction` directly to avoid failing if another tab
11943
11943
  // has obtained the primary lease.
11944
- await this.Ei.runTransaction("shutdown", "readwrite", [ "owner", "clientMetadata" ], (e => {
11944
+ await this.di.runTransaction("shutdown", "readwrite", [ "owner", "clientMetadata" ], (e => {
11945
11945
  const t = new __PRIVATE_IndexedDbTransaction(e, __PRIVATE_ListenSequence._e);
11946
11946
  return this.yi(t).next((() => this.bi(t)));
11947
- })), this.Ei.close(),
11947
+ })), this.di.close(),
11948
11948
  // Remove the entry marking the client as zombied from LocalStorage since
11949
11949
  // we successfully deleted its metadata from IndexedDb.
11950
11950
  this.Bi();
@@ -11995,7 +11995,7 @@ class __PRIVATE_IndexedDbPersistence {
11995
11995
  let s;
11996
11996
  // Do all transactions as readwrite against all object stores, since we
11997
11997
  // are the only reader/writer.
11998
- return this.Ei.runTransaction(e, r, i, (r => (s = new __PRIVATE_IndexedDbTransaction(r, this.kr ? this.kr.next() : __PRIVATE_ListenSequence._e),
11998
+ return this.di.runTransaction(e, r, i, (r => (s = new __PRIVATE_IndexedDbTransaction(r, this.kr ? this.kr.next() : __PRIVATE_ListenSequence._e),
11999
11999
  "readwrite-primary" === t ? this.gi(s).next((e => !!e || this.pi(s))).next((t => {
12000
12000
  if (!t) throw __PRIVATE_logError(`Failed to obtain primary lease for action '${e}'.`),
12001
12001
  this.isPrimary = !1, this.oi.enqueueRetryable((() => this.Ii(!1))), new FirestoreError(v.FAILED_PRECONDITION, M);
@@ -12082,7 +12082,7 @@ class __PRIVATE_IndexedDbPersistence {
12082
12082
  */ Mi(e) {
12083
12083
  var t;
12084
12084
  try {
12085
- const n = null !== (null === (t = this.di) || void 0 === t ? void 0 : t.getItem(this.Fi(e)));
12085
+ const n = null !== (null === (t = this.Ei) || void 0 === t ? void 0 : t.getItem(this.Fi(e)));
12086
12086
  return __PRIVATE_logDebug("IndexedDbPersistence", `Client '${e}' ${n ? "is" : "is not"} zombied in LocalStorage`),
12087
12087
  n;
12088
12088
  } catch (e) {
@@ -12095,16 +12095,16 @@ class __PRIVATE_IndexedDbPersistence {
12095
12095
  * Record client as zombied (a client that had its tab closed). Zombied
12096
12096
  * clients are ignored during primary tab selection.
12097
12097
  */ xi() {
12098
- if (this.di) try {
12099
- this.di.setItem(this.Fi(this.clientId), String(Date.now()));
12098
+ if (this.Ei) try {
12099
+ this.Ei.setItem(this.Fi(this.clientId), String(Date.now()));
12100
12100
  } catch (e) {
12101
12101
  // Gracefully handle if LocalStorage isn't available / working.
12102
12102
  __PRIVATE_logError("Failed to set zombie client id.", e);
12103
12103
  }
12104
12104
  }
12105
12105
  /** Removes the zombied client entry if it exists. */ Bi() {
12106
- if (this.di) try {
12107
- this.di.removeItem(this.Fi(this.clientId));
12106
+ if (this.Ei) try {
12107
+ this.Ei.removeItem(this.Fi(this.clientId));
12108
12108
  } catch (e) {
12109
12109
  // Ignore
12110
12110
  }
@@ -12923,14 +12923,14 @@ class __PRIVATE_MutationMetadata {
12923
12923
  /**
12924
12924
  * Parses a MutationMetadata from its JSON representation in WebStorage.
12925
12925
  * Logs a warning and returns null if the format of the data is not valid.
12926
- */ static Es(e, t, n) {
12926
+ */ static ds(e, t, n) {
12927
12927
  const r = JSON.parse(n);
12928
12928
  let i, s = "object" == typeof r && -1 !== [ "pending", "acknowledged", "rejected" ].indexOf(r.state) && (void 0 === r.error || "object" == typeof r.error);
12929
12929
  return s && r.error && (s = "string" == typeof r.error.message && "string" == typeof r.error.code,
12930
12930
  s && (i = new FirestoreError(r.error.code, r.error.message))), s ? new __PRIVATE_MutationMetadata(e, t, r.state, i) : (__PRIVATE_logError("SharedClientState", `Failed to parse mutation state for ID '${t}': ${n}`),
12931
12931
  null);
12932
12932
  }
12933
- ds() {
12933
+ Es() {
12934
12934
  const e = {
12935
12935
  state: this.state,
12936
12936
  updateTimeMs: Date.now()
@@ -12954,14 +12954,14 @@ class __PRIVATE_QueryTargetMetadata {
12954
12954
  /**
12955
12955
  * Parses a QueryTargetMetadata from its JSON representation in WebStorage.
12956
12956
  * Logs a warning and returns null if the format of the data is not valid.
12957
- */ static Es(e, t) {
12957
+ */ static ds(e, t) {
12958
12958
  const n = JSON.parse(t);
12959
12959
  let r, i = "object" == typeof n && -1 !== [ "not-current", "current", "rejected" ].indexOf(n.state) && (void 0 === n.error || "object" == typeof n.error);
12960
12960
  return i && n.error && (i = "string" == typeof n.error.message && "string" == typeof n.error.code,
12961
12961
  i && (r = new FirestoreError(n.error.code, n.error.message))), i ? new __PRIVATE_QueryTargetMetadata(e, n.state, r) : (__PRIVATE_logError("SharedClientState", `Failed to parse target state for ID '${e}': ${t}`),
12962
12962
  null);
12963
12963
  }
12964
- ds() {
12964
+ Es() {
12965
12965
  const e = {
12966
12966
  state: this.state,
12967
12967
  updateTimeMs: Date.now()
@@ -12983,7 +12983,7 @@ class __PRIVATE_QueryTargetMetadata {
12983
12983
  /**
12984
12984
  * Parses a RemoteClientState from the JSON representation in WebStorage.
12985
12985
  * Logs a warning and returns null if the format of the data is not valid.
12986
- */ static Es(e, t) {
12986
+ */ static ds(e, t) {
12987
12987
  const n = JSON.parse(t);
12988
12988
  let r = "object" == typeof n && n.activeTargetIds instanceof Array, i = __PRIVATE_targetIdSet();
12989
12989
  for (let e = 0; r && e < n.activeTargetIds.length; ++e) r = isSafeInteger(n.activeTargetIds[e]),
@@ -13004,7 +13004,7 @@ class __PRIVATE_QueryTargetMetadata {
13004
13004
  /**
13005
13005
  * Parses a SharedOnlineState from its JSON representation in WebStorage.
13006
13006
  * Logs a warning and returns null if the format of the data is not valid.
13007
- */ static Es(e) {
13007
+ */ static ds(e) {
13008
13008
  const t = JSON.parse(e);
13009
13009
  return "object" == typeof t && -1 !== [ "Unknown", "Online", "Offline" ].indexOf(t.onlineState) && "string" == typeof t.clientId ? new __PRIVATE_SharedOnlineState(t.clientId, t.onlineState) : (__PRIVATE_logError("SharedClientState", `Failed to parse online state: ${e}`),
13010
13010
  null);
@@ -13035,7 +13035,7 @@ class __PRIVATE_LocalClientState {
13035
13035
  /**
13036
13036
  * Converts this entry into a JSON-encoded format we can use for WebStorage.
13037
13037
  * Does not encode `clientId` as it is part of the key in WebStorage.
13038
- */ ds() {
13038
+ */ Es() {
13039
13039
  const e = {
13040
13040
  activeTargetIds: this.activeTargetIds.toArray(),
13041
13041
  updateTimeMs: Date.now()
@@ -13119,7 +13119,7 @@ class __PRIVATE_LocalClientState {
13119
13119
  if (t === this.Vs) continue;
13120
13120
  const e = this.getItem(createWebStorageClientStateKey(this.persistenceKey, t));
13121
13121
  if (e) {
13122
- const n = __PRIVATE_RemoteClientState.Es(t, e);
13122
+ const n = __PRIVATE_RemoteClientState.ds(t, e);
13123
13123
  n && (this.ps = this.ps.insert(n.clientId, n));
13124
13124
  }
13125
13125
  }
@@ -13166,7 +13166,7 @@ class __PRIVATE_LocalClientState {
13166
13166
  if (this.isActiveQueryTarget(e)) {
13167
13167
  const n = this.storage.getItem(createWebStorageQueryTargetMetadataKey(this.persistenceKey, e));
13168
13168
  if (n) {
13169
- const r = __PRIVATE_QueryTargetMetadata.Es(e, n);
13169
+ const r = __PRIVATE_QueryTargetMetadata.ds(e, n);
13170
13170
  r && (t = r.state);
13171
13171
  }
13172
13172
  }
@@ -13272,11 +13272,11 @@ class __PRIVATE_LocalClientState {
13272
13272
  return this.ps.get(this.Vs);
13273
13273
  }
13274
13274
  Ms() {
13275
- this.setItem(this.ws, this.ks.ds());
13275
+ this.setItem(this.ws, this.ks.Es());
13276
13276
  }
13277
13277
  Bs(e, t, n) {
13278
13278
  const r = new __PRIVATE_MutationMetadata(this.currentUser, e, t, n), i = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
13279
- this.setItem(i, r.ds());
13279
+ this.setItem(i, r.Es());
13280
13280
  }
13281
13281
  Ls(e) {
13282
13282
  const t = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
@@ -13291,7 +13291,7 @@ class __PRIVATE_LocalClientState {
13291
13291
  }
13292
13292
  qs(e, t, n) {
13293
13293
  const r = createWebStorageQueryTargetMetadataKey(this.persistenceKey, e), i = new __PRIVATE_QueryTargetMetadata(e, t, n);
13294
- this.setItem(r, i.ds());
13294
+ this.setItem(r, i.Es());
13295
13295
  }
13296
13296
  Ks(e) {
13297
13297
  const t = JSON.stringify(Array.from(e));
@@ -13309,27 +13309,27 @@ class __PRIVATE_LocalClientState {
13309
13309
  * be parsed.
13310
13310
  */ Ws(e, t) {
13311
13311
  const n = this.$s(e);
13312
- return __PRIVATE_RemoteClientState.Es(n, t);
13312
+ return __PRIVATE_RemoteClientState.ds(n, t);
13313
13313
  }
13314
13314
  /**
13315
13315
  * Parses a mutation batch state in WebStorage. Returns 'null' if the value
13316
13316
  * could not be parsed.
13317
13317
  */ Gs(e, t) {
13318
13318
  const n = this.Ds.exec(e), r = Number(n[1]), i = void 0 !== n[2] ? n[2] : null;
13319
- return __PRIVATE_MutationMetadata.Es(new User(i), r, t);
13319
+ return __PRIVATE_MutationMetadata.ds(new User(i), r, t);
13320
13320
  }
13321
13321
  /**
13322
13322
  * Parses a query target state from WebStorage. Returns 'null' if the value
13323
13323
  * could not be parsed.
13324
13324
  */ js(e, t) {
13325
13325
  const n = this.Cs.exec(e), r = Number(n[1]);
13326
- return __PRIVATE_QueryTargetMetadata.Es(r, t);
13326
+ return __PRIVATE_QueryTargetMetadata.ds(r, t);
13327
13327
  }
13328
13328
  /**
13329
13329
  * Parses an online state from WebStorage. Returns 'null' if the value
13330
13330
  * could not be parsed.
13331
13331
  */ xs(e) {
13332
- return __PRIVATE_SharedOnlineState.Es(e);
13332
+ return __PRIVATE_SharedOnlineState.ds(e);
13333
13333
  }
13334
13334
  Js(e) {
13335
13335
  return JSON.parse(e);
@@ -14387,13 +14387,13 @@ class __PRIVATE_PersistentStream {
14387
14387
  }
14388
14388
  // The first response is always the handshake response
14389
14389
  return __PRIVATE_hardAssert(!e.writeResults || 0 === e.writeResults.length), this.h_ = !0,
14390
- this.listener.E_();
14390
+ this.listener.d_();
14391
14391
  }
14392
14392
  /**
14393
14393
  * Sends an initial streamToken to the server, performing the handshake
14394
14394
  * required to make the StreamingWrite RPC work. Subsequent
14395
14395
  * calls should wait until onHandshakeComplete was called.
14396
- */ d_() {
14396
+ */ E_() {
14397
14397
  // TODO(dimond): Support stream resumption. We intentionally do not set the
14398
14398
  // stream token on the handshake, ignoring any stream token we might have.
14399
14399
  const e = {};
@@ -14916,7 +14916,7 @@ function __PRIVATE_startWriteStream(e) {
14916
14916
  }
14917
14917
 
14918
14918
  async function __PRIVATE_onWriteStreamOpen(e) {
14919
- __PRIVATE_ensureWriteStream(e).d_();
14919
+ __PRIVATE_ensureWriteStream(e).E_();
14920
14920
  }
14921
14921
 
14922
14922
  async function __PRIVATE_onWriteHandshakeComplete(e) {
@@ -15038,7 +15038,7 @@ async function __PRIVATE_remoteStoreHandleCredentialChange(e, t) {
15038
15038
  }(e.datastore, e.asyncQueue, {
15039
15039
  Po: __PRIVATE_onWriteStreamOpen.bind(null, e),
15040
15040
  To: __PRIVATE_onWriteStreamClose.bind(null, e),
15041
- E_: __PRIVATE_onWriteHandshakeComplete.bind(null, e),
15041
+ d_: __PRIVATE_onWriteHandshakeComplete.bind(null, e),
15042
15042
  T_: __PRIVATE_onMutationResult.bind(null, e)
15043
15043
  }), e.F_.push((async t => {
15044
15044
  t ? (e.B_.Zo(),
@@ -15812,19 +15812,19 @@ class __PRIVATE_RemovedLimboDocument {
15812
15812
  * See the License for the specific language governing permissions and
15813
15813
  * limitations under the License.
15814
15814
  */ (e.type, t.type) || this.ua(e.doc, t.doc))), this.Ta(n), r = null != r && r;
15815
- const o = t && !r ? this.Ea() : [], _ = 0 === this.aa.size && this.current && !r ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , a = _ !== this._a;
15815
+ const o = t && !r ? this.da() : [], _ = 0 === this.aa.size && this.current && !r ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , a = _ !== this._a;
15816
15816
  // We are at synced state if there is no limbo docs are waiting to be resolved, view is current
15817
15817
  // with the backend, and the query is not pending to reset due to existence filter mismatch.
15818
15818
  if (this._a = _, 0 !== s.length || a) {
15819
15819
  return {
15820
15820
  snapshot: new ViewSnapshot(this.query, e.ca, i, s, e.mutatedKeys, 0 /* SyncState.Local */ === _, a,
15821
15821
  /* excludesMetadataChanges= */ !1, !!n && n.resumeToken.approximateByteSize() > 0),
15822
- da: o
15822
+ Ea: o
15823
15823
  };
15824
15824
  }
15825
15825
  // no changes
15826
15826
  return {
15827
- da: o
15827
+ Ea: o
15828
15828
  };
15829
15829
  }
15830
15830
  /**
@@ -15843,7 +15843,7 @@ class __PRIVATE_RemovedLimboDocument {
15843
15843
  Xi: !1
15844
15844
  },
15845
15845
  /* limboResolutionEnabled= */ !1)) : {
15846
- da: []
15846
+ Ea: []
15847
15847
  };
15848
15848
  }
15849
15849
  /**
@@ -15861,7 +15861,7 @@ class __PRIVATE_RemovedLimboDocument {
15861
15861
  e && (e.addedDocuments.forEach((e => this.oa = this.oa.add(e))), e.modifiedDocuments.forEach((e => {})),
15862
15862
  e.removedDocuments.forEach((e => this.oa = this.oa.delete(e))), this.current = e.current);
15863
15863
  }
15864
- Ea() {
15864
+ da() {
15865
15865
  // We can only determine limbo documents when we're in-sync with the server.
15866
15866
  if (!this.current) return [];
15867
15867
  // TODO(klimt): Do this incrementally so that it's not quadratic when
@@ -16047,12 +16047,12 @@ async function __PRIVATE_syncEngineListen(e, t) {
16047
16047
  /* usePreviousResults= */ !1).then((({documents: e}) => t.view.ha(e, i))));
16048
16048
  const s = r && r.targetChanges.get(t.targetId), o = r && null != r.targetMismatches.get(t.targetId), _ = t.view.applyChanges(i,
16049
16049
  /* limboResolutionEnabled= */ e.isPrimaryClient, s, o);
16050
- return __PRIVATE_updateTrackedLimbos(e, t.targetId, _.da), _.snapshot;
16050
+ return __PRIVATE_updateTrackedLimbos(e, t.targetId, _.Ea), _.snapshot;
16051
16051
  }(e, t, n, r);
16052
16052
  const s = await __PRIVATE_localStoreExecuteQuery(e.localStore, t,
16053
16053
  /* usePreviousResults= */ !0), o = new __PRIVATE_View(t, s.hs), _ = o.ha(s.documents), a = TargetChange.createSynthesizedTargetChangeForCurrentChange(n, r && "Offline" /* OnlineState.Offline */ !== e.onlineState, i), u = o.applyChanges(_,
16054
16054
  /* limboResolutionEnabled= */ e.isPrimaryClient, a);
16055
- __PRIVATE_updateTrackedLimbos(e, n, u.da);
16055
+ __PRIVATE_updateTrackedLimbos(e, n, u.Ea);
16056
16056
  const c = new __PRIVATE_QueryView(t, n, o);
16057
16057
  return e.ga.set(t, c), e.pa.has(n) ? e.pa.get(n).push(t) : e.pa.set(n, [ t ]), u.snapshot;
16058
16058
  }
@@ -16454,7 +16454,7 @@ function __PRIVATE_syncEngineGetRemoteKeysForTarget(e, t) {
16454
16454
  */ async function __PRIVATE_synchronizeViewAndComputeSnapshot(e, t) {
16455
16455
  const n = __PRIVATE_debugCast(e), r = await __PRIVATE_localStoreExecuteQuery(n.localStore, t.query,
16456
16456
  /* usePreviousResults= */ !0), i = t.view.Ra(r);
16457
- return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.da),
16457
+ return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.Ea),
16458
16458
  i;
16459
16459
  }
16460
16460
 
@@ -18669,7 +18669,7 @@ class LoadBundleTask {
18669
18669
  const e = r.getImmediate({
18670
18670
  identifier: n
18671
18671
  }), i = r.getOptions(n);
18672
- if (E(i, t)) return e;
18672
+ if (d(i, t)) return e;
18673
18673
  throw new FirestoreError(v.FAILED_PRECONDITION, "initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.");
18674
18674
  }
18675
18675
  if (void 0 !== t.cacheSizeBytes && void 0 !== t.localCache) throw new FirestoreError(v.INVALID_ARGUMENT, "cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");
@@ -18685,7 +18685,7 @@ function getFirestore(t, n) {
18685
18685
  identifier: i
18686
18686
  });
18687
18687
  if (!s._initialized) {
18688
- const e = d("firestore");
18688
+ const e = E("firestore");
18689
18689
  e && connectFirestoreEmulator(s, ...e);
18690
18690
  }
18691
18691
  return s;
@@ -19312,13 +19312,13 @@ function __PRIVATE_isWrite(e) {
19312
19312
  this.settings = e, this.databaseId = t, this.serializer = n, this.ignoreUndefinedProperties = r,
19313
19313
  // Minor hack: If fieldTransforms is undefined, we assume this is an
19314
19314
  // external call and we need to validate the entire path.
19315
- void 0 === i && this.Eu(), this.fieldTransforms = i || [], this.fieldMask = s || [];
19315
+ void 0 === i && this.du(), this.fieldTransforms = i || [], this.fieldMask = s || [];
19316
19316
  }
19317
19317
  get path() {
19318
19318
  return this.settings.path;
19319
19319
  }
19320
- get du() {
19321
- return this.settings.du;
19320
+ get Eu() {
19321
+ return this.settings.Eu;
19322
19322
  }
19323
19323
  /** Returns a new context with the specified settings overwritten. */ Au(e) {
19324
19324
  return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
@@ -19337,7 +19337,7 @@ function __PRIVATE_isWrite(e) {
19337
19337
  path: n,
19338
19338
  Vu: !1
19339
19339
  });
19340
- return r.Eu(), r;
19340
+ return r.du(), r;
19341
19341
  }
19342
19342
  gu(e) {
19343
19343
  // TODO(b/34871131): We don't support array paths right now; so make path
@@ -19353,14 +19353,14 @@ function __PRIVATE_isWrite(e) {
19353
19353
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ contains(e) {
19354
19354
  return void 0 !== this.fieldMask.find((t => e.isPrefixOf(t))) || void 0 !== this.fieldTransforms.find((t => e.isPrefixOf(t.field)));
19355
19355
  }
19356
- Eu() {
19356
+ du() {
19357
19357
  // TODO(b/34871131): Remove null check once we have proper paths for fields
19358
19358
  // within arrays.
19359
19359
  if (this.path) for (let e = 0; e < this.path.length; e++) this.mu(this.path.get(e));
19360
19360
  }
19361
19361
  mu(e) {
19362
19362
  if (0 === e.length) throw this.pu("Document fields must not be empty");
19363
- if (__PRIVATE_isWrite(this.du) && ye.test(e)) throw this.pu('Document fields cannot begin and end with "__"');
19363
+ if (__PRIVATE_isWrite(this.Eu) && ye.test(e)) throw this.pu('Document fields cannot begin and end with "__"');
19364
19364
  }
19365
19365
  }
19366
19366
 
@@ -19373,7 +19373,7 @@ function __PRIVATE_isWrite(e) {
19373
19373
  }
19374
19374
  /** Creates a new top-level parse context. */ Su(e, t, n, r = !1) {
19375
19375
  return new __PRIVATE_ParseContextImpl({
19376
- du: e,
19376
+ Eu: e,
19377
19377
  methodName: t,
19378
19378
  wu: n,
19379
19379
  path: FieldPath$1.emptyPath(),
@@ -19407,7 +19407,7 @@ function __PRIVATE_newUserDataReader(e) {
19407
19407
 
19408
19408
  class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19409
19409
  _toFieldTransform(e) {
19410
- if (2 /* UserDataSource.MergeSet */ !== e.du) throw 1 /* UserDataSource.Update */ === e.du ? e.pu(`${this._methodName}() can only appear at the top level of your update data`) : e.pu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
19410
+ if (2 /* UserDataSource.MergeSet */ !== e.Eu) throw 1 /* UserDataSource.Update */ === e.Eu ? e.pu(`${this._methodName}() can only appear at the top level of your update data`) : e.pu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);
19411
19411
  // No transform to add for a delete, but we need to add it to our
19412
19412
  // fieldMask so it gets deleted.
19413
19413
  return e.fieldMask.push(e.path), null;
@@ -19434,7 +19434,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19434
19434
  * @param arrayElement - Whether or not the FieldValue has an array.
19435
19435
  */ function __PRIVATE_createSentinelChildContext(e, t, n) {
19436
19436
  return new __PRIVATE_ParseContextImpl({
19437
- du: 3 /* UserDataSource.Argument */ ,
19437
+ Eu: 3 /* UserDataSource.Argument */ ,
19438
19438
  wu: t.settings.wu,
19439
19439
  methodName: e._methodName,
19440
19440
  Vu: n
@@ -19460,7 +19460,7 @@ class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
19460
19460
  return new FieldTransform(e.path, r);
19461
19461
  }
19462
19462
  isEqual(e) {
19463
- return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && E(this.bu, e.bu);
19463
+ return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && d(this.bu, e.bu);
19464
19464
  }
19465
19465
  }
19466
19466
 
@@ -19474,7 +19474,7 @@ class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
19474
19474
  return new FieldTransform(e.path, r);
19475
19475
  }
19476
19476
  isEqual(e) {
19477
- return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && E(this.bu, e.bu);
19477
+ return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && d(this.bu, e.bu);
19478
19478
  }
19479
19479
  }
19480
19480
 
@@ -19574,7 +19574,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19574
19574
  */
19575
19575
  return function __PRIVATE_parseSentinelFieldValue(e, t) {
19576
19576
  // Sentinels are only supported with writes, and not within arrays.
19577
- if (!__PRIVATE_isWrite(t.du)) throw t.pu(`${e._methodName}() can only be used with update() and set()`);
19577
+ if (!__PRIVATE_isWrite(t.Eu)) throw t.pu(`${e._methodName}() can only be used with update() and set()`);
19578
19578
  if (!t.path) throw t.pu(`${e._methodName}() is not currently supported inside arrays`);
19579
19579
  const n = e._toFieldTransform(t);
19580
19580
  n && t.fieldTransforms.push(n);
@@ -19599,7 +19599,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19599
19599
  // the set of values to be included for the IN query) that may directly
19600
19600
  // contain additional arrays (each representing an individual field
19601
19601
  // value), so we disable this validation.
19602
- if (t.settings.Vu && 4 /* UserDataSource.ArrayArgument */ !== t.du) throw t.pu("Nested arrays are not supported");
19602
+ if (t.settings.Vu && 4 /* UserDataSource.ArrayArgument */ !== t.Eu) throw t.pu("Nested arrays are not supported");
19603
19603
  return function __PRIVATE_parseArray(e, t) {
19604
19604
  const n = [];
19605
19605
  let r = 0;
@@ -20545,7 +20545,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
20545
20545
  * @returns `true` if the objects are "equal", as defined above, or `false`
20546
20546
  * otherwise.
20547
20547
  */ function aggregateQuerySnapshotEqual(e, t) {
20548
- return queryEqual(e.query, t.query) && E(e.data(), t.data());
20548
+ return queryEqual(e.query, t.query) && d(e.data(), t.data());
20549
20549
  }
20550
20550
 
20551
20551
  /**
@@ -21849,9 +21849,9 @@ let De = null;
21849
21849
  return r = Object.assign({
21850
21850
  useFetchStreams: t
21851
21851
  }, r), s._setSettings(r), s;
21852
- }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.4.2", e),
21852
+ }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.4.3-canary.245dd26e1", e),
21853
21853
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21854
- r(b, "4.4.2", "esm2017");
21854
+ r(b, "4.4.3-canary.245dd26e1", "esm2017");
21855
21855
  }("rn", /* useFetchStreams= */ !1);
21856
21856
 
21857
21857
  export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, pe as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, PersistentCacheIndexManager, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, SnapshotMetadata, Timestamp, Transaction, WriteBatch, __PRIVATE_AutoId as _AutoId, ByteString as _ByteString, DatabaseId as _DatabaseId, DocumentKey as _DocumentKey, __PRIVATE_EmptyAppCheckTokenProvider as _EmptyAppCheckTokenProvider, __PRIVATE_EmptyAuthCredentialsProvider as _EmptyAuthCredentialsProvider, FieldPath$1 as _FieldPath, TestingHooks as _TestingHooks, __PRIVATE_cast as _cast, __PRIVATE_debugAssert as _debugAssert, __PRIVATE_isBase64Available as _isBase64Available, __PRIVATE_logWarn as _logWarn, __PRIVATE_validateIsNotUsedTogether as _validateIsNotUsedTogether, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, clearIndexedDbPersistence, collection, collectionGroup, connectFirestoreEmulator, count, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, memoryEagerGarbageCollector, memoryLocalCache, memoryLruGarbageCollector, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, persistentLocalCache, persistentMultipleTabManager, persistentSingleTabManager, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setIndexConfiguration, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, waitForPendingWrites, where, writeBatch };