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