@firebase/firestore 4.5.0-canary.9ca1a4e4f → 4.5.0-canary.c6ecac8ac

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.
Files changed (36) hide show
  1. package/dist/firestore/src/local/indexeddb_schema.d.ts +2 -1
  2. package/dist/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  3. package/dist/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  4. package/dist/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  5. package/dist/index.cjs.js +134 -126
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.esm2017.js +134 -126
  8. package/dist/index.esm2017.js.map +1 -1
  9. package/dist/index.esm5.js +2164 -2157
  10. package/dist/index.esm5.js.map +1 -1
  11. package/dist/index.node.cjs.js +25 -10
  12. package/dist/index.node.cjs.js.map +1 -1
  13. package/dist/index.node.mjs +25 -10
  14. package/dist/index.node.mjs.map +1 -1
  15. package/dist/index.rn.js +134 -126
  16. package/dist/index.rn.js.map +1 -1
  17. package/dist/lite/firestore/src/local/indexeddb_schema.d.ts +2 -1
  18. package/dist/lite/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  19. package/dist/lite/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  20. package/dist/lite/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  21. package/dist/lite/index.browser.esm2017.js +2 -2
  22. package/dist/lite/index.browser.esm5.js +2 -2
  23. package/dist/lite/index.cjs.js +2 -2
  24. package/dist/lite/index.node.cjs.js +2 -2
  25. package/dist/lite/index.node.mjs +2 -2
  26. package/dist/lite/index.rn.esm2017.js +2 -2
  27. package/dist/lite/packages/firestore/src/local/indexeddb_schema.d.ts +2 -1
  28. package/dist/lite/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  29. package/dist/lite/packages/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  30. package/dist/lite/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  31. package/dist/packages/firestore/dist/index.esm2017.d.ts +2 -2
  32. package/dist/packages/firestore/src/local/indexeddb_schema.d.ts +2 -1
  33. package/dist/packages/firestore/src/local/indexeddb_sentinels.d.ts +1 -0
  34. package/dist/packages/firestore/test/unit/index/firestore_index_value_writer.test.d.ts +1 -0
  35. package/dist/packages/firestore/test/unit/index/ordered_code_writer.test.d.ts +1 -1
  36. package/package.json +9 -9
package/dist/index.cjs.js CHANGED
@@ -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 S = "10.9.0-canary.9ca1a4e4f";
73
+ let S = "10.9.0-canary.c6ecac8ac";
74
74
 
75
75
  /**
76
76
  * @license
@@ -2305,7 +2305,7 @@ function __PRIVATE_newDbDocumentMutationPrefixForPath(e, t) {
2305
2305
  * there is no useful information to store as the value. The raw (unencoded)
2306
2306
  * path cannot be stored because IndexedDb doesn't store prototype
2307
2307
  * information.
2308
- */ const x = {}, O = [ "prefixPath", "collectionGroup", "readTime", "documentId" ], N = [ "prefixPath", "collectionGroup", "documentId" ], L = [ "collectionGroup", "readTime", "prefixPath", "documentId" ], B = [ "canonicalId", "targetId" ], k = [ "targetId", "path" ], q = [ "path", "targetId" ], Q = [ "collectionId", "parent" ], K = [ "indexId", "uid" ], $ = [ "uid", "sequenceNumber" ], U = [ "indexId", "uid", "arrayValue", "directionalValue", "orderedDocumentKey", "documentKey" ], W = [ "indexId", "uid", "orderedDocumentKey" ], G = [ "userId", "collectionPath", "documentId" ], z = [ "userId", "collectionPath", "largestBatchId" ], j = [ "userId", "collectionGroup", "largestBatchId" ], H = [ ...[ ...[ ...[ ...[ "mutationQueues", "mutations", "documentMutations", "remoteDocuments", "targets", "owner", "targetGlobal", "targetDocuments" ], "clientMetadata" ], "remoteDocumentGlobal" ], "collectionParents" ], "bundles", "namedQueries" ], J = [ ...H, "documentOverlays" ], Y = [ "mutationQueues", "mutations", "documentMutations", "remoteDocumentsV14", "targets", "owner", "targetGlobal", "targetDocuments", "clientMetadata", "remoteDocumentGlobal", "collectionParents", "bundles", "namedQueries", "documentOverlays" ], Z = Y, X = [ ...Z, "indexConfiguration", "indexState", "indexEntries" ];
2308
+ */ const x = {}, O = [ "prefixPath", "collectionGroup", "readTime", "documentId" ], N = [ "prefixPath", "collectionGroup", "documentId" ], L = [ "collectionGroup", "readTime", "prefixPath", "documentId" ], B = [ "canonicalId", "targetId" ], k = [ "targetId", "path" ], q = [ "path", "targetId" ], Q = [ "collectionId", "parent" ], K = [ "indexId", "uid" ], $ = [ "uid", "sequenceNumber" ], U = [ "indexId", "uid", "arrayValue", "directionalValue", "orderedDocumentKey", "documentKey" ], W = [ "indexId", "uid", "orderedDocumentKey" ], G = [ "userId", "collectionPath", "documentId" ], z = [ "userId", "collectionPath", "largestBatchId" ], j = [ "userId", "collectionGroup", "largestBatchId" ], H = [ ...[ ...[ ...[ ...[ "mutationQueues", "mutations", "documentMutations", "remoteDocuments", "targets", "owner", "targetGlobal", "targetDocuments" ], "clientMetadata" ], "remoteDocumentGlobal" ], "collectionParents" ], "bundles", "namedQueries" ], J = [ ...H, "documentOverlays" ], Y = [ "mutationQueues", "mutations", "documentMutations", "remoteDocumentsV14", "targets", "owner", "targetGlobal", "targetDocuments", "clientMetadata", "remoteDocumentGlobal", "collectionParents", "bundles", "namedQueries", "documentOverlays" ], Z = Y, X = [ ...Z, "indexConfiguration", "indexState", "indexEntries" ], ee = X;
2309
2309
 
2310
2310
  /**
2311
2311
  * @license
@@ -3062,7 +3062,7 @@ function __PRIVATE_isBase64Available() {
3062
3062
 
3063
3063
  ByteString.EMPTY_BYTE_STRING = new ByteString("");
3064
3064
 
3065
- const ee = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
3065
+ const te = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
3066
3066
 
3067
3067
  /**
3068
3068
  * Converts the possible Proto values for a timestamp value into a "seconds and
@@ -3076,7 +3076,7 @@ const ee = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
3076
3076
  // (millis), so we do some custom parsing here.
3077
3077
  // Parse the nanos right out of the string.
3078
3078
  let t = 0;
3079
- const n = ee.exec(e);
3079
+ const n = te.exec(e);
3080
3080
  if (__PRIVATE_hardAssert(!!n), n[1]) {
3081
3081
  // Pad the fraction out to 9 digits (nanos).
3082
3082
  let e = n[1];
@@ -3243,7 +3243,7 @@ class DatabaseId {
3243
3243
  * See the License for the specific language governing permissions and
3244
3244
  * limitations under the License.
3245
3245
  */
