@campphillip/widgets 3.1.8 → 3.1.11

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.
@@ -1,6 +1,6 @@
1
- import { j as m, S as ie, P as Cr, a as yn, r as I } from "./react.js";
1
+ import { j as m, S as ie, P as Pr, a as bn, r as I } from "./react.js";
2
2
  var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- function Pr(t) {
3
+ function vt(t) {
4
4
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
5
  }
6
6
  /*
@@ -8,13 +8,13 @@ object-assign
8
8
  (c) Sindre Sorhus
9
9
  @license MIT
10
10
  */
11
- var Nt = Object.getOwnPropertySymbols, bn = Object.prototype.hasOwnProperty, wn = Object.prototype.propertyIsEnumerable;
12
- function _n(t) {
11
+ var Ht = Object.getOwnPropertySymbols, wn = Object.prototype.hasOwnProperty, _n = Object.prototype.propertyIsEnumerable;
12
+ function On(t) {
13
13
  if (t == null)
14
14
  throw new TypeError("Object.assign cannot be called with null or undefined");
15
15
  return Object(t);
16
16
  }
17
- function On() {
17
+ function En() {
18
18
  try {
19
19
  if (!Object.assign)
20
20
  return !1;
@@ -36,24 +36,24 @@ function On() {
36
36
  return !1;
37
37
  }
38
38
  }
39
- var D = On() ? Object.assign : function(t, e) {
40
- for (var r, n = _n(t), a, i = 1; i < arguments.length; i++) {
39
+ var D = En() ? Object.assign : function(t, e) {
40
+ for (var r, n = On(t), a, i = 1; i < arguments.length; i++) {
41
41
  r = Object(arguments[i]);
42
42
  for (var o in r)
43
- bn.call(r, o) && (n[o] = r[o]);
44
- if (Nt) {
45
- a = Nt(r);
43
+ wn.call(r, o) && (n[o] = r[o]);
44
+ if (Ht) {
45
+ a = Ht(r);
46
46
  for (var s = 0; s < a.length; s++)
47
- wn.call(r, a[s]) && (n[a[s]] = r[a[s]]);
47
+ _n.call(r, a[s]) && (n[a[s]] = r[a[s]]);
48
48
  }
49
49
  }
50
50
  return n;
51
- }, Ee = {}, vt = {}, z = {}, Ue = {};
51
+ }, Ee = {}, mt = {}, X = {}, Ue = {};
52
52
  Object.defineProperty(Ue, "__esModule", { value: !0 });
53
- function En(t) {
53
+ function Sn(t) {
54
54
  return typeof t == "function";
55
55
  }
56
- Ue.isFunction = En;
56
+ Ue.isFunction = Sn;
57
57
  var ke = {}, Se = {};
58
58
  Object.defineProperty(Se, "__esModule", { value: !0 });
59
59
  var Ve = !1;
@@ -74,42 +74,42 @@ Se.config = {
74
74
  };
75
75
  var Ne = {};
76
76
  Object.defineProperty(Ne, "__esModule", { value: !0 });
77
- function Sn(t) {
77
+ function xn(t) {
78
78
  setTimeout(function() {
79
79
  throw t;
80
80
  }, 0);
81
81
  }
82
- Ne.hostReportError = Sn;
82
+ Ne.hostReportError = xn;
83
83
  Object.defineProperty(ke, "__esModule", { value: !0 });
84
- var xn = Se, Cn = Ne;
84
+ var Cn = Se, Pn = Ne;
85
85
  ke.empty = {
86
86
  closed: !0,
87
87
  next: function(t) {
88
88
  },
89
89
  error: function(t) {
90
- if (xn.config.useDeprecatedSynchronousErrorHandling)
90
+ if (Cn.config.useDeprecatedSynchronousErrorHandling)
91
91
  throw t;
92
- Cn.hostReportError(t);
92
+ Pn.hostReportError(t);
93
93
  },
94
94
  complete: function() {
95
95
  }
96
96
  };
97
- var mt = {}, gt = {};
98
- Object.defineProperty(gt, "__esModule", { value: !0 });
99
- gt.isArray = function() {
97
+ var gt = {}, yt = {};
98
+ Object.defineProperty(yt, "__esModule", { value: !0 });
99
+ yt.isArray = function() {
100
100
  return Array.isArray || function(t) {
101
101
  return t && typeof t.length == "number";
102
102
  };
103
103
  }();
104
- var yt = {};
105
- Object.defineProperty(yt, "__esModule", { value: !0 });
106
- function Pn(t) {
107
- return t !== null && typeof t == "object";
108
- }
109
- yt.isObject = Pn;
110
104
  var bt = {};
111
105
  Object.defineProperty(bt, "__esModule", { value: !0 });
112
- var Tn = function() {
106
+ function Tn(t) {
107
+ return t !== null && typeof t == "object";
108
+ }
109
+ bt.isObject = Tn;
110
+ var wt = {};
111
+ Object.defineProperty(wt, "__esModule", { value: !0 });
112
+ var jn = function() {
113
113
  function t(e) {
114
114
  return Error.call(this), this.message = e ? e.length + ` errors occurred during unsubscription:
115
115
  ` + e.map(function(r, n) {
@@ -119,9 +119,9 @@ var Tn = function() {
119
119
  }
120
120
  return t.prototype = Object.create(Error.prototype), t;
121
121
  }();
122
- bt.UnsubscriptionError = Tn;
123
- Object.defineProperty(mt, "__esModule", { value: !0 });
124
- var jn = gt, Dn = yt, qn = Ue, Ae = bt, Mn = function() {
122
+ wt.UnsubscriptionError = jn;
123
+ Object.defineProperty(gt, "__esModule", { value: !0 });
124
+ var Dn = yt, qn = bt, Mn = Ue, Ae = wt, An = function() {
125
125
  function t(e) {
126
126
  this.closed = !1, this._parentOrParents = null, this._subscriptions = null, e && (this._ctorUnsubscribe = !0, this._unsubscribe = e);
127
127
  }
@@ -136,22 +136,22 @@ var jn = gt, Dn = yt, qn = Ue, Ae = bt, Mn = function() {
136
136
  var u = n[s];
137
137
  u.remove(this);
138
138
  }
139
- if (qn.isFunction(i)) {
139
+ if (Mn.isFunction(i)) {
140
140
  a && (this._unsubscribe = void 0);
141
141
  try {
142
142
  i.call(this);
143
143
  } catch (d) {
144
- e = d instanceof Ae.UnsubscriptionError ? Ht(d.errors) : [d];
144
+ e = d instanceof Ae.UnsubscriptionError ? Wt(d.errors) : [d];
145
145
  }
146
146
  }
147
- if (jn.isArray(o))
147
+ if (Dn.isArray(o))
148
148
  for (var s = -1, c = o.length; ++s < c; ) {
149
149
  var g = o[s];
150
- if (Dn.isObject(g))
150
+ if (qn.isObject(g))
151
151
  try {
152
152
  g.unsubscribe();
153
153
  } catch (p) {
154
- e = e || [], p instanceof Ae.UnsubscriptionError ? e = e.concat(Ht(p.errors)) : e.push(p);
154
+ e = e || [], p instanceof Ae.UnsubscriptionError ? e = e.concat(Wt(p.errors)) : e.push(p);
155
155
  }
156
156
  }
157
157
  if (e)
@@ -200,18 +200,18 @@ var jn = gt, Dn = yt, qn = Ue, Ae = bt, Mn = function() {
200
200
  return e.closed = !0, e;
201
201
  }(new t()), t;
202
202
  }();
203
- mt.Subscription = Mn;
204
- function Ht(t) {
203
+ gt.Subscription = An;
204
+ function Wt(t) {
205
205
  return t.reduce(function(e, r) {
206
206
  return e.concat(r instanceof Ae.UnsubscriptionError ? r.errors : r);
207
207
  }, []);
208
208
  }
209
- var wt = {};
209
+ var _t = {};
210
210
  (function(t) {
211
211
  Object.defineProperty(t, "__esModule", { value: !0 }), t.rxSubscriber = function() {
212
212
  return typeof Symbol == "function" ? Symbol("rxSubscriber") : "@@rxSubscriber_" + Math.random();
213
213
  }(), t.$$rxSubscriber = t.rxSubscriber;
214
- })(wt);
214
+ })(_t);
215
215
  var Tr = j && j.__extends || function() {
216
216
  var t = function(e, r) {
217
217
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
@@ -229,8 +229,8 @@ var Tr = j && j.__extends || function() {
229
229
  e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
230
230
  };
231
231
  }();
232
- Object.defineProperty(z, "__esModule", { value: !0 });
233
- var Wt = Ue, ot = ke, An = mt, Rn = wt, ue = Se, je = Ne, jr = function(t) {
232
+ Object.defineProperty(X, "__esModule", { value: !0 });
233
+ var Lt = Ue, ot = ke, Rn = gt, In = _t, ue = Se, je = Ne, jr = function(t) {
234
234
  Tr(e, t);
235
235
  function e(r, n, a) {
236
236
  var i = t.call(this) || this;
@@ -253,7 +253,7 @@ var Wt = Ue, ot = ke, An = mt, Rn = wt, ue = Se, je = Ne, jr = function(t) {
253
253
  }
254
254
  return i;
255
255
  }
256
- return e.prototype[Rn.rxSubscriber] = function() {
256
+ return e.prototype[In.rxSubscriber] = function() {
257
257
  return this;
258
258
  }, e.create = function(r, n, a) {
259
259
  var i = new e(r, n, a);
@@ -276,15 +276,15 @@ var Wt = Ue, ot = ke, An = mt, Rn = wt, ue = Se, je = Ne, jr = function(t) {
276
276
  var r = this._parentOrParents;
277
277
  return this._parentOrParents = null, this.unsubscribe(), this.closed = !1, this.isStopped = !1, this._parentOrParents = r, this;
278
278
  }, e;
279
- }(An.Subscription);
280
- z.Subscriber = jr;
279
+ }(Rn.Subscription);
280
+ X.Subscriber = jr;
281
281
  var st = function(t) {
282
282
  Tr(e, t);
283
283
  function e(r, n, a, i) {
284
284
  var o = t.call(this) || this;
285
285
  o._parentSubscriber = r;
286
286
  var s, u = o;
287
- return Wt.isFunction(n) ? s = n : n && (s = n.next, a = n.error, i = n.complete, n !== ot.empty && (u = Object.create(n), Wt.isFunction(u.unsubscribe) && o.add(u.unsubscribe.bind(u)), u.unsubscribe = o.unsubscribe.bind(o))), o._context = u, o._next = s, o._error = a, o._complete = i, o;
287
+ return Lt.isFunction(n) ? s = n : n && (s = n.next, a = n.error, i = n.complete, n !== ot.empty && (u = Object.create(n), Lt.isFunction(u.unsubscribe) && o.add(u.unsubscribe.bind(u)), u.unsubscribe = o.unsubscribe.bind(o))), o._context = u, o._next = s, o._error = a, o._complete = i, o;
288
288
  }
289
289
  return e.prototype.next = function(r) {
290
290
  if (!this.isStopped && this._next) {
@@ -338,8 +338,8 @@ var st = function(t) {
338
338
  this._context = null, this._parentSubscriber = null, r.unsubscribe();
339
339
  }, e;
340
340
  }(jr);
341
- z.SafeSubscriber = st;
342
- var In = j && j.__extends || function() {
341
+ X.SafeSubscriber = st;
342
+ var $n = j && j.__extends || function() {
343
343
  var t = function(e, r) {
344
344
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
345
345
  n.__proto__ = a;
@@ -356,23 +356,23 @@ var In = j && j.__extends || function() {
356
356
  e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
357
357
  };
358
358
  }();
359
- Object.defineProperty(vt, "__esModule", { value: !0 });
360
- var $n = z;
361
- function Un(t, e) {
359
+ Object.defineProperty(mt, "__esModule", { value: !0 });
360
+ var Un = X;
361
+ function kn(t, e) {
362
362
  return function(n) {
363
- return n.lift(new kn(t, e));
363
+ return n.lift(new Nn(t, e));
364
364
  };
365
365
  }
366
- vt.filter = Un;
367
- var kn = function() {
366
+ mt.filter = kn;
367
+ var Nn = function() {
368
368
  function t(e, r) {
369
369
  this.predicate = e, this.thisArg = r;
370
370
  }
371
371
  return t.prototype.call = function(e, r) {
372
- return r.subscribe(new Nn(e, this.predicate, this.thisArg));
372
+ return r.subscribe(new Hn(e, this.predicate, this.thisArg));
373
373
  }, t;
374
- }(), Nn = function(t) {
375
- In(e, t);
374
+ }(), Hn = function(t) {
375
+ $n(e, t);
376
376
  function e(r, n, a) {
377
377
  var i = t.call(this, r) || this;
378
378
  return i.predicate = n, i.thisArg = a, i.count = 0, i;
@@ -387,9 +387,9 @@ var kn = function() {
387
387
  }
388
388
  n && this.destination.next(r);
389
389
  }, e;
390
- }($n.Subscriber);
391
- Ee.filter = vt.filter;
392
- var xe = {}, He = {}, Hn = j && j.__extends || function() {
390
+ }(Un.Subscriber);
391
+ Ee.filter = mt.filter;
392
+ var xe = {}, He = {}, Wn = j && j.__extends || function() {
393
393
  var t = function(e, r) {
394
394
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
395
395
  n.__proto__ = a;
@@ -407,26 +407,26 @@ var xe = {}, He = {}, Hn = j && j.__extends || function() {
407
407
  };
408
408
  }();
409
409
  Object.defineProperty(He, "__esModule", { value: !0 });
410
- var Wn = z;
411
- function Ln(t, e) {
410
+ var Ln = X;
411
+ function Fn(t, e) {
412
412
  return function(n) {
413
413
  if (typeof t != "function")
414
414
  throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
415
415
  return n.lift(new Dr(t, e));
416
416
  };
417
417
  }
418
- He.map = Ln;
418
+ He.map = Fn;
419
419
  var Dr = function() {
420
420
  function t(e, r) {
421
421
  this.project = e, this.thisArg = r;
422
422
  }
423
423
  return t.prototype.call = function(e, r) {
424
- return r.subscribe(new Fn(e, this.project, this.thisArg));
424
+ return r.subscribe(new Bn(e, this.project, this.thisArg));
425
425
  }, t;
426
426
  }();
427
427
  He.MapOperator = Dr;
428
- var Fn = function(t) {
429
- Hn(e, t);
428
+ var Bn = function(t) {
429
+ Wn(e, t);
430
430
  function e(r, n, a) {
431
431
  var i = t.call(this, r) || this;
432
432
  return i.project = n, i.count = 0, i.thisArg = a || i, i;
@@ -441,23 +441,23 @@ var Fn = function(t) {
441
441
  }
442
442
  this.destination.next(n);
443
443
  }, e;
444
- }(Wn.Subscriber);
444
+ }(Ln.Subscriber);
445
445
  xe.map = He.map;
446
- var Bn = function(t) {
446
+ var Yn = function(t) {
447
447
  var e = typeof t;
448
448
  return t !== null && (e === "object" || e === "function");
449
- }, Yn = Bn, ut = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable;
450
- function zn(t) {
449
+ }, zn = Yn, ut = Object.prototype.hasOwnProperty, Xn = Object.prototype.propertyIsEnumerable;
450
+ function Vn(t) {
451
451
  if (t == null)
452
452
  throw new TypeError("Sources cannot be null or undefined");
453
453
  return Object(t);
454
454
  }
455
- function Lt(t, e, r) {
455
+ function Ft(t, e, r) {
456
456
  var n = e[r];
457
457
  if (n != null) {
458
458
  if (ut.call(t, r) && (t[r] === void 0 || t[r] === null))
459
459
  throw new TypeError("Cannot convert undefined or null to object (" + r + ")");
460
- !ut.call(t, r) || !Yn(n) ? t[r] = n : t[r] = qr(Object(t[r]), e[r]);
460
+ !ut.call(t, r) || !zn(n) ? t[r] = n : t[r] = qr(Object(t[r]), e[r]);
461
461
  }
462
462
  }
463
463
  function qr(t, e) {
@@ -465,14 +465,14 @@ function qr(t, e) {
465
465
  return t;
466
466
  e = Object(e);
467
467
  for (var r in e)
468
- ut.call(e, r) && Lt(t, e, r);
468
+ ut.call(e, r) && Ft(t, e, r);
469
469
  if (Object.getOwnPropertySymbols)
470
470
  for (var n = Object.getOwnPropertySymbols(e), a = 0; a < n.length; a++)
471
- Xn.call(e, n[a]) && Lt(t, e, n[a]);
471
+ Xn.call(e, n[a]) && Ft(t, e, n[a]);
472
472
  return t;
473
473
  }
474
- var Vn = function(e) {
475
- e = zn(e);
474
+ var Gn = function(e) {
475
+ e = Vn(e);
476
476
  for (var r = 1; r < arguments.length; r++)
477
477
  qr(e, arguments[r]);
478
478
  return e;
@@ -548,7 +548,7 @@ var Vn = function(e) {
548
548
  function Ge(t, e, r) {
549
549
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
550
550
  }
551
- var Gn = Vn, Z = D, Qn = Mr, Ar = te, De = Ar.validateObject, Jn = Ar.validateInsert;
551
+ var Qn = Gn, Z = D, Jn = Mr, Ar = te, De = Ar.validateObject, Kn = Ar.validateInsert;
552
552
  function ct(t) {
553
553
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
554
554
  this.selection = t, this.operations = Z({}, e), this.client = r;
@@ -565,7 +565,7 @@ Z(ct.prototype, {
565
565
  }).slice(2);
566
566
  return console.warn(`The "merge" patch has been deprecated and will be removed in the future
567
567
  `.concat(r.join(`
568
- `))), this._assign("merge", Gn(this.operations.merge || {}, e));
568
+ `))), this._assign("merge", Qn(this.operations.merge || {}, e));
569
569
  },
570
570
  set: function(e) {
571
571
  return this._assign("set", e);
@@ -596,7 +596,7 @@ Z(ct.prototype, {
596
596
  },
597
597
  insert: function(e, r, n) {
598
598
  var a;
599
- return Jn(e, r, n), this._assign("insert", (a = {}, Ge(a, e, r), Ge(a, "items", n), a));
599
+ return Kn(e, r, n), this._assign("insert", (a = {}, Ge(a, e, r), Ge(a, "items", n), a));
600
600
  },
601
601
  append: function(e, r) {
602
602
  return this.insert("after", "".concat(e, "[-1]"), r);
@@ -612,7 +612,7 @@ Z(ct.prototype, {
612
612
  return this.operations.ifRevisionID = e, this;
613
613
  },
614
614
  serialize: function() {
615
- return Z(Qn(this.selection), this.operations);
615
+ return Z(Jn(this.selection), this.operations);
616
616
  },
617
617
  toJSON: function() {
618
618
  return this.serialize();
@@ -640,11 +640,11 @@ Z(ct.prototype, {
640
640
  return De(e, r), this.operations = Z({}, this.operations, Ge({}, e, Z({}, n && this.operations[e] || {}, r))), this;
641
641
  }
642
642
  });
643
- var _t = ct;
644
- function Ft(t, e, r) {
643
+ var Ot = ct;
644
+ function Bt(t, e, r) {
645
645
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
646
646
  }
647
- var Qe = D, ce = te, Je = _t, Kn = {
647
+ var Qe = D, ce = te, Je = Ot, Zn = {
648
648
  returnDocuments: !1
649
649
  };
650
650
  function ft() {
@@ -662,11 +662,11 @@ Qe(ft.prototype, {
662
662
  },
663
663
  createIfNotExists: function(e) {
664
664
  var r = "createIfNotExists";
665
- return ce.validateObject(r, e), ce.requireDocumentId(r, e), this._add(Ft({}, r, e));
665
+ return ce.validateObject(r, e), ce.requireDocumentId(r, e), this._add(Bt({}, r, e));
666
666
  },
667
667
  createOrReplace: function(e) {
668
668
  var r = "createOrReplace";
669
- return ce.validateObject(r, e), ce.requireDocumentId(r, e), this._add(Ft({}, r, e));
669
+ return ce.validateObject(r, e), ce.requireDocumentId(r, e), this._add(Bt({}, r, e));
670
670
  },
671
671
  delete: function(e) {
672
672
  return ce.validateDocumentId("delete", e), this._add({
@@ -709,7 +709,7 @@ Qe(ft.prototype, {
709
709
  throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");
710
710
  return this.client.mutate(this.serialize(), Qe({
711
711
  transactionId: this.trxId
712
- }, Kn, e || {}));
712
+ }, Zn, e || {}));
713
713
  },
714
714
  reset: function() {
715
715
  return this.operations = [], this;
@@ -718,11 +718,11 @@ Qe(ft.prototype, {
718
718
  return this.operations.push(e), this;
719
719
  }
720
720
  });
721
- var Rr = ft, Zn = ["tag"];
722
- function ea(t, e) {
721
+ var Rr = ft, ea = ["tag"];
722
+ function ta(t, e) {
723
723
  if (t == null)
724
724
  return {};
725
- var r = ta(t, e), n, a;
725
+ var r = ra(t, e), n, a;
726
726
  if (Object.getOwnPropertySymbols) {
727
727
  var i = Object.getOwnPropertySymbols(t);
728
728
  for (a = 0; a < i.length; a++)
@@ -730,7 +730,7 @@ function ea(t, e) {
730
730
  }
731
731
  return r;
732
732
  }
733
- function ta(t, e) {
733
+ function ra(t, e) {
734
734
  if (t == null)
735
735
  return {};
736
736
  var r = {}, n = Object.keys(t), a, i;
@@ -739,59 +739,59 @@ function ta(t, e) {
739
739
  return r;
740
740
  }
741
741
  var fe = encodeURIComponent, Ir = function(t) {
742
- var e = t.query, r = t.params, n = r === void 0 ? {} : r, a = t.options, i = a === void 0 ? {} : a, o = i.tag, s = ea(i, Zn), u = "query=".concat(fe(e)), c = o ? "?tag=".concat(fe(o), "&").concat(u) : "?".concat(u), g = Object.keys(n).reduce(function(d, p) {
742
+ var e = t.query, r = t.params, n = r === void 0 ? {} : r, a = t.options, i = a === void 0 ? {} : a, o = i.tag, s = ta(i, ea), u = "query=".concat(fe(e)), c = o ? "?tag=".concat(fe(o), "&").concat(u) : "?".concat(u), g = Object.keys(n).reduce(function(d, p) {
743
743
  return "".concat(d, "&").concat(fe("$".concat(p)), "=").concat(fe(JSON.stringify(n[p])));
744
744
  }, c);
745
745
  return Object.keys(s).reduce(function(d, p) {
746
746
  return i[p] ? "".concat(d, "&").concat(fe(p), "=").concat(fe(i[p])) : d;
747
747
  }, g);
748
- }, We = {}, Ot = {};
749
- Object.defineProperty(Ot, "__esModule", { value: !0 });
750
- var ra = z;
751
- function na(t) {
748
+ }, We = {}, Et = {};
749
+ Object.defineProperty(Et, "__esModule", { value: !0 });
750
+ var na = X;
751
+ function aa(t) {
752
752
  for (; t; ) {
753
753
  var e = t, r = e.closed, n = e.destination, a = e.isStopped;
754
754
  if (r || a)
755
755
  return !1;
756
- n && n instanceof ra.Subscriber ? t = n : t = null;
756
+ n && n instanceof na.Subscriber ? t = n : t = null;
757
757
  }
758
758
  return !0;
759
759
  }
760
- Ot.canReportError = na;
761
- var Et = {};
762
- Object.defineProperty(Et, "__esModule", { value: !0 });
763
- var Ke = z, Bt = wt, aa = ke;
764
- function ia(t, e, r) {
760
+ Et.canReportError = aa;
761
+ var St = {};
762
+ Object.defineProperty(St, "__esModule", { value: !0 });
763
+ var Ke = X, Yt = _t, ia = ke;
764
+ function oa(t, e, r) {
765
765
  if (t) {
766
766
  if (t instanceof Ke.Subscriber)
767
767
  return t;
768
- if (t[Bt.rxSubscriber])
769
- return t[Bt.rxSubscriber]();
768
+ if (t[Yt.rxSubscriber])
769
+ return t[Yt.rxSubscriber]();
770
770
  }
771
- return !t && !e && !r ? new Ke.Subscriber(aa.empty) : new Ke.Subscriber(t, e, r);
771
+ return !t && !e && !r ? new Ke.Subscriber(ia.empty) : new Ke.Subscriber(t, e, r);
772
772
  }
773
- Et.toSubscriber = ia;
774
- var St = {};
775
- Object.defineProperty(St, "__esModule", { value: !0 });
776
- St.observable = function() {
773
+ St.toSubscriber = oa;
774
+ var xt = {};
775
+ Object.defineProperty(xt, "__esModule", { value: !0 });
776
+ xt.observable = function() {
777
777
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
778
778
  }();
779
- var Ce = {}, xt = {};
780
- Object.defineProperty(xt, "__esModule", { value: !0 });
781
- function oa(t) {
779
+ var Ce = {}, Ct = {};
780
+ Object.defineProperty(Ct, "__esModule", { value: !0 });
781
+ function sa(t) {
782
782
  return t;
783
783
  }
784
- xt.identity = oa;
784
+ Ct.identity = sa;
785
785
  Object.defineProperty(Ce, "__esModule", { value: !0 });
786
- var sa = xt;
787
- function ua() {
786
+ var ua = Ct;
787
+ function ca() {
788
788
  for (var t = [], e = 0; e < arguments.length; e++)
789
789
  t[e] = arguments[e];
790
790
  return $r(t);
791
791
  }
792
- Ce.pipe = ua;
792
+ Ce.pipe = ca;
793
793
  function $r(t) {
794
- return t.length === 0 ? sa.identity : t.length === 1 ? t[0] : function(r) {
794
+ return t.length === 0 ? ua.identity : t.length === 1 ? t[0] : function(r) {
795
795
  return t.reduce(function(n, a) {
796
796
  return a(n);
797
797
  }, r);
@@ -799,7 +799,7 @@ function $r(t) {
799
799
  }
800
800
  Ce.pipeFromArray = $r;
801
801
  Object.defineProperty(We, "__esModule", { value: !0 });
802
- var ca = Ot, fa = Et, la = St, da = Ce, Re = Se, ha = function() {
802
+ var fa = Et, la = St, da = xt, ha = Ce, Re = Se, pa = function() {
803
803
  function t(e) {
804
804
  this._isScalar = !1, e && (this._subscribe = e);
805
805
  }
@@ -807,7 +807,7 @@ var ca = Ot, fa = Et, la = St, da = Ce, Re = Se, ha = function() {
807
807
  var r = new t();
808
808
  return r.source = this, r.operator = e, r;
809
809
  }, t.prototype.subscribe = function(e, r, n) {
810
- var a = this.operator, i = fa.toSubscriber(e, r, n);
810
+ var a = this.operator, i = la.toSubscriber(e, r, n);
811
811
  if (a ? i.add(a.call(i, this.source)) : i.add(this.source || Re.config.useDeprecatedSynchronousErrorHandling && !i.syncErrorThrowable ? this._subscribe(i) : this._trySubscribe(i)), Re.config.useDeprecatedSynchronousErrorHandling && i.syncErrorThrowable && (i.syncErrorThrowable = !1, i.syncErrorThrown))
812
812
  throw i.syncErrorValue;
813
813
  return i;
@@ -815,11 +815,11 @@ var ca = Ot, fa = Et, la = St, da = Ce, Re = Se, ha = function() {
815
815
  try {
816
816
  return this._subscribe(e);
817
817
  } catch (r) {
818
- Re.config.useDeprecatedSynchronousErrorHandling && (e.syncErrorThrown = !0, e.syncErrorValue = r), ca.canReportError(e) ? e.error(r) : console.warn(r);
818
+ Re.config.useDeprecatedSynchronousErrorHandling && (e.syncErrorThrown = !0, e.syncErrorValue = r), fa.canReportError(e) ? e.error(r) : console.warn(r);
819
819
  }
820
820
  }, t.prototype.forEach = function(e, r) {
821
821
  var n = this;
822
- return r = Yt(r), new r(function(a, i) {
822
+ return r = zt(r), new r(function(a, i) {
823
823
  var o;
824
824
  o = n.subscribe(function(s) {
825
825
  try {
@@ -832,15 +832,15 @@ var ca = Ot, fa = Et, la = St, da = Ce, Re = Se, ha = function() {
832
832
  }, t.prototype._subscribe = function(e) {
833
833
  var r = this.source;
834
834
  return r && r.subscribe(e);
835
- }, t.prototype[la.observable] = function() {
835
+ }, t.prototype[da.observable] = function() {
836
836
  return this;
837
837
  }, t.prototype.pipe = function() {
838
838
  for (var e = [], r = 0; r < arguments.length; r++)
839
839
  e[r] = arguments[r];
840
- return e.length === 0 ? this : da.pipeFromArray(e)(this);
840
+ return e.length === 0 ? this : ha.pipeFromArray(e)(this);
841
841
  }, t.prototype.toPromise = function(e) {
842
842
  var r = this;
843
- return e = Yt(e), new e(function(n, a) {
843
+ return e = zt(e), new e(function(n, a) {
844
844
  var i;
845
845
  r.subscribe(function(o) {
846
846
  return i = o;
@@ -854,13 +854,13 @@ var ca = Ot, fa = Et, la = St, da = Ce, Re = Se, ha = function() {
854
854
  return new t(e);
855
855
  }, t;
856
856
  }();
857
- We.Observable = ha;
858
- function Yt(t) {
857
+ We.Observable = pa;
858
+ function zt(t) {
859
859
  if (t || (t = Re.config.Promise || Promise), !t)
860
860
  throw new Error("no Promise impl found");
861
861
  return t;
862
862
  }
863
- var Ur = {}, Ct = {}, Pt = {}, pa = j && j.__extends || function() {
863
+ var Ur = {}, Pt = {}, Tt = {}, va = j && j.__extends || function() {
864
864
  var t = function(e, r) {
865
865
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
866
866
  n.__proto__ = a;
@@ -877,24 +877,24 @@ var Ur = {}, Ct = {}, Pt = {}, pa = j && j.__extends || function() {
877
877
  e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
878
878
  };
879
879
  }();
880
- Object.defineProperty(Pt, "__esModule", { value: !0 });
881
- var va = z;
882
- function ma(t, e) {
880
+ Object.defineProperty(Tt, "__esModule", { value: !0 });
881
+ var ma = X;
882
+ function ga(t, e) {
883
883
  var r = !1;
884
884
  return arguments.length >= 2 && (r = !0), function(a) {
885
- return a.lift(new ga(t, e, r));
885
+ return a.lift(new ya(t, e, r));
886
886
  };
887
887
  }
888
- Pt.scan = ma;
889
- var ga = function() {
888
+ Tt.scan = ga;
889
+ var ya = function() {
890
890
  function t(e, r, n) {
891
891
  n === void 0 && (n = !1), this.accumulator = e, this.seed = r, this.hasSeed = n;
892
892
  }
893
893
  return t.prototype.call = function(e, r) {
894
- return r.subscribe(new ya(e, this.accumulator, this.seed, this.hasSeed));
894
+ return r.subscribe(new ba(e, this.accumulator, this.seed, this.hasSeed));
895
895
  }, t;
896
- }(), ya = function(t) {
897
- pa(e, t);
896
+ }(), ba = function(t) {
897
+ va(e, t);
898
898
  function e(r, n, a, i) {
899
899
  var o = t.call(this, r) || this;
900
900
  return o.accumulator = n, o._seed = a, o.hasSeed = i, o.index = 0, o;
@@ -922,15 +922,15 @@ var ga = function() {
922
922
  }
923
923
  this.seed = a, this.destination.next(a);
924
924
  }, e;
925
- }(va.Subscriber), Tt = {}, jt = {};
926
- Object.defineProperty(jt, "__esModule", { value: !0 });
927
- var ba = function() {
925
+ }(ma.Subscriber), jt = {}, Dt = {};
926
+ Object.defineProperty(Dt, "__esModule", { value: !0 });
927
+ var wa = function() {
928
928
  function t() {
929
929
  return Error.call(this), this.message = "argument out of range", this.name = "ArgumentOutOfRangeError", this;
930
930
  }
931
931
  return t.prototype = Object.create(Error.prototype), t;
932
932
  }();
933
- jt.ArgumentOutOfRangeError = ba;
933
+ Dt.ArgumentOutOfRangeError = wa;
934
934
  var kr = {};
935
935
  (function(t) {
936
936
  Object.defineProperty(t, "__esModule", { value: !0 });
@@ -950,7 +950,7 @@ var kr = {};
950
950
  });
951
951
  }
952
952
  })(kr);
953
- var wa = j && j.__extends || function() {
953
+ var _a = j && j.__extends || function() {
954
954
  var t = function(e, r) {
955
955
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
956
956
  n.__proto__ = a;
@@ -967,24 +967,24 @@ var wa = j && j.__extends || function() {
967
967
  e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
968
968
  };
969
969
  }();
970
- Object.defineProperty(Tt, "__esModule", { value: !0 });
971
- var _a = z, Oa = jt, Ea = kr;
972
- function Sa(t) {
970
+ Object.defineProperty(jt, "__esModule", { value: !0 });
971
+ var Oa = X, Ea = Dt, Sa = kr;
972
+ function xa(t) {
973
973
  return function(r) {
974
- return t === 0 ? Ea.empty() : r.lift(new xa(t));
974
+ return t === 0 ? Sa.empty() : r.lift(new Ca(t));
975
975
  };
976
976
  }
977
- Tt.takeLast = Sa;
978
- var xa = function() {
977
+ jt.takeLast = xa;
978
+ var Ca = function() {
979
979
  function t(e) {
980
980
  if (this.total = e, this.total < 0)
981
- throw new Oa.ArgumentOutOfRangeError();
981
+ throw new Ea.ArgumentOutOfRangeError();
982
982
  }
983
983
  return t.prototype.call = function(e, r) {
984
- return r.subscribe(new Ca(e, this.total));
984
+ return r.subscribe(new Pa(e, this.total));
985
985
  }, t;
986
- }(), Ca = function(t) {
987
- wa(e, t);
986
+ }(), Pa = function(t) {
987
+ _a(e, t);
988
988
  function e(r, n) {
989
989
  var a = t.call(this, r) || this;
990
990
  return a.total = n, a.ring = new Array(), a.count = 0, a;
@@ -1006,7 +1006,7 @@ var xa = function() {
1006
1006
  }
1007
1007
  r.complete();
1008
1008
  }, e;
1009
- }(_a.Subscriber), Dt = {}, Pa = j && j.__extends || function() {
1009
+ }(Oa.Subscriber), qt = {}, Ta = j && j.__extends || function() {
1010
1010
  var t = function(e, r) {
1011
1011
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, a) {
1012
1012
  n.__proto__ = a;
@@ -1023,23 +1023,23 @@ var xa = function() {
1023
1023
  e.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
1024
1024
  };
1025
1025
  }();
1026
- Object.defineProperty(Dt, "__esModule", { value: !0 });
1027
- var Ta = z;
1028
- function ja(t) {
1026
+ Object.defineProperty(qt, "__esModule", { value: !0 });
1027
+ var ja = X;
1028
+ function Da(t) {
1029
1029
  return t === void 0 && (t = null), function(e) {
1030
- return e.lift(new Da(t));
1030
+ return e.lift(new qa(t));
1031
1031
  };
1032
1032
  }
1033
- Dt.defaultIfEmpty = ja;
1034
- var Da = function() {
1033
+ qt.defaultIfEmpty = Da;
1034
+ var qa = function() {
1035
1035
  function t(e) {
1036
1036
  this.defaultValue = e;
1037
1037
  }
1038
1038
  return t.prototype.call = function(e, r) {
1039
- return r.subscribe(new qa(e, this.defaultValue));
1039
+ return r.subscribe(new Ma(e, this.defaultValue));
1040
1040
  }, t;
1041
- }(), qa = function(t) {
1042
- Pa(e, t);
1041
+ }(), Ma = function(t) {
1042
+ Ta(e, t);
1043
1043
  function e(r, n) {
1044
1044
  var a = t.call(this, r) || this;
1045
1045
  return a.defaultValue = n, a.isEmpty = !0, a;
@@ -1049,25 +1049,25 @@ var Da = function() {
1049
1049
  }, e.prototype._complete = function() {
1050
1050
  this.isEmpty && this.destination.next(this.defaultValue), this.destination.complete();
1051
1051
  }, e;
1052
- }(Ta.Subscriber);
1053
- Object.defineProperty(Ct, "__esModule", { value: !0 });
1054
- var Xt = Pt, zt = Tt, Ma = Dt, Vt = Ce;
1055
- function Aa(t, e) {
1052
+ }(ja.Subscriber);
1053
+ Object.defineProperty(Pt, "__esModule", { value: !0 });
1054
+ var Xt = Tt, Vt = jt, Aa = qt, Gt = Ce;
1055
+ function Ra(t, e) {
1056
1056
  return arguments.length >= 2 ? function(n) {
1057
- return Vt.pipe(Xt.scan(t, e), zt.takeLast(1), Ma.defaultIfEmpty(e))(n);
1057
+ return Gt.pipe(Xt.scan(t, e), Vt.takeLast(1), Aa.defaultIfEmpty(e))(n);
1058
1058
  } : function(n) {
1059
- return Vt.pipe(Xt.scan(function(a, i, o) {
1059
+ return Gt.pipe(Xt.scan(function(a, i, o) {
1060
1060
  return t(a, i, o + 1);
1061
- }), zt.takeLast(1))(n);
1061
+ }), Vt.takeLast(1))(n);
1062
1062
  };
1063
1063
  }
1064
- Ct.reduce = Aa;
1065
- Ur.reduce = Ct.reduce;
1066
- var Ra = We, Nr = Ra.Observable, Ia = D, $a = xe, Ua = $a.map, ka = Ee, Na = ka.filter, Ha = Ur, Wa = Ha.reduce;
1064
+ Pt.reduce = Ra;
1065
+ Ur.reduce = Pt.reduce;
1066
+ var Ia = We, Nr = Ia.Observable, $a = D, Ua = xe, ka = Ua.map, Na = Ee, Ha = Na.filter, Wa = Ur, La = Wa.reduce;
1067
1067
  function J() {
1068
1068
  Nr.apply(this, arguments);
1069
1069
  }
1070
- J.prototype = Object.create(Ia(/* @__PURE__ */ Object.create(null), Nr.prototype));
1070
+ J.prototype = Object.create($a(/* @__PURE__ */ Object.create(null), Nr.prototype));
1071
1071
  Object.defineProperty(J.prototype, "constructor", {
1072
1072
  value: J,
1073
1073
  enumerable: !1,
@@ -1078,16 +1078,16 @@ J.prototype.lift = function(e) {
1078
1078
  var r = new J();
1079
1079
  return r.source = this, r.operator = e, r;
1080
1080
  };
1081
- function qt(t, e) {
1081
+ function Mt(t, e) {
1082
1082
  var r = !1;
1083
1083
  return function() {
1084
1084
  return r || (r = !0, console.warn(new Error("Calling observable.".concat(t, "(...) is deprecated. Please use observable.pipe(").concat(t, "(...)) instead")))), this.pipe(e.apply(this, arguments));
1085
1085
  };
1086
1086
  }
1087
- J.prototype.map = qt("map", Ua);
1088
- J.prototype.filter = qt("filter", Na);
1089
- J.prototype.reduce = qt("filter", Wa);
1090
- var La = J, Hr = La, Wr = { exports: {} };
1087
+ J.prototype.map = Mt("map", ka);
1088
+ J.prototype.filter = Mt("filter", Ha);
1089
+ J.prototype.reduce = Mt("filter", La);
1090
+ var Fa = J, Hr = Fa, Wr = { exports: {} };
1091
1091
  (function(t) {
1092
1092
  (function(e, r) {
1093
1093
  if (t.exports)
@@ -1378,15 +1378,15 @@ var La = J, Hr = La, Wr = { exports: {} };
1378
1378
  return e;
1379
1379
  });
1380
1380
  })(Wr);
1381
- var Fa = Wr.exports, Ba = Fa, Ya = typeof window > "u" || !window.EventSource ? (
1381
+ var Ba = Wr.exports, Ya = Ba, za = typeof window > "u" || !window.EventSource ? (
1382
1382
  // Use polyfill in non-browser/legacy environments
1383
- Ba.EventSource
1383
+ Ya.EventSource
1384
1384
  ) : (
1385
1385
  // Use native EventSource when we can
1386
1386
  window.EventSource
1387
- ), Xa = "https://docs.sanity.io/help/", Mt = function(e) {
1387
+ ), Xa = "https://docs.sanity.io/help/", At = function(e) {
1388
1388
  return Xa + e;
1389
- }, za = function(t, e) {
1389
+ }, Va = function(t, e) {
1390
1390
  return e.reduce(function(r, n) {
1391
1391
  return typeof t[n] > "u" || (r[n] = t[n]), r;
1392
1392
  }, {});
@@ -1395,12 +1395,12 @@ var Fa = Wr.exports, Ba = Fa, Ya = typeof window > "u" || !window.EventSource ?
1395
1395
  return function() {
1396
1396
  return e || (r = t.apply(void 0, arguments), e = !0), r;
1397
1397
  };
1398
- }, Va = function(t, e) {
1398
+ }, Ga = function(t, e) {
1399
1399
  return Object.keys(e).concat(Object.keys(t)).reduce(function(r, n) {
1400
1400
  return r[n] = typeof t[n] > "u" ? e[n] : t[n], r;
1401
1401
  }, {});
1402
1402
  };
1403
- function Gt(t, e) {
1403
+ function Qt(t, e) {
1404
1404
  var r = Object.keys(t);
1405
1405
  if (Object.getOwnPropertySymbols) {
1406
1406
  var n = Object.getOwnPropertySymbols(t);
@@ -1410,49 +1410,49 @@ function Gt(t, e) {
1410
1410
  }
1411
1411
  return r;
1412
1412
  }
1413
- function Qt(t) {
1413
+ function Jt(t) {
1414
1414
  for (var e = 1; e < arguments.length; e++) {
1415
1415
  var r = arguments[e] != null ? arguments[e] : {};
1416
- e % 2 ? Gt(Object(r), !0).forEach(function(n) {
1417
- Ga(t, n, r[n]);
1418
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Gt(Object(r)).forEach(function(n) {
1416
+ e % 2 ? Qt(Object(r), !0).forEach(function(n) {
1417
+ Qa(t, n, r[n]);
1418
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Qt(Object(r)).forEach(function(n) {
1419
1419
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
1420
1420
  });
1421
1421
  }
1422
1422
  return t;
1423
1423
  }
1424
- function Ga(t, e, r) {
1424
+ function Qa(t, e, r) {
1425
1425
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1426
1426
  }
1427
- var Qa = D, Jt = Hr, Ja = Ya, Ka = Mt, Za = za, ei = Lr, ti = Va, ri = Ir, ni = 16e3 - 1200, ai = ["Using token with listeners is not supported in browsers. ", "For more info, see ".concat(Ka("js-client-listener-tokens-browser"), ".")], ii = ei(function() {
1428
- return console.warn(ai.join(" "));
1429
- }), Fr = !!(typeof window < "u" && window.EventSource), Kt = Fr ? window.EventSource : Ja, oi = ["includePreviousRevision", "includeResult", "visibility", "effectFormat", "tag"], si = {
1427
+ var Ja = D, Kt = Hr, Ka = za, Za = At, ei = Va, ti = Lr, ri = Ga, ni = Ir, ai = 16e3 - 1200, ii = ["Using token with listeners is not supported in browsers. ", "For more info, see ".concat(Za("js-client-listener-tokens-browser"), ".")], oi = ti(function() {
1428
+ return console.warn(ii.join(" "));
1429
+ }), Fr = !!(typeof window < "u" && window.EventSource), Zt = Fr ? window.EventSource : Ka, si = ["includePreviousRevision", "includeResult", "visibility", "effectFormat", "tag"], ui = {
1430
1430
  includeResult: !0
1431
- }, ui = function(e, r) {
1432
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.clientConfig, i = a.url, o = a.token, s = a.withCredentials, u = a.requestTagPrefix, c = n.tag && u ? [u, n.tag].join(".") : n.tag, g = Qt(Qt({}, ti(n, si)), {}, {
1431
+ }, ci = function(e, r) {
1432
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.clientConfig, i = a.url, o = a.token, s = a.withCredentials, u = a.requestTagPrefix, c = n.tag && u ? [u, n.tag].join(".") : n.tag, g = Jt(Jt({}, ri(n, ui)), {}, {
1433
1433
  tag: c
1434
- }), d = Za(g, oi), p = ri({
1434
+ }), d = ei(g, si), p = ni({
1435
1435
  query: e,
1436
1436
  params: r,
1437
1437
  options: d,
1438
1438
  tag: c
1439
1439
  }), x = "".concat(i).concat(this.getDataUrl("listen", p));
1440
- if (x.length > ni)
1441
- return new Jt(function(b) {
1440
+ if (x.length > ai)
1441
+ return new Kt(function(b) {
1442
1442
  return b.error(new Error("Query too large for listener"));
1443
1443
  });
1444
1444
  var C = g.events ? g.events : ["mutation"], E = C.indexOf("reconnect") !== -1;
1445
- o && Fr && ii();
1445
+ o && Fr && oi();
1446
1446
  var O = {};
1447
1447
  return (o || s) && (O.withCredentials = !0), o && (O.headers = {
1448
1448
  Authorization: "Bearer ".concat(o)
1449
- }), new Jt(function(b) {
1449
+ }), new Kt(function(b) {
1450
1450
  var _ = l(), T, $ = !1;
1451
- function F() {
1452
- $ || (R(), !$ && _.readyState === Kt.CLOSED && (q(), clearTimeout(T), T = setTimeout(h, 100)));
1451
+ function B() {
1452
+ $ || (R(), !$ && _.readyState === Zt.CLOSED && (q(), clearTimeout(T), T = setTimeout(h, 100)));
1453
1453
  }
1454
1454
  function V(f) {
1455
- b.error(ci(f));
1455
+ b.error(fi(f));
1456
1456
  }
1457
1457
  function oe(f) {
1458
1458
  var w = Br(f);
@@ -1462,7 +1462,7 @@ var Qa = D, Jt = Hr, Ja = Ya, Ka = Mt, Za = za, ei = Lr, ti = Va, ri = Ir, ni =
1462
1462
  $ = !0, q(), b.complete();
1463
1463
  }
1464
1464
  function q() {
1465
- _.removeEventListener("error", F, !1), _.removeEventListener("channelError", V, !1), _.removeEventListener("disconnect", se, !1), C.forEach(function(f) {
1465
+ _.removeEventListener("error", B, !1), _.removeEventListener("channelError", V, !1), _.removeEventListener("disconnect", se, !1), C.forEach(function(f) {
1466
1466
  return _.removeEventListener(f, oe, !1);
1467
1467
  }), _.close();
1468
1468
  }
@@ -1472,8 +1472,8 @@ var Qa = D, Jt = Hr, Ja = Ya, Ka = Mt, Za = za, ei = Lr, ti = Va, ri = Ir, ni =
1472
1472
  });
1473
1473
  }
1474
1474
  function l() {
1475
- var f = new Kt(x, O);
1476
- return f.addEventListener("error", F, !1), f.addEventListener("channelError", V, !1), f.addEventListener("disconnect", se, !1), C.forEach(function(w) {
1475
+ var f = new Zt(x, O);
1476
+ return f.addEventListener("error", B, !1), f.addEventListener("channelError", V, !1), f.addEventListener("disconnect", se, !1), C.forEach(function(w) {
1477
1477
  return f.addEventListener(w, oe, !1);
1478
1478
  }), f;
1479
1479
  }
@@ -1489,47 +1489,47 @@ var Qa = D, Jt = Hr, Ja = Ya, Ka = Mt, Za = za, ei = Lr, ti = Va, ri = Ir, ni =
1489
1489
  function Br(t) {
1490
1490
  try {
1491
1491
  var e = t.data && JSON.parse(t.data) || {};
1492
- return Qa({
1492
+ return Ja({
1493
1493
  type: t.type
1494
1494
  }, e);
1495
1495
  } catch (r) {
1496
1496
  return r;
1497
1497
  }
1498
1498
  }
1499
- function ci(t) {
1499
+ function fi(t) {
1500
1500
  if (t instanceof Error)
1501
1501
  return t;
1502
1502
  var e = Br(t);
1503
- return e instanceof Error ? e : new Error(fi(e));
1503
+ return e instanceof Error ? e : new Error(li(e));
1504
1504
  }
1505
- function fi(t) {
1505
+ function li(t) {
1506
1506
  return t.error ? t.error.description ? t.error.description : typeof t.error == "string" ? t.error : JSON.stringify(t.error, null, 2) : t.message || "Unknown listener error";
1507
1507
  }
1508
- function Zt(t, e, r) {
1508
+ function er(t, e, r) {
1509
1509
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
1510
1510
  }
1511
- var li = D, di = Ee, Ze = di.filter, hi = xe, ge = hi.map, et = te, pi = Mr, vi = Ir, er = Rr, tr = _t, mi = ui, gi = function(e, r) {
1511
+ var di = D, hi = Ee, Ze = hi.filter, pi = xe, ge = pi.map, et = te, vi = Mr, mi = Ir, tr = Rr, rr = Ot, gi = ci, yi = function(e, r) {
1512
1512
  var n = typeof e > "u" ? r : e;
1513
1513
  return e === !1 ? void 0 : n;
1514
- }, yi = function() {
1514
+ }, bi = function() {
1515
1515
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1516
1516
  return {
1517
1517
  returnIds: !0,
1518
- returnDocuments: gi(e.returnDocuments, !0),
1518
+ returnDocuments: yi(e.returnDocuments, !0),
1519
1519
  visibility: e.visibility || "sync"
1520
1520
  };
1521
1521
  }, tt = function(e) {
1522
1522
  return e.type === "response";
1523
- }, bi = function(e) {
1523
+ }, wi = function(e) {
1524
1524
  return e.body;
1525
- }, wi = function(e, r) {
1525
+ }, _i = function(e, r) {
1526
1526
  return e.reduce(function(n, a) {
1527
1527
  return n[r(a)] = a, n;
1528
1528
  }, /* @__PURE__ */ Object.create(null));
1529
1529
  }, qe = function(e) {
1530
1530
  return e.toPromise();
1531
- }, _i = 11264, Oi = {
1532
- listen: mi,
1531
+ }, Oi = 11264, Ei = {
1532
+ listen: gi,
1533
1533
  getDataUrl: function(e, r) {
1534
1534
  var n = this.clientConfig, a = n.gradientMode ? n.namespace : et.hasDataset(n), i = "/".concat(e, "/").concat(a), o = r ? "".concat(i, "/").concat(r) : i;
1535
1535
  return (this.clientConfig.gradientMode ? o : "/data".concat(o)).replace(/\/($|\?)/, "$1");
@@ -1561,7 +1561,7 @@ var li = D, di = Ee, Ze = di.filter, hi = xe, ge = hi.map, et = te, pi = Mr, vi
1561
1561
  json: !0,
1562
1562
  tag: r.tag
1563
1563
  }, a = this._requestObservable(n).pipe(Ze(tt), ge(function(i) {
1564
- var o = wi(i.body.documents || [], function(s) {
1564
+ var o = _i(i.body.documents || [], function(s) {
1565
1565
  return s._id;
1566
1566
  });
1567
1567
  return e.map(function(s) {
@@ -1580,42 +1580,42 @@ var li = D, di = Ee, Ze = di.filter, hi = xe, ge = hi.map, et = te, pi = Mr, vi
1580
1580
  return et.requireDocumentId("createOrReplace", e), this._create(e, "createOrReplace", r);
1581
1581
  },
1582
1582
  patch: function(e, r) {
1583
- return new tr(e, r, this);
1583
+ return new rr(e, r, this);
1584
1584
  },
1585
1585
  delete: function(e, r) {
1586
1586
  return this.dataRequest("mutate", {
1587
1587
  mutations: [{
1588
- delete: pi(e)
1588
+ delete: vi(e)
1589
1589
  }]
1590
1590
  }, r);
1591
1591
  },
1592
1592
  mutate: function(e, r) {
1593
- var n = e instanceof tr || e instanceof er ? e.serialize() : e, a = Array.isArray(n) ? n : [n], i = r && r.transactionId;
1593
+ var n = e instanceof rr || e instanceof tr ? e.serialize() : e, a = Array.isArray(n) ? n : [n], i = r && r.transactionId;
1594
1594
  return this.dataRequest("mutate", {
1595
1595
  mutations: a,
1596
1596
  transactionId: i
1597
1597
  }, r);
1598
1598
  },
1599
1599
  transaction: function(e) {
1600
- return new er(e, this);
1600
+ return new tr(e, this);
1601
1601
  },
1602
1602
  dataRequest: function(e, r) {
1603
1603
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this._dataRequest(e, r, n);
1604
1604
  return this.isPromiseAPI() ? qe(a) : a;
1605
1605
  },
1606
1606
  _dataRequest: function(e, r) {
1607
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = e === "mutate", i = e === "query", o = !a && vi(r), s = !a && o.length < _i, u = s ? o : "", c = n.returnFirst, g = n.timeout, d = n.token, p = n.tag, x = this.getDataUrl(e, u), C = {
1607
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = e === "mutate", i = e === "query", o = !a && mi(r), s = !a && o.length < Oi, u = s ? o : "", c = n.returnFirst, g = n.timeout, d = n.token, p = n.tag, x = this.getDataUrl(e, u), C = {
1608
1608
  method: s ? "GET" : "POST",
1609
1609
  uri: x,
1610
1610
  json: !0,
1611
1611
  body: s ? void 0 : r,
1612
- query: a && yi(n),
1612
+ query: a && bi(n),
1613
1613
  timeout: g,
1614
1614
  token: d,
1615
1615
  tag: p,
1616
1616
  canUseCdn: i
1617
1617
  };
1618
- return this._requestObservable(C).pipe(Ze(tt), ge(bi), ge(function(E) {
1618
+ return this._requestObservable(C).pipe(Ze(tt), ge(wi), ge(function(E) {
1619
1619
  if (!a)
1620
1620
  return E;
1621
1621
  var O = E.results || [];
@@ -1626,14 +1626,14 @@ var li = D, di = Ee, Ze = di.filter, hi = xe, ge = hi.map, et = te, pi = Mr, vi
1626
1626
  var b = c ? "documentId" : "documentIds", _ = c ? O[0] && O[0].id : O.map(function(T) {
1627
1627
  return T.id;
1628
1628
  });
1629
- return Zt({
1629
+ return er({
1630
1630
  transactionId: E.transactionId,
1631
1631
  results: O
1632
1632
  }, b, _);
1633
1633
  }));
1634
1634
  },
1635
1635
  _create: function(e, r) {
1636
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = Zt({}, r, e), i = li({
1636
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = er({}, r, e), i = di({
1637
1637
  returnFirst: !0,
1638
1638
  returnDocuments: !0
1639
1639
  }, n);
@@ -1641,11 +1641,11 @@ var li = D, di = Ee, Ze = di.filter, hi = xe, ge = hi.map, et = te, pi = Mr, vi
1641
1641
  mutations: [a]
1642
1642
  }, i);
1643
1643
  }
1644
- }, Ei = D, Si = te;
1644
+ }, Si = D, xi = te;
1645
1645
  function Yr(t) {
1646
1646
  this.request = t.request.bind(t);
1647
1647
  }
1648
- Ei(Yr.prototype, {
1648
+ Si(Yr.prototype, {
1649
1649
  create: function(e, r) {
1650
1650
  return this._modify("PUT", e, r);
1651
1651
  },
@@ -1661,18 +1661,18 @@ Ei(Yr.prototype, {
1661
1661
  });
1662
1662
  },
1663
1663
  _modify: function(e, r, n) {
1664
- return Si.dataset(r), this.request({
1664
+ return xi.dataset(r), this.request({
1665
1665
  method: e,
1666
1666
  uri: "/datasets/".concat(r),
1667
1667
  body: n
1668
1668
  });
1669
1669
  }
1670
1670
  });
1671
- var xi = Yr, Ci = D;
1672
- function Xr(t) {
1671
+ var Ci = Yr, Pi = D;
1672
+ function zr(t) {
1673
1673
  this.client = t;
1674
1674
  }
1675
- Ci(Xr.prototype, {
1675
+ Pi(zr.prototype, {
1676
1676
  list: function() {
1677
1677
  return this.client.request({
1678
1678
  uri: "/projects"
@@ -1684,37 +1684,37 @@ Ci(Xr.prototype, {
1684
1684
  });
1685
1685
  }
1686
1686
  });
1687
- var Pi = Xr, Ti = function(t) {
1687
+ var Ti = zr, ji = function(t) {
1688
1688
  var e = [];
1689
1689
  for (var r in t)
1690
1690
  t.hasOwnProperty(r) && e.push("".concat(encodeURIComponent(r), "=").concat(encodeURIComponent(t[r])));
1691
1691
  return e.length > 0 ? "?".concat(e.join("&")) : "";
1692
1692
  };
1693
- function ji(t, e) {
1694
- return Ai(t) || Mi(t, e) || qi(t, e) || Di();
1693
+ function Di(t, e) {
1694
+ return Ri(t) || Ai(t, e) || Mi(t, e) || qi();
1695
1695
  }
1696
- function Di() {
1696
+ function qi() {
1697
1697
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1698
1698
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1699
1699
  }
1700
- function qi(t, e) {
1700
+ function Mi(t, e) {
1701
1701
  if (t) {
1702
1702
  if (typeof t == "string")
1703
- return rr(t, e);
1703
+ return nr(t, e);
1704
1704
  var r = Object.prototype.toString.call(t).slice(8, -1);
1705
1705
  if (r === "Object" && t.constructor && (r = t.constructor.name), r === "Map" || r === "Set")
1706
1706
  return Array.from(t);
1707
1707
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
1708
- return rr(t, e);
1708
+ return nr(t, e);
1709
1709
  }
1710
1710
  }
1711
- function rr(t, e) {
1711
+ function nr(t, e) {
1712
1712
  (e == null || e > t.length) && (e = t.length);
1713
1713
  for (var r = 0, n = new Array(e); r < e; r++)
1714
1714
  n[r] = t[r];
1715
1715
  return n;
1716
1716
  }
1717
- function Mi(t, e) {
1717
+ function Ai(t, e) {
1718
1718
  var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1719
1719
  if (r != null) {
1720
1720
  var n = [], a = !0, i = !1, o, s;
@@ -1734,15 +1734,15 @@ function Mi(t, e) {
1734
1734
  return n;
1735
1735
  }
1736
1736
  }
1737
- function Ai(t) {
1737
+ function Ri(t) {
1738
1738
  if (Array.isArray(t))
1739
1739
  return t;
1740
1740
  }
1741
- var zr = D, Ri = xe, Ii = Ri.map, $i = Ee, Ui = $i.filter, ki = Ti, Me = te;
1741
+ var Xr = D, Ii = xe, $i = Ii.map, Ui = Ee, ki = Ui.filter, Ni = ji, Me = te;
1742
1742
  function Vr(t) {
1743
1743
  this.client = t;
1744
1744
  }
1745
- function Ni(t) {
1745
+ function Hi(t) {
1746
1746
  var e = t.document;
1747
1747
  return Object.defineProperty(e, "document", {
1748
1748
  enumerable: !1,
@@ -1751,13 +1751,13 @@ function Ni(t) {
1751
1751
  }
1752
1752
  }), e;
1753
1753
  }
1754
- function Hi(t, e) {
1755
- return typeof window > "u" || !(e instanceof window.File) ? t : zr({
1754
+ function Wi(t, e) {
1755
+ return typeof window > "u" || !(e instanceof window.File) ? t : Xr({
1756
1756
  filename: t.preserveFilename === !1 ? void 0 : e.name,
1757
1757
  contentType: e.type
1758
1758
  }, t);
1759
1759
  }
1760
- zr(Vr.prototype, {
1760
+ Xr(Vr.prototype, {
1761
1761
  /**
1762
1762
  * Upload an asset
1763
1763
  *
@@ -1788,7 +1788,7 @@ zr(Vr.prototype, {
1788
1788
  Me.validateAssetType(e);
1789
1789
  var a = n.extract || void 0;
1790
1790
  a && !a.length && (a = ["none"]);
1791
- var i = Me.hasDataset(this.client.clientConfig), o = e === "image" ? "images" : "files", s = Hi(n, r), u = s.tag, c = s.label, g = s.title, d = s.description, p = s.creditLine, x = s.filename, C = s.source, E = {
1791
+ var i = Me.hasDataset(this.client.clientConfig), o = e === "image" ? "images" : "files", s = Wi(n, r), u = s.tag, c = s.label, g = s.title, d = s.description, p = s.creditLine, x = s.filename, C = s.source, E = {
1792
1792
  label: c,
1793
1793
  title: g,
1794
1794
  description: d,
@@ -1808,10 +1808,10 @@ zr(Vr.prototype, {
1808
1808
  query: E,
1809
1809
  body: r
1810
1810
  });
1811
- return this.client.isPromiseAPI() ? O.pipe(Ui(function(b) {
1811
+ return this.client.isPromiseAPI() ? O.pipe(ki(function(b) {
1812
1812
  return b.type === "response";
1813
- }), Ii(function(b) {
1814
- return Ni(b.body);
1813
+ }), $i(function(b) {
1814
+ return Hi(b.body);
1815
1815
  })).toPromise() : O;
1816
1816
  },
1817
1817
  delete: function(e, r) {
@@ -1825,28 +1825,28 @@ zr(Vr.prototype, {
1825
1825
  throw new Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");
1826
1826
  if (!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(n))
1827
1827
  throw new Error('Unsupported asset ID "'.concat(n, '". URL generation only works for auto-generated IDs.'));
1828
- var a = n.split("-"), i = ji(a, 4), o = i[1], s = i[2], u = i[3];
1828
+ var a = n.split("-"), i = Di(a, 4), o = i[1], s = i[2], u = i[3];
1829
1829
  Me.hasDataset(this.client.clientConfig);
1830
- var c = this.client.clientConfig, g = c.projectId, d = c.dataset, p = r ? ki(r) : "";
1830
+ var c = this.client.clientConfig, g = c.projectId, d = c.dataset, p = r ? Ni(r) : "";
1831
1831
  return "https://cdn.sanity.io/images/".concat(g, "/").concat(d, "/").concat(o, "-").concat(s, ".").concat(u).concat(p);
1832
1832
  }
1833
1833
  });
1834
- var Wi = Vr, Li = D;
1834
+ var Li = Vr, Fi = D;
1835
1835
  function Gr(t) {
1836
1836
  this.client = t;
1837
1837
  }
1838
- Li(Gr.prototype, {
1838
+ Fi(Gr.prototype, {
1839
1839
  getById: function(e) {
1840
1840
  return this.client.request({
1841
1841
  uri: "/users/".concat(e)
1842
1842
  });
1843
1843
  }
1844
1844
  });
1845
- var Fi = Gr, Bi = D;
1845
+ var Bi = Gr, Yi = D;
1846
1846
  function Qr(t) {
1847
1847
  this.client = t;
1848
1848
  }
1849
- Bi(Qr.prototype, {
1849
+ Yi(Qr.prototype, {
1850
1850
  getLoginProviders: function() {
1851
1851
  return this.client.request({
1852
1852
  uri: "/auth/providers"
@@ -1859,7 +1859,7 @@ Bi(Qr.prototype, {
1859
1859
  });
1860
1860
  }
1861
1861
  });
1862
- var Yi = Qr, Xi = function() {
1862
+ var zi = Qr, Xi = function() {
1863
1863
  var e = [];
1864
1864
  return {
1865
1865
  subscribe: r,
@@ -1875,7 +1875,7 @@ var Yi = Qr, Xi = function() {
1875
1875
  for (var a = 0; a < e.length; a++)
1876
1876
  e[a].apply(null, arguments);
1877
1877
  }
1878
- }, zi = function(t) {
1878
+ }, Vi = function(t) {
1879
1879
  var e = function(n, a) {
1880
1880
  for (var i = arguments.length, o = Array(i > 2 ? i - 2 : 0), s = 2; s < i; s++)
1881
1881
  o[s - 2] = arguments[s];
@@ -1887,7 +1887,7 @@ var Yi = Qr, Xi = function() {
1887
1887
  return c;
1888
1888
  };
1889
1889
  return e;
1890
- }, Vi = function(e, r) {
1890
+ }, Gi = function(e, r) {
1891
1891
  if (r = r.split(":")[0], e = +e, !e)
1892
1892
  return !1;
1893
1893
  switch (r) {
@@ -1905,45 +1905,45 @@ var Yi = Qr, Xi = function() {
1905
1905
  return !1;
1906
1906
  }
1907
1907
  return e !== 0;
1908
- }, At = {}, Gi = Object.prototype.hasOwnProperty, Qi;
1909
- function nr(t) {
1908
+ }, Rt = {}, Qi = Object.prototype.hasOwnProperty, Ji;
1909
+ function ar(t) {
1910
1910
  try {
1911
1911
  return decodeURIComponent(t.replace(/\+/g, " "));
1912
1912
  } catch {
1913
1913
  return null;
1914
1914
  }
1915
1915
  }
1916
- function ar(t) {
1916
+ function ir(t) {
1917
1917
  try {
1918
1918
  return encodeURIComponent(t);
1919
1919
  } catch {
1920
1920
  return null;
1921
1921
  }
1922
1922
  }
1923
- function Ji(t) {
1923
+ function Ki(t) {
1924
1924
  for (var e = /([^=?#&]+)=?([^&]*)/g, r = {}, n; n = e.exec(t); ) {
1925
- var a = nr(n[1]), i = nr(n[2]);
1925
+ var a = ar(n[1]), i = ar(n[2]);
1926
1926
  a === null || i === null || a in r || (r[a] = i);
1927
1927
  }
1928
1928
  return r;
1929
1929
  }
1930
- function Ki(t, e) {
1930
+ function Zi(t, e) {
1931
1931
  e = e || "";
1932
1932
  var r = [], n, a;
1933
1933
  typeof e != "string" && (e = "?");
1934
1934
  for (a in t)
1935
- if (Gi.call(t, a)) {
1936
- if (n = t[a], !n && (n === null || n === Qi || isNaN(n)) && (n = ""), a = ar(a), n = ar(n), a === null || n === null)
1935
+ if (Qi.call(t, a)) {
1936
+ if (n = t[a], !n && (n === null || n === Ji || isNaN(n)) && (n = ""), a = ir(a), n = ir(n), a === null || n === null)
1937
1937
  continue;
1938
1938
  r.push(a + "=" + n);
1939
1939
  }
1940
1940
  return r.length ? e + r.join("&") : "";
1941
1941
  }
1942
- At.stringify = Ki;
1943
- At.parse = Ji;
1944
- var Jr = Vi, Le = At, Zi = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, eo = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, to = /^[a-zA-Z]:/, ro = "[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]", no = new RegExp("^" + ro + "+");
1945
- function Rt(t) {
1946
- return (t || "").toString().replace(no, "");
1942
+ Rt.stringify = Zi;
1943
+ Rt.parse = Ki;
1944
+ var Jr = Gi, Le = Rt, eo = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, to = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, ro = /^[a-zA-Z]:/, no = "[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]", ao = new RegExp("^" + no + "+");
1945
+ function It(t) {
1946
+ return (t || "").toString().replace(ao, "");
1947
1947
  }
1948
1948
  var lt = [
1949
1949
  ["#", "hash"],
@@ -1963,7 +1963,7 @@ var lt = [
1963
1963
  // RegExp the back.
1964
1964
  [NaN, "hostname", void 0, 1, 1]
1965
1965
  // Set left over.
1966
- ], ir = { hash: 1, query: 1 };
1966
+ ], or = { hash: 1, query: 1 };
1967
1967
  function Kr(t) {
1968
1968
  var e;
1969
1969
  typeof window < "u" ? e = window : typeof j < "u" ? e = j : typeof self < "u" ? e = self : e = {};
@@ -1971,15 +1971,15 @@ function Kr(t) {
1971
1971
  t = t || r;
1972
1972
  var n = {}, a = typeof t, i;
1973
1973
  if (t.protocol === "blob:")
1974
- n = new X(unescape(t.pathname), {});
1974
+ n = new z(unescape(t.pathname), {});
1975
1975
  else if (a === "string") {
1976
- n = new X(t, {});
1977
- for (i in ir)
1976
+ n = new z(t, {});
1977
+ for (i in or)
1978
1978
  delete n[i];
1979
1979
  } else if (a === "object") {
1980
1980
  for (i in t)
1981
- i in ir || (n[i] = t[i]);
1982
- n.slashes === void 0 && (n.slashes = Zi.test(t.href));
1981
+ i in or || (n[i] = t[i]);
1982
+ n.slashes === void 0 && (n.slashes = eo.test(t.href));
1983
1983
  }
1984
1984
  return n;
1985
1985
  }
@@ -1987,8 +1987,8 @@ function Q(t) {
1987
1987
  return t === "file:" || t === "ftp:" || t === "http:" || t === "https:" || t === "ws:" || t === "wss:";
1988
1988
  }
1989
1989
  function Zr(t, e) {
1990
- t = Rt(t), e = e || {};
1991
- var r = eo.exec(t), n = r[1] ? r[1].toLowerCase() : "", a = !!r[2], i = !!r[3], o = 0, s;
1990
+ t = It(t), e = e || {};
1991
+ var r = to.exec(t), n = r[1] ? r[1].toLowerCase() : "", a = !!r[2], i = !!r[3], o = 0, s;
1992
1992
  return a ? i ? (s = r[2] + r[3] + r[4], o = r[2].length + r[3].length) : (s = r[2] + r[4], o = r[2].length) : i ? (s = r[3] + r[4], o = r[3].length) : s = r[4], n === "file:" ? o >= 2 && (s = s.slice(2)) : Q(n) ? s = r[4] : n ? a && (s = s.slice(2)) : o >= 2 && Q(e.protocol) && (s = r[4]), {
1993
1993
  protocol: n,
1994
1994
  slashes: a || Q(n),
@@ -1996,27 +1996,27 @@ function Zr(t, e) {
1996
1996
  rest: s
1997
1997
  };
1998
1998
  }
1999
- function ao(t, e) {
1999
+ function io(t, e) {
2000
2000
  if (t === "")
2001
2001
  return e;
2002
2002
  for (var r = (e || "/").split("/").slice(0, -1).concat(t.split("/")), n = r.length, a = r[n - 1], i = !1, o = 0; n--; )
2003
2003
  r[n] === "." ? r.splice(n, 1) : r[n] === ".." ? (r.splice(n, 1), o++) : o && (n === 0 && (i = !0), r.splice(n, 1), o--);
2004
2004
  return i && r.unshift(""), (a === "." || a === "..") && r.push(""), r.join("/");
2005
2005
  }
2006
- function X(t, e, r) {
2007
- if (t = Rt(t), !(this instanceof X))
2008
- return new X(t, e, r);
2006
+ function z(t, e, r) {
2007
+ if (t = It(t), !(this instanceof z))
2008
+ return new z(t, e, r);
2009
2009
  var n, a, i, o, s, u, c = lt.slice(), g = typeof e, d = this, p = 0;
2010
- for (g !== "object" && g !== "string" && (r = e, e = null), r && typeof r != "function" && (r = Le.parse), e = Kr(e), a = Zr(t || "", e), n = !a.protocol && !a.slashes, d.slashes = a.slashes || n && e.slashes, d.protocol = a.protocol || e.protocol || "", t = a.rest, (a.protocol === "file:" && (a.slashesCount !== 2 || to.test(t)) || !a.slashes && (a.protocol || a.slashesCount < 2 || !Q(d.protocol))) && (c[3] = [/(.*)/, "pathname"]); p < c.length; p++) {
2010
+ for (g !== "object" && g !== "string" && (r = e, e = null), r && typeof r != "function" && (r = Le.parse), e = Kr(e), a = Zr(t || "", e), n = !a.protocol && !a.slashes, d.slashes = a.slashes || n && e.slashes, d.protocol = a.protocol || e.protocol || "", t = a.rest, (a.protocol === "file:" && (a.slashesCount !== 2 || ro.test(t)) || !a.slashes && (a.protocol || a.slashesCount < 2 || !Q(d.protocol))) && (c[3] = [/(.*)/, "pathname"]); p < c.length; p++) {
2011
2011
  if (o = c[p], typeof o == "function") {
2012
2012
  t = o(t, d);
2013
2013
  continue;
2014
2014
  }
2015
2015
  i = o[0], u = o[1], i !== i ? d[u] = t : typeof i == "string" ? ~(s = t.indexOf(i)) && (typeof o[2] == "number" ? (d[u] = t.slice(0, s), t = t.slice(s + o[2])) : (d[u] = t.slice(s), t = t.slice(0, s))) : (s = i.exec(t)) && (d[u] = s[1], t = t.slice(0, s.index)), d[u] = d[u] || n && o[3] && e[u] || "", o[4] && (d[u] = d[u].toLowerCase());
2016
2016
  }
2017
- r && (d.query = r(d.query)), n && e.slashes && d.pathname.charAt(0) !== "/" && (d.pathname !== "" || e.pathname !== "") && (d.pathname = ao(d.pathname, e.pathname)), d.pathname.charAt(0) !== "/" && Q(d.protocol) && (d.pathname = "/" + d.pathname), Jr(d.port, d.protocol) || (d.host = d.hostname, d.port = ""), d.username = d.password = "", d.auth && (o = d.auth.split(":"), d.username = o[0], d.password = o[1] || ""), d.origin = d.protocol !== "file:" && Q(d.protocol) && d.host ? d.protocol + "//" + d.host : "null", d.href = d.toString();
2017
+ r && (d.query = r(d.query)), n && e.slashes && d.pathname.charAt(0) !== "/" && (d.pathname !== "" || e.pathname !== "") && (d.pathname = io(d.pathname, e.pathname)), d.pathname.charAt(0) !== "/" && Q(d.protocol) && (d.pathname = "/" + d.pathname), Jr(d.port, d.protocol) || (d.host = d.hostname, d.port = ""), d.username = d.password = "", d.auth && (o = d.auth.split(":"), d.username = o[0], d.password = o[1] || ""), d.origin = d.protocol !== "file:" && Q(d.protocol) && d.host ? d.protocol + "//" + d.host : "null", d.href = d.toString();
2018
2018
  }
2019
- function io(t, e, r) {
2019
+ function oo(t, e, r) {
2020
2020
  var n = this;
2021
2021
  switch (t) {
2022
2022
  case "query":
@@ -2056,32 +2056,32 @@ function io(t, e, r) {
2056
2056
  }
2057
2057
  return n.auth = n.password ? n.username + ":" + n.password : n.username, n.origin = n.protocol !== "file:" && Q(n.protocol) && n.host ? n.protocol + "//" + n.host : "null", n.href = n.toString(), n;
2058
2058
  }
2059
- function oo(t) {
2059
+ function so(t) {
2060
2060
  (!t || typeof t != "function") && (t = Le.stringify);
2061
2061
  var e, r = this, n = r.protocol;
2062
2062
  n && n.charAt(n.length - 1) !== ":" && (n += ":");
2063
2063
  var a = n + (r.protocol && r.slashes || Q(r.protocol) ? "//" : "");
2064
2064
  return r.username ? (a += r.username, r.password && (a += ":" + r.password), a += "@") : r.password && (a += ":" + r.password, a += "@"), a += r.host + r.pathname, e = typeof r.query == "object" ? t(r.query) : r.query, e && (a += e.charAt(0) !== "?" ? "?" + e : e), r.hash && (a += r.hash), a;
2065
2065
  }
2066
- X.prototype = { set: io, toString: oo };
2067
- X.extractProtocol = Zr;
2068
- X.location = Kr;
2069
- X.trimLeft = Rt;
2070
- X.qs = Le;
2071
- var so = X, rt = D, uo = so, co = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", fo = Object.prototype.hasOwnProperty, dt = { timeout: co ? 6e4 : 12e4 }, lo = function(t) {
2072
- var e = typeof t == "string" ? rt({ url: t }, dt) : rt({}, dt, t), r = uo(
2066
+ z.prototype = { set: oo, toString: so };
2067
+ z.extractProtocol = Zr;
2068
+ z.location = Kr;
2069
+ z.trimLeft = It;
2070
+ z.qs = Le;
2071
+ var uo = z, rt = D, co = uo, fo = typeof navigator > "u" ? !1 : navigator.product === "ReactNative", lo = Object.prototype.hasOwnProperty, dt = { timeout: fo ? 6e4 : 12e4 }, ho = function(t) {
2072
+ var e = typeof t == "string" ? rt({ url: t }, dt) : rt({}, dt, t), r = co(
2073
2073
  e.url,
2074
2074
  {},
2075
2075
  // Don't use current browser location
2076
2076
  !0
2077
2077
  // Parse query strings
2078
2078
  );
2079
- return e.timeout = en(e.timeout), e.query && (r.query = rt({}, r.query, po(e.query))), e.method = e.body && !e.method ? "POST" : (e.method || "GET").toUpperCase(), e.url = r.toString(ho), e;
2079
+ return e.timeout = en(e.timeout), e.query && (r.query = rt({}, r.query, vo(e.query))), e.method = e.body && !e.method ? "POST" : (e.method || "GET").toUpperCase(), e.url = r.toString(po), e;
2080
2080
  };
2081
- function ho(t) {
2081
+ function po(t) {
2082
2082
  var e = [];
2083
2083
  for (var r in t)
2084
- fo.call(t, r) && n(r, t[r]);
2084
+ lo.call(t, r) && n(r, t[r]);
2085
2085
  return e.length ? e.join("&") : "";
2086
2086
  function n(a, i) {
2087
2087
  Array.isArray(i) ? i.forEach(function(o) {
@@ -2097,29 +2097,29 @@ function en(t) {
2097
2097
  var e = Number(t);
2098
2098
  return isNaN(e) ? en(dt.timeout) : { connect: e, socket: e };
2099
2099
  }
2100
- function po(t) {
2100
+ function vo(t) {
2101
2101
  var e = {};
2102
2102
  for (var r in t)
2103
2103
  t[r] !== void 0 && (e[r] = t[r]);
2104
2104
  return e;
2105
2105
  }
2106
- var vo = /^https?:\/\//i, mo = function(t) {
2107
- if (!vo.test(t.url))
2106
+ var mo = /^https?:\/\//i, go = function(t) {
2107
+ if (!mo.test(t.url))
2108
2108
  throw new Error('"' + t.url + '" is not a valid URL');
2109
- }, or = /^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/, go = {
2110
- regex: or,
2109
+ }, sr = /^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/, yo = {
2110
+ regex: sr,
2111
2111
  parse: function(t) {
2112
- var e = or.exec(t);
2112
+ var e = sr.exec(t);
2113
2113
  return e ? {
2114
2114
  protocol: (e[1] || "").toLowerCase() || void 0,
2115
2115
  hostname: (e[5] || "").toLowerCase() || void 0,
2116
2116
  port: e[6] || void 0
2117
2117
  } : {};
2118
2118
  }
2119
- }, sr = go, yo = function(t, e, r) {
2119
+ }, ur = yo, bo = function(t, e, r) {
2120
2120
  if (t === e)
2121
2121
  return !0;
2122
- var n = sr.parse(t, !1, !0), a = sr.parse(e, !1, !0), i = n.port | 0 || (n.protocol === "https" ? 443 : 80), o = a.port | 0 || (a.protocol === "https" ? 443 : 80), s = {
2122
+ var n = ur.parse(t, !1, !0), a = ur.parse(e, !1, !0), i = n.port | 0 || (n.protocol === "https" ? 443 : 80), o = a.port | 0 || (a.protocol === "https" ? 443 : 80), s = {
2123
2123
  proto: n.protocol === a.protocol,
2124
2124
  hostname: n.hostname === a.hostname,
2125
2125
  port: i === o
@@ -2127,15 +2127,15 @@ var vo = /^https?:\/\//i, mo = function(t) {
2127
2127
  return s.proto && s.hostname && (s.port || r);
2128
2128
  }, nt = function(t) {
2129
2129
  return t.replace(/^\s+|\s+$/g, "");
2130
- }, bo = function(t) {
2131
- return Object.prototype.toString.call(t) === "[object Array]";
2132
2130
  }, wo = function(t) {
2131
+ return Object.prototype.toString.call(t) === "[object Array]";
2132
+ }, _o = function(t) {
2133
2133
  if (!t)
2134
2134
  return {};
2135
2135
  for (var e = {}, r = nt(t).split(`
2136
2136
  `), n = 0; n < r.length; n++) {
2137
2137
  var a = r[n], i = a.indexOf(":"), o = nt(a.slice(0, i)).toLowerCase(), s = nt(a.slice(i + 1));
2138
- typeof e[o] > "u" ? e[o] = s : bo(e[o]) ? e[o].push(s) : e[o] = [e[o], s];
2138
+ typeof e[o] > "u" ? e[o] = s : wo(e[o]) ? e[o].push(s) : e[o] = [e[o], s];
2139
2139
  }
2140
2140
  return e;
2141
2141
  };
@@ -2179,12 +2179,12 @@ pe.prototype.send = function(t) {
2179
2179
  e.onerror(i);
2180
2180
  });
2181
2181
  };
2182
- var _o = pe, Oo = yo, Eo = wo, ur = _o, So = function() {
2183
- }, ee = typeof window > "u" ? void 0 : window, cr = ee ? "xhr" : "fetch", Fe = typeof XMLHttpRequest == "function" ? XMLHttpRequest : So, xo = "withCredentials" in new Fe(), Co = typeof XDomainRequest > "u" ? void 0 : XDomainRequest, tn = xo ? Fe : Co;
2184
- ee || (Fe = ur, tn = ur);
2185
- var Po = function(t, e) {
2186
- var r = t.options, n = t.applyMiddleware("finalizeOptions", r), a = {}, i = ee && ee.location && !Oo(ee.location.href, n.url), o = t.applyMiddleware("interceptRequest", void 0, {
2187
- adapter: cr,
2182
+ var Oo = pe, Eo = bo, So = _o, cr = Oo, xo = function() {
2183
+ }, ee = typeof window > "u" ? void 0 : window, fr = ee ? "xhr" : "fetch", Fe = typeof XMLHttpRequest == "function" ? XMLHttpRequest : xo, Co = "withCredentials" in new Fe(), Po = typeof XDomainRequest > "u" ? void 0 : XDomainRequest, tn = Co ? Fe : Po;
2184
+ ee || (Fe = cr, tn = cr);
2185
+ var To = function(t, e) {
2186
+ var r = t.options, n = t.applyMiddleware("finalizeOptions", r), a = {}, i = ee && ee.location && !Eo(ee.location.href, n.url), o = t.applyMiddleware("interceptRequest", void 0, {
2187
+ adapter: fr,
2188
2188
  context: t
2189
2189
  });
2190
2190
  if (o) {
@@ -2211,7 +2211,7 @@ var Po = function(t, e) {
2211
2211
  d.hasOwnProperty(b) && c.setRequestHeader(b, d[b]);
2212
2212
  else if (d && g)
2213
2213
  throw new Error("Headers cannot be set on an XDomainRequest object");
2214
- return n.rawBody && (c.responseType = "arraybuffer"), t.applyMiddleware("onRequest", { options: n, adapter: cr, request: c, context: t }), c.send(n.body || null), p && (a.connect = setTimeout(function() {
2214
+ return n.rawBody && (c.responseType = "arraybuffer"), t.applyMiddleware("onRequest", { options: n, adapter: fr, request: c, context: t }), c.send(n.body || null), p && (a.connect = setTimeout(function() {
2215
2215
  return T("ETIMEDOUT");
2216
2216
  }, p.connect)), { abort: _ };
2217
2217
  function _() {
@@ -2223,16 +2223,16 @@ var Po = function(t, e) {
2223
2223
  R.code = q, t.channels.error.publish(R);
2224
2224
  }
2225
2225
  function $() {
2226
- p && (F(), a.socket = setTimeout(function() {
2226
+ p && (B(), a.socket = setTimeout(function() {
2227
2227
  return T("ESOCKETTIMEDOUT");
2228
2228
  }, p.socket));
2229
2229
  }
2230
- function F() {
2230
+ function B() {
2231
2231
  (x || c.readyState >= 2 && a.connect) && clearTimeout(a.connect), a.socket && clearTimeout(a.socket);
2232
2232
  }
2233
2233
  function V(q) {
2234
2234
  if (!C) {
2235
- F(), C = !0, c = null;
2235
+ B(), C = !0, c = null;
2236
2236
  var R = q || new Error("Network error while attempting to reach " + n.url);
2237
2237
  R.isNetworkError = !0, R.request = n, e(R);
2238
2238
  }
@@ -2250,7 +2250,7 @@ var Po = function(t, e) {
2250
2250
  body: c.response || c.responseText,
2251
2251
  url: n.url,
2252
2252
  method: n.method,
2253
- headers: g ? {} : Eo(c.getAllResponseHeaders()),
2253
+ headers: g ? {} : So(c.getAllResponseHeaders()),
2254
2254
  statusCode: q,
2255
2255
  statusMessage: R
2256
2256
  };
@@ -2261,20 +2261,20 @@ var Po = function(t, e) {
2261
2261
  V(new Error("Unknown XHR error"));
2262
2262
  return;
2263
2263
  }
2264
- F(), C = !0, e(null, oe());
2264
+ B(), C = !0, e(null, oe());
2265
2265
  }
2266
2266
  }
2267
- }, To = Po, jo = Xi, Do = zi, qo = lo, Mo = mo, Ao = To, Ro = ["request", "response", "progress", "error", "abort"], fr = ["processOptions", "validateOptions", "interceptRequest", "finalizeOptions", "onRequest", "onResponse", "onError", "onReturn", "onHeaders"], Io = function t() {
2268
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ao, n = [], a = fr.reduce(function(o, s) {
2267
+ }, jo = To, Do = Xi, qo = Vi, Mo = ho, Ao = go, Ro = jo, Io = ["request", "response", "progress", "error", "abort"], lr = ["processOptions", "validateOptions", "interceptRequest", "finalizeOptions", "onRequest", "onResponse", "onError", "onReturn", "onHeaders"], $o = function t() {
2268
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ro, n = [], a = lr.reduce(function(o, s) {
2269
2269
  return o[s] = o[s] || [], o;
2270
2270
  }, {
2271
- processOptions: [qo],
2272
- validateOptions: [Mo]
2271
+ processOptions: [Mo],
2272
+ validateOptions: [Ao]
2273
2273
  });
2274
2274
  function i(o) {
2275
- var s = Ro.reduce(function(E, O) {
2276
- return E[O] = jo(), E;
2277
- }, {}), u = Do(a), c = u("processOptions", o);
2275
+ var s = Io.reduce(function(E, O) {
2276
+ return E[O] = Do(), E;
2277
+ }, {}), u = qo(a), c = u("processOptions", o);
2278
2278
  u("validateOptions", c);
2279
2279
  var g = {
2280
2280
  options: c,
@@ -2311,16 +2311,16 @@ var Po = function(t, e) {
2311
2311
  throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");
2312
2312
  if (s.onReturn && a.onReturn.length > 0)
2313
2313
  throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");
2314
- return fr.forEach(function(u) {
2314
+ return lr.forEach(function(u) {
2315
2315
  s[u] && a[u].push(s[u]);
2316
2316
  }), n.push(s), i;
2317
2317
  }, i.clone = function() {
2318
2318
  return t(n);
2319
2319
  }, e.forEach(i.use), i;
2320
- }, $o = Io, Oe = { exports: {} };
2320
+ }, Uo = $o, Oe = { exports: {} };
2321
2321
  typeof window < "u" ? Oe.exports = window : typeof j < "u" ? Oe.exports = j : typeof self < "u" ? Oe.exports = self : Oe.exports = {};
2322
- var Uo = Oe.exports, ko = Uo, lr = D, No = function() {
2323
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.implementation || ko.Observable;
2322
+ var ko = Oe.exports, No = ko, dr = D, Ho = function() {
2323
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.implementation || No.Observable;
2324
2324
  if (!e)
2325
2325
  throw new Error("`Observable` is not available in global scope, and no implementation was passed");
2326
2326
  return {
@@ -2329,9 +2329,9 @@ var Uo = Oe.exports, ko = Uo, lr = D, No = function() {
2329
2329
  return n.error.subscribe(function(o) {
2330
2330
  return i.error(o);
2331
2331
  }), n.progress.subscribe(function(o) {
2332
- return i.next(lr({ type: "progress" }, o));
2332
+ return i.next(dr({ type: "progress" }, o));
2333
2333
  }), n.response.subscribe(function(o) {
2334
- i.next(lr({ type: "response" }, o)), i.complete();
2334
+ i.next(dr({ type: "response" }, o)), i.complete();
2335
2335
  }), n.request.publish(a), function() {
2336
2336
  return n.abort.publish();
2337
2337
  };
@@ -2345,7 +2345,7 @@ var Uo = Oe.exports, ko = Uo, lr = D, No = function() {
2345
2345
  * Copyright (c) 2014-2017, Jon Schlinkert.
2346
2346
  * Released under the MIT License.
2347
2347
  */
2348
- var Ho = function(e) {
2348
+ var Wo = function(e) {
2349
2349
  return e != null && typeof e == "object" && Array.isArray(e) === !1;
2350
2350
  };
2351
2351
  /*!
@@ -2354,39 +2354,39 @@ var Ho = function(e) {
2354
2354
  * Copyright (c) 2014-2017, Jon Schlinkert.
2355
2355
  * Released under the MIT License.
2356
2356
  */
2357
- var Wo = Ho;
2358
- function dr(t) {
2359
- return Wo(t) === !0 && Object.prototype.toString.call(t) === "[object Object]";
2357
+ var Lo = Wo;
2358
+ function hr(t) {
2359
+ return Lo(t) === !0 && Object.prototype.toString.call(t) === "[object Object]";
2360
2360
  }
2361
- var Lo = function(e) {
2361
+ var Fo = function(e) {
2362
2362
  var r, n;
2363
- return !(dr(e) === !1 || (r = e.constructor, typeof r != "function") || (n = r.prototype, dr(n) === !1) || n.hasOwnProperty("isPrototypeOf") === !1);
2364
- }, Fo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2363
+ return !(hr(e) === !1 || (r = e.constructor, typeof r != "function") || (n = r.prototype, hr(n) === !1) || n.hasOwnProperty("isPrototypeOf") === !1);
2364
+ }, Bo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2365
2365
  return typeof t;
2366
2366
  } : function(t) {
2367
2367
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2368
- }, hr = D, Bo = Lo, Yo = ["boolean", "string", "number"], Xo = function(e) {
2368
+ }, pr = D, Yo = Fo, zo = ["boolean", "string", "number"], Xo = function(e) {
2369
2369
  return !!e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
2370
- }, zo = function() {
2370
+ }, Vo = function() {
2371
2371
  return {
2372
2372
  processOptions: function(e) {
2373
2373
  var r = e.body;
2374
2374
  if (!r)
2375
2375
  return e;
2376
- var n = typeof r.pipe == "function", a = !n && !Xo(r) && (Yo.indexOf(typeof r > "u" ? "undefined" : Fo(r)) !== -1 || Array.isArray(r) || Bo(r));
2377
- return a ? hr({}, e, {
2376
+ var n = typeof r.pipe == "function", a = !n && !Xo(r) && (zo.indexOf(typeof r > "u" ? "undefined" : Bo(r)) !== -1 || Array.isArray(r) || Yo(r));
2377
+ return a ? pr({}, e, {
2378
2378
  body: JSON.stringify(e.body),
2379
- headers: hr({}, e.headers, {
2379
+ headers: pr({}, e.headers, {
2380
2380
  "Content-Type": "application/json"
2381
2381
  })
2382
2382
  }) : e;
2383
2383
  }
2384
2384
  };
2385
- }, at = D, Vo = function(t) {
2385
+ }, at = D, Go = function(t) {
2386
2386
  return {
2387
2387
  onResponse: function(r) {
2388
2388
  var n = r.headers["content-type"] || "", a = t && t.force || n.indexOf("application/json") !== -1;
2389
- return !r.body || !n || !a ? r : at({}, r, { body: Go(r.body) });
2389
+ return !r.body || !n || !a ? r : at({}, r, { body: Qo(r.body) });
2390
2390
  },
2391
2391
  processOptions: function(r) {
2392
2392
  return at({}, r, {
@@ -2395,14 +2395,14 @@ var Lo = function(e) {
2395
2395
  }
2396
2396
  };
2397
2397
  };
2398
- function Go(t) {
2398
+ function Qo(t) {
2399
2399
  try {
2400
2400
  return JSON.parse(t);
2401
2401
  } catch (e) {
2402
2402
  throw e.message = "Failed to parsed response body as JSON: " + e.message, e;
2403
2403
  }
2404
2404
  }
2405
- var Qo = function() {
2405
+ var Jo = function() {
2406
2406
  return {
2407
2407
  onRequest: function(e) {
2408
2408
  if (e.adapter !== "xhr")
@@ -2423,7 +2423,7 @@ var Qo = function() {
2423
2423
  }
2424
2424
  }
2425
2425
  };
2426
- }, Jo = Qo, It = {}, ht = { exports: {} };
2426
+ }, Ko = Jo, $t = {}, ht = { exports: {} };
2427
2427
  (function(t, e) {
2428
2428
  var r = typeof Reflect < "u" ? Reflect.construct : void 0, n = Object.defineProperty, a = Error.captureStackTrace;
2429
2429
  a === void 0 && (a = function(c) {
@@ -2513,36 +2513,36 @@ var Qo = function() {
2513
2513
  }
2514
2514
  e = t.exports = s, e.BaseError = i;
2515
2515
  })(ht, ht.exports);
2516
- var Ko = ht.exports, rn = Ko, nn = D;
2517
- function $t(t) {
2518
- var e = an(t);
2519
- $t.super.call(this, e.message), nn(this, e);
2520
- }
2516
+ var Zo = ht.exports, rn = Zo, nn = D;
2521
2517
  function Ut(t) {
2522
2518
  var e = an(t);
2523
2519
  Ut.super.call(this, e.message), nn(this, e);
2524
2520
  }
2521
+ function kt(t) {
2522
+ var e = an(t);
2523
+ kt.super.call(this, e.message), nn(this, e);
2524
+ }
2525
2525
  function an(t) {
2526
2526
  var e = t.body, r = {
2527
2527
  response: t,
2528
2528
  statusCode: t.statusCode,
2529
- responseBody: es(e, t)
2529
+ responseBody: ts(e, t)
2530
2530
  };
2531
- return e.error && e.message ? (r.message = "".concat(e.error, " - ").concat(e.message), r) : e.error && e.error.description ? (r.message = e.error.description, r.details = e.error, r) : (r.message = e.error || e.message || Zo(t), r);
2531
+ return e.error && e.message ? (r.message = "".concat(e.error, " - ").concat(e.message), r) : e.error && e.error.description ? (r.message = e.error.description, r.details = e.error, r) : (r.message = e.error || e.message || es(t), r);
2532
2532
  }
2533
- function Zo(t) {
2533
+ function es(t) {
2534
2534
  var e = t.statusMessage ? " ".concat(t.statusMessage) : "";
2535
2535
  return "".concat(t.method, "-request to ").concat(t.url, " resulted in HTTP ").concat(t.statusCode).concat(e);
2536
2536
  }
2537
- function es(t, e) {
2537
+ function ts(t, e) {
2538
2538
  var r = (e.headers["content-type"] || "").toLowerCase(), n = r.indexOf("application/json") !== -1;
2539
2539
  return n ? JSON.stringify(t, null, 2) : t;
2540
2540
  }
2541
- rn($t);
2542
2541
  rn(Ut);
2543
- It.ClientError = $t;
2544
- It.ServerError = Ut;
2545
- var ts = [], rs = $o, ns = D, as = No, is = zo, os = Vo, ss = Jo, us = Hr, on = It, sn = on.ClientError, un = on.ServerError, cs = {
2542
+ rn(kt);
2543
+ $t.ClientError = Ut;
2544
+ $t.ServerError = kt;
2545
+ var rs = [], ns = Uo, as = D, is = Ho, os = Vo, ss = Go, us = Ko, cs = Hr, on = $t, sn = on.ClientError, un = on.ServerError, fs = {
2546
2546
  onResponse: function(e) {
2547
2547
  if (e.statusCode >= 500)
2548
2548
  throw new un(e);
@@ -2550,52 +2550,52 @@ var ts = [], rs = $o, ns = D, as = No, is = zo, os = Vo, ss = Jo, us = Hr, on =
2550
2550
  throw new sn(e);
2551
2551
  return e;
2552
2552
  }
2553
- }, fs = {
2553
+ }, ls = {
2554
2554
  onResponse: function(e) {
2555
2555
  var r = e.headers["x-sanity-warning"], n = Array.isArray(r) ? r : [r];
2556
2556
  return n.filter(Boolean).forEach(function(a) {
2557
2557
  return console.warn(a);
2558
2558
  }), e;
2559
2559
  }
2560
- }, ls = ts, ds = ls.concat([fs, is(), os(), ss(), cs, as({
2561
- implementation: us
2562
- })]), cn = rs(ds);
2560
+ }, ds = rs, hs = ds.concat([ls, os(), ss(), us(), fs, is({
2561
+ implementation: cs
2562
+ })]), cn = ns(hs);
2563
2563
  function Be(t) {
2564
2564
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : cn;
2565
- return e(ns({
2565
+ return e(as({
2566
2566
  maxRedirects: 0
2567
2567
  }, t));
2568
2568
  }
2569
2569
  Be.defaultRequester = cn;
2570
2570
  Be.ClientError = sn;
2571
2571
  Be.ServerError = un;
2572
- var hs = Be, pr = D, ps = "X-Sanity-Project-ID", vs = function(t) {
2572
+ var ps = Be, vr = D, vs = "X-Sanity-Project-ID", ms = function(t) {
2573
2573
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = {}, n = e.token || t.token;
2574
- n && (r.Authorization = "Bearer ".concat(n)), !e.useGlobalApi && !t.useProjectHostname && t.projectId && (r[ps] = t.projectId);
2574
+ n && (r.Authorization = "Bearer ".concat(n)), !e.useGlobalApi && !t.useProjectHostname && t.projectId && (r[vs] = t.projectId);
2575
2575
  var a = !!(typeof e.withCredentials > "u" ? t.token || t.withCredentials : e.withCredentials), i = typeof e.timeout > "u" ? t.timeout : e.timeout;
2576
- return pr({}, e, {
2577
- headers: pr({}, r, e.headers || {}),
2576
+ return vr({}, e, {
2577
+ headers: vr({}, r, e.headers || {}),
2578
2578
  timeout: typeof i > "u" ? 5 * 60 * 1e3 : i,
2579
2579
  proxy: e.proxy || t.proxy,
2580
2580
  json: !0,
2581
2581
  withCredentials: a
2582
2582
  });
2583
- }, fn = {}, Pe = {}, Ye = Mt, ms = Lr, Xe = function(e) {
2583
+ }, fn = {}, Pe = {}, Ye = At, gs = Lr, ze = function(e) {
2584
2584
  return (
2585
2585
  // eslint-disable-next-line no-console
2586
- ms(function() {
2586
+ gs(function() {
2587
2587
  for (var r, n = arguments.length, a = new Array(n), i = 0; i < n; i++)
2588
2588
  a[i] = arguments[i];
2589
2589
  return (r = console).warn.apply(r, [e.join(" ")].concat(a));
2590
2590
  })
2591
2591
  );
2592
2592
  };
2593
- Pe.printCdnWarning = Xe(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and", "cheaper. Think about it! For more info, see ".concat(Ye("js-client-cdn-configuration"), "."), "To hide this warning, please set the `useCdn` option to either `true` or `false` when creating", "the client."]);
2594
- Pe.printBrowserTokenWarning = Xe(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.", "See ".concat(Ye("js-client-browser-token"), " for more information and how to hide this warning.")]);
2595
- Pe.printCdnTokenWarning = Xe(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you", "want. The CDN cannot be used with an authorization token, since private data cannot be cached.", "See ".concat(Ye("js-client-usecdn-token"), " for more information.")]);
2596
- Pe.printNoApiVersionSpecifiedWarning = Xe(["Using the Sanity client without specifying an API version is deprecated.", "See ".concat(Ye("js-client-api-version"))]);
2593
+ Pe.printCdnWarning = ze(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and", "cheaper. Think about it! For more info, see ".concat(Ye("js-client-cdn-configuration"), "."), "To hide this warning, please set the `useCdn` option to either `true` or `false` when creating", "the client."]);
2594
+ Pe.printBrowserTokenWarning = ze(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.", "See ".concat(Ye("js-client-browser-token"), " for more information and how to hide this warning.")]);
2595
+ Pe.printCdnTokenWarning = ze(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you", "want. The CDN cannot be used with an authorization token, since private data cannot be cached.", "See ".concat(Ye("js-client-usecdn-token"), " for more information.")]);
2596
+ Pe.printNoApiVersionSpecifiedWarning = ze(["Using the Sanity client without specifying an API version is deprecated.", "See ".concat(Ye("js-client-api-version"))]);
2597
2597
  (function(t) {
2598
- var e = Mt, r = D, n = te, a = Pe, i = "apicdn.sanity.io", o = {
2598
+ var e = At, r = D, n = te, a = Pe, i = "apicdn.sanity.io", o = {
2599
2599
  apiHost: "https://api.sanity.io",
2600
2600
  apiVersion: "1",
2601
2601
  useProjectHostname: !0,
@@ -2620,8 +2620,8 @@ Pe.printNoApiVersionSpecifiedWarning = Xe(["Using the Sanity client without spec
2620
2620
  if (O && b && p.token && p.ignoreBrowserTokenWarning !== !0 ? a.printBrowserTokenWarning() : (!O || b) && p.useCdn && p.token ? a.printCdnTokenWarning() : typeof p.useCdn > "u" && a.printCdnWarning(), C && n.projectId(p.projectId), !x && p.dataset && n.dataset(p.dataset, p.gradientMode), "requestTagPrefix" in p && (p.requestTagPrefix = p.requestTagPrefix ? n.requestTag(p.requestTagPrefix).replace(/\.+$/, "") : void 0), p.apiVersion = "".concat(p.apiVersion).replace(/^v/, ""), p.isDefaultApi = p.apiHost === o.apiHost, p.useCdn = !!p.useCdn && !p.token && !p.withCredentials, t.validateApiVersion(p.apiVersion), p.gradientMode)
2621
2621
  p.url = p.apiHost, p.cdnUrl = p.apiHost;
2622
2622
  else {
2623
- var _ = p.apiHost.split("://", 2), T = _[0], $ = _[1], F = p.isDefaultApi ? i : $;
2624
- p.useProjectHostname ? (p.url = "".concat(T, "://").concat(p.projectId, ".").concat($, "/v").concat(p.apiVersion), p.cdnUrl = "".concat(T, "://").concat(p.projectId, ".").concat(F, "/v").concat(p.apiVersion)) : (p.url = "".concat(p.apiHost, "/v").concat(p.apiVersion), p.cdnUrl = p.url);
2623
+ var _ = p.apiHost.split("://", 2), T = _[0], $ = _[1], B = p.isDefaultApi ? i : $;
2624
+ p.useProjectHostname ? (p.url = "".concat(T, "://").concat(p.projectId, ".").concat($, "/v").concat(p.apiVersion), p.cdnUrl = "".concat(T, "://").concat(p.projectId, ".").concat(B, "/v").concat(p.apiVersion)) : (p.url = "".concat(p.apiHost, "/v").concat(p.apiVersion), p.cdnUrl = p.url);
2625
2625
  }
2626
2626
  return p;
2627
2627
  }, t.validateApiVersion = function(g) {
@@ -2632,7 +2632,7 @@ Pe.printNoApiVersionSpecifiedWarning = Xe(["Using the Sanity client without spec
2632
2632
  }
2633
2633
  };
2634
2634
  })(fn);
2635
- function vr(t, e) {
2635
+ function mr(t, e) {
2636
2636
  var r = Object.keys(t);
2637
2637
  if (Object.getOwnPropertySymbols) {
2638
2638
  var n = Object.getOwnPropertySymbols(t);
@@ -2642,35 +2642,35 @@ function vr(t, e) {
2642
2642
  }
2643
2643
  return r;
2644
2644
  }
2645
- function gs(t) {
2645
+ function ys(t) {
2646
2646
  for (var e = 1; e < arguments.length; e++) {
2647
2647
  var r = arguments[e] != null ? arguments[e] : {};
2648
- e % 2 ? vr(Object(r), !0).forEach(function(n) {
2649
- ys(t, n, r[n]);
2650
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : vr(Object(r)).forEach(function(n) {
2648
+ e % 2 ? mr(Object(r), !0).forEach(function(n) {
2649
+ bs(t, n, r[n]);
2650
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : mr(Object(r)).forEach(function(n) {
2651
2651
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
2652
2652
  });
2653
2653
  }
2654
2654
  return t;
2655
2655
  }
2656
- function ys(t, e, r) {
2656
+ function bs(t, e, r) {
2657
2657
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
2658
2658
  }
2659
- var he = D, bs = Ee, ws = bs.filter, _s = xe, Os = _s.map, Es = _t, Ss = Rr, xs = Oi, Cs = xi, Ps = Pi, Ts = Wi, js = Fi, Ds = Yi, ze = hs, qs = vs, ln = fn, Ms = ln.defaultConfig, As = ln.initConfig, Rs = te, Is = function(e) {
2659
+ var he = D, ws = Ee, _s = ws.filter, Os = xe, Es = Os.map, Ss = Ot, xs = Rr, Cs = Ei, Ps = Ci, Ts = Ti, js = Li, Ds = Bi, qs = zi, Xe = ps, Ms = ms, ln = fn, As = ln.defaultConfig, Rs = ln.initConfig, Is = te, $s = function(e) {
2660
2660
  return e.toPromise();
2661
2661
  };
2662
2662
  function W() {
2663
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ms;
2663
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : As;
2664
2664
  if (!(this instanceof W))
2665
2665
  return new W(t);
2666
- if (this.config(t), this.assets = new Ts(this), this.datasets = new Cs(this), this.projects = new Ps(this), this.users = new js(this), this.auth = new Ds(this), this.clientConfig.isPromiseAPI) {
2666
+ if (this.config(t), this.assets = new js(this), this.datasets = new Ps(this), this.projects = new Ts(this), this.users = new Ds(this), this.auth = new qs(this), this.clientConfig.isPromiseAPI) {
2667
2667
  var e = he({}, this.clientConfig, {
2668
2668
  isPromiseAPI: !1
2669
2669
  });
2670
2670
  this.observable = new W(e);
2671
2671
  }
2672
2672
  }
2673
- he(W.prototype, xs);
2673
+ he(W.prototype, Cs);
2674
2674
  he(W.prototype, {
2675
2675
  clone: function() {
2676
2676
  return new W(this.config());
@@ -2684,7 +2684,7 @@ he(W.prototype, {
2684
2684
  });
2685
2685
  this.observable.config(r);
2686
2686
  }
2687
- return this.clientConfig = As(e, this.clientConfig || {}), this;
2687
+ return this.clientConfig = Rs(e, this.clientConfig || {}), this;
2688
2688
  },
2689
2689
  withConfig: function(e) {
2690
2690
  return this.clone().config(e);
@@ -2698,30 +2698,30 @@ he(W.prototype, {
2698
2698
  },
2699
2699
  _requestObservable: function(e) {
2700
2700
  var r = e.url || e.uri, n = typeof e.canUseCdn > "u" ? ["GET", "HEAD"].indexOf(e.method || "GET") >= 0 && r.indexOf("/data/") === 0 : e.canUseCdn, a = this.clientConfig.useCdn && n, i = e.tag && this.clientConfig.requestTagPrefix ? [this.clientConfig.requestTagPrefix, e.tag].join(".") : e.tag || this.clientConfig.requestTagPrefix;
2701
- i && (e.query = gs({
2702
- tag: Rs.requestTag(i)
2701
+ i && (e.query = ys({
2702
+ tag: Is.requestTag(i)
2703
2703
  }, e.query));
2704
- var o = qs(this.clientConfig, he({}, e, {
2704
+ var o = Ms(this.clientConfig, he({}, e, {
2705
2705
  url: this.getUrl(r, a)
2706
2706
  }));
2707
- return ze(o, this.clientConfig.requester);
2707
+ return Xe(o, this.clientConfig.requester);
2708
2708
  },
2709
2709
  request: function(e) {
2710
- var r = this._requestObservable(e).pipe(ws(function(n) {
2710
+ var r = this._requestObservable(e).pipe(_s(function(n) {
2711
2711
  return n.type === "response";
2712
- }), Os(function(n) {
2712
+ }), Es(function(n) {
2713
2713
  return n.body;
2714
2714
  }));
2715
- return this.isPromiseAPI() ? Is(r) : r;
2715
+ return this.isPromiseAPI() ? $s(r) : r;
2716
2716
  }
2717
2717
  });
2718
- W.Patch = Es;
2719
- W.Transaction = Ss;
2720
- W.ClientError = ze.ClientError;
2721
- W.ServerError = ze.ServerError;
2722
- W.requester = ze.defaultRequester;
2723
- var $s = W;
2724
- const Us = /* @__PURE__ */ Pr($s);
2718
+ W.Patch = Ss;
2719
+ W.Transaction = xs;
2720
+ W.ClientError = Xe.ClientError;
2721
+ W.ServerError = Xe.ServerError;
2722
+ W.requester = Xe.defaultRequester;
2723
+ var Us = W;
2724
+ const ks = /* @__PURE__ */ vt(Us);
2725
2725
  var dn = { exports: {} };
2726
2726
  (function(t, e) {
2727
2727
  (function(r, n) {
@@ -2872,7 +2872,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2872
2872
  top: A,
2873
2873
  width: Math.round(y.width - f.crop.right * y.width - P),
2874
2874
  height: Math.round(y.height - f.crop.bottom * y.height - A)
2875
- }, U = f.hotspot.height * y.height / 2, k = f.hotspot.width * y.width / 2, G = f.hotspot.x * y.width, re = f.hotspot.y * y.height, B = {
2875
+ }, U = f.hotspot.height * y.height / 2, k = f.hotspot.width * y.width / 2, G = f.hotspot.x * y.width, re = f.hotspot.y * y.height, Y = {
2876
2876
  left: G - k,
2877
2877
  top: re - U,
2878
2878
  right: G + k,
@@ -2880,7 +2880,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2880
2880
  };
2881
2881
  return h.rect || h.focalPoint || h.ignoreImageParams || h.crop || (h = r({}, h, _({
2882
2882
  crop: L,
2883
- hotspot: B
2883
+ hotspot: Y
2884
2884
  }, h))), b(r({}, h, {
2885
2885
  asset: y
2886
2886
  }));
@@ -2894,8 +2894,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2894
2894
  l.bg && w.push("bg=" + l.bg), l.focalPoint && (w.push("fp-x=" + l.focalPoint.x), w.push("fp-y=" + l.focalPoint.y));
2895
2895
  var G = [l.flipHorizontal && "h", l.flipVertical && "v"].filter(Boolean).join("");
2896
2896
  return G && w.push("flip=" + G), E.forEach(function(re) {
2897
- var B = re[0], ne = re[1];
2898
- typeof l[B] < "u" ? w.push(ne + "=" + encodeURIComponent(l[B])) : typeof l[ne] < "u" && w.push(ne + "=" + encodeURIComponent(l[ne]));
2897
+ var Y = re[0], ne = re[1];
2898
+ typeof l[Y] < "u" ? w.push(ne + "=" + encodeURIComponent(l[Y])) : typeof l[ne] < "u" && w.push(ne + "=" + encodeURIComponent(l[ne]));
2899
2899
  }), w.length === 0 ? f : f + "?" + w.join("&");
2900
2900
  }
2901
2901
  function _(l, h) {
@@ -2908,17 +2908,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2908
2908
  };
2909
2909
  var y = l.crop, P = l.hotspot, A = f / w, L = y.width / y.height;
2910
2910
  if (L > A) {
2911
- var U = Math.round(y.height), k = Math.round(U * A), G = Math.max(0, Math.round(y.top)), re = Math.round((P.right - P.left) / 2 + P.left), B = Math.max(0, Math.round(re - k / 2));
2912
- B < y.left ? B = y.left : B + k > y.left + y.width && (B = y.left + y.width - k), v = {
2913
- left: B,
2911
+ var U = Math.round(y.height), k = Math.round(U * A), G = Math.max(0, Math.round(y.top)), re = Math.round((P.right - P.left) / 2 + P.left), Y = Math.max(0, Math.round(re - k / 2));
2912
+ Y < y.left ? Y = y.left : Y + k > y.left + y.width && (Y = y.left + y.width - k), v = {
2913
+ left: Y,
2914
2914
  top: G,
2915
2915
  width: k,
2916
2916
  height: U
2917
2917
  };
2918
2918
  } else {
2919
- var ne = y.width, Te = Math.round(ne / A), mn = Math.max(0, Math.round(y.left)), gn = Math.round((P.bottom - P.top) / 2 + P.top), me = Math.max(0, Math.round(gn - Te / 2));
2919
+ var ne = y.width, Te = Math.round(ne / A), gn = Math.max(0, Math.round(y.left)), yn = Math.round((P.bottom - P.top) / 2 + P.top), me = Math.max(0, Math.round(yn - Te / 2));
2920
2920
  me < y.top ? me = y.top : me + Te > y.top + y.height && (me = y.top + y.height - Te), v = {
2921
- left: mn,
2921
+ left: gn,
2922
2922
  top: me,
2923
2923
  width: ne,
2924
2924
  height: Te
@@ -2930,7 +2930,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2930
2930
  rect: v
2931
2931
  };
2932
2932
  }
2933
- var T = ["clip", "crop", "fill", "fillmax", "max", "scale", "min"], $ = ["top", "bottom", "left", "right", "center", "focalpoint", "entropy"], F = ["format"];
2933
+ var T = ["clip", "crop", "fill", "fillmax", "max", "scale", "min"], $ = ["top", "bottom", "left", "right", "center", "focalpoint", "entropy"], B = ["format"];
2934
2934
  function V(l) {
2935
2935
  return l && "config" in l ? typeof l.config == "function" : !1;
2936
2936
  }
@@ -3104,7 +3104,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3104
3104
  saturation: f
3105
3105
  });
3106
3106
  }, h.auto = function(f) {
3107
- if (F.indexOf(f) === -1)
3107
+ if (B.indexOf(f) === -1)
3108
3108
  throw new Error('Invalid auto mode "' + f + '"');
3109
3109
  return this.withOptions({
3110
3110
  auto: f
@@ -3122,8 +3122,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3122
3122
  return q;
3123
3123
  });
3124
3124
  })(dn);
3125
- var ks = dn.exports;
3126
- const Ns = /* @__PURE__ */ Pr(ks), ve = Us({
3125
+ var Ns = dn.exports;
3126
+ const Hs = /* @__PURE__ */ vt(Ns), ve = ks({
3127
3127
  projectId: "m5ik5me8",
3128
3128
  dataset: "production",
3129
3129
  apiVersion: "2021-10-26",
@@ -3132,40 +3132,42 @@ const Ns = /* @__PURE__ */ Pr(ks), ve = Us({
3132
3132
  // or leave blank for unauthenticated usage
3133
3133
  useCdn: !0
3134
3134
  // `false` if you want to ensure fresh data
3135
- }), Hs = Ns(ve), kt = (t) => Hs.image(t), Ws = async () => {
3135
+ }), Ws = Hs(ve), Nt = (t) => Ws.image(t), Ls = async () => {
3136
3136
  const t = "*[_type == 'banner']";
3137
3137
  return await ve.fetch(t);
3138
- }, Ls = async () => {
3138
+ }, Fs = async () => {
3139
3139
  const t = `*[_type == 'event'] | order(startDate asc)
3140
3140
  {
3141
3141
  name,
3142
3142
  image,
3143
+ imageType,
3143
3144
  startDate,
3144
3145
  endDate,
3145
3146
  shortDescription,
3146
3147
  buttons
3147
3148
  }`;
3148
3149
  return await ve.fetch(t);
3149
- }, Fs = async () => {
3150
+ }, Bs = async () => {
3150
3151
  const t = `*[_type == 'board-event'] | order(startDate asc)
3151
3152
  {
3152
3153
  name,
3153
3154
  image,
3155
+ imageType,
3154
3156
  startDate,
3155
3157
  endDate,
3156
3158
  shortDescription,
3157
3159
  buttons
3158
3160
  }`;
3159
3161
  return await ve.fetch(t);
3160
- }, Bs = async () => {
3162
+ }, Ys = async () => {
3161
3163
  const t = "*[_type == 'category']|order(orderRank)";
3162
3164
  return ve.fetch(t);
3163
- }, Ys = async () => {
3165
+ }, zs = async () => {
3164
3166
  const t = "*[_type == 'rateCategory']|order(orderRank)";
3165
3167
  return ve.fetch(t);
3166
- }, Xs = "_banner_1d1ur_1", mr = {
3168
+ }, Xs = "_banner_1d1ur_1", gr = {
3167
3169
  banner: Xs
3168
- }, zs = {
3170
+ }, Vs = {
3169
3171
  marks: {
3170
3172
  color: ({ value: t, children: e }) => /* @__PURE__ */ m.jsx(
3171
3173
  "span",
@@ -3177,11 +3179,11 @@ const Ns = /* @__PURE__ */ Pr(ks), ve = Us({
3177
3179
  }
3178
3180
  )
3179
3181
  }
3180
- }, Vs = ({ image: t, text: e, url: r, loading: n }) => {
3182
+ }, Gs = ({ image: t, text: e, url: r, loading: n }) => {
3181
3183
  const a = () => {
3182
3184
  r && (window.location.href = r);
3183
3185
  };
3184
- return n ? /* @__PURE__ */ m.jsx("div", { className: mr.banner, style: { display: "block" }, children: /* @__PURE__ */ m.jsx(ie, { height: "100%", width: "100%" }) }) : /* @__PURE__ */ m.jsx(
3186
+ return n ? /* @__PURE__ */ m.jsx("div", { className: gr.banner, style: { display: "block" }, children: /* @__PURE__ */ m.jsx(ie, { height: "100%", width: "100%" }) }) : /* @__PURE__ */ m.jsx(
3185
3187
  "span",
3186
3188
  {
3187
3189
  onClick: a,
@@ -3190,16 +3192,16 @@ const Ns = /* @__PURE__ */ Pr(ks), ve = Us({
3190
3192
  backgroundImage: `linear-gradient(
3191
3193
  rgba(0, 0, 0, 0.2),
3192
3194
  rgba(0, 0, 0, 0.2)
3193
- ), url("${kt(t).width(1440).url()}")`
3195
+ ), url("${Nt(t).width(1440).url()}")`
3194
3196
  },
3195
- className: mr.banner,
3196
- children: /* @__PURE__ */ m.jsx(Cr, { value: e, components: zs })
3197
+ className: gr.banner,
3198
+ children: /* @__PURE__ */ m.jsx(Pr, { value: e, components: Vs })
3197
3199
  }
3198
3200
  );
3199
- }, Gs = "_bannerContainer_79bac_1", Qs = "_bannerApp_79bac_8", gr = {
3200
- bannerContainer: Gs,
3201
- bannerApp: Qs
3202
- }, Js = ({ children: t }) => /* @__PURE__ */ m.jsx("div", { className: gr.bannerContainer, children: /* @__PURE__ */ m.jsx("div", { className: gr.bannerApp, children: t }) });
3201
+ }, Qs = "_bannerContainer_79bac_1", Js = "_bannerApp_79bac_8", yr = {
3202
+ bannerContainer: Qs,
3203
+ bannerApp: Js
3204
+ }, Ks = ({ children: t }) => /* @__PURE__ */ m.jsx("div", { className: yr.bannerContainer, children: /* @__PURE__ */ m.jsx("div", { className: yr.bannerApp, children: t }) });
3203
3205
  function H(t) {
3204
3206
  if (t === null || t === !0 || t === !1)
3205
3207
  return NaN;
@@ -3215,35 +3217,35 @@ function N(t) {
3215
3217
  var e = Object.prototype.toString.call(t);
3216
3218
  return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new Date(t.getTime()) : typeof t == "number" || e === "[object Number]" ? new Date(t) : ((typeof t == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
3217
3219
  }
3218
- function Ks(t, e) {
3220
+ function Zs(t, e) {
3219
3221
  M(2, arguments);
3220
3222
  var r = N(t).getTime(), n = H(e);
3221
3223
  return new Date(r + n);
3222
3224
  }
3223
- function Zs(t) {
3225
+ function eu(t) {
3224
3226
  var e = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
3225
3227
  return e.setUTCFullYear(t.getFullYear()), t.getTime() - e.getTime();
3226
3228
  }
3227
- function yr(t) {
3229
+ function br(t) {
3228
3230
  M(1, arguments);
3229
3231
  var e = N(t);
3230
3232
  return e.setHours(0, 0, 0, 0), e;
3231
3233
  }
3232
- function eu(t, e) {
3234
+ function tu(t, e) {
3233
3235
  M(2, arguments);
3234
- var r = yr(t), n = yr(e);
3236
+ var r = br(t), n = br(e);
3235
3237
  return r.getTime() === n.getTime();
3236
3238
  }
3237
- function tu(t) {
3239
+ function ru(t) {
3238
3240
  return M(1, arguments), t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
3239
3241
  }
3240
- function ru(t) {
3241
- if (M(1, arguments), !tu(t) && typeof t != "number")
3242
+ function nu(t) {
3243
+ if (M(1, arguments), !ru(t) && typeof t != "number")
3242
3244
  return !1;
3243
3245
  var e = N(t);
3244
3246
  return !isNaN(Number(e));
3245
3247
  }
3246
- var nu = {
3248
+ var au = {
3247
3249
  lessThanXSeconds: {
3248
3250
  one: "less than a second",
3249
3251
  other: "less than {{count}} seconds"
@@ -3305,58 +3307,58 @@ var nu = {
3305
3307
  one: "almost 1 year",
3306
3308
  other: "almost {{count}} years"
3307
3309
  }
3308
- }, au = function(t, e, r) {
3309
- var n, a = nu[t];
3310
+ }, iu = function(t, e, r) {
3311
+ var n, a = au[t];
3310
3312
  return typeof a == "string" ? n = a : e === 1 ? n = a.one : n = a.other.replace("{{count}}", e.toString()), r != null && r.addSuffix ? r.comparison && r.comparison > 0 ? "in " + n : n + " ago" : n;
3311
3313
  };
3312
- const iu = au;
3314
+ const ou = iu;
3313
3315
  function it(t) {
3314
3316
  return function() {
3315
3317
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = e.width ? String(e.width) : t.defaultWidth, n = t.formats[r] || t.formats[t.defaultWidth];
3316
3318
  return n;
3317
3319
  };
3318
3320
  }
3319
- var ou = {
3321
+ var su = {
3320
3322
  full: "EEEE, MMMM do, y",
3321
3323
  long: "MMMM do, y",
3322
3324
  medium: "MMM d, y",
3323
3325
  short: "MM/dd/yyyy"
3324
- }, su = {
3326
+ }, uu = {
3325
3327
  full: "h:mm:ss a zzzz",
3326
3328
  long: "h:mm:ss a z",
3327
3329
  medium: "h:mm:ss a",
3328
3330
  short: "h:mm a"
3329
- }, uu = {
3331
+ }, cu = {
3330
3332
  full: "{{date}} 'at' {{time}}",
3331
3333
  long: "{{date}} 'at' {{time}}",
3332
3334
  medium: "{{date}}, {{time}}",
3333
3335
  short: "{{date}}, {{time}}"
3334
- }, cu = {
3336
+ }, fu = {
3335
3337
  date: it({
3336
- formats: ou,
3338
+ formats: su,
3337
3339
  defaultWidth: "full"
3338
3340
  }),
3339
3341
  time: it({
3340
- formats: su,
3342
+ formats: uu,
3341
3343
  defaultWidth: "full"
3342
3344
  }),
3343
3345
  dateTime: it({
3344
- formats: uu,
3346
+ formats: cu,
3345
3347
  defaultWidth: "full"
3346
3348
  })
3347
3349
  };
3348
- const fu = cu;
3349
- var lu = {
3350
+ const lu = fu;
3351
+ var du = {
3350
3352
  lastWeek: "'last' eeee 'at' p",
3351
3353
  yesterday: "'yesterday at' p",
3352
3354
  today: "'today at' p",
3353
3355
  tomorrow: "'tomorrow at' p",
3354
3356
  nextWeek: "eeee 'at' p",
3355
3357
  other: "P"
3356
- }, du = function(t, e, r, n) {
3357
- return lu[t];
3358
+ }, hu = function(t, e, r, n) {
3359
+ return du[t];
3358
3360
  };
3359
- const hu = du;
3361
+ const pu = hu;
3360
3362
  function ye(t) {
3361
3363
  return function(e, r) {
3362
3364
  var n = r || {}, a = n.context ? String(n.context) : "standalone", i;
@@ -3371,24 +3373,24 @@ function ye(t) {
3371
3373
  return i[g];
3372
3374
  };
3373
3375
  }
3374
- var pu = {
3376
+ var vu = {
3375
3377
  narrow: ["B", "A"],
3376
3378
  abbreviated: ["BC", "AD"],
3377
3379
  wide: ["Before Christ", "Anno Domini"]
3378
- }, vu = {
3380
+ }, mu = {
3379
3381
  narrow: ["1", "2", "3", "4"],
3380
3382
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
3381
3383
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
3382
- }, mu = {
3384
+ }, gu = {
3383
3385
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
3384
3386
  abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
3385
3387
  wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
3386
- }, gu = {
3388
+ }, yu = {
3387
3389
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
3388
3390
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
3389
3391
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
3390
3392
  wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
3391
- }, yu = {
3393
+ }, bu = {
3392
3394
  narrow: {
3393
3395
  am: "a",
3394
3396
  pm: "p",
@@ -3419,7 +3421,7 @@ var pu = {
3419
3421
  evening: "evening",
3420
3422
  night: "night"
3421
3423
  }
3422
- }, bu = {
3424
+ }, wu = {
3423
3425
  narrow: {
3424
3426
  am: "a",
3425
3427
  pm: "p",
@@ -3450,7 +3452,7 @@ var pu = {
3450
3452
  evening: "in the evening",
3451
3453
  night: "at night"
3452
3454
  }
3453
- }, wu = function(t, e) {
3455
+ }, _u = function(t, e) {
3454
3456
  var r = Number(t), n = r % 100;
3455
3457
  if (n > 20 || n < 10)
3456
3458
  switch (n % 10) {
@@ -3462,43 +3464,43 @@ var pu = {
3462
3464
  return r + "rd";
3463
3465
  }
3464
3466
  return r + "th";
3465
- }, _u = {
3466
- ordinalNumber: wu,
3467
+ }, Ou = {
3468
+ ordinalNumber: _u,
3467
3469
  era: ye({
3468
- values: pu,
3470
+ values: vu,
3469
3471
  defaultWidth: "wide"
3470
3472
  }),
3471
3473
  quarter: ye({
3472
- values: vu,
3474
+ values: mu,
3473
3475
  defaultWidth: "wide",
3474
3476
  argumentCallback: function(t) {
3475
3477
  return t - 1;
3476
3478
  }
3477
3479
  }),
3478
3480
  month: ye({
3479
- values: mu,
3481
+ values: gu,
3480
3482
  defaultWidth: "wide"
3481
3483
  }),
3482
3484
  day: ye({
3483
- values: gu,
3485
+ values: yu,
3484
3486
  defaultWidth: "wide"
3485
3487
  }),
3486
3488
  dayPeriod: ye({
3487
- values: yu,
3489
+ values: bu,
3488
3490
  defaultWidth: "wide",
3489
- formattingValues: bu,
3491
+ formattingValues: wu,
3490
3492
  defaultFormattingWidth: "wide"
3491
3493
  })
3492
3494
  };
3493
- const Ou = _u;
3495
+ const Eu = Ou;
3494
3496
  function be(t) {
3495
3497
  return function(e) {
3496
3498
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.width, a = n && t.matchPatterns[n] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
3497
3499
  if (!i)
3498
3500
  return null;
3499
- var o = i[0], s = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(s) ? Su(s, function(d) {
3501
+ var o = i[0], s = n && t.parsePatterns[n] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(s) ? xu(s, function(d) {
3500
3502
  return d.test(o);
3501
- }) : Eu(s, function(d) {
3503
+ }) : Su(s, function(d) {
3502
3504
  return d.test(o);
3503
3505
  }), c;
3504
3506
  c = t.valueCallback ? t.valueCallback(u) : u, c = r.valueCallback ? r.valueCallback(c) : c;
@@ -3509,17 +3511,17 @@ function be(t) {
3509
3511
  };
3510
3512
  };
3511
3513
  }
3512
- function Eu(t, e) {
3514
+ function Su(t, e) {
3513
3515
  for (var r in t)
3514
3516
  if (t.hasOwnProperty(r) && e(t[r]))
3515
3517
  return r;
3516
3518
  }
3517
- function Su(t, e) {
3519
+ function xu(t, e) {
3518
3520
  for (var r = 0; r < t.length; r++)
3519
3521
  if (e(t[r]))
3520
3522
  return r;
3521
3523
  }
3522
- function xu(t) {
3524
+ function Cu(t) {
3523
3525
  return function(e) {
3524
3526
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = e.match(t.matchPattern);
3525
3527
  if (!n)
@@ -3536,37 +3538,37 @@ function xu(t) {
3536
3538
  };
3537
3539
  };
3538
3540
  }
3539
- var Cu = /^(\d+)(th|st|nd|rd)?/i, Pu = /\d+/i, Tu = {
3541
+ var Pu = /^(\d+)(th|st|nd|rd)?/i, Tu = /\d+/i, ju = {
3540
3542
  narrow: /^(b|a)/i,
3541
3543
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
3542
3544
  wide: /^(before christ|before common era|anno domini|common era)/i
3543
- }, ju = {
3544
- any: [/^b/i, /^(a|c)/i]
3545
3545
  }, Du = {
3546
+ any: [/^b/i, /^(a|c)/i]
3547
+ }, qu = {
3546
3548
  narrow: /^[1234]/i,
3547
3549
  abbreviated: /^q[1234]/i,
3548
3550
  wide: /^[1234](th|st|nd|rd)? quarter/i
3549
- }, qu = {
3550
- any: [/1/i, /2/i, /3/i, /4/i]
3551
3551
  }, Mu = {
3552
+ any: [/1/i, /2/i, /3/i, /4/i]
3553
+ }, Au = {
3552
3554
  narrow: /^[jfmasond]/i,
3553
3555
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
3554
3556
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
3555
- }, Au = {
3557
+ }, Ru = {
3556
3558
  narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
3557
3559
  any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
3558
- }, Ru = {
3560
+ }, Iu = {
3559
3561
  narrow: /^[smtwf]/i,
3560
3562
  short: /^(su|mo|tu|we|th|fr|sa)/i,
3561
3563
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
3562
3564
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
3563
- }, Iu = {
3565
+ }, $u = {
3564
3566
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
3565
3567
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
3566
- }, $u = {
3568
+ }, Uu = {
3567
3569
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
3568
3570
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
3569
- }, Uu = {
3571
+ }, ku = {
3570
3572
  any: {
3571
3573
  am: /^a/i,
3572
3574
  pm: /^p/i,
@@ -3577,74 +3579,74 @@ var Cu = /^(\d+)(th|st|nd|rd)?/i, Pu = /\d+/i, Tu = {
3577
3579
  evening: /evening/i,
3578
3580
  night: /night/i
3579
3581
  }
3580
- }, ku = {
3581
- ordinalNumber: xu({
3582
- matchPattern: Cu,
3583
- parsePattern: Pu,
3582
+ }, Nu = {
3583
+ ordinalNumber: Cu({
3584
+ matchPattern: Pu,
3585
+ parsePattern: Tu,
3584
3586
  valueCallback: function(t) {
3585
3587
  return parseInt(t, 10);
3586
3588
  }
3587
3589
  }),
3588
3590
  era: be({
3589
- matchPatterns: Tu,
3591
+ matchPatterns: ju,
3590
3592
  defaultMatchWidth: "wide",
3591
- parsePatterns: ju,
3593
+ parsePatterns: Du,
3592
3594
  defaultParseWidth: "any"
3593
3595
  }),
3594
3596
  quarter: be({
3595
- matchPatterns: Du,
3597
+ matchPatterns: qu,
3596
3598
  defaultMatchWidth: "wide",
3597
- parsePatterns: qu,
3599
+ parsePatterns: Mu,
3598
3600
  defaultParseWidth: "any",
3599
3601
  valueCallback: function(t) {
3600
3602
  return t + 1;
3601
3603
  }
3602
3604
  }),
3603
3605
  month: be({
3604
- matchPatterns: Mu,
3606
+ matchPatterns: Au,
3605
3607
  defaultMatchWidth: "wide",
3606
- parsePatterns: Au,
3608
+ parsePatterns: Ru,
3607
3609
  defaultParseWidth: "any"
3608
3610
  }),
3609
3611
  day: be({
3610
- matchPatterns: Ru,
3612
+ matchPatterns: Iu,
3611
3613
  defaultMatchWidth: "wide",
3612
- parsePatterns: Iu,
3614
+ parsePatterns: $u,
3613
3615
  defaultParseWidth: "any"
3614
3616
  }),
3615
3617
  dayPeriod: be({
3616
- matchPatterns: $u,
3618
+ matchPatterns: Uu,
3617
3619
  defaultMatchWidth: "any",
3618
- parsePatterns: Uu,
3620
+ parsePatterns: ku,
3619
3621
  defaultParseWidth: "any"
3620
3622
  })
3621
3623
  };
3622
- const Nu = ku;
3623
- var Hu = {
3624
+ const Hu = Nu;
3625
+ var Wu = {
3624
3626
  code: "en-US",
3625
- formatDistance: iu,
3626
- formatLong: fu,
3627
- formatRelative: hu,
3628
- localize: Ou,
3629
- match: Nu,
3627
+ formatDistance: ou,
3628
+ formatLong: lu,
3629
+ formatRelative: pu,
3630
+ localize: Eu,
3631
+ match: Hu,
3630
3632
  options: {
3631
3633
  weekStartsOn: 0,
3632
3634
  firstWeekContainsDate: 1
3633
3635
  }
3634
3636
  };
3635
- const Wu = Hu;
3636
- function Lu(t, e) {
3637
+ const Lu = Wu;
3638
+ function Fu(t, e) {
3637
3639
  M(2, arguments);
3638
3640
  var r = H(e);
3639
- return Ks(t, -r);
3641
+ return Zs(t, -r);
3640
3642
  }
3641
- var Fu = 864e5;
3642
- function Bu(t) {
3643
+ var Bu = 864e5;
3644
+ function Yu(t) {
3643
3645
  M(1, arguments);
3644
3646
  var e = N(t), r = e.getTime();
3645
3647
  e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
3646
3648
  var n = e.getTime(), a = r - n;
3647
- return Math.floor(a / Fu) + 1;
3649
+ return Math.floor(a / Bu) + 1;
3648
3650
  }
3649
3651
  function Ie(t) {
3650
3652
  M(1, arguments);
@@ -3660,7 +3662,7 @@ function hn(t) {
3660
3662
  var o = Ie(i);
3661
3663
  return e.getTime() >= a.getTime() ? r + 1 : e.getTime() >= o.getTime() ? r : r - 1;
3662
3664
  }
3663
- function Yu(t) {
3665
+ function zu(t) {
3664
3666
  M(1, arguments);
3665
3667
  var e = hn(t), r = /* @__PURE__ */ new Date(0);
3666
3668
  r.setUTCFullYear(e, 0, 4), r.setUTCHours(0, 0, 0, 0);
@@ -3668,9 +3670,9 @@ function Yu(t) {
3668
3670
  return n;
3669
3671
  }
3670
3672
  var Xu = 6048e5;
3671
- function zu(t) {
3673
+ function Vu(t) {
3672
3674
  M(1, arguments);
3673
- var e = N(t), r = Ie(e).getTime() - Yu(e).getTime();
3675
+ var e = N(t), r = Ie(e).getTime() - zu(e).getTime();
3674
3676
  return Math.round(r / Xu) + 1;
3675
3677
  }
3676
3678
  function $e(t, e) {
@@ -3693,25 +3695,25 @@ function pn(t, e) {
3693
3695
  var p = $e(d, e);
3694
3696
  return r.getTime() >= g.getTime() ? n + 1 : r.getTime() >= p.getTime() ? n : n - 1;
3695
3697
  }
3696
- function Vu(t, e) {
3698
+ function Gu(t, e) {
3697
3699
  M(1, arguments);
3698
3700
  var r = e || {}, n = r.locale, a = n && n.options && n.options.firstWeekContainsDate, i = a == null ? 1 : H(a), o = r.firstWeekContainsDate == null ? i : H(r.firstWeekContainsDate), s = pn(t, e), u = /* @__PURE__ */ new Date(0);
3699
3701
  u.setUTCFullYear(s, 0, o), u.setUTCHours(0, 0, 0, 0);
3700
3702
  var c = $e(u, e);
3701
3703
  return c;
3702
3704
  }
3703
- var Gu = 6048e5;
3704
- function Qu(t, e) {
3705
+ var Qu = 6048e5;
3706
+ function Ju(t, e) {
3705
3707
  M(1, arguments);
3706
- var r = N(t), n = $e(r, e).getTime() - Vu(r, e).getTime();
3707
- return Math.round(n / Gu) + 1;
3708
+ var r = N(t), n = $e(r, e).getTime() - Gu(r, e).getTime();
3709
+ return Math.round(n / Qu) + 1;
3708
3710
  }
3709
3711
  function S(t, e) {
3710
3712
  for (var r = t < 0 ? "-" : "", n = Math.abs(t).toString(); n.length < e; )
3711
3713
  n = "0" + n;
3712
3714
  return r + n;
3713
3715
  }
3714
- var Ju = {
3716
+ var Ku = {
3715
3717
  // Year
3716
3718
  y: function(t, e) {
3717
3719
  var r = t.getUTCFullYear(), n = r > 0 ? r : 1 - r;
@@ -3764,7 +3766,7 @@ var Ju = {
3764
3766
  return S(a, e.length);
3765
3767
  }
3766
3768
  };
3767
- const K = Ju;
3769
+ const K = Ku;
3768
3770
  var le = {
3769
3771
  am: "am",
3770
3772
  pm: "pm",
@@ -3774,7 +3776,7 @@ var le = {
3774
3776
  afternoon: "afternoon",
3775
3777
  evening: "evening",
3776
3778
  night: "night"
3777
- }, Ku = {
3779
+ }, Zu = {
3778
3780
  // Era
3779
3781
  G: function(t, e, r) {
3780
3782
  var n = t.getUTCFullYear() > 0 ? 1 : 0;
@@ -3956,14 +3958,14 @@ var le = {
3956
3958
  },
3957
3959
  // Local week of year
3958
3960
  w: function(t, e, r, n) {
3959
- var a = Qu(t, n);
3961
+ var a = Ju(t, n);
3960
3962
  return e === "wo" ? r.ordinalNumber(a, {
3961
3963
  unit: "week"
3962
3964
  }) : S(a, e.length);
3963
3965
  },
3964
3966
  // ISO week of year
3965
3967
  I: function(t, e, r) {
3966
- var n = zu(t);
3968
+ var n = Vu(t);
3967
3969
  return e === "Io" ? r.ordinalNumber(n, {
3968
3970
  unit: "week"
3969
3971
  }) : S(n, e.length);
@@ -3976,7 +3978,7 @@ var le = {
3976
3978
  },
3977
3979
  // Day of year
3978
3980
  D: function(t, e, r) {
3979
- var n = Bu(t);
3981
+ var n = Yu(t);
3980
3982
  return e === "Do" ? r.ordinalNumber(n, {
3981
3983
  unit: "dayOfYear"
3982
3984
  }) : S(n, e.length);
@@ -4248,7 +4250,7 @@ var le = {
4248
4250
  return "Z";
4249
4251
  switch (e) {
4250
4252
  case "X":
4251
- return wr(i);
4253
+ return _r(i);
4252
4254
  case "XXXX":
4253
4255
  case "XX":
4254
4256
  return ae(i);
@@ -4263,7 +4265,7 @@ var le = {
4263
4265
  var a = n._originalDate || t, i = a.getTimezoneOffset();
4264
4266
  switch (e) {
4265
4267
  case "x":
4266
- return wr(i);
4268
+ return _r(i);
4267
4269
  case "xxxx":
4268
4270
  case "xx":
4269
4271
  return ae(i);
@@ -4280,7 +4282,7 @@ var le = {
4280
4282
  case "O":
4281
4283
  case "OO":
4282
4284
  case "OOO":
4283
- return "GMT" + br(i, ":");
4285
+ return "GMT" + wr(i, ":");
4284
4286
  case "OOOO":
4285
4287
  default:
4286
4288
  return "GMT" + ae(i, ":");
@@ -4293,7 +4295,7 @@ var le = {
4293
4295
  case "z":
4294
4296
  case "zz":
4295
4297
  case "zzz":
4296
- return "GMT" + br(i, ":");
4298
+ return "GMT" + wr(i, ":");
4297
4299
  case "zzzz":
4298
4300
  default:
4299
4301
  return "GMT" + ae(i, ":");
@@ -4310,14 +4312,14 @@ var le = {
4310
4312
  return S(i, e.length);
4311
4313
  }
4312
4314
  };
4313
- function br(t, e) {
4315
+ function wr(t, e) {
4314
4316
  var r = t > 0 ? "-" : "+", n = Math.abs(t), a = Math.floor(n / 60), i = n % 60;
4315
4317
  if (i === 0)
4316
4318
  return r + String(a);
4317
4319
  var o = e || "";
4318
4320
  return r + String(a) + o + S(i, 2);
4319
4321
  }
4320
- function wr(t, e) {
4322
+ function _r(t, e) {
4321
4323
  if (t % 60 === 0) {
4322
4324
  var r = t > 0 ? "-" : "+";
4323
4325
  return r + S(Math.abs(t) / 60, 2);
@@ -4328,8 +4330,8 @@ function ae(t, e) {
4328
4330
  var r = e || "", n = t > 0 ? "-" : "+", a = Math.abs(t), i = S(Math.floor(a / 60), 2), o = S(a % 60, 2);
4329
4331
  return n + i + r + o;
4330
4332
  }
4331
- const Zu = Ku;
4332
- function _r(t, e) {
4333
+ const ec = Zu;
4334
+ function Or(t, e) {
4333
4335
  switch (t) {
4334
4336
  case "P":
4335
4337
  return e.date({
@@ -4371,10 +4373,10 @@ function vn(t, e) {
4371
4373
  });
4372
4374
  }
4373
4375
  }
4374
- function ec(t, e) {
4376
+ function tc(t, e) {
4375
4377
  var r = t.match(/(P+)(p+)?/) || [], n = r[1], a = r[2];
4376
4378
  if (!a)
4377
- return _r(t, e);
4379
+ return Or(t, e);
4378
4380
  var i;
4379
4381
  switch (n) {
4380
4382
  case "P":
@@ -4399,21 +4401,21 @@ function ec(t, e) {
4399
4401
  });
4400
4402
  break;
4401
4403
  }
4402
- return i.replace("{{date}}", _r(n, e)).replace("{{time}}", vn(a, e));
4404
+ return i.replace("{{date}}", Or(n, e)).replace("{{time}}", vn(a, e));
4403
4405
  }
4404
- var tc = {
4406
+ var rc = {
4405
4407
  p: vn,
4406
- P: ec
4408
+ P: tc
4407
4409
  };
4408
- const rc = tc;
4409
- var nc = ["D", "DD"], ac = ["YY", "YYYY"];
4410
- function ic(t) {
4411
- return nc.indexOf(t) !== -1;
4412
- }
4410
+ const nc = rc;
4411
+ var ac = ["D", "DD"], ic = ["YY", "YYYY"];
4413
4412
  function oc(t) {
4414
4413
  return ac.indexOf(t) !== -1;
4415
4414
  }
4416
- function Or(t, e, r) {
4415
+ function sc(t) {
4416
+ return ic.indexOf(t) !== -1;
4417
+ }
4418
+ function Er(t, e, r) {
4417
4419
  if (t === "YYYY")
4418
4420
  throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e, "`) for formatting years to the input `").concat(r, "`; see: https://git.io/fxCyr"));
4419
4421
  if (t === "YY")
@@ -4423,10 +4425,10 @@ function Or(t, e, r) {
4423
4425
  if (t === "DD")
4424
4426
  throw new RangeError("Use `dd` instead of `DD` (in `".concat(e, "`) for formatting days of the month to the input `").concat(r, "`; see: https://git.io/fxCyr"));
4425
4427
  }
4426
- var sc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, uc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, cc = /^'([^]*?)'?$/, fc = /''/g, lc = /[a-zA-Z]/;
4428
+ var uc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, cc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fc = /^'([^]*?)'?$/, lc = /''/g, dc = /[a-zA-Z]/;
4427
4429
  function we(t, e, r) {
4428
4430
  M(2, arguments);
4429
- var n = String(e), a = r || {}, i = a.locale || Wu, o = i.options && i.options.firstWeekContainsDate, s = o == null ? 1 : H(o), u = a.firstWeekContainsDate == null ? s : H(a.firstWeekContainsDate);
4431
+ var n = String(e), a = r || {}, i = a.locale || Lu, o = i.options && i.options.firstWeekContainsDate, s = o == null ? 1 : H(o), u = a.firstWeekContainsDate == null ? s : H(a.firstWeekContainsDate);
4430
4432
  if (!(u >= 1 && u <= 7))
4431
4433
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4432
4434
  var c = i.options && i.options.weekStartsOn, g = c == null ? 0 : H(c), d = a.weekStartsOn == null ? g : H(a.weekStartsOn);
@@ -4437,104 +4439,147 @@ function we(t, e, r) {
4437
4439
  if (!i.formatLong)
4438
4440
  throw new RangeError("locale must contain formatLong property");
4439
4441
  var p = N(t);
4440
- if (!ru(p))
4442
+ if (!nu(p))
4441
4443
  throw new RangeError("Invalid time value");
4442
- var x = Zs(p), C = Lu(p, x), E = {
4444
+ var x = eu(p), C = Fu(p, x), E = {
4443
4445
  firstWeekContainsDate: u,
4444
4446
  weekStartsOn: d,
4445
4447
  locale: i,
4446
4448
  _originalDate: p
4447
- }, O = n.match(uc).map(function(b) {
4449
+ }, O = n.match(cc).map(function(b) {
4448
4450
  var _ = b[0];
4449
4451
  if (_ === "p" || _ === "P") {
4450
- var T = rc[_];
4452
+ var T = nc[_];
4451
4453
  return T(b, i.formatLong, E);
4452
4454
  }
4453
4455
  return b;
4454
- }).join("").match(sc).map(function(b) {
4456
+ }).join("").match(uc).map(function(b) {
4455
4457
  if (b === "''")
4456
4458
  return "'";
4457
4459
  var _ = b[0];
4458
4460
  if (_ === "'")
4459
- return dc(b);
4460
- var T = Zu[_];
4461
+ return hc(b);
4462
+ var T = ec[_];
4461
4463
  if (T)
4462
- return !a.useAdditionalWeekYearTokens && oc(b) && Or(b, e, t), !a.useAdditionalDayOfYearTokens && ic(b) && Or(b, e, t), T(C, b, i.localize, E);
4463
- if (_.match(lc))
4464
+ return !a.useAdditionalWeekYearTokens && sc(b) && Er(b, e, t), !a.useAdditionalDayOfYearTokens && oc(b) && Er(b, e, t), T(C, b, i.localize, E);
4465
+ if (_.match(dc))
4464
4466
  throw new RangeError("Format string contains an unescaped latin alphabet character `" + _ + "`");
4465
4467
  return b;
4466
4468
  }).join("");
4467
4469
  return O;
4468
4470
  }
4469
- function dc(t) {
4470
- return t.match(cc)[1].replace(fc, "'");
4471
+ function hc(t) {
4472
+ return t.match(fc)[1].replace(lc, "'");
4471
4473
  }
4472
- function hc(t, e) {
4474
+ function pc(t, e) {
4473
4475
  M(2, arguments);
4474
4476
  var r = N(t), n = N(e);
4475
4477
  return r.getFullYear() === n.getFullYear() && r.getMonth() === n.getMonth();
4476
4478
  }
4477
- const pc = "_eventCard_1qrgl_1", vc = "_eventCardBody_1qrgl_12", mc = "_image_1qrgl_27", gc = "_eventCardTitle_1qrgl_33", yc = "_eventCardDate_1qrgl_40", bc = "_eventCardDescription_1qrgl_45", wc = "_eventButtons_1qrgl_53", _c = "_eventButton_1qrgl_53", Y = {
4478
- eventCard: pc,
4479
- eventCardBody: vc,
4480
- image: mc,
4481
- eventCardTitle: gc,
4482
- eventCardDate: yc,
4483
- eventCardDescription: bc,
4484
- eventButtons: wc,
4485
- eventButton: _c
4486
- }, Oc = ({
4479
+ const vc = "_eventCard_zl7ze_1", mc = "_eventCardBody_zl7ze_12", gc = "_image_zl7ze_27", yc = "_eventCardTitle_zl7ze_33", bc = "_eventCardDate_zl7ze_40", wc = "_eventCardDescription_zl7ze_45", _c = "_eventButtons_zl7ze_53", Oc = "_eventButton_zl7ze_53", Ec = "_square_zl7ze_116", F = {
4480
+ eventCard: vc,
4481
+ eventCardBody: mc,
4482
+ image: gc,
4483
+ eventCardTitle: yc,
4484
+ eventCardDate: bc,
4485
+ eventCardDescription: wc,
4486
+ eventButtons: _c,
4487
+ eventButton: Oc,
4488
+ square: Ec
4489
+ };
4490
+ var mn = { exports: {} };
4491
+ /*!
4492
+ Copyright (c) 2018 Jed Watson.
4493
+ Licensed under the MIT License (MIT), see
4494
+ http://jedwatson.github.io/classnames
4495
+ */
4496
+ (function(t) {
4497
+ (function() {
4498
+ var e = {}.hasOwnProperty;
4499
+ function r() {
4500
+ for (var n = [], a = 0; a < arguments.length; a++) {
4501
+ var i = arguments[a];
4502
+ if (i) {
4503
+ var o = typeof i;
4504
+ if (o === "string" || o === "number")
4505
+ n.push(i);
4506
+ else if (Array.isArray(i)) {
4507
+ if (i.length) {
4508
+ var s = r.apply(null, i);
4509
+ s && n.push(s);
4510
+ }
4511
+ } else if (o === "object") {
4512
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
4513
+ n.push(i.toString());
4514
+ continue;
4515
+ }
4516
+ for (var u in i)
4517
+ e.call(i, u) && i[u] && n.push(u);
4518
+ }
4519
+ }
4520
+ }
4521
+ return n.join(" ");
4522
+ }
4523
+ t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
4524
+ })();
4525
+ })(mn);
4526
+ var Sc = mn.exports;
4527
+ const xc = /* @__PURE__ */ vt(Sc), Cc = ({
4487
4528
  name: t,
4488
4529
  image: e,
4489
- startDate: r,
4490
- endDate: n,
4491
- shortDescription: a,
4492
- buttons: i,
4493
- loading: o,
4494
- containerStyle: s
4530
+ imageType: r,
4531
+ startDate: n,
4532
+ endDate: a,
4533
+ shortDescription: i,
4534
+ buttons: o,
4535
+ loading: s,
4536
+ containerStyle: u
4495
4537
  }) => {
4496
- const u = Ec(r, n);
4497
- return /* @__PURE__ */ m.jsx(yn, { baseColor: "#dcdcdc", children: /* @__PURE__ */ m.jsxs("div", { className: Y.eventCard, style: { ...s }, children: [
4538
+ const c = Pc(n, a);
4539
+ return /* @__PURE__ */ m.jsx(bn, { baseColor: "#dcdcdc", children: /* @__PURE__ */ m.jsxs("div", { className: F.eventCard, style: { ...u }, children: [
4498
4540
  e ? /* @__PURE__ */ m.jsx(
4499
4541
  "img",
4500
4542
  {
4501
- src: kt(e).height(400).url(),
4502
- className: Y.image,
4543
+ src: Nt(e).height(400).url(),
4544
+ className: xc(
4545
+ F.image,
4546
+ r === "square" && F.square
4547
+ ),
4503
4548
  crossOrigin: "anonymous",
4504
4549
  alt: ""
4505
4550
  }
4506
- ) : /* @__PURE__ */ m.jsx("div", { className: Y.image, children: /* @__PURE__ */ m.jsx(
4551
+ ) : /* @__PURE__ */ m.jsx("div", { className: F.image, children: /* @__PURE__ */ m.jsx(
4507
4552
  ie,
4508
4553
  {
4509
4554
  height: 400,
4510
4555
  style: { lineHeight: "normal" }
4511
4556
  }
4512
4557
  ) }),
4513
- /* @__PURE__ */ m.jsxs("div", { className: Y.eventCardBody, children: [
4558
+ /* @__PURE__ */ m.jsxs("div", { className: F.eventCardBody, children: [
4514
4559
  /* @__PURE__ */ m.jsxs("div", { children: [
4515
- /* @__PURE__ */ m.jsx("h3", { className: Y.eventCardTitle, children: t || /* @__PURE__ */ m.jsx(ie, {}) }),
4516
- /* @__PURE__ */ m.jsx("div", { className: Y.eventCardDate, children: u || /* @__PURE__ */ m.jsx(ie, {}) })
4560
+ /* @__PURE__ */ m.jsx("h3", { className: F.eventCardTitle, children: t || /* @__PURE__ */ m.jsx(ie, {}) }),
4561
+ /* @__PURE__ */ m.jsx("div", { className: F.eventCardDate, children: c || /* @__PURE__ */ m.jsx(ie, {}) })
4517
4562
  ] }),
4518
- /* @__PURE__ */ m.jsx("div", { className: Y.eventCardDescription, children: a ? /* @__PURE__ */ m.jsx(Cr, { value: a }) : /* @__PURE__ */ m.jsx(ie, { count: 7 }) }),
4519
- /* @__PURE__ */ m.jsx("div", { className: Y.eventButtons, children: i ? i.map(({ url: c, text: g, _key: d }) => /* @__PURE__ */ m.jsx(
4563
+ /* @__PURE__ */ m.jsx("div", { className: F.eventCardDescription, children: i ? /* @__PURE__ */ m.jsx(Pr, { value: i }) : /* @__PURE__ */ m.jsx(ie, { count: 7 }) }),
4564
+ /* @__PURE__ */ m.jsx("div", { className: F.eventButtons, children: o ? o.map(({ url: g, text: d, _key: p }) => /* @__PURE__ */ m.jsx(
4520
4565
  "a",
4521
4566
  {
4522
- href: c,
4523
- className: Y.eventButton,
4524
- children: /* @__PURE__ */ m.jsx("div", { children: g })
4567
+ href: g,
4568
+ className: F.eventButton,
4569
+ children: /* @__PURE__ */ m.jsx("div", { children: d })
4525
4570
  },
4526
- d
4527
- )) : o && /* @__PURE__ */ m.jsx(ie, { className: Y.eventButton }) })
4571
+ p
4572
+ )) : s && /* @__PURE__ */ m.jsx(ie, { className: F.eventButton }) })
4528
4573
  ] })
4529
4574
  ] }) });
4530
4575
  };
4531
- function Ec(t, e) {
4576
+ function Pc(t, e) {
4532
4577
  if (!t || !e)
4533
4578
  return null;
4534
4579
  const r = new Date(t), n = new Date(e);
4535
- return eu(r, n) ? we(r, "MMMM d") : hc(r, n) ? we(r, "MMMM d") + " – " + we(n, "d") : we(r, "MMMM d") + " – " + we(n, "MMMM d");
4580
+ return tu(r, n) ? we(r, "MMMM d") : pc(r, n) ? we(r, "MMMM d") + " – " + we(n, "d") : we(r, "MMMM d") + " – " + we(n, "MMMM d");
4536
4581
  }
4537
- const Sc = () => /* @__PURE__ */ m.jsxs(
4582
+ const Tc = () => /* @__PURE__ */ m.jsxs(
4538
4583
  "svg",
4539
4584
  {
4540
4585
  xmlns: "http://www.w3.org/2000/svg",
@@ -4554,13 +4599,13 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4554
4599
  /* @__PURE__ */ m.jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
4555
4600
  ]
4556
4601
  }
4557
- ), xc = "_campEventsApp_17stc_1", Cc = "_eventsHeader_17stc_14", Pc = "_calendarButton_17stc_30", Tc = "_eventsContainer_17stc_50", jc = "_empty_17stc_57", _e = {
4558
- campEventsApp: xc,
4559
- eventsHeader: Cc,
4560
- calendarButton: Pc,
4561
- eventsContainer: Tc,
4562
- empty: jc
4563
- }, Dc = ({
4602
+ ), jc = "_campEventsApp_17stc_1", Dc = "_eventsHeader_17stc_14", qc = "_calendarButton_17stc_30", Mc = "_eventsContainer_17stc_50", Ac = "_empty_17stc_57", _e = {
4603
+ campEventsApp: jc,
4604
+ eventsHeader: Dc,
4605
+ calendarButton: qc,
4606
+ eventsContainer: Mc,
4607
+ empty: Ac
4608
+ }, Rc = ({
4564
4609
  events: t,
4565
4610
  loading: e,
4566
4611
  title: r = "What's going on at Camp?",
@@ -4570,11 +4615,11 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4570
4615
  /* @__PURE__ */ m.jsx("h1", { children: r }),
4571
4616
  n && /* @__PURE__ */ m.jsxs("a", { className: _e.calendarButton, href: "/calendar", children: [
4572
4617
  "Check out our calendar",
4573
- /* @__PURE__ */ m.jsx(Sc, {})
4618
+ /* @__PURE__ */ m.jsx(Tc, {})
4574
4619
  ] })
4575
4620
  ] }),
4576
4621
  /* @__PURE__ */ m.jsx("div", { className: _e.eventsContainer, children: t.length > 0 ? t.map((a, i) => /* @__PURE__ */ I.createElement(
4577
- Oc,
4622
+ Cc,
4578
4623
  {
4579
4624
  ...a,
4580
4625
  key: i,
@@ -4584,14 +4629,14 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4584
4629
  /* @__PURE__ */ m.jsx("img", { src: "https://d2114hmso7dut1.cloudfront.net/customers/096355b6-1a03-11eb-a9c3-0614187498c1/sites/096f9d4e-1a03-11eb-b2dd-0614187498c1/files/67900ba0-5f83-11eb-9222-e3d4d8baf1a9/original/file.png?t=1611630366" }),
4585
4630
  "No upcoming events. Check back later!"
4586
4631
  ] }) })
4587
- ] }), qc = "_contentButton_2dk7a_1", Mc = "_overlay_2dk7a_40", Ac = "_buttonTitle_2dk7a_56", Rc = "_buttonSubtitle_2dk7a_57", Ic = "_contentButtonsHeader_2dk7a_73", de = {
4588
- contentButton: qc,
4632
+ ] }), Ic = "_contentButton_2dk7a_1", $c = "_overlay_2dk7a_40", Uc = "_buttonTitle_2dk7a_56", kc = "_buttonSubtitle_2dk7a_57", Nc = "_contentButtonsHeader_2dk7a_73", de = {
4633
+ contentButton: Ic,
4589
4634
  "category-image": "_category-image_2dk7a_25",
4590
- overlay: Mc,
4591
- buttonTitle: Ac,
4592
- buttonSubtitle: Rc,
4593
- contentButtonsHeader: Ic
4594
- }, $c = ({
4635
+ overlay: $c,
4636
+ buttonTitle: Uc,
4637
+ buttonSubtitle: kc,
4638
+ contentButtonsHeader: Nc
4639
+ }, Hc = ({
4595
4640
  title: t,
4596
4641
  subtitle: e,
4597
4642
  url: r,
@@ -4624,14 +4669,14 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4624
4669
  /* @__PURE__ */ m.jsx("div", { className: de.buttonTitle, children: t }),
4625
4670
  /* @__PURE__ */ m.jsx("div", { className: de.buttonSubtitle, children: e })
4626
4671
  ] })
4627
- ] }), Uc = "_categoryContainer_1yxkk_1", kc = "_categoryContainerHeader_1yxkk_25", Nc = {
4628
- categoryContainer: Uc,
4629
- categoryContainerHeader: kc
4630
- }, Hc = ({
4672
+ ] }), Wc = "_categoryContainer_1yxkk_1", Lc = "_categoryContainerHeader_1yxkk_25", Fc = {
4673
+ categoryContainer: Wc,
4674
+ categoryContainerHeader: Lc
4675
+ }, Bc = ({
4631
4676
  categories: t,
4632
4677
  loading: e
4633
- }) => /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx("div", { className: Nc.categoryContainer, children: t.length > 0 && t.map((r) => /* @__PURE__ */ m.jsx(
4634
- $c,
4678
+ }) => /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx("div", { className: Fc.categoryContainer, children: t.length > 0 && t.map((r) => /* @__PURE__ */ m.jsx(
4679
+ Hc,
4635
4680
  {
4636
4681
  title: r.title,
4637
4682
  subtitle: r.subtitle,
@@ -4640,14 +4685,14 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4640
4685
  loading: e
4641
4686
  },
4642
4687
  r.title
4643
- )) }) }), Wc = (t) => t.map((e) => ({
4688
+ )) }) }), Yc = (t) => t.map((e) => ({
4644
4689
  ...e,
4645
- imageUrl: kt(e.image).width(800).url()
4646
- })), Lc = "_description_z94kn_1", Fc = {
4647
- description: Lc
4648
- }, Bc = ({ rateDescription: t }) => {
4690
+ imageUrl: Nt(e.image).width(800).url()
4691
+ })), zc = "_description_z94kn_1", Xc = {
4692
+ description: zc
4693
+ }, Vc = ({ rateDescription: t }) => {
4649
4694
  const { title: e, text: r } = t || {};
4650
- return /* @__PURE__ */ m.jsxs("div", { className: Fc.description, children: [
4695
+ return /* @__PURE__ */ m.jsxs("div", { className: Xc.description, children: [
4651
4696
  e && /* @__PURE__ */ m.jsx("h4", { children: e }),
4652
4697
  r && /* @__PURE__ */ m.jsx("span", { children: r })
4653
4698
  ] });
@@ -4660,25 +4705,25 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4660
4705
  /* @__PURE__ */ m.jsx("td", { children: t }),
4661
4706
  e && /* @__PURE__ */ m.jsx("td", { children: e }),
4662
4707
  /* @__PURE__ */ m.jsx("td", { children: r })
4663
- ] }), Er = {
4708
+ ] }), Sr = {
4664
4709
  "group-title": "_group-title_12ylh_1",
4665
4710
  "rate-group-child": "_rate-group-child_12ylh_5"
4666
- }, Yc = ({ rateGroup: t }) => /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
4667
- /* @__PURE__ */ m.jsx(pt, { name: t.name, className: Er["group-title"] }),
4711
+ }, Gc = ({ rateGroup: t }) => /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
4712
+ /* @__PURE__ */ m.jsx(pt, { name: t.name, className: Sr["group-title"] }),
4668
4713
  t.childRates.map((e) => /* @__PURE__ */ m.jsx(
4669
4714
  pt,
4670
4715
  {
4671
4716
  name: e.name,
4672
4717
  value: e.cost,
4673
- className: Er["rate-group-child"]
4718
+ className: Sr["rate-group-child"]
4674
4719
  },
4675
4720
  e.name
4676
4721
  ))
4677
- ] }), Sr = {
4722
+ ] }), xr = {
4678
4723
  "rate-table": "_rate-table_6wuu7_1",
4679
4724
  "background-darker": "_background-darker_6wuu7_15",
4680
4725
  "group-title": "_group-title_6wuu7_33"
4681
- }, Xc = (t) => {
4726
+ }, Qc = (t) => {
4682
4727
  const { rateTable: e } = t, r = e.some((i) => i._type === "rateGroup"), n = e.some((i) => i._type === "rate" && i.detail), a = e.map((i) => {
4683
4728
  if (i._type === "rate")
4684
4729
  return n && (i = {
@@ -4690,18 +4735,18 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4690
4735
  name: i.name,
4691
4736
  detail: i.detail,
4692
4737
  value: i.cost,
4693
- className: r ? Sr["group-title"] : ""
4738
+ className: r ? xr["group-title"] : ""
4694
4739
  },
4695
4740
  i.name
4696
4741
  );
4697
4742
  if (i._type === "rateGroup")
4698
- return /* @__PURE__ */ m.jsx(Yc, { rateGroup: i }, i.name);
4743
+ return /* @__PURE__ */ m.jsx(Gc, { rateGroup: i }, i.name);
4699
4744
  });
4700
- return /* @__PURE__ */ m.jsx("table", { className: Sr["rate-table"], children: /* @__PURE__ */ m.jsx("tbody", { children: a }) });
4701
- }, xr = {
4745
+ return /* @__PURE__ */ m.jsx("table", { className: xr["rate-table"], children: /* @__PURE__ */ m.jsx("tbody", { children: a }) });
4746
+ }, Cr = {
4702
4747
  "rate-card": "_rate-card_i5ys9_1",
4703
4748
  "rate-card-heading": "_rate-card-heading_i5ys9_13"
4704
- }, zc = (t) => {
4749
+ }, Jc = (t) => {
4705
4750
  const { heading: e, rates: r } = t, n = r.reduce((a, i) => {
4706
4751
  if (i._type === "rateDescription")
4707
4752
  return [...a, i];
@@ -4710,11 +4755,11 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4710
4755
  return Array.isArray(o) ? (o.push(i), a) : [...a, [i]];
4711
4756
  }
4712
4757
  }, []);
4713
- return /* @__PURE__ */ m.jsxs("div", { className: xr["rate-card"], children: [
4714
- /* @__PURE__ */ m.jsx("div", { className: xr["rate-card-heading"], children: /* @__PURE__ */ m.jsx("h3", { children: e }) }),
4715
- n.map((a, i) => Array.isArray(a) ? /* @__PURE__ */ m.jsx(Xc, { rateTable: a }, i) : /* @__PURE__ */ m.jsx(Bc, { rateDescription: a }, i))
4758
+ return /* @__PURE__ */ m.jsxs("div", { className: Cr["rate-card"], children: [
4759
+ /* @__PURE__ */ m.jsx("div", { className: Cr["rate-card-heading"], children: /* @__PURE__ */ m.jsx("h3", { children: e }) }),
4760
+ n.map((a, i) => Array.isArray(a) ? /* @__PURE__ */ m.jsx(Qc, { rateTable: a }, i) : /* @__PURE__ */ m.jsx(Vc, { rateDescription: a }, i))
4716
4761
  ] });
4717
- }, Qc = ({ type: t }) => {
4762
+ }, ef = ({ type: t }) => {
4718
4763
  const [e, r] = I.useState([
4719
4764
  null,
4720
4765
  null,
@@ -4722,11 +4767,11 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4722
4767
  ]), [n, a] = I.useState(!0);
4723
4768
  return I.useEffect(() => {
4724
4769
  async function i() {
4725
- (t === "events" ? Ls : Fs)().then((s) => r(s)).catch((s) => console.log(s)).finally(() => a(!1));
4770
+ (t === "events" ? Fs : Bs)().then((s) => r(s)).catch((s) => console.log(s)).finally(() => a(!1));
4726
4771
  }
4727
4772
  i();
4728
4773
  }, [t]), /* @__PURE__ */ m.jsx(
4729
- Dc,
4774
+ Rc,
4730
4775
  {
4731
4776
  events: e,
4732
4777
  loading: n,
@@ -4734,26 +4779,26 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4734
4779
  title: t === "events" ? "What's going on at Camp?" : "Upcoming Board Events"
4735
4780
  }
4736
4781
  );
4737
- }, Jc = () => {
4782
+ }, tf = () => {
4738
4783
  const [t, e] = I.useState([]), [r, n] = I.useState(!0);
4739
4784
  return I.useEffect(() => {
4740
- Ws().then((a) => e(a)).catch((a) => console.log(a)).finally(() => n(!1));
4741
- }, []), /* @__PURE__ */ m.jsx(Js, { children: t.map((a) => /* @__PURE__ */ I.createElement(Vs, { ...a, loading: r, key: a._id })) });
4742
- }, Kc = () => {
4785
+ Ls().then((a) => e(a)).catch((a) => console.log(a)).finally(() => n(!1));
4786
+ }, []), /* @__PURE__ */ m.jsx(Ks, { children: t.map((a) => /* @__PURE__ */ I.createElement(Gs, { ...a, loading: r, key: a._id })) });
4787
+ }, rf = () => {
4743
4788
  const [t, e] = I.useState([]), [r, n] = I.useState(!0);
4744
4789
  return I.useEffect(() => {
4745
- Bs().then(
4746
- (a) => e(Wc(a))
4790
+ Ys().then(
4791
+ (a) => e(Yc(a))
4747
4792
  ).catch((a) => console.log(a)).finally(() => n(!1));
4748
- }, []), /* @__PURE__ */ m.jsx(Hc, { categories: t, loading: r });
4749
- }, Vc = {
4793
+ }, []), /* @__PURE__ */ m.jsx(Bc, { categories: t, loading: r });
4794
+ }, Kc = {
4750
4795
  "rates-container": "_rates-container_123ct_1"
4751
- }, Zc = () => {
4796
+ }, nf = () => {
4752
4797
  const [t, e] = I.useState([]), [r, n] = I.useState(!0);
4753
4798
  return I.useEffect(() => {
4754
- Ys().then((a) => e(a)).catch((a) => console.log(a)).finally(() => n(!1));
4755
- }, []), /* @__PURE__ */ m.jsx("div", { className: Vc["rates-container"], children: t.map((a) => /* @__PURE__ */ m.jsx(
4756
- zc,
4799
+ zs().then((a) => e(a)).catch((a) => console.log(a)).finally(() => n(!1));
4800
+ }, []), /* @__PURE__ */ m.jsx("div", { className: Kc["rates-container"], children: t.map((a) => /* @__PURE__ */ m.jsx(
4801
+ Jc,
4757
4802
  {
4758
4803
  heading: a.name,
4759
4804
  rates: a.rates
@@ -4762,9 +4807,9 @@ const Sc = () => /* @__PURE__ */ m.jsxs(
4762
4807
  )) });
4763
4808
  };
4764
4809
  export {
4765
- Jc as B,
4766
- Kc as C,
4767
- Qc as E,
4768
- Zc as R,
4769
- Pr as g
4810
+ tf as B,
4811
+ rf as C,
4812
+ ef as E,
4813
+ nf as R,
4814
+ vt as g
4770
4815
  };