@ahmed_hani/dot-auto-capture-ui 7.6.1 → 8.0.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.
Files changed (39) hide show
  1. package/document.mjs +865 -874
  2. package/document.umd.js +27 -27
  3. package/face.mjs +1252 -1323
  4. package/face.umd.js +27 -27
  5. package/magnifeye-liveness.mjs +766 -789
  6. package/magnifeye-liveness.umd.js +45 -45
  7. package/multi-range-liveness.mjs +841 -856
  8. package/multi-range-liveness.umd.js +24 -24
  9. package/package.json +7 -4
  10. package/palm.mjs +873 -891
  11. package/palm.umd.js +27 -27
  12. package/smile-liveness.mjs +1143 -1187
  13. package/smile-liveness.umd.js +37 -37
  14. package/ui/src/types/common.d.ts +3 -19
  15. package/ui/src/types/configuration.d.ts +60 -0
  16. package/ui/src/types/document.d.ts +8 -7
  17. package/ui/src/types/eye-gaze.d.ts +9 -8
  18. package/ui/src/types/face.d.ts +8 -20
  19. package/ui/src/types/magnifeye.d.ts +7 -7
  20. package/ui/src/types/multi-range.d.ts +8 -8
  21. package/ui/src/types/palm.d.ts +8 -7
  22. package/ui/src/types/smile.d.ts +8 -15
  23. package/ui-common/src/types/common.d.ts +21 -35
  24. package/ui-common/src/types/document.d.ts +1 -9
  25. package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
  26. package/ui-common/src/types/events/common.d.ts +0 -13
  27. package/ui-common/src/types/events/document.d.ts +3 -7
  28. package/ui-common/src/types/events/face.d.ts +9 -2
  29. package/ui-common/src/types/events/index.d.ts +1 -0
  30. package/ui-common/src/types/events/palm.d.ts +3 -2
  31. package/ui-common/src/types/events/smile.d.ts +10 -5
  32. package/ui-common/src/types/eye-gaze.d.ts +6 -6
  33. package/ui-common/src/types/face.d.ts +1 -20
  34. package/ui-common/src/types/magnifeye.d.ts +6 -6
  35. package/ui-common/src/types/modality/detection/document.d.ts +9 -0
  36. package/ui-common/src/types/modality/detection/face.d.ts +20 -0
  37. package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
  38. package/ui-common/src/types/palm.d.ts +1 -20
  39. package/ui-common/src/types/smile.d.ts +23 -16
package/palm.mjs CHANGED
@@ -1,25 +1,22 @@
1
- var So = Object.defineProperty;
2
- var Eo = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var et = (e, t, n) => Eo(e, typeof t != "symbol" ? t + "" : t, n);
4
- var Ze, w, hr, ue, $n, pr, mr, gr, an, Ht, Ut, yr, Ge = {}, vr = [], $o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
1
+ var Ze, w, ur, ue, wn, fr, dr, pr, tn, Mt, Dt, _r, Ge = {}, hr = [], vo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ye = Array.isArray;
5
2
  function q(e, t) {
6
3
  for (var n in t) e[n] = t[n];
7
4
  return e;
8
5
  }
