@car-cutter/react-webplayer 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,31 @@
1
- import { jsx as t, jsxs as A, Fragment as ie } from "react/jsx-runtime";
2
- import { useState as Z, useEffect as O, createContext as Ce, useContext as Ee, useMemo as re, useCallback as T, useRef as j, Fragment as Mt } from "react";
3
- const Pe = "cc-webplayer", Ue = "cc-webplayer-custom-media", Ge = "cc-webplayer-icon", Be = "composition-loading", qe = "composition-loaded", Ke = "composition-load-error", Je = "item-change", Qe = "extend-mode-on", et = "extend-mode-off", tt = "hotspots-on", rt = "hotspots-off", nt = "gallery-open", ot = "gallery-close", Nt = !1, Tt = !1, zt = !1, St = "quality", _t = 0, Vt = 1 / 0, Pt = 1, Ht = !1, st = "cc-webplayer:", Dt = !1;
4
- function $r(e, r) {
1
+ import { jsx as t, jsxs as R, Fragment as ie } from "react/jsx-runtime";
2
+ import { useState as Y, useEffect as W, createContext as xe, useContext as Ce, useMemo as re, useCallback as z, useRef as j, Fragment as It } from "react";
3
+ const Pe = "cc-webplayer", $e = "cc-webplayer-custom-media", Ue = "cc-webplayer-icon", Ge = "composition-loading", Be = "composition-loaded", qe = "composition-load-error", Ke = "item-change", Je = "extend-mode-on", Qe = "extend-mode-off", et = "hotspots-on", tt = "hotspots-off", rt = "gallery-open", nt = "gallery-close", Mt = !1, Nt = !1, Tt = !1, zt = "quality", St = 0, _t = 1 / 0, Vt = 1, Ht = !1, ot = "cc-webplayer:", Pt = !1;
4
+ function jr(e, r) {
5
5
  return `https://cdn.car-cutter.com/gallery/${e}/${r}/composition_v3.json`;
6
6
  }
7
- function Rt(e, r) {
7
+ function Dt(e, r) {
8
8
  const n = e.split("/"), o = n.pop();
9
9
  return [n.join("/"), r, o].join("/");
10
10
  }
11
- function Ur() {
12
- return !!customElements.get(Pe) && !!customElements.get(Ue) && !!customElements.get(Ge);
11
+ function $r() {
12
+ return !!customElements.get(Pe) && !!customElements.get($e) && !!customElements.get(Ue);
13
13
  }
14
- async function At(e) {
14
+ async function Rt(e) {
15
15
  const r = await fetch(e);
16
16
  if (!r.ok)
17
17
  throw new Error(`Failed to fetch composition: ${r.statusText}`);
18
18
  return await r.json();
19
19
  }
20
- const Se = /* @__PURE__ */ new Map(), Wt = (e) => {
21
- const [r, n] = Z({
20
+ const _e = /* @__PURE__ */ new Map(), At = (e) => {
21
+ const [r, n] = Y({
22
22
  status: "pending",
23
23
  isSuccess: !1
24
24
  });
25
- return O(() => {
26
- const o = (l) => n({ status: "success", data: l, isSuccess: !0 }), i = Se.get(e);
27
- if (i && !(i instanceof Promise)) {
28
- o(i);
25
+ return W(() => {
26
+ const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), a = _e.get(e);
27
+ if (a && !(a instanceof Promise)) {
28
+ o(a);
29
29
  return;
30
30
  }
31
31
  n({
@@ -33,66 +33,66 @@ const Se = /* @__PURE__ */ new Map(), Wt = (e) => {
33
33
  isSuccess: !1
34
34
  }), async function() {
35
35
  try {
36
- let l;
37
- if (i)
38
- l = await i;
36
+ let u;
37
+ if (a)
38
+ u = await a;
39
39
  else {
40
- const p = At(e);
41
- Se.set(e, p), l = await p, Se.set(e, l);
40
+ const h = Rt(e);
41
+ _e.set(e, h), u = await h, _e.set(e, u);
42
42
  }
43
- o(l);
44
- } catch (l) {
43
+ o(u);
44
+ } catch (u) {
45
45
  n({
46
46
  status: "error",
47
47
  isSuccess: !1,
48
- error: l
48
+ error: u
49
49
  });
50
50
  }
51
51
  }();
52
52
  }, [e]), r;
53
- }, at = Ce(null), ne = () => {
54
- const e = Ee(at);
53
+ }, st = xe(null), ne = () => {
54
+ const e = Ce(st);
55
55
  if (!e)
56
56
  throw new Error(
57
57
  "useGlobalContext must be used within a GlobalContextProvider"
58
58
  );
59
59
  return e;
60
- }, Ot = ({ children: e, ...r }) => /* @__PURE__ */ t(at.Provider, { value: r, children: e }), it = Ce(null), se = () => {
61
- const e = Ee(it);
60
+ }, Wt = ({ children: e, ...r }) => /* @__PURE__ */ t(st.Provider, { value: r, children: e }), at = xe(null), se = () => {
61
+ const e = Ce(at);
62
62
  if (!e)
63
63
  throw new Error(
64
64
  "useCompositionContext must be used within a CompositionContextProvider"
65
65
  );
66
66
  return e;
67
- }, Xt = ({ composition: e, children: r }) => {
67
+ }, Ot = ({ composition: e, children: r }) => {
68
68
  const {
69
69
  aspectRatio: n,
70
70
  categories: o,
71
- imageHdWidth: i,
72
- imageSubWidths: l
73
- } = e, { minMediaWidth: p, maxMediaWidth: m } = ne(), L = re(
71
+ imageHdWidth: a,
72
+ imageSubWidths: u
73
+ } = e, { minMediaWidth: h, maxMediaWidth: p } = ne(), L = re(
74
74
  () => o.flatMap(({ items: C }) => C),
75
75
  [o]
76
76
  ), I = {
77
77
  aspectRatio: n.replace(":", " / ")
78
78
  }, f = re(() => {
79
- const C = l.concat(i), V = C.sort((a, d) => a - d), z = V.filter(
80
- (a) => a >= p && a <= m
79
+ const C = u.concat(a), H = C.sort((s, m) => s - m), S = H.filter(
80
+ (s) => s >= h && s <= p
81
81
  );
82
- if (z.length === 0) {
83
- const a = (p + m) / 2, d = C.reduce(
84
- (g, x) => Math.abs(x - a) < Math.abs(g - a) ? x : g,
85
- i
82
+ if (S.length === 0) {
83
+ const s = (h + p) / 2, m = C.reduce(
84
+ (w, y) => Math.abs(y - s) < Math.abs(w - s) ? y : w,
85
+ a
86
86
  );
87
87
  return console.warn(
88
- `None of available media widths (${V.join("|")}) match the given constraints (${p > 0 ? `${p} ≤ ` : ""}width${m < 1 / 0 ? ` ≤ ${m}` : ""}).`,
89
- `Using the closest width instead (${d}).`
90
- ), [d];
88
+ `None of available media widths (${H.join("|")}) match the given constraints (${h > 0 ? `${h} ≤ ` : ""}width${p < 1 / 0 ? ` ≤ ${p}` : ""}).`,
89
+ `Using the closest width instead (${m}).`
90
+ ), [m];
91
91
  }
92
- return z;
93
- }, [l, i, p, m]);
92
+ return S;
93
+ }, [u, a, h, p]);
94
94
  return /* @__PURE__ */ t(
95
- it.Provider,
95
+ at.Provider,
96
96
  {
97
97
  value: {
98
98
  ...e,
@@ -103,385 +103,385 @@ const Se = /* @__PURE__ */ new Map(), Wt = (e) => {
103
103
  children: r
104
104
  }
105
105
  );
106
- }, ct = 500, Ve = 0.75, xe = 1 + Ve * 2;
106
+ }, it = 500, He = 0.75, ye = 1 + He * 2;
107
107
  function ce(e, r, n) {
108
108
  return Math.min(Math.max(e, r), n);
109
109
  }
110
- const ye = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, lt = Ce(null), He = () => Ee(lt), ve = () => {
111
- const e = He();
110
+ const be = (e, r, n) => e + (r - e) * n, ct = xe(null), De = () => Ce(ct), ge = () => {
111
+ const e = De();
112
112
  if (!e)
113
113
  throw new Error(
114
114
  "useCustomizationContext must be used within a CustomizationContextProvider"
115
115
  );
116
116
  return e;
117
- }, Ze = "*:size-full", Ye = "*:object-cover *:size-full", Zt = ({ children: e }) => {
118
- const { compositionUrl: r } = ne(), n = T(
117
+ }, Xe = "*:size-full", Ze = "*:object-cover *:size-full", Xt = ({ children: e }) => {
118
+ const { compositionUrl: r } = ne(), n = z(
119
119
  () => document.querySelector(
120
120
  `${Pe}[composition-url="${r}"]`
121
121
  ),
122
122
  [r]
123
- ), o = T((a) => {
124
- const d = a.querySelectorAll(Ge), g = /* @__PURE__ */ new Map();
125
- for (const x of d) {
126
- const w = x.getAttribute("name");
127
- if (!w) {
123
+ ), o = z((s) => {
124
+ const m = s.querySelectorAll(Ue), w = /* @__PURE__ */ new Map();
125
+ for (const y of m) {
126
+ const v = y.getAttribute("name");
127
+ if (!v) {
128
128
  console.warn("Icon element is missing a name attribute");
129
129
  continue;
130
130
  }
131
- const u = x.innerHTML, c = u ? /* @__PURE__ */ t(
131
+ const l = y.innerHTML, i = l ? /* @__PURE__ */ t(
132
132
  "div",
133
133
  {
134
- className: Ze,
135
- dangerouslySetInnerHTML: { __html: u }
134
+ className: Xe,
135
+ dangerouslySetInnerHTML: { __html: l }
136
136
  }
137
137
  ) : void 0;
138
- if (!c) {
139
- console.warn(`Icon "${w}" customization is empty.`);
138
+ if (!i) {
139
+ console.warn(`Icon "${v}" customization is empty.`);
140
140
  continue;
141
141
  }
142
- g.set(w, { Icon: c });
142
+ w.set(v, { Icon: i });
143
143
  }
144
- return g;
145
- }, []), [i, l] = Z(
144
+ return w;
145
+ }, []), [a, u] = Y(
146
146
  () => {
147
- const a = n();
148
- return a ? o(a) : /* @__PURE__ */ new Map();
147
+ const s = n();
148
+ return s ? o(s) : /* @__PURE__ */ new Map();
149
149
  }
150
150
  );
151
- O(() => {
152
- const a = n();
153
- if (!a)
151
+ W(() => {
152
+ const s = n();
153
+ if (!s)
154
154
  return;
155
- const d = new MutationObserver(() => {
156
- l(o(a));
155
+ const m = new MutationObserver(() => {
156
+ u(o(s));
157
157
  });
158
- return d.observe(a, {
158
+ return m.observe(s, {
159
159
  childList: !0,
160
160
  subtree: !0
161
- }), () => d.disconnect();
161
+ }), () => m.disconnect();
162
162
  }, [o, n]);
163
- const p = T(
164
- (a) => i.get(a),
165
- [i]
166
- ), m = T(
167
- (a, d) => {
168
- l((g) => {
169
- const { Icon: x, ...w } = d;
163
+ const h = z(
164
+ (s) => a.get(s),
165
+ [a]
166
+ ), p = z(
167
+ (s, m) => {
168
+ u((w) => {
169
+ const { Icon: y, ...v } = m;
170
170
  return new Map(
171
- g.set(a, {
172
- ...w,
173
- Icon: /* @__PURE__ */ t("div", { className: Ze, children: x })
171
+ w.set(s, {
172
+ ...v,
173
+ Icon: /* @__PURE__ */ t("div", { className: Xe, children: y })
174
174
  })
175
175
  );
176
176
  });
177
177
  },
178
178
  []
179
- ), L = T((a) => {
180
- l((d) => (d.delete(a), new Map(d)));
181
- }, []), I = T((a) => {
182
- const d = a.querySelectorAll(
183
- Ue
184
- ), g = new Array();
185
- for (const x of d) {
186
- const w = x.innerHTML;
187
- if (!w) {
179
+ ), L = z((s) => {
180
+ u((m) => (m.delete(s), new Map(m)));
181
+ }, []), I = z((s) => {
182
+ const m = s.querySelectorAll(
183
+ $e
184
+ ), w = new Array();
185
+ for (const y of m) {
186
+ const v = y.innerHTML;
187
+ if (!v) {
188
188
  console.warn("Custom media element is empty");
189
189
  continue;
190
190
  }
191
- const u = Number(x.getAttribute("index"));
192
- if (Number.isNaN(u)) {
191
+ const l = Number(y.getAttribute("index"));
192
+ if (Number.isNaN(l)) {
193
193
  console.warn("Custom media element is missing the 'index' attribute");
194
194
  continue;
195
195
  }
196
- const c = x.getAttribute("thumbnail-src") ?? void 0, h = JSON.stringify({ index: u, thumbnailSrc: c });
197
- g.push({
198
- id: h,
196
+ const i = y.getAttribute("thumbnail-src") ?? void 0, g = JSON.stringify({ index: l, thumbnailSrc: i });
197
+ w.push({
198
+ id: g,
199
199
  Media: /* @__PURE__ */ t(
200
200
  "div",
201
201
  {
202
- className: Ye,
203
- dangerouslySetInnerHTML: { __html: w }
202
+ className: Ze,
203
+ dangerouslySetInnerHTML: { __html: v }
204
204
  }
205
205
  ),
206
- index: u,
207
- thumbnailSrc: c
206
+ index: l,
207
+ thumbnailSrc: i
208
208
  });
209
209
  }
210
- return g;
211
- }, []), [f, C] = Z(() => {
212
- const a = n();
213
- return a ? I(a) : [];
210
+ return w;
211
+ }, []), [f, C] = Y(() => {
212
+ const s = n();
213
+ return s ? I(s) : [];
214
214
  });
215
- O(() => {
216
- const a = n();
217
- if (!a)
215
+ W(() => {
216
+ const s = n();
217
+ if (!s)
218
218
  return;
219
- const d = new MutationObserver(() => {
220
- C(I(a));
219
+ const m = new MutationObserver(() => {
220
+ C(I(s));
221
221
  });
222
- return d.observe(a, {
222
+ return m.observe(s, {
223
223
  childList: !0,
224
224
  subtree: !0
225
- }), () => d.disconnect();
225
+ }), () => m.disconnect();
226
226
  }, [I, n]);
227
- const V = T((a) => {
228
- const { Media: d, ...g } = a, x = /* @__PURE__ */ t("div", { className: Ye, children: d }), w = JSON.stringify(g);
229
- return C((u) => [
230
- ...u,
227
+ const H = z((s) => {
228
+ const { Media: m, ...w } = s, y = /* @__PURE__ */ t("div", { className: Ze, children: m }), v = JSON.stringify(w);
229
+ return C((l) => [
230
+ ...l,
231
231
  {
232
- id: w,
233
- Media: x,
234
- ...g
232
+ id: v,
233
+ Media: y,
234
+ ...w
235
235
  }
236
- ]), w;
237
- }, []), z = T((a) => {
236
+ ]), v;
237
+ }, []), S = z((s) => {
238
238
  C(
239
- (d) => d.filter((g) => g.id !== a)
239
+ (m) => m.filter((w) => w.id !== s)
240
240
  );
241
241
  }, []);
242
242
  return /* @__PURE__ */ t(
243
- lt.Provider,
243
+ ct.Provider,
244
244
  {
245
245
  value: {
246
- getIconConfig: p,
247
- registerIconConfig: m,
246
+ getIconConfig: h,
247
+ registerIconConfig: p,
248
248
  unregisterIconConfig: L,
249
249
  customMediaList: f,
250
- registerCustomMedia: V,
251
- unregisterCustomMedia: z
250
+ registerCustomMedia: H,
251
+ unregisterCustomMedia: S
252
252
  },
253
253
  children: e
254
254
  }
255
255
  );
256
- }, ut = Ce(null), Q = () => {
257
- const e = Ee(ut);
256
+ }, lt = xe(null), J = () => {
257
+ const e = Ce(lt);
258
258
  if (!e)
259
259
  throw new Error(
260
260
  "useControlsContext must be used within a ControlsContextProvider"
261
261
  );
262
262
  return e;
263
- }, Yt = ({
263
+ }, Zt = ({
264
264
  children: e
265
265
  }) => {
266
266
  const {
267
267
  infiniteCarrousel: r,
268
268
  preventFullScreen: n,
269
269
  emitEvent: o,
270
- isFullScreen: i,
271
- requestFullscreen: l,
272
- exitFullscreen: p
273
- } = ne(), { customMediaList: m } = ve(), { categories: L, items: I } = se(), f = re(() => {
274
- const W = new Array(
270
+ isFullScreen: a,
271
+ requestFullscreen: u,
272
+ exitFullscreen: h
273
+ } = ne(), { customMediaList: p } = ge(), { categories: L, items: I } = se(), f = re(() => {
274
+ const A = new Array(
275
275
  ...I
276
- ), q = m.slice().sort((G, K) => G.index < 0 && K.index < 0 ? K.index - G.index : G.index < 0 ? 1 : K.index < 0 ? -1 : G.index - K.index);
277
- for (const G of q) {
278
- let K = G.index;
279
- K < 0 && (K = W.length + K + 1), W.splice(K, 0, {
276
+ ), B = p.slice().sort((U, q) => U.index < 0 && q.index < 0 ? q.index - U.index : U.index < 0 ? 1 : q.index < 0 ? -1 : U.index - q.index);
277
+ for (const U of B) {
278
+ let q = U.index;
279
+ q < 0 && (q = A.length + q + 1), A.splice(q, 0, {
280
280
  type: "custom",
281
- ...G
281
+ ...U
282
282
  });
283
283
  }
284
- return W;
285
- }, [I, m]), [C, V] = Z(f.map(() => null));
286
- O(() => {
287
- V(f.map(() => null));
284
+ return A;
285
+ }, [I, p]), [C, H] = Y(f.map(() => null));
286
+ W(() => {
287
+ H(f.map(() => null));
288
288
  }, [f]);
289
- const z = T(
290
- (W, q) => {
291
- V(
292
- (G) => G.map((K, ze) => ze === W ? q : K)
289
+ const S = z(
290
+ (A, B) => {
291
+ H(
292
+ (U) => U.map((q, Se) => Se === A ? B : q)
293
293
  );
294
294
  },
295
295
  []
296
- ), [a, d] = Z(0), [g, x] = Z(null), w = g ?? a, u = f[w], c = C[w], [h, b] = Z(
296
+ ), [s, m] = Y(0), [w, y] = Y(null), v = w ?? s, l = f[v], i = C[v], [g, b] = Y(
297
297
  null
298
- ), k = !!h, X = T(() => b(null), []), P = T(() => {
299
- if (k || g !== null)
298
+ ), k = !!g, O = z(() => b(null), []), P = z(() => {
299
+ if (k || w !== null)
300
300
  return;
301
- const W = a - 1;
302
- W >= 0 ? x(W) : r && (b("first_to_last"), x(f.length - 1));
301
+ const A = s - 1;
302
+ A >= 0 ? y(A) : r && (b("first_to_last"), y(f.length - 1));
303
303
  }, [
304
304
  k,
305
- g,
306
- a,
305
+ w,
306
+ s,
307
307
  r,
308
308
  f.length
309
- ]), y = T(() => {
310
- if (k || g !== null)
309
+ ]), x = z(() => {
310
+ if (k || w !== null)
311
311
  return;
312
- const W = a + 1;
313
- W < f.length ? x(W) : r && (b("last_to_first"), x(0));
312
+ const A = s + 1;
313
+ A < f.length ? y(A) : r && (b("last_to_first"), y(0));
314
314
  }, [
315
315
  k,
316
- g,
317
- a,
316
+ w,
317
+ s,
318
318
  f.length,
319
319
  r
320
- ]), N = T(
321
- (W) => {
322
- const q = Math.min(a, W), G = Math.max(a, W);
323
- C.slice(q, G + 1).filter((ze) => ze === null).length > 2 && b("instant"), x(W);
320
+ ]), N = z(
321
+ (A) => {
322
+ const B = Math.min(s, A), U = Math.max(s, A);
323
+ C.slice(B, U + 1).filter((Se) => Se === null).length > 2 && b("instant"), y(A);
324
324
  },
325
- [a, C]
325
+ [s, C]
326
326
  );
327
- O(() => {
328
- o(Je, {
329
- index: w,
330
- item: u
327
+ W(() => {
328
+ o(Ke, {
329
+ index: v,
330
+ item: l
331
331
  });
332
- }, [u, o, w]);
333
- const S = re(() => {
334
- let W;
335
- if (u.type === "custom") {
336
- const q = f.slice(0, w).reverse().find((G) => G.type !== "custom") ?? f.slice(w + 1).find((G) => G.type !== "custom");
337
- if (!q)
332
+ }, [l, o, v]);
333
+ const _ = re(() => {
334
+ let A;
335
+ if (l.type === "custom") {
336
+ const B = f.slice(0, v).reverse().find((U) => U.type !== "custom") ?? f.slice(v + 1).find((U) => U.type !== "custom");
337
+ if (!B)
338
338
  throw new Error("No non-custom item found");
339
- W = q;
339
+ A = B;
340
340
  } else
341
- W = u;
342
- for (const q of L)
343
- if (q.items.includes(W))
344
- return q.id;
341
+ A = l;
342
+ for (const B of L)
343
+ if (B.items.includes(A))
344
+ return B.id;
345
345
  throw new Error("Current item not found in any category");
346
- }, [L, u, f, w]), _ = T(
347
- (W) => {
348
- const q = L.find(({ id: K }) => K === W)?.items[0];
349
- if (q === void 0)
346
+ }, [L, l, f, v]), V = z(
347
+ (A) => {
348
+ const B = L.find(({ id: q }) => q === A)?.items[0];
349
+ if (B === void 0)
350
350
  throw new Error("Failed to find target category");
351
- const G = f.findIndex((K) => K === q);
352
- N(G);
351
+ const U = f.findIndex((q) => q === B);
352
+ N(U);
353
353
  },
354
354
  [L, f, N]
355
- ), R = re(() => {
356
- switch (u.type) {
355
+ ), d = re(() => {
356
+ switch (l.type) {
357
357
  case "image":
358
- return !!u.hotspots?.length;
358
+ return !!l.hotspots?.length;
359
359
  case "360":
360
- return c === "running";
360
+ return i === "running";
361
361
  default:
362
362
  return !1;
363
363
  }
364
- }, [u, c]), [v, s] = Z(!0), E = T(() => {
365
- const W = !v;
366
- s(W), o(W ? tt : rt);
367
- }, [o, v]), M = re(() => {
368
- switch (u.type) {
364
+ }, [l, i]), [T, c] = Y(!0), E = z(() => {
365
+ const A = !T;
366
+ c(A), o(A ? et : tt);
367
+ }, [o, T]), M = re(() => {
368
+ switch (l.type) {
369
369
  case "video":
370
- return c !== "running";
370
+ return i !== "running";
371
371
  default:
372
372
  return !0;
373
373
  }
374
- }, [u, c]), [D, Y] = Z(!1), F = T(() => {
375
- const W = !D;
376
- Y(W), o(W ? nt : ot);
377
- }, [o, D]), [$, U] = Z(null), J = T(() => U(null), []), ee = !!$, le = re(() => {
378
- switch (u.type) {
374
+ }, [l, i]), [X, Z] = Y(!1), $ = z(() => {
375
+ const A = !X;
376
+ Z(A), o(A ? rt : nt);
377
+ }, [o, X]), [F, Q] = Y(null), K = z(() => Q(null), []), te = !!F, ae = re(() => {
378
+ switch (l.type) {
379
379
  case "image":
380
380
  return !0;
381
381
  case "360":
382
- return c === "running";
382
+ return i === "running";
383
383
  default:
384
384
  return !1;
385
385
  }
386
- }, [u.type, c]), [oe, ae] = Z(1), Ae = oe !== 1, be = oe < xe, ke = oe > 1, ue = T((W) => {
387
- ae((q) => ce(q + W, 1, xe));
388
- }, []), ge = T(() => ae(1), []), Et = T(() => ue(Ve), [ue]), kt = T(() => ue(-Ve), [ue]), Le = T(() => {
389
- ge(), J();
390
- }, [ge, J]), [de, Lt] = Z(!1), [Ie, We] = Z(), [Me, Oe] = Z(!1), me = T(
391
- async (W) => {
392
- Le(), Lt(W), o(W ? Qe : et);
386
+ }, [l.type, i]), [oe, we] = Y(1), ve = oe !== 1, Ee = oe < ye, ke = oe > 1, le = z((A) => {
387
+ we((B) => ce(B + A, 1, ye));
388
+ }, []), Le = z(() => we(1), []), Ct = z(() => le(He), [le]), Et = z(() => le(-He), [le]), Ie = z(() => {
389
+ Le(), K();
390
+ }, [Le, K]), [ue, kt] = Y(!1), [Me, We] = Y(), [Ne, Oe] = Y(!1), de = z(
391
+ async (A) => {
392
+ Ie(), kt(A), o(A ? Je : Qe);
393
393
  },
394
- [o, Le]
395
- ), pe = T(() => {
396
- clearTimeout(Ie);
397
- const W = setTimeout(() => {
394
+ [o, Ie]
395
+ ), me = z(() => {
396
+ clearTimeout(Me);
397
+ const A = setTimeout(() => {
398
398
  We(void 0);
399
- }, ct);
400
- We(W);
401
- }, [Ie]), Ne = T(async () => {
402
- if (pe(), !n) {
403
- const W = await l();
404
- if (Oe(!W), W)
399
+ }, it);
400
+ We(A);
401
+ }, [Me]), Te = z(async () => {
402
+ if (me(), !n) {
403
+ const A = await u();
404
+ if (Oe(!A), A)
405
405
  return;
406
406
  }
407
- me(!0);
407
+ de(!0);
408
408
  }, [
409
409
  n,
410
- me,
411
- l,
412
- pe
413
- ]), Te = T(async () => {
414
- pe(), !(!n && (Oe(!1), await p())) && me(!1);
410
+ de,
411
+ u,
412
+ me
413
+ ]), ze = z(async () => {
414
+ me(), !(!n && (Oe(!1), await h())) && de(!1);
415
415
  }, [
416
416
  n,
417
- me,
418
- p,
419
- pe
420
- ]), It = T(() => {
421
- de ? Te() : Ne();
422
- }, [Te, Ne, de]);
423
- return O(() => {
424
- n || Me && de || i !== de && (pe(), me(i));
417
+ de,
418
+ h,
419
+ me
420
+ ]), Lt = z(() => {
421
+ ue ? ze() : Te();
422
+ }, [ze, Te, ue]);
423
+ return W(() => {
424
+ n || Ne && ue || a !== ue && (me(), de(a));
425
425
  }, [
426
426
  n,
427
- me,
428
427
  de,
429
- Me,
430
- i,
431
- pe
428
+ ue,
429
+ Ne,
430
+ a,
431
+ me
432
432
  ]), /* @__PURE__ */ t(
433
- ut.Provider,
433
+ lt.Provider,
434
434
  {
435
435
  value: {
436
436
  items: f,
437
- setItemInteraction: z,
437
+ setItemInteraction: S,
438
438
  slidable: f.length > 1,
439
- carrouselItemIndex: a,
440
- setCarrouselItemIndex: d,
441
- itemIndexCommand: g,
442
- setItemIndexCommand: x,
443
- masterItemIndex: w,
444
- specialCommand: h,
439
+ carrouselItemIndex: s,
440
+ setCarrouselItemIndex: m,
441
+ itemIndexCommand: w,
442
+ setItemIndexCommand: y,
443
+ masterItemIndex: v,
444
+ specialCommand: g,
445
445
  isRunningSpecialCommand: k,
446
- finishSpecialCommand: X,
446
+ finishSpecialCommand: O,
447
447
  prevItem: P,
448
- nextItem: y,
448
+ nextItem: x,
449
449
  scrollToItemIndex: N,
450
- displayedCategoryId: S,
451
- changeCategory: _,
452
- enableHotspotsControl: R,
453
- showHotspots: v,
450
+ displayedCategoryId: _,
451
+ changeCategory: V,
452
+ enableHotspotsControl: d,
453
+ showHotspots: T,
454
454
  toggleHotspots: E,
455
455
  showGalleryControls: M,
456
- showGallery: D,
457
- toggleGallery: F,
458
- shownDetails: $,
459
- isShowingDetails: ee,
460
- setShownDetails: U,
461
- resetShownDetails: J,
462
- showZoomControls: le,
456
+ showGallery: X,
457
+ toggleGallery: $,
458
+ shownDetails: F,
459
+ isShowingDetails: te,
460
+ setShownDetails: Q,
461
+ resetShownDetails: K,
462
+ showZoomControls: ae,
463
463
  zoom: oe,
464
- isZooming: Ae,
465
- setZoom: ae,
466
- resetZoom: ge,
467
- canZoomIn: be,
468
- zoomIn: Et,
464
+ isZooming: ve,
465
+ setZoom: we,
466
+ resetZoom: Le,
467
+ canZoomIn: Ee,
468
+ zoomIn: Ct,
469
469
  canZoomOut: ke,
470
- zoomOut: kt,
471
- resetView: Le,
472
- extendMode: de,
473
- enableExtendMode: Ne,
474
- disableExtendMode: Te,
475
- toggleExtendMode: It,
476
- extendTransition: !!Ie,
477
- fakeFullScreen: Me
470
+ zoomOut: Et,
471
+ resetView: Ie,
472
+ extendMode: ue,
473
+ enableExtendMode: Te,
474
+ disableExtendMode: ze,
475
+ toggleExtendMode: Lt,
476
+ extendTransition: !!Me,
477
+ fakeFullScreen: Ne
478
478
  },
479
479
  children: e
480
480
  }
481
481
  );
482
- }, dt = ["left", "center", "right", "fullW"], mt = ["top", "middle", "bottom", "fullH"], Ft = [
482
+ }, ut = ["left", "center", "right", "fullW"], dt = ["top", "middle", "bottom", "fullH"], Yt = [
483
+ ...ut,
483
484
  ...dt,
484
- ...mt,
485
485
  "top-left",
486
486
  "top-center",
487
487
  "top-right",
@@ -499,24 +499,24 @@ const ye = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, lt = Ce
499
499
  "fullH-right",
500
500
  "fullW-fullW"
501
501
  ];
502
+ function Ft(e) {
503
+ return ut.includes(e);
504
+ }
502
505
  function jt(e) {
503
506
  return dt.includes(e);
504
507
  }
505
508
  function $t(e) {
506
- return mt.includes(e);
509
+ return Yt.includes(e);
507
510
  }
508
511
  function Ut(e) {
509
- return Ft.includes(e);
510
- }
511
- function Gt(e) {
512
- if (!Ut(e))
512
+ if (!$t(e))
513
513
  throw new Error(`Invalid position: ${e}`);
514
- return $t(e) ? [e, void 0] : jt(e) ? [void 0, e] : e.split("-");
514
+ return jt(e) ? [e, void 0] : Ft(e) ? [void 0, e] : e.split("-");
515
515
  }
516
- function H(...e) {
516
+ function D(...e) {
517
517
  return e.filter((r) => !!r).map((r) => r.trim()).join(" ");
518
518
  }
519
- function Bt(e) {
519
+ function Gt(e) {
520
520
  switch (e) {
521
521
  case "left":
522
522
  return "left-1 small:left-2";
@@ -528,7 +528,7 @@ function Bt(e) {
528
528
  return "inset-x-1 small:inset-x-2";
529
529
  }
530
530
  }
531
- function pt(e) {
531
+ function mt(e) {
532
532
  switch (e) {
533
533
  case "top":
534
534
  return "top-1 small:top-2";
@@ -540,25 +540,25 @@ function pt(e) {
540
540
  return "inset-y-1 small:inset-y-2";
541
541
  }
542
542
  }
543
- function qt({
543
+ function Bt({
544
544
  positionX: e,
545
545
  positionY: r
546
546
  }) {
547
547
  const n = new Array();
548
- return e && n.push(Bt(e)), r && n.push(pt(r)), n.join(" ");
548
+ return e && n.push(Gt(e)), r && n.push(mt(r)), n.join(" ");
549
549
  }
550
- function he(e) {
551
- const [r, n] = Gt(e);
552
- return qt({ positionX: n, positionY: r });
550
+ function pe(e) {
551
+ const [r, n] = Ut(e);
552
+ return Bt({ positionX: n, positionY: r });
553
553
  }
554
- const B = ({
554
+ const G = ({
555
555
  customizationKey: e,
556
556
  className: r,
557
557
  children: n
558
558
  }) => {
559
- const { getIconConfig: o } = ve(), l = o(e)?.Icon;
560
- return l ? r ? /* @__PURE__ */ t("div", { className: r, children: l }) : l : n;
561
- }, Kt = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t(
559
+ const { getIconConfig: o } = ge(), u = o(e)?.Icon;
560
+ return u ? r ? /* @__PURE__ */ t("div", { className: r, children: u }) : u : n;
561
+ }, qt = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t(
562
562
  "svg",
563
563
  {
564
564
  className: e,
@@ -575,7 +575,7 @@ const B = ({
575
575
  }
576
576
  )
577
577
  }
578
- ) }), Jt = {
578
+ ) }), Kt = {
579
579
  fill: {
580
580
  primary: "bg-primary text-primary-foreground hover:opacity-80",
581
581
  neutral: "bg-background text-neutral-foreground hover:opacity-80"
@@ -584,35 +584,35 @@ const B = ({
584
584
  primary: "bg-transparent text-foreground hover:bg-primary/25",
585
585
  neutral: "bg-transparent text-background hover:bg-foreground/25"
586
586
  }
587
- }, Qt = {
587
+ }, Jt = {
588
588
  button: "h-8 px-2",
589
589
  icon: "size-8 p-2"
590
- }, te = ({
590
+ }, ee = ({
591
591
  variant: e = "fill",
592
592
  shape: r = "button",
593
593
  color: n = "primary",
594
594
  className: o,
595
- children: i,
596
- ...l
595
+ children: a,
596
+ ...u
597
597
  }) => {
598
- const p = Jt[e][n], m = Qt[r];
598
+ const h = Kt[e][n], p = Jt[r];
599
599
  return /* @__PURE__ */ t(
600
600
  "button",
601
601
  {
602
- className: H(
602
+ className: D(
603
603
  "flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",
604
+ h,
604
605
  p,
605
- m,
606
606
  o
607
607
  ),
608
- ...l,
609
- children: i
608
+ ...u,
609
+ children: a
610
610
  }
611
611
  );
612
- }, ht = (e) => /* @__PURE__ */ t(te, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t(Kt, { className: "size-full" }) }), ft = ({ text: e, className: r }) => /* @__PURE__ */ A(
612
+ }, pt = (e) => /* @__PURE__ */ t(ee, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t(qt, { className: "size-full" }) }), ht = ({ text: e, className: r }) => /* @__PURE__ */ R(
613
613
  "div",
614
614
  {
615
- className: H(
615
+ className: D(
616
616
  "flex size-full flex-col items-center justify-center gap-y-4",
617
617
  r
618
618
  ),
@@ -627,117 +627,117 @@ const B = ({
627
627
  /* @__PURE__ */ t("div", { className: "text-2xl font-bold", children: e })
628
628
  ]
629
629
  }
630
- ), er = {
630
+ ), Qt = {
631
631
  primary: "border-primary",
632
632
  foreground: "border-foreground",
633
633
  background: "border-background"
634
- }, tr = {
634
+ }, er = {
635
635
  sm: "size-4 border",
636
636
  md: "size-8 border-2",
637
637
  lg: "size-12 border-4"
638
- }, gt = ({
638
+ }, ft = ({
639
639
  color: e = "foreground",
640
640
  size: r = "md"
641
641
  }) => {
642
- const n = er[e], o = tr[r];
642
+ const n = Qt[e], o = er[r];
643
643
  return /* @__PURE__ */ t(
644
644
  "div",
645
645
  {
646
- className: H(
646
+ className: D(
647
647
  "inline-block animate-rotation rounded-full border-b-transparent",
648
648
  o,
649
649
  n
650
650
  )
651
651
  }
652
652
  );
653
- }, fe = ({
653
+ }, he = ({
654
654
  src: e,
655
655
  className: r,
656
656
  onLoad: n,
657
657
  imgInPlayerWidthRatio: o = 1,
658
- onlyThumbnail: i,
659
- fadeIn: l,
660
- ...p
658
+ onlyThumbnail: a,
659
+ fadeIn: u,
660
+ ...h
661
661
  }) => {
662
- const { mediaLoadStrategy: m, playerInViewportWidthRatio: L } = ne(), { imageHdWidth: I, usedMediaWidths: f } = se(), [C, V] = re(() => {
663
- const d = f.map((x) => `${x !== I ? Rt(e, x) : e} ${x}w`);
664
- let g;
665
- if (i)
666
- g = [`${f[0]}px`];
662
+ const { mediaLoadStrategy: p, playerInViewportWidthRatio: L } = ne(), { imageHdWidth: I, usedMediaWidths: f } = se(), [C, H] = re(() => {
663
+ const m = f.map((y) => `${y !== I ? Dt(e, y) : e} ${y}w`);
664
+ let w;
665
+ if (a)
666
+ w = [`${f[0]}px`];
667
667
  else {
668
- const x = 1 / (o * L);
669
- switch (m) {
668
+ const y = 1 / (o * L);
669
+ switch (p) {
670
670
  case "quality": {
671
- const w = [...f], u = w.pop();
672
- g = w.map(
673
- (c) => `(max-width: ${x * c}px) ${c}px`
674
- ), g.push(`${u}px`);
671
+ const v = [...f], l = v.pop();
672
+ w = v.map(
673
+ (i) => `(max-width: ${y * i}px) ${i}px`
674
+ ), w.push(`${l}px`);
675
675
  break;
676
676
  }
677
677
  case "balanced": {
678
- g = [];
679
- for (let w = 0; w < f.length - 1; w++) {
680
- const u = f[w], c = f[w + 1], h = Math.round((u + c) / 2);
681
- g.push(
682
- `(max-width: ${x * h}px) ${u}px`
678
+ w = [];
679
+ for (let v = 0; v < f.length - 1; v++) {
680
+ const l = f[v], i = f[v + 1], g = Math.round((l + i) / 2);
681
+ w.push(
682
+ `(max-width: ${y * g}px) ${l}px`
683
683
  );
684
684
  }
685
- g.push(`${f[f.length - 1]}px`);
685
+ w.push(`${f[f.length - 1]}px`);
686
686
  break;
687
687
  }
688
688
  case "speed": {
689
- const w = [...f], u = w.shift();
690
- g = w.reverse().map(
691
- (c) => `(min-width: ${x * c}px) ${c}px`
692
- ), g.push(`${u}px`);
689
+ const v = [...f], l = v.shift();
690
+ w = v.reverse().map(
691
+ (i) => `(min-width: ${y * i}px) ${i}px`
692
+ ), w.push(`${l}px`);
693
693
  break;
694
694
  }
695
695
  }
696
696
  }
697
- return [d.join(", "), g.join(", ")];
697
+ return [m.join(", "), w.join(", ")];
698
698
  }, [
699
699
  I,
700
700
  o,
701
- m,
702
- i,
701
+ p,
702
+ a,
703
703
  L,
704
704
  e,
705
705
  f
706
- ]), [z, a] = Z();
707
- return O(() => {
708
- if (z === !0)
706
+ ]), [S, s] = Y();
707
+ return W(() => {
708
+ if (S === !0)
709
709
  return;
710
- const d = setTimeout(() => {
711
- a((g) => g ?? !1);
710
+ const m = setTimeout(() => {
711
+ s((w) => w ?? !1);
712
712
  }, 30);
713
- return () => clearTimeout(d);
714
- }, [z]), /* @__PURE__ */ t(
713
+ return () => clearTimeout(m);
714
+ }, [S]), /* @__PURE__ */ t(
715
715
  "img",
716
716
  {
717
717
  src: e,
718
718
  srcSet: C,
719
- sizes: V,
720
- className: H(
719
+ sizes: H,
720
+ className: D(
721
721
  r,
722
- l && H(
723
- z !== void 0 && "transition-opacity duration-200",
724
- z === !1 && "opacity-0",
725
- z === !0 && "opacity-100"
722
+ u && D(
723
+ S !== void 0 && "transition-opacity duration-200",
724
+ S === !1 && "opacity-0",
725
+ S === !0 && "opacity-100"
726
726
  )
727
727
  ),
728
- onLoad: (d) => {
729
- a(!0), n?.(d);
728
+ onLoad: (m) => {
729
+ s(!0), n?.(m);
730
730
  },
731
- ...p
731
+ ...h
732
732
  }
733
733
  );
734
- }, wt = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t(
734
+ }, gt = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t(
735
735
  "path",
736
736
  {
737
737
  d: "M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",
738
738
  fill: "currentColor"
739
739
  }
740
- ) }) }), De = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t(
740
+ ) }) }), Re = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t(
741
741
  "svg",
742
742
  {
743
743
  className: e,
@@ -749,7 +749,7 @@ const B = ({
749
749
  strokeLinejoin: "round",
750
750
  children: /* @__PURE__ */ t("polygon", { points: "6 3 20 12 6 21 6 3" })
751
751
  }
752
- ) }), vt = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ A(
752
+ ) }), wt = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ R(
753
753
  "svg",
754
754
  {
755
755
  className: e,
@@ -757,7 +757,7 @@ const B = ({
757
757
  fill: "none",
758
758
  xmlns: "http://www.w3.org/2000/svg",
759
759
  children: [
760
- /* @__PURE__ */ A("g", { clipPath: "url(#clip0_134_843)", children: [
760
+ /* @__PURE__ */ R("g", { clipPath: "url(#clip0_134_843)", children: [
761
761
  /* @__PURE__ */ t(
762
762
  "path",
763
763
  {
@@ -804,7 +804,7 @@ const B = ({
804
804
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_134_843", children: /* @__PURE__ */ t("rect", { width: "56", height: "56", fill: "white" }) }) })
805
805
  ]
806
806
  }
807
- ) }), rr = ({
807
+ ) }), tr = ({
808
808
  src: e,
809
809
  withCdn: r
810
810
  }) => {
@@ -813,7 +813,7 @@ const B = ({
813
813
  return null;
814
814
  const o = "size-full object-cover";
815
815
  return r ? /* @__PURE__ */ t(
816
- fe,
816
+ he,
817
817
  {
818
818
  className: o,
819
819
  src: e,
@@ -821,189 +821,189 @@ const B = ({
821
821
  fadeIn: !n
822
822
  }
823
823
  ) : /* @__PURE__ */ t("img", { className: o, src: e });
824
- }, _e = ({
824
+ }, Ve = ({
825
825
  children: e
826
826
  }) => {
827
- const { extendMode: r } = Q();
827
+ const { extendMode: r } = J();
828
828
  return /* @__PURE__ */ t(
829
829
  "div",
830
830
  {
831
- className: H(
831
+ className: D(
832
832
  "flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",
833
833
  r && "large:h-3/5 large:p-2"
834
834
  ),
835
835
  children: e
836
836
  }
837
837
  );
838
- }, nr = ({ item: e }) => {
838
+ }, rr = ({ item: e }) => {
839
839
  const { aspectRatioStyle: r } = se(), { type: n } = e;
840
- let o, i;
840
+ let o, a;
841
841
  switch (n) {
842
842
  case "360":
843
- o = e.images[0].src, i = !0;
843
+ o = e.images[0].src, a = !0;
844
844
  break;
845
845
  case "image":
846
- o = e.src, i = !0;
846
+ o = e.src, a = !0;
847
847
  break;
848
848
  case "video":
849
- o = e.poster, i = !0;
849
+ o = e.poster, a = !0;
850
850
  break;
851
851
  case "custom":
852
- o = e.thumbnailSrc, i = !1;
852
+ o = e.thumbnailSrc, a = !1;
853
853
  break;
854
854
  }
855
- const l = /* @__PURE__ */ t(rr, { src: o, withCdn: i });
856
- let p;
855
+ const u = /* @__PURE__ */ t(tr, { src: o, withCdn: a });
856
+ let h;
857
857
  switch (n) {
858
858
  case "360":
859
- p = /* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(vt, { className: "size-full text-primary-light" }) });
859
+ h = /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(wt, { className: "size-full text-primary-light" }) });
860
860
  break;
861
861
  case "video":
862
- p = /* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(De, { className: "size-full p-0.5 text-background" }) });
862
+ h = /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(Re, { className: "size-full p-0.5 text-background" }) });
863
863
  break;
864
864
  case "custom":
865
- p = o ? null : /* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(wt, { className: "size-full p-0.5 text-background" }) });
865
+ h = o ? null : /* @__PURE__ */ t(Ve, { children: /* @__PURE__ */ t(gt, { className: "size-full p-0.5 text-background" }) });
866
866
  break;
867
867
  }
868
- return /* @__PURE__ */ A("div", { className: "relative bg-foreground/30", style: r, children: [
869
- l,
870
- p && /* @__PURE__ */ t("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: p })
868
+ return /* @__PURE__ */ R("div", { className: "relative bg-foreground/30", style: r, children: [
869
+ u,
870
+ h && /* @__PURE__ */ t("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: h })
871
871
  ] });
872
- }, or = {
872
+ }, nr = {
873
873
  primary: "bg-primary/50",
874
874
  neutral: "bg-neutral/50",
875
875
  background: "bg-background/50",
876
876
  foreground: "bg-foreground/50"
877
- }, bt = ({
877
+ }, vt = ({
878
878
  color: e = "neutral",
879
879
  orientation: r = "horizontal"
880
880
  }) => {
881
- const n = or[e];
882
- return /* @__PURE__ */ t("div", { className: H(n, r === "horizontal" ? "h-px w-full" : "w-px h-full") });
883
- }, yt = ({
881
+ const n = nr[e];
882
+ return /* @__PURE__ */ t("div", { className: D(n, r === "horizontal" ? "h-px w-full" : "w-px h-full") });
883
+ }, bt = ({
884
884
  className: e = "",
885
885
  containerClassName: r = ""
886
886
  }) => {
887
- const { hideCategories: n, infiniteCarrousel: o, permanentGallery: i, isFullScreen: l } = ne(), { categories: p, aspectRatioStyle: m } = se(), {
887
+ const { hideCategories: n, infiniteCarrousel: o, permanentGallery: a, isFullScreen: u } = ne(), { categories: h, aspectRatioStyle: p } = se(), {
888
888
  items: L,
889
889
  extendMode: I,
890
890
  extendTransition: f,
891
891
  masterItemIndex: C,
892
- prevItem: V,
893
- nextItem: z,
894
- scrollToItemIndex: a,
895
- resetView: d
896
- } = Q(), g = re(() => {
892
+ prevItem: H,
893
+ nextItem: S,
894
+ scrollToItemIndex: s,
895
+ resetView: m
896
+ } = J(), w = re(() => {
897
897
  if (n)
898
898
  return [];
899
- const y = new Array();
900
- let N = p[0];
901
- const S = (_) => p.find(
902
- (R) => R.items.some((v) => v === _)
899
+ const x = new Array();
900
+ let N = h[0];
901
+ const _ = (V) => h.find(
902
+ (d) => d.items.some((T) => T === V)
903
903
  );
904
- for (let _ = 0; _ < L.length; _++) {
905
- const R = L[_], v = S(R);
906
- v && v !== N && (y.push(_), N = v);
904
+ for (let V = 0; V < L.length; V++) {
905
+ const d = L[V], T = _(d);
906
+ T && T !== N && (x.push(V), N = T);
907
907
  }
908
- return y;
909
- }, [p, n, L]), x = j(null), w = T(() => {
910
- if (!x.current)
908
+ return x;
909
+ }, [h, n, L]), y = j(null), v = z(() => {
910
+ if (!y.current)
911
911
  throw new Error("slider.current is null");
912
- return x.current;
913
- }, []), u = j(!1), c = j(
912
+ return y.current;
913
+ }, []), l = j(!1), i = j(
914
914
  null
915
- ), [h, b] = Z(!1), k = T(
916
- (y, N) => {
917
- const S = w(), _ = S.clientWidth, R = S.scrollWidth / L.length, v = (y + 1 / 2) * R - _ / 2, s = S.scrollWidth - S.clientWidth;
918
- S.scrollTo({
919
- left: ce(v, 0, s),
915
+ ), [g, b] = Y(!1), k = z(
916
+ (x, N) => {
917
+ const _ = v(), V = _.clientWidth, d = _.scrollWidth / L.length, T = (x + 1 / 2) * d - V / 2, c = _.scrollWidth - _.clientWidth;
918
+ _.scrollTo({
919
+ left: ce(T, 0, c),
920
920
  behavior: N
921
921
  });
922
922
  },
923
- [L.length, w]
923
+ [L.length, v]
924
924
  );
925
- O(() => {
926
- const y = x.current;
927
- if (!y)
925
+ W(() => {
926
+ const x = y.current;
927
+ if (!x)
928
928
  return;
929
- const N = (R) => {
930
- R.preventDefault(), u.current = !0, c.current = {
931
- x: R.pageX - y.offsetLeft,
932
- scrollLeft: y.scrollLeft
929
+ const N = (d) => {
930
+ d.preventDefault(), l.current = !0, i.current = {
931
+ x: d.pageX - x.offsetLeft,
932
+ scrollLeft: x.scrollLeft
933
933
  };
934
- }, S = (R) => {
935
- if (!u.current)
934
+ }, _ = (d) => {
935
+ if (!l.current)
936
936
  return;
937
- if (c.current === null)
937
+ if (i.current === null)
938
938
  throw new Error("[onMouseMove] scrollStart is null");
939
- const s = R.pageX - y.offsetLeft - c.current.x;
940
- if (!h && Math.abs(s) < 5)
939
+ const c = d.pageX - x.offsetLeft - i.current.x;
940
+ if (!g && Math.abs(c) < 5)
941
941
  return;
942
- const E = c.current.scrollLeft - s;
942
+ const E = i.current.scrollLeft - c;
943
943
  b(!0), requestAnimationFrame(() => {
944
- y.scrollLeft = E;
944
+ x.scrollLeft = E;
945
945
  });
946
- }, _ = () => {
947
- u.current && (u.current = !1, requestAnimationFrame(() => {
946
+ }, V = () => {
947
+ l.current && (l.current = !1, requestAnimationFrame(() => {
948
948
  b(!1);
949
949
  }));
950
950
  };
951
- return y.addEventListener("mousedown", N), document.addEventListener("mousemove", S), document.addEventListener("mouseleave", _), document.addEventListener("mouseup", _), document.addEventListener("contextmenu", _), () => {
952
- y.removeEventListener("mousedown", N), document.removeEventListener("mousemove", S), document.removeEventListener("mouseleave", _), document.removeEventListener("mouseup", _), document.removeEventListener("contextmenu", _);
951
+ return x.addEventListener("mousedown", N), document.addEventListener("mousemove", _), document.addEventListener("mouseleave", V), document.addEventListener("mouseup", V), document.addEventListener("contextmenu", V), () => {
952
+ x.removeEventListener("mousedown", N), document.removeEventListener("mousemove", _), document.removeEventListener("mouseleave", V), document.removeEventListener("mouseup", V), document.removeEventListener("contextmenu", V);
953
953
  };
954
- }, [h]);
955
- const X = j(C);
956
- O(() => {
957
- x.current && (k(C, "smooth"), X.current = C);
958
- }, [C, k]), O(() => {
959
- x.current && k(X.current, "instant");
954
+ }, [g]);
955
+ const O = j(C);
956
+ W(() => {
957
+ y.current && (k(C, "smooth"), O.current = C);
958
+ }, [C, k]), W(() => {
959
+ y.current && k(O.current, "instant");
960
960
  }, [
961
961
  k,
962
962
  // - Run the effect when those values change
963
- l,
963
+ u,
964
964
  I,
965
965
  f
966
966
  ]);
967
- const P = (y) => {
968
- h || (o && y === L.length - 1 && C === 0 ? V() : o && y === 0 && C === L.length - 1 ? z() : a(y), d());
967
+ const P = (x) => {
968
+ g || (o && x === L.length - 1 && C === 0 ? H() : o && x === 0 && C === L.length - 1 ? S() : s(x), m());
969
969
  };
970
970
  return /* @__PURE__ */ t(
971
971
  "div",
972
972
  {
973
- ref: x,
974
- className: H(
973
+ ref: y,
974
+ className: D(
975
975
  "relative w-full overflow-x-auto no-scrollbar",
976
- h ? "cursor-grab" : "cursor-grabbing",
976
+ g ? "cursor-grab" : "cursor-grabbing",
977
977
  e
978
978
  ),
979
979
  children: /* @__PURE__ */ t(
980
980
  "div",
981
981
  {
982
- className: H(
982
+ className: D(
983
983
  "flex h-10 w-fit gap-1 small:h-12 small:gap-2",
984
984
  I && "large:h-20 large:gap-4",
985
985
  r
986
986
  ),
987
- children: L.map((y, N) => /* @__PURE__ */ A(Mt, { children: [
988
- g.includes(N) && /* @__PURE__ */ t("div", { className: "my-2", children: /* @__PURE__ */ t(
989
- bt,
987
+ children: L.map((x, N) => /* @__PURE__ */ R(It, { children: [
988
+ w.includes(N) && /* @__PURE__ */ t("div", { className: "my-2", children: /* @__PURE__ */ t(
989
+ vt,
990
990
  {
991
- color: i && !l ? "neutral" : "background",
991
+ color: a && !u ? "neutral" : "background",
992
992
  orientation: "vertical"
993
993
  }
994
994
  ) }),
995
995
  /* @__PURE__ */ t(
996
996
  "div",
997
997
  {
998
- className: H(
998
+ className: D(
999
999
  "relative h-full overflow-hidden rounded-gallery transition-radius",
1000
- !h && "cursor-pointer",
1000
+ !g && "cursor-pointer",
1001
1001
  "after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",
1002
1002
  N === C ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
1003
1003
  ),
1004
- style: m,
1004
+ style: p,
1005
1005
  onClick: () => P(N),
1006
- children: /* @__PURE__ */ t(nr, { item: y })
1006
+ children: /* @__PURE__ */ t(rr, { item: x })
1007
1007
  }
1008
1008
  )
1009
1009
  ] }, N))
@@ -1011,149 +1011,149 @@ const B = ({
1011
1011
  )
1012
1012
  }
1013
1013
  );
1014
- }, xt = (e) => 1 - Math.pow(1 - e, 2), sr = ({
1014
+ }, yt = (e) => 1 - Math.pow(1 - e, 2), or = ({
1015
1015
  Media: e,
1016
1016
  itemIndex: r
1017
1017
  }) => {
1018
- const { setItemInteraction: n } = Q();
1019
- return O(() => {
1018
+ const { setItemInteraction: n } = J();
1019
+ return W(() => {
1020
1020
  n(r, "ready");
1021
1021
  }, [r, n]), e;
1022
- }, Fe = (e, r) => Math.sqrt(
1022
+ }, Ye = (e, r) => Math.sqrt(
1023
1023
  (e.clientX - r.clientX) ** 2 + (e.clientY - r.clientY) ** 2
1024
- ), ar = ({
1024
+ ), sr = ({
1025
1025
  onlyPreload: e,
1026
1026
  ...r
1027
1027
  }) => {
1028
- const { zoom: n, isZooming: o, setZoom: i } = Q(), l = j(null), p = j(null), m = T((u) => {
1029
- if (!p.current)
1028
+ const { zoom: n, isZooming: o, setZoom: a } = J(), u = j(null), h = j(null), p = z((l) => {
1029
+ if (!h.current)
1030
1030
  throw new Error(
1031
- `[${u ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
1031
+ `[${l ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
1032
1032
  );
1033
- return p.current;
1034
- }, []), L = j(!1), I = j(null), f = j(/* @__PURE__ */ new Map()), C = j({ x: 0, y: 0, scale: 1 }), V = j(null), z = T(
1035
- (u) => {
1036
- const c = m("setTransformStyle"), {
1037
- x: h,
1033
+ return h.current;
1034
+ }, []), L = j(!1), I = j(null), f = j(/* @__PURE__ */ new Map()), C = j({ x: 0, y: 0, scale: 1 }), H = j(null), S = z(
1035
+ (l) => {
1036
+ const i = p("setTransformStyle"), {
1037
+ x: g,
1038
1038
  y: b,
1039
1039
  scale: k
1040
1040
  } = {
1041
1041
  ...C.current,
1042
- ...u
1043
- }, X = ce(k, 1, xe), P = c.clientWidth, y = c.clientHeight, N = P * X, S = y * X, _ = ce(h, -(N - P), 0), R = ce(b, -(S - y), 0);
1044
- C.current = { x: _, y: R, scale: X }, c.style.transform = `translate(${_}px, ${R}px) scale(${X})`;
1042
+ ...l
1043
+ }, O = ce(k, 1, ye), P = i.clientWidth, x = i.clientHeight, N = P * O, _ = x * O, V = ce(g, -(N - P), 0), d = ce(b, -(_ - x), 0);
1044
+ C.current = { x: V, y: d, scale: O }, i.style.transform = `translate(${V}px, ${d}px) scale(${O})`;
1045
1045
  },
1046
- [m]
1047
- ), a = T(
1048
- (u, c) => {
1046
+ [p]
1047
+ ), s = z(
1048
+ (l, i) => {
1049
1049
  const {
1050
- x: h,
1050
+ x: g,
1051
1051
  y: b,
1052
1052
  scale: k
1053
1053
  } = C.current, {
1054
- x: X,
1054
+ x: O,
1055
1055
  y: P,
1056
- scale: y
1056
+ scale: x
1057
1057
  } = {
1058
1058
  ...C.current,
1059
- ...u
1059
+ ...l
1060
1060
  };
1061
- V.current && (cancelAnimationFrame(V.current), V.current = null);
1061
+ H.current && (cancelAnimationFrame(H.current), H.current = null);
1062
1062
  const N = () => {
1063
- z({ x: X, y: P, scale: y }), i(y);
1064
- }, S = Math.abs(X - h) < 1 && Math.abs(P - b) < 1 && Math.abs(y - k) < 5e-3;
1065
- if (!c || S) {
1063
+ S({ x: O, y: P, scale: x }), a(x);
1064
+ }, _ = Math.abs(O - g) < 1 && Math.abs(P - b) < 1 && Math.abs(x - k) < 5e-3;
1065
+ if (!i || _) {
1066
1066
  N();
1067
1067
  return;
1068
1068
  }
1069
- const _ = (/* @__PURE__ */ new Date()).getTime(), R = () => {
1070
- const v = () => {
1071
- const E = (/* @__PURE__ */ new Date()).getTime() - _;
1072
- if (E >= c) {
1073
- N(), V.current = null;
1069
+ const V = (/* @__PURE__ */ new Date()).getTime(), d = () => {
1070
+ const T = () => {
1071
+ const E = (/* @__PURE__ */ new Date()).getTime() - V;
1072
+ if (E >= i) {
1073
+ N(), H.current = null;
1074
1074
  return;
1075
1075
  }
1076
- const M = Math.min(E / c, 1), D = xt(M), Y = ye(h, X, D), F = ye(b, P, D), $ = ye(k, y, D);
1077
- z({ x: Y, y: F, scale: $ }), R();
1076
+ const M = Math.min(E / i, 1), X = yt(M), Z = be(g, O, X), $ = be(b, P, X), F = be(k, x, X);
1077
+ S({ x: Z, y: $, scale: F }), d();
1078
1078
  };
1079
- V.current = requestAnimationFrame(v);
1079
+ H.current = requestAnimationFrame(T);
1080
1080
  };
1081
- R();
1081
+ d();
1082
1082
  },
1083
- [z, i]
1084
- ), d = T(
1085
- (u, c) => {
1086
- let { x: h, y: b } = C.current;
1087
- u.x && (h += u.x), u.y && (b += u.y), a(
1083
+ [S, a]
1084
+ ), m = z(
1085
+ (l, i) => {
1086
+ let { x: g, y: b } = C.current;
1087
+ l.x && (g += l.x), l.y && (b += l.y), s(
1088
1088
  {
1089
- x: h,
1089
+ x: g,
1090
1090
  y: b
1091
1091
  },
1092
- c
1092
+ i
1093
1093
  );
1094
1094
  },
1095
- [a]
1096
- ), g = T(
1097
- (u, c, h) => {
1098
- const b = C.current.scale, k = ce(u, 1, xe), X = k / b, { x: P, y } = C.current, { x: N, y: S } = c, _ = -P + N, R = -y + S, v = _ * X, s = R * X, E = v - N, M = s - S, D = -E, Y = -M;
1099
- a(
1095
+ [s]
1096
+ ), w = z(
1097
+ (l, i, g) => {
1098
+ const b = C.current.scale, k = ce(l, 1, ye), O = k / b, { x: P, y: x } = C.current, { x: N, y: _ } = i, V = -P + N, d = -x + _, T = V * O, c = d * O, E = T - N, M = c - _, X = -E, Z = -M;
1099
+ s(
1100
1100
  {
1101
- x: D,
1102
- y: Y,
1101
+ x: X,
1102
+ y: Z,
1103
1103
  scale: k
1104
1104
  },
1105
- h
1105
+ g
1106
1106
  );
1107
1107
  },
1108
- [a]
1109
- ), x = T(
1110
- (u) => {
1111
- const c = m(
1108
+ [s]
1109
+ ), y = z(
1110
+ (l) => {
1111
+ const i = p(
1112
1112
  "shiftZoomFromButton"
1113
- ), h = c.clientWidth, b = c.clientHeight;
1114
- g(
1115
- u,
1113
+ ), g = i.clientWidth, b = i.clientHeight;
1114
+ w(
1115
+ l,
1116
1116
  {
1117
- x: h / 2,
1117
+ x: g / 2,
1118
1118
  y: b / 2
1119
1119
  },
1120
1120
  200
1121
1121
  );
1122
1122
  },
1123
- [m, g]
1124
- ), w = T(
1125
- (u, c, h) => {
1123
+ [p, w]
1124
+ ), v = z(
1125
+ (l, i, g) => {
1126
1126
  const { scale: b } = C.current;
1127
- g(
1128
- b + u,
1129
- c,
1130
- h
1127
+ w(
1128
+ b + l,
1129
+ i,
1130
+ g
1131
1131
  );
1132
1132
  },
1133
- [g]
1133
+ [w]
1134
1134
  );
1135
- return O(() => {
1136
- e || p.current && x(n);
1137
- }, [e, x, n]), O(() => {
1135
+ return W(() => {
1136
+ e || h.current && y(n);
1137
+ }, [e, y, n]), W(() => {
1138
1138
  if (e || !o)
1139
1139
  return;
1140
- const u = p.current;
1141
- if (!u)
1140
+ const l = h.current;
1141
+ if (!l)
1142
1142
  return;
1143
- const c = (k) => {
1143
+ const i = (k) => {
1144
1144
  k.preventDefault(), k.stopPropagation(), L.current = !0, I.current = {
1145
1145
  x: k.clientX,
1146
1146
  y: k.clientY
1147
1147
  };
1148
- }, h = (k) => {
1148
+ }, g = (k) => {
1149
1149
  if (!L.current)
1150
1150
  return;
1151
1151
  if (!I.current)
1152
1152
  throw new Error("mouseStartXY.current is null");
1153
1153
  k.stopPropagation();
1154
- const X = k.clientX - I.current.x, P = k.clientY - I.current.y;
1155
- d({
1156
- x: X,
1154
+ const O = k.clientX - I.current.x, P = k.clientY - I.current.y;
1155
+ m({
1156
+ x: O,
1157
1157
  y: P
1158
1158
  }), I.current = {
1159
1159
  x: k.clientX,
@@ -1162,96 +1162,96 @@ const B = ({
1162
1162
  }, b = () => {
1163
1163
  L.current = !1;
1164
1164
  };
1165
- return u.addEventListener("mousedown", c), document.addEventListener("mousemove", h), document.addEventListener("mouseleave", b), document.addEventListener("mouseup", b), document.addEventListener("contextmenu", b), () => {
1166
- u.removeEventListener("mousedown", c), document.removeEventListener("mousemove", h), document.removeEventListener("mouseleave", b), document.removeEventListener("mouseup", b), document.removeEventListener("contextmenu", b);
1165
+ return l.addEventListener("mousedown", i), document.addEventListener("mousemove", g), document.addEventListener("mouseleave", b), document.addEventListener("mouseup", b), document.addEventListener("contextmenu", b), () => {
1166
+ l.removeEventListener("mousedown", i), document.removeEventListener("mousemove", g), document.removeEventListener("mouseleave", b), document.removeEventListener("mouseup", b), document.removeEventListener("contextmenu", b);
1167
1167
  };
1168
- }, [o, d, e]), O(() => {
1168
+ }, [o, m, e]), W(() => {
1169
1169
  if (e)
1170
1170
  return;
1171
- const u = l.current;
1172
- if (!u)
1171
+ const l = u.current;
1172
+ if (!l)
1173
1173
  return;
1174
- const c = (h) => {
1175
- const { ctrlKey: b, clientX: k, clientY: X, deltaX: P, deltaY: y } = h;
1174
+ const i = (g) => {
1175
+ const { ctrlKey: b, clientX: k, clientY: O, deltaX: P, deltaY: x } = g;
1176
1176
  if (b) {
1177
- if (!o && y >= 0)
1177
+ if (!o && x >= 0)
1178
1178
  return;
1179
- const { left: N, top: S } = u.getBoundingClientRect(), _ = k - N, R = X - S;
1180
- w(-0.01 * y, {
1181
- x: _,
1182
- y: R
1179
+ const { left: N, top: _ } = l.getBoundingClientRect(), V = k - N, d = O - _;
1180
+ v(-0.01 * x, {
1181
+ x: V,
1182
+ y: d
1183
1183
  });
1184
1184
  } else {
1185
1185
  if (!o)
1186
1186
  return;
1187
- d({
1187
+ m({
1188
1188
  x: -2 * P,
1189
- y: -2 * y
1189
+ y: -2 * x
1190
1190
  });
1191
1191
  }
1192
- h.preventDefault();
1192
+ g.preventDefault();
1193
1193
  };
1194
- return u.addEventListener("wheel", c), () => {
1195
- u.removeEventListener("wheel", c);
1194
+ return l.addEventListener("wheel", i), () => {
1195
+ l.removeEventListener("wheel", i);
1196
1196
  };
1197
- }, [o, d, w, e]), O(() => {
1198
- const u = l.current, c = p.current;
1199
- if (!u || !c)
1197
+ }, [o, m, v, e]), W(() => {
1198
+ const l = u.current, i = h.current;
1199
+ if (!l || !i)
1200
1200
  return;
1201
- const h = f.current, b = (P) => {
1202
- for (let y = 0; y < P.changedTouches.length; y++) {
1203
- const N = P.changedTouches[y];
1204
- h.set(N.identifier, N);
1201
+ const g = f.current, b = (P) => {
1202
+ for (let x = 0; x < P.changedTouches.length; x++) {
1203
+ const N = P.changedTouches[x];
1204
+ g.set(N.identifier, N);
1205
1205
  }
1206
1206
  }, k = (P) => {
1207
- for (let y = 0; y < P.changedTouches.length; y++) {
1208
- const N = P.changedTouches[y];
1209
- h.delete(N.identifier);
1207
+ for (let x = 0; x < P.changedTouches.length; x++) {
1208
+ const N = P.changedTouches[x];
1209
+ g.delete(N.identifier);
1210
1210
  }
1211
- }, X = (P) => {
1212
- const y = P.touches.length;
1213
- if (y === 1) {
1211
+ }, O = (P) => {
1212
+ const x = P.touches.length;
1213
+ if (x === 1) {
1214
1214
  if (!o)
1215
1215
  return;
1216
1216
  P.preventDefault();
1217
- const N = P.touches[0], S = h.get(N.identifier);
1218
- if (!S)
1217
+ const N = P.touches[0], _ = g.get(N.identifier);
1218
+ if (!_)
1219
1219
  throw new Error("touchStart is null");
1220
- const _ = N.clientX - S.clientX, R = N.clientY - S.clientY;
1221
- d({
1222
- x: _,
1223
- y: R
1224
- }), h.set(N.identifier, N);
1225
- } else if (y === 2) {
1220
+ const V = N.clientX - _.clientX, d = N.clientY - _.clientY;
1221
+ m({
1222
+ x: V,
1223
+ y: d
1224
+ }), g.set(N.identifier, N);
1225
+ } else if (x === 2) {
1226
1226
  P.preventDefault();
1227
- const [N, S] = P.touches, _ = h.get(N.identifier), R = h.get(S.identifier);
1228
- if (!_ || !R)
1227
+ const [N, _] = P.touches, V = g.get(N.identifier), d = g.get(_.identifier);
1228
+ if (!V || !d)
1229
1229
  throw new Error("intialTouch1 or intialTouch2 is null");
1230
- const v = Fe(
1231
- _,
1232
- R
1233
- ), E = Fe(N, S) / v, { left: M, top: D } = u.getBoundingClientRect();
1234
- w(E - 1, {
1235
- x: (N.clientX + S.clientX) / 2 - M,
1236
- y: (N.clientY + S.clientY) / 2 - D
1237
- }), h.set(N.identifier, N), h.set(S.identifier, S);
1230
+ const T = Ye(
1231
+ V,
1232
+ d
1233
+ ), E = Ye(N, _) / T, { left: M, top: X } = l.getBoundingClientRect();
1234
+ v(E - 1, {
1235
+ x: (N.clientX + _.clientX) / 2 - M,
1236
+ y: (N.clientY + _.clientY) / 2 - X
1237
+ }), g.set(N.identifier, N), g.set(_.identifier, _);
1238
1238
  }
1239
1239
  };
1240
- return c.addEventListener("touchstart", b), c.addEventListener("touchmove", X), c.addEventListener("touchend", k), c.addEventListener("touchcancel", k), () => {
1241
- c.removeEventListener("touchstart", b), c.removeEventListener("touchmove", X), c.removeEventListener("touchend", k), c.removeEventListener("touchcancel", k);
1240
+ return i.addEventListener("touchstart", b), i.addEventListener("touchmove", O), i.addEventListener("touchend", k), i.addEventListener("touchcancel", k), () => {
1241
+ i.removeEventListener("touchstart", b), i.removeEventListener("touchmove", O), i.removeEventListener("touchend", k), i.removeEventListener("touchcancel", k);
1242
1242
  };
1243
- }, [o, d, w]), /* @__PURE__ */ t(
1243
+ }, [o, m, v]), /* @__PURE__ */ t(
1244
1244
  "div",
1245
1245
  {
1246
- ref: l,
1246
+ ref: u,
1247
1247
  className: `relative size-full overflow-hidden ${o ? "z-zoomed-image cursor-move" : ""}`,
1248
1248
  children: /* @__PURE__ */ t(
1249
1249
  "div",
1250
1250
  {
1251
- ref: p,
1251
+ ref: h,
1252
1252
  className: "origin-top-left",
1253
1253
  children: /* @__PURE__ */ t(
1254
- fe,
1254
+ he,
1255
1255
  {
1256
1256
  ...r,
1257
1257
  imgInPlayerWidthRatio: e ? 1 : n
@@ -1261,18 +1261,18 @@ const B = ({
1261
1261
  )
1262
1262
  }
1263
1263
  );
1264
- }, ir = ({ hotspot: e }) => {
1265
- const { title: r, icon: n, description: o, position: i, detail: l } = e, { getIconConfig: p } = ve(), m = n ? p(n) : void 0, { extendMode: L, setShownDetails: I } = Q(), f = !!l, C = l?.type === "image", V = !!r || !!o, z = C ? /* @__PURE__ */ t(wt, { className: "size-4" }) : /* @__PURE__ */ t("div", { className: "size-1" }), a = () => {
1264
+ }, ar = ({ hotspot: e }) => {
1265
+ const { title: r, icon: n, description: o, position: a, detail: u } = e, { getIconConfig: h } = ge(), p = n ? h(n) : void 0, { extendMode: L, setShownDetails: I } = J(), f = !!u, C = u?.type === "image", H = !!r || !!o, S = C ? /* @__PURE__ */ t(gt, { className: "size-4" }) : /* @__PURE__ */ t("div", { className: "size-1" }), s = () => {
1266
1266
  C && I({
1267
- src: l.src,
1267
+ src: u.src,
1268
1268
  title: r,
1269
1269
  text: o
1270
1270
  });
1271
1271
  };
1272
- return /* @__PURE__ */ A(
1272
+ return /* @__PURE__ */ R(
1273
1273
  "div",
1274
1274
  {
1275
- className: H(
1275
+ className: D(
1276
1276
  "group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",
1277
1277
  f ? "cursor-pointer" : "cursor-help"
1278
1278
  ),
@@ -1280,9 +1280,9 @@ const B = ({
1280
1280
  top: `${100 * e.position.y}%`,
1281
1281
  left: `${100 * e.position.x}%`
1282
1282
  },
1283
- onClick: a,
1283
+ onClick: s,
1284
1284
  children: [
1285
- /* @__PURE__ */ A(
1285
+ /* @__PURE__ */ R(
1286
1286
  "div",
1287
1287
  {
1288
1288
  className: "relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",
@@ -1293,21 +1293,21 @@ const B = ({
1293
1293
  className: "pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"
1294
1294
  }
1295
1295
  ),
1296
- /* @__PURE__ */ t("div", { className: "p-1", children: m?.Icon ? /* @__PURE__ */ t("div", { className: "size-4", children: m.Icon }) : z })
1296
+ /* @__PURE__ */ t("div", { className: "p-1", children: p?.Icon ? /* @__PURE__ */ t("div", { className: "size-4", children: p.Icon }) : S })
1297
1297
  ]
1298
1298
  }
1299
1299
  ),
1300
- !C && V && /* @__PURE__ */ t(
1300
+ !C && H && /* @__PURE__ */ t(
1301
1301
  "div",
1302
1302
  {
1303
- className: H(
1303
+ className: D(
1304
1304
  "absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",
1305
1305
  L && "large:max-w-56",
1306
- i.y < 0.55 ? "-top-1" : "-bottom-1",
1307
- i.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
1306
+ a.y < 0.55 ? "-top-1" : "-bottom-1",
1307
+ a.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
1308
1308
  "pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"
1309
1309
  ),
1310
- children: /* @__PURE__ */ A("div", { className: "space-y-1 text-pretty", children: [
1310
+ children: /* @__PURE__ */ R("div", { className: "space-y-1 text-pretty", children: [
1311
1311
  r && /* @__PURE__ */ t("div", { className: "text-sm font-semibold small:text-base small:font-bold", children: r }),
1312
1312
  o && /* @__PURE__ */ t("div", { className: "text-xs text-foreground/65 small:text-sm", children: o })
1313
1313
  ] })
@@ -1316,8 +1316,8 @@ const B = ({
1316
1316
  ]
1317
1317
  }
1318
1318
  );
1319
- }, cr = ({ hotspot: e }) => {
1320
- const { detail: r } = e, n = /* @__PURE__ */ t(ir, { hotspot: e });
1319
+ }, ir = ({ hotspot: e }) => {
1320
+ const { detail: r } = e, n = /* @__PURE__ */ t(ar, { hotspot: e });
1321
1321
  switch (r?.type) {
1322
1322
  case "link":
1323
1323
  case "pdf":
@@ -1325,163 +1325,163 @@ const B = ({
1325
1325
  default:
1326
1326
  return n;
1327
1327
  }
1328
- }, Ct = ({
1328
+ }, xt = ({
1329
1329
  hotspots: e,
1330
1330
  itemIndex: r,
1331
1331
  className: n,
1332
1332
  onLoad: o,
1333
- ...i
1333
+ ...a
1334
1334
  }) => {
1335
- const { isShowingDetails: l, showHotspots: p, setItemInteraction: m } = Q();
1336
- return /* @__PURE__ */ t("div", { className: H("relative size-full overflow-hidden", n), children: /* @__PURE__ */ A(
1335
+ const { isShowingDetails: u, showHotspots: h, setItemInteraction: p } = J();
1336
+ return /* @__PURE__ */ t("div", { className: D("relative size-full overflow-hidden", n), children: /* @__PURE__ */ R(
1337
1337
  "div",
1338
1338
  {
1339
- className: H(
1339
+ className: D(
1340
1340
  "size-full duration-details",
1341
- l ? "scale-105" : "scale-100"
1341
+ u ? "scale-105" : "scale-100"
1342
1342
  ),
1343
1343
  children: [
1344
1344
  /* @__PURE__ */ t(
1345
- ar,
1345
+ sr,
1346
1346
  {
1347
1347
  className: "size-full object-cover",
1348
1348
  onLoad: (L) => {
1349
- r !== void 0 && m(r, "ready"), o?.(L);
1349
+ r !== void 0 && p(r, "ready"), o?.(L);
1350
1350
  },
1351
- ...i
1351
+ ...a
1352
1352
  }
1353
1353
  ),
1354
- p && e?.map((L, I) => /* @__PURE__ */ t(cr, { hotspot: L }, I))
1354
+ h && e?.map((L, I) => /* @__PURE__ */ t(ir, { hotspot: L }, I))
1355
1355
  ]
1356
1356
  }
1357
1357
  ) });
1358
- }, we = 10, lr = 15, ur = ({
1358
+ }, fe = 10, cr = 15, lr = ({
1359
1359
  images: e,
1360
1360
  onlyPreload: r
1361
1361
  }) => {
1362
- const { reverse360: n } = ne(), { isShowingDetails: o, isZooming: i } = Q(), l = i || o, p = j(null), m = j(null), [L, I] = Z(0), f = e.length, C = T(() => {
1363
- I((z) => (z - 1 + f) % f);
1364
- }, [f]), V = T(() => {
1365
- I((z) => (z + 1) % f);
1362
+ const { reverse360: n } = ne(), { isShowingDetails: o, isZooming: a } = J(), u = a || o, h = j(null), p = j(null), [L, I] = Y(0), f = e.length, C = z(() => {
1363
+ I((S) => (S - 1 + f) % f);
1364
+ }, [f]), H = z(() => {
1365
+ I((S) => (S + 1) % f);
1366
1366
  }, [f]);
1367
- return O(() => {
1368
- if (l)
1367
+ return W(() => {
1368
+ if (u)
1369
1369
  return;
1370
- const z = p.current, a = m.current;
1371
- if (!z || !a)
1370
+ const S = h.current, s = p.current;
1371
+ if (!S || !s)
1372
1372
  return;
1373
- let d = null, g = [], x = null;
1374
- const w = (s) => {
1375
- g.push(s), g.length > 20 && g.shift();
1376
- }, u = () => {
1377
- const s = Date.now(), E = (() => {
1378
- const F = Date.now(), $ = g.filter(
1379
- (ee) => F - ee.timestamp < 50
1373
+ let m = null, w = [], y = null;
1374
+ const v = (c) => {
1375
+ w.push(c), w.length > 20 && w.shift();
1376
+ }, l = () => {
1377
+ const c = Date.now(), E = (() => {
1378
+ const $ = Date.now(), F = w.filter(
1379
+ (te) => $ - te.timestamp < 50
1380
1380
  );
1381
- if ($.length < 2)
1381
+ if (F.length < 2)
1382
1382
  return 0;
1383
- const U = $[0], J = $[$.length - 1];
1384
- return (J.value - U.value) / (1e-3 * Math.max(J.timestamp - U.timestamp, 1));
1383
+ const Q = F[0], K = F[F.length - 1];
1384
+ return (K.value - Q.value) / (1e-3 * Math.max(K.timestamp - Q.timestamp, 1));
1385
1385
  })();
1386
- let M = 0, D = s;
1387
- const Y = () => {
1388
- x = requestAnimationFrame(() => {
1389
- const $ = Date.now(), U = ($ - s) / 1e3, J = Math.pow(0.05, U), ee = E * J, le = ($ - D) / 1e3;
1390
- if (M += ee * le, Math.abs(ee) < 5 * we && Math.abs(M) < we) {
1391
- x = null;
1386
+ let M = 0, X = c;
1387
+ const Z = () => {
1388
+ y = requestAnimationFrame(() => {
1389
+ const F = Date.now(), Q = (F - c) / 1e3, K = Math.pow(0.05, Q), te = E * K, ae = (F - X) / 1e3;
1390
+ if (M += te * ae, Math.abs(te) < 5 * fe && Math.abs(M) < fe) {
1391
+ y = null;
1392
1392
  return;
1393
1393
  }
1394
- Math.abs(M) >= we && (M > 0 !== n ? V() : C(), M = 0), D = $, Y();
1394
+ Math.abs(M) >= fe && (M > 0 !== n ? H() : C(), M = 0), X = F, Z();
1395
1395
  });
1396
1396
  };
1397
- Y();
1398
- }, c = () => {
1399
- x && (cancelAnimationFrame(x), x = null);
1400
- }, h = (s) => {
1401
- if (s.button !== 0)
1397
+ Z();
1398
+ }, i = () => {
1399
+ y && (cancelAnimationFrame(y), y = null);
1400
+ }, g = (c) => {
1401
+ if (c.button !== 0)
1402
1402
  return;
1403
- s.preventDefault(), s.stopPropagation(), c();
1404
- const E = s.clientX;
1405
- d = E, g = [{ timestamp: Date.now(), value: E }];
1406
- }, b = (s) => {
1407
- if (d === null)
1403
+ c.preventDefault(), c.stopPropagation(), i();
1404
+ const E = c.clientX;
1405
+ m = E, w = [{ timestamp: Date.now(), value: E }];
1406
+ }, b = (c) => {
1407
+ if (m === null)
1408
1408
  return;
1409
- s.stopPropagation();
1410
- const { clientX: E } = s;
1411
- w({ timestamp: Date.now(), value: E });
1412
- const M = E - d;
1413
- Math.abs(M) < we || (M > 0 !== n ? V() : C(), d = E);
1409
+ c.stopPropagation();
1410
+ const { clientX: E } = c;
1411
+ v({ timestamp: Date.now(), value: E });
1412
+ const M = E - m;
1413
+ Math.abs(M) < fe || (M > 0 !== n ? H() : C(), m = E);
1414
1414
  }, k = () => {
1415
- d !== null && (d = null, u());
1415
+ m !== null && (m = null, l());
1416
1416
  };
1417
- z.addEventListener("mousedown", h), document.addEventListener("mousemove", b), document.addEventListener("mouseleave", k), document.addEventListener("mouseup", k), document.addEventListener("contextmenu", k);
1418
- const X = () => a.getBoundingClientRect().width, P = () => a.scrollWidth / 2 - X() / 2, y = () => {
1419
- const s = P();
1420
- a.scrollLeft = s;
1417
+ S.addEventListener("mousedown", g), document.addEventListener("mousemove", b), document.addEventListener("mouseleave", k), document.addEventListener("mouseup", k), document.addEventListener("contextmenu", k);
1418
+ const O = () => s.getBoundingClientRect().width, P = () => s.scrollWidth / 2 - O() / 2, x = () => {
1419
+ const c = P();
1420
+ s.scrollLeft = c;
1421
1421
  };
1422
- y();
1422
+ x();
1423
1423
  const N = () => {
1424
- const s = a.scrollLeft - P();
1425
- Math.abs(s) < lr || (s < 0 !== n ? V() : C(), y());
1424
+ const c = s.scrollLeft - P();
1425
+ Math.abs(c) < cr || (c < 0 !== n ? H() : C(), x());
1426
1426
  };
1427
- a.addEventListener("scroll", N);
1428
- let S = null;
1429
- const _ = (s) => {
1430
- if (S !== null || s.changedTouches.length !== 1)
1427
+ s.addEventListener("scroll", N);
1428
+ let _ = null;
1429
+ const V = (c) => {
1430
+ if (_ !== null || c.changedTouches.length !== 1)
1431
1431
  return;
1432
- c();
1433
- const { identifier: E, clientX: M } = s.changedTouches[0];
1434
- S = E, d = M, g = [{ timestamp: Date.now(), value: M }];
1435
- }, R = (s) => {
1436
- if (!d)
1432
+ i();
1433
+ const { identifier: E, clientX: M } = c.changedTouches[0];
1434
+ _ = E, m = M, w = [{ timestamp: Date.now(), value: M }];
1435
+ }, d = (c) => {
1436
+ if (!m)
1437
1437
  return;
1438
- const E = Array.from(s.changedTouches).find(
1439
- ({ identifier: Y }) => Y === S
1438
+ const E = Array.from(c.changedTouches).find(
1439
+ ({ identifier: Z }) => Z === _
1440
1440
  );
1441
1441
  if (!E)
1442
1442
  return;
1443
- s.preventDefault();
1443
+ c.preventDefault();
1444
1444
  const { clientX: M } = E;
1445
- w({ timestamp: Date.now(), value: M });
1446
- const D = M - d;
1447
- Math.abs(D) < we || (D > 0 !== n ? V() : C(), d = M);
1448
- }, v = (s) => {
1449
- !d || !Array.from(s.changedTouches).some(
1450
- ({ identifier: M }) => M === S
1451
- ) || (S = null, d = null, u());
1445
+ v({ timestamp: Date.now(), value: M });
1446
+ const X = M - m;
1447
+ Math.abs(X) < fe || (X > 0 !== n ? H() : C(), m = M);
1448
+ }, T = (c) => {
1449
+ !m || !Array.from(c.changedTouches).some(
1450
+ ({ identifier: M }) => M === _
1451
+ ) || (_ = null, m = null, l());
1452
1452
  };
1453
- return a.addEventListener("touchstart", _), a.addEventListener("touchmove", R), a.addEventListener("touchend", v), a.addEventListener("touchcancel", v), () => {
1454
- z.removeEventListener("mousedown", h), document.removeEventListener("mousemove", b), document.removeEventListener("mouseleave", k), document.removeEventListener("mouseup", k), document.removeEventListener("contextmenu", k), a.removeEventListener("scroll", N), a.removeEventListener("touchstart", _), a.removeEventListener("touchmove", R), a.removeEventListener("touchend", v), a.removeEventListener("touchcancel", v);
1453
+ return s.addEventListener("touchstart", V), s.addEventListener("touchmove", d), s.addEventListener("touchend", T), s.addEventListener("touchcancel", T), () => {
1454
+ S.removeEventListener("mousedown", g), document.removeEventListener("mousemove", b), document.removeEventListener("mouseleave", k), document.removeEventListener("mouseup", k), document.removeEventListener("contextmenu", k), s.removeEventListener("scroll", N), s.removeEventListener("touchstart", V), s.removeEventListener("touchmove", d), s.removeEventListener("touchend", T), s.removeEventListener("touchcancel", T);
1455
1455
  };
1456
- }, [V, C, l, n]), /* @__PURE__ */ t("div", { ref: p, className: "cursor-ew-resize", children: /* @__PURE__ */ A("div", { ref: m, className: "overflow-x-scroll no-scrollbar", children: [
1457
- /* @__PURE__ */ A("div", { className: "sticky left-0 top-0", children: [
1458
- e.map((z) => /* @__PURE__ */ t(
1459
- fe,
1456
+ }, [H, C, u, n]), /* @__PURE__ */ t("div", { ref: h, className: "cursor-ew-resize", children: /* @__PURE__ */ R("div", { ref: p, className: "overflow-x-scroll no-scrollbar", children: [
1457
+ /* @__PURE__ */ R("div", { className: "sticky left-0 top-0", children: [
1458
+ e.map((S) => /* @__PURE__ */ t(
1459
+ he,
1460
1460
  {
1461
- src: z.src,
1461
+ src: S.src,
1462
1462
  className: "pointer-events-none !absolute left-0 top-0 -z-10"
1463
1463
  },
1464
- z.src
1464
+ S.src
1465
1465
  )),
1466
- /* @__PURE__ */ t(Ct, { ...e[L], onlyPreload: r })
1466
+ /* @__PURE__ */ t(xt, { ...e[L], onlyPreload: r })
1467
1467
  ] }),
1468
1468
  /* @__PURE__ */ t("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
1469
1469
  ] }) });
1470
- }, dr = ({ images: e, onPlaceholderImageLoaded: r, onSpinImagesLoaded: n, onError: o }) => {
1471
- const i = re(() => e.map(({ src: f }) => f), [e]), [l, p] = Z(null), m = l ? [...l.values()].filter((f) => f).length / e.length * 100 : null, L = T(() => {
1472
- m === null && p(new Map(i.map((f) => [f, !1])));
1473
- }, [i, m]), I = T((f) => {
1474
- p((C) => {
1475
- const V = new Map(C);
1476
- return V.set(f, !0), V;
1470
+ }, ur = ({ images: e, onPlaceholderImageLoaded: r, onSpinImagesLoaded: n, onError: o }) => {
1471
+ const a = re(() => e.map(({ src: f }) => f), [e]), [u, h] = Y(null), p = u ? [...u.values()].filter((f) => f).length / e.length * 100 : null, L = z(() => {
1472
+ p === null && h(new Map(a.map((f) => [f, !1])));
1473
+ }, [a, p]), I = z((f) => {
1474
+ h((C) => {
1475
+ const H = new Map(C);
1476
+ return H.set(f, !0), H;
1477
1477
  });
1478
1478
  }, []);
1479
- return O(() => {
1480
- m === 100 && n();
1481
- }, [m, n]), /* @__PURE__ */ A("div", { className: "relative size-full", children: [
1482
- m !== null && m !== 100 && // Add images to DOM to preload them
1483
- /* @__PURE__ */ t("div", { className: "hidden", children: i.map((f) => /* @__PURE__ */ t(
1484
- fe,
1479
+ return W(() => {
1480
+ p === 100 && n();
1481
+ }, [p, n]), /* @__PURE__ */ R("div", { className: "relative size-full", children: [
1482
+ p !== null && p !== 100 && // Add images to DOM to preload them
1483
+ /* @__PURE__ */ t("div", { className: "hidden", children: a.map((f) => /* @__PURE__ */ t(
1484
+ he,
1485
1485
  {
1486
1486
  src: f,
1487
1487
  onLoad: () => I(f),
@@ -1490,54 +1490,54 @@ const B = ({
1490
1490
  f
1491
1491
  )) }),
1492
1492
  /* @__PURE__ */ t(
1493
- fe,
1493
+ he,
1494
1494
  {
1495
1495
  className: "size-full",
1496
- src: i[0],
1496
+ src: a[0],
1497
1497
  onLoad: r
1498
1498
  }
1499
1499
  ),
1500
- /* @__PURE__ */ A("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
1501
- /* @__PURE__ */ t(vt, { className: "size-20 text-primary-light" }),
1502
- /* @__PURE__ */ t(te, { color: "neutral", shape: "icon", onClick: L, children: /* @__PURE__ */ t(De, { className: "size-full" }) }),
1500
+ /* @__PURE__ */ R("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
1501
+ /* @__PURE__ */ t(wt, { className: "size-20 text-primary-light" }),
1502
+ /* @__PURE__ */ t(ee, { color: "neutral", shape: "icon", onClick: L, children: /* @__PURE__ */ t(Re, { className: "size-full" }) }),
1503
1503
  /* @__PURE__ */ t(
1504
1504
  "div",
1505
1505
  {
1506
- className: H(
1506
+ className: D(
1507
1507
  "relative h-1 w-3/5 overflow-hidden rounded-full bg-background",
1508
- m === null && "invisible"
1508
+ p === null && "invisible"
1509
1509
  ),
1510
1510
  children: /* @__PURE__ */ t(
1511
1511
  "div",
1512
1512
  {
1513
1513
  className: "h-full bg-primary transition-[width]",
1514
- style: { width: `${m ?? 0}%` }
1514
+ style: { width: `${p ?? 0}%` }
1515
1515
  }
1516
1516
  )
1517
1517
  }
1518
1518
  )
1519
1519
  ] })
1520
1520
  ] });
1521
- }, mr = (e) => {
1522
- const { itemIndex: r } = e, { setItemInteraction: n } = Q(), [o, i] = Z();
1523
- return O(() => {
1521
+ }, dr = (e) => {
1522
+ const { itemIndex: r } = e, { setItemInteraction: n } = J(), [o, a] = Y();
1523
+ return W(() => {
1524
1524
  o === null || o === "error" || n(r, o === "spin" ? "running" : "ready");
1525
1525
  }, [r, n, o]), o === "error" ? /* @__PURE__ */ t(
1526
- ft,
1526
+ ht,
1527
1527
  {
1528
1528
  className: "text-background",
1529
1529
  text: "Spin could not be loaded"
1530
1530
  }
1531
1531
  ) : o !== "spin" ? /* @__PURE__ */ t(
1532
- dr,
1532
+ ur,
1533
1533
  {
1534
1534
  ...e,
1535
- onPlaceholderImageLoaded: () => i("placeholder"),
1536
- onSpinImagesLoaded: () => i("spin"),
1537
- onError: () => i("error")
1535
+ onPlaceholderImageLoaded: () => a("placeholder"),
1536
+ onSpinImagesLoaded: () => a("spin"),
1537
+ onError: () => a("error")
1538
1538
  }
1539
- ) : /* @__PURE__ */ t(ur, { ...e });
1540
- }, pr = (e) => /* @__PURE__ */ t(te, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t(De, { className: "size-full" }) }), hr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t(
1539
+ ) : /* @__PURE__ */ t(lr, { ...e });
1540
+ }, mr = (e) => /* @__PURE__ */ t(ee, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t(Re, { className: "size-full" }) }), pr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t(
1541
1541
  "svg",
1542
1542
  {
1543
1543
  className: e,
@@ -1554,7 +1554,7 @@ const B = ({
1554
1554
  }
1555
1555
  )
1556
1556
  }
1557
- ) }), fr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t(
1557
+ ) }), hr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t(
1558
1558
  "svg",
1559
1559
  {
1560
1560
  className: e,
@@ -1571,7 +1571,7 @@ const B = ({
1571
1571
  }
1572
1572
  )
1573
1573
  }
1574
- ) }), gr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t(
1574
+ ) }), fr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t(
1575
1575
  "svg",
1576
1576
  {
1577
1577
  className: e,
@@ -1588,162 +1588,162 @@ const B = ({
1588
1588
  }
1589
1589
  )
1590
1590
  }
1591
- ) }), je = ({ progress: e }) => /* @__PURE__ */ t("div", { className: "h-1 w-full overflow-hidden rounded-ui-sm bg-background/25", children: /* @__PURE__ */ t(
1591
+ ) }), Fe = ({ progress: e }) => /* @__PURE__ */ t("div", { className: "h-1 w-full overflow-hidden rounded-ui-sm bg-background/25", children: /* @__PURE__ */ t(
1592
1592
  "div",
1593
1593
  {
1594
1594
  className: "size-full rounded-ui-sm bg-background transition-transform",
1595
1595
  style: { transform: `translateX(-${100 * (1 - e)}%)` }
1596
1596
  }
1597
- ) }), wr = 3e3, vr = ({ src: e, poster: r, itemIndex: n }) => {
1598
- const { carrouselItemIndex: o, setItemInteraction: i } = Q(), l = j(null), p = j(null), m = T(() => {
1599
- if (!p.current)
1597
+ ) }), gr = 3e3, wr = ({ src: e, poster: r, itemIndex: n }) => {
1598
+ const { carrouselItemIndex: o, setItemInteraction: a } = J(), u = j(null), h = j(null), p = z(() => {
1599
+ if (!h.current)
1600
1600
  throw new Error("videoRef.current is null");
1601
- return p.current;
1601
+ return h.current;
1602
1602
  }, []);
1603
- O(() => {
1604
- i(n, "ready");
1605
- }, [n, i]);
1606
- const L = T(() => {
1607
- m().play();
1608
- }, [m]), I = T(() => {
1609
- m().pause();
1610
- }, [m]);
1611
- O(() => {
1603
+ W(() => {
1604
+ a(n, "ready");
1605
+ }, [n, a]);
1606
+ const L = z(() => {
1607
+ p().play();
1608
+ }, [p]), I = z(() => {
1609
+ p().pause();
1610
+ }, [p]);
1611
+ W(() => {
1612
1612
  o === n || I();
1613
1613
  }, [o, n, I]);
1614
- const [f, C] = Z(!1), [V, z] = Z(!0), a = () => {
1615
- C(!0), i(n, "running");
1616
- }, d = () => {
1617
- C(!1), i(n, "ready");
1618
- }, g = () => {
1619
- z(!1);
1620
- }, x = () => {
1621
- z(!0);
1622
- }, [w, u] = Z(null), c = (s) => {
1623
- const E = m(), M = s.currentTarget.getBoundingClientRect(), Y = (s.clientX - M.left) / M.width, F = Math.min(1, Math.max(0, Y));
1624
- E.volume = F, E.muted = !1;
1625
- }, h = (s) => {
1626
- const E = m();
1627
- E.muted = s;
1614
+ const [f, C] = Y(!1), [H, S] = Y(!0), s = () => {
1615
+ C(!0), a(n, "running");
1616
+ }, m = () => {
1617
+ C(!1), a(n, "ready");
1618
+ }, w = () => {
1619
+ S(!1);
1620
+ }, y = () => {
1621
+ S(!0);
1622
+ }, [v, l] = Y(null), i = (c) => {
1623
+ const E = p(), M = c.currentTarget.getBoundingClientRect(), Z = (c.clientX - M.left) / M.width, $ = Math.min(1, Math.max(0, Z));
1624
+ E.volume = $, E.muted = !1;
1625
+ }, g = (c) => {
1626
+ const E = p();
1627
+ E.muted = c;
1628
1628
  };
1629
- O(() => {
1630
- const s = p.current;
1631
- if (!s)
1629
+ W(() => {
1630
+ const c = h.current;
1631
+ if (!c)
1632
1632
  return;
1633
1633
  const E = () => {
1634
- u({
1635
- volume: s.volume,
1636
- isMuted: s.muted
1634
+ l({
1635
+ volume: c.volume,
1636
+ isMuted: c.muted
1637
1637
  });
1638
1638
  };
1639
- return E(), s.addEventListener("volumechange", E), () => {
1640
- s.removeEventListener("volumechange", E);
1639
+ return E(), c.addEventListener("volumechange", E), () => {
1640
+ c.removeEventListener("volumechange", E);
1641
1641
  };
1642
1642
  }, []);
1643
- const [b, k] = Z(null), X = b ? b.currentTime / b.duration : 0;
1644
- O(() => {
1645
- const s = p.current;
1646
- if (!s) return;
1643
+ const [b, k] = Y(null), O = b ? b.currentTime / b.duration : 0;
1644
+ W(() => {
1645
+ const c = h.current;
1646
+ if (!c) return;
1647
1647
  const E = () => {
1648
- const M = s.currentTime, D = s.duration;
1649
- isNaN(M) || isNaN(D) || k({
1648
+ const M = c.currentTime, X = c.duration;
1649
+ isNaN(M) || isNaN(X) || k({
1650
1650
  currentTime: M,
1651
- duration: D
1651
+ duration: X
1652
1652
  });
1653
1653
  };
1654
- return E(), s.addEventListener("timeupdate", E), () => {
1655
- s.removeEventListener("timeupdate", E);
1654
+ return E(), c.addEventListener("timeupdate", E), () => {
1655
+ c.removeEventListener("timeupdate", E);
1656
1656
  };
1657
1657
  }, []);
1658
- const P = (s) => {
1659
- const E = m(), M = s.currentTarget.getBoundingClientRect(), Y = (s.clientX - M.left) / M.width, F = E.duration * Y;
1660
- E.currentTime = F;
1661
- }, y = (s) => {
1662
- const E = Math.floor(s % 3600 / 60), M = Math.floor(s % 60);
1658
+ const P = (c) => {
1659
+ const E = p(), M = c.currentTarget.getBoundingClientRect(), Z = (c.clientX - M.left) / M.width, $ = E.duration * Z;
1660
+ E.currentTime = $;
1661
+ }, x = (c) => {
1662
+ const E = Math.floor(c % 3600 / 60), M = Math.floor(c % 60);
1663
1663
  return `${E}:${M.toString().padStart(2, "0")}`;
1664
- }, [N, S] = Z(!1), _ = j(void 0), R = T(
1665
- () => clearTimeout(_.current),
1664
+ }, [N, _] = Y(!1), V = j(void 0), d = z(
1665
+ () => clearTimeout(V.current),
1666
1666
  []
1667
- ), v = T(() => {
1668
- R(), _.current = setTimeout(() => {
1669
- S(!1);
1670
- }, wr);
1671
- }, [R]);
1672
- return O(() => {
1673
- const s = l.current, E = p.current;
1674
- if (!s || !E)
1667
+ ), T = z(() => {
1668
+ d(), V.current = setTimeout(() => {
1669
+ _(!1);
1670
+ }, gr);
1671
+ }, [d]);
1672
+ return W(() => {
1673
+ const c = u.current, E = h.current;
1674
+ if (!c || !E)
1675
1675
  return;
1676
1676
  const M = () => {
1677
- v(), S(!0);
1678
- }, D = () => {
1679
- R(), S(!1);
1677
+ T(), _(!0);
1678
+ }, X = () => {
1679
+ d(), _(!1);
1680
1680
  };
1681
- let Y = !1;
1682
- const F = () => {
1683
- Y = !0;
1684
- }, $ = () => {
1685
- Y && (Y = !1, I());
1686
- }, U = () => {
1687
- Y = !1, M();
1688
- }, J = (ee) => {
1689
- ee.preventDefault(), ee.touches.length === 1 && (v(), S((oe) => !oe));
1681
+ let Z = !1;
1682
+ const $ = () => {
1683
+ Z = !0;
1684
+ }, F = () => {
1685
+ Z && (Z = !1, I());
1686
+ }, Q = () => {
1687
+ Z = !1, M();
1688
+ }, K = (te) => {
1689
+ te.preventDefault(), te.touches.length === 1 && (T(), _((oe) => !oe));
1690
1690
  };
1691
- return s.addEventListener("mousedown", F), s.addEventListener("mouseup", $), s.addEventListener("mouseenter", M), s.addEventListener("mousemove", U), s.addEventListener("mouseleave", D), E.addEventListener("touchstart", J), () => {
1692
- s.removeEventListener("mousedown", F), s.removeEventListener("mouseup", $), s.removeEventListener("mouseenter", M), s.removeEventListener("mousemove", M), s.removeEventListener("mouseleave", D), E.removeEventListener("touchstart", J);
1691
+ return c.addEventListener("mousedown", $), c.addEventListener("mouseup", F), c.addEventListener("mouseenter", M), c.addEventListener("mousemove", Q), c.addEventListener("mouseleave", X), E.addEventListener("touchstart", K), () => {
1692
+ c.removeEventListener("mousedown", $), c.removeEventListener("mouseup", F), c.removeEventListener("mouseenter", M), c.removeEventListener("mousemove", M), c.removeEventListener("mouseleave", X), E.removeEventListener("touchstart", K);
1693
1693
  };
1694
- }, [R, I, v]), /* @__PURE__ */ A("div", { ref: l, className: "relative size-full", children: [
1694
+ }, [d, I, T]), /* @__PURE__ */ R("div", { ref: u, className: "relative size-full", children: [
1695
1695
  /* @__PURE__ */ t(
1696
1696
  "video",
1697
1697
  {
1698
- ref: p,
1698
+ ref: h,
1699
1699
  className: "size-full",
1700
1700
  src: e,
1701
1701
  poster: r,
1702
1702
  disablePictureInPicture: !0,
1703
1703
  playsInline: !0,
1704
- onPlay: a,
1705
- onPause: d,
1706
- onEnded: d,
1707
- onCanPlay: g,
1708
- onWaiting: x
1704
+ onPlay: s,
1705
+ onPause: m,
1706
+ onEnded: m,
1707
+ onCanPlay: w,
1708
+ onWaiting: y
1709
1709
  }
1710
1710
  ),
1711
- f ? /* @__PURE__ */ A(ie, { children: [
1712
- /* @__PURE__ */ A(
1711
+ f ? /* @__PURE__ */ R(ie, { children: [
1712
+ /* @__PURE__ */ R(
1713
1713
  "div",
1714
1714
  {
1715
- className: H(
1715
+ className: D(
1716
1716
  "absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",
1717
1717
  N ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
1718
1718
  ),
1719
- onMouseDownCapture: (s) => s.stopPropagation(),
1719
+ onMouseDownCapture: (c) => c.stopPropagation(),
1720
1720
  children: [
1721
- /* @__PURE__ */ A("div", { className: "flex items-center justify-between text-background", children: [
1722
- /* @__PURE__ */ A(
1721
+ /* @__PURE__ */ R("div", { className: "flex items-center justify-between text-background", children: [
1722
+ /* @__PURE__ */ R(
1723
1723
  "div",
1724
1724
  {
1725
1725
  className: "flex items-center gap-x-4",
1726
1726
  children: [
1727
1727
  /* @__PURE__ */ t(
1728
- te,
1728
+ ee,
1729
1729
  {
1730
1730
  shape: "icon",
1731
1731
  variant: "ghost",
1732
1732
  color: "neutral",
1733
1733
  onClick: I,
1734
- children: /* @__PURE__ */ t(hr, { className: "size-full" })
1734
+ children: /* @__PURE__ */ t(pr, { className: "size-full" })
1735
1735
  }
1736
1736
  ),
1737
- b && /* @__PURE__ */ A("span", { className: "text-sm", children: [
1738
- y(b.currentTime),
1737
+ b && /* @__PURE__ */ R("span", { className: "text-sm", children: [
1738
+ x(b.currentTime),
1739
1739
  " /",
1740
1740
  " ",
1741
- y(b.duration)
1741
+ x(b.duration)
1742
1742
  ] })
1743
1743
  ]
1744
1744
  }
1745
1745
  ),
1746
- w && /* @__PURE__ */ A(
1746
+ v && /* @__PURE__ */ R(
1747
1747
  "div",
1748
1748
  {
1749
1749
  className: "group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",
@@ -1751,17 +1751,17 @@ const B = ({
1751
1751
  /* @__PURE__ */ t(
1752
1752
  "div",
1753
1753
  {
1754
- className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${w.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1755
- onClick: c,
1756
- children: /* @__PURE__ */ t(je, { progress: w.volume })
1754
+ className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${v.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
1755
+ onClick: i,
1756
+ children: /* @__PURE__ */ t(Fe, { progress: v.volume })
1757
1757
  }
1758
1758
  ),
1759
1759
  /* @__PURE__ */ t(
1760
1760
  "div",
1761
1761
  {
1762
1762
  className: "size-5 cursor-pointer",
1763
- onClick: () => h(!w.isMuted),
1764
- children: w.isMuted ? /* @__PURE__ */ t(gr, { className: "size-full" }) : /* @__PURE__ */ t(fr, { className: "size-full" })
1763
+ onClick: () => g(!v.isMuted),
1764
+ children: v.isMuted ? /* @__PURE__ */ t(fr, { className: "size-full" }) : /* @__PURE__ */ t(hr, { className: "size-full" })
1765
1765
  }
1766
1766
  )
1767
1767
  ]
@@ -1773,46 +1773,46 @@ const B = ({
1773
1773
  {
1774
1774
  className: "cursor-pointer py-1",
1775
1775
  onClick: P,
1776
- children: /* @__PURE__ */ t(je, { progress: X })
1776
+ children: /* @__PURE__ */ t(Fe, { progress: O })
1777
1777
  }
1778
1778
  )
1779
1779
  ]
1780
1780
  }
1781
1781
  ),
1782
- V && /* @__PURE__ */ t(
1782
+ H && /* @__PURE__ */ t(
1783
1783
  "div",
1784
1784
  {
1785
1785
  className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
1786
- children: /* @__PURE__ */ t(gt, { size: "lg", color: "background" })
1786
+ children: /* @__PURE__ */ t(ft, { size: "lg", color: "background" })
1787
1787
  }
1788
1788
  )
1789
1789
  ] }) : /* @__PURE__ */ t(
1790
1790
  "div",
1791
1791
  {
1792
1792
  className: "absolute inset-0 flex items-center justify-center bg-foreground/25",
1793
- children: /* @__PURE__ */ t(pr, { onClick: L })
1793
+ children: /* @__PURE__ */ t(mr, { onClick: L })
1794
1794
  }
1795
1795
  )
1796
1796
  ] });
1797
- }, br = ({ index: e, item: r, isShown: n }) => {
1797
+ }, vr = ({ index: e, item: r, isShown: n }) => {
1798
1798
  const { type: o } = r;
1799
- let i;
1799
+ let a;
1800
1800
  switch (o) {
1801
1801
  case "image":
1802
- i = /* @__PURE__ */ t(Ct, { itemIndex: e, onlyPreload: !n, ...r });
1802
+ a = /* @__PURE__ */ t(xt, { itemIndex: e, onlyPreload: !n, ...r });
1803
1803
  break;
1804
1804
  case "video":
1805
- i = /* @__PURE__ */ t(vr, { itemIndex: e, ...r });
1805
+ a = /* @__PURE__ */ t(wr, { itemIndex: e, ...r });
1806
1806
  break;
1807
1807
  case "360":
1808
- i = /* @__PURE__ */ t(mr, { itemIndex: e, onlyPreload: !n, ...r });
1808
+ a = /* @__PURE__ */ t(dr, { itemIndex: e, onlyPreload: !n, ...r });
1809
1809
  break;
1810
1810
  case "custom":
1811
- i = /* @__PURE__ */ t(sr, { itemIndex: e, ...r });
1811
+ a = /* @__PURE__ */ t(or, { itemIndex: e, ...r });
1812
1812
  }
1813
- return i = /* @__PURE__ */ t("div", { className: "-ml-px h-full w-[calc(100%+2px)]", children: i }), i;
1814
- }, yr = (e) => {
1815
- O(() => {
1813
+ return a = /* @__PURE__ */ t("div", { className: "-ml-px h-full w-[calc(100%+2px)]", children: a }), a;
1814
+ }, br = (e) => {
1815
+ W(() => {
1816
1816
  const r = (n) => {
1817
1817
  n.key === "Escape" && e();
1818
1818
  };
@@ -1821,32 +1821,32 @@ const B = ({
1821
1821
  };
1822
1822
  }, [e]);
1823
1823
  };
1824
- function xr(e) {
1824
+ function yr(e) {
1825
1825
  return e.target === e.currentTarget;
1826
1826
  }
1827
- const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { className: "space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm", children: [
1827
+ const xr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ R("div", { className: "space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm", children: [
1828
1828
  /* @__PURE__ */ t("span", { children: e + 1 }),
1829
1829
  /* @__PURE__ */ t("span", { children: "/" }),
1830
1830
  /* @__PURE__ */ t("span", { children: r + 1 })
1831
- ] }), $e = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_ARROW_RIGHT", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1831
+ ] }), je = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_ARROW_RIGHT", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1832
1832
  "path",
1833
1833
  {
1834
1834
  d: "M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",
1835
1835
  fill: "currentColor"
1836
1836
  }
1837
- ) }) }), Er = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_EXTEND", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1837
+ ) }) }), Cr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_EXTEND", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1838
1838
  "path",
1839
1839
  {
1840
1840
  d: "M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",
1841
1841
  fill: "currentColor"
1842
1842
  }
1843
- ) }) }), kr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_GALLERY", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1843
+ ) }) }), Er = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_GALLERY", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1844
1844
  "path",
1845
1845
  {
1846
1846
  d: "M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",
1847
1847
  fill: "currentColor"
1848
1848
  }
1849
- ) }) }), Lr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ A(
1849
+ ) }) }), kr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ R(
1850
1850
  "svg",
1851
1851
  {
1852
1852
  className: e,
@@ -1866,7 +1866,7 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
1866
1866
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_418_982", children: /* @__PURE__ */ t("rect", { width: "12", height: "12", fill: "white" }) }) })
1867
1867
  ]
1868
1868
  }
1869
- ) }), Ir = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t(
1869
+ ) }), Lr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t(
1870
1870
  "svg",
1871
1871
  {
1872
1872
  className: e,
@@ -1883,7 +1883,7 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
1883
1883
  }
1884
1884
  )
1885
1885
  }
1886
- ) }), Mr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_PLUS", children: /* @__PURE__ */ t(
1886
+ ) }), Ir = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_PLUS", children: /* @__PURE__ */ t(
1887
1887
  "svg",
1888
1888
  {
1889
1889
  className: e,
@@ -1900,22 +1900,22 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
1900
1900
  }
1901
1901
  )
1902
1902
  }
1903
- ) }), Nr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1903
+ ) }), Mr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
1904
1904
  "path",
1905
1905
  {
1906
1906
  d: "M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",
1907
1907
  fill: "currentColor"
1908
1908
  }
1909
- ) }) }), Tr = ({
1909
+ ) }) }), Nr = ({
1910
1910
  enabled: e,
1911
1911
  onToggle: r,
1912
1912
  label: n,
1913
1913
  className: o,
1914
- children: i
1915
- }) => /* @__PURE__ */ A(
1914
+ children: a
1915
+ }) => /* @__PURE__ */ R(
1916
1916
  "label",
1917
1917
  {
1918
- className: H(
1918
+ className: D(
1919
1919
  "flex cursor-pointer items-center justify-center gap-x-2",
1920
1920
  o
1921
1921
  ),
@@ -1933,25 +1933,25 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
1933
1933
  /* @__PURE__ */ t(
1934
1934
  "div",
1935
1935
  {
1936
- className: H(
1936
+ className: D(
1937
1937
  "flex h-5 w-8 items-center justify-center rounded-full transition-colors",
1938
1938
  e ? "bg-primary" : "bg-background/60"
1939
1939
  ),
1940
1940
  children: /* @__PURE__ */ t(
1941
1941
  "div",
1942
1942
  {
1943
- className: H(
1943
+ className: D(
1944
1944
  "flex size-4 items-center justify-center rounded-full p-0.5 transition",
1945
1945
  e ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
1946
1946
  ),
1947
- children: i
1947
+ children: a
1948
1948
  }
1949
1949
  )
1950
1950
  }
1951
1951
  )
1952
1952
  ]
1953
1953
  }
1954
- ), zr = ({ className: e }) => /* @__PURE__ */ t(B, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t(
1954
+ ), Tr = ({ className: e }) => /* @__PURE__ */ t(G, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t(
1955
1955
  "svg",
1956
1956
  {
1957
1957
  className: e,
@@ -1968,47 +1968,47 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
1968
1968
  }
1969
1969
  )
1970
1970
  }
1971
- ) }), Sr = ({ sharedClassName: e }) => {
1972
- const { categories: r } = se(), { displayedCategoryId: n, changeCategory: o } = Q(), [i, l] = Z(!1), p = () => {
1973
- l(!i);
1974
- }, m = () => {
1975
- l(!1);
1971
+ ) }), zr = ({ sharedClassName: e }) => {
1972
+ const { categories: r } = se(), { displayedCategoryId: n, changeCategory: o } = J(), [a, u] = Y(!1), h = () => {
1973
+ u(!a);
1974
+ }, p = () => {
1975
+ u(!1);
1976
1976
  };
1977
- return /* @__PURE__ */ A(ie, { children: [
1978
- i && /* @__PURE__ */ t(
1977
+ return /* @__PURE__ */ R(ie, { children: [
1978
+ a && /* @__PURE__ */ t(
1979
1979
  "div",
1980
1980
  {
1981
- className: H(e, "inset-0 small:hidden"),
1982
- onClick: m
1981
+ className: D(e, "inset-0 small:hidden"),
1982
+ onClick: p
1983
1983
  }
1984
1984
  ),
1985
- /* @__PURE__ */ A(
1985
+ /* @__PURE__ */ R(
1986
1986
  "div",
1987
1987
  {
1988
- className: H(
1988
+ className: D(
1989
1989
  e,
1990
- he("top-left"),
1990
+ pe("top-left"),
1991
1991
  "flex gap-x-2 small:hidden"
1992
1992
  ),
1993
1993
  children: [
1994
1994
  /* @__PURE__ */ t(
1995
- te,
1995
+ ee,
1996
1996
  {
1997
1997
  shape: "icon",
1998
- color: i ? "primary" : "neutral",
1999
- onClick: p,
2000
- children: /* @__PURE__ */ t(zr, {})
1998
+ color: a ? "primary" : "neutral",
1999
+ onClick: h,
2000
+ children: /* @__PURE__ */ t(Tr, {})
2001
2001
  }
2002
2002
  ),
2003
- i && /* @__PURE__ */ t("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ t("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: L, title: I }) => /* @__PURE__ */ t(
2003
+ a && /* @__PURE__ */ t("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ t("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: L, title: I }) => /* @__PURE__ */ t(
2004
2004
  "li",
2005
2005
  {
2006
- className: H(
2006
+ className: D(
2007
2007
  "cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",
2008
2008
  L === n && "bg-primary/50"
2009
2009
  ),
2010
2010
  onClick: () => {
2011
- o(L), l(!1);
2011
+ o(L), u(!1);
2012
2012
  },
2013
2013
  children: I
2014
2014
  },
@@ -2020,13 +2020,13 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2020
2020
  /* @__PURE__ */ t(
2021
2021
  "div",
2022
2022
  {
2023
- className: H(
2023
+ className: D(
2024
2024
  e,
2025
- pt("top"),
2025
+ mt("top"),
2026
2026
  "w-full overflow-x-auto max-small:hidden"
2027
2027
  ),
2028
2028
  children: /* @__PURE__ */ t("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id: L, title: I }) => /* @__PURE__ */ t(
2029
- te,
2029
+ ee,
2030
2030
  {
2031
2031
  variant: L === n ? "fill" : "ghost",
2032
2032
  onClick: () => o(L),
@@ -2037,115 +2037,115 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2037
2037
  }
2038
2038
  )
2039
2039
  ] });
2040
- }, _r = () => {
2040
+ }, Sr = () => {
2041
2041
  const { hideCategories: e, infiniteCarrousel: r, permanentGallery: n } = ne(), { aspectRatioStyle: o } = se(), {
2042
- items: { length: i },
2043
- slidable: l,
2044
- carrouselItemIndex: p,
2045
- masterItemIndex: m,
2042
+ items: { length: a },
2043
+ slidable: u,
2044
+ carrouselItemIndex: h,
2045
+ masterItemIndex: p,
2046
2046
  prevItem: L,
2047
2047
  nextItem: I,
2048
2048
  showGalleryControls: f,
2049
2049
  enableHotspotsControl: C,
2050
- showHotspots: V,
2051
- toggleHotspots: z,
2052
- showGallery: a,
2053
- toggleGallery: d,
2054
- extendMode: g,
2055
- toggleExtendMode: x,
2056
- shownDetails: w,
2057
- isShowingDetails: u,
2058
- resetShownDetails: c,
2059
- showZoomControls: h,
2050
+ showHotspots: H,
2051
+ toggleHotspots: S,
2052
+ showGallery: s,
2053
+ toggleGallery: m,
2054
+ extendMode: w,
2055
+ toggleExtendMode: y,
2056
+ shownDetails: v,
2057
+ isShowingDetails: l,
2058
+ resetShownDetails: i,
2059
+ showZoomControls: g,
2060
2060
  isZooming: b,
2061
2061
  canZoomIn: k,
2062
- zoomIn: X,
2062
+ zoomIn: O,
2063
2063
  canZoomOut: P,
2064
- zoomOut: y,
2064
+ zoomOut: x,
2065
2065
  resetView: N
2066
- } = Q(), S = T(
2067
- (R) => {
2068
- xr(R) && c();
2066
+ } = J(), _ = z(
2067
+ (d) => {
2068
+ yr(d) && i();
2069
2069
  },
2070
- [c]
2070
+ [i]
2071
2071
  );
2072
- yr(c);
2073
- const _ = "absolute z-overlay";
2074
- return /* @__PURE__ */ A(ie, { children: [
2072
+ br(i);
2073
+ const V = "absolute z-overlay";
2074
+ return /* @__PURE__ */ R(ie, { children: [
2075
2075
  !e && /* @__PURE__ */ t(
2076
- Sr,
2076
+ zr,
2077
2077
  {
2078
- sharedClassName: H(
2079
- _,
2078
+ sharedClassName: D(
2079
+ V,
2080
2080
  "transition-opacity",
2081
2081
  b ? "!pointer-events-none opacity-0" : "opacity-100"
2082
2082
  )
2083
2083
  }
2084
2084
  ),
2085
- l && !b && /* @__PURE__ */ t("div", { className: H(_, he("top-right")), children: /* @__PURE__ */ t(
2086
- Cr,
2085
+ u && !b && /* @__PURE__ */ t("div", { className: D(V, pe("top-right")), children: /* @__PURE__ */ t(
2086
+ xr,
2087
2087
  {
2088
- currentIndex: p,
2089
- maxIndex: i - 1
2088
+ currentIndex: h,
2089
+ maxIndex: a - 1
2090
2090
  }
2091
2091
  ) }),
2092
- l && /* @__PURE__ */ A(ie, { children: [
2092
+ u && /* @__PURE__ */ R(ie, { children: [
2093
2093
  /* @__PURE__ */ t(
2094
- te,
2094
+ ee,
2095
2095
  {
2096
2096
  shape: "icon",
2097
2097
  color: "neutral",
2098
- className: H(
2099
- _,
2100
- he("middle-left"),
2098
+ className: D(
2099
+ V,
2100
+ pe("middle-left"),
2101
2101
  b ? "!pointer-events-none opacity-0" : "opacity-100"
2102
2102
  ),
2103
2103
  onClick: L,
2104
- disabled: !r && m <= 0,
2105
- children: /* @__PURE__ */ t(B, { customizationKey: "CONTROLS_PREV", children: /* @__PURE__ */ t($e, { className: "size-full -scale-x-100" }) })
2104
+ disabled: !r && p <= 0,
2105
+ children: /* @__PURE__ */ t(G, { customizationKey: "CONTROLS_PREV", children: /* @__PURE__ */ t(je, { className: "size-full -scale-x-100" }) })
2106
2106
  }
2107
2107
  ),
2108
2108
  /* @__PURE__ */ t(
2109
- te,
2109
+ ee,
2110
2110
  {
2111
2111
  shape: "icon",
2112
2112
  color: "neutral",
2113
- className: H(
2114
- _,
2115
- he("middle-right"),
2113
+ className: D(
2114
+ V,
2115
+ pe("middle-right"),
2116
2116
  b ? "!pointer-events-none opacity-0" : "opacity-100"
2117
2117
  ),
2118
2118
  onClick: I,
2119
- disabled: !r && m >= i - 1,
2120
- children: /* @__PURE__ */ t(B, { customizationKey: "CONTROLS_NEXT", children: /* @__PURE__ */ t($e, { className: "size-full" }) })
2119
+ disabled: !r && p >= a - 1,
2120
+ children: /* @__PURE__ */ t(G, { customizationKey: "CONTROLS_NEXT", children: /* @__PURE__ */ t(je, { className: "size-full" }) })
2121
2121
  }
2122
2122
  )
2123
2123
  ] }),
2124
- /* @__PURE__ */ A(
2124
+ /* @__PURE__ */ R(
2125
2125
  "div",
2126
2126
  {
2127
- className: H(
2128
- _,
2129
- he("bottom-fullW"),
2127
+ className: D(
2128
+ V,
2129
+ pe("bottom-fullW"),
2130
2130
  "pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
2131
2131
  ),
2132
2132
  children: [
2133
- !n && l && /* @__PURE__ */ A(ie, { children: [
2133
+ !n && u && /* @__PURE__ */ R(ie, { children: [
2134
2134
  /* @__PURE__ */ t(
2135
- te,
2135
+ ee,
2136
2136
  {
2137
2137
  className: f && !b ? "opacity-100" : "!pointer-events-none opacity-0",
2138
2138
  variant: "fill",
2139
- color: a ? "primary" : "neutral",
2139
+ color: s ? "primary" : "neutral",
2140
2140
  shape: "icon",
2141
- onClick: d,
2142
- children: /* @__PURE__ */ t(kr, { className: "size-full" })
2141
+ onClick: m,
2142
+ children: /* @__PURE__ */ t(Er, { className: "size-full" })
2143
2143
  }
2144
2144
  ),
2145
- a && /* @__PURE__ */ t(
2146
- yt,
2145
+ s && /* @__PURE__ */ t(
2146
+ bt,
2147
2147
  {
2148
- className: H(
2148
+ className: D(
2149
2149
  "transition-opacity",
2150
2150
  f && !b ? "opacity-100" : "!pointer-events-none opacity-0",
2151
2151
  // Left & Right gradient mask to fade the gallery
@@ -2155,52 +2155,52 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2155
2155
  }
2156
2156
  )
2157
2157
  ] }),
2158
- /* @__PURE__ */ A("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
2158
+ /* @__PURE__ */ R("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
2159
2159
  C && /* @__PURE__ */ t(
2160
- Tr,
2160
+ Nr,
2161
2161
  {
2162
- className: H(
2162
+ className: D(
2163
2163
  "transition-opacity",
2164
2164
  b ? "!pointer-events-none opacity-0" : "opacity-100"
2165
2165
  ),
2166
- enabled: V,
2167
- onToggle: z,
2168
- children: /* @__PURE__ */ t(Lr, { className: "size-full" })
2166
+ enabled: H,
2167
+ onToggle: S,
2168
+ children: /* @__PURE__ */ t(kr, { className: "size-full" })
2169
2169
  }
2170
2170
  ),
2171
- h && /* @__PURE__ */ A("div", { className: "max-small:hidden", children: [
2171
+ g && /* @__PURE__ */ R("div", { className: "max-small:hidden", children: [
2172
2172
  /* @__PURE__ */ t(
2173
- te,
2173
+ ee,
2174
2174
  {
2175
2175
  className: "rounded-b-none",
2176
2176
  color: "neutral",
2177
2177
  shape: "icon",
2178
2178
  disabled: !k,
2179
- onClick: X,
2180
- children: /* @__PURE__ */ t(Mr, { className: "size-full" })
2179
+ onClick: O,
2180
+ children: /* @__PURE__ */ t(Ir, { className: "size-full" })
2181
2181
  }
2182
2182
  ),
2183
- /* @__PURE__ */ t(bt, { color: "background" }),
2183
+ /* @__PURE__ */ t(vt, { color: "background" }),
2184
2184
  /* @__PURE__ */ t(
2185
- te,
2185
+ ee,
2186
2186
  {
2187
2187
  className: "rounded-t-none",
2188
2188
  color: "neutral",
2189
2189
  shape: "icon",
2190
2190
  disabled: !P,
2191
- onClick: y,
2192
- children: /* @__PURE__ */ t(Ir, { className: "size-full" })
2191
+ onClick: x,
2192
+ children: /* @__PURE__ */ t(Lr, { className: "size-full" })
2193
2193
  }
2194
2194
  )
2195
2195
  ] }),
2196
2196
  /* @__PURE__ */ t(
2197
- te,
2197
+ ee,
2198
2198
  {
2199
2199
  variant: "fill",
2200
- color: g ? "primary" : "neutral",
2200
+ color: w ? "primary" : "neutral",
2201
2201
  shape: "icon",
2202
- onClick: x,
2203
- children: g ? /* @__PURE__ */ t(Nr, { className: "size-full" }) : /* @__PURE__ */ t(Er, { className: "size-full" })
2202
+ onClick: y,
2203
+ children: w ? /* @__PURE__ */ t(Mr, { className: "size-full" }) : /* @__PURE__ */ t(Cr, { className: "size-full" })
2204
2204
  }
2205
2205
  )
2206
2206
  ] })
@@ -2210,55 +2210,55 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2210
2210
  /* @__PURE__ */ t(
2211
2211
  "div",
2212
2212
  {
2213
- className: H(
2214
- _,
2213
+ className: D(
2214
+ V,
2215
2215
  "inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",
2216
- u ? "opacity-100" : "pointer-events-none opacity-0"
2216
+ l ? "opacity-100" : "pointer-events-none opacity-0"
2217
2217
  ),
2218
- onClick: S,
2218
+ onClick: _,
2219
2219
  children: /* @__PURE__ */ t(
2220
2220
  "div",
2221
2221
  {
2222
- className: H(
2222
+ className: D(
2223
2223
  "h-full w-3/5 bg-background transition-transform duration-details",
2224
- u ? "translate-x-0" : "translate-x-full"
2224
+ l ? "translate-x-0" : "translate-x-full"
2225
2225
  ),
2226
- children: !!w && /* @__PURE__ */ A(ie, { children: [
2226
+ children: !!v && /* @__PURE__ */ R(ie, { children: [
2227
2227
  /* @__PURE__ */ t(
2228
- fe,
2228
+ he,
2229
2229
  {
2230
2230
  className: "w-full bg-foreground/65",
2231
2231
  style: o,
2232
- src: w.src,
2232
+ src: v.src,
2233
2233
  imgInPlayerWidthRatio: 0.6
2234
2234
  }
2235
2235
  ),
2236
- /* @__PURE__ */ A(
2236
+ /* @__PURE__ */ R(
2237
2237
  "div",
2238
2238
  {
2239
- className: H(
2239
+ className: D(
2240
2240
  "space-y-1 px-2 py-1 small:p-3",
2241
- g && "large:p-4"
2241
+ w && "large:p-4"
2242
2242
  ),
2243
2243
  children: [
2244
- w.title && /* @__PURE__ */ t(
2244
+ v.title && /* @__PURE__ */ t(
2245
2245
  "span",
2246
2246
  {
2247
- className: H(
2247
+ className: D(
2248
2248
  "text-sm font-semibold small:text-base small:font-bold",
2249
- g && "large:text-lg"
2249
+ w && "large:text-lg"
2250
2250
  ),
2251
- children: w.title
2251
+ children: v.title
2252
2252
  }
2253
2253
  ),
2254
- w.text && /* @__PURE__ */ t(
2254
+ v.text && /* @__PURE__ */ t(
2255
2255
  "p",
2256
2256
  {
2257
- className: H(
2257
+ className: D(
2258
2258
  "text-xs text-foreground/65 small:text-sm",
2259
- g && "large:text-base"
2259
+ w && "large:text-base"
2260
2260
  ),
2261
- children: w.text
2261
+ children: v.text
2262
2262
  }
2263
2263
  )
2264
2264
  ]
@@ -2269,346 +2269,346 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2269
2269
  )
2270
2270
  }
2271
2271
  ),
2272
- (b || u) && /* @__PURE__ */ t(
2273
- ht,
2272
+ (b || l) && /* @__PURE__ */ t(
2273
+ pt,
2274
2274
  {
2275
- className: H(_, he("top-right")),
2275
+ className: D(V, pe("top-right")),
2276
2276
  onClick: N
2277
2277
  }
2278
2278
  )
2279
2279
  ] });
2280
- }, Vr = ({ className: e = "" }) => {
2281
- const { infiniteCarrousel: r, preloadRange: n, isFullScreen: o } = ne(), { aspectRatioStyle: i } = se(), {
2282
- items: l,
2283
- slidable: p,
2284
- carrouselItemIndex: m,
2280
+ }, _r = ({ className: e = "" }) => {
2281
+ const { infiniteCarrousel: r, preloadRange: n, isFullScreen: o } = ne(), { aspectRatioStyle: a } = se(), {
2282
+ items: u,
2283
+ slidable: h,
2284
+ carrouselItemIndex: p,
2285
2285
  setCarrouselItemIndex: L,
2286
2286
  itemIndexCommand: I,
2287
2287
  setItemIndexCommand: f,
2288
2288
  specialCommand: C,
2289
- isRunningSpecialCommand: V,
2290
- finishSpecialCommand: z,
2291
- extendMode: a,
2292
- extendTransition: d
2293
- } = Q(), g = j(null), x = T((v) => {
2294
- if (!g.current)
2295
- throw new Error(`[${v ?? "sliderOrThrow"}] slider.current is null`);
2296
- return g.current;
2297
- }, []), w = j(!1), u = j(null), c = j(null), h = j(null), b = T(() => {
2298
- h.current && cancelAnimationFrame(h.current);
2299
- }, []), k = T(() => {
2300
- const v = x("computeClosestSnapIndex"), s = Array.from(v.children), E = v.scrollLeft, M = s.reduce(
2301
- (D, Y, F) => {
2302
- const $ = Y.offsetLeft;
2303
- return Math.abs($ - E) < Math.abs(s[D].offsetLeft - E) ? F : D;
2289
+ isRunningSpecialCommand: H,
2290
+ finishSpecialCommand: S,
2291
+ extendMode: s,
2292
+ extendTransition: m
2293
+ } = J(), w = j(null), y = z((d) => {
2294
+ if (!w.current)
2295
+ throw new Error(`[${d ?? "sliderOrThrow"}] slider.current is null`);
2296
+ return w.current;
2297
+ }, []), v = j(!1), l = j(null), i = j(null), g = j(null), b = z(() => {
2298
+ g.current && cancelAnimationFrame(g.current);
2299
+ }, []), k = z(() => {
2300
+ const d = y("computeClosestSnapIndex"), T = Array.from(d.children), c = d.scrollLeft;
2301
+ return T.reduce(
2302
+ (M, X, Z) => {
2303
+ const $ = X.offsetLeft;
2304
+ return Math.abs($ - c) < Math.abs(T[M].offsetLeft - c) ? Z : M;
2304
2305
  },
2305
2306
  0
2306
2307
  );
2307
- return C === "first_to_last" ? Xe(M, l.length) : C === "last_to_first" ? Xe(M - 1, l.length) : M;
2308
- }, [C, x, l.length]), X = T(
2309
- (v) => {
2310
- const s = x("setStyleCursor");
2311
- s.style.cursor = v;
2308
+ }, [y]), O = z(
2309
+ (d) => {
2310
+ const T = y("setStyleCursor");
2311
+ T.style.cursor = d;
2312
2312
  },
2313
- [x]
2314
- ), P = T(
2315
- (v) => {
2316
- const s = x("setStyleSnapState");
2317
- v === "mandatory" ? s.style.scrollSnapType = "x mandatory" : s.style.scrollSnapType = "none";
2313
+ [y]
2314
+ ), P = z(
2315
+ (d) => {
2316
+ const T = y("setStyleSnapState");
2317
+ d === "mandatory" ? T.style.scrollSnapType = "x mandatory" : T.style.scrollSnapType = "none";
2318
2318
  },
2319
- [x]
2320
- ), y = T(
2321
- (v, s, E) => {
2319
+ [y]
2320
+ ), x = z(
2321
+ (d, T, c) => {
2322
2322
  b();
2323
- const M = x("scrollToIndex"), D = Array.from(M.children), Y = M.scrollLeft, F = D[v].offsetLeft, $ = (ae) => {
2324
- M.scrollTo({
2325
- left: ae,
2323
+ const E = y("scrollToIndex"), M = Array.from(E.children), X = E.scrollLeft, Z = M[d].offsetLeft, $ = (oe) => {
2324
+ E.scrollTo({
2325
+ left: oe,
2326
2326
  behavior: "instant"
2327
2327
  });
2328
- }, U = () => {
2329
- $(F), P("mandatory"), E?.();
2330
- }, J = Math.abs(Y - F);
2331
- if (J < 1 || s === "instant") {
2332
- U();
2328
+ }, F = () => {
2329
+ $(Z), P("mandatory"), c?.();
2330
+ }, Q = Math.abs(X - Z);
2331
+ if (Q < 1 || T === "instant") {
2332
+ F();
2333
2333
  return;
2334
2334
  }
2335
- const ee = ce(J / 2.5, 300, 1e3), le = (/* @__PURE__ */ new Date()).getTime();
2335
+ const K = ce(Q / 2.5, 300, 1e3), te = (/* @__PURE__ */ new Date()).getTime();
2336
2336
  P("none");
2337
- const oe = () => {
2338
- const ae = () => {
2339
- const be = (/* @__PURE__ */ new Date()).getTime() - le;
2340
- if (be >= ee) {
2341
- U();
2337
+ const ae = () => {
2338
+ const oe = () => {
2339
+ const ve = (/* @__PURE__ */ new Date()).getTime() - te;
2340
+ if (ve >= K) {
2341
+ F();
2342
2342
  return;
2343
2343
  }
2344
- const ke = Math.min(be / ee, 1), ue = xt(ke), ge = ye(Y, F, ue);
2345
- $(ge), oe();
2344
+ const Ee = Math.min(ve / K, 1), ke = yt(Ee), le = be(X, Z, ke);
2345
+ $(le), ae();
2346
2346
  };
2347
- h.current = requestAnimationFrame(ae);
2347
+ g.current = requestAnimationFrame(oe);
2348
2348
  };
2349
- oe();
2349
+ ae();
2350
2350
  },
2351
- [b, x, P]
2352
- ), [N, S] = Z(), _ = !!N;
2353
- O(() => {
2354
- const v = () => {
2351
+ [b, y, P]
2352
+ ), [N, _] = Y(), V = !!N;
2353
+ return W(() => {
2354
+ const d = () => {
2355
2355
  clearTimeout(N);
2356
- const s = setTimeout(() => {
2357
- S(void 0);
2358
- }, ct);
2359
- S(s);
2356
+ const T = setTimeout(() => {
2357
+ _(void 0);
2358
+ }, it);
2359
+ _(T);
2360
2360
  };
2361
- return addEventListener("resize", v), document.addEventListener("fullscreenchange", v), () => {
2362
- removeEventListener("resize", v), document.removeEventListener("fullscreenchange", v);
2361
+ return addEventListener("resize", d), document.addEventListener("fullscreenchange", d), () => {
2362
+ removeEventListener("resize", d), document.removeEventListener("fullscreenchange", d);
2363
2363
  };
2364
- }, [N]), O(() => {
2365
- const v = k();
2366
- Number.isNaN(v) || v !== m && y(m, "instant");
2364
+ }, [N]), W(() => {
2365
+ if (C)
2366
+ return;
2367
+ const d = k();
2368
+ Number.isNaN(d) || d !== p && x(p, "instant");
2367
2369
  }, [
2368
- m,
2369
- y,
2370
+ p,
2370
2371
  k,
2372
+ x,
2373
+ C,
2371
2374
  // - Run the effect when those values change
2372
- l,
2375
+ u,
2373
2376
  N,
2374
2377
  o,
2375
- a,
2376
- d
2377
- ]), O(() => {
2378
- if (!p || V) {
2379
- X("auto");
2378
+ s,
2379
+ m
2380
+ ]), W(() => {
2381
+ if (!h || H) {
2382
+ O("auto");
2380
2383
  return;
2381
2384
  }
2382
- const v = g.current;
2383
- if (!v)
2385
+ const d = w.current;
2386
+ if (!d)
2384
2387
  return;
2385
- X("grab"), P("mandatory");
2386
- const s = (D) => {
2387
- D.button === 0 && (D.preventDefault(), D.stopPropagation(), b(), w.current = !0, u.current = D.pageX - v.offsetLeft, c.current = v.scrollLeft, X("grabbing"));
2388
- }, E = (D) => {
2389
- if (!w.current)
2388
+ O("grab"), P("mandatory");
2389
+ const T = (M) => {
2390
+ M.button === 0 && (M.preventDefault(), M.stopPropagation(), b(), v.current = !0, l.current = M.pageX - d.offsetLeft, i.current = d.scrollLeft, O("grabbing"));
2391
+ }, c = (M) => {
2392
+ if (!v.current)
2390
2393
  return;
2391
- if (u.current === null)
2394
+ if (l.current === null)
2392
2395
  throw new Error("[onMouseMove] startX is null");
2393
2396
  P("none");
2394
- const F = D.pageX - v.offsetLeft - u.current;
2397
+ const Z = M.pageX - d.offsetLeft - l.current;
2395
2398
  requestAnimationFrame(() => {
2396
- if (c.current === null)
2399
+ if (i.current === null)
2397
2400
  throw new Error("[onMouseMove] scrollLeft is null");
2398
- v.scrollLeft = c.current - F;
2401
+ d.scrollLeft = i.current - Z;
2399
2402
  });
2400
- }, M = () => {
2401
- if (!w.current)
2403
+ }, E = () => {
2404
+ if (!v.current)
2402
2405
  return;
2403
- w.current = !1, X("grab");
2404
- const D = k();
2405
- y(D, "smooth");
2406
+ v.current = !1, O("grab");
2407
+ const M = k();
2408
+ x(M, "smooth");
2406
2409
  };
2407
- return v.addEventListener("mousedown", s), document.addEventListener("mousemove", E), document.addEventListener("mouseleave", M), document.addEventListener("mouseup", M), document.addEventListener("contextmenu", M), () => {
2408
- v.removeEventListener("mousedown", s), document.removeEventListener("mousemove", E), document.removeEventListener("mouseleave", M), document.removeEventListener("mouseup", M), document.removeEventListener("contextmenu", M);
2410
+ return d.addEventListener("mousedown", T), document.addEventListener("mousemove", c), document.addEventListener("mouseleave", E), document.addEventListener("mouseup", E), document.addEventListener("contextmenu", E), () => {
2411
+ d.removeEventListener("mousedown", T), document.removeEventListener("mousemove", c), document.removeEventListener("mouseleave", E), document.removeEventListener("mouseup", E), document.removeEventListener("contextmenu", E);
2409
2412
  };
2410
2413
  }, [
2411
2414
  b,
2412
2415
  k,
2413
- V,
2414
- y,
2415
- X,
2416
+ H,
2417
+ x,
2418
+ O,
2416
2419
  P,
2417
- p
2418
- ]), O(() => {
2419
- if (d || _)
2420
+ h
2421
+ ]), W(() => {
2422
+ if (m || V)
2420
2423
  return;
2421
- const v = g.current;
2422
- if (!v)
2424
+ const d = w.current;
2425
+ if (!d)
2423
2426
  return;
2424
- const s = () => {
2425
- const E = k();
2426
- Number.isNaN(E) || (L(E), E === I && f(null));
2427
+ const T = () => {
2428
+ const c = k();
2429
+ Number.isNaN(c) || (L(c), c === I && f(null));
2427
2430
  };
2428
- return v.addEventListener("scroll", s), () => {
2429
- v.removeEventListener("scroll", s);
2431
+ return d.addEventListener("scroll", T), () => {
2432
+ d.removeEventListener("scroll", T);
2430
2433
  };
2431
2434
  }, [
2432
2435
  k,
2433
- d,
2436
+ m,
2434
2437
  V,
2435
- _,
2436
2438
  I,
2437
- l.length,
2438
2439
  L,
2439
2440
  f
2440
- ]), O(() => {
2441
+ ]), W(() => {
2441
2442
  if (I === null)
2442
2443
  return;
2443
- const v = () => z();
2444
+ const d = () => {
2445
+ setTimeout(() => {
2446
+ f(null), S();
2447
+ }, 75);
2448
+ };
2444
2449
  switch (C) {
2445
2450
  case "first_to_last":
2446
- y(l.length, "instant"), y(l.length - 1, "smooth", v);
2451
+ x(u.length - 1, "instant", d);
2447
2452
  break;
2448
2453
  case "last_to_first":
2449
- y(0, "instant"), y(1, "smooth", v);
2454
+ x(0, "instant", d);
2450
2455
  break;
2451
2456
  case "instant":
2452
- y(I, "instant", v);
2457
+ x(I, "instant", d);
2453
2458
  break;
2454
2459
  default:
2455
- y(I, "smooth");
2460
+ x(I, "smooth");
2456
2461
  break;
2457
2462
  }
2458
2463
  }, [
2459
2464
  C,
2460
- z,
2465
+ S,
2461
2466
  I,
2462
- l.length,
2463
- y
2464
- ]);
2465
- const R = () => /* @__PURE__ */ t("div", { className: "h-full", style: i });
2466
- return /* @__PURE__ */ A(
2467
+ u.length,
2468
+ x,
2469
+ f
2470
+ ]), /* @__PURE__ */ R(
2467
2471
  "div",
2468
2472
  {
2469
- className: H(
2473
+ className: D(
2470
2474
  "relative overflow-hidden rounded-carrousel transition-radius",
2471
2475
  e
2472
2476
  ),
2473
- style: i,
2477
+ style: a,
2474
2478
  children: [
2475
- /* @__PURE__ */ A(
2479
+ /* @__PURE__ */ t(
2476
2480
  "div",
2477
2481
  {
2478
- ref: g,
2479
- className: `flex size-full ${p ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2480
- children: [
2481
- C === "last_to_first" && /* @__PURE__ */ t(R, {}),
2482
- l.map((v, s) => {
2483
- const E = s === m, M = s === 0, D = s === l.length - 1, Y = (() => {
2484
- if (C === "first_to_last" && M)
2485
- return {
2486
- transform: `translateX(${100 * l.length}%)`
2487
- };
2488
- if (C === "last_to_first" && D)
2489
- return {
2490
- transform: `translateX(-${100 * l.length}%)`
2491
- };
2492
- })();
2493
- let F = Math.abs(s - m) <= n;
2494
- F ||= s === I, r && (F ||= m < n && l.length - s <= n - m, F ||= m >= l.length - n && s <= n - (l.length - m));
2495
- const $ = (() => {
2496
- let U;
2497
- switch (v.type) {
2498
- case "360":
2499
- U = v.images[0].src;
2500
- break;
2501
- case "image":
2502
- U = v.src;
2503
- break;
2504
- case "video":
2505
- U = v.poster ?? "video";
2506
- break;
2507
- case "custom":
2508
- U = "custom";
2509
- break;
2510
- }
2511
- return `${s}_${U}`;
2512
- })();
2513
- return /* @__PURE__ */ t(
2514
- "div",
2515
- {
2516
- className: H(
2517
- "h-full bg-foreground/35",
2518
- m === s && "z-1"
2519
- // Give high-ground to the shown item (to avoid 1px vertical line)
2520
- ),
2521
- style: { ...i, ...Y },
2522
- children: F && /* @__PURE__ */ t(br, { index: s, item: v, isShown: E })
2523
- },
2524
- $
2525
- );
2526
- }),
2527
- C === "first_to_last" && /* @__PURE__ */ t(R, {})
2528
- ]
2482
+ ref: w,
2483
+ className: `flex size-full ${h ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
2484
+ children: u.map((d, T) => {
2485
+ const c = T === p, E = T === 0, M = T === u.length - 1, X = (() => {
2486
+ if (C === "first_to_last" && E)
2487
+ return {
2488
+ transform: `translateX(${100 * u.length}%)`
2489
+ };
2490
+ if (C === "last_to_first" && M)
2491
+ return {
2492
+ transform: `translateX(-${100 * u.length}%)`
2493
+ };
2494
+ })();
2495
+ let Z = Math.abs(T - p) <= n;
2496
+ Z ||= T === I, r && (Z ||= p < n && u.length - T <= n - p, Z ||= p >= u.length - n && T <= n - (u.length - p));
2497
+ const $ = (() => {
2498
+ let F;
2499
+ switch (d.type) {
2500
+ case "360":
2501
+ F = d.images[0].src;
2502
+ break;
2503
+ case "image":
2504
+ F = d.src;
2505
+ break;
2506
+ case "video":
2507
+ F = d.poster ?? "video";
2508
+ break;
2509
+ case "custom":
2510
+ F = "custom";
2511
+ break;
2512
+ }
2513
+ return `${T}_${F}`;
2514
+ })();
2515
+ return /* @__PURE__ */ t(
2516
+ "div",
2517
+ {
2518
+ className: D(
2519
+ "h-full bg-foreground/35",
2520
+ p === T && "z-1"
2521
+ // Give high-ground to the shown item (to avoid 1px vertical line)
2522
+ ),
2523
+ style: { ...a, ...X },
2524
+ children: Z && /* @__PURE__ */ t(vr, { index: T, item: d, isShown: c })
2525
+ },
2526
+ $
2527
+ );
2528
+ })
2529
2529
  }
2530
2530
  ),
2531
- /* @__PURE__ */ t(_r, {})
2531
+ /* @__PURE__ */ t(Sr, {})
2532
2532
  ]
2533
2533
  }
2534
2534
  );
2535
- }, Pr = () => {
2535
+ }, Vr = () => {
2536
2536
  const { permanentGallery: e } = ne(), { aspectRatioStyle: r } = se(), {
2537
2537
  prevItem: n,
2538
2538
  nextItem: o,
2539
- isShowingDetails: i,
2540
- resetShownDetails: l,
2541
- extendMode: p,
2542
- disableExtendMode: m,
2539
+ isShowingDetails: a,
2540
+ resetShownDetails: u,
2541
+ extendMode: h,
2542
+ disableExtendMode: p,
2543
2543
  isZooming: L,
2544
2544
  resetZoom: I,
2545
2545
  fakeFullScreen: f
2546
- } = Q(), C = j(null), V = j(null), z = j(null);
2547
- return O(() => {
2548
- if (!p)
2546
+ } = J(), C = j(null), H = j(null), S = j(null);
2547
+ return W(() => {
2548
+ if (!h)
2549
2549
  return;
2550
- const a = C.current, d = V.current, g = z.current;
2551
- if (!a || !d || !g)
2550
+ const s = C.current, m = H.current, w = S.current;
2551
+ if (!s || !m || !w)
2552
2552
  return;
2553
- let x = !1;
2554
- const w = (h) => [a, d, g].includes(h.target), u = (h) => {
2555
- x = w(h);
2556
- }, c = (h) => {
2557
- x && (w(h) && m(), x = !1);
2553
+ let y = !1;
2554
+ const v = (g) => [s, m, w].includes(g.target), l = (g) => {
2555
+ y = v(g);
2556
+ }, i = (g) => {
2557
+ y && (v(g) && p(), y = !1);
2558
2558
  };
2559
- return a.addEventListener("mousedown", u), a.addEventListener("mouseup", c), () => {
2560
- a.removeEventListener("mousedown", u), a.removeEventListener("mouseup", c);
2559
+ return s.addEventListener("mousedown", l), s.addEventListener("mouseup", i), () => {
2560
+ s.removeEventListener("mousedown", l), s.removeEventListener("mouseup", i);
2561
2561
  };
2562
- }, [m, p]), O(() => {
2563
- const a = (d) => {
2564
- d.key === "Escape" && (L ? I() : i ? l() : m());
2562
+ }, [p, h]), W(() => {
2563
+ const s = (m) => {
2564
+ m.key === "Escape" && (L ? I() : a ? u() : p());
2565
2565
  };
2566
- return addEventListener("keydown", a), () => {
2567
- removeEventListener("keydown", a);
2566
+ return addEventListener("keydown", s), () => {
2567
+ removeEventListener("keydown", s);
2568
2568
  };
2569
2569
  }, [
2570
- m,
2571
- i,
2570
+ p,
2571
+ a,
2572
2572
  L,
2573
2573
  o,
2574
2574
  n,
2575
- l,
2575
+ u,
2576
2576
  I
2577
- ]), /* @__PURE__ */ A(
2577
+ ]), /* @__PURE__ */ R(
2578
2578
  "div",
2579
2579
  {
2580
2580
  ref: C,
2581
- className: H(
2581
+ className: D(
2582
2582
  f ? "fixed inset-0 z-overlay" : "relative",
2583
- p && "flex size-full items-center justify-center bg-foreground/75"
2583
+ h && "flex size-full items-center justify-center bg-foreground/75"
2584
2584
  ),
2585
2585
  children: [
2586
- /* @__PURE__ */ A(
2586
+ /* @__PURE__ */ R(
2587
2587
  "div",
2588
2588
  {
2589
- ref: V,
2590
- className: p ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
2589
+ ref: H,
2590
+ className: h ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
2591
2591
  children: [
2592
2592
  /* @__PURE__ */ t(
2593
2593
  "div",
2594
2594
  {
2595
- ref: z,
2596
- className: H(
2597
- p && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2595
+ ref: S,
2596
+ className: D(
2597
+ h && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
2598
2598
  ),
2599
2599
  style: r,
2600
- children: /* @__PURE__ */ t(Vr, { className: H(p && "h-full min-w-0") })
2600
+ children: /* @__PURE__ */ t(_r, { className: D(h && "h-full min-w-0") })
2601
2601
  }
2602
2602
  ),
2603
- e && /* @__PURE__ */ t(yt, { className: H(p && "my-2 shrink-0 small:my-4") })
2603
+ e && /* @__PURE__ */ t(bt, { className: D(h && "my-2 shrink-0 small:my-4") })
2604
2604
  ]
2605
2605
  }
2606
2606
  ),
2607
- p && /* @__PURE__ */ t(
2608
- ht,
2607
+ h && /* @__PURE__ */ t(
2608
+ pt,
2609
2609
  {
2610
2610
  className: "absolute right-2 top-2 small:right-4 small:top-4",
2611
- onClick: m
2611
+ onClick: p
2612
2612
  }
2613
2613
  )
2614
2614
  ]
@@ -2618,84 +2618,84 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2618
2618
  const { emitEvent: e, compositionUrl: r } = ne(), {
2619
2619
  data: n,
2620
2620
  status: o,
2621
- isSuccess: i,
2622
- error: l
2623
- } = Wt(r);
2624
- return O(() => {
2625
- l ? e(Ke, l) : o === "fetching" ? e(Be, r) : i && e(qe, n);
2626
- }, [n, r, e, l, i, o]), l ? /* @__PURE__ */ t(
2627
- ft,
2621
+ isSuccess: a,
2622
+ error: u
2623
+ } = At(r);
2624
+ return W(() => {
2625
+ u ? e(qe, u) : o === "fetching" ? e(Ge, r) : a && e(Be, n);
2626
+ }, [n, r, e, u, a, o]), u ? /* @__PURE__ */ t(
2627
+ ht,
2628
2628
  {
2629
2629
  className: "aspect-square text-foreground/70",
2630
2630
  text: "Player could not be loaded"
2631
2631
  }
2632
- ) : i ? /* @__PURE__ */ t(Xt, { composition: n, children: /* @__PURE__ */ t(Yt, { children: /* @__PURE__ */ t(Pr, {}) }) }) : /* @__PURE__ */ A("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
2632
+ ) : a ? /* @__PURE__ */ t(Ot, { composition: n, children: /* @__PURE__ */ t(Zt, { children: /* @__PURE__ */ t(Vr, {}) }) }) : /* @__PURE__ */ R("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
2633
2633
  /* @__PURE__ */ t("div", { className: "animate-pulse text-xl", children: "Loading Player" }),
2634
- /* @__PURE__ */ t(gt, { color: "foreground" })
2634
+ /* @__PURE__ */ t(ft, { color: "foreground" })
2635
2635
  ] });
2636
- }, Dr = ({
2636
+ }, Pr = ({
2637
2637
  compositionUrl: e,
2638
- hideCategories: r = Nt,
2639
- infiniteCarrousel: n = Tt,
2640
- permanentGallery: o = zt,
2641
- mediaLoadStrategy: i = St,
2642
- minMediaWidth: l = _t,
2643
- maxMediaWidth: p = Vt,
2644
- preloadRange: m = Pt,
2638
+ hideCategories: r = Mt,
2639
+ infiniteCarrousel: n = Nt,
2640
+ permanentGallery: o = Tt,
2641
+ mediaLoadStrategy: a = zt,
2642
+ minMediaWidth: u = St,
2643
+ maxMediaWidth: h = _t,
2644
+ preloadRange: p = Vt,
2645
2645
  preventFullScreen: L = Ht,
2646
- eventPrefix: I = st,
2647
- reverse360: f = Dt,
2646
+ eventPrefix: I = ot,
2647
+ reverse360: f = Pt,
2648
2648
  children: C
2649
2649
  // NOTE: use to customize the player, not to display the content
2650
2650
  }) => {
2651
- const V = j(null), [z, a] = Z(0.5), [d, g] = Z(!1), x = T(
2652
- (c, h) => {
2653
- const b = I + c, k = new CustomEvent(b, { detail: h });
2651
+ const H = j(null), [S, s] = Y(0.5), [m, w] = Y(!1), y = z(
2652
+ (i, g) => {
2653
+ const b = I + i, k = new CustomEvent(b, { detail: g });
2654
2654
  document.dispatchEvent(k);
2655
2655
  },
2656
2656
  [I]
2657
2657
  );
2658
- O(() => {
2659
- if (d) {
2660
- a(1);
2658
+ W(() => {
2659
+ if (m) {
2660
+ s(1);
2661
2661
  return;
2662
2662
  }
2663
- if (!V.current)
2663
+ if (!H.current)
2664
2664
  return;
2665
- const c = V.current, h = () => {
2666
- const b = window.innerWidth, k = c.clientWidth;
2667
- a(k / b);
2665
+ const i = H.current, g = () => {
2666
+ const b = window.innerWidth, k = i.clientWidth;
2667
+ s(k / b);
2668
2668
  };
2669
- return h(), addEventListener("resize", h), () => {
2670
- removeEventListener("resize", h);
2669
+ return g(), addEventListener("resize", g), () => {
2670
+ removeEventListener("resize", g);
2671
2671
  };
2672
- }, [d]), O(() => {
2672
+ }, [m]), W(() => {
2673
2673
  if (L)
2674
2674
  return;
2675
- const c = V.current;
2676
- if (!c)
2675
+ const i = H.current;
2676
+ if (!i)
2677
2677
  throw new Error("Wrapper not found");
2678
- const h = () => {
2678
+ const g = () => {
2679
2679
  const { fullscreenElement: b } = document;
2680
- g(
2681
- b === c || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
2680
+ w(
2681
+ b === i || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
2682
2682
  b?.localName === Pe
2683
2683
  );
2684
2684
  };
2685
- return document.addEventListener("fullscreenchange", h), () => {
2686
- document.removeEventListener("fullscreenchange", h);
2685
+ return document.addEventListener("fullscreenchange", g), () => {
2686
+ document.removeEventListener("fullscreenchange", g);
2687
2687
  };
2688
2688
  }, [L]);
2689
- const w = T(async () => {
2690
- const c = V.current;
2691
- if (!c)
2689
+ const v = z(async () => {
2690
+ const i = H.current;
2691
+ if (!i)
2692
2692
  throw new Error("Wrapper not found");
2693
2693
  try {
2694
- return await c.requestFullscreen(), !0;
2694
+ return await i.requestFullscreen(), !0;
2695
2695
  } catch {
2696
2696
  return !1;
2697
2697
  }
2698
- }, []), u = T(async () => {
2698
+ }, []), l = z(async () => {
2699
2699
  try {
2700
2700
  return await document.exitFullscreen(), !0;
2701
2701
  } catch {
@@ -2703,28 +2703,28 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2703
2703
  }
2704
2704
  }, []);
2705
2705
  return /* @__PURE__ */ t(
2706
- Ot,
2706
+ Wt,
2707
2707
  {
2708
2708
  compositionUrl: e,
2709
2709
  hideCategories: r,
2710
2710
  infiniteCarrousel: n,
2711
2711
  permanentGallery: o,
2712
- mediaLoadStrategy: i,
2713
- minMediaWidth: l,
2714
- maxMediaWidth: p,
2715
- preloadRange: m,
2712
+ mediaLoadStrategy: a,
2713
+ minMediaWidth: u,
2714
+ maxMediaWidth: h,
2715
+ preloadRange: p,
2716
2716
  preventFullScreen: L,
2717
2717
  reverse360: f,
2718
- emitEvent: x,
2719
- playerInViewportWidthRatio: z,
2720
- isFullScreen: d,
2721
- requestFullscreen: w,
2722
- exitFullscreen: u,
2723
- children: /* @__PURE__ */ A(Zt, { children: [
2718
+ emitEvent: y,
2719
+ playerInViewportWidthRatio: S,
2720
+ isFullScreen: m,
2721
+ requestFullscreen: v,
2722
+ exitFullscreen: l,
2723
+ children: /* @__PURE__ */ R(Xt, { children: [
2724
2724
  /* @__PURE__ */ t(
2725
2725
  "div",
2726
2726
  {
2727
- ref: V,
2727
+ ref: H,
2728
2728
  className: "select-none text-foreground",
2729
2729
  style: {
2730
2730
  "--background": "var(--cc-webplayer-background, 0 0% 100%)",
@@ -2745,23 +2745,23 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2745
2745
  ] })
2746
2746
  }
2747
2747
  );
2748
- }, Rr = ({ children: e, index: r, thumbnailSrc: n }) => {
2749
- const { registerCustomMedia: o, unregisterCustomMedia: i } = ve();
2750
- return O(() => {
2748
+ }, Dr = ({ children: e, index: r, thumbnailSrc: n }) => {
2749
+ const { registerCustomMedia: o, unregisterCustomMedia: a } = ge();
2750
+ return W(() => {
2751
2751
  if (!e)
2752
2752
  return;
2753
- const l = o({
2753
+ const u = o({
2754
2754
  Media: e,
2755
2755
  index: r,
2756
2756
  thumbnailSrc: n
2757
2757
  });
2758
2758
  return () => {
2759
- i(l);
2759
+ a(u);
2760
2760
  };
2761
- }, [e, i, r, o, n]), null;
2762
- }, Gr = (e) => He() ? /* @__PURE__ */ t(Rr, { ...e }) : /* @__PURE__ */ t("slot", {}), Ar = ({ name: e, children: r }) => {
2763
- const { registerIconConfig: n, unregisterIconConfig: o } = ve();
2764
- return O(() => {
2761
+ }, [e, a, r, o, n]), null;
2762
+ }, Ur = (e) => De() ? /* @__PURE__ */ t(Dr, { ...e }) : /* @__PURE__ */ t("slot", {}), Rr = ({ name: e, children: r }) => {
2763
+ const { registerIconConfig: n, unregisterIconConfig: o } = ge();
2764
+ return W(() => {
2765
2765
  if (r)
2766
2766
  return n(e, {
2767
2767
  Icon: r
@@ -2769,112 +2769,112 @@ const Cr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ A("div", { clas
2769
2769
  o(e);
2770
2770
  };
2771
2771
  }, [r, e, n, o]), null;
2772
- }, Br = (e) => He() ? /* @__PURE__ */ t(Ar, { ...e }) : /* @__PURE__ */ t("slot", {}), Wr = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-20{height:5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:h-28{height:7rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:.75rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-4{padding:1rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
2773
- function Or(e) {
2772
+ }, Gr = (e) => De() ? /* @__PURE__ */ t(Rr, { ...e }) : /* @__PURE__ */ t("slot", {}), Ar = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-20{height:5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:h-28{height:7rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:.75rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-4{padding:1rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
2773
+ function Wr(e) {
2774
2774
  return e.replace(
2775
2775
  /([a-z0-9])([A-Z])/g,
2776
2776
  (r, n, o) => `${n}-${o.toLowerCase()}`
2777
2777
  );
2778
2778
  }
2779
- function Re(e) {
2779
+ function Ae(e) {
2780
2780
  return Object.entries(e).reduce((r, [n, o]) => {
2781
2781
  if (o !== void 0) {
2782
- const i = Or(n);
2783
- r[i] = o.toString();
2782
+ const a = Wr(n);
2783
+ r[a] = o.toString();
2784
2784
  }
2785
2785
  return r;
2786
2786
  }, {});
2787
2787
  }
2788
- const qr = (e) => /* @__PURE__ */ A(ie, { children: [
2789
- /* @__PURE__ */ t("style", { children: Wr }),
2790
- /* @__PURE__ */ t(Dr, { ...e })
2791
- ] }), Xr = (e) => Re(e), Zr = (e) => Re(e), Yr = (e) => Re(e), Kr = ({
2788
+ const Br = (e) => /* @__PURE__ */ R(ie, { children: [
2789
+ /* @__PURE__ */ t("style", { children: Ar }),
2790
+ /* @__PURE__ */ t(Pr, { ...e })
2791
+ ] }), Or = (e) => Ae(e), Xr = (e) => Ae(e), Zr = (e) => Ae(e), qr = ({
2792
2792
  onCompositionLoading: e,
2793
2793
  onCompositionLoaded: r,
2794
2794
  onCompositionLoadError: n,
2795
2795
  onItemChange: o,
2796
- onExtendModeOn: i,
2797
- onExtendModeOff: l,
2798
- onHotspotsOn: p,
2799
- onHotspotsOff: m,
2796
+ onExtendModeOn: a,
2797
+ onExtendModeOff: u,
2798
+ onHotspotsOn: h,
2799
+ onHotspotsOff: p,
2800
2800
  onGalleryOpen: L,
2801
2801
  onGalleryClose: I,
2802
2802
  className: f,
2803
2803
  style: C = {},
2804
- children: V,
2805
- ...z
2804
+ children: H,
2805
+ ...S
2806
2806
  }) => {
2807
- const a = re(() => {
2808
- const d = Xr(z);
2809
- return f && Object.assign(d, { class: f }), d;
2810
- }, [f, z]);
2811
- return O(() => {
2812
- const d = z.eventPrefix ?? st, g = (u) => `${d}${u}`, x = {
2813
- [Be]: e,
2814
- [qe]: r,
2815
- [Ke]: n,
2816
- [Je]: o,
2817
- [Qe]: i,
2818
- [et]: l,
2807
+ const s = re(() => {
2808
+ const m = Or(S);
2809
+ return f && Object.assign(m, { class: f }), m;
2810
+ }, [f, S]);
2811
+ return W(() => {
2812
+ const m = S.eventPrefix ?? ot, w = (l) => `${m}${l}`, y = {
2813
+ [Ge]: e,
2814
+ [Be]: r,
2815
+ [qe]: n,
2816
+ [Ke]: o,
2817
+ [Je]: a,
2818
+ [Qe]: u,
2819
+ [et]: h,
2819
2820
  [tt]: p,
2820
- [rt]: m,
2821
- [nt]: L,
2822
- [ot]: I
2823
- }, w = /* @__PURE__ */ new Map();
2824
- return Object.entries(x).forEach(([u, c]) => {
2825
- if (!c)
2821
+ [rt]: L,
2822
+ [nt]: I
2823
+ }, v = /* @__PURE__ */ new Map();
2824
+ return Object.entries(y).forEach(([l, i]) => {
2825
+ if (!i)
2826
2826
  return;
2827
- const h = g(u), b = (k) => c(k.detail);
2828
- w.set(h, b), document.addEventListener(h, b);
2827
+ const g = w(l), b = (k) => i(k.detail);
2828
+ v.set(g, b), document.addEventListener(g, b);
2829
2829
  }), () => {
2830
- w.forEach((u, c) => {
2831
- document.removeEventListener(c, u);
2830
+ v.forEach((l, i) => {
2831
+ document.removeEventListener(i, l);
2832
2832
  });
2833
2833
  };
2834
2834
  }, [
2835
- z.eventPrefix,
2835
+ S.eventPrefix,
2836
2836
  e,
2837
2837
  r,
2838
2838
  n,
2839
2839
  o,
2840
- i,
2841
- l,
2840
+ a,
2841
+ u,
2842
+ h,
2842
2843
  p,
2843
- m,
2844
2844
  L,
2845
2845
  I
2846
- ]), /* @__PURE__ */ t("cc-webplayer", { style: { display: "block", ...C }, ...a, children: V });
2847
- }, Jr = ({ children: e, ...r }) => {
2848
- const n = Zr(r);
2846
+ ]), /* @__PURE__ */ t("cc-webplayer", { style: { display: "block", ...C }, ...s, children: H });
2847
+ }, Kr = ({ children: e, ...r }) => {
2848
+ const n = Xr(r);
2849
2849
  return /* @__PURE__ */ t("cc-webplayer-custom-media", { ...n, children: e });
2850
- }, Qr = ({
2850
+ }, Jr = ({
2851
2851
  children: e,
2852
2852
  ...r
2853
2853
  }) => {
2854
- const n = Yr(r);
2854
+ const n = Zr(r);
2855
2855
  return /* @__PURE__ */ t("cc-webplayer-icon", { ...n, children: e });
2856
2856
  };
2857
2857
  export {
2858
- st as D,
2859
- Be as E,
2860
- qr as W,
2861
- Gr as a,
2862
- Br as b,
2863
- Ur as c,
2858
+ ot as D,
2859
+ Ge as E,
2860
+ Br as W,
2861
+ Ur as a,
2862
+ Gr as b,
2863
+ $r as c,
2864
2864
  Pe as d,
2865
- Ue as e,
2866
- Ge as f,
2867
- Kr as g,
2868
- Jr as h,
2869
- Qr as i,
2870
- qe as j,
2871
- Ke as k,
2872
- Je as l,
2873
- Qe as m,
2874
- et as n,
2875
- tt as o,
2876
- rt as p,
2877
- nt as q,
2878
- ot as r,
2879
- $r as s
2865
+ $e as e,
2866
+ Ue as f,
2867
+ qr as g,
2868
+ Kr as h,
2869
+ Jr as i,
2870
+ Be as j,
2871
+ qe as k,
2872
+ Ke as l,
2873
+ Je as m,
2874
+ Qe as n,
2875
+ et as o,
2876
+ tt as p,
2877
+ rt as q,
2878
+ nt as r,
2879
+ jr as s
2880
2880
  };