@hopeplayer/core 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/HopePlayerElement.d.ts +14 -0
  2. package/dist/HopePlayerElement.d.ts.map +1 -1
  3. package/dist/chunks/index-BvFMYXAE.js +2007 -0
  4. package/dist/chunks/index-BvFMYXAE.js.map +1 -0
  5. package/dist/chunks/{index-DXf2Al1x.js → index-C6xzBfNn.js} +2 -2
  6. package/dist/chunks/{index-DXf2Al1x.js.map → index-C6xzBfNn.js.map} +1 -1
  7. package/dist/chunks/index-CaMVTgh0.js +144 -0
  8. package/dist/chunks/index-CaMVTgh0.js.map +1 -0
  9. package/dist/chunks/{index-BFgqg05L.js → index-CgkX9qaH.js} +2 -2
  10. package/dist/chunks/{index-BFgqg05L.js.map → index-CgkX9qaH.js.map} +1 -1
  11. package/dist/chunks/{index-CQqGn9as.js → index-IcJCsJYH.js} +2 -2
  12. package/dist/chunks/{index-CQqGn9as.js.map → index-IcJCsJYH.js.map} +1 -1
  13. package/dist/chunks/{index-q5DsrT-Q.js → index-TQsycon_.js} +2 -2
  14. package/dist/chunks/{index-q5DsrT-Q.js.map → index-TQsycon_.js.map} +1 -1
  15. package/dist/chunks/{index-B4ujPVcl.js → index-Xf3PnlMU.js} +2 -2
  16. package/dist/chunks/{index-B4ujPVcl.js.map → index-Xf3PnlMU.js.map} +1 -1
  17. package/dist/controls/ControlBar.d.ts +2 -1
  18. package/dist/controls/ControlBar.d.ts.map +1 -1
  19. package/dist/controls/SettingsMenu.d.ts +11 -1
  20. package/dist/controls/SettingsMenu.d.ts.map +1 -1
  21. package/dist/hls/SourceManager.d.ts +28 -2
  22. package/dist/hls/SourceManager.d.ts.map +1 -1
  23. package/dist/hope-player.js +1 -1
  24. package/dist/i18n/locales/en.d.ts.map +1 -1
  25. package/dist/i18n/locales/tr.d.ts.map +1 -1
  26. package/dist/i18n/types.d.ts +5 -0
  27. package/dist/i18n/types.d.ts.map +1 -1
  28. package/dist/index.d.ts +2 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/keyboard/KeyboardController.d.ts.map +1 -1
  31. package/dist/plugins/pause-ad/PauseAd.d.ts +52 -0
  32. package/dist/plugins/pause-ad/PauseAd.d.ts.map +1 -0
  33. package/dist/plugins/pause-ad/index.d.ts +6 -0
  34. package/dist/plugins/pause-ad/index.d.ts.map +1 -0
  35. package/dist/plugins/pause-ad/loadGpt.d.ts +35 -0
  36. package/dist/plugins/pause-ad/loadGpt.d.ts.map +1 -0
  37. package/dist/screens/ErrorScreen.d.ts +11 -1
  38. package/dist/screens/ErrorScreen.d.ts.map +1 -1
  39. package/dist/subtitles/attachTracks.d.ts +17 -1
  40. package/dist/subtitles/attachTracks.d.ts.map +1 -1
  41. package/dist/types/index.d.ts +32 -0
  42. package/dist/types/index.d.ts.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/chunks/index-DiCkShCE.js +0 -1776
  45. package/dist/chunks/index-DiCkShCE.js.map +0 -1
