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