@uninspired/cookie-banner 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,265 +1,547 @@
1
- import * as f from "react";
2
- import O, { forwardRef as Yt, createElement as nt, useMemo as H, useState as de, useEffect as Xt, useCallback as St, useContext as gr, createContext as yr } from "react";
3
- import * as br from "react-dom";
4
- var $e, P, Jt, V, Pt, Qt, en, tn, ut, rt, ot, Ne = {}, Ie = [], wr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Fe = Array.isArray;
5
- function j(e, t) {
6
- for (var n in t) e[n] = t[n];
7
- return e;
1
+ import { options as z, Fragment as W, Component as se, createRef as On, createContext as ee, createElement as T, toChildArray as Q, cloneElement as io, render as Ae, hydrate as so } from "preact";
2
+ var co = 0;
3
+ function p(e, t, n, r, o, i) {
4
+ t || (t = {});
5
+ var c, s, a = t;
6
+ if ("ref" in a) for (s in a = {}, t) s == "ref" ? c = t[s] : a[s] = t[s];
7
+ var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --co, __i: -1, __u: 0, __source: o, __self: i };
8
+ if (typeof e == "function" && (c = e.defaultProps)) for (s in c) a[s] === void 0 && (a[s] = c[s]);
9
+ return z.vnode && z.vnode(u), u;
10
+ }
11
+ var q, N, st, Bt, he = 0, An = [], A = z, Ht = A.__b, Zt = A.__r, Vt = A.diffed, Kt = A.__c, qt = A.unmount, Gt = A.__;
12
+ function ae(e, t) {
13
+ A.__h && A.__h(N, e, he || t), he = 0;
14
+ var n = N.__H || (N.__H = { __: [], __h: [] });
15
+ return e >= n.__.length && n.__.push({}), n.__[e];
16
+ }
17
+ function R(e) {
18
+ return he = 1, Te(Rn, e);
19
+ }
20
+ function Te(e, t, n) {
21
+ var r = ae(q++, 2);
22
+ if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Rn(void 0, t), function(s) {
23
+ var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, s);
24
+ a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
25
+ }], r.__c = N, !N.__f)) {
26
+ var o = function(s, a, u) {
27
+ if (!r.__c.__H) return !0;
28
+ var l = r.__c.__H.__.filter(function(_) {
29
+ return _.__c;
30
+ });
31
+ if (l.every(function(_) {
32
+ return !_.__N;
33
+ })) return !i || i.call(this, s, a, u);
34
+ var d = r.__c.props !== s;
35
+ return l.some(function(_) {
36
+ if (_.__N) {
37
+ var m = _.__[0];
38
+ _.__ = _.__N, _.__N = void 0, m !== _.__[0] && (d = !0);
39
+ }
40
+ }), i && i.call(this, s, a, u) || d;
41
+ };
42
+ N.__f = !0;
43
+ var i = N.shouldComponentUpdate, c = N.componentWillUpdate;
44
+ N.componentWillUpdate = function(s, a, u) {
45
+ if (this.__e) {
46
+ var l = i;
47
+ i = void 0, o(s, a, u), i = l;
48
+ }
49
+ c && c.call(this, s, a, u);
50
+ }, N.shouldComponentUpdate = o;
51
+ }
52
+ return r.__N || r.__;
8
53
  }
9
- function dt(e) {
10
- e && e.parentNode && e.parentNode.removeChild(e);
54
+ function E(e, t) {
55
+ var n = ae(q++, 3);
56
+ !A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__H.__h.push(n));
11
57
  }
