@x4b/banner 30.1.0 → 30.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/banner.es.js CHANGED
@@ -58,8 +58,8 @@ function Ha() {
58
58
  if (Mr)
59
59
  return F;
60
60
  Mr = 1;
61
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
62
- function p(y) {
61
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
62
+ function m(y) {
63
63
  if (typeof y == "object" && y !== null) {
64
64
  var _ = y.$$typeof;
65
65
  switch (_) {
@@ -90,35 +90,35 @@ function Ha() {
90
90
  }
91
91
  }
92
92
  function P(y) {
93
- return p(y) === f;
93
+ return m(y) === f;
94
94
  }
95
95
  return F.AsyncMode = u, F.ConcurrentMode = f, F.ContextConsumer = s, F.ContextProvider = i, F.Element = t, F.ForwardRef = c, F.Fragment = n, F.Lazy = M, F.Memo = b, F.Portal = r, F.Profiler = o, F.StrictMode = a, F.Suspense = h, F.isAsyncMode = function(y) {
96
- return P(y) || p(y) === u;
96
+ return P(y) || m(y) === u;
97
97
  }, F.isConcurrentMode = P, F.isContextConsumer = function(y) {
98
- return p(y) === s;
98
+ return m(y) === s;
99
99
  }, F.isContextProvider = function(y) {
100
- return p(y) === i;
100
+ return m(y) === i;
101
101
  }, F.isElement = function(y) {
102
102
  return typeof y == "object" && y !== null && y.$$typeof === t;
103
103
  }, F.isForwardRef = function(y) {
104
- return p(y) === c;
104
+ return m(y) === c;
105
105
  }, F.isFragment = function(y) {
106
- return p(y) === n;
106
+ return m(y) === n;
107
107
  }, F.isLazy = function(y) {
108
- return p(y) === M;
108
+ return m(y) === M;
109
109
  }, F.isMemo = function(y) {
110
- return p(y) === b;
110
+ return m(y) === b;
111
111
  }, F.isPortal = function(y) {
112
- return p(y) === r;
112
+ return m(y) === r;
113
113
  }, F.isProfiler = function(y) {
114
- return p(y) === o;
114
+ return m(y) === o;
115
115
  }, F.isStrictMode = function(y) {
116
- return p(y) === a;
116
+ return m(y) === a;
117
117
  }, F.isSuspense = function(y) {
118
- return p(y) === h;
118
+ return m(y) === h;
119
119
  }, F.isValidElementType = function(y) {
120
- return typeof y == "string" || typeof y == "function" || y === n || y === f || y === o || y === a || y === h || y === m || typeof y == "object" && y !== null && (y.$$typeof === M || y.$$typeof === b || y.$$typeof === i || y.$$typeof === s || y.$$typeof === c || y.$$typeof === T || y.$$typeof === R || y.$$typeof === d || y.$$typeof === x);
121
- }, F.typeOf = p, F;
120
+ return typeof y == "string" || typeof y == "function" || y === n || y === f || y === o || y === a || y === h || y === p || typeof y == "object" && y !== null && (y.$$typeof === M || y.$$typeof === b || y.$$typeof === i || y.$$typeof === s || y.$$typeof === c || y.$$typeof === T || y.$$typeof === R || y.$$typeof === d || y.$$typeof === x);
121
+ }, F.typeOf = m, F;
122
122
  }
123
123
  var k = {};
124
124
  /** @license React v16.13.1
@@ -132,9 +132,9 @@ var k = {};
132
132
  var Pr;
133
133
  function Ba() {
134
134
  return Pr || (Pr = 1, process.env.NODE_ENV !== "production" && function() {
135
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
136
- function p(I) {
137
- return typeof I == "string" || typeof I == "function" || I === n || I === f || I === o || I === a || I === h || I === m || typeof I == "object" && I !== null && (I.$$typeof === M || I.$$typeof === b || I.$$typeof === i || I.$$typeof === s || I.$$typeof === c || I.$$typeof === T || I.$$typeof === R || I.$$typeof === d || I.$$typeof === x);
135
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, M = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
136
+ function m(I) {
137
+ return typeof I == "string" || typeof I == "function" || I === n || I === f || I === o || I === a || I === h || I === p || typeof I == "object" && I !== null && (I.$$typeof === M || I.$$typeof === b || I.$$typeof === i || I.$$typeof === s || I.$$typeof === c || I.$$typeof === T || I.$$typeof === R || I.$$typeof === d || I.$$typeof === x);
138
138
  }
139
139
  function P(I) {
140
140
  if (typeof I == "object" && I !== null) {
@@ -208,7 +208,7 @@ function Ba() {
208
208
  function gt(I) {
209
209
  return P(I) === h;
210
210
  }
211
- k.AsyncMode = y, k.ConcurrentMode = _, k.ContextConsumer = C, k.ContextProvider = re, k.Element = ne, k.ForwardRef = be, k.Fragment = ce, k.Lazy = ve, k.Memo = J, k.Portal = ae, k.Profiler = Y, k.StrictMode = X, k.Suspense = oe, k.isAsyncMode = Ae, k.isConcurrentMode = Re, k.isContextConsumer = Le, k.isContextProvider = De, k.isElement = _e, k.isForwardRef = je, k.isFragment = Ve, k.isLazy = Ie, k.isMemo = B, k.isPortal = q, k.isProfiler = Me, k.isStrictMode = Ee, k.isSuspense = gt, k.isValidElementType = p, k.typeOf = P;
211
+ k.AsyncMode = y, k.ConcurrentMode = _, k.ContextConsumer = C, k.ContextProvider = re, k.Element = ne, k.ForwardRef = be, k.Fragment = ce, k.Lazy = ve, k.Memo = J, k.Portal = ae, k.Profiler = Y, k.StrictMode = X, k.Suspense = oe, k.isAsyncMode = Ae, k.isConcurrentMode = Re, k.isContextConsumer = Le, k.isContextProvider = De, k.isElement = _e, k.isForwardRef = je, k.isFragment = Ve, k.isLazy = Ie, k.isMemo = B, k.isPortal = q, k.isProfiler = Me, k.isStrictMode = Ee, k.isSuspense = gt, k.isValidElementType = m, k.typeOf = P;
212
212
  }()), k;
213
213
  }
214
214
  (function(e) {
@@ -375,8 +375,8 @@ var Va = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
375
375
  function Xa(e) {
376
376
  if (e.length === 0)
377
377
  throw new Error("Number skeleton cannot be empty");
378
- for (var t = e.split(Va).filter(function(m) {
379
- return m.length > 0;
378
+ for (var t = e.split(Va).filter(function(p) {
379
+ return p.length > 0;
380
380
  }), r = [], n = 0, a = t; n < a.length; n++) {
381
381
  var o = a[n], i = o.split("/");
382
382
  if (i.length === 0)
@@ -523,11 +523,11 @@ function Ja(e) {
523
523
  case "integer-width":
524
524
  if (a.options.length > 1)
525
525
  throw new RangeError("integer-width stems only accept a single optional option");
526
- a.options[0].replace(Ya, function(u, f, c, h, m, b) {
526
+ a.options[0].replace(Ya, function(u, f, c, h, p, b) {
527
527
  if (f)
528
528
  t.minimumIntegerDigits = c.length;
529
529
  else {
530
- if (h && m)
530
+ if (h && p)
531
531
  throw new Error("We currently do not support maximum integer digits");
532
532
  if (b)
533
533
  throw new Error("We currently do not support exact integer digits");
@@ -543,8 +543,8 @@ function Ja(e) {
543
543
  if (Nr.test(a.stem)) {
544
544
  if (a.options.length > 1)
545
545
  throw new RangeError("Fraction-precision stems only accept a single optional option");
546
- a.stem.replace(Nr, function(u, f, c, h, m, b) {
547
- return c === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : m && b ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + b.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
546
+ a.stem.replace(Nr, function(u, f, c, h, p, b) {
547
+ return c === "*" ? t.minimumFractionDigits = f.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : p && b ? (t.minimumFractionDigits = p.length, t.maximumFractionDigits = p.length + b.length) : (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length), "";
548
548
  });
549
549
  var o = a.options[0];
550
550
  o === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = S(S({}, t), Cr(o)));
@@ -2199,11 +2199,11 @@ var fo = function() {
2199
2199
  var c = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2200
2200
  if (h.err)
2201
2201
  return h;
2202
- var m = co(h.val);
2203
- if (m.length === 0)
2202
+ var p = co(h.val);
2203
+ if (p.length === 0)
2204
2204
  return this.error(A.EXPECT_ARGUMENT_STYLE, D(this.clonePosition(), this.clonePosition()));
2205
2205
  var b = D(c, this.clonePosition());
2206
- f = { style: m, styleLocation: b };
2206
+ f = { style: p, styleLocation: b };
2207
2207
  }
2208
2208
  var M = this.tryParseArgumentClose(a);
2209
2209
  if (M.err)
@@ -2222,14 +2222,14 @@ var fo = function() {
2222
2222
  return this.error(A.EXPECT_DATE_TIME_SKELETON, x);
2223
2223
  var R = T;
2224
2224
  this.locale && (R = qa(T, this.locale));
2225
- var m = {
2225
+ var p = {
2226
2226
  type: Ue.dateTime,
2227
2227
  pattern: R,
2228
2228
  location: f.styleLocation,
2229
2229
  parsedOptions: this.shouldParseSkeletons ? ja(R) : {}
2230
2230
  }, d = s === "date" ? G.date : G.time;
2231
2231
  return {
2232
- val: { type: d, value: n, location: x, style: m },
2232
+ val: { type: d, value: n, location: x, style: p },
2233
2233
  err: null
2234
2234
  };
2235
2235
  }
@@ -2247,9 +2247,9 @@ var fo = function() {
2247
2247
  case "plural":
2248
2248
  case "selectordinal":
2249
2249
  case "select": {
2250
- var p = this.clonePosition();
2250
+ var m = this.clonePosition();
2251
2251
  if (this.bumpSpace(), !this.bumpIf(","))
2252
- return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, D(p, S({}, p)));
2252
+ return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, D(m, S({}, m)));
2253
2253
  this.bumpSpace();
2254
2254
  var P = this.parseIdentifierIfPossible(), y = 0;
2255
2255
  if (s !== "select" && P.value === "offset") {
@@ -2349,9 +2349,9 @@ var fo = function() {
2349
2349
  if (f.length === 0) {
2350
2350
  var h = this.clonePosition();
2351
2351
  if (r !== "select" && this.bumpIf("=")) {
2352
- var m = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
2353
- if (m.err)
2354
- return m;
2352
+ var p = this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR, A.INVALID_PLURAL_ARGUMENT_SELECTOR);
2353
+ if (p.err)
2354
+ return p;
2355
2355
  c = D(h, this.clonePosition()), f = this.message.slice(h.offset, this.offset());
2356
2356
  } else
2357
2357
  break;
@@ -2607,11 +2607,11 @@ function nt(e, t, r, n, a, o, i) {
2607
2607
  var h = c.value;
2608
2608
  if (!(a && h in a))
2609
2609
  throw new So(h, i);
2610
- var m = a[h];
2610
+ var p = a[h];
2611
2611
  if (Ua(c)) {
2612
- (!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), s.push({
2613
- type: typeof m == "string" ? K.literal : K.object,
2614
- value: m
2612
+ (!p || typeof p == "string" || typeof p == "number") && (p = typeof p == "string" || typeof p == "number" ? String(p) : ""), s.push({
2613
+ type: typeof p == "string" ? K.literal : K.object,
2614
+ value: p
2615
2615
  });
2616
2616
  continue;
2617
2617
  }
@@ -2619,7 +2619,7 @@ function nt(e, t, r, n, a, o, i) {
2619
2619
  var b = typeof c.style == "string" ? n.date[c.style] : Ct(c.style) ? c.style.parsedOptions : void 0;
2620
2620
  s.push({
2621
2621
  type: K.literal,
2622
- value: r.getDateTimeFormat(t, b).format(m)
2622
+ value: r.getDateTimeFormat(t, b).format(p)
2623
2623
  });
2624
2624
  continue;
2625
2625
  }
@@ -2627,15 +2627,15 @@ function nt(e, t, r, n, a, o, i) {
2627
2627
  var b = typeof c.style == "string" ? n.time[c.style] : Ct(c.style) ? c.style.parsedOptions : n.time.medium;
2628
2628
  s.push({
2629
2629
  type: K.literal,
2630
- value: r.getDateTimeFormat(t, b).format(m)
2630
+ value: r.getDateTimeFormat(t, b).format(p)
2631
2631
  });
2632
2632
  continue;
2633
2633
  }
2634
2634
  if (cn(c)) {
2635
2635
  var b = typeof c.style == "string" ? n.number[c.style] : vn(c.style) ? c.style.parsedOptions : void 0;
2636
- b && b.scale && (m = m * (b.scale || 1)), s.push({
2636
+ b && b.scale && (p = p * (b.scale || 1)), s.push({
2637
2637
  type: K.literal,
2638
- value: r.getNumberFormat(t, b).format(m)
2638
+ value: r.getNumberFormat(t, b).format(p)
2639
2639
  });
2640
2640
  continue;
2641
2641
  }
@@ -2654,25 +2654,25 @@ function nt(e, t, r, n, a, o, i) {
2654
2654
  }));
2655
2655
  }
2656
2656
  if (dn(c)) {
2657
- var p = c.options[m] || c.options.other;
2658
- if (!p)
2659
- throw new Hr(c.value, m, Object.keys(c.options), i);
2660
- s.push.apply(s, nt(p.value, t, r, n, a));
2657
+ var m = c.options[p] || c.options.other;
2658
+ if (!m)
2659
+ throw new Hr(c.value, p, Object.keys(c.options), i);
2660
+ s.push.apply(s, nt(m.value, t, r, n, a));
2661
2661
  continue;
2662
2662
  }
2663
2663
  if (mn(c)) {
2664
- var p = c.options["=".concat(m)];
2665
- if (!p) {
2664
+ var m = c.options["=".concat(p)];
2665
+ if (!m) {
2666
2666
  if (!Intl.PluralRules)
2667
2667
  throw new Se(`Intl.PluralRules is not available in this environment.
2668
2668
  Try polyfilling it using "@formatjs/intl-pluralrules"
2669
2669
  `, pe.MISSING_INTL_API, i);
2670
- var P = r.getPluralRules(t, { type: c.pluralType }).select(m - (c.offset || 0));
2671
- p = c.options[P] || c.options.other;
2670
+ var P = r.getPluralRules(t, { type: c.pluralType }).select(p - (c.offset || 0));
2671
+ m = c.options[P] || c.options.other;
2672
2672
  }
2673
- if (!p)
2674
- throw new Hr(c.value, m, Object.keys(c.options), i);
2675
- s.push.apply(s, nt(p.value, t, r, n, a, m - (c.offset || 0)));
2673
+ if (!m)
2674
+ throw new Hr(c.value, p, Object.keys(c.options), i);
2675
+ s.push.apply(s, nt(m.value, t, r, n, a, p - (c.offset || 0)));
2676
2676
  continue;
2677
2677
  }
2678
2678
  }
@@ -3036,7 +3036,7 @@ function kr(e, t) {
3036
3036
  return S(S(S({}, r), e), { date: Fr(rt(r.date, t), rt(e.date || {}, t)), time: Fr(rt(r.time, t), rt(e.time || {}, t)) });
3037
3037
  }
3038
3038
  var Bt = function(e, t, r, n, a) {
3039
- var o = e.locale, i = e.formats, s = e.messages, u = e.defaultLocale, f = e.defaultFormats, c = e.fallbackOnEmptyString, h = e.onError, m = e.timeZone, b = e.defaultRichTextElements;
3039
+ var o = e.locale, i = e.formats, s = e.messages, u = e.defaultLocale, f = e.defaultFormats, c = e.fallbackOnEmptyString, h = e.onError, p = e.timeZone, b = e.defaultRichTextElements;
3040
3040
  r === void 0 && (r = { id: "" });
3041
3041
  var M = r.id, x = r.defaultMessage;
3042
3042
  un(!!M, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
@@ -3045,30 +3045,30 @@ var Bt = function(e, t, r, n, a) {
3045
3045
  return R[0].value;
3046
3046
  if (!n && R && typeof R == "string" && !b)
3047
3047
  return R.replace(/'\{(.*?)\}'/gi, "{$1}");
3048
- if (n = S(S({}, b), n || {}), i = kr(i, m), f = kr(f, m), !R) {
3048
+ if (n = S(S({}, b), n || {}), i = kr(i, p), f = kr(f, p), !R) {
3049
3049
  if (c === !1 && R === "")
3050
3050
  return R;
3051
3051
  if ((!x || o && o.toLowerCase() !== u.toLowerCase()) && h(new Co(r, o)), x)
3052
3052
  try {
3053
3053
  var d = t.getMessageFormat(x, u, f, a);
3054
3054
  return d.format(n);
3055
- } catch (p) {
3056
- return h(new Rt('Error formatting default message for: "'.concat(T, '", rendering default message verbatim'), o, r, p)), typeof x == "string" ? x : T;
3055
+ } catch (m) {
3056
+ return h(new Rt('Error formatting default message for: "'.concat(T, '", rendering default message verbatim'), o, r, m)), typeof x == "string" ? x : T;
3057
3057
  }
3058
3058
  return T;
3059
3059
  }
3060
3060
  try {
3061
3061
  var d = t.getMessageFormat(R, o, i, S({ formatters: t }, a || {}));
3062
3062
  return d.format(n);
3063
- } catch (p) {
3064
- h(new Rt('Error formatting message: "'.concat(T, '", using ').concat(x ? "default message" : "id", " as fallback."), o, r, p));
3063
+ } catch (m) {
3064
+ h(new Rt('Error formatting message: "'.concat(T, '", using ').concat(x ? "default message" : "id", " as fallback."), o, r, m));
3065
3065
  }
3066
3066
  if (x)
3067
3067
  try {
3068
3068
  var d = t.getMessageFormat(x, u, f, a);
3069
3069
  return d.format(n);
3070
- } catch (p) {
3071
- h(new Rt('Error formatting the default message for: "'.concat(T, '", rendering message verbatim'), o, r, p));
3070
+ } catch (m) {
3071
+ h(new Rt('Error formatting the default message for: "'.concat(T, '", rendering message verbatim'), o, r, m));
3072
3072
  }
3073
3073
  return typeof R == "string" ? R : typeof x == "string" ? x : T;
3074
3074
  }, Nn = [
@@ -3125,8 +3125,8 @@ function Bo(e, t) {
3125
3125
  var a = r[0], o = r[1], i = r[2], s = i === void 0 ? {} : i, u = e.timeZone, f = e.locale, c = e.onError, h = Ne(s, Nn, u ? { timeZone: u } : {});
3126
3126
  try {
3127
3127
  return t(f, h).formatRange(a, o);
3128
- } catch (m) {
3129
- c(new ee(W.FORMAT_ERROR, "Error formatting date time range.", m));
3128
+ } catch (p) {
3129
+ c(new ee(W.FORMAT_ERROR, "Error formatting date time range.", p));
3130
3130
  }
3131
3131
  return String(a);
3132
3132
  }
@@ -3195,8 +3195,8 @@ Try polyfilling it using "@formatjs/intl-listformat"
3195
3195
  try {
3196
3196
  var u = {}, f = r.map(function(c, h) {
3197
3197
  if (typeof c == "object") {
3198
- var m = jo(h);
3199
- return u[m] = c, m;
3198
+ var p = jo(h);
3199
+ return u[p] = c, p;
3200
3200
  }
3201
3201
  return String(c);
3202
3202
  });
@@ -3359,14 +3359,14 @@ function ai() {
3359
3359
  zr = 1;
3360
3360
  var e = me, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
3361
3361
  function i(s, u, f) {
3362
- var c, h = {}, m = null, b = null;
3363
- f !== void 0 && (m = "" + f), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (b = u.ref);
3362
+ var c, h = {}, p = null, b = null;
3363
+ f !== void 0 && (p = "" + f), u.key !== void 0 && (p = "" + u.key), u.ref !== void 0 && (b = u.ref);
3364
3364
  for (c in u)
3365
3365
  n.call(u, c) && !o.hasOwnProperty(c) && (h[c] = u[c]);
3366
3366
  if (s && s.defaultProps)
3367
3367
  for (c in u = s.defaultProps, u)
3368
3368
  h[c] === void 0 && (h[c] = u[c]);
3369
- return { $$typeof: t, type: s, key: m, ref: b, props: h, _owner: a.current };
3369
+ return { $$typeof: t, type: s, key: p, ref: b, props: h, _owner: a.current };
3370
3370
  }
3371
3371
  return Ye.Fragment = r, Ye.jsx = i, Ye.jsxs = i, Ye;
3372
3372
  }
@@ -3383,7 +3383,7 @@ var We = {};
3383
3383
  var Gr;
3384
3384
  function oi() {
3385
3385
  return Gr || (Gr = 1, process.env.NODE_ENV !== "production" && function() {
3386
- var e = me, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), M = Symbol.iterator, x = "@@iterator";
3386
+ var e = me, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), M = Symbol.iterator, x = "@@iterator";
3387
3387
  function T(l) {
3388
3388
  if (l === null || typeof l != "object")
3389
3389
  return null;
@@ -3395,10 +3395,10 @@ function oi() {
3395
3395
  {
3396
3396
  for (var g = arguments.length, w = new Array(g > 1 ? g - 1 : 0), O = 1; O < g; O++)
3397
3397
  w[O - 1] = arguments[O];
3398
- p("error", l, w);
3398
+ m("error", l, w);
3399
3399
  }
3400
3400
  }
3401
- function p(l, g, w) {
3401
+ function m(l, g, w) {
3402
3402
  {
3403
3403
  var O = R.ReactDebugCurrentFrame, H = O.getStackAddendum();
3404
3404
  H !== "" && (g += "%s", w = w.concat([H]));
@@ -3411,7 +3411,7 @@ function oi() {
3411
3411
  var P = !1, y = !1, _ = !1, C = !1, re = !1, ne;
3412
3412
  ne = Symbol.for("react.module.reference");
3413
3413
  function be(l) {
3414
- return !!(typeof l == "string" || typeof l == "function" || l === n || l === o || re || l === a || l === f || l === c || C || l === b || P || y || _ || typeof l == "object" && l !== null && (l.$$typeof === m || l.$$typeof === h || l.$$typeof === i || l.$$typeof === s || l.$$typeof === u || l.$$typeof === ne || l.getModuleId !== void 0));
3414
+ return !!(typeof l == "string" || typeof l == "function" || l === n || l === o || re || l === a || l === f || l === c || C || l === b || P || y || _ || typeof l == "object" && l !== null && (l.$$typeof === p || l.$$typeof === h || l.$$typeof === i || l.$$typeof === s || l.$$typeof === u || l.$$typeof === ne || l.getModuleId !== void 0));
3415
3415
  }
3416
3416
  function ce(l, g, w) {
3417
3417
  var O = l.displayName;
@@ -3457,7 +3457,7 @@ function oi() {
3457
3457
  case h:
3458
3458
  var O = l.displayName || null;
3459
3459
  return O !== null ? O : J(l.type) || "Memo";
3460
- case m: {
3460
+ case p: {
3461
3461
  var H = l, z = H._payload, L = H._init;
3462
3462
  try {
3463
3463
  return J(L(z));
@@ -3646,7 +3646,7 @@ function oi() {
3646
3646
  return Xe(l.render);
3647
3647
  case h:
3648
3648
  return Pe(l.type, g, w);
3649
- case m: {
3649
+ case p: {
3650
3650
  var O = l, H = O._payload, z = O._init;
3651
3651
  try {
3652
3652
  return Pe(z(H), g, w);
@@ -4291,9 +4291,9 @@ function Ii(e, t) {
4291
4291
  };
4292
4292
  }
4293
4293
  function lt(e, t, r) {
4294
- var m;
4294
+ var p;
4295
4295
  let n, a;
4296
- Xr(t) ? n = t : (n = (m = t == null ? void 0 : t.observe) != null ? m : !0, a = t == null ? void 0 : t.onChange), st(r) && (a = r), E.useEffect(() => {
4296
+ Xr(t) ? n = t : (n = (p = t == null ? void 0 : t.observe) != null ? p : !0, a = t == null ? void 0 : t.onChange), st(r) && (a = r), E.useEffect(() => {
4297
4297
  Xr(t) && console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe");
4298
4298
  }, [t]), E.useEffect(() => {
4299
4299
  st(r) && console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange");
@@ -4344,8 +4344,8 @@ var Mi = ["input", "select", "textarea", "a[href]", "button", "[tabindex]:not(sl
4344
4344
  } else {
4345
4345
  var c = Je.call(i, Ut);
4346
4346
  c && n.filter(i) && (r || !t.includes(i)) && a.push(i);
4347
- var h = i.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(i), m = !n.shadowRootFilter || n.shadowRootFilter(i);
4348
- if (h && m) {
4347
+ var h = i.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(i), p = !n.shadowRootFilter || n.shadowRootFilter(i);
4348
+ if (h && p) {
4349
4349
  var b = e(h === !0 ? i.children : h.children, !0, n);
4350
4350
  n.flatten ? a.push.apply(a, b) : a.push({
4351
4351
  scope: i,
@@ -4539,54 +4539,54 @@ function Xi(e, t, r = 0, n = 0) {
4539
4539
  function Zi(e, t) {
4540
4540
  const r = Te(e.current);
4541
4541
  function n(d) {
4542
- d.key === "Tab" && t.current && ye(t.current).length === 0 || (d.key === "Tab" && d.shiftKey ? f(d) ? c(d) : h(d) ? m(d) : M(d) && T() : d.key === "Tab" && (o() ? i(d) : s() ? u(d) : b(d) && T()));
4542
+ d.key === "Tab" && t.current && ye(t.current).length === 0 || (d.key === "Tab" && d.shiftKey ? f(d) ? c(d) : h(d) ? p(d) : M(d) && T() : d.key === "Tab" && (o() ? i(d) : s() ? u(d) : b(d) && T()));
4543
4543
  }
4544
4544
  E.useEffect(() => (r.addEventListener("keydown", n), () => {
4545
4545
  r.removeEventListener("keydown", n);
4546
4546
  }), []);
4547
4547
  function a() {
4548
- const d = ye(r), p = d && e.current ? d.indexOf(e.current) : -1, P = d && d[p + 1];
4548
+ const d = ye(r), m = d && e.current ? d.indexOf(e.current) : -1, P = d && d[m + 1];
4549
4549
  return t.current && t.current.contains(P || null) ? !1 : P;
4550
4550
  }
4551
4551
  function o() {
4552
4552
  return e.current ? e.current === r.activeElement : !1;
4553
4553
  }
4554
4554
  function i(d) {
4555
- const p = t.current && ye(t.current);
4556
- p && p[0] && (d.preventDefault(), p[0].focus());
4555
+ const m = t.current && ye(t.current);
4556
+ m && m[0] && (d.preventDefault(), m[0].focus());
4557
4557
  }
4558
4558
  function s() {
4559
4559
  if (t.current ? t.current.contains(r.activeElement || null) : !1) {
4560
- const p = t.current && ye(t.current);
4561
- return Boolean(p && p[p.length - 1] === r.activeElement);
4560
+ const m = t.current && ye(t.current);
4561
+ return Boolean(m && m[m.length - 1] === r.activeElement);
4562
4562
  }
4563
4563
  return !1;
4564
4564
  }
4565
4565
  function u(d) {
4566
- const p = a();
4567
- p && (d.preventDefault(), p.focus());
4566
+ const m = a();
4567
+ m && (d.preventDefault(), m.focus());
4568
4568
  }
4569
4569
  function f(d) {
4570
4570
  if (!d.shiftKey)
4571
4571
  return;
4572
- const p = a();
4573
- return d.target === p;
4572
+ const m = a();
4573
+ return d.target === m;
4574
4574
  }
4575
4575
  function c(d) {
4576
- const p = t.current && ye(t.current), P = p && p[p.length - 1];
4576
+ const m = t.current && ye(t.current), P = m && m[m.length - 1];
4577
4577
  P && (d.preventDefault(), P.focus());
4578
4578
  }
4579
4579
  function h(d) {
4580
- const p = t.current && ye(t.current);
4581
- return p ? p.length === 0 ? !1 : d.target === p[0] : !1;
4580
+ const m = t.current && ye(t.current);
4581
+ return m ? m.length === 0 ? !1 : d.target === m[0] : !1;
4582
4582
  }
4583
- function m(d) {
4584
- var p;
4585
- d.preventDefault(), (p = e.current) == null || p.focus();
4583
+ function p(d) {
4584
+ var m;
4585
+ d.preventDefault(), (m = e.current) == null || m.focus();
4586
4586
  }
4587
4587
  function b(d) {
4588
- const p = t.current ? ye(r).filter((P) => !t.current.contains(P)) : null;
4589
- return p ? d.target === p[p.length - 1] : !1;
4588
+ const m = t.current ? ye(r).filter((P) => !t.current.contains(P)) : null;
4589
+ return m ? d.target === m[m.length - 1] : !1;
4590
4590
  }
4591
4591
  function M(d) {
4592
4592
  return d.target === ye(r)[0];
@@ -4594,13 +4594,13 @@ function Zi(e, t) {
4594
4594
  let x = [];
4595
4595
  function T() {
4596
4596
  const d = t.current && ye(t.current);
4597
- d && (d.forEach((p) => {
4598
- x.push([p, p.tabIndex]), p.tabIndex = -1;
4597
+ d && (d.forEach((m) => {
4598
+ x.push([m, m.tabIndex]), m.tabIndex = -1;
4599
4599
  }), r.addEventListener("focusin", R));
4600
4600
  }
4601
4601
  function R() {
4602
- r.removeEventListener("focusin", R), x.forEach(([d, p]) => {
4603
- d.tabIndex = p;
4602
+ r.removeEventListener("focusin", R), x.forEach(([d, m]) => {
4603
+ d.tabIndex = m;
4604
4604
  });
4605
4605
  }
4606
4606
  }
@@ -4718,15 +4718,15 @@ function $i(e, t) {
4718
4718
  return function(h) {
4719
4719
  if (!["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(h.key))
4720
4720
  return;
4721
- let m = a != null ? a : -1, b = o ? r.filter(o) : r;
4721
+ let p = a != null ? a : -1, b = o ? r.filter(o) : r;
4722
4722
  if (!b.length)
4723
4723
  return;
4724
- let M = b.findIndex((p) => p.index === a);
4724
+ let M = b.findIndex((m) => m.index === a);
4725
4725
  function x() {
4726
- return m === d().index ? u ? R() : b[M] : b[(M + 1) % b.length];
4726
+ return p === d().index ? u ? R() : b[M] : b[(M + 1) % b.length];
4727
4727
  }
4728
4728
  function T() {
4729
- return m === R().index ? u ? d() : b[M] : b[(M - 1 + b.length) % b.length];
4729
+ return p === R().index ? u ? d() : b[M] : b[(M - 1 + b.length) % b.length];
4730
4730
  }
4731
4731
  function R() {
4732
4732
  return b[0];
@@ -4765,8 +4765,8 @@ function $i(e, t) {
4765
4765
  break;
4766
4766
  case "PageUp":
4767
4767
  h.preventDefault();
4768
- let p = (h.ctrlKey ? T : R)();
4769
- n(i === "option" ? p : p[i]);
4768
+ let m = (h.ctrlKey ? T : R)();
4769
+ n(i === "option" ? m : m[i]);
4770
4770
  break;
4771
4771
  case "Home":
4772
4772
  h.preventDefault();
@@ -4821,7 +4821,7 @@ var Wn = "CLEAR_SELECTION_INDEX", ir = "CLICK_MENU_ITEM", qe = "CLOSE_MENU", rs
4821
4821
  let r = E.useRef(null), n = E.useRef(null), a = E.useRef(null), [o, i] = qi(), s = Zn(e), u = e || ze("menu", s), f = ze("menu-button", u), [c, h] = E.useReducer(fs, {
4822
4822
  ...as,
4823
4823
  triggerId: f
4824
- }), m = E.useRef(!1), b = E.useRef([]), M = E.useRef(!1), x = E.useRef({
4824
+ }), p = E.useRef(!1), b = E.useRef([]), M = E.useRef(!1), x = E.useRef({
4825
4825
  x: 0,
4826
4826
  y: 0
4827
4827
  });
@@ -4842,7 +4842,7 @@ var Wn = "CLEAR_SELECTION_INDEX", ir = "CLICK_MENU_ITEM", qe = "CLOSE_MENU", rs
4842
4842
  readyToSelect: M,
4843
4843
  selectCallbacks: b,
4844
4844
  state: c,
4845
- triggerClickedRef: m,
4845
+ triggerClickedRef: p,
4846
4846
  triggerRef: r,
4847
4847
  children: st(t) ? t({
4848
4848
  isExpanded: c.isExpanded,
@@ -4869,7 +4869,7 @@ function Qn({
4869
4869
  triggerId: c,
4870
4870
  isExpanded: h
4871
4871
  }
4872
- } = Ke("useDropdownTrigger"), m = Ce(f, n), b = ra(), M = E.useMemo(() => b.findIndex((R) => !R.disabled), [b]);
4872
+ } = Ke("useDropdownTrigger"), p = Ce(f, n), b = ra(), M = E.useMemo(() => b.findIndex((R) => !R.disabled), [b]);
4873
4873
  E.useEffect(() => {
4874
4874
  r != null && r !== c && o({
4875
4875
  type: Vt,
@@ -4920,7 +4920,7 @@ function Qn({
4920
4920
  },
4921
4921
  props: {
4922
4922
  ...a,
4923
- ref: m,
4923
+ ref: p,
4924
4924
  id: c || void 0,
4925
4925
  onKeyDown: V(e, x),
4926
4926
  onMouseDown: V(t, T),
@@ -4957,7 +4957,7 @@ function Kn({
4957
4957
  onSelect: f,
4958
4958
  disabled: c,
4959
4959
  onFocus: h,
4960
- valueText: m,
4960
+ valueText: p,
4961
4961
  ref: b,
4962
4962
  ...M
4963
4963
  }) {
@@ -4966,21 +4966,21 @@ function Kn({
4966
4966
  dropdownRef: T,
4967
4967
  mouseDownStartPosRef: R,
4968
4968
  readyToSelect: d,
4969
- selectCallbacks: p,
4969
+ selectCallbacks: m,
4970
4970
  triggerRef: P,
4971
4971
  state: {
4972
4972
  selectionIndex: y,
4973
4973
  isExpanded: _
4974
4974
  }
4975
- } = Ke("useDropdownItem"), C = E.useRef(null), [re, ne] = E.useState(m || ""), be = E.useCallback((B) => {
4976
- !m && (B == null ? void 0 : B.textContent) && ne(B.textContent);
4977
- }, [m]), ce = E.useRef(!1), [ve, J] = wi(C, null), ae = E.useMemo(() => ({
4975
+ } = Ke("useDropdownItem"), C = E.useRef(null), [re, ne] = E.useState(p || ""), be = E.useCallback((B) => {
4976
+ !p && (B == null ? void 0 : B.textContent) && ne(B.textContent);
4977
+ }, [p]), ce = E.useRef(!1), [ve, J] = wi(C, null), ae = E.useMemo(() => ({
4978
4978
  element: ve,
4979
4979
  key: re,
4980
4980
  disabled: c,
4981
4981
  isLink: t
4982
4982
  }), [c, ve, t, re]), Y = Ji(ae, mt, e), X = Y === y && !c, oe = Ce(b, J, be);
4983
- p.current[Y] = f;
4983
+ m.current[Y] = f;
4984
4984
  function $() {
4985
4985
  ut(P.current), f && f(), x({
4986
4986
  type: ir
@@ -5112,24 +5112,24 @@ function $n({
5112
5112
  isExpanded: f,
5113
5113
  triggerId: c,
5114
5114
  selectionIndex: h,
5115
- typeaheadQuery: m
5115
+ typeaheadQuery: p
5116
5116
  }
5117
5117
  } = Ke("useDropdownItems"), b = ra(), M = Ce(i, r);
5118
5118
  E.useEffect(() => {
5119
- let p = us(b, m);
5120
- m && p != null && a({
5119
+ let m = us(b, p);
5120
+ p && m != null && a({
5121
5121
  type: xe,
5122
5122
  payload: {
5123
- index: p,
5123
+ index: m,
5124
5124
  dropdownRef: i
5125
5125
  }
5126
5126
  });
5127
- let P = window.setTimeout(() => m && a({
5127
+ let P = window.setTimeout(() => p && a({
5128
5128
  type: jt,
5129
5129
  payload: ""
5130
5130
  }), 1e3);
5131
5131
  return () => window.clearTimeout(P);
5132
- }, [a, b, m, i]);
5132
+ }, [a, b, p, i]);
5133
5133
  let x = Mt(b.length), T = Mt(b[h]), R = Mt(h);
5134
5134
  E.useEffect(() => {
5135
5135
  h > b.length - 1 ? a({
@@ -5141,7 +5141,7 @@ function $n({
5141
5141
  }) : x !== b.length && h > -1 && T && R === h && b[h] !== T && a({
5142
5142
  type: xe,
5143
5143
  payload: {
5144
- index: b.findIndex((p) => p.key === (T == null ? void 0 : T.key)),
5144
+ index: b.findIndex((m) => m.key === (T == null ? void 0 : T.key)),
5145
5145
  dropdownRef: i
5146
5146
  }
5147
5147
  });
@@ -5169,7 +5169,7 @@ function $n({
5169
5169
  break;
5170
5170
  default:
5171
5171
  if (gi(y) && y.length === 1) {
5172
- let C = m + y.toLowerCase();
5172
+ let C = p + y.toLowerCase();
5173
5173
  a({
5174
5174
  type: jt,
5175
5175
  payload: C
@@ -5181,12 +5181,12 @@ function $n({
5181
5181
  currentIndex: h,
5182
5182
  orientation: "vertical",
5183
5183
  rotate: !1,
5184
- filter: (p) => !p.disabled,
5185
- callback: (p) => {
5184
+ filter: (m) => !m.disabled,
5185
+ callback: (m) => {
5186
5186
  a({
5187
5187
  type: xe,
5188
5188
  payload: {
5189
- index: p,
5189
+ index: m,
5190
5190
  dropdownRef: i
5191
5191
  }
5192
5192
  });
@@ -5243,14 +5243,14 @@ function ea({
5243
5243
  return E.useEffect(() => {
5244
5244
  if (!c)
5245
5245
  return;
5246
- let m = Te(f.current);
5246
+ let p = Te(f.current);
5247
5247
  function b(M) {
5248
5248
  i.current ? i.current = !1 : cs(f.current, M.target) || s({
5249
5249
  type: qe
5250
5250
  });
5251
5251
  }
5252
- return m.addEventListener("mousedown", b), () => {
5253
- m.removeEventListener("mousedown", b);
5252
+ return p.addEventListener("mousedown", b), () => {
5253
+ p.removeEventListener("mousedown", b);
5254
5254
  };
5255
5255
  }, [i, o, s, u, f, c]), {
5256
5256
  data: {
@@ -5262,8 +5262,8 @@ function ea({
5262
5262
  props: {
5263
5263
  ref: h,
5264
5264
  hidden: !c,
5265
- onBlur: V(e, (m) => {
5266
- m.currentTarget.contains(m.relatedTarget) || s({
5265
+ onBlur: V(e, (p) => {
5266
+ p.currentTarget.contains(p.relatedTarget) || s({
5267
5267
  type: qe
5268
5268
  });
5269
5269
  }),
@@ -5766,11 +5766,11 @@ function la({
5766
5766
  onFocus: f,
5767
5767
  onBlur: c,
5768
5768
  onKeyDown: h,
5769
- disabled: m,
5769
+ disabled: p,
5770
5770
  ref: b,
5771
5771
  DEBUG_STYLE: M
5772
5772
  } = {}) {
5773
- let x = String(Zn(e)), [T, R] = E.useState(M ? !0 : Kr(x, !0)), d = E.useRef(null), p = Ce(b, d), P = lt(d, {
5773
+ let x = String(Zn(e)), [T, R] = E.useState(M ? !0 : Kr(x, !0)), d = E.useRef(null), m = Ce(b, d), P = lt(d, {
5774
5774
  observe: T
5775
5775
  });
5776
5776
  E.useEffect(() => ps(() => {
@@ -5784,7 +5784,7 @@ function la({
5784
5784
  }
5785
5785
  return X.addEventListener("keydown", oe), () => X.removeEventListener("keydown", oe);
5786
5786
  }, []), Rs({
5787
- disabled: m,
5787
+ disabled: p,
5788
5788
  isVisible: T,
5789
5789
  ref: d
5790
5790
  });
@@ -5838,7 +5838,7 @@ function la({
5838
5838
  "aria-describedby": T ? ze("tooltip", x) : void 0,
5839
5839
  "data-state": T ? "tooltip-visible" : "tooltip-hidden",
5840
5840
  "data-reach-tooltip-trigger": "",
5841
- ref: p,
5841
+ ref: m,
5842
5842
  onPointerEnter: V(t, _(C)),
5843
5843
  onPointerMove: V(r, _(re)),
5844
5844
  onPointerLeave: V(n, _(ne)),
@@ -5927,22 +5927,22 @@ var ua = E.forwardRef(function({
5927
5927
  triggerRect: f,
5928
5928
  ...c
5929
5929
  }, h) {
5930
- let m = (r || t) != null, b = E.useRef(null), M = Ce(h, b), x = lt(b, {
5930
+ let p = (r || t) != null, b = E.useRef(null), M = Ce(h, b), x = lt(b, {
5931
5931
  observe: o
5932
5932
  });
5933
5933
  return /* @__PURE__ */ U(dt, {
5934
5934
  children: [/* @__PURE__ */ v(n, {
5935
- role: m ? void 0 : "tooltip",
5935
+ role: p ? void 0 : "tooltip",
5936
5936
  ...c,
5937
5937
  ref: M,
5938
5938
  "data-reach-tooltip": "",
5939
- id: m ? void 0 : a,
5939
+ id: p ? void 0 : a,
5940
5940
  style: {
5941
5941
  ...u,
5942
5942
  ...xs(s, f, x)
5943
5943
  },
5944
5944
  children: i
5945
- }), m && /* @__PURE__ */ v(sa, {
5945
+ }), p && /* @__PURE__ */ v(sa, {
5946
5946
  role: "tooltip",
5947
5947
  id: a,
5948
5948
  children: r || t
@@ -6249,30 +6249,30 @@ function _s({
6249
6249
  username: f,
6250
6250
  version: c,
6251
6251
  logout: h,
6252
- refreshToken: m,
6252
+ refreshToken: p,
6253
6253
  loginUrl: b,
6254
6254
  withMaxWith: M = !1,
6255
6255
  className: x,
6256
6256
  showUpgrade: T,
6257
6257
  ...R
6258
6258
  }) {
6259
- const d = Ge(), p = t == null ? void 0 : t[e], P = "x4b-settings", y = t == null ? void 0 : t[P], _ = "support@xcomponent.com", C = p && {
6260
- applicationName: p == null ? void 0 : p.name,
6259
+ const d = Ge(), m = t == null ? void 0 : t[e], P = "x4b-settings", y = t == null ? void 0 : t[P], _ = "support@xcomponent.com", C = m && {
6260
+ applicationName: m == null ? void 0 : m.name,
6261
6261
  username: f,
6262
6262
  version: c,
6263
- url: p == null ? void 0 : p.url
6263
+ url: m == null ? void 0 : m.url
6264
6264
  }, re = () => {
6265
6265
  const ne = !pi();
6266
6266
  vi(ne), o && o(ne);
6267
6267
  };
6268
- return p ? /* @__PURE__ */ v("header", {
6268
+ return m ? /* @__PURE__ */ v("header", {
6269
6269
  ...R,
6270
6270
  "aria-label": "Global",
6271
- className: it(x, "tw-box-border tw-bg-white ", m && "tw-shadow-[0_0_10px_0_rgba(72,40,83,0.1)]"),
6271
+ className: it(x, "tw-box-border tw-bg-white ", p && "tw-shadow-[0_0_10px_0_rgba(72,40,83,0.1)]"),
6272
6272
  children: /* @__PURE__ */ U("nav", {
6273
6273
  "aria-label": "top",
6274
- className: it(m ? "tw-gap-0 sm:tw-gap-1 lg:tw-gap-2" : "tw-gap-0 sm:tw-gap-1", M && "tw-mx-auto tw-max-w-7xl", "tw-text-primary-600 tw-isolate tw-m-0 tw-box-border tw-flex tw-w-full tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-py-2 tw-px-4 tw-font-sans tw-antialiased lg:tw-px-5 xl:tw-px-3 "),
6275
- children: [m && o && /* @__PURE__ */ U(te, {
6274
+ className: it(p ? "tw-gap-0 sm:tw-gap-1 lg:tw-gap-2" : "tw-gap-0 sm:tw-gap-1", M && "tw-mx-auto tw-max-w-7xl", "tw-text-primary-600 tw-isolate tw-m-0 tw-box-border tw-flex tw-w-full tw-flex-row tw-flex-wrap tw-items-center tw-justify-start tw-py-2 tw-px-4 tw-font-sans tw-antialiased lg:tw-px-5 xl:tw-px-3 "),
6275
+ children: [p && o && /* @__PURE__ */ U(te, {
6276
6276
  variant: "ghost",
6277
6277
  colorScheme: "primary",
6278
6278
  compact: !0,
@@ -6307,14 +6307,14 @@ function _s({
6307
6307
  width: "34",
6308
6308
  height: "34",
6309
6309
  "aria-hidden": !0,
6310
- src: `data:image/svg+xml;base64,${p.logo}`,
6310
+ src: `data:image/svg+xml;base64,${m.logo}`,
6311
6311
  className: "tw-my-0 tw-block"
6312
6312
  }), /* @__PURE__ */ v(Qr, {
6313
6313
  className: "tw-hidden md:tw-block",
6314
- children: p.name
6314
+ children: m.label || m.name
6315
6315
  }), /* @__PURE__ */ v(Qr, {
6316
6316
  className: "tw-block md:tw-hidden",
6317
- children: p.shortname || p.name
6317
+ children: m.shortname || m.name
6318
6318
  }), a !== void 0 && /* @__PURE__ */ v(te, {
6319
6319
  as: "a",
6320
6320
  variant: "ghost",
@@ -6351,16 +6351,16 @@ function _s({
6351
6351
  id: "upgradeBtn"
6352
6352
  })]
6353
6353
  })
6354
- }), r !== void 0 && m && /* @__PURE__ */ v(As, {
6354
+ }), r !== void 0 && p && /* @__PURE__ */ v(As, {
6355
6355
  count: r,
6356
6356
  onClick: n
6357
- }), y && e !== P && m && /* @__PURE__ */ U(te, {
6357
+ }), y && e !== P && p && /* @__PURE__ */ U(te, {
6358
6358
  as: "a",
6359
6359
  variant: "ghost",
6360
6360
  colorScheme: "primary",
6361
6361
  compact: !0,
6362
6362
  rounded: !0,
6363
- href: `${y.url}${m ? `#refreshToken=${m}` : ""}`,
6363
+ href: `${y.url}${p ? `#refreshToken=${p}` : ""}`,
6364
6364
  children: [/* @__PURE__ */ v("p", {
6365
6365
  className: "tw-sr-only",
6366
6366
  children: d.formatMessage({
@@ -6450,10 +6450,10 @@ function _s({
6450
6450
  fill: "#ECB22E"
6451
6451
  })]
6452
6452
  })
6453
- }), m && e === P && t && /* @__PURE__ */ v(hs, {
6453
+ }), p && e === P && t && /* @__PURE__ */ v(hs, {
6454
6454
  applicationDescriptions: t,
6455
- refreshToken: m
6456
- }), m && f && c && h && /* @__PURE__ */ v(Ls, {
6455
+ refreshToken: p
6456
+ }), p && f && c && h && /* @__PURE__ */ v(Ls, {
6457
6457
  username: f,
6458
6458
  version: c,
6459
6459
  onLogout: h
@@ -6461,7 +6461,7 @@ function _s({
6461
6461
  language: i || "en",
6462
6462
  languages: s || ["en"],
6463
6463
  onLanguageSelected: u
6464
- }), !m && /* @__PURE__ */ U(dt, {
6464
+ }), !p && /* @__PURE__ */ U(dt, {
6465
6465
  children: [/* @__PURE__ */ v(te, {
6466
6466
  className: "tw-ml-2 tw-mr-0 md:tw-ml-3 lg:tw-mr-3",
6467
6467
  size: "lg",