@instructure/studio-player 0.2.9 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
- import './index-BEdzBQV0.css';var Ke = Object.defineProperty;
1
+ import './index-DAULLpyh.css';var Ke = Object.defineProperty;
2
2
  var De = (e, n, o) => n in e ? Ke(e, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[n] = o;
3
3
  var N = (e, n, o) => De(e, typeof n != "symbol" ? n + "" : n, o);
4
4
  import { jsx as t, jsxs as s, Fragment as ee } from "react/jsx-runtime";
5
- import { createContext as te, useContext as P, useState as M, useCallback as p, useEffect as E, useMemo as Z, useRef as ve } from "react";
6
- import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as ze, Track as je, Captions as Ue, usePlaybackRateOptions as qe, useCaptionOptions as We, useVideoQualityOptions as Ge, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Qe, Poster as Ye, Time as re, TimeSlider as A, MuteButton as Je, VolumeSlider as z, MediaPlayer as Xe, MediaProvider as et } from "@vidstack/react";
7
- import { initReactI18next as tt, useTranslation as b } from "react-i18next";
5
+ import { createContext as te, useContext as x, useState as M, useCallback as p, useEffect as R, useMemo as Z, useRef as ve } from "react";
6
+ import { useMediaPlayer as q, Spinner as Y, useMediaRemote as W, useMediaState as _, isTrackCaptionKind as ze, Track as Ue, Captions as je, usePlaybackRateOptions as qe, useCaptionOptions as We, useVideoQualityOptions as Ge, useMediaStore as Ce, FullscreenButton as ge, PlayButton as Qe, Poster as Ye, Time as re, TimeSlider as A, MuteButton as Xe, VolumeSlider as z, MediaPlayer as Je, MediaProvider as et } from "@vidstack/react";
7
+ import { initReactI18next as tt, useTranslation as v } from "react-i18next";
8
8
  import nt from "i18next";
9
9
  import ot from "i18next-resources-to-backend";