12
- function Cr(e, t, n) {
13
- var r, o, s, c = {};
14
- for (s in t) s == "key" ? r = t[s] : s == "ref" ? o = t[s] : c[s] = t[s];
15
- if (arguments.length > 2 && (c.children = arguments.length > 3 ? $e.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) c[s] === void 0 && (c[s] = e.defaultProps[s]);
16
- return Re(e, c, r, o, null);
58
+ function te(e, t) {
59
+ var n = ae(q++, 4);
60
+ !A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__h.push(n));
17
61
  }
18
- function Re(e, t, n, r, o) {
19
- var s = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++Jt, __i: -1, __u: 0 };
20
- return o == null && P.vnode != null && P.vnode(s), s;
62
+ function w(e) {
63
+ return he = 5, D(function() {
64
+ return { current: e };
65
+ }, []);
21
66
  }
22
- function te(e) {
23
- return e.children;
67
+ function wt(e, t, n) {
68
+ he = 6, te(function() {
69
+ if (typeof e == "function") {
70
+ var r = e(t());
71
+ return function() {
72
+ e(null), r && typeof r == "function" && r();
73
+ };
74
+ }
75
+ if (e) return e.current = t(), function() {
76
+ return e.current = null;
77
+ };
78
+ }, n == null ? n : n.concat(e));
24
79
  }
25
- function Oe(e, t) {
26
- this.props = e, this.context = t;
80
+ function D(e, t) {
81
+ var n = ae(q++, 7);
82
+ return Pt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
83
+ }
84
+ function M(e, t) {
85
+ return he = 8, D(function() {
86
+ return e;
87
+ }, t);
27
88
  }
28
- function ne(e, t) {
29
- if (t == null) return e.__ ? ne(e.__, e.__i + 1) : null;
30
- for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
31
- return typeof e.type == "function" ? ne(e) : null;
89
+ function Y(e) {
90
+ var t = N.context[e.__c], n = ae(q++, 9);
91
+ return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(N)), t.props.value) : e.__;
32
92
  }
33
- function Er(e) {
34
- if (e.__P && e.__d) {
35
- var t = e.__v, n = t.__e, r = [], o = [], s = j({}, t);
36
- s.__v = t.__v + 1, P.vnode && P.vnode(s), ft(e.__P, s, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n ?? ne(t), !!(32 & t.__u), o), s.__v = t.__v, s.__.__k[s.__i] = s, sn(r, s, o), t.__e = t.__ = null, s.__e != n && nn(s);
93
+ function St(e, t) {
94
+ A.useDebugValue && A.useDebugValue(t ? t(e) : e);
95
+ }
96
+ function ao(e) {
97
+ var t = ae(q++, 10), n = R();
98
+ return t.__ = e, N.componentDidCatch || (N.componentDidCatch = function(r, o) {
99
+ t.__ && t.__(r, o), n[1](r);
100
+ }), [n[0], function() {
101
+ n[1](void 0);
102
+ }];
103
+ }
104
+ function Et() {
105
+ var e = ae(q++, 11);
106
+ if (!e.__) {
107
+ for (var t = N.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
108
+ var n = t.__m || (t.__m = [0, 0]);
109
+ e.__ = "P" + n[0] + "-" + n[1]++;
110
+ }
111
+ return e.__;
112
+ }
113
+ function uo() {
114
+ for (var e; e = An.shift(); ) {
115
+ var t = e.__H;
116
+ if (e.__P && t) try {
117
+ t.__h.some(Be), t.__h.some(ht), t.__h = [];
118
+ } catch (n) {
119
+ t.__h = [], A.__e(n, e.__v);
120
+ }
37
121
  }
38
122
  }
39
- function nn(e) {
40
- if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
41
- if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
42
- }), nn(e);
123
+ A.__b = function(e) {
124
+ N = null, Ht && Ht(e);
125
+ }, A.__ = function(e, t) {
126
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Gt && Gt(e, t);
127
+ }, A.__r = function(e) {
128
+ Zt && Zt(e), q = 0;
129
+ var t = (N = e.__c).__H;
130
+ t && (st === N ? (t.__h = [], N.__h = [], t.__.some(function(n) {
131
+ n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
132
+ })) : (t.__h.some(Be), t.__h.some(ht), t.__h = [], q = 0)), st = N;
133
+ }, A.diffed = function(e) {
134
+ Vt && Vt(e);
135
+ var t = e.__c;
136
+ t && t.__H && (t.__H.__h.length && (An.push(t) !== 1 && Bt === A.requestAnimationFrame || ((Bt = A.requestAnimationFrame) || lo)(uo)), t.__H.__.some(function(n) {
137
+ n.u && (n.__H = n.u), n.u = void 0;
138
+ })), st = N = null;
139
+ }, A.__c = function(e, t) {
140
+ t.some(function(n) {
141
+ try {
142
+ n.__h.some(Be), n.__h = n.__h.filter(function(r) {
143
+ return !r.__ || ht(r);
144
+ });
145
+ } catch (r) {
146
+ t.some(function(o) {
147
+ o.__h && (o.__h = []);
148
+ }), t = [], A.__e(r, n.__v);
149
+ }
150
+ }), Kt && Kt(e, t);
151
+ }, A.unmount = function(e) {
152
+ qt && qt(e);
153
+ var t, n = e.__c;
154
+ n && n.__H && (n.__H.__.some(function(r) {
155
+ try {
156
+ Be(r);
157
+ } catch (o) {
158
+ t = o;
159
+ }
160
+ }), n.__H = void 0, t && A.__e(t, n.__v));
161
+ };
162
+ var Yt = typeof requestAnimationFrame == "function";
163
+ function lo(e) {
164
+ var t, n = function() {
165
+ clearTimeout(r), Yt && cancelAnimationFrame(t), setTimeout(e);
166
+ }, r = setTimeout(n, 35);
167
+ Yt && (t = requestAnimationFrame(n));
168
+ }
169
+ function Be(e) {
170
+ var t = N, n = e.__c;
171
+ typeof n == "function" && (e.__c = void 0, n()), N = t;
172
+ }
173
+ function ht(e) {
174
+ var t = N;
175
+ e.__c = e.__(), N = t;
176
+ }
177
+ function Pt(e, t) {
178
+ return !e || e.length !== t.length || t.some(function(n, r) {
179
+ return n !== e[r];
180
+ });
43
181
  }
44
- function Rt(e) {
45
- (!e.__d && (e.__d = !0) && V.push(e) && !Te.__r++ || Pt != P.debounceRendering) && ((Pt = P.debounceRendering) || Qt)(Te);
182
+ function Rn(e, t) {
183
+ return typeof t == "function" ? t(e) : t;
46
184
  }
47
- function Te() {
48
- for (var e, t = 1; V.length; ) V.length > t && V.sort(en), e = V.shift(), t = V.length, Er(e);
49
- Te.__r = 0;
185
+ function In(e, t) {
186
+ for (var n in t) e[n] = t[n];
187
+ return e;
50
188
  }
51
- function rn(e, t, n, r, o, s, c, i, u, a, d) {
52
- var l, m, h, b, p, _, g, y = r && r.__k || Ie, w = t.length;
53
- for (u = Sr(n, t, y, u, w), l = 0; l < w; l++) (h = n.__k[l]) != null && (m = h.__i != -1 && y[h.__i] || Ne, h.__i = l, _ = ft(e, h, m, o, s, c, i, u, a, d), b = h.__e, h.ref && m.ref != h.ref && (m.ref && pt(m.ref, null, h), d.push(h.ref, h.__c || b, h)), p == null && b != null && (p = b), (g = !!(4 & h.__u)) || m.__k === h.__k ? u = on(h, u, e, g) : typeof h.type == "function" && _ !== void 0 ? u = _ : b && (u = b.nextSibling), h.__u &= -7);
54
- return n.__e = p, u;
189
+ function mt(e, t) {
190
+ for (var n in e) if (n !== "__source" && !(n in t)) return !0;
191
+ for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
192
+ return !1;
55
193
  }
56
- function Sr(e, t, n, r, o) {
57
- var s, c, i, u, a, d = n.length, l = d, m = 0;
58
- for (e.__k = new Array(o), s = 0; s < o; s++) (c = t[s]) != null && typeof c != "boolean" && typeof c != "function" ? (typeof c == "string" || typeof c == "number" || typeof c == "bigint" || c.constructor == String ? c = e.__k[s] = Re(null, c, null, null, null) : Fe(c) ? c = e.__k[s] = Re(te, { children: c }, null, null, null) : c.constructor === void 0 && c.__b > 0 ? c = e.__k[s] = Re(c.type, c.props, c.key, c.ref ? c.ref : null, c.__v) : e.__k[s] = c, u = s + m, c.__ = e, c.__b = e.__b + 1, i = null, (a = c.__i = Pr(c, n, u, l)) != -1 && (l--, (i = n[a]) && (i.__u |= 2)), i == null || i.__v == null ? (a == -1 && (o > d ? m-- : o < d && m++), typeof c.type != "function" && (c.__u |= 4)) : a != u && (a == u - 1 ? m-- : a == u + 1 ? m++ : (a > u ? m-- : m++, c.__u |= 4))) : e.__k[s] = null;
59
- if (l) for (s = 0; s < d; s++) (i = n[s]) != null && (2 & i.__u) == 0 && (i.__e == r && (r = ne(i)), an(i, i));
60
- return r;
194
+ function Nt(e, t) {
195
+ var n = t(), r = R({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
196
+ return te(function() {
197
+ o.__ = n, o.u = t, ct(o) && i({ t: o });
198
+ }, [e, n, t]), E(function() {
199
+ return ct(o) && i({ t: o }), e(function() {
200
+ ct(o) && i({ t: o });
201
+ });
202
+ }, [e]), n;
61
203
  }
62
- function on(e, t, n, r) {
63
- var o, s;
64
- if (typeof e.type == "function") {
65
- for (o = e.__k, s = 0; o && s < o.length; s++) o[s] && (o[s].__ = e, t = on(o[s], t, n, r));
66
- return t;
204
+ function ct(e) {
205
+ try {
206
+ return !((t = e.__) === (n = e.u()) && (t !== 0 || 1 / t == 1 / n) || t != t && n != n);
207
+ } catch {
208
+ return !0;
67
209
  }
68
- e.__e != t && (r && (t && e.type && !t.parentNode && (t = ne(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
69
- do
70
- t = t && t.nextSibling;
71
- while (t != null && t.nodeType == 8);
72
- return t;
210
+ var t, n;
73
211
  }
74
- function Pr(e, t, n, r) {
75
- var o, s, c, i = e.key, u = e.type, a = t[n], d = a != null && (2 & a.__u) == 0;
76
- if (a === null && i == null || d && i == a.key && u == a.type) return n;
77
- if (r > (d ? 1 : 0)) {
78
- for (o = n - 1, s = n + 1; o >= 0 || s < t.length; ) if ((a = t[c = o >= 0 ? o-- : s++]) != null && (2 & a.__u) == 0 && i == a.key && u == a.type) return c;
79
- }
80
- return -1;
212
+ function Ot(e) {
213
+ e();
81
214
  }
82
- function Ot(e, t, n) {
83
- t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || wr.test(t) ? n : n + "px";
215
+ function At(e) {
216
+ return e;
84
217
  }
85
- function me(e, t, n, r, o) {
86
- var s, c;
87
- e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
88
- else {
89
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || Ot(e.style, t, "");
90
- if (n) for (t in n) r && n[t] == r[t] || Ot(e.style, t, n[t]);
218
+ function Rt() {
219
+ return [!1, Ot];
220
+ }
221
+ var It = te;
222
+ function Ve(e, t) {
223
+ this.props = e, this.context = t;
224
+ }
225
+ function Tn(e, t) {
226
+ function n(o) {
227
+ var i = this.props.ref, c = i == o.ref;
228
+ return !c && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !c : mt(this.props, o);
91
229
  }
92
- else if (t[0] == "o" && t[1] == "n") s = t != (t = t.replace(tn, "$1")), c = t.toLowerCase(), t = c in e || t == "onFocusOut" || t == "onFocusIn" ? c.slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = n, n ? r ? n.u = r.u : (n.u = ut, e.addEventListener(t, s ? ot : rt, s)) : e.removeEventListener(t, s ? ot : rt, s);
93
- else {
94
- if (o == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
95
- 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 {
96
- e[t] = n ?? "";
97
- break e;
98
- } catch {
99
- }
100
- typeof n == "function" || (n == null || n === !1 && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
230
+ function r(o) {
231
+ return this.shouldComponentUpdate = n, T(e, o);
101
232
  }
233
+ return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
102
234
  }
103
- function At(e) {
104
- return function(t) {
105
- if (this.l) {
106
- var n = this.l[t.type + e];
107
- if (t.t == null) t.t = ut++;
108
- else if (t.t < n.u) return;
109
- return n(P.event ? P.event(t) : t);
110
- }
111
- };
235
+ (Ve.prototype = new se()).isPureReactComponent = !0, Ve.prototype.shouldComponentUpdate = function(e, t) {
236
+ return mt(this.props, e) || mt(this.state, t);
237
+ };
238
+ var Xt = z.__b;
239
+ z.__b = function(e) {
240
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Xt && Xt(e);
241
+ };
242
+ var fo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
243
+ function P(e) {
244
+ function t(n) {
245
+ var r = In({}, n);
246
+ return delete r.ref, e(r, n.ref || null);
247
+ }
248
+ return t.$$typeof = fo, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
249
+ }
250
+ var Jt = function(e, t) {
251
+ return e == null ? null : Q(Q(e).map(t));
252
+ }, K = { map: Jt, forEach: Jt, count: function(e) {
253
+ return e ? Q(e).length : 0;
254
+ }, only: function(e) {
255
+ var t = Q(e);
256
+ if (t.length !== 1) throw "Children.only";
257
+ return t[0];
258
+ }, toArray: Q }, po = z.__e;
259
+ z.__e = function(e, t, n, r) {
260
+ if (e.then) {
261
+ 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);
262
+ }
263
+ po(e, t, n, r);
264
+ };
265
+ var Qt = z.unmount;
266
+ function kn(e, t, n) {
267
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
268
+ typeof r.__c == "function" && r.__c();
269
+ }), e.__c.__H = null), (e = In({}, 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) {
270
+ return kn(r, t, n);
271
+ })), e;
272
+ }
273
+ function Dn(e, t, n) {
274
+ return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
275
+ return Dn(r, t, n);
276
+ }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
277
+ }
278
+ function Pe() {
279
+ this.__u = 0, this.o = null, this.__b = null;
280
+ }
281
+ function xn(e) {
282
+ if (!e.__) return null;
283
+ var t = e.__.__c;
284
+ return t && t.__a && t.__a(e);
112
285
  }
113
- function ft(e, t, n, r, o, s, c, i, u, a) {
114
- var d, l, m, h, b, p, _, g, y, w, C, S, R, E, N, k = t.type;
115
- if (t.constructor !== void 0) return null;
116
- 128 & n.__u && (u = !!(32 & n.__u), s = [i = t.__e = n.__e]), (d = P.__b) && d(t);
117
- e: if (typeof k == "function") try {
118
- if (g = t.props, y = "prototype" in k && k.prototype.render, w = (d = k.contextType) && r[d.__c], C = d ? w ? w.props.value : d.__ : r, n.__c ? _ = (l = t.__c = n.__c).__ = l.__E : (y ? t.__c = l = new k(g, C) : (t.__c = l = new Oe(g, C), l.constructor = k, l.render = Or), w && w.sub(l), l.state || (l.state = {}), l.__n = r, m = l.__d = !0, l.__h = [], l._sb = []), y && l.__s == null && (l.__s = l.state), y && k.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = j({}, l.__s)), j(l.__s, k.getDerivedStateFromProps(g, l.__s))), h = l.props, b = l.state, l.__v = t, m) y && k.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), y && l.componentDidMount != null && l.__h.push(l.componentDidMount);
119
- else {
120
- if (y && k.getDerivedStateFromProps == null && g !== h && l.componentWillReceiveProps != null && l.componentWillReceiveProps(g, C), t.__v == n.__v || !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(g, l.__s, C) === !1) {
121
- t.__v != n.__v && (l.props = g, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(D) {
122
- D && (D.__ = t);
123
- }), Ie.push.apply(l.__h, l._sb), l._sb = [], l.__h.length && c.push(l);
124
- break e;
286
+ function Mn(e) {
287
+ var t, n, r, o = null;
288
+ function i(c) {
289
+ if (t || (t = e()).then(function(s) {
290
+ s && (o = s.default || s), r = !0;
291
+ }, function(s) {
292
+ n = s, r = !0;
293
+ }), n) throw n;
294
+ if (!r) throw t;
295
+ return o ? T(o, c) : null;
296
+ }
297
+ return i.displayName = "Lazy", i.__f = !0, i;
298
+ }
299
+ function _e() {
300
+ this.i = null, this.l = null;
301
+ }
302
+ z.unmount = function(e) {
303
+ var t = e.__c;
304
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Qt && Qt(e);
305
+ }, (Pe.prototype = new se()).__c = function(e, t) {
306
+ var n = t.__c, r = this;
307
+ r.o == null && (r.o = []), r.o.push(n);
308
+ var o = xn(r.__v), i = !1, c = function() {
309
+ i || r.__z || (i = !0, n.__R = null, o ? o(a) : a());
310
+ };
311
+ n.__R = c;
312
+ var s = n.__P;
313
+ n.__P = null;
314
+ var a = function() {
315
+ if (!--r.__u) {
316
+ if (r.state.__a) {
317
+ var u = r.state.__a;
318
+ r.__v.__k[0] = Dn(u, u.__c.__P, u.__c.__O);
125
319
  }
126
- l.componentWillUpdate != null && l.componentWillUpdate(g, l.__s, C), y && l.componentDidUpdate != null && l.__h.push(function() {
127
- l.componentDidUpdate(h, b, p);
128
- });
320
+ var l;
321
+ for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.__P = s, l.forceUpdate();
129
322
  }
130
- if (l.context = C, l.props = g, l.__P = e, l.__e = !1, S = P.__r, R = 0, y) l.state = l.__s, l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), Ie.push.apply(l.__h, l._sb), l._sb = [];
131
- else do
132
- l.__d = !1, S && S(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
133
- while (l.__d && ++R < 25);
134
- l.state = l.__s, l.getChildContext != null && (r = j(j({}, r), l.getChildContext())), y && !m && l.getSnapshotBeforeUpdate != null && (p = l.getSnapshotBeforeUpdate(h, b)), E = d != null && d.type === te && d.key == null ? cn(d.props.children) : d, i = rn(e, Fe(E) ? E : [E], t, n, r, o, s, c, i, u, a), l.base = t.__e, t.__u &= -161, l.__h.length && c.push(l), _ && (l.__E = l.__ = null);
135
- } catch (D) {
136
- if (t.__v = null, u || s != null) if (D.then) {
137
- for (t.__u |= u ? 160 : 128; i && i.nodeType == 8 && i.nextSibling; ) i = i.nextSibling;
138
- s[s.indexOf(i)] = null, t.__e = i;
139
- } else {
140
- for (N = s.length; N--; ) dt(s[N]);
141
- st(t);
323
+ };
324
+ r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(c, c);
325
+ }, Pe.prototype.componentWillUnmount = function() {
326
+ this.o = [];
327
+ }, Pe.prototype.render = function(e, t) {
328
+ if (this.__b) {
329
+ if (this.__v.__k) {
330
+ var n = document.createElement("div"), r = this.__v.__k[0].__c;
331
+ this.__v.__k[0] = kn(this.__b, n, r.__O = r.__P);
142
332
  }
143
- else t.__e = n.__e, t.__k = n.__k, D.then || st(t);
144
- P.__e(D, t, n);
333
+ this.__b = null;
145
334
  }
146
- else s == null && t.__v == n.__v ? (t.__k = n.__k, t.__e = n.__e) : i = t.__e = Rr(n.__e, t, n, r, o, s, c, u, a);
147
- return (d = P.diffed) && d(t), 128 & t.__u ? void 0 : i;
148
- }
149
- function st(e) {
150
- e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(st));
151
- }
152
- function sn(e, t, n) {
153
- for (var r = 0; r < n.length; r++) pt(n[r], n[++r], n[++r]);
154
- P.__c && P.__c(t, e), e.some(function(o) {
155
- try {
156
- e = o.__h, o.__h = [], e.some(function(s) {
157
- s.call(o);
158
- });
159
- } catch (s) {
160
- P.__e(s, o.__v);
161
- }
335
+ var o = t.__a && T(W, null, e.fallback);
336
+ return o && (o.__u &= -33), [T(W, null, t.__a ? null : e.children), o];
337
+ };
338
+ var en = function(e, t, n) {
339
+ 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; ) {
340
+ for (; n.length > 3; ) n.pop()();
341
+ if (n[1] < n[0]) break;
342
+ e.i = n = n[2];
343
+ }
344
+ };
345
+ function _o(e) {
346
+ return this.getChildContext = function() {
347
+ return e.context;
348
+ }, e.children;
349
+ }
350
+ function vo(e) {
351
+ var t = this, n = e.h;
352
+ if (t.componentWillUnmount = function() {
353
+ Ae(null, t.v), t.v = null, t.h = null;
354
+ }, t.h && t.h !== n && t.componentWillUnmount(), !t.v) {
355
+ for (var r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
356
+ t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
357
+ return !0;
358
+ }, namespaceURI: n.namespaceURI, insertBefore: function(o, i) {
359
+ this.childNodes.push(o), t.h.insertBefore(o, i);
360
+ }, removeChild: function(o) {
361
+ this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
362
+ } };
363
+ }
364
+ Ae(T(_o, { context: t.context }, e.__v), t.v);
365
+ }
366
+ function zn(e, t) {
367
+ var n = T(vo, { __v: e, h: t });
368
+ return n.containerInfo = t, n;
369
+ }
370
+ (_e.prototype = new se()).__a = function(e) {
371
+ var t = this, n = xn(t.__v), r = t.l.get(e);
372
+ return r[0]++, function(o) {
373
+ var i = function() {
374
+ t.props.revealOrder ? (r.push(o), en(t, e, r)) : o();
375
+ };
376
+ n ? n(i) : i();
377
+ };
378
+ }, _e.prototype.render = function(e) {
379
+ this.i = null, this.l = /* @__PURE__ */ new Map();
380
+ var t = Q(e.children);
381
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
382
+ for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
383
+ return e.children;
384
+ }, _e.prototype.componentDidUpdate = _e.prototype.componentDidMount = function() {
385
+ var e = this;
386
+ this.l.forEach(function(t, n) {
387
+ en(e, n, t);
162
388
  });
389
+ };
390
+ var $n = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, ho = /^(?: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]/, mo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, go = /[A-Z0-9]/g, yo = typeof document < "u", bo = function(e) {
391
+ return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
392
+ };
393
+ function Ln(e, t, n) {
394
+ return t.__k == null && (t.textContent = ""), Ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
395
+ }
396
+ function Fn(e, t, n) {
397
+ return so(e, t), typeof n == "function" && n(), e ? e.__c : null;
398
+ }
399
+ se.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
400
+ Object.defineProperty(se.prototype, e, { configurable: !0, get: function() {
401
+ return this["UNSAFE_" + e];
402
+ }, set: function(t) {
403
+ Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
404
+ } });
405
+ });
406
+ var tn = z.event;
407
+ function Co() {
163
408
  }
164
- function cn(e) {
165
- return typeof e != "object" || e == null || e.__b > 0 ? e : Fe(e) ? e.map(cn) : j({}, e);
409
+ function wo() {
410
+ return this.cancelBubble;
166
411
  }
167
- function Rr(e, t, n, r, o, s, c, i, u) {
168
- var a, d, l, m, h, b, p, _ = n.props || Ne, g = t.props, y = t.type;
169
- 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"), s != null) {
170
- for (a = 0; a < s.length; a++) if ((h = s[a]) && "setAttribute" in h == !!y && (y ? h.localName == y : h.nodeType == 3)) {
171
- e = h, s[a] = null;
172
- break;
173
- }
174
- }
175
- if (e == null) {
176
- if (y == null) return document.createTextNode(g);
177
- e = document.createElementNS(o, y, g.is && g), i && (P.__m && P.__m(t, s), i = !1), s = null;
178
- }
179
- if (y == null) _ === g || i && e.data == g || (e.data = g);
180
- else {
181
- if (s = s && $e.call(e.childNodes), !i && s != null) for (_ = {}, a = 0; a < e.attributes.length; a++) _[(h = e.attributes[a]).name] = h.value;
182
- for (a in _) h = _[a], a == "dangerouslySetInnerHTML" ? l = h : a == "children" || a in g || a == "value" && "defaultValue" in g || a == "checked" && "defaultChecked" in g || me(e, a, null, h, o);
183
- for (a in g) h = g[a], a == "children" ? m = h : a == "dangerouslySetInnerHTML" ? d = h : a == "value" ? b = h : a == "checked" ? p = h : i && typeof h != "function" || _[a] === h || me(e, a, h, _[a], o);
184
- if (d) i || l && (d.__html == l.__html || d.__html == e.innerHTML) || (e.innerHTML = d.__html), t.__k = [];
185
- else if (l && (e.innerHTML = ""), rn(t.type == "template" ? e.content : e, Fe(m) ? m : [m], t, n, r, y == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, c, s ? s[0] : n.__k && ne(n, 0), i, u), s != null) for (a = s.length; a--; ) dt(s[a]);
186
- i || (a = "value", y == "progress" && b == null ? e.removeAttribute("value") : b != null && (b !== e[a] || y == "progress" && !b || y == "option" && b != _[a]) && me(e, a, b, _[a], o), a = "checked", p != null && p != e[a] && me(e, a, p, _[a], o));
187
- }
188
- return e;
412
+ function So() {
413
+ return this.defaultPrevented;
189
414
  }
190
- function pt(e, t, n) {
191
- try {
192
- if (typeof e == "function") {
193
- var r = typeof e.__u == "function";
194
- r && e.__u(), r && t == null || (e.__u = e(t));
195
- } else e.current = t;
196
- } catch (o) {
197
- P.__e(o, n);
198
- }
199
- }
200
- function an(e, t, n) {
201
- var r, o;
202
- if (P.unmount && P.unmount(e), (r = e.ref) && (r.current && r.current != e.__e || pt(r, null, t)), (r = e.__c) != null) {
203
- if (r.componentWillUnmount) try {
204
- r.componentWillUnmount();
205
- } catch (s) {
206
- P.__e(s, t);
415
+ z.event = function(e) {
416
+ return tn && (e = tn(e)), e.persist = Co, e.isPropagationStopped = wo, e.isDefaultPrevented = So, e.nativeEvent = e;
417
+ };
418
+ var Tt, Eo = { enumerable: !1, configurable: !0, get: function() {
419
+ return this.class;
420
+ } }, nn = z.vnode;
421
+ z.vnode = function(e) {
422
+ typeof e.type == "string" && (function(t) {
423
+ var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
424
+ for (var c in n) {
425
+ var s = n[c];
426
+ if (!(c === "value" && "defaultValue" in n && s == null || yo && c === "children" && r === "noscript" || c === "class" || c === "className")) {
427
+ var a = c.toLowerCase();
428
+ c === "defaultValue" && "value" in n && n.value == null ? c = "value" : c === "download" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || bo(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : mo.test(c) && (c = a) : a = c = "oninput" : i && ho.test(c) ? c = c.replace(go, "-$&").toLowerCase() : s === null && (s = void 0), a === "oninput" && o[c = a] && (c = "oninputCapture"), o[c] = s;
429
+ }
207
430
  }
208
- r.base = r.__P = null;
209
- }
210
- if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && an(r[o], t, n || typeof e.type != "function");
211
- n || dt(e.__e), e.__c = e.__ = e.__e = void 0;
212
- }
213
- function Or(e, t, n) {
214
- return this.constructor(e, n);
431
+ r == "select" && o.multiple && Array.isArray(o.value) && (o.value = Q(n.children).forEach(function(u) {
432
+ u.props.selected = o.value.indexOf(u.props.value) != -1;
433
+ })), r == "select" && o.defaultValue != null && (o.value = Q(n.children).forEach(function(u) {
434
+ u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
435
+ })), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Eo)) : n.className && (o.class = o.className = n.className), t.props = o;
436
+ })(e), e.$$typeof = $n, nn && nn(e);
437
+ };
438
+ var rn = z.__r;
439
+ z.__r = function(e) {
440
+ rn && rn(e), Tt = e.__c;
441
+ };
442
+ var on = z.diffed;
443
+ z.diffed = function(e) {
444
+ on && on(e);
445
+ var t = e.props, n = e.__e;
446
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Tt = null;
447
+ };
448
+ var Un = { ReactCurrentDispatcher: { current: { readContext: function(e) {
449
+ return Tt.__n[e.__c].props.value;
450
+ }, useCallback: M, useContext: Y, useDebugValue: St, useDeferredValue: At, useEffect: E, useId: Et, useImperativeHandle: wt, useInsertionEffect: It, useLayoutEffect: te, useMemo: D, useReducer: Te, useRef: w, useState: R, useSyncExternalStore: Nt, useTransition: Rt } } }, Po = "18.3.1";
451
+ function jn(e) {
452
+ return T.bind(null, e);
215
453
  }
216
- function Ar(e, t, n) {
217
- var r, o, s, c;
218
- t == document && (t = document.documentElement), P.__ && P.__(e, t), o = (r = !1) ? null : t.__k, s = [], c = [], ft(t, e = t.__k = Cr(te, null, [e]), o || Ne, Ne, t.namespaceURI, o ? null : t.firstChild ? $e.call(t.childNodes) : null, s, o ? o.__e : t.firstChild, r, c), sn(s, e, c);
454
+ function G(e) {
455
+ return !!e && e.$$typeof === $n;
219
456
  }
220
- $e = Ie.slice, P = { __e: function(e, t, n, r) {
221
- for (var o, s, c; t = t.__; ) if ((o = t.__c) && !o.__) try {
222
- if ((s = o.constructor) && s.getDerivedStateFromError != null && (o.setState(s.getDerivedStateFromError(e)), c = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), c = o.__d), c) return o.__E = o;
223
- } catch (i) {
224
- e = i;
225
- }
226
- throw e;
227
- } }, Jt = 0, Oe.prototype.setState = function(e, t) {
228
- var n;
229
- n = this.__s != null && this.__s != this.state ? this.__s : this.__s = j({}, this.state), typeof e == "function" && (e = e(j({}, n), this.props)), e && j(n, e), e != null && this.__v && (t && this._sb.push(t), Rt(this));
230
- }, Oe.prototype.forceUpdate = function(e) {
231
- this.__v && (this.__e = !0, e && this.__h.push(e), Rt(this));
232
- }, Oe.prototype.render = te, V = [], Qt = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, en = function(e, t) {
233
- return e.__v.__b - t.__v.__b;
234
- }, Te.__r = 0, tn = /(PointerCapture)$|Capture$/i, ut = 0, rt = At(!1), ot = At(!0);
235
- var kr = 0;
236
- function v(e, t, n, r, o, s) {
237
- t || (t = {});
238
- var c, i, u = t;
239
- if ("ref" in u) for (i in u = {}, t) i == "ref" ? c = t[i] : u[i] = t[i];
240
- var a = { type: e, props: u, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --kr, __i: -1, __u: 0, __source: o, __self: s };
241
- if (typeof e == "function" && (c = e.defaultProps)) for (i in c) u[i] === void 0 && (u[i] = c[i]);
242
- return P.vnode && P.vnode(a), a;
457
+ function Wn(e) {
458
+ return G(e) && e.type === W;
243
459
  }
244
- function ht(...e) {
460
+ function Bn(e) {
461
+ return !!e && typeof e.displayName == "string" && e.displayName.startsWith("Memo(");
462
+ }
463
+ function ge(e) {
464
+ return G(e) ? io.apply(null, arguments) : e;
465
+ }
466
+ function Hn(e) {
467
+ return !!e.__k && (Ae(null, e), !0);
468
+ }
469
+ function Zn(e) {
470
+ return e && (e.base || e.nodeType === 1 && e) || null;
471
+ }
472
+ var Vn = function(e, t) {
473
+ return e(t);
474
+ }, kt = function(e, t) {
475
+ return e(t);
476
+ }, Kn = W, qn = G, I = { useState: R, useId: Et, useReducer: Te, useEffect: E, useLayoutEffect: te, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: w, useImperativeHandle: wt, useMemo: D, useCallback: M, useContext: Y, useDebugValue: St, version: "18.3.1", Children: K, render: Ln, hydrate: Fn, unmountComponentAtNode: Hn, createPortal: zn, createElement: T, createContext: ee, createFactory: jn, cloneElement: ge, createRef: On, Fragment: W, isValidElement: G, isElement: qn, isFragment: Wn, isMemo: Bn, findDOMNode: Zn, Component: se, PureComponent: Ve, memo: Tn, forwardRef: P, flushSync: kt, unstable_batchedUpdates: Vn, StrictMode: Kn, Suspense: Pe, SuspenseList: _e, lazy: Mn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Un };
477
+ const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
478
+ __proto__: null,
479
+ Children: K,
480
+ Component: se,
481
+ Fragment: W,
482
+ PureComponent: Ve,
483
+ StrictMode: Kn,
484
+ Suspense: Pe,
485
+ SuspenseList: _e,
486
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Un,
487
+ cloneElement: ge,
488
+ createContext: ee,
489
+ createElement: T,
490
+ createFactory: jn,
491
+ createPortal: zn,
492
+ createRef: On,
493
+ default: I,
494
+ findDOMNode: Zn,
495
+ flushSync: kt,
496
+ forwardRef: P,
497
+ hydrate: Fn,
498
+ isElement: qn,
499
+ isFragment: Wn,
500
+ isMemo: Bn,
501
+ isValidElement: G,
502
+ lazy: Mn,
503
+ memo: Tn,
504
+ render: Ln,
505
+ startTransition: Ot,
506
+ unmountComponentAtNode: Hn,
507
+ unstable_batchedUpdates: Vn,
508
+ useCallback: M,
509
+ useContext: Y,
510
+ useDebugValue: St,
511
+ useDeferredValue: At,
512
+ useEffect: E,
513
+ useErrorBoundary: ao,
514
+ useId: Et,
515
+ useImperativeHandle: wt,
516
+ useInsertionEffect: It,
517
+ useLayoutEffect: te,
518
+ useMemo: D,
519
+ useReducer: Te,
520
+ useRef: w,
521
+ useState: R,
522
+ useSyncExternalStore: Nt,
523
+ useTransition: Rt,
524
+ version: Po
525
+ }, Symbol.toStringTag, { value: "Module" }));
526
+ function Dt(...e) {
245
527
  return e.filter(Boolean).join(" ");
246
528
  }
247
- function it(e) {
529
+ function gt(e) {
248
530
  return Object.entries(e).filter(([, t]) => t).map(([t]) => t).join(" ");
249
531
  }
250
- const Nr = "_root_hw69b_1", Ir = "_neutral_hw69b_17", Tr = "_brand_hw69b_30", Dr = "_ghost_hw69b_43", kt = {
251
- root: Nr,
252
- neutral: Ir,
253
- brand: Tr,
254
- ghost: Dr
255
- }, qe = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ v("button", { className: ht(kt.root, kt[e]), ...t }), xr = "_root_14l5h_1", Mr = "_muted_14l5h_4", zr = "_body_14l5h_8", Lr = "_normal_14l5h_14", $r = "_bold_14l5h_18", Fr = "_caption_14l5h_23", ge = {
256
- root: xr,
257
- muted: Mr,
258
- body: zr,
259
- normal: Lr,
260
- bold: $r,
261
- caption: Fr
262
- }, q = ({
532
+ const No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro = "_ghost_hw69b_43", sn = {
533
+ root: No,
534
+ neutral: Oo,
535
+ brand: Ao,
536
+ ghost: Ro
537
+ }, at = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ p("button", { className: Dt(sn.root, sn[e]), ...t }), Io = "_root_14l5h_1", To = "_muted_14l5h_4", ko = "_body_14l5h_8", Do = "_normal_14l5h_14", xo = "_bold_14l5h_18", Mo = "_caption_14l5h_23", Me = {
538
+ root: Io,
539
+ muted: To,
540
+ body: ko,
541
+ normal: Do,
542
+ bold: xo,
543
+ caption: Mo
544
+ }, ie = ({
263
545
  as: e = "span",
264
546
  size: t = "body",
265
547
  weight: n = "normal",
@@ -267,86 +549,86 @@ const Nr = "_root_hw69b_1", Ir = "_neutral_hw69b_17", Tr = "_brand_hw69b_30", Dr
267
549
  ...o
268
550
  }) => (
269
551
  // @ts-ignore
270
- /* @__PURE__ */ v(
552
+ /* @__PURE__ */ p(
271
553
  e ?? "span",
272
554
  {
273
- className: ht(
274
- ge.root,
275
- ge[t],
276
- ge[n],
277
- ge[r]
555
+ className: Dt(
556
+ Me.root,
557
+ Me[t],
558
+ Me[n],
559
+ Me[r]
278
560
  ),
279
561
  ...o
280
562
  }
281
563
  )
282
- ), jr = "_root_1wsw7_42", Wr = "_noTarget_1wsw7_53", Br = "_collapsible_1wsw7_62", Ur = "_header_1wsw7_65", Zr = "_heading_1wsw7_72", Vr = "_chevron_1wsw7_78", Hr = "_open_1wsw7_83", Kr = "_settings_1wsw7_89", qr = "_footer_1wsw7_103", Gr = "_legal_1wsw7_110", Yr = "_actions_1wsw7_113", x = {
283
- root: jr,
284
- noTarget: Wr,
285
- collapsible: Br,
286
- header: Ur,
287
- heading: Zr,
288
- chevron: Vr,
289
- open: Hr,
290
- settings: Kr,
291
- footer: qr,
292
- legal: Gr,
293
- actions: Yr
294
- }, Xr = "_root_mqtha_19", Jr = "_header_mqtha_24", Qr = "_label_mqtha_33", eo = "_actions_mqtha_39", to = "_chevron_mqtha_45", no = "_open_mqtha_51", ro = "_description_mqtha_58", Z = {
295
- root: Xr,
296
- header: Jr,
297
- label: Qr,
298
- actions: eo,
299
- chevron: to,
300
- open: no,
301
- description: ro
564
+ ), zo = "_root_1wsw7_42", $o = "_noTarget_1wsw7_53", Lo = "_collapsible_1wsw7_62", Fo = "_header_1wsw7_65", Uo = "_heading_1wsw7_72", jo = "_chevron_1wsw7_78", Wo = "_open_1wsw7_83", Bo = "_settings_1wsw7_89", Ho = "_footer_1wsw7_103", Zo = "_legal_1wsw7_110", Vo = "_actions_1wsw7_113", U = {
565
+ root: zo,
566
+ noTarget: $o,
567
+ collapsible: Lo,
568
+ header: Fo,
569
+ heading: Uo,
570
+ chevron: jo,
571
+ open: Wo,
572
+ settings: Bo,
573
+ footer: Ho,
574
+ legal: Zo,
575
+ actions: Vo
576
+ }, Ko = "_root_mqtha_19", qo = "_header_mqtha_24", Go = "_label_mqtha_33", Yo = "_actions_mqtha_39", Xo = "_chevron_mqtha_45", Jo = "_open_mqtha_51", Qo = "_description_mqtha_58", re = {
577
+ root: Ko,
578
+ header: qo,
579
+ label: Go,
580
+ actions: Yo,
581
+ chevron: Xo,
582
+ open: Jo,
583
+ description: Qo
302
584
  };
303
- function A(e, t, n) {
304
- function r(i, u) {
305
- if (i._zod || Object.defineProperty(i, "_zod", {
585
+ function x(e, t, n) {
586
+ function r(s, a) {
587
+ if (s._zod || Object.defineProperty(s, "_zod", {
306
588
  value: {
307
- def: u,
589
+ def: a,
308
590
  constr: c,
309
591
  traits: /* @__PURE__ */ new Set()
310
592
  },
311
593
  enumerable: !1
312
- }), i._zod.traits.has(e))
594
+ }), s._zod.traits.has(e))
313
595
  return;
314
- i._zod.traits.add(e), t(i, u);
315
- const a = c.prototype, d = Object.keys(a);
316
- for (let l = 0; l < d.length; l++) {
317
- const m = d[l];
318
- m in i || (i[m] = a[m].bind(i));
596
+ s._zod.traits.add(e), t(s, a);
597
+ const u = c.prototype, l = Object.keys(u);
598
+ for (let d = 0; d < l.length; d++) {
599
+ const _ = l[d];
600
+ _ in s || (s[_] = u[_].bind(s));
319
601
  }
320
602
  }
321
603
  const o = n?.Parent ?? Object;
322
- class s extends o {
323
- }
324
- Object.defineProperty(s, "name", { value: e });
325
- function c(i) {
326
- var u;
327
- const a = n?.Parent ? new s() : this;
328
- r(a, i), (u = a._zod).deferred ?? (u.deferred = []);
329
- for (const d of a._zod.deferred)
330
- d();
331
- return a;
604
+ class i extends o {
605
+ }
606
+ Object.defineProperty(i, "name", { value: e });
607
+ function c(s) {
608
+ var a;
609
+ const u = n?.Parent ? new i() : this;
610
+ r(u, s), (a = u._zod).deferred ?? (a.deferred = []);
611
+ for (const l of u._zod.deferred)
612
+ l();
613
+ return u;
332
614
  }
333
615
  return Object.defineProperty(c, "init", { value: r }), Object.defineProperty(c, Symbol.hasInstance, {
334
- value: (i) => n?.Parent && i instanceof n.Parent ? !0 : i?._zod?.traits?.has(e)
616
+ value: (s) => n?.Parent && s instanceof n.Parent ? !0 : s?._zod?.traits?.has(e)
335
617
  }), Object.defineProperty(c, "name", { value: e }), c;
336
618
  }
337
- class le extends Error {
619
+ class Ne extends Error {
338
620
  constructor() {
339
621
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
340
622
  }
341
623
  }
342
- const oo = {};
343
- function oe(e) {
344
- return oo;
624
+ const ei = {};
625
+ function ye(e) {
626
+ return ei;
345
627
  }
346
- function so(e, t) {
628
+ function ti(e, t) {
347
629
  return typeof t == "bigint" ? t.toString() : t;
348
630
  }
349
- function ln(e) {
631
+ function Yn(e) {
350
632
  return {
351
633
  get value() {
352
634
  {
@@ -356,17 +638,17 @@ function ln(e) {
356
638
  }
357
639
  };
358
640
  }
359
- function un(e) {
641
+ function Xn(e) {
360
642
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
361
643
  return e.slice(t, n);
362
644
  }
363
- const Nt = /* @__PURE__ */ Symbol("evaluating");
364
- function $(e, t, n) {
645
+ const cn = /* @__PURE__ */ Symbol("evaluating");
646
+ function Z(e, t, n) {
365
647
  let r;
366
648
  Object.defineProperty(e, t, {
367
649
  get() {
368
- if (r !== Nt)
369
- return r === void 0 && (r = Nt, r = n()), r;
650
+ if (r !== cn)
651
+ return r === void 0 && (r = cn, r = n()), r;
370
652
  },
371
653
  set(o) {
372
654
  Object.defineProperty(e, t, {
@@ -377,34 +659,34 @@ function $(e, t, n) {
377
659
  configurable: !0
378
660
  });
379
661
  }
380
- const dn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
662
+ const Jn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
381
663
  };
382
- function De(e) {
664
+ function Ke(e) {
383
665
  return typeof e == "object" && e !== null && !Array.isArray(e);
384
666
  }
385
- function io(e) {
386
- if (De(e) === !1)
667
+ function ni(e) {
668
+ if (Ke(e) === !1)
387
669
  return !1;
388
670
  const t = e.constructor;
389
671
  if (t === void 0 || typeof t != "function")
390
672
  return !0;
391
673
  const n = t.prototype;
392
- return !(De(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
674
+ return !(Ke(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
393
675
  }
394
- function It(e) {
676
+ function an(e) {
395
677
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
396
678
  }
397
- function co(e, t, n) {
679
+ function ri(e, t, n) {
398
680
  const r = new e._zod.constr(t ?? e._zod.def);
399
681
  return (!t || n?.parent) && (r._zod.parent = e), r;
400
682
  }
401
- function se(e) {
683
+ function be(e) {
402
684
  return {};
403
685
  }
404
- function ao(e) {
686
+ function oi(e) {
405
687
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
406
688
  }
407
- function ce(e, t = 0) {
689
+ function Se(e, t = 0) {
408
690
  if (e.aborted === !0)
409
691
  return !0;
410
692
  for (let n = t; n < e.issues.length; n++)
@@ -412,149 +694,149 @@ function ce(e, t = 0) {
412
694
  return !0;
413
695
  return !1;
414
696
  }
415
- function ae(e, t) {
697
+ function Ee(e, t) {
416
698
  return t.map((n) => {
417
699
  var r;
418
700
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
419
701
  });
420
702
  }
421
- function ye(e) {
703
+ function ze(e) {
422
704
  return typeof e == "string" ? e : e?.message;
423
705
  }
424
- function ie(e, t, n) {
706
+ function Ce(e, t, n) {
425
707
  const r = { ...e, path: e.path ?? [] };
426
708
  if (!e.message) {
427
- const o = ye(e.inst?._zod.def?.error?.(e)) ?? ye(t?.error?.(e)) ?? ye(n.customError?.(e)) ?? ye(n.localeError?.(e)) ?? "Invalid input";
709
+ const o = ze(e.inst?._zod.def?.error?.(e)) ?? ze(t?.error?.(e)) ?? ze(n.customError?.(e)) ?? ze(n.localeError?.(e)) ?? "Invalid input";
428
710
  r.message = o;
429
711
  }
430
712
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
431
713
  }
432
- const fn = (e, t) => {
714
+ const Qn = (e, t) => {
433
715
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
434
716
  value: e._zod,
435
717
  enumerable: !1
436
718
  }), Object.defineProperty(e, "issues", {
437
719
  value: t,
438
720
  enumerable: !1
439
- }), e.message = JSON.stringify(t, so, 2), Object.defineProperty(e, "toString", {
721
+ }), e.message = JSON.stringify(t, ti, 2), Object.defineProperty(e, "toString", {
440
722
  value: () => e.message,
441
723
  enumerable: !1
442
724
  });
443
- }, lo = A("$ZodError", fn), je = A("$ZodError", fn, { Parent: Error }), uo = (e) => (t, n, r, o) => {
444
- const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, s);
725
+ }, ii = x("$ZodError", Qn), Je = x("$ZodError", Qn, { Parent: Error }), si = (e) => (t, n, r, o) => {
726
+ const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, i);
445
727
  if (c instanceof Promise)
446
- throw new le();
728
+ throw new Ne();
447
729
  if (c.issues.length) {
448
- const i = new (o?.Err ?? e)(c.issues.map((u) => ie(u, s, oe())));
449
- throw dn(i, o?.callee), i;
730
+ const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
731
+ throw Jn(s, o?.callee), s;
450
732
  }
451
733
  return c.value;
452
- }, fo = /* @__PURE__ */ uo(je), po = (e) => async (t, n, r, o) => {
453
- const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
454
- let c = t._zod.run({ value: n, issues: [] }, s);
734
+ }, ci = /* @__PURE__ */ si(Je), ai = (e) => async (t, n, r, o) => {
735
+ const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
736
+ let c = t._zod.run({ value: n, issues: [] }, i);
455
737
  if (c instanceof Promise && (c = await c), c.issues.length) {
456
- const i = new (o?.Err ?? e)(c.issues.map((u) => ie(u, s, oe())));
457
- throw dn(i, o?.callee), i;
738
+ const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
739
+ throw Jn(s, o?.callee), s;
458
740
  }
459
741
  return c.value;
460
- }, ho = /* @__PURE__ */ po(je), vo = (e) => (t, n, r) => {
461
- const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
462
- if (s instanceof Promise)
463
- throw new le();
464
- return s.issues.length ? {
742
+ }, ui = /* @__PURE__ */ ai(Je), li = (e) => (t, n, r) => {
743
+ const o = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, o);
744
+ if (i instanceof Promise)
745
+ throw new Ne();
746
+ return i.issues.length ? {
465
747
  success: !1,
466
- error: new (e ?? lo)(s.issues.map((c) => ie(c, o, oe())))
467
- } : { success: !0, data: s.value };
468
- }, pn = /* @__PURE__ */ vo(je), _o = (e) => async (t, n, r) => {
748
+ error: new (e ?? ii)(i.issues.map((c) => Ce(c, o, ye())))
749
+ } : { success: !0, data: i.value };
750
+ }, er = /* @__PURE__ */ li(Je), di = (e) => async (t, n, r) => {
469
751
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
470
- let s = t._zod.run({ value: n, issues: [] }, o);
471
- return s instanceof Promise && (s = await s), s.issues.length ? {
752
+ let i = t._zod.run({ value: n, issues: [] }, o);
753
+ return i instanceof Promise && (i = await i), i.issues.length ? {
472
754
  success: !1,
473
- error: new e(s.issues.map((c) => ie(c, o, oe())))
474
- } : { success: !0, data: s.value };
475
- }, hn = /* @__PURE__ */ _o(je), mo = (e) => {
755
+ error: new e(i.issues.map((c) => Ce(c, o, ye())))
756
+ } : { success: !0, data: i.value };
757
+ }, tr = /* @__PURE__ */ di(Je), fi = (e) => {
476
758
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
477
759
  return new RegExp(`^${t}$`);
478
- }, go = /^-?\d+(?:\.\d+)?$/, yo = /^(?:true|false)$/i, bo = {
760
+ }, pi = /^-?\d+(?:\.\d+)?$/, _i = /^(?:true|false)$/i, vi = {
479
761
  major: 4,
480
762
  minor: 3,
481
763
  patch: 6
482
- }, U = /* @__PURE__ */ A("$ZodType", (e, t) => {
764
+ }, ne = /* @__PURE__ */ x("$ZodType", (e, t) => {
483
765
  var n;
484
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = bo;
766
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vi;
485
767
  const r = [...e._zod.def.checks ?? []];
486
768
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
487
769
  for (const o of r)
488
- for (const s of o._zod.onattach)
489
- s(e);
770
+ for (const i of o._zod.onattach)
771
+ i(e);
490
772
  if (r.length === 0)
491
773
  (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
492
774
  e._zod.run = e._zod.parse;
493
775
  });
494
776
  else {
495
- const o = (c, i, u) => {
496
- let a = ce(c), d;
497
- for (const l of i) {
498
- if (l._zod.def.when) {
499
- if (!l._zod.def.when(c))
777
+ const o = (c, s, a) => {
778
+ let u = Se(c), l;
779
+ for (const d of s) {
780
+ if (d._zod.def.when) {
781
+ if (!d._zod.def.when(c))
500
782
  continue;
501
- } else if (a)
783
+ } else if (u)
502
784
  continue;
503
- const m = c.issues.length, h = l._zod.check(c);
504
- if (h instanceof Promise && u?.async === !1)
505
- throw new le();
506
- if (d || h instanceof Promise)
507
- d = (d ?? Promise.resolve()).then(async () => {
508
- await h, c.issues.length !== m && (a || (a = ce(c, m)));
785
+ const _ = c.issues.length, m = d._zod.check(c);
786
+ if (m instanceof Promise && a?.async === !1)
787
+ throw new Ne();
788
+ if (l || m instanceof Promise)
789
+ l = (l ?? Promise.resolve()).then(async () => {
790
+ await m, c.issues.length !== _ && (u || (u = Se(c, _)));
509
791
  });
510
792
  else {
511
- if (c.issues.length === m)
793
+ if (c.issues.length === _)
512
794
  continue;
513
- a || (a = ce(c, m));
795
+ u || (u = Se(c, _));
514
796
  }
515
797
  }
516
- return d ? d.then(() => c) : c;
517
- }, s = (c, i, u) => {
518
- if (ce(c))
798
+ return l ? l.then(() => c) : c;
799
+ }, i = (c, s, a) => {
800
+ if (Se(c))
519
801
  return c.aborted = !0, c;
520
- const a = o(i, r, u);
521
- if (a instanceof Promise) {
522
- if (u.async === !1)
523
- throw new le();
524
- return a.then((d) => e._zod.parse(d, u));
802
+ const u = o(s, r, a);
803
+ if (u instanceof Promise) {
804
+ if (a.async === !1)
805
+ throw new Ne();
806
+ return u.then((l) => e._zod.parse(l, a));
525
807
  }
526
- return e._zod.parse(a, u);
808
+ return e._zod.parse(u, a);
527
809
  };
528
- e._zod.run = (c, i) => {
529
- if (i.skipChecks)
530
- return e._zod.parse(c, i);
531
- if (i.direction === "backward") {
532
- const a = e._zod.parse({ value: c.value, issues: [] }, { ...i, skipChecks: !0 });
533
- return a instanceof Promise ? a.then((d) => s(d, c, i)) : s(a, c, i);
810
+ e._zod.run = (c, s) => {
811
+ if (s.skipChecks)
812
+ return e._zod.parse(c, s);
813
+ if (s.direction === "backward") {
814
+ const u = e._zod.parse({ value: c.value, issues: [] }, { ...s, skipChecks: !0 });
815
+ return u instanceof Promise ? u.then((l) => i(l, c, s)) : i(u, c, s);
534
816
  }
535
- const u = e._zod.parse(c, i);
536
- if (u instanceof Promise) {
537
- if (i.async === !1)
538
- throw new le();
539
- return u.then((a) => o(a, r, i));
817
+ const a = e._zod.parse(c, s);
818
+ if (a instanceof Promise) {
819
+ if (s.async === !1)
820
+ throw new Ne();
821
+ return a.then((u) => o(u, r, s));
540
822
  }
541
- return o(u, r, i);
823
+ return o(a, r, s);
542
824
  };
543
825
  }
544
- $(e, "~standard", () => ({
826
+ Z(e, "~standard", () => ({
545
827
  validate: (o) => {
546
828
  try {
547
- const s = pn(e, o);
548
- return s.success ? { value: s.data } : { issues: s.error?.issues };
829
+ const i = er(e, o);
830
+ return i.success ? { value: i.data } : { issues: i.error?.issues };
549
831
  } catch {
550
- return hn(e, o).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
832
+ return tr(e, o).then((c) => c.success ? { value: c.data } : { issues: c.error?.issues });
551
833
  }
552
834
  },
553
835
  vendor: "zod",
554
836
  version: 1
555
837
  }));
556
- }), wo = /* @__PURE__ */ A("$ZodString", (e, t) => {
557
- U.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? mo(e._zod.bag), e._zod.parse = (n, r) => {
838
+ }), hi = /* @__PURE__ */ x("$ZodString", (e, t) => {
839
+ ne.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fi(e._zod.bag), e._zod.parse = (n, r) => {
558
840
  if (t.coerce)
559
841
  try {
560
842
  n.value = String(n.value);
@@ -567,8 +849,8 @@ const fn = (e, t) => {
567
849
  inst: e
568
850
  }), n;
569
851
  };
570
- }), Co = /* @__PURE__ */ A("$ZodBoolean", (e, t) => {
571
- U.init(e, t), e._zod.pattern = yo, e._zod.parse = (n, r) => {
852
+ }), mi = /* @__PURE__ */ x("$ZodBoolean", (e, t) => {
853
+ ne.init(e, t), e._zod.pattern = _i, e._zod.parse = (n, r) => {
572
854
  if (t.coerce)
573
855
  try {
574
856
  n.value = !!n.value;
@@ -583,20 +865,20 @@ const fn = (e, t) => {
583
865
  }), n;
584
866
  };
585
867
  });
586
- function xe(e, t, n, r, o) {
868
+ function qe(e, t, n, r, o) {
587
869
  if (e.issues.length) {
588
870
  if (o && !(n in r))
589
871
  return;
590
- t.issues.push(...ae(n, e.issues));
872
+ t.issues.push(...Ee(n, e.issues));
591
873
  }
592
874
  e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
593
875
  }
594
- function Eo(e) {
876
+ function gi(e) {
595
877
  const t = Object.keys(e.shape);
596
878
  for (const r of t)
597
879
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
598
880
  throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
599
- const n = ao(e.shape);
881
+ const n = oi(e.shape);
600
882
  return {
601
883
  ...e,
602
884
  keys: t,
@@ -605,156 +887,156 @@ function Eo(e) {
605
887
  optionalKeys: new Set(n)
606
888
  };
607
889
  }
608
- function So(e, t, n, r, o, s) {
609
- const c = [], i = o.keySet, u = o.catchall._zod, a = u.def.type, d = u.optout === "optional";
610
- for (const l in t) {
611
- if (i.has(l))
890
+ function yi(e, t, n, r, o, i) {
891
+ const c = [], s = o.keySet, a = o.catchall._zod, u = a.def.type, l = a.optout === "optional";
892
+ for (const d in t) {
893
+ if (s.has(d))
612
894
  continue;
613
- if (a === "never") {
614
- c.push(l);
895
+ if (u === "never") {
896
+ c.push(d);
615
897
  continue;
616
898
  }
617
- const m = u.run({ value: t[l], issues: [] }, r);
618
- m instanceof Promise ? e.push(m.then((h) => xe(h, n, l, t, d))) : xe(m, n, l, t, d);
899
+ const _ = a.run({ value: t[d], issues: [] }, r);
900
+ _ instanceof Promise ? e.push(_.then((m) => qe(m, n, d, t, l))) : qe(_, n, d, t, l);
619
901
  }
620
902
  return c.length && n.issues.push({
621
903
  code: "unrecognized_keys",
622
904
  keys: c,
623
905
  input: t,
624
- inst: s
906
+ inst: i
625
907
  }), e.length ? Promise.all(e).then(() => n) : n;
626
908
  }
627
- const Po = /* @__PURE__ */ A("$ZodObject", (e, t) => {
628
- if (U.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
629
- const i = t.shape;
909
+ const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
910
+ if (ne.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
911
+ const s = t.shape;
630
912
  Object.defineProperty(t, "shape", {
631
913
  get: () => {
632
- const u = { ...i };
914
+ const a = { ...s };
633
915
  return Object.defineProperty(t, "shape", {
634
- value: u
635
- }), u;
916
+ value: a
917
+ }), a;
636
918
  }
637
919
  });
638
920
  }
639
- const r = ln(() => Eo(t));
640
- $(e._zod, "propValues", () => {
641
- const i = t.shape, u = {};
642
- for (const a in i) {
643
- const d = i[a]._zod;
644
- if (d.values) {
645
- u[a] ?? (u[a] = /* @__PURE__ */ new Set());
646
- for (const l of d.values)
647
- u[a].add(l);
921
+ const r = Yn(() => gi(t));
922
+ Z(e._zod, "propValues", () => {
923
+ const s = t.shape, a = {};
924
+ for (const u in s) {
925
+ const l = s[u]._zod;
926
+ if (l.values) {
927
+ a[u] ?? (a[u] = /* @__PURE__ */ new Set());
928
+ for (const d of l.values)
929
+ a[u].add(d);
648
930
  }
649
931
  }
650
- return u;
932
+ return a;
651
933
  });
652
- const o = De, s = t.catchall;
934
+ const o = Ke, i = t.catchall;
653
935
  let c;
654
- e._zod.parse = (i, u) => {
936
+ e._zod.parse = (s, a) => {
655
937
  c ?? (c = r.value);
656
- const a = i.value;
657
- if (!o(a))
658
- return i.issues.push({
938
+ const u = s.value;
939
+ if (!o(u))
940
+ return s.issues.push({
659
941
  expected: "object",
660
942
  code: "invalid_type",
661
- input: a,
943
+ input: u,
662
944
  inst: e
663
- }), i;
664
- i.value = {};
665
- const d = [], l = c.shape;
666
- for (const m of c.keys) {
667
- const h = l[m], b = h._zod.optout === "optional", p = h._zod.run({ value: a[m], issues: [] }, u);
668
- p instanceof Promise ? d.push(p.then((_) => xe(_, i, m, a, b))) : xe(p, i, m, a, b);
945
+ }), s;
946
+ s.value = {};
947
+ const l = [], d = c.shape;
948
+ for (const _ of c.keys) {
949
+ const m = d[_], g = m._zod.optout === "optional", f = m._zod.run({ value: u[_], issues: [] }, a);
950
+ f instanceof Promise ? l.push(f.then((v) => qe(v, s, _, u, g))) : qe(f, s, _, u, g);
669
951
  }
670
- return s ? So(d, a, i, u, r.value, e) : d.length ? Promise.all(d).then(() => i) : i;
952
+ return i ? yi(l, u, s, a, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
671
953
  };
672
954
  });
673
- function Tt(e, t, n, r) {
674
- for (const s of e)
675
- if (s.issues.length === 0)
676
- return t.value = s.value, t;
677
- const o = e.filter((s) => !ce(s));
955
+ function un(e, t, n, r) {
956
+ for (const i of e)
957
+ if (i.issues.length === 0)
958
+ return t.value = i.value, t;
959
+ const o = e.filter((i) => !Se(i));
678
960
  return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
679
961
  code: "invalid_union",
680
962
  input: t.value,
681
963
  inst: n,
682
- errors: e.map((s) => s.issues.map((c) => ie(c, r, oe())))
964
+ errors: e.map((i) => i.issues.map((c) => Ce(c, r, ye())))
683
965
  }), t);
684
966
  }
685
- const Ro = /* @__PURE__ */ A("$ZodUnion", (e, t) => {
686
- U.init(e, t), $(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), $(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), $(e._zod, "values", () => {
967
+ const Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
968
+ ne.init(e, t), Z(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), Z(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), Z(e._zod, "values", () => {
687
969
  if (t.options.every((o) => o._zod.values))
688
970
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
689
- }), $(e._zod, "pattern", () => {
971
+ }), Z(e._zod, "pattern", () => {
690
972
  if (t.options.every((o) => o._zod.pattern)) {
691
- const o = t.options.map((s) => s._zod.pattern);
692
- return new RegExp(`^(${o.map((s) => un(s.source)).join("|")})$`);
973
+ const o = t.options.map((i) => i._zod.pattern);
974
+ return new RegExp(`^(${o.map((i) => Xn(i.source)).join("|")})$`);
693
975
  }
694
976
  });
695
977
  const n = t.options.length === 1, r = t.options[0]._zod.run;
696
- e._zod.parse = (o, s) => {
978
+ e._zod.parse = (o, i) => {
697
979
  if (n)
698
- return r(o, s);
980
+ return r(o, i);
699
981
  let c = !1;
700
- const i = [];
701
- for (const u of t.options) {
702
- const a = u._zod.run({
982
+ const s = [];
983
+ for (const a of t.options) {
984
+ const u = a._zod.run({
703
985
  value: o.value,
704
986
  issues: []
705
- }, s);
706
- if (a instanceof Promise)
707
- i.push(a), c = !0;
987
+ }, i);
988
+ if (u instanceof Promise)
989
+ s.push(u), c = !0;
708
990
  else {
709
- if (a.issues.length === 0)
710
- return a;
711
- i.push(a);
991
+ if (u.issues.length === 0)
992
+ return u;
993
+ s.push(u);
712
994
  }
713
995
  }
714
- return c ? Promise.all(i).then((u) => Tt(u, o, e, s)) : Tt(i, o, e, s);
996
+ return c ? Promise.all(s).then((a) => un(a, o, e, i)) : un(s, o, e, i);
715
997
  };
716
- }), Oo = /* @__PURE__ */ A("$ZodDiscriminatedUnion", (e, t) => {
717
- t.inclusive = !1, Ro.init(e, t);
998
+ }), wi = /* @__PURE__ */ x("$ZodDiscriminatedUnion", (e, t) => {
999
+ t.inclusive = !1, Ci.init(e, t);
718
1000
  const n = e._zod.parse;
719
- $(e._zod, "propValues", () => {
1001
+ Z(e._zod, "propValues", () => {
720
1002
  const o = {};
721
- for (const s of t.options) {
722
- const c = s._zod.propValues;
1003
+ for (const i of t.options) {
1004
+ const c = i._zod.propValues;
723
1005
  if (!c || Object.keys(c).length === 0)
724
- throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);
725
- for (const [i, u] of Object.entries(c)) {
726
- o[i] || (o[i] = /* @__PURE__ */ new Set());
727
- for (const a of u)
728
- o[i].add(a);
1006
+ throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);
1007
+ for (const [s, a] of Object.entries(c)) {
1008
+ o[s] || (o[s] = /* @__PURE__ */ new Set());
1009
+ for (const u of a)
1010
+ o[s].add(u);
729
1011
  }
730
1012
  }
731
1013
  return o;
732
1014
  });
733
- const r = ln(() => {
734
- const o = t.options, s = /* @__PURE__ */ new Map();
1015
+ const r = Yn(() => {
1016
+ const o = t.options, i = /* @__PURE__ */ new Map();
735
1017
  for (const c of o) {
736
- const i = c._zod.propValues?.[t.discriminator];
737
- if (!i || i.size === 0)
1018
+ const s = c._zod.propValues?.[t.discriminator];
1019
+ if (!s || s.size === 0)
738
1020
  throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);
739
- for (const u of i) {
740
- if (s.has(u))
741
- throw new Error(`Duplicate discriminator value "${String(u)}"`);
742
- s.set(u, c);
1021
+ for (const a of s) {
1022
+ if (i.has(a))
1023
+ throw new Error(`Duplicate discriminator value "${String(a)}"`);
1024
+ i.set(a, c);
743
1025
  }
744
1026
  }
745
- return s;
1027
+ return i;
746
1028
  });
747
- e._zod.parse = (o, s) => {
1029
+ e._zod.parse = (o, i) => {
748
1030
  const c = o.value;
749
- if (!De(c))
1031
+ if (!Ke(c))
750
1032
  return o.issues.push({
751
1033
  code: "invalid_type",
752
1034
  expected: "object",
753
1035
  input: c,
754
1036
  inst: e
755
1037
  }), o;
756
- const i = r.value.get(c?.[t.discriminator]);
757
- return i ? i._zod.run(o, s) : t.unionFallback ? n(o, s) : (o.issues.push({
1038
+ const s = r.value.get(c?.[t.discriminator]);
1039
+ return s ? s._zod.run(o, i) : t.unionFallback ? n(o, i) : (o.issues.push({
758
1040
  code: "invalid_union",
759
1041
  errors: [],
760
1042
  note: "No matching discriminator",
@@ -764,257 +1046,257 @@ const Ro = /* @__PURE__ */ A("$ZodUnion", (e, t) => {
764
1046
  inst: e
765
1047
  }), o);
766
1048
  };
767
- }), Ao = /* @__PURE__ */ A("$ZodRecord", (e, t) => {
768
- U.init(e, t), e._zod.parse = (n, r) => {
1049
+ }), Si = /* @__PURE__ */ x("$ZodRecord", (e, t) => {
1050
+ ne.init(e, t), e._zod.parse = (n, r) => {
769
1051
  const o = n.value;
770
- if (!io(o))
1052
+ if (!ni(o))
771
1053
  return n.issues.push({
772
1054
  expected: "record",
773
1055
  code: "invalid_type",
774
1056
  input: o,
775
1057
  inst: e
776
1058
  }), n;
777
- const s = [], c = t.keyType._zod.values;
1059
+ const i = [], c = t.keyType._zod.values;
778
1060
  if (c) {
779
1061
  n.value = {};
780
- const i = /* @__PURE__ */ new Set();
781
- for (const a of c)
782
- if (typeof a == "string" || typeof a == "number" || typeof a == "symbol") {
783
- i.add(typeof a == "number" ? a.toString() : a);
784
- const d = t.valueType._zod.run({ value: o[a], issues: [] }, r);
785
- d instanceof Promise ? s.push(d.then((l) => {
786
- l.issues.length && n.issues.push(...ae(a, l.issues)), n.value[a] = l.value;
787
- })) : (d.issues.length && n.issues.push(...ae(a, d.issues)), n.value[a] = d.value);
1062
+ const s = /* @__PURE__ */ new Set();
1063
+ for (const u of c)
1064
+ if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") {
1065
+ s.add(typeof u == "number" ? u.toString() : u);
1066
+ const l = t.valueType._zod.run({ value: o[u], issues: [] }, r);
1067
+ l instanceof Promise ? i.push(l.then((d) => {
1068
+ d.issues.length && n.issues.push(...Ee(u, d.issues)), n.value[u] = d.value;
1069
+ })) : (l.issues.length && n.issues.push(...Ee(u, l.issues)), n.value[u] = l.value);
788
1070
  }
789
- let u;
790
- for (const a in o)
791
- i.has(a) || (u = u ?? [], u.push(a));
792
- u && u.length > 0 && n.issues.push({
1071
+ let a;
1072
+ for (const u in o)
1073
+ s.has(u) || (a = a ?? [], a.push(u));
1074
+ a && a.length > 0 && n.issues.push({
793
1075
  code: "unrecognized_keys",
794
1076
  input: o,
795
1077
  inst: e,
796
- keys: u
1078
+ keys: a
797
1079
  });
798
1080
  } else {
799
1081
  n.value = {};
800
- for (const i of Reflect.ownKeys(o)) {
801
- if (i === "__proto__")
1082
+ for (const s of Reflect.ownKeys(o)) {
1083
+ if (s === "__proto__")
802
1084
  continue;
803
- let u = t.keyType._zod.run({ value: i, issues: [] }, r);
804
- if (u instanceof Promise)
1085
+ let a = t.keyType._zod.run({ value: s, issues: [] }, r);
1086
+ if (a instanceof Promise)
805
1087
  throw new Error("Async schemas not supported in object keys currently");
806
- if (typeof i == "string" && go.test(i) && u.issues.length) {
807
- const l = t.keyType._zod.run({ value: Number(i), issues: [] }, r);
808
- if (l instanceof Promise)
1088
+ if (typeof s == "string" && pi.test(s) && a.issues.length) {
1089
+ const d = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
1090
+ if (d instanceof Promise)
809
1091
  throw new Error("Async schemas not supported in object keys currently");
810
- l.issues.length === 0 && (u = l);
1092
+ d.issues.length === 0 && (a = d);
811
1093
  }
812
- if (u.issues.length) {
813
- t.mode === "loose" ? n.value[i] = o[i] : n.issues.push({
1094
+ if (a.issues.length) {
1095
+ t.mode === "loose" ? n.value[s] = o[s] : n.issues.push({
814
1096
  code: "invalid_key",
815
1097
  origin: "record",
816
- issues: u.issues.map((l) => ie(l, r, oe())),
817
- input: i,
818
- path: [i],
1098
+ issues: a.issues.map((d) => Ce(d, r, ye())),
1099
+ input: s,
1100
+ path: [s],
819
1101
  inst: e
820
1102
  });
821
1103
  continue;
822
1104
  }
823
- const d = t.valueType._zod.run({ value: o[i], issues: [] }, r);
824
- d instanceof Promise ? s.push(d.then((l) => {
825
- l.issues.length && n.issues.push(...ae(i, l.issues)), n.value[u.value] = l.value;
826
- })) : (d.issues.length && n.issues.push(...ae(i, d.issues)), n.value[u.value] = d.value);
1105
+ const l = t.valueType._zod.run({ value: o[s], issues: [] }, r);
1106
+ l instanceof Promise ? i.push(l.then((d) => {
1107
+ d.issues.length && n.issues.push(...Ee(s, d.issues)), n.value[a.value] = d.value;
1108
+ })) : (l.issues.length && n.issues.push(...Ee(s, l.issues)), n.value[a.value] = l.value);
827
1109
  }
828
1110
  }
829
- return s.length ? Promise.all(s).then(() => n) : n;
1111
+ return i.length ? Promise.all(i).then(() => n) : n;
830
1112
  };
831
- }), ko = /* @__PURE__ */ A("$ZodLiteral", (e, t) => {
832
- if (U.init(e, t), t.values.length === 0)
1113
+ }), Ei = /* @__PURE__ */ x("$ZodLiteral", (e, t) => {
1114
+ if (ne.init(e, t), t.values.length === 0)
833
1115
  throw new Error("Cannot create literal schema with no valid values");
834
1116
  const n = new Set(t.values);
835
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? It(r) : r ? It(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
836
- const s = r.value;
837
- return n.has(s) || r.issues.push({
1117
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? an(r) : r ? an(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
1118
+ const i = r.value;
1119
+ return n.has(i) || r.issues.push({
838
1120
  code: "invalid_value",
839
1121
  values: t.values,
840
- input: s,
1122
+ input: i,
841
1123
  inst: e
842
1124
  }), r;
843
1125
  };
844
1126
  });
845
- function Dt(e, t) {
1127
+ function ln(e, t) {
846
1128
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
847
1129
  }
848
- const No = /* @__PURE__ */ A("$ZodOptional", (e, t) => {
849
- U.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", $(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), $(e._zod, "pattern", () => {
1130
+ const Pi = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
1131
+ ne.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
850
1132
  const n = t.innerType._zod.pattern;
851
- return n ? new RegExp(`^(${un(n.source)})?$`) : void 0;
1133
+ return n ? new RegExp(`^(${Xn(n.source)})?$`) : void 0;
852
1134
  }), e._zod.parse = (n, r) => {
853
1135
  if (t.innerType._zod.optin === "optional") {
854
1136
  const o = t.innerType._zod.run(n, r);
855
- return o instanceof Promise ? o.then((s) => Dt(s, n.value)) : Dt(o, n.value);
1137
+ return o instanceof Promise ? o.then((i) => ln(i, n.value)) : ln(o, n.value);
856
1138
  }
857
1139
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
858
1140
  };
859
1141
  });
860
1142
  // @__NO_SIDE_EFFECTS__
861
- function Io(e, t) {
1143
+ function Ni(e, t) {
862
1144
  return new e({
863
1145
  type: "string",
864
- ...se()
1146
+ ...be()
865
1147
  });
866
1148
  }
867
1149
  // @__NO_SIDE_EFFECTS__
868
- function To(e, t) {
1150
+ function Oi(e, t) {
869
1151
  return new e({
870
1152
  type: "boolean",
871
- ...se()
1153
+ ...be()
872
1154
  });
873
1155
  }
874
- const Y = /* @__PURE__ */ A("ZodMiniType", (e, t) => {
1156
+ const ue = /* @__PURE__ */ x("ZodMiniType", (e, t) => {
875
1157
  if (!e._zod)
876
1158
  throw new Error("Uninitialized schema in ZodMiniType.");
877
- U.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => fo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => pn(e, n, r), e.parseAsync = async (n, r) => ho(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => hn(e, n, r), e.check = (...n) => e.clone({
1159
+ ne.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => ci(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => er(e, n, r), e.parseAsync = async (n, r) => ui(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => tr(e, n, r), e.check = (...n) => e.clone({
878
1160
  ...t,
879
1161
  checks: [
880
1162
  ...t.checks ?? [],
881
1163
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
882
1164
  ]
883
- }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => co(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
884
- }), Do = /* @__PURE__ */ A("ZodMiniString", (e, t) => {
885
- wo.init(e, t), Y.init(e, t);
1165
+ }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => ri(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
1166
+ }), Ai = /* @__PURE__ */ x("ZodMiniString", (e, t) => {
1167
+ hi.init(e, t), ue.init(e, t);
886
1168
  });
887
1169
  // @__NO_SIDE_EFFECTS__
888
- function K(e) {
889
- return /* @__PURE__ */ Io(Do);
1170
+ function oe(e) {
1171
+ return /* @__PURE__ */ Ni(Ai);
890
1172
  }
891
- const xo = /* @__PURE__ */ A("ZodMiniBoolean", (e, t) => {
892
- Co.init(e, t), Y.init(e, t);
1173
+ const Ri = /* @__PURE__ */ x("ZodMiniBoolean", (e, t) => {
1174
+ mi.init(e, t), ue.init(e, t);
893
1175
  });
894
1176
  // @__NO_SIDE_EFFECTS__
895
- function fe(e) {
896
- return /* @__PURE__ */ To(xo);
1177
+ function Re(e) {
1178
+ return /* @__PURE__ */ Oi(Ri);
897
1179
  }
898
- const Mo = /* @__PURE__ */ A("ZodMiniObject", (e, t) => {
899
- Po.init(e, t), Y.init(e, t), $(e, "shape", () => t.shape);
1180
+ const Ii = /* @__PURE__ */ x("ZodMiniObject", (e, t) => {
1181
+ bi.init(e, t), ue.init(e, t), Z(e, "shape", () => t.shape);
900
1182
  });
901
1183
  // @__NO_SIDE_EFFECTS__
902
- function vn(e, t) {
1184
+ function nr(e, t) {
903
1185
  const n = {
904
1186
  type: "object",
905
1187
  shape: e ?? {},
906
- ...se()
1188
+ ...be()
907
1189
  };
908
- return new Mo(n);
1190
+ return new Ii(n);
909
1191
  }
910
- const zo = /* @__PURE__ */ A("ZodMiniDiscriminatedUnion", (e, t) => {
911
- Oo.init(e, t), Y.init(e, t);
1192
+ const Ti = /* @__PURE__ */ x("ZodMiniDiscriminatedUnion", (e, t) => {
1193
+ wi.init(e, t), ue.init(e, t);
912
1194
  });
913
1195
  // @__NO_SIDE_EFFECTS__
914
- function Lo(e, t, n) {
915
- return new zo({
1196
+ function ki(e, t, n) {
1197
+ return new Ti({
916
1198
  type: "union",
917
1199
  options: t,
918
1200
  discriminator: e,
919
- ...se()
1201
+ ...be()
920
1202
  });
921
1203
  }
922
- const $o = /* @__PURE__ */ A("ZodMiniRecord", (e, t) => {
923
- Ao.init(e, t), Y.init(e, t);
1204
+ const Di = /* @__PURE__ */ x("ZodMiniRecord", (e, t) => {
1205
+ Si.init(e, t), ue.init(e, t);
924
1206
  });
925
1207
  // @__NO_SIDE_EFFECTS__
926
- function Fo(e, t, n) {
927
- return new $o({
1208
+ function xi(e, t, n) {
1209
+ return new Di({
928
1210
  type: "record",
929
1211
  keyType: e,
930
1212
  valueType: t,
931
- ...se()
1213
+ ...be()
932
1214
  });
933
1215
  }
934
- const jo = /* @__PURE__ */ A("ZodMiniLiteral", (e, t) => {
935
- ko.init(e, t), Y.init(e, t);
1216
+ const Mi = /* @__PURE__ */ x("ZodMiniLiteral", (e, t) => {
1217
+ Ei.init(e, t), ue.init(e, t);
936
1218
  });
937
1219
  // @__NO_SIDE_EFFECTS__
938
- function _n(e, t) {
939
- return new jo({
1220
+ function rr(e, t) {
1221
+ return new Mi({
940
1222
  type: "literal",
941
1223
  values: Array.isArray(e) ? e : [e],
942
- ...se()
1224
+ ...be()
943
1225
  });
944
1226
  }
945
- const Wo = /* @__PURE__ */ A("ZodMiniOptional", (e, t) => {
946
- No.init(e, t), Y.init(e, t);
1227
+ const zi = /* @__PURE__ */ x("ZodMiniOptional", (e, t) => {
1228
+ Pi.init(e, t), ue.init(e, t);
947
1229
  });
948
1230
  // @__NO_SIDE_EFFECTS__
949
- function B(e) {
950
- return new Wo({
1231
+ function J(e) {
1232
+ return new zi({
951
1233
  type: "optional",
952
1234
  innerType: e
953
1235
  });
954
1236
  }
955
- const Bo = /* @__PURE__ */ vn({
956
- variant: /* @__PURE__ */ _n("remote"),
957
- type: /* @__PURE__ */ B(/* @__PURE__ */ K()),
958
- src: /* @__PURE__ */ K(),
959
- async: /* @__PURE__ */ B(/* @__PURE__ */ fe()),
960
- defer: /* @__PURE__ */ B(/* @__PURE__ */ fe()),
961
- crossorigin: /* @__PURE__ */ B(/* @__PURE__ */ K()),
962
- integrity: /* @__PURE__ */ B(/* @__PURE__ */ K())
963
- }), Uo = /* @__PURE__ */ vn({
964
- variant: /* @__PURE__ */ _n("inline"),
965
- type: /* @__PURE__ */ B(/* @__PURE__ */ K()),
966
- async: /* @__PURE__ */ B(/* @__PURE__ */ fe()),
967
- defer: /* @__PURE__ */ B(/* @__PURE__ */ fe()),
968
- content: /* @__PURE__ */ K()
969
- }), Zo = /* @__PURE__ */ Lo("variant", [
970
- Bo,
971
- Uo
1237
+ const $i = /* @__PURE__ */ nr({
1238
+ variant: /* @__PURE__ */ rr("remote"),
1239
+ type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1240
+ src: /* @__PURE__ */ oe(),
1241
+ async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1242
+ defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1243
+ crossorigin: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1244
+ integrity: /* @__PURE__ */ J(/* @__PURE__ */ oe())
1245
+ }), Li = /* @__PURE__ */ nr({
1246
+ variant: /* @__PURE__ */ rr("inline"),
1247
+ type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
1248
+ async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1249
+ defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
1250
+ content: /* @__PURE__ */ oe()
1251
+ }), Fi = /* @__PURE__ */ ki("variant", [
1252
+ $i,
1253
+ Li
972
1254
  ]);
973
- function Vo(e, t) {
974
- const n = f.createContext(t), r = (s) => {
975
- const { children: c, ...i } = s, u = f.useMemo(() => i, Object.values(i));
976
- return /* @__PURE__ */ v(n.Provider, { value: u, children: c });
1255
+ function Ui(e, t) {
1256
+ const n = ee(t), r = (i) => {
1257
+ const { children: c, ...s } = i, a = D(() => s, Object.values(s));
1258
+ return /* @__PURE__ */ p(n.Provider, { value: a, children: c });
977
1259
  };
978
1260
  r.displayName = e + "Provider";
979
- function o(s) {
980
- const c = f.useContext(n);
1261
+ function o(i) {
1262
+ const c = Y(n);
981
1263
  if (c) return c;
982
1264
  if (t !== void 0) return t;
983
- throw new Error(`\`${s}\` must be used within \`${e}\``);
1265
+ throw new Error(`\`${i}\` must be used within \`${e}\``);
984
1266
  }
985
1267
  return [r, o];
986
1268
  }
987
- function he(e, t = []) {
1269
+ function ke(e, t = []) {
988
1270
  let n = [];
989
- function r(s, c) {
990
- const i = f.createContext(c), u = n.length;
1271
+ function r(i, c) {
1272
+ const s = ee(c), a = n.length;
991
1273
  n = [...n, c];
992
- const a = (l) => {
993
- const { scope: m, children: h, ...b } = l, p = m?.[e]?.[u] || i, _ = f.useMemo(() => b, Object.values(b));
994
- return /* @__PURE__ */ v(p.Provider, { value: _, children: h });
1274
+ const u = (d) => {
1275
+ const { scope: _, children: m, ...g } = d, f = _?.[e]?.[a] || s, v = D(() => g, Object.values(g));
1276
+ return /* @__PURE__ */ p(f.Provider, { value: v, children: m });
995
1277
  };
996
- a.displayName = s + "Provider";
997
- function d(l, m) {
998
- const h = m?.[e]?.[u] || i, b = f.useContext(h);
999
- if (b) return b;
1278
+ u.displayName = i + "Provider";
1279
+ function l(d, _) {
1280
+ const m = _?.[e]?.[a] || s, g = Y(m);
1281
+ if (g) return g;
1000
1282
  if (c !== void 0) return c;
1001
- throw new Error(`\`${l}\` must be used within \`${s}\``);
1283
+ throw new Error(`\`${d}\` must be used within \`${i}\``);
1002
1284
  }
1003
- return [a, d];
1285
+ return [u, l];
1004
1286
  }
1005
1287
  const o = () => {
1006
- const s = n.map((c) => f.createContext(c));
1007
- return function(i) {
1008
- const u = i?.[e] || s;
1009
- return f.useMemo(
1010
- () => ({ [`__scope${e}`]: { ...i, [e]: u } }),
1011
- [i, u]
1288
+ const i = n.map((c) => ee(c));
1289
+ return function(s) {
1290
+ const a = s?.[e] || i;
1291
+ return D(
1292
+ () => ({ [`__scope${e}`]: { ...s, [e]: a } }),
1293
+ [s, a]
1012
1294
  );
1013
1295
  };
1014
1296
  };
1015
- return o.scopeName = e, [r, Ho(o, ...t)];
1297
+ return o.scopeName = e, [r, ji(o, ...t)];
1016
1298
  }
1017
- function Ho(...e) {
1299
+ function ji(...e) {
1018
1300
  const t = e[0];
1019
1301
  if (e.length === 1) return t;
1020
1302
  const n = () => {
@@ -1022,180 +1304,180 @@ function Ho(...e) {
1022
1304
  useScope: o(),
1023
1305
  scopeName: o.scopeName
1024
1306
  }));
1025
- return function(s) {
1026
- const c = r.reduce((i, { useScope: u, scopeName: a }) => {
1027
- const l = u(s)[`__scope${a}`];
1028
- return { ...i, ...l };
1307
+ return function(i) {
1308
+ const c = r.reduce((s, { useScope: a, scopeName: u }) => {
1309
+ const d = a(i)[`__scope${u}`];
1310
+ return { ...s, ...d };
1029
1311
  }, {});
1030
- return f.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
1312
+ return D(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
1031
1313
  };
1032
1314
  };
1033
1315
  return n.scopeName = t.scopeName, n;
1034
1316
  }
1035
- function xt(e, t) {
1317
+ function dn(e, t) {
1036
1318
  if (typeof e == "function")
1037
1319
  return e(t);
1038
1320
  e != null && (e.current = t);
1039
1321
  }
1040
- function mn(...e) {
1322
+ function or(...e) {
1041
1323
  return (t) => {
1042
1324
  let n = !1;
1043
1325
  const r = e.map((o) => {
1044
- const s = xt(o, t);
1045
- return !n && typeof s == "function" && (n = !0), s;
1326
+ const i = dn(o, t);
1327
+ return !n && typeof i == "function" && (n = !0), i;
1046
1328
  });
1047
1329
  if (n)
1048
1330
  return () => {
1049
1331
  for (let o = 0; o < r.length; o++) {
1050
- const s = r[o];
1051
- typeof s == "function" ? s() : xt(e[o], null);
1332
+ const i = r[o];
1333
+ typeof i == "function" ? i() : dn(e[o], null);
1052
1334
  }
1053
1335
  };
1054
1336
  };
1055
1337
  }
1056
- function T(...e) {
1057
- return f.useCallback(mn(...e), e);
1338
+ function L(...e) {
1339
+ return M(or(...e), e);
1058
1340
  }
1059
1341
  // @__NO_SIDE_EFFECTS__
1060
- function Me(e) {
1061
- const t = /* @__PURE__ */ Ko(e), n = f.forwardRef((r, o) => {
1062
- const { children: s, ...c } = r, i = f.Children.toArray(s), u = i.find(Go);
1063
- if (u) {
1064
- const a = u.props.children, d = i.map((l) => l === u ? f.Children.count(a) > 1 ? f.Children.only(null) : f.isValidElement(a) ? a.props.children : null : l);
1065
- return /* @__PURE__ */ v(t, { ...c, ref: o, children: f.isValidElement(a) ? f.cloneElement(a, void 0, d) : null });
1342
+ function Ge(e) {
1343
+ const t = /* @__PURE__ */ Wi(e), n = P((r, o) => {
1344
+ const { children: i, ...c } = r, s = K.toArray(i), a = s.find(Hi);
1345
+ if (a) {
1346
+ const u = a.props.children, l = s.map((d) => d === a ? K.count(u) > 1 ? K.only(null) : G(u) ? u.props.children : null : d);
1347
+ return /* @__PURE__ */ p(t, { ...c, ref: o, children: G(u) ? ge(u, void 0, l) : null });
1066
1348
  }
1067
- return /* @__PURE__ */ v(t, { ...c, ref: o, children: s });
1349
+ return /* @__PURE__ */ p(t, { ...c, ref: o, children: i });
1068
1350
  });
1069
1351
  return n.displayName = `${e}.Slot`, n;
1070
1352
  }
1071
1353
  // @__NO_SIDE_EFFECTS__
1072
- function Ko(e) {
1073
- const t = f.forwardRef((n, r) => {
1074
- const { children: o, ...s } = n;
1075
- if (f.isValidElement(o)) {
1076
- const c = Xo(o), i = Yo(s, o.props);
1077
- return o.type !== f.Fragment && (i.ref = r ? mn(r, c) : c), f.cloneElement(o, i);
1354
+ function Wi(e) {
1355
+ const t = P((n, r) => {
1356
+ const { children: o, ...i } = n;
1357
+ if (G(o)) {
1358
+ const c = Vi(o), s = Zi(i, o.props);
1359
+ return o.type !== W && (s.ref = r ? or(r, c) : c), ge(o, s);
1078
1360
  }
1079
- return f.Children.count(o) > 1 ? f.Children.only(null) : null;
1361
+ return K.count(o) > 1 ? K.only(null) : null;
1080
1362
  });
1081
1363
  return t.displayName = `${e}.SlotClone`, t;
1082
1364
  }
1083
- var qo = /* @__PURE__ */ Symbol("radix.slottable");
1084
- function Go(e) {
1085
- return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === qo;
1365
+ var Bi = /* @__PURE__ */ Symbol("radix.slottable");
1366
+ function Hi(e) {
1367
+ return G(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bi;
1086
1368
  }
1087
- function Yo(e, t) {
1369
+ function Zi(e, t) {
1088
1370
  const n = { ...t };
1089
1371
  for (const r in t) {
1090
- const o = e[r], s = t[r];
1091
- /^on[A-Z]/.test(r) ? o && s ? n[r] = (...i) => {
1092
- const u = s(...i);
1093
- return o(...i), u;
1094
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...s } : r === "className" && (n[r] = [o, s].filter(Boolean).join(" "));
1372
+ const o = e[r], i = t[r];
1373
+ /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
1374
+ const a = i(...s);
1375
+ return o(...s), a;
1376
+ } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
1095
1377
  }
1096
1378
  return { ...e, ...n };
1097
1379
  }
1098
- function Xo(e) {
1380
+ function Vi(e) {
1099
1381
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1100
1382
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1101
1383
  }
1102
- function Jo(e) {
1103
- const t = e + "CollectionProvider", [n, r] = he(t), [o, s] = n(
1384
+ function Ki(e) {
1385
+ const t = e + "CollectionProvider", [n, r] = ke(t), [o, i] = n(
1104
1386
  t,
1105
1387
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
1106
- ), c = (p) => {
1107
- const { scope: _, children: g } = p, y = O.useRef(null), w = O.useRef(/* @__PURE__ */ new Map()).current;
1108
- return /* @__PURE__ */ v(o, { scope: _, itemMap: w, collectionRef: y, children: g });
1388
+ ), c = (f) => {
1389
+ const { scope: v, children: h } = f, y = I.useRef(null), b = I.useRef(/* @__PURE__ */ new Map()).current;
1390
+ return /* @__PURE__ */ p(o, { scope: v, itemMap: b, collectionRef: y, children: h });
1109
1391
  };
1110
1392
  c.displayName = t;
1111
- const i = e + "CollectionSlot", u = /* @__PURE__ */ Me(i), a = O.forwardRef(
1112
- (p, _) => {
1113
- const { scope: g, children: y } = p, w = s(i, g), C = T(_, w.collectionRef);
1114
- return /* @__PURE__ */ v(u, { ref: C, children: y });
1393
+ const s = e + "CollectionSlot", a = /* @__PURE__ */ Ge(s), u = I.forwardRef(
1394
+ (f, v) => {
1395
+ const { scope: h, children: y } = f, b = i(s, h), C = L(v, b.collectionRef);
1396
+ return /* @__PURE__ */ p(a, { ref: C, children: y });
1115
1397
  }
1116
1398
  );
1117
- a.displayName = i;
1118
- const d = e + "CollectionItemSlot", l = "data-radix-collection-item", m = /* @__PURE__ */ Me(d), h = O.forwardRef(
1119
- (p, _) => {
1120
- const { scope: g, children: y, ...w } = p, C = O.useRef(null), S = T(_, C), R = s(d, g);
1121
- return O.useEffect(() => (R.itemMap.set(C, { ref: C, ...w }), () => {
1122
- R.itemMap.delete(C);
1123
- })), /* @__PURE__ */ v(m, { [l]: "", ref: S, children: y });
1399
+ u.displayName = s;
1400
+ const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ge(l), m = I.forwardRef(
1401
+ (f, v) => {
1402
+ const { scope: h, children: y, ...b } = f, C = I.useRef(null), O = L(v, C), k = i(l, h);
1403
+ return I.useEffect(() => (k.itemMap.set(C, { ref: C, ...b }), () => {
1404
+ k.itemMap.delete(C);
1405
+ })), /* @__PURE__ */ p(_, { [d]: "", ref: O, children: y });
1124
1406
  }
1125
1407
  );
1126
- h.displayName = d;
1127
- function b(p) {
1128
- const _ = s(e + "CollectionConsumer", p);
1129
- return O.useCallback(() => {
1130
- const y = _.collectionRef.current;
1408
+ m.displayName = l;
1409
+ function g(f) {
1410
+ const v = i(e + "CollectionConsumer", f);
1411
+ return I.useCallback(() => {
1412
+ const y = v.collectionRef.current;
1131
1413
  if (!y) return [];
1132
- const w = Array.from(y.querySelectorAll(`[${l}]`));
1133
- return Array.from(_.itemMap.values()).sort(
1134
- (R, E) => w.indexOf(R.ref.current) - w.indexOf(E.ref.current)
1414
+ const b = Array.from(y.querySelectorAll(`[${d}]`));
1415
+ return Array.from(v.itemMap.values()).sort(
1416
+ (k, S) => b.indexOf(k.ref.current) - b.indexOf(S.ref.current)
1135
1417
  );
1136
- }, [_.collectionRef, _.itemMap]);
1418
+ }, [v.collectionRef, v.itemMap]);
1137
1419
  }
1138
1420
  return [
1139
- { Provider: c, Slot: a, ItemSlot: h },
1140
- b,
1421
+ { Provider: c, Slot: u, ItemSlot: m },
1422
+ g,
1141
1423
  r
1142
1424
  ];
1143
1425
  }
1144
- function M(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1426
+ function j(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
1145
1427
  return function(o) {
1146
1428
  if (e?.(o), n === !1 || !o.defaultPrevented)
1147
1429
  return t?.(o);
1148
1430
  };
1149
1431
  }
1150
- var re = globalThis?.document ? f.useLayoutEffect : () => {
1151
- }, Qo = f[" useInsertionEffect ".trim().toString()] || re;
1152
- function ve({
1432
+ var me = globalThis?.document ? te : () => {
1433
+ }, qi = Gn[" useInsertionEffect ".trim().toString()] || me;
1434
+ function De({
1153
1435
  prop: e,
1154
1436
  defaultProp: t,
1155
1437
  onChange: n = () => {
1156
1438
  },
1157
1439
  caller: r
1158
1440
  }) {
1159
- const [o, s, c] = es({
1441
+ const [o, i, c] = Gi({
1160
1442
  defaultProp: t,
1161
1443
  onChange: n
1162
- }), i = e !== void 0, u = i ? e : o;
1444
+ }), s = e !== void 0, a = s ? e : o;
1163
1445
  {
1164
- const d = f.useRef(e !== void 0);
1165
- f.useEffect(() => {
1166
- const l = d.current;
1167
- l !== i && console.warn(
1168
- `${r} is changing from ${l ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
1169
- ), d.current = i;
1170
- }, [i, r]);
1171
- }
1172
- const a = f.useCallback(
1173
- (d) => {
1174
- if (i) {
1175
- const l = ts(d) ? d(e) : d;
1176
- l !== e && c.current?.(l);
1446
+ const l = w(e !== void 0);
1447
+ E(() => {
1448
+ const d = l.current;
1449
+ d !== s && console.warn(
1450
+ `${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
1451
+ ), l.current = s;
1452
+ }, [s, r]);
1453
+ }
1454
+ const u = M(
1455
+ (l) => {
1456
+ if (s) {
1457
+ const d = Yi(l) ? l(e) : l;
1458
+ d !== e && c.current?.(d);
1177
1459
  } else
1178
- s(d);
1460
+ i(l);
1179
1461
  },
1180
- [i, e, s, c]
1462
+ [s, e, i, c]
1181
1463
  );
1182
- return [u, a];
1464
+ return [a, u];
1183
1465
  }
1184
- function es({
1466
+ function Gi({
1185
1467
  defaultProp: e,
1186
1468
  onChange: t
1187
1469
  }) {
1188
- const [n, r] = f.useState(e), o = f.useRef(n), s = f.useRef(t);
1189
- return Qo(() => {
1190
- s.current = t;
1191
- }, [t]), f.useEffect(() => {
1192
- o.current !== n && (s.current?.(n), o.current = n);
1193
- }, [n, o]), [n, r, s];
1194
- }
1195
- function ts(e) {
1470
+ const [n, r] = R(e), o = w(n), i = w(t);
1471
+ return qi(() => {
1472
+ i.current = t;
1473
+ }, [t]), E(() => {
1474
+ o.current !== n && (i.current?.(n), o.current = n);
1475
+ }, [n, o]), [n, r, i];
1476
+ }
1477
+ function Yi(e) {
1196
1478
  return typeof e == "function";
1197
1479
  }
1198
- var ns = [
1480
+ var Xi = [
1199
1481
  "a",
1200
1482
  "button",
1201
1483
  "div",
@@ -1213,26 +1495,26 @@ var ns = [
1213
1495
  "span",
1214
1496
  "svg",
1215
1497
  "ul"
1216
- ], I = ns.reduce((e, t) => {
1217
- const n = /* @__PURE__ */ Me(`Primitive.${t}`), r = f.forwardRef((o, s) => {
1218
- const { asChild: c, ...i } = o, u = c ? n : t;
1219
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ v(u, { ...i, ref: s });
1498
+ ], $ = Xi.reduce((e, t) => {
1499
+ const n = /* @__PURE__ */ Ge(`Primitive.${t}`), r = P((o, i) => {
1500
+ const { asChild: c, ...s } = o, a = c ? n : t;
1501
+ return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(a, { ...s, ref: i });
1220
1502
  });
1221
1503
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
1222
1504
  }, {});
1223
- function rs(e, t) {
1224
- e && br.flushSync(() => e.dispatchEvent(t));
1505
+ function Ji(e, t) {
1506
+ e && kt(() => e.dispatchEvent(t));
1225
1507
  }
1226
- function os(e, t) {
1227
- return f.useReducer((n, r) => t[n][r] ?? n, e);
1508
+ function Qi(e, t) {
1509
+ return Te((n, r) => t[n][r] ?? n, e);
1228
1510
  }
1229
- var We = (e) => {
1230
- const { present: t, children: n } = e, r = ss(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = T(r.ref, is(o));
1231
- return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
1511
+ var Qe = (e) => {
1512
+ const { present: t, children: n } = e, r = es(t), o = typeof n == "function" ? n({ present: r.isPresent }) : K.only(n), i = L(r.ref, ts(o));
1513
+ return typeof n == "function" || r.isPresent ? ge(o, { ref: i }) : null;
1232
1514
  };
1233
- We.displayName = "Presence";
1234
- function ss(e) {
1235
- const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), c = e ? "mounted" : "unmounted", [i, u] = os(c, {
1515
+ Qe.displayName = "Presence";
1516
+ function es(e) {
1517
+ const [t, n] = R(), r = w(null), o = w(e), i = w("none"), c = e ? "mounted" : "unmounted", [s, a] = Qi(c, {
1236
1518
  mounted: {
1237
1519
  UNMOUNT: "unmounted",
1238
1520
  ANIMATION_OUT: "unmountSuspended"
@@ -1245,85 +1527,85 @@ function ss(e) {
1245
1527
  MOUNT: "mounted"
1246
1528
  }
1247
1529
  });
1248
- return f.useEffect(() => {
1249
- const a = be(r.current);
1250
- s.current = i === "mounted" ? a : "none";
1251
- }, [i]), re(() => {
1252
- const a = r.current, d = o.current;
1253
- if (d !== e) {
1254
- const m = s.current, h = be(a);
1255
- e ? u("MOUNT") : h === "none" || a?.display === "none" ? u("UNMOUNT") : u(d && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1530
+ return E(() => {
1531
+ const u = $e(r.current);
1532
+ i.current = s === "mounted" ? u : "none";
1533
+ }, [s]), me(() => {
1534
+ const u = r.current, l = o.current;
1535
+ if (l !== e) {
1536
+ const _ = i.current, m = $e(u);
1537
+ e ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
1256
1538
  }
1257
- }, [e, u]), re(() => {
1539
+ }, [e, a]), me(() => {
1258
1540
  if (t) {
1259
- let a;
1260
- const d = t.ownerDocument.defaultView ?? window, l = (h) => {
1261
- const p = be(r.current).includes(CSS.escape(h.animationName));
1262
- if (h.target === t && p && (u("ANIMATION_END"), !o.current)) {
1263
- const _ = t.style.animationFillMode;
1264
- t.style.animationFillMode = "forwards", a = d.setTimeout(() => {
1265
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = _);
1541
+ let u;
1542
+ const l = t.ownerDocument.defaultView ?? window, d = (m) => {
1543
+ const f = $e(r.current).includes(CSS.escape(m.animationName));
1544
+ if (m.target === t && f && (a("ANIMATION_END"), !o.current)) {
1545
+ const v = t.style.animationFillMode;
1546
+ t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
1547
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
1266
1548
  });
1267
1549
  }
1268
- }, m = (h) => {
1269
- h.target === t && (s.current = be(r.current));
1550
+ }, _ = (m) => {
1551
+ m.target === t && (i.current = $e(r.current));
1270
1552
  };
1271
- return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
1272
- d.clearTimeout(a), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
1553
+ return t.addEventListener("animationstart", _), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
1554
+ l.clearTimeout(u), t.removeEventListener("animationstart", _), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
1273
1555
  };
1274
1556
  } else
1275
- u("ANIMATION_END");
1276
- }, [t, u]), {
1277
- isPresent: ["mounted", "unmountSuspended"].includes(i),
1278
- ref: f.useCallback((a) => {
1279
- r.current = a ? getComputedStyle(a) : null, n(a);
1557
+ a("ANIMATION_END");
1558
+ }, [t, a]), {
1559
+ isPresent: ["mounted", "unmountSuspended"].includes(s),
1560
+ ref: M((u) => {
1561
+ r.current = u ? getComputedStyle(u) : null, n(u);
1280
1562
  }, [])
1281
1563
  };
1282
1564
  }
1283
- function be(e) {
1565
+ function $e(e) {
1284
1566
  return e?.animationName || "none";
1285
1567
  }
1286
- function is(e) {
1568
+ function ts(e) {
1287
1569
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1288
1570
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1289
1571
  }
1290
- var cs = f[" useId ".trim().toString()] || (() => {
1291
- }), as = 0;
1292
- function ue(e) {
1293
- const [t, n] = f.useState(cs());
1294
- return re(() => {
1295
- n((r) => r ?? String(as++));
1572
+ var ns = Gn[" useId ".trim().toString()] || (() => {
1573
+ }), rs = 0;
1574
+ function Oe(e) {
1575
+ const [t, n] = R(ns());
1576
+ return me(() => {
1577
+ n((r) => r ?? String(rs++));
1296
1578
  }, [e]), e || (t ? `radix-${t}` : "");
1297
1579
  }
1298
- var Be = "Collapsible", [ls, gn] = he(Be), [us, vt] = ls(Be), yn = f.forwardRef(
1580
+ var et = "Collapsible", [os, ir] = ke(et), [is, xt] = os(et), sr = P(
1299
1581
  (e, t) => {
1300
1582
  const {
1301
1583
  __scopeCollapsible: n,
1302
1584
  open: r,
1303
1585
  defaultOpen: o,
1304
- disabled: s,
1586
+ disabled: i,
1305
1587
  onOpenChange: c,
1306
- ...i
1307
- } = e, [u, a] = ve({
1588
+ ...s
1589
+ } = e, [a, u] = De({
1308
1590
  prop: r,
1309
1591
  defaultProp: o ?? !1,
1310
1592
  onChange: c,
1311
- caller: Be
1593
+ caller: et
1312
1594
  });
1313
- return /* @__PURE__ */ v(
1314
- us,
1595
+ return /* @__PURE__ */ p(
1596
+ is,
1315
1597
  {
1316
1598
  scope: n,
1317
- disabled: s,
1318
- contentId: ue(),
1319
- open: u,
1320
- onOpenToggle: f.useCallback(() => a((d) => !d), [a]),
1321
- children: /* @__PURE__ */ v(
1322
- I.div,
1599
+ disabled: i,
1600
+ contentId: Oe(),
1601
+ open: a,
1602
+ onOpenToggle: M(() => u((l) => !l), [u]),
1603
+ children: /* @__PURE__ */ p(
1604
+ $.div,
1323
1605
  {
1324
- "data-state": mt(u),
1325
- "data-disabled": s ? "" : void 0,
1326
- ...i,
1606
+ "data-state": zt(a),
1607
+ "data-disabled": i ? "" : void 0,
1608
+ ...s,
1327
1609
  ref: t
1328
1610
  }
1329
1611
  )
@@ -1331,220 +1613,220 @@ var Be = "Collapsible", [ls, gn] = he(Be), [us, vt] = ls(Be), yn = f.forwardRef(
1331
1613
  );
1332
1614
  }
1333
1615
  );
1334
- yn.displayName = Be;
1335
- var bn = "CollapsibleTrigger", wn = f.forwardRef(
1616
+ sr.displayName = et;
1617
+ var cr = "CollapsibleTrigger", ar = P(
1336
1618
  (e, t) => {
1337
- const { __scopeCollapsible: n, ...r } = e, o = vt(bn, n);
1338
- return /* @__PURE__ */ v(
1339
- I.button,
1619
+ const { __scopeCollapsible: n, ...r } = e, o = xt(cr, n);
1620
+ return /* @__PURE__ */ p(
1621
+ $.button,
1340
1622
  {
1341
1623
  type: "button",
1342
1624
  "aria-controls": o.contentId,
1343
1625
  "aria-expanded": o.open || !1,
1344
- "data-state": mt(o.open),
1626
+ "data-state": zt(o.open),
1345
1627
  "data-disabled": o.disabled ? "" : void 0,
1346
1628
  disabled: o.disabled,
1347
1629
  ...r,
1348
1630
  ref: t,
1349
- onClick: M(e.onClick, o.onOpenToggle)
1631
+ onClick: j(e.onClick, o.onOpenToggle)
1350
1632
  }
1351
1633
  );
1352
1634
  }
1353
1635
  );
1354
- wn.displayName = bn;
1355
- var _t = "CollapsibleContent", Cn = f.forwardRef(
1636
+ ar.displayName = cr;
1637
+ var Mt = "CollapsibleContent", ur = P(
1356
1638
  (e, t) => {
1357
- const { forceMount: n, ...r } = e, o = vt(_t, e.__scopeCollapsible);
1358
- return /* @__PURE__ */ v(We, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ v(ds, { ...r, ref: t, present: s }) });
1639
+ const { forceMount: n, ...r } = e, o = xt(Mt, e.__scopeCollapsible);
1640
+ return /* @__PURE__ */ p(Qe, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ p(ss, { ...r, ref: t, present: i }) });
1359
1641
  }
1360
1642
  );
1361
- Cn.displayName = _t;
1362
- var ds = f.forwardRef((e, t) => {
1363
- const { __scopeCollapsible: n, present: r, children: o, ...s } = e, c = vt(_t, n), [i, u] = f.useState(r), a = f.useRef(null), d = T(t, a), l = f.useRef(0), m = l.current, h = f.useRef(0), b = h.current, p = c.open || i, _ = f.useRef(p), g = f.useRef(void 0);
1364
- return f.useEffect(() => {
1365
- const y = requestAnimationFrame(() => _.current = !1);
1643
+ ur.displayName = Mt;
1644
+ var ss = P((e, t) => {
1645
+ const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = xt(Mt, n), [s, a] = R(r), u = w(null), l = L(t, u), d = w(0), _ = d.current, m = w(0), g = m.current, f = c.open || s, v = w(f), h = w(void 0);
1646
+ return E(() => {
1647
+ const y = requestAnimationFrame(() => v.current = !1);
1366
1648
  return () => cancelAnimationFrame(y);
1367
- }, []), re(() => {
1368
- const y = a.current;
1649
+ }, []), me(() => {
1650
+ const y = u.current;
1369
1651
  if (y) {
1370
- g.current = g.current || {
1652
+ h.current = h.current || {
1371
1653
  transitionDuration: y.style.transitionDuration,
1372
1654
  animationName: y.style.animationName
1373
1655
  }, y.style.transitionDuration = "0s", y.style.animationName = "none";
1374
- const w = y.getBoundingClientRect();
1375
- l.current = w.height, h.current = w.width, _.current || (y.style.transitionDuration = g.current.transitionDuration, y.style.animationName = g.current.animationName), u(r);
1656
+ const b = y.getBoundingClientRect();
1657
+ d.current = b.height, m.current = b.width, v.current || (y.style.transitionDuration = h.current.transitionDuration, y.style.animationName = h.current.animationName), a(r);
1376
1658
  }
1377
- }, [c.open, r]), /* @__PURE__ */ v(
1378
- I.div,
1659
+ }, [c.open, r]), /* @__PURE__ */ p(
1660
+ $.div,
1379
1661
  {
1380
- "data-state": mt(c.open),
1662
+ "data-state": zt(c.open),
1381
1663
  "data-disabled": c.disabled ? "" : void 0,
1382
1664
  id: c.contentId,
1383
- hidden: !p,
1384
- ...s,
1385
- ref: d,
1665
+ hidden: !f,
1666
+ ...i,
1667
+ ref: l,
1386
1668
  style: {
1387
- "--radix-collapsible-content-height": m ? `${m}px` : void 0,
1388
- "--radix-collapsible-content-width": b ? `${b}px` : void 0,
1669
+ "--radix-collapsible-content-height": _ ? `${_}px` : void 0,
1670
+ "--radix-collapsible-content-width": g ? `${g}px` : void 0,
1389
1671
  ...e.style
1390
1672
  },
1391
- children: p && o
1673
+ children: f && o
1392
1674
  }
1393
1675
  );
1394
1676
  });
1395
- function mt(e) {
1677
+ function zt(e) {
1396
1678
  return e ? "open" : "closed";
1397
1679
  }
1398
- var En = yn, Sn = wn, Pn = Cn, fs = f.createContext(void 0);
1399
- function ps(e) {
1400
- const t = f.useContext(fs);
1680
+ var lr = sr, dr = ar, fr = ur, cs = ee(void 0);
1681
+ function as(e) {
1682
+ const t = Y(cs);
1401
1683
  return e || t || "ltr";
1402
1684
  }
1403
- var z = "Accordion", hs = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [gt, vs, _s] = Jo(z), [Ue] = he(z, [
1404
- _s,
1405
- gn
1406
- ]), yt = gn(), Rn = O.forwardRef(
1685
+ var B = "Accordion", us = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [$t, ls, ds] = Ki(B), [tt] = ke(B, [
1686
+ ds,
1687
+ ir
1688
+ ]), Lt = ir(), pr = I.forwardRef(
1407
1689
  (e, t) => {
1408
- const { type: n, ...r } = e, o = r, s = r;
1409
- return /* @__PURE__ */ v(gt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ v(bs, { ...s, ref: t }) : /* @__PURE__ */ v(ys, { ...o, ref: t }) });
1690
+ const { type: n, ...r } = e, o = r, i = r;
1691
+ return /* @__PURE__ */ p($t.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ p(vs, { ...i, ref: t }) : /* @__PURE__ */ p(_s, { ...o, ref: t }) });
1410
1692
  }
1411
1693
  );
1412
- Rn.displayName = z;
1413
- var [On, ms] = Ue(z), [An, gs] = Ue(
1414
- z,
1694
+ pr.displayName = B;
1695
+ var [_r, fs] = tt(B), [vr, ps] = tt(
1696
+ B,
1415
1697
  { collapsible: !1 }
1416
- ), ys = O.forwardRef(
1698
+ ), _s = I.forwardRef(
1417
1699
  (e, t) => {
1418
1700
  const {
1419
1701
  value: n,
1420
1702
  defaultValue: r,
1421
1703
  onValueChange: o = () => {
1422
1704
  },
1423
- collapsible: s = !1,
1705
+ collapsible: i = !1,
1424
1706
  ...c
1425
- } = e, [i, u] = ve({
1707
+ } = e, [s, a] = De({
1426
1708
  prop: n,
1427
1709
  defaultProp: r ?? "",
1428
1710
  onChange: o,
1429
- caller: z
1711
+ caller: B
1430
1712
  });
1431
- return /* @__PURE__ */ v(
1432
- On,
1713
+ return /* @__PURE__ */ p(
1714
+ _r,
1433
1715
  {
1434
1716
  scope: e.__scopeAccordion,
1435
- value: O.useMemo(() => i ? [i] : [], [i]),
1436
- onItemOpen: u,
1437
- onItemClose: O.useCallback(() => s && u(""), [s, u]),
1438
- children: /* @__PURE__ */ v(An, { scope: e.__scopeAccordion, collapsible: s, children: /* @__PURE__ */ v(kn, { ...c, ref: t }) })
1717
+ value: I.useMemo(() => s ? [s] : [], [s]),
1718
+ onItemOpen: a,
1719
+ onItemClose: I.useCallback(() => i && a(""), [i, a]),
1720
+ children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ p(hr, { ...c, ref: t }) })
1439
1721
  }
1440
1722
  );
1441
1723
  }
1442
- ), bs = O.forwardRef((e, t) => {
1724
+ ), vs = I.forwardRef((e, t) => {
1443
1725
  const {
1444
1726
  value: n,
1445
1727
  defaultValue: r,
1446
1728
  onValueChange: o = () => {
1447
1729
  },
1448
- ...s
1449
- } = e, [c, i] = ve({
1730
+ ...i
1731
+ } = e, [c, s] = De({
1450
1732
  prop: n,
1451
1733
  defaultProp: r ?? [],
1452
1734
  onChange: o,
1453
- caller: z
1454
- }), u = O.useCallback(
1455
- (d) => i((l = []) => [...l, d]),
1456
- [i]
1457
- ), a = O.useCallback(
1458
- (d) => i((l = []) => l.filter((m) => m !== d)),
1459
- [i]
1735
+ caller: B
1736
+ }), a = I.useCallback(
1737
+ (l) => s((d = []) => [...d, l]),
1738
+ [s]
1739
+ ), u = I.useCallback(
1740
+ (l) => s((d = []) => d.filter((_) => _ !== l)),
1741
+ [s]
1460
1742
  );
1461
- return /* @__PURE__ */ v(
1462
- On,
1743
+ return /* @__PURE__ */ p(
1744
+ _r,
1463
1745
  {
1464
1746
  scope: e.__scopeAccordion,
1465
1747
  value: c,
1466
- onItemOpen: u,
1467
- onItemClose: a,
1468
- children: /* @__PURE__ */ v(An, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ v(kn, { ...s, ref: t }) })
1748
+ onItemOpen: a,
1749
+ onItemClose: u,
1750
+ children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ p(hr, { ...i, ref: t }) })
1469
1751
  }
1470
1752
  );
1471
- }), [ws, Ze] = Ue(z), kn = O.forwardRef(
1753
+ }), [hs, nt] = tt(B), hr = I.forwardRef(
1472
1754
  (e, t) => {
1473
- const { __scopeAccordion: n, disabled: r, dir: o, orientation: s = "vertical", ...c } = e, i = O.useRef(null), u = T(i, t), a = vs(n), l = ps(o) === "ltr", m = M(e.onKeyDown, (h) => {
1474
- if (!hs.includes(h.key)) return;
1475
- const b = h.target, p = a().filter((N) => !N.ref.current?.disabled), _ = p.findIndex((N) => N.ref.current === b), g = p.length;
1476
- if (_ === -1) return;
1477
- h.preventDefault();
1478
- let y = _;
1479
- const w = 0, C = g - 1, S = () => {
1480
- y = _ + 1, y > C && (y = w);
1481
- }, R = () => {
1482
- y = _ - 1, y < w && (y = C);
1755
+ const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s = I.useRef(null), a = L(s, t), u = ls(n), d = as(o) === "ltr", _ = j(e.onKeyDown, (m) => {
1756
+ if (!us.includes(m.key)) return;
1757
+ const g = m.target, f = u().filter((F) => !F.ref.current?.disabled), v = f.findIndex((F) => F.ref.current === g), h = f.length;
1758
+ if (v === -1) return;
1759
+ m.preventDefault();
1760
+ let y = v;
1761
+ const b = 0, C = h - 1, O = () => {
1762
+ y = v + 1, y > C && (y = b);
1763
+ }, k = () => {
1764
+ y = v - 1, y < b && (y = C);
1483
1765
  };
1484
- switch (h.key) {
1766
+ switch (m.key) {
1485
1767
  case "Home":
1486
- y = w;
1768
+ y = b;
1487
1769
  break;
1488
1770
  case "End":
1489
1771
  y = C;
1490
1772
  break;
1491
1773
  case "ArrowRight":
1492
- s === "horizontal" && (l ? S() : R());
1774
+ i === "horizontal" && (d ? O() : k());
1493
1775
  break;
1494
1776
  case "ArrowDown":
1495
- s === "vertical" && S();
1777
+ i === "vertical" && O();
1496
1778
  break;
1497
1779
  case "ArrowLeft":
1498
- s === "horizontal" && (l ? R() : S());
1780
+ i === "horizontal" && (d ? k() : O());
1499
1781
  break;
1500
1782
  case "ArrowUp":
1501
- s === "vertical" && R();
1783
+ i === "vertical" && k();
1502
1784
  break;
1503
1785
  }
1504
- const E = y % g;
1505
- p[E].ref.current?.focus();
1786
+ const S = y % h;
1787
+ f[S].ref.current?.focus();
1506
1788
  });
1507
- return /* @__PURE__ */ v(
1508
- ws,
1789
+ return /* @__PURE__ */ p(
1790
+ hs,
1509
1791
  {
1510
1792
  scope: n,
1511
1793
  disabled: r,
1512
1794
  direction: o,
1513
- orientation: s,
1514
- children: /* @__PURE__ */ v(gt.Slot, { scope: n, children: /* @__PURE__ */ v(
1515
- I.div,
1795
+ orientation: i,
1796
+ children: /* @__PURE__ */ p($t.Slot, { scope: n, children: /* @__PURE__ */ p(
1797
+ $.div,
1516
1798
  {
1517
1799
  ...c,
1518
- "data-orientation": s,
1519
- ref: u,
1520
- onKeyDown: r ? void 0 : m
1800
+ "data-orientation": i,
1801
+ ref: a,
1802
+ onKeyDown: r ? void 0 : _
1521
1803
  }
1522
1804
  ) })
1523
1805
  }
1524
1806
  );
1525
1807
  }
1526
- ), ze = "AccordionItem", [Cs, bt] = Ue(ze), Nn = O.forwardRef(
1808
+ ), Ye = "AccordionItem", [ms, Ft] = tt(Ye), mr = I.forwardRef(
1527
1809
  (e, t) => {
1528
- const { __scopeAccordion: n, value: r, ...o } = e, s = Ze(ze, n), c = ms(ze, n), i = yt(n), u = ue(), a = r && c.value.includes(r) || !1, d = s.disabled || e.disabled;
1529
- return /* @__PURE__ */ v(
1530
- Cs,
1810
+ const { __scopeAccordion: n, value: r, ...o } = e, i = nt(Ye, n), c = fs(Ye, n), s = Lt(n), a = Oe(), u = r && c.value.includes(r) || !1, l = i.disabled || e.disabled;
1811
+ return /* @__PURE__ */ p(
1812
+ ms,
1531
1813
  {
1532
1814
  scope: n,
1533
- open: a,
1534
- disabled: d,
1535
- triggerId: u,
1536
- children: /* @__PURE__ */ v(
1537
- En,
1815
+ open: u,
1816
+ disabled: l,
1817
+ triggerId: a,
1818
+ children: /* @__PURE__ */ p(
1819
+ lr,
1538
1820
  {
1539
- "data-orientation": s.orientation,
1540
- "data-state": Mn(a),
1541
- ...i,
1821
+ "data-orientation": i.orientation,
1822
+ "data-state": wr(u),
1823
+ ...s,
1542
1824
  ...o,
1543
1825
  ref: t,
1544
- disabled: d,
1545
- open: a,
1546
- onOpenChange: (l) => {
1547
- l ? c.onItemOpen(r) : c.onItemClose(r);
1826
+ disabled: l,
1827
+ open: u,
1828
+ onOpenChange: (d) => {
1829
+ d ? c.onItemOpen(r) : c.onItemClose(r);
1548
1830
  }
1549
1831
  }
1550
1832
  )
@@ -1552,48 +1834,48 @@ var [On, ms] = Ue(z), [An, gs] = Ue(
1552
1834
  );
1553
1835
  }
1554
1836
  );
1555
- Nn.displayName = ze;
1556
- var In = "AccordionHeader", Es = O.forwardRef(
1837
+ mr.displayName = Ye;
1838
+ var gr = "AccordionHeader", gs = I.forwardRef(
1557
1839
  (e, t) => {
1558
- const { __scopeAccordion: n, ...r } = e, o = Ze(z, n), s = bt(In, n);
1559
- return /* @__PURE__ */ v(
1560
- I.h3,
1840
+ const { __scopeAccordion: n, ...r } = e, o = nt(B, n), i = Ft(gr, n);
1841
+ return /* @__PURE__ */ p(
1842
+ $.h3,
1561
1843
  {
1562
1844
  "data-orientation": o.orientation,
1563
- "data-state": Mn(s.open),
1564
- "data-disabled": s.disabled ? "" : void 0,
1845
+ "data-state": wr(i.open),
1846
+ "data-disabled": i.disabled ? "" : void 0,
1565
1847
  ...r,
1566
1848
  ref: t
1567
1849
  }
1568
1850
  );
1569
1851
  }
1570
1852
  );
1571
- Es.displayName = In;
1572
- var ct = "AccordionTrigger", Tn = O.forwardRef(
1853
+ gs.displayName = gr;
1854
+ var yt = "AccordionTrigger", yr = I.forwardRef(
1573
1855
  (e, t) => {
1574
- const { __scopeAccordion: n, ...r } = e, o = Ze(z, n), s = bt(ct, n), c = gs(ct, n), i = yt(n);
1575
- return /* @__PURE__ */ v(gt.ItemSlot, { scope: n, children: /* @__PURE__ */ v(
1576
- Sn,
1856
+ const { __scopeAccordion: n, ...r } = e, o = nt(B, n), i = Ft(yt, n), c = ps(yt, n), s = Lt(n);
1857
+ return /* @__PURE__ */ p($t.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
1858
+ dr,
1577
1859
  {
1578
- "aria-disabled": s.open && !c.collapsible || void 0,
1860
+ "aria-disabled": i.open && !c.collapsible || void 0,
1579
1861
  "data-orientation": o.orientation,
1580
- id: s.triggerId,
1581
- ...i,
1862
+ id: i.triggerId,
1863
+ ...s,
1582
1864
  ...r,
1583
1865
  ref: t
1584
1866
  }
1585
1867
  ) });
1586
1868
  }
1587
1869
  );
1588
- Tn.displayName = ct;
1589
- var Dn = "AccordionContent", xn = O.forwardRef(
1870
+ yr.displayName = yt;
1871
+ var br = "AccordionContent", Cr = I.forwardRef(
1590
1872
  (e, t) => {
1591
- const { __scopeAccordion: n, ...r } = e, o = Ze(z, n), s = bt(Dn, n), c = yt(n);
1592
- return /* @__PURE__ */ v(
1593
- Pn,
1873
+ const { __scopeAccordion: n, ...r } = e, o = nt(B, n), i = Ft(br, n), c = Lt(n);
1874
+ return /* @__PURE__ */ p(
1875
+ fr,
1594
1876
  {
1595
1877
  role: "region",
1596
- "aria-labelledby": s.triggerId,
1878
+ "aria-labelledby": i.triggerId,
1597
1879
  "data-orientation": o.orientation,
1598
1880
  ...c,
1599
1881
  ...r,
@@ -1607,22 +1889,22 @@ var Dn = "AccordionContent", xn = O.forwardRef(
1607
1889
  );
1608
1890
  }
1609
1891
  );
1610
- xn.displayName = Dn;
1611
- function Mn(e) {
1892
+ Cr.displayName = br;
1893
+ function wr(e) {
1612
1894
  return e ? "open" : "closed";
1613
1895
  }
1614
- var Ss = Rn, Ps = Nn, Mt = Tn, Rs = xn;
1615
- const zn = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1616
- const Os = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1617
- const As = (e) => e.replace(
1896
+ var ys = pr, bs = mr, fn = yr, Cs = Cr;
1897
+ const Sr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
1898
+ const ws = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1899
+ const Ss = (e) => e.replace(
1618
1900
  /^([A-Z])|[\s-_]+(\w)/g,
1619
1901
  (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
1620
1902
  );
1621
- const zt = (e) => {
1622
- const t = As(e);
1903
+ const pn = (e) => {
1904
+ const t = Ss(e);
1623
1905
  return t.charAt(0).toUpperCase() + t.slice(1);
1624
1906
  };
1625
- var ks = {
1907
+ var Es = {
1626
1908
  xmlns: "http://www.w3.org/2000/svg",
1627
1909
  width: 24,
1628
1910
  height: 24,
@@ -1633,147 +1915,147 @@ var ks = {
1633
1915
  strokeLinecap: "round",
1634
1916
  strokeLinejoin: "round"
1635
1917
  };
1636
- const Ns = (e) => {
1918
+ const Ps = (e) => {
1637
1919
  for (const t in e)
1638
1920
  if (t.startsWith("aria-") || t === "role" || t === "title")
1639
1921
  return !0;
1640
1922
  return !1;
1641
1923
  };
1642
- const Is = Yt(
1924
+ const Ns = P(
1643
1925
  ({
1644
1926
  color: e = "currentColor",
1645
1927
  size: t = 24,
1646
1928
  strokeWidth: n = 2,
1647
1929
  absoluteStrokeWidth: r,
1648
1930
  className: o = "",
1649
- children: s,
1931
+ children: i,
1650
1932
  iconNode: c,
1651
- ...i
1652
- }, u) => nt(
1933
+ ...s
1934
+ }, a) => T(
1653
1935
  "svg",
1654
1936
  {
1655
- ref: u,
1656
- ...ks,
1937
+ ref: a,
1938
+ ...Es,
1657
1939
  width: t,
1658
1940
  height: t,
1659
1941
  stroke: e,
1660
1942
  strokeWidth: r ? Number(n) * 24 / Number(t) : n,
1661
- className: zn("lucide", o),
1662
- ...!s && !Ns(i) && { "aria-hidden": "true" },
1663
- ...i
1943
+ className: Sr("lucide", o),
1944
+ ...!i && !Ps(s) && { "aria-hidden": "true" },
1945
+ ...s
1664
1946
  },
1665
1947
  [
1666
- ...c.map(([a, d]) => nt(a, d)),
1667
- ...Array.isArray(s) ? s : [s]
1948
+ ...c.map(([u, l]) => T(u, l)),
1949
+ ...Array.isArray(i) ? i : [i]
1668
1950
  ]
1669
1951
  )
1670
1952
  );
1671
- const Ln = (e, t) => {
1672
- const n = Yt(
1673
- ({ className: r, ...o }, s) => nt(Is, {
1674
- ref: s,
1953
+ const Er = (e, t) => {
1954
+ const n = P(
1955
+ ({ className: r, ...o }, i) => T(Ns, {
1956
+ ref: i,
1675
1957
  iconNode: t,
1676
- className: zn(
1677
- `lucide-${Os(zt(e))}`,
1958
+ className: Sr(
1959
+ `lucide-${ws(pn(e))}`,
1678
1960
  `lucide-${e}`,
1679
1961
  r
1680
1962
  ),
1681
1963
  ...o
1682
1964
  })
1683
1965
  );
1684
- return n.displayName = zt(e), n;
1966
+ return n.displayName = pn(e), n;
1685
1967
  };
1686
- const Ts = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Ds = Ln("chevron-down", Ts);
1687
- const xs = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Ms = Ln("chevron-up", xs);
1688
- function zs(e) {
1689
- const t = f.useRef({ value: e, previous: e });
1690
- return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1691
- }
1692
- function Ls(e) {
1693
- const [t, n] = f.useState(void 0);
1694
- return re(() => {
1968
+ const Os = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], As = Er("chevron-down", Os);
1969
+ const Rs = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Is = Er("chevron-up", Rs);
1970
+ function Ts(e) {
1971
+ const t = w({ value: e, previous: e });
1972
+ return D(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
1973
+ }
1974
+ function ks(e) {
1975
+ const [t, n] = R(void 0);
1976
+ return me(() => {
1695
1977
  if (e) {
1696
1978
  n({ width: e.offsetWidth, height: e.offsetHeight });
1697
1979
  const r = new ResizeObserver((o) => {
1698
1980
  if (!Array.isArray(o) || !o.length)
1699
1981
  return;
1700
- const s = o[0];
1701
- let c, i;
1702
- if ("borderBoxSize" in s) {
1703
- const u = s.borderBoxSize, a = Array.isArray(u) ? u[0] : u;
1704
- c = a.inlineSize, i = a.blockSize;
1982
+ const i = o[0];
1983
+ let c, s;
1984
+ if ("borderBoxSize" in i) {
1985
+ const a = i.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
1986
+ c = u.inlineSize, s = u.blockSize;
1705
1987
  } else
1706
- c = e.offsetWidth, i = e.offsetHeight;
1707
- n({ width: c, height: i });
1988
+ c = e.offsetWidth, s = e.offsetHeight;
1989
+ n({ width: c, height: s });
1708
1990
  });
1709
1991
  return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
1710
1992
  } else
1711
1993
  n(void 0);
1712
1994
  }, [e]), t;
1713
1995
  }
1714
- var Ve = "Switch", [$s] = he(Ve), [Fs, js] = $s(Ve), $n = f.forwardRef(
1996
+ var rt = "Switch", [Ds] = ke(rt), [xs, Ms] = Ds(rt), Pr = P(
1715
1997
  (e, t) => {
1716
1998
  const {
1717
1999
  __scopeSwitch: n,
1718
2000
  name: r,
1719
2001
  checked: o,
1720
- defaultChecked: s,
2002
+ defaultChecked: i,
1721
2003
  required: c,
1722
- disabled: i,
1723
- value: u = "on",
1724
- onCheckedChange: a,
1725
- form: d,
1726
- ...l
1727
- } = e, [m, h] = f.useState(null), b = T(t, (w) => h(w)), p = f.useRef(!1), _ = m ? d || !!m.closest("form") : !0, [g, y] = ve({
2004
+ disabled: s,
2005
+ value: a = "on",
2006
+ onCheckedChange: u,
2007
+ form: l,
2008
+ ...d
2009
+ } = e, [_, m] = R(null), g = L(t, (b) => m(b)), f = w(!1), v = _ ? l || !!_.closest("form") : !0, [h, y] = De({
1728
2010
  prop: o,
1729
- defaultProp: s ?? !1,
1730
- onChange: a,
1731
- caller: Ve
2011
+ defaultProp: i ?? !1,
2012
+ onChange: u,
2013
+ caller: rt
1732
2014
  });
1733
- return /* @__PURE__ */ v(Fs, { scope: n, checked: g, disabled: i, children: [
1734
- /* @__PURE__ */ v(
1735
- I.button,
2015
+ return /* @__PURE__ */ p(xs, { scope: n, checked: h, disabled: s, children: [
2016
+ /* @__PURE__ */ p(
2017
+ $.button,
1736
2018
  {
1737
2019
  type: "button",
1738
2020
  role: "switch",
1739
- "aria-checked": g,
2021
+ "aria-checked": h,
1740
2022
  "aria-required": c,
1741
- "data-state": Bn(g),
1742
- "data-disabled": i ? "" : void 0,
1743
- disabled: i,
1744
- value: u,
1745
- ...l,
1746
- ref: b,
1747
- onClick: M(e.onClick, (w) => {
1748
- y((C) => !C), _ && (p.current = w.isPropagationStopped(), p.current || w.stopPropagation());
2023
+ "data-state": Rr(h),
2024
+ "data-disabled": s ? "" : void 0,
2025
+ disabled: s,
2026
+ value: a,
2027
+ ...d,
2028
+ ref: g,
2029
+ onClick: j(e.onClick, (b) => {
2030
+ y((C) => !C), v && (f.current = b.isPropagationStopped(), f.current || b.stopPropagation());
1749
2031
  })
1750
2032
  }
1751
2033
  ),
1752
- _ && /* @__PURE__ */ v(
1753
- Wn,
2034
+ v && /* @__PURE__ */ p(
2035
+ Ar,
1754
2036
  {
1755
- control: m,
1756
- bubbles: !p.current,
2037
+ control: _,
2038
+ bubbles: !f.current,
1757
2039
  name: r,
1758
- value: u,
1759
- checked: g,
2040
+ value: a,
2041
+ checked: h,
1760
2042
  required: c,
1761
- disabled: i,
1762
- form: d,
2043
+ disabled: s,
2044
+ form: l,
1763
2045
  style: { transform: "translateX(-100%)" }
1764
2046
  }
1765
2047
  )
1766
2048
  ] });
1767
2049
  }
1768
2050
  );
1769
- $n.displayName = Ve;
1770
- var Fn = "SwitchThumb", jn = f.forwardRef(
2051
+ Pr.displayName = rt;
2052
+ var Nr = "SwitchThumb", Or = P(
1771
2053
  (e, t) => {
1772
- const { __scopeSwitch: n, ...r } = e, o = js(Fn, n);
1773
- return /* @__PURE__ */ v(
1774
- I.span,
2054
+ const { __scopeSwitch: n, ...r } = e, o = Ms(Nr, n);
2055
+ return /* @__PURE__ */ p(
2056
+ $.span,
1775
2057
  {
1776
- "data-state": Bn(o.checked),
2058
+ "data-state": Rr(o.checked),
1777
2059
  "data-disabled": o.disabled ? "" : void 0,
1778
2060
  ...r,
1779
2061
  ref: t
@@ -1781,28 +2063,28 @@ var Fn = "SwitchThumb", jn = f.forwardRef(
1781
2063
  );
1782
2064
  }
1783
2065
  );
1784
- jn.displayName = Fn;
1785
- var Ws = "SwitchBubbleInput", Wn = f.forwardRef(
2066
+ Or.displayName = Nr;
2067
+ var zs = "SwitchBubbleInput", Ar = P(
1786
2068
  ({
1787
2069
  __scopeSwitch: e,
1788
2070
  control: t,
1789
2071
  checked: n,
1790
2072
  bubbles: r = !0,
1791
2073
  ...o
1792
- }, s) => {
1793
- const c = f.useRef(null), i = T(c, s), u = zs(n), a = Ls(t);
1794
- return f.useEffect(() => {
1795
- const d = c.current;
1796
- if (!d) return;
1797
- const l = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(
1798
- l,
2074
+ }, i) => {
2075
+ const c = w(null), s = L(c, i), a = Ts(n), u = ks(t);
2076
+ return E(() => {
2077
+ const l = c.current;
2078
+ if (!l) return;
2079
+ const d = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
2080
+ d,
1799
2081
  "checked"
1800
2082
  ).set;
1801
- if (u !== n && h) {
1802
- const b = new Event("click", { bubbles: r });
1803
- h.call(d, n), d.dispatchEvent(b);
2083
+ if (a !== n && m) {
2084
+ const g = new Event("click", { bubbles: r });
2085
+ m.call(l, n), l.dispatchEvent(g);
1804
2086
  }
1805
- }, [u, n, r]), /* @__PURE__ */ v(
2087
+ }, [a, n, r]), /* @__PURE__ */ p(
1806
2088
  "input",
1807
2089
  {
1808
2090
  type: "checkbox",
@@ -1810,10 +2092,10 @@ var Ws = "SwitchBubbleInput", Wn = f.forwardRef(
1810
2092
  defaultChecked: n,
1811
2093
  ...o,
1812
2094
  tabIndex: -1,
1813
- ref: i,
2095
+ ref: s,
1814
2096
  style: {
1815
2097
  ...o.style,
1816
- ...a,
2098
+ ...u,
1817
2099
  position: "absolute",
1818
2100
  pointerEvents: "none",
1819
2101
  opacity: 0,
@@ -1823,169 +2105,169 @@ var Ws = "SwitchBubbleInput", Wn = f.forwardRef(
1823
2105
  );
1824
2106
  }
1825
2107
  );
1826
- Wn.displayName = Ws;
1827
- function Bn(e) {
2108
+ Ar.displayName = zs;
2109
+ function Rr(e) {
1828
2110
  return e ? "checked" : "unchecked";
1829
2111
  }
1830
- var Bs = $n, Us = jn;
1831
- const Zs = "_root_dibqz_1", Vs = "_thumb_dibqz_38", we = {
1832
- root: Zs,
2112
+ var $s = Pr, Ls = Or;
2113
+ const Fs = "_root_dibqz_1", Us = "_thumb_dibqz_38", Le = {
2114
+ root: Fs,
1833
2115
  switch: "_switch_dibqz_8",
1834
- thumb: Vs
1835
- }, Hs = ({ label: e, id: t, ...n }) => /* @__PURE__ */ v("div", { className: we.root, children: [
1836
- e && /* @__PURE__ */ v(q, { className: we.label, as: "label", htmlFor: t, children: e }),
1837
- /* @__PURE__ */ v(Bs, { className: we.switch, ...n, children: /* @__PURE__ */ v(Us, { className: we.thumb }) })
1838
- ] }), Ks = /* @__PURE__ */ Fo(/* @__PURE__ */ K(), /* @__PURE__ */ fe()), Un = yr(null), qs = ({
2116
+ thumb: Us
2117
+ }, js = ({ label: e, id: t, ...n }) => /* @__PURE__ */ p("div", { className: Le.root, children: [
2118
+ e && /* @__PURE__ */ p(ie, { className: Le.label, as: "label", htmlFor: t, children: e }),
2119
+ /* @__PURE__ */ p($s, { className: Le.switch, ...n, children: /* @__PURE__ */ p(Ls, { className: Le.thumb }) })
2120
+ ] }), Ws = /* @__PURE__ */ xi(/* @__PURE__ */ oe(), /* @__PURE__ */ Re()), Ir = ee(null), Bs = ({
1839
2121
  children: e,
1840
2122
  items: t,
1841
2123
  localStorageKey: n
1842
2124
  }) => {
1843
- function r(b) {
1844
- const p = localStorage.getItem(b);
1845
- if (!p) return null;
1846
- const { success: _, data: g } = Ks.safeParse(
1847
- JSON.parse(p)
2125
+ function r(g) {
2126
+ const f = localStorage.getItem(g);
2127
+ if (!f) return null;
2128
+ const { success: v, data: h } = Ws.safeParse(
2129
+ JSON.parse(f)
1848
2130
  );
1849
- return _ ? g : null;
2131
+ return v ? h : null;
1850
2132
  }
1851
- const o = H(
2133
+ const o = D(
1852
2134
  () => Object.fromEntries(
1853
- t.map((b) => [b.value, b.defaultSelected ?? !1])
2135
+ t.map((g) => [g.value, g.defaultSelected ?? !1])
1854
2136
  ),
1855
2137
  [t]
1856
- ), [s, c] = de(
2138
+ ), [i, c] = R(
1857
2139
  r(n) ?? o
1858
- ), [i, u] = de(
2140
+ ), [s, a] = R(
1859
2141
  r(n)
1860
2142
  );
1861
- function a(b, p) {
1862
- const _ = s ? { ...s, [b]: p } : { [b]: p };
1863
- c(_);
1864
- }
1865
- Xt(() => {
1866
- let b = [];
1867
- i !== null && (b = Object.entries(i).filter(([_, g]) => g).map(([_]) => _));
1868
- const p = t.filter(
1869
- (_) => b.includes(_.value)
2143
+ function u(g, f) {
2144
+ const v = i ? { ...i, [g]: f } : { [g]: f };
2145
+ c(v);
2146
+ }
2147
+ E(() => {
2148
+ let g = [];
2149
+ s !== null && (g = Object.entries(s).filter(([v, h]) => h).map(([v]) => v));
2150
+ const f = t.filter(
2151
+ (v) => g.includes(v.value)
1870
2152
  );
1871
- for (const _ of t) {
1872
- const g = document.head.querySelector(`#${_.value}`);
1873
- g && g.remove();
2153
+ for (const v of t) {
2154
+ const h = document.head.querySelector(`#${v.value}`);
2155
+ h && h.remove();
1874
2156
  }
1875
- for (const _ of p) {
1876
- const g = document.createElement("script");
1877
- if (g.id = _.value, !_.script) {
1878
- _.required || console.warn("CookieBanner: Missing script for", _.value);
2157
+ for (const v of f) {
2158
+ const h = document.createElement("script");
2159
+ if (h.id = v.value, !v.script) {
2160
+ v.required || console.warn("CookieBanner: Missing script for", v.value);
1879
2161
  continue;
1880
2162
  }
1881
- const { success: y, data: w } = Zo.safeParse(
1882
- _.script
2163
+ const { success: y, data: b } = Fi.safeParse(
2164
+ v.script
1883
2165
  );
1884
2166
  if (!y) {
1885
2167
  console.error(
1886
2168
  "CookieBanner: Invalid script definition for",
1887
- _.value
2169
+ v.value
1888
2170
  );
1889
2171
  continue;
1890
2172
  }
1891
- switch (g.type = w.type ?? "text/javascript", g.async = w.async ?? !1, g.defer = w.defer ?? !1, w.variant) {
2173
+ switch (h.type = b.type ?? "text/javascript", h.async = b.async ?? !1, h.defer = b.defer ?? !1, b.variant) {
1892
2174
  case "inline":
1893
- g.textContent = w.content;
2175
+ h.textContent = b.content;
1894
2176
  break;
1895
2177
  case "remote":
1896
- g.src = w.src, g.crossOrigin = w.crossorigin ?? null, g.integrity = w.integrity ?? "";
2178
+ h.src = b.src, h.crossOrigin = b.crossorigin ?? null, h.integrity = b.integrity ?? "";
1897
2179
  break;
1898
2180
  }
1899
- document.head.appendChild(g);
2181
+ document.head.appendChild(h);
1900
2182
  }
1901
- }, [i, t]);
1902
- function d(b) {
1903
- u(b), localStorage.setItem(n, JSON.stringify(b));
2183
+ }, [s, t]);
2184
+ function l(g) {
2185
+ a(g), localStorage.setItem(n, JSON.stringify(g));
1904
2186
  }
1905
- const l = St(() => {
1906
- const b = Object.fromEntries(
1907
- t.map((p) => [p.value, !1])
2187
+ const d = M(() => {
2188
+ const g = Object.fromEntries(
2189
+ t.map((f) => [f.value, !1])
1908
2190
  );
1909
- c(b), d(b);
1910
- }, [t]), m = St(() => {
1911
- d(s);
1912
- }, [s]), h = H(() => {
1913
- if (!i) return !1;
1914
- const b = Object.keys(i);
1915
- return t.map((_) => _.value).every((_) => b.includes(_));
1916
- }, [i, t]);
1917
- return /* @__PURE__ */ v(
1918
- Un.Provider,
2191
+ c(g), l(g);
2192
+ }, [t]), _ = M(() => {
2193
+ l(i);
2194
+ }, [i]), m = D(() => {
2195
+ if (!s) return !1;
2196
+ const g = Object.keys(s);
2197
+ return t.map((v) => v.value).every((v) => g.includes(v));
2198
+ }, [s, t]);
2199
+ return /* @__PURE__ */ p(
2200
+ Ir.Provider,
1919
2201
  {
1920
2202
  value: {
1921
- selection: s,
1922
- toggleSelection: a,
1923
- onDeclineAll: l,
1924
- onSave: m,
1925
- selectionTaken: h
2203
+ selection: i,
2204
+ toggleSelection: u,
2205
+ onDeclineAll: d,
2206
+ onSave: _,
2207
+ selectionTaken: m
1926
2208
  },
1927
2209
  children: e
1928
2210
  }
1929
2211
  );
1930
2212
  };
1931
- function Zn() {
1932
- const e = gr(Un);
2213
+ function Tr() {
2214
+ const e = Y(Ir);
1933
2215
  if (!e)
1934
2216
  throw new Error("useSelection must be used within a SelectionProvider");
1935
2217
  return e;
1936
2218
  }
1937
- const Gs = ({
2219
+ const Hs = ({
1938
2220
  value: e,
1939
2221
  label: t,
1940
2222
  sublabel: n,
1941
2223
  required: r = !1,
1942
2224
  description: o,
1943
- openItem: s
2225
+ openItem: i
1944
2226
  }) => {
1945
- const { toggleSelection: c, selection: i } = Zn(), u = H(
1946
- () => i?.[e] ?? !1,
1947
- [i, e]
2227
+ const { toggleSelection: c, selection: s } = Tr(), a = D(
2228
+ () => s?.[e] ?? !1,
2229
+ [s, e]
1948
2230
  );
1949
- Xt(() => {
1950
- c(e, u);
1951
- }, [e, u]);
1952
- const a = H(
1953
- () => r ? !0 : u,
1954
- [r, u]
1955
- ), d = H(
1956
- () => (m) => r ? () => {
1957
- } : c(e, m),
2231
+ E(() => {
2232
+ c(e, a);
2233
+ }, [e, a]);
2234
+ const u = D(
2235
+ () => r ? !0 : a,
2236
+ [r, a]
2237
+ ), l = D(
2238
+ () => (_) => r ? () => {
2239
+ } : c(e, _),
1958
2240
  [r, c, e]
1959
- ), l = H(() => r, [r]);
1960
- return /* @__PURE__ */ v(Ps, { value: e, className: Z.root, children: [
1961
- /* @__PURE__ */ v("div", { className: Z.header, children: [
1962
- /* @__PURE__ */ v(Mt, { asChild: !0, children: /* @__PURE__ */ v("div", { className: Z.label, children: [
1963
- /* @__PURE__ */ v(q, { weight: "bold", children: t }),
1964
- n && /* @__PURE__ */ v(q, { size: "caption", color: "muted", children: n })
2241
+ ), d = D(() => r, [r]);
2242
+ return /* @__PURE__ */ p(bs, { value: e, className: re.root, children: [
2243
+ /* @__PURE__ */ p("div", { className: re.header, children: [
2244
+ /* @__PURE__ */ p(fn, { asChild: !0, children: /* @__PURE__ */ p("div", { className: re.label, children: [
2245
+ /* @__PURE__ */ p(ie, { weight: "bold", children: t }),
2246
+ n && /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n })
1965
2247
  ] }) }),
1966
- /* @__PURE__ */ v("div", { className: Z.actions, children: [
1967
- /* @__PURE__ */ v(
1968
- Hs,
2248
+ /* @__PURE__ */ p("div", { className: re.actions, children: [
2249
+ /* @__PURE__ */ p(
2250
+ js,
1969
2251
  {
1970
- checked: a,
1971
- onCheckedChange: d,
1972
- disabled: l
2252
+ checked: u,
2253
+ onCheckedChange: l,
2254
+ disabled: d
1973
2255
  }
1974
2256
  ),
1975
- /* @__PURE__ */ v(Mt, { asChild: !0, children: /* @__PURE__ */ v(
1976
- Ds,
2257
+ /* @__PURE__ */ p(fn, { asChild: !0, children: /* @__PURE__ */ p(
2258
+ As,
1977
2259
  {
1978
2260
  size: 16,
1979
- className: it({
1980
- [Z.chevron]: !0,
1981
- [Z.open]: s === e
2261
+ className: gt({
2262
+ [re.chevron]: !0,
2263
+ [re.open]: i === e
1982
2264
  })
1983
2265
  }
1984
2266
  ) })
1985
2267
  ] })
1986
2268
  ] }),
1987
- o && /* @__PURE__ */ v(Rs, { className: Z.description, children: /* @__PURE__ */ v(
1988
- q,
2269
+ o && /* @__PURE__ */ p(Cs, { className: re.description, children: /* @__PURE__ */ p(
2270
+ ie,
1989
2271
  {
1990
2272
  size: "caption",
1991
2273
  dangerouslySetInnerHTML: { __html: o }
@@ -1993,120 +2275,120 @@ const Gs = ({
1993
2275
  ) })
1994
2276
  ] });
1995
2277
  };
1996
- function pe(e) {
1997
- const t = f.useRef(e);
1998
- return f.useEffect(() => {
2278
+ function Ie(e) {
2279
+ const t = w(e);
2280
+ return E(() => {
1999
2281
  t.current = e;
2000
- }), f.useMemo(() => (...n) => t.current?.(...n), []);
2282
+ }), D(() => (...n) => t.current?.(...n), []);
2001
2283
  }
2002
- function Ys(e, t = globalThis?.document) {
2003
- const n = pe(e);
2004
- f.useEffect(() => {
2284
+ function Zs(e, t = globalThis?.document) {
2285
+ const n = Ie(e);
2286
+ E(() => {
2005
2287
  const r = (o) => {
2006
2288
  o.key === "Escape" && n(o);
2007
2289
  };
2008
2290
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
2009
2291
  }, [n, t]);
2010
2292
  }
2011
- var Xs = "DismissableLayer", at = "dismissableLayer.update", Js = "dismissableLayer.pointerDownOutside", Qs = "dismissableLayer.focusOutside", Lt, Vn = f.createContext({
2293
+ var Vs = "DismissableLayer", bt = "dismissableLayer.update", Ks = "dismissableLayer.pointerDownOutside", qs = "dismissableLayer.focusOutside", _n, kr = ee({
2012
2294
  layers: /* @__PURE__ */ new Set(),
2013
2295
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
2014
2296
  branches: /* @__PURE__ */ new Set()
2015
- }), Hn = f.forwardRef(
2297
+ }), Dr = P(
2016
2298
  (e, t) => {
2017
2299
  const {
2018
2300
  disableOutsidePointerEvents: n = !1,
2019
2301
  onEscapeKeyDown: r,
2020
2302
  onPointerDownOutside: o,
2021
- onFocusOutside: s,
2303
+ onFocusOutside: i,
2022
2304
  onInteractOutside: c,
2023
- onDismiss: i,
2024
- ...u
2025
- } = e, a = f.useContext(Vn), [d, l] = f.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, h] = f.useState({}), b = T(t, (E) => l(E)), p = Array.from(a.layers), [_] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), g = p.indexOf(_), y = d ? p.indexOf(d) : -1, w = a.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= g, S = ni((E) => {
2026
- const N = E.target, k = [...a.branches].some((D) => D.contains(N));
2027
- !C || k || (o?.(E), c?.(E), E.defaultPrevented || i?.());
2028
- }, m), R = ri((E) => {
2029
- const N = E.target;
2030
- [...a.branches].some((D) => D.contains(N)) || (s?.(E), c?.(E), E.defaultPrevented || i?.());
2031
- }, m);
2032
- return Ys((E) => {
2033
- y === a.layers.size - 1 && (r?.(E), !E.defaultPrevented && i && (E.preventDefault(), i()));
2034
- }, m), f.useEffect(() => {
2035
- if (d)
2036
- return n && (a.layersWithOutsidePointerEventsDisabled.size === 0 && (Lt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), a.layersWithOutsidePointerEventsDisabled.add(d)), a.layers.add(d), $t(), () => {
2037
- n && a.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = Lt);
2305
+ onDismiss: s,
2306
+ ...a
2307
+ } = e, u = Y(kr), [l, d] = R(null), _ = l?.ownerDocument ?? globalThis?.document, [, m] = R({}), g = L(t, (S) => d(S)), f = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), h = f.indexOf(v), y = l ? f.indexOf(l) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= h, O = Xs((S) => {
2308
+ const F = S.target, le = [...u.branches].some((we) => we.contains(F));
2309
+ !C || le || (o?.(S), c?.(S), S.defaultPrevented || s?.());
2310
+ }, _), k = Js((S) => {
2311
+ const F = S.target;
2312
+ [...u.branches].some((we) => we.contains(F)) || (i?.(S), c?.(S), S.defaultPrevented || s?.());
2313
+ }, _);
2314
+ return Zs((S) => {
2315
+ y === u.layers.size - 1 && (r?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
2316
+ }, _), E(() => {
2317
+ if (l)
2318
+ return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (_n = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), vn(), () => {
2319
+ n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = _n);
2038
2320
  };
2039
- }, [d, m, n, a]), f.useEffect(() => () => {
2040
- d && (a.layers.delete(d), a.layersWithOutsidePointerEventsDisabled.delete(d), $t());
2041
- }, [d, a]), f.useEffect(() => {
2042
- const E = () => h({});
2043
- return document.addEventListener(at, E), () => document.removeEventListener(at, E);
2044
- }, []), /* @__PURE__ */ v(
2045
- I.div,
2321
+ }, [l, _, n, u]), E(() => () => {
2322
+ l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), vn());
2323
+ }, [l, u]), E(() => {
2324
+ const S = () => m({});
2325
+ return document.addEventListener(bt, S), () => document.removeEventListener(bt, S);
2326
+ }, []), /* @__PURE__ */ p(
2327
+ $.div,
2046
2328
  {
2047
- ...u,
2048
- ref: b,
2329
+ ...a,
2330
+ ref: g,
2049
2331
  style: {
2050
- pointerEvents: w ? C ? "auto" : "none" : void 0,
2332
+ pointerEvents: b ? C ? "auto" : "none" : void 0,
2051
2333
  ...e.style
2052
2334
  },
2053
- onFocusCapture: M(e.onFocusCapture, R.onFocusCapture),
2054
- onBlurCapture: M(e.onBlurCapture, R.onBlurCapture),
2055
- onPointerDownCapture: M(
2335
+ onFocusCapture: j(e.onFocusCapture, k.onFocusCapture),
2336
+ onBlurCapture: j(e.onBlurCapture, k.onBlurCapture),
2337
+ onPointerDownCapture: j(
2056
2338
  e.onPointerDownCapture,
2057
- S.onPointerDownCapture
2339
+ O.onPointerDownCapture
2058
2340
  )
2059
2341
  }
2060
2342
  );
2061
2343
  }
2062
2344
  );
2063
- Hn.displayName = Xs;
2064
- var ei = "DismissableLayerBranch", ti = f.forwardRef((e, t) => {
2065
- const n = f.useContext(Vn), r = f.useRef(null), o = T(t, r);
2066
- return f.useEffect(() => {
2067
- const s = r.current;
2068
- if (s)
2069
- return n.branches.add(s), () => {
2070
- n.branches.delete(s);
2345
+ Dr.displayName = Vs;
2346
+ var Gs = "DismissableLayerBranch", Ys = P((e, t) => {
2347
+ const n = Y(kr), r = w(null), o = L(t, r);
2348
+ return E(() => {
2349
+ const i = r.current;
2350
+ if (i)
2351
+ return n.branches.add(i), () => {
2352
+ n.branches.delete(i);
2071
2353
  };
2072
- }, [n.branches]), /* @__PURE__ */ v(I.div, { ...e, ref: o });
2354
+ }, [n.branches]), /* @__PURE__ */ p($.div, { ...e, ref: o });
2073
2355
  });
2074
- ti.displayName = ei;
2075
- function ni(e, t = globalThis?.document) {
2076
- const n = pe(e), r = f.useRef(!1), o = f.useRef(() => {
2356
+ Ys.displayName = Gs;
2357
+ function Xs(e, t = globalThis?.document) {
2358
+ const n = Ie(e), r = w(!1), o = w(() => {
2077
2359
  });
2078
- return f.useEffect(() => {
2079
- const s = (i) => {
2080
- if (i.target && !r.current) {
2081
- let u = function() {
2082
- Kn(
2083
- Js,
2360
+ return E(() => {
2361
+ const i = (s) => {
2362
+ if (s.target && !r.current) {
2363
+ let a = function() {
2364
+ xr(
2365
+ Ks,
2084
2366
  n,
2085
- a,
2367
+ u,
2086
2368
  { discrete: !0 }
2087
2369
  );
2088
2370
  };
2089
- const a = { originalEvent: i };
2090
- i.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = u, t.addEventListener("click", o.current, { once: !0 })) : u();
2371
+ const u = { originalEvent: s };
2372
+ s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = a, t.addEventListener("click", o.current, { once: !0 })) : a();
2091
2373
  } else
2092
2374
  t.removeEventListener("click", o.current);
2093
2375
  r.current = !1;
2094
2376
  }, c = window.setTimeout(() => {
2095
- t.addEventListener("pointerdown", s);
2377
+ t.addEventListener("pointerdown", i);
2096
2378
  }, 0);
2097
2379
  return () => {
2098
- window.clearTimeout(c), t.removeEventListener("pointerdown", s), t.removeEventListener("click", o.current);
2380
+ window.clearTimeout(c), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
2099
2381
  };
2100
2382
  }, [t, n]), {
2101
2383
  // ensures we check React component tree (not just DOM tree)
2102
2384
  onPointerDownCapture: () => r.current = !0
2103
2385
  };
2104
2386
  }
2105
- function ri(e, t = globalThis?.document) {
2106
- const n = pe(e), r = f.useRef(!1);
2107
- return f.useEffect(() => {
2108
- const o = (s) => {
2109
- s.target && !r.current && Kn(Qs, n, { originalEvent: s }, {
2387
+ function Js(e, t = globalThis?.document) {
2388
+ const n = Ie(e), r = w(!1);
2389
+ return E(() => {
2390
+ const o = (i) => {
2391
+ i.target && !r.current && xr(qs, n, { originalEvent: i }, {
2110
2392
  discrete: !1
2111
2393
  });
2112
2394
  };
@@ -2116,22 +2398,22 @@ function ri(e, t = globalThis?.document) {
2116
2398
  onBlurCapture: () => r.current = !1
2117
2399
  };
2118
2400
  }
2119
- function $t() {
2120
- const e = new CustomEvent(at);
2401
+ function vn() {
2402
+ const e = new CustomEvent(bt);
2121
2403
  document.dispatchEvent(e);
2122
2404
  }
2123
- function Kn(e, t, n, { discrete: r }) {
2124
- const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
2125
- t && o.addEventListener(e, t, { once: !0 }), r ? rs(o, s) : o.dispatchEvent(s);
2405
+ function xr(e, t, n, { discrete: r }) {
2406
+ const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
2407
+ t && o.addEventListener(e, t, { once: !0 }), r ? Ji(o, i) : o.dispatchEvent(i);
2126
2408
  }
2127
- var Ge = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ft = { bubbles: !1, cancelable: !0 }, oi = "FocusScope", qn = f.forwardRef((e, t) => {
2409
+ var ut = "focusScope.autoFocusOnMount", lt = "focusScope.autoFocusOnUnmount", hn = { bubbles: !1, cancelable: !0 }, Qs = "FocusScope", Mr = P((e, t) => {
2128
2410
  const {
2129
2411
  loop: n = !1,
2130
2412
  trapped: r = !1,
2131
2413
  onMountAutoFocus: o,
2132
- onUnmountAutoFocus: s,
2414
+ onUnmountAutoFocus: i,
2133
2415
  ...c
2134
- } = e, [i, u] = f.useState(null), a = pe(o), d = pe(s), l = f.useRef(null), m = T(t, (p) => u(p)), h = f.useRef({
2416
+ } = e, [s, a] = R(null), u = Ie(o), l = Ie(i), d = w(null), _ = L(t, (f) => a(f)), m = w({
2135
2417
  paused: !1,
2136
2418
  pause() {
2137
2419
  this.paused = !0;
@@ -2140,67 +2422,67 @@ var Ge = "focusScope.autoFocusOnMount", Ye = "focusScope.autoFocusOnUnmount", Ft
2140
2422
  this.paused = !1;
2141
2423
  }
2142
2424
  }).current;
2143
- f.useEffect(() => {
2425
+ E(() => {
2144
2426
  if (r) {
2145
- let p = function(w) {
2146
- if (h.paused || !i) return;
2147
- const C = w.target;
2148
- i.contains(C) ? l.current = C : W(l.current, { select: !0 });
2149
- }, _ = function(w) {
2150
- if (h.paused || !i) return;
2151
- const C = w.relatedTarget;
2152
- C !== null && (i.contains(C) || W(l.current, { select: !0 }));
2153
- }, g = function(w) {
2427
+ let f = function(b) {
2428
+ if (m.paused || !s) return;
2429
+ const C = b.target;
2430
+ s.contains(C) ? d.current = C : X(d.current, { select: !0 });
2431
+ }, v = function(b) {
2432
+ if (m.paused || !s) return;
2433
+ const C = b.relatedTarget;
2434
+ C !== null && (s.contains(C) || X(d.current, { select: !0 }));
2435
+ }, h = function(b) {
2154
2436
  if (document.activeElement === document.body)
2155
- for (const S of w)
2156
- S.removedNodes.length > 0 && W(i);
2437
+ for (const O of b)
2438
+ O.removedNodes.length > 0 && X(s);
2157
2439
  };
2158
- document.addEventListener("focusin", p), document.addEventListener("focusout", _);
2159
- const y = new MutationObserver(g);
2160
- return i && y.observe(i, { childList: !0, subtree: !0 }), () => {
2161
- document.removeEventListener("focusin", p), document.removeEventListener("focusout", _), y.disconnect();
2440
+ document.addEventListener("focusin", f), document.addEventListener("focusout", v);
2441
+ const y = new MutationObserver(h);
2442
+ return s && y.observe(s, { childList: !0, subtree: !0 }), () => {
2443
+ document.removeEventListener("focusin", f), document.removeEventListener("focusout", v), y.disconnect();
2162
2444
  };
2163
2445
  }
2164
- }, [r, i, h.paused]), f.useEffect(() => {
2165
- if (i) {
2166
- Wt.add(h);
2167
- const p = document.activeElement;
2168
- if (!i.contains(p)) {
2169
- const g = new CustomEvent(Ge, Ft);
2170
- i.addEventListener(Ge, a), i.dispatchEvent(g), g.defaultPrevented || (si(ui(Gn(i)), { select: !0 }), document.activeElement === p && W(i));
2446
+ }, [r, s, m.paused]), E(() => {
2447
+ if (s) {
2448
+ gn.add(m);
2449
+ const f = document.activeElement;
2450
+ if (!s.contains(f)) {
2451
+ const h = new CustomEvent(ut, hn);
2452
+ s.addEventListener(ut, u), s.dispatchEvent(h), h.defaultPrevented || (ec(ic(zr(s)), { select: !0 }), document.activeElement === f && X(s));
2171
2453
  }
2172
2454
  return () => {
2173
- i.removeEventListener(Ge, a), setTimeout(() => {
2174
- const g = new CustomEvent(Ye, Ft);
2175
- i.addEventListener(Ye, d), i.dispatchEvent(g), g.defaultPrevented || W(p ?? document.body, { select: !0 }), i.removeEventListener(Ye, d), Wt.remove(h);
2455
+ s.removeEventListener(ut, u), setTimeout(() => {
2456
+ const h = new CustomEvent(lt, hn);
2457
+ s.addEventListener(lt, l), s.dispatchEvent(h), h.defaultPrevented || X(f ?? document.body, { select: !0 }), s.removeEventListener(lt, l), gn.remove(m);
2176
2458
  }, 0);
2177
2459
  };
2178
2460
  }
2179
- }, [i, a, d, h]);
2180
- const b = f.useCallback(
2181
- (p) => {
2182
- if (!n && !r || h.paused) return;
2183
- const _ = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, g = document.activeElement;
2184
- if (_ && g) {
2185
- const y = p.currentTarget, [w, C] = ii(y);
2186
- w && C ? !p.shiftKey && g === C ? (p.preventDefault(), n && W(w, { select: !0 })) : p.shiftKey && g === w && (p.preventDefault(), n && W(C, { select: !0 })) : g === y && p.preventDefault();
2461
+ }, [s, u, l, m]);
2462
+ const g = M(
2463
+ (f) => {
2464
+ if (!n && !r || m.paused) return;
2465
+ const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, h = document.activeElement;
2466
+ if (v && h) {
2467
+ const y = f.currentTarget, [b, C] = tc(y);
2468
+ b && C ? !f.shiftKey && h === C ? (f.preventDefault(), n && X(b, { select: !0 })) : f.shiftKey && h === b && (f.preventDefault(), n && X(C, { select: !0 })) : h === y && f.preventDefault();
2187
2469
  }
2188
2470
  },
2189
- [n, r, h.paused]
2471
+ [n, r, m.paused]
2190
2472
  );
2191
- return /* @__PURE__ */ v(I.div, { tabIndex: -1, ...c, ref: m, onKeyDown: b });
2473
+ return /* @__PURE__ */ p($.div, { tabIndex: -1, ...c, ref: _, onKeyDown: g });
2192
2474
  });
2193
- qn.displayName = oi;
2194
- function si(e, { select: t = !1 } = {}) {
2475
+ Mr.displayName = Qs;
2476
+ function ec(e, { select: t = !1 } = {}) {
2195
2477
  const n = document.activeElement;
2196
2478
  for (const r of e)
2197
- if (W(r, { select: t }), document.activeElement !== n) return;
2479
+ if (X(r, { select: t }), document.activeElement !== n) return;
2198
2480
  }
2199
- function ii(e) {
2200
- const t = Gn(e), n = jt(t, e), r = jt(t.reverse(), e);
2481
+ function tc(e) {
2482
+ const t = zr(e), n = mn(t, e), r = mn(t.reverse(), e);
2201
2483
  return [n, r];
2202
2484
  }
2203
- function Gn(e) {
2485
+ function zr(e) {
2204
2486
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
2205
2487
  acceptNode: (r) => {
2206
2488
  const o = r.tagName === "INPUT" && r.type === "hidden";
@@ -2210,11 +2492,11 @@ function Gn(e) {
2210
2492
  for (; n.nextNode(); ) t.push(n.currentNode);
2211
2493
  return t;
2212
2494
  }
2213
- function jt(e, t) {
2495
+ function mn(e, t) {
2214
2496
  for (const n of e)
2215
- if (!ci(n, { upTo: t })) return n;
2497
+ if (!nc(n, { upTo: t })) return n;
2216
2498
  }
2217
- function ci(e, { upTo: t }) {
2499
+ function nc(e, { upTo: t }) {
2218
2500
  if (getComputedStyle(e).visibility === "hidden") return !0;
2219
2501
  for (; e; ) {
2220
2502
  if (t !== void 0 && e === t) return !1;
@@ -2223,58 +2505,58 @@ function ci(e, { upTo: t }) {
2223
2505
  }
2224
2506
  return !1;
2225
2507
  }
2226
- function ai(e) {
2508
+ function rc(e) {
2227
2509
  return e instanceof HTMLInputElement && "select" in e;
2228
2510
  }
2229
- function W(e, { select: t = !1 } = {}) {
2511
+ function X(e, { select: t = !1 } = {}) {
2230
2512
  if (e && e.focus) {
2231
2513
  const n = document.activeElement;
2232
- e.focus({ preventScroll: !0 }), e !== n && ai(e) && t && e.select();
2514
+ e.focus({ preventScroll: !0 }), e !== n && rc(e) && t && e.select();
2233
2515
  }
2234
2516
  }
2235
- var Wt = li();
2236
- function li() {
2517
+ var gn = oc();
2518
+ function oc() {
2237
2519
  let e = [];
2238
2520
  return {
2239
2521
  add(t) {
2240
2522
  const n = e[0];
2241
- t !== n && n?.pause(), e = Bt(e, t), e.unshift(t);
2523
+ t !== n && n?.pause(), e = yn(e, t), e.unshift(t);
2242
2524
  },
2243
2525
  remove(t) {
2244
- e = Bt(e, t), e[0]?.resume();
2526
+ e = yn(e, t), e[0]?.resume();
2245
2527
  }
2246
2528
  };
2247
2529
  }
2248
- function Bt(e, t) {
2530
+ function yn(e, t) {
2249
2531
  const n = [...e], r = n.indexOf(t);
2250
2532
  return r !== -1 && n.splice(r, 1), n;
2251
2533
  }
2252
- function ui(e) {
2534
+ function ic(e) {
2253
2535
  return e.filter((t) => t.tagName !== "A");
2254
2536
  }
2255
- var Xe = 0;
2256
- function di() {
2257
- f.useEffect(() => {
2537
+ var dt = 0;
2538
+ function sc() {
2539
+ E(() => {
2258
2540
  const e = document.querySelectorAll("[data-radix-focus-guard]");
2259
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ut()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ut()), Xe++, () => {
2260
- Xe === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Xe--;
2541
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? bn()), document.body.insertAdjacentElement("beforeend", e[1] ?? bn()), dt++, () => {
2542
+ dt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), dt--;
2261
2543
  };
2262
2544
  }, []);
2263
2545
  }
2264
- function Ut() {
2546
+ function bn() {
2265
2547
  const e = document.createElement("span");
2266
2548
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
2267
2549
  }
2268
- var L = function() {
2269
- return L = Object.assign || function(t) {
2550
+ var H = function() {
2551
+ return H = Object.assign || function(t) {
2270
2552
  for (var n, r = 1, o = arguments.length; r < o; r++) {
2271
2553
  n = arguments[r];
2272
- for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
2554
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2273
2555
  }
2274
2556
  return t;
2275
- }, L.apply(this, arguments);
2557
+ }, H.apply(this, arguments);
2276
2558
  };
2277
- function Yn(e, t) {
2559
+ function $r(e, t) {
2278
2560
  var n = {};
2279
2561
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2280
2562
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -2282,17 +2564,17 @@ function Yn(e, t) {
2282
2564
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2283
2565
  return n;
2284
2566
  }
2285
- function fi(e, t, n) {
2286
- if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
2287
- (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
2288
- return e.concat(s || Array.prototype.slice.call(t));
2567
+ function cc(e, t, n) {
2568
+ if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2569
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2570
+ return e.concat(i || Array.prototype.slice.call(t));
2289
2571
  }
2290
- var Ae = "right-scroll-bar-position", ke = "width-before-scroll-bar", pi = "with-scroll-bars-hidden", hi = "--removed-body-scroll-bar-size";
2291
- function Je(e, t) {
2572
+ var He = "right-scroll-bar-position", Ze = "width-before-scroll-bar", ac = "with-scroll-bars-hidden", uc = "--removed-body-scroll-bar-size";
2573
+ function ft(e, t) {
2292
2574
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2293
2575
  }
2294
- function vi(e, t) {
2295
- var n = de(function() {
2576
+ function lc(e, t) {
2577
+ var n = R(function() {
2296
2578
  return {
2297
2579
  // value
2298
2580
  value: e,
@@ -2312,552 +2594,552 @@ function vi(e, t) {
2312
2594
  })[0];
2313
2595
  return n.callback = t, n.facade;
2314
2596
  }
2315
- var _i = typeof window < "u" ? f.useLayoutEffect : f.useEffect, Zt = /* @__PURE__ */ new WeakMap();
2316
- function mi(e, t) {
2317
- var n = vi(null, function(r) {
2597
+ var dc = typeof window < "u" ? te : E, Cn = /* @__PURE__ */ new WeakMap();
2598
+ function fc(e, t) {
2599
+ var n = lc(null, function(r) {
2318
2600
  return e.forEach(function(o) {
2319
- return Je(o, r);
2601
+ return ft(o, r);
2320
2602
  });
2321
2603
  });
2322
- return _i(function() {
2323
- var r = Zt.get(n);
2604
+ return dc(function() {
2605
+ var r = Cn.get(n);
2324
2606
  if (r) {
2325
- var o = new Set(r), s = new Set(e), c = n.current;
2326
- o.forEach(function(i) {
2327
- s.has(i) || Je(i, null);
2328
- }), s.forEach(function(i) {
2329
- o.has(i) || Je(i, c);
2607
+ var o = new Set(r), i = new Set(e), c = n.current;
2608
+ o.forEach(function(s) {
2609
+ i.has(s) || ft(s, null);
2610
+ }), i.forEach(function(s) {
2611
+ o.has(s) || ft(s, c);
2330
2612
  });
2331
2613
  }
2332
- Zt.set(n, e);
2614
+ Cn.set(n, e);
2333
2615
  }, [e]), n;
2334
2616
  }
2335
- function gi(e) {
2617
+ function pc(e) {
2336
2618
  return e;
2337
2619
  }
2338
- function yi(e, t) {
2339
- t === void 0 && (t = gi);
2620
+ function _c(e, t) {
2621
+ t === void 0 && (t = pc);
2340
2622
  var n = [], r = !1, o = {
2341
2623
  read: function() {
2342
2624
  if (r)
2343
2625
  throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
2344
2626
  return n.length ? n[n.length - 1] : e;
2345
2627
  },
2346
- useMedium: function(s) {
2347
- var c = t(s, r);
2628
+ useMedium: function(i) {
2629
+ var c = t(i, r);
2348
2630
  return n.push(c), function() {
2349
- n = n.filter(function(i) {
2350
- return i !== c;
2631
+ n = n.filter(function(s) {
2632
+ return s !== c;
2351
2633
  });
2352
2634
  };
2353
2635
  },
2354
- assignSyncMedium: function(s) {
2636
+ assignSyncMedium: function(i) {
2355
2637
  for (r = !0; n.length; ) {
2356
2638
  var c = n;
2357
- n = [], c.forEach(s);
2639
+ n = [], c.forEach(i);
2358
2640
  }
2359
2641
  n = {
2360
- push: function(i) {
2361
- return s(i);
2642
+ push: function(s) {
2643
+ return i(s);
2362
2644
  },
2363
2645
  filter: function() {
2364
2646
  return n;
2365
2647
  }
2366
2648
  };
2367
2649
  },
2368
- assignMedium: function(s) {
2650
+ assignMedium: function(i) {
2369
2651
  r = !0;
2370
2652
  var c = [];
2371
2653
  if (n.length) {
2372
- var i = n;
2373
- n = [], i.forEach(s), c = n;
2654
+ var s = n;
2655
+ n = [], s.forEach(i), c = n;
2374
2656
  }
2375
- var u = function() {
2376
- var d = c;
2377
- c = [], d.forEach(s);
2378
- }, a = function() {
2379
- return Promise.resolve().then(u);
2657
+ var a = function() {
2658
+ var l = c;
2659
+ c = [], l.forEach(i);
2660
+ }, u = function() {
2661
+ return Promise.resolve().then(a);
2380
2662
  };
2381
- a(), n = {
2382
- push: function(d) {
2383
- c.push(d), a();
2663
+ u(), n = {
2664
+ push: function(l) {
2665
+ c.push(l), u();
2384
2666
  },
2385
- filter: function(d) {
2386
- return c = c.filter(d), n;
2667
+ filter: function(l) {
2668
+ return c = c.filter(l), n;
2387
2669
  }
2388
2670
  };
2389
2671
  }
2390
2672
  };
2391
2673
  return o;
2392
2674
  }
2393
- function bi(e) {
2675
+ function vc(e) {
2394
2676
  e === void 0 && (e = {});
2395
- var t = yi(null);
2396
- return t.options = L({ async: !0, ssr: !1 }, e), t;
2677
+ var t = _c(null);
2678
+ return t.options = H({ async: !0, ssr: !1 }, e), t;
2397
2679
  }
2398
- var Xn = function(e) {
2399
- var t = e.sideCar, n = Yn(e, ["sideCar"]);
2680
+ var Lr = function(e) {
2681
+ var t = e.sideCar, n = $r(e, ["sideCar"]);
2400
2682
  if (!t)
2401
2683
  throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2402
2684
  var r = t.read();
2403
2685
  if (!r)
2404
2686
  throw new Error("Sidecar medium not found");
2405
- return f.createElement(r, L({}, n));
2687
+ return T(r, H({}, n));
2406
2688
  };
2407
- Xn.isSideCarExport = !0;
2408
- function wi(e, t) {
2409
- return e.useMedium(t), Xn;
2410
- }
2411
- var Jn = bi(), Qe = function() {
2412
- }, He = f.forwardRef(function(e, t) {
2413
- var n = f.useRef(null), r = f.useState({
2414
- onScrollCapture: Qe,
2415
- onWheelCapture: Qe,
2416
- onTouchMoveCapture: Qe
2417
- }), o = r[0], s = r[1], c = e.forwardProps, i = e.children, u = e.className, a = e.removeScrollBar, d = e.enabled, l = e.shards, m = e.sideCar, h = e.noRelative, b = e.noIsolation, p = e.inert, _ = e.allowPinchZoom, g = e.as, y = g === void 0 ? "div" : g, w = e.gapMode, C = Yn(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, R = mi([n, t]), E = L(L({}, C), o);
2418
- return f.createElement(
2419
- f.Fragment,
2689
+ Lr.isSideCarExport = !0;
2690
+ function hc(e, t) {
2691
+ return e.useMedium(t), Lr;
2692
+ }
2693
+ var Fr = vc(), pt = function() {
2694
+ }, ot = P(function(e, t) {
2695
+ var n = w(null), r = R({
2696
+ onScrollCapture: pt,
2697
+ onWheelCapture: pt,
2698
+ onTouchMoveCapture: pt
2699
+ }), o = r[0], i = r[1], c = e.forwardProps, s = e.children, a = e.className, u = e.removeScrollBar, l = e.enabled, d = e.shards, _ = e.sideCar, m = e.noRelative, g = e.noIsolation, f = e.inert, v = e.allowPinchZoom, h = e.as, y = h === void 0 ? "div" : h, b = e.gapMode, C = $r(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), O = _, k = fc([n, t]), S = H(H({}, C), o);
2700
+ return T(
2701
+ W,
2420
2702
  null,
2421
- d && f.createElement(S, { sideCar: Jn, removeScrollBar: a, shards: l, noRelative: h, noIsolation: b, inert: p, setCallbacks: s, allowPinchZoom: !!_, lockRef: n, gapMode: w }),
2422
- c ? f.cloneElement(f.Children.only(i), L(L({}, E), { ref: R })) : f.createElement(y, L({}, E, { className: u, ref: R }), i)
2703
+ l && T(O, { sideCar: Fr, removeScrollBar: u, shards: d, noRelative: m, noIsolation: g, inert: f, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
2704
+ c ? ge(K.only(s), H(H({}, S), { ref: k })) : T(y, H({}, S, { className: a, ref: k }), s)
2423
2705
  );
2424
2706
  });
2425
- He.defaultProps = {
2707
+ ot.defaultProps = {
2426
2708
  enabled: !0,
2427
2709
  removeScrollBar: !0,
2428
2710
  inert: !1
2429
2711
  };
2430
- He.classNames = {
2431
- fullWidth: ke,
2432
- zeroRight: Ae
2712
+ ot.classNames = {
2713
+ fullWidth: Ze,
2714
+ zeroRight: He
2433
2715
  };
2434
- var Ci = function() {
2716
+ var mc = function() {
2435
2717
  if (typeof __webpack_nonce__ < "u")
2436
2718
  return __webpack_nonce__;
2437
2719
  };
2438
- function Ei() {
2720
+ function gc() {
2439
2721
  if (!document)
2440
2722
  return null;
2441
2723
  var e = document.createElement("style");
2442
2724
  e.type = "text/css";
2443
- var t = Ci();
2725
+ var t = mc();
2444
2726
  return t && e.setAttribute("nonce", t), e;
2445
2727
  }
2446
- function Si(e, t) {
2728
+ function yc(e, t) {
2447
2729
  e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2448
2730
  }
2449
- function Pi(e) {
2731
+ function bc(e) {
2450
2732
  var t = document.head || document.getElementsByTagName("head")[0];
2451
2733
  t.appendChild(e);
2452
2734
  }
2453
- var Ri = function() {
2735
+ var Cc = function() {
2454
2736
  var e = 0, t = null;
2455
2737
  return {
2456
2738
  add: function(n) {
2457
- e == 0 && (t = Ei()) && (Si(t, n), Pi(t)), e++;
2739
+ e == 0 && (t = gc()) && (yc(t, n), bc(t)), e++;
2458
2740
  },
2459
2741
  remove: function() {
2460
2742
  e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2461
2743
  }
2462
2744
  };
2463
- }, Oi = function() {
2464
- var e = Ri();
2745
+ }, wc = function() {
2746
+ var e = Cc();
2465
2747
  return function(t, n) {
2466
- f.useEffect(function() {
2748
+ E(function() {
2467
2749
  return e.add(t), function() {
2468
2750
  e.remove();
2469
2751
  };
2470
2752
  }, [t && n]);
2471
2753
  };
2472
- }, Qn = function() {
2473
- var e = Oi(), t = function(n) {
2754
+ }, Ur = function() {
2755
+ var e = wc(), t = function(n) {
2474
2756
  var r = n.styles, o = n.dynamic;
2475
2757
  return e(r, o), null;
2476
2758
  };
2477
2759
  return t;
2478
- }, Ai = {
2760
+ }, Sc = {
2479
2761
  left: 0,
2480
2762
  top: 0,
2481
2763
  right: 0,
2482
2764
  gap: 0
2483
- }, et = function(e) {
2765
+ }, _t = function(e) {
2484
2766
  return parseInt(e || "", 10) || 0;
2485
- }, ki = function(e) {
2767
+ }, Ec = function(e) {
2486
2768
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2487
- return [et(n), et(r), et(o)];
2488
- }, Ni = function(e) {
2769
+ return [_t(n), _t(r), _t(o)];
2770
+ }, Pc = function(e) {
2489
2771
  if (e === void 0 && (e = "margin"), typeof window > "u")
2490
- return Ai;
2491
- var t = ki(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2772
+ return Sc;
2773
+ var t = Ec(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2492
2774
  return {
2493
2775
  left: t[0],
2494
2776
  top: t[1],
2495
2777
  right: t[2],
2496
2778
  gap: Math.max(0, r - n + t[2] - t[0])
2497
2779
  };
2498
- }, Ii = Qn(), ee = "data-scroll-locked", Ti = function(e, t, n, r) {
2499
- var o = e.left, s = e.top, c = e.right, i = e.gap;
2780
+ }, Nc = Ur(), ve = "data-scroll-locked", Oc = function(e, t, n, r) {
2781
+ var o = e.left, i = e.top, c = e.right, s = e.gap;
2500
2782
  return n === void 0 && (n = "margin"), `
2501
- .`.concat(pi, ` {
2783
+ .`.concat(ac, ` {
2502
2784
  overflow: hidden `).concat(r, `;
2503
- padding-right: `).concat(i, "px ").concat(r, `;
2785
+ padding-right: `).concat(s, "px ").concat(r, `;
2504
2786
  }
2505
- body[`).concat(ee, `] {
2787
+ body[`).concat(ve, `] {
2506
2788
  overflow: hidden `).concat(r, `;
2507
2789
  overscroll-behavior: contain;
2508
2790
  `).concat([
2509
2791
  t && "position: relative ".concat(r, ";"),
2510
2792
  n === "margin" && `
2511
2793
  padding-left: `.concat(o, `px;
2512
- padding-top: `).concat(s, `px;
2794
+ padding-top: `).concat(i, `px;
2513
2795
  padding-right: `).concat(c, `px;
2514
2796
  margin-left:0;
2515
2797
  margin-top:0;
2516
- margin-right: `).concat(i, "px ").concat(r, `;
2798
+ margin-right: `).concat(s, "px ").concat(r, `;
2517
2799
  `),
2518
- n === "padding" && "padding-right: ".concat(i, "px ").concat(r, ";")
2800
+ n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
2519
2801
  ].filter(Boolean).join(""), `
2520
2802
  }
2521
2803
 
2522
- .`).concat(Ae, ` {
2523
- right: `).concat(i, "px ").concat(r, `;
2804
+ .`).concat(He, ` {
2805
+ right: `).concat(s, "px ").concat(r, `;
2524
2806
  }
2525
2807
 
2526
- .`).concat(ke, ` {
2527
- margin-right: `).concat(i, "px ").concat(r, `;
2808
+ .`).concat(Ze, ` {
2809
+ margin-right: `).concat(s, "px ").concat(r, `;
2528
2810
  }
2529
2811
 
2530
- .`).concat(Ae, " .").concat(Ae, ` {
2812
+ .`).concat(He, " .").concat(He, ` {
2531
2813
  right: 0 `).concat(r, `;
2532
2814
  }
2533
2815
 
2534
- .`).concat(ke, " .").concat(ke, ` {
2816
+ .`).concat(Ze, " .").concat(Ze, ` {
2535
2817
  margin-right: 0 `).concat(r, `;
2536
2818
  }
2537
2819
 
2538
- body[`).concat(ee, `] {
2539
- `).concat(hi, ": ").concat(i, `px;
2820
+ body[`).concat(ve, `] {
2821
+ `).concat(uc, ": ").concat(s, `px;
2540
2822
  }
2541
2823
  `);
2542
- }, Vt = function() {
2543
- var e = parseInt(document.body.getAttribute(ee) || "0", 10);
2824
+ }, wn = function() {
2825
+ var e = parseInt(document.body.getAttribute(ve) || "0", 10);
2544
2826
  return isFinite(e) ? e : 0;
2545
- }, Di = function() {
2546
- f.useEffect(function() {
2547
- return document.body.setAttribute(ee, (Vt() + 1).toString()), function() {
2548
- var e = Vt() - 1;
2549
- e <= 0 ? document.body.removeAttribute(ee) : document.body.setAttribute(ee, e.toString());
2827
+ }, Ac = function() {
2828
+ E(function() {
2829
+ return document.body.setAttribute(ve, (wn() + 1).toString()), function() {
2830
+ var e = wn() - 1;
2831
+ e <= 0 ? document.body.removeAttribute(ve) : document.body.setAttribute(ve, e.toString());
2550
2832
  };
2551
2833
  }, []);
2552
- }, xi = function(e) {
2834
+ }, Rc = function(e) {
2553
2835
  var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2554
- Di();
2555
- var s = f.useMemo(function() {
2556
- return Ni(o);
2836
+ Ac();
2837
+ var i = D(function() {
2838
+ return Pc(o);
2557
2839
  }, [o]);
2558
- return f.createElement(Ii, { styles: Ti(s, !t, o, n ? "" : "!important") });
2559
- }, lt = !1;
2840
+ return T(Nc, { styles: Oc(i, !t, o, n ? "" : "!important") });
2841
+ }, Ct = !1;
2560
2842
  if (typeof window < "u")
2561
2843
  try {
2562
- var Ce = Object.defineProperty({}, "passive", {
2844
+ var Fe = Object.defineProperty({}, "passive", {
2563
2845
  get: function() {
2564
- return lt = !0, !0;
2846
+ return Ct = !0, !0;
2565
2847
  }
2566
2848
  });
2567
- window.addEventListener("test", Ce, Ce), window.removeEventListener("test", Ce, Ce);
2849
+ window.addEventListener("test", Fe, Fe), window.removeEventListener("test", Fe, Fe);
2568
2850
  } catch {
2569
- lt = !1;
2851
+ Ct = !1;
2570
2852
  }
2571
- var X = lt ? { passive: !1 } : !1, Mi = function(e) {
2853
+ var de = Ct ? { passive: !1 } : !1, Ic = function(e) {
2572
2854
  return e.tagName === "TEXTAREA";
2573
- }, er = function(e, t) {
2855
+ }, jr = function(e, t) {
2574
2856
  if (!(e instanceof Element))
2575
2857
  return !1;
2576
2858
  var n = window.getComputedStyle(e);
2577
2859
  return (
2578
2860
  // not-not-scrollable
2579
2861
  n[t] !== "hidden" && // contains scroll inside self
2580
- !(n.overflowY === n.overflowX && !Mi(e) && n[t] === "visible")
2862
+ !(n.overflowY === n.overflowX && !Ic(e) && n[t] === "visible")
2581
2863
  );
2582
- }, zi = function(e) {
2583
- return er(e, "overflowY");
2584
- }, Li = function(e) {
2585
- return er(e, "overflowX");
2586
- }, Ht = function(e, t) {
2864
+ }, Tc = function(e) {
2865
+ return jr(e, "overflowY");
2866
+ }, kc = function(e) {
2867
+ return jr(e, "overflowX");
2868
+ }, Sn = function(e, t) {
2587
2869
  var n = t.ownerDocument, r = t;
2588
2870
  do {
2589
2871
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2590
- var o = tr(e, r);
2872
+ var o = Wr(e, r);
2591
2873
  if (o) {
2592
- var s = nr(e, r), c = s[1], i = s[2];
2593
- if (c > i)
2874
+ var i = Br(e, r), c = i[1], s = i[2];
2875
+ if (c > s)
2594
2876
  return !0;
2595
2877
  }
2596
2878
  r = r.parentNode;
2597
2879
  } while (r && r !== n.body);
2598
2880
  return !1;
2599
- }, $i = function(e) {
2881
+ }, Dc = function(e) {
2600
2882
  var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2601
2883
  return [
2602
2884
  t,
2603
2885
  n,
2604
2886
  r
2605
2887
  ];
2606
- }, Fi = function(e) {
2888
+ }, xc = function(e) {
2607
2889
  var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2608
2890
  return [
2609
2891
  t,
2610
2892
  n,
2611
2893
  r
2612
2894
  ];
2613
- }, tr = function(e, t) {
2614
- return e === "v" ? zi(t) : Li(t);
2615
- }, nr = function(e, t) {
2616
- return e === "v" ? $i(t) : Fi(t);
2617
- }, ji = function(e, t) {
2895
+ }, Wr = function(e, t) {
2896
+ return e === "v" ? Tc(t) : kc(t);
2897
+ }, Br = function(e, t) {
2898
+ return e === "v" ? Dc(t) : xc(t);
2899
+ }, Mc = function(e, t) {
2618
2900
  return e === "h" && t === "rtl" ? -1 : 1;
2619
- }, Wi = function(e, t, n, r, o) {
2620
- var s = ji(e, window.getComputedStyle(t).direction), c = s * r, i = n.target, u = t.contains(i), a = !1, d = c > 0, l = 0, m = 0;
2901
+ }, zc = function(e, t, n, r, o) {
2902
+ var i = Mc(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, a = t.contains(s), u = !1, l = c > 0, d = 0, _ = 0;
2621
2903
  do {
2622
- if (!i)
2904
+ if (!s)
2623
2905
  break;
2624
- var h = nr(e, i), b = h[0], p = h[1], _ = h[2], g = p - _ - s * b;
2625
- (b || g) && tr(e, i) && (l += g, m += b);
2626
- var y = i.parentNode;
2627
- i = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
2906
+ var m = Br(e, s), g = m[0], f = m[1], v = m[2], h = f - v - i * g;
2907
+ (g || h) && Wr(e, s) && (d += h, _ += g);
2908
+ var y = s.parentNode;
2909
+ s = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
2628
2910
  } while (
2629
2911
  // portaled content
2630
- !u && i !== document.body || // self content
2631
- u && (t.contains(i) || t === i)
2912
+ !a && s !== document.body || // self content
2913
+ a && (t.contains(s) || t === s)
2632
2914
  );
2633
- return (d && Math.abs(l) < 1 || !d && Math.abs(m) < 1) && (a = !0), a;
2634
- }, Ee = function(e) {
2915
+ return (l && Math.abs(d) < 1 || !l && Math.abs(_) < 1) && (u = !0), u;
2916
+ }, Ue = function(e) {
2635
2917
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2636
- }, Kt = function(e) {
2918
+ }, En = function(e) {
2637
2919
  return [e.deltaX, e.deltaY];
2638
- }, qt = function(e) {
2920
+ }, Pn = function(e) {
2639
2921
  return e && "current" in e ? e.current : e;
2640
- }, Bi = function(e, t) {
2922
+ }, $c = function(e, t) {
2641
2923
  return e[0] === t[0] && e[1] === t[1];
2642
- }, Ui = function(e) {
2924
+ }, Lc = function(e) {
2643
2925
  return `
2644
2926
  .block-interactivity-`.concat(e, ` {pointer-events: none;}
2645
2927
  .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2646
2928
  `);
2647
- }, Zi = 0, J = [];
2648
- function Vi(e) {
2649
- var t = f.useRef([]), n = f.useRef([0, 0]), r = f.useRef(), o = f.useState(Zi++)[0], s = f.useState(Qn)[0], c = f.useRef(e);
2650
- f.useEffect(function() {
2929
+ }, Fc = 0, fe = [];
2930
+ function Uc(e) {
2931
+ var t = w([]), n = w([0, 0]), r = w(), o = R(Fc++)[0], i = R(Ur)[0], c = w(e);
2932
+ E(function() {
2651
2933
  c.current = e;
2652
- }, [e]), f.useEffect(function() {
2934
+ }, [e]), E(function() {
2653
2935
  if (e.inert) {
2654
2936
  document.body.classList.add("block-interactivity-".concat(o));
2655
- var p = fi([e.lockRef.current], (e.shards || []).map(qt), !0).filter(Boolean);
2656
- return p.forEach(function(_) {
2657
- return _.classList.add("allow-interactivity-".concat(o));
2937
+ var f = cc([e.lockRef.current], (e.shards || []).map(Pn), !0).filter(Boolean);
2938
+ return f.forEach(function(v) {
2939
+ return v.classList.add("allow-interactivity-".concat(o));
2658
2940
  }), function() {
2659
- document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(_) {
2660
- return _.classList.remove("allow-interactivity-".concat(o));
2941
+ document.body.classList.remove("block-interactivity-".concat(o)), f.forEach(function(v) {
2942
+ return v.classList.remove("allow-interactivity-".concat(o));
2661
2943
  });
2662
2944
  };
2663
2945
  }
2664
2946
  }, [e.inert, e.lockRef.current, e.shards]);
2665
- var i = f.useCallback(function(p, _) {
2666
- if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
2947
+ var s = M(function(f, v) {
2948
+ if ("touches" in f && f.touches.length === 2 || f.type === "wheel" && f.ctrlKey)
2667
2949
  return !c.current.allowPinchZoom;
2668
- var g = Ee(p), y = n.current, w = "deltaX" in p ? p.deltaX : y[0] - g[0], C = "deltaY" in p ? p.deltaY : y[1] - g[1], S, R = p.target, E = Math.abs(w) > Math.abs(C) ? "h" : "v";
2669
- if ("touches" in p && E === "h" && R.type === "range")
2950
+ var h = Ue(f), y = n.current, b = "deltaX" in f ? f.deltaX : y[0] - h[0], C = "deltaY" in f ? f.deltaY : y[1] - h[1], O, k = f.target, S = Math.abs(b) > Math.abs(C) ? "h" : "v";
2951
+ if ("touches" in f && S === "h" && k.type === "range")
2670
2952
  return !1;
2671
- var N = window.getSelection(), k = N && N.anchorNode, D = k ? k === R || k.contains(R) : !1;
2672
- if (D)
2953
+ var F = window.getSelection(), le = F && F.anchorNode, we = le ? le === k || le.contains(k) : !1;
2954
+ if (we)
2673
2955
  return !1;
2674
- var _e = Ht(E, R);
2675
- if (!_e)
2956
+ var xe = Sn(S, k);
2957
+ if (!xe)
2676
2958
  return !0;
2677
- if (_e ? S = E : (S = E === "v" ? "h" : "v", _e = Ht(E, R)), !_e)
2959
+ if (xe ? O = S : (O = S === "v" ? "h" : "v", xe = Sn(S, k)), !xe)
2678
2960
  return !1;
2679
- if (!r.current && "changedTouches" in p && (w || C) && (r.current = S), !S)
2961
+ if (!r.current && "changedTouches" in f && (b || C) && (r.current = O), !O)
2680
2962
  return !0;
2681
- var Et = r.current || S;
2682
- return Wi(Et, _, p, Et === "h" ? w : C);
2683
- }, []), u = f.useCallback(function(p) {
2684
- var _ = p;
2685
- if (!(!J.length || J[J.length - 1] !== s)) {
2686
- var g = "deltaY" in _ ? Kt(_) : Ee(_), y = t.current.filter(function(S) {
2687
- return S.name === _.type && (S.target === _.target || _.target === S.shadowParent) && Bi(S.delta, g);
2963
+ var Wt = r.current || O;
2964
+ return zc(Wt, v, f, Wt === "h" ? b : C);
2965
+ }, []), a = M(function(f) {
2966
+ var v = f;
2967
+ if (!(!fe.length || fe[fe.length - 1] !== i)) {
2968
+ var h = "deltaY" in v ? En(v) : Ue(v), y = t.current.filter(function(O) {
2969
+ return O.name === v.type && (O.target === v.target || v.target === O.shadowParent) && $c(O.delta, h);
2688
2970
  })[0];
2689
2971
  if (y && y.should) {
2690
- _.cancelable && _.preventDefault();
2972
+ v.cancelable && v.preventDefault();
2691
2973
  return;
2692
2974
  }
2693
2975
  if (!y) {
2694
- var w = (c.current.shards || []).map(qt).filter(Boolean).filter(function(S) {
2695
- return S.contains(_.target);
2696
- }), C = w.length > 0 ? i(_, w[0]) : !c.current.noIsolation;
2697
- C && _.cancelable && _.preventDefault();
2976
+ var b = (c.current.shards || []).map(Pn).filter(Boolean).filter(function(O) {
2977
+ return O.contains(v.target);
2978
+ }), C = b.length > 0 ? s(v, b[0]) : !c.current.noIsolation;
2979
+ C && v.cancelable && v.preventDefault();
2698
2980
  }
2699
2981
  }
2700
- }, []), a = f.useCallback(function(p, _, g, y) {
2701
- var w = { name: p, delta: _, target: g, should: y, shadowParent: Hi(g) };
2702
- t.current.push(w), setTimeout(function() {
2982
+ }, []), u = M(function(f, v, h, y) {
2983
+ var b = { name: f, delta: v, target: h, should: y, shadowParent: jc(h) };
2984
+ t.current.push(b), setTimeout(function() {
2703
2985
  t.current = t.current.filter(function(C) {
2704
- return C !== w;
2986
+ return C !== b;
2705
2987
  });
2706
2988
  }, 1);
2707
- }, []), d = f.useCallback(function(p) {
2708
- n.current = Ee(p), r.current = void 0;
2709
- }, []), l = f.useCallback(function(p) {
2710
- a(p.type, Kt(p), p.target, i(p, e.lockRef.current));
2711
- }, []), m = f.useCallback(function(p) {
2712
- a(p.type, Ee(p), p.target, i(p, e.lockRef.current));
2989
+ }, []), l = M(function(f) {
2990
+ n.current = Ue(f), r.current = void 0;
2991
+ }, []), d = M(function(f) {
2992
+ u(f.type, En(f), f.target, s(f, e.lockRef.current));
2993
+ }, []), _ = M(function(f) {
2994
+ u(f.type, Ue(f), f.target, s(f, e.lockRef.current));
2713
2995
  }, []);
2714
- f.useEffect(function() {
2715
- return J.push(s), e.setCallbacks({
2716
- onScrollCapture: l,
2717
- onWheelCapture: l,
2718
- onTouchMoveCapture: m
2719
- }), document.addEventListener("wheel", u, X), document.addEventListener("touchmove", u, X), document.addEventListener("touchstart", d, X), function() {
2720
- J = J.filter(function(p) {
2721
- return p !== s;
2722
- }), document.removeEventListener("wheel", u, X), document.removeEventListener("touchmove", u, X), document.removeEventListener("touchstart", d, X);
2996
+ E(function() {
2997
+ return fe.push(i), e.setCallbacks({
2998
+ onScrollCapture: d,
2999
+ onWheelCapture: d,
3000
+ onTouchMoveCapture: _
3001
+ }), document.addEventListener("wheel", a, de), document.addEventListener("touchmove", a, de), document.addEventListener("touchstart", l, de), function() {
3002
+ fe = fe.filter(function(f) {
3003
+ return f !== i;
3004
+ }), document.removeEventListener("wheel", a, de), document.removeEventListener("touchmove", a, de), document.removeEventListener("touchstart", l, de);
2723
3005
  };
2724
3006
  }, []);
2725
- var h = e.removeScrollBar, b = e.inert;
2726
- return f.createElement(
2727
- f.Fragment,
3007
+ var m = e.removeScrollBar, g = e.inert;
3008
+ return T(
3009
+ W,
2728
3010
  null,
2729
- b ? f.createElement(s, { styles: Ui(o) }) : null,
2730
- h ? f.createElement(xi, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3011
+ g ? T(i, { styles: Lc(o) }) : null,
3012
+ m ? T(Rc, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
2731
3013
  );
2732
3014
  }
2733
- function Hi(e) {
3015
+ function jc(e) {
2734
3016
  for (var t = null; e !== null; )
2735
3017
  e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
2736
3018
  return t;
2737
3019
  }
2738
- const Ki = wi(Jn, Vi);
2739
- var rr = f.forwardRef(function(e, t) {
2740
- return f.createElement(He, L({}, e, { ref: t, sideCar: Ki }));
3020
+ const Wc = hc(Fr, Uc);
3021
+ var Hr = P(function(e, t) {
3022
+ return T(ot, H({}, e, { ref: t, sideCar: Wc }));
2741
3023
  });
2742
- rr.classNames = He.classNames;
2743
- var qi = function(e) {
3024
+ Hr.classNames = ot.classNames;
3025
+ var Bc = function(e) {
2744
3026
  if (typeof document > "u")
2745
3027
  return null;
2746
3028
  var t = Array.isArray(e) ? e[0] : e;
2747
3029
  return t.ownerDocument.body;
2748
- }, Q = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Pe = {}, tt = 0, or = function(e) {
2749
- return e && (e.host || or(e.parentNode));
2750
- }, Gi = function(e, t) {
3030
+ }, pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {}, vt = 0, Zr = function(e) {
3031
+ return e && (e.host || Zr(e.parentNode));
3032
+ }, Hc = function(e, t) {
2751
3033
  return t.map(function(n) {
2752
3034
  if (e.contains(n))
2753
3035
  return n;
2754
- var r = or(n);
3036
+ var r = Zr(n);
2755
3037
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2756
3038
  }).filter(function(n) {
2757
3039
  return !!n;
2758
3040
  });
2759
- }, Yi = function(e, t, n, r) {
2760
- var o = Gi(t, Array.isArray(e) ? e : [e]);
2761
- Pe[n] || (Pe[n] = /* @__PURE__ */ new WeakMap());
2762
- var s = Pe[n], c = [], i = /* @__PURE__ */ new Set(), u = new Set(o), a = function(l) {
2763
- !l || i.has(l) || (i.add(l), a(l.parentNode));
3041
+ }, Zc = function(e, t, n, r) {
3042
+ var o = Hc(t, Array.isArray(e) ? e : [e]);
3043
+ We[n] || (We[n] = /* @__PURE__ */ new WeakMap());
3044
+ var i = We[n], c = [], s = /* @__PURE__ */ new Set(), a = new Set(o), u = function(d) {
3045
+ !d || s.has(d) || (s.add(d), u(d.parentNode));
2764
3046
  };
2765
- o.forEach(a);
2766
- var d = function(l) {
2767
- !l || u.has(l) || Array.prototype.forEach.call(l.children, function(m) {
2768
- if (i.has(m))
2769
- d(m);
3047
+ o.forEach(u);
3048
+ var l = function(d) {
3049
+ !d || a.has(d) || Array.prototype.forEach.call(d.children, function(_) {
3050
+ if (s.has(_))
3051
+ l(_);
2770
3052
  else
2771
3053
  try {
2772
- var h = m.getAttribute(r), b = h !== null && h !== "false", p = (Q.get(m) || 0) + 1, _ = (s.get(m) || 0) + 1;
2773
- Q.set(m, p), s.set(m, _), c.push(m), p === 1 && b && Se.set(m, !0), _ === 1 && m.setAttribute(n, "true"), b || m.setAttribute(r, "true");
2774
- } catch (g) {
2775
- console.error("aria-hidden: cannot operate on ", m, g);
3054
+ var m = _.getAttribute(r), g = m !== null && m !== "false", f = (pe.get(_) || 0) + 1, v = (i.get(_) || 0) + 1;
3055
+ pe.set(_, f), i.set(_, v), c.push(_), f === 1 && g && je.set(_, !0), v === 1 && _.setAttribute(n, "true"), g || _.setAttribute(r, "true");
3056
+ } catch (h) {
3057
+ console.error("aria-hidden: cannot operate on ", _, h);
2776
3058
  }
2777
3059
  });
2778
3060
  };
2779
- return d(t), i.clear(), tt++, function() {
2780
- c.forEach(function(l) {
2781
- var m = Q.get(l) - 1, h = s.get(l) - 1;
2782
- Q.set(l, m), s.set(l, h), m || (Se.has(l) || l.removeAttribute(r), Se.delete(l)), h || l.removeAttribute(n);
2783
- }), tt--, tt || (Q = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Pe = {});
3061
+ return l(t), s.clear(), vt++, function() {
3062
+ c.forEach(function(d) {
3063
+ var _ = pe.get(d) - 1, m = i.get(d) - 1;
3064
+ pe.set(d, _), i.set(d, m), _ || (je.has(d) || d.removeAttribute(r), je.delete(d)), m || d.removeAttribute(n);
3065
+ }), vt--, vt || (pe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), We = {});
2784
3066
  };
2785
- }, Xi = function(e, t, n) {
3067
+ }, Vc = function(e, t, n) {
2786
3068
  n === void 0 && (n = "data-aria-hidden");
2787
- var r = Array.from(Array.isArray(e) ? e : [e]), o = qi(e);
2788
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Yi(r, o, n, "aria-hidden")) : function() {
3069
+ var r = Array.from(Array.isArray(e) ? e : [e]), o = Bc(e);
3070
+ return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Zc(r, o, n, "aria-hidden")) : function() {
2789
3071
  return null;
2790
3072
  };
2791
- }, Ke = "Dialog", [sr] = he(Ke), [Ji, F] = sr(Ke), ir = (e) => {
3073
+ }, it = "Dialog", [Vr] = ke(it), [Kc, V] = Vr(it), Kr = (e) => {
2792
3074
  const {
2793
3075
  __scopeDialog: t,
2794
3076
  children: n,
2795
3077
  open: r,
2796
3078
  defaultOpen: o,
2797
- onOpenChange: s,
3079
+ onOpenChange: i,
2798
3080
  modal: c = !0
2799
- } = e, i = f.useRef(null), u = f.useRef(null), [a, d] = ve({
3081
+ } = e, s = w(null), a = w(null), [u, l] = De({
2800
3082
  prop: r,
2801
3083
  defaultProp: o ?? !1,
2802
- onChange: s,
2803
- caller: Ke
3084
+ onChange: i,
3085
+ caller: it
2804
3086
  });
2805
- return /* @__PURE__ */ v(
2806
- Ji,
3087
+ return /* @__PURE__ */ p(
3088
+ Kc,
2807
3089
  {
2808
3090
  scope: t,
2809
- triggerRef: i,
2810
- contentRef: u,
2811
- contentId: ue(),
2812
- titleId: ue(),
2813
- descriptionId: ue(),
2814
- open: a,
2815
- onOpenChange: d,
2816
- onOpenToggle: f.useCallback(() => d((l) => !l), [d]),
3091
+ triggerRef: s,
3092
+ contentRef: a,
3093
+ contentId: Oe(),
3094
+ titleId: Oe(),
3095
+ descriptionId: Oe(),
3096
+ open: u,
3097
+ onOpenChange: l,
3098
+ onOpenToggle: M(() => l((d) => !d), [l]),
2817
3099
  modal: c,
2818
3100
  children: n
2819
3101
  }
2820
3102
  );
2821
3103
  };
2822
- ir.displayName = Ke;
2823
- var cr = "DialogTrigger", Qi = f.forwardRef(
3104
+ Kr.displayName = it;
3105
+ var qr = "DialogTrigger", qc = P(
2824
3106
  (e, t) => {
2825
- const { __scopeDialog: n, ...r } = e, o = F(cr, n), s = T(t, o.triggerRef);
2826
- return /* @__PURE__ */ v(
2827
- I.button,
3107
+ const { __scopeDialog: n, ...r } = e, o = V(qr, n), i = L(t, o.triggerRef);
3108
+ return /* @__PURE__ */ p(
3109
+ $.button,
2828
3110
  {
2829
3111
  type: "button",
2830
3112
  "aria-haspopup": "dialog",
2831
3113
  "aria-expanded": o.open,
2832
3114
  "aria-controls": o.contentId,
2833
- "data-state": Ct(o.open),
3115
+ "data-state": jt(o.open),
2834
3116
  ...r,
2835
- ref: s,
2836
- onClick: M(e.onClick, o.onOpenToggle)
3117
+ ref: i,
3118
+ onClick: j(e.onClick, o.onOpenToggle)
2837
3119
  }
2838
3120
  );
2839
3121
  }
2840
3122
  );
2841
- Qi.displayName = cr;
2842
- var ec = "DialogPortal", [_c, ar] = sr(ec, {
3123
+ qc.displayName = qr;
3124
+ var Gc = "DialogPortal", [da, Gr] = Vr(Gc, {
2843
3125
  forceMount: void 0
2844
- }), Le = "DialogOverlay", tc = f.forwardRef(
3126
+ }), Xe = "DialogOverlay", Yc = P(
2845
3127
  (e, t) => {
2846
- const n = ar(Le, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = F(Le, e.__scopeDialog);
2847
- return s.modal ? /* @__PURE__ */ v(We, { present: r || s.open, children: /* @__PURE__ */ v(rc, { ...o, ref: t }) }) : null;
3128
+ const n = Gr(Xe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(Xe, e.__scopeDialog);
3129
+ return i.modal ? /* @__PURE__ */ p(Qe, { present: r || i.open, children: /* @__PURE__ */ p(Jc, { ...o, ref: t }) }) : null;
2848
3130
  }
2849
3131
  );
2850
- tc.displayName = Le;
2851
- var nc = /* @__PURE__ */ Me("DialogOverlay.RemoveScroll"), rc = f.forwardRef(
3132
+ Yc.displayName = Xe;
3133
+ var Xc = /* @__PURE__ */ Ge("DialogOverlay.RemoveScroll"), Jc = P(
2852
3134
  (e, t) => {
2853
- const { __scopeDialog: n, ...r } = e, o = F(Le, n);
3135
+ const { __scopeDialog: n, ...r } = e, o = V(Xe, n);
2854
3136
  return (
2855
3137
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
2856
3138
  // ie. when `Overlay` and `Content` are siblings
2857
- /* @__PURE__ */ v(rr, { as: nc, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ v(
2858
- I.div,
3139
+ /* @__PURE__ */ p(Hr, { as: Xc, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ p(
3140
+ $.div,
2859
3141
  {
2860
- "data-state": Ct(o.open),
3142
+ "data-state": jt(o.open),
2861
3143
  ...r,
2862
3144
  ref: t,
2863
3145
  style: { pointerEvents: "auto", ...r.style }
@@ -2865,213 +3147,213 @@ var nc = /* @__PURE__ */ Me("DialogOverlay.RemoveScroll"), rc = f.forwardRef(
2865
3147
  ) })
2866
3148
  );
2867
3149
  }
2868
- ), G = "DialogContent", lr = f.forwardRef(
3150
+ ), ce = "DialogContent", Yr = P(
2869
3151
  (e, t) => {
2870
- const n = ar(G, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = F(G, e.__scopeDialog);
2871
- return /* @__PURE__ */ v(We, { present: r || s.open, children: s.modal ? /* @__PURE__ */ v(oc, { ...o, ref: t }) : /* @__PURE__ */ v(sc, { ...o, ref: t }) });
3152
+ const n = Gr(ce, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(ce, e.__scopeDialog);
3153
+ return /* @__PURE__ */ p(Qe, { present: r || i.open, children: i.modal ? /* @__PURE__ */ p(Qc, { ...o, ref: t }) : /* @__PURE__ */ p(ea, { ...o, ref: t }) });
2872
3154
  }
2873
3155
  );
2874
- lr.displayName = G;
2875
- var oc = f.forwardRef(
3156
+ Yr.displayName = ce;
3157
+ var Qc = P(
2876
3158
  (e, t) => {
2877
- const n = F(G, e.__scopeDialog), r = f.useRef(null), o = T(t, n.contentRef, r);
2878
- return f.useEffect(() => {
2879
- const s = r.current;
2880
- if (s) return Xi(s);
2881
- }, []), /* @__PURE__ */ v(
2882
- ur,
3159
+ const n = V(ce, e.__scopeDialog), r = w(null), o = L(t, n.contentRef, r);
3160
+ return E(() => {
3161
+ const i = r.current;
3162
+ if (i) return Vc(i);
3163
+ }, []), /* @__PURE__ */ p(
3164
+ Xr,
2883
3165
  {
2884
3166
  ...e,
2885
3167
  ref: o,
2886
3168
  trapFocus: n.open,
2887
3169
  disableOutsidePointerEvents: !0,
2888
- onCloseAutoFocus: M(e.onCloseAutoFocus, (s) => {
2889
- s.preventDefault(), n.triggerRef.current?.focus();
3170
+ onCloseAutoFocus: j(e.onCloseAutoFocus, (i) => {
3171
+ i.preventDefault(), n.triggerRef.current?.focus();
2890
3172
  }),
2891
- onPointerDownOutside: M(e.onPointerDownOutside, (s) => {
2892
- const c = s.detail.originalEvent, i = c.button === 0 && c.ctrlKey === !0;
2893
- (c.button === 2 || i) && s.preventDefault();
3173
+ onPointerDownOutside: j(e.onPointerDownOutside, (i) => {
3174
+ const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
3175
+ (c.button === 2 || s) && i.preventDefault();
2894
3176
  }),
2895
- onFocusOutside: M(
3177
+ onFocusOutside: j(
2896
3178
  e.onFocusOutside,
2897
- (s) => s.preventDefault()
3179
+ (i) => i.preventDefault()
2898
3180
  )
2899
3181
  }
2900
3182
  );
2901
3183
  }
2902
- ), sc = f.forwardRef(
3184
+ ), ea = P(
2903
3185
  (e, t) => {
2904
- const n = F(G, e.__scopeDialog), r = f.useRef(!1), o = f.useRef(!1);
2905
- return /* @__PURE__ */ v(
2906
- ur,
3186
+ const n = V(ce, e.__scopeDialog), r = w(!1), o = w(!1);
3187
+ return /* @__PURE__ */ p(
3188
+ Xr,
2907
3189
  {
2908
3190
  ...e,
2909
3191
  ref: t,
2910
3192
  trapFocus: !1,
2911
3193
  disableOutsidePointerEvents: !1,
2912
- onCloseAutoFocus: (s) => {
2913
- e.onCloseAutoFocus?.(s), s.defaultPrevented || (r.current || n.triggerRef.current?.focus(), s.preventDefault()), r.current = !1, o.current = !1;
3194
+ onCloseAutoFocus: (i) => {
3195
+ e.onCloseAutoFocus?.(i), i.defaultPrevented || (r.current || n.triggerRef.current?.focus(), i.preventDefault()), r.current = !1, o.current = !1;
2914
3196
  },
2915
- onInteractOutside: (s) => {
2916
- e.onInteractOutside?.(s), s.defaultPrevented || (r.current = !0, s.detail.originalEvent.type === "pointerdown" && (o.current = !0));
2917
- const c = s.target;
2918
- n.triggerRef.current?.contains(c) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && o.current && s.preventDefault();
3197
+ onInteractOutside: (i) => {
3198
+ e.onInteractOutside?.(i), i.defaultPrevented || (r.current = !0, i.detail.originalEvent.type === "pointerdown" && (o.current = !0));
3199
+ const c = i.target;
3200
+ n.triggerRef.current?.contains(c) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && o.current && i.preventDefault();
2919
3201
  }
2920
3202
  }
2921
3203
  );
2922
3204
  }
2923
- ), ur = f.forwardRef(
3205
+ ), Xr = P(
2924
3206
  (e, t) => {
2925
- const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...c } = e, i = F(G, n), u = f.useRef(null), a = T(t, u);
2926
- return di(), /* @__PURE__ */ v(te, { children: [
2927
- /* @__PURE__ */ v(
2928
- qn,
3207
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...c } = e, s = V(ce, n), a = w(null), u = L(t, a);
3208
+ return sc(), /* @__PURE__ */ p(W, { children: [
3209
+ /* @__PURE__ */ p(
3210
+ Mr,
2929
3211
  {
2930
3212
  asChild: !0,
2931
3213
  loop: !0,
2932
3214
  trapped: r,
2933
3215
  onMountAutoFocus: o,
2934
- onUnmountAutoFocus: s,
2935
- children: /* @__PURE__ */ v(
2936
- Hn,
3216
+ onUnmountAutoFocus: i,
3217
+ children: /* @__PURE__ */ p(
3218
+ Dr,
2937
3219
  {
2938
3220
  role: "dialog",
2939
- id: i.contentId,
2940
- "aria-describedby": i.descriptionId,
2941
- "aria-labelledby": i.titleId,
2942
- "data-state": Ct(i.open),
3221
+ id: s.contentId,
3222
+ "aria-describedby": s.descriptionId,
3223
+ "aria-labelledby": s.titleId,
3224
+ "data-state": jt(s.open),
2943
3225
  ...c,
2944
- ref: a,
2945
- onDismiss: () => i.onOpenChange(!1)
3226
+ ref: u,
3227
+ onDismiss: () => s.onOpenChange(!1)
2946
3228
  }
2947
3229
  )
2948
3230
  }
2949
3231
  ),
2950
- /* @__PURE__ */ v(te, { children: [
2951
- /* @__PURE__ */ v(ic, { titleId: i.titleId }),
2952
- /* @__PURE__ */ v(ac, { contentRef: u, descriptionId: i.descriptionId })
3232
+ /* @__PURE__ */ p(W, { children: [
3233
+ /* @__PURE__ */ p(ta, { titleId: s.titleId }),
3234
+ /* @__PURE__ */ p(ra, { contentRef: a, descriptionId: s.descriptionId })
2953
3235
  ] })
2954
3236
  ] });
2955
3237
  }
2956
- ), wt = "DialogTitle", dr = f.forwardRef(
3238
+ ), Ut = "DialogTitle", Jr = P(
2957
3239
  (e, t) => {
2958
- const { __scopeDialog: n, ...r } = e, o = F(wt, n);
2959
- return /* @__PURE__ */ v(I.h2, { id: o.titleId, ...r, ref: t });
3240
+ const { __scopeDialog: n, ...r } = e, o = V(Ut, n);
3241
+ return /* @__PURE__ */ p($.h2, { id: o.titleId, ...r, ref: t });
2960
3242
  }
2961
3243
  );
2962
- dr.displayName = wt;
2963
- var fr = "DialogDescription", pr = f.forwardRef(
3244
+ Jr.displayName = Ut;
3245
+ var Qr = "DialogDescription", eo = P(
2964
3246
  (e, t) => {
2965
- const { __scopeDialog: n, ...r } = e, o = F(fr, n);
2966
- return /* @__PURE__ */ v(I.p, { id: o.descriptionId, ...r, ref: t });
3247
+ const { __scopeDialog: n, ...r } = e, o = V(Qr, n);
3248
+ return /* @__PURE__ */ p($.p, { id: o.descriptionId, ...r, ref: t });
2967
3249
  }
2968
3250
  );
2969
- pr.displayName = fr;
2970
- var hr = "DialogClose", vr = f.forwardRef(
3251
+ eo.displayName = Qr;
3252
+ var to = "DialogClose", no = P(
2971
3253
  (e, t) => {
2972
- const { __scopeDialog: n, ...r } = e, o = F(hr, n);
2973
- return /* @__PURE__ */ v(
2974
- I.button,
3254
+ const { __scopeDialog: n, ...r } = e, o = V(to, n);
3255
+ return /* @__PURE__ */ p(
3256
+ $.button,
2975
3257
  {
2976
3258
  type: "button",
2977
3259
  ...r,
2978
3260
  ref: t,
2979
- onClick: M(e.onClick, () => o.onOpenChange(!1))
3261
+ onClick: j(e.onClick, () => o.onOpenChange(!1))
2980
3262
  }
2981
3263
  );
2982
3264
  }
2983
3265
  );
2984
- vr.displayName = hr;
2985
- function Ct(e) {
3266
+ no.displayName = to;
3267
+ function jt(e) {
2986
3268
  return e ? "open" : "closed";
2987
3269
  }
2988
- var _r = "DialogTitleWarning", [mc, mr] = Vo(_r, {
2989
- contentName: G,
2990
- titleName: wt,
3270
+ var ro = "DialogTitleWarning", [fa, oo] = Ui(ro, {
3271
+ contentName: ce,
3272
+ titleName: Ut,
2991
3273
  docsSlug: "dialog"
2992
- }), ic = ({ titleId: e }) => {
2993
- const t = mr(_r), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
3274
+ }), ta = ({ titleId: e }) => {
3275
+ const t = oo(ro), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2994
3276
 
2995
3277
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
2996
3278
 
2997
3279
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
2998
- return f.useEffect(() => {
3280
+ return E(() => {
2999
3281
  e && (document.getElementById(e) || console.error(n));
3000
3282
  }, [n, e]), null;
3001
- }, cc = "DialogDescriptionWarning", ac = ({ contentRef: e, descriptionId: t }) => {
3002
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mr(cc).contentName}}.`;
3003
- return f.useEffect(() => {
3283
+ }, na = "DialogDescriptionWarning", ra = ({ contentRef: e, descriptionId: t }) => {
3284
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${oo(na).contentName}}.`;
3285
+ return E(() => {
3004
3286
  const o = e.current?.getAttribute("aria-describedby");
3005
3287
  t && o && (document.getElementById(t) || console.warn(r));
3006
3288
  }, [r, e, t]), null;
3007
- }, lc = ir, uc = lr, dc = dr, fc = pr, Gt = vr;
3008
- const pc = ({
3289
+ }, oa = Kr, ia = Yr, sa = Jr, ca = eo, Nn = no;
3290
+ const aa = ({
3009
3291
  noTarget: e = !0,
3010
3292
  heading: t = "We use cookies.",
3011
3293
  subheading: n = "Please define your selection below.",
3012
3294
  selectLabel: r = "Select",
3013
3295
  hideLabel: o = "Hide",
3014
- saveLabel: s = "Save selection",
3296
+ saveLabel: i = "Save selection",
3015
3297
  declineLabel: c = "Decline all",
3016
- defaultSettingsOpen: i = !0,
3017
- privacyPolicy: u,
3018
- items: a
3298
+ defaultSettingsOpen: s = !0,
3299
+ privacyPolicy: a,
3300
+ items: u
3019
3301
  }) => {
3020
- const { onSave: d, onDeclineAll: l, selectionTaken: m } = Zn(), [h, b] = de(void 0), [p, _] = de(i);
3021
- return /* @__PURE__ */ v(lc, { open: !m, children: /* @__PURE__ */ v(
3022
- uc,
3302
+ const { onSave: l, onDeclineAll: d, selectionTaken: _ } = Tr(), [m, g] = R(void 0), [f, v] = R(s);
3303
+ return /* @__PURE__ */ p(oa, { open: !_, children: /* @__PURE__ */ p(
3304
+ ia,
3023
3305
  {
3024
- className: ht(x.root, e ? x.noTarget : ""),
3025
- children: /* @__PURE__ */ v(
3026
- En,
3306
+ className: Dt(U.root, e ? U.noTarget : ""),
3307
+ children: /* @__PURE__ */ p(
3308
+ lr,
3027
3309
  {
3028
- open: p,
3029
- onOpenChange: _,
3030
- className: x.collapsible,
3310
+ open: f,
3311
+ onOpenChange: v,
3312
+ className: U.collapsible,
3031
3313
  children: [
3032
- /* @__PURE__ */ v("div", { className: x.header, children: [
3033
- /* @__PURE__ */ v("div", { className: x.heading, children: [
3034
- /* @__PURE__ */ v(dc, { asChild: !0, children: /* @__PURE__ */ v(q, { weight: "bold", children: t }) }),
3035
- /* @__PURE__ */ v(fc, { asChild: !0, children: /* @__PURE__ */ v(q, { size: "caption", color: "muted", children: n }) })
3314
+ /* @__PURE__ */ p("div", { className: U.header, children: [
3315
+ /* @__PURE__ */ p("div", { className: U.heading, children: [
3316
+ /* @__PURE__ */ p(sa, { asChild: !0, children: /* @__PURE__ */ p(ie, { weight: "bold", children: t }) }),
3317
+ /* @__PURE__ */ p(ca, { asChild: !0, children: /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n }) })
3036
3318
  ] }),
3037
- /* @__PURE__ */ v(Sn, { asChild: !0, children: /* @__PURE__ */ v(qe, { variant: "ghost", children: [
3038
- p ? o : r,
3319
+ /* @__PURE__ */ p(dr, { asChild: !0, children: /* @__PURE__ */ p(at, { variant: "ghost", children: [
3320
+ f ? o : r,
3039
3321
  " ",
3040
- /* @__PURE__ */ v(
3041
- Ms,
3322
+ /* @__PURE__ */ p(
3323
+ Is,
3042
3324
  {
3043
3325
  size: 12,
3044
- className: it({
3045
- [x.chevron]: !0,
3046
- [x.open]: p
3326
+ className: gt({
3327
+ [U.chevron]: !0,
3328
+ [U.open]: f
3047
3329
  })
3048
3330
  }
3049
3331
  )
3050
3332
  ] }) })
3051
3333
  ] }),
3052
- /* @__PURE__ */ v(
3053
- Pn,
3334
+ /* @__PURE__ */ p(
3335
+ fr,
3054
3336
  {
3055
- className: it({
3056
- [x.settings]: !0
3337
+ className: gt({
3338
+ [U.settings]: !0
3057
3339
  }),
3058
- children: /* @__PURE__ */ v(
3059
- Ss,
3340
+ children: /* @__PURE__ */ p(
3341
+ ys,
3060
3342
  {
3061
3343
  type: "single",
3062
3344
  collapsible: !0,
3063
- value: h,
3064
- onValueChange: b,
3065
- children: a.map((g) => /* @__PURE__ */ v(Gs, { ...g, openItem: h }, g.value))
3345
+ value: m,
3346
+ onValueChange: g,
3347
+ children: u.map((h) => /* @__PURE__ */ p(Hs, { ...h, openItem: m }, h.value))
3066
3348
  }
3067
3349
  )
3068
3350
  }
3069
3351
  ),
3070
- /* @__PURE__ */ v("div", { className: x.footer, children: [
3071
- /* @__PURE__ */ v("div", { className: x.legal, children: u && /* @__PURE__ */ v(q, { size: "caption", children: /* @__PURE__ */ v("a", { href: u.url, target: "_blank", children: u.label }) }) }),
3072
- /* @__PURE__ */ v("div", { className: x.actions, children: [
3073
- /* @__PURE__ */ v(Gt, { asChild: !0, children: /* @__PURE__ */ v(qe, { variant: "neutral", onClick: () => l(), children: c }) }),
3074
- /* @__PURE__ */ v(Gt, { asChild: !0, children: /* @__PURE__ */ v(qe, { variant: "brand", onClick: () => d(), children: s }) })
3352
+ /* @__PURE__ */ p("div", { className: U.footer, children: [
3353
+ /* @__PURE__ */ p("div", { className: U.legal, children: a && /* @__PURE__ */ p(ie, { size: "caption", children: /* @__PURE__ */ p("a", { href: a.url, target: "_blank", children: a.label }) }) }),
3354
+ /* @__PURE__ */ p("div", { className: U.actions, children: [
3355
+ /* @__PURE__ */ p(Nn, { asChild: !0, children: /* @__PURE__ */ p(at, { variant: "neutral", onClick: () => d(), children: c }) }),
3356
+ /* @__PURE__ */ p(Nn, { asChild: !0, children: /* @__PURE__ */ p(at, { variant: "brand", onClick: () => l(), children: i }) })
3075
3357
  ] })
3076
3358
  ] })
3077
3359
  ]
@@ -3079,12 +3361,12 @@ const pc = ({
3079
3361
  )
3080
3362
  }
3081
3363
  ) });
3082
- }, hc = ({
3364
+ }, ua = ({
3083
3365
  localStorageKey: e = "cb-selection",
3084
3366
  items: t,
3085
3367
  ...n
3086
3368
  }) => {
3087
- const r = H(
3369
+ const r = D(
3088
3370
  () => t.filter((o) => !o.required).map((o) => ({
3089
3371
  value: o.value,
3090
3372
  script: o.script,
@@ -3093,9 +3375,9 @@ const pc = ({
3093
3375
  })),
3094
3376
  [t]
3095
3377
  );
3096
- return /* @__PURE__ */ v(qs, { items: r, localStorageKey: e, children: /* @__PURE__ */ v(pc, { items: t, ...n }) });
3378
+ return /* @__PURE__ */ p(Bs, { items: r, localStorageKey: e, children: /* @__PURE__ */ p(aa, { items: t, ...n }) });
3097
3379
  };
3098
- function gc(e, t) {
3380
+ function pa(e, t) {
3099
3381
  const n = t === void 0;
3100
3382
  let r;
3101
3383
  if (typeof t == "string") {
@@ -3105,8 +3387,8 @@ function gc(e, t) {
3105
3387
  r = o;
3106
3388
  } else
3107
3389
  r = t;
3108
- Ar(/* @__PURE__ */ v(hc, { noTarget: n, ...e }), r ?? document.body);
3390
+ Ae(/* @__PURE__ */ p(ua, { noTarget: n, ...e }), r ?? document.body);
3109
3391
  }
3110
3392
  export {
3111
- gc as mountBanner
3393
+ pa as mountBanner
3112
3394
  };