@orchidui/dashboard 1.8.1-95 → 1.8.1-96

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.
Files changed (164) hide show
  1. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +295 -0
  2. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +891 -0
  3. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +68 -0
  4. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +172 -0
  5. package/dist/CollapsibleTrigger-fCarY5DJ.js +154 -0
  6. package/dist/Collection-COudIl-A.js +55 -0
  7. package/dist/ConfigProvider-7mV0D7Sp.js +6 -0
  8. package/dist/Dashboard/Card/OcCard.js +1 -1
  9. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  10. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +68 -0
  11. package/dist/DialogOverlay-Cj3UTjZ8.js +309 -0
  12. package/dist/DialogPortal-zAvO8zt4.js +23 -0
  13. package/dist/DialogTrigger-BIF1A4hk.js +72 -0
  14. package/dist/DismissableLayer-C7IJliOb.js +151 -0
  15. package/dist/FocusScope--pJ6bboI.js +121 -0
  16. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +92 -0
  17. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +27 -0
  18. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +51 -0
  19. package/dist/ListboxItem-CjMk-mEX.js +417 -0
  20. package/dist/MenuSubTrigger-CUrxnPwO.js +845 -0
  21. package/dist/{OcCard-D3be6IMj.js → OcCard-B3SCzVwn.js} +54 -58
  22. package/dist/{OcLottieAnimation-0mdksHMn.js → OcLottieAnimation-DeMoIDaX.js} +1 -1
  23. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +394 -0
  24. package/dist/PopperContent-BT3Svcc3.js +1465 -0
  25. package/dist/Presence-CxfTrw6l.js +133 -0
  26. package/dist/Primitive-B3twiLO1.js +44 -0
  27. package/dist/{QuillEditor-DRwC0sgJ.js → QuillEditor-hFQ0MJZO.js} +556 -579
  28. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +297 -0
  29. package/dist/RovingFocusGroup-0OHdFQl0.js +92 -0
  30. package/dist/RovingFocusItem-s7Ug6oxb.js +82 -0
  31. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +1255 -0
  32. package/dist/Separator-DRam5i7g.js +54 -0
  33. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +27 -0
  34. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +17 -0
  35. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +135 -0
  36. package/dist/Teleport-DnUewq5H.js +25 -0
  37. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +27 -0
  38. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +426 -0
  39. package/dist/VisuallyHidden-DMAU4heD.js +41 -0
  40. package/dist/VisuallyHiddenInput-DvJnsVHt.js +59 -0
  41. package/dist/_commonjsHelpers-B4e78b8K.js +28 -0
  42. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  43. package/dist/array-CqVTtuYm.js +6 -0
  44. package/dist/arrays-4jDZqbdb.js +20 -0
  45. package/dist/check-C2tzJ0Gk.js +11 -0
  46. package/dist/chevron-down-CnpAlizg.js +13 -0
  47. package/dist/chevron-left-BOwFasou.js +13 -0
  48. package/dist/chevron-right-D308801z.js +13 -0
  49. package/dist/circle-A-6NpYiX.js +13 -0
  50. package/dist/clamp-BL1Rb24G.js +22 -0
  51. package/dist/constant-CuDQlTIy.js +3433 -0
  52. package/dist/createContext-CZEfaSVa.js +17 -0
  53. package/dist/createLucideIcon-eXqDwUWj.js +71 -0
  54. package/dist/ellipsis-CEG9G7eN.js +15 -0
  55. package/dist/getActiveElement-B-HWdUIb.js +11 -0
  56. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +11 -0
  57. package/dist/index-B3LW8uSH.js +133 -0
  58. package/dist/index-BIlpXuWX.js +3430 -0
  59. package/dist/index-BlGEiPHj.js +1246 -0
  60. package/dist/index-BwPb_idr.js +574 -0
  61. package/dist/index-C9julNQm.js +173 -0
  62. package/dist/index-C_aI-Wfj.js +34 -0
  63. package/dist/index-CumjCvqB.js +5703 -0
  64. package/dist/index-LqWMCtOd.js +809 -0
  65. package/dist/index-OpE2oGce.js +110 -0
  66. package/dist/index.js +3 -3
  67. package/dist/isValueEqualOrExist-BDSMUv8t.js +8 -0
  68. package/dist/lib/utils.js +5 -0
  69. package/dist/nullish-CjWwlQS3.js +6 -0
  70. package/dist/ohash.D__AXeF1-DX2n0b2C.js +106 -0
  71. package/dist/plus-CgluTYQY.js +14 -0
  72. package/dist/text-zwICaAnx.js +743 -0
  73. package/dist/ui/accordion/index.js +7 -0
  74. package/dist/ui/alert/index.js +64 -0
  75. package/dist/ui/alert-dialog/index.js +356 -0
  76. package/dist/ui/aspect-ratio/index.js +50 -0
  77. package/dist/ui/auto-form/constant.js +5 -0
  78. package/dist/ui/auto-form/dependencies.js +61 -0
  79. package/dist/ui/auto-form/index.js +227 -0
  80. package/dist/ui/auto-form/interface.js +4 -0
  81. package/dist/ui/auto-form/utils.js +89 -0
  82. package/dist/ui/avatar/index.js +189 -0
  83. package/dist/ui/badge/index.js +37 -0
  84. package/dist/ui/breadcrumb/index.js +126 -0
  85. package/dist/ui/button/index.js +55 -0
  86. package/dist/ui/calendar/index.js +15 -0
  87. package/dist/ui/card/index.js +38 -0
  88. package/dist/ui/carousel/index.js +174 -0
  89. package/dist/ui/carousel/interface.js +1 -0
  90. package/dist/ui/carousel/useCarousel.js +1288 -0
  91. package/dist/ui/chart/index.js +8 -0
  92. package/dist/ui/chart/interface.js +1 -0
  93. package/dist/ui/chart-area/index.js +331 -0
  94. package/dist/ui/chart-bar/index.js +490 -0
  95. package/dist/ui/chart-donut/index.js +509 -0
  96. package/dist/ui/chart-line/index.js +110 -0
  97. package/dist/ui/checkbox/index.js +4 -0
  98. package/dist/ui/collapsible/index.js +60 -0
  99. package/dist/ui/combobox/index.js +877 -0
  100. package/dist/ui/command/index.js +323 -0
  101. package/dist/ui/context-menu/index.js +734 -0
  102. package/dist/ui/dialog/index.js +169 -0
  103. package/dist/ui/drawer/index.js +971 -0
  104. package/dist/ui/dropdown-menu/index.js +723 -0
  105. package/dist/ui/form/index.js +13 -0
  106. package/dist/ui/form/injectionKeys.js +4 -0
  107. package/dist/ui/form/useFormField.js +25 -0
  108. package/dist/ui/hover-card/index.js +331 -0
  109. package/dist/ui/input/index.js +4 -0
  110. package/dist/ui/label/index.js +4 -0
  111. package/dist/ui/menubar/index.js +862 -0
  112. package/dist/ui/navigation-menu/index.js +873 -0
  113. package/dist/ui/number-field/index.js +682 -0
  114. package/dist/ui/pagination/index.js +444 -0
  115. package/dist/ui/pin-input/index.js +308 -0
  116. package/dist/ui/popover/index.js +6 -0
  117. package/dist/ui/progress/index.js +137 -0
  118. package/dist/ui/radio-group/index.js +5 -0
  119. package/dist/ui/range-calendar/index.js +986 -0
  120. package/dist/ui/resizable/index.js +1432 -0
  121. package/dist/ui/scroll-area/index.js +775 -0
  122. package/dist/ui/select/index.js +135 -0
  123. package/dist/ui/separator/index.js +4 -0
  124. package/dist/ui/sheet/index.js +188 -0
  125. package/dist/ui/sidebar/index.js +652 -0
  126. package/dist/ui/sidebar/utils.js +12 -0
  127. package/dist/ui/skeleton/index.js +4 -0
  128. package/dist/ui/slider/index.js +478 -0
  129. package/dist/ui/sonner/index.js +892 -0
  130. package/dist/ui/stepper/index.js +442 -0
  131. package/dist/ui/switch/index.js +4 -0
  132. package/dist/ui/table/index.js +153 -0
  133. package/dist/ui/tabs/index.js +280 -0
  134. package/dist/ui/tags-input/index.js +449 -0
  135. package/dist/ui/textarea/index.js +4 -0
  136. package/dist/ui/toast/index.js +738 -0
  137. package/dist/ui/toast/use-toast.js +85 -0
  138. package/dist/ui/toggle/index.js +6 -0
  139. package/dist/ui/toggle-group/index.js +112 -0
  140. package/dist/ui/tooltip/index.js +29 -0
  141. package/dist/useArrowNavigation-BRMPveaB.js +49 -0
  142. package/dist/useBodyScrollLock-CazCRZjZ.js +153 -0
  143. package/dist/useDirection-C3C_TLKm.js +14 -0
  144. package/dist/useFocusGuards-CyjC9cG9.js +26 -0
  145. package/dist/useFormControl-CFVC51Lp.js +11 -0
  146. package/dist/useForwardExpose-DZT6mL_U.js +37 -0
  147. package/dist/useForwardPropsEmits-0XKBv1pB.js +33 -0
  148. package/dist/useGraceArea-D7-GP1ii.js +137 -0
  149. package/dist/useId-reAg216X.js +13 -0
  150. package/dist/useKbd-BJNupnml.js +41 -0
  151. package/dist/useLocale-BfU0LC8Z.js +14 -0
  152. package/dist/useNonce-C1ZOgOp5.js +14 -0
  153. package/dist/usePrimitiveElement-BjwUvHih.js +15 -0
  154. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +43 -0
  155. package/dist/useSize-BnyQ8FZF.js +37 -0
  156. package/dist/useTypeahead-oSidjyFF.js +40 -0
  157. package/dist/utils-DKNaYMZh.js +57 -0
  158. package/dist/utils-Dx9la83v.js +35 -0
  159. package/dist/utils-DxQ_ywGa.js +55 -0
  160. package/dist/utils-SFgRDk1R.js +2748 -0
  161. package/dist/utils-W-UiqiPE.js +1869 -0
  162. package/dist/vee-validate-Cf8JDJ_k.js +2232 -0
  163. package/dist/x-Cl6YllUK.js +14 -0
  164. package/package.json +264 -2
