@firebase/firestore 4.3.0-canary.bd073b26a → 4.3.0-canary.f002ef36a

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 d, getDefaultEmulatorHostnameAndPort as E } 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 E, getDefaultEmulatorHostnameAndPort as d } 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.5.0-canary.bd073b26a";
73
+ let D = "10.5.0-canary.f002ef36a";
74
74
 
75
75
  /**
76
76
  * @license
@@ -5848,16 +5848,16 @@ class BloomFilter {
5848
5848
  throw new __PRIVATE_BloomFilterError(`Invalid padding when bitmap length is 0: ${t}`);
5849
5849
  this.Te = 8 * e.length - t,
5850
5850
  // Set the bit count in Integer to avoid repetition in mightContain().
5851
- this.de = A.fromNumber(this.Te);
5851
+ this.Ee = A.fromNumber(this.Te);
5852
5852
  }
5853
5853
  // Calculate the ith hash value based on the hashed 64bit integers,
5854
5854
  // and calculate its corresponding bit index in the bitmap to be checked.
5855
- Ee(e, t, n) {
5855
+ de(e, t, n) {
5856
5856
  // Calculate hashed value h(i) = h1 + (i * h2).
5857
5857
  let r = e.add(t.multiply(A.fromNumber(n)));
5858
5858
  // Wrap if hash value overflow 64bit.
5859
5859
  return 1 === r.compare(Pe) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
5860
- r.modulo(this.de).toNumber();
5860
+ r.modulo(this.Ee).toNumber();
5861
5861
  }
5862
5862
  // Return whether the bit on the given index in the bitmap is set to 1.
5863
5863
  Ae(e) {
@@ -5868,7 +5868,7 @@ class BloomFilter {
5868
5868
  if (0 === this.Te) return !1;
5869
5869
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5870
5870
  for (let e = 0; e < this.hashCount; e++) {
5871
- const t = this.Ee(n, r, e);
5871
+ const t = this.de(n, r, e);
5872
5872
  if (!this.Ae(t)) return !1;
5873
5873
  }
5874
5874
  return !0;
@@ -5881,7 +5881,7 @@ class BloomFilter {
5881
5881
  if (0 === this.Te) return;
5882
5882
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5883
5883
  for (let e = 0; e < this.hashCount; e++) {
5884
- const t = this.Ee(n, r, e);
5884
+ const t = this.de(n, r, e);
5885
5885
  this.Re(t);
5886
5886
  }
5887
5887
  }
@@ -6510,7 +6510,7 @@ const Ie = (() => {
6510
6510
  "array-contains-any": "ARRAY_CONTAINS_ANY"
6511
6511
  };
6512
6512
  return e;
6513
- })(), de = (() => {
6513
+ })(), Ee = (() => {
6514
6514
  const e = {
6515
6515
  and: "AND",
6516
6516
  or: "OR"
@@ -7042,7 +7042,7 @@ function __PRIVATE_toOperatorName(e) {
7042
7042
  }
7043
7043
 
7044
7044
  function __PRIVATE_toCompositeOperatorName(e) {
7045
- return de[e];
7045
+ return Ee[e];
7046
7046
  }
7047
7047
 
7048
7048
  function __PRIVATE_toFieldPathReference(e) {
@@ -7594,18 +7594,18 @@ class __PRIVATE_FirestoreIndexValueWriter {
7594
7594
  }
7595
7595
  Pt(e, t) {
7596
7596
  if ("nullValue" in e) this.Tt(t, 5); else if ("booleanValue" in e) this.Tt(t, 10),
7597
- t.dt(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Tt(t, 15), t.dt(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7597
+ t.Et(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Tt(t, 15), t.Et(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7598
7598
  const n = __PRIVATE_normalizeNumber(e.doubleValue);
7599
7599
  isNaN(n) ? this.Tt(t, 13) : (this.Tt(t, 15), __PRIVATE_isNegativeZero(n) ?
7600
7600
  // -0.0, 0 and 0.0 are all considered the same
7601
- t.dt(0) : t.dt(n));
7601
+ t.Et(0) : t.Et(n));
7602
7602
  } else if ("timestampValue" in e) {
7603
7603
  const n = e.timestampValue;
7604
- this.Tt(t, 20), "string" == typeof n ? t.Et(n) : (t.Et(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7604
+ this.Tt(t, 20), "string" == typeof n ? t.dt(n) : (t.dt(`${n.seconds || ""}`), t.Et(n.nanos || 0));
7605
7605
  } else if ("stringValue" in e) this.At(e.stringValue, t), this.Rt(t); else if ("bytesValue" in e) this.Tt(t, 30),
7606
7606
  t.Vt(__PRIVATE_normalizeByteString(e.bytesValue)), this.Rt(t); else if ("referenceValue" in e) this.ft(e.referenceValue, t); else if ("geoPointValue" in e) {
7607
7607
  const n = e.geoPointValue;
7608
- this.Tt(t, 45), t.dt(n.latitude || 0), t.dt(n.longitude || 0);
7608
+ this.Tt(t, 45), t.Et(n.latitude || 0), t.Et(n.longitude || 0);
7609
7609
  } else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Tt(t, Number.MAX_SAFE_INTEGER) : (this.gt(e.mapValue, t),
7610
7610
  this.Rt(t)) : "arrayValue" in e ? (this.yt(e.arrayValue, t), this.Rt(t)) : fail();
7611
7611
  }
@@ -7613,7 +7613,7 @@ class __PRIVATE_FirestoreIndexValueWriter {
7613
7613
  this.Tt(t, 25), this.wt(e, t);
7614
7614
  }
7615
7615
  wt(e, t) {
7616
- t.Et(e);
7616
+ t.dt(e);
7617
7617
  }
7618
7618
  gt(e, t) {
7619
7619
  const n = e.fields || {};
@@ -7632,13 +7632,13 @@ class __PRIVATE_FirestoreIndexValueWriter {
7632
7632
  }));
7633
7633
  }
7634
7634
  Tt(e, t) {
7635
- e.dt(t);
7635
+ e.Et(t);
7636
7636
  }
7637
7637
  Rt(e) {
7638
7638
  // While the SDK does not implement truncation, the truncation marker is
7639
7639
  // used to terminate all variable length values (which are strings, bytes,
7640
7640
  // references, arrays and maps).
7641
- e.dt(2);
7641
+ e.Et(2);
7642
7642
  }
7643
7643
  }
7644
7644
 
@@ -7825,10 +7825,10 @@ class __PRIVATE_AscendingIndexByteEncoder {
7825
7825
  Vt(e) {
7826
7826
  this.Wt.bt(e);
7827
7827
  }
7828
- Et(e) {
7828
+ dt(e) {
7829
7829
  this.Wt.xt(e);
7830
7830
  }
7831
- dt(e) {
7831
+ Et(e) {
7832
7832
  this.Wt.Nt(e);
7833
7833
  }
7834
7834
  It() {
@@ -7843,10 +7843,10 @@ class __PRIVATE_DescendingIndexByteEncoder {
7843
7843
  Vt(e) {
7844
7844
  this.Wt.vt(e);
7845
7845
  }
7846
- Et(e) {
7846
+ dt(e) {
7847
7847
  this.Wt.Ot(e);
7848
7848
  }
7849
- dt(e) {
7849
+ Et(e) {
7850
7850
  this.Wt.kt(e);
7851
7851
  }
7852
7852
  It() {
@@ -8363,7 +8363,7 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8363
8363
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8364
8364
  * See the License for the specific language governing permissions and
8365
8365
  * limitations under the License.
8366
- */ const Ee = new Uint8Array(0);
8366
+ */ const de = new Uint8Array(0);
8367
8367
 
