@theoplayer/web-ui 2.0.0-beta.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -1
- package/README.md +1 -1
- package/dist/THEOplayerUI.d.ts +7 -1
- package/dist/THEOplayerUI.es5.js +1 -1
- package/dist/THEOplayerUI.es5.mjs +1 -1
- package/dist/THEOplayerUI.js +2 -2
- package/dist/THEOplayerUI.js.map +1 -1
- package/dist/THEOplayerUI.mjs +1 -1
- package/dist/THEOplayerUI.mjs.map +1 -1
- package/dist/THEOplayerUI.node.mjs +1 -1
- package/dist/THEOplayerUI.node.mjs.map +1 -1
- package/package.json +3 -3
package/dist/THEOplayerUI.es5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t;e=this,t=function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(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&&n(e,t)}function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}function o(e,t,r,n){function i(e,t){return function(r){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),l(r,"An initializer"),e.push(r)}}function a(e,t,r,n,a,o,l,s,u){switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,h,d,p={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};p.addInitializer=i(n,y),0===a?l?(h=r.get,d=r.set):(h=function(){return this[t]},d=function(e){this[t]=e}):2===a?h=function(){return r.value}:((1===a||3===a)&&(h=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(e){r.set.call(this,e)})),p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};try{return e(u,p)}finally{y.v=!0}}function l(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function s(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&l(t.get,"accessor.get"),void 0!==t.set&&l(t.set,"accessor.set"),void 0!==t.init&&l(t.init,"accessor.init")}else if("function"!==r)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function u(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(o=function(e,t,r,n){if(void 0!==n)var o=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===o?null:o),h=function(e,t,r){for(var n=[],i=new Map,o=new Map,l=0;l<t.length;l++){var c,h,d,p,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],m=y.length>3,_=f>=5;if(_?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!m){var b=_?o:i,g=b.get(v)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!g&&f>2?b.set(v,f):b.set(v,!0)}!function(e,t,r,n,i,o,l,u,c){var h,d,p,y,f,v,m=r[0];if(l?h=0===i||1===i?{get:r[3],set:r[4]}:3===i?{get:r[3]}:4===i?{set:r[3]}:{value:r[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(t,n)),1===i?p={get:h.get,set:h.set}:2===i?p=h.value:3===i?p=h.get:4===i&&(p=h.set),"function"==typeof m)void 0!==(y=a(m,n,h,u,i,o,l,c,p))&&(s(i,y),0===i?d=y:1===i?(d=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y);else for(var _=m.length-1;_>=0;_--)void 0!==(y=a(m[_],n,h,u,i,o,l,c,p))&&(s(i,y),0===i?v=y:1===i?(v=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y,void 0!==v&&(void 0===d?d=v:"function"==typeof d?d=[d,v]:d.push(v)));if(0===i||1===i){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var b=d;d=function(e,t){for(var r=t,n=0;n<b.length;n++)r=b[n].call(e,r);return r}}else{var g=d;d=function(e,t){return g.call(e,t)}}e.push(d)}0!==i&&(1===i?(h.get=p.get,h.set=p.set):2===i?h.value=p:3===i?h.get=p:4===i&&(h.set=p),l?1===i?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===i?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,h))}(n,d,y,v,f,_,m,p,r)}}return u(n,c),u(n,h),n}(e,t,l);return r.length||c(e,l),{e:h,get c(){return function(e,t,r){if(t.length>0){for(var n=[],a=e,o=e.name,l=t.length-1;l>=0;l--){var u={v:!1};try{var h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r})}finally{u.v=!0}void 0!==h&&(s(10,h),a=h)}return[c(a,r),function(){for(var e=0;e<n.length;e++)n[e].call(a)}]}}(e,r,l)}}})(e,t,r,n)}function l(e){return e}function s(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function d(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=c(t);var n=h()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r);if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,t)||_(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.")}()}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(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.")}()}function k(e,t,r){return(k=h()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return r&&n(a,r.prototype),a}).apply(null,arguments)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)})(e)}function x(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function E(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}"function"==typeof SuppressedError&&SuppressedError;var T,A,C,L,S,R,P,O,M,B,I,N,$,D,q,F,U,j,z,V,H,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ed,ep,ey,ef,ev,em,e_,eb,eg,ek,ew,ex,eE,eT,eA,eC,eL,eS,eR,eP,eO,eM,eB,eI,eN,e$,eD,eq,eF,eU,ej,ez,eV,eH,eG,eQ,eW,eK,eZ,eY,eJ,eX,e0,e1,e2,e5,e3,e4,e8,e7,e6,e9,te,tt,tr,tn,ti,ta,to,tl,ts,tu,tc,th,td,tp,ty,tf,tv,tm,t_,tb,tg,tk,tw,tx,tE,tT,tA,tC,tL,tS,tR,tP,tO,tM,tB,tI,tN,t$,tD,tq,tF,tU,tj,tz,tV,tH,tG,tQ,tW,tK,tZ,tY,tJ,tX,t0,t1,t2,t5,t3,t4,t8,t7,t6,t9,re,rt,rr,rn,ri,ra,ro,rl,rs,ru,rc,rh,rd,rp,ry,rf,rv,rm,r_,rb,rg,rk,rw,rx,rE,rT,rA,rC,rL,rS,rR,rP,rO,rM,rB,rI,rN,r$,rD,rq,rF,rU,rj,rz,rV,rH,rG,rQ,rW,rK,rZ,rY,rJ,rX,r0,r1,r2,r5,r3,r4,r8,r7,r6,r9,ne,nt,nr,nn,ni,na,no,nl,ns,nu,nc,nh,nd,np,ny,nf,nv,nm,n_,nb,ng,nk,nw,nx,nE,nT,nA,nC,nL,nS,nR,nP,nO,nM,nB,nI,nN,n$,nD,nq,nF,nU,nj,nz,nV,nH,nG,nQ,nW,nK,nZ,nY,nJ,nX,n0,n1,n2,n5,n3,n4,n8,n7,n6,n9,ie,it,ir,ii,ia,io,il,is,iu,ic,ih,id,ip,iy,iv,im,i_,ib,ig,ik,iw,ix,iE,iT,iA,iC,iL,iS,iR,iP,iO,iM,iB,iI,iN,i$,iD,iq,iF,iU,ij,iz,iV,iH,iG,iQ,iW,iK,iZ,iY,iJ,iX,i0,i1,i2,i5,i3,i4,i8,i7,i6,i9,ae,at,ar,an,ai,aa,ao,al,as,au,ac,ah,ad,ap,ay,af,av,am,a_,ab,ag,ak,aw,ax,aE,aT,aA,aC,aL,aS,aR,aP,aO,aM,aB,aI,aN,a$,aD,aq,aF,aU,aj,az,aV,aH,aG,aQ,aW,aK,aZ,aY,aJ,aX,a0,a1,a2,a5,a3,a4,a8,a7,a6,a9,oe,ot,or,on,oi,oa,oo,ol,os,ou,oc,oh,od,op,oy,of,ov,om,o_,ob,og,ok,ow,ox,oE,oT,oA,oC,oL,oS,oR,oP,oO,oM,oB,oI,oN,o$,oD,oq,oF,oU,oj,oz,oV,oH,oG,oQ,oW,oK,oZ,oY,oJ,oX,o0,o1,o2,o5,o3,o4,o8,o7,o6,o9,le,lt,lr,ln,li,la,lo,ll,ls,lu,lc,lh,ld,lp,ly,lf,lv,lm,l_,lb,lg,lk,lw,lx,lE,lT,lA,lC,lL,lS,lR,lP,lO,lM,lB,lI,lN,l$,lD,lq,lF,lU,lj,lz,lV,lH,lG,lQ,lW,lK,lZ,lY,lJ,lX,l0,l1,l2,l5,l3,l4,l8,l7,l6,l9,se,st,sr,sn,si,sa,so,sl,ss,su,sc,sh,sd,sp,sy,sf,sv,sm,s_,sb,sg,sk,sw,sx,sE,sT,sA,sC,sL,sS,sR,sP,sO,sM,sB,sI,sN,s$,sD,sq,sF,sU,sj,sz,sV,sH,sG,sQ,sW,sK,sZ,sY,sJ,sX,s0,s1,s2,s5,s3,s4,s8,s7,s6,s9,ue,ut,ur,un,ui,ua,uo,ul,us,uu,uc,uh,ud,up,uy,uf,uv,um,u_,ub,ug,uk,uw,ux,uE,uT,uA,uC,uL,uS,uR,uP,uO,uM,uB,uI,uN,u$,uD,uq,uF,uU,uj,uz,uV,uH,uG,uQ,uW,uK,uZ,uY,uJ,uX,u0,u1,u2,u5,u3,u4,u8,u7,u6,u9,ce,ct,cr,cn,ci,ca,co,cl,cs,cu,cc,ch,cd,cp,cy,cf,cv,cm,c_,cb,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP=self,cO=cP.ShadowRoot&&(void 0===cP.ShadyCSS||cP.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cM=Symbol(),cB=new WeakMap,cI=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==cM)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return v(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(cO&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=cB.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&cB.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),cN=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new cI(1===e.length?e[0]:r.reduce(function(t,r,n){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(r)+e[n+1]},e[0]),e,cM)},c$=function(e,t){var r=!0,n=!1,i=void 0;if(cO)e.adoptedStyleSheets=t.map(function(e){return x(e,CSSStyleSheet)?e:e.styleSheet});else try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value,s=document.createElement("style"),u=cP.litNonce;void 0!==u&&s.setAttribute("nonce",u),s.textContent=l.cssText,e.appendChild(s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},cD=cO?function(e){return e}:function(e){return x(e,CSSStyleSheet)?function(e){var t,r="",n=!0,i=!1,a=void 0;try{for(var o,l=e.cssRules[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;r+=s.cssText}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return new cI("string"==typeof(t=r)?t:t+"",void 0,cM)}(e):e},cq=Object.is,cF=Object.defineProperty,cU=Object.getOwnPropertyDescriptor,cj=Object.getOwnPropertyNames,cz=Object.getOwnPropertySymbols,cV=Object.getPrototypeOf,cH=self,cG=cH.trustedTypes,cQ=cG?cG.emptyScript:"",cW=cH.reactiveElementPolyfillSupport,cK=function(e,t){return e},cZ={toAttribute:function(e,t){switch(t){case Boolean:e=e?cQ:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},cY=function(e,t){return!cq(e,t)},cJ={attribute:!0,type:String,converter:cZ,reflect:!1,useDefault:!1,hasChanged:cY};null!=(rz=Symbol).metadata||(rz.metadata=Symbol("metadata")),null!=cH.litPropertyMetadata||(cH.litPropertyMetadata=new WeakMap);var cX=function(e){function t(){var e;return y(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return i(t,e),v(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,r;(null!=(r=this._$EO)?r:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(t=e.hostConnected)||t.call(e))}},{key:"removeController",value:function(e){var t;null==(t=this._$EO)||t.delete(e)}},{key:"_$E_",value:function(){var e=new Map,t=this.constructor.elementProperties,r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}e.size>0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var e,t=null!=(e=this.shadowRoot)?e:this.attachShadow(this.constructor.shadowRootOptions);return c$(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,r){this._$AK(e,r)}},{key:"_$ET",value:function(e,t){var r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){var i,a=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:cZ).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}},{key:"_$AK",value:function(e,t){var r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var i,a,o,l=r.getPropertyOptions(n),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null==(i=l.converter)?void 0:i.fromAttribute)?l.converter:cZ;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(o=null!=u?u:null==(a=this._$Ej)?void 0:a.get(n))?o:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r){if(void 0!==e){var n,i,a=this.constructor,o=this[e];if(null!=r||(r=a.getPropertyOptions(e)),!((null!=(i=r.hasChanged)?i:cY)(o,t)||r.useDefault&&r.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(e))&&!this.hasAttribute(a._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,r,n){var i,a,o,l=r.useDefault,s=r.reflect,u=r.wrapped;l&&!(null!=(i=this._$Ej)?i:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!=(a=null!=n?n:t)?a:this[e]),!0!==u||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!=(o=this._$Eq)?o:this._$Eq=new Set).add(e))}},{key:"_$EP",value:function(){return u(function(){var e;return E(this,function(t){switch(t.label){case 0:this.isUpdatePending=!0,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._$ES];case 2:return t.sent(),[3,4];case 3:return Promise.reject(t.sent()),[3,4];case 4:if(null==(e=this.scheduleUpdate()))return[3,6];return[4,e];case 5:t.sent(),t.label=6;case 6:return[2,!this.isUpdatePending]}})}).call(this)}},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,t=!0,r=!1,n=void 0;try{for(var i,a=this._$Ep[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=b(i.value,2),l=o[0],s=o[1];this[l]=s}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._$Ep=void 0}var u=this.constructor.elementProperties,c=!0,h=!1,d=void 0;if(u.size>0)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],m=f[1],_=m.wrapped,g=this[v];!0!==_||this._$AL.has(v)||void 0===g||this.C(v,void 0,m,g)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}var k=!1,w=this._$AL;try{(k=this.shouldUpdate(w))?(this.willUpdate(w),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(w)):this._$EM()}catch(e){throw k=!1,this._$EM(),e}k&&this._$AE(w)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null==(t=this._$EO)||t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach(function(e){return t._$ET(e,t[e])})),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!=(t=this.l)?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&g(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=cJ),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&cF(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=cU(this.prototype,e))?n:{get:function(){return this[t]},set:function(e){this[t]=e}},a=i.get,o=i.set;return{get:a,set:function(t){var n=null==a?void 0:a.call(this);null==o||o.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!=(t=this.elementProperties.get(e))?t:cJ}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(cK("elementProperties"))){var e=cV(this);e.finalize(),void 0!==e.l&&(this.l=g(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(cK("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cK("properties"))){var e=this.properties,t=g(cj(e)).concat(g(cz(e))),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.createProperty(l,e[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=this[Symbol.metadata];if(null!==s){var u=litPropertyMetadata.get(s),c=!0,h=!1,d=void 0;if(void 0!==u)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=b(p.value,2),v=f[0],m=f[1];this.elementProperties.set(v,m)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var _=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(_=(x=E.next()).done);_=!0){var T=b(x.value,2),A=T[0],C=T[1],L=this._$Eu(A,C);void 0!==L&&this._$Eh.set(L,A)}}catch(e){k=!0,w=e}finally{try{_||null==E.return||E.return()}finally{if(k)throw w}}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse()),n=!0,i=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.unshift(cD(s))}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}else void 0!==e&&t.push(cD(e));return t}},{key:"_$Eu",value:function(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}}]),t}(w(HTMLElement));cX.elementStyles=[],cX.shadowRootOptions={mode:"open"},cX[cK("elementProperties")]=new Map,cX[cK("finalized")]=new Map,null==cW||cW({ReactiveElement:cX}),(null!=(rV=cH.reactiveElementVersions)?rV:cH.reactiveElementVersions=[]).push("2.1.1");var c0=self,c1=c0.trustedTypes,c2=c1?c1.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,c5="$lit$",c3="lit$"+Math.random().toFixed(9).slice(2)+"$",c4="?"+c3,c8="<"+c4+">",c7=document,c6=function(){return c7.createComment("")},c9=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},he=Array.isArray,ht="[ \n\f\r]",hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hn=/-->/g,hi=/>/g,ha=RegExp(">|"+ht+"(?:([^\\s\"'>=/]+)("+ht+"*="+ht+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),ho=/'/g,hl=/"/g,hs=/^(?:script|style|textarea|title)$/i,hu=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{_$litType$:1,strings:e,values:r}},hc=Symbol.for("lit-noChange"),hh=Symbol.for("lit-nothing"),hd=new WeakMap,hp=c7.createTreeWalker(c7,129,null,!1);function hy(e,t){if(!he(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==c2?c2.createHTML(t):t}var hf=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hr,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,d=0;d<s.length&&(o.lastIndex=d,null!==(c=o.exec(s)));)d=o.lastIndex,o===hr?"!--"===c[1]?o=hn:void 0!==c[1]?o=hi:void 0!==c[2]?(hs.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=ha):void 0!==c[3]&&(o=ha):o===ha?">"===c[0]?(o=null!=r?r:hr,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?ha:'"'===c[3]?hl:ho):o===hl||o===ho?o=ha:o===hn||o===hi?o=hr:(o=ha,r=void 0);var p=o===ha&&e[l+1].startsWith("/>")?" ":"";a+=o===hr?s+c8:h>=0?(i.push(u),s.slice(0,h)+c5+s.slice(h)+c3+p):s+c3+(-2===h?l:p)}return[hy(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},hv=function(){function e(t,r){var n=t.strings,i=t._$litType$;y(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=b(hf(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),hp.currentNode=this.el.content,2===i||3===i){var d,p=this.el.content.firstChild;p.replaceWith.apply(p,g(p.childNodes))}for(;null!==(d=hp.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,m=void 0;if(d.hasAttributes())try{for(var _,k=d.getAttributeNames()[Symbol.iterator]();!(f=(_=k.next()).done);f=!0){var w=_.value;if(w.endsWith(c5)){var x=h[o++],E=d.getAttribute(w).split(c3),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?hk:"?"===T[1]?hw:"@"===T[1]?hx:hg}),d.removeAttribute(w)}else w.startsWith(c3)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,m=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw m}}if(hs.test(d.tagName)){var A=d.textContent.split(c3),C=A.length-1;if(C>0){d.textContent=c1?c1.emptyScript:"";for(var L=0;L<C;L++)d.append(A[L],c6()),hp.nextNode(),s.push({type:2,index:++a});d.append(A[C],c6())}}}else if(8===d.nodeType)if(d.data===c4)s.push({type:2,index:a});else for(var S=-1;-1!==(S=d.data.indexOf(c3,S+1));)s.push({type:7,index:a}),S+=c3.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=c7.createElement("template");return r.innerHTML=e,r}}]),e}();function hm(e,t,r,n){if(void 0===r&&(r=e),t===hc)return t;var i,a,o,l,s=void 0!==n?null==(i=r._$Co)?void 0:i[n]:r._$Cl,u=c9(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(a=s._$AO)||a.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(l=(o=r)._$Co)?l:o._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=hm(e,s._$AS(e,t.values),s,n)),t}var h_=function(){function e(t,r){y(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return v(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,r=this._$AD,n=r.el.content,i=r.parts,a=(null!=(t=null==e?void 0:e.creationScope)?t:c7).importNode(n,!0);hp.currentNode=a;for(var o=hp.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new hb(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new hE(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=hp.nextNode(),l++)}return hp.currentNode=c7,a}},{key:"p",value:function(e){var t=0,r=!0,n=!1,i=void 0;try{for(var a,o=this._$AV[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}}]),e}(),hb=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=hh,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=null==(a=null==i?void 0:i.isConnected)||a}return v(e,[{key:"_$AU",get:function(){var e,t;return null!=(t=null==(e=this._$AM)?void 0:e._$AU)?t:this._$Cv}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e,t){var r;void 0===t&&(t=this),c9(e=hm(this,e,t))?e===hh||null==e||""===e?(this._$AH!==hh&&this._$AR(),this._$AH=hh):e!==this._$AH&&e!==hc&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):he(r=e)||"function"==typeof(null==r?void 0:r[Symbol.iterator])?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==hh&&c9(this._$AH)?this._$AA.nextSibling.data=e:this.T(c7.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,r=e.values,n=e._$litType$,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=hv.createElement(hy(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new h_(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=hd.get(e.strings);return void 0===t&&hd.set(e.strings,t=new hv(e)),t}},{key:"k",value:function(t){he(this._$AH)||(this._$AH=[],this._$AR());var r,n=this._$AH,i=0,a=!0,o=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;i===n.length?n.push(r=new e(this.O(c6()),this.O(c6()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(e){o=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw l}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function(e,t){for(void 0===e&&(e=this._$AA.nextSibling),null==(r=this._$AP)||r.call(this,!1,!0,t);e&&e!==this._$AB;){var r,n=e.nextSibling;e.remove(),e=n}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}]),e}(),hg=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=hh,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=hh}return v(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e,t,r,n){void 0===t&&(t=this);var i=this.strings,a=!1;if(void 0===i)(a=!c9(e=hm(this,e,t,0))||e!==this._$AH&&e!==hc)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=hm(this,s[r+o],t,o))===hc&&(l=this._$AH[o]),a||(a=!c9(l)||l!==this._$AH[o]),l===hh?e=hh:e!==hh&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===hh?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),hk=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=3,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===hh?void 0:e}}]),t}(hg),hw=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=4,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==hh)}}]),t}(hg),hx=function(e){function t(e,r,n,i,a){var o;return y(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return i(t,e),v(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=hm(this,e,t,0))?r:hh)!==hc){var r,n=this._$AH,i=e===hh&&n!==hh||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==hh&&(n===hh||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!=(r=null==(t=this.options)?void 0:t.host)?r:this.element,e):this._$AH.handleEvent(e)}}]),t}(hg),hE=function(){function e(t,r,n){y(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){hm(this,e)}}]),e}(),hT=c0.litHtmlPolyfillSupport;null==hT||hT(hv,hb),(null!=(rH=c0.litHtmlVersions)?rH:c0.litHtmlVersions=[]).push("3.3.0");var hA=function(e,t,r){var n=null!=(a=null==r?void 0:r.renderBefore)?a:t,i=n._$litPart$;if(void 0===i){var a,o,l=null!=(o=null==r?void 0:r.renderBefore)?o:null;n._$litPart$=i=new hb(t.insertBefore(c6(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},hC=globalThis,hL=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return i(t,e),v(t,[{key:"createRenderRoot",value:function(){var t,r=e.prototype.createRenderRoot.call(this);return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),e.prototype.update.call(this,t),this._$Do=hA(r,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;e.prototype.connectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;e.prototype.disconnectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!1)}},{key:"render",value:function(){return hc}}]),t}(cX);hL._$litElement$=!0,hL.finalized=!0,null==(rG=hC.litElementHydrateSupport)||rG.call(hC,{LitElement:hL});var hS=hC.litElementPolyfillSupport;null==hS||hS({LitElement:hL}),(null!=(rQ=hC.litElementVersions)?rQ:hC.litElementVersions=[]).push("4.2.1");var hR=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},hP={attribute:!0,type:String,converter:cZ,reflect:!1,hasChanged:cY},hO=function(e,t,r){void 0===e&&(e=hP);var n=r.kind,i=r.metadata,a=self.litPropertyMetadata.get(i);if(void 0===a&&self.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){var o=r.name;return{set:function(r){var n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e)},init:function(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===n){var l=r.name;return function(r){var n=this[l];t.call(this,r),this.requestUpdate(l,n,e)}}throw Error("Unsupported decorator location: "+n)};function hM(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?hO(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function hB(e){var t,r;return hM((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={state:!0,attribute:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var hI=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":d(t))&&Object.defineProperty(e,t,r),r};function hN(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host([hidden]){display:none!important}::slotted(theoplayer-time-range){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]);return hN=function(){return e},e}var h$=cN(hN());function hD(){var e=a(["<slot></slot>"]);return hD=function(){return e},e}e.ControlBar=void 0,rK=hR("theoplayer-control-bar"),new(rW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,rZ(),t}return i(t,e),t}(l),A=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(hD())},t}(hL),e.ControlBar=(T=o(A,[],[rK],hL).c)[0],rZ=T[1],A.styles=[h$],A.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),rW);var hq=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return{_$litDirective$:e,values:r}}},hF=function(){function e(t){y(this,e)}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,g(t))}}]),e}(),hU=hq(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){return this.vt===e?hc:(this.vt=e,document.importNode(e.content,!0))}}]),t}(hF));function hj(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theoplayer-before-first-play-display,inline-flex);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);justify-content:center;line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}:host([hidden]){display:none!important}:host(:not([disabled])){cursor:pointer}:host(:focus){-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}:host(:focus:not(:focus-visible)){-webkit-box-shadow:none;box-shadow:none}:host(:hover){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}:host([aria-checked=true]){background:#fff;background:var(--theoplayer-button-checked-background,#fff);color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]){background:transparent;background:var(--theoplayer-control-background,transparent);color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}[part$=icon],[part~=icon]{font-size:0}::slotted(img),::slotted(svg),img,svg{fill:currentColor;color:#fff;color:var(--theoplayer-icon-color,#fff);height:24px;height:var(--theoplayer-button-icon-height,var(--theoplayer-control-height,24px));max-height:100%;max-width:100%;min-width:100%;-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-button-icon-transition,none);transition:var(--theoplayer-button-icon-transition,none);vertical-align:middle;width:24px;width:var(--theoplayer-button-icon-width,var(--theoplayer-control-height,24px))}::slotted(img),img{-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-button-icon-shadow,none);box-shadow:var(--theoplayer-button-icon-shadow,none)}::slotted(svg),svg{-webkit-filter:drop-shadow(none);filter:drop-shadow(none);-webkit-filter:drop-shadow(var(--theoplayer-button-icon-shadow,none));filter:drop-shadow(var(--theoplayer-button-icon-shadow,none))}:host(:hover:not([disabled])) ::slotted(img),:host(:hover:not([disabled])) img{-webkit-box-shadow:0 0 4px hsla(0,0%,100%,.5);box-shadow:0 0 4px hsla(0,0%,100%,.5);-webkit-box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5));box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5))}:host(:hover:not([disabled])) ::slotted(svg),:host(:hover:not([disabled])) svg{-webkit-filter:drop-shadow(0 0 4px hsla(0,0%,100%,.5));filter:drop-shadow(0 0 4px rgba(255,255,255,.5));-webkit-filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5)));filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px rgba(255,255,255,.5)))}"]);return hj=function(){return e},e}var hz=cN(hj()),hV=((C={}).CONFIGURATION="configuration",C.SOURCE="source",C.AUTOPLAY="autoplay",C.MUTED="muted",C.FULLSCREEN="fullscreen",C.FULLWINDOW="fullwindow",C.FLUID="fluid",C.DEVICE_TYPE="device-type",C.MOBILE="mobile",C.TV="tv",C.TV_FOCUS="tv-focus",C.MOBILE_ONLY="mobile-only",C.MOBILE_HIDDEN="mobile-hidden",C.TV_ONLY="tv-only",C.TV_HIDDEN="tv-hidden",C.USER_IDLE="user-idle",C.USER_IDLE_TIMEOUT="user-idle-timeout",C.NO_AUTO_HIDE="no-auto-hide",C.DISABLED="disabled",C.INERT="inert",C.HIDDEN="hidden",C.PAUSED="paused",C.ENDED="ended",C.VOLUME_LEVEL="volume-level",C.CASTING="casting",C.LOADING="loading",C.STREAM_TYPE="stream-type",C.LIVE="live",C.LIVE_ONLY="live-only",C.LIVE_HIDDEN="live-hidden",C.LIVE_THRESHOLD="live-threshold",C.DVR_THRESHOLD="dvr-threshold",C.REMAINING="remaining",C.REMAINING_WHEN_LIVE="remaining-when-live",C.SHOW_DURATION="show-duration",C.SEEK_OFFSET="seek-offset",C.MENU="menu",C.MENU_OPENED="menu-opened",C.MENU_CLOSE_ON_INPUT="menu-close-on-input",C.ARIA_LABEL="aria-label",C.ARIA_LIVE="aria-live",C.ARIA_CHECKED="aria-checked",C.HAS_AUDIO="has-audio",C.HAS_SUBTITLES="has-subtitles",C.HAS_ERROR="has-error",C.HAS_FIRST_PLAY="has-first-play",C.CAST_STATE="cast-state",C.TRACK_TYPE="track-type",C.SHOW_OFF="show-off",C.PLAYING_AD="playing-ad",C.SHOW_AD_MARKERS="show-ad-markers",C.CLICKTHROUGH="clickthrough",C.PROPERTY="property",C.VALUE="value",C),hH=((L={})[L.ENTER=13]="ENTER",L[L.ESCAPE=27]="ESCAPE",L[L.SPACE=32]="SPACE",L[L.END=35]="END",L[L.HOME=36]="HOME",L[L.LEFT=37]="LEFT",L[L.UP=38]="UP",L[L.RIGHT=39]="RIGHT",L[L.DOWN=40]="DOWN",L[L.BACK_SAMSUNG=88]="BACK_SAMSUNG",L[L.BACK_WEBOS=461]="BACK_WEBOS",L[L.BACK_TIZEN=10009]="BACK_TIZEN",L);function hG(e){return 37<=e&&e<=40}function hQ(e){return 10009===e||27===e||88===e||461===e}function hW(e){return 13===e||32===e}function hK(){var e=a(["",""]);return hK=function(){return e},e}function hZ(){var e=a(["<slot></slot>"]);return hZ=function(){return e},e}function hY(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function hJ(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}e.Button=void 0,rJ=hR("theoplayer-button"),r0=hM({reflect:!0,type:Boolean,attribute:hV.DISABLED}),new(rY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,rX(),t}return i(t,e),t}(l),P=function(e){function t(t){var r;return r=e.call(this)||this,r1(r),r._disabled=!1,r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!hW(e.keyCode)||e.metaKey||e.altKey?r.removeEventListener("keyup",r._onKeyUp):r.addEventListener("keyup",r._onKeyUp)},r._onKeyUp=function(e){r.removeEventListener("keyup",r._onKeyUp),hW(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"polite"),this._disabled||this._enable()},r.disconnectedCallback=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp)},r._enable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.addEventListener("keydown",this._onKeyDown),this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?hu(hK(),hU(this._template)):hu(hZ())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(hL),r1=(S=o(P,[[r0,4,"disabled"]],[rJ],hL)).e[0],e.Button=(R=S.c)[0],rX=R[1],P.styles=[hz],rY);var hX=0;function h0(e){return"__private_"+hX+++"_"+e}function h1(){var e=a([":host{padding:0}a{color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));padding:10px;padding:var(--theoplayer-control-padding,10px);-webkit-text-decoration:none;text-decoration:none}:host(:focus){-webkit-box-shadow:none;box-shadow:none;outline:0}a:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}a:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}:host([aria-checked=true]) a{color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]) a{color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}"]);return h1=function(){return e},e}var h2=cN(h1()),h5=function(){return document.createComment("")},h3=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new hb(n.insertBefore(h5(),i),n.insertBefore(h5(),i),e,e.options);else{var a,o,l=r._$AB.nextSibling,s=r._$AM,u=s!==e;if(u&&(null==(a=r._$AQ)||a.call(r,e),r._$AM=e,void 0!==r._$AP&&(o=e._$AU)!==s._$AU&&r._$AP(o)),l!==i||u)for(var c=r._$AA;c!==l;){var h=c.nextSibling;n.insertBefore(c,i),c=h}}return r},h4=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},h8={},h7=function(e){null==(t=e._$AP)||t.call(e,!1,!0);for(var t,r=e._$AA,n=e._$AB.nextSibling;r!==n;){var i=r.nextSibling;r.remove(),r=i}},h6=function(e,t){var r=e._$AN;if(void 0===r)return!1;var n=!0,i=!1,a=void 0;try{for(var o,l,s=r[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;null==(o=u._$AO)||o.call(u,t,!1),h6(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},h9=function(e){var t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===(null==r?void 0:r.size))},de=function(e){for(var t;t=e._$AM;e=t){var r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),dn(t)}};function dt(e){void 0!==this._$AN?(h9(this),this._$AM=e,de(this)):this._$AM=e}function dr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=0);var n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(var a=r;a<n.length;a++)h6(n[a],!1),h9(n[a]);else null!=n&&(h6(n,!1),h9(n));else h6(this,e)}var dn=function(e){2==e.type&&(null!=e._$AP||(e._$AP=dr),null!=e._$AQ||(e._$AQ=dt))},di=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return i(t,e),v(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),de(this),this.isConnected=t._$AU}},{key:"_$AO",value:function(e,t){var r,n;void 0===t&&(t=!0),e!==this.isConnected&&(this.isConnected=e,e?null==(r=this.reconnected)||r.call(this):null==(n=this.disconnected)||n.call(this)),t&&(h6(this,e),h9(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=g(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(hF),da=function(){return new dl},dl=function e(){y(this,e)},ds=new WeakMap,du=hq(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return hh}},{key:"update",value:function(e,t){var r,n=b(t,1)[0],i=n!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=n,this.ht=null==(r=e.options)?void 0:r.host,this.rt(this.ct=e.element)),hh}},{key:"rt",value:function(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){var t,r=null!=(t=this.ht)?t:self,n=ds.get(r);void 0===n&&(n=new WeakMap,ds.set(r,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}},{key:"lt",get:function(){var e,t,r;return"function"==typeof this.G?null==(e=ds.get(null!=(r=this.ht)?r:self))?void 0:e.get(this.G):null==(t=this.G)?void 0:t.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(di));function dc(){var e=a(["",""]);return dc=function(){return e},e}function dh(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return dh=function(){return e},e}function dd(){var e=a(["<slot></slot>"]);return dd=function(){return e},e}e.LinkButton=void 0,r5=hR("theoplayer-link-button"),r4=hM({reflect:!0,type:Boolean,attribute:hV.DISABLED}),r8=hB(),r7=hB(),new(r2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,r3(),t}return i(t,e),t}(l),I=h0("____private_href_1"),N=h0("____private_target_2"),$=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,I,{writable:!0,value:void 0}),Object.defineProperty(r,N,{writable:!0,value:void 0}),ne(r),r._disabled=!1,r._linkRef=da(),hJ(r,I)[I]=r6(r,""),hJ(r,N)[N]=r9(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==hH.SPACE)return;else{var t;e.preventDefault(),null==(t=r._linkRef.value)||t.click()}},r._onClick=function(){r.disabled||r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"polite"),this.hasAttribute(hV.DISABLED)||this._enable()},r._enable=function(){this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?hu(dc(),hU(this._template)):hu(dh(),du(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hu(dd())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return hJ(this,I)[I]},set:function(e){hJ(this,I)[I]=e}},{key:"target",get:function(){return hJ(this,N)[N]},set:function(e){hJ(this,N)[N]=e}}]),t}(hL),r6=(M=(O=o($,[[r4,4,"disabled"],[r8,1,"href"],[r7,1,"target"]],[r5],hL)).e)[0],r9=M[1],ne=M[2],e.LinkButton=(B=O.c)[0],r3=B[1],$.styles=[h2],r2);var dp=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=hh,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){if(e===hh||null==e)return this._t=void 0,this.it=e;if(e===hc)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}]),t}(hF);dp.directiveName="unsafeHTML",dp.resultType=1;var dy=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(dp);dy.directiveName="unsafeSVG",dy.resultType=2;var df=hq(dy);function dv(){var e=a([":host{--theoplayer-icon-color:var(--theoplayer-play-button-icon-color,unset);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host(:not([ended])) [part=replay-icon],:host(:not([paused])) [part=play-icon],:host([ended]) [part=pause-icon],:host([ended]) [part=play-icon],:host([paused]) [part=pause-icon]{display:none!important}"]);return dv=function(){return e},e}var dm=cN(dv());function d_(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=_(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function db(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return db=function(){return e},e}var dg=cN(db());function dk(){var e=a(["<slot></slot>"]);return dk=function(){return e},e}function dw(){}function dx(e){return e.nodeType===Node.ELEMENT_NODE}function dE(e){return x(e,HTMLElement)}e.SlotContainer=void 0,nr=hR("theoplayer-slot-container"),new(nt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nn(),t}return i(t,e),t}(l),q=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(dk())},t}(hL),e.SlotContainer=(D=o(q,[],[nr],hL).c)[0],nn=D[1],q.styles=[dg],nt);var dT="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},dA="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},dC="function"==typeof Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return e[r]},dL="function"==typeof Array.prototype.findIndex?function(e,t){return e.findIndex(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return r;return -1},dS="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},dR="undefined"!=typeof Intl&&Intl.DisplayNames?function(e){var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"}).of(e);if(t)return t.slice(0,1).toUpperCase()+t.slice(1)}:function(e){};function dP(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function dO(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(dx)}return dE(e)?e.children:[]}function dM(e){for(var t,r=[],n=d_(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;dx(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(dA(i.children)))}return r}function dB(e){var t=[];return function e(t,r){if(dE(t)&&"none"!==getComputedStyle(t).display){if(t.hasAttribute("tabindex")&&Number(t.getAttribute("tabindex"))>=0)return void r.push(t);switch(t.tagName.toLowerCase()){case"button":case"input":case"textarea":case"select":case"details":r.push(t);break;case"a":t.href&&r.push(t);break;default:for(var n=dO(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function dI(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var dN="theoplayerUiObservedProperties";function d$(e){return dN in e&&dT(e[dN])}var dD=function(e){return function(t,r){Object.defineProperty(t.prototype,dN,{value:e})}};function dq(e,t,r){return u(function(){var n;return E(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!d$(e)))return[3,3];return[4,Promise.resolve()];case 1:return i.sent(),[4,customElements.whenDefined(e.nodeName.toLowerCase())];case 2:i.sent(),customElements.upgrade(e),i.label=3;case 3:if(d$(e)&&r(e),!((n=dO(e)).length>0))return[3,5];return[4,Promise.all(dA(n).map(function(e){return dq(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function dF(){var e=a(['<span part="play-icon"><slot name="play-icon">','</slot></span><span part="pause-icon"><slot name="pause-icon">','</slot></span><span part="replay-icon"><slot name="replay-icon">',"</slot></span>"]);return dF=function(){return e},e}var dU=["seeking","seeked","ended","emptied","sourcechange"];function dj(){var e=a([":host(:not([volume-level=high])) [part=high-icon],:host(:not([volume-level=low])) [part=low-icon],:host(:not([volume-level=off])) [part=off-icon]{display:none!important}"]);return dj=function(){return e},e}e.PlayButton=void 0,na=hR("theoplayer-play-button"),no=dD(["player"]),nu=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.PAUSED}),nc=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.ENDED}),new(ni=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nl(),t}return i(t,e),t}(l),z=h0("____private_paused_1"),V=h0("____private_ended_2"),H=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,z,{writable:!0,value:void 0}),Object.defineProperty(t,V,{writable:!0,value:void 0}),hJ(t,z)[z]=(np(t),nh(t,!1)),hJ(t,V)[V]=nd(t,!1),t._onPlay=function(){t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updateFromPlayer=function(){var e,r;t.paused=null==(r=null==(e=t._player)?void 0:e.paused)||r,t._updateEnded(),t._updateDisabled()},t._updateDisabled=function(){var e;t.disabled=(null==(e=t._player)?void 0:e.source)===void 0},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r._updateEnded=function(){var e,t;this.ended=null!=(t=null==(e=this._player)?void 0:e.ended)&&t},r.handleClick=function(){void 0!==this._player&&void 0!==this._player.source&&(this._player.paused?this._player.play():this._player.pause())},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.ended?"replay":this.paused?"play":"pause";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return hu(dF(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90" width="24" height="24"><path d="M77.504 50.868c-7.236 5.156-16.584 10.914-28.04 17.269-11.044 6.207-20.729 11.081-29.053 14.625l-9.224 3.43c-.581-2.493-1.125-6.188-1.632-11.08-1.143-9.75-1.715-20.513-1.715-32.288 0-10.781.777-20.858 2.333-30.234l2.251-10.772 9.787 3.29c8.476 3.375 17.663 8.166 27.563 14.373 10.48 6.562 19.472 12.805 26.97 18.73 3.749 2.982 6.449 5.279 8.099 6.891l-7.339 5.766"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M2.108 1.914Q2.108.5 3.522.5h4.171q1.415 0 1.415 1.414v20.172q0 1.414-1.415 1.414H3.522q-1.414 0-1.414-1.414zm12.784 0Q14.892.5 16.307.5h4.171q1.414 0 1.414 1.414v20.172q0 1.414-1.414 1.414h-4.171q-1.415 0-1.415-1.414z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 23q-3.725 0-6.438-2.375Q2.85 18.25 2.275 14.7q-.1-.625.325-1.088.425-.462 1.125-.462.6 0 1.087.437.488.438.663 1.113.5 2.225 2.313 3.688Q9.6 19.85 12 19.85q2.8 0 4.75-1.963 1.95-1.962 1.95-4.762t-1.962-4.75q-1.963-1.95-4.763-1.95H11.8l.525.525q.375.375.363.85-.013.475-.363.825t-.85.363q-.5.012-.85-.338l-2.7-2.7q-.225-.225-.337-.513-.113-.287-.113-.587t.113-.588q.112-.287.337-.512L10.6 1.075q.35-.35.875-.363.525-.012.875.363.35.35.338.85-.013.5-.363.85l-.5.5h.15q2.05 0 3.85.775 1.8.775 3.15 2.112Q20.325 7.5 21.1 9.287q.775 1.788.775 3.838t-.775 3.85q-.775 1.8-2.112 3.137-1.338 1.338-3.138 2.113Q14.05 23 12 23Z"/></svg>\n'))},v(t,[{key:"paused",get:function(){return hJ(this,z)[z]},set:function(e){hJ(this,z)[z]=e}},{key:"ended",get:function(){return hJ(this,V)[V]},set:function(e){hJ(this,V)[V]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener("play",this._onPlay),this._player.removeEventListener("pause",this._onPause),this._player.removeEventListener(dU,this._updateFromPlayer)),this._player=e,this._updateFromPlayer(),void 0!==this._player&&(this._player.addEventListener("play",this._onPlay),this._player.addEventListener("pause",this._onPause),this._player.addEventListener(dU,this._updateFromPlayer)))}}]),t}(ns=e.Button),nh=(U=(F=o(H,[[nu,1,"paused"],[nc,1,"ended"]],[na,no],ns)).e)[0],nd=U[1],np=U[2],e.PlayButton=(j=F.c)[0],nl=j[1],H.styles=[].concat(e.Button.styles,[dm]),ni);var dz=cN(dj());function dV(){var e=a(['<span part="off-icon"><slot name="off-icon">','</slot></span><span part="low-icon"><slot name="low-icon">','</slot></span><span part="high-icon"><slot name="high-icon">',"</slot></span>"]);return dV=function(){return e},e}var dH=["volumechange"];function dG(){var e=a([':host{position:relative}:host([seek-offset^="-"]) [part=icon]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}[part=offset]{color:#fff;color:var(--theoplayer-icon-color,#fff);font-size:7.2px;font-size:var(--theoplayer-seek-button-font-size,calc(var(--theoplayer-button-icon-height, var(--theoplayer-control-height, 24px))*.3));left:50%;position:absolute;top:52.5%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}']);return dG=function(){return e},e}e.MuteButton=void 0,nf=hR("theoplayer-mute-button"),nv=dD(["player"]),nb=hM({reflect:!0,state:!0,type:String,attribute:hV.VOLUME_LEVEL}),ng=hM({reflect:!1,attribute:!1}),new(ny=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nm(),t}return i(t,e),t}(l),K=h0("____private_volumeLevel_1"),Z=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,K,{writable:!0,value:void 0}),hJ(t,K)[K]=(nw(t),nk(t,"off")),t._updateFromPlayer=function(){if(void 0!==t._player){var e=t._player.volume;t._player.muted?t.volumeLevel="off":e<.5?t.volumeLevel="low":t.volumeLevel="high"}else t.volumeLevel="off"},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){void 0!==this._player&&(this._player.muted=!this._player.muted,this._updateFromPlayer())},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="off"===this.volumeLevel?"unmute":"mute";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return hu(dV(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m19.225 22.55-2.25-2.275q-.175.1-.35.187-.175.088-.375.163-.525.2-1.075-.138-.55-.337-.55-1.062 0-.225.088-.425.087-.2.287-.325.05-.025.138-.088.087-.062.137-.087l-2.65-2.7v2.425q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5H3.525q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113.462-.462 1.112-.462H5.2L1.35 4.2Q1 3.85 1 3.375t.35-.825q.35-.35.85-.35t.85.35L20.9 20.9q.35.35.35.825t-.35.825q-.35.35-.838.35-.487 0-.837-.35ZM16.25 3.325q2.6 1.1 4.188 3.425 1.587 2.325 1.587 5.225 0 1.425-.4 2.7-.4 1.275-1.125 2.4L18.775 15.3q.425-.75.638-1.588.212-.837.212-1.737 0-2.125-1.175-3.875t-3.1-2.575q-.325-.125-.525-.4t-.2-.625q0-.65.525-1.038.525-.387 1.1-.137Zm.925 10.35-2.55-2.6V7.65q1.275.6 2.088 1.762.812 1.163.812 2.588 0 .45-.087.875-.088.425-.263.8ZM12.625 9l-3.45-3.575.775-.775q.75-.75 1.713-.338.962.413.962 1.463Z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M16.275 20.625q-.575.25-1.1-.15-.525-.4-.525-1.05 0-.35.188-.613.187-.262.512-.387 1.925-.825 3.113-2.575 1.187-1.75 1.187-3.875T18.463 8.1q-1.188-1.75-3.113-2.575-.325-.125-.512-.4-.188-.275-.188-.625 0-.65.525-1.038.525-.387 1.1-.137 2.6 1.1 4.175 3.425 1.575 2.325 1.575 5.225 0 2.9-1.575 5.225-1.575 2.325-4.175 3.425ZM3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'))},v(t,[{key:"volumeLevel",get:function(){return hJ(this,K)[K]},set:function(e){hJ(this,K)[K]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(dH,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(dH,this._updateFromPlayer))}}]),t}(n_=e.Button),nk=(Q=(G=o(Z,[[nb,1,"volumeLevel"],[ng,4,"player"]],[nf,nv],n_)).e)[0],nw=Q[1],e.MuteButton=(W=G.c)[0],nm=W[1],Z.styles=[].concat(e.Button.styles,[dz]),ny);var dQ=cN(dG());function dW(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return dW=function(){return e},e}function dK(){var e=a([":host{background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-text-color,#fff);display:inline-block;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));overflow:hidden;padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;text-align:center;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}"]);return dK=function(){return e},e}e.SeekButton=void 0,nE=hR("theoplayer-seek-button"),nT=dD(["player"]),nL=hM({reflect:!0,type:Number,attribute:hV.SEEK_OFFSET}),nS=hM({reflect:!1,attribute:!1}),new(nx=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nA(),t}return i(t,e),t}(l),ee=h0("____private_seekOffset_1"),et=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ee,{writable:!0,value:void 0}),hJ(t,ee)[ee]=(nP(t),nR(t,10)),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(void 0!==this._player){var e=this._player.duration;isNaN(e)||(this._player.currentTime=Math.max(0,Math.min(e,this._player.currentTime+this.seekOffset)))}},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.seekOffset;this.setAttribute(hV.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},r.render=function(){return hu(dW(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 22.25q-1.925 0-3.6-.738-1.675-.737-2.912-1.974Q4.25 18.3 3.525 16.625q-.725-1.675-.725-3.6 0-1.9.725-3.575.725-1.675 1.963-2.925 1.237-1.25 2.925-1.975Q10.1 3.825 12 3.825h.15l-.7-.7q-.3-.325-.313-.788-.012-.462.313-.812.35-.35.813-.35.462 0 .812.325l2.65 2.675q.325.325.325.8 0 .475-.325.8l-2.65 2.65q-.325.325-.8.325-.475 0-.825-.35-.3-.325-.3-.8 0-.475.3-.8l.7-.7H12q-2.9 0-4.912 2.012-2.013 2.013-2.013 4.913 0 2.9 2.013 4.925Q9.1 19.975 12 19.975q2.6 0 4.55-1.687 1.95-1.688 2.325-4.238.05-.45.4-.738.35-.287.8-.287.45 0 .788.275.337.275.287.7-.375 3.55-2.987 5.9Q15.55 22.25 12 22.25Z"/></svg>\n'),String(Math.abs(this.seekOffset)))},v(t,[{key:"seekOffset",get:function(){return hJ(this,ee)[ee]},set:function(e){hJ(this,ee)[ee]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(nC=e.Button),nR=(J=(Y=o(et,[[nL,1,"seekOffset"],[nS,4,"player"]],[nE,nT],nC)).e)[0],nP=J[1],e.SeekButton=(X=Y.c)[0],nA=X[1],et.styles=[].concat(e.Button.styles,[dQ]),nx);var dZ=cN(dK());function dY(e){return!isNaN(e)&&isFinite(e)}function dJ(e,t,r){void 0===t&&(t=0);var n,i=e<0||r&&0===e,a=Math.floor(t/60%60),o=Math.floor(t/3600);if(dY(e=Math.abs(e))){var l=Math.floor(e%60),s=Math.floor(e/60%60),u=Math.floor(e/3600),c=u>0||o>0;n=[c?""+u:"",(c||a>=0)&&s<10?"0"+s:""+s,l<10?"0"+l:""+l]}else n=[o>0?"--":"","--","--"];return(i?"-":"")+n.filter(function(e){return""!==e}).join(":")}var dX=[["hour","hours"],["minute","minutes"],["second","seconds"]];function d0(e,t){var r=dX[t][+(1!==e)];return e+" "+r}function d1(e,t){if(!dY(e))return"";var r=e<0||t&&0===e,n=Math.floor((e=Math.abs(e))%60),i=Math.floor(e/60)%60,a=Math.floor(e/3600);return""+[0===a?"":d0(a,0),0===i?"":d0(i,1),0===n&&(a>0||i>0)?"":d0(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function d2(){var e=a(["<span>","</span>"]);return d2=function(){return e},e}var d5=["timeupdate","seeking","seeked","durationchange"];function d3(){var e=a(["<span>","</span>"]);return d3=function(){return e},e}e.TimeDisplay=void 0,nM=hR("theoplayer-time-display"),nB=dD(["player","streamType"]),nN=hM({reflect:!1,attribute:!1}),n$=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING}),nD=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING_WHEN_LIVE}),nq=hM({reflect:!0,type:Boolean,attribute:hV.SHOW_DURATION}),nF=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),nU=hB(),nj=hB(),nz=hB(),new(nO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nI(),t}return i(t,e),t}(l),ea=h0("____private_remaining_1"),eo=h0("____private_remainingWhenLive_2"),el=h0("____private_showDuration_3"),es=h0("____private_streamType_4"),eu=h0("____private__currentTime_5"),ec=h0("____private__duration_6"),eh=h0("____private__endTime_7"),ed=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ea,{writable:!0,value:void 0}),Object.defineProperty(t,eo,{writable:!0,value:void 0}),Object.defineProperty(t,el,{writable:!0,value:void 0}),Object.defineProperty(t,es,{writable:!0,value:void 0}),Object.defineProperty(t,eu,{writable:!0,value:void 0}),Object.defineProperty(t,ec,{writable:!0,value:void 0}),Object.defineProperty(t,eh,{writable:!0,value:void 0}),hJ(t,ea)[ea]=(nY(t),nV(t,!1)),hJ(t,eo)[eo]=nH(t,!1),hJ(t,el)[el]=nG(t,!1),hJ(t,es)[es]=nQ(t,"vod"),hJ(t,eu)[eu]=nW(t,0),hJ(t,ec)[ec]=nK(t,NaN),hJ(t,eh)[eh]=nZ(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.currentTime:0,n=t._player?t._player.duration:NaN,i=null==(e=t._player)?void 0:e.seekable,a=isFinite(n)?n:i&&i.length>0?i.end(0):NaN;t._currentTime=r,t._duration=n,t._endTime=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"playback time"),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"off")},r.render=function(){var e,t,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,n=this._currentTime,i=this._endTime;return r&&(n=-((this._endTime||0)-n)),e=this.showDuration&&!r?dJ(n,i,r)+" / "+dJ(i):dJ(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?d1(n,r)+" of "+d1(i):d1(n,r),this.setAttribute("aria-valuetext",t),hu(d2(),e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(d5,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(d5,this._updateFromPlayer))}},{key:"remaining",get:function(){return hJ(this,ea)[ea]},set:function(e){hJ(this,ea)[ea]=e}},{key:"remainingWhenLive",get:function(){return hJ(this,eo)[eo]},set:function(e){hJ(this,eo)[eo]=e}},{key:"showDuration",get:function(){return hJ(this,el)[el]},set:function(e){hJ(this,el)[el]=e}},{key:"streamType",get:function(){return hJ(this,es)[es]},set:function(e){hJ(this,es)[es]=e}},{key:"_currentTime",get:function(){return hJ(this,eu)[eu]},set:function(e){hJ(this,eu)[eu]=e}},{key:"_duration",get:function(){return hJ(this,ec)[ec]},set:function(e){hJ(this,ec)[ec]=e}},{key:"_endTime",get:function(){return hJ(this,eh)[eh]},set:function(e){hJ(this,eh)[eh]=e}}]),t}(hL),nV=(en=(er=o(ed,[[nN,4,"player"],[n$,1,"remaining"],[nD,1,"remainingWhenLive"],[nq,1,"showDuration"],[nF,1,"streamType"],[nU,1,"_currentTime"],[nj,1,"_duration"],[nz,1,"_endTime"]],[nM,nB],hL)).e)[0],nH=en[1],nG=en[2],nQ=en[3],nW=en[4],nK=en[5],nZ=en[6],nY=en[7],e.TimeDisplay=(ei=er.c)[0],nI=ei[1],ed.styles=[dZ],nO);var d4=["durationchange"];e.DurationDisplay=void 0,nX=hR("theoplayer-duration-display"),n0=dD(["player"]),n2=hM({reflect:!1,attribute:!1}),n5=hB(),new(nJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,n1(),t}return i(t,e),t}(l),ev=h0("____private_duration_1"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ev,{writable:!0,value:void 0}),hJ(t,ev)[ev]=(n4(t),n3(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"off")},r.render=function(){return hu(d3(),dJ(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(d4,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(d4,this._updateFromPlayer))}},{key:"duration",get:function(){return hJ(this,ev)[ev]},set:function(e){hJ(this,ev)[ev]=e}}]),t}(hL),n3=(ey=(ep=o(em,[[n2,4,"player"],[n5,1,"duration"]],[nX,n0],hL)).e)[0],n4=ey[1],e.DurationDisplay=(ef=ep.c)[0],n1=ef[1],em.styles=[dZ],nJ);var d8=!function(){try{var e=new Event("change");return"change"===e.type}catch(e){}return!1}()?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1),r}:function(e,t){return new Event(e,t)},d7=!function(){try{var e=new CustomEvent("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1,null==t?void 0:t.detail),r}:function(e,t){return new CustomEvent(e,t)};e.RadioButton=void 0,n8=hR("theoplayer-radio-button"),n6=hM({reflect:!0,type:Boolean,attribute:hV.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),n9=hM({attribute:hV.VALUE});var d6=h0("____private_value_1"),d9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,d6,{writable:!0,value:void 0}),it(t),t._checked=!1,hJ(t,d6)[d6]=ie(t,void 0),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){this.hasAttribute("role")||this.setAttribute("role","radio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),e.prototype.connectedCallback.call(this)},r.handleClick=function(){this.checked=!0,this.dispatchEvent(d8("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},v(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(d8("change",{bubbles:!0})))}},{key:"value",get:function(){return hJ(this,d6)[d6]},set:function(e){hJ(this,d6)[d6]=e}}]),t}(n7=e.Button);ie=(ii=(ir=o(d9,[[n6,4,"checked"],[n9,1,"value"]],[n8],n7)).e)[0],it=ii[1],e.RadioButton=(ia=ir.c)[0],(0,ia[1])();var pe=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}var t=e.prototype;return t.overlaps=function(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y},t.contains=function(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom},t.union=function(t){var r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.right,t.right)-r,a=Math.max(this.bottom,t.bottom)-n;return new e(r,n,i,a)},t.snapToPixels=function(){return new e(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))},t.clone=function(){return new e(this.x,this.y,this.width,this.height)},t.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}},e.fromRect=function(t){var r,n,i,a,o,l;return new e(null!=(n=null!=(r=t.left)?r:t.x)?n:0,null!=(a=null!=(i=t.top)?i:t.y)?a:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},v(e,[{key:"left",get:function(){return this.x},set:function(e){this.x=e}},{key:"right",get:function(){return this.x+this.width},set:function(e){this.x=e-this.width}},{key:"top",get:function(){return this.y},set:function(e){this.y=e}},{key:"bottom",get:function(){return this.y+this.height},set:function(e){this.y=e-this.height}}]),e}();function pt(){var e=function(){var e,t,r=document.activeElement;if(null==r)return null;for(;null!=(t=null==(e=r.shadowRoot)?void 0:e.activeElement);)r=t;return r}();return e&&e!==document.body&&dE(e)?e:null}function pr(e,t,r){var n,i,a,o=pt();if(null===o)return!1;var l=pe.fromRect(e.getBoundingClientRect()).snapToPixels(),s=pe.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:pe.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===hH.LEFT||r===hH.RIGHT){var c=s.clone();r===hH.LEFT?(c.left=l.left,c.width=s.left-l.left):(c.left=s.right,c.width=l.right-s.right),0===(a=u.filter(function(e){return c.overlaps(e.rect)})).length&&(c.top=l.top,c.height=l.height,a=u.filter(function(e){return c.overlaps(e.rect)}))}else{var h=s.clone();r===hH.UP?(h.top=l.top,h.height=s.top-l.top):(h.top=s.bottom,h.height=l.bottom-s.bottom),0===(a=u.filter(function(e){return h.overlaps(e.rect)})).length&&(h.left=l.left,h.width=l.width,a=u.filter(function(e){return h.overlaps(e.rect)}))}var d=(n=a,i=function(e){var t,r,n;return t=e.rect,r=s,n=0,t.right<r.left?n+=r.left-t.right:r.right<t.left&&(n+=t.left-r.right),t.bottom<r.top?n+=r.top-t.bottom:r.bottom<t.top&&(n+=t.top-r.bottom),n},function(e,t){if(0!==e.length)return e.reduce(function(e,r){return 0>=t(e,r)?e:r})}(n,function(e,t){return i(e)-i(t)}));return void 0!==d&&(d.child.focus(),!0)}function pn(){var e=a(["<slot ",' @slotchange="','"></slot>']);return pn=function(){return e},e}e.RadioGroup=void 0,io=hR("theoplayer-radio-group"),il=dD(["deviceType"]),is=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),iu=hM({attribute:hV.VALUE});var pi=h0("____private_deviceType_1"),pa=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,pi,{writable:!0,value:void 0}),ih(t),t._slotRef=da(),t._radioButtons=[],t._value=void 0,hJ(t,pi)[pi]=ic(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=dM(r),a=[],o=d_(i);!(n=o()).done;){var l=n.value;if(!po(l)){var s=dI(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,dw),t._radioButtons=i.filter(po),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&hG(e.keyCode)){pr(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case hH.UP:case hH.LEFT:t._focusPrevButton()&&e.preventDefault();break;case hH.DOWN:case hH.RIGHT:t._focusNextButton()&&e.preventDefault();break;case hH.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case hH.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),this.addEventListener("keydown",this._onKeyDown),this._onSlotChange()},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this),this.removeEventListener("keydown",this._onKeyDown)},r.firstUpdated=function(){this._onSlotChange()},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener("change",this._onButtonChange),t},r.allRadioButtons=function(){return this._radioButtons},r._prevRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>0?this._radioButtons[t-1]:null},r._nextRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>=0&&t<this._radioButtons.length-1?this._radioButtons[t+1]:null},r._focusPrevButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.firstRadioButton?this.setFocusedRadioButton(this.lastRadioButton):this.setFocusedRadioButton(this._prevRadioButton(e)),!0)},r._focusNextButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.lastRadioButton?this.setFocusedRadioButton(this.firstRadioButton):this.setFocusedRadioButton(this._nextRadioButton(e)),!0)},r.setFocusedRadioButton=function(e){this._unfocusAll(),e&&(e.tabIndex=0,e.focus())},r._unfocusAll=function(){for(var e,t=d_(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=d_(this.allRadioButtons());!(t=r()).done;){var n=t.value;n.checked=n===e}},r.updateCheckedButton=function(){var e=this,t=this.allRadioButtons().find(function(t){return t.value==e.value});this.setCheckedRadioButton(null!=t?t:null)},r.render=function(){return hu(pn(),du(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return hJ(this,pi)[pi]},set:function(e){hJ(this,pi)[pi]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(d8("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=dC(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=dC(this._radioButtons,function(e){return e.checked}))?e:null}},{key:"firstRadioButton",get:function(){var e;return null!=(e=this._radioButtons[0])?e:null}},{key:"lastRadioButton",get:function(){var e=this._radioButtons;return e.length>0?e[e.length-1]:null}}]),t}(hL);function po(t){return x(t,e.RadioButton)}function pl(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-menu-color,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);pointer-events:none}:host([hidden]){display:none!important}[part=heading]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;align-self:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:auto}[part=heading] ::slotted(span),[part=heading]>span{padding:10px;padding:var(--theoplayer-control-padding,10px);padding-left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=content],[part=heading]>theoplayer-menu-close-button{pointer-events:auto}[part=content]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-item-align:center;-ms-grid-row-align:center;--theoplayer-control-hover-background:var(--theoplayer-menu-control-hover-background,hsla(0,0%,100%,.3));align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:10px;margin:var(--theoplayer-menu-margin,10px);max-height:100%;max-width:100%;max-width:var(--theoplayer-menu-max-width,100%);min-height:0;min-width:80%;min-width:var(--theoplayer-menu-min-width,80%);overflow-y:auto}"]);return pl=function(){return e},e}ic=(ip=(id=o(pa,[[is,1,"deviceType"],[iu,4,"value"]],[io,il],hL)).e)[0],ih=ip[1],e.RadioGroup=(iy=id.c)[0],(0,iy[1])();var ps=cN(pl()),pu="theoplayermenuclose",pc="theoplayermenuchange";function ph(){var e=a(["",""]);return ph=function(){return e},e}function pd(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return pd=function(){return e},e}function pp(){var e=a(['<slot name="heading"></slot>']);return pp=function(){return e},e}function py(){var e=a(["<slot></slot>"]);return py=function(){return e},e}function pf(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;pointer-events:none}:host([hidden]){display:none!important}::slotted(*),:host>*{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch;min-height:0}"]);return pf=function(){return e},e}e.Menu=void 0,im=hR("theoplayer-menu"),ib=hM({reflect:!0,type:Boolean,attribute:hV.MENU_CLOSE_ON_INPUT}),ig=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.MENU_OPENED}),new(iv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,i_(),t}return i(t,e),t}(l),ek=h0("____private_closeOnInput_1"),ew=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,ek,{writable:!0,value:void 0}),iw(r),r._menuOpened=!1,hJ(r,ek)[ek]=ik(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=d7(pu,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(hV.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hu(ph(),hU(this._template)):hu(pd(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hu(pp())},r.renderMenuContent=function(){return hu(py())},v(t,[{key:"closeOnInput",get:function(){return hJ(this,ek)[ek]},set:function(e){hJ(this,ek)[ek]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dP(this,hV.HIDDEN,!e);var t=d7(pc,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(hL),ik=(eb=(e_=o(ew,[[ib,1,"closeOnInput"],[ig,4,"menuOpened_"]],[im],hL)).e)[0],iw=eb[1],e.Menu=(eg=e_.c)[0],i_=eg[1],ew.styles=[ps],ew.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),iv);var pv=cN(pf()),pm="theoplayermenutoggle";function p_(){var e=a(["",""]);return p_=function(){return e},e}function pb(){var e=a(['<slot @slotchange="','"></slot>']);return pb=function(){return e},e}function pg(t){return!!dE(t)&&(x(t,e.Menu)||x(t,e.MenuGroup))}e.MenuGroup=void 0,iE=hR("theoplayer-menu-group"),iA=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.MENU_OPENED}),new(ix=function(e){function t(){var t;return t=e.apply(this,arguments)||this,iT(),t}return i(t,e),t}(l),eA=h0("____private__menuSlot_1"),eC=function(t){function r(r){var n;return Object.defineProperty(n=t.call(this)||this,eA,{writable:!0,value:void 0}),iL(n),n._menuOpened=!1,hJ(n,eA)[eA]=iC(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(dA(n.shadowRoot.children),n._menuSlot?dM(n._menuSlot):[]),r=[],i=d_(t);!(e=i()).done;){var a=e.value;if(!pg(a)){var o=dI(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,dw);for(var l,s=t.filter(pg),u=d_(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=d_(s);!(h=d()).done;){var p=h.value;0>n._menus.indexOf(p)&&p.closeMenu()}n._menus=s},n._onToggleMenu=function(e){var t=e.detail.menu;if(n.getMenuById(t)){e.stopPropagation();var r=dE(e.target)?e.target:void 0;n.isMenuOpen(t)?n.closeMenu(t):n.openMenu(t,r)}},n._onCloseMenu=function(e){n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._onMenuChange=function(t){var r=n.getCurrentMenu_();r&&r.menu===t.target&&x(r.menu,e.MenuGroup)&&!r.menu.hasCurrentMenu()&&n.closeCurrentMenu()},n._onKeyDown=function(e){!e.altKey&&hQ(e.keyCode)&&n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._template=null==r?void 0:r.template,n._template&&n.performUpdate(),n}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(hV.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(pm,this._onToggleMenu),e.addEventListener(pu,this._onCloseMenu),e.addEventListener(pc,this._onMenuChange),e},n.render=function(){return this._template?hu(p_(),hU(this._template)):hu(pb(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?dC(this._menus,function(t){return t.id===e}):this},n.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=dL(this._openMenuStack,function(e){return e.menu===r});return i>=0?this.closeMenusFromIndex_(i+1):this._openMenuStack.push({menu:r,opener:t}),n&&n.menu.closeMenu(),r.openMenu(),this.menuOpened_=!0,r.focus(),!0},n.closeMenu=function(e){var t,r,n=this.getMenuById(e);if(n===this&&(n=null==(r=this._openMenuStack[0])?void 0:r.menu),!n)return!1;var i=dL(this._openMenuStack,function(e){return e.menu===n});if(i<0)return!1;var a=this._openMenuStack[i];this.closeMenusFromIndex_(i);var o=this.getCurrentMenu_();return void 0!==o?(o.menu.openMenu(),this.menuOpened_=!0,a.opener&&o.menu.contains(a.opener)?a.opener.focus():o.menu.focus()):(this.menuOpened_=!1,null==(t=a.opener)||t.focus()),!0},n.closeMenusFromIndex_=function(e){for(var t=this._openMenuStack.length-e,r=this._openMenuStack.length-1;r>=e;r--)this._openMenuStack[r].menu.closeMenu();this._openMenuStack.splice(e,t)},n.hasCurrentMenu=function(){return this._openMenuStack.length>0},n.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},n.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},n.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},v(r,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dP(this,hV.MENU_OPENED,e),e?(this.removeAttribute(hV.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(hV.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=d7(pc,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return hJ(this,eA)[eA]},set:function(e){hJ(this,eA)[eA]=e}}]),r}(hL),iC=(eE=(ex=o(eC,[[iA,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(r=null==(t=e.renderRoot)?void 0:t.querySelector("slot"))?r:null};return hI(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[iE],hL)).e)[0],iL=eE[1],e.MenuGroup=(eT=ex.c)[0],iT=eT[1],eC.styles=[pv],eC.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),ix),e.MenuButton=void 0,iS=hR("theoplayer-menu-button"),iP=hM({reflect:!0,type:String,attribute:hV.MENU}),iO=hM({reflect:!0,state:!0,type:String,attribute:"aria-controls"});var pk=h0("____private__ariaControls_1"),pw=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pk,{writable:!0,value:void 0}),iB(t),t._menuId=null,hJ(t,pk)[pk]=iM(t,null),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("aria-haspopup")||this.setAttribute("aria-haspopup","true")},r.handleClick=function(){var e=this.menu;if(e){var t=d7(pm,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},v(t,[{key:"menu",get:function(){return this._menuId},set:function(e){e?(null==this._ariaControls||this._ariaControls===this._menuId)&&(this._ariaControls=e):this._ariaControls===this._menuId&&(this._ariaControls=null),this._menuId=e}},{key:"_ariaControls",get:function(){return hJ(this,pk)[pk]},set:function(e){hJ(this,pk)[pk]=e}}]),t}(iR=e.Button);function px(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return px=function(){return e},e}iM=(iN=(iI=o(pw,[[iP,4,"menu"],[iO,1,"_ariaControls"]],[iS],iR)).e)[0],iB=iN[1],e.MenuButton=(i$=iI.c)[0],(0,i$[1])(),e.CloseMenuButton=void 0,iD=hR("theoplayer-menu-close-button");var pE=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=d7(pu,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hu(px(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"/></svg>\n'))},t}(iq=e.Button);function pT(){var e=a(["<slot>","</slot>"]);return pT=function(){return e},e}e.CloseMenuButton=(iF=o(pE,[],[iD],iq).c)[0],(0,iF[1])();var pA=["change","update"];e.MediaTrackRadioButton=void 0,iU=hR("theoplayer-media-track-radio-button"),iz=hB(),iV=hM({reflect:!1,attribute:!1});var pC=h0("____private__trackLabel_1"),pL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pC,{writable:!0,value:void 0}),t._track=void iG(t),hJ(t,pC)[pC]=iH(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label;if(t)return t;var r=e.language;return r&&(dR(r)||r)||""}(this._track):"",this.checked=!!this._track&&this._track.enabled},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){return hu(pT(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return hJ(this,pC)[pC]},set:function(e){hJ(this,pC)[pC]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pA,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pA,this._onTrackChange))}}]),t}(ij=e.RadioButton);function pS(){var e=a([":host,theoplayer-radio-group{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hidden]){display:none!important}"]);return pS=function(){return e},e}iH=(iW=(iQ=o(pL,[[iz,1,"_trackLabel"],[iV,4,"track"]],[iU],ij)).e)[0],iG=iW[1],e.MediaTrackRadioButton=(iK=iQ.c)[0],(0,iK[1])();var pR=cN(pS());function pP(e){return"subtitles"===e.kind||"captions"===e.kind}function pO(e){return pP(e)&&!e.forced}function pM(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function pB(e){if(e){if(e.label&&""!==e.label)return e.label;if(e.height)return""+e.height+"p";if(e.bandwidth){var t=e;if(t.bandwidth)return t.bandwidth>1e7?""+(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?""+(t.bandwidth/1e6).toFixed(1)+"Mbps":""+(t.bandwidth/1e3).toFixed(0)+"kbps";return}}}var pI=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},pN=hq(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return i(t,e),v(t,[{key:"dt",value:function(e,t,r){void 0===r?r=t:void 0!==t&&(u=t);var n=[],i=[],a=0,o=!0,l=!1,s=void 0;try{for(var u,c,h=e[Symbol.iterator]();!(o=(c=h.next()).done);o=!0){var d=c.value;n[a]=u?u(d,a):a,i[a]=r(d,a),a++}}catch(e){l=!0,s=e}finally{try{o||null==h.return||h.return()}finally{if(l)throw s}}return{values:i,keys:n}}},{key:"render",value:function(e,t,r){return this.dt(e,t,r).values}},{key:"update",value:function(e,t){var r,n=b(t,3),i=n[0],a=n[1],o=n[2],l=e._$AH,s=this.dt(i,a,o),u=s.values,c=s.keys;if(!Array.isArray(l))return this.ut=c,u;for(var h,d,p,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,m=l.length-1,_=0,g=u.length-1;v<=m&&_<=g;)if(null===l[v])v++;else if(null===l[m])m--;else if(y[v]===c[_])f[_]=h4(l[v],u[_]),v++,_++;else if(y[m]===c[g])f[g]=h4(l[m],u[g]),m--,g--;else if(y[v]===c[g])f[g]=h4(l[v],u[g]),h3(e,f[g+1],l[v]),v++,g--;else if(y[m]===c[_])f[_]=h4(l[m],u[_]),h3(e,l[v],l[m]),m--,_++;else if(void 0===d&&(d=pI(c,_,g),p=pI(y,v,m)),d.has(y[v]))if(d.has(y[m])){var k=p.get(c[_]),w=void 0!==k?l[k]:null;if(null===w){var x=h3(e,l[v]);h4(x,u[_]),f[_]=x}else f[_]=h4(w,u[_]),h3(e,l[v],w),l[k]=null;_++}else h7(l[m]),m--;else h7(l[v]),v++;for(;_<=g;){var E=h3(e,f[g+1]);h4(E,u[_]),f[_++]=E}for(;v<=m;){var T=l[v++];null!==T&&h7(T)}return this.ut=c,void 0===(r=f)&&(r=h8),e._$AH=r,hc}}]),t}(hF));function p$(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return p$=function(){return e},e}function pD(){var e=a(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return pD=function(){return e},e}function pq(){var e=a(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return pq=function(){return e},e}function pF(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return pF=function(){return e},e}var pU=["addtrack","removetrack"];function pj(){var e=a(["<slot>","</slot>"]);return pj=function(){return e},e}e.TrackRadioGroup=void 0,iY=hR("theoplayer-track-radio-group"),iJ=dD(["player"]),i0=hB(),i1=hM({reflect:!0,type:String,attribute:hV.TRACK_TYPE}),i2=hM({reflect:!0,type:Boolean,attribute:hV.SHOW_OFF}),new(iZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,iX(),t}return i(t,e),t}(l),eP=h0("____private__tracksList_1"),eO=h0("____private_showOffButton_2"),eM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eP,{writable:!0,value:void 0}),Object.defineProperty(t,eO,{writable:!0,value:void 0}),i4(t),t._trackType="audio",hJ(t,eP)[eP]=i5(t),hJ(t,eO)[eO]=i3(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(d8("change",{bubbles:!0}))},t}i(t,e);var r=t.prototype;return r._getTracksList=function(){if(void 0!==this._player){var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks:void 0}},r._updateTracksList=function(){var e=this._tracksList,t=this._getTracksList();e!==t&&(null==e||e.removeEventListener(pU,this._updateTracks),null==t||t.addEventListener(pU,this._updateTracks),this._tracksList=t)},r._getTracks=function(){if(void 0===this._player)return[];var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks.filter(pO):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hu(pF(),this._onChange,this.showOffButton&&t?hu(p$(),this._tracksList):void 0,pN(e,function(e){return e.uid},function(e){return t?hu(pD(),e):hu(pq(),e)}))},v(t,[{key:"_tracksList",get:function(){return hJ(this,eP)[eP]},set:function(e){hJ(this,eP)[eP]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return hJ(this,eO)[eO]},set:function(e){hJ(this,eO)[eO]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(hL),i5=(eS=(eL=o(eM,[[i0,1,"_tracksList"],[i1,4,"trackType"],[i2,1,"showOffButton"]],[iY,iJ],hL)).e)[0],i3=eS[1],i4=eS[2],e.TrackRadioGroup=(eR=eL.c)[0],iX=eR[1],eM.styles=[pR],iZ);var pz=["change","update"];e.TextTrackRadioButton=void 0,i8=hR("theoplayer-text-track-radio-button"),i6=hB(),i9=hM({reflect:!1,attribute:!1});var pV=h0("____private__trackLabel_1"),pH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pV,{writable:!0,value:void 0}),t._track=void at(t),hJ(t,pV)[pV]=ae(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label;if(t)return t;var r=e.language;return r&&(dR(r)||r)||""}(this._track):"",this.checked=!!this._track&&"showing"===this._track.mode},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){return hu(pj(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return hJ(this,pV)[pV]},set:function(e){hJ(this,pV)[pV]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pz,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pz,this._onTrackChange))}}]),t}(i7=e.RadioButton);function pG(){var e=a(["<slot>Off</slot>"]);return pG=function(){return e},e}ae=(an=(ar=o(pH,[[i6,1,"_trackLabel"],[i9,4,"track"]],[i8],i7)).e)[0],at=an[1],e.TextTrackRadioButton=(ai=ar.c)[0],(0,ai[1])();var pQ=["change"];e.TextTrackOffRadioButton=void 0,aa=hR("theoplayer-text-track-off-radio-button"),al=hM({reflect:!1,attribute:!1});var pW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._trackList=void as(t),t._onTrackChange=function(){t._updateFromTrackList()},t}i(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return pO(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=d_(e);!(t=r()).done;){var n=t.value;pP(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hu(pG())},v(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(pQ,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(pQ,this._onTrackChange)}}]),t}(ao=e.RadioButton);function pK(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}[part=audio],[part=subtitles],theoplayer-track-radio-group{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:0}[part=content]{-ms-grid-columns:1fr;display:-ms-grid;display:grid;grid-template-columns:1fr;min-height:0}:host([has-audio][has-subtitles]) [part=content]{-ms-grid-columns:1fr 10px 1fr;grid-template-columns:1fr 10px 1fr}:host([has-audio][has-subtitles]) [part=audio]{-ms-grid-column:1;grid-column:1}:host([has-audio][has-subtitles]) [part=subtitles]{-ms-grid-column:3;grid-column:3}:host(:not([has-audio])) [part=audio],:host(:not([has-subtitles])) [part=subtitles]{display:none!important}[part=audio],[part=subtitles]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-self:stretch;-ms-flex-direction:column;flex-direction:column;text-align:center}h2{margin:0 0 .5em}theoplayer-track-radio-group{overflow-y:auto}"]);return pK=function(){return e},e}as=(au=o(pW,[[al,4,"trackList"]],[aa],ao)).e[0],e.TextTrackOffRadioButton=(ac=au.c)[0],(0,ac[1])();var pZ=cN(pK());function pY(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}"]);return pY=function(){return e},e}var pJ=cN(pY());function pX(){var e=a(["table{border-collapse:collapse;table-layout:auto}table,table td,table tr{margin:0;padding:0}table td>*{font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px)}table td:first-child{white-space:nowrap;width:0}table td:last-child{text-align:center}table td>theoplayer-menu-button{display:-webkit-box;display:-ms-flexbox;display:flex}"]);return pX=function(){return e},e}var p0=cN(pX());function p1(e){var t,r;return e?dS(e,"rgb")?(t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)$/i))?{r_:parseInt(t[1],10),g_:parseInt(t[2],10),b_:parseInt(t[3],10),a_:t[4]?parseFloat(t[4]):1}:null:dS(e,"#")?(r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?{r_:parseInt(r[1],16),g_:parseInt(r[2],16),b_:parseInt(r[3],16),a_:1}:null:null:null}function p2(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function p5(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function p3(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var p4=p1("#ffffff"),p8=p1("#000000"),p7=[["White","rgb(255,255,255)"],["Yellow","rgb(255,255,0)"],["Green","rgb(0,255,0)"],["Cyan","rgb(0,255,255)"],["Blue","rgb(0,0,255)"],["Magenta","rgb(255,0,255)"],["Red","rgb(255,0,0)"],["Black","rgb(0,0,0)"]],p6=[["Monospace Serif",'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'],["Proportional Serif",'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'],["Monospace Sans",'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'],["Proportional Sans",'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif']],p9=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function ye(){var e=a(["<span>","</span>"]);return ye=function(){return e},e}e.TextTrackStyleDisplay=void 0,ah=hR("theoplayer-text-track-style-display"),ad=dD(["player"]),ap=hM({reflect:!0,type:String,attribute:hV.PROPERTY}),ay=hM({reflect:!1,attribute:!1});var yt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,af(t),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.render=function(){return hu(ye(),this.renderValue())},r.renderValue=function(){if(void 0===this._player)return"";var e=this.property;switch(e){case"fontFamily":var t=this._player.textTrackStyle.fontFamily;if(!t)return"Default";var r=dC(p6,function(e){return e[0],e[1]===t});return r?r[0]:"Custom";case"fontColor":case"backgroundColor":case"windowColor":return function(e){if(!e)return"Default";var t=p1(e);if(t){var r=p5(t),n=dC(p7,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return yr(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return yr(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return yr(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=dC(p9,function(e){return e[0],e[1]===n});return i?i[0]:"Custom";default:return this._player.textTrackStyle[e]||"Default"}},v(t,[{key:"property",get:function(){return this._property},set:function(e){this._property=e,this._updateFromPlayer()}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),t}(hL);function yr(e){if(!e)return"Default";var t=p1(e);return t?""+100*t.a_+"%":"Custom"}function yn(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yn=function(){return e},e}function yi(e,t,r){var n,i,a,o=null!=(i=null==(n=p1(t))?void 0:n.a_)?i:1;if(""!==e||1!==o)return p2(p3(null!=(a=p1(e))?a:r,o))}function ya(e,t,r){var n,i=null!=(n=p1(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return p2(p3(i,""==e?1:Number(e)/100))}function yo(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yo=function(){return e},e}function yl(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yl=function(){return e},e}function ys(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return ys=function(){return e},e}function yu(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yu=function(){return e},e}function yc(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yc=function(){return e},e}function yh(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yh=function(){return e},e}function yd(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yd=function(){return e},e}function yp(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yp=function(){return e},e}function yy(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yy=function(){return e},e}function yf(){var e=a(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Subtitle options</slot></span><theoplayer-text-track-style-reset-button class="theoplayer-menu-heading-button" slot="heading"></theoplayer-text-track-style-reset-button><table><tr><td><span>Font family</span></td><td><theoplayer-menu-button menu="font-family-menu"><theoplayer-text-track-style-display property="fontFamily"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font color</span></td><td><theoplayer-menu-button menu="font-color-menu"><theoplayer-text-track-style-display property="fontColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font opacity</span></td><td><theoplayer-menu-button menu="font-opacity-menu"><theoplayer-text-track-style-display property="fontOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font size</span></td><td><theoplayer-menu-button menu="font-size-menu"><theoplayer-text-track-style-display property="fontSize"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Background color</span></td><td><theoplayer-menu-button menu="background-color-menu"><theoplayer-text-track-style-display property="backgroundColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Background opacity</span></td><td><theoplayer-menu-button menu="background-opacity-menu"><theoplayer-text-track-style-display property="backgroundOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Window color</span></td><td><theoplayer-menu-button menu="window-color-menu"><theoplayer-text-track-style-display property="windowColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Window opacity</span></td><td><theoplayer-menu-button menu="window-opacity-menu"><theoplayer-text-track-style-display property="windowOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Character edge style</span></td><td><theoplayer-menu-button menu="edge-style-menu"><theoplayer-text-track-style-display property="edgeStyle"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="font-family-menu" menu-close-on-input hidden><span slot="heading">Font family</span><theoplayer-text-track-style-radio-group property="fontFamily">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">Font color</span><theoplayer-text-track-style-radio-group property="fontColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">Font opacity</span><theoplayer-text-track-style-radio-group property="fontOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">Font size</span><theoplayer-text-track-style-radio-group property="fontSize">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">Background color</span><theoplayer-text-track-style-radio-group property="backgroundColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">Background opacity</span><theoplayer-text-track-style-radio-group property="backgroundOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">Window color</span><theoplayer-text-track-style-radio-group property="windowColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">Window opacity</span><theoplayer-text-track-style-radio-group property="windowOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">Character edge style</span><theoplayer-text-track-style-radio-group property="edgeStyle">',"</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return yf=function(){return e},e}af=(av=o(yt,[[ap,4,"property"],[ay,4,"player"]],[ah,ad],hL)).e[0],e.TextTrackStyleDisplay=(am=av.c)[0],(0,am[1])(),e.TextTrackStyleRadioGroup=void 0,ab=hR("theoplayer-text-track-style-radio-group"),ag=dD(["player"]),aw=hM({reflect:!0,type:String,attribute:hV.PROPERTY}),ax=hM({reflect:!1,attribute:!1}),aE=hM({reflect:!1,attribute:!1}),new(a_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ak(),t}return i(t,e),t}(l),eN=function(t){function r(){var e;return e=t.apply(this,arguments)||this,aT(e),e._radioGroupRef=da(),e._property="fontColor",e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=t.value)},e._updateFromPlayer=function(){if(void 0!==e._player)switch(e.property){case"fontColor":var t,r,n=e._player.textTrackStyle.fontColor;e.value=n?p5(null!=(r=p1(n))?r:p4):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?p5(null!=(i=p1(a))?i:p8):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?p5(null!=(o=p1(l))?o:p8):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(u=null==(s=p1(c))?void 0:s.a_)?u:1)*100):"";break;case"backgroundOpacity":var h,d,p=e._player.textTrackStyle.backgroundColor;e.value=p?String((null!=(d=null==(h=p1(p))?void 0:h.a_)?d:1)*100):"";break;case"windowOpacity":var y,f,v=e._player.textTrackStyle.windowColor;e.value=v?String((null!=(f=null==(y=p1(v))?void 0:y.a_)?f:1)*100):"";break;default:e.value=null!=(t=e._player.textTrackStyle[e.property])?t:""}},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;x(t,e.RadioGroup)||customElements.upgrade(t),t.value=this.value},n._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=yi(this.value,this._player.textTrackStyle.fontColor,p4);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=yi(this.value,this._player.textTrackStyle.backgroundColor,p8);break;case"windowColor":this._player.textTrackStyle.windowColor=yi(this.value,this._player.textTrackStyle.windowColor,p8);break;case"fontOpacity":this._player.textTrackStyle.fontColor=ya(this.value,this._player.textTrackStyle.fontColor,p4);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=ya(this.value,this._player.textTrackStyle.backgroundColor,p8);break;case"windowOpacity":this._player.textTrackStyle.windowColor=ya(this.value,this._player.textTrackStyle.windowColor,p8);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return hu(yn(),du(this._radioGroupRef),this._onChange)},v(r,[{key:"property",get:function(){return this._property},set:function(e){this._property!==e&&(this._property=e,this._updateFromPlayer())}},{key:"value",get:function(){return this._value},set:function(e){if(this._value!==e){this._value=e,this._updateToPlayer();var t=this._radioGroupRef.value;t&&(t.value=e),this.dispatchEvent(d8("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),r}(hL),aT=(eB=o(eN,[[aw,4,"property"],[ax,4,"value"],[aE,4,"player"]],[ab,ag],hL)).e[0],e.TextTrackStyleRadioGroup=(eI=eB.c)[0],ak=eI[1],eN.styles=[pR],a_);var yv=[{label:"Default",value:""},{label:"White",value:"rgb(255,255,255)"},{label:"Yellow",value:"rgb(255,255,0)"},{label:"Green",value:"rgb(0,255,0)"},{label:"Cyan",value:"rgb(0,255,255)"},{label:"Blue",value:"rgb(0,0,255)"},{label:"Magenta",value:"rgb(255,0,255)"},{label:"Red",value:"rgb(255,0,0)"},{label:"Black",value:"rgb(0,0,0)"}],ym=[{label:"Default",value:""},{label:"Monospace Serif",value:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'},{label:"Proportional Serif",value:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'},{label:"Monospace Sans",value:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'},{label:"Proportional Sans",value:'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}],y_=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],yb=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],yg=[{label:"Default",value:""},{label:"None",value:"none"},{label:"Drop shadow",value:"dropshadow"},{label:"Raised",value:"raised"},{label:"Depressed",value:"depressed"},{label:"Uniform",value:"uniform"}];function yk(){var e=a(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Language</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>Audio</h2><theoplayer-track-radio-group track-type="audio"></theoplayer-track-radio-group></div><div part="subtitles"><h2>Subtitles</h2><theoplayer-track-radio-group track-type="subtitles" show-off></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu"></theoplayer-text-track-style-menu>']);return yk=function(){return e},e}e.TextTrackStyleMenu=void 0,aC=hR("theoplayer-text-track-style-menu"),new(aA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aL(),t}return i(t,e),t}(l),eD=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(yf(),ym.map(function(e){var t=e.label,r=e.value;return hu(yo(),r,t)}),yv.map(function(e){var t=e.label,r=e.value;return hu(yl(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hu(ys(),r,t)}),y_.map(function(e){var t=e.label,r=e.value;return hu(yu(),r,t)}),yv.map(function(e){var t=e.label,r=e.value;return hu(yc(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hu(yh(),r,t)}),yv.map(function(e){var t=e.label,r=e.value;return hu(yd(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hu(yp(),r,t)}),yg.map(function(e){var t=e.label,r=e.value;return hu(yy(),r,t)}))},t}(aS=e.MenuGroup),e.TextTrackStyleMenu=(e$=o(eD,[],[aC],aS).c)[0],aL=e$[1],eD.styles=[].concat(e.MenuGroup.styles,[p0,pJ]),aA);var yw=["addtrack","removetrack"];function yx(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yx=function(){return e},e}e.LanguageMenu=void 0,aP=hR("theoplayer-language-menu"),aO=dD(["player"]),aI=hM({state:!0}),aN=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_AUDIO}),a$=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_SUBTITLES}),new(aR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aM(),t}return i(t,e),t}(l),ej=h0("____private__hasAudioTracks_1"),ez=h0("____private__hasSubtitles_2"),eV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ej,{writable:!0,value:void 0}),Object.defineProperty(t,ez,{writable:!0,value:void 0}),hJ(t,ej)[ej]=(aF(t),aD(t,!1)),hJ(t,ez)[ez]=aq(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(r=null==(e=t._player)?void 0:e.audioTracks)?r:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(r=null==(e=t._player)?void 0:e.textTracks.filter(pO))?r:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){return hu(yk())},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(yw,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(yw,this._updateTextTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateAudioTracks(),this._updateTextTracks(),null==(n=this._audioTrackList)||n.addEventListener(yw,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(yw,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return hJ(this,ej)[ej]},set:function(e){hJ(this,ej)[ej]=e}},{key:"_hasSubtitles",get:function(){return hJ(this,ez)[ez]},set:function(e){hJ(this,ez)[ez]=e}}]),t}(aB=e.MenuGroup),aD=(eF=(eq=o(eV,[[aI,4,"player"],[aN,1,"_hasAudioTracks"],[a$,1,"_hasSubtitles"]],[aP,aO],aB)).e)[0],aq=eF[1],aF=eF[2],e.LanguageMenu=(eU=eq.c)[0],aM=eU[1],eV.styles=[].concat(e.MenuGroup.styles,[pZ]),aR);var yE=["addtrack","removetrack"];e.LanguageMenuButton=void 0,aU=hR("theoplayer-language-menu-button"),aj=dD(["player"]),aV=hM({reflect:!1,attribute:!1});var yT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aH(t),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(pO));dP(t,hV.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open language menu")},r.render=function(){return hu(yx(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(yE,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(yE,this._updateTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateTracks(),null==(n=this._audioTrackList)||n.addEventListener(yE,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(yE,this._updateTracks))}}]),t}(az=e.MenuButton);function yA(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yA=function(){return e},e}function yC(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yC=function(){return e},e}aH=(aG=o(yT,[[aV,4,"player"]],[aU,aj],az)).e[0],e.LanguageMenuButton=(aQ=aG.c)[0],(0,aQ[1])(),e.PlaybackRateRadioGroup=void 0,aK=hR("theoplayer-playback-rate-radio-group"),aZ=dD(["player"]),aJ=hB(),aX=hB(),new(aW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aY(),t}return i(t,e),t}(l),eQ=function(t){function r(){var e;return e=t.apply(this,arguments)||this,a0(e),e._radioGroupRef=da(),e._value=1,e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=Number(t.value))},e._updateFromPlayer=function(){void 0!==e._player&&(e.value=e._player.playbackRate)},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;x(t,e.RadioGroup)||customElements.upgrade(t),t.value=String(this.value)},n.render=function(){return hu(yA(),du(this._radioGroupRef),this._onChange)},v(r,[{key:"value",get:function(){return this._value},set:function(e){if(e=Number(e),this._value!==e){this._value=e,void 0!==this._player&&(this._player.playbackRate=e);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(d8("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("ratechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("ratechange",this._updateFromPlayer))}}]),r}(hL),a0=(eH=o(eQ,[[aJ,4,"value"],[aX,4,"player"]],[aK,aZ],hL)).e[0],e.PlaybackRateRadioGroup=(eG=eH.c)[0],aY=eG[1],eQ.styles=[pR],aW),e.PlaybackRateMenuButton=void 0,a1=hR("theoplayer-playback-rate-menu-button");var yL=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hu(yC(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 96 960 960" height="24" width="24"><path d="M418 716q24 24 61.435 23.5T536 712l171.826-250.174q12.392-19.087-1.652-32.283-14.044-13.195-33.131-.804L424 600q-27 19.13-28.5 55.565T418 716ZM204 915.218q-25.522 0-49.609-12.826-24.087-12.826-36.783-34.783-26.565-46.696-41.696-100.022Q60.782 714.261 60.782 656q0-86.391 32.913-162.566 32.913-76.174 89.956-133.217 57.044-57.044 133.436-90.24Q393.478 236.782 480 236.782q43.87 0 85.87 8.934 42 8.935 81 26.239 28.913 12.696 33.826 38.762 4.913 26.065-13.044 48.153-10.261 12.391-28.217 15.521-17.957 3.131-32.914-3.565-31.434-14.869-62.043-21.456-30.608-6.587-64.478-6.587-129.043 0-221.13 91.522Q166.783 525.826 166.783 656q0 42 10.935 79.891 10.934 37.891 30.804 73.326h542.956q23-38 32.37-75.608Q793.217 696 793.217 652q0-31.609-6.804-62.565-6.804-30.956-20.543-60.826-7.566-16.957-3.718-35.196 3.848-18.239 17.674-29.5 21.653-18.522 47.153-10.261t36.761 35.609q16.305 38 25.457 78.217 9.152 40.218 10.021 82.522 0 58.696-14.348 113.522-14.347 54.826-42.478 104.087-14.391 23.087-37.631 35.348-23.239 12.261-48.761 12.261H204ZM480 576Z"/></svg>\n'))},t}(a2=e.MenuButton);function yS(){var e=a(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return yS=function(){return e},e}function yR(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yR=function(){return e},e}function yP(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return yP=function(){return e},e}e.PlaybackRateMenuButton=(a5=o(yL,[],[a1],a2).c)[0],(0,a5[1])();var yO=[.25,.5,1,1.25,1.5,2];e.PlaybackRateMenu=void 0,a3=hR("theoplayer-playback-rate-menu");var yM=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hu(yS())},r.renderMenuContent=function(){return hu(yP(),yO.map(function(e){return hu(yR(),e,1===e?"Normal":""+e+"x")}))},t}(a4=e.Menu);function yB(){var e=a(["<span>","</span>"]);return yB=function(){return e},e}e.PlaybackRateMenu=(a8=o(yM,[],[a3],a4).c)[0],(0,a8[1])(),e.PlaybackRateDisplay=void 0,a7=hR("theoplayer-playback-rate-display"),a6=dD(["playbackRate"]),a9=hB();var yI=h0("____private_playbackRate_1"),yN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yI,{writable:!0,value:void 0}),hJ(t,yI)[yI]=(ot(t),oe(t,1)),t}return i(t,e),t.prototype.render=function(){return hu(yB(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},v(t,[{key:"playbackRate",get:function(){return hJ(this,yI)[yI]},set:function(e){hJ(this,yI)[yI]=e}}]),t}(hL);function y$(){var e=a(["<span>","</span>"]);return y$=function(){return e},e}oe=(on=(or=o(yN,[[a9,1,"playbackRate"]],[a7,a6],hL)).e)[0],ot=on[1],e.PlaybackRateDisplay=(oi=or.c)[0],(0,oi[1])(),e.ActiveQualityDisplay=void 0,oa=hR("theoplayer-active-quality-display"),oo=dD(["activeVideoQuality","targetVideoQualities"]),ol=hM({reflect:!1,attribute:!1}),os=hM({reflect:!1,attribute:!1});var yD=h0("____private_activeVideoQuality_1"),yq=h0("____private_targetVideoQualities_2"),yF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yD,{writable:!0,value:void 0}),Object.defineProperty(t,yq,{writable:!0,value:void 0}),hJ(t,yD)[yD]=(oh(t),ou(t,void 0)),hJ(t,yq)[yq]=oc(t,void 0),t}return i(t,e),t.prototype.render=function(){var e,t=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,r=t?this.targetVideoQualities[0]:void 0,n=pB(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hu(y$(),e)},v(t,[{key:"activeVideoQuality",get:function(){return hJ(this,yD)[yD]},set:function(e){hJ(this,yD)[yD]=e}},{key:"targetVideoQualities",get:function(){return hJ(this,yq)[yq]},set:function(e){hJ(this,yq)[yq]=e}}]),t}(hL);function yU(){var e=a(["<slot>","</slot>"]);return yU=function(){return e},e}ou=(op=(od=o(yF,[[ol,1,"activeVideoQuality"],[os,1,"targetVideoQualities"]],[oa,oo],hL)).e)[0],oc=op[1],oh=op[2],e.ActiveQualityDisplay=(oy=od.c)[0],(0,oy[1])();var yj=["activequalitychanged","targetqualitychanged"],yz=["update"];e.QualityRadioButton=void 0,of=hR("theoplayer-quality-radio-button"),om=hB(),o_=hM({reflect:!1,attribute:!1}),ob=hM({reflect:!1,attribute:!1});var yV=h0("____private__qualityLabel_1"),yH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yV,{writable:!0,value:void 0}),t._track=void ok(t),t._quality=void 0,hJ(t,yV)[yV]=og(t,""),t._updateFromTrack=function(){if(void 0!==t._track){var e=t._track.targetQuality;Array.isArray(e)&&(e=1===e.length?e[0]:void 0),void 0===t._quality?t.checked=void 0===e:t.checked=e===t._quality}t._updateFromQuality()},t._updateFromQuality=function(){var e;t._qualityLabel=null!=(e=pB(t._quality))?e:"Automatic"},t}i(t,e);var r=t.prototype;return r.handleChange=function(){this._updateTargetQuality()},r._updateTargetQuality=function(){this._track&&this.checked&&(this._track.targetQuality=this._quality)},r.render=function(){return hu(yU(),this._qualityLabel)},v(t,[{key:"_qualityLabel",get:function(){return hJ(this,yV)[yV]},set:function(e){hJ(this,yV)[yV]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yj,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yj,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(yz,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(yz,this._updateFromQuality))}}]),t}(ov=e.RadioButton);function yG(){var e=a(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return yG=function(){return e},e}function yQ(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return yQ=function(){return e},e}og=(ox=(ow=o(yH,[[om,1,"_qualityLabel"],[o_,4,"track"],[ob,4,"quality"]],[of],ov)).e)[0],ok=ox[1],e.QualityRadioButton=(oE=ow.c)[0],(0,oE[1])();var yW=["addtrack","removetrack","change"];function yK(){var e=a(["<slot>Reset</slot>"]);return yK=function(){return e},e}e.QualityRadioGroup=void 0,oA=hR("theoplayer-quality-radio-group"),oC=dD(["player"]),oS=hB(),oR=hB(),new(oT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oL(),t}return i(t,e),t}(l),eY=h0("____private__track_1"),eJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eY,{writable:!0,value:void 0}),hJ(t,eY)[eY]=(oO(t),oP(t)),t._onChange=function(){t.dispatchEvent(d8("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?dC(t._player.videoTracks,function(e){return e.enabled}):void 0;t._track!==n&&(null==(e=t._track)||e.removeEventListener("update",t._update),t._track=n,null==(r=t._track)||r.addEventListener("update",t._update),t._update())},t._update=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.firstUpdated=function(){this._updateTrack()},r.render=function(){var e=this,t=this._track?this._track.qualities:[];return hu(yQ(),this._onChange,this._track,void 0,1!==t.length&&pN(t,function(e){return e.uid},function(t){return hu(yG(),e._track,t)}))},v(t,[{key:"_track",get:function(){return hJ(this,eY)[eY]},set:function(e){hJ(this,eY)[eY]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(yW,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(yW,this._updateTrack))}}]),t}(hL),oP=(eK=(eW=o(eJ,[[oS,1,"_track"],[oR,4,"player"]],[oA,oC],hL)).e)[0],oO=eK[1],e.QualityRadioGroup=(eZ=eW.c)[0],oL=eZ[1],eJ.styles=[pR],oT),e.TextTrackStyleResetButton=void 0,oM=hR("theoplayer-text-track-style-reset-button"),oB=dD(["player"]);var yZ=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.textTrackStyle;e.fontFamily=void 0,e.fontColor=void 0,e.fontSize=void 0,e.backgroundColor=void 0,e.windowColor=void 0,e.edgeStyle=void 0}},r.render=function(){return hu(yK())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(oI=e.Button);function yY(){var e=a(['<theoplayer-menu><span slot="heading"><slot name="heading">Settings</slot></span><table><tr><td><span>Quality</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>Playback speed</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display></theoplayer-playback-rate-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="quality-menu" menu-close-on-input hidden><span slot="heading">Quality</span><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" menu-close-on-input hidden><span slot="heading">Playback speed</span></theoplayer-playback-rate-menu>']);return yY=function(){return e},e}e.TextTrackStyleResetButton=(oN=o(yZ,[],[oM,oB],oI).c)[0],(0,oN[1])(),e.SettingsMenu=void 0,oD=hR("theoplayer-settings-menu"),new(o$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oq(),t}return i(t,e),t}(l),e0=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(yY())},t}(oF=e.MenuGroup),e.SettingsMenu=(eX=o(e0,[],[oD],oF).c)[0],oq=eX[1],e0.styles=[].concat(e.MenuGroup.styles,[p0]),o$);var yJ='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M14 22.475h-4q-.475 0-.863-.337-.387-.338-.437-.813l-.3-2.2q-.2-.075-.4-.2t-.375-.25l-2.05.85q-.475.2-.937.05-.463-.15-.738-.6l-1.975-3.45q-.25-.45-.162-.95.087-.5.487-.775l1.775-1.35Q4 12.325 4 12.225v-.45q0-.1.025-.225L2.25 10.2q-.4-.3-.487-.8-.088-.5.162-.925L3.9 5.025q.25-.45.725-.588.475-.137.95.038l2.075.875q.175-.15.363-.263.187-.112.387-.187l.3-2.225q.05-.5.425-.825.375-.325.875-.325h4q.5 0 .875.325t.425.825l.3 2.225q.2.075.4.187.2.113.375.263l2.05-.875q.475-.175.938-.025.462.15.737.575l2 3.45q.25.45.15.95-.1.5-.5.775l-1.775 1.35v.675q0 .1-.025.225l1.775 1.35q.4.275.487.775.088.5-.162.95l-2 3.45q-.25.425-.725.587-.475.163-.95-.037l-2.025-.85q-.175.125-.362.25-.188.125-.388.2l-.3 2.2q-.05.475-.425.813-.375.337-.875.337ZM12 15.5q1.45 0 2.475-1.025Q15.5 13.45 15.5 12q0-1.45-1.025-2.475Q13.45 8.5 12 8.5q-1.45 0-2.475 1.025Q8.5 10.55 8.5 12q0 1.45 1.025 2.475Q10.55 15.5 12 15.5Z"/></svg>\n';function yX(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yX=function(){return e},e}e.SettingsMenuButton=void 0,oU=hR("theoplayer-settings-menu-button");var y0=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open settings menu")},r.render=function(){return hu(yX(),df(yJ))},t}(oj=e.MenuButton);function y1(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return y1=function(){return e},e}e.SettingsMenuButton=(oz=o(y0,[],[oU],oj).c)[0],(0,oz[1])();var y2=cN(y1()),y5="theoplayerfullscreenenter",y3="theoplayerfullscreenexit";function y4(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return y4=function(){return e},e}function y8(e,t){void 0!==window.ShadyCSS&&!1===window.ShadyCSS.nativeCss?window.ShadyCSS.styleSubtree(e,t):null!=t&&function(e,t){var r=e.style,n=!0,i=!1,a=void 0;try{for(var o,l=Object.entries(t)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=b(o.value,2),u=s[0],c=s[1];r.setProperty(u,c)}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}(e,t)}function y7(){var e=a([":host{--thumb-height:var(--theoplayer-range-thumb-height,10px);--track-height:var(--theoplayer-range-track-height,4px);--theoplayer-range-padding:var(--theoplayer-control-padding,10px);background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:0;height:44px;height:calc(var(--theoplayer-control-height, 24px) + var(--theoplayer-range-padding)*2);padding-left:10px;padding-left:var(--theoplayer-range-padding-left,var(--theoplayer-range-padding));padding-right:10px;padding-right:var(--theoplayer-range-padding-right,var(--theoplayer-range-padding));pointer-events:auto;position:relative;-webkit-transition:background .15s linear;transition:background .15s linear;vertical-align:middle;width:100px}:host([hidden]){display:none!important}:host(:hover:not([disabled])){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}[part=container]{height:100%;position:relative}[part=background],[part=pointer]{border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);height:var(--track-height);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%));transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%))}[part=background]{background:hsla(0,0%,100%,.2);background:var(--theoplayer-range-track-background,hsla(0,0%,100%,.2));min-width:40px;width:100%;width:var(--theoplayer-range-track-width,100%)}[part=pointer]{background:transparent;background:var(--theoplayer-range-track-pointer-background,transparent);border-right:none;border-right:var(--theoplayer-range-track-pointer-border-right,none);opacity:0;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden}:host(:hover:not([disabled])) [part=pointer]{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}input[type=range]{-webkit-appearance:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;min-height:100%;padding:0;position:relative;width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);-webkit-box-shadow:1px 1px 1px transparent;box-shadow:1px 1px 1px transparent;-webkit-box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);margin-top:calc(0px - var(--thumb-height)/2 + var(--track-height)/2);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);-webkit-transform:none;transform:none;-webkit-transform:var(--theoplayer-range-thumb-transform,none);transform:var(--theoplayer-range-thumb-transform,none);-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-moz-range-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);translate:0 0;translate:var(--theoplayer-range-track-translate-x,0) var(--theoplayer-range-track-translate-y,0);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-ms-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}:host([disabled]) input[type=range]::-webkit-slider-thumb{display:none}:host([disabled]) input[type=range]::-moz-range-thumb{display:none}:host([disabled]) input[type=range]::-ms-thumb{display:none}input[type=range]::-webkit-slider-runnable-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-range-track-box-shadow,none);box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);-webkit-transform:translate(0);transform:translate(0);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-moz-range-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-track{background:transparent;background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);color:transparent;cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,input[type=range]::-ms-tooltip{display:none}:host([disabled]) input[type=range]::-webkit-slider-runnable-track{cursor:default}:host([disabled]) input[type=range]::-moz-range-track{cursor:default}:host([disabled]) input[type=range]::-ms-track{cursor:default}input[type=range]:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}input[type=range]:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}input[type=range]:focus::-webkit-slider-runnable-track{outline:0}"]);return y7=function(){return e},e}e.FullscreenButton=void 0,oH=hR("theoplayer-fullscreen-button"),oG=dD(["fullscreen"]),oK=hM({reflect:!0,type:Boolean,attribute:hV.FULLSCREEN}),new(oV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oQ(),t}return i(t,e),t}(l),e3=h0("____private_fullscreen_1"),e4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e3,{writable:!0,value:void 0}),hJ(t,e3)[e3]=(oY(t),oZ(t,!1)),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(this.fullscreen){var e=d7(y3,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=d7(y5,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.fullscreen?"exit fullscreen":"enter fullscreen";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return hu(y4(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'))},v(t,[{key:"fullscreen",get:function(){return hJ(this,e3)[e3]},set:function(e){hJ(this,e3)[e3]=e}}]),t}(oW=e.Button),oZ=(e2=(e1=o(e4,[[oK,1,"fullscreen"]],[oH,oG],oW)).e)[0],oY=e2[1],e.FullscreenButton=(e5=e1.c)[0],oQ=e5[1],e4.styles=[].concat(e.Button.styles,[y2]),oV);var y6=cN(y7()),y9=function(){function e(){this._stops=[["transparent",100]]}var t=e.prototype;return t.add=function(e,t,r){if(!((t=Math.max(t,0))>=(r=Math.min(r,100)))){var n=dL(this._stops,function(e){var r=e[1];return t<=r});if(!(n<0)){var i=this._stops[n],a=i[0],o=i[1],l=[];if(t>0&&l.push([a,t]),l.push([e,r]),r<o)l.push([a,o]),(s=this._stops).splice.apply(s,[].concat([n,1],l));else{for(var s,u,c=n+1;c<this._stops.length&&!(r<this._stops[c][1]);)c++;(u=this._stops).splice.apply(u,[].concat([n,c-n],l))}}}},t.toGradientStops=function(){for(var e,t=[],r=0,n=d_(this._stops);!(e=n()).done;){var i=e.value,a=i[0],o=i[1];o<r||(t.push(a+" "+r+"%"),t.push(a+" "+o+"%"),r=o)}return t.join(", ")},e}(),fe="important",ft=" !"+fe,fr=hq(function(e){function t(e){var r,n;if(y(this,t),r=p(this,t,[e]),1!==e.type||"style"!==e.name||(null==(n=e.strings)?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return r}return i(t,e),v(t,[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n?t:t+((r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase())+":")+n+";"},"")}},{key:"update",value:function(e,t){var r=b(t,1)[0],n=e.element.style;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);var i=!0,a=!1,o=void 0;try{for(var l,s=this.ft[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;null==r[u]&&(this.ft.delete(u),u.includes("-")?n.removeProperty(u):n[u]=null)}}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}for(var c in r){var h=r[c];if(null!=h){this.ft.add(c);var d="string"==typeof h&&h.endsWith(ft);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?fe:""):n[c]=h}}return hc}}]),t}(hF));function fn(){var e=a(['<div part="container"><div part="background"></div><div part="pointer" style="','"></div><input type="range" ',' .min="','" .max="','" .step="','" .value="','" .disabled="','" aria-label="','" aria-valuetext="','" aria-live="','" @input="','" @change="','" @keydown="','"> ',"</div>"]);return fn=function(){return e},e}function fi(){var e=a([""]);return fi=function(){return e},e}function fa(){var e=a(["input[type=range]{direction:ltr}.theoplayer-time-range-preview-rail{bottom:100%;left:0;opacity:0;pointer-events:none;position:absolute;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden;width:1%}:host(:hover:not([disabled])) .theoplayer-time-range-preview-rail{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}[part~=box]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));position:absolute;text-shadow:0 0 4px rgba(0,0,0,.75);text-shadow:var(--theoplayer-preview-text-shadow,0 0 4px rgba(0,0,0,.75));-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]);return fa=function(){return e},e}e.Range=void 0,oX=dD(["deviceType"]),o1=hB(),o2=hM({reflect:!0,type:Boolean,attribute:hV.DISABLED}),o5=hM({reflect:!0,type:Boolean,attribute:hV.HIDDEN}),o3=hM({reflect:!0,type:Boolean,attribute:hV.INERT}),o4=hM({reflect:!1,attribute:!1}),o8=hM({reflect:!0,type:Number,attribute:"min"}),o7=hM({reflect:!0,type:Number,attribute:"max"}),o6=hM({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),o9=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),le=hM({reflect:!0,type:String,attribute:"aria-live"}),new(oJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,o0(),t}return i(t,e),t}(l),e9=h0("____private__pointerWidth_1"),te=h0("____private_step_2"),tt=h0("____private_deviceType_3"),tr=h0("____private_ariaLive_4"),tn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e9,{writable:!0,value:void 0}),Object.defineProperty(t,te,{writable:!0,value:void 0}),Object.defineProperty(t,tt,{writable:!0,value:void 0}),Object.defineProperty(t,tr,{writable:!0,value:void 0}),la(t),t._rangeRef=da(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,hJ(t,e9)[e9]=lt(t,0),hJ(t,te)[te]=lr(t,"any"),hJ(t,tt)[tt]=ln(t,"desktop"),hJ(t,tr)[tr]=li(t,null),t._onInput=function(e){t.value=e.target.valueAsNumber},t._updatePointerBar=function(e){var r=t._rangeRef.value;if(!t.disabled&&!t.inert&&r){var n=r.getBoundingClientRect(),i=(e.clientX-n.left)/n.width;i=Math.max(0,Math.min(1,i)),t.updatePointer_(i,n)}},t._onKeyDown=function(e){t.handleKeyDown_(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateRange(),this.addEventListener("pointermove",this._updatePointerBar)},r.disconnectedCallback=function(){this.removeEventListener("pointermove",this._updatePointerBar)},r.handleInput=function(){this._updateRange()},r._updateRange=function(e){this.hidden||(e||this.updateCachedWidths_(),this.updateBar_())},r.updateBar_=function(){y8(this,{"--theoplayer-range-track-progress-internal":"linear-gradient(to right, "+this.getBarColors().toGradientStops()+")"})},r.getBarColors=function(){var e=this.value,t=this.min,r=this.max,n=(e-t)/(r-t)*100;isNaN(n)&&(n=0);var i=0;t<e&&e<r&&(i=this._thumbWidth*(.5-n/100)/this._rangeWidth*100);var a=new y9;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(t=null==(e=this._rangeRef.value)?void 0:e.offsetWidth)?t:0;r>0&&(this._rangeWidth=r);var n=parseInt(getComputedStyle(this).getPropertyValue("--theoplayer-range-thumb-width")||"10px");n>0&&(this._thumbWidth=n)},r.getMinimumStepForVisibleChange_=function(){var e=this.min,t=this.max-e;return t<=0?NaN:t/this._rangeWidth},r.updatePointer_=function(e,t){this._pointerWidth=e*t.width},r.handleKeyDown_=function(e){"tv"===this.deviceType&&hG(e.keyCode)&&(e.keyCode===hH.LEFT||e.keyCode===hH.RIGHT?e.stopPropagation():(e.keyCode===hH.UP||e.keyCode===hH.DOWN)&&e.preventDefault())},r.render=function(){return hu(fn(),fr({width:""+this._pointerWidth+"px"}),du(this._rangeRef),this.min,this.max,this.step,this.value,this.disabled||this.inert,this.getAriaLabel(),this.getAriaValueText(),this.ariaLive,this._onInput,this._onInput,this._onKeyDown,this.renderRangeExtras())},r.renderRangeExtras=function(){return hu(fi())},v(t,[{key:"_pointerWidth",get:function(){return hJ(this,e9)[e9]},set:function(e){hJ(this,e9)[e9]=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled!==e&&(this._disabled=e,this.setAttribute("aria-disabled",this._disabled?"true":"false"))}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden!==e&&(this._hidden=e,this._updateRange())}},{key:"inert",get:function(){return this._inert},set:function(e){this._inert=e}},{key:"value",get:function(){return this._value},set:function(e){var t=e;isNaN(this.min)||(t=Math.max(this.min,t)),isNaN(this.max)||(t=Math.min(this.max,t)),this._value!==t&&(this._value=t,this.handleInput())}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this._updateRange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._updateRange()}},{key:"step",get:function(){return hJ(this,te)[te]},set:function(e){hJ(this,te)[te]=e}},{key:"deviceType",get:function(){return hJ(this,tt)[tt]},set:function(e){hJ(this,tt)[tt]=e}},{key:"ariaLive",get:function(){return hJ(this,tr)[tr]},set:function(e){hJ(this,tr)[tr]=e}}]),t}(hL),lt=(e7=(e8=o(tn,[[o1,1,"_pointerWidth"],[o2,4,"disabled"],[o5,4,"hidden"],[o3,4,"inert"],[o4,4,"value"],[o8,4,"min"],[o7,4,"max"],[o6,1,"step"],[o9,1,"deviceType"],[le,1,"ariaLive"]],[oX],hL)).e)[0],lr=e7[1],ln=e7[2],li=e7[3],la=e7[4],e.Range=(e6=e8.c)[0],o0=e6[1],tn.styles=[y6],oJ);var fo=cN(fa()),fl="theoplayerpreviewtimechange";function fs(e){return"linear"===e.type}function fu(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}:host([hidden]){display:none!important}canvas{background:#fff;background:var(--theoplayer-preview-thumbnail-background,#fff);border-radius:2px;border-radius:var(--theoplayer-preview-thumbnail-padding,2px);display:none;padding:2px;padding:var(--theoplayer-preview-thumbnail-padding,2px)}"]);return fu=function(){return e},e}var fc=cN(fu());function fh(){var e=a(["<canvas ",' style="','"></canvas>']);return fh=function(){return e},e}var fd=["addtrack","removetrack"];function fp(e){return"metadata"===e.kind&&"thumbnails"===e.label}function fy(){var e=a(["<span>","</span>"]);return fy=function(){return e},e}e.PreviewThumbnail=void 0,ll=hR("theoplayer-preview-thumbnail"),ls=dD(["player","previewTime"]),lc=hB(),lh=hM({reflect:!1,attribute:!1}),ld=hB(),new(lo=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lu(),t}return i(t,e),t}(l),tl=h0("____private__thumbnailVisible_1"),ts=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,tl,{writable:!0,value:void 0}),ly(t),t._canvasRef=da(),t._previewTime=NaN,hJ(t,tl)[tl]=lp(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?dC(t._player.textTracks,fp):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}i(t,e);var r=t.prototype;return r.updateThumbnail_=function(){var e=this._thumbnailTextTrack;if(void 0===e)return void this.hideThumbnail_();"disabled"===e.mode&&(e.mode="hidden");var t=function(e,t){if(0!==e.length){for(var r,n=e[0],i=d_(e);!(r=i()).done;){var a=r.value;if(a.startTime<=t)n=a;else if(t>=a.endTime)break}return n}}(e.cues,this._previewTime);if(void 0===t)return void this.hideThumbnail_();var r=t.content.trim(),n=function(e){var t=e.match(/^(.+)#xywh=(\d+),(\d+),(\d+),(\d+)$/);if(t)return{url:t[1],x:+t[2],y:+t[3],w:+t[4],h:+t[5]}}(r),i=n?n.url:r;if(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)return void this.loadThumbnailImage_(i);this.showThumbnail_(n)},r.loadThumbnailImage_=function(e){var t=this;if(this._thumbnailImageSource.src!==e){var r=function(){t._lastLoadedThumbnailUrl=e,t.updateThumbnail_()};"function"==typeof this._thumbnailImageSource.decode?(this._thumbnailImageSource.src=e,this._thumbnailImageSource.decode().then(r,dw)):(this._thumbnailImageSource.onload=r,this._thumbnailImageSource.src="",this._thumbnailImageSource.src=e)}},r.showThumbnail_=function(e){var t,r=this._canvasRef.value;r&&(null!=this._canvasContext||(this._canvasContext=null!=(t=r.getContext("2d"))?t:void 0),this._canvasContext&&(e?(r.width=e.w,r.height=e.h,this._canvasContext.drawImage(this._thumbnailImageSource,e.x,e.y,e.w,e.h,0,0,e.w,e.h)):(r.width=this._thumbnailImageSource.naturalWidth,r.height=this._thumbnailImageSource.naturalHeight,this._canvasContext.drawImage(this._thumbnailImageSource,0,0)),this._thumbnailVisible=!0))},r.hideThumbnail_=function(){this._thumbnailVisible=!1},r.render=function(){var e={display:this._thumbnailVisible?"block":"none"};return hu(fh(),du(this._canvasRef),fr(e))},v(t,[{key:"_thumbnailVisible",get:function(){return hJ(this,tl)[tl]},set:function(e){hJ(this,tl)[tl]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(fd,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(fd,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(hL),lp=(ta=(ti=o(ts,[[lc,1,"_thumbnailVisible"],[lh,4,"player"],[ld,4,"previewTime"]],[ll,ls],hL)).e)[0],ly=ta[1],e.PreviewThumbnail=(to=ti.c)[0],lu=to[1],ts.styles=[fc],lo);var ff=["timeupdate","seeking","seeked","durationchange"];function fv(){var e=a(['<div class="theoplayer-time-range-preview-rail" style="','"><div part="box preview-box" ','><slot name="preview"><theoplayer-preview-thumbnail></theoplayer-preview-thumbnail><theoplayer-preview-time-display remaining-when-live></theoplayer-preview-time-display></slot></div></div>']);return fv=function(){return e},e}e.PreviewTimeDisplay=void 0,lv=hR("theoplayer-preview-time-display"),lm=dD(["player","previewTime","streamType"]),lb=hB(),lg=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING}),lk=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING_WHEN_LIVE}),lw=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),lx=hM({reflect:!1,attribute:!1}),lE=hB(),new(lf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,l_(),t}return i(t,e),t}(l),td=h0("____private_previewTime_1"),tp=h0("____private_remaining_2"),ty=h0("____private_remainingWhenLive_3"),tf=h0("____private_streamType_4"),tv=h0("____private__endTime_5"),tm=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,td,{writable:!0,value:void 0}),Object.defineProperty(t,tp,{writable:!0,value:void 0}),Object.defineProperty(t,ty,{writable:!0,value:void 0}),Object.defineProperty(t,tf,{writable:!0,value:void 0}),Object.defineProperty(t,tv,{writable:!0,value:void 0}),hJ(t,td)[td]=(lR(t),lT(t,NaN)),hJ(t,tp)[tp]=lA(t,!1),hJ(t,ty)[ty]=lC(t,!1),hJ(t,tf)[tf]=lL(t,"vod"),hJ(t,tv)[tv]=lS(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.duration:NaN,n=null==(e=t._player)?void 0:e.seekable;t._endTime=isFinite(r)?r:n&&n.length>0?n.end(0):NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=this.previewTime,t=this._endTime,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType;return r&&(e=-((t||0)-e)),hu(fy(),dJ(e,t,r))},v(t,[{key:"previewTime",get:function(){return hJ(this,td)[td]},set:function(e){hJ(this,td)[td]=e}},{key:"remaining",get:function(){return hJ(this,tp)[tp]},set:function(e){hJ(this,tp)[tp]=e}},{key:"remainingWhenLive",get:function(){return hJ(this,ty)[ty]},set:function(e){hJ(this,ty)[ty]=e}},{key:"streamType",get:function(){return hJ(this,tf)[tf]},set:function(e){hJ(this,tf)[tf]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(ff,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(ff,this._updateFromPlayer))}},{key:"_endTime",get:function(){return hJ(this,tv)[tv]},set:function(e){hJ(this,tv)[tv]=e}}]),t}(hL),lT=(tc=(tu=o(tm,[[lb,1,"previewTime"],[lg,1,"remaining"],[lk,1,"remainingWhenLive"],[lw,1,"streamType"],[lx,4,"player"],[lE,1,"_endTime"]],[lv,lm],hL)).e)[0],lA=tc[1],lC=tc[2],lL=tc[3],lS=tc[4],lR=tc[5],e.PreviewTimeDisplay=(th=tu.c)[0],l_=th[1],tm.styles=[dZ],lf);var fm=["timeupdate","durationchange","ratechange","seeking","seeked"],f_=["play","pause","ended","durationchange","readystatechange","error"],fb=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];e.TimeRange=void 0,lO=hR("theoplayer-time-range"),lM=dD(["player","streamType","deviceType"]),lN=hM({reflect:!1,attribute:!1}),l$=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),lD=hM({reflect:!0,type:Boolean,attribute:hV.SHOW_AD_MARKERS}),lq=hB(),new(lP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lB(),t}return i(t,e),t}(l),tk=h0("____private__previewRailTransform_1"),tw=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,tk,{writable:!0,value:void 0}),lU(t),t._previewBoxEl=da(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,t._updateFromPlayer=function(){if(void 0!==t._player){t._lastUpdateTime=performance.now(),t._lastCurrentTime=t._player.currentTime,t._lastPlaybackRate=t._player.playbackRate;var e,r,n=t._player.seekable,i=t._lastCurrentTime;0!==n.length?(e=n.start(0),r=n.end(0)):(e=0,r=t._player.duration),isFinite(t._lastCurrentTime)||(i=t._player.duration===1/0?r:e),t.min=e,t.max=r,t.value=i,t.updateDisabled_(n)}},t._pauseOnScrubStart=function(){t._pausedWhileScrubbing||t.disabled||t.inert||void 0===t._player||t._player.paused||(t._pausedWhileScrubbing=!0,t._player.pause(),document.addEventListener("mouseup",t._playOnScrubEnd),document.addEventListener("pointerup",t._playOnScrubEnd),document.addEventListener("pointercancel",t._playOnScrubEnd))},t._playOnScrubEnd=function(){t._pausedWhileScrubbing&&(t._pausedWhileScrubbing=!1,document.removeEventListener("mouseup",t._playOnScrubEnd),document.removeEventListener("pointerup",t._playOnScrubEnd),document.removeEventListener("pointercancel",t._playOnScrubEnd),void 0!==t._player&&t._player.paused&&t._player.play())},t._toggleAutoAdvance=function(){t.shouldAutoAdvance_()?0===t._autoAdvanceId&&(t._updateFromPlayer(),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)):0!==t._autoAdvanceId&&(t._updateFromPlayer(),cancelAnimationFrame(t._autoAdvanceId),t._autoAdvanceId=0)},t._autoAdvanceWhilePlaying=function(){if(!t.shouldAutoAdvance_()){t._autoAdvanceId=0;return}var e=(performance.now()-t._lastUpdateTime)/1e3,r=t._lastCurrentTime+e*t._lastPlaybackRate;Math.abs(r-t.value)>=t.getMinimumStepForVisibleChange_()&&(t.value=r,t._updateRange(!0)),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)},hJ(t,tk)[tk]=lF(t,""),t._onAdChange=function(){t._updateRange()},t.min=0,t.max=1e3,t.ariaLive="off",t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._toggleAutoAdvance()},r.firstUpdated=function(e){var t,r;null==(t=this._rangeRef.value)||t.addEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.addEventListener("pointerdown",this._pauseOnScrubStart)},r.disconnectedCallback=function(){var t,r;e.prototype.disconnectedCallback.call(this),null==(t=this._rangeRef.value)||t.removeEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.removeEventListener("pointerdown",this._pauseOnScrubStart),this._toggleAutoAdvance()},r.updateDisabled_=function(e){void 0===e&&(e=null==(t=this._player)?void 0:t.seekable);var t,r="live"===this.streamType;void 0!==e&&(r||(r=0===e.length)),this.disabled=r},r.getAriaLabel=function(){return"seek"},r.getAriaValueText=function(){var e=d1(this.value),t=d1(this.max);return e&&t?e+" of "+t:"video not loaded, unknown time"},r.handleInput=function(){void 0!==this._player&&this._player.currentTime!==this.value&&(this._player.currentTime=this.value),e.prototype.handleInput.call(this)},r.shouldAutoAdvance_=function(){return this.isConnected&&void 0!==this._player&&!this._player.paused&&!this._player.ended&&!this._player.errorObject&&this._player.readyState>=3&&isFinite(this._lastCurrentTime)&&this.needToUpdateEveryFrame_()},r.needToUpdateEveryFrame_=function(){return this.getMinimumStepForVisibleChange_()<.25*this._lastPlaybackRate},r.updatePointer_=function(t,r){e.prototype.updatePointer_.call(this,t,r);var n=r.left+t*r.width,i=this._previewBoxEl.value;if(i){var a=i.getBoundingClientRect(),o=((n=Math.max(r.left+a.width/2,Math.min(r.right-a.width/2,n)))-r.left)/r.width;this._previewRailTransform="translateX("+(100*o*100).toFixed(6)+"%)"}if(void 0!==this._player){var l=this.min,s=d7(fl,{bubbles:!0,composed:!0,detail:{previewTime:l+t*(this.max-l)}});this.dispatchEvent(s)}},r.getBarColors=function(){var t=e.prototype.getBarColors.call(this);if(!this.showAdMarkers||!this._player||!this._player.ads||this._player.ads.playing)return t;for(var r,n=this.min,i=this.max,a=d_(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(fs)){var l=o.timeOffset;if(l<0&&(l=this._player.duration),n<=l&&l<=i){var s=(l-n)/(i-n)*100,u=void 0,c=void 0;s+1<100?(u=s,c=s+1):(u=99,c=100),t.add("var(--theoplayer-time-range-ad-marker-color, #ffc50f)",u,c)}}}return t},r.handleKeyDown_=function(t){e.prototype.handleKeyDown_.call(this,t),"tv"===this.deviceType&&t.keyCode===hH.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hu(fv(),fr({transform:this._previewRailTransform}),du(this._previewBoxEl))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fm,this._updateFromPlayer),this._player.removeEventListener(f_,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(fb,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(fm,this._updateFromPlayer),this._player.addEventListener(f_,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(fb,this._onAdChange))}},{key:"streamType",get:function(){return this._streamType},set:function(e){this._streamType=e,this.updateDisabled_()}},{key:"showAdMarkers",get:function(){return this._showAdMarkers},set:function(e){this._showAdMarkers=e,this._updateRange()}},{key:"_previewRailTransform",get:function(){return hJ(this,tk)[tk]},set:function(e){hJ(this,tk)[tk]=e}}]),t}(lI=e.Range),lF=(tb=(t_=o(tw,[[lN,4,"player"],[l$,4,"streamType"],[lD,4,"showAdMarkers"],[lq,1,"_previewRailTransform"]],[lO,lM],lI)).e)[0],lU=tb[1],e.TimeRange=(tg=t_.c)[0],lB=tg[1],tw.styles=[].concat(e.Range.styles,[fo]),lP),e.VolumeRange=void 0,lj=hR("theoplayer-volume-range"),lz=dD(["player","deviceType"]),lH=hM({reflect:!1,attribute:!1});var fg=function(e){function t(){var t;return t=e.call(this)||this,lG(t),t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.volume)},t.min=0,t.max=1,t}i(t,e);var r=t.prototype;return r.getAriaLabel=function(){return"volume"},r.getAriaValueText=function(){return""+Math.round(this.value/this.max*100)+"%"},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("volumechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("volumechange",this._updateFromPlayer))}}]),t}(lV=e.Range);function fk(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-error-icon-gap,10px);max-width:80%;max-width:var(--theoplayer-error-max-width,80%);min-width:0;min-width:var(--theoplayer-error-min-width,0)}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-error-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-error-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-error-icon-width,48px)}[part~=heading]{color:#fff;color:var(--theoplayer-error-heading-color,#fff);line-height:48px;line-height:var(--theoplayer-error-icon-height,48px);margin:0 0 10px;margin:var(--theoplayer-error-heading-margin,0 0 10px);padding:0}[part~=message]{color:#fff;color:var(--theoplayer-error-message-color,#fff);margin:0;margin:var(--theoplayer-error-message-margin,0);padding:0}[part~=fullscreen-controls]{-webkit-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;position:absolute;right:0}:host(:not([fullscreen])) [part~=fullscreen-controls]{display:none!important}"]);return fk=function(){return e},e}lG=(lQ=o(fg,[[lH,4,"player"]],[lj,lz],lV)).e[0],e.VolumeRange=(lW=lQ.c)[0],(0,lW[1])();var fw=cN(fk());function fx(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">An error occurred</slot></h1><p part="message"><slot name="message">','</slot></p></div><div part="fullscreen-controls"><slot name="fullscreen-controls"><theoplayer-fullscreen-button></theoplayer-fullscreen-button></slot></div>']);return fx=function(){return e},e}e.ErrorDisplay=void 0,lZ=hR("theoplayer-error-display"),lY=dD(["error","fullscreen"]),lX=hM({reflect:!1,attribute:!1}),l0=hM({reflect:!0,type:Boolean,attribute:hV.FULLSCREEN}),new(lK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lJ(),t}return i(t,e),t}(l),tA=h0("____private_error_1"),tC=h0("____private_fullscreen_2"),tL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tA,{writable:!0,value:void 0}),Object.defineProperty(t,tC,{writable:!0,value:void 0}),hJ(t,tA)[tA]=(l5(t),l1(t)),hJ(t,tC)[tC]=l2(t,!1),t}return i(t,e),t.prototype.render=function(){var e,t;return hu(fx(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="48" width="48"><path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z"/></svg>\n'),null!=(t=null==(e=this.error)?void 0:e.message)?t:"")},v(t,[{key:"error",get:function(){return hJ(this,tA)[tA]},set:function(e){hJ(this,tA)[tA]=e}},{key:"fullscreen",get:function(){return hJ(this,tC)[tC]},set:function(e){hJ(this,tC)[tC]=e}}]),t}(hL),l1=(tE=(tx=o(tL,[[lX,1,"error"],[l0,1,"fullscreen"]],[lZ,lY],hL)).e)[0],l2=tE[1],l5=tE[2],e.ErrorDisplay=(tT=tx.c)[0],lJ=tT[1],tL.styles=[fw],tL.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),lK),l3=hB(),l4=hM({reflect:!0,state:!0,type:String,attribute:hV.CAST_STATE});var fE=function(e){function t(t){var r;return r=e.call(this,t)||this,l8(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateCastState()},r.handleClick=function(){if(this._castApi){this._updateCastState();var e=this.castState;"available"===e?this._castApi.start():("connecting"===e||"connected"===e)&&this._castApi.stop()}},v(t,[{key:"castApi",get:function(){return this._castApi},set:function(e){void 0!==this._castApi&&this._castApi.removeEventListener("statechange",this._updateCastState),this._castApi=e,this._updateCastState(),void 0!==this._castApi&&this._castApi.addEventListener("statechange",this._updateCastState)}},{key:"castState",get:function(){return this._castState},set:function(e){this._castState=e}}]),t}(e.Button);function fT(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="24" width="24"><defs><clipPath id="theoplayer-chromecast-rings-mask-','"><path d="M0-36h44V0H0z"/></clipPath></defs><path class="theoplayer-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/><path class="theoplayer-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/><g class="theoplayer-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theoplayer-chromecast-rings-mask-',')"><circle stroke="none" cx="0" cy="0" r="30"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring2" cx="0" cy="0" r="12"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring3" cx="0" cy="0" r="20"/><path class="theoplayer-chromecast-ring theoplayer-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0"/></g></svg></span>']);return fT=function(){return e},e}function fA(){var e=a([":host([cast-state=unavailable]){display:none!important}:host([cast-state=connecting]) .theoplayer-chromecast-ring{-webkit-animation:.9s linear infinite;animation:.9s linear infinite}:host([cast-state=connecting]) .theoplayer-chromecast-ring1{-webkit-animation-name:theoplayer-chromecast-connecting-ring1;animation-name:theoplayer-chromecast-connecting-ring1}:host([cast-state=connecting]) .theoplayer-chromecast-ring2{-webkit-animation-name:theoplayer-chromecast-connecting-ring2;animation-name:theoplayer-chromecast-connecting-ring2}:host([cast-state=connecting]) .theoplayer-chromecast-ring3{-webkit-animation-name:theoplayer-chromecast-connecting-ring3;animation-name:theoplayer-chromecast-connecting-ring3}:host([cast-state=connecting]) .theoplayer-chromecast-ring4{-webkit-animation-name:theoplayer-chromecast-connecting-ring4;animation-name:theoplayer-chromecast-connecting-ring4}.theoplayer-chromecast-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-chromecast-inner{opacity:1}.theoplayer-chromecast-rings{clip-path:polygon(50% -100%,50% 50%,100% 50%,100% -100%)}@-webkit-keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}@keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}"]);return fA=function(){return e},e}l8=o(fE,[[l3,4,"castApi"],[l4,4,"castState"]],[]).e[0];var fC=cN(fA()),fL=0;function fS(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-chromecast-display-icon-gap,10px);padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:none}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-chromecast-display-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-chromecast-display-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-chromecast-display-icon-width,48px)}[part=text]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part=heading]{color:#fff;color:var(--theoplayer-chromecast-display-heading-color,#fff);font-size:14px;font-size:var(--theoplayer-chromecast-display-heading-font-size,var(--theoplayer-text-font-size,14px));margin:0;margin:var(--theoplayer-chromecast-display-heading-margin,0);padding:0}[part=receiver]{color:#fff;color:var(--theoplayer-chromecast-display-receiver-color,#fff);font-size:17.5px;font-size:var(--theoplayer-chromecast-display-receiver-font-size,calc(var(--theoplayer-text-font-size, 14px)*1.25));margin:0;margin:var(--theoplayer-chromecast-display-receiver-margin,0);padding:0}"]);return fS=function(){return e},e}e.ChromecastButton=void 0,l6=hR("theoplayer-chromecast-button"),l9=dD(["player"]),new(l7=function(e){function t(){var t;return t=e.apply(this,arguments)||this,se(),t}return i(t,e),t}(l),tR=function(e){function t(){var t;return(t=e.call(this)||this)._buttonId=++fL,t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop casting to Chromecast":"start casting to Chromecast";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){var e;return e=this._buttonId,hu(fT(),e,e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.chromecast}}]),t}(fE),e.ChromecastButton=(tS=o(tR,[],[l6,l9],fE).c)[0],se=tS[1],tR.styles=[].concat(fE.styles,[fC]),l7);var fR=cN(fS());function fP(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">Playing on</slot></p><p part="receiver">',"</p></div>"]);return fP=function(){return e},e}var fO=["statechange"];function fM(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path class="theoplayer-airplay-inner" d="M5 7h14v8H5z"/><path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg></span>']);return fM=function(){return e},e}e.ChromecastDisplay=void 0,sr=hR("theoplayer-chromecast-display"),sn=dD(["player"]),sa=hB(),new(st=function(e){function t(){var t;return t=e.apply(this,arguments)||this,si(),t}return i(t,e),t}(l),tB=h0("____private__receiverName_1"),tI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tB,{writable:!0,value:void 0}),hJ(t,tB)[tB]=(sl(t),so(t,"Chromecast")),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)||null==(e=r.cast)?void 0:e.chromecast;void 0===n||"connected"!==n.state?t.setAttribute(hV.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(hV.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.HIDDEN)||this.setAttribute(hV.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hu(fP(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path d="M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"/></svg>\n'),this._receiverName)},v(t,[{key:"_receiverName",get:function(){return hJ(this,tB)[tB]},set:function(e){hJ(this,tB)[tB]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(fO,this._updateFromPlayer),this._player=e,this._castApi=null==e||null==(t=e.cast)?void 0:t.chromecast,this._updateFromPlayer(),void 0!==this._castApi&&this._castApi.addEventListener(fO,this._updateFromPlayer))}}]),t}(hL),so=(tO=(tP=o(tI,[[sa,1,"_receiverName"]],[sr,sn],hL)).e)[0],sl=tO[1],e.ChromecastDisplay=(tM=tP.c)[0],si=tM[1],tI.styles=[fR],st);var fB=hu(fM());function fI(){var e=a([":host([cast-state=unavailable]){display:none!important}.theoplayer-airplay-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-airplay-inner{opacity:1}"]);return fI=function(){return e},e}var fN=cN(fI());function f$(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;pointer-events:none!important;vertical-align:middle}[part=icon]{opacity:0;-webkit-transition:visibility .15s,opacity .15s;transition:visibility .15s,opacity .15s;visibility:hidden}:host([loading]) [part=icon]{opacity:1;-webkit-transition:visibility 0s,opacity 0s;transition:visibility 0s,opacity 0s;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transition-delay:var(--theoplayer-loading-delay,.5s);transition-delay:var(--theoplayer-loading-delay,.5s);visibility:visible}[part=icon] ::slotted(img),[part=icon] ::slotted(svg){fill:#fff;fill:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));vertical-align:middle;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress{direction:ltr;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));letter-spacing:0;line-height:0;position:relative;white-space:nowrap;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress svg,.theoplayer-loading-spinner{height:100%;position:absolute;width:100%}.theoplayer-loading-progress svg{stroke:#fff;stroke:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff))}.theoplayer-loading-gap-patch{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:47.5%;overflow:hidden;position:absolute;top:0;width:5%}.theoplayer-loading-gap-patch svg{left:-900%;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:2000%}.theoplayer-loading-circle-clipper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;overflow:hidden;position:relative;width:50%}.theoplayer-loading-circle-clipper svg{width:200%}.theoplayer-loading-circle-right svg{left:-100%}.theoplayer-loading-progress{-webkit-animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite;animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite}.theoplayer-loading-spinner{-webkit-animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-left svg{-webkit-animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-right svg{-webkit-animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@-webkit-keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@-webkit-keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@-webkit-keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}@keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}"]);return f$=function(){return e},e}e.AirPlayButton=void 0,su=hR("theoplayer-airplay-button"),sc=dD(["player"]),new(ss=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sh(),t}return i(t,e),t}(l),t$=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop playing on AirPlay":"start playing on AirPlay";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return fB},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.airplay}}]),t}(fE),e.AirPlayButton=(tN=o(t$,[],[su,sc],fE).c)[0],sh=tN[1],t$.styles=[].concat(fE.styles,[fN]),ss);var fD=cN(f$());function fq(){var e=a(['<div part="icon"><slot name="icon"><div aria-hidden="true" class="theoplayer-loading-progress"><div class="theoplayer-loading-spinner"><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-left"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div><div class="theoplayer-loading-gap-patch"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg></div><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-right"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div></div></div></slot></div>']);return fq=function(){return e},e}var fF=hu(fq()),fU=["readystatechange","play","pause","playing","seeking","seeked"];function fj(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return fj=function(){return e},e}e.LoadingIndicator=void 0,sp=hR("theoplayer-loading-indicator"),sy=dD(["player"]),sv=hM({reflect:!1,attribute:!1}),sm=hM({reflect:!0,type:Boolean,attribute:hV.LOADING}),new(sd=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sf(),t}return i(t,e),t}(l),tU=h0("____private_loading_1"),tj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tU,{writable:!0,value:void 0}),hJ(t,tU)[tU]=(sb(t),s_(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return i(t,e),t.prototype.render=function(){return fF},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fU,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fU,this._updateFromPlayer))}},{key:"loading",get:function(){return hJ(this,tU)[tU]},set:function(e){hJ(this,tU)[tU]=e}}]),t}(hL),s_=(tq=(tD=o(tj,[[sv,4,"player"],[sm,1,"loading"]],[sp,sy],hL)).e)[0],sb=tq[1],e.LoadingIndicator=(tF=tD.c)[0],sf=tF[1],tj.styles=[fD],sd);var fz=cN(fj());function fV(){var e=a([""]);return fV=function(){return e},e}function fH(){var e=a(["[part=icon] ::slotted(svg),[part=icon] svg{fill:#8c8c8c;fill:var(--theoplayer-live-button-color,#8c8c8c)}:host([live]:not([paused])) [part=icon] ::slotted(svg),:host([live]:not([paused])) [part=icon] svg{fill:red;fill:var(--theoplayer-live-button-active-color,red)}"]);return fH=function(){return e},e}e.GestureReceiver=void 0,sk=hR("theoplayer-gesture-receiver"),sw=dD(["player","deviceType"]),sE=hM({reflect:!1,attribute:!1}),sT=hM({reflect:!1,attribute:!1}),new(sg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sx(),t}return i(t,e),t}(l),tG=h0("____private_deviceType_1"),tQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tG,{writable:!0,value:void 0}),sC(t),t._pointerType="",hJ(t,tG)[tG]=sA(t,"desktop"),t._onPointerDown=function(e){t._pointerType=e.pointerType},t._onClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;"touch"===n?t.handleTap(e):"mouse"===n&&t.handleMouseClick(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")},r.handleTap=function(e){},r.handleMouseClick=function(e){if("desktop"===this.deviceType&&void 0!==this._player){var t;void 0===this._player.source||null!=(t=this._player.ads)&&t.playing||(this._player.paused?this._player.play():this._player.pause())}},r.render=function(){return hu(fV())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}},{key:"deviceType",get:function(){return hJ(this,tG)[tG]},set:function(e){hJ(this,tG)[tG]=e}}]),t}(hL),sA=(tV=(tz=o(tQ,[[sE,4,"player"],[sT,1,"deviceType"]],[sk,sw],hL)).e)[0],sC=tV[1],e.GestureReceiver=(tH=tz.c)[0],sx=tH[1],tQ.styles=[fz],sg);var fG=cN(fH());function fQ(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">LIVE</slot></span>']);return fQ=function(){return e},e}var fW=["play","pause","playing","emptied"],fK=["seeking","seeked","timeupdate","durationchange","emptied"];function fZ(){var e=a([":host{padding:5px 10px;padding:calc(var(--theoplayer-control-padding, 10px) - var(--theoplayer-ad-display-padding, 5px)) var(--theoplayer-control-padding,10px);pointer-events:none}span{background:#ffc50f;background:var(--theoplayer-ad-display-background,#ffc50f);border-radius:2px;border-radius:var(--theoplayer-ad-display-border-radius,2px);color:#000;color:var(--theoplayer-ad-display-text-color,#000);display:inline-block;padding:5px;padding:var(--theoplayer-ad-display-padding,5px)}"]);return fZ=function(){return e},e}e.LiveButton=void 0,sS=hR("theoplayer-live-button"),sR=dD(["player","streamType"]),sM=hM({reflect:!0,type:Boolean,attribute:hV.PAUSED}),sB=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),sI=hM({reflect:!0,type:Number,attribute:hV.LIVE_THRESHOLD,useDefault:!0}),sN=hM({reflect:!0,type:Boolean,attribute:hV.LIVE}),s$=hM({reflect:!1,attribute:!1}),new(sL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sP(),t}return i(t,e),t}(l),tY=h0("____private_paused_1"),tJ=h0("____private_streamType_2"),tX=h0("____private_live_3"),t0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tY,{writable:!0,value:void 0}),Object.defineProperty(t,tJ,{writable:!0,value:void 0}),Object.defineProperty(t,tX,{writable:!0,value:void 0}),sU(t),t._liveThreshold=10,hJ(t,tY)[tY]=sD(t,!1),hJ(t,tJ)[tJ]=sq(t,"vod"),hJ(t,tX)[tX]=sF(t,!1),t._updatePaused=function(){t.paused=void 0===t._player||t._player.paused},t._updateLive=function(){t.live=void 0!==t._player&&function(e,t){if(e.duration===1/0){var r=e.seekable;return!(r.length>0)||r.end(r.length-1)-e.currentTime<=t}return!1}(t._player,t.liveThreshold)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"seek to live")},r.handleClick=function(){void 0!==this._player&&(this._player.hesp&&void 0!==this._player.hesp.manifest?this._player.hesp.goLive():(this._player.currentTime=1/0,this._player.play()))},r.render=function(){return hu(fQ(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><circle cx="12" cy="12" r="7"/></svg>\n'))},v(t,[{key:"paused",get:function(){return hJ(this,tY)[tY]},set:function(e){hJ(this,tY)[tY]=e}},{key:"streamType",get:function(){return hJ(this,tJ)[tJ]},set:function(e){hJ(this,tJ)[tJ]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return hJ(this,tX)[tX]},set:function(e){hJ(this,tX)[tX]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fW,this._updatePaused),this._player.removeEventListener(fK,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(fW,this._updatePaused),this._player.addEventListener(fK,this._updateLive)))}}]),t}(sO=e.Button),sD=(tK=(tW=o(t0,[[sM,1,"paused"],[sB,1,"streamType"],[sI,4,"liveThreshold"],[sN,1,"live"],[s$,4,"player"]],[sS,sR],sO)).e)[0],sq=tK[1],sF=tK[2],sU=tK[3],e.LiveButton=(tZ=tW.c)[0],sP=tZ[1],t0.styles=[].concat(e.Button.styles,[fG]),sL);var fY=cN(fZ());function fJ(){var e=a(["<span>","</span>"]);return fJ=function(){return e},e}var fX=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function f0(){var e=a([":host{pointer-events:none}"]);return f0=function(){return e},e}e.AdDisplay=void 0,sz=hR("theoplayer-ad-display"),sV=dD(["player"]),sG=hB(),sQ=hM({reflect:!1,attribute:!1}),new(sj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sH(),t}return i(t,e),t}(l),t3=h0("____private__text_1"),t4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,t3,{writable:!0,value:void 0}),hJ(t,t3)[t3]=(sK(t),sW(t,"")),t._updateFromPlayer=function(){var e,r,n,i=null==(e=t._player)?void 0:e.ads,a=(null!=(n=null==i||null==(r=i.currentAdBreak)?void 0:r.ads)?n:[]).filter(fs);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=dC(t._player.ads.currentAds||[],fs);if(o){var l=a.indexOf(o);if(l>=0){t._text="Ad "+(l+1)+" of "+a.length,t.style.display="";return}}}t._text="Ad",t.style.display=""},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){return hu(fJ(),this._text)},v(t,[{key:"_text",get:function(){return hJ(this,t3)[t3]},set:function(e){hJ(this,t3)[t3]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(fX,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(fX,this._updateFromPlayer))}}]),t}(hL),sW=(t2=(t1=o(t4,[[sG,1,"_text"],[sQ,4,"player"]],[sz,sV],hL)).e)[0],sK=t2[1],e.AdDisplay=(t5=t1.c)[0],sH=t5[1],t4.styles=[dZ,fY],sj);var f1=cN(f0());function f2(){var e=a(["<span>Content will resume in ","s</span>"]);return f2=function(){return e},e}var f5=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function f3(){var e=a(["<slot>Visit Advertiser</slot>"]);return f3=function(){return e},e}e.AdCountdown=void 0,sY=hR("theoplayer-ad-countdown"),sJ=dD(["player"]),s0=hB(),s1=hM({reflect:!1,attribute:!1}),new(sZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sX(),t}return i(t,e),t}(l),t9=h0("____private__maxRemainingDuration_1"),re=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,t9,{writable:!0,value:void 0}),hJ(t,t9)[t9]=(s5(t),s2(t,0)),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads,i=null==n||null==(r=n.currentAdBreak)?void 0:r.maxRemainingDuration;void 0===n||!n.playing||void 0===i||i<0?(t._maxRemainingDuration=0,t.style.display="none"):(t._maxRemainingDuration=Math.ceil(i),t.style.display="")},t}return i(t,e),t.prototype.render=function(){return hu(f2(),this._maxRemainingDuration)},v(t,[{key:"_maxRemainingDuration",get:function(){return hJ(this,t9)[t9]},set:function(e){hJ(this,t9)[t9]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(f5,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(f5,this._onAdChange))}}]),t}(hL),s2=(t7=(t8=o(re,[[s0,1,"_maxRemainingDuration"],[s1,4,"player"]],[sY,sJ],hL)).e)[0],s5=t7[1],e.AdCountdown=(t6=t8.c)[0],sX=t6[1],re.styles=[dZ,f1],sZ);var f4=["adbegin","adend","adloaded","updatead","adskip"];e.AdClickThroughButton=void 0,s3=hR("theoplayer-ad-clickthrough-button"),s4=dD(["player"]),s7=hM({reflect:!0,type:String,attribute:hV.CLICKTHROUGH}),s6=hM({reflect:!1,attribute:!1});var f8=function(e){function t(){var t;return t=e.call(this)||this,s9(t),t._clickThrough=null,t._updateFromPlayer=function(){var e,r,n=null==(e=t._player)?void 0:e.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=dC(null!=(r=n.currentAds)?r:[],fs);if(void 0===i||"google-ima"===i.integration){t.clickThrough=null;return}var a=i.clickThrough;if(!a){t.clickThrough=null;return}t.clickThrough=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),null==this.clickThrough&&(this.disabled=!0,this.style.display="none")},r.handleClick=function(){var e;null==(e=this._player)||e.pause()},r.renderLinkContent=function(){return hu(f3())},v(t,[{key:"clickThrough",get:function(){return this._clickThrough},set:function(e){this._clickThrough!==e&&(this._clickThrough=e,this.href=e?String(e).trim():"#",this.target="_blank",this.disabled=null==e,this.style.display=null!=e?"":"none")}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(f4,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(f4,this._updateFromPlayer))}}]),t}(s8=e.LinkButton);function f7(){var e=a([":host{-ms-grid-columns:1fr;-ms-grid-rows:1fr;background:rgba(0,0,0,.7);background:var(--theoplayer-ad-skip-background,rgba(0,0,0,.7));border:1px solid hsla(0,0%,100%,.5);border:var(--theoplayer-ad-skip-border,1px solid hsla(0,0%,100%,.5));color:#fff;color:var(--theoplayer-ad-skip-color,#fff);display:-ms-grid;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}:host(:hover){background:rgba(0,0,0,.9);background:var(--theoplayer-ad-skip-hover-background,rgba(0,0,0,.9));border:1px solid #fff;border:var(--theoplayer-ad-skip-hover-border,1px solid #fff);color:#fff;color:var(--theoplayer-ad-skip-hover-color,var(--theoplayer-ad-skip-color,#fff))}:host([disabled]){background:transparent;background:var(--theoplayer-ad-skip-countdown-background,transparent);border:1px solid transparent;border:var(--theoplayer-ad-skip-countdown-border,1px solid transparent);color:#fff;color:var(--theoplayer-ad-skip-countdown-color,var(--theoplayer-ad-skip-color,#fff))}[part=countdown],[part=skip]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}[part=skip]{font-size:14px;font-size:var(--theoplayer-ad-skip-font-size,var(--theoplayer-text-font-size,14px));line-height:24px;line-height:var(--theoplayer-ad-skip-line-height,var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px)))}[part=skip-icon]{padding-left:10px;padding-left:var(--theoplayer-control-padding,10px)}[part=skip-icon] ::slotted(svg),[part=skip-icon] svg{height:24px;height:var(--theoplayer-ad-skip-icon-height,var(--theoplayer-control-height,24px));width:24px;width:var(--theoplayer-ad-skip-icon-width,var(--theoplayer-control-height,24px))}"]);return f7=function(){return e},e}s9=(ue=o(f8,[[s7,4,"clickThrough"],[s6,4,"player"]],[s3,s4],s8)).e[0],e.AdClickThroughButton=(ut=ue.c)[0],(0,ut[1])();var f6=cN(f7());function f9(){var e=a(['<span part="countdown" style="','">Skip in ',' seconds</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">Skip Ad</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return f9=function(){return e},e}var ve=["adbegin","adend","adloaded","updatead","adskip"];e.AdSkipButton=void 0,un=hR("theoplayer-ad-skip-button"),ui=dD(["player"]),ul=hB(),us=hB(),uu=hM({reflect:!1,attribute:!1}),new(ur=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ua(),t}return i(t,e),t}(l),ri=h0("____private__showCountdown_1"),ra=h0("____private__timeToSkip_2"),ro=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ri,{writable:!0,value:void 0}),Object.defineProperty(t,ra,{writable:!0,value:void 0}),hJ(t,ri)[ri]=(ud(t),uc(t,!1)),hJ(t,ra)[ra]=uh(t,0),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads;if(!n||!n.playing){t.style.display="none";return}var i=dC(null!=(r=n.currentAds)?r:[],fs);if(void 0===i||"google-ima"===i.integration){t.style.display="none";return}var a=i.skipOffset;if(void 0===a||a<0||void 0!==i.duration&&a>=i.duration){t.style.display="none";return}var o=t._player.currentTime;o<a?(t._showCountdown=!0,t._timeToSkip=Math.ceil(a-o),t.style.display="",t.setAttribute(hV.DISABLED,""),t.setAttribute(hV.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(hV.DISABLED),t.setAttribute(hV.ARIA_LIVE,"polite"))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._update()},r.handleClick=function(){var e,t;null==(t=this._player)||null==(e=t.ads)||e.skip()},r.render=function(){var e={visibility:this._showCountdown?"visible":"hidden"},t={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""};return hu(f9(),fr(e),this._timeToSkip,fr(t),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.5 18q-.425 0-.712-.288-.288-.287-.288-.712V7q0-.425.288-.713Q17.075 6 17.5 6t.712.287q.288.288.288.713v10q0 .425-.288.712-.287.288-.712.288ZM7.05 16.975q-.5.35-1.025.05-.525-.3-.525-.9v-8.25q0-.6.525-.888.525-.287 1.025.038l6.2 4.15q.45.3.45.825 0 .525-.45.825Z"/></svg>\n'))},v(t,[{key:"_showCountdown",get:function(){return hJ(this,ri)[ri]},set:function(e){hJ(this,ri)[ri]=e}},{key:"_timeToSkip",get:function(){return hJ(this,ra)[ra]},set:function(e){hJ(this,ra)[ra]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(ve,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(ve,this._onAdChange))}}]),t}(uo=e.Button),uc=(rr=(rt=o(ro,[[ul,1,"_showCountdown"],[us,1,"_timeToSkip"],[uu,4,"player"]],[un,ui],uo)).e)[0],uh=rr[1],ud=rr[2],e.AdSkipButton=(rn=rt.c)[0],ua=rn[1],ro.styles=[].concat(e.Button.styles,[f6]),ur);var vt=((rl={}).TopControlBar="top-control-bar",rl.BottomControlBar="bottom-control-bar",rl.Menu="menu",rl),vr=[];function vn(){var e=a([':host{background:#000;background:var(--theoplayer-background,#000);-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-ui-container;container-type:size;display:inline-block;height:0;height:var(--theoplayer-height,calc((var(--theoplayer-aspect-ratio, 16 / 9))*0));min-width:300px;min-width:var(--theoplayer-min-width,300px);padding-bottom:56.25%;padding-bottom:calc(100%/(var(--theoplayer-aspect-ratio, 16 / 9)));position:relative}:host([hidden]){display:none!important}:host([fullscreen]){height:100%!important;padding:0!important;width:100%!important}:host(:-webkit-full-screen){height:100%!important;padding:0!important;width:100%!important}:host(:-ms-fullscreen){height:100%!important;padding:0!important;width:100%!important}:host(:fullscreen){height:100%!important;padding:0!important;width:100%!important}:host([fullwindow]){bottom:0!important;left:0!important;overflow:hidden!important;position:fixed!important;right:0!important;top:0!important;z-index:1000!important}:host([fluid]){--theoplayer-aspect-ratio:var(--theoplayer-video-width,16) /var(--theoplayer-video-height,9)}[part~=chrome]{position:relative}[part~=layer]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}[part~=chrome],[part~=layer]:not([part~=media-layer]){display:-webkit-box;display:-ms-flexbox;display:flex}[part~=chrome],[part~=gesture-layer],[part~=vertical-layer]{pointer-events:none}[part~=chrome] ::slotted(*){pointer-events:auto}[part~=media-layer] video{border-radius:0;border-radius:var(--theoplayer-video-border-radius,0);-o-object-fit:contain;object-fit:contain;-o-object-fit:var(--theoplayer-video-object-fit,contain);object-fit:var(--theoplayer-video-object-fit,contain)}[part~=media-layer] .theoplayer-ad-linear{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}[part~=media-layer] .theo-ad-remaining-container,[part~=media-layer] .theoplayer-ad-skip,[part~=media-layer] .theoplayer-ad-touch-clickthrough{display:none!important}[part~=chrome],[part~=vertical-layer]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part~=centered]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;justify-content:center}[part~=middle]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}[part~=vertical-layer]:before{background:transparent;background:var(--theoplayer-control-backdrop-background,transparent);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;bottom:var(--theoplayer-menu-offset-bottom,0);padding:10px;padding:var(--theoplayer-menu-layer-padding,10px);top:0;top:var(--theoplayer-menu-offset-top,0)}[part=menu]{-ms-grid-column-align:stretch;background:rgba(0,0,0,.5);background:var(--theoplayer-menu-backdrop-background,rgba(0,0,0,.5));display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch}[part=menu] ::slotted(*){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch}:host(:not([mobile])) [part=menu]{margin:auto 0 0 auto;margin:var(--theoplayer-menu-margin-top,auto) var(--theoplayer-menu-margin-right,0) var(--theoplayer-menu-margin-bottom,0) var(--theoplayer-menu-margin-left,auto);max-height:100%;min-width:200px;min-width:var(--theoplayer-menu-min-width,200px)}:host([mobile]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([tv]) [part~=menu-layer]{left:auto}:host([tv]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host(:not([menu-opened])) [part~=menu-layer],:host([menu-opened][mobile]) [part~=vertical-layer],:host([menu-opened][tv]) [part~=vertical-layer]{display:none!important}@container theoplayer-ui-container (max-width: 500px) or (max-height: 300px){:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;left:0;padding:0;right:0;top:0}:host(:not([mobile])) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([menu-opened]) [part~=vertical-layer]{display:none!important}}[part~=error-layer]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.5);background:var(--theoplayer-error-background,rgba(0,0,0,.5));justify-content:center}:host(:not([has-error])) [part~=error-layer],:host([has-error]) [part~=layer]:not([part~=media-layer]):not([part~=error-layer]){display:none!important}[part~=chrome] ::slotted(theoplayer-control-bar){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}theoplayer-gesture-receiver{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host(:not([mobile])) [part~=chrome] ::slotted([mobile-only]),:host([mobile]) [part~=chrome] ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [part~=chrome] ::slotted([tv-only]),:host([tv]) [part~=chrome] ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [part~=chrome] ::slotted([live-hidden]),:host([stream-type=vod]) [part~=chrome] ::slotted([live-only]){display:none!important}:host(:not([playing-ad])) [part~=chrome] ::slotted([ad-only]),:host([playing-ad]) [part~=chrome] ::slotted([ad-hidden]){display:none!important}:host([user-idle]){cursor:none}:host([user-idle]) [part~=chrome] ::slotted(:not([no-auto-hide])){opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}:host([user-idle]) [part~=vertical-layer]:before{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}']);return vn=function(){return e},e}var vi=cN(vn()),va=function(){if("undefined"!=typeof document)for(var e,t=d_([["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]]);!(e=t()).done;){var r=e.value;if(r[1]in document)return{requestFullscreen_:r[0],exitFullscreen_:r[1],fullscreenElement_:r[2],fullscreenEnabled_:r[3],fullscreenchange_:r[4],fullscreenerror_:r[5]}}}();function vo(){if(("undefined"==typeof navigator?"undefined":d(navigator))!=="object")return!1;if(navigator.userAgentData)return navigator.userAgentData.mobile;var e=navigator.userAgent;return!!e&&/Android|iPhone|iPad|iPod|Mobile Safari|Windows Phone/i.test(e)}function vl(){if(("undefined"==typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(e)}var vs="theoplayeruseridlechange",vu="theoplayerready";function vc(){var e=a(["html.theoplayer-ui-full-window{overflow:hidden!important}html.theoplayer-ui-full-window>body{height:100%!important;margin:0!important;padding:0!important;width:100%!important}"]);return vc=function(){return e},e}var vh=cN(vc()),vd="theoplayer-ui-global-styles",vp=!1;function vy(){var e=a(['<div part="layer media-layer" ','></div><div part="layer gesture-layer"><theoplayer-gesture-receiver></theoplayer-gesture-receiver></div><div part="layer vertical-layer"><div part="top chrome" ','><slot name="top-chrome" ',' @transitionstart="','" @transitionend="','"></slot></div><div part="middle chrome"><slot name="middle-chrome"></slot></div><div part="layer centered-layer centered loading"><slot name="centered-loading"></slot></div><div part="layer centered-layer centered chrome"><slot name="centered-chrome"></slot></div><div part="bottom chrome" ',"><slot ",' @transitionstart="','" @transitionend="','"></slot></div></div><div part="layer menu-layer" ',"><theoplayer-menu-group ",' part="menu" @theoplayermenuclose="','" @theoplayermenuchange="','"><slot name="menu"></slot></theoplayer-menu-group></div><div part="layer error-layer"><slot name="error"></slot></div>']);return vy=function(){return e},e}var vf="theoplayer-ui-full-window";function vv(e){for(var t,r,n=dM(e).filter(dE),i=d_(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=pe.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function vm(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-default-ui-container;container-type:inline-size;display:inline-block;min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}:host([hidden]){display:none!important}theoplayer-ui{display:block;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}[part=title]{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);text-shadow:0 0 4px rgba(0,0,0,.75);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *,[part=centered-chrome] ::slotted(*){--theoplayer-button-icon-width:var(--theoplayer-centered-chrome-button-icon-width,48px);--theoplayer-control-height:var(--theoplayer-centered-chrome-control-height,48px);--theoplayer-play-button-icon-color:var(--theoplayer-center-play-button-icon-color,unset)}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;pointer-events:none;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:var(--theoplayer-mobile-control-backdrop-background,rgba(0,0,0,.5))}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:-webkit-gradient(linear,left bottom,left top,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:-webkit-gradient(linear,left top,left bottom,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:var(--theoplayer-time-range-control-height,12px);--theoplayer-range-track-pointer-background:var(--theoplayer-time-range-track-pointer-background,hsla(0,0%,100%,.5))}[part=ad-chrome]{--theoplayer-control-height:var(--theoplayer-ad-chrome-control-height,12px);-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;pointer-events:none}theoplayer-ad-display,theoplayer-ad-skip-button{-ms-flex-negative:0;flex-shrink:0}theoplayer-ad-countdown,theoplayer-ad-skip-button[disabled]{text-shadow:0 0 4px rgba(0,0,0,.75)}theoplayer-ad-countdown{min-width:0}theoplayer-ad-skip-button{-webkit-box-align:end;-ms-flex-align:end;--theoplayer-ad-skip-font-size:calc(var(--theoplayer-text-font-size, 14px)*1.25);--theoplayer-ad-skip-line-height:calc(var(--theoplayer-text-content-height, var(--theoplayer-control-height, 24px))*1.25);--theoplayer-ad-skip-icon-width:24px;--theoplayer-ad-skip-icon-height:24px;align-items:end;border-right:0!important;justify-items:end}:host(:not([mobile])) [mobile-only],:host(:not([mobile])) theoplayer-control-bar ::slotted([mobile-only]),:host([mobile]) [mobile-hidden],:host([mobile]) theoplayer-control-bar ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [tv-only],:host(:not([tv])) theoplayer-control-bar ::slotted([tv-only]),:host([tv]) [tv-hidden],:host([tv]) theoplayer-control-bar ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui:not([playing-ad]) theoplayer-control-bar ::slotted([ad-only]),theoplayer-ui[playing-ad] [ad-hidden],theoplayer-ui[playing-ad] theoplayer-control-bar ::slotted([ad-hidden]){display:none!important}theoplayer-ui:not([has-first-play]) theoplayer-control-bar{display:none!important}theoplayer-ui:not([has-first-play]),theoplayer-ui:not([has-first-play]) ::slotted(*){--theoplayer-before-first-play-display:none}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:none!important}@container theoplayer-default-ui-container (max-width: 200px){:host(:not([mobile])) theoplayer-control-bar{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}theoplayer-ui:not([mobile]):not([casting]) theoplayer-ad-clickthrough-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:var(--theoplayer-volume-range-track-width,70px);overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display:not([stream-type=vod]){padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}theoplayer-ui[playing-ad] .theoplayer-ad-control{--theoplayer-control-height:var(--theoplayer-ad-control-height,16px)}']);return vm=function(){return e},e}e.UIContainer=void 0,uy=hR("theoplayer-ui"),uv=hM({reflect:!1,attribute:hV.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),um=hM({reflect:!1,attribute:hV.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),u_=hM({reflect:!0,type:Boolean,attribute:hV.FLUID}),ub=hM({reflect:!0,type:Boolean,attribute:hV.MUTED}),ug=hM({reflect:!0,type:Boolean,attribute:hV.AUTOPLAY}),uk=hM({reflect:!0,type:Boolean,attribute:hV.FULLSCREEN}),uw=hM({reflect:!0,type:Boolean,attribute:hV.PAUSED}),ux=hM({reflect:!0,type:Boolean,attribute:hV.ENDED}),uE=hM({reflect:!0,type:Boolean,attribute:hV.CASTING}),uT=hM({reflect:!0,type:Boolean,attribute:hV.USER_IDLE}),uA=hM({reflect:!0,type:Number,attribute:hV.USER_IDLE_TIMEOUT,useDefault:!0}),uC=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),uL=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),uS=hM({reflect:!0,type:Number,attribute:hV.DVR_THRESHOLD,useDefault:!0}),uR=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_FIRST_PLAY}),uP=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.PLAYING_AD}),uO=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_ERROR}),uM=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.FULLWINDOW}),uB=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.MENU_OPENED}),new(up=function(e){function t(){var t;return t=e.apply(this,arguments)||this,uf(),t}return i(t,e),t}(l),rh=h0("____private__hasFirstPlay_1"),rd=h0("____private__isPlayingAd_2"),rp=h0("____private__hasError_3"),ry=h0("____private__isFullWindow_4"),rf=function(n){function a(e){var t;return void 0===e&&(e={}),Object.defineProperty(t=n.call(this)||this,rh,{writable:!0,value:void 0}),Object.defineProperty(t,rd,{writable:!0,value:void 0}),Object.defineProperty(t,rp,{writable:!0,value:void 0}),Object.defineProperty(t,ry,{writable:!0,value:void 0}),uq(t),t._configuration={},t._playerRef=da(),t._menuRef=da(),t._menuGroupRef=da(),t._menuOpened=!1,t._topChromeRef=da(),t._topChromeSlotRef=da(),t._bottomChromeRef=da(),t._bottomChromeSlotRef=da(),t._pointerType="",t._lastPointerUpTime=0,t._stateReceivers=[],t._player=void 0,t._source=void 0,t._muted=!1,t._autoplay=!1,t._fullscreen=!1,t._deviceType="desktop",t._streamType="vod",t._fluid=!1,t._userIdle=!1,t._userIdleTimeout=void 0,t._isUserActive=!1,t._userIdleTimer=0,t._paused=!1,t._ended=!1,t._casting=!1,t._dvrThreshold=60,t._previewTime=NaN,t._activeVideoTrack=void 0,hJ(t,rh)[rh]=uI(t,!1),hJ(t,rd)[rd]=uN(t,!1),hJ(t,rp)[rp]=u$(t,!1),hJ(t,ry)[ry]=uD(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=d_(e);!(n=i()).done;){var a=n.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];dx(u)&&dq(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];dx(h)&&dq(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&dq(t,t._playerRef.value,t.registerStateReceiver_),t._updateTextTrackMargins()},t.registerStateReceiver_=function(e){t._stateReceivers.indexOf(e)>=0||(t._stateReceivers.push(e),t.propagateStateToReceiver_(e))},t.unregisterStateReceiver_=function(e){var r,n,i,a;r=t._stateReceivers,!((n=r.indexOf(e))<0)&&(i=r,a=n,i.splice(a,1),1)&&t.removeStateFromReceiver_(e)},t._onToggleMenu=function(e){e.stopPropagation();var r=e.detail.menu,n=t._menuGroupRef.value;if(n){if(!n.getMenuById(r))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+r+'"');var i=dE(e.target)?e.target:void 0;n.isMenuOpen(r)?t.closeMenu_():(t.closeMenu_(),t.openMenu_(r,i))}},t._onCloseMenu=function(e){e.stopPropagation(),t.closeMenu_()},t._onMenuChange=function(){var e=t._menuRef.value;e.removeEventListener("pointerdown",t._onMenuPointerDown),e.removeEventListener("click",t._onMenuClick),t._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",t._onMenuPointerDown),e.addEventListener("click",t._onMenuClick),t.menuOpened_=!0):t.menuOpened_=!1,t.updateUserIdle_()},t._onMenuPointerDown=function(e){t._pointerType=e.pointerType},t._onMenuClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;e.target===t._menuRef.value&&"mouse"===n&&t._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},t._onEnterFullscreen=function(e){if(e.stopPropagation(),va&&document[va.fullscreenEnabled_]&&t[va.requestFullscreen_]){var n,i,a=t[va.requestFullscreen_](r({navigationUI:"hide"},null==(i=t._configuration)||null==(n=i.ui)?void 0:n.fullscreenOptions));a&&a.then&&a.then(dw,dw)}else t._player&&t._player.presentation.supportsMode("fullscreen")?t._player.presentation.requestMode("fullscreen"):t._isFullWindow||(t._isFullWindow=!0,document.documentElement.classList.add(vf),window.addEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onExitFullscreen=function(e){if(e.stopPropagation(),va){var r=document[va.exitFullscreen_]();r&&r.then&&r.then(dw,dw)}t._player&&"fullscreen"===t._player.presentation.currentMode&&t._player.presentation.requestMode("inline"),t._isFullWindow&&(t._isFullWindow=!1,document.documentElement.classList.remove(vf),window.removeEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onFullscreenChange=function(){var e=!1;if(void 0!==va){var r=document[va.fullscreenElement_];r&&(e=function e(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;var n=r.getRootNode();return!!n.host&&e(t,n.host)}(r,t))}e||void 0===t._player||"fullscreen"!==t._player.presentation.currentMode||(e=!0),t._isFullWindow&&(e=!0),t.fullscreen=e},t._exitFullscreenOnEsc=function(e){e.keyCode==hH.ESCAPE&&t._onExitFullscreen(e)},t._updateAspectRatio=function(){if(void 0!==t._player){var e=t._player,r=e.videoWidth,n=e.videoHeight;r>0&&n>0?y8(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):y8(t,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},t._updateError=function(){var e=null==(r=t._player)?void 0:r.errorObject;t._hasError=void 0!==e;for(var r,n,i=d_(t._stateReceivers);!(n=i()).done;){var a=n.value;a[dN].indexOf("error")>=0&&(a.error=e)}},t._onPlay=function(){t._hasFirstPlay=!0,t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updatePausedAndEnded=function(){t.paused=!t._player||t._player.paused,t._updateEnded()},t._updateEnded=function(){t.ended=!!t._player&&t._player.ended},t._updateStreamType=function(){void 0!==t._player&&(t.streamType=t.computeStreamType_())},t._updatePlaybackRate=function(){if(void 0!==t._player)for(var e,r=t._player.playbackRate,n=d_(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dN].indexOf("playbackRate")>=0&&(i.playbackRate=r)}},t._updateMuted=function(){void 0!==t._player&&(t.muted=t._player.muted)},t._updateActiveVideoTrack=function(){if(void 0!==t._player){var e,r,n,i,a=dC(t._player.videoTracks,function(e){return e.enabled});t._activeVideoTrack!==a&&(null==(e=t._activeVideoTrack)||e.removeEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(r=t._activeVideoTrack)||r.removeEventListener("targetqualitychanged",t._updateTargetVideoQualities),t._activeVideoTrack=a,t._updateActiveVideoQuality(),t._updateTargetVideoQualities(),null==(n=t._activeVideoTrack)||n.addEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(i=t._activeVideoTrack)||i.addEventListener("targetqualitychanged",t._updateTargetVideoQualities))}},t._updateActiveVideoQuality=function(){for(var e,r,n=null==(e=t._activeVideoTrack)?void 0:e.activeQuality,i=d_(t._stateReceivers);!(r=i()).done;){var a=r.value;a[dN].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=pM(t._activeVideoTrack),n=d_(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dN].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=r)}},t._updateCasting=function(){var e,r,n;t.casting=null!=(n=null==(r=t._player)||null==(e=r.cast)?void 0:e.casting)&&n},t._updatePlayingAd=function(){var e,r,n;t._isPlayingAd=null!=(n=null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)&&n},t._onSourceChange=function(){t.closeMenu_(),t._hasFirstPlay=void 0!==t._player&&!t._player.paused},t.setUserIdle_=function(){if(clearTimeout(t._userIdleTimer),t._userIdleTimer=0,!(t.userIdleTimeout<0)&&(t._isUserActive=!1,t.updateUserIdle_(),"tv"==t.deviceType&&t.isUserIdle_())){var e=pt();null!==e&&e.blur()}},t.scheduleUserIdle_=function(){if(t.setUserActive_(),clearTimeout(t._userIdleTimer),t.userIdleTimeout<0){t._userIdleTimer=0;return}t._userIdleTimer=setTimeout(t.setUserIdle_,1e3*t.userIdleTimeout)},t._onTvKeyDown=function(e){if(hQ(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(dE(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(hV.TV_FOCUS))return dB(t);for(var r=dO(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=dB(t),i=pt();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===hH.ENTER?null!==i&&(e.preventDefault(),i.click()):hG(e.keyCode)&&pr(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){hQ(e.keyCode)||t.scheduleUserIdle_()},t._onPointerUp=function(e){"mouse"===e.pointerType?t.scheduleUserIdle_():"touch"===e.pointerType&&(t.isPlayerOrMedia_(e.target)&&t._isUserActive?t.setUserIdle_():(t.isUserIdle_()&&(t._lastPointerUpTime=performance.now(),t.addEventListener("click",t._onClickAfterPointerUp,!0)),t.scheduleUserIdle_()))},t._onClickAfterPointerUp=function(e){t.removeEventListener("click",t._onClickAfterPointerUp,!0),performance.now()-t._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},t._onPointerMove=function(e){"mouse"===e.pointerType&&(t.setUserActive_(),t.isPlayerOrMedia_(e.target)&&t.scheduleUserIdle_())},t._onMouseLeave=function(){t.setUserIdle_()},t._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&t._updateTextTrackMargins()},t._updateTextTrackMargins=function(){var e=t._player;if(void 0!==e){var r=t._topChromeSlotRef.value&&vv(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&vv(t._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==r?void 0:r.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height}},t._onPreviewTimeChange=function(e){t._previewTime=e.detail.previewTime;for(var r,n=d_(t._stateReceivers);!(r=n()).done;){var i=r.value;i[dN].indexOf("previewTime")>=0&&(i.previewTime=t._previewTime)}},t._onDestroy=function(){t._player&&(t.removePlayerListeners_(t._player),t._player=void 0,t.propagatePlayerToAllReceivers_())},t._configuration=e,t._mutationObserver=new MutationObserver(t._onMutation),"undefined"!=typeof ResizeObserver&&(t._resizeObserver=new ResizeObserver(t._updateTextTrackMargins)),t.tryInitializePlayer_(),t}i(a,n);var o=a.prototype;return o._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},o._setSource=function(e){this._player?this._player.source=e:this._source=e},o.connectedCallback=function(){if(n.prototype.connectedCallback.call(this),!vp){if(cO)document.adoptedStyleSheets.push(vh.styleSheet);else if(!document.getElementById(vd)){var e,t=document.createElement("style");t.id=vd;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=vh.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}vp=!0}this.hasAttribute(hV.DEVICE_TYPE)||(this.deviceType=vo()?"mobile":vl()?"tv":"desktop"),this.hasAttribute(hV.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=d_(this._stateReceivers);!(a=o()).done;){var l=a.value;this.propagateStateToReceiver_(l)}this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(i=this._resizeObserver)||i.observe(this),this._updateTextTrackMargins(),void 0!==va&&(document.addEventListener(va.fullscreenchange_,this._onFullscreenChange),document.addEventListener(va.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this._isFullWindow&&window.addEventListener("keydown",this._exitFullscreenOnEsc),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)},o.tryInitializePlayer_=function(){void 0===this._player&&void 0!==this._playerRef.value&&(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new t.ChromelessPlayer(this._playerRef.value,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted=this.muted,this._player.autoplay=this.autoplay,this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(d7(vu)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(pm,this._onToggleMenu),e.addEventListener(y5,this._onEnterFullscreen),e.addEventListener(y3,this._onExitFullscreen),e.addEventListener(fl,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!x(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&dq(this,this._playerRef.value,this.registerStateReceiver_)},o.disconnectedCallback=function(){var e;n.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==va&&(document.removeEventListener(va.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(va.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0},o.propagateStateToReceiver_=function(e){var t,r=e[dN];r.indexOf("player")>=0&&(e.player=this._player),r.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),r.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),r.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player&&(r.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),r.indexOf("error")>=0&&(e.error=this._player.errorObject),r.indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=null==(t=this._activeVideoTrack)?void 0:t.activeQuality),r.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=pM(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=d_(this._stateReceivers);!(e=t()).done;){var r=e.value;r[dN].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[dN].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=pe.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=pe.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=pe.fromRect(this.getBoundingClientRect()),l=pe.fromRect(t.getBoundingClientRect());o.width>0&&o.height>0&&(i=l.top>=o.top+o.height/2,a=l.left>=o.left+o.width/2)}this._menuGroupRef.value.openMenu(e,t),this._menuOpener=t,y8(this,{"--theoplayer-menu-offset-top":""+Math.round(r.height)+"px","--theoplayer-menu-offset-bottom":""+Math.round(n.height)+"px","--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":a?"auto":"0","--theoplayer-menu-margin-right":a?"0":"auto"})},o.closeMenu_=function(){var e,t,r;null==(t=this._menuGroupRef.value)||null==(e=t.closeMenu)||e.call(t),null==(r=this._menuOpener)||r.focus(),this._menuOpener=void 0},o.computeStreamType_=function(){var e=this.source,t=null!=(i=null==e?void 0:e.streamType)?i:this.getAttribute(hV.STREAM_TYPE),r=null==(n=this._player)?void 0:n.duration;if(void 0===r||isNaN(r))return t||((null==e?void 0:e.dvr)?"dvr":"vod");if(r!==1/0)return"vod";if("live"===t||"dvr"===t)return t;var n,i,a,o=this.dvrThreshold;if(o<=0)return"dvr";var l=null==(a=this._player)?void 0:a.seekable;return l&&l.length>0&&l.end(l.length-1)-l.start(0)>=o?"dvr":"live"},o.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},o.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},o.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},o.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},o.addPlayerListeners_=function(e){var t,r,n;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],this._updateError),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.addEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)},o.removePlayerListeners_=function(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,r,n;null==(t=e.theoLive)||t.removeEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.removeEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)}catch(e){}},o.render=function(){return hu(vy(),du(this._playerRef),du(this._topChromeRef),du(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,du(this._bottomChromeRef),du(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,du(this._menuRef),du(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},v(a,[{key:"player",get:function(){return this._player}},{key:"configuration",get:function(){return this._configuration},set:function(e){this._setConfiguration(e)}},{key:"source",get:function(){return this._player?this._player.source:this._source},set:function(e){this._setSource(e)}},{key:"fluid",get:function(){return this._fluid},set:function(e){this._fluid=e,this._updateAspectRatio()}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,this._player&&(this._player.muted=e)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&(this._player.autoplay=e)}},{key:"fullscreen",get:function(){return this._fullscreen},set:function(e){if(this._fullscreen!==e){this._fullscreen=e;for(var t,r=d_(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dN].indexOf("fullscreen")>=0&&(n.fullscreen=e)}}}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"ended",get:function(){return this._ended},set:function(e){this._ended=e}},{key:"casting",get:function(){return this._casting},set:function(e){this._casting=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"userIdle",get:function(){return this._userIdle},set:function(e){this._userIdle!==e&&(this._userIdle=e,this._updateTextTrackMargins(),this.dispatchEvent(d7(vs)))}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){if(this._deviceType!==e){this._deviceType=e,dP(this,hV.MOBILE,"mobile"===e),dP(this,hV.TV,"tv"===e),window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=d_(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dN].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=d_(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dN].indexOf("streamType")>=0&&(n.streamType=e)}var i=d7("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:e}});this.dispatchEvent(i)}}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e,this._updateStreamType()}},{key:"_hasFirstPlay",get:function(){return hJ(this,rh)[rh]},set:function(e){hJ(this,rh)[rh]=e}},{key:"_isPlayingAd",get:function(){return hJ(this,rd)[rd]},set:function(e){hJ(this,rd)[rd]=e}},{key:"_hasError",get:function(){return hJ(this,rp)[rp]},set:function(e){hJ(this,rp)[rp]=e}},{key:"_isFullWindow",get:function(){return hJ(this,ry)[ry]},set:function(e){hJ(this,ry)[ry]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,dP(this,hV.MENU_OPENED,e))}}]),a}(hL),uI=(ru=(rs=o(rf,[[uv,4,"configuration"],[um,4,"source"],[u_,4,"fluid"],[ub,4,"muted"],[ug,4,"autoplay"],[uk,4,"fullscreen"],[uw,4,"paused"],[ux,4,"ended"],[uE,4,"casting"],[uT,4,"userIdle"],[uA,4,"userIdleTimeout"],[uC,4,"deviceType"],[uL,4,"streamType"],[uS,4,"dvrThreshold"],[uR,1,"_hasFirstPlay"],[uP,1,"_isPlayingAd"],[uO,1,"_hasError"],[uM,1,"_isFullWindow"],[uB,4,"menuOpened_"]],[uy],hL)).e)[0],uN=ru[1],u$=ru[2],uD=ru[3],uq=ru[4],e.UIContainer=(rc=rs.c)[0],uf=rc[1],rf.styles=[vi],rf.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),rf.READY_EVENT=vu,up);var v_=cN(vm());function vb(){var e=a(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return vb=function(){return e},e}function vg(){var e=a(['<theoplayer-control-bar slot="top-chrome" part="top-chrome"><div part="title" ad-hidden style="','"><slot name="title" @slotchange="','"></slot></div><span class="theoplayer-spacer"></span><theoplayer-language-menu-button menu="language-menu" mobile-only ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button mobile-only ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button mobile-only ad-hidden></theoplayer-chromecast-button><slot name="top-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-only ad-hidden></theoplayer-settings-menu-button><theoplayer-ad-clickthrough-button ad-only></theoplayer-ad-clickthrough-button></theoplayer-control-bar><theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><slot name="centered-chrome"><theoplayer-seek-button part="seek-back-button seek-button center-button" seek-offset="-10" mobile-only ad-hidden></theoplayer-seek-button><theoplayer-play-button part="center-play-button play-button center-button"></theoplayer-play-button><theoplayer-seek-button part="seek-forward-button seek-button center-button" seek-offset="10" mobile-only ad-hidden></theoplayer-seek-button></slot></div><div slot="middle-chrome" part="middle-chrome"><theoplayer-chromecast-display></theoplayer-chromecast-display></div><div part="bottom-chrome"><theoplayer-control-bar part="ad-chrome" ad-only><theoplayer-ad-display></theoplayer-ad-display><theoplayer-ad-countdown></theoplayer-ad-countdown><span class="theoplayer-spacer"></span><theoplayer-ad-skip-button></theoplayer-ad-skip-button></theoplayer-control-bar><theoplayer-control-bar><theoplayer-play-button part="play-button" mobile-hidden ad-only class="theoplayer-ad-control"></theoplayer-play-button><theoplayer-mute-button part="mute-button" ad-only class="theoplayer-ad-control"></theoplayer-mute-button><theoplayer-time-range part="time-range" show-ad-markers tv-focus .inert="','" class="theoplayer-ad-control" style="','"></theoplayer-time-range><theoplayer-chromecast-button tv-hidden ad-only class="theoplayer-ad-control"></theoplayer-chromecast-button><theoplayer-fullscreen-button ad-only class="theoplayer-ad-control"></theoplayer-fullscreen-button></theoplayer-control-bar><theoplayer-control-bar ad-hidden><theoplayer-play-button part="play-button" mobile-hidden></theoplayer-play-button><theoplayer-mute-button part="mute-button" tv-hidden></theoplayer-mute-button><theoplayer-volume-range part="volume-range" mobile-hidden tv-hidden></theoplayer-volume-range><theoplayer-live-button part="live-button" live-only ad-hidden></theoplayer-live-button><theoplayer-time-display show-duration remaining-when-live></theoplayer-time-display><span class="theoplayer-spacer" style="pointer-events:auto"></span><theoplayer-language-menu-button menu="language-menu" mobile-hidden ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button tv-hidden mobile-hidden ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button tv-hidden mobile-hidden ad-hidden></theoplayer-chromecast-button><slot name="bottom-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-hidden ad-hidden></theoplayer-settings-menu-button><theoplayer-fullscreen-button part="fullscreen-button" tv-hidden></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu><theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu><slot name="error" slot="error"><theoplayer-error-display></theoplayer-error-display></slot><slot name="menu" slot="menu"></slot>']);return vg=function(){return e},e}function vk(){var e=a(["[part=icon]{display:inline-block;position:relative}[part=warning-icon]{display:none;height:60%;min-width:60%;position:absolute;right:-10%;top:0;width:60%}[part=warning-icon] svg{fill:red;fill:var(--theolive-bad-network-mode,red)}"]);return vk=function(){return e},e}e.DefaultUI=void 0,uU=hR("theoplayer-default-ui"),uz=hB(),rv={slot:"title",flatten:!0},uV=hM({reflect:!1,attribute:hV.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),uH=hM({reflect:!1,attribute:hV.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),uG=hM({reflect:!0,type:Boolean,attribute:hV.FLUID}),uQ=hM({reflect:!0,type:Boolean,attribute:hV.MUTED}),uW=hM({reflect:!0,type:Boolean,attribute:hV.AUTOPLAY}),uK=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),uZ=hM({reflect:!0,type:Number,attribute:hV.USER_IDLE_TIMEOUT,useDefault:!0}),uY=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),uJ=hM({reflect:!0,type:Number,attribute:hV.DVR_THRESHOLD,useDefault:!0}),uX=hB(),new(uF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,uj(),t}return i(t,e),t}(l),rg=h0("____private__timeRangeInert_1"),rk=h0("____private_titleSlotNodes_2"),rw=h0("____private_fluid_3"),rx=h0("____private_muted_4"),rE=h0("____private_autoplay_5"),rT=h0("____private_streamType_6"),rA=h0("____private__hasTitle_7"),rC=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,rg,{writable:!0,value:void 0}),Object.defineProperty(r,rk,{writable:!0,value:void 0}),Object.defineProperty(r,rw,{writable:!0,value:void 0}),Object.defineProperty(r,rx,{writable:!0,value:void 0}),Object.defineProperty(r,rE,{writable:!0,value:void 0}),Object.defineProperty(r,rT,{writable:!0,value:void 0}),Object.defineProperty(r,rA,{writable:!0,value:void 0}),u7(r),r._uiRef=da(),hJ(r,rg)[rg]=u0(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,hJ(r,rk)[rk]=u1(r),hJ(r,rw)[rw]=u2(r,!1),hJ(r,rx)[rx]=u5(r,!1),hJ(r,rE)[rE]=u3(r,!1),hJ(r,rT)[rT]=u4(r,"vod"),hJ(r,rA)[rA]=u8(r,!1),r._updateStreamType=function(){r._uiRef.value&&(r.streamType=r._uiRef.value.streamType)},r._updateUserIdle=function(){clearTimeout(r._timeRangeInertTimeout),r.userIdle?r._timeRangeInert=!0:r._timeRangeInertTimeout=setTimeout(function(){r._timeRangeInert=!1},50),r.dispatchEvent(d7(vs))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}i(t,e);var n=t.prototype;return n.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(hV.DEVICE_TYPE)||(this.deviceType=vo()?"mobile":vl()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=d_(vr);!(t=r()).done;)(0,t.value)(this)}this._onTitleSlotChange()},n.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},n.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},n._onUiReady=function(){this.dispatchEvent(d7(vu))},n.render=function(){return hu(vb(),du(this._uiRef),this.configuration,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},n.renderUiContent=function(){return hu(vg(),fr({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,fr({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return hJ(this,rg)[rg]},set:function(e){hJ(this,rg)[rg]=e}},{key:"titleSlotNodes",get:function(){return hJ(this,rk)[rk]},set:function(e){hJ(this,rk)[rk]=e}},{key:"player",get:function(){var e;return null==(e=this._uiRef.value)?void 0:e.player}},{key:"configuration",get:function(){return this._configuration},set:function(e){var t;this._configuration=r({},e,{ads:r({},null!=(t=e.ads)?t:{},{showCountdown:!1})})}},{key:"source",get:function(){return this._uiRef.value?this._uiRef.value.source:this._source},set:function(e){this._uiRef.value?(this._source=void 0,this._uiRef.value.source=e):this._source=e}},{key:"fluid",get:function(){return hJ(this,rw)[rw]},set:function(e){hJ(this,rw)[rw]=e}},{key:"muted",get:function(){return hJ(this,rx)[rx]},set:function(e){hJ(this,rx)[rx]=e}},{key:"autoplay",get:function(){return hJ(this,rE)[rE]},set:function(e){hJ(this,rE)[rE]=e}},{key:"streamType",get:function(){return hJ(this,rT)[rT]},set:function(e){hJ(this,rT)[rT]=e}},{key:"userIdle",get:function(){return!!this._uiRef.value&&this._uiRef.value.userIdle}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){this._deviceType!==e&&(this._deviceType=e,dP(this,hV.MOBILE,"mobile"===e),dP(this,hV.TV,"tv"===e))}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return hJ(this,rA)[rA]},set:function(e){hJ(this,rA)[rA]=e}}]),t}(hL),u0=(r_=(rm=o(rC,[[uz,1,"_timeRangeInert"],[function(e,t){var r=(null!=rv?rv:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return hI(e,t,{get:function(){var e,t,r=null==(e=this.renderRoot)?void 0:e.querySelector(n);return null!=(t=null==r?void 0:r.assignedNodes(rv))?t:[]}})},1,"titleSlotNodes"],[uV,4,"configuration"],[uH,4,"source"],[uG,1,"fluid"],[uQ,1,"muted"],[uW,1,"autoplay"],[uK,1,"streamType"],[uZ,4,"userIdleTimeout"],[uY,4,"deviceType"],[uJ,4,"dvrThreshold"],[uX,1,"_hasTitle"]],[uU],hL)).e)[0],u1=r_[1],u2=r_[2],u5=r_[3],u3=r_[4],u4=r_[5],u8=r_[6],u7=r_[7],e.DefaultUI=(rb=rm.c)[0],uj=rb[1],rC.styles=[v_],rC.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),rC.READY_EVENT=vu,uF);var vw=cN(vk());function vx(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return vx=function(){return e},e}u9=hR("theolive-bad-network-button"),ce=dD(["player"]),cn=hB(),ci=hM({reflect:!1,attribute:!1}),new(u6=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ct(),t}return i(t,e),t}(l),rP=h0("____private__inBadNetworkMode_1"),rO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rP,{writable:!0,value:void 0}),hJ(t,rP)[rP]=(co(t),ca(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hu(vx(),df(yJ),fr(e),df('<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48">\n <path d="m40 936 440-760 440 760H40Zm444.175-117q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Z"/>\n</svg>'))},v(t,[{key:"_inBadNetworkMode",get:function(){return hJ(this,rP)[rP]},set:function(e){hJ(this,rP)[rP]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)))}}]),t}(cr=e.MenuButton),ca=(rS=(rL=o(rO,[[cn,1,"_inBadNetworkMode"],[ci,4,"player"]],[u9,ce],cr)).e)[0],co=rS[1],(rR=rL.c)[0],ct=rR[1],rO.styles=[].concat(e.MenuButton.styles,[vw]),u6),cl=dD(["player"]);var vE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._badNetworkMode=!1,t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._badNetworkMode=null!=(r=null==(t=this._theoLive)?void 0:t.badNetworkMode)&&r,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(cs=e.RadioButton);function vT(){var e=a(["<slot>High Quality</slot>"]);return vT=function(){return e},e}cu=(cc=o(vE,[],[cl],cs).c)[0],(0,cc[1])(),ch=hR("theolive-automatic-quality-selector");var vA=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)!==!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!1)},r.render=function(){return hu(vT())},t}(cu);function vC(){var e=a(["<slot>Low Quality</slot>"]);return vC=function(){return e},e}(cd=o(vA,[],[ch],cu).c)[0],(0,cd[1])(),cp=hR("theolive-bad-network-quality-selector");var vL=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)===!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!0)},r.render=function(){return hu(vC())},t}(cu);function vS(){var e=a(["<theoplayer-radio-group ",' @change="','"><theolive-automatic-quality-selector></theolive-automatic-quality-selector><theolive-bad-network-quality-selector></theolive-bad-network-quality-selector></theoplayer-radio-group>']);return vS=function(){return e},e}function vR(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-family:Helvetica,Arial,sans-serif;position:relative;width:100%}:host([hidden]){display:none!important}theoplayer-ui{--theoplayer-loading-delay:0.1s;display:block;font-family:Helvetica,Arial,sans-serif;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}theoplayer-menu::part(heading){display:none!important}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *{--theoplayer-control-height:48px}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end;pointer-events:none}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:rgba(0,0,0,.5)}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:-webkit-gradient(linear,left bottom,left top,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:-webkit-gradient(linear,left top,left bottom,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:12px;--theoplayer-range-track-pointer-background:hsla(0,0%,100%,.5)}:host(:not([mobile])) [mobile-only],:host([mobile]) [mobile-hidden]{display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([has-first-play]) [part=centered-chrome] :not(theoplayer-play-button),theoplayer-ui:not([has-first-play]) theoplayer-control-bar,theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui[playing-ad] [ad-hidden]{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part=centered-chrome] theoplayer-play-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:70px;overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display{padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}p{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:20px;font-size:var(--theoplayer-text-font-size,20px)}theolive-bad-network-button{display:none;display:var(--theolive-bad-network-button-display,none)}theoplayer-settings-menu-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theolive-quality-button-display,inline-flex)}']);return vR=function(){return e},e}(cy=o(vL,[],[cp],cu).c)[0],(0,cy[1])(),cv=hR("theolive-bad-network-menu"),new(cf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cm(),t}return i(t,e),t}(l),rB=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=da(),e._onChange=function(){e.dispatchEvent(new Event("change",{bubbles:!0}))},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){this._radioGroupRef.value&&!x(this._radioGroupRef.value,e.RadioGroup)&&customElements.upgrade(this._radioGroupRef.value)},n.render=function(){return hu(vS(),du(this._radioGroupRef),this._onChange)},r}(hL),(rM=o(rB,[],[cv],hL).c)[0],cm=rM[1],rB.styles=[pR],cf);var vP=cN(vR());function vO(){var e=a(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">Loading...</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">The live stream hasn\'t started yet</slot></p><p id="announcement" no-auto-hide slot="centered-chrome" style="','">','</p><theoplayer-loading-indicator slot="centered-loading" no-auto-hide part="loading-indicator"></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><theoplayer-play-button part="center-play-button play-button center-button" style="','"></theoplayer-play-button></div><div part="bottom-chrome"><theoplayer-control-bar><theoplayer-play-button mobile-hidden part="play-button" style="','"></theoplayer-play-button><theoplayer-mute-button part="mute-button"></theoplayer-mute-button><theoplayer-volume-range mobile-hidden part="volume-range"></theoplayer-volume-range><theoplayer-live-button ad-hidden live-only part="live-button"></theoplayer-live-button><span class="theoplayer-spacer"></span><theoplayer-settings-menu-button ad-hidden menu="all-quality-menu" part="quality-button"></theoplayer-settings-menu-button><theolive-bad-network-button ad-hidden menu="quality-menu" part="theolive-bad-network-button"></theolive-bad-network-button><theoplayer-fullscreen-button part="fullscreen-button"></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-menu id="quality-menu" slot="menu" menu-close-on-input hidden><theolive-bad-network-menu></theolive-bad-network-menu></theoplayer-menu><theoplayer-menu id="all-quality-menu" slot="menu" menu-close-on-input hidden><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-error-display slot="error" part="error-display" style="','"></theoplayer-error-display>']);return vO=function(){return e},e}e.THEOliveDefaultUI=void 0,cb=hR("theolive-default-ui"),cw=hB(),cx=hB(),cE=hB(),cT=hB(),new(c_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cg(),t}return i(t,e),t}(l),rD=h0("____private__announcementType_1"),rq=h0("____private__announcementMessage_2"),rF=h0("____private__hidePlayButton_3"),rU=h0("____private__hideErrorDisplay_4"),rj=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,rD,{writable:!0,value:void 0}),Object.defineProperty(r,rq,{writable:!0,value:void 0}),Object.defineProperty(r,rF,{writable:!0,value:void 0}),Object.defineProperty(r,rU,{writable:!0,value:void 0}),hJ(r,rD)[rD]=(cR(r),cA(r,"")),hJ(r,rq)[rq]=cC(r,""),hJ(r,rF)[rF]=cL(r,!1),hJ(r,rU)[rU]=cS(r,!1),r.onLoadChannelStart=function(){r.showMessage_("loading",void 0)},r.onChannelOffline=function(){r.showMessage_("offline",void 0)},r.onChannelLoaded=function(){r.hidePlayerError(),r.hideMessage_()},r.onError=function(e){var t=e.errorObject.code;if(t<13e3||t>=14e3)return void r.showMessage_("offline",void 0);r.stopHidingPlayerError(),r.hideMessage_()},r}i(t,e);var r=t.prototype;return r._onUiReady=function(){e.prototype._onUiReady.call(this);var t,r,n,i=this.player;i&&(null==(t=i.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this.onLoadChannelStart),null==(r=i.theoLive)||r.addEventListener(["distributionoffline","publicationoffline"],this.onChannelOffline),null==(n=i.theoLive)||n.addEventListener(["endpointloaded","publicationloaded"],this.onChannelLoaded),i.addEventListener("error",this.onError))},r.hidePlayerError=function(){var e;null==(e=this._uiRef.value)||e.removeAttribute(hV.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(hV.HAS_ERROR,""),this._hideErrorDisplay=!1},r.showMessage_=function(e,t){this.hidePlayerError(),this._announcementType=e,this._announcementMessage=null!=t?t:"",this._hidePlayButton=!0},r.hideMessage_=function(){this._announcementType="",this._announcementMessage="",this._hidePlayButton=!1},r.renderUiContent=function(){var e={display:"loading"===this._announcementType?"":"none"},t={display:"offline"===this._announcementType?"":"none"},r={display:"announcement"===this._announcementType?"":"none"},n={display:this._hidePlayButton?"none":""},i={display:this._hideErrorDisplay?"none":""};return hu(vO(),fr(e),fr(t),fr(r),this._announcementMessage,fr(n),fr(n),fr(i))},v(t,[{key:"_announcementType",get:function(){return hJ(this,rD)[rD]},set:function(e){hJ(this,rD)[rD]=e}},{key:"_announcementMessage",get:function(){return hJ(this,rq)[rq]},set:function(e){hJ(this,rq)[rq]=e}},{key:"_hidePlayButton",get:function(){return hJ(this,rF)[rF]},set:function(e){hJ(this,rF)[rF]=e}},{key:"_hideErrorDisplay",get:function(){return hJ(this,rU)[rU]},set:function(e){hJ(this,rU)[rU]=e}}]),t}(ck=e.DefaultUI),cA=(rN=(rI=o(rj,[[cw,1,"_announcementType"],[cx,1,"_announcementMessage"],[cE,1,"_hidePlayButton"],[cT,1,"_hideErrorDisplay"]],[cb],ck)).e)[0],cC=rN[1],cL=rN[2],cS=rN[3],cR=rN[4],e.THEOliveDefaultUI=(r$=rI.c)[0],cg=r$[1],rj.styles=[vP],c_),e.Attribute=hV,e.CastButton=fE,e.ColorStops=y9,e.ExtensionSlot=vt,e.StateReceiverMixin=function(e,t){var r,n,a=dD(t),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(e);return r=(n=o(l,[],[a],e).c)[0],(0,n[1])(),r},e.buttonTemplate=hY,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),hY("<a>"+e+"</a>",t)},e.menuGroupTemplate=function(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e},e.menuTemplate=function(e,t,r){return void 0===r&&(r=""),"<style>"+r+'</style><div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>'+e+'</div><div part="content">'+t+"</div>"},e.registerExtension=function(e){vr.push(e)},e.stateReceiver=dD,e.version="2.0.0-beta.0"},"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("theoplayer/chromeless")):"function"==typeof define&&define.amd?define(["exports","theoplayer/chromeless"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).THEOplayerUI={},e.THEOplayer);
|
|
1
|
+
var e,t;e=this,t=function(e,t){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(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&&n(e,t)}function a(e,t){return t||(t=e.slice(0)),e.raw=t,e}function o(e,t,r,n){function i(e,t){return function(r){(function(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")})(t,"addInitializer"),l(r,"An initializer"),e.push(r)}}function a(e,t,r,n,a,o,l,s,u){switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var c,h,d,p={kind:c,name:l?"#"+t:t,static:o,private:l,metadata:s},y={v:!1};p.addInitializer=i(n,y),0===a?l?(h=r.get,d=r.set):(h=function(){return this[t]},d=function(e){this[t]=e}):2===a?h=function(){return r.value}:((1===a||3===a)&&(h=function(){return r.get.call(this)}),(1===a||4===a)&&(d=function(e){r.set.call(this,e)})),p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};try{return e(u,p)}finally{y.v=!0}}function l(e,t){if("function"!=typeof e)throw TypeError(t+" must be a function")}function s(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&l(t.get,"accessor.get"),void 0!==t.set&&l(t.set,"accessor.set"),void 0!==t.init&&l(t.init,"accessor.init")}else if("function"!==r)throw TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function u(e,t){t&&e.push(function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e})}function c(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}return(o=function(e,t,r,n){if(void 0!==n)var o=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===o?null:o),h=function(e,t,r){for(var n=[],i=new Map,o=new Map,l=0;l<t.length;l++){var c,h,d,p,y=t[l];if(Array.isArray(y)){var f=y[1],v=y[2],m=y.length>3,b=f>=5;if(b?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!m){var _=b?o:i,g=_.get(v)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+v);!g&&f>2?_.set(v,f):_.set(v,!0)}!function(e,t,r,n,i,o,l,u,c){var h,d,p,y,f,v,m=r[0];if(l?h=0===i||1===i?{get:r[3],set:r[4]}:3===i?{get:r[3]}:4===i?{set:r[3]}:{value:r[3]}:0!==i&&(h=Object.getOwnPropertyDescriptor(t,n)),1===i?p={get:h.get,set:h.set}:2===i?p=h.value:3===i?p=h.get:4===i&&(p=h.set),"function"==typeof m)void 0!==(y=a(m,n,h,u,i,o,l,c,p))&&(s(i,y),0===i?d=y:1===i?(d=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y);else for(var b=m.length-1;b>=0;b--)void 0!==(y=a(m[b],n,h,u,i,o,l,c,p))&&(s(i,y),0===i?v=y:1===i?(v=y.init,p={get:f=y.get||p.get,set:y.set||p.set}):p=y,void 0!==v&&(void 0===d?d=v:"function"==typeof d?d=[d,v]:d.push(v)));if(0===i||1===i){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var _=d;d=function(e,t){for(var r=t,n=0;n<_.length;n++)r=_[n].call(e,r);return r}}else{var g=d;d=function(e,t){return g.call(e,t)}}e.push(d)}0!==i&&(1===i?(h.get=p.get,h.set=p.set):2===i?h.value=p:3===i?h.get=p:4===i&&(h.set=p),l?1===i?(e.push(function(e,t){return p.get.call(e,t)}),e.push(function(e,t){return p.set.call(e,t)})):2===i?e.push(p):e.push(function(e,t){return p.call(e,t)}):Object.defineProperty(t,n,h))}(n,d,y,v,f,b,m,p,r)}}return u(n,c),u(n,h),n}(e,t,l);return r.length||c(e,l),{e:h,get c(){return function(e,t,r){if(t.length>0){for(var n=[],a=e,o=e.name,l=t.length-1;l>=0;l--){var u={v:!1};try{var h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r})}finally{u.v=!0}void 0!==h&&(s(10,h),a=h)}return[c(a,r),function(){for(var e=0;e<n.length;e++)n[e].call(a)}]}}(e,r,l)}}})(e,t,r,n)}function l(e){return e}function s(e,t,r,n,i,a,o){try{var l=e[a](o),s=l.value}catch(e){r(e);return}l.done?t(s):Promise.resolve(s).then(n,i)}function u(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function d(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function p(e,t,r){t=c(t);var n=h()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r);if(n&&("object"===d(n)||"function"==typeof n))return n;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function v(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),e}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,l=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){l=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(l)throw n}}return a}}(e,t)||b(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.")}()}function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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.")}()}function k(e,t,r){return(k=h()?Reflect.construct:function(e,t,r){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return r&&n(a,r.prototype),a}).apply(null,arguments)}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return k(e,arguments,c(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n(r,e)})(e)}function x(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function E(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var u=[l,s];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}"function"==typeof SuppressedError&&SuppressedError;var T,A,C,L,S,R,P,O,M,B,I,N,$,D,q,F,U,j,z,V,H,G,Q,W,K,Z,Y,J,X,ee,et,er,en,ei,ea,eo,el,es,eu,ec,eh,ed,ep,ey,ef,ev,em,eb,e_,eg,ek,ew,ex,eE,eT,eA,eC,eL,eS,eR,eP,eO,eM,eB,eI,eN,e$,eD,eq,eF,eU,ej,ez,eV,eH,eG,eQ,eW,eK,eZ,eY,eJ,eX,e0,e1,e2,e5,e3,e4,e8,e7,e6,e9,te,tt,tr,tn,ti,ta,to,tl,ts,tu,tc,th,td,tp,ty,tf,tv,tm,tb,t_,tg,tk,tw,tx,tE,tT,tA,tC,tL,tS,tR,tP,tO,tM,tB,tI,tN,t$,tD,tq,tF,tU,tj,tz,tV,tH,tG,tQ,tW,tK,tZ,tY,tJ,tX,t0,t1,t2,t5,t3,t4,t8,t7,t6,t9,re,rt,rr,rn,ri,ra,ro,rl,rs,ru,rc,rh,rd,rp,ry,rf,rv,rm,rb,r_,rg,rk,rw,rx,rE,rT,rA,rC,rL,rS,rR,rP,rO,rM,rB,rI,rN,r$,rD,rq,rF,rU,rj,rz,rV,rH,rG,rQ,rW,rK,rZ,rY,rJ,rX,r0,r1,r2,r5,r3,r4,r8,r7,r6,r9,ne,nt,nr,nn,ni,na,no,nl,ns,nu,nc,nh,nd,np,ny,nf,nv,nm,nb,n_,ng,nk,nw,nx,nE,nT,nA,nC,nL,nS,nR,nP,nO,nM,nB,nI,nN,n$,nD,nq,nF,nU,nj,nz,nV,nH,nG,nQ,nW,nK,nZ,nY,nJ,nX,n0,n1,n2,n5,n3,n4,n8,n7,n6,n9,ie,it,ir,ii,ia,io,il,is,iu,ic,ih,id,ip,iy,iv,im,ib,i_,ig,ik,iw,ix,iE,iT,iA,iC,iL,iS,iR,iP,iO,iM,iB,iI,iN,i$,iD,iq,iF,iU,ij,iz,iV,iH,iG,iQ,iW,iK,iZ,iY,iJ,iX,i0,i1,i2,i5,i3,i4,i8,i7,i6,i9,ae,at,ar,an,ai,aa,ao,al,as,au,ac,ah,ad,ap,ay,af,av,am,ab,a_,ag,ak,aw,ax,aE,aT,aA,aC,aL,aS,aR,aP,aO,aM,aB,aI,aN,a$,aD,aq,aF,aU,aj,az,aV,aH,aG,aQ,aW,aK,aZ,aY,aJ,aX,a0,a1,a2,a5,a3,a4,a8,a7,a6,a9,oe,ot,or,on,oi,oa,oo,ol,os,ou,oc,oh,od,op,oy,of,ov,om,ob,o_,og,ok,ow,ox,oE,oT,oA,oC,oL,oS,oR,oP,oO,oM,oB,oI,oN,o$,oD,oq,oF,oU,oj,oz,oV,oH,oG,oQ,oW,oK,oZ,oY,oJ,oX,o0,o1,o2,o5,o3,o4,o8,o7,o6,o9,le,lt,lr,ln,li,la,lo,ll,ls,lu,lc,lh,ld,lp,ly,lf,lv,lm,lb,l_,lg,lk,lw,lx,lE,lT,lA,lC,lL,lS,lR,lP,lO,lM,lB,lI,lN,l$,lD,lq,lF,lU,lj,lz,lV,lH,lG,lQ,lW,lK,lZ,lY,lJ,lX,l0,l1,l2,l5,l3,l4,l8,l7,l6,l9,se,st,sr,sn,si,sa,so,sl,ss,su,sc,sh,sd,sp,sy,sf,sv,sm,sb,s_,sg,sk,sw,sx,sE,sT,sA,sC,sL,sS,sR,sP,sO,sM,sB,sI,sN,s$,sD,sq,sF,sU,sj,sz,sV,sH,sG,sQ,sW,sK,sZ,sY,sJ,sX,s0,s1,s2,s5,s3,s4,s8,s7,s6,s9,ue,ut,ur,un,ui,ua,uo,ul,us,uu,uc,uh,ud,up,uy,uf,uv,um,ub,u_,ug,uk,uw,ux,uE,uT,uA,uC,uL,uS,uR,uP,uO,uM,uB,uI,uN,u$,uD,uq,uF,uU,uj,uz,uV,uH,uG,uQ,uW,uK,uZ,uY,uJ,uX,u0,u1,u2,u5,u3,u4,u8,u7,u6,u9,ce,ct,cr,cn,ci,ca,co,cl,cs,cu,cc,ch,cd,cp,cy,cf,cv,cm,cb,c_,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP=self,cO=cP.ShadowRoot&&(void 0===cP.ShadyCSS||cP.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,cM=Symbol(),cB=new WeakMap,cI=function(){function e(t,r,n){if(y(this,e),this._$cssResult$=!0,n!==cM)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return v(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(cO&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=cB.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&cB.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),cN=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new cI(1===e.length?e[0]:r.reduce(function(t,r,n){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(r)+e[n+1]},e[0]),e,cM)},c$=function(e,t){var r=!0,n=!1,i=void 0;if(cO)e.adoptedStyleSheets=t.map(function(e){return x(e,CSSStyleSheet)?e:e.styleSheet});else try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value,s=document.createElement("style"),u=cP.litNonce;void 0!==u&&s.setAttribute("nonce",u),s.textContent=l.cssText,e.appendChild(s)}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}},cD=cO?function(e){return e}:function(e){return x(e,CSSStyleSheet)?function(e){var t,r="",n=!0,i=!1,a=void 0;try{for(var o,l=e.cssRules[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;r+=s.cssText}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}return new cI("string"==typeof(t=r)?t:t+"",void 0,cM)}(e):e},cq=Object.is,cF=Object.defineProperty,cU=Object.getOwnPropertyDescriptor,cj=Object.getOwnPropertyNames,cz=Object.getOwnPropertySymbols,cV=Object.getPrototypeOf,cH=self,cG=cH.trustedTypes,cQ=cG?cG.emptyScript:"",cW=cH.reactiveElementPolyfillSupport,cK=function(e,t){return e},cZ={toAttribute:function(e,t){switch(t){case Boolean:e=e?cQ:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},cY=function(e,t){return!cq(e,t)},cJ={attribute:!0,type:String,converter:cZ,reflect:!1,useDefault:!1,hasChanged:cY};null!=(rz=Symbol).metadata||(rz.metadata=Symbol("metadata")),null!=cH.litPropertyMetadata||(cH.litPropertyMetadata=new WeakMap);var cX=function(e){function t(){var e;return y(this,t),(e=p(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return i(t,e),v(t,[{key:"_$Ev",value:function(){var e,t=this;this._$ES=new Promise(function(e){return t.enableUpdating=e}),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(e=this.constructor.l)||e.forEach(function(e){return e(t)})}},{key:"addController",value:function(e){var t,r;(null!=(r=this._$EO)?r:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(t=e.hostConnected)||t.call(e))}},{key:"removeController",value:function(e){var t;null==(t=this._$EO)||t.delete(e)}},{key:"_$E_",value:function(){var e=new Map,t=this.constructor.elementProperties,r=!0,n=!1,i=void 0;try{for(var a,o=t.keys()[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.hasOwnProperty(l)&&(e.set(l,this[l]),delete this[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}e.size>0&&(this._$Ep=e)}},{key:"createRenderRoot",value:function(){var e,t=null!=(e=this.shadowRoot)?e:this.attachShadow(this.constructor.shadowRootOptions);return c$(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostConnected)?void 0:t.call(e)})}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostDisconnected)?void 0:t.call(e)})}},{key:"attributeChangedCallback",value:function(e,t,r){this._$AK(e,r)}},{key:"_$ET",value:function(e,t){var r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){var i,a=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:cZ).toAttribute(t,r.type);this._$Em=e,null==a?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}},{key:"_$AK",value:function(e,t){var r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){var i,a,o,l=r.getPropertyOptions(n),s="function"==typeof l.converter?{fromAttribute:l.converter}:void 0!==(null==(i=l.converter)?void 0:i.fromAttribute)?l.converter:cZ;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(o=null!=u?u:null==(a=this._$Ej)?void 0:a.get(n))?o:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r){if(void 0!==e){var n,i,a=this.constructor,o=this[e];if(null!=r||(r=a.getPropertyOptions(e)),!((null!=(i=r.hasChanged)?i:cY)(o,t)||r.useDefault&&r.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(e))&&!this.hasAttribute(a._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}},{key:"C",value:function(e,t,r,n){var i,a,o,l=r.useDefault,s=r.reflect,u=r.wrapped;l&&!(null!=(i=this._$Ej)?i:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,null!=(a=null!=n?n:t)?a:this[e]),!0!==u||void 0!==n)||(this._$AL.has(e)||(this.hasUpdated||l||(t=void 0),this._$AL.set(e,t)),!0===s&&this._$Em!==e&&(null!=(o=this._$Eq)?o:this._$Eq=new Set).add(e))}},{key:"_$EP",value:function(){return u(function(){var e;return E(this,function(t){switch(t.label){case 0:this.isUpdatePending=!0,t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._$ES];case 2:return t.sent(),[3,4];case 3:return Promise.reject(t.sent()),[3,4];case 4:if(null==(e=this.scheduleUpdate()))return[3,6];return[4,e];case 5:t.sent(),t.label=6;case 6:return[2,!this.isUpdatePending]}})}).call(this)}},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){if(this.isUpdatePending){if(!this.hasUpdated){if(null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this._$Ep){var e,t=!0,r=!1,n=void 0;try{for(var i,a=this._$Ep[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=_(i.value,2),l=o[0],s=o[1];this[l]=s}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._$Ep=void 0}var u=this.constructor.elementProperties,c=!0,h=!1,d=void 0;if(u.size>0)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=_(p.value,2),v=f[0],m=f[1],b=m.wrapped,g=this[v];!0!==b||this._$AL.has(v)||void 0===g||this.C(v,void 0,m,g)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}var k=!1,w=this._$AL;try{(k=this.shouldUpdate(w))?(this.willUpdate(w),null==(e=this._$EO)||e.forEach(function(e){var t;return null==(t=e.hostUpdate)?void 0:t.call(e)}),this.update(w)):this._$EM()}catch(e){throw k=!1,this._$EM(),e}k&&this._$AE(w)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null==(t=this._$EO)||t.forEach(function(e){var t;return null==(t=e.hostUpdated)?void 0:t.call(e)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EM",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$ES}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;this._$Eq&&(this._$Eq=this._$Eq.forEach(function(e){return t._$ET(e,t[e])})),this._$EM()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;this._$Ei(),(null!=(t=this.l)?t:this.l=[]).push(e)}},{key:"observedAttributes",get:function(){return this.finalize(),this._$Eh&&g(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=cJ),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){var r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&cF(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=cU(this.prototype,e))?n:{get:function(){return this[t]},set:function(e){this[t]=e}},a=i.get,o=i.set;return{get:a,set:function(t){var n=null==a?void 0:a.call(this);null==o||o.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){var t;return null!=(t=this.elementProperties.get(e))?t:cJ}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(cK("elementProperties"))){var e=cV(this);e.finalize(),void 0!==e.l&&(this.l=g(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(cK("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(cK("properties"))){var e=this.properties,t=g(cj(e)).concat(g(cz(e))),r=!0,n=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;this.createProperty(l,e[l])}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}var s=this[Symbol.metadata];if(null!==s){var u=litPropertyMetadata.get(s),c=!0,h=!1,d=void 0;if(void 0!==u)try{for(var p,y=u[Symbol.iterator]();!(c=(p=y.next()).done);c=!0){var f=_(p.value,2),v=f[0],m=f[1];this.elementProperties.set(v,m)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var b=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(b=(x=E.next()).done);b=!0){var T=_(x.value,2),A=T[0],C=T[1],L=this._$Eu(A,C);void 0!==L&&this._$Eh.set(L,A)}}catch(e){k=!0,w=e}finally{try{b||null==E.return||E.return()}finally{if(k)throw w}}this.elementStyles=this.finalizeStyles(this.styles)}}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var r=new Set(e.flat(1/0).reverse()),n=!0,i=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=o.value;t.unshift(cD(s))}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}else void 0!==e&&t.push(cD(e));return t}},{key:"_$Eu",value:function(e,t){var r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}}]),t}(w(HTMLElement));cX.elementStyles=[],cX.shadowRootOptions={mode:"open"},cX[cK("elementProperties")]=new Map,cX[cK("finalized")]=new Map,null==cW||cW({ReactiveElement:cX}),(null!=(rV=cH.reactiveElementVersions)?rV:cH.reactiveElementVersions=[]).push("2.1.1");var c0=self,c1=c0.trustedTypes,c2=c1?c1.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,c5="$lit$",c3="lit$"+Math.random().toFixed(9).slice(2)+"$",c4="?"+c3,c8="<"+c4+">",c7=document,c6=function(){return c7.createComment("")},c9=function(e){return null===e||"object"!=(void 0===e?"undefined":d(e))&&"function"!=typeof e},he=Array.isArray,ht="[ \n\f\r]",hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hn=/-->/g,hi=/>/g,ha=RegExp(">|"+ht+"(?:([^\\s\"'>=/]+)("+ht+"*="+ht+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),ho=/'/g,hl=/"/g,hs=/^(?:script|style|textarea|title)$/i,hu=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return{_$litType$:1,strings:e,values:r}},hc=Symbol.for("lit-noChange"),hh=Symbol.for("lit-nothing"),hd=new WeakMap,hp=c7.createTreeWalker(c7,129,null,!1);function hy(e,t){if(!he(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==c2?c2.createHTML(t):t}var hf=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hr,l=0;l<n;l++){for(var s=e[l],u=void 0,c=void 0,h=-1,d=0;d<s.length&&(o.lastIndex=d,null!==(c=o.exec(s)));)d=o.lastIndex,o===hr?"!--"===c[1]?o=hn:void 0!==c[1]?o=hi:void 0!==c[2]?(hs.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=ha):void 0!==c[3]&&(o=ha):o===ha?">"===c[0]?(o=null!=r?r:hr,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?ha:'"'===c[3]?hl:ho):o===hl||o===ho?o=ha:o===hn||o===hi?o=hr:(o=ha,r=void 0);var p=o===ha&&e[l+1].startsWith("/>")?" ":"";a+=o===hr?s+c8:h>=0?(i.push(u),s.slice(0,h)+c5+s.slice(h)+c3+p):s+c3+(-2===h?l:p)}return[hy(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},hv=function(){function e(t,r){var n=t.strings,i=t._$litType$;y(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=_(hf(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),hp.currentNode=this.el.content,2===i||3===i){var d,p=this.el.content.firstChild;p.replaceWith.apply(p,g(p.childNodes))}for(;null!==(d=hp.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,m=void 0;if(d.hasAttributes())try{for(var b,k=d.getAttributeNames()[Symbol.iterator]();!(f=(b=k.next()).done);f=!0){var w=b.value;if(w.endsWith(c5)){var x=h[o++],E=d.getAttribute(w).split(c3),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?hk:"?"===T[1]?hw:"@"===T[1]?hx:hg}),d.removeAttribute(w)}else w.startsWith(c3)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,m=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw m}}if(hs.test(d.tagName)){var A=d.textContent.split(c3),C=A.length-1;if(C>0){d.textContent=c1?c1.emptyScript:"";for(var L=0;L<C;L++)d.append(A[L],c6()),hp.nextNode(),s.push({type:2,index:++a});d.append(A[C],c6())}}}else if(8===d.nodeType)if(d.data===c4)s.push({type:2,index:a});else for(var S=-1;-1!==(S=d.data.indexOf(c3,S+1));)s.push({type:7,index:a}),S+=c3.length-1;a++}}return v(e,null,[{key:"createElement",value:function(e,t){var r=c7.createElement("template");return r.innerHTML=e,r}}]),e}();function hm(e,t,r,n){if(void 0===r&&(r=e),t===hc)return t;var i,a,o,l,s=void 0!==n?null==(i=r._$Co)?void 0:i[n]:r._$Cl,u=c9(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(a=s._$AO)||a.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(l=(o=r)._$Co)?l:o._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=hm(e,s._$AS(e,t.values),s,n)),t}var hb=function(){function e(t,r){y(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return v(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(e){var t,r=this._$AD,n=r.el.content,i=r.parts,a=(null!=(t=null==e?void 0:e.creationScope)?t:c7).importNode(n,!0);hp.currentNode=a;for(var o=hp.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new h_(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new hE(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=hp.nextNode(),l++)}return hp.currentNode=c7,a}},{key:"p",value:function(e){var t=0,r=!0,n=!1,i=void 0;try{for(var a,o=this._$AV[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;void 0!==l&&(void 0!==l.strings?(l._$AI(e,l,t),t+=l.strings.length-2):l._$AI(e[t])),t++}}catch(e){n=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw i}}}}]),e}(),h_=function(){function e(t,r,n,i){var a;y(this,e),this.type=2,this._$AH=hh,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=null==(a=null==i?void 0:i.isConnected)||a}return v(e,[{key:"_$AU",get:function(){var e,t;return null!=(t=null==(e=this._$AM)?void 0:e._$AU)?t:this._$Cv}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===(null==e?void 0:e.nodeType)&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e,t){var r;void 0===t&&(t=this),c9(e=hm(this,e,t))?e===hh||null==e||""===e?(this._$AH!==hh&&this._$AR(),this._$AH=hh):e!==this._$AH&&e!==hc&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):he(r=e)||"function"==typeof(null==r?void 0:r[Symbol.iterator])?this.k(e):this._(e)}},{key:"O",value:function(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}},{key:"T",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}},{key:"_",value:function(e){this._$AH!==hh&&c9(this._$AH)?this._$AA.nextSibling.data=e:this.T(c7.createTextNode(e)),this._$AH=e}},{key:"$",value:function(e){var t,r=e.values,n=e._$litType$,i="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=hv.createElement(hy(n.h,n.h[0]),this.options)),n);if((null==(t=this._$AH)?void 0:t._$AD)===i)this._$AH.p(r);else{var a=new hb(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=hd.get(e.strings);return void 0===t&&hd.set(e.strings,t=new hv(e)),t}},{key:"k",value:function(t){he(this._$AH)||(this._$AH=[],this._$AR());var r,n=this._$AH,i=0,a=!0,o=!1,l=void 0;try{for(var s,u=t[Symbol.iterator]();!(a=(s=u.next()).done);a=!0){var c=s.value;i===n.length?n.push(r=new e(this.O(c6()),this.O(c6()),this,this.options)):r=n[i],r._$AI(c),i++}}catch(e){o=!0,l=e}finally{try{a||null==u.return||u.return()}finally{if(o)throw l}}i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}},{key:"_$AR",value:function(e,t){for(void 0===e&&(e=this._$AA.nextSibling),null==(r=this._$AP)||r.call(this,!1,!0,t);e&&e!==this._$AB;){var r,n=e.nextSibling;e.remove(),e=n}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cv=e,null==(t=this._$AP)||t.call(this,e))}}]),e}(),hg=function(){function e(t,r,n,i,a){y(this,e),this.type=1,this._$AH=hh,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=a,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=hh}return v(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e,t,r,n){void 0===t&&(t=this);var i=this.strings,a=!1;if(void 0===i)(a=!c9(e=hm(this,e,t,0))||e!==this._$AH&&e!==hc)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=hm(this,s[r+o],t,o))===hc&&(l=this._$AH[o]),a||(a=!c9(l)||l!==this._$AH[o]),l===hh?e=hh:e!==hh&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===hh?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),hk=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=3,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element[this.name]=e===hh?void 0:e}}]),t}(hg),hw=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.type=4,e}return i(t,e),v(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==hh)}}]),t}(hg),hx=function(e){function t(e,r,n,i,a){var o;return y(this,t),(o=p(this,t,[e,r,n,i,a])).type=5,o}return i(t,e),v(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=hm(this,e,t,0))?r:hh)!==hc){var r,n=this._$AH,i=e===hh&&n!==hh||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==hh&&(n===hh||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,r;"function"==typeof this._$AH?this._$AH.call(null!=(r=null==(t=this.options)?void 0:t.host)?r:this.element,e):this._$AH.handleEvent(e)}}]),t}(hg),hE=function(){function e(t,r,n){y(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){hm(this,e)}}]),e}(),hT=c0.litHtmlPolyfillSupport;null==hT||hT(hv,h_),(null!=(rH=c0.litHtmlVersions)?rH:c0.litHtmlVersions=[]).push("3.3.0");var hA=function(e,t,r){var n=null!=(a=null==r?void 0:r.renderBefore)?a:t,i=n._$litPart$;if(void 0===i){var a,o,l=null!=(o=null==r?void 0:r.renderBefore)?o:null;n._$litPart$=i=new h_(t.insertBefore(c6(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},hC=globalThis,hL=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return i(t,e),v(t,[{key:"createRenderRoot",value:function(){var t,r=e.prototype.createRenderRoot.call(this);return null!=(t=this.renderOptions).renderBefore||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(t){var r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),e.prototype.update.call(this,t),this._$Do=hA(r,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var t;e.prototype.connectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var t;e.prototype.disconnectedCallback.call(this),null==(t=this._$Do)||t.setConnected(!1)}},{key:"render",value:function(){return hc}}]),t}(cX);hL._$litElement$=!0,hL.finalized=!0,null==(rG=hC.litElementHydrateSupport)||rG.call(hC,{LitElement:hL});var hS=hC.litElementPolyfillSupport;null==hS||hS({LitElement:hL}),(null!=(rQ=hC.litElementVersions)?rQ:hC.litElementVersions=[]).push("4.2.1");var hR=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},hP={attribute:!0,type:String,converter:cZ,reflect:!1,hasChanged:cY},hO=function(e,t,r){void 0===e&&(e=hP);var n=r.kind,i=r.metadata,a=self.litPropertyMetadata.get(i);if(void 0===a&&self.litPropertyMetadata.set(i,a=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),a.set(r.name,e),"accessor"===n){var o=r.name;return{set:function(r){var n=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,n,e)},init:function(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===n){var l=r.name;return function(r){var n=this[l];t.call(this,r),this.requestUpdate(l,n,e)}}throw Error("Unsupported decorator location: "+n)};function hM(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":d(r))?hO(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function hB(e){var t,r;return hM((t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e),r=r={state:!0,attribute:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var hI=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":d(t))&&Object.defineProperty(e,t,r),r};function hN(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host([hidden]){display:none!important}::slotted(theoplayer-time-range){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}"]);return hN=function(){return e},e}var h$=cN(hN());function hD(){var e=a(["<slot></slot>"]);return hD=function(){return e},e}e.ControlBar=void 0,rK=hR("theoplayer-control-bar"),new(rW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,rZ(),t}return i(t,e),t}(l),A=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(hD())},t}(hL),e.ControlBar=(T=o(A,[],[rK],hL).c)[0],rZ=T[1],A.styles=[h$],A.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),rW);var hq=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return{_$litDirective$:e,values:r}}},hF=function(){function e(t){y(this,e)}return v(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AT",value:function(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}},{key:"_$AS",value:function(e,t){return this.update(e,t)}},{key:"update",value:function(e,t){return this.render.apply(this,g(t))}}]),e}(),hU=hq(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){return this.vt===e?hc:(this.vt=e,document.importNode(e.content,!0))}}]),t}(hF));function hj(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theoplayer-before-first-play-display,inline-flex);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);justify-content:center;line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle}:host([hidden]){display:none!important}:host(:not([disabled])){cursor:pointer}:host(:focus){-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}:host(:focus:not(:focus-visible)){-webkit-box-shadow:none;box-shadow:none}:host(:hover){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}:host([aria-checked=true]){background:#fff;background:var(--theoplayer-button-checked-background,#fff);color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]){background:transparent;background:var(--theoplayer-control-background,transparent);color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}[part$=icon],[part~=icon]{font-size:0}::slotted(img),::slotted(svg),img,svg{fill:currentColor;color:#fff;color:var(--theoplayer-icon-color,#fff);height:24px;height:var(--theoplayer-button-icon-height,var(--theoplayer-control-height,24px));max-height:100%;max-width:100%;min-width:100%;-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-button-icon-transition,none);transition:var(--theoplayer-button-icon-transition,none);vertical-align:middle;width:24px;width:var(--theoplayer-button-icon-width,var(--theoplayer-control-height,24px))}::slotted(img),img{-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-button-icon-shadow,none);box-shadow:var(--theoplayer-button-icon-shadow,none)}::slotted(svg),svg{-webkit-filter:drop-shadow(none);filter:drop-shadow(none);-webkit-filter:drop-shadow(var(--theoplayer-button-icon-shadow,none));filter:drop-shadow(var(--theoplayer-button-icon-shadow,none))}:host(:hover:not([disabled])) ::slotted(img),:host(:hover:not([disabled])) img{-webkit-box-shadow:0 0 4px hsla(0,0%,100%,.5);box-shadow:0 0 4px hsla(0,0%,100%,.5);-webkit-box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5));box-shadow:var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5))}:host(:hover:not([disabled])) ::slotted(svg),:host(:hover:not([disabled])) svg{-webkit-filter:drop-shadow(0 0 4px hsla(0,0%,100%,.5));filter:drop-shadow(0 0 4px rgba(255,255,255,.5));-webkit-filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px hsla(0,0%,100%,.5)));filter:drop-shadow(var(--theoplayer-button-hover-icon-shadow,0 0 4px rgba(255,255,255,.5)))}"]);return hj=function(){return e},e}var hz=cN(hj()),hV=((C={}).CONFIGURATION="configuration",C.SOURCE="source",C.AUTOPLAY="autoplay",C.MUTED="muted",C.FULLSCREEN="fullscreen",C.FULLWINDOW="fullwindow",C.FLUID="fluid",C.DEVICE_TYPE="device-type",C.MOBILE="mobile",C.TV="tv",C.TV_FOCUS="tv-focus",C.MOBILE_ONLY="mobile-only",C.MOBILE_HIDDEN="mobile-hidden",C.TV_ONLY="tv-only",C.TV_HIDDEN="tv-hidden",C.USER_IDLE="user-idle",C.USER_IDLE_TIMEOUT="user-idle-timeout",C.NO_AUTO_HIDE="no-auto-hide",C.DISABLED="disabled",C.INERT="inert",C.HIDDEN="hidden",C.PAUSED="paused",C.ENDED="ended",C.VOLUME_LEVEL="volume-level",C.CASTING="casting",C.LOADING="loading",C.STREAM_TYPE="stream-type",C.LIVE="live",C.LIVE_ONLY="live-only",C.LIVE_HIDDEN="live-hidden",C.LIVE_THRESHOLD="live-threshold",C.DVR_THRESHOLD="dvr-threshold",C.REMAINING="remaining",C.REMAINING_WHEN_LIVE="remaining-when-live",C.SHOW_DURATION="show-duration",C.SEEK_OFFSET="seek-offset",C.MENU="menu",C.MENU_OPENED="menu-opened",C.MENU_CLOSE_ON_INPUT="menu-close-on-input",C.ARIA_LABEL="aria-label",C.ARIA_LIVE="aria-live",C.ARIA_CHECKED="aria-checked",C.HAS_AUDIO="has-audio",C.HAS_SUBTITLES="has-subtitles",C.HAS_ERROR="has-error",C.HAS_FIRST_PLAY="has-first-play",C.CAST_STATE="cast-state",C.TRACK_TYPE="track-type",C.SHOW_OFF="show-off",C.PLAYING_AD="playing-ad",C.SHOW_AD_MARKERS="show-ad-markers",C.CLICKTHROUGH="clickthrough",C.PROPERTY="property",C.VALUE="value",C),hH=((L={})[L.ENTER=13]="ENTER",L[L.ESCAPE=27]="ESCAPE",L[L.SPACE=32]="SPACE",L[L.END=35]="END",L[L.HOME=36]="HOME",L[L.LEFT=37]="LEFT",L[L.UP=38]="UP",L[L.RIGHT=39]="RIGHT",L[L.DOWN=40]="DOWN",L[L.BACK_SAMSUNG=88]="BACK_SAMSUNG",L[L.BACK_WEBOS=461]="BACK_WEBOS",L[L.BACK_TIZEN=10009]="BACK_TIZEN",L);function hG(e){return 37<=e&&e<=40}function hQ(e){return 10009===e||27===e||88===e||461===e}function hW(e){return 13===e||32===e}function hK(){var e=a(["",""]);return hK=function(){return e},e}function hZ(){var e=a(["<slot></slot>"]);return hZ=function(){return e},e}function hY(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function hJ(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}e.Button=void 0,rJ=hR("theoplayer-button"),r0=hM({reflect:!0,type:Boolean,attribute:hV.DISABLED}),new(rY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,rX(),t}return i(t,e),t}(l),P=function(e){function t(t){var r;return r=e.call(this)||this,r1(r),r._disabled=!1,r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!hW(e.keyCode)||e.metaKey||e.altKey?r.removeEventListener("keyup",r._onKeyUp):r.addEventListener("keyup",r._onKeyUp)},r._onKeyUp=function(e){r.removeEventListener("keyup",r._onKeyUp),hW(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"polite"),this._disabled||this._enable()},r.disconnectedCallback=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp)},r._enable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.addEventListener("keydown",this._onKeyDown),this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.removeEventListener("click",this._onClick),this.removeEventListener("keydown",this._onKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?hu(hK(),hU(this._template)):hu(hZ())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(hL),r1=(S=o(P,[[r0,4,"disabled"]],[rJ],hL)).e[0],e.Button=(R=S.c)[0],rX=R[1],P.styles=[hz],rY);var hX=0;function h0(e){return"__private_"+hX+++"_"+e}function h1(){var e=a([":host{padding:0}a{color:#fff;color:var(--theoplayer-button-text-color,var(--theoplayer-text-color,#fff));padding:10px;padding:var(--theoplayer-control-padding,10px);-webkit-text-decoration:none;text-decoration:none}:host(:focus){-webkit-box-shadow:none;box-shadow:none;outline:0}a:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}a:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}:host([aria-checked=true]) a{color:#000;color:var(--theoplayer-button-checked-color,#000)}:host([disabled]) a{color:#ccc;color:var(--theoplayer-button-disabled-text-color,#ccc)}"]);return h1=function(){return e},e}var h2=cN(h1()),h5=function(){return document.createComment("")},h3=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new h_(n.insertBefore(h5(),i),n.insertBefore(h5(),i),e,e.options);else{var a,o,l=r._$AB.nextSibling,s=r._$AM,u=s!==e;if(u&&(null==(a=r._$AQ)||a.call(r,e),r._$AM=e,void 0!==r._$AP&&(o=e._$AU)!==s._$AU&&r._$AP(o)),l!==i||u)for(var c=r._$AA;c!==l;){var h=c.nextSibling;n.insertBefore(c,i),c=h}}return r},h4=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},h8={},h7=function(e){null==(t=e._$AP)||t.call(e,!1,!0);for(var t,r=e._$AA,n=e._$AB.nextSibling;r!==n;){var i=r.nextSibling;r.remove(),r=i}},h6=function(e,t){var r=e._$AN;if(void 0===r)return!1;var n=!0,i=!1,a=void 0;try{for(var o,l,s=r[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var u=l.value;null==(o=u._$AO)||o.call(u,t,!1),h6(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},h9=function(e){var t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===(null==r?void 0:r.size))},de=function(e){for(var t;t=e._$AM;e=t){var r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),dn(t)}};function dt(e){void 0!==this._$AN?(h9(this),this._$AM=e,de(this)):this._$AM=e}function dr(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=0);var n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size)if(t)if(Array.isArray(n))for(var a=r;a<n.length;a++)h6(n[a],!1),h9(n[a]);else null!=n&&(h6(n,!1),h9(n));else h6(this,e)}var dn=function(e){2==e.type&&(null!=e._$AP||(e._$AP=dr),null!=e._$AQ||(e._$AQ=dt))},di=function(e){function t(){var e;return y(this,t),e=p(this,t,arguments),e._$AN=void 0,e}return i(t,e),v(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),de(this),this.isConnected=t._$AU}},{key:"_$AO",value:function(e,t){var r,n;void 0===t&&(t=!0),e!==this.isConnected&&(this.isConnected=e,e?null==(r=this.reconnected)||r.call(this):null==(n=this.disconnected)||n.call(this)),t&&(h6(this,e),h9(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=g(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(hF),da=function(){return new dl},dl=function e(){y(this,e)},ds=new WeakMap,du=hq(function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),v(t,[{key:"render",value:function(e){return hh}},{key:"update",value:function(e,t){var r,n=_(t,1)[0],i=n!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=n,this.ht=null==(r=e.options)?void 0:r.host,this.rt(this.ct=e.element)),hh}},{key:"rt",value:function(e){if(this.isConnected||(e=void 0),"function"==typeof this.G){var t,r=null!=(t=this.ht)?t:self,n=ds.get(r);void 0===n&&(n=new WeakMap,ds.set(r,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,e),void 0!==e&&this.G.call(this.ht,e)}else this.G.value=e}},{key:"lt",get:function(){var e,t,r;return"function"==typeof this.G?null==(e=ds.get(null!=(r=this.ht)?r:self))?void 0:e.get(this.G):null==(t=this.G)?void 0:t.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(di));function dc(){var e=a(["",""]);return dc=function(){return e},e}function dh(){var e=a(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return dh=function(){return e},e}function dd(){var e=a(["<slot></slot>"]);return dd=function(){return e},e}e.LinkButton=void 0,r5=hR("theoplayer-link-button"),r4=hM({reflect:!0,type:Boolean,attribute:hV.DISABLED}),r8=hB(),r7=hB(),new(r2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,r3(),t}return i(t,e),t}(l),I=h0("____private_href_1"),N=h0("____private_target_2"),$=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,I,{writable:!0,value:void 0}),Object.defineProperty(r,N,{writable:!0,value:void 0}),ne(r),r._disabled=!1,r._linkRef=da(),hJ(r,I)[I]=r6(r,""),hJ(r,N)[N]=r9(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==hH.SPACE)return;else{var t;e.preventDefault(),null==(t=r._linkRef.value)||t.click()}},r._onClick=function(){r.disabled||r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","button"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"polite"),this.hasAttribute(hV.DISABLED)||this._enable()},r._enable=function(){this.setAttribute("aria-disabled","false"),this.setAttribute("tabindex","0")},r._disable=function(){this.setAttribute("aria-disabled","true"),this.removeAttribute("tabindex"),this.blur()},r.render=function(){return this._template?hu(dc(),hU(this._template)):hu(dh(),du(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hu(dd())},r.handleClick=function(){},v(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return hJ(this,I)[I]},set:function(e){hJ(this,I)[I]=e}},{key:"target",get:function(){return hJ(this,N)[N]},set:function(e){hJ(this,N)[N]=e}}]),t}(hL),r6=(M=(O=o($,[[r4,4,"disabled"],[r8,1,"href"],[r7,1,"target"]],[r5],hL)).e)[0],r9=M[1],ne=M[2],e.LinkButton=(B=O.c)[0],r3=B[1],$.styles=[h2],r2);var dp=function(e){function t(e){var r;if(y(this,t),(r=p(this,t,[e])).it=hh,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return i(t,e),v(t,[{key:"render",value:function(e){if(e===hh||null==e)return this._t=void 0,this.it=e;if(e===hc)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;var t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}]),t}(hF);dp.directiveName="unsafeHTML",dp.resultType=1;var dy=function(e){function t(){return y(this,t),p(this,t,arguments)}return i(t,e),t}(dp);dy.directiveName="unsafeSVG",dy.resultType=2;var df=hq(dy);function dv(){var e=a([":host{--theoplayer-icon-color:var(--theoplayer-play-button-icon-color,unset);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}:host(:not([ended])) [part=replay-icon],:host(:not([paused])) [part=play-icon],:host([ended]) [part=pause-icon],:host([ended]) [part=play-icon],:host([paused]) [part=pause-icon]{display:none!important}"]);return dv=function(){return e},e}var dm=cN(dv());function db(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=b(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d_(){var e=a([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return d_=function(){return e},e}var dg=cN(d_());function dk(){var e=a(["<slot></slot>"]);return dk=function(){return e},e}function dw(){}function dx(e){return e.nodeType===Node.ELEMENT_NODE}function dE(e){return x(e,HTMLElement)}e.SlotContainer=void 0,nr=hR("theoplayer-slot-container"),new(nt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nn(),t}return i(t,e),t}(l),q=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(dk())},t}(hL),e.SlotContainer=(D=o(q,[],[nr],hL).c)[0],nn=D[1],q.styles=[dg],nt);var dT="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},dA="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},dC="function"==typeof Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return e[r]},dL="function"==typeof Array.prototype.findIndex?function(e,t){return e.findIndex(t)}:function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r,e))return r;return -1},dS="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},dR="undefined"!=typeof Intl&&Intl.DisplayNames?function(e){var t=new Intl.DisplayNames([e,"en"],{type:"language",fallback:"none"}),r=t.of(e);if(r){var n=t.resolvedOptions().locale,i=r[0];return i.toLocaleUpperCase(n)+r.slice(i.length)}}:function(e){};function dP(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function dO(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(dx)}return dE(e)?e.children:[]}function dM(e){for(var t,r=[],n=db(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;dx(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(dA(i.children)))}return r}function dB(e){var t=[];return function e(t,r){if(dE(t)&&"none"!==getComputedStyle(t).display){if(t.hasAttribute("tabindex")&&Number(t.getAttribute("tabindex"))>=0)return void r.push(t);switch(t.tagName.toLowerCase()){case"button":case"input":case"textarea":case"select":case"details":r.push(t);break;case"a":t.href&&r.push(t);break;default:for(var n=dO(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function dI(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var dN="theoplayerUiObservedProperties";function d$(e){return dN in e&&dT(e[dN])}var dD=function(e){return function(t,r){Object.defineProperty(t.prototype,dN,{value:e})}};function dq(e,t,r){return u(function(){var n;return E(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!d$(e)))return[3,3];return[4,Promise.resolve()];case 1:return i.sent(),[4,customElements.whenDefined(e.nodeName.toLowerCase())];case 2:i.sent(),customElements.upgrade(e),i.label=3;case 3:if(d$(e)&&r(e),!((n=dO(e)).length>0))return[3,5];return[4,Promise.all(dA(n).map(function(e){return dq(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function dF(){var e=a(['<span part="play-icon"><slot name="play-icon">','</slot></span><span part="pause-icon"><slot name="pause-icon">','</slot></span><span part="replay-icon"><slot name="replay-icon">',"</slot></span>"]);return dF=function(){return e},e}var dU=["seeking","seeked","ended","emptied","sourcechange"];function dj(){var e=a([":host(:not([volume-level=high])) [part=high-icon],:host(:not([volume-level=low])) [part=low-icon],:host(:not([volume-level=off])) [part=off-icon]{display:none!important}"]);return dj=function(){return e},e}e.PlayButton=void 0,na=hR("theoplayer-play-button"),no=dD(["player"]),nu=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.PAUSED}),nc=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.ENDED}),new(ni=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nl(),t}return i(t,e),t}(l),z=h0("____private_paused_1"),V=h0("____private_ended_2"),H=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,z,{writable:!0,value:void 0}),Object.defineProperty(t,V,{writable:!0,value:void 0}),hJ(t,z)[z]=(np(t),nh(t,!1)),hJ(t,V)[V]=nd(t,!1),t._onPlay=function(){t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updateFromPlayer=function(){var e,r;t.paused=null==(r=null==(e=t._player)?void 0:e.paused)||r,t._updateEnded(),t._updateDisabled()},t._updateDisabled=function(){var e;t.disabled=(null==(e=t._player)?void 0:e.source)===void 0},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r._updateEnded=function(){var e,t;this.ended=null!=(t=null==(e=this._player)?void 0:e.ended)&&t},r.handleClick=function(){void 0!==this._player&&void 0!==this._player.source&&(this._player.paused?this._player.play():this._player.pause())},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.ended?"replay":this.paused?"play":"pause";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return hu(dF(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 90" width="24" height="24"><path d="M77.504 50.868c-7.236 5.156-16.584 10.914-28.04 17.269-11.044 6.207-20.729 11.081-29.053 14.625l-9.224 3.43c-.581-2.493-1.125-6.188-1.632-11.08-1.143-9.75-1.715-20.513-1.715-32.288 0-10.781.777-20.858 2.333-30.234l2.251-10.772 9.787 3.29c8.476 3.375 17.663 8.166 27.563 14.373 10.48 6.562 19.472 12.805 26.97 18.73 3.749 2.982 6.449 5.279 8.099 6.891l-7.339 5.766"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M2.108 1.914Q2.108.5 3.522.5h4.171q1.415 0 1.415 1.414v20.172q0 1.414-1.415 1.414H3.522q-1.414 0-1.414-1.414zm12.784 0Q14.892.5 16.307.5h4.171q1.414 0 1.414 1.414v20.172q0 1.414-1.414 1.414h-4.171q-1.415 0-1.415-1.414z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 23q-3.725 0-6.438-2.375Q2.85 18.25 2.275 14.7q-.1-.625.325-1.088.425-.462 1.125-.462.6 0 1.087.437.488.438.663 1.113.5 2.225 2.313 3.688Q9.6 19.85 12 19.85q2.8 0 4.75-1.963 1.95-1.962 1.95-4.762t-1.962-4.75q-1.963-1.95-4.763-1.95H11.8l.525.525q.375.375.363.85-.013.475-.363.825t-.85.363q-.5.012-.85-.338l-2.7-2.7q-.225-.225-.337-.513-.113-.287-.113-.587t.113-.588q.112-.287.337-.512L10.6 1.075q.35-.35.875-.363.525-.012.875.363.35.35.338.85-.013.5-.363.85l-.5.5h.15q2.05 0 3.85.775 1.8.775 3.15 2.112Q20.325 7.5 21.1 9.287q.775 1.788.775 3.838t-.775 3.85q-.775 1.8-2.112 3.137-1.338 1.338-3.138 2.113Q14.05 23 12 23Z"/></svg>\n'))},v(t,[{key:"paused",get:function(){return hJ(this,z)[z]},set:function(e){hJ(this,z)[z]=e}},{key:"ended",get:function(){return hJ(this,V)[V]},set:function(e){hJ(this,V)[V]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener("play",this._onPlay),this._player.removeEventListener("pause",this._onPause),this._player.removeEventListener(dU,this._updateFromPlayer)),this._player=e,this._updateFromPlayer(),void 0!==this._player&&(this._player.addEventListener("play",this._onPlay),this._player.addEventListener("pause",this._onPause),this._player.addEventListener(dU,this._updateFromPlayer)))}}]),t}(ns=e.Button),nh=(U=(F=o(H,[[nu,1,"paused"],[nc,1,"ended"]],[na,no],ns)).e)[0],nd=U[1],np=U[2],e.PlayButton=(j=F.c)[0],nl=j[1],H.styles=[].concat(e.Button.styles,[dm]),ni);var dz=cN(dj());function dV(){var e=a(['<span part="off-icon"><slot name="off-icon">','</slot></span><span part="low-icon"><slot name="low-icon">','</slot></span><span part="high-icon"><slot name="high-icon">',"</slot></span>"]);return dV=function(){return e},e}var dH=["volumechange"];function dG(){var e=a([':host{position:relative}:host([seek-offset^="-"]) [part=icon]{-webkit-transform:scaleX(-1);transform:scaleX(-1)}[part=offset]{color:#fff;color:var(--theoplayer-icon-color,#fff);font-size:7.2px;font-size:var(--theoplayer-seek-button-font-size,calc(var(--theoplayer-button-icon-height, var(--theoplayer-control-height, 24px))*.3));left:50%;position:absolute;top:52.5%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}']);return dG=function(){return e},e}e.MuteButton=void 0,nf=hR("theoplayer-mute-button"),nv=dD(["player"]),n_=hM({reflect:!0,state:!0,type:String,attribute:hV.VOLUME_LEVEL}),ng=hM({reflect:!1,attribute:!1}),new(ny=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nm(),t}return i(t,e),t}(l),K=h0("____private_volumeLevel_1"),Z=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,K,{writable:!0,value:void 0}),hJ(t,K)[K]=(nw(t),nk(t,"off")),t._updateFromPlayer=function(){if(void 0!==t._player){var e=t._player.volume;t._player.muted?t.volumeLevel="off":e<.5?t.volumeLevel="low":t.volumeLevel="high"}else t.volumeLevel="off"},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),this._updateAriaLabel()},r.handleClick=function(){void 0!==this._player&&(this._player.muted=!this._player.muted,this._updateFromPlayer())},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="off"===this.volumeLevel?"unmute":"mute";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return hu(dV(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m19.225 22.55-2.25-2.275q-.175.1-.35.187-.175.088-.375.163-.525.2-1.075-.138-.55-.337-.55-1.062 0-.225.088-.425.087-.2.287-.325.05-.025.138-.088.087-.062.137-.087l-2.65-2.7v2.425q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5H3.525q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113.462-.462 1.112-.462H5.2L1.35 4.2Q1 3.85 1 3.375t.35-.825q.35-.35.85-.35t.85.35L20.9 20.9q.35.35.35.825t-.35.825q-.35.35-.838.35-.487 0-.837-.35ZM16.25 3.325q2.6 1.1 4.188 3.425 1.587 2.325 1.587 5.225 0 1.425-.4 2.7-.4 1.275-1.125 2.4L18.775 15.3q.425-.75.638-1.588.212-.837.212-1.737 0-2.125-1.175-3.875t-3.1-2.575q-.325-.125-.525-.4t-.2-.625q0-.65.525-1.038.525-.387 1.1-.137Zm.925 10.35-2.55-2.6V7.65q1.275.6 2.088 1.762.812 1.163.812 2.588 0 .45-.087.875-.088.425-.263.8ZM12.625 9l-3.45-3.575.775-.775q.75-.75 1.713-.338.962.413.962 1.463Z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M16.275 20.625q-.575.25-1.1-.15-.525-.4-.525-1.05 0-.35.188-.613.187-.262.512-.387 1.925-.825 3.113-2.575 1.187-1.75 1.187-3.875T18.463 8.1q-1.188-1.75-3.113-2.575-.325-.125-.512-.4-.188-.275-.188-.625 0-.65.525-1.038.525-.387 1.1-.137 2.6 1.1 4.175 3.425 1.575 2.325 1.575 5.225 0 2.9-1.575 5.225-1.575 2.325-4.175 3.425ZM3.55 15.85q-.65 0-1.112-.463-.463-.462-.463-1.112v-4.55q0-.65.463-1.113Q2.9 8.15 3.55 8.15h2.925l3.5-3.5q.75-.75 1.713-.338.962.413.962 1.463v12.45q0 1.05-.962 1.463-.963.412-1.713-.338l-3.5-3.5Zm11.1.45V7.65q1.3.625 2.088 1.8.787 1.175.787 2.55 0 1.375-.787 2.525-.788 1.15-2.088 1.775Z"/></svg>\n'))},v(t,[{key:"volumeLevel",get:function(){return hJ(this,K)[K]},set:function(e){hJ(this,K)[K]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(dH,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(dH,this._updateFromPlayer))}}]),t}(nb=e.Button),nk=(Q=(G=o(Z,[[n_,1,"volumeLevel"],[ng,4,"player"]],[nf,nv],nb)).e)[0],nw=Q[1],e.MuteButton=(W=G.c)[0],nm=W[1],Z.styles=[].concat(e.Button.styles,[dz]),ny);var dQ=cN(dG());function dW(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return dW=function(){return e},e}function dK(){var e=a([":host{background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-text-color,#fff);display:inline-block;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));overflow:hidden;padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:auto;text-align:center;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}"]);return dK=function(){return e},e}e.SeekButton=void 0,nE=hR("theoplayer-seek-button"),nT=dD(["player"]),nL=hM({reflect:!0,type:Number,attribute:hV.SEEK_OFFSET}),nS=hM({reflect:!1,attribute:!1}),new(nx=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nA(),t}return i(t,e),t}(l),ee=h0("____private_seekOffset_1"),et=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ee,{writable:!0,value:void 0}),hJ(t,ee)[ee]=(nP(t),nR(t,10)),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(void 0!==this._player){var e=this._player.duration;isNaN(e)||(this._player.currentTime=Math.max(0,Math.min(e,this._player.currentTime+this.seekOffset)))}},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.seekOffset;this.setAttribute(hV.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},r.render=function(){return hu(dW(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M12 22.25q-1.925 0-3.6-.738-1.675-.737-2.912-1.974Q4.25 18.3 3.525 16.625q-.725-1.675-.725-3.6 0-1.9.725-3.575.725-1.675 1.963-2.925 1.237-1.25 2.925-1.975Q10.1 3.825 12 3.825h.15l-.7-.7q-.3-.325-.313-.788-.012-.462.313-.812.35-.35.813-.35.462 0 .812.325l2.65 2.675q.325.325.325.8 0 .475-.325.8l-2.65 2.65q-.325.325-.8.325-.475 0-.825-.35-.3-.325-.3-.8 0-.475.3-.8l.7-.7H12q-2.9 0-4.912 2.012-2.013 2.013-2.013 4.913 0 2.9 2.013 4.925Q9.1 19.975 12 19.975q2.6 0 4.55-1.687 1.95-1.688 2.325-4.238.05-.45.4-.738.35-.287.8-.287.45 0 .788.275.337.275.287.7-.375 3.55-2.987 5.9Q15.55 22.25 12 22.25Z"/></svg>\n'),String(Math.abs(this.seekOffset)))},v(t,[{key:"seekOffset",get:function(){return hJ(this,ee)[ee]},set:function(e){hJ(this,ee)[ee]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(nC=e.Button),nR=(J=(Y=o(et,[[nL,1,"seekOffset"],[nS,4,"player"]],[nE,nT],nC)).e)[0],nP=J[1],e.SeekButton=(X=Y.c)[0],nA=X[1],et.styles=[].concat(e.Button.styles,[dQ]),nx);var dZ=cN(dK());function dY(e){return!isNaN(e)&&isFinite(e)}function dJ(e,t,r){void 0===t&&(t=0);var n,i=e<0||r&&0===e,a=Math.floor(t/60%60),o=Math.floor(t/3600);if(dY(e=Math.abs(e))){var l=Math.floor(e%60),s=Math.floor(e/60%60),u=Math.floor(e/3600),c=u>0||o>0;n=[c?""+u:"",(c||a>=0)&&s<10?"0"+s:""+s,l<10?"0"+l:""+l]}else n=[o>0?"--":"","--","--"];return(i?"-":"")+n.filter(function(e){return""!==e}).join(":")}var dX=[["hour","hours"],["minute","minutes"],["second","seconds"]];function d0(e,t){var r=dX[t][+(1!==e)];return e+" "+r}function d1(e,t){if(!dY(e))return"";var r=e<0||t&&0===e,n=Math.floor((e=Math.abs(e))%60),i=Math.floor(e/60)%60,a=Math.floor(e/3600);return""+[0===a?"":d0(a,0),0===i?"":d0(i,1),0===n&&(a>0||i>0)?"":d0(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function d2(){var e=a(["<span>","</span>"]);return d2=function(){return e},e}var d5=["timeupdate","seeking","seeked","durationchange"];function d3(){var e=a(["<span>","</span>"]);return d3=function(){return e},e}e.TimeDisplay=void 0,nM=hR("theoplayer-time-display"),nB=dD(["player","streamType"]),nN=hM({reflect:!1,attribute:!1}),n$=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING}),nD=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING_WHEN_LIVE}),nq=hM({reflect:!0,type:Boolean,attribute:hV.SHOW_DURATION}),nF=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),nU=hB(),nj=hB(),nz=hB(),new(nO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nI(),t}return i(t,e),t}(l),ea=h0("____private_remaining_1"),eo=h0("____private_remainingWhenLive_2"),el=h0("____private_showDuration_3"),es=h0("____private_streamType_4"),eu=h0("____private__currentTime_5"),ec=h0("____private__duration_6"),eh=h0("____private__endTime_7"),ed=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ea,{writable:!0,value:void 0}),Object.defineProperty(t,eo,{writable:!0,value:void 0}),Object.defineProperty(t,el,{writable:!0,value:void 0}),Object.defineProperty(t,es,{writable:!0,value:void 0}),Object.defineProperty(t,eu,{writable:!0,value:void 0}),Object.defineProperty(t,ec,{writable:!0,value:void 0}),Object.defineProperty(t,eh,{writable:!0,value:void 0}),hJ(t,ea)[ea]=(nY(t),nV(t,!1)),hJ(t,eo)[eo]=nH(t,!1),hJ(t,el)[el]=nG(t,!1),hJ(t,es)[es]=nQ(t,"vod"),hJ(t,eu)[eu]=nW(t,0),hJ(t,ec)[ec]=nK(t,NaN),hJ(t,eh)[eh]=nZ(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.currentTime:0,n=t._player?t._player.duration:NaN,i=null==(e=t._player)?void 0:e.seekable,a=isFinite(n)?n:i&&i.length>0?i.end(0):NaN;t._currentTime=r,t._duration=n,t._endTime=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"playback time"),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"off")},r.render=function(){var e,t,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType,n=this._currentTime,i=this._endTime;return r&&(n=-((this._endTime||0)-n)),e=this.showDuration&&!r?dJ(n,i,r)+" / "+dJ(i):dJ(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?d1(n,r)+" of "+d1(i):d1(n,r),this.setAttribute("aria-valuetext",t),hu(d2(),e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(d5,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(d5,this._updateFromPlayer))}},{key:"remaining",get:function(){return hJ(this,ea)[ea]},set:function(e){hJ(this,ea)[ea]=e}},{key:"remainingWhenLive",get:function(){return hJ(this,eo)[eo]},set:function(e){hJ(this,eo)[eo]=e}},{key:"showDuration",get:function(){return hJ(this,el)[el]},set:function(e){hJ(this,el)[el]=e}},{key:"streamType",get:function(){return hJ(this,es)[es]},set:function(e){hJ(this,es)[es]=e}},{key:"_currentTime",get:function(){return hJ(this,eu)[eu]},set:function(e){hJ(this,eu)[eu]=e}},{key:"_duration",get:function(){return hJ(this,ec)[ec]},set:function(e){hJ(this,ec)[ec]=e}},{key:"_endTime",get:function(){return hJ(this,eh)[eh]},set:function(e){hJ(this,eh)[eh]=e}}]),t}(hL),nV=(en=(er=o(ed,[[nN,4,"player"],[n$,1,"remaining"],[nD,1,"remainingWhenLive"],[nq,1,"showDuration"],[nF,1,"streamType"],[nU,1,"_currentTime"],[nj,1,"_duration"],[nz,1,"_endTime"]],[nM,nB],hL)).e)[0],nH=en[1],nG=en[2],nQ=en[3],nW=en[4],nK=en[5],nZ=en[6],nY=en[7],e.TimeDisplay=(ei=er.c)[0],nI=ei[1],ed.styles=[dZ],nO);var d4=["durationchange"];e.DurationDisplay=void 0,nX=hR("theoplayer-duration-display"),n0=dD(["player"]),n2=hM({reflect:!1,attribute:!1}),n5=hB(),new(nJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,n1(),t}return i(t,e),t}(l),ev=h0("____private_duration_1"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ev,{writable:!0,value:void 0}),hJ(t,ev)[ev]=(n4(t),n3(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LIVE)||this.setAttribute(hV.ARIA_LIVE,"off")},r.render=function(){return hu(d3(),dJ(this.duration))},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(d4,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(d4,this._updateFromPlayer))}},{key:"duration",get:function(){return hJ(this,ev)[ev]},set:function(e){hJ(this,ev)[ev]=e}}]),t}(hL),n3=(ey=(ep=o(em,[[n2,4,"player"],[n5,1,"duration"]],[nX,n0],hL)).e)[0],n4=ey[1],e.DurationDisplay=(ef=ep.c)[0],n1=ef[1],em.styles=[dZ],nJ);var d8=!function(){try{var e=new Event("change");return"change"===e.type}catch(e){}return!1}()?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1),r}:function(e,t){return new Event(e,t)},d7=!function(){try{var e=new CustomEvent("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?function(e,t){var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,(null==t?void 0:t.bubbles)||!1,(null==t?void 0:t.cancelable)||!1,null==t?void 0:t.detail),r}:function(e,t){return new CustomEvent(e,t)};e.RadioButton=void 0,n8=hR("theoplayer-radio-button"),n6=hM({reflect:!0,type:Boolean,attribute:hV.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),n9=hM({attribute:hV.VALUE});var d6=h0("____private_value_1"),d9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,d6,{writable:!0,value:void 0}),it(t),t._checked=!1,hJ(t,d6)[d6]=ie(t,void 0),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){this.hasAttribute("role")||this.setAttribute("role","radio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),e.prototype.connectedCallback.call(this)},r.handleClick=function(){this.checked=!0,this.dispatchEvent(d8("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},v(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(d8("change",{bubbles:!0})))}},{key:"value",get:function(){return hJ(this,d6)[d6]},set:function(e){hJ(this,d6)[d6]=e}}]),t}(n7=e.Button);ie=(ii=(ir=o(d9,[[n6,4,"checked"],[n9,1,"value"]],[n8],n7)).e)[0],it=ii[1],e.RadioButton=(ia=ir.c)[0],(0,ia[1])();var pe=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}var t=e.prototype;return t.overlaps=function(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y},t.contains=function(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom},t.union=function(t){var r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.right,t.right)-r,a=Math.max(this.bottom,t.bottom)-n;return new e(r,n,i,a)},t.snapToPixels=function(){return new e(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))},t.clone=function(){return new e(this.x,this.y,this.width,this.height)},t.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}},e.fromRect=function(t){var r,n,i,a,o,l;return new e(null!=(n=null!=(r=t.left)?r:t.x)?n:0,null!=(a=null!=(i=t.top)?i:t.y)?a:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},v(e,[{key:"left",get:function(){return this.x},set:function(e){this.x=e}},{key:"right",get:function(){return this.x+this.width},set:function(e){this.x=e-this.width}},{key:"top",get:function(){return this.y},set:function(e){this.y=e}},{key:"bottom",get:function(){return this.y+this.height},set:function(e){this.y=e-this.height}}]),e}();function pt(){var e=function(){var e,t,r=document.activeElement;if(null==r)return null;for(;null!=(t=null==(e=r.shadowRoot)?void 0:e.activeElement);)r=t;return r}();return e&&e!==document.body&&dE(e)?e:null}function pr(e,t,r){var n,i,a,o=pt();if(null===o)return!1;var l=pe.fromRect(e.getBoundingClientRect()).snapToPixels(),s=pe.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:pe.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===hH.LEFT||r===hH.RIGHT){var c=s.clone();r===hH.LEFT?(c.left=l.left,c.width=s.left-l.left):(c.left=s.right,c.width=l.right-s.right),0===(a=u.filter(function(e){return c.overlaps(e.rect)})).length&&(c.top=l.top,c.height=l.height,a=u.filter(function(e){return c.overlaps(e.rect)}))}else{var h=s.clone();r===hH.UP?(h.top=l.top,h.height=s.top-l.top):(h.top=s.bottom,h.height=l.bottom-s.bottom),0===(a=u.filter(function(e){return h.overlaps(e.rect)})).length&&(h.left=l.left,h.width=l.width,a=u.filter(function(e){return h.overlaps(e.rect)}))}var d=(n=a,i=function(e){var t,r,n;return t=e.rect,r=s,n=0,t.right<r.left?n+=r.left-t.right:r.right<t.left&&(n+=t.left-r.right),t.bottom<r.top?n+=r.top-t.bottom:r.bottom<t.top&&(n+=t.top-r.bottom),n},function(e,t){if(0!==e.length)return e.reduce(function(e,r){return 0>=t(e,r)?e:r})}(n,function(e,t){return i(e)-i(t)}));return void 0!==d&&(d.child.focus(),!0)}function pn(){var e=a(["<slot ",' @slotchange="','"></slot>']);return pn=function(){return e},e}e.RadioGroup=void 0,io=hR("theoplayer-radio-group"),il=dD(["deviceType"]),is=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),iu=hM({attribute:hV.VALUE});var pi=h0("____private_deviceType_1"),pa=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,pi,{writable:!0,value:void 0}),ih(t),t._slotRef=da(),t._radioButtons=[],t._value=void 0,hJ(t,pi)[pi]=ic(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=dM(r),a=[],o=db(i);!(n=o()).done;){var l=n.value;if(!po(l)){var s=dI(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,dw),t._radioButtons=i.filter(po),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&hG(e.keyCode)){pr(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case hH.UP:case hH.LEFT:t._focusPrevButton()&&e.preventDefault();break;case hH.DOWN:case hH.RIGHT:t._focusNextButton()&&e.preventDefault();break;case hH.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case hH.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","radiogroup"),this.addEventListener("keydown",this._onKeyDown),this._onSlotChange()},r.disconnectedCallback=function(){e.prototype.disconnectedCallback.call(this),this.removeEventListener("keydown",this._onKeyDown)},r.firstUpdated=function(){this._onSlotChange()},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener("change",this._onButtonChange),t},r.allRadioButtons=function(){return this._radioButtons},r._prevRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>0?this._radioButtons[t-1]:null},r._nextRadioButton=function(e){var t=this._radioButtons.indexOf(e);return t>=0&&t<this._radioButtons.length-1?this._radioButtons[t+1]:null},r._focusPrevButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.firstRadioButton?this.setFocusedRadioButton(this.lastRadioButton):this.setFocusedRadioButton(this._prevRadioButton(e)),!0)},r._focusNextButton=function(){var e=this.focusedRadioButton||this.firstRadioButton;return!!e&&(e===this.lastRadioButton?this.setFocusedRadioButton(this.firstRadioButton):this.setFocusedRadioButton(this._nextRadioButton(e)),!0)},r.setFocusedRadioButton=function(e){this._unfocusAll(),e&&(e.tabIndex=0,e.focus())},r._unfocusAll=function(){for(var e,t=db(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=db(this.allRadioButtons());!(t=r()).done;){var n=t.value;n.checked=n===e}},r.updateCheckedButton=function(){var e=this,t=this.allRadioButtons().find(function(t){return t.value==e.value});this.setCheckedRadioButton(null!=t?t:null)},r.render=function(){return hu(pn(),du(this._slotRef),this._onSlotChange)},v(t,[{key:"deviceType",get:function(){return hJ(this,pi)[pi]},set:function(e){hJ(this,pi)[pi]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(d8("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=dC(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=dC(this._radioButtons,function(e){return e.checked}))?e:null}},{key:"firstRadioButton",get:function(){var e;return null!=(e=this._radioButtons[0])?e:null}},{key:"lastRadioButton",get:function(){var e=this._radioButtons;return e.length>0?e[e.length-1]:null}}]),t}(hL);function po(t){return x(t,e.RadioButton)}function pl(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;color:var(--theoplayer-menu-color,#fff);display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);pointer-events:none}:host([hidden]){display:none!important}[part=heading]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;align-self:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;pointer-events:auto}[part=heading] ::slotted(span),[part=heading]>span{padding:10px;padding:var(--theoplayer-control-padding,10px);padding-left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=content],[part=heading]>theoplayer-menu-close-button{pointer-events:auto}[part=content]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-item-align:center;-ms-grid-row-align:center;--theoplayer-control-hover-background:var(--theoplayer-menu-control-hover-background,hsla(0,0%,100%,.3));align-self:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:10px;margin:var(--theoplayer-menu-margin,10px);max-height:100%;max-width:100%;max-width:var(--theoplayer-menu-max-width,100%);min-height:0;min-width:80%;min-width:var(--theoplayer-menu-min-width,80%);overflow-y:auto}"]);return pl=function(){return e},e}ic=(ip=(id=o(pa,[[is,1,"deviceType"],[iu,4,"value"]],[io,il],hL)).e)[0],ih=ip[1],e.RadioGroup=(iy=id.c)[0],(0,iy[1])();var ps=cN(pl()),pu="theoplayermenuclose",pc="theoplayermenuchange";function ph(){var e=a(["",""]);return ph=function(){return e},e}function pd(){var e=a(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return pd=function(){return e},e}function pp(){var e=a(['<slot name="heading"></slot>']);return pp=function(){return e},e}function py(){var e=a(["<slot></slot>"]);return py=function(){return e},e}function pf(){var e=a([":host{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;pointer-events:none}:host([hidden]){display:none!important}::slotted(*),:host>*{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch;min-height:0}"]);return pf=function(){return e},e}e.Menu=void 0,im=hR("theoplayer-menu"),i_=hM({reflect:!0,type:Boolean,attribute:hV.MENU_CLOSE_ON_INPUT}),ig=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.MENU_OPENED}),new(iv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ib(),t}return i(t,e),t}(l),ek=h0("____private_closeOnInput_1"),ew=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,ek,{writable:!0,value:void 0}),iw(r),r._menuOpened=!1,hJ(r,ek)[ek]=ik(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=d7(pu,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(hV.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hu(ph(),hU(this._template)):hu(pd(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hu(pp())},r.renderMenuContent=function(){return hu(py())},v(t,[{key:"closeOnInput",get:function(){return hJ(this,ek)[ek]},set:function(e){hJ(this,ek)[ek]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dP(this,hV.HIDDEN,!e);var t=d7(pc,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(hL),ik=(e_=(eb=o(ew,[[i_,1,"closeOnInput"],[ig,4,"menuOpened_"]],[im],hL)).e)[0],iw=e_[1],e.Menu=(eg=eb.c)[0],ib=eg[1],ew.styles=[ps],ew.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),iv);var pv=cN(pf()),pm="theoplayermenutoggle";function pb(){var e=a(["",""]);return pb=function(){return e},e}function p_(){var e=a(['<slot @slotchange="','"></slot>']);return p_=function(){return e},e}function pg(t){return!!dE(t)&&(x(t,e.Menu)||x(t,e.MenuGroup))}e.MenuGroup=void 0,iE=hR("theoplayer-menu-group"),iA=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.MENU_OPENED}),new(ix=function(e){function t(){var t;return t=e.apply(this,arguments)||this,iT(),t}return i(t,e),t}(l),eA=h0("____private__menuSlot_1"),eC=function(t){function r(r){var n;return Object.defineProperty(n=t.call(this)||this,eA,{writable:!0,value:void 0}),iL(n),n._menuOpened=!1,hJ(n,eA)[eA]=iC(n,null),n._menus=[],n._openMenuStack=[],n._onMenuListChange=function(){for(var e,t=[].concat(dA(n.shadowRoot.children),n._menuSlot?dM(n._menuSlot):[]),r=[],i=db(t);!(e=i()).done;){var a=e.value;if(!pg(a)){var o=dI(a);o&&r.push(o)}}r.length>0&&Promise.all(r).then(n._onMenuListChange,dw);for(var l,s=t.filter(pg),u=db(n._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&n.closeMenu(c.id)}for(var h,d=db(s);!(h=d()).done;){var p=h.value;0>n._menus.indexOf(p)&&p.closeMenu()}n._menus=s},n._onToggleMenu=function(e){var t=e.detail.menu;if(n.getMenuById(t)){e.stopPropagation();var r=dE(e.target)?e.target:void 0;n.isMenuOpen(t)?n.closeMenu(t):n.openMenu(t,r)}},n._onCloseMenu=function(e){n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._onMenuChange=function(t){var r=n.getCurrentMenu_();r&&r.menu===t.target&&x(r.menu,e.MenuGroup)&&!r.menu.hasCurrentMenu()&&n.closeCurrentMenu()},n._onKeyDown=function(e){!e.altKey&&hQ(e.keyCode)&&n.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},n._template=null==r?void 0:r.template,n._template&&n.performUpdate(),n}i(r,t);var n=r.prototype;return n.connectedCallback=function(){t.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(hV.HIDDEN,"")},n.createRenderRoot=function(){var e=t.prototype.createRenderRoot.call(this);return e.addEventListener(pm,this._onToggleMenu),e.addEventListener(pu,this._onCloseMenu),e.addEventListener(pc,this._onMenuChange),e},n.render=function(){return this._template?hu(pb(),hU(this._template)):hu(p_(),this._onMenuListChange)},n.firstUpdated=function(){this._onMenuListChange()},n.getMenuById=function(e){return e&&e!==this.id?dC(this._menus,function(t){return t.id===e}):this},n.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=dL(this._openMenuStack,function(e){return e.menu===r});return i>=0?this.closeMenusFromIndex_(i+1):this._openMenuStack.push({menu:r,opener:t}),n&&n.menu.closeMenu(),r.openMenu(),this.menuOpened_=!0,r.focus(),!0},n.closeMenu=function(e){var t,r,n=this.getMenuById(e);if(n===this&&(n=null==(r=this._openMenuStack[0])?void 0:r.menu),!n)return!1;var i=dL(this._openMenuStack,function(e){return e.menu===n});if(i<0)return!1;var a=this._openMenuStack[i];this.closeMenusFromIndex_(i);var o=this.getCurrentMenu_();return void 0!==o?(o.menu.openMenu(),this.menuOpened_=!0,a.opener&&o.menu.contains(a.opener)?a.opener.focus():o.menu.focus()):(this.menuOpened_=!1,null==(t=a.opener)||t.focus()),!0},n.closeMenusFromIndex_=function(e){for(var t=this._openMenuStack.length-e,r=this._openMenuStack.length-1;r>=e;r--)this._openMenuStack[r].menu.closeMenu();this._openMenuStack.splice(e,t)},n.hasCurrentMenu=function(){return this._openMenuStack.length>0},n.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},n.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},n.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},v(r,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,dP(this,hV.MENU_OPENED,e),e?(this.removeAttribute(hV.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(hV.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=d7(pc,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return hJ(this,eA)[eA]},set:function(e){hJ(this,eA)[eA]=e}}]),r}(hL),iC=(eE=(ex=o(eC,[[iA,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(r=null==(t=e.renderRoot)?void 0:t.querySelector("slot"))?r:null};return hI(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[iE],hL)).e)[0],iL=eE[1],e.MenuGroup=(eT=ex.c)[0],iT=eT[1],eC.styles=[pv],eC.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),ix),e.MenuButton=void 0,iS=hR("theoplayer-menu-button"),iP=hM({reflect:!0,type:String,attribute:hV.MENU}),iO=hM({reflect:!0,state:!0,type:String,attribute:"aria-controls"});var pk=h0("____private__ariaControls_1"),pw=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pk,{writable:!0,value:void 0}),iB(t),t._menuId=null,hJ(t,pk)[pk]=iM(t,null),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("aria-haspopup")||this.setAttribute("aria-haspopup","true")},r.handleClick=function(){var e=this.menu;if(e){var t=d7(pm,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},v(t,[{key:"menu",get:function(){return this._menuId},set:function(e){e?(null==this._ariaControls||this._ariaControls===this._menuId)&&(this._ariaControls=e):this._ariaControls===this._menuId&&(this._ariaControls=null),this._menuId=e}},{key:"_ariaControls",get:function(){return hJ(this,pk)[pk]},set:function(e){hJ(this,pk)[pk]=e}}]),t}(iR=e.Button);function px(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return px=function(){return e},e}iM=(iN=(iI=o(pw,[[iP,4,"menu"],[iO,1,"_ariaControls"]],[iS],iR)).e)[0],iB=iN[1],e.MenuButton=(i$=iI.c)[0],(0,i$[1])(),e.CloseMenuButton=void 0,iD=hR("theoplayer-menu-close-button");var pE=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=d7(pu,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hu(px(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"/></svg>\n'))},t}(iq=e.Button);function pT(){var e=a(["<slot>","</slot>"]);return pT=function(){return e},e}e.CloseMenuButton=(iF=o(pE,[],[iD],iq).c)[0],(0,iF[1])();var pA=["change","update"];e.MediaTrackRadioButton=void 0,iU=hR("theoplayer-media-track-radio-button"),iz=hB(),iV=hM({reflect:!1,attribute:!1});var pC=h0("____private__trackLabel_1"),pL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pC,{writable:!0,value:void 0}),t._track=void iG(t),hJ(t,pC)[pC]=iH(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label,r=e.language;if(t&&t!==r)return t;var n=r&&dR(r);return n||r||t||""}(this._track):"",this.checked=!!this._track&&this._track.enabled},r._updateTrack=function(){this._track&&(this._track.enabled=this.checked)},r.handleChange=function(){this._updateTrack()},r.render=function(){return hu(pT(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return hJ(this,pC)[pC]},set:function(e){hJ(this,pC)[pC]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pA,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pA,this._onTrackChange))}}]),t}(ij=e.RadioButton);function pS(){var e=a([":host,theoplayer-radio-group{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host([hidden]){display:none!important}"]);return pS=function(){return e},e}iH=(iW=(iQ=o(pL,[[iz,1,"_trackLabel"],[iV,4,"track"]],[iU],ij)).e)[0],iG=iW[1],e.MediaTrackRadioButton=(iK=iQ.c)[0],(0,iK[1])();var pR=cN(pS());function pP(e){return"subtitles"===e.kind||"captions"===e.kind}function pO(e){return pP(e)&&!e.forced}function pM(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function pB(e){if(e){if(e.label&&""!==e.label)return e.label;if(e.height)return""+e.height+"p";if(e.bandwidth){var t=e;if(t.bandwidth)return t.bandwidth>1e7?""+(t.bandwidth/1e6).toFixed(0)+"Mbps":t.bandwidth>1e6?""+(t.bandwidth/1e6).toFixed(1)+"Mbps":""+(t.bandwidth/1e3).toFixed(0)+"kbps";return}}}var pI=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},pN=hq(function(e){function t(e){var r;if(y(this,t),r=p(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return i(t,e),v(t,[{key:"dt",value:function(e,t,r){void 0===r?r=t:void 0!==t&&(u=t);var n=[],i=[],a=0,o=!0,l=!1,s=void 0;try{for(var u,c,h=e[Symbol.iterator]();!(o=(c=h.next()).done);o=!0){var d=c.value;n[a]=u?u(d,a):a,i[a]=r(d,a),a++}}catch(e){l=!0,s=e}finally{try{o||null==h.return||h.return()}finally{if(l)throw s}}return{values:i,keys:n}}},{key:"render",value:function(e,t,r){return this.dt(e,t,r).values}},{key:"update",value:function(e,t){var r,n=_(t,3),i=n[0],a=n[1],o=n[2],l=e._$AH,s=this.dt(i,a,o),u=s.values,c=s.keys;if(!Array.isArray(l))return this.ut=c,u;for(var h,d,p,y=null!=(h=this.ut)?h:this.ut=[],f=[],v=0,m=l.length-1,b=0,g=u.length-1;v<=m&&b<=g;)if(null===l[v])v++;else if(null===l[m])m--;else if(y[v]===c[b])f[b]=h4(l[v],u[b]),v++,b++;else if(y[m]===c[g])f[g]=h4(l[m],u[g]),m--,g--;else if(y[v]===c[g])f[g]=h4(l[v],u[g]),h3(e,f[g+1],l[v]),v++,g--;else if(y[m]===c[b])f[b]=h4(l[m],u[b]),h3(e,l[v],l[m]),m--,b++;else if(void 0===d&&(d=pI(c,b,g),p=pI(y,v,m)),d.has(y[v]))if(d.has(y[m])){var k=p.get(c[b]),w=void 0!==k?l[k]:null;if(null===w){var x=h3(e,l[v]);h4(x,u[b]),f[b]=x}else f[b]=h4(w,u[b]),h3(e,l[v],w),l[k]=null;b++}else h7(l[m]),m--;else h7(l[v]),v++;for(;b<=g;){var E=h3(e,f[g+1]);h4(E,u[b]),f[b++]=E}for(;v<=m;){var T=l[v++];null!==T&&h7(T)}return this.ut=c,void 0===(r=f)&&(r=h8),e._$AH=r,hc}}]),t}(hF));function p$(){var e=a(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return p$=function(){return e},e}function pD(){var e=a(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return pD=function(){return e},e}function pq(){var e=a(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return pq=function(){return e},e}function pF(){var e=a(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return pF=function(){return e},e}var pU=["addtrack","removetrack"];function pj(){var e=a(["<slot>","</slot>"]);return pj=function(){return e},e}e.TrackRadioGroup=void 0,iY=hR("theoplayer-track-radio-group"),iJ=dD(["player"]),i0=hB(),i1=hM({reflect:!0,type:String,attribute:hV.TRACK_TYPE}),i2=hM({reflect:!0,type:Boolean,attribute:hV.SHOW_OFF}),new(iZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,iX(),t}return i(t,e),t}(l),eP=h0("____private__tracksList_1"),eO=h0("____private_showOffButton_2"),eM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eP,{writable:!0,value:void 0}),Object.defineProperty(t,eO,{writable:!0,value:void 0}),i4(t),t._trackType="audio",hJ(t,eP)[eP]=i5(t),hJ(t,eO)[eO]=i3(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(d8("change",{bubbles:!0}))},t}i(t,e);var r=t.prototype;return r._getTracksList=function(){if(void 0!==this._player){var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks:void 0}},r._updateTracksList=function(){var e=this._tracksList,t=this._getTracksList();e!==t&&(null==e||e.removeEventListener(pU,this._updateTracks),null==t||t.addEventListener(pU,this._updateTracks),this._tracksList=t)},r._getTracks=function(){if(void 0===this._player)return[];var e=this.trackType;return"audio"===e?this._player.audioTracks:"video"===e?this._player.videoTracks:"subtitles"===e?this._player.textTracks.filter(pO):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hu(pF(),this._onChange,this.showOffButton&&t?hu(p$(),this._tracksList):void 0,pN(e,function(e){return e.uid},function(e){return t?hu(pD(),e):hu(pq(),e)}))},v(t,[{key:"_tracksList",get:function(){return hJ(this,eP)[eP]},set:function(e){hJ(this,eP)[eP]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return hJ(this,eO)[eO]},set:function(e){hJ(this,eO)[eO]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(hL),i5=(eS=(eL=o(eM,[[i0,1,"_tracksList"],[i1,4,"trackType"],[i2,1,"showOffButton"]],[iY,iJ],hL)).e)[0],i3=eS[1],i4=eS[2],e.TrackRadioGroup=(eR=eL.c)[0],iX=eR[1],eM.styles=[pR],iZ);var pz=["change","update"];e.TextTrackRadioButton=void 0,i8=hR("theoplayer-text-track-radio-button"),i6=hB(),i9=hM({reflect:!1,attribute:!1});var pV=h0("____private__trackLabel_1"),pH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pV,{writable:!0,value:void 0}),t._track=void at(t),hJ(t,pV)[pV]=ae(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}i(t,e);var r=t.prototype;return r._updateFromTrack=function(){this._trackLabel=this._track?function(e){var t=e.label,r=e.language;if(t){if(t===r);else if(!("cea608"===e.type&&/^CC\d+$/.test(e.label)))return t}var n=r&&dR(r);return n||("cea608"===e.type&&"number"==typeof e.captionChannel?"CC"+e.captionChannel:r||t||"")}(this._track):"",this.checked=!!this._track&&"showing"===this._track.mode},r._updateTrack=function(){this._track&&(this._track.mode=this.checked?"showing":"disabled")},r.handleChange=function(){this._updateTrack()},r.render=function(){return hu(pj(),this._trackLabel)},v(t,[{key:"_trackLabel",get:function(){return hJ(this,pV)[pV]},set:function(e){hJ(this,pV)[pV]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(pz,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(pz,this._onTrackChange))}}]),t}(i7=e.RadioButton);function pG(){var e=a(["<slot>Off</slot>"]);return pG=function(){return e},e}ae=(an=(ar=o(pH,[[i6,1,"_trackLabel"],[i9,4,"track"]],[i8],i7)).e)[0],at=an[1],e.TextTrackRadioButton=(ai=ar.c)[0],(0,ai[1])();var pQ=["change"];e.TextTrackOffRadioButton=void 0,aa=hR("theoplayer-text-track-off-radio-button"),al=hM({reflect:!1,attribute:!1});var pW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._trackList=void as(t),t._onTrackChange=function(){t._updateFromTrackList()},t}i(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return pO(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=db(e);!(t=r()).done;){var n=t.value;pP(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hu(pG())},v(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(pQ,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(pQ,this._onTrackChange)}}]),t}(ao=e.RadioButton);function pK(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}[part=audio],[part=subtitles],theoplayer-track-radio-group{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:0}[part=content]{-ms-grid-columns:1fr;display:-ms-grid;display:grid;grid-template-columns:1fr;min-height:0}:host([has-audio][has-subtitles]) [part=content]{-ms-grid-columns:1fr 10px 1fr;grid-template-columns:1fr 10px 1fr}:host([has-audio][has-subtitles]) [part=audio]{-ms-grid-column:1;grid-column:1}:host([has-audio][has-subtitles]) [part=subtitles]{-ms-grid-column:3;grid-column:3}:host(:not([has-audio])) [part=audio],:host(:not([has-subtitles])) [part=subtitles]{display:none!important}[part=audio],[part=subtitles]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-orient:vertical;-webkit-box-direction:normal;align-self:stretch;-ms-flex-direction:column;flex-direction:column;text-align:center}h2{margin:0 0 .5em}theoplayer-track-radio-group{overflow-y:auto}"]);return pK=function(){return e},e}as=(au=o(pW,[[al,4,"trackList"]],[aa],ao)).e[0],e.TextTrackOffRadioButton=(ac=au.c)[0],(0,ac[1])();var pZ=cN(pK());function pY(){var e=a([".theoplayer-menu-heading{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.theoplayer-menu-heading-button{-ms-flex-item-align:end;align-self:flex-end}"]);return pY=function(){return e},e}var pJ=cN(pY());function pX(){var e=a(["table{border-collapse:collapse;table-layout:auto}table,table td,table tr{margin:0;padding:0}table td>*{font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px)}table td:first-child{white-space:nowrap;width:0}table td:last-child{text-align:center}table td>theoplayer-menu-button{display:-webkit-box;display:-ms-flexbox;display:flex}"]);return pX=function(){return e},e}var p0=cN(pX());function p1(e){var t,r;return e?dS(e,"rgb")?(t=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([0-9.]+))?\)$/i))?{r_:parseInt(t[1],10),g_:parseInt(t[2],10),b_:parseInt(t[3],10),a_:t[4]?parseFloat(t[4]):1}:null:dS(e,"#")?(r=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?{r_:parseInt(r[1],16),g_:parseInt(r[2],16),b_:parseInt(r[3],16),a_:1}:null:null:null}function p2(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function p5(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function p3(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var p4=p1("#ffffff"),p8=p1("#000000"),p7=[["White","rgb(255,255,255)"],["Yellow","rgb(255,255,0)"],["Green","rgb(0,255,0)"],["Cyan","rgb(0,255,255)"],["Blue","rgb(0,0,255)"],["Magenta","rgb(255,0,255)"],["Red","rgb(255,0,0)"],["Black","rgb(0,0,0)"]],p6=[["Monospace Serif",'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'],["Proportional Serif",'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'],["Monospace Sans",'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'],["Proportional Sans",'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif']],p9=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function ye(){var e=a(["<span>","</span>"]);return ye=function(){return e},e}e.TextTrackStyleDisplay=void 0,ah=hR("theoplayer-text-track-style-display"),ad=dD(["player"]),ap=hM({reflect:!0,type:String,attribute:hV.PROPERTY}),ay=hM({reflect:!1,attribute:!1});var yt=function(e){function t(){var t;return t=e.apply(this,arguments)||this,af(t),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.render=function(){return hu(ye(),this.renderValue())},r.renderValue=function(){if(void 0===this._player)return"";var e=this.property;switch(e){case"fontFamily":var t=this._player.textTrackStyle.fontFamily;if(!t)return"Default";var r=dC(p6,function(e){return e[0],e[1]===t});return r?r[0]:"Custom";case"fontColor":case"backgroundColor":case"windowColor":return function(e){if(!e)return"Default";var t=p1(e);if(t){var r=p5(t),n=dC(p7,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return yr(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return yr(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return yr(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=dC(p9,function(e){return e[0],e[1]===n});return i?i[0]:"Custom";default:return this._player.textTrackStyle[e]||"Default"}},v(t,[{key:"property",get:function(){return this._property},set:function(e){this._property=e,this._updateFromPlayer()}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),t}(hL);function yr(e){if(!e)return"Default";var t=p1(e);return t?""+100*t.a_+"%":"Custom"}function yn(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yn=function(){return e},e}function yi(e,t,r){var n,i,a,o=null!=(i=null==(n=p1(t))?void 0:n.a_)?i:1;if(""!==e||1!==o)return p2(p3(null!=(a=p1(e))?a:r,o))}function ya(e,t,r){var n,i=null!=(n=p1(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return p2(p3(i,""==e?1:Number(e)/100))}function yo(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yo=function(){return e},e}function yl(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yl=function(){return e},e}function ys(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return ys=function(){return e},e}function yu(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yu=function(){return e},e}function yc(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yc=function(){return e},e}function yh(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yh=function(){return e},e}function yd(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yd=function(){return e},e}function yp(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yp=function(){return e},e}function yy(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yy=function(){return e},e}function yf(){var e=a(['<theoplayer-menu class="theoplayer-text-track-style-menu"><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Subtitle options</slot></span><theoplayer-text-track-style-reset-button class="theoplayer-menu-heading-button" slot="heading"></theoplayer-text-track-style-reset-button><table><tr><td><span>Font family</span></td><td><theoplayer-menu-button menu="font-family-menu"><theoplayer-text-track-style-display property="fontFamily"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font color</span></td><td><theoplayer-menu-button menu="font-color-menu"><theoplayer-text-track-style-display property="fontColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font opacity</span></td><td><theoplayer-menu-button menu="font-opacity-menu"><theoplayer-text-track-style-display property="fontOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Font size</span></td><td><theoplayer-menu-button menu="font-size-menu"><theoplayer-text-track-style-display property="fontSize"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Background color</span></td><td><theoplayer-menu-button menu="background-color-menu"><theoplayer-text-track-style-display property="backgroundColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Background opacity</span></td><td><theoplayer-menu-button menu="background-opacity-menu"><theoplayer-text-track-style-display property="backgroundOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Window color</span></td><td><theoplayer-menu-button menu="window-color-menu"><theoplayer-text-track-style-display property="windowColor"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Window opacity</span></td><td><theoplayer-menu-button menu="window-opacity-menu"><theoplayer-text-track-style-display property="windowOpacity"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr><tr><td><span>Character edge style</span></td><td><theoplayer-menu-button menu="edge-style-menu"><theoplayer-text-track-style-display property="edgeStyle"></theoplayer-text-track-style-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="font-family-menu" menu-close-on-input hidden><span slot="heading">Font family</span><theoplayer-text-track-style-radio-group property="fontFamily">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-color-menu" menu-close-on-input hidden><span slot="heading">Font color</span><theoplayer-text-track-style-radio-group property="fontColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-opacity-menu" menu-close-on-input hidden><span slot="heading">Font opacity</span><theoplayer-text-track-style-radio-group property="fontOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="font-size-menu" menu-close-on-input hidden><span slot="heading">Font size</span><theoplayer-text-track-style-radio-group property="fontSize">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-color-menu" menu-close-on-input hidden><span slot="heading">Background color</span><theoplayer-text-track-style-radio-group property="backgroundColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="background-opacity-menu" menu-close-on-input hidden><span slot="heading">Background opacity</span><theoplayer-text-track-style-radio-group property="backgroundOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-color-menu" menu-close-on-input hidden><span slot="heading">Window color</span><theoplayer-text-track-style-radio-group property="windowColor">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="window-opacity-menu" menu-close-on-input hidden><span slot="heading">Window opacity</span><theoplayer-text-track-style-radio-group property="windowOpacity">','</theoplayer-text-track-style-radio-group></theoplayer-menu><theoplayer-menu id="edge-style-menu" menu-close-on-input hidden><span slot="heading">Character edge style</span><theoplayer-text-track-style-radio-group property="edgeStyle">',"</theoplayer-text-track-style-radio-group></theoplayer-menu>"]);return yf=function(){return e},e}af=(av=o(yt,[[ap,4,"property"],[ay,4,"player"]],[ah,ad],hL)).e[0],e.TextTrackStyleDisplay=(am=av.c)[0],(0,am[1])(),e.TextTrackStyleRadioGroup=void 0,a_=hR("theoplayer-text-track-style-radio-group"),ag=dD(["player"]),aw=hM({reflect:!0,type:String,attribute:hV.PROPERTY}),ax=hM({reflect:!1,attribute:!1}),aE=hM({reflect:!1,attribute:!1}),new(ab=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ak(),t}return i(t,e),t}(l),eN=function(t){function r(){var e;return e=t.apply(this,arguments)||this,aT(e),e._radioGroupRef=da(),e._property="fontColor",e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=t.value)},e._updateFromPlayer=function(){if(void 0!==e._player)switch(e.property){case"fontColor":var t,r,n=e._player.textTrackStyle.fontColor;e.value=n?p5(null!=(r=p1(n))?r:p4):"";break;case"backgroundColor":var i,a=e._player.textTrackStyle.backgroundColor;e.value=a?p5(null!=(i=p1(a))?i:p8):"";break;case"windowColor":var o,l=e._player.textTrackStyle.windowColor;e.value=l?p5(null!=(o=p1(l))?o:p8):"";break;case"fontOpacity":var s,u,c=e._player.textTrackStyle.fontColor;e.value=c?String((null!=(u=null==(s=p1(c))?void 0:s.a_)?u:1)*100):"";break;case"backgroundOpacity":var h,d,p=e._player.textTrackStyle.backgroundColor;e.value=p?String((null!=(d=null==(h=p1(p))?void 0:h.a_)?d:1)*100):"";break;case"windowOpacity":var y,f,v=e._player.textTrackStyle.windowColor;e.value=v?String((null!=(f=null==(y=p1(v))?void 0:y.a_)?f:1)*100):"";break;default:e.value=null!=(t=e._player.textTrackStyle[e.property])?t:""}},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;x(t,e.RadioGroup)||customElements.upgrade(t),t.value=this.value},n._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=yi(this.value,this._player.textTrackStyle.fontColor,p4);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=yi(this.value,this._player.textTrackStyle.backgroundColor,p8);break;case"windowColor":this._player.textTrackStyle.windowColor=yi(this.value,this._player.textTrackStyle.windowColor,p8);break;case"fontOpacity":this._player.textTrackStyle.fontColor=ya(this.value,this._player.textTrackStyle.fontColor,p4);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=ya(this.value,this._player.textTrackStyle.backgroundColor,p8);break;case"windowOpacity":this._player.textTrackStyle.windowColor=ya(this.value,this._player.textTrackStyle.windowColor,p8);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},n.render=function(){return hu(yn(),du(this._radioGroupRef),this._onChange)},v(r,[{key:"property",get:function(){return this._property},set:function(e){this._property!==e&&(this._property=e,this._updateFromPlayer())}},{key:"value",get:function(){return this._value},set:function(e){if(this._value!==e){this._value=e,this._updateToPlayer();var t=this._radioGroupRef.value;t&&(t.value=e),this.dispatchEvent(d8("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackStyle)||t.removeEventListener("change",this._updateFromPlayer),this._player=e,this._textTrackStyle=null==e?void 0:e.textTrackStyle,this._updateFromPlayer(),null==(r=this._textTrackStyle)||r.addEventListener("change",this._updateFromPlayer))}}]),r}(hL),aT=(eB=o(eN,[[aw,4,"property"],[ax,4,"value"],[aE,4,"player"]],[a_,ag],hL)).e[0],e.TextTrackStyleRadioGroup=(eI=eB.c)[0],ak=eI[1],eN.styles=[pR],ab);var yv=[{label:"Default",value:""},{label:"White",value:"rgb(255,255,255)"},{label:"Yellow",value:"rgb(255,255,0)"},{label:"Green",value:"rgb(0,255,0)"},{label:"Cyan",value:"rgb(0,255,255)"},{label:"Blue",value:"rgb(0,0,255)"},{label:"Magenta",value:"rgb(255,0,255)"},{label:"Red",value:"rgb(255,0,0)"},{label:"Black",value:"rgb(0,0,0)"}],ym=[{label:"Default",value:""},{label:"Monospace Serif",value:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'},{label:"Proportional Serif",value:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'},{label:"Monospace Sans",value:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'},{label:"Proportional Sans",value:'Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}],yb=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],y_=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],yg=[{label:"Default",value:""},{label:"None",value:"none"},{label:"Drop shadow",value:"dropshadow"},{label:"Raised",value:"raised"},{label:"Depressed",value:"depressed"},{label:"Uniform",value:"uniform"}];function yk(){var e=a(['<theoplayer-menu><span class="theoplayer-menu-heading" slot="heading"><slot name="heading">Language</slot></span><theoplayer-settings-menu-button class="theoplayer-menu-heading-button" menu="subtitle-options-menu" slot="heading"></theoplayer-settings-menu-button><div part="content"><div part="audio"><h2>Audio</h2><theoplayer-track-radio-group track-type="audio"></theoplayer-track-radio-group></div><div part="subtitles"><h2>Subtitles</h2><theoplayer-track-radio-group track-type="subtitles" show-off></theoplayer-track-radio-group></div></div></theoplayer-menu><theoplayer-text-track-style-menu id="subtitle-options-menu"></theoplayer-text-track-style-menu>']);return yk=function(){return e},e}e.TextTrackStyleMenu=void 0,aC=hR("theoplayer-text-track-style-menu"),new(aA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aL(),t}return i(t,e),t}(l),eD=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(yf(),ym.map(function(e){var t=e.label,r=e.value;return hu(yo(),r,t)}),yv.map(function(e){var t=e.label,r=e.value;return hu(yl(),r,t)}),y_.map(function(e){var t=e.label,r=e.value;return hu(ys(),r,t)}),yb.map(function(e){var t=e.label,r=e.value;return hu(yu(),r,t)}),yv.map(function(e){var t=e.label,r=e.value;return hu(yc(),r,t)}),y_.map(function(e){var t=e.label,r=e.value;return hu(yh(),r,t)}),yv.map(function(e){var t=e.label,r=e.value;return hu(yd(),r,t)}),y_.map(function(e){var t=e.label,r=e.value;return hu(yp(),r,t)}),yg.map(function(e){var t=e.label,r=e.value;return hu(yy(),r,t)}))},t}(aS=e.MenuGroup),e.TextTrackStyleMenu=(e$=o(eD,[],[aC],aS).c)[0],aL=e$[1],eD.styles=[].concat(e.MenuGroup.styles,[p0,pJ]),aA);var yw=["addtrack","removetrack"];function yx(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yx=function(){return e},e}e.LanguageMenu=void 0,aP=hR("theoplayer-language-menu"),aO=dD(["player"]),aI=hM({state:!0}),aN=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_AUDIO}),a$=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_SUBTITLES}),new(aR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aM(),t}return i(t,e),t}(l),ej=h0("____private__hasAudioTracks_1"),ez=h0("____private__hasSubtitles_2"),eV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ej,{writable:!0,value:void 0}),Object.defineProperty(t,ez,{writable:!0,value:void 0}),hJ(t,ej)[ej]=(aF(t),aD(t,!1)),hJ(t,ez)[ez]=aq(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(r=null==(e=t._player)?void 0:e.audioTracks)?r:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(r=null==(e=t._player)?void 0:e.textTracks.filter(pO))?r:[];t._hasSubtitles=n.length>0},t}return i(t,e),t.prototype.render=function(){return hu(yk())},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(yw,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(yw,this._updateTextTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateAudioTracks(),this._updateTextTracks(),null==(n=this._audioTrackList)||n.addEventListener(yw,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(yw,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return hJ(this,ej)[ej]},set:function(e){hJ(this,ej)[ej]=e}},{key:"_hasSubtitles",get:function(){return hJ(this,ez)[ez]},set:function(e){hJ(this,ez)[ez]=e}}]),t}(aB=e.MenuGroup),aD=(eF=(eq=o(eV,[[aI,4,"player"],[aN,1,"_hasAudioTracks"],[a$,1,"_hasSubtitles"]],[aP,aO],aB)).e)[0],aq=eF[1],aF=eF[2],e.LanguageMenu=(eU=eq.c)[0],aM=eU[1],eV.styles=[].concat(e.MenuGroup.styles,[pZ]),aR);var yE=["addtrack","removetrack"];e.LanguageMenuButton=void 0,aU=hR("theoplayer-language-menu-button"),aj=dD(["player"]),aV=hM({reflect:!1,attribute:!1});var yT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aH(t),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(pO));dP(t,hV.HIDDEN,!e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open language menu")},r.render=function(){return hu(yx(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z"/></svg>\n'))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r,n,i;this._player!==e&&(null==(t=this._audioTrackList)||t.removeEventListener(yE,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(yE,this._updateTracks),this._player=e,this._audioTrackList=null==e?void 0:e.audioTracks,this._textTrackList=null==e?void 0:e.textTracks,this._updateTracks(),null==(n=this._audioTrackList)||n.addEventListener(yE,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(yE,this._updateTracks))}}]),t}(az=e.MenuButton);function yA(){var e=a(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yA=function(){return e},e}function yC(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yC=function(){return e},e}aH=(aG=o(yT,[[aV,4,"player"]],[aU,aj],az)).e[0],e.LanguageMenuButton=(aQ=aG.c)[0],(0,aQ[1])(),e.PlaybackRateRadioGroup=void 0,aK=hR("theoplayer-playback-rate-radio-group"),aZ=dD(["player"]),aJ=hB(),aX=hB(),new(aW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aY(),t}return i(t,e),t}(l),eQ=function(t){function r(){var e;return e=t.apply(this,arguments)||this,a0(e),e._radioGroupRef=da(),e._value=1,e._onChange=function(){var t=e._radioGroupRef.value;t&&(e.value=Number(t.value))},e._updateFromPlayer=function(){void 0!==e._player&&(e.value=e._player.playbackRate)},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){var t=this._radioGroupRef.value;x(t,e.RadioGroup)||customElements.upgrade(t),t.value=String(this.value)},n.render=function(){return hu(yA(),du(this._radioGroupRef),this._onChange)},v(r,[{key:"value",get:function(){return this._value},set:function(e){if(e=Number(e),this._value!==e){this._value=e,void 0!==this._player&&(this._player.playbackRate=e);var t=this._radioGroupRef.value;t&&(t.value=String(e)),this.dispatchEvent(d8("change",{bubbles:!0}))}}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("ratechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("ratechange",this._updateFromPlayer))}}]),r}(hL),a0=(eH=o(eQ,[[aJ,4,"value"],[aX,4,"player"]],[aK,aZ],hL)).e[0],e.PlaybackRateRadioGroup=(eG=eH.c)[0],aY=eG[1],eQ.styles=[pR],aW),e.PlaybackRateMenuButton=void 0,a1=hR("theoplayer-playback-rate-menu-button");var yL=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hu(yC(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 96 960 960" height="24" width="24"><path d="M418 716q24 24 61.435 23.5T536 712l171.826-250.174q12.392-19.087-1.652-32.283-14.044-13.195-33.131-.804L424 600q-27 19.13-28.5 55.565T418 716ZM204 915.218q-25.522 0-49.609-12.826-24.087-12.826-36.783-34.783-26.565-46.696-41.696-100.022Q60.782 714.261 60.782 656q0-86.391 32.913-162.566 32.913-76.174 89.956-133.217 57.044-57.044 133.436-90.24Q393.478 236.782 480 236.782q43.87 0 85.87 8.934 42 8.935 81 26.239 28.913 12.696 33.826 38.762 4.913 26.065-13.044 48.153-10.261 12.391-28.217 15.521-17.957 3.131-32.914-3.565-31.434-14.869-62.043-21.456-30.608-6.587-64.478-6.587-129.043 0-221.13 91.522Q166.783 525.826 166.783 656q0 42 10.935 79.891 10.934 37.891 30.804 73.326h542.956q23-38 32.37-75.608Q793.217 696 793.217 652q0-31.609-6.804-62.565-6.804-30.956-20.543-60.826-7.566-16.957-3.718-35.196 3.848-18.239 17.674-29.5 21.653-18.522 47.153-10.261t36.761 35.609q16.305 38 25.457 78.217 9.152 40.218 10.021 82.522 0 58.696-14.348 113.522-14.347 54.826-42.478 104.087-14.391 23.087-37.631 35.348-23.239 12.261-48.761 12.261H204ZM480 576Z"/></svg>\n'))},t}(a2=e.MenuButton);function yS(){var e=a(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return yS=function(){return e},e}function yR(){var e=a(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yR=function(){return e},e}function yP(){var e=a(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return yP=function(){return e},e}e.PlaybackRateMenuButton=(a5=o(yL,[],[a1],a2).c)[0],(0,a5[1])();var yO=[.25,.5,1,1.25,1.5,2];e.PlaybackRateMenu=void 0,a3=hR("theoplayer-playback-rate-menu");var yM=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hu(yS())},r.renderMenuContent=function(){return hu(yP(),yO.map(function(e){return hu(yR(),e,1===e?"Normal":""+e+"x")}))},t}(a4=e.Menu);function yB(){var e=a(["<span>","</span>"]);return yB=function(){return e},e}e.PlaybackRateMenu=(a8=o(yM,[],[a3],a4).c)[0],(0,a8[1])(),e.PlaybackRateDisplay=void 0,a7=hR("theoplayer-playback-rate-display"),a6=dD(["playbackRate"]),a9=hB();var yI=h0("____private_playbackRate_1"),yN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yI,{writable:!0,value:void 0}),hJ(t,yI)[yI]=(ot(t),oe(t,1)),t}return i(t,e),t.prototype.render=function(){return hu(yB(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},v(t,[{key:"playbackRate",get:function(){return hJ(this,yI)[yI]},set:function(e){hJ(this,yI)[yI]=e}}]),t}(hL);function y$(){var e=a(["<span>","</span>"]);return y$=function(){return e},e}oe=(on=(or=o(yN,[[a9,1,"playbackRate"]],[a7,a6],hL)).e)[0],ot=on[1],e.PlaybackRateDisplay=(oi=or.c)[0],(0,oi[1])(),e.ActiveQualityDisplay=void 0,oa=hR("theoplayer-active-quality-display"),oo=dD(["activeVideoQuality","targetVideoQualities"]),ol=hM({reflect:!1,attribute:!1}),os=hM({reflect:!1,attribute:!1});var yD=h0("____private_activeVideoQuality_1"),yq=h0("____private_targetVideoQualities_2"),yF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yD,{writable:!0,value:void 0}),Object.defineProperty(t,yq,{writable:!0,value:void 0}),hJ(t,yD)[yD]=(oh(t),ou(t,void 0)),hJ(t,yq)[yq]=oc(t,void 0),t}return i(t,e),t.prototype.render=function(){var e,t=void 0!==this.targetVideoQualities&&1===this.targetVideoQualities.length,r=t?this.targetVideoQualities[0]:void 0,n=pB(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hu(y$(),e)},v(t,[{key:"activeVideoQuality",get:function(){return hJ(this,yD)[yD]},set:function(e){hJ(this,yD)[yD]=e}},{key:"targetVideoQualities",get:function(){return hJ(this,yq)[yq]},set:function(e){hJ(this,yq)[yq]=e}}]),t}(hL);function yU(){var e=a(["<slot>","</slot>"]);return yU=function(){return e},e}ou=(op=(od=o(yF,[[ol,1,"activeVideoQuality"],[os,1,"targetVideoQualities"]],[oa,oo],hL)).e)[0],oc=op[1],oh=op[2],e.ActiveQualityDisplay=(oy=od.c)[0],(0,oy[1])();var yj=["activequalitychanged","targetqualitychanged"],yz=["update"];e.QualityRadioButton=void 0,of=hR("theoplayer-quality-radio-button"),om=hB(),ob=hM({reflect:!1,attribute:!1}),o_=hM({reflect:!1,attribute:!1});var yV=h0("____private__qualityLabel_1"),yH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yV,{writable:!0,value:void 0}),t._track=void ok(t),t._quality=void 0,hJ(t,yV)[yV]=og(t,""),t._updateFromTrack=function(){if(void 0!==t._track){var e=t._track.targetQuality;Array.isArray(e)&&(e=1===e.length?e[0]:void 0),void 0===t._quality?t.checked=void 0===e:t.checked=e===t._quality}t._updateFromQuality()},t._updateFromQuality=function(){var e;t._qualityLabel=null!=(e=pB(t._quality))?e:"Automatic"},t}i(t,e);var r=t.prototype;return r.handleChange=function(){this._updateTargetQuality()},r._updateTargetQuality=function(){this._track&&this.checked&&(this._track.targetQuality=this._quality)},r.render=function(){return hu(yU(),this._qualityLabel)},v(t,[{key:"_qualityLabel",get:function(){return hJ(this,yV)[yV]},set:function(e){hJ(this,yV)[yV]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yj,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yj,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(yz,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(yz,this._updateFromQuality))}}]),t}(ov=e.RadioButton);function yG(){var e=a(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return yG=function(){return e},e}function yQ(){var e=a(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return yQ=function(){return e},e}og=(ox=(ow=o(yH,[[om,1,"_qualityLabel"],[ob,4,"track"],[o_,4,"quality"]],[of],ov)).e)[0],ok=ox[1],e.QualityRadioButton=(oE=ow.c)[0],(0,oE[1])();var yW=["addtrack","removetrack","change"];function yK(){var e=a(["<slot>Reset</slot>"]);return yK=function(){return e},e}e.QualityRadioGroup=void 0,oA=hR("theoplayer-quality-radio-group"),oC=dD(["player"]),oS=hB(),oR=hB(),new(oT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oL(),t}return i(t,e),t}(l),eY=h0("____private__track_1"),eJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eY,{writable:!0,value:void 0}),hJ(t,eY)[eY]=(oO(t),oP(t)),t._onChange=function(){t.dispatchEvent(d8("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?dC(t._player.videoTracks,function(e){return e.enabled}):void 0;t._track!==n&&(null==(e=t._track)||e.removeEventListener("update",t._update),t._track=n,null==(r=t._track)||r.addEventListener("update",t._update),t._update())},t._update=function(){return t.requestUpdate()},t}i(t,e);var r=t.prototype;return r.firstUpdated=function(){this._updateTrack()},r.render=function(){var e=this,t=this._track?this._track.qualities:[];return hu(yQ(),this._onChange,this._track,void 0,1!==t.length&&pN(t,function(e){return e.uid},function(t){return hu(yG(),e._track,t)}))},v(t,[{key:"_track",get:function(){return hJ(this,eY)[eY]},set:function(e){hJ(this,eY)[eY]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(yW,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(yW,this._updateTrack))}}]),t}(hL),oP=(eK=(eW=o(eJ,[[oS,1,"_track"],[oR,4,"player"]],[oA,oC],hL)).e)[0],oO=eK[1],e.QualityRadioGroup=(eZ=eW.c)[0],oL=eZ[1],eJ.styles=[pR],oT),e.TextTrackStyleResetButton=void 0,oM=hR("theoplayer-text-track-style-reset-button"),oB=dD(["player"]);var yZ=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleClick=function(){if(void 0!==this._player){var e=this._player.textTrackStyle;e.fontFamily=void 0,e.fontColor=void 0,e.fontSize=void 0,e.backgroundColor=void 0,e.windowColor=void 0,e.edgeStyle=void 0}},r.render=function(){return hu(yK())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(oI=e.Button);function yY(){var e=a(['<theoplayer-menu><span slot="heading"><slot name="heading">Settings</slot></span><table><tr><td><span>Quality</span></td><td><theoplayer-menu-button menu="quality-menu"><theoplayer-active-quality-display></theoplayer-active-quality-display></theoplayer-menu-button></td></tr><tr><td><span>Playback speed</span></td><td><theoplayer-menu-button menu="playback-rate-menu"><theoplayer-playback-rate-display></theoplayer-playback-rate-display></theoplayer-menu-button></td></tr></table></theoplayer-menu><theoplayer-menu id="quality-menu" menu-close-on-input hidden><span slot="heading">Quality</span><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-playback-rate-menu id="playback-rate-menu" menu-close-on-input hidden><span slot="heading">Playback speed</span></theoplayer-playback-rate-menu>']);return yY=function(){return e},e}e.TextTrackStyleResetButton=(oN=o(yZ,[],[oM,oB],oI).c)[0],(0,oN[1])(),e.SettingsMenu=void 0,oD=hR("theoplayer-settings-menu"),new(o$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oq(),t}return i(t,e),t}(l),e0=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return hu(yY())},t}(oF=e.MenuGroup),e.SettingsMenu=(eX=o(e0,[],[oD],oF).c)[0],oq=eX[1],e0.styles=[].concat(e.MenuGroup.styles,[p0]),o$);var yJ='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M14 22.475h-4q-.475 0-.863-.337-.387-.338-.437-.813l-.3-2.2q-.2-.075-.4-.2t-.375-.25l-2.05.85q-.475.2-.937.05-.463-.15-.738-.6l-1.975-3.45q-.25-.45-.162-.95.087-.5.487-.775l1.775-1.35Q4 12.325 4 12.225v-.45q0-.1.025-.225L2.25 10.2q-.4-.3-.487-.8-.088-.5.162-.925L3.9 5.025q.25-.45.725-.588.475-.137.95.038l2.075.875q.175-.15.363-.263.187-.112.387-.187l.3-2.225q.05-.5.425-.825.375-.325.875-.325h4q.5 0 .875.325t.425.825l.3 2.225q.2.075.4.187.2.113.375.263l2.05-.875q.475-.175.938-.025.462.15.737.575l2 3.45q.25.45.15.95-.1.5-.5.775l-1.775 1.35v.675q0 .1-.025.225l1.775 1.35q.4.275.487.775.088.5-.162.95l-2 3.45q-.25.425-.725.587-.475.163-.95-.037l-2.025-.85q-.175.125-.362.25-.188.125-.388.2l-.3 2.2q-.05.475-.425.813-.375.337-.875.337ZM12 15.5q1.45 0 2.475-1.025Q15.5 13.45 15.5 12q0-1.45-1.025-2.475Q13.45 8.5 12 8.5q-1.45 0-2.475 1.025Q8.5 10.55 8.5 12q0 1.45 1.025 2.475Q10.55 15.5 12 15.5Z"/></svg>\n';function yX(){var e=a(['<span part="icon"><slot>',"</slot></span>"]);return yX=function(){return e},e}e.SettingsMenuButton=void 0,oU=hR("theoplayer-settings-menu-button");var y0=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open settings menu")},r.render=function(){return hu(yX(),df(yJ))},t}(oj=e.MenuButton);function y1(){var e=a([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return y1=function(){return e},e}e.SettingsMenuButton=(oz=o(y0,[],[oU],oj).c)[0],(0,oz[1])();var y2=cN(y1()),y5="theoplayerfullscreenenter",y3="theoplayerfullscreenexit";function y4(){var e=a(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return y4=function(){return e},e}function y8(e,t){void 0!==window.ShadyCSS&&!1===window.ShadyCSS.nativeCss?window.ShadyCSS.styleSubtree(e,t):null!=t&&function(e,t){var r=e.style,n=!0,i=!1,a=void 0;try{for(var o,l=Object.entries(t)[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var s=_(o.value,2),u=s[0],c=s[1];r.setProperty(u,c)}}catch(e){i=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(i)throw a}}}(e,t)}function y7(){var e=a([":host{--thumb-height:var(--theoplayer-range-thumb-height,10px);--track-height:var(--theoplayer-range-track-height,4px);--theoplayer-range-padding:var(--theoplayer-control-padding,10px);background:transparent;background:var(--theoplayer-control-background,transparent);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:0;height:44px;height:calc(var(--theoplayer-control-height, 24px) + var(--theoplayer-range-padding)*2);padding-left:10px;padding-left:var(--theoplayer-range-padding-left,var(--theoplayer-range-padding));padding-right:10px;padding-right:var(--theoplayer-range-padding-right,var(--theoplayer-range-padding));pointer-events:auto;position:relative;-webkit-transition:background .15s linear;transition:background .15s linear;vertical-align:middle;width:100px}:host([hidden]){display:none!important}:host(:hover:not([disabled])){background:transparent;background:var(--theoplayer-control-hover-background,var(--theoplayer-control-background,transparent))}[part=container]{height:100%;position:relative}[part=background],[part=pointer]{border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);height:var(--track-height);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%));transform:translate(var(--theoplayer-range-track-translate-x,0),calc(var(--theoplayer-range-track-translate-y, 0px) - 50%))}[part=background]{background:hsla(0,0%,100%,.2);background:var(--theoplayer-range-track-background,hsla(0,0%,100%,.2));min-width:40px;width:100%;width:var(--theoplayer-range-track-width,100%)}[part=pointer]{background:transparent;background:var(--theoplayer-range-track-pointer-background,transparent);border-right:none;border-right:var(--theoplayer-range-track-pointer-border-right,none);opacity:0;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden}:host(:hover:not([disabled])) [part=pointer]{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}input[type=range]{-webkit-appearance:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;min-height:100%;padding:0;position:relative;width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);-webkit-box-shadow:1px 1px 1px transparent;box-shadow:1px 1px 1px transparent;-webkit-box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);margin-top:calc(0px - var(--thumb-height)/2 + var(--track-height)/2);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);-webkit-transform:none;transform:none;-webkit-transform:var(--theoplayer-range-thumb-transform,none);transform:var(--theoplayer-range-thumb-transform,none);-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-moz-range-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);translate:0 0;translate:var(--theoplayer-range-track-translate-x,0) var(--theoplayer-range-track-translate-y,0);width:10px;width:var(--theoplayer-range-thumb-width,10px)}input[type=range]::-ms-thumb{background:#fff;background:var(--theoplayer-range-thumb-background,#fff);border:none;border:var(--theoplayer-range-thumb-border,none);border-radius:10px;border-radius:var(--theoplayer-range-thumb-border-radius,10px);box-shadow:1px 1px 1px transparent;box-shadow:var(--theoplayer-range-thumb-box-shadow,1px 1px 1px transparent);cursor:pointer;height:auto;height:var(--thumb-height,auto);opacity:1;opacity:var(--theoplayer-range-thumb-opacity,1);transform:none;transform:var(--theoplayer-range-thumb-transform,none);-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-thumb-transition,none);transition:var(--theoplayer-range-thumb-transition,none);width:10px;width:var(--theoplayer-range-thumb-width,10px)}:host([disabled]) input[type=range]::-webkit-slider-thumb{display:none}:host([disabled]) input[type=range]::-moz-range-thumb{display:none}:host([disabled]) input[type=range]::-ms-thumb{display:none}input[type=range]::-webkit-slider-runnable-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);-webkit-box-shadow:none;box-shadow:none;-webkit-box-shadow:var(--theoplayer-range-track-box-shadow,none);box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);-webkit-transform:translate(0);transform:translate(0);-webkit-transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-webkit-transition:none;transition:none;-webkit-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-moz-range-track{background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-moz-transition:none;transition:none;-moz-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-track{background:transparent;background:#fff;background:var(--theoplayer-range-track-progress-internal,var(--theoplayer-range-bar-color,#fff));border:none;border:var(--theoplayer-range-track-border,none);border-radius:0;border-radius:var(--theoplayer-range-track-border-radius,0);box-shadow:none;box-shadow:var(--theoplayer-range-track-box-shadow,none);color:transparent;cursor:pointer;height:var(--track-height);min-width:40px;outline:var(--theoplayer-range-track-outline);outline-offset:var(--theoplayer-range-track-outline-offset);transform:translate(0);transform:translate(var(--theoplayer-range-track-translate-x,0),var(--theoplayer-range-track-translate-y,0));-ms-transition:none;transition:none;-ms-transition:var(--theoplayer-range-track-transition,none);transition:var(--theoplayer-range-track-transition,none);width:100%;width:var(--theoplayer-range-track-width,100%)}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,input[type=range]::-ms-tooltip{display:none}:host([disabled]) input[type=range]::-webkit-slider-runnable-track{cursor:default}:host([disabled]) input[type=range]::-moz-range-track{cursor:default}:host([disabled]) input[type=range]::-ms-track{cursor:default}input[type=range]:focus{-webkit-box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);box-shadow:inset 0 0 0 2px rgba(27,127,204,.9);-webkit-box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));box-shadow:inset 0 0 0 2px var(--theoplayer-focus-ring-color,rgba(27,127,204,.9));outline:0}input[type=range]:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}input[type=range]:focus::-webkit-slider-runnable-track{outline:0}"]);return y7=function(){return e},e}e.FullscreenButton=void 0,oH=hR("theoplayer-fullscreen-button"),oG=dD(["fullscreen"]),oK=hM({reflect:!0,type:Boolean,attribute:hV.FULLSCREEN}),new(oV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oQ(),t}return i(t,e),t}(l),e3=h0("____private_fullscreen_1"),e4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e3,{writable:!0,value:void 0}),hJ(t,e3)[e3]=(oY(t),oZ(t,!1)),t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.handleClick=function(){if(this.fullscreen){var e=d7(y3,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=d7(y5,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.fullscreen?"exit fullscreen":"enter fullscreen";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return hu(y4(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z"/></svg>\n'))},v(t,[{key:"fullscreen",get:function(){return hJ(this,e3)[e3]},set:function(e){hJ(this,e3)[e3]=e}}]),t}(oW=e.Button),oZ=(e2=(e1=o(e4,[[oK,1,"fullscreen"]],[oH,oG],oW)).e)[0],oY=e2[1],e.FullscreenButton=(e5=e1.c)[0],oQ=e5[1],e4.styles=[].concat(e.Button.styles,[y2]),oV);var y6=cN(y7()),y9=function(){function e(){this._stops=[["transparent",100]]}var t=e.prototype;return t.add=function(e,t,r){if(!((t=Math.max(t,0))>=(r=Math.min(r,100)))){var n=dL(this._stops,function(e){var r=e[1];return t<=r});if(!(n<0)){var i=this._stops[n],a=i[0],o=i[1],l=[];if(t>0&&l.push([a,t]),l.push([e,r]),r<o)l.push([a,o]),(s=this._stops).splice.apply(s,[].concat([n,1],l));else{for(var s,u,c=n+1;c<this._stops.length&&!(r<this._stops[c][1]);)c++;(u=this._stops).splice.apply(u,[].concat([n,c-n],l))}}}},t.toGradientStops=function(){for(var e,t=[],r=0,n=db(this._stops);!(e=n()).done;){var i=e.value,a=i[0],o=i[1];o<r||(t.push(a+" "+r+"%"),t.push(a+" "+o+"%"),r=o)}return t.join(", ")},e}(),fe="important",ft=" !"+fe,fr=hq(function(e){function t(e){var r,n;if(y(this,t),r=p(this,t,[e]),1!==e.type||"style"!==e.name||(null==(n=e.strings)?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");return r}return i(t,e),v(t,[{key:"render",value:function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return null==n?t:t+((r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase())+":")+n+";"},"")}},{key:"update",value:function(e,t){var r=_(t,1)[0],n=e.element.style;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);var i=!0,a=!1,o=void 0;try{for(var l,s=this.ft[Symbol.iterator]();!(i=(l=s.next()).done);i=!0){var u=l.value;null==r[u]&&(this.ft.delete(u),u.includes("-")?n.removeProperty(u):n[u]=null)}}catch(e){a=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(a)throw o}}for(var c in r){var h=r[c];if(null!=h){this.ft.add(c);var d="string"==typeof h&&h.endsWith(ft);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?fe:""):n[c]=h}}return hc}}]),t}(hF));function fn(){var e=a(['<div part="container"><div part="background"></div><div part="pointer" style="','"></div><input type="range" ',' .min="','" .max="','" .step="','" .value="','" .disabled="','" aria-label="','" aria-valuetext="','" aria-live="','" @input="','" @change="','" @keydown="','"> ',"</div>"]);return fn=function(){return e},e}function fi(){var e=a([""]);return fi=function(){return e},e}function fa(){var e=a(["input[type=range]{direction:ltr}.theoplayer-time-range-preview-rail{bottom:100%;left:0;opacity:0;pointer-events:none;position:absolute;-webkit-transition:visibility .25s,opacity .25s;transition:visibility .25s,opacity .25s;visibility:hidden;width:1%}:host(:hover:not([disabled])) .theoplayer-time-range-preview-rail{opacity:1;-webkit-transition:visibility .5s,opacity .5s;transition:visibility .5s,opacity .5s;visibility:visible}[part~=box]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));position:absolute;text-shadow:0 0 4px rgba(0,0,0,.75);text-shadow:var(--theoplayer-preview-text-shadow,0 0 4px rgba(0,0,0,.75));-webkit-transform:translateX(-50%);transform:translateX(-50%)}"]);return fa=function(){return e},e}e.Range=void 0,oX=dD(["deviceType"]),o1=hB(),o2=hM({reflect:!0,type:Boolean,attribute:hV.DISABLED}),o5=hM({reflect:!0,type:Boolean,attribute:hV.HIDDEN}),o3=hM({reflect:!0,type:Boolean,attribute:hV.INERT}),o4=hM({reflect:!1,attribute:!1}),o8=hM({reflect:!0,type:Number,attribute:"min"}),o7=hM({reflect:!0,type:Number,attribute:"max"}),o6=hM({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),o9=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),le=hM({reflect:!0,type:String,attribute:"aria-live"}),new(oJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,o0(),t}return i(t,e),t}(l),e9=h0("____private__pointerWidth_1"),te=h0("____private_step_2"),tt=h0("____private_deviceType_3"),tr=h0("____private_ariaLive_4"),tn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e9,{writable:!0,value:void 0}),Object.defineProperty(t,te,{writable:!0,value:void 0}),Object.defineProperty(t,tt,{writable:!0,value:void 0}),Object.defineProperty(t,tr,{writable:!0,value:void 0}),la(t),t._rangeRef=da(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,hJ(t,e9)[e9]=lt(t,0),hJ(t,te)[te]=lr(t,"any"),hJ(t,tt)[tt]=ln(t,"desktop"),hJ(t,tr)[tr]=li(t,null),t._onInput=function(e){t.value=e.target.valueAsNumber},t._updatePointerBar=function(e){var r=t._rangeRef.value;if(!t.disabled&&!t.inert&&r){var n=r.getBoundingClientRect(),i=(e.clientX-n.left)/n.width;i=Math.max(0,Math.min(1,i)),t.updatePointer_(i,n)}},t._onKeyDown=function(e){t.handleKeyDown_(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateRange(),this.addEventListener("pointermove",this._updatePointerBar)},r.disconnectedCallback=function(){this.removeEventListener("pointermove",this._updatePointerBar)},r.handleInput=function(){this._updateRange()},r._updateRange=function(e){this.hidden||(e||this.updateCachedWidths_(),this.updateBar_())},r.updateBar_=function(){y8(this,{"--theoplayer-range-track-progress-internal":"linear-gradient(to right, "+this.getBarColors().toGradientStops()+")"})},r.getBarColors=function(){var e=this.value,t=this.min,r=this.max,n=(e-t)/(r-t)*100;isNaN(n)&&(n=0);var i=0;t<e&&e<r&&(i=this._thumbWidth*(.5-n/100)/this._rangeWidth*100);var a=new y9;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(t=null==(e=this._rangeRef.value)?void 0:e.offsetWidth)?t:0;r>0&&(this._rangeWidth=r);var n=parseInt(getComputedStyle(this).getPropertyValue("--theoplayer-range-thumb-width")||"10px");n>0&&(this._thumbWidth=n)},r.getMinimumStepForVisibleChange_=function(){var e=this.min,t=this.max-e;return t<=0?NaN:t/this._rangeWidth},r.updatePointer_=function(e,t){this._pointerWidth=e*t.width},r.handleKeyDown_=function(e){"tv"===this.deviceType&&hG(e.keyCode)&&(e.keyCode===hH.LEFT||e.keyCode===hH.RIGHT?e.stopPropagation():(e.keyCode===hH.UP||e.keyCode===hH.DOWN)&&e.preventDefault())},r.render=function(){return hu(fn(),fr({width:""+this._pointerWidth+"px"}),du(this._rangeRef),this.min,this.max,this.step,this.value,this.disabled||this.inert,this.getAriaLabel(),this.getAriaValueText(),this.ariaLive,this._onInput,this._onInput,this._onKeyDown,this.renderRangeExtras())},r.renderRangeExtras=function(){return hu(fi())},v(t,[{key:"_pointerWidth",get:function(){return hJ(this,e9)[e9]},set:function(e){hJ(this,e9)[e9]=e}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled!==e&&(this._disabled=e,this.setAttribute("aria-disabled",this._disabled?"true":"false"))}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden!==e&&(this._hidden=e,this._updateRange())}},{key:"inert",get:function(){return this._inert},set:function(e){this._inert=e}},{key:"value",get:function(){return this._value},set:function(e){var t=e;isNaN(this.min)||(t=Math.max(this.min,t)),isNaN(this.max)||(t=Math.min(this.max,t)),this._value!==t&&(this._value=t,this.handleInput())}},{key:"min",get:function(){return this._min},set:function(e){this._min=e,this._updateRange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=e,this._updateRange()}},{key:"step",get:function(){return hJ(this,te)[te]},set:function(e){hJ(this,te)[te]=e}},{key:"deviceType",get:function(){return hJ(this,tt)[tt]},set:function(e){hJ(this,tt)[tt]=e}},{key:"ariaLive",get:function(){return hJ(this,tr)[tr]},set:function(e){hJ(this,tr)[tr]=e}}]),t}(hL),lt=(e7=(e8=o(tn,[[o1,1,"_pointerWidth"],[o2,4,"disabled"],[o5,4,"hidden"],[o3,4,"inert"],[o4,4,"value"],[o8,4,"min"],[o7,4,"max"],[o6,1,"step"],[o9,1,"deviceType"],[le,1,"ariaLive"]],[oX],hL)).e)[0],lr=e7[1],ln=e7[2],li=e7[3],la=e7[4],e.Range=(e6=e8.c)[0],o0=e6[1],tn.styles=[y6],oJ);var fo=cN(fa()),fl="theoplayerpreviewtimechange";function fs(e){return"linear"===e.type}function fu(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block}:host([hidden]){display:none!important}canvas{background:#fff;background:var(--theoplayer-preview-thumbnail-background,#fff);border-radius:2px;border-radius:var(--theoplayer-preview-thumbnail-padding,2px);display:none;padding:2px;padding:var(--theoplayer-preview-thumbnail-padding,2px)}"]);return fu=function(){return e},e}var fc=cN(fu());function fh(){var e=a(["<canvas ",' style="','"></canvas>']);return fh=function(){return e},e}var fd=["addtrack","removetrack"];function fp(e){return"metadata"===e.kind&&"thumbnails"===e.label}function fy(){var e=a(["<span>","</span>"]);return fy=function(){return e},e}e.PreviewThumbnail=void 0,ll=hR("theoplayer-preview-thumbnail"),ls=dD(["player","previewTime"]),lc=hB(),lh=hM({reflect:!1,attribute:!1}),ld=hB(),new(lo=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lu(),t}return i(t,e),t}(l),tl=h0("____private__thumbnailVisible_1"),ts=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,tl,{writable:!0,value:void 0}),ly(t),t._canvasRef=da(),t._previewTime=NaN,hJ(t,tl)[tl]=lp(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?dC(t._player.textTracks,fp):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}i(t,e);var r=t.prototype;return r.updateThumbnail_=function(){var e=this._thumbnailTextTrack;if(void 0===e)return void this.hideThumbnail_();"disabled"===e.mode&&(e.mode="hidden");var t=function(e,t){if(0!==e.length){for(var r,n=e[0],i=db(e);!(r=i()).done;){var a=r.value;if(a.startTime<=t)n=a;else if(t>=a.endTime)break}return n}}(e.cues,this._previewTime);if(void 0===t)return void this.hideThumbnail_();var r=t.content.trim(),n=function(e){var t=e.match(/^(.+)#xywh=(\d+),(\d+),(\d+),(\d+)$/);if(t)return{url:t[1],x:+t[2],y:+t[3],w:+t[4],h:+t[5]}}(r),i=n?n.url:r;if(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)return void this.loadThumbnailImage_(i);this.showThumbnail_(n)},r.loadThumbnailImage_=function(e){var t=this;if(this._thumbnailImageSource.src!==e){var r=function(){t._lastLoadedThumbnailUrl=e,t.updateThumbnail_()};"function"==typeof this._thumbnailImageSource.decode?(this._thumbnailImageSource.src=e,this._thumbnailImageSource.decode().then(r,dw)):(this._thumbnailImageSource.onload=r,this._thumbnailImageSource.src="",this._thumbnailImageSource.src=e)}},r.showThumbnail_=function(e){var t,r=this._canvasRef.value;r&&(null!=this._canvasContext||(this._canvasContext=null!=(t=r.getContext("2d"))?t:void 0),this._canvasContext&&(e?(r.width=e.w,r.height=e.h,this._canvasContext.drawImage(this._thumbnailImageSource,e.x,e.y,e.w,e.h,0,0,e.w,e.h)):(r.width=this._thumbnailImageSource.naturalWidth,r.height=this._thumbnailImageSource.naturalHeight,this._canvasContext.drawImage(this._thumbnailImageSource,0,0)),this._thumbnailVisible=!0))},r.hideThumbnail_=function(){this._thumbnailVisible=!1},r.render=function(){var e={display:this._thumbnailVisible?"block":"none"};return hu(fh(),du(this._canvasRef),fr(e))},v(t,[{key:"_thumbnailVisible",get:function(){return hJ(this,tl)[tl]},set:function(e){hJ(this,tl)[tl]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(fd,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(fd,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(hL),lp=(ta=(ti=o(ts,[[lc,1,"_thumbnailVisible"],[lh,4,"player"],[ld,4,"previewTime"]],[ll,ls],hL)).e)[0],ly=ta[1],e.PreviewThumbnail=(to=ti.c)[0],lu=to[1],ts.styles=[fc],lo);var ff=["timeupdate","seeking","seeked","durationchange"];function fv(){var e=a(['<div class="theoplayer-time-range-preview-rail" style="','"><div part="box preview-box" ','><slot name="preview"><theoplayer-preview-thumbnail></theoplayer-preview-thumbnail><theoplayer-preview-time-display remaining-when-live></theoplayer-preview-time-display></slot></div></div>']);return fv=function(){return e},e}e.PreviewTimeDisplay=void 0,lv=hR("theoplayer-preview-time-display"),lm=dD(["player","previewTime","streamType"]),l_=hB(),lg=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING}),lk=hM({reflect:!0,type:Boolean,attribute:hV.REMAINING_WHEN_LIVE}),lw=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),lx=hM({reflect:!1,attribute:!1}),lE=hB(),new(lf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lb(),t}return i(t,e),t}(l),td=h0("____private_previewTime_1"),tp=h0("____private_remaining_2"),ty=h0("____private_remainingWhenLive_3"),tf=h0("____private_streamType_4"),tv=h0("____private__endTime_5"),tm=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,td,{writable:!0,value:void 0}),Object.defineProperty(t,tp,{writable:!0,value:void 0}),Object.defineProperty(t,ty,{writable:!0,value:void 0}),Object.defineProperty(t,tf,{writable:!0,value:void 0}),Object.defineProperty(t,tv,{writable:!0,value:void 0}),hJ(t,td)[td]=(lR(t),lT(t,NaN)),hJ(t,tp)[tp]=lA(t,!1),hJ(t,ty)[ty]=lC(t,!1),hJ(t,tf)[tf]=lL(t,"vod"),hJ(t,tv)[tv]=lS(t,0),t._updateFromPlayer=function(){var e,r=t._player?t._player.duration:NaN,n=null==(e=t._player)?void 0:e.seekable;t._endTime=isFinite(r)?r:n&&n.length>0?n.end(0):NaN},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){var e=this.previewTime,t=this._endTime,r=this.remaining||this.remainingWhenLive&&"vod"!==this.streamType;return r&&(e=-((t||0)-e)),hu(fy(),dJ(e,t,r))},v(t,[{key:"previewTime",get:function(){return hJ(this,td)[td]},set:function(e){hJ(this,td)[td]=e}},{key:"remaining",get:function(){return hJ(this,tp)[tp]},set:function(e){hJ(this,tp)[tp]=e}},{key:"remainingWhenLive",get:function(){return hJ(this,ty)[ty]},set:function(e){hJ(this,ty)[ty]=e}},{key:"streamType",get:function(){return hJ(this,tf)[tf]},set:function(e){hJ(this,tf)[tf]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(ff,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(ff,this._updateFromPlayer))}},{key:"_endTime",get:function(){return hJ(this,tv)[tv]},set:function(e){hJ(this,tv)[tv]=e}}]),t}(hL),lT=(tc=(tu=o(tm,[[l_,1,"previewTime"],[lg,1,"remaining"],[lk,1,"remainingWhenLive"],[lw,1,"streamType"],[lx,4,"player"],[lE,1,"_endTime"]],[lv,lm],hL)).e)[0],lA=tc[1],lC=tc[2],lL=tc[3],lS=tc[4],lR=tc[5],e.PreviewTimeDisplay=(th=tu.c)[0],lb=th[1],tm.styles=[dZ],lf);var fm=["timeupdate","durationchange","ratechange","seeking","seeked"],fb=["play","pause","ended","durationchange","readystatechange","error"],f_=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];e.TimeRange=void 0,lO=hR("theoplayer-time-range"),lM=dD(["player","streamType","deviceType"]),lN=hM({reflect:!1,attribute:!1}),l$=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),lD=hM({reflect:!0,type:Boolean,attribute:hV.SHOW_AD_MARKERS}),lq=hB(),new(lP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lB(),t}return i(t,e),t}(l),tk=h0("____private__previewRailTransform_1"),tw=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,tk,{writable:!0,value:void 0}),lU(t),t._previewBoxEl=da(),t._streamType="vod",t._showAdMarkers=!1,t._pausedWhileScrubbing=!1,t._autoAdvanceId=0,t._lastUpdateTime=0,t._lastCurrentTime=0,t._lastPlaybackRate=0,t._updateFromPlayer=function(){if(void 0!==t._player){t._lastUpdateTime=performance.now(),t._lastCurrentTime=t._player.currentTime,t._lastPlaybackRate=t._player.playbackRate;var e,r,n=t._player.seekable,i=t._lastCurrentTime;0!==n.length?(e=n.start(0),r=n.end(0)):(e=0,r=t._player.duration),isFinite(t._lastCurrentTime)||(i=t._player.duration===1/0?r:e),t.min=e,t.max=r,t.value=i,t.updateDisabled_(n)}},t._pauseOnScrubStart=function(){t._pausedWhileScrubbing||t.disabled||t.inert||void 0===t._player||t._player.paused||(t._pausedWhileScrubbing=!0,t._player.pause(),document.addEventListener("mouseup",t._playOnScrubEnd),document.addEventListener("pointerup",t._playOnScrubEnd),document.addEventListener("pointercancel",t._playOnScrubEnd))},t._playOnScrubEnd=function(){t._pausedWhileScrubbing&&(t._pausedWhileScrubbing=!1,document.removeEventListener("mouseup",t._playOnScrubEnd),document.removeEventListener("pointerup",t._playOnScrubEnd),document.removeEventListener("pointercancel",t._playOnScrubEnd),void 0!==t._player&&t._player.paused&&t._player.play())},t._toggleAutoAdvance=function(){t.shouldAutoAdvance_()?0===t._autoAdvanceId&&(t._updateFromPlayer(),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)):0!==t._autoAdvanceId&&(t._updateFromPlayer(),cancelAnimationFrame(t._autoAdvanceId),t._autoAdvanceId=0)},t._autoAdvanceWhilePlaying=function(){if(!t.shouldAutoAdvance_()){t._autoAdvanceId=0;return}var e=(performance.now()-t._lastUpdateTime)/1e3,r=t._lastCurrentTime+e*t._lastPlaybackRate;Math.abs(r-t.value)>=t.getMinimumStepForVisibleChange_()&&(t.value=r,t._updateRange(!0)),t._autoAdvanceId=requestAnimationFrame(t._autoAdvanceWhilePlaying)},hJ(t,tk)[tk]=lF(t,""),t._onAdChange=function(){t._updateRange()},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1e3),this.hasAttribute(hV.ARIA_LIVE)||(this.ariaLive="off"),this._toggleAutoAdvance()},r.firstUpdated=function(e){var t,r;null==(t=this._rangeRef.value)||t.addEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.addEventListener("pointerdown",this._pauseOnScrubStart)},r.disconnectedCallback=function(){var t,r;e.prototype.disconnectedCallback.call(this),null==(t=this._rangeRef.value)||t.removeEventListener("mousedown",this._pauseOnScrubStart),null==(r=this._rangeRef.value)||r.removeEventListener("pointerdown",this._pauseOnScrubStart),this._toggleAutoAdvance()},r.updateDisabled_=function(e){void 0===e&&(e=null==(t=this._player)?void 0:t.seekable);var t,r="live"===this.streamType;void 0!==e&&(r||(r=0===e.length)),this.disabled=r},r.getAriaLabel=function(){return"seek"},r.getAriaValueText=function(){var e=d1(this.value),t=d1(this.max);return e&&t?e+" of "+t:"video not loaded, unknown time"},r.handleInput=function(){void 0!==this._player&&this._player.currentTime!==this.value&&(this._player.currentTime=this.value),e.prototype.handleInput.call(this)},r.shouldAutoAdvance_=function(){return this.isConnected&&void 0!==this._player&&!this._player.paused&&!this._player.ended&&!this._player.errorObject&&this._player.readyState>=3&&isFinite(this._lastCurrentTime)&&this.needToUpdateEveryFrame_()},r.needToUpdateEveryFrame_=function(){return this.getMinimumStepForVisibleChange_()<.25*this._lastPlaybackRate},r.updatePointer_=function(t,r){e.prototype.updatePointer_.call(this,t,r);var n=r.left+t*r.width,i=this._previewBoxEl.value;if(i){var a=i.getBoundingClientRect(),o=((n=Math.max(r.left+a.width/2,Math.min(r.right-a.width/2,n)))-r.left)/r.width;this._previewRailTransform="translateX("+(100*o*100).toFixed(6)+"%)"}if(void 0!==this._player){var l=this.min,s=d7(fl,{bubbles:!0,composed:!0,detail:{previewTime:l+t*(this.max-l)}});this.dispatchEvent(s)}},r.getBarColors=function(){var t=e.prototype.getBarColors.call(this);if(!this.showAdMarkers||!this._player||!this._player.ads||this._player.ads.playing)return t;for(var r,n=this.min,i=this.max,a=db(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(fs)){var l=o.timeOffset;if(l<0&&(l=this._player.duration),n<=l&&l<=i){var s=(l-n)/(i-n)*100,u=void 0,c=void 0;s+1<100?(u=s,c=s+1):(u=99,c=100),t.add("var(--theoplayer-time-range-ad-marker-color, #ffc50f)",u,c)}}}return t},r.handleKeyDown_=function(t){e.prototype.handleKeyDown_.call(this,t),"tv"===this.deviceType&&t.keyCode===hH.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hu(fv(),fr({transform:this._previewRailTransform}),du(this._previewBoxEl))},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fm,this._updateFromPlayer),this._player.removeEventListener(fb,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(f_,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(fm,this._updateFromPlayer),this._player.addEventListener(fb,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(f_,this._onAdChange))}},{key:"streamType",get:function(){return this._streamType},set:function(e){this._streamType=e,this.updateDisabled_()}},{key:"showAdMarkers",get:function(){return this._showAdMarkers},set:function(e){this._showAdMarkers=e,this._updateRange()}},{key:"_previewRailTransform",get:function(){return hJ(this,tk)[tk]},set:function(e){hJ(this,tk)[tk]=e}}]),t}(lI=e.Range),lF=(t_=(tb=o(tw,[[lN,4,"player"],[l$,4,"streamType"],[lD,4,"showAdMarkers"],[lq,1,"_previewRailTransform"]],[lO,lM],lI)).e)[0],lU=t_[1],e.TimeRange=(tg=tb.c)[0],lB=tg[1],tw.styles=[].concat(e.Range.styles,[fo]),lP),e.VolumeRange=void 0,lj=hR("theoplayer-volume-range"),lz=dD(["player","deviceType"]),lH=hM({reflect:!1,attribute:!1});var fg=function(e){function t(){var t;return t=e.call(this)||this,lG(t),t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.volume)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("min")||(this.min=0),this.hasAttribute("max")||(this.max=1)},r.getAriaLabel=function(){return"volume"},r.getAriaValueText=function(){return""+Math.round(this.value/this.max*100)+"%"},r.handleInput=function(){void 0!==this._player&&this._player.volume!==this.value&&(this._player.volume=this.value),e.prototype.handleInput.call(this)},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener("volumechange",this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener("volumechange",this._updateFromPlayer))}}]),t}(lV=e.Range);function fk(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-error-icon-gap,10px);max-width:80%;max-width:var(--theoplayer-error-max-width,80%);min-width:0;min-width:var(--theoplayer-error-min-width,0)}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-error-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-error-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-error-icon-width,48px)}[part~=heading]{color:#fff;color:var(--theoplayer-error-heading-color,#fff);line-height:48px;line-height:var(--theoplayer-error-icon-height,48px);margin:0 0 10px;margin:var(--theoplayer-error-heading-margin,0 0 10px);padding:0}[part~=message]{color:#fff;color:var(--theoplayer-error-message-color,#fff);margin:0;margin:var(--theoplayer-error-message-margin,0);padding:0}[part~=fullscreen-controls]{-webkit-box-pack:end;-ms-flex-pack:end;bottom:0;display:-webkit-box;display:-ms-flexbox;display:flex;justify-content:flex-end;left:0;position:absolute;right:0}:host(:not([fullscreen])) [part~=fullscreen-controls]{display:none!important}"]);return fk=function(){return e},e}lG=(lQ=o(fg,[[lH,4,"player"]],[lj,lz],lV)).e[0],e.VolumeRange=(lW=lQ.c)[0],(0,lW[1])();var fw=cN(fk());function fx(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><h1 part="heading"><slot name="heading">An error occurred</slot></h1><p part="message"><slot name="message">','</slot></p></div><div part="fullscreen-controls"><slot name="fullscreen-controls"><theoplayer-fullscreen-button></theoplayer-fullscreen-button></slot></div>']);return fx=function(){return e},e}e.ErrorDisplay=void 0,lZ=hR("theoplayer-error-display"),lY=dD(["error","fullscreen"]),lX=hM({reflect:!1,attribute:!1}),l0=hM({reflect:!0,type:Boolean,attribute:hV.FULLSCREEN}),new(lK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lJ(),t}return i(t,e),t}(l),tA=h0("____private_error_1"),tC=h0("____private_fullscreen_2"),tL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tA,{writable:!0,value:void 0}),Object.defineProperty(t,tC,{writable:!0,value:void 0}),hJ(t,tA)[tA]=(l5(t),l1(t)),hJ(t,tC)[tC]=l2(t,!1),t}return i(t,e),t.prototype.render=function(){var e,t;return hu(fx(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="48" width="48"><path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z"/></svg>\n'),null!=(t=null==(e=this.error)?void 0:e.message)?t:"")},v(t,[{key:"error",get:function(){return hJ(this,tA)[tA]},set:function(e){hJ(this,tA)[tA]=e}},{key:"fullscreen",get:function(){return hJ(this,tC)[tC]},set:function(e){hJ(this,tC)[tC]=e}}]),t}(hL),l1=(tE=(tx=o(tL,[[lX,1,"error"],[l0,1,"fullscreen"]],[lZ,lY],hL)).e)[0],l2=tE[1],l5=tE[2],e.ErrorDisplay=(tT=tx.c)[0],lJ=tT[1],tL.styles=[fw],tL.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),lK),l3=hB(),l4=hM({reflect:!0,state:!0,type:String,attribute:hV.CAST_STATE});var fE=function(e){function t(t){var r;return r=e.call(this,t)||this,l8(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateCastState()},r.handleClick=function(){if(this._castApi){this._updateCastState();var e=this.castState;"available"===e?this._castApi.start():("connecting"===e||"connected"===e)&&this._castApi.stop()}},v(t,[{key:"castApi",get:function(){return this._castApi},set:function(e){void 0!==this._castApi&&this._castApi.removeEventListener("statechange",this._updateCastState),this._castApi=e,this._updateCastState(),void 0!==this._castApi&&this._castApi.addEventListener("statechange",this._updateCastState)}},{key:"castState",get:function(){return this._castState},set:function(e){this._castState=e}}]),t}(e.Button);function fT(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" height="24" width="24"><defs><clipPath id="theoplayer-chromecast-rings-mask-','"><path d="M0-36h44V0H0z"/></clipPath></defs><path class="theoplayer-chromecast-outer" d="M2 10a4 4 0 0 1 4-4h36a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H28v-4h14V10H6v6H2z"/><path class="theoplayer-chromecast-inner" d="M10 14h28v20H26.74A26 26 0 0 0 10 17.26z"/><g class="theoplayer-chromecast-rings" fill="none" stroke="currentColor" stroke-width="4" transform="translate(2 42)" clip-path="url(#theoplayer-chromecast-rings-mask-',')"><circle stroke="none" cx="0" cy="0" r="30"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring1" stroke-width="6" cx="0" cy="0" r="3"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring2" cx="0" cy="0" r="12"/><circle class="theoplayer-chromecast-ring theoplayer-chromecast-ring3" cx="0" cy="0" r="20"/><path class="theoplayer-chromecast-ring theoplayer-chromecast-ring4" stroke-linecap="round" d="M0-20A20 20 0 0 1 20 0"/></g></svg></span>']);return fT=function(){return e},e}function fA(){var e=a([":host([cast-state=unavailable]){display:none!important}:host([cast-state=connecting]) .theoplayer-chromecast-ring{-webkit-animation:.9s linear infinite;animation:.9s linear infinite}:host([cast-state=connecting]) .theoplayer-chromecast-ring1{-webkit-animation-name:theoplayer-chromecast-connecting-ring1;animation-name:theoplayer-chromecast-connecting-ring1}:host([cast-state=connecting]) .theoplayer-chromecast-ring2{-webkit-animation-name:theoplayer-chromecast-connecting-ring2;animation-name:theoplayer-chromecast-connecting-ring2}:host([cast-state=connecting]) .theoplayer-chromecast-ring3{-webkit-animation-name:theoplayer-chromecast-connecting-ring3;animation-name:theoplayer-chromecast-connecting-ring3}:host([cast-state=connecting]) .theoplayer-chromecast-ring4{-webkit-animation-name:theoplayer-chromecast-connecting-ring4;animation-name:theoplayer-chromecast-connecting-ring4}.theoplayer-chromecast-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-chromecast-inner{opacity:1}.theoplayer-chromecast-rings{clip-path:polygon(50% -100%,50% 50%,100% 50%,100% -100%)}@-webkit-keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring1{0%,37.5%{-webkit-transform:scale(0);transform:scale(0)}62.5%,to{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring2{0%,20%{stroke-width:24;-webkit-transform:scale(.25);transform:scale(.25)}35%{stroke-width:10;-webkit-transform:scale(.5);transform:scale(.5)}55%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@keyframes theoplayer-chromecast-connecting-ring3{0%,15%{stroke-width:6.66667;-webkit-transform:scale(.6);transform:scale(.6)}45%,to{stroke-width:4;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}@keyframes theoplayer-chromecast-connecting-ring4{0%{stroke-width:4;stroke-dashoffset:0;stroke-dasharray:32,99;opacity:1;-webkit-transform:scale(1);transform:scale(1)}35%{stroke-width:2.8571;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.4);transform:scale(1.4)}50%{stroke-width:0;stroke-dashoffset:-18;stroke-dasharray:0,99;opacity:1;-webkit-transform:scale(1.5);transform:scale(1.5)}50.001%,to{opacity:0}}"]);return fA=function(){return e},e}l8=o(fE,[[l3,4,"castApi"],[l4,4,"castState"]],[]).e[0];var fC=cN(fA()),fL=0;function fS(){var e=a([":host{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;gap:10px;gap:var(--theoplayer-chromecast-display-icon-gap,10px);padding:10px;padding:var(--theoplayer-control-padding,10px);pointer-events:none}:host([hidden]){display:none!important}[part~=icon]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;font-size:0}::slotted(img),::slotted(svg),img,svg{fill:#fff;fill:var(--theoplayer-chromecast-display-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-chromecast-display-icon-height,48px);max-height:100%;max-width:100%;min-width:100%;vertical-align:middle;width:48px;width:var(--theoplayer-chromecast-display-icon-width,48px)}[part=text]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part=heading]{color:#fff;color:var(--theoplayer-chromecast-display-heading-color,#fff);font-size:14px;font-size:var(--theoplayer-chromecast-display-heading-font-size,var(--theoplayer-text-font-size,14px));margin:0;margin:var(--theoplayer-chromecast-display-heading-margin,0);padding:0}[part=receiver]{color:#fff;color:var(--theoplayer-chromecast-display-receiver-color,#fff);font-size:17.5px;font-size:var(--theoplayer-chromecast-display-receiver-font-size,calc(var(--theoplayer-text-font-size, 14px)*1.25));margin:0;margin:var(--theoplayer-chromecast-display-receiver-margin,0);padding:0}"]);return fS=function(){return e},e}e.ChromecastButton=void 0,l6=hR("theoplayer-chromecast-button"),l9=dD(["player"]),new(l7=function(e){function t(){var t;return t=e.apply(this,arguments)||this,se(),t}return i(t,e),t}(l),tR=function(e){function t(){var t;return(t=e.call(this)||this)._buttonId=++fL,t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop casting to Chromecast":"start casting to Chromecast";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){var e;return e=this._buttonId,hu(fT(),e,e)},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.chromecast}}]),t}(fE),e.ChromecastButton=(tS=o(tR,[],[l6,l9],fE).c)[0],se=tS[1],tR.styles=[].concat(fE.styles,[fC]),l7);var fR=cN(fS());function fP(){var e=a(['<div part="icon"><slot name="icon">','</slot></div><div part="text"><p part="heading"><slot name="heading">Playing on</slot></p><p part="receiver">',"</p></div>"]);return fP=function(){return e},e}var fO=["statechange"];function fM(){var e=a(['<span part="icon"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path class="theoplayer-airplay-inner" d="M5 7h14v8H5z"/><path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg></span>']);return fM=function(){return e},e}e.ChromecastDisplay=void 0,sr=hR("theoplayer-chromecast-display"),sn=dD(["player"]),sa=hB(),new(st=function(e){function t(){var t;return t=e.apply(this,arguments)||this,si(),t}return i(t,e),t}(l),tB=h0("____private__receiverName_1"),tI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tB,{writable:!0,value:void 0}),hJ(t,tB)[tB]=(sl(t),so(t,"Chromecast")),t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)||null==(e=r.cast)?void 0:e.chromecast;void 0===n||"connected"!==n.state?t.setAttribute(hV.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(hV.HIDDEN))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.HIDDEN)||this.setAttribute(hV.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hu(fP(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path d="M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"/></svg>\n'),this._receiverName)},v(t,[{key:"_receiverName",get:function(){return hJ(this,tB)[tB]},set:function(e){hJ(this,tB)[tB]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(fO,this._updateFromPlayer),this._player=e,this._castApi=null==e||null==(t=e.cast)?void 0:t.chromecast,this._updateFromPlayer(),void 0!==this._castApi&&this._castApi.addEventListener(fO,this._updateFromPlayer))}}]),t}(hL),so=(tO=(tP=o(tI,[[sa,1,"_receiverName"]],[sr,sn],hL)).e)[0],sl=tO[1],e.ChromecastDisplay=(tM=tP.c)[0],si=tM[1],tI.styles=[fR],st);var fB=hu(fM());function fI(){var e=a([":host([cast-state=unavailable]){display:none!important}.theoplayer-airplay-inner{opacity:0;-webkit-transition:opacity .5s ease-in-out;transition:opacity .5s ease-in-out}:host([cast-state=connected]) .theoplayer-airplay-inner{opacity:1}"]);return fI=function(){return e},e}var fN=cN(fI());function f$(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;pointer-events:none!important;vertical-align:middle}[part=icon]{opacity:0;-webkit-transition:visibility .15s,opacity .15s;transition:visibility .15s,opacity .15s;visibility:hidden}:host([loading]) [part=icon]{opacity:1;-webkit-transition:visibility 0s,opacity 0s;transition:visibility 0s,opacity 0s;-webkit-transition-delay:.5s;transition-delay:.5s;-webkit-transition-delay:var(--theoplayer-loading-delay,.5s);transition-delay:var(--theoplayer-loading-delay,.5s);visibility:visible}[part=icon] ::slotted(img),[part=icon] ::slotted(svg){fill:#fff;fill:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff));height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));vertical-align:middle;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress{direction:ltr;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:0;height:48px;height:var(--theoplayer-loading-icon-height,var(--theoplayer-loading-icon-width,48px));letter-spacing:0;line-height:0;position:relative;white-space:nowrap;width:48px;width:var(--theoplayer-loading-icon-width,48px)}.theoplayer-loading-progress svg,.theoplayer-loading-spinner{height:100%;position:absolute;width:100%}.theoplayer-loading-progress svg{stroke:#fff;stroke:var(--theoplayer-loading-icon-color,var(--theoplayer-icon-color,#fff))}.theoplayer-loading-gap-patch{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;left:47.5%;overflow:hidden;position:absolute;top:0;width:5%}.theoplayer-loading-gap-patch svg{left:-900%;-webkit-transform:rotate(180deg);transform:rotate(180deg);width:2000%}.theoplayer-loading-circle-clipper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:100%;overflow:hidden;position:relative;width:50%}.theoplayer-loading-circle-clipper svg{width:200%}.theoplayer-loading-circle-right svg{left:-100%}.theoplayer-loading-progress{-webkit-animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite;animation:theoplayer-circular-progress-container-rotate 1568ms linear infinite}.theoplayer-loading-spinner{-webkit-animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-spinner-layer-rotate 5333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-left svg{-webkit-animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-left-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}.theoplayer-loading-circle-right svg{-webkit-animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both;animation:theoplayer-circular-progress-right-spin 1333ms cubic-bezier(.4,0,.2,1) infinite both}@-webkit-keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes theoplayer-circular-progress-container-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@keyframes theoplayer-circular-progress-spinner-layer-rotate{12.5%{-webkit-transform:rotate(135deg);transform:rotate(135deg)}25%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}37.5%{-webkit-transform:rotate(405deg);transform:rotate(405deg)}50%{-webkit-transform:rotate(540deg);transform:rotate(540deg)}62.5%{-webkit-transform:rotate(675deg);transform:rotate(675deg)}75%{-webkit-transform:rotate(810deg);transform:rotate(810deg)}87.5%{-webkit-transform:rotate(945deg);transform:rotate(945deg)}to{-webkit-transform:rotate(3turn);transform:rotate(3turn)}}@-webkit-keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@keyframes theoplayer-circular-progress-left-spin{0%{-webkit-transform:rotate(265deg);transform:rotate(265deg)}50%{-webkit-transform:rotate(130deg);transform:rotate(130deg)}to{-webkit-transform:rotate(265deg);transform:rotate(265deg)}}@-webkit-keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}@keyframes theoplayer-circular-progress-right-spin{0%{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}50%{-webkit-transform:rotate(-130deg);transform:rotate(-130deg)}to{-webkit-transform:rotate(-265deg);transform:rotate(-265deg)}}"]);return f$=function(){return e},e}e.AirPlayButton=void 0,su=hR("theoplayer-airplay-button"),sc=dD(["player"]),new(ss=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sh(),t}return i(t,e),t}(l),t$=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(r,n,i){e.prototype.attributeChangedCallback.call(this,r,n,i),t.observedAttributes.indexOf(r)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop playing on AirPlay":"start playing on AirPlay";this.setAttribute(hV.ARIA_LABEL,e)},r.render=function(){return fB},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t;this._player=e,this.castApi=null==e||null==(t=e.cast)?void 0:t.airplay}}]),t}(fE),e.AirPlayButton=(tN=o(t$,[],[su,sc],fE).c)[0],sh=tN[1],t$.styles=[].concat(fE.styles,[fN]),ss);var fD=cN(f$());function fq(){var e=a(['<div part="icon"><slot name="icon"><div aria-hidden="true" class="theoplayer-loading-progress"><div class="theoplayer-loading-spinner"><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-left"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div><div class="theoplayer-loading-gap-patch"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="3.2"/></svg></div><div class="theoplayer-loading-circle-clipper theoplayer-loading-circle-right"><svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><circle cx="24" cy="24" r="18" fill="none" stroke-dasharray="113.097" stroke-dashoffset="56.549" stroke-width="4"/></svg></div></div></div></slot></div>']);return fq=function(){return e},e}var fF=hu(fq()),fU=["readystatechange","play","pause","playing","seeking","seeked"];function fj(){var e=a([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return fj=function(){return e},e}e.LoadingIndicator=void 0,sp=hR("theoplayer-loading-indicator"),sy=dD(["player"]),sv=hM({reflect:!1,attribute:!1}),sm=hM({reflect:!0,type:Boolean,attribute:hV.LOADING}),new(sd=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sf(),t}return i(t,e),t}(l),tU=h0("____private_loading_1"),tj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tU,{writable:!0,value:void 0}),hJ(t,tU)[tU]=(s_(t),sb(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return i(t,e),t.prototype.render=function(){return fF},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fU,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fU,this._updateFromPlayer))}},{key:"loading",get:function(){return hJ(this,tU)[tU]},set:function(e){hJ(this,tU)[tU]=e}}]),t}(hL),sb=(tq=(tD=o(tj,[[sv,4,"player"],[sm,1,"loading"]],[sp,sy],hL)).e)[0],s_=tq[1],e.LoadingIndicator=(tF=tD.c)[0],sf=tF[1],tj.styles=[fD],sd);var fz=cN(fj());function fV(){var e=a([""]);return fV=function(){return e},e}function fH(){var e=a(["[part=icon] ::slotted(svg),[part=icon] svg{fill:#8c8c8c;fill:var(--theoplayer-live-button-color,#8c8c8c)}:host([live]:not([paused])) [part=icon] ::slotted(svg),:host([live]:not([paused])) [part=icon] svg{fill:red;fill:var(--theoplayer-live-button-active-color,red)}"]);return fH=function(){return e},e}e.GestureReceiver=void 0,sk=hR("theoplayer-gesture-receiver"),sw=dD(["player","deviceType"]),sE=hM({reflect:!1,attribute:!1}),sT=hM({reflect:!1,attribute:!1}),new(sg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sx(),t}return i(t,e),t}(l),tG=h0("____private_deviceType_1"),tQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tG,{writable:!0,value:void 0}),sC(t),t._pointerType="",hJ(t,tG)[tG]=sA(t,"desktop"),t._onPointerDown=function(e){t._pointerType=e.pointerType},t._onClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;"touch"===n?t.handleTap(e):"mouse"===n&&t.handleMouseClick(e)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")},r.handleTap=function(e){},r.handleMouseClick=function(e){if("desktop"===this.deviceType&&void 0!==this._player){var t;void 0===this._player.source||null!=(t=this._player.ads)&&t.playing||(this._player.paused?this._player.play():this._player.pause())}},r.render=function(){return hu(fV())},v(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}},{key:"deviceType",get:function(){return hJ(this,tG)[tG]},set:function(e){hJ(this,tG)[tG]=e}}]),t}(hL),sA=(tV=(tz=o(tQ,[[sE,4,"player"],[sT,1,"deviceType"]],[sk,sw],hL)).e)[0],sC=tV[1],e.GestureReceiver=(tH=tz.c)[0],sx=tH[1],tQ.styles=[fz],sg);var fG=cN(fH());function fQ(){var e=a(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">LIVE</slot></span>']);return fQ=function(){return e},e}var fW=["play","pause","playing","emptied"],fK=["seeking","seeked","timeupdate","durationchange","emptied"];function fZ(){var e=a([":host{padding:5px 10px;padding:calc(var(--theoplayer-control-padding, 10px) - var(--theoplayer-ad-display-padding, 5px)) var(--theoplayer-control-padding,10px);pointer-events:none}span{background:#ffc50f;background:var(--theoplayer-ad-display-background,#ffc50f);border-radius:2px;border-radius:var(--theoplayer-ad-display-border-radius,2px);color:#000;color:var(--theoplayer-ad-display-text-color,#000);display:inline-block;padding:5px;padding:var(--theoplayer-ad-display-padding,5px)}"]);return fZ=function(){return e},e}e.LiveButton=void 0,sS=hR("theoplayer-live-button"),sR=dD(["player","streamType"]),sM=hM({reflect:!0,type:Boolean,attribute:hV.PAUSED}),sB=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),sI=hM({reflect:!0,type:Number,attribute:hV.LIVE_THRESHOLD,useDefault:!0}),sN=hM({reflect:!0,type:Boolean,attribute:hV.LIVE}),s$=hM({reflect:!1,attribute:!1}),new(sL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sP(),t}return i(t,e),t}(l),tY=h0("____private_paused_1"),tJ=h0("____private_streamType_2"),tX=h0("____private_live_3"),t0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tY,{writable:!0,value:void 0}),Object.defineProperty(t,tJ,{writable:!0,value:void 0}),Object.defineProperty(t,tX,{writable:!0,value:void 0}),sU(t),t._liveThreshold=10,hJ(t,tY)[tY]=sD(t,!1),hJ(t,tJ)[tJ]=sq(t,"vod"),hJ(t,tX)[tX]=sF(t,!1),t._updatePaused=function(){t.paused=void 0===t._player||t._player.paused},t._updateLive=function(){t.live=void 0!==t._player&&function(e,t){if(e.duration===1/0){var r=e.seekable;return!(r.length>0)||r.end(r.length-1)-e.currentTime<=t}return!1}(t._player,t.liveThreshold)},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"seek to live")},r.handleClick=function(){void 0!==this._player&&(this._player.hesp&&void 0!==this._player.hesp.manifest?this._player.hesp.goLive():(this._player.currentTime=1/0,this._player.play()))},r.render=function(){return hu(fQ(),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><circle cx="12" cy="12" r="7"/></svg>\n'))},v(t,[{key:"paused",get:function(){return hJ(this,tY)[tY]},set:function(e){hJ(this,tY)[tY]=e}},{key:"streamType",get:function(){return hJ(this,tJ)[tJ]},set:function(e){hJ(this,tJ)[tJ]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return hJ(this,tX)[tX]},set:function(e){hJ(this,tX)[tX]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fW,this._updatePaused),this._player.removeEventListener(fK,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(fW,this._updatePaused),this._player.addEventListener(fK,this._updateLive)))}}]),t}(sO=e.Button),sD=(tK=(tW=o(t0,[[sM,1,"paused"],[sB,1,"streamType"],[sI,4,"liveThreshold"],[sN,1,"live"],[s$,4,"player"]],[sS,sR],sO)).e)[0],sq=tK[1],sF=tK[2],sU=tK[3],e.LiveButton=(tZ=tW.c)[0],sP=tZ[1],t0.styles=[].concat(e.Button.styles,[fG]),sL);var fY=cN(fZ());function fJ(){var e=a(["<span>","</span>"]);return fJ=function(){return e},e}var fX=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function f0(){var e=a([":host{pointer-events:none}"]);return f0=function(){return e},e}e.AdDisplay=void 0,sz=hR("theoplayer-ad-display"),sV=dD(["player"]),sG=hB(),sQ=hM({reflect:!1,attribute:!1}),new(sj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sH(),t}return i(t,e),t}(l),t3=h0("____private__text_1"),t4=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,t3,{writable:!0,value:void 0}),hJ(t,t3)[t3]=(sK(t),sW(t,"")),t._updateFromPlayer=function(){var e,r,n,i=null==(e=t._player)?void 0:e.ads,a=(null!=(n=null==i||null==(r=i.currentAdBreak)?void 0:r.ads)?n:[]).filter(fs);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=dC(t._player.ads.currentAds||[],fs);if(o){var l=a.indexOf(o);if(l>=0){t._text="Ad "+(l+1)+" of "+a.length,t.style.display="";return}}}t._text="Ad",t.style.display=""},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){return hu(fJ(),this._text)},v(t,[{key:"_text",get:function(){return hJ(this,t3)[t3]},set:function(e){hJ(this,t3)[t3]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(fX,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(fX,this._updateFromPlayer))}}]),t}(hL),sW=(t2=(t1=o(t4,[[sG,1,"_text"],[sQ,4,"player"]],[sz,sV],hL)).e)[0],sK=t2[1],e.AdDisplay=(t5=t1.c)[0],sH=t5[1],t4.styles=[dZ,fY],sj);var f1=cN(f0());function f2(){var e=a(["<span>Content will resume in ","s</span>"]);return f2=function(){return e},e}var f5=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function f3(){var e=a(["<slot>Visit Advertiser</slot>"]);return f3=function(){return e},e}e.AdCountdown=void 0,sY=hR("theoplayer-ad-countdown"),sJ=dD(["player"]),s0=hB(),s1=hM({reflect:!1,attribute:!1}),new(sZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sX(),t}return i(t,e),t}(l),t9=h0("____private__maxRemainingDuration_1"),re=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,t9,{writable:!0,value:void 0}),hJ(t,t9)[t9]=(s5(t),s2(t,0)),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads,i=null==n||null==(r=n.currentAdBreak)?void 0:r.maxRemainingDuration;void 0===n||!n.playing||void 0===i||i<0?(t._maxRemainingDuration=0,t.style.display="none"):(t._maxRemainingDuration=Math.ceil(i),t.style.display="")},t}return i(t,e),t.prototype.render=function(){return hu(f2(),this._maxRemainingDuration)},v(t,[{key:"_maxRemainingDuration",get:function(){return hJ(this,t9)[t9]},set:function(e){hJ(this,t9)[t9]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(f5,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(f5,this._onAdChange))}}]),t}(hL),s2=(t7=(t8=o(re,[[s0,1,"_maxRemainingDuration"],[s1,4,"player"]],[sY,sJ],hL)).e)[0],s5=t7[1],e.AdCountdown=(t6=t8.c)[0],sX=t6[1],re.styles=[dZ,f1],sZ);var f4=["adbegin","adend","adloaded","updatead","adskip"];e.AdClickThroughButton=void 0,s3=hR("theoplayer-ad-clickthrough-button"),s4=dD(["player"]),s7=hM({reflect:!0,type:String,attribute:hV.CLICKTHROUGH}),s6=hM({reflect:!1,attribute:!1});var f8=function(e){function t(){var t;return t=e.call(this)||this,s9(t),t._clickThrough=null,t._updateFromPlayer=function(){var e,r,n=null==(e=t._player)?void 0:e.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=dC(null!=(r=n.currentAds)?r:[],fs);if(void 0===i||"google-ima"===i.integration){t.clickThrough=null;return}var a=i.clickThrough;if(!a){t.clickThrough=null;return}t.clickThrough=a},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer(),null==this.clickThrough&&(this.disabled=!0,this.style.display="none")},r.handleClick=function(){var e;null==(e=this._player)||e.pause()},r.renderLinkContent=function(){return hu(f3())},v(t,[{key:"clickThrough",get:function(){return this._clickThrough},set:function(e){this._clickThrough!==e&&(this._clickThrough=e,this.href=e?String(e).trim():"#",this.target="_blank",this.disabled=null==e,this.style.display=null!=e?"":"none")}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(f4,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(f4,this._updateFromPlayer))}}]),t}(s8=e.LinkButton);function f7(){var e=a([":host{-ms-grid-columns:1fr;-ms-grid-rows:1fr;background:rgba(0,0,0,.7);background:var(--theoplayer-ad-skip-background,rgba(0,0,0,.7));border:1px solid hsla(0,0%,100%,.5);border:var(--theoplayer-ad-skip-border,1px solid hsla(0,0%,100%,.5));color:#fff;color:var(--theoplayer-ad-skip-color,#fff);display:-ms-grid;display:grid;grid-template-columns:1fr;grid-template-rows:1fr}:host(:hover){background:rgba(0,0,0,.9);background:var(--theoplayer-ad-skip-hover-background,rgba(0,0,0,.9));border:1px solid #fff;border:var(--theoplayer-ad-skip-hover-border,1px solid #fff);color:#fff;color:var(--theoplayer-ad-skip-hover-color,var(--theoplayer-ad-skip-color,#fff))}:host([disabled]){background:transparent;background:var(--theoplayer-ad-skip-countdown-background,transparent);border:1px solid transparent;border:var(--theoplayer-ad-skip-countdown-border,1px solid transparent);color:#fff;color:var(--theoplayer-ad-skip-countdown-color,var(--theoplayer-ad-skip-color,#fff))}[part=countdown],[part=skip]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}[part=skip]{font-size:14px;font-size:var(--theoplayer-ad-skip-font-size,var(--theoplayer-text-font-size,14px));line-height:24px;line-height:var(--theoplayer-ad-skip-line-height,var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px)))}[part=skip-icon]{padding-left:10px;padding-left:var(--theoplayer-control-padding,10px)}[part=skip-icon] ::slotted(svg),[part=skip-icon] svg{height:24px;height:var(--theoplayer-ad-skip-icon-height,var(--theoplayer-control-height,24px));width:24px;width:var(--theoplayer-ad-skip-icon-width,var(--theoplayer-control-height,24px))}"]);return f7=function(){return e},e}s9=(ue=o(f8,[[s7,4,"clickThrough"],[s6,4,"player"]],[s3,s4],s8)).e[0],e.AdClickThroughButton=(ut=ue.c)[0],(0,ut[1])();var f6=cN(f7());function f9(){var e=a(['<span part="countdown" style="','">Skip in ',' seconds</span> <span part="skip" style="','"><span part="skip-text"><slot name="skip-text">Skip Ad</slot></span><span part="skip-icon"><slot name="skip-icon">',"</slot></span></span>"]);return f9=function(){return e},e}var ve=["adbegin","adend","adloaded","updatead","adskip"];e.AdSkipButton=void 0,un=hR("theoplayer-ad-skip-button"),ui=dD(["player"]),ul=hB(),us=hB(),uu=hM({reflect:!1,attribute:!1}),new(ur=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ua(),t}return i(t,e),t}(l),ri=h0("____private__showCountdown_1"),ra=h0("____private__timeToSkip_2"),ro=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ri,{writable:!0,value:void 0}),Object.defineProperty(t,ra,{writable:!0,value:void 0}),hJ(t,ri)[ri]=(ud(t),uc(t,!1)),hJ(t,ra)[ra]=uh(t,0),t._onAdChange=function(){var e,r,n;(null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)?(t._player.removeEventListener("timeupdate",t._update),t._player.addEventListener("timeupdate",t._update)):null==(n=t._player)||n.removeEventListener("timeupdate",t._update),t._update()},t._update=function(){var e,r,n=null==(e=t._player)?void 0:e.ads;if(!n||!n.playing){t.style.display="none";return}var i=dC(null!=(r=n.currentAds)?r:[],fs);if(void 0===i||"google-ima"===i.integration){t.style.display="none";return}var a=i.skipOffset;if(void 0===a||a<0||void 0!==i.duration&&a>=i.duration){t.style.display="none";return}var o=t._player.currentTime;o<a?(t._showCountdown=!0,t._timeToSkip=Math.ceil(a-o),t.style.display="",t.setAttribute(hV.DISABLED,""),t.setAttribute(hV.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(hV.DISABLED),t.setAttribute(hV.ARIA_LIVE,"polite"))},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._update()},r.handleClick=function(){var e,t;null==(t=this._player)||null==(e=t.ads)||e.skip()},r.render=function(){var e={visibility:this._showCountdown?"visible":"hidden"},t={visibility:this._showCountdown?"hidden":"visible",pointerEvents:this._showCountdown?"none":""};return hu(f9(),fr(e),this._timeToSkip,fr(t),df('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M17.5 18q-.425 0-.712-.288-.288-.287-.288-.712V7q0-.425.288-.713Q17.075 6 17.5 6t.712.287q.288.288.288.713v10q0 .425-.288.712-.287.288-.712.288ZM7.05 16.975q-.5.35-1.025.05-.525-.3-.525-.9v-8.25q0-.6.525-.888.525-.287 1.025.038l6.2 4.15q.45.3.45.825 0 .525-.45.825Z"/></svg>\n'))},v(t,[{key:"_showCountdown",get:function(){return hJ(this,ri)[ri]},set:function(e){hJ(this,ri)[ri]=e}},{key:"_timeToSkip",get:function(){return hJ(this,ra)[ra]},set:function(e){hJ(this,ra)[ra]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r,n;this._player!==e&&(null==(t=this._player)||t.removeEventListener("timeupdate",this._update),null==(r=this._ads)||r.removeEventListener(ve,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(ve,this._onAdChange))}}]),t}(uo=e.Button),uc=(rr=(rt=o(ro,[[ul,1,"_showCountdown"],[us,1,"_timeToSkip"],[uu,4,"player"]],[un,ui],uo)).e)[0],uh=rr[1],ud=rr[2],e.AdSkipButton=(rn=rt.c)[0],ua=rn[1],ro.styles=[].concat(e.Button.styles,[f6]),ur);var vt=((rl={}).TopControlBar="top-control-bar",rl.BottomControlBar="bottom-control-bar",rl.Menu="menu",rl),vr=[];function vn(){var e=a([':host{aspect-ratio:16/9;aspect-ratio:var(--theoplayer-aspect-ratio,16/9);background:#000;background:var(--theoplayer-background,#000);-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-ui-container;container-type:size;display:inline-block;height:var(--theoplayer-height);min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}@supports not (aspect-ratio:1){:host{height:0;height:var(--theoplayer-height,calc((var(--theoplayer-aspect-ratio, 16 / 9))*0));padding-bottom:56.25%;padding-bottom:calc(100%/(var(--theoplayer-aspect-ratio, 16 / 9)))}}:host([hidden]){display:none!important}:host([fullscreen]){height:100%!important;padding:0!important;width:100%!important}:host(:-webkit-full-screen){height:100%!important;padding:0!important;width:100%!important}:host(:-ms-fullscreen){height:100%!important;padding:0!important;width:100%!important}:host(:fullscreen){height:100%!important;padding:0!important;width:100%!important}:host([fullwindow]){bottom:0!important;left:0!important;overflow:hidden!important;position:fixed!important;right:0!important;top:0!important;z-index:1000!important}:host([fluid]){--theoplayer-aspect-ratio:var(--theoplayer-video-width,16) /var(--theoplayer-video-height,9)}[part~=chrome]{position:relative}[part~=layer]{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}[part~=chrome],[part~=layer]:not([part~=media-layer]){display:-webkit-box;display:-ms-flexbox;display:flex}[part~=chrome],[part~=gesture-layer],[part~=vertical-layer]{pointer-events:none}[part~=chrome] ::slotted(*){pointer-events:auto}[part~=media-layer] video{border-radius:0;border-radius:var(--theoplayer-video-border-radius,0);-o-object-fit:contain;object-fit:contain;-o-object-fit:var(--theoplayer-video-object-fit,contain);object-fit:var(--theoplayer-video-object-fit,contain)}[part~=media-layer] .theoplayer-ad-linear{bottom:0;left:0;position:absolute;right:0;top:0;z-index:10}[part~=media-layer] .theo-ad-remaining-container,[part~=media-layer] .theoplayer-ad-skip,[part~=media-layer] .theoplayer-ad-touch-clickthrough{display:none!important}[part~=chrome],[part~=vertical-layer]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-flow:column nowrap;flex-flow:column nowrap}[part~=centered]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;justify-content:center}[part~=middle]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}[part~=vertical-layer]:before{background:transparent;background:var(--theoplayer-control-backdrop-background,transparent);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;bottom:var(--theoplayer-menu-offset-bottom,0);padding:10px;padding:var(--theoplayer-menu-layer-padding,10px);top:0;top:var(--theoplayer-menu-offset-top,0)}[part=menu]{-ms-grid-column-align:stretch;background:rgba(0,0,0,.5);background:var(--theoplayer-menu-backdrop-background,rgba(0,0,0,.5));display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:stretch}[part=menu] ::slotted(*){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-ms-grid-column-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;justify-self:stretch}:host(:not([mobile])) [part=menu]{margin:auto 0 0 auto;margin:var(--theoplayer-menu-margin-top,auto) var(--theoplayer-menu-margin-right,0) var(--theoplayer-menu-margin-bottom,0) var(--theoplayer-menu-margin-left,auto);max-height:100%;min-width:200px;min-width:var(--theoplayer-menu-min-width,200px)}:host([mobile]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([tv]) [part~=menu-layer]{left:auto}:host([tv]) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host(:not([menu-opened])) [part~=menu-layer],:host([menu-opened][mobile]) [part~=vertical-layer],:host([menu-opened][tv]) [part~=vertical-layer]{display:none!important}@container theoplayer-ui-container (max-width: 500px) or (max-height: 300px){:host(:not([mobile]):not([tv])) [part~=menu-layer]{bottom:0;left:0;padding:0;right:0;top:0}:host(:not([mobile])) [part=menu]{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;-webkit-box-flex:1;-ms-flex-positive:1;align-self:stretch;flex-grow:1;margin:0;min-width:auto;pointer-events:none}:host([menu-opened]) [part~=vertical-layer]{display:none!important}}[part~=error-layer]{-webkit-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-ms-flex-pack:center;align-items:center;background:rgba(0,0,0,.5);background:var(--theoplayer-error-background,rgba(0,0,0,.5));justify-content:center}:host(:not([has-error])) [part~=error-layer],:host([has-error]) [part~=layer]:not([part~=media-layer]):not([part~=error-layer]){display:none!important}[part~=chrome] ::slotted(theoplayer-control-bar){-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch}theoplayer-gesture-receiver{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host(:not([mobile])) [part~=chrome] ::slotted([mobile-only]),:host([mobile]) [part~=chrome] ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [part~=chrome] ::slotted([tv-only]),:host([tv]) [part~=chrome] ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [part~=chrome] ::slotted([live-hidden]),:host([stream-type=vod]) [part~=chrome] ::slotted([live-only]){display:none!important}:host(:not([playing-ad])) [part~=chrome] ::slotted([ad-only]),:host([playing-ad]) [part~=chrome] ::slotted([ad-hidden]){display:none!important}:host([user-idle]){cursor:none}:host([user-idle]) [part~=chrome] ::slotted(:not([no-auto-hide])){opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}:host([user-idle]) [part~=vertical-layer]:before{opacity:0;-webkit-transition:opacity 1s;transition:opacity 1s}']);return vn=function(){return e},e}var vi=cN(vn()),va=function(){if("undefined"!=typeof document)for(var e,t=db([["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]]);!(e=t()).done;){var r=e.value;if(r[1]in document)return{requestFullscreen_:r[0],exitFullscreen_:r[1],fullscreenElement_:r[2],fullscreenEnabled_:r[3],fullscreenchange_:r[4],fullscreenerror_:r[5]}}}();function vo(){if(("undefined"==typeof navigator?"undefined":d(navigator))!=="object")return!1;if(navigator.userAgentData)return navigator.userAgentData.mobile;var e=navigator.userAgent;return!!e&&/Android|iPhone|iPad|iPod|Mobile Safari|Windows Phone/i.test(e)}function vl(){if(("undefined"==typeof navigator?"undefined":d(navigator))!=="object")return!1;var e=navigator.userAgent;return!!e&&/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(e)}var vs="theoplayeruseridlechange",vu="theoplayerready";function vc(){var e=a(["html.theoplayer-ui-full-window{overflow:hidden!important}html.theoplayer-ui-full-window>body{height:100%!important;margin:0!important;padding:0!important;width:100%!important}"]);return vc=function(){return e},e}var vh=cN(vc()),vd="theoplayer-ui-global-styles",vp=!1;function vy(){var e=a(['<div part="layer media-layer" ','></div><div part="layer gesture-layer"><theoplayer-gesture-receiver></theoplayer-gesture-receiver></div><div part="layer vertical-layer"><div part="top chrome" ','><slot name="top-chrome" ',' @transitionstart="','" @transitionend="','"></slot></div><div part="middle chrome"><slot name="middle-chrome"></slot></div><div part="layer centered-layer centered loading"><slot name="centered-loading"></slot></div><div part="layer centered-layer centered chrome"><slot name="centered-chrome"></slot></div><div part="bottom chrome" ',"><slot ",' @transitionstart="','" @transitionend="','"></slot></div></div><div part="layer menu-layer" ',"><theoplayer-menu-group ",' part="menu" @theoplayermenuclose="','" @theoplayermenuchange="','"><slot name="menu"></slot></theoplayer-menu-group></div><div part="layer error-layer"><slot name="error"></slot></div>']);return vy=function(){return e},e}var vf="theoplayer-ui-full-window";function vv(e){for(var t,r,n=dM(e).filter(dE),i=db(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=pe.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function vm(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;container-name:theoplayer-default-ui-container;container-type:inline-size;display:inline-block;min-width:300px;min-width:var(--theoplayer-min-width,300px);position:relative}:host([hidden]){display:none!important}theoplayer-ui{display:block;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}[part=title]{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:14px;font-size:var(--theoplayer-text-font-size,14px);line-height:24px;line-height:var(--theoplayer-text-content-height,var(--theoplayer-control-height,24px));padding:10px;padding:var(--theoplayer-control-padding,10px);text-shadow:0 0 4px rgba(0,0,0,.75);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *,[part=centered-chrome] ::slotted(*){--theoplayer-button-icon-width:var(--theoplayer-centered-chrome-button-icon-width,48px);--theoplayer-control-height:var(--theoplayer-centered-chrome-control-height,48px);--theoplayer-play-button-icon-color:var(--theoplayer-center-play-button-icon-color,unset)}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;pointer-events:none;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:var(--theoplayer-mobile-control-backdrop-background,rgba(0,0,0,.5))}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:-webkit-gradient(linear,left bottom,left top,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:-webkit-gradient(linear,left top,left bottom,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:var(--theoplayer-time-range-control-height,12px);--theoplayer-range-track-pointer-background:var(--theoplayer-time-range-track-pointer-background,hsla(0,0%,100%,.5))}[part=ad-chrome]{--theoplayer-control-height:var(--theoplayer-ad-chrome-control-height,12px);-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;pointer-events:none}theoplayer-ad-display,theoplayer-ad-skip-button{-ms-flex-negative:0;flex-shrink:0}theoplayer-ad-countdown,theoplayer-ad-skip-button[disabled]{text-shadow:0 0 4px rgba(0,0,0,.75)}theoplayer-ad-countdown{min-width:0}theoplayer-ad-skip-button{-webkit-box-align:end;-ms-flex-align:end;--theoplayer-ad-skip-font-size:calc(var(--theoplayer-text-font-size, 14px)*1.25);--theoplayer-ad-skip-line-height:calc(var(--theoplayer-text-content-height, var(--theoplayer-control-height, 24px))*1.25);--theoplayer-ad-skip-icon-width:24px;--theoplayer-ad-skip-icon-height:24px;align-items:end;border-right:0!important;justify-items:end}:host(:not([mobile])) [mobile-only],:host(:not([mobile])) theoplayer-control-bar ::slotted([mobile-only]),:host([mobile]) [mobile-hidden],:host([mobile]) theoplayer-control-bar ::slotted([mobile-hidden]){display:none!important}:host(:not([tv])) [tv-only],:host(:not([tv])) theoplayer-control-bar ::slotted([tv-only]),:host([tv]) [tv-hidden],:host([tv]) theoplayer-control-bar ::slotted([tv-hidden]){display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui:not([playing-ad]) theoplayer-control-bar ::slotted([ad-only]),theoplayer-ui[playing-ad] [ad-hidden],theoplayer-ui[playing-ad] theoplayer-control-bar ::slotted([ad-hidden]){display:none!important}theoplayer-ui:not([has-first-play]) theoplayer-control-bar{display:none!important}theoplayer-ui:not([has-first-play]),theoplayer-ui:not([has-first-play]) ::slotted(*){--theoplayer-before-first-play-display:none}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:none!important}@container theoplayer-default-ui-container (max-width: 200px){:host(:not([mobile])) theoplayer-control-bar{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part~=center-play-button]{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}theoplayer-ui:not([mobile]):not([casting]) theoplayer-ad-clickthrough-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:var(--theoplayer-volume-range-track-width,70px);overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display:not([stream-type=vod]){padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}theoplayer-ui[playing-ad] .theoplayer-ad-control{--theoplayer-control-height:var(--theoplayer-ad-control-height,16px)}']);return vm=function(){return e},e}e.UIContainer=void 0,uy=hR("theoplayer-ui"),uv=hM({reflect:!1,attribute:hV.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),um=hM({reflect:!1,attribute:hV.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),ub=hM({reflect:!0,type:Boolean,attribute:hV.FLUID}),u_=hM({reflect:!0,type:Boolean,attribute:hV.MUTED}),ug=hM({reflect:!0,type:Boolean,attribute:hV.AUTOPLAY}),uk=hM({reflect:!0,type:Boolean,attribute:hV.FULLSCREEN}),uw=hM({reflect:!0,type:Boolean,attribute:hV.PAUSED}),ux=hM({reflect:!0,type:Boolean,attribute:hV.ENDED}),uE=hM({reflect:!0,type:Boolean,attribute:hV.CASTING}),uT=hM({reflect:!0,type:Boolean,attribute:hV.USER_IDLE}),uA=hM({reflect:!0,type:Number,attribute:hV.USER_IDLE_TIMEOUT,useDefault:!0}),uC=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),uL=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),uS=hM({reflect:!0,type:Number,attribute:hV.DVR_THRESHOLD,useDefault:!0}),uR=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_FIRST_PLAY}),uP=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.PLAYING_AD}),uO=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.HAS_ERROR}),uM=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.FULLWINDOW}),uB=hM({reflect:!0,state:!0,type:Boolean,attribute:hV.MENU_OPENED}),new(up=function(e){function t(){var t;return t=e.apply(this,arguments)||this,uf(),t}return i(t,e),t}(l),rh=h0("____private__hasFirstPlay_1"),rd=h0("____private__isPlayingAd_2"),rp=h0("____private__hasError_3"),ry=h0("____private__isFullWindow_4"),rf=function(n){function a(e){var t;return void 0===e&&(e={}),Object.defineProperty(t=n.call(this)||this,rh,{writable:!0,value:void 0}),Object.defineProperty(t,rd,{writable:!0,value:void 0}),Object.defineProperty(t,rp,{writable:!0,value:void 0}),Object.defineProperty(t,ry,{writable:!0,value:void 0}),uq(t),t._configuration={},t._playerRef=da(),t._menuRef=da(),t._menuGroupRef=da(),t._menuOpened=!1,t._topChromeRef=da(),t._topChromeSlotRef=da(),t._bottomChromeRef=da(),t._bottomChromeSlotRef=da(),t._pointerType="",t._lastPointerUpTime=0,t._stateReceivers=[],t._player=void 0,t._source=void 0,t._muted=!1,t._autoplay=!1,t._fullscreen=!1,t._deviceType="desktop",t._streamType="vod",t._fluid=!1,t._userIdle=!1,t._userIdleTimeout=void 0,t._isUserActive=!1,t._userIdleTimer=0,t._paused=!1,t._ended=!1,t._casting=!1,t._dvrThreshold=60,t._previewTime=NaN,t._activeVideoTrack=void 0,hJ(t,rh)[rh]=uI(t,!1),hJ(t,rd)[rd]=uN(t,!1),hJ(t,rp)[rp]=u$(t,!1),hJ(t,ry)[ry]=uD(t,!1),t._onMutation=function(e){var r=t._playerRef.value;if(r)for(var n,i=db(e);!(n=i()).done;){var a=n.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];dx(u)&&dq(u,r,t.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];dx(h)&&dq(h,r,t.unregisterStateReceiver_)}}}},t._onSlotChange=function(){t._playerRef.value&&dq(t,t._playerRef.value,t.registerStateReceiver_),t._updateTextTrackMargins()},t.registerStateReceiver_=function(e){t._stateReceivers.indexOf(e)>=0||(t._stateReceivers.push(e),t.propagateStateToReceiver_(e))},t.unregisterStateReceiver_=function(e){var r,n,i,a;r=t._stateReceivers,!((n=r.indexOf(e))<0)&&(i=r,a=n,i.splice(a,1),1)&&t.removeStateFromReceiver_(e)},t._onToggleMenu=function(e){e.stopPropagation();var r=e.detail.menu,n=t._menuGroupRef.value;if(n){if(!n.getMenuById(r))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+r+'"');var i=dE(e.target)?e.target:void 0;n.isMenuOpen(r)?t.closeMenu_():(t.closeMenu_(),t.openMenu_(r,i))}},t._onCloseMenu=function(e){e.stopPropagation(),t.closeMenu_()},t._onMenuChange=function(){var e=t._menuRef.value;e.removeEventListener("pointerdown",t._onMenuPointerDown),e.removeEventListener("click",t._onMenuClick),t._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",t._onMenuPointerDown),e.addEventListener("click",t._onMenuClick),t.menuOpened_=!0):t.menuOpened_=!1,t.updateUserIdle_()},t._onMenuPointerDown=function(e){t._pointerType=e.pointerType},t._onMenuClick=function(e){var r,n=null!=(r=e.pointerType)?r:t._pointerType;e.target===t._menuRef.value&&"mouse"===n&&t._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},t._onEnterFullscreen=function(e){if(e.stopPropagation(),va&&document[va.fullscreenEnabled_]&&t[va.requestFullscreen_]){var n,i,a=t[va.requestFullscreen_](r({navigationUI:"hide"},null==(i=t._configuration)||null==(n=i.ui)?void 0:n.fullscreenOptions));a&&a.then&&a.then(dw,dw)}else t._player&&t._player.presentation.supportsMode("fullscreen")?t._player.presentation.requestMode("fullscreen"):t._isFullWindow||(t._isFullWindow=!0,document.documentElement.classList.add(vf),window.addEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onExitFullscreen=function(e){if(e.stopPropagation(),va){var r=document[va.exitFullscreen_]();r&&r.then&&r.then(dw,dw)}t._player&&"fullscreen"===t._player.presentation.currentMode&&t._player.presentation.requestMode("inline"),t._isFullWindow&&(t._isFullWindow=!1,document.documentElement.classList.remove(vf),window.removeEventListener("keydown",t._exitFullscreenOnEsc),t._onFullscreenChange())},t._onFullscreenChange=function(){var e=!1;if(void 0!==va){var r=document[va.fullscreenElement_];r&&(e=function e(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;var n=r.getRootNode();return!!n.host&&e(t,n.host)}(r,t))}e||void 0===t._player||"fullscreen"!==t._player.presentation.currentMode||(e=!0),t._isFullWindow&&(e=!0),t.fullscreen=e},t._exitFullscreenOnEsc=function(e){e.keyCode==hH.ESCAPE&&t._onExitFullscreen(e)},t._updateAspectRatio=function(){if(void 0!==t._player){var e=t._player,r=e.videoWidth,n=e.videoHeight;r>0&&n>0?y8(t,{"--theoplayer-video-width":""+r,"--theoplayer-video-height":""+n}):y8(t,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},t._updateError=function(){var e=null==(r=t._player)?void 0:r.errorObject;t._hasError=void 0!==e;for(var r,n,i=db(t._stateReceivers);!(n=i()).done;){var a=n.value;a[dN].indexOf("error")>=0&&(a.error=e)}},t._onPlay=function(){t._hasFirstPlay=!0,t.paused=!1,t._updateEnded()},t._onPause=function(){t.paused=!0,t._updateEnded()},t._updatePausedAndEnded=function(){t.paused=!t._player||t._player.paused,t._updateEnded()},t._updateEnded=function(){t.ended=!!t._player&&t._player.ended},t._updateStreamType=function(){void 0!==t._player&&(t.streamType=t.computeStreamType_())},t._updatePlaybackRate=function(){if(void 0!==t._player)for(var e,r=t._player.playbackRate,n=db(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dN].indexOf("playbackRate")>=0&&(i.playbackRate=r)}},t._updateMuted=function(){void 0!==t._player&&(t.muted=t._player.muted)},t._updateActiveVideoTrack=function(){if(void 0!==t._player){var e,r,n,i,a=dC(t._player.videoTracks,function(e){return e.enabled});t._activeVideoTrack!==a&&(null==(e=t._activeVideoTrack)||e.removeEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(r=t._activeVideoTrack)||r.removeEventListener("targetqualitychanged",t._updateTargetVideoQualities),t._activeVideoTrack=a,t._updateActiveVideoQuality(),t._updateTargetVideoQualities(),null==(n=t._activeVideoTrack)||n.addEventListener("activequalitychanged",t._updateActiveVideoQuality),null==(i=t._activeVideoTrack)||i.addEventListener("targetqualitychanged",t._updateTargetVideoQualities))}},t._updateActiveVideoQuality=function(){for(var e,r,n=null==(e=t._activeVideoTrack)?void 0:e.activeQuality,i=db(t._stateReceivers);!(r=i()).done;){var a=r.value;a[dN].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=n)}},t._updateTargetVideoQualities=function(){for(var e,r=pM(t._activeVideoTrack),n=db(t._stateReceivers);!(e=n()).done;){var i=e.value;i[dN].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=r)}},t._updateCasting=function(){var e,r,n;t.casting=null!=(n=null==(r=t._player)||null==(e=r.cast)?void 0:e.casting)&&n},t._updatePlayingAd=function(){var e,r,n;t._isPlayingAd=null!=(n=null==(r=t._player)||null==(e=r.ads)?void 0:e.playing)&&n},t._onSourceChange=function(){t.closeMenu_(),t._hasFirstPlay=void 0!==t._player&&!t._player.paused},t.setUserIdle_=function(){if(clearTimeout(t._userIdleTimer),t._userIdleTimer=0,!(t.userIdleTimeout<0)&&(t._isUserActive=!1,t.updateUserIdle_(),"tv"==t.deviceType&&t.isUserIdle_())){var e=pt();null!==e&&e.blur()}},t.scheduleUserIdle_=function(){if(t.setUserActive_(),clearTimeout(t._userIdleTimer),t.userIdleTimeout<0){t._userIdleTimer=0;return}t._userIdleTimer=setTimeout(t.setUserIdle_,1e3*t.userIdleTimeout)},t._onTvKeyDown=function(e){if(hQ(e.keyCode))return void t.setUserIdle_();var r=function e(t){if(dE(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(hV.TV_FOCUS))return dB(t);for(var r=dO(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(t),n=dB(t),i=pt();if(!i){var a=null!=r?r:n;a.length>0&&(a[0].focus(),i=a[0])}!t.isUserIdle_()&&(e.keyCode===hH.ENTER?null!==i&&(e.preventDefault(),i.click()):hG(e.keyCode)&&pr(t,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},t._onKeyUp=function(e){hQ(e.keyCode)||t.scheduleUserIdle_()},t._onPointerUp=function(e){"mouse"===e.pointerType?t.scheduleUserIdle_():"touch"===e.pointerType&&(t.isPlayerOrMedia_(e.target)&&t._isUserActive?t.setUserIdle_():(t.isUserIdle_()&&(t._lastPointerUpTime=performance.now(),t.addEventListener("click",t._onClickAfterPointerUp,!0)),t.scheduleUserIdle_()))},t._onClickAfterPointerUp=function(e){t.removeEventListener("click",t._onClickAfterPointerUp,!0),performance.now()-t._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},t._onPointerMove=function(e){"mouse"===e.pointerType&&(t.setUserActive_(),t.isPlayerOrMedia_(e.target)&&t.scheduleUserIdle_())},t._onMouseLeave=function(){t.setUserIdle_()},t._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&t._updateTextTrackMargins()},t._updateTextTrackMargins=function(){var e=t._player;if(void 0!==e){var r=t._topChromeSlotRef.value&&vv(t._topChromeSlotRef.value),n=t._bottomChromeSlotRef.value&&vv(t._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==r?void 0:r.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height}},t._onPreviewTimeChange=function(e){t._previewTime=e.detail.previewTime;for(var r,n=db(t._stateReceivers);!(r=n()).done;){var i=r.value;i[dN].indexOf("previewTime")>=0&&(i.previewTime=t._previewTime)}},t._onDestroy=function(){t._player&&(t.removePlayerListeners_(t._player),t._player=void 0,t.propagatePlayerToAllReceivers_())},t._configuration=e,t._mutationObserver=new MutationObserver(t._onMutation),"undefined"!=typeof ResizeObserver&&(t._resizeObserver=new ResizeObserver(t._updateTextTrackMargins)),t.tryInitializePlayer_(),t}i(a,n);var o=a.prototype;return o._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},o._setSource=function(e){this._player?this._player.source=e:this._source=e},o.connectedCallback=function(){if(n.prototype.connectedCallback.call(this),!vp){if(cO)document.adoptedStyleSheets.push(vh.styleSheet);else if(!document.getElementById(vd)){var e,t=document.createElement("style");t.id=vd;var r=window.litNonce;void 0!==r&&t.setAttribute("nonce",r),e=vh.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}vp=!0}this.hasAttribute(hV.DEVICE_TYPE)||(this.deviceType=vo()?"mobile":vl()?"tv":"desktop"),this.hasAttribute(hV.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=db(this._stateReceivers);!(a=o()).done;){var l=a.value;this.propagateStateToReceiver_(l)}this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(i=this._resizeObserver)||i.observe(this),this._updateTextTrackMargins(),void 0!==va&&(document.addEventListener(va.fullscreenchange_,this._onFullscreenChange),document.addEventListener(va.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this._isFullWindow&&window.addEventListener("keydown",this._exitFullscreenOnEsc),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)},o.tryInitializePlayer_=function(){void 0===this._player&&void 0!==this._playerRef.value&&(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new t.ChromelessPlayer(this._playerRef.value,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted=this.muted,this._player.autoplay=this.autoplay,this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent(d7(vu)))},o.createRenderRoot=function(){var e=n.prototype.createRenderRoot.call(this);return e.addEventListener(pm,this._onToggleMenu),e.addEventListener(y5,this._onEnterFullscreen),e.addEventListener(y3,this._onExitFullscreen),e.addEventListener(fl,this._onPreviewTimeChange),e},o.firstUpdated=function(){this._menuGroupRef.value&&!x(this._menuGroupRef,e.MenuGroup)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&dq(this,this._playerRef.value,this.registerStateReceiver_)},o.disconnectedCallback=function(){var e;n.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==va&&(document.removeEventListener(va.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(va.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),window.removeEventListener("keydown",this._exitFullscreenOnEsc),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0},o.propagateStateToReceiver_=function(e){var t,r=e[dN];r.indexOf("player")>=0&&(e.player=this._player),r.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),r.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),r.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player&&(r.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),r.indexOf("error")>=0&&(e.error=this._player.errorObject),r.indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=null==(t=this._activeVideoTrack)?void 0:t.activeQuality),r.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=pM(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},o.propagatePlayerToAllReceivers_=function(){for(var e,t=db(this._stateReceivers);!(e=t()).done;){var r=e.value;r[dN].indexOf("player")>=0&&(r.player=this._player)}},o.removeStateFromReceiver_=function(e){e[dN].indexOf("player")>=0&&(e.player=void 0)},o.openMenu_=function(e,t){var r=pe.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=pe.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=pe.fromRect(this.getBoundingClientRect()),l=pe.fromRect(t.getBoundingClientRect());o.width>0&&o.height>0&&(i=l.top>=o.top+o.height/2,a=l.left>=o.left+o.width/2)}this._menuGroupRef.value.openMenu(e,t),this._menuOpener=t,y8(this,{"--theoplayer-menu-offset-top":""+Math.round(r.height)+"px","--theoplayer-menu-offset-bottom":""+Math.round(n.height)+"px","--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":a?"auto":"0","--theoplayer-menu-margin-right":a?"0":"auto"})},o.closeMenu_=function(){var e,t,r;null==(t=this._menuGroupRef.value)||null==(e=t.closeMenu)||e.call(t),null==(r=this._menuOpener)||r.focus(),this._menuOpener=void 0},o.computeStreamType_=function(){var e=this.source,t=null!=(i=null==e?void 0:e.streamType)?i:this.getAttribute(hV.STREAM_TYPE),r=null==(n=this._player)?void 0:n.duration;if(void 0===r||isNaN(r))return t||((null==e?void 0:e.dvr)?"dvr":"vod");if(r!==1/0)return"vod";if("live"===t||"dvr"===t)return t;var n,i,a,o=this.dvrThreshold;if(o<=0)return"dvr";var l=null==(a=this._player)?void 0:a.seekable;return l&&l.length>0&&l.end(l.length-1)-l.start(0)>=o?"dvr":"live"},o.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},o.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},o.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},o.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},o.addPlayerListeners_=function(e){var t,r,n;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],this._updateError),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.addEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)},o.removePlayerListeners_=function(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,r,n;null==(t=e.theoLive)||t.removeEventListener(["distributionloadstart","publicationloadstart"],this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(r=e.cast)||r.removeEventListener("castingchange",this._updateCasting),null==(n=e.ads)||n.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)}catch(e){}},o.render=function(){return hu(vy(),du(this._playerRef),du(this._topChromeRef),du(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,du(this._bottomChromeRef),du(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,du(this._menuRef),du(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},v(a,[{key:"player",get:function(){return this._player}},{key:"configuration",get:function(){return this._configuration},set:function(e){this._setConfiguration(e)}},{key:"source",get:function(){return this._player?this._player.source:this._source},set:function(e){this._setSource(e)}},{key:"fluid",get:function(){return this._fluid},set:function(e){this._fluid=e,this._updateAspectRatio()}},{key:"muted",get:function(){return this._muted},set:function(e){this._muted=e,this._player&&(this._player.muted=e)}},{key:"autoplay",get:function(){return this._autoplay},set:function(e){this._autoplay=e,this._player&&(this._player.autoplay=e)}},{key:"fullscreen",get:function(){return this._fullscreen},set:function(e){if(this._fullscreen!==e){this._fullscreen=e;for(var t,r=db(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dN].indexOf("fullscreen")>=0&&(n.fullscreen=e)}}}},{key:"paused",get:function(){return this._paused},set:function(e){this._paused=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"ended",get:function(){return this._ended},set:function(e){this._ended=e}},{key:"casting",get:function(){return this._casting},set:function(e){this._casting=e,this._updateTextTrackMargins(),this.updateUserIdle_()}},{key:"userIdle",get:function(){return this._userIdle},set:function(e){this._userIdle!==e&&(this._userIdle=e,this._updateTextTrackMargins(),this.dispatchEvent(d7(vs)))}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){if(this._deviceType!==e){this._deviceType=e,dP(this,hV.MOBILE,"mobile"===e),dP(this,hV.TV,"tv"===e),window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=db(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dN].indexOf("deviceType")>=0&&(n.deviceType=e)}}}},{key:"streamType",get:function(){return this._streamType},set:function(e){if(this._streamType!==e){this._streamType=e;for(var t,r=db(this._stateReceivers);!(t=r()).done;){var n=t.value;n[dN].indexOf("streamType")>=0&&(n.streamType=e)}var i=d7("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:e}});this.dispatchEvent(i)}}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e,this._updateStreamType()}},{key:"_hasFirstPlay",get:function(){return hJ(this,rh)[rh]},set:function(e){hJ(this,rh)[rh]=e}},{key:"_isPlayingAd",get:function(){return hJ(this,rd)[rd]},set:function(e){hJ(this,rd)[rd]=e}},{key:"_hasError",get:function(){return hJ(this,rp)[rp]},set:function(e){hJ(this,rp)[rp]=e}},{key:"_isFullWindow",get:function(){return hJ(this,ry)[ry]},set:function(e){hJ(this,ry)[ry]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,dP(this,hV.MENU_OPENED,e))}}]),a}(hL),uI=(ru=(rs=o(rf,[[uv,4,"configuration"],[um,4,"source"],[ub,4,"fluid"],[u_,4,"muted"],[ug,4,"autoplay"],[uk,4,"fullscreen"],[uw,4,"paused"],[ux,4,"ended"],[uE,4,"casting"],[uT,4,"userIdle"],[uA,4,"userIdleTimeout"],[uC,4,"deviceType"],[uL,4,"streamType"],[uS,4,"dvrThreshold"],[uR,1,"_hasFirstPlay"],[uP,1,"_isPlayingAd"],[uO,1,"_hasError"],[uM,1,"_isFullWindow"],[uB,4,"menuOpened_"]],[uy],hL)).e)[0],uN=ru[1],u$=ru[2],uD=ru[3],uq=ru[4],e.UIContainer=(rc=rs.c)[0],uf=rc[1],rf.styles=[vi],rf.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),rf.READY_EVENT=vu,up);var vb=cN(vm());function v_(){var e=a(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return v_=function(){return e},e}function vg(){var e=a(['<theoplayer-control-bar slot="top-chrome" part="top-chrome"><div part="title" ad-hidden style="','"><slot name="title" @slotchange="','"></slot></div><span class="theoplayer-spacer"></span><theoplayer-language-menu-button menu="language-menu" mobile-only ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button mobile-only ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button mobile-only ad-hidden></theoplayer-chromecast-button><slot name="top-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-only ad-hidden></theoplayer-settings-menu-button><theoplayer-ad-clickthrough-button ad-only></theoplayer-ad-clickthrough-button></theoplayer-control-bar><theoplayer-loading-indicator slot="centered-loading" no-auto-hide></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><slot name="centered-chrome"><theoplayer-seek-button part="seek-back-button seek-button center-button" seek-offset="-10" mobile-only ad-hidden></theoplayer-seek-button><theoplayer-play-button part="center-play-button play-button center-button"></theoplayer-play-button><theoplayer-seek-button part="seek-forward-button seek-button center-button" seek-offset="10" mobile-only ad-hidden></theoplayer-seek-button></slot></div><div slot="middle-chrome" part="middle-chrome"><theoplayer-chromecast-display></theoplayer-chromecast-display></div><div part="bottom-chrome"><theoplayer-control-bar part="ad-chrome" ad-only><theoplayer-ad-display></theoplayer-ad-display><theoplayer-ad-countdown></theoplayer-ad-countdown><span class="theoplayer-spacer"></span><theoplayer-ad-skip-button></theoplayer-ad-skip-button></theoplayer-control-bar><theoplayer-control-bar><theoplayer-play-button part="play-button" mobile-hidden ad-only class="theoplayer-ad-control"></theoplayer-play-button><theoplayer-mute-button part="mute-button" ad-only class="theoplayer-ad-control"></theoplayer-mute-button><theoplayer-time-range part="time-range" show-ad-markers tv-focus .inert="','" class="theoplayer-ad-control" style="','"></theoplayer-time-range><theoplayer-chromecast-button tv-hidden ad-only class="theoplayer-ad-control"></theoplayer-chromecast-button><theoplayer-fullscreen-button ad-only class="theoplayer-ad-control"></theoplayer-fullscreen-button></theoplayer-control-bar><theoplayer-control-bar ad-hidden><theoplayer-play-button part="play-button" mobile-hidden></theoplayer-play-button><theoplayer-mute-button part="mute-button" tv-hidden></theoplayer-mute-button><theoplayer-volume-range part="volume-range" mobile-hidden tv-hidden></theoplayer-volume-range><theoplayer-live-button part="live-button" live-only ad-hidden></theoplayer-live-button><theoplayer-time-display show-duration remaining-when-live></theoplayer-time-display><span class="theoplayer-spacer" style="pointer-events:auto"></span><theoplayer-language-menu-button menu="language-menu" mobile-hidden ad-hidden></theoplayer-language-menu-button><theoplayer-airplay-button tv-hidden mobile-hidden ad-hidden></theoplayer-airplay-button><theoplayer-chromecast-button tv-hidden mobile-hidden ad-hidden></theoplayer-chromecast-button><slot name="bottom-control-bar"></slot><theoplayer-settings-menu-button menu="settings-menu" mobile-hidden ad-hidden></theoplayer-settings-menu-button><theoplayer-fullscreen-button part="fullscreen-button" tv-hidden></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-language-menu id="language-menu" slot="menu" hidden></theoplayer-language-menu><theoplayer-settings-menu id="settings-menu" slot="menu" hidden></theoplayer-settings-menu><slot name="error" slot="error"><theoplayer-error-display></theoplayer-error-display></slot><slot name="menu" slot="menu"></slot>']);return vg=function(){return e},e}function vk(){var e=a(["[part=icon]{display:inline-block;position:relative}[part=warning-icon]{display:none;height:60%;min-width:60%;position:absolute;right:-10%;top:0;width:60%}[part=warning-icon] svg{fill:red;fill:var(--theolive-bad-network-mode,red)}"]);return vk=function(){return e},e}e.DefaultUI=void 0,uU=hR("theoplayer-default-ui"),uz=hB(),rv={slot:"title",flatten:!0},uV=hM({reflect:!1,attribute:hV.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),uH=hM({reflect:!1,attribute:hV.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),uG=hM({reflect:!0,type:Boolean,attribute:hV.FLUID}),uQ=hM({reflect:!0,type:Boolean,attribute:hV.MUTED}),uW=hM({reflect:!0,type:Boolean,attribute:hV.AUTOPLAY}),uK=hM({reflect:!0,type:String,attribute:hV.STREAM_TYPE}),uZ=hM({reflect:!0,type:Number,attribute:hV.USER_IDLE_TIMEOUT,useDefault:!0}),uY=hM({reflect:!0,type:String,attribute:hV.DEVICE_TYPE}),uJ=hM({reflect:!0,type:Number,attribute:hV.DVR_THRESHOLD,useDefault:!0}),uX=hB(),new(uF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,uj(),t}return i(t,e),t}(l),rg=h0("____private__timeRangeInert_1"),rk=h0("____private_titleSlotNodes_2"),rw=h0("____private_fluid_3"),rx=h0("____private_muted_4"),rE=h0("____private_autoplay_5"),rT=h0("____private_streamType_6"),rA=h0("____private__hasTitle_7"),rC=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,rg,{writable:!0,value:void 0}),Object.defineProperty(r,rk,{writable:!0,value:void 0}),Object.defineProperty(r,rw,{writable:!0,value:void 0}),Object.defineProperty(r,rx,{writable:!0,value:void 0}),Object.defineProperty(r,rE,{writable:!0,value:void 0}),Object.defineProperty(r,rT,{writable:!0,value:void 0}),Object.defineProperty(r,rA,{writable:!0,value:void 0}),u7(r),r._uiRef=da(),hJ(r,rg)[rg]=u0(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,hJ(r,rk)[rk]=u1(r),hJ(r,rw)[rw]=u2(r,!1),hJ(r,rx)[rx]=u5(r,!1),hJ(r,rE)[rE]=u3(r,!1),hJ(r,rT)[rT]=u4(r,"vod"),hJ(r,rA)[rA]=u8(r,!1),r._updateStreamType=function(){r._uiRef.value&&(r.streamType=r._uiRef.value.streamType)},r._updateUserIdle=function(){clearTimeout(r._timeRangeInertTimeout),r.userIdle?r._timeRangeInert=!0:r._timeRangeInertTimeout=setTimeout(function(){r._timeRangeInert=!1},50),r.dispatchEvent(d7(vs))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}i(t,e);var n=t.prototype;return n.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(hV.DEVICE_TYPE)||(this.deviceType=vo()?"mobile":vl()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=db(vr);!(t=r()).done;)(0,t.value)(this)}this._onTitleSlotChange()},n.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},n.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},n._onUiReady=function(){this.dispatchEvent(d7(vu))},n.render=function(){return hu(v_(),du(this._uiRef),this.configuration,this.fluid,this.muted,this.autoplay,this.deviceType,this.streamType,this.userIdleTimeout,this.dvrThreshold,this._onUiReady,this._updateUserIdle,this._updateStreamType,this.renderUiContent())},n.renderUiContent=function(){return hu(vg(),fr({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,fr({display:"live"===this.streamType?"none":""}))},v(t,[{key:"_timeRangeInert",get:function(){return hJ(this,rg)[rg]},set:function(e){hJ(this,rg)[rg]=e}},{key:"titleSlotNodes",get:function(){return hJ(this,rk)[rk]},set:function(e){hJ(this,rk)[rk]=e}},{key:"player",get:function(){var e;return null==(e=this._uiRef.value)?void 0:e.player}},{key:"configuration",get:function(){return this._configuration},set:function(e){var t;this._configuration=r({},e,{ads:r({},null!=(t=e.ads)?t:{},{showCountdown:!1})})}},{key:"source",get:function(){return this._uiRef.value?this._uiRef.value.source:this._source},set:function(e){this._uiRef.value?(this._source=void 0,this._uiRef.value.source=e):this._source=e}},{key:"fluid",get:function(){return hJ(this,rw)[rw]},set:function(e){hJ(this,rw)[rw]=e}},{key:"muted",get:function(){return hJ(this,rx)[rx]},set:function(e){hJ(this,rx)[rx]=e}},{key:"autoplay",get:function(){return hJ(this,rE)[rE]},set:function(e){hJ(this,rE)[rE]=e}},{key:"streamType",get:function(){return hJ(this,rT)[rT]},set:function(e){hJ(this,rT)[rT]=e}},{key:"userIdle",get:function(){return!!this._uiRef.value&&this._uiRef.value.userIdle}},{key:"userIdleTimeout",get:function(){var e;return null!=(e=this._userIdleTimeout)?e:"tv"===this.deviceType?5:2},set:function(e){this._userIdleTimeout=void 0===e||isNaN(e)?void 0:e}},{key:"deviceType",get:function(){return this._deviceType},set:function(e){this._deviceType!==e&&(this._deviceType=e,dP(this,hV.MOBILE,"mobile"===e),dP(this,hV.TV,"tv"===e))}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return hJ(this,rA)[rA]},set:function(e){hJ(this,rA)[rA]=e}}]),t}(hL),u0=(rb=(rm=o(rC,[[uz,1,"_timeRangeInert"],[function(e,t){var r=(null!=rv?rv:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return hI(e,t,{get:function(){var e,t,r=null==(e=this.renderRoot)?void 0:e.querySelector(n);return null!=(t=null==r?void 0:r.assignedNodes(rv))?t:[]}})},1,"titleSlotNodes"],[uV,4,"configuration"],[uH,4,"source"],[uG,1,"fluid"],[uQ,1,"muted"],[uW,1,"autoplay"],[uK,1,"streamType"],[uZ,4,"userIdleTimeout"],[uY,4,"deviceType"],[uJ,4,"dvrThreshold"],[uX,1,"_hasTitle"]],[uU],hL)).e)[0],u1=rb[1],u2=rb[2],u5=rb[3],u3=rb[4],u4=rb[5],u8=rb[6],u7=rb[7],e.DefaultUI=(r_=rm.c)[0],uj=r_[1],rC.styles=[vb],rC.shadowRootOptions=r({},hL.shadowRootOptions,{delegatesFocus:!0}),rC.READY_EVENT=vu,uF);var vw=cN(vk());function vx(){var e=a(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return vx=function(){return e},e}u9=hR("theolive-bad-network-button"),ce=dD(["player"]),cn=hB(),ci=hM({reflect:!1,attribute:!1}),new(u6=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ct(),t}return i(t,e),t}(l),rP=h0("____private__inBadNetworkMode_1"),rO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rP,{writable:!0,value:void 0}),hJ(t,rP)[rP]=(co(t),ca(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},t}i(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(hV.ARIA_LABEL)||this.setAttribute(hV.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hu(vx(),df(yJ),fr(e),df('<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48">\n <path d="m40 936 440-760 440 760H40Zm444.175-117q12.825 0 21.325-8.675 8.5-8.676 8.5-21.5 0-12.825-8.675-21.325-8.676-8.5-21.5-8.5-12.825 0-21.325 8.675-8.5 8.676-8.5 21.5 0 12.825 8.675 21.325 8.676 8.5 21.5 8.5ZM454 708h60V484h-60v224Z"/>\n</svg>'))},v(t,[{key:"_inBadNetworkMode",get:function(){return hJ(this,rP)[rP]},set:function(e){hJ(this,rP)[rP]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)))}}]),t}(cr=e.MenuButton),ca=(rS=(rL=o(rO,[[cn,1,"_inBadNetworkMode"],[ci,4,"player"]],[u9,ce],cr)).e)[0],co=rS[1],(rR=rL.c)[0],ct=rR[1],rO.styles=[].concat(e.MenuButton.styles,[vw]),u6),cl=dD(["player"]);var vE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._badNetworkMode=!1,t.handleEnterBadNetworkMode_=function(){t._badNetworkMode=!0,t.handleEnterBadNetworkMode()},t.handleExitBadNetworkMode_=function(){t._badNetworkMode=!1,t.handleExitBadNetworkMode()},t}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},v(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(this._theoLive&&(this._theoLive.removeEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.removeEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this._player=e,this._theoLive=null==e?void 0:e.theoLive,this._badNetworkMode=null!=(r=null==(t=this._theoLive)?void 0:t.badNetworkMode)&&r,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(cs=e.RadioButton);function vT(){var e=a(["<slot>High Quality</slot>"]);return vT=function(){return e},e}cu=(cc=o(vE,[],[cl],cs).c)[0],(0,cc[1])(),ch=hR("theolive-automatic-quality-selector");var vA=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)!==!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!1)},r.render=function(){return hu(vT())},t}(cu);function vC(){var e=a(["<slot>Low Quality</slot>"]);return vC=function(){return e},e}(cd=o(vA,[],[ch],cu).c)[0],(0,cd[1])(),cp=hR("theolive-bad-network-quality-selector");var vL=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){this.update_()},r.handleExitBadNetworkMode=function(){this.update_()},r.handlePlayer=function(){this.update_()},r.update_=function(){var e,t,r=(null==(t=this.player)||null==(e=t.theoLive)?void 0:e.badNetworkMode)===!0;this.checked!==r&&(this.checked=r)},r.handleChange=function(){this.checked&&this.player&&this.player.theoLive&&(this.player.theoLive.badNetworkMode=!0)},r.render=function(){return hu(vC())},t}(cu);function vS(){var e=a(["<theoplayer-radio-group ",' @change="','"><theolive-automatic-quality-selector></theolive-automatic-quality-selector><theolive-bad-network-quality-selector></theolive-bad-network-quality-selector></theoplayer-radio-group>']);return vS=function(){return e},e}function vR(){var e=a([':host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-family:Helvetica,Arial,sans-serif;position:relative;width:100%}:host([hidden]){display:none!important}theoplayer-ui{--theoplayer-loading-delay:0.1s;display:block;font-family:Helvetica,Arial,sans-serif;width:100%}:host(:-webkit-full-screen),:host(:-webkit-full-screen) theoplayer-ui{height:100%!important;width:100%!important}:host(:-ms-fullscreen),:host(:-ms-fullscreen) theoplayer-ui{height:100%!important;width:100%!important}:host(:fullscreen),:host(:fullscreen) theoplayer-ui{height:100%!important;width:100%!important}theoplayer-menu::part(heading){display:none!important}[part=centered-chrome]{display:-webkit-box;display:-ms-flexbox;display:flex}[part=centered-chrome] *{--theoplayer-control-height:48px}[part=middle-chrome]{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;justify-content:flex-end;pointer-events:none}[part=bottom-chrome],[part=middle-chrome]{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;position:relative}[part=bottom-chrome]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}:host([mobile]) theoplayer-ui{--theoplayer-control-backdrop-background:rgba(0,0,0,.5)}:host{--theoplayer-control-background-gradient-stops:transparent 0%,rgba(0,0,0,.01) 8.1%,rgba(0,0,0,.037) 15.5%,rgba(0,0,0,.078) 22.5%,rgba(0,0,0,.131) 29%,rgba(0,0,0,.195) 35.3%,rgba(0,0,0,.264) 41.2%,rgba(0,0,0,.337) 47.1%,rgba(0,0,0,.413) 52.9%,rgba(0,0,0,.486) 58.8%,rgba(0,0,0,.555) 64.7%,rgba(0,0,0,.619) 71%,rgba(0,0,0,.672) 77.5%,rgba(0,0,0,.713) 84.5%,rgba(0,0,0,.74) 91.9%,rgba(0,0,0,.75) 100%}:host(:not([mobile])) [part=bottom-chrome]:before,:host(:not([mobile])) [part=top-chrome]:before{bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:-1}:host(:not([mobile])) [part=top-chrome]:before{background:-webkit-gradient(linear,left bottom,left top,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{background:-webkit-gradient(linear,left top,left bottom,from(var(--theoplayer-control-background-gradient-stops)));background:linear-gradient(to bottom,var(--theoplayer-control-background-gradient-stops))}.theoplayer-spacer{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}theoplayer-time-range{--theoplayer-control-height:12px;--theoplayer-range-track-pointer-background:hsla(0,0%,100%,.5)}:host(:not([mobile])) [mobile-only],:host([mobile]) [mobile-hidden]{display:none!important}:host(:not([stream-type=vod])) [live-hidden],:host(:not([stream-type=vod])) theoplayer-control-bar ::slotted([live-hidden]),:host([stream-type=vod]) [live-only],:host([stream-type=vod]) theoplayer-control-bar ::slotted([live-only]){display:none!important}theoplayer-ui:not([has-first-play]) [part=centered-chrome] :not(theoplayer-play-button),theoplayer-ui:not([has-first-play]) theoplayer-control-bar,theoplayer-ui:not([playing-ad]) [ad-only],theoplayer-ui[playing-ad] [ad-hidden]{display:none!important}:host(:not([mobile])) theoplayer-ui[has-first-play] [part=centered-chrome] theoplayer-play-button{display:none!important}theoplayer-volume-range{--theoplayer-range-padding-left:0}theoplayer-mute-button+theoplayer-volume-range{--theoplayer-range-padding-right:0;--theoplayer-range-track-width:70px;overflow:hidden;-webkit-transition:width .2s ease-in;transition:width .2s ease-in;width:0}theoplayer-mute-button+theoplayer-volume-range:focus,theoplayer-mute-button+theoplayer-volume-range:hover,theoplayer-mute-button:focus+theoplayer-volume-range,theoplayer-mute-button:hover+theoplayer-volume-range{width:70px}theoplayer-mute-button+theoplayer-volume-range:focus-within,theoplayer-mute-button:focus-within+theoplayer-volume-range{width:70px}theoplayer-live-button+theoplayer-time-display{padding-left:0}theoplayer-live-button[live]+theoplayer-time-display{display:none!important}p{color:#fff;color:var(--theoplayer-text-color,#fff);font-size:20px;font-size:var(--theoplayer-text-font-size,20px)}theolive-bad-network-button{display:none;display:var(--theolive-bad-network-button-display,none)}theoplayer-settings-menu-button{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;display:var(--theolive-quality-button-display,inline-flex)}']);return vR=function(){return e},e}(cy=o(vL,[],[cp],cu).c)[0],(0,cy[1])(),cv=hR("theolive-bad-network-menu"),new(cf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cm(),t}return i(t,e),t}(l),rB=function(t){function r(){var e;return e=t.apply(this,arguments)||this,e._radioGroupRef=da(),e._onChange=function(){e.dispatchEvent(new Event("change",{bubbles:!0}))},e}i(r,t);var n=r.prototype;return n.firstUpdated=function(){this._radioGroupRef.value&&!x(this._radioGroupRef.value,e.RadioGroup)&&customElements.upgrade(this._radioGroupRef.value)},n.render=function(){return hu(vS(),du(this._radioGroupRef),this._onChange)},r}(hL),(rM=o(rB,[],[cv],hL).c)[0],cm=rM[1],rB.styles=[pR],cf);var vP=cN(vR());function vO(){var e=a(['<p id="loading-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="loading-announcement">Loading...</slot></p><p id="offline-announcement" no-auto-hide slot="centered-chrome" style="','"><slot name="offline-announcement">The live stream hasn\'t started yet</slot></p><p id="announcement" no-auto-hide slot="centered-chrome" style="','">','</p><theoplayer-loading-indicator slot="centered-loading" no-auto-hide part="loading-indicator"></theoplayer-loading-indicator><div slot="centered-chrome" part="centered-chrome"><theoplayer-play-button part="center-play-button play-button center-button" style="','"></theoplayer-play-button></div><div part="bottom-chrome"><theoplayer-control-bar><theoplayer-play-button mobile-hidden part="play-button" style="','"></theoplayer-play-button><theoplayer-mute-button part="mute-button"></theoplayer-mute-button><theoplayer-volume-range mobile-hidden part="volume-range"></theoplayer-volume-range><theoplayer-live-button ad-hidden live-only part="live-button"></theoplayer-live-button><span class="theoplayer-spacer"></span><theoplayer-settings-menu-button ad-hidden menu="all-quality-menu" part="quality-button"></theoplayer-settings-menu-button><theolive-bad-network-button ad-hidden menu="quality-menu" part="theolive-bad-network-button"></theolive-bad-network-button><theoplayer-fullscreen-button part="fullscreen-button"></theoplayer-fullscreen-button></theoplayer-control-bar></div><theoplayer-menu id="quality-menu" slot="menu" menu-close-on-input hidden><theolive-bad-network-menu></theolive-bad-network-menu></theoplayer-menu><theoplayer-menu id="all-quality-menu" slot="menu" menu-close-on-input hidden><theoplayer-quality-radio-group></theoplayer-quality-radio-group></theoplayer-menu><theoplayer-error-display slot="error" part="error-display" style="','"></theoplayer-error-display>']);return vO=function(){return e},e}e.THEOliveDefaultUI=void 0,c_=hR("theolive-default-ui"),cw=hB(),cx=hB(),cE=hB(),cT=hB(),new(cb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cg(),t}return i(t,e),t}(l),rD=h0("____private__announcementType_1"),rq=h0("____private__announcementMessage_2"),rF=h0("____private__hidePlayButton_3"),rU=h0("____private__hideErrorDisplay_4"),rj=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,rD,{writable:!0,value:void 0}),Object.defineProperty(r,rq,{writable:!0,value:void 0}),Object.defineProperty(r,rF,{writable:!0,value:void 0}),Object.defineProperty(r,rU,{writable:!0,value:void 0}),hJ(r,rD)[rD]=(cR(r),cA(r,"")),hJ(r,rq)[rq]=cC(r,""),hJ(r,rF)[rF]=cL(r,!1),hJ(r,rU)[rU]=cS(r,!1),r.onLoadChannelStart=function(){r.showMessage_("loading",void 0)},r.onChannelOffline=function(){r.showMessage_("offline",void 0)},r.onChannelLoaded=function(){r.hidePlayerError(),r.hideMessage_()},r.onError=function(e){var t=e.errorObject.code;if(t<13e3||t>=14e3)return void r.showMessage_("offline",void 0);r.stopHidingPlayerError(),r.hideMessage_()},r}i(t,e);var r=t.prototype;return r._onUiReady=function(){e.prototype._onUiReady.call(this);var t,r,n,i=this.player;i&&(null==(t=i.theoLive)||t.addEventListener(["distributionloadstart","publicationloadstart"],this.onLoadChannelStart),null==(r=i.theoLive)||r.addEventListener(["distributionoffline","publicationoffline"],this.onChannelOffline),null==(n=i.theoLive)||n.addEventListener(["endpointloaded","publicationloaded"],this.onChannelLoaded),i.addEventListener("error",this.onError))},r.hidePlayerError=function(){var e;null==(e=this._uiRef.value)||e.removeAttribute(hV.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(hV.HAS_ERROR,""),this._hideErrorDisplay=!1},r.showMessage_=function(e,t){this.hidePlayerError(),this._announcementType=e,this._announcementMessage=null!=t?t:"",this._hidePlayButton=!0},r.hideMessage_=function(){this._announcementType="",this._announcementMessage="",this._hidePlayButton=!1},r.renderUiContent=function(){var e={display:"loading"===this._announcementType?"":"none"},t={display:"offline"===this._announcementType?"":"none"},r={display:"announcement"===this._announcementType?"":"none"},n={display:this._hidePlayButton?"none":""},i={display:this._hideErrorDisplay?"none":""};return hu(vO(),fr(e),fr(t),fr(r),this._announcementMessage,fr(n),fr(n),fr(i))},v(t,[{key:"_announcementType",get:function(){return hJ(this,rD)[rD]},set:function(e){hJ(this,rD)[rD]=e}},{key:"_announcementMessage",get:function(){return hJ(this,rq)[rq]},set:function(e){hJ(this,rq)[rq]=e}},{key:"_hidePlayButton",get:function(){return hJ(this,rF)[rF]},set:function(e){hJ(this,rF)[rF]=e}},{key:"_hideErrorDisplay",get:function(){return hJ(this,rU)[rU]},set:function(e){hJ(this,rU)[rU]=e}}]),t}(ck=e.DefaultUI),cA=(rN=(rI=o(rj,[[cw,1,"_announcementType"],[cx,1,"_announcementMessage"],[cE,1,"_hidePlayButton"],[cT,1,"_hideErrorDisplay"]],[c_],ck)).e)[0],cC=rN[1],cL=rN[2],cS=rN[3],cR=rN[4],e.THEOliveDefaultUI=(r$=rI.c)[0],cg=r$[1],rj.styles=[vP],cb),e.Attribute=hV,e.CastButton=fE,e.ColorStops=y9,e.ExtensionSlot=vt,e.StateReceiverMixin=function(e,t){var r,n,a=dD(t),l=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(e);return r=(n=o(l,[],[a],e).c)[0],(0,n[1])(),r},e.buttonTemplate=hY,e.linkButtonTemplate=function(e,t){return void 0===t&&(t=""),hY("<a>"+e+"</a>",t)},e.menuGroupTemplate=function(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e},e.menuTemplate=function(e,t,r){return void 0===r&&(r=""),"<style>"+r+'</style><div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>'+e+'</div><div part="content">'+t+"</div>"},e.registerExtension=function(e){vr.push(e)},e.stateReceiver=dD,e.version="2.0.0"},"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("theoplayer/chromeless")):"function"==typeof define&&define.amd?define(["exports","theoplayer/chromeless"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).THEOplayerUI={},e.THEOplayer);
|