@equal-experts/kuat-react 0.10.0 → 0.12.0

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.
@@ -0,0 +1,1431 @@
1
+ import { jsx as X, jsxs as ln } from "react/jsx-runtime";
2
+ import * as k from "react";
3
+ import { useRef as Gt, useState as Ht, useCallback as fn, useEffect as Tt } from "react";
4
+ import { ChevronLeft as dn, ChevronRight as pn } from "lucide-react";
5
+ import { c as gt } from "./utils-DLUjLwnh.js";
6
+ function mn(t) {
7
+ return Object.prototype.toString.call(t) === "[object Object]";
8
+ }
9
+ function qt(t) {
10
+ return mn(t) || Array.isArray(t);
11
+ }
12
+ function gn() {
13
+ return !!(typeof window < "u" && window.document && window.document.createElement);
14
+ }
15
+ function Ot(t, n) {
16
+ const o = Object.keys(t), r = Object.keys(n);
17
+ if (o.length !== r.length) return !1;
18
+ const i = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(n.breakpoints || {}));
19
+ return i !== s ? !1 : o.every((e) => {
20
+ const a = t[e], c = n[e];
21
+ return typeof a == "function" ? `${a}` == `${c}` : !qt(a) || !qt(c) ? a === c : Ot(a, c);
22
+ });
23
+ }
24
+ function Ut(t) {
25
+ return t.concat().sort((n, o) => n.name > o.name ? 1 : -1).map((n) => n.options);
26
+ }
27
+ function hn(t, n) {
28
+ if (t.length !== n.length) return !1;
29
+ const o = Ut(t), r = Ut(n);
30
+ return o.every((i, s) => {
31
+ const e = r[s];
32
+ return Ot(i, e);
33
+ });
34
+ }
35
+ function Nt(t) {
36
+ return typeof t == "number";
37
+ }
38
+ function Pt(t) {
39
+ return typeof t == "string";
40
+ }
41
+ function yt(t) {
42
+ return typeof t == "boolean";
43
+ }
44
+ function Kt(t) {
45
+ return Object.prototype.toString.call(t) === "[object Object]";
46
+ }
47
+ function N(t) {
48
+ return Math.abs(t);
49
+ }
50
+ function Dt(t) {
51
+ return Math.sign(t);
52
+ }
53
+ function ft(t, n) {
54
+ return N(t - n);
55
+ }
56
+ function Sn(t, n) {
57
+ if (t === 0 || n === 0 || N(t) <= N(n)) return 0;
58
+ const o = ft(N(t), N(n));
59
+ return N(o / t);
60
+ }
61
+ function bn(t) {
62
+ return Math.round(t * 100) / 100;
63
+ }
64
+ function dt(t) {
65
+ return pt(t).map(Number);
66
+ }
67
+ function $(t) {
68
+ return t[ht(t)];
69
+ }
70
+ function ht(t) {
71
+ return Math.max(0, t.length - 1);
72
+ }
73
+ function Mt(t, n) {
74
+ return n === ht(t);
75
+ }
76
+ function Qt(t, n = 0) {
77
+ return Array.from(Array(t), (o, r) => n + r);
78
+ }
79
+ function pt(t) {
80
+ return Object.keys(t);
81
+ }
82
+ function Jt(t, n) {
83
+ return [t, n].reduce((o, r) => (pt(r).forEach((i) => {
84
+ const s = o[i], e = r[i], a = Kt(s) && Kt(e);
85
+ o[i] = a ? Jt(s, e) : e;
86
+ }), o), {});
87
+ }
88
+ function wt(t, n) {
89
+ return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
90
+ }
91
+ function yn(t, n) {
92
+ const o = {
93
+ start: r,
94
+ center: i,
95
+ end: s
96
+ };
97
+ function r() {
98
+ return 0;
99
+ }
100
+ function i(c) {
101
+ return s(c) / 2;
102
+ }
103
+ function s(c) {
104
+ return n - c;
105
+ }
106
+ function e(c, u) {
107
+ return Pt(t) ? o[t](c) : t(n, c, u);
108
+ }
109
+ return {
110
+ measure: e
111
+ };
112
+ }
113
+ function mt() {
114
+ let t = [];
115
+ function n(i, s, e, a = {
116
+ passive: !0
117
+ }) {
118
+ let c;
119
+ if ("addEventListener" in i)
120
+ i.addEventListener(s, e, a), c = () => i.removeEventListener(s, e, a);
121
+ else {
122
+ const u = i;
123
+ u.addListener(e), c = () => u.removeListener(e);
124
+ }
125
+ return t.push(c), r;
126
+ }
127
+ function o() {
128
+ t = t.filter((i) => i());
129
+ }
130
+ const r = {
131
+ add: n,
132
+ clear: o
133
+ };
134
+ return r;
135
+ }
136
+ function xn(t, n, o, r) {
137
+ const i = mt(), s = 1e3 / 60;
138
+ let e = null, a = 0, c = 0;
139
+ function u() {
140
+ i.add(t, "visibilitychange", () => {
141
+ t.hidden && d();
142
+ });
143
+ }
144
+ function h() {
145
+ b(), i.clear();
146
+ }
147
+ function p(f) {
148
+ if (!c) return;
149
+ e || (e = f, o(), o());
150
+ const l = f - e;
151
+ for (e = f, a += l; a >= s; )
152
+ o(), a -= s;
153
+ const S = a / s;
154
+ r(S), c && (c = n.requestAnimationFrame(p));
155
+ }
156
+ function m() {
157
+ c || (c = n.requestAnimationFrame(p));
158
+ }
159
+ function b() {
160
+ n.cancelAnimationFrame(c), e = null, a = 0, c = 0;
161
+ }
162
+ function d() {
163
+ e = null, a = 0;
164
+ }
165
+ return {
166
+ init: u,
167
+ destroy: h,
168
+ start: m,
169
+ stop: b,
170
+ update: o,
171
+ render: r
172
+ };
173
+ }
174
+ function vn(t, n) {
175
+ const o = n === "rtl", r = t === "y", i = r ? "y" : "x", s = r ? "x" : "y", e = !r && o ? -1 : 1, a = h(), c = p();
176
+ function u(d) {
177
+ const {
178
+ height: g,
179
+ width: f
180
+ } = d;
181
+ return r ? g : f;
182
+ }
183
+ function h() {
184
+ return r ? "top" : o ? "right" : "left";
185
+ }
186
+ function p() {
187
+ return r ? "bottom" : o ? "left" : "right";
188
+ }
189
+ function m(d) {
190
+ return d * e;
191
+ }
192
+ return {
193
+ scroll: i,
194
+ cross: s,
195
+ startEdge: a,
196
+ endEdge: c,
197
+ measureSize: u,
198
+ direction: m
199
+ };
200
+ }
201
+ function et(t = 0, n = 0) {
202
+ const o = N(t - n);
203
+ function r(u) {
204
+ return u < t;
205
+ }
206
+ function i(u) {
207
+ return u > n;
208
+ }
209
+ function s(u) {
210
+ return r(u) || i(u);
211
+ }
212
+ function e(u) {
213
+ return s(u) ? r(u) ? t : n : u;
214
+ }
215
+ function a(u) {
216
+ return o ? u - o * Math.ceil((u - n) / o) : u;
217
+ }
218
+ return {
219
+ length: o,
220
+ max: n,
221
+ min: t,
222
+ constrain: e,
223
+ reachedAny: s,
224
+ reachedMax: i,
225
+ reachedMin: r,
226
+ removeOffset: a
227
+ };
228
+ }
229
+ function Xt(t, n, o) {
230
+ const {
231
+ constrain: r
232
+ } = et(0, t), i = t + 1;
233
+ let s = e(n);
234
+ function e(m) {
235
+ return o ? N((i + m) % i) : r(m);
236
+ }
237
+ function a() {
238
+ return s;
239
+ }
240
+ function c(m) {
241
+ return s = e(m), p;
242
+ }
243
+ function u(m) {
244
+ return h().set(a() + m);
245
+ }
246
+ function h() {
247
+ return Xt(t, a(), o);
248
+ }
249
+ const p = {
250
+ get: a,
251
+ set: c,
252
+ add: u,
253
+ clone: h
254
+ };
255
+ return p;
256
+ }
257
+ function En(t, n, o, r, i, s, e, a, c, u, h, p, m, b, d, g, f, l, S) {
258
+ const {
259
+ cross: x,
260
+ direction: L
261
+ } = t, P = ["INPUT", "SELECT", "TEXTAREA"], C = {
262
+ passive: !1
263
+ }, v = mt(), E = mt(), I = et(50, 225).constrain(b.measure(20)), D = {
264
+ mouse: 300,
265
+ touch: 400
266
+ }, T = {
267
+ mouse: 500,
268
+ touch: 600
269
+ }, M = d ? 43 : 25;
270
+ let F = !1, _ = 0, j = 0, W = !1, Y = !1, q = !1, U = !1;
271
+ function it(y) {
272
+ if (!S) return;
273
+ function w(V) {
274
+ (yt(S) || S(y, V)) && ut(V);
275
+ }
276
+ const A = n;
277
+ v.add(A, "dragstart", (V) => V.preventDefault(), C).add(A, "touchmove", () => {
278
+ }, C).add(A, "touchend", () => {
279
+ }).add(A, "touchstart", w).add(A, "mousedown", w).add(A, "touchcancel", B).add(A, "contextmenu", B).add(A, "click", Q, !0);
280
+ }
281
+ function G() {
282
+ v.clear(), E.clear();
283
+ }
284
+ function ot() {
285
+ const y = U ? o : n;
286
+ E.add(y, "touchmove", z, C).add(y, "touchend", B).add(y, "mousemove", z, C).add(y, "mouseup", B);
287
+ }
288
+ function rt(y) {
289
+ const w = y.nodeName || "";
290
+ return P.includes(w);
291
+ }
292
+ function K() {
293
+ return (d ? T : D)[U ? "mouse" : "touch"];
294
+ }
295
+ function ct(y, w) {
296
+ const A = p.add(Dt(y) * -1), V = h.byDistance(y, !d).distance;
297
+ return d || N(y) < I ? V : f && w ? V * 0.5 : h.byIndex(A.get(), 0).distance;
298
+ }
299
+ function ut(y) {
300
+ const w = wt(y, r);
301
+ U = w, q = d && w && !y.buttons && F, F = ft(i.get(), e.get()) >= 2, !(w && y.button !== 0) && (rt(y.target) || (W = !0, s.pointerDown(y), u.useFriction(0).useDuration(0), i.set(e), ot(), _ = s.readPoint(y), j = s.readPoint(y, x), m.emit("pointerDown")));
302
+ }
303
+ function z(y) {
304
+ if (!wt(y, r) && y.touches.length >= 2) return B(y);
305
+ const A = s.readPoint(y), V = s.readPoint(y, x), H = ft(A, _), J = ft(V, j);
306
+ if (!Y && !U && (!y.cancelable || (Y = H > J, !Y)))
307
+ return B(y);
308
+ const tt = s.pointerMove(y);
309
+ H > g && (q = !0), u.useFriction(0.3).useDuration(0.75), a.start(), i.add(L(tt)), y.preventDefault();
310
+ }
311
+ function B(y) {
312
+ const A = h.byDistance(0, !1).index !== p.get(), V = s.pointerUp(y) * K(), H = ct(L(V), A), J = Sn(V, H), tt = M - 10 * J, Z = l + J / 50;
313
+ Y = !1, W = !1, E.clear(), u.useDuration(tt).useFriction(Z), c.distance(H, !d), U = !1, m.emit("pointerUp");
314
+ }
315
+ function Q(y) {
316
+ q && (y.stopPropagation(), y.preventDefault(), q = !1);
317
+ }
318
+ function R() {
319
+ return W;
320
+ }
321
+ return {
322
+ init: it,
323
+ destroy: G,
324
+ pointerDown: R
325
+ };
326
+ }
327
+ function Cn(t, n) {
328
+ let r, i;
329
+ function s(p) {
330
+ return p.timeStamp;
331
+ }
332
+ function e(p, m) {
333
+ const d = `client${(m || t.scroll) === "x" ? "X" : "Y"}`;
334
+ return (wt(p, n) ? p : p.touches[0])[d];
335
+ }
336
+ function a(p) {
337
+ return r = p, i = p, e(p);
338
+ }
339
+ function c(p) {
340
+ const m = e(p) - e(i), b = s(p) - s(r) > 170;
341
+ return i = p, b && (r = p), m;
342
+ }
343
+ function u(p) {
344
+ if (!r || !i) return 0;
345
+ const m = e(i) - e(r), b = s(p) - s(r), d = s(p) - s(i) > 170, g = m / b;
346
+ return b && !d && N(g) > 0.1 ? g : 0;
347
+ }
348
+ return {
349
+ pointerDown: a,
350
+ pointerMove: c,
351
+ pointerUp: u,
352
+ readPoint: e
353
+ };
354
+ }
355
+ function Ln() {
356
+ function t(o) {
357
+ const {
358
+ offsetTop: r,
359
+ offsetLeft: i,
360
+ offsetWidth: s,
361
+ offsetHeight: e
362
+ } = o;
363
+ return {
364
+ top: r,
365
+ right: i + s,
366
+ bottom: r + e,
367
+ left: i,
368
+ width: s,
369
+ height: e
370
+ };
371
+ }
372
+ return {
373
+ measure: t
374
+ };
375
+ }
376
+ function In(t) {
377
+ function n(r) {
378
+ return t * (r / 100);
379
+ }
380
+ return {
381
+ measure: n
382
+ };
383
+ }
384
+ function Tn(t, n, o, r, i, s, e) {
385
+ const a = [t].concat(r);
386
+ let c, u, h = [], p = !1;
387
+ function m(f) {
388
+ return i.measureSize(e.measure(f));
389
+ }
390
+ function b(f) {
391
+ if (!s) return;
392
+ u = m(t), h = r.map(m);
393
+ function l(S) {
394
+ for (const x of S) {
395
+ if (p) return;
396
+ const L = x.target === t, P = r.indexOf(x.target), C = L ? u : h[P], v = m(L ? t : r[P]);
397
+ if (N(v - C) >= 0.5) {
398
+ f.reInit(), n.emit("resize");
399
+ break;
400
+ }
401
+ }
402
+ }
403
+ c = new ResizeObserver((S) => {
404
+ (yt(s) || s(f, S)) && l(S);
405
+ }), o.requestAnimationFrame(() => {
406
+ a.forEach((S) => c.observe(S));
407
+ });
408
+ }
409
+ function d() {
410
+ p = !0, c && c.disconnect();
411
+ }
412
+ return {
413
+ init: b,
414
+ destroy: d
415
+ };
416
+ }
417
+ function Pn(t, n, o, r, i, s) {
418
+ let e = 0, a = 0, c = i, u = s, h = t.get(), p = 0;
419
+ function m() {
420
+ const C = r.get() - t.get(), v = !c;
421
+ let E = 0;
422
+ return v ? (e = 0, o.set(r), t.set(r), E = C) : (o.set(t), e += C / c, e *= u, h += e, t.add(e), E = h - p), a = Dt(E), p = h, P;
423
+ }
424
+ function b() {
425
+ const C = r.get() - n.get();
426
+ return N(C) < 1e-3;
427
+ }
428
+ function d() {
429
+ return c;
430
+ }
431
+ function g() {
432
+ return a;
433
+ }
434
+ function f() {
435
+ return e;
436
+ }
437
+ function l() {
438
+ return x(i);
439
+ }
440
+ function S() {
441
+ return L(s);
442
+ }
443
+ function x(C) {
444
+ return c = C, P;
445
+ }
446
+ function L(C) {
447
+ return u = C, P;
448
+ }
449
+ const P = {
450
+ direction: g,
451
+ duration: d,
452
+ velocity: f,
453
+ seek: m,
454
+ settled: b,
455
+ useBaseFriction: S,
456
+ useBaseDuration: l,
457
+ useFriction: L,
458
+ useDuration: x
459
+ };
460
+ return P;
461
+ }
462
+ function wn(t, n, o, r, i) {
463
+ const s = i.measure(10), e = i.measure(50), a = et(0.1, 0.99);
464
+ let c = !1;
465
+ function u() {
466
+ return !(c || !t.reachedAny(o.get()) || !t.reachedAny(n.get()));
467
+ }
468
+ function h(b) {
469
+ if (!u()) return;
470
+ const d = t.reachedMin(n.get()) ? "min" : "max", g = N(t[d] - n.get()), f = o.get() - n.get(), l = a.constrain(g / e);
471
+ o.subtract(f * l), !b && N(f) < s && (o.set(t.constrain(o.get())), r.useDuration(25).useBaseFriction());
472
+ }
473
+ function p(b) {
474
+ c = !b;
475
+ }
476
+ return {
477
+ shouldConstrain: u,
478
+ constrain: h,
479
+ toggleActive: p
480
+ };
481
+ }
482
+ function On(t, n, o, r, i) {
483
+ const s = et(-n + t, 0), e = p(), a = h(), c = m();
484
+ function u(d, g) {
485
+ return ft(d, g) <= 1;
486
+ }
487
+ function h() {
488
+ const d = e[0], g = $(e), f = e.lastIndexOf(d), l = e.indexOf(g) + 1;
489
+ return et(f, l);
490
+ }
491
+ function p() {
492
+ return o.map((d, g) => {
493
+ const {
494
+ min: f,
495
+ max: l
496
+ } = s, S = s.constrain(d), x = !g, L = Mt(o, g);
497
+ return x ? l : L || u(f, S) ? f : u(l, S) ? l : S;
498
+ }).map((d) => parseFloat(d.toFixed(3)));
499
+ }
500
+ function m() {
501
+ if (n <= t + i) return [s.max];
502
+ if (r === "keepSnaps") return e;
503
+ const {
504
+ min: d,
505
+ max: g
506
+ } = a;
507
+ return e.slice(d, g);
508
+ }
509
+ return {
510
+ snapsContained: c,
511
+ scrollContainLimit: a
512
+ };
513
+ }
514
+ function Nn(t, n, o) {
515
+ const r = n[0], i = o ? r - t : $(n);
516
+ return {
517
+ limit: et(i, r)
518
+ };
519
+ }
520
+ function Dn(t, n, o, r) {
521
+ const s = n.min + 0.1, e = n.max + 0.1, {
522
+ reachedMin: a,
523
+ reachedMax: c
524
+ } = et(s, e);
525
+ function u(m) {
526
+ return m === 1 ? c(o.get()) : m === -1 ? a(o.get()) : !1;
527
+ }
528
+ function h(m) {
529
+ if (!u(m)) return;
530
+ const b = t * (m * -1);
531
+ r.forEach((d) => d.add(b));
532
+ }
533
+ return {
534
+ loop: h
535
+ };
536
+ }
537
+ function Mn(t) {
538
+ const {
539
+ max: n,
540
+ length: o
541
+ } = t;
542
+ function r(s) {
543
+ const e = s - n;
544
+ return o ? e / -o : 0;
545
+ }
546
+ return {
547
+ get: r
548
+ };
549
+ }
550
+ function An(t, n, o, r, i) {
551
+ const {
552
+ startEdge: s,
553
+ endEdge: e
554
+ } = t, {
555
+ groupSlides: a
556
+ } = i, c = p().map(n.measure), u = m(), h = b();
557
+ function p() {
558
+ return a(r).map((g) => $(g)[e] - g[0][s]).map(N);
559
+ }
560
+ function m() {
561
+ return r.map((g) => o[s] - g[s]).map((g) => -N(g));
562
+ }
563
+ function b() {
564
+ return a(u).map((g) => g[0]).map((g, f) => g + c[f]);
565
+ }
566
+ return {
567
+ snaps: u,
568
+ snapsAligned: h
569
+ };
570
+ }
571
+ function Fn(t, n, o, r, i, s) {
572
+ const {
573
+ groupSlides: e
574
+ } = i, {
575
+ min: a,
576
+ max: c
577
+ } = r, u = h();
578
+ function h() {
579
+ const m = e(s), b = !t || n === "keepSnaps";
580
+ return o.length === 1 ? [s] : b ? m : m.slice(a, c).map((d, g, f) => {
581
+ const l = !g, S = Mt(f, g);
582
+ if (l) {
583
+ const x = $(f[0]) + 1;
584
+ return Qt(x);
585
+ }
586
+ if (S) {
587
+ const x = ht(s) - $(f)[0] + 1;
588
+ return Qt(x, $(f)[0]);
589
+ }
590
+ return d;
591
+ });
592
+ }
593
+ return {
594
+ slideRegistry: u
595
+ };
596
+ }
597
+ function kn(t, n, o, r, i) {
598
+ const {
599
+ reachedAny: s,
600
+ removeOffset: e,
601
+ constrain: a
602
+ } = r;
603
+ function c(d) {
604
+ return d.concat().sort((g, f) => N(g) - N(f))[0];
605
+ }
606
+ function u(d) {
607
+ const g = t ? e(d) : a(d), f = n.map((S, x) => ({
608
+ diff: h(S - g, 0),
609
+ index: x
610
+ })).sort((S, x) => N(S.diff) - N(x.diff)), {
611
+ index: l
612
+ } = f[0];
613
+ return {
614
+ index: l,
615
+ distance: g
616
+ };
617
+ }
618
+ function h(d, g) {
619
+ const f = [d, d + o, d - o];
620
+ if (!t) return d;
621
+ if (!g) return c(f);
622
+ const l = f.filter((S) => Dt(S) === g);
623
+ return l.length ? c(l) : $(f) - o;
624
+ }
625
+ function p(d, g) {
626
+ const f = n[d] - i.get(), l = h(f, g);
627
+ return {
628
+ index: d,
629
+ distance: l
630
+ };
631
+ }
632
+ function m(d, g) {
633
+ const f = i.get() + d, {
634
+ index: l,
635
+ distance: S
636
+ } = u(f), x = !t && s(f);
637
+ if (!g || x) return {
638
+ index: l,
639
+ distance: d
640
+ };
641
+ const L = n[l] - S, P = d + h(L, 0);
642
+ return {
643
+ index: l,
644
+ distance: P
645
+ };
646
+ }
647
+ return {
648
+ byDistance: m,
649
+ byIndex: p,
650
+ shortcut: h
651
+ };
652
+ }
653
+ function _n(t, n, o, r, i, s, e) {
654
+ function a(p) {
655
+ const m = p.distance, b = p.index !== n.get();
656
+ s.add(m), m && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), b && (o.set(n.get()), n.set(p.index), e.emit("select"));
657
+ }
658
+ function c(p, m) {
659
+ const b = i.byDistance(p, m);
660
+ a(b);
661
+ }
662
+ function u(p, m) {
663
+ const b = n.clone().set(p), d = i.byIndex(b.get(), m);
664
+ a(d);
665
+ }
666
+ return {
667
+ distance: c,
668
+ index: u
669
+ };
670
+ }
671
+ function Bn(t, n, o, r, i, s, e, a) {
672
+ const c = {
673
+ passive: !0,
674
+ capture: !0
675
+ };
676
+ let u = 0;
677
+ function h(b) {
678
+ if (!a) return;
679
+ function d(g) {
680
+ if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
681
+ e.emit("slideFocusStart"), t.scrollLeft = 0;
682
+ const S = o.findIndex((x) => x.includes(g));
683
+ Nt(S) && (i.useDuration(0), r.index(S, 0), e.emit("slideFocus"));
684
+ }
685
+ s.add(document, "keydown", p, !1), n.forEach((g, f) => {
686
+ s.add(g, "focus", (l) => {
687
+ (yt(a) || a(b, l)) && d(f);
688
+ }, c);
689
+ });
690
+ }
691
+ function p(b) {
692
+ b.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
693
+ }
694
+ return {
695
+ init: h
696
+ };
697
+ }
698
+ function lt(t) {
699
+ let n = t;
700
+ function o() {
701
+ return n;
702
+ }
703
+ function r(c) {
704
+ n = e(c);
705
+ }
706
+ function i(c) {
707
+ n += e(c);
708
+ }
709
+ function s(c) {
710
+ n -= e(c);
711
+ }
712
+ function e(c) {
713
+ return Nt(c) ? c : c.get();
714
+ }
715
+ return {
716
+ get: o,
717
+ set: r,
718
+ add: i,
719
+ subtract: s
720
+ };
721
+ }
722
+ function Yt(t, n) {
723
+ const o = t.scroll === "x" ? e : a, r = n.style;
724
+ let i = null, s = !1;
725
+ function e(m) {
726
+ return `translate3d(${m}px,0px,0px)`;
727
+ }
728
+ function a(m) {
729
+ return `translate3d(0px,${m}px,0px)`;
730
+ }
731
+ function c(m) {
732
+ if (s) return;
733
+ const b = bn(t.direction(m));
734
+ b !== i && (r.transform = o(b), i = b);
735
+ }
736
+ function u(m) {
737
+ s = !m;
738
+ }
739
+ function h() {
740
+ s || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
741
+ }
742
+ return {
743
+ clear: h,
744
+ to: c,
745
+ toggleActive: u
746
+ };
747
+ }
748
+ function Vn(t, n, o, r, i, s, e, a, c) {
749
+ const h = dt(i), p = dt(i).reverse(), m = l().concat(S());
750
+ function b(v, E) {
751
+ return v.reduce((I, D) => I - i[D], E);
752
+ }
753
+ function d(v, E) {
754
+ return v.reduce((I, D) => b(I, E) > 0 ? I.concat([D]) : I, []);
755
+ }
756
+ function g(v) {
757
+ return s.map((E, I) => ({
758
+ start: E - r[I] + 0.5 + v,
759
+ end: E + n - 0.5 + v
760
+ }));
761
+ }
762
+ function f(v, E, I) {
763
+ const D = g(E);
764
+ return v.map((T) => {
765
+ const M = I ? 0 : -o, F = I ? o : 0, _ = I ? "end" : "start", j = D[T][_];
766
+ return {
767
+ index: T,
768
+ loopPoint: j,
769
+ slideLocation: lt(-1),
770
+ translate: Yt(t, c[T]),
771
+ target: () => a.get() > j ? M : F
772
+ };
773
+ });
774
+ }
775
+ function l() {
776
+ const v = e[0], E = d(p, v);
777
+ return f(E, o, !1);
778
+ }
779
+ function S() {
780
+ const v = n - e[0] - 1, E = d(h, v);
781
+ return f(E, -o, !0);
782
+ }
783
+ function x() {
784
+ return m.every(({
785
+ index: v
786
+ }) => {
787
+ const E = h.filter((I) => I !== v);
788
+ return b(E, n) <= 0.1;
789
+ });
790
+ }
791
+ function L() {
792
+ m.forEach((v) => {
793
+ const {
794
+ target: E,
795
+ translate: I,
796
+ slideLocation: D
797
+ } = v, T = E();
798
+ T !== D.get() && (I.to(T), D.set(T));
799
+ });
800
+ }
801
+ function P() {
802
+ m.forEach((v) => v.translate.clear());
803
+ }
804
+ return {
805
+ canLoop: x,
806
+ clear: P,
807
+ loop: L,
808
+ loopPoints: m
809
+ };
810
+ }
811
+ function jn(t, n, o) {
812
+ let r, i = !1;
813
+ function s(c) {
814
+ if (!o) return;
815
+ function u(h) {
816
+ for (const p of h)
817
+ if (p.type === "childList") {
818
+ c.reInit(), n.emit("slidesChanged");
819
+ break;
820
+ }
821
+ }
822
+ r = new MutationObserver((h) => {
823
+ i || (yt(o) || o(c, h)) && u(h);
824
+ }), r.observe(t, {
825
+ childList: !0
826
+ });
827
+ }
828
+ function e() {
829
+ r && r.disconnect(), i = !0;
830
+ }
831
+ return {
832
+ init: s,
833
+ destroy: e
834
+ };
835
+ }
836
+ function zn(t, n, o, r) {
837
+ const i = {};
838
+ let s = null, e = null, a, c = !1;
839
+ function u() {
840
+ a = new IntersectionObserver((d) => {
841
+ c || (d.forEach((g) => {
842
+ const f = n.indexOf(g.target);
843
+ i[f] = g;
844
+ }), s = null, e = null, o.emit("slidesInView"));
845
+ }, {
846
+ root: t.parentElement,
847
+ threshold: r
848
+ }), n.forEach((d) => a.observe(d));
849
+ }
850
+ function h() {
851
+ a && a.disconnect(), c = !0;
852
+ }
853
+ function p(d) {
854
+ return pt(i).reduce((g, f) => {
855
+ const l = parseInt(f), {
856
+ isIntersecting: S
857
+ } = i[l];
858
+ return (d && S || !d && !S) && g.push(l), g;
859
+ }, []);
860
+ }
861
+ function m(d = !0) {
862
+ if (d && s) return s;
863
+ if (!d && e) return e;
864
+ const g = p(d);
865
+ return d && (s = g), d || (e = g), g;
866
+ }
867
+ return {
868
+ init: u,
869
+ destroy: h,
870
+ get: m
871
+ };
872
+ }
873
+ function Rn(t, n, o, r, i, s) {
874
+ const {
875
+ measureSize: e,
876
+ startEdge: a,
877
+ endEdge: c
878
+ } = t, u = o[0] && i, h = d(), p = g(), m = o.map(e), b = f();
879
+ function d() {
880
+ if (!u) return 0;
881
+ const S = o[0];
882
+ return N(n[a] - S[a]);
883
+ }
884
+ function g() {
885
+ if (!u) return 0;
886
+ const S = s.getComputedStyle($(r));
887
+ return parseFloat(S.getPropertyValue(`margin-${c}`));
888
+ }
889
+ function f() {
890
+ return o.map((S, x, L) => {
891
+ const P = !x, C = Mt(L, x);
892
+ return P ? m[x] + h : C ? m[x] + p : L[x + 1][a] - S[a];
893
+ }).map(N);
894
+ }
895
+ return {
896
+ slideSizes: m,
897
+ slideSizesWithGaps: b,
898
+ startGap: h,
899
+ endGap: p
900
+ };
901
+ }
902
+ function $n(t, n, o, r, i, s, e, a, c) {
903
+ const {
904
+ startEdge: u,
905
+ endEdge: h,
906
+ direction: p
907
+ } = t, m = Nt(o);
908
+ function b(l, S) {
909
+ return dt(l).filter((x) => x % S === 0).map((x) => l.slice(x, x + S));
910
+ }
911
+ function d(l) {
912
+ return l.length ? dt(l).reduce((S, x, L) => {
913
+ const P = $(S) || 0, C = P === 0, v = x === ht(l), E = i[u] - s[P][u], I = i[u] - s[x][h], D = !r && C ? p(e) : 0, T = !r && v ? p(a) : 0, M = N(I - T - (E + D));
914
+ return L && M > n + c && S.push(x), v && S.push(l.length), S;
915
+ }, []).map((S, x, L) => {
916
+ const P = Math.max(L[x - 1] || 0);
917
+ return l.slice(P, S);
918
+ }) : [];
919
+ }
920
+ function g(l) {
921
+ return m ? b(l, o) : d(l);
922
+ }
923
+ return {
924
+ groupSlides: g
925
+ };
926
+ }
927
+ function Gn(t, n, o, r, i, s, e) {
928
+ const {
929
+ align: a,
930
+ axis: c,
931
+ direction: u,
932
+ startIndex: h,
933
+ loop: p,
934
+ duration: m,
935
+ dragFree: b,
936
+ dragThreshold: d,
937
+ inViewThreshold: g,
938
+ slidesToScroll: f,
939
+ skipSnaps: l,
940
+ containScroll: S,
941
+ watchResize: x,
942
+ watchSlides: L,
943
+ watchDrag: P,
944
+ watchFocus: C
945
+ } = s, v = 2, E = Ln(), I = E.measure(n), D = o.map(E.measure), T = vn(c, u), M = T.measureSize(I), F = In(M), _ = yn(a, M), j = !p && !!S, W = p || !!S, {
946
+ slideSizes: Y,
947
+ slideSizesWithGaps: q,
948
+ startGap: U,
949
+ endGap: it
950
+ } = Rn(T, I, D, o, W, i), G = $n(T, M, f, p, I, D, U, it, v), {
951
+ snaps: ot,
952
+ snapsAligned: rt
953
+ } = An(T, _, I, D, G), K = -$(ot) + $(q), {
954
+ snapsContained: ct,
955
+ scrollContainLimit: ut
956
+ } = On(M, K, rt, S, v), z = j ? ct : rt, {
957
+ limit: B
958
+ } = Nn(K, z, p), Q = Xt(ht(z), h, p), R = Q.clone(), O = dt(o), y = ({
959
+ dragHandler: st,
960
+ scrollBody: Lt,
961
+ scrollBounds: It,
962
+ options: {
963
+ loop: St
964
+ }
965
+ }) => {
966
+ St || It.constrain(st.pointerDown()), Lt.seek();
967
+ }, w = ({
968
+ scrollBody: st,
969
+ translate: Lt,
970
+ location: It,
971
+ offsetLocation: St,
972
+ previousLocation: nn,
973
+ scrollLooper: en,
974
+ slideLooper: on,
975
+ dragHandler: rn,
976
+ animation: sn,
977
+ eventHandler: Bt,
978
+ scrollBounds: cn,
979
+ options: {
980
+ loop: Vt
981
+ }
982
+ }, jt) => {
983
+ const zt = st.settled(), un = !cn.shouldConstrain(), Rt = Vt ? zt : zt && un, $t = Rt && !rn.pointerDown();
984
+ $t && sn.stop();
985
+ const an = It.get() * jt + nn.get() * (1 - jt);
986
+ St.set(an), Vt && (en.loop(st.direction()), on.loop()), Lt.to(St.get()), $t && Bt.emit("settle"), Rt || Bt.emit("scroll");
987
+ }, A = xn(r, i, () => y(Ct), (st) => w(Ct, st)), V = 0.68, H = z[Q.get()], J = lt(H), tt = lt(H), Z = lt(H), nt = lt(H), at = Pn(J, Z, tt, nt, m, V), vt = kn(p, z, K, B, nt), Et = _n(A, Q, R, at, vt, nt, e), Ft = Mn(B), kt = mt(), Wt = zn(n, o, e, g), {
988
+ slideRegistry: _t
989
+ } = Fn(j, S, z, ut, G, O), tn = Bn(t, o, _t, Et, at, kt, e, C), Ct = {
990
+ ownerDocument: r,
991
+ ownerWindow: i,
992
+ eventHandler: e,
993
+ containerRect: I,
994
+ slideRects: D,
995
+ animation: A,
996
+ axis: T,
997
+ dragHandler: En(T, t, r, i, nt, Cn(T, i), J, A, Et, at, vt, Q, e, F, b, d, l, V, P),
998
+ eventStore: kt,
999
+ percentOfView: F,
1000
+ index: Q,
1001
+ indexPrevious: R,
1002
+ limit: B,
1003
+ location: J,
1004
+ offsetLocation: Z,
1005
+ previousLocation: tt,
1006
+ options: s,
1007
+ resizeHandler: Tn(n, e, i, o, T, x, E),
1008
+ scrollBody: at,
1009
+ scrollBounds: wn(B, Z, nt, at, F),
1010
+ scrollLooper: Dn(K, B, Z, [J, Z, tt, nt]),
1011
+ scrollProgress: Ft,
1012
+ scrollSnapList: z.map(Ft.get),
1013
+ scrollSnaps: z,
1014
+ scrollTarget: vt,
1015
+ scrollTo: Et,
1016
+ slideLooper: Vn(T, M, K, Y, q, ot, z, Z, o),
1017
+ slideFocus: tn,
1018
+ slidesHandler: jn(n, e, L),
1019
+ slidesInView: Wt,
1020
+ slideIndexes: O,
1021
+ slideRegistry: _t,
1022
+ slidesToScroll: G,
1023
+ target: nt,
1024
+ translate: Yt(T, n)
1025
+ };
1026
+ return Ct;
1027
+ }
1028
+ function Hn() {
1029
+ let t = {}, n;
1030
+ function o(u) {
1031
+ n = u;
1032
+ }
1033
+ function r(u) {
1034
+ return t[u] || [];
1035
+ }
1036
+ function i(u) {
1037
+ return r(u).forEach((h) => h(n, u)), c;
1038
+ }
1039
+ function s(u, h) {
1040
+ return t[u] = r(u).concat([h]), c;
1041
+ }
1042
+ function e(u, h) {
1043
+ return t[u] = r(u).filter((p) => p !== h), c;
1044
+ }
1045
+ function a() {
1046
+ t = {};
1047
+ }
1048
+ const c = {
1049
+ init: o,
1050
+ emit: i,
1051
+ off: e,
1052
+ on: s,
1053
+ clear: a
1054
+ };
1055
+ return c;
1056
+ }
1057
+ const qn = {
1058
+ align: "center",
1059
+ axis: "x",
1060
+ container: null,
1061
+ slides: null,
1062
+ containScroll: "trimSnaps",
1063
+ direction: "ltr",
1064
+ slidesToScroll: 1,
1065
+ inViewThreshold: 0,
1066
+ breakpoints: {},
1067
+ dragFree: !1,
1068
+ dragThreshold: 10,
1069
+ loop: !1,
1070
+ skipSnaps: !1,
1071
+ duration: 25,
1072
+ startIndex: 0,
1073
+ active: !0,
1074
+ watchDrag: !0,
1075
+ watchResize: !0,
1076
+ watchSlides: !0,
1077
+ watchFocus: !0
1078
+ };
1079
+ function Un(t) {
1080
+ function n(s, e) {
1081
+ return Jt(s, e || {});
1082
+ }
1083
+ function o(s) {
1084
+ const e = s.breakpoints || {}, a = pt(e).filter((c) => t.matchMedia(c).matches).map((c) => e[c]).reduce((c, u) => n(c, u), {});
1085
+ return n(s, a);
1086
+ }
1087
+ function r(s) {
1088
+ return s.map((e) => pt(e.breakpoints || {})).reduce((e, a) => e.concat(a), []).map(t.matchMedia);
1089
+ }
1090
+ return {
1091
+ mergeOptions: n,
1092
+ optionsAtMedia: o,
1093
+ optionsMediaQueries: r
1094
+ };
1095
+ }
1096
+ function Kn(t) {
1097
+ let n = [];
1098
+ function o(s, e) {
1099
+ return n = e.filter(({
1100
+ options: a
1101
+ }) => t.optionsAtMedia(a).active !== !1), n.forEach((a) => a.init(s, t)), e.reduce((a, c) => Object.assign(a, {
1102
+ [c.name]: c
1103
+ }), {});
1104
+ }
1105
+ function r() {
1106
+ n = n.filter((s) => s.destroy());
1107
+ }
1108
+ return {
1109
+ init: o,
1110
+ destroy: r
1111
+ };
1112
+ }
1113
+ function bt(t, n, o) {
1114
+ const r = t.ownerDocument, i = r.defaultView, s = Un(i), e = Kn(s), a = mt(), c = Hn(), {
1115
+ mergeOptions: u,
1116
+ optionsAtMedia: h,
1117
+ optionsMediaQueries: p
1118
+ } = s, {
1119
+ on: m,
1120
+ off: b,
1121
+ emit: d
1122
+ } = c, g = T;
1123
+ let f = !1, l, S = u(qn, bt.globalOptions), x = u(S), L = [], P, C, v;
1124
+ function E() {
1125
+ const {
1126
+ container: O,
1127
+ slides: y
1128
+ } = x;
1129
+ C = (Pt(O) ? t.querySelector(O) : O) || t.children[0];
1130
+ const A = Pt(y) ? C.querySelectorAll(y) : y;
1131
+ v = [].slice.call(A || C.children);
1132
+ }
1133
+ function I(O) {
1134
+ const y = Gn(t, C, v, r, i, O, c);
1135
+ if (O.loop && !y.slideLooper.canLoop()) {
1136
+ const w = Object.assign({}, O, {
1137
+ loop: !1
1138
+ });
1139
+ return I(w);
1140
+ }
1141
+ return y;
1142
+ }
1143
+ function D(O, y) {
1144
+ f || (S = u(S, O), x = h(S), L = y || L, E(), l = I(x), p([S, ...L.map(({
1145
+ options: w
1146
+ }) => w)]).forEach((w) => a.add(w, "change", T)), x.active && (l.translate.to(l.location.get()), l.animation.init(), l.slidesInView.init(), l.slideFocus.init(R), l.eventHandler.init(R), l.resizeHandler.init(R), l.slidesHandler.init(R), l.options.loop && l.slideLooper.loop(), C.offsetParent && v.length && l.dragHandler.init(R), P = e.init(R, L)));
1147
+ }
1148
+ function T(O, y) {
1149
+ const w = G();
1150
+ M(), D(u({
1151
+ startIndex: w
1152
+ }, O), y), c.emit("reInit");
1153
+ }
1154
+ function M() {
1155
+ l.dragHandler.destroy(), l.eventStore.clear(), l.translate.clear(), l.slideLooper.clear(), l.resizeHandler.destroy(), l.slidesHandler.destroy(), l.slidesInView.destroy(), l.animation.destroy(), e.destroy(), a.clear();
1156
+ }
1157
+ function F() {
1158
+ f || (f = !0, a.clear(), M(), c.emit("destroy"), c.clear());
1159
+ }
1160
+ function _(O, y, w) {
1161
+ !x.active || f || (l.scrollBody.useBaseFriction().useDuration(y === !0 ? 0 : x.duration), l.scrollTo.index(O, w || 0));
1162
+ }
1163
+ function j(O) {
1164
+ const y = l.index.add(1).get();
1165
+ _(y, O, -1);
1166
+ }
1167
+ function W(O) {
1168
+ const y = l.index.add(-1).get();
1169
+ _(y, O, 1);
1170
+ }
1171
+ function Y() {
1172
+ return l.index.add(1).get() !== G();
1173
+ }
1174
+ function q() {
1175
+ return l.index.add(-1).get() !== G();
1176
+ }
1177
+ function U() {
1178
+ return l.scrollSnapList;
1179
+ }
1180
+ function it() {
1181
+ return l.scrollProgress.get(l.offsetLocation.get());
1182
+ }
1183
+ function G() {
1184
+ return l.index.get();
1185
+ }
1186
+ function ot() {
1187
+ return l.indexPrevious.get();
1188
+ }
1189
+ function rt() {
1190
+ return l.slidesInView.get();
1191
+ }
1192
+ function K() {
1193
+ return l.slidesInView.get(!1);
1194
+ }
1195
+ function ct() {
1196
+ return P;
1197
+ }
1198
+ function ut() {
1199
+ return l;
1200
+ }
1201
+ function z() {
1202
+ return t;
1203
+ }
1204
+ function B() {
1205
+ return C;
1206
+ }
1207
+ function Q() {
1208
+ return v;
1209
+ }
1210
+ const R = {
1211
+ canScrollNext: Y,
1212
+ canScrollPrev: q,
1213
+ containerNode: B,
1214
+ internalEngine: ut,
1215
+ destroy: F,
1216
+ off: b,
1217
+ on: m,
1218
+ emit: d,
1219
+ plugins: ct,
1220
+ previousScrollSnap: ot,
1221
+ reInit: g,
1222
+ rootNode: z,
1223
+ scrollNext: j,
1224
+ scrollPrev: W,
1225
+ scrollProgress: it,
1226
+ scrollSnapList: U,
1227
+ scrollTo: _,
1228
+ selectedScrollSnap: G,
1229
+ slideNodes: Q,
1230
+ slidesInView: rt,
1231
+ slidesNotInView: K
1232
+ };
1233
+ return D(n, o), setTimeout(() => c.emit("init"), 0), R;
1234
+ }
1235
+ bt.globalOptions = void 0;
1236
+ function At(t = {}, n = []) {
1237
+ const o = Gt(t), r = Gt(n), [i, s] = Ht(), [e, a] = Ht(), c = fn(() => {
1238
+ i && i.reInit(o.current, r.current);
1239
+ }, [i]);
1240
+ return Tt(() => {
1241
+ Ot(o.current, t) || (o.current = t, c());
1242
+ }, [t, c]), Tt(() => {
1243
+ hn(r.current, n) || (r.current = n, c());
1244
+ }, [n, c]), Tt(() => {
1245
+ if (gn() && e) {
1246
+ bt.globalOptions = At.globalOptions;
1247
+ const u = bt(e, o.current, r.current);
1248
+ return s(u), () => u.destroy();
1249
+ } else
1250
+ s(void 0);
1251
+ }, [e, s]), [a, i];
1252
+ }
1253
+ At.globalOptions = void 0;
1254
+ const Zt = k.createContext(void 0);
1255
+ function xt() {
1256
+ const t = k.useContext(Zt);
1257
+ if (!t)
1258
+ throw new Error("Carousel components must be used within a Carousel.");
1259
+ return t;
1260
+ }
1261
+ const Qn = k.forwardRef(
1262
+ ({
1263
+ opts: t,
1264
+ basis: n = 1,
1265
+ basisSm: o,
1266
+ basisMd: r,
1267
+ basisLg: i,
1268
+ basisXl: s,
1269
+ basis2xl: e,
1270
+ orientation: a = "horizontal",
1271
+ plugins: c,
1272
+ setApi: u,
1273
+ events: h,
1274
+ className: p,
1275
+ children: m,
1276
+ ...b
1277
+ }, d) => {
1278
+ const [g, f] = At(
1279
+ {
1280
+ ...t,
1281
+ axis: a === "horizontal" ? "x" : "y"
1282
+ },
1283
+ c
1284
+ ), [l, S] = k.useState(!1), [x, L] = k.useState(!1), P = k.useCallback(() => {
1285
+ f == null || f.scrollPrev();
1286
+ }, [f]), C = k.useCallback(() => {
1287
+ f == null || f.scrollNext();
1288
+ }, [f]), v = k.useCallback((M) => {
1289
+ M && (S(M.canScrollPrev()), L(M.canScrollNext()));
1290
+ }, []);
1291
+ k.useEffect(() => {
1292
+ if (f)
1293
+ return u == null || u(f), v(f), f.on("reInit", v).on("select", v), () => {
1294
+ f.off("reInit", v).off("select", v);
1295
+ };
1296
+ }, [f, v, u]), k.useEffect(() => {
1297
+ if (!f || !h) return;
1298
+ const M = Object.entries(h).flatMap(([F, _]) => {
1299
+ if (!_) return [];
1300
+ const j = () => _(f, F);
1301
+ return f.on(F, j), [[F, j]];
1302
+ });
1303
+ return () => {
1304
+ M.forEach(([F, _]) => {
1305
+ f.off(F, _);
1306
+ });
1307
+ };
1308
+ }, [f, h]);
1309
+ const E = k.useMemo(
1310
+ () => ({
1311
+ api: f,
1312
+ basis: n,
1313
+ responsiveBasis: {
1314
+ sm: o,
1315
+ md: r,
1316
+ lg: i,
1317
+ xl: s,
1318
+ "2xl": e
1319
+ },
1320
+ orientation: a,
1321
+ scrollPrev: P,
1322
+ scrollNext: C,
1323
+ canScrollPrev: l,
1324
+ canScrollNext: x
1325
+ }),
1326
+ [
1327
+ f,
1328
+ n,
1329
+ o,
1330
+ r,
1331
+ i,
1332
+ s,
1333
+ e,
1334
+ a,
1335
+ P,
1336
+ C,
1337
+ l,
1338
+ x
1339
+ ]
1340
+ ), I = k.Children.toArray(m), [D, ...T] = I;
1341
+ return /* @__PURE__ */ X(Zt.Provider, { value: E, children: /* @__PURE__ */ ln("div", { ref: d, className: gt("carousel", p), ...b, children: [
1342
+ T.length > 0 ? /* @__PURE__ */ X("div", { className: "carousel__controls", "data-slot": "carousel-controls", children: T }) : null,
1343
+ /* @__PURE__ */ X("div", { ref: g, className: "carousel__viewport", children: D })
1344
+ ] }) });
1345
+ }
1346
+ );
1347
+ Qn.displayName = "Carousel";
1348
+ const Jn = k.forwardRef(
1349
+ ({ className: t, ...n }, o) => {
1350
+ const { orientation: r } = xt();
1351
+ return /* @__PURE__ */ X(
1352
+ "div",
1353
+ {
1354
+ ref: o,
1355
+ className: gt("carousel__content", `carousel__content--${r}`, t),
1356
+ ...n
1357
+ }
1358
+ );
1359
+ }
1360
+ );
1361
+ Jn.displayName = "CarouselContent";
1362
+ const Xn = k.forwardRef(
1363
+ ({ basis: t, basisSm: n, basisMd: o, basisLg: r, basisXl: i, basis2xl: s, className: e, ...a }, c) => {
1364
+ const { basis: u, responsiveBasis: h, orientation: p } = xt(), m = t ?? u, b = n ?? h.sm, d = o ?? h.md, g = r ?? h.lg, f = i ?? h.xl, l = s ?? h["2xl"];
1365
+ return /* @__PURE__ */ X(
1366
+ "div",
1367
+ {
1368
+ ref: c,
1369
+ className: gt(
1370
+ "carousel__item",
1371
+ `carousel__item--${p}`,
1372
+ `carousel__item--basis-${m}`,
1373
+ b != null && `carousel__item--basis-sm-${b}`,
1374
+ d != null && `carousel__item--basis-md-${d}`,
1375
+ g != null && `carousel__item--basis-lg-${g}`,
1376
+ f != null && `carousel__item--basis-xl-${f}`,
1377
+ l != null && `carousel__item--basis-2xl-${l}`,
1378
+ e
1379
+ ),
1380
+ ...a
1381
+ }
1382
+ );
1383
+ }
1384
+ );
1385
+ Xn.displayName = "CarouselItem";
1386
+ const Yn = k.forwardRef(
1387
+ ({ className: t, ...n }, o) => {
1388
+ const { scrollPrev: r, canScrollPrev: i } = xt();
1389
+ return /* @__PURE__ */ X(
1390
+ "button",
1391
+ {
1392
+ ref: o,
1393
+ type: "button",
1394
+ className: gt("carousel__prev", t),
1395
+ disabled: !i,
1396
+ onClick: r,
1397
+ "aria-label": "Previous slide",
1398
+ ...n,
1399
+ children: /* @__PURE__ */ X(dn, {})
1400
+ }
1401
+ );
1402
+ }
1403
+ );
1404
+ Yn.displayName = "CarouselPrevious";
1405
+ const Zn = k.forwardRef(
1406
+ ({ className: t, ...n }, o) => {
1407
+ const { scrollNext: r, canScrollNext: i } = xt();
1408
+ return /* @__PURE__ */ X(
1409
+ "button",
1410
+ {
1411
+ ref: o,
1412
+ type: "button",
1413
+ className: gt("carousel__next", t),
1414
+ disabled: !i,
1415
+ onClick: r,
1416
+ "aria-label": "Next slide",
1417
+ ...n,
1418
+ children: /* @__PURE__ */ X(pn, {})
1419
+ }
1420
+ );
1421
+ }
1422
+ );
1423
+ Zn.displayName = "CarouselNext";
1424
+ export {
1425
+ Qn as C,
1426
+ Jn as a,
1427
+ Xn as b,
1428
+ Yn as c,
1429
+ Zn as d,
1430
+ xt as u
1431
+ };