{"version":3,"sources":["jsdelivr-header.js","/npm/@luwes/dash-video-element@1.0.1/dash-video-element.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,qHCHA,MAAM,UAAyB,CAAkB,CAG/C,OAAO,eAAiB,CAAC,KAAK,EAG9B,aAAe,KAEf,GAEA,MAAM,MAAO,CAEN,KAAK,GAQR,KAAK,IAAI,aAAa,KAAK,GAAG,GAP9B,KAAK,GAAW,GAEhB,KAAK,IAAM,EAAK,YAAW,EAAG,OAAM,EACpC,KAAK,IAAI,WAAW,KAAK,SAAU,KAAK,IAAK,KAAK,QAAQ,EAM9D,CACF,CAEI,WAAW,gBAAkB,CAAC,WAAW,eAAe,IAAI,YAAY,GAC1E,WAAW,eAAe,OAAO,aAAc,CAAgB","file":"/npm/@luwes/dash-video-element@1.0.1/dash-video-element.js/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.\n * Original file: /npm/@luwes/dash-video-element@1.0.1/dash-video-element.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { SuperVideoElement } from 'super-media-element';\nimport * as Dash from 'dashjs-esm';\n\nclass DashVideoElement extends SuperVideoElement {\n\n  // Prevent forwarding src to native video element.\n  static skipAttributes = ['src'];\n\n  // No load promise needed because dash.js is sync.\n  loadComplete = null;\n\n  #apiInit;\n\n  async load() {\n\n    if (!this.#apiInit) {\n      this.#apiInit = true;\n\n      this.api = Dash.MediaPlayer().create();\n      this.api.initialize(this.nativeEl, this.src, this.autoplay);\n\n    } else {\n\n      this.api.attachSource(this.src);\n    }\n  }\n}\n\nif (globalThis.customElements && !globalThis.customElements.get('dash-video')) {\n  globalThis.customElements.define('dash-video', DashVideoElement);\n}\n\nexport default DashVideoElement;\n"]}