/*******************************************************************************
 * This source code is the proprietary property of Bitmovin, Inc. Unauthorized
 * copying, distribution, or use of this code, or any portion thereof, is
 * strictly prohibited. © 2026 Bitmovin, Inc. All rights reserved. This
 * source code is subject to the terms and conditions of the accompanying
 * license agreement.
 *
 * Bitmovin Player X Version 10.2.0-beta.16
 *******************************************************************************/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["bitmovin-video-element-utils"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx["bitmovin-video-element-utils"]=t())}(self,(()=>(()=>{"use strict";var e={97085:(e,t)=>{function o(e,t,o){const r=t;return r._name=e,{onAdd:r,dependencies:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=o},14809:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreExportNames=void 0,function(e){e.Utils="utils",e.Constants="constants",e.CoreEffects="core-effects",e.CoreStateAtoms="core-state-atoms"}(t.CoreExportNames||(t.CoreExportNames={}))},21010:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SourcesApiExportNames=void 0,function(e){e.SourceApiManager="source-api-manager",e.VideoElementUtils="video-element-utils",e.SourceEventBus="source-event-bus",e.SourceApiComponentMap="source-api-component-map",e.SourceRemovedError="source-removed-error"}(t.SourcesApiExportNames||(t.SourcesApiExportNames={}))},80570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdditionalPlayerExportNames=void 0,function(e){e.Container="container",e.UserConfig="user-config",e.VideoElement="video-element",e.PlayerApi="player-api",e.EventListenerAtom="event-listener-atom",e.V8CompatUtils="v8-compat-utils",e.PlayerEvent="v8-player-event"}(t.AdditionalPlayerExportNames||(t.AdditionalPlayerExportNames={}))},40217:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BitmovinPlayerVideoElementUtilsPackage=void 0;const r=o(97085),i=o(14809),n=o(21010),a=o(80570),s=o(55163);t.BitmovinPlayerVideoElementUtilsPackage=(0,r.createPackage)("bitmovin-video-element-utils",((e,t)=>{const{EventListenerEffectFactory:o}=t.registry.get(i.CoreExportNames.CoreEffects),r=t.using(o),d=r.registry.get(a.AdditionalPlayerExportNames.Container),l=r.registry.get(a.AdditionalPlayerExportNames.UserConfig),m=(0,s.createExtendedVideoElementUtils)(d,l,r);r.registry.set(n.SourcesApiExportNames.VideoElementUtils,m);const c=m.createVideoElement();r.registry.maybeSet(a.AdditionalPlayerExportNames.VideoElement,c),r.effects.events.subscribe(r,c,"timeupdate",(()=>r.effects.logger.verbose(`CurrentTime: ${c.currentTime.toFixed(2)}`))),e.set("getVideoElement",(()=>r.registry.maybeSetAndGet(a.AdditionalPlayerExportNames.VideoElement,c))),e.set("setVideoElement",(e=>r.registry.set(a.AdditionalPlayerExportNames.VideoElement,e)))}),[i.CoreExportNames.CoreEffects,a.AdditionalPlayerExportNames.Container,a.AdditionalPlayerExportNames.UserConfig]),t.default=t.BitmovinPlayerVideoElementUtilsPackage},55163:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createExtendedVideoElementUtils=void 0;const r=o(80570),i=(e,t,o)=>({configureVideoElement(e,t){var o;e.setAttribute("controls",""),e.style.width="100%",e.muted=null===(o=t.muted)||void 0===o||o},attachVideoElement(t){return e.appendChild(t),()=>e.removeChild(t)},detachVideoElement(t){e.removeChild(t)},createVideoElement(){var e,i;const n=null!==(i=null===(e=t.playback)||void 0===e?void 0:e.muted)&&void 0!==i&&i,a=o.registry.maybeSetAndGet(r.AdditionalPlayerExportNames.VideoElement,document.createElement("video"));return a.style.width="100%",a.muted=n,a}});t.createExtendedVideoElementUtils=i}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return o(40217)})()));