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