@theoplayer/web-ui 2.0.0-beta.0 → 2.1.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 +29 -1
- package/README.md +2 -2
- package/dist/THEOplayerUI.d.ts +4 -2
- 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/dist/THEOplayerUI.polyfills.js +1 -1
- package/package.json +24 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ChromelessPlayer as e}from"theoplayer/chromeless";function t(){return(t=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 r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n(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&&r(e,t)}function i(e,t){return t||(t=e.slice(0)),e.raw=t,e}function a(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 o(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(a=function(e,t,r,n){if(void 0!==n)var a=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===a?null:a),h=function(e,t,r){for(var n=[],i=new Map,a=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],_=y.length>3,m=f>=5;if(m?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!_){var b=m?a: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,a,l,u,c){var h,d,p,y,f,v,_=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 _)void 0!==(y=o(_,n,h,u,i,a,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;m>=0;m--)void 0!==(y=o(_[m],n,h,u,i,a,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 o(e){return e}function l(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 s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){l(a,n,i,o,s,"next",e)}function s(e){l(a,n,i,o,s,"throw",e)}o(void 0)})}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function h(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function d(e,t,r){t=u(t);var n=c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r);if(n&&("object"===h(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 p(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function y(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 f(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function v(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 v(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 v(e,t)}}function m(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 b(e){return function(e){if(Array.isArray(e))return v(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 g(e,t,n){return(g=c()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a}).apply(null,arguments)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=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,n)}function n(){return g(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r(n,e)})(e)}function w(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function x(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 E,T,A,C,L,S,R,P,O,M,I,B,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,e_,em,eb,eg,ek,ew,ex,eE,eT,eA,eC,eL,eS,eR,eP,eO,eM,eI,eB,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,t_,tm,tb,tg,tk,tw,tx,tE,tT,tA,tC,tL,tS,tR,tP,tO,tM,tI,tB,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,r_,rm,rb,rg,rk,rw,rx,rE,rT,rA,rC,rL,rS,rR,rP,rO,rM,rI,rB,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,n_,nm,nb,ng,nk,nw,nx,nE,nT,nA,nC,nL,nS,nR,nP,nO,nM,nI,nB,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,i_,im,ib,ig,ik,iw,ix,iE,iT,iA,iC,iL,iS,iR,iP,iO,iM,iI,iB,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,a_,am,ab,ag,ak,aw,ax,aE,aT,aA,aC,aL,aS,aR,aP,aO,aM,aI,aB,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,o_,om,ob,og,ok,ow,ox,oE,oT,oA,oC,oL,oS,oR,oP,oO,oM,oI,oB,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,l_,lm,lb,lg,lk,lw,lx,lE,lT,lA,lC,lL,lS,lR,lP,lO,lM,lI,lB,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,s_,sm,sb,sg,sk,sw,sx,sE,sT,sA,sC,sL,sS,sR,sP,sO,sM,sI,sB,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,u_,um,ub,ug,uk,uw,ux,uE,uT,uA,uC,uL,uS,uR,uP,uO,uM,uI,uB,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,c_,cm,cb,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP,cO,cM,cI,cB,cN,c$,cD,cq,cF,cU,cj,cz,cV,cH,cG,cQ,cW,cK,cZ,cY,cJ,cX,c0,c1,c2,c5,c3,c4,c8=self,c7=c8.ShadowRoot&&(void 0===c8.ShadyCSS||c8.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c6=Symbol(),c9=new WeakMap,he=function(){function e(t,r,n){if(p(this,e),this._$cssResult$=!0,n!==c6)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return f(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(c7&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=c9.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&c9.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),ht=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 he(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,c6)},hr=function(e,t){var r=!0,n=!1,i=void 0;if(c7)e.adoptedStyleSheets=t.map(function(e){return w(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=c8.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}}},hn=c7?function(e){return e}:function(e){return w(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 he("string"==typeof(t=r)?t:t+"",void 0,c6)}(e):e},hi=Object.is,ha=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,hl=Object.getOwnPropertyNames,hs=Object.getOwnPropertySymbols,hu=Object.getPrototypeOf,hc=self,hh=hc.trustedTypes,hd=hh?hh.emptyScript:"",hp=hc.reactiveElementPolyfillSupport,hy=function(e,t){return e},hf={toAttribute:function(e,t){switch(t){case Boolean:e=e?hd: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}},hv=function(e,t){return!hi(e,t)},h_={attribute:!0,type:String,converter:hf,reflect:!1,useDefault:!1,hasChanged:hv};null!=(rj=Symbol).metadata||(rj.metadata=Symbol("metadata")),null!=hc.litPropertyMetadata||(hc.litPropertyMetadata=new WeakMap);var hm=function(e){function t(){var e;return p(this,t),(e=d(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return n(t,e),f(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 hr(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:hf).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:hf;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:hv)(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 s(function(){var e;return x(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=m(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=m(p.value,2),v=f[0],_=f[1],b=_.wrapped,g=this[v];!0!==b||this._$AL.has(v)||void 0===g||this.C(v,void 0,_,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&&b(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=h_),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&&ha(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=ho(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:h_}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(hy("elementProperties"))){var e=hu(this);e.finalize(),void 0!==e.l&&(this.l=b(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(hy("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hy("properties"))){var e=this.properties,t=b(hl(e)).concat(b(hs(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=m(p.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var g=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(g=(x=E.next()).done);g=!0){var T=m(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{g||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(hn(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(hn(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}(k(HTMLElement));hm.elementStyles=[],hm.shadowRootOptions={mode:"open"},hm[hy("elementProperties")]=new Map,hm[hy("finalized")]=new Map,null==hp||hp({ReactiveElement:hm}),(null!=(rz=hc.reactiveElementVersions)?rz:hc.reactiveElementVersions=[]).push("2.1.1");var hb=self,hg=hb.trustedTypes,hk=hg?hg.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,hw="$lit$",hx="lit$"+Math.random().toFixed(9).slice(2)+"$",hE="?"+hx,hT="<"+hE+">",hA=document,hC=function(){return hA.createComment("")},hL=function(e){return null===e||"object"!=(void 0===e?"undefined":h(e))&&"function"!=typeof e},hS=Array.isArray,hR="[ \n\f\r]",hP=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hO=/-->/g,hM=/>/g,hI=RegExp(">|"+hR+"(?:([^\\s\"'>=/]+)("+hR+"*="+hR+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),hB=/'/g,hN=/"/g,h$=/^(?:script|style|textarea|title)$/i,hD=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}},hq=Symbol.for("lit-noChange"),hF=Symbol.for("lit-nothing"),hU=new WeakMap,hj=hA.createTreeWalker(hA,129,null,!1);function hz(e,t){if(!hS(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==hk?hk.createHTML(t):t}var hV=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hP,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===hP?"!--"===c[1]?o=hO:void 0!==c[1]?o=hM:void 0!==c[2]?(h$.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=hI):void 0!==c[3]&&(o=hI):o===hI?">"===c[0]?(o=null!=r?r:hP,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?hI:'"'===c[3]?hN:hB):o===hN||o===hB?o=hI:o===hO||o===hM?o=hP:(o=hI,r=void 0);var p=o===hI&&e[l+1].startsWith("/>")?" ":"";a+=o===hP?s+hT:h>=0?(i.push(u),s.slice(0,h)+hw+s.slice(h)+hx+p):s+hx+(-2===h?l:p)}return[hz(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},hH=function(){function e(t,r){var n=t.strings,i=t._$litType$;p(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=m(hV(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),hj.currentNode=this.el.content,2===i||3===i){var d,y=this.el.content.firstChild;y.replaceWith.apply(y,b(y.childNodes))}for(;null!==(d=hj.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,_=void 0;if(d.hasAttributes())try{for(var g,k=d.getAttributeNames()[Symbol.iterator]();!(f=(g=k.next()).done);f=!0){var w=g.value;if(w.endsWith(hw)){var x=h[o++],E=d.getAttribute(w).split(hx),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?hZ:"?"===T[1]?hY:"@"===T[1]?hJ:hK}),d.removeAttribute(w)}else w.startsWith(hx)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(h$.test(d.tagName)){var A=d.textContent.split(hx),C=A.length-1;if(C>0){d.textContent=hg?hg.emptyScript:"";for(var L=0;L<C;L++)d.append(A[L],hC()),hj.nextNode(),s.push({type:2,index:++a});d.append(A[C],hC())}}}else if(8===d.nodeType)if(d.data===hE)s.push({type:2,index:a});else for(var S=-1;-1!==(S=d.data.indexOf(hx,S+1));)s.push({type:7,index:a}),S+=hx.length-1;a++}}return f(e,null,[{key:"createElement",value:function(e,t){var r=hA.createElement("template");return r.innerHTML=e,r}}]),e}();function hG(e,t,r,n){if(void 0===r&&(r=e),t===hq)return t;var i,a,o,l,s=void 0!==n?null==(i=r._$Co)?void 0:i[n]:r._$Cl,u=hL(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=hG(e,s._$AS(e,t.values),s,n)),t}var hQ=function(){function e(t,r){p(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return f(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:hA).importNode(n,!0);hj.currentNode=a;for(var o=hj.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new hW(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new hX(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=hj.nextNode(),l++)}return hj.currentNode=hA,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}(),hW=function(){function e(t,r,n,i){var a;p(this,e),this.type=2,this._$AH=hF,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 f(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),hL(e=hG(this,e,t))?e===hF||null==e||""===e?(this._$AH!==hF&&this._$AR(),this._$AH=hF):e!==this._$AH&&e!==hq&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):hS(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!==hF&&hL(this._$AH)?this._$AA.nextSibling.data=e:this.T(hA.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=hH.createElement(hz(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 hQ(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=hU.get(e.strings);return void 0===t&&hU.set(e.strings,t=new hH(e)),t}},{key:"k",value:function(t){hS(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(hC()),this.O(hC()),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}(),hK=function(){function e(t,r,n,i,a){p(this,e),this.type=1,this._$AH=hF,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=hF}return f(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=!hL(e=hG(this,e,t,0))||e!==this._$AH&&e!==hq)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=hG(this,s[r+o],t,o))===hq&&(l=this._$AH[o]),a||(a=!hL(l)||l!==this._$AH[o]),l===hF?e=hF:e!==hF&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===hF?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),hZ=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e.type=3,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element[this.name]=e===hF?void 0:e}}]),t}(hK),hY=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e.type=4,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==hF)}}]),t}(hK),hJ=function(e){function t(e,r,n,i,a){var o;return p(this,t),(o=d(this,t,[e,r,n,i,a])).type=5,o}return n(t,e),f(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=hG(this,e,t,0))?r:hF)!==hq){var r,n=this._$AH,i=e===hF&&n!==hF||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==hF&&(n===hF||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}(hK),hX=function(){function e(t,r,n){p(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return f(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){hG(this,e)}}]),e}(),h0=hb.litHtmlPolyfillSupport;null==h0||h0(hH,hW),(null!=(rV=hb.litHtmlVersions)?rV:hb.litHtmlVersions=[]).push("3.3.0");var h1=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 hW(t.insertBefore(hC(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},h2=globalThis,h5=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return n(t,e),f(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=h1(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 hq}}]),t}(hm);h5._$litElement$=!0,h5.finalized=!0,null==(rH=h2.litElementHydrateSupport)||rH.call(h2,{LitElement:h5});var h3=h2.litElementPolyfillSupport;null==h3||h3({LitElement:h5}),(null!=(rG=h2.litElementVersions)?rG:h2.litElementVersions=[]).push("4.2.1");var h4=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},h8={attribute:!0,type:String,converter:hf,reflect:!1,hasChanged:hv},h7=function(e,t,r){void 0===e&&(e=h8);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 h6(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":h(r))?h7(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function h9(e){var t,r;return h6((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 de=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":h(t))&&Object.defineProperty(e,t,r),r};function dt(){var e=i([":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 dt=function(){return e},e}var dr=ht(dt());function dn(){var e=i(["<slot></slot>"]);return dn=function(){return e},e}rW=h4("theoplayer-control-bar"),new(rQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,rK(),t}return n(t,e),t}(o),T=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hD(dn())},t}(h5),rZ=(E=a(T,[],[rW],h5).c)[0],rK=E[1],T.styles=[dr],T.shadowRootOptions=t({},h5.shadowRootOptions,{delegatesFocus:!0}),rQ);var di=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}}},da=function(){function e(t){p(this,e)}return f(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,b(t))}}]),e}(),dl=di(function(e){function t(e){var r;if(p(this,t),r=d(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){return this.vt===e?hq:(this.vt=e,document.importNode(e.content,!0))}}]),t}(da));function ds(){var e=i([":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 ds=function(){return e},e}var du=ht(ds()),dc=((A={}).CONFIGURATION="configuration",A.SOURCE="source",A.AUTOPLAY="autoplay",A.MUTED="muted",A.FULLSCREEN="fullscreen",A.FULLWINDOW="fullwindow",A.FLUID="fluid",A.DEVICE_TYPE="device-type",A.MOBILE="mobile",A.TV="tv",A.TV_FOCUS="tv-focus",A.MOBILE_ONLY="mobile-only",A.MOBILE_HIDDEN="mobile-hidden",A.TV_ONLY="tv-only",A.TV_HIDDEN="tv-hidden",A.USER_IDLE="user-idle",A.USER_IDLE_TIMEOUT="user-idle-timeout",A.NO_AUTO_HIDE="no-auto-hide",A.DISABLED="disabled",A.INERT="inert",A.HIDDEN="hidden",A.PAUSED="paused",A.ENDED="ended",A.VOLUME_LEVEL="volume-level",A.CASTING="casting",A.LOADING="loading",A.STREAM_TYPE="stream-type",A.LIVE="live",A.LIVE_ONLY="live-only",A.LIVE_HIDDEN="live-hidden",A.LIVE_THRESHOLD="live-threshold",A.DVR_THRESHOLD="dvr-threshold",A.REMAINING="remaining",A.REMAINING_WHEN_LIVE="remaining-when-live",A.SHOW_DURATION="show-duration",A.SEEK_OFFSET="seek-offset",A.MENU="menu",A.MENU_OPENED="menu-opened",A.MENU_CLOSE_ON_INPUT="menu-close-on-input",A.ARIA_LABEL="aria-label",A.ARIA_LIVE="aria-live",A.ARIA_CHECKED="aria-checked",A.HAS_AUDIO="has-audio",A.HAS_SUBTITLES="has-subtitles",A.HAS_ERROR="has-error",A.HAS_FIRST_PLAY="has-first-play",A.CAST_STATE="cast-state",A.TRACK_TYPE="track-type",A.SHOW_OFF="show-off",A.PLAYING_AD="playing-ad",A.SHOW_AD_MARKERS="show-ad-markers",A.CLICKTHROUGH="clickthrough",A.PROPERTY="property",A.VALUE="value",A),dh=((C={})[C.ENTER=13]="ENTER",C[C.ESCAPE=27]="ESCAPE",C[C.SPACE=32]="SPACE",C[C.END=35]="END",C[C.HOME=36]="HOME",C[C.LEFT=37]="LEFT",C[C.UP=38]="UP",C[C.RIGHT=39]="RIGHT",C[C.DOWN=40]="DOWN",C[C.BACK_SAMSUNG=88]="BACK_SAMSUNG",C[C.BACK_WEBOS=461]="BACK_WEBOS",C[C.BACK_TIZEN=10009]="BACK_TIZEN",C);function dd(e){return 37<=e&&e<=40}function dp(e){return 10009===e||27===e||88===e||461===e}function dy(e){return 13===e||32===e}function df(){var e=i(["",""]);return df=function(){return e},e}function dv(){var e=i(["<slot></slot>"]);return dv=function(){return e},e}function d_(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}rJ=h4("theoplayer-button"),r0=h6({reflect:!0,type:Boolean,attribute:dc.DISABLED}),new(rY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,rX(),t}return n(t,e),t}(o),R=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){!dy(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),dy(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(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(dc.ARIA_LIVE)||this.setAttribute(dc.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?hD(df(),dl(this._template)):hD(dv())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(h5),r1=(L=a(R,[[r0,4,"disabled"]],[rJ],h5)).e[0],r2=(S=L.c)[0],rX=S[1],R.styles=[du],rY);var db=0;function dg(e){return"__private_"+db+++"_"+e}function dk(){var e=i([":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 dk=function(){return e},e}var dw=ht(dk()),dx=function(){return document.createComment("")},dE=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new hW(n.insertBefore(dx(),i),n.insertBefore(dx(),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},dT=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},dA={},dC=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}},dL=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),dL(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},dS=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))},dR=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),dM(t)}};function dP(e){void 0!==this._$AN?(dS(this),this._$AM=e,dR(this)):this._$AM=e}function dO(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++)dL(n[a],!1),dS(n[a]);else null!=n&&(dL(n,!1),dS(n));else dL(this,e)}var dM=function(e){2==e.type&&(null!=e._$AP||(e._$AP=dO),null!=e._$AQ||(e._$AQ=dP))},dI=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e._$AN=void 0,e}return n(t,e),f(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),dR(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&&(dL(this,e),dS(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=b(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(da),dB=function(){return new dN},dN=function e(){p(this,e)},d$=new WeakMap,dD=di(function(e){function t(){return p(this,t),d(this,t,arguments)}return n(t,e),f(t,[{key:"render",value:function(e){return hF}},{key:"update",value:function(e,t){var r,n=m(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)),hF}},{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=d$.get(r);void 0===n&&(n=new WeakMap,d$.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=d$.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 dq(){var e=i(["",""]);return dq=function(){return e},e}function dF(){var e=i(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return dF=function(){return e},e}function dU(){var e=i(["<slot></slot>"]);return dU=function(){return e},e}function dj(e,t){return void 0===t&&(t=""),d_("<a>"+e+"</a>",t)}r3=h4("theoplayer-link-button"),r8=h6({reflect:!0,type:Boolean,attribute:dc.DISABLED}),r7=h9(),r6=h9(),new(r5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,r4(),t}return n(t,e),t}(o),I=dg("____private_href_1"),B=dg("____private_target_2"),N=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,I,{writable:!0,value:void 0}),Object.defineProperty(r,B,{writable:!0,value:void 0}),nt(r),r._disabled=!1,r._linkRef=dB(),dm(r,I)[I]=r9(r,""),dm(r,B)[B]=ne(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==dh.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}n(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(dc.ARIA_LIVE)||this.setAttribute(dc.ARIA_LIVE,"polite"),this.hasAttribute(dc.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?hD(dq(),dl(this._template)):hD(dF(),dD(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hD(dU())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return dm(this,I)[I]},set:function(e){dm(this,I)[I]=e}},{key:"target",get:function(){return dm(this,B)[B]},set:function(e){dm(this,B)[B]=e}}]),t}(h5),r9=(O=(P=a(N,[[r8,4,"disabled"],[r7,1,"href"],[r6,1,"target"]],[r3],h5)).e)[0],ne=O[1],nt=O[2],nr=(M=P.c)[0],r4=M[1],N.styles=[dw],r5);var dz=function(e){function t(e){var r;if(p(this,t),(r=d(this,t,[e])).it=hF,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){if(e===hF||null==e)return this._t=void 0,this.it=e;if(e===hq)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}(da);dz.directiveName="unsafeHTML",dz.resultType=1;var dV=function(e){function t(){return p(this,t),d(this,t,arguments)}return n(t,e),t}(dz);dV.directiveName="unsafeSVG",dV.resultType=2;var dH=di(dV);function dG(){var e=i([":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 dG=function(){return e},e}var dQ=ht(dG());function dW(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 dK(){var e=i([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return dK=function(){return e},e}var dZ=ht(dK());function dY(){var e=i(["<slot></slot>"]);return dY=function(){return e},e}function dJ(){}function dX(e){return e.nodeType===Node.ELEMENT_NODE}function d0(e){return w(e,HTMLElement)}ni=h4("theoplayer-slot-container"),new(nn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,na(),t}return n(t,e),t}(o),D=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hD(dY())},t}(h5),no=($=a(D,[],[ni],h5).c)[0],na=$[1],D.styles=[dZ],nn);var d1="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},d2="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},d5="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]},d3="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},d4="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},d8="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 d7(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function d6(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 d0(e)?e.children:[]}function d9(e){for(var t,r=[],n=dW(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(d2(i.children)))}return r}function pe(e){var t=[];return function e(t,r){if(d0(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=d6(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function pt(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var pr="theoplayerUiObservedProperties";function pn(e){return pr in e&&d1(e[pr])}var pi=function(e){return function(t,r){Object.defineProperty(t.prototype,pr,{value:e})}};function pa(e,t){var r,i,o=pi(t),l=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t}(e);return r=(i=a(l,[],[o],e).c)[0],(0,i[1])(),r}function po(e,t,r){return s(function(){var n;return x(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!pn(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(pn(e)&&r(e),!((n=d6(e)).length>0))return[3,5];return[4,Promise.all(d2(n).map(function(e){return po(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function pl(){var e=i(['<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 pl=function(){return e},e}var ps=["seeking","seeked","ended","emptied","sourcechange"];function pu(){var e=i([":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 pu=function(){return e},e}ns=h4("theoplayer-play-button"),nu=pi(["player"]),nh=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.PAUSED}),nd=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.ENDED}),new(nl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nc(),t}return n(t,e),t}(o),j=dg("____private_paused_1"),z=dg("____private_ended_2"),V=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,j,{writable:!0,value:void 0}),Object.defineProperty(t,z,{writable:!0,value:void 0}),dm(t,j)[j]=(nf(t),np(t,!1)),dm(t,z)[z]=ny(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}n(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(dc.ARIA_LABEL,e)},r.render=function(){return hD(pl(),dH('<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'),dH('<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'),dH('<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'))},f(t,[{key:"paused",get:function(){return dm(this,j)[j]},set:function(e){dm(this,j)[j]=e}},{key:"ended",get:function(){return dm(this,z)[z]},set:function(e){dm(this,z)[z]=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(ps,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(ps,this._updateFromPlayer)))}}]),t}(r2),np=(F=(q=a(V,[[nh,1,"paused"],[nd,1,"ended"]],[ns,nu],r2)).e)[0],ny=F[1],nf=F[2],nv=(U=q.c)[0],nc=U[1],V.styles=[].concat(r2.styles,[dQ]),nl);var pc=ht(pu());function ph(){var e=i(['<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 ph=function(){return e},e}var pd=["volumechange"];function pp(){var e=i([':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 pp=function(){return e},e}nm=h4("theoplayer-mute-button"),nb=pi(["player"]),nk=h6({reflect:!0,state:!0,type:String,attribute:dc.VOLUME_LEVEL}),nw=h6({reflect:!1,attribute:!1}),new(n_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ng(),t}return n(t,e),t}(o),W=dg("____private_volumeLevel_1"),K=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,W,{writable:!0,value:void 0}),dm(t,W)[W]=(nE(t),nx(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}n(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(dc.ARIA_LABEL,e)},r.render=function(){return hD(ph(),dH('<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'),dH('<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'),dH('<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'))},f(t,[{key:"volumeLevel",get:function(){return dm(this,W)[W]},set:function(e){dm(this,W)[W]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(pd,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(pd,this._updateFromPlayer))}}]),t}(r2),nx=(G=(H=a(K,[[nk,1,"volumeLevel"],[nw,4,"player"]],[nm,nb],r2)).e)[0],nE=G[1],nT=(Q=H.c)[0],ng=Q[1],K.styles=[].concat(r2.styles,[pc]),n_);var py=ht(pp());function pf(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return pf=function(){return e},e}function pv(){var e=i([":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 pv=function(){return e},e}nC=h4("theoplayer-seek-button"),nL=pi(["player"]),nR=h6({reflect:!0,type:Number,attribute:dc.SEEK_OFFSET}),nP=h6({reflect:!1,attribute:!1}),new(nA=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nS(),t}return n(t,e),t}(o),X=dg("____private_seekOffset_1"),ee=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,X,{writable:!0,value:void 0}),dm(t,X)[X]=(nM(t),nO(t,10)),t}n(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(dc.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},r.render=function(){return hD(pf(),dH('<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)))},f(t,[{key:"seekOffset",get:function(){return dm(this,X)[X]},set:function(e){dm(this,X)[X]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(r2),nO=(Y=(Z=a(ee,[[nR,1,"seekOffset"],[nP,4,"player"]],[nC,nL],r2)).e)[0],nM=Y[1],nI=(J=Z.c)[0],nS=J[1],ee.styles=[].concat(r2.styles,[py]),nA);var p_=ht(pv());function pm(e){return!isNaN(e)&&isFinite(e)}function pb(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(pm(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 pg=[["hour","hours"],["minute","minutes"],["second","seconds"]];function pk(e,t){var r=pg[t][+(1!==e)];return e+" "+r}function pw(e,t){if(!pm(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?"":pk(a,0),0===i?"":pk(i,1),0===n&&(a>0||i>0)?"":pk(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function px(){var e=i(["<span>","</span>"]);return px=function(){return e},e}var pE=["timeupdate","seeking","seeked","durationchange"];function pT(){var e=i(["<span>","</span>"]);return pT=function(){return e},e}nN=h4("theoplayer-time-display"),n$=pi(["player","streamType"]),nq=h6({reflect:!1,attribute:!1}),nF=h6({reflect:!0,type:Boolean,attribute:dc.REMAINING}),nU=h6({reflect:!0,type:Boolean,attribute:dc.REMAINING_WHEN_LIVE}),nj=h6({reflect:!0,type:Boolean,attribute:dc.SHOW_DURATION}),nz=h6({reflect:!0,type:String,attribute:dc.STREAM_TYPE}),nV=h9(),nH=h9(),nG=h9(),new(nB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nD(),t}return n(t,e),t}(o),ei=dg("____private_remaining_1"),ea=dg("____private_remainingWhenLive_2"),eo=dg("____private_showDuration_3"),el=dg("____private_streamType_4"),es=dg("____private__currentTime_5"),eu=dg("____private__duration_6"),ec=dg("____private__endTime_7"),eh=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ei,{writable:!0,value:void 0}),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}),dm(t,ei)[ei]=(n0(t),nQ(t,!1)),dm(t,ea)[ea]=nW(t,!1),dm(t,eo)[eo]=nK(t,!1),dm(t,el)[el]=nZ(t,"vod"),dm(t,es)[es]=nY(t,0),dm(t,eu)[eu]=nJ(t,NaN),dm(t,ec)[ec]=nX(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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.ARIA_LABEL,"playback time"),this.hasAttribute(dc.ARIA_LIVE)||this.setAttribute(dc.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?pb(n,i,r)+" / "+pb(i):pb(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?pw(n,r)+" of "+pw(i):pw(n,r),this.setAttribute("aria-valuetext",t),hD(px(),e)},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(pE,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(pE,this._updateFromPlayer))}},{key:"remaining",get:function(){return dm(this,ei)[ei]},set:function(e){dm(this,ei)[ei]=e}},{key:"remainingWhenLive",get:function(){return dm(this,ea)[ea]},set:function(e){dm(this,ea)[ea]=e}},{key:"showDuration",get:function(){return dm(this,eo)[eo]},set:function(e){dm(this,eo)[eo]=e}},{key:"streamType",get:function(){return dm(this,el)[el]},set:function(e){dm(this,el)[el]=e}},{key:"_currentTime",get:function(){return dm(this,es)[es]},set:function(e){dm(this,es)[es]=e}},{key:"_duration",get:function(){return dm(this,eu)[eu]},set:function(e){dm(this,eu)[eu]=e}},{key:"_endTime",get:function(){return dm(this,ec)[ec]},set:function(e){dm(this,ec)[ec]=e}}]),t}(h5),nQ=(er=(et=a(eh,[[nq,4,"player"],[nF,1,"remaining"],[nU,1,"remainingWhenLive"],[nj,1,"showDuration"],[nz,1,"streamType"],[nV,1,"_currentTime"],[nH,1,"_duration"],[nG,1,"_endTime"]],[nN,n$],h5)).e)[0],nW=er[1],nK=er[2],nZ=er[3],nY=er[4],nJ=er[5],nX=er[6],n0=er[7],n1=(en=et.c)[0],nD=en[1],eh.styles=[p_],nB);var pA=["durationchange"];n5=h4("theoplayer-duration-display"),n3=pi(["player"]),n8=h6({reflect:!1,attribute:!1}),n7=h9(),new(n2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,n4(),t}return n(t,e),t}(o),ef=dg("____private_duration_1"),ev=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ef,{writable:!0,value:void 0}),dm(t,ef)[ef]=(n9(t),n6(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LIVE)||this.setAttribute(dc.ARIA_LIVE,"off")},r.render=function(){return hD(pT(),pb(this.duration))},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(pA,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(pA,this._updateFromPlayer))}},{key:"duration",get:function(){return dm(this,ef)[ef]},set:function(e){dm(this,ef)[ef]=e}}]),t}(h5),n6=(ep=(ed=a(ev,[[n8,4,"player"],[n7,1,"duration"]],[n5,n3],h5)).e)[0],n9=ep[1],ie=(ey=ed.c)[0],n4=ey[1],ev.styles=[p_],n2);var pC=!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)},pL=!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)};it=h4("theoplayer-radio-button"),ir=h6({reflect:!0,type:Boolean,attribute:dc.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),ii=h6({attribute:dc.VALUE});var pS=dg("____private_value_1"),pR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pS,{writable:!0,value:void 0}),io(t),t._checked=!1,dm(t,pS)[pS]=ia(t,void 0),t}n(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(pC("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},f(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(pC("change",{bubbles:!0})))}},{key:"value",get:function(){return dm(this,pS)[pS]},set:function(e){dm(this,pS)[pS]=e}}]),t}(r2);ia=(iu=(is=a(pR,[[ir,4,"checked"],[ii,1,"value"]],[it],r2)).e)[0],io=iu[1],il=(ic=is.c)[0],(0,ic[1])();var pP=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)},f(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 pO(){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&&d0(e)?e:null}function pM(e,t,r){var n,i,a,o=pO();if(null===o)return!1;var l=pP.fromRect(e.getBoundingClientRect()).snapToPixels(),s=pP.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:pP.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===dh.LEFT||r===dh.RIGHT){var c=s.clone();r===dh.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===dh.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 pI(){var e=i(["<slot ",' @slotchange="','"></slot>']);return pI=function(){return e},e}ih=h4("theoplayer-radio-group"),id=pi(["deviceType"]),ip=h6({reflect:!0,type:String,attribute:dc.DEVICE_TYPE}),iy=h6({attribute:dc.VALUE});var pB=dg("____private_deviceType_1"),pN=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,pB,{writable:!0,value:void 0}),i_(t),t._slotRef=dB(),t._radioButtons=[],t._value=void 0,dm(t,pB)[pB]=iv(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=d9(r),a=[],o=dW(i);!(n=o()).done;){var l=n.value;if(!p$(l)){var s=pt(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,dJ),t._radioButtons=i.filter(p$),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&dd(e.keyCode)){pM(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case dh.UP:case dh.LEFT:t._focusPrevButton()&&e.preventDefault();break;case dh.DOWN:case dh.RIGHT:t._focusNextButton()&&e.preventDefault();break;case dh.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case dh.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}n(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=dW(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=dW(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 hD(pI(),dD(this._slotRef),this._onSlotChange)},f(t,[{key:"deviceType",get:function(){return dm(this,pB)[pB]},set:function(e){dm(this,pB)[pB]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(pC("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=d5(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=d5(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}(h5);function p$(e){return w(e,il)}function pD(){var e=i([":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 pD=function(){return e},e}iv=(ig=(ib=a(pN,[[ip,1,"deviceType"],[iy,4,"value"]],[ih,id],h5)).e)[0],i_=ig[1],im=(ik=ib.c)[0],(0,ik[1])();var pq=ht(pD()),pF="theoplayermenuclose",pU="theoplayermenuchange";function pj(){var e=i(["",""]);return pj=function(){return e},e}function pz(){var e=i(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return pz=function(){return e},e}function pV(){var e=i(['<slot name="heading"></slot>']);return pV=function(){return e},e}function pH(){var e=i(["<slot></slot>"]);return pH=function(){return e},e}function pG(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>"}function pQ(){var e=i([":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 pQ=function(){return e},e}ix=h4("theoplayer-menu"),iT=h6({reflect:!0,type:Boolean,attribute:dc.MENU_CLOSE_ON_INPUT}),iA=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.MENU_OPENED}),new(iw=function(e){function t(){var t;return t=e.apply(this,arguments)||this,iE(),t}return n(t,e),t}(o),eg=dg("____private_closeOnInput_1"),ek=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,eg,{writable:!0,value:void 0}),iL(r),r._menuOpened=!1,dm(r,eg)[eg]=iC(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=pL(pF,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(dc.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hD(pj(),dl(this._template)):hD(pz(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hD(pV())},r.renderMenuContent=function(){return hD(pH())},f(t,[{key:"closeOnInput",get:function(){return dm(this,eg)[eg]},set:function(e){dm(this,eg)[eg]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,d7(this,dc.HIDDEN,!e);var t=pL(pU,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(h5),iC=(em=(e_=a(ek,[[iT,1,"closeOnInput"],[iA,4,"menuOpened_"]],[ix],h5)).e)[0],iL=em[1],iS=(eb=e_.c)[0],iE=eb[1],ek.styles=[pq],ek.shadowRootOptions=t({},h5.shadowRootOptions,{delegatesFocus:!0}),iw);var pW=ht(pQ()),pK="theoplayermenutoggle";function pZ(){var e=i(["",""]);return pZ=function(){return e},e}function pY(){var e=i(['<slot @slotchange="','"></slot>']);return pY=function(){return e},e}function pJ(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function pX(e){return!!d0(e)&&(w(e,iS)||w(e,iN))}iP=h4("theoplayer-menu-group"),iM=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.MENU_OPENED}),new(iR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,iO(),t}return n(t,e),t}(o),eT=dg("____private__menuSlot_1"),eA=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,eT,{writable:!0,value:void 0}),iB(r),r._menuOpened=!1,dm(r,eT)[eT]=iI(r,null),r._menus=[],r._openMenuStack=[],r._onMenuListChange=function(){for(var e,t=[].concat(d2(r.shadowRoot.children),r._menuSlot?d9(r._menuSlot):[]),n=[],i=dW(t);!(e=i()).done;){var a=e.value;if(!pX(a)){var o=pt(a);o&&n.push(o)}}n.length>0&&Promise.all(n).then(r._onMenuListChange,dJ);for(var l,s=t.filter(pX),u=dW(r._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&r.closeMenu(c.id)}for(var h,d=dW(s);!(h=d()).done;){var p=h.value;0>r._menus.indexOf(p)&&p.closeMenu()}r._menus=s},r._onToggleMenu=function(e){var t=e.detail.menu;if(r.getMenuById(t)){e.stopPropagation();var n=d0(e.target)?e.target:void 0;r.isMenuOpen(t)?r.closeMenu(t):r.openMenu(t,n)}},r._onCloseMenu=function(e){r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._onMenuChange=function(e){var t=r.getCurrentMenu_();t&&t.menu===e.target&&w(t.menu,iN)&&!t.menu.hasCurrentMenu()&&r.closeCurrentMenu()},r._onKeyDown=function(e){!e.altKey&&dp(e.keyCode)&&r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(dc.HIDDEN,"")},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener(pK,this._onToggleMenu),t.addEventListener(pF,this._onCloseMenu),t.addEventListener(pU,this._onMenuChange),t},r.render=function(){return this._template?hD(pZ(),dl(this._template)):hD(pY(),this._onMenuListChange)},r.firstUpdated=function(){this._onMenuListChange()},r.getMenuById=function(e){return e&&e!==this.id?d5(this._menus,function(t){return t.id===e}):this},r.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=d3(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},r.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=d3(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},r.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)},r.hasCurrentMenu=function(){return this._openMenuStack.length>0},r.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},r.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},r.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},f(t,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,d7(this,dc.MENU_OPENED,e),e?(this.removeAttribute(dc.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(dc.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=pL(pU,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return dm(this,eT)[eT]},set:function(e){dm(this,eT)[eT]=e}}]),t}(h5),iI=(ex=(ew=a(eA,[[iM,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 de(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[iP],h5)).e)[0],iB=ex[1],iN=(eE=ew.c)[0],iO=eE[1],eA.styles=[pW],eA.shadowRootOptions=t({},h5.shadowRootOptions,{delegatesFocus:!0}),iR),i$=h4("theoplayer-menu-button"),iD=h6({reflect:!0,type:String,attribute:dc.MENU}),iq=h6({reflect:!0,state:!0,type:String,attribute:"aria-controls"});var p0=dg("____private__ariaControls_1"),p1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,p0,{writable:!0,value:void 0}),iU(t),t._menuId=null,dm(t,p0)[p0]=iF(t,null),t}n(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=pL(pK,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},f(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 dm(this,p0)[p0]},set:function(e){dm(this,p0)[p0]=e}}]),t}(r2);function p2(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return p2=function(){return e},e}iF=(iV=(iz=a(p1,[[iD,4,"menu"],[iq,1,"_ariaControls"]],[i$],r2)).e)[0],iU=iV[1],ij=(iH=iz.c)[0],(0,iH[1])(),iG=h4("theoplayer-menu-close-button");var p5=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=pL(pF,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hD(p2(),dH('<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}(r2);function p3(){var e=i(["<slot>","</slot>"]);return p3=function(){return e},e}iQ=(iW=a(p5,[],[iG],r2).c)[0],(0,iW[1])();var p4=["change","update"];iK=h4("theoplayer-media-track-radio-button"),iZ=h9(),iY=h6({reflect:!1,attribute:!1});var p8=dg("____private__trackLabel_1"),p7=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,p8,{writable:!0,value:void 0}),t._track=void iX(t),dm(t,p8)[p8]=iJ(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(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&&(d8(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 hD(p3(),this._trackLabel)},f(t,[{key:"_trackLabel",get:function(){return dm(this,p8)[p8]},set:function(e){dm(this,p8)[p8]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(p4,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(p4,this._onTrackChange))}}]),t}(il);function p6(){var e=i([":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 p6=function(){return e},e}iJ=(i2=(i1=a(p7,[[iZ,1,"_trackLabel"],[iY,4,"track"]],[iK],il)).e)[0],iX=i2[1],i0=(i5=i1.c)[0],(0,i5[1])();var p9=ht(p6());function ye(e){return"subtitles"===e.kind||"captions"===e.kind}function yt(e){return ye(e)&&!e.forced}function yr(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function yn(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 yi=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},ya=di(function(e){function t(e){var r;if(p(this,t),r=d(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return n(t,e),f(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=m(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,_=l.length-1,b=0,g=u.length-1;v<=_&&b<=g;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[b])f[b]=dT(l[v],u[b]),v++,b++;else if(y[_]===c[g])f[g]=dT(l[_],u[g]),_--,g--;else if(y[v]===c[g])f[g]=dT(l[v],u[g]),dE(e,f[g+1],l[v]),v++,g--;else if(y[_]===c[b])f[b]=dT(l[_],u[b]),dE(e,l[v],l[_]),_--,b++;else if(void 0===d&&(d=yi(c,b,g),p=yi(y,v,_)),d.has(y[v]))if(d.has(y[_])){var k=p.get(c[b]),w=void 0!==k?l[k]:null;if(null===w){var x=dE(e,l[v]);dT(x,u[b]),f[b]=x}else f[b]=dT(w,u[b]),dE(e,l[v],w),l[k]=null;b++}else dC(l[_]),_--;else dC(l[v]),v++;for(;b<=g;){var E=dE(e,f[g+1]);dT(E,u[b]),f[b++]=E}for(;v<=_;){var T=l[v++];null!==T&&dC(T)}return this.ut=c,void 0===(r=f)&&(r=dA),e._$AH=r,hq}}]),t}(da));function yo(){var e=i(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return yo=function(){return e},e}function yl(){var e=i(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return yl=function(){return e},e}function ys(){var e=i(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return ys=function(){return e},e}function yu(){var e=i(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return yu=function(){return e},e}var yc=["addtrack","removetrack"];function yh(){var e=i(["<slot>","</slot>"]);return yh=function(){return e},e}i4=h4("theoplayer-track-radio-group"),i8=pi(["player"]),i6=h9(),i9=h6({reflect:!0,type:String,attribute:dc.TRACK_TYPE}),ae=h6({reflect:!0,type:Boolean,attribute:dc.SHOW_OFF}),new(i3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,i7(),t}return n(t,e),t}(o),eR=dg("____private__tracksList_1"),eP=dg("____private_showOffButton_2"),eO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eR,{writable:!0,value:void 0}),Object.defineProperty(t,eP,{writable:!0,value:void 0}),an(t),t._trackType="audio",dm(t,eR)[eR]=at(t),dm(t,eP)[eP]=ar(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(pC("change",{bubbles:!0}))},t}n(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(yc,this._updateTracks),null==t||t.addEventListener(yc,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(yt):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hD(yu(),this._onChange,this.showOffButton&&t?hD(yo(),this._tracksList):void 0,ya(e,function(e){return e.uid},function(e){return t?hD(yl(),e):hD(ys(),e)}))},f(t,[{key:"_tracksList",get:function(){return dm(this,eR)[eR]},set:function(e){dm(this,eR)[eR]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return dm(this,eP)[eP]},set:function(e){dm(this,eP)[eP]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(h5),at=(eL=(eC=a(eO,[[i6,1,"_tracksList"],[i9,4,"trackType"],[ae,1,"showOffButton"]],[i4,i8],h5)).e)[0],ar=eL[1],an=eL[2],ai=(eS=eC.c)[0],i7=eS[1],eO.styles=[p9],i3);var yd=["change","update"];aa=h4("theoplayer-text-track-radio-button"),ao=h9(),al=h6({reflect:!1,attribute:!1});var yp=dg("____private__trackLabel_1"),yy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yp,{writable:!0,value:void 0}),t._track=void au(t),dm(t,yp)[yp]=as(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(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&&(d8(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 hD(yh(),this._trackLabel)},f(t,[{key:"_trackLabel",get:function(){return dm(this,yp)[yp]},set:function(e){dm(this,yp)[yp]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yd,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yd,this._onTrackChange))}}]),t}(il);function yf(){var e=i(["<slot>Off</slot>"]);return yf=function(){return e},e}as=(ad=(ah=a(yy,[[ao,1,"_trackLabel"],[al,4,"track"]],[aa],il)).e)[0],au=ad[1],ac=(ap=ah.c)[0],(0,ap[1])();var yv=["change"];ay=h4("theoplayer-text-track-off-radio-button"),af=h6({reflect:!1,attribute:!1});var y_=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._trackList=void av(t),t._onTrackChange=function(){t._updateFromTrackList()},t}n(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return yt(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=dW(e);!(t=r()).done;){var n=t.value;ye(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hD(yf())},f(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(yv,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(yv,this._onTrackChange)}}]),t}(il);function ym(){var e=i([".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 ym=function(){return e},e}av=(am=a(y_,[[af,4,"trackList"]],[ay],il)).e[0],a_=(ab=am.c)[0],(0,ab[1])();var yb=ht(ym());function yg(){var e=i([".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 yg=function(){return e},e}var yk=ht(yg());function yw(){var e=i(["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 yw=function(){return e},e}var yx=ht(yw());function yE(e){var t,r;return e?d4(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:d4(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 yT(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function yA(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function yC(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var yL=yE("#ffffff"),yS=yE("#000000"),yR=[["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)"]],yP=[["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']],yO=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function yM(){var e=i(["<span>","</span>"]);return yM=function(){return e},e}ag=h4("theoplayer-text-track-style-display"),ak=pi(["player"]),aw=h6({reflect:!0,type:String,attribute:dc.PROPERTY}),ax=h6({reflect:!1,attribute:!1});var yI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aE(t),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}n(t,e);var r=t.prototype;return r.render=function(){return hD(yM(),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=d5(yP,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=yE(e);if(t){var r=yA(t),n=d5(yR,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return yB(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return yB(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return yB(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=d5(yO,function(e){return e[0],e[1]===n});return i?i[0]:"Custom";default:return this._player.textTrackStyle[e]||"Default"}},f(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}(h5);function yB(e){if(!e)return"Default";var t=yE(e);return t?""+100*t.a_+"%":"Custom"}function yN(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yN=function(){return e},e}function y$(e,t,r){var n,i,a,o=null!=(i=null==(n=yE(t))?void 0:n.a_)?i:1;if(""!==e||1!==o)return yT(yC(null!=(a=yE(e))?a:r,o))}function yD(e,t,r){var n,i=null!=(n=yE(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return yT(yC(i,""==e?1:Number(e)/100))}function yq(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yq=function(){return e},e}function yF(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yF=function(){return e},e}function yU(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yU=function(){return e},e}function yj(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yj=function(){return e},e}function yz(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yz=function(){return e},e}function yV(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yV=function(){return e},e}function yH(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yH=function(){return e},e}function yG(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yG=function(){return e},e}function yQ(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yQ=function(){return e},e}function yW(){var e=i(['<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 yW=function(){return e},e}aE=(aA=a(yI,[[aw,4,"property"],[ax,4,"player"]],[ag,ak],h5)).e[0],aT=(aC=aA.c)[0],(0,aC[1])(),aS=h4("theoplayer-text-track-style-radio-group"),aR=pi(["player"]),aO=h6({reflect:!0,type:String,attribute:dc.PROPERTY}),aM=h6({reflect:!1,attribute:!1}),aI=h6({reflect:!1,attribute:!1}),new(aL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aP(),t}return n(t,e),t}(o),eB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aB(t),t._radioGroupRef=dB(),t._property="fontColor",t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=e.value)},t._updateFromPlayer=function(){if(void 0!==t._player)switch(t.property){case"fontColor":var e,r,n=t._player.textTrackStyle.fontColor;t.value=n?yA(null!=(r=yE(n))?r:yL):"";break;case"backgroundColor":var i,a=t._player.textTrackStyle.backgroundColor;t.value=a?yA(null!=(i=yE(a))?i:yS):"";break;case"windowColor":var o,l=t._player.textTrackStyle.windowColor;t.value=l?yA(null!=(o=yE(l))?o:yS):"";break;case"fontOpacity":var s,u,c=t._player.textTrackStyle.fontColor;t.value=c?String((null!=(u=null==(s=yE(c))?void 0:s.a_)?u:1)*100):"";break;case"backgroundOpacity":var h,d,p=t._player.textTrackStyle.backgroundColor;t.value=p?String((null!=(d=null==(h=yE(p))?void 0:h.a_)?d:1)*100):"";break;case"windowOpacity":var y,f,v=t._player.textTrackStyle.windowColor;t.value=v?String((null!=(f=null==(y=yE(v))?void 0:y.a_)?f:1)*100):"";break;default:t.value=null!=(e=t._player.textTrackStyle[t.property])?e:""}},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;w(e,im)||customElements.upgrade(e),e.value=this.value},r._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=y$(this.value,this._player.textTrackStyle.fontColor,yL);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=y$(this.value,this._player.textTrackStyle.backgroundColor,yS);break;case"windowColor":this._player.textTrackStyle.windowColor=y$(this.value,this._player.textTrackStyle.windowColor,yS);break;case"fontOpacity":this._player.textTrackStyle.fontColor=yD(this.value,this._player.textTrackStyle.fontColor,yL);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=yD(this.value,this._player.textTrackStyle.backgroundColor,yS);break;case"windowOpacity":this._player.textTrackStyle.windowColor=yD(this.value,this._player.textTrackStyle.windowColor,yS);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},r.render=function(){return hD(yN(),dD(this._radioGroupRef),this._onChange)},f(t,[{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(pC("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))}}]),t}(h5),aB=(eM=a(eB,[[aO,4,"property"],[aM,4,"value"],[aI,4,"player"]],[aS,aR],h5)).e[0],aN=(eI=eM.c)[0],aP=eI[1],eB.styles=[p9],aL);var yK=[{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)"}],yZ=[{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'}],yY=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],yJ=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],yX=[{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 y0(){var e=i(['<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 y0=function(){return e},e}aD=h4("theoplayer-text-track-style-menu"),new(a$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aq(),t}return n(t,e),t}(o),e$=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hD(yW(),yZ.map(function(e){var t=e.label,r=e.value;return hD(yq(),r,t)}),yK.map(function(e){var t=e.label,r=e.value;return hD(yF(),r,t)}),yJ.map(function(e){var t=e.label,r=e.value;return hD(yU(),r,t)}),yY.map(function(e){var t=e.label,r=e.value;return hD(yj(),r,t)}),yK.map(function(e){var t=e.label,r=e.value;return hD(yz(),r,t)}),yJ.map(function(e){var t=e.label,r=e.value;return hD(yV(),r,t)}),yK.map(function(e){var t=e.label,r=e.value;return hD(yH(),r,t)}),yJ.map(function(e){var t=e.label,r=e.value;return hD(yG(),r,t)}),yX.map(function(e){var t=e.label,r=e.value;return hD(yQ(),r,t)}))},t}(aF=iN),aU=(eN=a(e$,[],[aD],aF).c)[0],aq=eN[1],e$.styles=[].concat(iN.styles,[yx,yk]),a$);var y1=["addtrack","removetrack"];function y2(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return y2=function(){return e},e}az=h4("theoplayer-language-menu"),aV=pi(["player"]),aQ=h6({state:!0}),aW=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.HAS_AUDIO}),aK=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.HAS_SUBTITLES}),new(aj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,aH(),t}return n(t,e),t}(o),eU=dg("____private__hasAudioTracks_1"),ej=dg("____private__hasSubtitles_2"),ez=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eU,{writable:!0,value:void 0}),Object.defineProperty(t,ej,{writable:!0,value:void 0}),dm(t,eU)[eU]=(aJ(t),aZ(t,!1)),dm(t,ej)[ej]=aY(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(yt))?r:[];t._hasSubtitles=n.length>0},t}return n(t,e),t.prototype.render=function(){return hD(y0())},f(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(y1,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(y1,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(y1,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(y1,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return dm(this,eU)[eU]},set:function(e){dm(this,eU)[eU]=e}},{key:"_hasSubtitles",get:function(){return dm(this,ej)[ej]},set:function(e){dm(this,ej)[ej]=e}}]),t}(aG=iN),aZ=(eq=(eD=a(ez,[[aQ,4,"player"],[aW,1,"_hasAudioTracks"],[aK,1,"_hasSubtitles"]],[az,aV],aG)).e)[0],aY=eq[1],aJ=eq[2],aX=(eF=eD.c)[0],aH=eF[1],ez.styles=[].concat(iN.styles,[yb]),aj);var y5=["addtrack","removetrack"];a0=h4("theoplayer-language-menu-button"),a1=pi(["player"]),a2=h6({reflect:!1,attribute:!1});var y3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,a5(t),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(yt));d7(t,dc.HIDDEN,!e)},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.ARIA_LABEL,"open language menu")},r.render=function(){return hD(y2(),dH('<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'))},f(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(y5,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(y5,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(y5,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(y5,this._updateTracks))}}]),t}(ij);function y4(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return y4=function(){return e},e}function y8(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return y8=function(){return e},e}a5=(a4=a(y3,[[a2,4,"player"]],[a0,a1],ij)).e[0],a3=(a8=a4.c)[0],(0,a8[1])(),a6=h4("theoplayer-playback-rate-radio-group"),a9=pi(["player"]),ot=h9(),or=h9(),new(a7=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oe(),t}return n(t,e),t}(o),eG=function(e){function t(){var t;return t=e.apply(this,arguments)||this,on(t),t._radioGroupRef=dB(),t._value=1,t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=Number(e.value))},t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.playbackRate)},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;w(e,im)||customElements.upgrade(e),e.value=String(this.value)},r.render=function(){return hD(y4(),dD(this._radioGroupRef),this._onChange)},f(t,[{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(pC("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))}}]),t}(h5),on=(eV=a(eG,[[ot,4,"value"],[or,4,"player"]],[a6,a9],h5)).e[0],oi=(eH=eV.c)[0],oe=eH[1],eG.styles=[p9],a7),oa=h4("theoplayer-playback-rate-menu-button");var y7=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hD(y8(),dH('<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}(ij);function y6(){var e=i(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return y6=function(){return e},e}function y9(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return y9=function(){return e},e}function fe(){var e=i(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return fe=function(){return e},e}oo=(ol=a(y7,[],[oa],ij).c)[0],(0,ol[1])();var ft=[.25,.5,1,1.25,1.5,2];os=h4("theoplayer-playback-rate-menu");var fr=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hD(y6())},r.renderMenuContent=function(){return hD(fe(),ft.map(function(e){return hD(y9(),e,1===e?"Normal":""+e+"x")}))},t}(iS);function fn(){var e=i(["<span>","</span>"]);return fn=function(){return e},e}ou=(oc=a(fr,[],[os],iS).c)[0],(0,oc[1])(),oh=h4("theoplayer-playback-rate-display"),od=pi(["playbackRate"]),op=h9();var fi=dg("____private_playbackRate_1"),fa=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fi,{writable:!0,value:void 0}),dm(t,fi)[fi]=(of(t),oy(t,1)),t}return n(t,e),t.prototype.render=function(){return hD(fn(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},f(t,[{key:"playbackRate",get:function(){return dm(this,fi)[fi]},set:function(e){dm(this,fi)[fi]=e}}]),t}(h5);function fo(){var e=i(["<span>","</span>"]);return fo=function(){return e},e}oy=(om=(o_=a(fa,[[op,1,"playbackRate"]],[oh,od],h5)).e)[0],of=om[1],ov=(ob=o_.c)[0],(0,ob[1])(),og=h4("theoplayer-active-quality-display"),ok=pi(["activeVideoQuality","targetVideoQualities"]),ow=h6({reflect:!1,attribute:!1}),ox=h6({reflect:!1,attribute:!1});var fl=dg("____private_activeVideoQuality_1"),fs=dg("____private_targetVideoQualities_2"),fu=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fl,{writable:!0,value:void 0}),Object.defineProperty(t,fs,{writable:!0,value:void 0}),dm(t,fl)[fl]=(oA(t),oE(t,void 0)),dm(t,fs)[fs]=oT(t,void 0),t}return n(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=yn(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hD(fo(),e)},f(t,[{key:"activeVideoQuality",get:function(){return dm(this,fl)[fl]},set:function(e){dm(this,fl)[fl]=e}},{key:"targetVideoQualities",get:function(){return dm(this,fs)[fs]},set:function(e){dm(this,fs)[fs]=e}}]),t}(h5);function fc(){var e=i(["<slot>","</slot>"]);return fc=function(){return e},e}oE=(oS=(oL=a(fu,[[ow,1,"activeVideoQuality"],[ox,1,"targetVideoQualities"]],[og,ok],h5)).e)[0],oT=oS[1],oA=oS[2],oC=(oR=oL.c)[0],(0,oR[1])();var fh=["activequalitychanged","targetqualitychanged"],fd=["update"];oP=h4("theoplayer-quality-radio-button"),oO=h9(),oM=h6({reflect:!1,attribute:!1}),oI=h6({reflect:!1,attribute:!1});var fp=dg("____private__qualityLabel_1"),fy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fp,{writable:!0,value:void 0}),t._track=void oN(t),t._quality=void 0,dm(t,fp)[fp]=oB(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=yn(t._quality))?e:"Automatic"},t}n(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 hD(fc(),this._qualityLabel)},f(t,[{key:"_qualityLabel",get:function(){return dm(this,fp)[fp]},set:function(e){dm(this,fp)[fp]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(fh,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(fh,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(fd,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(fd,this._updateFromQuality))}}]),t}(il);function ff(){var e=i(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return ff=function(){return e},e}function fv(){var e=i(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return fv=function(){return e},e}oB=(oq=(oD=a(fy,[[oO,1,"_qualityLabel"],[oM,4,"track"],[oI,4,"quality"]],[oP],il)).e)[0],oN=oq[1],o$=(oF=oD.c)[0],(0,oF[1])();var f_=["addtrack","removetrack","change"];function fm(){var e=i(["<slot>Reset</slot>"]);return fm=function(){return e},e}oj=h4("theoplayer-quality-radio-group"),oz=pi(["player"]),oH=h9(),oG=h9(),new(oU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,oV(),t}return n(t,e),t}(o),eZ=dg("____private__track_1"),eY=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eZ,{writable:!0,value:void 0}),dm(t,eZ)[eZ]=(oW(t),oQ(t)),t._onChange=function(){t.dispatchEvent(pC("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?d5(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}n(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 hD(fv(),this._onChange,this._track,void 0,1!==t.length&&ya(t,function(e){return e.uid},function(t){return hD(ff(),e._track,t)}))},f(t,[{key:"_track",get:function(){return dm(this,eZ)[eZ]},set:function(e){dm(this,eZ)[eZ]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(f_,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(f_,this._updateTrack))}}]),t}(h5),oQ=(eW=(eQ=a(eY,[[oH,1,"_track"],[oG,4,"player"]],[oj,oz],h5)).e)[0],oW=eW[1],oK=(eK=eQ.c)[0],oV=eK[1],eY.styles=[p9],oU),oZ=h4("theoplayer-text-track-style-reset-button"),oY=pi(["player"]);var fb=function(e){function t(){return e.apply(this,arguments)||this}n(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 hD(fm())},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(r2);function fg(){var e=i(['<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 fg=function(){return e},e}oJ=(oX=a(fb,[],[oZ,oY],r2).c)[0],(0,oX[1])(),o1=h4("theoplayer-settings-menu"),new(o0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,o2(),t}return n(t,e),t}(o),eX=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hD(fg())},t}(o5=iN),o3=(eJ=a(eX,[],[o1],o5).c)[0],o2=eJ[1],eX.styles=[].concat(iN.styles,[yx]),o0);var fk='<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 fw(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return fw=function(){return e},e}o4=h4("theoplayer-settings-menu-button");var fx=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.ARIA_LABEL,"open settings menu")},r.render=function(){return hD(fw(),dH(fk))},t}(ij);function fE(){var e=i([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return fE=function(){return e},e}o8=(o7=a(fx,[],[o4],ij).c)[0],(0,o7[1])();var fT=ht(fE()),fA="theoplayerfullscreenenter",fC="theoplayerfullscreenexit";function fL(){var e=i(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return fL=function(){return e},e}function fS(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=m(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 fR(){var e=i([":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 fR=function(){return e},e}o9=h4("theoplayer-fullscreen-button"),le=pi(["fullscreen"]),lr=h6({reflect:!0,type:Boolean,attribute:dc.FULLSCREEN}),new(o6=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lt(),t}return n(t,e),t}(o),e5=dg("____private_fullscreen_1"),e3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e5,{writable:!0,value:void 0}),dm(t,e5)[e5]=(li(t),ln(t,!1)),t}n(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=pL(fC,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=pL(fA,{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(dc.ARIA_LABEL,e)},r.render=function(){return hD(fL(),dH('<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'),dH('<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'))},f(t,[{key:"fullscreen",get:function(){return dm(this,e5)[e5]},set:function(e){dm(this,e5)[e5]=e}}]),t}(r2),ln=(e1=(e0=a(e3,[[lr,1,"fullscreen"]],[o9,le],r2)).e)[0],li=e1[1],la=(e2=e0.c)[0],lt=e2[1],e3.styles=[].concat(r2.styles,[fT]),o6);var fP=ht(fR()),fO=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=d3(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=dW(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}(),fM="important",fI=" !"+fM,fB=di(function(e){function t(e){var r,n;if(p(this,t),r=d(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 n(t,e),f(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=m(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(fI);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?fM:""):n[c]=h}}return hq}}]),t}(da));function fN(){var e=i(['<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 f$(){var e=i([""]);return f$=function(){return e},e}function fD(){var e=i(["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 fD=function(){return e},e}ll=pi(["deviceType"]),lu=h9(),lc=h6({reflect:!0,type:Boolean,attribute:dc.DISABLED}),lh=h6({reflect:!0,type:Boolean,attribute:dc.HIDDEN}),ld=h6({reflect:!0,type:Boolean,attribute:dc.INERT}),lp=h6({reflect:!1,attribute:!1}),ly=h6({reflect:!0,type:Number,attribute:"min"}),lf=h6({reflect:!0,type:Number,attribute:"max"}),lv=h6({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),l_=h6({reflect:!0,type:String,attribute:dc.DEVICE_TYPE}),lm=h6({reflect:!0,type:String,attribute:"aria-live"}),new(lo=function(e){function t(){var t;return t=e.apply(this,arguments)||this,ls(),t}return n(t,e),t}(o),e6=dg("____private__pointerWidth_1"),e9=dg("____private_step_2"),te=dg("____private_deviceType_3"),tt=dg("____private_ariaLive_4"),tr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e6,{writable:!0,value:void 0}),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}),lx(t),t._rangeRef=dB(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,dm(t,e6)[e6]=lb(t,0),dm(t,e9)[e9]=lg(t,"any"),dm(t,te)[te]=lk(t,"desktop"),dm(t,tt)[tt]=lw(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}n(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(){fS(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 fO;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&&dd(e.keyCode)&&(e.keyCode===dh.LEFT||e.keyCode===dh.RIGHT?e.stopPropagation():(e.keyCode===dh.UP||e.keyCode===dh.DOWN)&&e.preventDefault())},r.render=function(){return hD(fN(),fB({width:""+this._pointerWidth+"px"}),dD(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 hD(f$())},f(t,[{key:"_pointerWidth",get:function(){return dm(this,e6)[e6]},set:function(e){dm(this,e6)[e6]=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 dm(this,e9)[e9]},set:function(e){dm(this,e9)[e9]=e}},{key:"deviceType",get:function(){return dm(this,te)[te]},set:function(e){dm(this,te)[te]=e}},{key:"ariaLive",get:function(){return dm(this,tt)[tt]},set:function(e){dm(this,tt)[tt]=e}}]),t}(h5),lb=(e8=(e4=a(tr,[[lu,1,"_pointerWidth"],[lc,4,"disabled"],[lh,4,"hidden"],[ld,4,"inert"],[lp,4,"value"],[ly,4,"min"],[lf,4,"max"],[lv,1,"step"],[l_,1,"deviceType"],[lm,1,"ariaLive"]],[ll],h5)).e)[0],lg=e8[1],lk=e8[2],lw=e8[3],lx=e8[4],lE=(e7=e4.c)[0],ls=e7[1],tr.styles=[fP],lo);var fq=ht(fD()),fF="theoplayerpreviewtimechange";function fU(e){return"linear"===e.type}function fj(){var e=i([":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 fj=function(){return e},e}var fz=ht(fj());function fV(){var e=i(["<canvas ",' style="','"></canvas>']);return fV=function(){return e},e}var fH=["addtrack","removetrack"];function fG(e){return"metadata"===e.kind&&"thumbnails"===e.label}function fQ(){var e=i(["<span>","</span>"]);return fQ=function(){return e},e}lA=h4("theoplayer-preview-thumbnail"),lC=pi(["player","previewTime"]),lS=h9(),lR=h6({reflect:!1,attribute:!1}),lP=h9(),new(lT=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lL(),t}return n(t,e),t}(o),to=dg("____private__thumbnailVisible_1"),tl=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,to,{writable:!0,value:void 0}),lM(t),t._canvasRef=dB(),t._previewTime=NaN,dm(t,to)[to]=lO(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?d5(t._player.textTracks,fG):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}n(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=dW(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,dJ)):(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 hD(fV(),dD(this._canvasRef),fB(e))},f(t,[{key:"_thumbnailVisible",get:function(){return dm(this,to)[to]},set:function(e){dm(this,to)[to]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(fH,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(fH,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(h5),lO=(ti=(tn=a(tl,[[lS,1,"_thumbnailVisible"],[lR,4,"player"],[lP,4,"previewTime"]],[lA,lC],h5)).e)[0],lM=ti[1],lI=(ta=tn.c)[0],lL=ta[1],tl.styles=[fz],lT);var fW=["timeupdate","seeking","seeked","durationchange"];function fK(){var e=i(['<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 fK=function(){return e},e}lN=h4("theoplayer-preview-time-display"),l$=pi(["player","previewTime","streamType"]),lq=h9(),lF=h6({reflect:!0,type:Boolean,attribute:dc.REMAINING}),lU=h6({reflect:!0,type:Boolean,attribute:dc.REMAINING_WHEN_LIVE}),lj=h6({reflect:!0,type:String,attribute:dc.STREAM_TYPE}),lz=h6({reflect:!1,attribute:!1}),lV=h9(),new(lB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,lD(),t}return n(t,e),t}(o),th=dg("____private_previewTime_1"),td=dg("____private_remaining_2"),tp=dg("____private_remainingWhenLive_3"),ty=dg("____private_streamType_4"),tf=dg("____private__endTime_5"),tv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,th,{writable:!0,value:void 0}),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}),dm(t,th)[th]=(lZ(t),lH(t,NaN)),dm(t,td)[td]=lG(t,!1),dm(t,tp)[tp]=lQ(t,!1),dm(t,ty)[ty]=lW(t,"vod"),dm(t,tf)[tf]=lK(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}n(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)),hD(fQ(),pb(e,t,r))},f(t,[{key:"previewTime",get:function(){return dm(this,th)[th]},set:function(e){dm(this,th)[th]=e}},{key:"remaining",get:function(){return dm(this,td)[td]},set:function(e){dm(this,td)[td]=e}},{key:"remainingWhenLive",get:function(){return dm(this,tp)[tp]},set:function(e){dm(this,tp)[tp]=e}},{key:"streamType",get:function(){return dm(this,ty)[ty]},set:function(e){dm(this,ty)[ty]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fW,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fW,this._updateFromPlayer))}},{key:"_endTime",get:function(){return dm(this,tf)[tf]},set:function(e){dm(this,tf)[tf]=e}}]),t}(h5),lH=(tu=(ts=a(tv,[[lq,1,"previewTime"],[lF,1,"remaining"],[lU,1,"remainingWhenLive"],[lj,1,"streamType"],[lz,4,"player"],[lV,1,"_endTime"]],[lN,l$],h5)).e)[0],lG=tu[1],lQ=tu[2],lW=tu[3],lK=tu[4],lZ=tu[5],lY=(tc=ts.c)[0],lD=tc[1],tv.styles=[p_],lB);var fZ=["timeupdate","durationchange","ratechange","seeking","seeked"],fY=["play","pause","ended","durationchange","readystatechange","error"],fJ=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];lX=h4("theoplayer-time-range"),l0=pi(["player","streamType","deviceType"]),l2=h6({reflect:!1,attribute:!1}),l5=h6({reflect:!0,type:String,attribute:dc.STREAM_TYPE}),l3=h6({reflect:!0,type:Boolean,attribute:dc.SHOW_AD_MARKERS}),l4=h9(),new(lJ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,l1(),t}return n(t,e),t}(o),tg=dg("____private__previewRailTransform_1"),tk=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,tg,{writable:!0,value:void 0}),l7(t),t._previewBoxEl=dB(),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)},dm(t,tg)[tg]=l8(t,""),t._onAdChange=function(){t._updateRange()},t.min=0,t.max=1e3,t.ariaLive="off",t}n(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=pw(this.value),t=pw(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=pL(fF,{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=dW(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(fU)){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===dh.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hD(fK(),fB({transform:this._previewRailTransform}),dD(this._previewBoxEl))},f(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fZ,this._updateFromPlayer),this._player.removeEventListener(fY,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(fJ,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(fZ,this._updateFromPlayer),this._player.addEventListener(fY,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(fJ,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 dm(this,tg)[tg]},set:function(e){dm(this,tg)[tg]=e}}]),t}(lE),l8=(tm=(t_=a(tk,[[l2,4,"player"],[l5,4,"streamType"],[l3,4,"showAdMarkers"],[l4,1,"_previewRailTransform"]],[lX,l0],lE)).e)[0],l7=tm[1],l6=(tb=t_.c)[0],l1=tb[1],tk.styles=[].concat(lE.styles,[fq]),lJ),l9=h4("theoplayer-volume-range"),se=pi(["player","deviceType"]),st=h6({reflect:!1,attribute:!1});var fX=function(e){function t(){var t;return t=e.call(this)||this,sr(t),t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.volume)},t.min=0,t.max=1,t}n(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)},f(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}(lE);function f0(){var e=i([":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 f0=function(){return e},e}sr=(si=a(fX,[[st,4,"player"]],[l9,se],lE)).e[0],sn=(sa=si.c)[0],(0,sa[1])();var f1=ht(f0());function f2(){var e=i(['<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 f2=function(){return e},e}sl=h4("theoplayer-error-display"),ss=pi(["error","fullscreen"]),sc=h6({reflect:!1,attribute:!1}),sh=h6({reflect:!0,type:Boolean,attribute:dc.FULLSCREEN}),new(so=function(e){function t(){var t;return t=e.apply(this,arguments)||this,su(),t}return n(t,e),t}(o),tT=dg("____private_error_1"),tA=dg("____private_fullscreen_2"),tC=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tT,{writable:!0,value:void 0}),Object.defineProperty(t,tA,{writable:!0,value:void 0}),dm(t,tT)[tT]=(sy(t),sd(t)),dm(t,tA)[tA]=sp(t,!1),t}return n(t,e),t.prototype.render=function(){var e,t;return hD(f2(),dH('<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:"")},f(t,[{key:"error",get:function(){return dm(this,tT)[tT]},set:function(e){dm(this,tT)[tT]=e}},{key:"fullscreen",get:function(){return dm(this,tA)[tA]},set:function(e){dm(this,tA)[tA]=e}}]),t}(h5),sd=(tx=(tw=a(tC,[[sc,1,"error"],[sh,1,"fullscreen"]],[sl,ss],h5)).e)[0],sp=tx[1],sy=tx[2],sf=(tE=tw.c)[0],su=tE[1],tC.styles=[f1],tC.shadowRootOptions=t({},h5.shadowRootOptions,{delegatesFocus:!0}),so),sv=h9(),s_=h6({reflect:!0,state:!0,type:String,attribute:dc.CAST_STATE});var f5=function(e){function t(t){var r;return r=e.call(this,t)||this,sm(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}n(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()}},f(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}(r2);function f3(){var e=i(['<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 f3=function(){return e},e}function f4(){var e=i([":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 f4=function(){return e},e}sm=a(f5,[[sv,4,"castApi"],[s_,4,"castState"]],[]).e[0];var f8=ht(f4()),f7=0;function f6(){var e=i([":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 f6=function(){return e},e}sg=h4("theoplayer-chromecast-button"),sk=pi(["player"]),new(sb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sw(),t}return n(t,e),t}(o),tS=function(e){function t(){var t;return(t=e.call(this)||this)._buttonId=++f7,t}n(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(dc.ARIA_LABEL,e)},r.render=function(){var e;return e=this._buttonId,hD(f3(),e,e)},f(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}(f5),sx=(tL=a(tS,[],[sg,sk],f5).c)[0],sw=tL[1],tS.styles=[].concat(f5.styles,[f8]),sb);var f9=ht(f6());function ve(){var e=i(['<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 ve=function(){return e},e}var vt=["statechange"];function vr(){var e=i(['<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 vr=function(){return e},e}sT=h4("theoplayer-chromecast-display"),sA=pi(["player"]),sL=h9(),new(sE=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sC(),t}return n(t,e),t}(o),tM=dg("____private__receiverName_1"),tI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tM,{writable:!0,value:void 0}),dm(t,tM)[tM]=(sR(t),sS(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(dc.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(dc.HIDDEN))},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.HIDDEN)||this.setAttribute(dc.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hD(ve(),dH('<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)},f(t,[{key:"_receiverName",get:function(){return dm(this,tM)[tM]},set:function(e){dm(this,tM)[tM]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(vt,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(vt,this._updateFromPlayer))}}]),t}(h5),sS=(tP=(tR=a(tI,[[sL,1,"_receiverName"]],[sT,sA],h5)).e)[0],sR=tP[1],sP=(tO=tR.c)[0],sC=tO[1],tI.styles=[f9],sE);var vn=hD(vr());function vi(){var e=i([":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 vi=function(){return e},e}var va=ht(vi());function vo(){var e=i([":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 vo=function(){return e},e}sM=h4("theoplayer-airplay-button"),sI=pi(["player"]),new(sO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sB(),t}return n(t,e),t}(o),tN=function(e){function t(){return e.apply(this,arguments)||this}n(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(dc.ARIA_LABEL,e)},r.render=function(){return vn},f(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}(f5),sN=(tB=a(tN,[],[sM,sI],f5).c)[0],sB=tB[1],tN.styles=[].concat(f5.styles,[va]),sO);var vl=ht(vo());function vs(){var e=i(['<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 vs=function(){return e},e}var vu=hD(vs()),vc=["readystatechange","play","pause","playing","seeking","seeked"];function vh(){var e=i([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return vh=function(){return e},e}sD=h4("theoplayer-loading-indicator"),sq=pi(["player"]),sU=h6({reflect:!1,attribute:!1}),sj=h6({reflect:!0,type:Boolean,attribute:dc.LOADING}),new(s$=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sF(),t}return n(t,e),t}(o),tF=dg("____private_loading_1"),tU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tF,{writable:!0,value:void 0}),dm(t,tF)[tF]=(sV(t),sz(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return n(t,e),t.prototype.render=function(){return vu},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(vc,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(vc,this._updateFromPlayer))}},{key:"loading",get:function(){return dm(this,tF)[tF]},set:function(e){dm(this,tF)[tF]=e}}]),t}(h5),sz=(tD=(t$=a(tU,[[sU,4,"player"],[sj,1,"loading"]],[sD,sq],h5)).e)[0],sV=tD[1],sH=(tq=t$.c)[0],sF=tq[1],tU.styles=[vl],s$);var vd=ht(vh());function vp(){var e=i([""]);return vp=function(){return e},e}function vy(){var e=i(["[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 vy=function(){return e},e}sQ=h4("theoplayer-gesture-receiver"),sW=pi(["player","deviceType"]),sZ=h6({reflect:!1,attribute:!1}),sY=h6({reflect:!1,attribute:!1}),new(sG=function(e){function t(){var t;return t=e.apply(this,arguments)||this,sK(),t}return n(t,e),t}(o),tH=dg("____private_deviceType_1"),tG=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tH,{writable:!0,value:void 0}),sX(t),t._pointerType="",dm(t,tH)[tH]=sJ(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}n(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 hD(vp())},f(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 dm(this,tH)[tH]},set:function(e){dm(this,tH)[tH]=e}}]),t}(h5),sJ=(tz=(tj=a(tG,[[sZ,4,"player"],[sY,1,"deviceType"]],[sQ,sW],h5)).e)[0],sX=tz[1],s0=(tV=tj.c)[0],sK=tV[1],tG.styles=[vd],sG);var vf=ht(vy());function vv(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">LIVE</slot></span>']);return vv=function(){return e},e}var v_=["play","pause","playing","emptied"],vm=["seeking","seeked","timeupdate","durationchange","emptied"];function vb(){var e=i([":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 vb=function(){return e},e}s2=h4("theoplayer-live-button"),s5=pi(["player","streamType"]),s4=h6({reflect:!0,type:Boolean,attribute:dc.PAUSED}),s8=h6({reflect:!0,type:String,attribute:dc.STREAM_TYPE}),s7=h6({reflect:!0,type:Number,attribute:dc.LIVE_THRESHOLD,useDefault:!0}),s6=h6({reflect:!0,type:Boolean,attribute:dc.LIVE}),s9=h6({reflect:!1,attribute:!1}),new(s1=function(e){function t(){var t;return t=e.apply(this,arguments)||this,s3(),t}return n(t,e),t}(o),tZ=dg("____private_paused_1"),tY=dg("____private_streamType_2"),tJ=dg("____private_live_3"),tX=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tZ,{writable:!0,value:void 0}),Object.defineProperty(t,tY,{writable:!0,value:void 0}),Object.defineProperty(t,tJ,{writable:!0,value:void 0}),un(t),t._liveThreshold=10,dm(t,tZ)[tZ]=ue(t,!1),dm(t,tY)[tY]=ut(t,"vod"),dm(t,tJ)[tJ]=ur(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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.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 hD(vv(),dH('<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'))},f(t,[{key:"paused",get:function(){return dm(this,tZ)[tZ]},set:function(e){dm(this,tZ)[tZ]=e}},{key:"streamType",get:function(){return dm(this,tY)[tY]},set:function(e){dm(this,tY)[tY]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return dm(this,tJ)[tJ]},set:function(e){dm(this,tJ)[tJ]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(v_,this._updatePaused),this._player.removeEventListener(vm,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(v_,this._updatePaused),this._player.addEventListener(vm,this._updateLive)))}}]),t}(r2),ue=(tW=(tQ=a(tX,[[s4,1,"paused"],[s8,1,"streamType"],[s7,4,"liveThreshold"],[s6,1,"live"],[s9,4,"player"]],[s2,s5],r2)).e)[0],ut=tW[1],ur=tW[2],un=tW[3],ui=(tK=tQ.c)[0],s3=tK[1],tX.styles=[].concat(r2.styles,[vf]),s1);var vg=ht(vb());function vk(){var e=i(["<span>","</span>"]);return vk=function(){return e},e}var vw=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function vx(){var e=i([":host{pointer-events:none}"]);return vx=function(){return e},e}uo=h4("theoplayer-ad-display"),ul=pi(["player"]),uu=h9(),uc=h6({reflect:!1,attribute:!1}),new(ua=function(e){function t(){var t;return t=e.apply(this,arguments)||this,us(),t}return n(t,e),t}(o),t5=dg("____private__text_1"),t3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,t5,{writable:!0,value:void 0}),dm(t,t5)[t5]=(ud(t),uh(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(fU);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=d5(t._player.ads.currentAds||[],fU);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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){return hD(vk(),this._text)},f(t,[{key:"_text",get:function(){return dm(this,t5)[t5]},set:function(e){dm(this,t5)[t5]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(vw,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vw,this._updateFromPlayer))}}]),t}(h5),uh=(t1=(t0=a(t3,[[uu,1,"_text"],[uc,4,"player"]],[uo,ul],h5)).e)[0],ud=t1[1],up=(t2=t0.c)[0],us=t2[1],t3.styles=[p_,vg],ua);var vE=ht(vx());function vT(){var e=i(["<span>Content will resume in ","s</span>"]);return vT=function(){return e},e}var vA=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function vC(){var e=i(["<slot>Visit Advertiser</slot>"]);return vC=function(){return e},e}uf=h4("theoplayer-ad-countdown"),uv=pi(["player"]),um=h9(),ub=h6({reflect:!1,attribute:!1}),new(uy=function(e){function t(){var t;return t=e.apply(this,arguments)||this,u_(),t}return n(t,e),t}(o),t6=dg("____private__maxRemainingDuration_1"),t9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,t6,{writable:!0,value:void 0}),dm(t,t6)[t6]=(uk(t),ug(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 n(t,e),t.prototype.render=function(){return hD(vT(),this._maxRemainingDuration)},f(t,[{key:"_maxRemainingDuration",get:function(){return dm(this,t6)[t6]},set:function(e){dm(this,t6)[t6]=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(vA,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vA,this._onAdChange))}}]),t}(h5),ug=(t8=(t4=a(t9,[[um,1,"_maxRemainingDuration"],[ub,4,"player"]],[uf,uv],h5)).e)[0],uk=t8[1],uw=(t7=t4.c)[0],u_=t7[1],t9.styles=[p_,vE],uy);var vL=["adbegin","adend","adloaded","updatead","adskip"];ux=h4("theoplayer-ad-clickthrough-button"),uE=pi(["player"]),uT=h6({reflect:!0,type:String,attribute:dc.CLICKTHROUGH}),uA=h6({reflect:!1,attribute:!1});var vS=function(e){function t(){var t;return t=e.call(this)||this,uC(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=d5(null!=(r=n.currentAds)?r:[],fU);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}n(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 hD(vC())},f(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(vL,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vL,this._updateFromPlayer))}}]),t}(nr);function vR(){var e=i([":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 vR=function(){return e},e}uC=(uS=a(vS,[[uT,4,"clickThrough"],[uA,4,"player"]],[ux,uE],nr)).e[0],uL=(uR=uS.c)[0],(0,uR[1])();var vP=ht(vR());function vO(){var e=i(['<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 vO=function(){return e},e}var vM=["adbegin","adend","adloaded","updatead","adskip"];uO=h4("theoplayer-ad-skip-button"),uM=pi(["player"]),uB=h9(),uN=h9(),u$=h6({reflect:!1,attribute:!1}),new(uP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,uI(),t}return n(t,e),t}(o),rn=dg("____private__showCountdown_1"),ri=dg("____private__timeToSkip_2"),ra=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rn,{writable:!0,value:void 0}),Object.defineProperty(t,ri,{writable:!0,value:void 0}),dm(t,rn)[rn]=(uF(t),uD(t,!1)),dm(t,ri)[ri]=uq(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=d5(null!=(r=n.currentAds)?r:[],fU);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(dc.DISABLED,""),t.setAttribute(dc.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(dc.DISABLED),t.setAttribute(dc.ARIA_LIVE,"polite"))},t}n(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 hD(vO(),fB(e),this._timeToSkip,fB(t),dH('<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'))},f(t,[{key:"_showCountdown",get:function(){return dm(this,rn)[rn]},set:function(e){dm(this,rn)[rn]=e}},{key:"_timeToSkip",get:function(){return dm(this,ri)[ri]},set:function(e){dm(this,ri)[ri]=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(vM,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vM,this._onAdChange))}}]),t}(r2),uD=(rt=(re=a(ra,[[uB,1,"_showCountdown"],[uN,1,"_timeToSkip"],[u$,4,"player"]],[uO,uM],r2)).e)[0],uq=rt[1],uF=rt[2],uU=(rr=re.c)[0],uI=rr[1],ra.styles=[].concat(r2.styles,[vP]),uP);var vI=((ro={}).TopControlBar="top-control-bar",ro.BottomControlBar="bottom-control-bar",ro.Menu="menu",ro),vB=[];function vN(e){vB.push(e)}function v$(){var e=i([':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 v$=function(){return e},e}var vD=ht(v$()),vq=function(){if("undefined"!=typeof document)for(var e,t=dW([["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 vF(){if(("undefined"==typeof navigator?"undefined":h(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 vU(){if(("undefined"==typeof navigator?"undefined":h(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 vj="theoplayeruseridlechange",vz="theoplayerready";function vV(){var e=i(["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 vV=function(){return e},e}var vH=ht(vV()),vG="theoplayer-ui-global-styles",vQ=!1;function vW(){var e=i(['<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 vW=function(){return e},e}var vK="theoplayer-ui-full-window";function vZ(e){for(var t,r,n=d9(e).filter(d0),i=dW(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=pP.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function vY(){var e=i([':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 vY=function(){return e},e}uz=h4("theoplayer-ui"),uH=h6({reflect:!1,attribute:dc.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),uG=h6({reflect:!1,attribute:dc.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),uQ=h6({reflect:!0,type:Boolean,attribute:dc.FLUID}),uW=h6({reflect:!0,type:Boolean,attribute:dc.MUTED}),uK=h6({reflect:!0,type:Boolean,attribute:dc.AUTOPLAY}),uZ=h6({reflect:!0,type:Boolean,attribute:dc.FULLSCREEN}),uY=h6({reflect:!0,type:Boolean,attribute:dc.PAUSED}),uJ=h6({reflect:!0,type:Boolean,attribute:dc.ENDED}),uX=h6({reflect:!0,type:Boolean,attribute:dc.CASTING}),u0=h6({reflect:!0,type:Boolean,attribute:dc.USER_IDLE}),u1=h6({reflect:!0,type:Number,attribute:dc.USER_IDLE_TIMEOUT,useDefault:!0}),u2=h6({reflect:!0,type:String,attribute:dc.DEVICE_TYPE}),u5=h6({reflect:!0,type:String,attribute:dc.STREAM_TYPE}),u3=h6({reflect:!0,type:Number,attribute:dc.DVR_THRESHOLD,useDefault:!0}),u4=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.HAS_FIRST_PLAY}),u8=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.PLAYING_AD}),u7=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.HAS_ERROR}),u6=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.FULLWINDOW}),u9=h6({reflect:!0,state:!0,type:Boolean,attribute:dc.MENU_OPENED}),new(uj=function(e){function t(){var t;return t=e.apply(this,arguments)||this,uV(),t}return n(t,e),t}(o),rc=dg("____private__hasFirstPlay_1"),rh=dg("____private__isPlayingAd_2"),rd=dg("____private__hasError_3"),rp=dg("____private__isFullWindow_4"),ry=function(r){function i(e){var n;return void 0===e&&(e={}),Object.defineProperty(n=r.call(this)||this,rc,{writable:!0,value:void 0}),Object.defineProperty(n,rh,{writable:!0,value:void 0}),Object.defineProperty(n,rd,{writable:!0,value:void 0}),Object.defineProperty(n,rp,{writable:!0,value:void 0}),ci(n),n._configuration={},n._playerRef=dB(),n._menuRef=dB(),n._menuGroupRef=dB(),n._menuOpened=!1,n._topChromeRef=dB(),n._topChromeSlotRef=dB(),n._bottomChromeRef=dB(),n._bottomChromeSlotRef=dB(),n._pointerType="",n._lastPointerUpTime=0,n._stateReceivers=[],n._player=void 0,n._source=void 0,n._muted=!1,n._autoplay=!1,n._fullscreen=!1,n._deviceType="desktop",n._streamType="vod",n._fluid=!1,n._userIdle=!1,n._userIdleTimeout=void 0,n._isUserActive=!1,n._userIdleTimer=0,n._paused=!1,n._ended=!1,n._casting=!1,n._dvrThreshold=60,n._previewTime=NaN,n._activeVideoTrack=void 0,dm(n,rc)[rc]=ce(n,!1),dm(n,rh)[rh]=ct(n,!1),dm(n,rd)[rd]=cr(n,!1),dm(n,rp)[rp]=cn(n,!1),n._onMutation=function(e){var t=n._playerRef.value;if(t)for(var r,i=dW(e);!(r=i()).done;){var a=r.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)&&po(u,t,n.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];dX(h)&&po(h,t,n.unregisterStateReceiver_)}}}},n._onSlotChange=function(){n._playerRef.value&&po(n,n._playerRef.value,n.registerStateReceiver_),n._updateTextTrackMargins()},n.registerStateReceiver_=function(e){n._stateReceivers.indexOf(e)>=0||(n._stateReceivers.push(e),n.propagateStateToReceiver_(e))},n.unregisterStateReceiver_=function(e){var t,r,i,a;t=n._stateReceivers,!((r=t.indexOf(e))<0)&&(i=t,a=r,i.splice(a,1),1)&&n.removeStateFromReceiver_(e)},n._onToggleMenu=function(e){e.stopPropagation();var t=e.detail.menu,r=n._menuGroupRef.value;if(r){if(!r.getMenuById(t))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+t+'"');var i=d0(e.target)?e.target:void 0;r.isMenuOpen(t)?n.closeMenu_():(n.closeMenu_(),n.openMenu_(t,i))}},n._onCloseMenu=function(e){e.stopPropagation(),n.closeMenu_()},n._onMenuChange=function(){var e=n._menuRef.value;e.removeEventListener("pointerdown",n._onMenuPointerDown),e.removeEventListener("click",n._onMenuClick),n._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",n._onMenuPointerDown),e.addEventListener("click",n._onMenuClick),n.menuOpened_=!0):n.menuOpened_=!1,n.updateUserIdle_()},n._onMenuPointerDown=function(e){n._pointerType=e.pointerType},n._onMenuClick=function(e){var t,r=null!=(t=e.pointerType)?t:n._pointerType;e.target===n._menuRef.value&&"mouse"===r&&n._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},n._onEnterFullscreen=function(e){if(e.stopPropagation(),vq&&document[vq.fullscreenEnabled_]&&n[vq.requestFullscreen_]){var r,i,a=n[vq.requestFullscreen_](t({navigationUI:"hide"},null==(i=n._configuration)||null==(r=i.ui)?void 0:r.fullscreenOptions));a&&a.then&&a.then(dJ,dJ)}else n._player&&n._player.presentation.supportsMode("fullscreen")?n._player.presentation.requestMode("fullscreen"):n._isFullWindow||(n._isFullWindow=!0,document.documentElement.classList.add(vK),window.addEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onExitFullscreen=function(e){if(e.stopPropagation(),vq){var t=document[vq.exitFullscreen_]();t&&t.then&&t.then(dJ,dJ)}n._player&&"fullscreen"===n._player.presentation.currentMode&&n._player.presentation.requestMode("inline"),n._isFullWindow&&(n._isFullWindow=!1,document.documentElement.classList.remove(vK),window.removeEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onFullscreenChange=function(){var e=!1;if(void 0!==vq){var t=document[vq.fullscreenElement_];t&&(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)}(t,n))}e||void 0===n._player||"fullscreen"!==n._player.presentation.currentMode||(e=!0),n._isFullWindow&&(e=!0),n.fullscreen=e},n._exitFullscreenOnEsc=function(e){e.keyCode==dh.ESCAPE&&n._onExitFullscreen(e)},n._updateAspectRatio=function(){if(void 0!==n._player){var e=n._player,t=e.videoWidth,r=e.videoHeight;t>0&&r>0?fS(n,{"--theoplayer-video-width":""+t,"--theoplayer-video-height":""+r}):fS(n,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},n._updateError=function(){var e=null==(t=n._player)?void 0:t.errorObject;n._hasError=void 0!==e;for(var t,r,i=dW(n._stateReceivers);!(r=i()).done;){var a=r.value;a[pr].indexOf("error")>=0&&(a.error=e)}},n._onPlay=function(){n._hasFirstPlay=!0,n.paused=!1,n._updateEnded()},n._onPause=function(){n.paused=!0,n._updateEnded()},n._updatePausedAndEnded=function(){n.paused=!n._player||n._player.paused,n._updateEnded()},n._updateEnded=function(){n.ended=!!n._player&&n._player.ended},n._updateStreamType=function(){void 0!==n._player&&(n.streamType=n.computeStreamType_())},n._updatePlaybackRate=function(){if(void 0!==n._player)for(var e,t=n._player.playbackRate,r=dW(n._stateReceivers);!(e=r()).done;){var i=e.value;i[pr].indexOf("playbackRate")>=0&&(i.playbackRate=t)}},n._updateMuted=function(){void 0!==n._player&&(n.muted=n._player.muted)},n._updateActiveVideoTrack=function(){if(void 0!==n._player){var e,t,r,i,a=d5(n._player.videoTracks,function(e){return e.enabled});n._activeVideoTrack!==a&&(null==(e=n._activeVideoTrack)||e.removeEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(t=n._activeVideoTrack)||t.removeEventListener("targetqualitychanged",n._updateTargetVideoQualities),n._activeVideoTrack=a,n._updateActiveVideoQuality(),n._updateTargetVideoQualities(),null==(r=n._activeVideoTrack)||r.addEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(i=n._activeVideoTrack)||i.addEventListener("targetqualitychanged",n._updateTargetVideoQualities))}},n._updateActiveVideoQuality=function(){for(var e,t,r=null==(e=n._activeVideoTrack)?void 0:e.activeQuality,i=dW(n._stateReceivers);!(t=i()).done;){var a=t.value;a[pr].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=r)}},n._updateTargetVideoQualities=function(){for(var e,t=yr(n._activeVideoTrack),r=dW(n._stateReceivers);!(e=r()).done;){var i=e.value;i[pr].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=t)}},n._updateCasting=function(){var e,t,r;n.casting=null!=(r=null==(t=n._player)||null==(e=t.cast)?void 0:e.casting)&&r},n._updatePlayingAd=function(){var e,t,r;n._isPlayingAd=null!=(r=null==(t=n._player)||null==(e=t.ads)?void 0:e.playing)&&r},n._onSourceChange=function(){n.closeMenu_(),n._hasFirstPlay=void 0!==n._player&&!n._player.paused},n.setUserIdle_=function(){if(clearTimeout(n._userIdleTimer),n._userIdleTimer=0,!(n.userIdleTimeout<0)&&(n._isUserActive=!1,n.updateUserIdle_(),"tv"==n.deviceType&&n.isUserIdle_())){var e=pO();null!==e&&e.blur()}},n.scheduleUserIdle_=function(){if(n.setUserActive_(),clearTimeout(n._userIdleTimer),n.userIdleTimeout<0){n._userIdleTimer=0;return}n._userIdleTimer=setTimeout(n.setUserIdle_,1e3*n.userIdleTimeout)},n._onTvKeyDown=function(e){if(dp(e.keyCode))return void n.setUserIdle_();var t=function e(t){if(d0(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(dc.TV_FOCUS))return pe(t);for(var r=d6(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(n),r=pe(n),i=pO();if(!i){var a=null!=t?t:r;a.length>0&&(a[0].focus(),i=a[0])}!n.isUserIdle_()&&(e.keyCode===dh.ENTER?null!==i&&(e.preventDefault(),i.click()):dd(e.keyCode)&&pM(n,r,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},n._onKeyUp=function(e){dp(e.keyCode)||n.scheduleUserIdle_()},n._onPointerUp=function(e){"mouse"===e.pointerType?n.scheduleUserIdle_():"touch"===e.pointerType&&(n.isPlayerOrMedia_(e.target)&&n._isUserActive?n.setUserIdle_():(n.isUserIdle_()&&(n._lastPointerUpTime=performance.now(),n.addEventListener("click",n._onClickAfterPointerUp,!0)),n.scheduleUserIdle_()))},n._onClickAfterPointerUp=function(e){n.removeEventListener("click",n._onClickAfterPointerUp,!0),performance.now()-n._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},n._onPointerMove=function(e){"mouse"===e.pointerType&&(n.setUserActive_(),n.isPlayerOrMedia_(e.target)&&n.scheduleUserIdle_())},n._onMouseLeave=function(){n.setUserIdle_()},n._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&n._updateTextTrackMargins()},n._updateTextTrackMargins=function(){var e=n._player;if(void 0!==e){var t=n._topChromeSlotRef.value&&vZ(n._topChromeSlotRef.value),r=n._bottomChromeSlotRef.value&&vZ(n._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==t?void 0:t.height,e.textTrackStyle.marginBottom=null==r?void 0:r.height}},n._onPreviewTimeChange=function(e){n._previewTime=e.detail.previewTime;for(var t,r=dW(n._stateReceivers);!(t=r()).done;){var i=t.value;i[pr].indexOf("previewTime")>=0&&(i.previewTime=n._previewTime)}},n._onDestroy=function(){n._player&&(n.removePlayerListeners_(n._player),n._player=void 0,n.propagatePlayerToAllReceivers_())},n._configuration=e,n._mutationObserver=new MutationObserver(n._onMutation),"undefined"!=typeof ResizeObserver&&(n._resizeObserver=new ResizeObserver(n._updateTextTrackMargins)),n.tryInitializePlayer_(),n}n(i,r);var a=i.prototype;return a._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},a._setSource=function(e){this._player?this._player.source=e:this._source=e},a.connectedCallback=function(){if(r.prototype.connectedCallback.call(this),!vQ){if(c7)document.adoptedStyleSheets.push(vH.styleSheet);else if(!document.getElementById(vG)){var e,t=document.createElement("style");t.id=vG;var n=window.litNonce;void 0!==n&&t.setAttribute("nonce",n),e=vH.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}vQ=!0}this.hasAttribute(dc.DEVICE_TYPE)||(this.deviceType=vF()?"mobile":vU()?"tv":"desktop"),this.hasAttribute(dc.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=dW(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!==vq&&(document.addEventListener(vq.fullscreenchange_,this._onFullscreenChange),document.addEventListener(vq.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)},a.tryInitializePlayer_=function(){void 0===this._player&&void 0!==this._playerRef.value&&(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new e(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(pL(vz)))},a.createRenderRoot=function(){var e=r.prototype.createRenderRoot.call(this);return e.addEventListener(pK,this._onToggleMenu),e.addEventListener(fA,this._onEnterFullscreen),e.addEventListener(fC,this._onExitFullscreen),e.addEventListener(fF,this._onPreviewTimeChange),e},a.firstUpdated=function(){this._menuGroupRef.value&&!w(this._menuGroupRef,iN)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&po(this,this._playerRef.value,this.registerStateReceiver_)},a.disconnectedCallback=function(){var e;r.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==vq&&(document.removeEventListener(vq.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(vq.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},a.propagateStateToReceiver_=function(e){var t,r=e[pr];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=yr(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},a.propagatePlayerToAllReceivers_=function(){for(var e,t=dW(this._stateReceivers);!(e=t()).done;){var r=e.value;r[pr].indexOf("player")>=0&&(r.player=this._player)}},a.removeStateFromReceiver_=function(e){e[pr].indexOf("player")>=0&&(e.player=void 0)},a.openMenu_=function(e,t){var r=pP.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=pP.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=pP.fromRect(this.getBoundingClientRect()),l=pP.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,fS(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"})},a.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},a.computeStreamType_=function(){var e=this.source,t=null!=(i=null==e?void 0:e.streamType)?i:this.getAttribute(dc.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"},a.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},a.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},a.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},a.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},a.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)},a.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){}},a.render=function(){return hD(vW(),dD(this._playerRef),dD(this._topChromeRef),dD(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dD(this._bottomChromeRef),dD(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dD(this._menuRef),dD(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},f(i,[{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=dW(this._stateReceivers);!(t=r()).done;){var n=t.value;n[pr].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(pL(vj)))}},{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,d7(this,dc.MOBILE,"mobile"===e),d7(this,dc.TV,"tv"===e),window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=dW(this._stateReceivers);!(t=r()).done;){var n=t.value;n[pr].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=dW(this._stateReceivers);!(t=r()).done;){var n=t.value;n[pr].indexOf("streamType")>=0&&(n.streamType=e)}var i=pL("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 dm(this,rc)[rc]},set:function(e){dm(this,rc)[rc]=e}},{key:"_isPlayingAd",get:function(){return dm(this,rh)[rh]},set:function(e){dm(this,rh)[rh]=e}},{key:"_hasError",get:function(){return dm(this,rd)[rd]},set:function(e){dm(this,rd)[rd]=e}},{key:"_isFullWindow",get:function(){return dm(this,rp)[rp]},set:function(e){dm(this,rp)[rp]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,d7(this,dc.MENU_OPENED,e))}}]),i}(h5),ce=(rs=(rl=a(ry,[[uH,4,"configuration"],[uG,4,"source"],[uQ,4,"fluid"],[uW,4,"muted"],[uK,4,"autoplay"],[uZ,4,"fullscreen"],[uY,4,"paused"],[uJ,4,"ended"],[uX,4,"casting"],[u0,4,"userIdle"],[u1,4,"userIdleTimeout"],[u2,4,"deviceType"],[u5,4,"streamType"],[u3,4,"dvrThreshold"],[u4,1,"_hasFirstPlay"],[u8,1,"_isPlayingAd"],[u7,1,"_hasError"],[u6,1,"_isFullWindow"],[u9,4,"menuOpened_"]],[uz],h5)).e)[0],ct=rs[1],cr=rs[2],cn=rs[3],ci=rs[4],ca=(ru=rl.c)[0],uV=ru[1],ry.styles=[vD],ry.shadowRootOptions=t({},h5.shadowRootOptions,{delegatesFocus:!0}),ry.READY_EVENT=vz,uj);var vJ=ht(vY());function vX(){var e=i(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return vX=function(){return e},e}function v0(){var e=i(['<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 v0=function(){return e},e}function v1(){var e=i(["[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 v1=function(){return e},e}cl=h4("theoplayer-default-ui"),cu=h9(),rf={slot:"title",flatten:!0},cc=h6({reflect:!1,attribute:dc.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),ch=h6({reflect:!1,attribute:dc.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),cd=h6({reflect:!0,type:Boolean,attribute:dc.FLUID}),cp=h6({reflect:!0,type:Boolean,attribute:dc.MUTED}),cy=h6({reflect:!0,type:Boolean,attribute:dc.AUTOPLAY}),cf=h6({reflect:!0,type:String,attribute:dc.STREAM_TYPE}),cv=h6({reflect:!0,type:Number,attribute:dc.USER_IDLE_TIMEOUT,useDefault:!0}),c_=h6({reflect:!0,type:String,attribute:dc.DEVICE_TYPE}),cm=h6({reflect:!0,type:Number,attribute:dc.DVR_THRESHOLD,useDefault:!0}),cb=h9(),new(co=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cs(),t}return n(t,e),t}(o),rb=dg("____private__timeRangeInert_1"),rg=dg("____private_titleSlotNodes_2"),rk=dg("____private_fluid_3"),rw=dg("____private_muted_4"),rx=dg("____private_autoplay_5"),rE=dg("____private_streamType_6"),rT=dg("____private__hasTitle_7"),rA=function(e){function r(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,rb,{writable:!0,value:void 0}),Object.defineProperty(r,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}),cC(r),r._uiRef=dB(),dm(r,rb)[rb]=cg(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,dm(r,rg)[rg]=ck(r),dm(r,rk)[rk]=cw(r,!1),dm(r,rw)[rw]=cx(r,!1),dm(r,rx)[rx]=cE(r,!1),dm(r,rE)[rE]=cT(r,"vod"),dm(r,rT)[rT]=cA(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(pL(vj))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}n(r,e);var i=r.prototype;return i.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(dc.DEVICE_TYPE)||(this.deviceType=vF()?"mobile":vU()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=dW(vB);!(t=r()).done;)(0,t.value)(this)}this._onTitleSlotChange()},i.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},i.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},i._onUiReady=function(){this.dispatchEvent(pL(vz))},i.render=function(){return hD(vX(),dD(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())},i.renderUiContent=function(){return hD(v0(),fB({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,fB({display:"live"===this.streamType?"none":""}))},f(r,[{key:"_timeRangeInert",get:function(){return dm(this,rb)[rb]},set:function(e){dm(this,rb)[rb]=e}},{key:"titleSlotNodes",get:function(){return dm(this,rg)[rg]},set:function(e){dm(this,rg)[rg]=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 r;this._configuration=t({},e,{ads:t({},null!=(r=e.ads)?r:{},{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 dm(this,rk)[rk]},set:function(e){dm(this,rk)[rk]=e}},{key:"muted",get:function(){return dm(this,rw)[rw]},set:function(e){dm(this,rw)[rw]=e}},{key:"autoplay",get:function(){return dm(this,rx)[rx]},set:function(e){dm(this,rx)[rx]=e}},{key:"streamType",get:function(){return dm(this,rE)[rE]},set:function(e){dm(this,rE)[rE]=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,d7(this,dc.MOBILE,"mobile"===e),d7(this,dc.TV,"tv"===e))}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return dm(this,rT)[rT]},set:function(e){dm(this,rT)[rT]=e}}]),r}(h5),cg=(r_=(rv=a(rA,[[cu,1,"_timeRangeInert"],[function(e,t){var r=(null!=rf?rf:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return de(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(rf))?t:[]}})},1,"titleSlotNodes"],[cc,4,"configuration"],[ch,4,"source"],[cd,1,"fluid"],[cp,1,"muted"],[cy,1,"autoplay"],[cf,1,"streamType"],[cv,4,"userIdleTimeout"],[c_,4,"deviceType"],[cm,4,"dvrThreshold"],[cb,1,"_hasTitle"]],[cl],h5)).e)[0],ck=r_[1],cw=r_[2],cx=r_[3],cE=r_[4],cT=r_[5],cA=r_[6],cC=r_[7],cL=(rm=rv.c)[0],cs=rm[1],rA.styles=[vJ],rA.shadowRootOptions=t({},h5.shadowRootOptions,{delegatesFocus:!0}),rA.READY_EVENT=vz,co);var v2=ht(v1());function v5(){var e=i(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return v5=function(){return e},e}cR=h4("theolive-bad-network-button"),cP=pi(["player"]),cM=h9(),cI=h6({reflect:!1,attribute:!1}),new(cS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cO(),t}return n(t,e),t}(o),rR=dg("____private__inBadNetworkMode_1"),rP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rR,{writable:!0,value:void 0}),dm(t,rR)[rR]=(cN(t),cB(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dc.ARIA_LABEL)||this.setAttribute(dc.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hD(v5(),dH(fk),fB(e),dH('<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>'))},f(t,[{key:"_inBadNetworkMode",get:function(){return dm(this,rR)[rR]},set:function(e){dm(this,rR)[rR]=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}(ij),cB=(rL=(rC=a(rP,[[cM,1,"_inBadNetworkMode"],[cI,4,"player"]],[cR,cP],ij)).e)[0],cN=rL[1],(rS=rC.c)[0],cO=rS[1],rP.styles=[].concat(ij.styles,[v2]),cS),c$=pi(["player"]);var v3=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}n(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},f(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}(il);function v4(){var e=i(["<slot>High Quality</slot>"]);return v4=function(){return e},e}cD=(cq=a(v3,[],[c$],il).c)[0],(0,cq[1])(),cF=h4("theolive-automatic-quality-selector");var v8=function(e){function t(){return e.apply(this,arguments)||this}n(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 hD(v4())},t}(cD);function v7(){var e=i(["<slot>Low Quality</slot>"]);return v7=function(){return e},e}(cU=a(v8,[],[cF],cD).c)[0],(0,cU[1])(),cj=h4("theolive-bad-network-quality-selector");var v6=function(e){function t(){return e.apply(this,arguments)||this}n(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 hD(v7())},t}(cD);function v9(){var e=i(["<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 v9=function(){return e},e}function _e(){var e=i([':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 _e=function(){return e},e}(cz=a(v6,[],[cj],cD).c)[0],(0,cz[1])(),cH=h4("theolive-bad-network-menu"),new(cV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cG(),t}return n(t,e),t}(o),rM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._radioGroupRef=dB(),t._onChange=function(){t.dispatchEvent(new Event("change",{bubbles:!0}))},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){this._radioGroupRef.value&&!w(this._radioGroupRef.value,im)&&customElements.upgrade(this._radioGroupRef.value)},r.render=function(){return hD(v9(),dD(this._radioGroupRef),this._onChange)},t}(h5),(rO=a(rM,[],[cH],h5).c)[0],cG=rO[1],rM.styles=[p9],cV);var _t=ht(_e());function _r(){var e=i(['<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 _r=function(){return e},e}cW=h4("theolive-default-ui"),cZ=h9(),cY=h9(),cJ=h9(),cX=h9(),new(cQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,cK(),t}return n(t,e),t}(o),r$=dg("____private__announcementType_1"),rD=dg("____private__announcementMessage_2"),rq=dg("____private__hidePlayButton_3"),rF=dg("____private__hideErrorDisplay_4"),rU=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,r$,{writable:!0,value:void 0}),Object.defineProperty(r,rD,{writable:!0,value:void 0}),Object.defineProperty(r,rq,{writable:!0,value:void 0}),Object.defineProperty(r,rF,{writable:!0,value:void 0}),dm(r,r$)[r$]=(c3(r),c0(r,"")),dm(r,rD)[rD]=c1(r,""),dm(r,rq)[rq]=c2(r,!1),dm(r,rF)[rF]=c5(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}n(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(dc.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(dc.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 hD(_r(),fB(e),fB(t),fB(r),this._announcementMessage,fB(n),fB(n),fB(i))},f(t,[{key:"_announcementType",get:function(){return dm(this,r$)[r$]},set:function(e){dm(this,r$)[r$]=e}},{key:"_announcementMessage",get:function(){return dm(this,rD)[rD]},set:function(e){dm(this,rD)[rD]=e}},{key:"_hidePlayButton",get:function(){return dm(this,rq)[rq]},set:function(e){dm(this,rq)[rq]=e}},{key:"_hideErrorDisplay",get:function(){return dm(this,rF)[rF]},set:function(e){dm(this,rF)[rF]=e}}]),t}(cL),c0=(rB=(rI=a(rU,[[cZ,1,"_announcementType"],[cY,1,"_announcementMessage"],[cJ,1,"_hidePlayButton"],[cX,1,"_hideErrorDisplay"]],[cW],cL)).e)[0],c1=rB[1],c2=rB[2],c5=rB[3],c3=rB[4],c4=(rN=rI.c)[0],cK=rN[1],rU.styles=[_t],cQ);var _n="2.0.0-beta.0";export{oC as ActiveQualityDisplay,uL as AdClickThroughButton,uw as AdCountdown,up as AdDisplay,uU as AdSkipButton,sN as AirPlayButton,dc as Attribute,r2 as Button,f5 as CastButton,sx as ChromecastButton,sP as ChromecastDisplay,iQ as CloseMenuButton,fO as ColorStops,rZ as ControlBar,cL as DefaultUI,ie as DurationDisplay,sf as ErrorDisplay,vI as ExtensionSlot,la as FullscreenButton,s0 as GestureReceiver,aX as LanguageMenu,a3 as LanguageMenuButton,nr as LinkButton,ui as LiveButton,sH as LoadingIndicator,i0 as MediaTrackRadioButton,iS as Menu,ij as MenuButton,iN as MenuGroup,nT as MuteButton,nv as PlayButton,ov as PlaybackRateDisplay,ou as PlaybackRateMenu,oo as PlaybackRateMenuButton,oi as PlaybackRateRadioGroup,lI as PreviewThumbnail,lY as PreviewTimeDisplay,o$ as QualityRadioButton,oK as QualityRadioGroup,il as RadioButton,im as RadioGroup,lE as Range,nI as SeekButton,o3 as SettingsMenu,o8 as SettingsMenuButton,no as SlotContainer,pa as StateReceiverMixin,c4 as THEOliveDefaultUI,a_ as TextTrackOffRadioButton,ac as TextTrackRadioButton,aT as TextTrackStyleDisplay,aU as TextTrackStyleMenu,aN as TextTrackStyleRadioGroup,oJ as TextTrackStyleResetButton,n1 as TimeDisplay,l6 as TimeRange,ai as TrackRadioGroup,ca as UIContainer,sn as VolumeRange,d_ as buttonTemplate,dj as linkButtonTemplate,pJ as menuGroupTemplate,pG as menuTemplate,vN as registerExtension,pi as stateReceiver,_n as version};
|
|
1
|
+
import{ChromelessPlayer as e}from"theoplayer/chromeless";function t(){return(t=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 r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function n(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&&r(e,t)}function i(e,t){return t||(t=e.slice(0)),e.raw=t,e}function a(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 o(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};if(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)})),h){var f=h;h=function(e){return 0==arguments.length&&(e=this),f.call(e)}}if(d){var v=d;d=function(e,t){return 1==arguments.length&&(t=e,e=this),v.call(e,t)}}if(l)p.access=h&&d?{get:h,set:d}:h?{get:h}:{set:d};else{var _=function(e){return t in e};p.access=h&&d?{has:_,get:h,set:d}:h?{has:_,get:h}:{has:_,set:d}}var m=e(u,p);return y.v=!0,m}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(a=function(e,t,r,n){if(void 0!==n)var a=n[Symbol.metadata||Symbol.for("Symbol.metadata")];var l=Object.create(void 0===a?null:a),h=function(e,t,r){for(var n=[],i=new Map,a=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],_=y.length>3,m=f>=5;if(m?(d=e,f-=5,p=h=h||[]):(d=e.prototype,p=c=c||[]),0!==f&&!_){var b=m?a: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,a,l,u,c){var h,d,p,y,f,v,_=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 _)void 0!==(y=o(_,n,h,u,i,a,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;m>=0;m--)void 0!==(y=o(_[m],n,h,u,i,a,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},h=t[l](a,{kind:"class",name:o,addInitializer:i(n,u),metadata:r});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 o(e){return e}function l(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 s(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){l(a,n,i,o,s,"next",e)}function s(e){l(a,n,i,o,s,"throw",e)}o(void 0)})}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function h(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function d(e,t,r){t=u(t);var n=c()?Reflect.construct(t,r||[],u(e).constructor):t.apply(e,r);if(n&&("object"===h(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 p(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function y(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 f(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),e}function v(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 v(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 v(e,t)}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,i=null==e?null:"u">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 b(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("u">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 g(e,t,n){return(g=c()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&r(a,n.prototype),a}).apply(null,arguments)}function k(e){var t="function"==typeof Map?new Map:void 0;return(k=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,n)}function n(){return g(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r(n,e)})(e)}function w(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),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(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 x(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var E,T,A,C,L,S,R,P,O,M,I,B,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,e_,em,eb,eg,ek,ew,ex,eE,eT,eA,eC,eL,eS,eR,eP,eO,eM,eI,eB,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,t_,tm,tb,tg,tk,tw,tx,tE,tT,tA,tC,tL,tS,tR,tP,tO,tM,tI,tB,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,r_,rm,rb,rg,rk,rw,rx,rE,rT,rA,rC,rL,rS,rR,rP,rO,rM,rI,rB,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,n_,nm,nb,ng,nk,nw,nx,nE,nT,nA,nC,nL,nS,nR,nP,nO,nM,nI,nB,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,i_,im,ib,ig,ik,iw,ix,iE,iT,iA,iC,iL,iS,iR,iP,iO,iM,iI,iB,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,a_,am,ab,ag,ak,aw,ax,aE,aT,aA,aC,aL,aS,aR,aP,aO,aM,aI,aB,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,o_,om,ob,og,ok,ow,ox,oE,oT,oA,oC,oL,oS,oR,oP,oO,oM,oI,oB,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,l_,lm,lb,lg,lk,lw,lx,lE,lT,lA,lC,lL,lS,lR,lP,lO,lM,lI,lB,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,s_,sm,sb,sg,sk,sw,sx,sE,sT,sA,sC,sL,sS,sR,sP,sO,sM,sI,sB,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,u_,um,ub,ug,uk,uw,ux,uE,uT,uA,uC,uL,uS,uR,uP,uO,uM,uI,uB,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,c_,cm,cb,cg,ck,cw,cx,cE,cT,cA,cC,cL,cS,cR,cP,cO,cM,cI,cB,cN,c$,cD,cq,cF,cU,cj,cz,cV,cH,cG,cQ,cW,cK,cZ,cY,cJ,cX,c0,c1,c2,c5,c3,c4,c8=self,c7=c8.ShadowRoot&&(void 0===c8.ShadyCSS||c8.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c6=Symbol(),c9=new WeakMap,he=function(){function e(t,r,n){if(p(this,e),this._$cssResult$=!0,n!==c6)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}return f(e,[{key:"styleSheet",get:function(){var e=this.o,t=this.t;if(c7&&void 0===e){var r=void 0!==t&&1===t.length;r&&(e=c9.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&c9.set(t,e))}return e}},{key:"toString",value:function(){return this.cssText}}]),e}(),ht=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 he(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,c6)},hr=function(e,t){var r=!0,n=!1,i=void 0;if(c7)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=c8.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}}},hn=c7?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 he("string"==typeof(t=r)?t:t+"",void 0,c6)}(e):e},hi=Object.is,ha=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,hl=Object.getOwnPropertyNames,hs=Object.getOwnPropertySymbols,hu=Object.getPrototypeOf,hc=self,hh=hc.trustedTypes,hd=hh?hh.emptyScript:"",hp=hc.reactiveElementPolyfillSupport,hy=function(e,t){return e},hf={toAttribute:function(e,t){switch(t){case Boolean:e=e?hd: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}},hv=function(e,t){return!hi(e,t)},h_={attribute:!0,type:String,converter:hf,reflect:!1,useDefault:!1,hasChanged:hv};null!=(L=Symbol).metadata||(L.metadata=Symbol("metadata")),null!=hc.litPropertyMetadata||(hc.litPropertyMetadata=new WeakMap);var hm=function(e){function t(){var e;return p(this,t),(e=d(this,t))._$Ep=void 0,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Em=null,e._$Ev(),e}return n(t,e),f(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!=(t=this._$EO)?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null==(r=e.hostConnected)||r.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 hr(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:hf).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==(a=l.converter)?void 0:a.fromAttribute)?l.converter:hf;this._$Em=n;var u=s.fromAttribute(t,l.type);this[n]=null!=(i=null!=u?u:null==(o=this._$Ej)?void 0:o.get(n))?i:u,this._$Em=null}}},{key:"requestUpdate",value:function(e,t,r,n,i){if(void 0===n&&(n=!1),void 0!==e){var a,o,l=this.constructor;if(!1===n&&(i=this[e]),null!=r||(r=l.getPropertyOptions(e)),!((null!=(a=r.hasChanged)?a:hv)(i,t)||r.useDefault&&r.reflect&&i===(null==(o=this._$Ej)?void 0:o.get(e))&&!this.hasAttribute(l._$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 s(function(){var e;return w(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=m(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=m(p.value,2),v=f[0],_=f[1],b=_.wrapped,g=this[v];!0!==b||this._$AL.has(v)||void 0===g||this.C(v,void 0,_,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&&b(this._$Eh.keys())}},{key:"createProperty",value:function(e,t){if(void 0===t&&(t=h_),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&&ha(this.prototype,e,n)}}},{key:"getPropertyDescriptor",value:function(e,t,r){var n,i=null!=(n=ho(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:h_}},{key:"_$Ei",value:function(){if(!this.hasOwnProperty(hy("elementProperties"))){var e=hu(this);e.finalize(),void 0!==e.l&&(this.l=b(e.l)),this.elementProperties=new Map(e.elementProperties)}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(hy("finalized"))){if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(hy("properties"))){var e=this.properties,t=b(hl(e)).concat(b(hs(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=m(p.value,2),v=f[0],_=f[1];this.elementProperties.set(v,_)}}catch(e){h=!0,d=e}finally{try{c||null==y.return||y.return()}finally{if(h)throw d}}}this._$Eh=new Map;var g=!0,k=!1,w=void 0;try{for(var x,E=this.elementProperties[Symbol.iterator]();!(g=(x=E.next()).done);g=!0){var T=m(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{g||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(hn(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(hn(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}(k(HTMLElement));hm.elementStyles=[],hm.shadowRootOptions={mode:"open"},hm[hy("elementProperties")]=new Map,hm[hy("finalized")]=new Map,null==hp||hp({ReactiveElement:hm}),(null!=(S=hc.reactiveElementVersions)?S:hc.reactiveElementVersions=[]).push("2.1.2");var hb=self,hg=function(e){return e},hk=hb.trustedTypes,hw=hk?hk.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,hx="$lit$",hE="lit$"+Math.random().toFixed(9).slice(2)+"$",hT="?"+hE,hA="<"+hT+">",hC=document,hL=function(){return hC.createComment("")},hS=function(e){return null===e||"object"!=(void 0===e?"undefined":h(e))&&"function"!=typeof e},hR=Array.isArray,hP="[ \n\f\r]",hO=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hM=/-->/g,hI=/>/g,hB=RegExp(">|"+hP+"(?:([^\\s\"'>=/]+)("+hP+"*="+hP+"*(?:[^ \n\f\r\"'`<>=]|(\"|')|))|$)","g"),hN=/'/g,h$=/"/g,hD=/^(?:script|style|textarea|title)$/i,hq=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}},hF=Symbol.for("lit-noChange"),hU=Symbol.for("lit-nothing"),hj=new WeakMap,hz=hC.createTreeWalker(hC,129,null,!1);function hV(e,t){if(!hR(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==hw?hw.createHTML(t):t}var hH=function(e,t){for(var r,n=e.length-1,i=[],a=2===t?"<svg>":3===t?"<math>":"",o=hO,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===hO?"!--"===c[1]?o=hM:void 0!==c[1]?o=hI:void 0!==c[2]?(hD.test(c[2])&&(r=RegExp("</"+c[2],"g")),o=hB):void 0!==c[3]&&(o=hB):o===hB?">"===c[0]?(o=null!=r?r:hO,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?hB:'"'===c[3]?h$:hN):o===h$||o===hN?o=hB:o===hM||o===hI?o=hO:(o=hB,r=void 0);var p=o===hB&&e[l+1].startsWith("/>")?" ":"";a+=o===hO?s+hA:h>=0?(i.push(u),s.slice(0,h)+hx+s.slice(h)+hE+p):s+hE+(-2===h?l:p)}return[hV(e,a+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),i]},hG=function(){function e(t,r){var n=t.strings,i=t._$litType$;p(this,e),this.parts=[];var a=0,o=0,l=n.length-1,s=this.parts,u=m(hH(n,i),2),c=u[0],h=u[1];if(this.el=e.createElement(c,r),hz.currentNode=this.el.content,2===i||3===i){var d,y=this.el.content.firstChild;y.replaceWith.apply(y,b(y.childNodes))}for(;null!==(d=hz.nextNode())&&s.length<l;){if(1===d.nodeType){var f=!0,v=!1,_=void 0;if(d.hasAttributes())try{for(var g,k=d.getAttributeNames()[Symbol.iterator]();!(f=(g=k.next()).done);f=!0){var w=g.value;if(w.endsWith(hx)){var x=h[o++],E=d.getAttribute(w).split(hE),T=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:T[2],strings:E,ctor:"."===T[1]?hY:"?"===T[1]?hJ:"@"===T[1]?hX:hZ}),d.removeAttribute(w)}else w.startsWith(hE)&&(s.push({type:6,index:a}),d.removeAttribute(w))}}catch(e){v=!0,_=e}finally{try{f||null==k.return||k.return()}finally{if(v)throw _}}if(hD.test(d.tagName)){var A=d.textContent.split(hE),C=A.length-1;if(C>0){d.textContent=hk?hk.emptyScript:"";for(var L=0;L<C;L++)d.append(A[L],hL()),hz.nextNode(),s.push({type:2,index:++a});d.append(A[C],hL())}}}else if(8===d.nodeType)if(d.data===hT)s.push({type:2,index:a});else for(var S=-1;-1!==(S=d.data.indexOf(hE,S+1));)s.push({type:7,index:a}),S+=hE.length-1;a++}}return f(e,null,[{key:"createElement",value:function(e,t){var r=hC.createElement("template");return r.innerHTML=e,r}}]),e}();function hQ(e,t,r,n){if(void 0===r&&(r=e),t===hF)return t;var i,a,o,l,s=void 0!==n?null==(o=r._$Co)?void 0:o[n]:r._$Cl,u=hS(t)?void 0:t._$litDirective$;return(null==s?void 0:s.constructor)!==u&&(null==s||null==(l=s._$AO)||l.call(s,!1),void 0===u?s=void 0:(s=new u(e))._$AT(e,r,n),void 0!==n?(null!=(a=(i=r)._$Co)?a:i._$Co=[])[n]=s:r._$Cl=s),void 0!==s&&(t=hQ(e,s._$AS(e,t.values),s,n)),t}var hW=function(){function e(t,r){p(this,e),this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}return f(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:hC).importNode(n,!0);hz.currentNode=a;for(var o=hz.nextNode(),l=0,s=0,u=i[0];void 0!==u;){if(l===u.index){var c=void 0;2===u.type?c=new hK(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new h0(o,this,e)),this._$AV.push(c),u=i[++s]}l!==(null==u?void 0:u.index)&&(o=hz.nextNode(),l++)}return hz.currentNode=hC,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}(),hK=function(){function e(t,r,n,i){var a;p(this,e),this.type=2,this._$AH=hU,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 f(e,[{key:"_$AU",get:function(){var e,t;return null!=(e=null==(t=this._$AM)?void 0:t._$AU)?e: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),hS(e=hQ(this,e,t))?e===hU||null==e||""===e?(this._$AH!==hU&&this._$AR(),this._$AH=hU):e!==this._$AH&&e!==hF&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):hR(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!==hU&&hS(this._$AH)?this._$AA.nextSibling.data=e:this.T(hC.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=hG.createElement(hV(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 hW(i,this),o=a.u(this.options);a.p(r),this.T(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=hj.get(e.strings);return void 0===t&&hj.set(e.strings,t=new hG(e)),t}},{key:"k",value:function(t){hR(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(hL()),this.O(hL()),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!==this._$AB;){var r,n=hg(e).nextSibling;hg(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}(),hZ=function(){function e(t,r,n,i,a){p(this,e),this.type=1,this._$AH=hU,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=hU}return f(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=!hS(e=hQ(this,e,t,0))||e!==this._$AH&&e!==hF)&&(this._$AH=e);else{var o,l,s=e;for(e=i[0],o=0;o<i.length-1;o++)(l=hQ(this,s[r+o],t,o))===hF&&(l=this._$AH[o]),a||(a=!hS(l)||l!==this._$AH[o]),l===hU?e=hU:e!==hU&&(e+=(null!=l?l:"")+i[o+1]),this._$AH[o]=l}a&&!n&&this.j(e)}},{key:"j",value:function(e){e===hU?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),hY=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e.type=3,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element[this.name]=e===hU?void 0:e}}]),t}(hZ),hJ=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e.type=4,e}return n(t,e),f(t,[{key:"j",value:function(e){this.element.toggleAttribute(this.name,!!e&&e!==hU)}}]),t}(hZ),hX=function(e){function t(e,r,n,i,a){var o;return p(this,t),(o=d(this,t,[e,r,n,i,a])).type=5,o}return n(t,e),f(t,[{key:"_$AI",value:function(e,t){if(void 0===t&&(t=this),(e=null!=(r=hQ(this,e,t,0))?r:hU)!==hF){var r,n=this._$AH,i=e===hU&&n!==hU||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==hU&&(n===hU||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!=(t=null==(r=this.options)?void 0:r.host)?t:this.element,e):this._$AH.handleEvent(e)}}]),t}(hZ),h0=function(){function e(t,r,n){p(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}return f(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){hQ(this,e)}}]),e}(),h1=hb.litHtmlPolyfillSupport;null==h1||h1(hG,hK),(null!=(R=hb.litHtmlVersions)?R:hb.litHtmlVersions=[]).push("3.3.2");var h2=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 hK(t.insertBefore(hL(),l),l,void 0,null!=r?r:{})}return i._$AI(e),i},h5=globalThis,h3=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e.renderOptions={host:e},e._$Do=void 0,e}return n(t,e),f(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=h2(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 hF}}]),t}(hm);h3._$litElement$=!0,h3.finalized=!0,null==(O=h5.litElementHydrateSupport)||O.call(h5,{LitElement:h3});var h4=h5.litElementPolyfillSupport;null==h4||h4({LitElement:h3}),(null!=(P=h5.litElementVersions)?P:h5.litElementVersions=[]).push("4.2.2");var h8=function(e){return function(t,r){void 0!==r?r.addInitializer(function(){customElements.define(e,t)}):customElements.define(e,t)}},h7={attribute:!0,type:String,converter:hf,reflect:!1,hasChanged:hv},h6=function(e,t,r){void 0===e&&(e=h7);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,!0,r)},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,!0,r)}}throw Error("Unsupported decorator location: "+n)};function h9(e){return function(t,r){var n;return"object"==(void 0===r?"undefined":h(r))?h6(e,t,r):(n=t.hasOwnProperty(r),t.constructor.createProperty(r,e),n?Object.getOwnPropertyDescriptor(t,r):void 0)}}function de(e){var t,r;return h9((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){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}var dt=function(e,t,r){return r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=(void 0===t?"undefined":h(t))&&Object.defineProperty(e,t,r),r};function dr(){var e=i([":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 dr=function(){return e},e}var dn=ht(dr());function di(){var e=i(["<slot></slot>"]);return di=function(){return e},e}B=h8("theoplayer-control-bar"),new(I=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[dn],r.shadowRootOptions=t({},h3.shadowRootOptions,{delegatesFocus:!0}),N(),r}return n(r,e),r}(o),M=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hq(di())},t}(h3),$=(D=a(M,[],[B],h3).c)[0],N=D[1],I);var da=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}}},dl=function(){function e(t){p(this,e)}return f(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,b(t))}}]),e}(),ds=da(function(e){function t(e){var r;if(p(this,t),r=d(this,t,[e]),2!==e.type)throw Error("templateContent can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){return this.vt===e?hF:(this.vt=e,document.importNode(e.content,!0))}}]),t}(dl));function du(){var e=i([":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 du=function(){return e},e}var dc=ht(du()),dh=((E={}).CONFIGURATION="configuration",E.SOURCE="source",E.AUTOPLAY="autoplay",E.MUTED="muted",E.FULLSCREEN="fullscreen",E.FULLWINDOW="fullwindow",E.FLUID="fluid",E.DEVICE_TYPE="device-type",E.MOBILE="mobile",E.TV="tv",E.TV_FOCUS="tv-focus",E.MOBILE_ONLY="mobile-only",E.MOBILE_HIDDEN="mobile-hidden",E.TV_ONLY="tv-only",E.TV_HIDDEN="tv-hidden",E.USER_IDLE="user-idle",E.USER_IDLE_TIMEOUT="user-idle-timeout",E.NO_AUTO_HIDE="no-auto-hide",E.DISABLED="disabled",E.INERT="inert",E.HIDDEN="hidden",E.PAUSED="paused",E.ENDED="ended",E.VOLUME_LEVEL="volume-level",E.CASTING="casting",E.LOADING="loading",E.STREAM_TYPE="stream-type",E.LIVE="live",E.LIVE_ONLY="live-only",E.LIVE_HIDDEN="live-hidden",E.LIVE_THRESHOLD="live-threshold",E.DVR_THRESHOLD="dvr-threshold",E.REMAINING="remaining",E.REMAINING_WHEN_LIVE="remaining-when-live",E.SHOW_DURATION="show-duration",E.SEEK_OFFSET="seek-offset",E.MENU="menu",E.MENU_OPENED="menu-opened",E.MENU_CLOSE_ON_INPUT="menu-close-on-input",E.ARIA_LABEL="aria-label",E.ARIA_LIVE="aria-live",E.ARIA_CHECKED="aria-checked",E.HAS_AUDIO="has-audio",E.HAS_SUBTITLES="has-subtitles",E.HAS_ERROR="has-error",E.HAS_FIRST_PLAY="has-first-play",E.CAST_STATE="cast-state",E.TRACK_TYPE="track-type",E.SHOW_OFF="show-off",E.PLAYING_AD="playing-ad",E.SHOW_AD_MARKERS="show-ad-markers",E.CLICKTHROUGH="clickthrough",E.PROPERTY="property",E.VALUE="value",E),dd=((T={})[T.ENTER=13]="ENTER",T[T.ESCAPE=27]="ESCAPE",T[T.SPACE=32]="SPACE",T[T.END=35]="END",T[T.HOME=36]="HOME",T[T.LEFT=37]="LEFT",T[T.UP=38]="UP",T[T.RIGHT=39]="RIGHT",T[T.DOWN=40]="DOWN",T[T.BACK_SAMSUNG=88]="BACK_SAMSUNG",T[T.BACK_WEBOS=461]="BACK_WEBOS",T[T.BACK_TIZEN=10009]="BACK_TIZEN",T);function dp(e){return 37<=e&&e<=40}function dy(e){return 10009===e||27===e||88===e||461===e}function df(e){return 13===e||32===e}function dv(){var e=i(["",""]);return dv=function(){return e},e}function d_(){var e=i(["<slot></slot>"]);return d_=function(){return e},e}function dm(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function db(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}U=h8("theoplayer-button"),z=h9({reflect:!0,type:Boolean,attribute:dh.DISABLED}),new(F=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dc],j(),t}return n(t,e),t}(o),q=function(e){function t(t){var r;return r=e.call(this)||this,V(r),r._disabled=!1,r._onClick=function(){r.handleClick()},r._onKeyDown=function(e){!df(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),df(e.keyCode)&&r.handleClick()},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(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(dh.ARIA_LIVE)||this.setAttribute(dh.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?hq(dv(),ds(this._template)):hq(d_())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}}]),t}(h3),V=(G=a(q,[[z,4,"disabled"]],[U],h3)).e[0],H=(Q=G.c)[0],j=Q[1],F);var dg=0;function dk(e){return"__private_"+dg+++"_"+e}function dw(){var e=i([":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);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 dw=function(){return e},e}var dx=ht(dw()),dE=function(e){return e},dT=function(){return document.createComment("")},dA=function(e,t,r){var n=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r)r=new hK(n.insertBefore(dT(),i),n.insertBefore(dT(),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=dE(c).nextSibling;dE(n).insertBefore(c,i),c=h}}return r},dC=function(e,t,r){return void 0===r&&(r=e),e._$AI(t,r),e},dL={},dS=function(e){e._$AR(),e._$AA.remove()},dR=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),dR(u,t)}}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return!0},dP=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))},dO=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),dB(t)}};function dM(e){void 0!==this._$AN?(dP(this),this._$AM=e,dO(this)):this._$AM=e}function dI(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++)dR(n[a],!1),dP(n[a]);else null!=n&&(dR(n,!1),dP(n));else dR(this,e)}var dB=function(e){2==e.type&&(null!=e._$AP||(e._$AP=dI),null!=e._$AQ||(e._$AQ=dM))},dN=function(e){function t(){var e;return p(this,t),e=d(this,t,arguments),e._$AN=void 0,e}return n(t,e),f(t,[{key:"_$AT",value:function(t,r,n){e.prototype._$AT.call(this,t,r,n),dO(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&&(dR(this,e),dP(this))}},{key:"setValue",value:function(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{var t=b(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}]),t}(dl),d$=function(){return new dD},dD=function e(){p(this,e)},dq=new WeakMap,dF=da(function(e){function t(){return p(this,t),d(this,t,arguments)}return n(t,e),f(t,[{key:"render",value:function(e){return hU}},{key:"update",value:function(e,t){var r,n=m(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)),hU}},{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=dq.get(r);void 0===n&&(n=new WeakMap,dq.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==(t=dq.get(null!=(e=this.ht)?e:self))?void 0:t.get(this.G):null==(r=this.G)?void 0:r.value}},{key:"disconnected",value:function(){this.lt===this.ct&&this.rt(void 0)}},{key:"reconnected",value:function(){this.rt(this.ct)}}]),t}(dN));function dU(){var e=i(["",""]);return dU=function(){return e},e}function dj(){var e=i(["<a ",' href="','" target="','" @keydown="','" @click="','">',"</a>"]);return dj=function(){return e},e}function dz(){var e=i(["<slot></slot>"]);return dz=function(){return e},e}function dV(e,t){return void 0===t&&(t=""),dm("<a>"+e+"</a>",t)}J=h8("theoplayer-link-button"),ee=h9({reflect:!0,type:Boolean,attribute:dh.DISABLED}),et=de(),er=de(),new(Y=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dx],X(),t}return n(t,e),t}(o),W=dk("____private_href_1"),K=dk("____private_target_2"),Z=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,W,{writable:!0,value:void 0}),Object.defineProperty(r,K,{writable:!0,value:void 0}),ea(r),r._disabled=!1,r._linkRef=d$(),db(r,W)[W]=en(r,""),db(r,K)[K]=ei(r,""),r._onKeyDown=function(e){if(!e.metaKey&&!e.altKey)if(e.keyCode!==dd.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}n(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(dh.ARIA_LIVE)||this.setAttribute(dh.ARIA_LIVE,"polite"),this.hasAttribute(dh.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?hq(dU(),ds(this._template)):hq(dj(),dF(this._linkRef),this.href,this.target,this._onKeyDown,this._onClick,this.renderLinkContent())},r.renderLinkContent=function(){return hq(dz())},r.handleClick=function(){},f(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e,e?this._disable():this._enable()}},{key:"href",get:function(){return db(this,W)[W]},set:function(e){db(this,W)[W]=e}},{key:"target",get:function(){return db(this,K)[K]},set:function(e){db(this,K)[K]=e}}]),t}(h3),en=(es=(el=a(Z,[[ee,4,"disabled"],[et,1,"href"],[er,1,"target"]],[J],h3)).e)[0],ei=es[1],ea=es[2],eo=(eu=el.c)[0],X=eu[1],Y);var dH=function(e){function t(e){var r;if(p(this,t),(r=d(this,t,[e])).it=hU,2!==e.type)throw Error(r.constructor.directiveName+"() can only be used in child bindings");return r}return n(t,e),f(t,[{key:"render",value:function(e){if(e===hU||null==e)return this._t=void 0,this.it=e;if(e===hF)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}(dl);dH.directiveName="unsafeHTML",dH.resultType=1;var dG=function(e){function t(){return p(this,t),d(this,t,arguments)}return n(t,e),t}(dH);dG.directiveName="unsafeSVG",dG.resultType=2;var dQ=da(dG);function dW(){var e=i([":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 dW=function(){return e},e}var dK=ht(dW());function dZ(e,t){var r="u">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 dY(){var e=i([":host{display:contents}::slotted(:not([no-auto-hide])),slot{opacity:inherit}"]);return dY=function(){return e},e}var dJ=ht(dY());function dX(){var e=i(["<slot></slot>"]);return dX=function(){return e},e}function d0(){}function d1(e){return e.nodeType===Node.ELEMENT_NODE}function d2(e){return x(e,HTMLElement)}ed=h8("theoplayer-slot-container"),new(eh=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[dJ],ep(),t}return n(t,e),t}(o),ec=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hq(dX())},t}(h3),ey=(ef=a(ec,[],[ed],h3).c)[0],ep=ef[1],eh);var d5="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},d3="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){return Array.prototype.slice.call(e)},d4="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]},d8="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},d7="function"==typeof String.prototype.startsWith?function(e,t){return e.startsWith(t)}:function(e,t){return e.substring(0,t.length)===t},d6="u">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 d9(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function pe(e){if(e.shadowRoot)return e.shadowRoot.children;if("slot"===e.localName.toLowerCase()){var t=e.assignedNodes();if(t.length>0)return t.filter(d1)}return d2(e)?e.children:[]}function pt(e){for(var t,r=[],n=dZ(e.assignedNodes({flatten:!0}));!(t=n()).done;){var i=t.value;d1(i)&&(r.push(i),"theoplayer-slot-container"===i.nodeName.toLowerCase())&&r.push.apply(r,[].concat(d3(i.children)))}return r}function pr(e){var t=[];return function e(t,r){if(d2(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=pe(t),i=0;i<n.length;i++)e(n[i],r)}}}(e,t),t}function pn(e){var t=e.nodeName.toLowerCase();if(t.indexOf("-")>=0)if(!customElements.get(t))return customElements.whenDefined(t);else customElements.upgrade(e)}var pi="theoplayerUiObservedProperties";function pa(e){return pi in e&&d5(e[pi])}var po=function(e){return function(t,r){Object.defineProperty(t.prototype,pi,{value:e})}};function pl(e,t){var r,i,o=po(t),l=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t}(e);return r=(i=a(l,[],[o],e).c)[0],(0,i[1])(),r}function ps(e,t,r){return s(function(){var n;return w(this,function(i){switch(i.label){case 0:if(t.contains(e))return[2];if(!(e.nodeName.indexOf("-")>=0&&!pa(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(pa(e)&&r(e),!((n=pe(e)).length>0))return[3,5];return[4,Promise.all(d3(n).map(function(e){return ps(e,t,r)}))];case 4:i.sent(),i.label=5;case 5:return[2]}})})()}function pu(){var e=i(['<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 pu=function(){return e},e}var pc=["seeking","seeked","ended","emptied","sourcechange"];function ph(){var e=i([":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 ph=function(){return e},e}eg=h8("theoplayer-play-button"),ek=po(["player"]),ex=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.PAUSED}),eE=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.ENDED}),new(eb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[dK]),ew(),t}return n(t,e),t}(o),ev=dk("____private_paused_1"),e_=dk("____private_ended_2"),em=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ev,{writable:!0,value:void 0}),Object.defineProperty(t,e_,{writable:!0,value:void 0}),db(t,ev)[ev]=(eC(t),eT(t,!1)),db(t,e_)[e_]=eA(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==(e=null==(r=t._player)?void 0:r.paused)||e,t._updateEnded(),t._updateDisabled()},t._updateDisabled=function(){var e;t.disabled=(null==(e=t._player)?void 0:e.source)===void 0},t}n(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!=(e=null==(t=this._player)?void 0:t.ended)&&e},r.handleClick=function(){void 0!==this._player&&void 0!==this._player.source&&(this._player.paused?this._player.play():this._player.pause())},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),eL.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.ended?"replay":this.paused?"play":"pause";this.setAttribute(dh.ARIA_LABEL,e)},r.render=function(){return hq(pu(),dQ('<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'),dQ('<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'),dQ('<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'))},f(t,[{key:"paused",get:function(){return db(this,ev)[ev]},set:function(e){db(this,ev)[ev]=e}},{key:"ended",get:function(){return db(this,e_)[e_]},set:function(e){db(this,e_)[e_]=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(pc,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(pc,this._updateFromPlayer)))}}]),t}(H),eT=(eR=(eS=a(em,[[ex,1,"paused"],[eE,1,"ended"]],[eg,ek],H)).e)[0],eA=eR[1],eC=eR[2],eL=(eP=eS.c)[0],ew=eP[1],eb);var pd=ht(ph());function pp(){var e=i(['<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 pp=function(){return e},e}var py=["volumechange"];function pf(){var e=i([':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 pf=function(){return e},e}eB=h8("theoplayer-mute-button"),eN=po(["player"]),eD=h9({reflect:!0,state:!0,type:String,attribute:dh.VOLUME_LEVEL}),eq=h9({reflect:!1,attribute:!1}),new(eI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[pd]),e$(),t}return n(t,e),t}(o),eO=dk("____private_volumeLevel_1"),eM=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eO,{writable:!0,value:void 0}),db(t,eO)[eO]=(eU(t),eF(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}n(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(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),ej.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="off"===this.volumeLevel?"unmute":"mute";this.setAttribute(dh.ARIA_LABEL,e)},r.render=function(){return hq(pp(),dQ('<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'),dQ('<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'),dQ('<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'))},f(t,[{key:"volumeLevel",get:function(){return db(this,eO)[eO]},set:function(e){db(this,eO)[eO]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(py,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(py,this._updateFromPlayer))}}]),t}(H),eF=(eV=(ez=a(eM,[[eD,1,"volumeLevel"],[eq,4,"player"]],[eB,eN],H)).e)[0],eU=eV[1],ej=(eH=ez.c)[0],e$=eH[1],eI);var pv=ht(pf());function p_(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><span part="offset">',"</span>"]);return p_=function(){return e},e}function pm(){var e=i([":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 pm=function(){return e},e}eK=h8("theoplayer-seek-button"),eZ=po(["player"]),eJ=h9({reflect:!0,type:Number,attribute:dh.SEEK_OFFSET}),eX=h9({reflect:!1,attribute:!1}),new(eW=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[pv]),eY(),t}return n(t,e),t}(o),eG=dk("____private_seekOffset_1"),eQ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,eG,{writable:!0,value:void 0}),db(t,eG)[eG]=(e1(t),e0(t,10)),t}n(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(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),e2.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.seekOffset;this.setAttribute(dh.ARIA_LABEL,e>=0?"seek forward by "+e+" seconds":"seek backward by "+-e+" seconds")},r.render=function(){return hq(p_(),dQ('<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)))},f(t,[{key:"seekOffset",get:function(){return db(this,eG)[eG]},set:function(e){db(this,eG)[eG]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(H),e0=(e3=(e5=a(eQ,[[eJ,1,"seekOffset"],[eX,4,"player"]],[eK,eZ],H)).e)[0],e1=e3[1],e2=(e4=e5.c)[0],eY=e4[1],eW);var pb=ht(pm());function pg(e){return!isNaN(e)&&isFinite(e)}function pk(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(pg(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 pw=[["hour","hours"],["minute","minutes"],["second","seconds"]];function px(e,t){var r=pw[t][+(1!==e)];return e+" "+r}function pE(e,t){if(!pg(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?"":px(a,0),0===i?"":px(i,1),0===n&&(a>0||i>0)?"":px(n,2)].filter(function(e){return""!==e}).join(", ")+(r?" remaining":"")}function pT(){var e=i(["<span>","</span>"]);return pT=function(){return e},e}var pA=["timeupdate","seeking","seeked","durationchange"];function pC(){var e=i(["<span>","</span>"]);return pC=function(){return e},e}ta=h8("theoplayer-time-display"),to=po(["player","streamType"]),ts=h9({reflect:!1,attribute:!1}),tu=h9({reflect:!0,type:Boolean,attribute:dh.REMAINING}),tc=h9({reflect:!0,type:Boolean,attribute:dh.REMAINING_WHEN_LIVE}),th=h9({reflect:!0,type:Boolean,attribute:dh.SHOW_DURATION}),td=h9({reflect:!0,type:String,attribute:dh.STREAM_TYPE}),tp=de(),ty=de(),tf=de(),new(ti=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pb],tl(),t}return n(t,e),t}(o),e8=dk("____private_remaining_1"),e7=dk("____private_remainingWhenLive_2"),e6=dk("____private_showDuration_3"),e9=dk("____private_streamType_4"),te=dk("____private__currentTime_5"),tt=dk("____private__duration_6"),tr=dk("____private__endTime_7"),tn=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,e8,{writable:!0,value:void 0}),Object.defineProperty(t,e7,{writable:!0,value:void 0}),Object.defineProperty(t,e6,{writable:!0,value:void 0}),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}),db(t,e8)[e8]=(tx(t),tv(t,!1)),db(t,e7)[e7]=t_(t,!1),db(t,e6)[e6]=tm(t,!1),db(t,e9)[e9]=tb(t,"vod"),db(t,te)[te]=tg(t,0),db(t,tt)[tt]=tk(t,NaN),db(t,tr)[tr]=tw(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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.ARIA_LABEL,"playback time"),this.hasAttribute(dh.ARIA_LIVE)||this.setAttribute(dh.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?pk(n,i,r)+" / "+pk(i):pk(n,i,r),t=isNaN(this._duration)?"video not loaded, unknown time":this.showDuration?pE(n,r)+" of "+pE(i):pE(n,r),this.setAttribute("aria-valuetext",t),hq(pT(),e)},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(pA,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(pA,this._updateFromPlayer))}},{key:"remaining",get:function(){return db(this,e8)[e8]},set:function(e){db(this,e8)[e8]=e}},{key:"remainingWhenLive",get:function(){return db(this,e7)[e7]},set:function(e){db(this,e7)[e7]=e}},{key:"showDuration",get:function(){return db(this,e6)[e6]},set:function(e){db(this,e6)[e6]=e}},{key:"streamType",get:function(){return db(this,e9)[e9]},set:function(e){db(this,e9)[e9]=e}},{key:"_currentTime",get:function(){return db(this,te)[te]},set:function(e){db(this,te)[te]=e}},{key:"_duration",get:function(){return db(this,tt)[tt]},set:function(e){db(this,tt)[tt]=e}},{key:"_endTime",get:function(){return db(this,tr)[tr]},set:function(e){db(this,tr)[tr]=e}}]),t}(h3),tv=(tA=(tT=a(tn,[[ts,4,"player"],[tu,1,"remaining"],[tc,1,"remainingWhenLive"],[th,1,"showDuration"],[td,1,"streamType"],[tp,1,"_currentTime"],[ty,1,"_duration"],[tf,1,"_endTime"]],[ta,to],h3)).e)[0],t_=tA[1],tm=tA[2],tb=tA[3],tg=tA[4],tk=tA[5],tw=tA[6],tx=tA[7],tE=(tC=tT.c)[0],tl=tC[1],ti);var pL=["durationchange"];tP=h8("theoplayer-duration-display"),tO=po(["player"]),tI=h9({reflect:!1,attribute:!1}),tB=de(),new(tR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pb],tM(),t}return n(t,e),t}(o),tL=dk("____private_duration_1"),tS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,tL,{writable:!0,value:void 0}),db(t,tL)[tL]=(t$(t),tN(t,NaN)),t._updateFromPlayer=function(){t.duration=t._player?t._player.duration:NaN},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LIVE)||this.setAttribute(dh.ARIA_LIVE,"off")},r.render=function(){return hq(pC(),pk(this.duration))},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(pL,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(pL,this._updateFromPlayer))}},{key:"duration",get:function(){return db(this,tL)[tL]},set:function(e){db(this,tL)[tL]=e}}]),t}(h3),tN=(tF=(tq=a(tS,[[tI,4,"player"],[tB,1,"duration"]],[tP,tO],h3)).e)[0],t$=tF[1],tD=(tU=tq.c)[0],tM=tU[1],tR);var pS=!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)},pR=!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)};tj=h8("theoplayer-radio-button"),tz=h9({reflect:!0,type:Boolean,attribute:dh.ARIA_CHECKED,converter:{fromAttribute:function(e){return null!=e&&"false"!==e},toAttribute:function(e){return String(e)}}}),tV=h9({attribute:dh.VALUE});var pP=dk("____private_value_1"),pO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,pP,{writable:!0,value:void 0}),tG(t),t._checked=!1,db(t,pP)[pP]=tH(t,void 0),t}n(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(pS("input",{bubbles:!0,composed:!0}))},r.handleChange=function(){},f(t,[{key:"checked",get:function(){return this._checked},set:function(e){this._checked!==e&&(this._checked=e,this.handleChange(),this.dispatchEvent(pS("change",{bubbles:!0})))}},{key:"value",get:function(){return db(this,pP)[pP]},set:function(e){db(this,pP)[pP]=e}}]),t}(H);tH=(tK=(tW=a(pO,[[tz,4,"checked"],[tV,1,"value"]],[tj],H)).e)[0],tG=tK[1],tQ=(tZ=tW.c)[0],(0,tZ[1])();var pM=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!=(r=null!=(n=t.left)?n:t.x)?r:0,null!=(i=null!=(a=t.top)?a:t.y)?i:0,null!=(o=t.width)?o:0,null!=(l=t.height)?l:0)},f(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 pI(){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&&d2(e)?e:null}function pB(e,t,r){var n,i,a,o=pI();if(null===o)return!1;var l=pM.fromRect(e.getBoundingClientRect()).snapToPixels(),s=pM.fromRect(o.getBoundingClientRect()).snapToPixels(),u=t.map(function(e){return{child:e,rect:pM.fromRect(e.getBoundingClientRect()).snapToPixels()}}).filter(function(e){return e.rect.width>0&&e.rect.height>0});if(r===dd.LEFT||r===dd.RIGHT){var c=s.clone();r===dd.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===dd.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=i(["<slot ",' @slotchange="','"></slot>']);return pN=function(){return e},e}tY=h8("theoplayer-radio-group"),tJ=po(["deviceType"]),tX=h9({reflect:!0,type:String,attribute:dh.DEVICE_TYPE}),t0=h9({attribute:dh.VALUE});var p$=dk("____private_deviceType_1"),pD=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,p$,{writable:!0,value:void 0}),t2(t),t._slotRef=d$(),t._radioButtons=[],t._value=void 0,db(t,p$)[p$]=t1(t,"desktop"),t._onSlotChange=function(){var e,r=t._slotRef.value;if(r){for(var n,i=pt(r),a=[],o=dZ(i);!(n=o()).done;){var l=n.value;if(!pq(l)){var s=pn(l);s&&a.push(s)}}a.length>0&&Promise.all(a).then(t._onSlotChange,d0),t._radioButtons=i.filter(pq),t.focusedRadioButton||null==(e=t.firstRadioButton)||e.setAttribute("tabindex","0"),t.updateCheckedButton()}},t._onKeyDown=function(e){if("tv"===t.deviceType&&dp(e.keyCode)){pB(t,t._radioButtons,e.keyCode)&&(e.preventDefault(),e.stopPropagation());return}switch(e.keyCode){case dd.UP:case dd.LEFT:t._focusPrevButton()&&e.preventDefault();break;case dd.DOWN:case dd.RIGHT:t._focusNextButton()&&e.preventDefault();break;case dd.HOME:e.preventDefault(),t.setFocusedRadioButton(t.firstRadioButton);break;case dd.END:e.preventDefault(),t.setFocusedRadioButton(t.lastRadioButton)}},t._onButtonChange=function(e){var r=e.target;null!==r&&r.checked&&(t.value=r.value)},t}n(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=dZ(this.allRadioButtons());!(e=t()).done;)e.value.tabIndex=-1},r.setCheckedRadioButton=function(e){for(var t,r=dZ(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 hq(pN(),dF(this._slotRef),this._onSlotChange)},f(t,[{key:"deviceType",get:function(){return db(this,p$)[p$]},set:function(e){db(this,p$)[p$]=e}},{key:"value",get:function(){return this._value},set:function(e){this._value!==e&&(this._value=e,this.updateCheckedButton(),this.dispatchEvent(pS("change",{bubbles:!0})))}},{key:"focusedRadioButton",get:function(){var e;return null!=(e=d4(this._radioButtons,function(e){return 0===e.tabIndex}))?e:null}},{key:"checkedRadioButton",get:function(){var e;return null!=(e=d4(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}(h3);function pq(e){return x(e,tQ)}function pF(){var e=i([":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 pF=function(){return e},e}t1=(t4=(t3=a(pD,[[tX,1,"deviceType"],[t0,4,"value"]],[tY,tJ],h3)).e)[0],t2=t4[1],t5=(t8=t3.c)[0],(0,t8[1])();var pU=ht(pF()),pj="theoplayermenuclose",pz="theoplayermenuchange";function pV(){var e=i(["",""]);return pV=function(){return e},e}function pH(){var e=i(['<div part="heading"><theoplayer-menu-close-button></theoplayer-menu-close-button>','</div><div part="content" @input="','">',"</div>"]);return pH=function(){return e},e}function pG(){var e=i(['<slot name="heading"></slot>']);return pG=function(){return e},e}function pQ(){var e=i(["<slot></slot>"]);return pQ=function(){return e},e}function pW(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>"}function pK(){var e=i([":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 pK=function(){return e},e}re=h8("theoplayer-menu"),rr=h9({reflect:!0,type:Boolean,attribute:dh.MENU_CLOSE_ON_INPUT}),rn=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.MENU_OPENED}),new(t9=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[pU],r.shadowRootOptions=t({},h3.shadowRootOptions,{delegatesFocus:!0}),rt(),r}return n(r,e),r}(o),t7=dk("____private_closeOnInput_1"),t6=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,t7,{writable:!0,value:void 0}),ra(r),r._menuOpened=!1,db(r,t7)[t7]=ri(r,!1),r._onContentInput=function(){if(r.closeOnInput){var e=pR(pj,{bubbles:!0,composed:!0});r.dispatchEvent(e)}},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(dh.HIDDEN,"")},r.openMenu=function(){this.menuOpened_=!0},r.closeMenu=function(){this.menuOpened_=!1},r.render=function(){return this._template?hq(pV(),ds(this._template)):hq(pH(),this.renderMenuHeading(),this._onContentInput,this.renderMenuContent())},r.renderMenuHeading=function(){return hq(pG())},r.renderMenuContent=function(){return hq(pQ())},f(t,[{key:"closeOnInput",get:function(){return db(this,t7)[t7]},set:function(e){db(this,t7)[t7]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,d9(this,dh.HIDDEN,!e);var t=pR(pz,{bubbles:!0});this.dispatchEvent(t)}}}]),t}(h3),ri=(rs=(rl=a(t6,[[rr,1,"closeOnInput"],[rn,4,"menuOpened_"]],[re],h3)).e)[0],ra=rs[1],ro=(ru=rl.c)[0],rt=ru[1],t9);var pZ=ht(pK()),pY="theoplayermenutoggle";function pJ(){var e=i(["",""]);return pJ=function(){return e},e}function pX(){var e=i(['<slot @slotchange="','"></slot>']);return pX=function(){return e},e}function p0(e,t){return void 0===t&&(t=""),"<style>"+t+"</style>"+e}function p1(e){return!!d2(e)&&(x(e,ro)||x(e,rm))}rp=h8("theoplayer-menu-group"),rf=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.MENU_OPENED}),new(rd=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[pZ],r.shadowRootOptions=t({},h3.shadowRootOptions,{delegatesFocus:!0}),ry(),r}return n(r,e),r}(o),rc=dk("____private__menuSlot_1"),rh=function(e){function t(t){var r;return Object.defineProperty(r=e.call(this)||this,rc,{writable:!0,value:void 0}),r_(r),r._menuOpened=!1,db(r,rc)[rc]=rv(r,null),r._menus=[],r._openMenuStack=[],r._onMenuListChange=function(){for(var e,t=[].concat(d3(r.shadowRoot.children),r._menuSlot?pt(r._menuSlot):[]),n=[],i=dZ(t);!(e=i()).done;){var a=e.value;if(!p1(a)){var o=pn(a);o&&n.push(o)}}n.length>0&&Promise.all(n).then(r._onMenuListChange,d0);for(var l,s=t.filter(p1),u=dZ(r._menus);!(l=u()).done;){var c=l.value;0>s.indexOf(c)&&r.closeMenu(c.id)}for(var h,d=dZ(s);!(h=d()).done;){var p=h.value;0>r._menus.indexOf(p)&&p.closeMenu()}r._menus=s},r._onToggleMenu=function(e){var t=e.detail.menu;if(r.getMenuById(t)){e.stopPropagation();var n=d2(e.target)?e.target:void 0;r.isMenuOpen(t)?r.closeMenu(t):r.openMenu(t,n)}},r._onCloseMenu=function(e){r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._onMenuChange=function(e){var t=r.getCurrentMenu_();t&&t.menu===e.target&&x(t.menu,rm)&&!t.menu.hasCurrentMenu()&&r.closeCurrentMenu()},r._onKeyDown=function(e){!e.altKey&&dy(e.keyCode)&&r.closeCurrentMenu()&&(e.preventDefault(),e.stopPropagation())},r._template=null==t?void 0:t.template,r._template&&r.performUpdate(),r}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.menuOpened_||this.setAttribute(dh.HIDDEN,"")},r.createRenderRoot=function(){var t=e.prototype.createRenderRoot.call(this);return t.addEventListener(pY,this._onToggleMenu),t.addEventListener(pj,this._onCloseMenu),t.addEventListener(pz,this._onMenuChange),t},r.render=function(){return this._template?hq(pJ(),ds(this._template)):hq(pX(),this._onMenuListChange)},r.firstUpdated=function(){this._onMenuListChange()},r.getMenuById=function(e){return e&&e!==this.id?d4(this._menus,function(t){return t.id===e}):this},r.openMenu=function(e,t){var r=this.getMenuById(e);if(r===this&&(r=this._menus[0]),!r)return!1;var n=this.getCurrentMenu_(),i=d8(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},r.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=d8(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},r.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)},r.hasCurrentMenu=function(){return this._openMenuStack.length>0},r.getCurrentMenu_=function(){return this._openMenuStack.length>0?this._openMenuStack[this._openMenuStack.length-1]:void 0},r.closeCurrentMenu=function(){var e=this.getCurrentMenu_();return void 0!==e&&(this.closeMenu(e.menu.id),!0)},r.isMenuOpen=function(e){var t=this.getMenuById(e);return!!t&&this._openMenuStack.some(function(e){return e.menu===t})},f(t,[{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){if(this._menuOpened!==e){this._menuOpened=e,d9(this,dh.MENU_OPENED,e),e?(this.removeAttribute(dh.HIDDEN),this.removeEventListener("keydown",this._onKeyDown),this.addEventListener("keydown",this._onKeyDown)):(this.setAttribute(dh.HIDDEN,""),this.removeEventListener("keydown",this._onKeyDown));var t=pR(pz,{bubbles:!0});this.dispatchEvent(t)}}},{key:"_menuSlot",get:function(){return db(this,rc)[rc]},set:function(e){db(this,rc)[rc]=e}}]),t}(h3),rv=(rg=(rb=a(rh,[[rf,4,"menuOpened_"],[function(e,t,r){var n=function(e){var t,r;return null!=(t=null==(r=e.renderRoot)?void 0:r.querySelector("slot"))?t:null};return dt(e,t,{get:function(){return n(this)}})},1,"_menuSlot"]],[rp],h3)).e)[0],r_=rg[1],rm=(rk=rb.c)[0],ry=rk[1],rd),rw=h8("theoplayer-menu-button"),rx=h9({reflect:!0,type:String,attribute:dh.MENU}),rE=h9({reflect:!0,state:!0,type:String,attribute:"aria-controls"});var p2=dk("____private__ariaControls_1"),p5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,p2,{writable:!0,value:void 0}),rA(t),t._menuId=null,db(t,p2)[p2]=rT(t,null),t}n(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=pR(pY,{bubbles:!0,composed:!0,detail:{menu:e}});this.dispatchEvent(t)}},f(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 db(this,p2)[p2]},set:function(e){db(this,p2)[p2]=e}}]),t}(H);function p3(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return p3=function(){return e},e}rT=(rS=(rL=a(p5,[[rx,4,"menu"],[rE,1,"_ariaControls"]],[rw],H)).e)[0],rA=rS[1],rC=(rR=rL.c)[0],(0,rR[1])(),rP=h8("theoplayer-menu-close-button");var p4=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.ARIA_LABEL,"close menu")},r.handleClick=function(){var e=pR(pj,{bubbles:!0,composed:!0});this.dispatchEvent(e)},r.render=function(){return hq(p3(),dQ('<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}(H);function p8(){var e=i(["<slot>","</slot>"]);return p8=function(){return e},e}rO=(rM=a(p4,[],[rP],H).c)[0],(0,rM[1])();var p7=["change","update"];rI=h8("theoplayer-media-track-radio-button"),rB=de(),rN=h9({reflect:!1,attribute:!1});var p6=dk("____private__trackLabel_1"),p9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,p6,{writable:!0,value:void 0}),t._track=void rD(t),db(t,p6)[p6]=r$(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(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&&d6(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 hq(p8(),this._trackLabel)},f(t,[{key:"_trackLabel",get:function(){return db(this,p6)[p6]},set:function(e){db(this,p6)[p6]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(p7,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(p7,this._onTrackChange))}}]),t}(tQ);function ye(){var e=i([":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 ye=function(){return e},e}r$=(rU=(rF=a(p9,[[rB,1,"_trackLabel"],[rN,4,"track"]],[rI],tQ)).e)[0],rD=rU[1],rq=(rj=rF.c)[0],(0,rj[1])();var yt=ht(ye());function yr(e){return"subtitles"===e.kind||"captions"===e.kind}function yn(e){return yr(e)&&!e.forced}function yi(e){var t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}function ya(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 yo=function(e,t,r){for(var n=new Map,i=t;i<=r;i++)n.set(e[i],i);return n},yl=da(function(e){function t(e){var r;if(p(this,t),r=d(this,t,[e]),2!==e.type)throw Error("repeat() can only be used in text expressions");return r}return n(t,e),f(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=m(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,_=l.length-1,b=0,g=u.length-1;v<=_&&b<=g;)if(null===l[v])v++;else if(null===l[_])_--;else if(y[v]===c[b])f[b]=dC(l[v],u[b]),v++,b++;else if(y[_]===c[g])f[g]=dC(l[_],u[g]),_--,g--;else if(y[v]===c[g])f[g]=dC(l[v],u[g]),dA(e,f[g+1],l[v]),v++,g--;else if(y[_]===c[b])f[b]=dC(l[_],u[b]),dA(e,l[v],l[_]),_--,b++;else if(void 0===d&&(d=yo(c,b,g),p=yo(y,v,_)),d.has(y[v]))if(d.has(y[_])){var k=p.get(c[b]),w=void 0!==k?l[k]:null;if(null===w){var x=dA(e,l[v]);dC(x,u[b]),f[b]=x}else f[b]=dC(w,u[b]),dA(e,l[v],w),l[k]=null;b++}else dS(l[_]),_--;else dS(l[v]),v++;for(;b<=g;){var E=dA(e,f[g+1]);dC(E,u[b]),f[b++]=E}for(;v<=_;){var T=l[v++];null!==T&&dS(T)}return this.ut=c,void 0===(r=f)&&(r=dL),e._$AH=r,hF}}]),t}(dl));function ys(){var e=i(['<theoplayer-text-track-off-radio-button .trackList="','"></theoplayer-text-track-off-radio-button>']);return ys=function(){return e},e}function yu(){var e=i(['<theoplayer-text-track-radio-button .track="','"></theoplayer-text-track-radio-button>']);return yu=function(){return e},e}function yc(){var e=i(['<theoplayer-media-track-radio-button .track="','"></theoplayer-media-track-radio-button>']);return yc=function(){return e},e}function yh(){var e=i(['<theoplayer-radio-group @change="','">'," ","</theoplayer-radio-group>"]);return yh=function(){return e},e}var yd=["addtrack","removetrack"];function yp(){var e=i(["<slot>","</slot>"]);return yp=function(){return e},e}rQ=h8("theoplayer-track-radio-group"),rW=po(["player"]),rZ=de(),rY=h9({reflect:!0,type:String,attribute:dh.TRACK_TYPE}),rJ=h9({reflect:!0,type:Boolean,attribute:dh.SHOW_OFF}),new(rG=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yt],rK(),t}return n(t,e),t}(o),rz=dk("____private__tracksList_1"),rV=dk("____private_showOffButton_2"),rH=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,rz,{writable:!0,value:void 0}),Object.defineProperty(t,rV,{writable:!0,value:void 0}),r1(t),t._trackType="audio",db(t,rz)[rz]=rX(t),db(t,rV)[rV]=r0(t,!1),t._updateTracks=function(){return t.requestUpdate()},t._onChange=function(){t.dispatchEvent(pS("change",{bubbles:!0}))},t}n(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(yd,this._updateTracks),null==t||t.addEventListener(yd,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(yn):[]},r.render=function(){var e=this._getTracks(),t="subtitles"===this.trackType;return hq(yh(),this._onChange,this.showOffButton&&t?hq(ys(),this._tracksList):void 0,yl(e,function(e){return e.uid},function(e){return t?hq(yu(),e):hq(yc(),e)}))},f(t,[{key:"_tracksList",get:function(){return db(this,rz)[rz]},set:function(e){db(this,rz)[rz]=e}},{key:"trackType",get:function(){return this._trackType},set:function(e){this._trackType=e,this._updateTracksList()}},{key:"showOffButton",get:function(){return db(this,rV)[rV]},set:function(e){db(this,rV)[rV]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(this._player=e,this._updateTracksList(),this._updateTracks())}}]),t}(h3),rX=(r3=(r5=a(rH,[[rZ,1,"_tracksList"],[rY,4,"trackType"],[rJ,1,"showOffButton"]],[rQ,rW],h3)).e)[0],r0=r3[1],r1=r3[2],r2=(r4=r5.c)[0],rK=r4[1],rG);var yy=["change","update"];r8=h8("theoplayer-text-track-radio-button"),r7=de(),r6=h9({reflect:!1,attribute:!1});var yf=dk("____private__trackLabel_1"),yv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,yf,{writable:!0,value:void 0}),t._track=void ne(t),db(t,yf)[yf]=r9(t,""),t._onTrackChange=function(){t._updateFromTrack()},t}n(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&&d6(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 hq(yp(),this._trackLabel)},f(t,[{key:"_trackLabel",get:function(){return db(this,yf)[yf]},set:function(e){db(this,yf)[yf]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(yy,this._onTrackChange),this._track=e,this._updateFromTrack(),e&&e.addEventListener(yy,this._onTrackChange))}}]),t}(tQ);function y_(){var e=i(["<slot>Off</slot>"]);return y_=function(){return e},e}r9=(nn=(nr=a(yv,[[r7,1,"_trackLabel"],[r6,4,"track"]],[r8],tQ)).e)[0],ne=nn[1],nt=(ni=nr.c)[0],(0,ni[1])();var ym=["change"];na=h8("theoplayer-text-track-off-radio-button"),no=h9({reflect:!1,attribute:!1});var yb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._trackList=void nl(t),t._onTrackChange=function(){t._updateFromTrackList()},t}n(t,e);var r=t.prototype;return r._updateFromTrackList=function(){this.checked=!this._trackList||!this._trackList.some(function(e){return yn(e)&&"showing"===e.mode})},r._updateTrackList=function(){this._trackList&&this.checked&&function(e){for(var t,r=dZ(e);!(t=r()).done;){var n=t.value;yr(n)&&"showing"===n.mode&&(n.mode="disabled")}}(this._trackList)},r.handleChange=function(){this._updateTrackList()},r.render=function(){return hq(y_())},f(t,[{key:"trackList",get:function(){return this._trackList},set:function(e){this._trackList&&this._trackList.removeEventListener(ym,this._onTrackChange),this._trackList=e,this._updateFromTrackList(),e&&e.addEventListener(ym,this._onTrackChange)}}]),t}(tQ);function yg(){var e=i([".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 yg=function(){return e},e}nl=(nu=a(yb,[[no,4,"trackList"]],[na],tQ)).e[0],ns=(nc=nu.c)[0],(0,nc[1])();var yk=ht(yg());function yw(){var e=i([".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 yw=function(){return e},e}var yx=ht(yw());function yE(){var e=i(["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 yE=function(){return e},e}var yT=ht(yE());function yA(e){var t,r;return e?d7(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:d7(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 yC(e){return"rgba("+e.r_+","+e.g_+","+e.b_+","+e.a_+")"}function yL(e){return"rgb("+e.r_+","+e.g_+","+e.b_+")"}function yS(e,t){return{r_:e.r_,g_:e.g_,b_:e.b_,a_:t}}var yR=yA("#ffffff"),yP=yA("#000000"),yO=[["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)"]],yM=[["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']],yI=[["None","none"],["Drop shadow","dropshadow"],["Raised","raised"],["Depressed","depressed"],["Uniform","uniform"]];function yB(){var e=i(["<span>","</span>"]);return yB=function(){return e},e}nh=h8("theoplayer-text-track-style-display"),nd=po(["player"]),np=h9({reflect:!0,type:String,attribute:dh.PROPERTY}),ny=h9({reflect:!1,attribute:!1});var yN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nf(t),t._property="fontColor",t._updateFromPlayer=function(){return t.requestUpdate()},t}n(t,e);var r=t.prototype;return r.render=function(){return hq(yB(),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=d4(yM,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=yA(e);if(t){var r=yL(t),n=d4(yO,function(e){return e[0],e[1]===r});if(n)return n[0]}return"Custom"}(this._player.textTrackStyle[e]);case"fontOpacity":return y$(this._player.textTrackStyle.fontColor);case"backgroundOpacity":return y$(this._player.textTrackStyle.backgroundColor);case"windowOpacity":return y$(this._player.textTrackStyle.windowColor);case"edgeStyle":var n=this._player.textTrackStyle.edgeStyle;if(!n)return"Default";var i=d4(yI,function(e){return e[0],e[1]===n});return i?i[0]:"Custom";default:return this._player.textTrackStyle[e]||"Default"}},f(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}(h3);function y$(e){if(!e)return"Default";var t=yA(e);return t?""+100*t.a_+"%":"Custom"}function yD(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return yD=function(){return e},e}function yq(e,t,r){var n,i,a,o=null!=(n=null==(i=yA(t))?void 0:i.a_)?n:1;if(""!==e||1!==o)return yC(yS(null!=(a=yA(e))?a:r,o))}function yF(e,t,r){var n,i=null!=(n=yA(t))?n:r;if(""!==e||i.r_!==r.r_||i.g_!==r.g_||i.b_!==r.b_)return yC(yS(i,""==e?1:Number(e)/100))}function yU(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yU=function(){return e},e}function yj(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yj=function(){return e},e}function yz(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yz=function(){return e},e}function yV(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yV=function(){return e},e}function yH(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yH=function(){return e},e}function yG(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yG=function(){return e},e}function yQ(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yQ=function(){return e},e}function yW(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yW=function(){return e},e}function yK(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return yK=function(){return e},e}function yZ(){var e=i(['<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 yZ=function(){return e},e}nf=(n_=a(yN,[[np,4,"property"],[ny,4,"player"]],[nh,nd],h3)).e[0],nv=(nm=n_.c)[0],(0,nm[1])(),nk=h8("theoplayer-text-track-style-radio-group"),nw=po(["player"]),nE=h9({reflect:!0,type:String,attribute:dh.PROPERTY}),nT=h9({reflect:!1,attribute:!1}),nA=h9({reflect:!1,attribute:!1}),new(ng=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yt],nx(),t}return n(t,e),t}(o),nb=function(e){function t(){var t;return t=e.apply(this,arguments)||this,nC(t),t._radioGroupRef=d$(),t._property="fontColor",t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=e.value)},t._updateFromPlayer=function(){if(void 0!==t._player)switch(t.property){case"fontColor":var e,r,n=t._player.textTrackStyle.fontColor;t.value=n?yL(null!=(r=yA(n))?r:yR):"";break;case"backgroundColor":var i,a=t._player.textTrackStyle.backgroundColor;t.value=a?yL(null!=(i=yA(a))?i:yP):"";break;case"windowColor":var o,l=t._player.textTrackStyle.windowColor;t.value=l?yL(null!=(o=yA(l))?o:yP):"";break;case"fontOpacity":var s,u,c=t._player.textTrackStyle.fontColor;t.value=c?String((null!=(s=null==(u=yA(c))?void 0:u.a_)?s:1)*100):"";break;case"backgroundOpacity":var h,d,p=t._player.textTrackStyle.backgroundColor;t.value=p?String((null!=(h=null==(d=yA(p))?void 0:d.a_)?h:1)*100):"";break;case"windowOpacity":var y,f,v=t._player.textTrackStyle.windowColor;t.value=v?String((null!=(y=null==(f=yA(v))?void 0:f.a_)?y:1)*100):"";break;default:t.value=null!=(e=t._player.textTrackStyle[t.property])?e:""}},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;x(e,t5)||customElements.upgrade(e),e.value=this.value},r._updateToPlayer=function(){if(void 0!==this._player)switch(this.property){case"fontColor":this._player.textTrackStyle.fontColor=yq(this.value,this._player.textTrackStyle.fontColor,yR);break;case"backgroundColor":this._player.textTrackStyle.backgroundColor=yq(this.value,this._player.textTrackStyle.backgroundColor,yP);break;case"windowColor":this._player.textTrackStyle.windowColor=yq(this.value,this._player.textTrackStyle.windowColor,yP);break;case"fontOpacity":this._player.textTrackStyle.fontColor=yF(this.value,this._player.textTrackStyle.fontColor,yR);break;case"backgroundOpacity":this._player.textTrackStyle.backgroundColor=yF(this.value,this._player.textTrackStyle.backgroundColor,yP);break;case"windowOpacity":this._player.textTrackStyle.windowColor=yF(this.value,this._player.textTrackStyle.windowColor,yP);break;default:this._player.textTrackStyle[this.property]=""==this.value?void 0:this.value}},r.render=function(){return hq(yD(),dF(this._radioGroupRef),this._onChange)},f(t,[{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(pS("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))}}]),t}(h3),nC=(nS=a(nb,[[nE,4,"property"],[nT,4,"value"],[nA,4,"player"]],[nk,nw],h3)).e[0],nL=(nR=nS.c)[0],nx=nR[1],ng);var yY=[{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)"}],yJ=[{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'}],yX=[{label:"Default",value:""},{label:"50%",value:"50%"},{label:"75%",value:"75%"},{label:"100%",value:"100%"},{label:"150%",value:"150%"},{label:"200%",value:"200%"}],y0=[{label:"Default",value:""},{label:"25%",value:"25"},{label:"50%",value:"50"},{label:"75%",value:"75"},{label:"100%",value:"100"}],y1=[{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 y2(){var e=i(['<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 y2=function(){return e},e}nM=h8("theoplayer-text-track-style-menu"),new(nO=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rm.styles,[yT,yx]),nI(),t}return n(t,e),t}(o),nP=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hq(yZ(),yJ.map(function(e){var t=e.label,r=e.value;return hq(yU(),r,t)}),yY.map(function(e){var t=e.label,r=e.value;return hq(yj(),r,t)}),y0.map(function(e){var t=e.label,r=e.value;return hq(yz(),r,t)}),yX.map(function(e){var t=e.label,r=e.value;return hq(yV(),r,t)}),yY.map(function(e){var t=e.label,r=e.value;return hq(yH(),r,t)}),y0.map(function(e){var t=e.label,r=e.value;return hq(yG(),r,t)}),yY.map(function(e){var t=e.label,r=e.value;return hq(yQ(),r,t)}),y0.map(function(e){var t=e.label,r=e.value;return hq(yW(),r,t)}),y1.map(function(e){var t=e.label,r=e.value;return hq(yK(),r,t)}))},t}(nB=rm),nN=(n$=a(nP,[],[nM],nB).c)[0],nI=n$[1],nO);var y5=["addtrack","removetrack"];function y3(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return y3=function(){return e},e}nj=h8("theoplayer-language-menu"),nz=po(["player"]),nG=h9({state:!0}),nQ=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.HAS_AUDIO}),nW=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.HAS_SUBTITLES}),new(nU=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rm.styles,[yk]),nV(),t}return n(t,e),t}(o),nD=dk("____private__hasAudioTracks_1"),nq=dk("____private__hasSubtitles_2"),nF=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,nD,{writable:!0,value:void 0}),Object.defineProperty(t,nq,{writable:!0,value:void 0}),db(t,nD)[nD]=(nY(t),nK(t,!1)),db(t,nq)[nq]=nZ(t,!1),t._updateAudioTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.audioTracks)?e:[];t._hasAudioTracks=n.length>1},t._updateTextTracks=function(){var e,r,n=null!=(e=null==(r=t._player)?void 0:r.textTracks.filter(yn))?e:[];t._hasSubtitles=n.length>0},t}return n(t,e),t.prototype.render=function(){return hq(y2())},f(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(y5,this._updateAudioTracks),null==(r=this._textTrackList)||r.removeEventListener(y5,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(y5,this._updateAudioTracks),null==(i=this._textTrackList)||i.addEventListener(y5,this._updateTextTracks))}},{key:"_hasAudioTracks",get:function(){return db(this,nD)[nD]},set:function(e){db(this,nD)[nD]=e}},{key:"_hasSubtitles",get:function(){return db(this,nq)[nq]},set:function(e){db(this,nq)[nq]=e}}]),t}(nH=rm),nK=(n0=(nX=a(nF,[[nG,4,"player"],[nQ,1,"_hasAudioTracks"],[nW,1,"_hasSubtitles"]],[nj,nz],nH)).e)[0],nZ=n0[1],nY=n0[2],nJ=(n1=nX.c)[0],nV=n1[1],nU);var y4=["addtrack","removetrack"];n2=h8("theoplayer-language-menu-button"),n5=po(["player"]),n3=h9({reflect:!1,attribute:!1});var y8=function(e){function t(){var t;return t=e.apply(this,arguments)||this,n4(t),t._updateTracks=function(){var e=void 0!==t._player&&(t._player.audioTracks.length>=2||t._player.textTracks.some(yn));d9(t,dh.HIDDEN,!e)},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.ARIA_LABEL,"open language menu")},r.render=function(){return hq(y3(),dQ('<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'))},f(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(y4,this._updateTracks),null==(r=this._textTrackList)||r.removeEventListener(y4,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(y4,this._updateTracks),null==(i=this._textTrackList)||i.addEventListener(y4,this._updateTracks))}}]),t}(rC);function y7(){var e=i(["<theoplayer-radio-group ",' @change="','"><slot></slot></theoplayer-radio-group>']);return y7=function(){return e},e}function y6(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return y6=function(){return e},e}n4=(n7=a(y8,[[n3,4,"player"]],[n2,n5],rC)).e[0],n8=(n6=n7.c)[0],(0,n6[1])(),it=h8("theoplayer-playback-rate-radio-group"),ir=po(["player"]),ia=de(),io=de(),new(ie=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yt],ii(),t}return n(t,e),t}(o),n9=function(e){function t(){var t;return t=e.apply(this,arguments)||this,il(t),t._radioGroupRef=d$(),t._value=1,t._onChange=function(){var e=t._radioGroupRef.value;e&&(t.value=Number(e.value))},t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.playbackRate)},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){var e=this._radioGroupRef.value;x(e,t5)||customElements.upgrade(e),e.value=String(this.value)},r.render=function(){return hq(y7(),dF(this._radioGroupRef),this._onChange)},f(t,[{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(pS("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))}}]),t}(h3),il=(iu=a(n9,[[ia,4,"value"],[io,4,"player"]],[it,ir],h3)).e[0],is=(ic=iu.c)[0],ii=ic[1],ie),ih=h8("theoplayer-playback-rate-menu-button");var y9=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.ARIA_LABEL,"open playback speed menu")},r.render=function(){return hq(y6(),dQ('<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}(rC);function fe(){var e=i(['<span slot="heading"><slot name="heading">Playback speed</slot></span>']);return fe=function(){return e},e}function ft(){var e=i(['<theoplayer-radio-button value="','">',"</theoplayer-radio-button>"]);return ft=function(){return e},e}function fr(){var e=i(["<theoplayer-playback-rate-radio-group>","</theoplayer-playback-rate-radio-group>"]);return fr=function(){return e},e}id=(ip=a(y9,[],[ih],rC).c)[0],(0,ip[1])();var fn=[.25,.5,1,1.25,1.5,2];iy=h8("theoplayer-playback-rate-menu");var fi=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.renderMenuHeading=function(){return hq(fe())},r.renderMenuContent=function(){return hq(fr(),fn.map(function(e){return hq(ft(),e,1===e?"Normal":""+e+"x")}))},t}(ro);function fa(){var e=i(["<span>","</span>"]);return fa=function(){return e},e}iv=(i_=a(fi,[],[iy],ro).c)[0],(0,i_[1])(),im=h8("theoplayer-playback-rate-display"),ib=po(["playbackRate"]),ig=de();var fo=dk("____private_playbackRate_1"),fl=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fo,{writable:!0,value:void 0}),db(t,fo)[fo]=(iw(t),ik(t,1)),t}return n(t,e),t.prototype.render=function(){return hq(fa(),1===this.playbackRate?"Normal":""+this.playbackRate+"x")},f(t,[{key:"playbackRate",get:function(){return db(this,fo)[fo]},set:function(e){db(this,fo)[fo]=e}}]),t}(h3);function fs(){var e=i(["<span>","</span>"]);return fs=function(){return e},e}ik=(iT=(iE=a(fl,[[ig,1,"playbackRate"]],[im,ib],h3)).e)[0],iw=iT[1],ix=(iA=iE.c)[0],(0,iA[1])(),iC=h8("theoplayer-active-quality-display"),iL=po(["activeVideoQuality","targetVideoQualities"]),iS=h9({reflect:!1,attribute:!1}),iR=h9({reflect:!1,attribute:!1});var fu=dk("____private_activeVideoQuality_1"),fc=dk("____private_targetVideoQualities_2"),fh=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,fu,{writable:!0,value:void 0}),Object.defineProperty(t,fc,{writable:!0,value:void 0}),db(t,fu)[fu]=(iM(t),iP(t,void 0)),db(t,fc)[fc]=iO(t,void 0),t}return n(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=ya(null!=r?r:this.activeVideoQuality);return e=t?null!=n?n:"Unknown":"Automatic"+(n?" ("+n+")":""),hq(fs(),e)},f(t,[{key:"activeVideoQuality",get:function(){return db(this,fu)[fu]},set:function(e){db(this,fu)[fu]=e}},{key:"targetVideoQualities",get:function(){return db(this,fc)[fc]},set:function(e){db(this,fc)[fc]=e}}]),t}(h3);function fd(){var e=i(["<slot>","</slot>"]);return fd=function(){return e},e}iP=(iN=(iB=a(fh,[[iS,1,"activeVideoQuality"],[iR,1,"targetVideoQualities"]],[iC,iL],h3)).e)[0],iO=iN[1],iM=iN[2],iI=(i$=iB.c)[0],(0,i$[1])();var fp=["activequalitychanged","targetqualitychanged"],fy=["update"];iD=h8("theoplayer-quality-radio-button"),iq=de(),iF=h9({reflect:!1,attribute:!1}),iU=h9({reflect:!1,attribute:!1});var ff=dk("____private__qualityLabel_1"),fv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ff,{writable:!0,value:void 0}),t._track=void iz(t),t._quality=void 0,db(t,ff)[ff]=ij(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=ya(t._quality))?e:"Automatic"},t}n(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 hq(fd(),this._qualityLabel)},f(t,[{key:"_qualityLabel",get:function(){return db(this,ff)[ff]},set:function(e){db(this,ff)[ff]=e}},{key:"track",get:function(){return this._track},set:function(e){this._track!==e&&(this._track&&this._track.removeEventListener(fp,this._updateFromTrack),this._track=e,this._updateFromTrack(),e&&e.addEventListener(fp,this._updateFromTrack))}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality!==e&&(this._quality&&this._quality.removeEventListener(fy,this._updateFromQuality),this._quality=e,this._updateFromTrack(),e&&e.addEventListener(fy,this._updateFromQuality))}}]),t}(tQ);function f_(){var e=i(['<theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>']);return f_=function(){return e},e}function fm(){var e=i(['<theoplayer-radio-group @change="','"><theoplayer-quality-radio-button .track="','" .quality="','"></theoplayer-quality-radio-button>',"</theoplayer-radio-group>"]);return fm=function(){return e},e}ij=(iG=(iH=a(fv,[[iq,1,"_qualityLabel"],[iF,4,"track"],[iU,4,"quality"]],[iD],tQ)).e)[0],iz=iG[1],iV=(iQ=iH.c)[0],(0,iQ[1])();var fb=["addtrack","removetrack","change"];function fg(){var e=i(["<slot>Reset</slot>"]);return fg=function(){return e},e}iY=h8("theoplayer-quality-radio-group"),iJ=po(["player"]),i0=de(),i1=de(),new(iZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yt],iX(),t}return n(t,e),t}(o),iW=dk("____private__track_1"),iK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,iW,{writable:!0,value:void 0}),db(t,iW)[iW]=(i5(t),i2(t)),t._onChange=function(){t.dispatchEvent(pS("change",{bubbles:!0}))},t._updateTrack=function(){var e,r,n=t._player?d4(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}n(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 hq(fm(),this._onChange,this._track,void 0,1!==t.length&&yl(t,function(e){return e.uid},function(t){return hq(f_(),e._track,t)}))},f(t,[{key:"_track",get:function(){return db(this,iW)[iW]},set:function(e){db(this,iW)[iW]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._videoTracks)||t.removeEventListener(fb,this._updateTrack),this._player=e,this._videoTracks=null==e?void 0:e.videoTracks,this._updateTrack(),null==(r=this._videoTracks)||r.addEventListener(fb,this._updateTrack))}}]),t}(h3),i2=(i8=(i4=a(iK,[[i0,1,"_track"],[i1,4,"player"]],[iY,iJ],h3)).e)[0],i5=i8[1],i3=(i7=i4.c)[0],iX=i7[1],iZ),i6=h8("theoplayer-text-track-style-reset-button"),i9=po(["player"]);var fk=function(e){function t(){return e.apply(this,arguments)||this}n(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 hq(fg())},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player=e}}]),t}(H);function fw(){var e=i(['<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 fw=function(){return e},e}ae=(at=a(fk,[],[i6,i9],H).c)[0],(0,at[1])(),ai=h8("theoplayer-settings-menu"),new(an=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rm.styles,[yT]),aa(),t}return n(t,e),t}(o),ar=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t.prototype.render=function(){return hq(fw())},t}(ao=rm),al=(as=a(ar,[],[ai],ao).c)[0],aa=as[1],an);var fx='<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 fE(){var e=i(['<span part="icon"><slot>',"</slot></span>"]);return fE=function(){return e},e}au=h8("theoplayer-settings-menu-button");var fT=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.ARIA_LABEL,"open settings menu")},r.render=function(){return hq(fE(),dQ(fx))},t}(rC);function fA(){var e=i([":host(:not([fullscreen])) [part=exit-icon],:host([fullscreen]) [part=enter-icon]{display:none!important}"]);return fA=function(){return e},e}ac=(ah=a(fT,[],[au],rC).c)[0],(0,ah[1])();var fC=ht(fA()),fL="theoplayerfullscreenenter",fS="theoplayerfullscreenexit";function fR(){var e=i(['<span part="enter-icon"><slot name="enter-icon">','</slot></span><span part="exit-icon"><slot name="exit-icon">',"</slot></span>"]);return fR=function(){return e},e}function fP(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=m(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 fO(){var e=i([":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 fO=function(){return e},e}af=h8("theoplayer-fullscreen-button"),av=po(["fullscreen"]),am=h9({reflect:!0,type:Boolean,attribute:dh.FULLSCREEN}),new(ay=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[fC]),a_(),t}return n(t,e),t}(o),ad=dk("____private_fullscreen_1"),ap=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ad,{writable:!0,value:void 0}),db(t,ad)[ad]=(ag(t),ab(t,!1)),t}n(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=pR(fS,{bubbles:!0,composed:!0});this.dispatchEvent(e)}else{var t=pR(fL,{bubbles:!0,composed:!0});this.dispatchEvent(t)}},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),ak.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e=this.fullscreen?"exit fullscreen":"enter fullscreen";this.setAttribute(dh.ARIA_LABEL,e)},r.render=function(){return hq(fR(),dQ('<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'),dQ('<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'))},f(t,[{key:"fullscreen",get:function(){return db(this,ad)[ad]},set:function(e){db(this,ad)[ad]=e}}]),t}(H),ab=(ax=(aw=a(ap,[[am,1,"fullscreen"]],[af,av],H)).e)[0],ag=ax[1],ak=(aE=aw.c)[0],a_=aE[1],ay);var fM=ht(fO()),fI=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=d8(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=dZ(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}(),fB="important",fN=" !"+fB,f$=da(function(e){function t(e){var r,n;if(p(this,t),r=d(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 n(t,e),f(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=m(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(fN);c.includes("-")||d?n.setProperty(c,d?h.slice(0,-11):h,d?fB:""):n[c]=h}}return hF}}]),t}(dl));function fD(){var e=i(['<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 fD=function(){return e},e}function fq(){var e=i([""]);return fq=function(){return e},e}function fF(){var e=i(["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 fF=function(){return e},e}aP=po(["deviceType"]),aM=de(),aI=h9({reflect:!0,type:Boolean,attribute:dh.DISABLED}),aB=h9({reflect:!0,type:Boolean,attribute:dh.HIDDEN}),aN=h9({reflect:!0,type:Boolean,attribute:dh.INERT}),a$=h9({reflect:!1,attribute:!1}),aD=h9({reflect:!0,type:Number,attribute:"min"}),aq=h9({reflect:!0,type:Number,attribute:"max"}),aF=h9({reflect:!0,attribute:"step",converter:{fromAttribute:function(e){return null==e||"any"===e?"any":Number(e)}}}),aU=h9({reflect:!0,type:String,attribute:dh.DEVICE_TYPE}),aj=h9({reflect:!0,type:String,attribute:"aria-live"}),new(aR=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fM],aO(),t}return n(t,e),t}(o),aT=dk("____private__pointerWidth_1"),aA=dk("____private_step_2"),aC=dk("____private_deviceType_3"),aL=dk("____private_ariaLive_4"),aS=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,aT,{writable:!0,value:void 0}),Object.defineProperty(t,aA,{writable:!0,value:void 0}),Object.defineProperty(t,aC,{writable:!0,value:void 0}),Object.defineProperty(t,aL,{writable:!0,value:void 0}),aQ(t),t._rangeRef=d$(),t._min=0,t._max=100,t._value=0,t._disabled=!1,t._hidden=!1,t._inert=!1,t._rangeWidth=0,t._thumbWidth=10,db(t,aT)[aT]=az(t,0),db(t,aA)[aA]=aV(t,"any"),db(t,aC)[aC]=aH(t,"desktop"),db(t,aL)[aL]=aG(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}n(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(){fP(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 fI;return a.add("var(--theoplayer-range-bar-color, #fff)",0,n+i),a},r.updateCachedWidths_=function(){var e,t,r=null!=(e=null==(t=this._rangeRef.value)?void 0:t.offsetWidth)?e: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&&dp(e.keyCode)&&(e.keyCode===dd.LEFT||e.keyCode===dd.RIGHT?e.stopPropagation():(e.keyCode===dd.UP||e.keyCode===dd.DOWN)&&e.preventDefault())},r.render=function(){return hq(fD(),f$({width:""+this._pointerWidth+"px"}),dF(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 hq(fq())},f(t,[{key:"_pointerWidth",get:function(){return db(this,aT)[aT]},set:function(e){db(this,aT)[aT]=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 db(this,aA)[aA]},set:function(e){db(this,aA)[aA]=e}},{key:"deviceType",get:function(){return db(this,aC)[aC]},set:function(e){db(this,aC)[aC]=e}},{key:"ariaLive",get:function(){return db(this,aL)[aL]},set:function(e){db(this,aL)[aL]=e}}]),t}(h3),az=(aZ=(aK=a(aS,[[aM,1,"_pointerWidth"],[aI,4,"disabled"],[aB,4,"hidden"],[aN,4,"inert"],[a$,4,"value"],[aD,4,"min"],[aq,4,"max"],[aF,1,"step"],[aU,1,"deviceType"],[aj,1,"ariaLive"]],[aP],h3)).e)[0],aV=aZ[1],aH=aZ[2],aG=aZ[3],aQ=aZ[4],aW=(aY=aK.c)[0],aO=aY[1],aR);var fU=ht(fF()),fj="theoplayerpreviewtimechange";function fz(e){return"linear"===e.type}function fV(){var e=i([":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 fV=function(){return e},e}var fH=ht(fV());function fG(){var e=i(["<canvas ",' style="','"></canvas>']);return fG=function(){return e},e}var fQ=["addtrack","removetrack"];function fW(e){return"metadata"===e.kind&&"thumbnails"===e.label}function fK(){var e=i(["<span>","</span>"]);return fK=function(){return e},e}a1=h8("theoplayer-preview-thumbnail"),a2=po(["player","previewTime"]),a3=de(),a4=h9({reflect:!1,attribute:!1}),a8=de(),new(a0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[fH],a5(),t}return n(t,e),t}(o),aJ=dk("____private__thumbnailVisible_1"),aX=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,aJ,{writable:!0,value:void 0}),a6(t),t._canvasRef=d$(),t._previewTime=NaN,db(t,aJ)[aJ]=a7(t,!1),t._updateThumbnailTextTrack=function(){var e=t._thumbnailTextTrack,r=t._player?d4(t._player.textTracks,fW):void 0;e!==r&&(t._thumbnailTextTrack=r,t.updateThumbnail_())},t._thumbnailImageSource=document.createElement("img"),t._thumbnailImageSource.decoding="async",t}n(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=dZ(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;(i=new URL(i,e.src||location.href).href,this._lastLoadedThumbnailUrl!==i)?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,d0)):(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 hq(fG(),dF(this._canvasRef),f$(e))},f(t,[{key:"_thumbnailVisible",get:function(){return db(this,aJ)[aJ]},set:function(e){db(this,aJ)[aJ]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._textTrackList)||t.removeEventListener(fQ,this._updateThumbnailTextTrack),this._player=e,this._textTrackList=null==e?void 0:e.textTracks,this._updateThumbnailTextTrack(),null==(r=this._textTrackList)||r.addEventListener(fQ,this._updateThumbnailTextTrack))}},{key:"previewTime",get:function(){return this._previewTime},set:function(e){this._previewTime=e,this.updateThumbnail_()}}]),t}(h3),a7=(ot=(oe=a(aX,[[a3,1,"_thumbnailVisible"],[a4,4,"player"],[a8,4,"previewTime"]],[a1,a2],h3)).e)[0],a6=ot[1],a9=(or=oe.c)[0],a5=or[1],a0);var fZ=["timeupdate","seeking","seeked","durationchange"];function fY(){var e=i(['<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 fY=function(){return e},e}oc=h8("theoplayer-preview-time-display"),oh=po(["player","previewTime","streamType"]),op=de(),oy=h9({reflect:!0,type:Boolean,attribute:dh.REMAINING}),of=h9({reflect:!0,type:Boolean,attribute:dh.REMAINING_WHEN_LIVE}),ov=h9({reflect:!0,type:String,attribute:dh.STREAM_TYPE}),o_=h9({reflect:!1,attribute:!1}),om=de(),new(ou=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pb],od(),t}return n(t,e),t}(o),on=dk("____private_previewTime_1"),oi=dk("____private_remaining_2"),oa=dk("____private_remainingWhenLive_3"),oo=dk("____private_streamType_4"),ol=dk("____private__endTime_5"),os=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,on,{writable:!0,value:void 0}),Object.defineProperty(t,oi,{writable:!0,value:void 0}),Object.defineProperty(t,oa,{writable:!0,value:void 0}),Object.defineProperty(t,oo,{writable:!0,value:void 0}),Object.defineProperty(t,ol,{writable:!0,value:void 0}),db(t,on)[on]=(oE(t),ob(t,NaN)),db(t,oi)[oi]=og(t,!1),db(t,oa)[oa]=ok(t,!1),db(t,oo)[oo]=ow(t,"vod"),db(t,ol)[ol]=ox(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}n(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)),hq(fK(),pk(e,t,r))},f(t,[{key:"previewTime",get:function(){return db(this,on)[on]},set:function(e){db(this,on)[on]=e}},{key:"remaining",get:function(){return db(this,oi)[oi]},set:function(e){db(this,oi)[oi]=e}},{key:"remainingWhenLive",get:function(){return db(this,oa)[oa]},set:function(e){db(this,oa)[oa]=e}},{key:"streamType",get:function(){return db(this,oo)[oo]},set:function(e){db(this,oo)[oo]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(fZ,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(fZ,this._updateFromPlayer))}},{key:"_endTime",get:function(){return db(this,ol)[ol]},set:function(e){db(this,ol)[ol]=e}}]),t}(h3),ob=(oC=(oA=a(os,[[op,1,"previewTime"],[oy,1,"remaining"],[of,1,"remainingWhenLive"],[ov,1,"streamType"],[o_,4,"player"],[om,1,"_endTime"]],[oc,oh],h3)).e)[0],og=oC[1],ok=oC[2],ow=oC[3],ox=oC[4],oE=oC[5],oT=(oL=oA.c)[0],od=oL[1],ou);var fJ=["timeupdate","durationchange","ratechange","seeking","seeked"],fX=["play","pause","ended","durationchange","readystatechange","error"],f0=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];oO=h8("theoplayer-time-range"),oM=po(["player","streamType","deviceType"]),oB=h9({reflect:!1,attribute:!1}),oN=h9({reflect:!0,type:String,attribute:dh.STREAM_TYPE}),o$=h9({reflect:!0,type:Boolean,attribute:dh.SHOW_AD_MARKERS}),oD=de(),new(oP=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(aW.styles,[fU]),oI(),t}return n(t,e),t}(o),oS=dk("____private__previewRailTransform_1"),oR=function(e){function t(){var t;return Object.defineProperty(t=e.call(this)||this,oS,{writable:!0,value:void 0}),oF(t),t._previewBoxEl=d$(),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)},db(t,oS)[oS]=oq(t,""),t._onAdChange=function(){t._updateRange()},t}n(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(dh.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=pE(this.value),t=pE(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=pR(fj,{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=dZ(this._player.ads.scheduledAdBreaks);!(r=a()).done;){var o=r.value;if(void 0===o.ads||!(o.ads.length>0)||o.ads.some(fz)){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===dd.ENTER&&void 0!==this._player&&(this._player.paused?this._player.play():this._player.pause())},r.renderRangeExtras=function(){return hq(fY(),f$({transform:this._previewRailTransform}),dF(this._previewBoxEl))},f(t,[{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(fJ,this._updateFromPlayer),this._player.removeEventListener(fX,this._toggleAutoAdvance)),null==(t=this._ads)||t.removeEventListener(f0,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),this._toggleAutoAdvance(),void 0!==this._player&&(this._player.addEventListener(fJ,this._updateFromPlayer),this._player.addEventListener(fX,this._toggleAutoAdvance)),null==(r=this._ads)||r.addEventListener(f0,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 db(this,oS)[oS]},set:function(e){db(this,oS)[oS]=e}}]),t}(aW),oq=(oz=(oj=a(oR,[[oB,4,"player"],[oN,4,"streamType"],[o$,4,"showAdMarkers"],[oD,1,"_previewRailTransform"]],[oO,oM],aW)).e)[0],oF=oz[1],oU=(oV=oj.c)[0],oI=oV[1],oP),oH=h8("theoplayer-volume-range"),oG=po(["player","deviceType"]),oQ=h9({reflect:!1,attribute:!1});var f1=function(e){function t(){var t;return t=e.call(this)||this,oW(t),t._updateFromPlayer=function(){void 0!==t._player&&(t.value=t._player.volume)},t}n(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)},f(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}(aW);function f2(){var e=i([":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 f2=function(){return e},e}oW=(oZ=a(f1,[[oQ,4,"player"]],[oH,oG],aW)).e[0],oK=(oY=oZ.c)[0],(0,oY[1])();var f5=ht(f2());function f3(){var e=i(['<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 f3=function(){return e},e}o2=h8("theoplayer-error-display"),o5=po(["error","fullscreen"]),o4=h9({reflect:!1,attribute:!1}),o8=h9({reflect:!0,type:Boolean,attribute:dh.FULLSCREEN}),new(o1=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[f5],r.shadowRootOptions=t({},h3.shadowRootOptions,{delegatesFocus:!0}),o3(),r}return n(r,e),r}(o),oJ=dk("____private_error_1"),oX=dk("____private_fullscreen_2"),o0=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,oJ,{writable:!0,value:void 0}),Object.defineProperty(t,oX,{writable:!0,value:void 0}),db(t,oJ)[oJ]=(o9(t),o7(t)),db(t,oX)[oX]=o6(t,!1),t}return n(t,e),t.prototype.render=function(){var e,t;return hq(f3(),dQ('<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!=(e=null==(t=this.error)?void 0:t.message)?e:"")},f(t,[{key:"error",get:function(){return db(this,oJ)[oJ]},set:function(e){db(this,oJ)[oJ]=e}},{key:"fullscreen",get:function(){return db(this,oX)[oX]},set:function(e){db(this,oX)[oX]=e}}]),t}(h3),o7=(lr=(lt=a(o0,[[o4,1,"error"],[o8,1,"fullscreen"]],[o2,o5],h3)).e)[0],o6=lr[1],o9=lr[2],le=(ln=lt.c)[0],o3=ln[1],o1),li=de(),la=h9({reflect:!0,state:!0,type:String,attribute:dh.CAST_STATE});var f4=function(e){function t(t){var r;return r=e.call(this,t)||this,lo(r),r._castState="unavailable",r._updateCastState=function(){r.castState=r._castApi?r._castApi.state:"unavailable"},r}n(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()}},f(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}(H);function f8(){var e=i(['<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 f8=function(){return e},e}function f7(){var e=i([":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 f7=function(){return e},e}lo=a(f4,[[li,4,"castApi"],[la,4,"castState"]],[]).e[0];var f6=ht(f7()),f9=0;function ve(){var e=i([":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 ve=function(){return e},e}lu=h8("theoplayer-chromecast-button"),lc=po(["player"]),new(ls=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(f4.styles,[f6]),lh(),t}return n(t,e),t}(o),ll=function(e){function t(){var t;return(t=e.call(this)||this)._buttonId=++f9,t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),ld.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop casting to Chromecast":"start casting to Chromecast";this.setAttribute(dh.ARIA_LABEL,e)},r.render=function(){var e;return e=this._buttonId,hq(f8(),e,e)},f(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}(f4),ld=(lp=a(ll,[],[lu,lc],f4).c)[0],lh=lp[1],ls);var vt=ht(ve());function vr(){var e=i(['<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 vr=function(){return e},e}var vn=["statechange"];function vi(){var e=i(['<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 vi=function(){return e},e}l_=h8("theoplayer-chromecast-display"),lm=po(["player"]),lg=de(),new(lv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vt],lb(),t}return n(t,e),t}(o),ly=dk("____private__receiverName_1"),lf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,ly,{writable:!0,value:void 0}),db(t,ly)[ly]=(lw(t),lk(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(dh.HIDDEN,""):(t._receiverName=n.receiverName||"Chromecast",t.removeAttribute(dh.HIDDEN))},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.HIDDEN)||this.setAttribute(dh.HIDDEN,""),this._updateFromPlayer()},r.render=function(){return hq(vr(),dQ('<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)},f(t,[{key:"_receiverName",get:function(){return db(this,ly)[ly]},set:function(e){db(this,ly)[ly]=e}},{key:"player",get:function(){return this._player},set:function(e){var t;this._player!==e&&(void 0!==this._castApi&&this._castApi.removeEventListener(vn,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(vn,this._updateFromPlayer))}}]),t}(h3),lk=(lT=(lE=a(lf,[[lg,1,"_receiverName"]],[l_,lm],h3)).e)[0],lw=lT[1],lx=(lA=lE.c)[0],lb=lA[1],lv);var va=hq(vi());function vo(){var e=i([":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 vo=function(){return e},e}var vl=ht(vo());function vs(){var e=i([":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 vs=function(){return e},e}lS=h8("theoplayer-airplay-button"),lR=po(["player"]),new(lL=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(f4.styles,[vl]),lP(),t}return n(t,e),t}(o),lC=function(e){function t(){return e.apply(this,arguments)||this}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateAriaLabel()},r.attributeChangedCallback=function(t,r,n){e.prototype.attributeChangedCallback.call(this,t,r,n),lO.observedAttributes.indexOf(t)>=0&&this._updateAriaLabel()},r._updateAriaLabel=function(){var e="connecting"===this.castState||"connected"===this.castState?"stop playing on AirPlay":"start playing on AirPlay";this.setAttribute(dh.ARIA_LABEL,e)},r.render=function(){return va},f(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}(f4),lO=(lM=a(lC,[],[lS,lR],f4).c)[0],lP=lM[1],lL);var vu=ht(vs());function vc(){var e=i(['<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 vc=function(){return e},e}var vh=hq(vc()),vd=["readystatechange","play","pause","playing","seeking","seeked"];function vp(){var e=i([":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;pointer-events:none!important}"]);return vp=function(){return e},e}l$=h8("theoplayer-loading-indicator"),lD=po(["player"]),lF=h9({reflect:!1,attribute:!1}),lU=h9({reflect:!0,type:Boolean,attribute:dh.LOADING}),new(lN=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vu],lq(),t}return n(t,e),t}(o),lI=dk("____private_loading_1"),lB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lI,{writable:!0,value:void 0}),db(t,lI)[lI]=(lz(t),lj(t,!1)),t._updateFromPlayer=function(){t.loading=void 0!==t._player&&!t._player.paused&&(t._player.seeking||t._player.readyState<3)},t}return n(t,e),t.prototype.render=function(){return vh},f(t,[{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&this._player.removeEventListener(vd,this._updateFromPlayer),this._player=e,this._updateFromPlayer(),void 0!==this._player&&this._player.addEventListener(vd,this._updateFromPlayer))}},{key:"loading",get:function(){return db(this,lI)[lI]},set:function(e){db(this,lI)[lI]=e}}]),t}(h3),lj=(lG=(lH=a(lB,[[lF,4,"player"],[lU,1,"loading"]],[l$,lD],h3)).e)[0],lz=lG[1],lV=(lQ=lH.c)[0],lq=lQ[1],lN);var vy=ht(vp());function vf(){var e=i([""]);return vf=function(){return e},e}function vv(){var e=i(["[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 vv=function(){return e},e}lY=h8("theoplayer-gesture-receiver"),lJ=po(["player","deviceType"]),l0=h9({reflect:!1,attribute:!1}),l1=h9({reflect:!1,attribute:!1}),new(lZ=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[vy],lX(),t}return n(t,e),t}(o),lW=dk("____private_deviceType_1"),lK=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,lW,{writable:!0,value:void 0}),l5(t),t._pointerType="",db(t,lW)[lW]=l2(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}n(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 hq(vf())},f(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 db(this,lW)[lW]},set:function(e){db(this,lW)[lW]=e}}]),t}(h3),l2=(l8=(l4=a(lK,[[l0,4,"player"],[l1,1,"deviceType"]],[lY,lJ],h3)).e)[0],l5=l8[1],l3=(l7=l4.c)[0],lX=l7[1],lZ);var v_=ht(vv());function vm(){var e=i(['<span part="icon"><slot name="icon">','</slot></span><slot name="spacer"></slot><span part="text"><slot name="text">LIVE</slot></span>']);return vm=function(){return e},e}var vb=["play","pause","playing","emptied"],vg=["seeking","seeked","timeupdate","durationchange","emptied"];function vk(){var e=i([":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 vk=function(){return e},e}sn=h8("theoplayer-live-button"),si=po(["player","streamType"]),so=h9({reflect:!0,type:Boolean,attribute:dh.PAUSED}),sl=h9({reflect:!0,type:String,attribute:dh.STREAM_TYPE}),ss=h9({reflect:!0,type:Number,attribute:dh.LIVE_THRESHOLD,useDefault:!0}),su=h9({reflect:!0,type:Boolean,attribute:dh.LIVE}),sc=h9({reflect:!1,attribute:!1}),new(sr=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[v_]),sa(),t}return n(t,e),t}(o),l6=dk("____private_paused_1"),l9=dk("____private_streamType_2"),se=dk("____private_live_3"),st=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,l6,{writable:!0,value:void 0}),Object.defineProperty(t,l9,{writable:!0,value:void 0}),Object.defineProperty(t,se,{writable:!0,value:void 0}),sy(t),t._liveThreshold=10,db(t,l6)[l6]=sh(t,!1),db(t,l9)[l9]=sd(t,"vod"),db(t,se)[se]=sp(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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.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 hq(vm(),dQ('<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'))},f(t,[{key:"paused",get:function(){return db(this,l6)[l6]},set:function(e){db(this,l6)[l6]=e}},{key:"streamType",get:function(){return db(this,l9)[l9]},set:function(e){db(this,l9)[l9]=e}},{key:"liveThreshold",get:function(){return this._liveThreshold},set:function(e){this._liveThreshold=isNaN(e)?0:e,this._updateLive()}},{key:"live",get:function(){return db(this,se)[se]},set:function(e){db(this,se)[se]=e}},{key:"player",get:function(){return this._player},set:function(e){this._player!==e&&(void 0!==this._player&&(this._player.removeEventListener(vb,this._updatePaused),this._player.removeEventListener(vg,this._updateLive)),this._player=e,this._updatePaused(),this._updateLive(),void 0!==this._player&&(this._player.addEventListener(vb,this._updatePaused),this._player.addEventListener(vg,this._updateLive)))}}]),t}(H),sh=(s_=(sv=a(st,[[so,1,"paused"],[sl,1,"streamType"],[ss,4,"liveThreshold"],[su,1,"live"],[sc,4,"player"]],[sn,si],H)).e)[0],sd=s_[1],sp=s_[2],sy=s_[3],sf=(sm=sv.c)[0],sa=sm[1],sr);var vw=ht(vk());function vx(){var e=i(["<span>","</span>"]);return vx=function(){return e},e}var vE=["adbreakbegin","adbreakend","adbreakchange","updateadbreak","adbegin","adend","adskip","addad","updatead"];function vT(){var e=i([":host{pointer-events:none}"]);return vT=function(){return e},e}sw=h8("theoplayer-ad-display"),sx=po(["player"]),sT=de(),sA=h9({reflect:!1,attribute:!1}),new(sk=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pb,vw],sE(),t}return n(t,e),t}(o),sb=dk("____private__text_1"),sg=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sb,{writable:!0,value:void 0}),db(t,sb)[sb]=(sL(t),sC(t,"")),t._updateFromPlayer=function(){var e,r,n,i=null==(r=t._player)?void 0:r.ads,a=(null!=(e=null==i||null==(n=i.currentAdBreak)?void 0:n.ads)?e:[]).filter(fz);if(void 0===i||!i.playing||0===a.length){t._text="",t.style.display="none";return}if(a.length>1){var o=d4(t._player.ads.currentAds||[],fz);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}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this._updateFromPlayer()},r.render=function(){return hq(vx(),this._text)},f(t,[{key:"_text",get:function(){return db(this,sb)[sb]},set:function(e){db(this,sb)[sb]=e}},{key:"player",get:function(){return this._player},set:function(e){var t,r;this._player!==e&&(null==(t=this._ads)||t.removeEventListener(vE,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vE,this._updateFromPlayer))}}]),t}(h3),sC=(sP=(sR=a(sg,[[sT,1,"_text"],[sA,4,"player"]],[sw,sx],h3)).e)[0],sL=sP[1],sS=(sO=sR.c)[0],sE=sO[1],sk);var vA=ht(vT());function vC(){var e=i(["<span>Content will resume in ","s</span>"]);return vC=function(){return e},e}var vL=["adbreakbegin","adbreakend","adbreakchange","updateadbreak"];function vS(){var e=i(["<slot>Visit Advertiser</slot>"]);return vS=function(){return e},e}sN=h8("theoplayer-ad-countdown"),s$=po(["player"]),sq=de(),sF=h9({reflect:!1,attribute:!1}),new(sB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[pb,vA],sD(),t}return n(t,e),t}(o),sM=dk("____private__maxRemainingDuration_1"),sI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,sM,{writable:!0,value:void 0}),db(t,sM)[sM]=(sj(t),sU(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 n(t,e),t.prototype.render=function(){return hq(vC(),this._maxRemainingDuration)},f(t,[{key:"_maxRemainingDuration",get:function(){return db(this,sM)[sM]},set:function(e){db(this,sM)[sM]=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(vL,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vL,this._onAdChange))}}]),t}(h3),sU=(sH=(sV=a(sI,[[sq,1,"_maxRemainingDuration"],[sF,4,"player"]],[sN,s$],h3)).e)[0],sj=sH[1],sz=(sG=sV.c)[0],sD=sG[1],sB);var vR=["adbegin","adend","adloaded","updatead","adskip"];sQ=h8("theoplayer-ad-clickthrough-button"),sW=po(["player"]),sK=h9({reflect:!0,type:String,attribute:dh.CLICKTHROUGH}),sZ=h9({reflect:!1,attribute:!1});var vP=function(e){function t(){var t;return t=e.call(this)||this,sY(t),t._clickThrough=null,t._updateFromPlayer=function(){var e,r,n=null==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.clickThrough=null;return}var i=d4(null!=(e=n.currentAds)?e:[],fz);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}n(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 hq(vS())},f(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(vR,this._updateFromPlayer),this._player=e,this._ads=null==e?void 0:e.ads,this._updateFromPlayer(),null==(r=this._ads)||r.addEventListener(vR,this._updateFromPlayer))}}]),t}(eo);function vO(){var e=i([":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 vO=function(){return e},e}sY=(sX=a(vP,[[sK,4,"clickThrough"],[sZ,4,"player"]],[sQ,sW],eo)).e[0],sJ=(s0=sX.c)[0],(0,s0[1])();var vM=ht(vO());function vI(){var e=i(['<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 vI=function(){return e},e}var vB=["adbegin","adend","adloaded","updatead","adskip"];s4=h8("theoplayer-ad-skip-button"),s8=po(["player"]),s6=de(),s9=de(),ue=h9({reflect:!1,attribute:!1}),new(s3=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(H.styles,[vM]),s7(),t}return n(t,e),t}(o),s1=dk("____private__showCountdown_1"),s2=dk("____private__timeToSkip_2"),s5=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,s1,{writable:!0,value:void 0}),Object.defineProperty(t,s2,{writable:!0,value:void 0}),db(t,s1)[s1]=(un(t),ut(t,!1)),db(t,s2)[s2]=ur(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==(r=t._player)?void 0:r.ads;if(!n||!n.playing){t.style.display="none";return}var i=d4(null!=(e=n.currentAds)?e:[],fz);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(dh.DISABLED,""),t.setAttribute(dh.ARIA_LIVE,"off")):(t._showCountdown=!1,t.style.display="",t.removeAttribute(dh.DISABLED),t.setAttribute(dh.ARIA_LIVE,"polite"))},t}n(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 hq(vI(),f$(e),this._timeToSkip,f$(t),dQ('<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'))},f(t,[{key:"_showCountdown",get:function(){return db(this,s1)[s1]},set:function(e){db(this,s1)[s1]=e}},{key:"_timeToSkip",get:function(){return db(this,s2)[s2]},set:function(e){db(this,s2)[s2]=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(vB,this._onAdChange),this._player=e,this._ads=null==e?void 0:e.ads,this._onAdChange(),null==(n=this._ads)||n.addEventListener(vB,this._onAdChange))}}]),t}(H),ut=(uo=(ua=a(s5,[[s6,1,"_showCountdown"],[s9,1,"_timeToSkip"],[ue,4,"player"]],[s4,s8],H)).e)[0],ur=uo[1],un=uo[2],ui=(ul=ua.c)[0],s7=ul[1],s3);var vN=((A={}).TopControlBar="top-control-bar",A.BottomControlBar="bottom-control-bar",A.Menu="menu",A),v$=[];function vD(e){v$.push(e)}function vq(){var e=i([':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 vq=function(){return e},e}var vF=ht(vq()),vU=function(){if("u">typeof document)for(var e,t=dZ([["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 vj(){if(("u"<typeof navigator?"undefined":h(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 vz(){if(("u"<typeof navigator?"undefined":h(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 vV="theoplayeruseridlechange",vH="theoplayerready";function vG(){var e=i(["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 vG=function(){return e},e}var vQ=ht(vG()),vW="theoplayer-ui-global-styles",vK=!1;function vZ(){var e=i(['<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 vZ=function(){return e},e}var vY="theoplayer-ui-full-window";function vJ(e){for(var t,r,n=pt(e).filter(d2),i=dZ(n);!(r=i()).done;){var a=r.value;if("0"!==getComputedStyle(a).opacity){var o=pM.fromRect(a.getBoundingClientRect());o.width>0&&o.height>0&&(t=t?t.union(o):o)}}return t}function vX(){var e=i([':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:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{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 vX=function(){return e},e}uy=h8("theoplayer-ui"),uv=h9({reflect:!1,attribute:dh.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),u_=h9({reflect:!1,attribute:dh.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),um=h9({reflect:!0,type:Boolean,attribute:dh.FLUID}),ub=h9({reflect:!0,type:Boolean,attribute:dh.MUTED}),ug=h9({reflect:!0,type:Boolean,attribute:dh.AUTOPLAY}),uk=h9({reflect:!0,type:Boolean,attribute:dh.FULLSCREEN}),uw=h9({reflect:!0,type:Boolean,attribute:dh.PAUSED}),ux=h9({reflect:!0,type:Boolean,attribute:dh.ENDED}),uE=h9({reflect:!0,type:Boolean,attribute:dh.CASTING}),uT=h9({reflect:!0,type:Boolean,attribute:dh.USER_IDLE}),uA=h9({reflect:!0,type:Number,attribute:dh.USER_IDLE_TIMEOUT,useDefault:!0}),uC=h9({reflect:!0,type:String,attribute:dh.DEVICE_TYPE}),uL=h9({reflect:!0,type:String,attribute:dh.STREAM_TYPE}),uS=h9({reflect:!0,type:Number,attribute:dh.DVR_THRESHOLD,useDefault:!0}),uR=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.HAS_FIRST_PLAY}),uP=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.PLAYING_AD}),uO=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.HAS_ERROR}),uM=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.FULLWINDOW}),uI=h9({reflect:!0,state:!0,type:Boolean,attribute:dh.MENU_OPENED}),new(up=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[vF],r.shadowRootOptions=t({},h3.shadowRootOptions,{delegatesFocus:!0}),r.READY_EVENT=vH,uf(),r}return n(r,e),r}(o),us=dk("____private__hasFirstPlay_1"),uu=dk("____private__isPlayingAd_2"),uc=dk("____private__hasError_3"),uh=dk("____private__isFullWindow_4"),ud=function(r){function i(e){var n;return void 0===e&&(e={}),Object.defineProperty(n=r.call(this)||this,us,{writable:!0,value:void 0}),Object.defineProperty(n,uu,{writable:!0,value:void 0}),Object.defineProperty(n,uc,{writable:!0,value:void 0}),Object.defineProperty(n,uh,{writable:!0,value:void 0}),uq(n),n._configuration={},n._playerRef=d$(),n._menuRef=d$(),n._menuGroupRef=d$(),n._menuOpened=!1,n._topChromeRef=d$(),n._topChromeSlotRef=d$(),n._bottomChromeRef=d$(),n._bottomChromeSlotRef=d$(),n._pointerType="",n._lastPointerUpTime=0,n._stateReceivers=[],n._player=void 0,n._source=void 0,n._muted=!1,n._autoplay=!1,n._fullscreen=!1,n._deviceType="desktop",n._streamType="vod",n._fluid=!1,n._userIdle=!1,n._userIdleTimeout=void 0,n._isUserActive=!1,n._userIdleTimer=0,n._paused=!1,n._ended=!1,n._casting=!1,n._dvrThreshold=60,n._previewTime=NaN,n._activeVideoTrack=void 0,db(n,us)[us]=uB(n,!1),db(n,uu)[uu]=uN(n,!1),db(n,uc)[uc]=u$(n,!1),db(n,uh)[uh]=uD(n,!1),n._onMutation=function(e){var t=n._playerRef.value;if(t)for(var r,i=dZ(e);!(r=i()).done;){var a=r.value;if("childList"===a.type){for(var o=a.addedNodes,l=a.removedNodes,s=0;s<o.length;s++){var u=o[s];d1(u)&&ps(u,t,n.registerStateReceiver_)}for(var c=0;c<l.length;c++){var h=l[c];d1(h)&&ps(h,t,n.unregisterStateReceiver_)}}}},n._onSlotChange=function(){n._playerRef.value&&ps(n,n._playerRef.value,n.registerStateReceiver_),n._updateTextTrackMargins()},n.registerStateReceiver_=function(e){n._stateReceivers.indexOf(e)>=0||(n._stateReceivers.push(e),n.propagateStateToReceiver_(e))},n.unregisterStateReceiver_=function(e){var t,r,i,a;t=n._stateReceivers,!((r=t.indexOf(e))<0)&&(i=t,a=r,i.splice(a,1),1)&&n.removeStateFromReceiver_(e)},n._onToggleMenu=function(e){e.stopPropagation();var t=e.detail.menu,r=n._menuGroupRef.value;if(r){if(!r.getMenuById(t))return void console.error('<theoplayer-ui>: cannot find menu with ID "'+t+'"');var i=d2(e.target)?e.target:void 0;r.isMenuOpen(t)?n.closeMenu_():(n.closeMenu_(),n.openMenu_(t,i))}},n._onCloseMenu=function(e){e.stopPropagation(),n.closeMenu_()},n._onMenuChange=function(){var e=n._menuRef.value;e.removeEventListener("pointerdown",n._onMenuPointerDown),e.removeEventListener("click",n._onMenuClick),n._menuGroupRef.value.hasCurrentMenu()?(e.addEventListener("pointerdown",n._onMenuPointerDown),e.addEventListener("click",n._onMenuClick),n.menuOpened_=!0):n.menuOpened_=!1,n.updateUserIdle_()},n._onMenuPointerDown=function(e){n._pointerType=e.pointerType},n._onMenuClick=function(e){var t,r=null!=(t=e.pointerType)?t:n._pointerType;e.target===n._menuRef.value&&"mouse"===r&&n._menuGroupRef.value.closeCurrentMenu()&&e.preventDefault()},n._onEnterFullscreen=function(e){if(e.stopPropagation(),vU&&document[vU.fullscreenEnabled_]&&n[vU.requestFullscreen_]){var r,i,a=n[vU.requestFullscreen_](t({navigationUI:"hide"},null==(i=n._configuration)||null==(r=i.ui)?void 0:r.fullscreenOptions));a&&a.then&&a.then(d0,d0)}else n._player&&n._player.presentation.supportsMode("fullscreen")?n._player.presentation.requestMode("fullscreen"):n._isFullWindow||(n._isFullWindow=!0,document.documentElement.classList.add(vY),window.addEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onExitFullscreen=function(e){if(e.stopPropagation(),vU){var t=document[vU.exitFullscreen_]();t&&t.then&&t.then(d0,d0)}n._player&&"fullscreen"===n._player.presentation.currentMode&&n._player.presentation.requestMode("inline"),n._isFullWindow&&(n._isFullWindow=!1,document.documentElement.classList.remove(vY),window.removeEventListener("keydown",n._exitFullscreenOnEsc),n._onFullscreenChange())},n._onFullscreenChange=function(){var e=!1;if(void 0!==vU){var t=document[vU.fullscreenElement_];t&&(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)}(t,n))}e||void 0===n._player||"fullscreen"!==n._player.presentation.currentMode||(e=!0),n._isFullWindow&&(e=!0),n.fullscreen=e},n._exitFullscreenOnEsc=function(e){e.keyCode==dd.ESCAPE&&n._onExitFullscreen(e)},n._updateAspectRatio=function(){if(void 0!==n._player){var e=n._player,t=e.videoWidth,r=e.videoHeight;t>0&&r>0?fP(n,{"--theoplayer-video-width":""+t,"--theoplayer-video-height":""+r}):fP(n,{"--theoplayer-video-width":"","--theoplayer-video-height":""})}},n._updateError=function(){var e=null==(t=n._player)?void 0:t.errorObject;n._hasError=void 0!==e;for(var t,r,i=dZ(n._stateReceivers);!(r=i()).done;){var a=r.value;a[pi].indexOf("error")>=0&&(a.error=e)}},n._onPlay=function(){n._hasFirstPlay=!0,n.paused=!1,n._updateEnded()},n._onPause=function(){n.paused=!0,n._updateEnded()},n._updatePausedAndEnded=function(){n.paused=!n._player||n._player.paused,n._updateEnded()},n._updateEnded=function(){n.ended=!!n._player&&n._player.ended},n._updateStreamType=function(){void 0!==n._player&&(n.streamType=n.computeStreamType_())},n._updatePlaybackRate=function(){if(void 0!==n._player)for(var e,t=n._player.playbackRate,r=dZ(n._stateReceivers);!(e=r()).done;){var i=e.value;i[pi].indexOf("playbackRate")>=0&&(i.playbackRate=t)}},n._updateMuted=function(){void 0!==n._player&&(n.muted=n._player.muted)},n._updateActiveVideoTrack=function(){if(void 0!==n._player){var e,t,r,i,a=d4(n._player.videoTracks,function(e){return e.enabled});n._activeVideoTrack!==a&&(null==(e=n._activeVideoTrack)||e.removeEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(t=n._activeVideoTrack)||t.removeEventListener("targetqualitychanged",n._updateTargetVideoQualities),n._activeVideoTrack=a,n._updateActiveVideoQuality(),n._updateTargetVideoQualities(),null==(r=n._activeVideoTrack)||r.addEventListener("activequalitychanged",n._updateActiveVideoQuality),null==(i=n._activeVideoTrack)||i.addEventListener("targetqualitychanged",n._updateTargetVideoQualities))}},n._updateActiveVideoQuality=function(){for(var e,t,r=null==(e=n._activeVideoTrack)?void 0:e.activeQuality,i=dZ(n._stateReceivers);!(t=i()).done;){var a=t.value;a[pi].indexOf("activeVideoQuality")>=0&&(a.activeVideoQuality=r)}},n._updateTargetVideoQualities=function(){for(var e,t=yi(n._activeVideoTrack),r=dZ(n._stateReceivers);!(e=r()).done;){var i=e.value;i[pi].indexOf("targetVideoQualities")>=0&&(i.targetVideoQualities=t)}},n._updateCasting=function(){var e,t,r;n.casting=null!=(e=null==(r=n._player)||null==(t=r.cast)?void 0:t.casting)&&e},n._updatePlayingAd=function(){var e,t,r;n._isPlayingAd=null!=(e=null==(r=n._player)||null==(t=r.ads)?void 0:t.playing)&&e},n._onSourceChange=function(){n.closeMenu_(),n._hasFirstPlay=void 0!==n._player&&!n._player.paused},n.setUserIdle_=function(){if(clearTimeout(n._userIdleTimer),n._userIdleTimer=0,!(n.userIdleTimeout<0)&&(n._isUserActive=!1,n.updateUserIdle_(),"tv"==n.deviceType&&n.isUserIdle_())){var e=pI();null!==e&&e.blur()}},n.scheduleUserIdle_=function(){if(n.setUserActive_(),clearTimeout(n._userIdleTimer),n.userIdleTimeout<0){n._userIdleTimer=0;return}n._userIdleTimer=setTimeout(n.setUserIdle_,1e3*n.userIdleTimeout)},n._onTvKeyDown=function(e){if(dy(e.keyCode))return void n.setUserIdle_();var t=function e(t){if(d2(t)&&"none"!==getComputedStyle(t).display){if(null!==t.getAttribute(dh.TV_FOCUS))return pr(t);for(var r=pe(t),n=0;n<r.length;n++){var i=e(r[n]);if(i)return i}}}(n),r=pr(n),i=pI();if(!i){var a=null!=t?t:r;a.length>0&&(a[0].focus(),i=a[0])}!n.isUserIdle_()&&(e.keyCode===dd.ENTER?null!==i&&(e.preventDefault(),i.click()):dp(e.keyCode)&&pB(n,r,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},n._onKeyUp=function(e){dy(e.keyCode)||n.scheduleUserIdle_()},n._onPointerUp=function(e){"mouse"===e.pointerType?n.scheduleUserIdle_():"touch"===e.pointerType&&(n.isPlayerOrMedia_(e.target)&&n._isUserActive?n.setUserIdle_():(n.isUserIdle_()&&(n._lastPointerUpTime=performance.now(),n.addEventListener("click",n._onClickAfterPointerUp,!0)),n.scheduleUserIdle_()))},n._onClickAfterPointerUp=function(e){n.removeEventListener("click",n._onClickAfterPointerUp,!0),performance.now()-n._lastPointerUpTime<50&&(e.preventDefault(),e.stopPropagation())},n._onPointerMove=function(e){"mouse"===e.pointerType&&(n.setUserActive_(),n.isPlayerOrMedia_(e.target)&&n.scheduleUserIdle_())},n._onMouseLeave=function(){n.setUserIdle_()},n._onChromeSlotTransition=function(e){"opacity"===e.propertyName&&n._updateTextTrackMargins()},n._updateTextTrackMargins=function(){var e=n._player;if(void 0!==e){var t=n._topChromeSlotRef.value&&vJ(n._topChromeSlotRef.value),r=n._bottomChromeSlotRef.value&&vJ(n._bottomChromeSlotRef.value);e.textTrackStyle.marginTop=null==t?void 0:t.height,e.textTrackStyle.marginBottom=null==r?void 0:r.height}},n._onPreviewTimeChange=function(e){n._previewTime=e.detail.previewTime;for(var t,r=dZ(n._stateReceivers);!(t=r()).done;){var i=t.value;i[pi].indexOf("previewTime")>=0&&(i.previewTime=n._previewTime)}},n._onDestroy=function(){n._player&&(n.removePlayerListeners_(n._player),n._player=void 0,n.propagatePlayerToAllReceivers_())},n._configuration=e,n._mutationObserver=new MutationObserver(n._onMutation),"u">typeof ResizeObserver&&(n._resizeObserver=new ResizeObserver(n._updateTextTrackMargins)),n.tryInitializePlayer_(),n}n(i,r);var a=i.prototype;return a._setConfiguration=function(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()},a._setSource=function(e){this._player?this._player.source=e:this._source=e},a.connectedCallback=function(){if(r.prototype.connectedCallback.call(this),!vK){if(c7)document.adoptedStyleSheets.push(vQ.styleSheet);else if(!document.getElementById(vW)){var e,t=document.createElement("style");t.id=vW;var n=window.litNonce;void 0!==n&&t.setAttribute("nonce",n),e=vQ.cssText,void 0===t.textContent?t.innerText=e:t.textContent=e,document.head.appendChild(t)}vK=!0}this.hasAttribute(dh.DEVICE_TYPE)||(this.deviceType=vj()?"mobile":vz()?"tv":"desktop"),this.hasAttribute(dh.PAUSED)||(this.paused=!0),this.tryInitializePlayer_();for(var i,a,o=dZ(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!==vU&&(document.addEventListener(vU.fullscreenchange_,this._onFullscreenChange),document.addEventListener(vU.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)},a.tryInitializePlayer_=function(){void 0!==this._player||void 0===this._playerRef.value||(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new e(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(pR(vH)))},a.createRenderRoot=function(){var e=r.prototype.createRenderRoot.call(this);return e.addEventListener(pY,this._onToggleMenu),e.addEventListener(fL,this._onEnterFullscreen),e.addEventListener(fS,this._onExitFullscreen),e.addEventListener(fj,this._onPreviewTimeChange),e},a.firstUpdated=function(){this._menuGroupRef.value&&!x(this._menuGroupRef,rm)&&customElements.upgrade(this._menuGroupRef.value),this.tryInitializePlayer_(),this._playerRef.value&&ps(this,this._playerRef.value,this.registerStateReceiver_)},a.disconnectedCallback=function(){var e;r.prototype.disconnectedCallback.call(this),null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),void 0!==vU&&(document.removeEventListener(vU.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(vU.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},a.propagateStateToReceiver_=function(e){var t,r=e[pi];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=yi(this._activeVideoTrack))),r.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)},a.propagatePlayerToAllReceivers_=function(){for(var e,t=dZ(this._stateReceivers);!(e=t()).done;){var r=e.value;r[pi].indexOf("player")>=0&&(r.player=this._player)}},a.removeStateFromReceiver_=function(e){e[pi].indexOf("player")>=0&&(e.player=void 0)},a.openMenu_=function(e,t){var r=pM.fromRect(this._topChromeRef.value.getBoundingClientRect()),n=pM.fromRect(this._bottomChromeRef.value.getBoundingClientRect()),i=!0,a=!0;if(void 0!==t){var o=pM.fromRect(this.getBoundingClientRect()),l=pM.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,fP(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"})},a.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},a.computeStreamType_=function(){var e=this.source,t=null!=(n=null==e?void 0:e.streamType)?n:this.getAttribute(dh.STREAM_TYPE),r=null==(i=this._player)?void 0:i.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"},a.isUserIdle_=function(){return!this._isUserActive&&!this.paused&&!this.casting&&!!this._menuGroupRef.value&&!this._menuGroupRef.value.hasCurrentMenu()},a.setUserActive_=function(){clearTimeout(this._userIdleTimer),this._isUserActive=!0,this.updateUserIdle_()},a.updateUserIdle_=function(){this.userIdle=this.isUserIdle_()},a.isPlayerOrMedia_=function(e){return e===this||this._playerRef.value.contains(e)},a.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)},a.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){}},a.render=function(){return hq(vZ(),dF(this._playerRef),dF(this._topChromeRef),dF(this._topChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dF(this._bottomChromeRef),dF(this._bottomChromeSlotRef),this._onChromeSlotTransition,this._onChromeSlotTransition,dF(this._menuRef),dF(this._menuGroupRef),this._onCloseMenu,this._onMenuChange)},f(i,[{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=dZ(this._stateReceivers);!(t=r()).done;){var n=t.value;n[pi].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(pR(vV)))}},{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,d9(this,dh.MOBILE,"mobile"===e),d9(this,dh.TV,"tv"===e),window.removeEventListener("keydown",this._onTvKeyDown),"tv"===e&&window.addEventListener("keydown",this._onTvKeyDown);for(var t,r=dZ(this._stateReceivers);!(t=r()).done;){var n=t.value;n[pi].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=dZ(this._stateReceivers);!(t=r()).done;){var n=t.value;n[pi].indexOf("streamType")>=0&&(n.streamType=e)}var i=pR("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 db(this,us)[us]},set:function(e){db(this,us)[us]=e}},{key:"_isPlayingAd",get:function(){return db(this,uu)[uu]},set:function(e){db(this,uu)[uu]=e}},{key:"_hasError",get:function(){return db(this,uc)[uc]},set:function(e){db(this,uc)[uc]=e}},{key:"_isFullWindow",get:function(){return db(this,uh)[uh]},set:function(e){db(this,uh)[uh]=e}},{key:"menuOpened_",get:function(){return this._menuOpened},set:function(e){this._menuOpened!==e&&(this._menuOpened=e,d9(this,dh.MENU_OPENED,e))}}]),i}(h3),uB=(uj=(uU=a(ud,[[uv,4,"configuration"],[u_,4,"source"],[um,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"],[uI,4,"menuOpened_"]],[uy],h3)).e)[0],uN=uj[1],u$=uj[2],uD=uj[3],uq=uj[4],uF=(uz=uU.c)[0],uf=uz[1],up);var v0=ht(vX());function v1(){var e=i(["<theoplayer-ui ",' .configuration="','" .fluid="','" .muted="','" .autoplay="','" .deviceType="','" .streamType="','" .userIdleTimeout="','" .dvrThreshold="','" @theoplayerready="','" @theoplayeruseridlechange="','" @theoplayerstreamtypechange="','">',"</theoplayer-ui>"]);return v1=function(){return e},e}function v2(){var e=i(['<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 v2=function(){return e},e}function v5(){var e=i(["[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 v5=function(){return e},e}uX=h8("theoplayer-default-ui"),u1=de(),C={slot:"title",flatten:!0},u2=h9({reflect:!1,attribute:dh.CONFIGURATION,converter:{fromAttribute:function(e){return e?JSON.parse(e):{}}}}),u5=h9({reflect:!1,attribute:dh.SOURCE,converter:{fromAttribute:function(e){return e?JSON.parse(e):void 0}}}),u3=h9({reflect:!0,type:Boolean,attribute:dh.FLUID}),u4=h9({reflect:!0,type:Boolean,attribute:dh.MUTED}),u8=h9({reflect:!0,type:Boolean,attribute:dh.AUTOPLAY}),u7=h9({reflect:!0,type:String,attribute:dh.STREAM_TYPE}),u6=h9({reflect:!0,type:Number,attribute:dh.USER_IDLE_TIMEOUT,useDefault:!0}),u9=h9({reflect:!0,type:String,attribute:dh.DEVICE_TYPE}),ce=h9({reflect:!0,type:Number,attribute:dh.DVR_THRESHOLD,useDefault:!0}),ct=de(),new(uJ=function(e){function r(){var r;return r=e.apply(this,arguments)||this,r.styles=[v0],r.shadowRootOptions=t({},h3.shadowRootOptions,{delegatesFocus:!0}),r.READY_EVENT=vH,u0(),r}return n(r,e),r}(o),uV=dk("____private__timeRangeInert_1"),uH=dk("____private_titleSlotNodes_2"),uG=dk("____private_fluid_3"),uQ=dk("____private_muted_4"),uW=dk("____private_autoplay_5"),uK=dk("____private_streamType_6"),uZ=dk("____private__hasTitle_7"),uY=function(e){function r(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this)||this,uV,{writable:!0,value:void 0}),Object.defineProperty(r,uH,{writable:!0,value:void 0}),Object.defineProperty(r,uG,{writable:!0,value:void 0}),Object.defineProperty(r,uQ,{writable:!0,value:void 0}),Object.defineProperty(r,uW,{writable:!0,value:void 0}),Object.defineProperty(r,uK,{writable:!0,value:void 0}),Object.defineProperty(r,uZ,{writable:!0,value:void 0}),cu(r),r._uiRef=d$(),db(r,uV)[uV]=cr(r,!1),r._timeRangeInertTimeout=0,r._appliedExtensions=!1,r._configuration={},r._source=void 0,r._userIdleTimeout=void 0,r._deviceType="desktop",r._dvrThreshold=60,db(r,uH)[uH]=cn(r),db(r,uG)[uG]=ci(r,!1),db(r,uQ)[uQ]=ca(r,!1),db(r,uW)[uW]=co(r,!1),db(r,uK)[uK]=cl(r,"vod"),db(r,uZ)[uZ]=cs(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(pR(vV))},r._onTitleSlotChange=function(){r._hasTitle=r.titleSlotNodes.length>0},r.configuration=t,r}n(r,e);var i=r.prototype;return i.connectedCallback=function(){if(e.prototype.connectedCallback.call(this),this.hasAttribute(dh.DEVICE_TYPE)||(this.deviceType=vj()?"mobile":vz()?"tv":"desktop"),!this._appliedExtensions){this._appliedExtensions=!0;for(var t,r=dZ(v$);!(t=r()).done;)(0,t.value)(this)}this._onTitleSlotChange()},i.disconnectedCallback=function(){clearTimeout(this._timeRangeInertTimeout)},i.firstUpdated=function(){this._source&&(this._uiRef.value.source=this._source,this._source=void 0)},i._onUiReady=function(){this.dispatchEvent(pR(vH))},i.render=function(){return hq(v1(),dF(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())},i.renderUiContent=function(){return hq(v2(),f$({display:this._hasTitle?"":"none"}),this._onTitleSlotChange,this._timeRangeInert,f$({display:"live"===this.streamType?"none":""}))},f(r,[{key:"_timeRangeInert",get:function(){return db(this,uV)[uV]},set:function(e){db(this,uV)[uV]=e}},{key:"titleSlotNodes",get:function(){return db(this,uH)[uH]},set:function(e){db(this,uH)[uH]=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 r;this._configuration=t({},e,{ads:t({},null!=(r=e.ads)?r:{},{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 db(this,uG)[uG]},set:function(e){db(this,uG)[uG]=e}},{key:"muted",get:function(){return db(this,uQ)[uQ]},set:function(e){db(this,uQ)[uQ]=e}},{key:"autoplay",get:function(){return db(this,uW)[uW]},set:function(e){db(this,uW)[uW]=e}},{key:"streamType",get:function(){return db(this,uK)[uK]},set:function(e){db(this,uK)[uK]=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,d9(this,dh.MOBILE,"mobile"===e),d9(this,dh.TV,"tv"===e))}},{key:"dvrThreshold",get:function(){return this._dvrThreshold},set:function(e){this._dvrThreshold=isNaN(e)?0:e}},{key:"_hasTitle",get:function(){return db(this,uZ)[uZ]},set:function(e){db(this,uZ)[uZ]=e}}]),r}(h3),cr=(cd=(ch=a(uY,[[u1,1,"_timeRangeInert"],[function(e,t){var r=(null!=C?C:{}).slot,n="slot"+(r?"[name="+r+"]":":not([name])");return dt(e,t,{get:function(){var e,t,r=null==(t=this.renderRoot)?void 0:t.querySelector(n);return null!=(e=null==r?void 0:r.assignedNodes(C))?e:[]}})},1,"titleSlotNodes"],[u2,4,"configuration"],[u5,4,"source"],[u3,1,"fluid"],[u4,1,"muted"],[u8,1,"autoplay"],[u7,1,"streamType"],[u6,4,"userIdleTimeout"],[u9,4,"deviceType"],[ce,4,"dvrThreshold"],[ct,1,"_hasTitle"]],[uX],h3)).e)[0],cn=cd[1],ci=cd[2],ca=cd[3],co=cd[4],cl=cd[5],cs=cd[6],cu=cd[7],cc=(cp=ch.c)[0],u0=cp[1],uJ);var v3=ht(v5());function v4(){var e=i(['<span part="icon">','<span part="warning-icon" style="','">',"</span></span>"]);return v4=function(){return e},e}c_=h8("theolive-bad-network-button"),cm=po(["player"]),cg=de(),ck=h9({reflect:!1,attribute:!1}),new(cv=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[].concat(rC.styles,[v3]),cb(),t}return n(t,e),t}(o),cy=dk("____private__inBadNetworkMode_1"),cf=function(e){function t(){var t;return t=e.apply(this,arguments)||this,Object.defineProperty(t,cy,{writable:!0,value:void 0}),db(t,cy)[cy]=(cx(t),cw(t,!1)),t.handleEnterBadNetworkMode_=function(){t._inBadNetworkMode=!0},t.handleExitBadNetworkMode_=function(){t._inBadNetworkMode=!1},t}n(t,e);var r=t.prototype;return r.connectedCallback=function(){e.prototype.connectedCallback.call(this),this.hasAttribute(dh.ARIA_LABEL)||this.setAttribute(dh.ARIA_LABEL,"open settings menu")},r.render=function(){var e={display:this._inBadNetworkMode?"":"none"};return hq(v4(),dQ(fx),f$(e),dQ('<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>'))},f(t,[{key:"_inBadNetworkMode",get:function(){return db(this,cy)[cy]},set:function(e){db(this,cy)[cy]=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}(rC),cw=(cT=(cE=a(cf,[[cg,1,"_inBadNetworkMode"],[ck,4,"player"]],[c_,cm],rC)).e)[0],cx=cT[1],(cA=cE.c)[0],cb=cA[1],cv),cC=po(["player"]);var v8=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}n(t,e);var r=t.prototype;return r.handleEnterBadNetworkMode=function(){},r.handleExitBadNetworkMode=function(){},f(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!=(t=null==(r=this._theoLive)?void 0:r.badNetworkMode)&&t,this._theoLive&&(this._theoLive.addEventListener("enterbadnetworkmode",this.handleEnterBadNetworkMode_),this._theoLive.addEventListener("exitbadnetworkmode",this.handleExitBadNetworkMode_)),this.handlePlayer())}}]),t}(tQ);function v7(){var e=i(["<slot>High Quality</slot>"]);return v7=function(){return e},e}cL=(cS=a(v8,[],[cC],tQ).c)[0],(0,cS[1])(),cR=h8("theolive-automatic-quality-selector");var v6=function(e){function t(){return e.apply(this,arguments)||this}n(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 hq(v7())},t}(cL);function v9(){var e=i(["<slot>Low Quality</slot>"]);return v9=function(){return e},e}(cP=a(v6,[],[cR],cL).c)[0],(0,cP[1])(),cO=h8("theolive-bad-network-quality-selector");var _e=function(e){function t(){return e.apply(this,arguments)||this}n(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 hq(v9())},t}(cL);function _t(){var e=i(["<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 _t=function(){return e},e}function _r(){var e=i([':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:linear-gradient(to top,var(--theoplayer-control-background-gradient-stops))}:host(:not([mobile])) [part=bottom-chrome]:before{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 _r=function(){return e},e}(cM=a(_e,[],[cO],cL).c)[0],(0,cM[1])(),cN=h8("theolive-bad-network-menu"),new(cB=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[yt],c$(),t}return n(t,e),t}(o),cI=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t._radioGroupRef=d$(),t._onChange=function(){t.dispatchEvent(new Event("change",{bubbles:!0}))},t}n(t,e);var r=t.prototype;return r.firstUpdated=function(){this._radioGroupRef.value&&!x(this._radioGroupRef.value,t5)&&customElements.upgrade(this._radioGroupRef.value)},r.render=function(){return hq(_t(),dF(this._radioGroupRef),this._onChange)},t}(h3),(cD=a(cI,[],[cN],h3).c)[0],c$=cD[1],cB);var _n=ht(_r());function _i(){var e=i(['<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 _i=function(){return e},e}cH=h8("theolive-default-ui"),cQ=de(),cW=de(),cK=de(),cZ=de(),new(cV=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.styles=[_n],cG(),t}return n(t,e),t}(o),cq=dk("____private__announcementType_1"),cF=dk("____private__announcementMessage_2"),cU=dk("____private__hidePlayButton_3"),cj=dk("____private__hideErrorDisplay_4"),cz=function(e){function t(t){var r;return void 0===t&&(t={}),Object.defineProperty(r=e.call(this,t)||this,cq,{writable:!0,value:void 0}),Object.defineProperty(r,cF,{writable:!0,value:void 0}),Object.defineProperty(r,cU,{writable:!0,value:void 0}),Object.defineProperty(r,cj,{writable:!0,value:void 0}),db(r,cq)[cq]=(c1(r),cY(r,"")),db(r,cF)[cF]=cJ(r,""),db(r,cU)[cU]=cX(r,!1),db(r,cj)[cj]=c0(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;t<13e3||t>=14e3?r.showMessage_("offline",void 0):(r.stopHidingPlayerError(),r.hideMessage_())},r}n(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(dh.HAS_ERROR),this._hideErrorDisplay=!0},r.stopHidingPlayerError=function(){var e;null==(e=this._uiRef.value)||e.setAttribute(dh.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 hq(_i(),f$(e),f$(t),f$(r),this._announcementMessage,f$(n),f$(n),f$(i))},f(t,[{key:"_announcementType",get:function(){return db(this,cq)[cq]},set:function(e){db(this,cq)[cq]=e}},{key:"_announcementMessage",get:function(){return db(this,cF)[cF]},set:function(e){db(this,cF)[cF]=e}},{key:"_hidePlayButton",get:function(){return db(this,cU)[cU]},set:function(e){db(this,cU)[cU]=e}},{key:"_hideErrorDisplay",get:function(){return db(this,cj)[cj]},set:function(e){db(this,cj)[cj]=e}}]),t}(cc),cY=(c3=(c5=a(cz,[[cQ,1,"_announcementType"],[cW,1,"_announcementMessage"],[cK,1,"_hidePlayButton"],[cZ,1,"_hideErrorDisplay"]],[cH],cc)).e)[0],cJ=c3[1],cX=c3[2],c0=c3[3],c1=c3[4],c2=(c4=c5.c)[0],cG=c4[1],cV);var _a="2.1.0";export{iI as ActiveQualityDisplay,sJ as AdClickThroughButton,sz as AdCountdown,sS as AdDisplay,ui as AdSkipButton,lO as AirPlayButton,dh as Attribute,H as Button,f4 as CastButton,ld as ChromecastButton,lx as ChromecastDisplay,rO as CloseMenuButton,fI as ColorStops,$ as ControlBar,cc as DefaultUI,tD as DurationDisplay,le as ErrorDisplay,vN as ExtensionSlot,ak as FullscreenButton,l3 as GestureReceiver,nJ as LanguageMenu,n8 as LanguageMenuButton,eo as LinkButton,sf as LiveButton,lV as LoadingIndicator,rq as MediaTrackRadioButton,ro as Menu,rC as MenuButton,rm as MenuGroup,ej as MuteButton,eL as PlayButton,ix as PlaybackRateDisplay,iv as PlaybackRateMenu,id as PlaybackRateMenuButton,is as PlaybackRateRadioGroup,a9 as PreviewThumbnail,oT as PreviewTimeDisplay,iV as QualityRadioButton,i3 as QualityRadioGroup,tQ as RadioButton,t5 as RadioGroup,aW as Range,e2 as SeekButton,al as SettingsMenu,ac as SettingsMenuButton,ey as SlotContainer,pl as StateReceiverMixin,c2 as THEOliveDefaultUI,ns as TextTrackOffRadioButton,nt as TextTrackRadioButton,nv as TextTrackStyleDisplay,nN as TextTrackStyleMenu,nL as TextTrackStyleRadioGroup,ae as TextTrackStyleResetButton,tE as TimeDisplay,oU as TimeRange,r2 as TrackRadioGroup,uF as UIContainer,oK as VolumeRange,dm as buttonTemplate,dV as linkButtonTemplate,p0 as menuGroupTemplate,pW as menuTemplate,vD as registerExtension,po as stateReceiver,_a as version};
|