@@ -1,1776 +0,0 @@
1
- var _ = Object.defineProperty;
2
- var G = (a, e, t) => e in a ? _(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var i = (a, e, t) => G(a, typeof e != "symbol" ? e + "" : e, t);
4
- const X = '/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--hp-font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--hp-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--hp-color-black:#000;--hp-color-white:#fff;--hp-spacing:.25rem;--hp-container-xs:20rem;--hp-text-xs:.75rem;--hp-text-xs--line-height:calc(1 / .75);--hp-text-sm:.875rem;--hp-text-sm--line-height:calc(1.25 / .875);--hp-text-base:1rem;--hp-text-base--line-height: 1.5 ;--hp-text-lg:1.125rem;--hp-text-lg--line-height:calc(1.75 / 1.125);--hp-text-xl:1.25rem;--hp-text-xl--line-height:calc(1.75 / 1.25);--hp-text-2xl:1.5rem;--hp-text-2xl--line-height:calc(2 / 1.5);--hp-text-3xl:1.875rem;--hp-text-3xl--line-height: 1.2 ;--hp-font-weight-medium:500;--hp-font-weight-semibold:600;--hp-radius-md:.375rem;--hp-radius-lg:.5rem;--hp-animate-spin:spin 1s linear infinite;--hp-aspect-video:16 / 9;--hp-default-transition-duration:.15s;--hp-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--hp-default-font-family:var(--hp-font-sans);--hp-default-mono-font-family:var(--hp-font-mono);--hp-color-accent:#fff;--hp-color-on-accent:#0a0a0a;--hp-color-surface:#0a0a0a;--hp-color-surface-elev:#1a1a1a;--hp-color-on-surface:#fff;--hp-color-on-surface-muted:#a3a3a3}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--hp-default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--hp-default-font-feature-settings,normal);font-variation-settings:var(--hp-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--hp-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--hp-default-mono-font-feature-settings,normal);font-variation-settings:var(--hp-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.hp\\:pointer-events-auto{pointer-events:auto}.hp\\:pointer-events-none{pointer-events:none}.hp\\:absolute{position:absolute}.hp\\:relative{position:relative}.hp\\:sticky{position:sticky}.hp\\:inset-0{top:0;right:0;bottom:0;left:0}.hp\\:inset-x-0{inset-inline:0}.hp\\:inset-y-0{inset-block:0}.hp\\:top-0{top:0}.hp\\:top-1{top:var(--hp-spacing)}.hp\\:top-1\\/2{top:50%}.hp\\:top-2{top:calc(var(--hp-spacing) * 2)}.hp\\:right-0{right:0}.hp\\:right-1{right:var(--hp-spacing)}.hp\\:right-2{right:calc(var(--hp-spacing) * 2)}.hp\\:bottom-0{bottom:0}.hp\\:bottom-full{bottom:100%}.hp\\:left-1\\/2{left:50%}.hp\\:z-10{z-index:10}.hp\\:z-20{z-index:20}.hp\\:z-30{z-index:30}.hp\\:z-40{z-index:40}.hp\\:m-0{margin:0}.hp\\:mt-0\\.5{margin-top:calc(var(--hp-spacing) * .5)}.hp\\:mt-1{margin-top:var(--hp-spacing)}.hp\\:mt-2{margin-top:calc(var(--hp-spacing) * 2)}.hp\\:mt-8{margin-top:calc(var(--hp-spacing) * 8)}.hp\\:mb-1{margin-bottom:var(--hp-spacing)}.hp\\:mb-2{margin-bottom:calc(var(--hp-spacing) * 2)}.hp\\:mb-16{margin-bottom:calc(var(--hp-spacing) * 16)}.hp\\:ml-1{margin-left:var(--hp-spacing)}.hp\\:block{display:block}.hp\\:flex{display:flex}.hp\\:grid{display:grid}.hp\\:hidden{display:none}.hp\\:aspect-\\[9\\/16\\]{aspect-ratio:9/16}.hp\\:aspect-video{aspect-ratio:var(--hp-aspect-video)}.hp\\:h-0\\.5{height:calc(var(--hp-spacing) * .5)}.hp\\:h-1{height:var(--hp-spacing)}.hp\\:h-1\\/3{height:33.3333%}.hp\\:h-6{height:calc(var(--hp-spacing) * 6)}.hp\\:h-7{height:calc(var(--hp-spacing) * 7)}.hp\\:h-8{height:calc(var(--hp-spacing) * 8)}.hp\\:h-10{height:calc(var(--hp-spacing) * 10)}.hp\\:h-16{height:calc(var(--hp-spacing) * 16)}.hp\\:h-20{height:calc(var(--hp-spacing) * 20)}.hp\\:h-\\[var\\(--hp-ctrl-btn-size\\)\\]{height:var(--hp-ctrl-btn-size)}.hp\\:h-\\[var\\(--hp-seek-hit-h\\)\\]{height:var(--hp-seek-hit-h)}.hp\\:h-\\[var\\(--hp-seek-track-h\\)\\]{height:var(--hp-seek-track-h)}.hp\\:h-full{height:100%}.hp\\:max-h-64{max-height:calc(var(--hp-spacing) * 64)}.hp\\:max-h-80{max-height:calc(var(--hp-spacing) * 80)}.hp\\:w-0{width:0}.hp\\:w-0\\.5{width:calc(var(--hp-spacing) * .5)}.hp\\:w-1{width:var(--hp-spacing)}.hp\\:w-1\\.5{width:calc(var(--hp-spacing) * 1.5)}.hp\\:w-6{width:calc(var(--hp-spacing) * 6)}.hp\\:w-7{width:calc(var(--hp-spacing) * 7)}.hp\\:w-8{width:calc(var(--hp-spacing) * 8)}.hp\\:w-10{width:calc(var(--hp-spacing) * 10)}.hp\\:w-14{width:calc(var(--hp-spacing) * 14)}.hp\\:w-16{width:calc(var(--hp-spacing) * 16)}.hp\\:w-48{width:calc(var(--hp-spacing) * 48)}.hp\\:w-72{width:calc(var(--hp-spacing) * 72)}.hp\\:w-\\[var\\(--hp-ctrl-btn-size\\)\\]{width:var(--hp-ctrl-btn-size)}.hp\\:w-full{width:100%}.hp\\:max-w-\\[50\\%\\]{max-width:50%}.hp\\:max-w-\\[80\\%\\]{max-width:80%}.hp\\:max-w-\\[85\\%\\]{max-width:85%}.hp\\:max-w-full{max-width:100%}.hp\\:max-w-xs{max-width:var(--hp-container-xs)}.hp\\:min-w-0{min-width:0}.hp\\:flex-1{flex:1}.hp\\:flex-shrink-0,.hp\\:shrink-0{flex-shrink:0}.hp\\:animate-spin{animation:var(--hp-animate-spin)}.hp\\:cursor-pointer{cursor:pointer}.hp\\:touch-none{touch-action:none}.hp\\:list-none{list-style-type:none}.hp\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hp\\:flex-col{flex-direction:column}.hp\\:flex-wrap{flex-wrap:wrap}.hp\\:items-center{align-items:center}.hp\\:items-end{align-items:flex-end}.hp\\:justify-between{justify-content:space-between}.hp\\:justify-center{justify-content:center}.hp\\:gap-0\\.5{gap:calc(var(--hp-spacing) * .5)}.hp\\:gap-1{gap:var(--hp-spacing)}.hp\\:gap-1\\.5{gap:calc(var(--hp-spacing) * 1.5)}.hp\\:gap-2{gap:calc(var(--hp-spacing) * 2)}.hp\\:gap-3{gap:calc(var(--hp-spacing) * 3)}.hp\\:self-end{align-self:flex-end}.hp\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.hp\\:overflow-hidden{overflow:hidden}.hp\\:overflow-y-auto{overflow-y:auto}.hp\\:rounded{border-radius:.25rem}.hp\\:rounded-full{border-radius:3.40282e38px}.hp\\:rounded-lg{border-radius:var(--hp-radius-lg)}.hp\\:rounded-md{border-radius:var(--hp-radius-md)}.hp\\:border{border-style:var(--tw-border-style);border-width:1px}.hp\\:border-0{border-style:var(--tw-border-style);border-width:0}.hp\\:border-2{border-style:var(--tw-border-style);border-width:2px}.hp\\:border-\\[3px\\]{border-style:var(--tw-border-style);border-width:3px}.hp\\:border-on-surface\\/20{border-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:border-on-surface\\/20{border-color:color-mix(in oklab,var(--hp-color-on-surface) 20%,transparent)}}.hp\\:border-on-surface\\/30{border-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:border-on-surface\\/30{border-color:color-mix(in oklab,var(--hp-color-on-surface) 30%,transparent)}}.hp\\:border-t-accent{border-top-color:var(--hp-color-accent)}.hp\\:bg-accent,.hp\\:bg-accent\\/15{background-color:var(--hp-color-accent)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-accent\\/15{background-color:color-mix(in oklab,var(--hp-color-accent) 15%,transparent)}}.hp\\:bg-black,.hp\\:bg-black\\/30{background-color:var(--hp-color-black)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-black\\/30{background-color:color-mix(in oklab,var(--hp-color-black) 30%,transparent)}}.hp\\:bg-black\\/40{background-color:var(--hp-color-black)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-black\\/40{background-color:color-mix(in oklab,var(--hp-color-black) 40%,transparent)}}.hp\\:bg-black\\/60{background-color:var(--hp-color-black)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-black\\/60{background-color:color-mix(in oklab,var(--hp-color-black) 60%,transparent)}}.hp\\:bg-black\\/70{background-color:var(--hp-color-black)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-black\\/70{background-color:color-mix(in oklab,var(--hp-color-black) 70%,transparent)}}.hp\\:bg-black\\/85{background-color:var(--hp-color-black)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-black\\/85{background-color:color-mix(in oklab,var(--hp-color-black) 85%,transparent)}}.hp\\:bg-on-surface,.hp\\:bg-on-surface\\/20{background-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-on-surface\\/20{background-color:color-mix(in oklab,var(--hp-color-on-surface) 20%,transparent)}}.hp\\:bg-on-surface\\/25{background-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-on-surface\\/25{background-color:color-mix(in oklab,var(--hp-color-on-surface) 25%,transparent)}}.hp\\:bg-on-surface\\/40{background-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-on-surface\\/40{background-color:color-mix(in oklab,var(--hp-color-on-surface) 40%,transparent)}}.hp\\:bg-surface{background-color:var(--hp-color-surface)}.hp\\:bg-surface-elev{background-color:var(--hp-color-surface-elev)}.hp\\:bg-surface\\/95{background-color:var(--hp-color-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-surface\\/95{background-color:color-mix(in oklab,var(--hp-color-surface) 95%,transparent)}}.hp\\:bg-transparent{background-color:#0000}.hp\\:bg-white,.hp\\:bg-white\\/15{background-color:var(--hp-color-white)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-white\\/15{background-color:color-mix(in oklab,var(--hp-color-white) 15%,transparent)}}.hp\\:bg-white\\/30{background-color:var(--hp-color-white)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-white\\/30{background-color:color-mix(in oklab,var(--hp-color-white) 30%,transparent)}}.hp\\:bg-white\\/40{background-color:var(--hp-color-white)}@supports (color:color-mix(in lab,red,red)){.hp\\:bg-white\\/40{background-color:color-mix(in oklab,var(--hp-color-white) 40%,transparent)}}.hp\\:bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.hp\\:from-black\\/80{--tw-gradient-from:var(--hp-color-black)}@supports (color:color-mix(in lab,red,red)){.hp\\:from-black\\/80{--tw-gradient-from:color-mix(in oklab, var(--hp-color-black) 80%, transparent)}}.hp\\:from-black\\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hp\\:to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hp\\:bg-cover{background-size:cover}.hp\\:bg-center{background-position:50%}.hp\\:object-cover{object-fit:cover}.hp\\:p-0{padding:0}.hp\\:p-1\\.5{padding:calc(var(--hp-spacing) * 1.5)}.hp\\:p-2{padding:calc(var(--hp-spacing) * 2)}.hp\\:p-3{padding:calc(var(--hp-spacing) * 3)}.hp\\:p-4{padding:calc(var(--hp-spacing) * 4)}.hp\\:px-1{padding-inline:var(--hp-spacing)}.hp\\:px-1\\.5{padding-inline:calc(var(--hp-spacing) * 1.5)}.hp\\:px-2{padding-inline:calc(var(--hp-spacing) * 2)}.hp\\:px-3{padding-inline:calc(var(--hp-spacing) * 3)}.hp\\:px-4{padding-inline:calc(var(--hp-spacing) * 4)}.hp\\:px-6{padding-inline:calc(var(--hp-spacing) * 6)}.hp\\:py-1{padding-block:var(--hp-spacing)}.hp\\:py-1\\.5{padding-block:calc(var(--hp-spacing) * 1.5)}.hp\\:py-2{padding-block:calc(var(--hp-spacing) * 2)}.hp\\:pt-6{padding-top:calc(var(--hp-spacing) * 6)}.hp\\:pb-2{padding-bottom:calc(var(--hp-spacing) * 2)}.hp\\:text-center{text-align:center}.hp\\:text-left{text-align:left}.hp\\:font-mono{font-family:var(--hp-font-mono)}.hp\\:text-2xl{font-size:var(--hp-text-2xl);line-height:var(--tw-leading,var(--hp-text-2xl--line-height))}.hp\\:text-3xl{font-size:var(--hp-text-3xl);line-height:var(--tw-leading,var(--hp-text-3xl--line-height))}.hp\\:text-base{font-size:var(--hp-text-base);line-height:var(--tw-leading,var(--hp-text-base--line-height))}.hp\\:text-lg{font-size:var(--hp-text-lg);line-height:var(--tw-leading,var(--hp-text-lg--line-height))}.hp\\:text-sm{font-size:var(--hp-text-sm);line-height:var(--tw-leading,var(--hp-text-sm--line-height))}.hp\\:text-xl{font-size:var(--hp-text-xl);line-height:var(--tw-leading,var(--hp-text-xl--line-height))}.hp\\:text-xs{font-size:var(--hp-text-xs);line-height:var(--tw-leading,var(--hp-text-xs--line-height))}.hp\\:text-\\[length\\:var\\(--hp-ctrl-icon-size\\)\\]{font-size:var(--hp-ctrl-icon-size)}.hp\\:leading-none{--tw-leading:1;line-height:1}.hp\\:font-medium{--tw-font-weight:var(--hp-font-weight-medium);font-weight:var(--hp-font-weight-medium)}.hp\\:font-semibold{--tw-font-weight:var(--hp-font-weight-semibold);font-weight:var(--hp-font-weight-semibold)}.hp\\:whitespace-nowrap{white-space:nowrap}.hp\\:text-accent{color:var(--hp-color-accent)}.hp\\:text-on-accent{color:var(--hp-color-on-accent)}.hp\\:text-on-surface{color:var(--hp-color-on-surface)}.hp\\:text-on-surface-muted{color:var(--hp-color-on-surface-muted)}.hp\\:text-white{color:var(--hp-color-white)}.hp\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.hp\\:no-underline{text-decoration-line:none}.hp\\:underline{text-decoration-line:underline}.hp\\:opacity-0{opacity:0}.hp\\:opacity-60{opacity:.6}.hp\\:opacity-70{opacity:.7}.hp\\:opacity-80{opacity:.8}.hp\\:opacity-90{opacity:.9}.hp\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hp\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hp\\:drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);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,)}.hp\\:transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--hp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hp-default-transition-duration))}.hp\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--hp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hp-default-transition-duration))}.hp\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--hp-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hp-default-transition-duration))}.hp\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.hp\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.hp\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.hp\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.hp\\:will-change-\\[opacity\\]{will-change:opacity}.hp\\:select-none{-webkit-user-select:none;user-select:none}@media(hover:hover){.hp\\:group-hover\\:h-\\[var\\(--hp-seek-track-h-hover\\)\\]:is(:where(.hp\\:group):hover *){height:var(--hp-seek-track-h-hover)}.hp\\:hover\\:bg-on-surface\\/5:hover{background-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:hover\\:bg-on-surface\\/5:hover{background-color:color-mix(in oklab,var(--hp-color-on-surface) 5%,transparent)}}.hp\\:hover\\:bg-on-surface\\/10:hover{background-color:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp\\:hover\\:bg-on-surface\\/10:hover{background-color:color-mix(in oklab,var(--hp-color-on-surface) 10%,transparent)}}.hp\\:hover\\:opacity-80:hover{opacity:.8}}.hp\\:focus-visible\\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hp\\:focus-visible\\:ring-accent:focus-visible{--tw-ring-color:var(--hp-color-accent)}.hp\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.hp\\:data-\\[active\\=true\\]\\:bg-accent\\/15[data-active=true]{background-color:var(--hp-color-accent)}@supports (color:color-mix(in lab,red,red)){.hp\\:data-\\[active\\=true\\]\\:bg-accent\\/15[data-active=true]{background-color:color-mix(in oklab,var(--hp-color-accent) 15%,transparent)}}.hp\\:data-\\[active\\=true\\]\\:text-on-surface[data-active=true]{color:var(--hp-color-on-surface)}}.hp-icon{font-variant:normal;text-transform:none;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:hope-icons;font-style:normal;font-weight:400;line-height:1}.hp-icon-check:before{content:""}.hp-icon-chevron-left:before{content:""}.hp-icon-close:before{content:""}.hp-icon-fullscreen-enter:before{content:""}.hp-icon-fullscreen-exit:before{content:""}.hp-icon-loop:before{content:""}.hp-icon-pause:before{content:""}.hp-icon-pip:before{content:""}.hp-icon-play:before{content:""}.hp-icon-settings:before{content:""}.hp-icon-volume-high:before{content:""}.hp-icon-volume-low:before{content:""}.hp-icon-volume-muted:before{content:""}.hp-icon-warning:before{content:""}:host{--hp-radius:8px;--hp-chip-bg:#ffffff14;--hp-chip-bg-hover:#ffffff2e;--hp-chip-bg-active:#ffffff42;--hp-chip-border:#ffffff29;--hp-chip-border-hover:#ffffff4d;--hp-chip-blur:14px;--hp-chip-shadow:0 4px 18px #00000047, inset 0 1px 0 #ffffff12;--hp-chip-radius:10px;--hp-chip-text:var(--hp-color-on-surface,#fff);--hp-panel-bg:#ffffffb8;--hp-panel-blur:26px;--hp-panel-border:#0f11171a;--hp-panel-text:#15171c;--hp-panel-text-muted:#5b6270;--hp-panel-text-shadow:none;--hp-ctrl-btn-size:32px;--hp-ctrl-icon-size:16px;--hp-seek-hit-h:16px;--hp-seek-track-h:4px;--hp-seek-track-h-hover:6px;--hp-seek-thumb-size:12px;--hp-tooltip-bg:#ffffffe6;--hp-tooltip-text:#15171c;--hp-tooltip-key-bg:#0f11171a;--hp-tooltip-key-text:#15171c;--hp-caption-font-size:16px;--hp-caption-bg:#000000bf;--hp-caption-text:#fff;--hp-caption-radius:4px;background:var(--hp-color-surface,#0a0a0a);width:100%;color:var(--hp-color-on-surface,#fff);border-radius:var(--hp-radius);font-family:system-ui,-apple-system,sans-serif;line-height:1;display:block}.hp-chip{background:var(--hp-chip-bg);border:1px solid var(--hp-chip-border);border-radius:var(--hp-chip-radius);-webkit-backdrop-filter:blur(var(--hp-chip-blur)) saturate(160%);box-shadow:var(--hp-chip-shadow);color:var(--hp-chip-text);transition:background-color .16s,border-color .16s,box-shadow .16s,transform .12s}.hp-chip:hover{background:var(--hp-chip-bg-hover);border-color:var(--hp-chip-border-hover)}button.hp-chip:active{background:var(--hp-chip-bg-active);transform:scale(.94)}.hp-chip:focus-visible{outline:2px solid var(--hp-color-accent,#fff);outline-offset:2px}.hp-chip-panel,.hp-chip-panel:hover{background:var(--hp-panel-bg);border-color:var(--hp-panel-border);-webkit-backdrop-filter:blur(var(--hp-panel-blur)) saturate(160%);text-shadow:var(--hp-panel-text-shadow,none)}.hp-chip-panel{--hp-color-on-surface:var(--hp-panel-text);--hp-color-on-surface-muted:var(--hp-panel-text-muted);color:var(--hp-panel-text)}.hp-tooltip{background:var(--hp-tooltip-bg);color:var(--hp-tooltip-text);border-radius:calc(var(--hp-radius) * .75);-webkit-backdrop-filter:blur(12px)saturate(160%);font-weight:500;box-shadow:0 4px 14px #00000059}.hp-tooltip-key{background:var(--hp-tooltip-key-bg);min-width:16px;height:16px;color:var(--hp-tooltip-key-text);text-transform:uppercase;border-radius:4px;justify-content:center;align-items:center;padding:0 4px;font-size:10px;font-weight:700;line-height:16px;display:inline-flex}.hp-group{background:var(--hp-chip-bg);border:1px solid var(--hp-chip-border);-webkit-backdrop-filter:blur(var(--hp-chip-blur)) saturate(160%);box-shadow:var(--hp-chip-shadow);border-radius:9999px}.hp-group button.hp-chip{box-shadow:none;-webkit-backdrop-filter:none;background:0 0;border-color:#0000}.hp-group button.hp-chip:hover{background:var(--hp-chip-bg-hover)}.hp-group button.hp-chip:active{background:var(--hp-chip-bg-active)}:host([data-theme=glass-dark]),:host([data-theme=neo-dark]),:host([data-theme=mono]){--hp-panel-bg:#0a0a0e8c;--hp-panel-border:#ffffff1a;--hp-panel-text:#fff;--hp-panel-text-muted:#a3a3a3;--hp-panel-text-shadow:0 1px 3px #000000a6;--hp-tooltip-bg:#0a0a0aeb;--hp-tooltip-text:#fff;--hp-tooltip-key-bg:#ffffff2e;--hp-tooltip-key-text:#fff}:host([data-theme=glass-dark]){--hp-chip-bg:#0a0a0e73;--hp-chip-bg-hover:#0a0a0e9e;--hp-chip-bg-active:#0a0a0ebf;--hp-chip-border:#ffffff14;--hp-chip-border-hover:#ffffff29;--hp-chip-shadow:0 4px 18px #0006, inset 0 1px 0 #ffffff0a;--hp-panel-bg:#08080cb8}:host([data-theme=neo-dark]){--hp-chip-bg:#24242a;--hp-chip-bg-hover:#2a2a31;--hp-chip-bg-active:#1e1e23;--hp-chip-border:transparent;--hp-chip-border-hover:transparent;--hp-chip-blur:0px;--hp-chip-shadow:5px 5px 10px #00000080, -4px -4px 9px #ffffff09;--hp-chip-radius:12px;--hp-color-surface:#1b1b20;--hp-panel-bg:#1e1e23;--hp-panel-text-shadow:none}:host([data-theme=neo-dark]) button.hp-chip:active{box-shadow:inset 3px 3px 6px #00000080,inset -2px -2px 5px #ffffff08}:host([data-theme=mono]){--hp-chip-bg:#ffffff0a;--hp-chip-bg-hover:#ffffff1a;--hp-chip-border:#ffffff14;--hp-chip-border-hover:#ffffff24;--hp-chip-blur:0px;--hp-chip-shadow:none;--hp-panel-bg:#0a0a0aeb;--hp-panel-text-shadow:none}@media(pointer:coarse){:host{--hp-ctrl-btn-size:40px;--hp-ctrl-icon-size:18px;--hp-seek-hit-h:22px;--hp-seek-track-h:5px;--hp-seek-track-h-hover:7px;--hp-seek-thumb-size:14px;--hp-caption-font-size:19px}}:host(:fullscreen),:host(:-webkit-full-screen){--hp-ctrl-btn-size:44px;--hp-ctrl-icon-size:20px;--hp-seek-hit-h:26px;--hp-seek-track-h:6px;--hp-seek-track-h-hover:8px;--hp-seek-thumb-size:18px;--hp-caption-font-size:22px}:host(:fullscreen) [part=control-bar],:host(:-webkit-full-screen) [part=control-bar]{padding:28px 20px 18px}.video-area{aspect-ratio:16/9;border-radius:var(--hp-radius);background:var(--hp-color-surface,#0a0a0a);width:100%;position:relative;overflow:hidden}.video-area[data-compact]{--hp-caption-font-size:13px}.video-area[data-story]{aspect-ratio:9/16;max-width:49.5vh;max-height:88vh;margin:0 auto}.media-layer{position:absolute;top:0;right:0;bottom:0;left:0}.media-layer video{object-fit:contain;background:#000;width:100%;height:100%}.hp-center-x{transform:translate(-50%)}.hp-center-y{transform:translateY(-50%)}.hp-top-bar{pointer-events:none;display:flex;position:absolute;top:8px;right:8px}.hp-top-bar>*{pointer-events:auto}.hp-unmute-badge{z-index:25;background:var(--hp-tooltip-bg);color:var(--hp-tooltip-text);-webkit-backdrop-filter:blur(12px)saturate(160%);font:inherit;cursor:pointer;border:0;border-radius:9999px;align-items:center;gap:6px;padding:6px 12px 6px 10px;font-size:13px;font-weight:600;display:none;position:absolute;top:10px;left:10px;box-shadow:0 4px 14px #00000059}@media(hover:none)and (pointer:coarse){.hp-volume{display:none!important}.hp-unmute-badge[data-visible]{display:inline-flex}}.hp-seek-thumb{width:var(--hp-seek-thumb-size);height:var(--hp-seek-thumb-size);background:var(--hp-color-accent);will-change:translate,scale;pointer-events:none;z-index:2;border-radius:9999px;transition:scale .15s;position:absolute;left:0;scale:.5}.hp-seekbar:hover .hp-seek-thumb,.hp-seekbar:active .hp-seek-thumb,.hp-seekbar:focus-visible .hp-seek-thumb{scale:1}.hp-seekbar[data-no-duration] .hp-seek-thumb{display:none}.hp-seek-hover-dot{width:var(--hp-seek-track-h-hover);height:var(--hp-seek-track-h-hover);background:var(--hp-color-on-surface);opacity:0;pointer-events:none;z-index:1;border-radius:9999px;transition:opacity .12s;position:absolute;top:50%;left:0;box-shadow:0 0 0 1px #00000073}.hp-seek-hover-dot[data-visible]{opacity:.9}.hp-mini-progress{z-index:6;pointer-events:none;background:var(--hp-color-on-surface);height:1px;position:absolute;bottom:0;left:0;right:0}@supports (color:color-mix(in lab,red,red)){.hp-mini-progress{background:color-mix(in srgb,var(--hp-color-on-surface) 25%,transparent)}}.hp-mini-progress{opacity:0;transition:opacity .2s}.hp-mini-progress[data-visible]:not([data-disabled]){opacity:1}.hp-mini-progress-fill{transform-origin:0;will-change:transform;position:absolute;top:0;right:0;bottom:0;left:0;transform:scaleX(0)}.hp-mini-progress-buffered{background:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp-mini-progress-buffered{background:color-mix(in srgb,var(--hp-color-on-surface) 40%,transparent)}}.hp-mini-progress-played{background:var(--hp-color-accent)}.hp-seek-time{border-radius:calc(var(--hp-radius) * .75);background:var(--hp-tooltip-bg);color:var(--hp-tooltip-text);-webkit-backdrop-filter:blur(12px)saturate(160%);font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;visibility:hidden;z-index:20;padding:3px 7px;font-size:12px;font-weight:500;position:absolute;bottom:calc(100% + 8px);left:0;box-shadow:0 4px 14px #00000059}.hp-seek-time[data-visible]{visibility:visible}.hp-sprite-tooltip{pointer-events:none;visibility:hidden;z-index:20;flex-direction:column;align-items:center;gap:4px;display:flex;position:absolute;bottom:calc(100% + 8px);left:0}.hp-sprite-tooltip[data-visible]{visibility:visible}.hp-sprite-image{border-radius:calc(var(--hp-radius) * .75);border:2px solid var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp-sprite-image{border:2px solid color-mix(in srgb,var(--hp-color-on-surface) 85%,transparent)}}.hp-sprite-image{background-color:#000;background-repeat:no-repeat;box-shadow:0 4px 14px #00000059}.hp-sprite-time{background:var(--hp-tooltip-bg);color:var(--hp-tooltip-text);font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:4px;padding:2px 6px;font-size:12px}.hp-live-badge{height:var(--hp-ctrl-btn-size);color:var(--hp-color-on-surface);font:inherit;letter-spacing:.04em;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:9999px;align-items:center;gap:6px;padding:0 8px;font-size:12px;font-weight:600;display:inline-flex}.hp-live-badge:hover{background:var(--hp-chip-bg-hover)}.hp-live-badge:focus-visible{outline:2px solid var(--hp-color-accent);outline-offset:2px}.hp-live-dot{background:var(--hp-live-color,red);border-radius:50%;width:8px;height:8px;transition:background-color .16s}.hp-live-badge[data-behind]{color:var(--hp-color-on-surface-muted)}.hp-live-badge[data-behind] .hp-live-dot{background:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp-live-badge[data-behind] .hp-live-dot{background:color-mix(in srgb,var(--hp-color-on-surface) 45%,transparent)}}.hp-chapters{pointer-events:none;inset-inline:0;align-items:center;gap:2px;display:flex;position:absolute;top:0;bottom:0}.hp-chapter{min-width:1px;height:var(--hp-seek-track-h);background:var(--hp-color-on-surface);border-radius:1px;position:relative;overflow:hidden}@supports (color:color-mix(in lab,red,red)){.hp-chapter{background:color-mix(in srgb,var(--hp-color-on-surface) 25%,transparent)}}.hp-chapter{transition:height .15s}.hp-seekbar:hover .hp-chapter{height:var(--hp-seek-track-h-hover)}.hp-seekbar .hp-chapter[data-hover]{height:calc(var(--hp-seek-track-h-hover) * 1.6)}.hp-chapter-fill{transform-origin:0;will-change:transform;position:absolute;top:0;right:0;bottom:0;left:0;transform:scaleX(0)}.hp-chapter-buffered{background:var(--hp-color-on-surface)}@supports (color:color-mix(in lab,red,red)){.hp-chapter-buffered{background:color-mix(in srgb,var(--hp-color-on-surface) 40%,transparent)}}.hp-chapter-played{background:var(--hp-color-accent)}.hp-chapter-tooltip{background:var(--hp-tooltip-bg);max-width:240px;color:var(--hp-tooltip-text);border-radius:calc(var(--hp-radius) * .75);-webkit-backdrop-filter:blur(12px)saturate(160%);text-align:center;pointer-events:none;white-space:nowrap;visibility:hidden;z-index:40;flex-direction:column;align-items:center;gap:2px;padding:4px 8px;font-size:12px;line-height:1.3;display:flex;position:absolute;bottom:calc(100% + 6px);left:0;box-shadow:0 4px 14px #00000059}.hp-chapter-tooltip[data-visible]{visibility:visible}.hp-chapter-tooltip-title{text-overflow:ellipsis;max-width:100%;font-weight:600;overflow:hidden}.hp-chapter-tooltip-time{opacity:.75;font-variant-numeric:tabular-nums}:host([data-sticky]){z-index:2147483000;border-radius:var(--hp-radius);box-shadow:0 8px 28px #00000073;aspect-ratio:16/9!important;width:min(360px,92vw)!important;position:fixed!important}:host([data-sticky][data-sticky-corner=br]){inset:auto 16px 16px auto}:host([data-sticky][data-sticky-corner=bl]){inset:auto auto 16px 16px}:host([data-sticky][data-sticky-corner=tr]){inset:16px 16px auto auto}:host([data-sticky][data-sticky-corner=tl]){inset:16px auto auto 16px}.hp-caption-layer{z-index:5;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}.hp-caption-bubble{background:var(--hp-caption-bg);width:max-content;max-width:86%;color:var(--hp-caption-text);border-radius:var(--hp-caption-radius);font-size:calc(var(--hp-caption-font-size) * var(--hp-caption-size-multiplier,1));text-align:center;white-space:pre-line;cursor:grab;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;padding:.3em .6em;line-height:1.4;transition:transform .18s;display:none;position:absolute;bottom:0;left:50%;transform:translate(-50%)}.hp-caption-bubble.hp-caption-visible{display:inline-block}.hp-caption-bubble.hp-caption-dragging,.hp-caption-bubble.hp-caption-no-transition{transition:none}.hp-caption-bubble.hp-caption-dragging{cursor:grabbing}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}';
5
- function U(a, e) {
6
- return e === "application/x-mpegURL" || e === "application/vnd.apple.mpegurl" ? !0 : /\.m3u8($|\?)/i.test(a);
7
- }
8
- class W {
9
- constructor(e, t) {
10
- i(this, "hls", null);
11
- i(this, "video");
12
- i(this, "onLevelsChanged");
13
- this.video = e, this.onLevelsChanged = t;
14
- }
15
- async load(e, t) {
16
- if (this.destroy(), !U(e, t)) {
17
- this.video.src = e;
18
- return;
19
- }
20
- if (this.video.canPlayType("application/vnd.apple.mpegurl")) {
21
- this.video.src = e;
22
- return;
23
- }
24
- const { default: r } = await import("./hls-CfP6MPo0.js");
25
- if (!r.isSupported()) {
26
- this.video.src = e;
27
- return;
28
- }
29
- const s = new r({ enableWorker: !0 });
30
- this.hls = s, s.on(r.Events.MANIFEST_PARSED, () => {
31
- const o = s.levels.map((l, p) => ({
32
- index: p,
33
- height: l.height,
34
- bitrate: l.bitrate
35
- }));
36
- this.onLevelsChanged(o, s.currentLevel);
37
- }), s.on(r.Events.LEVEL_SWITCHED, (o, l) => {
38
- this.onLevelsChanged(
39
- s.levels.map((p, n) => ({ index: n, height: p.height, bitrate: p.bitrate })),
40
- l.level
41
- );
42
- }), s.attachMedia(this.video), s.loadSource(e);
43
- }
44
- /** -1 = otomatik (ABR). */
45
- setLevel(e) {
46
- this.hls && (this.hls.currentLevel = e);
47
- }
48
- destroy() {
49
- this.hls && (this.hls.destroy(), this.hls = null);
50
- }
51
- }
52
- function y(a) {
53
- if (!Number.isFinite(a) || a < 0) return "0:00";
54
- const e = Math.floor(a), t = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), s = e % 60, o = t > 0 ? String(r).padStart(2, "0") : String(r), l = String(s).padStart(2, "0");
55
- return t > 0 ? `${t}:${o}:${l}` : `${o}:${l}`;
56
- }
57
- class Y {
58
- constructor(e, t) {
59
- i(this, "el");
60
- i(this, "trackEl");
61
- i(this, "chaptersEl", null);
62
- i(this, "chapters", []);
63
- /** İmlecin üstündeki zaman (varsayılan, plugin gerektirmez) — kendi zamanını gösteren plugin'ler `suppressHoverTime` ile gizler. */
64
- i(this, "hoverTimeEl");
65
- i(this, "hoverTimeSuppressors", /* @__PURE__ */ new Set());
66
- i(this, "playedEl");
67
- i(this, "bufferedEl");
68
- i(this, "thumbEl");
69
- i(this, "hoverDotEl");
70
- i(this, "video");
71
- i(this, "labels");
72
- i(this, "dragging", !1);
73
- i(this, "markerEls", []);
74
- i(this, "trackWidth", 0);
75
- i(this, "resizeObserver");
76
- i(this, "rafId", null);
77
- i(this, "onHoverMove", (e) => {
78
- const t = this.video.duration, r = Number.isFinite(t) && t > 0, s = this.ratioAtClientX(e.clientX);
79
- if (r && !this.dragging ? (this.hoverDotEl.style.transform = `translate(${this.xAtRatio(s)}px, -50%) translateX(-50%)`, this.hoverDotEl.setAttribute("data-visible", "")) : this.hoverDotEl.removeAttribute("data-visible"), this.hoverTimeSuppressors.size || !r) {
80
- this.hoverTimeEl.removeAttribute("data-visible");
81
- return;
82
- }
83
- this.hoverTimeEl.textContent = y(s * t), this.hoverTimeEl.setAttribute("data-visible", "");
84
- const o = this.el.getBoundingClientRect(), l = this.hoverTimeEl.offsetWidth, p = Math.min(Math.max(e.clientX - o.left - l / 2, 0), Math.max(o.width - l, 0));
85
- this.hoverTimeEl.style.transform = `translateX(${p}px)`;
86
- });
87
- i(this, "onHoverLeave", () => {
88
- this.hoverTimeEl.removeAttribute("data-visible"), this.hoverDotEl.removeAttribute("data-visible");
89
- });
90
- i(this, "onPointerDown", (e) => {
91
- this.dragging = !0, this.hoverDotEl.removeAttribute("data-visible"), this.el.setPointerCapture(e.pointerId), this.seekToRatio(this.ratioFromEvent(e)), this.el.addEventListener("pointermove", this.onPointerMove), this.el.addEventListener("pointerup", this.onPointerUp);
92
- });
93
- i(this, "onPointerMove", (e) => {
94
- this.dragging && this.seekToRatio(this.ratioFromEvent(e));
95
- });
96
- i(this, "onPointerUp", (e) => {
97
- this.dragging = !1, this.el.releasePointerCapture(e.pointerId), this.el.removeEventListener("pointermove", this.onPointerMove), this.el.removeEventListener("pointerup", this.onPointerUp);
98
- });
99
- i(this, "onKeyDown", (e) => {
100
- const t = this.video.duration || 0;
101
- !Number.isFinite(t) || t <= 0 || (e.key === "ArrowRight" ? (this.video.currentTime = Math.min(t, this.video.currentTime + 5), e.preventDefault()) : e.key === "ArrowLeft" && (this.video.currentTime = Math.max(0, this.video.currentTime - 5), e.preventDefault()));
102
- });
103
- i(this, "startLoop", () => {
104
- if (this.rafId !== null) return;
105
- const e = () => {
106
- this.render(), this.rafId = requestAnimationFrame(e);
107
- };
108
- this.rafId = requestAnimationFrame(e);
109
- });
110
- i(this, "stopLoop", () => {
111
- this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.render();
112
- });
113
- i(this, "render", () => {
114
- const e = this.video.duration;
115
- if (this.el.toggleAttribute("data-no-duration", !Number.isFinite(e) || e <= 0), !Number.isFinite(e) || e <= 0) {
116
- this.playedEl.style.transform = "scaleX(0)", this.thumbEl.style.translate = "-50% 0", this.bufferedEl.style.transform = "scaleX(0)";
117
- return;
118
- }
119
- const t = this.video.currentTime / e;
120
- this.thumbEl.style.translate = `calc(${this.xAtRatio(t)}px - 50%) 0`;
121
- let r = 0;
122
- for (let o = 0; o < this.video.buffered.length; o++)
123
- this.video.buffered.start(o) <= this.video.currentTime && (r = Math.max(r, this.video.buffered.end(o)));
124
- const s = r / e;
125
- if (this.chapters.length)
126
- for (const o of this.chapters) {
127
- const l = o.end - o.start, p = (n) => l > 0 ? Math.min(1, Math.max(0, (n - o.start) / l)) : 0;
128
- o.playedEl.style.transform = `scaleX(${p(t)})`, o.bufferedEl.style.transform = `scaleX(${p(s)})`;
129
- }
130
- else
131
- this.playedEl.style.transform = `scaleX(${t})`, this.bufferedEl.style.transform = `scaleX(${s})`;
132
- this.el.setAttribute("aria-valuemax", String(Math.floor(e))), this.el.setAttribute("aria-valuenow", String(Math.floor(this.video.currentTime)));
133
- });
134
- this.video = e, this.labels = t, this.el = document.createElement("div"), this.el.setAttribute("part", "seek-bar"), this.el.className = "hp-seekbar hp:relative hp:h-[var(--hp-seek-hit-h)] hp:flex hp:items-center hp:cursor-pointer hp:group hp:touch-none", this.el.setAttribute("role", "slider"), this.el.setAttribute("tabindex", "0"), this.el.setAttribute("aria-label", t.seekBar), this.el.setAttribute("aria-valuemin", "0");
135
- const r = document.createElement("div");
136
- r.className = "hp:absolute hp:inset-x-0 hp:h-[var(--hp-seek-track-h)] hp:rounded-full hp:bg-on-surface/25 hp:group-hover:h-[var(--hp-seek-track-h-hover)] hp:transition-[height] hp:duration-150", this.el.appendChild(r), this.trackEl = r, this.bufferedEl = document.createElement("div"), this.bufferedEl.className = "hp:absolute hp:inset-0 hp:rounded-full hp:bg-on-surface/40", this.bufferedEl.style.transformOrigin = "left", this.bufferedEl.style.willChange = "transform", r.appendChild(this.bufferedEl), this.playedEl = document.createElement("div"), this.playedEl.className = "hp:absolute hp:inset-0 hp:rounded-full hp:bg-accent", this.playedEl.style.transformOrigin = "left", this.playedEl.style.willChange = "transform", r.appendChild(this.playedEl), this.thumbEl = document.createElement("div"), this.thumbEl.className = "hp-seek-thumb", this.thumbEl.setAttribute("part", "seek-thumb"), this.el.appendChild(this.thumbEl), this.hoverDotEl = document.createElement("div"), this.hoverDotEl.className = "hp-seek-hover-dot", this.hoverDotEl.setAttribute("part", "seek-hover-dot"), this.el.appendChild(this.hoverDotEl), this.hoverTimeEl = document.createElement("div"), this.hoverTimeEl.className = "hp-seek-time", this.hoverTimeEl.setAttribute("part", "seek-time"), this.el.appendChild(this.hoverTimeEl), this.el.addEventListener("pointerdown", this.onPointerDown), this.el.addEventListener("pointermove", this.onHoverMove), this.el.addEventListener("pointerleave", this.onHoverLeave), this.el.addEventListener("keydown", this.onKeyDown), e.addEventListener("play", this.startLoop), e.addEventListener("pause", this.stopLoop), e.addEventListener("ended", this.stopLoop), e.addEventListener("timeupdate", this.render), e.addEventListener("progress", this.render), e.addEventListener("loadedmetadata", this.render), e.paused || this.startLoop(), this.resizeObserver = new ResizeObserver(() => {
137
- this.trackWidth = this.el.getBoundingClientRect().width, this.measureChapters(), this.render();
138
- }), this.resizeObserver.observe(this.el), this.trackWidth = this.el.getBoundingClientRect().width;
139
- }
140
- /** Kendi zamanını gösteren plugin'ler (sprite/segments) varsayılan hover zamanını gizler — keyed set. */
141
- suppressHoverTime(e, t) {
142
- t ? this.hoverTimeSuppressors.add(e) : this.hoverTimeSuppressors.delete(e), t && this.hoverTimeEl.removeAttribute("data-visible");
143
- }
144
- ratioFromEvent(e) {
145
- return this.ratioAtClientX(e.clientX);
146
- }
147
- /** Ekran x koordinatını 0–1 zaman oranına çevirir — chapter modunda parça boşluklarını hesaba katar (segments plugin'inin hover popup'ı da bunu kullanıyor). */
148
- ratioAtClientX(e) {
149
- const t = this.el.getBoundingClientRect(), r = e - t.left;
150
- if (!this.chapters.length) return Math.min(1, Math.max(0, r / t.width));
151
- for (let s = 0; s < this.chapters.length; s++) {
152
- const o = this.chapters[s], l = this.chapters[s + 1], p = l ? l.left : 1 / 0;
153
- if (r < p || !l) {
154
- const n = o.width > 0 ? Math.min(1, Math.max(0, (r - o.left) / o.width)) : 0;
155
- return o.start + n * (o.end - o.start);
156
- }
157
- }
158
- return 1;
159
- }
160
- /** 0–1 zaman oranının seek bar üzerindeki px konumu (thumb için). */
161
- xAtRatio(e) {
162
- if (!this.chapters.length) return e * this.trackWidth;
163
- const t = this.chapters.find((o) => e < o.end) ?? this.chapters[this.chapters.length - 1], r = t.end - t.start, s = r > 0 ? Math.min(1, Math.max(0, (e - t.start) / r)) : 0;
164
- return t.left + s * t.width;
165
- }
166
- /** Track'i sıralı, 0→1'i kesintisiz kapsayan oran aralıklarına göre ayrı parçalara böler. */
167
- setChapters(e) {
168
- if (this.clearChapters(), !e.length) return [];
169
- const t = document.createElement("div");
170
- return t.className = "hp-chapters", this.chapters = e.map((r) => {
171
- const s = document.createElement("div");
172
- s.className = "hp-chapter", s.setAttribute("part", "segment-band"), s.style.flex = `${Math.max(r.end - r.start, 0)} 1 0px`;
173
- const o = document.createElement("div");
174
- o.className = "hp-chapter-fill hp-chapter-buffered";
175
- const l = document.createElement("div");
176
- return l.className = "hp-chapter-fill hp-chapter-played", r.color && (l.style.background = r.color), s.append(o, l), t.appendChild(s), { ...r, el: s, bufferedEl: o, playedEl: l, left: 0, width: 0 };
177
- }), this.trackEl.style.display = "none", this.trackEl.after(t), this.chaptersEl = t, this.measureChapters(), this.render(), this.chapters.map((r) => r.el);
178
- }
179
- clearChapters() {
180
- var e;
181
- (e = this.chaptersEl) == null || e.remove(), this.chaptersEl = null, this.chapters = [], this.trackEl.style.display = "", this.render();
182
- }
183
- measureChapters() {
184
- if (!this.chapters.length) return;
185
- const e = this.el.getBoundingClientRect().left;
186
- for (const t of this.chapters) {
187
- const r = t.el.getBoundingClientRect();
188
- t.left = r.left - e, t.width = r.width;
189
- }
190
- }
191
- seekToRatio(e) {
192
- const t = this.video.duration;
193
- !Number.isFinite(t) || t <= 0 || (this.video.currentTime = e * t, this.render());
194
- }
195
- /** 0–1 arası oranda, seek bar üzerine ince bir işaret çizgisi ekler (ör. loop A/B noktaları). */
196
- addMarker(e, t = "") {
197
- const r = document.createElement("div");
198
- return r.className = `hp:absolute hp:top-0 hp:bottom-0 hp:w-0.5 hp:bg-on-surface hp:pointer-events-none ${t}`, r.style.left = `${Math.min(1, Math.max(0, e)) * 100}%`, this.el.appendChild(r), this.markerEls.push(r), r;
199
- }
200
- clearMarkers() {
201
- this.markerEls.forEach((e) => e.remove()), this.markerEls.length = 0;
202
- }
203
- refreshLabels() {
204
- this.el.setAttribute("aria-label", this.labels.seekBar);
205
- }
206
- destroy() {
207
- var e;
208
- this.rafId !== null && cancelAnimationFrame(this.rafId), this.resizeObserver.disconnect(), this.el.removeEventListener("pointermove", this.onHoverMove), this.el.removeEventListener("pointerleave", this.onHoverLeave), this.video.removeEventListener("play", this.startLoop), this.video.removeEventListener("pause", this.stopLoop), this.video.removeEventListener("ended", this.stopLoop), this.video.removeEventListener("timeupdate", this.render), this.video.removeEventListener("progress", this.render), this.video.removeEventListener("loadedmetadata", this.render), this.clearMarkers(), (e = this.chaptersEl) == null || e.remove();
209
- }
210
- }
211
- function v(a, e = "") {
212
- const t = document.createElement("i");
213
- return t.className = `hp-icon hp-icon-${a}${e ? ` ${e}` : ""}`, t.setAttribute("aria-hidden", "true"), t;
214
- }
215
- function x(a, e) {
216
- a.className = a.className.replace(/hp-icon-[\w-]+/, `hp-icon-${e}`);
217
- }
218
- const E = 0.05, Q = 150;
219
- class j {
220
- constructor(e, t, r) {
221
- i(this, "el");
222
- /** Dokunmatikte ses butonu gizli; sessiz oynarken görünen "Sesi aç" rozeti (chrome dışında monte edilir, otomatik gizlenmez). */
223
- i(this, "unmuteBadge");
224
- i(this, "unmuteText");
225
- i(this, "button");
226
- i(this, "iconEl");
227
- i(this, "slider");
228
- i(this, "sliderFill");
229
- i(this, "video");
230
- i(this, "labels");
231
- i(this, "adHooks");
232
- i(this, "dragging", !1);
233
- i(this, "hideTimer", null);
234
- i(this, "openNow", () => {
235
- this.hideTimer && (clearTimeout(this.hideTimer), this.hideTimer = null), this.slider.style.opacity = "1", this.slider.style.pointerEvents = "auto";
236
- });
237
- i(this, "scheduleHide", () => {
238
- this.hideTimer && clearTimeout(this.hideTimer), this.hideTimer = setTimeout(() => {
239
- this.hideTimer = null, this.slider.style.opacity = "0", this.slider.style.pointerEvents = "none";
240
- }, Q);
241
- });
242
- i(this, "onWheel", (e) => {
243
- if (e.preventDefault(), this.adHooks.isAdActive()) {
244
- const s = this.adHooks.getVolume();
245
- this.adHooks.setVolume(Math.min(1, Math.max(0, s + (e.deltaY < 0 ? E : -E)))), this.render();
246
- return;
247
- }
248
- const t = this.video.muted ? 0 : this.video.volume, r = Math.min(1, Math.max(0, t + (e.deltaY < 0 ? E : -E)));
249
- this.video.volume = r, this.video.muted = r === 0;
250
- });
251
- i(this, "onToggleMute", () => {
252
- if (this.adHooks.isAdActive()) {
253
- this.adHooks.toggleMute(), this.render();
254
- return;
255
- }
256
- this.video.muted = !this.video.muted, !this.video.muted && this.video.volume === 0 && (this.video.volume = 0.5);
257
- });
258
- i(this, "onSliderPointerDown", (e) => {
259
- this.dragging = !0, this.slider.setPointerCapture(e.pointerId), this.setFromClientY(e.clientY), this.slider.addEventListener("pointermove", this.onSliderPointerMove), this.slider.addEventListener("pointerup", this.onSliderPointerUp);
260
- });
261
- i(this, "onSliderPointerMove", (e) => {
262
- this.dragging && this.setFromClientY(e.clientY);
263
- });
264
- i(this, "onSliderPointerUp", (e) => {
265
- this.dragging = !1, this.slider.releasePointerCapture(e.pointerId), this.slider.removeEventListener("pointermove", this.onSliderPointerMove), this.slider.removeEventListener("pointerup", this.onSliderPointerUp);
266
- });
267
- i(this, "onSliderKeyDown", (e) => {
268
- if (this.adHooks.isAdActive()) {
269
- if (e.key === "ArrowUp")
270
- this.adHooks.setVolume(Math.min(1, this.adHooks.getVolume() + 0.1)), e.preventDefault();
271
- else if (e.key === "ArrowDown")
272
- this.adHooks.setVolume(Math.max(0, this.adHooks.getVolume() - 0.1)), e.preventDefault();
273
- else
274
- return;
275
- this.render();
276
- return;
277
- }
278
- e.key === "ArrowUp" ? (this.video.volume = Math.min(1, this.video.volume + 0.1), this.video.muted = !1, e.preventDefault()) : e.key === "ArrowDown" && (this.video.volume = Math.max(0, this.video.volume - 0.1), e.preventDefault());
279
- });
280
- i(this, "render", () => {
281
- const e = this.adHooks.isAdActive() ? this.adHooks.getVolume() : this.video.muted ? 0 : this.video.volume;
282
- this.sliderFill.style.height = `${e * 100}%`, this.slider.setAttribute("aria-valuenow", String(Math.round(e * 100)));
283
- const t = e === 0 ? this.labels.unmute : this.labels.mute;
284
- this.button.setAttribute("aria-label", t);
285
- const r = this.adHooks.isAdActive() || !this.video.paused;
286
- this.unmuteBadge.toggleAttribute("data-visible", e === 0 && r), this.unmuteText.textContent = this.labels.unmute, e === 0 ? x(this.iconEl, "volume-muted") : e < 0.5 ? x(this.iconEl, "volume-low") : x(this.iconEl, "volume-high");
287
- });
288
- this.video = e, this.labels = t, this.adHooks = r, this.el = document.createElement("div"), this.el.className = "hp-volume hp:relative hp:flex hp:items-center", this.unmuteBadge = document.createElement("button"), this.unmuteBadge.type = "button", this.unmuteBadge.className = "hp-unmute-badge", this.unmuteBadge.setAttribute("part", "unmute-badge"), this.unmuteBadge.appendChild(v("volume-muted", "hp:text-base")), this.unmuteText = document.createElement("span"), this.unmuteText.textContent = t.unmute, this.unmuteBadge.appendChild(this.unmuteText), this.unmuteBadge.addEventListener("pointerdown", (o) => o.stopPropagation()), this.unmuteBadge.addEventListener("click", (o) => {
289
- o.stopPropagation(), this.unmute();
290
- }), this.button = document.createElement("button"), this.button.type = "button", this.button.setAttribute("part", "volume-button"), this.button.className = "hp-chip hp:flex hp:items-center hp:justify-center hp:w-[var(--hp-ctrl-btn-size)] hp:h-[var(--hp-ctrl-btn-size)] hp:cursor-pointer", this.button.setAttribute("aria-label", t.mute), this.button.dataset.shortcut = "M", this.iconEl = v("volume-high", "hp:text-[length:var(--hp-ctrl-icon-size)]"), this.button.appendChild(this.iconEl), this.el.appendChild(this.button), this.slider = document.createElement("div"), this.slider.setAttribute("part", "volume-slider"), this.slider.className = "hp-chip hp:absolute hp:bottom-full hp:left-1/2 hp-center-x hp:mb-2 hp:w-7 hp:h-20 hp:rounded-full hp:cursor-pointer hp:flex hp:items-end hp:justify-center hp:p-1.5 hp:pointer-events-none hp:transition-opacity hp:duration-150 hp:will-change-[opacity]", this.slider.style.opacity = "0", this.slider.style.borderRadius = "9999px", this.slider.setAttribute("role", "slider"), this.slider.setAttribute("tabindex", "0"), this.slider.setAttribute("aria-label", t.volume), this.slider.setAttribute("aria-orientation", "vertical"), this.slider.setAttribute("aria-valuemin", "0"), this.slider.setAttribute("aria-valuemax", "100");
291
- const s = document.createElement("div");
292
- s.className = "hp:relative hp:w-1.5 hp:h-full hp:rounded-full hp:bg-on-surface/25 hp:overflow-hidden", this.slider.appendChild(s), this.sliderFill = document.createElement("div"), this.sliderFill.className = "hp:absolute hp:inset-x-0 hp:bottom-0 hp:bg-accent", s.appendChild(this.sliderFill), this.el.appendChild(this.slider), this.button.addEventListener("click", this.onToggleMute), this.slider.addEventListener("pointerdown", this.onSliderPointerDown), this.slider.addEventListener("keydown", this.onSliderKeyDown), this.el.addEventListener("mouseenter", this.openNow), this.el.addEventListener("mouseleave", this.scheduleHide), this.el.addEventListener("focusin", this.openNow), this.el.addEventListener("focusout", this.scheduleHide), this.el.addEventListener("wheel", this.onWheel, { passive: !1 }), e.addEventListener("volumechange", this.render), e.addEventListener("play", this.render), e.addEventListener("pause", this.render), this.render();
293
- }
294
- /** "Sesi aç" rozeti: yalnızca AÇAR (toggle değil) — reklam sırasında reklamın sesini. */
295
- unmute() {
296
- if (this.adHooks.isAdActive()) {
297
- this.adHooks.getVolume() === 0 && this.adHooks.toggleMute(), this.render();
298
- return;
299
- }
300
- this.video.muted = !1, this.video.volume === 0 && (this.video.volume = 0.5);
301
- }
302
- /** Dikey çubukta: üst = tam ses (1), alt = sessiz (0) — Y ekseni ters çevrilir. */
303
- setFromClientY(e) {
304
- const t = this.slider.getBoundingClientRect(), r = t.height > 0 ? 1 - Math.min(1, Math.max(0, (e - t.top) / t.height)) : 0;
305
- if (this.adHooks.isAdActive()) {
306
- this.adHooks.setVolume(r), this.render();
307
- return;
308
- }
309
- this.video.volume = r, this.video.muted = r === 0;
310
- }
311
- refreshLabels() {
312
- this.slider.setAttribute("aria-label", this.labels.volume), this.render();
313
- }
314
- /** Reklam modu açılıp/kapanınca (`ControlBar.setAdMode`) görüntüyü hemen ad/içerik ses kaynağına göre tazeler — `volumechange` event'i beklemeden. */
315
- refreshForAdMode() {
316
- this.render();
317
- }
318
- setIconColor(e) {
319
- this.iconEl.style.color = e;
320
- }
321
- setSliderFillColor(e) {
322
- this.sliderFill.style.background = e;
323
- }
324
- destroy() {
325
- this.hideTimer && clearTimeout(this.hideTimer), this.el.removeEventListener("mouseenter", this.openNow), this.el.removeEventListener("mouseleave", this.scheduleHide), this.el.removeEventListener("focusin", this.openNow), this.el.removeEventListener("focusout", this.scheduleHide), this.el.removeEventListener("wheel", this.onWheel), this.video.removeEventListener("volumechange", this.render), this.video.removeEventListener("play", this.render), this.video.removeEventListener("pause", this.render), this.unmuteBadge.remove();
326
- }
327
- }
328
- class K {
329
- constructor(e, t, r) {
330
- i(this, "el");
331
- i(this, "button");
332
- i(this, "panel");
333
- i(this, "video");
334
- i(this, "playbackRates");
335
- i(this, "labels");
336
- i(this, "qualities", []);
337
- i(this, "activeQualityLabel");
338
- i(this, "captions", []);
339
- i(this, "activeCaptionLabel");
340
- i(this, "captionAppearance", null);
341
- i(this, "qrResumeToggle", null);
342
- i(this, "open", !1);
343
- i(this, "currentPanel", "main");
344
- i(this, "submenus", []);
345
- i(this, "onDocumentClick", (e) => {
346
- this.open && !e.composedPath().includes(this.el) && this.close();
347
- });
348
- this.video = e, this.playbackRates = t, this.labels = r, this.activeQualityLabel = r.autoQuality, this.activeCaptionLabel = r.captionsOff, this.el = document.createElement("div"), this.el.className = "hp:relative", this.button = document.createElement("button"), this.button.type = "button", this.button.setAttribute("aria-label", r.settings), this.button.className = "hp-chip hp:flex hp:items-center hp:justify-center hp:w-[var(--hp-ctrl-btn-size)] hp:h-[var(--hp-ctrl-btn-size)] hp:cursor-pointer", this.button.appendChild(v("settings", "hp:text-[length:var(--hp-ctrl-icon-size)]")), this.panel = document.createElement("div"), this.panel.className = "hp-chip hp-chip-panel hp:hidden hp:absolute hp:bottom-full hp:right-0 hp:mb-2 hp:w-48 hp:max-h-64 hp:overflow-y-auto hp:text-sm hp:py-1", this.el.appendChild(this.button), this.el.appendChild(this.panel), this.button.addEventListener("click", (s) => {
349
- s.stopPropagation(), this.toggle();
350
- }), document.addEventListener("click", this.onDocumentClick, !0), this.renderMain();
351
- }
352
- setQualities(e, t) {
353
- this.qualities = e, this.activeQualityLabel = t, (this.currentPanel === "main" || this.currentPanel === "quality") && this.render();
354
- }
355
- setCaptions(e, t) {
356
- this.captions = e, this.activeCaptionLabel = t, (this.currentPanel === "main" || this.currentPanel === "captions") && this.render();
357
- }
358
- /** Altyazı AÇIKKEN "Altyazı" alt menüsüne eklenecek Boyut/Renk/Konum satırları — `null` kaldırır. */
359
- setCaptionAppearance(e) {
360
- this.captionAppearance = e, (this.currentPanel === "captions" || this.currentPanel === "captions-size" || this.currentPanel === "captions-bg" || this.currentPanel === "captions-text") && this.render();
361
- }
362
- /** Ana menüye tek aç/kapa satırı ekler (ör. QrResume). */
363
- setQrResumeToggle(e) {
364
- this.qrResumeToggle = e, this.currentPanel === "main" && this.renderMain();
365
- }
366
- /** Plugin'lerin (ör. dubbing) ana menüye kendi satır + alt menüsünü eklemesi için. */
367
- registerSubmenu(e) {
368
- this.submenus = this.submenus.filter((t) => t.key !== e.key), this.submenus.push(e), this.currentPanel === "main" && this.renderMain();
369
- }
370
- unregisterSubmenu(e) {
371
- this.submenus = this.submenus.filter((t) => t.key !== e), this.currentPanel === "main" ? this.renderMain() : this.currentPanel === `custom:${e}` && this.renderMain();
372
- }
373
- toggle() {
374
- this.open ? this.close() : this.openMenu();
375
- }
376
- openMenu() {
377
- this.open = !0, this.currentPanel = "main", this.panel.classList.remove("hp:hidden"), this.renderMain();
378
- }
379
- close() {
380
- this.open = !1, this.panel.classList.add("hp:hidden");
381
- }
382
- row(e, t, r) {
383
- const s = document.createElement("button");
384
- return s.type = "button", s.className = "hp:flex hp:items-center hp:justify-between hp:w-full hp:px-3 hp:py-2 hp:text-left hp:bg-transparent hp:border-0 hp:cursor-pointer hp:text-on-surface hp:hover:bg-on-surface/10", s.innerHTML = `<span>${e}</span><span class="hp:text-on-surface-muted hp:text-xs hp:flex hp:items-center hp:gap-1">${t}</span>`, s.addEventListener("click", r), s;
385
- }
386
- backRow(e, t) {
387
- const r = document.createElement("button");
388
- r.type = "button", r.className = "hp:flex hp:items-center hp:gap-2 hp:w-full hp:px-3 hp:py-2 hp:text-left hp:bg-transparent hp:border-0 hp:cursor-pointer hp:text-on-surface hp:font-medium hp:hover:bg-on-surface/10", r.appendChild(v("chevron-left", "hp:text-sm"));
389
- const s = document.createElement("span");
390
- return s.textContent = e, r.appendChild(s), r.addEventListener("click", t), r;
391
- }
392
- render() {
393
- if (this.currentPanel === "main") this.renderMain();
394
- else if (this.currentPanel === "speed") this.renderSpeed();
395
- else if (this.currentPanel === "quality") this.renderQuality();
396
- else if (this.currentPanel === "captions") this.renderCaptions();
397
- else if (this.currentPanel === "captions-size") this.renderCaptionsSize();
398
- else if (this.currentPanel === "captions-bg") this.renderCaptionColorPanel("bg");
399
- else if (this.currentPanel === "captions-text") this.renderCaptionColorPanel("text");
400
- else {
401
- const e = this.currentPanel.slice(7), t = this.submenus.find((r) => r.key === e);
402
- t ? this.renderSubmenu(t) : this.renderMain();
403
- }
404
- }
405
- renderMain() {
406
- this.currentPanel = "main", this.panel.innerHTML = "", this.panel.appendChild(
407
- this.row(this.labels.playbackSpeed, this.video.playbackRate === 1 ? this.labels.normal : `${this.video.playbackRate}x`, () => {
408
- this.currentPanel = "speed", this.renderSpeed();
409
- })
410
- ), this.qualities.length > 0 && this.panel.appendChild(
411
- this.row(this.labels.quality, this.activeQualityLabel, () => {
412
- this.currentPanel = "quality", this.renderQuality();
413
- })
414
- ), this.captions.length > 0 && this.panel.appendChild(
415
- this.row(this.labels.captions, this.activeCaptionLabel, () => {
416
- this.currentPanel = "captions", this.renderCaptions();
417
- })
418
- );
419
- for (const e of this.submenus)
420
- this.panel.appendChild(
421
- this.row(e.title, e.getValueLabel(), () => {
422
- this.currentPanel = `custom:${e.key}`, this.renderSubmenu(e);
423
- })
424
- );
425
- if (this.qrResumeToggle) {
426
- const e = this.qrResumeToggle;
427
- this.panel.appendChild(
428
- this.row(e.label, e.getValueLabel(), () => {
429
- e.onToggle(), this.renderMain();
430
- })
431
- );
432
- }
433
- }
434
- renderSubmenu(e) {
435
- this.panel.innerHTML = "", this.panel.appendChild(this.backRow(e.title, () => this.renderMain()));
436
- for (const t of e.getItems())
437
- this.panel.appendChild(
438
- this.row(t.label, t.active ? '<i class="hp-icon hp-icon-check"></i>' : "", () => {
439
- t.onSelect(), this.close();
440
- })
441
- );
442
- }
443
- renderSpeed() {
444
- this.panel.innerHTML = "", this.panel.appendChild(this.backRow(this.labels.playbackSpeed, () => this.renderMain()));
445
- for (const e of this.playbackRates) {
446
- const t = this.video.playbackRate === e, r = this.row(e === 1 ? this.labels.normal : `${e}x`, t ? '<i class="hp-icon hp-icon-check"></i>' : "", () => {
447
- this.video.playbackRate = e, this.close();
448
- });
449
- this.panel.appendChild(r);
450
- }
451
- }
452
- renderQuality() {
453
- this.panel.innerHTML = "", this.panel.appendChild(this.backRow(this.labels.quality, () => this.renderMain()));
454
- for (const e of this.qualities) {
455
- const t = e.label === this.activeQualityLabel;
456
- this.panel.appendChild(
457
- this.row(e.label, t ? '<i class="hp-icon hp-icon-check"></i>' : "", () => {
458
- e.onSelect(), this.close();
459
- })
460
- );
461
- }
462
- }
463
- renderCaptions() {
464
- this.panel.innerHTML = "", this.panel.appendChild(this.backRow(this.labels.captions, () => this.renderMain()));
465
- for (const e of this.captions) {
466
- const t = e.label === this.activeCaptionLabel;
467
- this.panel.appendChild(
468
- this.row(e.label, t ? '<i class="hp-icon hp-icon-check"></i>' : "", () => {
469
- e.onSelect(), this.close();
470
- })
471
- );
472
- }
473
- if (this.captionAppearance && this.activeCaptionLabel !== this.labels.captionsOff) {
474
- const e = this.captionAppearance;
475
- this.panel.appendChild(
476
- this.row(e.sizeLabel, "", () => {
477
- this.currentPanel = "captions-size", this.renderCaptionsSize();
478
- })
479
- ), this.panel.appendChild(
480
- this.row(e.bgColorLabel, "", () => {
481
- this.currentPanel = "captions-bg", this.renderCaptionColorPanel("bg");
482
- })
483
- ), this.panel.appendChild(
484
- this.row(e.textColorLabel, "", () => {
485
- this.currentPanel = "captions-text", this.renderCaptionColorPanel("text");
486
- })
487
- ), this.panel.appendChild(
488
- this.row(e.resetPositionLabel, "", () => {
489
- e.onResetPosition(), this.close();
490
- })
491
- );
492
- }
493
- }
494
- renderCaptionsSize() {
495
- this.panel.innerHTML = "";
496
- const e = this.captionAppearance;
497
- if (this.panel.appendChild(this.backRow((e == null ? void 0 : e.sizeLabel) ?? this.labels.captionSize, () => this.renderCaptions())), !!e)
498
- for (const t of e.getSizeOptions())
499
- this.panel.appendChild(
500
- this.row(t.label, t.active ? '<i class="hp-icon hp-icon-check"></i>' : "", () => {
501
- t.onSelect(), this.close();
502
- })
503
- );
504
- }
505
- /** "Arka Plan Rengi" / "Yazı Rengi" — düz metin satırları yerine renkli swatch grid'i (YouTube'un kendi altyazı renk seçici deseni). */
506
- renderCaptionColorPanel(e) {
507
- this.panel.innerHTML = "";
508
- const t = this.captionAppearance, r = e === "bg" ? (t == null ? void 0 : t.bgColorLabel) ?? this.labels.captionBgColor : (t == null ? void 0 : t.textColorLabel) ?? this.labels.captionTextColor;
509
- if (this.panel.appendChild(this.backRow(r, () => this.renderCaptions())), !t) return;
510
- const s = document.createElement("div");
511
- s.className = "hp:flex hp:flex-wrap hp:gap-2 hp:px-3 hp:py-2";
512
- const o = e === "bg" ? t.getBgColorOptions() : t.getTextColorOptions();
513
- for (const l of o) {
514
- const p = document.createElement("button");
515
- p.type = "button", p.setAttribute("aria-label", l.ariaLabel), p.className = "hp:w-7 hp:h-7 hp:rounded-full hp:cursor-pointer hp:flex-shrink-0 hp:border hp:border-on-surface/20", p.style.background = l.value, p.style.outline = l.active ? "2px solid currentColor" : "2px solid transparent", p.style.outlineOffset = "2px", p.addEventListener("click", () => {
516
- l.onSelect(), this.render();
517
- }), s.appendChild(p);
518
- }
519
- this.panel.appendChild(s);
520
- }
521
- /** Dil sonradan değişince statik buton etiketini tazeler + mevcut panel zaten güncel `this.labels`'ı okuyarak yeniden render edilir. */
522
- refreshLabels() {
523
- this.button.setAttribute("aria-label", this.labels.settings), this.render();
524
- }
525
- destroy() {
526
- document.removeEventListener("click", this.onDocumentClick, !0);
527
- }
528
- }
529
- const $ = 15, Z = 480;
530
- function w(a, e) {
531
- a.setAttribute("aria-label", e);
532
- }
533
- function C(a, e, t) {
534
- const r = document.createElement("button");
535
- r.type = "button", w(r, a), t && (r.dataset.shortcut = t), r.className = "hp-chip hp:flex hp:items-center hp:justify-center hp:w-[var(--hp-ctrl-btn-size)] hp:h-[var(--hp-ctrl-btn-size)] hp:cursor-pointer hp:shrink-0";
536
- const s = v(e, "hp:text-[length:var(--hp-ctrl-icon-size)]");
537
- return r.appendChild(s), { btn: r, icon: s };
538
- }
539
- class J {
540
- constructor(e, t, r, s) {
541
- i(this, "el");
542
- i(this, "seekBar");
543
- i(this, "volumePanel");
544
- i(this, "settingsMenu");
545
- i(this, "video");
546
- i(this, "labels");
547
- i(this, "playButton");
548
- i(this, "playIcon");
549
- i(this, "pipButton");
550
- i(this, "fullscreenButton");
551
- i(this, "fullscreenIcon");
552
- i(this, "timeLabel");
553
- i(this, "showRemaining", !1);
554
- /** Kompakt düzende (player < 480px) sağ grubun taşındığı üst bar; tam ekran altta kalır. */
555
- i(this, "topEl");
556
- i(this, "bottomRow");
557
- i(this, "rightGroup");
558
- i(this, "fullscreenSlot");
559
- i(this, "compact", !1);
560
- i(this, "resizeObserver");
561
- i(this, "liveBadge");
562
- i(this, "liveText");
563
- i(this, "adMode", !1);
564
- i(this, "callbacks");
565
- i(this, "row");
566
- i(this, "extraButtonAnchor");
567
- /** Plugin'lerin (live-wall-clock vb.) kontrol çubuğuna buton olmayan bir element (ör. saat göstergesi) eklemesi için. */
568
- i(this, "onTimeClick", (e) => {
569
- e.stopPropagation(), this.toggleTimeMode();
570
- });
571
- i(this, "renderPlayState", () => {
572
- const e = this.callbacks.isAdActive() ? this.callbacks.adIsPaused() : this.video.paused;
573
- x(this.playIcon, e ? "play" : "pause"), w(this.playButton, e ? this.labels.play : this.labels.pause);
574
- });
575
- i(this, "renderTime", () => {
576
- const e = this.video.duration === 1 / 0;
577
- if (this.timeLabel.style.display = this.adMode || e ? "none" : "", this.liveBadge.style.display = !this.adMode && e ? "" : "none", !e) {
578
- const s = this.video.duration, o = this.video.currentTime;
579
- if (this.showRemaining) {
580
- const l = Math.max(0, (Number.isFinite(s) ? s : 0) - o);
581
- this.timeLabel.textContent = `-${y(l)} / ${y(s)}`;
582
- } else
583
- this.timeLabel.textContent = `${y(o)} / ${y(s)}`;
584
- return;
585
- }
586
- const t = this.liveEdge(), r = t !== null && t - this.video.currentTime > $;
587
- this.liveBadge.toggleAttribute("data-behind", r);
588
- });
589
- i(this, "goToLive", () => {
590
- const e = this.liveEdge();
591
- e !== null && (this.video.currentTime = Math.max(0, e - 1), this.video.paused && this.video.play().catch(() => {
592
- }), this.renderTime());
593
- });
594
- this.video = e, this.callbacks = r, this.labels = s, this.el = document.createElement("div"), this.el.setAttribute("part", "control-bar"), this.el.className = "hp:absolute hp:inset-x-0 hp:bottom-0 hp:flex hp:flex-col hp:gap-1 hp:px-3 hp:pb-2 hp:pt-6 hp:pointer-events-none hp:transition-opacity hp:duration-200", this.seekBar = new Y(e, s), this.seekBar.el.classList.add("hp:pointer-events-auto"), this.el.appendChild(this.seekBar.el);
595
- const o = document.createElement("div");
596
- o.className = "hp:flex hp:items-center hp:gap-2", this.el.appendChild(o), this.bottomRow = o;
597
- const l = document.createElement("div");
598
- l.className = "hp-group hp:flex hp:items-center hp:gap-1 hp:px-1.5 hp:py-1 hp:shrink-0 hp:pointer-events-auto", o.appendChild(l);
599
- const p = C(s.play, "play", "K");
600
- this.playButton = p.btn, this.playIcon = p.icon, this.playButton.setAttribute("part", "play-pause-button"), this.playButton.addEventListener("click", () => this.togglePlay()), l.appendChild(this.playButton), this.volumePanel = new j(e, s, r.adVolume), l.appendChild(this.volumePanel.el), this.timeLabel = document.createElement("button"), this.timeLabel.type = "button", this.timeLabel.setAttribute("part", "time-display"), this.timeLabel.className = "hp:text-xs hp:text-on-surface hp:tabular-nums hp:whitespace-nowrap hp:px-1 hp:bg-transparent hp:border-0 hp:cursor-pointer hp:select-none hp:p-0 hp:hover:opacity-80 hp:transition-opacity hp:focus-visible:outline-none hp:focus-visible:ring-1 hp:focus-visible:ring-accent hp:rounded", this.timeLabel.textContent = "0:00 / 0:00", this.timeLabel.addEventListener("click", this.onTimeClick), l.appendChild(this.timeLabel), this.liveBadge = document.createElement("button"), this.liveBadge.type = "button", this.liveBadge.className = "hp-live-badge", this.liveBadge.setAttribute("part", "live-badge"), this.liveBadge.setAttribute("aria-label", s.goToLive);
601
- const n = document.createElement("span");
602
- n.className = "hp-live-dot", this.liveText = document.createElement("span"), this.liveText.textContent = s.live, this.liveBadge.append(n, this.liveText), this.liveBadge.style.display = "none", this.liveBadge.addEventListener("click", this.goToLive), l.appendChild(this.liveBadge);
603
- const h = document.createElement("div");
604
- h.className = "hp:flex-1", o.appendChild(h);
605
- const c = document.createElement("div");
606
- c.className = "hp-group hp:flex hp:items-center hp:gap-1 hp:px-1.5 hp:py-1 hp:shrink-0 hp:pointer-events-auto", o.appendChild(c), this.rightGroup = c, this.settingsMenu = new K(e, t, s), c.appendChild(this.settingsMenu.el), this.extraButtonAnchor = this.settingsMenu.el, this.row = c;
607
- const d = C(s.pip, "pip");
608
- this.pipButton = d.btn, this.pipButton.addEventListener("click", () => this.togglePip()), document.pictureInPictureEnabled || (this.pipButton.style.display = "none"), c.appendChild(this.pipButton);
609
- const u = C(s.fullscreenEnter, "fullscreen-enter", "F");
610
- this.fullscreenButton = u.btn, this.fullscreenIcon = u.icon, this.fullscreenButton.addEventListener("click", () => this.toggleFullscreen()), c.appendChild(this.fullscreenButton), this.topEl = document.createElement("div"), this.topEl.className = "hp-top-bar", this.topEl.setAttribute("part", "top-bar"), this.fullscreenSlot = document.createElement("div"), this.fullscreenSlot.className = "hp-group hp:items-center hp:px-1.5 hp:py-1 hp:shrink-0 hp:pointer-events-auto", this.fullscreenSlot.style.display = "none", o.appendChild(this.fullscreenSlot), this.resizeObserver = new ResizeObserver(() => this.updateLayout()), this.resizeObserver.observe(this.el), e.addEventListener("play", this.renderPlayState), e.addEventListener("pause", this.renderPlayState), e.addEventListener("timeupdate", this.renderTime), e.addEventListener("loadedmetadata", this.renderTime), e.addEventListener("durationchange", this.renderTime), e.addEventListener("progress", this.renderTime), this.renderPlayState(), this.renderTime();
611
- }
612
- /** Player genişliğine göre normal / kompakt (mobil) düzen arasında geçiş — yalnızca eşik geçilince DOM taşınır. */
613
- updateLayout() {
614
- var r;
615
- const e = this.el.getBoundingClientRect().width;
616
- if (e === 0) return;
617
- const t = e < Z;
618
- t !== this.compact && (this.compact = t, this.el.toggleAttribute("data-compact", t), (r = this.el.closest(".video-area")) == null || r.toggleAttribute("data-compact", t), t ? (this.fullscreenSlot.appendChild(this.fullscreenButton), this.fullscreenSlot.style.display = this.adMode ? "none" : "flex", this.topEl.appendChild(this.rightGroup)) : (this.rightGroup.appendChild(this.fullscreenButton), this.bottomRow.insertBefore(this.rightGroup, this.fullscreenSlot), this.fullscreenSlot.style.display = "none"));
619
- }
620
- setFullscreenState(e) {
621
- x(this.fullscreenIcon, e ? "fullscreen-exit" : "fullscreen-enter"), w(this.fullscreenButton, e ? this.labels.fullscreenExit : this.labels.fullscreenEnter);
622
- }
623
- /** Dil sonradan değişince (`options.locale`/`labels`) statik (reaktif olarak yeniden render edilmeyen) etiketleri tazeler. */
624
- refreshLabels() {
625
- this.renderPlayState(), w(this.pipButton, this.labels.pip), w(this.liveBadge, this.labels.goToLive), this.liveText.textContent = this.labels.live, this.setFullscreenState(this.callbacks.isFullscreen()), this.seekBar.refreshLabels(), this.volumePanel.refreshLabels(), this.settingsMenu.refreshLabels();
626
- }
627
- /** Reklam modu: seek bar, süre ve sağ grup gizlenir; oynat/duraklat + ses kalır. */
628
- setAdMode(e) {
629
- const t = e ? "none" : "";
630
- this.adMode = e, this.seekBar.el.style.display = t, this.row.style.display = t, this.compact && (this.fullscreenSlot.style.display = e ? "none" : "flex"), this.renderTime();
631
- const r = e ? "#202020" : "";
632
- this.playIcon.style.color = r, this.volumePanel.setIconColor(r), this.volumePanel.setSliderFillColor(r), this.renderPlayState(), this.volumePanel.refreshForAdMode();
633
- }
634
- /** `AdsController`'ın IMA'nın KENDİ UI'ı üzerinden (ör. reklam video'suna tıklama) gelen PAUSED/RESUMED event'leri için — oynat/duraklat ikonunu tazeler. */
635
- refreshAdPlayState() {
636
- this.renderPlayState();
637
- }
638
- setQualities(e, t) {
639
- this.settingsMenu.setQualities(e, t);
640
- }
641
- setCaptions(e, t) {
642
- this.settingsMenu.setCaptions(e, t);
643
- }
644
- /** Plugin'lerin (loop-section vb.) kontrol çubuğuna kendi butonlarını eklemesi için — ayarlar menüsünden önce yerleştirilir. */
645
- addButton(e, t, r) {
646
- const { btn: s, icon: o } = C(e, t);
647
- return s.addEventListener("click", r), this.row.insertBefore(s, this.extraButtonAnchor), { btn: s, icon: o };
648
- }
649
- toggleTimeMode() {
650
- this.showRemaining = !this.showRemaining, this.renderTime();
651
- }
652
- setShowRemaining(e) {
653
- this.showRemaining !== e && (this.showRemaining = e, this.renderTime());
654
- }
655
- getShowRemaining() {
656
- return this.showRemaining;
657
- }
658
- addElement(e) {
659
- this.row.insertBefore(e, this.extraButtonAnchor);
660
- }
661
- togglePlay() {
662
- if (this.callbacks.isAdActive()) {
663
- this.callbacks.adTogglePlay(), this.renderPlayState();
664
- return;
665
- }
666
- this.video.paused ? this.video.play() : this.video.pause();
667
- }
668
- async togglePip() {
669
- try {
670
- document.pictureInPictureElement ? await document.exitPictureInPicture() : await this.video.requestPictureInPicture();
671
- } catch {
672
- }
673
- }
674
- toggleFullscreen() {
675
- this.callbacks.isFullscreen() ? this.callbacks.onExitFullscreen() : this.callbacks.onRequestFullscreen();
676
- }
677
- /** Canlı uç (media-time) — seekable sonu; native HLS'te DVR'sız canlıda seekable boş kalabildiği için buffered sonu (bkz. LiveWallClock.isLive notu). */
678
- liveEdge() {
679
- const { seekable: e, buffered: t } = this.video;
680
- return e.length ? e.end(e.length - 1) : t.length ? t.end(t.length - 1) : null;
681
- }
682
- destroy() {
683
- this.timeLabel.removeEventListener("click", this.onTimeClick), this.video.removeEventListener("play", this.renderPlayState), this.video.removeEventListener("pause", this.renderPlayState), this.video.removeEventListener("timeupdate", this.renderTime), this.video.removeEventListener("loadedmetadata", this.renderTime), this.video.removeEventListener("durationchange", this.renderTime), this.video.removeEventListener("progress", this.renderTime), this.resizeObserver.disconnect(), this.topEl.remove(), this.seekBar.destroy(), this.settingsMenu.destroy();
684
- }
685
- }
686
- const ee = 450, te = 60, B = 8, L = 6, ie = /* @__PURE__ */ new Set(["seek-bar", "time-display"]);
687
- function re() {
688
- return typeof window.matchMedia != "function" || window.matchMedia("(hover: hover)").matches;
689
- }
690
- class se {
691
- constructor(e) {
692
- i(this, "el");
693
- i(this, "labelEl");
694
- i(this, "keyEl");
695
- i(this, "showTimer", null);
696
- i(this, "hideTimer", null);
697
- i(this, "currentTarget", null);
698
- /** Gösterim gecikmesi (SHOW_DELAY_MS) içinde bekleyen hedef — `currentTarget` yalnızca gerçekten gösterilince set ediliyor. */
699
- i(this, "pendingTarget", null);
700
- i(this, "onMouseOver", (e) => {
701
- const t = this.matchTarget(e.target);
702
- !t || t === this.currentTarget || this.scheduleShow(t);
703
- });
704
- i(this, "onMouseOut", (e) => {
705
- const t = this.matchTarget(e.target);
706
- if (!t || t !== this.currentTarget && t !== this.pendingTarget) return;
707
- const r = e.relatedTarget;
708
- r && t.contains(r) || this.scheduleHide();
709
- });
710
- i(this, "onFocusIn", (e) => {
711
- const t = this.matchTarget(e.target);
712
- t && this.show(t);
713
- });
714
- i(this, "onFocusOut", (e) => {
715
- const t = this.matchTarget(e.target);
716
- !t || t !== this.currentTarget || this.hideNow();
717
- });
718
- i(this, "hideNow", () => {
719
- this.showTimer && (clearTimeout(this.showTimer), this.showTimer = null), this.pendingTarget = null, this.hideTimer && (clearTimeout(this.hideTimer), this.hideTimer = null), this.currentTarget && (this.currentTarget = null, this.el.style.opacity = "0", this.el.style.visibility = "hidden");
720
- });
721
- this.mountEl = e, this.el = document.createElement("div"), this.el.setAttribute("part", "tooltip"), this.el.setAttribute("role", "tooltip"), this.el.className = "hp-tooltip hp:absolute hp:z-40 hp:flex hp:items-center hp:gap-1.5 hp:px-2 hp:py-1 hp:rounded hp:text-xs hp:whitespace-nowrap hp:pointer-events-none hp:opacity-0 hp:transition-opacity hp:duration-100", this.el.style.visibility = "hidden", this.labelEl = document.createElement("span"), this.el.appendChild(this.labelEl), this.keyEl = document.createElement("span"), this.keyEl.className = "hp-tooltip-key", this.el.appendChild(this.keyEl), e.appendChild(this.el), e.addEventListener("mouseover", this.onMouseOver), e.addEventListener("mouseout", this.onMouseOut), e.addEventListener("focusin", this.onFocusIn), e.addEventListener("focusout", this.onFocusOut), e.addEventListener("pointerdown", this.hideNow);
722
- }
723
- destroy() {
724
- this.showTimer && clearTimeout(this.showTimer), this.hideTimer && clearTimeout(this.hideTimer), this.mountEl.removeEventListener("mouseover", this.onMouseOver), this.mountEl.removeEventListener("mouseout", this.onMouseOut), this.mountEl.removeEventListener("focusin", this.onFocusIn), this.mountEl.removeEventListener("focusout", this.onFocusOut), this.mountEl.removeEventListener("pointerdown", this.hideNow), this.el.remove();
725
- }
726
- matchTarget(e) {
727
- var o;
728
- const t = e, r = (o = t == null ? void 0 : t.closest) == null ? void 0 : o.call(t, 'button[aria-label], [role="slider"][aria-label]');
729
- if (!r) return null;
730
- const s = r.getAttribute("part");
731
- return s && ie.has(s) || r.offsetParent === null && r !== document.activeElement ? null : r;
732
- }
733
- scheduleShow(e) {
734
- this.hideTimer && (clearTimeout(this.hideTimer), this.hideTimer = null), this.showTimer && clearTimeout(this.showTimer), this.pendingTarget = e, this.showTimer = setTimeout(() => {
735
- this.showTimer = null, this.pendingTarget = null, this.show(e);
736
- }, ee);
737
- }
738
- scheduleHide() {
739
- this.showTimer && (clearTimeout(this.showTimer), this.showTimer = null), this.pendingTarget = null, this.hideTimer && clearTimeout(this.hideTimer), this.hideTimer = setTimeout(() => this.hideNow(), te);
740
- }
741
- show(e) {
742
- if (!re()) return;
743
- const t = e.getAttribute("aria-label");
744
- if (!t) return;
745
- this.currentTarget = e, this.labelEl.textContent = t;
746
- const r = e.dataset.shortcut;
747
- r ? (this.keyEl.textContent = r, this.keyEl.style.display = "") : (this.keyEl.textContent = "", this.keyEl.style.display = "none"), this.el.style.visibility = "hidden", this.el.style.opacity = "0", this.el.style.left = "0px", this.el.style.top = "0px", requestAnimationFrame(() => {
748
- this.currentTarget === e && (this.position(e), this.el.style.visibility = "visible", this.el.style.opacity = "1");
749
- });
750
- }
751
- position(e) {
752
- const t = this.mountEl.getBoundingClientRect(), r = e.getBoundingClientRect(), s = this.el.getBoundingClientRect();
753
- let o = r.top - t.top - s.height - B;
754
- o < L && (o = r.bottom - t.top + B);
755
- let l = r.left - t.left + r.width / 2 - s.width / 2;
756
- const p = t.width - s.width - L;
757
- l = Math.max(L, Math.min(l, p)), this.el.style.top = `${o}px`, this.el.style.left = `${l}px`;
758
- }
759
- }
760
- class oe {
761
- constructor(e, t, r) {
762
- i(this, "host");
763
- i(this, "video");
764
- i(this, "toggleFullscreen");
765
- i(this, "onKeyDown", (e) => {
766
- if (e.defaultPrevented) return;
767
- const t = this.video.duration;
768
- switch (e.key) {
769
- case " ":
770
- case "k":
771
- this.video.paused ? this.video.play() : this.video.pause(), e.preventDefault();
772
- break;
773
- case "ArrowRight":
774
- case "l":
775
- Number.isFinite(t) && (this.video.currentTime = Math.min(t, this.video.currentTime + 5)), e.preventDefault();
776
- break;
777
- case "ArrowLeft":
778
- case "j":
779
- this.video.currentTime = Math.max(0, this.video.currentTime - 5), e.preventDefault();
780
- break;
781
- case "ArrowUp":
782
- this.video.volume = Math.min(1, this.video.volume + 0.1), this.video.muted = !1, e.preventDefault();
783
- break;
784
- case "ArrowDown":
785
- this.video.volume = Math.max(0, this.video.volume - 0.1), e.preventDefault();
786
- break;
787
- case "m":
788
- this.video.muted = !this.video.muted, e.preventDefault();
789
- break;
790
- case "f":
791
- this.toggleFullscreen(), e.preventDefault();
792
- break;
793
- }
794
- });
795
- this.host = e, this.video = t, this.toggleFullscreen = r, this.host.addEventListener("keydown", this.onKeyDown);
796
- }
797
- destroy() {
798
- this.host.removeEventListener("keydown", this.onKeyDown);
799
- }
800
- }
801
- class ne {
802
- constructor(e) {
803
- i(this, "el");
804
- i(this, "video");
805
- i(this, "show", () => this.el.classList.remove("hp:hidden"));
806
- i(this, "hide", () => this.el.classList.add("hp:hidden"));
807
- this.video = e, this.el = document.createElement("div"), this.el.className = "hp:absolute hp:inset-0 hp:flex hp:items-center hp:justify-center hp:pointer-events-none hp:hidden", this.el.innerHTML = '<div class="hp:w-10 hp:h-10 hp:border-[3px] hp:border-on-surface/30 hp:border-t-accent hp:rounded-full hp:animate-spin"></div>', e.addEventListener("waiting", this.show), e.addEventListener("playing", this.hide), e.addEventListener("canplay", this.hide), e.addEventListener("pause", this.hide);
808
- }
809
- destroy() {
810
- this.video.removeEventListener("waiting", this.show), this.video.removeEventListener("playing", this.hide), this.video.removeEventListener("canplay", this.hide), this.video.removeEventListener("pause", this.hide);
811
- }
812
- }
813
- class ae {
814
- constructor(e, t) {
815
- i(this, "el");
816
- i(this, "video");
817
- i(this, "labels");
818
- i(this, "messageEl");
819
- i(this, "retryBtn");
820
- i(this, "onRetry", null);
821
- i(this, "show", () => {
822
- var r;
823
- const e = ((r = this.video.error) == null ? void 0 : r.code) ?? 0, t = {
824
- 1: this.labels.errorAborted,
825
- 2: this.labels.errorNetwork,
826
- 3: this.labels.errorDecode,
827
- 4: this.labels.errorSrcNotSupported
828
- };
829
- this.messageEl.textContent = t[e] ?? this.labels.errorGeneric, this.el.classList.remove("hp:hidden"), this.el.classList.add("hp:flex");
830
- });
831
- this.video = e, this.labels = t, this.el = document.createElement("div"), this.el.className = "hp:absolute hp:inset-0 hp:hidden hp:flex-col hp:items-center hp:justify-center hp:gap-3 hp:bg-surface/95 hp:text-on-surface hp:text-sm hp:text-center hp:px-6", this.el.appendChild(v("warning", "hp:text-3xl hp:text-accent")), this.messageEl = document.createElement("p"), this.el.appendChild(this.messageEl), this.retryBtn = document.createElement("button"), this.retryBtn.type = "button", this.retryBtn.textContent = t.retry, this.retryBtn.className = "hp:px-4 hp:py-1.5 hp:rounded-md hp:bg-accent hp:text-on-accent hp:text-xs hp:font-medium hp:border-0 hp:cursor-pointer", this.retryBtn.addEventListener("click", () => {
832
- var r;
833
- this.hide(), (r = this.onRetry) == null || r.call(this);
834
- }), this.el.appendChild(this.retryBtn), e.addEventListener("error", this.show);
835
- }
836
- setOnRetry(e) {
837
- this.onRetry = e;
838
- }
839
- refreshLabels() {
840
- this.retryBtn.textContent = this.labels.retry, this.el.classList.contains("hp:hidden") || this.show();
841
- }
842
- hide() {
843
- this.el.classList.add("hp:hidden"), this.el.classList.remove("hp:flex");
844
- }
845
- destroy() {
846
- this.video.removeEventListener("error", this.show);
847
- }
848
- }
849
- function le(a, e) {
850
- a.querySelectorAll("track").forEach((r) => r.remove());
851
- const t = [];
852
- for (const r of e) {
853
- const s = document.createElement("track");
854
- s.kind = "subtitles", s.src = r.src, s.srclang = r.srclang, s.label = r.label, a.appendChild(s), s.track && (s.track.mode = r.default ? "hidden" : "disabled", t.push({ label: r.label, track: s.track }));
855
- }
856
- return t;
857
- }
858
- function he(a, e) {
859
- let t = null;
860
- for (const { label: r, track: s } of a) {
861
- const o = r === e;
862
- s.mode = o ? "hidden" : "disabled", o && (t = s);
863
- }
864
- return t;
865
- }
866
- const A = 6, pe = 20, ce = 14, de = 6, ue = 10, me = 3, D = "hope-caption-row", H = "hope-caption-font-size", M = "hope-caption-bg-color", R = "hope-caption-text-color", be = {
867
- small: 0.78,
868
- normal: 1,
869
- large: 1.35
870
- }, z = [
871
- "rgba(0, 0, 0, 0.75)",
872
- "rgba(0, 0, 0, 0)",
873
- "rgba(255, 255, 255, 0.85)",
874
- "rgba(183, 28, 28, 0.8)",
875
- "rgba(13, 71, 161, 0.8)",
876
- "rgba(27, 94, 32, 0.8)"
877
- ], F = ["#ffffff", "#000000", "#ffeb3b", "#ff5252", "#18ffff", "#69f0ae"];
878
- function ve() {
879
- try {
880
- const a = window.localStorage.getItem(D), e = a === null ? 0 : Number(a);
881
- return Number.isFinite(e) && e >= 0 && e < A ? e : 0;
882
- } catch {
883
- return 0;
884
- }
885
- }
886
- function ge() {
887
- try {
888
- const a = window.localStorage.getItem(H);
889
- return a === "small" || a === "normal" || a === "large" ? a : "normal";
890
- } catch {
891
- return "normal";
892
- }
893
- }
894
- function I(a, e) {
895
- const t = e[0] ?? "";
896
- try {
897
- const r = window.localStorage.getItem(a);
898
- return r !== null && e.includes(r) ? r : t;
899
- } catch {
900
- return t;
901
- }
902
- }
903
- class k {
904
- constructor(e, t, r, s) {
905
- i(this, "layerEl");
906
- i(this, "bubbleEl");
907
- i(this, "videoArea");
908
- i(this, "seekBarEl");
909
- i(this, "labels");
910
- i(this, "activeTrack", null);
911
- i(this, "fontSize", ge());
912
- i(this, "bgColor", I(M, z));
913
- i(this, "textColor", I(R, F));
914
- i(this, "rowIndex", ve());
915
- i(this, "dragging", !1);
916
- /** Kontrol çubuğu görünür mü — görünürken altyazı seek bar'ın üstünde, değilken en altta. */
917
- i(this, "chromeVisible", !0);
918
- i(this, "dragStartClientY", 0);
919
- i(this, "dragStartBottomPx", 0);
920
- i(this, "dragMoved", !1);
921
- i(this, "rafId", null);
922
- i(this, "pendingDeltaPx", 0);
923
- i(this, "resizeObserver");
924
- i(this, "onCueChange", () => {
925
- var t;
926
- const e = (t = this.activeTrack) == null ? void 0 : t.activeCues;
927
- if (!this.activeTrack || !e || e.length === 0) {
928
- this.bubbleEl.classList.remove("hp-caption-visible"), this.bubbleEl.textContent = "";
929
- return;
930
- }
931
- this.bubbleEl.textContent = "";
932
- for (let r = 0; r < e.length; r++) {
933
- r > 0 && this.bubbleEl.appendChild(document.createElement("br"));
934
- const s = e[r];
935
- typeof s.getCueAsHTML == "function" ? this.bubbleEl.appendChild(s.getCueAsHTML()) : this.bubbleEl.appendChild(document.createTextNode(s.text ?? ""));
936
- }
937
- this.bubbleEl.classList.add("hp-caption-visible");
938
- });
939
- i(this, "onPointerDown", (e) => {
940
- e.button !== 0 && e.pointerType === "mouse" || (e.preventDefault(), this.dragging = !0, this.dragMoved = !1, this.dragStartClientY = e.clientY, this.dragStartBottomPx = this.pxForRow(this.rowIndex), this.bubbleEl.setPointerCapture(e.pointerId), this.bubbleEl.classList.add("hp-caption-dragging"), this.bubbleEl.addEventListener("pointermove", this.onPointerMove), this.bubbleEl.addEventListener("pointerup", this.onPointerUp), this.bubbleEl.addEventListener("pointercancel", this.onPointerUp));
941
- });
942
- i(this, "onPointerMove", (e) => {
943
- this.dragging && (this.pendingDeltaPx = e.clientY - this.dragStartClientY, Math.abs(this.pendingDeltaPx) > me && (this.dragMoved = !0), this.rafId === null && (this.rafId = requestAnimationFrame(this.applyPendingDrag)));
944
- });
945
- i(this, "applyPendingDrag", () => {
946
- if (this.rafId = null, !this.dragging) return;
947
- const { min: e, max: t } = this.bounds(), r = Math.min(t, Math.max(e, this.dragStartBottomPx - this.pendingDeltaPx)), s = this.dragStartBottomPx - r;
948
- this.bubbleEl.style.transform = `translateX(-50%) translateY(${s}px)`;
949
- });
950
- i(this, "onPointerUp", (e) => {
951
- if (!this.dragging || (this.dragging = !1, this.bubbleEl.releasePointerCapture(e.pointerId), this.bubbleEl.removeEventListener("pointermove", this.onPointerMove), this.bubbleEl.removeEventListener("pointerup", this.onPointerUp), this.bubbleEl.removeEventListener("pointercancel", this.onPointerUp), this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.bubbleEl.classList.remove("hp-caption-dragging"), !this.dragMoved)) return;
952
- const { min: t, max: r } = this.bounds(), s = Math.min(r, Math.max(t, this.dragStartBottomPx - this.pendingDeltaPx)), o = r > t ? (s - t) / (r - t) : 0, l = Math.round(o * (A - 1));
953
- this.setRowIndex(l, !0, s);
954
- });
955
- this.videoArea = t, this.seekBarEl = r, this.labels = s, this.layerEl = document.createElement("div"), this.layerEl.className = "hp-caption-layer", this.layerEl.setAttribute("part", "caption-layer"), this.bubbleEl = document.createElement("div"), this.bubbleEl.className = "hp-caption-bubble", this.bubbleEl.setAttribute("part", "caption-bubble"), this.bubbleEl.setAttribute("role", "note"), this.bubbleEl.setAttribute("aria-label", s.captionDragHandle), this.bubbleEl.tabIndex = -1, this.applyFontSizeVar(), this.bubbleEl.style.setProperty("--hp-caption-bg", this.bgColor), this.bubbleEl.style.setProperty("--hp-caption-text", this.textColor), this.layerEl.appendChild(this.bubbleEl), this.bubbleEl.addEventListener("pointerdown", this.onPointerDown), this.resizeObserver = new ResizeObserver(() => this.recomputePosition()), this.resizeObserver.observe(this.videoArea), this.recomputePosition();
956
- }
957
- /** `applyOptions()`'tan — hangi track aktif (ya da null = kapalı). */
958
- setActiveTrack(e) {
959
- this.activeTrack && this.activeTrack.removeEventListener("cuechange", this.onCueChange), this.activeTrack = e, this.activeTrack && this.activeTrack.addEventListener("cuechange", this.onCueChange), this.onCueChange();
960
- }
961
- getFontSize() {
962
- return this.fontSize;
963
- }
964
- setFontSize(e) {
965
- this.fontSize = e, this.applyFontSizeVar(), this.recomputePosition();
966
- try {
967
- window.localStorage.setItem(H, e);
968
- } catch {
969
- }
970
- }
971
- getBgColor() {
972
- return this.bgColor;
973
- }
974
- setBgColor(e) {
975
- this.bgColor = e, this.bubbleEl.style.setProperty("--hp-caption-bg", e);
976
- try {
977
- window.localStorage.setItem(M, e);
978
- } catch {
979
- }
980
- }
981
- getTextColor() {
982
- return this.textColor;
983
- }
984
- setTextColor(e) {
985
- this.textColor = e, this.bubbleEl.style.setProperty("--hp-caption-text", e);
986
- try {
987
- window.localStorage.setItem(R, e);
988
- } catch {
989
- }
990
- }
991
- /** Ayarlar menüsündeki "Konumu sıfırla". */
992
- resetPosition() {
993
- this.setRowIndex(0, !0);
994
- }
995
- /** Dil sonradan değişince aria-label'ı tazeler. */
996
- refreshLabels(e) {
997
- this.labels = e, this.bubbleEl.setAttribute("aria-label", e.captionDragHandle);
998
- }
999
- applyFontSizeVar() {
1000
- this.bubbleEl.style.setProperty("--hp-caption-size-multiplier", String(be[this.fontSize]));
1001
- }
1002
- bounds() {
1003
- const e = this.videoArea.getBoundingClientRect(), t = this.seekBarEl.getBoundingClientRect(), s = (this.bubbleEl.getBoundingClientRect().height || 32) + pe, o = Math.max(ue, Math.round(e.height * 0.04)), l = this.chromeVisible && t.height > 0 ? Math.max(0, Math.round(e.bottom - t.top + (this.videoArea.hasAttribute("data-compact") ? de : ce))) : o, p = Math.max(l, Math.round(e.height - s));
1004
- return { min: l, max: p };
1005
- }
1006
- pxForRow(e) {
1007
- const { min: t, max: r } = this.bounds(), s = e / (A - 1);
1008
- return Math.round(t + s * (r - t));
1009
- }
1010
- /** FLIP: bottom anında yazılır, yalnızca transform animasyonlanır — bottom'u animasyonlamak bırakınca zıplatıyordu. */
1011
- setRowIndex(e, t, r) {
1012
- this.rowIndex = Math.min(A - 1, Math.max(0, e));
1013
- const s = this.pxForRow(this.rowIndex), o = r ?? parseFloat(this.bubbleEl.style.bottom || `${s}`);
1014
- t && o !== s ? (this.bubbleEl.classList.add("hp-caption-no-transition"), this.bubbleEl.style.bottom = `${s}px`, this.bubbleEl.style.transform = `translateX(-50%) translateY(${o - s}px)`, this.bubbleEl.offsetHeight, this.bubbleEl.classList.remove("hp-caption-no-transition"), this.bubbleEl.style.transform = "translateX(-50%)") : (this.bubbleEl.style.transform = "translateX(-50%)", this.bubbleEl.style.bottom = `${s}px`);
1015
- try {
1016
- window.localStorage.setItem(D, String(this.rowIndex));
1017
- } catch {
1018
- }
1019
- }
1020
- /** Boyut değişimi (ör. fullscreen'e giriş) sonrası AYNI satıra, YENİ sınırlara göre yeniden konumlan — animasyonsuz (boyut değişimi anlık olmalı). */
1021
- /** HopePlayerElement.setChromeOpacity'den — kontroller açılıp kapanınca balon yumuşakça yukarı/aşağı kayar (satır korunur). */
1022
- setChromeVisible(e) {
1023
- e !== this.chromeVisible && (this.chromeVisible = e, this.dragging || this.setRowIndex(this.rowIndex, !0));
1024
- }
1025
- recomputePosition() {
1026
- this.dragging || this.setRowIndex(this.rowIndex, !1);
1027
- }
1028
- destroy() {
1029
- this.activeTrack && this.activeTrack.removeEventListener("cuechange", this.onCueChange), this.resizeObserver.disconnect(), this.rafId !== null && cancelAnimationFrame(this.rafId), this.bubbleEl.removeEventListener("pointerdown", this.onPointerDown);
1030
- }
1031
- }
1032
- i(k, "BG_COLOR_PRESETS", z), i(k, "TEXT_COLOR_PRESETS", F);
1033
- class fe {
1034
- constructor(e) {
1035
- i(this, "el");
1036
- i(this, "bufferedEl");
1037
- i(this, "playedEl");
1038
- i(this, "visible", !1);
1039
- i(this, "rafId", null);
1040
- i(this, "sync", () => {
1041
- this.render(), this.visible && !this.video.paused ? this.start() : this.stop();
1042
- });
1043
- i(this, "render", () => {
1044
- const e = this.video.duration, t = Number.isFinite(e) && e > 0;
1045
- if (this.el.toggleAttribute("data-disabled", !t), !this.visible || !t) return;
1046
- this.playedEl.style.transform = `scaleX(${Math.min(1, this.video.currentTime / e)})`;
1047
- const { buffered: r } = this.video;
1048
- let s = 0;
1049
- for (let o = 0; o < r.length; o++)
1050
- r.start(o) <= this.video.currentTime && (s = Math.max(s, r.end(o)));
1051
- this.bufferedEl.style.transform = `scaleX(${Math.min(1, s / e)})`;
1052
- });
1053
- this.video = e, this.el = document.createElement("div"), this.el.className = "hp-mini-progress", this.el.setAttribute("part", "mini-progress"), this.el.setAttribute("aria-hidden", "true"), this.bufferedEl = document.createElement("div"), this.bufferedEl.className = "hp-mini-progress-fill hp-mini-progress-buffered", this.playedEl = document.createElement("div"), this.playedEl.className = "hp-mini-progress-fill hp-mini-progress-played", this.el.append(this.bufferedEl, this.playedEl), e.addEventListener("play", this.sync), e.addEventListener("pause", this.sync), e.addEventListener("timeupdate", this.render), e.addEventListener("progress", this.render), e.addEventListener("durationchange", this.render);
1054
- }
1055
- setVisible(e) {
1056
- e !== this.visible && (this.visible = e, this.el.toggleAttribute("data-visible", e), this.sync());
1057
- }
1058
- destroy() {
1059
- this.stop(), this.video.removeEventListener("play", this.sync), this.video.removeEventListener("pause", this.sync), this.video.removeEventListener("timeupdate", this.render), this.video.removeEventListener("progress", this.render), this.video.removeEventListener("durationchange", this.render), this.el.remove();
1060
- }
1061
- start() {
1062
- if (this.rafId !== null) return;
1063
- const e = () => {
1064
- this.render(), this.rafId = requestAnimationFrame(e);
1065
- };
1066
- this.rafId = requestAnimationFrame(e);
1067
- }
1068
- stop() {
1069
- this.rafId !== null && cancelAnimationFrame(this.rafId), this.rafId = null;
1070
- }
1071
- }
1072
- const ye = '@font-face{font-family:hope-icons;src:url(data:font/woff2;base64,d09GMgABAAAAAAW0AAsAAAAAC6wAAAVnAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACEJgqIRIceATYCJAM8CyAABCAFhC4HgUYbIQrIHpIkJYocsIBQ9WweX9nB87GWvr90l90AkyqDCiHd2RBWKCAa38q6xm8JbPP/1+nfQp405aQCZpKerqIX6I37IdS7L3EF5uy/tCsaIMD6v0FrLb8JUNIg3uOJ7x3m2sQalEwoZh66hXKho6V1FvEckU7AcRwEMMlVw/XMuS4KArsbBAfEcgdGC/h1pbvDqAFvNhotp67gRDDKrii7raKDnJFWgPP2h/8TYw2goKvAjvJbm/Vw2+azl7z9Wzn9UNdeB3x6BdABFcgcWaz05ie34+YWZ3LDTEt25wiRqSG0WWXvgI3JjnsiEBRUNHT2XzwHTjwwsfDEC28QAyCeuOVpiTfY6EDABgrYQAUbaGADHWxggA0cYAMn2MADbGCCDSywgSfYwAvsaLxx4sMsEw2IBXIQQFYA9zBEkEEzKdxZaK2goRqGp0FchF+Iu3uou9sZT8PhbegOL183N00rK82gVaSRpGiF0kgFEqlMFTOBSuWLJWapJaZaIkbiZyllhmrmmCqiyoR+iCopLnFZeH+HFdGZp8T98U35pg93xR1BHsf1+rVFWanKTzUtxVLbPOevguuIVS9RvKDPb+GGiPt6sR9mlVLWNOEOrp3YCVaObwe2jScnr9w2zfnNQGJ/YMe4tS5qdCuoetQVVDW6GUSPbYV0jiXJsAexrIWdEPmhkPaxENXEdnANten5bfedF9bCK9fLMvArUYtLVt5OhkOnSuHC6xWviuDS27fD65is6Ixq/TvnV4Rmj1zeVyhKmzHpjZRIydVEuFRZrRiuqvYLqKzwFZbCF3rTOjTklKT5O7XFOZeDX6dGA2ub1yqfjITdteuQsuuOw+ZousVC1mWO6VIdnjT/umB07S0qCSydVrKldnmKa3mmmkkUwjxVR8Fh6uR7w5NlX35cLcjJ7u7Jzs6U7wmXE19+XsvPlZWcAgU0LE+nkXzMaASjJBm6wX+FXolW0CvSV5hc+A9c3rrhusF1ivw8CjvHwsJjzsR5hWa0hGnyUmaiRPdmtVArVkdCZlLyNGHpLaFesjP5Tk7m5VacyLVmUOvN33NpX7i8IKNAHp507dg1jn8FbbEotfme1sa9XHx86kXRmyxnZY8eC+XMmjpdnNY9TFldFkmk7g0+SW6hZ3PU0Z8VudmKMlWnSvnW6816VG4DOyqH1eszp45cu/4m7/lzIvblLCSQChICKElY/p8G8raLAJg6yAlgb7YDch4A2ZZSe8a9292QbQBxpY18V0Ze6Z+etoybplPrpStscqV+afvLoQ/rsw+86nyO/Pf2UwCYTjrtsul+mHI54CQrWeCrIAR7+iLzt30wFD0aqa3lf+0YsY2JCewBpPp62B+RVM5PVHCwHC6rruaHGzRLBHQskojxveVwmGSoWNkiAMIN0TwQAi3AoODNIlQCTRs0y0noBLsLg0DvYFLKN50skmtoxwzKNuuwgx9ARtGm4SId3NcoEcebsYPIz8lLeIlW5ECcRkB6QruQ4CVjgSAYCAOH7UQLdgjIZsMEw2EL0gk5JkFgKnJzDfwnnaPDdjCBYUBkM6MD44BnAIQRERsauNxu45WVIDh4hmHGTsiXI6+UoZU4SvrVIIDQL6RlIQQeCSMFBCQbyKkMcGDsEFrqMaRsI2UsESa90AJCRybnMNUoZKiQi3oylCU5PWv2A8r9qXQLi/uIIqpoooshDnGKx8O4AfEUL/EWH/EFj6Z2pLP6mweSOOzItiGD4NHUjXkUbBBtNl7HIeTIRos7jAuK3OwCs+De3YcZj/4GkUdu/R2Me3+3ZqH3UIsgmB1G3m+0zybaUbbJbDT5+rk2POJPRdrFzS30GmvgHAWjAAA=) format("woff2");font-weight:400;font-style:normal;font-display:block}', N = "hope-player-icon-font";
1073
- function we() {
1074
- if (typeof document > "u" || document.getElementById(N)) return;
1075
- const a = document.createElement("style");
1076
- a.id = N, a.textContent = ye, document.head.appendChild(a);
1077
- }
1078
- const V = {
1079
- play: "Oynat",
1080
- pause: "Duraklat",
1081
- mute: "Sessize al",
1082
- unmute: "Sesi aç",
1083
- volume: "Ses seviyesi",
1084
- seekBar: "Video konumu",
1085
- settings: "Ayarlar",
1086
- pip: "Resim içinde resim",
1087
- fullscreenEnter: "Tam ekran",
1088
- fullscreenExit: "Tam ekrandan çık",
1089
- playbackSpeed: "Oynatma Hızı",
1090
- normal: "Normal",
1091
- quality: "Kalite",
1092
- captions: "Altyazı",
1093
- captionsOff: "Kapalı",
1094
- captionSize: "Yazı Boyutu",
1095
- captionSizeSmall: "Küçük",
1096
- captionSizeNormal: "Normal",
1097
- captionSizeLarge: "Büyük",
1098
- captionResetPosition: "Konumu sıfırla",
1099
- captionBgColor: "Arka Plan Rengi",
1100
- captionTextColor: "Yazı Rengi",
1101
- captionDragHandle: "Altyazı konumu — tutup sürükleyin",
1102
- autoQuality: "Oto",
1103
- loop: "Döngü",
1104
- close: "Kapat",
1105
- retry: "Tekrar Dene",
1106
- errorAborted: "Video yüklemesi iptal edildi.",
1107
- errorNetwork: "Ağ hatası — video yüklenemedi.",
1108
- errorDecode: "Video kodu çözülemedi.",
1109
- errorSrcNotSupported: "Bu video kaynağı desteklenmiyor.",
1110
- errorGeneric: "Video oynatılırken bir hata oluştu.",
1111
- countdownRemaining: "Kalan süre",
1112
- geoDefaultWarning: "Erişim engellendi.",
1113
- geoUnknownCountry: "Ülke bilgisi bulunamadı.",
1114
- redirectCancel: "İptal",
1115
- redirectPlayNow: "Şimdi Oynat",
1116
- redirectCountdown: (a) => `Sıradaki video ${a} saniye içinde oynatılacak.`,
1117
- redirectNowPlaying: "Video oynatılıyor...",
1118
- qrResumeTitle: "Devam etmek için kodu telefonunuzla okutun",
1119
- qrResumeDontShowAgain: "Bir daha gösterme",
1120
- qrResumeContinue: "Devam Et",
1121
- qrResumeMenuLabel: "QR ile Devam Et",
1122
- qrResumeOn: "Açık",
1123
- qrResumeOff: "Kapalı",
1124
- markerLearnMore: "Daha fazla bilgi",
1125
- markerContinue: "Devam et",
1126
- playlistTitle: "Oynatma Listesi",
1127
- playlistPrev: "Önceki",
1128
- playlistNext: "Sonraki",
1129
- videoFallbackTitle: (a) => `Video ${a + 1}`,
1130
- storyPrev: "Önceki video",
1131
- storyNext: "Sonraki video",
1132
- storyAllVideos: "Tüm videolar",
1133
- dubbingTitle: "Ses / Dil",
1134
- liveClock: "Canlı saat",
1135
- live: "CANLI",
1136
- goToLive: "Canlıya git"
1137
- }, xe = {
1138
- play: "Play",
1139
- pause: "Pause",
1140
- mute: "Mute",
1141
- unmute: "Unmute",
1142
- volume: "Volume",
1143
- seekBar: "Seek",
1144
- settings: "Settings",
1145
- pip: "Picture-in-picture",
1146
- fullscreenEnter: "Fullscreen",
1147
- fullscreenExit: "Exit fullscreen",
1148
- playbackSpeed: "Playback speed",
1149
- normal: "Normal",
1150
- quality: "Quality",
1151
- captions: "Captions",
1152
- captionsOff: "Off",
1153
- captionSize: "Font Size",
1154
- captionSizeSmall: "Small",
1155
- captionSizeNormal: "Normal",
1156
- captionSizeLarge: "Large",
1157
- captionResetPosition: "Reset position",
1158
- captionBgColor: "Background Color",
1159
- captionTextColor: "Text Color",
1160
- captionDragHandle: "Caption position — drag to move",
1161
- autoQuality: "Auto",
1162
- loop: "Loop",
1163
- close: "Close",
1164
- retry: "Retry",
1165
- errorAborted: "Video loading was aborted.",
1166
- errorNetwork: "Network error — the video could not load.",
1167
- errorDecode: "The video could not be decoded.",
1168
- errorSrcNotSupported: "This video source is not supported.",
1169
- errorGeneric: "An error occurred while playing the video.",
1170
- countdownRemaining: "Time remaining",
1171
- geoDefaultWarning: "Access denied.",
1172
- geoUnknownCountry: "No country information found.",
1173
- redirectCancel: "Cancel",
1174
- redirectPlayNow: "Play now",
1175
- redirectCountdown: (a) => `Next video will play in ${a} seconds.`,
1176
- redirectNowPlaying: "Now playing...",
1177
- qrResumeTitle: "Scan to continue watching on your phone",
1178
- qrResumeDontShowAgain: "Don't show again",
1179
- qrResumeContinue: "Continue",
1180
- qrResumeMenuLabel: "Continue via QR",
1181
- qrResumeOn: "On",
1182
- qrResumeOff: "Off",
1183
- markerLearnMore: "Learn more",
1184
- markerContinue: "Continue",
1185
- playlistTitle: "Playlist",
1186
- playlistPrev: "Previous",
1187
- playlistNext: "Next",
1188
- videoFallbackTitle: (a) => `Video ${a + 1}`,
1189
- storyPrev: "Previous video",
1190
- storyNext: "Next video",
1191
- storyAllVideos: "All videos",
1192
- dubbingTitle: "Audio / Language",
1193
- liveClock: "Live clock",
1194
- live: "LIVE",
1195
- goToLive: "Go to live"
1196
- }, ke = { tr: V, en: xe };
1197
- function q(a, e) {
1198
- return { ...ke[a ?? "tr"] ?? V, ...e };
1199
- }
1200
- function Ee(a, e, t) {
1201
- Object.assign(a, q(e, t));
1202
- }
1203
- const Ce = [0.5, 0.75, 1, 1.25, 1.5, 2], O = 1200, Ae = 10, Le = (
1204
- /* html */
1205
- `
1206
- <div class="video-area">
1207
- <div class="media-layer">
1208
- <video part="video" playsinline></video>
1209
- <div part="ad-layer" class="hp:absolute hp:inset-0 hp:z-10 hp:hidden"></div>
1210
- </div>
1211
- </div>
1212
- `
1213
- );
1214
- class Se extends HTMLElement {
1215
- constructor() {
1216
- super();
1217
- i(this, "root");
1218
- i(this, "videoArea");
1219
- i(this, "videoEl");
1220
- i(this, "adLayerEl");
1221
- i(this, "chromeEl");
1222
- i(this, "centerPlayButton");
1223
- i(this, "captionRenderer");
1224
- /** options.miniProgress açıkken kurulur. */
1225
- i(this, "miniProgress", null);
1226
- i(this, "chromeVisible", !0);
1227
- i(this, "sourceManager");
1228
- i(this, "controlBar");
1229
- i(this, "tooltip");
1230
- i(this, "keyboard");
1231
- i(this, "loadingSpinner");
1232
- i(this, "errorScreen");
1233
- i(this, "adsController", null);
1234
- i(this, "gestureControls", null);
1235
- i(this, "loopSection", null);
1236
- i(this, "inViewAutoplay", null);
1237
- i(this, "unregisterSticky", null);
1238
- i(this, "playlistRunner", null);
1239
- i(this, "hopeStory", null);
1240
- i(this, "markProgress", null);
1241
- i(this, "segments", null);
1242
- i(this, "spriteThumbnails", null);
1243
- i(this, "countdownScreen", null);
1244
- i(this, "geoChecker", null);
1245
- i(this, "redirectScreen", null);
1246
- i(this, "qrResume", null);
1247
- i(this, "dubbing", null);
1248
- i(this, "liveWallClock", null);
1249
- i(this, "daiController", null);
1250
- i(this, "instanceKey");
1251
- i(this, "subtitleTracks", []);
1252
- /** `applyOptions()`'ta aktif bir altyazı track'i seçiliyken `true` — dil değişince Boyut/Konum görünümünü tazelemek için. */
1253
- i(this, "captionTrackActive", !1);
1254
- /**
1255
- * countdownScreen varken gerçek init (kaynak + içerik plugin'leri) ertelenir; en güncel options snapshot'ı.
1256
- * onComplete kaydı tek sefer yapılır (bkz. playbackInitRegistered) — init birden fazla kez tetiklenmesin.
1257
- */
1258
- i(this, "pendingPlaybackOptions", null);
1259
- i(this, "playbackInitRegistered", !1);
1260
- /**
1261
- * countdownScreen gibi alanlar yalnızca .options ile gelir. connectedCallback'teki ilk (options'suz) geçiş chrome'u
1262
- * bir an açıp player'ı gösteriyordu; 'boot' bloklayıcısı gerçek options gelene kadar bekletir.
1263
- */
1264
- i(this, "bootResolved", !1);
1265
- i(this, "bootGraceTimer", null);
1266
- i(this, "_options", {});
1267
- i(this, "hideTimer", null);
1268
- i(this, "autoHideDelayMs", O);
1269
- i(this, "tapCandidate", !1);
1270
- i(this, "tapStartX", 0);
1271
- i(this, "tapStartY", 0);
1272
- /** Tüm UI'ın paylaştığı tek, mutable sözlük — dil değişince referans değil alanlar güncellenir. */
1273
- i(this, "i18n", q("tr"));
1274
- /** IMA SDK'nın kendi ad-UI dili (skip butonu/sayaç metni) de aynı dili takip etsin diye — bkz. plugins/ads/AdsController. */
1275
- i(this, "localeCode", "tr");
1276
- /** Playlist panelinin monte edileceği, .video-area'nın ALTINDAKİ (shadow root içi) kapsayıcı — ilk ihtiyaçta oluşturulur. */
1277
- i(this, "panelContainer", null);
1278
- i(this, "onHlsLevelsChanged", (t, r) => {
1279
- if (t.length <= 1) return;
1280
- const s = (o) => `${o.height}p`;
1281
- this.controlBar.setQualities(
1282
- [
1283
- { label: this.i18n.autoQuality, onSelect: () => this.sourceManager.setLevel(-1) },
1284
- ...t.map((o) => ({ label: s(o), onSelect: () => this.sourceManager.setLevel(o.index) }))
1285
- ],
1286
- r === -1 ? this.i18n.autoQuality : s(t[r])
1287
- );
1288
- });
1289
- i(this, "onFullscreenChange", () => {
1290
- this.controlBar.setFullscreenState(this.isFullscreenActive());
1291
- });
1292
- // ── Oynatma durumuna göre merkez buton + otomatik gizlenme ──
1293
- // Değer: 'hidden' (tamamen gizle — countdown/geo) ya da 'reduced' (yalnızca oynat/duraklat + ses — ads).
1294
- i(this, "chromeBlockers", /* @__PURE__ */ new Map());
1295
- i(this, "onPlay", () => {
1296
- this.isChromeBlocked || (this.centerPlayButton.style.opacity = "0", this.centerPlayButton.style.pointerEvents = "none", this.scheduleAutoHide()), this.dispatchEvent(new CustomEvent("hp:play"));
1297
- });
1298
- i(this, "onPause", () => {
1299
- this.isChromeBlocked || (this.centerPlayButton.style.opacity = "1", this.centerPlayButton.style.pointerEvents = "auto", this.showChrome()), this.dispatchEvent(new CustomEvent("hp:pause"));
1300
- });
1301
- i(this, "onPointerDownFocus", () => {
1302
- var t;
1303
- this.focus(), (t = this.adsController) == null || t.initializeDisplayContainerOnce();
1304
- });
1305
- i(this, "onVideoPressStart", (t) => {
1306
- this.tapCandidate = !0;
1307
- const r = "touches" in t ? t.touches[0] : t;
1308
- r && (this.tapStartX = r.clientX, this.tapStartY = r.clientY);
1309
- });
1310
- i(this, "onVideoPressEnd", (t) => {
1311
- var s;
1312
- if (!this.tapCandidate || (this.tapCandidate = !1, this.isChromeBlocked) || (s = this.gestureControls) != null && s.isCurrentlyHolding()) return;
1313
- const r = "changedTouches" in t ? t.changedTouches[0] : t;
1314
- r && Math.hypot(r.clientX - this.tapStartX, r.clientY - this.tapStartY) > Ae || (this.videoEl.paused ? this.videoEl.play().catch(() => {
1315
- }) : this.videoEl.pause());
1316
- });
1317
- i(this, "onVideoPressCancel", () => {
1318
- this.tapCandidate = !1;
1319
- });
1320
- i(this, "scheduleAutoHide", () => {
1321
- this.showChrome(), this.hideTimer && clearTimeout(this.hideTimer), !this.videoEl.paused && (this.hideTimer = setTimeout(() => {
1322
- this.setChromeOpacity("0");
1323
- }, this.autoHideDelayMs));
1324
- });
1325
- we(), this.root = this.attachShadow({ mode: "open" });
1326
- const t = document.createElement("style");
1327
- t.textContent = X, this.root.appendChild(t);
1328
- const r = document.createElement("div");
1329
- r.innerHTML = Le, this.root.appendChild(r), this.videoArea = this.root.querySelector(".video-area"), this.videoEl = this.root.querySelector("video"), this.adLayerEl = this.root.querySelector('[part="ad-layer"]'), this.instanceKey = `hp-${Math.random().toString(36).slice(2, 10)}`, this.loadingSpinner = new ne(this.videoEl), this.root.querySelector(".media-layer").appendChild(this.loadingSpinner.el), this.errorScreen = new ae(this.videoEl, this.i18n), this.errorScreen.setOnRetry(() => this.videoEl.load()), this.root.querySelector(".media-layer").appendChild(this.errorScreen.el), this.centerPlayButton = document.createElement("button"), this.centerPlayButton.type = "button", this.centerPlayButton.setAttribute("part", "center-play-button"), this.centerPlayButton.setAttribute("aria-label", this.i18n.play), this.centerPlayButton.className = "hp:absolute hp:inset-0 hp:flex hp:items-center hp:justify-center hp:bg-transparent hp:border-0 hp:cursor-pointer hp:text-on-surface hp:transition-opacity";
1330
- const s = document.createElement("span");
1331
- s.className = "hp-chip hp:flex hp:items-center hp:justify-center hp:w-16 hp:h-16", s.style.borderRadius = "9999px", s.appendChild(v("play", "hp:text-2xl")), this.centerPlayButton.appendChild(s), this.centerPlayButton.addEventListener("click", () => {
1332
- this.videoEl.paused && this.videoEl.play();
1333
- }), this.videoArea.appendChild(this.centerPlayButton), this.chromeEl = document.createElement("div"), this.chromeEl.className = "hp:absolute hp:inset-0 hp:z-20 hp:pointer-events-none", this.videoArea.appendChild(this.chromeEl), this.sourceManager = new W(this.videoEl, this.onHlsLevelsChanged), this.controlBar = new J(
1334
- this.videoEl,
1335
- Ce,
1336
- {
1337
- onRequestFullscreen: () => this.requestFullscreenCompat(),
1338
- onExitFullscreen: () => this.exitFullscreenCompat(),
1339
- isFullscreen: () => this.isFullscreenActive(),
1340
- // adsController sonradan kurulur — closure'lar her çağrıda güncel this.adsController'ı okur.
1341
- isAdActive: () => this.isAdPlaying(),
1342
- adTogglePlay: () => {
1343
- var o;
1344
- return (o = this.adsController) == null ? void 0 : o.toggleAdPlayPause();
1345
- },
1346
- adIsPaused: () => {
1347
- var o;
1348
- return ((o = this.adsController) == null ? void 0 : o.isAdPaused()) ?? !0;
1349
- },
1350
- adVolume: {
1351
- isAdActive: () => this.isAdPlaying(),
1352
- getVolume: () => {
1353
- var o;
1354
- return ((o = this.adsController) == null ? void 0 : o.getAdVolume()) ?? 1;
1355
- },
1356
- setVolume: (o) => {
1357
- var l;
1358
- return (l = this.adsController) == null ? void 0 : l.setAdVolume(o);
1359
- },
1360
- toggleMute: () => {
1361
- var o;
1362
- return (o = this.adsController) == null ? void 0 : o.toggleAdMute();
1363
- }
1364
- }
1365
- },
1366
- this.i18n
1367
- ), this.chromeEl.appendChild(this.controlBar.el), this.chromeEl.appendChild(this.controlBar.topEl), this.videoArea.appendChild(this.controlBar.volumePanel.unmuteBadge), this.captionRenderer = new k(this.videoEl, this.videoArea, this.controlBar.seekBar.el, this.i18n), this.videoArea.appendChild(this.captionRenderer.layerEl), this.keyboard = new oe(
1368
- this,
1369
- this.videoEl,
1370
- () => this.isFullscreenActive() ? this.exitFullscreenCompat() : this.requestFullscreenCompat()
1371
- ), this.tooltip = new se(this.videoArea), this.blockChrome("boot");
1372
- }
1373
- static get observedAttributes() {
1374
- return ["src", "poster", "autoplay", "muted", "loop", "theme", "locale"];
1375
- }
1376
- connectedCallback() {
1377
- this.tabIndex = this.tabIndex || 0, this.syncFromAttributes(), this.bootResolved || (this.bootGraceTimer = setTimeout(() => {
1378
- this.bootGraceTimer = null, this.bootResolved || (this.bootResolved = !0, this.syncFromAttributes());
1379
- }, 80)), this.videoEl.addEventListener("play", this.onPlay), this.videoEl.addEventListener("pause", this.onPause), this.addEventListener("pointermove", this.scheduleAutoHide), this.addEventListener("pointerdown", this.onPointerDownFocus), document.addEventListener("fullscreenchange", this.onFullscreenChange), this.videoEl.addEventListener("mousedown", this.onVideoPressStart), this.videoEl.addEventListener("mouseup", this.onVideoPressEnd), this.videoEl.addEventListener("mouseleave", this.onVideoPressCancel), this.videoEl.addEventListener("touchstart", this.onVideoPressStart, { passive: !0 }), this.videoEl.addEventListener("touchend", this.onVideoPressEnd), this.videoEl.addEventListener("touchcancel", this.onVideoPressCancel), this.dispatchEvent(new CustomEvent("hp:ready"));
1380
- }
1381
- disconnectedCallback() {
1382
- var t, r, s, o, l, p, n, h, c, d, u, g, b, f, m, S, T, P;
1383
- (t = this.miniProgress) == null || t.destroy(), this.miniProgress = null, this.videoEl.removeEventListener("play", this.onPlay), this.videoEl.removeEventListener("pause", this.onPause), this.removeEventListener("pointermove", this.scheduleAutoHide), this.removeEventListener("pointerdown", this.onPointerDownFocus), document.removeEventListener("fullscreenchange", this.onFullscreenChange), this.videoEl.removeEventListener("mousedown", this.onVideoPressStart), this.videoEl.removeEventListener("mouseup", this.onVideoPressEnd), this.videoEl.removeEventListener("mouseleave", this.onVideoPressCancel), this.videoEl.removeEventListener("touchstart", this.onVideoPressStart), this.videoEl.removeEventListener("touchend", this.onVideoPressEnd), this.videoEl.removeEventListener("touchcancel", this.onVideoPressCancel), this.controlBar.destroy(), this.captionRenderer.destroy(), this.keyboard.destroy(), this.tooltip.destroy(), this.loadingSpinner.destroy(), this.errorScreen.destroy(), this.sourceManager.destroy(), (r = this.adsController) == null || r.destroy(), (s = this.gestureControls) == null || s.destroy(), (o = this.loopSection) == null || o.destroy(), (l = this.inViewAutoplay) == null || l.destroy(), (p = this.unregisterSticky) == null || p.call(this), (n = this.playlistRunner) == null || n.destroy(), (h = this.hopeStory) == null || h.destroy(), (c = this.markProgress) == null || c.destroy(), (d = this.segments) == null || d.destroy(), (u = this.spriteThumbnails) == null || u.destroy(), (g = this.countdownScreen) == null || g.destroy(), (b = this.geoChecker) == null || b.destroy(), (f = this.redirectScreen) == null || f.destroy(), (m = this.qrResume) == null || m.destroy(), (S = this.dubbing) == null || S.destroy(), (T = this.liveWallClock) == null || T.destroy(), (P = this.daiController) == null || P.destroy(), this.hideTimer && clearTimeout(this.hideTimer), this.bootGraceTimer && clearTimeout(this.bootGraceTimer);
1384
- }
1385
- /** Reklam/consent-farkında plugin'lerin (gesture/sticky/in-view-autoplay) ortak sorgusu. */
1386
- isAdPlaying() {
1387
- return this.chromeBlockers.has("ads");
1388
- }
1389
- attributeChangedCallback() {
1390
- this.syncFromAttributes();
1391
- }
1392
- get options() {
1393
- return this._options;
1394
- }
1395
- set options(t) {
1396
- this._options = t ?? {}, this.bootGraceTimer && (clearTimeout(this.bootGraceTimer), this.bootGraceTimer = null), this.bootResolved = !0, this.syncFromAttributes();
1397
- }
1398
- play() {
1399
- return this.videoEl.play();
1400
- }
1401
- pause() {
1402
- this.videoEl.pause();
1403
- }
1404
- /** `options.qrResume` kuruluysa "telefonundan devam et" QR ekranını manuel göster (ör. entegratörün kendi "telefona gönder" butonu) — otomatik gösterim kuralları (minElapsed/minRemaining) burada uygulanmaz. */
1405
- showQrResume() {
1406
- var t;
1407
- (t = this.qrResume) == null || t.show();
1408
- }
1409
- get showRemainingTime() {
1410
- return this.controlBar.getShowRemaining();
1411
- }
1412
- set showRemainingTime(t) {
1413
- this.controlBar.setShowRemaining(t);
1414
- }
1415
- toggleTimeDisplay() {
1416
- this.controlBar.toggleTimeMode();
1417
- }
1418
- syncFromAttributes() {
1419
- const t = {
1420
- src: this.getAttribute("src") ?? void 0,
1421
- poster: this.getAttribute("poster") ?? void 0,
1422
- autoplay: this.hasAttribute("autoplay"),
1423
- muted: this.hasAttribute("muted"),
1424
- loop: this.hasAttribute("loop"),
1425
- theme: this.getAttribute("theme") ?? void 0,
1426
- locale: this.getAttribute("locale") ?? void 0
1427
- };
1428
- this.applyOptions({ ...t, ...this._options });
1429
- }
1430
- async applyOptions(t) {
1431
- var s, o, l, p, n, h, c, d, u, g, b, f;
1432
- if (t.poster && (this.videoEl.poster = t.poster), this.videoEl.autoplay = !!t.autoplay, this.videoEl.muted = !!t.muted, this.videoEl.loop = !!t.loop, this.autoHideDelayMs = t.autoHideDelayMs ?? O, t.miniProgress && !this.miniProgress ? (this.miniProgress = new fe(this.videoEl), this.videoArea.appendChild(this.miniProgress.el), this.updateMiniProgress()) : !t.miniProgress && this.miniProgress && (this.miniProgress.destroy(), this.miniProgress = null), t.showRemainingTime !== void 0 && this.controlBar.setShowRemaining(t.showRemainingTime), t.theme ? this.setAttribute("data-theme", t.theme) : this.removeAttribute("data-theme"), this.localeCode = t.locale ?? "tr", Ee(this.i18n, t.locale, t.labels), this.centerPlayButton.setAttribute("aria-label", this.i18n.play), this.controlBar.refreshLabels(), this.captionRenderer.refreshLabels(this.i18n), this.captionTrackActive && this.controlBar.settingsMenu.setCaptionAppearance(this.buildCaptionAppearance()), this.errorScreen.refreshLabels(), (s = this.playlistRunner) == null || s.refreshLabels(), (o = this.hopeStory) == null || o.refreshLabels(), (l = this.countdownScreen) == null || l.refreshLabels(), (p = this.geoChecker) == null || p.refreshLabels(), (n = this.redirectScreen) == null || n.refreshLabels(), (h = this.qrResume) == null || h.refreshLabels(), (c = this.dubbing) == null || c.refreshLabels(), (d = this.liveWallClock) == null || d.refreshLabels(), (u = this.loopSection) == null || u.refreshLabels(), (g = this.markProgress) == null || g.refreshLabels(), (f = (b = this.unregisterSticky) == null ? void 0 : b.refreshLabels) == null || f.call(b), !this.bootResolved)
1433
- return;
1434
- const r = () => ({
1435
- videoEl: this.videoEl,
1436
- overlayContainerEl: this.videoArea,
1437
- blockChrome: () => this.blockChrome("countdown-geo"),
1438
- unblockChrome: () => this.unblockChrome("countdown-geo"),
1439
- i18n: this.i18n
1440
- });
1441
- if (t.countdownScreen && !this.countdownScreen) {
1442
- const { installCountdownScreen: m } = await import("./index-rENB3n9O.js");
1443
- this.countdownScreen = m(r(), t.countdownScreen);
1444
- }
1445
- if (t.geoChecker && !this.geoChecker) {
1446
- const { installGeoChecker: m } = await import("./index-BBmuCtKu.js");
1447
- this.geoChecker = m(r(), t.geoChecker);
1448
- }
1449
- this.unblockChrome("boot"), this.countdownScreen && !this.countdownScreen.isComplete() ? (this.pendingPlaybackOptions = t, this.playbackInitRegistered || (this.playbackInitRegistered = !0, this.countdownScreen.onComplete(() => {
1450
- const m = this.pendingPlaybackOptions;
1451
- this.pendingPlaybackOptions = null, m && this.initPlayback(m);
1452
- }))) : await this.initPlayback(t);
1453
- }
1454
- async initPlayback(t) {
1455
- var s, o, l, p;
1456
- const r = (s = t.sources) != null && s.length ? t.sources : t.src ? [{ src: t.src, label: this.i18n.autoQuality }] : [];
1457
- if (r.length > 0) {
1458
- const n = r.find((h) => h.selected) ?? r[0];
1459
- await this.sourceManager.load(n.src, n.type), t.autoplay && this.videoEl.play().catch(() => {
1460
- });
1461
- }
1462
- if (r.length > 1 && this.controlBar.setQualities(
1463
- r.map((n) => ({
1464
- label: n.label,
1465
- onSelect: () => void this.switchQualitySource(n)
1466
- })),
1467
- ((o = r.find((n) => n.selected)) == null ? void 0 : o.label) ?? r[0].label
1468
- ), t.ads && !this.adsController) {
1469
- const n = t.ads === !0 ? {} : t.ads, { installAds: h } = await import("./index-glxDu2eJ.js");
1470
- this.adsController = await h(
1471
- {
1472
- videoEl: this.videoEl,
1473
- hostEl: this,
1474
- adLayerEl: this.adLayerEl,
1475
- hideChrome: () => this.blockChrome("ads", "reduced"),
1476
- showChrome: () => this.unblockChrome("ads"),
1477
- // IMA'nın KENDİ UI'ı üzerinden (ör. reklam video'suna
1478
- // tıklama) duraklatılır/devam ettirilirse toolbar'ımızın
1479
- // ikonu da senkron kalsın diye.
1480
- onAdPlayStateChange: () => this.controlBar.refreshAdPlayState(),
1481
- locale: this.localeCode
1482
- },
1483
- n
1484
- );
1485
- }
1486
- if (t.gesture && !this.gestureControls) {
1487
- const n = t.gesture === !0 ? {} : t.gesture, { installGesture: h } = await import("./index-Ca8hocby.js");
1488
- this.gestureControls = h(
1489
- { videoEl: this.videoEl, overlayContainerEl: this.videoArea, isAdActive: () => this.isAdPlaying() },
1490
- n
1491
- );
1492
- }
1493
- if (t.loopSection && !this.loopSection) {
1494
- const n = t.loopSection === !0 ? {} : t.loopSection, { installLoopSection: h } = await import("./index-f0vSgRIK.js");
1495
- this.loopSection = h(
1496
- {
1497
- videoEl: this.videoEl,
1498
- seekBarEl: this.controlBar.seekBar.el,
1499
- markers: this.controlBar.seekBar,
1500
- addControlButton: (c, d, u) => this.controlBar.addButton(c, d, u),
1501
- i18n: this.i18n
1502
- },
1503
- n
1504
- );
1505
- }
1506
- if (t.inViewAutoplay && !this.inViewAutoplay) {
1507
- const n = t.inViewAutoplay === !0 ? {} : t.inViewAutoplay, { installInViewAutoplay: h } = await import("./index-3QALpwsf.js");
1508
- this.inViewAutoplay = h(
1509
- { videoEl: this.videoEl, observeEl: this, isAdActive: () => this.isAdPlaying() },
1510
- n
1511
- );
1512
- }
1513
- if (t.sticky && !this.unregisterSticky) {
1514
- const n = t.sticky === !0 ? {} : t.sticky, { installSticky: h } = await import("./index-CDDke5rz.js");
1515
- this.unregisterSticky = h(
1516
- {
1517
- key: this.instanceKey,
1518
- videoEl: this.videoEl,
1519
- hostEl: this,
1520
- wrapperEl: this,
1521
- closeButtonMountEl: this.videoArea,
1522
- isAdActive: () => this.isAdPlaying(),
1523
- i18n: this.i18n
1524
- },
1525
- n
1526
- );
1527
- }
1528
- if (t.playlist && !this.playlistRunner) {
1529
- const { installPlaylist: n } = await import("./index-B4ujPVcl.js");
1530
- this.playlistRunner = n(
1531
- {
1532
- videoEl: this.videoEl,
1533
- hostEl: this,
1534
- panelEl: this.getOrCreatePanelContainer(),
1535
- loadSource: (h, c) => this.sourceManager.load(h, c),
1536
- setPoster: (h) => {
1537
- this.videoEl.poster = h;
1538
- },
1539
- requestFreshAd: (h) => {
1540
- var c;
1541
- return (c = this.adsController) == null ? void 0 : c.resetForNewItem(h);
1542
- },
1543
- i18n: this.i18n
1544
- },
1545
- t.playlist
1546
- );
1547
- }
1548
- if (t.story && !this.hopeStory) {
1549
- const { installStory: n } = await import("./index-BFgqg05L.js");
1550
- this.hopeStory = n(
1551
- {
1552
- videoEl: this.videoEl,
1553
- hostEl: this,
1554
- videoAreaEl: this.videoArea,
1555
- playerBodyEls: [this.root.querySelector(".media-layer"), this.chromeEl, this.centerPlayButton],
1556
- loadSource: (h, c) => this.sourceManager.load(h, c),
1557
- setPoster: (h) => {
1558
- this.videoEl.poster = h;
1559
- },
1560
- requestFreshAd: (h) => {
1561
- var c;
1562
- return (c = this.adsController) == null ? void 0 : c.resetForNewItem(h);
1563
- },
1564
- i18n: this.i18n
1565
- },
1566
- t.story
1567
- );
1568
- }
1569
- if (t.markers && !this.markProgress) {
1570
- const { installMarkers: n } = await import("./index-DXf2Al1x.js");
1571
- this.markProgress = n(
1572
- {
1573
- videoEl: this.videoEl,
1574
- overlayContainerEl: this.videoArea,
1575
- addSeekBarMarker: (h, c) => this.controlBar.seekBar.addMarker(h, c),
1576
- i18n: this.i18n
1577
- },
1578
- t.markers
1579
- );
1580
- }
1581
- if ((l = t.segments) != null && l.length && !this.segments) {
1582
- const { installSegments: n } = await import("./index-CQqGn9as.js");
1583
- this.segments = n({ videoEl: this.videoEl, seekBar: this.controlBar.seekBar }, t.segments);
1584
- }
1585
- if (t.spriteThumbnails && !this.spriteThumbnails) {
1586
- const { installSpriteThumbnails: n } = await import("./index-q5DsrT-Q.js");
1587
- this.spriteThumbnails = n(
1588
- {
1589
- videoEl: this.videoEl,
1590
- seekBar: this.controlBar.seekBar,
1591
- playerWidth: () => this.videoArea.clientWidth
1592
- },
1593
- t.spriteThumbnails
1594
- );
1595
- }
1596
- if (t.redirectScreen && !this.redirectScreen) {
1597
- const { installRedirectScreen: n } = await import("./index-D6r-BGAV.js");
1598
- this.redirectScreen = n(
1599
- { videoEl: this.videoEl, overlayContainerEl: this.videoArea, isAdActive: () => this.isAdPlaying(), i18n: this.i18n },
1600
- t.redirectScreen
1601
- );
1602
- }
1603
- if (t.qrResume && !this.qrResume) {
1604
- const { installQrResume: n } = await import("./index-DT8-oMPm.js");
1605
- this.qrResume = n({ videoEl: this.videoEl, overlayContainerEl: this.videoArea, i18n: this.i18n }, t.qrResume);
1606
- }
1607
- if (this.qrResume) {
1608
- const n = this.qrResume;
1609
- this.controlBar.settingsMenu.setQrResumeToggle({
1610
- label: this.i18n.qrResumeMenuLabel,
1611
- getValueLabel: () => n.isEnabled() ? this.i18n.qrResumeOn : this.i18n.qrResumeOff,
1612
- onToggle: () => n.setEnabled(!n.isEnabled())
1613
- });
1614
- }
1615
- if (t.dubbing && !this.dubbing) {
1616
- const { installDubbing: n } = await import("./index-DXWK4EFa.js");
1617
- this.dubbing = n(
1618
- {
1619
- videoEl: this.videoEl,
1620
- loadSource: (h, c) => this.sourceManager.load(h, c),
1621
- registerSubmenu: (h) => this.controlBar.settingsMenu.registerSubmenu(h),
1622
- unregisterSubmenu: (h) => this.controlBar.settingsMenu.unregisterSubmenu(h),
1623
- i18n: this.i18n
1624
- },
1625
- t.dubbing
1626
- );
1627
- }
1628
- if (t.liveWallClock && !this.liveWallClock) {
1629
- const n = t.liveWallClock === !0 ? {} : t.liveWallClock, { installLiveWallClock: h } = await import("./index-Z7Jmls0c.js");
1630
- this.liveWallClock = h(
1631
- {
1632
- videoEl: this.videoEl,
1633
- seekBarEl: this.controlBar.seekBar.el,
1634
- addControlElement: (c) => this.controlBar.addElement(c),
1635
- i18n: this.i18n
1636
- },
1637
- n
1638
- );
1639
- }
1640
- if (t.dai && !this.daiController) {
1641
- const { installDai: n } = await import("./index-Q8FMOHj0.js");
1642
- this.daiController = await n(
1643
- {
1644
- videoEl: this.videoEl,
1645
- hostEl: this,
1646
- adUiEl: this.adLayerEl,
1647
- loadStreamUrl: (h) => this.sourceManager.load(h),
1648
- disableSeeking: () => this.disableSeeking(),
1649
- enableSeeking: () => this.enableSeeking()
1650
- },
1651
- t.dai
1652
- );
1653
- }
1654
- if ((p = t.subtitles) != null && p.length) {
1655
- this.subtitleTracks = le(this.videoEl, t.subtitles);
1656
- const n = t.subtitles.find((c) => c.default), h = (c) => {
1657
- const d = he(this.subtitleTracks, c);
1658
- this.captionRenderer.setActiveTrack(d), this.captionTrackActive = d !== null, this.controlBar.settingsMenu.setCaptionAppearance(d !== null ? this.buildCaptionAppearance() : null);
1659
- };
1660
- this.controlBar.setCaptions(
1661
- [
1662
- { label: this.i18n.captionsOff, onSelect: () => h(null) },
1663
- ...this.subtitleTracks.map(({ label: c }) => ({
1664
- label: c,
1665
- onSelect: () => h(c)
1666
- }))
1667
- ],
1668
- (n == null ? void 0 : n.label) ?? this.i18n.captionsOff
1669
- ), h((n == null ? void 0 : n.label) ?? null);
1670
- } else
1671
- this.captionRenderer.setActiveTrack(null), this.captionTrackActive = !1, this.controlBar.settingsMenu.setCaptionAppearance(null);
1672
- }
1673
- /** Ayarlar menüsünün "Altyazı" alt menüsüne eklenen Boyut/Renk/Konum satırları — her zaman GÜNCEL `this.i18n`'i okur (dil sonradan değişse bile). */
1674
- buildCaptionAppearance() {
1675
- const t = ["small", "normal", "large"], r = (s, o, l, p) => s.map((n, h) => ({
1676
- value: n,
1677
- active: o() === n,
1678
- ariaLabel: `${p} ${h + 1}`,
1679
- onSelect: () => l(n)
1680
- }));
1681
- return {
1682
- sizeLabel: this.i18n.captionSize,
1683
- getSizeOptions: () => t.map((s) => ({
1684
- label: s === "small" ? this.i18n.captionSizeSmall : s === "large" ? this.i18n.captionSizeLarge : this.i18n.captionSizeNormal,
1685
- active: this.captionRenderer.getFontSize() === s,
1686
- onSelect: () => this.captionRenderer.setFontSize(s)
1687
- })),
1688
- bgColorLabel: this.i18n.captionBgColor,
1689
- getBgColorOptions: () => r(
1690
- k.BG_COLOR_PRESETS,
1691
- () => this.captionRenderer.getBgColor(),
1692
- (s) => this.captionRenderer.setBgColor(s),
1693
- this.i18n.captionBgColor
1694
- ),
1695
- textColorLabel: this.i18n.captionTextColor,
1696
- getTextColorOptions: () => r(
1697
- k.TEXT_COLOR_PRESETS,
1698
- () => this.captionRenderer.getTextColor(),
1699
- (s) => this.captionRenderer.setTextColor(s),
1700
- this.i18n.captionTextColor
1701
- ),
1702
- resetPositionLabel: this.i18n.captionResetPosition,
1703
- onResetPosition: () => this.captionRenderer.resetPosition()
1704
- };
1705
- }
1706
- getOrCreatePanelContainer() {
1707
- return this.panelContainer || (this.panelContainer = document.createElement("div"), this.root.appendChild(this.panelContainer)), this.panelContainer;
1708
- }
1709
- /** Kalite değişirken oynatma konumunu ve play/pause durumunu korur. */
1710
- async switchQualitySource(t) {
1711
- const r = this.videoEl.currentTime, s = !this.videoEl.paused;
1712
- await this.sourceManager.load(t.src, t.type), this.videoEl.currentTime = r, s && this.videoEl.play().catch(() => {
1713
- }), this.dispatchEvent(new CustomEvent("hp:qualitychange", { detail: { label: t.label } }));
1714
- }
1715
- // ── Fullscreen (vendor-prefix uyumlu) ───────────────────────────────
1716
- requestFullscreenCompat() {
1717
- const t = this;
1718
- t.requestFullscreen ? t.requestFullscreen() : t.webkitRequestFullscreen && t.webkitRequestFullscreen();
1719
- }
1720
- exitFullscreenCompat() {
1721
- const t = document;
1722
- document.exitFullscreen ? document.exitFullscreen() : t.webkitExitFullscreen && t.webkitExitFullscreen();
1723
- }
1724
- isFullscreenActive() {
1725
- return document.fullscreenElement === this;
1726
- }
1727
- get isChromeBlocked() {
1728
- return this.chromeBlockers.size > 0;
1729
- }
1730
- get isChromeFullyHidden() {
1731
- for (const t of this.chromeBlockers.values()) if (t === "hidden") return !0;
1732
- return !1;
1733
- }
1734
- showChrome() {
1735
- this.setChromeOpacity("1");
1736
- }
1737
- /** Chrome görünürlüğünün tek giriş noktası — altyazı da haberdar olur (kontroller gizlenince en alta iner). */
1738
- setChromeOpacity(t) {
1739
- var r;
1740
- this.chromeEl.style.opacity = t, this.chromeVisible = t === "1", (r = this.captionRenderer) == null || r.setChromeVisible(this.chromeVisible), this.updateMiniProgress();
1741
- }
1742
- /** İnce ilerleme çizgisi: yalnızca kontroller gizliyken; reklam/giriş ekranı (chrome bloklu) sırasında değil. */
1743
- updateMiniProgress() {
1744
- var t;
1745
- (t = this.miniProgress) == null || t.setVisible(!this.chromeVisible && !this.isChromeBlocked);
1746
- }
1747
- /**
1748
- * Plugin (ads/countdown/geo) chrome'u kendi key'iyle gizler; unblockChrome aynı key'le açar.
1749
- * 'reduced' (ads): yalnızca oynat/duraklat + ses kalır. Merkez buton her modda gizli.
1750
- */
1751
- blockChrome(t, r = "hidden") {
1752
- this.chromeBlockers.set(t, r), this.updateMiniProgress(), this.hideTimer && clearTimeout(this.hideTimer), this.centerPlayButton.style.opacity = "0", this.centerPlayButton.style.pointerEvents = "none", this.isChromeFullyHidden ? (this.setChromeOpacity("0"), this.chromeEl.style.pointerEvents = "none") : this.setChromeOpacity("1"), this.controlBar.setAdMode(this.chromeBlockers.get("ads") === "reduced");
1753
- }
1754
- /** Bloklayan plugin işini bitirince çağırır — başka bir blocker hâlâ aktifse chrome açılmaz. */
1755
- unblockChrome(t) {
1756
- if (this.chromeBlockers.delete(t), this.updateMiniProgress(), this.controlBar.setAdMode(this.chromeBlockers.get("ads") === "reduced"), this.isChromeBlocked) {
1757
- this.isChromeFullyHidden ? (this.setChromeOpacity("0"), this.chromeEl.style.pointerEvents = "none") : (this.setChromeOpacity("1"), this.chromeEl.style.pointerEvents = "");
1758
- return;
1759
- }
1760
- this.chromeEl.style.pointerEvents = "", this.videoEl.paused ? (this.centerPlayButton.style.opacity = "1", this.centerPlayButton.style.pointerEvents = "auto", this.showChrome()) : this.scheduleAutoHide();
1761
- }
1762
- /** DAI reklam arası boyunca kullanıcı reklamın İÇİNE seek edemesin diye (sunucu taraflı eklenen reklamlar seekable aralığın parçası). */
1763
- disableSeeking() {
1764
- this.controlBar.seekBar.el.style.pointerEvents = "none", this.controlBar.seekBar.el.style.opacity = "0.5";
1765
- }
1766
- enableSeeking() {
1767
- this.controlBar.seekBar.el.style.pointerEvents = "", this.controlBar.seekBar.el.style.opacity = "";
1768
- }
1769
- }
1770
- typeof window < "u" && !customElements.get("hope-player") && customElements.define("hope-player", Se);
1771
- export {
1772
- Se as H,
1773
- v as c,
1774
- y as f
1775
- };
1776
- //# sourceMappingURL=index-DiCkShCE.js.map