10
- import { useFloating as be, autoUpdate as ke, flip as ye, arrow as we, useDismiss as Le, useInteractions as Pe, FloatingFocusManager as it, FloatingArrow as xe, shift as at, offset as st } from "@floating-ui/react";
10
+ import { useFloating as be, autoUpdate as we, flip as ke, arrow as ye, useDismiss as Le, useInteractions as xe, FloatingFocusManager as it, FloatingArrow as Pe, shift as at, offset as st } from "@floating-ui/react";
11
11
  const ct = (e, n, o) => {
12
12
  const i = e[n];
13
13
  return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((a, c) => {
@@ -23,7 +23,7 @@ const ct = (e, n, o) => {
23
23
  };
24
24
  nt.use(tt).use(
25
25
  ot(
26
- (e) => ct(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-DRnzP2ly.js"), "./locales/kl.json": () => import("./kl-DAr1HilW.js") }), `./locales/${e}.json`, 3)
26
+ (e) => ct(/* @__PURE__ */ Object.assign({ "./locales/en.json": () => import("./en-BlhWGmnp.js"), "./locales/kl.json": () => import("./kl-BRha3TKE.js") }), `./locales/${e}.json`, 3)
27
27
  )
28
28
  ).init({
29
29
  fallbackLng: "en",
@@ -41,8 +41,8 @@ function lt({
41
41
  }) {
42
42
  return /* @__PURE__ */ t(Ne.Provider, { value: n, children: e });
43
43
  }
44
- function v() {
45
- const e = P(Ne);
44
+ function C() {
45
+ const e = x(Ne);
46
46
  if (!e)
47
47
  throw new Error(
48
48
  "useStudioPlayerContext must be used within a StudioPlayerContextProvider"
@@ -61,11 +61,11 @@ function rt({
61
61
  onInteractivePinClick: u,
62
62
  interactiveMenuElements: m,
63
63
  darkMode: h,
64
- children: C,
65
- forceComments: w,
66
- disableCaptionSettings: y
64
+ children: g,
65
+ forceComments: y,
66
+ disableCaptionSettings: k
67
67
  }) {
68
- const g = {
68
+ const b = {
69
69
  hideFullScreen: e,
70
70
  comments: n,
71
71
  annotations: o,
@@ -79,13 +79,13 @@ function rt({
79
79
  hasComments: n.length > 0,
80
80
  hasAnnotations: o.length > 0,
81
81
  hasQuizmarkers: i.length > 0,
82
- forceComments: w,
83
- disableCaptionSettings: y
82
+ forceComments: y,
83
+ disableCaptionSettings: k
84
84
  };
85
- return /* @__PURE__ */ t(Me.Provider, { value: g, children: C });
85
+ return /* @__PURE__ */ t(Me.Provider, { value: b, children: g });
86
86
  }
87
87
  function S() {
88
- const e = P(Me);
88
+ const e = x(Me);
89
89
  if (!e)
90
90
  throw new Error(
91
91
  "useStudioPlayerPropsContext must be used within a StudioPlayerPropsContextProvider"
@@ -103,7 +103,7 @@ const ut = "_annotation-overlay_1kxzn_1", dt = {
103
103
  };
104
104
  };
105
105
  function ht({ annotations: e }) {
106
- const n = q(), o = v(), i = S(), [a, c] = M(
106
+ const n = q(), o = C(), i = S(), [a, c] = M(
107
107
  null
108
108
  ), l = p(
109
109
  (m) => {
@@ -113,17 +113,17 @@ function ht({ annotations: e }) {
113
113
  ), u = () => {
114
114
  i.interactive || (n == null || n.play(), o.enableInteractions()), c(null);
115
115
  };
116
- return E(() => {
116
+ return R(() => {
117
117
  if (!n)
118
118
  return;
119
119
  const m = [];
120
120
  for (const h of e) {
121
- const C = mt(h, l);
122
- n.addEventListener("time-update", C), m.push(C);
121
+ const g = mt(h, l);
122
+ n.addEventListener("time-update", g), m.push(g);
123
123
  }
124
124
  if (a) {
125
125
  const h = e.find(
126
- (C) => C.id === a.id
126
+ (g) => g.id === a.id
127
127
  );
128
128
  h ? c(h) : (c(null), o.enableInteractions());
129
129
  }
@@ -133,7 +133,7 @@ function ht({ annotations: e }) {
133
133
  };
134
134
  }, [n, e]), a ? /* @__PURE__ */ t("div", { className: dt.annotationOverlay, children: a.render(u) }) : null;
135
135
  }
136
- const pt = "_media-buffering-indicator_1fwjr_1", _t = "_media-buffering-spinner_1fwjr_17", ft = "_media-buffering-spin_1fwjr_17", vt = "_media-buffering-track_1fwjr_22", Ct = "_media-buffering-track-fill_1fwjr_27", j = {
136
+ const pt = "_media-buffering-indicator_1fwjr_1", _t = "_media-buffering-spinner_1fwjr_17", ft = "_media-buffering-spin_1fwjr_17", vt = "_media-buffering-track_1fwjr_22", Ct = "_media-buffering-track-fill_1fwjr_27", U = {
137
137
  "media-buffering-indicator": "_media-buffering-indicator_1fwjr_1",
138
138
  mediaBufferingIndicator: pt,
139
139
  "media-buffering-spinner": "_media-buffering-spinner_1fwjr_17",
@@ -146,12 +146,12 @@ const pt = "_media-buffering-indicator_1fwjr_1", _t = "_media-buffering-spinner_
146
146
  mediaBufferingTrackFill: Ct
147
147
  };
148
148
  function gt() {
149
- return /* @__PURE__ */ t("div", { className: j.mediaBufferingIndicator, children: /* @__PURE__ */ s(Y.Root, { className: j.mediaBufferingSpinner, size: 96, children: [
150
- /* @__PURE__ */ t(Y.Track, { className: j.mediaBufferingTrack, width: 8 }),
149
+ return /* @__PURE__ */ t("div", { className: U.mediaBufferingIndicator, children: /* @__PURE__ */ s(Y.Root, { className: U.mediaBufferingSpinner, size: 96, children: [
150
+ /* @__PURE__ */ t(Y.Track, { className: U.mediaBufferingTrack, width: 8 }),
151
151
  /* @__PURE__ */ t(
152
152
  Y.TrackFill,
153
153
  {
154
- className: j.mediaBufferingTrackFill,
154
+ className: U.mediaBufferingTrackFill,
155
155
  width: 8
156
156
  }
157
157
  )
@@ -165,7 +165,7 @@ const Te = (e) => /* @__PURE__ */ s("svg", { width: 24, height: 24, viewBox: "0
165
165
  /* @__PURE__ */ t("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ t("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
166
166
  ] });
167
167
  function bt() {
168
- const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && ze(n), a = v(), c = p(
168
+ const e = W(), n = _("textTrack"), o = _("hasCaptions"), i = n && ze(n), a = C(), c = p(
169
169
  (l) => {
170
170
  e.toggleCaptions(l.nativeEvent);
171
171
  },
@@ -178,19 +178,20 @@ function bt() {
178
178
  className: "controls-button",
179
179
  onClick: c,
180
180
  "aria-label": "Captions",
181
+ "aria-pressed": i ? "true" : "false",
181
182
  tabIndex: a.state.interactionsDisabled ? -1 : 0,
182
183
  children: i ? /* @__PURE__ */ t(Ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Te, { className: "controls-button-icon" })
183
184
  }
184
185
  ) : null;
185
186
  }
186
- const kt = "_captions_13epz_1", yt = {
187
- captions: kt
187
+ const wt = "_captions_13epz_1", kt = {
188
+ captions: wt
188
189
  };
189
- function wt({ captions: e }) {
190
- const n = _("hasCaptions"), o = v();
190
+ function yt({ captions: e }) {
191
+ const n = _("hasCaptions"), o = C();
191
192
  return /* @__PURE__ */ s(ee, { children: [
192
193
  e.map((i) => /* @__PURE__ */ t(
193
- je,
194
+ Ue,
194
195
  {
195
196
  kind: "subtitles",
196
197
  type: i.type,
@@ -210,12 +211,12 @@ function wt({ captions: e }) {
210
211
  "--captions-color": o.state.captionsInvertColors ? "rgba(22, 22, 22)" : "white",
211
212
  "--captions-background-color": o.state.captionsInvertColors ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)"
212
213
  },
213
- children: /* @__PURE__ */ t(Ue, { className: yt.captions })
214
+ children: /* @__PURE__ */ t(je, { className: kt.captions })
214
215
  }
215
216
  ) : null
216
217
  ] });
217
218
  }
218
- const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e) => {
219
+ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, xt = (e) => {
219
220
  const [, n] = M({});
220
221
  return Z(() => {
221
222
  let o = [];
@@ -234,20 +235,20 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e)
234
235
  }
235
236
  };
236
237
  }, []);
237
- }, xt = (e, n, o) => {
238
+ }, Pt = (e, n, o) => {
238
239
  let i = !1;
239
240
  return (a) => {
240
241
  const c = a.detail.currentTime;
241
242
  c >= e.timestamp && c < e.timestamp + n && !i && (o.add(e), i = !0), (c < e.timestamp || c >= e.timestamp + n) && i && (o.remove(e), i = !1);
242
243
  };
243
244
  }, Nt = (e, n = 5) => {
244
- const o = q(), i = Pt(n);
245
- return E(() => {
245
+ const o = q(), i = xt(n);
246
+ return R(() => {
246
247
  if (!o)
247
248
  return;
248
249
  const a = [];
249
250
  for (const c of e) {
250
- const l = xt(c, Se, i);
251
+ const l = Pt(c, Se, i);
251
252
  a.push(l), o.addEventListener("time-update", l);
252
253
  }
253
254
  return o.dispatchEvent(
@@ -260,44 +261,44 @@ const B = [0.5, 0.75, 1, 1.25, 1.5, 2], Lt = [0.5, 1, 2, 3, 4], Se = 5, Pt = (e)
260
261
  i.clear();
261
262
  };
262
263
  }, [o, i, e]), i;
263
- }, Mt = "_comments-overlay_agbjl_1", Tt = "_comments-container_agbjl_9", It = "_comment_agbjl_1", St = "_comment-text_agbjl_44", Ht = "_comment-author-avatar_agbjl_67", Vt = "_comment-author-name_agbjl_86", R = {
264
- "comments-overlay": "_comments-overlay_agbjl_1",
264
+ }, Mt = "_comments-overlay_2woxe_1", Tt = "_comments-container_2woxe_9", It = "_comment_2woxe_1", St = "_comment-text_2woxe_45", Ht = "_comment-author-avatar_2woxe_68", Vt = "_comment-author-name_2woxe_87", E = {
265
+ "comments-overlay": "_comments-overlay_2woxe_1",
265
266
  commentsOverlay: Mt,
266
- "comments-container": "_comments-container_agbjl_9",
267
+ "comments-container": "_comments-container_2woxe_9",
267
268
  commentsContainer: Tt,
268
269
  comment: It,
269
- "comment-text": "_comment-text_agbjl_44",
270
+ "comment-text": "_comment-text_2woxe_45",
270
271
  commentText: St,
271
- "comment-author-avatar": "_comment-author-avatar_agbjl_67",
272
+ "comment-author-avatar": "_comment-author-avatar_2woxe_68",
272
273
  commentAuthorAvatar: Ht,
273
- "comment-author-name": "_comment-author-name_agbjl_86",
274
+ "comment-author-name": "_comment-author-name_2woxe_87",
274
275
  commentAuthorName: Vt
275
276
  };
276
277
  function Bt({ comment: e }) {
277
- return /* @__PURE__ */ s("div", { className: R.comment, onClick: e.onClick, children: [
278
+ return /* @__PURE__ */ s("div", { className: E.comment, onClick: e.onClick, children: [
278
279
  /* @__PURE__ */ t(
279
280
  "img",
280
281
  {
281
- className: R.commentAuthorAvatar,
282
+ className: E.commentAuthorAvatar,
282
283
  src: e.user.avatar,
283
284
  alt: e.user.name
284
285
  }
285
286
  ),
286
- /* @__PURE__ */ t("span", { className: R.commentText, children: e.text }),
287
- /* @__PURE__ */ t("span", { className: R.commentAuthorName, children: e.user.name })
287
+ /* @__PURE__ */ t("span", { className: E.commentText, children: e.text }),
288
+ /* @__PURE__ */ t("span", { className: E.commentAuthorName, children: e.user.name })
288
289
  ] });
289
290
  }
290
- const Rt = 5;
291
- function Et({ comments: e }) {
292
- const n = v(), o = Nt(e, Rt), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
291
+ const Et = 5;
292
+ function Rt({ comments: e }) {
293
+ const n = C(), o = Nt(e, Et), i = !!_("textTrack"), a = o.map((c) => /* @__PURE__ */ t(Bt, { comment: c }, c.id));
293
294
  return e.length > 0 && n.state.commentsEnabled ? /* @__PURE__ */ t(
294
295
  "div",
295
296
  {
296
- className: R.commentsOverlay,
297
+ className: E.commentsOverlay,
297
298
  style: {
298
299
  flexDirection: n.state.captionPositionOnTop && i ? "column-reverse" : "column"
299
300
  },
300
- children: /* @__PURE__ */ t("div", { className: R.commentsContainer, children: i ? a.slice(-4) : a })
301
+ children: /* @__PURE__ */ t("div", { className: E.commentsContainer, children: i ? a.slice(-4) : a })
301
302
  }
302
303
  ) : null;
303
304
  }
@@ -319,7 +320,7 @@ function Dt({
319
320
  showCaptionsButton: o = !0
320
321
  }) {
321
322
  const i = q();
322
- return E(() => {
323
+ return R(() => {
323
324
  i && (i.remoteControl.pauseControls(), n && (n.current = i));
324
325
  }, [i, n]), /* @__PURE__ */ s("div", { "data-darkmode": e, className: V.root, children: [
325
326
  /* @__PURE__ */ t(he, { className: V.normalTimeline }),
@@ -327,36 +328,36 @@ function Dt({
327
328
  /* @__PURE__ */ t(ro, {}),
328
329
  /* @__PURE__ */ t(hi, {})
329
330
  ] }),
330
- /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(wo, {}) }),
331
+ /* @__PURE__ */ t("div", { className: V.indicators, children: /* @__PURE__ */ t(yo, {}) }),
331
332
  /* @__PURE__ */ t(he, { className: V.compactTimeline }),
332
333
  /* @__PURE__ */ s("div", { className: V.rightControls, children: [
333
334
  o && /* @__PURE__ */ t(bt, {}),
334
- /* @__PURE__ */ t(Rn, {}),
335
+ /* @__PURE__ */ t(En, {}),
335
336
  /* @__PURE__ */ t(Yn, {})
336
337
  ] })
337
338
  ] });
338
339
  }
339
- const x = te(null), zt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), jt = "_menu-hint_k49ve_1", Ut = "_menu-button_k49ve_5", qt = "_menu-label_k49ve_37", Wt = "_menu-icon_k49ve_42", U = {
340
+ const P = te(null), zt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Ut = "_menu-hint_k49ve_1", jt = "_menu-button_k49ve_5", qt = "_menu-label_k49ve_37", Wt = "_menu-icon_k49ve_42", j = {
340
341
  "menu-hint": "_menu-hint_k49ve_1",
341
- menuHint: jt,
342
+ menuHint: Ut,
342
343
  "menu-button": "_menu-button_k49ve_5",
343
- menuButton: Ut,
344
+ menuButton: jt,
344
345
  "menu-label": "_menu-label_k49ve_37",
345
346
  menuLabel: qt,
346
347
  "menu-icon": "_menu-icon_k49ve_42",
347
348
  menuIcon: Wt
348
349
  };
349
350
  function $({ label: e, hint: n, onClick: o, Icon: i }) {
350
- return /* @__PURE__ */ s("button", { type: "button", className: U.menuButton, onClick: o, children: [
351
- i && /* @__PURE__ */ t(i, { className: U.menuIcon }),
352
- /* @__PURE__ */ t("span", { className: U.menuLabel, children: e }),
353
- /* @__PURE__ */ t("span", { className: U.menuHint, children: n }),
351
+ return /* @__PURE__ */ s("button", { type: "button", className: j.menuButton, onClick: o, children: [
352
+ i && /* @__PURE__ */ t(i, { className: j.menuIcon }),
353
+ /* @__PURE__ */ t("span", { className: j.menuLabel, children: e }),
354
+ /* @__PURE__ */ t("span", { className: j.menuHint, children: n }),
354
355
  /* @__PURE__ */ t(zt, {})
355
356
  ] });
356
357
  }
357
358
  const Gt = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
358
359
  function Qt() {
359
- const e = P(x), n = _("playbackRate"), { t: o } = b(), i = p(() => {
360
+ const e = x(P), n = _("playbackRate"), { t: o } = v(), i = p(() => {
360
361
  e && e.setPage("speed");
361
362
  }, [e]);
362
363
  return e ? /* @__PURE__ */ t(
@@ -370,7 +371,7 @@ function Qt() {
370
371
  ) : null;
371
372
  }
372
373
  function Yt() {
373
- const e = P(x), n = _("hasCaptions"), o = _("textTrack"), { t: i } = b(), a = p(() => {
374
+ const e = x(P), n = _("hasCaptions"), o = _("textTrack"), { t: i } = v(), a = p(() => {
374
375
  e && e.setPage("captions");
375
376
  }, [e]);
376
377
  return e && n ? /* @__PURE__ */ t(
@@ -383,7 +384,7 @@ function Yt() {
383
384
  }
384
385
  ) : null;
385
386
  }
386
- const Jt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
387
+ const Xt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
387
388
  /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_412_23039", children: /* @__PURE__ */ t("rect", { width: 18, height: 18, fill: "white" }) }) }),
388
389
  /* @__PURE__ */ s("g", { clipPath: "url(#clip0_412_23039)", children: [
389
390
  /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2.46326 3.85039H0V2.65039H2.46326C2.7388 1.36449 3.88181 0.400391 5.24999 0.400391C6.61818 0.400391 7.76119 1.36449 8.03673 2.65039H18V3.85039H8.03673C7.76119 5.13629 6.61818 6.10039 5.24999 6.10039C3.88181 6.10039 2.7388 5.13629 2.46326 3.85039ZM3.59999 3.25039C3.59999 2.33912 4.33872 1.60039 5.24999 1.60039C6.16126 1.60039 6.89999 2.33912 6.89999 3.25039C6.89999 4.16166 6.16126 4.90039 5.24999 4.90039C4.33872 4.90039 3.59999 4.16166 3.59999 3.25039Z", fill: "currentColor" }),
@@ -391,8 +392,8 @@ const Jt = (e) => /* @__PURE__ */ s("svg", { width: 18, height: 18, viewBox: "0
391
392
  /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.24999 17.6004C6.61818 17.6004 7.76119 16.6363 8.03673 15.3504H18V14.1504H8.03673C7.76119 12.8645 6.61818 11.9004 5.24999 11.9004C3.88181 11.9004 2.7388 12.8645 2.46326 14.1504H0V15.3504H2.46326C2.7388 16.6363 3.88181 17.6004 5.24999 17.6004ZM5.24999 13.1004C4.33872 13.1004 3.59999 13.8391 3.59999 14.7504C3.59999 15.6617 4.33872 16.4004 5.24999 16.4004C6.16126 16.4004 6.89999 15.6617 6.89999 14.7504C6.89999 13.8391 6.16126 13.1004 5.24999 13.1004Z", fill: "currentColor" })
392
393
  ] })
393
394
  ] });
394
- function Xt() {
395
- const e = P(x), n = _("autoQuality"), o = _("quality"), { t: i } = b(), a = p(() => {
395
+ function Jt() {
396
+ const e = x(P), n = _("autoQuality"), o = _("quality"), { t: i } = v(), a = p(() => {
396
397
  e && e.setPage("quality");
397
398
  }, [e]);
398
399
  return e && o ? /* @__PURE__ */ t(
@@ -401,7 +402,7 @@ function Xt() {
401
402
  label: i("QUALITY"),
402
403
  hint: n ? i("AUTO", { quality: o.height }) : `${o.height}p`,
403
404
  onClick: a,
404
- Icon: Jt
405
+ Icon: Xt
405
406
  }
406
407
  ) : null;
407
408
  }
@@ -450,7 +451,7 @@ function ne({
450
451
  }
451
452
  const rn = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
452
453
  function un() {
453
- const { t: e } = b(), n = S(), o = v();
454
+ const { t: e } = v(), n = S(), o = C();
454
455
  return !n.forceComments && n.hasComments ? /* @__PURE__ */ t(
455
456
  ne,
456
457
  {
@@ -462,7 +463,7 @@ function un() {
462
463
  ) : null;
463
464
  }
464
465
  function H(e) {
465
- E(() => {
466
+ R(() => {
466
467
  const n = (o) => {
467
468
  o.key === "Escape" && (e == null || e());
468
469
  };
@@ -476,12 +477,12 @@ const dn = "_main-menu_7h96l_1", mn = {
476
477
  mainMenu: dn
477
478
  };
478
479
  function hn() {
479
- const e = P(x);
480
+ const e = x(P);
480
481
  return H(e == null ? void 0 : e.toggle), /* @__PURE__ */ s("div", { className: mn.mainMenu, children: [
481
482
  /* @__PURE__ */ t(Qt, {}),
482
483
  /* @__PURE__ */ t(Yt, {}),
483
484
  /* @__PURE__ */ t(un, {}),
484
- /* @__PURE__ */ t(Xt, {})
485
+ /* @__PURE__ */ t(Jt, {})
485
486
  ] });
486
487
  }
487
488
  const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M17.1347 3.00061L6.55157 13.5825L0.865302 7.89624L0 8.76154L6.55157 15.3131L17.9988 3.86469L17.1347 3.00061Z", fill: "currentColor" }) }), K = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.037 3.03704L6.07407 9L12.037 14.963L11 16L4 9L11 2L12.037 3.03704Z", fill: "currentColor" }) }), pn = "_menu-container_1bjr3_1", _n = "_menu-options_1bjr3_6", fn = "_menu-heading_1bjr3_11", vn = "_check-icon_1bjr3_27", Cn = "_menu-item-label_1bjr3_33", gn = "_menu-item_1bjr3_33", bn = "_menu-back-button_1bjr3_66", r = {
@@ -500,11 +501,11 @@ const G = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0
500
501
  "menu-back-button": "_menu-back-button_1bjr3_66",
501
502
  menuBackButton: bn
502
503
  };
503
- function kn() {
504
- const e = P(x), n = qe({
504
+ function wn() {
505
+ const e = x(P), n = qe({
505
506
  rates: B,
506
507
  normalLabel: "1x"
507
- }), { t: o } = b();
508
+ }), { t: o } = v();
508
509
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
509
510
  /* @__PURE__ */ s(
510
511
  "button",
@@ -538,8 +539,8 @@ function kn() {
538
539
  )) })
539
540
  ] }) : null;
540
541
  }
541
- function yn() {
542
- const e = P(x), n = _("textTrack"), { t: o } = b(), i = p(() => {
542
+ function kn() {
543
+ const e = x(P), n = _("textTrack"), { t: o } = v(), i = p(() => {
543
544
  e && e.setPage("captionLanguage");
544
545
  }, [e]);
545
546
  return e ? /* @__PURE__ */ t(
@@ -551,8 +552,8 @@ function yn() {
551
552
  }
552
553
  ) : null;
553
554
  }
554
- function wn() {
555
- const { t: e } = b(), n = v(), o = P(x), i = p(() => {
555
+ function yn() {
556
+ const { t: e } = v(), n = C(), o = x(P), i = p(() => {
556
557
  o && o.setPage("captionFontSize");
557
558
  }, [o]);
558
559
  return o ? /* @__PURE__ */ t(
@@ -565,7 +566,7 @@ function wn() {
565
566
  ) : null;
566
567
  }
567
568
  function Ln() {
568
- const { t: e } = b(), n = v();
569
+ const { t: e } = v(), n = C();
569
570
  return /* @__PURE__ */ t(
570
571
  ne,
571
572
  {
@@ -575,8 +576,8 @@ function Ln() {
575
576
  }
576
577
  );
577
578
  }
578
- function Pn() {
579
- const { t: e } = b(), n = v();
579
+ function xn() {
580
+ const { t: e } = v(), n = C();
580
581
  return /* @__PURE__ */ t(
581
582
  ne,
582
583
  {
@@ -586,8 +587,8 @@ function Pn() {
586
587
  }
587
588
  );
588
589
  }
589
- function xn() {
590
- const e = P(x), { t: n } = b(), { disableCaptionSettings: o } = v();
590
+ function Pn() {
591
+ const e = x(P), { t: n } = v(), { disableCaptionSettings: o } = C();
591
592
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
592
593
  /* @__PURE__ */ s(
593
594
  "button",
@@ -602,14 +603,14 @@ function xn() {
602
603
  }
603
604
  ),
604
605
  /* @__PURE__ */ t("strong", { className: r.menuHeading, children: n("CAPTIONS") }),
605
- !o && /* @__PURE__ */ t(yn, {}),
606
- /* @__PURE__ */ t(wn, {}),
606
+ !o && /* @__PURE__ */ t(kn, {}),
607
+ /* @__PURE__ */ t(yn, {}),
607
608
  /* @__PURE__ */ t(Ln, {}),
608
- /* @__PURE__ */ t(Pn, {})
609
+ /* @__PURE__ */ t(xn, {})
609
610
  ] }) : null;
610
611
  }
611
612
  function Nn() {
612
- const e = P(x), n = We(), { t: o } = b();
613
+ const e = x(P), n = We(), { t: o } = v();
613
614
  return H(e == null ? void 0 : e.backToCaptions), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
614
615
  /* @__PURE__ */ s(
615
616
  "button",
@@ -644,7 +645,7 @@ function Nn() {
644
645
  ] }) : null;
645
646
  }
646
647
  function Mn() {
647
- const e = v(), n = P(x), { t: o } = b();
648
+ const e = C(), n = x(P), { t: o } = v();
648
649
  return H(n == null ? void 0 : n.backToCaptions), n ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
649
650
  /* @__PURE__ */ s(
650
651
  "button",
@@ -682,7 +683,7 @@ function Mn() {
682
683
  ] }) : null;
683
684
  }
684
685
  function Tn() {
685
- const e = P(x), n = Ge({ sort: "descending" }), o = _("autoQuality"), { t: i } = b();
686
+ const e = x(P), n = Ge({ sort: "descending" }), o = _("autoQuality"), { t: i } = v();
686
687
  return H(e == null ? void 0 : e.backToMain), e ? /* @__PURE__ */ s("div", { className: r.menuContainer, children: [
687
688
  /* @__PURE__ */ s(
688
689
  "button",
@@ -718,8 +719,8 @@ function Tn() {
718
719
  }
719
720
  const In = {
720
721
  main: hn,
721
- speed: kn,
722
- captions: xn,
722
+ speed: wn,
723
+ captions: Pn,
723
724
  captionLanguage: Nn,
724
725
  captionFontSize: Mn,
725
726
  quality: Tn
@@ -733,20 +734,20 @@ function Sn() {
733
734
  n("captions");
734
735
  }, []), u = p(() => {
735
736
  n("main");
736
- }, []), m = Z(() => In[e], [e]), h = ve(null), { refs: C, floatingStyles: w, context: y } = be({
737
+ }, []), m = Z(() => In[e], [e]), h = ve(null), { refs: g, floatingStyles: y, context: k } = be({
737
738
  open: o,
738
739
  onOpenChange: (T) => {
739
740
  i(T), u();
740
741
  },
741
742
  placement: "top-end",
742
- whileElementsMounted: ke,
743
+ whileElementsMounted: we,
743
744
  middleware: [
744
- ye(),
745
- we({
745
+ ke(),
746
+ ye({
746
747
  element: h
747
748
  })
748
749
  ]
749
- }), g = Le(y, { escapeKey: !1 }), { getReferenceProps: f, getFloatingProps: k } = Pe([g]);
750
+ }), b = Le(k, { escapeKey: !1 }), { getReferenceProps: f, getFloatingProps: w } = xe([b]);
750
751
  return {
751
752
  Page: m,
752
753
  open: o,
@@ -755,11 +756,11 @@ function Sn() {
755
756
  backToCaptions: l,
756
757
  backToMain: u,
757
758
  arrowRef: h,
758
- refs: C,
759
- floatingStyles: w,
760
- context: y,
759
+ refs: g,
760
+ floatingStyles: y,
761
+ context: k,
761
762
  getReferenceProps: f,
762
- getFloatingProps: k
763
+ getFloatingProps: w
763
764
  };
764
765
  }
765
766
  const Hn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0692 12C21.0692 11.4776 21.0212 10.944 20.9238 10.4104L23.5511 8.13318L21.0579 3.87247L17.7431 4.97788C16.9059 4.28329 15.9515 3.73553 14.9449 3.37271L14.2616 0H9.28941L8.60612 3.37129C7.58823 3.73553 6.65082 4.27482 5.80659 4.97647L2.49318 3.87247L0 8.13318L2.62729 10.4104C2.52988 10.944 2.48188 11.4776 2.48188 12C2.48188 12.5224 2.52988 13.056 2.62729 13.5896L0 15.8668L2.49318 20.1275L5.808 19.0221C6.64518 19.7167 7.59953 20.2645 8.60612 20.6273L9.28941 24H14.2616L14.9449 20.6287C15.9614 20.2645 16.9002 19.7252 17.7445 19.0235L21.0579 20.1289L23.5511 15.8682L20.9238 13.5911C21.0212 13.056 21.0692 12.5224 21.0692 12ZM11.7755 16.9412C9.05082 16.9412 6.83435 14.7247 6.83435 12C6.83435 9.2753 9.05082 7.05883 11.7755 7.05883C14.5002 7.05883 16.7167 9.2753 16.7167 12C16.7167 14.7247 14.5002 16.9412 11.7755 16.9412Z", fill: "currentColor" }) }), Vn = "_settings-menu_hxlsv_1", Bn = "_arrow_hxlsv_15", de = {
@@ -767,7 +768,7 @@ const Hn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
767
768
  settingsMenu: Vn,
768
769
  arrow: Bn
769
770
  };
770
- function Rn() {
771
+ function En() {
771
772
  const {
772
773
  Page: e,
773
774
  arrowRef: n,
@@ -779,9 +780,9 @@ function Rn() {
779
780
  getReferenceProps: u,
780
781
  open: m,
781
782
  refs: h,
782
- setPage: C,
783
- toggle: w
784
- } = Sn(), y = v(), { t: g } = b();
783
+ setPage: g,
784
+ toggle: y
785
+ } = Sn(), k = C(), { t: b } = v();
785
786
  return /* @__PURE__ */ s(ee, { children: [
786
787
  /* @__PURE__ */ t(
787
788
  "button",
@@ -789,10 +790,10 @@ function Rn() {
789
790
  ref: h.setReference,
790
791
  type: "button",
791
792
  className: "controls-button",
792
- "aria-label": g("SETTINGS"),
793
- onClick: w,
793
+ "aria-label": b("SETTINGS"),
794
+ onClick: y,
794
795
  "aria-expanded": m,
795
- tabIndex: y != null && y.state.interactionsDisabled ? -1 : 0,
796
+ tabIndex: k != null && k.state.interactionsDisabled ? -1 : 0,
796
797
  ...u(),
797
798
  children: /* @__PURE__ */ t(Hn, { className: "controls-button-icon icon-rotate" })
798
799
  }
@@ -806,14 +807,14 @@ function Rn() {
806
807
  ...l(),
807
808
  children: [
808
809
  /* @__PURE__ */ t(
809
- x.Provider,
810
+ P.Provider,
810
811
  {
811
- value: { setPage: C, backToMain: i, backToCaptions: o, toggle: w },
812
+ value: { setPage: g, backToMain: i, backToCaptions: o, toggle: y },
812
813
  children: /* @__PURE__ */ t(e, {})
813
814
  }
814
815
  ),
815
816
  /* @__PURE__ */ t(
816
- xe,
817
+ Pe,
817
818
  {
818
819
  ref: n,
819
820
  context: a,
@@ -828,14 +829,14 @@ function Rn() {
828
829
  function He(e, n = 1e3) {
829
830
  return function() {
830
831
  const i = _("lastKeyboardAction"), [a, c] = M(!1), l = p(() => c(!1), []);
831
- return E(() => {
832
+ return R(() => {
832
833
  c(!!i);
833
834
  const u = setTimeout(l, n);
834
835
  return () => clearTimeout(u);
835
836
  }, [i, n]), a ? /* @__PURE__ */ t(e, {}) : null;
836
837
  };
837
838
  }
838
- const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), En = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), On = "_feedback-overlay_v4lbu_1", Fn = "_feedback-message_v4lbu_14", Zn = "_feedback-icon_v4lbu_30", $n = "_feedback-icon-animation_v4lbu_1", L = {
839
+ const oe = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 11,21 H 5 V 3 h 6 z m 8,0 H 13 V 3 h 6 z", fill: "currentColor" }) }), ie = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { d: "M 5,2 V 22 L 21,12.000665 Z", fill: "currentColor" }) }), Ve = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1179 1.41211V22.589H11.2943L5.64717 16.9418V7.05928L11.2943 1.41211H14.1179ZM4.23537 7.05928V16.9418H2.11769C0.957618 16.9418 0.0189406 16.0147 0.00028305 14.8592L0 14.8241V9.17696C0 8.01689 0.927077 7.07822 2.0826 7.05956L2.11769 7.05928H4.23537ZM22.3744 7.93711L24 9.56119L21.5623 11.9988L24 14.4365L22.3744 16.0621L19.9383 13.6245L17.5006 16.0621L15.875 14.4365L18.3127 11.9988L15.875 9.56119L17.5006 7.93711L19.9383 10.3748L22.3744 7.93711Z", fill: "currentColor" }) }), Be = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 6.98017V16.8627L11.2943 22.5099H14.1179V1.33301H11.2943L5.64714 6.98017ZM0 9.09785V14.745C0 15.9168 0.945899 16.8627 2.11768 16.8627H4.23537V6.98017H2.11768C0.945899 6.98017 0 7.92607 0 9.09785ZM18.3527 11.9207C18.3527 10.6134 17.8388 9.36962 16.9056 8.4209L17.9094 7.43123C19.1066 8.64396 19.7645 10.2393 19.7645 11.9207C19.7645 13.6036 19.1066 15.1989 17.9094 16.4116L16.9056 15.422C17.8388 14.4732 18.3527 13.2295 18.3527 11.9207Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.64714 16.8627V6.98017L11.2943 1.33301H14.1179V22.5099H11.2943L5.64714 16.8627ZM0 14.745V9.09785C0 7.92607 0.945899 6.98017 2.11768 6.98017H4.23537V16.8627H2.11768C0.945899 16.8627 0 15.9168 0 14.745ZM16.9056 8.4209C17.8388 9.36962 18.3527 10.6134 18.3527 11.9207C18.3527 13.2295 17.8388 14.4732 16.9056 15.422L17.9094 16.4116C19.1066 15.1989 19.7645 13.6036 19.7645 11.9207C19.7645 10.2393 19.1066 8.64396 17.9094 7.43123L16.9056 8.4209ZM19.9016 5.43185L20.8997 4.43372C22.9002 6.43422 24 9.09403 24 11.9219C24 14.7497 22.9002 17.4081 20.8997 19.4086L19.9016 18.4104C21.6353 16.6782 22.5882 14.3727 22.5882 11.9219C22.5882 9.46957 21.6353 7.16553 19.9016 5.43185Z", fill: "currentColor" }) }), Rn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.691 3.99987V10.5281L0 4.00655V20.2596L10.691 13.7367V20.2663L23.9987 12.1331L10.691 3.99987Z", fill: "currentColor" }) }), An = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.309 3.99987L0 12.1331L13.309 20.2663V13.7367L23.9987 20.2596V4.00655L13.309 10.5281V3.99987Z", fill: "currentColor" }) }), On = "_feedback-overlay_v4lbu_1", Fn = "_feedback-message_v4lbu_14", Zn = "_feedback-icon_v4lbu_30", $n = "_feedback-icon-animation_v4lbu_1", L = {
839
840
  "feedback-overlay": "_feedback-overlay_v4lbu_1",
840
841
  feedbackOverlay: On,
841
842
  "feedback-message": "_feedback-message_v4lbu_14",
@@ -858,10 +859,10 @@ function Kn() {
858
859
  case "volumeUp":
859
860
  case "volumeDown":
860
861
  case "toggleMuted":
861
- return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ve, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Re, {}) : /* @__PURE__ */ t(Be, {}) });
862
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: e.muted || e.volume === 0 ? /* @__PURE__ */ t(Ve, {}) : e.volume >= 0.5 ? /* @__PURE__ */ t(Ee, {}) : /* @__PURE__ */ t(Be, {}) });
862
863
  case "seekForward":
863
864
  case "seekForward10":
864
- return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(En, { className: "right" }) });
865
+ return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(Rn, { className: "right" }) });
865
866
  case "seekBackward":
866
867
  case "seekBackward10":
867
868
  return /* @__PURE__ */ t("i", { className: L.feedbackIcon, children: /* @__PURE__ */ t(An, { className: "left" }) });
@@ -871,7 +872,7 @@ function Kn() {
871
872
  }
872
873
  function Dn() {
873
874
  var i;
874
- const { t: e } = b(), n = Ce();
875
+ const { t: e } = v(), n = Ce();
875
876
  switch ((i = n.lastKeyboardAction) == null ? void 0 : i.action) {
876
877
  case "toggleCaptions":
877
878
  case "nextCaptionLanguage":
@@ -897,11 +898,11 @@ function Dn() {
897
898
  return null;
898
899
  }
899
900
  }
900
- const zn = He(Kn, 500), jn = He(Dn, 1e3);
901
- function Un() {
901
+ const zn = He(Kn, 500), Un = He(Dn, 1e3);
902
+ function jn() {
902
903
  return /* @__PURE__ */ s("div", { className: L.feedbackOverlay, children: [
903
904
  /* @__PURE__ */ t(zn, {}),
904
- /* @__PURE__ */ t(jn, {})
905
+ /* @__PURE__ */ t(Un, {})
905
906
  ] });
906
907
  }
907
908
  const qn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1383 0.999867V3.66268H18.4561L3.66281 18.4546V14.1382H1V23H9.86449V20.3372H5.54542L20.3387 5.54528V9.86303H23.0001V0.999867H14.1383Z", fill: "currentColor" }) }), Wn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.562 6.58944L22.1514 0L24.0005 1.84907L17.4111 8.43851H21.6506V11.0552H12.9453V2.34861H15.562V6.58944ZM2.34861 15.5615V12.9461H11.0539V21.6501H8.43982V17.4106L1.84907 24L0 22.1509L6.59075 15.5615H2.34861Z", fill: "currentColor" }) }), Gn = "_full-screen-button_1xm32_2", Qn = {
@@ -909,20 +910,21 @@ const qn = (e) => /* @__PURE__ */ t("svg", { width: 24, height: 24, viewBox: "0
909
910
  fullScreenButton: Gn
910
911
  };
911
912
  function Yn() {
912
- const e = _("fullscreen"), n = v();
913
- return S().hideFullScreen ? null : /* @__PURE__ */ t(
913
+ const e = _("fullscreen"), n = C(), o = S(), { t: i } = v();
914
+ return o.hideFullScreen ? null : /* @__PURE__ */ t(
914
915
  ge,
915
916
  {
916
917
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
917
918
  className: `controls-button ${Qn.fullScreenButton}`,
919
+ "aria-label": i(e ? "EXIT_FSCREEN" : "FSCREEN"),
918
920
  children: e ? /* @__PURE__ */ t(Wn, { className: "controls-button-icon" }) : /* @__PURE__ */ t(qn, { className: "controls-button-icon" })
919
921
  }
920
922
  );
921
923
  }
922
- const Jn = "_gestures-container_1fn3b_1", Xn = "_gesture_1fn3b_1", me = {
924
+ const Xn = "_gestures-container_1fn3b_1", Jn = "_gesture_1fn3b_1", me = {
923
925
  "gestures-container": "_gestures-container_1fn3b_1",
924
- gesturesContainer: Jn,
925
- gesture: Xn
926
+ gesturesContainer: Xn,
927
+ gesture: Jn
926
928
  };
927
929
  function eo() {
928
930
  const e = W(), n = () => {
@@ -930,7 +932,7 @@ function eo() {
930
932
  };
931
933
  return /* @__PURE__ */ t("div", { className: me.gesturesContainer, children: /* @__PURE__ */ t("div", { "aria-hidden": !0, className: me.gesture, onClick: n }) });
932
934
  }
933
- const to = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Ee = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), no = "_keyboard-shortcuts-overlay_y5kv6_1", oo = "_keyboard-shortcuts-button_y5kv6_67", io = "_close-button_y5kv6_93", X = {
935
+ const to = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.76472 10.5294C5.05696 10.5294 5.29413 10.2922 5.29413 9.99999V8.94117C5.29413 8.64893 5.05696 8.41175 4.76472 8.41175H3.7059C3.41366 8.41175 3.17649 8.64893 3.17649 8.94117V9.99999C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472ZM11.1177 10.5294C11.4099 10.5294 11.6471 10.2922 11.6471 9.99999V8.94117C11.6471 8.64893 11.4099 8.41175 11.1177 8.41175H10.0588C9.76661 8.41175 9.52944 8.64893 9.52944 8.94117V9.99999C9.52944 10.2922 9.76661 10.5294 10.0588 10.5294H11.1177ZM14.8235 9.99999C14.8235 10.2922 14.5864 10.5294 14.2941 10.5294H13.2353C12.9431 10.5294 12.7059 10.2922 12.7059 9.99999V8.94117C12.7059 8.64893 12.9431 8.41175 13.2353 8.41175H14.2941C14.5864 8.41175 14.8235 8.64893 14.8235 8.94117V9.99999ZM14.8235 13.1765C14.8235 13.4687 14.5864 13.7059 14.2941 13.7059H13.2353C12.9431 13.7059 12.7059 13.4687 12.7059 13.1765V12.1176C12.7059 11.8254 12.9431 11.5882 13.2353 11.5882H14.2941C14.5864 11.5882 14.8235 11.8254 14.8235 12.1176V13.1765ZM11.6471 13.1765C11.6471 13.4687 11.4099 13.7059 11.1177 13.7059H6.88239C6.59015 13.7059 6.35297 13.4687 6.35297 13.1765V12.1176C6.35297 11.8254 6.59015 11.5882 6.88239 11.5882H11.1177C11.4099 11.5882 11.6471 11.8254 11.6471 12.1176V13.1765ZM5.29413 13.1765C5.29413 13.4687 5.05696 13.7059 4.76472 13.7059H3.7059C3.41366 13.7059 3.17649 13.4687 3.17649 13.1765V12.1176C3.17649 11.8254 3.41366 11.5882 3.7059 11.5882H4.76472C5.05696 11.5882 5.29413 11.8254 5.29413 12.1176V13.1765ZM6.88238 8.41175C6.59015 8.41175 6.35297 8.64893 6.35297 8.94117V9.99999C6.35297 10.2922 6.59015 10.5294 6.88238 10.5294H7.94121C8.23344 10.5294 8.47062 10.2922 8.47062 9.99999V8.94117C8.47062 8.64893 8.23344 8.41175 7.94121 8.41175H6.88238ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529Z", fill: "currentColor" }) }), Re = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ t("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.94968 7.74766L3.99993 2.79791L2.79785 3.99999L7.7476 8.94974L2.79785 13.8995L3.99993 15.1016L8.94968 10.1518L13.8994 15.1016L15.1015 13.8995L10.1518 8.94974L15.1015 3.99999L13.8994 2.79791L8.94968 7.74766Z", fill: "currentColor" }) }), no = "_keyboard-shortcuts-overlay_y5kv6_1", oo = "_keyboard-shortcuts-button_y5kv6_67", io = "_close-button_y5kv6_93", J = {
934
936
  "keyboard-shortcuts-overlay": "_keyboard-shortcuts-overlay_y5kv6_1",
935
937
  keyboardShortcutsOverlay: no,
936
938
  "keyboard-shortcuts-button": "_keyboard-shortcuts-button_y5kv6_67",
@@ -939,7 +941,7 @@ const to = (e) => /* @__PURE__ */ t("svg", { width: 18, height: 18, viewBox: "0
939
941
  closeButton: io
940
942
  };
941
943
  function ao({ onClose: e }) {
942
- const { t: n } = b();
944
+ const { t: n } = v();
943
945
  H(e);
944
946
  const o = (i) => {
945
947
  i && i.focus();
@@ -947,7 +949,7 @@ function ao({ onClose: e }) {
947
949
  return /* @__PURE__ */ s(
948
950
  "div",
949
951
  {
950
- className: X.keyboardShortcutsOverlay,
952
+ className: J.keyboardShortcutsOverlay,
951
953
  tabIndex: 0,
952
954
  ref: o,
953
955
  children: [
@@ -957,10 +959,10 @@ function ao({ onClose: e }) {
957
959
  "button",
958
960
  {
959
961
  type: "button",
960
- className: X.closeButton,
962
+ className: J.closeButton,
961
963
  onClick: e,
962
964
  "aria-label": n("CLOSE"),
963
- children: /* @__PURE__ */ t(Ee, {})
965
+ children: /* @__PURE__ */ t(Re, {})
964
966
  }
965
967
  )
966
968
  ] }),
@@ -1052,22 +1054,22 @@ function ao({ onClose: e }) {
1052
1054
  );
1053
1055
  }
1054
1056
  function so() {
1055
- const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = v(), u = _("playing"), m = W(), { t: h } = b(), C = p(() => {
1057
+ const [e, n] = M(!1), [o, i] = M(!1), [a, c] = M(!1), l = C(), u = _("playing"), m = W(), { t: h } = v(), g = p(() => {
1056
1058
  n(!0), l.disableInteractions(), u && (c(!0), m.pause());
1057
- }, [u, m, l]), w = p(() => {
1059
+ }, [u, m, l]), y = p(() => {
1058
1060
  n(!1), i(!0), l.enableInteractions(), a && (c(!1), m.play());
1059
- }, [a, m, l]), y = p(
1060
- (g) => o && (g == null ? void 0 : g.focus()),
1061
+ }, [a, m, l]), k = p(
1062
+ (b) => o && (b == null ? void 0 : b.focus()),
1061
1063
  [o]
1062
1064
  );
1063
- return e ? /* @__PURE__ */ t(ao, { onClose: w }) : /* @__PURE__ */ t(
1065
+ return e ? /* @__PURE__ */ t(ao, { onClose: y }) : /* @__PURE__ */ t(
1064
1066
  "button",
1065
1067
  {
1066
- ref: y,
1068
+ ref: k,
1067
1069
  "aria-label": h("KEYBOARD_SHORTCUTS"),
1068
1070
  type: "button",
1069
- className: X.keyboardShortcutsButton,
1070
- onClick: C,
1071
+ className: J.keyboardShortcutsButton,
1072
+ onClick: g,
1071
1073
  tabIndex: l.state.interactionsDisabled ? -1 : 0,
1072
1074
  children: /* @__PURE__ */ t(to, {})
1073
1075
  }
@@ -1078,16 +1080,17 @@ const co = "_play-pause-button_kyuc5_1", lo = {
1078
1080
  playPauseButton: co
1079
1081
  };
1080
1082
  function ro() {
1081
- const e = q(), n = v(), o = _("paused");
1083
+ const e = q(), n = C(), o = _("paused"), { t: i } = v();
1082
1084
  return e ? /* @__PURE__ */ t(
1083
1085
  Qe,
1084
1086
  {
1087
+ "aria-label": i(o ? "PLAY" : "PAUSE"),
1085
1088
  tabIndex: n.state.interactionsDisabled ? -1 : 0,
1086
1089
  className: `${lo.playPauseButton} controls-button`,
1087
- onKeyDown: (i) => {
1088
- i.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1090
+ onKeyDown: (a) => {
1091
+ a.key === " " && (e == null || e.$state.lastKeyboardAction.set({
1089
1092
  action: "togglePaused",
1090
- event: i.nativeEvent
1093
+ event: a.nativeEvent
1091
1094
  }));
1092
1095
  },
1093
1096
  children: o ? /* @__PURE__ */ t(ie, { className: "controls-button-icon" }) : /* @__PURE__ */ t(oe, { className: "controls-button-icon" })
@@ -1117,31 +1120,31 @@ const po = "_small-layout-overlay_1vli4_1", _o = "_small-layout-button_1vli4_14"
1117
1120
  };
1118
1121
  function bo() {
1119
1122
  return /* @__PURE__ */ s("div", { className: O.smallLayoutOverlay, children: [
1120
- /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Ee, {}) }),
1123
+ /* @__PURE__ */ t(ge, { className: O.fullScreenCloseIcon, children: /* @__PURE__ */ t(Re, {}) }),
1121
1124
  /* @__PURE__ */ s("i", { className: O.smallLayoutButton, children: [
1122
1125
  /* @__PURE__ */ t(ie, { className: O.smallLayoutIconPlay }),
1123
1126
  /* @__PURE__ */ t(oe, { className: O.smallLayoutIconPause })
1124
1127
  ] })
1125
1128
  ] });
1126
1129
  }
1127
- const ko = "_time-indicator_1rlpb_1", yo = {
1130
+ const wo = "_time-indicator_1rlpb_1", ko = {
1128
1131
  "time-indicator": "_time-indicator_1rlpb_1",
1129
- timeIndicator: ko
1132
+ timeIndicator: wo
1130
1133
  };
1131
- function wo() {
1132
- return /* @__PURE__ */ s("div", { className: yo.timeIndicator, children: [
1134
+ function yo() {
1135
+ return /* @__PURE__ */ s("div", { className: ko.timeIndicator, children: [
1133
1136
  /* @__PURE__ */ t(re, { type: "current" }),
1134
1137
  "/",
1135
1138
  /* @__PURE__ */ t(re, { type: "duration" })
1136
1139
  ] });
1137
1140
  }
1138
- const Lo = "_comment-markers_49pse_1", Po = "_comment-marker_49pse_1", xo = "_timeline-wrapper_49pse_21", No = "_track_49pse_35", Mo = "_thumb_49pse_48", To = "_root_49pse_62", Io = "_track-inner_49pse_92", So = "_progress_49pse_98", Ho = "_track-fill_49pse_104", Vo = "_pins_49pse_121", Bo = "_pin-button_49pse_134", Ro = "_annotation-pin_49pse_154", Eo = "_quiz-pin_49pse_159", Ao = "_annotation-pin-child_49pse_164", Oo = "_quiz-pin-child_49pse_168", Fo = "_interactive-pin-container_49pse_173", Zo = "_interactive-pin-wrapper_49pse_183", $o = "_interactive-pin-icon_49pse_189", Ko = "_interactive-pin_49pse_173", Do = "_bg_49pse_203", zo = "_symbol_49pse_207", jo = "_interactive-pin-button_49pse_212", Uo = "_interactive-pin-menu_49pse_232", qo = "_interactive-pin-menu-item_49pse_246", Wo = "_arrow_49pse_267", d = {
1141
+ const Lo = "_comment-markers_49pse_1", xo = "_comment-marker_49pse_1", Po = "_timeline-wrapper_49pse_21", No = "_track_49pse_35", Mo = "_thumb_49pse_48", To = "_root_49pse_62", Io = "_track-inner_49pse_92", So = "_progress_49pse_98", Ho = "_track-fill_49pse_104", Vo = "_pins_49pse_121", Bo = "_pin-button_49pse_134", Eo = "_annotation-pin_49pse_154", Ro = "_quiz-pin_49pse_159", Ao = "_annotation-pin-child_49pse_164", Oo = "_quiz-pin-child_49pse_168", Fo = "_interactive-pin-container_49pse_173", Zo = "_interactive-pin-wrapper_49pse_183", $o = "_interactive-pin-icon_49pse_189", Ko = "_interactive-pin_49pse_173", Do = "_bg_49pse_203", zo = "_symbol_49pse_207", Uo = "_interactive-pin-button_49pse_212", jo = "_interactive-pin-menu_49pse_232", qo = "_interactive-pin-menu-item_49pse_246", Wo = "_arrow_49pse_267", d = {
1139
1142
  "comment-markers": "_comment-markers_49pse_1",
1140
1143
  commentMarkers: Lo,
1141
1144
  "comment-marker": "_comment-marker_49pse_1",
1142
- commentMarker: Po,
1145
+ commentMarker: xo,
1143
1146
  "timeline-wrapper": "_timeline-wrapper_49pse_21",
1144
- timelineWrapper: xo,
1147
+ timelineWrapper: Po,
1145
1148
  track: No,
1146
1149
  thumb: Mo,
1147
1150
  root: To,
@@ -1154,9 +1157,9 @@ const Lo = "_comment-markers_49pse_1", Po = "_comment-marker_49pse_1", xo = "_ti
1154
1157
  "pin-button": "_pin-button_49pse_134",
1155
1158
  pinButton: Bo,
1156
1159
  "annotation-pin": "_annotation-pin_49pse_154",
1157
- annotationPin: Ro,
1160
+ annotationPin: Eo,
1158
1161
  "quiz-pin": "_quiz-pin_49pse_159",
1159
- quizPin: Eo,
1162
+ quizPin: Ro,
1160
1163
  "annotation-pin-child": "_annotation-pin-child_49pse_164",
1161
1164
  annotationPinChild: Ao,
1162
1165
  "quiz-pin-child": "_quiz-pin-child_49pse_168",
@@ -1172,9 +1175,9 @@ const Lo = "_comment-markers_49pse_1", Po = "_comment-marker_49pse_1", xo = "_ti
1172
1175
  bg: Do,
1173
1176
  symbol: zo,
1174
1177
  "interactive-pin-button": "_interactive-pin-button_49pse_212",
1175
- interactivePinButton: jo,
1178
+ interactivePinButton: Uo,
1176
1179
  "interactive-pin-menu": "_interactive-pin-menu_49pse_232",
1177
- interactivePinMenu: Uo,
1180
+ interactivePinMenu: jo,
1178
1181
  "interactive-pin-menu-item": "_interactive-pin-menu-item_49pse_246",
1179
1182
  interactivePinMenuItem: qo,
1180
1183
  arrow: Wo
@@ -1188,7 +1191,7 @@ function Ae({
1188
1191
  children: o,
1189
1192
  onClick: i
1190
1193
  }) {
1191
- const a = v();
1194
+ const a = C();
1192
1195
  return /* @__PURE__ */ t(
1193
1196
  "button",
1194
1197
  {
@@ -1241,7 +1244,7 @@ function Yo(e) {
1241
1244
  }
1242
1245
  ) });
1243
1246
  }
1244
- function Jo(e, n) {
1247
+ function Xo(e, n) {
1245
1248
  return e.map((o, i) => ({
1246
1249
  id: o.id,
1247
1250
  time: o.time,
@@ -1250,7 +1253,7 @@ function Jo(e, n) {
1250
1253
  onClick: () => n(o)
1251
1254
  }));
1252
1255
  }
1253
- function Xo(e, n) {
1256
+ function Jo(e, n) {
1254
1257
  const o = /* @__PURE__ */ new Map();
1255
1258
  e.forEach((c) => {
1256
1259
  var u;
@@ -1300,16 +1303,16 @@ function ei(e, n, o, i) {
1300
1303
  }
1301
1304
  function ti() {
1302
1305
  const e = W(), n = _("duration"), o = S(), i = Z(() => [
1303
- ...Jo(
1306
+ ...Xo(
1304
1307
  o.annotations,
1305
1308
  o.onAnnotationClick
1306
1309
  ),
1307
- ...Xo(o.quizMarkers, o.onQuizMarkerClick)
1310
+ ...Jo(o.quizMarkers, o.onQuizMarkerClick)
1308
1311
  ].sort((c, l) => c.time - l.time).map((c) => ei(c, n, e, o.interactive)), [o.annotations, o.quizMarkers, n, e]);
1309
1312
  return /* @__PURE__ */ t("div", { className: d.pins, children: i });
1310
1313
  }
1311
1314
  function ni() {
1312
- const e = _("duration"), n = S(), o = v();
1315
+ const e = _("duration"), n = S(), o = C();
1313
1316
  return n.hasComments && o.state.commentsEnabled ? /* @__PURE__ */ t("div", { className: d.commentMarkers, children: n.comments.map((i) => {
1314
1317
  const a = Math.min(
1315
1318
  Math.abs(e - i.timestamp),
@@ -1329,24 +1332,24 @@ function ni() {
1329
1332
  }) }) : null;
1330
1333
  }
1331
1334
  function oi({ currentTime: e, position: n }) {
1332
- const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((g) => !g) : a.onInteractivePinClick(e), [
1335
+ const [o, i] = M(!1), a = S(), c = p(() => a.interactiveMenuElements.length > 0 ? i((b) => !b) : a.onInteractivePinClick(e), [
1333
1336
  a.interactiveMenuElements,
1334
1337
  a.onInteractivePinClick,
1335
1338
  e
1336
1339
  ]), l = ve(null), { refs: u, floatingStyles: m, context: h } = be({
1337
1340
  open: o,
1338
1341
  onOpenChange: i,
1339
- whileElementsMounted: ke,
1342
+ whileElementsMounted: we,
1340
1343
  placement: "top",
1341
1344
  middleware: [
1342
1345
  at(),
1343
1346
  st(6),
1344
- ye(),
1345
- we({
1347
+ ke(),
1348
+ ye({
1346
1349
  element: l
1347
1350
  })
1348
1351
  ]
1349
- }), C = Le(h), { getReferenceProps: w, getFloatingProps: y } = Pe([C]);
1352
+ }), g = Le(h), { getReferenceProps: y, getFloatingProps: k } = xe([g]);
1350
1353
  return /* @__PURE__ */ s(ee, { children: [
1351
1354
  /* @__PURE__ */ t(
1352
1355
  "button",
@@ -1356,7 +1359,7 @@ function oi({ currentTime: e, position: n }) {
1356
1359
  className: d.interactivePinButton,
1357
1360
  ref: u.setReference,
1358
1361
  style: { left: `${n}%` },
1359
- ...w(),
1362
+ ...y(),
1360
1363
  children: /* @__PURE__ */ s(
1361
1364
  "svg",
1362
1365
  {
@@ -1403,15 +1406,15 @@ function oi({ currentTime: e, position: n }) {
1403
1406
  ref: u.setFloating,
1404
1407
  style: m,
1405
1408
  className: d.interactivePinMenu,
1406
- ...y(),
1409
+ ...k(),
1407
1410
  children: [
1408
- a.interactiveMenuElements.map(({ id: g, text: f, onClick: k }) => /* @__PURE__ */ s(
1411
+ a.interactiveMenuElements.map(({ id: b, text: f, onClick: w }) => /* @__PURE__ */ s(
1409
1412
  "button",
1410
1413
  {
1411
1414
  type: "button",
1412
1415
  className: d.interactivePinMenuItem,
1413
1416
  onClick: () => {
1414
- k(g, e), i(!1);
1417
+ w(b, e), i(!1);
1415
1418
  },
1416
1419
  children: [
1417
1420
  /* @__PURE__ */ t(
@@ -1436,10 +1439,10 @@ function oi({ currentTime: e, position: n }) {
1436
1439
  f
1437
1440
  ]
1438
1441
  },
1439
- g
1442
+ b
1440
1443
  )),
1441
1444
  /* @__PURE__ */ t(
1442
- xe,
1445
+ Pe,
1443
1446
  {
1444
1447
  ref: l,
1445
1448
  context: h,
@@ -1456,12 +1459,12 @@ function ii() {
1456
1459
  return /* @__PURE__ */ t("div", { className: d.interactivePinContainer, children: /* @__PURE__ */ t("div", { className: d.interactivePinWrapper, children: /* @__PURE__ */ t(oi, { currentTime: n, position: o }) }) });
1457
1460
  }
1458
1461
  function ai() {
1459
- const e = _("paused"), n = v();
1462
+ const e = _("paused"), n = C();
1460
1463
  return e && !n.state.interactionsDisabled ? /* @__PURE__ */ t(ii, {}) : null;
1461
1464
  }
1462
1465
  const si = `${d.progress} ${d.trackInner}`, ci = `${d.trackFill} ${d.trackInner}`;
1463
1466
  function he({ className: e }) {
1464
- const n = v(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1467
+ const n = C(), { hasAnnotations: o, hasQuizmarkers: i, interactive: a } = S(), c = e ? `${d.timelineWrapper} ${e}` : d.timelineWrapper;
1465
1468
  return /* @__PURE__ */ s("div", { className: c, children: [
1466
1469
  a ? /* @__PURE__ */ t(ai, {}) : null,
1467
1470
  a || o || i ? /* @__PURE__ */ t(ti, {}) : null,
@@ -1491,14 +1494,15 @@ const li = "_wrapper_12cb0_1", ri = "_track_12cb0_6", ui = "_thumb_12cb0_18", di
1491
1494
  root: mi
1492
1495
  };
1493
1496
  function hi() {
1494
- const e = _("volume"), n = _("muted"), o = v();
1497
+ const e = _("volume"), n = _("muted"), o = C(), i = n || e === 0, { t: a } = v();
1495
1498
  return /* @__PURE__ */ s("div", { className: F.wrapper, children: [
1496
1499
  /* @__PURE__ */ t(
1497
- Je,
1500
+ Xe,
1498
1501
  {
1499
1502
  tabIndex: o.state.interactionsDisabled ? -1 : 0,
1500
1503
  className: "controls-button",
1501
- children: n || e == 0 ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Be, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Re, { className: "controls-button-icon" })
1504
+ "aria-label": a(i ? "VOLUME" : "MUTE"),
1505
+ children: i ? /* @__PURE__ */ t(Ve, { className: "controls-button-icon" }) : e < 0.5 ? /* @__PURE__ */ t(Be, { className: "controls-button-icon" }) : /* @__PURE__ */ t(Ee, { className: "controls-button-icon" })
1502
1506
  }
1503
1507
  ),
1504
1508
  /* @__PURE__ */ s(
@@ -1724,47 +1728,47 @@ function fi(e, n, o, i) {
1724
1728
  a.initializeState(i)
1725
1729
  ), u = p(
1726
1730
  (f) => {
1727
- l((k) => (a.saveData("multiplier", f), {
1728
- ...k,
1731
+ l((w) => (a.saveData("multiplier", f), {
1732
+ ...w,
1729
1733
  captionsFontSizeMultiplier: f
1730
1734
  }));
1731
1735
  },
1732
1736
  [a]
1733
1737
  ), m = p(() => {
1734
1738
  l((f) => {
1735
- const k = !f.captionPositionOnTop;
1736
- return a.saveData("ontop", k), {
1739
+ const w = !f.captionPositionOnTop;
1740
+ return a.saveData("ontop", w), {
1737
1741
  ...f,
1738
- captionPositionOnTop: k
1742
+ captionPositionOnTop: w
1739
1743
  };
1740
1744
  });
1741
1745
  }, [a]), h = p(() => {
1742
1746
  l((f) => {
1743
- const k = !f.captionsInvertColors;
1744
- return a.saveData("invert", k), {
1747
+ const w = !f.captionsInvertColors;
1748
+ return a.saveData("invert", w), {
1745
1749
  ...f,
1746
- captionsInvertColors: k
1750
+ captionsInvertColors: w
1747
1751
  };
1748
1752
  });
1749
- }, [a]), C = p(() => {
1753
+ }, [a]), g = p(() => {
1750
1754
  l((f) => {
1751
- const k = !f.commentsEnabled;
1752
- return a.saveData("comments", k), {
1755
+ const w = !f.commentsEnabled;
1756
+ return a.saveData("comments", w), {
1753
1757
  ...f,
1754
- commentsEnabled: k
1758
+ commentsEnabled: w
1755
1759
  };
1756
1760
  });
1757
- }, [a]), w = p(() => {
1761
+ }, [a]), y = p(() => {
1758
1762
  l((f) => ({
1759
1763
  ...f,
1760
1764
  interactionsDisabled: !1
1761
1765
  }));
1762
- }, []), y = p(() => {
1766
+ }, []), k = p(() => {
1763
1767
  l((f) => ({
1764
1768
  ...f,
1765
1769
  interactionsDisabled: !0
1766
1770
  }));
1767
- }, []), g = Z(() => e ? {
1771
+ }, []), b = Z(() => e ? {
1768
1772
  ...pe,
1769
1773
  toggleFullscreen: []
1770
1774
  } : pe, [e]);
@@ -1777,18 +1781,18 @@ function fi(e, n, o, i) {
1777
1781
  setCaptionsFontSizeMultiplier: u,
1778
1782
  toggleCaptionPositionOnTop: m,
1779
1783
  toggleCaptionsInvertColors: h,
1780
- enableInteractions: w,
1781
- disableInteractions: y,
1782
- toggleComments: C,
1784
+ enableInteractions: y,
1785
+ disableInteractions: k,
1786
+ toggleComments: g,
1783
1787
  disableCaptionSettings: o
1784
1788
  },
1785
- shortcuts: g,
1789
+ shortcuts: b,
1786
1790
  storage: a
1787
1791
  };
1788
1792
  }
1789
- const vi = {}, J = () => {
1793
+ const vi = {}, X = () => {
1790
1794
  };
1791
- function xi({
1795
+ function Pi({
1792
1796
  title: e,
1793
1797
  playerRef: n,
1794
1798
  src: o,
@@ -1799,12 +1803,12 @@ function xi({
1799
1803
  locale: u = "en",
1800
1804
  annotations: m = [],
1801
1805
  quizMarkers: h = [],
1802
- interactive: C = !1,
1803
- onAnnotationClick: w = J,
1804
- onQuizMarkerClick: y = J,
1805
- onInteractivePinClick: g = J,
1806
+ interactive: g = !1,
1807
+ onAnnotationClick: y = X,
1808
+ onQuizMarkerClick: k = X,
1809
+ onInteractivePinClick: b = X,
1806
1810
  interactiveMenuElements: f = [],
1807
- darkMode: k = !1,
1811
+ darkMode: w = !1,
1808
1812
  autoLoadCaptionSrc: T = "",
1809
1813
  forceComments: ae,
1810
1814
  disableCaptionSettings: Q,
@@ -1815,8 +1819,8 @@ function xi({
1815
1819
  ae ?? !1,
1816
1820
  Q ?? !1,
1817
1821
  Oe
1818
- ), { i18n: ce } = b();
1819
- return E(() => {
1822
+ ), { i18n: ce } = v();
1823
+ return R(() => {
1820
1824
  ce.changeLanguage(u);
1821
1825
  }, [ce, u]), /* @__PURE__ */ t(
1822
1826
  rt,
@@ -1825,16 +1829,16 @@ function xi({
1825
1829
  comments: l,
1826
1830
  annotations: m,
1827
1831
  quizMarkers: h,
1828
- interactive: C,
1829
- onAnnotationClick: w,
1830
- onQuizMarkerClick: y,
1831
- onInteractivePinClick: g,
1832
+ interactive: g,
1833
+ onAnnotationClick: y,
1834
+ onQuizMarkerClick: k,
1835
+ onInteractivePinClick: b,
1832
1836
  interactiveMenuElements: f,
1833
- darkMode: k,
1837
+ darkMode: w,
1834
1838
  forceComments: ae ?? !1,
1835
1839
  disableCaptionSettings: Q ?? !1,
1836
1840
  children: /* @__PURE__ */ t(lt, { contextValue: se, children: /* @__PURE__ */ s(
1837
- Xe,
1841
+ Je,
1838
1842
  {
1839
1843
  storage: Ze,
1840
1844
  title: e,
@@ -1852,17 +1856,17 @@ function xi({
1852
1856
  /* @__PURE__ */ t(so, {}),
1853
1857
  /* @__PURE__ */ s(et, { className: vi.mediaProvider, children: [
1854
1858
  /* @__PURE__ */ t(ho, { src: a }),
1855
- /* @__PURE__ */ t(Un, {}),
1859
+ /* @__PURE__ */ t(jn, {}),
1856
1860
  /* @__PURE__ */ t(gt, {}),
1857
- /* @__PURE__ */ t(wt, { captions: i }),
1858
- /* @__PURE__ */ t(Et, { comments: l }),
1861
+ /* @__PURE__ */ t(yt, { captions: i }),
1862
+ /* @__PURE__ */ t(Rt, { comments: l }),
1859
1863
  /* @__PURE__ */ t(bo, {}),
1860
1864
  /* @__PURE__ */ t(eo, {})
1861
1865
  ] }),
1862
1866
  /* @__PURE__ */ t(
1863
1867
  Dt,
1864
1868
  {
1865
- darkMode: k,
1869
+ darkMode: w,
1866
1870
  playerRef: n,
1867
1871
  showCaptionsButton: !Q
1868
1872
  }
@@ -1878,5 +1882,5 @@ export {
1878
1882
  Lt as CAPTION_FONT_SIZE_MULTIPLIERS,
1879
1883
  Se as COMMENT_DURATION,
1880
1884
  B as PLAYBACK_RATES,
1881
- xi as StudioPlayer
1885
+ Pi as StudioPlayer
1882
1886
  };