@@ -0,0 +1,1288 @@
1
+ import { isRef as jt, shallowRef as zt, onMounted as Kt, onBeforeUnmount as cn, watch as Rt, ref as Gt } from "vue";
2
+ import { f as un } from "../../index-OpE2oGce.js";
3
+ function fn(t) {
4
+ return Object.prototype.toString.call(t) === "[object Object]";
5
+ }
6
+ function Ht(t) {
7
+ return fn(t) || Array.isArray(t);
8
+ }
9
+ function an() {
10
+ return !!(typeof window < "u" && window.document && window.document.createElement);
11
+ }
12
+ function It(t, n) {
13
+ const r = Object.keys(t), s = Object.keys(n);
14
+ if (r.length !== s.length) return !1;
15
+ const c = JSON.stringify(Object.keys(t.breakpoints || {})), e = JSON.stringify(Object.keys(n.breakpoints || {}));
16
+ return c !== e ? !1 : r.every((o) => {
17
+ const u = t[o], i = n[o];
18
+ return typeof u == "function" ? `${u}` == `${i}` : !Ht(u) || !Ht(i) ? u === i : It(u, i);
19
+ });
20
+ }
21
+ function qt(t) {
22
+ return t.concat().sort((n, r) => n.name > r.name ? 1 : -1).map((n) => n.options);
23
+ }
24
+ function ln(t, n) {
25
+ if (t.length !== n.length) return !1;
26
+ const r = qt(t), s = qt(n);
27
+ return r.every((c, e) => {
28
+ const o = s[e];
29
+ return It(c, o);
30
+ });
31
+ }
32
+ function Tt(t) {
33
+ return typeof t == "number";
34
+ }
35
+ function Et(t) {
36
+ return typeof t == "string";
37
+ }
38
+ function ht(t) {
39
+ return typeof t == "boolean";
40
+ }
41
+ function Ut(t) {
42
+ return Object.prototype.toString.call(t) === "[object Object]";
43
+ }
44
+ function P(t) {
45
+ return Math.abs(t);
46
+ }
47
+ function At(t) {
48
+ return Math.sign(t);
49
+ }
50
+ function ft(t, n) {
51
+ return P(t - n);
52
+ }
53
+ function dn(t, n) {
54
+ if (t === 0 || n === 0 || P(t) <= P(n)) return 0;
55
+ const r = ft(P(t), P(n));
56
+ return P(r / t);
57
+ }
58
+ function pn(t) {
59
+ return Math.round(t * 100) / 100;
60
+ }
61
+ function at(t) {
62
+ return lt(t).map(Number);
63
+ }
64
+ function j(t) {
65
+ return t[pt(t)];
66
+ }
67
+ function pt(t) {
68
+ return Math.max(0, t.length - 1);
69
+ }
70
+ function Ot(t, n) {
71
+ return n === pt(t);
72
+ }
73
+ function $t(t, n = 0) {
74
+ return Array.from(Array(t), (r, s) => n + s);
75
+ }
76
+ function lt(t) {
77
+ return Object.keys(t);
78
+ }
79
+ function Qt(t, n) {
80
+ return [t, n].reduce((r, s) => (lt(s).forEach((c) => {
81
+ const e = r[c], o = s[c], u = Ut(e) && Ut(o);
82
+ r[c] = u ? Qt(e, o) : o;
83
+ }), r), {});
84
+ }
85
+ function Lt(t, n) {
86
+ return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
87
+ }
88
+ function mn(t, n) {
89
+ const r = {
90
+ start: s,
91
+ center: c,
92
+ end: e
93
+ };
94
+ function s() {
95
+ return 0;
96
+ }
97
+ function c(i) {
98
+ return e(i) / 2;
99
+ }
100
+ function e(i) {
101
+ return n - i;
102
+ }
103
+ function o(i, f) {
104
+ return Et(t) ? r[t](i) : t(n, i, f);
105
+ }
106
+ return {
107
+ measure: o
108
+ };
109
+ }
110
+ function dt() {
111
+ let t = [];
112
+ function n(c, e, o, u = {
113
+ passive: !0
114
+ }) {
115
+ let i;
116
+ if ("addEventListener" in c)
117
+ c.addEventListener(e, o, u), i = () => c.removeEventListener(e, o, u);
118
+ else {
119
+ const f = c;
120
+ f.addListener(o), i = () => f.removeListener(o);
121
+ }
122
+ return t.push(i), s;
123
+ }
124
+ function r() {
125
+ t = t.filter((c) => c());
126
+ }
127
+ const s = {
128
+ add: n,
129
+ clear: r
130
+ };
131
+ return s;
132
+ }
133
+ function gn(t, n, r, s) {
134
+ const c = dt(), e = 1e3 / 60;
135
+ let o = null, u = 0, i = 0;
136
+ function f() {
137
+ c.add(t, "visibilitychange", () => {
138
+ t.hidden && d();
139
+ });
140
+ }
141
+ function g() {
142
+ y(), c.clear();
143
+ }
144
+ function a(h) {
145
+ if (!i) return;
146
+ o || (o = h, r(), r());
147
+ const l = h - o;
148
+ for (o = h, u += l; u >= e; )
149
+ r(), u -= e;
150
+ const S = u / e;
151
+ s(S), i && (i = n.requestAnimationFrame(a));
152
+ }
153
+ function p() {
154
+ i || (i = n.requestAnimationFrame(a));
155
+ }
156
+ function y() {
157
+ n.cancelAnimationFrame(i), o = null, u = 0, i = 0;
158
+ }
159
+ function d() {
160
+ o = null, u = 0;
161
+ }
162
+ return {
163
+ init: f,
164
+ destroy: g,
165
+ start: p,
166
+ stop: y,
167
+ update: r,
168
+ render: s
169
+ };
170
+ }
171
+ function hn(t, n) {
172
+ const r = n === "rtl", s = t === "y", c = s ? "y" : "x", e = s ? "x" : "y", o = !s && r ? -1 : 1, u = g(), i = a();
173
+ function f(d) {
174
+ const {
175
+ height: m,
176
+ width: h
177
+ } = d;
178
+ return s ? m : h;
179
+ }
180
+ function g() {
181
+ return s ? "top" : r ? "right" : "left";
182
+ }
183
+ function a() {
184
+ return s ? "bottom" : r ? "left" : "right";
185
+ }
186
+ function p(d) {
187
+ return d * o;
188
+ }
189
+ return {
190
+ scroll: c,
191
+ cross: e,
192
+ startEdge: u,
193
+ endEdge: i,
194
+ measureSize: f,
195
+ direction: p
196
+ };
197
+ }
198
+ function tt(t = 0, n = 0) {
199
+ const r = P(t - n);
200
+ function s(f) {
201
+ return f < t;
202
+ }
203
+ function c(f) {
204
+ return f > n;
205
+ }
206
+ function e(f) {
207
+ return s(f) || c(f);
208
+ }
209
+ function o(f) {
210
+ return e(f) ? s(f) ? t : n : f;
211
+ }
212
+ function u(f) {
213
+ return r ? f - r * Math.ceil((f - n) / r) : f;
214
+ }
215
+ return {
216
+ length: r,
217
+ max: n,
218
+ min: t,
219
+ constrain: o,
220
+ reachedAny: e,
221
+ reachedMax: c,
222
+ reachedMin: s,
223
+ removeOffset: u
224
+ };
225
+ }
226
+ function Jt(t, n, r) {
227
+ const {
228
+ constrain: s
229
+ } = tt(0, t), c = t + 1;
230
+ let e = o(n);
231
+ function o(p) {
232
+ return r ? P((c + p) % c) : s(p);
233
+ }
234
+ function u() {
235
+ return e;
236
+ }
237
+ function i(p) {
238
+ return e = o(p), a;
239
+ }
240
+ function f(p) {
241
+ return g().set(u() + p);
242
+ }
243
+ function g() {
244
+ return Jt(t, u(), r);
245
+ }
246
+ const a = {
247
+ get: u,
248
+ set: i,
249
+ add: f,
250
+ clone: g
251
+ };
252
+ return a;
253
+ }
254
+ function Sn(t, n, r, s, c, e, o, u, i, f, g, a, p, y, d, m, h, l, S) {
255
+ const {
256
+ cross: x,
257
+ direction: L
258
+ } = t, D = ["INPUT", "SELECT", "TEXTAREA"], I = {
259
+ passive: !1
260
+ }, v = dt(), E = dt(), T = tt(50, 225).constrain(y.measure(20)), w = {
261
+ mouse: 300,
262
+ touch: 400
263
+ }, A = {
264
+ mouse: 500,
265
+ touch: 600
266
+ }, k = d ? 43 : 25;
267
+ let z = !1, R = 0, G = 0, _ = !1, X = !1, U = !1, $ = !1;
268
+ function rt(b) {
269
+ if (!S) return;
270
+ function O(N) {
271
+ (ht(S) || S(b, N)) && it(N);
272
+ }
273
+ const C = n;
274
+ v.add(C, "dragstart", (N) => N.preventDefault(), I).add(C, "touchmove", () => {
275
+ }, I).add(C, "touchend", () => {
276
+ }).add(C, "touchstart", O).add(C, "mousedown", O).add(C, "touchcancel", F).add(C, "contextmenu", F).add(C, "click", Q, !0);
277
+ }
278
+ function H() {
279
+ v.clear(), E.clear();
280
+ }
281
+ function nt() {
282
+ const b = $ ? r : n;
283
+ E.add(b, "touchmove", B, I).add(b, "touchend", F).add(b, "mousemove", B, I).add(b, "mouseup", F);
284
+ }
285
+ function et(b) {
286
+ const O = b.nodeName || "";
287
+ return D.includes(O);
288
+ }
289
+ function K() {
290
+ return (d ? A : w)[$ ? "mouse" : "touch"];
291
+ }
292
+ function st(b, O) {
293
+ const C = a.add(At(b) * -1), N = g.byDistance(b, !d).distance;
294
+ return d || P(b) < T ? N : h && O ? N * 0.5 : g.byIndex(C.get(), 0).distance;
295
+ }
296
+ function it(b) {
297
+ const O = Lt(b, s);
298
+ $ = O, U = d && O && !b.buttons && z, z = ft(c.get(), o.get()) >= 2, !(O && b.button !== 0) && (et(b.target) || (_ = !0, e.pointerDown(b), f.useFriction(0).useDuration(0), c.set(o), nt(), R = e.readPoint(b), G = e.readPoint(b, x), p.emit("pointerDown")));
299
+ }
300
+ function B(b) {
301
+ if (!Lt(b, s) && b.touches.length >= 2) return F(b);
302
+ const C = e.readPoint(b), N = e.readPoint(b, x), q = ft(C, R), J = ft(N, G);
303
+ if (!X && !$ && (!b.cancelable || (X = q > J, !X)))
304
+ return F(b);
305
+ const Z = e.pointerMove(b);
306
+ q > m && (U = !0), f.useFriction(0.3).useDuration(0.75), u.start(), c.add(L(Z)), b.preventDefault();
307
+ }
308
+ function F(b) {
309
+ const C = g.byDistance(0, !1).index !== a.get(), N = e.pointerUp(b) * K(), q = st(L(N), C), J = dn(N, q), Z = k - 10 * J, Y = l + J / 50;
310
+ X = !1, _ = !1, E.clear(), f.useDuration(Z).useFriction(Y), i.distance(q, !d), $ = !1, p.emit("pointerUp");
311
+ }
312
+ function Q(b) {
313
+ U && (b.stopPropagation(), b.preventDefault(), U = !1);
314
+ }
315
+ function V() {
316
+ return _;
317
+ }
318
+ return {
319
+ init: rt,
320
+ destroy: H,
321
+ pointerDown: V
322
+ };
323
+ }
324
+ function yn(t, n) {
325
+ let s, c;
326
+ function e(a) {
327
+ return a.timeStamp;
328
+ }
329
+ function o(a, p) {
330
+ const d = `client${(p || t.scroll) === "x" ? "X" : "Y"}`;
331
+ return (Lt(a, n) ? a : a.touches[0])[d];
332
+ }
333
+ function u(a) {
334
+ return s = a, c = a, o(a);
335
+ }
336
+ function i(a) {
337
+ const p = o(a) - o(c), y = e(a) - e(s) > 170;
338
+ return c = a, y && (s = a), p;
339
+ }
340
+ function f(a) {
341
+ if (!s || !c) return 0;
342
+ const p = o(c) - o(s), y = e(a) - e(s), d = e(a) - e(c) > 170, m = p / y;
343
+ return y && !d && P(m) > 0.1 ? m : 0;
344
+ }
345
+ return {
346
+ pointerDown: u,
347
+ pointerMove: i,
348
+ pointerUp: f,
349
+ readPoint: o
350
+ };
351
+ }
352
+ function bn() {
353
+ function t(r) {
354
+ const {
355
+ offsetTop: s,
356
+ offsetLeft: c,
357
+ offsetWidth: e,
358
+ offsetHeight: o
359
+ } = r;
360
+ return {
361
+ top: s,
362
+ right: c + e,
363
+ bottom: s + o,
364
+ left: c,
365
+ width: e,
366
+ height: o
367
+ };
368
+ }
369
+ return {
370
+ measure: t
371
+ };
372
+ }
373
+ function xn(t) {
374
+ function n(s) {
375
+ return t * (s / 100);
376
+ }
377
+ return {
378
+ measure: n
379
+ };
380
+ }
381
+ function vn(t, n, r, s, c, e, o) {
382
+ const u = [t].concat(s);
383
+ let i, f, g = [], a = !1;
384
+ function p(h) {
385
+ return c.measureSize(o.measure(h));
386
+ }
387
+ function y(h) {
388
+ if (!e) return;
389
+ f = p(t), g = s.map(p);
390
+ function l(S) {
391
+ for (const x of S) {
392
+ if (a) return;
393
+ const L = x.target === t, D = s.indexOf(x.target), I = L ? f : g[D], v = p(L ? t : s[D]);
394
+ if (P(v - I) >= 0.5) {
395
+ h.reInit(), n.emit("resize");
396
+ break;
397
+ }
398
+ }
399
+ }
400
+ i = new ResizeObserver((S) => {
401
+ (ht(e) || e(h, S)) && l(S);
402
+ }), r.requestAnimationFrame(() => {
403
+ u.forEach((S) => i.observe(S));
404
+ });
405
+ }
406
+ function d() {
407
+ a = !0, i && i.disconnect();
408
+ }
409
+ return {
410
+ init: y,
411
+ destroy: d
412
+ };
413
+ }
414
+ function En(t, n, r, s, c, e) {
415
+ let o = 0, u = 0, i = c, f = e, g = t.get(), a = 0;
416
+ function p() {
417
+ const I = s.get() - t.get(), v = !i;
418
+ let E = 0;
419
+ return v ? (o = 0, r.set(s), t.set(s), E = I) : (r.set(t), o += I / i, o *= f, g += o, t.add(o), E = g - a), u = At(E), a = g, D;
420
+ }
421
+ function y() {
422
+ const I = s.get() - n.get();
423
+ return P(I) < 1e-3;
424
+ }
425
+ function d() {
426
+ return i;
427
+ }
428
+ function m() {
429
+ return u;
430
+ }
431
+ function h() {
432
+ return o;
433
+ }
434
+ function l() {
435
+ return x(c);
436
+ }
437
+ function S() {
438
+ return L(e);
439
+ }
440
+ function x(I) {
441
+ return i = I, D;
442
+ }
443
+ function L(I) {
444
+ return f = I, D;
445
+ }
446
+ const D = {
447
+ direction: m,
448
+ duration: d,
449
+ velocity: h,
450
+ seek: p,
451
+ settled: y,
452
+ useBaseFriction: S,
453
+ useBaseDuration: l,
454
+ useFriction: L,
455
+ useDuration: x
456
+ };
457
+ return D;
458
+ }
459
+ function Ln(t, n, r, s, c) {
460
+ const e = c.measure(10), o = c.measure(50), u = tt(0.1, 0.99);
461
+ let i = !1;
462
+ function f() {
463
+ return !(i || !t.reachedAny(r.get()) || !t.reachedAny(n.get()));
464
+ }
465
+ function g(y) {
466
+ if (!f()) return;
467
+ const d = t.reachedMin(n.get()) ? "min" : "max", m = P(t[d] - n.get()), h = r.get() - n.get(), l = u.constrain(m / o);
468
+ r.subtract(h * l), !y && P(h) < e && (r.set(t.constrain(r.get())), s.useDuration(25).useBaseFriction());
469
+ }
470
+ function a(y) {
471
+ i = !y;
472
+ }
473
+ return {
474
+ shouldConstrain: f,
475
+ constrain: g,
476
+ toggleActive: a
477
+ };
478
+ }
479
+ function In(t, n, r, s, c) {
480
+ const e = tt(-n + t, 0), o = a(), u = g(), i = p();
481
+ function f(d, m) {
482
+ return ft(d, m) <= 1;
483
+ }
484
+ function g() {
485
+ const d = o[0], m = j(o), h = o.lastIndexOf(d), l = o.indexOf(m) + 1;
486
+ return tt(h, l);
487
+ }
488
+ function a() {
489
+ return r.map((d, m) => {
490
+ const {
491
+ min: h,
492
+ max: l
493
+ } = e, S = e.constrain(d), x = !m, L = Ot(r, m);
494
+ return x ? l : L || f(h, S) ? h : f(l, S) ? l : S;
495
+ }).map((d) => parseFloat(d.toFixed(3)));
496
+ }
497
+ function p() {
498
+ if (n <= t + c) return [e.max];
499
+ if (s === "keepSnaps") return o;
500
+ const {
501
+ min: d,
502
+ max: m
503
+ } = u;
504
+ return o.slice(d, m);
505
+ }
506
+ return {
507
+ snapsContained: i,
508
+ scrollContainLimit: u
509
+ };
510
+ }
511
+ function Tn(t, n, r) {
512
+ const s = n[0], c = r ? s - t : j(n);
513
+ return {
514
+ limit: tt(c, s)
515
+ };
516
+ }
517
+ function An(t, n, r, s) {
518
+ const e = n.min + 0.1, o = n.max + 0.1, {
519
+ reachedMin: u,
520
+ reachedMax: i
521
+ } = tt(e, o);
522
+ function f(p) {
523
+ return p === 1 ? i(r.get()) : p === -1 ? u(r.get()) : !1;
524
+ }
525
+ function g(p) {
526
+ if (!f(p)) return;
527
+ const y = t * (p * -1);
528
+ s.forEach((d) => d.add(y));
529
+ }
530
+ return {
531
+ loop: g
532
+ };
533
+ }
534
+ function On(t) {
535
+ const {
536
+ max: n,
537
+ length: r
538
+ } = t;
539
+ function s(e) {
540
+ const o = e - n;
541
+ return r ? o / -r : 0;
542
+ }
543
+ return {
544
+ get: s
545
+ };
546
+ }
547
+ function Dn(t, n, r, s, c) {
548
+ const {
549
+ startEdge: e,
550
+ endEdge: o
551
+ } = t, {
552
+ groupSlides: u
553
+ } = c, i = a().map(n.measure), f = p(), g = y();
554
+ function a() {
555
+ return u(s).map((m) => j(m)[o] - m[0][e]).map(P);
556
+ }
557
+ function p() {
558
+ return s.map((m) => r[e] - m[e]).map((m) => -P(m));
559
+ }
560
+ function y() {
561
+ return u(f).map((m) => m[0]).map((m, h) => m + i[h]);
562
+ }
563
+ return {
564
+ snaps: f,
565
+ snapsAligned: g
566
+ };
567
+ }
568
+ function Mn(t, n, r, s, c, e) {
569
+ const {
570
+ groupSlides: o
571
+ } = c, {
572
+ min: u,
573
+ max: i
574
+ } = s, f = g();
575
+ function g() {
576
+ const p = o(e), y = !t || n === "keepSnaps";
577
+ return r.length === 1 ? [e] : y ? p : p.slice(u, i).map((d, m, h) => {
578
+ const l = !m, S = Ot(h, m);
579
+ if (l) {
580
+ const x = j(h[0]) + 1;
581
+ return $t(x);
582
+ }
583
+ if (S) {
584
+ const x = pt(e) - j(h)[0] + 1;
585
+ return $t(x, j(h)[0]);
586
+ }
587
+ return d;
588
+ });
589
+ }
590
+ return {
591
+ slideRegistry: f
592
+ };
593
+ }
594
+ function Pn(t, n, r, s, c) {
595
+ const {
596
+ reachedAny: e,
597
+ removeOffset: o,
598
+ constrain: u
599
+ } = s;
600
+ function i(d) {
601
+ return d.concat().sort((m, h) => P(m) - P(h))[0];
602
+ }
603
+ function f(d) {
604
+ const m = t ? o(d) : u(d), h = n.map((S, x) => ({
605
+ diff: g(S - m, 0),
606
+ index: x
607
+ })).sort((S, x) => P(S.diff) - P(x.diff)), {
608
+ index: l
609
+ } = h[0];
610
+ return {
611
+ index: l,
612
+ distance: m
613
+ };
614
+ }
615
+ function g(d, m) {
616
+ const h = [d, d + r, d - r];
617
+ if (!t) return d;
618
+ if (!m) return i(h);
619
+ const l = h.filter((S) => At(S) === m);
620
+ return l.length ? i(l) : j(h) - r;
621
+ }
622
+ function a(d, m) {
623
+ const h = n[d] - c.get(), l = g(h, m);
624
+ return {
625
+ index: d,
626
+ distance: l
627
+ };
628
+ }
629
+ function p(d, m) {
630
+ const h = c.get() + d, {
631
+ index: l,
632
+ distance: S
633
+ } = f(h), x = !t && e(h);
634
+ if (!m || x) return {
635
+ index: l,
636
+ distance: d
637
+ };
638
+ const L = n[l] - S, D = d + g(L, 0);
639
+ return {
640
+ index: l,
641
+ distance: D
642
+ };
643
+ }
644
+ return {
645
+ byDistance: p,
646
+ byIndex: a,
647
+ shortcut: g
648
+ };
649
+ }
650
+ function wn(t, n, r, s, c, e, o) {
651
+ function u(a) {
652
+ const p = a.distance, y = a.index !== n.get();
653
+ e.add(p), p && (s.duration() ? t.start() : (t.update(), t.render(1), t.update())), y && (r.set(n.get()), n.set(a.index), o.emit("select"));
654
+ }
655
+ function i(a, p) {
656
+ const y = c.byDistance(a, p);
657
+ u(y);
658
+ }
659
+ function f(a, p) {
660
+ const y = n.clone().set(a), d = c.byIndex(y.get(), p);
661
+ u(d);
662
+ }
663
+ return {
664
+ distance: i,
665
+ index: f
666
+ };
667
+ }
668
+ function Cn(t, n, r, s, c, e, o, u) {
669
+ const i = {
670
+ passive: !0,
671
+ capture: !0
672
+ };
673
+ let f = 0;
674
+ function g(y) {
675
+ if (!u) return;
676
+ function d(m) {
677
+ if ((/* @__PURE__ */ new Date()).getTime() - f > 10) return;
678
+ o.emit("slideFocusStart"), t.scrollLeft = 0;
679
+ const S = r.findIndex((x) => x.includes(m));
680
+ Tt(S) && (c.useDuration(0), s.index(S, 0), o.emit("slideFocus"));
681
+ }
682
+ e.add(document, "keydown", a, !1), n.forEach((m, h) => {
683
+ e.add(m, "focus", (l) => {
684
+ (ht(u) || u(y, l)) && d(h);
685
+ }, i);
686
+ });
687
+ }
688
+ function a(y) {
689
+ y.code === "Tab" && (f = (/* @__PURE__ */ new Date()).getTime());
690
+ }
691
+ return {
692
+ init: g
693
+ };
694
+ }
695
+ function ut(t) {
696
+ let n = t;
697
+ function r() {
698
+ return n;
699
+ }
700
+ function s(i) {
701
+ n = o(i);
702
+ }
703
+ function c(i) {
704
+ n += o(i);
705
+ }
706
+ function e(i) {
707
+ n -= o(i);
708
+ }
709
+ function o(i) {
710
+ return Tt(i) ? i : i.get();
711
+ }
712
+ return {
713
+ get: r,
714
+ set: s,
715
+ add: c,
716
+ subtract: e
717
+ };
718
+ }
719
+ function Xt(t, n) {
720
+ const r = t.scroll === "x" ? o : u, s = n.style;
721
+ let c = null, e = !1;
722
+ function o(p) {
723
+ return `translate3d(${p}px,0px,0px)`;
724
+ }
725
+ function u(p) {
726
+ return `translate3d(0px,${p}px,0px)`;
727
+ }
728
+ function i(p) {
729
+ if (e) return;
730
+ const y = pn(t.direction(p));
731
+ y !== c && (s.transform = r(y), c = y);
732
+ }
733
+ function f(p) {
734
+ e = !p;
735
+ }
736
+ function g() {
737
+ e || (s.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
738
+ }
739
+ return {
740
+ clear: g,
741
+ to: i,
742
+ toggleActive: f
743
+ };
744
+ }
745
+ function Fn(t, n, r, s, c, e, o, u, i) {
746
+ const g = at(c), a = at(c).reverse(), p = l().concat(S());
747
+ function y(v, E) {
748
+ return v.reduce((T, w) => T - c[w], E);
749
+ }
750
+ function d(v, E) {
751
+ return v.reduce((T, w) => y(T, E) > 0 ? T.concat([w]) : T, []);
752
+ }
753
+ function m(v) {
754
+ return e.map((E, T) => ({
755
+ start: E - s[T] + 0.5 + v,
756
+ end: E + n - 0.5 + v
757
+ }));
758
+ }
759
+ function h(v, E, T) {
760
+ const w = m(E);
761
+ return v.map((A) => {
762
+ const k = T ? 0 : -r, z = T ? r : 0, R = T ? "end" : "start", G = w[A][R];
763
+ return {
764
+ index: A,
765
+ loopPoint: G,
766
+ slideLocation: ut(-1),
767
+ translate: Xt(t, i[A]),
768
+ target: () => u.get() > G ? k : z
769
+ };
770
+ });
771
+ }
772
+ function l() {
773
+ const v = o[0], E = d(a, v);
774
+ return h(E, r, !1);
775
+ }
776
+ function S() {
777
+ const v = n - o[0] - 1, E = d(g, v);
778
+ return h(E, -r, !0);
779
+ }
780
+ function x() {
781
+ return p.every(({
782
+ index: v
783
+ }) => {
784
+ const E = g.filter((T) => T !== v);
785
+ return y(E, n) <= 0.1;
786
+ });
787
+ }
788
+ function L() {
789
+ p.forEach((v) => {
790
+ const {
791
+ target: E,
792
+ translate: T,
793
+ slideLocation: w
794
+ } = v, A = E();
795
+ A !== w.get() && (T.to(A), w.set(A));
796
+ });
797
+ }
798
+ function D() {
799
+ p.forEach((v) => v.translate.clear());
800
+ }
801
+ return {
802
+ canLoop: x,
803
+ clear: D,
804
+ loop: L,
805
+ loopPoints: p
806
+ };
807
+ }
808
+ function Nn(t, n, r) {
809
+ let s, c = !1;
810
+ function e(i) {
811
+ if (!r) return;
812
+ function f(g) {
813
+ for (const a of g)
814
+ if (a.type === "childList") {
815
+ i.reInit(), n.emit("slidesChanged");
816
+ break;
817
+ }
818
+ }
819
+ s = new MutationObserver((g) => {
820
+ c || (ht(r) || r(i, g)) && f(g);
821
+ }), s.observe(t, {
822
+ childList: !0
823
+ });
824
+ }
825
+ function o() {
826
+ s && s.disconnect(), c = !0;
827
+ }
828
+ return {
829
+ init: e,
830
+ destroy: o
831
+ };
832
+ }
833
+ function kn(t, n, r, s) {
834
+ const c = {};
835
+ let e = null, o = null, u, i = !1;
836
+ function f() {
837
+ u = new IntersectionObserver((d) => {
838
+ i || (d.forEach((m) => {
839
+ const h = n.indexOf(m.target);
840
+ c[h] = m;
841
+ }), e = null, o = null, r.emit("slidesInView"));
842
+ }, {
843
+ root: t.parentElement,
844
+ threshold: s
845
+ }), n.forEach((d) => u.observe(d));
846
+ }
847
+ function g() {
848
+ u && u.disconnect(), i = !0;
849
+ }
850
+ function a(d) {
851
+ return lt(c).reduce((m, h) => {
852
+ const l = parseInt(h), {
853
+ isIntersecting: S
854
+ } = c[l];
855
+ return (d && S || !d && !S) && m.push(l), m;
856
+ }, []);
857
+ }
858
+ function p(d = !0) {
859
+ if (d && e) return e;
860
+ if (!d && o) return o;
861
+ const m = a(d);
862
+ return d && (e = m), d || (o = m), m;
863
+ }
864
+ return {
865
+ init: f,
866
+ destroy: g,
867
+ get: p
868
+ };
869
+ }
870
+ function Bn(t, n, r, s, c, e) {
871
+ const {
872
+ measureSize: o,
873
+ startEdge: u,
874
+ endEdge: i
875
+ } = t, f = r[0] && c, g = d(), a = m(), p = r.map(o), y = h();
876
+ function d() {
877
+ if (!f) return 0;
878
+ const S = r[0];
879
+ return P(n[u] - S[u]);
880
+ }
881
+ function m() {
882
+ if (!f) return 0;
883
+ const S = e.getComputedStyle(j(s));
884
+ return parseFloat(S.getPropertyValue(`margin-${i}`));
885
+ }
886
+ function h() {
887
+ return r.map((S, x, L) => {
888
+ const D = !x, I = Ot(L, x);
889
+ return D ? p[x] + g : I ? p[x] + a : L[x + 1][u] - S[u];
890
+ }).map(P);
891
+ }
892
+ return {
893
+ slideSizes: p,
894
+ slideSizesWithGaps: y,
895
+ startGap: g,
896
+ endGap: a
897
+ };
898
+ }
899
+ function Vn(t, n, r, s, c, e, o, u, i) {
900
+ const {
901
+ startEdge: f,
902
+ endEdge: g,
903
+ direction: a
904
+ } = t, p = Tt(r);
905
+ function y(l, S) {
906
+ return at(l).filter((x) => x % S === 0).map((x) => l.slice(x, x + S));
907
+ }
908
+ function d(l) {
909
+ return l.length ? at(l).reduce((S, x, L) => {
910
+ const D = j(S) || 0, I = D === 0, v = x === pt(l), E = c[f] - e[D][f], T = c[f] - e[x][g], w = !s && I ? a(o) : 0, A = !s && v ? a(u) : 0, k = P(T - A - (E + w));
911
+ return L && k > n + i && S.push(x), v && S.push(l.length), S;
912
+ }, []).map((S, x, L) => {
913
+ const D = Math.max(L[x - 1] || 0);
914
+ return l.slice(D, S);
915
+ }) : [];
916
+ }
917
+ function m(l) {
918
+ return p ? y(l, r) : d(l);
919
+ }
920
+ return {
921
+ groupSlides: m
922
+ };
923
+ }
924
+ function jn(t, n, r, s, c, e, o) {
925
+ const {
926
+ align: u,
927
+ axis: i,
928
+ direction: f,
929
+ startIndex: g,
930
+ loop: a,
931
+ duration: p,
932
+ dragFree: y,
933
+ dragThreshold: d,
934
+ inViewThreshold: m,
935
+ slidesToScroll: h,
936
+ skipSnaps: l,
937
+ containScroll: S,
938
+ watchResize: x,
939
+ watchSlides: L,
940
+ watchDrag: D,
941
+ watchFocus: I
942
+ } = e, v = 2, E = bn(), T = E.measure(n), w = r.map(E.measure), A = hn(i, f), k = A.measureSize(T), z = xn(k), R = mn(u, k), G = !a && !!S, _ = a || !!S, {
943
+ slideSizes: X,
944
+ slideSizesWithGaps: U,
945
+ startGap: $,
946
+ endGap: rt
947
+ } = Bn(A, T, w, r, _, c), H = Vn(A, k, h, a, T, w, $, rt, v), {
948
+ snaps: nt,
949
+ snapsAligned: et
950
+ } = Dn(A, R, T, w, H), K = -j(nt) + j(U), {
951
+ snapsContained: st,
952
+ scrollContainLimit: it
953
+ } = In(k, K, et, S, v), B = G ? st : et, {
954
+ limit: F
955
+ } = Tn(K, B, a), Q = Jt(pt(B), g, a), V = Q.clone(), M = at(r), b = ({
956
+ dragHandler: ot,
957
+ scrollBody: xt,
958
+ scrollBounds: vt,
959
+ options: {
960
+ loop: mt
961
+ }
962
+ }) => {
963
+ mt || vt.constrain(ot.pointerDown()), xt.seek();
964
+ }, O = ({
965
+ scrollBody: ot,
966
+ translate: xt,
967
+ location: vt,
968
+ offsetLocation: mt,
969
+ previousLocation: Zt,
970
+ scrollLooper: Wt,
971
+ slideLooper: tn,
972
+ dragHandler: nn,
973
+ animation: en,
974
+ eventHandler: Ct,
975
+ scrollBounds: on,
976
+ options: {
977
+ loop: Ft
978
+ }
979
+ }, Nt) => {
980
+ const kt = ot.settled(), rn = !on.shouldConstrain(), Bt = Ft ? kt : kt && rn, Vt = Bt && !nn.pointerDown();
981
+ Vt && en.stop();
982
+ const sn = vt.get() * Nt + Zt.get() * (1 - Nt);
983
+ mt.set(sn), Ft && (Wt.loop(ot.direction()), tn.loop()), xt.to(mt.get()), Vt && Ct.emit("settle"), Bt || Ct.emit("scroll");
984
+ }, C = gn(s, c, () => b(bt), (ot) => O(bt, ot)), N = 0.68, q = B[Q.get()], J = ut(q), Z = ut(q), Y = ut(q), W = ut(q), ct = En(J, Y, Z, W, p, N), St = Pn(a, B, K, F, W), yt = wn(C, Q, V, ct, St, W, o), Mt = On(F), Pt = dt(), Yt = kn(n, r, o, m), {
985
+ slideRegistry: wt
986
+ } = Mn(G, S, B, it, H, M), _t = Cn(t, r, wt, yt, ct, Pt, o, I), bt = {
987
+ ownerDocument: s,
988
+ ownerWindow: c,
989
+ eventHandler: o,
990
+ containerRect: T,
991
+ slideRects: w,
992
+ animation: C,
993
+ axis: A,
994
+ dragHandler: Sn(A, t, s, c, W, yn(A, c), J, C, yt, ct, St, Q, o, z, y, d, l, N, D),
995
+ eventStore: Pt,
996
+ percentOfView: z,
997
+ index: Q,
998
+ indexPrevious: V,
999
+ limit: F,
1000
+ location: J,
1001
+ offsetLocation: Y,
1002
+ previousLocation: Z,
1003
+ options: e,
1004
+ resizeHandler: vn(n, o, c, r, A, x, E),
1005
+ scrollBody: ct,
1006
+ scrollBounds: Ln(F, Y, W, ct, z),
1007
+ scrollLooper: An(K, F, Y, [J, Y, Z, W]),
1008
+ scrollProgress: Mt,
1009
+ scrollSnapList: B.map(Mt.get),
1010
+ scrollSnaps: B,
1011
+ scrollTarget: St,
1012
+ scrollTo: yt,
1013
+ slideLooper: Fn(A, k, K, X, U, nt, B, Y, r),
1014
+ slideFocus: _t,
1015
+ slidesHandler: Nn(n, o, L),
1016
+ slidesInView: Yt,
1017
+ slideIndexes: M,
1018
+ slideRegistry: wt,
1019
+ slidesToScroll: H,
1020
+ target: W,
1021
+ translate: Xt(A, n)
1022
+ };
1023
+ return bt;
1024
+ }
1025
+ function zn() {
1026
+ let t = {}, n;
1027
+ function r(f) {
1028
+ n = f;
1029
+ }
1030
+ function s(f) {
1031
+ return t[f] || [];
1032
+ }
1033
+ function c(f) {
1034
+ return s(f).forEach((g) => g(n, f)), i;
1035
+ }
1036
+ function e(f, g) {
1037
+ return t[f] = s(f).concat([g]), i;
1038
+ }
1039
+ function o(f, g) {
1040
+ return t[f] = s(f).filter((a) => a !== g), i;
1041
+ }
1042
+ function u() {
1043
+ t = {};
1044
+ }
1045
+ const i = {
1046
+ init: r,
1047
+ emit: c,
1048
+ off: o,
1049
+ on: e,
1050
+ clear: u
1051
+ };
1052
+ return i;
1053
+ }
1054
+ const Rn = {
1055
+ align: "center",
1056
+ axis: "x",
1057
+ container: null,
1058
+ slides: null,
1059
+ containScroll: "trimSnaps",
1060
+ direction: "ltr",
1061
+ slidesToScroll: 1,
1062
+ inViewThreshold: 0,
1063
+ breakpoints: {},
1064
+ dragFree: !1,
1065
+ dragThreshold: 10,
1066
+ loop: !1,
1067
+ skipSnaps: !1,
1068
+ duration: 25,
1069
+ startIndex: 0,
1070
+ active: !0,
1071
+ watchDrag: !0,
1072
+ watchResize: !0,
1073
+ watchSlides: !0,
1074
+ watchFocus: !0
1075
+ };
1076
+ function Gn(t) {
1077
+ function n(e, o) {
1078
+ return Qt(e, o || {});
1079
+ }
1080
+ function r(e) {
1081
+ const o = e.breakpoints || {}, u = lt(o).filter((i) => t.matchMedia(i).matches).map((i) => o[i]).reduce((i, f) => n(i, f), {});
1082
+ return n(e, u);
1083
+ }
1084
+ function s(e) {
1085
+ return e.map((o) => lt(o.breakpoints || {})).reduce((o, u) => o.concat(u), []).map(t.matchMedia);
1086
+ }
1087
+ return {
1088
+ mergeOptions: n,
1089
+ optionsAtMedia: r,
1090
+ optionsMediaQueries: s
1091
+ };
1092
+ }
1093
+ function Hn(t) {
1094
+ let n = [];
1095
+ function r(e, o) {
1096
+ return n = o.filter(({
1097
+ options: u
1098
+ }) => t.optionsAtMedia(u).active !== !1), n.forEach((u) => u.init(e, t)), o.reduce((u, i) => Object.assign(u, {
1099
+ [i.name]: i
1100
+ }), {});
1101
+ }
1102
+ function s() {
1103
+ n = n.filter((e) => e.destroy());
1104
+ }
1105
+ return {
1106
+ init: r,
1107
+ destroy: s
1108
+ };
1109
+ }
1110
+ function gt(t, n, r) {
1111
+ const s = t.ownerDocument, c = s.defaultView, e = Gn(c), o = Hn(e), u = dt(), i = zn(), {
1112
+ mergeOptions: f,
1113
+ optionsAtMedia: g,
1114
+ optionsMediaQueries: a
1115
+ } = e, {
1116
+ on: p,
1117
+ off: y,
1118
+ emit: d
1119
+ } = i, m = A;
1120
+ let h = !1, l, S = f(Rn, gt.globalOptions), x = f(S), L = [], D, I, v;
1121
+ function E() {
1122
+ const {
1123
+ container: M,
1124
+ slides: b
1125
+ } = x;
1126
+ I = (Et(M) ? t.querySelector(M) : M) || t.children[0];
1127
+ const C = Et(b) ? I.querySelectorAll(b) : b;
1128
+ v = [].slice.call(C || I.children);
1129
+ }
1130
+ function T(M) {
1131
+ const b = jn(t, I, v, s, c, M, i);
1132
+ if (M.loop && !b.slideLooper.canLoop()) {
1133
+ const O = Object.assign({}, M, {
1134
+ loop: !1
1135
+ });
1136
+ return T(O);
1137
+ }
1138
+ return b;
1139
+ }
1140
+ function w(M, b) {
1141
+ h || (S = f(S, M), x = g(S), L = b || L, E(), l = T(x), a([S, ...L.map(({
1142
+ options: O
1143
+ }) => O)]).forEach((O) => u.add(O, "change", A)), x.active && (l.translate.to(l.location.get()), l.animation.init(), l.slidesInView.init(), l.slideFocus.init(V), l.eventHandler.init(V), l.resizeHandler.init(V), l.slidesHandler.init(V), l.options.loop && l.slideLooper.loop(), I.offsetParent && v.length && l.dragHandler.init(V), D = o.init(V, L)));
1144
+ }
1145
+ function A(M, b) {
1146
+ const O = H();
1147
+ k(), w(f({
1148
+ startIndex: O
1149
+ }, M), b), i.emit("reInit");
1150
+ }
1151
+ function k() {
1152
+ l.dragHandler.destroy(), l.eventStore.clear(), l.translate.clear(), l.slideLooper.clear(), l.resizeHandler.destroy(), l.slidesHandler.destroy(), l.slidesInView.destroy(), l.animation.destroy(), o.destroy(), u.clear();
1153
+ }
1154
+ function z() {
1155
+ h || (h = !0, u.clear(), k(), i.emit("destroy"), i.clear());
1156
+ }
1157
+ function R(M, b, O) {
1158
+ !x.active || h || (l.scrollBody.useBaseFriction().useDuration(b === !0 ? 0 : x.duration), l.scrollTo.index(M, O || 0));
1159
+ }
1160
+ function G(M) {
1161
+ const b = l.index.add(1).get();
1162
+ R(b, M, -1);
1163
+ }
1164
+ function _(M) {
1165
+ const b = l.index.add(-1).get();
1166
+ R(b, M, 1);
1167
+ }
1168
+ function X() {
1169
+ return l.index.add(1).get() !== H();
1170
+ }
1171
+ function U() {
1172
+ return l.index.add(-1).get() !== H();
1173
+ }
1174
+ function $() {
1175
+ return l.scrollSnapList;
1176
+ }
1177
+ function rt() {
1178
+ return l.scrollProgress.get(l.offsetLocation.get());
1179
+ }
1180
+ function H() {
1181
+ return l.index.get();
1182
+ }
1183
+ function nt() {
1184
+ return l.indexPrevious.get();
1185
+ }
1186
+ function et() {
1187
+ return l.slidesInView.get();
1188
+ }
1189
+ function K() {
1190
+ return l.slidesInView.get(!1);
1191
+ }
1192
+ function st() {
1193
+ return D;
1194
+ }
1195
+ function it() {
1196
+ return l;
1197
+ }
1198
+ function B() {
1199
+ return t;
1200
+ }
1201
+ function F() {
1202
+ return I;
1203
+ }
1204
+ function Q() {
1205
+ return v;
1206
+ }
1207
+ const V = {
1208
+ canScrollNext: X,
1209
+ canScrollPrev: U,
1210
+ containerNode: F,
1211
+ internalEngine: it,
1212
+ destroy: z,
1213
+ off: y,
1214
+ on: p,
1215
+ emit: d,
1216
+ plugins: st,
1217
+ previousScrollSnap: nt,
1218
+ reInit: m,
1219
+ rootNode: B,
1220
+ scrollNext: G,
1221
+ scrollPrev: _,
1222
+ scrollProgress: rt,
1223
+ scrollSnapList: $,
1224
+ scrollTo: R,
1225
+ selectedScrollSnap: H,
1226
+ slideNodes: Q,
1227
+ slidesInView: et,
1228
+ slidesNotInView: K
1229
+ };
1230
+ return w(n, r), setTimeout(() => i.emit("init"), 0), V;
1231
+ }
1232
+ gt.globalOptions = void 0;
1233
+ function Dt(t = {}, n = []) {
1234
+ const r = jt(t), s = jt(n);
1235
+ let c = r ? t.value : t, e = s ? n.value : n;
1236
+ const o = zt(), u = zt();
1237
+ function i() {
1238
+ u.value && u.value.reInit(c, e);
1239
+ }
1240
+ return Kt(() => {
1241
+ !an() || !o.value || (gt.globalOptions = Dt.globalOptions, u.value = gt(o.value, c, e));
1242
+ }), cn(() => {
1243
+ u.value && u.value.destroy();
1244
+ }), r && Rt(t, (f) => {
1245
+ It(c, f) || (c = f, i());
1246
+ }), s && Rt(n, (f) => {
1247
+ ln(e, f) || (e = f, i());
1248
+ }), [o, u];
1249
+ }
1250
+ Dt.globalOptions = void 0;
1251
+ const [Kn, qn] = un(
1252
+ ({
1253
+ opts: t,
1254
+ orientation: n,
1255
+ plugins: r
1256
+ }, s) => {
1257
+ const [c, e] = Dt({
1258
+ ...t,
1259
+ axis: n === "horizontal" ? "x" : "y"
1260
+ }, r);
1261
+ function o() {
1262
+ var a;
1263
+ (a = e.value) == null || a.scrollPrev();
1264
+ }
1265
+ function u() {
1266
+ var a;
1267
+ (a = e.value) == null || a.scrollNext();
1268
+ }
1269
+ const i = Gt(!1), f = Gt(!1);
1270
+ function g(a) {
1271
+ i.value = (a == null ? void 0 : a.canScrollNext()) || !1, f.value = (a == null ? void 0 : a.canScrollPrev()) || !1;
1272
+ }
1273
+ return Kt(() => {
1274
+ var a, p, y;
1275
+ e.value && ((a = e.value) == null || a.on("init", g), (p = e.value) == null || p.on("reInit", g), (y = e.value) == null || y.on("select", g), s("init-api", e.value));
1276
+ }), { carouselRef: c, carouselApi: e, canScrollPrev: f, canScrollNext: i, scrollPrev: o, scrollNext: u, orientation: n };
1277
+ }
1278
+ );
1279
+ function Qn() {
1280
+ const t = qn();
1281
+ if (!t)
1282
+ throw new Error("useCarousel must be used within a <Carousel />");
1283
+ return t;
1284
+ }
1285
+ export {
1286
+ Qn as useCarousel,
1287
+ Kn as useProvideCarousel
1288
+ };