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