@firebase/firestore 4.7.3-canary.64db19264 → 4.7.3-canary.8fb044e8d

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.
@@ -4,9 +4,9 @@ import { SDK_VERSION as i, _registerComponent as o, registerVersion as u, _getPr
4
4
 
5
5
  import { Component as c } from "@firebase/component";
6
6
 
7
- import { Logger as l, LogLevel as h } from "@firebase/logger";
7
+ import { Logger as l, LogLevel as f } from "@firebase/logger";
8
8
 
9
- import { FirebaseError as f, getUA as d, isSafari as p, deepEqual as v, getModularInstance as m, isIndexedDBAvailable as y, createMockUserToken as g, getDefaultEmulatorHostnameAndPort as w } from "@firebase/util";
9
+ import { FirebaseError as h, getUA as d, isSafari as p, deepEqual as v, getModularInstance as m, isIndexedDBAvailable as y, createMockUserToken as g, getDefaultEmulatorHostnameAndPort as w } from "@firebase/util";
10
10
 
11
11
  import { Integer as b, Md5 as _ } from "@firebase/webchannel-wrapper/bloom-blob";
12
12
 
@@ -72,7 +72,7 @@ k.MOCK_USER = new k("mock-user");
72
72
  * See the License for the specific language governing permissions and
73
73
  * limitations under the License.
74
74
  */
75
- var O = "10.14.1-canary.64db19264", P = new l("@firebase/firestore");
75
+ var O = "10.14.1-canary.8fb044e8d", P = new l("@firebase/firestore");
76
76
 
77
77
  /**
78
78
  * @license
@@ -113,7 +113,7 @@ function R() {
113
113
 
114
114
  function F(t) {
115
115
  for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
116
- if (P.logLevel <= h.DEBUG) {
116
+ if (P.logLevel <= f.DEBUG) {
117
117
  var i = e.map(q);
118
118
  P.debug.apply(P, r([ "Firestore (".concat(O, "): ").concat(t) ], i, !1));
119
119
  }
@@ -121,7 +121,7 @@ function F(t) {
121
121
 
122
122
  function M(t) {
123
123
  for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
124
- if (P.logLevel <= h.ERROR) {
124
+ if (P.logLevel <= f.ERROR) {
125
125
  var i = e.map(q);
126
126
  P.error.apply(P, r([ "Firestore (".concat(O, "): ").concat(t) ], i, !1));
127
127
  }
@@ -131,7 +131,7 @@ function M(t) {
131
131
  * @internal
132
132
  */ function L(t) {
133
133
  for (var e = [], n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
134
- if (P.logLevel <= h.WARN) {
134
+ if (P.logLevel <= f.WARN) {
135
135
  var i = e.map(q);
136
136
  P.warn.apply(P, r([ "Firestore (".concat(O, "): ").concat(t) ], i, !1));
137
137
  }
@@ -381,7 +381,7 @@ e) {
381
381
  }, r;
382
382
  }
383
383
  return t(n, e), n;
384
- }(f), Q = function() {
384
+ }(h), Q = function() {
385
385
  var t = this;
386
386
  this.promise = new Promise((function(e, n) {
387
387
  t.resolve = e, t.reject = n;
@@ -952,7 +952,7 @@ function it(t, e) {
952
952
  }, n.emptyPath = function() {
953
953
  return new n([]);
954
954
  }, n;
955
- }(ct), ht = /^[_a-zA-Z][_a-zA-Z0-9]*$/, ft = /** @class */ function(e) {
955
+ }(ct), ft = /^[_a-zA-Z][_a-zA-Z0-9]*$/, ht = /** @class */ function(e) {
956
956
  function n() {
957
957
  return null !== e && e.apply(this, arguments) || this;
958
958
  }
@@ -964,7 +964,7 @@ function it(t, e) {
964
964
  * without escaping.
965
965
  */
966
966
  n.isValidIdentifier = function(t) {
967
- return ht.test(t);
967
+ return ft.test(t);
968
968
  }, n.prototype.canonicalString = function() {
969
969
  return this.toArray().map((function(t) {
970
970
  return t = t.replace(/\\/g, "\\\\").replace(/`/g, "\\`"), n.isValidIdentifier(t) || (t = "`" + t + "`"),
@@ -1132,7 +1132,7 @@ e) {
1132
1132
  };
1133
1133
 
1134
1134
  function wt(t, e) {
1135
- var n = ft.comparator(t.fieldPath, e.fieldPath);
1135
+ var n = ht.comparator(t.fieldPath, e.fieldPath);
1136
1136
  return 0 !== n ? n : it(t.kind, e.kind);
1137
1137
  }
1138
1138
 
@@ -1597,7 +1597,7 @@ function Dt(t) {
1597
1597
  switch (l.label) {
1598
1598
  case 0:
1599
1599
  e = "readonly" === r, u = 0, a = function() {
1600
- var r, a, c, l, h, f;
1600
+ var r, a, c, l, f, h;
1601
1601
  return n(this, (function(n) {
1602
1602
  switch (n.label) {
1603
1603
  case 0:
@@ -1630,9 +1630,9 @@ function Dt(t) {
1630
1630
  // exceeded errors).
1631
1631
  // Note: We cannot use an instanceof check for FirestoreException, since the
1632
1632
  // exception is wrapped in a generic error by our async/await handling.
1633
- return l = n.sent(), f = "FirebaseError" !== (h = l).name && u < 3, F("SimpleDb", "Transaction failed with error:", h.message, "Retrying:", f),
1634
- s.close(), f ? [ 3 /*break*/ , 5 ] : [ 2 /*return*/ , {
1635
- value: Promise.reject(h)
1633
+ return l = n.sent(), h = "FirebaseError" !== (f = l).name && u < 3, F("SimpleDb", "Transaction failed with error:", f.message, "Retrying:", h),
1634
+ s.close(), h ? [ 3 /*break*/ , 5 ] : [ 2 /*return*/ , {
1635
+ value: Promise.reject(f)
1636
1636
  } ];
1637
1637
 
1638
1638
  case 5:
@@ -2254,7 +2254,7 @@ var Ht = [ "userId", "batchId" ];
2254
2254
  * there is no useful information to store as the value. The raw (unencoded)
2255
2255
  * path cannot be stored because IndexedDb doesn't store prototype
2256
2256
  * information.
2257
- */ var Zt = {}, $t = [ "prefixPath", "collectionGroup", "readTime", "documentId" ], te = [ "prefixPath", "collectionGroup", "documentId" ], ee = [ "collectionGroup", "readTime", "prefixPath", "documentId" ], ne = [ "canonicalId", "targetId" ], re = [ "targetId", "path" ], ie = [ "path", "targetId" ], oe = [ "collectionId", "parent" ], ue = [ "indexId", "uid" ], ae = [ "uid", "sequenceNumber" ], se = [ "indexId", "uid", "arrayValue", "directionalValue", "orderedDocumentKey", "documentKey" ], ce = [ "indexId", "uid", "orderedDocumentKey" ], le = [ "userId", "collectionPath", "documentId" ], he = [ "userId", "collectionPath", "largestBatchId" ], fe = [ "userId", "collectionGroup", "largestBatchId" ], de = r(r([], r(r([], r(r([], r(r([], [ "mutationQueues", "mutations", "documentMutations", "remoteDocuments", "targets", "owner", "targetGlobal", "targetDocuments" ], !1), [ "clientMetadata" ], !1), !0), [ "remoteDocumentGlobal" ], !1), !0), [ "collectionParents" ], !1), !0), [ "bundles", "namedQueries" ], !1), pe = r(r([], de, !0), [ "documentOverlays" ], !1), ve = [ "mutationQueues", "mutations", "documentMutations", "remoteDocumentsV14", "targets", "owner", "targetGlobal", "targetDocuments", "clientMetadata", "remoteDocumentGlobal", "collectionParents", "bundles", "namedQueries", "documentOverlays" ], me = ve, ye = r(r([], me, !0), [ "indexConfiguration", "indexState", "indexEntries" ], !1), ge = ye, we = r(r([], ye, !0), [ "globals" ], !1), be = /** @class */ function(e) {
2257
+ */ var Zt = {}, $t = [ "prefixPath", "collectionGroup", "readTime", "documentId" ], te = [ "prefixPath", "collectionGroup", "documentId" ], ee = [ "collectionGroup", "readTime", "prefixPath", "documentId" ], ne = [ "canonicalId", "targetId" ], re = [ "targetId", "path" ], ie = [ "path", "targetId" ], oe = [ "collectionId", "parent" ], ue = [ "indexId", "uid" ], ae = [ "uid", "sequenceNumber" ], se = [ "indexId", "uid", "arrayValue", "directionalValue", "orderedDocumentKey", "documentKey" ], ce = [ "indexId", "uid", "orderedDocumentKey" ], le = [ "userId", "collectionPath", "documentId" ], fe = [ "userId", "collectionPath", "largestBatchId" ], he = [ "userId", "collectionGroup", "largestBatchId" ], de = r(r([], r(r([], r(r([], r(r([], [ "mutationQueues", "mutations", "documentMutations", "remoteDocuments", "targets", "owner", "targetGlobal", "targetDocuments" ], !1), [ "clientMetadata" ], !1), !0), [ "remoteDocumentGlobal" ], !1), !0), [ "collectionParents" ], !1), !0), [ "bundles", "namedQueries" ], !1), pe = r(r([], de, !0), [ "documentOverlays" ], !1), ve = [ "mutationQueues", "mutations", "documentMutations", "remoteDocumentsV14", "targets", "owner", "targetGlobal", "targetDocuments", "clientMetadata", "remoteDocumentGlobal", "collectionParents", "bundles", "namedQueries", "documentOverlays" ], me = ve, ye = r(r([], me, !0), [ "indexConfiguration", "indexState", "indexEntries" ], !1), ge = ye, we = r(r([], ye, !0), [ "globals" ], !1), be = /** @class */ function(e) {
2258
2258
  function n(t, n) {
2259
2259
  var r = this;
2260
2260
  return (r = e.call(this) || this)._e = t, r.currentSequenceNumber = n, r;
@@ -2803,7 +2803,7 @@ function ke(t) {
2803
2803
  this.fields = t,
2804
2804
  // TODO(dimond): validation of FieldMask
2805
2805
  // Sort the field mask to support `FieldMask.isEqual()` and assert below.
2806
- t.sort(ft.comparator);
2806
+ t.sort(ht.comparator);
2807
2807
  }
2808
2808
  return t.empty = function() {
2809
2809
  return new t([]);
@@ -2813,7 +2813,7 @@ function ke(t) {
2813
2813
  * fields paths to this field mask.
2814
2814
  */
2815
2815
  t.prototype.unionWith = function(e) {
2816
- for (var n = new Ne(ft.comparator), r = 0, i = this.fields; r < i.length; r++) {
2816
+ for (var n = new Ne(ht.comparator), r = 0, i = this.fields; r < i.length; r++) {
2817
2817
  var o = i[r];
2818
2818
  n = n.add(o);
2819
2819
  }
@@ -3146,7 +3146,7 @@ function(t, e, n, r, i, o, u, a, s) {
3146
3146
  */
3147
3147
  /** Extracts the backend's type order for the provided value. */
3148
3148
  function We(t) {
3149
- return "nullValue" in t ? 0 /* TypeOrder.NullValue */ : "booleanValue" in t ? 1 /* TypeOrder.BooleanValue */ : "integerValue" in t || "doubleValue" in t ? 2 /* TypeOrder.NumberValue */ : "timestampValue" in t ? 3 /* TypeOrder.TimestampValue */ : "stringValue" in t ? 5 /* TypeOrder.StringValue */ : "bytesValue" in t ? 6 /* TypeOrder.BlobValue */ : "referenceValue" in t ? 7 /* TypeOrder.RefValue */ : "geoPointValue" in t ? 8 /* TypeOrder.GeoPointValue */ : "arrayValue" in t ? 9 /* TypeOrder.ArrayValue */ : "mapValue" in t ? Ue(t) ? 4 /* TypeOrder.ServerTimestampValue */ : hn(t) ? 9007199254740991 /* TypeOrder.MaxValue */ : cn(t) ? 10 /* TypeOrder.VectorValue */ : 11 /* TypeOrder.ObjectValue */ : U();
3149
+ return "nullValue" in t ? 0 /* TypeOrder.NullValue */ : "booleanValue" in t ? 1 /* TypeOrder.BooleanValue */ : "integerValue" in t || "doubleValue" in t ? 2 /* TypeOrder.NumberValue */ : "timestampValue" in t ? 3 /* TypeOrder.TimestampValue */ : "stringValue" in t ? 5 /* TypeOrder.StringValue */ : "bytesValue" in t ? 6 /* TypeOrder.BlobValue */ : "referenceValue" in t ? 7 /* TypeOrder.RefValue */ : "geoPointValue" in t ? 8 /* TypeOrder.GeoPointValue */ : "arrayValue" in t ? 9 /* TypeOrder.ArrayValue */ : "mapValue" in t ? Ue(t) ? 4 /* TypeOrder.ServerTimestampValue */ : fn(t) ? 9007199254740991 /* TypeOrder.MaxValue */ : cn(t) ? 10 /* TypeOrder.VectorValue */ : 11 /* TypeOrder.ObjectValue */ : U();
3150
3150
  }
3151
3151
 
3152
3152
  /** Tests `left` and `right` for equality based on the backend semantics. */ function Je(t, e) {
@@ -3462,11 +3462,11 @@ function nn(t, e) {
3462
3462
  return Object.assign({}, t);
3463
3463
  }
3464
3464
 
3465
- /** Returns true if the Value represents the canonical {@link #MAX_VALUE} . */ function hn(t) {
3465
+ /** Returns true if the Value represents the canonical {@link #MAX_VALUE} . */ function fn(t) {
3466
3466
  return "__max__" === (((t.mapValue || {}).fields || {}).__type__ || {}).stringValue;
3467
3467
  }
3468
3468
 
3469
- var fn = {
3469
+ var hn = {
3470
3470
  mapValue: {
3471
3471
  fields: {
3472
3472
  __type__: {
@@ -3499,7 +3499,7 @@ var fn = {
3499
3499
  }
3500
3500
  } : "arrayValue" in t ? {
3501
3501
  arrayValue: {}
3502
- } : "mapValue" in t ? cn(t) ? fn : {
3502
+ } : "mapValue" in t ? cn(t) ? hn : {
3503
3503
  mapValue: {}
3504
3504
  } : U();
3505
3505
  }
@@ -3524,7 +3524,7 @@ var fn = {
3524
3524
  }
3525
3525
  } : "geoPointValue" in t ? {
3526
3526
  arrayValue: {}
3527
- } : "arrayValue" in t ? fn : "mapValue" in t ? cn(t) ? {
3527
+ } : "arrayValue" in t ? hn : "mapValue" in t ? cn(t) ? {
3528
3528
  mapValue: {}
3529
3529
  } : je : U();
3530
3530
  }
@@ -3593,7 +3593,7 @@ function mn(t, e) {
3593
3593
  * @param data - A map of fields to values (or null for deletes).
3594
3594
  */
3595
3595
  t.prototype.setAll = function(t) {
3596
- var e = this, n = ft.emptyPath(), r = {}, i = [];
3596
+ var e = this, n = ht.emptyPath(), r = {}, i = [];
3597
3597
  t.forEach((function(t, o) {
3598
3598
  if (!n.isImmediateParentOf(o)) {
3599
3599
  // Insert the accumulated changes at this parent location
@@ -3658,7 +3658,7 @@ function mn(t, e) {
3658
3658
  */ function gn(t) {
3659
3659
  var e = [];
3660
3660
  return Te(t.fields, (function(t, n) {
3661
- var r = new ft([ t ]);
3661
+ var r = new ht([ t ]);
3662
3662
  if (sn(n)) {
3663
3663
  var i = gn(n.mapValue).fields;
3664
3664
  if (0 === i.length)
@@ -4238,14 +4238,14 @@ function Jn(t) {
4238
4238
  // If there is an additional bound, compare the values against the existing
4239
4239
  // range to see if we can narrow the scope.
4240
4240
  if (null !== n) for (var l = 0; l < t.orderBy.length; ++l) if (t.orderBy[l].field.isEqual(e)) {
4241
- var h = n.position[l];
4241
+ var f = n.position[l];
4242
4242
  vn({
4243
4243
  value: r,
4244
4244
  inclusive: i
4245
4245
  }, {
4246
- value: h,
4246
+ value: f,
4247
4247
  inclusive: n.inclusive
4248
- }) < 0 && (r = h, i = n.inclusive);
4248
+ }) < 0 && (r = f, i = n.inclusive);
4249
4249
  break;
4250
4250
  }
4251
4251
  return {
@@ -4293,14 +4293,14 @@ function Jn(t) {
4293
4293
  // If there is an additional bound, compare the values against the existing
4294
4294
  // range to see if we can narrow the scope.
4295
4295
  if (null !== n) for (var l = 0; l < t.orderBy.length; ++l) if (t.orderBy[l].field.isEqual(e)) {
4296
- var h = n.position[l];
4296
+ var f = n.position[l];
4297
4297
  mn({
4298
4298
  value: r,
4299
4299
  inclusive: i
4300
4300
  }, {
4301
- value: h,
4301
+ value: f,
4302
4302
  inclusive: n.inclusive
4303
- }) > 0 && (r = h, i = n.inclusive);
4303
+ }) > 0 && (r = f, i = n.inclusive);
4304
4304
  break;
4305
4305
  }
4306
4306
  return {
@@ -4399,7 +4399,7 @@ function(t, e, n, r, i, o /* LimitType.First */ , u, a) {
4399
4399
  }
4400
4400
  // The order of the implicit ordering always matches the last explicit order by.
4401
4401
  var u = e.explicitOrderBy.length > 0 ? e.explicitOrderBy[e.explicitOrderBy.length - 1].dir : "asc" /* Direction.ASCENDING */ , a = function(t) {
4402
- var e = new Ne(ft.comparator);
4402
+ var e = new Ne(ht.comparator);
4403
4403
  return t.filters.forEach((function(t) {
4404
4404
  t.getFlattenedFilters().forEach((function(t) {
4405
4405
  t.isInequality() && (e = e.add(t.field));
@@ -4415,7 +4415,7 @@ function(t, e, n, r, i, o /* LimitType.First */ , u, a) {
4415
4415
  n.has(t.canonicalString()) || t.isKeyField() || e.ce.push(new Tn(t, u));
4416
4416
  })),
4417
4417
  // Add the document key field to the last if it is not explicitly ordered.
4418
- n.has(ft.keyField().canonicalString()) || e.ce.push(new Tn(ft.keyField(), u));
4418
+ n.has(ht.keyField().canonicalString()) || e.ce.push(new Tn(ht.keyField(), u));
4419
4419
  }
4420
4420
  return e.ce;
4421
4421
  }
@@ -4473,7 +4473,7 @@ function lr(t) {
4473
4473
  return "".concat(Qn(ir(t)), "|lt:").concat(t.limitType);
4474
4474
  }
4475
4475
 
4476
- function hr(t) {
4476
+ function fr(t) {
4477
4477
  return "Query(target=".concat(function(t) {
4478
4478
  var e = t.path.canonicalString();
4479
4479
  return null !== t.collectionGroup && (e += " collectionGroup=" + t.collectionGroup),
@@ -4493,7 +4493,7 @@ function hr(t) {
4493
4493
  }(ir(t)), "; limitType=").concat(t.limitType, ")");
4494
4494
  }
4495
4495
 
4496
- /** Returns whether `doc` matches the constraints of `query`. */ function fr(t, e) {
4496
+ /** Returns whether `doc` matches the constraints of `query`. */ function hr(t, e) {
4497
4497
  return e.isFoundDocument() && function(t, e) {
4498
4498
  var n = e.key.path;
4499
4499
  return null !== t.collectionGroup ? e.key.hasCollectionId(t.collectionGroup) && t.path.isPrefixOf(n) : dt.isDocumentKey(t.path) ? t.path.isEqual(n) : t.path.isImmediateParentOf(n);
@@ -5060,7 +5060,7 @@ e) {
5060
5060
  if (!t.hasLocalMutations || e && 0 === e.fields.length) return null;
5061
5061
  // mask is null when sets or deletes are applied to the current document.
5062
5062
  if (null === e) return t.isNoDocument() ? new si(t.key, Wr.none()) : new ei(t.key, t.data, Wr.none());
5063
- for (var n = t.data, r = yn.empty(), i = new Ne(ft.comparator), o = 0, u = e.fields; o < u.length; o++) {
5063
+ for (var n = t.data, r = yn.empty(), i = new Ne(ht.comparator), o = 0, u = e.fields; o < u.length; o++) {
5064
5064
  var a = u[o];
5065
5065
  if (!i.has(a)) {
5066
5066
  var s = n.field(a);
@@ -5356,7 +5356,7 @@ function ii(t, e, n) {
5356
5356
  return ti(t, e);
5357
5357
  }));
5358
5358
  }, t;
5359
- }(), hi = /** @class */ function() {
5359
+ }(), fi = /** @class */ function() {
5360
5360
  function t(t, e, n,
5361
5361
  /**
5362
5362
  * A pre-computed mapping from each mutated document to the resulting
@@ -5375,7 +5375,7 @@ function ii(t, e, n) {
5375
5375
  for (var i = Sr, o = e.mutations, u = 0; u < o.length; u++) i = i.insert(o[u].key, r[u].version);
5376
5376
  return new t(e, n, r, i);
5377
5377
  }, t;
5378
- }(), fi = /** @class */ function() {
5378
+ }(), hi = /** @class */ function() {
5379
5379
  function t(t, e) {
5380
5380
  this.largestBatchId = t, this.mutation = e;
5381
5381
  }
@@ -5998,22 +5998,22 @@ n
5998
5998
  this.Qe = this.Qe.insert(e, c);
5999
5999
  }
6000
6000
  null == yi || yi.et(function(t, e, n, r, i) {
6001
- var o, u, a, s, c, l, h = {
6001
+ var o, u, a, s, c, l, f = {
6002
6002
  localCacheCount: t,
6003
6003
  existenceFilterCount: e.count,
6004
6004
  databaseId: n.database,
6005
6005
  projectId: n.projectId
6006
- }, f = e.unchangedNames;
6007
- return f && (h.bloomFilter = {
6006
+ }, h = e.unchangedNames;
6007
+ return h && (f.bloomFilter = {
6008
6008
  applied: 0 /* BloomFilterApplicationStatus.Success */ === i,
6009
- hashCount: null !== (o = null == f ? void 0 : f.hashCount) && void 0 !== o ? o : 0,
6010
- bitmapLength: null !== (s = null === (a = null === (u = null == f ? void 0 : f.bits) || void 0 === u ? void 0 : u.bitmap) || void 0 === a ? void 0 : a.length) && void 0 !== s ? s : 0,
6011
- padding: null !== (l = null === (c = null == f ? void 0 : f.bits) || void 0 === c ? void 0 : c.padding) && void 0 !== l ? l : 0,
6009
+ hashCount: null !== (o = null == h ? void 0 : h.hashCount) && void 0 !== o ? o : 0,
6010
+ bitmapLength: null !== (s = null === (a = null === (u = null == h ? void 0 : h.bits) || void 0 === u ? void 0 : u.bitmap) || void 0 === a ? void 0 : a.length) && void 0 !== s ? s : 0,
6011
+ padding: null !== (l = null === (c = null == h ? void 0 : h.bits) || void 0 === c ? void 0 : c.padding) && void 0 !== l ? l : 0,
6012
6012
  mightContain: function(t) {
6013
6013
  var e;
6014
6014
  return null !== (e = null == r ? void 0 : r.mightContain(t)) && void 0 !== e && e;
6015
6015
  }
6016
- }), h;
6016
+ }), f;
6017
6017
  }(u, t.me, this.Le.tt(), a, s));
6018
6018
  }
6019
6019
  }
@@ -6355,7 +6355,7 @@ function $i(t, e) {
6355
6355
  delete: ji(t, e.key)
6356
6356
  }; else if (e instanceof ni) n = {
6357
6357
  update: Xi(t, e.key, e.data),
6358
- updateMask: fo(e.fieldMask)
6358
+ updateMask: ho(e.fieldMask)
6359
6359
  }; else {
6360
6360
  if (!(e instanceof ci)) return U();
6361
6361
  n = {
@@ -6409,7 +6409,7 @@ function to(t, e) {
6409
6409
  var i = e.removeAllFromArray.values || [];
6410
6410
  n = new Ur(i);
6411
6411
  } else "increment" in e ? n = new zr(t, e.increment) : U();
6412
- var o = ft.fromServerFormat(e.fieldPath);
6412
+ var o = ht.fromServerFormat(e.fieldPath);
6413
6413
  return new jr(o, n);
6414
6414
  }(t, e);
6415
6415
  })) : [];
@@ -6424,7 +6424,7 @@ function to(t, e) {
6424
6424
  var u = function(t) {
6425
6425
  var e = t.fieldPaths || [];
6426
6426
  return new Oe(e.map((function(t) {
6427
- return ft.fromServerFormat(t);
6427
+ return ht.fromServerFormat(t);
6428
6428
  })));
6429
6429
  }(e.updateMask);
6430
6430
  return new ni(i, o, u, n, r);
@@ -6460,7 +6460,7 @@ function no(t, e) {
6460
6460
  collectionId: i.lastSegment()
6461
6461
  } ]), r.parent = Wi(t, n);
6462
6462
  var o = function(t) {
6463
- if (0 !== t.length) return ho(Dn.create(t, "and" /* CompositeOperator.AND */));
6463
+ if (0 !== t.length) return fo(Dn.create(t, "and" /* CompositeOperator.AND */));
6464
6464
  }(e.filters);
6465
6465
  o && (r.structuredQuery.where = o);
6466
6466
  var u = function(t) {
@@ -6680,10 +6680,10 @@ function co(t) {
6680
6680
  }
6681
6681
 
6682
6682
  function lo(t) {
6683
- return ft.fromServerFormat(t.fieldPath);
6683
+ return ht.fromServerFormat(t.fieldPath);
6684
6684
  }
6685
6685
 
6686
- function ho(t) {
6686
+ function fo(t) {
6687
6687
  return t instanceof xn ? function(t) {
6688
6688
  if ("==" /* Operator.EQUAL */ === t.op) {
6689
6689
  if (an(t.value)) return {
@@ -6721,7 +6721,7 @@ function ho(t) {
6721
6721
  };
6722
6722
  }(t) : t instanceof Dn ? function(t) {
6723
6723
  var e = t.getFilters().map((function(t) {
6724
- return ho(t);
6724
+ return fo(t);
6725
6725
  }));
6726
6726
  return 1 === e.length ? e[0] : {
6727
6727
  compositeFilter: {
@@ -6732,7 +6732,7 @@ function ho(t) {
6732
6732
  }(t) : U();
6733
6733
  }
6734
6734
 
6735
- function fo(t) {
6735
+ function ho(t) {
6736
6736
  var e = [];
6737
6737
  return t.fields.forEach((function(t) {
6738
6738
  return e.push(t.canonicalString());
@@ -6965,7 +6965,7 @@ function To(t, e) {
6965
6965
 
6966
6966
  /** Encodes a NamedQuery proto object to a NamedQuery model object. */
6967
6967
  /** Encodes a DbDocumentOverlay object to an Overlay model object. */ function So(t, e) {
6968
- return new fi(e.largestBatchId, to(t.ct, e.overlayMutation));
6968
+ return new hi(e.largestBatchId, to(t.ct, e.overlayMutation));
6969
6969
  }
6970
6970
 
6971
6971
  /** Decodes an Overlay model object into a DbDocumentOverlay object. */
@@ -7101,7 +7101,7 @@ function Do(t, e, n, r) {
7101
7101
  }, t.prototype.saveOverlays = function(t, e, n) {
7102
7102
  var r = this, i = [];
7103
7103
  return n.forEach((function(n, o) {
7104
- var u = new fi(e, o);
7104
+ var u = new hi(e, o);
7105
7105
  i.push(r.ht(t, u));
7106
7106
  })), Ct.waitFor(i);
7107
7107
  }, t.prototype.removeOverlaysForBatchId = function(t, e, n) {
@@ -7222,7 +7222,7 @@ function Do(t, e, n, r) {
7222
7222
  e.gt(qe(t.bytesValue)), this.ft(e); else if ("referenceValue" in t) this.yt(t.referenceValue, e); else if ("geoPointValue" in t) {
7223
7223
  var i = t.geoPointValue;
7224
7224
  this.dt(e, 45), e.At(i.latitude || 0), e.At(i.longitude || 0);
7225
- } else "mapValue" in t ? hn(t) ? this.dt(e, Number.MAX_SAFE_INTEGER) : cn(t) ? this.wt(t.mapValue, e) : (this.St(t.mapValue, e),
7225
+ } else "mapValue" in t ? fn(t) ? this.dt(e, Number.MAX_SAFE_INTEGER) : cn(t) ? this.wt(t.mapValue, e) : (this.St(t.mapValue, e),
7226
7226
  this.ft(e)) : "arrayValue" in t ? (this.bt(t.arrayValue, e), this.ft(e)) : U();
7227
7227
  }, t.prototype.Vt = function(t, e) {
7228
7228
  this.dt(e, 25), this.Dt(t, e);
@@ -7557,7 +7557,7 @@ function Go(t, e) {
7557
7557
  // Note: The sort on FieldFilters is not required. Using SortedSet here just to utilize the custom
7558
7558
  // comparator.
7559
7559
  this.Xt = new Ne((function(t, e) {
7560
- return ft.comparator(t.field, e.field);
7560
+ return ht.comparator(t.field, e.field);
7561
7561
  })), this.collectionId = null != t.collectionGroup ? t.collectionGroup : t.path.lastSegment(),
7562
7562
  this.en = t.orderBy, this.tn = [];
7563
7563
  for (var e = 0, n = t.filters; e < n.length; e++) {
@@ -7636,7 +7636,7 @@ function Go(t, e) {
7636
7636
  // We want to make sure only one segment created for one field. For example,
7637
7637
  // in case like a == 3 and a > 2, Index {a ASCENDING} will only be created
7638
7638
  // once.
7639
- for (var t = new Ne(ft.comparator), e = [], n = 0, r = this.tn; n < r.length; n++) {
7639
+ for (var t = new Ne(ht.comparator), e = [], n = 0, r = this.tn; n < r.length; n++) {
7640
7640
  var i = r[n];
7641
7641
  if (!i.field.isKeyField()) if ("array-contains" /* Operator.ARRAY_CONTAINS */ === i.op || "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ === i.op) e.push(new gt(i.field, 2 /* IndexKind.CONTAINS */)); else {
7642
7642
  if (t.has(i.field)) continue;
@@ -8118,7 +8118,7 @@ var tu = /** @class */ function() {
8118
8118
  n.push(a.value), r && (r = a.inclusive);
8119
8119
  }
8120
8120
  return new bn(n, r);
8121
- }(o, i), h = n.In(i, o, c), f = n.In(i, o, l), d = n.Tn(i, o, s), p = n.En(i.indexId, a, h, c.inclusive, f, l.inclusive, d);
8121
+ }(o, i), f = n.In(i, o, c), h = n.In(i, o, l), d = n.Tn(i, o, s), p = n.En(i.indexId, a, f, c.inclusive, h, l.inclusive, d);
8122
8122
  return Ct.forEach(p, (function(n) {
8123
8123
  return r.G(n, e.limit).next((function(e) {
8124
8124
  e.forEach((function(e) {
@@ -8144,18 +8144,18 @@ var tu = /** @class */ function() {
8144
8144
  * bounds.
8145
8145
  */
8146
8146
  t.prototype.En = function(t, e, n, r, i, o, u) {
8147
- for (var a = this, s = (null != e ? e.length : 1) * Math.max(n.length, i.length), c = s / (null != e ? e.length : 1), l = [], h = function(s) {
8148
- var h = e ? f.dn(e[s / c]) : nu, d = f.An(t, h, n[s % c], r), p = f.Rn(t, h, i[s % c], o), v = u.map((function(e) {
8149
- return a.An(t, h, e,
8147
+ for (var a = this, s = (null != e ? e.length : 1) * Math.max(n.length, i.length), c = s / (null != e ? e.length : 1), l = [], f = function(s) {
8148
+ var f = e ? h.dn(e[s / c]) : nu, d = h.An(t, f, n[s % c], r), p = h.Rn(t, f, i[s % c], o), v = u.map((function(e) {
8149
+ return a.An(t, f, e,
8150
8150
  /* inclusive= */ !0);
8151
8151
  }));
8152
- l.push.apply(l, f.createRange(d, p, v));
8153
- }, f = this, d = 0
8152
+ l.push.apply(l, h.createRange(d, p, v));
8153
+ }, h = this, d = 0
8154
8154
  // The number of total index scans we union together. This is similar to a
8155
8155
  // distributed normal form, but adapted for array values. We create a single
8156
8156
  // index range per value in an ARRAY_CONTAINS or ARRAY_CONTAINS_ANY filter
8157
8157
  // combined with the values from the query bounds.
8158
- ; d < s; ++d) h(d);
8158
+ ; d < s; ++d) f(d);
8159
8159
  return l;
8160
8160
  },
8161
8161
  /** Generates the lower bound for `arrayValue` and `directionalValue`. */ t.prototype.An = function(t, e, n, r) {
@@ -8181,7 +8181,7 @@ var tu = /** @class */ function() {
8181
8181
  return Ct.forEach(i, (function(e) {
8182
8182
  return n.Pn(t, e).next((function(t) {
8183
8183
  t ? 0 /* IndexType.NONE */ !== r && t.fields.length < function(t) {
8184
- for (var e = new Ne(ft.comparator), n = !1, r = 0, i = t.filters; r < i.length; r++) for (var o = 0, u = i[r].getFlattenedFilters(); o < u.length; o++) {
8184
+ for (var e = new Ne(ht.comparator), n = !1, r = 0, i = t.filters; r < i.length; r++) for (var o = 0, u = i[r].getFlattenedFilters(); o < u.length; o++) {
8185
8185
  var a = u[o];
8186
8186
  // __name__ is not an explicit segment of any index, so we don't need to
8187
8187
  // count it.
@@ -8248,10 +8248,10 @@ var tu = /** @class */ function() {
8248
8248
  var r = [];
8249
8249
  r.push(new Uo);
8250
8250
  for (var i = 0, o = 0, u = mt(t); o < u.length; o++) for (var a = u[o], s = n[i++], c = 0, l = r; c < l.length; c++) {
8251
- var h = l[c];
8251
+ var f = l[c];
8252
8252
  if (this.fn(e, a.fieldPath) && on(s)) r = this.gn(r, a, s); else {
8253
- var f = h.Yt(a.kind);
8254
- Ro.vt.It(s, f);
8253
+ var h = f.Yt(a.kind);
8254
+ Ro.vt.It(s, h);
8255
8255
  }
8256
8256
  }
8257
8257
  return this.pn(r);
@@ -8276,8 +8276,8 @@ var tu = /** @class */ function() {
8276
8276
  */
8277
8277
  t.prototype.gn = function(t, e, n) {
8278
8278
  for (var i = r([], t, !0), o = [], u = 0, a = n.arrayValue.values || []; u < a.length; u++) for (var s = a[u], c = 0, l = i; c < l.length; c++) {
8279
- var h = l[c], f = new Uo;
8280
- f.seed(h.zt()), Ro.vt.It(s, f.Yt(e.kind)), o.push(f);
8279
+ var f = l[c], h = new Uo;
8280
+ h.seed(f.zt()), Ro.vt.It(s, h.Yt(e.kind)), o.push(h);
8281
8281
  }
8282
8282
  return o;
8283
8283
  }, t.prototype.fn = function(t, e) {
@@ -8293,7 +8293,7 @@ var tu = /** @class */ function() {
8293
8293
  e.push(function(t, e) {
8294
8294
  var n = e ? new bt(e.sequenceNumber, new Tt(bo(e.readTime), new dt(Jt(e.documentKey)), e.largestBatchId)) : bt.empty(), r = t.fields.map((function(t) {
8295
8295
  var e = t[0], n = t[1];
8296
- return new gt(ft.fromServerFormat(e), n);
8296
+ return new gt(ht.fromServerFormat(e), n);
8297
8297
  }));
8298
8298
  return new pt(t.indexId, t.collectionGroup, r, n);
8299
8299
  }(t, n));
@@ -8386,11 +8386,11 @@ var tu = /** @class */ function() {
8386
8386
  for (var o = t.getIterator(), u = e.getIterator(), a = ke(o), s = ke(u); a || s; ) {
8387
8387
  var c = !1, l = !1;
8388
8388
  if (a && s) {
8389
- var h = n(a, s);
8390
- h < 0 ?
8389
+ var f = n(a, s);
8390
+ f < 0 ?
8391
8391
  // The element was removed if the next element in our ordered
8392
8392
  // walkthrough is only in `before`.
8393
- l = !0 : h > 0 && (
8393
+ l = !0 : f > 0 && (
8394
8394
  // The element was added if the next element in our ordered walkthrough
8395
8395
  // is only in `after`.
8396
8396
  c = !0);
@@ -8447,8 +8447,8 @@ var tu = /** @class */ function() {
8447
8447
  // If we encounter two bounds that will create an unmatchable key range,
8448
8448
  // then we return an empty set of key ranges.
8449
8449
  if (this.Cn(r[l], r[l + 1])) return [];
8450
- var h = [ r[l].indexId, this.uid, r[l].arrayValue, r[l].directionalValue, nu, [] ], f = [ r[l + 1].indexId, this.uid, r[l + 1].arrayValue, r[l + 1].directionalValue, nu, [] ];
8451
- c.push(IDBKeyRange.bound(h, f));
8450
+ var f = [ r[l].indexId, this.uid, r[l].arrayValue, r[l].directionalValue, nu, [] ], h = [ r[l + 1].indexId, this.uid, r[l + 1].arrayValue, r[l + 1].directionalValue, nu, [] ];
8451
+ c.push(IDBKeyRange.bound(f, h));
8452
8452
  }
8453
8453
  return c;
8454
8454
  }, t.prototype.Cn = function(t, e) {
@@ -8564,7 +8564,7 @@ function su(t) {
8564
8564
  * Delete a mutation batch and the associated document mutations.
8565
8565
  * @returns A PersistencePromise of the document mutations that were removed.
8566
8566
  */
8567
- function hu(t, e, n) {
8567
+ function fu(t, e, n) {
8568
8568
  var r = t.store("mutations"), i = t.store("documentMutations"), o = [], u = IDBKeyRange.only(n.batchId), a = 0, s = r.J({
8569
8569
  range: u
8570
8570
  }, (function(t, e, n) {
@@ -8573,9 +8573,9 @@ function hu(t, e, n) {
8573
8573
  o.push(s.next((function() {
8574
8574
  B(1 === a);
8575
8575
  })));
8576
- for (var c = [], l = 0, h = n.mutations; l < h.length; l++) {
8577
- var f = h[l], d = Xt(e, f.key.path, n.batchId);
8578
- o.push(i.delete(d)), c.push(f.key);
8576
+ for (var c = [], l = 0, f = n.mutations; l < f.length; l++) {
8577
+ var h = f[l], d = Xt(e, h.key.path, n.batchId);
8578
+ o.push(i.delete(d)), c.push(h.key);
8579
8579
  }
8580
8580
  return Ct.waitFor(o).next((function() {
8581
8581
  return c;
@@ -8584,7 +8584,7 @@ function hu(t, e, n) {
8584
8584
 
8585
8585
  /**
8586
8586
  * Returns an approximate size for the given document.
8587
- */ function fu(t) {
8587
+ */ function hu(t) {
8588
8588
  if (!t) return 0;
8589
8589
  var e;
8590
8590
  if (t.document) e = t.document; else if (t.unknownDocument) e = t.unknownDocument; else {
@@ -8683,13 +8683,13 @@ var du = /** @class */ function() {
8683
8683
  baseMutations: r,
8684
8684
  mutations: i
8685
8685
  };
8686
- }(i.serializer, i.userId, s), l = [], h = new Ne((function(t, e) {
8686
+ }(i.serializer, i.userId, s), l = [], f = new Ne((function(t, e) {
8687
8687
  return it(t.canonicalString(), e.canonicalString());
8688
- })), f = 0, d = r; f < d.length; f++) {
8689
- var p = d[f], v = Xt(i.userId, p.key.path, a);
8690
- h = h.add(p.key.path.popLast()), l.push(u.put(c)), l.push(o.put(v, Zt));
8688
+ })), h = 0, d = r; h < d.length; h++) {
8689
+ var p = d[h], v = Xt(i.userId, p.key.path, a);
8690
+ f = f.add(p.key.path.popLast()), l.push(u.put(c)), l.push(o.put(v, Zt));
8691
8691
  }
8692
- return h.forEach((function(e) {
8692
+ return f.forEach((function(e) {
8693
8693
  l.push(i.indexManager.addToCollectionParentIndex(t, e));
8694
8694
  })), t.addOnCommittedListener((function() {
8695
8695
  i.Fn[a] = s.keys();
@@ -8821,7 +8821,7 @@ var du = /** @class */ function() {
8821
8821
  }));
8822
8822
  }, t.prototype.removeMutationBatch = function(t, e) {
8823
8823
  var n = this;
8824
- return hu(t._e, this.userId, e).next((function(r) {
8824
+ return fu(t._e, this.userId, e).next((function(r) {
8825
8825
  return t.addOnCommittedListener((function() {
8826
8826
  n.On(e.batchId);
8827
8827
  })), Ct.forEach(r, (function(e) {
@@ -9331,7 +9331,7 @@ function bu(t) {
9331
9331
  })).next((function(e) {
9332
9332
  return i = e, a = Date.now(), c.removeOrphanedDocuments(t, n);
9333
9333
  })).next((function(t) {
9334
- return s = Date.now(), R() <= h.DEBUG && F("LruGarbageCollector", "LRU Garbage Collection\n\tCounted targets in ".concat(o - l, "ms\n\tDetermined least recently used ").concat(r, " in ") + (u - o) + "ms\n" + "\tRemoved ".concat(i, " targets in ") + (a - u) + "ms\n" + "\tRemoved ".concat(t, " documents in ") + (s - a) + "ms\n" + "Total Duration: ".concat(s - l, "ms")),
9334
+ return s = Date.now(), R() <= f.DEBUG && F("LruGarbageCollector", "LRU Garbage Collection\n\tCounted targets in ".concat(o - l, "ms\n\tDetermined least recently used ").concat(r, " in ") + (u - o) + "ms\n" + "\tRemoved ".concat(i, " targets in ") + (a - u) + "ms\n" + "\tRemoved ".concat(t, " documents in ") + (s - a) + "ms\n" + "Total Duration: ".concat(s - l, "ms")),
9335
9335
  Ct.resolve({
9336
9336
  didRun: !0,
9337
9337
  sequenceNumbersCollected: r,
@@ -9660,7 +9660,7 @@ function Nu(t, e) {
9660
9660
  }, (function(t, i) {
9661
9661
  r = {
9662
9662
  document: n.ir(e, i),
9663
- size: fu(i)
9663
+ size: hu(i)
9664
9664
  };
9665
9665
  })).next((function() {
9666
9666
  return r;
@@ -9685,7 +9685,7 @@ function Nu(t, e) {
9685
9685
  var n = this, r = gr(), i = new xe(dt.comparator);
9686
9686
  return this._r(t, e, (function(t, e) {
9687
9687
  var o = n.ir(t, e);
9688
- r = r.insert(t, o), i = i.insert(t, fu(e));
9688
+ r = r.insert(t, o), i = i.insert(t, hu(e));
9689
9689
  })).next((function() {
9690
9690
  return {
9691
9691
  documents: r,
@@ -9722,7 +9722,7 @@ function Nu(t, e) {
9722
9722
  null == i || i.incrementDocumentReadCount(t.length);
9723
9723
  for (var n = gr(), u = 0, a = t; u < a.length; u++) {
9724
9724
  var s = a[u], c = o.ir(dt.fromSegments(s.prefixPath.concat(s.collectionGroup, s.documentId)), s);
9725
- c.isFoundDocument() && (fr(e, c) || r.has(c.key)) && (
9725
+ c.isFoundDocument() && (hr(e, c) || r.has(c.key)) && (
9726
9726
  // Either the document matches the given query, or it is mutated.
9727
9727
  n = n.insert(c.key, c));
9728
9728
  }
@@ -9838,7 +9838,7 @@ function Nu(t, e) {
9838
9838
  if (n.push(e.cr.removeEntry(t, o, a.readTime)), u.isValidDocument()) {
9839
9839
  var s = yo(e.cr.serializer, u);
9840
9840
  i = i.add(o.path.popLast());
9841
- var c = fu(s);
9841
+ var c = hu(s);
9842
9842
  r += c - a.size, n.push(e.cr.addEntry(t, o, s));
9843
9843
  } else if (r -= a.size, e.trackRemovals) {
9844
9844
  // In order to track removals, we store a "sentinel delete" in the
@@ -10251,7 +10251,7 @@ e) {
10251
10251
  var o = i.get(t);
10252
10252
  void 0 !== o && Zr(o.mutation, r, Oe.empty(), at.now()),
10253
10253
  // Finally, insert the documents that still match the query
10254
- fr(e, r) && (n = n.insert(t, r));
10254
+ hr(e, r) && (n = n.insert(t, r));
10255
10255
  })), n;
10256
10256
  }));
10257
10257
  }, t;
@@ -10338,7 +10338,7 @@ e) {
10338
10338
  var i = this.Ir.get(r.largestBatchId).delete(n.key);
10339
10339
  this.Ir.set(r.largestBatchId, i);
10340
10340
  }
10341
- this.overlays = this.overlays.insert(n.key, new fi(e, n));
10341
+ this.overlays = this.overlays.insert(n.key, new hi(e, n));
10342
10342
  // Create the association of this overlay to the given largestBatchId.
10343
10343
  var o = this.Ir.get(e);
10344
10344
  void 0 === o && (o = Dr(), this.Ir.set(e, o)), this.Ir.set(e, o.add(n.key));
@@ -10609,7 +10609,7 @@ e) {
10609
10609
  ; a.hasNext(); ) {
10610
10610
  var s = a.getNext(), c = s.key, l = s.value.document;
10611
10611
  if (!o.isPrefixOf(c.path)) break;
10612
- c.path.length > o.length + 1 || Et(It(l), n) <= 0 || (r.has(l.key) || fr(e, l)) && (i = i.insert(l.key, l.mutableCopy()));
10612
+ c.path.length > o.length + 1 || Et(It(l), n) <= 0 || (r.has(l.key) || hr(e, l)) && (i = i.insert(l.key, l.mutableCopy()));
10613
10613
  }
10614
10614
  return Ct.resolve(i);
10615
10615
  }, t.prototype.getAllFromCollectionGroup = function(t, e, n, r) {
@@ -11048,9 +11048,9 @@ e) {
11048
11048
  var e = t.createObjectStore("documentOverlays", {
11049
11049
  keyPath: le
11050
11050
  });
11051
- e.createIndex("collectionPathOverlayIndex", he, {
11051
+ e.createIndex("collectionPathOverlayIndex", fe, {
11052
11052
  unique: !1
11053
- }), e.createIndex("collectionGroupOverlayIndex", fe, {
11053
+ }), e.createIndex("collectionGroupOverlayIndex", he, {
11054
11054
  unique: !1
11055
11055
  });
11056
11056
  }(t);
@@ -11100,7 +11100,7 @@ e) {
11100
11100
  }, t.prototype.ri = function(t) {
11101
11101
  var e = 0;
11102
11102
  return t.store("remoteDocuments").J((function(t, n) {
11103
- e += fu(n);
11103
+ e += hu(n);
11104
11104
  })).next((function() {
11105
11105
  var n = {
11106
11106
  byteSize: e
@@ -11116,7 +11116,7 @@ e) {
11116
11116
  return Ct.forEach(r, (function(r) {
11117
11117
  B(r.userId === n.userId);
11118
11118
  var i = _o(e.serializer, r);
11119
- return hu(t, n.userId, i).next((function() {}));
11119
+ return fu(t, n.userId, i).next((function() {}));
11120
11120
  }));
11121
11121
  }));
11122
11122
  }));
@@ -11267,10 +11267,10 @@ var na = "Failed to obtain exclusive access to the persistence layer. To allow s
11267
11267
  * If set to true, forcefully obtains database access. Existing tabs will
11268
11268
  * no longer be able to access IndexedDB.
11269
11269
  */
11270
- l, h) {
11271
- if (void 0 === h && (h = 17), this.allowTabSynchronization = e, this.persistenceKey = n,
11270
+ l, f) {
11271
+ if (void 0 === f && (f = 17), this.allowTabSynchronization = e, this.persistenceKey = n,
11272
11272
  this.clientId = r, this.ui = o, this.window = u, this.document = a, this.ci = c,
11273
- this.li = l, this.hi = h, this.Qr = null, this.Kr = !1, this.isPrimary = !1, this.networkEnabled = !0,
11273
+ this.li = l, this.hi = f, this.Qr = null, this.Kr = !1, this.isPrimary = !1, this.networkEnabled = !0,
11274
11274
  /** Our window.unload handler, if registered. */
11275
11275
  this.Pi = null, this.inForeground = !1,
11276
11276
  /** Our 'visibilitychange' listener if registered. */
@@ -11936,9 +11936,9 @@ var aa = /** @class */ function() {
11936
11936
  return o.result;
11937
11937
  }));
11938
11938
  }, t.prototype.es = function(t, e, n, r) {
11939
- return n.documentReadCount < this.ji ? (R() <= h.DEBUG && F("QueryEngine", "SDK will not create cache indexes for query:", hr(e), "since it only creates cache indexes for collection contains", "more than or equal to", this.ji, "documents"),
11940
- Ct.resolve()) : (R() <= h.DEBUG && F("QueryEngine", "Query:", hr(e), "scans", n.documentReadCount, "local documents and returns", r, "documents as results."),
11941
- n.documentReadCount > this.Hi * r ? (R() <= h.DEBUG && F("QueryEngine", "The SDK decides to create cache indexes for query:", hr(e), "as using cache indexes may help improve performance."),
11939
+ return n.documentReadCount < this.ji ? (R() <= f.DEBUG && F("QueryEngine", "SDK will not create cache indexes for query:", fr(e), "since it only creates cache indexes for collection contains", "more than or equal to", this.ji, "documents"),
11940
+ Ct.resolve()) : (R() <= f.DEBUG && F("QueryEngine", "Query:", fr(e), "scans", n.documentReadCount, "local documents and returns", r, "documents as results."),
11941
+ n.documentReadCount > this.Hi * r ? (R() <= f.DEBUG && F("QueryEngine", "The SDK decides to create cache indexes for query:", fr(e), "as using cache indexes may help improve performance."),
11942
11942
  this.indexManager.createTargetIndexes(t, ir(e))) : Ct.resolve());
11943
11943
  },
11944
11944
  /**
@@ -11981,7 +11981,7 @@ var aa = /** @class */ function() {
11981
11981
  var i = this;
11982
11982
  return er(e) || r.isEqual(st.min()) ? Ct.resolve(null) : this.Ji.getDocuments(t, n).next((function(o) {
11983
11983
  var u = i.ts(e, o);
11984
- return i.ns(e, u, n, r) ? Ct.resolve(null) : (R() <= h.DEBUG && F("QueryEngine", "Re-using previous result from %s to execute query: %s", r.toString(), hr(e)),
11984
+ return i.ns(e, u, n, r) ? Ct.resolve(null) : (R() <= f.DEBUG && F("QueryEngine", "Re-using previous result from %s to execute query: %s", r.toString(), fr(e)),
11985
11985
  i.rs(t, u, e, _t(r, -1)).next((function(t) {
11986
11986
  return t;
11987
11987
  })));
@@ -11994,7 +11994,7 @@ var aa = /** @class */ function() {
11994
11994
  // matching documents do not necessarily still match the query.
11995
11995
  var n = new Ne(pr(t));
11996
11996
  return e.forEach((function(e, r) {
11997
- fr(t, r) && (n = n.add(r));
11997
+ hr(t, r) && (n = n.add(r));
11998
11998
  })), n;
11999
11999
  },
12000
12000
  /**
@@ -12028,7 +12028,7 @@ var aa = /** @class */ function() {
12028
12028
  var i = "F" /* LimitType.First */ === t.limitType ? e.last() : e.first();
12029
12029
  return !!i && (i.hasPendingWrites || i.version.compareTo(r) > 0);
12030
12030
  }, t.prototype.Xi = function(t, e, n) {
12031
- return R() <= h.DEBUG && F("QueryEngine", "Using full collection scan to execute query:", hr(e)),
12031
+ return R() <= f.DEBUG && F("QueryEngine", "Using full collection scan to execute query:", fr(e)),
12032
12032
  this.Ji.getDocumentsMatchingQuery(t, e, Tt.min(), n);
12033
12033
  },
12034
12034
  /**
@@ -12103,7 +12103,7 @@ var aa = /** @class */ function() {
12103
12103
  /**
12104
12104
  * A tracker to keep a record of important details during database local query
12105
12105
  * execution.
12106
- */ function ha(
12106
+ */ function fa(
12107
12107
  /** Manages our in-memory or durable persistence. */
12108
12108
  t, e, n, r) {
12109
12109
  return new la(t, e, n, r);
@@ -12117,7 +12117,7 @@ t, e, n, r) {
12117
12117
  */
12118
12118
  // PORTING NOTE: Android and iOS only return the documents affected by the
12119
12119
  // change.
12120
- function fa(t, r) {
12120
+ function ha(t, r) {
12121
12121
  return e(this, void 0, void 0, (function() {
12122
12122
  var e;
12123
12123
  return n(this, (function(n) {
@@ -12135,9 +12135,9 @@ function fa(t, r) {
12135
12135
  ; a < s.length; a++) {
12136
12136
  var c = s[a];
12137
12137
  i.push(c.batchId);
12138
- for (var l = 0, h = c.mutations; l < h.length; l++) {
12139
- var f = h[l];
12140
- u = u.add(f.key);
12138
+ for (var l = 0, f = c.mutations; l < f.length; l++) {
12139
+ var h = f[l];
12140
+ u = u.add(h.key);
12141
12141
  }
12142
12142
  }
12143
12143
  for (var d = 0, p = r; d < p.length; d++) {
@@ -12532,13 +12532,13 @@ function Ta(t, e, n) {
12532
12532
  * queue.
12533
12533
  */ function Ea(t, r, i, o) {
12534
12534
  return e(this, void 0, void 0, (function() {
12535
- var e, u, a, s, c, l, h, f, d, p;
12535
+ var e, u, a, s, c, l, f, h, d, p;
12536
12536
  return n(this, (function(n) {
12537
12537
  switch (n.label) {
12538
12538
  case 0:
12539
- for (e = G(t), u = Dr(), a = gr(), s = 0, c = i; s < c.length; s++) l = c[s], h = r.Es(l.metadata.name),
12540
- l.document && (u = u.add(h)), (f = r.ds(l)).setReadTime(r.As(l.metadata.readTime)),
12541
- a = a.insert(h, f);
12539
+ for (e = G(t), u = Dr(), a = gr(), s = 0, c = i; s < c.length; s++) l = c[s], f = r.Es(l.metadata.name),
12540
+ l.document && (u = u.add(f)), (h = r.ds(l)).setReadTime(r.As(l.metadata.readTime)),
12541
+ a = a.insert(f, h);
12542
12542
  return d = e.cs.newChangeBuffer({
12543
12543
  trackRemovals: !0
12544
12544
  }), [ 4 /*yield*/ , ga(e, function(t) {
@@ -12764,7 +12764,7 @@ var Na = /** @class */ function() {
12764
12764
  return !(!t || !t.localStorage);
12765
12765
  }, t.prototype.start = function() {
12766
12766
  return e(this, void 0, void 0, (function() {
12767
- var t, e, r, i, o, u, a, s, c, l, h, f = this;
12767
+ var t, e, r, i, o, u, a, s, c, l, f, h = this;
12768
12768
  return n(this, (function(n) {
12769
12769
  switch (n.label) {
12770
12770
  case 0:
@@ -12773,12 +12773,12 @@ var Na = /** @class */ function() {
12773
12773
  case 1:
12774
12774
  for (t = n.sent(), e = 0, r = t; e < r.length; e++) (i = r[e]) !== this.ps && (o = this.getItem(xa(this.persistenceKey, i))) && (u = ka.Rs(i, o)) && (this.Ss = this.Ss.insert(u.clientId, u));
12775
12775
  for (this.Ns(), (a = this.storage.getItem(this.xs)) && (s = this.Ls(a)) && this.Bs(s),
12776
- c = 0, l = this.bs; c < l.length; c++) h = l[c], this.ws(h);
12776
+ c = 0, l = this.bs; c < l.length; c++) f = l[c], this.ws(f);
12777
12777
  return this.bs = [],
12778
12778
  // Register a window unload hook to remove the client metadata entry from
12779
12779
  // WebStorage even if `shutdown()` was not called.
12780
12780
  this.window.addEventListener("pagehide", (function() {
12781
- return f.shutdown();
12781
+ return h.shutdown();
12782
12782
  })), this.started = !0, [ 2 /*return*/ ];
12783
12783
  }
12784
12784
  }));
@@ -13247,10 +13247,10 @@ var Ua = {
13247
13247
  a.encodeInitMessageHeaders = !0;
13248
13248
  var c = i.join("");
13249
13249
  F(za, "Creating RPC '".concat(t, "' stream ").concat(r, ": ").concat(c), a);
13250
- var l = o.createWebChannel(c, a), h = !1, f = !1, d = new Ba({
13250
+ var l = o.createWebChannel(c, a), f = !1, h = !1, d = new Ba({
13251
13251
  Io: function(e) {
13252
- f ? F(za, "Not sending because RPC '".concat(t, "' stream ").concat(r, " is closed:"), e) : (h || (F(za, "Opening RPC '".concat(t, "' stream ").concat(r, " transport.")),
13253
- l.open(), h = !0), F(za, "RPC '".concat(t, "' stream ").concat(r, " sending:"), e),
13252
+ h ? F(za, "Not sending because RPC '".concat(t, "' stream ").concat(r, " is closed:"), e) : (f || (F(za, "Opening RPC '".concat(t, "' stream ").concat(r, " transport.")),
13253
+ l.open(), f = !0), F(za, "RPC '".concat(t, "' stream ").concat(r, " sending:"), e),
13254
13254
  l.send(e));
13255
13255
  },
13256
13256
  To: function() {
@@ -13279,16 +13279,16 @@ var Ua = {
13279
13279
  // Note that eventually this function could go away if we are confident
13280
13280
  // enough the code is exception free.
13281
13281
  return p(l, D.EventType.OPEN, (function() {
13282
- f || (F(za, "RPC '".concat(t, "' stream ").concat(r, " transport opened.")), d.yo());
13282
+ h || (F(za, "RPC '".concat(t, "' stream ").concat(r, " transport opened.")), d.yo());
13283
13283
  })), p(l, D.EventType.CLOSE, (function() {
13284
- f || (f = !0, F(za, "RPC '".concat(t, "' stream ").concat(r, " transport closed")),
13284
+ h || (h = !0, F(za, "RPC '".concat(t, "' stream ").concat(r, " transport closed")),
13285
13285
  d.So());
13286
13286
  })), p(l, D.EventType.ERROR, (function(e) {
13287
- f || (f = !0, L(za, "RPC '".concat(t, "' stream ").concat(r, " transport errored:"), e),
13287
+ h || (h = !0, L(za, "RPC '".concat(t, "' stream ").concat(r, " transport errored:"), e),
13288
13288
  d.So(new j(K.UNAVAILABLE, "The operation could not be completed")));
13289
13289
  })), p(l, D.EventType.MESSAGE, (function(e) {
13290
13290
  var n;
13291
- if (!f) {
13291
+ if (!h) {
13292
13292
  var i = e.data[0];
13293
13293
  B(!!i);
13294
13294
  // TODO(b/35143891): There is a bug in One Platform that caused errors
@@ -13315,7 +13315,7 @@ var Ua = {
13315
13315
  }(a), c = u.message;
13316
13316
  void 0 === s && (s = K.INTERNAL, c = "Unknown error status: " + a + " with message " + u.message),
13317
13317
  // Mark closed so no further events are propagated
13318
- f = !0, d.So(new j(s, c)), l.close();
13318
+ h = !0, d.So(new j(s, c)), l.close();
13319
13319
  } else F(za, "RPC '".concat(t, "' stream ").concat(r, " received:"), i), d.bo(i);
13320
13320
  }
13321
13321
  })), p(u, C.STAT_EVENT, (function(e) {
@@ -13859,11 +13859,11 @@ function Ka() {
13859
13859
  e.documentChange;
13860
13860
  var s = e.documentChange;
13861
13861
  s.document, s.document.name, s.document.updateTime;
13862
- var c = Qi(t, s.document.name), l = Bi(s.document.updateTime), h = s.document.createTime ? Bi(s.document.createTime) : st.min(), f = new yn({
13862
+ var c = Qi(t, s.document.name), l = Bi(s.document.updateTime), f = s.document.createTime ? Bi(s.document.createTime) : st.min(), h = new yn({
13863
13863
  mapValue: {
13864
13864
  fields: s.document.fields
13865
13865
  }
13866
- }), d = wn.newFoundDocument(c, l, h, f), p = s.targetIds || [], v = s.removedTargetIds || [];
13866
+ }), d = wn.newFoundDocument(c, l, f, h), p = s.targetIds || [], v = s.removedTargetIds || [];
13867
13867
  n = new xi(p, v, d.key, d);
13868
13868
  } else if ("documentDelete" in e) {
13869
13869
  e.documentDelete;
@@ -14398,7 +14398,7 @@ function ls(t) {
14398
14398
  }));
14399
14399
  }
14400
14400
 
14401
- function hs(t) {
14401
+ function fs(t) {
14402
14402
  return e(this, void 0, void 0, (function() {
14403
14403
  return n(this, (function(e) {
14404
14404
  return t.N_.forEach((function(e, n) {
@@ -14408,7 +14408,7 @@ function hs(t) {
14408
14408
  }));
14409
14409
  }
14410
14410
 
14411
- function fs(t, r) {
14411
+ function hs(t, r) {
14412
14412
  return e(this, void 0, void 0, (function() {
14413
14413
  return n(this, (function(e) {
14414
14414
  return cs(t),
@@ -14686,7 +14686,7 @@ function _s(t, r, i) {
14686
14686
  return n(this, (function(n) {
14687
14687
  switch (n.label) {
14688
14688
  case 0:
14689
- return e = t.O_.shift(), o = hi.from(e, r, i), [ 4 /*yield*/ , vs(t, (function() {
14689
+ return e = t.O_.shift(), o = fi.from(e, r, i), [ 4 /*yield*/ , vs(t, (function() {
14690
14690
  return t.remoteSyncer.applySuccessfulWrite(o);
14691
14691
  })) ];
14692
14692
 
@@ -14837,8 +14837,8 @@ function Ts(t, r) {
14837
14837
  return r.w_(), new Ha(e, r.connection, r.authCredentials, r.appCheckCredentials, r.serializer, n);
14838
14838
  }(t.datastore, t.asyncQueue, {
14839
14839
  Eo: ls.bind(null, t),
14840
- Ro: hs.bind(null, t),
14841
- mo: fs.bind(null, t),
14840
+ Ro: fs.bind(null, t),
14841
+ mo: hs.bind(null, t),
14842
14842
  d_: ds.bind(null, t)
14843
14843
  }), t.B_.push((function(i) {
14844
14844
  return e(r, void 0, void 0, (function() {
@@ -15277,7 +15277,7 @@ function Ms(t, r) {
15277
15277
  return [ 3 /*break*/ , 10 ];
15278
15278
 
15279
15279
  case 9:
15280
- return c = n.sent(), l = Cs(c, "Initialization of query '".concat(hr(r.query), "' failed")),
15280
+ return c = n.sent(), l = Cs(c, "Initialization of query '".concat(fr(r.query), "' failed")),
15281
15281
  [ 2 /*return*/ , void r.onError(l) ];
15282
15282
 
15283
15283
  case 10:
@@ -15620,32 +15620,32 @@ function Qs(t) {
15620
15620
  var n = this, r = e ? e.fa : new Os, i = e ? e.Ra : this.Ra, o = e ? e.mutatedKeys : this.mutatedKeys, u = i, a = !1, s = "F" /* LimitType.First */ === this.query.limitType && i.size === this.query.limit ? i.last() : null, c = "L" /* LimitType.Last */ === this.query.limitType && i.size === this.query.limit ? i.first() : null;
15621
15621
  // Drop documents out to meet limit/limitToLast requirement.
15622
15622
  if (t.inorderTraversal((function(t, e) {
15623
- var l = i.get(t), h = fr(n.query, e) ? e : null, f = !!l && n.mutatedKeys.has(l.key), d = !!h && (h.hasLocalMutations ||
15623
+ var l = i.get(t), f = hr(n.query, e) ? e : null, h = !!l && n.mutatedKeys.has(l.key), d = !!f && (f.hasLocalMutations ||
15624
15624
  // We only consider committed mutations for documents that were
15625
15625
  // mutated during the lifetime of the view.
15626
- n.mutatedKeys.has(h.key) && h.hasCommittedMutations), p = !1;
15626
+ n.mutatedKeys.has(f.key) && f.hasCommittedMutations), p = !1;
15627
15627
  // Calculate change
15628
- l && h ? l.data.isEqual(h.data) ? f !== d && (r.track({
15628
+ l && f ? l.data.isEqual(f.data) ? h !== d && (r.track({
15629
15629
  type: 3 /* ChangeType.Metadata */ ,
15630
- doc: h
15631
- }), p = !0) : n.ga(l, h) || (r.track({
15630
+ doc: f
15631
+ }), p = !0) : n.ga(l, f) || (r.track({
15632
15632
  type: 2 /* ChangeType.Modified */ ,
15633
- doc: h
15634
- }), p = !0, (s && n.Aa(h, s) > 0 || c && n.Aa(h, c) < 0) && (
15633
+ doc: f
15634
+ }), p = !0, (s && n.Aa(f, s) > 0 || c && n.Aa(f, c) < 0) && (
15635
15635
  // This doc moved from inside the limit to outside the limit.
15636
15636
  // That means there may be some other doc in the local cache
15637
15637
  // that should be included instead.
15638
- a = !0)) : !l && h ? (r.track({
15638
+ a = !0)) : !l && f ? (r.track({
15639
15639
  type: 0 /* ChangeType.Added */ ,
15640
- doc: h
15641
- }), p = !0) : l && !h && (r.track({
15640
+ doc: f
15641
+ }), p = !0) : l && !f && (r.track({
15642
15642
  type: 1 /* ChangeType.Removed */ ,
15643
15643
  doc: l
15644
15644
  }), p = !0, (s || c) && (
15645
15645
  // A doc was removed from a full limit query. We'll need to
15646
15646
  // requery from the local cache to see if we know about some other
15647
15647
  // doc that should be in the results.
15648
- a = !0)), p && (h ? (u = u.add(h), o = d ? o.add(t) : o.delete(t)) : (u = u.delete(t),
15648
+ a = !0)), p && (f ? (u = u.add(f), o = d ? o.add(t) : o.delete(t)) : (u = u.delete(t),
15649
15649
  o = o.delete(t)));
15650
15650
  })), null !== this.query.limit) for (;u.size > this.query.limit; ) {
15651
15651
  var l = "F" /* LimitType.First */ === this.query.limitType ? u.last() : u.first();
@@ -15967,7 +15967,7 @@ function ec(t, r, i, o) {
15967
15967
  * snapshot.
15968
15968
  */ function nc(t, r, i, o, u) {
15969
15969
  return e(this, void 0, void 0, (function() {
15970
- var a, s, c, l, h, f;
15970
+ var a, s, c, l, f, h;
15971
15971
  return n(this, (function(d) {
15972
15972
  switch (d.label) {
15973
15973
  case 0:
@@ -16007,10 +16007,10 @@ function ec(t, r, i, o) {
16007
16007
 
16008
16008
  case 1:
16009
16009
  return a = d.sent(), s = new Hs(r, a.Ts), c = s.ma(a.documents), l = Si.createSynthesizedTargetChangeForCurrentChange(i, o && "Offline" /* OnlineState.Offline */ !== t.onlineState, u),
16010
- h = s.applyChanges(c,
16011
- /* limboResolutionEnabled= */ t.isPrimaryClient, l), mc(t, i, h.wa), f = new Ys(r, i, s),
16012
- [ 2 /*return*/ , (t.Fa.set(r, f), t.Ma.has(i) ? t.Ma.get(i).push(r) : t.Ma.set(i, [ r ]),
16013
- h.snapshot) ];
16010
+ f = s.applyChanges(c,
16011
+ /* limboResolutionEnabled= */ t.isPrimaryClient, l), mc(t, i, f.wa), h = new Ys(r, i, s),
16012
+ [ 2 /*return*/ , (t.Fa.set(r, h), t.Ma.has(i) ? t.Ma.get(i).push(r) : t.Ma.set(i, [ r ]),
16013
+ f.snapshot) ];
16014
16014
  }
16015
16015
  }));
16016
16016
  }));
@@ -16296,7 +16296,7 @@ function cc(t, r) {
16296
16296
  // raise events immediately (depending on whether the watcher is caught
16297
16297
  // up), so we raise user callbacks first so that they consistently happen
16298
16298
  // before listen events.
16299
- dc(e, i, /*error=*/ null), fc(e, i), e.sharedClientState.updateMutationState(i, "acknowledged"),
16299
+ dc(e, i, /*error=*/ null), hc(e, i), e.sharedClientState.updateMutationState(i, "acknowledged"),
16300
16300
  [ 4 /*yield*/ , wc(e, o) ];
16301
16301
 
16302
16302
  case 3:
@@ -16352,7 +16352,7 @@ function lc(t, r, i) {
16352
16352
  // raise events immediately (depending on whether the watcher is caught up),
16353
16353
  // so we raise user callbacks first so that they consistently happen before
16354
16354
  // listen events.
16355
- dc(e, r, i), fc(e, r), e.sharedClientState.updateMutationState(r, "rejected", i),
16355
+ dc(e, r, i), hc(e, r), e.sharedClientState.updateMutationState(r, "rejected", i),
16356
16356
  [ 4 /*yield*/ , wc(e, o) ];
16357
16357
 
16358
16358
  case 3:
@@ -16378,7 +16378,7 @@ function lc(t, r, i) {
16378
16378
  /**
16379
16379
  * Registers a user callback that resolves when all pending mutations at the moment of calling
16380
16380
  * are acknowledged .
16381
- */ function hc(t, r) {
16381
+ */ function fc(t, r) {
16382
16382
  return e(this, void 0, void 0, (function() {
16383
16383
  var e, i, o, u, a;
16384
16384
  return n(this, (function(n) {
@@ -16413,7 +16413,7 @@ function lc(t, r, i) {
16413
16413
  /**
16414
16414
  * Triggers the callbacks that are waiting for this batch id to get acknowledged by server,
16415
16415
  * if there are any.
16416
- */ function fc(t, e) {
16416
+ */ function hc(t, e) {
16417
16417
  (t.ka.get(e) || []).forEach((function(t) {
16418
16418
  t.resolve();
16419
16419
  })), t.ka.delete(e)
@@ -16513,7 +16513,7 @@ function wc(t, r, i) {
16513
16513
  case 1:
16514
16514
  return c.sent(), o.Ca.d_(u), [ 4 /*yield*/ , function(t, r) {
16515
16515
  return e(this, void 0, void 0, (function() {
16516
- var e, i, o, u, a, s, c, l, h;
16516
+ var e, i, o, u, a, s, c, l, f;
16517
16517
  return n(this, (function(n) {
16518
16518
  switch (n.label) {
16519
16519
  case 0:
@@ -16546,9 +16546,9 @@ function wc(t, r, i) {
16546
16546
 
16547
16547
  case 4:
16548
16548
  for (o = 0, u = r; o < u.length; o++) a = u[o], s = a.targetId, a.fromCache || (c = e.os.get(s),
16549
- l = c.snapshotVersion, h = c.withLastLimboFreeSnapshotVersion(l),
16549
+ l = c.snapshotVersion, f = c.withLastLimboFreeSnapshotVersion(l),
16550
16550
  // Advance the last limbo free snapshot version
16551
- e.os = e.os.insert(s, h));
16551
+ e.os = e.os.insert(s, f));
16552
16552
  return [ 2 /*return*/ ];
16553
16553
  }
16554
16554
  }));
@@ -16572,7 +16572,7 @@ function bc(t, r) {
16572
16572
  switch (n.label) {
16573
16573
  case 0:
16574
16574
  return (e = G(t)).currentUser.isEqual(r) ? [ 3 /*break*/ , 3 ] : (F("SyncEngine", "User change. New user:", r.toKey()),
16575
- [ 4 /*yield*/ , fa(e.localStore, r) ]);
16575
+ [ 4 /*yield*/ , ha(e.localStore, r) ]);
16576
16576
 
16577
16577
  case 1:
16578
16578
  return i = n.sent(), e.currentUser = r,
@@ -16675,7 +16675,7 @@ function Ec(t, r, i, o) {
16675
16675
  "acknowledged" === i || "rejected" === i ? (
16676
16676
  // NOTE: Both these methods are no-ops for batches that originated from
16677
16677
  // other clients.
16678
- dc(e, r, o || null), fc(e, r), function(t, e) {
16678
+ dc(e, r, o || null), hc(e, r), function(t, e) {
16679
16679
  G(G(t).mutationQueue).On(e);
16680
16680
  }(e.localStore, r)) : U(), n.label = 4;
16681
16681
 
@@ -16754,7 +16754,7 @@ function Sc(t, r) {
16754
16754
 
16755
16755
  function xc(t, r, i) {
16756
16756
  return e(this, void 0, void 0, (function() {
16757
- var e, i, o, u, a, s, c, l, h, f, d, p, v, m;
16757
+ var e, i, o, u, a, s, c, l, f, h, d, p, v, m;
16758
16758
  return n(this, (function(n) {
16759
16759
  switch (n.label) {
16760
16760
  case 0:
@@ -16768,16 +16768,16 @@ function xc(t, r, i) {
16768
16768
  // from LocalStore (as the resume token and the snapshot version
16769
16769
  // might have changed) and reconcile their views with the persisted
16770
16770
  // state (the list of syncedDocuments may have gotten out of sync).
16771
- c = n.sent(), h = 0, f = l, n.label = 3;
16771
+ c = n.sent(), f = 0, h = l, n.label = 3;
16772
16772
 
16773
16773
  case 3:
16774
- return h < f.length ? (d = f[h], p = e.Fa.get(d), [ 4 /*yield*/ , Ic(e, p) ]) : [ 3 /*break*/ , 6 ];
16774
+ return f < h.length ? (d = h[f], p = e.Fa.get(d), [ 4 /*yield*/ , Ic(e, p) ]) : [ 3 /*break*/ , 6 ];
16775
16775
 
16776
16776
  case 4:
16777
16777
  (v = n.sent()).snapshot && o.push(v.snapshot), n.label = 5;
16778
16778
 
16779
16779
  case 5:
16780
- return h++, [ 3 /*break*/ , 3 ];
16780
+ return f++, [ 3 /*break*/ , 3 ];
16781
16781
 
16782
16782
  case 6:
16783
16783
  return [ 3 /*break*/ , 11 ];
@@ -16883,7 +16883,7 @@ function Nc(t, r, i, o) {
16883
16883
 
16884
16884
  /** Adds or removes Watch targets for queries from different tabs. */ function Ac(t, r, i) {
16885
16885
  return e(this, void 0, void 0, (function() {
16886
- var e, o, u, a, s, c, l, h, f, d;
16886
+ var e, o, u, a, s, c, l, f, h, d;
16887
16887
  return n(this, (function(p) {
16888
16888
  switch (p.label) {
16889
16889
  case 0:
@@ -16926,16 +16926,16 @@ function Nc(t, r, i, o) {
16926
16926
  return [ 2 /*return*/ ];
16927
16927
  }
16928
16928
  }));
16929
- }, h = 0, f = i, p.label = 7;
16929
+ }, f = 0, h = i, p.label = 7;
16930
16930
 
16931
16931
  case 7:
16932
- return h < f.length ? (d = f[h], [ 5 /*yield**/ , l(d) ]) : [ 3 /*break*/ , 10 ];
16932
+ return f < h.length ? (d = h[f], [ 5 /*yield**/ , l(d) ]) : [ 3 /*break*/ , 10 ];
16933
16933
 
16934
16934
  case 8:
16935
16935
  p.sent(), p.label = 9;
16936
16936
 
16937
16937
  case 9:
16938
- return h++, [ 3 /*break*/ , 7 ];
16938
+ return f++, [ 3 /*break*/ , 7 ];
16939
16939
 
16940
16940
  case 10:
16941
16941
  return [ 2 /*return*/ ];
@@ -17097,7 +17097,7 @@ var Rc = /** @class */ function() {
17097
17097
  }, t.prototype.Ha = function(t, e) {
17098
17098
  return null;
17099
17099
  }, t.prototype.za = function(t) {
17100
- return ha(this.persistence, new ca, t.initialUser, this.serializer);
17100
+ return fa(this.persistence, new ca, t.initialUser, this.serializer);
17101
17101
  }, t.prototype.Ga = function(t) {
17102
17102
  return new Yu(Zu.Zr, this.serializer);
17103
17103
  }, t.prototype.Wa = function(t) {
@@ -17181,7 +17181,7 @@ var Vc = /** @class */ function(e) {
17181
17181
  }));
17182
17182
  }));
17183
17183
  }, i.prototype.za = function(t) {
17184
- return ha(this.persistence, new ca, t.initialUser, this.serializer);
17184
+ return fa(this.persistence, new ca, t.initialUser, this.serializer);
17185
17185
  }, i.prototype.ja = function(t, e) {
17186
17186
  var n = this.persistence.referenceDelegate.garbageCollector;
17187
17187
  return new Su(n, t.asyncQueue, e);
@@ -17956,7 +17956,7 @@ var Uc = /** @class */ function() {
17956
17956
  return n(this, (function(e) {
17957
17957
  switch (e.label) {
17958
17958
  case 0:
17959
- return o.isEqual(t) ? [ 3 /*break*/ , 2 ] : [ 4 /*yield*/ , fa(r.localStore, t) ];
17959
+ return o.isEqual(t) ? [ 3 /*break*/ , 2 ] : [ 4 /*yield*/ , ha(r.localStore, t) ];
17960
17960
 
17961
17961
  case 1:
17962
17962
  e.sent(), o = t, e.label = 2;
@@ -18340,7 +18340,7 @@ e) {
18340
18340
  return t;
18341
18341
  }
18342
18342
 
18343
- function hl(t, e) {
18343
+ function fl(t, e) {
18344
18344
  if (e <= 0) throw new j(K.INVALID_ARGUMENT, "Function ".concat(t, "() requires a positive number, but it was: ").concat(e, "."));
18345
18345
  }
18346
18346
 
@@ -18365,7 +18365,7 @@ function hl(t, e) {
18365
18365
  * A concrete type describing all the values that can be applied via a
18366
18366
  * user-supplied `FirestoreSettings` object. This is a separate type so that
18367
18367
  * defaults can be supplied and the value can be checked for equality.
18368
- */ var fl = /** @class */ function() {
18368
+ */ var hl = /** @class */ function() {
18369
18369
  function t(t) {
18370
18370
  var e, n;
18371
18371
  if (void 0 === t.host) {
@@ -18405,7 +18405,7 @@ function hl(t, e) {
18405
18405
  /**
18406
18406
  * Whether it's a Firestore or Firestore Lite instance.
18407
18407
  */
18408
- this.type = "firestore-lite", this._persistenceKey = "(lite)", this._settings = new fl({}),
18408
+ this.type = "firestore-lite", this._persistenceKey = "(lite)", this._settings = new hl({}),
18409
18409
  this._settingsFrozen = !1,
18410
18410
  // A task that is assigned when the terminate() is invoked and resolved when
18411
18411
  // all components have shut down. Otherwise, Firestore is not terminated,
@@ -18438,7 +18438,7 @@ function hl(t, e) {
18438
18438
  configurable: !0
18439
18439
  }), t.prototype._setSettings = function(t) {
18440
18440
  if (this._settingsFrozen) throw new j(K.FAILED_PRECONDITION, "Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
18441
- this._settings = new fl(t), void 0 !== t.credentials && (this._authCredentials = function(t) {
18441
+ this._settings = new hl(t), void 0 !== t.credentials && (this._authCredentials = function(t) {
18442
18442
  if (!t) return new J;
18443
18443
  switch (t.type) {
18444
18444
  case "firstParty":
@@ -19338,7 +19338,7 @@ function Fl(t) {
19338
19338
  return n(this, (function(n) {
19339
19339
  switch (n.label) {
19340
19340
  case 0:
19341
- return e = hc, [ 4 /*yield*/ , Zc(t) ];
19341
+ return e = fc, [ 4 /*yield*/ , Zc(t) ];
19342
19342
 
19343
19343
  case 1:
19344
19344
  return [ 2 /*return*/ , e.apply(void 0, [ n.sent(), i ]) ];
@@ -19687,7 +19687,7 @@ function(t, e) {
19687
19687
  function t() {
19688
19688
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
19689
19689
  for (var n = 0; n < t.length; ++n) if (0 === t[n].length) throw new j(K.INVALID_ARGUMENT, "Invalid field name at argument $(i + 1). Field names must not be empty.");
19690
- this._internalPath = new ft(t);
19690
+ this._internalPath = new ht(t);
19691
19691
  }
19692
19692
  /**
19693
19693
  * Returns true if this `FieldPath` is equal to the provided one.
@@ -19875,7 +19875,7 @@ function(t) {
19875
19875
  }
19876
19876
  }
19877
19877
 
19878
- /** A "context" object passed around while parsing user data. */ var th = /** @class */ function() {
19878
+ /** A "context" object passed around while parsing user data. */ var tf = /** @class */ function() {
19879
19879
  /**
19880
19880
  * Initializes a ParseContext with the given source and path.
19881
19881
  *
@@ -19935,7 +19935,7 @@ function(t) {
19935
19935
  xu: !0
19936
19936
  });
19937
19937
  }, t.prototype.Bu = function(t) {
19938
- return bh(t, this.settings.methodName, this.settings.ku || !1, this.path, this.settings.qu);
19938
+ return _f(t, this.settings.methodName, this.settings.ku || !1, this.path, this.settings.qu);
19939
19939
  },
19940
19940
  /** Returns 'true' if 'fieldPath' was traversed when creating this context. */ t.prototype.contains = function(t) {
19941
19941
  return void 0 !== this.fieldMask.find((function(e) {
@@ -19951,17 +19951,17 @@ function(t) {
19951
19951
  if (0 === t.length) throw this.Bu("Document fields must not be empty");
19952
19952
  if ($l(this.Cu) && Yl.test(t)) throw this.Bu('Document fields cannot begin and end with "__"');
19953
19953
  }, t;
19954
- }(), eh = /** @class */ function() {
19954
+ }(), ef = /** @class */ function() {
19955
19955
  function t(t, e, n) {
19956
19956
  this.databaseId = t, this.ignoreUndefinedProperties = e, this.serializer = n || Qa(t)
19957
19957
  /** Creates a new top-level parse context. */;
19958
19958
  }
19959
19959
  return t.prototype.Qu = function(t, e, n, r) {
19960
- return void 0 === r && (r = !1), new th({
19960
+ return void 0 === r && (r = !1), new tf({
19961
19961
  Cu: t,
19962
19962
  methodName: e,
19963
19963
  qu: n,
19964
- path: ft.emptyPath(),
19964
+ path: ht.emptyPath(),
19965
19965
  xu: !1,
19966
19966
  ku: r
19967
19967
  }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);
@@ -19971,21 +19971,21 @@ function(t) {
19971
19971
  /**
19972
19972
  * Helper for parsing raw user input (provided via the API) into internal model
19973
19973
  * classes.
19974
- */ function nh(t) {
19974
+ */ function nf(t) {
19975
19975
  var e = t._freezeSettings(), n = Qa(t._databaseId);
19976
- return new eh(t._databaseId, !!e.ignoreUndefinedProperties, n);
19976
+ return new ef(t._databaseId, !!e.ignoreUndefinedProperties, n);
19977
19977
  }
19978
19978
 
19979
- /** Parse document data from a set() call. */ function rh(t, e, n, r, i, o) {
19979
+ /** Parse document data from a set() call. */ function rf(t, e, n, r, i, o) {
19980
19980
  void 0 === o && (o = {});
19981
19981
  var u = t.Qu(o.merge || o.mergeFields ? 2 /* UserDataSource.MergeSet */ : 0 /* UserDataSource.Set */ , e, n, i);
19982
- mh("Data must be an object, but it was:", u, r);
19983
- var a, s, c = ph(r, u);
19982
+ yf("Data must be an object, but it was:", u, r);
19983
+ var a, s, c = vf(r, u);
19984
19984
  if (o.merge) a = new Oe(u.fieldMask), s = u.fieldTransforms; else if (o.mergeFields) {
19985
- for (var l = [], h = 0, f = o.mergeFields; h < f.length; h++) {
19986
- var d = yh(e, f[h], n);
19985
+ for (var l = [], f = 0, h = o.mergeFields; f < h.length; f++) {
19986
+ var d = gf(e, h[f], n);
19987
19987
  if (!u.contains(d)) throw new j(K.INVALID_ARGUMENT, "Field '".concat(d, "' is specified in your field mask but missing from your input data."));
19988
- _h(l, d) || l.push(d);
19988
+ If(l, d) || l.push(d);
19989
19989
  }
19990
19990
  a = new Oe(l), s = u.fieldTransforms.filter((function(t) {
19991
19991
  return a.covers(t.field);
@@ -19994,7 +19994,7 @@ function(t) {
19994
19994
  return new Xl(new yn(c), a, s);
19995
19995
  }
19996
19996
 
19997
- var ih = /** @class */ function(e) {
19997
+ var of = /** @class */ function(e) {
19998
19998
  function n() {
19999
19999
  return null !== e && e.apply(this, arguments) || this;
20000
20000
  }
@@ -20023,8 +20023,8 @@ var ih = /** @class */ function(e) {
20023
20023
  * context.
20024
20024
  * @param context - The parent context.
20025
20025
  * @param arrayElement - Whether or not the FieldValue has an array.
20026
- */ function oh(t, e, n) {
20027
- return new th({
20026
+ */ function uf(t, e, n) {
20027
+ return new tf({
20028
20028
  Cu: 3 /* UserDataSource.Argument */ ,
20029
20029
  qu: e.settings.qu,
20030
20030
  methodName: t._methodName,
@@ -20032,7 +20032,7 @@ var ih = /** @class */ function(e) {
20032
20032
  }, e.databaseId, e.serializer, e.ignoreUndefinedProperties);
20033
20033
  }
20034
20034
 
20035
- var uh = /** @class */ function(e) {
20035
+ var af = /** @class */ function(e) {
20036
20036
  function n() {
20037
20037
  return null !== e && e.apply(this, arguments) || this;
20038
20038
  }
@@ -20041,35 +20041,35 @@ var uh = /** @class */ function(e) {
20041
20041
  }, n.prototype.isEqual = function(t) {
20042
20042
  return t instanceof n;
20043
20043
  }, n;
20044
- }(Wl), ah = /** @class */ function(e) {
20044
+ }(Wl), sf = /** @class */ function(e) {
20045
20045
  function n(t, n) {
20046
20046
  var r = this;
20047
20047
  return (r = e.call(this, t) || this).Ku = n, r;
20048
20048
  }
20049
20049
  return t(n, e), n.prototype._toFieldTransform = function(t) {
20050
- var e = oh(this, t,
20050
+ var e = uf(this, t,
20051
20051
  /*array=*/ !0), n = this.Ku.map((function(t) {
20052
- return dh(t, e);
20052
+ return pf(t, e);
20053
20053
  })), r = new Lr(n);
20054
20054
  return new jr(t.path, r);
20055
20055
  }, n.prototype.isEqual = function(t) {
20056
20056
  return t instanceof n && v(this.Ku, t.Ku);
20057
20057
  }, n;
20058
- }(Wl), sh = /** @class */ function(e) {
20058
+ }(Wl), cf = /** @class */ function(e) {
20059
20059
  function n(t, n) {
20060
20060
  var r = this;
20061
20061
  return (r = e.call(this, t) || this).Ku = n, r;
20062
20062
  }
20063
20063
  return t(n, e), n.prototype._toFieldTransform = function(t) {
20064
- var e = oh(this, t,
20064
+ var e = uf(this, t,
20065
20065
  /*array=*/ !0), n = this.Ku.map((function(t) {
20066
- return dh(t, e);
20066
+ return pf(t, e);
20067
20067
  })), r = new Ur(n);
20068
20068
  return new jr(t.path, r);
20069
20069
  }, n.prototype.isEqual = function(t) {
20070
20070
  return t instanceof n && v(this.Ku, t.Ku);
20071
20071
  }, n;
20072
- }(Wl), ch = /** @class */ function(e) {
20072
+ }(Wl), lf = /** @class */ function(e) {
20073
20073
  function n(t, n) {
20074
20074
  var r = this;
20075
20075
  return (r = e.call(this, t) || this).$u = n, r;
@@ -20082,20 +20082,20 @@ var uh = /** @class */ function(e) {
20082
20082
  }, n;
20083
20083
  }(Wl);
20084
20084
 
20085
- /** Parse update data from an update() call. */ function lh(t, e, n, r) {
20085
+ /** Parse update data from an update() call. */ function ff(t, e, n, r) {
20086
20086
  var i = t.Qu(1 /* UserDataSource.Update */ , e, n);
20087
- mh("Data must be an object, but it was:", i, r);
20087
+ yf("Data must be an object, but it was:", i, r);
20088
20088
  var o = [], u = yn.empty();
20089
20089
  Te(r, (function(t, r) {
20090
- var a = wh(e, t, n);
20090
+ var a = bf(e, t, n);
20091
20091
  // For Compat types, we have to "extract" the underlying types before
20092
20092
  // performing validation.
20093
20093
  r = m(r);
20094
20094
  var s = i.Nu(a);
20095
- if (r instanceof ih)
20095
+ if (r instanceof of)
20096
20096
  // Add it to the field mask, but don't add anything to updateData.
20097
20097
  o.push(a); else {
20098
- var c = dh(r, s);
20098
+ var c = pf(r, s);
20099
20099
  null != c && (o.push(a), u.set(a, c));
20100
20100
  }
20101
20101
  }));
@@ -20103,27 +20103,27 @@ var uh = /** @class */ function(e) {
20103
20103
  return new Zl(u, a, i.fieldTransforms);
20104
20104
  }
20105
20105
 
20106
- /** Parse update data from a list of field/value arguments. */ function hh(t, e, n, r, i, o) {
20107
- var u = t.Qu(1 /* UserDataSource.Update */ , e, n), a = [ yh(e, r, n) ], s = [ i ];
20106
+ /** Parse update data from a list of field/value arguments. */ function hf(t, e, n, r, i, o) {
20107
+ var u = t.Qu(1 /* UserDataSource.Update */ , e, n), a = [ gf(e, r, n) ], s = [ i ];
20108
20108
  if (o.length % 2 != 0) throw new j(K.INVALID_ARGUMENT, "Function ".concat(e, "() needs to be called with an even number of arguments that alternate between field names and values."));
20109
- for (var c = 0; c < o.length; c += 2) a.push(yh(e, o[c])), s.push(o[c + 1]);
20109
+ for (var c = 0; c < o.length; c += 2) a.push(gf(e, o[c])), s.push(o[c + 1]);
20110
20110
  // We iterate in reverse order to pick the last value for a field if the
20111
20111
  // user specified the field multiple times.
20112
- for (var l = [], h = yn.empty(), f = a.length - 1; f >= 0; --f) if (!_h(l, a[f])) {
20113
- var d = a[f], p = s[f];
20112
+ for (var l = [], f = yn.empty(), h = a.length - 1; h >= 0; --h) if (!If(l, a[h])) {
20113
+ var d = a[h], p = s[h];
20114
20114
  // For Compat types, we have to "extract" the underlying types before
20115
20115
  // performing validation.
20116
20116
  p = m(p);
20117
20117
  var v = u.Nu(d);
20118
- if (p instanceof ih)
20118
+ if (p instanceof of)
20119
20119
  // Add it to the field mask, but don't add anything to updateData.
20120
20120
  l.push(d); else {
20121
- var y = dh(p, v);
20122
- null != y && (l.push(d), h.set(d, y));
20121
+ var y = pf(p, v);
20122
+ null != y && (l.push(d), f.set(d, y));
20123
20123
  }
20124
20124
  }
20125
20125
  var g = new Oe(l);
20126
- return new Zl(h, g, u.fieldTransforms);
20126
+ return new Zl(f, g, u.fieldTransforms);
20127
20127
  }
20128
20128
 
20129
20129
  /**
@@ -20132,8 +20132,8 @@ var uh = /** @class */ function(e) {
20132
20132
  *
20133
20133
  * @param allowArrays - Whether the query value is an array that may directly
20134
20134
  * contain additional arrays (e.g. the operand of an `in` query).
20135
- */ function fh(t, e, n, r) {
20136
- return void 0 === r && (r = !1), dh(n, t.Qu(r ? 4 /* UserDataSource.ArrayArgument */ : 3 /* UserDataSource.Argument */ , e));
20135
+ */ function df(t, e, n, r) {
20136
+ return void 0 === r && (r = !1), pf(n, t.Qu(r ? 4 /* UserDataSource.ArrayArgument */ : 3 /* UserDataSource.Argument */ , e));
20137
20137
  }
20138
20138
 
20139
20139
  /**
@@ -20144,11 +20144,11 @@ var uh = /** @class */ function(e) {
20144
20144
  * the source of the data being parsed, etc.
20145
20145
  * @returns The parsed value, or null if the value was a FieldValue sentinel
20146
20146
  * that should not be included in the resulting parsed data.
20147
- */ function dh(t, e) {
20148
- if (vh(
20147
+ */ function pf(t, e) {
20148
+ if (mf(
20149
20149
  // Unwrap the API type from the Compat SDK. This will return the API type
20150
20150
  // from firestore-exp.
20151
- t = m(t))) return mh("Unsupported field value:", e, t), ph(t, e);
20151
+ t = m(t))) return yf("Unsupported field value:", e, t), vf(t, e);
20152
20152
  if (t instanceof Wl)
20153
20153
  // FieldValues usually parse into transforms (except deleteField())
20154
20154
  // in which case we do not want to include this field in our parsed data
@@ -20184,7 +20184,7 @@ var uh = /** @class */ function(e) {
20184
20184
  if (e.settings.xu && 4 /* UserDataSource.ArrayArgument */ !== e.Cu) throw e.Bu("Nested arrays are not supported");
20185
20185
  return function(t, e) {
20186
20186
  for (var n = [], r = 0, i = 0, o = t; i < o.length; i++) {
20187
- var u = dh(o[i], e.Lu(r));
20187
+ var u = pf(o[i], e.Lu(r));
20188
20188
  null == u && (
20189
20189
  // Just include nulls in the array for fields being replaced with a
20190
20190
  // sentinel.
@@ -20268,13 +20268,13 @@ var uh = /** @class */ function(e) {
20268
20268
  }(t, e);
20269
20269
  }
20270
20270
 
20271
- function ph(t, e) {
20271
+ function vf(t, e) {
20272
20272
  var n = {};
20273
20273
  return Se(t) ?
20274
20274
  // If we encounter an empty object, we explicitly add it to the update
20275
20275
  // mask to ensure that the server creates a map entry.
20276
20276
  e.path && e.path.length > 0 && e.fieldMask.push(e.path) : Te(t, (function(t, r) {
20277
- var i = dh(r, e.Mu(t));
20277
+ var i = pf(r, e.Mu(t));
20278
20278
  null != i && (n[t] = i);
20279
20279
  })), {
20280
20280
  mapValue: {
@@ -20283,12 +20283,12 @@ function ph(t, e) {
20283
20283
  };
20284
20284
  }
20285
20285
 
20286
- function vh(t) {
20286
+ function mf(t) {
20287
20287
  return !("object" != typeof t || null === t || t instanceof Array || t instanceof Date || t instanceof at || t instanceof Jl || t instanceof Kl || t instanceof ml || t instanceof Wl || t instanceof Hl);
20288
20288
  }
20289
20289
 
20290
- function mh(t, e, n) {
20291
- if (!vh(n) || !function(t) {
20290
+ function yf(t, e, n) {
20291
+ if (!mf(n) || !function(t) {
20292
20292
  return "object" == typeof t && null !== t && (Object.getPrototypeOf(t) === Object.prototype || null === Object.getPrototypeOf(t));
20293
20293
  }(n)) {
20294
20294
  var r = cl(n);
@@ -20298,20 +20298,20 @@ function mh(t, e, n) {
20298
20298
 
20299
20299
  /**
20300
20300
  * Helper that calls fromDotSeparatedString() but wraps any error thrown.
20301
- */ function yh(t, e, n) {
20301
+ */ function gf(t, e, n) {
20302
20302
  if (
20303
20303
  // If required, replace the FieldPath Compat class with the firestore-exp
20304
20304
  // FieldPath.
20305
20305
  (e = m(e)) instanceof jl) return e._internalPath;
20306
- if ("string" == typeof e) return wh(t, e);
20307
- throw bh("Field path arguments must be of type string or ", t,
20306
+ if ("string" == typeof e) return bf(t, e);
20307
+ throw _f("Field path arguments must be of type string or ", t,
20308
20308
  /* hasConverter= */ !1,
20309
20309
  /* path= */ void 0, n);
20310
20310
  }
20311
20311
 
20312
20312
  /**
20313
20313
  * Matches any characters in a field path string that are reserved.
20314
- */ var gh = new RegExp("[~\\*/\\[\\]]");
20314
+ */ var wf = new RegExp("[~\\*/\\[\\]]");
20315
20315
 
20316
20316
  /**
20317
20317
  * Wraps fromDotSeparatedString with an error message about the method that
@@ -20321,20 +20321,20 @@ function mh(t, e, n) {
20321
20321
  * split on dots.
20322
20322
  * @param targetDoc - The document against which the field path will be
20323
20323
  * evaluated.
20324
- */ function wh(t, e, n) {
20325
- if (e.search(gh) >= 0) throw bh("Invalid field path (".concat(e, "). Paths must not contain '~', '*', '/', '[', or ']'"), t,
20324
+ */ function bf(t, e, n) {
20325
+ if (e.search(wf) >= 0) throw _f("Invalid field path (".concat(e, "). Paths must not contain '~', '*', '/', '[', or ']'"), t,
20326
20326
  /* hasConverter= */ !1,
20327
20327
  /* path= */ void 0, n);
20328
20328
  try {
20329
20329
  return (new (jl.bind.apply(jl, r([ void 0 ], e.split("."), !1))))._internalPath;
20330
20330
  } catch (r) {
20331
- throw bh("Invalid field path (".concat(e, "). Paths must not be empty, begin with '.', end with '.', or contain '..'"), t,
20331
+ throw _f("Invalid field path (".concat(e, "). Paths must not be empty, begin with '.', end with '.', or contain '..'"), t,
20332
20332
  /* hasConverter= */ !1,
20333
20333
  /* path= */ void 0, n);
20334
20334
  }
20335
20335
  }
20336
20336
 
20337
- function bh(t, e, n, r, i) {
20337
+ function _f(t, e, n, r, i) {
20338
20338
  var o = r && !r.isEmpty(), u = void 0 !== i, a = "Function ".concat(e, "() called with invalid data");
20339
20339
  n && (a += " (via `toFirestore()`)"), a += ". ";
20340
20340
  var s = "";
@@ -20343,7 +20343,7 @@ function bh(t, e, n, r, i) {
20343
20343
  /** Checks `haystack` if FieldPath `needle` is present. Runs in O(n). */;
20344
20344
  }
20345
20345
 
20346
- function _h(t, e) {
20346
+ function If(t, e) {
20347
20347
  return t.some((function(t) {
20348
20348
  return t.isEqual(e);
20349
20349
  }));
@@ -20373,7 +20373,7 @@ function _h(t, e) {
20373
20373
  * For a `DocumentSnapshot` that points to a non-existing document, any data
20374
20374
  * access will return 'undefined'. You can use the `exists()` method to
20375
20375
  * explicitly verify a document's existence.
20376
- */ var Ih = /** @class */ function() {
20376
+ */ var Tf = /** @class */ function() {
20377
20377
  // Note: This class is stripped down version of the DocumentSnapshot in
20378
20378
  // the legacy SDK. The changes are:
20379
20379
  // - No support for SnapshotMetadata.
@@ -20419,7 +20419,7 @@ function _h(t, e) {
20419
20419
  if (this._converter) {
20420
20420
  // We only want to use the converter and create a new DocumentSnapshot
20421
20421
  // if a converter has been provided.
20422
- var t = new Th(this._firestore, this._userDataWriter, this._key, this._document,
20422
+ var t = new Ef(this._firestore, this._userDataWriter, this._key, this._document,
20423
20423
  /* converter= */ null);
20424
20424
  return this._converter.fromFirestore(t);
20425
20425
  }
@@ -20439,11 +20439,11 @@ function _h(t, e) {
20439
20439
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20440
20440
  t.prototype.get = function(t) {
20441
20441
  if (this._document) {
20442
- var e = this._document.data.field(Eh("DocumentSnapshot.get", t));
20442
+ var e = this._document.data.field(Sf("DocumentSnapshot.get", t));
20443
20443
  if (null !== e) return this._userDataWriter.convertValue(e);
20444
20444
  }
20445
20445
  }, t;
20446
- }(), Th = /** @class */ function(e) {
20446
+ }(), Ef = /** @class */ function(e) {
20447
20447
  function n() {
20448
20448
  return null !== e && e.apply(this, arguments) || this;
20449
20449
  }
@@ -20455,7 +20455,7 @@ function _h(t, e) {
20455
20455
  */ return t(n, e), n.prototype.data = function() {
20456
20456
  return e.prototype.data.call(this);
20457
20457
  }, n;
20458
- }(Ih);
20458
+ }(Tf);
20459
20459
 
20460
20460
  /**
20461
20461
  * A `QueryDocumentSnapshot` contains data read from a document in your
@@ -20471,8 +20471,8 @@ function _h(t, e) {
20471
20471
  /**
20472
20472
  * Helper that calls `fromDotSeparatedString()` but wraps any error thrown.
20473
20473
  */
20474
- function Eh(t, e) {
20475
- return "string" == typeof e ? wh(t, e) : e instanceof jl ? e._internalPath : e._delegate._internalPath;
20474
+ function Sf(t, e) {
20475
+ return "string" == typeof e ? bf(t, e) : e instanceof jl ? e._internalPath : e._delegate._internalPath;
20476
20476
  }
20477
20477
 
20478
20478
  /**
@@ -20490,19 +20490,19 @@ function Eh(t, e) {
20490
20490
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20491
20491
  * See the License for the specific language governing permissions and
20492
20492
  * limitations under the License.
20493
- */ function Sh(t) {
20493
+ */ function xf(t) {
20494
20494
  if ("L" /* LimitType.Last */ === t.limitType && 0 === t.explicitOrderBy.length) throw new j(K.UNIMPLEMENTED, "limitToLast() queries require specifying at least one orderBy() clause");
20495
20495
  }
20496
20496
 
20497
20497
  /**
20498
20498
  * An `AppliableConstraint` is an abstraction of a constraint that can be applied
20499
20499
  * to a Firestore query.
20500
- */ var xh = function() {}, Dh = /** @class */ function(e) {
20500
+ */ var Df = function() {}, Cf = /** @class */ function(e) {
20501
20501
  function n() {
20502
20502
  return null !== e && e.apply(this, arguments) || this;
20503
20503
  }
20504
20504
  return t(n, e), n;
20505
- }(xh);
20505
+ }(Df);
20506
20506
 
20507
20507
  /**
20508
20508
  * A `QueryConstraint` is used to narrow the set of documents returned by a
@@ -20511,14 +20511,14 @@ function Eh(t, e) {
20511
20511
  * (endBefore:1)}, {@link (endAt:1)}, {@link limit}, {@link limitToLast} and
20512
20512
  * can then be passed to {@link (query:1)} to create a new query instance that
20513
20513
  * also contains this `QueryConstraint`.
20514
- */ function Ch(t, e) {
20514
+ */ function Nf(t, e) {
20515
20515
  for (var n = [], r = 2; r < arguments.length; r++) n[r - 2] = arguments[r];
20516
20516
  var i = [];
20517
- e instanceof xh && i.push(e), function(t) {
20517
+ e instanceof Df && i.push(e), function(t) {
20518
20518
  var e = t.filter((function(t) {
20519
- return t instanceof kh;
20519
+ return t instanceof Of;
20520
20520
  })).length, n = t.filter((function(t) {
20521
- return t instanceof Nh;
20521
+ return t instanceof Af;
20522
20522
  })).length;
20523
20523
  if (e > 1 || e > 0 && n > 0) throw new j(K.INVALID_ARGUMENT, "InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.");
20524
20524
  }(i = i.concat(n));
@@ -20535,7 +20535,7 @@ function Eh(t, e) {
20535
20535
  * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then
20536
20536
  * be passed to {@link (query:1)} to create a new query instance that also contains
20537
20537
  * this `QueryFieldFilterConstraint`.
20538
- */ var Nh = /** @class */ function(e) {
20538
+ */ var Af = /** @class */ function(e) {
20539
20539
  /**
20540
20540
  * @internal
20541
20541
  */
@@ -20549,32 +20549,32 @@ function Eh(t, e) {
20549
20549
  return new n(t, e, r);
20550
20550
  }, n.prototype._apply = function(t) {
20551
20551
  var e = this._parse(t);
20552
- return Jh(t._query, e), new vl(t.firestore, t.converter, ar(t._query, e));
20552
+ return Hf(t._query, e), new vl(t.firestore, t.converter, ar(t._query, e));
20553
20553
  }, n.prototype._parse = function(t) {
20554
- var e = nh(t.firestore), n = function(t, e, n, r, i, o, u) {
20554
+ var e = nf(t.firestore), n = function(t, e, n, r, i, o, u) {
20555
20555
  var a;
20556
20556
  if (i.isKeyField()) {
20557
20557
  if ("array-contains" /* Operator.ARRAY_CONTAINS */ === o || "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ === o) throw new j(K.INVALID_ARGUMENT, "Invalid Query. You can't perform '".concat(o, "' queries on documentId()."));
20558
20558
  if ("in" /* Operator.IN */ === o || "not-in" /* Operator.NOT_IN */ === o) {
20559
- Wh(u, o);
20559
+ Jf(u, o);
20560
20560
  for (var s = [], c = 0, l = u; c < l.length; c++) {
20561
- var h = l[c];
20562
- s.push(Qh(r, t, h));
20561
+ var f = l[c];
20562
+ s.push(Wf(r, t, f));
20563
20563
  }
20564
20564
  a = {
20565
20565
  arrayValue: {
20566
20566
  values: s
20567
20567
  }
20568
20568
  };
20569
- } else a = Qh(r, t, u);
20570
- } else "in" /* Operator.IN */ !== o && "not-in" /* Operator.NOT_IN */ !== o && "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ !== o || Wh(u, o),
20571
- a = fh(n, e, u,
20569
+ } else a = Wf(r, t, u);
20570
+ } else "in" /* Operator.IN */ !== o && "not-in" /* Operator.NOT_IN */ !== o && "array-contains-any" /* Operator.ARRAY_CONTAINS_ANY */ !== o || Jf(u, o),
20571
+ a = df(n, e, u,
20572
20572
  /* allowArrays= */ "in" /* Operator.IN */ === o || "not-in" /* Operator.NOT_IN */ === o);
20573
20573
  return xn.create(i, o, a);
20574
20574
  }(t._query, "where", e, t.firestore._databaseId, this._field, this._op, this._value);
20575
20575
  return n;
20576
20576
  }, n;
20577
- }(Dh);
20577
+ }(Cf);
20578
20578
 
20579
20579
  /**
20580
20580
  * Creates a {@link QueryFieldFilterConstraint} that enforces that documents
@@ -20586,9 +20586,9 @@ function Eh(t, e) {
20586
20586
  * "&lt;=", "!=").
20587
20587
  * @param value - The value for comparison
20588
20588
  * @returns The created {@link QueryFieldFilterConstraint}.
20589
- */ function Ah(t, e, n) {
20590
- var r = e, i = Eh("where", t);
20591
- return Nh._create(i, r, n);
20589
+ */ function kf(t, e, n) {
20590
+ var r = e, i = Sf("where", t);
20591
+ return Af._create(i, r, n);
20592
20592
  }
20593
20593
 
20594
20594
  /**
@@ -20598,7 +20598,7 @@ function Eh(t, e) {
20598
20598
  * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or
20599
20599
  * {@link and} and can then be passed to {@link (query:1)} to create a new query
20600
20600
  * instance that also contains the `QueryCompositeFilterConstraint`.
20601
- */ var kh = /** @class */ function(e) {
20601
+ */ var Of = /** @class */ function(e) {
20602
20602
  /**
20603
20603
  * @internal
20604
20604
  */
@@ -20622,7 +20622,7 @@ function Eh(t, e) {
20622
20622
  return 0 === e.getFilters().length ? t : (function(t, e) {
20623
20623
  for (var n = t, r = 0, i = e.getFlattenedFilters(); r < i.length; r++) {
20624
20624
  var o = i[r];
20625
- Jh(n, o), n = ar(n, o);
20625
+ Hf(n, o), n = ar(n, o);
20626
20626
  }
20627
20627
  }(t._query, e), new vl(t.firestore, t.converter, ar(t._query, e)));
20628
20628
  }, n.prototype._getQueryConstraints = function() {
@@ -20630,7 +20630,7 @@ function Eh(t, e) {
20630
20630
  }, n.prototype._getOperator = function() {
20631
20631
  return "and" === this.type ? "and" /* CompositeOperator.AND */ : "or" /* CompositeOperator.OR */;
20632
20632
  }, n;
20633
- }(xh);
20633
+ }(Df);
20634
20634
 
20635
20635
  /**
20636
20636
  * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of
@@ -20641,12 +20641,12 @@ function Eh(t, e) {
20641
20641
  * {@link QueryFilterConstraint}s to perform a disjunction for. These must be
20642
20642
  * created with calls to {@link where}, {@link or}, or {@link and}.
20643
20643
  * @returns The newly created {@link QueryCompositeFilterConstraint}.
20644
- */ function Oh() {
20644
+ */ function Pf() {
20645
20645
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
20646
20646
  // Only support QueryFilterConstraints
20647
20647
  return t.forEach((function(t) {
20648
- return Hh("or", t);
20649
- })), kh._create("or" /* CompositeOperator.OR */ , t)
20648
+ return Yf("or", t);
20649
+ })), Of._create("or" /* CompositeOperator.OR */ , t)
20650
20650
  /**
20651
20651
  * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of
20652
20652
  * the given filter constraints. A conjunction filter includes a document if it
@@ -20659,12 +20659,12 @@ function Eh(t, e) {
20659
20659
  */;
20660
20660
  }
20661
20661
 
20662
- function Ph() {
20662
+ function Rf() {
20663
20663
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
20664
20664
  // Only support QueryFilterConstraints
20665
20665
  return t.forEach((function(t) {
20666
- return Hh("and", t);
20667
- })), kh._create("and" /* CompositeOperator.AND */ , t)
20666
+ return Yf("and", t);
20667
+ })), Of._create("and" /* CompositeOperator.AND */ , t)
20668
20668
  /**
20669
20669
  * A `QueryOrderByConstraint` is used to sort the set of documents returned by a
20670
20670
  * Firestore query. `QueryOrderByConstraint`s are created by invoking
@@ -20676,7 +20676,7 @@ function Ph() {
20676
20676
  */;
20677
20677
  }
20678
20678
 
20679
- var Rh = /** @class */ function(e) {
20679
+ var Vf = /** @class */ function(e) {
20680
20680
  /**
20681
20681
  * @internal
20682
20682
  */
@@ -20700,7 +20700,7 @@ var Rh = /** @class */ function(e) {
20700
20700
  return new Zn(t.path, t.collectionGroup, n, t.filters.slice(), t.limit, t.limitType, t.startAt, t.endAt);
20701
20701
  }(t._query, e));
20702
20702
  }, n;
20703
- }(Dh);
20703
+ }(Cf);
20704
20704
 
20705
20705
  /**
20706
20706
  * Creates a {@link QueryOrderByConstraint} that sorts the query result by the
@@ -20713,10 +20713,10 @@ var Rh = /** @class */ function(e) {
20713
20713
  * @param directionStr - Optional direction to sort by ('asc' or 'desc'). If
20714
20714
  * not specified, order will be ascending.
20715
20715
  * @returns The created {@link QueryOrderByConstraint}.
20716
- */ function Vh(t, e) {
20716
+ */ function Ff(t, e) {
20717
20717
  void 0 === e && (e = "asc");
20718
- var n = e, r = Eh("orderBy", t);
20719
- return Rh._create(r, n);
20718
+ var n = e, r = Sf("orderBy", t);
20719
+ return Vf._create(r, n);
20720
20720
  }
20721
20721
 
20722
20722
  /**
@@ -20725,7 +20725,7 @@ var Rh = /** @class */ function(e) {
20725
20725
  * `QueryLimitConstraint`s are created by invoking {@link limit} or
20726
20726
  * {@link limitToLast} and can then be passed to {@link (query:1)} to create a new
20727
20727
  * query instance that also contains this `QueryLimitConstraint`.
20728
- */ var Fh = /** @class */ function(e) {
20728
+ */ var Mf = /** @class */ function(e) {
20729
20729
  /**
20730
20730
  * @internal
20731
20731
  */
@@ -20740,7 +20740,7 @@ var Rh = /** @class */ function(e) {
20740
20740
  }, n.prototype._apply = function(t) {
20741
20741
  return new vl(t.firestore, t.converter, sr(t._query, this._limit, this._limitType));
20742
20742
  }, n;
20743
- }(Dh);
20743
+ }(Cf);
20744
20744
 
20745
20745
  /**
20746
20746
  * Creates a {@link QueryLimitConstraint} that only returns the first matching
@@ -20748,8 +20748,8 @@ var Rh = /** @class */ function(e) {
20748
20748
  *
20749
20749
  * @param limit - The maximum number of items to return.
20750
20750
  * @returns The created {@link QueryLimitConstraint}.
20751
- */ function Mh(t) {
20752
- return hl("limit", t), Fh._create("limit", t, "F" /* LimitType.First */)
20751
+ */ function Lf(t) {
20752
+ return fl("limit", t), Mf._create("limit", t, "F" /* LimitType.First */)
20753
20753
  /**
20754
20754
  * Creates a {@link QueryLimitConstraint} that only returns the last matching
20755
20755
  * documents.
@@ -20762,8 +20762,8 @@ var Rh = /** @class */ function(e) {
20762
20762
  */;
20763
20763
  }
20764
20764
 
20765
- function Lh(t) {
20766
- return hl("limitToLast", t), Fh._create("limitToLast", t, "L" /* LimitType.Last */)
20765
+ function qf(t) {
20766
+ return fl("limitToLast", t), Mf._create("limitToLast", t, "L" /* LimitType.Last */)
20767
20767
  /**
20768
20768
  * A `QueryStartAtConstraint` is used to exclude documents from the start of a
20769
20769
  * result set returned by a Firestore query.
@@ -20773,7 +20773,7 @@ function Lh(t) {
20773
20773
  */;
20774
20774
  }
20775
20775
 
20776
- var qh = /** @class */ function(e) {
20776
+ var Uf = /** @class */ function(e) {
20777
20777
  /**
20778
20778
  * @internal
20779
20779
  */
@@ -20787,22 +20787,22 @@ var qh = /** @class */ function(e) {
20787
20787
  return t(n, e), n._create = function(t, e, r) {
20788
20788
  return new n(t, e, r);
20789
20789
  }, n.prototype._apply = function(t) {
20790
- var e = jh(t, this.type, this._docOrFields, this._inclusive);
20790
+ var e = Qf(t, this.type, this._docOrFields, this._inclusive);
20791
20791
  return new vl(t.firestore, t.converter, function(t, e) {
20792
20792
  return new Zn(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), t.limit, t.limitType, e, t.endAt);
20793
20793
  }(t._query, e));
20794
20794
  }, n;
20795
- }(Dh);
20795
+ }(Cf);
20796
20796
 
20797
- function Uh() {
20797
+ function Bf() {
20798
20798
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
20799
- return qh._create("startAt", t,
20799
+ return Uf._create("startAt", t,
20800
20800
  /*inclusive=*/ !0);
20801
20801
  }
20802
20802
 
20803
- function Bh() {
20803
+ function zf() {
20804
20804
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
20805
- return qh._create("startAfter", t,
20805
+ return Uf._create("startAfter", t,
20806
20806
  /*inclusive=*/ !1);
20807
20807
  }
20808
20808
 
@@ -20812,7 +20812,7 @@ function Bh() {
20812
20812
  * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or
20813
20813
  * {@link (endBefore:1)} and can then be passed to {@link (query:1)} to create a new
20814
20814
  * query instance that also contains this `QueryEndAtConstraint`.
20815
- */ var zh = /** @class */ function(e) {
20815
+ */ var Gf = /** @class */ function(e) {
20816
20816
  /**
20817
20817
  * @internal
20818
20818
  */
@@ -20826,27 +20826,27 @@ function Bh() {
20826
20826
  return t(n, e), n._create = function(t, e, r) {
20827
20827
  return new n(t, e, r);
20828
20828
  }, n.prototype._apply = function(t) {
20829
- var e = jh(t, this.type, this._docOrFields, this._inclusive);
20829
+ var e = Qf(t, this.type, this._docOrFields, this._inclusive);
20830
20830
  return new vl(t.firestore, t.converter, function(t, e) {
20831
20831
  return new Zn(t.path, t.collectionGroup, t.explicitOrderBy.slice(), t.filters.slice(), t.limit, t.limitType, t.startAt, e);
20832
20832
  }(t._query, e));
20833
20833
  }, n;
20834
- }(Dh);
20834
+ }(Cf);
20835
20835
 
20836
- function Gh() {
20836
+ function Kf() {
20837
20837
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
20838
- return zh._create("endBefore", t,
20838
+ return Gf._create("endBefore", t,
20839
20839
  /*inclusive=*/ !1);
20840
20840
  }
20841
20841
 
20842
- function Kh() {
20842
+ function jf() {
20843
20843
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
20844
- return zh._create("endAt", t,
20844
+ return Gf._create("endAt", t,
20845
20845
  /*inclusive=*/ !0);
20846
20846
  }
20847
20847
 
20848
- /** Helper function to create a bound from a document or fields */ function jh(t, e, n, r) {
20849
- if (n[0] = m(n[0]), n[0] instanceof Ih) return function(t, e, n, r, i) {
20848
+ /** Helper function to create a bound from a document or fields */ function Qf(t, e, n, r) {
20849
+ if (n[0] = m(n[0]), n[0] instanceof Tf) return function(t, e, n, r, i) {
20850
20850
  if (!r) throw new j(K.NOT_FOUND, "Can't use a DocumentSnapshot that doesn't exist for ".concat(n, "()."));
20851
20851
  // Because people expect to continue/end a query at the exact document
20852
20852
  // provided, we need to use the implicit sort order rather than the explicit
@@ -20869,7 +20869,7 @@ function Kh() {
20869
20869
  }
20870
20870
  return new bn(o, i);
20871
20871
  }(t._query, t.firestore._databaseId, e, n[0]._document, r);
20872
- var i = nh(t.firestore);
20872
+ var i = nf(t.firestore);
20873
20873
  return function(t, e, n, r, i, o) {
20874
20874
  // Use explicit order by's because it has to match the query the user made
20875
20875
  var u = t.explicitOrderBy;
@@ -20881,18 +20881,18 @@ function Kh() {
20881
20881
  if (!nr(t) && -1 !== c.indexOf("/")) throw new j(K.INVALID_ARGUMENT, "Invalid query. When querying a collection and ordering by documentId(), the value passed to ".concat(r, "() must be a plain document ID, but '").concat(c, "' contains a slash."));
20882
20882
  var l = t.path.child(lt.fromString(c));
20883
20883
  if (!dt.isDocumentKey(l)) throw new j(K.INVALID_ARGUMENT, "Invalid query. When querying a collection group and ordering by documentId(), the value passed to ".concat(r, "() must result in a valid document path, but '").concat(l, "' is not because it contains an odd number of segments."));
20884
- var h = new dt(l);
20885
- a.push(nn(e, h));
20884
+ var f = new dt(l);
20885
+ a.push(nn(e, f));
20886
20886
  } else {
20887
- var f = fh(n, r, c);
20888
- a.push(f);
20887
+ var h = df(n, r, c);
20888
+ a.push(h);
20889
20889
  }
20890
20890
  }
20891
20891
  return new bn(a, o);
20892
20892
  }(t._query, t.firestore._databaseId, i, e, n, r);
20893
20893
  }
20894
20894
 
20895
- function Qh(t, e, n) {
20895
+ function Wf(t, e, n) {
20896
20896
  if ("string" == typeof (n = m(n))) {
20897
20897
  if ("" === n) throw new j(K.INVALID_ARGUMENT, "Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");
20898
20898
  if (!nr(e) && -1 !== n.indexOf("/")) throw new j(K.INVALID_ARGUMENT, "Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n, "' contains a '/' character."));
@@ -20907,7 +20907,7 @@ function Qh(t, e, n) {
20907
20907
  /**
20908
20908
  * Validates that the value passed into a disjunctive filter satisfies all
20909
20909
  * array requirements.
20910
- */ function Wh(t, e) {
20910
+ */ function Jf(t, e) {
20911
20911
  if (!Array.isArray(t) || 0 === t.length) throw new j(K.INVALID_ARGUMENT, "Invalid Query. A non-empty array is required for '".concat(e.toString(), "' filters."));
20912
20912
  }
20913
20913
 
@@ -20920,7 +20920,7 @@ function Qh(t, e, n) {
20920
20920
  * Operators in a query must adhere to the following set of rules:
20921
20921
  * 1. Only one inequality per query.
20922
20922
  * 2. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.
20923
- */ function Jh(t, e) {
20923
+ */ function Hf(t, e) {
20924
20924
  var n = function(t, e) {
20925
20925
  for (var n = 0, r = t; n < r.length; n++) for (var i = 0, o = r[n].getFlattenedFilters(); i < o.length; i++) {
20926
20926
  var u = o[i];
@@ -20948,11 +20948,11 @@ function Qh(t, e, n) {
20948
20948
  throw n === e.op ? new j(K.INVALID_ARGUMENT, "Invalid query. You cannot use more than one '".concat(e.op.toString(), "' filter.")) : new j(K.INVALID_ARGUMENT, "Invalid query. You cannot use '".concat(e.op.toString(), "' filters with '").concat(n.toString(), "' filters."));
20949
20949
  }
20950
20950
 
20951
- function Hh(t, e) {
20952
- if (!(e instanceof Nh || e instanceof kh)) throw new j(K.INVALID_ARGUMENT, "Function ".concat(t, "() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."));
20951
+ function Yf(t, e) {
20952
+ if (!(e instanceof Af || e instanceof Of)) throw new j(K.INVALID_ARGUMENT, "Function ".concat(t, "() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'."));
20953
20953
  }
20954
20954
 
20955
- var Yh = /** @class */ function() {
20955
+ var Xf = /** @class */ function() {
20956
20956
  function t() {}
20957
20957
  return t.prototype.convertValue = function(t, e) {
20958
20958
  switch (void 0 === e && (e = "none"), We(t)) {
@@ -21074,14 +21074,14 @@ var Yh = /** @class */ function() {
21074
21074
  * because we want to provide the user with a more specific error message if
21075
21075
  * their `set()` or fails due to invalid data originating from a `toFirestore()`
21076
21076
  * call.
21077
- */ function Xh(t, e, n) {
21077
+ */ function Zf(t, e, n) {
21078
21078
  // Cast to `any` in order to satisfy the union type constraint on
21079
21079
  // toFirestore().
21080
21080
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21081
21081
  return t ? n && (n.merge || n.mergeFields) ? t.toFirestore(e, n) : t.toFirestore(e) : e;
21082
21082
  }
21083
21083
 
21084
- var Zh = /** @class */ function(e) {
21084
+ var $f = /** @class */ function(e) {
21085
21085
  function n(t) {
21086
21086
  var n = this;
21087
21087
  return (n = e.call(this) || this).firestore = t, n;
@@ -21092,7 +21092,7 @@ var Zh = /** @class */ function(e) {
21092
21092
  var e = this.convertDocumentKey(t, this.firestore._databaseId);
21093
21093
  return new ml(this.firestore, /* converter= */ null, e);
21094
21094
  }, n;
21095
- }(Yh);
21095
+ }(Xf);
21096
21096
 
21097
21097
  /**
21098
21098
  * @license
@@ -21114,22 +21114,22 @@ var Zh = /** @class */ function(e) {
21114
21114
  * Create an AggregateField object that can be used to compute the sum of
21115
21115
  * a specified field over a range of documents in the result set of a query.
21116
21116
  * @param field Specifies the field to sum across the result set.
21117
- */ function $h(t) {
21118
- return new zl("sum", yh("sum", t));
21117
+ */ function th(t) {
21118
+ return new zl("sum", gf("sum", t));
21119
21119
  }
21120
21120
 
21121
21121
  /**
21122
21122
  * Create an AggregateField object that can be used to compute the average of
21123
21123
  * a specified field over a range of documents in the result set of a query.
21124
21124
  * @param field Specifies the field to average across the result set.
21125
- */ function tf(t) {
21126
- return new zl("avg", yh("average", t));
21125
+ */ function eh(t) {
21126
+ return new zl("avg", gf("average", t));
21127
21127
  }
21128
21128
 
21129
21129
  /**
21130
21130
  * Create an AggregateField object that can be used to compute the count of
21131
21131
  * documents in the result set of a query.
21132
- */ function ef() {
21132
+ */ function nh() {
21133
21133
  return new zl("count");
21134
21134
  }
21135
21135
 
@@ -21138,7 +21138,7 @@ var Zh = /** @class */ function(e) {
21138
21138
  *
21139
21139
  * @param left Compare this AggregateField to the `right`.
21140
21140
  * @param right Compare this AggregateField to the `left`.
21141
- */ function nf(t, e) {
21141
+ */ function rh(t, e) {
21142
21142
  var n, r;
21143
21143
  return t instanceof zl && e instanceof zl && t.aggregateType === e.aggregateType && (null === (n = t._internalFieldPath) || void 0 === n ? void 0 : n.canonicalString()) === (null === (r = e._internalFieldPath) || void 0 === r ? void 0 : r.canonicalString());
21144
21144
  }
@@ -21154,7 +21154,7 @@ var Zh = /** @class */ function(e) {
21154
21154
  *
21155
21155
  * @returns `true` if the objects are "equal", as defined above, or `false`
21156
21156
  * otherwise.
21157
- */ function rf(t, e) {
21157
+ */ function ih(t, e) {
21158
21158
  return Il(t.query, e.query) && v(t.data(), e.data());
21159
21159
  }
21160
21160
 
@@ -21176,7 +21176,7 @@ var Zh = /** @class */ function(e) {
21176
21176
  */
21177
21177
  /**
21178
21178
  * Metadata about a snapshot, describing the state of the snapshot.
21179
- */ var of = /** @class */ function() {
21179
+ */ var oh = /** @class */ function() {
21180
21180
  /** @hideconstructor */
21181
21181
  function t(t, e) {
21182
21182
  this.hasPendingWrites = t, this.fromCache = e
@@ -21190,7 +21190,7 @@ var Zh = /** @class */ function(e) {
21190
21190
  return t.prototype.isEqual = function(t) {
21191
21191
  return this.hasPendingWrites === t.hasPendingWrites && this.fromCache === t.fromCache;
21192
21192
  }, t;
21193
- }(), uf = /** @class */ function(e) {
21193
+ }(), uh = /** @class */ function(e) {
21194
21194
  /** @hideconstructor protected */
21195
21195
  function n(t, n, r, i, o, u) {
21196
21196
  var a = this;
@@ -21221,7 +21221,7 @@ var Zh = /** @class */ function(e) {
21221
21221
  if (this._converter) {
21222
21222
  // We only want to use the converter and create a new DocumentSnapshot
21223
21223
  // if a converter has been provided.
21224
- var e = new af(this._firestore, this._userDataWriter, this._key, this._document, this.metadata,
21224
+ var e = new ah(this._firestore, this._userDataWriter, this._key, this._document, this.metadata,
21225
21225
  /* converter= */ null);
21226
21226
  return this._converter.fromFirestore(e, t);
21227
21227
  }
@@ -21248,11 +21248,11 @@ var Zh = /** @class */ function(e) {
21248
21248
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21249
21249
  n.prototype.get = function(t, e) {
21250
21250
  if (void 0 === e && (e = {}), this._document) {
21251
- var n = this._document.data.field(Eh("DocumentSnapshot.get", t));
21251
+ var n = this._document.data.field(Sf("DocumentSnapshot.get", t));
21252
21252
  if (null !== n) return this._userDataWriter.convertValue(n, e.serverTimestamps);
21253
21253
  }
21254
21254
  }, n;
21255
- }(Ih), af = /** @class */ function(e) {
21255
+ }(Tf), ah = /** @class */ function(e) {
21256
21256
  function n() {
21257
21257
  return null !== e && e.apply(this, arguments) || this;
21258
21258
  }
@@ -21271,10 +21271,10 @@ var Zh = /** @class */ function(e) {
21271
21271
  */ return t(n, e), n.prototype.data = function(t) {
21272
21272
  return void 0 === t && (t = {}), e.prototype.data.call(this, t);
21273
21273
  }, n;
21274
- }(uf), sf = /** @class */ function() {
21274
+ }(uh), sh = /** @class */ function() {
21275
21275
  /** @hideconstructor */
21276
21276
  function t(t, e, n, r) {
21277
- this._firestore = t, this._userDataWriter = e, this._snapshot = r, this.metadata = new of(r.hasPendingWrites, r.fromCache),
21277
+ this._firestore = t, this._userDataWriter = e, this._snapshot = r, this.metadata = new oh(r.hasPendingWrites, r.fromCache),
21278
21278
  this.query = n;
21279
21279
  }
21280
21280
  return Object.defineProperty(t.prototype, "docs", {
@@ -21309,7 +21309,7 @@ var Zh = /** @class */ function(e) {
21309
21309
  t.prototype.forEach = function(t, e) {
21310
21310
  var n = this;
21311
21311
  this._snapshot.docs.forEach((function(r) {
21312
- t.call(e, new af(n._firestore, n._userDataWriter, r.key, r, new of(n._snapshot.mutatedKeys.has(r.key), n._snapshot.fromCache), n.query.converter));
21312
+ t.call(e, new ah(n._firestore, n._userDataWriter, r.key, r, new oh(n._snapshot.mutatedKeys.has(r.key), n._snapshot.fromCache), n.query.converter));
21313
21313
  }));
21314
21314
  },
21315
21315
  /**
@@ -21331,7 +21331,7 @@ var Zh = /** @class */ function(e) {
21331
21331
  if (t._snapshot.oldDocs.isEmpty()) {
21332
21332
  var n = 0;
21333
21333
  return t._snapshot.docChanges.map((function(e) {
21334
- var r = new af(t._firestore, t._userDataWriter, e.doc.key, e.doc, new of(t._snapshot.mutatedKeys.has(e.doc.key), t._snapshot.fromCache), t.query.converter);
21334
+ var r = new ah(t._firestore, t._userDataWriter, e.doc.key, e.doc, new oh(t._snapshot.mutatedKeys.has(e.doc.key), t._snapshot.fromCache), t.query.converter);
21335
21335
  return e.doc, {
21336
21336
  type: "added",
21337
21337
  doc: r,
@@ -21346,11 +21346,11 @@ var Zh = /** @class */ function(e) {
21346
21346
  return t._snapshot.docChanges.filter((function(t) {
21347
21347
  return e || 3 /* ChangeType.Metadata */ !== t.type;
21348
21348
  })).map((function(e) {
21349
- var n = new af(t._firestore, t._userDataWriter, e.doc.key, e.doc, new of(t._snapshot.mutatedKeys.has(e.doc.key), t._snapshot.fromCache), t.query.converter), i = -1, o = -1;
21349
+ var n = new ah(t._firestore, t._userDataWriter, e.doc.key, e.doc, new oh(t._snapshot.mutatedKeys.has(e.doc.key), t._snapshot.fromCache), t.query.converter), i = -1, o = -1;
21350
21350
  return 0 /* ChangeType.Added */ !== e.type && (i = r.indexOf(e.doc.key), r = r.delete(e.doc.key)),
21351
21351
  1 /* ChangeType.Removed */ !== e.type && (o = (r = r.add(e.doc)).indexOf(e.doc.key)),
21352
21352
  {
21353
- type: cf(e.type),
21353
+ type: ch(e.type),
21354
21354
  doc: n,
21355
21355
  oldIndex: i,
21356
21356
  newIndex: o
@@ -21368,7 +21368,7 @@ var Zh = /** @class */ function(e) {
21368
21368
  * For a `DocumentSnapshot` that points to a non-existing document, any data
21369
21369
  * access will return 'undefined'. You can use the `exists()` method to
21370
21370
  * explicitly verify a document's existence.
21371
- */ function cf(t) {
21371
+ */ function ch(t) {
21372
21372
  switch (t) {
21373
21373
  case 0 /* ChangeType.Added */ :
21374
21374
  return "added";
@@ -21393,8 +21393,8 @@ var Zh = /** @class */ function(e) {
21393
21393
  * @param left - A snapshot to compare.
21394
21394
  * @param right - A snapshot to compare.
21395
21395
  * @returns true if the snapshots are equal.
21396
- */ function lf(t, e) {
21397
- return t instanceof uf && e instanceof uf ? t._firestore === e._firestore && t._key.isEqual(e._key) && (null === t._document ? null === e._document : t._document.isEqual(e._document)) && t._converter === e._converter : t instanceof sf && e instanceof sf && t._firestore === e._firestore && Il(t.query, e.query) && t.metadata.isEqual(e.metadata) && t._snapshot.isEqual(e._snapshot);
21396
+ */ function lh(t, e) {
21397
+ return t instanceof uh && e instanceof uh ? t._firestore === e._firestore && t._key.isEqual(e._key) && (null === t._document ? null === e._document : t._document.isEqual(e._document)) && t._converter === e._converter : t instanceof sh && e instanceof sh && t._firestore === e._firestore && Il(t.query, e.query) && t.metadata.isEqual(e.metadata) && t._snapshot.isEqual(e._snapshot);
21398
21398
  }
21399
21399
 
21400
21400
  /**
@@ -21424,15 +21424,15 @@ var Zh = /** @class */ function(e) {
21424
21424
  * @param reference - The reference of the document to fetch.
21425
21425
  * @returns A Promise resolved with a `DocumentSnapshot` containing the
21426
21426
  * current document contents.
21427
- */ function hf(t) {
21427
+ */ function fh(t) {
21428
21428
  t = ll(t, ml);
21429
21429
  var e = ll(t.firestore, Dl);
21430
21430
  return el(Al(e), t._key).then((function(n) {
21431
- return Sf(e, t, n);
21431
+ return Sh(e, t, n);
21432
21432
  }));
21433
21433
  }
21434
21434
 
21435
- var ff = /** @class */ function(e) {
21435
+ var hh = /** @class */ function(e) {
21436
21436
  function n(t) {
21437
21437
  var n = this;
21438
21438
  return (n = e.call(this) || this).firestore = t, n;
@@ -21443,7 +21443,7 @@ var ff = /** @class */ function(e) {
21443
21443
  var e = this.convertDocumentKey(t, this.firestore._databaseId);
21444
21444
  return new ml(this.firestore, /* converter= */ null, e);
21445
21445
  }, n;
21446
- }(Yh);
21446
+ }(Xf);
21447
21447
 
21448
21448
  /**
21449
21449
  * Reads the document referred to by this `DocumentReference` from cache.
@@ -21451,9 +21451,9 @@ var ff = /** @class */ function(e) {
21451
21451
  *
21452
21452
  * @returns A `Promise` resolved with a `DocumentSnapshot` containing the
21453
21453
  * current document contents.
21454
- */ function df(t) {
21454
+ */ function dh(t) {
21455
21455
  t = ll(t, ml);
21456
- var r = ll(t.firestore, Dl), i = Al(r), o = new ff(r);
21456
+ var r = ll(t.firestore, Dl), i = Al(r), o = new hh(r);
21457
21457
  return function(t, r) {
21458
21458
  var i = this, o = new Q;
21459
21459
  return t.asyncQueue.enqueueAndForget((function() {
@@ -21497,7 +21497,7 @@ var ff = /** @class */ function(e) {
21497
21497
  }));
21498
21498
  })), o.promise;
21499
21499
  }(i, t._key).then((function(e) {
21500
- return new uf(r, o, t._key, e, new of(null !== e && e.hasLocalMutations,
21500
+ return new uh(r, o, t._key, e, new oh(null !== e && e.hasLocalMutations,
21501
21501
  /* fromCache= */ !0), t.converter);
21502
21502
  }));
21503
21503
  }
@@ -21508,13 +21508,13 @@ var ff = /** @class */ function(e) {
21508
21508
  *
21509
21509
  * @returns A `Promise` resolved with a `DocumentSnapshot` containing the
21510
21510
  * current document contents.
21511
- */ function pf(t) {
21511
+ */ function ph(t) {
21512
21512
  t = ll(t, ml);
21513
21513
  var e = ll(t.firestore, Dl);
21514
21514
  return el(Al(e), t._key, {
21515
21515
  source: "server"
21516
21516
  }).then((function(n) {
21517
- return Sf(e, t, n);
21517
+ return Sh(e, t, n);
21518
21518
  }));
21519
21519
  }
21520
21520
 
@@ -21527,11 +21527,11 @@ var ff = /** @class */ function(e) {
21527
21527
  * invoke {@link getDocsFromCache} or {@link getDocsFromServer}.
21528
21528
  *
21529
21529
  * @returns A `Promise` that will be resolved with the results of the query.
21530
- */ function vf(t) {
21530
+ */ function vh(t) {
21531
21531
  t = ll(t, vl);
21532
- var e = ll(t.firestore, Dl), n = Al(e), r = new ff(e);
21533
- return Sh(t._query), nl(n, t._query).then((function(n) {
21534
- return new sf(e, r, t, n);
21532
+ var e = ll(t.firestore, Dl), n = Al(e), r = new hh(e);
21533
+ return xf(t._query), nl(n, t._query).then((function(n) {
21534
+ return new sh(e, r, t, n);
21535
21535
  }))
21536
21536
  /**
21537
21537
  * Executes the query and returns the results as a `QuerySnapshot` from cache.
@@ -21542,9 +21542,9 @@ var ff = /** @class */ function(e) {
21542
21542
  */;
21543
21543
  }
21544
21544
 
21545
- function mf(t) {
21545
+ function mh(t) {
21546
21546
  t = ll(t, vl);
21547
- var r = ll(t.firestore, Dl), i = Al(r), o = new ff(r);
21547
+ var r = ll(t.firestore, Dl), i = Al(r), o = new hh(r);
21548
21548
  return function(t, r) {
21549
21549
  var i = this, o = new Q;
21550
21550
  return t.asyncQueue.enqueueAndForget((function() {
@@ -21584,7 +21584,7 @@ function mf(t) {
21584
21584
  }));
21585
21585
  })), o.promise;
21586
21586
  }(i, t._query).then((function(e) {
21587
- return new sf(r, o, t, e);
21587
+ return new sh(r, o, t, e);
21588
21588
  }));
21589
21589
  }
21590
21590
 
@@ -21593,30 +21593,30 @@ function mf(t) {
21593
21593
  * server. Returns an error if the network is not available.
21594
21594
  *
21595
21595
  * @returns A `Promise` that will be resolved with the results of the query.
21596
- */ function yf(t) {
21596
+ */ function yh(t) {
21597
21597
  t = ll(t, vl);
21598
- var e = ll(t.firestore, Dl), n = Al(e), r = new ff(e);
21598
+ var e = ll(t.firestore, Dl), n = Al(e), r = new hh(e);
21599
21599
  return nl(n, t._query, {
21600
21600
  source: "server"
21601
21601
  }).then((function(n) {
21602
- return new sf(e, r, t, n);
21602
+ return new sh(e, r, t, n);
21603
21603
  }));
21604
21604
  }
21605
21605
 
21606
- function gf(t, e, n) {
21606
+ function gh(t, e, n) {
21607
21607
  t = ll(t, ml);
21608
- var r = ll(t.firestore, Dl), i = Xh(t.converter, e, n);
21609
- return Ef(r, [ rh(nh(r), "setDoc", t._key, i, null !== t.converter, n).toMutation(t._key, Wr.none()) ]);
21608
+ var r = ll(t.firestore, Dl), i = Zf(t.converter, e, n);
21609
+ return Eh(r, [ rf(nf(r), "setDoc", t._key, i, null !== t.converter, n).toMutation(t._key, Wr.none()) ]);
21610
21610
  }
21611
21611
 
21612
- function wf(t, e, n) {
21612
+ function wh(t, e, n) {
21613
21613
  for (var r = [], i = 3; i < arguments.length; i++) r[i - 3] = arguments[i];
21614
21614
  t = ll(t, ml);
21615
- var o = ll(t.firestore, Dl), u = nh(o);
21616
- return Ef(o, [ ("string" == typeof (
21615
+ var o = ll(t.firestore, Dl), u = nf(o);
21616
+ return Eh(o, [ ("string" == typeof (
21617
21617
  // For Compat types, we have to "extract" the underlying types before
21618
21618
  // performing validation.
21619
- e = m(e)) || e instanceof jl ? hh(u, "updateDoc", t._key, e, n, r) : lh(u, "updateDoc", t._key, e)).toMutation(t._key, Wr.exists(!0)) ]);
21619
+ e = m(e)) || e instanceof jl ? hf(u, "updateDoc", t._key, e, n, r) : ff(u, "updateDoc", t._key, e)).toMutation(t._key, Wr.exists(!0)) ]);
21620
21620
  }
21621
21621
 
21622
21622
  /**
@@ -21625,8 +21625,8 @@ function wf(t, e, n) {
21625
21625
  * @param reference - A reference to the document to delete.
21626
21626
  * @returns A Promise resolved once the document has been successfully
21627
21627
  * deleted from the backend (note that it won't resolve while you're offline).
21628
- */ function bf(t) {
21629
- return Ef(ll(t.firestore, Dl), [ new si(t._key, Wr.none()) ]);
21628
+ */ function bh(t) {
21629
+ return Eh(ll(t.firestore, Dl), [ new si(t._key, Wr.none()) ]);
21630
21630
  }
21631
21631
 
21632
21632
  /**
@@ -21638,14 +21638,14 @@ function wf(t, e, n) {
21638
21638
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
21639
21639
  * newly created document after it has been written to the backend (Note that it
21640
21640
  * won't resolve while you're offline).
21641
- */ function _f(t, e) {
21642
- var n = ll(t.firestore, Dl), r = bl(t), i = Xh(t.converter, e);
21643
- return Ef(n, [ rh(nh(t.firestore), "addDoc", r._key, i, null !== t.converter, {}).toMutation(r._key, Wr.exists(!1)) ]).then((function() {
21641
+ */ function _h(t, e) {
21642
+ var n = ll(t.firestore, Dl), r = bl(t), i = Zf(t.converter, e);
21643
+ return Eh(n, [ rf(nf(t.firestore), "addDoc", r._key, i, null !== t.converter, {}).toMutation(r._key, Wr.exists(!1)) ]).then((function() {
21644
21644
  return r;
21645
21645
  }));
21646
21646
  }
21647
21647
 
21648
- function If(t) {
21648
+ function Ih(t) {
21649
21649
  for (var r, i, o, u = [], a = 1; a < arguments.length; a++) u[a - 1] = arguments[a];
21650
21650
  t = m(t);
21651
21651
  var s = {
@@ -21653,7 +21653,7 @@ function If(t) {
21653
21653
  source: "default"
21654
21654
  }, c = 0;
21655
21655
  "object" != typeof u[c] || El(u[c]) || (s = u[c], c++);
21656
- var l, h, f, d = {
21656
+ var l, f, h, d = {
21657
21657
  includeMetadataChanges: s.includeMetadataChanges,
21658
21658
  source: s.source
21659
21659
  };
@@ -21662,23 +21662,23 @@ function If(t) {
21662
21662
  u[c] = null === (r = p.next) || void 0 === r ? void 0 : r.bind(p), u[c + 1] = null === (i = p.error) || void 0 === i ? void 0 : i.bind(p),
21663
21663
  u[c + 2] = null === (o = p.complete) || void 0 === o ? void 0 : o.bind(p);
21664
21664
  }
21665
- if (t instanceof ml) h = ll(t.firestore, Dl), f = tr(t._key.path), l = {
21665
+ if (t instanceof ml) f = ll(t.firestore, Dl), h = tr(t._key.path), l = {
21666
21666
  next: function(e) {
21667
- u[c] && u[c](Sf(h, t, e));
21667
+ u[c] && u[c](Sh(f, t, e));
21668
21668
  },
21669
21669
  error: u[c + 1],
21670
21670
  complete: u[c + 2]
21671
21671
  }; else {
21672
21672
  var v = ll(t, vl);
21673
- h = ll(v.firestore, Dl), f = v._query;
21674
- var y = new ff(h);
21673
+ f = ll(v.firestore, Dl), h = v._query;
21674
+ var y = new hh(f);
21675
21675
  l = {
21676
21676
  next: function(t) {
21677
- u[c] && u[c](new sf(h, y, v, t));
21677
+ u[c] && u[c](new sh(f, y, v, t));
21678
21678
  },
21679
21679
  error: u[c + 1],
21680
21680
  complete: u[c + 2]
21681
- }, Sh(t._query);
21681
+ }, xf(t._query);
21682
21682
  }
21683
21683
  return function(t, r, i, o) {
21684
21684
  var u = this, a = new Uc(o), s = new zs(r, a, i);
@@ -21711,10 +21711,10 @@ function If(t) {
21711
21711
  }));
21712
21712
  }));
21713
21713
  };
21714
- }(Al(h), f, d, l);
21714
+ }(Al(f), h, d, l);
21715
21715
  }
21716
21716
 
21717
- function Tf(t, r) {
21717
+ function Th(t, r) {
21718
21718
  return function(t, r) {
21719
21719
  var i = this, o = new Uc(r);
21720
21720
  return t.asyncQueue.enqueueAndForget((function() {
@@ -21761,7 +21761,7 @@ function Tf(t, r) {
21761
21761
  /**
21762
21762
  * Locally writes `mutations` on the async queue.
21763
21763
  * @internal
21764
- */ function Ef(t, r) {
21764
+ */ function Eh(t, r) {
21765
21765
  return function(t, r) {
21766
21766
  var i = this, o = new Q;
21767
21767
  return t.asyncQueue.enqueueAndForget((function() {
@@ -21784,9 +21784,9 @@ function Tf(t, r) {
21784
21784
  /**
21785
21785
  * Converts a {@link ViewSnapshot} that contains the single document specified by `ref`
21786
21786
  * to a {@link DocumentSnapshot}.
21787
- */ function Sf(t, e, n) {
21788
- var r = n.docs.get(e._key), i = new ff(t);
21789
- return new uf(t, i, e._key, r, new of(n.hasPendingWrites, n.fromCache), e.converter);
21787
+ */ function Sh(t, e, n) {
21788
+ var r = n.docs.get(e._key), i = new hh(t);
21789
+ return new uh(t, i, e._key, r, new oh(n.hasPendingWrites, n.fromCache), e.converter);
21790
21790
  }
21791
21791
 
21792
21792
  /**
@@ -21825,9 +21825,9 @@ function Tf(t, r) {
21825
21825
  * @returns A Promise that will be resolved with the count; the count can be
21826
21826
  * retrieved from `snapshot.data().count`, where `snapshot` is the
21827
21827
  * `AggregateQuerySnapshot` to which the returned Promise resolves.
21828
- */ function xf(t) {
21829
- return Df(t, {
21830
- count: ef()
21828
+ */ function xh(t) {
21829
+ return Dh(t, {
21830
+ count: nh()
21831
21831
  });
21832
21832
  }
21833
21833
 
@@ -21863,7 +21863,7 @@ function Tf(t, r) {
21863
21863
  * const totalHours: number = aggregateSnapshot.data().totalHours;
21864
21864
  * const averageScore: number | null = aggregateSnapshot.data().averageScore;
21865
21865
  * ```
21866
- */ function Df(t, r) {
21866
+ */ function Dh(t, r) {
21867
21867
  var i = ll(t.firestore, Dl), o = Al(i), u = Ee(r, (function(t, e) {
21868
21868
  return new di(e, t.aggregateType, t._internalFieldPath);
21869
21869
  }));
@@ -21881,7 +21881,7 @@ function Tf(t, r) {
21881
21881
  case 1:
21882
21882
  return o = s.sent(), u.resolve(function(t, r, i) {
21883
21883
  return e(this, void 0, void 0, (function() {
21884
- var e, o, u, a, s, c, l, h;
21884
+ var e, o, u, a, s, c, l, f;
21885
21885
  return n(this, (function(n) {
21886
21886
  switch (n.label) {
21887
21887
  case 0:
@@ -21894,9 +21894,9 @@ function Tf(t, r) {
21894
21894
  return !!t.result;
21895
21895
  })),
21896
21896
  // Omit RunAggregationQueryResponse that only contain readTimes.
21897
- B(1 === l.length), h = null === (e = l[0].result) || void 0 === e ? void 0 : e.aggregateFields,
21898
- [ 2 /*return*/ , Object.keys(h).reduce((function(t, e) {
21899
- return t[s[e]] = h[e], t;
21897
+ B(1 === l.length), f = null === (e = l[0].result) || void 0 === e ? void 0 : e.aggregateFields,
21898
+ [ 2 /*return*/ , Object.keys(f).reduce((function(t, e) {
21899
+ return t[s[e]] = f[e], t;
21900
21900
  }), {}) ];
21901
21901
  }
21902
21902
  }));
@@ -21921,13 +21921,13 @@ function Tf(t, r) {
21921
21921
  * @internal
21922
21922
  */
21923
21923
  return function(t, e, n) {
21924
- var r = new ff(t);
21924
+ var r = new hh(t);
21925
21925
  return new Gl(e, r, n);
21926
21926
  }(i, t, e);
21927
21927
  }));
21928
21928
  }
21929
21929
 
21930
- var Cf = /** @class */ function() {
21930
+ var Ch = /** @class */ function() {
21931
21931
  function t(t) {
21932
21932
  this.kind = "memory", this._onlineComponentProvider = Lc.provider, (null == t ? void 0 : t.garbageCollector) ? this._offlineComponentProvider = t.garbageCollector._offlineComponentProvider : this._offlineComponentProvider = Rc.provider;
21933
21933
  }
@@ -21936,11 +21936,11 @@ var Cf = /** @class */ function() {
21936
21936
  kind: this.kind
21937
21937
  };
21938
21938
  }, t;
21939
- }(), Nf = /** @class */ function() {
21939
+ }(), Nh = /** @class */ function() {
21940
21940
  function t(t) {
21941
21941
  var e;
21942
21942
  this.kind = "persistent", (null == t ? void 0 : t.tabManager) ? (t.tabManager._initialize(t),
21943
- e = t.tabManager) : (e = Lf(void 0))._initialize(t), this._onlineComponentProvider = e._onlineComponentProvider,
21943
+ e = t.tabManager) : (e = Lh(void 0))._initialize(t), this._onlineComponentProvider = e._onlineComponentProvider,
21944
21944
  this._offlineComponentProvider = e._offlineComponentProvider;
21945
21945
  }
21946
21946
  return t.prototype.toJSON = function() {
@@ -21948,7 +21948,7 @@ var Cf = /** @class */ function() {
21948
21948
  kind: this.kind
21949
21949
  };
21950
21950
  }, t;
21951
- }(), Af = /** @class */ function() {
21951
+ }(), Ah = /** @class */ function() {
21952
21952
  function t() {
21953
21953
  this.kind = "memoryEager", this._offlineComponentProvider = Rc.provider;
21954
21954
  }
@@ -21957,7 +21957,7 @@ var Cf = /** @class */ function() {
21957
21957
  kind: this.kind
21958
21958
  };
21959
21959
  }, t;
21960
- }(), kf = /** @class */ function() {
21960
+ }(), kh = /** @class */ function() {
21961
21961
  function t(t) {
21962
21962
  this.kind = "memoryLru", this._offlineComponentProvider = {
21963
21963
  build: function() {
@@ -21976,8 +21976,8 @@ var Cf = /** @class */ function() {
21976
21976
  * Creates an instance of `MemoryEagerGarbageCollector`. This is also the
21977
21977
  * default garbage collector unless it is explicitly specified otherwise.
21978
21978
  */
21979
- function Of() {
21980
- return new Af;
21979
+ function Oh() {
21980
+ return new Ah;
21981
21981
  }
21982
21982
 
21983
21983
  /**
@@ -21986,15 +21986,15 @@ function Of() {
21986
21986
  * A target size can be specified as part of the setting parameter. The
21987
21987
  * collector will start deleting documents once the cache size exceeds
21988
21988
  * the given size. The default cache size is 40MB (40 * 1024 * 1024 bytes).
21989
- */ function Pf(t) {
21990
- return new kf(null == t ? void 0 : t.cacheSizeBytes);
21989
+ */ function Ph(t) {
21990
+ return new kh(null == t ? void 0 : t.cacheSizeBytes);
21991
21991
  }
21992
21992
 
21993
21993
  /**
21994
21994
  * Creates an instance of `MemoryLocalCache`. The instance can be set to
21995
21995
  * `FirestoreSettings.cache` to tell the SDK which cache layer to use.
21996
- */ function Rf(t) {
21997
- return new Cf(t);
21996
+ */ function Rh(t) {
21997
+ return new Ch(t);
21998
21998
  }
21999
21999
 
22000
22000
  /**
@@ -22002,11 +22002,11 @@ function Of() {
22002
22002
  * `FirestoreSettings.cache` to tell the SDK which cache layer to use.
22003
22003
  *
22004
22004
  * Persistent cache cannot be used in a Node.js environment.
22005
- */ function Vf(t) {
22006
- return new Nf(t);
22005
+ */ function Vh(t) {
22006
+ return new Nh(t);
22007
22007
  }
22008
22008
 
22009
- var Ff = /** @class */ function() {
22009
+ var Fh = /** @class */ function() {
22010
22010
  function t(t) {
22011
22011
  this.forceOwnership = t, this.kind = "persistentSingleTab";
22012
22012
  }
@@ -22026,7 +22026,7 @@ var Ff = /** @class */ function() {
22026
22026
  }
22027
22027
  };
22028
22028
  }, t;
22029
- }(), Mf = /** @class */ function() {
22029
+ }(), Mh = /** @class */ function() {
22030
22030
  function t() {
22031
22031
  this.kind = "PersistentMultipleTab";
22032
22032
  }
@@ -22052,14 +22052,14 @@ var Ff = /** @class */ function() {
22052
22052
  *
22053
22053
  * @param settings Configures the created tab manager.
22054
22054
  */
22055
- function Lf(t) {
22056
- return new Ff(null == t ? void 0 : t.forceOwnership);
22055
+ function Lh(t) {
22056
+ return new Fh(null == t ? void 0 : t.forceOwnership);
22057
22057
  }
22058
22058
 
22059
22059
  /**
22060
22060
  * Creates an instance of `PersistentMultipleTabManager`.
22061
- */ function qf() {
22062
- return new Mf;
22061
+ */ function qh() {
22062
+ return new Mh;
22063
22063
  }
22064
22064
 
22065
22065
  /**
@@ -22077,25 +22077,25 @@ function Lf(t) {
22077
22077
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22078
22078
  * See the License for the specific language governing permissions and
22079
22079
  * limitations under the License.
22080
- */ var Uf = {
22080
+ */ var Uh = {
22081
22081
  maxAttempts: 5
22082
- }, Bf = /** @class */ function() {
22082
+ }, Bh = /** @class */ function() {
22083
22083
  /** @hideconstructor */
22084
22084
  function t(t, e) {
22085
22085
  this._firestore = t, this._commitHandler = e, this._mutations = [], this._committed = !1,
22086
- this._dataReader = nh(t);
22086
+ this._dataReader = nf(t);
22087
22087
  }
22088
22088
  return t.prototype.set = function(t, e, n) {
22089
22089
  this._verifyNotCommitted();
22090
- var r = zf(t, this._firestore), i = Xh(r.converter, e, n), o = rh(this._dataReader, "WriteBatch.set", r._key, i, null !== r.converter, n);
22090
+ var r = zh(t, this._firestore), i = Zf(r.converter, e, n), o = rf(this._dataReader, "WriteBatch.set", r._key, i, null !== r.converter, n);
22091
22091
  return this._mutations.push(o.toMutation(r._key, Wr.none())), this;
22092
22092
  }, t.prototype.update = function(t, e, n) {
22093
22093
  for (var r = [], i = 3; i < arguments.length; i++) r[i - 3] = arguments[i];
22094
22094
  this._verifyNotCommitted();
22095
- var o, u = zf(t, this._firestore);
22095
+ var o, u = zh(t, this._firestore);
22096
22096
  // For Compat types, we have to "extract" the underlying types before
22097
22097
  // performing validation.
22098
- return o = "string" == typeof (e = m(e)) || e instanceof jl ? hh(this._dataReader, "WriteBatch.update", u._key, e, n, r) : lh(this._dataReader, "WriteBatch.update", u._key, e),
22098
+ return o = "string" == typeof (e = m(e)) || e instanceof jl ? hf(this._dataReader, "WriteBatch.update", u._key, e, n, r) : ff(this._dataReader, "WriteBatch.update", u._key, e),
22099
22099
  this._mutations.push(o.toMutation(u._key, Wr.exists(!0))), this;
22100
22100
  },
22101
22101
  /**
@@ -22106,7 +22106,7 @@ function Lf(t) {
22106
22106
  */
22107
22107
  t.prototype.delete = function(t) {
22108
22108
  this._verifyNotCommitted();
22109
- var e = zf(t, this._firestore);
22109
+ var e = zh(t, this._firestore);
22110
22110
  return this._mutations = this._mutations.concat(new si(e._key, Wr.none())), this;
22111
22111
  },
22112
22112
  /**
@@ -22151,7 +22151,7 @@ function Lf(t) {
22151
22151
  * provides methods for adding writes to the write batch. None of the writes
22152
22152
  * will be committed (or visible locally) until {@link WriteBatch.commit} is
22153
22153
  * called.
22154
- */ function zf(t, e) {
22154
+ */ function zh(t, e) {
22155
22155
  if ((t = m(t)).firestore !== e) throw new j(K.INVALID_ARGUMENT, "Provided document reference is from a different Firestore instance.");
22156
22156
  return t;
22157
22157
  }
@@ -22203,7 +22203,7 @@ function Lf(t) {
22203
22203
  * The `Transaction` object passed to a transaction's `updateFunction` provides
22204
22204
  * the methods to read and write data within the transaction context. See
22205
22205
  * {@link runTransaction}.
22206
- */ var Gf = /** @class */ function(e) {
22206
+ */ var Gh = /** @class */ function(e) {
22207
22207
  // This class implements the same logic as the Transaction API in the Lite SDK
22208
22208
  // but is subclassed in order to return its own DocumentSnapshot types.
22209
22209
  /** @hideconstructor */
@@ -22217,9 +22217,9 @@ function Lf(t) {
22217
22217
  * @param documentRef - A reference to the document to be read.
22218
22218
  * @returns A `DocumentSnapshot` with the read data.
22219
22219
  */ return t(n, e), n.prototype.get = function(t) {
22220
- var n = this, r = zf(t, this._firestore), i = new ff(this._firestore);
22220
+ var n = this, r = zh(t, this._firestore), i = new hh(this._firestore);
22221
22221
  return e.prototype.get.call(this, t).then((function(t) {
22222
- return new uf(n._firestore, i, r._key, t._document, new of(
22222
+ return new uh(n._firestore, i, r._key, t._document, new oh(
22223
22223
  /* hasPendingWrites= */ !1,
22224
22224
  /* fromCache= */ !1), r.converter);
22225
22225
  }));
@@ -22227,7 +22227,7 @@ function Lf(t) {
22227
22227
  }(/** @class */ function() {
22228
22228
  /** @hideconstructor */
22229
22229
  function t(t, e) {
22230
- this._firestore = t, this._transaction = e, this._dataReader = nh(t)
22230
+ this._firestore = t, this._transaction = e, this._dataReader = nf(t)
22231
22231
  /**
22232
22232
  * Reads the document referenced by the provided {@link DocumentReference}.
22233
22233
  *
@@ -22236,23 +22236,23 @@ function Lf(t) {
22236
22236
  */;
22237
22237
  }
22238
22238
  return t.prototype.get = function(t) {
22239
- var e = this, n = zf(t, this._firestore), r = new Zh(this._firestore);
22239
+ var e = this, n = zh(t, this._firestore), r = new $f(this._firestore);
22240
22240
  return this._transaction.lookup([ n._key ]).then((function(t) {
22241
22241
  if (!t || 1 !== t.length) return U();
22242
22242
  var i = t[0];
22243
- if (i.isFoundDocument()) return new Ih(e._firestore, r, i.key, i, n.converter);
22244
- if (i.isNoDocument()) return new Ih(e._firestore, r, n._key, null, n.converter);
22243
+ if (i.isFoundDocument()) return new Tf(e._firestore, r, i.key, i, n.converter);
22244
+ if (i.isNoDocument()) return new Tf(e._firestore, r, n._key, null, n.converter);
22245
22245
  throw U();
22246
22246
  }));
22247
22247
  }, t.prototype.set = function(t, e, n) {
22248
- var r = zf(t, this._firestore), i = Xh(r.converter, e, n), o = rh(this._dataReader, "Transaction.set", r._key, i, null !== r.converter, n);
22248
+ var r = zh(t, this._firestore), i = Zf(r.converter, e, n), o = rf(this._dataReader, "Transaction.set", r._key, i, null !== r.converter, n);
22249
22249
  return this._transaction.set(r._key, o), this;
22250
22250
  }, t.prototype.update = function(t, e, n) {
22251
22251
  for (var r = [], i = 3; i < arguments.length; i++) r[i - 3] = arguments[i];
22252
- var o, u = zf(t, this._firestore);
22252
+ var o, u = zh(t, this._firestore);
22253
22253
  // For Compat types, we have to "extract" the underlying types before
22254
22254
  // performing validation.
22255
- return o = "string" == typeof (e = m(e)) || e instanceof jl ? hh(this._dataReader, "Transaction.update", u._key, e, n, r) : lh(this._dataReader, "Transaction.update", u._key, e),
22255
+ return o = "string" == typeof (e = m(e)) || e instanceof jl ? hf(this._dataReader, "Transaction.update", u._key, e, n, r) : ff(this._dataReader, "Transaction.update", u._key, e),
22256
22256
  this._transaction.update(u._key, o), this;
22257
22257
  },
22258
22258
  /**
@@ -22262,7 +22262,7 @@ function Lf(t) {
22262
22262
  * @returns This `Transaction` instance. Used for chaining method calls.
22263
22263
  */
22264
22264
  t.prototype.delete = function(t) {
22265
- var e = zf(t, this._firestore);
22265
+ var e = zh(t, this._firestore);
22266
22266
  return this._transaction.delete(e._key), this;
22267
22267
  }, t;
22268
22268
  }());
@@ -22285,9 +22285,9 @@ function Lf(t) {
22285
22285
  * (the `updateFunction` returned a failed promise), the promise returned by the
22286
22286
  * `updateFunction `is returned here. Otherwise, if the transaction failed, a
22287
22287
  * rejected promise with the corresponding failure error is returned.
22288
- */ function Kf(t, r, i) {
22288
+ */ function Kh(t, r, i) {
22289
22289
  t = ll(t, Dl);
22290
- var o = Object.assign(Object.assign({}, Uf), i);
22290
+ var o = Object.assign(Object.assign({}, Uh), i);
22291
22291
  return function(t) {
22292
22292
  if (t.maxAttempts < 1) throw new j(K.INVALID_ARGUMENT, "Max attempts must be at least 1");
22293
22293
  }(o), function(t, r, i) {
@@ -22307,7 +22307,7 @@ function Lf(t) {
22307
22307
  }));
22308
22308
  })), u.promise;
22309
22309
  }(Al(t), (function(e) {
22310
- return r(new Gf(t, e));
22310
+ return r(new Gh(t, e));
22311
22311
  }), o);
22312
22312
  }
22313
22313
 
@@ -22330,15 +22330,15 @@ function Lf(t) {
22330
22330
  /**
22331
22331
  * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
22332
22332
  * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
22333
- */ function jf() {
22334
- return new ih("deleteField");
22333
+ */ function jh() {
22334
+ return new of("deleteField");
22335
22335
  }
22336
22336
 
22337
22337
  /**
22338
22338
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
22339
22339
  * include a server-generated timestamp in the written data.
22340
- */ function Qf() {
22341
- return new uh("serverTimestamp");
22340
+ */ function Qh() {
22341
+ return new af("serverTimestamp");
22342
22342
  }
22343
22343
 
22344
22344
  /**
@@ -22352,11 +22352,11 @@ function Lf(t) {
22352
22352
  * @param elements - The elements to union into the array.
22353
22353
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
22354
22354
  * `updateDoc()`.
22355
- */ function Wf() {
22355
+ */ function Wh() {
22356
22356
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
22357
22357
  // NOTE: We don't actually parse the data until it's used in set() or
22358
22358
  // update() since we'd need the Firestore instance to do this.
22359
- return new ah("arrayUnion", t);
22359
+ return new sf("arrayUnion", t);
22360
22360
  }
22361
22361
 
22362
22362
  /**
@@ -22369,11 +22369,11 @@ function Lf(t) {
22369
22369
  * @param elements - The elements to remove from the array.
22370
22370
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
22371
22371
  * `updateDoc()`
22372
- */ function Jf() {
22372
+ */ function Jh() {
22373
22373
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
22374
22374
  // NOTE: We don't actually parse the data until it's used in set() or
22375
22375
  // update() since we'd need the Firestore instance to do this.
22376
- return new sh("arrayRemove", t);
22376
+ return new cf("arrayRemove", t);
22377
22377
  }
22378
22378
 
22379
22379
  /**
@@ -22394,8 +22394,8 @@ function Lf(t) {
22394
22394
  * @param n - The value to increment by.
22395
22395
  * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or
22396
22396
  * `updateDoc()`
22397
- */ function Hf(t) {
22398
- return new ch("increment", t);
22397
+ */ function Hh(t) {
22398
+ return new lf("increment", t);
22399
22399
  }
22400
22400
 
22401
22401
  /**
@@ -22404,7 +22404,7 @@ function Lf(t) {
22404
22404
  * @param values - Create a `VectorValue` instance with a copy of this array of numbers.
22405
22405
  *
22406
22406
  * @returns A new `VectorValue` constructed with a copy of the given array of numbers.
22407
- */ function Yf(t) {
22407
+ */ function Yh(t) {
22408
22408
  return new Hl(t);
22409
22409
  }
22410
22410
 
@@ -22434,9 +22434,9 @@ function Lf(t) {
22434
22434
  *
22435
22435
  * @returns A {@link WriteBatch} that can be used to atomically execute multiple
22436
22436
  * writes.
22437
- */ function Xf(t) {
22438
- return Al(t = ll(t, Dl)), new Bf(t, (function(e) {
22439
- return Ef(t, e);
22437
+ */ function Xh(t) {
22438
+ return Al(t = ll(t, Dl)), new Bh(t, (function(e) {
22439
+ return Eh(t, e);
22440
22440
  }))
22441
22441
  /**
22442
22442
  * @license
@@ -22456,7 +22456,7 @@ function Lf(t) {
22456
22456
  */;
22457
22457
  }
22458
22458
 
22459
- function Zf(t, i) {
22459
+ function Zh(t, i) {
22460
22460
  var o = Al(t = ll(t, Dl));
22461
22461
  if (!o._uninitializedComponentsProvider || "memory" === o._uninitializedComponentsProvider._offline.kind)
22462
22462
  // PORTING NOTE: We don't return an error if the user has not enabled
@@ -22471,10 +22471,10 @@ function Zf(t, i) {
22471
22471
  }
22472
22472
  }(t) : t, n = [];
22473
22473
  if (Array.isArray(e.indexes)) for (var r = 0, i = e.indexes; r < i.length; r++) {
22474
- var o = i[r], u = $f(o, "collectionGroup"), a = [];
22474
+ var o = i[r], u = $h(o, "collectionGroup"), a = [];
22475
22475
  if (Array.isArray(o.fields)) for (var s = 0, c = o.fields; s < c.length; s++) {
22476
- var l = c[s], h = wh("setIndexConfiguration", $f(l, "fieldPath"));
22477
- "CONTAINS" === l.arrayConfig ? a.push(new gt(h, 2 /* IndexKind.CONTAINS */)) : "ASCENDING" === l.order ? a.push(new gt(h, 0 /* IndexKind.ASCENDING */)) : "DESCENDING" === l.order && a.push(new gt(h, 1 /* IndexKind.DESCENDING */));
22476
+ var l = c[s], f = bf("setIndexConfiguration", $h(l, "fieldPath"));
22477
+ "CONTAINS" === l.arrayConfig ? a.push(new gt(f, 2 /* IndexKind.CONTAINS */)) : "ASCENDING" === l.order ? a.push(new gt(f, 0 /* IndexKind.ASCENDING */)) : "DESCENDING" === l.order && a.push(new gt(f, 1 /* IndexKind.DESCENDING */));
22478
22478
  }
22479
22479
  n.push(new pt(pt.UNKNOWN_ID, u, a, bt.empty()));
22480
22480
  }
@@ -22563,7 +22563,7 @@ function Zf(t, i) {
22563
22563
  }(o, u);
22564
22564
  }
22565
22565
 
22566
- function $f(t, e) {
22566
+ function $h(t, e) {
22567
22567
  if ("string" != typeof t[e]) throw new j(K.INVALID_ARGUMENT, "Missing string value for: " + e);
22568
22568
  return t[e];
22569
22569
  }
@@ -22778,7 +22778,7 @@ function ad(t) {
22778
22778
  * public API surface.
22779
22779
  *
22780
22780
  * @internal
22781
- */ var cd, ld, hd = /** @class */ function() {
22781
+ */ var cd, ld, fd = /** @class */ function() {
22782
22782
  function t() {
22783
22783
  throw new Error("instances of this class should not be created");
22784
22784
  }
@@ -22796,9 +22796,9 @@ function ad(t) {
22796
22796
  * the first invocation of the returned function does anything; all subsequent
22797
22797
  * invocations do nothing.
22798
22798
  */ return t.onExistenceFilterMismatch = function(t) {
22799
- return fd.instance.onExistenceFilterMismatch(t);
22799
+ return hd.instance.onExistenceFilterMismatch(t);
22800
22800
  }, t;
22801
- }(), fd = /** @class */ function() {
22801
+ }(), hd = /** @class */ function() {
22802
22802
  function t() {
22803
22803
  this.Uu = new Map;
22804
22804
  }
@@ -22835,9 +22835,9 @@ function ad(t) {
22835
22835
  return r = Object.assign({
22836
22836
  useFetchStreams: ld
22837
22837
  }, r), o._setSettings(r), o;
22838
- }), "PUBLIC").setMultipleInstances(!0)), u(A, "4.7.3-canary.64db19264", cd),
22838
+ }), "PUBLIC").setMultipleInstances(!0)), u(A, "4.7.3-canary.8fb044e8d", cd),
22839
22839
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
22840
- u(A, "4.7.3-canary.64db19264", "esm5");
22840
+ u(A, "4.7.3-canary.8fb044e8d", "esm5");
22841
22841
 
22842
- export { Yh as AbstractUserDataWriter, zl as AggregateField, Gl as AggregateQuerySnapshot, Kl as Bytes, xl as CACHE_SIZE_UNLIMITED, yl as CollectionReference, ml as DocumentReference, uf as DocumentSnapshot, jl as FieldPath, Wl as FieldValue, Dl as Firestore, j as FirestoreError, Jl as GeoPoint, Sl as LoadBundleTask, td as PersistentCacheIndexManager, vl as Query, kh as QueryCompositeFilterConstraint, Dh as QueryConstraint, af as QueryDocumentSnapshot, zh as QueryEndAtConstraint, Nh as QueryFieldFilterConstraint, Fh as QueryLimitConstraint, Rh as QueryOrderByConstraint, sf as QuerySnapshot, qh as QueryStartAtConstraint, of as SnapshotMetadata, at as Timestamp, Gf as Transaction, Hl as VectorValue, Bf as WriteBatch, rt as _AutoId, Ve as _ByteString, Ke as _DatabaseId, dt as _DocumentKey, et as _EmptyAppCheckTokenProvider, J as _EmptyAuthCredentialsProvider, ft as _FieldPath, hd as _TestingHooks, ll as _cast, z as _debugAssert, sd as _internalAggregationQueryToProtoRunAggregationQueryRequest, ad as _internalQueryToProtoQueryTarget, Re as _isBase64Available, L as _logWarn, ul as _validateIsNotUsedTogether, _f as addDoc, nf as aggregateFieldEqual, rf as aggregateQuerySnapshotEqual, Ph as and, Jf as arrayRemove, Wf as arrayUnion, tf as average, Vl as clearIndexedDbPersistence, gl as collection, wl as collectionGroup, pl as connectFirestoreEmulator, ef as count, id as deleteAllPersistentCacheIndexes, bf as deleteDoc, jf as deleteField, Ll as disableNetwork, rd as disablePersistentCacheIndexAutoCreation, bl as doc, Ql as documentId, Ol as enableIndexedDbPersistence, Pl as enableMultiTabIndexedDbPersistence, Ml as enableNetwork, nd as enablePersistentCacheIndexAutoCreation, Kh as endAt, Gh as endBefore, Al as ensureFirestoreConfigured, Ef as executeWrite, Df as getAggregateFromServer, xf as getCountFromServer, hf as getDoc, df as getDocFromCache, pf as getDocFromServer, vf as getDocs, mf as getDocsFromCache, yf as getDocsFromServer, Nl as getFirestore, ed as getPersistentCacheIndexManager, Hf as increment, Cl as initializeFirestore, Mh as limit, Lh as limitToLast, Ul as loadBundle, Of as memoryEagerGarbageCollector, Rf as memoryLocalCache, Pf as memoryLruGarbageCollector, Bl as namedQuery, If as onSnapshot, Tf as onSnapshotsInSync, Oh as or, Vh as orderBy, Vf as persistentLocalCache, qf as persistentMultipleTabManager, Lf as persistentSingleTabManager, Ch as query, Il as queryEqual, _l as refEqual, Kf as runTransaction, Qf as serverTimestamp, gf as setDoc, Zf as setIndexConfiguration, V as setLogLevel, lf as snapshotEqual, Bh as startAfter, Uh as startAt, $h as sum, ql as terminate, wf as updateDoc, Yf as vector, Fl as waitForPendingWrites, Ah as where, Xf as writeBatch };
22842
+ export { Xf as AbstractUserDataWriter, zl as AggregateField, Gl as AggregateQuerySnapshot, Kl as Bytes, xl as CACHE_SIZE_UNLIMITED, yl as CollectionReference, ml as DocumentReference, uh as DocumentSnapshot, jl as FieldPath, Wl as FieldValue, Dl as Firestore, j as FirestoreError, Jl as GeoPoint, Sl as LoadBundleTask, td as PersistentCacheIndexManager, vl as Query, Of as QueryCompositeFilterConstraint, Cf as QueryConstraint, ah as QueryDocumentSnapshot, Gf as QueryEndAtConstraint, Af as QueryFieldFilterConstraint, Mf as QueryLimitConstraint, Vf as QueryOrderByConstraint, sh as QuerySnapshot, Uf as QueryStartAtConstraint, oh as SnapshotMetadata, at as Timestamp, Gh as Transaction, Hl as VectorValue, Bh as WriteBatch, rt as _AutoId, Ve as _ByteString, Ke as _DatabaseId, dt as _DocumentKey, et as _EmptyAppCheckTokenProvider, J as _EmptyAuthCredentialsProvider, ht as _FieldPath, fd as _TestingHooks, ll as _cast, z as _debugAssert, sd as _internalAggregationQueryToProtoRunAggregationQueryRequest, ad as _internalQueryToProtoQueryTarget, Re as _isBase64Available, L as _logWarn, ul as _validateIsNotUsedTogether, _h as addDoc, rh as aggregateFieldEqual, ih as aggregateQuerySnapshotEqual, Rf as and, Jh as arrayRemove, Wh as arrayUnion, eh as average, Vl as clearIndexedDbPersistence, gl as collection, wl as collectionGroup, pl as connectFirestoreEmulator, nh as count, id as deleteAllPersistentCacheIndexes, bh as deleteDoc, jh as deleteField, Ll as disableNetwork, rd as disablePersistentCacheIndexAutoCreation, bl as doc, Ql as documentId, Ol as enableIndexedDbPersistence, Pl as enableMultiTabIndexedDbPersistence, Ml as enableNetwork, nd as enablePersistentCacheIndexAutoCreation, jf as endAt, Kf as endBefore, Al as ensureFirestoreConfigured, Eh as executeWrite, Dh as getAggregateFromServer, xh as getCountFromServer, fh as getDoc, dh as getDocFromCache, ph as getDocFromServer, vh as getDocs, mh as getDocsFromCache, yh as getDocsFromServer, Nl as getFirestore, ed as getPersistentCacheIndexManager, Hh as increment, Cl as initializeFirestore, Lf as limit, qf as limitToLast, Ul as loadBundle, Oh as memoryEagerGarbageCollector, Rh as memoryLocalCache, Ph as memoryLruGarbageCollector, Bl as namedQuery, Ih as onSnapshot, Th as onSnapshotsInSync, Pf as or, Ff as orderBy, Vh as persistentLocalCache, qh as persistentMultipleTabManager, Lh as persistentSingleTabManager, Nf as query, Il as queryEqual, _l as refEqual, Kh as runTransaction, Qh as serverTimestamp, gh as setDoc, Zh as setIndexConfiguration, V as setLogLevel, lh as snapshotEqual, zf as startAfter, Bf as startAt, th as sum, ql as terminate, wh as updateDoc, Yh as vector, Fl as waitForPendingWrites, kf as where, Xh as writeBatch };
22843
22843
  //# sourceMappingURL=index.esm5.js.map