8368
8368
  /**
8369
8369
  * A persisted implementation of IndexManager.
@@ -8577,7 +8577,7 @@ class __PRIVATE_IndexedDbIndexManager {
8577
8577
  // combined with the values from the query bounds.
8578
8578
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8579
8579
  for (let c = 0; c < _; ++c) {
8580
- const _ = t ? this.In(t[c / a]) : Ee, l = this.Tn(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8580
+ const _ = t ? this.In(t[c / a]) : de, l = this.Tn(e, _, n[c % a], r), h = this.En(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8581
8581
  /* inclusive= */ !0)));
8582
8582
  u.push(...this.createRange(l, h, P));
8583
8583
  }
@@ -8587,7 +8587,7 @@ class __PRIVATE_IndexedDbIndexManager {
8587
8587
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8588
8588
  return r ? i : i.Ht();
8589
8589
  }
8590
- /** Generates the upper bound for `arrayValue` and `directionalValue`. */ dn(e, t, n, r) {
8590
+ /** Generates the upper bound for `arrayValue` and `directionalValue`. */ En(e, t, n, r) {
8591
8591
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8592
8592
  return r ? i.Ht() : i;
8593
8593
  }
@@ -8635,7 +8635,7 @@ class __PRIVATE_IndexedDbIndexManager {
8635
8635
  * Returns the byte encoded form of the directional values in the field index.
8636
8636
  * Returns `null` if the document does not have all fields specified in the
8637
8637
  * index.
8638
- */ En(e, t) {
8638
+ */ dn(e, t) {
8639
8639
  const n = new __PRIVATE_IndexByteEncoder;
8640
8640
  for (const r of __PRIVATE_fieldIndexGetDirectionalSegments(e)) {
8641
8641
  const e = t.data.field(r.fieldPath);
@@ -8768,13 +8768,13 @@ class __PRIVATE_IndexedDbIndexManager {
8768
8768
  }
8769
8769
  /** Creates the index entries for the given document. */ pn(e, t) {
8770
8770
  let n = new SortedSet(__PRIVATE_indexEntryComparator);
8771
- const r = this.En(t, e);
8771
+ const r = this.dn(t, e);
8772
8772
  if (null == r) return n;
8773
8773
  const i = __PRIVATE_fieldIndexGetArraySegment(t);
8774
8774
  if (null != i) {
8775
8775
  const s = e.data.field(i.fieldPath);
8776
8776
  if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.In(i), r));
8777
- } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Ee, r));
8777
+ } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, de, r));
8778
8778
  return n;
