{"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,EAG7B,sBAAwB,CAAC,OAGzB,aAAe,KAEf,GAEA,UAAM,GAEC,MAAK,EAQR,KAAK,IAAI,aAAa,KAAK,MAP3B,MAAK,GAAW,EAEhB,KAAK,IAAM,EAAK,cAAc,SAC9B,KAAK,IAAI,WAAW,KAAK,SAAU,KAAK,IAAK,KAAK,UAMxD,EAGI,WAAW,iBAAmB,WAAW,eAAe,IAAI,eAC9D,WAAW,eAAe,OAAO,aAAc,U","file":"/npm/@luwes/dash-video-element@1.0.1/dash-video-element.js/+esm","sourceRoot":"","sourcesContent":["/**\n * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.\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"]}