react-spring-carousel 3.0.0-beta090.40 → 3.0.0-beta090.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,14 +1,14 @@
1
- import lr, { useRef as O, useEffect as ve, createContext as fr, useCallback as De, Fragment as Er, useContext as dr, useState as Tr } from "react";
1
+ import lr, { useRef as O, useEffect as he, createContext as fr, useCallback as De, Fragment as Er, useContext as dr, useState as Tr } from "react";
2
2
  import { useSpring as vr, config as We, useIsomorphicLayoutEffect as Rr, useTransition as wr, a as _r } from "@react-spring/web";
3
3
  import { useDrag as hr } from "@use-gesture/react";
4
4
  import Cr from "resize-observer-polyfill";
5
5
  import Ee from "screenfull";
6
- var A = {}, Ir = {
6
+ var L = {}, Ir = {
7
7
  get exports() {
8
- return A;
8
+ return L;
9
9
  },
10
10
  set exports(i) {
11
- A = i;
11
+ L = i;
12
12
  }
13
13
  }, He = {};
14
14
  /**
@@ -21,22 +21,22 @@ var A = {}, Ir = {
21
21
  * LICENSE file in the root directory of this source tree.
22
22
  */
23
23
  var cr;
24
- function Pr() {
24
+ function kr() {
25
25
  if (cr)
26
26
  return He;
27
27
  cr = 1;
28
- var i = lr, m = Symbol.for("react.element"), g = Symbol.for("react.fragment"), $ = Object.prototype.hasOwnProperty, Y = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
29
- function T(l, f, d) {
30
- var W, L = {}, C = null, u = null;
28
+ var i = lr, m = Symbol.for("react.element"), p = Symbol.for("react.fragment"), $ = Object.prototype.hasOwnProperty, Y = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
29
+ function R(l, f, d) {
30
+ var W, A = {}, C = null, u = null;
31
31
  d !== void 0 && (C = "" + d), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (u = f.ref);
32
32
  for (W in f)
33
- $.call(f, W) && !v.hasOwnProperty(W) && (L[W] = f[W]);
33
+ $.call(f, W) && !v.hasOwnProperty(W) && (A[W] = f[W]);
34
34
  if (l && l.defaultProps)
35
35
  for (W in f = l.defaultProps, f)
36
- L[W] === void 0 && (L[W] = f[W]);
37
- return { $$typeof: m, type: l, key: C, ref: u, props: L, _owner: Y.current };
36
+ A[W] === void 0 && (A[W] = f[W]);
37
+ return { $$typeof: m, type: l, key: C, ref: u, props: A, _owner: Y.current };
38
38
  }
39
- return He.Fragment = g, He.jsx = T, He.jsxs = T, He;
39
+ return He.Fragment = p, He.jsx = R, He.jsxs = R, He;
40
40
  }
41
41
  var Je = {};
42
42
  /**
@@ -49,13 +49,13 @@ var Je = {};
49
49
  * LICENSE file in the root directory of this source tree.
50
50
  */
51
51
  var sr;
52
- function kr() {
52
+ function Pr() {
53
53
  return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
54
- var i = lr, m = Symbol.for("react.element"), g = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), U = Symbol.iterator, x = "@@iterator";
55
- function ie(e) {
54
+ var i = lr, m = Symbol.for("react.element"), p = Symbol.for("react.portal"), $ = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), u = Symbol.for("react.offscreen"), U = Symbol.iterator, y = "@@iterator";
55
+ function ae(e) {
56
56
  if (e === null || typeof e != "object")
57
57
  return null;
58
- var t = U && e[U] || e[x];
58
+ var t = U && e[U] || e[y];
59
59
  return typeof t == "function" ? t : null;
60
60
  }
61
61
  var F = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -63,29 +63,29 @@ function kr() {
63
63
  {
64
64
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
65
65
  n[s - 1] = arguments[s];
66
- G("error", e, n);
66
+ re("error", e, n);
67
67
  }
68
68
  }
69
- function G(e, t, n) {
69
+ function re(e, t, n) {
70
70
  {
71
71
  var s = F.ReactDebugCurrentFrame, E = s.getStackAddendum();
72
72
  E !== "" && (t += "%s", n = n.concat([E]));
73
- var _ = n.map(function(p) {
74
- return String(p);
73
+ var _ = n.map(function(g) {
74
+ return String(g);
75
75
  });
76
76
  _.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
77
77
  }
78
78
  }
79
- var Ne = !1, ee = !1, q = !1, re = !1, ae = !1, z;
79
+ var Ne = !1, te = !1, B = !1, ne = !1, oe = !1, z;
80
80
  z = Symbol.for("react.module.reference");
81
81
  function Te(e) {
82
- return !!(typeof e == "string" || typeof e == "function" || e === $ || e === v || ae || e === Y || e === d || e === W || re || e === u || Ne || ee || q || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === L || e.$$typeof === T || e.$$typeof === l || e.$$typeof === f || // This needs to include all possible module reference object
82
+ return !!(typeof e == "string" || typeof e == "function" || e === $ || e === v || oe || e === Y || e === d || e === W || ne || e === u || Ne || te || B || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === A || e.$$typeof === R || e.$$typeof === l || e.$$typeof === f || // This needs to include all possible module reference object
83
83
  // types supported by any Flight configuration anywhere since
84
84
  // we don't know which Flight build this will end up being used
85
85
  // with.
86
86
  e.$$typeof === z || e.getModuleId !== void 0));
87
87
  }
88
- function he(e, t, n) {
88
+ function Q(e, t, n) {
89
89
  var s = e.displayName;
90
90
  if (s)
91
91
  return s;
@@ -95,7 +95,7 @@ function kr() {
95
95
  function N(e) {
96
96
  return e.displayName || "Context";
97
97
  }
98
- function y(e) {
98
+ function x(e) {
99
99
  if (e == null)
100
100
  return null;
101
101
  if (typeof e.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -105,7 +105,7 @@ function kr() {
105
105
  switch (e) {
106
106
  case $:
107
107
  return "Fragment";
108
- case g:
108
+ case p:
109
109
  return "Portal";
110
110
  case v:
111
111
  return "Profiler";
@@ -121,18 +121,18 @@ function kr() {
121
121
  case l:
122
122
  var t = e;
123
123
  return N(t) + ".Consumer";
124
- case T:
124
+ case R:
125
125
  var n = e;
126
126
  return N(n._context) + ".Provider";
127
127
  case f:
128
- return he(e, e.render, "ForwardRef");
129
- case L:
128
+ return Q(e, e.render, "ForwardRef");
129
+ case A:
130
130
  var s = e.displayName || null;
131
- return s !== null ? s : y(e.type) || "Memo";
131
+ return s !== null ? s : x(e.type) || "Memo";
132
132
  case C: {
133
- var E = e, _ = E._payload, p = E._init;
133
+ var E = e, _ = E._payload, g = E._init;
134
134
  try {
135
- return y(p(_));
135
+ return x(g(_));
136
136
  } catch {
137
137
  return null;
138
138
  }
@@ -140,14 +140,14 @@ function kr() {
140
140
  }
141
141
  return null;
142
142
  }
143
- var b = Object.assign, R = 0, D, me, pe, c, w, k, te;
143
+ var b = Object.assign, w = 0, D, me, pe, c, T, I, X;
144
144
  function H() {
145
145
  }
146
146
  H.__reactDisabledLog = !0;
147
147
  function ze() {
148
148
  {
149
- if (R === 0) {
150
- D = console.log, me = console.info, pe = console.warn, c = console.error, w = console.group, k = console.groupCollapsed, te = console.groupEnd;
149
+ if (w === 0) {
150
+ D = console.log, me = console.info, pe = console.warn, c = console.error, T = console.group, I = console.groupCollapsed, X = console.groupEnd;
151
151
  var e = {
152
152
  configurable: !0,
153
153
  enumerable: !0,
@@ -164,12 +164,12 @@ function kr() {
164
164
  groupEnd: e
165
165
  });
166
166
  }
167
- R++;
167
+ w++;
168
168
  }
169
169
  }
170
170
  function Ie() {
171
171
  {
172
- if (R--, R === 0) {
172
+ if (w--, w === 0) {
173
173
  var e = {
174
174
  configurable: !0,
175
175
  enumerable: !0,
@@ -189,43 +189,43 @@ function kr() {
189
189
  value: c
190
190
  }),
191
191
  group: b({}, e, {
192
- value: w
192
+ value: T
193
193
  }),
194
194
  groupCollapsed: b({}, e, {
195
- value: k
195
+ value: I
196
196
  }),
197
197
  groupEnd: b({}, e, {
198
- value: te
198
+ value: X
199
199
  })
200
200
  });
201
201
  }
202
- R < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
202
+ w < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
203
203
  }
204
204
  }
205
- var Z = F.ReactCurrentDispatcher, B;
206
- function oe(e, t, n) {
205
+ var G = F.ReactCurrentDispatcher, q;
206
+ function ue(e, t, n) {
207
207
  {
208
- if (B === void 0)
208
+ if (q === void 0)
209
209
  try {
210
210
  throw Error();
211
211
  } catch (E) {
212
212
  var s = E.stack.trim().match(/\n( *(at )?)/);
213
- B = s && s[1] || "";
213
+ q = s && s[1] || "";
214
214
  }
215
215
  return `
216
- ` + B + e;
216
+ ` + q + e;
217
217
  }
218
218
  }
219
- var ge = !1, Pe;
219
+ var ge = !1, ke;
220
220
  {
221
221
  var Ge = typeof WeakMap == "function" ? WeakMap : Map;
222
- Pe = new Ge();
222
+ ke = new Ge();
223
223
  }
224
224
  function Ve(e, t) {
225
225
  if (!e || ge)
226
226
  return "";
227
227
  {
228
- var n = Pe.get(e);
228
+ var n = ke.get(e);
229
229
  if (n !== void 0)
230
230
  return n;
231
231
  }
@@ -234,42 +234,42 @@ function kr() {
234
234
  var E = Error.prepareStackTrace;
235
235
  Error.prepareStackTrace = void 0;
236
236
  var _;
237
- _ = Z.current, Z.current = null, ze();
237
+ _ = G.current, G.current = null, ze();
238
238
  try {
239
239
  if (t) {
240
- var p = function() {
240
+ var g = function() {
241
241
  throw Error();
242
242
  };
243
- if (Object.defineProperty(p.prototype, "props", {
243
+ if (Object.defineProperty(g.prototype, "props", {
244
244
  set: function() {
245
245
  throw Error();
246
246
  }
247
247
  }), typeof Reflect == "object" && Reflect.construct) {
248
248
  try {
249
- Reflect.construct(p, []);
250
- } catch (de) {
251
- s = de;
249
+ Reflect.construct(g, []);
250
+ } catch (ve) {
251
+ s = ve;
252
252
  }
253
- Reflect.construct(e, [], p);
253
+ Reflect.construct(e, [], g);
254
254
  } else {
255
255
  try {
256
- p.call();
257
- } catch (de) {
258
- s = de;
256
+ g.call();
257
+ } catch (ve) {
258
+ s = ve;
259
259
  }
260
- e.call(p.prototype);
260
+ e.call(g.prototype);
261
261
  }
262
262
  } else {
263
263
  try {
264
264
  throw Error();
265
- } catch (de) {
266
- s = de;
265
+ } catch (ve) {
266
+ s = ve;
267
267
  }
268
268
  e();
269
269
  }
270
- } catch (de) {
271
- if (de && s && typeof de.stack == "string") {
272
- for (var h = de.stack.split(`
270
+ } catch (ve) {
271
+ if (ve && s && typeof ve.stack == "string") {
272
+ for (var h = ve.stack.split(`
273
273
  `), J = s.stack.split(`
274
274
  `), V = h.length - 1, S = J.length - 1; V >= 1 && S >= 0 && h[V] !== J[S]; )
275
275
  S--;
@@ -278,19 +278,19 @@ function kr() {
278
278
  if (V !== 1 || S !== 1)
279
279
  do
280
280
  if (V--, S--, S < 0 || h[V] !== J[S]) {
281
- var K = `
281
+ var Z = `
282
282
  ` + h[V].replace(" at new ", " at ");
283
- return e.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", e.displayName)), typeof e == "function" && Pe.set(e, K), K;
283
+ return e.displayName && Z.includes("<anonymous>") && (Z = Z.replace("<anonymous>", e.displayName)), typeof e == "function" && ke.set(e, Z), Z;
284
284
  }
285
285
  while (V >= 1 && S >= 0);
286
286
  break;
287
287
  }
288
288
  }
289
289
  } finally {
290
- ge = !1, Z.current = _, Ie(), Error.prepareStackTrace = E;
290
+ ge = !1, G.current = _, Ie(), Error.prepareStackTrace = E;
291
291
  }
292
- var $e = e ? e.displayName || e.name : "", ur = $e ? oe($e) : "";
293
- return typeof e == "function" && Pe.set(e, ur), ur;
292
+ var $e = e ? e.displayName || e.name : "", ur = $e ? ue($e) : "";
293
+ return typeof e == "function" && ke.set(e, ur), ur;
294
294
  }
295
295
  function Xe(e, t, n) {
296
296
  return Ve(e, !1);
@@ -299,59 +299,59 @@ function kr() {
299
299
  var t = e.prototype;
300
300
  return !!(t && t.isReactComponent);
301
301
  }
302
- function ke(e, t, n) {
302
+ function Pe(e, t, n) {
303
303
  if (e == null)
304
304
  return "";
305
305
  if (typeof e == "function")
306
306
  return Ve(e, Ke(e));
307
307
  if (typeof e == "string")
308
- return oe(e);
308
+ return ue(e);
309
309
  switch (e) {
310
310
  case d:
311
- return oe("Suspense");
311
+ return ue("Suspense");
312
312
  case W:
313
- return oe("SuspenseList");
313
+ return ue("SuspenseList");
314
314
  }
315
315
  if (typeof e == "object")
316
316
  switch (e.$$typeof) {
317
317
  case f:
318
318
  return Xe(e.render);
319
- case L:
320
- return ke(e.type, t, n);
319
+ case A:
320
+ return Pe(e.type, t, n);
321
321
  case C: {
322
322
  var s = e, E = s._payload, _ = s._init;
323
323
  try {
324
- return ke(_(E), t, n);
324
+ return Pe(_(E), t, n);
325
325
  } catch {
326
326
  }
327
327
  }
328
328
  }
329
329
  return "";
330
330
  }
331
- var I = Object.prototype.hasOwnProperty, ue = {}, M = F.ReactDebugCurrentFrame;
331
+ var k = Object.prototype.hasOwnProperty, ce = {}, M = F.ReactDebugCurrentFrame;
332
332
  function Fe(e) {
333
333
  if (e) {
334
- var t = e._owner, n = ke(e.type, e._source, t ? t.type : null);
334
+ var t = e._owner, n = Pe(e.type, e._source, t ? t.type : null);
335
335
  M.setExtraStackFrame(n);
336
336
  } else
337
337
  M.setExtraStackFrame(null);
338
338
  }
339
339
  function Re(e, t, n, s, E) {
340
340
  {
341
- var _ = Function.call.bind(I);
342
- for (var p in e)
343
- if (_(e, p)) {
341
+ var _ = Function.call.bind(k);
342
+ for (var g in e)
343
+ if (_(e, g)) {
344
344
  var h = void 0;
345
345
  try {
346
- if (typeof e[p] != "function") {
347
- var J = Error((s || "React class") + ": " + n + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
346
+ if (typeof e[g] != "function") {
347
+ var J = Error((s || "React class") + ": " + n + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
348
348
  throw J.name = "Invariant Violation", J;
349
349
  }
350
- h = e[p](t, p, s, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
350
+ h = e[g](t, g, s, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
351
351
  } catch (V) {
352
352
  h = V;
353
353
  }
354
- h && !(h instanceof Error) && (Fe(E), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", n, p, typeof h), Fe(null)), h instanceof Error && !(h.message in ue) && (ue[h.message] = !0, Fe(E), j("Failed %s type: %s", n, h.message), Fe(null));
354
+ h && !(h instanceof Error) && (Fe(E), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", n, g, typeof h), Fe(null)), h instanceof Error && !(h.message in ce) && (ce[h.message] = !0, Fe(E), j("Failed %s type: %s", n, h.message), Fe(null));
355
355
  }
356
356
  }
357
357
  }
@@ -359,7 +359,7 @@ function kr() {
359
359
  function ye(e) {
360
360
  return we(e);
361
361
  }
362
- function Q(e) {
362
+ function ee(e) {
363
363
  {
364
364
  var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
365
365
  return n;
@@ -367,17 +367,17 @@ function kr() {
367
367
  }
368
368
  function _e(e) {
369
369
  try {
370
- return ce(e), !1;
370
+ return se(e), !1;
371
371
  } catch {
372
372
  return !0;
373
373
  }
374
374
  }
375
- function ce(e) {
375
+ function se(e) {
376
376
  return "" + e;
377
377
  }
378
- function se(e) {
378
+ function le(e) {
379
379
  if (_e(e))
380
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Q(e)), ce(e);
380
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ee(e)), se(e);
381
381
  }
382
382
  var Ce = F.ReactCurrentOwner, Ze = {
383
383
  key: !0,
@@ -387,7 +387,7 @@ function kr() {
387
387
  }, er, Qe, Se;
388
388
  Se = {};
389
389
  function je(e) {
390
- if (I.call(e, "ref")) {
390
+ if (k.call(e, "ref")) {
391
391
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
392
392
  if (t && t.isReactWarning)
393
393
  return !1;
@@ -395,7 +395,7 @@ function kr() {
395
395
  return e.ref !== void 0;
396
396
  }
397
397
  function rr(e) {
398
- if (I.call(e, "key")) {
398
+ if (k.call(e, "key")) {
399
399
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
400
400
  if (t && t.isReactWarning)
401
401
  return !1;
@@ -404,8 +404,8 @@ function kr() {
404
404
  }
405
405
  function xe(e, t) {
406
406
  if (typeof e.ref == "string" && Ce.current && t && Ce.current.stateNode !== t) {
407
- var n = y(Ce.current.type);
408
- Se[n] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(Ce.current.type), e.ref), Se[n] = !0);
407
+ var n = x(Ce.current.type);
408
+ Se[n] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', x(Ce.current.type), e.ref), Se[n] = !0);
409
409
  }
410
410
  }
411
411
  function Ye(e, t) {
@@ -430,7 +430,7 @@ function kr() {
430
430
  });
431
431
  }
432
432
  }
433
- var Be = function(e, t, n, s, E, _, p) {
433
+ var Be = function(e, t, n, s, E, _, g) {
434
434
  var h = {
435
435
  // This tag allows us to uniquely identify this as a React Element
436
436
  $$typeof: m,
@@ -438,7 +438,7 @@ function kr() {
438
438
  type: e,
439
439
  key: t,
440
440
  ref: n,
441
- props: p,
441
+ props: g,
442
442
  // Record the component responsible for creating this element.
443
443
  _owner: _
444
444
  };
@@ -461,39 +461,39 @@ function kr() {
461
461
  };
462
462
  function qe(e, t, n, s, E) {
463
463
  {
464
- var _, p = {}, h = null, J = null;
465
- n !== void 0 && (se(n), h = "" + n), rr(t) && (se(t.key), h = "" + t.key), je(t) && (J = t.ref, xe(t, E));
464
+ var _, g = {}, h = null, J = null;
465
+ n !== void 0 && (le(n), h = "" + n), rr(t) && (le(t.key), h = "" + t.key), je(t) && (J = t.ref, xe(t, E));
466
466
  for (_ in t)
467
- I.call(t, _) && !Ze.hasOwnProperty(_) && (p[_] = t[_]);
467
+ k.call(t, _) && !Ze.hasOwnProperty(_) && (g[_] = t[_]);
468
468
  if (e && e.defaultProps) {
469
469
  var V = e.defaultProps;
470
470
  for (_ in V)
471
- p[_] === void 0 && (p[_] = V[_]);
471
+ g[_] === void 0 && (g[_] = V[_]);
472
472
  }
473
473
  if (h || J) {
474
474
  var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
475
- h && Ye(p, S), J && Ue(p, S);
475
+ h && Ye(g, S), J && Ue(g, S);
476
476
  }
477
- return Be(e, h, J, E, s, Ce.current, p);
477
+ return Be(e, h, J, E, s, Ce.current, g);
478
478
  }
479
479
  }
480
- var Le = F.ReactCurrentOwner, Oe = F.ReactDebugCurrentFrame;
480
+ var Ae = F.ReactCurrentOwner, Oe = F.ReactDebugCurrentFrame;
481
481
  function be(e) {
482
482
  if (e) {
483
- var t = e._owner, n = ke(e.type, e._source, t ? t.type : null);
483
+ var t = e._owner, n = Pe(e.type, e._source, t ? t.type : null);
484
484
  Oe.setExtraStackFrame(n);
485
485
  } else
486
486
  Oe.setExtraStackFrame(null);
487
487
  }
488
- var Ae;
489
- Ae = !1;
488
+ var Le;
489
+ Le = !1;
490
490
  function r(e) {
491
491
  return typeof e == "object" && e !== null && e.$$typeof === m;
492
492
  }
493
493
  function o() {
494
494
  {
495
- if (Le.current) {
496
- var e = y(Le.current.type);
495
+ if (Ae.current) {
496
+ var e = x(Ae.current.type);
497
497
  if (e)
498
498
  return `
499
499
 
@@ -514,7 +514,7 @@ Check your code at ` + t + ":" + n + ".";
514
514
  }
515
515
  }
516
516
  var P = {};
517
- function X(e) {
517
+ function K(e) {
518
518
  {
519
519
  var t = o();
520
520
  if (!t) {
@@ -526,35 +526,35 @@ Check the top-level render call using <` + n + ">.");
526
526
  return t;
527
527
  }
528
528
  }
529
- function le(e, t) {
529
+ function fe(e, t) {
530
530
  {
531
531
  if (!e._store || e._store.validated || e.key != null)
532
532
  return;
533
533
  e._store.validated = !0;
534
- var n = X(t);
534
+ var n = K(t);
535
535
  if (P[n])
536
536
  return;
537
537
  P[n] = !0;
538
538
  var s = "";
539
- e && e._owner && e._owner !== Le.current && (s = " It was passed a child from " + y(e._owner.type) + "."), be(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, s), be(null);
539
+ e && e._owner && e._owner !== Ae.current && (s = " It was passed a child from " + x(e._owner.type) + "."), be(e), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, s), be(null);
540
540
  }
541
541
  }
542
- function fe(e, t) {
542
+ function de(e, t) {
543
543
  {
544
544
  if (typeof e != "object")
545
545
  return;
546
546
  if (ye(e))
547
547
  for (var n = 0; n < e.length; n++) {
548
548
  var s = e[n];
549
- r(s) && le(s, t);
549
+ r(s) && fe(s, t);
550
550
  }
551
551
  else if (r(e))
552
552
  e._store && (e._store.validated = !0);
553
553
  else if (e) {
554
- var E = ie(e);
554
+ var E = ae(e);
555
555
  if (typeof E == "function" && E !== e.entries)
556
- for (var _ = E.call(e), p; !(p = _.next()).done; )
557
- r(p.value) && le(p.value, t);
556
+ for (var _ = E.call(e), g; !(g = _.next()).done; )
557
+ r(g.value) && fe(g.value, t);
558
558
  }
559
559
  }
560
560
  }
@@ -568,22 +568,22 @@ Check the top-level render call using <` + n + ">.");
568
568
  n = t.propTypes;
569
569
  else if (typeof t == "object" && (t.$$typeof === f || // Note: Memo only checks outer props here.
570
570
  // Inner props are checked in the reconciler.
571
- t.$$typeof === L))
571
+ t.$$typeof === A))
572
572
  n = t.propTypes;
573
573
  else
574
574
  return;
575
575
  if (n) {
576
- var s = y(t);
576
+ var s = x(t);
577
577
  Re(n, e.props, "prop", s, e);
578
- } else if (t.PropTypes !== void 0 && !Ae) {
579
- Ae = !0;
580
- var E = y(t);
578
+ } else if (t.PropTypes !== void 0 && !Le) {
579
+ Le = !0;
580
+ var E = x(t);
581
581
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
582
582
  }
583
583
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
584
584
  }
585
585
  }
586
- function ne(e) {
586
+ function ie(e) {
587
587
  {
588
588
  for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
589
589
  var s = t[n];
@@ -597,32 +597,32 @@ Check the top-level render call using <` + n + ">.");
597
597
  }
598
598
  function nr(e, t, n, s, E, _) {
599
599
  {
600
- var p = Te(e);
601
- if (!p) {
600
+ var g = Te(e);
601
+ if (!g) {
602
602
  var h = "";
603
603
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
604
604
  var J = a(E);
605
605
  J ? h += J : h += o();
606
606
  var V;
607
- e === null ? V = "null" : ye(e) ? V = "array" : e !== void 0 && e.$$typeof === m ? (V = "<" + (y(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : V = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, h);
607
+ e === null ? V = "null" : ye(e) ? V = "array" : e !== void 0 && e.$$typeof === m ? (V = "<" + (x(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : V = typeof e, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", V, h);
608
608
  }
609
609
  var S = qe(e, t, n, E, _);
610
610
  if (S == null)
611
611
  return S;
612
- if (p) {
613
- var K = t.children;
614
- if (K !== void 0)
612
+ if (g) {
613
+ var Z = t.children;
614
+ if (Z !== void 0)
615
615
  if (s)
616
- if (ye(K)) {
617
- for (var $e = 0; $e < K.length; $e++)
618
- fe(K[$e], e);
619
- Object.freeze && Object.freeze(K);
616
+ if (ye(Z)) {
617
+ for (var $e = 0; $e < Z.length; $e++)
618
+ de(Z[$e], e);
619
+ Object.freeze && Object.freeze(Z);
620
620
  } else
621
621
  j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
622
622
  else
623
- fe(K, e);
623
+ de(Z, e);
624
624
  }
625
- return e === $ ? ne(S) : tr(S), S;
625
+ return e === $ ? ie(S) : tr(S), S;
626
626
  }
627
627
  }
628
628
  function gr(e, t, n) {
@@ -636,13 +636,13 @@ Check the top-level render call using <` + n + ">.");
636
636
  }()), Je;
637
637
  }
638
638
  (function(i) {
639
- process.env.NODE_ENV === "production" ? i.exports = Pr() : i.exports = kr();
639
+ process.env.NODE_ENV === "production" ? i.exports = kr() : i.exports = Pr();
640
640
  })(Ir);
641
641
  const ir = "RSC::Event";
642
642
  function mr() {
643
643
  const i = O(null);
644
644
  function m($) {
645
- ve(() => {
645
+ he(() => {
646
646
  i.current || (i.current = document.createElement("div"));
647
647
  function Y(v) {
648
648
  $(v.detail);
@@ -654,7 +654,7 @@ function mr() {
654
654
  };
655
655
  }, [$]);
656
656
  }
657
- function g($) {
657
+ function p($) {
658
658
  if (i.current) {
659
659
  const Y = new CustomEvent(ir, {
660
660
  detail: $
@@ -664,18 +664,18 @@ function mr() {
664
664
  }
665
665
  return {
666
666
  useListenToCustomEvent: m,
667
- emitEvent: g
667
+ emitEvent: p
668
668
  };
669
669
  }
670
670
  function Fr({
671
671
  mainCarouselWrapperRef: i,
672
672
  onFullScreenChange: m,
673
- handleResize: g
673
+ handleResize: p
674
674
  }) {
675
675
  const $ = O(!1);
676
- ve(() => {
676
+ he(() => {
677
677
  function f() {
678
- document.fullscreenElement && (Y(!0), m(!0), g && g()), document.fullscreenElement || (Y(!1), m(!1), g && g());
678
+ document.fullscreenElement && (Y(!0), m(!0), p && p()), document.fullscreenElement || (Y(!1), m(!1), p && p());
679
679
  }
680
680
  if (Ee.isEnabled)
681
681
  return Ee.on("change", f), () => {
@@ -688,14 +688,14 @@ function Fr({
688
688
  function v() {
689
689
  return $.current;
690
690
  }
691
- function T(f) {
691
+ function R(f) {
692
692
  Ee.isEnabled && Ee.request(f || i.current);
693
693
  }
694
694
  function l() {
695
695
  Ee.isEnabled && Ee.exit();
696
696
  }
697
697
  return {
698
- enterFullscreen: T,
698
+ enterFullscreen: R,
699
699
  exitFullscreen: l,
700
700
  getIsFullscreen: v
701
701
  };
@@ -707,11 +707,11 @@ function jr(i) {
707
707
  function pr({
708
708
  thumbsSlideAxis: i = "x",
709
709
  withThumbs: m = !1,
710
- prepareThumbsData: g,
710
+ prepareThumbsData: p,
711
711
  items: $,
712
712
  renderThumbFnProps: Y
713
713
  }) {
714
- const v = O(null), [T, l] = vr(() => ({
714
+ const v = O(null), [R, l] = vr(() => ({
715
715
  val: 0
716
716
  }));
717
717
  function f() {
@@ -721,7 +721,7 @@ function pr({
721
721
  ) : 0;
722
722
  }
723
723
  function d(C) {
724
- var x;
724
+ var y;
725
725
  function u() {
726
726
  return v.current ? v.current.querySelector(
727
727
  `#thumb-item-${$[C].id}`
@@ -729,10 +729,10 @@ function pr({
729
729
  }
730
730
  const U = u();
731
731
  if (U && v.current && !jr(U)) {
732
- const ie = U.offsetLeft, F = ie > f() ? f() : ie;
732
+ const ae = U.offsetLeft, F = ae > f() ? f() : ae;
733
733
  l.start({
734
734
  from: {
735
- val: ((x = v.current) == null ? void 0 : x[i === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
735
+ val: ((y = v.current) == null ? void 0 : y[i === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
736
736
  },
737
737
  to: {
738
738
  val: F
@@ -752,15 +752,15 @@ function pr({
752
752
  renderThumb: U.renderThumb
753
753
  }));
754
754
  }
755
- return g ? g(C($)) : C($);
755
+ return p ? p(C($)) : C($);
756
756
  }
757
757
  return {
758
- thumbsFragment: m ? /* @__PURE__ */ A.jsx(
758
+ thumbsFragment: m ? /* @__PURE__ */ L.jsx(
759
759
  "div",
760
760
  {
761
761
  className: "use-spring-carousel-thumbs-wrapper",
762
762
  ref: v,
763
- onWheel: () => T.val.stop(),
763
+ onWheel: () => R.val.stop(),
764
764
  style: {
765
765
  display: "flex",
766
766
  flex: "1",
@@ -775,7 +775,7 @@ function pr({
775
775
  },
776
776
  children: W().map(({ id: C, renderThumb: u }) => {
777
777
  const U = `thumb-item-${C}`;
778
- return /* @__PURE__ */ A.jsx("div", { id: U, className: "thumb-item", children: typeof u == "function" ? u(Y) : u }, U);
778
+ return /* @__PURE__ */ L.jsx("div", { id: U, className: "thumb-item", children: typeof u == "function" ? u(Y) : u }, U);
779
779
  })
780
780
  }
781
781
  ) : null,
@@ -785,28 +785,28 @@ function pr({
785
785
  function Nr({
786
786
  items: i,
787
787
  init: m = !0,
788
- withThumbs: g,
788
+ withThumbs: p,
789
789
  thumbsSlideAxis: $ = "x",
790
790
  itemsPerSlide: Y = 1,
791
791
  slideType: v = "fixed",
792
- gutter: T = 0,
792
+ gutter: R = 0,
793
793
  withLoop: l = !1,
794
794
  startEndGutter: f = 0,
795
795
  carouselSlideAxis: d = "x",
796
796
  disableGestures: W = !1,
797
- draggingSlideTreshold: L,
797
+ draggingSlideTreshold: A,
798
798
  slideWhenThresholdIsReached: C = !1,
799
799
  freeScroll: u,
800
800
  enableFreeScrollDrag: U,
801
- initialStartingPosition: x,
802
- prepareThumbsData: ie,
801
+ initialStartingPosition: y,
802
+ prepareThumbsData: ae,
803
803
  initialActiveItem: F = 0,
804
804
  animateWhenActiveItemChange: j = !0,
805
- slideGroupOfItems: G = !1,
805
+ slideGroupOfItems: re = !1,
806
806
  __unstable_stretch_tems__: Ne = !0,
807
- slideAmount: ee
807
+ slideAmount: te
808
808
  }) {
809
- const q = Y, re = O(!1), ae = O(L ?? 0), z = O("initial"), Te = O("initial"), he = O("initial"), N = O(F), y = O(F === 0), b = O(v === "fixed" && F === i.length - 1), R = O(null), D = O(null), me = O(0), pe = O(0), c = O(0), w = O(l), k = O(v), te = O(u), H = O(!1), Ie = De(() => l ? [
809
+ const B = Y, ne = O(!1), oe = O(A ?? 0), z = O("initial"), Te = O("initial"), Q = O("initial"), N = O(F), x = O(F === 0), b = O(v === "fixed" && F === i.length - 1), w = O(null), D = O(null), me = O(0), pe = O(0), c = O(0), T = O(l), I = O(v), X = O(u), H = O(!1), Ie = De(() => l ? [
810
810
  ...i.map((r) => ({
811
811
  ...r,
812
812
  id: `prev-repeated-item-${r.id}`
@@ -816,19 +816,19 @@ function Nr({
816
816
  ...r,
817
817
  id: `next-repeated-item-${r.id}`
818
818
  }))
819
- ] : [...i], [i, l])(), [Z, B] = vr(
819
+ ] : [...i], [i, l])(), [G, q] = vr(
820
820
  () => ({
821
821
  val: 0,
822
822
  pause: !m,
823
823
  onChange: ({ value: r }) => {
824
- u && R.current ? (d === "x" ? R.current.scrollLeft = Math.abs(r.val) : R.current.scrollTop = Math.abs(r.val), je()) : D.current && (d === "x" ? D.current.style.transform = `translate3d(${r.val}px, 0px,0px)` : D.current.style.transform = `translate3d(0px,${r.val}px,0px)`);
824
+ u && w.current ? (d === "x" ? w.current.scrollLeft = Math.abs(r.val) : w.current.scrollTop = Math.abs(r.val), je()) : D.current && (d === "x" ? D.current.style.transform = `translate3d(${r.val}px, 0px,0px)` : D.current.style.transform = `translate3d(0px,${r.val}px,0px)`);
825
825
  }
826
826
  }),
827
827
  [u]
828
- ), { emitEvent: oe, useListenToCustomEvent: ge } = mr(), { thumbsFragment: Pe, handleScroll: Ge } = pr({
829
- withThumbs: !!g,
828
+ ), { emitEvent: ue, useListenToCustomEvent: ge } = mr(), { thumbsFragment: ke, handleScroll: Ge } = pr({
829
+ withThumbs: !!p,
830
830
  thumbsSlideAxis: $,
831
- prepareThumbsData: ie,
831
+ prepareThumbsData: ae,
832
832
  items: i,
833
833
  renderThumbFnProps: {
834
834
  getIsActiveItem: qe,
@@ -837,53 +837,53 @@ function Nr({
837
837
  getIsNextItem: Ue
838
838
  }
839
839
  }), { enterFullscreen: Ve, exitFullscreen: Xe, getIsFullscreen: Ke } = Fr({
840
- mainCarouselWrapperRef: R,
840
+ mainCarouselWrapperRef: w,
841
841
  handleResize: () => ye(),
842
842
  onFullScreenChange: (r) => {
843
- oe({
843
+ ue({
844
844
  eventName: "onFullscreenChange",
845
845
  isFullscreen: r
846
846
  });
847
847
  }
848
848
  });
849
- function ke(r) {
849
+ function Pe(r) {
850
850
  return v === "fixed" && !u ? {
851
- marginRight: `${r ? 0 : T}px`,
852
- flex: `${Ne ? "1" : "0"} 0 calc(100% / ${q} - ${T * (q - 1) / q}px)`
851
+ marginRight: `${r ? 0 : R}px`,
852
+ flex: `${Ne ? "1" : "0"} 0 calc(100% / ${B} - ${R * (B - 1) / B}px)`
853
853
  } : {
854
- marginRight: `${r ? 0 : T}px`
854
+ marginRight: `${r ? 0 : R}px`
855
855
  };
856
856
  }
857
- const I = De(() => {
857
+ const k = De(() => {
858
858
  var a;
859
- if (typeof ee == "number" && ee > 0 && (v === "fluid" || u))
860
- return ee;
861
- const r = G ? R.current : (a = R.current) == null ? void 0 : a.querySelector(".use-spring-carousel-item");
859
+ if (typeof te == "number" && te > 0 && (v === "fluid" || u))
860
+ return te;
861
+ const r = re ? w.current : (a = w.current) == null ? void 0 : a.querySelector(".use-spring-carousel-item");
862
862
  if (!r)
863
863
  throw Error("No carousel items available!");
864
864
  let o = r.getBoundingClientRect()[d === "x" ? "width" : "height"];
865
- return G || (o += T), G && (o += T - f * 2), o;
865
+ return re || (o += R), re && (o += R - f * 2), o;
866
866
  }, [
867
867
  d,
868
868
  u,
869
- T,
870
- ee,
871
- G,
869
+ R,
870
+ te,
871
+ re,
872
872
  v,
873
873
  f
874
874
  ]);
875
- function ue({ from: r, to: o, nextActiveItem: a, immediate: P = !1, slideMode: X }) {
876
- Te.current = X, typeof a == "number" && (u || (N.current = a), oe({
875
+ function ce({ from: r, to: o, nextActiveItem: a, immediate: P = !1, slideMode: K }) {
876
+ Te.current = K, typeof a == "number" && (u || (N.current = a), ue({
877
877
  eventName: "onSlideStartChange",
878
878
  slideActionType: z.current,
879
879
  slideMode: Te.current,
880
880
  nextItem: {
881
- startReached: y.current,
881
+ startReached: x.current,
882
882
  endReached: b.current,
883
883
  index: u ? -1 : N.current,
884
884
  id: u ? "" : i[N.current].id
885
885
  }
886
- })), c.current = o, B.start({
886
+ })), c.current = o, q.start({
887
887
  immediate: P,
888
888
  from: {
889
889
  val: r
@@ -893,31 +893,31 @@ function Nr({
893
893
  },
894
894
  config: {
895
895
  ...We.default,
896
- velocity: Z.val.velocity
896
+ velocity: G.val.velocity
897
897
  },
898
- onRest(le) {
899
- !P && le.finished && oe({
898
+ onRest(fe) {
899
+ !P && fe.finished && ue({
900
900
  eventName: "onSlideChange",
901
901
  slideActionType: z.current,
902
902
  slideMode: Te.current,
903
903
  currentItem: {
904
- startReached: y.current,
904
+ startReached: x.current,
905
905
  endReached: b.current,
906
906
  index: u ? -1 : N.current,
907
907
  id: u ? "" : i[N.current].id
908
908
  }
909
909
  });
910
910
  }
911
- }), g && !P && Ge(N.current);
911
+ }), p && !P && Ge(N.current);
912
912
  }
913
913
  const M = De(() => {
914
914
  var r;
915
- return D.current ? l ? I() * i.length : Math.round(
915
+ return D.current ? l ? k() * i.length : Math.round(
916
916
  Number(
917
917
  (r = D.current) == null ? void 0 : r[d === "x" ? "scrollWidth" : "scrollHeight"]
918
918
  ) - D.current.getBoundingClientRect()[d === "x" ? "width" : "height"] - f * 2
919
919
  ) : 0;
920
- }, [d, I, i.length, f, l]);
920
+ }, [d, k, i.length, f, l]);
921
921
  function Fe() {
922
922
  const r = `calc(100% - ${f * 2}px)`;
923
923
  return {
@@ -930,29 +930,29 @@ function Nr({
930
930
  const r = (o = D.current) == null ? void 0 : o.querySelector(".use-spring-carousel-item");
931
931
  if (!r)
932
932
  throw Error("No carousel items available!");
933
- return r.getBoundingClientRect()[d === "x" ? "width" : "height"] + T;
934
- }, [d, T]), we = De(
933
+ return r.getBoundingClientRect()[d === "x" ? "width" : "height"] + R;
934
+ }, [d, R]), we = De(
935
935
  (r) => {
936
936
  const o = d === "x" ? "left" : "top", a = D.current;
937
- a && (l ? (a.style.top = "0px", a.style.left = "0px", a.style[o] = `-${r - f}px`, y.current = !1, b.current = !1) : (a.style.left = "0px", a.style.top = "0px"));
937
+ a && (l ? (a.style.top = "0px", a.style.left = "0px", a.style[o] = `-${r - f}px`, x.current = !1, b.current = !1) : (a.style.left = "0px", a.style.top = "0px"));
938
938
  },
939
939
  [d, f, l]
940
940
  ), ye = De(
941
941
  (r = !1) => {
942
942
  if (D.current && r && (D.current.style.transform = "translate3d(0px, 0px,0px)", D.current.style.left = "0", D.current.style.top = "0"), v === "fixed" && we(
943
- x === "center" ? Re() * i.length - I() * Math.round((q - 1) / 2) : x === "end" ? Re() * i.length - I() * Math.round(q - 1) : Re() * i.length
943
+ y === "center" ? Re() * i.length - k() * Math.round((B - 1) / 2) : y === "end" ? Re() * i.length - k() * Math.round(B - 1) : Re() * i.length
944
944
  ), v === "fluid") {
945
945
  if (we(Re() * i.length), b.current && M() !== Math.abs(c.current) && !l) {
946
946
  const o = -M();
947
- c.current = o, B.start({
947
+ c.current = o, q.start({
948
948
  immediate: !0,
949
949
  val: c.current
950
950
  });
951
951
  return;
952
952
  }
953
- if (Math.abs(c.current) > 0 && M() !== Math.abs(c.current) && !l && !u && he.current === "backward") {
953
+ if (Math.abs(c.current) > 0 && M() !== Math.abs(c.current) && !l && !u && Q.current === "backward") {
954
954
  const o = me.current - M(), a = c.current + o;
955
- return B.start({
955
+ return q.start({
956
956
  immediate: !0,
957
957
  val: a
958
958
  }), () => {
@@ -962,64 +962,64 @@ function Nr({
962
962
  return;
963
963
  }
964
964
  if (!u && v === "fixed") {
965
- const o = -(I() * N.current);
965
+ const o = -(k() * N.current);
966
966
  if (Math.abs(o) > M() && !l) {
967
967
  const a = -M();
968
- b.current = !0, c.current = a, B.start({
968
+ b.current = !0, c.current = a, q.start({
969
969
  immediate: !0,
970
970
  val: c.current
971
971
  });
972
972
  } else
973
- c.current = o, B.start({
973
+ c.current = o, q.start({
974
974
  immediate: !0,
975
975
  val: o
976
976
  });
977
977
  setTimeout(() => {
978
- re.current = !1;
978
+ ne.current = !1;
979
979
  }, 0);
980
980
  }
981
981
  },
982
982
  [
983
983
  u,
984
984
  Re,
985
- I,
985
+ k,
986
986
  M,
987
- x,
987
+ y,
988
988
  i.length,
989
- q,
990
- we,
991
989
  B,
990
+ we,
991
+ q,
992
992
  v,
993
993
  l
994
994
  ]
995
995
  );
996
- function Q() {
997
- return u && R.current ? R.current[d === "x" ? "scrollLeft" : "scrollTop"] : Z.val.get();
996
+ function ee() {
997
+ return u && w.current ? w.current[d === "x" ? "scrollLeft" : "scrollTop"] : G.val.get();
998
998
  }
999
999
  function _e(r, o) {
1000
1000
  if (u && r === "next") {
1001
- const a = c.current + I();
1001
+ const a = c.current + k();
1002
1002
  return a > M() ? M() : a;
1003
1003
  }
1004
1004
  if (u && r === "prev") {
1005
- const a = c.current - I();
1005
+ const a = c.current - k();
1006
1006
  return a < 0 ? 0 : a;
1007
1007
  }
1008
- return r === "next" ? typeof o == "number" ? -(o * I()) : c.current - I() : typeof o == "number" ? -(o * I()) : c.current + I();
1008
+ return r === "next" ? typeof o == "number" ? -(o * k()) : c.current - k() : typeof o == "number" ? -(o * k()) : c.current + k();
1009
1009
  }
1010
- function ce({ type: r, index: o, immediate: a }) {
1011
- if (!m || H.current || y.current && !l)
1010
+ function se({ type: r, index: o, immediate: a }) {
1011
+ if (!m || H.current || x.current && !l)
1012
1012
  return;
1013
- b.current && (he.current = "backward"), z.current = "prev", b.current = !1;
1013
+ b.current && (Q.current = "backward"), z.current = "prev", b.current = !1;
1014
1014
  const P = typeof o == "number" ? o : N.current - 1;
1015
1015
  if (u && je(), !l) {
1016
- const X = u ? _e("prev", o) - I() / 3 < 0 : _e("prev", o) + I() / 3 > 0;
1017
- if (y.current)
1016
+ const K = u ? _e("prev", o) - k() / 3 < 0 : _e("prev", o) + k() / 3 > 0;
1017
+ if (x.current)
1018
1018
  return;
1019
- if (X) {
1020
- y.current = !0, b.current = !1, ue({
1019
+ if (K) {
1020
+ x.current = !0, b.current = !1, ce({
1021
1021
  slideMode: r,
1022
- from: Q(),
1022
+ from: ee(),
1023
1023
  to: 0,
1024
1024
  nextActiveItem: 0,
1025
1025
  immediate: a
@@ -1027,37 +1027,37 @@ function Nr({
1027
1027
  return;
1028
1028
  }
1029
1029
  }
1030
- if (l && (y.current || P < 0)) {
1031
- y.current = !1, b.current = !0, ue({
1030
+ if (l && (x.current || P < 0)) {
1031
+ x.current = !1, b.current = !0, ce({
1032
1032
  slideMode: r,
1033
- from: Q() - I() * i.length,
1034
- to: -(I() * i.length) + I(),
1033
+ from: ee() - k() * i.length,
1034
+ to: -(k() * i.length) + k(),
1035
1035
  nextActiveItem: i.length - 1,
1036
1036
  immediate: a
1037
1037
  });
1038
1038
  return;
1039
1039
  }
1040
- P === 0 && (y.current = !0), (P === i.length - 1 || P === -1) && (b.current = !0), ue({
1040
+ P === 0 && (x.current = !0), (P === i.length - 1 || P === -1) && (b.current = !0), ce({
1041
1041
  slideMode: r,
1042
- from: Q(),
1042
+ from: ee(),
1043
1043
  to: _e("prev", o),
1044
1044
  nextActiveItem: P,
1045
1045
  immediate: a
1046
1046
  });
1047
1047
  }
1048
- function se({ type: r, index: o, immediate: a }) {
1048
+ function le({ type: r, index: o, immediate: a }) {
1049
1049
  if (!m || H.current || b.current && !l)
1050
1050
  return;
1051
- y.current && (he.current = "forward"), z.current = "next", y.current = !1;
1051
+ x.current && (Q.current = "forward"), z.current = "next", x.current = !1;
1052
1052
  const P = o || N.current + 1;
1053
1053
  if (u && je(), !l) {
1054
- const X = Math.abs(_e("next", o)) > M() - I() / 3;
1054
+ const K = Math.abs(_e("next", o)) > M() - k() / 3;
1055
1055
  if (b.current)
1056
1056
  return;
1057
- if (X) {
1058
- y.current = !1, b.current = !0, ue({
1057
+ if (K) {
1058
+ x.current = !1, b.current = !0, ce({
1059
1059
  slideMode: r,
1060
- from: Q(),
1060
+ from: ee(),
1061
1061
  to: u ? M() : -M(),
1062
1062
  nextActiveItem: P,
1063
1063
  immediate: a
@@ -1066,128 +1066,128 @@ function Nr({
1066
1066
  }
1067
1067
  }
1068
1068
  if (l && (b.current || P > i.length - 1)) {
1069
- b.current = !1, y.current = !0, ue({
1069
+ b.current = !1, x.current = !0, ce({
1070
1070
  slideMode: r,
1071
- from: Q() + I() * i.length,
1071
+ from: ee() + k() * i.length,
1072
1072
  to: 0,
1073
1073
  nextActiveItem: 0,
1074
1074
  immediate: a
1075
1075
  });
1076
1076
  return;
1077
1077
  }
1078
- P === 0 && (y.current = !0), P === i.length - 1 && (b.current = !0), ue({
1078
+ P === 0 && (x.current = !0), P === i.length - 1 && (b.current = !0), ce({
1079
1079
  slideMode: r,
1080
- from: Q(),
1080
+ from: ee(),
1081
1081
  to: _e("next", o),
1082
1082
  nextActiveItem: P,
1083
1083
  immediate: a
1084
1084
  });
1085
1085
  }
1086
1086
  function Ce() {
1087
- L ? ae.current = L : ae.current = Math.floor(I() / 2 / 2);
1087
+ A ? oe.current = A : oe.current = Math.floor(k() / 2 / 2);
1088
1088
  }
1089
1089
  function Ze() {
1090
- D.current && (me.current = M(), w.current = l, k.current = v, te.current = u, pe.current = window.innerWidth, c.current = 0, Ye({ id: 0, immediate: !0, shouldReset: !0 }), Ce(), ye());
1090
+ D.current && (me.current = M(), T.current = l, I.current = v, X.current = u, pe.current = window.innerWidth, c.current = 0, Ye({ id: 0, immediate: !0, shouldReset: !0 }), Ce(), ye());
1091
1091
  }
1092
1092
  const Qe = hr(
1093
1093
  (r) => {
1094
- const o = r.dragging, a = r.offset[d === "x" ? 0 : 1], P = r.movement[d === "x" ? 0 : 1], X = r.direction[d === "x" ? 0 : 1], le = P > ae.current, fe = P < -ae.current, tr = M(), ne = r.velocity;
1094
+ const o = r.dragging, a = r.offset[d === "x" ? 0 : 1], P = r.movement[d === "x" ? 0 : 1], K = r.direction[d === "x" ? 0 : 1], fe = P > oe.current, de = P < -oe.current, tr = M(), ie = r.velocity;
1095
1095
  if (o) {
1096
- if (X > 0 ? z.current = "prev" : z.current = "next", oe({
1096
+ if (K > 0 ? z.current = "prev" : z.current = "next", ue({
1097
1097
  ...r,
1098
1098
  eventName: "onDrag",
1099
1099
  slideActionType: z.current
1100
1100
  }), u) {
1101
1101
  if (a > 0) {
1102
- B.start({
1102
+ q.start({
1103
1103
  from: {
1104
- val: Q()
1104
+ val: ee()
1105
1105
  },
1106
1106
  to: {
1107
1107
  val: 0
1108
1108
  },
1109
1109
  config: {
1110
- velocity: ne,
1110
+ velocity: ie,
1111
1111
  friction: 50,
1112
1112
  tension: 1e3
1113
1113
  }
1114
1114
  }), r.cancel();
1115
1115
  return;
1116
1116
  }
1117
- B.start({
1117
+ q.start({
1118
1118
  from: {
1119
- val: Q()
1119
+ val: ee()
1120
1120
  },
1121
1121
  to: {
1122
1122
  val: -a
1123
1123
  },
1124
1124
  config: {
1125
- velocity: ne,
1125
+ velocity: ie,
1126
1126
  friction: 50,
1127
1127
  tension: 1e3
1128
1128
  }
1129
1129
  });
1130
1130
  return;
1131
1131
  }
1132
- B.start({
1132
+ q.start({
1133
1133
  val: a,
1134
1134
  config: {
1135
- velocity: ne,
1135
+ velocity: ie,
1136
1136
  friction: 50,
1137
1137
  tension: 1e3
1138
1138
  }
1139
- }), C && fe ? (se({ type: "drag" }), r.cancel()) : C && le && (ce({ type: "drag" }), r.cancel()), tr - Math.abs(a) < -(I() * 2) && r.cancel();
1139
+ }), C && de ? (le({ type: "drag" }), r.cancel()) : C && fe && (se({ type: "drag" }), r.cancel()), tr - Math.abs(a) < -(k() * 2) && r.cancel();
1140
1140
  return;
1141
1141
  }
1142
1142
  if (r.last && u && a > 0) {
1143
- B.start({
1143
+ q.start({
1144
1144
  from: {
1145
- val: Q()
1145
+ val: ee()
1146
1146
  },
1147
1147
  to: {
1148
1148
  val: 0
1149
1149
  },
1150
1150
  config: {
1151
- velocity: ne,
1151
+ velocity: ie,
1152
1152
  friction: 50,
1153
1153
  tension: 1e3
1154
1154
  }
1155
1155
  });
1156
1156
  return;
1157
1157
  }
1158
- r.last && !r.canceled && u && (z.current === "prev" && ce({ type: "drag" }), z.current === "next" && se({ type: "drag" })), r.last && !r.canceled && !u && (fe ? !l && b.current ? B.start({
1158
+ r.last && !r.canceled && u && (z.current === "prev" && se({ type: "drag" }), z.current === "next" && le({ type: "drag" })), r.last && !r.canceled && !u && (de ? !l && b.current ? q.start({
1159
1159
  val: -M(),
1160
1160
  config: {
1161
1161
  ...We.default,
1162
- velocity: ne
1162
+ velocity: ie
1163
1163
  }
1164
- }) : se({ type: "drag" }) : le ? !l && y.current ? B.start({
1164
+ }) : le({ type: "drag" }) : fe ? !l && x.current ? q.start({
1165
1165
  val: 0,
1166
1166
  config: {
1167
1167
  ...We.default,
1168
- velocity: ne
1168
+ velocity: ie
1169
1169
  }
1170
- }) : ce({ type: "drag" }) : B.start({
1170
+ }) : se({ type: "drag" }) : q.start({
1171
1171
  val: c.current,
1172
1172
  config: {
1173
1173
  ...We.default,
1174
- velocity: ne
1174
+ velocity: ie
1175
1175
  }
1176
- })), r.last && r.canceled && B.start({
1176
+ })), r.last && r.canceled && q.start({
1177
1177
  val: c.current,
1178
1178
  config: {
1179
1179
  ...We.default,
1180
- velocity: ne
1180
+ velocity: ie
1181
1181
  }
1182
1182
  });
1183
1183
  },
1184
1184
  {
1185
1185
  enabled: m && !W && !u || !!u && !!U,
1186
1186
  axis: d,
1187
- from: () => u && R.current ? [
1188
- -R.current.scrollLeft,
1189
- -R.current.scrollTop
1190
- ] : d === "x" ? [Z.val.get(), Z.val.get()] : [Z.val.get(), Z.val.get()]
1187
+ from: () => u && w.current ? [
1188
+ -w.current.scrollLeft,
1189
+ -w.current.scrollTop
1190
+ ] : d === "x" ? [G.val.get(), G.val.get()] : [G.val.get(), G.val.get()]
1191
1191
  }
1192
1192
  );
1193
1193
  function Se() {
@@ -1198,12 +1198,12 @@ function Nr({
1198
1198
  } : {};
1199
1199
  }
1200
1200
  function je() {
1201
- R.current && (c.current = R.current[d === "x" ? "scrollLeft" : "scrollTop"], R.current[d === "x" ? "scrollLeft" : "scrollTop"] === 0 && (y.current = !0, b.current = !1), R.current[d === "x" ? "scrollLeft" : "scrollTop"] > 0 && R.current[d === "x" ? "scrollLeft" : "scrollTop"] < M() && (y.current = !1, b.current = !1), R.current[d === "x" ? "scrollLeft" : "scrollTop"] === M() && (y.current = !1, b.current = !0));
1201
+ w.current && (c.current = w.current[d === "x" ? "scrollLeft" : "scrollTop"], w.current[d === "x" ? "scrollLeft" : "scrollTop"] === 0 && (x.current = !0, b.current = !1), w.current[d === "x" ? "scrollLeft" : "scrollTop"] > 0 && w.current[d === "x" ? "scrollLeft" : "scrollTop"] < M() && (x.current = !1, b.current = !1), w.current[d === "x" ? "scrollLeft" : "scrollTop"] === M() && (x.current = !1, b.current = !0));
1202
1202
  }
1203
1203
  function rr() {
1204
1204
  return u ? {
1205
1205
  onWheel() {
1206
- Z.val.stop(), je();
1206
+ G.val.stop(), je();
1207
1207
  }
1208
1208
  } : {};
1209
1209
  }
@@ -1219,21 +1219,21 @@ function Nr({
1219
1219
  function Ye({ id: r, immediate: o, shouldReset: a, type: P }) {
1220
1220
  if (!m || H.current)
1221
1221
  return;
1222
- y.current = !1, b.current = !1;
1223
- const X = xe(
1222
+ x.current = !1, b.current = !1;
1223
+ const K = xe(
1224
1224
  r,
1225
1225
  "The item you want to slide to doesn't exist; check the provided id."
1226
1226
  );
1227
- if (X === N.current && !a)
1227
+ if (K === N.current && !a)
1228
1228
  return;
1229
- const le = xe(i[N.current].id), fe = xe(i[X].id);
1230
- fe > le ? se({
1229
+ const fe = xe(i[N.current].id), de = xe(i[K].id);
1230
+ de > fe ? le({
1231
1231
  type: P || a ? "initial" : "click",
1232
- index: fe,
1232
+ index: de,
1233
1233
  immediate: o
1234
- }) : ce({
1234
+ }) : se({
1235
1235
  type: P || a ? "initial" : "click",
1236
- index: fe,
1236
+ index: de,
1237
1237
  immediate: o
1238
1238
  });
1239
1239
  }
@@ -1248,7 +1248,7 @@ function Nr({
1248
1248
  function qe(r) {
1249
1249
  return xe(r, "The item you want to check doesn't exist; check the provided id.") === N.current;
1250
1250
  }
1251
- function Le() {
1251
+ function Ae() {
1252
1252
  return W ? "unset" : d === "x" ? "pan-y" : "pan-x";
1253
1253
  }
1254
1254
  const Oe = u ? {
@@ -1257,13 +1257,13 @@ function Nr({
1257
1257
  exitFullscreen: Xe,
1258
1258
  getIsFullscreen: Ke,
1259
1259
  slideToPrevItem: (r = !0) => {
1260
- ce({
1260
+ se({
1261
1261
  type: "click",
1262
1262
  immediate: !r
1263
1263
  });
1264
1264
  },
1265
1265
  slideToNextItem: (r = !0) => {
1266
- se({
1266
+ le({
1267
1267
  type: "click",
1268
1268
  immediate: !r
1269
1269
  });
@@ -1274,13 +1274,13 @@ function Nr({
1274
1274
  exitFullscreen: Xe,
1275
1275
  getIsFullscreen: Ke,
1276
1276
  slideToPrevItem: (r = !0) => {
1277
- ce({
1277
+ se({
1278
1278
  type: "click",
1279
1279
  immediate: !r
1280
1280
  });
1281
1281
  },
1282
1282
  slideToNextItem: (r = !0) => {
1283
- se({
1283
+ le({
1284
1284
  type: "click",
1285
1285
  immediate: !r
1286
1286
  });
@@ -1293,25 +1293,25 @@ function Nr({
1293
1293
  getIsActiveItem: qe
1294
1294
  };
1295
1295
  Rr(() => {
1296
- D.current && m && (re.current = !0, Ze());
1297
- }, [m]), ve(() => {
1298
- N.current !== F && (re.current = !0, Ye({
1296
+ D.current && m && (ne.current = !0, Ze());
1297
+ }, [m]), he(() => {
1298
+ N.current !== F && (ne.current = !0, Ye({
1299
1299
  id: F,
1300
1300
  immediate: !j
1301
1301
  }));
1302
- }, [F]), ve(() => {
1302
+ }, [F]), he(() => {
1303
1303
  if (m) {
1304
1304
  if (F > i.length - 1)
1305
1305
  throw new Error(
1306
1306
  `initialActiveItem (${F}) is greater than the total quantity available items (${i.length}).`
1307
1307
  );
1308
- q > i.length && console.warn(
1309
- `itemsPerSlide (${q}) is greater than the total quantity available items (${i.length}). Fallback to ${i.length})`
1308
+ B > i.length && console.warn(
1309
+ `itemsPerSlide (${B}) is greater than the total quantity available items (${i.length}). Fallback to ${i.length})`
1310
1310
  );
1311
1311
  }
1312
- }, [F, i.length, q, m]), ve(() => {
1312
+ }, [F, i.length, B, m]), he(() => {
1313
1313
  pe.current = window.innerWidth;
1314
- }, []), ve(() => {
1314
+ }, []), he(() => {
1315
1315
  if (m) {
1316
1316
  if (l && u)
1317
1317
  throw new Error("`withLoop` and `freeScroll` can't be used together.");
@@ -1321,24 +1321,24 @@ function Nr({
1321
1321
  throw new Error(
1322
1322
  "`enableFreeScrollDrag` must be used with `slideType: fluid` and `freeScroll=true`"
1323
1323
  );
1324
- if (G && u)
1324
+ if (re && u)
1325
1325
  throw new Error("`slideGroupOfItems` and `freeScroll` can't be used together.");
1326
- if (typeof ee == "number" && ee > 0 && v === "fixed")
1326
+ if (typeof te == "number" && te > 0 && v === "fixed")
1327
1327
  throw new Error("`slideAmount` must be used with `slideType: fluid`");
1328
- re.current = !0, Ze();
1328
+ ne.current = !0, Ze();
1329
1329
  }
1330
1330
  }, [
1331
- x,
1332
- q,
1331
+ y,
1332
+ B,
1333
1333
  f,
1334
- T,
1334
+ R,
1335
1335
  m,
1336
1336
  l,
1337
1337
  v,
1338
1338
  u,
1339
1339
  U,
1340
- G
1341
- ]), ve(() => {
1340
+ re
1341
+ ]), he(() => {
1342
1342
  if (!m)
1343
1343
  return;
1344
1344
  function r() {
@@ -1347,11 +1347,11 @@ function Nr({
1347
1347
  return document.addEventListener("visibilitychange", r), () => {
1348
1348
  document.removeEventListener("visibilitychange", r);
1349
1349
  };
1350
- }, [m]), ve(() => {
1351
- if (R.current) {
1350
+ }, [m]), he(() => {
1351
+ if (w.current) {
1352
1352
  let r;
1353
1353
  const o = new Cr(() => {
1354
- if (!H.current && !re.current) {
1354
+ if (!H.current && !ne.current) {
1355
1355
  pe.current = window.innerWidth;
1356
1356
  const a = ye();
1357
1357
  window.clearTimeout(r), r = setTimeout(() => {
@@ -1359,16 +1359,16 @@ function Nr({
1359
1359
  }, 100);
1360
1360
  }
1361
1361
  });
1362
- return o.observe(R.current), () => {
1362
+ return o.observe(w.current), () => {
1363
1363
  o.disconnect();
1364
1364
  };
1365
1365
  }
1366
1366
  }, [ye, M]);
1367
- const be = /* @__PURE__ */ A.jsx(ar.Provider, { value: Oe, children: Pe }), Ae = /* @__PURE__ */ A.jsx(ar.Provider, { value: Oe, children: /* @__PURE__ */ A.jsx(
1367
+ const be = /* @__PURE__ */ L.jsx(ar.Provider, { value: Oe, children: ke }), Le = /* @__PURE__ */ L.jsx(ar.Provider, { value: Oe, children: /* @__PURE__ */ L.jsx(
1368
1368
  "div",
1369
1369
  {
1370
1370
  className: "use-spring-carousel-main-wrapper",
1371
- ref: R,
1371
+ ref: w,
1372
1372
  ...rr(),
1373
1373
  style: {
1374
1374
  display: "flex",
@@ -1377,7 +1377,7 @@ function Nr({
1377
1377
  height: "100%",
1378
1378
  ...Se()
1379
1379
  },
1380
- children: /* @__PURE__ */ A.jsxs(
1380
+ children: /* @__PURE__ */ L.jsxs(
1381
1381
  "div",
1382
1382
  {
1383
1383
  className: "use-spring-carousel-track-wrapper",
@@ -1387,11 +1387,11 @@ function Nr({
1387
1387
  position: "relative",
1388
1388
  display: "flex",
1389
1389
  flexDirection: d === "x" ? "row" : "column",
1390
- touchAction: Le(),
1390
+ touchAction: Ae(),
1391
1391
  ...Fe()
1392
1392
  },
1393
1393
  children: [
1394
- (u || !l) && f ? /* @__PURE__ */ A.jsx(
1394
+ (u || !l) && f ? /* @__PURE__ */ L.jsx(
1395
1395
  "div",
1396
1396
  {
1397
1397
  style: {
@@ -1400,7 +1400,7 @@ function Nr({
1400
1400
  }
1401
1401
  }
1402
1402
  ) : null,
1403
- Ie.map((r, o) => /* @__PURE__ */ A.jsx(Er, { children: /* @__PURE__ */ A.jsx(
1403
+ Ie.map((r, o) => /* @__PURE__ */ L.jsx(Er, { children: /* @__PURE__ */ L.jsx(
1404
1404
  "div",
1405
1405
  {
1406
1406
  className: "use-spring-carousel-item",
@@ -1409,7 +1409,7 @@ function Nr({
1409
1409
  display: "flex",
1410
1410
  position: "relative",
1411
1411
  ...v === "fixed" ? { flex: "1" } : {},
1412
- ...ke(
1412
+ ...Pe(
1413
1413
  o === Ie.findIndex(
1414
1414
  (a) => a.id === Ie[Ie.length - 1].id
1415
1415
  )
@@ -1423,7 +1423,7 @@ function Nr({
1423
1423
  }) : r.renderItem
1424
1424
  }
1425
1425
  ) }, `${r.id}-${o}`)),
1426
- (u || !l) && f ? /* @__PURE__ */ A.jsx(
1426
+ (u || !l) && f ? /* @__PURE__ */ L.jsx(
1427
1427
  "div",
1428
1428
  {
1429
1429
  style: {
@@ -1437,7 +1437,7 @@ function Nr({
1437
1437
  )
1438
1438
  }
1439
1439
  ) });
1440
- return { ...Oe, carouselFragment: Ae, thumbsFragment: be };
1440
+ return { ...Oe, carouselFragment: Le, thumbsFragment: be };
1441
1441
  }
1442
1442
  const ar = fr(void 0);
1443
1443
  function Vr() {
@@ -1467,31 +1467,31 @@ const Me = {
1467
1467
  function Sr({
1468
1468
  init: i = !0,
1469
1469
  disableGestures: m = !1,
1470
- items: g,
1470
+ items: p,
1471
1471
  springConfig: $ = We.default,
1472
1472
  exitBeforeEnter: Y = !1,
1473
1473
  trail: v,
1474
- withLoop: T = !1,
1474
+ withLoop: R = !1,
1475
1475
  activeItem: l,
1476
1476
  toPrevItemSpringProps: f = Me,
1477
1477
  toNextItemSpringProps: d = Me,
1478
1478
  draggingSlideTreshold: W = 50,
1479
- thumbsSlideAxis: L = "x"
1479
+ thumbsSlideAxis: A = "x"
1480
1480
  }) {
1481
- const C = O("next"), u = O("initial"), U = O(null), [x, ie] = Tr(l ?? 0), { emitEvent: F, useListenToCustomEvent: j } = mr(), { handleScroll: G, thumbsFragment: Ne } = pr({
1482
- thumbsSlideAxis: L,
1483
- items: g,
1481
+ const C = O("next"), u = O("initial"), U = O(null), [y, ae] = Tr(l ?? 0), { emitEvent: F, useListenToCustomEvent: j } = mr(), { handleScroll: re, thumbsFragment: Ne } = pr({
1482
+ thumbsSlideAxis: A,
1483
+ items: p,
1484
1484
  renderThumbFnProps: {
1485
1485
  getIsNextItem: N,
1486
- getIsPrevItem: y,
1486
+ getIsPrevItem: x,
1487
1487
  useListenToCustomEvent: j,
1488
1488
  activeItem: {
1489
- index: x,
1490
- id: g[x].id
1489
+ index: y,
1490
+ id: p[y].id
1491
1491
  }
1492
1492
  }
1493
1493
  });
1494
- function ee() {
1494
+ function te() {
1495
1495
  return C.current === "prev" ? {
1496
1496
  initial: {
1497
1497
  ...f.initial
@@ -1533,85 +1533,85 @@ function Sr({
1533
1533
  }
1534
1534
  };
1535
1535
  }
1536
- ve(() => {
1537
- typeof l == "number" && l !== x && ie(l);
1536
+ he(() => {
1537
+ typeof l == "number" && l !== y && ae(l);
1538
1538
  }, [l]);
1539
- function q({ to: c, slideType: w, slideMode: k }) {
1540
- C.current = w, u.current = k, F({
1539
+ function B({ to: c, slideType: T, slideMode: I }) {
1540
+ C.current = T, u.current = I, F({
1541
1541
  eventName: "onSlideStartChange",
1542
1542
  slideActionType: C.current,
1543
1543
  slideMode: u.current,
1544
1544
  nextItem: {
1545
1545
  index: c,
1546
- id: g[c].id,
1546
+ id: p[c].id,
1547
1547
  startReached: c === 0,
1548
- endReached: c === g.length - 1
1548
+ endReached: c === p.length - 1
1549
1549
  }
1550
- }), ie(c), G(x);
1550
+ }), ae(c), re(y);
1551
1551
  }
1552
- function re(c) {
1552
+ function ne(c) {
1553
1553
  if (!i)
1554
1554
  return;
1555
- const w = x === 0;
1556
- !T && w || q(T && w ? {
1557
- to: g.length - 1,
1555
+ const T = y === 0;
1556
+ !R && T || B(R && T ? {
1557
+ to: p.length - 1,
1558
1558
  slideType: "prev",
1559
1559
  slideMode: c
1560
1560
  } : {
1561
- to: x - 1,
1561
+ to: y - 1,
1562
1562
  slideType: "prev",
1563
1563
  slideMode: c
1564
1564
  });
1565
1565
  }
1566
- function ae(c) {
1566
+ function oe(c) {
1567
1567
  if (!i)
1568
1568
  return;
1569
- const w = x === g.length - 1;
1570
- !T && w || q(T && w ? {
1569
+ const T = y === p.length - 1;
1570
+ !R && T || B(R && T ? {
1571
1571
  to: 0,
1572
1572
  slideType: "next",
1573
1573
  slideMode: c
1574
1574
  } : {
1575
- to: x + 1,
1575
+ to: y + 1,
1576
1576
  slideType: "next",
1577
1577
  slideMode: c
1578
1578
  });
1579
1579
  }
1580
- const z = wr(x, {
1580
+ const z = wr(y, {
1581
1581
  config: $,
1582
1582
  key: null,
1583
1583
  trail: v,
1584
1584
  exitBeforeEnter: Y,
1585
- ...ee(),
1586
- onRest(c, w, k) {
1587
- c.finished && k === x && F({
1585
+ ...te(),
1586
+ onRest(c, T, I) {
1587
+ c.finished && I === y && F({
1588
1588
  eventName: "onSlideChange",
1589
1589
  slideActionType: C.current,
1590
1590
  slideMode: u.current,
1591
1591
  currentItem: {
1592
- index: x,
1593
- id: g[x].id,
1594
- startReached: x === 0,
1595
- endReached: x === g.length - 1
1592
+ index: y,
1593
+ id: p[y].id,
1594
+ startReached: y === 0,
1595
+ endReached: y === p.length - 1
1596
1596
  }
1597
1597
  });
1598
1598
  }
1599
1599
  }), Te = hr(
1600
- ({ last: c, movement: [w] }) => {
1600
+ ({ last: c, movement: [T] }) => {
1601
1601
  if (c) {
1602
- const k = w > W, te = w < -W, H = x === 0, ze = x === g.length - 1;
1603
- if (te) {
1604
- if (!T && ze)
1602
+ const I = T > W, X = T < -W, H = y === 0, ze = y === p.length - 1;
1603
+ if (X) {
1604
+ if (!R && ze)
1605
1605
  return;
1606
1606
  F({
1607
1607
  eventName: "onLeftSwipe"
1608
- }), ae("swipe");
1609
- } else if (k) {
1610
- if (!T && H)
1608
+ }), oe("swipe");
1609
+ } else if (I) {
1610
+ if (!R && H)
1611
1611
  return;
1612
1612
  F({
1613
1613
  eventName: "onRightSwipe"
1614
- }), re("swipe");
1614
+ }), ne("swipe");
1615
1615
  }
1616
1616
  }
1617
1617
  },
@@ -1619,29 +1619,29 @@ function Sr({
1619
1619
  enabled: !m
1620
1620
  }
1621
1621
  );
1622
- function he(c, w) {
1623
- let k = 0;
1624
- if (typeof c == "string" ? k = g.findIndex((te) => te.id === c) : k = c, k < 0 || k >= g.length) {
1625
- if (w)
1626
- throw new Error(w);
1627
- console.error(`The item doesn't exist; check that the id provided - ${c} - is correct.`), k = -1;
1628
- }
1629
- return k;
1622
+ function Q(c, T) {
1623
+ let I = 0;
1624
+ if (typeof c == "string" ? I = p.findIndex((X) => X.id === c) : I = c, I < 0 || I >= p.length) {
1625
+ if (T)
1626
+ throw new Error(T);
1627
+ console.error(`The item doesn't exist; check that the id provided - ${c} - is correct.`), I = -1;
1628
+ }
1629
+ return I;
1630
1630
  }
1631
1631
  function N(c) {
1632
- const w = he(c, "The item doesn't exist; check the provided id."), k = x;
1633
- return T && k === g.length - 1 ? w === 0 : w === k + 1;
1632
+ const T = Q(c, "The item doesn't exist; check the provided id."), I = y;
1633
+ return R && I === p.length - 1 ? T === 0 : T === I + 1;
1634
1634
  }
1635
- function y(c) {
1636
- const w = he(c, "The item doesn't exist; check the provided id."), k = x;
1637
- return T && k === 0 ? w === g.length - 1 : w === k - 1;
1635
+ function x(c) {
1636
+ const T = Q(c, "The item doesn't exist; check the provided id."), I = y;
1637
+ return R && I === 0 ? T === p.length - 1 : T === I - 1;
1638
1638
  }
1639
- const b = z((c, w, k, te) => {
1640
- const H = g[w].renderItem;
1641
- return /* @__PURE__ */ A.jsx(
1639
+ const b = z((c, T, I, X) => {
1640
+ const H = p[T].renderItem;
1641
+ return /* @__PURE__ */ L.jsx(
1642
1642
  _r.div,
1643
1643
  {
1644
- id: `use-transition-carousel-item-${te}`,
1644
+ id: `use-transition-carousel-item-${X}`,
1645
1645
  className: "use-transition-carousel-item",
1646
1646
  style: {
1647
1647
  ...c,
@@ -1652,24 +1652,38 @@ function Sr({
1652
1652
  children: typeof H == "function" ? H({
1653
1653
  useListenToCustomEvent: j,
1654
1654
  getIsNextItem: N,
1655
- getIsPrevItem: y,
1655
+ getIsPrevItem: x,
1656
1656
  activeItem: {
1657
- index: x,
1658
- id: g[x].id
1657
+ index: y,
1658
+ id: p[y].id
1659
1659
  }
1660
1660
  }) : H
1661
1661
  }
1662
1662
  );
1663
1663
  });
1664
- function R() {
1664
+ function w() {
1665
1665
  return m ? "unset" : "pan-y";
1666
1666
  }
1667
1667
  const D = {
1668
1668
  useListenToCustomEvent: j,
1669
- slideToPrevItem: () => re("click"),
1670
- slideToNextItem: () => ae("click"),
1671
- activeItem: x
1672
- }, me = /* @__PURE__ */ A.jsx(or.Provider, { value: D, children: Ne }), pe = /* @__PURE__ */ A.jsx(or.Provider, { value: D, children: /* @__PURE__ */ A.jsx(
1669
+ slideToPrevItem: () => ne("click"),
1670
+ slideToNextItem: () => oe("click"),
1671
+ activeItem: y,
1672
+ slideToItem: (c) => {
1673
+ const T = Q(
1674
+ c,
1675
+ "The item you want to slide to doesn't exist; check the provided id."
1676
+ );
1677
+ if (c === y)
1678
+ return;
1679
+ const I = Q(p[y].id), X = Q(p[T].id);
1680
+ B({
1681
+ to: X,
1682
+ slideType: X > I ? "next" : "prev",
1683
+ slideMode: "click"
1684
+ });
1685
+ }
1686
+ }, me = /* @__PURE__ */ L.jsx(or.Provider, { value: D, children: Ne }), pe = /* @__PURE__ */ L.jsx(or.Provider, { value: D, children: /* @__PURE__ */ L.jsx(
1673
1687
  "div",
1674
1688
  {
1675
1689
  className: "use-transition-carousel-wrapper",
@@ -1681,7 +1695,7 @@ function Sr({
1681
1695
  width: "100%",
1682
1696
  height: "100%",
1683
1697
  overflow: "hidden",
1684
- touchAction: R()
1698
+ touchAction: w()
1685
1699
  },
1686
1700
  children: b
1687
1701
  }