8779
8779
  }
8780
8780
  /**
@@ -8849,7 +8849,7 @@ class __PRIVATE_IndexedDbIndexManager {
8849
8849
  // If we encounter two bounds that will create an unmatchable key range,
8850
8850
  // then we return an empty set of key ranges.
8851
8851
  if (this.bn(r[e], r[e + 1])) return [];
8852
- 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, [] ];
8852
+ 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, [] ];
8853
8853
  i.push(IDBKeyRange.bound(t, n));
8854
8854
  }
8855
8855
  return i;
@@ -10702,14 +10702,14 @@ class OverlayedDocument {
10702
10702
  const n = new __PRIVATE_DocReference(e, t);
10703
10703
  this.hr = this.hr.add(n), this.Ir = this.Ir.add(n);
10704
10704
  }
10705
- /** Add references to the given document keys for the given ID. */ dr(e, t) {
10705
+ /** Add references to the given document keys for the given ID. */ Er(e, t) {
10706
10706
  e.forEach((e => this.addReference(e, t)));
10707
10707
  }
10708
10708
  /**
10709
10709
  * Removes a reference to the given document key for the given
10710
10710
  * ID.
10711
10711
  */ removeReference(e, t) {
10712
- this.Er(new __PRIVATE_DocReference(e, t));
10712
+ this.dr(new __PRIVATE_DocReference(e, t));
10713
10713
  }
10714
10714
  Ar(e, t) {
10715
10715
  e.forEach((e => this.removeReference(e, t)));
@@ -10720,13 +10720,13 @@ class OverlayedDocument {
10720
10720
  */ Rr(e) {
10721
10721
  const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
10722
10722
  return this.Ir.forEachInRange([ n, r ], (e => {
10723
- this.Er(e), i.push(e.key);
10723
+ this.dr(e), i.push(e.key);
10724
10724
  })), i;
10725
10725
  }
10726
10726
  Vr() {
10727
- this.hr.forEach((e => this.Er(e)));
10727
+ this.hr.forEach((e => this.dr(e)));
10728
10728
  }
10729
- Er(e) {
10729
+ dr(e) {
10730
10730
  this.hr = this.hr.delete(e), this.Ir = this.Ir.delete(e);
10731
10731
  }
10732
10732
  mr(e) {
@@ -11128,7 +11128,7 @@ class __PRIVATE_MemoryRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuf
11128
11128
  return PersistencePromise.resolve(n);
11129
11129
  }
11130
11130
  addMatchingKeys(e, t, n) {
11131
- return this.Or.dr(t, n), PersistencePromise.resolve();
11131
+ return this.Or.Er(t, n), PersistencePromise.resolve();
11132
11132
  }
11133
11133
  removeMatchingKeys(e, t, n) {
11134
11134
  this.Or.Ar(t, n);
@@ -11747,7 +11747,7 @@ class __PRIVATE_IndexedDbPersistence {
11747
11747
  this.serializer = new __PRIVATE_LocalSerializer(_), this.Ti = new __PRIVATE_SimpleDb(this.Ii, this.ai, new __PRIVATE_SchemaConverter(this.serializer)),
11748
11748
  this.qr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
11749
11749
  this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
11750
- this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.di = this.window.localStorage : (this.di = null,
11750
+ this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ei = this.window.localStorage : (this.Ei = null,
11751
11751
  !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."));
11752
11752
  }
11753
11753
  /**
@@ -11758,7 +11758,7 @@ class __PRIVATE_IndexedDbPersistence {
11758
11758
  // NOTE: This is expected to fail sometimes (in the case of another tab
11759
11759
  // already having the persistence lock), so it's the first thing we should
11760
11760
  // do.
11761
- return this.Ei().then((() => {
11761
+ return this.di().then((() => {
11762
11762
  if (!this.isPrimary && !this.allowTabSynchronization)
11763
11763
  // Fail `start()` if `synchronizeTabs` is disabled and we cannot
11764
11764
  // obtain the primary lease.
@@ -11802,7 +11802,7 @@ class __PRIVATE_IndexedDbPersistence {
11802
11802
  // Schedule a primary lease refresh for immediate execution. The eventual
11803
11803
  // lease update will be propagated via `primaryStateListener`.
11804
11804
  this.si.enqueueAndForget((async () => {
11805
- this.started && await this.Ei();
11805
+ this.started && await this.di();
11806
11806
  })));
11807
11807
  }
11808
11808
  /**
@@ -11810,7 +11810,7 @@ class __PRIVATE_IndexedDbPersistence {
11810
11810
  * extend the primary lease for the local client. Asynchronously notifies the
11811
11811
  * primary state listener if the client either newly obtained or released its
11812
11812
  * primary lease.
11813
- */ Ei() {
11813
+ */ di() {
11814
11814
  return this.runTransaction("updateClientMetadataAndTryBecomePrimary", "readwrite", (e => __PRIVATE_clientMetadataStore(e).put({
11815
11815
  clientId: this.clientId,
11816
11816
  updateTimeMs: Date.now(),
@@ -11859,14 +11859,14 @@ class __PRIVATE_IndexedDbPersistence {
11859
11859
  // Ideally we'd delete the IndexedDb and LocalStorage zombie entries for
11860
11860
  // the client atomically, but we can't. So we opt to delete the IndexedDb
11861
11861
  // entries first to avoid potentially reviving a zombied client.
11862
- if (this.di) for (const t of e) this.di.removeItem(this.vi(t.clientId));
11862
+ if (this.Ei) for (const t of e) this.Ei.removeItem(this.vi(t.clientId));
11863
11863
  }
11864
11864
  }
11865
11865
  /**
11866
11866
  * Schedules a recurring timer to update the client metadata and to either
11867
11867
  * extend or acquire the primary lease if the client is eligible.
11868
11868
  */ Vi() {
11869
- this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.Ei().then((() => this.bi())).then((() => this.Vi()))));
11869
+ this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.di().then((() => this.bi())).then((() => this.Vi()))));
11870
11870
  }
11871
11871
  /** Checks whether `client` is the local client. */ wi(e) {
11872
11872
  return !!e && e.ownerId === this.clientId;
@@ -12025,7 +12025,7 @@ class __PRIVATE_IndexedDbPersistence {
12025
12025
  Ai() {
12026
12026
  null !== this.document && "function" == typeof this.document.addEventListener && (this.ci = () => {
12027
12027
  this.si.enqueueAndForget((() => (this.inForeground = "visible" === this.document.visibilityState,
12028
- this.Ei())));
12028
+ this.di())));
12029
12029
  }, this.document.addEventListener("visibilitychange", this.ci), this.inForeground = "visible" === this.document.visibilityState);
12030
12030
  }
12031
12031
  xi() {
@@ -12066,7 +12066,7 @@ class __PRIVATE_IndexedDbPersistence {
12066
12066
  */ Fi(e) {
12067
12067
  var t;
12068
12068
  try {
12069
- const n = null !== (null === (t = this.di) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12069
+ const n = null !== (null === (t = this.Ei) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12070
12070
  return __PRIVATE_logDebug("IndexedDbPersistence", `Client '${e}' ${n ? "is" : "is not"} zombied in LocalStorage`),
12071
12071
  n;
12072
12072
  } catch (e) {
@@ -12079,16 +12079,16 @@ class __PRIVATE_IndexedDbPersistence {
12079
12079
  * Record client as zombied (a client that had its tab closed). Zombied
12080
12080
  * clients are ignored during primary tab selection.
12081
12081
  */ Mi() {
12082
- if (this.di) try {
12083
- this.di.setItem(this.vi(this.clientId), String(Date.now()));
12082
+ if (this.Ei) try {
12083
+ this.Ei.setItem(this.vi(this.clientId), String(Date.now()));
12084
12084
  } catch (e) {
12085
12085
  // Gracefully handle if LocalStorage isn't available / working.
12086
12086
  __PRIVATE_logError("Failed to set zombie client id.", e);
12087
12087
  }
12088
12088
  }
12089
12089
  /** Removes the zombied client entry if it exists. */ Ni() {
12090
- if (this.di) try {
12091
- this.di.removeItem(this.vi(this.clientId));
12090
+ if (this.Ei) try {
12091
+ this.Ei.removeItem(this.vi(this.clientId));
12092
12092
  } catch (e) {
12093
12093
  // Ignore
12094
12094
  }
@@ -12902,7 +12902,7 @@ class __PRIVATE_MutationMetadata {
12902
12902
  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}`),
12903
12903
  null);
12904
12904
  }
12905
- ds() {
12905
+ Es() {
12906
12906
  const e = {
12907
12907
  state: this.state,
12908
12908
  updateTimeMs: Date.now()
@@ -12933,7 +12933,7 @@ class __PRIVATE_QueryTargetMetadata {
12933
12933
  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}`),
12934
12934
  null);
12935
12935
  }
12936
- ds() {
12936
+ Es() {
12937
12937
  const e = {
12938
12938
  state: this.state,
12939
12939
  updateTimeMs: Date.now()
@@ -12998,7 +12998,7 @@ class __PRIVATE_LocalClientState {
12998
12998
  constructor() {
12999
12999
  this.activeTargetIds = __PRIVATE_targetIdSet();
13000
13000
  }
13001
- Es(e) {
13001
+ ds(e) {
13002
13002
  this.activeTargetIds = this.activeTargetIds.add(e);
13003
13003
  }
13004
13004
  As(e) {
@@ -13007,7 +13007,7 @@ class __PRIVATE_LocalClientState {
13007
13007
  /**
13008
13008
  * Converts this entry into a JSON-encoded format we can use for WebStorage.
13009
13009
  * Does not encode `clientId` as it is part of the key in WebStorage.
13010
- */ ds() {
13010
+ */ Es() {
13011
13011
  const e = {
13012
13012
  activeTargetIds: this.activeTargetIds.toArray(),
13013
13013
  updateTimeMs: Date.now()
@@ -13142,7 +13142,7 @@ class __PRIVATE_LocalClientState {
13142
13142
  r && (t = r.state);
13143
13143
  }
13144
13144
  }
13145
- return this.Ls.Es(e), this.Fs(), t;
13145
+ return this.Ls.ds(e), this.Fs(), t;
13146
13146
  }
13147
13147
  removeLocalQueryTarget(e) {
13148
13148
  this.Ls.As(e), this.Fs();
@@ -13244,11 +13244,11 @@ class __PRIVATE_LocalClientState {
13244
13244
  return this.gs.get(this.Rs);
13245
13245
  }
13246
13246
  Fs() {
13247
- this.setItem(this.ys, this.Ls.ds());
13247
+ this.setItem(this.ys, this.Ls.Es());
13248
13248
  }
13249
13249
  Ns(e, t, n) {
13250
13250
  const r = new __PRIVATE_MutationMetadata(this.currentUser, e, t, n), i = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
13251
- this.setItem(i, r.ds());
13251
+ this.setItem(i, r.Es());
13252
13252
  }
13253
13253
  Bs(e) {
13254
13254
  const t = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
@@ -13263,7 +13263,7 @@ class __PRIVATE_LocalClientState {
13263
13263
  }
13264
13264
  ks(e, t, n) {
13265
13265
  const r = createWebStorageQueryTargetMetadataKey(this.persistenceKey, e), i = new __PRIVATE_QueryTargetMetadata(e, t, n);
13266
- this.setItem(r, i.ds());
13266
+ this.setItem(r, i.Es());
13267
13267
  }
13268
13268
  Qs(e) {
13269
13269
  const t = JSON.stringify(Array.from(e));
@@ -13351,7 +13351,7 @@ class __PRIVATE_MemorySharedClientState {
13351
13351
  // No op.
13352
13352
  }
13353
13353
  addLocalQueryTarget(e) {
13354
- return this.eo.Es(e), this.no[e] || "not-current";
13354
+ return this.eo.ds(e), this.no[e] || "not-current";
13355
13355
  }
13356
13356
  updateQueryState(e, t, n) {
13357
13357
  this.no[e] = t;
@@ -14358,7 +14358,7 @@ class __PRIVATE_PersistentStream {
14358
14358
  * Sends an initial streamToken to the server, performing the handshake
14359
14359
  * required to make the StreamingWrite RPC work. Subsequent
14360
14360
  * calls should wait until onHandshakeComplete was called.
14361
- */ d_() {
14361
+ */ E_() {
14362
14362
  // TODO(dimond): Support stream resumption. We intentionally do not set the
14363
14363
  // stream token on the handshake, ignoring any stream token we might have.
14364
14364
  const e = {};
@@ -14401,10 +14401,10 @@ class __PRIVATE_PersistentStream {
14401
14401
  class __PRIVATE_DatastoreImpl extends class Datastore {} {
14402
14402
  constructor(e, t, n, r) {
14403
14403
  super(), this.authCredentials = e, this.appCheckCredentials = t, this.connection = n,
14404
- this.serializer = r, this.E_ = !1;
14404
+ this.serializer = r, this.d_ = !1;
14405
14405
  }
14406
14406
  A_() {
14407
- if (this.E_) throw new FirestoreError(v.FAILED_PRECONDITION, "The client has already been terminated.");
14407
+ if (this.d_) throw new FirestoreError(v.FAILED_PRECONDITION, "The client has already been terminated.");
14408
14408
  }
14409
14409
  /** Invokes the provided RPC with auth and AppCheck tokens. */ wo(e, t, n) {
14410
14410
  return this.A_(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([r, i]) => this.connection.wo(e, t, n, r, i))).catch((e => {
@@ -14419,7 +14419,7 @@ class __PRIVATE_DatastoreImpl extends class Datastore {} {
14419
14419
  }));
14420
14420
  }
14421
14421
  terminate() {
14422
- this.E_ = !0;
14422
+ this.d_ = !0;
14423
14423
  }
14424
14424
  }
14425
14425
 
@@ -14879,7 +14879,7 @@ function __PRIVATE_startWriteStream(e) {
14879
14879
  }
14880
14880
 
14881
14881
  async function __PRIVATE_onWriteStreamOpen(e) {
14882
- __PRIVATE_ensureWriteStream(e).d_();
14882
+ __PRIVATE_ensureWriteStream(e).E_();
14883
14883
  }
14884
14884
 
14885
14885
  async function __PRIVATE_onWriteHandshakeComplete(e) {
@@ -15806,7 +15806,7 @@ class __PRIVATE_RemovedLimboDocument {
15806
15806
  }
15807
15807
  /**
15808
15808
  * Returns whether the doc for the given key should be in limbo.
15809
- */ da(e) {
15809
+ */ Ea(e) {
15810
15810
  // If the remote end says it's part of this query, it's not in limbo.
15811
15811
  return !this.ia.has(e) && (
15812
15812
  // The local store doesn't think it's a result, so it shouldn't be in limbo.
@@ -15826,7 +15826,7 @@ class __PRIVATE_RemovedLimboDocument {
15826
15826
  // updating many documents.
15827
15827
  const e = this.oa;
15828
15828
  this.oa = __PRIVATE_documentKeySet(), this.aa.forEach((e => {
15829
- this.da(e.key) && (this.oa = this.oa.add(e.key));
15829
+ this.Ea(e.key) && (this.oa = this.oa.add(e.key));
15830
15830
  }));
15831
15831
  // Diff the new limbo docs with the old limbo docs.
15832
15832
  const t = [];
@@ -15856,7 +15856,7 @@ class __PRIVATE_RemovedLimboDocument {
15856
15856
  * @returns The ViewChange that resulted from this synchronization.
15857
15857
  */
15858
15858
  // PORTING NOTE: Multi-tab only.
15859
- Ea(e) {
15859
+ da(e) {
15860
15860
  this.ia = e.ls, this.oa = __PRIVATE_documentKeySet();
15861
15861
  const t = this.ca(e.documents);
15862
15862
  return this.applyChanges(t, /*updateLimboDocuments=*/ !0);
@@ -16411,7 +16411,7 @@ function __PRIVATE_syncEngineGetRemoteKeysForTarget(e, t) {
16411
16411
  * from persistence.
16412
16412
  */ async function __PRIVATE_synchronizeViewAndComputeSnapshot(e, t) {
16413
16413
  const n = __PRIVATE_debugCast(e), r = await __PRIVATE_localStoreExecuteQuery(n.localStore, t.query,
16414
- /* usePreviousResults= */ !0), i = t.view.Ea(r);
16414
+ /* usePreviousResults= */ !0), i = t.view.da(r);
16415
16415
  return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.Ta),
16416
16416
  i;
16417
16417
  }
@@ -18626,7 +18626,7 @@ class LoadBundleTask {
18626
18626
  const e = r.getImmediate({
18627
18627
  identifier: n
18628
18628
  }), i = r.getOptions(n);
18629
- if (d(i, t)) return e;
18629
+ if (E(i, t)) return e;
18630
18630
  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.");
18631
18631
  }
18632
18632
  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");
@@ -18642,7 +18642,7 @@ function getFirestore(t, n) {
18642
18642
  identifier: i
18643
18643
  });
18644
18644
  if (!s._initialized) {
18645
- const e = E("firestore");
18645
+ const e = d("firestore");
18646
18646
  e && connectFirestoreEmulator(s, ...e);
18647
18647
  }
18648
18648
  return s;
@@ -19280,11 +19280,11 @@ function __PRIVATE_isWrite(e) {
19280
19280
  /** Returns a new context with the specified settings overwritten. */ Tu(e) {
19281
19281
  return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
19282
19282
  }
19283
- du(e) {
19283
+ Eu(e) {
19284
19284
  var t;
19285
19285
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19286
19286
  path: n,
19287
- Eu: !1
19287
+ du: !1
19288
19288
  });
19289
19289
  return r.Au(e), r;
19290
19290
  }
@@ -19292,7 +19292,7 @@ function __PRIVATE_isWrite(e) {
19292
19292
  var t;
19293
19293
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19294
19294
  path: n,
19295
- Eu: !1
19295
+ du: !1
19296
19296
  });
19297
19297
  return r.Pu(), r;
19298
19298
  }
@@ -19301,7 +19301,7 @@ function __PRIVATE_isWrite(e) {
19301
19301
  // undefined.
19302
19302
  return this.Tu({
19303
19303
  path: void 0,
19304
- Eu: !0
19304
+ du: !0
19305
19305
  });
19306
19306
  }
19307
19307
  mu(e) {
@@ -19334,7 +19334,7 @@ function __PRIVATE_isWrite(e) {
19334
19334
  methodName: t,
19335
19335
  gu: n,
19336
19336
  path: FieldPath$1.emptyPath(),
19337
- Eu: !1,
19337
+ du: !1,
19338
19338
  fu: r
19339
19339
  }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);
19340
19340
  }
@@ -19394,7 +19394,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19394
19394
  Iu: 3 /* UserDataSource.Argument */ ,
19395
19395
  gu: t.settings.gu,
19396
19396
  methodName: e._methodName,
19397
- Eu: n
19397
+ du: n
19398
19398
  }, t.databaseId, t.serializer, t.ignoreUndefinedProperties);
19399
19399
  }
19400
19400
 
@@ -19559,7 +19559,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19559
19559
  // the set of values to be included for the IN query) that may directly
19560
19560
  // contain additional arrays (each representing an individual field
19561
19561
  // value), so we disable this validation.
19562
- if (t.settings.Eu && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19562
+ if (t.settings.du && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19563
19563
  return function __PRIVATE_parseArray(e, t) {
19564
19564
  const n = [];
19565
19565
  let r = 0;
@@ -19638,7 +19638,7 @@ function __PRIVATE_parseObject(e, t) {
19638
19638
  // If we encounter an empty object, we explicitly add it to the update
19639
19639
  // mask to ensure that the server creates a map entry.
19640
19640
  t.path && t.path.length > 0 && t.fieldMask.push(t.path) : forEach(e, ((e, r) => {
19641
- const i = __PRIVATE_parseData(r, t.du(e));
19641
+ const i = __PRIVATE_parseData(r, t.Eu(e));
19642
19642
  null != i && (n[e] = i);
19643
19643
  })), {
19644
19644
  mapValue: {
@@ -20505,7 +20505,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
20505
20505
  * @returns `true` if the objects are "equal", as defined above, or `false`
20506
20506
  * otherwise.
20507
20507
  */ function aggregateQuerySnapshotEqual(e, t) {
20508
- return queryEqual(e.query, t.query) && d(e.data(), t.data());
20508
+ return queryEqual(e.query, t.query) && E(e.data(), t.data());
20509
20509
  }
20510
20510
 
20511
20511
  /**
@@ -21809,9 +21809,9 @@ let De = null;
21809
21809
  return r = Object.assign({
21810
21810
  useFetchStreams: t
21811
21811
  }, r), s._setSettings(r), s;
21812
- }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.3.0-canary.bd073b26a", e),
21812
+ }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.3.0-canary.f002ef36a", e),
21813
21813
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21814
- r(b, "4.3.0-canary.bd073b26a", "esm2017");
21814
+ r(b, "4.3.0-canary.f002ef36a", "esm2017");
21815
21815
  }("rn", /* useFetchStreams= */ !1);
21816
21816
 
21817
21817
  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 };
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.5.0-canary.bd073b26a";
66
+ let d = "10.5.0-canary.f002ef36a";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7195,7 +7195,7 @@ class Transaction {
7195
7195
  return r && i._setSettings(r), i;
7196
7196
  }), "PUBLIC").setMultipleInstances(!0)),
7197
7197
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7198
- registerVersion("firestore-lite", "4.3.0-canary.bd073b26a", ""), registerVersion("firestore-lite", "4.3.0-canary.bd073b26a", "esm2017");
7198
+ registerVersion("firestore-lite", "4.3.0-canary.f002ef36a", ""), registerVersion("firestore-lite", "4.3.0-canary.f002ef36a", "esm2017");
7199
7199
  }();
7200
7200
 
7201
7201
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
@@ -67,7 +67,7 @@ v.MOCK_USER = new v("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- var g = "10.5.0-canary.bd073b26a", w = new l("@firebase/firestore");
70
+ var g = "10.5.0-canary.f002ef36a", w = new l("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -6689,7 +6689,7 @@ hi = "".concat(i, "_lite"), g = hi, o(new c("firestore/lite", (function(t, e) {
6689
6689
  return r && o._setSettings(r), o;
6690
6690
  }), "PUBLIC").setMultipleInstances(!0)),
6691
6691
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6692
- a("firestore-lite", "4.3.0-canary.bd073b26a", ""), a("firestore-lite", "4.3.0-canary.bd073b26a", "esm5");
6692
+ a("firestore-lite", "4.3.0-canary.f002ef36a", ""), a("firestore-lite", "4.3.0-canary.f002ef36a", "esm5");
6693
6693
 
6694
6694
  export { En as AggregateField, Sn as AggregateQuerySnapshot, Dn as Bytes, An as CollectionReference, In as DocumentReference, lr as DocumentSnapshot, Rn as FieldPath, xn as FieldValue, gn as Firestore, B as FirestoreError, Cn as GeoPoint, kn as Query, br as QueryCompositeFilterConstraint, mr as QueryConstraint, fr as QueryDocumentSnapshot, Or as QueryEndAtConstraint, gr as QueryFieldFilterConstraint, kr as QueryLimitConstraint, Er as QueryOrderByConstraint, hr as QuerySnapshot, Pr as QueryStartAtConstraint, Dt as Timestamp, yi as Transaction, oi as WriteBatch, Qr as addDoc, Zr as aggregateFieldEqual, $r as aggregateQuerySnapshotEqual, Tr as and, ri as arrayRemove, ni as arrayUnion, Jr as average, Pn as collection, Vn as collectionGroup, _n as connectFirestoreEmulator, Xr as count, Gr as deleteDoc, ti as deleteField, Fn as doc, qn as documentId, Dr as endAt, Nr as endBefore, Yr as getAggregate, Wr as getCount, Ur as getDoc, Br as getDocs, bn as getFirestore, ii as increment, wn as initializeFirestore, Ir as limit, Ar as limitToLast, _r as or, Sr as orderBy, vr as query, Nn as queryEqual, On as refEqual, mi as runTransaction, ei as serverTimestamp, zr as setDoc, b as setLogLevel, pr as snapshotEqual, Fr as startAfter, Vr as startAt, Hr as sum, Tn as terminate, Kr as updateDoc, wr as where, ui as writeBatch };
6695
6695
  //# sourceMappingURL=index.browser.esm5.js.map
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.5.0-canary.bd073b26a";
66
+ let d = "10.5.0-canary.f002ef36a";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7195,7 +7195,7 @@ class Transaction {
7195
7195
  return r && i._setSettings(r), i;
7196
7196
  }), "PUBLIC").setMultipleInstances(!0)),
7197
7197
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7198
- registerVersion("firestore-lite", "4.3.0-canary.bd073b26a", ""), registerVersion("firestore-lite", "4.3.0-canary.bd073b26a", "cjs2017");
7198
+ registerVersion("firestore-lite", "4.3.0-canary.f002ef36a", ""), registerVersion("firestore-lite", "4.3.0-canary.f002ef36a", "cjs2017");
7199
7199
  }();
7200
7200
 
7201
7201
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };