PageSourceSearch

https://www.billiejeankingcup.com/_next/static/chunks/374-583519d5caf117ac.js

js billiejeankingcup.com collected 2026-10-02 05:04:06 UTC 621,114 bytes, 3,339 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[374],{24528:function(e,t){"use strict";var i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCKS=void 0,(a=i||(t.BLOCKS=i={})).DOCUMENT="document",a.PARAGRAPH="paragraph",a.HEADING_1="heading-1",a.HEADING_2="heading-2",a.HEADING_3="heading-3",a.HEADING_4="heading-4",a.HEADING_5="heading-5",a.HEADING_6="heading-6",a.OL_LIST="ordered-list",a.UL_LIST="unordered-list",a.LIST_ITEM="list-item",a.HR="hr",a.QUOTE="blockquote",a.EMBEDDED_ENTRY="embedded-entry-block",a.EMBEDDED_ASSET="embedded-asset-block",a.EMBEDDED_RESOURCE="embedded-resource-block",a.TABLE="table",a.TABLE_ROW="table-row",a.TABLE_CELL="table-cell",a.TABLE_HEADER_CELL="table-header-cell"},64292:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DOCUMENT=void 0;var a=i(24528);t.EMPTY_DOCUMENT={nodeType:a.BLOCKS.DOCUMENT,data:{},content:[{nodeType:a.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}},76492:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInline=function(e){return n(r.INLINES,e.nodeType)},t.isBlock=function(e){return n(a.BLOCKS,e.nodeType)},t.isText=function(e){return"text"===e.nodeType};var a=i(24528),r=i(54039);function n(e,t){for(var i=0,a=Object.keys(e);i<a.length;i++)if(t===e[a[i]])return!0;return!1}},15080:function(e,t,i){"use strict";var a=Object.create?function(e,t,i,a){void 0===a&&(a=i);var r=Object.getOwnPropertyDescriptor(t,i);
1(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,a,r)}:function(e,t,i,a){void 0===a&&(a=i),e[a]=t[i]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},n=function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||a(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaWithNodeType=t.helpers=t.EMPTY_DOCUMENT=t.MARKS=t.INLINES=t.BLOCKS=void 0;var o=i(24528);Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return o.BLOCKS}});var s=i(54039);Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return s.INLINES}});var l=i(5802);Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return l.MARKS}}),n(i(56671),t),n(i(41297),t),n(i(95959),t);var d=i(64292);Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return d.EMPTY_DOCUMENT}});var u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&a(t,e,i);return r(t,e),t}(i(76492));t.helpers=u;var c=i(51977);Object.defineProperty(t,"getSchemaWithNodeType",{enumerable:!0,get:function(){return c.getSchemaWithNodeType}})},54039:function(e,t){"use strict";var i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.INLINES=void 0,(a=i||(t.INLINES=i={})).ASSET_HYPERLINK="asset-hyperlink",a.EMBEDDED_ENTRY="embedded-entry-inline",a.EMBEDDED_RESOURCE="embedded-resource-inline",a.ENTRY_HYPERLINK="entry-hyperlink",a.HYPERLINK="hyperlink",a.RESOURCE_HYPERLINK="resource-hyperlink"},5802:function(e,t){"use strict";var i,a;Object.defineProperty(t,"__esModule",{value:!0}),t.MARKS=void 0,(a=i||(t.MARKS=i={})).BOLD="bold",a.ITALIC="italic",a.UNDERLINE="underline",a.CODE="code",a.SUPERSCRIPT="superscript",a.SUBSCRIPT="subscript",a.STRIKETHROUGH="strikethrough"},95959:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56671:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.V1_MARKS=t.V1_NODE_TYPES=t.TEXT_CONTAINERS=t.HEADINGS=t.CONTAINERS=t.VOID_BLOCKS=t.TABLE_BLOCKS=t.LIST_ITEM_BLOCKS=t.TOP_LEVEL_BLOCKS=void 0;var a,r=i(24528),n=i(54039),o=i(5802);t.TOP_LEVEL_BLOCKS=[r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE,r.BLOCKS.TABLE],t.LIST_ITEM_BLOCKS=[r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE],t.TABLE_BLOCKS=[r.BLOCKS.TABLE,r.BLOCKS.TABLE_ROW,r.BLOCKS.TABLE_CELL,r.BLOCKS.TABLE_HEADER_CELL],t.VOID_BLOCKS=[r.BLOCKS.HR,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE],t.CONTAINERS=((a={})[r.BLOCKS.OL_LIST]=[r.BLOCKS.LIST_ITEM],a[r.BLOCKS.UL_LIST]=[r.BLOCKS.LIST_ITEM],a[r.BLOCKS.LIST_ITEM]=t.LIST_ITEM_BLOCKS,a[r.BLOCKS.QUOTE]=[r.BLOCKS.PARAGRAPH],a[r.BLOCKS.TABLE]=[r.BLOCKS.TABLE_ROW],a[r.BLOCKS.TABLE_ROW]=[r.BLOCKS.TABLE_CELL,r.BLOCKS.TABLE_HEADER_CELL],a[r.BLOCKS.TABLE_CELL]=[r.BLOCKS.PARAGRAPH,r.BLOCKS.UL_LIST,r.BLOCKS.OL_LIST],a[r.BLOCKS.TABLE_HEADER_CELL]=[r.BLOCKS.PARAGRAPH],a),t.HEADINGS=[r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6],t.TEXT_CONTAINERS=function(e,t,i){if(i||2==arguments.length)for(var a,r=0,n=t.length;r<n;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}([r.BLOCKS.PARAGRAPH],t.HEADINGS,!0),t.V1_NODE_TYPES=[r.BLOCKS.DOCUMENT,r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.LIST_ITEM,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,n.INLINES.HYPERLINK,n.INLINES.ENTRY_HYPERLINK,n.INLINES.ASSET_HYPERLINK,n.INLINES.EMBEDDED_ENTRY,"text"],t.V1_MARKS=[o.MARKS.BOLD,o.MARKS.CODE,o.MARKS.ITALIC,o.MARKS.UNDERLINE]},51977:function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaWithNodeType=function(e){try{return i(48852)("./".concat(e,".json"))}catch(t){throw Error('Schema for nodeType "'.concat(e,'" was not found.'))}}},41297:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94975:function(e,t,i){var a=i(39866)(i(74288),"DataView");e.exports=a},9855:function(e,t,i){var a=i(43596),r=i(35907),n=i(35355),o=i(39870),s=i(73372);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=o,l.prototype.set=s,e.exports=l},99078:function(e,t,i){var a=i(62285),r=i(28706),n=i(63717),o=i(78410),s=i(13368);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=o,l.prototype.set=s,e.exports=l},88675:function(e,t,i){var a=i(39866)(i(74288),"Map");e.exports=a},76219:function(e,t,i){var a=i(38764),r=i(78615),n=i(83391),o=i(53483),s=i(74724);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var a=e[t];this.set(a[0],a[1])}}l.prototype.clear=a,l.prototype.delete=r,l.prototype.get=n,l.prototype.has=o,l.prototype.set=s,e.exports=l},69308:function(e,t,i){var a=i(39866)(i(74288),"Promise");e.exports=a},41497:function(e,t,i){var a=i(39866)(i(74288),"Set");e.exports=a},85885:function(e,t,i){var a=i(99078),r=i(84092),n=i(31663),o=i(69135),s=i(39552),l=i(63960);function d(e){var t=this.__data__=new a(e);this.size=t.size}d.prototype.clear=r,d.prototype.delete=n,d.prototype.get=o,d.prototype.has=s,d.prototype.set=l,e.exports=d},80098:function(e,t,i){var a=i(74288).Uint8Array;e.exports=a},10880:function(e,t,i){var a=i(39866)(i(74288),"WeakMap");e.exports=a},2421:function(e){e.exports=function(e,t){for(var i=-1,a=null==e?0:e.length;++i<a&&!1!==t(e[i],i,e););return e}},42774:function(e){e.exports=function(e,t){for(var i=-1,a=null==e?0:e.length,r=0,n=[];++i<a;){var o=e[i];t(o,i,e)&&(n[r++]=o)}return n}},28579:function(e,t,i){var a=i(89772),r=i(56569),n=i(25614),o=i(98051),s=i(84257),l=i(9792),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=n(e),u=!i&&r(e),c=!i&&!u&&o(e),h=!i&&!u&&!c&&l(e),m=i||u||c||h,v=m?a(e.length,String):[],f=v.length;for(var b in e)(t||d.call(e,b))&&!(m&&("length"==b||c&&("offset"==b||"parent"==b)||h&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,f)))&&v.push(b);return v}},73817:function(e){e.exports=function(e,t){for(var i=-1,a=t.length,r=e.length;++i<a;)e[r+i]=t[i];return e}},83295:function(e,t,i){var a=i(83023),r=i(37560),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,i){var o=e[t];n.call(e,t)&&r(o,i)&&(void 0!==i||t in e)||a(e,t,i)}},24457:function(e,t,i){var a=i(37560);e.exports=function(e,t){for(var i=e.length;i--;)if(a(e[i][0],t))return i;return -1}},90665:function(e,t,i){var a=i(33485),r=i(43228);e.exports=function(e,t){return e&&a(t,r(t),e)}},19455:function(e,t,i){var a=i(33485),r=i(18587);e.exports=function(e,t){return e&&a(t,r(t),e)}},83023:function(e,t,i){var a=i(4521);e.exports=function(e,t,i){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},68829:function(e,t,i){var a=i(85885),r=i(2421),n=i(83295),o=i(90665),s=i(19455),l=i(19243),d=i(56075),u=i(96962),c=i(57972),h=i(28529),m=i(75474),v=i(81690),f=i(6914),b=i(32772),E=i(32685),y=i(25614),g=i(98051),_=i(38839),T=i(28302),k=i(87615),A=i(43228),w=i(18587),S="[object Arguments]",I="[object Function]",L="[object Object]",R={};R[S]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object DataView]"]=R["[object Boolean]"]=R["[object Date]"]=R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Map]"]=R["[object Number]"]=R[L]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object Symbol]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R["[object Error]"]=R[I]=R["[object WeakMap]"]=!1,e.exports=function e(t,i,C,D,O,x){var M,N=1&i,P=2&i,U=4&i;if(C&&(M=O?C(t,D,O,x):C(t)),void 0!==M)return M;if(!T(t))return t;var B=y(t);if(B){if(M=f(t),!N)return d(t,M)}else{var $=v(t),H=$==I||"[object GeneratorFunction]"==$;if(g(t))return l(t,N);if($==L||$==S||H&&!O){if(M=P||H?{}:E(t),!N)return P?c(t,s(M,t)):u(t,o(M,t))}else{if(!R[$])return O?t:{};M=b(t,$,N)}}x||(x=new a);var j=x.get(t);if(j)return j;x.set(t,M),k(t)?t.forEach(function(a){M.add(e(a,i,C,a,t,x))}):_(t)&&t.forEach(function(a,r){M.set(r,e(a,i,C,r,t,x))});var W=U?P?m:h:P?w:A,q=B?void 0:W(t);
vendor: 4,846 bytes, line 1
1return r(q||t,function(a,r){q&&(a=t[r=a]),n(M,r,e(a,i,C,r,t,x))}),M}},32318:function(e,t,i){var a=i(28302),r=Object.create,n=function(){function e(){}return function(t){if(!a(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=n},36452:function(e,t,i){var a=i(73817),r=i(25614);e.exports=function(e,t,i){var n=t(e);return r(e)?n:a(n,i(e))}},90370:function(e,t,i){var a=i(54506),r=i(10303);e.exports=function(e){return r(e)&&"[object Arguments]"==a(e)}},32012:function(e,t,i){var a=i(81690),r=i(10303);e.exports=function(e){return r(e)&&"[object Map]"==a(e)}},57595:function(e,t,i){var a=i(86757),r=i(79551),n=i(28302),o=i(1292),s=/^\[object .+?Constructor\]$/,l=Object.prototype,d=Function.prototype.toString,u=l.hasOwnProperty,c=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!n(e)||r(e))&&(a(e)?c:s).test(o(e))}},34188:function(e,t,i){var a=i(81690),r=i(10303);e.exports=function(e){return r(e)&&"[object Set]"==a(e)}},59332:function(e,t,i){var a=i(54506),r=i(13973),n=i(10303),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return n(e)&&r(e.length)&&!!o[a(e)]}},4578:function(e,t,i){var a=i(35365),r=i(77184),n=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return r(e);var t=[];for(var i in Object(e))n.call(e,i)&&"constructor"!=i&&t.push(i);return t}},22476:function(e,t,i){var a=i(28302),r=i(35365),n=i(92147),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return n(e);var t=r(e),i=[];for(var s in e)"constructor"==s&&(t||!o.call(e,s))||i.push(s);return i}},89772:function(e){e.exports=function(e,t){for(var i=-1,a=Array(e);++i<e;)a[i]=t(i);return a}},23305:function(e){e.exports=function(e){return function(t){return e(t)}}},94420:function(e,t,i){var a=i(80098);e.exports=function(e){var t=new e.constructor(e.byteLength);return new a(t).set(new a(e)),t}},19243:function(e,t,i){e=i.nmd(e);var a=i(74288),r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?a.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var i=e.length,a=s?s(i):new e.constructor(i);return e.copy(a),a}},20580:function(e,t,i){var a=i(94420);e.exports=function(e,t){var i=t?a(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}},23153:function(e){var t=/\w*$/;e.exports=function(e){var i=new e.constructor(e.source,t.exec(e));return i.lastIndex=e.lastIndex,i}},69775:function(e,t,i){var a=i(23910),r=a?a.prototype:void 0,n=r?r.valueOf:void 0;e.exports=function(e){return n?Object(n.call(e)):{}}},65919:function(e,t,i){var a=i(94420);e.exports=function(e,t){var i=t?a(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}},56075:function(e){e.exports=function(e,t){var i=-1,a=e.length;for(t||(t=Array(a));++i<a;)t[i]=e[i];return t}},33485:function(e,t,i){var a=i(83295),r=i(83023);e.exports=function(e,t,i,n){var o=!i;i||(i={});for(var s=-1,l=t.length;++s<l;){var d=t[s],u=n?n(i[d],e[d],d,i,e):void 0;void 0===u&&(u=e[d]),o?r(i,d,u):a(i,d,u)}return i}},96962:function(e,t,i){var a=i(33485),r=i(80466);e.exports=function(e,t){return a(e,r(e),t)}},57972:function(e,t,i){var a=i(33485),r=i(28868);e.exports=function(e,t){return a(e,r(e),t)}},92077:function(e,t,i){var a=i(74288)["__core-js_shared__"];e.exports=a},4521:function(e,t,i){var a=i(39866),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},28529:function(e,t,i){var a=i(36452),r=i(80466),n=i(43228);e.exports=function(e){return a(e,n,r)}},75474:function(e,t,i){var a=i(36452),r=i(28868),n=i(18587);e.exports=function(e){return a(e,n,r)}},1507:function(e,t,i){var a=i(7545);e.exports=function(e,t){var i=e.__data__;return a(t)?i["string"==typeof t?"string":"hash"]:i.map}},39866:function(e,t,i){var a=i(57595),r=i(3138);e.exports=function(e,t){var i=r(e,t);return a(i)?i:void 0}},62602:function(e,t,i){var a=i(45070)(Object.getPrototypeOf,Object);e.exports=a},80466:function(e,t,i){var a=i(42774),r=i(55716),n=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:a(o(e=Object(e)),function(t){return n.call(e,t)})}:r;e.exports=s},28868:function(e,t,i){var a=i(73817),r=i(62602),n=i(80466),o=i(
vendor: 4,724 bytes, line 1
155716),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)a(t,n(e)),e=r(e);return t}:o;e.exports=s},81690:function(e,t,i){var a=i(94975),r=i(88675),n=i(69308),o=i(41497),s=i(10880),l=i(54506),d=i(1292),u="[object Map]",c="[object Promise]",h="[object Set]",m="[object WeakMap]",v="[object DataView]",f=d(a),b=d(r),E=d(n),y=d(o),g=d(s),_=l;(a&&_(new a(new ArrayBuffer(1)))!=v||r&&_(new r)!=u||n&&_(n.resolve())!=c||o&&_(new o)!=h||s&&_(new s)!=m)&&(_=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,a=i?d(i):"";if(a)switch(a){case f:return v;case b:return u;case E:return c;case y:return h;case g:return m}return t}),e.exports=_},3138:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},43596:function(e,t,i){var a=i(20453);e.exports=function(){this.__data__=a?a(null):{},this.size=0}},35907:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},35355:function(e,t,i){var a=i(20453),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(t,e)?t[e]:void 0}},39870:function(e,t,i){var a=i(20453),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:r.call(t,e)}},73372:function(e,t,i){var a=i(20453);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},6914:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var i=e.length,a=new e.constructor(i);return i&&"string"==typeof e[0]&&t.call(e,"index")&&(a.index=e.index,a.input=e.input),a}},32772:function(e,t,i){var a=i(94420),r=i(20580),n=i(23153),o=i(69775),s=i(65919);e.exports=function(e,t,i){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return a(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,i);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return n(e);case"[object Symbol]":return o(e)}}},32685:function(e,t,i){var a=i(32318),r=i(62602),n=i(35365);e.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:a(r(e))}},84257:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var a=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<i}},7545:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},79551:function(e,t,i){var a,r=i(92077),n=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!n&&n in e}},35365:function(e){var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},62285:function(e){e.exports=function(){this.__data__=[],this.size=0}},28706:function(e,t,i){var a=i(24457),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=a(t,e);return!(i<0)&&(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}},63717:function(e,t,i){var a=i(24457);e.exports=function(e){var t=this.__data__,i=a(t,e);return i<0?void 0:t[i][1]}},78410:function(e,t,i){var a=i(24457);e.exports=function(e){return a(this.__data__,e)>-1}},13368:function(e,t,i){var a=i(24457);e.exports=function(e,t){var i=this.__data__,r=a(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}},38764:function(e,t,i){var a=i(9855),r=i(99078),n=i(88675);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(n||r),string:new a}}},78615:function(e,t,i){var a=i(1507);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},83391:function(e,t,i){var a=i(1507);e.exports=function(e){return a(this,e).get(e)}},53483:function(e,t,i){var a=i(1507);e.exports=function(e){return a(this,e).has(e)}},74724:function(e,t,i){var a=i(1507);e.exports=function(e,t){var i=a(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}},20453:function(e,t,i){var a=i(39866)(Object,"create");e.exports=a},77184:function(e,t,i){var a=i(45070)(Object.keys,Object);e.exports=a},92147:function(e){e.exports=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}},39931:function(e,t,i){e=i.nmd(e);var a=i(17071),r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&a.process,s=function(){try{var e=n&&n.require&&n.require("util").t
1ypes;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=s},45070:function(e){e.exports=function(e,t){return function(i){return e(t(i))}}},84092:function(e,t,i){var a=i(99078);e.exports=function(){this.__data__=new a,this.size=0}},31663:function(e){e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},69135:function(e){e.exports=function(e){return this.__data__.get(e)}},39552:function(e){e.exports=function(e){return this.__data__.has(e)}},63960:function(e,t,i){var a=i(99078),r=i(88675),n=i(76219);e.exports=function(e,t){var i=this.__data__;if(i instanceof a){var o=i.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++i.size,this;i=this.__data__=new n(o)}return i.set(e,t),this.size=i.size,this}},1292:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},59128:function(e,t,i){var a=i(68829);e.exports=function(e){return a(e,5)}},37560:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},56569:function(e,t,i){var a=i(90370),r=i(10303),n=Object.prototype,o=n.hasOwnProperty,s=n.propertyIsEnumerable,l=a(function(){return arguments}())?a:function(e){return r(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},5629:function(e,t,i){var a=i(86757),r=i(13973);e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},98051:function(e,t,i){e=i.nmd(e);var a=i(74288),r=i(7406),n=t&&!t.nodeType&&t,o=n&&e&&!e.nodeType&&e,s=o&&o.exports===n?a.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||r},86757:function(e,t,i){var a=i(54506),r=i(28302);e.exports=function(e){if(!r(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},13973:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},38839:function(e,t,i){var a=i(32012),r=i(23305),n=i(39931),o=n&&n.isMap,s=o?r(o):a;e.exports=s},28302:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},87615:function(e,t,i){var a=i(34188),r=i(23305),n=i(39931),o=n&&n.isSet,s=o?r(o):a;e.exports=s},9792:function(e,t,i){var a=i(59332),r=i(23305),n=i(39931),o=n&&n.isTypedArray,s=o?r(o):a;e.exports=s},43228:function(e,t,i){var a=i(28579),r=i(4578),n=i(5629);e.exports=function(e){return n(e)?a(e):r(e)}},18587:function(e,t,i){var a=i(28579),r=i(22476),n=i(5629);e.exports=function(e){return n(e)?a(e,!0):r(e)}},55716:function(e){e.exports=function(){return[]}},7406:function(e){e.exports=function(){return!1}},98884:function(){},60393:function(e,t,i){e.exports=i(26920).Storyteller},68226:function(e,t,i){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});let a=e=>e!==decodeURI(e||""),r=e=>{let t=e.slice(e.indexOf("?")+1).split("&"),i={};return t.forEach(e=>{let[t,a]=e.split("=");t&&a&&(i[t]=decodeURIComponent(a))}),i};var n,o,s,l,d,u,c,h,m,v,f,b,E,y,g,_,T,k="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof i.g?i.g:"u">typeof self?self:{},A={exports:{}};!function(){var e={}.hasOwnProperty;function t(){for(var a="",r=0;r<arguments.length;r++){var n=arguments[r];n&&(a=i(a,function(a){if("string"==typeof a||"number"==typeof a)return a;if("object"!=typeof a)return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var r="";for(var n in a)e.call(a,n)&&a[n]&&(r=i(r,n));return r}(n)))}return a}function i(e,t){return t?e?e+" "+t:e+t:e}A.exports?(t.default=t,A.exports=t):window.classNames=t}();let w=(s=A.exports)&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s,S=(e,t)=>{if("object"!=typeof e||null===e||"object"!=typeof t)throw Error("Both arguments must be non-null objects");let i={...e||{}};return Object.entries(t).forEach(([t,a])=>{"object"==typeof a&&null!==a?i[t]=S(e[t],a):i[t]=a}),i},I={s:"--p-breakpointsize-s",m:"--p-breakpointsize-m",l:"--p-breakpointsize-l",xl:"--p-breakpointsize-xl",xxl:"--p-breakpointsize-xxl"},L={"--p-breakpointsize-s":"360px","--p-breakpointsize-m":"768px","--p-breakpointsize-l":"1024px","--p-breakpointsize-xl":"1440px","--p-breakpointsize-xxl":"1920px"};var R="object"==typeof k&&k&&k.Object===Object&&k,C="object"==typeof self&&self&&self.Object===Object&&self,D=R||C||Function("return this")(),O=D.Symbol,x=Object.prototype,M=x.hasOwnProperty,N=x.toString,P=O?O.toStringTag:void 0,U=Object.prototype.toString,B=function(e){var t=M.call(e,P),i=e[P];try{e[P]=void 0;var a=!0}catch{}var r=N.call(e);return a&&(t?e[P]=i:delete e[P]),r},$=O?O.toStringTag:void 0,H=function(e){return null==e?void 0===e?"[object Undef
1ined]":"[object Null]":$&&$ in Object(e)?B(e):U.call(e)},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},W=D["__core-js_shared__"],q=(l=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",K=Function.prototype.toString,F=function(e){if(null!=e){try{return K.call(e)}catch{}try{return e+""}catch{}}return""},V=function(e){if(!j(e))return!1;var t=H(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=/^\[object .+?Constructor\]$/,G=Object.prototype,z=Function.prototype.toString,Q=G.hasOwnProperty,Z=RegExp("^"+z.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=function(e,t){var i,a=e?.[t];return j(i=a)&&(!q||!(q in i))&&(V(i)?Z:Y).test(F(i))?a:void 0},J=X(D,"DataView"),ee=X(D,"Map"),et=X(D,"Promise"),ei=X(D,"Set"),ea=X(D,"WeakMap"),er="[object Map]",en="[object Promise]",eo="[object Set]",es="[object WeakMap]",el="[object DataView]",ed=F(J),eu=F(ee),ec=F(et),eh=F(ei),ep=F(ea),em=H;(J&&em(new J(new ArrayBuffer(1)))!=el||ee&&em(new ee)!=er||et&&em(et.resolve())!=en||ei&&em(new ei)!=eo||ea&&em(new ea)!=es)&&(em=function(e){var t=H(e),i="[object Object]"==t?e.constructor:void 0,a=i?F(i):"";if(a)switch(a){case ed:return el;case eu:return er;case ec:return en;case eh:return eo;case ep:return es}return t});var ev=function(e){return null!=e&&"object"==typeof e},ef=function(e){return ev(e)&&"[object Arguments]"==H(e)},eb=Object.prototype,eE=eb.hasOwnProperty,ey=eb.propertyIsEnumerable,eg=ef(function(){return arguments}())?ef:function(e){return ev(e)&&eE.call(e,"callee")&&!ey.call(e,"callee")},e_=Array.isArray,eT={exports:{}};eT.exports,m=(h=(c=(u=(d=eT.exports)&&!d.nodeType&&d)&&eT&&!eT.nodeType&&eT)&&c.exports===u?D.Buffer:void 0)?h.isBuffer:void 0,eT.exports=m||function(){return!1},eT.exports;var ek={exports:{}};ek.exports,E=(b=(f=(v=ek.exports)&&!v.nodeType&&v)&&ek&&!ek.nodeType&&ek)&&b.exports===f&&R.process,y=function(){try{return b&&b.require&&b.require("util").types||E&&E.binding&&E.binding("util")}catch{}}(),ek.exports=y;var eA=ek.exports;eA&&eA.isTypedArray;let ew={DEFAULT_1:"default1",DEFAULT_2:"default2",COLOUR_THEME_1:"colourTheme1",COLOUR_THEME_2:"colourTheme2",COLOUR_THEME_3:"colourTheme3",COLOUR_THEME_4:"colourTheme4",COLOUR_THEME_5:"colourTheme5",COLOUR_THEME_6:"colourTheme6"};var eS=O?O.prototype:void 0;eS&&eS.toString;var eI=Object.create,eL=function(){function e(){}return function(t){if(!j(t))return{};if(eI)return eI(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),eR=function(){};function eC(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}eC.prototype=eL(eR.prototype),eC.prototype.constructor=eC;var eD=O?O.isConcatSpreadable:void 0,eO=function(e,t){for(var i=-1,a=t.length,r=e.length;++i<a;)e[r+i]=t[i];return e},ex=function(e){return e_(e)||eg(e)||!!(eD&&e&&e[eD])},eM=function e(t,i,a,r,n){var o=-1,s=t.length;for(a||(a=ex),n||(n=[]);++o<s;){var l=t[o];i>0&&a(l)?i>1?e(l,i-1,a,r,n):eO(n,l):r||(n[n.length]=l)}return n},eN=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)},eP=Math.max,eU=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eB=eU?function(e,t){return eU(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:function(e){return e},e$=Date.now,eH=(g=0,_=0,function(){var e=e$(),t=16-(e-_);if(_=e,t>0){if(++g>=800)return arguments[0]}else g=0;return eB.apply(void 0,arguments)}),ej=ea&&new ea,eW=ej?function(e){return ej.get(e)}:function(){},eq={},eK=Object.prototype.hasOwnProperty,eF=function(e){for(var t=e.name+"",i=eq[t],a=eK.call(eq,t)?i.length:0;a--;){var r=i[a],n=r.func;if(null==n||n==e)return r.name}return t};function eV(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}eV.prototype=eL(eR.prototype),eV.prototype.constructor=eV;var eY=function(e,t){var i=-1,a=e.length;for(t||(t=Array(a));++i<a;)t[i]=e[i];return t},eG=function(e){if(e instanceof eV)return e.clone();var t=new eC(e.__wrapped__,e.__chain__);return t.__actions__=eY(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},ez=Object.prototype.hasOwnProperty;function eQ(e){if(ev(e)&&!e_(e)&&!(e instanceof eV)){if(e instanceof eC)return e;if(ez.call(e,"__wrapped__"))return eG(e)}return new eC(e)}eQ.prototype=eR.prototype,eQ.prototype.constructor=eQ;var eZ=function(e){var t=eF(e),i=eQ[t];if("function"!=typeof i||!(t in eV.prototype))return!1;if(e===i)return!0;var a=eW(i);return!!a&&e===a[0]};eH((o=eP((o=void 0,(n=function(e){var t=e.length,i=t,a=eC.prototype.thru;for(T&&e.reverse();i--;){var r=e[i];if("function"!=typeof r)throw TypeError("Expected a function");if(a&&!n&&"wrapper"==eF(r))var n=new eC([],!0)}for(i=n?i:t;++i<t;){var o=eF(r=e[i]),s="wrapper"==o?eW(r):void 0;n=s&&eZ(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?n[eF(s[0])].apply(n,s[3]):1==r.length&&eZ(r)?n[o]():n.thru(r)}return function(){var i=arguments,a=i[0];
1if(n&&1==i.length&&e_(a))return n.plant(a).value();for(var r=0,o=t?e[r].apply(this,i):a;++r<t;)o=e[r].call(this,o);return o}}).length-1),0),function(){for(var e,t=arguments,i=-1,a=eP(t.length-o,0),r=Array(a);++i<a;)r[i]=t[o+i];i=-1;for(var s=Array(o+1);++i<o;)s[i]=t[i];return s[o]=(null==(e=r)?0:e.length)?eM(e,1):[],eN(n,this,s)}),n+"");let eX={default1:"var(--cs-base-1-background-default)",default2:"var(--cs-base-2-background-default)",light:"var(--cs-base-1-background-default)",dark:"var(--cs-base-2-background-default)",colourTheme1:"var(--cs-colorset-1-background-default)",colourTheme2:"var(--cs-colorset-2-background-default)",colourTheme3:"var(--cs-colorset-3-background-default)",colourTheme4:"var(--cs-colorset-4-background-default)",colourTheme5:"var(--cs-colorset-5-background-default)",colourTheme6:"var(--cs-colorset-6-background-default)"};Object.values(ew),Object.values(ew).reduce((e,t,i)=>({...e,[t]:{title:`colourTheme${i+1}`,themeId:t,settings:{backgroundColour:eX[t]}}}),{});let eJ=e=>window.getComputedStyle(document.documentElement).getPropertyValue(e),e0=(e,t)=>Object.fromEntries(Object.entries(e).map(([e,i])=>[e,t(i)])),e1=new Map;t.addPrecedingSlash=e=>e.startsWith("/")?e:`/${e}`,t.deepMerge=S,t.exposeClassnames=(...e)=>w(e).split(" ").map(e=>[e,e.substring(0,e.indexOf("___")).replace(/-module/g,"")]).reduce((e,t)=>e.concat(t),[]).join(" ").trim(),t.formatDuration=e=>{let t=Math.floor(e/3600),i=Math.floor(e%3600/60),a=e%60;return[t>0?String(t).padStart(2,"0"):"",i>0||t>0||a<60?String(i).padStart(2,"0"):"",String(a).padStart(2,"0")].filter(Boolean).join(":")},t.fullyDecodeURI=e=>{for(;a(e);)e=decodeURI(e);return e},t.generateStaticClassname=e=>e.substring(0,e.indexOf("___")).replace(/-module/g,""),t.getAllUrlParams=r,t.getBreakpointValue=e=>parseInt(eJ(I[e]),10)||parseInt(L[I[e]],10),t.getPropertyValue=eJ,t.getUrlParamValue=e=>{let t=Object.entries(r(window?.location.href)).filter(t=>t[0]===e);return t[0]?t[0][1]:null},t.insertUrlParam=(e,t,i)=>{if(history.pushState){let a=new URLSearchParams(window?.location.search);a.set(e,t);let r=`${window?.location.protocol}//${window?.location.host}${window?.location.pathname}?${a.toString()}`;i&&window?.location.hash&&(r=`${r}${window?.location.hash}`),window?.history.pushState({path:r},"",r)}},t.isClient=()=>!!("u">typeof window&&window.document&&window.document.createElement),t.isEncoded=a,t.isSupported=e=>"u">typeof window&&e in window,t.objectMap=e0,t.removeAllQueryStrings=()=>{let e=window?.location.href.replace(/(\?.*)|(@.*)/g,"");window?.history.pushState({path:e},"",e)},t.removeUndefinedValues=e=>(Object.keys(e).forEach(t=>void 0===e[t]&&delete e[t]),e),t.replaceWithBr=e=>e.replace(/\n/g,"<br />"),t.scrollIntoView=(e,t)=>{e.scrollIntoView({behavior:t,block:"start"})},t.setInlineCssTokens=e=>e&&e0({...e},e=>`var(${e})`),t.sortByArrayIndex=e=>(t,i)=>e.indexOf(t)>e.indexOf(i)?1:-1,t.stripTrailingSlash=e=>e.endsWith("/")?e.slice(0,-1):e,t.warnOnce=e=>{e1.has(e)||(e1.set(e,!0),console.warn(e))}},12641:function(e,t,i){"use strict";let a,r,n;i.d(t,{ZP:function(){return vw}});var o=i(2265),s=i(61669),l=i(40303),d=l.ZP,u={VIDEO:"video",DRM:"drm"},c={NETWORK_OFFLINE:2000002,NETWORK_UNKNOWN_ERROR:2e6,NETWORK_INVALID_URL:24e5,NETWORK_NOT_FOUND:2404e3,NETWORK_NOT_READY:2412e3,NETWORK_TOKEN_MISSING:2403201,NETWORK_TOKEN_MALFORMED:2412202,NETWORK_TOKEN_EXPIRED:2403210,NETWORK_TOKEN_AUD_MISSING:2403221,NETWORK_TOKEN_AUD_MISMATCH:2403222,NETWORK_TOKEN_SUB_MISMATCH:2403232,ENCRYPTED_ERROR:5e6,ENCRYPTED_UNSUPPORTED_KEY_SYSTEM:5000001,ENCRYPTED_GENERATE_REQUEST_FAILED:5000002,ENCRYPTED_UPDATE_LICENSE_FAILED:5000003,ENCRYPTED_UPDATE_SERVER_CERT_FAILED:5000004,ENCRYPTED_CDM_ERROR:5000005,ENCRYPTED_OUTPUT_RESTRICTED:5000006,ENCRYPTED_MISSING_TOKEN:5000002},h=e=>e===u.VIDEO?"playback":e,m=class e extends Error{constructor(t,i=e.MEDIA_ERR_CUSTOM,a,r){var n;super(t),this.name="MediaError",this.code=i,this.context=r,this.fatal=null!=a?a:i>=e.MEDIA_ERR_NETWORK&&i<=e.MEDIA_ERR_ENCRYPTED,this.message||(this.message=null!=(n=e.defaultMessages[this.code])?n:"")}};m.MEDIA_ERR_ABORTED=1,m.MEDIA_ERR_NETWORK=2,m.MEDIA_ERR_DECODE=3,m.MEDIA_ERR_SRC_NOT_SUPPORTED=4,m.MEDIA_ERR_ENCRYPTED=5,m.MEDIA_ERR_CUSTOM=100,m.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail.",3:"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.",4:"An unsupported error occurred. The server or network failed, or your browser does not support this format.",5:"The media is encrypted and there are no keys to decrypt it."};var v=e=>null==e,f=(e,t)=>!v(t)&&e in t,b={ANY:"any",MUTED:"muted"},E={ON_DEMAND:"on-demand",LIVE:"live",UNKNOWN:"unknown"},y={MSE:"mse",NATIVE:"native"},g={HEADER:"header",QUERY:"query",NONE:"none"},_=Object.values(g),T={M3U8:"application/vnd.apple.mpegurl",MP4:"video/mp4"},k={HLS:T.M3U8};Object.keys(k),[...Object.values(T)];var A={code:"en"},w=(e,t,i,a,r=e)=>{r.addEventListener(t,i,a),e.addEventListener("teardown",()=>{r.removeEventListener(t,i)},{once:!0})},S=e=>{let t=e.indexOf("?");return t<0?[e]:[e.slice(0,t),e.slice(t)]},I=e=>{let{type:t}=e;if(t){let e=t.toUpperCase();return f(e,k)?k[e]:t}return C(e)},L=e=>"VOD"===e?E.ON_DEMAND:E.LIVE,R=e=>"EVENT"===e?Number.POSITIVE_INFINITY:"VOD"===e?Number.NaN:0,C=e=>{let{src:t}=e;if(!t)return"";let i="";try{i=new URL(t).pathname}catch{console.error("invalid url")}let a=i.lastIndexOf(".");if(a<0)return O(e)?T.M3U8:"";let r=i.slice(a+1).toUpperCase();return f(r,T)?T[r]:""},D="mux.com",O=({src:e,customDomain:t=D})=>{let i;try{i=new URL(`${e}`)}catch{return!1}let a="https:"===i.protocol,r=i.hostname===`stream.${t}`.toLowerCase(),n=i.pathname.split("/"),o=2===n.length,s=!(null!=n&&n[1].includes("."));return a&&r&&o&&s},x=e=>{let t=(null!=e?e:"").split(".")[1];if(t)try{let e=t.replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}catch{return}},M=({exp:e},t=Date.now())=>!e||1e3*e<t,N=({sub:e},t)=>e!==t,P=({aud:e},t)=>!e,U=({aud:e},t)=>e!==t;function B(e,t=!0){var i;return new $(t&&null!=(i=null==A?void 0:A[e])?i:e,t?A.code:"en")}
1var $=class{constructor(e,t=(e=>null!=(e=A)?e:"en")()){this.message=e,this.locale=t}format(e){return this.message.replace(/\{(\w+)\}/g,(t,i)=>{var a;return null!=(a=e[i])?a:""})}toString(){return this.message}},H=Object.values(b),j=e=>"boolean"==typeof e||"string"==typeof e&&H.includes(e),W=(e,t,i)=>{let{autoplay:a}=e,r=!1,n=!1,o=j(a)?a:!!a,s=()=>{r||w(t,"playing",()=>{r=!0},{once:!0})};if(s(),w(t,"loadstart",()=>{r=!1,s(),q(t,o)},{once:!0}),w(t,"loadstart",()=>{i||(n=e.streamType&&e.streamType!==E.UNKNOWN?e.streamType===E.LIVE:!Number.isFinite(t.duration)),q(t,o)},{once:!0}),i&&i.once(d.Events.LEVEL_LOADED,(t,i)=>{var a;n=e.streamType&&e.streamType!==E.UNKNOWN?e.streamType===E.LIVE:null!=(a=i.details.live)&&a}),!o){let a=()=>{!n||Number.isFinite(e.startTime)||(null!=i&&i.liveSyncPosition?t.currentTime=i.liveSyncPosition:Number.isFinite(t.seekable.end(0))&&(t.currentTime=t.seekable.end(0)))};i&&w(t,"play",()=>{"metadata"===t.preload?i.once(d.Events.LEVEL_UPDATED,a):a()},{once:!0})}return e=>{r||q(t,o=j(e)?e:!!e)}},q=(e,t)=>{if(!t)return;let i=e.muted,a=()=>e.muted=i;switch(t){case b.ANY:e.play().catch(()=>{e.muted=!0,e.play().catch(a)});break;case b.MUTED:e.muted=!0,e.play().catch(a);break;default:e.play().catch(()=>{})}},K=({preload:e,src:t},i,a)=>{let r=e=>{null!=e&&["","none","metadata","auto"].includes(e)?i.setAttribute("preload",e):i.removeAttribute("preload")};if(!a)return r(e),r;let n=!1,o=!1,s=a.config.maxBufferLength,l=a.config.maxBufferSize,d=e=>{r(e);let t=null!=e?e:i.preload;o||"none"===t||("metadata"===t?(a.config.maxBufferLength=1,a.config.maxBufferSize=1):(a.config.maxBufferLength=s,a.config.maxBufferSize=l),u())},u=()=>{!n&&t&&(n=!0,a.loadSource(t))};return w(i,"play",()=>{o=!0,a.config.maxBufferLength=s,a.config.maxBufferSize=l,u()},{once:!0}),d(e),d},F=e=>"time"in e?e.time:e.startTime;function V(e,t,i,a,r,n){let o=document.createElement("track");return o.kind=t,o.label=i,a&&(o.srclang=a),r&&(o.id=r),n&&(o.default=!0),o.track.mode=["subtitles","captions"].includes(t)?"disabled":"hidden",o.setAttribute("data-removeondestroy",""),e.append(o),o.track}function Y(e,t,i){var a;return null==(a=Array.from(e.querySelectorAll("track")).find(e=>e.track.label===t&&e.track.kind===i))?void 0:a.track}async function G(e,t,i,a){let r=Y(e,i,a);return r||((r=V(e,a,i)).mode="hidden",await new Promise(e=>setTimeout(()=>e(void 0),0))),"hidden"!==r.mode&&(r.mode="hidden"),[...t].sort((e,t)=>F(t)-F(e)).forEach(t=>{var i,n;let o=t.value,s=F(t);if("endTime"in t&&null!=t.endTime)null==r||r.addCue(new VTTCue(s,t.endTime,"chapters"===a?o:JSON.stringify(null!=o?o:null)));else{let t=Array.prototype.findIndex.call(null==r?void 0:r.cues,e=>e.startTime>=s),l=null==(i=null==r?void 0:r.cues)?void 0:i[t],d=l?l.startTime:Number.isFinite(e.duration)?e.duration:Number.MAX_SAFE_INTEGER,u=null==(n=null==r?void 0:r.cues)?void 0:n[t-1];u&&(u.endTime=s),null==r||r.addCue(new VTTCue(s,d,"chapters"===a?o:JSON.stringify(null!=o?o:null)))}}),e.textTracks.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r}var z="cuepoints",Q=Object.freeze({label:z});async function Z(e,t,i=Q){return G(e,t,i.label,"metadata")}var X=e=>({time:e.startTime,value:JSON.parse(e.text)});function J(e,t={label:z}){var i,a;let r=Y(e,t.label,"metadata");if(!(null!=(i=null==r?void 0:r.activeCues)&&i.length))return;if(1===r.activeCues.length)return X(r.activeCues[0]);let{currentTime:n}=e;return X(Array.prototype.find.call(null!=(a=r.activeCues)?a:[],({startTime:e,endTime:t})=>e<=n&&t>n)||r.activeCues[0])}async function ee(e,t=Q){return new Promise(i=>{w(e,"loadstart",async()=>{let a=await Z(e,[],t);w(e,"cuechange",()=>{let t=J(e);if(t){let i=new CustomEvent("cuepointchange",{composed:!0,bubbles:!0,detail:t});e.dispatchEvent(i)}},{},a),i(a)})})}var et="chapters",ei=Object.freeze({label:et}),ea=e=>({startTime:e.startTime,endTime:e.endTime,value:e.text});async function er(e,t,i=ei){return G(e,t,i.label,"chapters")}function en(e,t={label:et}){var i,a;let r=Y(e,t.label,"chapters");if(!(null!=(i=null==r?void 0:r.activeCues)&&i.length))return;if(1===r.activeCues.length)return ea(r.activeCues[0]);let{currentTime:n}=e;return ea(Array.prototype.find.call(null!=(a=r.activeCues)?a:[],({startTime:e,endTime:t})=>e<=n&&t>n)||r.activeCues[0])}async function eo(e,t=ei){return new Promise(i=>{w(e,"loadstart",async()=>{let a=await er(e,[],t);w(e,"cuechange",()=>{let t=en(e);if(t){let i=new CustomEvent("chapterchange",{composed:!0,bubbles:!0,detail:t});e.dispatchEvent(i)}},{},a),i(a)})})}var es={VIDEO:"v",THUMBNAIL:"t",STORYBOARD:"s",DRM:"d"},el=e=>e===u.VIDEO?es.VIDEO:e===u.DRM?es.DRM:void 0,ed=(e,t)=>{var i,a;let r=h(e),n=`${r}Token`;return null!=(i=t.tokens)&&i[r]?null==(a=t.tokens)?void 0:a[r]:f(n,t)?t[n]:void 0},eu=(e,t,i,a,r=!1,n=!(e=>null==(e=globalThis.navigator)?void 0:e.onLine)())=>{var o,s;if(n){let i=B("Your device appears to be offline",r),a=m.MEDIA_ERR_NETWORK,n=new m(i,a,!1,void 0);return n.errorCategory=t,n.muxCode=c.NETWORK_OFFLINE,n.data=e,n}let l="status"in e?e.status:e.code,d=Date.now(),u=m.MEDIA_ERR_NETWORK;
1if(200===l)return;let v=h(t),f=ed(t,i),b=el(t),[y]=S(null!=(o=i.playbackId)?o:"");if(!l||!y)return;let g=x(f);if(f&&!g){let i=new m(B("The {tokenNamePrefix}-token provided is invalid or malformed.",r).format({tokenNamePrefix:v}),u,!0,B("Compact JWT string: {token}",r).format({token:f}));return i.errorCategory=t,i.muxCode=c.NETWORK_TOKEN_MALFORMED,i.data=e,i}if(l>=500){let e=new m("",u,null==a||a);return e.errorCategory=t,e.muxCode=c.NETWORK_UNKNOWN_ERROR,e}if(403===l){if(g){if(M(g,d)){let i={timeStyle:"medium",dateStyle:"medium"},a=new m(B("The video’s secured {tokenNamePrefix}-token has expired.",r).format({tokenNamePrefix:v}),u,!0,B("Expired at: {expiredDate}. Current time: {currentDate}.",r).format({expiredDate:new Intl.DateTimeFormat("en",i).format(null!=(s=g.exp)?s:0),currentDate:new Intl.DateTimeFormat("en",i).format(d)}));return a.errorCategory=t,a.muxCode=c.NETWORK_TOKEN_EXPIRED,a.data=e,a}if(N(g,y)){let i=new m(B("The video’s playback ID does not match the one encoded in the {tokenNamePrefix}-token.",r).format({tokenNamePrefix:v}),u,!0,B("Specified playback ID: {playbackId} and the playback ID encoded in the {tokenNamePrefix}-token: {tokenPlaybackId}",r).format({tokenNamePrefix:v,playbackId:y,tokenPlaybackId:g.sub}));return i.errorCategory=t,i.muxCode=c.NETWORK_TOKEN_SUB_MISMATCH,i.data=e,i}if(P(g,b)){let i=new m(B("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:v}),u,!0,B("The {tokenNamePrefix}-token has no aud value. aud value should be {expectedAud}.",r).format({tokenNamePrefix:v,expectedAud:b}));return i.errorCategory=t,i.muxCode=c.NETWORK_TOKEN_AUD_MISSING,i.data=e,i}if(U(g,b)){let i=new m(B("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:v}),u,!0,B("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.",r).format({tokenNamePrefix:v,expectedAud:b,aud:g.aud}));return i.errorCategory=t,i.muxCode=c.NETWORK_TOKEN_AUD_MISMATCH,i.data=e,i}}else{let i=new m(B("Authorization error trying to access this {category} URL. If this is a signed URL, you might need to provide a {tokenNamePrefix}-token.",r).format({tokenNamePrefix:v,category:t}),u,null==a||a,B("Specified playback ID: {playbackId}",r).format({playbackId:y}));return i.errorCategory=t,i.muxCode=c.NETWORK_TOKEN_MISSING,i.data=e,i}}if(412===l){let n=new m(B("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",r),u,null==a||a,B("Specified playback ID: {playbackId}",r).format({playbackId:y}));return n.errorCategory=t,n.muxCode=c.NETWORK_NOT_READY,n.streamType=i.streamType===E.LIVE?"live":i.streamType===E.ON_DEMAND?"on-demand":"unknown",n.data=e,n}if(404===l){let i=new m(B("This URL or playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",r),u,null==a||a,B("Specified playback ID: {playbackId}",r).format({playbackId:y}));return i.errorCategory=t,i.muxCode=c.NETWORK_NOT_FOUND,i.data=e,i}if(400===l){let i=new m(B("The URL or playback-id was invalid. You may have used an invalid value as a playback-id."),u,null==a||a,B("Specified playback ID: {playbackId}",r).format({playbackId:y}));return i.errorCategory=t,i.muxCode=c.NETWORK_INVALID_URL,i.data=e,i}let _=new m("",u,null==a||a);return _.errorCategory=t,_.muxCode=c.NETWORK_UNKNOWN_ERROR,_.data=e,_},ec=d.DefaultConfig.capLevelController,eh={"720p":921600,"1080p":2073600,"1440p":4194304,"2160p":8294400},ep=class e extends ec{constructor(e){super(e)}static setMaxAutoResolution(t,i){i?e.maxAutoResolution.set(t,i):e.maxAutoResolution.delete(t)}getMaxAutoResolution(){var t;let i=this.hls;return null!=(t=e.maxAutoResolution.get(i))?t:void 0}get levels(){var e;return null!=(e=this.hls.levels)?e:[]}getValidLevels(e){return this.levels.filter((t,i)=>this.isLevelAllowed(t)&&i<=e)}getMaxLevelCapped(e){let t=this.getValidLevels(e),i=this.getMaxAutoResolution();if(!i)return super.getMaxLevel(e);let a=eh[i.toLowerCase().trim()];if(!a)return super.getMaxLevel(e);let r=t.filter(e=>e.width*e.height<=a),n=r.findIndex(e=>e.width*e.height===a);if(-1!==n){let e=r[n];return t.findIndex(t=>t===e)}if(0===r.length)return 0;let o=r[r.length-1];return t.findIndex(e=>e===o)}getMaxLevel(t){if(void 0!==this.getMaxAutoResolution())return this.getMaxLevelCapped(t);let i=super.getMaxLevel(t),a=this.getValidLevels(t);if(!a[i])return i;let r=Math.min(a[i].width,a[i].height),n=e.minMaxResolution;return r>=n?i:ec.getMaxLevelByMediaSize(a,16/9*n,n)}};ep.minMaxResolution=720,ep.maxAutoResolution=new WeakMap;var em,ev,ef,eb,eE,ey,eg=({mediaEl:e,getAppCertificate:t,getLicenseKey:i,saveAndDispatchError:a,drmTypeCb:r})=>{if(!window.WebKitMediaKeys||!("onwebkitneedkey"in e)){console.error("No WebKitMediaKeys. FairPlay may not be supported");let t=new m(B("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),m.MEDIA_ERR_ENCRYPTED,!0);
1return t.errorCategory=u.DRM,t.muxCode=c.ENCRYPTED_CDM_ERROR,a(e,t),()=>{}}let n=t(),o=null,s=t=>{(async()=>{try{e.webkitKeys||l();let i=await n;if(null===t.initData||null==i)return;let a=e_(t.initData,i);d(a)}catch(t){console.error("Could not start encrypted playback due to exception",t),a(e,t)}})()},l=()=>{try{let t=new WebKitMediaKeys("com.apple.fps.1_0");e.webkitSetMediaKeys(t),r()}catch{let e=new m("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser.",m.MEDIA_ERR_ENCRYPTED,!0);throw e.errorCategory=u.DRM,e.muxCode=c.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM,e}},d=t=>{let r=e.webkitKeys.createSession("application/vnd.apple.mpegurl",t),n=async t=>{try{let e=t.message,a=await i(e);r.update(a)}catch(t){console.error("Error on FairPlay session message",t),a(e,t)}},s=t=>{let i=t.target.error;if(!i)return;console.error(`Internal Webkit Key Session Error - sysCode: ${i.systemCode} code: ${i.code}`);let r=new m(B("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser."),m.MEDIA_ERR_ENCRYPTED,!0);r.errorCategory=u.DRM,r.muxCode=c.ENCRYPTED_CDM_ERROR,a(e,r)},l=()=>{r.removeEventListener("webkitkeymessage",n),r.removeEventListener("webkitkeyerror",s),e.removeEventListener("teardown",l),"webkitCurrentPlaybackTargetIsWireless"in e&&e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",l),o=null;try{r.close()}catch{}};"webkitCurrentPlaybackTargetIsWireless"in e&&e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",l,{once:!0}),r.addEventListener("webkitkeymessage",n),r.addEventListener("webkitkeyerror",s),e.addEventListener("teardown",l),o=l},h=()=>{e.removeEventListener("webkitneedkey",s),e.removeEventListener("teardown",h),null==o||o();try{e.webkitSetMediaKeys(null)}catch{}};return e.addEventListener("webkitneedkey",s),e.addEventListener("teardown",h,{once:!0}),h},e_=(e,t)=>{let i=function(e){let t=new ArrayBuffer(2*e.length),i=new DataView(t);for(let t=0;t<e.length;t++)i.setUint16(2*t,e.charCodeAt(t),!0);return t}(eT(e)),a=new Uint8Array(e),r=new Uint8Array(i),n=new Uint8Array(t),o=new Uint8Array(a.byteLength+4+n.byteLength+4+r.byteLength),s=0,l=e=>{o.set(e,s),s+=e.byteLength},d=e=>{let t=new DataView(o.buffer),i=e.byteLength;t.setUint32(s,i,!0),s+=4,l(e)};return l(a),d(r),d(n),o},eT=e=>new TextDecoder("utf-16le").decode(e).replace("skd://","").slice(1),ek=({mediaEl:e,getAppCertificate:t,getLicenseKey:i,saveAndDispatchError:a,drmTypeCb:r,fallbackToWebkitFairplay:n})=>{let o=null,s=async t=>{try{let i=t.initDataType;if("skd"!==i){console.error(`Received unexpected initialization data type "${i}"`);return}e.mediaKeys||await l(i);let a=t.initData;if(null==a){console.error(`Could not start encrypted playback due to missing initData in ${t.type} event`);return}await d(i,a)}catch(t){a(e,t);return}},l=async i=>{let n=await navigator.requestMediaKeySystemAccess("com.apple.fps",[{initDataTypes:[i],videoCapabilities:[{contentType:"application/vnd.apple.mpegurl",robustness:""}],distinctiveIdentifier:"not-allowed",persistentState:"not-allowed",sessionTypes:["temporary"]}]).then(e=>(r(),e)).catch(()=>{let t=new m(B("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),m.MEDIA_ERR_ENCRYPTED,!0);t.errorCategory=u.DRM,t.muxCode=c.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM,a(e,t)});if(!n)return;let o=await n.createMediaKeys();try{let e=await t();await o.setServerCertificate(e).catch(()=>{let e=B("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate."),t=new m(e,m.MEDIA_ERR_ENCRYPTED,!0);return t.errorCategory=u.DRM,t.muxCode=c.ENCRYPTED_UPDATE_SERVER_CERT_FAILED,Promise.reject(t)})}catch(t){a(e,t);return}await e.setMediaKeys(o)},d=async(t,r)=>{let s=e.mediaKeys.createSession(),l=async t=>{let r=t.message,n=await i(r);try{await s.update(n)}catch{let t=new m(B("Failed to update DRM license. This may be an issue with the player or your protected content."),m.MEDIA_ERR_ENCRYPTED,!0);t.errorCategory=u.DRM,t.muxCode=c.ENCRYPTED_UPDATE_LICENSE_FAILED,a(e,t)}},d=()=>{let t=t=>{let i;"internal-error"===t?((i=new m(B("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser."),m.MEDIA_ERR_ENCRYPTED,!0)).errorCategory=u.DRM,i.muxCode=c.ENCRYPTED_CDM_ER
1ROR):("output-restricted"===t||"output-downscaled"===t)&&((i=new m(B("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen."),m.MEDIA_ERR_ENCRYPTED,!1)).errorCategory=u.DRM,i.muxCode=c.ENCRYPTED_OUTPUT_RESTRICTED),i&&a(e,i)};s.keyStatuses.forEach(e=>t(e))};s.addEventListener("keystatuseschange",d),s.addEventListener("message",l);let h=async()=>{s.removeEventListener("keystatuseschange",d),s.removeEventListener("message",l),"webkitCurrentPlaybackTargetIsWireless"in e&&e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",h),e.removeEventListener("teardown",h),await s.close().catch(e=>{console.warn("There was an error when closing EME session",e)}),o=null};"webkitCurrentPlaybackTargetIsWireless"in e&&e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",h,{once:!0}),e.addEventListener("teardown",h,{once:!0}),o=h,await s.generateRequest(t,r).catch(async t=>{if("NotSupportedError"===t.name&&"webkitCurrentPlaybackTargetIsWireless"in e&&e.webkitCurrentPlaybackTargetIsWireless)console.warn("Failed to generate a DRM license request. Attempting to fallback to Webkit DRM"),null==n||n();else{let e=new m(B("Failed to generate a DRM license request. This may be an issue with the player or your protected content."),m.MEDIA_ERR_ENCRYPTED,!0);return e.errorCategory=u.DRM,e.muxCode=c.ENCRYPTED_GENERATE_REQUEST_FAILED,console.error("Failed to generate license request",t),Promise.reject(e)}})},h=async()=>{e.removeEventListener("encrypted",s),e.removeEventListener("teardown",h),o&&await o(),await e.setMediaKeys(null).catch(()=>{})};return e.addEventListener("encrypted",s),e.addEventListener("teardown",h,{once:!0}),h},eA={FAIRPLAY:"fairplay",PLAYREADY:"playready",WIDEVINE:"widevine"},ew=e=>e.includes("fps")?eA.FAIRPLAY:e.includes("playready")?eA.PLAYREADY:e.includes("widevine")?eA.WIDEVINE:void 0,eS=e=>fetch(e.split(`
2`).find((e,t,i)=>t&&i[t-1].startsWith("#EXT-X-STREAM-INF"))).then(e=>200!==e.status?Promise.reject(e):e.text()),eI=e=>{let t=e.split(`
3`).filter(e=>e.startsWith("#EXT-X-SESSION-DATA"));if(!t.length)return{};let i={};for(let e of t){let t=Object.fromEntries([...e.matchAll(eL)].map(([,e,t])=>[e,t])),a=t["DATA-ID"];a&&(i[a]={...t})}return{sessionData:i}},eL=/([A-Z0-9-]+)="?(.*?)"?(?:,|$)/g,eR=e=>{var t,i,a;let r=e.split(`
4`),n=null==(i=(null!=(t=r.find(e=>e.startsWith("#EXT-X-PLAYLIST-TYPE")))?t:"").split(":")[1])?void 0:i.trim(),o=L(n),s=R(n),l;if(o===E.LIVE){let e=r.find(e=>e.startsWith("#EXT-X-PART-INF"));if(e)l=2*+e.split(":")[1].split("=")[1];else{let e=r.find(e=>e.startsWith("#EXT-X-TARGETDURATION")),t=null==(a=null==e?void 0:e.split(":"))?void 0:a[1];l=3*+(null!=t?t:6)}}return{streamType:o,targetLiveWindow:s,liveEdgeStartOffset:l}},eC=async(e,t)=>{if(t===T.MP4)return{streamType:E.ON_DEMAND,targetLiveWindow:Number.NaN,liveEdgeStartOffset:void 0,sessionData:void 0};if(t===T.M3U8){let t=await fetch(e);if(!t.ok)return Promise.reject(t);let i=await t.text(),a=await eS(i);return{...eI(i),...eR(a)}}return console.error(`Media type ${t} is an unrecognized or unsupported type for src ${e}.`),{streamType:void 0,targetLiveWindow:void 0,liveEdgeStartOffset:void 0,sessionData:void 0}},eD=async(e,t,i=I({src:e}))=>{var a,r,n,o;let{streamType:s,targetLiveWindow:l,liveEdgeStartOffset:d,sessionData:u}=await eC(e,i),c=null==u?void 0:u["com.apple.hls.chapters"];(null!=c&&c.URI||null!=c&&c.VALUE.toLocaleLowerCase().startsWith("http"))&&eO(null!=(a=c.URI)?a:c.VALUE,t),(null!=(r=e$.get(t))?r:{}).liveEdgeStartOffset=d,(null!=(n=e$.get(t))?n:{}).targetLiveWindow=l,t.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),(null!=(o=e$.get(t))?o:{}).streamType=s,t.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},eO=async(e,t)=>{var i,a;try{let r=await fetch(e);if(!r.ok)throw Error(`Failed to fetch Mux metadata: ${r.status} ${r.statusText}`);let n=await r.json(),o={};if(!(null!=(i=null==n?void 0:n[0])&&i.metadata))return;for(let e of n[0].metadata)e.key&&e.value&&(o[e.key]=e.value);(null!=(a=e$.get(t))?a:{}).metadata=o;let s=new CustomEvent("muxmetadata");t.dispatchEvent(s)}catch(e){console.error(e)}},ex=e=>{var t;let i=e.type,a=L(i),r=R(i),n,o=!!(null!=(t=e.partList)&&t.length);return a===E.LIVE&&(n=o?2*e.partTarget:3*e.targetduration),{streamType:a,targetLiveWindow:r,liveEdgeStartOffset:n,lowLatency:o}},eM=(e,t,i)=>{var a,r,n,o,s,l,d,u;let{streamType:c,targetLiveWindow:h,liveEdgeStartOffset:m,lowLatency:v}=ex(e);if(c===E.LIVE){v?(i.config.backBufferLength=null!=(a=i.userConfig.backBufferLength)?a:4,i.config.maxFragLookUpTolerance=null!=(r=i.userConfig.maxFragLookUpTolerance)?r:.001,i.config.abrBandWidthUpFactor=null!=(n=i.userConfig.abrBandWidthUpFactor)?n:i.config.abrBandWidthFactor):i.config.backBufferLength=null!=(o=i.userConfig.backBufferLength)?o:8;let e=Object.freeze({get length(){return t.seekable.length},start:e=>t.seekable.start(e),end(e){var a;return e>this.length||e<0||Number.isFinite(t.duration)?t.seekable.end(e):null!=(a=i.liveSyncPosition)?a:t.seekable.end(e)}});(null!=(s=e$.get(t))?s:{}).seekable=e}(null!=(l=e$.get(t))?l:{}).liveEdgeStartOffset=m,(null!=(d=e$.get(t))?d:{}
4).targetLiveWindow=h,t.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),(null!=(u=e$.get(t))?u:{}).streamType=c,t.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},eN=null!=(ev=null==(em=null==globalThis?void 0:globalThis.navigator)?void 0:em.userAgent)?ev:"",eP=null!=(eE=null==(eb=null==(ef=null==globalThis?void 0:globalThis.navigator)?void 0:ef.userAgentData)?void 0:eb.platform)?eE:"",eU=eN.toLowerCase().includes("android")||["x11","android"].some(e=>eP.toLowerCase().includes(e)),eB=e=>/^((?!chrome|android).)*safari/i.test(eN)&&!!e.canPlayType("application/vnd.apple.mpegurl"),e$=new WeakMap,eH="mux.com",ej=null==(ey=d.isSupported)?void 0:ey.call(d),eW=e=>eU||!eB(e),eq=()=>{if("undefined"!=typeof window)return s.Z.utils.now()},eK=s.Z.utils.generateUUID,eF=({playbackId:e,customDomain:t=eH,maxResolution:i,minResolution:a,renditionOrder:r,programStartTime:n,programEndTime:o,assetStartTime:s,assetEndTime:l,playbackToken:d,tokens:{playback:u=d}={},extraSourceParams:c={}}={})=>{if(!e)return;let[h,m=""]=S(e),v=new URL(`https://stream.${t}/${h}.m3u8${m}`);return u||v.searchParams.has("token")?(v.searchParams.forEach((e,t)=>{"token"!=t&&v.searchParams.delete(t)}),u&&v.searchParams.set("token",u)):(i&&v.searchParams.set("max_resolution",i),a&&(v.searchParams.set("min_resolution",a),i&&+i.slice(0,-1)<+a.slice(0,-1)&&console.error("minResolution must be <= maxResolution","minResolution",a,"maxResolution",i)),r&&v.searchParams.set("rendition_order",r),n&&v.searchParams.set("program_start_time",`${n}`),o&&v.searchParams.set("program_end_time",`${o}`),s&&v.searchParams.set("asset_start_time",`${s}`),l&&v.searchParams.set("asset_end_time",`${l}`),Object.entries(c).forEach(([e,t])=>{null!=t&&v.searchParams.set(e,t)})),v.toString()},eV=e=>{if(!e)return;let[t]=e.split("?");return t||void 0},eY=e=>{if(!e||!e.startsWith("https://stream."))return;let[t]=new URL(e).pathname.slice(1).split(/\.m3u8|\//);return t||void 0},eG=e=>{var t,i,a;return null!=(t=null==e?void 0:e.metadata)&&t.video_id?e.metadata.video_id:td(e)&&null!=(a=null!=(i=eV(e.playbackId))?i:eY(e.src))?a:e.src},ez=e=>{var t;return null==(t=e$.get(e))?void 0:t.error},eQ=e=>{var t;return null==(t=e$.get(e))?void 0:t.metadata},eZ=e=>{var t,i;return null!=(i=null==(t=e$.get(e))?void 0:t.streamType)?i:E.UNKNOWN},eX=e=>{var t,i;return null!=(i=null==(t=e$.get(e))?void 0:t.targetLiveWindow)?i:Number.NaN},eJ=e=>{var t,i;return null!=(i=null==(t=e$.get(e))?void 0:t.seekable)?i:e.seekable},e0=e=>{var t;let i=null==(t=e$.get(e))?void 0:t.liveEdgeStartOffset;if("number"!=typeof i)return Number.NaN;let a=eJ(e);return a.length?a.end(a.length-1)-i:Number.NaN},e1=e=>{var t;return null==(t=e$.get(e))?void 0:t.coreReference},e2=.034,e3=(e,t,i=e2)=>Math.abs(e-t)<=i,e4=(e,t,i=e2)=>e>t||e3(e,t,i),e5=(e,t=e2)=>e.paused&&e4(e.currentTime,e.duration,t),e9=(e,t)=>{var i,a,r;if(!t||!e.buffered.length)return;if(e.readyState>2)return!1;let n=t.currentLevel>=0?null==(a=null==(i=t.levels)?void 0:i[t.currentLevel])?void 0:a.details:null==(r=t.levels.find(e=>!!e.details))?void 0:r.details;if(!n||n.live)return;let{fragments:o}=n;if(!(null!=o&&o.length))return;if(e.currentTime<e.duration-(n.targetduration+.5))return!1;let s=o[o.length-1];if(e.currentTime<=s.start)return!1;let l=s.start+s.duration/2,d=e.buffered.start(e.buffered.length-1),u=e.buffered.end(e.buffered.length-1);return l>d&&l<u},e8=(e,t)=>e.ended||e.loop?e.ended:!!(t&&e9(e,t))||e5(e),e6=(e,t,i)=>{e7(t,i,e);let{metadata:a={}}=e,{view_session_id:r=eK()}=a,n=eG(e);a.view_session_id=r,a.video_id=n,e.metadata=a,e.drmTypeCb=e=>{var i;null==(i=t.mux)||i.emit("hb",{view_drm_type:e})},e.fallbackToWebkitFairplay=async()=>{var i;let a=!t.paused,r=t.currentTime;e.useWebkitFairplay=!0;let n=e.muxDataKeepSession;e.muxDataKeepSession=!0;let o=null==(i=e$.get(t))?void 0:i.coreReference;e6(e,t,o),e.muxDataKeepSession=n,e.useWebkitFairplay=!1,a&&await t.play().then(()=>{t.currentTime=r}).catch(()=>{}),t.currentTime=r},e$.set(t,{retryCount:0});let o=tt(e,t),s=K(e,t,o);null!=e&&e.muxDataKeepSession&&null!=t&&t.mux&&!t.mux.deleted?o&&t.mux.addHLSJS({hlsjs:o,Hls:o?d:void 0}):tc(e,t,o),th(e,t,o),ee(t),eo(t);let l=W(e,t,o),u={engine:o,setAutoplay:l,setPreload:s},c=e$.get(t);return c&&(c.coreReference=u),u},e7=(e,t,i)=>{let a=null==t?void 0:t.engine;null!=e&&e.mux&&!e.mux.deleted&&(null!=i&&i.muxDataKeepSession?a&&e.mux.removeHLSJS():(e.mux.destroy(),delete e.mux)),a&&(a.detachMedia(),a.destroy()),e&&(e.hasAttribute("src")&&(e.removeAttribute("src"),e.load()),e.removeEventListener("error",tm),e.removeEventListener("error",tf),e.removeEventListener("durationchange",tp),e$.delete(e),e.dispatchEvent(new Event("teardown")))};function te(e,t){var i;let a=I(e);if(a!==T.M3U8)return!0;let r=!a||null==(i=t.canPlayType(a))||i,{preferPlayback:n}=e,o=n===y.MSE,s=n===y.NATIVE,l=ej&&(o||eW(t));return r&&(s||!l)}var tt=(e,t)=>{let{debug:i,streamType:a,startTime:r=-1,metadata:n,preferCmcd:o,_hlsConfig:s={},maxAutoResolution:l}=e,u=I(e)===T.M3U8,c=te(e,t);if(u&&!c&&ej){let u=ti(a),c=ta(e),h=[g.QUERY,g.HEADER].includes(o)?{useHeaders:o===g.HEADER,sessionId:null==n?void 0:n.view_session_id,contentId:null==n?void 0:n.video_id}:void 0,m=tu(e,s),v=new d({debug:i,startPosition:r,cmcd:h,xhrSetup:(e,t)=>{var i,a;if(o&&o!==g.QUERY)return;let r=new URL(t);if(!r.searchParams.has("CMCD"))return;let n=(null!=(a=null==(i=r.searchParams.get("CMCD"))?void 0:i.split(","))?a:[]).filter(e=>e.startsWith("sid")||e.startsWith("cid")).join(",");r.searchParams.set("CMCD",n),e.open("GET",r)},backBufferLength:30,renderTextTracksNatively:!1,liveDurationInfinity:!0,capLevelOnFPSDrop:!0,...m,...u,...c,...s});return m.capLevelController===ep&&void 0!==l&&ep.setMaxAutoResolution(v,l),v.on(d.Events.MANIFEST_PARSED,async function(e,i){var a,r;let n=null==(a=i.sessionData)?void 0:a["com.apple.hls.chapters"];(null!=n&&n.URI||null!=n&&n.VALUE.toLocaleLowerCase().startsWith("http"))&&eO(null!=(r=null==n?void 0:n.URI)?r:null==n?void 0:n.VALUE,t)}),v}},ti=e=>e===E.LIVE?{backBufferLength:8}:{},ta=e=>{let{tokens:{drm:t}={},playbackId:i,drmTypeCb:a}=e,r=eV(i);return t&&r?{emeEnabled:!0,drmSystems:{"com.apple.fps":{licenseUrl:ts(e,"fairplay"),serverCertificateUrl:tl(e,"fairplay")},"com.widevine.alpha":{licenseUrl:ts(e,"widevine")},"com.microsoft.playready":{licenseUrl:ts(e,"playready")}},requestMediaKeySystemAccessFunc:(e,t)=>("com.widevine.alpha"===e&&(t=[...t.map(e=>{var t;let i=null==(t=e.videoCapabilities)?void 0:t.map(e=>({...e,robustness:"HW_SECURE_ALL"}));return{...e,videoCapabilities:i}}),...t]),navigator.requestMediaKeySystemAccess(e,t).then(t=>{let i=ew(e);return null==a||a(i),t}))}:{}},tr=async e=>{let t=await fetch(e);return 200!==t.status?Promise.reject(t):await t.arrayBuffer()},tn=async(e,t)=>{let i=await fetch(t,{method:"POST",headers:{"Content-type":"application/octet-stream"},body:e});return 200!==i.status?Promise.reject(i):new Uint8Array(await i.arrayBuffer())},to=(e,t)=>{let i={mediaEl:t,getAppCertificate:()=>tr(tl(e,"fairplay")).catch(t=>{if(t instanceof Response){let i=eu(t,u.DRM,e);return console.error("mediaError",null==i?void 0:i.message,null==i?void 0:i.context),i?Promise.reject(i):Promise.reject(Error("Unexpected error in app cert request"))}return Promise.reject(t)}),getLicenseKey:t=>tn(t,ts(e,"fairplay")).catch(t=>{if(t instanceof Response){let i=eu(t,u.DRM,e);return console.error("mediaError",null==i?void 0:i.message,null==i?void 0:i.context),i?Promise.reject(i):Promise.reject(Error("Unexpected error in license key request"))}return Promise.reject(t)}),saveAndDispatchError:tv,drmTypeCb:()=>{var t;null==(t=e.drmTypeCb)||t.call(e,eA.FAIRPLAY)}};if(e.useWebkitFairplay)eg(i);else{let t=ek({fallbackToWebkitFairplay:async()=>{var i;await t(),null==(i=e.fallbackToWebkitFairplay)||i.call(e)},...i})}},ts=({playbackId:e,tokens:{drm:t}={},customDomain:i=eH},a)=>{let r=eV(e);return`https://license.${i.toLocaleLowerCase().endsWith(eH)?i:eH}/license/${a}
4/${r}?token=${t}`},tl=({playbackId:e,tokens:{drm:t}={},customDomain:i=eH},a)=>{let r=eV(e);return`https://license.${i.toLocaleLowerCase().endsWith(eH)?i:eH}/appcert/${a}/${r}?token=${t}`},td=({playbackId:e,src:t,customDomain:i})=>{if(e)return!0;if("string"!=typeof t)return!1;let a=new URL(t,null==window?void 0:window.location.href).hostname.toLocaleLowerCase();return a.includes(eH)||!!i&&a.includes(i.toLocaleLowerCase())},tu=(e,t)=>{let i={};return i.capLevelToPlayerSize=e.capRenditionToPlayerSize,null==i.capLevelToPlayerSize?(i.capLevelController=ep,i.capLevelToPlayerSize=!0):i.capLevelController=l.wl,i},tc=(e,t,i)=>{var a;let{envKey:r,disableTracking:n,muxDataSDK:o=s.Z,muxDataSDKOptions:l={}}=e,u=td(e);if(!n&&(r||u)){let{playerInitTime:n,playerSoftwareName:s,playerSoftwareVersion:u,beaconCollectionDomain:c,debug:h,disableCookies:m}=e,v={...e.metadata,video_title:(null==(a=null==e?void 0:e.metadata)?void 0:a.video_title)||void 0};o.monitor(t,{debug:h,beaconCollectionDomain:c,hlsjs:i,Hls:i?d:void 0,automaticErrorTracking:!1,errorTranslator:t=>"string"!=typeof t.player_error_code&&("function"==typeof e.errorTranslator?e.errorTranslator(t):t),disableCookies:m,...l,data:{...r?{env_key:r}:{},player_software_name:s,player_software:s,player_software_version:u,player_init_time:n,...v}})}},th=(e,t,i)=>{var a,r;let n=te(e,t),{src:o,customDomain:s=eH}=e,l=()=>{t.ended||e.disablePseudoEnded||!e8(t,i)||(e9(t,i)?t.currentTime=t.buffered.end(t.buffered.length-1):t.dispatchEvent(new Event("ended")))},h,v,f=()=>{let e=eJ(t),i,a;e.length>0&&(i=e.start(0),a=e.end(0)),(v!==a||h!==i)&&t.dispatchEvent(new CustomEvent("seekablechange",{composed:!0})),h=i,v=a};if(w(t,"durationchange",f),t&&n){let i=I(e);if("string"==typeof o){if(o.endsWith(".mp4")&&o.includes(s)){let e=eY(o);eO(new URL(`https://stream.${s}/${e}/metadata.json`).toString(),t)}let n=()=>{if(eZ(t)!==E.LIVE||Number.isFinite(t.duration))return;let e=setInterval(f,1e3);t.addEventListener("teardown",()=>{clearInterval(e)},{once:!0}),w(t,"durationchange",()=>{Number.isFinite(t.duration)&&clearInterval(e)})},l=async()=>eD(o,t,i).then(n).catch(i=>{if(i instanceof Response){let a=eu(i,u.VIDEO,e);if(a){tv(t,a);return}}});if("none"===t.preload){let e=()=>{l(),t.removeEventListener("loadedmetadata",i)},i=()=>{l(),t.removeEventListener("play",e)};w(t,"play",e,{once:!0}),w(t,"loadedmetadata",i,{once:!0})}else l();null!=(a=e.tokens)&&a.drm?to(e,t):w(t,"encrypted",()=>{let e=new m(B("Attempting to play DRM-protected content without providing a DRM token."),m.MEDIA_ERR_ENCRYPTED,!0);e.errorCategory=u.DRM,e.muxCode=c.ENCRYPTED_MISSING_TOKEN,tv(t,e)},{once:!0}),t.setAttribute("src",o),e.startTime&&((null!=(r=e$.get(t))?r:{}).startTime=e.startTime,t.addEventListener("durationchange",tp,{once:!0}))}else t.removeAttribute("src");t.addEventListener("error",tm),t.addEventListener("error",tf),t.addEventListener("emptied",()=>{t.querySelectorAll("track[data-removeondestroy]").forEach(e=>{e.remove()})},{once:!0}),w(t,"pause",l),w(t,"seeked",l),w(t,"play",()=>{t.ended||e4(t.currentTime,t.duration)&&(t.currentTime=t.seekable.length?t.seekable.start(0):0)})}else i&&o?(i.once(d.Events.LEVEL_LOADED,(e,a)=>{eM(a.details,t,i),f(),eZ(t)!==E.LIVE||Number.isFinite(t.duration)||(i.on(d.Events.LEVEL_UPDATED,f),w(t,"durationchange",()=>{Number.isFinite(t.duration)&&i.off(d.Events.LEVELS_UPDATED,f)}))}),i.on(d.Events.ERROR,(a,r)=>{var n,o;let s=tb(r,e);if(s.muxCode===c.NETWORK_NOT_READY){let e=null!=(n=e$.get(t))?n:{},a=null!=(o=e.retryCount)?o:0;if(a<6){let n=0===a?5e3:6e4,o=new m(`Retrying in ${n/1e3} seconds...`,s.code,s.fatal);Object.assign(o,s),tv(t,o);let l=setTimeout(()=>{e.retryCount=a+1,"manifestLoadError"===r.details&&r.url&&i.loadSource(r.url)},n);t.addEventListener("teardown",()=>clearTimeout(l),{once:!0});return}{e.retryCount=0;let i=new m('Try again later or <a href="#" onclick="window.location.reload(); return false;" style="color: #4a90e2;">click here to retry</a>',s.code,s.fatal);Object.assign(i,s),tv(t,i);return}}tv(t,s)}),i.on(d.Events.MANIFEST_LOADED,()=>{let e=e$.get(t);e&&e.error&&(e.error=null,e.retryCount=0,t.dispatchEvent(new Event("emptied")),t.dispatchEvent(new Event("loadstart")))}),t.addEventListener("error",tf),w(t,"waiting",l),function(e,t){var i;if(!("videoTracks"in e))return;let a=new WeakMap;t.on(d.Events.MANIFEST_PARSED,function(t,i){l();let r=e.addVideoTrack("main");for(let[e,t]of(r.selected=!0,i.levels.entries())){let i=r.addRendition(t.url[0],t.width,t.height,t.videoCodec,t.bitrate);a.set(t,`${e}`),i.id=`${e}`}}),t.on(d.Events.AUDIO_TRACKS_UPDATED,function(t,i){for(let t of(s(),i.audioTracks)){let i=t.default?"main":"alternative",a=e.addAudioTrack(i,t.name,t.lang);a.id=`${t.id}`,t.default&&(a.enabled=!0)}});let r=()=>{var i;let a=+(null==(i=[...e.audioTracks].find(e=>e.enabled))?void 0:i.id),r=t.audioTracks.map(e=>e.id);a!=t.audioTrack&&r.includes(a)&&(t.audioTrack=a)};e.audioTracks.addEventListener("change",r),t.on(d.Events.LEVELS_UPDATED,function(t,i){var r;let n=e.videoTracks[null!=(r=e.videoTracks.selectedIndex)?r:0];if(!n)return;let o=i.levels.map(e=>a.get(e));for(let t of e.videoRenditions)t.id&&!o.includes(t.id)&&n.removeRendition(t)});let n=e=>{let i=e.target.selectedIndex;i!=t.nextLevel&&(t.nextLevel=i)};null==(i=e.videoRenditions)||i.addEventListener("change",n);let o=()=>{for(let t of e.videoTracks)e.removeVideoTrack(t)},s=()=>{for(let t of e.audioTracks)e.removeAudioTrack(t)},l=()=>{o(),s()};t.once(d.Events.DESTROYING,()=>{var t,i;l(),null==(t=e.audioTracks)||t.removeEventListener("change",r),null==(i=e.videoRenditions)||i.removeEventListener("change",n)})}(e,i),function(e,t){t.on(d.Events.NON_NATIVE_TEXT_TRACKS_FOUND,(i,{tracks:a})=>{a.forEach(i=>
4{var a,r;let n=null!=(a=i.subtitleTrack)?a:i.closedCaptions,o=t.subtitleTracks.findIndex(({lang:e,name:t,type:a})=>e==(null==n?void 0:n.lang)&&t===i.label&&a.toLowerCase()===i.kind),s=(null!=(r=i._id)?r:i.default)?"default":`${i.kind}${o}`;V(e,i.kind,i.label,null==n?void 0:n.lang,s,i.default)})});let i=()=>{if(!t.subtitleTracks.length)return;let i=Array.from(e.textTracks).find(e=>e.id&&"showing"===e.mode&&["subtitles","captions"].includes(e.kind));if(!i)return;let a=t.subtitleTracks[t.subtitleTrack],r=a?a.default?"default":`${t.subtitleTracks[t.subtitleTrack].type.toLowerCase()}${t.subtitleTrack}`:void 0;if(t.subtitleTrack<0||(null==i?void 0:i.id)!==r){let e=t.subtitleTracks.findIndex(({lang:e,name:t,type:a,default:r})=>"default"===i.id&&r||e==i.language&&t===i.label&&a.toLowerCase()===i.kind);t.subtitleTrack=e}(null==i?void 0:i.id)===r&&i.cues&&Array.from(i.cues).forEach(e=>{i.addCue(e)})};e.textTracks.addEventListener("change",i),t.on(d.Events.CUES_PARSED,(t,{track:i,cues:a})=>{let r=e.textTracks.getTrackById(i);if(!r)return;let n="disabled"===r.mode;n&&(r.mode="hidden"),a.forEach(e=>{var t;null!=(t=r.cues)&&t.getCueById(e.id)||r.addCue(e)}),n&&(r.mode="disabled")}),t.once(d.Events.DESTROYING,()=>{e.textTracks.removeEventListener("change",i),e.querySelectorAll("track[data-removeondestroy]").forEach(e=>{e.remove()})});let a=()=>
4{Array.from(e.textTracks).forEach(t=>{var i,a;if(!["subtitles","caption"].includes(t.kind)&&("thumbnails"===t.label||"chapters"===t.kind)){if(!(null!=(i=t.cues)&&i.length)){let i="track";t.kind&&(i+=`[kind="${t.kind}"]`),t.label&&(i+=`[label="${t.label}"]`);let r=e.querySelector(i),n=null!=(a=null==r?void 0:r.getAttribute("src"))?a:"";null==r||r.removeAttribute("src"),setTimeout(()=>{null==r||r.setAttribute("src",n)},0)}"hidden"!==t.mode&&(t.mode="hidden")}})};t.once(d.Events.MANIFEST_LOADED,a),t.once(d.Events.MEDIA_ATTACHED,a)}(t,i),i.attachMedia(t)):console.error("It looks like the video you're trying to play will not work on this system! If possible, try upgrading to the newest versions of your browser or software.")};function tp(e){var t;let i=e.target,a=null==(t=e$.get(i))?void 0:t.startTime;if(a&&function(e,t,i){t&&i>t&&(i=t);for(let t=0;t<e.length;t++)if(e.start(t)<=i&&e.end(t)>=i)return!0;return!1}(i.seekable,i.duration,a)){let e="auto"===i.preload;e&&(i.preload="none"),i.currentTime=a,e&&(i.preload="auto")}}async function tm(e){if(!e.isTrusted)return;e.stopImmediatePropagation();let t=e.target;if(!(null!=t&&t.error))return;let{message:i,code:a}=t.error,r=new m(i,a);if(t.src&&a===m.MEDIA_ERR_SRC_NOT_SUPPORTED&&t.readyState===HTMLMediaElement.HAVE_NOTHING){setTimeout(()=>{var e;let i=null!=(e=ez(t))?e:t.error;(null==i?void 0:i.code)===m.MEDIA_ERR_SRC_NOT_SUPPORTED&&tv(t,r)},500);return}if(t.src&&(a!==m.MEDIA_ERR_DECODE||void 0!==a))try{let{status:e}=await fetch(t.src);r.data={response:{code:e}}}catch{}tv(t,r)}function tv(e,t){var i;t.fatal&&((null!=(i=e$.get(e))?i:{}).error=t,e.dispatchEvent(new CustomEvent("error",{detail:t})))}function tf(e){var t,i;if(!(e instanceof CustomEvent)||!(e.detail instanceof m))return;let a=e.target,r=e.detail;r&&r.fatal&&((null!=(t=e$.get(a))?t:{}).error=r,null==(i=a.mux)||i.emit("error",{player_error_code:r.code,player_error_message:r.message,player_error_context:r.context}))}var tb=(e,t)=>{var i,a,r;e.fatal?console.error("getErrorFromHlsErrorData()",e):t.debug&&console.warn("getErrorFromHlsErrorData() (non-fatal)",e);let n={[d.ErrorTypes.NETWORK_ERROR]:m.MEDIA_ERR_NETWORK,[d.ErrorTypes.MEDIA_ERROR]:m.MEDIA_ERR_DECODE,[d.ErrorTypes.KEY_SYSTEM_ERROR]:m.MEDIA_ERR_ENCRYPTED},o,s=[d.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,d.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED].includes(e.details)?m.MEDIA_ERR_NETWORK:n[e.type];if(s===m.MEDIA_ERR_NETWORK&&e.response){let r=null!=(i=e.type===d.ErrorTypes.KEY_SYSTEM_ERROR?u.DRM:e.type===d.ErrorTypes.NETWORK_ERROR?u.VIDEO:void 0)?i:u.VIDEO;o=null!=(a=eu(e.response,r,t,e.fatal))?a:new m("",s,e.fatal)}else s===m.MEDIA_ERR_ENCRYPTED?e.details===d.ErrorDetails.KEY_SYSTEM_NO_CONFIGURED_LICENSE?((o=new m(B("Attempting to play DRM-protected content without providing a DRM token."),m.MEDIA_ERR_ENCRYPTED,e.fatal)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_MISSING_TOKEN):e.details===d.ErrorDetails.KEY_SYSTEM_NO_ACCESS?((o=new m(B("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),m.MEDIA_ERR_ENCRYPTED,e.fatal)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM):e.details===d.ErrorDetails.KEY_SYSTEM_NO_SESSION?((o=new m(B("Failed to generate a DRM license request. This may be an issue with the player or your protected content."),m.MEDIA_ERR_ENCRYPTED,!0)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_GENERATE_REQUEST_FAILED):e.details===d.ErrorDetails.KEY_SYSTEM_SESSION_UPDATE_FAILED?((o=new m(B("Failed to update DRM license. This may be an issue with the player or your protected content."),m.MEDIA_ERR_ENCRYPTED,e.fatal)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_UPDATE_LICENSE_FAILED):e.details===d.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED?((o=new m(B("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate."),m.MEDIA_ERR_ENCRYPTED,e.fatal)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_UPDATE_SERVER_CERT_FAILED):e.details===d.ErrorDetails.KEY_SYSTEM_STATUS_INTERNAL_ERROR?((o=new m(B("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser."),m.MEDIA_ERR_ENCRYPTED,e.fatal)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_CDM_ER
4ROR):e.details===d.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED?((o=new m(B("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen."),m.MEDIA_ERR_ENCRYPTED,!1)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_OUTPUT_RESTRICTED):((o=new m(e.error.message,m.MEDIA_ERR_ENCRYPTED,e.fatal)).errorCategory=u.DRM,o.muxCode=c.ENCRYPTED_ERROR):o=new m("",s,e.fatal);return o.context||(o.context=`${e.url?`url: ${e.url}
5`:""}${e.response&&(e.response.code||e.response.text)?`response: ${e.response.code}, ${e.response.text}
6`:""}${e.reason?`failure reason: ${e.reason}
7`:""}${e.level?`level: ${e.level}
8`:""}${e.parent?`parent stream controller: ${e.parent}
9`:""}${e.buffer?`buffer length: ${e.buffer}
10`:""}${e.error?`error: ${e.error}
11`:""}${e.event?`event: ${e.event}
12`:""}${e.err?`error message: ${null==(r=e.err)?void 0:r.message}
13`:""}`),o.data=e,o};let tE=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],ty=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function tg(e){return`
14    <style>
15      :host {
16        display: inline-flex;
17        line-height: 0;
18        flex-direction: column;
19        justify-content: end;
20      }
21
22      audio {
23        width: 100%;
24      }
25    </style>
26    <slot name="media">
27      <audio${tk(e)}></audio>
28    </slot>
29    <slot></slot>
30  `}function t_(e){return`
31    <style>
32      :host {
33        display: inline-block;
34        line-height: 0;
35      }
36
37      video {
38        max-width: 100%;
39        max-height: 100%;
40        min-width: 100%;
41        min-height: 100%;
42        object-fit: var(--media-object-fit, contain);
43        object-position: var(--media-object-position, 50% 50%);
44      }
45
46      video::-webkit-media-text-track-container {
47        transform: var(--media-webkit-text-track-transform);
48        transition: var(--media-webkit-text-track-transition);
49      }
50    </style>
51    <slot name="media">
52      <video${tk(e)}></video>
53    </slot>
54    <slot></slot>
55  `}function tT(e,{tag:t,is:i}){let a=globalThis.document?.createElement?.(t,{is:i}),r=a?function(e){let t=[];for(let i=Object.getPrototypeOf(e);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i)){let e=Object.getOwnPropertyNames(i);t.push(...e)}return t}(a):[];return class n extends e{static getTemplateHTML=t.endsWith("audio")?tg:t_;static shadowRootOptions={mode:"open"};static Events=tE;static #e=!1;static get observedAttributes(){return n.#t(),[...a?.constructor?.observedAttributes??[],...ty]}static #t(){if(this.#e)return;this.#e=!0;let e=new Set(this.observedAttributes);for(let t of(e.delete("muted"),r))if(!(t in this.prototype)){if("function"==typeof a[t])this.prototype[t]=function(...e){return this.#i(),(()=>{if(this.call)return this.call(t,...e);let i=this.nativeEl?.[t];return i?.apply(this.nativeEl,e)})()};else{let i={get(){this.#i();let i=t.toLowerCase();if(e.has(i)){let e=this.getAttribute(i);return null!==e&&(""===e||e)}return this.get?.(t)??this.nativeEl?.[t]}};t!==t.toUpperCase()&&(i.set=function(i){this.#i();let a=t.toLowerCase();if(e.has(a)){!0===i||!1===i||null==i?this.toggleAttribute(a,!!i):this.setAttribute(a,i);return}if(this.set){this.set(t,i);return}this.nativeEl&&(this.nativeEl[t]=i)}),Object.defineProperty(this.prototype,t,i)}}}#a=!1;#r=null;#n=new Map;#o;#s;get;set;call;get nativeEl(){return this.#i(),this.#r??this.querySelector(":scope > [slot=media]")??this.querySelector(t)??this.shadowRoot?.querySelector(t)??null}set nativeEl(e){this.#r=e}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.toggleAttribute("muted",e)}get src(){return this.getAttribute("src")}set src(e){this.setAttribute("src",`${e}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(e){this.setAttribute("preload",`${e}`)}#i(){this.#a||(this.#a=!0,this.init())}init(){if(!this.shadowRoot){this.attachShadow({mode:"open"});let e=function(e){let t={};for(let i of e)t[i.name]=i.value;return t}(this.attributes);i&&(e.is=i),t&&(e.part=t),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}for(let e of(this.nativeEl.muted=this.hasAttribute("muted"),r))this.#l(e);this.#d()}#d(){for(let e of(this.#o=new MutationObserver(this.#u.bind(this)),this.#s=()=>this.#c(),this.shadowRoot?.addEventListener("slotchange",this.#s),this.#c(),this.constructor.Events))this.shadowRoot?.addEventListener(e,this,!0)}handleEvent(e){e.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail}))}#c(){let e=new Map(this.#n),t=this.shadowRoot?.querySelector("slot:not([name])");(t?.assignedElements({flatten:!0}).filter(e=>
55["track","source"].includes(e.localName))).forEach(t=>{e.delete(t);let i=this.#n.get(t);i||(i=t.cloneNode(),this.#n.set(t,i),this.#o?.observe(t,{attributes:!0})),this.nativeEl?.append(i),this.#h(i)}),e.forEach((e,t)=>{e.remove(),this.#n.delete(t)})}#u(e){for(let t of e)if("attributes"===t.type){let{target:e,attributeName:i}=t,a=this.#n.get(e);a&&i&&(a.setAttribute(i,e.getAttribute(i)??""),this.#h(a))}}#h(e){e&&"track"===e.localName&&e.default&&("chapters"===e.kind||"metadata"===e.kind)&&"disabled"===e.track.mode&&(e.track.mode="hidden")}#l(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}}attributeChangedCallback(e,t,i){this.#i(),this.#p(e,t,i)}#p(e,t,i){["id","class"].includes(e)||!n.observedAttributes.includes(e)&&this.constructor.observedAttributes.includes(e)||(null===i?this.nativeEl?.removeAttribute(e):this.nativeEl?.getAttribute(e)!==i&&this.nativeEl?.setAttribute(e,i))}connectedCallback(){this.#i(),this.#s||this.#d()}disconnectedCallback(){for(let e of(this.#o?.disconnect(),this.#o=void 0,this.#s&&(this.shadowRoot?.removeEventListener("slotchange",this.#s),this.#s=void 0),this.constructor.Events))this.shadowRoot?.removeEventListener(e,this,!0);this.#n.forEach(e=>e.remove()),this.#n.clear(),this.#r=null}}}function tk(e){let t="";for(let i in e){if(!ty.includes(i))continue;let a=e[i];""===a?t+=` ${i}`:t+=` ${i}="${a}"`}return t}let tA=tT(globalThis.HTMLElement??class{},{tag:"video"});tT(globalThis.HTMLElement??class{},{tag:"audio"});var tw,tS,tI,tL,tR,tC,tD,tO,tx,tM,tN,tP,tU,tB,t$=e=>{throw TypeError(e)},tH=(e,t,i)=>t.has(e)||t$("Cannot "+i),tj=(e,t,i)=>(tH(e,t,"read from private field"),i?i.call(e):t.get(e)),tW=(e,t,i)=>t.has(e)?t$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),tq=(e,t,i,a)=>(tH(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),tK=(e,t,i)=>(tH(e,t,"access private method"),i),tF=(()=>{try{return"0.30.5"}catch{}return"UNKNOWN"})(),tV=`
56<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" part="logo" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 1600 500"><g fill="#fff"><path d="M994.287 93.486c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31m0-93.486c-34.509 0-62.484 27.976-62.484 62.486v187.511c0 68.943-56.09 125.033-125.032 125.033s-125.03-56.09-125.03-125.033V62.486C681.741 27.976 653.765 0 619.256 0s-62.484 27.976-62.484 62.486v187.511C556.772 387.85 668.921 500 806.771 500c137.851 0 250.001-112.15 250.001-250.003V62.486c0-34.51-27.976-62.486-62.485-62.486M1537.51 468.511c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31m-275.883-218.509-143.33 143.329c-24.402 24.402-24.402 63.966 0 88.368 24.402 24.402 63.967 24.402 88.369 0l143.33-143.329 143.328 143.329c24.402 24.4 63.967 24.402 88.369 0 24.403-24.402 24.403-63.966.001-88.368l-143.33-143.329.001-.004 143.329-143.329c24.402-24.402 24.402-63.965 0-88.367s-63.967-24.402-88.369 0L1349.996 161.63 1206.667 18.302c-24.402-24.401-63.967-24.402-88.369 0s-24.402 63.965 0 88.367l143.329 143.329v.004ZM437.511 468.521c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31M461.426 4.759C438.078-4.913 411.2.432 393.33 18.303L249.999 161.632 106.669 18.303C88.798.432 61.922-4.913 38.573 4.759 15.224 14.43-.001 37.214-.001 62.488v375.026c0 34.51 27.977 62.486 62.487 62.486 34.51 0 62.486-27.976 62.486-62.486V213.341l80.843 80.844c24.404 24.402 63.965 24.402 88.369 0l80.843-80.844v224.173c0 34.51 27.976 62.486 62.486 62.486s62.486-27.976 62.486-62.486V62.488c0-25.274-15.224-48.058-38.573-57.729" style="fill-rule:nonzero"/></g></svg>`,tY={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",DISABLE_PSEUDO_ENDED:"disable-pseudo-ended",DRM_TOKEN:"drm-token",PLAYBACK_TOKEN:"playback-token",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",MAX_AUTO_RESOLUTION:"max-auto-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",ASSET_START_TIME:"asset-start-time",ASSET_END_TIME:"asset-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PLAYER_INIT_TIME:"player-init-time",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type",LOGO:"logo",CAP_RENDITION_TO_PLAYER_SIZE:"cap-rendition-to-player-size"},tG=Object.values(tY),tz="mux-video",tQ=class extends tA{constructor(){super(),tW(this,tN),tW(this,tw),tW(this,tS),tW(this,tI,{}),tW(this,tL,{}),tW(this,tR),tW(this,tC),tW(this,tD),tW(this,tO),tW(this,tx,""),tW(this,tM,e=>{var t;let i=eQ(this.nativeEl),a=null!=(t=this.metadata)?t:{};this.metadata={...i,...a},(null==i?void 0:i["com.mux.video.branding"])==="mux-free-plan"&&(tq(this,tx,"default"),this.updateLogo())}),tW(this,tU),tq(this,tS,eq())}static get NAME(){return tz}static get VERSION(){return tF}static get observedAttributes(){var e;return[...tG,...null!=(e=tA.observedAttributes)?e:[]]}static getLogoHTML(e){return e&&"false"!==e?"default"===e?tV:`<img part="logo" src="${e}" />`:""}static getTemplateHTML(e={}){var t;return`
57      ${tA.getTemplateHTML(e)}
58      <style>
59        :host {
60          position: relative;
61        }
62        slot[name="logo"] {
63          display: flex;
64          justify-content: end;
65          position: absolute;
66          top: 1rem;
67          right: 1rem;
68          opacity: 0;
69          transition: opacity 0.25s ease-in-out;
70          z-index: 1;
71        }
72        slot[name="logo"]:has([part="logo"]) {
73          opacity: 1;
74        }
75        slot[name="logo"] [part="logo"] {
76          width: 5rem;
77          pointer-events: none;
78          user-select: none;
79        }
80      </style>
81      <slot name="logo">
82        ${this.getLogoHTML(null!=(t=e[tY.LOGO])?t:"")}
83      </slot>
84    `}get preferCmcd(){var e;return null!=(e=this.getAttribute(tY.PREFER_CMCD))?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?_.includes(e)?this.setAttribute(tY.PREFER_CMCD,e):console.warn(`Invalid value for preferCmcd. Must be one of ${_.join()}`):this.removeAttribute(tY.PREFER_CMCD))}get playerInitTime(){return this.hasAttribute(tY.PLAYER_INIT_TIME)?+this.getAttribute(tY.PLAYER_INIT_TIME):tj(this,tS)}set playerInitTime(e){e!=this.playerInitTime&&(null==e?this.removeAttribute(tY.PLAYER_INIT_TIME):this.setAttribute(tY.PLAYER_INIT_TIME,`${+e}`))}get playerSoftwareName(){var e;return null!=(e=tj(this,tD))?e:tz}set playerSoftwareName(e){tq(this,tD,e)}get playerSoftwareVersion(){var e;return null!=(e=tj(this,tC))?e:tF}set playerSoftwareVersion(e){tq(this,tC,e)}
84get _hls(){var e;return null==(e=tj(this,tN,tP))?void 0:e.engine}get mux(){var e;return null==(e=this.nativeEl)?void 0:e.mux}get error(){var e;return null!=(e=ez(this.nativeEl))?e:null}get errorTranslator(){return tj(this,tO)}set errorTranslator(e){tq(this,tO,e)}get src(){return this.getAttribute("src")}set src(e){e!==this.src&&(null==e?this.removeAttribute("src"):this.setAttribute("src",e))}get type(){var e;return null!=(e=this.getAttribute(tY.TYPE))?e:void 0}set type(e){e!==this.type&&(e?this.setAttribute(tY.TYPE,e):this.removeAttribute(tY.TYPE))}get preload(){let e=this.getAttribute("preload");return""===e?"auto":["none","metadata","auto"].includes(e)?e:super.preload}set preload(e){e!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(e)?this.setAttribute("preload",e):this.removeAttribute("preload"))}get debug(){return null!=this.getAttribute(tY.DEBUG)}set debug(e){e!==this.debug&&(e?this.setAttribute(tY.DEBUG,""):this.removeAttribute(tY.DEBUG))}get disableTracking(){return this.hasAttribute(tY.DISABLE_TRACKING)}set disableTracking(e){e!==this.disableTracking&&this.toggleAttribute(tY.DISABLE_TRACKING,!!e)}get disableCookies(){return this.hasAttribute(tY.DISABLE_COOKIES)}set disableCookies(e){e!==this.disableCookies&&(e?this.setAttribute(tY.DISABLE_COOKIES,""):this.removeAttribute(tY.DISABLE_COOKIES))}get disablePseudoEnded(){return this.hasAttribute(tY.DISABLE_PSEUDO_ENDED)}set disablePseudoEnded(e){e!==this.disablePseudoEnded&&(e?this.setAttribute(tY.DISABLE_PSEUDO_ENDED,""):this.removeAttribute(tY.DISABLE_PSEUDO_ENDED))}get startTime(){let e=this.getAttribute(tY.START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set startTime(e){e!==this.startTime&&(null==e?this.removeAttribute(tY.START_TIME):this.setAttribute(tY.START_TIME,`${e}`))}get playbackId(){var e;return this.hasAttribute(tY.PLAYBACK_ID)?this.getAttribute(tY.PLAYBACK_ID):null!=(e=eY(this.src))?e:void 0}set playbackId(e){e!==this.playbackId&&(e?this.setAttribute(tY.PLAYBACK_ID,e):this.removeAttribute(tY.PLAYBACK_ID))}get maxResolution(){var e;return null!=(e=this.getAttribute(tY.MAX_RESOLUTION))?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(tY.MAX_RESOLUTION,e):this.removeAttribute(tY.MAX_RESOLUTION))}get minResolution(){var e;return null!=(e=this.getAttribute(tY.MIN_RESOLUTION))?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(tY.MIN_RESOLUTION,e):this.removeAttribute(tY.MIN_RESOLUTION))}get maxAutoResolution(){var e;return null!=(e=this.getAttribute(tY.MAX_AUTO_RESOLUTION))?e:void 0}set maxAutoResolution(e){null==e?this.removeAttribute(tY.MAX_AUTO_RESOLUTION):this.setAttribute(tY.MAX_AUTO_RESOLUTION,e)}get renditionOrder(){var e;return null!=(e=this.getAttribute(tY.RENDITION_ORDER))?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(tY.RENDITION_ORDER,e):this.removeAttribute(tY.RENDITION_ORDER))}get programStartTime(){let e=this.getAttribute(tY.PROGRAM_START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set programStartTime(e){null==e?this.removeAttribute(tY.PROGRAM_START_TIME):this.setAttribute(tY.PROGRAM_START_TIME,`${e}`)}get programEndTime(){let e=this.getAttribute(tY.PROGRAM_END_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set programEndTime(e){null==e?this.removeAttribute(tY.PROGRAM_END_TIME):this.setAttribute(tY.PROGRAM_END_TIME,`${e}`)}get assetStartTime(){let e=this.getAttribute(tY.ASSET_START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set assetStartTime(e){null==e?this.removeAttribute(tY.ASSET_START_TIME):this.setAttribute(tY.ASSET_START_TIME,`${e}`)}get assetEndTime(){let e=this.getAttribute(tY.ASSET_END_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set assetEndTime(e){null==e?this.removeAttribute(tY.ASSET_END_TIME):this.setAttribute(tY.ASSET_END_TIME,`${e}`)}get customDomain(){var e;return null!=(e=this.getAttribute(tY.CUSTOM_DOMAIN))?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(tY.CUSTOM_DOMAIN,e):this.removeAttribute(tY.CUSTOM_DOMAIN))}get capRenditionToPlayerSize(){var e;return(null==(e=this._hlsConfig)?void 0:e.capLevelToPlayerSize)!=null?this._hlsConfig.capLevelToPlayerSize:tj(this,tU)}set capRenditionToPlayerSize(e){tq(this,tU,e)}get drmToken(){var e;
84return null!=(e=this.getAttribute(tY.DRM_TOKEN))?e:void 0}set drmToken(e){e!==this.drmToken&&(e?this.setAttribute(tY.DRM_TOKEN,e):this.removeAttribute(tY.DRM_TOKEN))}get playbackToken(){var e,t,i,a;if(this.hasAttribute(tY.PLAYBACK_TOKEN))return null!=(e=this.getAttribute(tY.PLAYBACK_TOKEN))?e:void 0;if(this.hasAttribute(tY.PLAYBACK_ID)){let[,e]=S(null!=(t=this.playbackId)?t:"");return null!=(i=new URLSearchParams(e).get("token"))?i:void 0}if(this.src)return null!=(a=new URLSearchParams(this.src).get("token"))?a:void 0}set playbackToken(e){e!==this.playbackToken&&(e?this.setAttribute(tY.PLAYBACK_TOKEN,e):this.removeAttribute(tY.PLAYBACK_TOKEN))}get tokens(){let e=this.getAttribute(tY.PLAYBACK_TOKEN),t=this.getAttribute(tY.DRM_TOKEN);return{...tj(this,tL),...null!=e?{playback:e}:{},...null!=t?{drm:t}:{}}}set tokens(e){tq(this,tL,null!=e?e:{})}get ended(){return e8(this.nativeEl,this._hls)}get envKey(){var e;return null!=(e=this.getAttribute(tY.ENV_KEY))?e:void 0}set envKey(e){e!==this.envKey&&(e?this.setAttribute(tY.ENV_KEY,e):this.removeAttribute(tY.ENV_KEY))}get beaconCollectionDomain(){var e;return null!=(e=this.getAttribute(tY.BEACON_COLLECTION_DOMAIN))?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(tY.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(tY.BEACON_COLLECTION_DOMAIN))}get streamType(){var e;return null!=(e=this.getAttribute(tY.STREAM_TYPE))?e:eZ(this.nativeEl)}set streamType(e){e!==this.streamType&&(e?this.setAttribute(tY.STREAM_TYPE,e):this.removeAttribute(tY.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(tY.TARGET_LIVE_WINDOW)?+this.getAttribute(tY.TARGET_LIVE_WINDOW):eX(this.nativeEl)}set targetLiveWindow(e){e!=this.targetLiveWindow&&(null==e?this.removeAttribute(tY.TARGET_LIVE_WINDOW):this.setAttribute(tY.TARGET_LIVE_WINDOW,`${+e}`))}get liveEdgeStart(){var e,t;if(this.hasAttribute(tY.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:i}=this,a=null!=(e=this.nativeEl.seekable.end(0))?e:0;return Math.max(null!=(t=this.nativeEl.seekable.start(0))?t:0,a-i)}return e0(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(tY.LIVE_EDGE_OFFSET))return+this.getAttribute(tY.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){e!=this.liveEdgeOffset&&(null==e?this.removeAttribute(tY.LIVE_EDGE_OFFSET):this.setAttribute(tY.LIVE_EDGE_OFFSET,`${+e}`))}get seekable(){return eJ(this.nativeEl)}async addCuePoints(e){return Z(this.nativeEl,e)}get activeCuePoint(){return J(this.nativeEl)}get cuePoints(){return function(e,t={label:z}){let i=Y(e,t.label,"metadata");return null!=i&&i.cues?Array.from(i.cues,e=>X(e)):[]}(this.nativeEl)}async addChapters(e){return er(this.nativeEl,e)}get activeChapter(){return en(this.nativeEl)}get chapters(){return function(e,t={label:et}){var i;let a=Y(e,t.label,"chapters");return null!=(i=null==a?void 0:a.cues)&&i.length?Array.from(a.cues,e=>ea(e)):[]}(this.nativeEl)}getStartDate(){return function(e,t){if(t){let i=t.playingDate;if(null!=i)return new Date(i.getTime()-1e3*e.currentTime)}return"function"==typeof e.getStartDate?e.getStartDate():new Date(NaN)}(this.nativeEl,this._hls)}get currentPdt(){var e,t;return e=this.nativeEl,(t=this._hls)&&t.playingDate?t.playingDate:new Date("function"==typeof e.getStartDate?e.getStartDate().getTime()+1e3*e.currentTime:NaN)}get preferPlayback(){let e=this.getAttribute(tY.PREFER_PLAYBACK);if(e===y.MSE||e===y.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===y.MSE||e===y.NATIVE?this.setAttribute(tY.PREFER_PLAYBACK,e):this.removeAttribute(tY.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(e=>e.startsWith("metadata-")&&![tY.METADATA_URL].includes(e)).reduce((e,t)=>{let i=this.getAttribute(t);return null!=i&&(e[t.replace(/^metadata-/,"").replace(/-/g,"_")]=i),e},{}),...tj(this,tI)}}set metadata(e){tq(this,tI,null!=e?e:{}),this.mux&&this.mux.emit("hb",tj(this,tI))}get _hlsConfig(){return tj(this,tR)}set _hlsConfig(e){tq(this,tR,e)}get logo(){var e;return null!=(e=this.getAttribute(tY.LOGO))?e:tj(this,tx)}set logo(e){e?this.setAttribute(tY.LOGO,e):this.removeAttribute(tY.LOGO)}load(){e6(this,this.nativeEl,tj(this,tN,tP))}unload(){e7(this.nativeEl,tj(this,tN,tP),this)}attributeChangedCallback(e,t,i){var a,r;
84switch(tA.observedAttributes.includes(e)&&!["src","autoplay","preload"].includes(e)&&super.attributeChangedCallback(e,t,i),e){case tY.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=null!=i?i:void 0;break;case tY.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=null!=i?i:void 0;break;case"src":{let e=!!t,a=!!i;!e&&a?tK(this,tN,tB).call(this):e&&!a?this.unload():e&&a&&(this.unload(),tK(this,tN,tB).call(this));break}case"autoplay":if(i===t)break;null==(a=tj(this,tN,tP))||a.setAutoplay(this.autoplay);break;case"preload":if(i===t)break;null==(r=tj(this,tN,tP))||r.setPreload(i);break;case tY.PLAYBACK_ID:case tY.CUSTOM_DOMAIN:case tY.MAX_RESOLUTION:case tY.MIN_RESOLUTION:case tY.RENDITION_ORDER:case tY.PROGRAM_START_TIME:case tY.PROGRAM_END_TIME:case tY.ASSET_START_TIME:case tY.ASSET_END_TIME:case tY.PLAYBACK_TOKEN:this.src=eF(this);break;case tY.DEBUG:{let e=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=e);break}case tY.METADATA_URL:i&&fetch(i).then(e=>e.json()).then(e=>this.metadata=e).catch(()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${i}!`));break;case tY.STREAM_TYPE:(null==i||i!==t)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case tY.TARGET_LIVE_WINDOW:(null==i||i!==t)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}));break;case tY.LOGO:(null==i||i!==t)&&this.updateLogo();break;case tY.DISABLE_TRACKING:if(null==i||i!==t){let e=this.currentTime,t=this.paused;this.unload(),tK(this,tN,tB).call(this).then(()=>{this.currentTime=e,t||this.play()})}break;case tY.DISABLE_COOKIES:(null==i||i!==t)&&this.disableCookies&&document.cookie.split(";").forEach(e=>{e.trim().startsWith("muxData")&&(document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+new Date().toUTCString()+";path=/"))});break;case tY.CAP_RENDITION_TO_PLAYER_SIZE:(null==i||i!==t)&&(this.capRenditionToPlayerSize=null!=i||void 0)}}updateLogo(){if(!this.shadowRoot)return;let e=this.shadowRoot.querySelector('slot[name="logo"]');if(!e)return;let t=this.constructor.getLogoHTML(tj(this,tx)||this.logo);e.innerHTML=t}connectedCallback(){var e,t;null==(e=super.connectedCallback)||e.call(this),null==(t=this.nativeEl)||t.addEventListener("muxmetadata",tj(this,tM)),this.nativeEl&&this.src&&!tj(this,tN,tP)&&tK(this,tN,tB).call(this)}disconnectedCallback(){var e,t;null==(e=this.nativeEl)||e.removeEventListener("muxmetadata",tj(this,tM)),this.unload(),null==(t=super.disconnectedCallback)||t.call(this)}handleEvent(e){e.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(e.type,{composed:!0,detail:e.detail}))}};tw=new WeakMap,tS=new WeakMap,tI=new WeakMap,tL=new WeakMap,tR=new WeakMap,tC=new WeakMap,tD=new WeakMap,tO=new WeakMap,tx=new WeakMap,tM=new WeakMap,tN=new WeakSet,tP=function(){return e1(this.nativeEl)},tU=new WeakMap,tB=async function(){tj(this,tw)||(await tq(this,tw,Promise.resolve()),tq(this,tw,null),this.load())};let tZ=new WeakMap;class tX extends Error{}class tJ extends Error{}let t0=["application/x-mpegURL","application/vnd.apple.mpegurl","audio/mpegurl"];function t1(){return globalThis.cast?.framework?.CastContext.getInstance()}function t2(){return t1()?.getCurrentSession()}function t3(){return t2()?.getSessionObj().media[0]}function t4(e){return t1().setOptions({...t5(),...e})}function t5(){return{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}}async function t9(e){try{let t=(await fetch(e,{method:"HEAD"})).headers.get("Content-Type");return t0.some(e=>t===e)}catch(e){return console.error("Error while trying to get the Content-Type of the manifest",e),!1}}async function t8(e){try{let t=await (await fetch(e)).text(),i=t,a=function(e){let t=e.split("\n"),i=[];for(let e=0;e<t.length;e++)if(t[e].trim().startsWith("#EXT-X-STREAM-INF")){let a=t[e+1]?t[e+1].trim():"";a&&!a.startsWith("#")&&i.push(a)}return i}(t);if(a.length>0){let t=new URL(a[0],e).toString();i=await (await fetch(t)).text()}let r=i.split("\n").find(e=>!e.trim().startsWith("#")&&""!==e.trim());return function(e){if(!e)return;let t=e.match(/\.([a-zA-Z0-9]+)(?:\?.*)?$/);return t?t[1]:null}(r)}catch(e){console.error("Error while trying to parse the manifest playlist",e);return}}let t6=new(globalThis.WeakRef?class extends Set{add(e){super.add(new WeakRef(e))}forEach(e){super.forEach(t=>{let i=t.deref();i&&e(i)})}}:Set),t7=new WeakSet;ix=()=>
84{if(!globalThis.chrome?.cast?.isAvailable){console.debug("chrome.cast.isAvailable",globalThis.chrome?.cast?.isAvailable);return}a||(a=cast.framework,t1().addEventListener(a.CastContextEventType.CAST_STATE_CHANGED,e=>{t6.forEach(t=>tZ.get(t).onCastStateChanged?.(e))}),t1().addEventListener(a.CastContextEventType.SESSION_STATE_CHANGED,e=>{t6.forEach(t=>tZ.get(t).onSessionStateChanged?.(e))}),t6.forEach(e=>tZ.get(e).init?.()))},globalThis.chrome?.cast?.isAvailable?globalThis.cast?.framework?ix():customElements.whenDefined("google-cast-button").then(ix):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(ix)};let ie=0;class it extends EventTarget{#m;#a;#v;#f;#b="disconnected";#E=!1;#y=new Set;#g=new WeakMap;#_=()=>this.#T();constructor(e){super(),this.#m=e,t6.add(this),tZ.set(this,{init:()=>this.#i(),onCastStateChanged:()=>this.#k(),onSessionStateChanged:()=>this.#A(),getCastPlayer:()=>this.#w}),this.#i()}destroy(){this.#m?.textTracks?.removeEventListener("change",this.#_),this.#f&&this.#v?.controller&&Object.entries(this.#f).forEach(([e,t])=>{this.#v.controller.removeEventListener(e,t)}),this.#m&&t7.delete(this.#m),this.#a=!1}get #w(){if(t7.has(this.#m))return this.#v}get state(){return this.#b}async watchAvailability(e){if(this.#m.disableRemotePlayback)throw new tX("disableRemotePlayback attribute is present.");return this.#g.set(e,++ie),this.#y.add(e),queueMicrotask(()=>e(this.#S())),ie}async cancelWatchAvailability(e){if(this.#m.disableRemotePlayback)throw new tX("disableRemotePlayback attribute is present.");e?this.#y.delete(e):this.#y.clear()}async prompt(){if(this.#m.disableRemotePlayback)throw new tX("disableRemotePlayback attribute is present.");if(!globalThis.chrome?.cast?.isAvailable)throw new tJ("The RemotePlayback API is disabled on this platform.");let e=t7.has(this.#m);t7.add(this.#m),t4(this.#m.castOptions),Object.entries(this.#f).forEach(([e,t])=>{this.#v.controller.addEventListener(e,t)});try{await t1().requestSession()}catch(t){if(e||t7.delete(this.#m),"cancel"===t)return;throw Error(t)}tZ.get(this.#m)?.loadOnPrompt?.()}#I(){t7.has(this.#m)&&(Object.entries(this.#f).forEach(([e,t])=>{this.#v.controller.removeEventListener(e,t)}),t7.delete(this.#m),this.#m.muted=this.#v.isMuted,this.#m.currentTime=this.#v.savedPlayerState.currentTime,!1===this.#v.savedPlayerState.isPau
84sed&&this.#m.play())}#S(){let e=t1()?.getCastState();return e&&"NO_DEVICES_AVAILABLE"!==e}#k(){let e=t1().getCastState();if(t7.has(this.#m)&&"CONNECTING"===e&&(this.#b="connecting",this.dispatchEvent(new Event("connecting"))),!this.#E&&e?.includes("CONNECT"))for(let e of(this.#E=!0,this.#y))e(!0);else if(this.#E&&(!e||"NO_DEVICES_AVAILABLE"===e))for(let e of(this.#E=!1,this.#y))e(!1)}async #A(){let{SESSION_RESUMED:e}=a.SessionState;if(t1().getSessionState()===e&&this.#m.castSrc===t3()?.media.contentId){t7.add(this.#m),Object.entries(this.#f).forEach(([e,t])=>{this.#v.controller.addEventListener(e,t)});try{var t;await (t=new chrome.cast.media.GetStatusRequest,new Promise((e,i)=>{t3().getStatus(t,e,i)}))}catch(e){console.error(e)}this.#f[a.RemotePlayerEventType.IS_PAUSED_CHANGED](),this.#f[a.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}}#i(){a&&!this.#a&&(this.#a=!0,t4(this.#m.castOptions),this.#m.textTracks.addEventListener("change",this.#_),this.#k(),this.#v=new a.RemotePlayer,new a.RemotePlayerController(this.#v),this.#f={[a.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:e})=>{!0===e?(this.#b="connected",this.dispatchEvent(new Event("connect"))):(this.#I(),this.#b="disconnected",this.dispatchEvent(new Event("disconnect")))},[a.RemotePlayerEventType.DURATION_CHANGED]:()=>{this.#m.dispatchEvent(new Event("durationchange"))},[a.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{this.#m.dispatchEvent(new Event("volumechange"))},[a.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{this.#m.dispatchEvent(new Event("volumechange"))},[a.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{this.#w?.isMediaLoaded&&this.#m.dispatchEvent(new Event("timeupdate"))},[a.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{this.#m.dispatchEvent(new Event("resize"))},[a.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{this.#m.dispatchEvent(new Event(this.paused?"pause":"play"))},[a.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{this.#w?.playerState!==chrome.cast.media.PlayerState.PAUSED&&this.#m.dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[this.#w?.playerState]))},[a.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{this.#w?.isMediaLoaded&&(await Promise.resolve(),this.#L())}})}#L(){this.#T()}async #T(){let e;if(!this.#w)return;let t=(this.#v.mediaInfo?.tracks??[]).filter(({type:e})=>e===chrome.cast.media.TrackType.TEXT),i=[...this.#m.textTracks].filter(({kind:e})=>"subtitles"===e||"captions"===e),a=t.map(({language:e,name:t,trackId:a})=>{let{mode:r}=i.find(i=>i.language===e&&i.label===t)??{};return!!r&&{mode:r,trackId:a}}).filter(Boolean),r=a.filter(({mode:e})=>"showing"!==e).map(({trackId:e})=>e),n=a.find(({mode:e})=>"showing"===e),o=t2()?.getSessionObj().media[0]?.activeTrackIds??[],s=o;if(o.length&&(s=s.filter(e=>!r.includes(e))),n?.trackId&&(s=[...s,n.trackId]),e=s=[...new Set(s)],!(o.length===e.length&&o.every(t=>e.includes(t))))try{let e=new chrome.cast.media.EditTracksInfoRequest(s);await new Promise((t,i)=>{t3().editTracksInfo(e,t,i)})}catch(e){console.error(e)}}}let ii=e=>class extends e{static observedAttributes=[...e.observedAttributes??[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"];#R={paused:!1};#C=t5();#D;#O;get remote(){if(this.#O)return this.#O;if(globalThis.chrome){if(!this.isConnected)return;return this.disableRemotePlayback||function(){let e="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if(globalThis.chrome?.cast||document.querySelector(`script[src="${e}"]`))return;let t=document.createElement("script");t.src=e,document.head.append(t)}(),tZ.set(this,{loadOnPrompt:()=>this.#x()}),this.#O=new it(this)}return super.remote}get #w(){return tZ.get(this.remote)?.getCastPlayer?.()}disconnectedCallback(){this.#O?.destroy(),this.#O=null,tZ.delete(this),super.disconnectedCallback?.()}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),"cast-receiver"===e&&i){this.#C.receiverApplicationId=i;return}if(this.#w)switch(e){case"cast-stream-type":case"cast-src":this.load()}}async #x(){this.#R.paused=super.paused,super.pause(),this.muted=super.muted;try{await this.load()}catch(e){console.error(e)}}async load(){if(!this.#w)return super.load();let e=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType);e.customData=this.castCustomData;let t=[...this.querySelectorAll("track")].filter(({kind:e,src:t})=>t&&("subtitles"===e||"captions"===e)),i=[],a=0;if(t.length&&(e.tracks=t.map(e=>{let t=++a;0===i.length&&"showing"===e.track.mode&&i.push(t);let r=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);return r.trackContentId=e.src,r.trackContentType="text/vtt",r.subtype="captions"===e.kind?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,r.name=e.label,r.language=e.srclang,r})),"live"===this.castStreamType?e.streamType=chrome.cast.media.StreamType.LIVE:e.streamType=chrome.cast.media.StreamType.BUFFERED,e.metadata=new chrome.cast.media.GenericMediaMetadata,e.metadata.title=this.title,e.metadata.images=[{url:this.poster}],t9(this.castSrc)){let t=await t8(this.castSrc);t?.includes("m4s")||t?.includes("mp4")?(e.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.FMP4,e.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.FMP4):t?.includes("ts")&&(e.hlsSegmentFormat=chrome.cast.media.HlsSegmentFormat.TS,e.hlsVideoSegmentFormat=chrome.cast.media.HlsVideoSegmentFormat.TS)}let r=new chrome.cast.media.LoadRequest(e);r.currentTime=super.currentTime??0,r.autoplay=!this.#R.paused,r.activeTrackIds=i,await t2()?.loadMedia(r),this.dispatchEvent(new Event("volumechange"))}play(){if(this.#w){this.#w.isPaused&&this.#w.controller?.playOrPause();return}return super.play()}pause(){if(this.#w){this.#w.isPaused||this.#w.controller?.playOrPause();return}super.pause()}get castOptions(){return this.#C}get castReceiver(){return this.getAttribute("cast-receiver")??void 0}set castReceiver(e){this.castReceiver!=e&&this.setAttribute("cast-receiver",`${e}`)}get castSrc(){return this.getAttribute("cast-src")??this.querySelector("source")?.src??this.currentSrc}set castSrc(e){this.castSrc!=e&&this.setAttribute("cast-src",`${e}`)}get castContentType(){return this.getAttribute("cast-content-type")??void 0}set castContentType(e){this.setAttribute("cast-content-type",`${e}`)}get castStreamType(){return this.getAttribute("cast-stream-type")??this.streamType??void 0}set castStreamType(e){this.setAttribute("cast-stream-type",`${e}`)}get castCustomData(){return this.#D}set castCustomData(e){let t=typeof e;if(!["object","undefined"].includes(t)){console.error(`castCustomData must be nullish or an object but value was of type ${t}`);return}this.#D=e}get readyState(){if(this.#w)switch(this.#w.playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return this.#w?this.#w.isPaused:super.paused}get muted(){return this.#w?this.#w?.isMuted:super.muted}set muted(e){if(this.#w){(e&&!this.#w.isMuted||!e&&this.#w.isMuted)&&this.#w.controller?.muteOr
84Unmute();return}super.muted=e}get volume(){return this.#w?this.#w?.volumeLevel??1:super.volume}set volume(e){if(this.#w){this.#w.volumeLevel=+e,this.#w.controller?.setVolumeLevel();return}super.volume=e}get duration(){return this.#w&&this.#w?.isMediaLoaded?this.#w?.duration??NaN:super.duration}get currentTime(){return this.#w&&this.#w?.isMediaLoaded?this.#w?.currentTime??0:super.currentTime}set currentTime(e){if(this.#w){this.#w.currentTime=e,this.#w.controller?.seek();return}super.currentTime=e}};class ia extends Event{track;constructor(e,t){super(e),this.track=t.track}}let ir=new WeakMap;function io(e){var t;let i;return ir.get(e)??(t={},(i=ir.get(e))||ir.set(e,i={}),Object.assign(i,t))}function is(e,t){let i=e.videoTracks;io(t).media=new WeakRef(e),io(t).renditionSet||(io(t).renditionSet=new Set);let a=io(i).trackSet;a.add(t);let r=a.size-1;r in id.prototype||Object.defineProperty(id.prototype,r,{get(){return[...io(this).trackSet][r]}}),queueMicrotask(()=>{i.dispatchEvent(new ia("addtrack",{track:t}))})}function il(e){let t=io(e).media?.deref()?.videoTracks;t&&(io(t).trackSet.delete(e),queueMicrotask(()=>{t.dispatchEvent(new ia("removetrack",{track:e}))}))}class id extends EventTarget{#M;#N;#P;constructor(){super(),io(this).trackSet=new Set}get #U(){return io(this).trackSet}[Symbol.iterator](){return this.#U.values()}get length(){return this.#U.size}getTrackById(e){return[...this.#U].find(t=>t.id===e)??null}get selectedIndex(){return[...this.#U].findIndex(e=>e.selected)}get onaddtrack(){return this.#M}set onaddtrack(e){this.#M&&(this.removeEventListener("addtrack",this.#M),this.#M=void 0),"function"==typeof e&&(this.#M=e,this.addEventListener("addtrack",e))}get onremovetrack(){return this.#N}set onremovetrack(e){this.#N&&(this.removeEventListener("removetrack",this.#N),this.#N=void 0),"function"==typeof e&&(this.#N=e,this.addEventListener("removetrack",e))}get onchange(){return this.#P}set onchange(e){this.#P&&(this.removeEventListener("change",this.#P),this.#P=void 0),"function"==typeof e&&(this.#P=e,this.addEventListener("change",e))}}class iu extends Event{rendition;constructor(e,t){super(e),this.rendition=t.rendition}}function ic(e){let t=io(e).media?.deref();return t?[...t.videoTracks].filter(e=>e.selected).flatMap(e=>[...io(e).renditionSet]):[]}class ih extends EventTarget{#B;#$;#P;[Symbol.iterator](){return ic(this).values()}get length(){return ic(this).length}getRenditionById(e){return ic(this).find(t=>`${t.id}`==`${e}`)??null}get selectedIndex(){return ic(this).findIndex(e=>e.selected)}set selectedIndex(e){for(let[t,i]of ic(this).entries())i.selected=t===e}get onaddrendition(){return this.#B}set onaddrendition(e){this.#B&&(this.removeEventListener("addrendition",this.#B),this.#B=void 0),"function"==typeof e&&(this.#B=e,this.addEventListener("addrendition",e))}get onremoverendition(){return this.#$}set onremoverendition(e){this.#$&&(this.removeEventListener("removerendition",this.#$),this.#$=void 0),"function"==typeof e&&(this.#$=e,this.addEventListener("removerendition",e))}get onchange(){return this.#P}set onchange(e){this.#P&&(this.removeEventListener("change",this.#P),this.#P=void 0),"function"==typeof e&&(this.#P=e,this.addEventListener("change",e))}}class ip{src;id;width;height;bitrate;frameRate;codec;#H=!1;get selected(){return this.#H}set selected(e){this.#H!==e&&(this.#H=e,function(e){let t=io(e).media?.deref()?.videoRenditions;t&&!io(t).changeRequested&&(io(t).changeRequested=!0,queueMicrotask(()=>{delete io(t).changeRequested,io(e).track.selected&&t.dispatchEvent(new Event("change"))}))}(this))}}class im{id;kind;label="";language="";sourceBuffer;#H=!1;addRendition(e,t,i,a,r,n){let o=new ip;return o.src=e,o.width=t,o.height=i,o.frameRate=n,o.bitrate=r,o.codec=a,!function(e,t){let i=io(e).media?.deref()?.videoRenditions;io(t).media=io(e).media,io(t).track=e;let a=io(e).renditionSet;a.add(t);let r=a.size-1;r in ih.prototype||Object.defineProperty(ih.prototype,r,{get(){return ic(this)[r]}}),queueMicrotask(()=>{i&&e.selected&&i.dispatchEvent(new iu("addrendition",{rendition:t}))})}(this,o),o}removeRendition(e){!function(e){let t=io(e).media?.deref()?.videoRenditions,i=io(e).track;io(i).renditionSet.delete(e),queueMicrotask(()=>{let i=io(e).track;t&&i.selected&&t.dispatchEvent(new iu("removerendition",{rendition:e}))})}(e)}get selected(){return this.#H}set selected(e){this.#H!==e&&(this.#H=e,!0===e&&function(e){let t=io(e).media?.deref()?.videoTracks??[],i=!1;for(let a of t)a!==e&&(a.selected=!1,i=!0);if(i){if(io(t).changeRequested)return;io(t).changeRequested=!0,queueMicrotask(()=>{delete io(t).changeRequested,t.dispatchEvent(new Event("change"))})}}(this))}}function iv(e){let t=io(e).media?.deref();return t?[...t.audioTracks].filter(e=>e.enabled).flatMap(e=>
84[...io(e).renditionSet]):[]}class ib extends EventTarget{#B;#$;#P;[Symbol.iterator](){return iv(this).values()}get length(){return iv(this).length}getRenditionById(e){return iv(this).find(t=>`${t.id}`==`${e}`)??null}get selectedIndex(){return iv(this).findIndex(e=>e.selected)}set selectedIndex(e){for(let[t,i]of iv(this).entries())i.selected=t===e}get onaddrendition(){return this.#B}set onaddrendition(e){this.#B&&(this.removeEventListener("addrendition",this.#B),this.#B=void 0),"function"==typeof e&&(this.#B=e,this.addEventListener("addrendition",e))}get onremoverendition(){return this.#$}set onremoverendition(e){this.#$&&(this.removeEventListener("removerendition",this.#$),this.#$=void 0),"function"==typeof e&&(this.#$=e,this.addEventListener("removerendition",e))}get onchange(){return this.#P}set onchange(e){this.#P&&(this.removeEventListener("change",this.#P),this.#P=void 0),"function"==typeof e&&(this.#P=e,this.addEventListener("change",e))}}class iE{src;id;bitrate;codec;#H=!1;get selected(){return this.#H}set selected(e){this.#H!==e&&(this.#H=e,function(e){let t=io(e).media?.deref()?.audioRenditions;t&&!io(t).changeRequested&&(io(t).changeRequested=!0,queueMicrotask(()=>{delete io(t).changeRequested,io(e).track.enabled&&t.dispatchEvent(new Event("change"))}))}(this))}}function iy(e,t){let i=e.audioTracks;io(t).media=new WeakRef(e),io(t).renditionSet||(io(t).renditionSet=new Set);let a=io(i).trackSet;a.add(t);let r=a.size-1;r in i_.prototype||Object.defineProperty(i_.prototype,r,{get(){return[...io(this).trackSet][r]}}),queueMicrotask(()=>{i.dispatchEvent(new ia("addtrack",{track:t}))})}function ig(e){let t=io(e).media?.deref()?.audioTracks;t&&(io(t).trackSet.delete(e),queueMicrotask(()=>{t.dispatchEvent(new ia("removetrack",{track:e}))}))}class i_ extends EventTarget{#M;#N;#P;constructor(){super(),io(this).trackSet=new Set}get #U(){return io(this).trackSet}[Symbol.iterator](){return this.#U.values()}get length(){return this.#U.size}getTrackById(e){return[...this.#U].find(t=>t.id===e)??null}get onaddtrack(){return this.#M}set onaddtrack(e){this.#M&&(this.removeEventListener("addtrack",this.#M),this.#M=void 0),"function"==typeof e&&(this.#M=e,this.addEventListener("addtrack",e))}get onremovetrack(){return this.#N}set onremovetrack(e){this.#N&&(this.removeEventListener("removetrack",this.#N),this.#N=void 0),"function"==typeof e&&(this.#N=e,this.addEventListener("removetrack",e))}get onchange(){return this.#P}set onchange(e){this.#P&&(this.removeEventListener("change",this.#P),this.#P=void 0),"function"==typeof e&&(this.#P=e,this.addEventListener("change",e))}}class iT{id;kind;label="";language="";sourceBuffer;#j=!1;addRendition(e,t,i){let a=new iE;return a.src=e,a.codec=t,a.bitrate=i,!function(e,t){let i=io(e).media?.deref()?.audioRenditions;io(t).media=io(e).media,io(t).track=e;let a=io(e).renditionSet;a.add(t);let r=a.size-1;r in ib.prototype||Object.defineProperty(ib.prototype,r,{get(){return iv(this)[r]}}),queueMicrotask(()=>{i&&e.enabled&&i.dispatchEvent(new iu("addrendition",{rendition:t}))})}(this,a),a}removeRendition(e){!function(e){let t=io(e).media?.deref()?.audioRenditions,i=io(e).track;io(i).renditionSet.delete(e),queueMicrotask(()=>{let i=io(e).track;t&&i.enabled&&t.dispatchEvent(new iu("removerendition",{rendition:e}))})}(e)}get enabled(){return this.#j}set enabled(e){this.#j!==e&&(this.#j=e,function(e){let t=io(e).media?.deref()?.audioTracks;t&&!io(t).changeRequested&&(io(t).changeRequested=!0,queueMicrotask(()=>{delete io(t).changeRequested,t.dispatchEvent(new Event("change"))}))}(this))}}let ik=iS(globalThis.HTMLMediaElement,"video"),iA=iS(globalThis.HTMLMediaElement,"audio");function iw(e){if(!e?.prototype)return e;let t=iS(e,"video");(!t||`${t}`.includes("[native code]"))&&Object.defineProperty(e.prototype,"videoTracks",{get(){return function(e){let t=io(e).videoTracks;if(!t&&(t=new id,io(e).videoTracks=t,ik)){let i=ik.call(e.nativeEl??e);for(let t of i)is(e,t);i.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),i.addEventListener("addtrack",a=>{if([...t].some(e=>e instanceof im)){for(let e of i)il(e);return}is(e,a.track)}),i.addEventListener("removetrack",e=>{il(e.track)})}return t}(this)}});let i=iS(e,"audio");(!i||`${i}`.includes("[native code]"))&&Object.defineProperty(e.prototype,"audioTracks",{get(){return function(e){let t=io(e).audioTracks;
84if(!t&&(t=new i_,io(e).audioTracks=t,iA)){let i=iA.call(e.nativeEl??e);for(let t of i)iy(e,t);i.addEventListener("change",()=>{t.dispatchEvent(new Event("change"))}),i.addEventListener("addtrack",a=>{if([...t].some(e=>e instanceof iT)){for(let e of i)ig(e);return}iy(e,a.track)}),i.addEventListener("removetrack",e=>{ig(e.track)})}return t}(this)}}),"addVideoTrack"in e.prototype||(e.prototype.addVideoTrack=function(e,t="",i=""){let a=new im;return a.kind=e,a.label=t,a.language=i,is(this,a),a}),"removeVideoTrack"in e.prototype||(e.prototype.removeVideoTrack=il),"addAudioTrack"in e.prototype||(e.prototype.addAudioTrack=function(e,t="",i=""){let a=new iT;return a.kind=e,a.label=t,a.language=i,iy(this,a),a}),"removeAudioTrack"in e.prototype||(e.prototype.removeAudioTrack=ig),"videoRenditions"in e.prototype||Object.defineProperty(e.prototype,"videoRenditions",{get(){return a(this)}});let a=e=>{let t=io(e).videoRenditions;return t||(io(t=new ih).media=new WeakRef(e),io(e).videoRenditions=t),t};"audioRenditions"in e.prototype||Object.defineProperty(e.prototype,"audioRenditions",{get(){return r(this)}});let r=e=>{let t=io(e).audioRenditions;return t||(io(t=new ib).media=new WeakRef(e),io(e).audioRenditions=t),t};return e}function iS(e,t){if(e?.prototype)return Object.getOwnPropertyDescriptor(e.prototype,`${t}Tracks`)?.get}var iI=e=>{throw TypeError(e)},iL=(e,t,i)=>t.has(e)||iI("Cannot "+i),iR=(e,t,i)=>(iL(e,t,"read from private field"),i?i.call(e):t.get(e)),iC=(e,t,i)=>t.has(e)?iI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),iD=(e,t,i,a)=>(iL(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),iO=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends iO{}globalThis.DocumentFragment=e}var ix,iM,iN=class extends iO{},iP=class{constructor(e,t={}){iC(this,iM),iD(this,iM,null==t?void 0:t.detail)}get detail(){return iR(this,iM)}initCustomEvent(){}};iM=new WeakMap;var iU={document:{createElement:function(e,t){return new iN}},DocumentFragment,customElements:{get(e){},define(e,t,i){},getName:e=>null,upgrade(e){},whenDefined:e=>Promise.resolve(iN)},CustomEvent:iP,EventTarget:iO,HTMLElement:iN,HTMLVideoElement:class extends iO{}},iB="undefined"==typeof window||void 0===globalThis.customElements,i$=iB?iU:globalThis;iB&&iU.document;var iH,ij=class extends ii(iw(tQ)){constructor(){super(...arguments),iC(this,iH)}get autoplay(){let e=this.getAttribute("autoplay");return null!==e&&(""===e||e)}set autoplay(e){e!==this.autoplay&&(e?this.setAttribute("autoplay","string"==typeof e?e:""):this.removeAttribute("autoplay"))}get muxCastCustomData(){return{mux:{playbackId:this.playbackId,minResolution:this.minResolution,maxResolution:this.maxResolution,renditionOrder:this.renditionOrder,customDomain:this.customDomain,tokens:{drm:this.drmToken},envKey:this.envKey,metadata:this.metadata,disableCookies:this.disableCookies,disableTracking:this.disableTracking,beaconCollectionDomain:this.beaconCollectionDomain,startTime:this.startTime,preferCmcd:this.preferCmcd}}}get castCustomData(){var e;return null!=(e=iR(this,iH))?e:this.muxCastCustomData}set castCustomData(e){iD(this,iH,e)}};iH=new WeakMap,i$.customElements.get("mux-video")||(i$.customElements.define("mux-video",ij),i$.MuxVideoElement=ij);let iW={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_LOOP_REQUEST:"medialooprequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediash
84owsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},iq={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},iK={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_BUFFERED:"mediaBuffered",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_CHAPTERS_CUES:"mediaChaptersCues",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_ENDED:"mediaEnded",MEDIA_ERROR:"mediaError",MEDIA_ERROR_CODE:"mediaErrorCode",MEDIA_ERROR_MESSAGE:"mediaErrorMessage",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_HAS_P
84LAYED:"mediaHasPlayed",MEDIA_HEIGHT:"mediaHeight",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_IS_PIP:"mediaIsPip",MEDIA_LOADING:"mediaLoading",MEDIA_MUTED:"mediaMuted",MEDIA_LOOP:"mediaLoop",MEDIA_PAUSED:"mediaPaused",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_LANG:"mediaLang",MEDIA_WIDTH:"mediaWidth"},iF=Object.entries(iK),iV=iF.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{}),iY=iF.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(iY).reduce((e,[t,i])=>{let a=iV[t];return a&&(e[i]=a),e},{userinactivechange:"userinactive"});let iG=Object.entries(iV).reduce((e,[t,i])=>{let a=iY[t];return a&&(e[i]=a),e},{userinactive:"userinactivechange"}),iz={SUBTITLES:"subtitles",CAPTIONS:"captions",CHAPTERS:"chapters",METADATA:"metadata"},iQ={DISABLED:"disabled",SHOWING:"showing"},iZ={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},iX={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},iJ={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},i0={FULLSCREEN:"fullscreen"};function i1(e){if(e){let{id:t,width:i,height:a}=e;return[t,i,a].filter(e=>null!=e).join(":")}}function i2(e){if(e){let[t,i,a]=e.split(":");return{id:t,width:+i,height:+a}}}function i3(e){if(e){let{id:t,kind:i,language:a,label:r}=e;return[t,i,a,r].filter(e=>null!=e).join(":")}}function i4(e){if(e){let[t,i,a,r]=e.split(":");return{id:t,kind:i,language:a,label:r}}}function i5(e){return"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}function i9(e){return"string"==typeof e&&!isNaN(e)&&!isNaN(parseFloat(e))}let i8=e=>new Promise(t=>setTimeout(t,e)),i6={en:{"Start airplay":"Start airplay","Stop airplay":"Stop airplay",Audio:"Audio",Captions:"Captions","Enable captions":"Enable captions","Disable captions":"Disable captions","Start casting":"Start casting","Stop casting":"Stop casting","Enter fullscreen mode":"Enter fullscreen mode","Exit fullscreen mode":"Exit fullscreen mode",Mute:"Mute",Unmute:"Unmute",Loop:"Loop","Enter picture in picture mode":"Enter picture in picture mode","Exit picture in picture mode":"Exit picture in picture mode",Play:"Play",Pause:"Pause","Playback rate":"Playback rate","Playback rate {playbackRate}":"Playback rate {playbackRate}",Quality:"Quality","Seek backward":"Seek backward","Seek forward":"Seek forward",Settings:"Settings",Auto:"Auto","audio player":"audio player","video player":"video player",volume:"volume",seek:"seek","closed captions":"closed captions","current playback rate":"current playback rate","playback time":"playback time","media loading":"media loading",settings:"settings","audio tracks":"audio tracks",quality:"quality",play:"play",pause:"pause",mute:"mute",unmute:"unmute","chapter: {chapterName}":"chapter: {chapterName}",live:"live",Off:"Off","start airplay":"start airplay","stop airplay":"stop airplay","start casting":"start casting","stop casting":"stop casting","enter fullscreen mode":"enter fullscreen mode","exit fullscreen mode":"exit fullscreen mode","enter picture in picture mode":"enter picture in picture mode","exit picture in picture mode":"exit picture in picture mode","seek to live":"seek to live","playing live":"playing live","seek back {seekOffset} seconds":"seek back {seekOffset} seconds","seek forward {seekOffset} seconds":"seek forward {seekOffset} seconds","Network Error":"Network Error","Decode Error":"Decode Error","S
84ource Not Supported":"Source Not Supported","Encryption Error":"Encryption Error","A network error caused the media download to fail.":"A network error caused the media download to fail.","A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.":"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.","An unsupported error occurred. The server or network failed, or your browser does not support this format.":"An unsupported error occurred. The server or network failed, or your browser does not support this format.","The media is encrypted and there are no keys to decrypt it.":"The media is encrypted and there are no keys to decrypt it.",hour:"hour",hours:"hours",minute:"minute",minutes:"minutes",second:"second",seconds:"seconds","{time} remaining":"{time} remaining","{currentTime} of {totalTime}":"{currentTime} of {totalTime}","video not loaded, unknown time.":"video not loaded, unknown time."}},i7=(null==(d_=globalThis.navigator)?void 0:d_.language)||"en",ae=e=>{i7=e},at=e=>{var t,i,a;let[r]=i7.split("-");return(null==(t=i6[i7])?void 0:t[e])||(null==(i=i6[r])?void 0:i[e])||(null==(a=i6.en)?void 0:a[e])||e},ai=(e,t={})=>at(e).replace(/\{(\w+)\}/g,(e,i)=>i in t?String(t[i]):`{${i}}`),aa=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],ar=(e,t)=>{let i=1===e?ai(aa[t].singular):ai(aa[t].plural);return`${e} ${i}`},an=e=>{if(!i5(e))return"";let t=Math.abs(e),i=t!==e,a=new Date(0,0,0,0,0,t,0),r=[a.getHours(),a.getMinutes(),a.getSeconds()].map((e,t)=>e&&ar(e,t)).filter(e=>e).join(", ");return i?ai("{time} remaining",{time:r}):r};function ao(e,t){let i=!1;e<0&&(i=!0,e=0-e);let a=Math.floor((e=e<0?0:e)%60),r=Math.floor(e/60%60),n=Math.floor(e/3600);return(isNaN(e)||e===1/0)&&(n=r=a="0"),r=(((n=n>0||Math.floor(t/3600)>0?n+":":"")||Math.floor(t/60%60)>=10)&&r<10?"0"+r:r)+":",(i?"-":"")+n+r+(a=a<10?"0"+a:a)}Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});class as{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}}class al extends as{}class ad extends al{constructor(){super(...arguments),this.role=null}}class au{observe(){}unobserve(){}disconnect(){}}let ac={createElement:function(){return new ah.HTMLElement},createElementNS:function(){return new ah.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent:e=>!1},ah={ResizeObserver:au,document:ac,Node:al,Element:ad,HTMLElement:class extends ad{constructor(){super(...arguments),this.innerHTML=""}get content(){return new ah.DocumentFragment}},DocumentFragment:class extends as{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem:e=>null,setItem(e,t){},removeItem(e){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia:e=>({matches:!1,media:e}),DOMParser:class{parseFromString(e,t){return{body:{textContent:e}}}}},ap="global"in globalThis&&(null==globalThis?void 0:globalThis.global)===globalThis||"undefined"==typeof window||void 0===window.customElements,am=Object.keys(ah).every(e=>e in globalThis),av=ap&&!am?ah:globalThis,af=ap&&!am?ac:globalThis.document,ab=new WeakMap,aE=e=>{let t=ab.get(e);return t||ab.set(e,t=new Set),t},ay=new av.ResizeObserver(e=>{for(let t of e)for(let e of aE(t.target))e(t)});function ag(e,t){aE(e).add(t),ay.observe(e)}function a_(e,t){let i=aE(e);i.delete(t),i.size||ay.unobserve(e)}function aT(e){let t={};for(let i of e)t[i.name]=i.value;return t}function ak(e){var t;return null!=(t=aA(e))?t:aR(e,"media-controller")}function aA(e){var t;let{MEDIA_CONTROLLER:i}=iq,a=e.getAttribute(i);if(a)return null==(t=aD(e))?void 0:t.getElementById(a)}let aw=(e,t,i=".value")=>{let a=e.querySelector(i);a&&(a.textContent=t)},aS=(e,t)=>{let i=`slot[name="${t}"]`,a=e.shadowRoot.querySelector(i);return a?a.children:[]},aI=(e,t)=>aS(e,t)[0],aL=(e,t)=>!!e&&!!t&&(null!=e&&!!e.contains(t)||aL(e,t.getRootNode().host)),aR=(e,t)=>e?e.closest(t)||aR(e.getRootNode().host,t):null;function aC(e=document){var t;let i=null==e?void 0:e.activeElement;return i?null!=(t=aC(i.shadowRoot))?t:i:null}function aD(e){var t;let i=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e);return i instanceof ShadowRoot||i instanceof Document?i:null}function aO(e,{depth:t=3,checkOpacity:i=!0,checkVisibilityCSS:a=!0}={}){if(e.checkVisibility)return e.checkVisibility({checkOpacity:i,checkVisibilityCSS:a});let r=e;for(;r&&t>0;){let e=getComputedStyle(r);if(i&&"0"===e.opacity||a&&"hidden"===e.visibility||"none"===e.display)return!1;r=r.parentElement,t--}return!0}function ax(e,t){return function(e,t){var i,a;let r;for(r of null!=(i=e.querySelectorAll("style:not([media])"))?i:[]){let e;try{e=null==(a=r.sheet)?void 0:a.cssRules}catch{continue}for(let i of null!=e?e:[])if(t(i.selectorText))return i}}(e,e=>e===t)||aM(e,t)}function aM(e,t){var i,a;let r=null!=(i=e.querySelectorAll("style:not([media])"))?i:[],n=null==r?void 0:r[r.length-1];if(!(null==n?void 0:n.sheet))return console.warn("Media Chrome: No style sheet found on style tag of",e),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}};let o=null==n?void 0:n.sheet.insertRule(`${t}{}`,n.sheet.cssRules.length);return null==(a=n.sheet.cssRules)?void 0:a[o]}function aN(e,t,i=Number.NaN){let a=e.getAttribute(t);return null!=a?+a:i}function aP(e,t,i){let a=+i;
84if(null==i||Number.isNaN(a)){e.hasAttribute(t)&&e.removeAttribute(t);return}aN(e,t,void 0)!==a&&e.setAttribute(t,`${a}`)}function aU(e,t){return e.hasAttribute(t)}function aB(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}aU(e,t)!=i&&e.toggleAttribute(t,i)}function a$(e,t,i=null){var a;return null!=(a=e.getAttribute(t))?a:i}function aH(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}let a=`${i}`;a$(e,t,void 0)!==a&&e.setAttribute(t,a)}var aj=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},aW=(e,t,i)=>(aj(e,t,"read from private field"),i?i.call(e):t.get(e)),aq=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},aK=(e,t,i,a)=>(aj(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class aF extends av.HTMLElement{constructor(){if(super(),aq(this,dT,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[iq.MEDIA_CONTROLLER,iV.MEDIA_PAUSED]}attributeChangedCallback(e,t,i){var a,r,n,o,s;e===iq.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=aW(this,dT))?void 0:a.unassociateElement)||r.call(a,this),aK(this,dT,null)),i&&this.isConnected&&(aK(this,dT,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=aW(this,dT))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),aK(this,dT,function(e){var t;let i=e.getAttribute(iq.MEDIA_CONTROLLER);return i?null==(t=e.getRootNode())?void 0:t.getElementById(i):aR(e,"media-controller")}(this)),this.getAttribute(iq.MEDIA_CONTROLLER)&&(null==(t=null==(e=aW(this,dT))?void 0:e.associateElement)||t.call(e,this)),aW(this,dT)&&(aW(this,dT).addEventListener("pointerdown",this),aW(this,dT).addEventListener("click",this),aW(this,dT).hasAttribute("tabindex")||(aW(this,dT).tabIndex=0))}disconnectedCallback(){var e,t,i,a;this.getAttribute(iq.MEDIA_CONTROLLER)&&(null==(t=null==(e=aW(this,dT))?void 0:e.unassociateElement)||t.call(e,this)),null==(i=aW(this,dT))||i.removeEventListener("pointerdown",this),null==(a=aW(this,dT))||a.removeEventListener("click",this),aK(this,dT,null)}handleEvent(e){var t;let i=null==(t=e.composedPath())?void 0:t[0];if(["video","media-controller"].includes(null==i?void 0:i.localName)){if("pointerdown"===e.type)this._pointerType=e.pointerType;else if("click"===e.type){let{clientX:t,clientY:i}=e,{left:a,top:r,width:n,height:o}=this.getBoundingClientRect(),s=t-a,l=i-r;if(s<0||l<0||s>n||l>o||0===n&&0===o)return;let d=this._pointerType||"mouse";if(this._pointerType=void 0,d===iZ.TOUCH){this.handleTap(e);return}if(d===iZ.MOUSE||d===iZ.PEN){this.handleMouseClick(e);return}}}}get mediaPaused(){return aU(this,iV.MEDIA_PAUSED)}set mediaPaused(e){aB(this,iV.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){let t=this.mediaPaused?iW.MEDIA_PLAY_REQUEST:iW.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new av.CustomEvent(t,{composed:!0,bubbles:!0}))}}dT=new WeakMap,aF.shadowRootOptions={mode:"open"},aF.getTemplateHTML=function(e){return`
85    <style>
86      :host {
87        display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
88        box-sizing: border-box;
89      }
90    </style>
91  `},av.customElements.get("media-gesture-receiver")||av.customElements.define("media-gesture-receiver",aF);var aV=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},aY=(e,t,i)=>(aV(e,t,"read from private field"),i?i.call(e):t.get(e)),aG=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},az=(e,t,i,a)=>(aV(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),aQ=(e,t,i)=>(aV(e,t,"access private method"),i);let aZ={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive",AUTOHIDE_OVER_CONTROLS:"autohideovercontrols"},aX=Object.values(iV);function aJ(e,t){var i;if(!e.isConnected)return;let a=Object.fromEntries((null!=(i=e.getAttribute(aZ.BREAKPOINTS))?i:"sm:384 md:576 lg:768 xl:960").split(/\s+/).map(e=>e.split(":"))),r=Object.keys(a).filter(e=>t>=parseInt(a[e])),n=!1;
91if(Object.keys(a).forEach(t=>{if(r.includes(t)){e.hasAttribute(`breakpoint${t}`)||(e.setAttribute(`breakpoint${t}`,""),n=!0);return}e.hasAttribute(`breakpoint${t}`)&&(e.removeAttribute(`breakpoint${t}`),n=!0)}),n){let t=new CustomEvent(iY.BREAKPOINTS_CHANGE,{detail:r});e.dispatchEvent(t)}e.breakpointsComputed||(e.breakpointsComputed=!0,e.dispatchEvent(new CustomEvent(iY.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}class a0 extends av.HTMLElement{constructor(){if(super(),aG(this,dD),aG(this,dx),aG(this,dN),aG(this,dU),aG(this,d$),aG(this,dk,void 0),aG(this,dA,0),aG(this,dw,null),aG(this,dS,null),aG(this,dI,void 0),this.breakpointsComputed=!1,aG(this,dL,e=>{let t=this.media;for(let i of e)if("childList"===i.type){for(let e of i.removedNodes){if("media"!=e.slot||i.target!=this)continue;let a=i.previousSibling&&i.previousSibling.previousElementSibling;if(a&&t){let t="media"!==a.slot;for(;null!==(a=a.previousSibling);)"media"==a.slot&&(t=!1);t&&this.mediaUnsetCallback(e)}else this.mediaUnsetCallback(e)}if(t)for(let e of i.addedNodes)e===t&&this.handleMediaUpdated(t)}}),aG(this,dR,!1),aG(this,dC,e=>{aY(this,dR)||(setTimeout(()=>{aJ(e.target,e.contentRect.width),az(this,dR,!1)},0),az(this,dR,!0))}),aG(this,dj,void 0),aG(this,dW,()=>{if(!aY(this,dj).assignedElements({flatten:!0}).length){aY(this,dw)&&this.mediaUnsetCallback(aY(this,dw));return}this.handleMediaUpdated(this.media)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}az(this,dk,new MutationObserver(aY(this,dL)))}static get observedAttributes(){return[aZ.AUTOHIDE,aZ.GESTURES_DISABLED].concat(aX).filter(e=>![iV.MEDIA_RENDITION_LIST,iV.MEDIA_AUDIO_TRACK_LIST,iV.MEDIA_CHAPTERS_CUES,iV.MEDIA_WIDTH,iV.MEDIA_HEIGHT,iV.MEDIA_ERROR,iV.MEDIA_ERROR_MESSAGE].includes(e))}attributeChangedCallback(e,t,i){e.toLowerCase()==aZ.AUTOHIDE&&(this.autohide=i)}get media(){let e=this.querySelector(":scope > [slot=media]");return(null==e?void 0:e.nodeName)=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(az(this,dw,e),e.localName.includes("-")&&await av.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;aY(this,dk).observe(this,{childList:!0,subtree:!0}),ag(this,aY(this,dC));let t=null!=this.getAttribute(aZ.AUDIO)?ai("audio player"):ai("video player");this.setAttribute("role","region"),this.setAttribute("aria-label",t),this.handleMediaUpdated(this.media),this.setAttribute(aZ.USER_INACTIVE,""),aJ(this,this.getBoundingClientRect().width);let i=this.querySelector(":scope > slot[slot=media]");
91i&&(az(this,dj,i),aY(this,dj).addEventListener("slotchange",aY(this,dW))),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(e=av.window)||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;a_(this,aY(this,dC)),clearTimeout(aY(this,dS)),aY(this,dk).disconnect(),this.media&&this.mediaUnsetCallback(this.media),null==(e=av.window)||e.removeEventListener("mouseup",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointermove",this),this.removeEventListener("pointerup",this),this.removeEventListener("mouseleave",this),this.removeEventListener("keyup",this),aY(this,dj)&&(aY(this,dj).removeEventListener("slotchange",aY(this,dW)),az(this,dj,null)),az(this,dR,!1)}mediaSetCallback(e){}mediaUnsetCallback(e){az(this,dw,null)}handleEvent(e){switch(e.type){case"pointerdown":az(this,dA,e.timeStamp);break;case"pointermove":aQ(this,dD,dO).call(this,e);break;case"pointerup":aQ(this,dx,dM).call(this,e);break;case"mouseleave":aQ(this,dN,dP).call(this);break;case"mouseup":this.removeAttribute(aZ.KEYBOARD_CONTROL);break;case"keyup":aQ(this,d$,dH).call(this),this.setAttribute(aZ.KEYBOARD_CONTROL,"")}}set autohide(e){let t=Number(e);az(this,dI,isNaN(t)?0:t)}get autohide(){return(void 0===aY(this,dI)?2:aY(this,dI)).toString()}get breakpoints(){return a$(this,aZ.BREAKPOINTS)}set breakpoints(e){aH(this,aZ.BREAKPOINTS,e)}get audio(){return aU(this,aZ.AUDIO)}set audio(e){aB(this,aZ.AUDIO,e)}get gesturesDisabled(){return aU(this,aZ.GESTURES_DISABLED)}set gesturesDisabled(e){aB(this,aZ.GESTURES_DISABLED,e)}get keyboardControl(){return aU(this,aZ.KEYBOARD_CONTROL)}set keyboardControl(e){aB(this,aZ.KEYBOARD_CONTROL,e)}get noAutohide(){return aU(this,aZ.NO_AUTOHIDE)}set noAutohide(e){aB(this,aZ.NO_AUTOHIDE,e)}get autohideOverControls(){return aU(this,aZ.AUTOHIDE_OVER_CONTROLS)}set autohideOverControls(e){aB(this,aZ.AUTOHIDE_OVER_CONTROLS,e)}get userInteractive(){return aU(this,aZ.USER_INACTIVE)}set userInteractive(e){aB(this,aZ.USER_INACTIVE,e)}}dk=new WeakMap,dA=new WeakMap,dw=new WeakMap,dS=new WeakMap,dI=new WeakMap,dL=new WeakMap,dR=new WeakMap,dC=new WeakMap,dD=new WeakSet,dO=function(e){if("mouse"!==e.pointerType&&e.timeStamp-aY(this,dA)<250)return;aQ(this,dU,dB).call(this),clearTimeout(aY(this,dS));let t=this.hasAttribute(aZ.AUTOHIDE_OVER_CONTROLS);([this,this.media].includes(e.target)||t)&&aQ(this,d$,dH).call(this)},dx=new WeakSet,dM=function(e){if("touch"===e.pointerType){let t=!this.hasAttribute(aZ.USER_INACTIVE);[this,this.media].includes(e.target)&&t?aQ(this,dN,dP).call(this):aQ(this,d$,dH).call(this)}else e.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(null==e?void 0:e.localName))&&aQ(this,d$,dH).call(this)},dN=new WeakSet,dP=function(){if(0>aY(this,dI)||this.hasAttribute(aZ.USER_INACTIVE))return;this.setAttribute(aZ.USER_INACTIVE,"");let e=new av.CustomEvent(iY.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(e)},dU=new WeakSet,dB=function(){if(!this.hasAttribute(aZ.USER_INACTIVE))return;this.removeAttribute(aZ.USER_INACTIVE);let e=new av.CustomEvent(iY.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(e)},d$=new WeakSet,dH=function(){aQ(this,dU,dB).call(this),clearTimeout(aY(this,dS));let e=parseInt(this.autohide);e<0||az(this,dS,setTimeout(()=>{aQ(this,dN,dP).call(this)},1e3*e))},dj=new WeakMap,dW=new WeakMap,a0.shadowRootOptions={mode:"open"},a0.getTemplateHTML=function(e){return`
92    <style>
93      
94      :host([${iV.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
95        outline: none;
96      }
97
98      :host {
99        box-sizing: border-box;
100        position: relative;
101        display: inline-block;
102        line-height: 0;
103        background-color: var(--media-background-color, #000);
104        overflow: hidden;
105      }
106
107      :host(:not([${aZ.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
108        position: absolute;
109        top: 0;
110        left: 0;
111        bottom: 0;
112        right: 0;
113        display: flex;
114        flex-flow: column nowrap;
115        align-items: start;
116        pointer-events: none;
117        background: none;
118      }
119
120      slot[name=media] {
121        display: var(--media-slot-display, contents);
122      }
123
124      
125      :host([${aZ.AUDIO}]) slot[name=media] {
126        display: var(--media-slot-display, none);
127      }
128
129      
130      :host([${aZ.AUDIO}]) [part~=layer][part~=gesture-layer] {
131        height: 0;
132        display: block;
133      }
134
135      
136      :host(:not([${aZ.AUDIO}])[${aZ.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
137          :host(:not([${aZ.AUDIO}])[${aZ.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
138        display: none;
139      }
140
141      
142      ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) {
143        pointer-events: auto;
144      }
145
146      :host(:not([${aZ.AUDIO}])) *[part~=layer][part~=centered-layer] {
147        align-items: center;
148        justify-content: center;
149      }
150
151      :host(:not([${aZ.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
152      :host(:not([${aZ.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
153        align-self: stretch;
154        flex-grow: 1;
155      }
156
157      slot[name=middle-chrome] {
158        display: inline;
159        flex-grow: 1;
160        pointer-events: none;
161        background: none;
162      }
163
164      
165      ::slotted([slot=media]),
166      ::slotted([slot=poster]) {
167        width: 100%;
168        height: 100%;
169      }
170
171      
172      :host(:not([${aZ.AUDIO}])) .spacer {
173        flex-grow: 1;
174      }
175
176      
177      :host(:-webkit-full-screen) {
178        
179        width: 100% !important;
180        height: 100% !important;
181      }
182
183      
184      ::slotted(:not([slot=media]):not([slot=poster]):not([${aZ.NO_AUTOHIDE}]):not([hidden]):not([role=dialog])) {
185        opacity: 1;
186        transition: var(--media-control-transition-in, opacity 0.25s);
187      }
188
189      
190      :host([${aZ.USER_INACTIVE}]:not([${iV.MEDIA_PAUSED}]):not([${iV.MEDIA_IS_AIRPLAYING}
190]):not([${iV.MEDIA_IS_CASTING}]):not([${aZ.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${aZ.NO_AUTOHIDE}]):not([role=dialog])) {
191        opacity: 0;
192        transition: var(--media-control-transition-out, opacity 1s);
193      }
194
195      :host([${aZ.USER_INACTIVE}]:not([${aZ.NO_AUTOHIDE}]):not([${iV.MEDIA_PAUSED}]):not([${iV.MEDIA_IS_CASTING}]):not([${aZ.AUDIO}])) ::slotted([slot=media]) {
196        cursor: none;
197      }
198
199      :host([${aZ.USER_INACTIVE}][${aZ.AUTOHIDE_OVER_CONTROLS}]:not([${aZ.NO_AUTOHIDE}]):not([${iV.MEDIA_PAUSED}]):not([${iV.MEDIA_IS_CASTING}]):not([${aZ.AUDIO}])) * {
200        --media-cursor: none;
201        cursor: none;
202      }
203
204
205      ::slotted(media-control-bar)  {
206        align-self: stretch;
207      }
208
209      
210      :host(:not([${aZ.AUDIO}])[${iV.MEDIA_HAS_PLAYED}]) slot[name=poster] {
211        display: none;
212      }
213
214      ::slotted([role=dialog]) {
215        width: 100%;
216        height: 100%;
217        align-self: center;
218      }
219
220      ::slotted([role=menu]) {
221        align-self: end;
222      }
223    </style>
224
225    <slot name="media" part="layer media-layer"></slot>
226    <slot name="poster" part="layer poster-layer"></slot>
227    <slot name="gestures-chrome" part="layer gesture-layer">
228      <media-gesture-receiver slot="gestures-chrome">
229        <template shadowrootmode="${aF.shadowRootOptions.mode}">
230          ${aF.getTemplateHTML({})}
231        </template>
232      </media-gesture-receiver>
233    </slot>
234    <span part="layer vertical-layer">
235      <slot name="top-chrome" part="top chrome"></slot>
236      <slot name="middle-chrome" part="middle chrome"></slot>
237      <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
238      
239      <slot part="bottom chrome"></slot>
240    </span>
241    <slot name="dialog" part="layer dialog-layer"></slot>
242  `},av.customElements.get("media-container")||av.customElements.define("media-container",a0);var a1=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},a2=(e,t,i)=>(a1(e,t,"read from private field"),i?i.call(e):t.get(e)),a3=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},a4=(e,t,i,a)=>(a1(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class a5{constructor(e,t,{defaultValue:i}={defaultValue:void 0}){a3(this,dY),a3(this,dq,void 0),a3(this,dK,void 0),a3(this,dF,void 0),a3(this,dV,new Set),a4(this,dq,e),a4(this,dK,t),a4(this,dF,new Set(i))}[Symbol.iterator](){return a2(this,dY,dG).values()}get length(){return a2(this,dY,dG).size}get value(){var e;return null!=(e=[...a2(this,dY,dG)].join(" "))?e:""}set value(e){var t;e!==this.value&&(a4(this,dV,new Set),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return[...a2(this,dY,dG)][e]}values(){return a2(this,dY,dG).values()}forEach(e,t){a2(this,dY,dG).forEach(e,t)}add(...e){var t,i;e.forEach(e=>a2(this,dV).add(e)),(""!==this.value||(null==(t=a2(this,dq))?void 0:t.hasAttribute(`${a2(this,dK)}`)))&&(null==(i=a2(this,dq))||i.setAttribute(`${a2(this,dK)}`,`${this.value}`))}remove(...e){var t;e.forEach(e=>a2(this,dV).delete(e)),null==(t=a2(this,dq))||t.setAttribute(`${a2(this,dK)}`,`${this.value}`)}contains(e){return a2(this,dY,dG).has(e)}toggle(e,t){return void 0!==t?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){return this.remove(e),this.add(t),e===t}}dq=new WeakMap,dK=new WeakMap,dF=new WeakMap,dV=new WeakMap,dY=new WeakSet,dG=function(){return a2(this,dV).size?a2(this,dV):a2(this,dF)};let a9=(e="")=>e.split(/\s+/),a8=(e="")=>{let[t,i,a]=e.split(":"),r=a?decodeURIComponent(a):void 0;return{kind:"cc"===t?iz.CAPTIONS:iz.SUBTITLES,language:i,label:r}},a6=(e="",t={})=>a9(e).map(e=>{let i=a8(e);return{...t,...i}}),a7=e=>e?Array.isArray(e)?e.map(e=>"string"==typeof e?a8(e):e):"string"==typeof e?a6(e):[e]:[],re=({kind:e,label:t,language:i}={kind:"subtitles"})=>t?`${"captions"===e?"cc":"sb"}:${i}:${encodeURIComponent(t)}`:i,rt=(e=[])=>Array.prototype.map.call(e,re).join(" "),ri=(e,t)=>i=>i[e]===t,ra=e=>{let t=Object.entries(e).map(([e,t])=>ri(e,t));return e=>t.every(t=>t(e))},rr=(e,t=[],i=[])=>{let a=a7(i).map(ra);Array.from(t).filter(e=>a.some(t=>
242t(e))).forEach(t=>{t.mode=e})},rn=(e,t=()=>!0)=>{if(!(null==e?void 0:e.textTracks))return[];let i="function"==typeof t?t:ra(t);return Array.from(e.textTracks).filter(i)},ro=e=>{var t;return!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)||e.hasAttribute(iV.MEDIA_SUBTITLES_SHOWING)},rs=e=>{var t;let{media:i,fullscreenElement:a}=e;try{let e=a&&"requestFullscreen"in a?"requestFullscreen":a&&"webkitRequestFullScreen"in a?"webkitRequestFullScreen":void 0;if(e){let i=null==(t=a[e])?void 0:t.call(a);if(i instanceof Promise)return i.catch(()=>{})}else(null==i?void 0:i.webkitEnterFullscreen)?i.webkitEnterFullscreen():(null==i?void 0:i.requestFullscreen)&&i.requestFullscreen()}catch(e){console.error(e)}},rl="exitFullscreen"in af?"exitFullscreen":"webkitExitFullscreen"in af?"webkitExitFullscreen":"webkitCancelFullScreen"in af?"webkitCancelFullScreen":void 0,rd=e=>{var t;let{documentElement:i}=e;if(rl){let e=null==(t=null==i?void 0:i[rl])?void 0:t.call(i);if(e instanceof Promise)return e.catch(()=>{})}},ru="fullscreenElement"in af?"fullscreenElement":"webkitFullscreenElement"in af?"webkitFullscreenElement":void 0,rc=e=>{let{documentElement:t,media:i}=e,a=null==t?void 0:t[ru];return!a&&"webkitDisplayingFullscreen"in i&&"webkitPresentationMode"in i&&i.webkitDisplayingFullscreen&&i.webkitPresentationMode===i0.FULLSCREEN?i:a},rh=e=>{var t;let{media:i,documentElement:a,fullscreenElement:r=i}=e;if(!i||!a)return!1;let n=rc(e);if(!n)return!1;if(n===r||n===i)return!0;if(n.localName.includes("-")){let e=n.shadowRoot;if(!(ru in e))return aL(n,r);for(;null==e?void 0:e[ru];){if(e[ru]===r)return!0;e=null==(t=e[ru])?void 0:t.shadowRoot}}return!1},rp="fullscreenEnabled"in af?"fullscreenEnabled":"webkitFullscreenEnabled"in af?"webkitFullscreenEnabled":void 0,rm=e=>{let{documentElement:t,media:i}=e;return!!(null==t?void 0:t[rp])||i&&"webkitSupportsFullscreen"in i},rv=()=>{var e;return r||(r=null==(e=null==af?void 0:af.createElement)?void 0:e.call(af,"video"))},rf=async(e=rv())=>{if(!e)return!1;let t=e.volume;e.volume=t/2+.1;let i=new AbortController,a=await Promise.race([rb(e,i.signal),rE(e,t)]);return i.abort(),a},rb=(e,t)=>new Promise(i=>{e.addEventListener("volumechange",()=>i(!0),{signal:t})}),rE=async(e,t)=>{for(let i=0;i<10;i++){if(e.volume===t)return!1;await i8(10)}return e.volume!==t},ry=/.*Version\/.*Safari\/.*/.test(av.navigator.userAgent),rg=(e=rv())=>(!av.matchMedia("(display-mode: standalone)").matches||!ry)&&"function"==typeof(null==e?void 0:e.requestPictureInPicture),r_=(e=rv())=>rm({documentElement:af,media:e}),rT=r_(),rk=rg(),rA=!!av.WebKitPlaybackTargetAvailabilityEvent,rw=!!av.chrome,rS=e=>rn(e.media,e=>[iz.SUBTITLES,iz.CAPTIONS].includes(e.kind)).sort((e,t)=>e.kind>=t.kind?1:-1),rI=e=>rn(e.media,e=>e.mode===iQ.SHOWING&&[iz.SUBTITLES,iz.CAPTIONS].includes(e.kind)),rL=(e,t)=>{let i=rS(e),a=rI(e),r=!!a.length;if(i.length){if(!1===t||r&&!0!==t)rr(iQ.DISABLED,i,a);else if(!0===t||!r&&!1!==t){let t=i[0],{options:r}=e;if(!(null==r?void 0:r.noSubtitlesLangPref)){let e=av.localStorage.getItem("media-chrome-pref-subtitles-lang"),a=e?[e,...av.navigator.languages]:av.navigator.languages,r=i.filter(e=>a.some(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))).sort((e,t)=>a.findIndex(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))-a.findIndex(e=>t.language.toLowerCase().startsWith(e.split("-")[0])));r[0]&&(t=r[0])}let{language:n,label:o,kind:s}=t;rr(iQ.DISABLED,i,a),rr(iQ.SHOWING,i,[{language:n,label:o,kind:s}])}}},rR=(e,t)=>e===t||null!=e&&null!=t&&typeof e==typeof t&&(!!("number"==typeof e&&Number.isNaN(e)&&Number.isNaN(t))||"object"==typeof e&&(Array.isArray(e)?rC(e,t):Object.entries(e).every(([e,i])=>e in t&&rR(i,t[e])))),rC=(e,t)=>{let i=Array.isArray(e),a=Array.isArray(t);return i===a&&(!i&&!a||e.length===t.length&&e.every((e,i)=>rR(e,t[i])))},rD=Object.values(iJ),rO=rf().then(e=>n=e),rx=async(...e)=>{await Promise.all(e.filter(e=>e).map(async e=>{if(!("localName"in e&&e instanceof av.HTMLElement))return;let t=e.localName;if(!t.includes("-"))return;let i=av.customElements.get(t);i&&e instanceof i||(await av.customElements.whenDefined(t),av.customElements.upgrade(e))}))},rM=new av.DOMParser,rN=e=>e&&rM.parseFromString(e,"text/html").body.textContent||e,rP={mediaError:{get(e,t){let{media:i}=e;if((null==t?void 0:t.type)!=="playing")return null==i?void 0:i.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(e,t){var i;let{media:a}=e;if((null==t?void 0:t.type)!=="playing")return null==(i=null==a?void 0:a.error)?void 0:i.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(e,t){var i,a;let{media:r}=e;if((null==t?void 0:t.type)!=="playing")return null!=(a=null==(i=null==r?void 0:r.error)?void 0:i.message)?a:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoWidth)?t:0},mediaEvents:["resize"]},mediaHeight:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoHeight)?t:0},mediaEvents:["resize"]},mediaPaused:{get(e){var t;let{media:i}=e;return null==(t=null==i?void 0:i.paused)||t},set(e,t){var i;let{media:a}=t;a&&(e?a.pause():null==(i=a.play())||i.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(e,t){let{media:i}=e;return!!i&&(t?"playing"===t.type:!i.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.ended)&&t},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.playbackRate)?t:1},set(e,t){let{media:i}=t;i&&Number.isFinite(+e)&&(i.playbackRate=+e)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.muted)&&t},set(e,t){let{media:i,options:{noMutedPref:a}={}}=t;if(i){i.muted=e;try{let t=null!==av.localStorage.getItem("media-chrome-pref-muted"),r=i.hasAttribute("muted");if(a){t&&av.localStorage.removeItem("media-chrome-pref-muted");return}if(r&&!t)return;av.localStorage.setItem("media-chrome-pref-muted",e?"true":"false")}catch(e){console.debug("Error setting muted pref",e)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noMutedPref:i}}=t,{media:a}=t;if(a&&!a.muted&&!i)try{let i="true"===av.localStorage.getItem("media-chrome-pref-muted");rP.mediaMuted.set(i,t),e(i)}catch(e){console.debug("Error getting muted pref",e)}}]},mediaLoop:{get(e){let{media:t}=e;return null==t?void 0:t.loop},set(e,t){let{media:i}=t;i&&(i.loop=e)},mediaEvents:["medialooprequest"]},mediaVolume:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.volume)?t:1}
242,set(e,t){let{media:i,options:{noVolumePref:a}={}}=t;if(i){try{null==e?av.localStorage.removeItem("media-chrome-pref-volume"):i.hasAttribute("muted")||a||av.localStorage.setItem("media-chrome-pref-volume",e.toString())}catch(e){console.debug("Error setting volume pref",e)}Number.isFinite(+e)&&(i.volume=+e)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noVolumePref:i}}=t;if(!i)try{let{media:i}=t;if(!i)return;let a=av.localStorage.getItem("media-chrome-pref-volume");if(null==a)return;rP.mediaVolume.set(+a,t),e(+a)}catch(e){console.debug("Error getting volume pref",e)}}]},mediaVolumeLevel:{get(e){let{media:t}=e;return void 0===(null==t?void 0:t.volume)?"high":t.muted||0===t.volume?"off":t.volume<.5?"low":t.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.currentTime)?t:0},set(e,t){let{media:i}=t;i&&i5(e)&&(i.currentTime=e)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(e){let{media:t,options:{defaultDuration:i}={}}=e;return i&&(!t||!t.duration||Number.isNaN(t.duration)||!Number.isFinite(t.duration))?i:Number.isFinite(null==t?void 0:t.duration)?t.duration:Number.NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(e){let{media:t}=e;return(null==t?void 0:t.readyState)<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(e){var t;let{media:i}=e;if(!(null==(t=null==i?void 0:i.seekable)?void 0:t.length))return;let a=i.seekable.start(0),r=i.seekable.end(i.seekable.length-1);if(a||r)return[Number(a.toFixed(3)),Number(r.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(e){var t;let{media:i}=e,a=null!=(t=null==i?void 0:i.buffered)?t:[];return Array.from(a).map((e,t)=>[Number(a.start(t).toFixed(3)),Number(a.end(t).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(e){let{media:t,options:{defaultStreamType:i}={}}=e,a=[iJ.LIVE,iJ.ON_DEMAND].includes(i)?i:void 0;if(!t)return a;let{streamType:r}=t;if(rD.includes(r))return r===iJ.UNKNOWN?a:r;let n=t.duration;return n===1/0?iJ.LIVE:Number.isFinite(n)?iJ.ON_DEMAND:a},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(e){let{media:t}=e;if(!t)return Number.NaN;let{targetLiveWindow:i}=t,a=rP.mediaStreamType.get(e);return(null==i||Number.isNaN(i))&&a===iJ.LIVE?0:i},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(e){let{media:t,options:{liveEdgeOffset:i=10}={}}=e;if(!t)return!1;if("number"==typeof t.liveEdgeStart)return!Number.isNaN(t.liveEdgeStart)&&t.currentTime>=t.liveEdgeStart;if(rP.mediaStreamType.get(e)!==iJ.LIVE)return!1;let a=t.seekable;if(!a)return!0;if(!a.length)return!1;let r=a.end(a.length-1)-i;return t.currentTime>=r},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get:e=>rS(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get:e=>rI(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i,a;let{media:r,options:n}=t;if(!r)return;let o=e=>{var i;n.defaultSubtitles&&(e&&![iz.CAPTIONS,iz.SUBTITLES].includes(null==(i=null==e?void 0:e.track)?void 0:i.kind)||rL(t,!0))};return r.addEventListener("loadstart",o),null==(i=r.textTracks)||i.addEventListener("addtrack",o),null==(a=r.textTracks)||a.addEventListener("removetrack",o),()=>{var e,t;r.removeEventListener("loadstart",o),null==(e=r.textTracks)||e.removeEventListener("addtrack",o),null==(t=r.textTracks)||t.removeEventListener("removetrack",o)}}]},mediaChaptersCues:{get(e){var t;let{media:i}=e;if(!i)return[];let[a]=rn(i,{kind:iz.CHAPTERS});return Array.from(null!=(t=null==a?void 0:a.cues)?t:[]).map(({text:e,startTime:t,endTime:i})=>({text:rN(e),startTime:t,endTime:i}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(!a)return;let r=a.querySelector('track[kind="chapters"][default][src]'),n=null==(i=a.shadowRoot)?void 0:i.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return null==r||r.addEventListener("load",e),null==n||n.addEventListener("load",e),()=>{null==r||r.removeEventListener("load",e),null==n||n.removeEventListener("load",e)}}]},mediaIsPip:{get(e){var t,i;let{media:a,documentElement:r}=e;if(!a||!r||!r.pictureInPictureElement)return!1;if(r.pictureInPictureElement===a)return!0;
242if(r.pictureInPictureElement instanceof HTMLMediaElement)return null!=(t=a.localName)&&!!t.includes("-")&&aL(a,r.pictureInPictureElement);if(r.pictureInPictureElement.localName.includes("-")){let e=r.pictureInPictureElement.shadowRoot;for(;null==e?void 0:e.pictureInPictureElement;){if(e.pictureInPictureElement===a)return!0;e=null==(i=e.pictureInPictureElement)?void 0:i.shadowRoot}}return!1},set(e,t){let{media:i}=t;if(i){if(e){if(!af.pictureInPictureEnabled){console.warn("MediaChrome: Picture-in-picture is not enabled");return}if(!i.requestPictureInPicture){console.warn("MediaChrome: The current media does not support picture-in-picture");return}let e=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};i.requestPictureInPicture().catch(t=>{if(11===t.code){if(!i.src){console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.");return}if(0===i.readyState&&"none"===i.preload){let t=()=>{i.removeEventListener("loadedmetadata",a),i.preload="none"},a=()=>{i.requestPictureInPicture().catch(e),t()};i.addEventListener("loadedmetadata",a),i.preload="metadata",setTimeout(()=>{0===i.readyState&&e(),t()},1e3)}else throw t}else throw t})}else af.pictureInPictureElement&&af.exitPictureInPicture()}},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.videoRenditions)?t:[]].map(e=>({...e}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(e){var t,i,a;let{media:r}=e;return null==(a=null==(i=null==r?void 0:r.videoRenditions)?void 0:i[null==(t=r.videoRenditions)?void 0:t.selectedIndex])?void 0:a.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.videoRenditions)){console.warn("MediaController: Rendition selection not supported by this media.");return}let a=Array.prototype.findIndex.call(i.videoRenditions,t=>t.id==e);i.videoRenditions.selectedIndex!=a&&(i.videoRenditions.selectedIndex=a)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.audioTracks)?t:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(e){var t,i;let{media:a}=e;return null==(i=[...null!=(t=null==a?void 0:a.audioTracks)?t:[]].find(e=>e.enabled))?void 0:i.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.audioTracks)){console.warn("MediaChrome: Audio track selection not supported by this media.");return}for(let t of i.audioTracks)t.enabled=e==t.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get:e=>rh(e),set(e,t,i){var a,r;e?(rs(t),!i.detail||(null==(a=t.media)?void 0:a.inert)||null==(r=t.media)||r.focus()):rd(t)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(e){var t;let{media:i}=e;return null!=i&&!!i.remote&&(null==(t=i.remote)?void 0:t.state)!=="disconnected"&&!!i.remote.state},set(e,t){var i,a;let{media:r}=t;if(r&&(!e||(null==(i=r.remote)?void 0:i.state)==="disconnected")&&(e||(null==(a=r.remote)?void 0:a.state)==="connected")){if("function"!=typeof r.remote.prompt){console.warn("MediaChrome: Casting is not supported in this environment");return}r.remote.prompt().catch(()=>{})}},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get:()=>!1,set(e,t){let{media:i}=t;if(i){if(!(i.webkitShowPlaybackTargetPicker&&av.WebKitPlaybackTargetAvailabilityEvent)){console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment");return}i.webkitShowPlaybackTargetPicker()}},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(e){let{media:t}=e;if(!rT||!r_(t))return iX.UNSUPPORTED}},mediaPipUnavailable:{get(e){let{media:t}=e;return rk&&rg(t)?(null==t?void 0:t.disablePictureInPicture)?iX.UNAVAILABLE:void 0:iX.UNSUPPORTED}},mediaVolumeUnavailable:{get(e){let{media:t}=e;if(!1===n||(null==t?void 0:t.volume)==void 0)return iX.UNSUPPORTED},stateOwnersUpdateHandlers:[e=>{null==n&&rO.then(t=>e(t?void 0:iX.UNSUPPORTED))}]},mediaCastUnavailable:{get(e,{availability:t="not-available"}={}){var i;let{media:a}=e;return rw&&(null==(i=null==a?void 0:a.remote)?void 0:i.state)?null!=t&&"available"!==t?iX.UNAVAILABLE:void 0:iX.UNSUPPORTED},stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaAirplayUnavailable:{get:(e,t)=>rA?(null==t?void 0:t.availability)==="not-available"?iX.UNAVAILABLE:void 0:iX.UNSUPPORTED,mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaRenditionUnavailable:{get(e){var t;let{media:i}=e;return(null==i?void 0:i.videoRenditions)?(null==(t=i.videoRenditions)?void 0:t.length)?void 0:iX.UNAVAILABLE:iX.UNSUPPORTED},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(e){var t,i;let{media:a}=e;return(null==a?void 0:a.audioTracks)?(null!=(i=null==(t=a.audioTracks)?void 0:t.length)?i:0)<=1?iX.UNAVAILABLE:void 0:iX.UNSUPPORTED},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(e){let{options:{mediaLang:t}={}}=e;return null!=t?t:"en"}}},rU={[iW.MEDIA_PREVIEW_REQUEST](e,t,{detail:i}){var a,r,n;let o,s;let{media:l}=t,d=null!=i?i:void 0;if(l&&null!=d){let[e]=rn(l,{kind:iz.METADATA,label:"thumbnails"}),t=Array.prototype.find.call(null!=(a=null==e?void 0:e.cues)?a:[],(e,t,i)=>0===t?e.endTime>
242d:t===i.length-1?e.startTime<=d:e.startTime<=d&&e.endTime>d);if(t){let e=/'^(?:[a-z]+:)?\/\//i.test(t.text)?void 0:null==(r=null==l?void 0:l.querySelector('track[label="thumbnails"]'))?void 0:r.src,i=new URL(t.text,e);s=new URLSearchParams(i.hash).get("#xywh").split(",").map(e=>+e),o=i.href}}let u=e.mediaDuration.get(t),c=null==(n=e.mediaChaptersCues.get(t).find((e,t,i)=>t===i.length-1&&u===e.endTime?e.startTime<=d&&e.endTime>=d:e.startTime<=d&&e.endTime>d))?void 0:n.text;return null!=i&&null==c&&(c=""),{mediaPreviewTime:d,mediaPreviewImage:o,mediaPreviewCoords:s,mediaPreviewChapter:c}},[iW.MEDIA_PAUSE_REQUEST](e,t){e.mediaPaused.set(!0,t)},[iW.MEDIA_PLAY_REQUEST](e,t){var i,a,r,n;let o=e.mediaStreamType.get(t)===iJ.LIVE,s=!(null==(i=t.options)?void 0:i.noAutoSeekToLive),l=e.mediaTargetLiveWindow.get(t)>0;if(o&&s&&!l){let i=null==(a=e.mediaSeekable.get(t))?void 0:a[1];if(i){let a=null!=(n=null==(r=t.options)?void 0:r.seekToLiveOffset)?n:0;e.mediaCurrentTime.set(i-a,t)}}e.mediaPaused.set(!1,t)},[iW.MEDIA_PLAYBACK_RATE_REQUEST](e,t,{detail:i}){e.mediaPlaybackRate.set(i,t)},[iW.MEDIA_MUTE_REQUEST](e,t){e.mediaMuted.set(!0,t)},[iW.MEDIA_UNMUTE_REQUEST](e,t){e.mediaVolume.get(t)||e.mediaVolume.set(.25,t),e.mediaMuted.set(!1,t)},[iW.MEDIA_LOOP_REQUEST](e,t,{detail:i}){let a=!!i;return e.mediaLoop.set(a,t),{mediaLoop:a}},[iW.MEDIA_VOLUME_REQUEST](e,t,{detail:i}){i&&e.mediaMuted.get(t)&&e.mediaMuted.set(!1,t),e.mediaVolume.set(i,t)},[iW.MEDIA_SEEK_REQUEST](e,t,{detail:i}){e.mediaCurrentTime.set(i,t)},[iW.MEDIA_SEEK_TO_LIVE_REQUEST](e,t){var i,a,r;let n=null==(i=e.mediaSeekable.get(t))?void 0:i[1];if(Number.isNaN(Number(n)))return;let o=null!=(r=null==(a=t.options)?void 0:a.seekToLiveOffset)?r:0;e.mediaCurrentTime.set(n-o,t)},[iW.MEDIA_SHOW_SUBTITLES_REQUEST](e,t,{detail:i}){var a;let{options:r}=t,n=rS(t),o=a7(i),s=null==(a=o[0])?void 0:a.language;s&&!r.noSubtitlesLangPref&&av.localStorage.setItem("media-chrome-pref-subtitles-lang",s),rr(iQ.SHOWING,n,o)},[iW.MEDIA_DISABLE_SUBTITLES_REQUEST](e,t,{detail:i}){let a=rS(t);rr(iQ.DISABLED,a,null!=i?i:[])},[iW.MEDIA_TOGGLE_SUBTITLES_REQUEST](e,t,{detail:i}){rL(t,i)},[iW.MEDIA_RENDITION_REQUEST](e,t,{detail:i}){e.mediaRenditionSelected.set(i,t)},[iW.MEDIA_AUDIO_TRACK_REQUEST](e,t,{detail:i}){e.mediaAudioTrackEnabled.set(i,t)},[iW.MEDIA_ENTER_PIP_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsPip.set(!0,t)},[iW.MEDIA_EXIT_PIP_REQUEST](e,t){e.mediaIsPip.set(!1,t)},[iW.MEDIA_ENTER_FULLSCREEN_REQUEST](e,t,i){e.mediaIsPip.get(t)&&e.mediaIsPip.set(!1,t),e.mediaIsFullscreen.set(!0,t,i)},[iW.MEDIA_EXIT_FULLSCREEN_REQUEST](e,t){e.mediaIsFullscreen.set(!1,t)},[iW.MEDIA_ENTER_CAST_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsCasting.set(!0,t)},[iW.MEDIA_EXIT_CAST_REQUEST](e,t){e.mediaIsCasting.set(!1,t)},[iW.MEDIA_AIRPLAY_REQUEST](e,t){e.mediaIsAirplaying.set(!0,t)}},rB=({media:e,fullscreenElement:t,documentElement:i,stateMediator:a=rP,requestMap:r=rU,options:n={},monitorStateOwnersOnlyWithSubscriptions:o=!0})=>{let s;let l=[],d={options:{...n}},u=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0}),c=e=>{void 0==e||rR(e,u)||(u=Object.freeze({...u,...e}),l.forEach(e=>e(u)))},h=()=>{c(Object.entries(a).reduce((e,[t,{get:i}])=>(e[t]=i(d),e),{}))},m={},v=async(e,t)=>{var i,r,n,u,v,f,b,E,y,g,_,T,k,A,w,S;let I=!!s;if(s={...d,...null!=s?s:{},...e},I)return;await rx(...Object.values(e));let L=l.length>0&&0===t&&o,R=d.media!==s.media,C=(null==(i=d.media)?void 0:i.textTracks)!==(null==(r=s.media)?void 0:r.textTracks),D=(null==(n=d.media)?void 0:n.videoRenditions)!==(null==(u=s.media)?void 0:u.videoRenditions),O=(null==(v=d.media)?void 0:v.audioTracks)!==(null==(f=s.media)?void 0:f.audioTracks),x=(null==(b=d.media)?void 0:b.remote)!==(null==(E=s.media)?void 0:E.remote),M=d.documentElement!==s.documentElement,N=!!d.media&&(R||L),P=!!(null==(y=d.media)?void 0:y.textTracks)&&(C||L),U=!!(null==(g=d.media)?void 0:g.videoRenditions)&&(D||L),B=!!(null==(_=d.media)?void 0:_.audioTracks)&&(O||L),$=!!(null==(T=d.media)?void 0:T.remote)&&(x||L),H=!!d.documentElement&&(M||L),j=N||P||U||B||$||H,W=0===l.length&&1===t&&o,q=!!s.media&&(R||W),K=!!(null==(k=s.media)?void 0:k.textTracks)&&(C||W),F=!!(null==(A=s.media)?void 0:A.videoRenditions)&&(D||W),V=!!(null==(w=s.media)?void 0:w.audioTracks)&&(O||W),Y=!!(null==(S=s.media)?void 0:S.remote)&&(x||W),G=!!s.documentElement&&(M||W),z=q||K||F||V||Y||G;
242if(!(j||z)){Object.entries(s).forEach(([e,t])=>{d[e]=t}),h(),s=void 0;return}Object.entries(a).forEach(([e,{get:t,mediaEvents:i=[],textTracksEvents:a=[],videoRenditionsEvents:r=[],audioTracksEvents:n=[],remoteEvents:o=[],rootEvents:l=[],stateOwnersUpdateHandlers:u=[]}])=>{let h;m[e]||(m[e]={});let v=i=>{c({[e]:t(d,i)})};h=m[e].mediaEvents,i.forEach(t=>{h&&N&&(d.media.removeEventListener(t,h),m[e].mediaEvents=void 0),q&&(s.media.addEventListener(t,v),m[e].mediaEvents=v)}),h=m[e].textTracksEvents,a.forEach(t=>{var i,a;h&&P&&(null==(i=d.media.textTracks)||i.removeEventListener(t,h),m[e].textTracksEvents=void 0),K&&(null==(a=s.media.textTracks)||a.addEventListener(t,v),m[e].textTracksEvents=v)}),h=m[e].videoRenditionsEvents,r.forEach(t=>{var i,a;h&&U&&(null==(i=d.media.videoRenditions)||i.removeEventListener(t,h),m[e].videoRenditionsEvents=void 0),F&&(null==(a=s.media.videoRenditions)||a.addEventListener(t,v),m[e].videoRenditionsEvents=v)}),h=m[e].audioTracksEvents,n.forEach(t=>{var i,a;h&&B&&(null==(i=d.media.audioTracks)||i.removeEventListener(t,h),m[e].audioTracksEvents=void 0),V&&(null==(a=s.media.audioTracks)||a.addEventListener(t,v),m[e].audioTracksEvents=v)}),h=m[e].remoteEvents,o.forEach(t=>{var i,a;h&&$&&(null==(i=d.media.remote)||i.removeEventListener(t,h),m[e].remoteEvents=void 0),Y&&(null==(a=s.media.remote)||a.addEventListener(t,v),m[e].remoteEvents=v)}),h=m[e].rootEvents,l.forEach(t=>{h&&H&&(d.documentElement.removeEventListener(t,h),m[e].rootEvents=void 0),G&&(s.documentElement.addEventListener(t,v),m[e].rootEvents=v)});let f=m[e].stateOwnersUpdateHandlers;if(f&&j&&(Array.isArray(f)?f:[f]).forEach(e=>{"function"==typeof e&&e()}),z){let t=u.map(e=>e(v,s)).filter(e=>"function"==typeof e);m[e].stateOwnersUpdateHandlers=1===t.length?t[0]:t}else j&&(m[e].stateOwnersUpdateHandlers=void 0)}),Object.entries(s).forEach(([e,t])=>{d[e]=t}),h(),s=void 0};return v({media:e,fullscreenElement:t,documentElement:i,options:n}),{dispatch(e){let{type:t,detail:i}=e;if(r[t]&&null==u.mediaErrorCode){c(r[t](a,d,e));return}"mediaelementchangerequest"===t?v({media:i}):"fullscreenelementchangerequest"===t?v({fullscreenElement:i}):"documentelementchangerequest"===t?v({documentElement:i}):"optionschangerequest"===t&&(Object.entries(null!=i?i:{}).forEach(([e,t])=>{d.options[e]=t}),h())},getState:()=>u,subscribe:e=>(v({},l.length+1),l.push(e),e(u),()=>{let t=l.indexOf(e);t>=0&&(v({},l.length-1),l.splice(t,1))})}};var r$=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},rH=(e,t,i)=>(r$(e,t,"read from private field"),i?i.call(e):t.get(e)),rj=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},rW=(e,t,i,a)=>(r$(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rq=(e,t,i)=>(r$(e,t,"access private method"),i);let rK=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],rF={DEFAULT_SUBTITLES:"defaultsubtitles",DEFAULT_STREAM_TYPE:"defaultstreamtype",DEFAULT_DURATION:"defaultduration",FULLSCREEN_ELEMENT:"fullscreenelement",HOTKEYS:"hotkeys",KEYBOARD_BACKWARD_SEEK_OFFSET:"keyboardbackwardseekoffset",KEYBOARD_FORWARD_SEEK_OFFSET:"keyboardforwardseekoffset",KEYBOARD_DOWN_VOLUME_STEP:"keyboarddownvolumestep",KEYBOARD_UP_VOLUME_STEP:"keyboardupvolumestep",KEYS_USED:"keysused",LANG:"lang",LOOP:"loop",LIVE_EDGE_OFFSET:"liveedgeoffset",NO_AUTO_SEEK_TO_LIVE:"noautoseektolive",NO_DEFAULT_STORE:"nodefaultstore",NO_HOTKEYS:"nohotkeys",NO_MUTED_PREF:"nomutedpref",NO_SUBTITLES_LANG_PREF:"nosubtitleslangpref",NO_VOLUME_PREF:"novolumepref",SEEK_TO_LIVE_OFFSET:"seektoliveoffset"};class rV extends a0{constructor(){super(),rj(this,d3),rj(this,d9),rj(this,d6),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,rj(this,dz,new a5(this,rF.HOTKEYS)),rj(this,dQ,void 0),rj(this,dZ,void 0),rj(this,dX,null),rj(this,dJ,void 0),rj(this,d0,void 0),rj(this,d1,e=>{var t;null==(t=rH(this,dZ))||t.dispatch(e)}),rj(this,d2,void 0),rj(this,d5,e=>{let{key:t,shiftKey:i}=e;if(!(i&&("/"===t||"?"===t)||rK.includes(t))){this.removeEventListener("keyup",rH(this,d5));return}this.keyboardShortcutHandler(e)}),this.associateElement(this);let e={};rW(this,dJ,t=>{Object.entries(t).forEach(([t,i])=>{if(t in e&&e[t]===i)return;
242this.propagateMediaState(t,i);let a=t.toLowerCase(),r=new av.CustomEvent(iG[a],{composed:!0,detail:i});this.dispatchEvent(r)}),e=t})}static get observedAttributes(){return super.observedAttributes.concat(rF.NO_HOTKEYS,rF.HOTKEYS,rF.DEFAULT_STREAM_TYPE,rF.DEFAULT_SUBTITLES,rF.DEFAULT_DURATION,rF.NO_MUTED_PREF,rF.NO_VOLUME_PREF,rF.LANG,rF.LOOP,rF.LIVE_EDGE_OFFSET,rF.SEEK_TO_LIVE_OFFSET,rF.NO_AUTO_SEEK_TO_LIVE)}get mediaStore(){return rH(this,dZ)}set mediaStore(e){var t,i;if(rH(this,dZ)&&(null==(t=rH(this,d0))||t.call(this),rW(this,d0,void 0)),rW(this,dZ,e),!rH(this,dZ)&&!this.hasAttribute(rF.NO_DEFAULT_STORE)){rq(this,d3,d4).call(this);return}rW(this,d0,null==(i=rH(this,dZ))?void 0:i.subscribe(rH(this,dJ)))}get fullscreenElement(){var e;return null!=(e=rH(this,dQ))?e:this}set fullscreenElement(e){var t;this.hasAttribute(rF.FULLSCREEN_ELEMENT)&&this.removeAttribute(rF.FULLSCREEN_ELEMENT),rW(this,dQ,e),null==(t=rH(this,dZ))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return aU(this,rF.DEFAULT_SUBTITLES)}set defaultSubtitles(e){aB(this,rF.DEFAULT_SUBTITLES,e)}get defaultStreamType(){return a$(this,rF.DEFAULT_STREAM_TYPE)}set defaultStreamType(e){aH(this,rF.DEFAULT_STREAM_TYPE,e)}get defaultDuration(){return aN(this,rF.DEFAULT_DURATION)}set defaultDuration(e){aP(this,rF.DEFAULT_DURATION,e)}get noHotkeys(){return aU(this,rF.NO_HOTKEYS)}set noHotkeys(e){aB(this,rF.NO_HOTKEYS,e)}get keysUsed(){return a$(this,rF.KEYS_USED)}set keysUsed(e){aH(this,rF.KEYS_USED,e)}get liveEdgeOffset(){return aN(this,rF.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){aP(this,rF.LIVE_EDGE_OFFSET,e)}get noAutoSeekToLive(){return aU(this,rF.NO_AUTO_SEEK_TO_LIVE)}set noAutoSeekToLive(e){aB(this,rF.NO_AUTO_SEEK_TO_LIVE,e)}get noVolumePref(){return aU(this,rF.NO_VOLUME_PREF)}set noVolumePref(e){aB(this,rF.NO_VOLUME_PREF,e)}get noMutedPref(){return aU(this,rF.NO_MUTED_PREF)}set noMutedPref(e){aB(this,rF.NO_MUTED_PREF,e)}get noSubtitlesLangPref(){return aU(this,rF.NO_SUBTITLES_LANG_PREF)}set noSubtitlesLangPref(e){aB(this,rF.NO_SUBTITLES_LANG_PREF,e)}get noDefaultStore(){return aU(this,rF.NO_DEFAULT_STORE)}set noDefaultStore(e){aB(this,rF.NO_DEFAULT_STORE,e)}attributeChangedCallback(e,t,i){var a,r,n,o,s,l,d,u,c,h,m,v;if(super.attributeChangedCallback(e,t,i),e===rF.NO_HOTKEYS)i!==t&&""===i?(this.hasAttribute(rF.HOTKEYS)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==t&&null===i&&this.enableHotkeys();else if(e===rF.HOTKEYS)rH(this,dz).value=i;else if(e===rF.DEFAULT_SUBTITLES&&i!==t)null==(a=rH(this,dZ))||a.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(rF.DEFAULT_SUBTITLES)}});else if(e===rF.DEFAULT_STREAM_TYPE)null==(n=rH(this,dZ))||n.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(r=this.getAttribute(rF.DEFAULT_STREAM_TYPE))?r:void 0}});else if(e===rF.LIVE_EDGE_OFFSET&&i!==t)null==(o=rH(this,dZ))||o.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(rF.LIVE_EDGE_OFFSET)?+this.getAttribute(rF.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(rF.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(rF.SEEK_TO_LIVE_OFFSET):this.hasAttribute(rF.LIVE_EDGE_OFFSET)?+this.getAttribute(rF.LIVE_EDGE_OFFSET):void 0}});else if(e===rF.SEEK_TO_LIVE_OFFSET&&i!==t)null==(s=rH(this,dZ))||s.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(rF.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(rF.SEEK_TO_LIVE_OFFSET):this.hasAttribute(rF.LIVE_EDGE_OFFSET)?+this.getAttribute(rF.LIVE_EDGE_OFFSET):void 0}});else if(e===rF.NO_AUTO_SEEK_TO_LIVE)null==(l=rH(this,dZ))||l.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(rF.NO_AUTO_SEEK_TO_LIVE)}});else if(e===rF.FULLSCREEN_ELEMENT){let e=i?null==(d=this.getRootNode())?void 0:d.getElementById(i):void 0;rW(this,dQ,e),null==(u=rH(this,dZ))||u.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===rF.LANG&&i!==t?(ae(i),null==(c=rH(this,dZ))||c.dispatch({type:"optionschangerequest",detail:{mediaLang:i}}
242)):e===rF.LOOP&&i!==t?null==(h=rH(this,dZ))||h.dispatch({type:iW.MEDIA_LOOP_REQUEST,detail:null!=i}):e===rF.NO_VOLUME_PREF&&i!==t?null==(m=rH(this,dZ))||m.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(rF.NO_VOLUME_PREF)}}):e===rF.NO_MUTED_PREF&&i!==t&&(null==(v=rH(this,dZ))||v.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(rF.NO_MUTED_PREF)}}))}connectedCallback(){var e,t,i;this.associateElement(this),rH(this,dZ)||this.hasAttribute(rF.NO_DEFAULT_STORE)||rq(this,d3,d4).call(this),null==(e=rH(this,dZ))||e.dispatch({type:"documentelementchangerequest",detail:af}),null==(t=rH(this,dZ))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement}),super.connectedCallback(),rH(this,dZ)&&!rH(this,d0)&&rW(this,d0,null==(i=rH(this,dZ))?void 0:i.subscribe(rH(this,dJ))),void 0!==rH(this,d2)&&rH(this,dZ)&&this.media&&setTimeout(()=>{var e,t,i;(null==(t=null==(e=this.media)?void 0:e.textTracks)?void 0:t.length)&&(null==(i=rH(this,dZ))||i.dispatch({type:iW.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:rH(this,d2)}))},0),this.hasAttribute(rF.NO_HOTKEYS)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,t,i,a,r,n;if(null==(e=super.disconnectedCallback)||e.call(this),this.disableHotkeys(),rH(this,dZ)){let e=rH(this,dZ).getState();rW(this,d2,!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)),null==(i=rH(this,dZ))||i.dispatch({type:"fullscreenelementchangerequest",detail:void 0}),null==(a=rH(this,dZ))||a.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(r=rH(this,dZ))||r.dispatch({type:iW.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})}rH(this,d0)&&(null==(n=rH(this,d0))||n.call(this),rW(this,d0,void 0)),this.unassociateElement(this),rH(this,dX)&&(rH(this,dX).remove(),rW(this,dX,null))}mediaSetCallback(e){var t;super.mediaSetCallback(e),null==(t=rH(this,dZ))||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),null==(t=rH(this,dZ))||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){r3(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;if(t.has(e))return;let i=r4(e,this.registerMediaStateReceiver.bind(this),this.unregisterMediaStateReceiver.bind(this));Object.values(iW).forEach(t=>{e.addEventListener(t,rH(this,d1))}),t.set(e,i)}unassociateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;t.has(e)&&(t.get(e)(),t.delete(e),Object.values(iW).forEach(t=>{e.removeEventListener(t,rH(this,d1))}))}registerMediaStateReceiver(e){if(!e)return;let t=this.mediaStateReceivers;!(t.indexOf(e)>-1)&&(t.push(e),rH(this,dZ)&&Object.entries(rH(this,dZ).getState()).forEach(([t,i])=>{r3([e],t,i)}))}unregisterMediaStateReceiver(e){let t=this.mediaStateReceivers,i=t.indexOf(e);i<0||t.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",rq(this,d9,d8))}disableHotkeys(){this.removeEventListener("keydown",rq(this,d9,d8)),this.removeEventListener("keyup",rH(this,d5))}get hotkeys(){return rH(this,dz)}set hotkeys(e){aH(this,rF.HOTKEYS,e)}keyboardShortcutHandler(e){var t,i,a,r,n,o,s,l,d;let u,c,h;let m=e.target;if(!((null!=(a=null!=(i=null==(t=m.getAttribute(rF.KEYS_USED))?void 0:t.split(" "))?i:null==m?void 0:m.keysUsed)?a:[]).map(e=>
242"Space"===e?" ":e).filter(Boolean).includes(e.key)||rH(this,dz).contains(`no${e.key.toLowerCase()}`)||" "===e.key&&rH(this,dz).contains("nospace"))&&!(e.shiftKey&&("/"===e.key||"?"===e.key)&&rH(this,dz).contains("noshift+/")))switch(e.key){case" ":case"k":u=rH(this,dZ).getState().mediaPaused?iW.MEDIA_PLAY_REQUEST:iW.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new av.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"m":u="off"===this.mediaStore.getState().mediaVolumeLevel?iW.MEDIA_UNMUTE_REQUEST:iW.MEDIA_MUTE_REQUEST,this.dispatchEvent(new av.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"f":u=this.mediaStore.getState().mediaIsFullscreen?iW.MEDIA_EXIT_FULLSCREEN_REQUEST:iW.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new av.CustomEvent(u,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new av.CustomEvent(iW.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{let e=this.hasAttribute(rF.KEYBOARD_BACKWARD_SEEK_OFFSET)?+this.getAttribute(rF.KEYBOARD_BACKWARD_SEEK_OFFSET):10;c=Math.max((null!=(r=this.mediaStore.getState().mediaCurrentTime)?r:0)-e,0),h=new av.CustomEvent(iW.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"ArrowRight":case"l":{let e=this.hasAttribute(rF.KEYBOARD_FORWARD_SEEK_OFFSET)?+this.getAttribute(rF.KEYBOARD_FORWARD_SEEK_OFFSET):10;c=Math.max((null!=(n=this.mediaStore.getState().mediaCurrentTime)?n:0)+e,0),h=new av.CustomEvent(iW.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"ArrowUp":{let e=this.hasAttribute(rF.KEYBOARD_UP_VOLUME_STEP)?+this.getAttribute(rF.KEYBOARD_UP_VOLUME_STEP):.025;c=Math.min((null!=(o=this.mediaStore.getState().mediaVolume)?o:1)+e,1),h=new av.CustomEvent(iW.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"ArrowDown":{let e=this.hasAttribute(rF.KEYBOARD_DOWN_VOLUME_STEP)?+this.getAttribute(rF.KEYBOARD_DOWN_VOLUME_STEP):.025;c=Math.max((null!=(s=this.mediaStore.getState().mediaVolume)?s:1)-e,0),h=new av.CustomEvent(iW.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break}case"<":c=Math.max((null!=(l=this.mediaStore.getState().mediaPlaybackRate)?l:1)-.25,.25).toFixed(2),h=new av.CustomEvent(iW.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break;case">":c=Math.min((null!=(d=this.mediaStore.getState().mediaPlaybackRate)?d:1)+.25,2).toFixed(2),h=new av.CustomEvent(iW.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:c}),this.dispatchEvent(h);break;case"/":case"?":e.shiftKey&&rq(this,d6,d7).call(this);break;case"p":u=this.mediaStore.getState().mediaIsPip?iW.MEDIA_EXIT_PIP_REQUEST:iW.MEDIA_ENTER_PIP_REQUEST,h=new av.CustomEvent(u,{composed:!0,bubbles:!0}),this.dispatchEvent(h)}}}dz=new WeakMap,dQ=new WeakMap,dZ=new WeakMap,dX=new WeakMap,dJ=new WeakMap,d0=new WeakMap,d1=new WeakMap,d2=new WeakMap,d3=new WeakSet,d4=function(){var e;this.mediaStore=rB({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(rF.DEFAULT_SUBTITLES),defaultDuration:this.hasAttribute(rF.DEFAULT_DURATION)?+this.getAttribute(rF.DEFAULT_DURATION):void 0,defaultStreamType:null!=(e=this.getAttribute(rF.DEFAULT_STREAM_TYPE))?e:void 0,liveEdgeOffset:this.hasAttribute(rF.LIVE_EDGE_OFFSET)?+this.getAttribute(rF.LIVE_EDGE_OFFSET):void 0,seekToLiveOffset:this.hasAttribute(rF.SEEK_TO_LIVE_OFFSET)?+this.getAttribute(rF.SEEK_TO_LIVE_OFFSET):this.hasAttribute(rF.LIVE_EDGE_OFFSET)?+this.getAttribute(rF.LIVE_EDGE_OFFSET):void 0,noAutoSeekToLive:this.hasAttribute(rF.NO_AUTO_SEEK_TO_LIVE),noVolumePref:this.hasAttribute(rF.NO_VOLUME_PREF),noMutedPref:this.hasAttribute(rF.NO_MUTED_PREF),noSubtitlesLangPref:this.hasAttribute(rF.NO_SUBTITLES_LANG_PREF)}})},d5=new WeakMap,d9=new WeakSet,d8=function(e){var t;let{metaKey:i,altKey:a,key:r,shiftKey:n}=e,o=n&&("/"===r||"?"===r);if(o&&(null==(t=rH(this,dX))?void 0:t.open)||i||a||!o&&!rK.includes(r)){this.removeEventListener("keyup",rH(this,d5));return}let s=e.target,l=s instanceof HTMLElement&&("media-volume-range"===s.tagName.toLowerCase()||"media-time-range"===s.tagName.toLowerCase());![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)||rH(this,dz).contains(`no${r.toLowerCase()}
242`)||" "===r&&rH(this,dz).contains("nospace")||l||e.preventDefault(),this.addEventListener("keyup",rH(this,d5),{once:!0})},d6=new WeakSet,d7=function(){rH(this,dX)||(rW(this,dX,af.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(rH(this,dX))),rH(this,dX).open=!0};let rY=Object.values(iV),rG=Object.values(iK),rz=e=>{var t,i,a,r;let{observedAttributes:n}=e.constructor;!n&&(null==(t=e.nodeName)?void 0:t.includes("-"))&&(av.customElements.upgrade(e),{observedAttributes:n}=e.constructor);let o=null==(r=null==(a=null==(i=null==e?void 0:e.getAttribute)?void 0:i.call(e,iq.MEDIA_CHROME_ATTRIBUTES))?void 0:a.split)?void 0:r.call(a,/\s+/);return Array.isArray(n||o)?(n||o).filter(e=>rY.includes(e)):[]},rQ=e=>{var t,i;return(null==(t=e.nodeName)?void 0:t.includes("-"))&&av.customElements.get(null==(i=e.nodeName)?void 0:i.toLowerCase())&&!(e instanceof av.customElements.get(e.nodeName.toLowerCase()))&&av.customElements.upgrade(e),rG.some(t=>t in e)},rZ=e=>rQ(e)||!!rz(e).length,rX=e=>{var t;return null==(t=null==e?void 0:e.join)?void 0:t.call(e,":")},rJ={[iV.MEDIA_SUBTITLES_LIST]:rt,[iV.MEDIA_SUBTITLES_SHOWING]:rt,[iV.MEDIA_SEEKABLE]:rX,[iV.MEDIA_BUFFERED]:e=>null==e?void 0:e.map(rX).join(" "),[iV.MEDIA_PREVIEW_COORDS]:e=>null==e?void 0:e.join(" "),[iV.MEDIA_RENDITION_LIST]:function(e){return null==e?void 0:e.map(i1).join(" ")},[iV.MEDIA_AUDIO_TRACK_LIST]:function(e){return null==e?void 0:e.map(i3).join(" ")}},r0=async(e,t,i)=>{var a,r;if(e.isConnected||await i8(0),"boolean"==typeof i||null==i)return aB(e,t,i);if("number"==typeof i)return aP(e,t,i);if("string"==typeof i)return aH(e,t,i);if(Array.isArray(i)&&!i.length)return e.removeAttribute(t);let n=null!=(r=null==(a=rJ[t])?void 0:a.call(rJ,i))?r:i;return e.setAttribute(t,n)},r1=e=>{var t;return!!(null==(t=e.closest)?void 0:t.call(e,'*[slot="media"]'))},r2=(e,t)=>{if(r1(e))return;let i=(e,t)=>{var i,a;rZ(e)&&t(e);let{children:r=[]}=null!=e?e:{};[...r,...null!=(a=null==(i=null==e?void 0:e.shadowRoot)?void 0:i.children)?a:[]].forEach(e=>r2(e,t))},a=null==e?void 0:e.nodeName.toLowerCase();if(a.includes("-")&&!rZ(e)){av.customElements.whenDefined(a).then(()=>{i(e,t)});return}i(e,t)},r3=(e,t,i)=>{e.forEach(e=>{if(t in e){e[t]=i;return}let a=rz(e),r=t.toLowerCase();a.includes(r)&&r0(e,r,i)})},r4=(e,t,i)=>{r2(e,t);let a=e=>{var i;t(null!=(i=null==e?void 0:e.composedPath()[0])?i:e.target)},r=e=>{var t;i(null!=(t=null==e?void 0:e.composedPath()[0])?t:e.target)};e.addEventListener(iW.REGISTER_MEDIA_STATE_RECEIVER,a),e.addEventListener(iW.UNREGISTER_MEDIA_STATE_RECEIVER,r);let n=[],o=e=>{let a=e.target;"media"!==a.name&&(n.forEach(e=>r2(e,i)),(n=[...a.assignedElements({flatten:!0})]).forEach(e=>r2(e,t)))};e.addEventListener("slotchange",o);let s=new MutationObserver(e=>{e.forEach(e=>{let{addedNodes:a=[],removedNodes:r=[],type:n,target:o,attributeName:s}=e;"childList"===n?(Array.prototype.forEach.call(a,e=>r2(e,t)),Array.prototype.forEach.call(r,e=>r2(e,i))):"attributes"===n&&s===iq.MEDIA_CHROME_ATTRIBUTES&&(rZ(o)?t(o):i(o))})});return s.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{r2(e,i),e.removeEventListener("slotchange",o),s.disconnect(),e.removeEventListener(iW.REGISTER_MEDIA_STATE_RECEIVER,a),e.removeEventListener(iW.UNREGISTER_MEDIA_STATE_RECEIVER,r)}};av.customElements.get("media-controller")||av.customElements.define("media-controller",rV);let r5="placement",r9="bounds";class r8 extends av.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!aO(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;let t=this.placement;if("left"===t||"right"===t){this.style.removeProperty("--media-tooltip-offset-x");return}let i=getComputedStyle(this),a=null!=(e=aR(this,"#"+this.bounds))?e:ak(this);if(!a)return;let{x:r,width:n}=a.getBoundingClientRect(),{x:o,width:s}=this.getBoundingClientRect(),l=i.getPropertyValue("--media-tooltip-offset-x"),d=l?parseFloat(l.replace("px","")):0,u=i.getPropertyValue("--media-tooltip-container-margin"),c=u?parseFloat(u.replace("px","")):0,h=o-r+d-c,m=o+s-(r+n)+d+c;if(h<0){this.style.setProperty("--media-tooltip-offset-x",`${h}px`);return}if(m>0){this.style.setProperty("--media-tooltip-offset-x",`${m}px`);return}this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}if(this.arrowEl=this.shadowRoot.querySelector("#arrow"),Object.prototype.hasOwnProperty.call(this,"placement")){let e=this.placement;delete this.placement,this.placement=e}}static get observedAttributes(){return[r5,r9]}get placement(){return a$(this,r5)}set placement(e){aH(this,r5,e)}get bounds(){return a$(this,r9)}
242set bounds(e){aH(this,r9,e)}}r8.shadowRootOptions={mode:"open"},r8.getTemplateHTML=function(e){return`
243    <style>
244      :host {
245        --_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7)));
246        --_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color));
247        --_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2);
248        --_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px);
249        --_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color));
250        position: relative;
251        pointer-events: none;
252        display: var(--media-tooltip-display, inline-flex);
253        justify-content: center;
254        align-items: center;
255        box-sizing: border-box;
256        z-index: var(--media-tooltip-z-index, 1);
257        background: var(--_tooltip-background);
258        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
259        font: var(--media-font,
260          var(--media-font-weight, 400)
261          var(--media-font-size, 13px) /
262          var(--media-text-content-height, var(--media-control-height, 18px))
263          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
264        padding: var(--media-tooltip-padding, .35em .7em);
265        border: var(--media-tooltip-border, none);
266        border-radius: var(--media-tooltip-border-radius, 5px);
267        filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2)));
268        white-space: var(--media-tooltip-white-space, nowrap);
269      }
270
271      :host([hidden]) {
272        display: none;
273      }
274
275      img, svg {
276        display: inline-block;
277      }
278
279      #arrow {
280        position: absolute;
281        width: 0px;
282        height: 0px;
283        border-style: solid;
284        display: var(--media-tooltip-arrow-display, block);
285      }
286
287      :host(:not([placement])),
288      :host([placement="top"]) {
289        position: absolute;
290        bottom: calc(100% + var(--media-tooltip-distance, 12px));
291        left: 50%;
292        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
293      }
294      :host(:not([placement])) #arrow,
295      :host([placement="top"]) #arrow {
296        top: 100%;
297        left: 50%;
298        border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width);
299        border-color: var(--_tooltip-arrow-background) transparent transparent transparent;
300        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
301      }
302
303      :host([placement="right"]) {
304        position: absolute;
305        left: calc(100% + var(--media-tooltip-distance, 12px));
306        top: 50%;
307        transform: translate(0, -50%);
308      }
309      :host([placement="right"]) #arrow {
310        top: 50%;
311        right: 100%;
312        border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0;
313        border-color: transparent var(--_tooltip-arrow-background) transparent transparent;
314        transform: translate(0, -50%);
315      }
316
317      :host([placement="bottom"]) {
318        position: absolute;
319        top: calc(100% + var(--media-tooltip-distance, 12px));
320        left: 50%;
321        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
322      }
323      :host([placement="bottom"]) #arrow {
324        bottom: 100%;
325        left: 50%;
326        border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width);
327        border-color: transparent transparent var(--_tooltip-arrow-background) transparent;
328        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
329      }
330
331      :host([placement="left"]) {
332        position: absolute;
333        right: calc(100% + var(--media-tooltip-distance, 12px));
334        top: 50%;
335        transform: translate(0, -50%);
336      }
337      :host([placement="left"]) #arrow {
338        top: 50%;
339        left: 100%;
340        border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height);
341        border-color: transparent transparent transparent var(--_tooltip-arrow-background);
342        transform: translate(0, -50%);
343      }
344      
345      :host([placement="none"]) #arrow {
346        display: none;
347      }
348    </style>
349    <slot></slot>
350    <div id="arrow"></div>
351  `},av.customElements.get("media-tooltip")||av.customElements.define("media-tooltip",r8);var r6=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},r7=(e,t,i)=>
351(r6(e,t,"read from private field"),i?i.call(e):t.get(e)),ne=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nt=(e,t,i,a)=>(r6(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ni=(e,t,i)=>(r6(e,t,"access private method"),i);let na={TOOLTIP_PLACEMENT:"tooltipplacement",DISABLED:"disabled",NO_TOOLTIP:"notooltip"};class nr extends av.HTMLElement{constructor(){if(super(),ne(this,un),ne(this,ue,void 0),this.preventClick=!1,this.tooltipEl=null,ne(this,ut,e=>{this.preventClick||this.handleClick(e),setTimeout(r7(this,ui),0)}),ne(this,ui,()=>{var e,t;null==(t=null==(e=this.tooltipEl)?void 0:e.updateXOffset)||t.call(e)}),ne(this,ua,e=>{let{key:t}=e;if(!this.keysUsed.includes(t)){this.removeEventListener("keyup",r7(this,ua));return}this.preventClick||this.handleClick(e)}),ne(this,ur,e=>{let{metaKey:t,altKey:i,key:a}=e;if(t||i||!this.keysUsed.includes(a)){this.removeEventListener("keyup",r7(this,ua));return}this.addEventListener("keyup",r7(this,ua),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.tooltipEl=this.shadowRoot.querySelector("media-tooltip")}static get observedAttributes(){return["disabled",na.TOOLTIP_PLACEMENT,iq.MEDIA_CONTROLLER,iV.MEDIA_LANG]}enable(){this.addEventListener("click",r7(this,ut)),this.addEventListener("keydown",r7(this,ur)),this.tabIndex=0}disable(){this.removeEventListener("click",r7(this,ut)),this.removeEventListener("keydown",r7(this,ur)),this.removeEventListener("keyup",r7(this,ua)),this.tabIndex=-1}attributeChangedCallback(e,t,i){var a,r,n,o,s;e===iq.MEDIA_CONTROLLER?(t&&(null==(r=null==(a=r7(this,ue))?void 0:a.unassociateElement)||r.call(a,this),nt(this,ue,null)),i&&this.isConnected&&(nt(this,ue,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=r7(this,ue))?void 0:o.associateElement)||s.call(o,this))):"disabled"===e&&i!==t?null==i?this.enable():this.disable():e===na.TOOLTIP_PLACEMENT&&this.tooltipEl&&i!==t?this.tooltipEl.placement=i:e===iV.MEDIA_LANG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),r7(this,ui).call(this)}connectedCallback(){var e,t,i;let{style:a}=ax(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");let r=this.getAttribute(iq.MEDIA_CONTROLLER);r&&(nt(this,ue,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=r7(this,ue))?void 0:t.associateElement)||i.call(t,this)),av.customElements.whenDefined("media-tooltip").then(()=>ni(this,un,uo).call(this))}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=r7(this,ue))?void 0:e.unassociateElement)||t.call(e,this),nt(this,ue,null),this.removeEventListener("mouseenter",r7(this,ui)),this.removeEventListener("focus",r7(this,ui)),this.removeEventListener("click",r7(this,ut))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return a$(this,na.TOOLTIP_PLACEMENT)}set tooltipPlacement(e){aH(this,na.TOOLTIP_PLACEMENT,e)}get mediaController(){return a$(this,iq.MEDIA_CONTROLLER)}set mediaController(e){aH(this,iq.MEDIA_CONTROLLER,e)}get disabled(){return aU(this,na.DISABLED)}set disabled(e){aB(this,na.DISABLED,e)}get noTooltip(){return aU(this,na.NO_TOOLTIP)}set noTooltip(e){aB(this,na.NO_TOOLTIP,e)}handleClick(e){}}ue=new WeakMap,ut=new WeakMap,ui=new WeakMap,ua=new WeakMap,ur=new WeakMap,un=new WeakSet,uo=function(){this.addEventListener("mouseenter",r7(this,ui)),this.addEventListener("focus",r7(this,ui)),this.addEventListener("click",r7(this,ut));let e=this.tooltipPlacement;e&&this.tooltipEl&&(this.tooltipEl.placement=e)},nr.shadowRootOptions={mode:"open"},nr.getTemplateHTML=function(e,t={}){return`
352    <style>
353      :host {
354        position: relative;
355        font: var(--media-font,
356          var(--media-font-weight, bold)
357          var(--media-font-size, 14px) /
358          var(--media-text-content-height, var(--media-control-height, 24px))
359          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
360        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
361        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
362        padding: var(--media-button-padding, var(--media-control-padding, 10px));
363        justify-content: var(--media-button-justify-content, center);
364        display: inline-flex;
365        align-items: center;
366        vertical-align: middle;
367        box-sizing: border-box;
368        transition: background .15s linear;
369        pointer-events: auto;
370        cursor: var(--media-cursor, pointer);
371        -webkit-tap-highlight-color: transparent;
372      }
373
374      
375      :host(:focus-visible) {
376        box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
377        outline: 0;
378      }
379      
380      :host(:where(:focus)) {
381        box-shadow: none;
382        outline: 0;
383      }
384
385      :host(:hover) {
386        background: var(--media-control-hover-background, rgba(50 50 70 / .7));
387      }
388
389      svg, img, ::slotted(svg), ::slotted(img) {
390        width: var(--media-button-icon-width);
391        height: var(--media-button-icon-height, var(--media-control-height, 24px));
392        transform: var(--media-button-icon-transform);
393        transition: var(--media-button-icon-transition);
394        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
395        vertical-align: middle;
396        max-width: 100%;
397        max-height: 100%;
398        min-width: 100%;
399      }
400
401      media-tooltip {
402        
403        max-width: 0;
404        overflow-x: clip;
405        opacity: 0;
406        transition: opacity .3s, max-width 0s 9s;
407      }
408
409      :host(:hover) media-tooltip,
410      :host(:focus-visible) media-tooltip {
411        max-width: 100vw;
412        opacity: 1;
413        transition: opacity .3s;
414      }
415
416      :host([notooltip]) slot[name="tooltip"] {
417        display: none;
418      }
419    </style>
420
421    ${this.getSlotTemplateHTML(e,t)}
422
423    <slot name="tooltip">
424      <media-tooltip part="tooltip" aria-hidden="true">
425        <template shadowrootmode="${r8.shadowRootOptions.mode}">
426          ${r8.getTemplateHTML({})}
427        </template>
428        <slot name="tooltip-content">
429          ${this.getTooltipContentHTML(e)}
430        </slot>
431      </media-tooltip>
432    </slot>
433  `},nr.getSlotTemplateHTML=function(e,t){return`
434    <slot></slot>
435  `},nr.getTooltipContentHTML=function(){return""},av.customElements.get("media-chrome-button")||av.customElements.define("media-chrome-button",nr);let nn=`<svg aria-hidden="true" viewBox="0 0 26 24">
436  <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>
437</svg>
438`,no=e=>{let t=e.mediaIsAirplaying?ai("stop airplay"):ai("start airplay");e.setAttribute("aria-label",t)};class ns extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_IS_AIRPLAYING,iV.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),no(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_IS_AIRPLAYING&&no(this)}get mediaIsAirplaying(){return aU(this,iV.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){aB(this,iV.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return a$(this,iV.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){aH(this,iV.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){let e=new av.CustomEvent(iW.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}}ns.getSlotTemplateHTML=function(e){return`
439    <style>
440      :host([${iV.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) {
441        display: none !important;
442      }
443
444      
445      :host(:not([${iV.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) {
446        display: none !important;
447      }
448
449      :host([${iV.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter],
450      :host(:not([${iV.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] {
451        display: none;
452      }
453    </style>
454
455    <slot name="icon">
456      <slot name="enter">${nn}</slot>
457      <slot name="exit">${nn}</slot>
458    </slot>
459  `},ns.getTooltipContentHTML=function(){return`
460    <slot name="tooltip-enter">${ai("start airplay")}</slot>
461    <slot name="tooltip-exit">${ai("stop airplay")}</slot>
462  `},av.customElements.get("media-airplay-button")||av.customElements.define("media-airplay-button",ns);let nl=`<svg aria-hidden="true" viewBox="0 0 26 24">
463  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 
4630 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
464</svg>`,nd=`<svg aria-hidden="true" viewBox="0 0 26 24">
465  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
466</svg>`,nu=e=>{e.setAttribute("aria-checked",ro(e).toString())};class nc extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_SUBTITLES_LIST,iV.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","button"),this.setAttribute("aria-label",ai("closed captions")),nu(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_SUBTITLES_SHOWING&&nu(this)}get mediaSubtitlesList(){return nh(this,iV.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){np(this,iV.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return nh(this,iV.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){np(this,iV.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new av.CustomEvent(iW.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}nc.getSlotTemplateHTML=function(e){return`
467    <style>
468      :host([aria-checked="true"]) slot[name=off] {
469        display: none !important;
470      }
471
472      
473      :host(:not([aria-checked="true"])) slot[name=on] {
474        display: none !important;
475      }
476
477      :host([aria-checked="true"]) slot[name=tooltip-enable],
478      :host(:not([aria-checked="true"])) slot[name=tooltip-disable] {
479        display: none;
480      }
481    </style>
482
483    <slot name="icon">
484      <slot name="on">${nl}</slot>
485      <slot name="off">${nd}</slot>
486    </slot>
487  `},nc.getTooltipContentHTML=function(){return`
488    <slot name="tooltip-enable">${ai("Enable captions")}</slot>
489    <slot name="tooltip-disable">${ai("Disable captions")}</slot>
490  `};let nh=(e,t)=>{let i=e.getAttribute(t);return i?a6(i):[]},np=(e,t,i)=>{if(!(null==i?void 0:i.length)){e.removeAttribute(t);return}let a=rt(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};av.customElements.get("media-captions-button")||av.customElements.define("media-captions-button",nc);let nm=e=>{let t=e.mediaIsCasting?ai("stop casting"):ai("start casting");e.setAttribute("aria-label",t)};class nv extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_IS_CASTING,iV.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),nm(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_IS_CASTING&&nm(this)}get mediaIsCasting(){return aU(this,iV.MEDIA_IS_CASTING)}set mediaIsCasting(e){aB(this,iV.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return a$(this,iV.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){aH(this,iV.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){let e=this.mediaIsCasting?iW.MEDIA_EXIT_CAST_REQUEST:iW.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new av.CustomEvent(e,{composed:!0,bubbles:!0}))}}nv.getSlotTemplateHTML=function(e){return`
491    <style>
492      :host([${iV.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) {
493        display: none !important;
494      }
495
496      
497      :host(:not([${iV.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) {
498        display: none !important;
499      }
500
501      :host([${iV.MEDIA_IS_CASTING}]) slot[name=tooltip-enter],
502      :host(:not([${iV.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] {
503        display: none;
504      }
505    </style>
506
507    <slot name="icon">
508      <slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot>
509      <slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot>
510    </slot>
511  `},nv.getTooltipContentHTML=function(){return`
512    <slot name="tooltip-enter">${ai("Start casting")}</slot>
513    <slot name="tooltip-exit">${ai("Stop casting")}</slot>
514  `},av.customElements.get("media-cast-button")||av.customElements.define("media-cast-button",nv);var nf=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nb=(e,t,i)=>(nf(e,t,"read from private field"),i?i.call(e):t.get(e)),nE=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},ny=(e,t,i,a)=>(nf(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ng=(e,t,i)=>(nf(e,t,"access private method"),i);let n_="open";class nT extends av.HTMLElement{constructor(){super(),nE(this,uu),nE(this,uh),nE(this,um),nE(this,uf),nE(this,uE),nE(this,ug),nE(this,us,!1),nE(this,ul,null),nE(this,ud,null)}static get observedAttributes(){return[n_,"anchor"]}get open(){return aU(this,n_)}set open(e){aB(this,n_,e)}handleEvent(e){switch(e.type){case"invoke":ng(this,uf,ub).call(this,e);break;case"focusout":ng(this,uE,uy).call(this,e);break;case"keydown":ng(this,ug,u_).call(this,e)}}connectedCallback(){ng(this,uu,uc).call(this),this.role||(this.role="dialog"),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}disconnectedCallback(){this.removeEventListener("invoke",this),this.removeEventListener("focusout",this),this.removeEventListener("keydown",this)}attributeChangedCallback(e,t,i){ng(this,uu,uc).call(this),e===n_&&i!==t&&(this.open?ng(this,uh,up).call(this):ng(this,um,uv).call(this))}focus(){ny(this,ul,aC());let e=!this.dispatchEvent(new Event("focus",{composed:!0,cancelable:!0})),t=!this.dispatchEvent(new Event("focusin",{composed:!0,bubbles:!0,cancelable:!0}));if(e||t)return;
514let i=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==i||i.focus()}get keysUsed(){return["Escape","Tab"]}}us=new WeakMap,ul=new WeakMap,ud=new WeakMap,uu=new WeakSet,uc=function(){if(!nb(this,us)&&(ny(this,us,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e),queueMicrotask(()=>{let{style:e}=ax(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}},uh=new WeakSet,up=function(){var e;null==(e=nb(this,ud))||e.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})},um=new WeakSet,uv=function(){var e;null==(e=nb(this,ud))||e.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},uf=new WeakSet,ub=function(e){ny(this,ud,e.relatedTarget),aL(this,e.relatedTarget)||(this.open=!this.open)},uE=new WeakSet,uy=function(e){var t;!aL(this,e.relatedTarget)&&(null==(t=nb(this,ul))||t.focus(),nb(this,ud)&&nb(this,ud)!==e.relatedTarget&&this.open&&(this.open=!1))},ug=new WeakSet,u_=function(e){var t,i,a,r,n;let{key:o,ctrlKey:s,altKey:l,metaKey:d}=e;!s&&!l&&!d&&this.keysUsed.includes(o)&&(e.preventDefault(),e.stopPropagation(),"Tab"===o?(e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(r=null==(a=this.nextElementSibling)?void 0:a.focus)||r.call(a),this.blur()):"Escape"===o&&(null==(n=nb(this,ul))||n.focus(),this.open=!1))},nT.shadowRootOptions={mode:"open"},nT.getTemplateHTML=function(e){return`
515    <style>
516      :host {
517        font: var(--media-font,
518          var(--media-font-weight, normal)
519          var(--media-font-size, 14px) /
520          var(--media-text-content-height, var(--media-control-height, 24px))
521          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
522        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
523        display: var(--media-dialog-display, inline-flex);
524        justify-content: center;
525        align-items: center;
526        
527        transition-behavior: allow-discrete;
528        visibility: hidden;
529        opacity: 0;
530        transform: translateY(2px) scale(.99);
531        pointer-events: none;
532      }
533
534      :host([open]) {
535        transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out;
536        visibility: visible;
537        opacity: 1;
538        transform: translateY(0) scale(1);
539        pointer-events: auto;
540      }
541
542      #content {
543        display: flex;
544        position: relative;
545        box-sizing: border-box;
546        width: min(320px, 100%);
547        word-wrap: break-word;
548        max-height: 100%;
549        overflow: auto;
550        text-align: center;
551        line-height: 1.4;
552      }
553    </style>
554    ${this.getSlotTemplateHTML(e)}
555  `},nT.getSlotTemplateHTML=function(e){return`
556    <slot id="content"></slot>
557  `},av.customElements.get("media-chrome-dialog")||av.customElements.define("media-chrome-dialog",nT);var nk=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nA=(e,t,i)=>(nk(e,t,"read from private field"),i?i.call(e):t.get(e)),nw=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nS=(e,t,i,a)=>(nk(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),nI=(e,t,i)=>(nk(e,t,"access private method"),i);class nL extends av.HTMLElement{constructor(){if(super(),nw(this,uD),nw(this,ux),nw(this,uN),nw(this,uU),nw(this,u$),nw(this,uj),nw(this,uq),nw(this,uF),nw(this,uT,void 0),nw(this,uk,void 0),nw(this,uA,void 0),nw(this,uw,void 0),nw(this,uS,{}),nw(this,uI,[]),nw(this,uL,()=>{if(this.range.matches(":focus-visible")){let{style:e}=ax(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),nw(this,uR,()=>{let{style:e}=ax(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),nw(this,uC,()=>{let e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.container=this.shadowRoot.querySelector("#container"),nS(this,uA,this.shadowRoot.querySelector("#startpoint")),nS(this,uw,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",iq.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,r,n,o,s;e===iq.MEDIA_CONTROLLER?(t&&(null==(r=null==(a=nA(this,uT))?void 0:a.unassociateElement)||r.call(a,this),nS(this,uT,null)),i&&this.isConnected&&(nS(this,uT,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=nA(this,uT))?void 0:o.associateElement)||s.call(o,this))):("disabled"===e||"aria-disabled"===e&&t!==i)&&(null==i?(this.range.removeAttribute(e),nI(this,ux,uM).call(this)):(this.range.setAttribute(e,i),nI(this,uN,uP).call(this)))}connectedCallback(){var e,t,i;let{style:a}=ax(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),nA(this,uS).pointer=ax(this.shadowRoot,"#pointer"),nA(this,uS).progress=ax(this.shadowRoot,"#progress"),nA(this,uS).thumb=ax(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),nA(this,uS).activeSegment=ax(this.shadowRoot,"#segments-clipping rect:nth-child(0)");let r=this.getAttribute(iq.MEDIA_CONTROLLER);r&&(nS(this,uT,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=nA(this,uT))?void 0:t.associateElement)||i.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",nA(this,uL)),this.shadowRoot.addEventListener("focusout",nA(this,uR)),nI(this,ux,uM).call(this),ag(this.container,nA(this,uC))}disconnectedCallback(){var e,t;nI(this,uN,uP).call(this),null==(t=null==(e=nA(this,uT))?void 0:e.unassociateElement)||t.call(e,this),nS(this,uT,null),this.shadowRoot.removeEventListener("focusin",nA(this,uL)),this.shadowRoot.removeEventListener("focusout",nA(this,uR)),a_(this.container,nA(this,uC))}updatePointerBar(e){var t;null==(t=nA(this,uS).pointer)||t.style.setProperty("width",`${100*this.getPointerRatio(e)}%`)}updateBar(){var e,t;let i=100*this.range.valueAsNumber;null==(e=nA(this,uS).progress)||e.style.setProperty("width",`${i}%`),null==(t=nA(this,uS).thumb)||t.style.setProperty("left",`${i}%`)}updateSegments(e){let t=this.shadowRoot.querySelector("#segments-clipping");if(t.textContent="",this.container.classList.toggle("segments",!!(null==e?void 0:e.length)),!(null==e?void 0:e.length))return;let i=[...new Set([+this.range.min,...e.flatMap(e=>[e.start,e.end]),+this.range.max])];nS(this,uI,[...i]);let a=i.pop();for(let[e,r]of i.entries()){let[n,o]=[0===e,e===i.length-1],s=n?"calc(var(--segments-gap) / -1)":`${100*r}%`,l=o?a:i[e+1],d=`calc(${(l-r)*100}%${n||o?"":" - var(--segments-gap)"})`,u=af.createElementNS("http://www.w3.org/2000/svg","rect"),c=aM(this.shadowRoot,`#segments-clipping rect:nth-child(${e+1})`);c.style.setProperty("x",s),c.style.setProperty("width",d),t.append(u)}}getPointerRatio(e){return function(e,t,i,a){let r=a.x-i.x,n=a.y-i.y,o=r*r+n*n;return 0===o?0:Math.max(0,Math.min(1,((e-i.x)*r+(t-i.y)*n)/o))}(e.clientX,e.clientY,nA(this,uA).getBoundingClientRect(),nA(this,uw).getBoundingClientRect())}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":nI(this,uF,uV).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":nI(this,u$,uH).call(this,e);break;case"pointerdown":nI(this,uU,uB).call(this,e);break;case"pointerup":nI(this,uj,uW).call(this);break;case"pointerleave":nI(this,uq,uK).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}
557uT=new WeakMap,uk=new WeakMap,uA=new WeakMap,uw=new WeakMap,uS=new WeakMap,uI=new WeakMap,uL=new WeakMap,uR=new WeakMap,uC=new WeakMap,uD=new WeakSet,uO=function(e){let t=nA(this,uS).activeSegment;if(!t)return;let i=this.getPointerRatio(e),a=nA(this,uI).findIndex((e,t,a)=>{let r=a[t+1];return null!=r&&i>=e&&i<=r}),r=`#segments-clipping rect:nth-child(${a+1})`;t.selectorText==r&&t.style.transform||(t.selectorText=r,t.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},ux=new WeakSet,uM=function(){!this.hasAttribute("disabled")&&this.isConnected&&(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},uN=new WeakSet,uP=function(){var e,t;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),this.removeEventListener("pointerleave",this),null==(e=av.window)||e.removeEventListener("pointerup",this),null==(t=av.window)||t.removeEventListener("pointermove",this)},uU=new WeakSet,uB=function(e){var t;nS(this,uk,e.composedPath().includes(this.range)),null==(t=av.window)||t.addEventListener("pointerup",this,{once:!0})},u$=new WeakSet,uH=function(e){var t;"mouse"!==e.pointerType&&nI(this,uU,uB).call(this,e),this.addEventListener("pointerleave",this,{once:!0}),null==(t=av.window)||t.addEventListener("pointermove",this)},uj=new WeakSet,uW=function(){var e;null==(e=av.window)||e.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},uq=new WeakSet,uK=function(){var e,t;this.removeEventListener("pointerleave",this),null==(e=av.window)||e.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(t=nA(this,uS).activeSegment)||t.style.removeProperty("transform")},uF=new WeakSet,uV=function(e){("pen"!==e.pointerType||0!==e.buttons)&&(this.toggleAttribute("dragging",1===e.buttons||"mouse"!==e.pointerType),this.updatePointerBar(e),nI(this,uD,uO).call(this,e),this.dragging&&("mouse"!==e.pointerType||!nA(this,uk))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(e),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},nL.shadowRootOptions={mode:"open"},nL.getTemplateHTML=function(e){return`
558    <style>
559      :host {
560        --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
561        --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
562
563        box-shadow: var(--_focus-visible-box-shadow, none);
564        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
565        height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
566        display: inline-flex;
567        align-items: center;
568        
569        vertical-align: middle;
570        box-sizing: border-box;
571        position: relative;
572        width: 100px;
573        transition: background .15s linear;
574        cursor: var(--media-cursor, pointer);
575        pointer-events: auto;
576        touch-action: none; 
577      }
578
579      
580      input[type=range]:focus {
581        outline: 0;
582      }
583      input[type=range]:focus::-webkit-slider-runnable-track {
584        outline: 0;
585      }
586
587      :host(:hover) {
588        background: var(--media-control-hover-background, rgb(50 50 70 / .7));
589      }
590
591      #leftgap {
592        padding-left: var(--media-range-padding-left, var(--_media-range-padding));
593      }
594
595      #rightgap {
596        padding-right: var(--media-range-padding-right, var(--_media-range-padding));
597      }
598
599      #startpoint,
600      #endpoint {
601        position: absolute;
602      }
603
604      #endpoint {
605        right: 0;
606      }
607
608      #container {
609        
610        width: var(--media-range-track-width, 100%);
611        transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
612        position: relative;
613        height: 100%;
614        display: flex;
615        align-items: center;
616        min-width: 40px;
617      }
618
619      #range {
620        
621        display: var(--media-time-range-hover-display, block);
622        bottom: var(--media-time-range-hover-bottom, -7px);
623        height: var(--media-time-range-hover-height, max(100% + 7px, 25px));
624        width: 100%;
625        position: absolute;
626        cursor: var(--media-cursor, pointer);
627
628        -webkit-appearance: none; 
629        -webkit-tap-highlight-color: transparent;
630        background: transparent; 
631        margin: 0;
632        z-index: 1;
633      }
634
635      @media (hover: hover) {
636        #range {
637          bottom: var(--media-time-range-hover-bottom, -5px);
638          height: var(--media-time-range-hover-height, max(100% + 5px
vendor: 4,756 bytes, lines 638-793
638, 20px));
639        }
640      }
641
642      
643      
644      #range::-webkit-slider-thumb {
645        -webkit-appearance: none;
646        background: transparent;
647        width: .1px;
648        height: .1px;
649      }
650
651      
652      #range::-moz-range-thumb {
653        background: transparent;
654        border: transparent;
655        width: .1px;
656        height: .1px;
657      }
658
659      #appearance {
660        height: var(--media-range-track-height, 4px);
661        display: flex;
662        flex-direction: column;
663        justify-content: center;
664        width: 100%;
665        position: absolute;
666        
667        will-change: transform;
668      }
669
670      #track {
671        background: var(--media-range-track-background, rgb(255 255 255 / .2));
672        border-radius: var(--media-range-track-border-radius, 1px);
673        border: var(--media-range-track-border, none);
674        outline: var(--media-range-track-outline);
675        outline-offset: var(--media-range-track-outline-offset);
676        backdrop-filter: var(--media-range-track-backdrop-filter);
677        -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
678        box-shadow: var(--media-range-track-box-shadow, none);
679        position: absolute;
680        width: 100%;
681        height: 100%;
682        overflow: hidden;
683      }
684
685      #progress,
686      #pointer {
687        position: absolute;
688        height: 100%;
689        will-change: width;
690      }
691
692      #progress {
693        background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
694        transition: var(--media-range-track-transition);
695      }
696
697      #pointer {
698        background: var(--media-range-track-pointer-background);
699        border-right: var(--media-range-track-pointer-border-right);
700        transition: visibility .25s, opacity .25s;
701        visibility: hidden;
702        opacity: 0;
703      }
704
705      @media (hover: hover) {
706        :host(:hover) #pointer {
707          transition: visibility .5s, opacity .5s;
708          visibility: visible;
709          opacity: 1;
710        }
711      }
712
713      #thumb,
714      ::slotted([slot=thumb]) {
715        width: var(--media-range-thumb-width, 10px);
716        height: var(--media-range-thumb-height, 10px);
717        transition: var(--media-range-thumb-transition);
718        transform: var(--media-range-thumb-transform, none);
719        opacity: var(--media-range-thumb-opacity, 1);
720        translate: -50%;
721        position: absolute;
722        left: 0;
723        cursor: var(--media-cursor, pointer);
724      }
725
726      #thumb {
727        border-radius: var(--media-range-thumb-border-radius, 10px);
728        background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
729        box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
730        border: var(--media-range-thumb-border, none);
731      }
732
733      :host([disabled]) #thumb {
734        background-color: #777;
735      }
736
737      .segments #appearance {
738        height: var(--media-range-segment-hover-height, 7px);
739      }
740
741      #track {
742        clip-path: url(#segments-clipping);
743      }
744
745      #segments {
746        --segments-gap: var(--media-range-segments-gap, 2px);
747        position: absolute;
748        width: 100%;
749        height: 100%;
750      }
751
752      #segments-clipping {
753        transform: translateX(calc(var(--segments-gap) / 2));
754      }
755
756      #segments-clipping:empty {
757        display: none;
758      }
759
760      #segments-clipping rect {
761        height: var(--media-range-track-height, 4px);
762        y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);
763        transition: var(--media-range-segment-transition, transform .1s ease-in-out);
764        transform: var(--media-range-segment-transform, scaleY(1));
765        transform-origin: center;
766      }
767
768      /* Visible label for accessibility - positioned off-screen but technically visible (Firefox requires visible labels) */
769      #range-label {
770        position: absolute;
771        left: -10000px;
772        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
773        pointer-events: none;
774      }
775    </style>
776    <div id="leftgap"></div>
777    <div id="container">
778      <div id="startpoint"></div>
779      <div id="endpoint"></div>
780      <div id="appearance">
781        <div id="track" part="track">
782          <div id="pointer"></div>
783          <div id="progress" part="progress"></div>
784        </div>
785        <slot name="thumb">
786          <div id="thumb" part="thumb"></div>
787        </slot>
788        <svg id="segments" aria-hidden="true"><clipPath id="segments-clipping"></clipPath></svg>
789      </div>
790        <input id="range" type="range" min="0" max="1" step="any" value="0">
791        <label for="range" id="range-label"></label>
792
793      ${this.getContainerTemplateHTML(
793e)}
794    </div>
795    <div id="rightgap"></div>
796  `},nL.getContainerTemplateHTML=function(e){return""},av.customElements.get("media-chrome-range")||av.customElements.define("media-chrome-range",nL);var nR=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nC=(e,t,i)=>(nR(e,t,"read from private field"),i?i.call(e):t.get(e)),nD=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nO=(e,t,i,a)=>(nR(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class nx extends av.HTMLElement{constructor(){if(super(),nD(this,uY,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[iq.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,r,n,o,s;e===iq.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=nC(this,uY))?void 0:a.unassociateElement)||r.call(a,this),nO(this,uY,null)),i&&this.isConnected&&(nO(this,uY,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=nC(this,uY))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,i;let a=this.getAttribute(iq.MEDIA_CONTROLLER);a&&(nO(this,uY,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=nC(this,uY))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=nC(this,uY))?void 0:e.unassociateElement)||t.call(e,this),nO(this,uY,null)}}uY=new WeakMap,nx.shadowRootOptions={mode:"open"},nx.getTemplateHTML=function(e){return`
797    <style>
798      :host {
799        
800        box-sizing: border-box;
801        display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
802        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
803        --media-loading-indicator-icon-height: 44px;
804      }
805
806      ::slotted(media-time-range),
807      ::slotted(media-volume-range) {
808        min-height: 100%;
809      }
810
811      ::slotted(media-time-range),
812      ::slotted(media-clip-selector) {
813        flex-grow: 1;
814      }
815
816      ::slotted([role="menu"]) {
817        position: absolute;
818      }
819    </style>
820
821    <slot></slot>
822  `},av.customElements.get("media-control-bar")||av.customElements.define("media-control-bar",nx);var nM=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nN=(e,t,i)=>(nM(e,t,"read from private field"),i?i.call(e):t.get(e)),nP=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nU=(e,t,i,a)=>(nM(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);
822class nB extends av.HTMLElement{constructor(){if(super(),nP(this,uG,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[iq.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,r,n,o,s;e===iq.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=nN(this,uG))?void 0:a.unassociateElement)||r.call(a,this),nU(this,uG,null)),i&&this.isConnected&&(nU(this,uG,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=nN(this,uG))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,i;let{style:a}=ax(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);let r=this.getAttribute(iq.MEDIA_CONTROLLER);r&&(nU(this,uG,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=nN(this,uG))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=nN(this,uG))?void 0:e.unassociateElement)||t.call(e,this),nU(this,uG,null)}}uG=new WeakMap,nB.shadowRootOptions={mode:"open"},nB.getTemplateHTML=function(e,t={}){return`
823    <style>
824      :host {
825        font: var(--media-font,
826          var(--media-font-weight, normal)
827          var(--media-font-size, 14px) /
828          var(--media-text-content-height, var(--media-control-height, 24px))
829          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
830        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
831        background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
832        padding: var(--media-control-padding, 10px);
833        display: inline-flex;
834        justify-content: center;
835        align-items: center;
836        vertical-align: middle;
837        box-sizing: border-box;
838        text-align: center;
839        pointer-events: auto;
840      }
841
842      
843      :host(:focus-visible) {
844        box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
845        outline: 0;
846      }
847
848      
849      :host(:where(:focus)) {
850        box-shadow: none;
851        outline: 0;
852      }
853    </style>
854
855    ${this.getSlotTemplateHTML(e,t)}
856  `},nB.getSlotTemplateHTML=function(e,t){return`
857    <slot></slot>
858  `},av.customElements.get("media-text-display")||av.customElements.define("media-text-display",nB);var n$=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nH=(e,t,i)=>(n$(e,t,"read from private field"),i?i.call(e):t.get(e)),nj=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nW=(e,t,i,a)=>(n$(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);
858class nq extends nB{constructor(){var e;super(),nj(this,uz,void 0),nW(this,uz,this.shadowRoot.querySelector("slot")),nH(this,uz).textContent=ao(null!=(e=this.mediaDuration)?e:0)}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_DURATION]}attributeChangedCallback(e,t,i){e===iV.MEDIA_DURATION&&(nH(this,uz).textContent=ao(+i)),super.attributeChangedCallback(e,t,i)}get mediaDuration(){return aN(this,iV.MEDIA_DURATION)}set mediaDuration(e){aP(this,iV.MEDIA_DURATION,e)}}uz=new WeakMap,nq.getSlotTemplateHTML=function(e,t){return`
859    <slot>${ao(t.mediaDuration)}</slot>
860  `},av.customElements.get("media-duration-display")||av.customElements.define("media-duration-display",nq);let nK={2:ai("Network Error"),3:ai("Decode Error"),4:ai("Source Not Supported"),5:ai("Encryption Error")},nF={2:ai("A network error caused the media download to fail."),3:ai("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:ai("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:ai("The media is encrypted and there are no keys to decrypt it.")},nV=e=>{var t,i;return 1===e.code?null:{title:null!=(t=nK[e.code])?t:`Error ${e.code}`,message:null!=(i=nF[e.code])?i:e.message}};var nY=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nG=(e,t,i)=>(nY(e,t,"read from private field"),i?i.call(e):t.get(e)),nz=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nQ=(e,t,i,a)=>(nY(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);function nZ(e){var t;let{title:i,message:a}=null!=(t=nV(e))?t:{},r="";return i&&(r+=`<slot name="error-${e.code}-title"><h3>${i}</h3></slot>`),a&&(r+=`<slot name="error-${e.code}-message"><p>${a}</p></slot>`),r}let nX=[iV.MEDIA_ERROR_CODE,iV.MEDIA_ERROR_MESSAGE];class nJ extends nT{constructor(){super(...arguments),nz(this,uQ,null)}static get observedAttributes(){return[...super.observedAttributes,...nX]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,t,i){var a;if(super.attributeChangedCallback(e,t,i),!nX.includes(e))return;let r=null!=(a=this.mediaError)?a:{code:this.mediaErrorCode,message:this.mediaErrorMessage};if(this.open=r.code&&null!==nV(r),this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(r),!this.hasAttribute("aria-label"))){let{title:e}=nV(r);e&&this.setAttribute("aria-label",e)}}get mediaError(){return nG(this,uQ)}set mediaError(e){nQ(this,uQ,e)}get mediaErrorCode(){return aN(this,"mediaerrorcode")}set mediaErrorCode(e){aP(this,"mediaerrorcode",e)}get mediaErrorMessage(){return a$(this,"mediaerrormessage")}set mediaErrorMessage(e){aH(this,"mediaerrormessage",e)}}uQ=new WeakMap,nJ.getSlotTemplateHTML=function(e){return`
861    <style>
862      :host {
863        background: rgb(20 20 30 / .8);
864      }
865
866      #content {
867        display: block;
868        padding: 1.2em 1.5em;
869      }
870
871      h3,
872      p {
873        margin-block: 0 .3em;
874      }
875    </style>
876    <slot name="error-${e.mediaerrorcode}" id="content">
877      ${nZ({code:+e.mediaerrorcode,message:e.mediaerrormessage})}
878    </slot>
879  `},nJ.formatErrorMessage=nZ,av.customElements.get("media-error-dialog")||av.customElements.define("media-error-dialog",nJ);var n0=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},n1=(e,t,i)=>(n0(e,t,"read from private field"),i?i.call(e):t.get(e)),n2=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)};class n3 extends nT{constructor(){super(...arguments),n2(this,uZ,e=>{var t;if(!this.open)return;let i=null==(t=this.shadowRoot)?void 0:t.querySelector("#content");if(!i)return;let a=e.composedPath(),r=a[0]===this||a.includes(this),n=a.includes(i);r&&!n&&(this.open=!1)}),n2(this,uX,e=>{if(!this.open)return;let t=e.shiftKey&&("/"===e.key||"?"===e.key);"Escape"!==e.key&&!t||e.ctrlKey||e.altKey||e.metaKey||(this.open=!1,e.preventDefault(),e.stopPropagation())})}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",n1(this,uZ)),document.addEventListener("keydown",n1(this,uX)))}disconnectedCallback(){this.removeEventListener("click",n1(this,uZ)),document.removeEventListener("keydown",n1(this,uX))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"open"===e&&(this.open?(this.addEventListener("click",n1(this,uZ)),document.addEventListener("keydown",n1(this,uX))):(this.removeEventListener("click",n1(this,uZ)),document.removeEventListener("keydown",n1(this,uX))))}}uZ=new WeakMap,uX=new WeakMap,n3.getSlotTemplateHTML=function(e){return`
880    <style>
881      :host {
882        position: fixed;
883        top: 0;
884        left: 0;
885        z-index: 9999;
886        background: rgb(20 20 30 / .8);
887        backdrop-filter: blur(10px);
888      }
889
890      #content {
891        display: block;
892        width: clamp(400px, 40vw, 700px);
893        max-width: 90vw;
894        text-align: left;
895      }
896
897      h2 {
898        margin: 0 0 1.5rem 0;
899        font-size: 1.5rem;
900        font-weight: 500;
901        text-align: center;
902      }
903
904      .shortcuts-table {
905        width: 100%;
906        border-collapse: collapse;
907      }
908
909      .shortcuts-table tr {
910        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
911      }
912
913      .shortcuts-table tr:last-child {
914        border-bottom: none;
915      }
916
917      .shortcuts-table td {
918        padding: 0.75rem 0.5rem;
919      }
920
921      .shortcuts-table td:first-child {
922        text-align: right;
923        padding-right: 1rem;
924        width: 40%;
925        min-width: 120px;
926      }
927
928      .shortcuts-table td:last-child {
929        padding-left: 1rem;
930      }
931
932      .key {
933        display: inline-block;
934        background: rgba(255, 255, 255, 0.15);
935        border: 1px solid rgba(255, 255, 255, 0.2);
936        border-radius: 4px;
937        padding: 0.25rem 0.5rem;
938        font-family: 'Courier New', monospace;
939        font-size: 0.9rem;
940        font-weight: 500;
941        min-width: 1.5rem;
942        text-align: center;
943        margin: 0 0.2rem;
944      }
945
946      .description {
947        color: rgba(255, 255, 255, 0.9);
948        font-size: 0.95rem;
949      }
950
951      .key-combo {
952        display: flex;
953        align-items: center;
954        justify-content: flex-end;
955        gap: 0.3rem;
956      }
957
958      .key-separator {
959        color: rgba(255, 255, 255, 0.5);
960        font-size: 0.9rem;
961      }
962    </style>
963    <slot id="content">
964      ${function(){let e=[{keys:["Space","k"],description:"Toggle Playback"},{keys:["m"],description:"Toggle mute"},{keys:["f"],description:"Toggle fullscreen"},{keys:["c"],description:"Toggle captions or subtitles, if available"},{keys:["p"],description:"Toggle Picture in Picture"},{keys:["←","j"],description:"Seek back 10s"},{keys:["→","l"],description:"Seek forward 10s"},{keys:["↑"],description:"Turn volume up"},{keys:["↓"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map(({keys:e,description:t})=>{let i=e.map((e,t)=>t>0?`<span class="key-separator">or</span><span class="key">${e}</span>`:`<span class="key">${e}</span>`).join("");return`
965      <tr>
966        <td>
967          <div class="key-combo">${i}</div>
968        </td>
969        <td class="description">${t}</td>
970      </tr>
971    `}).join("");return`
972    <h2>Keyboard Shortcuts</h2>
973    <table class="shortcuts-table">${e}</table>
974  `}()}
975    </slot>
976  `},av.customElements.get("media-keyboard-shortcuts-dialog")||av.customElements.define("media-keyboard-shortcuts-dialog",n3);var n4=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},n5=(e,t,i)=>(n4(e,t,"read from private field"),i?i.call(e):t.get(e)),n9=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},n8=(e,t,i,a)=>(n4(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);let n6=`<svg aria-hidden="true" viewBox="0 0 26 24">
977  <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
978</svg>`,n7=`<svg aria-hidden="true" viewBox="0 0 26 24">
979  <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
980</svg>`,oe=e=>{let t=e.mediaIsFullscreen?ai("exit fullscreen mode"):ai("enter fullscreen mode");e.setAttribute("aria-label",t)};class ot extends nr{constructor(){super(...arguments),n9(this,uJ,null)}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_IS_FULLSCREEN,iV.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),oe(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_IS_FULLSCREEN&&oe(this)}get mediaFullscreenUnavailable(){return a$(this,iV.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){aH(this,iV.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return aU(this,iV.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){aB(this,iV.MEDIA_IS_FULLSCREEN,e)}handleClick(e){n8(this,uJ,e);let t=n5(this,uJ) instanceof PointerEvent,i=this.mediaIsFullscreen?new av.CustomEvent(iW.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new av.CustomEvent(iW.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:t});this.dispatchEvent(i)}}uJ=new WeakMap,ot.getSlotTemplateHTML=function(e){return`
981    <style>
982      :host([${iV.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) {
983        display: none !important;
984      }
985
986      
987      :host(:not([${iV.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) {
988        display: none !important;
989      }
990
991      :host([${iV.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter],
992      :host(:not([${iV.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] {
993        display: none;
994      }
995    </style>
996
997    <slot name="icon">
998      <slot name="enter">${n6}</slot>
999      <slot name="exit">${n7}</slot>
1000    </slot>
1001  `},ot.getTooltipContentHTML=function(){return`
1002    <slot name="tooltip-enter">${ai("Enter fullscreen mode")}</slot>
1003    <slot name="tooltip-exit">${ai("Exit fullscreen mode")}</slot>
1004  `},av.customElements.get("media-fullscreen-button")||av.customElements.define("media-fullscreen-button",ot);let{MEDIA_TIME_IS_LIVE:oi,MEDIA_PAUSED:oa}=iV,{MEDIA_SEEK_TO_LIVE_REQUEST:or,MEDIA_PLAY_REQUEST:on}=iW,oo=e=>{var t;let i=e.mediaPaused||!e.mediaTimeIsLive,a=i?ai("seek to live"):ai("playing live");e.setAttribute("aria-label",a);let r=null==(t=e.shadowRoot)?void 0:t.querySelector('slot[name="text"]');r&&(r.textContent=ai("live")),i?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true")};class os extends nr{static get observedAttributes(){return[...super.observedAttributes,oi,oa]}connectedCallback(){super.connectedCallback(),oo(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),oo(this)}get mediaPaused(){return aU(this,iV.MEDIA_PAUSED)}set mediaPaused(e){aB(this,iV.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return aU(this,iV.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){aB(this,iV.MEDIA_TIME_IS_LIVE,e)}handleClick(){(this.mediaPaused||!this.mediaTimeIsLive)&&(this.dispatchEvent(new av.CustomEvent(or,{composed:!0,bubbles:!0})),this.hasAttribute(oa)&&this.dispatchEvent(new av.CustomEvent(on,{composed:!0,bubbles:!0})))}}os.getSlotTemplateHTML=function(e){return`
1005    <style>
1006      :host { --media-tooltip-display: none; }
1007      
1008      slot[name=indicator] > *,
1009      :host ::slotted([slot=indicator]) {
1010        
1011        min-width: auto;
1012        fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
1013        color: var(--media-live-button-icon-color, rgb(140, 140, 140));
1014      }
1015
1016      :host([${oi}]:not([${oa}])) slot[name=indicator] > *,
1017      :host([${oi}]:not([${oa}])) ::slotted([slot=indicator]) {
1018        fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
1019        color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
1020      }
1021
1022      :host([${oi}]:not([${oa}])) {
1023        cursor: var(--media-cursor, not-allowed);
1024      }
1025
1026      slot[name=text]{
1027        text-transform: uppercase;
1028      }
1029
1030    </style>
1031
1032    <slot name="indicator"><svg viewBox="0 0 6 12" aria-hidden="true"><circle cx="3" cy="6" r="2"></circle></svg></slot>
1033    
1034    <slot name="spacer">&nbsp;</slot><slot name="text">${ai("live")}</slot>
1035  `},av.customElements.get("media-live-button")||av.customElements.define("media-live-button",os);var ol=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},od=(e,t,i)=>
1035(ol(e,t,"read from private field"),i?i.call(e):t.get(e)),ou=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oc=(e,t,i,a)=>(ol(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);let oh="loadingdelay",op="noautohide",om=`
1036<svg aria-hidden="true" viewBox="0 0 100 100">
1037  <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
1038    <animateTransform
1039       attributeName="transform"
1040       attributeType="XML"
1041       type="rotate"
1042       dur="1s"
1043       from="0 50 50"
1044       to="360 50 50"
1045       repeatCount="indefinite" />
1046  </path>
1047</svg>
1048`;class ov extends av.HTMLElement{constructor(){if(super(),ou(this,u0,void 0),ou(this,u1,500),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[iq.MEDIA_CONTROLLER,iV.MEDIA_PAUSED,iV.MEDIA_LOADING,oh]}attributeChangedCallback(e,t,i){var a,r,n,o,s;e===oh&&t!==i?this.loadingDelay=Number(i):e===iq.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=od(this,u0))?void 0:a.unassociateElement)||r.call(a,this),oc(this,u0,null)),i&&this.isConnected&&(oc(this,u0,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=od(this,u0))?void 0:o.associateElement)||s.call(o,this)))}connectedCallback(){var e,t,i;let a=this.getAttribute(iq.MEDIA_CONTROLLER);a&&(oc(this,u0,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=od(this,u0))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=od(this,u0))?void 0:e.unassociateElement)||t.call(e,this),oc(this,u0,null)}get loadingDelay(){return od(this,u1)}set loadingDelay(e){oc(this,u1,e);let{style:t}=ax(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return aU(this,iV.MEDIA_PAUSED)}set mediaPaused(e){aB(this,iV.MEDIA_PAUSED,e)}get mediaLoading(){return aU(this,iV.MEDIA_LOADING)}set mediaLoading(e){aB(this,iV.MEDIA_LOADING,e)}get mediaController(){return a$(this,iq.MEDIA_CONTROLLER)}set mediaController(e){aH(this,iq.MEDIA_CONTROLLER,e)}get noAutohide(){return aU(this,op)}set noAutohide(e){aB(this,op,e)}}u0=new WeakMap,u1=new WeakMap,ov.shadowRootOptions={mode:"open"},ov.getTemplateHTML=function(e){return`
1049    <style>
1050      :host {
1051        display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
1052        vertical-align: middle;
1053        box-sizing: border-box;
1054        --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);
1055      }
1056
1057      #status {
1058        color: rgba(0,0,0,0);
1059        width: 0px;
1060        height: 0px;
1061      }
1062
1063      :host slot[name=icon] > *,
1064      :host ::slotted([slot=icon]) {
1065        opacity: var(--media-loading-indicator-opacity, 0);
1066        transition: opacity 0.15s;
1067      }
1068
1069      :host([${iV.MEDIA_LOADING}]:not([${iV.MEDIA_PAUSED}])) slot[name=icon] > *,
1070      :host([${iV.MEDIA_LOADING}]:not([${iV.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
1071        opacity: var(--media-loading-indicator-opacity, 1);
1072        transition: opacity 0.15s var(--_loading-indicator-delay);
1073      }
1074
1075      :host #status {
1076        visibility: var(--media-loading-indicator-opacity, hidden);
1077        transition: visibility 0.15s;
1078      }
1079
1080      :host([${iV.MEDIA_LOADING}]:not([${iV.MEDIA_PAUSED}])) #status {
1081        visibility: var(--media-loading-indicator-opacity, visible);
1082        transition: visibility 0.15s var(--_loading-indicator-delay);
1083      }
1084
1085      svg, img, ::slotted(svg), ::slotted(img) {
1086        width: var(--media-loading-indicator-icon-width);
1087        height: var(--media-loading-indicator-icon-height, 100px);
1088        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1089        vertical-align: middle;
1090      }
1091    </style>
1092
1093    <slot name="icon">${om}</slot>
1094    <div id="status" role="status" aria-live="polite">${ai("media loading")}</div>
1095  `},av.customElements.get("media-loading-indicator")||av.customElements.define("media-loading-indicator",ov);let of=`<svg aria-hidden="true" viewBox="0 0 24 24">
1096  <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>
1097</svg>`,ob=`<svg aria-hidden="true" viewBox="0 0 24 24">
1098  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>
1099</svg>`,oE=`<svg aria-hidden="true" viewBox="0 0 24 24">
1100  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>
1101</svg>`,oy=e=>{let t="off"===e.mediaVolumeLevel?ai("unmute"):ai("mute");e.setAttribute("aria-label",t)};class og extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),oy(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_VOLUME_LEVEL&&oy(this)}get mediaVolumeLevel(){return a$(this,iV.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){aH(this,iV.MEDIA_VOLUME_LEVEL,e)}handleClick(){let e="off"===this.mediaVolumeLevel?iW.MEDIA_UNMUTE_REQUEST:iW.MEDIA_MUTE_REQUEST;this.dispatchEvent(new av.CustomEvent(e,{composed:!0,bubbles:!0}))}}og.getSlotTemplateHTML=function(e){return`
1102    <style>
1103      :host(:not([${iV.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]),
1104      :host([${iV.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) {
1105        display: none !important;
1106      }
1107
1108      :host([${iV.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) {
1109        display: none !important;
1110      }
1111
1112      :host([${iV.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) {
1113        display: none !important;
1114      }
1115
1116      :host([${iV.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) {
1117        display: none !important;
1118      }
1119
1120      :host(:not([${iV.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute],
1121      :host([${iV.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] {
1122        display: none;
1123      }
1124    </style>
1125
1126    <slot name="icon">
1127      <slot name="off">${of}</slot>
1128      <slot name="low">${ob}</slot>
1129      <slot name="medium">${ob}</slot>
1130      <slot name="high">${oE}</slot>
1131    </slot>
1132  `},og.getTooltipContentHTML=function(){return`
1133    <slot name="tooltip-mute">${ai("Mute")}</slot>
1134    <slot name="tooltip-unmute">${ai("Unmute")}</slot>
1135  `},av.customElements.get("media-mute-button")||av.customElements.define("media-mute-button",og);let o_=`<svg aria-hidden="true" viewBox="0 0 28 24">
1136  <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>
1137</svg>`,oT=e=>{let t=e.mediaIsPip?ai("exit picture in picture mode"):ai("enter picture in picture mode");e.setAttribute("aria-label",t)};class ok extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_IS_PIP,iV.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),oT(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_IS_PIP&&oT(this)}get mediaPipUnavailable(){return a$(this,iV.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){aH(this,iV.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return aU(this,iV.MEDIA_IS_PIP)}set mediaIsPip(e){aB(this,iV.MEDIA_IS_PIP,e)}handleClick(){let e=this.mediaIsPip?iW.MEDIA_EXIT_PIP_REQUEST:iW.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new av.CustomEvent(e,{composed:!0,bubbles:!0}))}}ok.getSlotTemplateHTML=function(e){return`
1138    <style>
1139      :host([${iV.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) {
1140        display: none !important;
1141      }
1142
1143      :host(:not([${iV.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) {
1144        display: none !important;
1145      }
1146
1147      :host([${iV.MEDIA_IS_PIP}]) slot[name=tooltip-enter],
1148      :host(:not([${iV.MEDIA_IS_PIP}])) slot[name=tooltip-exit] {
1149        display: none;
1150      }
1151    </style>
1152
1153    <slot name="icon">
1154      <slot name="enter">${o_}</slot>
1155      <slot name="exit">${o_}</slot>
1156    </slot>
1157  `},ok.getTooltipContentHTML=function(){return`
1158    <slot name="tooltip-enter">${ai("Enter picture in picture mode")}</slot>
1159    <slot name="tooltip-exit">${ai("Exit picture in picture mode")}</slot>
1160  `},av.customElements.get("media-pip-button")||av.customElements.define("media-pip-button",ok);var oA=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ow=(e,t,i)=>(oA(e,t,"read from private field"),i?i.call(e):t.get(e)),oS=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)};let oI="rates",oL=[1,1.2,1.5,1.7,2];class oR extends nr{constructor(){var e;super(),oS(this,u2,new a5(this,oI,{defaultValue:oL})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${null!=(e=this.mediaPlaybackRate)?e:1}x`}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PLAYBACK_RATE,oI]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===oI&&(ow(this,u2).value=i),e===iV.MEDIA_PLAYBACK_RATE){let e=i?+i:Number.NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",ai("Playback rate {playbackRate}",{playbackRate:t}))}}get rates(){return ow(this,u2)}set rates(e){e?Array.isArray(e)?ow(this,u2).value=e.join(" "):"str
1160ing"==typeof e&&(ow(this,u2).value=e):ow(this,u2).value=""}get mediaPlaybackRate(){return aN(this,iV.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){aP(this,iV.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;let i=Array.from(ow(this,u2).values(),e=>+e).sort((e,t)=>e-t),a=null!=(t=null!=(e=i.find(e=>e>this.mediaPlaybackRate))?e:i[0])?t:1,r=new av.CustomEvent(iW.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(r)}}u2=new WeakMap,oR.getSlotTemplateHTML=function(e){return`
1161    <style>
1162      :host {
1163        min-width: 5ch;
1164        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1165      }
1166    </style>
1167    <slot name="icon">${e.mediaplaybackrate||1}x</slot>
1168  `},oR.getTooltipContentHTML=function(){return ai("Playback rate")},av.customElements.get("media-playback-rate-button")||av.customElements.define("media-playback-rate-button",oR);let oC=`<svg aria-hidden="true" viewBox="0 0 24 24">
1169  <path d="m6 21 15-9L6 3v18Z"/>
1170</svg>`,oD=`<svg aria-hidden="true" viewBox="0 0 24 24">
1171  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
1172</svg>`,oO=e=>{let t=e.mediaPaused?ai("play"):ai("pause");e.setAttribute("aria-label",t)};class ox extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PAUSED,iV.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),oO(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e===iV.MEDIA_PAUSED||e===iV.MEDIA_LANG)&&oO(this)}get mediaPaused(){return aU(this,iV.MEDIA_PAUSED)}set mediaPaused(e){aB(this,iV.MEDIA_PAUSED,e)}handleClick(){let e=this.mediaPaused?iW.MEDIA_PLAY_REQUEST:iW.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new av.CustomEvent(e,{composed:!0,bubbles:!0}))}}ox.getSlotTemplateHTML=function(e){return`
1173    <style>
1174      :host([${iV.MEDIA_PAUSED}]) slot[name=pause],
1175      :host(:not([${iV.MEDIA_PAUSED}])) slot[name=play] {
1176        display: none !important;
1177      }
1178
1179      :host([${iV.MEDIA_PAUSED}]) slot[name=tooltip-pause],
1180      :host(:not([${iV.MEDIA_PAUSED}])) slot[name=tooltip-play] {
1181        display: none;
1182      }
1183    </style>
1184
1185    <slot name="icon">
1186      <slot name="play">${oC}</slot>
1187      <slot name="pause">${oD}</slot>
1188    </slot>
1189  `},ox.getTooltipContentHTML=function(){return`
1190    <slot name="tooltip-play">${ai("Play")}</slot>
1191    <slot name="tooltip-pause">${ai("Pause")}</slot>
1192  `},av.customElements.get("media-play-button")||av.customElements.define("media-play-button",ox);let oM={PLACEHOLDER_SRC:"placeholdersrc",SRC:"src"},oN=e=>{e.style.removeProperty("background-image")},oP=(e,t)=>
1192{e.style["background-image"]=`url('${t}')`};class oU extends av.HTMLElement{static get observedAttributes(){return[oM.PLACEHOLDER_SRC,oM.SRC]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,i){e===oM.SRC&&(null==i?this.image.removeAttribute(oM.SRC):this.image.setAttribute(oM.SRC,i)),e===oM.PLACEHOLDER_SRC&&(null==i?oN(this.image):oP(this.image,i))}get placeholderSrc(){return a$(this,oM.PLACEHOLDER_SRC)}set placeholderSrc(e){aH(this,oM.SRC,e)}get src(){return a$(this,oM.SRC)}set src(e){aH(this,oM.SRC,e)}}oU.shadowRootOptions={mode:"open"},oU.getTemplateHTML=function(e){return`
1193    <style>
1194      :host {
1195        pointer-events: none;
1196        display: var(--media-poster-image-display, inline-block);
1197        box-sizing: border-box;
1198      }
1199
1200      img {
1201        max-width: 100%;
1202        max-height: 100%;
1203        min-width: 100%;
1204        min-height: 100%;
1205        background-repeat: no-repeat;
1206        background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
1207        background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
1208        object-fit: var(--media-object-fit, contain);
1209        object-position: var(--media-object-position, center);
1210      }
1211    </style>
1212
1213    <img part="poster img" aria-hidden="true" id="image"/>
1214  `},av.customElements.get("media-poster-image")||av.customElements.define("media-poster-image",oU);var oB=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},o$=(e,t,i)=>(oB(e,t,"read from private field"),i?i.call(e):t.get(e)),oH=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oj=(e,t,i,a)=>(oB(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class oW extends nB{constructor(){super(),oH(this,u3,void 0),oj(this,u3,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PREVIEW_CHAPTER,iV.MEDIA_LANG]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),(e===iV.MEDIA_PREVIEW_CHAPTER||e===iV.MEDIA_LANG)&&i!==t&&null!=i){if(o$(this,u3).textContent=i,""!==i){let e=ai("chapter: {chapterName}",{chapterName:i});this.setAttribute("aria-valuetext",e)}else this.removeAttribute("aria-valuetext")}}get mediaPreviewChapter(){return a$(this,iV.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){aH(this,iV.MEDIA_PREVIEW_CHAPTER,e)}}u3=new WeakMap,av.customElements.get("media-preview-chapter-display")||av.customElements.define("media-preview-chapter-display",oW);var oq=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oK=(e,t,i)=>(oq(e,t,"read from private field"),i?i.call(e):t.get(e)),oF=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oV=(e,t,i,a)=>(oq(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class oY extends av.HTMLElement{constructor(){if(super(),oF(this,u4,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[iq.MEDIA_CONTROLLER,iV.MEDIA_PREVIEW_IMAGE,iV.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,i;let a=this.getAttribute(iq.MEDIA_CONTROLLER);a&&(oV(this,u4,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=oK(this,u4))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=oK(this,u4))?void 0:e.unassociateElement)||t.call(e,this),oV(this,u4,null)}attributeChangedCallback(e,t,i){var a,r,n,o,s;[iV.MEDIA_PREVIEW_IMAGE,iV.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===iq.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=oK(this,u4))?void 0:a.unassociateElement)||r.call(a,this),oV(this,u4,null)),i&&this.isConnected&&(oV(this,u4,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(s=null==(o=oK(this,u4))?void 0:o.associateElement)||s.call(o,this)))}get mediaPreviewImage(){return a$(this,iV.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){aH(this,iV.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){let e=this.getAttribute(iV.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(e=>+e)}set mediaPreviewCoords(e){if(!e){this.removeAttribute(iV.MEDIA_PREVIEW_COORDS);return}this.setAttribute(iV.MEDIA_PREVIEW_COORDS,e.join(" "))}update(){let e,t;let i=this.mediaPreviewCoords,a=this.mediaPreviewImage;if(!(i&&a))return;let[r,n,o,s]=i,l=a.split("#")[0],d=getComputedStyle(this),{maxWidth:u,maxHeight:c,minWidth:h,minHeight:m}=d;
1214if("fill"===(d.getPropertyValue("--media-preview-thumbnail-object-fit").trim()||"contain")){let i=parseInt(u)/o,a=parseInt(c)/s,r=parseInt(h)/o,n=parseInt(m)/s;e=i<1?i:Math.max(i,r),t=a<1?a:Math.max(a,n)}else{let i=Math.min(parseInt(u)/o,parseInt(c)/s),a=Math.max(parseInt(h)/o,parseInt(m)/s),r=i<1?i:a>1?a:1;e=r,t=r}let{style:v}=ax(this.shadowRoot,":host"),f=ax(this.shadowRoot,"img").style,b=this.shadowRoot.querySelector("img"),E=1>Math.min(e,t)?"min":"max";v.setProperty(`${E}-width`,"initial","important"),v.setProperty(`${E}-height`,"initial","important"),v.width=`${o*e}px`,v.height=`${s*t}px`;let y=()=>{f.width=`${this.imgWidth*e}px`,f.height=`${this.imgHeight*t}px`,f.display="block"};b.src!==l&&(b.onload=()=>{this.imgWidth=b.naturalWidth,this.imgHeight=b.naturalHeight,y(),b.onload=null},b.src=l,y()),y(),f.transform=`translate(-${r*e}px, -${n*t}px)`}}u4=new WeakMap,oY.shadowRootOptions={mode:"open"},oY.getTemplateHTML=function(e){return`
1215    <style>
1216      :host {
1217        box-sizing: border-box;
1218        display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));
1219        overflow: hidden;
1220      }
1221
1222      img {
1223        display: none;
1224        position: relative;
1225      }
1226    </style>
1227    <img crossorigin loading="eager" decoding="async">
1228  `},av.customElements.get("media-preview-thumbnail")||av.customElements.define("media-preview-thumbnail",oY);var oG=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oz=(e,t,i)=>(oG(e,t,"read from private field"),i?i.call(e):t.get(e)),oQ=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oZ=(e,t,i,a)=>(oG(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);class oX extends nB{constructor(){super(),oQ(this,u5,void 0),oZ(this,u5,this.shadowRoot.querySelector("slot")),oz(this,u5).textContent=ao(0)}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_PREVIEW_TIME&&null!=i&&(oz(this,u5).textContent=ao(parseFloat(i)))}get mediaPreviewTime(){return aN(this,iV.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){aP(this,iV.MEDIA_PREVIEW_TIME,e)}}u5=new WeakMap,av.customElements.get("media-preview-time-display")||av.customElements.define("media-preview-time-display",oX);let oJ={SEEK_OFFSET:"seekoffset"},o0=e=>`
1229  <svg aria-hidden="true" viewBox="0 0 20 24">
1230    <defs>
1231      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
1232    </defs>
1233    <text class="text value" transform="translate(2.18 19.87)">${e}</text>
1234    <path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/>
1235  </svg>`,o1=(e,t)=>{e.setAttribute("aria-label",ai("seek back {seekOffset} seconds",{seekOffset:t}))};class o2 extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_CURRENT_TIME,oJ.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=aN(this,oJ.SEEK_OFFSET,30)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),o1(this,this.seekOffset),e===oJ.SEEK_OFFSET&&(this.seekOffset=aN(this,oJ.SEEK_OFFSET,30))}get seekOffset(){return aN(this,oJ.SEEK_OFFSET,30)}set seekOffset(e){aP(this,oJ.SEEK_OFFSET,e),this.setAttribute("aria-label",ai("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),aw(aI(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return aN(this,iV.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){aP(this,iV.MEDIA_CURRENT_TIME,e)}handleClick(){let e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new av.CustomEvent(iW.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}o2.getSlotTemplateHTML=function(e,t){return`
1236    <slot name="icon">${o0(t.seekOffset)}</slot>
1237  `},o2.getTooltipContentHTML=function(){return ai("Seek backward")},av.customElements.get("media-seek-backward-button")||av.customElements.define("media-seek-backward-button",o2);let o3={SEEK_OFFSET:"seekoffset"},o4=e=>`
1238  <svg aria-hidden="true" viewBox="0 0 20 24">
1239    <defs>
1240      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
1241    </defs>
1242    <text class="text value" transform="translate(8.9 19.87)">${e}</text>
1243    <path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/>
1244  </svg>`,o5=(e,t)=>{e.setAttribute("aria-label",ai("seek forward {seekOffset} seconds",{seekOffset:t}))};class o9 extends nr{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_CURRENT_TIME,o3.SEEK_OFFSET]}connectedCallback(){super.connectedCallback(),this.seekOffset=aN(this,o3.SEEK_OFFSET,30)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),o5(this,this.seekOffset),e===o3.SEEK_OFFSET&&(this.seekOffset=aN(this,o3.SEEK_OFFSET,30))}get seekOffset(){return aN(this,o3.SEEK_OFFSET,30)}set seekOffset(e){aP(this,o3.SEEK_OFFSET,e),this.setAttribute("aria-label",ai("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),aw(aI(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return aN(this,iV.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){aP(this,iV.MEDIA_CURRENT_TIME,e)}handleClick(){let e=this.mediaCurrentTime+this.seekOffset,t=new av.CustomEvent(iW.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}o9.getSlotTemplateHTML=function(e,t){return`
1245    <slot name="icon">${o4(t.seekOffset)}</slot>
1246  `},o9.getTooltipContentHTML=function(){return ai("Seek forward")},av.customElements.get("media-seek-forward-button")||av.customElements.define("media-seek-forward-button",o9);var o8=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},o6=(e,t,i)=>(o8(e,t,"read from private field"),i?i.call(e):t.get(e)),o7=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},se=(e,t,i,a)=>(o8(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),st=(e,t,i)=>(o8(e,t,"access private method"),i);let si={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},sa=[...Object.values(si),iV.MEDIA_CURRENT_TIME,iV.MEDIA_DURATION,iV.MEDIA_SEEKABLE],sr=["Enter"," "],sn="&nbsp;/&nbsp;",so=(e,{timesSep:t=sn}={})=>{var i,a;let r=null!=(i=e.mediaCurrentTime)?i:0,[,n]=null!=(a=e.mediaSeekable)?a:[],o=0;Number.isFinite(e.mediaDuration)?o=e.mediaDuration:Number.isFinite(n)&&(o=n);let s=e.remaining?ao(0-(o-r)):ao(r);return e.showDuration?`${s}${t}${ao(o)}`:s},ss=e=>{var t;
1246let i=e.mediaCurrentTime,[,a]=null!=(t=e.mediaSeekable)?t:[],r=null;if(Number.isFinite(e.mediaDuration)?r=e.mediaDuration:Number.isFinite(a)&&(r=a),null==i||null===r){e.setAttribute("aria-valuetext",ai("video not loaded, unknown time."));return}let n=e.remaining?an(0-(r-i)):an(i);if(!e.showDuration){e.setAttribute("aria-valuetext",n);return}let o=ai("{currentTime} of {totalTime}",{currentTime:n,totalTime:an(r)});e.setAttribute("aria-valuetext",o)},sl=e=>{e.setAttribute("aria-label",ai("playback time"))};class sd extends nB{constructor(){super(),o7(this,u7),o7(this,ct),o7(this,ca),o7(this,cn),o7(this,u9,void 0),o7(this,u8,null),o7(this,u6,e=>{let{metaKey:t,altKey:i,key:a}=e;if(t||i||!sr.includes(a)){this.removeEventListener("keyup",o6(this,u8));return}this.addEventListener("keyup",o6(this,u8))}),se(this,u9,this.shadowRoot.querySelector("slot")),o6(this,u9).innerHTML=`${so(this)}`}static get observedAttributes(){return[...super.observedAttributes,...sa,"disabled"]}connectedCallback(){let{style:e}=ax(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","var(--media-cursor, pointer)"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.setAttribute("aria-label",ai("playback time")),st(this,ca,cr).call(this),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),st(this,ct,ci).call(this),super.disconnectedCallback()}attributeChangedCallback(e,t,i){sl(this),sa.includes(e)?this.update():"disabled"===e&&i!==t?null==i?st(this,ca,cr).call(this):st(this,cn,co).call(this):e===si.NO_TOGGLE&&i!==t&&(this.noToggle?st(this,cn,co).call(this):st(this,ca,cr).call(this)),super.attributeChangedCallback(e,t,i)}enable(){this.noToggle||(this.tabIndex=0)}disable(){this.tabIndex=-1}get remaining(){return aU(this,si.REMAINING)}set remaining(e){aB(this,si.REMAINING,e)}get showDuration(){return aU(this,si.SHOW_DURATION)}set showDuration(e){aB(this,si.SHOW_DURATION,e)}get noToggle(){return aU(this,si.NO_TOGGLE)}set noToggle(e){aB(this,si.NO_TOGGLE,e)}get mediaDuration(){return aN(this,iV.MEDIA_DURATION)}set mediaDuration(e){aP(this,iV.MEDIA_DURATION,e)}get mediaCurrentTime(){return aN(this,iV.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){aP(this,iV.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){let e=this.getAttribute(iV.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){if(null==e){this.removeAttribute(iV.MEDIA_SEEKABLE);return}this.setAttribute(iV.MEDIA_SEEKABLE,e.join(":"))}update(){let e=so(this);ss(this),e!==o6(this,u9).innerHTML&&(o6(this,u9).innerHTML=e)}}u9=new WeakMap,u8=new WeakMap,u6=new WeakMap,u7=new WeakSet,ce=function(){o6(this,u8)||(se(this,u8,e=>{let{key:t}=e;if(!sr.includes(t)){this.removeEventListener("keyup",o6(this,u8));return}this.toggleTimeDisplay()}),this.addEventListener("keydown",o6(this,u6)),this.addEventListener("click",this.toggleTimeDisplay))},ct=new WeakSet,ci=function(){o6(this,u8)&&(this.removeEventListener("keyup",o6(this,u8)),this.removeEventListener("keydown",o6(this,u6)),this.removeEventListener("click",this.toggleTimeDisplay),se(this,u8,null))},ca=new WeakSet,cr=function(){this.noToggle||this.hasAttribute("disabled")||(this.setAttribute("role","button"),this.enable(),st(this,u7,ce).call(this))},cn=new WeakSet,co=function(){this.removeAttribute("role"),this.disable(),st(this,ct,ci).call(this)},sd.getSlotTemplateHTML=function(e,t){return`
1247    <slot>${so(t)}</slot>
1248  `},av.customElements.get("media-time-display")||av.customElements.define("media-time-display",sd);var su=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sc=(e,t,i)=>(su(e,t,"read from private field"),i?i.call(e):t.get(e)),sh=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sp=(e,t,i,a)=>(su(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),sm=(e,t,i,a)=>({set _(value){sp(e,t,value,i)},get _(){return sc(e,t,a)}});class sv{constructor(e,t,i){sh(this,cs,void 0),sh(this,cl,void 0),sh(this,cd,void 0),sh(this,cu,void 0),sh(this,cc,void 0),sh(this,ch,void 0),sh(this,cp,void 0),sh(this,cm,void 0),sh(this,cv,0),sh(this,cf,(e=performance.now())=>{sp(this,cv,requestAnimationFrame(sc(this,cf))),sp(this,cu,performance.now()-sc(this,cd));let t=1e3/this.fps;if(sc(this,cu)>t){sp(this,cd,e-sc(this,cu)%t);let i=1e3/((e-sc(this,cl))/++sm(this,cc)._),a=(e-sc(this,ch))/1e3/this.duration,r=sc(this,cp)+a*this.playbackRate;r-sc(this,cs).valueAsNumber>0?sp(this,cm,this.playbackRate/this.duration/i):(sp(this,cm,.995*sc(this,cm)),r=sc(this,cs).valueAsNumber+sc(this,cm)),this.callback(r)}}),sp(this,cs,e),this.callback=t,this.fps=i}start(){0===sc(this,cv)&&(sp(this,cd,performance.now()),sp(this,cl,sc(this,cd)),sp(this,cc,0),sc(this,cf).call(this))}stop(){0!==sc(this,cv)&&(cancelAnimationFrame(sc(this,cv)),sp(this,cv,0))}update({start:e,duration:t,playbackRate:i}){let a=e-sc(this,cs).valueAsNumber,r=Math.abs(t-this.duration);(a>0||a<-.03||r>=.5)&&this.callback(e),sp(this,cp,e),sp(this,ch,performance.now()),this.duration=t,this.playbackRate=i}}cs=new WeakMap,cl=new WeakMap,cd=new WeakMap,cu=new WeakMap,cc=new WeakMap,ch=new WeakMap,cp=new WeakMap,cm=new WeakMap,cv=new WeakMap,cf=ne
1248w WeakMap;var sf=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sb=(e,t,i)=>(sf(e,t,"read from private field"),i?i.call(e):t.get(e)),sE=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sy=(e,t,i,a)=>(sf(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),sg=(e,t,i)=>(sf(e,t,"access private method"),i);let s_=e=>{let t=e.range,i=an(+sk(e)),a=an(+e.mediaSeekableEnd),r=i&&a?ai("{currentTime} of {totalTime}",{currentTime:i,totalTime:a}):ai("video not loaded, unknown time.");t.setAttribute("aria-valuetext",r)},sT=(e,t=e.mediaCurrentTime)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:Math.max(0,Math.min((t-i)/(a-i),1))},sk=(e,t=e.range.valueAsNumber)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:t*(a-i)+i};class sA extends nL{constructor(){super(),sE(this,cL),sE(this,cD),sE(this,cx),sE(this,cN),sE(this,cU),sE(this,c$),sE(this,cj),sE(this,cb,null),sE(this,cE,void 0),sE(this,cy,void 0),sE(this,cg,void 0),sE(this,c_,void 0),sE(this,cT,void 0),sE(this,ck,void 0),sE(this,cA,void 0),sE(this,cw,void 0),sE(this,cS,void 0),sE(this,cI,()=>{sg(this,cL,cR).call(this)?sb(this,cE).start():sb(this,cE).stop()}),sE(this,cC,e=>{this.dragging||(i5(e)&&(this.range.valueAsNumber=e),sb(this,cS)||this.updateBar())}),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),sy(this,cy,this.shadowRoot.querySelectorAll('[part~="box"]')),sy(this,c_,this.shadowRoot.querySelector('[part~="preview-box"]')),sy(this,cT,this.shadowRoot.querySelector('[part~="current-box"]'));let e=getComputedStyle(this);sy(this,ck,parseInt(e.getPropertyValue("--media-box-padding-left"))),sy(this,cA,parseInt(e.getPropertyValue("--media-box-padding-right"))),sy(this,cE,new sv(this.range,sb(this,cC),60))}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PAUSED,iV.MEDIA_DURATION,iV.MEDIA_SEEKABLE,iV.MEDIA_CURRENT_TIME,iV.MEDIA_PREVIEW_IMAGE,iV.MEDIA_PREVIEW_TIME,iV.MEDIA_PREVIEW_CHAPTER,iV.MEDIA_BUFFERED,iV.MEDIA_PLAYBACK_RATE,iV.MEDIA_LOADING,iV.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",ai("seek")),sb(this,cI).call(this),sy(this,cb,this.getRootNode()),null==(e=sb(this,cb))||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),sb(this,cE).stop(),null==(e=sb(this,cb))||e.removeEventListener("transitionstart",this),sy(this,cb,null)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),t!=i&&(e===iV.MEDIA_CURRENT_TIME||e===iV.MEDIA_PAUSED||e===iV.MEDIA_ENDED||e===iV.MEDIA_LOADING||e===iV.MEDIA_DURATION||e===iV.MEDIA_SEEKABLE?(sb(this,cE).update({start:sT(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),sb(this,cI).call(this),s_(this)):e===iV.MEDIA_BUFFERED&&this.updateBufferedBar(),(e===iV.MEDIA_DURATION||e===iV.MEDIA_SEEKABLE)&&(this.mediaChaptersCues=sb(this,cw),this.updateBar()))}get mediaChaptersCues(){return sb(this,cw)}set mediaChaptersCues(e){var t;sy(this,cw,e),this.updateSegments(null==(t=sb(this,cw))?void 0:t.map(e=>({start:sT(this,e.startTime),end:sT(this,e.endTime)})))}get mediaPaused(){return aU(this,iV.MEDIA_PAUSED)}set mediaPaused(e){aB(this,iV.MEDIA_PAUSED,e)}get mediaLoading(){return aU(this,iV.MEDIA_LOADING)}set mediaLoading(e){aB(this,iV.MEDIA_LOADING,e)}get mediaDuration(){return aN(this,iV.MEDIA_DURATION)}set mediaDuration(e){aP(this,iV.MEDIA_DURATION,e)}get mediaCurrentTime(){return aN(this,iV.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){aP(this,iV.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return aN(this,iV.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){aP(this,iV.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){let e=this.getAttribute(iV.MEDIA_BUFFERED);return e?e.split(" ").map(e=>e.split(":").map(e=>+e)):[]}set mediaBuffered(e){if(!e){this.removeAttribute(iV.MEDIA_BUFFERED);return}let t=e.map(e=>e.join(":")).join(" ");this.setAttribute(iV.MEDIA_BUFFERED,t)}get mediaSeekable(){let e=this.getAttribute(iV.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){if(null==e){this.removeAttribute(iV.MEDIA_SEEKABLE);return}this.setAttribute(iV.MEDIA_SEEKABLE,e.join(":"))}get mediaSeekableEnd(){var e;let[,t=this.mediaDuration]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaSeekableStart(){var e;let[t=0]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaPreviewImage(){return a$(this,iV.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){aH(this,iV.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return aN(this,iV.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){aP(this,iV.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return aU(this,iV.MEDIA_ENDED)}set mediaEnded(e){aB(this,iV.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;let t;let i=this.mediaBuffered;if(!i.length)return;if(this.mediaEnded)t=1;else{let a=this.mediaCurrentTime,[,r=this.mediaSeekableStart]=null!=(e=i.find(([e,t])=>e<=a&&a<=t))?e:[];t=sT(this,r)}let{style:a}=ax(this.shadowRoot,"#buffered");a.setProperty("width",`${100*t}%`)}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;let e=ax(this.shadowRoot,"#current-rail"),t=ax(this.shadowRoot,'[part~="current-box"]'),i=sg(this,cD,cO).call(this,sb(this,cT)),a=sg(this,cx,cM).call(this,i,this.range.valueAsNumber),r=sg(this,cN,cP).call(this,i,this.range.valueAsNumber);e.style.transform=`translateX(${a})`,e.style.setProperty("--_range-width",`${i.range.width}`),t.style.setProperty("--_box-shift",`${r}`),t.style.setProperty("--_box-width",`${i.box.width}px`),t.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":sg(this,cj,cW).call(this);break;case"pointermove":sg(this,cU,cB).call(this,e);break;case"pointerup":sb(this,cS)&&sy(this,cS,!1);break;case"pointerdown":sy(this,cS,!0);break;case"pointerleave":sg(this,c$,cH).call(this,null);break;case"transitionstart":aL(e.target,this)&&setTimeout(()=>
1248sb(this,cI).call(this),0)}}}cb=new WeakMap,cE=new WeakMap,cy=new WeakMap,cg=new WeakMap,c_=new WeakMap,cT=new WeakMap,ck=new WeakMap,cA=new WeakMap,cw=new WeakMap,cS=new WeakMap,cI=new WeakMap,cL=new WeakSet,cR=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&aO(this)},cC=new WeakMap,cD=new WeakSet,cO=function(e){var t;let i=(null!=(t=this.getAttribute("bounds")?aR(this,`#${this.getAttribute("bounds")}`):this.parentElement)?t:this).getBoundingClientRect(),a=this.range.getBoundingClientRect(),r=e.offsetWidth,n=-(a.left-i.left-r/2),o=i.right-a.left-r/2;return{box:{width:r,min:n,max:o},bounds:i,range:a}},cx=new WeakSet,cM=function(e,t){let i=`${100*t}%`,{width:a,min:r,max:n}=e.box;if(!a)return i;if(!Number.isNaN(r)){let e=`calc(1 / var(--_range-width) * 100 * ${r}% + var(--media-box-padding-left))`;i=`max(${e}, ${i})`}if(!Number.isNaN(n)){let e=`calc(1 / var(--_range-width) * 100 * ${n}% - var(--media-box-padding-right))`;i=`min(${i}, ${e})`}return i},cN=new WeakSet,cP=function(e,t){let{width:i,min:a,max:r}=e.box,n=t*e.range.width;if(n<a+sb(this,ck)){let t=e.range.left-e.bounds.left-sb(this,ck);return`${n-i/2+t}px`}if(n>r-sb(this,cA)){let t=e.bounds.right-e.range.right-sb(this,cA);return`${n+i/2-t-e.range.width}px`}return 0},cU=new WeakSet,cB=function(e){let t=[...sb(this,cy)].some(t=>e.composedPath().includes(t));if(!this.dragging&&(t||!e.composedPath().includes(this))){sg(this,c$,cH).call(this,null);return}let i=this.mediaSeekableEnd;if(!i)return;let a=ax(this.shadowRoot,"#preview-rail"),r=ax(this.shadowRoot,'[part~="preview-box"]'),n=sg(this,cD,cO).call(this,sb(this,c_)),o=(e.clientX-n.range.left)/n.range.width;o=Math.max(0,Math.min(1,o));let s=sg(this,cx,cM).call(this,n,o),l=sg(this,cN,cP).call(this,n,o);a.style.transform=`translateX(${s})`,a.style.setProperty("--_range-width",`${n.range.width}`),r.style.setProperty("--_box-shift",`${l}`),r.style.setProperty("--_box-width",`${n.box.width}px`),1>Math.abs(Math.round(sb(this,cg))-Math.round(o*i))&&o>.01&&o<.99||(sy(this,cg,o*i),sg(this,c$,cH).call(this,sb(this,cg)))},c$=new WeakSet,cH=function(e){this.dispatchEvent(new av.CustomEvent(iW.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:e}))},cj=new WeakSet,cW=function(){sb(this,cE).stop();let e=sk(this);this.dispatchEvent(new av.CustomEvent(iW.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e}))},sA.shadowRootOptions={mode:"open"},sA.getContainerTemplateHTML=function(e){return`
1249    <style>
1250      :host {
1251        --media-box-border-radius: 4px;
1252        --media-box-padding-left: 10px;
1253        --media-box-padding-right: 10px;
1254        --media-preview-border-radius: var(--media-box-border-radius);
1255        --media-box-arrow-offset: var(--media-box-border-radius);
1256        --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
1257        --_preview-background: var(--media-preview-background, var(--_control-background));
1258
1259        
1260        contain: layout;
1261      }
1262
1263      #buffered {
1264        background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
1265        position: absolute;
1266        height: 100%;
1267        will-change: width;
1268      }
1269
1270      #preview-rail,
1271      #current-rail {
1272        width: 100%;
1273        position: absolute;
1274        left: 0;
1275        bottom: 100%;
1276        pointer-events: none;
1277        will-change: transform;
1278      }
1279
1280      [part~="box"] {
1281        width: min-content;
1282        
1283        position: absolute;
1284        bottom: 100%;
1285        flex-direction: column;
1286        align-items: center;
1287        transform: translateX(-50%);
1288      }
1289
1290      [part~="current-box"] {
1291        display: var(--media-current-box-display, var(--media-box-display, flex));
1292        margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));
1293        visibility: hidden;
1294      }
1295
1296      [part~="preview-box"] {
1297        display: var(--media-preview-box-display, var(--media-box-display, flex));
1298        margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));
1299        transition-property: var(--media-preview-transition-property, visibility, opacity);
1300        transition-duration: var(--media-preview-transition-duration-out, .25s);
1301        transition-delay: var(--media-preview-transition-delay-out, 0s);
1302        visibility: hidden;
1303        opacity: 0;
1304      }
1305
1306      :host(:is([${iV.MEDIA_PREVIEW_IMAGE}], [${iV.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
1307        transition-duration: var(--media-preview-transition-duration-in, .5s);
1308        transition-delay: var(--media-preview-transition-delay-in, .25s);
1309        visibility: visible;
1310        opacity: 1;
1311      }
1312
1313      @media (hover: hover) {
1314        :host(:is([${iV.MEDIA_PREVIEW_IMAGE}], [${iV.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
1315          transition-duration: var(--media-preview-transition-duration-in, .5s);
1316          transition-delay: var(--media-preview-transition-delay-in, .25s);
1317          visibility: visible;
1318          opacity: 1;
1319        }
1320      }
1321
1322      media-preview-thumbnail,
1323      ::slotted(media-preview-thumbnail) {
1324        visibility: hidden;
1325        
1326        transition: visibility 0s .25s;
1327        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1328        background: var(--media-preview-thumbnail-background, var(--_preview-background));
1329        box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
1330        max-width: var(--media-preview-thumbnail-max-width, 180px);
1331        max-height: var(--media-preview-thumbnail-max-height, 160px);
1332        min-width: var(--media-preview-thumbnail-min-width, 120px);
1333        min-height: var(--media-preview-thumbnail-min-height, 80px);
1334        border: var(--media-preview-thumbnail-border);
1335        border-radius: var(--media-preview-thumbnail-border-radius,
1336          var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
1337      }
1338
1339      :host([${iV.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
1340      :host([${iV.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
1341        transition-delay: var(--media-preview-transition-delay-in, .25s);
1342        visibility: visible;
1343      }
1344
1345      @media (hover: hover) {
1346        :host([${iV.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,
1347        :host([${iV.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
1348          transition-delay: var(--media-preview-transition-delay-in, .25s);
1349          visibility: visible;
1350        }
1351
1352        :host([${iV.MEDIA_PREVIEW_TIME}]:hover) {
1353          --media-time-range-hover-display: block;
1354        }
1355      }
1356
1357      media-preview-chapter-display,
1358      ::slotted(media-preview-chapter-display) {
1359        font-size: var(--media-font-size, 13px);
1360        line-height: 17px;
1361        min-width: 0;
1362        visibility: hidden;
1363        
1364        transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;
1365        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1366        background: var(--media-preview-chapter-background, var(--_preview-background));
1367        border-radius: var(--media-preview-chapter-border-radius,
1368          var(--media-preview-border-radius) var(--media-preview-border-radius)
1369          var(--media-preview-border-radius) var(--media-preview-border-radius));
1370        padding: var(--media-preview-chapter-padding, 3.5px 9px);
1371        margin: var(--media-preview-chapter-margin, 0 0 5px);
1372        text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1373      }
1374
1375      :host([${iV.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,
1376      :host([${iV.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {
1377        transition-delay: var(--media-preview-transition-delay-in, .25s);
1378        border-radius: var(--media-preview-chapter-border-radius, 0);
1379        padding: var(--media-preview-chapter-padding, 3.5px 9px 0);
1380        margin: var(--media-preview-chapter-margin, 0);
1381        min-width: 100%;
1382      }
1383
1384      media-preview-chapter-display[${iV.MEDIA_PREVIEW_CHAPTER}],
1385      ::slotted(media-preview-chapter-display[${iV.MEDIA_PREVIEW_CHAPTER}]) {
1386        visibility: visible;
1387      }
1388
1389      media-preview-chapter-display:not([aria-valuetext]),
1390      ::slotted(media-preview-chapter-display:not([aria-valuetext])) {
1391        display: none;
1392      }
1393
1394      media-preview-time-display,
1395      ::slotted(media-preview-time-display),
1396      media-time-display,
1397      ::slotted(media-time-display) {
1398        font-size: var(--media-font-size, 13px);
1399        line-height: 17px;
1400        min-width: 0;
1401        
1402        transition: min-width 0s, border-radius 0s;
1403        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1404        background: var(--media-preview-time-background, var(--_preview-background));
1405        border-radius: var(--media-preview-time-border-radius,
1406          var(--media-preview-border-radius) var(--media-preview-border-radius)
1407          var(--media-preview-border-radius) var(--media-preview-border-radius));
1408        padding: var(--media-preview-time-padding, 3.5px 9px);
1409        margin: var(--media-preview-time-margin, 0);
1410        text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1411        transform: translateX(min(
1412          max(calc(50% - var(--_box-width) / 2),
1413          calc(var(--_box-shift, 0))),
1414          calc(var(--_box-width) / 2 - 50%)
1415        ));
1416      }
1417
1418      :host([${iV.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
1419      :host([${iV.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
1420        transition-delay: var(--media-preview-transition-delay-in, .25s);
1421        border-radius: var(--media-preview-time-border-radius,
1422          0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
1423        min-width: 100%;
1424      }
1425
1426      :host([${iV.MEDIA_PREVIEW_TIME}]:hover) {
1427        --media-time-range-hover-display: block;
1428      }
1429
1430      [part~="arrow"],
1431      ::slotted([part~="arrow"]) {
1432        display: var(--media-box-arrow-display, inline-block);
1433        transform: translateX(min(
1434          max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),
1435          calc(var(--_box-shift, 0))),
1436          calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))
1437        ));
1438        
1439        border-color: transparent;
1440        border-top-color: var(--media-box-arrow-background, var(--_control-background));
1441        border-width: var(--media-box-arrow-border-width,
1442          var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);
1443        border-style: solid;
1444        justify-content: center;
1445        height: 0;
1446      }
1447    </style>
1448    <div id="preview-rail">
1449      <slot name="preview" part="box preview-box">
1450        <media-preview-thumbnail>
1451          <template shadowrootmode="${oY.shadowRootOptions.mode}">
1452            ${oY.getTemplateHTML({})}
1453          </template>
1454        </media-preview-thumbnail>
1455        <media-preview-chapter-display></media-preview-chapter-display>
1456        <media-preview-time-display></media-preview-time-display>
1457        <slot name="preview-arrow"><div part="arrow"></div></slot>
1458      </slot>
1459    </div>
1460    <div id="current-rail">
1461      <slot name="current" part="box current-box">
1462        
1463      </slot>
1464    </div>
1465  `},av.customElements.get("media-time-range")||av.customElements.define("media-time-range",sA);var sw=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sS=(e,t,i)=>(sw(e,t,"read from private field"),i?i.call(e):t.get(e)),sI=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)};let sL=e=>e.mediaMuted?0:e.mediaVolume,sR=e=>`${Math.round(100*e)}%`;class sC extends nL{constructor(){super(...arguments),sI(this,cq,()=>{let e=this.range.value,t=new av.CustomEvent(iW.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)})}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_VOLUME,iV.MEDIA_MUTED,iV.MEDIA_VOLUME_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",ai("volume")),this.range.addEventListener("input",sS(this,cq))}disconnectedCallback(){this.range.removeEventListener("input",sS(this,cq)),super.disconnectedCallback()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e===iV.MEDIA_VOLUME||e===iV.MEDIA_MUTED)&&(this.range.valueAsNumber=sL(this),this.range.setAttribute("aria-valuetext",sR(this.range.valueAsNumber)),this.updateBar())}
1465get mediaVolume(){return aN(this,iV.MEDIA_VOLUME,1)}set mediaVolume(e){aP(this,iV.MEDIA_VOLUME,e)}get mediaMuted(){return aU(this,iV.MEDIA_MUTED)}set mediaMuted(e){aB(this,iV.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return a$(this,iV.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){aH(this,iV.MEDIA_VOLUME_UNAVAILABLE,e)}}cq=new WeakMap,av.customElements.get("media-volume-range")||av.customElements.define("media-volume-range",sC);class sD extends nr{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=(null==(e=this.shadowRoot)?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=ai("Loop"))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return aU(this,iV.MEDIA_LOOP)}set mediaLoop(e){aB(this,iV.MEDIA_LOOP,e)}handleClick(){let e=!this.mediaLoop,t=new av.CustomEvent(iW.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}}sD.getSlotTemplateHTML=function(e){return`
1466      <style>
1467        :host {
1468          min-width: 4ch;
1469          padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1470          width: 100%;
1471          display: grid;
1472          grid-template-columns: 1fr auto;
1473          gap: 1rem;
1474          font-weight: var(--media-button-font-weight, normal);
1475        }
1476
1477        #checked-indicator {
1478          display: none;
1479        }
1480
1481        :host([${iV.MEDIA_LOOP}]) #checked-indicator {
1482          display: block;
1483        }
1484      </style>
1485      
1486      <span id="icon">
1487     </span>
1488
1489      <div id="checked-indicator">
1490        <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
1491          <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
1492        </svg>
1493      </div>
1494    `},sD.getTooltipContentHTML=function(){return ai("Loop")},av.customElements.get("media-loop-button")||av.customElements.define("media-loop-button",sD);var sO=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sx=(e,t,i)=>(sO(e,t,"read from private field"),i?i.call(e):t.get(e)),sM=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sN=(e,t,i,a)=>(sO(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i);let sP={processCallback(e,t,i){if(i){for(let[e,a]of t)if(e in i){let t=i[e];"boolean"==typeof t&&a instanceof sK&&"boolean"==typeof a.element[a.attributeName]?a.booleanValue=t:"function"==typeof t&&a instanceof sK?a.element[a.attributeName]=t:a.value=t}}}};class sU extends av.DocumentFragment{constructor(e,t,i=sP){var a;super(),sM(this,cK,void 0),sM(this,cF,void 0),this.append(e.content.cloneNode(!0)),sN(this,cK,sB(this)),sN(this,cF,i),null==(a=i.createCallback)||a.call(i,this,sx(this,cK),t),i.processCallback(this,sx(this,cK),t)}update(e){sx(this,cF).processCallback(this,sx(this,cK),e)}}cK=new WeakMap,cF=new WeakMap;let sB=(e,t=[])=>{let i,a;for(let r of e.attributes||[])if(r.value.includes("{{")){let n=new sq;for([i,a]of sH(r.value))if(i){let i=new sK(e,r.name,r.namespaceURI);n.append(i),t.push([a,i])}else n.append(a);r.value=n.toString()}for(let r of e.childNodes)if(1!==r.nodeType||r instanceof HTMLTemplateElement){let n=r.data;if(1===r.nodeType||n.includes("{{")){let o=[];if(n)for([i,a]of sH(n))if(i){let i=new sF(e);o.push(i),t.push([a,i])}else o.push(new Text(a));else if(r instanceof HTMLTemplateElement){let i=new sV(e,r);o.push(i),t.push([i.expression,i])}r.replaceWith(...o.flatMap(e=>e.replacementNodes||[e]))}}else sB(r,t);return t},s$={},sH=e=>{let t="",i=0,a=s$[e],r=0,n;if(a)return a;for(a=[];n=e[r];r++)"{"===n&&"{"===e[r+1]&&"\\"!==e[r-1]&&e[r+2]&&1==++i?(t&&a.push([0,t]),t="",r++):"}"!==n||"}"!==e[r+1]||"\\"===e[r-1]||--i?t+=n||"":(a.push([1,t.trim()]),t="",r++);return t&&a.push([0,(i>0?"{{":"")+t]),s$[e]=a};class sj{get value(){return""}set value(e){}toString(){return this.value}}let sW=new WeakMap;class sq{constructor(){sM(this,cV,[])}[Symbol.iterator](){return sx(this,cV).values()}get length(){return sx(this,cV).length}item(e){return sx(this,cV)[e]}append(...e){for(let t of e)t instanceof sK&&sW.set(t,this),sx(this,cV).push(t)}toString(){return sx(this,cV).join("")}}cV=new WeakMap;class sK extends sj{constructor(e,t,i){super(),sM(this,cZ),sM(this,cY,""),sM(this,cG,void 0),sM(this,cz,void 0),sM(this,cQ,void 0),sN(this,cG,e),sN(this,cz,t),sN(this,cQ,i)}get attributeName(){return sx(this,cz)}get attributeNamespace(){return sx(this,cQ)}
1494get element(){return sx(this,cG)}get value(){return sx(this,cY)}set value(e){sx(this,cY)!==e&&(sN(this,cY,e),sx(this,cZ,cX)&&1!==sx(this,cZ,cX).length?sx(this,cG).setAttributeNS(sx(this,cQ),sx(this,cz),sx(this,cZ,cX).toString()):null==e?sx(this,cG).removeAttributeNS(sx(this,cQ),sx(this,cz)):sx(this,cG).setAttributeNS(sx(this,cQ),sx(this,cz),e))}get booleanValue(){return sx(this,cG).hasAttributeNS(sx(this,cQ),sx(this,cz))}set booleanValue(e){if(sx(this,cZ,cX)&&1!==sx(this,cZ,cX).length)throw new DOMException("Value is not fully templatized");this.value=e?"":null}}cY=new WeakMap,cG=new WeakMap,cz=new WeakMap,cQ=new WeakMap,cZ=new WeakSet,cX=function(){return sW.get(this)};class sF extends sj{constructor(e,t){super(),sM(this,cJ,void 0),sM(this,c0,void 0),sN(this,cJ,e),sN(this,c0,t?[...t]:[new Text])}get replacementNodes(){return sx(this,c0)}get parentNode(){return sx(this,cJ)}get nextSibling(){return sx(this,c0)[sx(this,c0).length-1].nextSibling}get previousSibling(){return sx(this,c0)[0].previousSibling}get value(){return sx(this,c0).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(e=>null==e?[new Text]:e.forEach?[...e]:11===e.nodeType?[...e.childNodes]:e.nodeType?[e]:[new Text(e)]);t.length||t.push(new Text),sN(this,c0,function(e,t,i,a=null){let r=0,n,o,s,l=i.length,d=t.length;for(;r<l&&r<d&&t[r]==i[r];)r++;for(;r<l&&r<d&&i[l-1]==t[d-1];)a=i[--d,--l];if(r==d)for(;r<l;)e.insertBefore(i[r++],a);if(r==l)for(;r<d;)e.removeChild(t[r++]);else{for(n=t[r];r<l;)s=i[r++],o=n?n.nextSibling:a,n==s?n=o:r<l&&i[r]==o?(e.replaceChild(s,n),n=o):e.insertBefore(s,n);for(;n!=a;)o=n.nextSibling,e.removeChild(n),n=o}return i}(sx(this,c0)[0].parentNode,sx(this,c0),t,this.nextSibling))}}cJ=new WeakMap,c0=new WeakMap;class sV extends sF{constructor(e,t){let i=t.getAttribute("directive")||t.getAttribute("type"),a=t.getAttribute("expression")||t.getAttribute(i)||"";a.startsWith("{{")&&(a=a.trim().slice(2,-2).trim()),super(e),this.expression=a,this.template=t,this.directive=i}}let sY={string:e=>String(e)};class sG{constructor(e){this.template=e,this.state=void 0}}let sz=new WeakMap,sQ=new WeakMap,sZ={partial:(e,t)=>{t[e.expression]=new sG(e.template)},if:(e,t)=>{var i;if(s1(e.expression,t)){if(sz.get(e)!==e.template){sz.set(e,e.template);let i=new sU(e.template,t,sJ);e.replace(i),sQ.set(e,i)}else null==(i=sQ.get(e))||i.update(t)}else e.replace(""),sz.delete(e),sQ.delete(e)}},sX=Object.keys(sZ),sJ={processCallback(e,t,i){var a,r;if(i)for(let[e,n]of t){if(n instanceof sV){if(!n.directive){let e=sX.find(e=>n.template.hasAttribute(e));e&&(n.directive=e,n.expression=n.template.getAttribute(e))}null==(a=sZ[n.directive])||a.call(sZ,n,i);continue}let t=s1(e,i);if(t instanceof sG){sz.get(n)!==t.template?(sz.set(n,t.template),t=new sU(t.template,t.state,sJ),n.value=t,sQ.set(n,t)):null==(r=sQ.get(n))||r.update(t.state);continue}t?(n instanceof sK&&n.attributeName.startsWith("aria-")&&(t=String(t)),n instanceof sK?"boolean"==typeof t?n.booleanValue=t:"function"==typeof t?n.element[n.attributeName]=t:n.value=t:(n.value=t,sz.delete(n),sQ.delete(n))):n instanceof sK?n.value=void 0:(n.value=void 0,sz.delete(n),sQ.delete(n))}}},s0={"!":e=>!e,"!!":e=>!!e,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>
1494e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,"??":(e,t)=>null!=e?e:t,"|":(e,t)=>{var i;return null==(i=sY[t])?void 0:i.call(sY,e)}};function s1(e,t={}){var i,a,r,n,o,s,l;let d=(function(e,t){let i,a,r;let n=[];for(;e;){for(let n in r=null,i=e.length,t)(a=t[n].exec(e))&&a.index<i&&(r={token:a[0],type:n,matches:a.slice(1)},i=a.index);i&&n.push({token:e.substr(0,i),type:void 0}),r&&n.push(r),e=e.substr(i+(r?r.token.length:0))}return n})(e,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>"ws"!==e);if(0===d.length||d.some(({type:e})=>!e))return s2(e);if((null==(i=d[0])?void 0:i.token)===">"){let i=t[null==(a=d[1])?void 0:a.token];if(!i)return s2(e);let s={...t};i.state=s;let l=d.slice(2);for(let e=0;e<l.length;e+=3){let i=null==(r=l[e])?void 0:r.token,a=null==(n=l[e+1])?void 0:n.token,d=null==(o=l[e+2])?void 0:o.token;i&&"="===a&&(s[i]=s4(d,t))}return i}if(1===d.length)return s3(d[0])?s4(d[0].token,t):s2(e);if(2===d.length){let i=s0[null==(s=d[0])?void 0:s.token];return i&&s3(d[1])?i(s4(d[1].token,t)):s2(e)}if(3===d.length){let i=null==(l=d[1])?void 0:l.token,a=s0[i];return a&&s3(d[0])&&s3(d[2])?a(s4(d[0].token,t),"|"===i?d[2].token:s4(d[2].token,t)):s2(e)}}function s2(e){return console.warn(`Warning: invalid expression \`${e}\``),!1}function s3({type:e}){return["number","boolean","string","param"].includes(e)}function s4(e,t){let i=e[0],a=e.slice(-1);return"true"===e||"false"===e?"true"===e:i===a&&["'",'"'].includes(i)?e.slice(1,-1):i9(e)?parseFloat(e):t[e]}var s5=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},s9=(e,t,i)=>(s5(e,t,"read from private field"),i?i.call(e):t.get(e)),s8=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},s6=(e,t,i,a)=>(s5(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),s7=(e,t,i)=>(s5(e,t,"access private method"),i);let le={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},lt=af.createElement("template");lt.innerHTML=`
1495  <style>
1496    :host {
1497      display: inline-block;
1498      line-height: 0;
1499    }
1500
1501    media-controller {
1502      width: 100%;
1503      height: 100%;
1504    }
1505
1506    media-captions-button:not([mediasubtitleslist]),
1507    media-captions-menu:not([mediasubtitleslist]),
1508    media-captions-menu-button:not([mediasubtitleslist]),
1509    media-audio-track-menu[mediaaudiotrackunavailable],
1510    media-audio-track-menu-button[mediaaudiotrackunavailable],
1511    media-rendition-menu[mediarenditionunavailable],
1512    media-rendition-menu-button[mediarenditionunavailable],
1513    media-volume-range[mediavolumeunavailable],
1514    media-airplay-button[mediaairplayunavailable],
1515    media-fullscreen-button[mediafullscreenunavailable],
1516    media-cast-button[mediacastunavailable],
1517    media-pip-button[mediapipunavailable] {
1518      display: none;
1519    }
1520  </style>
1521`;class li extends av.HTMLElement{constructor(){super(),s8(this,c5),s8(this,c8),s8(this,c1,void 0),s8(this,c2,void 0),s8(this,c3,void 0),s8(this,c4,void 0),s8(this,c7,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer()),s6(this,c4,new MutationObserver(e=>{var t;(!this.mediaController||(null==(t=this.mediaController)?void 0:t.breakpointsComputed))&&e.some(e=>{let t=e.target;return t===this||"media-controller"===t.localName&&!!(le[e.attributeName]||e.attributeName.startsWith("breakpoint"))})&&this.render()})),s6(this,c7,this.render.bind(this)),s7(this,c5,c9).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return null!=(e=s9(this,c1))?e:this.constructor.template}set template(e){if(null===e){this.removeAttribute("template");return}"string"==typeof e?this.setAttribute("template",e):e instanceof HTMLTemplateElement&&(s6(this,c1,e),s6(this,c3,null),this.createRenderer())}get props(){var e,t,i;let a=[...Array.from(null!=(t=null==(e=this.mediaController)?void 0:e.attributes)?t:[]).filter(({name:e})=>le[e]||e.startsWith("breakpoint")),...Array.from(this.attributes)],r={};for(let e of a){let t=null!=(i=le[e.name])?i:e.name.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase()),{value:a}=e;null!=a?(i9(a)&&(a=parseFloat(a)),r[t]=""===a||a):r[t]=!1}return r}attributeChangedCallback(e,t,i){"template"===e&&t!=i&&s7(this,c8,c6).call(this)}connectedCallback(){this.addEventListener(iY.BREAKPOINTS_COMPUTED,s9(this,c7)),s9(this,c4).observe(this,{attributes:!0}),s9(this,c4).observe(this.renderRoot,{attributes:!0,subtree:!0}),s7(this,c8,c6).call(this)}disconnectedCallback(){this.removeEventListener(iY.BREAKPOINTS_COMPUTED,s9(this,c7)),s9(this,c4).disconnect()}createRenderer(){this.template instanceof HTMLTemplateElement&&this.template!==s9(this,c2)&&(s6(this,c2,this.template),this.renderer=new sU(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(lt.content.cloneNode(!0),this.renderer))}render(){var e;null==(e=this.renderer)||e.update(this.props)}}async function la(e){let t=await fetch(e);if(200!==t.status)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);return t.text()}function lr(e){return e.split("-")[0]}c1=new WeakMap,c2=new WeakMap,c3=new WeakMap,c4=new WeakMap,c5=new WeakSet,c9=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}},c8=new WeakSet,c6=function(){var e;let t=this.getAttribute("template");if(!t||t===s9(this,c3))return;let i=this.getRootNode(),a=null==(e=null==i?void 0:i.getElementById)?void 0:e.call(i,t);if(a){s6(this,c3,t),s6(this,c1,a),this.createRenderer();return}(function(e){if(!/^(\/|\.\/|https?:\/\/)/.test(e))return!1;let t=/^https?:\/\//.test(e)?void 0:location.origin;try{new URL(e,t)}catch(e){return!1}return!0})(t)&&(s6(this,c3,t),la(t).then(e=>{let t=af.createElement("template");t.innerHTML=e,s6(this,c1,t),this.createRenderer()}).catch(console.error))},c7=new WeakMap,li.observedAttributes=["template"],li.processor=sJ,av.customElements.get("media-theme")||av.customElements.define("media-theme",li);
1521class ln extends Event{constructor({action:e="auto",relatedTarget:t,...i}){super("invoke",i),this.action=e,this.relatedTarget=t}}class lo extends Event{constructor({newState:e,oldState:t,...i}){super("toggle",i),this.newState=e,this.oldState=t}}var ls=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ll=(e,t,i)=>(ls(e,t,"read from private field"),i?i.call(e):t.get(e)),ld=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lu=(e,t,i,a)=>(ls(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lc=(e,t,i)=>(ls(e,t,"access private method"),i);function lh({type:e,text:t,value:i,checked:a}){let r=af.createElement("media-chrome-menu-item");r.type=null!=e?e:"",r.part.add("menu-item"),e&&r.part.add(e),r.value=i,r.checked=a;let n=af.createElement("span");return n.textContent=t,r.append(n),r}function lp(e,t){let i=e.querySelector(`:scope > [slot="${t}"]`);if((null==i?void 0:i.nodeName)=="SLOT"&&(i=i.assignedElements({flatten:!0})[0]),i)return i.cloneNode(!0);let a=e.shadowRoot.querySelector(`[name="${t}"] > svg`);return a?a.cloneNode(!0):""}let lm={STYLE:"style",HIDDEN:"hidden",DISABLED:"disabled",ANCHOR:"anchor"};class lv extends av.HTMLElement{constructor(){if(super(),ld(this,hs),ld(this,hd),ld(this,hh),ld(this,hm),ld(this,hf),ld(this,hE),ld(this,hT),ld(this,hA),ld(this,hS),ld(this,hL),ld(this,hC),ld(this,hO),ld(this,hM),ld(this,hP),ld(this,hB),ld(this,hH),ld(this,hW),ld(this,hK),ld(this,he,null),ld(this,ht,null),ld(this,hi,null),ld(this,ha,new Set),ld(this,hr,void 0),ld(this,hn,!1),ld(this,ho,null),ld(this,hc,()=>{let e=ll(this,ha),t=new Set(this.items);for(let i of e)t.has(i)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:i}));for(let i of t)e.has(i)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:i}));lu(this,ha,t)}),ld(this,hg,()=>{lc(this,hT,hk).call(this),lc(this,hA,hw).call(this,!1)}),ld(this,h_,()=>{lc(this,hT,hk).call(this)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),lu(this,hr,new MutationObserver(ll(this,hc)))}static get observedAttributes(){return[lm.DISABLED,lm.HIDDEN,lm.STYLE,lm.ANCHOR,iq.MEDIA_CONTROLLER]}static formatMenuItemText(e,t){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":lc(this,hs,hl).call(this,e);break;case"invoke":lc(this,hm,hv).call(this,e);break;case"click":lc(this,hS,hI).call(this,e);break;case"toggle":lc(this,hC,hD).call(this,e);break;case"focusout":lc(this,hM,hN).call(this,e);break;case"keydown":lc(this,hP,hU).call(this,e)}}connectedCallback(){var e,t;ll(this,hr).observe(this.defaultSlot,{childList:!0}),lu(this,ho,aM(this.shadowRoot,":host")),lc(this,hh,hp).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),lu(this,he,aA(this)),null==(t=null==(e=ll(this,he))?void 0:e.associateElement)||t.call(e,this),this.hidden||(ag(lb(this),ll(this,hg)),ag(this,ll(this,h_))),lc(this,hd,hu).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){var e,t;ll(this,hr).disconnect(),a_(lb(this),ll(this,hg)),a_(this,ll(this,h_)),this.disable(),null==(t=null==(e=ll(this,he))?void 0:e.unassociateElement)||t.call(e,this),lu(this,he,null),lu(this,ht,null),lu(this,hi,null),this.shadowRoot.removeEventListener("slotchange",this)}attributeChangedCallback(e,t,i){var a,r,n,o;e===lm.HIDDEN&&i!==t?(ll(this,hn)||lu(this,hn,!0),this.hidden?lc(this,hE,hy).call(this):lc(this,hf,hb).call(this),this.dispatchEvent(new lo({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===iq.MEDIA_CONTROLLER?(t&&(null==(r=null==(a=ll(this,he))?void 0:a.unassociateElement)||r.call(a,this),lu(this,he,null)),i&&this.isConnected&&(lu(this,he,aA(this)),null==(o=null==(n=ll(this,he))?void 0:n.associateElement)||o.call(n,this))):e===lm.DISABLED&&i!==t?null==i?this.enable():this.disable():e===lm.STYLE&&i!==t&&lc(this,hh,hp).call(this)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}get anchor(){return this.getAttribute("anchor")}
1521set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?null==(e=aD(this))?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(lf)}get radioGroupItems(){return this.items.filter(e=>"menuitemradio"===e.role)}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,t;return null!=(t=null==(e=this.checkedItems[0])?void 0:e.value)?t:""}set value(e){let t=this.items.find(t=>t.value===e);t&&lc(this,hK,hF).call(this,t)}focus(){if(lu(this,ht,aC()),this.items.length){lc(this,hW,hq).call(this,this.items[0]),this.items[0].focus();return}let e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==e||e.focus()}handleSelect(e){var t;let i=lc(this,hB,h$).call(this,e);i&&(lc(this,hK,hF).call(this,i,"checkbox"===i.type),ll(this,hi)&&!this.hidden&&(null==(t=ll(this,ht))||t.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var t,i;let{key:a}=e,r=this.items,n=null!=(i=null!=(t=lc(this,hB,h$).call(this,e))?t:lc(this,hH,hj).call(this))?i:r[0],o=Math.max(0,r.indexOf(n));"ArrowDown"===a?o++:"ArrowUp"===a?o--:"Home"===e.key?o=0:"End"===e.key&&(o=r.length-1),o<0&&(o=r.length-1),o>r.length-1&&(o=0),lc(this,hW,hq).call(this,r[o]),r[o].focus()}}function lf(e){return["menuitem","menuitemradio","menuitemcheckbox"].includes(null==e?void 0:e.role)}function lb(e){var t;return null!=(t=e.getAttribute("bounds")?aR(e,`#${e.getAttribute("bounds")}`):ak(e)||e.parentElement)?t:e}he=new WeakMap,ht=new WeakMap,hi=new WeakMap,ha=new WeakMap,hr=new WeakMap,hn=new WeakMap,ho=new WeakMap,hs=new WeakSet,hl=function(e){let t=e.target;for(let e of t.assignedNodes({flatten:!0}))3===e.nodeType&&""===e.textContent.trim()&&e.remove();["header","title"].includes(t.name)&&lc(this,hd,hu).call(this),t.name||ll(this,hc).call(this)},hd=new WeakSet,hu=function(){let e=this.shadowRoot.querySelector('slot[name="header"]'),t=this.shadowRoot.querySelector('slot[name="title"]');e.hidden=0===t.assignedNodes().length&&0===e.assignedNodes().length},hc=new WeakMap,hh=new WeakSet,hp=function(){var e;let t=this.shadowRoot.querySelector("#layout-row"),i=null==(e=getComputedStyle(this).getPropertyValue("--media-menu-layout"))?void 0:e.trim();t.setAttribute("media","row"===i?"":"width:0")},hm=new WeakSet,hv=function(e){lu(this,hi,e.relatedTarget),aL(this,e.relatedTarget)||(this.hidden=!this.hidden)},hf=new WeakSet,hb=function(){var e;null==(e=ll(this,hi))||e.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),ag(lb(this),ll(this,hg)),ag(this,ll(this,h_))},hE=new WeakSet,hy=function(){var e;null==(e=ll(this,hi))||e.setAttribute("aria-expanded","false"),a_(lb(this),ll(this,hg)),a_(this,ll(this,h_))},hg=new WeakMap,h_=new WeakMap,hT=new WeakSet,hk=function(e){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;let{x:t,y:i}=function({anchor:e,floating:t,placement:i}){let{x:a,y:r}=function({anchor:e,floating:t},i){let a;let r="x"==(["top","bottom"].includes(lr(i))?"y":"x")?"y":"x",n="y"===r?"height":"width",o=lr(i),s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d=e[n]/2-t[n]/2;switch(o){case"top":a={x:s,y:e.y-t.height};break;case"bottom":a={x:s,y:e.y+e.height};break;case"right":a={x:e.x+e.width,y:l};break;case"left":a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}switch(i.split("-")[1]){case"start":a[r]-=d;break;case"end":a[r]+=d}return a}(function({anchor:e,floating:t}){return{anchor:function(e,t){var i;let a=e.getBoundingClientRect(),r=null!=(i=null==t?void 0:t.getBoundingClientRect())?i:{x:0,y:0};return{x:a.x-r.x,y:a.y-r.y,width:a.width,height:a.height}}(e,t.offsetParent),floating:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight}}}({anchor:e,floating:t}),i);return{x:a,y:r}}({anchor:this.anchorElement,floating:this,placement:"top-start"});null!=e||(e=this.offsetWidth);let a=lb(this).getBoundingClientRect(),r=a.width-t-e,n=a.height-i-this.offsetHeight,{style:o}=ll(this,ho);o.setProperty("position","absolute"),o.setProperty("right",`${Math.max(0,r)}px`),o.setProperty("--_menu-bottom",`${n}px`);let s=getComputedStyle(this),l=o.getPropertyValue("--_menu-bottom")===s.bottom?n:parseFloat(s.bottom),d=a.height-l-parseFloat(s.marginBottom);this.style.setProperty("--_menu-max-height",`${d}px`)},hA=new WeakSet,hw=function(e){let t=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),i=null==t?void 0:t.querySelector('[role="menu"]'),{style:a}=ll(this,ho);if(e||a.setProperty("--media-menu-transition-in","none"),i){let e=i.offsetHeight,a=Math.max(i.offsetWidth,t.offsetWidth);this.style.setProperty("min-width",`${a}px`),this.style.setProperty("min-height",`${e}px`),lc(this,hT,hk).call(this,a)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),lc(this,hT,hk).call(this);a.removeProperty("--media-menu-transition-in")},hS=new WeakSet,hI=function(e){var t;if(e.stopPropagation(),e.composedPath().includes(ll(this,hL,hR))){null==(t=ll(this,ht))||t.focu
1521s(),this.hidden=!0;return}let i=lc(this,hB,h$).call(this,e);!i||i.hasAttribute("disabled")||(lc(this,hW,hq).call(this,i),this.handleSelect(e))},hL=new WeakSet,hR=function(){var e;return null==(e=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))?void 0:e.find(e=>e.matches('button[part~="back"]'))},hC=new WeakSet,hD=function(e){if(e.target===this)return;lc(this,hO,hx).call(this);let t=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(let i of t)i.invokeTargetElement==e.target||"open"!=e.newState||"true"!=i.getAttribute("aria-expanded")||i.invokeTargetElement.hidden||i.invokeTargetElement.dispatchEvent(new ln({relatedTarget:i}));for(let e of t)e.setAttribute("aria-expanded",`${!e.submenuElement.hidden}`);lc(this,hA,hw).call(this,!0)},hO=new WeakSet,hx=function(){let e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)},hM=new WeakSet,hN=function(e){var t;aL(this,e.relatedTarget)||(ll(this,hn)&&(null==(t=ll(this,ht))||t.focus()),!ll(this,hi)||ll(this,hi)===e.relatedTarget||this.hidden||(this.hidden=!0))},hP=new WeakSet,hU=function(e){var t,i,a,r,n;let{key:o,ctrlKey:s,altKey:l,metaKey:d}=e;if(!s&&!l&&!d&&this.keysUsed.includes(o)){if(e.preventDefault(),e.stopPropagation(),"Tab"===o){if(ll(this,hn)){this.hidden=!0;return}e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(r=null==(a=this.nextElementSibling)?void 0:a.focus)||r.call(a),this.blur()}else"Escape"===o?(null==(n=ll(this,ht))||n.focus(),ll(this,hn)&&(this.hidden=!0)):"Enter"===o||" "===o?this.handleSelect(e):this.handleMove(e)}},hB=new WeakSet,h$=function(e){return e.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))},hH=new WeakSet,hj=function(){return this.items.find(e=>0===e.tabIndex)},hW=new WeakSet,hq=function(e){for(let t of this.items)t.tabIndex=t===e?0:-1},hK=new WeakSet,hF=function(e,t){let i=[...this.checkedItems];"radio"===e.type&&this.radioGroupItems.forEach(e=>e.checked=!1),t?e.checked=!e.checked:e.checked=!0,this.checkedItems.some((e,t)=>e!=i[t])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},lv.shadowRootOptions={mode:"open"},lv.getTemplateHTML=function(e){return`
1522    <style>
1523      :host {
1524        font: var(--media-font,
1525          var(--media-font-weight, normal)
1526          var(--media-font-size, 14px) /
1527          var(--media-text-content-height, var(--media-control-height, 24px))
1528          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1529        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1530        --_menu-bg: rgb(20 20 30 / .8);
1531        background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg))));
1532        border-radius: var(--media-menu-border-radius);
1533        border: var(--media-menu-border, none);
1534        display: var(--media-menu-display, inline-flex) !important;
1535        
1536        transition: var(--media-menu-transition-in,
1537          visibility 0s,
1538          opacity .2s ease-out,
1539          transform .15s ease-out,
1540          left .2s ease-in-out,
1541          min-width .2s ease-in-out,
1542          min-height .2s ease-in-out
1543        ) !important;
1544        
1545        visibility: var(--media-menu-visibility, visible);
1546        opacity: var(--media-menu-opacity, 1);
1547        max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
1548        transform: var(--media-menu-transform-in, translateY(0) scale(1));
1549        flex-direction: column;
1550        
1551        min-height: 0;
1552        position: relative;
1553        bottom: var(--_menu-bottom);
1554        box-sizing: border-box;
1555      } 
1556
1557      @-moz-document url-prefix() {
1558        :host{
1559          --_menu-bg: rgb(20 20 30);
1560        }
1561      }
1562
1563      :host([hidden]) {
1564        transition: var(--media-menu-transition-out,
1565          visibility .15s ease-in,
1566          opacity .15s ease-in,
1567          transform .15s ease-in
1568        ) !important;
1569        visibility: var(--media-menu-hidden-visibility, hidden);
1570        opacity: var(--media-menu-hidden-opacity, 0);
1571        max-height: var(--media-menu-hidden-max-height,
1572          var(--media-menu-max-height, var(--_menu-max-height, 300px)));
1573        transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
1574        pointer-events: none;
1575      }
1576
1577      :host([slot="submenu"]) {
1578        background: none;
1579        width: 100%;
1580        min-height: 100%;
1581        position: absolute;
1582        bottom: 0;
1583        right: -100%;
1584      }
1585
1586      #container {
1587        display: flex;
1588        flex-direction: column;
1589        min-height: 0;
1590        transition: transform .2s ease-out;
1591        transform: translate(0, 0);
1592      }
1593
1594      #container.has-expanded {
1595        transition: transform .2s ease-in;
1596        transform: translate(-100%, 0);
1597      }
1598
1599      button {
1600        background: none;
1601        color: inherit;
1602        border: none;
1603        padding: 0;
1604        font: inherit;
1605        outline: inherit;
1606        display: inline-flex;
1607        align-items: center;
1608      }
1609
1610      slot[name="header"][hidden] {
1611        display: none;
1612      }
1613
1614      slot[name="header"] > *,
1615      slot[name="header"]::slotted(*) {
1616        padding: .4em .7em;
1617        border-bottom: 1px solid rgb(255 255 255 / .25);
1618        cursor: var(--media-cursor, default);
1619      }
1620
1621      slot[name="header"] > button[part~="back"],
1622      slot[name="header"]::slotted(button[part~="back"]) {
1623        cursor: var(--media-cursor, pointer);
1624      }
1625
1626      svg[part~="back"] {
1627        height: var(--media-menu-icon-height, var(--media-control-height, 24px));
1628        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1629        display: block;
1630        margin-right: .5ch;
1631      }
1632
1633      slot:not([name]) {
1634        gap: var(--media-menu-gap);
1635        flex-direction: var(--media-menu-flex-direction, column);
1636        overflow: var(--media-menu-overflow, hidden auto);
1637        display: flex;
1638        min-height: 0;
1639      }
1640
1641      :host([role="menu"]) slot:not([name]) {
1642        padding-block: .4em;
1643      }
1644
1645      slot:not([name])::slotted([role="menu"]) {
1646        background: none;
1647      }
1648
1649      media-chrome-menu-item > span {
1650        margin-right: .5ch;
1651        max-width: var(--media-menu-item-max-width);
1652        text-overflow: ellipsis;
1653        overflow: hidden;
1654      }
1655    </style>
1656    <style id="layout-row" media="width:0">
1657
1658      slot[name="header"] > *,
1659      slot[name="header"]::slotted(*) {
1660        padding: .4em .5em;
1661      }
1662
1663      slot:not([name]) {
1664        gap: var(--media-menu-gap, .25em);
1665        flex-direction: var(--media-menu-flex-direction, row);
1666        padding-inline: .5em;
1667      }
1668
1669      media-chrome-menu-item {
1670        padding: .3em .5em;
1671      }
1672
1673      media-chrome-menu-item[aria-checked="true"] {
1674        background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
1675      }
1676
1677      
1678      media-chrome-menu-item::part(checked-indicator) {
1679        display: var(--media-menu-item-checked-indicator-display, none);
1680      }
1681    </style>
1682    <div id="container" part="container">
1683      <slot name="header" hidden>
1684        <button part="back button" aria-label="Back to previous menu">
1685          <slot name="back-icon">
1686            <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
1687              <path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>
1688            </svg>
1689          </slot>
1690          <slot name="title"></slot>
1691        </button>
1692      </slot>
1693      <slot></slot>
1694    </div>
1695    <slot name="checked-indicator" hidden></slot>
1696  `},av.customElements.get("media-chrome-menu")||av.customElements.define("media-chrome-menu",lv);var lE=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ly=(e,t,i)=>(lE(e,t,"read from private field"),i?i.call(e):t.get(e)),lg=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},l_=(e,t,i,a)=>(lE(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lT=(e,t,i)=>(lE(e,t,"access private method"),i);let lk={TYPE:"type",VALUE:"value",CHECKED:"checked",DISABLED:"disabled"};class lA extends av.HTMLElement{constructor(){if(super(),lg(this,hG),lg(this,hQ),lg(this,hX),lg(this,h3),lg(this,hV,!1),lg(this,hY,void 0),lg(this,h0,()=>{var e,t;this.submenuElement.items&&this.setAttribute("submenusize",`${this.submenuElement.items.length}`);let i=this.shadowRoot.querySelector('slot[name="description"]'),a=null==(e=this.submenuElement.checkedItems)?void 0:e[0],r=null!=(t=null==a?void 0:a.dataset.description)?t:null==a?void 0:a.text,n=af.createElement("span");n.textContent=null!=r?r:"",i.replaceChildren(n)}),lg(this,h1,e=>{let{key:t}=e;if(!this.keysUsed.includes(t)){this.removeEventListener("keyup",ly(this,h1));return}this.handleClick(e)}),lg(this,h2,e=>{let{metaKey:t,altKey:i,key:a}=e;if(t||i||!this.keysUsed.includes(a)){this.removeEventListener("keyup",ly(this,h1));return}this.addEventListener("keyup",ly(this,h1),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);let e=aT(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[lk.TYPE,lk.DISABLED,lk.CHECKED,lk.VALUE]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),lw(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","fal
1696se"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":lT(this,hG,hz).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":ly(this,h2).call(this,e);break;case"keyup":ly(this,h1).call(this,e)}}attributeChangedCallback(e,t,i){e===lk.CHECKED&&lw(this)&&!ly(this,hV)?this.setAttribute("aria-checked",null!=i?"true":"false"):e===lk.TYPE&&i!==t?this.role="menuitem"+i:e===lk.DISABLED&&i!==t&&(null==i?this.enable():this.disable())}connectedCallback(){this.hasAttribute(lk.DISABLED)||this.enable(),this.role="menuitem"+this.type,l_(this,hY,function e(t,i){if(!t)return null;let{host:a}=t.getRootNode();return!i&&a?e(t,a):(null==i?void 0:i.items)?i:e(i,null==i?void 0:i.parentNode)}(this,this.parentNode)),lT(this,h3,h4).call(this),this.submenuElement&&lT(this,hQ,hZ).call(this),this.shadowRoot.addEventListener("slotchange",this)}disconnectedCallback(){this.disable(),lT(this,h3,h4).call(this),l_(this,hY,null),this.shadowRoot.removeEventListener("slotchange",this)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=aD(this))?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return null!=(e=this.getAttribute(lk.TYPE))?e:""}set type(e){this.setAttribute(lk.TYPE,`${e}`)}get value(){var e;return null!=(e=this.getAttribute(lk.VALUE))?e:this.text}set value(e){this.setAttribute(lk.VALUE,e)}get text(){var e;return(null!=(e=this.textContent)?e:"").trim()}get checked(){if(lw(this))return"true"===this.getAttribute("aria-checked")}set checked(e){lw(this)&&(l_(this,hV,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){!lw(this)&&this.invokeTargetElement&&aL(this,e.target)&&this.invokeTargetElement.dispatchEvent(new ln({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}}function lw(e){return"radio"===e.type||"checkbox"===e.type}hV=new WeakMap,hY=new WeakMap,hG=new WeakSet,hz=function(e){let t=e.target;if(!(null==t?void 0:t.name))for(let e of t.assignedNodes({flatten:!0}))e instanceof Text&&""===e.textContent.trim()&&e.remove();"submenu"===t.name&&(this.submenuElement?lT(this,hQ,hZ).call(this):lT(this,hX,hJ).call(this))},hQ=new WeakSet,hZ=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",ly(this,h0)),this.submenuElement.addEventListener("addmenuitem",ly(this,h0)),this.submenuElement.addEventListener("removemenuitem",ly(this,h0)),ly(this,h0).call(this)},hX=new WeakSet,hJ=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",ly(this,h0)),this.submenuElement.removeEventListener("addmenuitem",ly(this,h0)),this.submenuElement.removeEventListener("removemenuitem",ly(this,h0)),ly(this,h0).call(this)},h0=new WeakMap,h1=new WeakMap,h2=new WeakMap,h3=new WeakSet,h4=function(){var e;let t=null==(e=ly(this,hY))?void 0:e.radioGroupItems;if(!t)return;let i=t.filter(e=>"true"===e.getAttribute("aria-checked")).pop();for(let e of(i||(i=t[0]),t))e.setAttribute("aria-checked","false");null==i||i.setAttribute("aria-checked","true")},lA.shadowRootOptions={mode:"open"},lA.getTemplateHTML=function(e){return`
1697    <style>
1698      :host {
1699        transition: var(--media-menu-item-transition,
1700          background .15s linear,
1701          opacity .2s ease-in-out
1702        );
1703        outline: var(--media-menu-item-outline, 0);
1704        outline-offset: var(--media-menu-item-outline-offset, -1px);
1705        cursor: var(--media-cursor, pointer);
1706        display: flex;
1707        align-items: center;
1708        align-self: stretch;
1709        justify-self: stretch;
1710        white-space: nowrap;
1711        white-space-collapse: collapse;
1712        text-wrap: nowrap;
1713        padding: .4em .8em .4em 1em;
1714      }
1715
1716      :host(:focus-visible) {
1717        box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
1718        outline: var(--media-menu-item-hover-outline, 0);
1719        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
1720      }
1721
1722      :host(:hover) {
1723        cursor: var(--media-cursor, pointer);
1724        background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
1725        outline: var(--media-menu-item-hover-outline);
1726        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
1727      }
1728
1729      :host([aria-checked="true"]) {
1730        background: var(--media-menu-item-checked-background);
1731      }
1732
1733      :host([hidden]) {
1734        display: none;
1735      }
1736
1737      :host([disabled]) {
1738        pointer-events: none;
1739        color: rgba(255, 255, 255, .3);
1740      }
1741
1742      slot:not([name]) {
1743        width: 100%;
1744      }
1745
1746      slot:not([name="submenu"]) {
1747        display: inline-flex;
1748        align-items: center;
1749        transition: inherit;
1750        opacity: var(--media-menu-item-opacity, 1);
1751      }
1752
1753      slot[name="description"] {
1754        justify-content: end;
1755      }
1756
1757      slot[name="description"] > span {
1758        display: inline-block;
1759        margin-inline: 1em .2em;
1760        max-width: var(--media-menu-item-description-max-width, 100px);
1761        text-overflow: ellipsis;
1762        overflow: hidden;
1763        font-size: .8em;
1764        font-weight: 400;
1765        text-align: right;
1766        position: relative;
1767        top: .04em;
1768      }
1769
1770      slot[name="checked-indicator"] {
1771        display: none;
1772      }
1773
1774      :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {
1775        display: var(--media-menu-item-checked-indicator-display, inline-block);
1776      }
1777
1778      
1779      svg, img, ::slotted(svg), ::slotted(img) {
1780        height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));
1781        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1782        display: block;
1783      }
1784
1785      
1786      [part~="indicator"],
1787      ::slotted([part~="indicator"]) {
1788        fill: var(--media-menu-item-indicator-fill,
1789          var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
1790        height: var(--media-menu-item-indicator-height, 1.25em);
1791        margin-right: .5ch;
1792      }
1793
1794      [part~="checked-indicator"] {
1795        visibility: hidden;
1796      }
1797
1798      :host([aria-checked="true"]) [part~="checked-indicator"] {
1799        visibility: visible;
1800      }
1801    </style>
1802    <slot name="checked-indicator">
1803      <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
1804        <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
1805      </svg>
1806    </slot>
1807    <slot name="prefix"></slot>
1808    <slot></slot>
1809    <slot name="description"></slot>
1810    <slot name="suffix">
1811      ${this.getSuffixSlotInnerHTML(e)}
1812    </slot>
1813    <slot name="submenu"></slot>
1814  `},lA.getSuffixSlotInnerHTML=function(e){return""},av.customElements.get("media-chrome-menu-item")||av.customElements.define("media-chrome-menu-item",lA);class lS extends lv{get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ak(this).querySelector("media-settings-menu-button")}}lS.getTemplateHTML=function(e){return`
1815    ${lv.getTemplateHTML(e)}
1816    <style>
1817      :host {
1818        --_menu-bg: rgb(20 20 30 / .8);
1819        background: var(--media-settings-menu-background,
1820            var(--media-menu-background,
1821              var(--media-control-background,
1822                var(--media-secondary-color, var(--_menu-bg)))));
1823        min-width: var(--media-settings-menu-min-width, 170px);
1824        border-radius: 2px 2px 0 0;
1825        overflow: hidden;
1826      }
1827
1828      @-moz-document url-prefix() {
1829        :host{
1830          --_menu-bg: rgb(20 20 30);
1831        }
1832      }
1833
1834      :host([role="menu"]) {
1835        
1836        justify-content: end;
1837      }
1838
1839      slot:not([name]) {
1840        justify-content: var(--media-settings-menu-justify-content);
1841        flex-direction: var(--media-settings-menu-flex-direction, column);
1842        overflow: visible;
1843      }
1844
1845      #container.has-expanded {
1846        --media-settings-menu-item-opacity: 0;
1847      }
1848    </style>
1849  `},av.customElements.get("media-settings-menu")||av.customElements.define("media-settings-menu",lS);class lI extends lA{}lI.shadowRootOptions={mode:"open"},lI.getTemplateHTML=function(e){return`
1850    ${lA.getTemplateHTML.call(this,e)}
1851    <style>
1852      slot:not([name="submenu"]) {
1853        opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));
1854      }
1855
1856      :host([aria-expanded="true"]:hover) {
1857        background: transparent;
1858      }
1859    </style>
1860  `},lI.getSuffixSlotInnerHTML=function(e){return`
1861    <svg aria-hidden="true" viewBox="0 0 20 24">
1862      <path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/>
1863    </svg>
1864  `},av.customElements.get("media-settings-menu-item")||av.customElements.define("media-settings-menu-item",lI);class lL extends nr{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=aD(this))?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){var e;null==(e=this.invokeTargetElement)||e.dispatchEvent(new ln({relatedTarget:this}))}}av.customElements.get("media-chrome-menu-button")||av.customElements.define("media-chrome-menu-button",lL);class lR extends lL{static get observedAttributes(){return[...super.observedAttributes,"target"]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",ai("settings"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:ak(this).querySelector("media-settings-menu")}}lR.getSlotTemplateHTML=function(){return`
1865    <style>
1866      :host([aria-expanded="true"]) slot[name=tooltip] {
1867        display: none;
1868      }
1869    </style>
1870    <slot name="icon">
1871      <svg aria-hidden="true" viewBox="0 0 24 24">
1872        <path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>
1873      </svg>
1874    </slot>
1875  `},lR.getTooltipContentHTML=function(){return ai("Settings")},av.customElements.get("media-settings-menu-button")||av.customElements.define("media-settings-menu-button",lR);var lC=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lD=(e,t,i)=>(lC(e,t,"read from private field"),i?i.call(e):t.get(e)),lO=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lx=(e,t,i,a)=>(lC(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lM=(e,t,i)=>(lC(e,t,"access private method"),i);class lN extends lv{constructor(){super(...arguments),lO(this,h8),lO(this,h7),lO(this,h5,[]),lO(this,h9,void 0)}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_AUDIO_TRACK_LIST,iV.MEDIA_AUDIO_TRACK_ENABLED,iV.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===iV.MEDIA_AUDIO_TRACK_ENABLED&&t!==i)this.value=i;else if(e===iV.MEDIA_AUDIO_TRACK_LIST&&t!==i){var a;lx(this,h5,null==(a=null!=i?i:"")?void 0:a.split(/\s+/).map(i4)),lM(this,h8,h6).call(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lM(this,h7,pe))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lM(this,h7,pe))}get anchorElement(){var e;return"auto"!==this.anchor?super.anchorElement:null==(e=ak(this))?void 0:e.querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return lD(this,h5)}set mediaAudioTrackList(e){lx(this,h5,e),lM(this,h8,h6).call(this)}get mediaAudioTrackEnabled(){var e;return null!=(e=a$(this,iV.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){aH(this,iV.MEDIA_AUDIO_TRACK_ENABLED,e)}}h5=new WeakMap,h9=new WeakMap,h8=new WeakSet,h6=function(){if(lD(this,h9)===JSON.stringify(this.mediaAudioTrackList))return;lx(this,h9,JSON.stringify(this.mediaAudioTrackList));let e=this.mediaAudioTrackList;for(let t of(this.defaultSlot.textContent="",e.sort((e,t)=>
1875e.id.localeCompare(t.id,void 0,{numeric:!0})),e)){let e=lh({type:"radio",text:this.formatMenuItemText(t.label,t),value:`${t.id}`,checked:t.enabled});e.prepend(lp(this,"checked-indicator")),this.defaultSlot.append(e)}},h7=new WeakSet,pe=function(){if(null==this.value)return;let e=new av.CustomEvent(iW.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},av.customElements.get("media-audio-track-menu")||av.customElements.define("media-audio-track-menu",lN);let lP=`<svg aria-hidden="true" viewBox="0 0 24 24">
1876  <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
1877  <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
1878</svg>`,lU=e=>{let t=ai("Audio");e.setAttribute("aria-label",t)};class lB extends lL{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_AUDIO_TRACK_ENABLED,iV.MEDIA_AUDIO_TRACK_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),lU(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_LANG&&lU(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=ak(this))?void 0:e.querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){var e;return null!=(e=a$(this,iV.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){aH(this,iV.MEDIA_AUDIO_TRACK_ENABLED,e)}}lB.getSlotTemplateHTML=function(){return`
1879    <style>
1880      :host([aria-expanded="true"]) slot[name=tooltip] {
1881        display: none;
1882      }
1883    </style>
1884    <slot name="icon">${lP}</slot>
1885  `},lB.getTooltipContentHTML=function(){return ai("Audio")},av.customElements.get("media-audio-track-menu-button")||av.customElements.define("media-audio-track-menu-button",lB);var l$=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lH=(e,t,i)=>(l$(e,t,"read from private field"),i?i.call(e):t.get(e)),lj=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lW=(e,t,i,a)=>(l$(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lq=(e,t,i)=>(l$(e,t,"access private method"),i);let lK=`
1886  <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
1887    <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
1888  </svg>`;class lF extends lv{constructor(){super(...arguments),lj(this,pi),lj(this,pr),lj(this,pt,void 0)}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_SUBTITLES_LIST,iV.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_SUBTITLES_LIST&&t!==i?lq(this,pi,pa).call(this):e===iV.MEDIA_SUBTITLES_SHOWING&&t!==i&&(this.value=i||"",lq(this,pi,pa).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lq(this,pr,pn))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lq(this,pr,pn))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ak(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return lV(this,iV.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){lY(this,iV.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return lV(this,iV.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){lY(this,iV.MEDIA_SUBTITLES_SHOWING,e)}}pt=new WeakMap,pi=new WeakSet,pa=function(){var e;let t=lH(this,pt)!==JSON.stringify(this.mediaSubtitlesList),i=this.value!==this.getAttribute(iV.MEDIA_SUBTITLES_SHOWING);if(!t&&!i)return;lW(this,pt,JSON.stringify(this.mediaSubtitlesList)),this.defaultSlot.textContent="";let a=!this.value,r=lh({type:"radio",text:this.formatMenuItemText(ai("Off")),value:"off",checked:a});for(let t of(r.prepend(lp(this,"checked-indicator")),this.defaultSlot.append(r),this.mediaSubtitlesList)){let i=lh({type:"radio",text:this.formatMenuItemText(t.label,t),value:re(t),checked:this.value==re(t)});i.prepend(lp(this,"checked-indicator")),"captions"===(null!=(e=t.kind)?e:"subs")&&i.append(lp(this,"captions-indicator")),this.defaultSlot.append(i)}}
1888,pr=new WeakSet,pn=function(){let e=this.mediaSubtitlesShowing,t=this.getAttribute(iV.MEDIA_SUBTITLES_SHOWING),i=this.value!==t;if((null==e?void 0:e.length)&&i&&this.dispatchEvent(new av.CustomEvent(iW.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:e})),!this.value||!i)return;let a=new av.CustomEvent(iW.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(a)},lF.getTemplateHTML=function(e){return`
1889    ${lv.getTemplateHTML(e)}
1890    <slot name="captions-indicator" hidden>${lK}</slot>
1891  `};let lV=(e,t)=>{let i=e.getAttribute(t);return i?a6(i):[]},lY=(e,t,i)=>{if(!(null==i?void 0:i.length)){e.removeAttribute(t);return}let a=rt(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};av.customElements.get("media-captions-menu")||av.customElements.define("media-captions-menu",lF);let lG=`<svg aria-hidden="true" viewBox="0 0 26 24">
1892  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
1893</svg>`,lz=`<svg aria-hidden="true" viewBox="0 0 26 24">
1894  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
1895</svg>`,lQ=e=>{e.setAttribute("data-captions-enabled",ro(e).toString())},lZ=e=>{e.setAttribute("aria-label",ai("closed captions"))};class lX extends lL{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_SUBTITLES_LIST,iV.MEDIA_SUBTITLES_SHOWING,iV.MEDIA_LANG]}connectedCallback(){super.connectedCallback(),lZ(this),lQ(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_SUBTITLES_SHOWING?lQ(this):e===iV.MEDIA_LANG&&lZ(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=ak(this))?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return lJ(this,iV.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){l0(this,iV.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return lJ(this,iV.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){l0(this,iV.MEDIA_SUBTITLES_SHOWING,e)}}lX.getSlotTemplateHTML=function(){return`
1896    <style>
1897      :host([data-captions-enabled="true"]) slot[name=off] {
1898        display: none !important;
1899      }
1900
1901      
1902      :host(:not([data-captions-enabled="true"])) slot[name=on] {
1903        display: none !important;
1904      }
1905
1906      :host([aria-expanded="true"]) slot[name=tooltip] {
1907        display: none;
1908      }
1909    </style>
1910
1911    <slot name="icon">
1912      <slot name="on">${lG}</slot>
1913      <slot name="off">${lz}</slot>
1914    </slot>
1915  `},lX.getTooltipContentHTML=function(){return ai("Captions")};let lJ=(e,t)=>
1915{let i=e.getAttribute(t);return i?a6(i):[]},l0=(e,t,i)=>{if(!(null==i?void 0:i.length)){e.removeAttribute(t);return}let a=rt(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};av.customElements.get("media-captions-menu-button")||av.customElements.define("media-captions-menu-button",lX);var l1=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},l2=(e,t,i)=>(l1(e,t,"read from private field"),i?i.call(e):t.get(e)),l3=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},l4=(e,t,i)=>(l1(e,t,"access private method"),i);let l5={RATES:"rates"};class l9 extends lv{constructor(){super(),l3(this,ps),l3(this,pd),l3(this,po,new a5(this,l5.RATES,{defaultValue:oL})),l4(this,ps,pl).call(this)}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PLAYBACK_RATE,l5.RATES]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===iV.MEDIA_PLAYBACK_RATE&&t!=i?(this.value=i,l4(this,ps,pl).call(this)):e===l5.RATES&&t!=i&&(l2(this,po).value=i,l4(this,ps,pl).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",l4(this,pd,pu))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",l4(this,pd,pu))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ak(this).querySelector("media-playback-rate-menu-button")}get rates(){return l2(this,po)}set rates(e){e?Array.isArray(e)?l2(this,po).value=e.join(" "):"string"==typeof e&&(l2(this,po).value=e):l2(this,po).value="",l4(this,ps,pl).call(this)}get mediaPlaybackRate(){return aN(this,iV.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){aP(this,iV.MEDIA_PLAYBACK_RATE,e)}}po=new WeakMap,ps=new WeakSet,pl=function(){this.defaultSlot.textContent="";let e=this.mediaPlaybackRate,t=new Set(Array.from(l2(this,po)).map(e=>Number(e)));for(let i of(e>0&&!t.has(e)&&t.add(e),Array.from(t).sort((e,t)=>e-t))){let t=lh({type:"radio",text:this.formatMenuItemText(`${i}x`,i),value:i.toString(),checked:e===i});t.prepend(lp(this,"checked-indicator")),this.defaultSlot.append(t)}},pd=new WeakSet,pu=function(){if(!this.value)return;let e=new av.CustomEvent(iW.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},av.customElements.get("media-playback-rate-menu")||av.customElements.define("media-playback-rate-menu",l9);class l8 extends lL{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_PLAYBACK_RATE]}constructor(){var e;super(),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${null!=(e=this.mediaPlaybackRate)?e:1}x`}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===iV.MEDIA_PLAYBACK_RATE){let e=i?+i:Number.NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",ai("Playback rate {playbackRate}",{playbackRate:t}))}}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:ak(this).querySelector("media-playback-rate-menu")}get mediaPlaybackRate(){return aN(this,iV.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){aP(this,iV.MEDIA_PLAYBACK_RATE,e)}}l8.getSlotTemplateHTML=function(e){return`
1916    <style>
1917      :host {
1918        min-width: 5ch;
1919        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1920      }
1921      
1922      :host([aria-expanded="true"]) slot {
1923        display: block;
1924      }
1925
1926      :host([aria-expanded="true"]) slot[name=tooltip] {
1927        display: none;
1928      }
1929    </style>
1930    <slot name="icon">${e.mediaplaybackrate||1}x</slot>
1931  `},l8.getTooltipContentHTML=function(){return ai("Playback rate")},av.customElements.get("media-playback-rate-menu-button")||av.customElements.define("media-playback-rate-menu-button",l8);var l6=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},l7=(e,t,i)=>(l6(e,t,"read from private field"),i?i.call(e):t.get(e)),de=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},dt=(e,t,i,a)=>(l6(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),di=(e,t,i)=>(l6(e,t,"access private method"),i);class da extends lv{constructor(){super(...arguments),de(this,pp),de(this,pv),de(this,pc,[]),de(this,ph,{})}static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_RENDITION_LIST,iV.MEDIA_RENDITION_SELECTED,iV.MEDIA_RENDITION_UNAVAILABLE,iV.MEDIA_HEIGHT]}static formatMenuItemText(e,t){return super.formatMenuItemText(e,t)}static formatRendition(e,{showBitrate:t=!1}={}){let i=`${Math.min(e.width,e.height)}p`;if(t&&e.bitrate){let t=e.bitrate/1e6,a=`${t.toFixed(t<1?1:0)} Mbps`;return`${i} (${a})`}return this.formatMenuItemText(i,e)}static compareRendition(e,t){var i,a;return t.height===e.height?(null!=(i=t.bitrate)?i:0)-(null!=(a=e.bitrate)?a:0):t.height-e.height}attributeChangedCallback(e,t,i){(super.attributeChangedCallback(e,t,i),e===iV.MEDIA_RENDITION_SELECTED&&t!==i)?(this.value=null!=i?i:"auto",di(this,pp,pm).call(this)):e===iV.MEDIA_RENDITION_LIST&&t!==i?(dt(this,pc,null==i?void 0:i.split(/\s+/).map(i2)),di(this,pp,pm).call(this)):e===iV.MEDIA_HEIGHT&&t!==i&&di(this,pp,pm).call(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",di(this,pv,pf))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",di(this,pv,pf))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:ak(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return l7(this,pc)}set mediaRenditionList(e){dt(this,pc,e),di(this,pp,pm).call(this)}get mediaRenditionSelected(){return a$(this,iV.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){aH(this,iV.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return aN(this,iV.MEDIA_HEIGHT)}set mediaHeight(e){aP(this,iV.MEDIA_HEIGHT,e)}compareRendition(e,t){return this.constructor.compareRendition(e,t)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}formatRendition(e,t){return this.constructor.formatRendition(e,t)}showRenditionBitrate(e){return this.mediaRenditionList.some(t=>t!==e&&t.height===e.height&&t.bitrate!==e.bitrate)}}
1931pc=new WeakMap,ph=new WeakMap,pp=new WeakSet,pm=function(){if(l7(this,ph).mediaRenditionList===JSON.stringify(this.mediaRenditionList)&&l7(this,ph).mediaHeight===this.mediaHeight)return;l7(this,ph).mediaRenditionList=JSON.stringify(this.mediaRenditionList),l7(this,ph).mediaHeight=this.mediaHeight;let e=this.mediaRenditionList.sort(this.compareRendition.bind(this)),t=e.find(e=>e.id===this.mediaRenditionSelected);for(let i of e)i.selected=i===t;this.defaultSlot.textContent="";let i=!this.mediaRenditionSelected;for(let t of e){let e=lh({type:"radio",text:this.formatRendition(t,{showBitrate:this.showRenditionBitrate(t)}),value:`${t.id}`,checked:t.selected&&!i});e.prepend(lp(this,"checked-indicator")),this.defaultSlot.append(e)}let a=t&&this.showRenditionBitrate(t),r=i?t?this.formatMenuItemText(`${ai("Auto")} \u2022 ${this.formatRendition(t,{showBitrate:a})}`,t):this.formatMenuItemText(`${ai("Auto")} (${this.mediaHeight}p)`):this.formatMenuItemText(ai("Auto")),n=lh({type:"radio",text:r,value:"auto",checked:i});n.dataset.description=r,n.prepend(lp(this,"checked-indicator")),this.defaultSlot.append(n)},pv=new WeakSet,pf=function(){if(null==this.value)return;let e=new av.CustomEvent(iW.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},av.customElements.get("media-rendition-menu")||av.customElements.define("media-rendition-menu",da);let dr=`<svg aria-hidden="true" viewBox="0 0 24 24">
1932  <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />
1933</svg>`;class dn extends lL{static get observedAttributes(){return[...super.observedAttributes,iV.MEDIA_RENDITION_SELECTED,iV.MEDIA_RENDITION_UNAVAILABLE,iV.MEDIA_HEIGHT]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",ai("quality"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:ak(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return a$(this,iV.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){aH(this,iV.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return aN(this,iV.MEDIA_HEIGHT)}set mediaHeight(e){aP(this,iV.MEDIA_HEIGHT,e)}}dn.getSlotTemplateHTML=function(){return`
1934    <style>
1935      :host([aria-expanded="true"]) slot[name=tooltip] {
1936        display: none;
1937      }
1938    </style>
1939    <slot name="icon">${dr}</slot>
1940  `},dn.getTooltipContentHTML=function(){return ai("Quality")},av.customElements.get("media-rendition-menu-button")||av.customElements.define("media-rendition-menu-button",dn);var ds=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},dl=(e,t,i)=>(ds(e,t,"read from private field"),i?i.call(e):t.get(e)),dd=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},du=(e,t,i,a)=>(ds(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),dc=(e,t,i)=>(ds(e,t,"access private method"),i);class dh extends lv{constructor(){super(),dd(this,pE),dd(this,pg),dd(this,pT),dd(this,pA),dd(this,pI),dd(this,pb,!1),dd(this,pS,e=>{let t=e.target,i=(null==t?void 0:t.nodeName)==="VIDEO",a=dc(this,pA,pw).call(this,t);(i||a)&&(dl(this,pb)?dc(this,pg,p_).call(this):dc(this,pI,pL).call(this,e))}),dd(this,pR,e=>{let t=e.target,i=this.contains(t),a=2===e.button,r=(null==t?void 0:t.nodeName)==="VIDEO",n=dc(this,pA,pw).call(this,t);!i&&(a&&(r||n)||dc(this,pg,p_).call(this))}),dd(this,pC,e=>{"Escape"===e.key&&dc(this,pg,p_).call(this)}),dd(this,pD,e=>{var t,i;let a=e.target;if(null==(t=a.matches)?void 0:t.call(a,'button[invoke="copy"]')){let e=null==(i=a.closest("media-context-menu-item"))?void 0:i.querySelector('input[slot="copy"]');e&&navigator.clipboard.writeText(e.value)}dc(this,pg,p_).call(this)}),this.setAttribute("noautohide",""),dc(this,pE,py).call(this)}connectedCallback(){super.connectedCallback(),ak(this).addEventListener("contextmenu",dl(this,pS)),this.addEventListener("click",dl(this,pD))}disconnectedCallback(){super.disconnectedCallback(),ak(this).removeEventListener("contextmenu",dl(this,pS)),this.removeEventListener("click",dl(this,pD)),document.removeEventListener("mousedown",dl(this,pR)),document.removeEventListener("keydown",dl(this,pC))}}pb=new WeakMap,pE=new WeakSet,py=function(){this.hidden=!dl(this,pb)},pg=new WeakSet,p_=function(){du(this,pb,!1),dc(this,pE,py).call(this)},pT=new WeakSet,pk=function(){document.querySelectorAll("media-context-menu").forEach(e
1940=>{e!==this&&dc(e,pg,p_).call(e)})},pA=new WeakSet,pw=function(e){return!!e&&(!!e.hasAttribute("slot")&&"media"===e.getAttribute("slot")||!!(e.nodeName.includes("-")&&e.tagName.includes("-"))&&(e.hasAttribute("src")||e.hasAttribute("poster")||e.hasAttribute("preload")||e.hasAttribute("playsinline")))},pS=new WeakMap,pI=new WeakSet,pL=function(e){e.preventDefault(),dc(this,pT,pk).call(this),du(this,pb,!0),this.style.position="fixed",this.style.left=`${e.clientX}px`,this.style.top=`${e.clientY}px`,dc(this,pE,py).call(this),document.addEventListener("mousedown",dl(this,pR),{once:!0}),document.addEventListener("keydown",dl(this,pC),{once:!0})},pR=new WeakMap,pC=new WeakMap,pD=new WeakMap,dh.getTemplateHTML=function(e){return`
1941      ${lv.getTemplateHTML(e)}
1942      <style>
1943        :host {
1944          --_menu-bg: rgb(20 20 30 / .8);
1945          background: var(--media-settings-menu-background,
1946            var(--media-menu-background,
1947              var(--media-control-background,
1948                var(--media-secondary-color, var(--_menu-bg)))));
1949          min-width: var(--media-settings-menu-min-width, 170px);
1950          border-radius: 2px;
1951          overflow: hidden;
1952        }
1953      </style>
1954    `},av.customElements.get("media-context-menu")||av.customElements.define("media-context-menu",dh);class dp extends lA{}dp.shadowRootOptions={mode:"open"},dp.getTemplateHTML=function(e){return`
1955    ${lA.getTemplateHTML.call(this,e)}
1956    <style>
1957        ::slotted(*) {
1958            color: var(--media-text-color, white);
1959            text-decoration: none;
1960            border: none;
1961            background: none;
1962            cursor: pointer;
1963            padding: 0;
1964            min-height: var(--media-control-height, 24px);
1965        }
1966    </style>
1967  `},av.customElements.get("media-context-menu-item")||av.customElements.define("media-context-menu-item",dp);var dm=e=>{throw TypeError(e)},dv=(e,t,i)=>t.has(e)||dm("Cannot "+i),df=(e,t,i)=>(dv(e,t,"read from private field"),i?i.call(e):t.get(e)),db=(e,t,i)=>t.has(e)?dm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),dE=(e,t,i,a)=>(dv(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),dy=(e,t,i)=>(dv(e,t,"access private method"),i),dg=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends dg{}globalThis.DocumentFragment=e}var d_,dT,dk,dA,dw,dS,dI,dL,dR,dC,dD,dO,dx,dM,dN,dP,dU,dB,d$,dH,dj,dW,dq,dK,dF,dV,dY,dG,dz,dQ,dZ,dX,dJ,d0,d1,d2,d3,d4,d5,d9,d8,d6,d7,ue,ut,ui,ua,ur,un,uo,us,ul,ud,uu,uc,uh,up,um,uv,uf,ub,uE,uy,ug,u_,uT,uk,uA,uw,uS,uI,uL,uR,uC,uD,uO,ux,uM,uN,uP,uU,uB,u$,uH,uj,uW,uq,uK,uF,uV,uY,uG,uz,uQ,uZ,uX,uJ,u0,u1,u2,u3,u4,u5,u9,u8,u6,u7,ce,ct,ci,ca,cr,cn,co,cs,cl,cd,cu,cc,ch,cp,cm,cv,cf,cb,cE,cy,cg,c_,cT,ck,cA,cw,cS,cI,cL,cR,cC,cD,cO,cx,cM,cN,cP,cU,cB,c$,cH,cj,cW,cq,cK,cF,cV,cY,cG,cz,cQ,cZ,cX,cJ,c0,c1,c2,c3,c4,c5,c9,c8,c6,c7,he,ht,hi,ha,hr,hn,ho,hs,hl,hd,hu,hc,hh,hp,hm,hv,hf,hb,hE,hy,hg,h_,hT,hk,hA,hw,hS,hI,hL,hR,hC,hD,hO,hx,hM,hN,hP,hU,hB,h$,hH,hj,hW,hq,hK,hF,hV,hY,hG,hz,hQ,hZ,hX,hJ,h0,h1,h2,h3,h4,h5,h9,h8,h6,h7,pe,pt,pi,pa,pr,pn,po,ps,pl,pd,pu,pc,ph,pp,pm,pv,pf,pb,pE,py,pg,p_,pT,pk,pA,pw,pS,pI,pL,pR,pC,pD,pO,px=class extends dg{},pM=class{constructor(e,t={}){db(this,pO),dE(this,pO,null==t?void 0:t.detail)}get detail(){return df(this,pO)}initCustomEvent(){}};pO=new WeakMap;var pN={document:{createElement:function(e,t){return new px}},DocumentFragment,customElements:{get(e){},define(e,t,i){},getName:e=>null,upgrade(e){},whenDefined:e=>Promise.resolve(px)},CustomEvent:pM,EventTarget:dg,HTMLElement:px,HTMLVideoElement:class extends dg{}},pP="undefined"==typeof window||void 0===globalThis.customElements,pU=pP?pN:globalThis,pB=pP?pN.document:globalThis.document;function p$(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function pH(e){return e.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase())}function pj(e){if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}function pW(e){let t=(function(e){let t={};for(let i in e)null!=e[i]&&(t[i]=e[i]);return new URLSearchParams(t)})(e).toString();return t?"?"+t:""}var pq,pK,pF,pV=(e,t)=>!!e&&!!t&&(!!e.contains(t)||pV(e,t.getRootNode().host)),pY="mux.com",pG=(()=>{try{return"3.11.7"}catch{}return"UNKNOWN"})(),pz=(e,{token:t,customDomain:i=pY,thumbnailTime:a,programTime:r}={})=>{var n;let o=null==t?a:void 0,{aud:s}=null!=(n=x(t))?n:{};if(!(t&&"t"!==s))return`https://image.${i}/${e}/thumbnail.webp${pW({token:t,time:o,program_time:r})}`},pQ=(e,{token:t,customDomain:i=pY,programStartTime:a,programEndTime:r}={})=>{var n;let{aud:o}=null!=(n=x(t))?n:{};if(!(t&&"s"!==o))return`https://image.${i}/${e}/storyboard.vtt${pW({token:t,format:"webp",program_start_time:a,program_end_time:r})}`},pZ=e=>{if(e){if([E.LIVE,E.ON_DEMAND].includes(e))return e;if(null!=e&&e.includes("live"))return E.LIVE}}
1967,pX={crossorigin:"crossOrigin",playsinline:"playsInline"},pJ=class{constructor(e,t){db(this,pq),db(this,pK),db(this,pF,[]),dE(this,pq,e),dE(this,pK,t)}[Symbol.iterator](){return df(this,pF).values()}get length(){return df(this,pF).length}get value(){var e;return null!=(e=df(this,pF).join(" "))?e:""}set value(e){var t;e!==this.value&&(dE(this,pF,[]),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return df(this,pF)[e]}values(){return df(this,pF).values()}keys(){return df(this,pF).keys()}forEach(e){df(this,pF).forEach(e)}add(...e){var t,i;e.forEach(e=>{this.contains(e)||df(this,pF).push(e)}),(""!==this.value||null!=(t=df(this,pq))&&t.hasAttribute(`${df(this,pK)}`))&&null!=(i=df(this,pq))&&i.setAttribute(`${df(this,pK)}`,`${this.value}`)}remove(...e){var t;e.forEach(e=>{df(this,pF).splice(df(this,pF).indexOf(e),1)}),null==(t=df(this,pq))||t.setAttribute(`${df(this,pK)}`,`${this.value}`)}contains(e){return df(this,pF).includes(e)}toggle(e,t){return void 0!==t?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){this.remove(e),this.add(t)}};pq=new WeakMap,pK=new WeakMap,pF=new WeakMap;var p0=`[mux-player ${pG}]`;function p1(...e){console.warn(p0,...e)}function p2(...e){console.error(p0,...e)}function p3(e){var t;let i=null!=(t=e.message)?t:"";e.context&&(i+=` ${e.context}`),e.file&&(i+=` ${B("Read more: ")}
1968https://github.com/muxinc/elements/blob/main/errors/${e.file}`),p1(i)}var p4={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},p5={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},p9=Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),p8=[...Object.values(p4).filter(e=>p4.PLAYSINLINE!==e),...Object.values(p5)];function p6(e,t){return e.media?e.media.getAttribute(t):e.getAttribute(t)}var p7=class extends pU.HTMLElement{static get observedAttributes(){return p8}constructor(){super()}attributeChangedCallback(e,t,i){var a,r;switch(e){case p5.MUTED:this.media&&(this.media.muted=null!=i,this.media.defaultMuted=null!=i);return;case p5.VOLUME:{let e=null!=(a=pj(i))?a:1;this.media&&(this.media.volume=e);return}case p5.PLAYBACKRATE:{let e=null!=(r=pj(i))?r:1;this.media&&(this.media.playbackRate=e,this.media.defaultPlaybackRate=e);return}}}play(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.play())?t:Promise.reject()}pause(){var e;null==(e=this.media)||e.pause()}load(){var e;null==(e=this.media)||e.load()}get media(){var e;return null==(e=this.shadowRoot)?void 0:e.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var e,t;return null==(t=null==(e=this.media)?void 0:e.paused)||t}get duration(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.duration)?t:NaN}get ended(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.ended)&&t}get buffered(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.buffered)?t:p9}get seekable(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.seekable)?t:p9}get readyState(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.readyState)?t:0}get videoWidth(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.videoWidth)?t:0}get videoHeight(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.videoHeight)?t:0}get currentSrc(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.currentSrc)?t:""}get currentTime(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.currentTime)?t:0}set currentTime(e){this.media&&(this.media.currentTime=Number(e))}get volume(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.volume)?t:1}set volume(e){this.media&&(this.media.volume=Number(e))}get playbackRate(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.playbackRate)?t:1}set playbackRate(e){this.media&&(this.media.playbackRate=Number(e))}get defaultPlaybackRate(){var e;return null!=(e=pj(this.getAttribute(p5.PLAYBACKRATE)))?e:1}set defaultPlaybackRate(e){null!=e?this.setAttribute(p5.PLAYBACKRATE,`${e}`):this.removeAttribute(p5.PLAYBACKRATE)}get crossOrigin(){return p6(this,p4.CROSSORIGIN)}set crossOrigin(e){this.setAttribute(p4.CROSSORIGIN,`${e}`)}get autoplay(){return null!=p6(this,p4.AUTOPLAY)}set autoplay(e){e?this.setAttribute(p4.AUTOPLAY,"string"==typeof e?e:""):this.removeAttribute(p4.AUTOPLAY)}get loop(){return null!=p6(this,p4.LOOP)}set loop(e){e?this.setAttribute(p4.LOOP,""):this.removeAttribute(p4.LOOP)}get muted(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.muted)&&t}set muted(e){this.media&&(this.media.muted=!!e)}get defaultMuted(){return null!=p6(this,p4.MUTED)}set defaultMuted(e){e?this.setAttribute(p4.MUTED,""):this.removeAttribute(p4.MUTED)}
1968get playsInline(){return null!=p6(this,p4.PLAYSINLINE)}set playsInline(e){p2("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(e){["","none","metadata","auto"].includes(e)?this.setAttribute(p4.PRELOAD,e):this.removeAttribute(p4.PRELOAD)}},me=`:host {
1969  --media-control-display: var(--controls);
1970  --media-loading-indicator-display: var(--loading-indicator);
1971  --media-dialog-display: var(--dialog);
1972  --media-play-button-display: var(--play-button);
1973  --media-live-button-display: var(--live-button);
1974  --media-seek-backward-button-display: var(--seek-backward-button);
1975  --media-seek-forward-button-display: var(--seek-forward-button);
1976  --media-mute-button-display: var(--mute-button);
1977  --media-captions-button-display: var(--captions-button);
1978  --media-captions-menu-button-display: var(--captions-menu-button, var(--media-captions-button-display));
1979  --media-rendition-menu-button-display: var(--rendition-menu-button);
1980  --media-audio-track-menu-button-display: var(--audio-track-menu-button);
1981  --media-airplay-button-display: var(--airplay-button);
1982  --media-pip-button-display: var(--pip-button);
1983  --media-fullscreen-button-display: var(--fullscreen-button);
1984  --media-cast-button-display: var(--cast-button, var(--_cast-button-drm-display));
1985  --media-playback-rate-button-display: var(--playback-rate-button);
1986  --media-playback-rate-menu-button-display: var(--playback-rate-menu-button);
1987  --media-volume-range-display: var(--volume-range);
1988  --media-time-range-display: var(--time-range);
1989  --media-time-display-display: var(--time-display);
1990  --media-duration-display-display: var(--duration-display);
1991  --media-title-display-display: var(--title-display);
1992
1993  display: inline-block;
1994  line-height: 0;
1995  width: 100%;
1996}
1997
1998a {
1999  color: #fff;
2000  font-size: 0.9em;
2001  text-decoration: underline;
2002}
2003
2004media-theme {
2005  display: inline-block;
2006  line-height: 0;
2007  width: 100%;
2008  height: 100%;
2009  direction: ltr;
2010}
2011
2012media-poster-image {
2013  display: inline-block;
2014  line-height: 0;
2015  width: 100%;
2016  height: 100%;
2017}
2018
2019media-poster-image:not([src]):not([placeholdersrc]) {
2020  display: none;
2021}
2022
2023::part(top),
2024[part~='top'] {
2025  --media-control-display: var(--controls, var(--top-controls));
2026  --media-play-button-display: var(--play-button, var(--top-play-button));
2027  --media-live-button-display: var(--live-button, var(--top-live-button));
2028  --media-seek-backward-button-display: var(--seek-backward-button, var(--top-seek-backward-button));
2029  --media-seek-forward-button-display: var(--seek-forward-button, var(--top-seek-forward-button));
2030  --media-mute-button-display: var(--mute-button, var(--top-mute-button));
2031  --media-captions-button-display: var(--captions-button, var(--top-captions-button));
2032  --media-captions-menu-button-display: var(
2033    --captions-menu-button,
2034    var(--media-captions-button-display, var(--top-captions-menu-button))
2035  );
2036  --media-rendition-menu-button-display: var(--rendition-menu-button, var(--top-rendition-menu-button));
2037  --media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--top-audio-track-menu-button));
2038  --media-airplay-button-display: var(--airplay-button, var(--top-airplay-button));
2039  --media-pip-button-display: var(--pip-button, var(--top-pip-button));
2040  --media-fullscreen-button-display: var(--fullscreen-button, var(--top-fullscreen-button));
2041  --media-cast-button-display: var(--cast-button, var(--top-cast-button, var(--_cast-button-drm-display)));
2042  --media-playback-rate-button-display: var(--playback-rate-button, var(--top-playback-rate-button));
2043  --media-playback-rate-menu-button-display: var(
2044    --captions-menu-button,
2045    var(--media-playback-rate-button-display, var(--top-playback-rate-menu-button))
2046  );
2047  --media-volume-range-display: var(--volume-range, var(--top-volume-range));
2048  --media-time-range-display: var(--time-range, var(--top-time-range));
2049  --media-time-display-display: var(--time-display, var(--top-time-display));
2050  --media-duration-display-display: var(--duration-display, var(--top-duration-display));
2051  --media-title-display-display: var(--title-display, var(--top-title-display));
2052}
2053
2054::part(center),
2055[part~='center'] {
2056  --media-control-display: var(--controls, var(--center-controls));
2057  --media-play-button-display: var(--play-button, var(--center-play-button));
2058  --media-live-button-display: var(--live-button, var(--center-live-button));
2059  --media-seek-backward-button-display: var(--seek-backward-button, var(--center-seek-backward-button));
2060  --media-seek-forward-button-display: var(--seek-forward-button, var(--center-seek-forward-button));
2061  --media-mute-button-display: var(--mute-button, var(--center-mute-button));
2062  --media-captions-button-display: var(--captions-button, var(--center-captions-button));
2063  --media-captions-menu-button-display: var(
2064    --captions-menu-button,
2065    var(--media-captions-button-display, var(--center-captions-menu-button))
2066  );
2067  --media-rendition-menu-button-display: var(--rendition-menu-button, var(--center-rendition-menu-button));
2068  --media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--center-audio-track-menu-button));
2069  --media-airplay-button-display: var(--airplay-button, var(--center-airplay-button));
2070  --media-pip-button-display: var(--pip-button, var(--center-pip-button));
2071  --media-fullscreen-button-display: var(--fullscreen-button, var(--center-fullscreen-button));
2072  --media-cast-button-display: var(--cast-button, var(--center-cast-button, var(--_cast-button-drm-display)));
2073  --media-playback-rate-button-display: var(--playback-rate-button, var(--center-playback-rate-button));
2074  --media-playback-rate-menu-button-display: var(
2075    --playback-rate-menu-button,
2076    var(--media-playback-rate-button-display, var(--center-playback-rate-menu-button))
2077  );
2078  --media-volume-range-display: var(--volume-range, var(--center-volume-range));
2079  --media-time-range-display: var(--time-range, var(--center-time-range));
2080  --media-time-display-display: var(--time-display, var(--center-time-display));
2081  --media-duration-display-display: var(--duration-display, var(--center-duration-display));
2082}
2083
2084::part(bottom),
2085[part~='bottom'] {
2086  --media-control-display: var(--controls, var(--bottom-controls));
2087  --media-play-button-display: var(--play-button, var(--bottom-play-button));
2088  --media-live-button-display: var(--live-button, var(--bottom-live-button));
2089  --media-seek-backward-button-display: var(--seek-backward-button, var(--bottom-seek-backward-button));
2090  --media-seek-forward-button-display: var(--seek-forward-button, var(--bottom-seek-forward-button));
2091  --media-mute-button-display: var(--mute-button, var(--bottom-mute-button));
2092  --media-captions-button-display: var(--captions-button, var(--bottom-captions-button));
2093  --media-captions-menu-button-display: var(
2094    --captions-menu-button,
2095    var(--media-captions-button-display, var(--bottom-captions-menu-button))
2096  );
2097  --media-rendition-menu-button-display: var(--rendition-menu-button, var(--bottom-rendition-menu-button));
2098  --media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--bottom-audio-track-menu-button));
2099  --media-airplay-button-display: var(--airplay-button, var(--bottom-airplay-button));
2100  --media-pip-button-display: var(--pip-button, var(--bottom-pip-button));
2101  --media-fullscreen-button-display: var(--fullscreen-button, var(--bottom-fullscreen-button));
2102  --media-cast-button-display: var(--cast-button, var(--bottom-cast-button, var(--_cast-button-drm-display)));
2103  --media-playback-rate-button-display: var(--playback-rate-button, var(--bottom-playback-rate-button));
2104  --media-playback-rate-menu-button-display: var(
2105    --playback-rate-menu-button,
2106    var(--media-playback-rate-button-display, var(--bottom-playback-rate-menu-button))
2107  );
2108  --media-volume-range-display: var(--volume-range, var(--bottom-volume-range));
2109  --media-time-range-display: var(--time-range, var(--bottom-time-range));
2110  --media-time-display-display: var(--time-display, var(--bottom-time-display));
2111  --media-duration-display-display: var(--duration-display, var(--bottom-duration-display));
2112  --media-title-display-display: var(--title-display, var(--bottom-title-display));
2113}
2114
2115:host([no-tooltips]) {
2116  --media-tooltip-display: none;
2117}
2118`,mt=new WeakMap,mi=class e{constructor(e,t){this.element=e,this.type=t,this.element.addEventListener(this.type,this);let i=mt.get(this.element);i&&i.set(this.type,this)}set(e){if("function"==typeof e)this.handleEvent=e.bind(this.element);else if("object"==typeof e&&"function"==typeof e.handleEvent)this.handleEvent=e.handleEvent.bind(e);else{this.element.removeEventListener(this.type,this);let e=mt.get(this.element);
2118e&&e.delete(this.type)}}static for(t){mt.has(t.element)||mt.set(t.element,new Map);let i=t.attributeName.slice(2),a=mt.get(t.element);return a&&a.has(i)?a.get(i):new e(t.element,i)}},ma=new Map,mr=new WeakMap,mn=new WeakMap,mo=class{constructor(e,t,i){this.strings=e,this.values=t,this.processor=i,this.stringsKey=this.strings.join("\x01")}get template(){if(ma.has(this.stringsKey))return ma.get(this.stringsKey);{let e=pB.createElement("template"),t=this.strings.length-1;return e.innerHTML=this.strings.reduce((e,i,a)=>e+i+(a<t?`{{ ${a} }}`:""),""),ma.set(this.stringsKey,e),e}}renderInto(e){var t;let i=this.template;if(mr.get(e)!==i){mr.set(e,i);let t=new sU(i,this.values,this.processor);mn.set(e,t),e instanceof sF?e.replace(...t.children):e.appendChild(t);return}let a=mn.get(e);null==(t=null==a?void 0:a.update)||t.call(a,this.values)}},ms={processCallback(e,t,i){var a,r,n;if(i)for(let[e,o]of t){e in i&&(function(e,t){if(e instanceof sK&&t instanceof Element){let i=e.element;return i[e.attributeName]!==t&&(e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),i[e.attributeName]=t),!0}return!1}(r=o,n=null!=(a=i[e])?a:"")||function(e,t){if("boolean"==typeof t&&e instanceof sK){let i=e.attributeNamespace;return t!==e.element.hasAttributeNS(i,e.attributeName)&&(e.booleanValue=t),!0}return!1}(r,n)||r instanceof sK&&r.attributeName.startsWith("on")&&(mi.for(r).set(n),r.element.removeAttributeNS(r.attributeNamespace,r.attributeName),1)||!1===n&&r instanceof sF&&(r.replace(""),1)||n instanceof mo&&r instanceof sF&&(n.renderInto(r),1)||n instanceof DocumentFragment&&r instanceof sF&&(n.childNodes.length&&r.replace(...n.childNodes),1)||function(e,t){if(e instanceof sK){let i=e.attributeNamespace,a=e.element.getAttributeNS(i,e.attributeName);return String(t)!==a&&(e.value=String(t))}e.value=String(t)}(r,n))}}};function ml(e,...t){return new mo(e,t,ms)}var md=e=>{let{tokens:t}=e;return t.drm?":host(:not([cast-receiver])) { --_cast-button-drm-display: none; }":""},mu=e=>ml`
2119  <style>
2120    ${md(e)}
2121    ${me}
2122  </style>
2123  ${mp(e)}
2124`,mc=e=>{let t=e.hotKeys?`${e.hotKeys}`:"";return"live"===pZ(e.streamType)&&(t+=" noarrowleft noarrowright"),t},mh=Object.values({TOP:"top",CENTER:"center",BOTTOM:"bottom",LAYER:"layer",MEDIA_LAYER:"media-layer",POSTER_LAYER:"poster-layer",VERTICAL_LAYER:"vertical-layer",CENTERED_LAYER:"centered-layer",GESTURE_LAYER:"gesture-layer",CONTROLLER_LAYER:"controller",BUTTON:"button",RANGE:"range",THUMB:"thumb",DISPLAY:"display",CONTROL_BAR:"control-bar",MENU_BUTTON:"menu-button",MENU:"menu",MENU_ITEM:"menu-item",OPTION:"option",POSTER:"poster",LIVE:"live",PLAY:"play",PRE_PLAY:"pre-play",SEEK_BACKWARD:"seek-backward",SEEK_FORWARD:"seek-forward",MUTE:"mute",CAPTIONS:"captions",AIRPLAY:"airplay",PIP:"pip",FULLSCREEN:"fullscreen",CAST:"cast",PLAYBACK_RATE:"playback-rate",VOLUME:"volume",TIME:"time",TITLE:"title",AUDIO_TRACK:"audio-track",RENDITION:"rendition"}).join(", "),mp=e=>{var t,i,a,r,n,o,s,l,d,u,c,h,m,v,f,b,y,g,_,T,k,A,w,S,I,L,R,C,D,O,x,M,N,P,U,B,$,H,j,W;let q;return ml`
2125  <media-theme
2126    template="${e.themeTemplate||!1}"
2127    defaultstreamtype="${null!=(t=e.defaultStreamType)&&t}"
2128    hotkeys="${mc(e)||!1}"
2129    nohotkeys="${e.noHotKeys||!e.hasSrc||!1}"
2130    noautoseektolive="${!!(null!=(i=e.streamType)&&i.includes(E.LIVE))&&0!==e.targetLiveWindow}"
2131    novolumepref="${e.novolumepref||!1}"
2132    nomutedpref="${e.nomutedpref||!1}"
2133    disabled="${!e.hasSrc||e.isDialogOpen}"
2134    audio="${null!=(a=e.audio)&&a}"
2135    style="${null!=(W={"--media-primary-color":e.primaryColor,"--media-secondary-color":e.secondaryColor,"--media-accent-color":e.accentColor},q="",Object.entries(W).forEach(([e,t])=>{null!=t&&(q+=`${p$(e)}: ${t}; `)}),r=q?q.trim():void 0)&&r}"
2136    defaultsubtitles="${!e.defaultHiddenCaptions}"
2137    forwardseekoffset="${null!=(n=e.forwardSeekOffset)&&n}"
2138    backwardseekoffset="${null!=(o=e.backwardSeekOffset)&&o}"
2139    playbackrates="${null!=(s=e.playbackRates)&&s}"
2140    defaultshowremainingtime="${null!=(l=e.defaultShowRemainingTime)&&l}"
2141    defaultduration="${null!=(d=e.defaultDuration)&&d}"
2142    hideduration="${null!=(u=e.hideDuration)&&u}"
2143    title="${null!=(c=e.title)&&c}"
2144    videotitle="${null!=(h=e.videoTitle)&&h}"
2145    proudlydisplaymuxbadge="${null!=(m=e.proudlyDisplayMuxBadge)&&m}"
2146    exportparts="${mh}"
2147    onclose="${e.onCloseErrorDialog}"
2148    onfocusin="${e.onFocusInErrorDialog}"
2149  >
2150    <mux-video
2151      slot="media"
2152      inert="${null!=(v=e.noHotKeys)&&v}"
2153      target-live-window="${null!=(f=e.targetLiveWindow)&&f}"
2154      stream-type="${null!=(b=pZ(e.streamType))&&b}"
2155      crossorigin="${null!=(y=e.crossOrigin)?y:""}"
2156      playsinline
2157      autoplay="${null!=(g=e.autoplay)&&g}"
2158      muted="${null!=(_=e.muted)&&_}"
2159      loop="${null!=(T=e.loop)&&T}"
2160      preload="${null!=(k=e.preload)&&k}"
2161      debug="${null!=(A=e.debug)&&A}"
2162      prefer-cmcd="${null!=(w=e.preferCmcd)&&w}"
2163      disable-tracking="${null!=(S=e.disableTracking)&&S}"
2164      disable-cookies="${null!=(I=e.disableCookies)&&I}"
2165      prefer-playback="${null!=(L=e.preferPlayback)&&L}"
2166      start-time="${null!=e.startTime&&e.startTime}"
2167      beacon-collection-domain="${null!=(R=e.beaconCollectionDomain)&&R}"
2168      player-init-time="${null!=(C=e.playerInitTime)&&C}"
2169      player-software-name="${null!=(D=e.playerSoftwareName)&&D}"
2170      player-software-version="${null!=(O=e.playerSoftwareVersion)&&O}"
2171      env-key="${null!=(x=e.envKey)&&x}"
2172      custom-domain="${null!=(M=e.customDomain)&&M}"
2173      src="${e.src?e.src:!!e.playbackId&&eF(e)}"
2174      cast-src="${e.src?e.src:!!e.playbackId&&eF(e)}"
2175      cast-receiver="${null!=(N=e.castReceiver)&&N}"
2176      drm-token="${null!=(U=null==(P=e.tokens)?void 0:P.drm)&&U}"
2177      exportparts="video"
2178      disable-pseudo-ended="${null!=(B=e.disablePseudoEnded)&&B}"
2179      max-auto-resolution="${null!=($=e.maxAutoResolution)&&$}"
2180      cap-rendition-to-player-size="${null!=(H=e.capRenditionToPlayerSize)&&H}"
2181    >
2182      ${e.storyboard?ml`<track label="thumbnails" default kind="metadata" src="${e.storyboard}" />`:ml``}
2183      <slot></slot>
2184    </mux-video>
2185    <slot name="poster" slot="poster">
2186      <media-poster-image
2187        part="poster"
2188        exportparts="poster, img"
2189        src="${!!e.poster&&e.poster}"
2190        placeholdersrc="${null!=(j=e.placeholder)&&j}"
2191      ></media-poster-image>
2192    </slot>
2193  </media-theme>
2194`},mm=e=>e.charAt(0).toUpperCase()+e.slice(1),mv=(e,t=!1)=>{var i,a;if(e.muxCode){let r=mm(null!=(i=e.errorCategory)?i:"video"),n=h(null!=(a=e.errorCategory)?a:u.VIDEO);if(e.muxCode===c.NETWORK_OFFLINE)return B("Your device appears to be offline",t);if(e.muxCode===c.NETWORK_TOKEN_EXPIRED)return B("{category} URL has expired",t).format({category:r});if([c.NETWORK_TOKEN_SUB_MISMATCH,c.NETWORK_TOKEN_AUD_MISMATCH,c.NETWORK_TOKEN_AUD_MISSING,c.NETWORK_TOKEN_MALFORMED].includes(e.muxCode))return B("{category} URL is formatted incorrectly",t).format({category:r});if(e.muxCode===c.NETWORK_TOKEN_MISSING)return B("Invalid {categoryName} URL",t).format({categoryName:n});if(e.muxCode===c.NETWORK_NOT_FOUND)return B("{category} does not exist",t).format({category:r});if(e.muxCode===c.NETWORK_NOT_READY){let i="live"===e.streamType?"Live stream":"Video";return B("{mediaType} is not currently available",t).format({mediaType:i})}}if(e.code){if(e.code===m.MEDIA_ERR_NETWORK)return B("Network Error",t);if(e.code===m.MEDIA_ERR_DECODE)return B("Media Error",t);if(e.code===m.MEDIA_ERR_SRC_NOT_SUPPORTED)return B("Source Not Supported",t)}return B("Error",t)},mf=(e,t=!1)=>{var i,a;if(e.muxCode){let r=mm(null!=(i=e.errorCategory)?i:"video"),n=h(null!=(a=e.errorCategory)?a:u.VIDEO);return e.muxCode===c.NETWORK_OFFLINE?B("Check your internet connection and try reloading this video.",t):e.muxCode===c.NETWORK_TOKEN_EXPIRED?B("The video’s secured {tokenNamePrefix}-token has expired.",t).format({tokenNamePrefix:n}):e.muxCode===c.NETWORK_TOKEN_SUB_MISMATCH?B("The video’s playback ID does not match the one encoded in the {tokenNamePrefix}-token.",t).format({tokenNamePrefix:n}):e.muxCode===c.NETWORK_TOKEN_MALFORMED?B("{category} URL is formatted incorrectly",t).format({category:r}):[c.NETWORK_TOKEN_AUD_MISMATCH,c.NETWORK_TOKEN_AUD_MISSING].includes(e.muxCode)?B("The {tokenNamePrefix}-token is formatted with incorrect information.",t).format({tokenNamePrefix:n}):[c.NETWORK_TOKEN_MISSING,c.NETWORK_INVALID_URL].includes(e.muxCode)?B("The video URL or {tokenNamePrefix}-token are formatted with incorrect or incomplete information.",t).format({tokenNamePrefix:n}):e.muxCode===c.NETWORK_NOT_FOUND?"":e.message}return e.code&&(e.code===m.MEDIA_ERR_NETWORK||e.code===m.MEDIA_ERR_DECODE||(e.code,m.MEDIA_ERR_SRC_NOT_SUPPORTED)),e.message},mb=(e,t=!1)=>({title:mv(e,t).toString(),message:mf(e,t).toString()}),mE=e=>{if(e.muxCode){if(e.muxCode===c.NETWORK_TOKEN_EXPIRED)return"403-expired-token.md";if(e.muxCode===c.NETWORK_TOKEN_MALFORMED)return"403-malformatted-token.md";if([c.NETWORK_TOKEN_AUD_MISMATCH,c.NETWORK_TOKEN_AUD_MISSING].includes(e.muxCode))return"403-incorrect-aud-value.md";if(e.muxCode===c.NETWORK_TOKEN_SUB_MISMATCH)return"403-playback-id-mismatch.md";if(e.muxCode===c.NETWORK_TOKEN_MISSING)return"missing-signed-tokens.md";if(e.muxCode===c.NETWORK_NOT_FOUND)return"404-not-found.md";if(e.muxCode===c.NETWORK_NOT_READY)return"412-not-playable.md"}if(e.code){if(e.code===m.MEDIA_ERR_NETWORK)return"";if(e.code===m.MEDIA_ERR_DECODE)return"media-decode-error.md";if(e.code===m.MEDIA_ERR_SRC_NOT_SUPPORTED)return"media-src-not-supported.md"}return""},my=(e,t)=>{let i=mE(e);return{message:e.message,context:e.context,file:i}},mg
vendor: 8,830 bytes, lines 2194-2494
2194=`<template id="media-theme-gerwig">
2195  <style>
2196    @keyframes pre-play-hide {
2197      0% {
2198        transform: scale(1);
2199        opacity: 1;
2200      }
2201
2202      30% {
2203        transform: scale(0.7);
2204      }
2205
2206      100% {
2207        transform: scale(1.5);
2208        opacity: 0;
2209      }
2210    }
2211
2212    :host {
2213      --_primary-color: var(--media-primary-color, #fff);
2214      --_secondary-color: var(--media-secondary-color, transparent);
2215      --_accent-color: var(--media-accent-color, #fa50b5);
2216      --_text-color: var(--media-text-color, #000);
2217
2218      --media-icon-color: var(--_primary-color);
2219      --media-control-background: var(--_secondary-color);
2220      --media-control-hover-background: var(--_accent-color);
2221      --media-time-buffered-color: rgba(255, 255, 255, 0.4);
2222      --media-preview-time-text-shadow: none;
2223      --media-control-height: 14px;
2224      --media-control-padding: 6px;
2225      --media-tooltip-container-margin: 6px;
2226      --media-tooltip-distance: 18px;
2227
2228      color: var(--_primary-color);
2229      display: inline-block;
2230      width: 100%;
2231      height: 100%;
2232    }
2233
2234    :host([audio]) {
2235      --_secondary-color: var(--media-secondary-color, black);
2236      --media-preview-time-text-shadow: none;
2237    }
2238
2239    :host([audio]) ::slotted([slot='media']) {
2240      height: 0px;
2241    }
2242
2243    :host([audio]) media-loading-indicator {
2244      display: none;
2245    }
2246
2247    :host([audio]) media-controller {
2248      background: transparent;
2249    }
2250
2251    :host([audio]) media-controller::part(vertical-layer) {
2252      background: transparent;
2253    }
2254
2255    :host([audio]) media-control-bar {
2256      width: 100%;
2257      background-color: var(--media-control-background);
2258    }
2259
2260    /*
2261     * 0.433s is the transition duration for VTT Regions.
2262     * Borrowed here, so the captions don't move too fast.
2263     */
2264    media-controller {
2265      --media-webkit-text-track-transform: translateY(0) scale(0.98);
2266      --media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;
2267    }
2268    media-controller:is([mediapaused], :not([userinactive])) {
2269      --media-webkit-text-track-transform: translateY(-50px) scale(0.98);
2270      --media-webkit-text-track-transition: transform 0.15s ease;
2271    }
2272
2273    /*
2274     * CSS specific to iOS devices.
2275     * See: https://stackoverflow.com/questions/30102792/css-media-query-to-target-only-ios-devices/60220757#60220757
2276     */
2277    @supports (-webkit-touch-callout: none) {
2278      /* Disable subtitle adjusting for iOS Safari */
2279      media-controller[mediaisfullscreen] {
2280        --media-webkit-text-track-transform: unset;
2281        --media-webkit-text-track-transition: unset;
2282      }
2283    }
2284
2285    media-time-range {
2286      --media-box-padding-left: 6px;
2287      --media-box-padding-right: 6px;
2288      --media-range-bar-color: var(--_accent-color);
2289      --media-time-range-buffered-color: var(--_primary-color);
2290      --media-range-track-color: transparent;
2291      --media-range-track-background: rgba(255, 255, 255, 0.4);
2292      --media-range-thumb-background: radial-gradient(
2293        circle,
2294        #000 0%,
2295        #000 25%,
2296        var(--_accent-color) 25%,
2297        var(--_accent-color)
2298      );
2299      --media-range-thumb-width: 12px;
2300      --media-range-thumb-height: 12px;
2301      --media-range-thumb-transform: scale(0);
2302      --media-range-thumb-transition: transform 0.3s;
2303      --media-range-thumb-opacity: 1;
2304      --media-preview-background: var(--_primary-color);
2305      --media-box-arrow-background: var(--_primary-color);
2306      --media-preview-thumbnail-border: 5px solid var(--_primary-color);
2307      --media-preview-border-radius: 5px;
2308      --media-text-color: var(--_text-color);
2309      --media-control-hover-background: transparent;
2310      --media-preview-chapter-text-shadow: none;
2311      color: var(--_accent-color);
2312      padding: 0 6px;
2313    }
2314
2315    :host([audio]) media-time-range {
2316      --media-preview-time-padding: 1.5px 6px;
2317      --media-preview-box-margin: 0 0 -5px;
2318    }
2319
2320    media-time-range:hover {
2321      --media-range-thumb-transform: scale(1);
2322    }
2323
2324    media-preview-thumbnail {
2325      border-bottom-width: 0;
2326    }
2327
2328    [part~='menu'] {
2329      border-radius: 2px;
2330      border: 1px solid rgba(0, 0, 0, 0.1);
2331      bottom: 50px;
2332      padding: 2.5px 10px;
2333    }
2334
2335    [part~='menu']::part(indicator) {
2336      fill: var(--_accent-color);
2337    }
2338
2339    [part~='menu']::part(menu-item) {
2340      box-sizing: border-box;
2341      display: flex;
2342      align-items: center;
2343      padding: 6px 10px;
2344      min-height: 34px;
2345    }
2346
2347    [part~='menu']::part(checked) {
2348      font-weight: 700;
2349    }
2350
2351    media-captions-menu,
2352    media-rendition-menu,
2353    media-audio-track-menu,
2354    media-playback-rate-menu {
2355      position: absolute; /* ensure they don't take up space in DOM on load */
2356      --media-menu-background: var(--_primary-color);
2357      --media-menu-item-checked-background: transparent;
2358      --media-text-color: var(--_text-color);
2359      --media-menu-item-hover-background: transparent;
2360      --media-menu-item-hover-outline: var(--_accent-color) solid 1px;
2361    }
2362
2363    media-rendition-menu {
2364      min-width: 140px;
2365    }
2366
2367    /* The icon is a circle so make it 16px high instead of 14px for more balance. */
2368    media-audio-track-menu-button {
2369      --media-control-padding: 5px;
2370      --media-control-height: 16px;
2371    }
2372
2373    media-playback-rate-menu-button {
2374      --media-control-padding: 6px 3px;
2375      min-width: 4.4ch;
2376    }
2377
2378    media-playback-rate-menu {
2379      --media-menu-flex-direction: row;
2380      --media-menu-item-checked-background: var(--_accent-color);
2381      --media-menu-item-checked-indicator-display: none;
2382      margin-right: 6px;
2383      padding: 0;
2384      --media-menu-gap: 0.25em;
2385    }
2386
2387    media-playback-rate-menu[part~='menu']::part(menu-item) {
2388      padding: 6px 6px 6px 8px;
2389    }
2390
2391    media-playback-rate-menu[part~='menu']::part(checked) {
2392      color: #fff;
2393    }
2394
2395    :host(:not([audio])) media-time-range {
2396      /* Adding px is required here for calc() */
2397      --media-range-padding: 0px;
2398      background: transparent;
2399      z-index: 10;
2400      height: 10px;
2401      bottom: -3px;
2402      width: 100%;
2403    }
2404
2405    media-control-bar :is([role='button'], [role='switch'], button) {
2406      line-height: 0;
2407    }
2408
2409    media-control-bar :is([part*='button'], [part*='range'], [part*='display']) {
2410      border-radius: 3px;
2411    }
2412
2413    .spacer {
2414      flex-grow: 1;
2415      background-color: var(--media-control-background, rgba(20, 20, 30, 0.7));
2416    }
2417
2418    media-control-bar[slot~='top-chrome'] {
2419      min-height: 42px;
2420      pointer-events: none;
2421    }
2422
2423    media-control-bar {
2424      --gradient-steps:
2425        hsl(0 0% 0% / 0) 0%, hsl(0 0% 0% / 0.013) 8.1%, hsl(0 0% 0% / 0.049) 15.5%, hsl(0 0% 0% / 0.104) 22.5%,
2426        hsl(0 0% 0% / 0.175) 29%, hsl(0 0% 0% / 0.259) 35.3%, hsl(0 0% 0% / 0.352) 41.2%, hsl(0 0% 0% / 0.45) 47.1%,
2427        hsl(0 0% 0% / 0.55) 52.9%, hsl(0 0% 0% / 0.648) 58.8%, hsl(0 0% 0% / 0.741) 64.7%, hsl(0 0% 0% / 0.825) 71%,
2428        hsl(0 0% 0% / 0.896) 77.5%, hsl(0 0% 0% / 0.951) 84.5%, hsl(0 0% 0% / 0.987) 91.9%, hsl(0 0% 0%) 100%;
2429    }
2430
2431    :host([title]) media-control-bar[slot='top-chrome']::before,
2432    :host([videotitle]) media-control-bar[slot='top-chrome']::before {
2433      content: '';
2434      position: absolute;
2435      width: 100%;
2436      padding-bottom: min(100px, 25%);
2437      background: linear-gradient(to top, var(--gradient-steps));
2438      opacity: 0.8;
2439      pointer-events: none;
2440    }
2441
2442    :host(:not([audio])) media-control-bar[part~='bottom']::before {
2443      content: '';
2444      position: absolute;
2445      width: 100%;
2446      bottom: 0;
2447      left: 0;
2448      padding-bottom: min(100px, 25%);
2449      background: linear-gradient(to bottom, var(--gradient-steps));
2450      opacity: 0.8;
2451      z-index: 1;
2452      pointer-events: none;
2453    }
2454
2455    media-control-bar[part~='bottom'] > * {
2456      z-index: 20;
2457    }
2458
2459    media-control-bar[part~='bottom'] {
2460      padding: 6px 6px;
2461    }
2462
2463    media-control-bar[slot~='top-chrome'] > * {
2464      --media-control-background: transparent;
2465      --media-control-hover-background: transparent;
2466      position: relative;
2467    }
2468
2469    media-controller::part(vertical-layer) {
2470      transition: background-color 1s;
2471    }
2472
2473    media-controller:is([mediapaused], :not([userinactive]))::part(vertical-layer) {
2474      background-color: var(--controls-backdrop-color, var(--controls, transparent));
2475      transition: background-color 0.25s;
2476    }
2477
2478    .center-controls {
2479      --media-button-icon-width: 100%;
2480      --media-button-icon-height: auto;
2481      --media-tooltip-display: none;
2482      pointer-events: none;
2483      width: 100%;
2484      display: flex;
2485      flex-flow: row;
2486      align-items: center;
2487      justify-content: center;
2488      paint-order: stroke;
2489      stroke: rgba(102, 102, 102, 1);
2490      stroke-width: 0.3px;
2491      text-shadow:
2492        0 0 2px rgb(0 0 0 / 0.25),
2493        0 0 6px rgb(0 0 0 / 0.25);
2494    
2494}
2495
2496    .center-controls media-play-button {
2497      --media-control-background: transparent;
2498      --media-control-hover-background: transparent;
2499      --media-control-padding: 0;
2500      width: 40px;
2501      filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25))
vendor: 38,939 bytes, lines 2501-3326
2501;
2502    }
2503
2504    [breakpointsm] .center-controls media-play-button {
2505      width: 90px;
2506      height: 90px;
2507      border-radius: 50%;
2508      transition: background 0.4s;
2509      padding: 24px;
2510      --media-control-background: #000;
2511      --media-control-hover-background: var(--_accent-color);
2512    }
2513
2514    .center-controls media-seek-backward-button,
2515    .center-controls media-seek-forward-button {
2516      --media-control-background: transparent;
2517      --media-control-hover-background: transparent;
2518      padding: 0;
2519      margin: 0 20px;
2520      width: max(33px, min(8%, 40px));
2521      text-shadow:
2522        0 0 2px rgb(0 0 0 / 0.25),
2523        0 0 6px rgb(0 0 0 / 0.25);
2524    }
2525
2526    [breakpointsm]:not([audio]) .center-controls.pre-playback {
2527      display: grid;
2528      align-items: initial;
2529      justify-content: initial;
2530      height: 100%;
2531      overflow: hidden;
2532    }
2533
2534    [breakpointsm]:not([audio]) .center-controls.pre-playback media-play-button {
2535      place-self: var(--_pre-playback-place, center);
2536      grid-area: 1 / 1;
2537      margin: 16px;
2538    }
2539
2540    /* Show and hide controls or pre-playback state */
2541
2542    [breakpointsm]:is([mediahasplayed], :not([mediapaused])):not([audio])
2543      .center-controls.pre-playback
2544      media-play-button {
2545      /* Using \`forwards\` would lead to a laggy UI after the animation got in the end state */
2546      animation: 0.3s linear pre-play-hide;
2547      opacity: 0;
2548      pointer-events: none;
2549    }
2550
2551    .autoplay-unmute {
2552      --media-control-hover-background: transparent;
2553      width: 100%;
2554      display: flex;
2555      align-items: center;
2556      justify-content: center;
2557      filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));
2558    }
2559
2560    .autoplay-unmute-btn {
2561      --media-control-height: 16px;
2562      border-radius: 8px;
2563      background: #000;
2564      color: var(--_primary-color);
2565      display: flex;
2566      align-items: center;
2567      padding: 8px 16px;
2568      font-size: 18px;
2569      font-weight: 500;
2570      cursor: pointer;
2571    }
2572
2573    .autoplay-unmute-btn:hover {
2574      background: var(--_accent-color);
2575    }
2576
2577    [breakpointsm] .autoplay-unmute-btn {
2578      --media-control-height: 30px;
2579      padding: 14px 24px;
2580      font-size: 26px;
2581    }
2582
2583    .autoplay-unmute-btn svg {
2584      margin: 0 6px 0 0;
2585    }
2586
2587    [breakpointsm] .autoplay-unmute-btn svg {
2588      margin: 0 10px 0 0;
2589    }
2590
2591    media-controller:not([audio]):not([mediahasplayed]) *:is(media-control-bar, media-time-range) {
2592      display: none;
2593    }
2594
2595    media-error-dialog:not([mediaerrorcode]) {
2596      opacity: 0;
2597    }
2598
2599    media-loading-indicator {
2600      --media-loading-icon-width: 100%;
2601      --media-button-icon-height: auto;
2602      display: var(--media-control-display, var(--media-loading-indicator-display, flex));
2603      pointer-events: none;
2604      position: absolute;
2605      width: min(15%, 150px);
2606      flex-flow: row;
2607      align-items: center;
2608      justify-content: center;
2609    }
2610
2611    /* Intentionally don't target the div for transition but the children
2612     of the div. Prevents messing with media-chrome's autohide feature. */
2613    media-loading-indicator + div * {
2614      transition: opacity 0.15s;
2615      opacity: 1;
2616    }
2617
2618    media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {
2619      opacity: 0;
2620      transition-delay: 400ms;
2621    }
2622
2623    media-volume-range {
2624      width: min(100%, 100px);
2625      --media-range-padding-left: 10px;
2626      --media-range-padding-right: 10px;
2627      --media-range-thumb-width: 12px;
2628      --media-range-thumb-height: 12px;
2629      --media-range-thumb-background: radial-gradient(
2630        circle,
2631        #000 0%,
2632        #000 25%,
2633        var(--_primary-color) 25%,
2634        var(--_primary-color)
2635      );
2636      --media-control-hover-background: none;
2637    }
2638
2639    media-time-display {
2640      white-space: nowrap;
2641    }
2642
2643    /* Generic style for explicitly disabled controls */
2644    media-control-bar[part~='bottom'] [disabled],
2645    media-control-bar[part~='bottom'] [aria-disabled='true'] {
2646      opacity: 60%;
2647      cursor: not-allowed;
2648    }
2649
2650    media-text-display {
2651      --media-font-size: 16px;
2652      --media-control-padding: 14px;
2653      font-weight: 500;
2654    }
2655
2656    media-play-button.animated *:is(g, path) {
2657      transition: all 0.3s;
2658    }
2659
2660    media-play-button.animated[mediapaused] .pause-icon-pt1 {
2661      opacity: 0;
2662    }
2663
2664    media-play-button.animated[mediapaused] .pause-icon-pt2 {
2665      transform-origin: center center;
2666      transform: scaleY(0);
2667    }
2668
2669    media-play-button.animated[mediapaused] .play-icon {
2670      clip-path: inset(0 0 0 0);
2671    }
2672
2673    media-play-button.animated:not([mediapaused]) .play-icon {
2674      clip-path: inset(0 0 0 100%);
2675    }
2676
2677    media-seek-forward-button,
2678    media-seek-backward-button {
2679      --media-font-weight: 400;
2680    }
2681
2682    .mute-icon {
2683      display: inline-block;
2684    }
2685
2686    .mute-icon :is(path, g) {
2687      transition: opacity 0.5s;
2688    }
2689
2690    .muted {
2691      opacity: 0;
2692    }
2693
2694    media-mute-button[mediavolumelevel='low'] :is(.volume-medium, .volume-high),
2695    media-mute-button[mediavolumelevel='medium'] :is(.volume-high) {
2696      opacity: 0;
2697    }
2698
2699    media-mute-button[mediavolumelevel='off'] .unmuted {
2700      opacity: 0;
2701    }
2702
2703    media-mute-button[mediavolumelevel='off'] .muted {
2704      opacity: 1;
2705    }
2706
2707    /**
2708     * Our defaults for these buttons are to hide them at small sizes
2709     * users can override this with CSS
2710     */
2711    media-controller:not([breakpointsm]):not([audio]) {
2712      --bottom-play-button: none;
2713      --bottom-seek-backward-button: none;
2714      --bottom-seek-forward-button: none;
2715      --bottom-time-display: none;
2716      --bottom-playback-rate-menu-button: none;
2717      --bottom-pip-button: none;
2718    }
2719
2720    [part='mux-badge'] {
2721      position: absolute;
2722      bottom: 10px;
2723      right: 10px;
2724      z-index: 2;
2725      opacity: 0.6;
2726      transition:
2727        opacity 0.2s ease-in-out,
2728        bottom 0.2s ease-in-out;
2729    }
2730
2731    [part='mux-badge']:hover {
2732      opacity: 1;
2733    }
2734
2735    [part='mux-badge'] a {
2736      font-size: 14px;
2737      font-family: var(--_font-family);
2738      color: var(--_primary-color);
2739      text-decoration: none;
2740      display: flex;
2741      align-items: center;
2742      gap: 5px;
2743    }
2744
2745    [part='mux-badge'] .mux-badge-text {
2746      transition: opacity 0.5s ease-in-out;
2747      opacity: 0;
2748    }
2749
2750    [part='mux-badge'] .mux-badge-logo {
2751      width: 40px;
2752      height: auto;
2753      display: inline-block;
2754    }
2755
2756    [part='mux-badge'] .mux-badge-logo svg {
2757      width: 100%;
2758      height: 100%;
2759      fill: white;
2760    }
2761
2762    media-controller:not([userinactive]):not([mediahasplayed]) [part='mux-badge'],
2763    media-controller:not([userinactive]) [part='mux-badge'],
2764    media-controller[mediahasplayed][mediapaused] [part='mux-badge'] {
2765      transition: bottom 0.1s ease-in-out;
2766    }
2767
2768    media-controller[userinactive]:not([mediapaused]) [part='mux-badge'] {
2769      transition: bottom 0.2s ease-in-out 0.62s;
2770    }
2771
2772    media-controller:not([userinactive]) [part='mux-badge'] .mux-badge-text,
2773    media-controller[mediahasplayed][mediapaused] [part='mux-badge'] .mux-badge-text {
2774      opacity: 1;
2775    }
2776
2777    media-controller[userinactive]:not([mediapaused]) [part='mux-badge'] .mux-badge-text {
2778      opacity: 0;
2779    }
2780
2781    media-controller[userinactive]:not([mediapaused]) [part='mux-badge'] {
2782      bottom: 10px;
2783    }
2784
2785    media-controller:not([userinactive]):not([mediahasplayed]) [part='mux-badge'] {
2786      bottom: 10px;
2787    }
2788
2789    media-controller:not([userinactive])[mediahasplayed] [part='mux-badge'],
2790    media-controller[mediahasplayed][mediapaused] [part='mux-badge'] {
2791      bottom: calc(28px + var(--media-control-height, 0px) + var(--media-control-padding, 0px) * 2);
2792    }
2793  </style>
2794
2795  <template partial="TitleDisplay">
2796    <template if="videotitle">
2797      <template if="videotitle != true">
2798        <media-text-display part="top title display" class="title-display">{{videotitle}}</media-text-display>
2799      </template>
2800    </template>
2801    <template if="!videotitle">
2802      <template if="title">
2803        <media-text-display part="top title display" class="title-display">{{title}}</media-text-display>
2804      </template>
2805    </template>
2806  </template>
2807
2808  <template partial="PlayButton">
2809    <media-play-button
2810      part="{{section ?? 'bottom'}} play button"
2811      disabled="{{disabled}}"
2812      aria-disabled="{{disabled}}"
2813      class="animated"
2814    >
2815      <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon">
2816        <g class="play-icon">
2817          <path
2818            d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"
2819          />
2820        </g>
2821        <g class="pause-icon">
2822          <path
2823            class="pause-icon-pt1"
2824            d="M5.90709 0H2.96889C2.46857 0 2.06299 0.405585 2.06299 0.9059V13.0941C2.06299 13.5944 2.46857 14 2.96889 14H5.90709C6.4074 14 6.81299 13.5944 6.81299 13.0941V0.9059C6.81299 0.405585 6.4074 0 5.90709 0Z"
2825          />
2826          <path
2827            class="pause-icon-pt2"
2828            d="M15.1571 0H12.2189C11.7186 0 11.313 0.405585 11.313 0.9059V13.0941C11.313 13.5944 11.7186 14 12.2189 14H15.1571C15.6574 14 16.063 13.5944 16.063 13.0941V0.9059C16.063 0.405585 15.6574 0 15.1571 0Z"
2829          />
2830        </g>
2831      </svg>
2832    </media-play-button>
2833  </template>
2834
2835  <template partial="PrePlayButton">
2836    <media-play-button
2837      part="{{section ?? 'center'}} play button pre-play"
2838      disabled="{{disabled}}"
2839      aria-disabled="{{disabled}}"
2840    >
2841      <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon" style="transform: translate(3px, 0)">
2842        <path
2843          d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"
2844        />
2845      </svg>
2846    </media-play-button>
2847  </template>
2848
2849  <template partial="SeekBackwardButton">
2850    <media-seek-backward-button
2851      seekoffset="{{backwardseekoffset}}"
2852      part="{{section ?? 'bottom'}} seek-backward button"
2853      disabled="{{disabled}}"
2854      aria-disabled="{{disabled}}"
2855    >
2856      <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">
2857        <path
2858          d="M3.65 2.07888L0.0864 6.7279C-0.0288 6.87812 -0.0288 7.12188 0.0864 7.2721L3.65 11.9211C3.7792 12.0896 4 11.9703 4 11.7321V2.26787C4 2.02968 3.7792 1.9104 3.65 2.07888Z"
2859        />
2860        <text transform="translate(6 12)" style="font-size: 14px; font-family: 'ArialMT', 'Arial'">
2861          {{backwardseekoffset}}
2862        </text>
2863      </svg>
2864    </media-seek-backward-button>
2865  </template>
2866
2867  <template partial="SeekForwardButton">
2868    <media-seek-forward-button
2869      seekoffset="{{forwardseekoffset}}"
2870      part="{{section ?? 'bottom'}} seek-forward button"
2871      disabled="{{disabled}}"
2872      aria-disabled="{{disabled}}"
2873    >
2874      <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">
2875        <g>
2876          <text transform="translate(-1 12)" style="font-size: 14px; font-family: 'ArialMT', 'Arial'">
2877            {{forwardseekoffset}}
2878          </text>
2879          <path
2880            d="M18.35 11.9211L21.9136 7.2721C22.0288 7.12188 22.0288 6.87812 21.9136 6.7279L18.35 2.07888C18.2208 1.91041 18 2.02968 18 2.26787V11.7321C18 11.9703 18.2208 12.0896 18.35 11.9211Z"
2881          />
2882        </g>
2883      </svg>
2884    </media-seek-forward-button>
2885  </template>
2886
2887  <template partial="MuteButton">
2888    <media-mute-button part="bottom mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2889      <svg viewBox="0 0 18 14" slot="icon" class="mute-icon" aria-hidden="true">
2890        <g class="unmuted">
2891          <path
2892            d="M6.76786 1.21233L3.98606 3.98924H1.19937C0.593146 3.98924 0.101743 4.51375 0.101743 5.1607V6.96412L0 6.99998L0.101743 7.03583V8.83926C0.101743 9.48633 0.593146 10.0108 1.19937 10.0108H3.98606L6.76773 12.7877C7.23561 13.2547 8 12.9007 8 12.2171V1.78301C8 1.09925 7.23574 0.745258 6.76786 1.21233Z"
2893          />
2894          <path
2895            class="volume-low"
2896            d="M10 3.54781C10.7452 4.55141 11.1393 5.74511 11.1393 6.99991C11.1393 8.25471 10.7453 9.44791 10 10.4515L10.7988 11.0496C11.6734 9.87201 12.1356 8.47161 12.1356 6.99991C12.1356 5.52821 11.6735 4.12731 10.7988 2.94971L10 3.54781Z"
2897          />
2898          <path
2899            class="volume-medium"
2900            d="M12.3778 2.40086C13.2709 3.76756 13.7428 5.35806 13.7428 7.00026C13.7428 8.64246 13.2709 10.233 12.3778 11.5992L13.2106 12.1484C14.2107 10.6185 14.739 8.83796 14.739 7.00016C14.739 5.16236 14.2107 3.38236 13.2106 1.85156L12.3778 2.40086Z"
2901          />
2902          <path
2903            class="volume-high"
2904            d="M15.5981 0.75L14.7478 1.2719C15.7937 2.9919 16.3468 4.9723 16.3468 7C16.3468 9.0277 15.7937 11.0082 14.7478 12.7281L15.5981 13.25C16.7398 11.3722 17.343 9.211 17.343 7C17.343 4.789 16.7398 2.6268 15.5981 0.75Z"
2905          />
2906        </g>
2907        <g class="muted">
2908          <path
2909            fill-rule="evenodd"
2910            clip-rule="evenodd"
2911            d="M4.39976 4.98924H1.19937C1.19429 4.98924 1.17777 4.98961 1.15296 5.01609C1.1271 5.04369 1.10174 5.09245 1.10174 5.1607V8.83926C1.10174 8.90761 1.12714 8.95641 1.15299 8.984C1.17779 9.01047 1.1943 9.01084 1.19937 9.01084H4.39977L7 11.6066V2.39357L4.39976 4.98924ZM7.47434 1.92006C7.4743 1.9201 7.47439 1.92002 7.47434 1.92006V1.92006ZM6.76773 12.7877L3.98606 10.0108H1.19937C0.593146 10.0108 0.101743 9.48633 0.101743 8.83926V7.03583L0 6.99998L0.101743 6.96412V5.1607C0.101743 4.51375 0.593146 3.98924 1.19937 3.98924H3.98606L6.76786 1.21233C7.23574 0.745258 8 1.09925 8 1.78301V12.2171C8 12.9007 7.23561 13.2547 6.76773 12.7877Z"
2912          />
2913          <path
2914            fill-rule="evenodd"
2915            clip-rule="evenodd"
2916            d="M15.2677 9.30323C15.463 9.49849 15.7796 9.49849 15.9749 9.30323C16.1701 9.10796 16.1701 8.79138 15.9749 8.59612L14.2071 6.82841L15.9749 5.06066C16.1702 4.8654 16.1702 4.54882 15.9749 4.35355C15.7796 4.15829 15.4631 4.15829 15.2678 4.35355L13.5 6.1213L11.7322 4.35348C11.537 4.15822 11.2204 4.15822 11.0251 4.35348C10.8298 4.54874 10.8298 4.86532 11.0251 5.06058L12.7929 6.82841L11.0251 8.59619C10.8299 8.79146 10.8299 9.10804 11.0251 9.3033C11.2204 9.49856 11.537 9.49856 11.7323 9.3033L13.5 7.53552L15.2677 9.30323Z"
2917          />
2918        </g>
2919      </svg>
2920    </media-mute-button>
2921  </template>
2922
2923  <template partial="PipButton">
2924    <media-pip-button part="bottom pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2925      <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">
2926        <path
2927          d="M15.9891 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.989C0 13.0996 0.9004 14 2.011 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0ZM17 11.9891C17 12.5465 16.5465 13 15.9891 13H2.011C1.4536 13 1.0001 12.5465 1.0001 11.9891V2.0109C1.0001 1.4535 1.4536 0.9999 2.011 0.9999H15.9891C16.5465 0.9999 17 1.4535 17 2.0109V11.9891Z"
2928        />
2929        <path
2930          d="M15.356 5.67822H8.19523C8.03253 5.67822 7.90063 5.81012 7.90063 5.97282V11.3836C7.90063 11.5463 8.03253 11.6782 8.19523 11.6782H15.356C15.5187 11.6782 15.6506 11.5463 15.6506 11.3836V5.97282C15.6506 5.81012 15.5187 5.67822 15.356 5.67822Z"
2931        />
2932      </svg>
2933    </media-pip-button>
2934  </template>
2935
2936  <template partial="CaptionsMenu">
2937    <media-captions-menu-button part="bottom captions button">
2938      <svg aria-hidden="true" viewBox="0 0 18 14" slot="on">
2939        <path
2940          d="M15.989 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9004 14 2.011 14H15.989C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.989 0ZM4.2292 8.7639C4.5954 9.1902 5.0935 9.4031 5.7233 9.4031C6.1852 9.4031 6.5544 9.301 6.8302 9.0969C7.1061 8.8933 7.2863 8.614 7.3702 8.26H8.4322C8.3062 8.884 8.0093 9.3733 7.5411 9.7273C7.0733 10.0813 6.4703 10.2581 5.732 10.2581C5.108 10.2581 4.5699 10.1219 4.1168 9.8489C3.6637 9.5759 3.3141 9.1946 3.0685 8.7058C2.8224 8.2165 2.6994 7.6511 2.6994 7.009C2.6994 6.3611 2.8224 5.7927 3.0685 5.3034C3.3141 4.8146 3.6637 4.4323 4.1168 4.1559C4.5699 3.88 5.108 3.7418 5.732 3.7418C6.4703 3.7418 7.0733 3.922 7.5411 4.2818C8.0094 4.6422 8.3062 5.1461 8.4322 5.794H7.3702C7.2862 5.4283 7.106 5.1368 6.8302 4.921C6.5544 4.7052 6.1852 4.5968 5.7233 4.5968C5.0934 4.5968 4.5954 4.8116 4.2292 5.2404C3.8635 5.6696 3.6804 6.259 3.6804 7.009C3.6804 7.7531 3.8635 8.3381 4.2292 8.7639ZM11.0974 8.7639C11.4636 9.1902 11.9617 9.4031 12.5915 9.4031C13.0534 9.4031 13.4226 9.301 13.6984 9.0969C13.9743 8.8933 14.1545 8.614 14.2384 8.26H15.3004C15.1744 8.884 14.8775 9.3733 14.4093 9.7273C13.9415 10.0813 13.3385 10.2581 12.6002 10.2581C11.9762 10.2581 11.4381 10.1219 10.985 9.8489C10.5319 9.5759 10.1823 9.1946 9.9367 8.7058C9.6906 8.2165 9.5676 7.6511 9.5676 7.009C9.5676 6.3611 9.6906 5.7927 9.9367 5.3034C10.1823 4.8146 10.5319 4.4323 10.985 4.1559C11.4381 3.88 11.9762 3.7418 12.6002 3.7418C13.3385 3.7418 13.9415 3.922 14.4093 4.2818C14.8776 4.6422 15.1744 5.1461 15.3004 5.794H14.2384C14.1544 5.4283 13.9742 5.1368 13.6984 4.921C13.4226 4.7052 13.0534 4.5968 12.5915 4.5968C11.9616 4.5968 11.4636 4.8116 11.0974 5.2404C10.7317 5.6696 10.5486 6.259 10.5486 7.009C10.5486 7.7531 10.7317 8.3381 11.0974 8.7639Z"
2941        />
2942      </svg>
2943      <svg aria-hidden="true" viewBox="0 0 18 14" slot="off">
2944        <path
2945          d="M5.73219 10.258C5.10819 10.258 4.57009 10.1218 4.11699 9.8488C3.66389 9.5758 3.31429 9.1945 3.06869 8.7057C2.82259 8.2164 2.69958 7.651 2.69958 7.0089C2.69958 6.361 2.82259 5.7926 3.06869 5.3033C3.31429 4.8145 3.66389 4.4322 4.11699 4.1558C4.57009 3.8799 5.10819 3.7417 5.73219 3.7417C6.47049 3.7417 7.07348 3.9219 7.54128 4.2817C8.00958 4.6421 8.30638 5.146 8.43238 5.7939H7.37039C7.28639 5.4282 7.10618 5.1367 6.83039 4.9209C6.55459 4.7051 6.18538 4.5967 5.72348 4.5967C5.09358 4.5967 4.59559 4.8115 4.22939 5.2403C3.86369 5.6695 3.68058 6.2589 3.68058 7.0089C3.68058 7.753 3.86369 8.338 4.22939 8.7638C4.59559 9.1901 5.09368 9.403 5.72348 9.403C6.18538 9.403 6.55459 9.3009 6.83039 9.0968C7.10629 8.8932 7.28649 8.6139 7.37039 8.2599H8.43238C8.30638 8.8839 8.00948 9.3732 7.54128 9.7272C7.07348 10.0812 6.47049 10.258 5.73219 10.258Z"
2946        />
2947        <path
2948          d="M12.6003 10.258C11.9763 10.258 11.4382 10.1218 10.9851 9.8488C10.532 9.5758 10.1824 9.1945 9.93685 8.7057C9.69075 8.2164 9.56775 7.651 9.56775 7.0089C9.56775 6.361 9.69075 5.7926 9.93685 5.3033C10.1824 4.8145 10.532 4.4322 10.9851 4.1558C11.4382 3.8799 11.9763 3.7417 12.6003 3.7417C13.3386 3.7417 13.9416 3.9219 14.4094 4.2817C14.8777 4.6421 15.1745 5.146 15.3005 5.7939H14.2385C14.1545 5.4282 13.9743 5.1367 13.6985 4.9209C13.4227 4.7051 13.0535 4.5967 12.5916 4.5967C11.9617 4.5967 11.4637 4.8115 11.0975 5.2403C10.7318 5.6695 10.5487 6.2589 10.5487 7.0089C10.5487 7.753 10.7318 8.338 11.0975 8.7638C11.4637 9.1901 11.9618 9.403 12.5916 9.403C13.0535 9.403 13.4227 9.3009 13.6985 9.0968C13.9744 8.8932 14.1546 8.6139 14.2385 8.2599H15.3005C15.1745 8.8839 14.8776 9.3732 14.4094 9.7272C13.9416 10.0812 13.3386 10.258 12.6003 10.258Z"
2949        />
2950        <path
2951          d="M15.9891 1C16.5465 1 17 1.4535 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H2.0109C1.4535 13 1 12.5465 1 11.9891V2.0109C1 1.4535 1.4535 0.9999 2.0109 0.9999L15.9891 1ZM15.9891 0H2.0109C0.9003 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9003 14 2.0109 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0Z"
2952        />
2953      </svg>
2954    </media-captions-menu-button>
2955    <media-captions-menu
2956      hidden
2957      anchor="auto"
2958      part="bottom captions menu"
2959      disabled="{{disabled}}"
2960      aria-disabled="{{disabled}}"
2961      exportparts="menu-item"
2962    >
2963      <div slot="checked-indicator">
2964        <style>
2965          .indicator {
2966            position: relative;
2967            top: 1px;
2968            width: 0.9em;
2969            height: auto;
2970            fill: var(--_accent-color);
2971            margin-right: 5px;
2972          }
2973
2974          [aria-checked='false'] .indicator {
2975            display: none;
2976          }
2977        </style>
2978        <svg viewBox="0 0 14 18" class="indicator">
2979          <path
2980            d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
2981            fill-rule="evenodd"
2982          />
2983        </svg></div
2984    ></media-captions-menu>
2985  </template>
2986
2987  <template partial="AirplayButton">
2988    <media-airplay-button part="bottom airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2989      <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">
2990        <path
2991          d="M16.1383 0H1.8618C0.8335 0 0 0.8335 0 1.8617V10.1382C0 11.1664 0.8335 12 1.8618 12H3.076C3.1204 11.9433 3.1503 11.8785 3.2012 11.826L4.004 11H1.8618C1.3866 11 1 10.6134 1 10.1382V1.8617C1 1.3865 1.3866 0.9999 1.8618 0.9999H16.1383C16.6135 0.9999 17.0001 1.3865 17.0001 1.8617V10.1382C17.0001 10.6134 16.6135 11 16.1383 11H13.9961L14.7989 11.826C14.8499 11.8785 14.8798 11.9432 14.9241 12H16.1383C17.1665 12 18.0001 11.1664 18.0001 10.1382V1.8617C18 0.8335 17.1665 0 16.1383 0Z"
2992        />
2993        <path
2994          d="M9.55061 8.21903C9.39981 8.06383 9.20001 7.98633 9.00011 7.98633C8.80021 7.98633 8.60031 8.06383 8.44951 8.21903L4.09771 12.697C3.62471 13.1838 3.96961 13.9998 4.64831 13.9998H13.3518C14.0304 13.9998 14.3754 13.1838 13.9023 12.697L9.55061 8.21903Z"
2995        />
2996      </svg>
2997    </media-airplay-button>
2998  </template>
2999
3000  <template partial="FullscreenButton">
3001    <media-fullscreen-button part="bottom fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
3002      <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">
3003        <path
3004          d="M1.00745 4.39539L1.01445 1.98789C1.01605 1.43049 1.47085 0.978289 2.02835 0.979989L6.39375 0.992589L6.39665 -0.007411L2.03125 -0.020011C0.920646 -0.023211 0.0176463 0.874489 0.0144463 1.98509L0.00744629 4.39539H1.00745Z"
3005        />
3006        <path
3007          d="M17.0144 2.03431L17.0076 4.39541H18.0076L18.0144 2.03721C18.0176 0.926712 17.1199 0.0237125 16.0093 0.0205125L11.6439 0.0078125L11.641 1.00781L16.0064 1.02041C16.5638 1.02201 17.016 1.47681 17.0144 2.03431Z"
3008        />
3009        <path
3010          d="M16.9925 9.60498L16.9855 12.0124C16.9839 12.5698 16.5291 13.022 15.9717 13.0204L11.6063 13.0078L11.6034 14.0078L15.9688 14.0204C17.0794 14.0236 17.9823 13.1259 17.9855 12.0153L17.9925 9.60498H16.9925Z"
3011        />
3012        <path
3013          d="M0.985626 11.9661L0.992426 9.60498H-0.0074737L-0.0142737 11.9632C-0.0174737 13.0738 0.880226 13.9767 1.99083 13.98L6.35623 13.9926L6.35913 12.9926L1.99373 12.98C1.43633 12.9784 0.983926 12.5236 0.985626 11.9661Z"
3014        />
3015      </svg>
3016      <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
3017        <path
3018          d="M5.39655 -0.0200195L5.38955 2.38748C5.38795 2.94488 4.93315 3.39708 4.37565 3.39538L0.0103463 3.38278L0.00744629 4.38278L4.37285 4.39538C5.48345 4.39858 6.38635 3.50088 6.38965 2.39028L6.39665 -0.0200195H5.39655Z"
3019        />
3020        <path
3021          d="M12.6411 2.36891L12.6479 0.0078125H11.6479L11.6411 2.36601C11.6379 3.47651 12.5356 4.37951 13.6462 4.38271L18.0116 4.39531L18.0145 3.39531L13.6491 3.38271C13.0917 3.38111 12.6395 2.92641 12.6411 2.36891Z"
3022        />
3023        <path
3024          d="M12.6034 14.0204L12.6104 11.613C12.612 11.0556 13.0668 10.6034 13.6242 10.605L17.9896 10.6176L17.9925 9.61759L13.6271 9.60499C12.5165 9.60179 11.6136 10.4995 11.6104 11.6101L11.6034 14.0204H12.6034Z"
3025        />
3026        <path
3027          d="M5.359 11.6315L5.3522 13.9926H6.3522L6.359 11.6344C6.3622 10.5238 5.4645 9.62088 4.3539 9.61758L-0.0115043 9.60498L-0.0144043 10.605L4.351 10.6176C4.9084 10.6192 5.3607 11.074 5.359 11.6315Z"
3028        />
3029      </svg>
3030    </media-fullscreen-button>
3031  </template>
3032
3033  <template partial="CastButton">
3034    <media-cast-button part="bottom cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
3035      <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">
3036        <path
3037          d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"
3038        />
3039      </svg>
3040      <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">
3041        <path
3042          d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"
3043        />
3044        <path d="M2.15002 5.634C5.18352 6.4207 7.57252 8.8151 8.35282 11.8499H15.8501V2.1499H2.15002V5.634Z" />
3045      </svg>
3046    </media-cast-button>
3047  </template>
3048
3049  <template partial="LiveButton">
3050    <media-live-button part="{{section ?? 'top'}} live button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
3051      <span slot="text">Live</span>
3052    </media-live-button>
3053  </template>
3054
3055  <template partial="PlaybackRateMenu">
3056    <media-playback-rate-menu-button part="bottom playback-rate button"></media-playback-rate-menu-button>
3057    <media-playback-rate-menu
3058      hidden
3059      anchor="auto"
3060      rates="{{playbackrates}}"
3061      exportparts="menu-item"
3062      part="bottom playback-rate menu"
3063      disabled="{{disabled}}"
3064      aria-disabled="{{disabled}}"
3065    ></media-playback-rate-menu>
3066  </template>
3067
3068  <template partial="VolumeRange">
3069    <media-volume-range
3070      part="bottom volume range"
3071      disabled="{{disabled}}"
3072      aria-disabled="{{disabled}}"
3073    ></media-volume-range>
3074  </template>
3075
3076  <template partial="TimeDisplay">
3077    <media-time-display
3078      remaining="{{defaultshowremainingtime}}"
3079      showduration="{{!hideduration}}"
3080      part="bottom time display"
3081      disabled="{{disabled}}"
3082      aria-disabled="{{disabled}}"
3083    ></media-time-display>
3084  </template>
3085
3086  <template partial="TimeRange">
3087    <media-time-range part="bottom time range" disabled="{{disabled}}" aria-disabled="{{disabled}}" exportparts="thumb">
3088      <media-preview-thumbnail slot="preview"></media-preview-thumbnail>
3089      <media-preview-chapter-display slot="preview"></media-preview-chapter-display>
3090      <media-preview-time-display slot="preview"></media-preview-time-display>
3091      <div slot="preview" part="arrow"></div>
3092    </media-time-range>
3093  </template>
3094
3095  <template partial="AudioTrackMenu">
3096    <media-audio-track-menu-button part="bottom audio-track button">
3097      <svg aria-hidden="true" slot="icon" viewBox="0 0 18 16">
3098        <path d="M9 15A7 7 0 1 1 9 1a7 7 0 0 1 0 14Zm0 1A8 8 0 1 0 9 0a8 8 0 0 0 0 16Z" />
3099        <path
3100          d="M5.2 6.3a.5.5 0 0 1 .5.5v2.4a.5.5 0 1 1-1 0V6.8a.5.5 0 0 1 .5-.5Zm2.4-2.4a.5.5 0 0 1 .5.5v7.2a.5.5 0 0 1-1 0V4.4a.5.5 0 0 1 .5-.5ZM10 5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.4-.8a.5.5 0 0 1 .5.5v5.6a.5.5 0 0 1-1 0V5.2a.5.5 0 0 1 .5-.5Z"
3101        />
3102      </svg>
3103    </media-audio-track-menu-button>
3104    <media-audio-track-menu
3105      hidden
3106      anchor="auto"
3107      part="bottom audio-track menu"
3108      disabled="{{disabled}}"
3109      aria-disabled="{{disabled}}"
3110      exportparts="menu-item"
3111    >
3112      <div slot="checked-indicator">
3113        <style>
3114          .indicator {
3115            position: relative;
3116            top: 1px;
3117            width: 0.9em;
3118            height: auto;
3119            fill: var(--_accent-color);
3120            margin-right: 5px;
3121          }
3122
3123          [aria-checked='false'] .indicator {
3124            display: none;
3125          }
3126        </style>
3127        <svg viewBox="0 0 14 18" class="indicator">
3128          <path
3129            d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
3130            fill-rule="evenodd"
3131          />
3132        </svg>
3133      </div>
3134    </media-audio-track-menu>
3135  </template>
3136
3137  <template partial="RenditionMenu">
3138    <media-rendition-menu-button part="bottom rendition button">
3139      <svg aria-hidden="true" slot="icon" viewBox="0 0 18 14">
3140        <path
3141          d="M2.25 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM9 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"
3142        />
3143      </svg>
3144    </media-rendition-menu-button>
3145    <media-rendition-menu
3146      hidden
3147      anchor="auto"
3148      part="bottom rendition menu"
3149      disabled="{{disabled}}"
3150      aria-disabled="{{disabled}}"
3151    >
3152      <div slot="checked-indicator">
3153        <style>
3154          .indicator {
3155            position: relative;
3156            top: 1px;
3157            width: 0.9em;
3158            height: auto;
3159            fill: var(--_accent-color);
3160            margin-right: 5px;
3161          }
3162
3163          [aria-checked='false'] .indicator {
3164            opacity: 0;
3165          }
3166        </style>
3167        <svg viewBox="0 0 14 18" class="indicator">
3168          <path
3169            d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"
3170            fill-rule="evenodd"
3171          />
3172        </svg>
3173      </div>
3174    </media-rendition-menu>
3175  </template>
3176
3177  <template partial="MuxBadge">
3178    <div part="mux-badge">
3179      <a href="https://www.mux.com/player" target="_blank">
3180        <span class="mux-badge-text">Powered by</span>
3181        <div class="mux-badge-logo">
3182          <svg
3183            viewBox="0 0 1600 500"
3184            style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2"
3185          >
3186            <g>
3187              <path
3188                d="M994.287,93.486c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m0,-93.486c-34.509,-0 -62.484,27.976 -62.484,62.486l0,187.511c0,68.943 -56.09,125.033 -125.032,125.033c-68.942,-0 -125.03,-56.09 -125.03,-125.033l0,-187.511c0,-34.51 -27.976,-62.486 -62.485,-62.486c-34.509,-0 -62.484,27.976 -62.484,62.486l0,187.511c0,137.853 112.149,250.003 249.999,250.003c137.851,-0 250.001,-112.15 250.001,-250.003l0,-187.511c0,-34.51 -27.976,-62.486 -62.485,-62.486"
3189                style="fill-rule: nonzero"
3190              ></path>
3191              <path
3192                d="M1537.51,468.511c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m-275.883,-218.509l-143.33,143.329c-24.402,24.402 -24.402,63.966 0,88.368c24.402,24.402 63.967,24.402 88.369,-0l143.33,-143.329l143.328,143.329c24.402,24.4 63.967,24.402 88.369,-0c24.403,-24.402 24.403,-63.966 0.001,-88.368l-143.33,-143.329l0.001,-0.004l143.329,-143.329c24.402,-24.402 24.402,-63.965 0,-88.367c-24.402,-24.402 -63.967,-24.402 -88.369,-0l-143.329,143.328l-143.329,-143.328c-24.402,-24.401 -63.967,-24.402 -88.369,-0c-24.402,24.402 -24.402,63.965 0,88.367l143.329,143.329l0,0.004Z"
3193                style="fill-rule: nonzero"
3194              ></path>
3195              <path
3196                d="M437.511,468.521c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m23.915,-463.762c-23.348,-9.672 -50.226,-4.327 -68.096,13.544l-143.331,143.329l-143.33,-143.329c-17.871,-17.871 -44.747,-23.216 -68.096,-13.544c-23.349,9.671 -38.574,32.455 -38.574,57.729l0,375.026c0,34.51 27.977,62.486 62.487,62.486c34.51,-0 62.486,-27.976 62.486,-62.486l0,-224.173l80.843,80.844c24.404,24.402 63.965,24.402 88.369,-0l80.843,-80.844l0,224.173c0,34.51 27.976,62.486 62.486,62.486c34.51,-0 62.486,-27.976 62.486,-62.486l0,-375.026c0,-25.274 -15.224,-48.058 -38.573,-57.729"
3197                style="fill-rule: nonzero"
3198              ></path>
3199            </g>
3200          </svg>
3201        </div>
3202      </a>
3203    </div>
3204  </template>
3205
3206  <media-controller
3207    part="controller"
3208    defaultstreamtype="{{defaultstreamtype ?? 'on-demand'}}"
3209    breakpoints="sm:470"
3210    gesturesdisabled="{{disabled}}"
3211    hotkeys="{{hotkeys}}"
3212    nohotkeys="{{nohotkeys}}"
3213    novolumepref="{{novolumepref}}"
3214    audio="{{audio}}"
3215    noautoseektolive="{{noautoseektolive}}"
3216    defaultsubtitles="{{defaultsubtitles}}"
3217    defaultduration="{{defaultduration ?? false}}"
3218    keyboardforwardseekoffset="{{forwardseekoffset}}"
3219    keyboardbackwardseekoffset="{{backwardseekoffset}}"
3220    exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"
3221    style="--_pre-playback-place:{{preplaybackplace ?? 'center'}}"
3222  >
3223    <slot name="media" slot="media"></slot>
3224    <slot name="poster" slot="poster"></slot>
3225
3226    <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
3227
3228    <template if="!audio">
3229      <media-error-dialog slot="dialog" noautohide></media-error-dialog>
3230      <!-- Pre-playback UI -->
3231      <!-- same for both on-demand and live -->
3232      <div slot="centered-chrome" class="center-controls pre-playback">
3233        <template if="!breakpointsm">{{>PlayButton section="center"}}</template>
3234        <template if="breakpointsm">{{>PrePlayButton section="center"}}</template>
3235      </div>
3236
3237      <!-- Mux Badge -->
3238      <template if="proudlydisplaymuxbadge"> {{>MuxBadge}} </template>
3239
3240      <!-- Autoplay centered unmute button -->
3241      <!--
3242        todo: figure out how show this with available state variables
3243        needs to show when:
3244        - autoplay is enabled
3245        - playback has been successful
3246        - audio is muted
3247        - in place / instead of the pre-plaback play button
3248        - not to show again after user has interacted with this button
3249          - OR user has interacted with the mute button in the control bar
3250      -->
3251      <!--
3252        There should be a >MuteButton to the left of the "Unmute" text, but a templating bug
3253        makes it appear even if commented out in the markup, add it back when code is un-commented
3254      -->
3255      <!-- <div slot="centered-chrome" class="autoplay-unmute">
3256        <div role="button" class="autoplay-unmute-btn">Unmute</div>
3257      </div> -->
3258
3259      <template if="streamtype == 'on-demand'">
3260        <template if="breakpointsm">
3261          <media-control-bar part="control-bar top" slot="top-chrome">{{>TitleDisplay}} </media-control-bar>
3262        </template>
3263        {{>TimeRange}}
3264        <media-control-bar part="control-bar bottom">
3265          {{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}
3266          {{>VolumeRange}}
3267          <div class="spacer"></div>
3268          {{>RenditionMenu}} {{>PlaybackRateMenu}} {{>AudioTrackMenu}} {{>CaptionsMenu}} {{>AirplayButton}}
3269          {{>CastButton}} {{>PipButton}} {{>FullscreenButton}}
3270        </media-control-bar>
3271      </template>
3272
3273      <template if="streamtype == 'live'">
3274        <media-control-bar part="control-bar top" slot="top-chrome">
3275          {{>LiveButton}}
3276          <template if="breakpointsm"> {{>TitleDisplay}} </template>
3277        </media-control-bar>
3278        <template if="targetlivewindow > 0">{{>TimeRange}}</template>
3279        <media-control-bar part="control-bar bottom">
3280          {{>PlayButton}}
3281          <template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>
3282          {{>MuteButton}} {{>VolumeRange}}
3283          <div class="spacer"></div>
3284          {{>RenditionMenu}} {{>AudioTrackMenu}} {{>CaptionsMenu}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}}
3285          {{>FullscreenButton}}
3286        </media-control-bar>
3287      </template>
3288    </template>
3289
3290    <template if="audio">
3291      <template if="streamtype == 'on-demand'">
3292        <template if="title">
3293          <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>
3294        </template>
3295        <media-control-bar part="control-bar bottom">
3296          {{>PlayButton}}
3297          <template if="breakpointsm"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
3298          {{>MuteButton}}
3299          <template if="breakpointsm">{{>VolumeRange}}</template>
3300          {{>TimeDisplay}} {{>TimeRange}}
3301          <template if="breakpointsm">{{>PlaybackRateMenu}}</template>
3302          {{>AirplayButton}} {{>CastButton}}
3303        </media-control-bar>
3304      </template>
3305
3306      <template if="streamtype == 'live'">
3307        <template if="title">
3308          <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>
3309        </template>
3310        <media-control-bar part="control-bar bottom">
3311          {{>PlayButton}} {{>LiveButton section="bottom"}} {{>MuteButton}}
3312          <template if="breakpointsm">
3313            {{>VolumeRange}}
3314            <template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
3315          </template>
3316          <template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>
3317          <template if="!targetlivewindow"><div class="spacer"></div></template>
3318          {{>AirplayButton}} {{>CastButton}}
3319        </media-control-bar>
3320      </template>
3321    </template>
3322
3323    <slot></slot>
3324  </media-controller>
3325</template>
3326`
3326,m_=pB.createElement("template");"innerHTML"in m_&&(m_.innerHTML=mg);var mT,mk,mA=class extends li{};mA.template=null==(mk=null==(mT=m_.content)?void 0:mT.children)?void 0:mk[0],pU.customElements.get("media-theme-gerwig")||pU.customElements.define("media-theme-gerwig",mA);var mw={SRC:"src",POSTER:"poster"},mS={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",ACCENT_COLOR:"accent-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",PLAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",FULLSCREEN_ELEMENT:"fullscreen-element",DRM_TOKEN:"drm-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",DEFAULT_DURATION:"default-duration",TITLE:"title",VIDEO_TITLE:"video-title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",EXTRA_SOURCE_PARAMS:"extra-source-params",NO_VOLUME_PREF:"no-volume-pref",NO_MUTED_PREF:"no-muted-pref",CAST_RECEIVER:"cast-receiver",NO_TOOLTIPS:"no-tooltips",PROUDLY_DISPLAY_MUX_BADGE:"proudly-display-mux-badge",DISABLE_PSEUDO_ENDED:"disable-pseudo-ended"},mI=["audio","backwardseekoffset","defaultduration","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","videotitle","novolumepref","nomutedpref","proudlydisplaymuxbadge"],mL=nJ.formatErrorMessage;function mR(e){let t=e.videoTitle?{video_title:e.videoTitle}:{};return e.getAttributeNames().filter(e=>e.startsWith("metadata-")).reduce((t,i)=>{let a=e.getAttribute(i);return null!==a&&(t[i.replace(/^metadata-/,"").replace(/-/g,"_")]=a),t},t)}nJ.formatErrorMessage=e=>{var t,i;if(e instanceof m){let a=mb(e,!1);return`
3327      ${null!=a&&a.title?`<h3>${a.title}</h3>`:""}
3328      ${null!=a&&a.message||null!=a&&a.linkUrl?`<p>
3329        ${null==a?void 0:a.message}
3330        ${null!=a&&a.linkUrl?`<a
3331              href="${a.linkUrl}"
3332              target="_blank"
3333              rel="external noopener"
3334              aria-label="${null!=(t=a.linkText)?t:""} ${B("(opens in a new window)")}"
3335              >${null!=(i=a.linkText)?i:a.linkUrl}</a
3336            >`:""}
3337      </p>`:""}
3338    `}return mL(e)};var mC,mD,mO,mx,mM,mN,mP,mU,mB,m$,mH,mj,mW,mq,mK,mF,mV,mY,mG,mz,mQ,mZ=Object.values(tY),mX=Object.values(mw),mJ=Object.values(mS),m0="mux-player",m1={isDialogOpen:!1},m2={redundant_streams:!0},m3=class extends p7{constructor(){super(),db(this,mW),db(this,mC),db(this,mD,!1),db(this,mO,{}),db(this,mx,!0),db(this,mM,new pJ(this,"hotkeys")),db(this,mN),db(this,mP,()=>dy(this,mW,mV).call(this)),db(this,mU,()=>dy(this,mW,mV).call(this)),db(this,mB,()=>dy(this,mW,mV).call(this)),db(this,m$),db(this,mH,{...m1,onCloseErrorDialog:e=>{var t;(null==(t=e.composedPath()[0])?void 0:t.localName)==="media-error-dialog"&&dy(this,mW,mF).call(this,{isDialogOpen:!1})},onFocusInErrorDialog:e=>{var t;(null==(t=e.composedPath()[0])?void 0:t.localName)==="media-error-dialog"&&(pV(this,pB.activeElement)||e.preventDefault())}}),db(this,mj,e=>{var t;let i=null==(t=this.media)?void 0:t.error;if(!(i instanceof m)){let{message:e,code:t}=null!=i?i:{};i=new m(e,t)}if(!(null!=i&&i.fatal)){p1(i),i.data&&p1(`${i.name} data:`,i.data);return}let a=my(i,!1);a.message&&p3(a),p2(i),i.data&&p2(`${i.name} data:`,i.data),dy(this,mW,mF).call(this,{isDialogOpen:!0})}),dE(this,mC,eq()),this.attachShadow({mode:"open"}),dy(this,mW,mK).call(this),this.isConnected&&dy(this,mW,mq).call(this)}static get NAME(){return m0}static get VERSION(){return pG}static get observedAttributes(){var e;return[...null!=(e=p7.observedAttributes)?e:[],...mX,...mZ,...mJ]}get mediaTheme(){var e;return null==(e=this.shadowRoot)?void 0:e.querySelector("media-theme")}get mediaController(){var e,t;return null==(t=null==(e=this.mediaTheme)?void 0:e.shadowRoot)?void 0:t.querySelector("media-controller")}connectedCallback(){dy(this,mW,mq).call(this);let e=this.media;e&&(e.metadata=mR(this))}disconnectedCallback(){var e,t,i,a,r,n,o,s;
3338null==(e=df(this,mN))||e.disconnect(),null==(t=this.media)||t.removeEventListener("streamtypechange",df(this,mP)),null==(i=this.media)||i.removeEventListener("loadstart",df(this,mU)),this.removeEventListener("error",df(this,mj)),this.media&&(this.media.errorTranslator=void 0),null==(r=null==(a=this.media)?void 0:a.textTracks)||r.removeEventListener("addtrack",df(this,mB)),null==(o=null==(n=this.media)?void 0:n.textTracks)||o.removeEventListener("removetrack",df(this,mB)),null==(s=df(this,m$))||s.call(this),dE(this,m$,void 0),dE(this,mD,!1)}attributeChangedCallback(e,t,i){var a;switch(dy(this,mW,mq).call(this),super.attributeChangedCallback(e,t,i),e){case mS.HOTKEYS:df(this,mM).value=i;break;case mS.THUMBNAIL_TIME:null!=i&&this.tokens.thumbnail&&p1(B("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").toString());break;case mS.THUMBNAIL_TOKEN:if(i){let e=x(i);if(e){let{aud:t}=e,i=es.THUMBNAIL;t!==i&&p1(B("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:t,expectedAud:i,tokenNamePrefix:"thumbnail"}))}}break;case mS.STORYBOARD_TOKEN:if(i){let e=x(i);if(e){let{aud:t}=e,i=es.STORYBOARD;t!==i&&p1(B("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:t,expectedAud:i,tokenNamePrefix:"storyboard"}))}}break;case mS.DRM_TOKEN:if(i){let e=x(i);if(e){let{aud:t}=e,i=es.DRM;t!==i&&p1(B("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:t,expectedAud:i,tokenNamePrefix:"drm"}))}}break;case tY.PLAYBACK_ID:null!=i&&i.includes("?token")&&p2(B("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:i}));break;case tY.STREAM_TYPE:i&&![E.LIVE,E.ON_DEMAND,E.UNKNOWN].includes(i)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=i.includes("dvr")?Number.POSITIVE_INFINITY:0:p3({file:"invalid-stream-type.md",message:B("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):i===E.LIVE?null==this.getAttribute(mS.TARGET_LIVE_WINDOW)&&(this.targetLiveWindow=0):this.targetLiveWindow=Number.NaN;break;case mS.FULLSCREEN_ELEMENT:if(null!=i||i!==t){let e=pB.getElementById(i),t=null==e?void 0:e.querySelector("mux-player");this.mediaController&&e&&t&&(this.mediaController.fullscreenElement=e)}break;case tY.CAP_RENDITION_TO_PLAYER_SIZE:(null==i||i!==t)&&(this.capRenditionToPlayerSize=null!=i||void 0)}[tY.PLAYBACK_ID,mw.SRC,mS.PLAYBACK_TOKEN].includes(e)&&t!==i&&dE(this,mH,{...df(this,mH),...m1}),dy(this,mW,mV).call(this,{[null!=(a=pX[e])?a:pH(e)]:i})}async requestFullscreen(e){var t;if(!(!this.mediaController||this.mediaController.hasAttribute(iV.MEDIA_IS_FULLSCREEN)))return null==(t=this.mediaController)||t.dispatchEvent(new pU.CustomEvent(iW.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((e,t)=>
3338{var i;null==(i=this.mediaController)||i.addEventListener(iY.MEDIA_IS_FULLSCREEN,()=>e(),{once:!0})})}async exitFullscreen(){var e;if(!(!this.mediaController||!this.mediaController.hasAttribute(iV.MEDIA_IS_FULLSCREEN)))return null==(e=this.mediaController)||e.dispatchEvent(new pU.CustomEvent(iW.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((e,t)=>{var i;null==(i=this.mediaController)||i.addEventListener(iY.MEDIA_IS_FULLSCREEN,()=>e(),{once:!0})})}get preferCmcd(){var e;return null!=(e=this.getAttribute(tY.PREFER_CMCD))?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?_.includes(e)?this.setAttribute(tY.PREFER_CMCD,e):p1(`Invalid value for preferCmcd. Must be one of ${_.join()}`):this.removeAttribute(tY.PREFER_CMCD))}get hasPlayed(){var e,t;return null!=(t=null==(e=this.mediaController)?void 0:e.hasAttribute(iV.MEDIA_HAS_PLAYED))&&t}get inLiveWindow(){var e;return null==(e=this.mediaController)?void 0:e.hasAttribute(iV.MEDIA_TIME_IS_LIVE)}get _hls(){var e;return null==(e=this.media)?void 0:e._hls}get mux(){var e;return null==(e=this.media)?void 0:e.mux}get theme(){var e;return null!=(e=this.getAttribute(mS.THEME))?e:"gerwig"}set theme(e){this.setAttribute(mS.THEME,`${e}`)}get themeProps(){let e=this.mediaTheme;if(!e)return;let t={};for(let i of e.getAttributeNames()){if(mI.includes(i))continue;let a=e.getAttribute(i);t[pH(i)]=""===a||a}return t}set themeProps(e){var t,i;dy(this,mW,mq).call(this);let a={...this.themeProps,...e};for(let r in a){if(mI.includes(r))continue;let a=null==e?void 0:e[r];"boolean"==typeof a||null==a?null==(t=this.mediaTheme)||t.toggleAttribute(p$(r),!!a):null==(i=this.mediaTheme)||i.setAttribute(p$(r),a)}}get playbackId(){var e;return null!=(e=this.getAttribute(tY.PLAYBACK_ID))?e:void 0}set playbackId(e){e?this.setAttribute(tY.PLAYBACK_ID,e):this.removeAttribute(tY.PLAYBACK_ID)}get src(){var e,t;return this.playbackId?null!=(e=m4(this,mw.SRC))?e:void 0:null!=(t=this.getAttribute(mw.SRC))?t:void 0}set src(e){e?this.setAttribute(mw.SRC,e):this.removeAttribute(mw.SRC)}get poster(){var e;let t=this.getAttribute(mw.POSTER);if(null!=t)return t;let{tokens:i}=this;if(i.playback&&!i.thumbnail){p1("Missing expected thumbnail token. No poster image will be shown");return}if(this.playbackId&&!this.audio)return pz(this.playbackId,{customDomain:this.customDomain,thumbnailTime:null!=(e=this.thumbnailTime)?e:this.startTime,programTime:this.programStartTime,token:i.thumbnail})}set poster(e){e||""===e?this.setAttribute(mw.POSTER,e):this.removeAttribute(mw.POSTER)}get storyboardSrc(){var e;return null!=(e=this.getAttribute(mS.STORYBOARD_SRC))?e:void 0}set storyboardSrc(e){e?this.setAttribute(mS.STORYBOARD_SRC,e):this.removeAttribute(mS.STORYBOARD_SRC)}get storyboard(){let{tokens:e}=this;return this.storyboardSrc&&!e.storyboard?this.storyboardSrc:this.audio||!this.playbackId||!this.streamType||[E.LIVE,E.UNKNOWN].includes(this.streamType)||e.playback&&!e.storyboard?void 0:pQ(this.playbackId,{customDomain:this.customDomain,token:e.storyboard,programStartTime:this.programStartTime,programEndTime:this.programEndTime})}get audio(){return this.hasAttribute(mS.AUDIO)}set audio(e){if(!e){this.removeAttribute(mS.AUDIO);return}this.setAttribute(mS.AUDIO,"")}get hotkeys(){return df(this,mM)}get nohotkeys(){return this.hasAttribute(mS.NOHOTKEYS)}set nohotkeys(e){if(!e){this.removeAttribute(mS.NOHOTKEYS);return}this.setAttribute(mS.NOHOTKEYS,"")}get thumbnailTime(){return pj(this.getAttribute(mS.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(mS.THUMBNAIL_TIME,`${e}`)}get videoTitle(){var e,t;return null!=(t=null!=(e=this.getAttribute(mS.VIDEO_TITLE))?e:this.getAttribute(mS.TITLE))?t:""}set videoTitle(e){e!==this.videoTitle&&(e?this.setAttribute(mS.VIDEO_TITLE,e):this.removeAttribute(mS.VIDEO_TITLE))}get placeholder(){var e;return null!=(e=m4(this,mS.PLACEHOLDER))?e:""}set placeholder(e){this.setAttribute(mS.PLACEHOLDER,`${e}`)}get primaryColor(){var e,t;let i=this.getAttribute(mS.PRIMARY_COLOR);if(null!=i||this.mediaTheme&&(i=null==(t=null==(e=pU.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_primary-color"))?void 0:t.trim()))return i}set primaryColor(e){this.setAttribute(mS.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var e,t;let i=this.getAttribute(mS.SECONDARY_COLOR);if(null!=i||this.mediaTheme&&(i=null==(t=null==(e=pU.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_secondary-color"))?void 0:t.trim()))return i}set secondaryColor(e){this.setAttribute(mS.SECONDARY_COLOR,`${e}`)}get accentColor(){var e,t;let i=this.getAttribute(mS.ACCENT_COLOR);if(null!=i||this.mediaTheme&&(i=null==(t=null==(e=pU.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_accent-color"))?void 0:t.trim()))return i}set accentColor(e){this.setAttribute(mS.ACCENT_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(mS.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(mS.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(mS.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(this.hasAttribute(mS.PLAYBACK_RATES))return this.getAttribute(mS.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,t)=>
3338e-t)}set playbackRates(e){if(!e){this.removeAttribute(mS.PLAYBACK_RATES);return}this.setAttribute(mS.PLAYBACK_RATES,e.join(" "))}get forwardSeekOffset(){var e;return null!=(e=pj(this.getAttribute(mS.FORWARD_SEEK_OFFSET)))?e:10}set forwardSeekOffset(e){this.setAttribute(mS.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return null!=(e=pj(this.getAttribute(mS.BACKWARD_SEEK_OFFSET)))?e:10}set backwardSeekOffset(e){this.setAttribute(mS.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(mS.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(mS.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(mS.DEFAULT_HIDDEN_CAPTIONS)}get defaultDuration(){return pj(this.getAttribute(mS.DEFAULT_DURATION))}set defaultDuration(e){null==e?this.removeAttribute(mS.DEFAULT_DURATION):this.setAttribute(mS.DEFAULT_DURATION,`${e}`)}get playerInitTime(){return this.hasAttribute(tY.PLAYER_INIT_TIME)?pj(this.getAttribute(tY.PLAYER_INIT_TIME)):df(this,mC)}set playerInitTime(e){e!=this.playerInitTime&&(null==e?this.removeAttribute(tY.PLAYER_INIT_TIME):this.setAttribute(tY.PLAYER_INIT_TIME,`${+e}`))}get playerSoftwareName(){var e;return null!=(e=this.getAttribute(tY.PLAYER_SOFTWARE_NAME))?e:m0}get playerSoftwareVersion(){var e;return null!=(e=this.getAttribute(tY.PLAYER_SOFTWARE_VERSION))?e:pG}get beaconCollectionDomain(){var e;return null!=(e=this.getAttribute(tY.BEACON_COLLECTION_DOMAIN))?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(tY.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(tY.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return null!=(e=this.getAttribute(tY.MAX_RESOLUTION))?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(tY.MAX_RESOLUTION,e):this.removeAttribute(tY.MAX_RESOLUTION))}get minResolution(){var e;return null!=(e=this.getAttribute(tY.MIN_RESOLUTION))?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(tY.MIN_RESOLUTION,e):this.removeAttribute(tY.MIN_RESOLUTION))}get maxAutoResolution(){var e;return null!=(e=this.getAttribute(tY.MAX_AUTO_RESOLUTION))?e:void 0}set maxAutoResolution(e){null==e?this.removeAttribute(tY.MAX_AUTO_RESOLUTION):this.setAttribute(tY.MAX_AUTO_RESOLUTION,e)}get renditionOrder(){var e;return null!=(e=this.getAttribute(tY.RENDITION_ORDER))?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(tY.RENDITION_ORDER,e):this.removeAttribute(tY.RENDITION_ORDER))}get programStartTime(){return pj(this.getAttribute(tY.PROGRAM_START_TIME))}set programStartTime(e){null==e?this.removeAttribute(tY.PROGRAM_START_TIME):this.setAttribute(tY.PROGRAM_START_TIME,`${e}`)}get programEndTime(){return pj(this.getAttribute(tY.PROGRAM_END_TIME))}set programEndTime(e){null==e?this.removeAttribute(tY.PROGRAM_END_TIME):this.setAttribute(tY.PROGRAM_END_TIME,`${e}`)}get assetStartTime(){return pj(this.getAttribute(tY.ASSET_START_TIME))}set assetStartTime(e){null==e?this.removeAttribute(tY.ASSET_START_TIME):this.setAttribute(tY.ASSET_START_TIME,`${e}`)}get assetEndTime(){return pj(this.getAttribute(tY.ASSET_END_TIME))}set assetEndTime(e){null==e?this.removeAttribute(tY.ASSET_END_TIME):this.setAttribute(tY.ASSET_END_TIME,`${e}`)}get extraSourceParams(){return this.hasAttribute(mS.EXTRA_SOURCE_PARAMS)?[...new URLSearchParams(this.getAttribute(mS.EXTRA_SOURCE_PARAMS)).entries()].reduce((e,[t,i])=>(e[t]=i,e),{}):m2}set extraSourceParams(e){null==e?this.removeAttribute(mS.EXTRA_SOURCE_PARAMS):this.setAttribute(mS.EXTRA_SOURCE_PARAMS,new URLSearchParams(e).toString())}get customDomain(){var e;return null!=(e=this.getAttribute(tY.CUSTOM_DOMAIN))?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(tY.CUSTOM_DOMAIN,e):this.removeAttribute(tY.CUSTOM_DOMAIN))}get envKey(){var e;return null!=(e=m4(this,tY.ENV_KEY))?e:void 0}set envKey(e){this.setAttribute(tY.ENV_KEY,`${e}`)}get noVolumePref(){return this.hasAttribute(mS.NO_VOLUME_PREF)}set noVolumePref(e){e?this.setAttribute(mS.NO_VOLUME_PREF,""):this.removeAttribute(mS.NO_VOLUME_PREF)}get noMutedPref(){return this.hasAttribute(mS.NO_MUTED_PREF)}set noMutedPref(e){e?this.setAttribute(mS.NO_MUTED_PREF,""):this.removeAttribute(mS.NO_MUTED_PREF)}get debug(){return null!=m4(this,tY.DEBUG)}set debug(e){e?this.setAttribute(tY.DEBUG,""):this.removeAttribute(tY.DEBUG)}get disableTracking(){return null!=m4(this,tY.DISABLE_TRACKING)}set disableTracking(e){this.toggleAttribute(tY.DISABLE_TRACKING,!!e)}get disableCookies(){return null!=m4(this,tY.DISABLE_COOKIES)}set disableCookies(e){e?this.setAttribute(tY.DISABLE_COOKIES,""):this.removeAttribute(tY.DISABLE_COOKIES)}get streamType(){var e,t,i;return null!=(i=null!=(t=this.getAttribute(tY.STREAM_TYPE))?t:null==(e=this.media)?void 0:e.streamType)?i:E.UNKNOWN}set streamType(e){this.setAttribute(tY.STREAM_TYPE,`${e}`)}get defaultStreamType(){var e,t,i;return null!=(i=null!=(t=this.getAttribute(mS.DEFAULT_STREAM_TYPE))?t:null==(e=this.mediaController)?void 0:e.getAttribute(mS.DEFAULT_STREAM_TYPE))?i:E.ON_DEMAND}set defaultStreamType(e){e?this.setAttribute(mS.DEFAULT_STREAM_TYPE,e):this.removeAttribute(mS.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var e,t;return this.hasAttribute(mS.TARGET_LIVE_WINDOW)?+this.getAttribute(mS.TARGET_LIVE_WINDOW):null!=(t=null==(e=this.media)?void 0:e.targetLiveWindow)?t:Number.NaN}set targetLiveWindow(e){e==this.targetLiveWindow||Number.isNaN(e)&&Number.isNaN(this.targetLiveWindow)||(null==e?this.removeAttribute(mS.TARGET_LIVE_WINDOW):this.setAttribute(mS.TARGET_LIVE_WINDOW,`${+e}`))}get liveEdgeStart(){var e;return null==(e=this.media)?void 0:e.liveEdgeStart}get startTime(){return pj(m4(this,tY.START_TIME))}set startTime(e){this.setAttribute(tY.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(tY.PREFER_PLAYBACK);if(e===y.MSE||e===y.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===y.MSE||e===y.NATIVE?this.setAttribute(tY.PREFER_PLAYBACK,e):this.removeAttribute(tY.PREFER_PLAYBACK))}get metadata(){var e;return null==(e=this.media)?void 0:e.metadata}set metadata(e){if(dy(this,mW,mq).call(this),!this.media){p2("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...mR(this),...e}}
3338get _hlsConfig(){var e;return null==(e=this.media)?void 0:e._hlsConfig}set _hlsConfig(e){if(dy(this,mW,mq).call(this),!this.media){p2("underlying media element missing when trying to set _hlsConfig. _hlsConfig will not be set.");return}this.media._hlsConfig=e}async addCuePoints(e){var t;if(dy(this,mW,mq).call(this),!this.media){p2("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return null==(t=this.media)?void 0:t.addCuePoints(e)}get activeCuePoint(){var e;return null==(e=this.media)?void 0:e.activeCuePoint}get cuePoints(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.cuePoints)?t:[]}addChapters(e){var t;if(dy(this,mW,mq).call(this),!this.media){p2("underlying media element missing when trying to addChapters. chapters will not be added.");return}return null==(t=this.media)?void 0:t.addChapters(e)}get activeChapter(){var e;return null==(e=this.media)?void 0:e.activeChapter}get chapters(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.chapters)?t:[]}getStartDate(){var e;return null==(e=this.media)?void 0:e.getStartDate()}get currentPdt(){var e;return null==(e=this.media)?void 0:e.currentPdt}get tokens(){let e=this.getAttribute(mS.PLAYBACK_TOKEN),t=this.getAttribute(mS.DRM_TOKEN),i=this.getAttribute(mS.THUMBNAIL_TOKEN),a=this.getAttribute(mS.STORYBOARD_TOKEN);return{...df(this,mO),...null!=e?{playback:e}:{},...null!=t?{drm:t}:{},...null!=i?{thumbnail:i}:{},...null!=a?{storyboard:a}:{}}}set tokens(e){dE(this,mO,null!=e?e:{})}get playbackToken(){var e;return null!=(e=this.getAttribute(mS.PLAYBACK_TOKEN))?e:void 0}set playbackToken(e){this.setAttribute(mS.PLAYBACK_TOKEN,`${e}`)}get drmToken(){var e;return null!=(e=this.getAttribute(mS.DRM_TOKEN))?e:void 0}set drmToken(e){this.setAttribute(mS.DRM_TOKEN,`${e}`)}get thumbnailToken(){var e;return null!=(e=this.getAttribute(mS.THUMBNAIL_TOKEN))?e:void 0}set thumbnailToken(e){this.setAttribute(mS.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return null!=(e=this.getAttribute(mS.STORYBOARD_TOKEN))?e:void 0}set storyboardToken(e){this.setAttribute(mS.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,t,i,a){var r;let n=null==(r=this.media)?void 0:r.nativeEl;if(n)return V(n,e,t,i,a)}removeTextTrack(e){var t;let i=null==(t=this.media)?void 0:t.nativeEl;if(i){let t;return void(null==(t=Array.prototype.find.call(i.querySelectorAll("track"),t=>t.track===e))||t.remove())}}get textTracks(){var e;return null==(e=this.media)?void 0:e.textTracks}get castReceiver(){var e;return null!=(e=this.getAttribute(mS.CAST_RECEIVER))?e:void 0}set castReceiver(e){e!==this.castReceiver&&(e?this.setAttribute(mS.CAST_RECEIVER,e):this.removeAttribute(mS.CAST_RECEIVER))}get castCustomData(){var e;return null==(e=this.media)?void 0:e.castCustomData}set castCustomData(e){if(!this.media){p2("underlying media element missing when trying to set castCustomData. castCustomData will not be set.");return}this.media.castCustomData=e}get noTooltips(){return this.hasAttribute(mS.NO_TOOLTIPS)}set noTooltips(e){if(!e){this.removeAttribute(mS.NO_TOOLTIPS);return}this.setAttribute(mS.NO_TOOLTIPS,"")}get proudlyDisplayMuxBadge(){return this.hasAttribute(mS.PROUDLY_DISPLAY_MUX_BADGE)}set proudlyDisplayMuxBadge(e){e?this.setAttribute(mS.PROUDLY_DISPLAY_MUX_BADGE,""):this.removeAttribute(mS.PROUDLY_DISPLAY_MUX_BADGE)}get capRenditionToPlayerSize(){var e;return null==(e=this.media)?void 0:e.capRenditionToPlayerSize}set capRenditionToPlayerSize(e){if(!this.media){p2("underlying media element missing when trying to set capRenditionToPlayerSize");return}this.media.capRenditionToPlayerSize=e}};function m4(e,t){return e.media?e.media.getAttribute(t):e.getAttribute(t)}mC=new WeakMap,mD=new WeakMap,mO=new WeakMap,mx=new WeakMap,mM=new WeakMap,mN=new WeakMap,mP=new WeakMap,mU=new WeakMap,mB=new WeakMap,m$=new WeakMap,mH=new WeakMap,mj=new WeakMap,mW=new WeakSet,mq=function(){var e,t,i,a;if(!df(this,mD)){dE(this,mD,!0),dy(this,mW,mV).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof pU.HTMLElement))throw""}catch{p2("<media-theme> failed to upgrade!")}try{customElements.upgrade(this.media)}catch{p2("underlying media element failed to upgrade!")}
3338try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof rV))throw""}catch{p2("<media-controller> failed to upgrade!")}dy(this,mW,mY).call(this),dy(this,mW,mG).call(this),dy(this,mW,mz).call(this),dE(this,mx,null==(t=null==(e=this.mediaController)?void 0:e.hasAttribute(aZ.USER_INACTIVE))||t),dy(this,mW,mQ).call(this),null==(i=this.media)||i.addEventListener("streamtypechange",df(this,mP)),null==(a=this.media)||a.addEventListener("loadstart",df(this,mU))}},mK=function(){var e,t;try{null==(e=null==window?void 0:window.CSS)||e.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),null==(t=null==window?void 0:window.CSS)||t.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},mF=function(e){Object.assign(df(this,mH),e),dy(this,mW,mV).call(this)},mV=function(e={}){var t,i,a,r,n;let o;(function(e,t){e.renderInto(t)})(mu((t={...df(this,mH),...e},{src:!this.playbackId&&this.src,playbackId:this.playbackId,hasSrc:!!this.playbackId||!!this.src||!!this.currentSrc,poster:this.poster,storyboard:(null==(i=this.media)?void 0:i.currentSrc)&&this.storyboard,storyboardSrc:this.getAttribute(mS.STORYBOARD_SRC),fullscreenElement:this.getAttribute(mS.FULLSCREEN_ELEMENT),placeholder:this.getAttribute("placeholder"),themeTemplate:function(e){var t,i;let a=e.theme;if(a){let r=null==(i=null==(t=e.getRootNode())?void 0:t.getElementById)?void 0:i.call(t,a);if(r&&r instanceof HTMLTemplateElement)return r;a.startsWith("media-theme-")||(a=`media-theme-${a}`);let n=pU.customElements.get(a);if(null!=n&&n.template)return n.template}}(this),thumbnailTime:!this.tokens.thumbnail&&this.thumbnailTime,autoplay:this.autoplay,crossOrigin:this.crossOrigin,loop:this.loop,noHotKeys:this.hasAttribute(mS.NOHOTKEYS),hotKeys:this.getAttribute(mS.HOTKEYS),muted:this.muted,paused:this.paused,preload:this.preload,envKey:this.envKey,preferCmcd:this.preferCmcd,debug:this.debug,disableTracking:this.disableTracking,disableCookies:this.disableCookies,tokens:this.tokens,beaconCollectionDomain:this.beaconCollectionDomain,maxResolution:this.maxResolution,minResolution:this.minResolution,maxAutoResolution:this.maxAutoResolution,programStartTime:this.programStartTime,programEndTime:this.programEndTime,assetStartTime:this.assetStartTime,assetEndTime:this.assetEndTime,renditionOrder:this.renditionOrder,metadata:this.metadata,playerInitTime:this.playerInitTime,playerSoftwareName:this.playerSoftwareName,playerSoftwareVersion:this.playerSoftwareVersion,startTime:this.startTime,preferPlayback:this.preferPlayback,audio:this.audio,defaultStreamType:this.defaultStreamType,targetLiveWindow:this.getAttribute(tY.TARGET_LIVE_WINDOW),streamType:pZ(this.getAttribute(tY.STREAM_TYPE)),primaryColor:this.getAttribute(mS.PRIMARY_COLOR),secondaryColor:this.getAttribute(mS.SECONDARY_COLOR),accentColor:this.getAttribute(mS.ACCENT_COLOR),forwardSeekOffset:this.forwardSeekOffset,backwardSeekOffset:this.backwardSeekOffset,defaultHiddenCaptions:this.defaultHiddenCaptions,defaultDuration:this.defaultDuration,defaultShowRemainingTime:this.defaultShowRemainingTime,hideDuration:(o=null==(n=this.mediaController)?void 0:n.querySelector("media-time-display"))&&"none"===getComputedStyle(o).getPropertyValue("--media-duration-display-display").trim(),playbackRates:this.getAttribute(mS.PLAYBACK_RATES),customDomain:null!=(a=this.getAttribute(tY.CUSTOM_DOMAIN))?a:void 0,title:this.getAttribute(mS.TITLE),videoTitle:null!=(r=this.getAttribute(mS.VIDEO_TITLE))?r:this.getAttribute(mS.TITLE),novolumepref:this.hasAttribute(mS.NO_VOLUME_PREF),nomutedpref:this.hasAttribute(mS.NO_MUTED_PREF),proudlyDisplayMuxBadge:this.hasAttribute(mS.PROUDLY_DISPLAY_MUX_BADGE),castReceiver:this.castReceiver,disablePseudoEnded:this.hasAttribute(mS.DISABLE_PSEUDO_ENDED),capRenditionToPlayerSize:this.capRenditionToPlayerSize,...t,extraSourceParams:this.extraSourceParams})),this.shadowRoot)},mY=function(){let e=e=>{var t,i;if(!(null!=e&&e.startsWith("theme-")))return;let a=e.replace(/^theme-/,"");if(mI.includes(a))return;let r=this.getAttribute(e);null!=r?null==(t=this.mediaTheme)||t.setAttribute(a,r):null==(i=this.mediaTheme)||i.removeAttribute(a)};dE(this,mN,new MutationObserver(t=>{for(let{attributeName:i}of t)e(i)})),df(this,mN).observe(this,{attributes:!0}
3338),this.getAttributeNames().forEach(e)},mG=function(){this.addEventListener("error",df(this,mj)),this.media&&(this.media.errorTranslator=(e={})=>{var t,i,a;if(!((null==(t=this.media)?void 0:t.error)instanceof m))return e;let r=my(null==(i=this.media)?void 0:i.error,!1);return{player_error_code:null==(a=this.media)?void 0:a.error.code,player_error_message:r.message?String(r.message):e.player_error_message,player_error_context:r.context?String(r.context):e.player_error_context}})},mz=function(){var e,t,i,a;null==(t=null==(e=this.media)?void 0:e.textTracks)||t.addEventListener("addtrack",df(this,mB)),null==(a=null==(i=this.media)?void 0:i.textTracks)||a.addEventListener("removetrack",df(this,mB))},mQ=function(){var e,t;if(!/Firefox/i.test(navigator.userAgent))return;let i,a=new WeakMap,r=()=>this.streamType===E.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,n=(e,t,i=!1)=>{r()||Array.from(e&&e.activeCues||[]).forEach(e=>{if(!(!e.snapToLines||e.line<-5||e.line>=0&&e.line<10)){if(!t||this.paused){let t=e.text.split(`
3339`).length,r=-3;this.streamType===E.LIVE&&(r=-2);let n=r-t;(e.line!==n||i)&&(a.has(e)||a.set(e,e.line),e.line=n)}else setTimeout(()=>{e.line=a.get(e)||"auto"},500)}})},o=()=>{var e,t;n(i,null!=(t=null==(e=this.mediaController)?void 0:e.hasAttribute(aZ.USER_INACTIVE))&&t)},s=()=>{var e,t;let a=Array.from((null==(t=null==(e=this.mediaController)?void 0:e.media)?void 0:t.textTracks)||[]).filter(e=>["subtitles","captions"].includes(e.kind)&&"showing"===e.mode)[0];a!==i&&(null==i||i.removeEventListener("cuechange",o)),null==(i=a)||i.addEventListener("cuechange",o),n(i,df(this,mx))};s(),null==(e=this.textTracks)||e.addEventListener("change",s),null==(t=this.textTracks)||t.addEventListener("addtrack",s);let l=()=>{var e,t;let a=null==(t=null==(e=this.mediaController)?void 0:e.hasAttribute(aZ.USER_INACTIVE))||t;df(this,mx)!==a&&(dE(this,mx,a),n(i,df(this,mx)))};this.addEventListener("userinactivechange",l),dE(this,m$,()=>{var e,t;null==i||i.removeEventListener("cuechange",o),null==(e=this.textTracks)||e.removeEventListener("change",s),null==(t=this.textTracks)||t.removeEventListener("addtrack",s),this.removeEventListener("userinactivechange",l)})};var m5=e=>{throw TypeError(e)},m9=(e,t,i)=>t.has(e)||m5("Cannot "+i),m8=(e,t,i)=>(m9(e,t,"read from private field"),i?i.call(e):t.get(e)),m6=(e,t,i)=>t.has(e)?m5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),m7=(e,t,i,a)=>(m9(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),ve=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends ve{}globalThis.DocumentFragment=e}var vt,vi=class extends ve{},va=class{constructor(e,t={}){m6(this,vt),m7(this,vt,null==t?void 0:t.detail)}get detail(){return m8(this,vt)}initCustomEvent(){}};vt=new WeakMap;var vr={document:{createElement:function(e,t){return new vi}},DocumentFragment,customElements:{get(e){},define(e,t,i){},getName:e=>null,upgrade(e){},whenDefined:e=>Promise.resolve(vi)},CustomEvent:va,EventTarget:ve,HTMLElement:vi,HTMLVideoElement:class extends ve{}},vn="undefined"==typeof window||void 0===globalThis.customElements,vo=vn?vr:globalThis;vn&&vr.document,vo.customElements.get("mux-player")||(vo.customElements.define("mux-player",m3),vo.MuxPlayerElement=m3);var vs=parseInt(o.version)>=19,vl={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},vd=e=>null==e,vu=(e,t)=>!vd(t)&&e in t,vc=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),vh=(e,t)=>{if(!(!vs&&"boolean"==typeof t&&!t)){if(vu(e,vl))return vl[e];if(void 0!==t)return/[A-Z]/.test(e)?vc(e):e}},vp=(e,t)=>vs||"boolean"!=typeof e?e:"",vm=(e={})=>{let{ref:t,...i}=e;return Object.entries(i).reduce((e,[t,i])=>{let a=vh(t,i);if(!a)return e;let r=vp(i,t);return e[a]=r,e},{})};function vv(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var vf=Object.prototype.hasOwnProperty,vb=(e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e))return!!Array.isArray(t)&&e.length===t.length&&e.some((e,i)=>t[i]===e);let i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++)if(!vf.call(t,i[a])||!Object.is(e[i[a]],t[i[a]]))return!1;return!0},vE=(e,t,i)=>!vb(t,e[i]),vy=(e,t,i)=>{e[i]=t},vg=(e,t,i,a=vy,r=vE)=>(0,o.useEffect)(()=>{let n=null==i?void 0:i.current;n&&r(n,t,e)&&a(n,t,e)},[null==i?void 0:i.current,t]),v_=(()=>{try{return"3.11.7"}catch{}return"UNKNOWN"})(),vT=(e,t,i)=>(0,o.useEffect)(()=>{let a=null==t?void 0:t.current;if(a&&i)return a.addEventListener(e,i),()=>{a.removeEventListener(e,i)}},[null==t?void 0:t.current,i,e]),vk=o.forwardRef(({children:e,...t},i)=>o.createElement("mux-player",{suppressHydrationWarning:!0,...vm(t),ref:i},e)),vA=(e,t)=>
3339{let{onAbort:i,onCanPlay:a,onCanPlayThrough:r,onEmptied:n,onLoadStart:o,onLoadedData:s,onLoadedMetadata:l,onProgress:d,onDurationChange:u,onVolumeChange:c,onRateChange:h,onResize:m,onWaiting:v,onPlay:f,onPlaying:b,onTimeUpdate:E,onPause:y,onSeeking:g,onSeeked:_,onStalled:T,onSuspend:k,onEnded:A,onError:w,onCuePointChange:S,onChapterChange:I,metadata:L,tokens:R,paused:C,playbackId:D,playbackRates:O,currentTime:x,themeProps:M,extraSourceParams:N,castCustomData:P,_hlsConfig:U,...B}=t;return vg("tokens",R,e),vg("playbackId",D,e),vg("playbackRates",O,e),vg("metadata",L,e),vg("extraSourceParams",N,e),vg("_hlsConfig",U,e),vg("themeProps",M,e),vg("castCustomData",P,e),vg("paused",C,e,(e,t)=>{null!=t&&(t?e.pause():e.play())},(e,t,i)=>(!e.hasAttribute("autoplay")||!!e.hasPlayed)&&vE(e,t,i)),vg("currentTime",x,e,(e,t)=>{null!=t&&(e.currentTime=t)}),vT("abort",e,i),vT("canplay",e,a),vT("canplaythrough",e,r),vT("emptied",e,n),vT("loadstart",e,o),vT("loadeddata",e,s),vT("loadedmetadata",e,l),vT("progress",e,d),vT("durationchange",e,u),vT("volumechange",e,c),vT("ratechange",e,h),vT("resize",e,m),vT("waiting",e,v),vT("play",e,f),vT("playing",e,b),vT("timeupdate",e,E),vT("pause",e,y),vT("seeking",e,g),vT("seeked",e,_),vT("stalled",e,T),vT("suspend",e,k),vT("ended",e,A),vT("error",e,w),vT("cuepointchange",e,S),vT("chapterchange",e,I),[B]},vw=o.forwardRef((e,t)=>{var i;let a=(0,o.useRef)(null),r=function(...e){return o.useCallback(function(...e){return t=>{let i=!1,a=e.map(e=>{let a=vv(e,t);return i||"function"!=typeof a||(i=!0),a});if(i)return()=>{for(let t=0;t<a.length;t++){let i=a[t];"function"==typeof i?i():vv(e[t],null)}}}}(...e),e)}(a,t),[n]=vA(a,e),[s]=(0,o.useState)(null!=(i=e.playerInitTime)?i:eq());return o.createElement(vk,{ref:r,defaultHiddenCaptions:e.defaultHiddenCaptions,playerSoftwareName:"mux-player-react",playerSoftwareVersion:v_,playerInitTime:s,...n})})},10873:function(e,t,i){"use strict";i.d(t,{gO:function(){return k}});let a="Collection",r=["contentfulMetadata"],n={IMAGE:"Image",PERSONALISED_IMAGE:"PersonalisedImage"},o=e=>"object"==typeof e&&null!==e&&!(e instanceof Date)&&!(e instanceof RegExp)&&!Array.isArray(e),s=e=>null!==e&&o(e)&&"items"in e&&Array.isArray(e.items),l=e=>Object.entries(e).reduce((e,[t,i])=>o(i)&&!t.endsWith(a)?{...e,[t]:l(i)}:t.endsWith(a)&&s(i)?{...e,[t.slice(0,-a.length)]:i.items.map(e=>o(e)?l(e):e??void 0)}:{...e,[t]:i},{}),d=(e,t)=>t.map(t=>o(t)?e(t):null===t?void 0:Array.isArray(t)?d(e,t):t),u=e=>([t,i])=>i&&o(i)?{[t]:e(i)}:Array.isArray(i)?{[t]:d(e,i)}:{[t]:i},c=e=>Object.entries(e).reduce((e,[t,i])=>({...e,..."sys"===t?{publishedAt:i.publishedAt,[t]:i}:u(c)([t,i])}),{}),h=e=>Object.entries(e).reduce((e,[t,i])=>({...e,..."sys"===t?{id:i.id,[t]:i}:u(h)([t,i])}),{}),m=e=>Object.entries(e).reduce((e,[t,i])=>({...e,...r.includes(t)?{}:u(m)([t,i])}),{}),v=e=>Object.entries(e).reduce((e,[t,i])=>{if(null===i)return{...e,[t]:void 0};if(o(i))return{...e,[t]:v(i)};let a=e=>e.map(e=>o(e)?v(e):null===e?void 0:Array.isArray(e)?a(e):e);return Array.isArray(i)?{...e,[t]:a(i)}:{...e,[t]:i}},{}),f=e=>Object.entries(e).reduce((e,[t,i])=>({...e,..."openInNewTab"===t?{target:!0===i?"_blank":"_self"}:"externalLink"===t?void 0!==i?{url:i}:{}:"internalLink"===t?o(i)?{...null!=i&&"slug"in i?{url:i.slug}:{url:""},internalLinkData:{...i}}:{}:u(f)([t,i])}),{}),b={FILL:"fill"},E={CENTER:"center",TOP:"top",RIGHT:"right",LEFT:"left",BOTTOM:"bottom",FACE:"face"},y=e=>void 0!==e&&o(e)&&"url"in e&&"width"in e&&"height"in e,g=({width:e,height:t,focalPoint:i})=>{let{x:a,y:r}=i.focalPoint,n=r/t*100,o=n<33.33?E.TOP:n>66.66?E.BOTTOM:void 0,s=a/e*100,l=s<33.33?E.LEFT:s>66.66?E.RIGHT:E.CENTER,d=`${o?`${o}_`:""}${l}`;return d===`${E.TOP}_${E.CENTER}`?E.TOP:d===`${E.BOTTOM}_${E.CENTER}`?E.BOTTOM:d},_=e=>y(e)?e:e.image?.url?{__typename:e.__typename??n.IMAGE,id:e.id,attribution:e.attribution,caption:e.caption,width:e.image?.width||0,height:e.image?.height||0,url:e.image.url,alt:e.image.description||e.title||e.image.title||"",fit:b.FILL,focalPoint:e.focalPoint?.focalPoint,...e.focalPoint?.focalPoint&&e.image.width&&e.image.height?{focus:g({width:e.image.width,height:e.image.height,focalPoint:e.focalPoint})}
3339:{focus:E.FACE},isAgeSensitiveContent:e.isAgeSensitiveContent}:void 0,T=e=>o(e)&&"__typename"in e&&e.__typename===n.IMAGE?_({...e,id:e.id??""}):Object.entries(e).reduce((e,[t,i])=>({...e,...o(i)&&i.__typename===n.IMAGE?{[t]:_(i)}:o(i)&&i.__typename===n.PERSONALISED_IMAGE?{[t]:{..._({...i.image}),ntExperiencesCollection:i.ntExperiencesCollection}}:u(T)([t,i])}),{}),k=e=>{let t=e=>({addId:()=>({...(({addId:e,...t})=>t)(t(h(e)))}),addPublishedDate:()=>({...(({addPublishedDate:e,...t})=>t)(t(c(e)))}),stripMeta:()=>({...(({addId:e,stripMeta:t,...i})=>i)(t(m(e)))}),stripPagination:()=>({...(({stripPagination:e,...t})=>t)(t(l(e)))}),stripMaybe:()=>({...(({stripMaybe:e,...t})=>t)(t(v(e)))}),linkParser:()=>({...(({linkParser:e,...t})=>t)(t(f(e)))}),getContentfulImageProps:()=>({...(({getContentfulImageProps:e,...t})=>t)(t(T(e)))}),run:e}),i=f(m(v(c(h(e))))),a=T(l(i)),r=T(i);return{compose:t(e),all:a,paginated:r}}},61669:function(e,t,i){"use strict";i.d(t,{Z:function(){return tM}});var a=Object.create,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,d=function(e,t){return function(){return e&&(t=e(e=0)),t}},u=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},c=function(e,t,i,a){if(t&&"object"==typeof t||"function"==typeof t)for(var s,d=o(t),u=0,c=d.length;u<c;u++)s=d[u],l.call(e,s)||s===i||r(e,s,{get:(function(e){return t[e]}).bind(null,s),enumerable:!(a=n(t,s))||a.enumerable});return e},h=function(e,t,i){return i=null!=e?a(s(e)):{},c(!t&&e&&e.__esModule?i:r(i,"default",{value:e,enumerable:!0}),e)},m=u(function(e,t){var i;"undefined"!=typeof window?i=window:"undefined"!=typeof global?i=global:"undefined"!=typeof self?i=self:i={},t.exports=i});function v(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):v(e,t)}var f=d(function(){f()});function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var E=d(function(){}),y=u(function(e,t){var i=Array.prototype.slice;t.exports=function(e,t){for(("length"in e)||(e=[e]),e=i.call(e);e.length;){var a=e.shift(),r=t(a);if(r)return r;a.childNodes&&a.childNodes.length&&(e=i.call(a.childNodes).concat(e))}}}),g=u(function(e,t){function i(e,t){if(!v(this,i))return new i(e,t);this.data=e,this.nodeValue=e,this.length=e.length,this.ownerDocument=t||null}f(),t.exports=i,i.prototype.nodeType=8,i.prototype.nodeName="#comment",i.prototype.toString=function(){return"[object Comment]"}}),_=u(function(e,t){function i(e,t){if(!v(this,i))return new i(e);this.data=e||"",this.length=this.data.length,this.ownerDocument=t||null}f(),t.exports=i,i.prototype.type="DOMTextNode",i.prototype.nodeType=3,i.prototype.nodeName="#text",i.prototype.toString=function(){return this.data},i.prototype.replaceData=function(e,t,i){var a=this.data,r=a.substring(0,e),n=a.substring(e+t,a.length);this.data=r+i+n,this.length=this.data.length}}),T=u(function(e,t){t.exports=function(e){var t=this,i=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var a=t.listeners[i];if(a)return a.forEach(function(i){e.currentTarget=t,"function"==typeof i?i(e):i.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)}}),k=u(function(e,t){t.exports=function(e,t){this.listeners||(this.listeners={}),this.listeners[e]||(this.listeners[e]=[]),-1===this.listeners[e].indexOf(t)&&this.listeners[e].push(t)}}),A=u(function(e,t){t.exports=function(e,t){if(this.listeners&&this.listeners[e]){var i=this.listeners[e],a=i.indexOf(t);-1!==a&&i.splice(a,1)}}}),w=u(function(e,t){E(),t.exports=function e(t){switch(t.nodeType){case 3:return r(t.data);case 8:return"<!--"+t.data+"-->";default:var n,o;return n=[],o=t.tagName,"http://www.w3.org/1999/xhtml"===t.namespaceURI&&(o=o.toLowerCase()),n.push("<"+o+function(e){var t=[];for(var i in e)(function(e,t){var i=b(e[t]);return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===i||"boolean"===i||"number"===i)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}
3339)(e,i)&&t.push({name:i,value:e[i]});for(var r in e._attributes)for(var n in e._attributes[r]){var o=e._attributes[r][n],s=(o.prefix?o.prefix+":":"")+n;t.push({name:s,value:o.value})}return e.className&&t.push({name:"class",value:e.className}),t.length?a(t):""}(t)+function(e){var t=e.dataset,i=[];for(var r in t)i.push({name:"data-"+r,value:t[r]});return i.length?a(i):""}(t)),i.indexOf(o)>-1?n.push(" />"):(n.push(">"),t.childNodes.length?n.push.apply(n,t.childNodes.map(e)):t.textContent||t.innerText?n.push(r(t.textContent||t.innerText)):t.innerHTML&&n.push(t.innerHTML),n.push("</"+o+">")),n.join("")}};var i=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function a(e){var t=[];return e.forEach(function(e){var i=e.name,a=e.value;"style"===i&&(a=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach(function(i){var a=e[i];i=i.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),t+=i+":"+a+";"}),t}(a)),t.push(i+'="'+r(a).replace(/"/g,"&quot;")+'"')}),t.length?" "+t.join(" "):""}function r(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}}),S=u(function(e,t){f();var i=y(),a=T(),r=k(),n=A(),o=w(),s="http://www.w3.org/1999/xhtml";function l(e,t,i){if(!v(this,l))return new l(e);var a=void 0===i?s:i||null;this.tagName=a===s?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=a,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}t.exports=l,l.prototype.type="DOMElement",l.prototype.nodeType=1,l.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},l.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[i]=e,e.parentNode=this,t},l.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},l.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=null==t?-1:this.childNodes.indexOf(t);return i>-1?this.childNodes.splice(i,0,e):this.childNodes.push(e),e.parentNode=this,e},l.prototype.setAttributeNS=function(e,t,i){var a=null,r=t,n=t.indexOf(":");(n>-1&&(a=t.substr(0,n),r=t.substr(n+1)),"INPUT"===this.tagName&&"type"===t)?this.type=i:(this._attributes[e]||(this._attributes[e]={}))[r]={value:i,prefix:a}},l.prototype.getAttributeNS=function(e,t){var i=this._attributes[e],a=i&&i[t]&&i[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof a?null:a},l.prototype.removeAttributeNS=function(e,t){var i=this._attributes[e];i&&delete i[t]},l.prototype.hasAttributeNS=function(e,t){var i=this._attributes[e];return!!i&&t in i},l.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},l.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},l.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},l.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},l.prototype.removeEventListener=n,l.prototype.addEventListener=r,l.prototype.dispatchEvent=a,l.prototype.focus=function(){},l.prototype.toString=function(){return o(this)},l.prototype.getElementsByClassName=function(e){var t=e.split(" "),a=[];return i(this,function(e){if(1===e.nodeType){var i=(e.className||"").split(" ");t.every(function(e){return -1!==i.indexOf(e)})&&a.push(e)}}),a},l.prototype.getElementsByTagName=function(e){e=e.toLowerCase();var t=[];return i(this.childNodes,function(i){1===i.nodeType&&("*"===e||i.tagName.toLowerCase()===e)&&t.push(i)}),t},l.prototype.contains=function(e){return i(this,function(t){return e===t})||!1}}),I=u(function(e,t){f();var i=S();function a(e){if(!v(this,a))return new a;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}t.exports=a,a.prototype.type="DocumentFragment",a.prototype.nodeType=11,a.prototype.nodeName="#document-fragment",a.prototype.appendChild=i.prototype.appendChild,a.prototype.replaceChild=i.prototype.replaceChild,a.prototype.removeChild=i.prototype.removeChild,a.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join("")}}),L=u(function(e,t){function i(e){}t.exports=i,i.prototype.initEvent=function(e,t,i){this.type=e,this.bubbles=t,this.cancelable=i},i.prototype.preventDefault=function(){}}),R=u(function(e,t){f();var i=y(),a=g(),r=_(),n=S(),o=I(),s=L(),l=T(),d=k(),u=A();function c(){if(!v(this,c))return new c;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}t.exports=c;var h=c.prototype;h.createTextNode=function(e){return new r(e,this)},h.createElementNS=function(e,t){return new n(t,this,null===e?null:String(e))},h.createElement=function(e){return new n(e,this)},h.createDocumentFragment=function(){return new o(this)},h.createEvent=function(e){return new s(e)},h.createComment=function(e){return new a(e,this)},h.getElementById=function(e){return e=String(e),i(this.childNodes,function(t){if(String(t.id)===e)return t})||null},h.getElementsByClassName=n.prototype.getElementsByClassName,h.getElementsByTagName=n.prototype.getElementsByTagName,h.contains=n.prototype.contains,h.removeEventListener=u,h.addEventListener=d,h.dispatchEvent=l}),C=u(function(e,t){var i=R();t.exports=new i}),D=u(function(e,t){var i,a="undefined"!=typeof global?global:"undefined"!=typeof window?window:{},r=C();"undefined"!=typeof document?i=document:(i=a["__GLOBAL_DOCUMENT_CACHE@4"])||(i=a["__GLOBAL_DOCUMENT_CACHE@4"]=r),t.exp
3339orts=i});function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=Array(t);i<t;i++)a[i]=e[i];return a}function x(e,t){if(e){if("string"==typeof e)return O(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return O(e,t)}}function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,r,n=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(a=i.next()).done)&&(n.push(a.value),!(t&&n.length===t));o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return n}}(e,t)||x(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=h(m()),P=h(m()),U=h(m()),B={now:function(){var e=U.default.performance,t=e&&e.timing,i=t&&t.navigationStart;return Math.round("number"==typeof i&&"function"==typeof e.now?i+e.now():Date.now())}},$=function(){if("function"==typeof(null===(e=P.default.crypto)||void 0===e?void 0:e.getRandomValues)){i=new Uint8Array(32),P.default.crypto.getRandomValues(i);for(var e,t,i,a=0;a<32;a++)i[a]=i[a]%16}else{i=[];for(var r=0;r<32;r++)i[r]=16*Math.random()|0}var n=0;t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t="x"===e?i[n]:3&i[n]|8;return n++,t.toString(16)});var o=B.now(),s=null==o?void 0:o.toString(16).substring(3);return s?t.substring(0,28)+s:t},H=function(){return("000000"+(2176782336*Math.random()<<0).toString(36)).slice(-6)},j=function(e){var t;if(e&&void 0!==e.nodeName)return e.muxId||(e.muxId=H()),e.muxId;try{t=document.querySelector(e)}catch(e){}return t&&!t.muxId&&(t.muxId=e),(null==t?void 0:t.muxId)||e},W=function(e){e&&void 0!==e.nodeName?e=j(t=e):t=document.querySelector(e);var t,i=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,i]};function q(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||x(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var K={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4},F=function(e){var t,i,a,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,s=e?[console,e]:[console],l=(t=console.trace).bind.apply(t,q(s)),d=(i=console.info).bind.apply(i,q(s)),u=(a=console.debug).bind.apply(a,q(s)),c=(r=console.warn).bind.apply(r,q(s)),h=(n=console.error).bind.apply(n,q(s)),m=o;return{trace:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!(m>K.TRACE))return l.apply(void 0,q(t))},debug:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!(m>K.DEBUG))return u.apply(void 0,q(t))},info:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!(m>K.INFO))return d.apply(void 0,q(t))},warn:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!(m>K.WARN))return c.apply(void 0,q(t))},error:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!(m>K.ERROR))return h.apply(void 0,q(t))},get level(){return m},set level(p){p!==this.level&&(m=null!=p?p:o)}}}("[mux]"),V=h(m());function Y(){return"1"===(V.default.doNotTrack||V.default.navigator&&V.default.navigator.doNotTrack)}function G(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){if(!v(e,t))throw TypeError("Cannot call a class as a function")}function Q(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Z(e,t,i){return t&&Q(e.prototype,t),i&&Q(e,i),e}function X(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t,i){return(ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var a=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=J(e)););return e}(e,t);if(a){var r=Object.getOwnPropertyDescriptor(a,t);return r.get?r.get.call(i||e):r.value}})(e,t,i||e)}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}f(),E();var ei=function(e){return ea(e)[0]},ea=function(e){if("string"!=typeof e||""===e)return["localhost"];var t,i=(e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/)||[])[4];return i&&(t=(i.match(/[^\.]+\.[^\.]+$/)||[])[0]),[i,t]},er=h(m()),en={exists:function(){var e=er.default.performance;return void 0!==(e&&e.timing)},domContentLoadedEventEnd:function(){var e=er.default.performance,t=e&&e.t
3339iming;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=er.default.performance,t=e&&e.timing;return t&&t.navigationStart}};function eo(e,t,i){i=void 0===i?1:i,e[t]=e[t]||0,e[t]+=i}function es(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},a=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),a.forEach(function(t){X(e,t,i[t])})}return e}function el(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i.push.apply(i,a)}return i})(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}var ed=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],eu=["x-cdn","content-type"].concat(ed);function ec(e){var t={};return(e=e||"").trim().split(/[\r\n]+/).forEach(function(e){if(e){var i=e.split(": "),a=i.shift();a&&(eu.indexOf(a.toLowerCase())>=0||0===a.toLowerCase().indexOf("x-litix-"))&&(t[a]=i.join(": "))}}),t}function eh(e){if(e){var t=ed.find(function(t){return void 0!==e[t]});return t?e[t]:void 0}}var ep=function(e){var t={};for(var i in e){var a=e[i];-1!==a["DATA-ID"].search("io.litix.data.")&&(t[a["DATA-ID"].replace("io.litix.data.","")]=a.VALUE)}return t},em=function(e){if(!e)return{};var t=en.navigationStart(),i=e.loading,a=i?i.start:e.trequest,r=i?i.first:e.tfirst,n=i?i.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+a),responseStart:Math.round(t+r),responseEnd:Math.round(t+n)}},ev=function(e){if(!(!e||"function"!=typeof e.getAllResponseHeaders))return ec(e.getAllResponseHeaders())},ef=function(e,t,i){arguments.length>3&&void 0!==arguments[3]&&arguments[3];var a=arguments.length>4?arguments[4]:void 0,r=e.log,n=e.utils.secondsToMs,o=function(e){var t,i=parseInt(a.version);return 1===i&&null!==e.programDateTime&&(t=e.programDateTime),0===i&&null!==e.pdt&&(t=e.pdt),t};if(!en.exists()){r.warn("performance timing not supported. Not tracking HLS.js.");return}var s=function(i,a){return e.emit(t,i,a)},l=function(e,t){var i=t.levels,a=t.audioTracks,r=t.url,n=t.stats,o=t.networkDetails,l=t.sessionData,d={},u={};i.forEach(function(e,t){d[t]={width:e.width,height:e.height,bitrate:e.bitrate,attrs:e.attrs}}),a.forEach(function(e,t){u[t]={name:e.name,language:e.lang,bitrate:e.bitrate}});var c=em(n),h=c.bytesLoaded,m=c.requestStart,v=c.responseStart,f=c.responseEnd;s("requestcompleted",el(es({},ep(l)),{request_event_type:e,request_bytes_loaded:h,request_start:m,request_response_start:v,request_response_end:f,request_type:"manifest",request_hostname:ei(r),request_response_headers:ev(o),request_rendition_lists:{media:d,audio:u,video:{}}}))};i.on(a.Events.MANIFEST_LOADED,l);var d=function(e,t){var i=t.details,a=t.level,r=t.networkDetails,l=em(t.stats),d=l.bytesLoaded,u=l.requestStart,c=l.responseStart,h=l.responseEnd,m=i.fragments[i.fragments.length-1],v=o(m)+n(m.duration);s("requestcompleted",{request_event_type:e,request_bytes_loaded:d,request_start:u,request_response_start:c,request_response_end:h,request_current_level:a,request_type:"manifest",request_hostname:ei(i.url),request_response_headers:ev(r),video_holdback:i.holdBack&&n(i.holdBack),video_part_holdback:i.partHoldBack&&n(i.partHoldBack),video_part_target_duration:i.partTarget&&n(i.partTarget),video_target_duration:i.targetduration&&n(i.targetduration),video_source_is_live:i.live,player_manifest_newest_program_time:isNaN(v)?void 0:v})};i.on(a.Events.LEVEL_LOADED,d);var u=function(e,t){var i=t.details,a=t.networkDetails,r=em(t.stats);s("requestcompleted",{request_event_type:e,request_bytes_loaded:r.bytesLoaded,request_start:r.requestStart,request_response_start:r.responseStart,request_response_end:r.responseEnd,request_type:"manifest",request_hostname:ei(i.url),request_response_headers:ev(a)})};i.on(a.Events.AUDIO_TRACK_LOADED,u);var c=function(e,t){var a=t.stats,r=t.networkDetails,n=t.frag,o=em(a=a||n.stats),l=o.bytesLoaded,d=o.requestStart,u=o.responseStart,c=o.responseEnd,h=r?ev(r):void 0,m={request_event_type:e,request_bytes_loaded:l,request_start:d,request_response_start:u,request_response_end:c,request_hostname:r?ei(r.responseURL):void 0,request_id:h?eh(h):void 0,request_response_headers:h,request_media_duration:n.duration,request_url:null==r?void 0:r.responseURL};"main"===n.type?(m.request_type="media",m.request_current_level=n.level,m.request_video_width=(i.levels[n.level]||{}).width,m.request_video_height=(i.levels[n.level]||{}).height,m.request_labeled_bitrate=(i.levels[n.level]||{}).bitrate):m.request_type=n.type,s("requestcompleted",m)};i.on(a.Events.FRAG_LOADED,c);var h=function(e,t){var i=t.frag,a=i.start;s("fragmentchange",{currentFragmentPDT:o(i),currentFragmentStart:n(a)})};i.on(a.Events.FRAG_CHANGED,h);var m=function(e,t){var i,r=t.type,n=t.details,o=t.response,l=t.fatal,d=t.frag,u=t.networkDetails,c=(null==d?void 0:d.url)||t.url||"",h=u?ev(u):void 0;(n===a.ErrorDetails.MANIFEST_LOAD_ERROR||n===a.ErrorDetails.MANIFEST_LOAD_TIMEOUT||n===a.ErrorDetails.FRAG_LOAD_ERROR||n===a.ErrorDetails.FRAG_LOAD_TIMEOUT||n===a.ErrorDetails.LEVEL_LOAD_ERROR||n===a.ErrorDetails.LEVEL_LOAD_TIMEOUT||n===a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||n===a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||n===a.ErrorDetails.SUBTITLE_LOAD_ERROR||n===a.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||n===a.ErrorDetails.KEY_LOAD_ERROR||n===a.ErrorDetails.KEY_LOAD_TIMEOUT)&&s("requestfailed",{request_error:n,request_url:c,request_hostname:ei(c),request_id:h?eh(h):void 0,request_type:n===a.ErrorDetails.FRAG_LOAD_ERROR||n===a.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":n===a.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||n===a.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":n===a.ErrorDetails.SUBTITLE_LOAD_ERROR||n===a.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":n===a.ErrorDetails.KEY_LOAD_ERROR||n===a.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:null==o?void 0:o.code,request_error_text:null==o?void 0:o.text}),l&&s("error",{player_error_code:r,player_error_message:n,player_error_context:"".concat(c?"url: ".concat(c,"\n"):"")+"".concat(o&&(o.code||o.text)?"response: ".concat(o.code,", ").concat(o.text,"\n"):"")+"".concat(t.reason?"failure reason: ".concat(t.reason,"\n"):"")+"".concat(t.level?"level: ".concat(t.level,"\n"):"")+"".concat(t.parent?"parent stream controller: ".concat(t.parent,"\n"):"")+"".concat(t.buffer?"buffer length: ".concat(t.buffer,"\n"):"")+"".concat(t.error?"error: ".concat(t.error,"\n"):"")+"".concat(t.event?"event: ".concat(t.event,"\n"):"")+"".concat(t.err?"error message: ".concat(null===(i=t.err)||void 0===i?void 0:i.message,"\n"):"")})};i.on(a.Events.ERROR,m);var v=function(e,t){var i=t.frag,a=i&&i._url||"";s("requestcanceled",{request_event_type:e,request_url:a,request_type:"media",request_hostname:ei(a)})};i.on(a.Events.FRAG_LOAD_EMERGENCY_ABORTED,v);var f=function(e,t){var a=t.level,n=i.levels[a];if(n&&n.attrs&&n.attrs.BANDWIDTH){var o,l=n.attrs.BANDWIDTH,d=parseFloat(n.attrs["FRAME-RATE"]);isNaN(d)||(o=d),l?s("renditionchange",{video_source_fps:o,video_source_bitrate:l,video_source_width:n.width,video_source_height:n.height,video_source_rendition_name:n.name,video_source_codec:null==n?void 0:n.videoCodec}):r.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};i.on(a.Events.LEVEL_SWITCHED,f),i._stopMuxMonitor=function(){i.off(a.Events.MANIFEST_LOADED,l),i.off(a.Events.LEVEL_LOADED,d),i.off(a.Events.AUDIO_TRACK_LOADED,u),i.off(a.Events.FRAG_LOADED,c),i.off(a.Events.FRAG_CHANGED,h),i.off(a.Events.ERROR,m),i.off(a.Events.FRAG_LOAD_EMERGENCY_ABORTED,v),i.off(a.Events.LEVEL_SWITCHED,f),i.off(a.Events.DESTROYING,i._stopMuxMonitor),delete i._stopMuxMonitor},i.on(a.Events.DESTROYING,i._stopMuxMonitor)},eb=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()},eE=function(e,t){if(!e||!e.requestEndDate)return{};var i,a=ei(e.url),r=e.url,n=e.bytesLoaded,o=new Date(e.requestStartDate).getTime(),s=new Date(e.firstByteDate).getTime(),l=new Date(e.requestEndDate).getTime(),d=isNaN(e.duration)?0:e.duration,u="function"==typeof t.getMetricsFor?t.getMetricsFor(e.mediaType).HttpList:t.getDashMetrics().getHttpRequests(e.mediaType);u.length>0&&(i=ec(u[u.length-1]._responseHeaders||""));var c=i?eh(i):void 0;return{requestStart:o,requestResponseStart:s,requestResponseEnd:l,requestBytesLoaded:n,requestResponseHeaders:i,requestMediaDuration:d,requestHostname:a,requestUrl:r,requestId:c}},ey=function(e,t){if("function"==typeof t.getCurrentRepresentationForType){var i=t.getCurrentRepresentationForType(e);return i?{currentLevel:i.absoluteIndex,renditionWidth:i.width||null,renditionHeight:i.height||null,renditionBitrate:i.bandwidth}:{}}var a=t.getQualityFor(e),r=t.getCurrentTrackFor(e).bitrateList;return r?{currentLevel:a,renditionWidth:r[a].width||null,renditionHeight:r[a].height||null,renditionBitrate:r[a].bandwidth}:{}},eg=function(e){var t;return null===(t=e.match(/.*codecs\*?="(.*)"/))||void 0===t?void 0:t[1]},e_=function(e){try{var t,i;return null===(i=e.getVersion)||void 0===i||null===(t=i.call(e))||void 0===t?void 0:t.split(".").map(function(e){return parseInt(e)})[0]}catch(e){return!1}},eT=function(e,t,i){arguments.length>3&&void 0!==arguments[3]&&arguments[3];var a=e.log;if(!i||!i.on){a.warn("Invalid dash.js player reference. Monitoring blocked.");return}var r=e_(i),n=function(i,a){return e.emit(t,i,a)},o=function(e){var t=e.type,i=(e.data||{}).url;n("requestcompleted",{request_event_type:t,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:ei(i),request_url:i})};i.on("manifestLoaded",o);var s={},l=function(e){if("function"!=typeof e.getRequests)return null;var t=e.getRequests({state:"executed"});return 0===t.length?null:t[t.length-1]},d=function(e){var t=e.type,a=e.chunk,r=e.request,o=(a||{}).mediaInfo||{},l=o.type,d=o.bitrateList,u={};
3339(d=d||[]).forEach(function(e,t){u[t]={},u[t].width=e.width,u[t].height=e.height,u[t].bitrate=e.bandwidth,u[t].attrs={}}),"video"===l?s.video=u:"audio"===l?s.audio=u:s.media=u;var c=eE(r,i),h=c.requestStart,m=c.requestResponseStart,v=c.requestResponseEnd,f=c.requestResponseHeaders,b=c.requestMediaDuration,E=c.requestHostname,y=c.requestUrl;n("requestcompleted",{request_event_type:t,request_start:h,request_response_start:m,request_response_end:v,request_bytes_loaded:-1,request_type:l+"_init",request_response_headers:f,request_hostname:E,request_id:c.requestId,request_url:y,request_media_duration:b,request_rendition_lists:s})};r>=4?i.on("initFragmentLoaded",d):i.on("initFragmentLoaded",function(e){var t=e.type,i=e.fragmentModel,a=e.chunk;d({type:t,request:l(i),chunk:a})});var u=function(e){var t=e.type,a=e.chunk,r=e.request,o=a||{},s=o.mediaInfo,l=o.start,d=(s||{}).type,u=eE(r,i),c=u.requestStart,h=u.requestResponseStart,m=u.requestResponseEnd,v=u.requestBytesLoaded,f=u.requestResponseHeaders,b=u.requestMediaDuration,E=u.requestHostname,y=u.requestUrl,g=u.requestId,_=ey(d,i),T=_.currentLevel,k=_.renditionWidth,A=_.renditionHeight;n("requestcompleted",{request_event_type:t,request_start:c,request_response_start:h,request_response_end:m,request_bytes_loaded:v,request_type:d,request_response_headers:f,request_hostname:E,request_id:g,request_url:y,request_media_start_time:l,request_media_duration:b,request_current_level:T,request_labeled_bitrate:_.renditionBitrate,request_video_width:k,request_video_height:A})};r>=4?i.on("mediaFragmentLoaded",u):i.on("mediaFragmentLoaded",function(e){var t=e.type,i=e.fragmentModel,a=e.chunk;u({type:t,request:l(i),chunk:a})});var c={video:void 0,audio:void 0,totalBitrate:void 0},h=function(){if(c.video&&"number"==typeof c.video.bitrate){if(!(c.video.width&&c.video.height)){a.warn("have bitrate info for video but missing width/height");return}var e=c.video.bitrate;if(c.audio&&"number"==typeof c.audio.bitrate&&(e+=c.audio.bitrate),e!==c.totalBitrate)return c.totalBitrate=e,{video_source_bitrate:e,video_source_height:c.video.height,video_source_width:c.video.width,video_source_codec:eg(c.video.codec)}}},m=function(e,t,r){var o=e.mediaType;if("audio"===o||"video"===o){if("function"==typeof i.getRepresentationsByType){if(e.newRepresentation)s={bitrate:e.newRepresentation.bandwidth,width:e.newRepresentation.width,height:e.newRepresentation.height,qualityIndex:e.newRepresentation.absoluteIndex};else{var s,l=i.getRepresentationsByType(o);if(l&&"number"==typeof e.newQuality){var d=l.find(function(t){return t.absoluteIndex===e.newQuality||t.index===e.newQuality});d&&(s={bitrate:d.bandwidth,width:d.width,height:d.height,qualityIndex:e.newQuality})}}}else{if("number"!=typeof e.newQuality){a.warn("missing evt.newQuality in qualityChangeRendered event",e);return}s=i.getBitrateInfoListFor(o).find(function(t){return t.qualityIndex===e.newQuality})}if(!(s&&"number"==typeof s.bitrate)){a.warn("missing bitrate info for ".concat(o));return}c[o]=el(es({},s),{codec:i.getCurrentTrackFor(o).codec});var u=h();u&&n("renditionchange",u)}};i.on("qualityChangeRendered",m);var v=function(e){var t=e.request,i=e.mediaType;n("requestcanceled",{request_event_type:(t=t||{}).type+"_"+t.action,request_url:t.url,request_type:i,request_hostname:ei(t.url)})};i.on("fragmentLoadingAbandoned",v);var f=function(e){var t,i,a=e.error,r=(null==a||null===(t=a.data)||void 0===t?void 0:t.request)||{},o=(null==a||null===(i=a.data)||void 0===i?void 0:i.response)||{};(null==a?void 0:a.code)===27&&n("requestfailed",{request_error:r.type+"_"+r.action,request_url:r.url,request_hostname:ei(r.url),request_type:r.mediaType,request_error_code:o.status,request_error_text:o.statusText});var s="".concat(null!=r&&r.url?"url: ".concat(r.url,"\n"):"")+"".concat(null!=o&&o.status||null!=o&&o.statusText?"response: ".concat(null==o?void 0:o.status,", ").concat(null==o?void 0:o.statusText,"\n"):"");n("error",{player_error_code:null==a?void 0:a.code,player_error_message:null==a?void 0:a.message,player_error_context:s})};i.on("error",f),i._stopMuxMonitor=function(){i.off("manifestLoaded",o),i.off("initFragmentLoaded",d),i.off("mediaFragmentLoaded",u),i.off("qualityChangeRendered",m),i.off("error",f),i.off("fragmentLoadingAbandoned",v),delete i._stopMuxMonitor}},ek=function(e){e&&"function"==typeof e._stopMuxMonitor&&e._stopMuxMonitor()},eA=0,ew=function(){function e(){z(this,e),X(this,"_listeners",void 0)}return Z(e,[{key:"on",value:function(e,t,i){return t._eventEmitterGuid=t._eventEmitterGuid||++eA,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],i&&(t=t.bind(i)),this._listeners[e].push(t),t}},{key:"off",value:function(e,t){var i=this._listeners&&this._listeners[e];
3339i&&i.forEach(function(e,a){e._eventEmitterGuid===t._eventEmitterGuid&&i.splice(a,1)})}},{key:"one",value:function(e,t,i){var a=this;t._eventEmitterGuid=t._eventEmitterGuid||++eA;var r=function(){a.off(e,r),t.apply(i||this,arguments)};r._eventEmitterGuid=t._eventEmitterGuid,this.on(e,r)}},{key:"emit",value:function(e,t){var i=this;if(this._listeners){t=t||{};var a=this._listeners["before"+e]||[],r=this._listeners["before*"]||[],n=this._listeners[e]||[],o=this._listeners["after"+e]||[],s=function(t,a){(t=t.slice()).forEach(function(t){t.call(i,{type:e},a)})};s(a,t),s(r,t),s(n,t),s(o,t)}}}]),e}(),eS=h(m()),eI=function(){function e(t){var i=this;z(this,e),X(this,"_playbackHeartbeatInterval",void 0),X(this,"_playheadShouldBeProgressing",void 0),X(this,"pm",void 0),this.pm=t,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,t.on("playing",function(){i._playheadShouldBeProgressing=!0}),t.on("play",this._startPlaybackHeartbeatInterval.bind(this)),t.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),t.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),t.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("seeked",function(){t.data.player_is_paused?i._stopPlaybackHeartbeatInterval():i._startPlaybackHeartbeatInterval()}),t.on("timeupdate",function(){null!==i._playbackHeartbeatInterval&&t.emit("playbackheartbeat")}),t.on("devicesleep",function(e,a){null!==i._playbackHeartbeatInterval&&(eS.default.clearInterval(i._playbackHeartbeatInterval),t.emit("playbackheartbeatend",{viewer_time:a.viewer_time}),i._playbackHeartbeatInterval=null)})}return Z(e,[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;null===this._playbackHeartbeatInterval&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=eS.default.setInterval(function(){e.pm.emit("playbackheartbeat")},this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,null!==this._playbackHeartbeatInterval&&(eS.default.clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),e}(),eL=function e(t){var i=this;z(this,e),X(this,"viewErrored",void 0),t.on("viewinit",function(){i.viewErrored=!1}),t.on("error",function(e,a){try{var r=t.errorTranslator({player_error_code:a.player_error_code,player_error_message:a.player_error_message,player_error_context:a.player_error_context,player_error_severity:a.player_error_severity,player_error_business_exception:a.player_error_business_exception});r&&(t.data.player_error_code=r.player_error_code||a.player_error_code,t.data.player_error_message=r.player_error_message||a.player_error_message,t.data.player_error_context=r.player_error_context||a.player_error_context,t.data.player_error_severity=r.player_error_severity||a.player_error_severity,t.data.player_error_business_exception=r.player_error_business_exception||a.player_error_business_exception,i.viewErrored=!0)}catch(e){t.mux.log.warn("Exception in error translator callback.",e),i.viewErrored=!0}}),t.on("aftererror",function(){var e,i,a,r,n;null===(e=t.data)||void 0===e||delete e.player_error_code,null===(i=t.data)||void 0===i||delete i.player_error_message,null===(a=t.data)||void 0===a||delete a.player_error_context,null===(r=t.data)||void 0===r||delete r.player_error_severity,null===(n=t.data)||void 0===n||delete n.player_error_business_exception})},eR=function(){function e(t){z(this,e),X(this,"_watchTimeTrackerLastCheckedTime",void 0),X(this,"pm",void 0),this.pm=t,this._watchTimeTrackerLastCheckedTime=null,t.on("playbackheartbeat",this._updateWatchTime.bind(this)),t.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return Z(e,[{key:"_updateWatchTime",value:function(e,t){var i=t.viewer_time;null===this._watchTimeTrackerLastCheckedTime&&(this._watchTimeTrackerLastCheckedTime=i),eo(this.pm.data,"view_watch_time",i-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=i}},{key:"_clearWatchTimeState",value:function(e,t){this._updateWatchTime(e,t),this._watchTimeTrackerLastCheckedTime=null}}]),e}(),eC=function(){function e(t){var i=this;z(this,e),X(this,"_playbackTimeTrackerLastPlayheadPosition",void 0),X(this,"_lastTime",void 0),X(this,"_isAdPlaying",void 0),X(this,"_callbackUpdatePlaybackTime",void 0),X(this,"pm",void 0),this.pm=t,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=B.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null,t.on("viewinit",function(){i.pm.data.view_playing_time_ms_cumulative=0});var a=this._startPlaybackTimeTracking.bind(this);t.on("playing",a),t.on("adplaying",a);var r=function(){i.pm.data.player_is_paused||a()};t.on("seeked",r),t.on("rebufferend",r);var n=this._stopPlaybackTimeTracking.bind(this);t.on("playbackheartbeatend",n),t.on("seeking",n),t.on("rebufferstart",n),t.on("adplaying",function(){i._isAdPlaying=!0}),t.on("adended",function(){i._isAdPlaying=!1}),t.on("adpause",function(){i._isAdPlaying=!1}),t.on("adbreakstart",function(){i._isAdPlaying=!1}),t.on("adbreakend",function(){i._isAdPlaying=!1}),t.on("adplay",function(){i._isAdPlaying=!1}),t.on("viewinit",function(){i._playbackTimeTrackerLastPlayheadPosition=-1,i._lastTime=B.now(),i._isAdPlaying=!1,i._callbackUpdatePlaybackTime=null})}return Z(e,[{key:"_startPlaybackTimeTracking",value:function(){null===this._callbackUpdatePlaybackTime&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this._lastTime=B.now(),this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time||0,t=B.now(),i=t-this._lastTime,a=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition?a=e-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(a=i),a>0&&a<=1e3&&eo(this.pm.data,"view_content_playback_time",a),null!==this._callbackUpdatePlaybackTime&&i>0&&i<=1e3&&(this._isAdPlaying&&eo(this.pm.data,"ad_playing_time_ms_cumulative",i),eo(this.pm.data,"view_playing_time_ms_cumulative",i)),this._playbackTimeTrackerLastPlayheadPosition=e,this._lastTime=t}}]),e}(),eD=function(){function e(t){z(this,e),X(this,"pm",void 0),this.pm=t;var i=this._updatePlayheadTime.bind(this);t.on("playbackheartbeat",i),t.on("playbackheartbeatend",i),t.on("timeupdate",i),t.on("destroy",function(){t.off("timeupdate",i)})}return Z(e,[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=void 0===this.pm.data.view_max_playhead_position?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,t){var i=this,a=function(){i.pm.currentFragmentPDT&&i.pm.currentFragmentStart&&(i.pm.data.player_program_time=i.pm.currentFragmentPDT+i.pm.data.player_playhead_time-i.pm.currentFragmentStart)};if(t&&t.player_playhead_time)this.pm.data.player_playhead_time=t.player_playhead_time,a(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var r=this.pm.getPlayheadTime();void 0!==r&&(this.pm.data.player_playhead_time=r,a(),this._updateMaxPlayheadPosition())}}}]),e}(),eO=function e(t){if(z(this,e),!t.disableRebufferTracking){var i,a=function(e,t){r(t),i=void 0},r=function(e){if(i){var a=e.viewer_time-i;eo(t.data,"view_rebuffer_duration",a),i=e.viewer_time,t.data.view_rebuffer_duration>3e5&&(t.emit("viewend"),t.send("viewend"),t.mux.log.warn("Ending view after rebuffering for longer than ".concat(3e5,"ms, future events will be ignored unless a programchange or videochange occurs.")))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",function(e,t){return r(t)}),t.on("rebufferstart",function(e,r){i||(eo(t.data,"view_rebuffer_count",1),i=r.viewer_time,t.one("rebufferend",a))}),t.on("viewinit",function(){i=void 0,t.off("rebufferend",a)})}},ex=function(){function e(t){var i=this;z(this,e),X(this,"_lastCheckedTime",void 0),X(this,"_lastPlayheadTime",void 0),X(this,"_lastPlayheadTimeUpdatedTime",void 0),X(this,"_rebuffering",void 0),X(this,"pm",void 0),this.pm=t,t.disableRebufferTracking||t.disablePlayheadRebufferTracking||(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",function(){i._cleanupRebufferTracker(null,{viewer_time:B.now()})}))}return Z(e,[{key:"_checkIfRebuffering",value:function(e,t){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing){this._cleanupRebufferTracker(e,t);return}if(null===this._lastCheckedTime){this._prepareRebufferTrackerState(t.viewer_time);return}if(this._lastPlayheadTime!==this.pm.data.player_playhead_time){this._cleanupRebufferTracker(e,t,!0);return}var i=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.sustainedRebufferThreshold&&i>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=t.viewer_time}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:t.viewer_time});else{if(null===this._lastCheckedTime)return;var a=this.pm.data.player_playhead_time-this._lastPlayheadTime,r=t.viewer_time-this._lastPlayheadTimeUpdatedTime;"number"==typeof this.pm.minimumRebufferDuration&&a>0&&r-a>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+r-a}))}i?this._prepareRebufferTrackerState(t.viewer_time):this._clearRebufferTrackerState()}}]),e}(),eM=function(){function e(t){var i=this;z(this,e),X(this,"pm",void 0),this.pm=t,t.on("viewinit",function(){var e=t.data,a=e.view_id;if(!e.view_program_changed){var r=function(e,r){var n=r.viewer_time;"playing"===e.type&&void 0===t.data.view_time_to_first_frame?i.calculateTimeToFirstFrame(n||B.now(),a):"adplaying"===e.type&&(void 0===t.data.view_time_to_first_frame||i._inPrerollPosition())&&i.calculateTimeToFirstFrame(n||B.now(),a)};t.one("playing",r),t.one("adplaying",r),t.one("viewend",function(){t.off("playing",r),t.off("adplaying",r)})}})}return Z(e,[{key:"_inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,t){t===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.pm.pageLoadInitTime&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.pm.pageLoadInitTime))}}]),e}(),eN=function e(t){var i=this;z(this,e),X(this,"_lastPlayerHeight",void 0),X(this,"_lastPlayerWidth",void 0),X(this,"_lastPlayheadPosition",void 0),X(this,"_lastSourceHeight",void 0),X(this,"_lastSourceWidth",void 0),t.on("viewinit",function(){i._lastPlayheadPosition=-1}),["pause","rebufferstart","seeking","error","adbreakstart","hb","renditionchange","orientationchange","viewend","playbackmodechange"].forEach(function(e){t.on(e,function(){if(i._lastPlayheadPosition>=0&&t.data.player_playhead_time>=0&&i._lastPlayerWidth>=0&&i._lastSourceWidth>0&&i._lastPlayerHeight>=0&&i._lastSourceHeight>0){var e=t.data.player_playhead_time-i._lastPlayheadPosition;if(e<0){i._lastPlayheadPosition=-1;return}var a=Math.min(i._lastPlayerWidth/i._lastSourceWidth,i._lastPlayerHeight/i._lastSourceHeight),r=Math.max(0,a-1),n=Math.max(0,1-a);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,r),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,n),eo(t.data,"view_total_content_playback_time",e),eo(t.data,"view_total_upscaling",r*e),eo(t.data,"view_total_downscaling",n*e)}i._lastPlayheadPosition=-1})}),["playing","hb","renditionchange","orientationchange","playbackmodechange"].forEach(function(e){t.on(e,function(){i._lastPlayheadPosition=t.data.player_playhead_time,i._lastPlayerWidth=t.data.player_width,i._lastPlayerHeight=t.data.player_height,i._lastSourceWidth=t.data.video_source_width,i._lastSourceHeight=t.data.video_source_height})})},eP=function e(t){var i=this;z(this,e),X(this,"isSeeking",void 0),this.isSeeking=!1;var a=-1,r=function(){var e=B.now(),r=(t.data.viewer_time||e)-(a||e);eo(t.data,"view_seek_duration",r),t.data.view_max_seek_time=Math.max(t.data.view_max_seek_time||0,r),i.isSeeking=!1,a=-1};t.on("seeking",function(e,n){if(Object.assign(t.data,n),i.isSeeking&&n.viewer_time-a<=2e3){a=n.viewer_time;return}i.isSeeking&&r(),i.isSeeking=!0,a=n.viewer_time,eo(t.data,"view_seek_count",1),t.send("seeking")}),t.on("seeked",function(){r()}),t.on("viewend",function(){i.isSeeking&&(r(),t.send("seeked")),i.isSeeking=!1,a=-1})},eU=function(e,t){e.push(t),e.sort(function(e,t){return e.viewer_time-t.viewer_time})},eB=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],e$=function(){function e(t){var i=this;z(this,e),X(this,"_adHasPlayed",void 0),X(this,"_adRequests",void 0),X(this,"_adResponses",void 0),X(this,"_currentAdRequestNumber",void 0),X(this,"_currentAdResponseNumber",void 0),X(this,"_prerollPlayTime",void 0),X(this,"_wouldBeNewAdPlay",void 0),X(this,"isAdBreak",void 0),X(this,"pm",void 0),this.pm=t,t.on("viewinit",function(){i.isAdBreak=!1,i._currentAdRequestNumber=0,i._currentAdResponseNumber=0,i._adRequests=[],i._adResponses=[],i._adHasPlayed=!1,i._wouldBeNewAdPlay=!0,i._prerollPlayTime=void 0}),eB.forEach(function(e){return t.on(e,i._updateAdData.bind(i))});var a=function(){i.isAdBreak=!1};t.on("adbreakstart",function(){i.isAdBreak=!0}),t.on("play",a),t.on("playing",a),t.on("viewend",a),t.on("adrequest",function(e,a){a=Object.assign({ad_request_id:"generatedAdRequestId"+i._currentAdRequestNumber++},a),eU(i._adRequests,a),eo(t.data,"view_ad_request_count"),i.inPrerollPosition()&&(t.data.view_preroll_requested=!0,i._adHasPlayed||eo(t.data,"view_preroll_request_count"))}),t.on("adresponse",function(e,a){a=Object.assign({ad_request_id:"generatedAdRequestId"+i._currentAdResponseNumber++},a),eU(i._adResponses,a);var r=i.findAdRequest(a.ad_request_id);r&&eo(t.data,"view_ad_request_time",Math.max(0,a.viewer_time-r.viewer_time))}),t.on("adplay",fu
3339nction(e,a){i._adHasPlayed=!0,i._wouldBeNewAdPlay&&(i._wouldBeNewAdPlay=!1,eo(t.data,"view_ad_played_count")),i.inPrerollPosition()&&!t.data.view_preroll_played&&(t.data.view_preroll_played=!0,i._adRequests.length>0&&(t.data.view_preroll_request_time=Math.max(0,a.viewer_time-i._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,a.viewer_time-t.data.view_start)),i._prerollPlayTime=a.viewer_time)}),t.on("adplaying",function(e,a){i.inPrerollPosition()&&void 0===t.data.view_preroll_load_time&&void 0!==i._prerollPlayTime&&(t.data.view_preroll_load_time=a.viewer_time-i._prerollPlayTime,t.data.view_startup_preroll_load_time=a.viewer_time-i._prerollPlayTime)}),t.on("adclicked",function(e,a){i._wouldBeNewAdPlay||eo(t.data,"view_ad_clicked_count")}),t.on("adskipped",function(e,a){i._wouldBeNewAdPlay||eo(t.data,"view_ad_skipped_count")}),t.on("adended",function(){i._wouldBeNewAdPlay=!0}),t.on("aderror",function(){i._wouldBeNewAdPlay=!0})}return Z(e,[{key:"inPrerollPosition",value:function(){return void 0===this.pm.data.view_content_playback_time||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var t=0;t<this._adRequests.length;t++)if(this._adRequests[t].ad_request_id===e)return this._adRequests[t]}},{key:"_updateAdData",value:function(e,t){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&t.ad_tag_url){var i=M(ea(t.ad_tag_url),2),a=i[0],r=i[1];this.pm.data.view_preroll_ad_tag_domain=r,this.pm.data.view_preroll_ad_tag_hostname=a}if(!this.pm.data.view_preroll_ad_asset_hostname&&t.ad_asset_url){var n=M(ea(t.ad_asset_url),2),o=n[0],s=n[1];this.pm.data.view_preroll_ad_asset_domain=s,this.pm.data.view_preroll_ad_asset_hostname=o}this.pm.data.ad_type="preroll"}this.pm.data.ad_asset_url=null==t?void 0:t.ad_asset_url,this.pm.data.ad_tag_url=null==t?void 0:t.ad_tag_url,this.pm.data.ad_creative_id=null==t?void 0:t.ad_creative_id,this.pm.data.ad_id=null==t?void 0:t.ad_id,this.pm.data.ad_universal_id=null==t?void 0:t.ad_universal_id,null!=t&&t.ad_type&&(this.pm.data.ad_type=null==t?void 0:t.ad_type)}}]),e}(),eH=function e(t){var i=this;z(this,e),X(this,"lastWallClockTime",void 0);var a=function(){i.lastWallClockTime=B.now(),t.on("before*",r)},r=function(e){var a=B.now(),r=i.lastWallClockTime;i.lastWallClockTime=a,a-r>3e4&&(t.emit("devicesleep",{viewer_time:r}),Object.assign(t.data,{viewer_time:r}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:a}),Object.assign(t.data,{viewer_time:a}),t.send("devicewake"))};t.one("playbackheartbeat",a),t.on("playbackheartbeatend",function(){t.off("before*",r),t.one("playbackheartbeat",a)})},ej=h(m()),eW=(tv=function(){for(var e=0,t={};e<arguments.length;e++){var i=arguments[e];for(var a in i)t[a]=i[a]}return t},function e(t){function i(e,a,r){var n;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=tv({path:"/"},i.defaults,r)).expires){var o=new Date;o.setMilliseconds(o.getMilliseconds()+864e5*r.expires),r.expires=o}try{n=JSON.stringify(a),/^[\{\[]/.test(n)&&(a=n)}catch(e){}return a=t.write?t.write(a,e):encodeURIComponent(String(a)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",a,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}e||(n={});for(var s=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,d=0;d<s.length;d++){var u=s[d].split("="),c=u.slice(1).join("=");'"'===c.charAt(0)&&(c=c.slice(1,-1));try{var h=u[0].replace(l,decodeURIComponent);if(c=t.read?t.read(c,h):t(c,h)||c.replace(l,decodeURIComponent),this.json)try{c=JSON.parse(c)}catch(e){}if(e===h){n=c;break}e||(n[h]=c)}catch(e){}}return n}}return i.set=i,i.get=function(e){return i.call(i,e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(e,t){i(e,"",tv(t,{expires:-1}))},i.withConverter=e,i}(function(){})),eq="muxData",eK=function(){var e;try{e=(eW.get(eq)||"").split("&").reduce(function(e,t){var i=M(t.split("="),2),a=i[0],r=i[1],n=+r;return e[a]=r&&n==r?n:r,e},{})}catch(t){e={}}return e},eF=function(e){try{eW.set(eq,Object.entries(e).map(function(e){var t=M(e,2),i=t[0],a=t[1];return"".concat(i,"=").concat(a)}).join("&"),{expires:365})}catch(e){}},eV=function(){var e=eK();return e.mux_viewer_id=e.mux_viewer_id||$(),e.msn=e.msn||Math.random(),eF(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},eY=function(){var e=eK(),t=B.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=$(),e.sst=t),e.sex=t+15e5,eF(e),{session_id:e.sid,session_start:e.sst,session_expires:e.sex}},eG=h(m()),ez=function(){var e;switch(eQ()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},eQ=function(){var e=eG.default.navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};ez.getConnectionFromAPI=eQ;var eZ=eJ({a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"}),eX=eJ({ad:"ad",af:"affiliate",ag:"aggregate",ap:"api",al:"application",ao:"audio",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",bn:"brand",br:"break",bw:"browser",by:"bytes",bz:"business",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ci:"client",ck:"clicked",cl:"canceled",cm:"cmcd",cn:"config",co:"count",ce:"counter",cp:"complete",cq:"creator",cr:"creative",cs:"captions",ct:"content",cu:"current",cv:"cumulative",cx:"c
3339onnection",cz:"context",da:"data",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",dy:"dynamic",eb:"enabled",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",ep:"experiments",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ez:"exception",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mp:"mode",ms:"ms",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",or:"origin",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pp:"pip",pr:"preload",ps:"position",pt:"part",pv:"previous",py:"property",px:"pop",pz:"plan",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rg:"range",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sh:"shift",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",ss:"status",st:"start",su:"startup",sv:"server",sw:"software",sy:"severity",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"});function eJ(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[e[i]]=i);return t}function e0(e){var t={},i={};return Object.keys(e).forEach(function(a){var r=!1;if(e.hasOwnProperty(a)&&void 0!==e[a]){var n=a.split("_"),o=n[0],s=eZ[o];s||(F.info("Data key word `"+n[0]+"` not expected in "+a),s=o+"_"),n.splice(1).forEach(function(e){"url"===e&&(r=!0),eX[e]?s+=eX[e]:Number.isInteger(Number(e))?s+=e:(F.info("Data key word `"+e+"` not expected in "+a),s+="_"+e+"_")}),r?i[s]=e[a]:t[s]=e[a]}}),Object.assign(t,i)}var e1=h(m()),e2=h(D()),e3={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},e4=["hb","requestcompleted","requestfailed","requestcanceled"],e5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._beaconUrl=e||"https://img.litix.io",this._eventQueue=[],this._postInFlight=!1,this._resendAfterPost=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},e3,t)};e5.prototype.queueEvent=function(e,t){var i=Object.assign({},t);return(this._eventQueue.length<=this._options.maxQueueLength||"eventrateexceeded"===e)&&(this._eventQueue.push(i),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength)},e5.prototype.flushEvents=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&1===this._eventQueue.length){this._eventQueue.pop();return}this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending()},e5.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),e1.default.clearTimeout(this._sendTimeout)},e5.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],e0({mux_view_message:"event queue truncated"}));var i=this._createPayload(t);e8(this._beaconUrl,i,!0,function(){})},e5.prototype._sendBeaconQueue=function(){var e=this;if(this._postInFlight){this._resendAfterPost=!0;return}var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var i=this._createPayload(t),a=B.now();e8(this._beaconUrl,i,!1,function(i,r){r?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,F.info("Error sending beacon: "+r)):e._failureCount=0,e._roundTripTime=B.now()-a,e._postInFlight=!1,e._resendAfterPost&&(e._resendAfterPost=!1,e._eventQueue.length>0&&e._sendBeaconQueue())})},e5.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return(1+(e*=Math.random()))*this._options.baseTimeBetweenBeacons},e5.prototype._startBeaconSending=function(){var e=this;e1.default.clearTimeout(this._sendTimeout),this.destroyed||(this._sendTimeout=e1.default.setTimeout(function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()},this._getNextBeaconTime()))},e5.prototype._createPayload=function(e){var t=this,i={transmission_timestamp:Math.round(B.now())};this._roundTripTime&&(i.rtt_ms=Math.round(this._roundTripTime));var a,r,n,o=function(){n=(a=JSON.stringify({metadata:i,events:r||e})).length/1024},s=function(){return n<=t._options.maxPayloadKBSize};return o(),s()||(F.info("Payload size is too big ("+n+" kb). Removing unnecessary events."),r=e.filter(function(e){return -1===e4.indexOf(e.e)}),o()),s()||(F.info("Payload size still too big ("+n+" kb). Cropping fields.."),r.forEach(function(e){for(var t in e){var i=e[t];"string"==typeof i&&i.length>51200&&(e[t]=i.substring(0,51200))}}),o()),a};var e9="function"==typeof e2.default.exitPictureInPicture?function(e){return e.length<=57344}:function(e){return!1},e8=function(e,t,i,a){if(i&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t)){a();return}if(e1.default.fetch){e1.default.fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:e9(t)}).then(function(e){return a(null,e.ok?null:"Error")}).catch(function(e){return a(null,e)});return}if(e1.default.XMLHttpRequest){var r=new e1.default.XMLHttpRequest;r.onreadystatechange=function(){if(4===r.readyState)return a(null,200!==r.status?"error":void 0)},r.open("POST",e),r.setRequestHeader("Content-Type","text/plain"),r.send(t);return}a()},e6=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id","player_error_code","player_error_message","player_error_context","player_error_severity","player_error_business_exception","view_playing_time_ms_cumulative","ad_playing_time_ms_cumulative"],e7=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],te=["ad_id","ad_creative_id","ad_universal_id"],tt=["viewstart","error","ended","viewend"],ti=function(){function e(t,i){var a,r,n,o,s,l,d,u,c,h,m,v,f,b,E,y,g,_,T,k=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};z(this,e),X(this,"mux",void 0),X(this,"envKey",void 0),X(this,"options",void 0),X(this,"eventQueue",void 0),X(this,"sampleRate",void 0),X(this,"disableCookies",void 0),X(this,"respectDoNotTrack",void 0),X(this,"previousBeaconData",void 0),X(this,"lastEventTime",void 0),X(this,"rateLimited",void 0),X(this,"pageLevelData",void 0),X(this,"viewerData",void 0),this.mux=t,this.envKey=i,this.options=k,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.eventQueue=new e5((a=this.envKey,n=(r=this.options).beaconCollectionDomain,o=r.beaconDomain,n?"https://"+n:(a=a||"inferred").match(/^[a-z0-9]+$/)?"https://"+a+"."+(o||"litix.io"):"https://img.litix.io/a.gif")),this.sampleRate=null!==(g=this.options.sampleRate)&&void 0!==g?g:1,this.disableCookies=null!==(_=this.options.disableCookies)&&void 0!==_&&_,this.respectDoNotTrack=null!==(T=this.options.respectDoNotTrack)&&void 0!==T&&T,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:null===(s=this.options.platform)||void 0===s?void 0:s.name,viewer_application_version:null===(l=this.options.platform)||void 0===l?void 0:l.version,viewer_application_engine:null===(d=this.options.platform)||void 0===d?void 0:d.layout,viewer_device_name:null===(u=this.options.platform)||void 0===u?void 0:u.product,viewer_device_category:"",viewer_device_manufacturer:null===(c=this.options.platform)||void 0===c?void 0:c.manufacturer,viewer_os_family:null===(m=this.options.platform)||void 0===m||null===(h=m.os)||void 0===h?void 0:h.family,viewer_os_architecture:null===(f=this.options.platform)||void 0===f||null===(v=f.os)||void 0===v?void 0:v.architecture,viewer_os_version:null===(E=this.options.platform)||void 0===E||null===(b=E.os)||void 0===b?void 0:b.version,viewer_connection_type:ez(),page_url:null===ej.default||void 0===ej.default||null===(y=ej.default.location)||void 0===y?void 0:y.href},this.viewerData=this.disableCookies?{}:eV()}return Z(e,[{key:"send",value:function(e,t){if(!(!e||!(null!=t&&t.view_id))){if(this.respectDoNotTrack&&Y())return F.info("Not sending `"+e+"` because Do Not Track is enabled");if(!t||"object"!=typeof t)return F.error("A data object was expected in send() but was not provided");var i=this.disableCookies?{}:eY(),a=el(es({},this.pageLevelData,t,i,this.viewerData),{event:e,env_key:this.envKey});
3339a.user_id&&(a.viewer_user_id=a.user_id,delete a.user_id);var r,n=(null!==(r=a.mux_sample_number)&&void 0!==r?r:0)>=this.sampleRate,o=e0(this._deduplicateBeaconData(e,a));if(this.lastEventTime=this.mux.utils.now(),n)return F.info("Not sending event due to sample rate restriction",e,a,o);if(this.envKey||F.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,a,o),!this.rateLimited){if(F.info("Sending event",e,a,o),this.rateLimited=!this.eventQueue.queueEvent(e,o),this.mux.WINDOW_UNLOADING&&"viewend"===e)this.eventQueue.destroy(!0);else{if(this.mux.WINDOW_HIDDEN&&"hb"===e)this.eventQueue.flushEvents(!0);else if(tt.indexOf(e)>=0){if("error"===e&&"warning"===t.player_error_severity)return;this.eventQueue.flushEvents()}if(this.rateLimited)return a.event="eventrateexceeded",o=e0(a),this.eventQueue.queueEvent(a.event,o),F.error("Beaconing disabled due to rate limit.")}}}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,t){var i=this,a={},r=t.view_id;if("-1"===r||"viewstart"===e||"viewend"===e||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=6e5)a=es({},t),r&&(this.previousBeaconData=a),r&&"viewend"===e&&(this.previousBeaconData=null);else{var n=0===e.indexOf("request");Object.entries(t).forEach(function(t){var r=M(t,2),o=r[0],s=r[1];i.previousBeaconData&&(s!==i.previousBeaconData[o]||e6.indexOf(o)>-1||i.objectHasChanged(n,o,s,i.previousBeaconData[o])||i.eventRequiresKey(e,o))&&(a[o]=s,i.previousBeaconData[o]=s)})}return a}},{key:"objectHasChanged",value:function(e,t,i,a){return!!e&&0===t.indexOf("request_")&&("request_response_headers"===t||"object"!=typeof i||"object"!=typeof a||Object.keys(i||{}).length!==Object.keys(a||{}).length)}},{key:"eventRequiresKey",value:function(e,t){return!!("renditionchange"===e&&0===t.indexOf("video_source_")||te.includes(t)&&e7.includes(e)||"playbackmodechange"===e&&0===t.indexOf("player_playback_mode"))}}]),e}(),ta=function e(t){z(this,e);var i=0,a=0,r=0,n=0,o=0,s=0,l=0;t.on("requestcompleted",function(e,s){var l,d,u=s.request_start,c=s.request_response_start,h=s.request_response_end,m=s.request_bytes_loaded;if(n++,c?(l=c-(null!=u?u:0),d=(null!=h?h:0)-c):d=(null!=h?h:0)-(null!=u?u:0),d>0&&m&&m>0){var v=m/d*8e3;o++,a+=m,r+=d,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,v),t.data.view_average_request_throughput=a/r*8e3,t.data.view_request_count=n,l>0&&(i+=l,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,l),t.data.view_average_request_latency=i/o)}}),t.on("requestfailed",function(e,i){n++,s++,t.data.view_request_count=n,t.data.view_request_failed_count=s}),t.on("requestcanceled",function(e,i){n++,l++,t.data.view_request_count=n,t.data.view_request_canceled_count=l})},tr=function e(t){var i=this;z(this,e),X(this,"_lastEventTime",void 0),t.on("before*",function(e,a){var r=a.viewer_time,n=B.now(),o=i._lastEventTime;if(i._lastEventTime=n,o&&n-o>36e5){var s=Object.keys(t.data).reduce(function(e,i){return 0===i.indexOf("video_")?Object.assign(e,X({},i,t.data[i])):e},{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view");var l=t.playbackHeartbeat._playheadShouldBeProgressing;t._resetView(Object.assign({viewer_time:r},s)),t.playbackHeartbeat._playheadShouldBeProgressing=l,t.playbackHeartbeat._playheadShouldBeProgressing&&"play"!==e.type&&"adbreakstart"!==e.type&&(t.emit("play",{viewer_time:r}),"playing"!==e.type&&t.emit("playing",{viewer_time:r}))}})};function tn(e,t){return(null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase())}var to=function e(t){z(this,e);var i=function(e){var i,a=null!=e&&e.request_type&&("media"===e.request_type||"video"===e.request_type)&&!(null===(i=e.request_response_headers)||void 0===i)&&i["x-cdn"]?e.request_response_headers["x-cdn"]:null!=e&&e.video_cdn?e.video_cdn:null,r=null!=e&&e.request_start?e.request_start:null!=e&&e.viewer_time?e.viewer_time:Date.now();null!=a&&!tn(a,n)&&o<=r&&(n=a,o=r,t.emit("cdnchange",{video_cdn:a}))},a=null,r=null,n=null,o=0;t.on("viewinit",function(){a=null,r=null,n=null,o=0}),t.on("beforecdnchange",function(e,t){var i=null==t?void 0:t.video_cdn;i&&(void 0===t.video_previous_cdn||null===t.video_previous_cdn)&&(tn(i,r)?t.video_previous_cdn=null!=a?a:void 0:(t.video_previous_cdn=null!=r?r:void 0,a=r,r=i))}),t.on("requestcompleted",function(e,t){i(t)})},ts=function(e){try{return JSON.parse(e),!0}catch(e){return!1}},tl=function e(t){var i=this;z(this,e),X(this,"_emittingAutomaticEvent",!1),X(this,"_hasInitialized",!1),X(this,"_currentMode","standard"),t.on("viewstart",function(){i._hasInitialized||(i._hasInitialized=!0,i._currentMode=t.data.player_playback_mode||"standard",i._emittingAutomaticEvent=!0,t.emit("playbackmodechange",{player_playback_mode:i._currentMode,player_playback_mode_data:"{}"}),i._emittingAutomaticEvent=!1)}),t.on("viewend",function(){i._hasInitialized=!1}),t.on("playbackmodechange",function(e,a){i._emittingAutomaticEvent||(a.player_playback_mode_data?ts(a.player_playback_mode_data)||(t.mux.log.warn("Invalid JSON string for player_playback_mode_data"),a.player_playback_mode_data="{}"):a.player_playback_mode_data="{}",t.data.player_playback_mode_data=a.player_playback_mode_data,t.data.player_playback_mode=a.player_playback_mode,i._currentMode=a.player_playback_mode)})},td=function(){function e(t){z(this,e),X(this,"pm",void 0),X(this,"_currentRangeStart",void 0),X(this,"_lastPlayheadTime",void 0),this.pm=t,this._currentRangeStart=null,this._lastPlayheadTime=null,t.on("playbackheartbeat",this._updatePlaybackRange.bind(this)),t.on("playbackheartbeatend",this._endPlaybackRange.bind(this))}return Z(e,[{key:"_updateLastRangeEnd",value:function(){var e=this.pm.data.video_playback_ranges;if(e&&e.length>0){var t=this.pm.data.player_playhead_time||0;e[e.length-1][1]=t}}},{key:"_updatePlaybackRange",value:function(){var e,t=this.pm.data.player_playhead_time||0;if(!(!this.pm.disableAdPlaybackRangeFiltering&&!(null===(e=this.pm.adTracker)||void 0===e)&&e.isAdBreak&&null!==this._lastPlayheadTime&&t<this._lastPlayheadTime)){if(null!==this._lastPlayheadTime&&null!==this._currentRangeStart&&Math.abs(t-this._lastPlayheadTime)>1e3){var i=this.pm.data.video_playback_ranges;i&&i.length>0&&(i[i.length-1][1]=this._lastPlayheadTime),this._currentRangeStart=null}if(null===this._currentRangeStart){var a=this.pm.data.video_playback_ranges||[];a.length>0&&a[a.length-1][1]===t?this._currentRangeStart=a[a.length-1][0]:(this._currentRangeStart=t,a.push([t,t])),this.pm.data.video_playback_ranges=a}else this._updateLastRangeEnd();this._lastPlayheadTime=t}}},{key:"_endPlaybackRange",value:function(){null!==this._currentRangeStart&&(this._updateLastRangeEnd(),this._currentRangeStart=null,this._lastPlayheadTime=null)}}]),e}(),tu=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange","cdnchange","playbackmodechange"],tc=new Set(["requestcompleted","requestfailed","requestcanceled"]),th=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}(a,e);var t,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=J(a);return e=t?Reflect.construct(i,arguments,J(this).constructor):i.apply(this,arguments),e&&("object"===b(e)||"function"==typeof e)?e:G(this)});function a(e,t,r){z(this,a),X(G(n=i.call(this)),"pageLoadEndTime",void 0),X(G(n),"pageLoadInitTime",void 0),X(G(n),"_destroyed",void 0),X(G(n),"_heartBeatTimeout",void 0),X(G(n),"adTracker",void 0),X(G(n),"dashjs",void 0),X(G(n),"data",void 0),X(G(n),"disablePlayheadRebufferTracking",void 0),X(G(n),"disableRebufferTracking",void 0),X(G(n),"disableAdPlaybackRangeFiltering",void 0),X(G(n),"errorTracker",void 0),X(G(n),"errorTranslator",void 0),X(G(n),"emitTranslator",void 0),X(G(n),"getAdData",void 0),X(G(n),"getPlayheadTime",void 0),X(G(n),"getStateData",void 0),X(G(n),"stateDataTranslator",void 0),X(G(n),"hlsjs",void 0),X(G(n),"id",void 0),X(G(n),"longResumeTracker",void 0),X(G(n),"minimumRebufferDuration",void 0),X(G(n),"mux",void 0),X(G(n),"playbackEventDispatcher",void 0),X(G(n),"playbackHeartbeat",void 0),X(G(n),"playbackHeartbeatTime",void 0),X(G(n),"playheadTime",void 0),X(G(n),"seekingTracker",void 0),X(G(n),"sustainedRebufferThreshold",void 0),X(G(n),"watchTimeTracker",void 0),X(G(n),"currentFragmentPDT",void 0),X(G(n),"currentFragmentStart",void 0),n.pageLoadInitTime=en.navigationStart(),n.pageLoadEndTime=en.domContentLoadedEventEnd(),n.mux=e,n.id=t,null!=r&&r.beaconDomain&&n.mux.log.warn("The `beaconDomain` setting has been deprecated 
3339in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),(r=Object.assign({debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,disableAdPlaybackRangeFiltering:!1,errorTranslator:function(e){return e},emitTranslator:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t},stateDataTranslator:function(e){return e}},r)).data=r.data||{},r.data.property_key&&(r.data.env_key=r.data.property_key,delete r.data.property_key),F.level=r.debug?K.DEBUG:K.WARN,n.getPlayheadTime=r.getPlayheadTime,n.getStateData=r.getStateData||function(){return{}},n.getAdData=r.getAdData||function(){},n.minimumRebufferDuration=r.minimumRebufferDuration,n.sustainedRebufferThreshold=r.sustainedRebufferThreshold,n.playbackHeartbeatTime=r.playbackHeartbeatTime,n.disableRebufferTracking=r.disableRebufferTracking,n.disableRebufferTracking&&n.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),n.disablePlayheadRebufferTracking=r.disablePlayheadRebufferTracking,n.disableAdPlaybackRangeFiltering=r.disableAdPlaybackRangeFiltering,n.errorTranslator=r.errorTranslator,n.emitTranslator=r.emitTranslator,n.stateDataTranslator=r.stateDataTranslator,n.playbackEventDispatcher=new ti(e,r.data.env_key,r),n.data={player_instance_id:$(),mux_sample_rate:r.sampleRate,beacon_domain:r.beaconCollectionDomain||r.beaconDomain},n.data.view_sequence_number=1,n.data.player_sequence_number=1;var n,o=(function(){void 0===this.data.view_start&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"),this.emit("renditionchange"))}).bind(G(n));if(n.on("viewinit",function(e,t){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,t),this._initializeViewData(),this.one("play",o),this.one("adbreakstart",o)}),n.on("videochange",function(e,t){this._resetView(t)}),n.on("programchange",function(e,t){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),this._resetView(Object.assign(t,{view_program_changed:!0})),o(),this.emit("play"),this.emit("playing")}),n.on("fragmentchange",function(e,t){this.currentFragmentPDT=t.currentFragmentPDT,this.currentFragmentStart=t.currentFragmentStart}),n.on("destroy",n.destroy),"undefined"!=typeof window&&"function"==typeof window.addEventListener&&"function"==typeof window.removeEventListener){var s=function(){var e=void 0!==n.data.view_start;n.mux.WINDOW_HIDDEN="hidden"===document.visibilityState,e&&n.mux.WINDOW_HIDDEN&&(n.data.player_is_paused||n.emit("hb"))};window.addEventListener("visibilitychange",s,!1);var l=function(e){e.persisted||n.destroy()};window.addEventListener("pagehide",l,!1),n.on("destroy",function(){window.removeEventListener("visibilitychange",s),window.removeEventListener("pagehide",l)})}return n.on("playerready",function(e,t){Object.assign(this.data,t)}),tu.forEach(function(e){n.on(e,function(t,i){0!==e.indexOf("ad")&&this._updateStateData(),Object.assign(this.data,i),this._sanitizeData()}),n.on("after"+e,function(){("error"!==e||this.errorTracker.viewErrored)&&this.send(e)})}),n.on("viewend",function(e,t){Object.assign(n.data,t)}),n.one("playerready",function(e){var t=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=t-this.data.player_init_time),this.pageLoadInitTime=this.data.page_load_init_time||this.pageLoadInitTime,this.pageLoadEndTime=this.data.page_load_end_time||this.pageLoadEndTime,!this.mux.PLAYER_TRACKED&&this.pageLoadInitTime&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.pageLoadEndTime)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.pageLoadEndTime||1/0)-this.pageLoadInitTime)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time}),n.longResumeTracker=new tr(G(n)),n.errorTracker=new eL(G(n)),new eH(G(n)),n.seekingTracker=new eP(G(n)),n.playheadTime=new eD(G(n)),n.playbackHeartbeat=new eI(G(n)),new eN(G(n)),n.watchTimeTracker=new eR(G(n)),new eC(G(n)),new td(G(n)),n.adTracker=new e$(G(n)),new ex(G(n)),new eO(G(n)),new eM(G(n)),new ta(G(n)),new to(G(n)),new tl(G(n)),r.hlsjs&&n.addHLSJS(r),r.dashjs&&n.addDashJS(r),n.emit("viewinit",r.data),n}return Z(a,[{key:"emit",value:function(e,t){var i,r=Object.assign({viewer_time:this.mux.utils.now()},t),n=[e,r];if(this.emitTranslator)try{n=this.emitTranslator(e,r)}catch(e){this.mux.log.warn("Exception in emit translator callback.",e)}null!=n&&n.length&&(i=ee(J(a.prototype),"emit",this)).call.apply(i,[this].concat(q(n)))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,void 0!==this.data.view_start&&(this.emit
3339("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(e){if(this.data.view_id){var t=Object.assign({},this.data);if(void 0===t.video_source_is_live&&(t.player_source_duration===1/0||t.video_source_duration===1/0?t.video_source_is_live=!0:(t.player_source_duration>0||t.video_source_duration>0)&&(t.video_source_is_live=!1)),t.video_source_is_live||["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"].forEach(function(e){t[e]=void 0}),t.video_source_url=t.video_source_url||t.player_source_url,t.video_source_url){var i=M(ea(t.video_source_url),2),a=i[0],r=i[1];t.video_source_domain=r,t.video_source_hostname=a}delete t.ad_request_id,t.video_playback_ranges&&(t.video_playback_range=JSON.stringify(t.video_playback_ranges.filter(function(e){return e[0]!==e[1]}).map(function(e){return"".concat(e[0],":").concat(e[1])})),delete t.video_playback_ranges),this.playbackEventDispatcher.send(e,t),this.data.view_sequence_number++,this.data.player_sequence_number++,tc.has(e)||this._restartHeartBeat(),"viewend"===e&&delete this.data.view_id}}},{key:"_resetView",value:function(e){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",e)}},{key:"_updateStateData",value:function(){var e,t=this.getStateData();if("function"==typeof this.stateDataTranslator)try{t=this.stateDataTranslator(t)}catch(e){this.mux.log.warn("Exception in stateDataTranslator translator callback.",e)}!(null===(e=this.data)||void 0===e)&&e.video_cdn&&null!=t&&t.video_cdn&&(t.video_cdn,t=function(e,t){if(null==e)return{};var i,a,r=function(e,t){if(null==e)return{};var i,a,r={},n=Object.keys(e);for(a=0;a<n.length;a++)i=n[a],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}(t,["video_cdn"])),Object.assign(this.data,t),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var e=this;["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"].forEach(function(t){var i=parseInt(e.data[t],10);e.data[t]=isNaN(i)?void 0:i}),["player_source_url","video_source_url"].forEach(function(t){if(e.data[t]){var i=e.data[t].toLowerCase();(0===i.indexOf("data:")||0===i.indexOf("blob:"))&&(e.data[t]="MSE style URL")}})}},{key:"_resetVideoData",value:function(){var e=this;Object.keys(this.data).forEach(function(t){0===t.indexOf("video_")&&delete e.data[t]})}},{key:"_resetViewData",value:function(){var e=this;Object.keys(this.data).forEach(function(t){0===t.indexOf("view_")&&delete e.data[t]}),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(){delete this.data.player_error_code,delete this.data.player_error_message,delete this.data.player_error_context,delete this.data.player_error_severity,delete this.data.player_error_business_exception}},{key:"_initializeViewData",value:function(){var e=this,t=this.data.view_id=$(),i=function(){t===e.data.view_id&&eo(e.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",i):i()}},{key:"_restartHeartBeat",value:function(){var e=this;window.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=window.setTimeout(function(){e.data.player_is_paused||e.emit("hb")},1e4)}},{key:"addHLSJS",value:function(e){if(!e.hlsjs){this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.");return}if(this.hlsjs){this.mux.log.warn("An instance of HLS.js is already being monitored for this player.");return}this.hlsjs=e.hlsjs,ef(this.mux,this.id,e.hlsjs,{},e.Hls||window.Hls)}},{key:"removeHLSJS",value:function(){this.hlsjs&&(eb(this.hlsjs),this.hlsjs=void 0)}},{key:"addDashJS",value:function(e){if(!e.dashjs){this.mux.log.warn("You must pass a valid dashjs instance in order to track it.");return}if(this.dashjs){this.mux.log.warn("An instance of Dash.js is already being monitored for this player.");return}this.dashjs=e.dashjs,eT(this.mux,this.id,e.dashjs)}},{key:"removeDashJS",value:function(){this.dashjs&&(ek(this.dashjs),this.dashjs=void 0)}}]),a}(ew),tp=h(D());function tm(){return tp.default&&!!(tp.default.fullscreenElement||tp.default.webkitFullscreenElement||tp.default.mozFullScreenElement||tp.default.msFullscreenElement)}var tv,tf,tb=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],tE={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"},ty=h(m());ty.default&&ty.default.WeakMap&&(tf=new WeakMap);var tg={TARGET_DURATION:"#EXT-X-TARGETDURATION",PART_INF:"#EXT-X-PART-INF",SERVER_CONTROL:"#EXT-X-SERVER-CONTROL",INF:"#EXTINF",PROGRAM_DATE_TIME:"#EXT-X-PROGRAM-DATE-TIME",VERSION:"#EXT-X-VERSION",SESSION_DATA:"#
3339EXT-X-SESSION-DATA"},t_=function(e){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(e),this.manifest};t_.prototype.process=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t_.prototype.processLine=function(e){var t=e.indexOf(":"),i=tL(e,t),a=i[0],r=2===i.length?tA(i[1]):void 0;if("#"!==a[0])this.currentUri.uri=a,this.manifest.segments.push(this.currentUri),!this.manifest.targetDuration||"duration"in this.currentUri||(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(a){case tg.TARGET_DURATION:if(!isFinite(r)||r<0)return;this.manifest.targetDuration=r,this.setHoldBack();break;case tg.PART_INF:tT(this.manifest,i),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break;case tg.SERVER_CONTROL:tT(this.manifest,i),this.setHoldBack();break;case tg.INF:0===r?this.currentUri.duration=.01:r>0&&(this.currentUri.duration=r);break;case tg.PROGRAM_DATE_TIME:var n=new Date(r);this.manifest.dateTimeString||(this.manifest.dateTimeString=r,this.manifest.dateTimeObject=n),this.currentUri.dateTimeString=r,this.currentUri.dateTimeObject=n;break;case tg.VERSION:tT(this.manifest,i);break;case tg.SESSION_DATA:var o=ep(tR(i[1]));Object.assign(this.manifest.sessionData,o)}},t_.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,i=e.targetDuration,a=e.partTargetDuration;if(t){var r="holdBack",n="partHoldBack",o=i&&3*i,s=a&&2*a;i&&!t.hasOwnProperty(r)&&(t[r]=o),o&&t[r]<o&&(t[r]=o),a&&!t.hasOwnProperty(n)&&(t[n]=3*a),a&&t[n]<s&&(t[n]=s)}};var tT=function(e,t){var i,a=tk(t[0].replace("#EXT-X-",""));tI(t[1])?(i={},i=Object.assign(tS(t[1]),i)):i=tA(t[1]),e[a]=i},tk=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},tA=function(e){if("yes"===e.toLowerCase()||"no"===e.toLowerCase())return"yes"===e.toLowerCase();var t=-1!==e.indexOf(":")?e:parseFloat(e);return isNaN(t)?e:t},tw=function(e){var t={},i=e.split("=");return i.length>1&&(t[tk(i[0])]=tA(i[1])),t},tS=function(e){for(var t=e.split(","),i={},a=0;t.length>a;a++)i=Object.assign(tw(t[a]),i);return i},tI=function(e){return e.indexOf("=")>-1},tL=function(e,t){return -1===t?[e]:[e.substring(0,t),e.substring(t+1)]},tR=function(e){var t={};if(e){var i=e.search(",");return[e.slice(0,i),e.slice(i+1)].forEach(function(e,i){for(var a=e.replace(/['"]+/g,"").split("="),r=0;r<a.length;r++)"DATA-ID"===a[r]&&(t["DATA-ID"]=a[1-r]),"VALUE"===a[r]&&(t.VALUE=a[1-r])}),{data:t}}},tC={safeCall:function(e,t,i,a){var r=a;if(e&&"function"==typeof e[t])try{r=e[t].apply(e,i)}catch(e){F.info("safeCall error",e)}return r},safeIncrement:eo,getComputedStyle:function(e,t){var i;return e&&t&&ty.default&&"function"==typeof ty.default.getComputedStyle?(tf&&tf.has(e)&&(i=tf.get(e)),i||(i=ty.default.getComputedStyle(e,null),tf&&tf.set(e,i)),i.getPropertyValue(t)):""},secondsToMs:function(e){return Math.floor(1e3*e)},assign:Object.assign,headersStringToObject:ec,cdnHeadersToRequestId:eh,extractHostnameAndDomain:ea,extractHostname:ei,manifestParser:t_,generateShortID:H,generateUUID:$,now:B.now,findMediaElement:W},tD={},tO=function(e){var t=arguments;"string"==typeof e?tO.hasOwnProperty(e)?N.default.setTimeout(function(){t=Array.prototype.splice.call(t,1),tO[e].apply(null,t)},0):F.warn("`"+e+"` is an unknown task"):"function"==typeof e?N.default.setTimeout(function(){e(tO)},0):F.warn("`"+e+"` is invalid.")},tx={loaded:B.now(),NAME:"mux-embed",VERSION:"5.17.10",API_VERSION:"2.1",PLAYER_TRACKED:!1,monitor:function(e,t){return function(e,t,i){var a=M(W(t),3),r=a[0],n=a[1],o=a[2],s=e.log,l=e.utils.getComputedStyle,d=e.utils.secondsToMs;if(!r)return s.error("No element was found with the `"+n+"` query selector.");if("video"!==o&&"audio"!==o)return s.error("The element of `"+n+"` was not a media element.");r.mux&&(r.mux.destroy(),delete r.mux,s.warn("Already monitoring this video element, replacing existing event listeners")),(i=Object.assign({automaticErrorTracking:!0},i,{getPlayheadTime:function(){return d(r.currentTime)},getStateData:function(){var e,t,i=(null===(e=this.getPlayheadTime)||void 0===e?void 0:e.call(this))||d(r.currentTime),a=this.hlsjs&&this.hlsjs.url,n=this.dashjs&&"function"==typeof this.dashjs.getSource&&this.dashjs.getSource(),o={player_is_paused:r.paused,player_width:parseInt(l(r,"width")),player_height:parseInt(l(r,"height")),player_autoplay_on:r.autoplay,player_preload_on:r.preload,player_language_code:r.lang,player_is_fullscreen:tm(),video_poster_url:r.poster,video_source_url:a||n||r.currentSrc,video_source_duration:d(r.duration),video_source_height:r.videoHeight,video_source_width:r.videoWidth,view_dropped_frame_count:null==r||null===(t=r.getVideoPlaybackQuality)||void 0===t?void 0:t.call(r).droppedVideoFrames};if(r.getStartDate&&i>0){var s=r.getStartDate();if(s&&"function"==typeof s.getTime&&s.getTime()){var u=s.getTime();if(o.player_program_time=u+i,r.seekable.length>0){var c=u+r.seekable.end(r.seekable.length-1);o.player_live_edge_program_time=c}}}return o}})).data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:e.VERSION},i.data),r.mux=r.mux||{},r.mux.deleted=!1,r.mux.emit=function(t,i){e.emit(n,t,i)},r.mux.updateData=function(e){r.mux.emit("hb",e)};var u=function(){s.error("The monitor for this video element has already been destroyed.")};
3339r.mux.destroy=function(){Object.keys(r.mux.listeners).forEach(function(e){r.removeEventListener(e,r.mux.listeners[e],!1)}),delete r.mux.listeners,r.mux.fullscreenChangeListener&&(document.removeEventListener("fullscreenchange",r.mux.fullscreenChangeListener,!1),delete r.mux.fullscreenChangeListener),r.mux.destroy=u,r.mux.swapElement=u,r.mux.emit=u,r.mux.addHLSJS=u,r.mux.addDashJS=u,r.mux.removeHLSJS=u,r.mux.removeDashJS=u,r.mux.updateData=u,r.mux.setEmitTranslator=u,r.mux.setStateDataTranslator=u,r.mux.setGetPlayheadTime=u,r.mux.deleted=!0,e.emit(n,"destroy")},r.mux.swapElement=function(t){var i=M(W(t),3),a=i[0],n=i[1],o=i[2];return a?"video"!==o&&"audio"!==o?e.log.error("The element of `"+n+"` was not a media element."):void(a.muxId=r.muxId,delete r.muxId,a.mux=a.mux||{},a.mux.listeners=Object.assign({},r.mux.listeners),delete r.mux.listeners,Object.keys(a.mux.listeners).forEach(function(e){r.removeEventListener(e,a.mux.listeners[e],!1),a.addEventListener(e,a.mux.listeners[e],!1)}),a.mux.fullscreenChangeListener=r.mux.fullscreenChangeListener,delete r.mux.fullscreenChangeListener,a.mux.swapElement=r.mux.swapElement,a.mux.destroy=r.mux.destroy,delete r.mux,r=a):e.log.error("No element was found with the `"+n+"` query selector.")},r.mux.addHLSJS=function(t){e.addHLSJS(n,t)},r.mux.addDashJS=function(t){e.addDashJS(n,t)},r.mux.removeHLSJS=function(){e.removeHLSJS(n)},r.mux.removeDashJS=function(){e.removeDashJS(n)},r.mux.setEmitTranslator=function(t){e.setEmitTranslator(n,t)},r.mux.setStateDataTranslator=function(t){e.setStateDataTranslator(n,t)},r.mux.setGetPlayheadTime=function(t){t||(t=i.getPlayheadTime),e.setGetPlayheadTime(n,t)},e.init(n,i),e.emit(n,"playerready"),r.paused||(e.emit(n,"play"),r.readyState>2&&e.emit(n,"playing")),r.mux.listeners={},tb.forEach(function(t){("error"!==t||i.automaticErrorTracking)&&(r.mux.listeners[t]=function(){var i={};if("error"===t){if(!r.error||1===r.error.code)return;i.player_error_code=r.error.code,i.player_error_message=tE[r.error.code]||r.error.message}e.emit(n,t,i)},r.addEventListener(t,r.mux.listeners[t],!1))}),r.mux.listeners.enterpictureinpicture=function(){e.emit(n,"playbackmodechange",{player_playback_mode:"pip",player_playback_mode_data:"{}"})},r.mux.listeners.leavepictureinpicture=function(){var t=tm()?"fullscreen":"standard";e.emit(n,"playbackmodechange",{player_playback_mode:t,player_playback_mode_data:"{}"})},r.addEventListener("enterpictureinpicture",r.mux.listeners.enterpictureinpicture,!1),r.addEventListener("leavepictureinpicture",r.mux.listeners.leavepictureinpicture,!1),r.mux.fullscreenChangeListener=function(){var t=tm(),i=document.fullscreenElement;if(t&&(i===r||null!=i&&i.contains(r)))e.emit(n,"playbackmodechange",{player_playback_mode:"fullscreen",player_playback_mode_data:"{}"});else if(!t){var a=document.pictureInPictureElement===r;e.emit(n,"playbackmodechange",{player_playback_mode:a?"pip":"standard",player_playback_mode_data:"{}"})}},document.addEventListener("fullscreenchange",r.mux.fullscreenChangeListener,!1)}(tO,e,t)},destroyMonitor:function(e){var t=M(W(e),1)[0];t&&t.mux&&"function"==typeof t.mux.destroy?t.mux.destroy():F.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var i=j(e);tD[i]?tD[i].addHLSJS(t):F.error("A monitor for `"+i+"` has not been initialized.")},addDashJS:function(e,t){var i=j(e);tD[i]?tD[i].addDashJS(t):F.error("A monitor for `"+i+"` has not been initialized.")},removeHLSJS:function(e){var t=j(e);tD[t]?tD[t].removeHLSJS():F.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=j(e);tD[t]?tD[t].removeDashJS():F.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){Y()&&t&&t.respectDoNotTrack&&F.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var i=j(e);tD[i]=new th(tO,i,t)},emit:function(e,t,i){var a=j(e);tD[a]?(tD[a].emit(t,i),"destroy"===t&&delete tD[a]):F.error("A monitor for `"+a+"` has not been initialized.")},updateData:function(e,t){var i=j(e);tD[i]?tD[i].emit("hb",t):F.error("A monitor for `"+i+"` has not been initialized.")},setEmitTranslator:function(e,t){var i=j(e);tD[i]?tD[i].emitTranslator=t:F.error("A monitor for `"+i+"` has not been initialized.")},setStateDataTranslator:function(e,t){var i=j(e);tD[i]?tD[i].stateDataTranslator=t:F.error("A monitor for `"+i+"` has not been initialized.")},setGetPlayheadTime:function(e,t){var i=j(e);tD[i]?tD[i].getPlayheadTime=t:F.error("A monitor for `"+i+"` has not been initialized.")},checkDoNotTrack:Y,log:F,utils:tC,events:{PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",PLAYBACK_MODE_CHANGE:"playbackmodechange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled",HEARTBEAT:"hb",DESTROY:"destroy"},WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(tO,tx),void 0!==N.default&&"function"==typeof N.default.addEventListener&&N.default.addEventListener("pagehide",function(e){e.persisted||(tO.WINDOW_UNLOADING=!0)},!1);var tM=tO},94381:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/AssetHyperlink","definitions":{"AssetHyperlink":{"type":"object","properties":{"nodeType":{"type":"string","enum":["asset-hyperlink"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/Link<\\"Asset\\">"}},"additionalProperties":false,"required":["target"]},"content":{"type":"array","items":{"$ref":"#/definitions/Text"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Link<\\"Asset\\">":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["Link"]},"linkType":{"type":"string","enum":["Asset"]},"id":{"type":"string"}},"additionalProperties":false,"required":["id","linkType","type"]}},"additionalProperties":false,"required":["sys"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},41198:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Quote","definitions":{"Quote":{"type":"object","properties":{"nodeType":{"type":"string","enum":["blockquote"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"$ref":"#/definitions/Paragraph"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Paragraph":{"type":"object","properties":{"nodeType":{"type":"string","enum":["paragraph"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},99291:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Document","definitions":{"Document":{"type":"object","properties":{"nodeType":{"type":"string","enum":["document"]},"content":{"type":"array","items":{"$ref":"#/definitions/TopLevelBlock"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"TopLevelBlock":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/TopLevelBlockEnum"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"TopLevelBlockEnum":{"enum":["blockquote","embedded-asset-block","embedded-entry-block","embedded-resource-block","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","hr","ordered-list","paragraph","table","unordered-list"],"type":"string"},"Block":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/BLOCKS"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"BLOCKS":{"description":"Map of all Contentful block types. Blocks contain inline or block nodes.","type":"string","enum":["document","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","ordered-list","unordered-list","list-item","hr","blockquote","embedded-entry-block","embedded-asset-block","embedded-resource-block","table","table-row","table-cell","table-header-cell"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},26940:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/AssetLinkBlock","definitions":{"AssetLinkBlock":{"type":"object","properties":{"nodeType":{"type":"string","enum":["embedded-asset-block"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/Link<\\"Asset\\">"}},"additionalProperties":false,"required":["target"]},"content":{"maxItems":0,"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Link<\\"Asset\\">":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["Link"]},"linkType":{"type":"string","enum":["Asset"]},"id":{"type":"string"}},"additionalProperties":false,"required":["id","linkType","type"]}},"additionalProperties":false,"required":["sys"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},30010:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/EntryLinkBlock","definitions":{"EntryLinkBlock":{"type":"object","properties":{"nodeType":{"type":"string","enum":["embedded-entry-block"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/Link<\\"Entry\\">"}},"additionalProperties":false,"required":["target"]},"content":{"maxItems":0,"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Link<\\"Entry\\">":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["Link"]},"linkType":{"type":"string","enum":["Entry"]},"id":{"type":"string"}},"additionalProperties":false,"required":["id","linkType","type"]}},"additionalProperties":false,"required":["sys"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')}
3339,66414:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/EntryLinkInline","definitions":{"EntryLinkInline":{"type":"object","properties":{"nodeType":{"type":"string","enum":["embedded-entry-inline"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/Link<\\"Entry\\">"}},"additionalProperties":false,"required":["target"]},"content":{"maxItems":0,"type":"array","items":{"$ref":"#/definitions/Text"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Link<\\"Entry\\">":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["Link"]},"linkType":{"type":"string","enum":["Entry"]},"id":{"type":"string"}},"additionalProperties":false,"required":["id","linkType","type"]}},"additionalProperties":false,"required":["sys"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},49083:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/ResourceLinkBlock","definitions":{"ResourceLinkBlock":{"type":"object","properties":{"nodeType":{"type":"string","enum":["embedded-resource-block"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/ResourceLink"}},"additionalProperties":false,"required":["target"]},"content":{"maxItems":0,"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ResourceLink":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["ResourceLink"]},"linkType":{"type":"string","enum":["Contentful:Entry"]},"urn":{"type":"string"}},"additionalProperties":false,"required":["linkType","type","urn"]}},"additionalProperties":false,"required":["sys"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},36426:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/ResourceLinkInline","definitions":{"ResourceLinkInline":{"type":"object","properties":{"nodeType":{"type":"string","enum":["embedded-resource-inline"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/ResourceLink"}},"additionalProperties":false,"required":["target"]},"content":{"maxItems":0,"type":"array","items":{"$ref":"#/definitions/Text"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ResourceLink":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["ResourceLink"]},"linkType":{"type":"string","enum":["Contentful:Entry"]},"urn":{"type":"string"}},"additionalProperties":false,"required":["linkType","type","urn"]}},"additionalProperties":false,"required":["sys"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},60260:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/EntryHyperlink","definitions":{"EntryHyperlink":{"type":"object","properties":{"nodeType":{"type":"string","enum":["entry-hyperlink"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/Link<\\"Entry\\">"}},"additionalProperties":false,"required":["target"]},"content":{"type":"array","items":{"$ref":"#/definitions/Text"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Link<\\"Entry\\">":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["Link"]},"linkType":{"type":"string","enum":["Entry"]},"id":{"type":"string"}},"additionalProperties":false,"required":["id","linkType","type"]}},"additionalProperties":false,"required":["sys"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},73405:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Heading1","definitions":{"Heading1":{"type":"object","properties":{"nodeType":{"type":"string","enum":["heading-1"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},19699:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Heading2","definitions":{"Heading2":{"type":"object","properties":{"nodeType":{"type":"string","enum":["heading-2"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},6:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Heading3","definitions":{"Heading3":{"type":"object","properties":{"nodeType":{"type":"string","enum":["heading-3"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},36879:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Heading4","definitions":{"Heading4":{"type":"object","properties":{"nodeType":{"type":"string","enum":["heading-4"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},5230:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Heading5","definitions":{"Heading5":{"type":"object","properties":{"nodeType":{"type":"string","enum":["heading-5"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},36773:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Heading6","definitions":{"Heading6":{"type":"object","properties":{"nodeType":{"type":"string","enum":["heading-6"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},52419:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Hr","definitions":{"Hr":{"type":"object","properties":{"nodeType":{"type":"string","enum":["hr"]},"data":{"maxItems":0,"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}
3339')},58865:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Hyperlink","definitions":{"Hyperlink":{"type":"object","properties":{"nodeType":{"type":"string","enum":["hyperlink"]},"data":{"type":"object","properties":{"uri":{"type":"string"}},"additionalProperties":false,"required":["uri"]},"content":{"type":"array","items":{"$ref":"#/definitions/Text"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},67378:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/ListItem","definitions":{"ListItem":{"type":"object","properties":{"nodeType":{"type":"string","enum":["list-item"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"$ref":"#/definitions/ListItemBlock"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItemBlock":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/ListItemBlockEnum"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItemBlockEnum":{"enum":["blockquote","embedded-asset-block","embedded-entry-block","embedded-resource-block","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","hr","ordered-list","paragraph","unordered-list"],"type":"string"},"Block":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/BLOCKS"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"BLOCKS":{"description":"Map of all Contentful block types. Blocks contain inline or block nodes.","type":"string","enum":["document","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","ordered-list","unordered-list","list-item","hr","blockquote","embedded-entry-block","embedded-asset-block","embedded-resource-block","table","table-row","table-cell","table-header-cell"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},52150:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/OrderedList","definitions":{"OrderedList":{"type":"object","properties":{"nodeType":{"type":"string","enum":["ordered-list"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"$ref":"#/definitions/ListItem"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItem":{"type":"object","properties":{"nodeType":{"type":"string","enum":["list-item"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"$ref":"#/definitions/ListItemBlock"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItemBlock":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/ListItemBlockEnum"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItemBlockEnum":{"enum":["blockquote","embedded-asset-block","embedded-entry-block","embedded-resource-block","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","hr","ordered-list","paragraph","unordered-list"],"type":"string"},"Block":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/BLOCKS"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"BLOCKS":{"description":"Map of all Contentful block types. Blocks contain inline or block nodes.","type":"string","enum":["document","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","ordered-list","unordered-list","list-item","hr","blockquote","embedded-entry-block","embedded-asset-block","embedded-resource-block","table","table-row","table-cell","table-header-cell"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},63590:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Paragraph","definitions":{"Paragraph":{"type":"object","properties":{"nodeType":{"type":"string","enum":["paragraph"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},15113:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/ResourceHyperlink","definitions":{"ResourceHyperlink":{"type":"object","properties":{"nodeType":{"type":"string","enum":["resource-hyperlink"]},"data":{"type":"object","properties":{"target":{"$ref":"#/definitions/ResourceLink"}},"additionalProperties":false,"required":["target"]},"content":{"type":"array","items":{"$ref":"#/definitions/Text"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ResourceLink":{"type":"object","properties":{"sys":{"type":"object","properties":{"type":{"type":"string","enum":["ResourceLink"]},"linkType":{"type":"string","enum":["Contentful:Entry"]},"urn":{"type":"string"}},"additionalProperties":false,"required":["linkType","type","urn"]}},"additionalProperties":false,"required":["sys"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},29098:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/TableCell","definitions":{"TableCell":{"type":"object","properties":{"nodeType":{"enum":["table-cell","table-header-cell"],"type":"string"},"data":{"type":"object","properties":{"colspan":{"type":"number"}
3339,"rowspan":{"type":"number"}},"additionalProperties":false},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/Paragraph"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Paragraph":{"type":"object","properties":{"nodeType":{"type":"string","enum":["paragraph"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},2030:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/TableHeaderCell","definitions":{"TableHeaderCell":{"type":"object","properties":{"nodeType":{"type":"string","enum":["table-header-cell"]},"data":{"type":"object","properties":{"colspan":{"type":"number"},"rowspan":{"type":"number"}},"additionalProperties":false},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/Paragraph"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Paragraph":{"type":"object","properties":{"nodeType":{"type":"string","enum":["paragraph"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},65225:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/TableRow","definitions":{"TableRow":{"type":"object","properties":{"nodeType":{"type":"string","enum":["table-row"]},"data":{"type":"object","properties":{}},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/TableCell"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"TableCell":{"type":"object","properties":{"nodeType":{"enum":["table-cell","table-header-cell"],"type":"string"},"data":{"type":"object","properties":{"colspan":{"type":"number"},"rowspan":{"type":"number"}},"additionalProperties":false},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/Paragraph"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Paragraph":{"type":"object","properties":{"nodeType":{"type":"string","enum":["paragraph"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},53725:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Table","definitions":{"Table":{"type":"object","properties":{"nodeType":{"type":"string","enum":["table"]},"data":{"type":"object","properties":{}},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/TableRow"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"TableRow":{"type":"object","properties":{"nodeType":{"type":"string","enum":["table-row"]},"data":{"type":"object","properties":{}},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/TableCell"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"TableCell":{"type":"object","properties":{"nodeType":{"enum":["table-cell","table-header-cell"],"type":"string"},"data":{"type":"object","properties":{"colspan":{"type":"number"}
3339,"rowspan":{"type":"number"}},"additionalProperties":false},"content":{"minItems":1,"type":"array","items":{"$ref":"#/definitions/Paragraph"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Paragraph":{"type":"object","properties":{"nodeType":{"type":"string","enum":["paragraph"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}}},"additionalProperties":false,"required":["content","data","nodeType"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},87195:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/Text","definitions":{"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')},35968:function(e){"use strict";e.exports=JSON.parse('{"$ref":"#/definitions/UnorderedList","definitions":{"UnorderedList":{"type":"object","properties":{"nodeType":{"type":"string","enum":["unordered-list"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"$ref":"#/definitions/ListItem"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItem":{"type":"object","properties":{"nodeType":{"type":"string","enum":["list-item"]},"data":{"type":"object","properties":{}},"content":{"type":"array","items":{"$ref":"#/definitions/ListItemBlock"}}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItemBlock":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/ListItemBlockEnum"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"ListItemBlockEnum":{"enum":["blockquote","embedded-asset-block","embedded-entry-block","embedded-resource-block","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","hr","ordered-list","paragraph","unordered-list"],"type":"string"},"Block":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/BLOCKS"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Block"},{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"BLOCKS":{"description":"Map of all Contentful block types. Blocks contain inline or block nodes.","type":"string","enum":["document","paragraph","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","ordered-list","unordered-list","list-item","hr","blockquote","embedded-entry-block","embedded-asset-block","embedded-resource-block","table","table-row","table-cell","table-header-cell"]},"Inline":{"type":"object","properties":{"nodeType":{"$ref":"#/definitions/INLINES"},"content":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/Inline"},{"$ref":"#/definitions/Text"}]}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["content","data","nodeType"]},"INLINES":{"description":"Map of all Contentful inline types. Inline contain inline or text nodes.","type":"string","enum":["asset-hyperlink","embedded-entry-inline","embedded-resource-inline","entry-hyperlink","hyperlink","resource-hyperlink"]},"Text":{"type":"object","properties":{"nodeType":{"type":"string","enum":["text"]},"value":{"type":"string"},"marks":{"type":"array","items":{"$ref":"#/definitions/Mark"}},"data":{"$ref":"#/definitions/NodeData"}},"additionalProperties":false,"required":["data","marks","nodeType","value"]},"Mark":{"type":"object","properties":{"type":{"type":"string"}},"additionalProperties":false,"required":["type"]},"NodeData":{"additionalProperties":true,"type":"object"}},"$schema":"http://json-schema.org/draft-07/schema#"}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.