@uninspired/cookie-banner 0.0.11 → 0.0.13

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