9
- function sn(e) {
6
+ function nn(e) {
10
7
  e && e.parentNode && e.parentNode.removeChild(e);
11
8
  }
12
9
  function L(e, t, n) {
13
10
  var r, o, i, a = {};
14
11
  for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
15
12
  if (arguments.length > 2 && (a.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) a[i] == null && (a[i] = e.defaultProps[i]);
16
- return Fe(e, a, r, o, null);
13
+ return Ue(e, a, r, o, null);
17
14
  }
18
- function Fe(e, t, n, r, o) {
19
- var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++hr, __i: -1, __u: 0 };
15
+ function Ue(e, t, n, r, o) {
16
+ var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++ur, __i: -1, __u: 0 };
20
17
  return o == null && w.vnode != null && w.vnode(i), i;
21
18
  }
22
- function ko() {
19
+ function Co() {
23
20
  return { current: null };
24
21
  }
25
22
  function Z(e) {
@@ -33,38 +30,38 @@ function Ee(e, t) {
33
30
  for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
34
31
  return typeof e.type == "function" ? Ee(e) : null;
35
32
  }
36
- function Cr(e) {
33
+ function mr(e) {
37
34
  var t, n;
38
35
  if ((e = e.__) != null && e.__c != null) {
39
36
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
40
37
  e.__e = e.__c.base = n.__e;
41
38
  break;
42
39
  }
43
- return Cr(e);
40
+ return mr(e);
44
41
  }
45
42
  }
46
- function zt(e) {
47
- (!e.__d && (e.__d = !0) && ue.push(e) && !_t.__r++ || $n != w.debounceRendering) && (($n = w.debounceRendering) || pr)(_t);
43
+ function Ht(e) {
44
+ (!e.__d && (e.__d = !0) && ue.push(e) && !dt.__r++ || wn != w.debounceRendering) && ((wn = w.debounceRendering) || fr)(dt);
48
45
  }
49
- function _t() {
50
- for (var e, t, n, r, o, i, a, s = 1; ue.length; ) ue.length > s && ue.sort(mr), e = ue.shift(), s = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, w.vnode && w.vnode(n), cn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Ee(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, Sr(i, n, a), n.__e != o && Cr(n)));
51
- _t.__r = 0;
46
+ function dt() {
47
+ for (var e, t, n, r, o, i, a, s = 1; ue.length; ) ue.length > s && ue.sort(dr), e = ue.shift(), s = ue.length, e.__d && (n = void 0, o = (r = (t = e).__v).__e, i = [], a = [], t.__P && ((n = q({}, r)).__v = r.__v + 1, w.vnode && w.vnode(n), rn(t.__P, n, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [o] : null, i, o ?? Ee(r), !!(32 & r.__u), a), n.__v = r.__v, n.__.__k[n.__i] = n, vr(i, n, a), n.__e != o && mr(n)));
48
+ dt.__r = 0;
52
49
  }
53
- function wr(e, t, n, r, o, i, a, s, l, u, _) {
54
- var c, h, f, p, y, v, m = r && r.__k || vr, g = t.length;
55
- for (l = No(n, t, m, l, g), c = 0; c < g; c++) (f = n.__k[c]) != null && (h = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = c, v = cn(e, f, h, o, i, a, s, l, u, _), p = f.__e, f.ref && h.ref != f.ref && (h.ref && ln(h.ref, null, f), _.push(f.ref, f.__c || p, f)), y == null && p != null && (y = p), 4 & f.__u || h.__k === f.__k ? l = br(f, l, e) : typeof f.type == "function" && v !== void 0 ? l = v : p && (l = p.nextSibling), f.__u &= -7);
56
- return n.__e = y, l;
50
+ function yr(e, t, n, r, o, i, a, s, l, u, d) {
51
+ var c, _, f, h, g, v, m = r && r.__k || hr, y = t.length;
52
+ for (l = wo(n, t, m, l, y), c = 0; c < y; c++) (f = n.__k[c]) != null && (_ = f.__i == -1 ? Ge : m[f.__i] || Ge, f.__i = c, v = rn(e, f, _, o, i, a, s, l, u, d), h = f.__e, f.ref && _.ref != f.ref && (_.ref && on(_.ref, null, f), d.push(f.ref, f.__c || h, f)), g == null && h != null && (g = h), 4 & f.__u || _.__k === f.__k ? l = gr(f, l, e) : typeof f.type == "function" && v !== void 0 ? l = v : h && (l = h.nextSibling), f.__u &= -7);
53
+ return n.__e = g, l;
57
54
  }
58
- function No(e, t, n, r, o) {
59
- var i, a, s, l, u, _ = n.length, c = _, h = 0;
60
- for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (l = i + h, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Fe(null, a, null, null, null) : Ye(a) ? Fe(Z, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Fe(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = xo(a, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (o > _ ? h-- : o < _ && h++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? h-- : u == l + 1 ? h++ : (u > l ? h-- : h++, a.__u |= 4))) : e.__k[i] = null;
61
- if (c) for (i = 0; i < _; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = Ee(s)), $r(s, s));
55
+ function wo(e, t, n, r, o) {
56
+ var i, a, s, l, u, d = n.length, c = d, _ = 0;
57
+ for (e.__k = new Array(o), i = 0; i < o; i++) (a = t[i]) != null && typeof a != "boolean" && typeof a != "function" ? (l = i + _, (a = e.__k[i] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? Ue(null, a, null, null, null) : Ye(a) ? Ue(Z, { children: a }, null, null, null) : a.constructor == null && a.__b > 0 ? Ue(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = bo(a, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (o > d ? _-- : o < d && _++), typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? _-- : u == l + 1 ? _++ : (u > l ? _-- : _++, a.__u |= 4))) : e.__k[i] = null;
58
+ if (c) for (i = 0; i < d; i++) (s = n[i]) != null && (2 & s.__u) == 0 && (s.__e == r && (r = Ee(s)), wr(s, s));
62
59
  return r;
63
60
  }
64
- function br(e, t, n) {
61
+ function gr(e, t, n) {
65
62
  var r, o;
66
63
  if (typeof e.type == "function") {
67
- for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = br(r[o], t, n));
64
+ for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = gr(r[o], t, n));
68
65
  return t;
69
66
  }
70
67
  e.__e != t && (t && e.type && !n.contains(t) && (t = Ee(e)), n.insertBefore(e.__e, t || null), t = e.__e);
@@ -78,7 +75,7 @@ function ee(e, t) {
78
75
  ee(n, t);
79
76
  }) : t.push(e)), t;
80
77
  }
81
- function xo(e, t, n, r) {
78
+ function bo(e, t, n, r) {
82
79
  var o, i, a = e.key, s = e.type, l = t[n];
83
80
  if (l === null && e.key == null || l && a == l.key && s == l.type && (2 & l.__u) == 0) return n;
84
81
  if (r > (l != null && (2 & l.__u) == 0 ? 1 : 0)) for (o = n - 1, i = n + 1; o >= 0 || i < t.length; ) {
@@ -93,17 +90,17 @@ function xo(e, t, n, r) {
93
90
  }
94
91
  return -1;
95
92
  }
96
- function kn(e, t, n) {
97
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || $o.test(t) ? n : n + "px";
93
+ function bn(e, t, n) {
94
+ t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || vo.test(t) ? n : n + "px";
98
95
  }
99
- function tt(e, t, n, r, o) {
96
+ function et(e, t, n, r, o) {
100
97
  var i;
101
98
  e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
102
99
  else {
103
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || kn(e.style, t, "");
104
- if (n) for (t in n) r && n[t] == r[t] || kn(e.style, t, n[t]);
100
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || bn(e.style, t, "");
101
+ if (n) for (t in n) r && n[t] == r[t] || bn(e.style, t, n[t]);
105
102
  }
106
- else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(gr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = an, e.addEventListener(t, i ? Ut : Ht, i)) : e.removeEventListener(t, i ? Ut : Ht, i);
103
+ else if (t[0] == "o" && t[1] == "n") i = t != (t = t.replace(pr, "$1")), t = t.toLowerCase() in e || t == "onFocusOut" || t == "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = tn, e.addEventListener(t, i ? Dt : Mt, i)) : e.removeEventListener(t, i ? Dt : Mt, i);
107
104
  else {
108
105
  if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
109
106
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -114,54 +111,54 @@ function tt(e, t, n, r, o) {
114
111
  typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
115
112
  }
116
113
  }
117
- function Nn(e) {
114
+ function Sn(e) {
118
115
  return function(t) {
119
116
  if (this.l) {
120
117
  var n = this.l[t.type + e];
121
- if (t.t == null) t.t = an++;
118
+ if (t.t == null) t.t = tn++;
122
119
  else if (t.t < n.u) return;
123
120
  return n(w.event ? w.event(t) : t);
124
121
  }
125
122
  };
126
123
  }
127
- function cn(e, t, n, r, o, i, a, s, l, u) {
128
- var _, c, h, f, p, y, v, m, g, k, E, x, S, C, M, H, Re, U = t.type;
124
+ function rn(e, t, n, r, o, i, a, s, l, u) {
125
+ var d, c, _, f, h, g, v, m, y, k, E, x, S, C, M, H, Pe, B = t.type;
129
126
  if (t.constructor != null) return null;
130
- 128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (_ = w.__b) && _(t);
131
- e: if (typeof U == "function") try {
132
- if (m = t.props, g = "prototype" in U && U.prototype.render, k = (_ = U.contextType) && r[_.__c], E = _ ? k ? k.props.value : _.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (g ? t.__c = c = new U(m, E) : (t.__c = c = new G(m, E), c.constructor = U, c.render = Oo), k && k.sub(c), c.props = m, c.state || (c.state = {}), c.context = E, c.__n = r, h = c.__d = !0, c.__h = [], c._sb = []), g && c.__s == null && (c.__s = c.state), g && U.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, U.getDerivedStateFromProps(m, c.__s))), f = c.props, p = c.state, c.__v = t, h) g && U.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), g && c.componentDidMount != null && c.__h.push(c.componentDidMount);
127
+ 128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (d = w.__b) && d(t);
128
+ e: if (typeof B == "function") try {
129
+ if (m = t.props, y = "prototype" in B && B.prototype.render, k = (d = B.contextType) && r[d.__c], E = d ? k ? k.props.value : d.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (y ? t.__c = c = new B(m, E) : (t.__c = c = new G(m, E), c.constructor = B, c.render = Eo), k && k.sub(c), c.props = m, c.state || (c.state = {}), c.context = E, c.__n = r, _ = c.__d = !0, c.__h = [], c._sb = []), y && c.__s == null && (c.__s = c.state), y && B.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = q({}, c.__s)), q(c.__s, B.getDerivedStateFromProps(m, c.__s))), f = c.props, h = c.state, c.__v = t, _) y && B.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), y && c.componentDidMount != null && c.__h.push(c.componentDidMount);
133
130
  else {
134
- if (g && U.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, E), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, E) === !1 || t.__v == n.__v) {
131
+ if (y && B.getDerivedStateFromProps == null && m !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(m, E), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(m, c.__s, E) === !1 || t.__v == n.__v) {
135
132
  for (t.__v != n.__v && (c.props = m, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(ce) {
136
133
  ce && (ce.__ = t);
137
134
  }), x = 0; x < c._sb.length; x++) c.__h.push(c._sb[x]);
138
135
  c._sb = [], c.__h.length && a.push(c);
139
136
  break e;
140
137
  }
141
- c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, E), g && c.componentDidUpdate != null && c.__h.push(function() {
142
- c.componentDidUpdate(f, p, y);
138
+ c.componentWillUpdate != null && c.componentWillUpdate(m, c.__s, E), y && c.componentDidUpdate != null && c.__h.push(function() {
139
+ c.componentDidUpdate(f, h, g);
143
140
  });
144
141
  }
145
- if (c.context = E, c.props = m, c.__P = e, c.__e = !1, S = w.__r, C = 0, g) {
146
- for (c.state = c.__s, c.__d = !1, S && S(t), _ = c.render(c.props, c.state, c.context), M = 0; M < c._sb.length; M++) c.__h.push(c._sb[M]);
142
+ if (c.context = E, c.props = m, c.__P = e, c.__e = !1, S = w.__r, C = 0, y) {
143
+ for (c.state = c.__s, c.__d = !1, S && S(t), d = c.render(c.props, c.state, c.context), M = 0; M < c._sb.length; M++) c.__h.push(c._sb[M]);
147
144
  c._sb = [];
148
145
  } else do
149
- c.__d = !1, S && S(t), _ = c.render(c.props, c.state, c.context), c.state = c.__s;
146
+ c.__d = !1, S && S(t), d = c.render(c.props, c.state, c.context), c.state = c.__s;
150
147
  while (c.__d && ++C < 25);
151
- c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), g && !h && c.getSnapshotBeforeUpdate != null && (y = c.getSnapshotBeforeUpdate(f, p)), H = _, _ != null && _.type === Z && _.key == null && (H = Er(_.props.children)), s = wr(e, Ye(H) ? H : [H], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), v && (c.__E = c.__ = null);
148
+ c.state = c.__s, c.getChildContext != null && (r = q(q({}, r), c.getChildContext())), y && !_ && c.getSnapshotBeforeUpdate != null && (g = c.getSnapshotBeforeUpdate(f, h)), H = d, d != null && d.type === Z && d.key == null && (H = Cr(d.props.children)), s = yr(e, Ye(H) ? H : [H], t, n, r, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), v && (c.__E = c.__ = null);
152
149
  } catch (ce) {
153
150
  if (t.__v = null, l || i != null) if (ce.then) {
154
151
  for (t.__u |= l ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
155
152
  i[i.indexOf(s)] = null, t.__e = s;
156
- } else for (Re = i.length; Re--; ) sn(i[Re]);
153
+ } else for (Pe = i.length; Pe--; ) nn(i[Pe]);
157
154
  else t.__e = n.__e, t.__k = n.__k;
158
155
  w.__e(ce, t, n);
159
156
  }
160
- else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = To(n.__e, t, n, r, o, i, a, l, u);
161
- return (_ = w.diffed) && _(t), 128 & t.__u ? void 0 : s;
157
+ else i == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : s = t.__e = So(n.__e, t, n, r, o, i, a, l, u);
158
+ return (d = w.diffed) && d(t), 128 & t.__u ? void 0 : s;
162
159
  }
163
- function Sr(e, t, n) {
164
- for (var r = 0; r < n.length; r++) ln(n[r], n[++r], n[++r]);
160
+ function vr(e, t, n) {
161
+ for (var r = 0; r < n.length; r++) on(n[r], n[++r], n[++r]);
165
162
  w.__c && w.__c(t, e), e.some(function(o) {
166
163
  try {
167
164
  e = o.__h, o.__h = [], e.some(function(i) {
@@ -172,39 +169,39 @@ function Sr(e, t, n) {
172
169
  }
173
170
  });
174
171
  }
175
- function Er(e) {
176
- return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(Er) : q({}, e);
172
+ function Cr(e) {
173
+ return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ye(e) ? e.map(Cr) : q({}, e);
177
174
  }
178
- function To(e, t, n, r, o, i, a, s, l) {
179
- var u, _, c, h, f, p, y, v = n.props, m = t.props, g = t.type;
180
- if (g == "svg" ? o = "http://www.w3.org/2000/svg" : g == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
181
- for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!g && (g ? f.localName == g : f.nodeType == 3)) {
175
+ function So(e, t, n, r, o, i, a, s, l) {
176
+ var u, d, c, _, f, h, g, v = n.props, m = t.props, y = t.type;
177
+ if (y == "svg" ? o = "http://www.w3.org/2000/svg" : y == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o || (o = "http://www.w3.org/1999/xhtml"), i != null) {
178
+ for (u = 0; u < i.length; u++) if ((f = i[u]) && "setAttribute" in f == !!y && (y ? f.localName == y : f.nodeType == 3)) {
182
179
  e = f, i[u] = null;
183
180
  break;
184
181
  }
185
182
  }
186
183
  if (e == null) {
187
- if (g == null) return document.createTextNode(m);
188
- e = document.createElementNS(o, g, m.is && m), s && (w.__m && w.__m(t, i), s = !1), i = null;
184
+ if (y == null) return document.createTextNode(m);
185
+ e = document.createElementNS(o, y, m.is && m), s && (w.__m && w.__m(t, i), s = !1), i = null;
189
186
  }
190
- if (g == null) v === m || s && e.data == m || (e.data = m);
187
+ if (y == null) v === m || s && e.data == m || (e.data = m);
191
188
  else {
192
189
  if (i = i && Ze.call(e.childNodes), v = n.props || Ge, !s && i != null) for (v = {}, u = 0; u < e.attributes.length; u++) v[(f = e.attributes[u]).name] = f.value;
193
190
  for (u in v) if (f = v[u], u != "children") {
194
191
  if (u == "dangerouslySetInnerHTML") c = f;
195
192
  else if (!(u in m)) {
196
193
  if (u == "value" && "defaultValue" in m || u == "checked" && "defaultChecked" in m) continue;
197
- tt(e, u, null, f, o);
194
+ et(e, u, null, f, o);
198
195
  }
199
196
  }
200
- for (u in m) f = m[u], u == "children" ? h = f : u == "dangerouslySetInnerHTML" ? _ = f : u == "value" ? p = f : u == "checked" ? y = f : s && typeof f != "function" || v[u] === f || tt(e, u, f, v[u], o);
201
- if (_) s || c && (_.__html == c.__html || _.__html == e.innerHTML) || (e.innerHTML = _.__html), t.__k = [];
202
- else if (c && (e.innerHTML = ""), wr(t.type == "template" ? e.content : e, Ye(h) ? h : [h], t, n, r, g == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Ee(n, 0), s, l), i != null) for (u = i.length; u--; ) sn(i[u]);
203
- s || (u = "value", g == "progress" && p == null ? e.removeAttribute("value") : p != null && (p !== e[u] || g == "progress" && !p || g == "option" && p != v[u]) && tt(e, u, p, v[u], o), u = "checked", y != null && y != e[u] && tt(e, u, y, v[u], o));
197
+ for (u in m) f = m[u], u == "children" ? _ = f : u == "dangerouslySetInnerHTML" ? d = f : u == "value" ? h = f : u == "checked" ? g = f : s && typeof f != "function" || v[u] === f || et(e, u, f, v[u], o);
198
+ if (d) s || c && (d.__html == c.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
199
+ else if (c && (e.innerHTML = ""), yr(t.type == "template" ? e.content : e, Ye(_) ? _ : [_], t, n, r, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, i, a, i ? i[0] : n.__k && Ee(n, 0), s, l), i != null) for (u = i.length; u--; ) nn(i[u]);
200
+ s || (u = "value", y == "progress" && h == null ? e.removeAttribute("value") : h != null && (h !== e[u] || y == "progress" && !h || y == "option" && h != v[u]) && et(e, u, h, v[u], o), u = "checked", g != null && g != e[u] && et(e, u, g, v[u], o));
204
201
  }
205
202
  return e;
206
203
  }
207
- function ln(e, t, n) {
204
+ function on(e, t, n) {
208
205
  try {
209
206
  if (typeof e == "function") {
210
207
  var r = typeof e.__u == "function";
@@ -214,9 +211,9 @@ function ln(e, t, n) {
214
211
  w.__e(o, n);
215
212
  }
216
213
  }
217
- function $r(e, t, n) {
214
+ function wr(e, t, n) {
218
215
  var r, o;
219
- if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || ln(r, null, t)), (r = e.__c) != null) {
216
+ if (w.unmount && w.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || on(r, null, t)), (r = e.__c) != null) {
220
217
  if (r.componentWillUnmount) try {
221
218
  r.componentWillUnmount();
222
219
  } catch (i) {
@@ -224,25 +221,25 @@ function $r(e, t, n) {
224
221
  }
225
222
  r.base = r.__P = null;
226
223
  }
227
- if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && $r(r[o], t, n || typeof e.type != "function");
228
- n || sn(e.__e), e.__c = e.__ = e.__e = void 0;
224
+ if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && wr(r[o], t, n || typeof e.type != "function");
225
+ n || nn(e.__e), e.__c = e.__ = e.__e = void 0;
229
226
  }
230
- function Oo(e, t, n) {
227
+ function Eo(e, t, n) {
231
228
  return this.constructor(e, n);
232
229
  }
233
230
  function ae(e, t, n) {
234
231
  var r, o, i, a;
235
- t == document && (t = document.documentElement), w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], cn(t, e = (!r && n || t).__k = L(Z, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), Sr(i, e, a);
232
+ t == document && (t = document.documentElement), w.__ && w.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], rn(t, e = (!r && n || t).__k = L(Z, null, [e]), o || Ge, Ge, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? Ze.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), vr(i, e, a);
236
233
  }
237
- function un(e, t) {
238
- ae(e, t, un);
234
+ function an(e, t) {
235
+ ae(e, t, an);
239
236
  }
240
- function fn(e, t, n) {
237
+ function sn(e, t, n) {
241
238
  var r, o, i, a, s = q({}, e.props);
242
239
  for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i] == null && a != null ? a[i] : t[i];
243
- return arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), Fe(e.type, s, r || e.key, o || e.ref, null);
240
+ return arguments.length > 2 && (s.children = arguments.length > 3 ? Ze.call(arguments, 2) : n), Ue(e.type, s, r || e.key, o || e.ref, null);
244
241
  }
245
- function kr(e) {
242
+ function br(e) {
246
243
  function t(n) {
247
244
  var r, o;
248
245
  return this.getChildContext || (r = /* @__PURE__ */ new Set(), (o = {})[t.__c] = this, this.getChildContext = function() {
@@ -251,7 +248,7 @@ function kr(e) {
251
248
  r = null;
252
249
  }, this.shouldComponentUpdate = function(i) {
253
250
  this.props.value != i.value && r.forEach(function(a) {
254
- a.__e = !0, zt(a);
251
+ a.__e = !0, Ht(a);
255
252
  });
256
253
  }, this.sub = function(i) {
257
254
  r.add(i);
@@ -261,27 +258,27 @@ function kr(e) {
261
258
  };
262
259
  }), n.children;
263
260
  }
264
- return t.__c = "__cC" + yr++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
261
+ return t.__c = "__cC" + _r++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(n, r) {
265
262
  return n.children(r);
266
263
  }).contextType = t, t;
267
264
  }
268
- Ze = vr.slice, w = { __e: function(e, t, n, r) {
265
+ Ze = hr.slice, w = { __e: function(e, t, n, r) {
269
266
  for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
270
267
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), a = o.__d), a) return o.__E = o;
271
268
  } catch (s) {
272
269
  e = s;
273
270
  }
274
271
  throw e;
275
- } }, hr = 0, G.prototype.setState = function(e, t) {
272
+ } }, ur = 0, G.prototype.setState = function(e, t) {
276
273
  var n;
277
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = q({}, this.state), typeof e == "function" && (e = e(q({}, n), this.props)), e && q(n, e), e != null && this.__v && (t && this._sb.push(t), zt(this));
274
+ n = this.__s != null && this.__s != this.state ? this.__s : this.__s = q({}, this.state), typeof e == "function" && (e = e(q({}, n), this.props)), e && q(n, e), e != null && this.__v && (t && this._sb.push(t), Ht(this));
278
275
  }, G.prototype.forceUpdate = function(e) {
279
- this.__v && (this.__e = !0, e && this.__h.push(e), zt(this));
280
- }, G.prototype.render = Z, ue = [], pr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, mr = function(e, t) {
276
+ this.__v && (this.__e = !0, e && this.__h.push(e), Ht(this));
277
+ }, G.prototype.render = Z, ue = [], fr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, dr = function(e, t) {
281
278
  return e.__v.__b - t.__v.__b;
282
- }, _t.__r = 0, gr = /(PointerCapture)$|Capture$/i, an = 0, Ht = Nn(!1), Ut = Nn(!0), yr = 0;
283
- function dn() {
284
- return (dn = Object.assign ? Object.assign.bind() : function(e) {
279
+ }, dt.__r = 0, pr = /(PointerCapture)$|Capture$/i, tn = 0, Mt = Sn(!1), Dt = Sn(!0), _r = 0;
280
+ function cn() {
281
+ return (cn = Object.assign ? Object.assign.bind() : function(e) {
285
282
  for (var t = 1; t < arguments.length; t++) {
286
283
  var n = arguments[t];
287
284
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
@@ -289,8 +286,8 @@ function dn() {
289
286
  return e;
290
287
  }).apply(this, arguments);
291
288
  }
292
- var Io = ["context", "children"];
293
- function Ao(e) {
289
+ var $o = ["context", "children"];
290
+ function ko(e) {
294
291
  this.getChildContext = function() {
295
292
  return e.context;
296
293
  };
@@ -299,52 +296,52 @@ function Ao(e) {
299
296
  var i, a, s = {}, l = Object.keys(r);
300
297
  for (a = 0; a < l.length; a++) o.indexOf(i = l[a]) >= 0 || (s[i] = r[i]);
301
298
  return s;
302
- }(e, Io);
303
- return fn(t, n);
299
+ }(e, $o);
300
+ return sn(t, n);
304
301
  }
305
- function Ro() {
302
+ function No() {
306
303
  var e = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
307
- this.dispatchEvent(e), this._vdom = L(Ao, dn({}, this._props, { context: e.detail.context }), function t(n, r) {
304
+ this.dispatchEvent(e), this._vdom = L(ko, cn({}, this._props, { context: e.detail.context }), function t(n, r) {
308
305
  if (n.nodeType === 3) return n.data;
309
306
  if (n.nodeType !== 1) return null;
310
307
  var o = [], i = {}, a = 0, s = n.attributes, l = n.childNodes;
311
- for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[Nr(s[a].name)] = s[a].value);
308
+ for (a = s.length; a--; ) s[a].name !== "slot" && (i[s[a].name] = s[a].value, i[Sr(s[a].name)] = s[a].value);
312
309
  for (a = l.length; a--; ) {
313
- var u = t(l[a], null), _ = l[a].slot;
314
- _ ? i[_] = L(xn, { name: _ }, u) : o[a] = u;
310
+ var u = t(l[a], null), d = l[a].slot;
311
+ d ? i[d] = L(En, { name: d }, u) : o[a] = u;
315
312
  }
316
- var c = r ? L(xn, null, o) : o;
313
+ var c = r ? L(En, null, o) : o;
317
314
  return L(r || n.nodeName.toLowerCase(), i, c);
318
- }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? un : ae)(this._vdom, this._root);
315
+ }(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? an : ae)(this._vdom, this._root);
319
316
  }
320
- function Nr(e) {
317
+ function Sr(e) {
321
318
  return e.replace(/-(\w)/g, function(t, n) {
322
319
  return n ? n.toUpperCase() : "";
323
320
  });
324
321
  }
325
- function Po(e, t, n) {
322
+ function xo(e, t, n) {
326
323
  if (this._vdom) {
327
324
  var r = {};
328
- r[e] = n = n ?? void 0, r[Nr(e)] = n, this._vdom = fn(this._vdom, r), ae(this._vdom, this._root);
325
+ r[e] = n = n ?? void 0, r[Sr(e)] = n, this._vdom = sn(this._vdom, r), ae(this._vdom, this._root);
329
326
  }
330
327
  }
331
- function Lo() {
328
+ function To() {
332
329
  ae(this._vdom = null, this._root);
333
330
  }
334
- function xn(e, t) {
331
+ function En(e, t) {
335
332
  var n = this;
336
- return L("slot", dn({}, e, { ref: function(r) {
333
+ return L("slot", cn({}, e, { ref: function(r) {
337
334
  r ? (n.ref = r, n._listener || (n._listener = function(o) {
338
335
  o.stopPropagation(), o.detail.context = t;
339
336
  }, r.addEventListener("_preact", n._listener))) : n.ref.removeEventListener("_preact", n._listener);
340
337
  } }));
341
338
  }
342
- function Mo(e, t, n, r) {
339
+ function Oo(e, t, n, r) {
343
340
  function o() {
344
341
  var i = Reflect.construct(HTMLElement, [], o);
345
342
  return i._vdomComponent = e, i._root = i, i;
346
343
  }
347
- return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = Ro, o.prototype.attributeChangedCallback = Po, o.prototype.disconnectedCallback = Lo, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
344
+ return (o.prototype = Object.create(HTMLElement.prototype)).constructor = o, o.prototype.connectedCallback = No, o.prototype.attributeChangedCallback = xo, o.prototype.disconnectedCallback = To, n = n || e.observedAttributes || Object.keys(e.propTypes || {}), o.observedAttributes = n, n.forEach(function(i) {
348
345
  Object.defineProperty(o.prototype, i, { get: function() {
349
346
  return this._vdom.props[i];
350
347
  }, set: function(a) {
@@ -354,27 +351,27 @@ function Mo(e, t, n, r) {
354
351
  } });
355
352
  }), customElements.define(t, o);
356
353
  }
357
- var Do = 0;
358
- function d(e, t, n, r, o, i) {
354
+ var Io = 0;
355
+ function p(e, t, n, r, o, i) {
359
356
  t || (t = {});
360
357
  var a, s, l = t;
361
358
  if ("ref" in l) for (s in l = {}, t) s == "ref" ? a = t[s] : l[s] = t[s];
362
- var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Do, __i: -1, __u: 0, __source: o, __self: i };
359
+ var u = { type: e, props: l, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --Io, __i: -1, __u: 0, __source: o, __self: i };
363
360
  if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
364
361
  return w.vnode && w.vnode(u), u;
365
362
  }
366
- const Tn = {
363
+ const $n = {
367
364
  SWITCH_CAMERA: "switch-camera",
368
365
  TOGGLE_MIRROR: "toggle-mirror"
369
366
  };
370
- var xr = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTED_DOCUMENT_CHANGED = "document-auto-capture:detected-document-changed", e.DOCUMENT_DETECTION = "document-auto-capture:document-detection", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(xr || {}), _e = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTED_PALM_CHANGED = "palm-capture:detected-palm-changed", e.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", e.STATE_CHANGED = "palm-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", e))(_e || {});
371
- const j = {
372
- LOADING: "LOADING",
373
- ERROR: "ERROR",
374
- WAITING: "WAITING",
375
- RUNNING: "RUNNING",
376
- COMPLETE: "COMPLETE"
377
- }, B = {
367
+ var Er = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "document-auto-capture:camera-props-changed", e.CONTROL = "document-auto-capture:control", e.DETECTION_CHANGED = "document-auto-capture:detection-changed", e.INSTRUCTION_CHANGED = "document-auto-capture:instruction-changed", e.INSTRUCTION_ESCALATED = "document-auto-capture:instruction-escalated", e.STATE_CHANGED = "document-auto-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "document-auto-capture:video-element-size", e))(Er || {}), pe = /* @__PURE__ */ ((e) => (e.CAMERA_PROPS_CHANGED = "palm-capture:camera-props-changed", e.CONTROL = "palm-capture:control", e.DETECTION_CHANGED = "palm-capture:detection-changed", e.INSTRUCTION_CHANGED = "palm-capture:instruction-changed", e.STATE_CHANGED = "palm-capture:state-changed", e.VIDEO_ELEMENT_SIZE = "palm-capture:video-element-size", e))(pe || {});
368
+ const W = {
369
+ LOADING: "loading",
370
+ ERROR: "error",
371
+ WAITING: "waiting",
372
+ RUNNING: "running",
373
+ COMPLETE: "complete"
374
+ }, F = {
378
375
  CANDIDATE_SELECTION: "candidate_selection",
379
376
  PALM_CENTERING: "palm_centering",
380
377
  PALM_NOT_PRESENT: "palm_not_present",
@@ -386,34 +383,34 @@ const j = {
386
383
  DEVICE_PITCHED: "device_pitched",
387
384
  TEMPLATE_EXTRACTION_QUALITY_TOO_LOW: "template_extraction_quality_too_low"
388
385
  };
389
- var se, O, It, On, $e = 0, Tr = [], I = w, In = I.__b, An = I.__r, Rn = I.diffed, Pn = I.__c, Ln = I.unmount, Mn = I.__;
386
+ var se, O, Tt, kn, $e = 0, $r = [], I = w, Nn = I.__b, xn = I.__r, Tn = I.diffed, On = I.__c, In = I.unmount, An = I.__;
390
387
  function Oe(e, t) {
391
388
  I.__h && I.__h(O, e, $e || t), $e = 0;
392
389
  var n = O.__H || (O.__H = { __: [], __h: [] });
393
390
  return e >= n.__.length && n.__.push({}), n.__[e];
394
391
  }
395
- function F(e) {
396
- return $e = 1, _n(Ar, e);
392
+ function U(e) {
393
+ return $e = 1, ln(xr, e);
397
394
  }
398
- function _n(e, t, n) {
395
+ function ln(e, t, n) {
399
396
  var r = Oe(se++, 2);
400
- if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Ar(void 0, t), function(s) {
397
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : xr(void 0, t), function(s) {
401
398
  var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, s);
402
399
  l !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
403
400
  }], r.__c = O, !O.__f)) {
404
401
  var o = function(s, l, u) {
405
402
  if (!r.__c.__H) return !0;
406
- var _ = r.__c.__H.__.filter(function(h) {
407
- return !!h.__c;
403
+ var d = r.__c.__H.__.filter(function(_) {
404
+ return !!_.__c;
408
405
  });
409
- if (_.every(function(h) {
410
- return !h.__N;
406
+ if (d.every(function(_) {
407
+ return !_.__N;
411
408
  })) return !i || i.call(this, s, l, u);
412
409
  var c = r.__c.props !== s;
413
- return _.forEach(function(h) {
414
- if (h.__N) {
415
- var f = h.__[0];
416
- h.__ = h.__N, h.__N = void 0, f !== h.__[0] && (c = !0);
410
+ return d.forEach(function(_) {
411
+ if (_.__N) {
412
+ var f = _.__[0];
413
+ _.__ = _.__N, _.__N = void 0, f !== _.__[0] && (c = !0);
417
414
  }
418
415
  }), i && i.call(this, s, l, u) || c;
419
416
  };
@@ -421,8 +418,8 @@ function _n(e, t, n) {
421
418
  var i = O.shouldComponentUpdate, a = O.componentWillUpdate;
422
419
  O.componentWillUpdate = function(s, l, u) {
423
420
  if (this.__e) {
424
- var _ = i;
425
- i = void 0, o(s, l, u), i = _;
421
+ var d = i;
422
+ i = void 0, o(s, l, u), i = d;
426
423
  }
427
424
  a && a.call(this, s, l, u);
428
425
  }, O.shouldComponentUpdate = o;
@@ -431,18 +428,18 @@ function _n(e, t, n) {
431
428
  }
432
429
  function ne(e, t) {
433
430
  var n = Oe(se++, 3);
434
- !I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, O.__H.__h.push(n));
431
+ !I.__s && un(n.__H, t) && (n.__ = e, n.u = t, O.__H.__h.push(n));
435
432
  }
436
433
  function Ie(e, t) {
437
434
  var n = Oe(se++, 4);
438
- !I.__s && hn(n.__H, t) && (n.__ = e, n.u = t, O.__h.push(n));
435
+ !I.__s && un(n.__H, t) && (n.__ = e, n.u = t, O.__h.push(n));
439
436
  }
440
437
  function qe(e) {
441
438
  return $e = 5, te(function() {
442
439
  return { current: e };
443
440
  }, []);
444
441
  }
445
- function Or(e, t, n) {
442
+ function kr(e, t, n) {
446
443
  $e = 6, Ie(function() {
447
444
  if (typeof e == "function") {
448
445
  var r = e(t());
@@ -457,9 +454,9 @@ function Or(e, t, n) {
457
454
  }
458
455
  function te(e, t) {
459
456
  var n = Oe(se++, 7);
460
- return hn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
457
+ return un(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
461
458
  }
462
- function he(e, t) {
459
+ function _e(e, t) {
463
460
  return $e = 8, te(function() {
464
461
  return e;
465
462
  }, t);
@@ -468,10 +465,10 @@ function Xe(e) {
468
465
  var t = O.context[e.__c], n = Oe(se++, 9);
469
466
  return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(O)), t.props.value) : e.__;
470
467
  }
471
- function ht(e, t) {
468
+ function pt(e, t) {
472
469
  I.useDebugValue && I.useDebugValue(t ? t(e) : e);
473
470
  }
474
- function Ir() {
471
+ function Nr() {
475
472
  var e = Oe(se++, 11);
476
473
  if (!e.__) {
477
474
  for (var t = O.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
@@ -480,33 +477,33 @@ function Ir() {
480
477
  }
481
478
  return e.__;
482
479
  }
483
- function Ho() {
484
- for (var e; e = Tr.shift(); ) if (e.__P && e.__H) try {
485
- e.__H.__h.forEach(at), e.__H.__h.forEach(Bt), e.__H.__h = [];
480
+ function Ao() {
481
+ for (var e; e = $r.shift(); ) if (e.__P && e.__H) try {
482
+ e.__H.__h.forEach(it), e.__H.__h.forEach(Bt), e.__H.__h = [];
486
483
  } catch (t) {
487
484
  e.__H.__h = [], I.__e(t, e.__v);
488
485
  }
489
486
  }
490
487
  I.__b = function(e) {
491
- O = null, In && In(e);
488
+ O = null, Nn && Nn(e);
492
489
  }, I.__ = function(e, t) {
493
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Mn && Mn(e, t);
490
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), An && An(e, t);
494
491
  }, I.__r = function(e) {
495
- An && An(e), se = 0;
492
+ xn && xn(e), se = 0;
496
493
  var t = (O = e.__c).__H;
497
- t && (It === O ? (t.__h = [], O.__h = [], t.__.forEach(function(n) {
494
+ t && (Tt === O ? (t.__h = [], O.__h = [], t.__.forEach(function(n) {
498
495
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
499
- })) : (t.__h.forEach(at), t.__h.forEach(Bt), t.__h = [], se = 0)), It = O;
496
+ })) : (t.__h.forEach(it), t.__h.forEach(Bt), t.__h = [], se = 0)), Tt = O;
500
497
  }, I.diffed = function(e) {
501
- Rn && Rn(e);
498
+ Tn && Tn(e);
502
499
  var t = e.__c;
503
- t && t.__H && (t.__H.__h.length && (Tr.push(t) !== 1 && On === I.requestAnimationFrame || ((On = I.requestAnimationFrame) || Uo)(Ho)), t.__H.__.forEach(function(n) {
500
+ t && t.__H && (t.__H.__h.length && ($r.push(t) !== 1 && kn === I.requestAnimationFrame || ((kn = I.requestAnimationFrame) || Po)(Ao)), t.__H.__.forEach(function(n) {
504
501
  n.u && (n.__H = n.u), n.u = void 0;
505
- })), It = O = null;
502
+ })), Tt = O = null;
506
503
  }, I.__c = function(e, t) {
507
504
  t.some(function(n) {
508
505
  try {
509
- n.__h.forEach(at), n.__h = n.__h.filter(function(r) {
506
+ n.__h.forEach(it), n.__h = n.__h.filter(function(r) {
510
507
  return !r.__ || Bt(r);
511
508
  });
512
509
  } catch (r) {
@@ -514,26 +511,26 @@ I.__b = function(e) {
514
511
  o.__h && (o.__h = []);
515
512
  }), t = [], I.__e(r, n.__v);
516
513
  }
517
- }), Pn && Pn(e, t);
514
+ }), On && On(e, t);
518
515
  }, I.unmount = function(e) {
519
- Ln && Ln(e);
516
+ In && In(e);
520
517
  var t, n = e.__c;
521
518
  n && n.__H && (n.__H.__.forEach(function(r) {
522
519
  try {
523
- at(r);
520
+ it(r);
524
521
  } catch (o) {
525
522
  t = o;
526
523
  }
527
524
  }), n.__H = void 0, t && I.__e(t, n.__v));
528
525
  };
529
- var Dn = typeof requestAnimationFrame == "function";
530
- function Uo(e) {
526
+ var Pn = typeof requestAnimationFrame == "function";
527
+ function Po(e) {
531
528
  var t, n = function() {
532
- clearTimeout(r), Dn && cancelAnimationFrame(t), setTimeout(e);
529
+ clearTimeout(r), Pn && cancelAnimationFrame(t), setTimeout(e);
533
530
  }, r = setTimeout(n, 100);
534
- Dn && (t = requestAnimationFrame(n));
531
+ Pn && (t = requestAnimationFrame(n));
535
532
  }
536
- function at(e) {
533
+ function it(e) {
537
534
  var t = O, n = e.__c;
538
535
  typeof n == "function" && (e.__c = void 0, n()), O = t;
539
536
  }
@@ -541,60 +538,60 @@ function Bt(e) {
541
538
  var t = O;
542
539
  e.__c = e.__(), O = t;
543
540
  }
544
- function hn(e, t) {
541
+ function un(e, t) {
545
542
  return !e || e.length !== t.length || t.some(function(n, r) {
546
543
  return n !== e[r];
547
544
  });
548
545
  }
549
- function Ar(e, t) {
546
+ function xr(e, t) {
550
547
  return typeof t == "function" ? t(e) : t;
551
548
  }
552
- var P = function() {
553
- return P = Object.assign || function(t) {
549
+ var R = function() {
550
+ return R = Object.assign || function(t) {
554
551
  for (var n, r = 1, o = arguments.length; r < o; r++) {
555
552
  n = arguments[r];
556
553
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
557
554
  }
558
555
  return t;
559
- }, P.apply(this, arguments);
556
+ }, R.apply(this, arguments);
560
557
  };
561
- function ge(e, t, n) {
558
+ function ye(e, t, n) {
562
559
  if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
563
560
  (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
564
561
  return e.concat(i || Array.prototype.slice.call(t));
565
562
  }
566
- function zo(e) {
563
+ function Ro(e) {
567
564
  var t = /* @__PURE__ */ Object.create(null);
568
565
  return function(n) {
569
566
  return t[n] === void 0 && (t[n] = e(n)), t[n];
570
567
  };
571
568
  }
572
- var Bo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Fo = /* @__PURE__ */ zo(
569
+ var Lo = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Mo = /* @__PURE__ */ Ro(
573
570
  function(e) {
574
- return Bo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
571
+ return Lo.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
575
572
  }
576
573
  /* Z+1 */
577
574
  );
578
- function Rr(e, t) {
575
+ function Tr(e, t) {
579
576
  for (var n in t) e[n] = t[n];
580
577
  return e;
581
578
  }
582
- function Ft(e, t) {
579
+ function zt(e, t) {
583
580
  for (var n in e) if (n !== "__source" && !(n in t)) return !0;
584
581
  for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
585
582
  return !1;
586
583
  }
587
- function Pr(e, t) {
588
- var n = t(), r = F({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
584
+ function Or(e, t) {
585
+ var n = t(), r = U({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
589
586
  return Ie(function() {
590
- o.__ = n, o.u = t, At(o) && i({ t: o });
587
+ o.__ = n, o.u = t, Ot(o) && i({ t: o });
591
588
  }, [e, n, t]), ne(function() {
592
- return At(o) && i({ t: o }), e(function() {
593
- At(o) && i({ t: o });
589
+ return Ot(o) && i({ t: o }), e(function() {
590
+ Ot(o) && i({ t: o });
594
591
  });
595
592
  }, [e]), n;
596
593
  }
597
- function At(e) {
594
+ function Ot(e) {
598
595
  var t, n, r = e.u, o = e.__;
599
596
  try {
600
597
  var i = r();
@@ -603,80 +600,80 @@ function At(e) {
603
600
  return !0;
604
601
  }
605
602
  }
606
- function Lr(e) {
603
+ function Ir(e) {
607
604
  e();
608
605
  }
609
- function Mr(e) {
606
+ function Ar(e) {
610
607
  return e;
611
608
  }
612
- function Dr() {
613
- return [!1, Lr];
609
+ function Pr() {
610
+ return [!1, Ir];
614
611
  }
615
- var Hr = Ie;
616
- function Wt(e, t) {
612
+ var Rr = Ie;
613
+ function Ft(e, t) {
617
614
  this.props = e, this.context = t;
618
615
  }
619
- function Wo(e, t) {
616
+ function Do(e, t) {
620
617
  function n(o) {
621
618
  var i = this.props.ref, a = i == o.ref;
622
- return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : Ft(this.props, o);
619
+ return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : zt(this.props, o);
623
620
  }
624
621
  function r(o) {
625
622
  return this.shouldComponentUpdate = n, L(e, o);
626
623
  }
627
624
  return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
628
625
  }
629
- (Wt.prototype = new G()).isPureReactComponent = !0, Wt.prototype.shouldComponentUpdate = function(e, t) {
630
- return Ft(this.props, e) || Ft(this.state, t);
626
+ (Ft.prototype = new G()).isPureReactComponent = !0, Ft.prototype.shouldComponentUpdate = function(e, t) {
627
+ return zt(this.props, e) || zt(this.state, t);
631
628
  };
632
- var Hn = w.__b;
629
+ var Rn = w.__b;
633
630
  w.__b = function(e) {
634
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Hn && Hn(e);
631
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Rn && Rn(e);
635
632
  };
636
- var jo = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
637
- function Go(e) {
633
+ var Ho = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
634
+ function Bo(e) {
638
635
  function t(n) {
639
- var r = Rr({}, n);
636
+ var r = Tr({}, n);
640
637
  return delete r.ref, e(r, n.ref || null);
641
638
  }
642
- return t.$$typeof = jo, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
639
+ return t.$$typeof = Ho, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
643
640
  }
644
- var Un = function(e, t) {
641
+ var Ln = function(e, t) {
645
642
  return e == null ? null : ee(ee(e).map(t));
646
- }, Vo = { map: Un, forEach: Un, count: function(e) {
643
+ }, zo = { map: Ln, forEach: Ln, count: function(e) {
647
644
  return e ? ee(e).length : 0;
648
645
  }, only: function(e) {
649
646
  var t = ee(e);
650
647
  if (t.length !== 1) throw "Children.only";
651
648
  return t[0];
652
- }, toArray: ee }, Zo = w.__e;
649
+ }, toArray: ee }, Fo = w.__e;
653
650
  w.__e = function(e, t, n, r) {
654
651
  if (e.then) {
655
652
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
656
653
  }
657
- Zo(e, t, n, r);
654
+ Fo(e, t, n, r);
658
655
  };
659
- var zn = w.unmount;
660
- function Ur(e, t, n) {
656
+ var Mn = w.unmount;
657
+ function Lr(e, t, n) {
661
658
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
662
659
  typeof r.__c == "function" && r.__c();
663
- }), e.__c.__H = null), (e = Rr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
664
- return Ur(r, t, n);
660
+ }), e.__c.__H = null), (e = Tr({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
661
+ return Lr(r, t, n);
665
662
  })), e;
666
663
  }
667
- function zr(e, t, n) {
664
+ function Mr(e, t, n) {
668
665
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
669
- return zr(r, t, n);
666
+ return Mr(r, t, n);
670
667
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
671
668
  }
672
- function st() {
669
+ function at() {
673
670
  this.__u = 0, this.o = null, this.__b = null;
674
671
  }
675
- function Br(e) {
672
+ function Dr(e) {
676
673
  var t = e.__.__c;
677
674
  return t && t.__a && t.__a(e);
678
675
  }
679
- function Yo(e) {
676
+ function Uo(e) {
680
677
  var t, n, r;
681
678
  function o(i) {
682
679
  if (t || (t = e()).then(function(a) {
@@ -694,11 +691,11 @@ function He() {
694
691
  }
695
692
  w.unmount = function(e) {
696
693
  var t = e.__c;
697
- t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), zn && zn(e);
698
- }, (st.prototype = new G()).__c = function(e, t) {
694
+ t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Mn && Mn(e);
695
+ }, (at.prototype = new G()).__c = function(e, t) {
699
696
  var n = t.__c, r = this;
700
697
  r.o == null && (r.o = []), r.o.push(n);
701
- var o = Br(r.__v), i = !1, a = function() {
698
+ var o = Dr(r.__v), i = !1, a = function() {
702
699
  i || (i = !0, n.__R = null, o ? o(s) : s());
703
700
  };
704
701
  n.__R = a;
@@ -706,39 +703,39 @@ w.unmount = function(e) {
706
703
  if (!--r.__u) {
707
704
  if (r.state.__a) {
708
705
  var l = r.state.__a;
709
- r.__v.__k[0] = zr(l, l.__c.__P, l.__c.__O);
706
+ r.__v.__k[0] = Mr(l, l.__c.__P, l.__c.__O);
710
707
  }
711
708
  var u;
712
709
  for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
713
710
  }
714
711
  };
715
712
  r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
716
- }, st.prototype.componentWillUnmount = function() {
713
+ }, at.prototype.componentWillUnmount = function() {
717
714
  this.o = [];
718
- }, st.prototype.render = function(e, t) {
715
+ }, at.prototype.render = function(e, t) {
719
716
  if (this.__b) {
720
717
  if (this.__v.__k) {
721
718
  var n = document.createElement("div"), r = this.__v.__k[0].__c;
722
- this.__v.__k[0] = Ur(this.__b, n, r.__O = r.__P);
719
+ this.__v.__k[0] = Lr(this.__b, n, r.__O = r.__P);
723
720
  }
724
721
  this.__b = null;
725
722
  }
726
723
  var o = t.__a && L(Z, null, e.fallback);
727
724
  return o && (o.__u &= -33), [L(Z, null, t.__a ? null : e.children), o];
728
725
  };
729
- var Bn = function(e, t, n) {
726
+ var Dn = function(e, t, n) {
730
727
  if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
731
728
  for (; n.length > 3; ) n.pop()();
732
729
  if (n[1] < n[0]) break;
733
730
  e.i = n = n[2];
734
731
  }
735
732
  };
736
- function qo(e) {
733
+ function jo(e) {
737
734
  return this.getChildContext = function() {
738
735
  return e.context;
739
736
  }, e.children;
740
737
  }
741
- function Xo(e) {
738
+ function Wo(e) {
742
739
  var t = this, n = e.h;
743
740
  if (t.componentWillUnmount = function() {
744
741
  ae(null, t.v), t.v = null, t.h = null;
@@ -754,17 +751,17 @@ function Xo(e) {
754
751
  this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
755
752
  } };
756
753
  }
757
- ae(L(qo, { context: t.context }, e.__v), t.v);
754
+ ae(L(jo, { context: t.context }, e.__v), t.v);
758
755
  }
759
- function Ko(e, t) {
760
- var n = L(Xo, { __v: e, h: t });
756
+ function Go(e, t) {
757
+ var n = L(Wo, { __v: e, h: t });
761
758
  return n.containerInfo = t, n;
762
759
  }
763
760
  (He.prototype = new G()).__a = function(e) {
764
- var t = this, n = Br(t.__v), r = t.l.get(e);
761
+ var t = this, n = Dr(t.__v), r = t.l.get(e);
765
762
  return r[0]++, function(o) {
766
763
  var i = function() {
767
- t.props.revealOrder ? (r.push(o), Bn(t, e, r)) : o();
764
+ t.props.revealOrder ? (r.push(o), Dn(t, e, r)) : o();
768
765
  };
769
766
  n ? n(i) : i();
770
767
  };
@@ -777,17 +774,17 @@ function Ko(e, t) {
777
774
  }, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
778
775
  var e = this;
779
776
  this.l.forEach(function(t, n) {
780
- Bn(e, n, t);
777
+ Dn(e, n, t);
781
778
  });
782
779
  };
783
- var Fr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Jo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Qo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ei = /[A-Z0-9]/g, ti = typeof document < "u", ni = function(e) {
780
+ var Hr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Vo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Zo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Yo = /[A-Z0-9]/g, qo = typeof document < "u", Xo = function(e) {
784
781
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
785
782
  };
786
- function ri(e, t, n) {
783
+ function Ko(e, t, n) {
787
784
  return t.__k == null && (t.textContent = ""), ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
788
785
  }
789
- function oi(e, t, n) {
790
- return un(e, t), typeof n == "function" && n(), e ? e.__c : null;
786
+ function Qo(e, t, n) {
787
+ return an(e, t), typeof n == "function" && n(), e ? e.__c : null;
791
788
  }
792
789
  G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
793
790
  Object.defineProperty(G.prototype, e, { configurable: !0, get: function() {
@@ -796,83 +793,83 @@ G.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
796
793
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
797
794
  } });
798
795
  });
799
- var Fn = w.event;
800
- function ii() {
796
+ var Hn = w.event;
797
+ function Jo() {
801
798
  }
802
- function ai() {
799
+ function ei() {
803
800
  return this.cancelBubble;
804
801
  }
805
- function si() {
802
+ function ti() {
806
803
  return this.defaultPrevented;
807
804
  }
808
805
  w.event = function(e) {
809
- return Fn && (e = Fn(e)), e.persist = ii, e.isPropagationStopped = ai, e.isDefaultPrevented = si, e.nativeEvent = e;
806
+ return Hn && (e = Hn(e)), e.persist = Jo, e.isPropagationStopped = ei, e.isDefaultPrevented = ti, e.nativeEvent = e;
810
807
  };
811
- var pn, ci = { enumerable: !1, configurable: !0, get: function() {
808
+ var fn, ni = { enumerable: !1, configurable: !0, get: function() {
812
809
  return this.class;
813
- } }, Wn = w.vnode;
810
+ } }, Bn = w.vnode;
814
811
  w.vnode = function(e) {
815
812
  typeof e.type == "string" && function(t) {
816
813
  var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
817
814
  for (var a in n) {
818
815
  var s = n[a];
819
- if (!(a === "value" && "defaultValue" in n && s == null || ti && a === "children" && r === "noscript" || a === "class" || a === "className")) {
816
+ if (!(a === "value" && "defaultValue" in n && s == null || qo && a === "children" && r === "noscript" || a === "class" || a === "className")) {
820
817
  var l = a.toLowerCase();
821
- a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || ni(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Qo.test(a) && (a = l) : l = a = "oninput" : i && Jo.test(a) ? a = a.replace(ei, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
818
+ a === "defaultValue" && "value" in n && n.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? a = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Xo(n.type) ? l === "onfocus" ? a = "onfocusin" : l === "onblur" ? a = "onfocusout" : Zo.test(a) && (a = l) : l = a = "oninput" : i && Vo.test(a) ? a = a.replace(Yo, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && o[a = l] && (a = "oninputCapture"), o[a] = s;
822
819
  }
823
820
  }
824
821
  r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ee(n.children).forEach(function(u) {
825
822
  u.props.selected = o.value.indexOf(u.props.value) != -1;
826
823
  })), r == "select" && o.defaultValue != null && (o.value = ee(n.children).forEach(function(u) {
827
824
  u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
828
- })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ci)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
829
- }(e), e.$$typeof = Fr, Wn && Wn(e);
825
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", ni)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
826
+ }(e), e.$$typeof = Hr, Bn && Bn(e);
830
827
  };
831
- var jn = w.__r;
828
+ var zn = w.__r;
832
829
  w.__r = function(e) {
833
- jn && jn(e), pn = e.__c;
830
+ zn && zn(e), fn = e.__c;
834
831
  };
835
- var Gn = w.diffed;
832
+ var Fn = w.diffed;
836
833
  w.diffed = function(e) {
837
- Gn && Gn(e);
834
+ Fn && Fn(e);
838
835
  var t = e.props, n = e.__e;
839
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), pn = null;
836
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), fn = null;
840
837
  };
841
- var li = { ReactCurrentDispatcher: { current: { readContext: function(e) {
842
- return pn.__n[e.__c].props.value;
843
- }, useCallback: he, useContext: Xe, useDebugValue: ht, useDeferredValue: Mr, useEffect: ne, useId: Ir, useImperativeHandle: Or, useInsertionEffect: Hr, useLayoutEffect: Ie, useMemo: te, useReducer: _n, useRef: qe, useState: F, useSyncExternalStore: Pr, useTransition: Dr } } };
844
- function ui(e) {
838
+ var ri = { ReactCurrentDispatcher: { current: { readContext: function(e) {
839
+ return fn.__n[e.__c].props.value;
840
+ }, useCallback: _e, useContext: Xe, useDebugValue: pt, useDeferredValue: Ar, useEffect: ne, useId: Nr, useImperativeHandle: kr, useInsertionEffect: Rr, useLayoutEffect: Ie, useMemo: te, useReducer: ln, useRef: qe, useState: U, useSyncExternalStore: Or, useTransition: Pr } } };
841
+ function oi(e) {
845
842
  return L.bind(null, e);
846
843
  }
847
- function vt(e) {
848
- return !!e && e.$$typeof === Fr;
844
+ function yt(e) {
845
+ return !!e && e.$$typeof === Hr;
849
846
  }
850
- function fi(e) {
851
- return vt(e) && e.type === Z;
847
+ function ii(e) {
848
+ return yt(e) && e.type === Z;
852
849
  }
853
- function di(e) {
850
+ function ai(e) {
854
851
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
855
852
  }
856
- function _i(e) {
857
- return vt(e) ? fn.apply(null, arguments) : e;
853
+ function si(e) {
854
+ return yt(e) ? sn.apply(null, arguments) : e;
858
855
  }
859
- function hi(e) {
856
+ function ci(e) {
860
857
  return !!e.__k && (ae(null, e), !0);
861
858
  }
862
- function pi(e) {
859
+ function li(e) {
863
860
  return e && (e.base || e.nodeType === 1 && e) || null;
864
861
  }
865
- var mi = function(e, t) {
862
+ var ui = function(e, t) {
866
863
  return e(t);
867
- }, gi = function(e, t) {
864
+ }, fi = function(e, t) {
868
865
  return e(t);
869
- }, yi = Z, vi = vt, re = { useState: F, useId: Ir, useReducer: _n, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Hr, useTransition: Dr, useDeferredValue: Mr, useSyncExternalStore: Pr, startTransition: Lr, useRef: qe, useImperativeHandle: Or, useMemo: te, useCallback: he, useContext: Xe, useDebugValue: ht, version: "18.3.1", Children: Vo, render: ri, hydrate: oi, unmountComponentAtNode: hi, createPortal: Ko, createElement: L, createContext: kr, createFactory: ui, cloneElement: _i, createRef: ko, Fragment: Z, isValidElement: vt, isElement: vi, isFragment: fi, isMemo: di, findDOMNode: pi, Component: G, PureComponent: Wt, memo: Wo, forwardRef: Go, flushSync: gi, unstable_batchedUpdates: mi, StrictMode: yi, Suspense: st, SuspenseList: He, lazy: Yo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: li };
870
- function Ci(e) {
866
+ }, di = Z, pi = yt, re = { useState: U, useId: Nr, useReducer: ln, useEffect: ne, useLayoutEffect: Ie, useInsertionEffect: Rr, useTransition: Pr, useDeferredValue: Ar, useSyncExternalStore: Or, startTransition: Ir, useRef: qe, useImperativeHandle: kr, useMemo: te, useCallback: _e, useContext: Xe, useDebugValue: pt, version: "18.3.1", Children: zo, render: Ko, hydrate: Qo, unmountComponentAtNode: ci, createPortal: Go, createElement: L, createContext: br, createFactory: oi, cloneElement: si, createRef: Co, Fragment: Z, isValidElement: yt, isElement: pi, isFragment: ii, isMemo: ai, findDOMNode: li, Component: G, PureComponent: Ft, memo: Do, forwardRef: Bo, flushSync: fi, unstable_batchedUpdates: ui, StrictMode: di, Suspense: at, SuspenseList: He, lazy: Uo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ri };
867
+ function _i(e) {
871
868
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
872
869
  }
873
- var Rt, Vn;
874
- function wi() {
875
- return Vn || (Vn = 1, Rt = function(t, n, r, o) {
870
+ var It, Un;
871
+ function hi() {
872
+ return Un || (Un = 1, It = function(t, n, r, o) {
876
873
  var i = r ? r.call(o, t, n) : void 0;
877
874
  if (i !== void 0)
878
875
  return !!i;
@@ -884,35 +881,35 @@ function wi() {
884
881
  if (a.length !== s.length)
885
882
  return !1;
886
883
  for (var l = Object.prototype.hasOwnProperty.bind(n), u = 0; u < a.length; u++) {
887
- var _ = a[u];
888
- if (!l(_))
884
+ var d = a[u];
885
+ if (!l(d))
889
886
  return !1;
890
- var c = t[_], h = n[_];
891
- if (i = r ? r.call(o, c, h, _) : void 0, i === !1 || i === void 0 && c !== h)
887
+ var c = t[d], _ = n[d];
888
+ if (i = r ? r.call(o, c, _, d) : void 0, i === !1 || i === void 0 && c !== _)
892
889
  return !1;
893
890
  }
894
891
  return !0;
895
- }), Rt;
892
+ }), It;
896
893
  }
897
- var bi = wi();
898
- const Si = /* @__PURE__ */ Ci(bi);
899
- var T = "-ms-", We = "-moz-", N = "-webkit-", Wr = "comm", Ct = "rule", mn = "decl", Ei = "@import", jr = "@keyframes", $i = "@layer", Gr = Math.abs, gn = String.fromCharCode, jt = Object.assign;
900
- function ki(e, t) {
901
- return R(e, 0) ^ 45 ? (((t << 2 ^ R(e, 0)) << 2 ^ R(e, 1)) << 2 ^ R(e, 2)) << 2 ^ R(e, 3) : 0;
894
+ var mi = hi();
895
+ const yi = /* @__PURE__ */ _i(mi);
896
+ var T = "-ms-", je = "-moz-", N = "-webkit-", Br = "comm", gt = "rule", dn = "decl", gi = "@import", zr = "@keyframes", vi = "@layer", Fr = Math.abs, pn = String.fromCharCode, Ut = Object.assign;
897
+ function Ci(e, t) {
898
+ return P(e, 0) ^ 45 ? (((t << 2 ^ P(e, 0)) << 2 ^ P(e, 1)) << 2 ^ P(e, 2)) << 2 ^ P(e, 3) : 0;
902
899
  }
903
- function Vr(e) {
900
+ function Ur(e) {
904
901
  return e.trim();
905
902
  }
906
- function J(e, t) {
903
+ function Q(e, t) {
907
904
  return (e = t.exec(e)) ? e[0] : e;
908
905
  }
909
906
  function b(e, t, n) {
910
907
  return e.replace(t, n);
911
908
  }
912
- function ct(e, t, n) {
909
+ function st(e, t, n) {
913
910
  return e.indexOf(t, n);
914
911
  }
915
- function R(e, t) {
912
+ function P(e, t) {
916
913
  return e.charCodeAt(t) | 0;
917
914
  }
918
915
  function ke(e, t, n) {
@@ -921,51 +918,51 @@ function ke(e, t, n) {
921
918
  function Y(e) {
922
919
  return e.length;
923
920
  }
924
- function Zr(e) {
921
+ function jr(e) {
925
922
  return e.length;
926
923
  }
927
- function Ue(e, t) {
924
+ function Be(e, t) {
928
925
  return t.push(e), e;
929
926
  }
930
- function Ni(e, t) {
927
+ function wi(e, t) {
931
928
  return e.map(t).join("");
932
929
  }
933
- function Zn(e, t) {
930
+ function jn(e, t) {
934
931
  return e.filter(function(n) {
935
- return !J(n, t);
932
+ return !Q(n, t);
936
933
  });
937
934
  }
938
- var wt = 1, Ne = 1, Yr = 0, W = 0, A = 0, Ae = "";
939
- function bt(e, t, n, r, o, i, a, s) {
940
- return { value: e, root: t, parent: n, type: r, props: o, children: i, line: wt, column: Ne, length: a, return: "", siblings: s };
935
+ var vt = 1, Ne = 1, Wr = 0, j = 0, A = 0, Ae = "";
936
+ function Ct(e, t, n, r, o, i, a, s) {
937
+ return { value: e, root: t, parent: n, type: r, props: o, children: i, line: vt, column: Ne, length: a, return: "", siblings: s };
941
938
  }
942
939
  function ie(e, t) {
943
- return jt(bt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
940
+ return Ut(Ct("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
944
941
  }
945
942
  function be(e) {
946
943
  for (; e.root; )
947
944
  e = ie(e.root, { children: [e] });
948
- Ue(e, e.siblings);
945
+ Be(e, e.siblings);
949
946
  }
950
- function xi() {
947
+ function bi() {
951
948
  return A;
952
949
  }
953
- function Ti() {
954
- return A = W > 0 ? R(Ae, --W) : 0, Ne--, A === 10 && (Ne = 1, wt--), A;
950
+ function Si() {
951
+ return A = j > 0 ? P(Ae, --j) : 0, Ne--, A === 10 && (Ne = 1, vt--), A;
955
952
  }
956
953
  function V() {
957
- return A = W < Yr ? R(Ae, W++) : 0, Ne++, A === 10 && (Ne = 1, wt++), A;
954
+ return A = j < Wr ? P(Ae, j++) : 0, Ne++, A === 10 && (Ne = 1, vt++), A;
958
955
  }
959
- function pe() {
960
- return R(Ae, W);
956
+ function he() {
957
+ return P(Ae, j);
961
958
  }
962
- function lt() {
963
- return W;
959
+ function ct() {
960
+ return j;
964
961
  }
965
- function St(e, t) {
962
+ function wt(e, t) {
966
963
  return ke(Ae, e, t);
967
964
  }
968
- function Gt(e) {
965
+ function jt(e) {
969
966
  switch (e) {
970
967
  // \0 \t \n \r \s whitespace token
971
968
  case 0:
@@ -1003,151 +1000,151 @@ function Gt(e) {
1003
1000
  }
1004
1001
  return 0;
1005
1002
  }
1006
- function Oi(e) {
1007
- return wt = Ne = 1, Yr = Y(Ae = e), W = 0, [];
1003
+ function Ei(e) {
1004
+ return vt = Ne = 1, Wr = Y(Ae = e), j = 0, [];
1008
1005
  }
1009
- function Ii(e) {
1006
+ function $i(e) {
1010
1007
  return Ae = "", e;
1011
1008
  }
1012
- function Pt(e) {
1013
- return Vr(St(W - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1009
+ function At(e) {
1010
+ return Ur(wt(j - 1, Wt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1014
1011
  }
1015
- function Ai(e) {
1016
- for (; (A = pe()) && A < 33; )
1012
+ function ki(e) {
1013
+ for (; (A = he()) && A < 33; )
1017
1014
  V();
1018
- return Gt(e) > 2 || Gt(A) > 3 ? "" : " ";
1015
+ return jt(e) > 2 || jt(A) > 3 ? "" : " ";
1019
1016
  }
1020
- function Ri(e, t) {
1017
+ function Ni(e, t) {
1021
1018
  for (; --t && V() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
1022
1019
  ;
1023
- return St(e, lt() + (t < 6 && pe() == 32 && V() == 32));
1020
+ return wt(e, ct() + (t < 6 && he() == 32 && V() == 32));
1024
1021
  }
1025
- function Vt(e) {
1022
+ function Wt(e) {
1026
1023
  for (; V(); )
1027
1024
  switch (A) {
1028
1025
  // ] ) " '
1029
1026
  case e:
1030
- return W;
1027
+ return j;
1031
1028
  // " '
1032
1029
  case 34:
1033
1030
  case 39:
1034
- e !== 34 && e !== 39 && Vt(A);
1031
+ e !== 34 && e !== 39 && Wt(A);
1035
1032
  break;
1036
1033
  // (
1037
1034
  case 40:
1038
- e === 41 && Vt(e);
1035
+ e === 41 && Wt(e);
1039
1036
  break;
1040
1037
  // \
1041
1038
  case 92:
1042
1039
  V();
1043
1040
  break;
1044
1041
  }
1045
- return W;
1042
+ return j;
1046
1043
  }
1047
- function Pi(e, t) {
1044
+ function xi(e, t) {
1048
1045
  for (; V() && e + A !== 57; )
1049
- if (e + A === 84 && pe() === 47)
1046
+ if (e + A === 84 && he() === 47)
1050
1047
  break;
1051
- return "/*" + St(t, W - 1) + "*" + gn(e === 47 ? e : V());
1048
+ return "/*" + wt(t, j - 1) + "*" + pn(e === 47 ? e : V());
1052
1049
  }
1053
- function Li(e) {
1054
- for (; !Gt(pe()); )
1050
+ function Ti(e) {
1051
+ for (; !jt(he()); )
1055
1052
  V();
1056
- return St(e, W);
1053
+ return wt(e, j);
1057
1054
  }
1058
- function Mi(e) {
1059
- return Ii(ut("", null, null, null, [""], e = Oi(e), 0, [0], e));
1055
+ function Oi(e) {
1056
+ return $i(lt("", null, null, null, [""], e = Ei(e), 0, [0], e));
1060
1057
  }
1061
- function ut(e, t, n, r, o, i, a, s, l) {
1062
- for (var u = 0, _ = 0, c = a, h = 0, f = 0, p = 0, y = 1, v = 1, m = 1, g = 0, k = "", E = o, x = i, S = r, C = k; v; )
1063
- switch (p = g, g = V()) {
1058
+ function lt(e, t, n, r, o, i, a, s, l) {
1059
+ for (var u = 0, d = 0, c = a, _ = 0, f = 0, h = 0, g = 1, v = 1, m = 1, y = 0, k = "", E = o, x = i, S = r, C = k; v; )
1060
+ switch (h = y, y = V()) {
1064
1061
  // (
1065
1062
  case 40:
1066
- if (p != 108 && R(C, c - 1) == 58) {
1067
- ct(C += b(Pt(g), "&", "&\f"), "&\f", Gr(u ? s[u - 1] : 0)) != -1 && (m = -1);
1063
+ if (h != 108 && P(C, c - 1) == 58) {
1064
+ st(C += b(At(y), "&", "&\f"), "&\f", Fr(u ? s[u - 1] : 0)) != -1 && (m = -1);
1068
1065
  break;
1069
1066
  }
1070
1067
  // " ' [
1071
1068
  case 34:
1072
1069
  case 39:
1073
1070
  case 91:
1074
- C += Pt(g);
1071
+ C += At(y);
1075
1072
  break;
1076
1073
  // \t \n \r \s
1077
1074
  case 9:
1078
1075
  case 10:
1079
1076
  case 13:
1080
1077
  case 32:
1081
- C += Ai(p);
1078
+ C += ki(h);
1082
1079
  break;
1083
1080
  // \
1084
1081
  case 92:
1085
- C += Ri(lt() - 1, 7);
1082
+ C += Ni(ct() - 1, 7);
1086
1083
  continue;
1087
1084
  // /
1088
1085
  case 47:
1089
- switch (pe()) {
1086
+ switch (he()) {
1090
1087
  case 42:
1091
1088
  case 47:
1092
- Ue(Di(Pi(V(), lt()), t, n, l), l);
1089
+ Be(Ii(xi(V(), ct()), t, n, l), l);
1093
1090
  break;
1094
1091
  default:
1095
1092
  C += "/";
1096
1093
  }
1097
1094
  break;
1098
1095
  // {
1099
- case 123 * y:
1096
+ case 123 * g:
1100
1097
  s[u++] = Y(C) * m;
1101
1098
  // } ; \0
1102
- case 125 * y:
1099
+ case 125 * g:
1103
1100
  case 59:
1104
1101
  case 0:
1105
- switch (g) {
1102
+ switch (y) {
1106
1103
  // \0 }
1107
1104
  case 0:
1108
1105
  case 125:
1109
1106
  v = 0;
1110
1107
  // ;
1111
- case 59 + _:
1112
- m == -1 && (C = b(C, /\f/g, "")), f > 0 && Y(C) - c && Ue(f > 32 ? qn(C + ";", r, n, c - 1, l) : qn(b(C, " ", "") + ";", r, n, c - 2, l), l);
1108
+ case 59 + d:
1109
+ m == -1 && (C = b(C, /\f/g, "")), f > 0 && Y(C) - c && Be(f > 32 ? Gn(C + ";", r, n, c - 1, l) : Gn(b(C, " ", "") + ";", r, n, c - 2, l), l);
1113
1110
  break;
1114
1111
  // @ ;
1115
1112
  case 59:
1116
1113
  C += ";";
1117
1114
  // { rule/at-rule
1118
1115
  default:
1119
- if (Ue(S = Yn(C, t, n, u, _, o, s, k, E = [], x = [], c, i), i), g === 123)
1120
- if (_ === 0)
1121
- ut(C, t, S, S, E, i, c, s, x);
1116
+ if (Be(S = Wn(C, t, n, u, d, o, s, k, E = [], x = [], c, i), i), y === 123)
1117
+ if (d === 0)
1118
+ lt(C, t, S, S, E, i, c, s, x);
1122
1119
  else
1123
- switch (h === 99 && R(C, 3) === 110 ? 100 : h) {
1120
+ switch (_ === 99 && P(C, 3) === 110 ? 100 : _) {
1124
1121
  // d l m s
1125
1122
  case 100:
1126
1123
  case 108:
1127
1124
  case 109:
1128
1125
  case 115:
1129
- ut(e, S, S, r && Ue(Yn(e, S, S, 0, 0, o, s, k, o, E = [], c, x), x), o, x, c, s, r ? E : x);
1126
+ lt(e, S, S, r && Be(Wn(e, S, S, 0, 0, o, s, k, o, E = [], c, x), x), o, x, c, s, r ? E : x);
1130
1127
  break;
1131
1128
  default:
1132
- ut(C, S, S, S, [""], x, 0, s, x);
1129
+ lt(C, S, S, S, [""], x, 0, s, x);
1133
1130
  }
1134
1131
  }
1135
- u = _ = f = 0, y = m = 1, k = C = "", c = a;
1132
+ u = d = f = 0, g = m = 1, k = C = "", c = a;
1136
1133
  break;
1137
1134
  // :
1138
1135
  case 58:
1139
- c = 1 + Y(C), f = p;
1136
+ c = 1 + Y(C), f = h;
1140
1137
  default:
1141
- if (y < 1) {
1142
- if (g == 123)
1143
- --y;
1144
- else if (g == 125 && y++ == 0 && Ti() == 125)
1138
+ if (g < 1) {
1139
+ if (y == 123)
1140
+ --g;
1141
+ else if (y == 125 && g++ == 0 && Si() == 125)
1145
1142
  continue;
1146
1143
  }
1147
- switch (C += gn(g), g * y) {
1144
+ switch (C += pn(y), y * g) {
1148
1145
  // &
1149
1146
  case 38:
1150
- m = _ > 0 ? 1 : (C += "\f", -1);
1147
+ m = d > 0 ? 1 : (C += "\f", -1);
1151
1148
  break;
1152
1149
  // ,
1153
1150
  case 44:
@@ -1155,29 +1152,29 @@ function ut(e, t, n, r, o, i, a, s, l) {
1155
1152
  break;
1156
1153
  // @
1157
1154
  case 64:
1158
- pe() === 45 && (C += Pt(V())), h = pe(), _ = c = Y(k = C += Li(lt())), g++;
1155
+ he() === 45 && (C += At(V())), _ = he(), d = c = Y(k = C += Ti(ct())), y++;
1159
1156
  break;
1160
1157
  // -
1161
1158
  case 45:
1162
- p === 45 && Y(C) == 2 && (y = 0);
1159
+ h === 45 && Y(C) == 2 && (g = 0);
1163
1160
  }
1164
1161
  }
1165
1162
  return i;
1166
1163
  }
1167
- function Yn(e, t, n, r, o, i, a, s, l, u, _, c) {
1168
- for (var h = o - 1, f = o === 0 ? i : [""], p = Zr(f), y = 0, v = 0, m = 0; y < r; ++y)
1169
- for (var g = 0, k = ke(e, h + 1, h = Gr(v = a[y])), E = e; g < p; ++g)
1170
- (E = Vr(v > 0 ? f[g] + " " + k : b(k, /&\f/g, f[g]))) && (l[m++] = E);
1171
- return bt(e, t, n, o === 0 ? Ct : s, l, u, _, c);
1164
+ function Wn(e, t, n, r, o, i, a, s, l, u, d, c) {
1165
+ for (var _ = o - 1, f = o === 0 ? i : [""], h = jr(f), g = 0, v = 0, m = 0; g < r; ++g)
1166
+ for (var y = 0, k = ke(e, _ + 1, _ = Fr(v = a[g])), E = e; y < h; ++y)
1167
+ (E = Ur(v > 0 ? f[y] + " " + k : b(k, /&\f/g, f[y]))) && (l[m++] = E);
1168
+ return Ct(e, t, n, o === 0 ? gt : s, l, u, d, c);
1172
1169
  }
1173
- function Di(e, t, n, r) {
1174
- return bt(e, t, n, Wr, gn(xi()), ke(e, 2, -2), 0, r);
1170
+ function Ii(e, t, n, r) {
1171
+ return Ct(e, t, n, Br, pn(bi()), ke(e, 2, -2), 0, r);
1175
1172
  }
1176
- function qn(e, t, n, r, o) {
1177
- return bt(e, t, n, mn, ke(e, 0, r), ke(e, r + 1, -1), r, o);
1173
+ function Gn(e, t, n, r, o) {
1174
+ return Ct(e, t, n, dn, ke(e, 0, r), ke(e, r + 1, -1), r, o);
1178
1175
  }
1179
- function qr(e, t, n) {
1180
- switch (ki(e, t)) {
1176
+ function Gr(e, t, n) {
1177
+ switch (Ci(e, t)) {
1181
1178
  // color-adjust
1182
1179
  case 5103:
1183
1180
  return N + "print-" + e + e;
@@ -1213,17 +1210,17 @@ function qr(e, t, n) {
1213
1210
  return N + e + e;
1214
1211
  // tab-size
1215
1212
  case 4789:
1216
- return We + e + e;
1213
+ return je + e + e;
1217
1214
  // appearance, user-select, transform, hyphens, text-size-adjust
1218
1215
  case 5349:
1219
1216
  case 4246:
1220
1217
  case 4810:
1221
1218
  case 6968:
1222
1219
  case 2756:
1223
- return N + e + We + e + T + e + e;
1220
+ return N + e + je + e + T + e + e;
1224
1221
  // writing-mode
1225
1222
  case 5936:
1226
- switch (R(e, t + 11)) {
1223
+ switch (P(e, t + 11)) {
1227
1224
  // vertical-l(r)
1228
1225
  case 114:
1229
1226
  return N + e + T + b(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
@@ -1247,7 +1244,7 @@ function qr(e, t, n) {
1247
1244
  return N + e + b(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + T + "flex-$1$2") + e;
1248
1245
  // align-self
1249
1246
  case 5443:
1250
- return N + e + T + "flex-item-" + b(e, /flex-|-self/g, "") + (J(e, /flex-|baseline/) ? "" : T + "grid-row-" + b(e, /flex-|-self/g, "")) + e;
1247
+ return N + e + T + "flex-item-" + b(e, /flex-|-self/g, "") + (Q(e, /flex-|baseline/) ? "" : T + "grid-row-" + b(e, /flex-|-self/g, "")) + e;
1251
1248
  // align-content
1252
1249
  case 4675:
1253
1250
  return N + e + T + "flex-line-pack" + b(e, /align-content|flex-|-self/g, "") + e;
@@ -1275,7 +1272,7 @@ function qr(e, t, n) {
1275
1272
  return b(b(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + T + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
1276
1273
  // justify-self
1277
1274
  case 4200:
1278
- if (!J(e, /flex-|baseline/)) return T + "grid-column-align" + ke(e, t) + e;
1275
+ if (!Q(e, /flex-|baseline/)) return T + "grid-column-align" + ke(e, t) + e;
1279
1276
  break;
1280
1277
  // grid-template-(columns|rows)
1281
1278
  case 2592:
@@ -1285,13 +1282,13 @@ function qr(e, t, n) {
1285
1282
  case 4384:
1286
1283
  case 3616:
1287
1284
  return n && n.some(function(r, o) {
1288
- return t = o, J(r.props, /grid-\w+-end/);
1289
- }) ? ~ct(e + (n = n[t].value), "span", 0) ? e : T + b(e, "-start", "") + e + T + "grid-row-span:" + (~ct(n, "span", 0) ? J(n, /\d+/) : +J(n, /\d+/) - +J(e, /\d+/)) + ";" : T + b(e, "-start", "") + e;
1285
+ return t = o, Q(r.props, /grid-\w+-end/);
1286
+ }) ? ~st(e + (n = n[t].value), "span", 0) ? e : T + b(e, "-start", "") + e + T + "grid-row-span:" + (~st(n, "span", 0) ? Q(n, /\d+/) : +Q(n, /\d+/) - +Q(e, /\d+/)) + ";" : T + b(e, "-start", "") + e;
1290
1287
  // grid-(row|column)-end
1291
1288
  case 4896:
1292
1289
  case 4128:
1293
1290
  return n && n.some(function(r) {
1294
- return J(r.props, /grid-\w+-start/);
1291
+ return Q(r.props, /grid-\w+-start/);
1295
1292
  }) ? e : T + b(b(e, "-end", "-span"), "span ", "") + e;
1296
1293
  // (margin|padding)-inline-(start|end)
1297
1294
  case 4095:
@@ -1313,17 +1310,17 @@ function qr(e, t, n) {
1313
1310
  case 5021:
1314
1311
  case 4765:
1315
1312
  if (Y(e) - 1 - t > 6)
1316
- switch (R(e, t + 1)) {
1313
+ switch (P(e, t + 1)) {
1317
1314
  // (m)ax-content, (m)in-content
1318
1315
  case 109:
1319
- if (R(e, t + 4) !== 45)
1316
+ if (P(e, t + 4) !== 45)
1320
1317
  break;
1321
1318
  // (f)ill-available, (f)it-content
1322
1319
  case 102:
1323
- return b(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + We + (R(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1320
+ return b(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + je + (P(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
1324
1321
  // (s)tretch
1325
1322
  case 115:
1326
- return ~ct(e, "stretch", 0) ? qr(b(e, "stretch", "fill-available"), t, n) + e : e;
1323
+ return ~st(e, "stretch", 0) ? Gr(b(e, "stretch", "fill-available"), t, n) + e : e;
1327
1324
  }
1328
1325
  break;
1329
1326
  // grid-(column|row)
@@ -1334,15 +1331,15 @@ function qr(e, t, n) {
1334
1331
  });
1335
1332
  // position: sticky
1336
1333
  case 4949:
1337
- if (R(e, t + 6) === 121)
1334
+ if (P(e, t + 6) === 121)
1338
1335
  return b(e, ":", ":" + N) + e;
1339
1336
  break;
1340
1337
  // display: (flex|inline-flex|grid|inline-grid)
1341
1338
  case 6444:
1342
- switch (R(e, R(e, 14) === 45 ? 18 : 11)) {
1339
+ switch (P(e, P(e, 14) === 45 ? 18 : 11)) {
1343
1340
  // (inline-)?fle(x)
1344
1341
  case 120:
1345
- return b(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (R(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + T + "$2box$3") + e;
1342
+ return b(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (P(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + T + "$2box$3") + e;
1346
1343
  // (inline-)?gri(d)
1347
1344
  case 100:
1348
1345
  return b(e, ":", ":" + T) + e;
@@ -1358,67 +1355,67 @@ function qr(e, t, n) {
1358
1355
  }
1359
1356
  return e;
1360
1357
  }
1361
- function pt(e, t) {
1358
+ function _t(e, t) {
1362
1359
  for (var n = "", r = 0; r < e.length; r++)
1363
1360
  n += t(e[r], r, e, t) || "";
1364
1361
  return n;
1365
1362
  }
1366
- function Hi(e, t, n, r) {
1363
+ function Ai(e, t, n, r) {
1367
1364
  switch (e.type) {
1368
- case $i:
1365
+ case vi:
1369
1366
  if (e.children.length) break;
1370
- case Ei:
1371
- case mn:
1367
+ case gi:
1368
+ case dn:
1372
1369
  return e.return = e.return || e.value;
1373
- case Wr:
1370
+ case Br:
1374
1371
  return "";
1375
- case jr:
1376
- return e.return = e.value + "{" + pt(e.children, r) + "}";
1377
- case Ct:
1372
+ case zr:
1373
+ return e.return = e.value + "{" + _t(e.children, r) + "}";
1374
+ case gt:
1378
1375
  if (!Y(e.value = e.props.join(","))) return "";
1379
1376
  }
1380
- return Y(n = pt(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1377
+ return Y(n = _t(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1381
1378
  }
1382
- function Ui(e) {
1383
- var t = Zr(e);
1379
+ function Pi(e) {
1380
+ var t = jr(e);
1384
1381
  return function(n, r, o, i) {
1385
1382
  for (var a = "", s = 0; s < t; s++)
1386
1383
  a += e[s](n, r, o, i) || "";
1387
1384
  return a;
1388
1385
  };
1389
1386
  }
1390
- function zi(e) {
1387
+ function Ri(e) {
1391
1388
  return function(t) {
1392
1389
  t.root || (t = t.return) && e(t);
1393
1390
  };
1394
1391
  }
1395
- function Bi(e, t, n, r) {
1392
+ function Li(e, t, n, r) {
1396
1393
  if (e.length > -1 && !e.return)
1397
1394
  switch (e.type) {
1398
- case mn:
1399
- e.return = qr(e.value, e.length, n);
1395
+ case dn:
1396
+ e.return = Gr(e.value, e.length, n);
1400
1397
  return;
1401
- case jr:
1402
- return pt([ie(e, { value: b(e.value, "@", "@" + N) })], r);
1403
- case Ct:
1398
+ case zr:
1399
+ return _t([ie(e, { value: b(e.value, "@", "@" + N) })], r);
1400
+ case gt:
1404
1401
  if (e.length)
1405
- return Ni(n = e.props, function(o) {
1406
- switch (J(o, r = /(::plac\w+|:read-\w+)/)) {
1402
+ return wi(n = e.props, function(o) {
1403
+ switch (Q(o, r = /(::plac\w+|:read-\w+)/)) {
1407
1404
  // :read-(only|write)
1408
1405
  case ":read-only":
1409
1406
  case ":read-write":
1410
- be(ie(e, { props: [b(o, /:(read-\w+)/, ":" + We + "$1")] })), be(ie(e, { props: [o] })), jt(e, { props: Zn(n, r) });
1407
+ be(ie(e, { props: [b(o, /:(read-\w+)/, ":" + je + "$1")] })), be(ie(e, { props: [o] })), Ut(e, { props: jn(n, r) });
1411
1408
  break;
1412
1409
  // :placeholder
1413
1410
  case "::placeholder":
1414
- be(ie(e, { props: [b(o, /:(plac\w+)/, ":" + N + "input-$1")] })), be(ie(e, { props: [b(o, /:(plac\w+)/, ":" + We + "$1")] })), be(ie(e, { props: [b(o, /:(plac\w+)/, T + "input-$1")] })), be(ie(e, { props: [o] })), jt(e, { props: Zn(n, r) });
1411
+ be(ie(e, { props: [b(o, /:(plac\w+)/, ":" + N + "input-$1")] })), be(ie(e, { props: [b(o, /:(plac\w+)/, ":" + je + "$1")] })), be(ie(e, { props: [b(o, /:(plac\w+)/, T + "input-$1")] })), be(ie(e, { props: [o] })), Ut(e, { props: jn(n, r) });
1415
1412
  break;
1416
1413
  }
1417
1414
  return "";
1418
1415
  });
1419
1416
  }
1420
1417
  }
1421
- var Fi = {
1418
+ var Mi = {
1422
1419
  animationIterationCount: 1,
1423
1420
  aspectRatio: 1,
1424
1421
  borderImageOutset: 1,
@@ -1466,8 +1463,8 @@ var Fi = {
1466
1463
  strokeMiterlimit: 1,
1467
1464
  strokeOpacity: 1,
1468
1465
  strokeWidth: 1
1469
- }, $ = {}, ye = typeof process < "u" && $ !== void 0 && ($.REACT_APP_SC_ATTR || $.SC_ATTR) || "data-styled", Xr = "active", Kr = "data-styled-version", Et = "6.1.18", yn = `/*!sc*/
1470
- `, mt = typeof window < "u" && typeof document < "u", Wi = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== "" ? $.REACT_APP_SC_DISABLE_SPEEDY !== "false" && $.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.SC_DISABLE_SPEEDY !== void 0 && $.SC_DISABLE_SPEEDY !== "" ? $.SC_DISABLE_SPEEDY !== "false" && $.SC_DISABLE_SPEEDY : $.NODE_ENV !== "production"), Xn = /invalid hook call/i, nt = /* @__PURE__ */ new Set(), ji = function(e, t) {
1466
+ }, $ = {}, ge = typeof process < "u" && $ !== void 0 && ($.REACT_APP_SC_ATTR || $.SC_ATTR) || "data-styled", Vr = "active", Zr = "data-styled-version", bt = "6.1.18", _n = `/*!sc*/
1467
+ `, ht = typeof window < "u" && typeof document < "u", Di = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && $.REACT_APP_SC_DISABLE_SPEEDY !== "" ? $.REACT_APP_SC_DISABLE_SPEEDY !== "false" && $.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && $ !== void 0 && $.SC_DISABLE_SPEEDY !== void 0 && $.SC_DISABLE_SPEEDY !== "" ? $.SC_DISABLE_SPEEDY !== "false" && $.SC_DISABLE_SPEEDY : $.NODE_ENV !== "production"), Vn = /invalid hook call/i, tt = /* @__PURE__ */ new Set(), Hi = function(e, t) {
1471
1468
  if ($.NODE_ENV !== "production") {
1472
1469
  var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
1473
1470
  `) + `You may see this warning because you've called styled inside another component.
@@ -1478,65 +1475,65 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
1478
1475
  var i = !0;
1479
1476
  console.error = function(a) {
1480
1477
  for (var s = [], l = 1; l < arguments.length; l++) s[l - 1] = arguments[l];
1481
- Xn.test(a) ? (i = !1, nt.delete(r)) : o.apply(void 0, ge([a], s, !1));
1482
- }, qe(), i && !nt.has(r) && (console.warn(r), nt.add(r));
1478
+ Vn.test(a) ? (i = !1, tt.delete(r)) : o.apply(void 0, ye([a], s, !1));
1479
+ }, qe(), i && !tt.has(r) && (console.warn(r), tt.add(r));
1483
1480
  } catch (a) {
1484
- Xn.test(a.message) && nt.delete(r);
1481
+ Vn.test(a.message) && tt.delete(r);
1485
1482
  } finally {
1486
1483
  console.error = o;
1487
1484
  }
1488
1485
  }
1489
- }, $t = Object.freeze([]), xe = Object.freeze({});
1490
- function Gi(e, t, n) {
1486
+ }, St = Object.freeze([]), xe = Object.freeze({});
1487
+ function Bi(e, t, n) {
1491
1488
  return n === void 0 && (n = xe), e.theme !== n.theme && e.theme || t || n.theme;
1492
1489
  }
1493
- var Zt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Vi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Zi = /(^-|-$)/g;
1494
- function Kn(e) {
1495
- return e.replace(Vi, "-").replace(Zi, "");
1490
+ var Gt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), zi = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Fi = /(^-|-$)/g;
1491
+ function Zn(e) {
1492
+ return e.replace(zi, "-").replace(Fi, "");
1496
1493
  }
1497
- var Yi = /(a)(d)/gi, rt = 52, Jn = function(e) {
1494
+ var Ui = /(a)(d)/gi, nt = 52, Yn = function(e) {
1498
1495
  return String.fromCharCode(e + (e > 25 ? 39 : 97));
1499
1496
  };
1500
- function Yt(e) {
1497
+ function Vt(e) {
1501
1498
  var t, n = "";
1502
- for (t = Math.abs(e); t > rt; t = t / rt | 0) n = Jn(t % rt) + n;
1503
- return (Jn(t % rt) + n).replace(Yi, "$1-$2");
1499
+ for (t = Math.abs(e); t > nt; t = t / nt | 0) n = Yn(t % nt) + n;
1500
+ return (Yn(t % nt) + n).replace(Ui, "$1-$2");
1504
1501
  }
1505
- var Lt, Jr = 5381, fe = function(e, t) {
1502
+ var Pt, Yr = 5381, fe = function(e, t) {
1506
1503
  for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
1507
1504
  return e;
1508
- }, Qr = function(e) {
1509
- return fe(Jr, e);
1505
+ }, qr = function(e) {
1506
+ return fe(Yr, e);
1510
1507
  };
1511
- function eo(e) {
1512
- return Yt(Qr(e) >>> 0);
1508
+ function Xr(e) {
1509
+ return Vt(qr(e) >>> 0);
1513
1510
  }
1514
- function to(e) {
1511
+ function Kr(e) {
1515
1512
  return $.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
1516
1513
  }
1517
- function Mt(e) {
1514
+ function Rt(e) {
1518
1515
  return typeof e == "string" && ($.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
1519
1516
  }
1520
- var no = typeof Symbol == "function" && Symbol.for, ro = no ? Symbol.for("react.memo") : 60115, qi = no ? Symbol.for("react.forward_ref") : 60112, Xi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Ki = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, oo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Ji = ((Lt = {})[qi] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Lt[ro] = oo, Lt);
1521
- function Qn(e) {
1522
- return ("type" in (t = e) && t.type.$$typeof) === ro ? oo : "$$typeof" in e ? Ji[e.$$typeof] : Xi;
1517
+ var Qr = typeof Symbol == "function" && Symbol.for, Jr = Qr ? Symbol.for("react.memo") : 60115, ji = Qr ? Symbol.for("react.forward_ref") : 60112, Wi = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Gi = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, eo = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Vi = ((Pt = {})[ji] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Pt[Jr] = eo, Pt);
1518
+ function qn(e) {
1519
+ return ("type" in (t = e) && t.type.$$typeof) === Jr ? eo : "$$typeof" in e ? Vi[e.$$typeof] : Wi;
1523
1520
  var t;
1524
1521
  }
1525
- var Qi = Object.defineProperty, ea = Object.getOwnPropertyNames, er = Object.getOwnPropertySymbols, ta = Object.getOwnPropertyDescriptor, na = Object.getPrototypeOf, tr = Object.prototype;
1526
- function io(e, t, n) {
1522
+ var Zi = Object.defineProperty, Yi = Object.getOwnPropertyNames, Xn = Object.getOwnPropertySymbols, qi = Object.getOwnPropertyDescriptor, Xi = Object.getPrototypeOf, Kn = Object.prototype;
1523
+ function to(e, t, n) {
1527
1524
  if (typeof t != "string") {
1528
- if (tr) {
1529
- var r = na(t);
1530
- r && r !== tr && io(e, r, n);
1525
+ if (Kn) {
1526
+ var r = Xi(t);
1527
+ r && r !== Kn && to(e, r, n);
1531
1528
  }
1532
- var o = ea(t);
1533
- er && (o = o.concat(er(t)));
1534
- for (var i = Qn(e), a = Qn(t), s = 0; s < o.length; ++s) {
1529
+ var o = Yi(t);
1530
+ Xn && (o = o.concat(Xn(t)));
1531
+ for (var i = qn(e), a = qn(t), s = 0; s < o.length; ++s) {
1535
1532
  var l = o[s];
1536
- if (!(l in Ki || n && n[l] || a && l in a || i && l in i)) {
1537
- var u = ta(t, l);
1533
+ if (!(l in Gi || n && n[l] || a && l in a || i && l in i)) {
1534
+ var u = qi(t, l);
1538
1535
  try {
1539
- Qi(e, l, u);
1536
+ Zi(e, l, u);
1540
1537
  } catch {
1541
1538
  }
1542
1539
  }
@@ -1547,13 +1544,13 @@ function io(e, t, n) {
1547
1544
  function ve(e) {
1548
1545
  return typeof e == "function";
1549
1546
  }
1550
- function vn(e) {
1547
+ function hn(e) {
1551
1548
  return typeof e == "object" && "styledComponentId" in e;
1552
1549
  }
1553
1550
  function de(e, t) {
1554
1551
  return e && t ? "".concat(e, " ").concat(t) : e || t || "";
1555
1552
  }
1556
- function qt(e, t) {
1553
+ function Zt(e, t) {
1557
1554
  if (e.length === 0) return "";
1558
1555
  for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
1559
1556
  return n;
@@ -1561,16 +1558,16 @@ function qt(e, t) {
1561
1558
  function Te(e) {
1562
1559
  return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
1563
1560
  }
1564
- function Xt(e, t, n) {
1561
+ function Yt(e, t, n) {
1565
1562
  if (n === void 0 && (n = !1), !n && !Te(e) && !Array.isArray(e)) return t;
1566
- if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Xt(e[r], t[r]);
1567
- else if (Te(t)) for (var r in t) e[r] = Xt(e[r], t[r]);
1563
+ if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = Yt(e[r], t[r]);
1564
+ else if (Te(t)) for (var r in t) e[r] = Yt(e[r], t[r]);
1568
1565
  return e;
1569
1566
  }
1570
- function Cn(e, t) {
1567
+ function mn(e, t) {
1571
1568
  Object.defineProperty(e, "toString", { value: t });
1572
1569
  }
1573
- var ra = $.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1570
+ var Ki = $.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
1574
1571
 
1575
1572
  `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
1576
1573
 
@@ -1612,7 +1609,7 @@ as for instance in your render method then you may be running into this limitati
1612
1609
  `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
1613
1610
  Has styled-components' style tag been unmounted or altered by another script?
1614
1611
  `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
1615
- function oa() {
1612
+ function Qi() {
1616
1613
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1617
1614
  for (var n = e[0], r = [], o = 1, i = e.length; o < i; o += 1) r.push(e[o]);
1618
1615
  return r.forEach(function(a) {
@@ -1621,9 +1618,9 @@ function oa() {
1621
1618
  }
1622
1619
  function X(e) {
1623
1620
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
1624
- return $.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(oa.apply(void 0, ge([ra[e]], t, !1)).trim());
1621
+ return $.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Qi.apply(void 0, ye([Ki[e]], t, !1)).trim());
1625
1622
  }
1626
- var ia = function() {
1623
+ var Ji = function() {
1627
1624
  function e(t) {
1628
1625
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1629
1626
  }
@@ -1646,50 +1643,50 @@ var ia = function() {
1646
1643
  }, e.prototype.getGroup = function(t) {
1647
1644
  var n = "";
1648
1645
  if (t >= this.length || this.groupSizes[t] === 0) return n;
1649
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, a = o; a < i; a++) n += "".concat(this.tag.getRule(a)).concat(yn);
1646
+ for (var r = this.groupSizes[t], o = this.indexOfGroup(t), i = o + r, a = o; a < i; a++) n += "".concat(this.tag.getRule(a)).concat(_n);
1650
1647
  return n;
1651
1648
  }, e;
1652
- }(), aa = 1 << 30, ft = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ new Map(), dt = 1, ot = function(e) {
1653
- if (ft.has(e)) return ft.get(e);
1654
- for (; gt.has(dt); ) dt++;
1655
- var t = dt++;
1656
- if ($.NODE_ENV !== "production" && ((0 | t) < 0 || t > aa)) throw X(16, "".concat(t));
1657
- return ft.set(e, t), gt.set(t, e), t;
1658
- }, sa = function(e, t) {
1659
- dt = t + 1, ft.set(e, t), gt.set(t, e);
1660
- }, ca = "style[".concat(ye, "][").concat(Kr, '="').concat(Et, '"]'), la = new RegExp("^".concat(ye, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ua = function(e, t, n) {
1649
+ }(), ea = 1 << 30, ut = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), ft = 1, rt = function(e) {
1650
+ if (ut.has(e)) return ut.get(e);
1651
+ for (; mt.has(ft); ) ft++;
1652
+ var t = ft++;
1653
+ if ($.NODE_ENV !== "production" && ((0 | t) < 0 || t > ea)) throw X(16, "".concat(t));
1654
+ return ut.set(e, t), mt.set(t, e), t;
1655
+ }, ta = function(e, t) {
1656
+ ft = t + 1, ut.set(e, t), mt.set(t, e);
1657
+ }, na = "style[".concat(ge, "][").concat(Zr, '="').concat(bt, '"]'), ra = new RegExp("^".concat(ge, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), oa = function(e, t, n) {
1661
1658
  for (var r, o = n.split(","), i = 0, a = o.length; i < a; i++) (r = o[i]) && e.registerName(t, r);
1662
- }, fa = function(e, t) {
1663
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(yn), o = [], i = 0, a = r.length; i < a; i++) {
1659
+ }, ia = function(e, t) {
1660
+ for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(_n), o = [], i = 0, a = r.length; i < a; i++) {
1664
1661
  var s = r[i].trim();
1665
1662
  if (s) {
1666
- var l = s.match(la);
1663
+ var l = s.match(ra);
1667
1664
  if (l) {
1668
- var u = 0 | parseInt(l[1], 10), _ = l[2];
1669
- u !== 0 && (sa(_, u), ua(e, _, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
1665
+ var u = 0 | parseInt(l[1], 10), d = l[2];
1666
+ u !== 0 && (ta(d, u), oa(e, d, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
1670
1667
  } else o.push(s);
1671
1668
  }
1672
1669
  }
1673
- }, nr = function(e) {
1674
- for (var t = document.querySelectorAll(ca), n = 0, r = t.length; n < r; n++) {
1670
+ }, Qn = function(e) {
1671
+ for (var t = document.querySelectorAll(na), n = 0, r = t.length; n < r; n++) {
1675
1672
  var o = t[n];
1676
- o && o.getAttribute(ye) !== Xr && (fa(e, o), o.parentNode && o.parentNode.removeChild(o));
1673
+ o && o.getAttribute(ge) !== Vr && (ia(e, o), o.parentNode && o.parentNode.removeChild(o));
1677
1674
  }
1678
1675
  };
1679
- function da() {
1676
+ function aa() {
1680
1677
  return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1681
1678
  }
1682
- var ao = function(e) {
1679
+ var no = function(e) {
1683
1680
  var t = document.head, n = e || t, r = document.createElement("style"), o = function(s) {
1684
- var l = Array.from(s.querySelectorAll("style[".concat(ye, "]")));
1681
+ var l = Array.from(s.querySelectorAll("style[".concat(ge, "]")));
1685
1682
  return l[l.length - 1];
1686
1683
  }(n), i = o !== void 0 ? o.nextSibling : null;
1687
- r.setAttribute(ye, Xr), r.setAttribute(Kr, Et);
1688
- var a = da();
1684
+ r.setAttribute(ge, Vr), r.setAttribute(Zr, bt);
1685
+ var a = aa();
1689
1686
  return a && r.setAttribute("nonce", a), n.insertBefore(r, i), r;
1690
- }, _a = function() {
1687
+ }, sa = function() {
1691
1688
  function e(t) {
1692
- this.element = ao(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1689
+ this.element = no(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1693
1690
  if (n.sheet) return n.sheet;
1694
1691
  for (var r = document.styleSheets, o = 0, i = r.length; o < i; o++) {
1695
1692
  var a = r[o];
@@ -1710,9 +1707,9 @@ var ao = function(e) {
1710
1707
  var n = this.sheet.cssRules[t];
1711
1708
  return n && n.cssText ? n.cssText : "";
1712
1709
  }, e;
1713
- }(), ha = function() {
1710
+ }(), ca = function() {
1714
1711
  function e(t) {
1715
- this.element = ao(t), this.nodes = this.element.childNodes, this.length = 0;
1712
+ this.element = no(t), this.nodes = this.element.childNodes, this.length = 0;
1716
1713
  }
1717
1714
  return e.prototype.insertRule = function(t, n) {
1718
1715
  if (t <= this.length && t >= 0) {
@@ -1725,7 +1722,7 @@ var ao = function(e) {
1725
1722
  }, e.prototype.getRule = function(t) {
1726
1723
  return t < this.length ? this.nodes[t].textContent : "";
1727
1724
  }, e;
1728
- }(), pa = function() {
1725
+ }(), la = function() {
1729
1726
  function e(t) {
1730
1727
  this.rules = [], this.length = 0;
1731
1728
  }
@@ -1736,172 +1733,172 @@ var ao = function(e) {
1736
1733
  }, e.prototype.getRule = function(t) {
1737
1734
  return t < this.length ? this.rules[t] : "";
1738
1735
  }, e;
1739
- }(), rr = mt, ma = { isServer: !mt, useCSSOMInjection: !Wi }, so = function() {
1736
+ }(), Jn = ht, ua = { isServer: !ht, useCSSOMInjection: !Di }, ro = function() {
1740
1737
  function e(t, n, r) {
1741
1738
  t === void 0 && (t = xe), n === void 0 && (n = {});
1742
1739
  var o = this;
1743
- this.options = P(P({}, ma), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && mt && rr && (rr = !1, nr(this)), Cn(this, function() {
1740
+ this.options = R(R({}, ua), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && ht && Jn && (Jn = !1, Qn(this)), mn(this, function() {
1744
1741
  return function(i) {
1745
1742
  for (var a = i.getTag(), s = a.length, l = "", u = function(c) {
1746
- var h = function(m) {
1747
- return gt.get(m);
1743
+ var _ = function(m) {
1744
+ return mt.get(m);
1748
1745
  }(c);
1749
- if (h === void 0) return "continue";
1750
- var f = i.names.get(h), p = a.getGroup(c);
1751
- if (f === void 0 || !f.size || p.length === 0) return "continue";
1752
- var y = "".concat(ye, ".g").concat(c, '[id="').concat(h, '"]'), v = "";
1746
+ if (_ === void 0) return "continue";
1747
+ var f = i.names.get(_), h = a.getGroup(c);
1748
+ if (f === void 0 || !f.size || h.length === 0) return "continue";
1749
+ var g = "".concat(ge, ".g").concat(c, '[id="').concat(_, '"]'), v = "";
1753
1750
  f !== void 0 && f.forEach(function(m) {
1754
1751
  m.length > 0 && (v += "".concat(m, ","));
1755
- }), l += "".concat(p).concat(y, '{content:"').concat(v, '"}').concat(yn);
1756
- }, _ = 0; _ < s; _++) u(_);
1752
+ }), l += "".concat(h).concat(g, '{content:"').concat(v, '"}').concat(_n);
1753
+ }, d = 0; d < s; d++) u(d);
1757
1754
  return l;
1758
1755
  }(o);
1759
1756
  });
1760
1757
  }
1761
1758
  return e.registerId = function(t) {
1762
- return ot(t);
1759
+ return rt(t);
1763
1760
  }, e.prototype.rehydrate = function() {
1764
- !this.server && mt && nr(this);
1761
+ !this.server && ht && Qn(this);
1765
1762
  }, e.prototype.reconstructWithOptions = function(t, n) {
1766
- return n === void 0 && (n = !0), new e(P(P({}, this.options), t), this.gs, n && this.names || void 0);
1763
+ return n === void 0 && (n = !0), new e(R(R({}, this.options), t), this.gs, n && this.names || void 0);
1767
1764
  }, e.prototype.allocateGSInstance = function(t) {
1768
1765
  return this.gs[t] = (this.gs[t] || 0) + 1;
1769
1766
  }, e.prototype.getTag = function() {
1770
1767
  return this.tag || (this.tag = (t = function(n) {
1771
1768
  var r = n.useCSSOMInjection, o = n.target;
1772
- return n.isServer ? new pa(o) : r ? new _a(o) : new ha(o);
1773
- }(this.options), new ia(t)));
1769
+ return n.isServer ? new la(o) : r ? new sa(o) : new ca(o);
1770
+ }(this.options), new Ji(t)));
1774
1771
  var t;
1775
1772
  }, e.prototype.hasNameForId = function(t, n) {
1776
1773
  return this.names.has(t) && this.names.get(t).has(n);
1777
1774
  }, e.prototype.registerName = function(t, n) {
1778
- if (ot(t), this.names.has(t)) this.names.get(t).add(n);
1775
+ if (rt(t), this.names.has(t)) this.names.get(t).add(n);
1779
1776
  else {
1780
1777
  var r = /* @__PURE__ */ new Set();
1781
1778
  r.add(n), this.names.set(t, r);
1782
1779
  }
1783
1780
  }, e.prototype.insertRules = function(t, n, r) {
1784
- this.registerName(t, n), this.getTag().insertRules(ot(t), r);
1781
+ this.registerName(t, n), this.getTag().insertRules(rt(t), r);
1785
1782
  }, e.prototype.clearNames = function(t) {
1786
1783
  this.names.has(t) && this.names.get(t).clear();
1787
1784
  }, e.prototype.clearRules = function(t) {
1788
- this.getTag().clearGroup(ot(t)), this.clearNames(t);
1785
+ this.getTag().clearGroup(rt(t)), this.clearNames(t);
1789
1786
  }, e.prototype.clearTag = function() {
1790
1787
  this.tag = void 0;
1791
1788
  }, e;
1792
- }(), ga = /&/g, ya = /^\s*\/\/.*$/gm;
1793
- function co(e, t) {
1789
+ }(), fa = /&/g, da = /^\s*\/\/.*$/gm;
1790
+ function oo(e, t) {
1794
1791
  return e.map(function(n) {
1795
1792
  return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
1796
1793
  return "".concat(t, " ").concat(r);
1797
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = co(n.children, t)), n;
1794
+ })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = oo(n.children, t)), n;
1798
1795
  });
1799
1796
  }
1800
- function lo(e) {
1801
- var t, n, r, o = e === void 0 ? xe : e, i = o.options, a = i === void 0 ? xe : i, s = o.plugins, l = s === void 0 ? $t : s, u = function(h, f, p) {
1802
- return p.startsWith(n) && p.endsWith(n) && p.replaceAll(n, "").length > 0 ? ".".concat(t) : h;
1803
- }, _ = l.slice();
1804
- _.push(function(h) {
1805
- h.type === Ct && h.value.includes("&") && (h.props[0] = h.props[0].replace(ga, n).replace(r, u));
1806
- }), a.prefix && _.push(Bi), _.push(Hi);
1807
- var c = function(h, f, p, y) {
1808
- f === void 0 && (f = ""), p === void 0 && (p = ""), y === void 0 && (y = "&"), t = y, n = f, r = new RegExp("\\".concat(n, "\\b"), "g");
1809
- var v = h.replace(ya, ""), m = Mi(p || f ? "".concat(p, " ").concat(f, " { ").concat(v, " }") : v);
1810
- a.namespace && (m = co(m, a.namespace));
1811
- var g = [];
1812
- return pt(m, Ui(_.concat(zi(function(k) {
1813
- return g.push(k);
1814
- })))), g;
1797
+ function io(e) {
1798
+ var t, n, r, o = e === void 0 ? xe : e, i = o.options, a = i === void 0 ? xe : i, s = o.plugins, l = s === void 0 ? St : s, u = function(_, f, h) {
1799
+ return h.startsWith(n) && h.endsWith(n) && h.replaceAll(n, "").length > 0 ? ".".concat(t) : _;
1800
+ }, d = l.slice();
1801
+ d.push(function(_) {
1802
+ _.type === gt && _.value.includes("&") && (_.props[0] = _.props[0].replace(fa, n).replace(r, u));
1803
+ }), a.prefix && d.push(Li), d.push(Ai);
1804
+ var c = function(_, f, h, g) {
1805
+ f === void 0 && (f = ""), h === void 0 && (h = ""), g === void 0 && (g = "&"), t = g, n = f, r = new RegExp("\\".concat(n, "\\b"), "g");
1806
+ var v = _.replace(da, ""), m = Oi(h || f ? "".concat(h, " ").concat(f, " { ").concat(v, " }") : v);
1807
+ a.namespace && (m = oo(m, a.namespace));
1808
+ var y = [];
1809
+ return _t(m, Pi(d.concat(Ri(function(k) {
1810
+ return y.push(k);
1811
+ })))), y;
1815
1812
  };
1816
- return c.hash = l.length ? l.reduce(function(h, f) {
1817
- return f.name || X(15), fe(h, f.name);
1818
- }, Jr).toString() : "", c;
1819
- }
1820
- var va = new so(), Kt = lo(), wn = re.createContext({ shouldForwardProp: void 0, styleSheet: va, stylis: Kt });
1821
- wn.Consumer;
1822
- var Ca = re.createContext(void 0);
1823
- function Jt() {
1824
- return Xe(wn);
1825
- }
1826
- function wa(e) {
1827
- var t = F(e.stylisPlugins), n = t[0], r = t[1], o = Jt().styleSheet, i = te(function() {
1813
+ return c.hash = l.length ? l.reduce(function(_, f) {
1814
+ return f.name || X(15), fe(_, f.name);
1815
+ }, Yr).toString() : "", c;
1816
+ }
1817
+ var pa = new ro(), qt = io(), yn = re.createContext({ shouldForwardProp: void 0, styleSheet: pa, stylis: qt });
1818
+ yn.Consumer;
1819
+ var _a = re.createContext(void 0);
1820
+ function Xt() {
1821
+ return Xe(yn);
1822
+ }
1823
+ function ha(e) {
1824
+ var t = U(e.stylisPlugins), n = t[0], r = t[1], o = Xt().styleSheet, i = te(function() {
1828
1825
  var l = o;
1829
1826
  return e.sheet ? l = e.sheet : e.target && (l = l.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (l = l.reconstructWithOptions({ useCSSOMInjection: !1 })), l;
1830
1827
  }, [e.disableCSSOMInjection, e.sheet, e.target, o]), a = te(function() {
1831
- return lo({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1828
+ return io({ options: { namespace: e.namespace, prefix: e.enableVendorPrefixes }, plugins: n });
1832
1829
  }, [e.enableVendorPrefixes, e.namespace, n]);
1833
1830
  ne(function() {
1834
- Si(n, e.stylisPlugins) || r(e.stylisPlugins);
1831
+ yi(n, e.stylisPlugins) || r(e.stylisPlugins);
1835
1832
  }, [e.stylisPlugins]);
1836
1833
  var s = te(function() {
1837
1834
  return { shouldForwardProp: e.shouldForwardProp, styleSheet: i, stylis: a };
1838
1835
  }, [e.shouldForwardProp, i, a]);
1839
- return re.createElement(wn.Provider, { value: s }, re.createElement(Ca.Provider, { value: a }, e.children));
1836
+ return re.createElement(yn.Provider, { value: s }, re.createElement(_a.Provider, { value: a }, e.children));
1840
1837
  }
1841
- var Qt = function() {
1838
+ var Kt = function() {
1842
1839
  function e(t, n) {
1843
1840
  var r = this;
1844
1841
  this.inject = function(o, i) {
1845
- i === void 0 && (i = Kt);
1842
+ i === void 0 && (i = qt);
1846
1843
  var a = r.name + i.hash;
1847
1844
  o.hasNameForId(r.id, a) || o.insertRules(r.id, a, i(r.rules, a, "@keyframes"));
1848
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Cn(this, function() {
1845
+ }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, mn(this, function() {
1849
1846
  throw X(12, String(r.name));
1850
1847
  });
1851
1848
  }
1852
1849
  return e.prototype.getName = function(t) {
1853
- return t === void 0 && (t = Kt), this.name + t.hash;
1850
+ return t === void 0 && (t = qt), this.name + t.hash;
1854
1851
  }, e;
1855
- }(), ba = function(e) {
1852
+ }(), ma = function(e) {
1856
1853
  return e >= "A" && e <= "Z";
1857
1854
  };
1858
- function or(e) {
1855
+ function er(e) {
1859
1856
  for (var t = "", n = 0; n < e.length; n++) {
1860
1857
  var r = e[n];
1861
1858
  if (n === 1 && r === "-" && e[0] === "-") return e;
1862
- ba(r) ? t += "-" + r.toLowerCase() : t += r;
1859
+ ma(r) ? t += "-" + r.toLowerCase() : t += r;
1863
1860
  }
1864
1861
  return t.startsWith("ms-") ? "-" + t : t;
1865
1862
  }
1866
- var uo = function(e) {
1863
+ var ao = function(e) {
1867
1864
  return e == null || e === !1 || e === "";
1868
- }, fo = function(e) {
1865
+ }, so = function(e) {
1869
1866
  var t, n, r = [];
1870
1867
  for (var o in e) {
1871
1868
  var i = e[o];
1872
- e.hasOwnProperty(o) && !uo(i) && (Array.isArray(i) && i.isCss || ve(i) ? r.push("".concat(or(o), ":"), i, ";") : Te(i) ? r.push.apply(r, ge(ge(["".concat(o, " {")], fo(i), !1), ["}"], !1)) : r.push("".concat(or(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Fi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1869
+ e.hasOwnProperty(o) && !ao(i) && (Array.isArray(i) && i.isCss || ve(i) ? r.push("".concat(er(o), ":"), i, ";") : Te(i) ? r.push.apply(r, ye(ye(["".concat(o, " {")], so(i), !1), ["}"], !1)) : r.push("".concat(er(o), ": ").concat((t = o, (n = i) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Mi || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1873
1870
  }
1874
1871
  return r;
1875
1872
  };
1876
1873
  function me(e, t, n, r) {
1877
- if (uo(e)) return [];
1878
- if (vn(e)) return [".".concat(e.styledComponentId)];
1874
+ if (ao(e)) return [];
1875
+ if (hn(e)) return [".".concat(e.styledComponentId)];
1879
1876
  if (ve(e)) {
1880
1877
  if (!ve(i = e) || i.prototype && i.prototype.isReactComponent || !t) return [e];
1881
1878
  var o = e(t);
1882
- return $.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Qt || Te(o) || o === null || console.error("".concat(to(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), me(o, t, n, r);
1879
+ return $.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Kt || Te(o) || o === null || console.error("".concat(Kr(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), me(o, t, n, r);
1883
1880
  }
1884
1881
  var i;
1885
- return e instanceof Qt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? fo(e) : Array.isArray(e) ? Array.prototype.concat.apply($t, e.map(function(a) {
1882
+ return e instanceof Kt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Te(e) ? so(e) : Array.isArray(e) ? Array.prototype.concat.apply(St, e.map(function(a) {
1886
1883
  return me(a, t, n, r);
1887
1884
  })) : [e.toString()];
1888
1885
  }
1889
- function Sa(e) {
1886
+ function ya(e) {
1890
1887
  for (var t = 0; t < e.length; t += 1) {
1891
1888
  var n = e[t];
1892
- if (ve(n) && !vn(n)) return !1;
1889
+ if (ve(n) && !hn(n)) return !1;
1893
1890
  }
1894
1891
  return !0;
1895
1892
  }
1896
- var Ea = Qr(Et), $a = function() {
1893
+ var ga = qr(bt), va = function() {
1897
1894
  function e(t, n, r) {
1898
- this.rules = t, this.staticRulesId = "", this.isStatic = $.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Sa(t), this.componentId = n, this.baseHash = fe(Ea, n), this.baseStyle = r, so.registerId(n);
1895
+ this.rules = t, this.staticRulesId = "", this.isStatic = $.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ya(t), this.componentId = n, this.baseHash = fe(ga, n), this.baseStyle = r, ro.registerId(n);
1899
1896
  }
1900
1897
  return e.prototype.generateAndInjectStyles = function(t, n, r) {
1901
1898
  var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1902
1899
  if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = de(o, this.staticRulesId);
1903
1900
  else {
1904
- var i = qt(me(this.rules, t, n, r)), a = Yt(fe(this.baseHash, i) >>> 0);
1901
+ var i = Zt(me(this.rules, t, n, r)), a = Vt(fe(this.baseHash, i) >>> 0);
1905
1902
  if (!n.hasNameForId(this.componentId, a)) {
1906
1903
  var s = r(i, ".".concat(a), void 0, this.componentId);
1907
1904
  n.insertRules(this.componentId, a, s);
@@ -1909,16 +1906,16 @@ var Ea = Qr(Et), $a = function() {
1909
1906
  o = de(o, a), this.staticRulesId = a;
1910
1907
  }
1911
1908
  else {
1912
- for (var l = fe(this.baseHash, r.hash), u = "", _ = 0; _ < this.rules.length; _++) {
1913
- var c = this.rules[_];
1909
+ for (var l = fe(this.baseHash, r.hash), u = "", d = 0; d < this.rules.length; d++) {
1910
+ var c = this.rules[d];
1914
1911
  if (typeof c == "string") u += c, $.NODE_ENV !== "production" && (l = fe(l, c));
1915
1912
  else if (c) {
1916
- var h = qt(me(c, t, n, r));
1917
- l = fe(l, h + _), u += h;
1913
+ var _ = Zt(me(c, t, n, r));
1914
+ l = fe(l, _ + d), u += _;
1918
1915
  }
1919
1916
  }
1920
1917
  if (u) {
1921
- var f = Yt(l >>> 0);
1918
+ var f = Vt(l >>> 0);
1922
1919
  n.hasNameForId(this.componentId, f) || n.insertRules(this.componentId, f, r(u, ".".concat(f), void 0, this.componentId)), o = de(o, f);
1923
1920
  }
1924
1921
  }
@@ -1926,12 +1923,12 @@ var Ea = Qr(Et), $a = function() {
1926
1923
  }, e;
1927
1924
  }(), Ve = re.createContext(void 0);
1928
1925
  Ve.Consumer;
1929
- function _o() {
1926
+ function co() {
1930
1927
  var e = Xe(Ve);
1931
1928
  if (!e) throw X(18);
1932
1929
  return e;
1933
1930
  }
1934
- function ka(e) {
1931
+ function Ca(e) {
1935
1932
  var t = re.useContext(Ve), n = te(function() {
1936
1933
  return function(r, o) {
1937
1934
  if (!r) throw X(14);
@@ -1941,63 +1938,63 @@ function ka(e) {
1941
1938
  return i;
1942
1939
  }
1943
1940
  if (Array.isArray(r) || typeof r != "object") throw X(8);
1944
- return o ? P(P({}, o), r) : r;
1941
+ return o ? R(R({}, o), r) : r;
1945
1942
  }(e.theme, t);
1946
1943
  }, [e.theme, t]);
1947
1944
  return e.children ? re.createElement(Ve.Provider, { value: n }, e.children) : null;
1948
1945
  }
1949
- var Dt = {}, ir = /* @__PURE__ */ new Set();
1950
- function Na(e, t, n) {
1951
- var r = vn(e), o = e, i = !Mt(e), a = t.attrs, s = a === void 0 ? $t : a, l = t.componentId, u = l === void 0 ? function(E, x) {
1952
- var S = typeof E != "string" ? "sc" : Kn(E);
1953
- Dt[S] = (Dt[S] || 0) + 1;
1954
- var C = "".concat(S, "-").concat(eo(Et + S + Dt[S]));
1946
+ var Lt = {}, tr = /* @__PURE__ */ new Set();
1947
+ function wa(e, t, n) {
1948
+ var r = hn(e), o = e, i = !Rt(e), a = t.attrs, s = a === void 0 ? St : a, l = t.componentId, u = l === void 0 ? function(E, x) {
1949
+ var S = typeof E != "string" ? "sc" : Zn(E);
1950
+ Lt[S] = (Lt[S] || 0) + 1;
1951
+ var C = "".concat(S, "-").concat(Xr(bt + S + Lt[S]));
1955
1952
  return x ? "".concat(x, "-").concat(C) : C;
1956
- }(t.displayName, t.parentComponentId) : l, _ = t.displayName, c = _ === void 0 ? function(E) {
1957
- return Mt(E) ? "styled.".concat(E) : "Styled(".concat(to(E), ")");
1958
- }(e) : _, h = t.displayName && t.componentId ? "".concat(Kn(t.displayName), "-").concat(t.componentId) : t.componentId || u, f = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, p = t.shouldForwardProp;
1953
+ }(t.displayName, t.parentComponentId) : l, d = t.displayName, c = d === void 0 ? function(E) {
1954
+ return Rt(E) ? "styled.".concat(E) : "Styled(".concat(Kr(E), ")");
1955
+ }(e) : d, _ = t.displayName && t.componentId ? "".concat(Zn(t.displayName), "-").concat(t.componentId) : t.componentId || u, f = r && o.attrs ? o.attrs.concat(s).filter(Boolean) : s, h = t.shouldForwardProp;
1959
1956
  if (r && o.shouldForwardProp) {
1960
- var y = o.shouldForwardProp;
1957
+ var g = o.shouldForwardProp;
1961
1958
  if (t.shouldForwardProp) {
1962
1959
  var v = t.shouldForwardProp;
1963
- p = function(E, x) {
1964
- return y(E, x) && v(E, x);
1960
+ h = function(E, x) {
1961
+ return g(E, x) && v(E, x);
1965
1962
  };
1966
- } else p = y;
1963
+ } else h = g;
1967
1964
  }
1968
- var m = new $a(n, h, r ? o.componentStyle : void 0);
1969
- function g(E, x) {
1965
+ var m = new va(n, _, r ? o.componentStyle : void 0);
1966
+ function y(E, x) {
1970
1967
  return function(S, C, M) {
1971
- var H = S.attrs, Re = S.componentStyle, U = S.defaultProps, ce = S.foldedComponentIds, Sn = S.styledComponentId, Co = S.target, wo = re.useContext(Ve), bo = Jt(), Nt = S.shouldForwardProp || bo.shouldForwardProp;
1972
- $.NODE_ENV !== "production" && ht(Sn);
1973
- var En = Gi(C, wo, U) || xe, K = function(Ke, Me, Je) {
1974
- for (var we, le = P(P({}, Me), { className: void 0, theme: Je }), Ot = 0; Ot < Ke.length; Ot += 1) {
1975
- var Qe = ve(we = Ke[Ot]) ? we(le) : we;
1976
- for (var oe in Qe) le[oe] = oe === "className" ? de(le[oe], Qe[oe]) : oe === "style" ? P(P({}, le[oe]), Qe[oe]) : Qe[oe];
1968
+ var H = S.attrs, Pe = S.componentStyle, B = S.defaultProps, ce = S.foldedComponentIds, vn = S.styledComponentId, mo = S.target, yo = re.useContext(Ve), go = Xt(), $t = S.shouldForwardProp || go.shouldForwardProp;
1969
+ $.NODE_ENV !== "production" && pt(vn);
1970
+ var Cn = Bi(C, yo, B) || xe, K = function(Ke, Me, Qe) {
1971
+ for (var we, le = R(R({}, Me), { className: void 0, theme: Qe }), xt = 0; xt < Ke.length; xt += 1) {
1972
+ var Je = ve(we = Ke[xt]) ? we(le) : we;
1973
+ for (var oe in Je) le[oe] = oe === "className" ? de(le[oe], Je[oe]) : oe === "style" ? R(R({}, le[oe]), Je[oe]) : Je[oe];
1977
1974
  }
1978
1975
  return Me.className && (le.className = de(le.className, Me.className)), le;
1979
- }(H, C, En), Pe = K.as || Co, Le = {};
1980
- for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme === En || (z === "forwardedAs" ? Le.as = K.forwardedAs : Nt && !Nt(z, Pe) || (Le[z] = K[z], Nt || $.NODE_ENV !== "development" || Fo(z) || ir.has(z) || !Zt.has(Pe) || (ir.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1981
- var xt = function(Ke, Me) {
1982
- var Je = Jt(), we = Ke.generateAndInjectStyles(Me, Je.styleSheet, Je.stylis);
1983
- return $.NODE_ENV !== "production" && ht(we), we;
1984
- }(Re, K);
1985
- $.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(xt);
1986
- var Tt = de(ce, Sn);
1987
- return xt && (Tt += " " + xt), K.className && (Tt += " " + K.className), Le[Mt(Pe) && !Zt.has(Pe) ? "class" : "className"] = Tt, M && (Le.ref = M), L(Pe, Le);
1976
+ }(H, C, Cn), Re = K.as || mo, Le = {};
1977
+ for (var z in K) K[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && K.theme === Cn || (z === "forwardedAs" ? Le.as = K.forwardedAs : $t && !$t(z, Re) || (Le[z] = K[z], $t || $.NODE_ENV !== "development" || Mo(z) || tr.has(z) || !Gt.has(Re) || (tr.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1978
+ var kt = function(Ke, Me) {
1979
+ var Qe = Xt(), we = Ke.generateAndInjectStyles(Me, Qe.styleSheet, Qe.stylis);
1980
+ return $.NODE_ENV !== "production" && pt(we), we;
1981
+ }(Pe, K);
1982
+ $.NODE_ENV !== "production" && S.warnTooManyClasses && S.warnTooManyClasses(kt);
1983
+ var Nt = de(ce, vn);
1984
+ return kt && (Nt += " " + kt), K.className && (Nt += " " + K.className), Le[Rt(Re) && !Gt.has(Re) ? "class" : "className"] = Nt, M && (Le.ref = M), L(Re, Le);
1988
1985
  }(k, E, x);
1989
1986
  }
1990
- g.displayName = c;
1991
- var k = re.forwardRef(g);
1992
- return k.attrs = f, k.componentStyle = m, k.displayName = c, k.shouldForwardProp = p, k.foldedComponentIds = r ? de(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = h, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1987
+ y.displayName = c;
1988
+ var k = re.forwardRef(y);
1989
+ return k.attrs = f, k.componentStyle = m, k.displayName = c, k.shouldForwardProp = h, k.foldedComponentIds = r ? de(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = _, k.target = r ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
1993
1990
  return this._foldedDefaultProps;
1994
1991
  }, set: function(E) {
1995
1992
  this._foldedDefaultProps = r ? function(x) {
1996
1993
  for (var S = [], C = 1; C < arguments.length; C++) S[C - 1] = arguments[C];
1997
- for (var M = 0, H = S; M < H.length; M++) Xt(x, H[M], !0);
1994
+ for (var M = 0, H = S; M < H.length; M++) Yt(x, H[M], !0);
1998
1995
  return x;
1999
1996
  }({}, o.defaultProps, E) : E;
2000
- } }), $.NODE_ENV !== "production" && (ji(c, h), k.warnTooManyClasses = /* @__PURE__ */ function(E, x) {
1997
+ } }), $.NODE_ENV !== "production" && (Hi(c, _), k.warnTooManyClasses = /* @__PURE__ */ function(E, x) {
2001
1998
  var S = {}, C = !1;
2002
1999
  return function(M) {
2003
2000
  if (!C && (S[M] = !0, Object.keys(S).length >= 200)) {
@@ -2014,59 +2011,59 @@ Example:
2014
2011
  <Component />`), C = !0, S = {};
2015
2012
  }
2016
2013
  };
2017
- }(c, h)), Cn(k, function() {
2014
+ }(c, _)), mn(k, function() {
2018
2015
  return ".".concat(k.styledComponentId);
2019
- }), i && io(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2016
+ }), i && to(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
2020
2017
  }
2021
- function ar(e, t) {
2018
+ function nr(e, t) {
2022
2019
  for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2023
2020
  return n;
2024
2021
  }
2025
- var sr = function(e) {
2022
+ var rr = function(e) {
2026
2023
  return Object.assign(e, { isCss: !0 });
2027
2024
  };
2028
- function bn(e) {
2025
+ function gn(e) {
2029
2026
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2030
- if (ve(e) || Te(e)) return sr(me(ar($t, ge([e], t, !0))));
2027
+ if (ve(e) || Te(e)) return rr(me(nr(St, ye([e], t, !0))));
2031
2028
  var r = e;
2032
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? me(r) : sr(me(ar(r, t)));
2029
+ return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? me(r) : rr(me(nr(r, t)));
2033
2030
  }
2034
- function en(e, t, n) {
2031
+ function Qt(e, t, n) {
2035
2032
  if (n === void 0 && (n = xe), !t) throw X(1, t);
2036
2033
  var r = function(o) {
2037
2034
  for (var i = [], a = 1; a < arguments.length; a++) i[a - 1] = arguments[a];
2038
- return e(t, n, bn.apply(void 0, ge([o], i, !1)));
2035
+ return e(t, n, gn.apply(void 0, ye([o], i, !1)));
2039
2036
  };
2040
2037
  return r.attrs = function(o) {
2041
- return en(e, t, P(P({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
2038
+ return Qt(e, t, R(R({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
2042
2039
  }, r.withConfig = function(o) {
2043
- return en(e, t, P(P({}, n), o));
2040
+ return Qt(e, t, R(R({}, n), o));
2044
2041
  }, r;
2045
2042
  }
2046
- var ho = function(e) {
2047
- return en(Na, e);
2048
- }, D = ho;
2049
- Zt.forEach(function(e) {
2050
- D[e] = ho(e);
2043
+ var lo = function(e) {
2044
+ return Qt(wa, e);
2045
+ }, D = lo;
2046
+ Gt.forEach(function(e) {
2047
+ D[e] = lo(e);
2051
2048
  });
2052
- function kt(e) {
2049
+ function Et(e) {
2053
2050
  for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
2054
2051
  $.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
2055
- var r = qt(bn.apply(void 0, ge([e], t, !1))), o = eo(r);
2056
- return new Qt(o, r);
2052
+ var r = Zt(gn.apply(void 0, ye([e], t, !1))), o = Xr(r);
2053
+ return new Kt(o, r);
2057
2054
  }
2058
2055
  $.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
2059
2056
  Perhaps you're looking to import 'styled-components/native'?
2060
2057
  Read more about this at https://www.styled-components.com/docs/basics#react-native`);
2061
- var it = "__sc-".concat(ye, "__");
2062
- $.NODE_ENV !== "production" && $.NODE_ENV !== "test" && typeof window < "u" && (window[it] || (window[it] = 0), window[it] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2058
+ var ot = "__sc-".concat(ge, "__");
2059
+ $.NODE_ENV !== "production" && $.NODE_ENV !== "test" && typeof window < "u" && (window[ot] || (window[ot] = 0), window[ot] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
2063
2060
 
2064
- See https://s-c.sh/2BAXzed for more info.`), window[it] += 1);
2065
- const tn = {
2061
+ See https://s-c.sh/2BAXzed for more info.`), window[ot] += 1);
2062
+ const Jt = {
2066
2063
  LEFT: "left",
2067
2064
  RIGHT: "right"
2068
- }, cr = 0.24, xa = 24, Ta = 2, po = 14, Oa = 0.0276;
2069
- var Q = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(Q || {});
2065
+ }, or = 0.24, ba = 24, Sa = 2, uo = 14, Ea = 0.0276;
2066
+ var J = /* @__PURE__ */ ((e) => (e[e.S = 300] = "S", e[e.M = 400] = "M", e[e.L = 500] = "L", e[e.Default = 600] = "Default", e))(J || {});
2070
2067
  const ze = {
2071
2068
  300: {
2072
2069
  iconSize: 40,
@@ -2088,50 +2085,54 @@ const ze = {
2088
2085
  marginLeft: 12,
2089
2086
  buttonPadding: 24
2090
2087
  }
2091
- }, lr = {
2088
+ }, ir = {
2092
2089
  loading: { text: "Loading. Please wait.", visible: !0 },
2093
2090
  waiting: { text: "Waiting for input...", visible: !0 }
2094
- }, Ia = "rgba(19, 19, 19, 0.5)", Aa = 34, Ra = {
2095
- [B.CANDIDATE_SELECTION]: "Hold still…",
2096
- [B.PALM_CENTERING]: "Center your palm",
2097
- [B.PALM_NOT_PRESENT]: "Position your palm",
2098
- [B.PALM_TOO_FAR]: "Move closer",
2099
- [B.SHARPNESS_TOO_LOW]: "More light needed",
2100
- [B.BRIGHTNESS_TOO_LOW]: "More light needed",
2101
- [B.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2102
- [B.DEVICE_PITCHED]: "Hold your phone at eye level",
2103
- [B.PALM_TOO_CLOSE]: "Move back",
2104
- [B.TEMPLATE_EXTRACTION_QUALITY_TOO_LOW]: "More light needed"
2105
- }, Pa = tn.LEFT;
2106
- function ur(e, t) {
2107
- return Math.max(t, t + (e - 400) * Oa + 2);
2108
- }
2109
- const La = (e, t = po) => e ? e.width < e.height ? ur(e.width, t) : ur(e.height, t) : t, Ma = (e) => e > Q.Default ? ze[Q.Default] : e > Q.L ? ze[Q.L] : e > Q.M ? ze[Q.M] : ze[Q.S], Da = (e) => e ? Ma(e.width) : ze[Q.Default];
2110
- function Ha() {
2091
+ }, $a = "rgba(19, 19, 19, 0.5)", ka = 34, Na = {
2092
+ [F.CANDIDATE_SELECTION]: "Hold still…",
2093
+ [F.PALM_CENTERING]: "Center your palm",
2094
+ [F.PALM_NOT_PRESENT]: "Position your palm",
2095
+ [F.PALM_TOO_FAR]: "Move closer",
2096
+ [F.SHARPNESS_TOO_LOW]: "More light needed",
2097
+ [F.BRIGHTNESS_TOO_LOW]: "More light needed",
2098
+ [F.BRIGHTNESS_TOO_HIGH]: "Less light needed",
2099
+ [F.DEVICE_PITCHED]: "Hold your phone at eye level",
2100
+ [F.PALM_TOO_CLOSE]: "Move back",
2101
+ [F.TEMPLATE_EXTRACTION_QUALITY_TOO_LOW]: "More light needed"
2102
+ }, xa = Jt.LEFT;
2103
+ function ar(e, t) {
2104
+ return Math.max(t, t + (e - 400) * Ea + 2);
2105
+ }
2106
+ const Ta = (e, t = uo) => e ? e.width < e.height ? ar(e.width, t) : ar(e.height, t) : t, Oa = (e) => e > J.Default ? ze[J.Default] : e > J.L ? ze[J.L] : e > J.M ? ze[J.M] : ze[J.S], Ia = (e) => e ? Oa(e.width) : ze[J.Default];
2107
+ function Aa() {
2111
2108
  const e = "https://fonts.googleapis.com/css?family=Montserrat:600";
2112
2109
  if (!document.querySelector(`link[href="${e}"]`)) {
2113
2110
  const n = document.createElement("link");
2114
2111
  n.href = e, n.rel = "stylesheet", document.head.appendChild(n);
2115
2112
  }
2116
2113
  }
2117
- const je = kr(void 0);
2118
- je.displayName = "UiCustomizationContext";
2114
+ const We = br(void 0);
2115
+ We.displayName = "ConfigurationContext";
2119
2116
  function Ce() {
2120
- const e = Xe(je);
2117
+ const e = Xe(We);
2121
2118
  if (!e)
2122
2119
  throw new Error(
2123
- `${je.displayName} must be used within a ${je.displayName} Provider`
2120
+ `${We.displayName} must be used within a ${We.displayName} Provider`
2124
2121
  );
2125
2122
  return e;
2126
2123
  }
2127
- function Ua({ children: e, props: t, videoElementSize: n }) {
2128
- const { font: r } = _o(), o = te(
2129
- () => ({ ...t, videoElementSize: n, fontSize: La(n, r.minimumSize) }),
2124
+ function Pa({
2125
+ children: e,
2126
+ configuration: t,
2127
+ videoElementSize: n
2128
+ }) {
2129
+ const { font: r } = co(), o = te(
2130
+ () => ({ ...t, videoElementSize: n, fontSize: Ta(n, r.minimumSize) }),
2130
2131
  [t, r.minimumSize, n]
2131
2132
  );
2132
- return /* @__PURE__ */ d(je.Provider, { value: o, children: e });
2133
+ return /* @__PURE__ */ p(We.Provider, { value: o, children: e });
2133
2134
  }
2134
- const mo = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ d(
2135
+ const fo = ({ svgSize: e }) => /* @__PURE__ */ p("svg", { fill: "none", height: e, viewBox: "0 0 16 14", width: e, xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ p(
2135
2136
  "path",
2136
2137
  {
2137
2138
  clipRule: "evenodd",
@@ -2139,7 +2140,7 @@ const mo = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height:
2139
2140
  fill: "currentColor",
2140
2141
  fillRule: "evenodd"
2141
2142
  }
2142
- ) }), za = D.div`
2143
+ ) }), Ra = D.div`
2143
2144
  width: 100%;
2144
2145
  height: 100%;
2145
2146
  top: 0;
@@ -2158,14 +2159,14 @@ const mo = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height:
2158
2159
  aspect-ratio: 9/16;
2159
2160
  }
2160
2161
  `}
2161
- `, Ba = D.div`
2162
+ `, La = D.div`
2162
2163
  width: 100%;
2163
2164
  display: flex;
2164
2165
  flex-direction: column;
2165
2166
  justify-content: center;
2166
2167
  align-items: center;
2167
2168
  color: ${(e) => e.theme.colors.instructionTextColor};
2168
- `, Fa = D.p`
2169
+ `, Ma = D.p`
2169
2170
  background: ${(e) => e.theme.colors.instructionColor};
2170
2171
  border-radius: 0.25em;
2171
2172
  padding: 0.583em 0.666em;
@@ -2173,14 +2174,14 @@ const mo = ({ svgSize: e }) => /* @__PURE__ */ d("svg", { fill: "none", height:
2173
2174
  font-size: ${(e) => `${e.$fontSize}px`};
2174
2175
  line-height: 1em;
2175
2176
  max-width: 80%;
2176
- `, nn = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2177
+ `, en = ({ Icon: e, isCameraReady: t, position: n = "absolute", text: r }) => {
2177
2178
  const { fontSize: o } = Ce();
2178
- return /* @__PURE__ */ d(za, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ d(Ba, { children: [
2179
- e ? /* @__PURE__ */ d(e, { svgSize: o * 2 }) : null,
2180
- /* @__PURE__ */ d(Fa, { $fontSize: o, children: r })
2179
+ return /* @__PURE__ */ p(Ra, { $isCameraReady: t, $position: n, children: /* @__PURE__ */ p(La, { children: [
2180
+ e ? /* @__PURE__ */ p(e, { svgSize: o * 2 }) : null,
2181
+ /* @__PURE__ */ p(Ma, { $fontSize: o, children: r })
2181
2182
  ] }) });
2182
- }, go = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ d(nn, { Icon: mo, position: "relative", text: e });
2183
- class Wa extends G {
2183
+ }, po = ({ text: e = "An unknown error has occurred" }) => /* @__PURE__ */ p(en, { Icon: fo, position: "relative", text: e });
2184
+ class Da extends G {
2184
2185
  constructor(t) {
2185
2186
  super(t), this.state = { hasError: !1 };
2186
2187
  }
@@ -2191,21 +2192,32 @@ class Wa extends G {
2191
2192
  console.error(t, n);
2192
2193
  }
2193
2194
  render() {
2194
- return this.state.hasError ? /* @__PURE__ */ d(go, { Icon: mo, isCameraReady: !1 }) : this.props.children;
2195
+ return this.state.hasError ? /* @__PURE__ */ p(po, { Icon: fo, isCameraReady: !1 }) : this.props.children;
2195
2196
  }
2196
2197
  }
2197
- const ja = D.div`
2198
+ const Ha = D.div`
2198
2199
  font-family: ${(e) => e.theme.font.family};
2199
2200
  font-style: ${(e) => e.theme.font.style};
2200
2201
  font-weight: ${(e) => e.theme.font.weight};
2201
- `, Ga = ({ children: e, uiProps: t, videoElementSize: n }) => (ne(() => {
2202
- Ha();
2203
- }, []), /* @__PURE__ */ d(wa, { target: t.styleTarget, children: /* @__PURE__ */ d(ka, { theme: t.theme, children: /* @__PURE__ */ d(ja, { children: /* @__PURE__ */ d(Wa, { videoElementSize: n, children: /* @__PURE__ */ d(Ua, { props: t, videoElementSize: n, children: e }) }) }) }) })), Va = 0.85, Za = "dot-auto-capture-video", Se = (e, t) => {
2202
+ `;
2203
+ function Ba({
2204
+ children: e,
2205
+ uiConfiguration: t,
2206
+ videoElementSize: n
2207
+ }) {
2208
+ return ne(() => {
2209
+ Aa();
2210
+ }, []), /* @__PURE__ */ p(ha, { target: t.styleTarget, children: /* @__PURE__ */ p(Ca, { theme: t.styling.theme, children: /* @__PURE__ */ p(Ha, { children: /* @__PURE__ */ p(Da, { videoElementSize: n, children: /* @__PURE__ */ p(Pa, { configuration: t, videoElementSize: n, children: e }) }) }) }) });
2211
+ }
2212
+ const za = 0.85, Fa = "dot-auto-capture-video";
2213
+ function Se(e, t) {
2204
2214
  const n = qe(t);
2205
2215
  ne(() => {
2206
2216
  n.current = t;
2207
2217
  }, [t]), ne(
2208
2218
  () => {
2219
+ if (!e)
2220
+ return;
2209
2221
  const r = (o) => n.current(o);
2210
2222
  return document.addEventListener(e, r), () => {
2211
2223
  document.removeEventListener(e, r);
@@ -2214,9 +2226,9 @@ const ja = D.div`
2214
2226
  [e]
2215
2227
  // Re-run if eventName
2216
2228
  );
2217
- };
2218
- function Ya(e) {
2219
- const [t, n] = F(), r = he(
2229
+ }
2230
+ function Ua(e) {
2231
+ const [t, n] = U(), r = _e(
2220
2232
  (o) => {
2221
2233
  var i;
2222
2234
  n((i = o.detail) == null ? void 0 : i.size);
@@ -2225,29 +2237,29 @@ function Ya(e) {
2225
2237
  );
2226
2238
  return Se(e, r), Ie(() => {
2227
2239
  if (!t) {
2228
- const o = document.getElementById(Za);
2240
+ const o = document.getElementById(Fa);
2229
2241
  o && n(o.getBoundingClientRect());
2230
2242
  }
2231
2243
  }, [t, n]), t;
2232
2244
  }
2233
- function qa(e, t) {
2245
+ function ja(e, t) {
2234
2246
  return e ? `${e}, ${t}` : t;
2235
2247
  }
2236
- const Xa = {
2248
+ const Wa = {
2237
2249
  placeholderColor: "white",
2238
2250
  placeholderColorSuccess: "#00BFB2",
2239
2251
  instructionColor: "#F8FBFB",
2240
2252
  instructionColorSuccess: "#00BFB2",
2241
2253
  instructionTextColor: "#021B41;"
2242
- }, Ka = {
2254
+ }, Ga = {
2243
2255
  family: "Montserrat, Arial, sans-serif",
2244
2256
  weight: "600",
2245
2257
  style: "normal",
2246
- minimumSize: po
2258
+ minimumSize: uo
2247
2259
  }, De = {
2248
- colors: Xa,
2249
- font: Ka
2250
- }, Ja = (e) => {
2260
+ colors: Wa,
2261
+ font: Ga
2262
+ }, Va = (e) => {
2251
2263
  var t;
2252
2264
  return e ? {
2253
2265
  ...De,
@@ -2259,101 +2271,51 @@ const Xa = {
2259
2271
  font: {
2260
2272
  ...De.font,
2261
2273
  ...e.font,
2262
- family: qa((t = e.font) == null ? void 0 : t.family, De.font.family)
2274
+ family: ja((t = e.font) == null ? void 0 : t.family, De.font.family)
2263
2275
  }
2264
2276
  } : De;
2265
- }, yo = (e, t) => Math.min(e, t), Qa = ({ height: e, width: t }, n) => {
2266
- const r = yo(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2277
+ }, _o = (e, t) => Math.min(e, t), Za = ({ height: e, width: t }, n) => {
2278
+ const r = _o(t, e) * n, o = (t - r) / 2, i = (e - r) / 2;
2267
2279
  return {
2268
2280
  shiftX: o,
2269
2281
  shiftY: i,
2270
2282
  width: r,
2271
2283
  height: r
2272
2284
  };
2273
- }, es = (e, t) => {
2274
- const { height: n, shiftX: r, shiftY: o, width: i } = Qa(e, t);
2285
+ }, Ya = (e, t) => {
2286
+ const { height: n, shiftX: r, shiftY: o, width: i } = Za(e, t);
2275
2287
  return {
2276
2288
  shiftX: r / e.width,
2277
2289
  shiftY: o / e.height,
2278
2290
  width: i / e.width,
2279
2291
  height: n / e.height
2280
2292
  };
2281
- }, ts = (e) => es(e, Va), rn = (e, t) => {
2293
+ }, qa = (e) => Ya(e, za), Xa = (e, t) => {
2282
2294
  document.dispatchEvent(
2283
2295
  new CustomEvent(e, {
2284
2296
  detail: t
2285
2297
  })
2286
2298
  );
2287
- }, yt = class yt {
2288
- constructor() {
2289
- et(this, "lastDetails");
2290
- et(this, "delayedTime");
2291
- this.lastDetails = {}, this.delayedTime = 0;
2292
- }
2293
- // TODO remove singleton
2294
- static getInstance() {
2295
- return this._instance || (this._instance = new yt()), this._instance;
2296
- }
2297
- restart() {
2298
- this.lastDetails = {}, this.delayedTime = 0;
2299
- }
2300
- /**
2301
- * If the detail object has changed, save the new detail object and return true. Otherwise, return
2302
- * false
2303
- * @param {string} eventName - The name of the event.
2304
- * @param detail - This is the data that is passed to the event.
2305
- * @returns a boolean value.
2306
- */
2307
- isDetailChanged(t, n) {
2308
- return JSON.stringify(n) !== JSON.stringify(this.lastDetails[t]) ? (this.lastDetails[t] = n, !0) : !1;
2309
- }
2310
- /**
2311
- * If the detail of the event has changed, dispatch the event
2312
- * @param {string} eventName - The name of the event to dispatch.
2313
- * @param detail - Record<string, unknown>
2314
- */
2315
- dispatchCustomEventOnChange(t, n) {
2316
- this.isDetailChanged(t, n) && rn(t, n);
2317
- }
2318
- /**
2319
- * If the detail of the event has changed, delay time has passed, dispatch the event
2320
- * @param {string} eventName - The name of the event to dispatch.
2321
- * @param detail - Record<string, unknown>
2322
- * @param {number} delay - How long dispatch should be delayed.
2323
- */
2324
- dispatchDelayedCustomEventOnChange(t, n, r) {
2325
- const o = performance.now();
2326
- o - this.delayedTime > r && (this.dispatchCustomEventOnChange(t, n), this.delayedTime = o);
2327
- }
2328
- // implement this method in the class
2329
- dispatchCustomEvent(t, n) {
2330
- rn(t, n);
2331
- }
2332
- };
2333
- // TODO remove singleton
2334
- et(yt, "_instance");
2335
- let on = yt;
2336
- on.getInstance();
2337
- const fr = (e, t) => {
2338
- rn(e, {
2299
+ }, sr = (e, t) => {
2300
+ Xa(e, {
2339
2301
  instruction: t
2340
2302
  });
2341
2303
  };
2342
- async function ns() {
2304
+ async function Ka() {
2343
2305
  return navigator.mediaDevices.enumerateDevices();
2344
2306
  }
2345
- async function rs() {
2346
- return (await ns()).filter((t) => t.kind === "videoinput");
2307
+ async function Qa() {
2308
+ return (await Ka()).filter((t) => t.kind === "videoinput");
2347
2309
  }
2348
- const os = () => {
2349
- const [e, t] = F(!1);
2310
+ const Ja = () => {
2311
+ const [e, t] = U(!1);
2350
2312
  return ne(() => {
2351
2313
  (async () => {
2352
- (await rs()).length > 1 && t(!0);
2314
+ (await Qa()).length > 1 && t(!0);
2353
2315
  })();
2354
2316
  }, []), e;
2355
- }, is = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2356
- /* @__PURE__ */ d(
2317
+ }, es = ({ size: e }) => /* @__PURE__ */ p("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2318
+ /* @__PURE__ */ p(
2357
2319
  "path",
2358
2320
  {
2359
2321
  d: "M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",
@@ -2361,8 +2323,8 @@ const os = () => {
2361
2323
  fillOpacity: "0.3"
2362
2324
  }
2363
2325
  ),
2364
- /* @__PURE__ */ d("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2365
- /* @__PURE__ */ d(
2326
+ /* @__PURE__ */ p("circle", { cx: "17.5", cy: "24.5", fill: "white", r: "1.5" }),
2327
+ /* @__PURE__ */ p(
2366
2328
  "path",
2367
2329
  {
2368
2330
  d: "M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",
@@ -2370,8 +2332,8 @@ const os = () => {
2370
2332
  strokeWidth: "2"
2371
2333
  }
2372
2334
  ),
2373
- /* @__PURE__ */ d("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2374
- /* @__PURE__ */ d(
2335
+ /* @__PURE__ */ p("circle", { fill: "white", r: "1.5", transform: "matrix(-1 0 0 1 34.5 24.5)" }),
2336
+ /* @__PURE__ */ p(
2375
2337
  "path",
2376
2338
  {
2377
2339
  d: "M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",
@@ -2379,16 +2341,16 @@ const os = () => {
2379
2341
  strokeWidth: "2"
2380
2342
  }
2381
2343
  )
2382
- ] }), as = ({ size: e }) => /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2383
- /* @__PURE__ */ d("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2384
- /* @__PURE__ */ d(
2344
+ ] }), ts = ({ size: e }) => /* @__PURE__ */ p("svg", { fill: "none", height: e, viewBox: "0 0 52 52", width: "52", xmlns: "http://www.w3.org/2000/svg", children: [
2345
+ /* @__PURE__ */ p("circle", { cx: "26", cy: "26", fill: "#131313", fillOpacity: "0.3", r: "26" }),
2346
+ /* @__PURE__ */ p(
2385
2347
  "path",
2386
2348
  {
2387
2349
  d: "M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",
2388
2350
  fill: "white"
2389
2351
  }
2390
2352
  )
2391
- ] }), vo = D.button`
2353
+ ] }), ho = D.button`
2392
2354
  background: none;
2393
2355
  border: none;
2394
2356
  padding: 0;
@@ -2398,36 +2360,39 @@ const os = () => {
2398
2360
  &:disabled {
2399
2361
  cursor: not-allowed;
2400
2362
  }
2401
- `, ss = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ d(vo, { $marginLeft: e, ...n, children: /* @__PURE__ */ d(is, { size: t }) }), cs = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ d(vo, { $marginLeft: e, ...n, children: /* @__PURE__ */ d(as, { size: t }) }), ls = D.div`
2363
+ `, ns = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ p(ho, { $marginLeft: e, ...n, children: /* @__PURE__ */ p(es, { size: t }) }), rs = ({ marginLeft: e, size: t, ...n }) => /* @__PURE__ */ p(ho, { $marginLeft: e, ...n, children: /* @__PURE__ */ p(ts, { size: t }) }), os = D.div`
2402
2364
  position: absolute;
2403
2365
  top: 0;
2404
2366
  right: 0;
2405
2367
  padding: ${(e) => `${e.$padding}px`};
2406
2368
  z-index: 2;
2407
- `, us = ({
2369
+ `, is = ({
2408
2370
  customControlEvent: e,
2409
2371
  isSwitchCameraDisabled: t
2410
2372
  }) => {
2411
- const { showCameraButtons: n, videoElementSize: r } = Ce(), o = os();
2373
+ const {
2374
+ control: { showCameraButtons: n },
2375
+ videoElementSize: r
2376
+ } = Ce(), o = Ja();
2412
2377
  if (!n)
2413
2378
  return null;
2414
- const { buttonPadding: i, iconSize: a, marginLeft: s } = Da(r);
2415
- return /* @__PURE__ */ d(ls, { $padding: i, children: [
2416
- o && /* @__PURE__ */ d(cs, { disabled: t, onClick: () => {
2417
- fr(e, Tn.SWITCH_CAMERA);
2379
+ const { buttonPadding: i, iconSize: a, marginLeft: s } = Ia(r);
2380
+ return /* @__PURE__ */ p(os, { $padding: i, children: [
2381
+ o && /* @__PURE__ */ p(rs, { disabled: t, onClick: () => {
2382
+ sr(e, $n.SWITCH_CAMERA);
2418
2383
  }, size: a }),
2419
- /* @__PURE__ */ d(
2420
- ss,
2384
+ /* @__PURE__ */ p(
2385
+ ns,
2421
2386
  {
2422
2387
  marginLeft: o ? s : 0,
2423
2388
  onClick: () => {
2424
- fr(e, Tn.TOGGLE_MIRROR);
2389
+ sr(e, $n.TOGGLE_MIRROR);
2425
2390
  },
2426
2391
  size: a
2427
2392
  }
2428
2393
  )
2429
2394
  ] });
2430
- }, fs = "2.5s", ds = "0.3s", _s = "linear", hs = kt`
2395
+ }, as = "2.5s", ss = "0.3s", cs = "linear", ls = Et`
2431
2396
  0% {
2432
2397
  opacity: 0;
2433
2398
  }
@@ -2435,14 +2400,14 @@ const os = () => {
2435
2400
  opacity: 1;
2436
2401
  }
2437
2402
  `;
2438
- kt`
2403
+ Et`
2439
2404
  100% {
2440
2405
  transform: translate(-50%, -50%) scale(2.6);
2441
2406
  top: 50%;
2442
2407
  left: 50%;
2443
2408
  }
2444
2409
  `;
2445
- kt`
2410
+ Et`
2446
2411
  5% {
2447
2412
  transform: translate(-50%, -50%) scale(0.7);
2448
2413
  opacity: 1;
@@ -2466,7 +2431,7 @@ kt`
2466
2431
  opacity: 0.5;
2467
2432
  }
2468
2433
  `;
2469
- kt`
2434
+ Et`
2470
2435
  5% {
2471
2436
  opacity: 1;
2472
2437
  }
@@ -2479,16 +2444,16 @@ kt`
2479
2444
  opacity: 1;
2480
2445
  }
2481
2446
  `;
2482
- const ps = D.div`
2447
+ const us = D.div`
2483
2448
  position: absolute;
2484
2449
  left: 50%;
2485
2450
 
2486
2451
  ${(e) => e.$cssTop ? `top: ${e.$cssTop}%;` : ""}
2487
2452
  ${(e) => e.$cssBottom ? `bottom: ${e.$cssBottom}%;` : ""}
2488
- ${(e) => e.$isAnimating && bn`
2489
- animation: ${hs} ${ds}
2490
- ${_s} both;
2491
- animation-delay: ${fs};
2453
+ ${(e) => e.$isAnimating && gn`
2454
+ animation: ${ls} ${ss}
2455
+ ${cs} both;
2456
+ animation-delay: ${as};
2492
2457
 
2493
2458
  @media (orientation: landscape) {
2494
2459
  bottom: ${e.$cssBottom ? e.$cssBottom - 15 : ""}%;
@@ -2512,7 +2477,7 @@ const ps = D.div`
2512
2477
  ${(e) => e.$cssTop || e.$isPortrait ? "-50%" : e.$isPortrait ? "" : "50%"}
2513
2478
  );
2514
2479
  z-index: 2;
2515
- `, ms = D.div`
2480
+ `, fs = D.div`
2516
2481
  display: flex;
2517
2482
  align-items: center;
2518
2483
  justify-content: center;
@@ -2526,7 +2491,7 @@ const ps = D.div`
2526
2491
  line-height: 1em;
2527
2492
  font-size: ${(e) => `${e.$fontSize}px`};
2528
2493
  white-space: ${(e) => e.$wrap ? "break-spaces" : "nowrap"};
2529
- `, gs = ({
2494
+ `, ds = ({
2530
2495
  children: e,
2531
2496
  cssBottom: t,
2532
2497
  cssTop: n,
@@ -2535,16 +2500,16 @@ const ps = D.div`
2535
2500
  isPortrait: i
2536
2501
  }) => {
2537
2502
  const { fontSize: a } = Ce();
2538
- return /* @__PURE__ */ d(ps, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ d(
2539
- ms,
2503
+ return /* @__PURE__ */ p(us, { $cssBottom: t, $cssTop: n, $isAnimating: r, $isPortrait: i, children: /* @__PURE__ */ p(
2504
+ fs,
2540
2505
  {
2541
2506
  $fontSize: a,
2542
2507
  $isInCandidateSelection: o,
2543
- $wrap: e.length > Aa,
2508
+ $wrap: e.length > ka,
2544
2509
  children: e
2545
2510
  }
2546
2511
  ) });
2547
- }, ys = D.canvas`
2512
+ }, ps = D.canvas`
2548
2513
  transform: ${(e) => e.$isImageMirror ? "rotateY(180deg)" : "none"};
2549
2514
  position: absolute;
2550
2515
  top: 0;
@@ -2553,58 +2518,58 @@ const ps = D.div`
2553
2518
  height: 100%;
2554
2519
  z-index: 1;
2555
2520
  `;
2556
- function vs(e) {
2521
+ function _s(e) {
2557
2522
  const t = e.getContext("2d");
2558
2523
  t && t.clearRect(0, 0, t.canvas.width, t.canvas.height);
2559
2524
  }
2560
- const Be = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), dr = (e, t, n) => {
2525
+ const Fe = (e, t) => Math.hypot(t.x - e.x, t.y - e.y), cr = (e, t, n) => {
2561
2526
  const r = (t.x - e.x) * n, o = (t.y - e.y) * n;
2562
2527
  return {
2563
2528
  x: e.x + r,
2564
2529
  y: e.y + o
2565
2530
  };
2566
- }, _r = (e, t, n, r) => {
2567
- const o = Be(e, t);
2531
+ }, lr = (e, t, n, r) => {
2532
+ const o = Fe(e, t);
2568
2533
  return n * r / o;
2569
- }, Cs = (e) => {
2570
- const { bottomLeft: t, bottomRight: n, topLeft: r, topRight: o } = e, i = Be(r, o), a = Be(o, n), s = Be(t, n), l = Be(r, t);
2534
+ }, hs = (e) => {
2535
+ const { bottomLeft: t, bottomRight: n, topLeft: r, topRight: o } = e, i = Fe(r, o), a = Fe(o, n), s = Fe(t, n), l = Fe(r, t);
2571
2536
  return Math.min(i, a, s, l);
2572
2537
  };
2573
- function ws({ cameraResolution: e, isImageMirror: t }) {
2574
- const n = qe(null), r = _o(), [o, i] = F(), a = he(
2538
+ function ms({ cameraResolution: e, isImageMirror: t }) {
2539
+ const n = qe(null), r = co(), [o, i] = U(), a = _e(
2575
2540
  (s) => {
2576
2541
  var l;
2577
2542
  i((l = s == null ? void 0 : s.detail) == null ? void 0 : l.detectedObject);
2578
2543
  },
2579
2544
  [i]
2580
2545
  );
2581
- return Se(xr.DETECTED_DOCUMENT_CHANGED, a), Se(_e.DETECTED_PALM_CHANGED, a), ne(() => {
2546
+ return Se(Er.DETECTION_CHANGED, a), Se(pe.DETECTION_CHANGED, a), ne(() => {
2582
2547
  if (!n.current)
2583
2548
  return;
2584
- const s = (u, _, c, h) => {
2585
- var g;
2586
- const f = _r(
2587
- _,
2549
+ const s = (u, d, c, _) => {
2550
+ var y;
2551
+ const f = lr(
2552
+ d,
2588
2553
  u,
2589
- h,
2590
- cr
2591
- ), p = _r(
2592
2554
  _,
2555
+ or
2556
+ ), h = lr(
2557
+ d,
2593
2558
  c,
2594
- h,
2595
- cr
2596
- ), y = dr(_, u, f), v = dr(_, c, p), m = (g = n == null ? void 0 : n.current) == null ? void 0 : g.getContext("2d");
2597
- m && (m.beginPath(), m.lineWidth = Ta, m.strokeStyle = r.colors.placeholderColor, m.moveTo(y.x, y.y), m.arcTo(_.x, _.y, v.x, v.y, xa), m.lineTo(v.x, v.y), m.stroke());
2559
+ _,
2560
+ or
2561
+ ), g = cr(d, u, f), v = cr(d, c, h), m = (y = n == null ? void 0 : n.current) == null ? void 0 : y.getContext("2d");
2562
+ m && (m.beginPath(), m.lineWidth = Sa, m.strokeStyle = r.colors.placeholderColor, m.moveTo(g.x, g.y), m.arcTo(d.x, d.y, v.x, v.y, ba), m.lineTo(v.x, v.y), m.stroke());
2598
2563
  }, l = (u) => {
2599
2564
  if (!u)
2600
2565
  return;
2601
- const { bottomLeft: _, bottomRight: c, topLeft: h, topRight: f } = u, p = Cs(u);
2602
- s(_, h, f, p), s(h, f, c, p), s(f, c, _, p), s(c, _, h, p);
2566
+ const { bottomLeft: d, bottomRight: c, topLeft: _, topRight: f } = u, h = hs(u);
2567
+ s(d, _, f, h), s(_, f, c, h), s(f, c, d, h), s(c, d, _, h);
2603
2568
  };
2604
- n.current.width = e.width, n.current.height = e.height, vs(n.current), l(o);
2605
- }, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ d(ys, { ref: n, $isImageMirror: t });
2569
+ n.current.width = e.width, n.current.height = e.height, _s(n.current), l(o);
2570
+ }, [e, o, r.colors.placeholderColor]), /* @__PURE__ */ p(ps, { ref: n, $isImageMirror: t });
2606
2571
  }
2607
- const bs = D.div`
2572
+ const ys = D.div`
2608
2573
  color: ${(e) => e.theme.colors.instructionTextColor};
2609
2574
  animation: spin 2s linear infinite;
2610
2575
 
@@ -2613,64 +2578,64 @@ const bs = D.div`
2613
2578
  transform: rotate(-360deg);
2614
2579
  }
2615
2580
  }
2616
- `, Ss = ({ svgSize: e }) => /* @__PURE__ */ d(bs, { children: /* @__PURE__ */ d("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2617
- /* @__PURE__ */ d(
2581
+ `, gs = ({ svgSize: e }) => /* @__PURE__ */ p(ys, { children: /* @__PURE__ */ p("svg", { fill: "none", height: e, viewBox: "0 0 48 48", width: e, xmlns: "http://www.w3.org/2000/svg", children: [
2582
+ /* @__PURE__ */ p(
2618
2583
  "path",
2619
2584
  {
2620
2585
  d: "M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",
2621
2586
  fill: "currentColor"
2622
2587
  }
2623
2588
  ),
2624
- /* @__PURE__ */ d(
2589
+ /* @__PURE__ */ p(
2625
2590
  "path",
2626
2591
  {
2627
2592
  d: "M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",
2628
2593
  fill: "currentColor"
2629
2594
  }
2630
2595
  ),
2631
- /* @__PURE__ */ d(
2596
+ /* @__PURE__ */ p(
2632
2597
  "path",
2633
2598
  {
2634
2599
  d: "M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",
2635
2600
  fill: "currentColor"
2636
2601
  }
2637
2602
  ),
2638
- /* @__PURE__ */ d(
2603
+ /* @__PURE__ */ p(
2639
2604
  "path",
2640
2605
  {
2641
2606
  d: "M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",
2642
2607
  fill: "currentColor"
2643
2608
  }
2644
2609
  ),
2645
- /* @__PURE__ */ d(
2610
+ /* @__PURE__ */ p(
2646
2611
  "path",
2647
2612
  {
2648
2613
  d: "M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",
2649
2614
  fill: "currentColor"
2650
2615
  }
2651
2616
  ),
2652
- /* @__PURE__ */ d(
2617
+ /* @__PURE__ */ p(
2653
2618
  "path",
2654
2619
  {
2655
2620
  d: "M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",
2656
2621
  fill: "currentColor"
2657
2622
  }
2658
2623
  ),
2659
- /* @__PURE__ */ d(
2624
+ /* @__PURE__ */ p(
2660
2625
  "path",
2661
2626
  {
2662
2627
  d: "M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",
2663
2628
  fill: "currentColor"
2664
2629
  }
2665
2630
  ),
2666
- /* @__PURE__ */ d(
2631
+ /* @__PURE__ */ p(
2667
2632
  "path",
2668
2633
  {
2669
2634
  d: "M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",
2670
2635
  fill: "currentColor"
2671
2636
  }
2672
2637
  )
2673
- ] }) }), Es = D.div`
2638
+ ] }) }), vs = D.div`
2674
2639
  z-index: 1;
2675
2640
  position: absolute;
2676
2641
  // Scale up the backdrop to have space when placeholder is scaled below 1
@@ -2687,25 +2652,27 @@ const bs = D.div`
2687
2652
  transform: scale(0.5);
2688
2653
  translate: 25% 25%;
2689
2654
  }
2690
- `, $s = ({ children: e, height: t, scale: n, width: r }) => {
2691
- const { backdropColor: o } = Ce(), i = yo(r, t);
2692
- return /* @__PURE__ */ d(Es, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ d("svg", { viewBox: `0 0 ${r} ${t}`, children: [
2693
- /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("mask", { id: "mask", children: [
2694
- /* @__PURE__ */ d("rect", { fill: "#fff", height: "100%", width: "100%" }),
2695
- /* @__PURE__ */ d("g", { children: e })
2655
+ `, Cs = ({ children: e, height: t, scale: n, width: r }) => {
2656
+ const {
2657
+ styling: { backdropColor: o }
2658
+ } = Ce(), i = _o(r, t);
2659
+ return /* @__PURE__ */ p(vs, { $backdropColor: o, $scale: n, $shorterSide: i, children: /* @__PURE__ */ p("svg", { viewBox: `0 0 ${r} ${t}`, children: [
2660
+ /* @__PURE__ */ p("defs", { children: /* @__PURE__ */ p("mask", { id: "mask", children: [
2661
+ /* @__PURE__ */ p("rect", { fill: "#fff", height: "100%", width: "100%" }),
2662
+ /* @__PURE__ */ p("g", { children: e })
2696
2663
  ] }) }),
2697
- /* @__PURE__ */ d("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2664
+ /* @__PURE__ */ p("rect", { fill: o, height: "100%", mask: "url(#mask)", width: "100%" })
2698
2665
  ] }) });
2699
2666
  };
2700
- function ks({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
2701
- const { appStateInstructions: o } = Ce(), i = r === j.ERROR || r === j.RUNNING;
2702
- return !r || i || !(o != null && o[r].visible) ? null : r === j.WAITING || r === j.COMPLETE ? /* @__PURE__ */ d(Z, { children: [
2703
- n && e && t && /* @__PURE__ */ d($s, { height: e, width: t }),
2704
- /* @__PURE__ */ d(nn, { isCameraReady: !0, text: o[j.WAITING].text })
2705
- ] }) : /* @__PURE__ */ d(nn, { Icon: Ss, isCameraReady: !0, text: o[j.LOADING].text });
2706
- }
2707
- function Ns() {
2708
- return /* @__PURE__ */ d(
2667
+ function ws({ cameraHeight: e, cameraWidth: t, isBackdrop: n, state: r }) {
2668
+ const { appStateInstructions: o } = Ce(), i = r === W.ERROR || r === W.RUNNING;
2669
+ return !r || i || !(o != null && o[r].visible) ? null : r === W.WAITING || r === W.COMPLETE ? /* @__PURE__ */ p(Z, { children: [
2670
+ n && e && t && /* @__PURE__ */ p(Cs, { height: e, width: t }),
2671
+ /* @__PURE__ */ p(en, { isCameraReady: !0, text: o[W.WAITING].text })
2672
+ ] }) : /* @__PURE__ */ p(en, { Icon: gs, isCameraReady: !0, text: o[W.LOADING].text });
2673
+ }
2674
+ function bs() {
2675
+ return /* @__PURE__ */ p(
2709
2676
  "svg",
2710
2677
  {
2711
2678
  fill: "none",
@@ -2717,21 +2684,21 @@ function Ns() {
2717
2684
  viewBox: "0 0 300 253.48",
2718
2685
  xmlns: "http://www.w3.org/2000/svg",
2719
2686
  children: [
2720
- /* @__PURE__ */ d("path", { className: "cls-1", d: "M179.22,114.86c-5.07-.21-41.51-1.07-66.97,27.84-17.94,20.37-19.97,43.63-20.32,51.17" }),
2721
- /* @__PURE__ */ d("path", { className: "cls-1", d: "M128.06,110.56c-11.36,2.45-25.72,4.46-42.32,4.23-11.24-.16-21.3-1.31-29.91-2.82" }),
2722
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "203.51", x2: "203.51", y1: "136.03", y2: "10.21" }),
2723
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "154.7", x2: "154.7", y1: "60.97", y2: "10.21" }),
2724
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "106.01", x2: "106.01", y1: "60.97", y2: "10.21" }),
2725
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "58.08", x2: "58.08", y1: "60.97", y2: "10.21" }),
2726
- /* @__PURE__ */ d(
2687
+ /* @__PURE__ */ p("path", { className: "cls-1", d: "M179.22,114.86c-5.07-.21-41.51-1.07-66.97,27.84-17.94,20.37-19.97,43.63-20.32,51.17" }),
2688
+ /* @__PURE__ */ p("path", { className: "cls-1", d: "M128.06,110.56c-11.36,2.45-25.72,4.46-42.32,4.23-11.24-.16-21.3-1.31-29.91-2.82" }),
2689
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "203.51", x2: "203.51", y1: "136.03", y2: "10.21" }),
2690
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "154.7", x2: "154.7", y1: "60.97", y2: "10.21" }),
2691
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "106.01", x2: "106.01", y1: "60.97", y2: "10.21" }),
2692
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "58.08", x2: "58.08", y1: "60.97", y2: "10.21" }),
2693
+ /* @__PURE__ */ p(
2727
2694
  "path",
2728
2695
  {
2729
2696
  className: "cls-1",
2730
2697
  d: "M286.73,114.94c3.95-3.75,6.41-9.05,6.41-14.92,0-11.36-9.21-20.56-20.56-20.56-2.84,0-5.54.58-8,1.62"
2731
2698
  }
2732
2699
  ),
2733
- /* @__PURE__ */ d("polyline", { className: "cls-1", points: "203.51 113.13 261.92 82.44 264.57 81.08" }),
2734
- /* @__PURE__ */ d(
2700
+ /* @__PURE__ */ p("polyline", { className: "cls-1", points: "203.51 113.13 261.92 82.44 264.57 81.08" }),
2701
+ /* @__PURE__ */ p(
2735
2702
  "path",
2736
2703
  {
2737
2704
  className: "cls-1",
@@ -2742,8 +2709,8 @@ function Ns() {
2742
2709
  }
2743
2710
  );
2744
2711
  }
2745
- function xs() {
2746
- return /* @__PURE__ */ d(
2712
+ function Ss() {
2713
+ return /* @__PURE__ */ p(
2747
2714
  "svg",
2748
2715
  {
2749
2716
  fill: "none",
@@ -2755,21 +2722,21 @@ function xs() {
2755
2722
  viewBox: "0 0 300 253.48",
2756
2723
  xmlns: "http://www.w3.org/2000/svg",
2757
2724
  children: [
2758
- /* @__PURE__ */ d("path", { className: "cls-1", d: "M120.78,114.86c5.07-.21,41.51-1.07,66.97,27.84,17.94,20.37,19.97,43.63,20.32,51.17" }),
2759
- /* @__PURE__ */ d("path", { className: "cls-1", d: "M171.94,110.56c11.36,2.45,25.72,4.46,42.32,4.23,11.24-.16,21.3-1.31,29.91-2.82" }),
2760
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "96.49", x2: "96.49", y1: "136.03", y2: "10.21" }),
2761
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "145.3", x2: "145.3", y1: "60.97", y2: "10.21" }),
2762
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "193.99", x2: "193.99", y1: "60.97", y2: "10.21" }),
2763
- /* @__PURE__ */ d("line", { className: "cls-1", x1: "241.92", x2: "241.92", y1: "60.97", y2: "10.21" }),
2764
- /* @__PURE__ */ d(
2725
+ /* @__PURE__ */ p("path", { className: "cls-1", d: "M120.78,114.86c5.07-.21,41.51-1.07,66.97,27.84,17.94,20.37,19.97,43.63,20.32,51.17" }),
2726
+ /* @__PURE__ */ p("path", { className: "cls-1", d: "M171.94,110.56c11.36,2.45,25.72,4.46,42.32,4.23,11.24-.16,21.3-1.31,29.91-2.82" }),
2727
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "96.49", x2: "96.49", y1: "136.03", y2: "10.21" }),
2728
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "145.3", x2: "145.3", y1: "60.97", y2: "10.21" }),
2729
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "193.99", x2: "193.99", y1: "60.97", y2: "10.21" }),
2730
+ /* @__PURE__ */ p("line", { className: "cls-1", x1: "241.92", x2: "241.92", y1: "60.97", y2: "10.21" }),
2731
+ /* @__PURE__ */ p(
2765
2732
  "path",
2766
2733
  {
2767
2734
  className: "cls-1",
2768
2735
  d: "M13.27,114.94c-3.95-3.75-6.41-9.05-6.41-14.92,0-11.36,9.21-20.56,20.56-20.56,2.84,0,5.54.58,8,1.62"
2769
2736
  }
2770
2737
  ),
2771
- /* @__PURE__ */ d("polyline", { className: "cls-1", points: "96.49 113.13 38.08 82.44 35.43 81.08" }),
2772
- /* @__PURE__ */ d(
2738
+ /* @__PURE__ */ p("polyline", { className: "cls-1", points: "96.49 113.13 38.08 82.44 35.43 81.08" }),
2739
+ /* @__PURE__ */ p(
2773
2740
  "path",
2774
2741
  {
2775
2742
  className: "cls-1",
@@ -2780,7 +2747,7 @@ function xs() {
2780
2747
  }
2781
2748
  );
2782
2749
  }
2783
- const Ts = D.div`
2750
+ const Es = D.div`
2784
2751
  z-index: 1;
2785
2752
  position: absolute;
2786
2753
  top: ${(e) => e.$placeholderRectangle.shiftY * 100}%;
@@ -2794,15 +2761,15 @@ const Ts = D.div`
2794
2761
  width: 100%;
2795
2762
  height: 100%;
2796
2763
  }
2797
- `, Os = ({
2764
+ `, $s = ({
2798
2765
  children: e,
2799
2766
  className: t,
2800
2767
  isInCandidateSelection: n,
2801
2768
  onAnimationEnd: r,
2802
2769
  placeholderRectangle: o,
2803
2770
  scale: i
2804
- }) => /* @__PURE__ */ d(
2805
- Ts,
2771
+ }) => /* @__PURE__ */ p(
2772
+ Es,
2806
2773
  {
2807
2774
  $isInCandidateSelection: n,
2808
2775
  $placeholderRectangle: o,
@@ -2811,90 +2778,105 @@ const Ts = D.div`
2811
2778
  onAnimationEnd: r,
2812
2779
  children: e
2813
2780
  }
2814
- ), Is = {
2815
- [tn.LEFT]: /* @__PURE__ */ d(Ns, {}),
2816
- [tn.RIGHT]: /* @__PURE__ */ d(xs, {})
2781
+ ), ks = {
2782
+ [Jt.LEFT]: /* @__PURE__ */ p(bs, {}),
2783
+ [Jt.RIGHT]: /* @__PURE__ */ p(Ss, {})
2817
2784
  };
2818
- function As({ placeholderRectangle: e, ...t }) {
2785
+ function Ns({ placeholderRectangle: e, ...t }) {
2819
2786
  const { placeholder: n } = Ce();
2820
- return /* @__PURE__ */ d(Os, { placeholderRectangle: e, ...t, children: Is[n] });
2787
+ return /* @__PURE__ */ p($s, { placeholderRectangle: e, ...t, children: ks[n] });
2821
2788
  }
2822
- function Rs() {
2823
- const [e, t] = F(), [n, r] = F(!1), o = he(
2789
+ function xs() {
2790
+ const [e, t] = U(), [n, r] = U(!1), o = _e(
2824
2791
  (f) => {
2825
- var y, v;
2826
- t((y = f == null ? void 0 : f.detail) == null ? void 0 : y.cameraResolution);
2827
- const p = (v = f == null ? void 0 : f.detail) == null ? void 0 : v.isMirroring;
2828
- p !== void 0 && r(p);
2792
+ var g, v;
2793
+ t((g = f == null ? void 0 : f.detail) == null ? void 0 : g.cameraResolution);
2794
+ const h = (v = f == null ? void 0 : f.detail) == null ? void 0 : v.isMirroring;
2795
+ h !== void 0 && r(h);
2829
2796
  },
2830
2797
  [t]
2831
2798
  );
2832
- Se(_e.CAMERA_PROPS_CHANGED, o);
2833
- const [i, a] = F({
2834
- code: B.PALM_NOT_PRESENT,
2799
+ Se(pe.CAMERA_PROPS_CHANGED, o);
2800
+ const [i, a] = U({
2801
+ code: F.PALM_NOT_PRESENT,
2835
2802
  // FIXME Default instruction should not be here
2836
2803
  isEscalated: !1
2837
- }), s = he(
2804
+ }), s = _e(
2838
2805
  (f) => {
2839
- var p, y;
2806
+ var h, g;
2840
2807
  a({
2841
- code: (p = f == null ? void 0 : f.detail) == null ? void 0 : p.instructionCode,
2842
- isEscalated: ((y = f == null ? void 0 : f.detail) == null ? void 0 : y.isEscalated) ?? !1
2808
+ code: (h = f == null ? void 0 : f.detail) == null ? void 0 : h.instructionCode,
2809
+ isEscalated: ((g = f == null ? void 0 : f.detail) == null ? void 0 : g.isEscalated) ?? !1
2843
2810
  });
2844
2811
  },
2845
2812
  [a]
2846
2813
  );
2847
- Se(_e.INSTRUCTION_CHANGED, s);
2848
- const [l, u] = F(j.LOADING), [_, c] = F(), h = he(
2814
+ Se(pe.INSTRUCTION_CHANGED, s);
2815
+ const [l, u] = U(W.LOADING), [d, c] = U(), _ = _e(
2849
2816
  (f) => {
2850
- var y, v;
2851
- u((y = f.detail) == null ? void 0 : y.appState);
2852
- const p = (v = f == null ? void 0 : f.detail) == null ? void 0 : v.error;
2853
- p && c(p);
2817
+ var g, v;
2818
+ u((g = f.detail) == null ? void 0 : g.appState);
2819
+ const h = (v = f == null ? void 0 : f.detail) == null ? void 0 : v.error;
2820
+ h && c(h);
2854
2821
  },
2855
2822
  [u, c]
2856
2823
  );
2857
- return Se(_e.STATE_CHANGED, h), {
2824
+ return Se(pe.STATE_CHANGED, _), {
2858
2825
  cameraResolution: e,
2859
2826
  instruction: i,
2860
2827
  isMirroring: n,
2861
2828
  appState: l,
2862
- error: _
2829
+ error: d
2863
2830
  };
2864
2831
  }
2865
- function Ps() {
2866
- const { appState: e, cameraResolution: t, error: n, instruction: r, isMirroring: o } = Rs(), i = r.code === B.CANDIDATE_SELECTION, { instructions: a, showDetectionLayer: s } = Ce();
2867
- return e === j.ERROR ? /* @__PURE__ */ d(go, { text: n == null ? void 0 : n.message }) : e === j.RUNNING && t ? /* @__PURE__ */ d(Z, { children: [
2868
- s && /* @__PURE__ */ d(ws, { cameraResolution: t, isImageMirror: o }),
2869
- /* @__PURE__ */ d(
2870
- As,
2832
+ function Ts() {
2833
+ const { appState: e, cameraResolution: t, error: n, instruction: r, isMirroring: o } = xs(), i = r.code === F.CANDIDATE_SELECTION, {
2834
+ control: { showDetectionLayer: a },
2835
+ instructions: s
2836
+ } = Ce();
2837
+ return e === W.ERROR ? /* @__PURE__ */ p(po, { text: n == null ? void 0 : n.message }) : e === W.RUNNING && t ? /* @__PURE__ */ p(Z, { children: [
2838
+ a && /* @__PURE__ */ p(ms, { cameraResolution: t, isImageMirror: o }),
2839
+ /* @__PURE__ */ p(
2840
+ Ns,
2871
2841
  {
2872
2842
  isInCandidateSelection: i,
2873
- placeholderRectangle: ts(t)
2843
+ placeholderRectangle: qa(t)
2874
2844
  }
2875
2845
  ),
2876
- r.code && /* @__PURE__ */ d(gs, { cssTop: 50, isInCandidateSelection: i, children: a[r.code] }),
2877
- /* @__PURE__ */ d(us, { customControlEvent: _e.CONTROL, isSwitchCameraDisabled: i })
2878
- ] }) : /* @__PURE__ */ d(ks, { cameraHeight: t == null ? void 0 : t.height, cameraWidth: t == null ? void 0 : t.width, state: e });
2879
- }
2880
- const Ls = (e) => {
2881
- var l, u;
2882
- const t = { ...Ra, ...e == null ? void 0 : e.instructions }, n = {
2883
- [j.LOADING]: { ...lr.loading, ...(l = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : l.loading },
2884
- [j.WAITING]: { ...lr.waiting, ...(u = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : u.waiting }
2885
- }, r = (e == null ? void 0 : e.placeholder) ?? Pa, o = (e == null ? void 0 : e.backdropColor) ?? Ia, i = (e == null ? void 0 : e.showDetectionLayer) ?? !1, a = (e == null ? void 0 : e.showCameraButtons) ?? !1, s = Ja(e == null ? void 0 : e.theme);
2846
+ r.code && /* @__PURE__ */ p(ds, { cssTop: 50, isInCandidateSelection: i, children: s[r.code] }),
2847
+ /* @__PURE__ */ p(is, { customControlEvent: pe.CONTROL, isSwitchCameraDisabled: i })
2848
+ ] }) : /* @__PURE__ */ p(ws, { cameraHeight: t == null ? void 0 : t.height, cameraWidth: t == null ? void 0 : t.width, state: e });
2849
+ }
2850
+ function Os(e) {
2851
+ var s, l, u, d, c, _;
2852
+ const t = { ...Na, ...e == null ? void 0 : e.instructions }, n = {
2853
+ [W.LOADING]: {
2854
+ ...ir.loading,
2855
+ ...(s = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : s.loading
2856
+ },
2857
+ [W.WAITING]: {
2858
+ ...ir.waiting,
2859
+ ...(l = e == null ? void 0 : e.appStateInstructions) == null ? void 0 : l.waiting
2860
+ }
2861
+ }, r = Va((u = e == null ? void 0 : e.styling) == null ? void 0 : u.theme), o = {
2862
+ ...e == null ? void 0 : e.styling,
2863
+ backdropColor: ((d = e == null ? void 0 : e.styling) == null ? void 0 : d.backdropColor) ?? $a,
2864
+ theme: r
2865
+ }, i = {
2866
+ showDetectionLayer: ((c = e == null ? void 0 : e.control) == null ? void 0 : c.showDetectionLayer) ?? !1,
2867
+ showCameraButtons: ((_ = e == null ? void 0 : e.control) == null ? void 0 : _.showCameraButtons) ?? !1
2868
+ }, a = (e == null ? void 0 : e.placeholder) ?? xa;
2886
2869
  return {
2870
+ ...e,
2887
2871
  instructions: t,
2888
2872
  appStateInstructions: n,
2889
- placeholder: r,
2890
- backdropColor: o,
2891
- showDetectionLayer: i,
2892
- showCameraButtons: a,
2893
- theme: s
2873
+ placeholder: a,
2874
+ styling: o,
2875
+ control: i
2894
2876
  };
2895
- };
2896
- function Ms({ props: e }) {
2897
- const t = Ya(_e.VIDEO_ELEMENT_SIZE);
2898
- return /* @__PURE__ */ d(Ga, { uiProps: Ls(e), videoElementSize: t, children: /* @__PURE__ */ d(Ps, {}) });
2899
2877
  }
2900
- Mo(Ms, "x-dot-palm-capture-ui", ["props"]);
2878
+ function Is({ configuration: e }) {
2879
+ const t = Ua(pe.VIDEO_ELEMENT_SIZE);
2880
+ return /* @__PURE__ */ p(Ba, { uiConfiguration: Os(e), videoElementSize: t, children: /* @__PURE__ */ p(Ts, {}) });
2881
+ }
2882
+ Oo(Is, "x-dot-palm-capture-ui", ["configuration"]);