@uninspired/cookie-banner 0.0.10 → 0.0.12
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/react/index.cjs +27 -26
- package/dist/react/index.js +32 -31
- package/dist/react/style.css +19 -26
- package/dist/script/index.cjs +45 -1
- package/dist/script/index.js +2258 -1229
- 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 z, Fragment as W, Component as se, createRef as Nn, createContext as ee, createElement as T, toChildArray as Q, cloneElement as io, render as Ae, hydrate as so } from "preact";
|
|
2
|
+
var co = 0;
|
|
3
|
+
function p(e, t, n, r, o, i) {
|
|
4
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, s, a = t;
|
|
6
|
+
if ("ref" in a) for (s in a = {}, t) s == "ref" ? c = t[s] : a[s] = t[s];
|
|
7
|
+
var u = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --co, __i: -1, __u: 0, __source: o, __self: i };
|
|
8
|
+
if (typeof e == "function" && (c = e.defaultProps)) for (s in c) a[s] === void 0 && (a[s] = c[s]);
|
|
9
|
+
return z.vnode && z.vnode(u), u;
|
|
10
|
+
}
|
|
11
|
+
var q, N, ct, Wt, he = 0, On = [], A = z, Bt = A.__b, Ht = A.__r, Zt = A.diffed, Vt = A.__c, Kt = A.unmount, qt = A.__;
|
|
12
|
+
function ae(e, t) {
|
|
13
|
+
A.__h && A.__h(N, e, he || t), he = 0;
|
|
14
|
+
var n = N.__H || (N.__H = { __: [], __h: [] });
|
|
15
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 R(e) {
|
|
18
|
+
return he = 1, Te(An, e);
|
|
19
|
+
}
|
|
20
|
+
function Te(e, t, n) {
|
|
21
|
+
var r = ae(q++, 2);
|
|
22
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : An(void 0, t), function(s) {
|
|
23
|
+
var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, s);
|
|
24
|
+
a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
25
|
+
}], r.__c = N, !N.__f)) {
|
|
26
|
+
var o = function(s, a, u) {
|
|
27
|
+
if (!r.__c.__H) return !0;
|
|
28
|
+
var l = r.__c.__H.__.filter(function(_) {
|
|
29
29
|
return _.__c;
|
|
30
30
|
});
|
|
31
31
|
if (l.every(function(_) {
|
|
32
32
|
return !_.__N;
|
|
33
|
-
})) return !
|
|
34
|
-
var d =
|
|
33
|
+
})) return !i || i.call(this, s, a, u);
|
|
34
|
+
var d = r.__c.props !== s;
|
|
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
|
+
}), i && i.call(this, s, a, u) || d;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
|
|
42
|
+
N.__f = !0;
|
|
43
|
+
var i = N.shouldComponentUpdate, c = N.componentWillUpdate;
|
|
44
|
+
N.componentWillUpdate = function(s, a, u) {
|
|
45
45
|
if (this.__e) {
|
|
46
|
-
var l =
|
|
47
|
-
|
|
46
|
+
var l = i;
|
|
47
|
+
i = void 0, o(s, a, u), i = l;
|
|
48
48
|
}
|
|
49
|
-
c && c.call(this,
|
|
50
|
-
},
|
|
49
|
+
c && c.call(this, s, a, u);
|
|
50
|
+
}, N.shouldComponentUpdate = o;
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return r.__N || r.__;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
var n =
|
|
56
|
-
!
|
|
54
|
+
function E(e, t) {
|
|
55
|
+
var n = ae(q++, 3);
|
|
56
|
+
!A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__H.__h.push(n));
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
var n =
|
|
60
|
-
!
|
|
58
|
+
function te(e, t) {
|
|
59
|
+
var n = ae(q++, 4);
|
|
60
|
+
!A.__s && Pt(n.__H, t) && (n.__ = e, n.u = t, N.__h.push(n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
62
|
+
function S(e) {
|
|
63
|
+
return he = 5, D(function() {
|
|
64
64
|
return { current: e };
|
|
65
65
|
}, []);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function St(e, t, n) {
|
|
68
|
+
he = 6, te(function() {
|
|
69
69
|
if (typeof e == "function") {
|
|
70
|
-
var
|
|
70
|
+
var r = e(t());
|
|
71
71
|
return function() {
|
|
72
|
-
e(null),
|
|
72
|
+
e(null), r && typeof r == "function" && r();
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
if (e) return e.current = t(), function() {
|
|
@@ -77,131 +77,131 @@ function Be(e, t, n) {
|
|
|
77
77
|
};
|
|
78
78
|
}, n == null ? n : n.concat(e));
|
|
79
79
|
}
|
|
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
|
-
}
|
|
84
80
|
function D(e, t) {
|
|
85
|
-
|
|
81
|
+
var n = ae(q++, 7);
|
|
82
|
+
return Pt(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
83
|
+
}
|
|
84
|
+
function M(e, t) {
|
|
85
|
+
return he = 8, D(function() {
|
|
86
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 Y(e) {
|
|
90
|
+
var t = N.context[e.__c], n = ae(q++, 9);
|
|
91
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(N)), t.props.value) : e.__;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
|
|
93
|
+
function wt(e, t) {
|
|
94
|
+
A.useDebugValue && A.useDebugValue(t ? t(e) : e);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
var t =
|
|
98
|
-
return t.__ = e,
|
|
99
|
-
t.__ && t.__(
|
|
96
|
+
function ao(e) {
|
|
97
|
+
var t = ae(q++, 10), n = R();
|
|
98
|
+
return t.__ = e, N.componentDidCatch || (N.componentDidCatch = function(r, o) {
|
|
99
|
+
t.__ && t.__(r, o), n[1](r);
|
|
100
100
|
}), [n[0], function() {
|
|
101
101
|
n[1](void 0);
|
|
102
102
|
}];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
var e =
|
|
104
|
+
function Et() {
|
|
105
|
+
var e = ae(q++, 11);
|
|
106
106
|
if (!e.__) {
|
|
107
|
-
for (var t =
|
|
107
|
+
for (var t = N.__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 uo() {
|
|
114
|
+
for (var e; e = On.shift(); ) {
|
|
115
115
|
var t = e.__H;
|
|
116
116
|
if (e.__P && t) try {
|
|
117
|
-
t.__h.some(
|
|
117
|
+
t.__h.some(Be), t.__h.some(mt), t.__h = [];
|
|
118
118
|
} catch (n) {
|
|
119
|
-
t.__h = [],
|
|
119
|
+
t.__h = [], A.__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
|
+
A.__b = function(e) {
|
|
124
|
+
N = null, Bt && Bt(e);
|
|
125
|
+
}, A.__ = function(e, t) {
|
|
126
|
+
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), qt && qt(e, t);
|
|
127
|
+
}, A.__r = function(e) {
|
|
128
|
+
Ht && Ht(e), q = 0;
|
|
129
|
+
var t = (N = e.__c).__H;
|
|
130
|
+
t && (ct === N ? (t.__h = [], N.__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(Be), t.__h.some(mt), t.__h = [], q = 0)), ct = N;
|
|
133
|
+
}, A.diffed = function(e) {
|
|
134
|
+
Zt && Zt(e);
|
|
135
135
|
var t = e.__c;
|
|
136
|
-
t && t.__H && (t.__H.__h.length && (
|
|
136
|
+
t && t.__H && (t.__H.__h.length && (On.push(t) !== 1 && Wt === A.requestAnimationFrame || ((Wt = A.requestAnimationFrame) || lo)(uo)), t.__H.__.some(function(n) {
|
|
137
137
|
n.u && (n.__H = n.u), n.u = void 0;
|
|
138
|
-
})),
|
|
139
|
-
},
|
|
138
|
+
})), ct = N = null;
|
|
139
|
+
}, A.__c = function(e, t) {
|
|
140
140
|
t.some(function(n) {
|
|
141
141
|
try {
|
|
142
|
-
n.__h.some(
|
|
143
|
-
return !
|
|
142
|
+
n.__h.some(Be), n.__h = n.__h.filter(function(r) {
|
|
143
|
+
return !r.__ || mt(r);
|
|
144
144
|
});
|
|
145
|
-
} catch (
|
|
146
|
-
t.some(function(
|
|
147
|
-
|
|
148
|
-
}), t = [],
|
|
145
|
+
} catch (r) {
|
|
146
|
+
t.some(function(o) {
|
|
147
|
+
o.__h && (o.__h = []);
|
|
148
|
+
}), t = [], A.__e(r, n.__v);
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
151
|
-
},
|
|
152
|
-
|
|
150
|
+
}), Vt && Vt(e, t);
|
|
151
|
+
}, A.unmount = function(e) {
|
|
152
|
+
Kt && Kt(e);
|
|
153
153
|
var t, n = e.__c;
|
|
154
|
-
n && n.__H && (n.__H.__.some(function(
|
|
154
|
+
n && n.__H && (n.__H.__.some(function(r) {
|
|
155
155
|
try {
|
|
156
|
-
|
|
157
|
-
} catch (
|
|
158
|
-
t =
|
|
156
|
+
Be(r);
|
|
157
|
+
} catch (o) {
|
|
158
|
+
t = o;
|
|
159
159
|
}
|
|
160
|
-
}), n.__H = void 0, t &&
|
|
160
|
+
}), n.__H = void 0, t && A.__e(t, n.__v));
|
|
161
161
|
};
|
|
162
|
-
var
|
|
163
|
-
function
|
|
162
|
+
var Gt = typeof requestAnimationFrame == "function";
|
|
163
|
+
function lo(e) {
|
|
164
164
|
var t, n = function() {
|
|
165
|
-
clearTimeout(
|
|
166
|
-
},
|
|
167
|
-
|
|
165
|
+
clearTimeout(r), Gt && cancelAnimationFrame(t), setTimeout(e);
|
|
166
|
+
}, r = setTimeout(n, 35);
|
|
167
|
+
Gt && (t = requestAnimationFrame(n));
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
var t =
|
|
171
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
169
|
+
function Be(e) {
|
|
170
|
+
var t = N, n = e.__c;
|
|
171
|
+
typeof n == "function" && (e.__c = void 0, n()), N = t;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
var t =
|
|
175
|
-
e.__c = e.__(),
|
|
173
|
+
function mt(e) {
|
|
174
|
+
var t = N;
|
|
175
|
+
e.__c = e.__(), N = t;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
return !e || e.length !== t.length || t.some(function(n,
|
|
179
|
-
return n !== e[
|
|
177
|
+
function Pt(e, t) {
|
|
178
|
+
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
179
|
+
return n !== e[r];
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function An(e, t) {
|
|
183
183
|
return typeof t == "function" ? t(e) : t;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Rn(e, t) {
|
|
186
186
|
for (var n in t) e[n] = t[n];
|
|
187
187
|
return e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function gt(e, t) {
|
|
190
190
|
for (var n in e) if (n !== "__source" && !(n in t)) return !0;
|
|
191
|
-
for (var
|
|
191
|
+
for (var r in t) if (r !== "__source" && e[r] !== t[r]) 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 Nt(e, t) {
|
|
195
|
+
var n = t(), r = R({ t: { __: n, u: t } }), o = r[0].t, i = r[1];
|
|
196
|
+
return te(function() {
|
|
197
|
+
o.__ = n, o.u = t, at(o) && i({ t: o });
|
|
198
|
+
}, [e, n, t]), E(function() {
|
|
199
|
+
return at(o) && i({ t: o }), e(function() {
|
|
200
|
+
at(o) && i({ t: o });
|
|
201
201
|
});
|
|
202
202
|
}, [e]), n;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function at(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 De(e) {
|
|
|
209
209
|
}
|
|
210
210
|
var t, n;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Ot(e) {
|
|
213
213
|
e();
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function At(e) {
|
|
216
216
|
return e;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
return [!1,
|
|
218
|
+
function Rt() {
|
|
219
|
+
return [!1, Ot];
|
|
220
220
|
}
|
|
221
|
-
var
|
|
222
|
-
function
|
|
221
|
+
var It = te;
|
|
222
|
+
function Ke(e, t) {
|
|
223
223
|
this.props = e, this.context = t;
|
|
224
224
|
}
|
|
225
|
-
function
|
|
226
|
-
function n(
|
|
227
|
-
var
|
|
228
|
-
return !c &&
|
|
225
|
+
function In(e, t) {
|
|
226
|
+
function n(o) {
|
|
227
|
+
var i = this.props.ref, c = i == o.ref;
|
|
228
|
+
return !c && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !c : gt(this.props, o);
|
|
229
229
|
}
|
|
230
|
-
function o
|
|
231
|
-
return this.shouldComponentUpdate = n,
|
|
230
|
+
function r(o) {
|
|
231
|
+
return this.shouldComponentUpdate = n, T(e, o);
|
|
232
232
|
}
|
|
233
|
-
return
|
|
233
|
+
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = e, r;
|
|
234
234
|
}
|
|
235
|
-
(
|
|
236
|
-
return
|
|
235
|
+
(Ke.prototype = new se()).isPureReactComponent = !0, Ke.prototype.shouldComponentUpdate = function(e, t) {
|
|
236
|
+
return gt(this.props, e) || gt(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 Yt = z.__b;
|
|
239
|
+
z.__b = function(e) {
|
|
240
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Yt && Yt(e);
|
|
241
241
|
};
|
|
242
|
-
var
|
|
243
|
-
function
|
|
242
|
+
var fo = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
243
|
+
function P(e) {
|
|
244
244
|
function t(n) {
|
|
245
|
-
var
|
|
246
|
-
return delete
|
|
245
|
+
var r = Rn({}, n);
|
|
246
|
+
return delete r.ref, e(r, n.ref || null);
|
|
247
247
|
}
|
|
248
|
-
return t.$$typeof =
|
|
248
|
+
return t.$$typeof = fo, 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 Xt = function(e, t) {
|
|
251
|
+
return e == null ? null : Q(Q(e).map(t));
|
|
252
|
+
}, K = { map: Xt, forEach: Xt, count: function(e) {
|
|
253
|
+
return e ? Q(e).length : 0;
|
|
254
254
|
}, only: function(e) {
|
|
255
|
-
var t =
|
|
255
|
+
var t = Q(e);
|
|
256
256
|
if (t.length !== 1) throw "Children.only";
|
|
257
257
|
return t[0];
|
|
258
|
-
}, toArray:
|
|
259
|
-
|
|
258
|
+
}, toArray: Q }, po = z.__e;
|
|
259
|
+
z.__e = function(e, t, n, r) {
|
|
260
260
|
if (e.then) {
|
|
261
|
-
for (var
|
|
261
|
+
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
262
262
|
}
|
|
263
|
-
|
|
263
|
+
po(e, t, n, r);
|
|
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 Jt = z.unmount;
|
|
266
|
+
function Tn(e, t, n) {
|
|
267
|
+
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
268
|
+
typeof r.__c == "function" && r.__c();
|
|
269
|
+
}), e.__c.__H = null), (e = Rn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
270
|
+
return Tn(r, 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 kn(e, t, n) {
|
|
274
|
+
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
275
|
+
return kn(r, 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 Pe() {
|
|
279
279
|
this.__u = 0, this.o = null, this.__b = null;
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Dn(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 xn(e) {
|
|
287
|
+
var t, n, r, o = null;
|
|
288
|
+
function i(c) {
|
|
289
|
+
if (t || (t = e()).then(function(s) {
|
|
290
|
+
s && (o = s.default || s), r = !0;
|
|
291
|
+
}, function(s) {
|
|
292
|
+
n = s, r = !0;
|
|
293
293
|
}), n) throw n;
|
|
294
|
-
if (!
|
|
295
|
-
return
|
|
294
|
+
if (!r) throw t;
|
|
295
|
+
return o ? T(o, c) : null;
|
|
296
296
|
}
|
|
297
|
-
return
|
|
297
|
+
return i.displayName = "Lazy", i.__f = !0, i;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function _e() {
|
|
300
300
|
this.i = null, this.l = null;
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
z.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), Jt && Jt(e);
|
|
305
|
+
}, (Pe.prototype = new se()).__c = function(e, t) {
|
|
306
|
+
var n = t.__c, r = this;
|
|
307
|
+
r.o == null && (r.o = []), r.o.push(n);
|
|
308
|
+
var o = Dn(r.__v), i = !1, c = function() {
|
|
309
|
+
i || r.__z || (i = !0, n.__R = null, o ? o(a) : a());
|
|
310
310
|
};
|
|
311
311
|
n.__R = c;
|
|
312
|
-
var
|
|
312
|
+
var s = n.__P;
|
|
313
313
|
n.__P = null;
|
|
314
314
|
var a = function() {
|
|
315
|
-
if (!--
|
|
316
|
-
if (
|
|
317
|
-
var u =
|
|
318
|
-
|
|
315
|
+
if (!--r.__u) {
|
|
316
|
+
if (r.state.__a) {
|
|
317
|
+
var u = r.state.__a;
|
|
318
|
+
r.__v.__k[0] = kn(u, u.__c.__P, u.__c.__O);
|
|
319
319
|
}
|
|
320
320
|
var l;
|
|
321
|
-
for (
|
|
321
|
+
for (r.setState({ __a: r.__b = null }); l = r.o.pop(); ) l.__P = s, l.forceUpdate();
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
|
-
|
|
325
|
-
},
|
|
324
|
+
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(c, c);
|
|
325
|
+
}, Pe.prototype.componentWillUnmount = function() {
|
|
326
326
|
this.o = [];
|
|
327
|
-
},
|
|
327
|
+
}, Pe.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"), r = this.__v.__k[0].__c;
|
|
331
|
+
this.__v.__k[0] = Tn(this.__b, n, r.__O = r.__P);
|
|
332
332
|
}
|
|
333
333
|
this.__b = null;
|
|
334
334
|
}
|
|
335
|
-
var
|
|
336
|
-
return
|
|
335
|
+
var o = t.__a && T(W, null, e.fallback);
|
|
336
|
+
return o && (o.__u &= -33), [T(W, null, t.__a ? null : e.children), o];
|
|
337
337
|
};
|
|
338
|
-
var
|
|
338
|
+
var Qt = 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 _o(e) {
|
|
346
346
|
return this.getChildContext = function() {
|
|
347
347
|
return e.context;
|
|
348
348
|
}, e.children;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function vo(e) {
|
|
351
351
|
var t = this, n = e.h;
|
|
352
352
|
if (t.componentWillUnmount = function() {
|
|
353
|
-
|
|
353
|
+
Ae(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 r = t.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
356
|
+
t.h = n, t.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
357
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(o, i) {
|
|
359
|
+
this.childNodes.push(o), t.h.insertBefore(o, i);
|
|
360
|
+
}, removeChild: function(o) {
|
|
361
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
362
362
|
} };
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
Ae(T(_o, { context: t.context }, e.__v), t.v);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
var n =
|
|
366
|
+
function Mn(e, t) {
|
|
367
|
+
var n = T(vo, { __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
|
+
(_e.prototype = new se()).__a = function(e) {
|
|
371
|
+
var t = this, n = Dn(t.__v), r = t.l.get(e);
|
|
372
|
+
return r[0]++, function(o) {
|
|
373
|
+
var i = function() {
|
|
374
|
+
t.props.revealOrder ? (r.push(o), Qt(t, e, r)) : o();
|
|
375
375
|
};
|
|
376
|
-
n ? n(
|
|
376
|
+
n ? n(i) : i();
|
|
377
377
|
};
|
|
378
|
-
},
|
|
378
|
+
}, _e.prototype.render = function(e) {
|
|
379
379
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
380
|
-
var t =
|
|
380
|
+
var t = Q(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
|
+
}, _e.prototype.componentDidUpdate = _e.prototype.componentDidMount = function() {
|
|
385
385
|
var e = this;
|
|
386
386
|
this.l.forEach(function(t, n) {
|
|
387
|
-
|
|
387
|
+
Qt(e, n, t);
|
|
388
388
|
});
|
|
389
389
|
};
|
|
390
|
-
var
|
|
390
|
+
var zn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, ho = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, mo = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, go = /[A-Z0-9]/g, yo = typeof document < "u", bo = function(e) {
|
|
391
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 $n(e, t, n) {
|
|
394
|
+
return t.__k == null && (t.textContent = ""), Ae(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
396
|
+
function Ln(e, t, n) {
|
|
397
|
+
return so(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
398
398
|
}
|
|
399
|
-
|
|
400
|
-
Object.defineProperty(
|
|
399
|
+
se.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
400
|
+
Object.defineProperty(se.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 en = z.event;
|
|
407
|
+
function Co() {
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function So() {
|
|
410
410
|
return this.cancelBubble;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function wo() {
|
|
413
413
|
return this.defaultPrevented;
|
|
414
414
|
}
|
|
415
|
-
|
|
416
|
-
return
|
|
415
|
+
z.event = function(e) {
|
|
416
|
+
return en && (e = en(e)), e.persist = Co, e.isPropagationStopped = So, e.isDefaultPrevented = wo, e.nativeEvent = e;
|
|
417
417
|
};
|
|
418
|
-
var
|
|
418
|
+
var Tt, Eo = { enumerable: !1, configurable: !0, get: function() {
|
|
419
419
|
return this.class;
|
|
420
|
-
} },
|
|
421
|
-
|
|
420
|
+
} }, tn = z.vnode;
|
|
421
|
+
z.vnode = function(e) {
|
|
422
422
|
typeof e.type == "string" && (function(t) {
|
|
423
|
-
var n = t.props,
|
|
423
|
+
var n = t.props, r = t.type, o = {}, i = r.indexOf("-") === -1;
|
|
424
424
|
for (var c in n) {
|
|
425
|
-
var
|
|
426
|
-
if (!(c === "value" && "defaultValue" in n &&
|
|
425
|
+
var s = n[c];
|
|
426
|
+
if (!(c === "value" && "defaultValue" in n && s == null || yo && c === "children" && r === "noscript" || c === "class" || c === "className")) {
|
|
427
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" && s === !0 ? s = "" : a === "translate" && s === "no" ? s = !1 : a[0] === "o" && a[1] === "n" ? a === "ondoubleclick" ? c = "ondblclick" : a !== "onchange" || r !== "input" && r !== "textarea" || bo(n.type) ? a === "onfocus" ? c = "onfocusin" : a === "onblur" ? c = "onfocusout" : mo.test(c) && (c = a) : a = c = "oninput" : i && ho.test(c) ? c = c.replace(go, "-$&").toLowerCase() : s === null && (s = void 0), a === "oninput" && o[c = a] && (c = "oninputCapture"), o[c] = s;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
|
|
432
|
-
u.props.selected =
|
|
433
|
-
})),
|
|
434
|
-
u.props.selected =
|
|
435
|
-
})), n.class && !n.className ? (
|
|
436
|
-
})(e), e.$$typeof =
|
|
431
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = Q(n.children).forEach(function(u) {
|
|
432
|
+
u.props.selected = o.value.indexOf(u.props.value) != -1;
|
|
433
|
+
})), r == "select" && o.defaultValue != null && (o.value = Q(n.children).forEach(function(u) {
|
|
434
|
+
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
435
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Eo)) : n.className && (o.class = o.className = n.className), t.props = o;
|
|
436
|
+
})(e), e.$$typeof = zn, tn && tn(e);
|
|
437
437
|
};
|
|
438
|
-
var
|
|
439
|
-
|
|
440
|
-
|
|
438
|
+
var nn = z.__r;
|
|
439
|
+
z.__r = function(e) {
|
|
440
|
+
nn && nn(e), Tt = e.__c;
|
|
441
441
|
};
|
|
442
|
-
var
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
var rn = z.diffed;
|
|
443
|
+
z.diffed = function(e) {
|
|
444
|
+
rn && rn(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), Tt = null;
|
|
447
447
|
};
|
|
448
|
-
var
|
|
449
|
-
return
|
|
450
|
-
}, useCallback:
|
|
451
|
-
function
|
|
452
|
-
return
|
|
448
|
+
var Fn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
449
|
+
return Tt.__n[e.__c].props.value;
|
|
450
|
+
}, useCallback: M, useContext: Y, useDebugValue: wt, useDeferredValue: At, useEffect: E, useId: Et, useImperativeHandle: St, useInsertionEffect: It, useLayoutEffect: te, useMemo: D, useReducer: Te, useRef: S, useState: R, useSyncExternalStore: Nt, useTransition: Rt } } }, Po = "18.3.1";
|
|
451
|
+
function Un(e) {
|
|
452
|
+
return T.bind(null, e);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
455
|
-
return !!e && e.$$typeof ===
|
|
454
|
+
function G(e) {
|
|
455
|
+
return !!e && e.$$typeof === zn;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
return
|
|
457
|
+
function jn(e) {
|
|
458
|
+
return G(e) && e.type === W;
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Wn(e) {
|
|
461
461
|
return !!e && typeof e.displayName == "string" && e.displayName.startsWith("Memo(");
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
return
|
|
463
|
+
function ge(e) {
|
|
464
|
+
return G(e) ? io.apply(null, arguments) : e;
|
|
465
465
|
}
|
|
466
|
-
function
|
|
467
|
-
return !!e.__k && (
|
|
466
|
+
function Bn(e) {
|
|
467
|
+
return !!e.__k && (Ae(null, e), !0);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Hn(e) {
|
|
470
470
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
471
471
|
}
|
|
472
|
-
var
|
|
472
|
+
var Zn = function(e, t) {
|
|
473
473
|
return e(t);
|
|
474
|
-
},
|
|
474
|
+
}, kt = function(e, t) {
|
|
475
475
|
return e(t);
|
|
476
|
-
},
|
|
477
|
-
const
|
|
476
|
+
}, Vn = W, Kn = G, I = { useState: R, useId: Et, useReducer: Te, useEffect: E, useLayoutEffect: te, useInsertionEffect: It, useTransition: Rt, useDeferredValue: At, useSyncExternalStore: Nt, startTransition: Ot, useRef: S, useImperativeHandle: St, useMemo: D, useCallback: M, useContext: Y, useDebugValue: wt, version: "18.3.1", Children: K, render: $n, hydrate: Ln, unmountComponentAtNode: Bn, createPortal: Mn, createElement: T, createContext: ee, createFactory: Un, cloneElement: ge, createRef: Nn, Fragment: W, isValidElement: G, isElement: Kn, isFragment: jn, isMemo: Wn, findDOMNode: Hn, Component: se, PureComponent: Ke, memo: In, forwardRef: P, flushSync: kt, unstable_batchedUpdates: Zn, StrictMode: Vn, Suspense: Pe, SuspenseList: _e, lazy: xn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Fn };
|
|
477
|
+
const qn = /* @__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: K,
|
|
480
|
+
Component: se,
|
|
481
|
+
Fragment: W,
|
|
482
|
+
PureComponent: Ke,
|
|
483
|
+
StrictMode: Vn,
|
|
484
|
+
Suspense: Pe,
|
|
485
|
+
SuspenseList: _e,
|
|
486
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Fn,
|
|
487
|
+
cloneElement: ge,
|
|
488
|
+
createContext: ee,
|
|
489
|
+
createElement: T,
|
|
490
|
+
createFactory: Un,
|
|
491
|
+
createPortal: Mn,
|
|
492
|
+
createRef: Nn,
|
|
493
|
+
default: I,
|
|
494
|
+
findDOMNode: Hn,
|
|
495
|
+
flushSync: kt,
|
|
496
|
+
forwardRef: P,
|
|
497
|
+
hydrate: Ln,
|
|
498
|
+
isElement: Kn,
|
|
499
|
+
isFragment: jn,
|
|
500
|
+
isMemo: Wn,
|
|
501
|
+
isValidElement: G,
|
|
502
|
+
lazy: xn,
|
|
503
|
+
memo: In,
|
|
504
|
+
render: $n,
|
|
505
|
+
startTransition: Ot,
|
|
506
|
+
unmountComponentAtNode: Bn,
|
|
507
|
+
unstable_batchedUpdates: Zn,
|
|
508
|
+
useCallback: M,
|
|
509
|
+
useContext: Y,
|
|
510
|
+
useDebugValue: wt,
|
|
511
|
+
useDeferredValue: At,
|
|
512
|
+
useEffect: E,
|
|
513
|
+
useErrorBoundary: ao,
|
|
514
|
+
useId: Et,
|
|
515
|
+
useImperativeHandle: St,
|
|
516
|
+
useInsertionEffect: It,
|
|
517
|
+
useLayoutEffect: te,
|
|
518
|
+
useMemo: D,
|
|
519
|
+
useReducer: Te,
|
|
520
|
+
useRef: S,
|
|
521
|
+
useState: R,
|
|
522
|
+
useSyncExternalStore: Nt,
|
|
523
|
+
useTransition: Rt,
|
|
524
|
+
version: Po
|
|
525
525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
526
|
-
function
|
|
526
|
+
function Gn(...e) {
|
|
527
527
|
return e.filter(Boolean).join(" ");
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function He(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 No = "_root_hw69b_1", Oo = "_neutral_hw69b_17", Ao = "_brand_hw69b_30", Ro = "_ghost_hw69b_43", on = {
|
|
533
|
+
root: No,
|
|
534
|
+
neutral: Oo,
|
|
535
|
+
brand: Ao,
|
|
536
|
+
ghost: Ro
|
|
537
|
+
}, ut = ({ variant: e = "neutral", ...t }) => /* @__PURE__ */ p("button", { className: Gn(on.root, on[e]), ...t }), Io = "_root_14l5h_1", To = "_muted_14l5h_4", ko = "_body_14l5h_8", Do = "_normal_14l5h_14", xo = "_bold_14l5h_18", Mo = "_caption_14l5h_23", Me = {
|
|
538
|
+
root: Io,
|
|
539
|
+
muted: To,
|
|
540
|
+
body: ko,
|
|
541
|
+
normal: Do,
|
|
542
|
+
bold: xo,
|
|
543
|
+
caption: Mo
|
|
544
|
+
}, ie = ({
|
|
545
545
|
as: e = "span",
|
|
546
546
|
size: t = "body",
|
|
547
547
|
weight: n = "normal",
|
|
548
|
-
color:
|
|
549
|
-
...
|
|
548
|
+
color: r = "default",
|
|
549
|
+
...o
|
|
550
550
|
}) => (
|
|
551
551
|
// @ts-ignore
|
|
552
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ p(
|
|
553
553
|
e ?? "span",
|
|
554
554
|
{
|
|
555
|
-
className:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
555
|
+
className: Gn(
|
|
556
|
+
Me.root,
|
|
557
|
+
Me[t],
|
|
558
|
+
Me[n],
|
|
559
|
+
Me[r]
|
|
560
560
|
),
|
|
561
|
-
...
|
|
561
|
+
...o
|
|
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
|
+
), zo = "_root_12udu_53", $o = "_noTarget_12udu_65", Lo = "_collapsible_12udu_74", Fo = "_header_12udu_77", Uo = "_heading_12udu_84", jo = "_chevron_12udu_90", Wo = "_open_12udu_95", Bo = "_settings_12udu_101", Ho = "_footer_12udu_115", Zo = "_legal_12udu_122", Vo = "_actions_12udu_125", U = {
|
|
565
|
+
root: zo,
|
|
566
|
+
noTarget: $o,
|
|
567
|
+
collapsible: Lo,
|
|
568
|
+
header: Fo,
|
|
569
|
+
heading: Uo,
|
|
570
|
+
chevron: jo,
|
|
571
|
+
open: Wo,
|
|
572
|
+
settings: Bo,
|
|
573
|
+
footer: Ho,
|
|
574
|
+
legal: Zo,
|
|
575
|
+
actions: Vo
|
|
576
|
+
}, Ko = "_root_mqtha_19", qo = "_header_mqtha_24", Go = "_label_mqtha_33", Yo = "_actions_mqtha_39", Xo = "_chevron_mqtha_45", Jo = "_open_mqtha_51", Qo = "_description_mqtha_58", re = {
|
|
577
|
+
root: Ko,
|
|
578
|
+
header: qo,
|
|
579
|
+
label: Go,
|
|
580
|
+
actions: Yo,
|
|
581
|
+
chevron: Xo,
|
|
582
|
+
open: Jo,
|
|
583
|
+
description: Qo
|
|
584
584
|
};
|
|
585
|
-
function
|
|
586
|
-
function
|
|
587
|
-
if (
|
|
585
|
+
function x(e, t, n) {
|
|
586
|
+
function r(s, a) {
|
|
587
|
+
if (s._zod || Object.defineProperty(s, "_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
|
+
}), s._zod.traits.has(e))
|
|
595
595
|
return;
|
|
596
|
-
|
|
596
|
+
s._zod.traits.add(e), t(s, 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 s || (s[_] = u[_].bind(s));
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
|
-
const
|
|
604
|
-
class
|
|
603
|
+
const o = n?.Parent ?? Object;
|
|
604
|
+
class i extends o {
|
|
605
605
|
}
|
|
606
|
-
Object.defineProperty(
|
|
607
|
-
function c(
|
|
606
|
+
Object.defineProperty(i, "name", { value: e });
|
|
607
|
+
function c(s) {
|
|
608
608
|
var a;
|
|
609
|
-
const u = n?.Parent ? new
|
|
610
|
-
|
|
609
|
+
const u = n?.Parent ? new i() : this;
|
|
610
|
+
r(u, s), (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: r }), Object.defineProperty(c, Symbol.hasInstance, {
|
|
616
|
+
value: (s) => n?.Parent && s instanceof n.Parent ? !0 : s?._zod?.traits?.has(e)
|
|
617
617
|
}), Object.defineProperty(c, "name", { value: e }), c;
|
|
618
618
|
}
|
|
619
|
-
class
|
|
619
|
+
class Ne 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 ei = {};
|
|
625
|
+
function ye(e) {
|
|
626
|
+
return ei;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function ti(e, t) {
|
|
629
629
|
return typeof t == "bigint" ? t.toString() : t;
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Yn(e) {
|
|
632
632
|
return {
|
|
633
633
|
get value() {
|
|
634
634
|
{
|
|
@@ -638,55 +638,55 @@ function tn(e) {
|
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function Xn(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 sn = /* @__PURE__ */ Symbol("evaluating");
|
|
646
|
+
function Z(e, t, n) {
|
|
647
|
+
let r;
|
|
648
648
|
Object.defineProperty(e, t, {
|
|
649
649
|
get() {
|
|
650
|
-
if (
|
|
651
|
-
return
|
|
650
|
+
if (r !== sn)
|
|
651
|
+
return r === void 0 && (r = sn, r = n()), r;
|
|
652
652
|
},
|
|
653
|
-
set(
|
|
653
|
+
set(o) {
|
|
654
654
|
Object.defineProperty(e, t, {
|
|
655
|
-
value:
|
|
655
|
+
value: o
|
|
656
656
|
// configurable: true,
|
|
657
657
|
});
|
|
658
658
|
},
|
|
659
659
|
configurable: !0
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const Jn = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
663
663
|
};
|
|
664
|
-
function
|
|
664
|
+
function qe(e) {
|
|
665
665
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
668
|
-
if (
|
|
667
|
+
function ni(e) {
|
|
668
|
+
if (qe(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 !(qe(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function cn(e) {
|
|
677
677
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
const
|
|
681
|
-
return (!t || n?.parent) && (
|
|
679
|
+
function ri(e, t, n) {
|
|
680
|
+
const r = new e._zod.constr(t ?? e._zod.def);
|
|
681
|
+
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function be(e) {
|
|
684
684
|
return {};
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function oi(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 we(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 ue(e, t = 0) {
|
|
|
694
694
|
return !0;
|
|
695
695
|
return !1;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Ee(e, t) {
|
|
698
698
|
return t.map((n) => {
|
|
699
|
-
var
|
|
700
|
-
return (
|
|
699
|
+
var r;
|
|
700
|
+
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function ze(e) {
|
|
704
704
|
return typeof e == "string" ? e : e?.message;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
const
|
|
706
|
+
function Ce(e, t, n) {
|
|
707
|
+
const r = { ...e, path: e.path ?? [] };
|
|
708
708
|
if (!e.message) {
|
|
709
|
-
const
|
|
710
|
-
|
|
709
|
+
const o = ze(e.inst?._zod.def?.error?.(e)) ?? ze(t?.error?.(e)) ?? ze(n.customError?.(e)) ?? ze(n.localeError?.(e)) ?? "Invalid input";
|
|
710
|
+
r.message = o;
|
|
711
711
|
}
|
|
712
|
-
return delete
|
|
712
|
+
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
713
713
|
}
|
|
714
|
-
const
|
|
714
|
+
const Qn = (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, ti, 2), Object.defineProperty(e, "toString", {
|
|
722
722
|
value: () => e.message,
|
|
723
723
|
enumerable: !1
|
|
724
724
|
});
|
|
725
|
-
},
|
|
726
|
-
const
|
|
725
|
+
}, ii = x("$ZodError", Qn), Qe = x("$ZodError", Qn, { Parent: Error }), si = (e) => (t, n, r, o) => {
|
|
726
|
+
const i = r ? Object.assign(r, { async: !1 }) : { async: !1 }, c = t._zod.run({ value: n, issues: [] }, i);
|
|
727
727
|
if (c instanceof Promise)
|
|
728
|
-
throw new
|
|
728
|
+
throw new Ne();
|
|
729
729
|
if (c.issues.length) {
|
|
730
|
-
const
|
|
731
|
-
throw
|
|
730
|
+
const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
|
|
731
|
+
throw Jn(s, o?.callee), s;
|
|
732
732
|
}
|
|
733
733
|
return c.value;
|
|
734
|
-
},
|
|
735
|
-
const
|
|
736
|
-
let c = t._zod.run({ value: n, issues: [] },
|
|
734
|
+
}, ci = /* @__PURE__ */ si(Qe), ai = (e) => async (t, n, r, o) => {
|
|
735
|
+
const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
736
|
+
let c = t._zod.run({ value: n, issues: [] }, i);
|
|
737
737
|
if (c instanceof Promise && (c = await c), c.issues.length) {
|
|
738
|
-
const
|
|
739
|
-
throw
|
|
738
|
+
const s = new (o?.Err ?? e)(c.issues.map((a) => Ce(a, i, ye())));
|
|
739
|
+
throw Jn(s, o?.callee), s;
|
|
740
740
|
}
|
|
741
741
|
return c.value;
|
|
742
|
-
},
|
|
743
|
-
const
|
|
744
|
-
if (
|
|
745
|
-
throw new
|
|
746
|
-
return
|
|
742
|
+
}, ui = /* @__PURE__ */ ai(Qe), li = (e) => (t, n, r) => {
|
|
743
|
+
const o = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, o);
|
|
744
|
+
if (i instanceof Promise)
|
|
745
|
+
throw new Ne();
|
|
746
|
+
return i.issues.length ? {
|
|
747
747
|
success: !1,
|
|
748
|
-
error: new (e ??
|
|
749
|
-
} : { success: !0, data:
|
|
750
|
-
},
|
|
751
|
-
const
|
|
752
|
-
let
|
|
753
|
-
return
|
|
748
|
+
error: new (e ?? ii)(i.issues.map((c) => Ce(c, o, ye())))
|
|
749
|
+
} : { success: !0, data: i.value };
|
|
750
|
+
}, er = /* @__PURE__ */ li(Qe), di = (e) => async (t, n, r) => {
|
|
751
|
+
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
752
|
+
let i = t._zod.run({ value: n, issues: [] }, o);
|
|
753
|
+
return i instanceof Promise && (i = await i), i.issues.length ? {
|
|
754
754
|
success: !1,
|
|
755
|
-
error: new e(
|
|
756
|
-
} : { success: !0, data:
|
|
757
|
-
},
|
|
755
|
+
error: new e(i.issues.map((c) => Ce(c, o, ye())))
|
|
756
|
+
} : { success: !0, data: i.value };
|
|
757
|
+
}, tr = /* @__PURE__ */ di(Qe), fi = (e) => {
|
|
758
758
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
759
759
|
return new RegExp(`^${t}$`);
|
|
760
|
-
},
|
|
760
|
+
}, pi = /^-?\d+(?:\.\d+)?$/, _i = /^(?:true|false)$/i, vi = {
|
|
761
761
|
major: 4,
|
|
762
762
|
minor: 3,
|
|
763
763
|
patch: 6
|
|
764
|
-
},
|
|
764
|
+
}, ne = /* @__PURE__ */ x("$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 = vi;
|
|
767
|
+
const r = [...e._zod.def.checks ?? []];
|
|
768
|
+
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
769
|
+
for (const o of r)
|
|
770
|
+
for (const i of o._zod.onattach)
|
|
771
|
+
i(e);
|
|
772
|
+
if (r.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 o = (c, s, a) => {
|
|
778
|
+
let u = we(c), l;
|
|
779
|
+
for (const d of s) {
|
|
780
780
|
if (d._zod.def.when) {
|
|
781
781
|
if (!d._zod.def.when(c))
|
|
782
782
|
continue;
|
|
@@ -784,59 +784,59 @@ const rn = (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 Ne();
|
|
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 = we(c, _)));
|
|
791
791
|
});
|
|
792
792
|
else {
|
|
793
793
|
if (c.issues.length === _)
|
|
794
794
|
continue;
|
|
795
|
-
u || (u =
|
|
795
|
+
u || (u = we(c, _));
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
return l ? l.then(() => c) : c;
|
|
799
|
-
},
|
|
800
|
-
if (
|
|
799
|
+
}, i = (c, s, a) => {
|
|
800
|
+
if (we(c))
|
|
801
801
|
return c.aborted = !0, c;
|
|
802
|
-
const u =
|
|
802
|
+
const u = o(s, r, a);
|
|
803
803
|
if (u instanceof Promise) {
|
|
804
804
|
if (a.async === !1)
|
|
805
|
-
throw new
|
|
805
|
+
throw new Ne();
|
|
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, s) => {
|
|
811
|
+
if (s.skipChecks)
|
|
812
|
+
return e._zod.parse(c, s);
|
|
813
|
+
if (s.direction === "backward") {
|
|
814
|
+
const u = e._zod.parse({ value: c.value, issues: [] }, { ...s, skipChecks: !0 });
|
|
815
|
+
return u instanceof Promise ? u.then((l) => i(l, c, s)) : i(u, c, s);
|
|
816
816
|
}
|
|
817
|
-
const a = e._zod.parse(c,
|
|
817
|
+
const a = e._zod.parse(c, s);
|
|
818
818
|
if (a instanceof Promise) {
|
|
819
|
-
if (
|
|
820
|
-
throw new
|
|
821
|
-
return a.then((u) =>
|
|
819
|
+
if (s.async === !1)
|
|
820
|
+
throw new Ne();
|
|
821
|
+
return a.then((u) => o(u, r, s));
|
|
822
822
|
}
|
|
823
|
-
return
|
|
823
|
+
return o(a, r, s);
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
|
|
827
|
-
validate: (
|
|
826
|
+
Z(e, "~standard", () => ({
|
|
827
|
+
validate: (o) => {
|
|
828
828
|
try {
|
|
829
|
-
const
|
|
830
|
-
return
|
|
829
|
+
const i = er(e, o);
|
|
830
|
+
return i.success ? { value: i.data } : { issues: i.error?.issues };
|
|
831
831
|
} catch {
|
|
832
|
-
return
|
|
832
|
+
return tr(e, o).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
|
+
}), hi = /* @__PURE__ */ x("$ZodString", (e, t) => {
|
|
839
|
+
ne.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fi(e._zod.bag), e._zod.parse = (n, r) => {
|
|
840
840
|
if (t.coerce)
|
|
841
841
|
try {
|
|
842
842
|
n.value = String(n.value);
|
|
@@ -849,36 +849,36 @@ const rn = (e, t) => {
|
|
|
849
849
|
inst: e
|
|
850
850
|
}), n;
|
|
851
851
|
};
|
|
852
|
-
}),
|
|
853
|
-
|
|
852
|
+
}), mi = /* @__PURE__ */ x("$ZodBoolean", (e, t) => {
|
|
853
|
+
ne.init(e, t), e._zod.pattern = _i, e._zod.parse = (n, r) => {
|
|
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 o = n.value;
|
|
860
|
+
return typeof o == "boolean" || n.issues.push({
|
|
861
861
|
expected: "boolean",
|
|
862
862
|
code: "invalid_type",
|
|
863
|
-
input:
|
|
863
|
+
input: o,
|
|
864
864
|
inst: e
|
|
865
865
|
}), n;
|
|
866
866
|
};
|
|
867
867
|
});
|
|
868
|
-
function
|
|
868
|
+
function Ge(e, t, n, r, o) {
|
|
869
869
|
if (e.issues.length) {
|
|
870
|
-
if (
|
|
870
|
+
if (o && !(n in r))
|
|
871
871
|
return;
|
|
872
|
-
t.issues.push(...
|
|
872
|
+
t.issues.push(...Ee(n, e.issues));
|
|
873
873
|
}
|
|
874
|
-
e.value === void 0 ? n in
|
|
874
|
+
e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function gi(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 r of t)
|
|
879
|
+
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
880
|
+
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
881
|
+
const n = oi(e.shape);
|
|
882
882
|
return {
|
|
883
883
|
...e,
|
|
884
884
|
keys: t,
|
|
@@ -887,42 +887,42 @@ function Qo(e) {
|
|
|
887
887
|
optionalKeys: new Set(n)
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
const c = [],
|
|
890
|
+
function yi(e, t, n, r, o, i) {
|
|
891
|
+
const c = [], s = o.keySet, a = o.catchall._zod, u = a.def.type, l = a.optout === "optional";
|
|
892
892
|
for (const d in t) {
|
|
893
|
-
if (
|
|
893
|
+
if (s.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: [] }, r);
|
|
900
|
+
_ instanceof Promise ? e.push(_.then((m) => Ge(m, n, d, t, l))) : Ge(_, 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: i
|
|
907
907
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
908
908
|
}
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
911
|
-
const
|
|
909
|
+
const bi = /* @__PURE__ */ x("$ZodObject", (e, t) => {
|
|
910
|
+
if (ne.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
911
|
+
const s = t.shape;
|
|
912
912
|
Object.defineProperty(t, "shape", {
|
|
913
913
|
get: () => {
|
|
914
|
-
const a = { ...
|
|
914
|
+
const a = { ...s };
|
|
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 r = Yn(() => gi(t));
|
|
922
|
+
Z(e._zod, "propValues", () => {
|
|
923
|
+
const s = t.shape, a = {};
|
|
924
|
+
for (const u in s) {
|
|
925
|
+
const l = s[u]._zod;
|
|
926
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 tr = /* @__PURE__ */ P("$ZodObject", (e, t) => {
|
|
|
931
931
|
}
|
|
932
932
|
return a;
|
|
933
933
|
});
|
|
934
|
-
const
|
|
934
|
+
const o = qe, i = t.catchall;
|
|
935
935
|
let c;
|
|
936
|
-
e._zod.parse = (
|
|
937
|
-
c ?? (c =
|
|
938
|
-
const u =
|
|
939
|
-
if (!
|
|
940
|
-
return
|
|
936
|
+
e._zod.parse = (s, a) => {
|
|
937
|
+
c ?? (c = r.value);
|
|
938
|
+
const u = s.value;
|
|
939
|
+
if (!o(u))
|
|
940
|
+
return s.issues.push({
|
|
941
941
|
expected: "object",
|
|
942
942
|
code: "invalid_type",
|
|
943
943
|
input: u,
|
|
944
944
|
inst: e
|
|
945
|
-
}),
|
|
946
|
-
|
|
945
|
+
}), s;
|
|
946
|
+
s.value = {};
|
|
947
947
|
const l = [], d = c.shape;
|
|
948
948
|
for (const _ of c.keys) {
|
|
949
|
-
const m = d[_],
|
|
950
|
-
|
|
949
|
+
const m = d[_], g = m._zod.optout === "optional", f = m._zod.run({ value: u[_], issues: [] }, a);
|
|
950
|
+
f instanceof Promise ? l.push(f.then((v) => Ge(v, s, _, u, g))) : Ge(f, s, _, u, g);
|
|
951
951
|
}
|
|
952
|
-
return
|
|
952
|
+
return i ? yi(l, u, s, a, r.value, e) : l.length ? Promise.all(l).then(() => s) : s;
|
|
953
953
|
};
|
|
954
954
|
});
|
|
955
|
-
function
|
|
956
|
-
for (const
|
|
957
|
-
if (
|
|
958
|
-
return t.value =
|
|
959
|
-
const
|
|
960
|
-
return
|
|
955
|
+
function an(e, t, n, r) {
|
|
956
|
+
for (const i of e)
|
|
957
|
+
if (i.issues.length === 0)
|
|
958
|
+
return t.value = i.value, t;
|
|
959
|
+
const o = e.filter((i) => !we(i));
|
|
960
|
+
return o.length === 1 ? (t.value = o[0].value, o[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((i) => i.issues.map((c) => Ce(c, r, ye())))
|
|
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 Ci = /* @__PURE__ */ x("$ZodUnion", (e, t) => {
|
|
968
|
+
ne.init(e, t), Z(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), Z(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), Z(e._zod, "values", () => {
|
|
969
|
+
if (t.options.every((o) => o._zod.values))
|
|
970
|
+
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
971
|
+
}), Z(e._zod, "pattern", () => {
|
|
972
|
+
if (t.options.every((o) => o._zod.pattern)) {
|
|
973
|
+
const o = t.options.map((i) => i._zod.pattern);
|
|
974
|
+
return new RegExp(`^(${o.map((i) => Xn(i.source)).join("|")})$`);
|
|
975
975
|
}
|
|
976
976
|
});
|
|
977
|
-
const n = t.options.length === 1,
|
|
978
|
-
e._zod.parse = (
|
|
977
|
+
const n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
978
|
+
e._zod.parse = (o, i) => {
|
|
979
979
|
if (n)
|
|
980
|
-
return o
|
|
980
|
+
return r(o, i);
|
|
981
981
|
let c = !1;
|
|
982
|
-
const
|
|
982
|
+
const s = [];
|
|
983
983
|
for (const a of t.options) {
|
|
984
984
|
const u = a._zod.run({
|
|
985
|
-
value:
|
|
985
|
+
value: o.value,
|
|
986
986
|
issues: []
|
|
987
|
-
},
|
|
987
|
+
}, i);
|
|
988
988
|
if (u instanceof Promise)
|
|
989
|
-
|
|
989
|
+
s.push(u), c = !0;
|
|
990
990
|
else {
|
|
991
991
|
if (u.issues.length === 0)
|
|
992
992
|
return u;
|
|
993
|
-
|
|
993
|
+
s.push(u);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
|
-
return c ? Promise.all(
|
|
996
|
+
return c ? Promise.all(s).then((a) => an(a, o, e, i)) : an(s, o, e, i);
|
|
997
997
|
};
|
|
998
|
-
}),
|
|
999
|
-
t.inclusive = !1,
|
|
998
|
+
}), Si = /* @__PURE__ */ x("$ZodDiscriminatedUnion", (e, t) => {
|
|
999
|
+
t.inclusive = !1, Ci.init(e, t);
|
|
1000
1000
|
const n = e._zod.parse;
|
|
1001
|
-
|
|
1002
|
-
const
|
|
1003
|
-
for (const
|
|
1004
|
-
const c =
|
|
1001
|
+
Z(e._zod, "propValues", () => {
|
|
1002
|
+
const o = {};
|
|
1003
|
+
for (const i of t.options) {
|
|
1004
|
+
const c = i._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(i)}"`);
|
|
1007
|
+
for (const [s, a] of Object.entries(c)) {
|
|
1008
|
+
o[s] || (o[s] = /* @__PURE__ */ new Set());
|
|
1009
1009
|
for (const u of a)
|
|
1010
|
-
|
|
1010
|
+
o[s].add(u);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
return
|
|
1013
|
+
return o;
|
|
1014
1014
|
});
|
|
1015
|
-
const
|
|
1016
|
-
const
|
|
1017
|
-
for (const c of
|
|
1018
|
-
const
|
|
1019
|
-
if (!
|
|
1015
|
+
const r = Yn(() => {
|
|
1016
|
+
const o = t.options, i = /* @__PURE__ */ new Map();
|
|
1017
|
+
for (const c of o) {
|
|
1018
|
+
const s = c._zod.propValues?.[t.discriminator];
|
|
1019
|
+
if (!s || s.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 s) {
|
|
1022
|
+
if (i.has(a))
|
|
1023
1023
|
throw new Error(`Duplicate discriminator value "${String(a)}"`);
|
|
1024
|
-
|
|
1024
|
+
i.set(a, c);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
return
|
|
1027
|
+
return i;
|
|
1028
1028
|
});
|
|
1029
|
-
e._zod.parse = (
|
|
1030
|
-
const c =
|
|
1031
|
-
if (!
|
|
1032
|
-
return
|
|
1029
|
+
e._zod.parse = (o, i) => {
|
|
1030
|
+
const c = o.value;
|
|
1031
|
+
if (!qe(c))
|
|
1032
|
+
return o.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
|
+
}), o;
|
|
1038
|
+
const s = r.value.get(c?.[t.discriminator]);
|
|
1039
|
+
return s ? s._zod.run(o, i) : t.unionFallback ? n(o, i) : (o.issues.push({
|
|
1040
1040
|
code: "invalid_union",
|
|
1041
1041
|
errors: [],
|
|
1042
1042
|
note: "No matching discriminator",
|
|
@@ -1044,426 +1044,440 @@ const nr = /* @__PURE__ */ P("$ZodUnion", (e, t) => {
|
|
|
1044
1044
|
input: c,
|
|
1045
1045
|
path: [t.discriminator],
|
|
1046
1046
|
inst: e
|
|
1047
|
-
}),
|
|
1047
|
+
}), o);
|
|
1048
1048
|
};
|
|
1049
|
-
}),
|
|
1050
|
-
|
|
1051
|
-
const
|
|
1052
|
-
if (!
|
|
1049
|
+
}), wi = /* @__PURE__ */ x("$ZodRecord", (e, t) => {
|
|
1050
|
+
ne.init(e, t), e._zod.parse = (n, r) => {
|
|
1051
|
+
const o = n.value;
|
|
1052
|
+
if (!ni(o))
|
|
1053
1053
|
return n.issues.push({
|
|
1054
1054
|
expected: "record",
|
|
1055
1055
|
code: "invalid_type",
|
|
1056
|
-
input:
|
|
1056
|
+
input: o,
|
|
1057
1057
|
inst: e
|
|
1058
1058
|
}), n;
|
|
1059
|
-
const
|
|
1059
|
+
const i = [], c = t.keyType._zod.values;
|
|
1060
1060
|
if (c) {
|
|
1061
1061
|
n.value = {};
|
|
1062
|
-
const
|
|
1062
|
+
const s = /* @__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
|
+
s.add(typeof u == "number" ? u.toString() : u);
|
|
1066
|
+
const l = t.valueType._zod.run({ value: o[u], issues: [] }, r);
|
|
1067
|
+
l instanceof Promise ? i.push(l.then((d) => {
|
|
1068
|
+
d.issues.length && n.issues.push(...Ee(u, d.issues)), n.value[u] = d.value;
|
|
1069
|
+
})) : (l.issues.length && n.issues.push(...Ee(u, l.issues)), n.value[u] = l.value);
|
|
1070
1070
|
}
|
|
1071
1071
|
let a;
|
|
1072
|
-
for (const u in
|
|
1073
|
-
|
|
1072
|
+
for (const u in o)
|
|
1073
|
+
s.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: o,
|
|
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 s of Reflect.ownKeys(o)) {
|
|
1083
|
+
if (s === "__proto__")
|
|
1084
1084
|
continue;
|
|
1085
|
-
let a = t.keyType._zod.run({ value:
|
|
1085
|
+
let a = t.keyType._zod.run({ value: s, issues: [] }, r);
|
|
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 s == "string" && pi.test(s) && a.issues.length) {
|
|
1089
|
+
const d = t.keyType._zod.run({ value: Number(s), issues: [] }, r);
|
|
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[s] = o[s] : 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) => Ce(d, r, ye())),
|
|
1099
|
+
input: s,
|
|
1100
|
+
path: [s],
|
|
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: o[s], issues: [] }, r);
|
|
1106
|
+
l instanceof Promise ? i.push(l.then((d) => {
|
|
1107
|
+
d.issues.length && n.issues.push(...Ee(s, d.issues)), n.value[a.value] = d.value;
|
|
1108
|
+
})) : (l.issues.length && n.issues.push(...Ee(s, l.issues)), n.value[a.value] = l.value);
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
return
|
|
1111
|
+
return i.length ? Promise.all(i).then(() => n) : n;
|
|
1112
1112
|
};
|
|
1113
|
-
}),
|
|
1114
|
-
if (
|
|
1113
|
+
}), Ei = /* @__PURE__ */ x("$ZodLiteral", (e, t) => {
|
|
1114
|
+
if (ne.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((r) => typeof r == "string" ? cn(r) : r ? cn(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, o) => {
|
|
1118
|
+
const i = r.value;
|
|
1119
|
+
return n.has(i) || r.issues.push({
|
|
1120
1120
|
code: "invalid_value",
|
|
1121
1121
|
values: t.values,
|
|
1122
|
-
input:
|
|
1122
|
+
input: i,
|
|
1123
1123
|
inst: e
|
|
1124
|
-
}),
|
|
1124
|
+
}), r;
|
|
1125
1125
|
};
|
|
1126
1126
|
});
|
|
1127
|
-
function
|
|
1127
|
+
function un(e, t) {
|
|
1128
1128
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1129
1129
|
}
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1130
|
+
const Pi = /* @__PURE__ */ x("$ZodOptional", (e, t) => {
|
|
1131
|
+
ne.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
|
|
1132
1132
|
const n = t.innerType._zod.pattern;
|
|
1133
|
-
return n ? new RegExp(`^(${
|
|
1134
|
-
}), e._zod.parse = (n,
|
|
1133
|
+
return n ? new RegExp(`^(${Xn(n.source)})?$`) : void 0;
|
|
1134
|
+
}), e._zod.parse = (n, r) => {
|
|
1135
1135
|
if (t.innerType._zod.optin === "optional") {
|
|
1136
|
-
const
|
|
1137
|
-
return
|
|
1136
|
+
const o = t.innerType._zod.run(n, r);
|
|
1137
|
+
return o instanceof Promise ? o.then((i) => un(i, n.value)) : un(o, 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, r);
|
|
1140
1140
|
};
|
|
1141
1141
|
});
|
|
1142
1142
|
// @__NO_SIDE_EFFECTS__
|
|
1143
|
-
function
|
|
1143
|
+
function Ni(e, t) {
|
|
1144
1144
|
return new e({
|
|
1145
1145
|
type: "string",
|
|
1146
|
-
...
|
|
1146
|
+
...be()
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
// @__NO_SIDE_EFFECTS__
|
|
1150
|
-
function
|
|
1150
|
+
function Oi(e, t) {
|
|
1151
1151
|
return new e({
|
|
1152
1152
|
type: "boolean",
|
|
1153
|
-
...
|
|
1153
|
+
...be()
|
|
1154
1154
|
});
|
|
1155
1155
|
}
|
|
1156
|
-
const
|
|
1156
|
+
const ue = /* @__PURE__ */ x("ZodMiniType", (e, t) => {
|
|
1157
1157
|
if (!e._zod)
|
|
1158
1158
|
throw new Error("Uninitialized schema in ZodMiniType.");
|
|
1159
|
-
|
|
1159
|
+
ne.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => ci(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => er(e, n, r), e.parseAsync = async (n, r) => ui(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => tr(e, n, r), e.check = (...n) => e.clone({
|
|
1160
1160
|
...t,
|
|
1161
1161
|
checks: [
|
|
1162
1162
|
...t.checks ?? [],
|
|
1163
|
-
...n.map((
|
|
1163
|
+
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
1164
1164
|
]
|
|
1165
|
-
}, { parent: !0 }), e.with = e.check, e.clone = (n,
|
|
1166
|
-
}),
|
|
1167
|
-
|
|
1165
|
+
}, { parent: !0 }), e.with = e.check, e.clone = (n, r) => ri(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
|
|
1166
|
+
}), Ai = /* @__PURE__ */ x("ZodMiniString", (e, t) => {
|
|
1167
|
+
hi.init(e, t), ue.init(e, t);
|
|
1168
1168
|
});
|
|
1169
1169
|
// @__NO_SIDE_EFFECTS__
|
|
1170
|
-
function
|
|
1171
|
-
return /* @__PURE__ */
|
|
1170
|
+
function oe(e) {
|
|
1171
|
+
return /* @__PURE__ */ Ni(Ai);
|
|
1172
1172
|
}
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1173
|
+
const Ri = /* @__PURE__ */ x("ZodMiniBoolean", (e, t) => {
|
|
1174
|
+
mi.init(e, t), ue.init(e, t);
|
|
1175
1175
|
});
|
|
1176
1176
|
// @__NO_SIDE_EFFECTS__
|
|
1177
|
-
function
|
|
1178
|
-
return /* @__PURE__ */
|
|
1177
|
+
function Re(e) {
|
|
1178
|
+
return /* @__PURE__ */ Oi(Ri);
|
|
1179
1179
|
}
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1180
|
+
const Ii = /* @__PURE__ */ x("ZodMiniObject", (e, t) => {
|
|
1181
|
+
bi.init(e, t), ue.init(e, t), Z(e, "shape", () => t.shape);
|
|
1182
1182
|
});
|
|
1183
1183
|
// @__NO_SIDE_EFFECTS__
|
|
1184
|
-
function
|
|
1184
|
+
function nr(e, t) {
|
|
1185
1185
|
const n = {
|
|
1186
1186
|
type: "object",
|
|
1187
1187
|
shape: e ?? {},
|
|
1188
|
-
...
|
|
1188
|
+
...be()
|
|
1189
1189
|
};
|
|
1190
|
-
return new
|
|
1190
|
+
return new Ii(n);
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1193
|
-
|
|
1192
|
+
const Ti = /* @__PURE__ */ x("ZodMiniDiscriminatedUnion", (e, t) => {
|
|
1193
|
+
Si.init(e, t), ue.init(e, t);
|
|
1194
1194
|
});
|
|
1195
1195
|
// @__NO_SIDE_EFFECTS__
|
|
1196
|
-
function
|
|
1197
|
-
return new
|
|
1196
|
+
function ki(e, t, n) {
|
|
1197
|
+
return new Ti({
|
|
1198
1198
|
type: "union",
|
|
1199
1199
|
options: t,
|
|
1200
1200
|
discriminator: e,
|
|
1201
|
-
...
|
|
1201
|
+
...be()
|
|
1202
1202
|
});
|
|
1203
1203
|
}
|
|
1204
|
-
const
|
|
1205
|
-
|
|
1204
|
+
const Di = /* @__PURE__ */ x("ZodMiniRecord", (e, t) => {
|
|
1205
|
+
wi.init(e, t), ue.init(e, t);
|
|
1206
1206
|
});
|
|
1207
1207
|
// @__NO_SIDE_EFFECTS__
|
|
1208
|
-
function
|
|
1209
|
-
return new
|
|
1208
|
+
function xi(e, t, n) {
|
|
1209
|
+
return new Di({
|
|
1210
1210
|
type: "record",
|
|
1211
1211
|
keyType: e,
|
|
1212
1212
|
valueType: t,
|
|
1213
|
-
...
|
|
1213
|
+
...be()
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1216
|
+
const Mi = /* @__PURE__ */ x("ZodMiniLiteral", (e, t) => {
|
|
1217
|
+
Ei.init(e, t), ue.init(e, t);
|
|
1218
1218
|
});
|
|
1219
1219
|
// @__NO_SIDE_EFFECTS__
|
|
1220
|
-
function
|
|
1221
|
-
return new
|
|
1220
|
+
function rr(e, t) {
|
|
1221
|
+
return new Mi({
|
|
1222
1222
|
type: "literal",
|
|
1223
1223
|
values: Array.isArray(e) ? e : [e],
|
|
1224
|
-
...
|
|
1224
|
+
...be()
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
|
-
const
|
|
1228
|
-
|
|
1227
|
+
const zi = /* @__PURE__ */ x("ZodMiniOptional", (e, t) => {
|
|
1228
|
+
Pi.init(e, t), ue.init(e, t);
|
|
1229
1229
|
});
|
|
1230
1230
|
// @__NO_SIDE_EFFECTS__
|
|
1231
|
-
function
|
|
1232
|
-
return new
|
|
1231
|
+
function J(e) {
|
|
1232
|
+
return new zi({
|
|
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 $i = /* @__PURE__ */ nr({
|
|
1238
|
+
variant: /* @__PURE__ */ rr("remote"),
|
|
1239
|
+
type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
|
|
1240
|
+
src: /* @__PURE__ */ oe(),
|
|
1241
|
+
async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
|
|
1242
|
+
defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
|
|
1243
|
+
crossorigin: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
|
|
1244
|
+
integrity: /* @__PURE__ */ J(/* @__PURE__ */ oe())
|
|
1245
|
+
}), Li = /* @__PURE__ */ nr({
|
|
1246
|
+
variant: /* @__PURE__ */ rr("inline"),
|
|
1247
|
+
type: /* @__PURE__ */ J(/* @__PURE__ */ oe()),
|
|
1248
|
+
async: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
|
|
1249
|
+
defer: /* @__PURE__ */ J(/* @__PURE__ */ Re()),
|
|
1250
|
+
content: /* @__PURE__ */ oe()
|
|
1251
|
+
}), Fi = /* @__PURE__ */ ki("variant", [
|
|
1252
|
+
$i,
|
|
1253
|
+
Li
|
|
1254
1254
|
]);
|
|
1255
|
-
function
|
|
1255
|
+
function Ui(e, t) {
|
|
1256
|
+
const n = ee(t), r = (i) => {
|
|
1257
|
+
const { children: c, ...s } = i, a = D(() => s, Object.values(s));
|
|
1258
|
+
return /* @__PURE__ */ p(n.Provider, { value: a, children: c });
|
|
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 = []) {
|
|
1256
1270
|
let n = [];
|
|
1257
|
-
function
|
|
1258
|
-
const
|
|
1271
|
+
function r(i, c) {
|
|
1272
|
+
const s = ee(c), a = n.length;
|
|
1259
1273
|
n = [...n, c];
|
|
1260
1274
|
const u = (d) => {
|
|
1261
|
-
const { scope: _, children: m, ...
|
|
1262
|
-
return /* @__PURE__ */ f
|
|
1275
|
+
const { scope: _, children: m, ...g } = d, f = _?.[e]?.[a] || s, v = D(() => g, Object.values(g));
|
|
1276
|
+
return /* @__PURE__ */ p(f.Provider, { value: v, children: m });
|
|
1263
1277
|
};
|
|
1264
|
-
u.displayName =
|
|
1278
|
+
u.displayName = i + "Provider";
|
|
1265
1279
|
function l(d, _) {
|
|
1266
|
-
const m = _?.[e]?.[a] ||
|
|
1267
|
-
if (
|
|
1280
|
+
const m = _?.[e]?.[a] || s, g = Y(m);
|
|
1281
|
+
if (g) return g;
|
|
1268
1282
|
if (c !== void 0) return c;
|
|
1269
|
-
throw new Error(`\`${d}\` must be used within \`${
|
|
1283
|
+
throw new Error(`\`${d}\` must be used within \`${i}\``);
|
|
1270
1284
|
}
|
|
1271
1285
|
return [u, l];
|
|
1272
1286
|
}
|
|
1273
|
-
const
|
|
1274
|
-
const
|
|
1275
|
-
return function(
|
|
1276
|
-
const a =
|
|
1277
|
-
return
|
|
1278
|
-
() => ({ [`__scope${e}`]: { ...
|
|
1279
|
-
[
|
|
1287
|
+
const o = () => {
|
|
1288
|
+
const i = n.map((c) => ee(c));
|
|
1289
|
+
return function(s) {
|
|
1290
|
+
const a = s?.[e] || i;
|
|
1291
|
+
return D(
|
|
1292
|
+
() => ({ [`__scope${e}`]: { ...s, [e]: a } }),
|
|
1293
|
+
[s, a]
|
|
1280
1294
|
);
|
|
1281
1295
|
};
|
|
1282
1296
|
};
|
|
1283
|
-
return
|
|
1297
|
+
return o.scopeName = e, [r, ji(o, ...t)];
|
|
1284
1298
|
}
|
|
1285
|
-
function
|
|
1299
|
+
function ji(...e) {
|
|
1286
1300
|
const t = e[0];
|
|
1287
1301
|
if (e.length === 1) return t;
|
|
1288
1302
|
const n = () => {
|
|
1289
|
-
const
|
|
1290
|
-
useScope:
|
|
1291
|
-
scopeName:
|
|
1303
|
+
const r = e.map((o) => ({
|
|
1304
|
+
useScope: o(),
|
|
1305
|
+
scopeName: o.scopeName
|
|
1292
1306
|
}));
|
|
1293
|
-
return function(
|
|
1294
|
-
const c =
|
|
1295
|
-
const d = a(
|
|
1296
|
-
return { ...
|
|
1307
|
+
return function(i) {
|
|
1308
|
+
const c = r.reduce((s, { useScope: a, scopeName: u }) => {
|
|
1309
|
+
const d = a(i)[`__scope${u}`];
|
|
1310
|
+
return { ...s, ...d };
|
|
1297
1311
|
}, {});
|
|
1298
|
-
return
|
|
1312
|
+
return D(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
|
|
1299
1313
|
};
|
|
1300
1314
|
};
|
|
1301
1315
|
return n.scopeName = t.scopeName, n;
|
|
1302
1316
|
}
|
|
1303
|
-
function
|
|
1317
|
+
function ln(e, t) {
|
|
1304
1318
|
if (typeof e == "function")
|
|
1305
1319
|
return e(t);
|
|
1306
1320
|
e != null && (e.current = t);
|
|
1307
1321
|
}
|
|
1308
|
-
function
|
|
1322
|
+
function or(...e) {
|
|
1309
1323
|
return (t) => {
|
|
1310
1324
|
let n = !1;
|
|
1311
|
-
const
|
|
1312
|
-
const
|
|
1313
|
-
return !n && typeof
|
|
1325
|
+
const r = e.map((o) => {
|
|
1326
|
+
const i = ln(o, t);
|
|
1327
|
+
return !n && typeof i == "function" && (n = !0), i;
|
|
1314
1328
|
});
|
|
1315
1329
|
if (n)
|
|
1316
1330
|
return () => {
|
|
1317
|
-
for (let
|
|
1318
|
-
const
|
|
1319
|
-
typeof
|
|
1331
|
+
for (let o = 0; o < r.length; o++) {
|
|
1332
|
+
const i = r[o];
|
|
1333
|
+
typeof i == "function" ? i() : ln(e[o], null);
|
|
1320
1334
|
}
|
|
1321
1335
|
};
|
|
1322
1336
|
};
|
|
1323
1337
|
}
|
|
1324
|
-
function
|
|
1325
|
-
return
|
|
1338
|
+
function L(...e) {
|
|
1339
|
+
return M(or(...e), e);
|
|
1326
1340
|
}
|
|
1327
1341
|
// @__NO_SIDE_EFFECTS__
|
|
1328
|
-
function
|
|
1329
|
-
const t = /* @__PURE__ */
|
|
1330
|
-
const { children:
|
|
1342
|
+
function Ye(e) {
|
|
1343
|
+
const t = /* @__PURE__ */ Wi(e), n = P((r, o) => {
|
|
1344
|
+
const { children: i, ...c } = r, s = K.toArray(i), a = s.find(Hi);
|
|
1331
1345
|
if (a) {
|
|
1332
|
-
const u = a.props.children, l =
|
|
1333
|
-
return /* @__PURE__ */
|
|
1346
|
+
const u = a.props.children, l = s.map((d) => d === a ? K.count(u) > 1 ? K.only(null) : G(u) ? u.props.children : null : d);
|
|
1347
|
+
return /* @__PURE__ */ p(t, { ...c, ref: o, children: G(u) ? ge(u, void 0, l) : null });
|
|
1334
1348
|
}
|
|
1335
|
-
return /* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ p(t, { ...c, ref: o, children: i });
|
|
1336
1350
|
});
|
|
1337
1351
|
return n.displayName = `${e}.Slot`, n;
|
|
1338
1352
|
}
|
|
1339
1353
|
// @__NO_SIDE_EFFECTS__
|
|
1340
|
-
function
|
|
1341
|
-
const t =
|
|
1342
|
-
const { children:
|
|
1343
|
-
if (
|
|
1344
|
-
const c =
|
|
1345
|
-
return
|
|
1354
|
+
function Wi(e) {
|
|
1355
|
+
const t = P((n, r) => {
|
|
1356
|
+
const { children: o, ...i } = n;
|
|
1357
|
+
if (G(o)) {
|
|
1358
|
+
const c = Vi(o), s = Zi(i, o.props);
|
|
1359
|
+
return o.type !== W && (s.ref = r ? or(r, c) : c), ge(o, s);
|
|
1346
1360
|
}
|
|
1347
|
-
return
|
|
1361
|
+
return K.count(o) > 1 ? K.only(null) : null;
|
|
1348
1362
|
});
|
|
1349
1363
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1350
1364
|
}
|
|
1351
|
-
var
|
|
1352
|
-
function
|
|
1353
|
-
return
|
|
1365
|
+
var Bi = /* @__PURE__ */ Symbol("radix.slottable");
|
|
1366
|
+
function Hi(e) {
|
|
1367
|
+
return G(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Bi;
|
|
1354
1368
|
}
|
|
1355
|
-
function
|
|
1369
|
+
function Zi(e, t) {
|
|
1356
1370
|
const n = { ...t };
|
|
1357
|
-
for (const
|
|
1358
|
-
const
|
|
1359
|
-
/^on[A-Z]/.test(
|
|
1360
|
-
const a =
|
|
1361
|
-
return
|
|
1362
|
-
} :
|
|
1371
|
+
for (const r in t) {
|
|
1372
|
+
const o = e[r], i = t[r];
|
|
1373
|
+
/^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
|
|
1374
|
+
const a = i(...s);
|
|
1375
|
+
return o(...s), a;
|
|
1376
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
|
|
1363
1377
|
}
|
|
1364
1378
|
return { ...e, ...n };
|
|
1365
1379
|
}
|
|
1366
|
-
function
|
|
1380
|
+
function Vi(e) {
|
|
1367
1381
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1368
1382
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1369
1383
|
}
|
|
1370
|
-
function
|
|
1371
|
-
const t = e + "CollectionProvider", [n,
|
|
1384
|
+
function Ki(e) {
|
|
1385
|
+
const t = e + "CollectionProvider", [n, r] = ke(t), [o, i] = n(
|
|
1372
1386
|
t,
|
|
1373
1387
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
1374
|
-
), c = (
|
|
1375
|
-
const { scope:
|
|
1376
|
-
return /* @__PURE__ */
|
|
1388
|
+
), c = (f) => {
|
|
1389
|
+
const { scope: v, children: h } = f, y = I.useRef(null), b = I.useRef(/* @__PURE__ */ new Map()).current;
|
|
1390
|
+
return /* @__PURE__ */ p(o, { scope: v, itemMap: b, collectionRef: y, children: h });
|
|
1377
1391
|
};
|
|
1378
1392
|
c.displayName = t;
|
|
1379
|
-
const
|
|
1380
|
-
(
|
|
1381
|
-
const { scope:
|
|
1382
|
-
return /* @__PURE__ */
|
|
1393
|
+
const s = e + "CollectionSlot", a = /* @__PURE__ */ Ye(s), u = I.forwardRef(
|
|
1394
|
+
(f, v) => {
|
|
1395
|
+
const { scope: h, children: y } = f, b = i(s, h), C = L(v, b.collectionRef);
|
|
1396
|
+
return /* @__PURE__ */ p(a, { ref: C, children: y });
|
|
1383
1397
|
}
|
|
1384
1398
|
);
|
|
1385
|
-
u.displayName =
|
|
1386
|
-
const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */
|
|
1387
|
-
(
|
|
1388
|
-
const { scope:
|
|
1389
|
-
return
|
|
1390
|
-
|
|
1391
|
-
})), /* @__PURE__ */
|
|
1399
|
+
u.displayName = s;
|
|
1400
|
+
const l = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Ye(l), m = I.forwardRef(
|
|
1401
|
+
(f, v) => {
|
|
1402
|
+
const { scope: h, children: y, ...b } = f, C = I.useRef(null), O = L(v, C), k = i(l, h);
|
|
1403
|
+
return I.useEffect(() => (k.itemMap.set(C, { ref: C, ...b }), () => {
|
|
1404
|
+
k.itemMap.delete(C);
|
|
1405
|
+
})), /* @__PURE__ */ p(_, { [d]: "", ref: O, children: y });
|
|
1392
1406
|
}
|
|
1393
1407
|
);
|
|
1394
1408
|
m.displayName = l;
|
|
1395
|
-
function
|
|
1396
|
-
const
|
|
1397
|
-
return
|
|
1398
|
-
const y =
|
|
1409
|
+
function g(f) {
|
|
1410
|
+
const v = i(e + "CollectionConsumer", f);
|
|
1411
|
+
return I.useCallback(() => {
|
|
1412
|
+
const y = v.collectionRef.current;
|
|
1399
1413
|
if (!y) return [];
|
|
1400
1414
|
const b = Array.from(y.querySelectorAll(`[${d}]`));
|
|
1401
|
-
return Array.from(
|
|
1402
|
-
(
|
|
1415
|
+
return Array.from(v.itemMap.values()).sort(
|
|
1416
|
+
(k, w) => b.indexOf(k.ref.current) - b.indexOf(w.ref.current)
|
|
1403
1417
|
);
|
|
1404
|
-
}, [
|
|
1418
|
+
}, [v.collectionRef, v.itemMap]);
|
|
1405
1419
|
}
|
|
1406
1420
|
return [
|
|
1407
1421
|
{ Provider: c, Slot: u, ItemSlot: m },
|
|
1408
|
-
|
|
1409
|
-
|
|
1422
|
+
g,
|
|
1423
|
+
r
|
|
1410
1424
|
];
|
|
1411
1425
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return function(
|
|
1414
|
-
if (e?.(
|
|
1415
|
-
return t?.(
|
|
1426
|
+
function j(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1427
|
+
return function(o) {
|
|
1428
|
+
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
1429
|
+
return t?.(o);
|
|
1416
1430
|
};
|
|
1417
1431
|
}
|
|
1418
|
-
var
|
|
1419
|
-
},
|
|
1420
|
-
function
|
|
1432
|
+
var me = globalThis?.document ? te : () => {
|
|
1433
|
+
}, qi = qn[" useInsertionEffect ".trim().toString()] || me;
|
|
1434
|
+
function De({
|
|
1421
1435
|
prop: e,
|
|
1422
1436
|
defaultProp: t,
|
|
1423
1437
|
onChange: n = () => {
|
|
1424
1438
|
},
|
|
1425
|
-
caller:
|
|
1439
|
+
caller: r
|
|
1426
1440
|
}) {
|
|
1427
|
-
const [
|
|
1441
|
+
const [o, i, c] = Gi({
|
|
1428
1442
|
defaultProp: t,
|
|
1429
1443
|
onChange: n
|
|
1430
|
-
}),
|
|
1444
|
+
}), s = e !== void 0, a = s ? e : o;
|
|
1431
1445
|
{
|
|
1432
|
-
const l =
|
|
1433
|
-
|
|
1446
|
+
const l = S(e !== void 0);
|
|
1447
|
+
E(() => {
|
|
1434
1448
|
const d = l.current;
|
|
1435
|
-
d !==
|
|
1436
|
-
`${
|
|
1437
|
-
), l.current =
|
|
1438
|
-
}, [
|
|
1449
|
+
d !== s && console.warn(
|
|
1450
|
+
`${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
1451
|
+
), l.current = s;
|
|
1452
|
+
}, [s, r]);
|
|
1439
1453
|
}
|
|
1440
|
-
const u =
|
|
1454
|
+
const u = M(
|
|
1441
1455
|
(l) => {
|
|
1442
|
-
if (
|
|
1443
|
-
const d =
|
|
1456
|
+
if (s) {
|
|
1457
|
+
const d = Yi(l) ? l(e) : l;
|
|
1444
1458
|
d !== e && c.current?.(d);
|
|
1445
1459
|
} else
|
|
1446
|
-
|
|
1460
|
+
i(l);
|
|
1447
1461
|
},
|
|
1448
|
-
[
|
|
1462
|
+
[s, e, i, c]
|
|
1449
1463
|
);
|
|
1450
1464
|
return [a, u];
|
|
1451
1465
|
}
|
|
1452
|
-
function
|
|
1466
|
+
function Gi({
|
|
1453
1467
|
defaultProp: e,
|
|
1454
1468
|
onChange: t
|
|
1455
1469
|
}) {
|
|
1456
|
-
const [n,
|
|
1457
|
-
return
|
|
1458
|
-
|
|
1459
|
-
}, [t]),
|
|
1460
|
-
|
|
1461
|
-
}, [n,
|
|
1462
|
-
}
|
|
1463
|
-
function
|
|
1470
|
+
const [n, r] = R(e), o = S(n), i = S(t);
|
|
1471
|
+
return qi(() => {
|
|
1472
|
+
i.current = t;
|
|
1473
|
+
}, [t]), E(() => {
|
|
1474
|
+
o.current !== n && (i.current?.(n), o.current = n);
|
|
1475
|
+
}, [n, o]), [n, r, i];
|
|
1476
|
+
}
|
|
1477
|
+
function Yi(e) {
|
|
1464
1478
|
return typeof e == "function";
|
|
1465
1479
|
}
|
|
1466
|
-
var
|
|
1480
|
+
var Xi = [
|
|
1467
1481
|
"a",
|
|
1468
1482
|
"button",
|
|
1469
1483
|
"div",
|
|
@@ -1481,23 +1495,26 @@ var Rr = [
|
|
|
1481
1495
|
"span",
|
|
1482
1496
|
"svg",
|
|
1483
1497
|
"ul"
|
|
1484
|
-
],
|
|
1485
|
-
const n = /* @__PURE__ */
|
|
1486
|
-
const { asChild: c, ...
|
|
1487
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
1498
|
+
], $ = Xi.reduce((e, t) => {
|
|
1499
|
+
const n = /* @__PURE__ */ Ye(`Primitive.${t}`), r = P((o, i) => {
|
|
1500
|
+
const { asChild: c, ...s } = o, a = c ? n : t;
|
|
1501
|
+
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(a, { ...s, ref: i });
|
|
1488
1502
|
});
|
|
1489
|
-
return
|
|
1503
|
+
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
1490
1504
|
}, {});
|
|
1491
|
-
function
|
|
1492
|
-
|
|
1505
|
+
function Ji(e, t) {
|
|
1506
|
+
e && kt(() => e.dispatchEvent(t));
|
|
1507
|
+
}
|
|
1508
|
+
function Qi(e, t) {
|
|
1509
|
+
return Te((n, r) => t[n][r] ?? n, e);
|
|
1493
1510
|
}
|
|
1494
|
-
var
|
|
1495
|
-
const { present: t, children: n } = e,
|
|
1496
|
-
return typeof n == "function" ||
|
|
1511
|
+
var et = (e) => {
|
|
1512
|
+
const { present: t, children: n } = e, r = es(t), o = typeof n == "function" ? n({ present: r.isPresent }) : K.only(n), i = L(r.ref, ts(o));
|
|
1513
|
+
return typeof n == "function" || r.isPresent ? ge(o, { ref: i }) : null;
|
|
1497
1514
|
};
|
|
1498
|
-
|
|
1499
|
-
function
|
|
1500
|
-
const [t, n] =
|
|
1515
|
+
et.displayName = "Presence";
|
|
1516
|
+
function es(e) {
|
|
1517
|
+
const [t, n] = R(), r = S(null), o = S(e), i = S("none"), c = e ? "mounted" : "unmounted", [s, a] = Qi(c, {
|
|
1501
1518
|
mounted: {
|
|
1502
1519
|
UNMOUNT: "unmounted",
|
|
1503
1520
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -1510,28 +1527,28 @@ function $r(e) {
|
|
|
1510
1527
|
MOUNT: "mounted"
|
|
1511
1528
|
}
|
|
1512
1529
|
});
|
|
1513
|
-
return
|
|
1514
|
-
const u =
|
|
1515
|
-
|
|
1516
|
-
}, [
|
|
1517
|
-
const u =
|
|
1530
|
+
return E(() => {
|
|
1531
|
+
const u = $e(r.current);
|
|
1532
|
+
i.current = s === "mounted" ? u : "none";
|
|
1533
|
+
}, [s]), me(() => {
|
|
1534
|
+
const u = r.current, l = o.current;
|
|
1518
1535
|
if (l !== e) {
|
|
1519
|
-
const _ =
|
|
1520
|
-
e ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"),
|
|
1536
|
+
const _ = i.current, m = $e(u);
|
|
1537
|
+
e ? a("MOUNT") : m === "none" || u?.display === "none" ? a("UNMOUNT") : a(l && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
1521
1538
|
}
|
|
1522
|
-
}, [e, a]),
|
|
1539
|
+
}, [e, a]), me(() => {
|
|
1523
1540
|
if (t) {
|
|
1524
1541
|
let u;
|
|
1525
1542
|
const l = t.ownerDocument.defaultView ?? window, d = (m) => {
|
|
1526
|
-
const
|
|
1527
|
-
if (m.target === t &&
|
|
1528
|
-
const
|
|
1543
|
+
const f = $e(r.current).includes(CSS.escape(m.animationName));
|
|
1544
|
+
if (m.target === t && f && (a("ANIMATION_END"), !o.current)) {
|
|
1545
|
+
const v = t.style.animationFillMode;
|
|
1529
1546
|
t.style.animationFillMode = "forwards", u = l.setTimeout(() => {
|
|
1530
|
-
t.style.animationFillMode === "forwards" && (t.style.animationFillMode =
|
|
1547
|
+
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
|
|
1531
1548
|
});
|
|
1532
1549
|
}
|
|
1533
1550
|
}, _ = (m) => {
|
|
1534
|
-
m.target === t && (
|
|
1551
|
+
m.target === t && (i.current = $e(r.current));
|
|
1535
1552
|
};
|
|
1536
1553
|
return t.addEventListener("animationstart", _), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
1537
1554
|
l.clearTimeout(u), t.removeEventListener("animationstart", _), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
@@ -1539,56 +1556,56 @@ function $r(e) {
|
|
|
1539
1556
|
} else
|
|
1540
1557
|
a("ANIMATION_END");
|
|
1541
1558
|
}, [t, a]), {
|
|
1542
|
-
isPresent: ["mounted", "unmountSuspended"].includes(
|
|
1543
|
-
ref:
|
|
1544
|
-
|
|
1559
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
1560
|
+
ref: M((u) => {
|
|
1561
|
+
r.current = u ? getComputedStyle(u) : null, n(u);
|
|
1545
1562
|
}, [])
|
|
1546
1563
|
};
|
|
1547
1564
|
}
|
|
1548
|
-
function
|
|
1565
|
+
function $e(e) {
|
|
1549
1566
|
return e?.animationName || "none";
|
|
1550
1567
|
}
|
|
1551
|
-
function
|
|
1568
|
+
function ts(e) {
|
|
1552
1569
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
1553
1570
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
1554
1571
|
}
|
|
1555
|
-
var
|
|
1556
|
-
}),
|
|
1557
|
-
function
|
|
1558
|
-
const [t, n] =
|
|
1559
|
-
return
|
|
1560
|
-
n((
|
|
1561
|
-
}, [e]), t ? `radix-${t}` : "";
|
|
1572
|
+
var ns = qn[" useId ".trim().toString()] || (() => {
|
|
1573
|
+
}), rs = 0;
|
|
1574
|
+
function Oe(e) {
|
|
1575
|
+
const [t, n] = R(ns());
|
|
1576
|
+
return me(() => {
|
|
1577
|
+
n((r) => r ?? String(rs++));
|
|
1578
|
+
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1562
1579
|
}
|
|
1563
|
-
var
|
|
1580
|
+
var tt = "Collapsible", [os, ir] = ke(tt), [is, Dt] = os(tt), sr = P(
|
|
1564
1581
|
(e, t) => {
|
|
1565
1582
|
const {
|
|
1566
1583
|
__scopeCollapsible: n,
|
|
1567
|
-
open:
|
|
1568
|
-
defaultOpen:
|
|
1569
|
-
disabled:
|
|
1584
|
+
open: r,
|
|
1585
|
+
defaultOpen: o,
|
|
1586
|
+
disabled: i,
|
|
1570
1587
|
onOpenChange: c,
|
|
1571
|
-
...
|
|
1572
|
-
} = e, [a, u] =
|
|
1573
|
-
prop:
|
|
1574
|
-
defaultProp:
|
|
1588
|
+
...s
|
|
1589
|
+
} = e, [a, u] = De({
|
|
1590
|
+
prop: r,
|
|
1591
|
+
defaultProp: o ?? !1,
|
|
1575
1592
|
onChange: c,
|
|
1576
|
-
caller:
|
|
1593
|
+
caller: tt
|
|
1577
1594
|
});
|
|
1578
|
-
return /* @__PURE__ */
|
|
1579
|
-
|
|
1595
|
+
return /* @__PURE__ */ p(
|
|
1596
|
+
is,
|
|
1580
1597
|
{
|
|
1581
1598
|
scope: n,
|
|
1582
|
-
disabled:
|
|
1583
|
-
contentId:
|
|
1599
|
+
disabled: i,
|
|
1600
|
+
contentId: Oe(),
|
|
1584
1601
|
open: a,
|
|
1585
|
-
onOpenToggle:
|
|
1586
|
-
children: /* @__PURE__ */
|
|
1587
|
-
|
|
1602
|
+
onOpenToggle: M(() => u((l) => !l), [u]),
|
|
1603
|
+
children: /* @__PURE__ */ p(
|
|
1604
|
+
$.div,
|
|
1588
1605
|
{
|
|
1589
|
-
"data-state":
|
|
1590
|
-
"data-disabled":
|
|
1591
|
-
...
|
|
1606
|
+
"data-state": Mt(a),
|
|
1607
|
+
"data-disabled": i ? "" : void 0,
|
|
1608
|
+
...s,
|
|
1592
1609
|
ref: t
|
|
1593
1610
|
}
|
|
1594
1611
|
)
|
|
@@ -1596,220 +1613,220 @@ var ke = "Collapsible", [Dr, _n] = Oe(ke), [jr, et] = Dr(ke), pn = E(
|
|
|
1596
1613
|
);
|
|
1597
1614
|
}
|
|
1598
1615
|
);
|
|
1599
|
-
|
|
1600
|
-
var
|
|
1616
|
+
sr.displayName = tt;
|
|
1617
|
+
var cr = "CollapsibleTrigger", ar = P(
|
|
1601
1618
|
(e, t) => {
|
|
1602
|
-
const { __scopeCollapsible: n, ...
|
|
1603
|
-
return /* @__PURE__ */
|
|
1604
|
-
|
|
1619
|
+
const { __scopeCollapsible: n, ...r } = e, o = Dt(cr, n);
|
|
1620
|
+
return /* @__PURE__ */ p(
|
|
1621
|
+
$.button,
|
|
1605
1622
|
{
|
|
1606
1623
|
type: "button",
|
|
1607
|
-
"aria-controls":
|
|
1608
|
-
"aria-expanded":
|
|
1609
|
-
"data-state":
|
|
1610
|
-
"data-disabled":
|
|
1611
|
-
disabled:
|
|
1612
|
-
...
|
|
1624
|
+
"aria-controls": o.contentId,
|
|
1625
|
+
"aria-expanded": o.open || !1,
|
|
1626
|
+
"data-state": Mt(o.open),
|
|
1627
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
1628
|
+
disabled: o.disabled,
|
|
1629
|
+
...r,
|
|
1613
1630
|
ref: t,
|
|
1614
|
-
onClick:
|
|
1631
|
+
onClick: j(e.onClick, o.onOpenToggle)
|
|
1615
1632
|
}
|
|
1616
1633
|
);
|
|
1617
1634
|
}
|
|
1618
1635
|
);
|
|
1619
|
-
|
|
1620
|
-
var
|
|
1636
|
+
ar.displayName = cr;
|
|
1637
|
+
var xt = "CollapsibleContent", ur = P(
|
|
1621
1638
|
(e, t) => {
|
|
1622
|
-
const { forceMount: n, ...
|
|
1623
|
-
return /* @__PURE__ */
|
|
1639
|
+
const { forceMount: n, ...r } = e, o = Dt(xt, e.__scopeCollapsible);
|
|
1640
|
+
return /* @__PURE__ */ p(et, { present: n || o.open, children: ({ present: i }) => /* @__PURE__ */ p(ss, { ...r, ref: t, present: i }) });
|
|
1624
1641
|
}
|
|
1625
1642
|
);
|
|
1626
|
-
|
|
1627
|
-
var
|
|
1628
|
-
const { __scopeCollapsible: n, present:
|
|
1629
|
-
return
|
|
1630
|
-
const y = requestAnimationFrame(() =>
|
|
1643
|
+
ur.displayName = xt;
|
|
1644
|
+
var ss = P((e, t) => {
|
|
1645
|
+
const { __scopeCollapsible: n, present: r, children: o, ...i } = e, c = Dt(xt, n), [s, a] = R(r), u = S(null), l = L(t, u), d = S(0), _ = d.current, m = S(0), g = m.current, f = c.open || s, v = S(f), h = S(void 0);
|
|
1646
|
+
return E(() => {
|
|
1647
|
+
const y = requestAnimationFrame(() => v.current = !1);
|
|
1631
1648
|
return () => cancelAnimationFrame(y);
|
|
1632
|
-
}, []),
|
|
1649
|
+
}, []), me(() => {
|
|
1633
1650
|
const y = u.current;
|
|
1634
1651
|
if (y) {
|
|
1635
|
-
|
|
1652
|
+
h.current = h.current || {
|
|
1636
1653
|
transitionDuration: y.style.transitionDuration,
|
|
1637
1654
|
animationName: y.style.animationName
|
|
1638
1655
|
}, y.style.transitionDuration = "0s", y.style.animationName = "none";
|
|
1639
1656
|
const b = y.getBoundingClientRect();
|
|
1640
|
-
d.current = b.height, m.current = b.width,
|
|
1657
|
+
d.current = b.height, m.current = b.width, v.current || (y.style.transitionDuration = h.current.transitionDuration, y.style.animationName = h.current.animationName), a(r);
|
|
1641
1658
|
}
|
|
1642
|
-
}, [c.open,
|
|
1643
|
-
|
|
1659
|
+
}, [c.open, r]), /* @__PURE__ */ p(
|
|
1660
|
+
$.div,
|
|
1644
1661
|
{
|
|
1645
|
-
"data-state":
|
|
1662
|
+
"data-state": Mt(c.open),
|
|
1646
1663
|
"data-disabled": c.disabled ? "" : void 0,
|
|
1647
1664
|
id: c.contentId,
|
|
1648
|
-
hidden: !
|
|
1649
|
-
...
|
|
1665
|
+
hidden: !f,
|
|
1666
|
+
...i,
|
|
1650
1667
|
ref: l,
|
|
1651
1668
|
style: {
|
|
1652
1669
|
"--radix-collapsible-content-height": _ ? `${_}px` : void 0,
|
|
1653
|
-
"--radix-collapsible-content-width":
|
|
1670
|
+
"--radix-collapsible-content-width": g ? `${g}px` : void 0,
|
|
1654
1671
|
...e.style
|
|
1655
1672
|
},
|
|
1656
|
-
children:
|
|
1673
|
+
children: f && o
|
|
1657
1674
|
}
|
|
1658
1675
|
);
|
|
1659
1676
|
});
|
|
1660
|
-
function
|
|
1677
|
+
function Mt(e) {
|
|
1661
1678
|
return e ? "open" : "closed";
|
|
1662
1679
|
}
|
|
1663
|
-
var
|
|
1664
|
-
function
|
|
1665
|
-
const t =
|
|
1680
|
+
var lr = sr, dr = ar, fr = ur, cs = ee(void 0);
|
|
1681
|
+
function as(e) {
|
|
1682
|
+
const t = Y(cs);
|
|
1666
1683
|
return e || t || "ltr";
|
|
1667
1684
|
}
|
|
1668
|
-
var
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
]),
|
|
1685
|
+
var B = "Accordion", us = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [zt, ls, ds] = Ki(B), [nt] = ke(B, [
|
|
1686
|
+
ds,
|
|
1687
|
+
ir
|
|
1688
|
+
]), $t = ir(), pr = I.forwardRef(
|
|
1672
1689
|
(e, t) => {
|
|
1673
|
-
const { type: n, ...
|
|
1674
|
-
return /* @__PURE__ */
|
|
1690
|
+
const { type: n, ...r } = e, o = r, i = r;
|
|
1691
|
+
return /* @__PURE__ */ p(zt.Provider, { scope: e.__scopeAccordion, children: n === "multiple" ? /* @__PURE__ */ p(vs, { ...i, ref: t }) : /* @__PURE__ */ p(_s, { ...o, ref: t }) });
|
|
1675
1692
|
}
|
|
1676
1693
|
);
|
|
1677
|
-
|
|
1678
|
-
var [
|
|
1679
|
-
|
|
1694
|
+
pr.displayName = B;
|
|
1695
|
+
var [_r, fs] = nt(B), [vr, ps] = nt(
|
|
1696
|
+
B,
|
|
1680
1697
|
{ collapsible: !1 }
|
|
1681
|
-
),
|
|
1698
|
+
), _s = I.forwardRef(
|
|
1682
1699
|
(e, t) => {
|
|
1683
1700
|
const {
|
|
1684
1701
|
value: n,
|
|
1685
|
-
defaultValue:
|
|
1686
|
-
onValueChange:
|
|
1702
|
+
defaultValue: r,
|
|
1703
|
+
onValueChange: o = () => {
|
|
1687
1704
|
},
|
|
1688
|
-
collapsible:
|
|
1705
|
+
collapsible: i = !1,
|
|
1689
1706
|
...c
|
|
1690
|
-
} = e, [
|
|
1707
|
+
} = e, [s, a] = De({
|
|
1691
1708
|
prop: n,
|
|
1692
|
-
defaultProp:
|
|
1693
|
-
onChange:
|
|
1694
|
-
caller:
|
|
1709
|
+
defaultProp: r ?? "",
|
|
1710
|
+
onChange: o,
|
|
1711
|
+
caller: B
|
|
1695
1712
|
});
|
|
1696
|
-
return /* @__PURE__ */
|
|
1697
|
-
|
|
1713
|
+
return /* @__PURE__ */ p(
|
|
1714
|
+
_r,
|
|
1698
1715
|
{
|
|
1699
1716
|
scope: e.__scopeAccordion,
|
|
1700
|
-
value:
|
|
1717
|
+
value: I.useMemo(() => s ? [s] : [], [s]),
|
|
1701
1718
|
onItemOpen: a,
|
|
1702
|
-
onItemClose:
|
|
1703
|
-
children: /* @__PURE__ */
|
|
1719
|
+
onItemClose: I.useCallback(() => i && a(""), [i, a]),
|
|
1720
|
+
children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: i, children: /* @__PURE__ */ p(hr, { ...c, ref: t }) })
|
|
1704
1721
|
}
|
|
1705
1722
|
);
|
|
1706
1723
|
}
|
|
1707
|
-
),
|
|
1724
|
+
), vs = I.forwardRef((e, t) => {
|
|
1708
1725
|
const {
|
|
1709
1726
|
value: n,
|
|
1710
|
-
defaultValue:
|
|
1711
|
-
onValueChange:
|
|
1727
|
+
defaultValue: r,
|
|
1728
|
+
onValueChange: o = () => {
|
|
1712
1729
|
},
|
|
1713
|
-
...
|
|
1714
|
-
} = e, [c,
|
|
1730
|
+
...i
|
|
1731
|
+
} = e, [c, s] = De({
|
|
1715
1732
|
prop: n,
|
|
1716
|
-
defaultProp:
|
|
1717
|
-
onChange:
|
|
1718
|
-
caller:
|
|
1719
|
-
}), a =
|
|
1720
|
-
(l) =>
|
|
1721
|
-
[
|
|
1722
|
-
), u =
|
|
1723
|
-
(l) =>
|
|
1724
|
-
[
|
|
1733
|
+
defaultProp: r ?? [],
|
|
1734
|
+
onChange: o,
|
|
1735
|
+
caller: B
|
|
1736
|
+
}), a = I.useCallback(
|
|
1737
|
+
(l) => s((d = []) => [...d, l]),
|
|
1738
|
+
[s]
|
|
1739
|
+
), u = I.useCallback(
|
|
1740
|
+
(l) => s((d = []) => d.filter((_) => _ !== l)),
|
|
1741
|
+
[s]
|
|
1725
1742
|
);
|
|
1726
|
-
return /* @__PURE__ */
|
|
1727
|
-
|
|
1743
|
+
return /* @__PURE__ */ p(
|
|
1744
|
+
_r,
|
|
1728
1745
|
{
|
|
1729
1746
|
scope: e.__scopeAccordion,
|
|
1730
1747
|
value: c,
|
|
1731
1748
|
onItemOpen: a,
|
|
1732
1749
|
onItemClose: u,
|
|
1733
|
-
children: /* @__PURE__ */
|
|
1750
|
+
children: /* @__PURE__ */ p(vr, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ p(hr, { ...i, ref: t }) })
|
|
1734
1751
|
}
|
|
1735
1752
|
);
|
|
1736
|
-
}), [
|
|
1753
|
+
}), [hs, rt] = nt(B), hr = I.forwardRef(
|
|
1737
1754
|
(e, t) => {
|
|
1738
|
-
const { __scopeAccordion: n, disabled:
|
|
1739
|
-
if (!
|
|
1740
|
-
const
|
|
1741
|
-
if (
|
|
1755
|
+
const { __scopeAccordion: n, disabled: r, dir: o, orientation: i = "vertical", ...c } = e, s = I.useRef(null), a = L(s, t), u = ls(n), d = as(o) === "ltr", _ = j(e.onKeyDown, (m) => {
|
|
1756
|
+
if (!us.includes(m.key)) return;
|
|
1757
|
+
const g = m.target, f = u().filter((F) => !F.ref.current?.disabled), v = f.findIndex((F) => F.ref.current === g), h = f.length;
|
|
1758
|
+
if (v === -1) return;
|
|
1742
1759
|
m.preventDefault();
|
|
1743
|
-
let y =
|
|
1744
|
-
const b = 0,
|
|
1745
|
-
y =
|
|
1746
|
-
},
|
|
1747
|
-
y =
|
|
1760
|
+
let y = v;
|
|
1761
|
+
const b = 0, C = h - 1, O = () => {
|
|
1762
|
+
y = v + 1, y > C && (y = b);
|
|
1763
|
+
}, k = () => {
|
|
1764
|
+
y = v - 1, y < b && (y = C);
|
|
1748
1765
|
};
|
|
1749
1766
|
switch (m.key) {
|
|
1750
1767
|
case "Home":
|
|
1751
1768
|
y = b;
|
|
1752
1769
|
break;
|
|
1753
1770
|
case "End":
|
|
1754
|
-
y =
|
|
1771
|
+
y = C;
|
|
1755
1772
|
break;
|
|
1756
1773
|
case "ArrowRight":
|
|
1757
|
-
|
|
1774
|
+
i === "horizontal" && (d ? O() : k());
|
|
1758
1775
|
break;
|
|
1759
1776
|
case "ArrowDown":
|
|
1760
|
-
|
|
1777
|
+
i === "vertical" && O();
|
|
1761
1778
|
break;
|
|
1762
1779
|
case "ArrowLeft":
|
|
1763
|
-
|
|
1780
|
+
i === "horizontal" && (d ? k() : O());
|
|
1764
1781
|
break;
|
|
1765
1782
|
case "ArrowUp":
|
|
1766
|
-
|
|
1783
|
+
i === "vertical" && k();
|
|
1767
1784
|
break;
|
|
1768
1785
|
}
|
|
1769
|
-
const
|
|
1770
|
-
|
|
1786
|
+
const w = y % h;
|
|
1787
|
+
f[w].ref.current?.focus();
|
|
1771
1788
|
});
|
|
1772
|
-
return /* @__PURE__ */
|
|
1773
|
-
|
|
1789
|
+
return /* @__PURE__ */ p(
|
|
1790
|
+
hs,
|
|
1774
1791
|
{
|
|
1775
1792
|
scope: n,
|
|
1776
|
-
disabled:
|
|
1777
|
-
direction:
|
|
1778
|
-
orientation:
|
|
1779
|
-
children: /* @__PURE__ */
|
|
1780
|
-
|
|
1793
|
+
disabled: r,
|
|
1794
|
+
direction: o,
|
|
1795
|
+
orientation: i,
|
|
1796
|
+
children: /* @__PURE__ */ p(zt.Slot, { scope: n, children: /* @__PURE__ */ p(
|
|
1797
|
+
$.div,
|
|
1781
1798
|
{
|
|
1782
1799
|
...c,
|
|
1783
|
-
"data-orientation":
|
|
1800
|
+
"data-orientation": i,
|
|
1784
1801
|
ref: a,
|
|
1785
|
-
onKeyDown:
|
|
1802
|
+
onKeyDown: r ? void 0 : _
|
|
1786
1803
|
}
|
|
1787
1804
|
) })
|
|
1788
1805
|
}
|
|
1789
1806
|
);
|
|
1790
1807
|
}
|
|
1791
|
-
),
|
|
1808
|
+
), Xe = "AccordionItem", [ms, Lt] = nt(Xe), mr = I.forwardRef(
|
|
1792
1809
|
(e, t) => {
|
|
1793
|
-
const { __scopeAccordion: n, value:
|
|
1794
|
-
return /* @__PURE__ */
|
|
1795
|
-
|
|
1810
|
+
const { __scopeAccordion: n, value: r, ...o } = e, i = rt(Xe, n), c = fs(Xe, n), s = $t(n), a = Oe(), u = r && c.value.includes(r) || !1, l = i.disabled || e.disabled;
|
|
1811
|
+
return /* @__PURE__ */ p(
|
|
1812
|
+
ms,
|
|
1796
1813
|
{
|
|
1797
1814
|
scope: n,
|
|
1798
1815
|
open: u,
|
|
1799
1816
|
disabled: l,
|
|
1800
1817
|
triggerId: a,
|
|
1801
|
-
children: /* @__PURE__ */
|
|
1802
|
-
|
|
1818
|
+
children: /* @__PURE__ */ p(
|
|
1819
|
+
lr,
|
|
1803
1820
|
{
|
|
1804
|
-
"data-orientation":
|
|
1805
|
-
"data-state":
|
|
1806
|
-
...
|
|
1807
|
-
...
|
|
1821
|
+
"data-orientation": i.orientation,
|
|
1822
|
+
"data-state": Sr(u),
|
|
1823
|
+
...s,
|
|
1824
|
+
...o,
|
|
1808
1825
|
ref: t,
|
|
1809
1826
|
disabled: l,
|
|
1810
1827
|
open: u,
|
|
1811
1828
|
onOpenChange: (d) => {
|
|
1812
|
-
d ? c.onItemOpen(
|
|
1829
|
+
d ? c.onItemOpen(r) : c.onItemClose(r);
|
|
1813
1830
|
}
|
|
1814
1831
|
}
|
|
1815
1832
|
)
|
|
@@ -1817,51 +1834,51 @@ var [wn, Wr] = Re(x), [Sn, Fr] = Re(
|
|
|
1817
1834
|
);
|
|
1818
1835
|
}
|
|
1819
1836
|
);
|
|
1820
|
-
|
|
1821
|
-
var
|
|
1837
|
+
mr.displayName = Xe;
|
|
1838
|
+
var gr = "AccordionHeader", gs = I.forwardRef(
|
|
1822
1839
|
(e, t) => {
|
|
1823
|
-
const { __scopeAccordion: n, ...
|
|
1824
|
-
return /* @__PURE__ */
|
|
1825
|
-
|
|
1840
|
+
const { __scopeAccordion: n, ...r } = e, o = rt(B, n), i = Lt(gr, n);
|
|
1841
|
+
return /* @__PURE__ */ p(
|
|
1842
|
+
$.h3,
|
|
1826
1843
|
{
|
|
1827
|
-
"data-orientation":
|
|
1828
|
-
"data-state":
|
|
1829
|
-
"data-disabled":
|
|
1830
|
-
...
|
|
1844
|
+
"data-orientation": o.orientation,
|
|
1845
|
+
"data-state": Sr(i.open),
|
|
1846
|
+
"data-disabled": i.disabled ? "" : void 0,
|
|
1847
|
+
...r,
|
|
1831
1848
|
ref: t
|
|
1832
1849
|
}
|
|
1833
1850
|
);
|
|
1834
1851
|
}
|
|
1835
1852
|
);
|
|
1836
|
-
|
|
1837
|
-
var
|
|
1853
|
+
gs.displayName = gr;
|
|
1854
|
+
var yt = "AccordionTrigger", yr = I.forwardRef(
|
|
1838
1855
|
(e, t) => {
|
|
1839
|
-
const { __scopeAccordion: n, ...
|
|
1840
|
-
return /* @__PURE__ */
|
|
1841
|
-
|
|
1856
|
+
const { __scopeAccordion: n, ...r } = e, o = rt(B, n), i = Lt(yt, n), c = ps(yt, n), s = $t(n);
|
|
1857
|
+
return /* @__PURE__ */ p(zt.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
1858
|
+
dr,
|
|
1842
1859
|
{
|
|
1843
|
-
"aria-disabled":
|
|
1844
|
-
"data-orientation":
|
|
1845
|
-
id:
|
|
1846
|
-
...
|
|
1847
|
-
...
|
|
1860
|
+
"aria-disabled": i.open && !c.collapsible || void 0,
|
|
1861
|
+
"data-orientation": o.orientation,
|
|
1862
|
+
id: i.triggerId,
|
|
1863
|
+
...s,
|
|
1864
|
+
...r,
|
|
1848
1865
|
ref: t
|
|
1849
1866
|
}
|
|
1850
1867
|
) });
|
|
1851
1868
|
}
|
|
1852
1869
|
);
|
|
1853
|
-
|
|
1854
|
-
var
|
|
1870
|
+
yr.displayName = yt;
|
|
1871
|
+
var br = "AccordionContent", Cr = I.forwardRef(
|
|
1855
1872
|
(e, t) => {
|
|
1856
|
-
const { __scopeAccordion: n, ...
|
|
1857
|
-
return /* @__PURE__ */
|
|
1858
|
-
|
|
1873
|
+
const { __scopeAccordion: n, ...r } = e, o = rt(B, n), i = Lt(br, n), c = $t(n);
|
|
1874
|
+
return /* @__PURE__ */ p(
|
|
1875
|
+
fr,
|
|
1859
1876
|
{
|
|
1860
1877
|
role: "region",
|
|
1861
|
-
"aria-labelledby":
|
|
1862
|
-
"data-orientation":
|
|
1878
|
+
"aria-labelledby": i.triggerId,
|
|
1879
|
+
"data-orientation": o.orientation,
|
|
1863
1880
|
...c,
|
|
1864
|
-
...
|
|
1881
|
+
...r,
|
|
1865
1882
|
ref: t,
|
|
1866
1883
|
style: {
|
|
1867
1884
|
"--radix-accordion-content-height": "var(--radix-collapsible-content-height)",
|
|
@@ -1872,22 +1889,22 @@ var On = "AccordionContent", En = S.forwardRef(
|
|
|
1872
1889
|
);
|
|
1873
1890
|
}
|
|
1874
1891
|
);
|
|
1875
|
-
|
|
1876
|
-
function
|
|
1892
|
+
Cr.displayName = br;
|
|
1893
|
+
function Sr(e) {
|
|
1877
1894
|
return e ? "open" : "closed";
|
|
1878
1895
|
}
|
|
1879
|
-
var
|
|
1880
|
-
const
|
|
1881
|
-
const
|
|
1882
|
-
const
|
|
1896
|
+
var ys = pr, bs = mr, dn = yr, Cs = Cr;
|
|
1897
|
+
const wr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
|
|
1898
|
+
const Ss = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1899
|
+
const ws = (e) => e.replace(
|
|
1883
1900
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1884
|
-
(t, n,
|
|
1901
|
+
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
1885
1902
|
);
|
|
1886
|
-
const
|
|
1887
|
-
const t =
|
|
1903
|
+
const fn = (e) => {
|
|
1904
|
+
const t = ws(e);
|
|
1888
1905
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1889
1906
|
};
|
|
1890
|
-
var
|
|
1907
|
+
var Es = {
|
|
1891
1908
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1892
1909
|
width: 24,
|
|
1893
1910
|
height: 24,
|
|
@@ -1898,132 +1915,132 @@ var os = {
|
|
|
1898
1915
|
strokeLinecap: "round",
|
|
1899
1916
|
strokeLinejoin: "round"
|
|
1900
1917
|
};
|
|
1901
|
-
const
|
|
1918
|
+
const Ps = (e) => {
|
|
1902
1919
|
for (const t in e)
|
|
1903
1920
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1904
1921
|
return !0;
|
|
1905
1922
|
return !1;
|
|
1906
1923
|
};
|
|
1907
|
-
const
|
|
1924
|
+
const Ns = P(
|
|
1908
1925
|
({
|
|
1909
1926
|
color: e = "currentColor",
|
|
1910
1927
|
size: t = 24,
|
|
1911
1928
|
strokeWidth: n = 2,
|
|
1912
|
-
absoluteStrokeWidth:
|
|
1913
|
-
className:
|
|
1914
|
-
children:
|
|
1929
|
+
absoluteStrokeWidth: r,
|
|
1930
|
+
className: o = "",
|
|
1931
|
+
children: i,
|
|
1915
1932
|
iconNode: c,
|
|
1916
|
-
...
|
|
1917
|
-
}, a) =>
|
|
1933
|
+
...s
|
|
1934
|
+
}, a) => T(
|
|
1918
1935
|
"svg",
|
|
1919
1936
|
{
|
|
1920
1937
|
ref: a,
|
|
1921
|
-
...
|
|
1938
|
+
...Es,
|
|
1922
1939
|
width: t,
|
|
1923
1940
|
height: t,
|
|
1924
1941
|
stroke: e,
|
|
1925
|
-
strokeWidth:
|
|
1926
|
-
className:
|
|
1927
|
-
...!
|
|
1928
|
-
...
|
|
1942
|
+
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
1943
|
+
className: wr("lucide", o),
|
|
1944
|
+
...!i && !Ps(s) && { "aria-hidden": "true" },
|
|
1945
|
+
...s
|
|
1929
1946
|
},
|
|
1930
1947
|
[
|
|
1931
|
-
...c.map(([u, l]) =>
|
|
1932
|
-
...Array.isArray(
|
|
1948
|
+
...c.map(([u, l]) => T(u, l)),
|
|
1949
|
+
...Array.isArray(i) ? i : [i]
|
|
1933
1950
|
]
|
|
1934
1951
|
)
|
|
1935
1952
|
);
|
|
1936
|
-
const
|
|
1937
|
-
const n =
|
|
1938
|
-
({ className:
|
|
1939
|
-
ref:
|
|
1953
|
+
const Er = (e, t) => {
|
|
1954
|
+
const n = P(
|
|
1955
|
+
({ className: r, ...o }, i) => T(Ns, {
|
|
1956
|
+
ref: i,
|
|
1940
1957
|
iconNode: t,
|
|
1941
|
-
className:
|
|
1942
|
-
`lucide-${
|
|
1958
|
+
className: wr(
|
|
1959
|
+
`lucide-${Ss(fn(e))}`,
|
|
1943
1960
|
`lucide-${e}`,
|
|
1944
|
-
|
|
1961
|
+
r
|
|
1945
1962
|
),
|
|
1946
|
-
...
|
|
1963
|
+
...o
|
|
1947
1964
|
})
|
|
1948
1965
|
);
|
|
1949
|
-
return n.displayName =
|
|
1966
|
+
return n.displayName = fn(e), n;
|
|
1950
1967
|
};
|
|
1951
|
-
const
|
|
1952
|
-
const
|
|
1953
|
-
function
|
|
1954
|
-
const t =
|
|
1955
|
-
return
|
|
1956
|
-
}
|
|
1957
|
-
function
|
|
1958
|
-
const [t, n] =
|
|
1959
|
-
return
|
|
1968
|
+
const Os = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], As = Er("chevron-down", Os);
|
|
1969
|
+
const Rs = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]], Is = Er("chevron-up", Rs);
|
|
1970
|
+
function Ts(e) {
|
|
1971
|
+
const t = S({ value: e, previous: e });
|
|
1972
|
+
return D(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
1973
|
+
}
|
|
1974
|
+
function ks(e) {
|
|
1975
|
+
const [t, n] = R(void 0);
|
|
1976
|
+
return me(() => {
|
|
1960
1977
|
if (e) {
|
|
1961
1978
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
1962
|
-
const
|
|
1963
|
-
if (!Array.isArray(
|
|
1979
|
+
const r = new ResizeObserver((o) => {
|
|
1980
|
+
if (!Array.isArray(o) || !o.length)
|
|
1964
1981
|
return;
|
|
1965
|
-
const
|
|
1966
|
-
let c,
|
|
1967
|
-
if ("borderBoxSize" in
|
|
1968
|
-
const a =
|
|
1969
|
-
c = u.inlineSize,
|
|
1982
|
+
const i = o[0];
|
|
1983
|
+
let c, s;
|
|
1984
|
+
if ("borderBoxSize" in i) {
|
|
1985
|
+
const a = i.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
|
|
1986
|
+
c = u.inlineSize, s = u.blockSize;
|
|
1970
1987
|
} else
|
|
1971
|
-
c = e.offsetWidth,
|
|
1972
|
-
n({ width: c, height:
|
|
1988
|
+
c = e.offsetWidth, s = e.offsetHeight;
|
|
1989
|
+
n({ width: c, height: s });
|
|
1973
1990
|
});
|
|
1974
|
-
return
|
|
1991
|
+
return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
|
|
1975
1992
|
} else
|
|
1976
1993
|
n(void 0);
|
|
1977
1994
|
}, [e]), t;
|
|
1978
1995
|
}
|
|
1979
|
-
var
|
|
1996
|
+
var ot = "Switch", [Ds] = ke(ot), [xs, Ms] = Ds(ot), Pr = P(
|
|
1980
1997
|
(e, t) => {
|
|
1981
1998
|
const {
|
|
1982
1999
|
__scopeSwitch: n,
|
|
1983
|
-
name:
|
|
1984
|
-
checked:
|
|
1985
|
-
defaultChecked:
|
|
2000
|
+
name: r,
|
|
2001
|
+
checked: o,
|
|
2002
|
+
defaultChecked: i,
|
|
1986
2003
|
required: c,
|
|
1987
|
-
disabled:
|
|
2004
|
+
disabled: s,
|
|
1988
2005
|
value: a = "on",
|
|
1989
2006
|
onCheckedChange: u,
|
|
1990
2007
|
form: l,
|
|
1991
2008
|
...d
|
|
1992
|
-
} = e, [_, m] =
|
|
1993
|
-
prop:
|
|
1994
|
-
defaultProp:
|
|
2009
|
+
} = e, [_, m] = R(null), g = L(t, (b) => m(b)), f = S(!1), v = _ ? l || !!_.closest("form") : !0, [h, y] = De({
|
|
2010
|
+
prop: o,
|
|
2011
|
+
defaultProp: i ?? !1,
|
|
1995
2012
|
onChange: u,
|
|
1996
|
-
caller:
|
|
2013
|
+
caller: ot
|
|
1997
2014
|
});
|
|
1998
|
-
return /* @__PURE__ */
|
|
1999
|
-
/* @__PURE__ */
|
|
2000
|
-
|
|
2015
|
+
return /* @__PURE__ */ p(xs, { scope: n, checked: h, disabled: s, children: [
|
|
2016
|
+
/* @__PURE__ */ p(
|
|
2017
|
+
$.button,
|
|
2001
2018
|
{
|
|
2002
2019
|
type: "button",
|
|
2003
2020
|
role: "switch",
|
|
2004
|
-
"aria-checked":
|
|
2021
|
+
"aria-checked": h,
|
|
2005
2022
|
"aria-required": c,
|
|
2006
|
-
"data-state":
|
|
2007
|
-
"data-disabled":
|
|
2008
|
-
disabled:
|
|
2023
|
+
"data-state": Rr(h),
|
|
2024
|
+
"data-disabled": s ? "" : void 0,
|
|
2025
|
+
disabled: s,
|
|
2009
2026
|
value: a,
|
|
2010
2027
|
...d,
|
|
2011
|
-
ref:
|
|
2012
|
-
onClick:
|
|
2013
|
-
y((
|
|
2028
|
+
ref: g,
|
|
2029
|
+
onClick: j(e.onClick, (b) => {
|
|
2030
|
+
y((C) => !C), v && (f.current = b.isPropagationStopped(), f.current || b.stopPropagation());
|
|
2014
2031
|
})
|
|
2015
2032
|
}
|
|
2016
2033
|
),
|
|
2017
|
-
|
|
2018
|
-
|
|
2034
|
+
v && /* @__PURE__ */ p(
|
|
2035
|
+
Ar,
|
|
2019
2036
|
{
|
|
2020
2037
|
control: _,
|
|
2021
|
-
bubbles: !
|
|
2022
|
-
name:
|
|
2038
|
+
bubbles: !f.current,
|
|
2039
|
+
name: r,
|
|
2023
2040
|
value: a,
|
|
2024
|
-
checked:
|
|
2041
|
+
checked: h,
|
|
2025
2042
|
required: c,
|
|
2026
|
-
disabled:
|
|
2043
|
+
disabled: s,
|
|
2027
2044
|
form: l,
|
|
2028
2045
|
style: { transform: "translateX(-100%)" }
|
|
2029
2046
|
}
|
|
@@ -2031,32 +2048,32 @@ var $e = "Switch", [fs] = Oe($e), [_s, ps] = fs($e), $n = E(
|
|
|
2031
2048
|
] });
|
|
2032
2049
|
}
|
|
2033
2050
|
);
|
|
2034
|
-
|
|
2035
|
-
var
|
|
2051
|
+
Pr.displayName = ot;
|
|
2052
|
+
var Nr = "SwitchThumb", Or = P(
|
|
2036
2053
|
(e, t) => {
|
|
2037
|
-
const { __scopeSwitch: n, ...
|
|
2038
|
-
return /* @__PURE__ */
|
|
2039
|
-
|
|
2054
|
+
const { __scopeSwitch: n, ...r } = e, o = Ms(Nr, n);
|
|
2055
|
+
return /* @__PURE__ */ p(
|
|
2056
|
+
$.span,
|
|
2040
2057
|
{
|
|
2041
|
-
"data-state":
|
|
2042
|
-
"data-disabled":
|
|
2043
|
-
...
|
|
2058
|
+
"data-state": Rr(o.checked),
|
|
2059
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
2060
|
+
...r,
|
|
2044
2061
|
ref: t
|
|
2045
2062
|
}
|
|
2046
2063
|
);
|
|
2047
2064
|
}
|
|
2048
2065
|
);
|
|
2049
|
-
|
|
2050
|
-
var
|
|
2066
|
+
Or.displayName = Nr;
|
|
2067
|
+
var zs = "SwitchBubbleInput", Ar = P(
|
|
2051
2068
|
({
|
|
2052
2069
|
__scopeSwitch: e,
|
|
2053
2070
|
control: t,
|
|
2054
2071
|
checked: n,
|
|
2055
|
-
bubbles:
|
|
2056
|
-
...
|
|
2057
|
-
},
|
|
2058
|
-
const c =
|
|
2059
|
-
return
|
|
2072
|
+
bubbles: r = !0,
|
|
2073
|
+
...o
|
|
2074
|
+
}, i) => {
|
|
2075
|
+
const c = S(null), s = L(c, i), a = Ts(n), u = ks(t);
|
|
2076
|
+
return E(() => {
|
|
2060
2077
|
const l = c.current;
|
|
2061
2078
|
if (!l) return;
|
|
2062
2079
|
const d = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
|
|
@@ -2064,20 +2081,20 @@ var hs = "SwitchBubbleInput", Mn = E(
|
|
|
2064
2081
|
"checked"
|
|
2065
2082
|
).set;
|
|
2066
2083
|
if (a !== n && m) {
|
|
2067
|
-
const
|
|
2068
|
-
m.call(l, n), l.dispatchEvent(
|
|
2084
|
+
const g = new Event("click", { bubbles: r });
|
|
2085
|
+
m.call(l, n), l.dispatchEvent(g);
|
|
2069
2086
|
}
|
|
2070
|
-
}, [a, n,
|
|
2087
|
+
}, [a, n, r]), /* @__PURE__ */ p(
|
|
2071
2088
|
"input",
|
|
2072
2089
|
{
|
|
2073
2090
|
type: "checkbox",
|
|
2074
2091
|
"aria-hidden": !0,
|
|
2075
2092
|
defaultChecked: n,
|
|
2076
|
-
...
|
|
2093
|
+
...o,
|
|
2077
2094
|
tabIndex: -1,
|
|
2078
|
-
ref:
|
|
2095
|
+
ref: s,
|
|
2079
2096
|
style: {
|
|
2080
|
-
...
|
|
2097
|
+
...o.style,
|
|
2081
2098
|
...u,
|
|
2082
2099
|
position: "absolute",
|
|
2083
2100
|
pointerEvents: "none",
|
|
@@ -2088,102 +2105,102 @@ var hs = "SwitchBubbleInput", Mn = E(
|
|
|
2088
2105
|
);
|
|
2089
2106
|
}
|
|
2090
2107
|
);
|
|
2091
|
-
|
|
2092
|
-
function
|
|
2108
|
+
Ar.displayName = zs;
|
|
2109
|
+
function Rr(e) {
|
|
2093
2110
|
return e ? "checked" : "unchecked";
|
|
2094
2111
|
}
|
|
2095
|
-
var
|
|
2096
|
-
const
|
|
2097
|
-
root:
|
|
2112
|
+
var $s = Pr, Ls = Or;
|
|
2113
|
+
const Fs = "_root_dibqz_1", Us = "_thumb_dibqz_38", Le = {
|
|
2114
|
+
root: Fs,
|
|
2098
2115
|
switch: "_switch_dibqz_8",
|
|
2099
|
-
thumb:
|
|
2100
|
-
},
|
|
2101
|
-
e && /* @__PURE__ */
|
|
2102
|
-
/* @__PURE__ */
|
|
2103
|
-
] }),
|
|
2116
|
+
thumb: Us
|
|
2117
|
+
}, js = ({ label: e, id: t, ...n }) => /* @__PURE__ */ p("div", { className: Le.root, children: [
|
|
2118
|
+
e && /* @__PURE__ */ p(ie, { className: Le.label, as: "label", htmlFor: t, children: e }),
|
|
2119
|
+
/* @__PURE__ */ p($s, { className: Le.switch, ...n, children: /* @__PURE__ */ p(Ls, { className: Le.thumb }) })
|
|
2120
|
+
] }), Ws = /* @__PURE__ */ xi(/* @__PURE__ */ oe(), /* @__PURE__ */ Re()), Ir = ee(null), Bs = ({
|
|
2104
2121
|
children: e,
|
|
2105
2122
|
items: t,
|
|
2106
2123
|
localStorageKey: n
|
|
2107
2124
|
}) => {
|
|
2108
|
-
function
|
|
2109
|
-
const
|
|
2110
|
-
if (!
|
|
2111
|
-
const { success:
|
|
2112
|
-
JSON.parse(
|
|
2125
|
+
function r(g) {
|
|
2126
|
+
const f = localStorage.getItem(g);
|
|
2127
|
+
if (!f) return null;
|
|
2128
|
+
const { success: v, data: h } = Ws.safeParse(
|
|
2129
|
+
JSON.parse(f)
|
|
2113
2130
|
);
|
|
2114
|
-
return
|
|
2131
|
+
return v ? h : null;
|
|
2115
2132
|
}
|
|
2116
|
-
const
|
|
2133
|
+
const o = D(
|
|
2117
2134
|
() => Object.fromEntries(
|
|
2118
|
-
t.map((
|
|
2135
|
+
t.map((g) => [g.value, g.defaultSelected ?? !1])
|
|
2119
2136
|
),
|
|
2120
2137
|
[t]
|
|
2121
|
-
), [
|
|
2122
|
-
|
|
2123
|
-
), [
|
|
2124
|
-
|
|
2138
|
+
), [i, c] = R(
|
|
2139
|
+
r(n) ?? o
|
|
2140
|
+
), [s, a] = R(
|
|
2141
|
+
r(n)
|
|
2125
2142
|
);
|
|
2126
|
-
function u(
|
|
2127
|
-
const
|
|
2128
|
-
c(
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
let
|
|
2132
|
-
|
|
2133
|
-
const
|
|
2134
|
-
(
|
|
2143
|
+
function u(g, f) {
|
|
2144
|
+
const v = i ? { ...i, [g]: f } : { [g]: f };
|
|
2145
|
+
c(v);
|
|
2146
|
+
}
|
|
2147
|
+
E(() => {
|
|
2148
|
+
let g = [];
|
|
2149
|
+
s !== null && (g = Object.entries(s).filter(([v, h]) => h).map(([v]) => v));
|
|
2150
|
+
const f = t.filter(
|
|
2151
|
+
(v) => g.includes(v.value)
|
|
2135
2152
|
);
|
|
2136
|
-
for (const
|
|
2137
|
-
const
|
|
2138
|
-
|
|
2153
|
+
for (const v of t) {
|
|
2154
|
+
const h = document.head.querySelector(`#${v.value}`);
|
|
2155
|
+
h && h.remove();
|
|
2139
2156
|
}
|
|
2140
|
-
for (const
|
|
2141
|
-
const
|
|
2142
|
-
if (
|
|
2143
|
-
|
|
2157
|
+
for (const v of f) {
|
|
2158
|
+
const h = document.createElement("script");
|
|
2159
|
+
if (h.id = v.value, !v.script) {
|
|
2160
|
+
v.required || console.warn("CookieBanner: Missing script for", v.value);
|
|
2144
2161
|
continue;
|
|
2145
2162
|
}
|
|
2146
|
-
const { success: y, data: b } =
|
|
2147
|
-
|
|
2163
|
+
const { success: y, data: b } = Fi.safeParse(
|
|
2164
|
+
v.script
|
|
2148
2165
|
);
|
|
2149
2166
|
if (!y) {
|
|
2150
2167
|
console.error(
|
|
2151
2168
|
"CookieBanner: Invalid script definition for",
|
|
2152
|
-
|
|
2169
|
+
v.value
|
|
2153
2170
|
);
|
|
2154
2171
|
continue;
|
|
2155
2172
|
}
|
|
2156
|
-
switch (
|
|
2173
|
+
switch (h.type = b.type ?? "text/javascript", h.async = b.async ?? !1, h.defer = b.defer ?? !1, b.variant) {
|
|
2157
2174
|
case "inline":
|
|
2158
|
-
|
|
2175
|
+
h.textContent = b.content;
|
|
2159
2176
|
break;
|
|
2160
2177
|
case "remote":
|
|
2161
|
-
|
|
2178
|
+
h.src = b.src, h.crossOrigin = b.crossorigin ?? null, h.integrity = b.integrity ?? "";
|
|
2162
2179
|
break;
|
|
2163
2180
|
}
|
|
2164
|
-
document.head.appendChild(
|
|
2181
|
+
document.head.appendChild(h);
|
|
2165
2182
|
}
|
|
2166
|
-
}, [
|
|
2167
|
-
function l(
|
|
2168
|
-
a(
|
|
2183
|
+
}, [s, t]);
|
|
2184
|
+
function l(g) {
|
|
2185
|
+
a(g), localStorage.setItem(n, JSON.stringify(g));
|
|
2169
2186
|
}
|
|
2170
|
-
const d =
|
|
2171
|
-
const
|
|
2172
|
-
t.map((
|
|
2187
|
+
const d = M(() => {
|
|
2188
|
+
const g = Object.fromEntries(
|
|
2189
|
+
t.map((f) => [f.value, !1])
|
|
2173
2190
|
);
|
|
2174
|
-
c(
|
|
2175
|
-
}, [t]), _ =
|
|
2176
|
-
l(
|
|
2177
|
-
}, [
|
|
2178
|
-
if (!
|
|
2179
|
-
const
|
|
2180
|
-
return t.map((
|
|
2181
|
-
}, [
|
|
2182
|
-
return /* @__PURE__ */
|
|
2183
|
-
|
|
2191
|
+
c(g), l(g);
|
|
2192
|
+
}, [t]), _ = M(() => {
|
|
2193
|
+
l(i), location.reload();
|
|
2194
|
+
}, [i]), m = D(() => {
|
|
2195
|
+
if (!s) return !1;
|
|
2196
|
+
const g = Object.keys(s);
|
|
2197
|
+
return t.map((v) => v.value).every((v) => g.includes(v));
|
|
2198
|
+
}, [s, t]);
|
|
2199
|
+
return /* @__PURE__ */ p(
|
|
2200
|
+
Ir.Provider,
|
|
2184
2201
|
{
|
|
2185
2202
|
value: {
|
|
2186
|
-
selection:
|
|
2203
|
+
selection: i,
|
|
2187
2204
|
toggleSelection: u,
|
|
2188
2205
|
onDeclineAll: d,
|
|
2189
2206
|
onSave: _,
|
|
@@ -2193,176 +2210,1188 @@ const gs = "_root_dibqz_1", ys = "_thumb_dibqz_38", be = {
|
|
|
2193
2210
|
}
|
|
2194
2211
|
);
|
|
2195
2212
|
};
|
|
2196
|
-
function
|
|
2197
|
-
const e =
|
|
2213
|
+
function Tr() {
|
|
2214
|
+
const e = Y(Ir);
|
|
2198
2215
|
if (!e)
|
|
2199
2216
|
throw new Error("useSelection must be used within a SelectionProvider");
|
|
2200
2217
|
return e;
|
|
2201
2218
|
}
|
|
2202
|
-
const
|
|
2219
|
+
const Hs = ({
|
|
2203
2220
|
value: e,
|
|
2204
2221
|
label: t,
|
|
2205
2222
|
sublabel: n,
|
|
2206
|
-
required:
|
|
2207
|
-
description:
|
|
2208
|
-
openItem:
|
|
2223
|
+
required: r = !1,
|
|
2224
|
+
description: o,
|
|
2225
|
+
openItem: i
|
|
2209
2226
|
}) => {
|
|
2210
|
-
const { toggleSelection: c, selection:
|
|
2211
|
-
() =>
|
|
2212
|
-
[
|
|
2227
|
+
const { toggleSelection: c, selection: s } = Tr(), a = D(
|
|
2228
|
+
() => s?.[e] ?? !1,
|
|
2229
|
+
[s, e]
|
|
2213
2230
|
);
|
|
2214
|
-
|
|
2231
|
+
E(() => {
|
|
2215
2232
|
c(e, a);
|
|
2216
2233
|
}, [e, a]);
|
|
2217
|
-
const u =
|
|
2218
|
-
() =>
|
|
2219
|
-
[
|
|
2220
|
-
), l =
|
|
2221
|
-
() => (_) =>
|
|
2234
|
+
const u = D(
|
|
2235
|
+
() => r ? !0 : a,
|
|
2236
|
+
[r, a]
|
|
2237
|
+
), l = D(
|
|
2238
|
+
() => (_) => r ? () => {
|
|
2222
2239
|
} : c(e, _),
|
|
2223
|
-
[
|
|
2224
|
-
), d =
|
|
2225
|
-
return /* @__PURE__ */
|
|
2226
|
-
/* @__PURE__ */
|
|
2227
|
-
/* @__PURE__ */
|
|
2228
|
-
/* @__PURE__ */
|
|
2229
|
-
n && /* @__PURE__ */
|
|
2240
|
+
[r, c, e]
|
|
2241
|
+
), d = D(() => r, [r]);
|
|
2242
|
+
return /* @__PURE__ */ p(bs, { value: e, className: re.root, children: [
|
|
2243
|
+
/* @__PURE__ */ p("div", { className: re.header, children: [
|
|
2244
|
+
/* @__PURE__ */ p(dn, { asChild: !0, children: /* @__PURE__ */ p("div", { className: re.label, children: [
|
|
2245
|
+
/* @__PURE__ */ p(ie, { weight: "bold", children: t }),
|
|
2246
|
+
n && /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n })
|
|
2230
2247
|
] }) }),
|
|
2231
|
-
/* @__PURE__ */
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
|
|
2248
|
+
/* @__PURE__ */ p("div", { className: re.actions, children: [
|
|
2249
|
+
/* @__PURE__ */ p(
|
|
2250
|
+
js,
|
|
2234
2251
|
{
|
|
2235
2252
|
checked: u,
|
|
2236
2253
|
onCheckedChange: l,
|
|
2237
2254
|
disabled: d
|
|
2238
2255
|
}
|
|
2239
2256
|
),
|
|
2240
|
-
/* @__PURE__ */
|
|
2241
|
-
|
|
2257
|
+
/* @__PURE__ */ p(dn, { asChild: !0, children: /* @__PURE__ */ p(
|
|
2258
|
+
As,
|
|
2242
2259
|
{
|
|
2243
2260
|
size: 16,
|
|
2244
|
-
className:
|
|
2245
|
-
[
|
|
2246
|
-
[
|
|
2261
|
+
className: He({
|
|
2262
|
+
[re.chevron]: !0,
|
|
2263
|
+
[re.open]: i === e
|
|
2247
2264
|
})
|
|
2248
2265
|
}
|
|
2249
2266
|
) })
|
|
2250
2267
|
] })
|
|
2251
2268
|
] }),
|
|
2252
|
-
|
|
2253
|
-
|
|
2269
|
+
o && /* @__PURE__ */ p(Cs, { className: re.description, children: /* @__PURE__ */ p(
|
|
2270
|
+
ie,
|
|
2254
2271
|
{
|
|
2255
2272
|
size: "caption",
|
|
2256
|
-
dangerouslySetInnerHTML: { __html:
|
|
2273
|
+
dangerouslySetInnerHTML: { __html: o }
|
|
2257
2274
|
}
|
|
2258
2275
|
) })
|
|
2259
2276
|
] });
|
|
2260
|
-
}
|
|
2277
|
+
};
|
|
2278
|
+
function Ie(e) {
|
|
2279
|
+
const t = S(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", pn, 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, (w) => d(w)), 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((w) => {
|
|
2308
|
+
const F = w.target, le = [...u.branches].some((Se) => Se.contains(F));
|
|
2309
|
+
!C || le || (o?.(w), c?.(w), w.defaultPrevented || s?.());
|
|
2310
|
+
}, _), k = Js((w) => {
|
|
2311
|
+
const F = w.target;
|
|
2312
|
+
[...u.branches].some((Se) => Se.contains(F)) || (i?.(w), c?.(w), w.defaultPrevented || s?.());
|
|
2313
|
+
}, _);
|
|
2314
|
+
return Zs((w) => {
|
|
2315
|
+
y === u.layers.size - 1 && (r?.(w), !w.defaultPrevented && s && (w.preventDefault(), s()));
|
|
2316
|
+
}, _), E(() => {
|
|
2317
|
+
if (l)
|
|
2318
|
+
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (pn = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(l)), u.layers.add(l), _n(), () => {
|
|
2319
|
+
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (_.body.style.pointerEvents = pn);
|
|
2320
|
+
};
|
|
2321
|
+
}, [l, _, n, u]), E(() => () => {
|
|
2322
|
+
l && (u.layers.delete(l), u.layersWithOutsidePointerEventsDisabled.delete(l), _n());
|
|
2323
|
+
}, [l, u]), E(() => {
|
|
2324
|
+
const w = () => m({});
|
|
2325
|
+
return document.addEventListener(bt, w), () => document.removeEventListener(bt, w);
|
|
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: j(e.onFocusCapture, k.onFocusCapture),
|
|
2336
|
+
onBlurCapture: j(e.onBlurCapture, k.onBlurCapture),
|
|
2337
|
+
onPointerDownCapture: j(
|
|
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 = S(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 = S(!1), o = S(() => {
|
|
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 = S(!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 _n() {
|
|
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 lt = "focusScope.autoFocusOnMount", dt = "focusScope.autoFocusOnUnmount", vn = { 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 = S(null), _ = L(t, (f) => a(f)), m = S({
|
|
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
|
+
mn.add(m);
|
|
2449
|
+
const f = document.activeElement;
|
|
2450
|
+
if (!s.contains(f)) {
|
|
2451
|
+
const h = new CustomEvent(lt, vn);
|
|
2452
|
+
s.addEventListener(lt, u), s.dispatchEvent(h), h.defaultPrevented || (ec(ic(zr(s)), { select: !0 }), document.activeElement === f && X(s));
|
|
2453
|
+
}
|
|
2454
|
+
return () => {
|
|
2455
|
+
s.removeEventListener(lt, u), setTimeout(() => {
|
|
2456
|
+
const h = new CustomEvent(dt, vn);
|
|
2457
|
+
s.addEventListener(dt, l), s.dispatchEvent(h), h.defaultPrevented || X(f ?? document.body, { select: !0 }), s.removeEventListener(dt, l), mn.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 = hn(t, e), r = hn(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 hn(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 mn = oc();
|
|
2518
|
+
function oc() {
|
|
2519
|
+
let e = [];
|
|
2520
|
+
return {
|
|
2521
|
+
add(t) {
|
|
2522
|
+
const n = e[0];
|
|
2523
|
+
t !== n && n?.pause(), e = gn(e, t), e.unshift(t);
|
|
2524
|
+
},
|
|
2525
|
+
remove(t) {
|
|
2526
|
+
e = gn(e, t), e[0]?.resume();
|
|
2527
|
+
}
|
|
2528
|
+
};
|
|
2529
|
+
}
|
|
2530
|
+
function gn(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 ft = 0;
|
|
2538
|
+
function sc() {
|
|
2539
|
+
E(() => {
|
|
2540
|
+
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
2541
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? yn()), document.body.insertAdjacentElement("beforeend", e[1] ?? yn()), ft++, () => {
|
|
2542
|
+
ft === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ft--;
|
|
2543
|
+
};
|
|
2544
|
+
}, []);
|
|
2545
|
+
}
|
|
2546
|
+
function yn() {
|
|
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 Ze = "right-scroll-bar-position", Ve = "width-before-scroll-bar", ac = "with-scroll-bars-hidden", uc = "--removed-body-scroll-bar-size";
|
|
2573
|
+
function pt(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, bn = /* @__PURE__ */ new WeakMap();
|
|
2598
|
+
function fc(e, t) {
|
|
2599
|
+
var n = lc(null, function(r) {
|
|
2600
|
+
return e.forEach(function(o) {
|
|
2601
|
+
return pt(o, r);
|
|
2602
|
+
});
|
|
2603
|
+
});
|
|
2604
|
+
return dc(function() {
|
|
2605
|
+
var r = bn.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) || pt(s, null);
|
|
2610
|
+
}), i.forEach(function(s) {
|
|
2611
|
+
o.has(s) || pt(s, c);
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
bn.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(), _t = function() {
|
|
2694
|
+
}, it = P(function(e, t) {
|
|
2695
|
+
var n = S(null), r = R({
|
|
2696
|
+
onScrollCapture: _t,
|
|
2697
|
+
onWheelCapture: _t,
|
|
2698
|
+
onTouchMoveCapture: _t
|
|
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]), w = H(H({}, C), o);
|
|
2700
|
+
return T(
|
|
2701
|
+
W,
|
|
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({}, w), { ref: k })) : T(y, H({}, w, { className: a, ref: k }), s)
|
|
2705
|
+
);
|
|
2706
|
+
});
|
|
2707
|
+
it.defaultProps = {
|
|
2708
|
+
enabled: !0,
|
|
2709
|
+
removeScrollBar: !0,
|
|
2710
|
+
inert: !1
|
|
2711
|
+
};
|
|
2712
|
+
it.classNames = {
|
|
2713
|
+
fullWidth: Ve,
|
|
2714
|
+
zeroRight: Ze
|
|
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
|
+
}, Sc = 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 = Sc(), t = function(n) {
|
|
2756
|
+
var r = n.styles, o = n.dynamic;
|
|
2757
|
+
return e(r, o), null;
|
|
2758
|
+
};
|
|
2759
|
+
return t;
|
|
2760
|
+
}, wc = {
|
|
2761
|
+
left: 0,
|
|
2762
|
+
top: 0,
|
|
2763
|
+
right: 0,
|
|
2764
|
+
gap: 0
|
|
2765
|
+
}, vt = 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 [vt(n), vt(r), vt(o)];
|
|
2770
|
+
}, Pc = function(e) {
|
|
2771
|
+
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2772
|
+
return wc;
|
|
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(Ze, ` {
|
|
2805
|
+
right: `).concat(s, "px ").concat(r, `;
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
.`).concat(Ve, ` {
|
|
2809
|
+
margin-right: `).concat(s, "px ").concat(r, `;
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
.`).concat(Ze, " .").concat(Ze, ` {
|
|
2813
|
+
right: 0 `).concat(r, `;
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
.`).concat(Ve, " .").concat(Ve, ` {
|
|
2817
|
+
margin-right: 0 `).concat(r, `;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
body[`).concat(ve, `] {
|
|
2821
|
+
`).concat(uc, ": ").concat(s, `px;
|
|
2822
|
+
}
|
|
2823
|
+
`);
|
|
2824
|
+
}, Cn = 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, (Cn() + 1).toString()), function() {
|
|
2830
|
+
var e = Cn() - 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
|
+
}, wn = function(e) {
|
|
2919
|
+
return [e.deltaX, e.deltaY];
|
|
2920
|
+
}, En = 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 = S([]), n = S([0, 0]), r = S(), o = R(Fc++)[0], i = R(Ur)[0], c = S(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(En), !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, w = Math.abs(b) > Math.abs(C) ? "h" : "v";
|
|
2951
|
+
if ("touches" in f && w === "h" && k.type === "range")
|
|
2952
|
+
return !1;
|
|
2953
|
+
var F = window.getSelection(), le = F && F.anchorNode, Se = le ? le === k || le.contains(k) : !1;
|
|
2954
|
+
if (Se)
|
|
2955
|
+
return !1;
|
|
2956
|
+
var xe = Sn(w, k);
|
|
2957
|
+
if (!xe)
|
|
2958
|
+
return !0;
|
|
2959
|
+
if (xe ? O = w : (O = w === "v" ? "h" : "v", xe = Sn(w, k)), !xe)
|
|
2960
|
+
return !1;
|
|
2961
|
+
if (!r.current && "changedTouches" in f && (b || C) && (r.current = O), !O)
|
|
2962
|
+
return !0;
|
|
2963
|
+
var jt = r.current || O;
|
|
2964
|
+
return zc(jt, v, f, jt === "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 ? wn(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(En).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, wn(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
|
+
W,
|
|
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(it, H({}, e, { ref: t, sideCar: Wc }));
|
|
3023
|
+
});
|
|
3024
|
+
Hr.classNames = it.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 = {}, ht = 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(), ht++, 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
|
+
}), ht--, ht || (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
|
+
}, st = "Dialog", [Vr] = ke(st), [Kc, V] = Vr(st), 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 = S(null), a = S(null), [u, l] = De({
|
|
3082
|
+
prop: r,
|
|
3083
|
+
defaultProp: o ?? !1,
|
|
3084
|
+
onChange: i,
|
|
3085
|
+
caller: st
|
|
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 = st;
|
|
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": Ut(o.open),
|
|
3116
|
+
...r,
|
|
3117
|
+
ref: i,
|
|
3118
|
+
onClick: j(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
|
+
}), Je = "DialogOverlay", Yc = P(
|
|
3127
|
+
(e, t) => {
|
|
3128
|
+
const n = Gr(Je, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, i = V(Je, e.__scopeDialog);
|
|
3129
|
+
return i.modal ? /* @__PURE__ */ p(et, { present: r || i.open, children: /* @__PURE__ */ p(Jc, { ...o, ref: t }) }) : null;
|
|
3130
|
+
}
|
|
3131
|
+
);
|
|
3132
|
+
Yc.displayName = Je;
|
|
3133
|
+
var Xc = /* @__PURE__ */ Ye("DialogOverlay.RemoveScroll"), Jc = P(
|
|
3134
|
+
(e, t) => {
|
|
3135
|
+
const { __scopeDialog: n, ...r } = e, o = V(Je, 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": Ut(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(et, { 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 = S(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: j(e.onCloseAutoFocus, (i) => {
|
|
3171
|
+
i.preventDefault(), n.triggerRef.current?.focus();
|
|
3172
|
+
}),
|
|
3173
|
+
onPointerDownOutside: j(e.onPointerDownOutside, (i) => {
|
|
3174
|
+
const c = i.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
|
|
3175
|
+
(c.button === 2 || s) && i.preventDefault();
|
|
3176
|
+
}),
|
|
3177
|
+
onFocusOutside: j(
|
|
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 = S(!1), o = S(!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 = S(null), u = L(t, a);
|
|
3208
|
+
return sc(), /* @__PURE__ */ p(W, { 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": Ut(s.open),
|
|
3225
|
+
...c,
|
|
3226
|
+
ref: u,
|
|
3227
|
+
onDismiss: () => s.onOpenChange(!1)
|
|
3228
|
+
}
|
|
3229
|
+
)
|
|
3230
|
+
}
|
|
3231
|
+
),
|
|
3232
|
+
/* @__PURE__ */ p(W, { children: [
|
|
3233
|
+
/* @__PURE__ */ p(ta, { titleId: s.titleId }),
|
|
3234
|
+
/* @__PURE__ */ p(ra, { contentRef: a, descriptionId: s.descriptionId })
|
|
3235
|
+
] })
|
|
3236
|
+
] });
|
|
3237
|
+
}
|
|
3238
|
+
), Ft = "DialogTitle", Jr = P(
|
|
3239
|
+
(e, t) => {
|
|
3240
|
+
const { __scopeDialog: n, ...r } = e, o = V(Ft, n);
|
|
3241
|
+
return /* @__PURE__ */ p($.h2, { id: o.titleId, ...r, ref: t });
|
|
3242
|
+
}
|
|
3243
|
+
);
|
|
3244
|
+
Jr.displayName = Ft;
|
|
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: j(e.onClick, () => o.onOpenChange(!1))
|
|
3262
|
+
}
|
|
3263
|
+
);
|
|
3264
|
+
}
|
|
3265
|
+
);
|
|
3266
|
+
no.displayName = to;
|
|
3267
|
+
function Ut(e) {
|
|
3268
|
+
return e ? "open" : "closed";
|
|
3269
|
+
}
|
|
3270
|
+
var ro = "DialogTitleWarning", [fa, oo] = Ui(ro, {
|
|
3271
|
+
contentName: ce,
|
|
3272
|
+
titleName: Ft,
|
|
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, Pn = no;
|
|
3290
|
+
const aa = ({
|
|
2261
3291
|
noTarget: e = !0,
|
|
2262
3292
|
heading: t = "We use cookies.",
|
|
2263
3293
|
subheading: n = "Please define your selection below.",
|
|
2264
|
-
selectLabel:
|
|
2265
|
-
hideLabel:
|
|
2266
|
-
saveLabel:
|
|
3294
|
+
selectLabel: r = "Select",
|
|
3295
|
+
hideLabel: o = "Hide",
|
|
3296
|
+
saveLabel: i = "Save selection",
|
|
2267
3297
|
declineLabel: c = "Decline all",
|
|
2268
|
-
defaultSettingsOpen:
|
|
3298
|
+
defaultSettingsOpen: s = !0,
|
|
2269
3299
|
privacyPolicy: a,
|
|
2270
3300
|
items: u
|
|
2271
3301
|
}) => {
|
|
2272
|
-
const { onSave: l, onDeclineAll: d, selectionTaken: _ } =
|
|
2273
|
-
return /* @__PURE__ */
|
|
2274
|
-
|
|
3302
|
+
const { onSave: l, onDeclineAll: d, selectionTaken: _ } = Tr(), [m, g] = R(void 0), [f, v] = R(s);
|
|
3303
|
+
return /* @__PURE__ */ p(oa, { open: !_, children: /* @__PURE__ */ p(
|
|
3304
|
+
ia,
|
|
2275
3305
|
{
|
|
2276
|
-
className:
|
|
2277
|
-
[
|
|
2278
|
-
[
|
|
2279
|
-
[R.open]: !_
|
|
3306
|
+
className: He({
|
|
3307
|
+
[U.root]: !0,
|
|
3308
|
+
[U.noTarget]: e
|
|
2280
3309
|
}),
|
|
2281
|
-
children: /* @__PURE__ */
|
|
2282
|
-
|
|
3310
|
+
children: /* @__PURE__ */ p(
|
|
3311
|
+
lr,
|
|
2283
3312
|
{
|
|
2284
|
-
open:
|
|
2285
|
-
onOpenChange:
|
|
2286
|
-
className:
|
|
3313
|
+
open: f,
|
|
3314
|
+
onOpenChange: v,
|
|
3315
|
+
className: U.collapsible,
|
|
2287
3316
|
children: [
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2291
|
-
/* @__PURE__ */
|
|
3317
|
+
/* @__PURE__ */ p("div", { className: U.header, children: [
|
|
3318
|
+
/* @__PURE__ */ p("div", { className: U.heading, children: [
|
|
3319
|
+
/* @__PURE__ */ p(sa, { asChild: !0, children: /* @__PURE__ */ p(ie, { weight: "bold", children: t }) }),
|
|
3320
|
+
/* @__PURE__ */ p(ca, { asChild: !0, children: /* @__PURE__ */ p(ie, { size: "caption", color: "muted", children: n }) })
|
|
2292
3321
|
] }),
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
|
|
3322
|
+
/* @__PURE__ */ p(dr, { asChild: !0, children: /* @__PURE__ */ p(ut, { variant: "ghost", children: [
|
|
3323
|
+
f ? o : r,
|
|
2295
3324
|
" ",
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
|
|
3325
|
+
/* @__PURE__ */ p(
|
|
3326
|
+
Is,
|
|
2298
3327
|
{
|
|
2299
3328
|
size: 12,
|
|
2300
|
-
className:
|
|
2301
|
-
[
|
|
2302
|
-
[
|
|
3329
|
+
className: He({
|
|
3330
|
+
[U.chevron]: !0,
|
|
3331
|
+
[U.open]: f
|
|
2303
3332
|
})
|
|
2304
3333
|
}
|
|
2305
3334
|
)
|
|
2306
3335
|
] }) })
|
|
2307
3336
|
] }),
|
|
2308
|
-
/* @__PURE__ */
|
|
2309
|
-
|
|
3337
|
+
/* @__PURE__ */ p(
|
|
3338
|
+
fr,
|
|
2310
3339
|
{
|
|
2311
|
-
className:
|
|
2312
|
-
[
|
|
3340
|
+
className: He({
|
|
3341
|
+
[U.settings]: !0
|
|
2313
3342
|
}),
|
|
2314
|
-
children: /* @__PURE__ */
|
|
2315
|
-
|
|
3343
|
+
children: /* @__PURE__ */ p(
|
|
3344
|
+
ys,
|
|
2316
3345
|
{
|
|
2317
3346
|
type: "single",
|
|
2318
3347
|
collapsible: !0,
|
|
2319
3348
|
value: m,
|
|
2320
|
-
onValueChange:
|
|
2321
|
-
children: u.map((
|
|
3349
|
+
onValueChange: g,
|
|
3350
|
+
children: u.map((h) => /* @__PURE__ */ p(Hs, { ...h, openItem: m }, h.value))
|
|
2322
3351
|
}
|
|
2323
3352
|
)
|
|
2324
3353
|
}
|
|
2325
3354
|
),
|
|
2326
|
-
/* @__PURE__ */
|
|
2327
|
-
/* @__PURE__ */
|
|
2328
|
-
/* @__PURE__ */
|
|
2329
|
-
/* @__PURE__ */
|
|
2330
|
-
/* @__PURE__ */
|
|
3355
|
+
/* @__PURE__ */ p("div", { className: U.footer, children: [
|
|
3356
|
+
/* @__PURE__ */ p("div", { className: U.legal, children: a && /* @__PURE__ */ p(ie, { size: "caption", children: /* @__PURE__ */ p("a", { href: a.url, target: "_blank", children: a.label }) }) }),
|
|
3357
|
+
/* @__PURE__ */ p("div", { className: U.actions, children: [
|
|
3358
|
+
/* @__PURE__ */ p(Pn, { asChild: !0, children: /* @__PURE__ */ p(ut, { variant: "neutral", onClick: () => d(), children: c }) }),
|
|
3359
|
+
/* @__PURE__ */ p(Pn, { asChild: !0, children: /* @__PURE__ */ p(ut, { variant: "brand", onClick: () => l(), children: i }) })
|
|
2331
3360
|
] })
|
|
2332
3361
|
] })
|
|
2333
3362
|
]
|
|
2334
3363
|
}
|
|
2335
3364
|
)
|
|
2336
3365
|
}
|
|
2337
|
-
);
|
|
2338
|
-
},
|
|
3366
|
+
) });
|
|
3367
|
+
}, ua = ({
|
|
2339
3368
|
localStorageKey: e = "cb-selection",
|
|
2340
3369
|
items: t,
|
|
2341
3370
|
...n
|
|
2342
3371
|
}) => {
|
|
2343
|
-
const
|
|
2344
|
-
() => t.filter((
|
|
2345
|
-
value:
|
|
2346
|
-
script:
|
|
2347
|
-
defaultSelected:
|
|
2348
|
-
required:
|
|
3372
|
+
const r = D(
|
|
3373
|
+
() => t.filter((o) => !o.required).map((o) => ({
|
|
3374
|
+
value: o.value,
|
|
3375
|
+
script: o.script,
|
|
3376
|
+
defaultSelected: o.defaultSelected,
|
|
3377
|
+
required: o.required
|
|
2349
3378
|
})),
|
|
2350
3379
|
[t]
|
|
2351
3380
|
);
|
|
2352
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ p(Bs, { items: r, localStorageKey: e, children: /* @__PURE__ */ p(aa, { items: t, ...n }) });
|
|
2353
3382
|
};
|
|
2354
|
-
function
|
|
3383
|
+
function pa(e, t) {
|
|
2355
3384
|
const n = t === void 0;
|
|
2356
|
-
let
|
|
3385
|
+
let r;
|
|
2357
3386
|
if (typeof t == "string") {
|
|
2358
|
-
const
|
|
2359
|
-
if (!
|
|
3387
|
+
const o = document.querySelector(t);
|
|
3388
|
+
if (!o)
|
|
2360
3389
|
throw new Error(`Element with selector "${t}" not found`);
|
|
2361
|
-
|
|
3390
|
+
r = o;
|
|
2362
3391
|
} else
|
|
2363
|
-
|
|
2364
|
-
|
|
3392
|
+
r = t;
|
|
3393
|
+
Ae(/* @__PURE__ */ p(ua, { noTarget: n, ...e }), r ?? document.body);
|
|
2365
3394
|
}
|
|
2366
3395
|
export {
|
|
2367
|
-
|
|
3396
|
+
pa as mountBanner
|
|
2368
3397
|
};
|