3246
- const te = {
3246
+ const ne = {
3247
3247
  mapValue: {
3248
3248
  fields: {
3249
3249
  __type__: {
@@ -3251,7 +3251,7 @@ const te = {
3251
3251
  }
3252
3252
  }
3253
3253
  }
3254
- }, ne = {
3254
+ }, re = {
3255
3255
  nullValue: "NULL_VALUE"
3256
3256
  };
3257
3257
 
@@ -3395,9 +3395,9 @@ function __PRIVATE_valueCompare(e, t) {
3395
3395
 
3396
3396
  case 10 /* TypeOrder.ObjectValue */ :
3397
3397
  return function __PRIVATE_compareMaps(e, t) {
3398
- if (e === te.mapValue && t === te.mapValue) return 0;
3399
- if (e === te.mapValue) return 1;
3400
- if (t === te.mapValue) return -1;
3398
+ if (e === ne.mapValue && t === ne.mapValue) return 0;
3399
+ if (e === ne.mapValue) return 1;
3400
+ if (t === ne.mapValue) return -1;
3401
3401
  const n = e.fields || {}, r = Object.keys(n), i = t.fields || {}, s = Object.keys(i);
3402
3402
  // Even though MapValues are likely sorted correctly based on their insertion
3403
3403
  // order (e.g. when received from the backend), local modifications can bring
@@ -3573,7 +3573,7 @@ function isArray(e) {
3573
3573
  }
3574
3574
 
3575
3575
  /** Returns the lowest value for the given value type (inclusive). */ function __PRIVATE_valuesGetLowerBound(e) {
3576
- return "nullValue" in e ? ne : "booleanValue" in e ? {
3576
+ return "nullValue" in e ? re : "booleanValue" in e ? {
3577
3577
  booleanValue: !1
3578
3578
  } : "integerValue" in e || "doubleValue" in e ? {
3579
3579
  doubleValue: NaN
@@ -3619,7 +3619,7 @@ function isArray(e) {
3619
3619
  arrayValue: {}
3620
3620
  } : "arrayValue" in e ? {
3621
3621
  mapValue: {}
3622
- } : "mapValue" in e ? te : fail();
3622
+ } : "mapValue" in e ? ne : fail();
3623
3623
  }
3624
3624
 
3625
3625
  function __PRIVATE_lowerBoundCompare(e, t) {
@@ -4307,10 +4307,10 @@ function __PRIVATE_targetIsDocumentTarget(e) {
4307
4307
  * the provided `fieldPath` (or the upper bound for an descending segment).
4308
4308
  */
4309
4309
  function __PRIVATE_targetGetAscendingBound(e, t, n) {
4310
- let r = ne, i = !0;
4310
+ let r = re, i = !0;
4311
4311
  // Process all filters to find a value for the current field segment
4312
4312
  for (const n of __PRIVATE_targetGetFieldFiltersForPath(e, t)) {
4313
- let e = ne, t = !0;
4313
+ let e = re, t = !0;
4314
4314
  switch (n.op) {
4315
4315
  case "<" /* Operator.LESS_THAN */ :
4316
4316
  case "<=" /* Operator.LESS_THAN_OR_EQUAL */ :
@@ -4329,7 +4329,7 @@ function __PRIVATE_targetGetAscendingBound(e, t, n) {
4329
4329
 
4330
4330
  case "!=" /* Operator.NOT_EQUAL */ :
4331
4331
  case "not-in" /* Operator.NOT_IN */ :
4332
- e = ne;
4332
+ e = re;
4333
4333
  // Remaining filters cannot be used as lower bounds.
4334
4334
  }
4335
4335
  __PRIVATE_lowerBoundCompare({
@@ -4365,10 +4365,10 @@ function __PRIVATE_targetGetAscendingBound(e, t, n) {
4365
4365
  * Returns the value to use as the upper bound for ascending index segment at
4366
4366
  * the provided `fieldPath` (or the lower bound for a descending segment).
4367
4367
  */ function __PRIVATE_targetGetDescendingBound(e, t, n) {
4368
- let r = te, i = !0;
4368
+ let r = ne, i = !0;
4369
4369
  // Process all filters to find a value for the current field segment
4370
4370
  for (const n of __PRIVATE_targetGetFieldFiltersForPath(e, t)) {
4371
- let e = te, t = !0;
4371
+ let e = ne, t = !0;
4372
4372
  switch (n.op) {
4373
4373
  case ">=" /* Operator.GREATER_THAN_OR_EQUAL */ :
4374
4374
  case ">" /* Operator.GREATER_THAN */ :
@@ -4387,7 +4387,7 @@ function __PRIVATE_targetGetAscendingBound(e, t, n) {
4387
4387
 
4388
4388
  case "!=" /* Operator.NOT_EQUAL */ :
4389
4389
  case "not-in" /* Operator.NOT_IN */ :
4390
- e = te;
4390
+ e = ne;
4391
4391
  // Remaining filters cannot be used as upper bounds.
4392
4392
  }
4393
4393
  __PRIVATE_upperBoundCompare({
@@ -4764,22 +4764,22 @@ function __PRIVATE_compareDocs(e, t, n) {
4764
4764
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4765
4765
  * See the License for the specific language governing permissions and
4766
4766
  * limitations under the License.
4767
- */ const re = new SortedMap(DocumentKey.comparator);
4767
+ */ const ie = new SortedMap(DocumentKey.comparator);
4768
4768
 
4769
4769
  function __PRIVATE_mutableDocumentMap() {
4770
- return re;
4770
+ return ie;
4771
4771
  }
4772
4772
 
4773
- const ie = new SortedMap(DocumentKey.comparator);
4773
+ const se = new SortedMap(DocumentKey.comparator);
4774
4774
 
4775
4775
  function documentMap(...e) {
4776
- let t = ie;
4776
+ let t = se;
4777
4777
  for (const n of e) t = t.insert(n.key, n);
4778
4778
  return t;
4779
4779
  }
4780
4780
 
4781
4781
  function __PRIVATE_convertOverlayedDocumentMapToDocumentMap(e) {
4782
- let t = ie;
4782
+ let t = se;
4783
4783
  return e.forEach(((e, n) => t = t.insert(e, n.overlayedDocument))), t;
4784
4784
  }
4785
4785
 
@@ -4795,20 +4795,20 @@ function __PRIVATE_newDocumentKeyMap() {
4795
4795
  return new ObjectMap((e => e.toString()), ((e, t) => e.isEqual(t)));
4796
4796
  }
4797
4797
 
4798
- const se = new SortedMap(DocumentKey.comparator);
4798
+ const oe = new SortedMap(DocumentKey.comparator);
4799
4799
 
4800
- const oe = new SortedSet(DocumentKey.comparator);
4800
+ const _e = new SortedSet(DocumentKey.comparator);
4801
4801
 
4802
4802
  function __PRIVATE_documentKeySet(...e) {
4803
- let t = oe;
4803
+ let t = _e;
4804
4804
  for (const n of e) t = t.add(n);
4805
4805
  return t;
4806
4806
  }
4807
4807
 
4808
- const _e = new SortedSet(__PRIVATE_primitiveComparator);
4808
+ const ae = new SortedSet(__PRIVATE_primitiveComparator);
4809
4809
 
4810
4810
  function __PRIVATE_targetIdSet() {
4811
- return _e;
4811
+ return ae;
4812
4812
  }
4813
4813
 
4814
4814
  /**
@@ -5499,7 +5499,7 @@ class __PRIVATE_VerifyMutation extends Mutation {
5499
5499
  */ static from(e, t, n) {
5500
5500
  __PRIVATE_hardAssert(e.mutations.length === n.length);
5501
5501
  let r = function __PRIVATE_documentVersionMap() {
5502
- return se;
5502
+ return oe;
5503
5503
  }();
5504
5504
  const i = e.mutations;
5505
5505
  for (let e = 0; e < i.length; e++) r = r.insert(i[e].key, n[e].version);
@@ -5613,7 +5613,7 @@ class __PRIVATE_VerifyMutation extends Mutation {
5613
5613
  * Important! The names of these identifiers matter because the string forms
5614
5614
  * are used for reverse lookups from the webchannel stream. Do NOT change the
5615
5615
  * names of these identifiers or change this into a const enum.
5616
- */ var ae, ue;
5616
+ */ var ue, ce;
5617
5617
 
5618
5618
  /**
5619
5619
  * Determines whether an error code represents a permanent error when received
@@ -5678,55 +5678,55 @@ function __PRIVATE_mapCodeFromRpcCode(e) {
5678
5678
  // to send invalid proto messages) we may get an error with no GRPC code.
5679
5679
  return __PRIVATE_logError("GRPC error has no .code"), D.UNKNOWN;
5680
5680
  switch (e) {
5681
- case ae.OK:
5681
+ case ue.OK:
5682
5682
  return D.OK;
5683
5683
 
5684
- case ae.CANCELLED:
5684
+ case ue.CANCELLED:
5685
5685
  return D.CANCELLED;
5686
5686
 
5687
- case ae.UNKNOWN:
5687
+ case ue.UNKNOWN:
5688
5688
  return D.UNKNOWN;
5689
5689
 
5690
- case ae.DEADLINE_EXCEEDED:
5690
+ case ue.DEADLINE_EXCEEDED:
5691
5691
  return D.DEADLINE_EXCEEDED;
5692
5692
 
5693
- case ae.RESOURCE_EXHAUSTED:
5693
+ case ue.RESOURCE_EXHAUSTED:
5694
5694
  return D.RESOURCE_EXHAUSTED;
5695
5695
 
5696
- case ae.INTERNAL:
5696
+ case ue.INTERNAL:
5697
5697
  return D.INTERNAL;
5698
5698
 
5699
- case ae.UNAVAILABLE:
5699
+ case ue.UNAVAILABLE:
5700
5700
  return D.UNAVAILABLE;
5701
5701
 
5702
- case ae.UNAUTHENTICATED:
5702
+ case ue.UNAUTHENTICATED:
5703
5703
  return D.UNAUTHENTICATED;
5704
5704
 
5705
- case ae.INVALID_ARGUMENT:
5705
+ case ue.INVALID_ARGUMENT:
5706
5706
  return D.INVALID_ARGUMENT;
5707
5707
 
5708
- case ae.NOT_FOUND:
5708
+ case ue.NOT_FOUND:
5709
5709
  return D.NOT_FOUND;
5710
5710
 
5711
- case ae.ALREADY_EXISTS:
5711
+ case ue.ALREADY_EXISTS:
5712
5712
  return D.ALREADY_EXISTS;
5713
5713
 
5714
- case ae.PERMISSION_DENIED:
5714
+ case ue.PERMISSION_DENIED:
5715
5715
  return D.PERMISSION_DENIED;
5716
5716
 
5717
- case ae.FAILED_PRECONDITION:
5717
+ case ue.FAILED_PRECONDITION:
5718
5718
  return D.FAILED_PRECONDITION;
5719
5719
 
5720
- case ae.ABORTED:
5720
+ case ue.ABORTED:
5721
5721
  return D.ABORTED;
5722
5722
 
5723
- case ae.OUT_OF_RANGE:
5723
+ case ue.OUT_OF_RANGE:
5724
5724
  return D.OUT_OF_RANGE;
5725
5725
 
5726
- case ae.UNIMPLEMENTED:
5726
+ case ue.UNIMPLEMENTED:
5727
5727
  return D.UNIMPLEMENTED;
5728
5728
 
5729
- case ae.DATA_LOSS:
5729
+ case ue.DATA_LOSS:
5730
5730
  return D.DATA_LOSS;
5731
5731
 
5732
5732
  default:
@@ -5741,14 +5741,14 @@ function __PRIVATE_mapCodeFromRpcCode(e) {
5741
5741
  * "UNKNOWN", etc.)
5742
5742
  * @returns The equivalent Code. Non-matching responses are mapped to
5743
5743
  * Code.UNKNOWN.
5744
- */ (ue = ae || (ae = {}))[ue.OK = 0] = "OK", ue[ue.CANCELLED = 1] = "CANCELLED",
5745
- ue[ue.UNKNOWN = 2] = "UNKNOWN", ue[ue.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT",
5746
- ue[ue.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", ue[ue.NOT_FOUND = 5] = "NOT_FOUND",
5747
- ue[ue.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", ue[ue.PERMISSION_DENIED = 7] = "PERMISSION_DENIED",
5748
- ue[ue.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", ue[ue.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED",
5749
- ue[ue.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", ue[ue.ABORTED = 10] = "ABORTED",
5750
- ue[ue.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", ue[ue.UNIMPLEMENTED = 12] = "UNIMPLEMENTED",
5751
- ue[ue.INTERNAL = 13] = "INTERNAL", ue[ue.UNAVAILABLE = 14] = "UNAVAILABLE", ue[ue.DATA_LOSS = 15] = "DATA_LOSS";
5744
+ */ (ce = ue || (ue = {}))[ce.OK = 0] = "OK", ce[ce.CANCELLED = 1] = "CANCELLED",
5745
+ ce[ce.UNKNOWN = 2] = "UNKNOWN", ce[ce.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT",
5746
+ ce[ce.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", ce[ce.NOT_FOUND = 5] = "NOT_FOUND",
5747
+ ce[ce.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", ce[ce.PERMISSION_DENIED = 7] = "PERMISSION_DENIED",
5748
+ ce[ce.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", ce[ce.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED",
5749
+ ce[ce.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", ce[ce.ABORTED = 10] = "ABORTED",
5750
+ ce[ce.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", ce[ce.UNIMPLEMENTED = 12] = "UNIMPLEMENTED",
5751
+ ce[ce.INTERNAL = 13] = "INTERNAL", ce[ce.UNAVAILABLE = 14] = "UNAVAILABLE", ce[ce.DATA_LOSS = 15] = "DATA_LOSS";
5752
5752
 
5753
5753
  /**
5754
5754
  * @license
@@ -5773,7 +5773,7 @@ ue[ue.INTERNAL = 13] = "INTERNAL", ue[ue.UNAVAILABLE = 14] = "UNAVAILABLE", ue[u
5773
5773
  * integration tests that have registered callbacks to be notified of events
5774
5774
  * that happen during the test execution.
5775
5775
  */
5776
- let ce = null;
5776
+ let le = null;
5777
5777
 
5778
5778
  /**
5779
5779
  * Sets the value of the `testingHooksSpi` object.
@@ -5821,7 +5821,7 @@ function __PRIVATE_newTextEncoder() {
5821
5821
  * See the License for the specific language governing permissions and
5822
5822
  * limitations under the License.
5823
5823
  */
5824
- const le = new webchannelWrapper.Integer([ 4294967295, 4294967295 ], 0);
5824
+ const he = new webchannelWrapper.Integer([ 4294967295, 4294967295 ], 0);
5825
5825
 
5826
5826
  // Hash a string using md5 hashing algorithm.
5827
5827
  function __PRIVATE_getMd5HashValue(e) {
@@ -5856,7 +5856,7 @@ class BloomFilter {
5856
5856
  // Calculate hashed value h(i) = h1 + (i * h2).
5857
5857
  let r = e.add(t.multiply(webchannelWrapper.Integer.fromNumber(n)));
5858
5858
  // Wrap if hash value overflow 64bit.
5859
- return 1 === r.compare(le) && (r = new webchannelWrapper.Integer([ r.getBits(0), r.getBits(1) ], 0)),
5859
+ return 1 === r.compare(he) && (r = new webchannelWrapper.Integer([ r.getBits(0), r.getBits(1) ], 0)),
5860
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.
@@ -6274,7 +6274,7 @@ class __PRIVATE_WatchChangeAggregator {
6274
6274
  const e = 2 /* BloomFilterApplicationStatus.FalsePositive */ === i ? "TargetPurposeExistenceFilterMismatchBloom" /* TargetPurpose.ExistenceFilterMismatchBloom */ : "TargetPurposeExistenceFilterMismatch" /* TargetPurpose.ExistenceFilterMismatch */;
6275
6275
  this.Ke = this.Ke.insert(t, e);
6276
6276
  }
6277
- null == ce || ce.tt(function __PRIVATE_createExistenceFilterMismatchInfoForTestingHooks(e, t, n, r, i) {
6277
+ null == le || le.tt(function __PRIVATE_createExistenceFilterMismatchInfoForTestingHooks(e, t, n, r, i) {
6278
6278
  var s, o, _, a, u, c;
6279
6279
  const l = {
6280
6280
  localCacheCount: e,
@@ -6490,13 +6490,13 @@ function __PRIVATE_snapshotChangesMap() {
6490
6490
  return new SortedMap(DocumentKey.comparator);
6491
6491
  }
6492
6492
 
6493
- const he = (() => {
6493
+ const Pe = (() => {
6494
6494
  const e = {
6495
6495
  asc: "ASCENDING",
6496
6496
  desc: "DESCENDING"
6497
6497
  };
6498
6498
  return e;
6499
- })(), Pe = (() => {
6499
+ })(), Ie = (() => {
6500
6500
  const e = {
6501
6501
  "<": "LESS_THAN",
6502
6502
  "<=": "LESS_THAN_OR_EQUAL",
@@ -6510,7 +6510,7 @@ const he = (() => {
6510
6510
  "array-contains-any": "ARRAY_CONTAINS_ANY"
6511
6511
  };
6512
6512
  return e;
6513
- })(), Ie = (() => {
6513
+ })(), Te = (() => {
6514
6514
  const e = {
6515
6515
  and: "AND",
6516
6516
  or: "OR"
@@ -7043,15 +7043,15 @@ function __PRIVATE_fromFilter(e) {
7043
7043
  }
7044
7044
 
7045
7045
  function __PRIVATE_toDirection(e) {
7046
- return he[e];
7046
+ return Pe[e];
7047
7047
  }
7048
7048
 
7049
7049
  function __PRIVATE_toOperatorName(e) {
7050
- return Pe[e];
7050
+ return Ie[e];
7051
7051
  }
7052
7052
 
7053
7053
  function __PRIVATE_toCompositeOperatorName(e) {
7054
- return Ie[e];
7054
+ return Te[e];
7055
7055
  }
7056
7056
 
7057
7057
  function __PRIVATE_toFieldPathReference(e) {
@@ -7609,8 +7609,9 @@ class __PRIVATE_FirestoreIndexValueWriter {
7609
7609
  // -0.0, 0 and 0.0 are all considered the same
7610
7610
  t.dt(0) : t.dt(n));
7611
7611
  } else if ("timestampValue" in e) {
7612
- const n = e.timestampValue;
7613
- this.Et(t, 20), "string" == typeof n ? t.At(n) : (t.At(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7612
+ let n = e.timestampValue;
7613
+ this.Et(t, 20), "string" == typeof n && (n = __PRIVATE_normalizeTimestamp(n)), t.At(`${n.seconds || ""}`),
7614
+ t.dt(n.nanos || 0);
7614
7615
  } else if ("stringValue" in e) this.Rt(e.stringValue, t), this.Vt(t); else if ("bytesValue" in e) this.Et(t, 30),
7615
7616
  t.ft(__PRIVATE_normalizeByteString(e.bytesValue)), this.Vt(t); else if ("referenceValue" in e) this.gt(e.referenceValue, t); else if ("geoPointValue" in e) {
7616
7617
  const n = e.geoPointValue;
@@ -8372,7 +8373,7 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8372
8373
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8373
8374
  * See the License for the specific language governing permissions and
8374
8375
  * limitations under the License.
8375
- */ const Te = new Uint8Array(0);
8376
+ */ const Ee = new Uint8Array(0);
8376
8377
 
8377
8378
  /**
8378
8379
  * A persisted implementation of IndexManager.
@@ -8586,7 +8587,7 @@ class __PRIVATE_IndexedDbIndexManager {
8586
8587
  // combined with the values from the query bounds.
8587
8588
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8588
8589
  for (let c = 0; c < _; ++c) {
8589
- const _ = t ? this.Tn(t[c / a]) : Te, l = this.En(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8590
+ const _ = t ? this.Tn(t[c / a]) : Ee, l = this.En(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.En(e, _, t,
8590
8591
  /* inclusive= */ !0)));
8591
8592
  u.push(...this.createRange(l, h, P));
8592
8593
  }
@@ -8783,7 +8784,7 @@ class __PRIVATE_IndexedDbIndexManager {
8783
8784
  if (null != i) {
8784
8785
  const s = e.data.field(i.fieldPath);
8785
8786
  if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.Tn(i), r));
8786
- } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Te, r));
8787
+ } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Ee, r));
8787
8788
  return n;
8788
8789
  }
8789
8790
  /**
@@ -8858,7 +8859,7 @@ class __PRIVATE_IndexedDbIndexManager {
8858
8859
  // If we encounter two bounds that will create an unmatchable key range,
8859
8860
  // then we return an empty set of key ranges.
8860
8861
  if (this.Dn(r[e], r[e + 1])) return [];
8861
- const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, Te, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, Te, [] ];
8862
+ 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, [] ];
8862
8863
  i.push(IDBKeyRange.bound(t, n));
8863
8864
  }
8864
8865
  return i;
@@ -8926,7 +8927,7 @@ function __PRIVATE_getMinOffsetFromFieldIndexes(e) {
8926
8927
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8927
8928
  * See the License for the specific language governing permissions and
8928
8929
  * limitations under the License.
8929
- */ const Ee = {
8930
+ */ const de = {
8930
8931
  didRun: !1,
8931
8932
  sequenceNumbersCollected: 0,
8932
8933
  targetsRemoved: 0,
@@ -9659,8 +9660,8 @@ class __PRIVATE_TargetIdGenerator {
9659
9660
  }
9660
9661
  collect(e, t) {
9661
9662
  return -1 === this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", "Garbage collection skipped; disabled"),
9662
- PersistencePromise.resolve(Ee)) : this.getCacheSize(e).next((n => n < this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", `Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),
9663
- Ee) : this.Yn(e, t)));
9663
+ PersistencePromise.resolve(de)) : this.getCacheSize(e).next((n => n < this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", `Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),
9664
+ de) : this.Yn(e, t)));
9664
9665
  }
9665
9666
  getCacheSize(e) {
9666
9667
  return this.jn.getCacheSize(e);
@@ -10255,6 +10256,7 @@ function __PRIVATE_dbCollectionGroupKey(e, t) {
10255
10256
  * document lookup via `getAll()`.
10256
10257
  * 14. Add overlays.
10257
10258
  * 15. Add indexing support.
10259
+ * 16. Parse timestamp strings before creating index entries.
10258
10260
  */
10259
10261
  /**
10260
10262
  * @license
@@ -11532,7 +11534,13 @@ class __PRIVATE_MemoryLruDelegate {
11532
11534
  }).createIndex("documentKeyIndex", W, {
11533
11535
  unique: !1
11534
11536
  });
11535
- }(e)))), s;
11537
+ }(e)))), n < 16 && r >= 16 && (
11538
+ // Clear the object stores to remove possibly corrupted index entries
11539
+ s = s.next((() => {
11540
+ t.objectStore("indexState").clear();
11541
+ })).next((() => {
11542
+ t.objectStore("indexEntries").clear();
11543
+ }))), s;
11536
11544
  }
11537
11545
  ei(e) {
11538
11546
  let t = 0;
@@ -11675,7 +11683,7 @@ function __PRIVATE_createQueryCache(e) {
11675
11683
  }), e.createObjectStore("targetGlobal");
11676
11684
  }
11677
11685
 
11678
- const de = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";
11686
+ const Ae = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";
11679
11687
 
11680
11688
  /**
11681
11689
  * Oldest acceptable age in milliseconds for client metadata before the client
@@ -11738,7 +11746,7 @@ class __PRIVATE_IndexedDbPersistence {
11738
11746
  * If set to true, forcefully obtains database access. Existing tabs will
11739
11747
  * no longer be able to access IndexedDB.
11740
11748
  */
11741
- u, c = 15) {
11749
+ u, c = 16) {
11742
11750
  if (this.allowTabSynchronization = e, this.persistenceKey = t, this.clientId = n,
11743
11751
  this.oi = i, this.window = s, this.document = o, this._i = a, this.ai = u, this.ui = c,
11744
11752
  this.kr = null, this.qr = !1, this.isPrimary = !1, this.networkEnabled = !0,
@@ -11771,7 +11779,7 @@ class __PRIVATE_IndexedDbPersistence {
11771
11779
  if (!this.isPrimary && !this.allowTabSynchronization)
11772
11780
  // Fail `start()` if `synchronizeTabs` is disabled and we cannot
11773
11781
  // obtain the primary lease.
11774
- throw new FirestoreError(D.FAILED_PRECONDITION, de);
11782
+ throw new FirestoreError(D.FAILED_PRECONDITION, Ae);
11775
11783
  return this.Ri(), this.Vi(), this.mi(), this.runTransaction("getHighestListenSequenceNumber", "readonly", (e => this.Qr.getHighestSequenceNumber(e)));
11776
11784
  })).then((e => {
11777
11785
  this.kr = new __PRIVATE_ListenSequence(e, this._i);
@@ -11913,7 +11921,7 @@ class __PRIVATE_IndexedDbPersistence {
11913
11921
  // settings is not supported.
11914
11922
  // TODO(b/114226234): Remove this check when `synchronizeTabs` can
11915
11923
  // no longer be turned off.
11916
- throw new FirestoreError(D.FAILED_PRECONDITION, de);
11924
+ throw new FirestoreError(D.FAILED_PRECONDITION, Ae);
11917
11925
  return !1;
11918
11926
  }
11919
11927
  }
@@ -11983,7 +11991,7 @@ class __PRIVATE_IndexedDbPersistence {
11983
11991
  const r = "readonly" === t ? "readonly" : "readwrite", i =
11984
11992
  /** Returns the object stores for the provided schema. */
11985
11993
  function __PRIVATE_getObjectStores(e) {
11986
- return 15 === e ? X : 14 === e ? Z : 13 === e ? Y : 12 === e ? J : 11 === e ? H : void fail();
11994
+ return 16 === e ? ee : 15 === e ? X : 14 === e ? Z : 13 === e ? Y : 12 === e ? J : 11 === e ? H : void fail();
11987
11995
  }(this.ui);
11988
11996
  let s;
11989
11997
  // Do all transactions as readwrite against all object stores, since we
@@ -12004,7 +12012,7 @@ class __PRIVATE_IndexedDbPersistence {
12004
12012
  // be turned off.
12005
12013
  ki(e) {
12006
12014
  return __PRIVATE_primaryClientStore(e).get("owner").next((e => {
12007
- if (null !== e && this.Ci(e.leaseTimestampMs, 5e3) && !this.Mi(e.ownerId) && !this.Si(e) && !(this.ai || this.allowTabSynchronization && e.allowTabSynchronization)) throw new FirestoreError(D.FAILED_PRECONDITION, de);
12015
+ if (null !== e && this.Ci(e.leaseTimestampMs, 5e3) && !this.Mi(e.ownerId) && !this.Si(e) && !(this.ai || this.allowTabSynchronization && e.allowTabSynchronization)) throw new FirestoreError(D.FAILED_PRECONDITION, Ae);
12008
12016
  }));
12009
12017
  }
12010
12018
  /**
@@ -13501,7 +13509,7 @@ class __PRIVATE_BrowserConnectivityMonitor {
13501
13509
  /**
13502
13510
  * The value returned from the most recent invocation of
13503
13511
  * `generateUniqueDebugId()`, or null if it has never been invoked.
13504
- */ let Ae = null;
13512
+ */ let Re = null;
13505
13513
 
13506
13514
  /**
13507
13515
  * Generates and returns an initial value for `lastUniqueDebugId`.
@@ -13526,9 +13534,9 @@ class __PRIVATE_BrowserConnectivityMonitor {
13526
13534
  * @return the 10-character generated ID (e.g. "0xa1b2c3d4").
13527
13535
  */
13528
13536
  function __PRIVATE_generateUniqueDebugId() {
13529
- return null === Ae ? Ae = function __PRIVATE_generateInitialUniqueDebugId() {
13537
+ return null === Re ? Re = function __PRIVATE_generateInitialUniqueDebugId() {
13530
13538
  return 268435456 + Math.round(2147483648 * Math.random());
13531
- }() : Ae++, "0x" + Ae.toString(16);
13539
+ }() : Re++, "0x" + Re.toString(16);
13532
13540
  }
13533
13541
 
13534
13542
  /**
@@ -13546,7 +13554,7 @@ function __PRIVATE_generateUniqueDebugId() {
13546
13554
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13547
13555
  * See the License for the specific language governing permissions and
13548
13556
  * limitations under the License.
13549
- */ const Re = {
13557
+ */ const Ve = {
13550
13558
  BatchGetDocuments: "batchGet",
13551
13559
  Commit: "commit",
13552
13560
  RunQuery: "runQuery",
@@ -13624,7 +13632,7 @@ class __PRIVATE_StreamBridge {
13624
13632
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13625
13633
  * See the License for the specific language governing permissions and
13626
13634
  * limitations under the License.
13627
- */ const Ve = "WebChannelConnection";
13635
+ */ const me = "WebChannelConnection";
13628
13636
 
13629
13637
  class __PRIVATE_WebChannelConnection extends
13630
13638
  /**
@@ -13678,7 +13686,7 @@ class __PRIVATE_RestConnection {
13678
13686
  t && t.headers.forEach(((t, n) => e[n] = t)), n && n.headers.forEach(((t, n) => e[n] = t));
13679
13687
  }
13680
13688
  bo(e, t) {
13681
- const n = Re[e];
13689
+ const n = Ve[e];
13682
13690
  return `${this.fo}/v1/${t}:${n}`;
13683
13691
  }
13684
13692
  /**
@@ -13702,17 +13710,17 @@ class __PRIVATE_RestConnection {
13702
13710
  switch (_.getLastErrorCode()) {
13703
13711
  case webchannelWrapper.ErrorCode.NO_ERROR:
13704
13712
  const t = _.getResponseJson();
13705
- __PRIVATE_logDebug(Ve, `XHR for RPC '${e}' ${i} received:`, JSON.stringify(t)),
13713
+ __PRIVATE_logDebug(me, `XHR for RPC '${e}' ${i} received:`, JSON.stringify(t)),
13706
13714
  s(t);
13707
13715
  break;
13708
13716
 
13709
13717
  case webchannelWrapper.ErrorCode.TIMEOUT:
13710
- __PRIVATE_logDebug(Ve, `RPC '${e}' ${i} timed out`), o(new FirestoreError(D.DEADLINE_EXCEEDED, "Request time out"));
13718
+ __PRIVATE_logDebug(me, `RPC '${e}' ${i} timed out`), o(new FirestoreError(D.DEADLINE_EXCEEDED, "Request time out"));
13711
13719
  break;
13712
13720
 
13713
13721
  case webchannelWrapper.ErrorCode.HTTP_ERROR:
13714
13722
  const n = _.getStatus();
13715
- if (__PRIVATE_logDebug(Ve, `RPC '${e}' ${i} failed with status:`, n, "response text:", _.getResponseText()),
13723
+ if (__PRIVATE_logDebug(me, `RPC '${e}' ${i} failed with status:`, n, "response text:", _.getResponseText()),
13716
13724
  n > 0) {
13717
13725
  let e = _.getResponseJson();
13718
13726
  Array.isArray(e) && (e = e[0]);
@@ -13734,11 +13742,11 @@ class __PRIVATE_RestConnection {
13734
13742
  fail();
13735
13743
  }
13736
13744
  } finally {
13737
- __PRIVATE_logDebug(Ve, `RPC '${e}' ${i} completed.`);
13745
+ __PRIVATE_logDebug(me, `RPC '${e}' ${i} completed.`);
13738
13746
  }
13739
13747
  }));
13740
13748
  const a = JSON.stringify(r);
13741
- __PRIVATE_logDebug(Ve, `RPC '${e}' ${i} sending request:`, r), _.send(t, "POST", a, n, 15);
13749
+ __PRIVATE_logDebug(me, `RPC '${e}' ${i} sending request:`, r), _.send(t, "POST", a, n, 15);
13742
13750
  }));
13743
13751
  }
13744
13752
  Fo(e, t, n) {
@@ -13779,7 +13787,7 @@ class __PRIVATE_RestConnection {
13779
13787
  // which is recognized by the webchannel backend.
13780
13788
  _.encodeInitMessageHeaders = !0;
13781
13789
  const u = i.join("");
13782
- __PRIVATE_logDebug(Ve, `Creating RPC '${e}' stream ${r}: ${u}`, _);
13790
+ __PRIVATE_logDebug(me, `Creating RPC '${e}' stream ${r}: ${u}`, _);
13783
13791
  const c = s.createWebChannel(u, _);
13784
13792
  // WebChannel supports sending the first message with the handshake - saving
13785
13793
  // a network round trip. However, it will have to call send in the same
@@ -13792,8 +13800,8 @@ class __PRIVATE_RestConnection {
13792
13800
  // on a closed stream
13793
13801
  const P = new __PRIVATE_StreamBridge({
13794
13802
  lo: t => {
13795
- h ? __PRIVATE_logDebug(Ve, `Not sending because RPC '${e}' stream ${r} is closed:`, t) : (l || (__PRIVATE_logDebug(Ve, `Opening RPC '${e}' stream ${r} transport.`),
13796
- c.open(), l = !0), __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} sending:`, t),
13803
+ h ? __PRIVATE_logDebug(me, `Not sending because RPC '${e}' stream ${r} is closed:`, t) : (l || (__PRIVATE_logDebug(me, `Opening RPC '${e}' stream ${r} transport.`),
13804
+ c.open(), l = !0), __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} sending:`, t),
13797
13805
  c.send(t));
13798
13806
  },
13799
13807
  ho: () => c.close()
@@ -13815,12 +13823,12 @@ class __PRIVATE_RestConnection {
13815
13823
  // Note that eventually this function could go away if we are confident
13816
13824
  // enough the code is exception free.
13817
13825
  return __PRIVATE_unguardedEventListen(c, webchannelWrapper.WebChannel.EventType.OPEN, (() => {
13818
- h || __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} transport opened.`);
13826
+ h || __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} transport opened.`);
13819
13827
  })), __PRIVATE_unguardedEventListen(c, webchannelWrapper.WebChannel.EventType.CLOSE, (() => {
13820
- h || (h = !0, __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} transport closed`),
13828
+ h || (h = !0, __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} transport closed`),
13821
13829
  P.Vo());
13822
13830
  })), __PRIVATE_unguardedEventListen(c, webchannelWrapper.WebChannel.EventType.ERROR, (t => {
13823
- h || (h = !0, __PRIVATE_logWarn(Ve, `RPC '${e}' stream ${r} transport errored:`, t),
13831
+ h || (h = !0, __PRIVATE_logWarn(me, `RPC '${e}' stream ${r} transport errored:`, t),
13824
13832
  P.Vo(new FirestoreError(D.UNAVAILABLE, "The operation could not be completed")));
13825
13833
  })), __PRIVATE_unguardedEventListen(c, webchannelWrapper.WebChannel.EventType.MESSAGE, (t => {
13826
13834
  var n;
@@ -13834,7 +13842,7 @@ class __PRIVATE_RestConnection {
13834
13842
  // Use any because msgData.error is not typed.
13835
13843
  const s = i, o = s.error || (null === (n = s[0]) || void 0 === n ? void 0 : n.error);
13836
13844
  if (o) {
13837
- __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} received error:`, o);
13845
+ __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} received error:`, o);
13838
13846
  // error.status will be a string like 'OK' or 'NOT_FOUND'.
13839
13847
  const t = o.status;
13840
13848
  let n =
@@ -13847,16 +13855,16 @@ class __PRIVATE_RestConnection {
13847
13855
  function __PRIVATE_mapCodeFromRpcStatus(e) {
13848
13856
  // lookup by string
13849
13857
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
13850
- const t = ae[e];
13858
+ const t = ue[e];
13851
13859
  if (void 0 !== t) return __PRIVATE_mapCodeFromRpcCode(t);
13852
13860
  }(t), i = o.message;
13853
13861
  void 0 === n && (n = D.INTERNAL, i = "Unknown error status: " + t + " with message " + o.message),
13854
13862
  // Mark closed so no further events are propagated
13855
13863
  h = !0, P.Vo(new FirestoreError(n, i)), c.close();
13856
- } else __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} received:`, i), P.mo(i);
13864
+ } else __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} received:`, i), P.mo(i);
13857
13865
  }
13858
13866
  })), __PRIVATE_unguardedEventListen(o, webchannelWrapper.Event.STAT_EVENT, (t => {
13859
- t.stat === webchannelWrapper.Stat.PROXY ? __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} detected buffering proxy`) : t.stat === webchannelWrapper.Stat.NOPROXY && __PRIVATE_logDebug(Ve, `RPC '${e}' stream ${r} detected no buffering proxy`);
13867
+ t.stat === webchannelWrapper.Stat.PROXY ? __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} detected buffering proxy`) : t.stat === webchannelWrapper.Stat.NOPROXY && __PRIVATE_logDebug(me, `RPC '${e}' stream ${r} detected no buffering proxy`);
13860
13868
  })), setTimeout((() => {
13861
13869
  // Technically we could/should wait for the WebChannel opened event,
13862
13870
  // but because we want to send the first message with the WebChannel
@@ -15445,12 +15453,12 @@ function __PRIVATE_raiseSnapshotsInSyncEvent(e) {
15445
15453
  }));
15446
15454
  }
15447
15455
 
15448
- var me, fe;
15456
+ var fe, ge;
15449
15457
 
15450
15458
  /** Listen to both cache and server changes */
15451
- (fe = me || (me = {})).j_ = "default",
15459
+ (ge = fe || (fe = {})).j_ = "default",
15452
15460
  /** Listen to changes in cache only */
15453
- fe.Cache = "cache";
15461
+ ge.Cache = "cache";
15454
15462
 
15455
15463
  /**
15456
15464
  * QueryListener takes a series of internal view snapshots and determines
@@ -15525,7 +15533,7 @@ class __PRIVATE_QueryListener {
15525
15533
  this.J_ = !0, this.H_.next(e);
15526
15534
  }
15527
15535
  U_() {
15528
- return this.options.source !== me.Cache;
15536
+ return this.options.source !== fe.Cache;
15529
15537
  }
15530
15538
  }
15531
15539
 
@@ -17892,7 +17900,7 @@ function __PRIVATE_cloneLongPollingOptions(e) {
17892
17900
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17893
17901
  * See the License for the specific language governing permissions and
17894
17902
  * limitations under the License.
17895
- */ const ge = new Map;
17903
+ */ const pe = new Map;
17896
17904
 
17897
17905
  /**
17898
17906
  * An instance map that ensures only one Datastore exists per Firestore
@@ -18138,8 +18146,8 @@ class Firestore$1 {
18138
18146
  * when the `Firestore` instance is terminated.
18139
18147
  */
18140
18148
  return function __PRIVATE_removeComponents(e) {
18141
- const t = ge.get(e);
18142
- t && (__PRIVATE_logDebug("ComponentProvider", "Removing Datastore"), ge.delete(e),
18149
+ const t = pe.get(e);
18150
+ t && (__PRIVATE_logDebug("ComponentProvider", "Removing Datastore"), pe.delete(e),
18143
18151
  t.terminate());
18144
18152
  }(this), Promise.resolve();
18145
18153
  }
@@ -18690,7 +18698,7 @@ class LoadBundleTask {
18690
18698
  * Constant used to indicate the LRU garbage collection should be disabled.
18691
18699
  * Set this value as the `cacheSizeBytes` on the settings passed to the
18692
18700
  * {@link Firestore} instance.
18693
- */ const pe = -1;
18701
+ */ const ye = -1;
18694
18702
 
18695
18703
  /**
18696
18704
  * The Cloud Firestore service interface.
@@ -19313,7 +19321,7 @@ class AggregateField {
19313
19321
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19314
19322
  * See the License for the specific language governing permissions and
19315
19323
  * limitations under the License.
19316
- */ const ye = /^__.*__$/;
19324
+ */ const we = /^__.*__$/;
19317
19325
 
19318
19326
  /** The result of parsing document data (e.g. for a setData call). */ class ParsedSetData {
19319
19327
  constructor(e, t, n) {
@@ -19424,7 +19432,7 @@ function __PRIVATE_isWrite(e) {
19424
19432
  }
19425
19433
  pu(e) {
19426
19434
  if (0 === e.length) throw this.Su("Document fields must not be empty");
19427
- if (__PRIVATE_isWrite(this.Vu) && ye.test(e)) throw this.Su('Document fields cannot begin and end with "__"');
19435
+ if (__PRIVATE_isWrite(this.Vu) && we.test(e)) throw this.Su('Document fields cannot begin and end with "__"');
19428
19436
  }
19429
19437
  }
19430
19438
 
@@ -19779,7 +19787,7 @@ function __PRIVATE_validatePlainObject(e, t, n) {
19779
19787
 
19780
19788
  /**
19781
19789
  * Matches any characters in a field path string that are reserved.
19782
- */ const we = new RegExp("[~\\*/\\[\\]]");
19790
+ */ const Se = new RegExp("[~\\*/\\[\\]]");
19783
19791
 
19784
19792
  /**
19785
19793
  * Wraps fromDotSeparatedString with an error message about the method that
@@ -19790,7 +19798,7 @@ function __PRIVATE_validatePlainObject(e, t, n) {
19790
19798
  * @param targetDoc - The document against which the field path will be
19791
19799
  * evaluated.
19792
19800
  */ function __PRIVATE_fieldPathFromDotSeparatedString(e, t, n) {
19793
- if (t.search(we) >= 0) throw __PRIVATE_createError(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`, e,
19801
+ if (t.search(Se) >= 0) throw __PRIVATE_createError(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`, e,
19794
19802
  /* hasConverter= */ !1,
19795
19803
  /* path= */ void 0, n);
19796
19804
  try {
@@ -21344,7 +21352,7 @@ class __PRIVATE_MultiTabManagerImpl {
21344
21352
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21345
21353
  * See the License for the specific language governing permissions and
21346
21354
  * limitations under the License.
21347
- */ const Se = {
21355
+ */ const be = {
21348
21356
  maxAttempts: 5
21349
21357
  };
21350
21358
 
@@ -21556,7 +21564,7 @@ class Transaction extends class Transaction$1 {
21556
21564
  * rejected promise with the corresponding failure error is returned.
21557
21565
  */ function runTransaction(e, t, n) {
21558
21566
  e = __PRIVATE_cast(e, Firestore);
21559
- const r = Object.assign(Object.assign({}, Se), n);
21567
+ const r = Object.assign(Object.assign({}, be), n);
21560
21568
  !function __PRIVATE_validateTransactionOptions(e) {
21561
21569
  if (e.maxAttempts < 1) throw new FirestoreError(D.INVALID_ARGUMENT, "Max attempts must be at least 1");
21562
21570
  }(r);
@@ -21772,12 +21780,12 @@ function __PRIVATE_tryGetString(e, t) {
21772
21780
  */ function getPersistentCacheIndexManager(e) {
21773
21781
  var t;
21774
21782
  e = __PRIVATE_cast(e, Firestore);
21775
- const n = be.get(e);
21783
+ const n = De.get(e);
21776
21784
  if (n) return n;
21777
21785
  const r = ensureFirestoreConfigured(e);
21778
21786
  if ("persistent" !== (null === (t = r._uninitializedComponentsProvider) || void 0 === t ? void 0 : t._offlineKind)) return null;
21779
21787
  const i = new PersistentCacheIndexManager(r);
21780
- return be.set(e, i), i;
21788
+ return De.set(e, i), i;
21781
21789
  }
21782
21790
 
21783
21791
  /**
@@ -21820,7 +21828,7 @@ function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21820
21828
  * Use a `WeakMap` so that the mapping will be automatically dropped when the
21821
21829
  * `Firestore` instance is garbage collected. This emulates a private member
21822
21830
  * as described in https://goo.gle/454yvug.
21823
- */ const be = new WeakMap;
21831
+ */ const De = new WeakMap;
21824
21832
 
21825
21833
  /**
21826
21834
  * @license
@@ -21873,10 +21881,10 @@ function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21873
21881
  this.Mu = new Map;
21874
21882
  }
21875
21883
  static get instance() {
21876
- return De || (De = new __PRIVATE_TestingHooksSpiImpl, function __PRIVATE_setTestingHooksSpi(e) {
21877
- if (ce) throw new Error("a TestingHooksSpi instance is already set");
21878
- ce = e;
21879
- }(De)), De;
21884
+ return Ce || (Ce = new __PRIVATE_TestingHooksSpiImpl, function __PRIVATE_setTestingHooksSpi(e) {
21885
+ if (le) throw new Error("a TestingHooksSpi instance is already set");
21886
+ le = e;
21887
+ }(Ce)), Ce;
21880
21888
  }
21881
21889
  tt(e) {
21882
21890
  this.Mu.forEach((t => t(e)));
@@ -21887,7 +21895,7 @@ function __PRIVATE_setPersistentCacheIndexAutoCreationEnabled(e, t) {
21887
21895
  }
21888
21896
  }
21889
21897
 
21890
- let De = null;
21898
+ let Ce = null;
21891
21899
 
21892
21900
  /**
21893
21901
  * Cloud Firestore
@@ -21904,16 +21912,16 @@ let De = null;
21904
21912
  return r = Object.assign({
21905
21913
  useFetchStreams: t
21906
21914
  }, r), s._setSettings(r), s;
21907
- }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(w, "4.5.0-canary.9ca1a4e4f", e),
21915
+ }), "PUBLIC").setMultipleInstances(!0)), app.registerVersion(w, "4.5.0-canary.c6ecac8ac", e),
21908
21916
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21909
- app.registerVersion(w, "4.5.0-canary.9ca1a4e4f", "cjs2017");
21917
+ app.registerVersion(w, "4.5.0-canary.c6ecac8ac", "cjs2017");
21910
21918
  }();
21911
21919
 
21912
21920
  exports.AbstractUserDataWriter = AbstractUserDataWriter;
21913
21921
  exports.AggregateField = AggregateField;
21914
21922
  exports.AggregateQuerySnapshot = AggregateQuerySnapshot;
21915
21923
  exports.Bytes = Bytes;
21916
- exports.CACHE_SIZE_UNLIMITED = pe;
21924
+ exports.CACHE_SIZE_UNLIMITED = ye;
21917
21925
  exports.CollectionReference = CollectionReference;
21918
21926
  exports.DocumentReference = DocumentReference;
21919
21927
  exports.DocumentSnapshot = DocumentSnapshot;