PageSourceSearch

https://www.muchbetteradventures.com/_next/static/chunks/2-oo46laixt3b.js

js muchbetteradventures.com collected 2026-10-02 03:06:54 UTC 259,670 bytes, 2,198 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a39bb5c0-7010-70f0-a177-3a3a38ad20e9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43653,277686,e=>{"use strict";let t;var i,a,r,s,n,o,l,d,h,u,c,m,p,v,b,E,g,f,A,k,w,y,I,T,M,_,S,L,x,C,R,D,N,P,U,O,W,H,$,B,V,q,G,F,Z,Q,K,j,Y,z,X,J,ee,et,ei,ea,er,es,en,eo,el,ed,eh,eu,ec,em,ep,ev,eb,eE,eg,ef,eA,ek,ew,ey,eI,eT,eM,e_,eS,eL,ex,eC,eR,eD,eN,eP,eU,eO,eW,eH,e$,eB,eV,eq,eG,eF,eZ,eQ,eK,ej,eY,ez,eX,eJ,e0,e1,e2,e5,e3,e4,e7,e8,e6,e9,te,tt,ti,ta,tr,ts,tn,to,tl,td,th,tu,tc,tm,tp,tv,tb,tE,tg,tf,tA,tk,tw,ty,tI,tT,tM,t_,tS,tL,tx,tC,tR,tD,tN,tP,tU,tO,tW,tH,t$,tB,tV,tq,tG,tF,tZ,tQ,tK,tj,tY,tz,tX,tJ,t0,t1,t2,t5,t3,t4,t7,t8,t6,t9,ie,it,ii,ia,ir,is,io,il,id,ih,iu,ic,im,ip,iv,ib,iE,ig,iA,ik,iw,iy,iI,iT,iM,i_,iS,iL,ix,iC,iR,iD,iN,iP,iU,iO,iW,iH,i$,iB,iV,iq,iG,iF,iZ,iQ,iK,ij,iY,iz,iX,iJ,i0,i1,i2,i5,i3,i4,i7,i8,i6,i9,ae,at,ai,aa,ar,as,an,ao,al,ad,ah,au,ac,am,ap,av,ab,aE,ag,af=e.i(391398),aA=e.i(191788),ak=e.i(168489),aw=Object.defineProperty,ay={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_LOOP_REQUEST:"medialooprequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediashowtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},aI={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},aT={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_BUFFERED:"mediaBuffered",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_CHAPTERS_CUES:"mediaChaptersCues",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_ENDED:"mediaEnded",MEDIA_ERROR:"mediaError",MEDIA_ERROR_CODE:"mediaErrorCode",MEDIA_ERROR_MESSAGE:"mediaErrorMessage",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_HAS_P
2LAYED:"mediaHasPlayed",MEDIA_HEIGHT:"mediaHeight",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_IS_PIP:"mediaIsPip",MEDIA_LOADING:"mediaLoading",MEDIA_MUTED:"mediaMuted",MEDIA_LOOP:"mediaLoop",MEDIA_PAUSED:"mediaPaused",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_LANG:"mediaLang",MEDIA_WIDTH:"mediaWidth"},aM=Object.entries(aT),a_=aM.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{}),aS=aM.reduce((e,[t,i])=>(e[t]=i.toLowerCase(),e),{USER_INACTIVE_CHANGE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(aS).reduce((e,[t,i])=>{let a=a_[t];return a&&(e[i]=a),e},{userinactivechange:"userinactive"});var aL=Object.entries(a_).reduce((e,[t,i])=>{let a=aS[t];return a&&(e[i]=a),e},{userinactive:"userinactivechange"}),ax="subtitles",aC="captions",aR="disabled",aD="showing",aN="unavailable",aP="unsupported",aU={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"};function aO(e){if(e){let{id:t,width:i,height:a}=e;return[t,i,a].filter(e=>null!=e).join(":")}}function aW(e){if(e){let[t,i,a]=e.split(":");return{id:t,width:+i,height:+a}}}function aH(e){if(e){let{id:t,kind:i,language:a,label:r}=e;return[t,i,a,r].filter(e=>null!=e).join(":")}}function a$(e){if(e){let[t,i,a,r]=e.split(":");return{id:t,kind:i,language:a,label:r}}}function aB(e){return"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}function aV(e){return"string"==typeof e&&!isNaN(e)&&!isNaN(parseFloat(e))}var aq=e=>new Promise(t=>setTimeout(t,e)),aG=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],aF=e=>{if(!aB(e))return"";let t=Math.abs(e),i=t!==e,a=new Date(0,0,0,0,0,t,0),r=[a.getHours(),a.getMinutes(),a.getSeconds()].map((e,t)=>{let i;return e&&(i=1===e?aG[t].singular:aG[t].plural,`${e} ${i}`)}).filter(e=>e).join(", ");return`${r}${i?" remaining":""}`};function aZ(e,t){let i=!1;e<0&&(i=!0,e=0-e);let a=Math.floor((e=e<0?0:e)%60),r=Math.floor(e/60%60),s=Math.floor(e/3600),n=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(s=r=a="0"),r=(((s=s>0||o>0?s+":":"")||n>=10)&&r<10?"0"+r:r)+":",(i?"-":"")+s+r+(a=a<10?"0"+a:a)}Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}});var aQ={en:{"Start airplay":"Start airplay","Stop airplay":"Stop airplay",Audio:"Audio",Captions:"Captions","Enable captions":"Enable captions","Disable captions":"Disable captions","Start casting":"Start casting","Stop casting":"Stop casting","Enter fullscreen mode":"Enter fullscreen mode","Exit fullscreen mode":"Exit fullscreen mode",Mute:"Mute",Unmute:"Unmute",Loop:"Loop","Enter picture in picture mode":"Enter picture in picture mode","Exit picture in picture mode":"Exit picture in picture mode",Play:"Play",Pause:"Pause","Playback rate":"Playback rate","Playback rate {playbackRate}":"Playback rate {playbackRate}",Quality:"Quality","Seek backward":"Seek backward","Seek forward":"Seek forward",Settings:"Settings",Auto:"Auto","audio player":"audio player","video player":"video player",volume:"volume",seek:"seek","closed captions":"closed captions","current playback rate":"current playback rate","playback time":"playback time","media loading":"media loading",settings:"settings","audio tracks":"audio tracks",quality:"quality",play:"play",pause:"pause",mute:"mute",unmute:"unmute","chapter: {chapterName}":"chapter: {chapterName}",live:"live",Off:"Off","start airplay":"start airplay","stop airplay":"stop airplay","start casting":"start casting","stop casting":"stop casting","enter fullscreen mode":"enter fullscreen mode","exit fullscreen mode":"exit fullscreen mode","enter picture in picture mode":"enter picture in picture mode","exit picture in picture mode":"exit picture in picture mode","seek to live":"seek to live","playing live":"playing live","seek back {seekOffset} seconds":"seek back {seekOffset} seconds","seek forward {seekOffset} seconds":"seek forward {seekOffset} seconds","Network Error":"Network Error","Decode Error":"Decode Error","S
2ource Not Supported":"Source Not Supported","Encryption Error":"Encryption Error","A network error caused the media download to fail.":"A network error caused the media download to fail.","A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.":"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.","An unsupported error occurred. The server or network failed, or your browser does not support this format.":"An unsupported error occurred. The server or network failed, or your browser does not support this format.","The media is encrypted and there are no keys to decrypt it.":"The media is encrypted and there are no keys to decrypt it."}},aK=(null==(a=globalThis.navigator)?void 0:a.language)||"en",aj=(e,t={})=>(e=>{var t,i,a;let[r]=aK.split("-");return(null==(t=aQ[aK])?void 0:t[e])||(null==(i=aQ[r])?void 0:i[e])||(null==(a=aQ.en)?void 0:a[e])||e})(e).replace(/\{(\w+)\}/g,(e,i)=>i in t?String(t[i]):`{${i}}`),aY=class{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}},az=class extends aY{},aX=class extends az{constructor(){super(...arguments),this.role=null}},aJ={createElement:function(){return new a0.HTMLElement},createElementNS:function(){return new a0.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent:e=>!1},a0={ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},document:aJ,Node:az,Element:aX,HTMLElement:class extends aX{constructor(){super(...arguments),this.innerHTML=""}get content(){return new a0.DocumentFragment}},DocumentFragment:class extends aY{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem:e=>null,setItem(e,t){},removeItem(e){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia:e=>({matches:!1,media:e}),DOMParser:class{parseFromString(e,t){return{body:{textContent:e}}}}},a1="global"in globalThis&&(null==globalThis?void 0:globalThis.global)===globalThis||"u"<typeof window||void 0===window.customElements,a2=Object.keys(a0).every(e=>e in globalThis),a5=a1&&!a2?a0:globalThis,a3=a1&&!a2?aJ:globalThis.document,a4=new WeakMap,a7=e=>{let t=a4.get(e);return t||a4.set(e,t=new Set),t},a8=new a5.ResizeObserver(e=>{for(let t of e)for(let e of a7(t.target))e(t)});function a6(e,t){a7(e).add(t),a8.observe(e)}function a9(e,t){let i=a7(e);i.delete(t),i.size||a8.unobserve(e)}function re(e){let t={};for(let i of e)t[i.name]=i.value;return t}function rt(e){var t;return null!=(t=ri(e))?t:rn(e,"media-controller")}function ri(e){var t;let{MEDIA_CONTROLLER:i}=aI,a=e.getAttribute(i);if(a)return null==(t=rl(e))?void 0:t.getElementById(a)}var ra=(e,t,i=".value")=>{let a=e.querySelector(i);a&&(a.textContent=t)},rr=(e,t)=>{let i,a;return(i=`slot[name="${t}"]`,!(a=e.shadowRoot.querySelector(i))?[]:a.children)[0]},rs=(e,t)=>!!e&&!!t&&(null!=e&&!!e.contains(t)||rs(e,t.getRootNode().host)),rn=(e,t)=>{if(!e)return null;let i=e.closest(t);return i||rn(e.getRootNode().host,t)};function ro(e=document){var t;let i=null==e?void 0:e.activeElement;return i?null!=(t=ro(i.shadowRoot))?t:i:null}function rl(e){var t;let i=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e);return i instanceof ShadowRoot||i instanceof Document?i:null}function rd(e,{depth:t=3,checkOpacity:i=!0,checkVisibilityCSS:a=!0}={}){if(e.checkVisibility)return e.checkVisibility({checkOpacity:i,checkVisibilityCSS:a});let r=e;for(;r&&t>0;){let e=getComputedStyle(r);if(i&&"0"===e.opacity||a&&"hidden"===e.visibility||"none"===e.display)return!1;r=r.parentElement,t--}return!0}function rh(e,t){let i=function(e,t){var i,a;let r;for(r of null!=(i=e.querySelectorAll("style:not([media])"))?i:[]){let e;try{e=null==(a=r.sheet)?void 0:a.cssRules}catch{continue}for(let i of null!=e?e:[])if(t(i.selectorText))return i}}(e,e=>e===t);return i||ru(e,t)}function ru(e,t){var i,a;let r=null!=(i=e.querySelectorAll("style:not([media])"))?i:[],s=null==r?void 0:r[r.length-1];return(null==s?void 0:s.sheet)?(null==s||s.sheet.insertRule(`${t}{}`,s.sheet.cssRules.length),null==(a=s.sheet.cssRules)?void 0:a[s.sheet.cssRules.length-1]):(console.warn("Media Chrome: No style sheet found on style tag of",e),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}})}function rc(e,t,i=NaN){let a=e.getAttribute(t);return null!=a?+a:i}function rm(e,t,i){let a=+i;
2if(null==i||Number.isNaN(a)){e.hasAttribute(t)&&e.removeAttribute(t);return}rc(e,t,void 0)!==a&&e.setAttribute(t,`${a}`)}function rp(e,t){return e.hasAttribute(t)}function rv(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}rp(e,t)!=i&&e.toggleAttribute(t,i)}function rb(e,t,i=null){var a;return null!=(a=e.getAttribute(t))?a:i}function rE(e,t,i){if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}let a=`${i}`;rb(e,t,void 0)!==a&&e.setAttribute(t,a)}var rg=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},rf=(e,t,i)=>(rg(e,t,"read from private field"),i?i.call(e):t.get(e)),rA=(e,t,i,a)=>(rg(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rk=class extends a5.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,r,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aI.MEDIA_CONTROLLER,a_.MEDIA_PAUSED]}attributeChangedCallback(e,t,i){var a,s,n,o,l;e===aI.MEDIA_CONTROLLER&&(t&&(null==(s=null==(a=rf(this,r))?void 0:a.unassociateElement)||s.call(a,this),rA(this,r,null)),i&&this.isConnected&&(rA(this,r,null==(n=this.getRootNode())?void 0:n.getElementById(i)),null==(l=null==(o=rf(this,r))?void 0:o.associateElement)||l.call(o,this)))}connectedCallback(){var e,t,i,a,s,n;let o;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),rA(this,r,(s=this,(o=s.getAttribute(aI.MEDIA_CONTROLLER))?null==(n=s.getRootNode())?void 0:n.getElementById(o):rn(s,"media-controller"))),this.getAttribute(aI.MEDIA_CONTROLLER)&&(null==(t=null==(e=rf(this,r))?void 0:e.associateElement)||t.call(e,this)),null==(i=rf(this,r))||i.addEventListener("pointerdown",this),null==(a=rf(this,r))||a.addEventListener("click",this)}disconnectedCallback(){var e,t,i,a;this.getAttribute(aI.MEDIA_CONTROLLER)&&(null==(t=null==(e=rf(this,r))?void 0:e.unassociateElement)||t.call(e,this)),null==(i=rf(this,r))||i.removeEventListener("pointerdown",this),null==(a=rf(this,r))||a.removeEventListener("click",this),rA(this,r,null)}handleEvent(e){var t;let i=null==(t=e.composedPath())?void 0:t[0];if(["video","media-controller"].includes(null==i?void 0:i.localName)){if("pointerdown"===e.type)this._pointerType=e.pointerType;else if("click"===e.type){let{clientX:t,clientY:i}=e,{left:a,top:r,width:s,height:n}=this.getBoundingClientRect(),o=t-a,l=i-r;if(o<0||l<0||o>s||l>n||0===s&&0===n)return;let d=this._pointerType||"mouse";if(this._pointerType=void 0,"touch"===d)return void this.handleTap(e);if("mouse"===d||"pen"===d)return void this.handleMouseClick(e)}}}get mediaPaused(){return rp(this,a_.MEDIA_PAUSED)}set mediaPaused(e){rv(this,a_.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){let t=this.mediaPaused?ay.MEDIA_PLAY_REQUEST:ay.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new a5.CustomEvent(t,{composed:!0,bubbles:!0}))}};r=new WeakMap,rk.shadowRootOptions={mode:"open"},rk.getTemplateHTML=function(e){return`
3    <style>
4      :host {
5        display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
6        box-sizing: border-box;
7      }
8    </style>
9  `},a5.customElements.get("media-gesture-receiver")||a5.customElements.define("media-gesture-receiver",rk);var rw=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ry=(e,t,i)=>(rw(e,t,"read from private field"),i?i.call(e):t.get(e)),rI=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},rT=(e,t,i,a)=>(rw(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rM=(e,t,i)=>(rw(e,t,"access private method"),i),r_="audio",rS="autohide",rL="breakpoints",rx="gesturesdisabled",rC="keyboardcontrol",rR="noautohide",rD="userinactive",rN="autohideovercontrols",rP=Object.values(a_);function rU(e,t){var i,a,r;if(!e.isConnected)return;let s=Object.fromEntries((null!=(i=e.getAttribute(rL))?i:"sm:384 md:576 lg:768 xl:960").split(/\s+/).map(e=>e.split(":"))),n=(a=s,r=t,Object.keys(a).filter(e=>r>=parseInt(a[e]))),o=!1;
9if(Object.keys(s).forEach(t=>{if(n.includes(t)){e.hasAttribute(`breakpoint${t}`)||(e.setAttribute(`breakpoint${t}`,""),o=!0);return}e.hasAttribute(`breakpoint${t}`)&&(e.removeAttribute(`breakpoint${t}`),o=!0)}),o){let t=new CustomEvent(aS.BREAKPOINTS_CHANGE,{detail:n});e.dispatchEvent(t)}e.breakpointsComputed||(e.breakpointsComputed=!0,e.dispatchEvent(new CustomEvent(aS.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))}var rO=class extends a5.HTMLElement{constructor(){if(super(),rI(this,h),rI(this,p),rI(this,b),rI(this,g),rI(this,A),rI(this,w),rI(this,s,0),rI(this,n,null),rI(this,o,null),rI(this,l,void 0),this.breakpointsComputed=!1,rI(this,d,new MutationObserver(rM(this,h,u).bind(this))),rI(this,c,!1),rI(this,m,e=>{ry(this,c)||(setTimeout(()=>{rU(e.target,e.contentRect.width),rT(this,c,!1)},0),rT(this,c,!0))}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}const e=this.querySelector(":scope > slot[slot=media]");e&&e.addEventListener("slotchange",()=>{if(!e.assignedElements({flatten:!0}).length){ry(this,n)&&this.mediaUnsetCallback(ry(this,n));return}this.handleMediaUpdated(this.media)})}static get observedAttributes(){return[rS,rx].concat(rP).filter(e=>![a_.MEDIA_RENDITION_LIST,a_.MEDIA_AUDIO_TRACK_LIST,a_.MEDIA_CHAPTERS_CUES,a_.MEDIA_WIDTH,a_.MEDIA_HEIGHT,a_.MEDIA_ERROR,a_.MEDIA_ERROR_MESSAGE].includes(e))}attributeChangedCallback(e,t,i){e.toLowerCase()==rS&&(this.autohide=i)}get media(){let e=this.querySelector(":scope > [slot=media]");return(null==e?void 0:e.nodeName)=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(rT(this,n,e),e.localName.includes("-")&&await a5.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;ry(this,d).observe(this,{childList:!0,subtree:!0}),a6(this,ry(this,m));let t=null!=this.getAttribute(r_)?aj("audio player"):aj("video player");this.setAttribute("role","region"),this.setAttribute("aria-label",t),this.handleMediaUpdated(this.media),this.setAttribute(rD,""),rU(this,this.getBoundingClientRect().width),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),null==(e=a5.window)||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;ry(this,d).disconnect(),a9(this,ry(this,m)),this.media&&this.mediaUnsetCallback(this.media),null==(e=a5.window)||e.removeEventListener("mouseup",this)}mediaSetCallback(e){}mediaUnsetCallback(e){rT(this,n,null)}handleEvent(e){switch(e.type){case"pointerdown":rT(this,s,e.timeStamp);break;case"pointermove":rM(this,p,v).call(this,e);break;case"pointerup":rM(this,b,E).call(this,e);break;case"mouseleave":rM(this,g,f).call(this);break;case"mouseup":this.removeAttribute(rC);break;case"keyup":rM(this,w,y).call(this),this.setAttribute(rC,"")}}set autohide(e){let t=Number(e);rT(this,l,isNaN(t)?0:t)}get autohide(){return(void 0===ry(this,l)?2:ry(this,l)).toString()}get breakpoints(){return rb(this,rL)}set breakpoints(e){rE(this,rL,e)}get audio(){return rp(this,r_)}set audio(e){rv(this,r_,e)}get gesturesDisabled(){return rp(this,rx)}set gesturesDisabled(e){rv(this,rx,e)}get keyboardControl(){return rp(this,rC)}set keyboardControl(e){rv(this,rC,e)}get noAutohide(){return rp(this,rR)}set noAutohide(e){rv(this,rR,e)}get autohideOverControls(){return rp(this,rN)}set autohideOverControls(e){rv(this,rN,e)}get userInteractive(){return rp(this,rD)}set userInteractive(e){rv(this,rD,e)}};s=new WeakMap,n=new WeakMap,o=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakSet,u=function(e){let t=this.media;for(let i of e)if("childList"===i.type){for(let e of i.removedNodes){if("media"!=e.slot||i.target!=this)continue;let a=i.previousSibling&&i.previousSibling.previousElementSibling;if(a&&t){let t="media"!==a.slot;for(;null!==(a=a.previousSibling);)"media"==a.slot&&(t=!1);t&&this.mediaUnsetCallback(e)}else this.mediaUnsetCallback(e)}if(t)for(let e of i.addedNodes)e===t&&this.handleMediaUpdated(t)}},c=new WeakMap,m=new WeakMap,p=new WeakSet,v=function(e){if("mouse"!==e.pointerType&&e.timeStamp-ry(this,s)<250)return;rM(this,A,k).call(this),clearTimeout(ry(this,o));let t=this.hasAttribute(rN);([this,this.media].includes(e.target)||t)&&rM(this,w,y).call(this)},b=new WeakSet,E=function(e){if("touch"===e.pointerType){let t=!this.hasAttribute(rD);[this,this.media].includes(e.target)&&t?rM(this,g,f).call(this):rM(this,w,y).call(this)}else e.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(null==e?void 0:e.localName))&&rM(this,w,y).call(this)},g=new WeakSet,f=function(){if(0>ry(this,l)||this.hasAttribute(rD))return;this.setAttribute(rD,"");let e=new a5.CustomEvent(aS.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(e)},A=new WeakSet,k=function(){if(!this.hasAttribute(rD))return;this.removeAttribute(rD);let e=new a5.CustomEvent(aS.USER_INACTIVE_CHANGE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(e)},w=new WeakSet,y=function(){rM(this,A,k).call(this),clearTimeout(ry(this,o));let e=parseInt(this.autohide);e<0||rT(this,o,setTimeout(()=>{rM(this,g,f).call(this)},1e3*e))},rO.shadowRootOptions={mode:"open"},rO.getTemplateHTML=function(e){return`
10    <style>
11      
12      :host([${a_.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
13        outline: none;
14      }
15
16      :host {
17        box-sizing: border-box;
18        position: relative;
19        display: inline-block;
20        line-height: 0;
21        background-color: var(--media-background-color, #000);
22        overflow: hidden;
23      }
24
25      :host(:not([${r_}])) [part~=layer]:not([part~=media-layer]) {
26        position: absolute;
27        top: 0;
28        left: 0;
29        bottom: 0;
30        right: 0;
31        display: flex;
32        flex-flow: column nowrap;
33        align-items: start;
34        pointer-events: none;
35        background: none;
36      }
37
38      slot[name=media] {
39        display: var(--media-slot-display, contents);
40      }
41
42      
43      :host([${r_}]) slot[name=media] {
44        display: var(--media-slot-display, none);
45      }
46
47      
48      :host([${r_}]) [part~=layer][part~=gesture-layer] {
49        height: 0;
50        display: block;
51      }
52
53      
54      :host(:not([${r_}])[${rx}]) ::slotted([slot=gestures-chrome]),
55          :host(:not([${r_}])[${rx}]) media-gesture-receiver[slot=gestures-chrome] {
56        display: none;
57      }
58
59      
60      ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([role=dialog]):not([hidden])) {
61        pointer-events: auto;
62      }
63
64      :host(:not([${r_}])) *[part~=layer][part~=centered-layer] {
65        align-items: center;
66        justify-content: center;
67      }
68
69      :host(:not([${r_}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
70      :host(:not([${r_}])) media-gesture-receiver[slot=gestures-chrome] {
71        align-self: stretch;
72        flex-grow: 1;
73      }
74
75      slot[name=middle-chrome] {
76        display: inline;
77        flex-grow: 1;
78        pointer-events: none;
79        background: none;
80      }
81
82      
83      ::slotted([slot=media]),
84      ::slotted([slot=poster]) {
85        width: 100%;
86        height: 100%;
87      }
88
89      
90      :host(:not([${r_}])) .spacer {
91        flex-grow: 1;
92      }
93
94      
95      :host(:-webkit-full-screen) {
96        
97        width: 100% !important;
98        height: 100% !important;
99      }
100
101      
102      ::slotted(:not([slot=media]):not([slot=poster]):not([${rR}]):not([hidden]):not([role=dialog])) {
103        opacity: 1;
104        transition: var(--media-control-transition-in, opacity 0.25s);
105      }
106
107      
108      :host([${rD}]:not([${a_.MEDIA_PAUSED}]):not([${a_.MEDIA_IS_AIRPLAYING}
108]):not([${a_.MEDIA_IS_CASTING}]):not([${r_}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${rR}]):not([role=dialog])) {
109        opacity: 0;
110        transition: var(--media-control-transition-out, opacity 1s);
111      }
112
113      :host([${rD}]:not([${rR}]):not([${a_.MEDIA_PAUSED}]):not([${a_.MEDIA_IS_CASTING}]):not([${r_}])) ::slotted([slot=media]) {
114        cursor: none;
115      }
116
117      :host([${rD}][${rN}]:not([${rR}]):not([${a_.MEDIA_PAUSED}]):not([${a_.MEDIA_IS_CASTING}]):not([${r_}])) * {
118        --media-cursor: none;
119        cursor: none;
120      }
121
122
123      ::slotted(media-control-bar)  {
124        align-self: stretch;
125      }
126
127      
128      :host(:not([${r_}])[${a_.MEDIA_HAS_PLAYED}]) slot[name=poster] {
129        display: none;
130      }
131
132      ::slotted([role=dialog]) {
133        width: 100%;
134        height: 100%;
135        align-self: center;
136      }
137
138      ::slotted([role=menu]) {
139        align-self: end;
140      }
141    </style>
142
143    <slot name="media" part="layer media-layer"></slot>
144    <slot name="poster" part="layer poster-layer"></slot>
145    <slot name="gestures-chrome" part="layer gesture-layer">
146      <media-gesture-receiver slot="gestures-chrome">
147        <template shadowrootmode="${rk.shadowRootOptions.mode}">
148          ${rk.getTemplateHTML({})}
149        </template>
150      </media-gesture-receiver>
151    </slot>
152    <span part="layer vertical-layer">
153      <slot name="top-chrome" part="top chrome"></slot>
154      <slot name="middle-chrome" part="middle chrome"></slot>
155      <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
156      
157      <slot part="bottom chrome"></slot>
158    </span>
159    <slot name="dialog" part="layer dialog-layer"></slot>
160  `},a5.customElements.get("media-container")||a5.customElements.define("media-container",rO);var rW=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},rH=(e,t,i)=>(rW(e,t,"read from private field"),i?i.call(e):t.get(e)),r$=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},rB=(e,t,i,a)=>(rW(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),rV=class{constructor(e,t,{defaultValue:i}={defaultValue:void 0}){r$(this,S),r$(this,I,void 0),r$(this,T,void 0),r$(this,M,void 0),r$(this,_,new Set),rB(this,I,e),rB(this,T,t),rB(this,M,new Set(i))}[Symbol.iterator](){return rH(this,S,L).values()}get length(){return rH(this,S,L).size}get value(){var e;return null!=(e=[...rH(this,S,L)].join(" "))?e:""}set value(e){var t;e!==this.value&&(rB(this,_,new Set),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return[...rH(this,S,L)][e]}values(){return rH(this,S,L).values()}forEach(e,t){rH(this,S,L).forEach(e,t)}add(...e){var t,i;e.forEach(e=>rH(this,_).add(e)),(""!==this.value||(null==(t=rH(this,I))?void 0:t.hasAttribute(`${rH(this,T)}`)))&&(null==(i=rH(this,I))||i.setAttribute(`${rH(this,T)}`,`${this.value}`))}remove(...e){var t;e.forEach(e=>rH(this,_).delete(e)),null==(t=rH(this,I))||t.setAttribute(`${rH(this,T)}`,`${this.value}`)}contains(e){return rH(this,S,L).has(e)}toggle(e,t){if(void 0!==t)if(t)return this.add(e),!0;else return this.remove(e),!1;return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){return this.remove(e),this.add(t),e===t}};I=new WeakMap,T=new WeakMap,M=new WeakMap,_=new WeakMap,S=new WeakSet,L=function(){return rH(this,_).size?rH(this,_):rH(this,M)};var rq=(e="")=>{let[t,i,a]=e.split(":");return{kind:"cc"===t?aC:ax,language:i,label:a?decodeURIComponent(a):void 0}},rG=(e="",t={})=>((e="")=>e.split(/\s+/))(e).map(e=>{let i=rq(e);return{...t,...i}}),rF=e=>e?Array.isArray(e)?e.map(e=>"string"==typeof e?rq(e):e):"string"==typeof e?rG(e):[e]:[],rZ=({kind:e,label:t,language:i}={kind:"subtitles"})=>t?`${"captions"===e?"cc":"sb"}:${i}:${encodeURIComponent(t)}`:i,rQ=(e=[])=>Array.prototype.map.call(e,rZ).join(" "),rK=e=>{let t=Object.entries(e).map(([e,t])=>i=>i[e]===t);return e=>t.every(t=>t(e))},rj=(e,t=[],i=[])=>{let a=rF(i).map(rK);Array.from(t).filter(e=>a.some(t=>t(e))).forEach(t=>{t.mode=e})},rY=(e,t=()=>!0)=>
160{if(!(null==e?void 0:e.textTracks))return[];let i="function"==typeof t?t:rK(t);return Array.from(e.textTracks).filter(i)},rz=e=>{var t;return!!(null==(t=e.mediaSubtitlesShowing)?void 0:t.length)||e.hasAttribute(a_.MEDIA_SUBTITLES_SHOWING)},rX="exitFullscreen"in a3?"exitFullscreen":"webkitExitFullscreen"in a3?"webkitExitFullscreen":"webkitCancelFullScreen"in a3?"webkitCancelFullScreen":void 0,rJ="fullscreenElement"in a3?"fullscreenElement":"webkitFullscreenElement"in a3?"webkitFullscreenElement":void 0,r0="fullscreenEnabled"in a3?"fullscreenEnabled":"webkitFullscreenEnabled"in a3?"webkitFullscreenEnabled":void 0,r1=()=>{var e;return x||(x=null==(e=null==a3?void 0:a3.createElement)?void 0:e.call(a3,"video"))},r2=async(e=r1())=>{if(!e)return!1;let t=e.volume;e.volume=t/2+.1;let i=new AbortController,a=await Promise.race([r5(e,i.signal),r3(e,t)]);return i.abort(),a},r5=(e,t)=>new Promise(i=>{e.addEventListener("volumechange",()=>i(!0),{signal:t})}),r3=async(e,t)=>{for(let i=0;i<10;i++){if(e.volume===t)return!1;await aq(10)}return e.volume!==t},r4=/.*Version\/.*Safari\/.*/.test(a5.navigator.userAgent),r7=(e=r1())=>(!a5.matchMedia("(display-mode: standalone)").matches||!r4)&&"function"==typeof(null==e?void 0:e.requestPictureInPicture),r8=(e=r1())=>(e=>{let{documentElement:t,media:i}=e;return!!(null==t?void 0:t[r0])||i&&"webkitSupportsFullscreen"in i})({documentElement:a3,media:e}),r6=r8(),r9=r7(),se=!!a5.WebKitPlaybackTargetAvailabilityEvent,st=!!a5.chrome,si=e=>rY(e.media,e=>[ax,aC].includes(e.kind)).sort((e,t)=>e.kind>=t.kind?1:-1),sa=e=>rY(e.media,e=>e.mode===aD&&[ax,aC].includes(e.kind)),sr=(e,t)=>
160{let i=si(e),a=sa(e),r=!!a.length;if(i.length){if(!1===t||r&&!0!==t)rj(aR,i,a);else if(!0===t||!r&&!1!==t){let t=i[0],{options:r}=e;if(!(null==r?void 0:r.noSubtitlesLangPref)){let e=globalThis.localStorage.getItem("media-chrome-pref-subtitles-lang"),a=e?[e,...globalThis.navigator.languages]:globalThis.navigator.languages,r=i.filter(e=>a.some(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))).sort((e,t)=>a.findIndex(t=>e.language.toLowerCase().startsWith(t.split("-")[0]))-a.findIndex(e=>t.language.toLowerCase().startsWith(e.split("-")[0])));r[0]&&(t=r[0])}let{language:s,label:n,kind:o}=t;rj(aR,i,a),rj(aD,i,[{language:s,label:n,kind:o}])}}},ss=(e,t)=>e===t||null!=e&&null!=t&&typeof e==typeof t&&(!!("number"==typeof e&&Number.isNaN(e)&&Number.isNaN(t))||"object"==typeof e&&(Array.isArray(e)?sn(e,t):Object.entries(e).every(([e,i])=>e in t&&ss(i,t[e])))),sn=(e,t)=>{let i=Array.isArray(e),a=Array.isArray(t);return i===a&&(!i&&!a||e.length===t.length&&e.every((e,i)=>ss(e,t[i])))},so=Object.values(aU),sl=r2().then(e=>C=e),sd=async(...e)=>{await Promise.all(e.filter(e=>e).map(async e=>{if(!("localName"in e&&e instanceof a5.HTMLElement))return;let t=e.localName;if(!t.includes("-"))return;let i=a5.customElements.get(t);i&&e instanceof i||(await a5.customElements.whenDefined(t),a5.customElements.upgrade(e))}))},sh=new a5.DOMParser,su={mediaError:{get(e,t){let{media:i}=e;if((null==t?void 0:t.type)!=="playing")return null==i?void 0:i.error},mediaEvents:["emptied","error","playing"]},mediaErrorCode:{get(e,t){var i;let{media:a}=e;if((null==t?void 0:t.type)!=="playing")return null==(i=null==a?void 0:a.error)?void 0:i.code},mediaEvents:["emptied","error","playing"]},mediaErrorMessage:{get(e,t){var i,a;let{media:r}=e;if((null==t?void 0:t.type)!=="playing")return null!=(a=null==(i=null==r?void 0:r.error)?void 0:i.message)?a:""},mediaEvents:["emptied","error","playing"]},mediaWidth:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoWidth)?t:0},mediaEvents:["resize"]},mediaHeight:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.videoHeight)?t:0},mediaEvents:["resize"]},mediaPaused:{get(e){var t;let{media:i}=e;return null==(t=null==i?void 0:i.paused)||t},set(e,t){var i;let{media:a}=t;a&&(e?a.pause():null==(i=a.play())||i.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(e,t){let{media:i}=e;return!!i&&(t?"playing"===t.type:!i.paused)},mediaEvents:["playing","emptied"]},mediaEnded:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.ended)&&t},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.playbackRate)?t:1},set(e,t){let{media:i}=t;!i||Number.isFinite(+e)&&(i.playbackRate=+e)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.muted)&&t},set(e,t){let{media:i,options:{noMutedPref:a}={}}=t;if(i){i.muted=e;try{let t=null!==a5.localStorage.getItem("media-chrome-pref-muted"),r=i.hasAttribute("muted");if(a){t&&a5.localStorage.removeItem("media-chrome-pref-muted");return}if(r&&!t)return;a5.localStorage.setItem("media-chrome-pref-muted",e?"true":"false")}catch(e){console.debug("Error setting muted pref",e)}}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noMutedPref:i}}=t,{media:a}=t;if(a&&!a.muted&&!i)try{let i="true"===a5.localStorage.getItem("media-chrome-pref-muted");su.mediaMuted.set(i,t),e(i)}catch(e){console.debug("Error getting muted pref",e)}}]},mediaLoop:{get(e){let{media:t}=e;return null==t?void 0:t.loop},set(e,t){let{media:i}=t;i&&(i.loop=e)},mediaEvents:["medialooprequest"]},mediaVolume:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.volume)?t:1},set(e,t){let{media:i,options:{noVolumePref:a}={}}=t;if(i){try{null==e?a5.localStorage.removeItem("media-chrome-pref-volume"):i.hasAttribute("muted")||a||a5.localStorage.setItem("media-chrome-pref-volume",e.toString())}catch(e){console.debug("Error setting volume pref",e)}Number.isFinite(+e)&&(i.volume=+e)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(e,t)=>{let{options:{noVolumePref:i}}=t;if(!i)try{let{media:i}=t;if(!i)return;let a=a5.localStorage.getItem("media-chrome-pref-volume");if(null==a)return;su.mediaVolume.set(+a,t),e(+a)}catch(e){console.debug("Error getting volume pref",e)}}]},mediaVolumeLevel:{get(e){let{media:t}=e;return void 0===(null==t?void 0:t.volume)?"high":t.muted||0===t.volume?"off":t.volume<.5?"low":t.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(e){var t;let{media:i}=e;return null!=(t=null==i?void 0:i.currentTime)?t:0},set(e,t){let{media:i}=t;i&&aB(e)&&(i.currentTime=e)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(e){let{media:t,options:{defaultDuration:i}={}}=e;return i&&(!t||!t.duration||Number.isNaN(t.duration)||!Number.isFinite(t.duration))?i:Number.isFinite(null==t?void 0:t.duration)?t.duration:NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(e){let{media:t}=e;return(null==t?void 0:t.readyState)<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(e){var t;let{media:i}=e;if(!(null==(t=null==i?void 0:i.seekable)?void 0:t.length))return;let a=i.seekable.start(0),r=i.seekable.end(i.seekable.length-1);if(a||r)return[Number(a.toFixed(3)),Number(r.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(e){var t;let{media:i}=e,a=null!=(t=null==i?void 0:i.buffered)?t:[];return Array.from(a).map((e,t)=>[Number(a.start(t).toFixed(3)),Number(a.end(t).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(e){let{media:t,options:{defaultStreamType:i}={}}=e,a=[aU.LIVE,aU.ON_DEMAND].includes(i)?i:void 0;if(!t)return a;let{streamType:r}=t;if(so.includes(r))return r===aU.UNKNOWN?a:r;let s=t.duration;return s===1/0?aU.LIVE:Number.isFinite(s)?aU.ON_DEMAND:a}
160,mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(e){let{media:t}=e;if(!t)return NaN;let{targetLiveWindow:i}=t,a=su.mediaStreamType.get(e);return(null==i||Number.isNaN(i))&&a===aU.LIVE?0:i},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(e){let{media:t,options:{liveEdgeOffset:i=10}={}}=e;if(!t)return!1;if("number"==typeof t.liveEdgeStart)return!Number.isNaN(t.liveEdgeStart)&&t.currentTime>=t.liveEdgeStart;if(su.mediaStreamType.get(e)!==aU.LIVE)return!1;let a=t.seekable;if(!a)return!0;if(!a.length)return!1;let r=a.end(a.length-1)-i;return t.currentTime>=r},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get:e=>si(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get:e=>sa(e).map(({kind:e,label:t,language:i})=>({kind:e,label:t,language:i})),mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i,a;let{media:r,options:s}=t;if(!r)return;let n=e=>{var i;s.defaultSubtitles&&(e&&![aC,ax].includes(null==(i=null==e?void 0:e.track)?void 0:i.kind)||sr(t,!0))};return r.addEventListener("loadstart",n),null==(i=r.textTracks)||i.addEventListener("addtrack",n),null==(a=r.textTracks)||a.addEventListener("removetrack",n),()=>{var e,t;r.removeEventListener("loadstart",n),null==(e=r.textTracks)||e.removeEventListener("addtrack",n),null==(t=r.textTracks)||t.removeEventListener("removetrack",n)}}]},mediaChaptersCues:{get(e){var t;let{media:i}=e;if(!i)return[];let[a]=rY(i,{kind:"chapters"});return Array.from(null!=(t=null==a?void 0:a.cues)?t:[]).map(({text:e,startTime:t,endTime:i})=>({text:e&&sh.parseFromString(e,"text/html").body.textContent||e,startTime:t,endTime:i}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(!a)return;let r=a.querySelector('track[kind="chapters"][default][src]'),s=null==(i=a.shadowRoot)?void 0:i.querySelector(':is(video,audio) > track[kind="chapters"][default][src]');return null==r||r.addEventListener("load",e),null==s||s.addEventListener("load",e),()=>{null==r||r.removeEventListener("load",e),null==s||s.removeEventListener("load",e)}}]},mediaIsPip:{get(e){var t,i;let{media:a,documentElement:r}=e;if(!a||!r||!r.pictureInPictureElement)return!1;if(r.pictureInPictureElement===a)return!0;if(r.pictureInPictureElement instanceof HTMLMediaElement)return!!(null==(t=a.localName)?void 0:t.includes("-"))&&rs(a,r.pictureInPictureElement);if(r.pictureInPictureElement.localName.includes("-")){let e=r.pictureInPictureElement.shadowRoot;for(;null==e?void 0:e.pictureInPictureElement;){if(e.pictureInPictureElement===a)return!0;e=null==(i=e.pictureInPictureElement)?void 0:i.shadowRoot}}return!1},set(e,t){let{media:i}=t;if(i)if(e){if(!a3.pictureInPictureEnabled)return void console.warn("MediaChrome: Picture-in-picture is not enabled");if(!i.requestPictureInPicture)return void console.warn("MediaChrome: The current media does not support picture-in-picture");let e=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};i.requestPictureInPicture().catch(t=>{if(11===t.code){if(!i.src)return void console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.");if(0===i.readyState&&"none"===i.preload){let t=()=>{i.removeEventListener("loadedmetadata",a),i.preload="none"},a=()=>{i.requestPictureInPicture().catch(e),t()};i.addEventListener("loadedmetadata",a),i.preload="metadata",setTimeout(()=>{0===i.readyState&&e(),t()},1e3)}else throw t}else throw t})}else a3.pictureInPictureElement&&a3.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.videoRenditions)?t:[]].map(e=>({...e}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(e){var t,i,a;let{media:r}=e;return null==(a=null==(i=null==r?void 0:r.videoRenditions)?void 0:i[null==(t=r.videoRenditions)?void 0:t.selectedIndex])?void 0:a.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.videoRenditions))return void console.warn("MediaController: Rendition selection not supported by this media.");let a=Array.prototype.findIndex.call(i.videoRenditions,t=>t.id==e);i.videoRenditions.selectedIndex!=a&&(i.videoRenditions.selectedIndex=a)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(e){var t;let{media:i}=e;return[...null!=(t=null==i?void 0:i.audioTracks)?t:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(e){var t,i;let{media:a}=e;return null==(i=[...null!=(t=null==a?void 0:a.audioTracks)?t:[]].find(e=>e.enabled))?void 0:i.id},set(e,t){let{media:i}=t;if(!(null==i?void 0:i.audioTracks))return void console.warn("MediaChrome: Audio track selection not supported by this media.");
160for(let t of i.audioTracks)t.enabled=e==t.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get:e=>(e=>{var t;let{media:i,documentElement:a,fullscreenElement:r=i}=e;if(!i||!a)return!1;let s=(e=>{let{documentElement:t,media:i}=e,a=null==t?void 0:t[rJ];return!a&&"webkitDisplayingFullscreen"in i&&"webkitPresentationMode"in i&&i.webkitDisplayingFullscreen&&"fullscreen"===i.webkitPresentationMode?i:a})(e);if(!s)return!1;if(s===r||s===i)return!0;if(s.localName.includes("-")){let e=s.shadowRoot;if(!(rJ in e))return rs(s,r);for(;null==e?void 0:e[rJ];){if(e[rJ]===r)return!0;e=null==(t=e[rJ])?void 0:t.shadowRoot}}return!1})(e),set(e,t,i){var a;e?((e=>{var t;let{media:i,fullscreenElement:a}=e;try{let e=a&&"requestFullscreen"in a?"requestFullscreen":a&&"webkitRequestFullScreen"in a?"webkitRequestFullScreen":void 0;if(e){let i=null==(t=a[e])?void 0:t.call(a);if(i instanceof Promise)return i.catch(()=>{})}else(null==i?void 0:i.webkitEnterFullscreen)?i.webkitEnterFullscreen():(null==i?void 0:i.requestFullscreen)&&i.requestFullscreen()}catch(e){console.error(e)}})(t),i.detail&&(null==(a=t.media)||a.focus())):(e=>{var t;let{documentElement:i}=e;if(rX){let e=null==(t=null==i?void 0:i[rX])?void 0:t.call(i);if(e instanceof Promise)return e.catch(()=>{})}})(t)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(e){var t;let{media:i}=e;return!!(null==i?void 0:i.remote)&&(null==(t=i.remote)?void 0:t.state)!=="disconnected"&&!!i.remote.state},set(e,t){var i,a;let{media:r}=t;if(r&&(!e||(null==(i=r.remote)?void 0:i.state)==="disconnected")&&(e||(null==(a=r.remote)?void 0:a.state)==="connected")){if("function"!=typeof r.remote.prompt)return void console.warn("MediaChrome: Casting is not supported in this environment");r.remote.prompt().catch(()=>{})}},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get:()=>!1,set(e,t){let{media:i}=t;if(i){if(!(i.webkitShowPlaybackTargetPicker&&a5.WebKitPlaybackTargetAvailabilityEvent))return void console.error("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment");i.webkitShowPlaybackTargetPicker()}},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(e){let{media:t}=e;if(!r6||!r8(t))return aP}},mediaPipUnavailable:{get(e){let{media:t}=e;return r9&&r7(t)?(null==t?void 0:t.disablePictureInPicture)?aN:void 0:aP}},mediaVolumeUnavailable:{get(e){let{media:t}=e;if(!1===C||(null==t?void 0:t.volume)==void 0)return aP},stateOwnersUpdateHandlers:[e=>{null==C&&sl.then(t=>e(t?void 0:aP))}]},mediaCastUnavailable:{get(e,{availability:t="not-available"}={}){var i;let{media:a}=e;return st&&(null==(i=null==a?void 0:a.remote)?void 0:i.state)?null!=t&&"available"!==t?aN:void 0:aP},stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaAirplayUnavailable:{get:(e,t)=>se?(null==t?void 0:t.availability)==="not-available"?aN:void 0:aP,mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(e,t)=>{var i;let{media:a}=t;if(a)return a.disableRemotePlayback||a.hasAttribute("disableremoteplayback")||null==(i=null==a?void 0:a.remote)||i.watchAvailability(t=>{e({availability:t?"available":"not-available"})}).catch(t=>{"NotSupportedError"===t.name?e({availability:null}):e({availability:"not-available"})}),()=>{var e;null==(e=null==a?void 0:a.remote)||e.cancelWatchAvailability().catch(()=>{})}}]},mediaRenditionUnavailable:{get(e){var t;let{media:i}=e;return(null==i?void 0:i.videoRenditions)?(null==(t=i.videoRenditions)?void 0:t.length)?void 0:aN:aP},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(e){var t,i;let{media:a}=e;return(null==a?void 0:a.audioTracks)?(null!=(i=null==(t=a.audioTracks)?void 0:t.length)?i:0)<=1?aN:void 0:aP},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaLang:{get(e){let{options:{mediaLang:t}={}}=e;return null!=t?t:"en"}}},sc={[ay.MEDIA_PREVIEW_REQUEST](e,t,{detail:i}){var a,r,s;let n,o,{media:l}=t,d=null!=i?i:void 0;if(l&&null!=d){let[e]=rY(l,{kind:"metadata",label:"thumbnails"}),t=Array.prototype.find.call(null!=(a=null==e?void 0:e.cues)?a:[],(e,t,i)=>0===t?e.endTime>
160d:t===i.length-1?e.startTime<=d:e.startTime<=d&&e.endTime>d);if(t){let e=/'^(?:[a-z]+:)?\/\//i.test(t.text)||null==(r=null==l?void 0:l.querySelector('track[label="thumbnails"]'))?void 0:r.src,i=new URL(t.text,e);o=new URLSearchParams(i.hash).get("#xywh").split(",").map(e=>+e),n=i.href}}let h=e.mediaDuration.get(t),u=null==(s=e.mediaChaptersCues.get(t).find((e,t,i)=>t===i.length-1&&h===e.endTime?e.startTime<=d&&e.endTime>=d:e.startTime<=d&&e.endTime>d))?void 0:s.text;return null!=i&&null==u&&(u=""),{mediaPreviewTime:d,mediaPreviewImage:n,mediaPreviewCoords:o,mediaPreviewChapter:u}},[ay.MEDIA_PAUSE_REQUEST](e,t){e.mediaPaused.set(!0,t)},[ay.MEDIA_PLAY_REQUEST](e,t){var i,a,r,s;let n=e.mediaStreamType.get(t)===aU.LIVE,o=!(null==(i=t.options)?void 0:i.noAutoSeekToLive),l=e.mediaTargetLiveWindow.get(t)>0;if(n&&o&&!l){let i=null==(a=e.mediaSeekable.get(t))?void 0:a[1];if(i){let a=null!=(s=null==(r=t.options)?void 0:r.seekToLiveOffset)?s:0;e.mediaCurrentTime.set(i-a,t)}}e.mediaPaused.set(!1,t)},[ay.MEDIA_PLAYBACK_RATE_REQUEST](e,t,{detail:i}){e.mediaPlaybackRate.set(i,t)},[ay.MEDIA_MUTE_REQUEST](e,t){e.mediaMuted.set(!0,t)},[ay.MEDIA_UNMUTE_REQUEST](e,t){e.mediaVolume.get(t)||e.mediaVolume.set(.25,t),e.mediaMuted.set(!1,t)},[ay.MEDIA_LOOP_REQUEST](e,t,{detail:i}){let a=!!i;return e.mediaLoop.set(a,t),{mediaLoop:a}},[ay.MEDIA_VOLUME_REQUEST](e,t,{detail:i}){i&&e.mediaMuted.get(t)&&e.mediaMuted.set(!1,t),e.mediaVolume.set(i,t)},[ay.MEDIA_SEEK_REQUEST](e,t,{detail:i}){e.mediaCurrentTime.set(i,t)},[ay.MEDIA_SEEK_TO_LIVE_REQUEST](e,t){var i,a,r;let s=null==(i=e.mediaSeekable.get(t))?void 0:i[1];if(Number.isNaN(Number(s)))return;let n=null!=(r=null==(a=t.options)?void 0:a.seekToLiveOffset)?r:0;e.mediaCurrentTime.set(s-n,t)},[ay.MEDIA_SHOW_SUBTITLES_REQUEST](e,t,{detail:i}){var a;let{options:r}=t,s=si(t),n=rF(i),o=null==(a=n[0])?void 0:a.language;o&&!r.noSubtitlesLangPref&&a5.localStorage.setItem("media-chrome-pref-subtitles-lang",o),rj(aD,s,n)},[ay.MEDIA_DISABLE_SUBTITLES_REQUEST](e,t,{detail:i}){rj(aR,si(t),null!=i?i:[])},[ay.MEDIA_TOGGLE_SUBTITLES_REQUEST](e,t,{detail:i}){sr(t,i)},[ay.MEDIA_RENDITION_REQUEST](e,t,{detail:i}){e.mediaRenditionSelected.set(i,t)},[ay.MEDIA_AUDIO_TRACK_REQUEST](e,t,{detail:i}){e.mediaAudioTrackEnabled.set(i,t)},[ay.MEDIA_ENTER_PIP_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsPip.set(!0,t)},[ay.MEDIA_EXIT_PIP_REQUEST](e,t){e.mediaIsPip.set(!1,t)},[ay.MEDIA_ENTER_FULLSCREEN_REQUEST](e,t,i){e.mediaIsPip.get(t)&&e.mediaIsPip.set(!1,t),e.mediaIsFullscreen.set(!0,t,i)},[ay.MEDIA_EXIT_FULLSCREEN_REQUEST](e,t){e.mediaIsFullscreen.set(!1,t)},[ay.MEDIA_ENTER_CAST_REQUEST](e,t){e.mediaIsFullscreen.get(t)&&e.mediaIsFullscreen.set(!1,t),e.mediaIsCasting.set(!0,t)},[ay.MEDIA_EXIT_CAST_REQUEST](e,t){e.mediaIsCasting.set(!1,t)},[ay.MEDIA_AIRPLAY_REQUEST](e,t){e.mediaIsAirplaying.set(!0,t)}},sm=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},sp=(e,t,i)=>(sm(e,t,"read from private field"),i?i.call(e):t.get(e)),sv=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},sb=(e,t,i,a)=>(sm(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),sE=(e,t,i)=>(sm(e,t,"access private method"),i),sg=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Enter"," ","f","m","k","c","l","j",">","<","p"],sf="defaultsubtitles",sA="defaultstreamtype",sk="defaultduration",sw="fullscreenelement",sy="hotkeys",sI="keyboardbackwardseekoffset",sT="keyboardforwardseekoffset",sM="keyboarddownvolumestep",s_="keyboardupvolumestep",sS="keysused",sL="lang",sx="loop",sC="liveedgeoffset",sR="noautoseektolive",sD="nodefaultstore",sN="nohotkeys",sP="nomutedpref",sU="nosubtitleslangpref",sO="novolumepref",sW="seektoliveoffset",sH=class extends rO{constructor(){super(),sv(this,H),sv(this,B),sv(this,q),sv(this,F),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,sv(this,R,new rV(this,sy)),sv(this,D,void 0),sv(this,N,void 0),sv(this,P,null),sv(this,U,void 0),sv(this,O,void 0),sv(this,W,e=>{var t;null==(t=sp(this,N))||t.dispatch(e)}),this.associateElement(this);let e={};sb(this,U,t=>{Object.entries(t).forEach(([t,i])=>{if(t in e&&e[t]===i)return;
160this.propagateMediaState(t,i);let a=t.toLowerCase(),r=new a5.CustomEvent(aL[a],{composed:!0,detail:i});this.dispatchEvent(r)}),e=t}),this.hasAttribute(sN)?this.disableHotkeys():this.enableHotkeys()}static get observedAttributes(){return super.observedAttributes.concat(sN,sy,sA,sf,sk,sP,sO,sL,sx)}get mediaStore(){return sp(this,N)}set mediaStore(e){var t,i;(sp(this,N)&&(null==(t=sp(this,O))||t.call(this),sb(this,O,void 0)),sb(this,N,e),sp(this,N)||this.hasAttribute(sD))?sb(this,O,null==(i=sp(this,N))?void 0:i.subscribe(sp(this,U))):sE(this,H,$).call(this)}get fullscreenElement(){var e;return null!=(e=sp(this,D))?e:this}set fullscreenElement(e){var t;this.hasAttribute(sw)&&this.removeAttribute(sw),sb(this,D,e),null==(t=sp(this,N))||t.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}get defaultSubtitles(){return rp(this,sf)}set defaultSubtitles(e){rv(this,sf,e)}get defaultStreamType(){return rb(this,sA)}set defaultStreamType(e){rE(this,sA,e)}get defaultDuration(){return rc(this,sk)}set defaultDuration(e){rm(this,sk,e)}get noHotkeys(){return rp(this,sN)}set noHotkeys(e){rv(this,sN,e)}get keysUsed(){return rb(this,sS)}set keysUsed(e){rE(this,sS,e)}get liveEdgeOffset(){return rc(this,sC)}set liveEdgeOffset(e){rm(this,sC,e)}get noAutoSeekToLive(){return rp(this,sR)}set noAutoSeekToLive(e){rv(this,sR,e)}get noVolumePref(){return rp(this,sO)}set noVolumePref(e){rv(this,sO,e)}get noMutedPref(){return rp(this,sP)}set noMutedPref(e){rv(this,sP,e)}get noSubtitlesLangPref(){return rp(this,sU)}set noSubtitlesLangPref(e){rv(this,sU,e)}get noDefaultStore(){return rp(this,sD)}set noDefaultStore(e){rv(this,sD,e)}attributeChangedCallback(e,t,i){var a,r,s,n,o,l,d,h,u,c,m,p;if(super.attributeChangedCallback(e,t,i),e===sN)i!==t&&""===i?(this.hasAttribute(sy)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==t&&null===i&&this.enableHotkeys();else if(e===sy)sp(this,R).value=i;else if(e===sf&&i!==t)null==(a=sp(this,N))||a.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(sf)}});else if(e===sA)null==(s=sp(this,N))||s.dispatch({type:"optionschangerequest",detail:{defaultStreamType:null!=(r=this.getAttribute(sA))?r:void 0}});else if(e===sC)null==(n=sp(this,N))||n.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(sC)?+this.getAttribute(sC):void 0,seekToLiveOffset:this.hasAttribute(sW)?void 0:+this.getAttribute(sC)}});else if(e===sW)null==(o=sp(this,N))||o.dispatch({type:"optionschangerequest",detail:{seekToLiveOffset:this.hasAttribute(sW)?+this.getAttribute(sW):void 0}});else if(e===sR)null==(l=sp(this,N))||l.dispatch({type:"optionschangerequest",detail:{noAutoSeekToLive:this.hasAttribute(sR)}});else if(e===sw){let e=i?null==(d=this.getRootNode())?void 0:d.getElementById(i):void 0;sb(this,D,e),null==(h=sp(this,N))||h.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}else e===sL&&i!==t?(aK=i,null==(u=sp(this,N))||u.dispatch({type:"optionschangerequest",detail:{mediaLang:i}})):e===sx&&i!==t?null==(c=sp(this,N))||c.dispatch({type:ay.MEDIA_LOOP_REQUEST,detail:null!=i}):e===sO&&i!==t?null==(m=sp(this,N))||m.dispatch({type:"optionschangerequest",detail:{noVolumePref:this.hasAttribute(sO)}}):e===sP&&i!==t&&(null==(p=sp(this,N))||p.dispatch({type:"optionschangerequest",detail:{noMutedPref:this.hasAttribute(sP)}}))}connectedCallback(){var e,t;sp(this,N)||this.hasAttribute(sD)||sE(this,H,$).call(this),null==(e=sp(this,N))||e.dispatch({type:"documentelementchangerequest",detail:a3}),super.connectedCallback(),sp(this,N)&&!sp(this,O)&&sb(this,O,null==(t=sp(this,N))?void 0:t.subscribe(sp(this,U))),this.hasAttribute(sN)?this.disableHotkeys():this.enableHotkeys()}disconnectedCallback(){var e,t,i,a;null==(e=super.disconnectedCallback)||e.call(this),sp(this,N)&&(null==(t=sp(this,N))||t.dispatch({type:"documentelementchangerequest",detail:void 0}),null==(i=sp(this,N))||i.dispatch({type:ay.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})),sp(this,O)&&(null==(a=sp(this,O))||a.call(this),sb(this,O,void 0))}mediaSetCallback(e){var t;super.mediaSetCallback(e),null==(t=sp(this,N))||t.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var t;super.mediaUnsetCallback(e),null==(t=sp(this,N))||t.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,t){sK(this.mediaStateReceivers,e,t)}associateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;if(t.has(e))return;let i=sj(e,this.registerMediaStateReceiver.bind(this),this.unregisterMediaStateReceiver.bind(this));
160Object.values(ay).forEach(t=>{e.addEventListener(t,sp(this,W))}),t.set(e,i)}unassociateElement(e){if(!e)return;let{associatedElementSubscriptions:t}=this;t.has(e)&&(t.get(e)(),t.delete(e),Object.values(ay).forEach(t=>{e.removeEventListener(t,sp(this,W))}))}registerMediaStateReceiver(e){if(!e)return;let t=this.mediaStateReceivers;!(t.indexOf(e)>-1)&&(t.push(e),sp(this,N)&&Object.entries(sp(this,N).getState()).forEach(([t,i])=>{sK([e],t,i)}))}unregisterMediaStateReceiver(e){let t=this.mediaStateReceivers,i=t.indexOf(e);i<0||t.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",sE(this,q,G))}disableHotkeys(){this.removeEventListener("keydown",sE(this,q,G)),this.removeEventListener("keyup",sE(this,B,V))}get hotkeys(){return rb(this,sy)}set hotkeys(e){rE(this,sy,e)}keyboardShortcutHandler(e){var t,i,a,r,s,n,o,l,d;let h,u,c,m=e.target;if(!((null!=(a=null!=(i=null==(t=m.getAttribute(sS))?void 0:t.split(" "))?i:null==m?void 0:m.keysUsed)?a:[]).map(e=>"Space"===e?" ":e).filter(Boolean).includes(e.key)||sp(this,R).contains(`no${e.key.toLowerCase()}`)||" "===e.key&&sp(this,R).contains("nospace"))&&!(e.shiftKey&&("/"===e.key||"?"===e.key)&&sp(this,R).contains("noshift+/")))switch(e.key){case" ":case"k":h=sp(this,N).getState().mediaPaused?ay.MEDIA_PLAY_REQUEST:ay.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new a5.CustomEvent(h,{composed:!0,bubbles:!0}));break;case"m":h="off"===this.mediaStore.getState().mediaVolumeLevel?ay.MEDIA_UNMUTE_REQUEST:ay.MEDIA_MUTE_REQUEST,this.dispatchEvent(new a5.CustomEvent(h,{composed:!0,bubbles:!0}));break;case"f":h=this.mediaStore.getState().mediaIsFullscreen?ay.MEDIA_EXIT_FULLSCREEN_REQUEST:ay.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new a5.CustomEvent(h,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new a5.CustomEvent(ay.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":case"j":{let e=this.hasAttribute(sI)?+this.getAttribute(sI):10;u=Math.max((null!=(r=this.mediaStore.getState().mediaCurrentTime)?r:0)-e,0),c=new a5.CustomEvent(ay.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"ArrowRight":case"l":{let e=this.hasAttribute(sT)?+this.getAttribute(sT):10;u=Math.max((null!=(s=this.mediaStore.getState().mediaCurrentTime)?s:0)+e,0),c=new a5.CustomEvent(ay.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"ArrowUp":{let e=this.hasAttribute(s_)?+this.getAttribute(s_):.025;u=Math.min((null!=(n=this.mediaStore.getState().mediaVolume)?n:1)+e,1),c=new a5.CustomEvent(ay.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"ArrowDown":{let e=this.hasAttribute(sM)?+this.getAttribute(sM):.025;u=Math.max((null!=(o=this.mediaStore.getState().mediaVolume)?o:1)-e,0),c=new a5.CustomEvent(ay.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break}case"<":u=Math.max((null!=(l=this.mediaStore.getState().mediaPlaybackRate)?l:1)-.25,.25).toFixed(2),c=new a5.CustomEvent(ay.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break;case">":u=Math.min((null!=(d=this.mediaStore.getState().mediaPlaybackRate)?d:1)+.25,2).toFixed(2),c=new a5.CustomEvent(ay.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:u}),this.dispatchEvent(c);break;case"/":case"?":e.shiftKey&&sE(this,F,Z).call(this);break;case"p":h=this.mediaStore.getState().mediaIsPip?ay.MEDIA_EXIT_PIP_REQUEST:ay.MEDIA_ENTER_PIP_REQUEST,c=new a5.CustomEvent(h,{composed:!0,bubbles:!0}),this.dispatchEvent(c)}}};R=new WeakMap,D=new WeakMap,N=new WeakMap,P=new WeakMap,U=new WeakMap,O=new WeakMap,W=new WeakMap,H=new WeakSet,$=function(){var e;this.mediaStore=(({media:e,fullscreenElement:t,documentElement:i,stateMediator:a=su,requestMap:r=sc,options:s={},monitorStateOwnersOnlyWithSubscriptions:n=!0})=>{let o,l=[],d={options:{...s}},h=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0}),u=e=>{void 0==e||ss(e,h)||(h=Object.freeze({...h,...e}),l.forEach(e=>e(h)))},c=()=>{u(Object.entries(a).reduce((e,[t,{get:i}])=>(e[t]=i(d),e),{}))},m={},p=async(e,t)=>{var i,r,s,h,p,v,b,E,g,f,A,k,w,y,I,T;let M=!!o;if(o={...d,...null!=o?o:{},...e},M)return;await sd(...Object.values(e));let _=l.length>0&&0===t&&n,S=d.media!==o.media,L=(null==(i=d.media)?void 0:i.textTracks)!==(null==(r=o.media)?void 0:r.textTracks),x=(null==(s=d.media)?void 0:s.videoRenditions)!==(null==(h=o.media)?void 0:h.videoRenditions),C=(null==(p=d.media)?void 0:p.audioTracks)!==(null==(v=o.media)?void 0:v.audioTracks),R=(null==(b=d.media)?void 0:b.remote)!==(null==(E=o.media)?void 0:E.remote),D=d.documentElement!==o.documentElement,N=!!d.media&&(S||_),P=!!(null==(g=d.media)?void 0:g.textTracks)&&(L||_),U=!!(null==(f=d.media)?void 0:f.videoRenditions)&&(x||_),O=!!(null==(A=d.media)?void 0:A.audioTracks)&&(C||_),W=!!(null==(k=d.media)?void 0:k.remote)&&(R||_),H=!!d.documentElement&&(D||_),$=N||P||U||O||W||H,B=0===l.length&&1===t&&n,V=!!o.media&&(S||B),q=!!(null==(w=o.media)?void 0:w.textTracks)&&(L||B),G=!!(null==(y=o.media)?void 0:y.videoRenditions)&&(x||B),F=!!(null==(I=o.media)?void 0:I.audioTracks)&&(C||B),Z=!!(null==(T=o.media)?void 0:T.remote)&&(R||B),Q=!!o.documentElement&&(D||B),K=V||q||G||F||Z||Q;
160if(!($||K)){Object.entries(o).forEach(([e,t])=>{d[e]=t}),c(),o=void 0;return}Object.entries(a).forEach(([e,{get:t,mediaEvents:i=[],textTracksEvents:a=[],videoRenditionsEvents:r=[],audioTracksEvents:s=[],remoteEvents:n=[],rootEvents:l=[],stateOwnersUpdateHandlers:h=[]}])=>{let c;m[e]||(m[e]={});let p=i=>{u({[e]:t(d,i)})};c=m[e].mediaEvents,i.forEach(t=>{c&&N&&(d.media.removeEventListener(t,c),m[e].mediaEvents=void 0),V&&(o.media.addEventListener(t,p),m[e].mediaEvents=p)}),c=m[e].textTracksEvents,a.forEach(t=>{var i,a;c&&P&&(null==(i=d.media.textTracks)||i.removeEventListener(t,c),m[e].textTracksEvents=void 0),q&&(null==(a=o.media.textTracks)||a.addEventListener(t,p),m[e].textTracksEvents=p)}),c=m[e].videoRenditionsEvents,r.forEach(t=>{var i,a;c&&U&&(null==(i=d.media.videoRenditions)||i.removeEventListener(t,c),m[e].videoRenditionsEvents=void 0),G&&(null==(a=o.media.videoRenditions)||a.addEventListener(t,p),m[e].videoRenditionsEvents=p)}),c=m[e].audioTracksEvents,s.forEach(t=>{var i,a;c&&O&&(null==(i=d.media.audioTracks)||i.removeEventListener(t,c),m[e].audioTracksEvents=void 0),F&&(null==(a=o.media.audioTracks)||a.addEventListener(t,p),m[e].audioTracksEvents=p)}),c=m[e].remoteEvents,n.forEach(t=>{var i,a;c&&W&&(null==(i=d.media.remote)||i.removeEventListener(t,c),m[e].remoteEvents=void 0),Z&&(null==(a=o.media.remote)||a.addEventListener(t,p),m[e].remoteEvents=p)}),c=m[e].rootEvents,l.forEach(t=>{c&&H&&(d.documentElement.removeEventListener(t,c),m[e].rootEvents=void 0),Q&&(o.documentElement.addEventListener(t,p),m[e].rootEvents=p)});let v=m[e].stateOwnersUpdateHandlers;if(v&&$&&(Array.isArray(v)?v:[v]).forEach(e=>{"function"==typeof e&&e()}),K){let t=h.map(e=>e(p,o)).filter(e=>"function"==typeof e);m[e].stateOwnersUpdateHandlers=1===t.length?t[0]:t}else $&&(m[e].stateOwnersUpdateHandlers=void 0)}),Object.entries(o).forEach(([e,t])=>{d[e]=t}),c(),o=void 0};return p({media:e,fullscreenElement:t,documentElement:i,options:s}),{dispatch(e){let{type:t,detail:i}=e;r[t]&&null==h.mediaErrorCode?u(r[t](a,d,e)):"mediaelementchangerequest"===t?p({media:i}):"fullscreenelementchangerequest"===t?p({fullscreenElement:i}):"documentelementchangerequest"===t?p({documentElement:i}):"optionschangerequest"===t&&(Object.entries(null!=i?i:{}).forEach(([e,t])=>{d.options[e]=t}),c())},getState:()=>h,subscribe:e=>(p({},l.length+1),l.push(e),e(h),()=>{let t=l.indexOf(e);t>=0&&(p({},l.length-1),l.splice(t,1))})}})({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(sf),defaultDuration:this.hasAttribute(sk)?+this.getAttribute(sk):void 0,defaultStreamType:null!=(e=this.getAttribute(sA))?e:void 0,liveEdgeOffset:this.hasAttribute(sC)?+this.getAttribute(sC):void 0,seekToLiveOffset:this.hasAttribute(sW)?+this.getAttribute(sW):this.hasAttribute(sC)?+this.getAttribute(sC):void 0,noAutoSeekToLive:this.hasAttribute(sR),noVolumePref:this.hasAttribute(sO),noMutedPref:this.hasAttribute(sP),noSubtitlesLangPref:this.hasAttribute(sU)}})},B=new WeakSet,V=function(e){let{key:t,shiftKey:i}=e;i&&("/"===t||"?"===t)||sg.includes(t)?this.keyboardShortcutHandler(e):this.removeEventListener("keyup",sE(this,B,V))},q=new WeakSet,G=function(e){var t;let{metaKey:i,altKey:a,key:r,shiftKey:s}=e,n=s&&("/"===r||"?"===r);if(n&&(null==(t=sp(this,P))?void 0:t.open)||i||a||!n&&!sg.includes(r))return void this.removeEventListener("keyup",sE(this,B,V));let o=e.target,l=o instanceof HTMLElement&&("media-volume-range"===o.tagName.toLowerCase()||"media-time-range"===o.tagName.toLowerCase());![" ","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)||sp(this,R).contains(`no${r.toLowerCase()}`)||" "===r&&sp(this,R).contains("nospace")||l||e.preventDefault(),this.addEventListener("keyup",sE(this,B,V),{once:!0})},F=new WeakSet,Z=function(){sp(this,P)||(sb(this,P,a3.createElement("media-keyboard-shortcuts-dialog")),this.appendChild(sp(this,P))),sp(this,P).open=!0};var s$=Object.values(a_),sB=Object.values(aT),sV=e=>{var t,i,a,r;let{observedAttributes:s}=e.constructor;!s&&(null==(t=e.nodeName)?void 0:t.includes("-"))&&(a5.customElements.upgrade(e),{observedAttributes:s}=e.constructor);let n=null==(r=null==(a=null==(i=null==e?void 0:e.getAttribute)?void 0:i.call(e,aI.MEDIA_CHROME_ATTRIBUTES))?void 0:a.split)?void 0:r.call(a,/\s+/);return Array.isArray(s||n)?(s||n).filter(e=>s$.includes(e)):[]},sq=e=>{var t,i;return(null==(t=e.nodeName)?void 0:t.includes("-"))&&a5.customElements.get(null==(i=e.nodeName)?void 0:i.toLowerCase())&&!(e instanceof a5.customElements.get(e.nodeName.toLowerCase()))&&a5.customElements.upgrade(e),sB.some(t=>t in e)||!!sV(e).length},sG=e=>{var t;return null==(t=null==e?void 0:e.join)?void 0:t.call(e,":")},sF={[a_.MEDIA_SUBTITLES_LIST]:rQ,[a_.MEDIA_SUBTITLES_SHOWING]:rQ,[a_.MEDIA_SEEKABLE]:sG,[a_.MEDIA_BUFFERED]:e=>null==e?void 0:e.map(sG).join(" "),[a_.MEDIA_PREVIEW_COORDS]:e=>null==e?void 0:e.join(" "),[a_.MEDIA_RENDITION_LIST]:function(e){return null==e?void 0:e.map(aO).join(" ")},[a_.MEDIA_AUDIO_TRACK_LIST]:function(e){return null==e?void 0:e.map(aH).join(" ")}},sZ=async(e,t,i)=>{var a,r;if(e.isConnected||await aq(0),"boolean"==typeof i||null==i)return rv(e,t,i);if("number"==typeof i)return rm(e,t,i);if("string"==typeof i)return rE(e,t,i);if(Array.isArray(i)&&!i.length)return e.removeAttribute(t);let s=null!=(r=null==(a=sF[t])?void 0:a.call(sF,i))?r:i;return e.setAttribute(t,s)},sQ=(e,t)=>{var i;if(null==(i=e.closest)?void 0:i.call(e,'*[slot="media"]'))return;let a=(e,t)=>{var i,a;sq(e)&&t(e);let{children:r=[]}=null!=e?e:{};[...r,...null!=(a=null==(i=null==e?void 0:e.shadowRoot)?void 0:i.children)?a:[]].forEac
160h(e=>sQ(e,t))},r=null==e?void 0:e.nodeName.toLowerCase();r.includes("-")&&!sq(e)?a5.customElements.whenDefined(r).then(()=>{a(e,t)}):a(e,t)},sK=(e,t,i)=>{e.forEach(e=>{if(t in e){e[t]=i;return}let a=sV(e),r=t.toLowerCase();a.includes(r)&&sZ(e,r,i)})},sj=(e,t,i)=>{sQ(e,t);let a=e=>{var i;t(null!=(i=null==e?void 0:e.composedPath()[0])?i:e.target)},r=e=>{var t;i(null!=(t=null==e?void 0:e.composedPath()[0])?t:e.target)};e.addEventListener(ay.REGISTER_MEDIA_STATE_RECEIVER,a),e.addEventListener(ay.UNREGISTER_MEDIA_STATE_RECEIVER,r);let s=[],n=e=>{let a=e.target;"media"!==a.name&&(s.forEach(e=>sQ(e,i)),(s=[...a.assignedElements({flatten:!0})]).forEach(e=>sQ(e,t)))};e.addEventListener("slotchange",n);let o=new MutationObserver(e=>{e.forEach(e=>{let{addedNodes:a=[],removedNodes:r=[],type:s,target:n,attributeName:o}=e;"childList"===s?(Array.prototype.forEach.call(a,e=>sQ(e,t)),Array.prototype.forEach.call(r,e=>sQ(e,i))):"attributes"===s&&o===aI.MEDIA_CHROME_ATTRIBUTES&&(sq(n)?t(n):i(n))})});return o.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{sQ(e,i),e.removeEventListener("slotchange",n),o.disconnect(),e.removeEventListener(ay.REGISTER_MEDIA_STATE_RECEIVER,a),e.removeEventListener(ay.UNREGISTER_MEDIA_STATE_RECEIVER,r)}};a5.customElements.get("media-controller")||a5.customElements.define("media-controller",sH);var sY="placement",sz="bounds",sX=class extends a5.HTMLElement{constructor(){if(super(),this.updateXOffset=()=>{var e;if(!rd(this,{checkOpacity:!1,checkVisibilityCSS:!1}))return;let t=this.placement;if("left"===t||"right"===t)return void this.style.removeProperty("--media-tooltip-offset-x");let i=getComputedStyle(this),a=null!=(e=rn(this,"#"+this.bounds))?e:rt(this);if(!a)return;let{x:r,width:s}=a.getBoundingClientRect(),{x:n,width:o}=this.getBoundingClientRect(),l=i.getPropertyValue("--media-tooltip-offset-x"),d=l?parseFloat(l.replace("px","")):0,h=i.getPropertyValue("--media-tooltip-container-margin"),u=h?parseFloat(h.replace("px","")):0,c=n-r+d-u,m=n+o-(r+s)+d+u;c<0?this.style.setProperty("--media-tooltip-offset-x",`${c}px`):m>0?this.style.setProperty("--media-tooltip-offset-x",`${m}px`):this.style.removeProperty("--media-tooltip-offset-x")},!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}if(this.arrowEl=this.shadowRoot.querySelector("#arrow"),Object.prototype.hasOwnProperty.call(this,"placement")){const e=this.placement;delete this.placement,this.placement=e}}static get observedAttributes(){return[sY,sz]}get placement(){return rb(this,sY)}set placement(e){rE(this,sY,e)}get bounds(){return rb(this,sz)}set bounds(e){rE(this,sz,e)}};sX.shadowRootOptions={mode:"open"},sX.getTemplateHTML=function(e){return`
161    <style>
162      :host {
163        --_tooltip-background-color: var(--media-tooltip-background-color, var(--media-secondary-color, rgba(20, 20, 30, .7)));
164        --_tooltip-background: var(--media-tooltip-background, var(--_tooltip-background-color));
165        --_tooltip-arrow-half-width: calc(var(--media-tooltip-arrow-width, 12px) / 2);
166        --_tooltip-arrow-height: var(--media-tooltip-arrow-height, 5px);
167        --_tooltip-arrow-background: var(--media-tooltip-arrow-color, var(--_tooltip-background-color));
168        position: relative;
169        pointer-events: none;
170        display: var(--media-tooltip-display, inline-flex);
171        justify-content: center;
172        align-items: center;
173        box-sizing: border-box;
174        z-index: var(--media-tooltip-z-index, 1);
175        background: var(--_tooltip-background);
176        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
177        font: var(--media-font,
178          var(--media-font-weight, 400)
179          var(--media-font-size, 13px) /
180          var(--media-text-content-height, var(--media-control-height, 18px))
181          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
182        padding: var(--media-tooltip-padding, .35em .7em);
183        border: var(--media-tooltip-border, none);
184        border-radius: var(--media-tooltip-border-radius, 5px);
185        filter: var(--media-tooltip-filter, drop-shadow(0 0 4px rgba(0, 0, 0, .2)));
186        white-space: var(--media-tooltip-white-space, nowrap);
187      }
188
189      :host([hidden]) {
190        display: none;
191      }
192
193      img, svg {
194        display: inline-block;
195      }
196
197      #arrow {
198        position: absolute;
199        width: 0px;
200        height: 0px;
201        border-style: solid;
202        display: var(--media-tooltip-arrow-display, block);
203      }
204
205      :host(:not([placement])),
206      :host([placement="top"]) {
207        position: absolute;
208        bottom: calc(100% + var(--media-tooltip-distance, 12px));
209        left: 50%;
210        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0
210);
211      }
212      :host(:not([placement])) #arrow,
213      :host([placement="top"]) #arrow {
214        top: 100%;
215        left: 50%;
216        border-width: var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width);
217        border-color: var(--_tooltip-arrow-background) transparent transparent transparent;
218        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
219      }
220
221      :host([placement="right"]) {
222        position: absolute;
223        left: calc(100% + var(--media-tooltip-distance, 12px));
224        top: 50%;
225        transform: translate(0, -50%);
226      }
227      :host([placement="right"]) #arrow {
228        top: 50%;
229        right: 100%;
230        border-width: var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width) 0;
231        border-color: transparent var(--_tooltip-arrow-background) transparent transparent;
232        transform: translate(0, -50%);
233      }
234
235      :host([placement="bottom"]) {
236        position: absolute;
237        top: calc(100% + var(--media-tooltip-distance, 12px));
238        left: 50%;
239        transform: translate(calc(-50% - var(--media-tooltip-offset-x, 0px)), 0);
240      }
241      :host([placement="bottom"]) #arrow {
242        bottom: 100%;
243        left: 50%;
244        border-width: 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height) var(--_tooltip-arrow-half-width);
245        border-color: transparent transparent var(--_tooltip-arrow-background) transparent;
246        transform: translate(calc(-50% + var(--media-tooltip-offset-x, 0px)), 0);
247      }
248
249      :host([placement="left"]) {
250        position: absolute;
251        right: calc(100% + var(--media-tooltip-distance, 12px));
252        top: 50%;
253        transform: translate(0, -50%);
254      }
255      :host([placement="left"]) #arrow {
256        top: 50%;
257        left: 100%;
258        border-width: var(--_tooltip-arrow-half-width) 0 var(--_tooltip-arrow-half-width) var(--_tooltip-arrow-height);
259        border-color: transparent transparent transparent var(--_tooltip-arrow-background);
260        transform: translate(0, -50%);
261      }
262      
263      :host([placement="none"]) #arrow {
264        display: none;
265      }
266    </style>
267    <slot></slot>
268    <div id="arrow"></div>
269  `},a5.customElements.get("media-tooltip")||a5.customElements.define("media-tooltip",sX);var sJ=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},s0=(e,t,i)=>(sJ(e,t,"read from private field"),i?i.call(e):t.get(e)),s1=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},s2=(e,t,i,a)=>(sJ(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),s5="tooltipplacement",s3="disabled",s4="notooltip",s7=class extends a5.HTMLElement{constructor(){if(super(),s1(this,X),s1(this,Q,void 0),this.preventClick=!1,this.tooltipEl=null,s1(this,K,e=>{this.preventClick||this.handleClick(e),setTimeout(s0(this,j),0)}),s1(this,j,()=>{var e,t;null==(t=null==(e=this.tooltipEl)?void 0:e.updateXOffset)||t.call(e)}),s1(this,Y,e=>{let{key:t}=e;this.keysUsed.includes(t)?this.preventClick||this.handleClick(e):this.removeEventListener("keyup",s0(this,Y))}),s1(this,z,e=>{let{metaKey:t,altKey:i,key:a}=e;t||i||!this.keysUsed.includes(a)?this.removeEventListener("keyup",s0(this,Y)):this.addEventListener("keyup",s0(this,Y),{once:!0})}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.tooltipEl=this.shadowRoot.querySelector("media-tooltip")}static get observedAttributes(){return["disabled",s5,aI.MEDIA_CONTROLLER,a_.MEDIA_LANG]}enable(){this.addEventListener("click",s0(this,K)),this.addEventListener("keydown",s0(this,z)),this.tabIndex=0}disable(){this.removeEventListener("click",s0(this,K)),this.removeEventListener("keydown",s0(this,z)),this.removeEventListener("keyup",s0(this,Y)),this.tabIndex=-1}attributeChangedCallback(e,t,i){var a,r,s,n,o;e===aI.MEDIA_CONTROLLER?(t&&(null==(r=null==(a=s0(this,Q))?void 0:a.unassociateElement)||r.call(a,this),s2(this,Q,null)),i&&this.isConnected&&(s2(this,Q,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(o=null==(n=s0(this,Q))?void 0:n.associateElement)||o.call(n,this))):"disabled"===e&&i!==t?null==i?this.enable():this.disable():e===s5&&this.tooltipEl&&i!==t?this.tooltipEl.placement=i:e===a_.MEDIA_LA
269NG&&(this.shadowRoot.querySelector('slot[name="tooltip-content"]').innerHTML=this.constructor.getTooltipContentHTML()),s0(this,j).call(this)}connectedCallback(){var e,t,i;let{style:a}=rh(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")?this.disable():this.enable(),this.setAttribute("role","button");let r=this.getAttribute(aI.MEDIA_CONTROLLER);r&&(s2(this,Q,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=s0(this,Q))?void 0:t.associateElement)||i.call(t,this)),a5.customElements.whenDefined("media-tooltip").then(()=>{var e,t;return(e=X,t=J,sJ(this,e,"access private method"),t).call(this)})}disconnectedCallback(){var e,t;this.disable(),null==(t=null==(e=s0(this,Q))?void 0:e.unassociateElement)||t.call(e,this),s2(this,Q,null),this.removeEventListener("mouseenter",s0(this,j)),this.removeEventListener("focus",s0(this,j)),this.removeEventListener("click",s0(this,K))}get keysUsed(){return["Enter"," "]}get tooltipPlacement(){return rb(this,s5)}set tooltipPlacement(e){rE(this,s5,e)}get mediaController(){return rb(this,aI.MEDIA_CONTROLLER)}set mediaController(e){rE(this,aI.MEDIA_CONTROLLER,e)}get disabled(){return rp(this,s3)}set disabled(e){rv(this,s3,e)}get noTooltip(){return rp(this,s4)}set noTooltip(e){rv(this,s4,e)}handleClick(e){}};Q=new WeakMap,K=new WeakMap,j=new WeakMap,Y=new WeakMap,z=new WeakMap,X=new WeakSet,J=function(){this.addEventListener("mouseenter",s0(this,j)),this.addEventListener("focus",s0(this,j)),this.addEventListener("click",s0(this,K));let e=this.tooltipPlacement;e&&this.tooltipEl&&(this.tooltipEl.placement=e)},s7.shadowRootOptions={mode:"open"},s7.getTemplateHTML=function(e,t={}){return`
270    <style>
271      :host {
272        position: relative;
273        font: var(--media-font,
274          var(--media-font-weight, bold)
275          var(--media-font-size, 14px) /
276          var(--media-text-content-height, var(--media-control-height, 24px))
277          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
278        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
279        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
280        padding: var(--media-button-padding, var(--media-control-padding, 10px));
281        justify-content: var(--media-button-justify-content, center);
282        display: inline-flex;
283        align-items: center;
284        vertical-align: middle;
285        box-sizing: border-box;
286        transition: background .15s linear;
287        pointer-events: auto;
288        cursor: var(--media-cursor, pointer);
289        -webkit-tap-highlight-color: transparent;
290      }
291
292      
293      :host(:focus-visible) {
294        box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
295        outline: 0;
296      }
297      
298      :host(:where(:focus)) {
299        box-shadow: none;
300        outline: 0;
301      }
302
303      :host(:hover) {
304        background: var(--media-control-hover-background, rgba(50 50 70 / .7));
305      }
306
307      svg, img, ::slotted(svg), ::slotted(img) {
308        width: var(--media-button-icon-width);
309        height: var(--media-button-icon-height, var(--media-control-height, 24px));
310        transform: var(--media-button-icon-transform);
311        transition: var(--media-button-icon-transition);
312        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
313        vertical-align: middle;
314        max-width: 100%;
315        max-height: 100%;
316        min-width: 100%;
317      }
318
319      media-tooltip {
320        
321        max-width: 0;
322        overflow-x: clip;
323        opacity: 0;
324        transition: opacity .3s, max-width 0s 9s;
325      }
326
327      :host(:hover) media-tooltip,
328      :host(:focus-visible) media-tooltip {
329        max-width: 100vw;
330        opacity: 1;
331        transition: opacity .3s;
332      }
333
334      :host([notooltip]) slot[name="tooltip"] {
335        display: none;
336      }
337    </style>
338
339    ${this.getSlotTemplateHTML(e,t)}
340
341    <slot name="tooltip">
342      <media-tooltip part="tooltip" aria-hidden="true">
343        <template shadowrootmode="${sX.shadowRootOptions.mode}">
344          ${sX.getTemplateHTML({})}
345        </template>
346        <slot name="tooltip-content">
347          ${this.getTooltipContentHTML(e)}
348        </slot>
349      </media-tooltip>
350    </slot>
351  `},s7.getSlotTemplateHTML=function(e,t){return`
352    <slot></slot>
353  `},s7.getTooltipContentHTML=function(){return""},a5.customElements.get("media-chrome-button")||a5.customElements.define("media-chrome-button",s7);var s8=`<svg aria-hidden="true" viewBox="0 0 26 24">
354  <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>
355</svg>
356`,s6=e=>{let t=e.mediaIsAirplaying?aj("stop airplay"):aj("start airplay");e.setAttribute("aria-label",t)},s9=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_IS_AIRPLAYING,a_.MEDIA_AIRPLAY_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),s6(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_IS_AIRPLAYING&&s6(this)}get mediaIsAirplaying(){return rp(this,a_.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){rv(this,a_.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return rb(this,a_.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){rE(this,a_.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){let e=new a5.CustomEvent(ay.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}};s9.getSlotTemplateHTML=function(e){return`
357    <style>
358      :host([${a_.MEDIA_IS_AIRPLAYING}]) slot[name=icon] slot:not([name=exit]) {
359        display: none !important;
360      }
361
362      
363      :host(:not([${a_.MEDIA_IS_AIRPLAYING}])) slot[name=icon] slot:not([name=enter]) {
364        display: none !important;
365      }
366
367      :host([${a_.MEDIA_IS_AIRPLAYING}]) slot[name=tooltip-enter],
368      :host(:not([${a_.MEDIA_IS_AIRPLAYING}])) slot[name=tooltip-exit] {
369        display: none;
370      }
371    </style>
372
373    <slot name="icon">
374      <slot name="enter">${s8}</slot>
375      <slot name="exit">${s8}</slot>
376    </slot>
377  `},s9.getTooltipContentHTML=function(){return`
378    <slot name="tooltip-enter">${aj("start airplay")}</slot>
379    <slot name="tooltip-exit">${aj("stop airplay")}</slot>
380  `},a5.customElements.get("media-airplay-button")||a5.customElements.define("media-airplay-button",s9);var ne=`<svg aria-hidden="true" viewBox="0 0 26 24">
381  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 
3810 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
382</svg>`,nt=`<svg aria-hidden="true" viewBox="0 0 26 24">
383  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
384</svg>`,ni=e=>{e.setAttribute("aria-checked",rz(e).toString())},na=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_SUBTITLES_LIST,a_.MEDIA_SUBTITLES_SHOWING]}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.setAttribute("aria-label",aj("closed captions")),ni(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_SUBTITLES_SHOWING&&ni(this)}get mediaSubtitlesList(){return nr(this,a_.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){ns(this,a_.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return nr(this,a_.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){ns(this,a_.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new a5.CustomEvent(ay.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}};na.getSlotTemplateHTML=function(e){return`
385    <style>
386      :host([aria-checked="true"]) slot[name=off] {
387        display: none !important;
388      }
389
390      
391      :host(:not([aria-checked="true"])) slot[name=on] {
392        display: none !important;
393      }
394
395      :host([aria-checked="true"]) slot[name=tooltip-enable],
396      :host(:not([aria-checked="true"])) slot[name=tooltip-disable] {
397        display: none;
398      }
399    </style>
400
401    <slot name="icon">
402      <slot name="on">${ne}</slot>
403      <slot name="off">${nt}</slot>
404    </slot>
405  `},na.getTooltipContentHTML=function(){return`
406    <slot name="tooltip-enable">${aj("Enable captions")}</slot>
407    <slot name="tooltip-disable">${aj("Disable captions")}</slot>
408  `};var nr=(e,t)=>
408{let i=e.getAttribute(t);return i?rG(i):[]},ns=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let a=rQ(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};a5.customElements.get("media-captions-button")||a5.customElements.define("media-captions-button",na);var nn=e=>{let t=e.mediaIsCasting?aj("stop casting"):aj("start casting");e.setAttribute("aria-label",t)},no=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_IS_CASTING,a_.MEDIA_CAST_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),nn(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_IS_CASTING&&nn(this)}get mediaIsCasting(){return rp(this,a_.MEDIA_IS_CASTING)}set mediaIsCasting(e){rv(this,a_.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return rb(this,a_.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){rE(this,a_.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){let e=this.mediaIsCasting?ay.MEDIA_EXIT_CAST_REQUEST:ay.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new a5.CustomEvent(e,{composed:!0,bubbles:!0}))}};no.getSlotTemplateHTML=function(e){return`
409    <style>
410      :host([${a_.MEDIA_IS_CASTING}]) slot[name=icon] slot:not([name=exit]) {
411        display: none !important;
412      }
413
414      
415      :host(:not([${a_.MEDIA_IS_CASTING}])) slot[name=icon] slot:not([name=enter]) {
416        display: none !important;
417      }
418
419      :host([${a_.MEDIA_IS_CASTING}]) slot[name=tooltip-enter],
420      :host(:not([${a_.MEDIA_IS_CASTING}])) slot[name=tooltip-exit] {
421        display: none;
422      }
423    </style>
424
425    <slot name="icon">
426      <slot name="enter"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg></slot>
427      <slot name="exit"><svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg></slot>
428    </slot>
429  `},no.getTooltipContentHTML=function(){return`
430    <slot name="tooltip-enter">${aj("Start casting")}</slot>
431    <slot name="tooltip-exit">${aj("Stop casting")}</slot>
432  `},a5.customElements.get("media-cast-button")||a5.customElements.define("media-cast-button",no);var nl=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nd=(e,t,i)=>(nl(e,t,"read from private field"),i?i.call(e):t.get(e)),nh=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nu=(e,t,i,a)=>(nl(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),nc=(e,t,i)=>(nl(e,t,"access private method"),i),nm="open",np=class extends a5.HTMLElement{constructor(){super(),nh(this,ea),nh(this,es),nh(this,eo),nh(this,ed),nh(this,eu),nh(this,em),nh(this,ee,!1),nh(this,et,null),nh(this,ei,null),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}static get observedAttributes(){return[nm,"anchor"]}get open(){return rp(this,nm)}set open(e){rv(this,nm,e)}handleEvent(e){switch(e.type){case"invoke":nc(this,ed,eh).call(this,e);break;case"focusout":nc(this,eu,ec).call(this,e);break;case"keydown":nc(this,em,ep).call(this,e)}}connectedCallback(){nc(this,ea,er).call(this),this.role||(this.role="dialog")}attributeChangedCallback(e,t,i){nc(this,ea,er).call(this),e===nm&&i!==t&&(this.open?nc(this,es,en).call(this):nc(this,eo,el).call(this))}focus(){nu(this,et,ro());let e=!this.dispatchEvent(new Event("focus",{composed:!0,cancelable:!0})),t=!this.dispatchEvent(new Event("focusin",{composed:!0,bubbles:!0,cancelable:!0}));if(e||t)return;
432let i=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==i||i.focus()}get keysUsed(){return["Escape","Tab"]}};ee=new WeakMap,et=new WeakMap,ei=new WeakMap,ea=new WeakSet,er=function(){if(!nd(this,ee)&&(nu(this,ee,!0),!this.shadowRoot)){this.attachShadow(this.constructor.shadowRootOptions);let e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e),queueMicrotask(()=>{let{style:e}=rh(this.shadowRoot,":host");e.setProperty("transition","display .15s, visibility .15s, opacity .15s ease-in, transform .15s ease-in")})}},es=new WeakSet,en=function(){var e;null==(e=nd(this,ei))||e.setAttribute("aria-expanded","true"),this.dispatchEvent(new Event("open",{composed:!0,bubbles:!0})),this.addEventListener("transitionend",()=>this.focus(),{once:!0})},eo=new WeakSet,el=function(){var e;null==(e=nd(this,ei))||e.setAttribute("aria-expanded","false"),this.dispatchEvent(new Event("close",{composed:!0,bubbles:!0}))},ed=new WeakSet,eh=function(e){nu(this,ei,e.relatedTarget),rs(this,e.relatedTarget)||(this.open=!this.open)},eu=new WeakSet,ec=function(e){var t;!rs(this,e.relatedTarget)&&(null==(t=nd(this,et))||t.focus(),nd(this,ei)&&nd(this,ei)!==e.relatedTarget&&this.open&&(this.open=!1))},em=new WeakSet,ep=function(e){var t,i,a,r,s;let{key:n,ctrlKey:o,altKey:l,metaKey:d}=e;o||l||d||this.keysUsed.includes(n)&&(e.preventDefault(),e.stopPropagation(),"Tab"===n?(e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(r=null==(a=this.nextElementSibling)?void 0:a.focus)||r.call(a),this.blur()):"Escape"===n&&(null==(s=nd(this,et))||s.focus(),this.open=!1))},np.shadowRootOptions={mode:"open"},np.getTemplateHTML=function(e){return`
433    <style>
434      :host {
435        font: var(--media-font,
436          var(--media-font-weight, normal)
437          var(--media-font-size, 14px) /
438          var(--media-text-content-height, var(--media-control-height, 24px))
439          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
440        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
441        display: var(--media-dialog-display, inline-flex);
442        justify-content: center;
443        align-items: center;
444        
445        transition-behavior: allow-discrete;
446        visibility: hidden;
447        opacity: 0;
448        transform: translateY(2px) scale(.99);
449        pointer-events: none;
450      }
451
452      :host([open]) {
453        transition: display .2s, visibility 0s, opacity .2s ease-out, transform .15s ease-out;
454        visibility: visible;
455        opacity: 1;
456        transform: translateY(0) scale(1);
457        pointer-events: auto;
458      }
459
460      #content {
461        display: flex;
462        position: relative;
463        box-sizing: border-box;
464        width: min(320px, 100%);
465        word-wrap: break-word;
466        max-height: 100%;
467        overflow: auto;
468        text-align: center;
469        line-height: 1.4;
470      }
471    </style>
472    ${this.getSlotTemplateHTML(e)}
473  `},np.getSlotTemplateHTML=function(e){return`
474    <slot id="content"></slot>
475  `},a5.customElements.get("media-chrome-dialog")||a5.customElements.define("media-chrome-dialog",np);var nv=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nb=(e,t,i)=>(nv(e,t,"read from private field"),i?i.call(e):t.get(e)),nE=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},ng=(e,t,i,a)=>(nv(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),nf=(e,t,i)=>(nv(e,t,"access private method"),i),nA=class extends a5.HTMLElement{constructor(){if(super(),nE(this,eI),nE(this,eM),nE(this,eS),nE(this,ex),nE(this,eR),nE(this,eN),nE(this,eU),nE(this,eW),nE(this,ev,void 0),nE(this,eb,void 0),nE(this,eE,void 0),nE(this,eg,void 0),nE(this,ef,{}),nE(this,eA,[]),nE(this,ek,()=>{if(this.range.matches(":focus-visible")){let{style:e}=rh(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),nE(this,ew,()=>{let{style:e}=rh(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),nE(this,ey,()=>{let e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes),t=this.constructor.getTemplateHTML(e);this.shadowRoot.setHTMLUnsafe?this.shadowRoot.setHTMLUnsafe(t):this.shadowRoot.innerHTML=t}this.container=this.shadowRoot.querySelector("#container"),ng(this,eE,this.shadowRoot.querySelector("#startpoint")),ng(this,eg,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",aI.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,r,s,n,o;e===aI.MEDIA_CONTROLLER?(t&&(null==(r=null==(a=nb(this,ev))?void 0:a.unassociateElement)||r.call(a,this),ng(this,ev,null)),i&&this.isConnected&&(ng(this,ev,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(o=null==(n=nb(this,ev))?void 0:n.associateElement)||o.call(n,this))):("disabled"===e||"aria-disabled"===e&&t!==i)&&(null==i?(this.range.removeAttribute(e),nf(this,eM,e_).call(this)):(this.range.setAttribute(e,i),nf(this,eS,eL).call(this)))}connectedCallback(){var e,t,i;let{style:a}=rh(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),nb(this,ef).pointer=rh(this.shadowRoot,"#pointer"),nb(this,ef).progress=rh(this.shadowRoot,"#progress"),nb(this,ef).thumb=rh(this.shadowRoot,'#thumb, ::slotted([slot="thumb"])'),nb(this,ef).activeSegment=rh(this.shadowRoot,"#segments-clipping rect:nth-child(0)");let r=this.getAttribute(aI.MEDIA_CONTROLLER);r&&(ng(this,ev,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=nb(this,ev))?void 0:t.associateElement)||i.call(t,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",nb(this,ek)),this.shadowRoot.addEventListener("focusout",nb(this,ew)),nf(this,eM,e_).call(this),a6(this.container,nb(this,ey))}disconnectedCallback(){var e,t;nf(this,eS,eL).call(this),null==(t=null==(e=nb(this,ev))?void 0:e.unassociateElement)||t.call(e,this),ng(this,ev,null),this.shadowRoot.removeEventListener("focusin",nb(this,ek)),this.shadowRoot.removeEventListener("focusout",nb(this,ew)),a9(this.container,nb(this,ey))}updatePointerBar(e){var t;null==(t=nb(this,ef).pointer)||t.style.setProperty("width",`${100*this.getPointerRatio(e)}%`)}updateBar(){var e,t;let i=100*this.range.valueAsNumber;null==(e=nb(this,ef).progress)||e.style.setProperty("width",`${i}%`),null==(t=nb(this,ef).thumb)||t.style.setProperty("left",`${i}%`)}updateSegments(e){let t=this.shadowRoot.querySelector("#segments-clipping");if(t.textContent="",this.container.classList.toggle("segments",!!(null==e?void 0:e.length)),!(null==e?void 0:e.length))return;let i=[...new Set([+this.range.min,...e.flatMap(e=>[e.start,e.end]),+this.range.max])];ng(this,eA,[...i]);let a=i.pop();for(let[e,r]of i.entries()){let[s,n]=[0===e,e===i.length-1],o=s?"calc(var(--segments-gap) / -1)":`${100*r}%`,l=n?a:i[e+1],d=`calc(${(l-r)*100}%${s||n?"":" - var(--segments-gap)"})`,h=a3.createElementNS("http://www.w3.org/2000/svg","rect"),u=ru(this.shadowRoot,`#segments-clipping rect:nth-child(${e+1})`);u.style.setProperty("x",o),u.style.setProperty("width",d),t.append(h)}}getPointerRatio(e){var t,i,a,r;let s,n,o;return t=e.clientX,i=e.clientY,a=nb(this,eE).getBoundingClientRect(),s=(r=nb(this,eg).getBoundingClientRect()).x-a.x,0==(o=s*s+(n=r.y-a.y)*n)?0:Math.max(0,Math.min(1,((t-a.x)*s+(i-a.y)*n)/o))}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":nf(this,eW,eH).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":nf(this,eR,eD).call(this,e);break;case"pointerdown":nf(this,ex,eC).call(this,e);break;case"pointerup":nf(this,eN,eP).call(this);break;case"pointerleave":nf(this,eU,eO).call(this)}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}};ev=new WeakMap,eb=new WeakMap,eE=new WeakMap,eg=new WeakMap,ef=new WeakMap,eA=new WeakMap,ek=new WeakMap,ew=new WeakMap,ey=new WeakMap,eI=new WeakSet,eT=function(e){let t=nb(this,ef).activeSegment;if(!t)return;let i=this.getPointerRatio(e),a=nb(this,eA).findIndex((e,t,a)=>{let r=a[t+1];return null!=r&&i>=e&&i<=r}),r=`#segments-clipping rect:nth-child(${a+1})`;t.selectorText==r&&t.style.transform||(t.selectorText=r,t.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))},eM=new WeakSet,e_=function(){this.hasAttribute("disabled")||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))},eS=new WeakSet,eL=function(){var e,t;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),null==(e=a5.window)||e.removeEventListener("pointerup",this),null==(t=a5.window)||t.removeEventListener("pointermove",this)},ex=new WeakSet,eC=function(e){var t;ng(this,eb,e.composedPath().includes(this.range)),null==(t=a5.window)||t.addEventListener("pointerup",this)},eR=new WeakSet,eD=function(e){var t;"mouse"!==e.pointerType&&nf(this,ex,eC).call(this,e),this.addEventListener("pointerleave",this),null==(t=a5.window)||t.addEventListener("pointermove",this)},eN=new WeakSet,eP=function(){var e;null==(e=a5.window)||e.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")},eU=new WeakSet,eO=function(){var e,t;this.removeEventListener("pointerleave",this),null==(e=a5.window)||e.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),null==(t=nb(this,ef).activeSegment)||t.style.removeProperty("transform")},eW=new WeakSet,eH=function(e){("pen"!==e.pointerType||0!==e.buttons)&&(this.toggleAttribute("dragging",1===e.buttons||"mouse"!==e.pointerType),this.updatePointerBar(e),nf(this,eI,eT).call(this,e),this.dragging&&("mouse"!==e.pointerType||!nb(this,eb))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(e),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))))},nA.shadowRootOptions={mode:"open"},nA.getTemplateHTML=function(e){return`
476    <style>
477      :host {
478        --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
479        --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
480
481        box-shadow: var(--_focus-visible-box-shadow, none);
482        background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
483        height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
484        display: inline-flex;
485        align-items: center;
486        
487        vertical-align: middle;
488        box-sizing: border-box;
489        position: relative;
490        width: 100px;
491        transition: background .15s linear;
492        cursor: var(--media-cursor, pointer);
493        pointer-events: auto;
494        touch-action: none; 
495      }
496
497      
498      input[type=range]:focus {
499        outline: 0;
500      }
501      input[type=range]:focus::-webkit-slider-runnable-track {
502        outline: 0;
503      }
504
505      :host(:hover) {
506        background: var(--media-control-hover-background, rgb(50 50 70 / .7));
507      }
508
509      #leftgap {
510        padding-left: var(--media-range-padding-left, var(--_media-range-padding));
511      }
512
513      #rightgap {
514        padding-right: var(--media-range-padding-right, var(--_media-range-padding));
515      }
516
517      #startpoint,
518      #endpoint {
519        position: absolute;
520      }
521
522      #endpoint {
523        right: 0;
524      }
525
526      #container {
527        
528        width: var(--media-range-track-width, 100%);
529        transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
530        position: relative;
531        height: 100%;
532        display: flex;
533        align-items: center;
534        min-width: 40px;
535      }
536
537      #range {
538        
539        display: var(--media-time-range-hover-display, block);
540        bottom: var(--media-time-range-hover-bottom, -7px);
541        height: var(--media-time-range-hover-height, max(100% + 7px, 25px));
542        width: 100%;
543        position: absolute;
544        cursor: var(--media-cursor, pointer);
545
546        -webkit-appearance: none; 
547        -webkit-tap-highlight-color: transparent;
548        background: transparent; 
549        margin: 0;
550        z-index: 1;
551      }
552
553      @media (hover: hover) {
554        #range {
555          bottom: var(--media-time-range-hover-bottom, -5px);
556          height: var(--media-time-range-hover-height, max(100% + 5px, 20px));
557        }
558      }
559
560      
561      
562      #range::-webkit-slider-thumb {
563        -webkit-appearance: none;
564        background: transparent;
565        width: .1px;
566        height: .1px;
567      }
568
569      
570      #range::-moz-range-thumb {
571        background: transparent;
572        border: transparent;
573        width: .1px;
574        height: .1px;
575      }
576
577      #appearance {
578        height: var(--media-range-track-height, 4px);
579        display: flex;
580        flex-direction: column;
581        justify-content: center;
582        width: 100%;
583        position: absolute;
584        
585        will-change: transform;
586      }
587
588      #track {
589        background: var(--media-range-track-background, rgb(255 255 255 / .2));
590        border-radius: var(--media-range-track-border-radius, 1px);
591        border: var(--media-range-track-border, none);
592        outline: var(--media-range-track-outline);
593        outline-offset: var(--media-range-track-outline-offset);
594        backdrop-filter: var(--media-range-track-backdrop-filter);
595        -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
596        box-shadow: var(--media-range-track-box-shadow, none);
597        position: absolute;
598        width: 100%;
599        height: 100%;
600        overflow: hidden;
601      }
602
603      #progress,
604      #pointer {
605        position: absolute;
606        height: 100%;
607        will-change: width;
608      }
609
610      #progress {
611        background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
612        transition: var(--media-range-track-transition);
613      }
614
615      #pointer {
616        background: var(--media-range-track-pointer-background);
617        border-right: var(--media-range-track-pointer-border-right);
618        transition: visibility .25s, opacity .25s;
619        visibility: hidden;
620        opacity: 0;
621      }
622
623      @media (hover: hover) {
624        :host(:hover) #pointer {
625          transition: visibility .5s, opacity .5s;
626          visibility: visible;
627          opacity: 1;
628        }
629      }
630
631      #thumb,
632      ::slotted([slot=thumb]) {
633        width: var(--media-range-thumb-width, 10px);
634        height: var(--media-range-thumb-height, 10px);
635        transition: var(--media-range-thumb-transition);
636        transform: var(--media-range-thumb-transform, none);
637        opacity: var(--media-range-thumb-opacity, 1);
638        translate: -50%;
639        position: absolute;
640        left: 0;
641        cursor: var(--media-cursor, pointer);
642      }
643
644      #thumb {
645        border-radius: var(--media-range-thumb-border-radius, 10px);
646        background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
647        box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
648        border: var(--media-range-thumb-border, none);
649      }
650
651      :host([disabled]) #thumb {
652        background-color: #777;
653      }
654
655      .segments #appearance {
656        height: var(--media-range-segment-hover-height, 7px);
657      }
658
659      #track {
660        clip-path: url(#segments-clipping);
661      }
662
663      #segments {
664        --segments-gap: var(--media-range-segments-gap, 2px);
665        position: absolute;
666        width: 100%;
667        height: 100%;
668      }
669
670      #segments-clipping {
671        transform: translateX(calc(var(--segments-gap) / 2));
672      }
673
674      #segments-clipping:empty {
675        display: none;
676      }
677
678      #segments-clipping rect {
679        height: var(--media-range-track-height, 4px);
680        y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);
681        transition: var(--media-range-segment-transition, transform .1s ease-in-out);
682        transform: var(--media-range-segment-transform, scaleY(1));
683        transform-origin: center;
684      }
685    </style>
686    <div id="leftgap"></div>
687    <div id="container">
688      <div id="startpoint"></div>
689      <div id="endpoint"></div>
690      <div id="appearance">
691        <div id="track" part="track">
692          <div id="pointer"></div>
693          <div id="progress" part="progress"></div>
694        </div>
695        <slot name="thumb">
696          <div id="thumb" part="thumb"></div>
697        </slot>
698        <svg id="segments"><clipPath id="segments-clipping"></clipPath></svg>
699      </div>
700      <input id="range" type="range" min="0" max="1" step="any" value="0">
701    </div>
702    <div id="rightgap"></div>
703  `},a5.customElements.get("media-chrome-range")||a5.customElements.define("media-chrome-range",nA);var nk=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nw=(e,t,i)=>(nk(e,t,"read from private field"),i?i.call(e):t.get(e)),ny=(e,t,i,a)=>(nk(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),nI=class extends a5.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,e$,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aI.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,r,s,n,o;e===aI.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=nw(this,e$))?void 0:a.unassociateElement)||r.call(a,this),ny(this,e$,null)),i&&this.isConnected&&(ny(this,e$,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(o=null==(n=nw(this,e$))?void 0:n.associateElement)||o.call(n,this)))}connectedCallback(){var e,t,i;let a=this.getAttribute(aI.MEDIA_CONTROLLER);a&&(ny(this,e$,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=nw(this,e$))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=nw(this,e$))?void 0:e.unassociateElement)||t.call(e,this),ny(this,e$,null)}};e$=new WeakMap,nI.shadowRootOptions={mode:"open"},nI.getTemplateHTML=function(e){return`
704    <style>
705      :host {
706        
707        box-sizing: border-box;
708        display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
709        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
710        --media-loading-indicator-icon-height: 44px;
711      }
712
713      ::slotted(media-time-range),
714      ::slotted(media-volume-range) {
715        min-height: 100%;
716      }
717
718      ::slotted(media-time-range),
719      ::slotted(media-clip-selector) {
720        flex-grow: 1;
721      }
722
723      ::slotted([role="menu"]) {
724        position: absolute;
725      }
726    </style>
727
728    <slot></slot>
729  `},a5.customElements.get("media-control-bar")||a5.customElements.define("media-control-bar",nI);var nT=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nM=(e,t,i)=>(nT(e,t,"read from private field"),i?i.call(e):t.get(e)),n_=(e,t,i,a)=>(nT(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),nS=class extends a5.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eB,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aI.MEDIA_CONTROLLER]}attributeChangedCallback(e,t,i){var a,r,s,n,o;e===aI.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=nM(this,eB))?void 0:a.unassociateElement)||r.call(a,this),n_(this,eB,null)),i&&this.isConnected&&(n_(this,eB,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(o=null==(n=nM(this,eB))?void 0:n.associateElement)||o.call(n,this)))}connectedCallback(){var e,t,i;let{style:a}=rh(this.shadowRoot,":host");a.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);let r=this.getAttribute(aI.MEDIA_CONTROLLER);r&&(n_(this,eB,null==(e=this.getRootNode())?void 0:e.getElementById(r)),null==(i=null==(t=nM(this,eB))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=nM(this,eB))?void 0:e.unassociateElement)||t.call(e,this),n_(this,eB,null)}};eB=new WeakMap,nS.shadowRootOptions={mode:"open"},nS.getTemplateHTML=function(e,t={}){return`
730    <style>
731      :host {
732        font: var(--media-font,
733          var(--media-font-weight, normal)
734          var(--media-font-size, 14px) /
735          var(--media-text-content-height, var(--media-control-height, 24px))
736          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
737        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
738        background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
739        padding: var(--media-control-padding, 10px);
740        display: inline-flex;
741        justify-content: center;
742        align-items: center;
743        vertical-align: middle;
744        box-sizing: border-box;
745        text-align: center;
746        pointer-events: auto;
747      }
748
749      
750      :host(:focus-visible) {
751        box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
752        outline: 0;
753      }
754
755      
756      :host(:where(:focus)) {
757        box-shadow: none;
758        outline: 0;
759      }
760    </style>
761
762    ${this.getSlotTemplateHTML(e,t)}
763  `},nS.getSlotTemplateHTML=function(e,t){return`
764    <slot></slot>
765  `},a5.customElements.get("media-text-display")||a5.customElements.define("media-text-display",nS);var nL=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nx=(e,t,i)=>(nL(e,t,"read from private field"),i?i.call(e):t.get(e)),nC=class extends nS{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eV,void 0),((e,t,i)=>(nL(e,t,"write to private field"),t.set(e,i)))(this,eV,this.shadowRoot.querySelector("slot")),nx(this,eV).textContent=aZ(null!=(e=this.mediaDuration)?e:0)}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_DURATION]}attributeChangedCallback(e,t,i){e===a_.MEDIA_DURATION&&(nx(this,eV).textContent=aZ(+i)),super.attributeChangedCallback(e,t,i)}get mediaDuration(){return rc(this,a_.MEDIA_DURATION)}set mediaDuration(e){rm(this,a_.MEDIA_DURATION,e)}};eV=new WeakMap,nC.getSlotTemplateHTML=function(e,t){return`
766    <slot>${aZ(t.mediaDuration)}</slot>
767  `},a5.customElements.get("media-duration-display")||a5.customElements.define("media-duration-display",nC);var nR={2:aj("Network Error"),3:aj("Decode Error"),4:aj("Source Not Supported"),5:aj("Encryption 
767Error")},nD={2:aj("A network error caused the media download to fail."),3:aj("A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format."),4:aj("An unsupported error occurred. The server or network failed, or your browser does not support this format."),5:aj("The media is encrypted and there are no keys to decrypt it.")},nN=e=>{var t,i;return 1===e.code?null:{title:null!=(t=nR[e.code])?t:`Error ${e.code}`,message:null!=(i=nD[e.code])?i:e.message}},nP=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};function nU(e){var t;let{title:i,message:a}=null!=(t=nN(e))?t:{},r="";return i&&(r+=`<slot name="error-${e.code}-title"><h3>${i}</h3></slot>`),a&&(r+=`<slot name="error-${e.code}-message"><p>${a}</p></slot>`),r}var nO=[a_.MEDIA_ERROR_CODE,a_.MEDIA_ERROR_MESSAGE],nW=class extends np{constructor(){super(...arguments),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,null)})(this,eq)}static get observedAttributes(){return[...super.observedAttributes,...nO]}formatErrorMessage(e){return this.constructor.formatErrorMessage(e)}attributeChangedCallback(e,t,i){var a;if(super.attributeChangedCallback(e,t,i),!nO.includes(e))return;let r=null!=(a=this.mediaError)?a:{code:this.mediaErrorCode,message:this.mediaErrorMessage};this.open=r.code&&null!==nN(r),this.open&&(this.shadowRoot.querySelector("slot").name=`error-${this.mediaErrorCode}`,this.shadowRoot.querySelector("#content").innerHTML=this.formatErrorMessage(r))}get mediaError(){var e;return nP(this,e=eq,"read from private field"),e.get(this)}set mediaError(e){var t;nP(this,t=eq,"write to private field"),t.set(this,e)}get mediaErrorCode(){return rc(this,"mediaerrorcode")}set mediaErrorCode(e){rm(this,"mediaerrorcode",e)}get mediaErrorMessage(){return rb(this,"mediaerrormessage")}set mediaErrorMessage(e){rE(this,"mediaerrormessage",e)}};eq=new WeakMap,nW.getSlotTemplateHTML=function(e){return`
768    <style>
769      :host {
770        background: rgb(20 20 30 / .8);
771      }
772
773      #content {
774        display: block;
775        padding: 1.2em 1.5em;
776      }
777
778      h3,
779      p {
780        margin-block: 0 .3em;
781      }
782    </style>
783    <slot name="error-${e.mediaerrorcode}" id="content">
784      ${nU({code:+e.mediaerrorcode,message:e.mediaerrormessage})}
785    </slot>
786  `},nW.formatErrorMessage=nU,a5.customElements.get("media-error-dialog")||a5.customElements.define("media-error-dialog",nW);var nH=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)},n$=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},nB=class extends np{constructor(){super(...arguments),n$(this,eG,e=>{var t;if(!this.open)return;let i=null==(t=this.shadowRoot)?void 0:t.querySelector("#content");if(!i)return;let a=e.composedPath(),r=a[0]===this||a.includes(this),s=a.includes(i);r&&!s&&(this.open=!1)}),n$(this,eF,e=>{if(!this.open)return;let t=e.shiftKey&&("/"===e.key||"?"===e.key);"Escape"!==e.key&&!t||e.ctrlKey||e.altKey||e.metaKey||(this.open=!1,e.preventDefault(),e.stopPropagation())})}connectedCallback(){super.connectedCallback(),this.open&&(this.addEventListener("click",nH(this,eG)),document.addEventListener("keydown",nH(this,eF)))}disconnectedCallback(){this.removeEventListener("click",nH(this,eG)),document.removeEventListener("keydown",nH(this,eF))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"open"===e&&(this.open?(this.addEventListener("click",nH(this,eG)),document.addEventListener("keydown",nH(this,eF))):(this.removeEventListener("click",nH(this,eG)),document.removeEventListener("keydown",nH(this,eF))))}};eG=new WeakMap,eF=new WeakMap,nB.getSlotTemplateHTML=function(e){let t;return`
787    <style>
788      :host {
789        position: fixed;
790        top: 0;
791        left: 0;
792        z-index: 9999;
793        background: rgb(20 20 30 / .8);
794        backdrop-filter: blur(10px);
795      }
796
797      #content {
798        display: block;
799        width: clamp(400px, 40vw, 700px);
800        max-width: 90vw;
801        text-align: left;
802      }
803
804      h2 {
805        margin: 0 0 1.5rem 0;
806        font-size: 1.5rem;
807        font-weight: 500;
808        text-align: center;
809      }
810
811      .shortcuts-table {
812        width: 100%;
813        border-collapse: collapse;
814      }
815
816      .shortcuts-table tr {
817        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
818      }
819
820      .shortcuts-table tr:last-child {
821        border-bottom: none;
822      }
823
824      .shortcuts-table td {
825        padding: 0.75rem 0.5rem;
826      }
827
828      .shortcuts-table td:first-child {
829        text-align: right;
830        padding-right: 1rem;
831        width: 40%;
832        min-width: 120px;
833      }
834
835      .shortcuts-table td:last-child {
836        padding-left: 1rem;
837      }
838
839      .key {
840        display: inline-block;
841        background: rgba(255, 255, 255, 0.15);
842        border: 1px solid rgba(255, 255, 255, 0.2);
843        border-radius: 4px;
844        padding: 0.25rem 0.5rem;
845        font-family: 'Courier New', monospace;
846        font-size: 0.9rem;
847        font-weight: 500;
848        min-width: 1.5rem;
849        text-align: center;
850        margin: 0 0.2rem;
851      }
852
853      .description {
854        color: rgba(255, 255, 255, 0.9);
855        font-size: 0.95rem;
856      }
857
858      .key-combo {
859        display: flex;
860        align-items: center;
861        justify-content: flex-end;
862        gap: 0.3rem;
863      }
864
865      .key-separator {
866        color: rgba(255, 255, 255, 0.5);
867        font-size: 0.9rem;
868      }
869    </style>
870    <slot id="content">
871      ${t=[{keys:["Space","k"],description:"Toggle Playback"},{keys:["m"],description:"Toggle mute"},{keys:["f"],description:"Toggle fullscreen"},{keys:["c"],description:"Toggle captions or subtitles, if available"},{keys:["p"],description:"Toggle Picture in Picture"},{keys:["←","j"],description:"Seek back 10s"},{keys:["→","l"],description:"Seek forward 10s"},{keys:["↑"],description:"Turn volume up"},{keys:["↓"],description:"Turn volume down"},{keys:["< (SHIFT+,)"],description:"Decrease playback rate"},{keys:["> (SHIFT+.)"],description:"Increase playback rate"}].map(({keys:e,description:t})=>{let i=e.map((e,t)=>t>0?`<span class="key-separator">or</span><span class="key">${e}</span>`:`<span class="key">${e}</span>`).join("");return`
872      <tr>
873        <td>
874          <div class="key-combo">${i}</div>
875        </td>
876        <td class="description">${t}</td>
877      </tr>
878    `}).join(""),`
879    <h2>Keyboard Shortcuts</h2>
880    <table class="shortcuts-table">${t}</table>
881  `}
882    </slot>
883  `},a5.customElements.get("media-keyboard-shortcuts-dialog")||a5.customElements.define("media-keyboard-shortcuts-dialog",nB);var nV=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},nq=`<svg aria-hidden="true" viewBox="0 0 26 24">
884  <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
885</svg>`,nG=`<svg aria-hidden="true" viewBox="0 0 26 24">
886  <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
887</svg>`,nF=e=>{let t=e.mediaIsFullscreen?aj("exit fullscreen mode"):aj("enter fullscreen mode");e.setAttribute("aria-label",t)},nZ=class extends s7{constructor(){super(...arguments),((e,t)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,null)})(this,eZ)}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_IS_FULLSCREEN,a_.MEDIA_FULLSCREEN_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),nF(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_IS_FULLSCREEN&&nF(this)}get mediaFullscreenUnavailable(){return rb(this,a_.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){rE(this,a_.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return rp(this,a_.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){rv(this,a_.MEDIA_IS_FULLSCREEN,e)}handleClick(e){var t,i;nV(this,t=eZ,"write to private field"),t.set(this,e);let a=(nV(this,i=eZ,"read from private field"),i.get(this)instanceof PointerEvent),r=this.mediaIsFullscreen?new a5.CustomEvent(ay.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0}):new a5.CustomEvent(ay.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(r)}};eZ=new WeakMap,nZ.getSlotTemplateHTML=function(e){return`
888    <style>
889      :host([${a_.MEDIA_IS_FULLSCREEN}]) slot[name=icon] slot:not([name=exit]) {
890        display: none !important;
891      }
892
893      
894      :host(:not([${a_.MEDIA_IS_FULLSCREEN}])) slot[name=icon] slot:not([name=enter]) {
895        display: none !important;
896      }
897
898      :host([${a_.MEDIA_IS_FULLSCREEN}]) slot[name=tooltip-enter],
899      :host(:not([${a_.MEDIA_IS_FULLSCREEN}])) slot[name=tooltip-exit] {
900        display: none;
901      }
902    </style>
903
904    <slot name="icon">
905      <slot name="enter">${nq}</slot>
906      <slot name="exit">${nG}</slot>
907    </slot>
908  `},nZ.getTooltipContentHTML=function(){return`
909    <slot name="tooltip-enter">${aj("Enter fullscreen mode")}</slot>
910    <slot name="tooltip-exit">${aj("Exit fullscreen mode")}</slot>
911  `},a5.customElements.get("media-fullscreen-button")||a5.customElements.define("media-fullscreen-button",nZ);var{MEDIA_TIME_IS_LIVE:nQ,MEDIA_PAUSED:nK}=a_,{MEDIA_SEEK_TO_LIVE_REQUEST:nj,MEDIA_PLAY_REQUEST:nY}=ay,nz=e=>{var t;let i=e.mediaPaused||!e.mediaTimeIsLive,a=i?aj("seek to live"):aj("playing live");e.setAttribute("aria-label",a);let r=null==(t=e.shadowRoot)?void 0:t.querySelector('slot[name="text"]');r&&(r.textContent=aj("live")),i?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true")},nX=class extends s7{static get observedAttributes(){return[...super.observedAttributes,nQ,nK]}connectedCallback(){super.connectedCallback(),nz(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),nz(this)}get mediaPaused(){return rp(this,a_.MEDIA_PAUSED)}set mediaPaused(e){rv(this,a_.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return rp(this,a_.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){rv(this,a_.MEDIA_TIME_IS_LIVE,e)}handleClick(){(this.mediaPaused||!this.mediaTimeIsLive)&&(this.dispatchEvent(new a5.CustomEvent(nj,{composed:!0,bubbles:!0})),this.hasAttribute(nK)&&this.dispatchEvent(new a5.CustomEvent(nY,{composed:!0,bubbles:!0})))}};nX.getSlotTemplateHTML=function(e){return`
912    <style>
913      :host { --media-tooltip-display: none; }
914      
915      slot[name=indicator] > *,
916      :host ::slotted([slot=indicator]) {
917        
918        min-width: auto;
919        fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
920        color: var(--media-live-button-icon-color, rgb(140, 140, 140));
921      }
922
923      :host([${nQ}]:not([${nK}])) slot[name=indicator] > *,
924      :host([${nQ}]:not([${nK}])) ::slotted([slot=indicator]) {
925        fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
926        color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
927      }
928
929      :host([${nQ}]:not([${nK}])) {
930        cursor: var(--media-cursor, not-allowed);
931      }
932
933      slot[name=text]{
934        text-transform: uppercase;
935      }
936
937    </style>
938
939    <slot name="indicator"><svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg></slot>
940    
941    <slot name="spacer">&nbsp;</slot><slot name="text">${aj("live")}</slot>
942  `},a5.customElements.get("media-live-button")||a5.customElements.define("media-live-button",nX);var nJ=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},n0=(e,t,i)=>(nJ(e,t,"read from private field"),i?i.call(e):t.get(e)),n1=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},n2=(e,t,i,a)=>(nJ(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),n5="loadingdelay",n3="noautohide",n4=`
943<svg aria-hidden="true" viewBox="0 0 100 100">
944  <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
945    <animateTransform
946       attributeName="transform"
947       attributeType="XML"
948       type="rotate"
949       dur="1s"
950       from="0 50 50"
951       to="360 50 50"
952       repeatCount="indefinite" />
953  </path>
954</svg>
955`,n7=class extends a5.HTMLElement{constructor(){if(super(),n1(this,eQ,void 0),n1(this,eK,500),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aI.MEDIA_CONTROLLER,a_.MEDIA_PAUSED,a_.MEDIA_LOADING,n5]}attributeChangedCallback(e,t,i){var a,r,s,n,o;e===n5&&t!==i?this.loadingDelay=Number(i):e===aI.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=n0(this,eQ))?void 0:a.unassociateElement)||r.call(a,this),n2(this,eQ,null)),i&&this.isConnected&&(n2(this,eQ,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(o=null==(n=n0(this,eQ))?void 0:n.associateElement)||o.call(n,this)))}connectedCallback(){var e,t,i;let a=this.getAttribute(aI.MEDIA_CONTROLLER);a&&(n2(this,eQ,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=n0(this,eQ))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=n0(this,eQ))?void 0:e.unassociateElement)||t.call(e,this),n2(this,eQ,null)}get loadingDelay(){return n0(this,eK)}set loadingDelay(e){n2(this,eK,e);let{style:t}=rh(this.shadowRoot,":host");t.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return rp(this,a_.MEDIA_PAUSED)}set mediaPaused(e){rv(this,a_.MEDIA_PAUSED,e)}get mediaLoading(){return rp(this,a_.MEDIA_LOADING)}set mediaLoading(e){rv(this,a_.MEDIA_LOADING,e)}get mediaController(){return rb(this,aI.MEDIA_CONTROLLER)}set mediaController(e){rE(this,aI.MEDIA_CONTROLLER,e)}get noAutohide(){return rp(this,n3)}set noAutohide(e){rv(this,n3,e)}};eQ=new WeakMap,eK=new WeakMap,n7.shadowRootOptions={mode:"open"},n7.getTemplateHTML=function(e){return`
956    <style>
957      :host {
958        display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
959        vertical-align: middle;
960        box-sizing: border-box;
961        --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, 500ms);
962      }
963
964      #status {
965        color: rgba(0,0,0,0);
966        width: 0px;
967        height: 0px;
968      }
969
970      :host slot[name=icon] > *,
971      :host ::slotted([slot=icon]) {
972        opacity: var(--media-loading-indicator-opacity, 0);
973        transition: opacity 0.15s;
974      }
975
976      :host([${a_.MEDIA_LOADING}]:not([${a_.MEDIA_PAUSED}])) slot[name=icon] > *,
977      :host([${a_.MEDIA_LOADING}]:not([${a_.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
978        opacity: var(--media-loading-indicator-opacity, 1);
979        transition: opacity 0.15s var(--_loading-indicator-delay);
980      }
981
982      :host #status {
983        visibility: var(--media-loading-indicator-opacity, hidden);
984        transition: visibility 0.15s;
985      }
986
987      :host([${a_.MEDIA_LOADING}]:not([${a_.MEDIA_PAUSED}])) #status {
988        visibility: var(--media-loading-indicator-opacity, visible);
989        transition: visibility 0.15s var(--_loading-indicator-delay);
990      }
991
992      svg, img, ::slotted(svg), ::slotted(img) {
993        width: var(--media-loading-indicator-icon-width);
994        height: var(--media-loading-indicator-icon-height, 100px);
995        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
996        vertical-align: middle;
997      }
998    </style>
999
1000    <slot name="icon">${n4}</slot>
1001    <div id="status" role="status" aria-live="polite">${aj("media loading")}</div>
1002  `},a5.customElements.get("media-loading-indicator")||a5.customElements.define("media-loading-indicator",n7);var n8=`<svg aria-hidden="true" viewBox="0 0 24 24">
1003  <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>
1004</svg>`,n6=`<svg aria-hidden="true" viewBox="0 0 24 24">
1005  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>
1006</svg>`,n9=`<svg aria-hidden="true" viewBox="0 0 24 24">
1007  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>
1008</svg>`,oe=e=>{let t="off"===e.mediaVolumeLevel?aj("unmute"):aj("mute");e.setAttribute("aria-label",t)},ot=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_VOLUME_LEVEL]}connectedCallback(){super.connectedCallback(),oe(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_VOLUME_LEVEL&&oe(this)}get mediaVolumeLevel(){return rb(this,a_.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){rE(this,a_.MEDIA_VOLUME_LEVEL,e)}handleClick(){let e="off"===this.mediaVolumeLevel?ay.MEDIA_UNMUTE_REQUEST:ay.MEDIA_MUTE_REQUEST;this.dispatchEvent(new a5.CustomEvent(e,{composed:!0,bubbles:!0}))}};ot.getSlotTemplateHTML=function(e){return`
1009    <style>
1010      :host(:not([${a_.MEDIA_VOLUME_LEVEL}])) slot[name=icon] slot:not([name=high]),
1011      :host([${a_.MEDIA_VOLUME_LEVEL}=high]) slot[name=icon] slot:not([name=high]) {
1012        display: none !important;
1013      }
1014
1015      :host([${a_.MEDIA_VOLUME_LEVEL}=off]) slot[name=icon] slot:not([name=off]) {
1016        display: none !important;
1017      }
1018
1019      :host([${a_.MEDIA_VOLUME_LEVEL}=low]) slot[name=icon] slot:not([name=low]) {
1020        display: none !important;
1021      }
1022
1023      :host([${a_.MEDIA_VOLUME_LEVEL}=medium]) slot[name=icon] slot:not([name=medium]) {
1024        display: none !important;
1025      }
1026
1027      :host(:not([${a_.MEDIA_VOLUME_LEVEL}=off])) slot[name=tooltip-unmute],
1028      :host([${a_.MEDIA_VOLUME_LEVEL}=off]) slot[name=tooltip-mute] {
1029        display: none;
1030      }
1031    </style>
1032
1033    <slot name="icon">
1034      <slot name="off">${n8}</slot>
1035      <slot name="low">${n6}</slot>
1036      <slot name="medium">${n6}</slot>
1037      <slot name="high">${n9}</slot>
1038    </slot>
1039  `},ot.getTooltipContentHTML=function(){return`
1040    <slot name="tooltip-mute">${aj("Mute")}</slot>
1041    <slot name="tooltip-unmute">${aj("Unmute")}</slot>
1042  `},a5.customElements.get("media-mute-button")||a5.customElements.define("media-mute-button",ot);var oi=`<svg aria-hidden="true" viewBox="0 0 28 24">
1043  <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>
1044</svg>`,oa=e=>{let t=e.mediaIsPip?aj("exit picture in picture mode"):aj("enter picture in picture mode");e.setAttribute("aria-label",t)},or=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_IS_PIP,a_.MEDIA_PIP_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),oa(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_IS_PIP&&oa(this)}get mediaPipUnavailable(){return rb(this,a_.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){rE(this,a_.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return rp(this,a_.MEDIA_IS_PIP)}set mediaIsPip(e){rv(this,a_.MEDIA_IS_PIP,e)}handleClick(){let e=this.mediaIsPip?ay.MEDIA_EXIT_PIP_REQUEST:ay.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new a5.CustomEvent(e,{composed:!0,bubbles:!0}))}};or.getSlotTemplateHTML=function(e){return`
1045    <style>
1046      :host([${a_.MEDIA_IS_PIP}]) slot[name=icon] slot:not([name=exit]) {
1047        display: none !important;
1048      }
1049
1050      :host(:not([${a_.MEDIA_IS_PIP}])) slot[name=icon] slot:not([name=enter]) {
1051        display: none !important;
1052      }
1053
1054      :host([${a_.MEDIA_IS_PIP}]) slot[name=tooltip-enter],
1055      :host(:not([${a_.MEDIA_IS_PIP}])) slot[name=tooltip-exit] {
1056        display: none;
1057      }
1058    </style>
1059
1060    <slot name="icon">
1061      <slot name="enter">${oi}</slot>
1062      <slot name="exit">${oi}</slot>
1063    </slot>
1064  `},or.getTooltipContentHTML=function(){return`
1065    <slot name="tooltip-enter">${aj("Enter picture in picture mode")}</slot>
1066    <slot name="tooltip-exit">${aj("Exit picture in picture mode")}</slot>
1067  `},a5.customElements.get("media-pip-button")||a5.customElements.define("media-pip-button",or);var os=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot read from private field");return i?i.call(e):t.get(e)},on="rates",oo=[1,1.2,1.5,1.7,2],ol=class extends s7{constructor(){var e;super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,ej,new rV(this,on,{defaultValue:oo})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${null!=(e=this.mediaPlaybackRate)?e:1}x`}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PLAYBACK_RATE,on]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===on&&(os(this,ej).value=i),e===a_.MEDIA_PLAYBACK_RATE){let e=i?+i:NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",aj("Playback rate {playbackRate}",{playbackRate:t}))}}get rates(){return os(this,ej)}set rates(e){e?Array.isArray(e)?os(this,ej).value=e.join(" "):"str
1067ing"==typeof e&&(os(this,ej).value=e):os(this,ej).value=""}get mediaPlaybackRate(){return rc(this,a_.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){rm(this,a_.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,t;let i=Array.from(os(this,ej).values(),e=>+e).sort((e,t)=>e-t),a=null!=(t=null!=(e=i.find(e=>e>this.mediaPlaybackRate))?e:i[0])?t:1,r=new a5.CustomEvent(ay.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:a});this.dispatchEvent(r)}};ej=new WeakMap,ol.getSlotTemplateHTML=function(e){return`
1068    <style>
1069      :host {
1070        min-width: 5ch;
1071        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1072      }
1073    </style>
1074    <slot name="icon">${e.mediaplaybackrate||1}x</slot>
1075  `},ol.getTooltipContentHTML=function(){return aj("Playback rate")},a5.customElements.get("media-playback-rate-button")||a5.customElements.define("media-playback-rate-button",ol);var od=`<svg aria-hidden="true" viewBox="0 0 24 24">
1076  <path d="m6 21 15-9L6 3v18Z"/>
1077</svg>`,oh=`<svg aria-hidden="true" viewBox="0 0 24 24">
1078  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
1079</svg>`,ou=e=>{let t=e.mediaPaused?aj("play"):aj("pause");e.setAttribute("aria-label",t)},oc=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PAUSED,a_.MEDIA_ENDED]}connectedCallback(){super.connectedCallback(),ou(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),(e===a_.MEDIA_PAUSED||e===a_.MEDIA_LANG)&&ou(this)}get mediaPaused(){return rp(this,a_.MEDIA_PAUSED)}set mediaPaused(e){rv(this,a_.MEDIA_PAUSED,e)}handleClick(){let e=this.mediaPaused?ay.MEDIA_PLAY_REQUEST:ay.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new a5.CustomEvent(e,{composed:!0,bubbles:!0}))}};oc.getSlotTemplateHTML=function(e){return`
1080    <style>
1081      :host([${a_.MEDIA_PAUSED}]) slot[name=pause],
1082      :host(:not([${a_.MEDIA_PAUSED}])) slot[name=play] {
1083        display: none !important;
1084      }
1085
1086      :host([${a_.MEDIA_PAUSED}]) slot[name=tooltip-pause],
1087      :host(:not([${a_.MEDIA_PAUSED}])) slot[name=tooltip-play] {
1088        display: none;
1089      }
1090    </style>
1091
1092    <slot name="icon">
1093      <slot name="play">${od}</slot>
1094      <slot name="pause">${oh}</slot>
1095    </slot>
1096  `},oc.getTooltipContentHTML=function(){return`
1097    <slot name="tooltip-play">${aj("Play")}</slot>
1098    <slot name="tooltip-pause">${aj("Pause")}</slot>
1099  `},a5.customElements.get("media-play-button")||a5.customElements.define("media-play-button",oc);var om="placeholdersrc",op=class extends a5.HTMLElement{static get observedAttributes(){return[om,"src"]}constructor(){if(super(),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,t,i){if("src"===e&&(null==i?this.image.removeAttribute("src"):this.image.setAttribute("src",i)),e===om)if(null==i)this.image.style.removeProperty("background-image");else{var a;a=this.image,a.style["background-image"]=`url('${i}')`}}get placeholderSrc(){return rb(this,om)}set placeholderSrc(e){rE(this,"src",e)}get src(){return rb(this,"src")}set src(e){rE(this,"src",e)}};op.shadowRootOptions={mode:"open"},op.getTemplateHTML=function(e){return`
1100    <style>
1101      :host {
1102        pointer-events: none;
1103        display: var(--media-poster-image-display, inline-block);
1104        box-sizing: border-box;
1105      }
1106
1107      img {
1108        max-width: 100%;
1109        max-height: 100%;
1110        min-width: 100%;
1111        min-height: 100%;
1112        background-repeat: no-repeat;
1113        background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
1114        background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
1115        object-fit: var(--media-object-fit, contain);
1116        object-position: var(--media-object-position, center);
1117      }
1118    </style>
1119
1120    <img part="poster img" aria-hidden="true" id="image"/>
1121  `},a5.customElements.get("media-poster-image")||a5.customElements.define("media-poster-image",op);var ov=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ob=class extends nS{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eY,void 0),((e,t,i)=>(ov(e,t,"write to private field"),t.set(e,i)))(this,eY,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PREVIEW_CHAPTER,a_.MEDIA_LA
1121NG]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),(e===a_.MEDIA_PREVIEW_CHAPTER||e===a_.MEDIA_LANG)&&i!==t&&null!=i){var a;if((ov(this,a=eY,"read from private field"),a.get(this)).textContent=i,""!==i){let e=aj("chapter: {chapterName}",{chapterName:i});this.setAttribute("aria-valuetext",e)}else this.removeAttribute("aria-valuetext")}}get mediaPreviewChapter(){return rb(this,a_.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){rE(this,a_.MEDIA_PREVIEW_CHAPTER,e)}};eY=new WeakMap,a5.customElements.get("media-preview-chapter-display")||a5.customElements.define("media-preview-chapter-display",ob);var oE=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},og=(e,t,i)=>(oE(e,t,"read from private field"),i?i.call(e):t.get(e)),of=(e,t,i,a)=>(oE(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),oA=class extends a5.HTMLElement{constructor(){if(super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,ez,void 0),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}}static get observedAttributes(){return[aI.MEDIA_CONTROLLER,a_.MEDIA_PREVIEW_IMAGE,a_.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,t,i;let a=this.getAttribute(aI.MEDIA_CONTROLLER);a&&(of(this,ez,null==(e=this.getRootNode())?void 0:e.getElementById(a)),null==(i=null==(t=og(this,ez))?void 0:t.associateElement)||i.call(t,this))}disconnectedCallback(){var e,t;null==(t=null==(e=og(this,ez))?void 0:e.unassociateElement)||t.call(e,this),of(this,ez,null)}attributeChangedCallback(e,t,i){var a,r,s,n,o;[a_.MEDIA_PREVIEW_IMAGE,a_.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===aI.MEDIA_CONTROLLER&&(t&&(null==(r=null==(a=og(this,ez))?void 0:a.unassociateElement)||r.call(a,this),of(this,ez,null)),i&&this.isConnected&&(of(this,ez,null==(s=this.getRootNode())?void 0:s.getElementById(i)),null==(o=null==(n=og(this,ez))?void 0:n.associateElement)||o.call(n,this)))}get mediaPreviewImage(){return rb(this,a_.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){rE(this,a_.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){let e=this.getAttribute(a_.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(e=>+e)}set mediaPreviewCoords(e){e?this.setAttribute(a_.MEDIA_PREVIEW_COORDS,e.join(" ")):this.removeAttribute(a_.MEDIA_PREVIEW_COORDS)}update(){let e=this.mediaPreviewCoords,t=this.mediaPreviewImage;if(!(e&&t))return;let[i,a,r,s]=e,n=t.split("#")[0],{maxWidth:o,maxHeight:l,minWidth:d,minHeight:h}=getComputedStyle(this),u=Math.min(parseInt(o)/r,parseInt(l)/s),c=Math.max(parseInt(d)/r,parseInt(h)/s),m=u<1,p=m?u:c>1?c:1,{style:v}=rh(this.shadowRoot,":host"),b=rh(this.shadowRoot,"img").style,E=this.shadowRoot.querySelector("img"),g=m?"min":"max";v.setProperty(`${g}-width`,"initial","important"),v.setProperty(`${g}-height`,"initial","important"),v.width=`${r*p}px`,v.height=`${s*p}px`;let f=()=>{b.width=`${this.imgWidth*p}px`,b.height=`${this.imgHeight*p}px`,b.display="block"};E.src!==n&&(E.onload=()=>{this.imgWidth=E.naturalWidth,this.imgHeight=E.naturalHeight,f()},E.src=n,f()),f(),b.transform=`translate(-${i*p}px, -${a*p}px)`}};ez=new WeakMap,oA.shadowRootOptions={mode:"open"},oA.getTemplateHTML=function(e){return`
1122    <style>
1123      :host {
1124        box-sizing: border-box;
1125        display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));
1126        overflow: hidden;
1127      }
1128
1129      img {
1130        display: none;
1131        position: relative;
1132      }
1133    </style>
1134    <img crossorigin loading="eager" decoding="async">
1135  `},a5.customElements.get("media-preview-thumbnail")||a5.customElements.define("media-preview-thumbnail",oA);var ok=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},ow=(e,t,i)=>(ok(e,t,"read from private field"),i?i.call(e):t.get(e)),oy=class extends nS{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eX,void 0),((e,t,i)=>(ok(e,t,"write to private field"),t.set(e,i)))(this,eX,this.shadowRoot.querySelector("slot")),ow(this,eX).textContent=aZ(0)}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_PREVIEW_TIME&&null!=i&&(ow(this,eX).textContent=aZ(parseFloat(i)))}get mediaPreviewTime(){return rc(this,a_.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){rm(this,a_.MEDIA_PREVIEW_TIME,e)}};eX=new WeakMap,a5.customElements.get("media-preview-time-display")||a5.customElements.define("media-preview-time-display",oy);var oI="seekoffset",oT=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_CURRENT_TIME,oI]}connectedCallback(){super.connectedCallback(),this.seekOffset=rc(this,oI,30)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===oI&&(this.seekOffset=rc(this,oI,30))}get seekOffset(){return rc(this,oI,30)}set seekOffset(e){rm(this,oI,e),this.setAttribute("aria-label",aj("seek back {seekOffset} seconds",{seekOffset:this.seekOffset})),ra(rr(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return rc(this,a_.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){rm(this,a_.MEDIA_CURRENT_TIME,e)}handleClick(){let e=Math.max(this.mediaCurrentTime-this.seekOffset,0),t=new a5.CustomEvent(ay.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};oT.getSlotTemplateHTML=function(e,t){let i;return`
1136    <slot name="icon">${i=t.seekOffset,`
1137  <svg aria-hidden="true" viewBox="0 0 20 24">
1138    <defs>
1139      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
1140    </defs>
1141    <text class="text value" transform="translate(2.18 19.87)">${i}</text>
1142    <path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/>
1143  </svg>`}</slot>
1144  `},oT.getTooltipContentHTML=function(){return aj("Seek backward")},a5.customElements.get("media-seek-backward-button")||a5.customElements.define("media-seek-backward-button",oT);var oM="seekoffset",o_=class extends s7{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_CURRENT_TIME,oM]}connectedCallback(){super.connectedCallback(),this.seekOffset=rc(this,oM,30)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===oM&&(this.seekOffset=rc(this,oM,30))}get seekOffset(){return rc(this,oM,30)}set seekOffset(e){rm(this,oM,e),this.setAttribute("aria-label",aj("seek forward {seekOffset} seconds",{seekOffset:this.seekOffset})),ra(rr(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return rc(this,a_.MEDIA_CURRENT_TIME,0)}set mediaCurrentTime(e){rm(this,a_.MEDIA_CURRENT_TIME,e)}handleClick(){let e=this.mediaCurrentTime+this.seekOffset,t=new a5.CustomEvent(ay.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};o_.getSlotTemplateHTML=function(e,t){let i;return`
1145    <slot name="icon">${i=t.seekOffset,`
1146  <svg aria-hidden="true" viewBox="0 0 20 24">
1147    <defs>
1148      <style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style>
1149    </defs>
1150    <text class="text value" transform="translate(8.9 19.87)">${i}</text>
1151    <path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/>
1152  </svg>`}</slot>
1153  `},o_.getTooltipContentHTML=function(){return aj("Seek forward")},a5.customElements.get("media-seek-forward-button")||a5.customElements.define("media-seek-forward-button",o_);var oS=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oL=(e,t,i)=>(oS(e,t,"read from private field"),i?i.call(e):t.get(e)),ox={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},oC=[...Object.values(ox),a_.MEDIA_CURRENT_TIME,a_.MEDIA_DURATION,a_.MEDIA_SEEKABLE],oR=["Enter"," "],oD="&nbsp;/&nbsp;",oN=(e,{timesSep:t=oD}={})=>{var i,a;let r=null!=(i=e.mediaCurrentTime)?i:0,[,s]=null!=(a=e.mediaSeekable)?a:[],n=0;Number.isFinite(e.mediaDuration)?n=e.mediaDuration:Number.isFinite(s)&&(n=s);let o=e.remaining?aZ(0-(n-r)):aZ(r);return e.showDuration?`${o}${t}${aZ(n)}`:o},oP=class extends nS{constructor(){super(),((e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)})(this,eJ,void 0),((e,t,i)=>(oS(e,t,"write to private field"),t.set(e,i)))(this,eJ,this.shadowRoot.querySelector("slot")),oL(this,eJ).innerHTML=`${oN(this)}`}static get observedAttributes(){return[...super.observedAttributes,...oC,"disabled"]}connectedCallback(){let{style:e}=rh(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","var(--media-cursor, pointer)"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",aj("playback time"));let t=e=>{let{key:i}=e;oR.includes(i)?this.toggleTimeDisplay():this.removeEventListener("keyup",t)};this.addEventListener("keydown",e=>{let{metaKey:i,altKey:a,key:r}=e;i||a||!oR.includes(r)?this.removeEventListener("keyup",t):this.addEventListener("keyup",t)}),this.addEventListener("click",this.toggleTimeDisplay),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),super.disconnectedCallback()}attributeChangedCallback(e,t,i){oC.includes(e)?this.update():"disabled"===e&&i!==t&&(null==i?this.enable():this.disable()),super.attributeChangedCallback(e,t,i)}enable(){this.tabIndex=0}disable(){this.tabIndex=-1}get remaining(){return rp(this,ox.REMAINING)}set remaining(e){rv(this,ox.REMAINING,e)}get showDuration(){return rp(this,ox.SHOW_DURATION)}set showDuration(e){rv(this,ox.SHOW_DURATION,e)}get noToggle(){return rp(this,ox.NO_TOGGLE)}set noToggle(e){rv(this,ox.NO_TOGGLE,e)}get mediaDuration(){return rc(this,a_.MEDIA_DURATION)}set mediaDuration(e){rm(this,a_.MEDIA_DURATION,e)}get mediaCurrentTime(){return rc(this,a_.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){rm(this,a_.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){let e=this.getAttribute(a_.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){null==e?this.removeAttribute(a_.MEDIA_SEEKABLE):this.setAttribute(a_.MEDIA_SEEKABLE,e.join(":"))}update(){let e=oN(this);(e=>{var t;
1153let i=e.mediaCurrentTime,[,a]=null!=(t=e.mediaSeekable)?t:[],r=null;if(Number.isFinite(e.mediaDuration)?r=e.mediaDuration:Number.isFinite(a)&&(r=a),null==i||null===r)return e.setAttribute("aria-valuetext","video not loaded, unknown time.");let s=e.remaining?aF(0-(r-i)):aF(i);if(!e.showDuration)return e.setAttribute("aria-valuetext",s);let n=aF(r),o=`${s} of ${n}`;e.setAttribute("aria-valuetext",o)})(this),e!==oL(this,eJ).innerHTML&&(oL(this,eJ).innerHTML=e)}};eJ=new WeakMap,oP.getSlotTemplateHTML=function(e,t){return`
1154    <slot>${oN(t)}</slot>
1155  `},a5.customElements.get("media-time-display")||a5.customElements.define("media-time-display",oP);var oU=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oO=(e,t,i)=>(oU(e,t,"read from private field"),i?i.call(e):t.get(e)),oW=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oH=(e,t,i,a)=>(oU(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),o$=class{constructor(e,t,i){oW(this,e0,void 0),oW(this,e1,void 0),oW(this,e2,void 0),oW(this,e5,void 0),oW(this,e3,void 0),oW(this,e4,void 0),oW(this,e7,void 0),oW(this,e8,void 0),oW(this,e6,0),oW(this,e9,(e=performance.now())=>{oH(this,e6,requestAnimationFrame(oO(this,e9))),oH(this,e5,performance.now()-oO(this,e2));let t=1e3/this.fps;if(oO(this,e5)>t){let i,a;oH(this,e2,e-oO(this,e5)%t);let r=1e3/((e-oO(this,e1))/++(i=this,a=e3,{set _(value){oH(i,a,value,void 0)},get _(){return oO(i,a,void 0)}})._),s=(e-oO(this,e4))/1e3/this.duration,n=oO(this,e7)+s*this.playbackRate;n-oO(this,e0).valueAsNumber>0?oH(this,e8,this.playbackRate/this.duration/r):(oH(this,e8,.995*oO(this,e8)),n=oO(this,e0).valueAsNumber+oO(this,e8)),this.callback(n)}}),oH(this,e0,e),this.callback=t,this.fps=i}start(){0===oO(this,e6)&&(oH(this,e2,performance.now()),oH(this,e1,oO(this,e2)),oH(this,e3,0),oO(this,e9).call(this))}stop(){0!==oO(this,e6)&&(cancelAnimationFrame(oO(this,e6)),oH(this,e6,0))}update({start:e,duration:t,playbackRate:i}){let a=e-oO(this,e0).valueAsNumber,r=Math.abs(t-this.duration);(a>0||a<-.03||r>=.5)&&this.callback(e),oH(this,e7,e),oH(this,e4,performance.now()),this.duration=t,this.playbackRate=i}};e0=new WeakMap,e1=new WeakMap,e2=new WeakMap,e5=new WeakMap,e3=new WeakMap,e4=new WeakMap,e7=new WeakMap,e8=new WeakMap,e6=new WeakMap,e9=new WeakMap;var oB=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oV=(e,t,i)=>(oB(e,t,"read from private field"),i?i.call(e):t.get(e)),oq=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},oG=(e,t,i,a)=>(oB(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),oF=(e,t,i)=>(oB(e,t,"access private method"),i),oZ=(e,t=e.mediaCurrentTime)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:Math.max(0,Math.min((t-i)/(a-i),1))},oQ=(e,t=e.range.valueAsNumber)=>{let i=Number.isFinite(e.mediaSeekableStart)?e.mediaSeekableStart:0,a=Number.isFinite(e.mediaDuration)?e.mediaDuration:e.mediaSeekableEnd;return Number.isNaN(a)?0:t*(a-i)+i},oK=class extends nA{constructor(){super(),oq(this,th),oq(this,tc),oq(this,tv),oq(this,tE),oq(this,tf),oq(this,tk),oq(this,ty),oq(this,tT),oq(this,te,void 0),oq(this,tt,void 0),oq(this,ti,void 0),oq(this,ta,void 0),oq(this,tr,void 0),oq(this,ts,void 0),oq(this,tn,void 0),oq(this,to,void 0),oq(this,tl,void 0),oq(this,td,void 0),oq(this,tp,e=>{!this.dragging&&(aB(e)&&(this.range.valueAsNumber=e),oV(this,td)||this.updateBar())}),this.shadowRoot.querySelector("#track").insertAdjacentHTML("afterbegin",'<div id="buffered" part="buffered"></div>'),oG(this,ti,this.shadowRoot.querySelectorAll('[part~="box"]')),oG(this,tr,this.shadowRoot.querySelector('[part~="preview-box"]')),oG(this,ts,this.shadowRoot.querySelector('[part~="current-box"]'));const e=getComputedStyle(this);oG(this,tn,parseInt(e.getPropertyValue("--media-box-padding-left"))),oG(this,to,parseInt(e.getPropertyValue("--media-box-padding-right"))),oG(this,tt,new o$(this.range,oV(this,tp),60))}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PAUSED,a_.MEDIA_DURATION,a_.MEDIA_SEEKABLE,a_.MEDIA_CURRENT_TIME,a_.MEDIA_PREVIEW_IMAGE,a_.MEDIA_PREVIEW_TIME,a_.MEDIA_PREVIEW_CHAPTER,a_.MEDIA_BUFFERED,a_.MEDIA_PLAYBACK_RATE,a_.MEDIA_LOADING,a_.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",aj("seek")),oF(this,th,tu).call(this),oG(this,te,this.getRootNode()),null==(e=oV(this,te))||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),oF(this,th,tu).call(this),null==(e=oV(this,te))||e.removeEventListener("transitionstart",this),oG(this,te,null)}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!=i){if(e===a_.MEDIA_CURRENT_TIME||e===a_.MEDIA_PAUSED||e===a_.MEDIA_ENDED||e===a_.MEDIA_LOADING||e===a_.MEDIA_DURATION||e===a_.MEDIA_SEEKABLE){let e,t,i,a;oV(this,tt).update({start:oZ(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),oF(this,th,tu).call(this),e=this.range,t=aF(+oQ(this)),i=aF(+this.mediaSeekableEnd),a=t&&i?`${t} of ${i}`:"video not loaded, unknown time.",e.setAttribute("aria-valuetext",a)}else e===a_.MEDIA_BUFFERED&&this.updateBufferedBar();(e===a_.MEDIA_DURATION||e===a_.MEDIA_SEEKABLE)&&(this.mediaChapter
1155sCues=oV(this,tl),this.updateBar())}}get mediaChaptersCues(){return oV(this,tl)}set mediaChaptersCues(e){var t;oG(this,tl,e),this.updateSegments(null==(t=oV(this,tl))?void 0:t.map(e=>({start:oZ(this,e.startTime),end:oZ(this,e.endTime)})))}get mediaPaused(){return rp(this,a_.MEDIA_PAUSED)}set mediaPaused(e){rv(this,a_.MEDIA_PAUSED,e)}get mediaLoading(){return rp(this,a_.MEDIA_LOADING)}set mediaLoading(e){rv(this,a_.MEDIA_LOADING,e)}get mediaDuration(){return rc(this,a_.MEDIA_DURATION)}set mediaDuration(e){rm(this,a_.MEDIA_DURATION,e)}get mediaCurrentTime(){return rc(this,a_.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){rm(this,a_.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return rc(this,a_.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){rm(this,a_.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){let e=this.getAttribute(a_.MEDIA_BUFFERED);return e?e.split(" ").map(e=>e.split(":").map(e=>+e)):[]}set mediaBuffered(e){if(!e)return void this.removeAttribute(a_.MEDIA_BUFFERED);let t=e.map(e=>e.join(":")).join(" ");this.setAttribute(a_.MEDIA_BUFFERED,t)}get mediaSeekable(){let e=this.getAttribute(a_.MEDIA_SEEKABLE);if(e)return e.split(":").map(e=>+e)}set mediaSeekable(e){null==e?this.removeAttribute(a_.MEDIA_SEEKABLE):this.setAttribute(a_.MEDIA_SEEKABLE,e.join(":"))}get mediaSeekableEnd(){var e;let[,t=this.mediaDuration]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaSeekableStart(){var e;let[t=0]=null!=(e=this.mediaSeekable)?e:[];return t}get mediaPreviewImage(){return rb(this,a_.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){rE(this,a_.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return rc(this,a_.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){rm(this,a_.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return rp(this,a_.MEDIA_ENDED)}set mediaEnded(e){rv(this,a_.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;let t,i=this.mediaBuffered;if(!i.length)return;if(this.mediaEnded)t=1;else{let a=this.mediaCurrentTime,[,r=this.mediaSeekableStart]=null!=(e=i.find(([e,t])=>e<=a&&a<=t))?e:[];t=oZ(this,r)}let{style:a}=rh(this.shadowRoot,"#buffered");a.setProperty("width",`${100*t}%`)}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;let e=rh(this.shadowRoot,"#current-rail"),t=rh(this.shadowRoot,'[part~="current-box"]'),i=oF(this,tv,tb).call(this,oV(this,ts)),a=oF(this,tE,tg).call(this,i,this.range.valueAsNumber),r=oF(this,tf,tA).call(this,i,this.range.valueAsNumber);e.style.transform=`translateX(${a})`,e.style.setProperty("--_range-width",`${i.range.width}`),t.style.setProperty("--_box-shift",`${r}`),t.style.setProperty("--_box-width",`${i.box.width}px`),t.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":oF(this,tT,tM).call(this);break;case"pointermove":oF(this,tk,tw).call(this,e);break;case"pointerup":oV(this,td)&&oG(this,td,!1);break;case"pointerdown":oG(this,td,!0);break;case"pointerleave":oF(this,ty,tI).call(this,null);break;case"transitionstart":rs(e.target,this)&&setTimeout(()=>oF(this,th,tu).call(this),0)}}};te=new WeakMap,tt=new WeakMap,ti=new WeakMap,ta=new WeakMap,tr=new WeakMap,ts=new WeakMap,tn=new WeakMap,to=new WeakMap,tl=new WeakMap,td=new WeakMap,th=new WeakSet,tu=function(){oF(this,tc,tm).call(this)?oV(this,tt).start():oV(this,tt).stop()},tc=new WeakSet,tm=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&rd(this)},tp=new WeakMap,tv=new WeakSet,tb=function(e){var t;let i=(null!=(t=this.getAttribute("bounds")?rn(this,`#${this.getAttribute("bounds")}`):this.parentElement)?t:this).getBoundingClientRect(),a=this.range.getBoundingClientRect(),r=e.offsetWidth,s=-(a.left-i.left-r/2),n=i.right-a.left-r/2;return{box:{width:r,min:s,max:n},bounds:i,range:a}},tE=new WeakSet,tg=function(e,t){let i=`${100*t}%`,{width:a,min:r,max:s}=e.box;if(!a)return i;if(!Number.isNaN(r)){let e=`calc(1 / var(--_range-width) * 100 * ${r}% + var(--media-box-padding-left))`;i=`max(${e}, ${i})`}if(!Number.isNaN(s)){let e=`calc(1 / var(--_range-width) * 100 * ${s}% - var(--media-box-padding-right))`;i=`min(${i}, ${e})`}return i},tf=new WeakSet,tA=function(e,t){let{width:i,min:a,max:r}
1155=e.box,s=t*e.range.width;if(s<a+oV(this,tn)){let t=e.range.left-e.bounds.left-oV(this,tn);return`${s-i/2+t}px`}if(s>r-oV(this,to)){let t=e.bounds.right-e.range.right-oV(this,to);return`${s+i/2-t-e.range.width}px`}return 0},tk=new WeakSet,tw=function(e){let t=[...oV(this,ti)].some(t=>e.composedPath().includes(t));if(!this.dragging&&(t||!e.composedPath().includes(this)))return void oF(this,ty,tI).call(this,null);let i=this.mediaSeekableEnd;if(!i)return;let a=rh(this.shadowRoot,"#preview-rail"),r=rh(this.shadowRoot,'[part~="preview-box"]'),s=oF(this,tv,tb).call(this,oV(this,tr)),n=(e.clientX-s.range.left)/s.range.width;n=Math.max(0,Math.min(1,n));let o=oF(this,tE,tg).call(this,s,n),l=oF(this,tf,tA).call(this,s,n);a.style.transform=`translateX(${o})`,a.style.setProperty("--_range-width",`${s.range.width}`),r.style.setProperty("--_box-shift",`${l}`),r.style.setProperty("--_box-width",`${s.box.width}px`),1>Math.abs(Math.round(oV(this,ta))-Math.round(n*i))&&n>.01&&n<.99||(oG(this,ta,n*i),oF(this,ty,tI).call(this,oV(this,ta)))},ty=new WeakSet,tI=function(e){this.dispatchEvent(new a5.CustomEvent(ay.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:e}))},tT=new WeakSet,tM=function(){oV(this,tt).stop();let e=oQ(this);this.dispatchEvent(new a5.CustomEvent(ay.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e}))},oK.shadowRootOptions={mode:"open"},oK.getTemplateHTML=function(e){return`
1156    ${nA.getTemplateHTML(e)}
1157    <style>
1158      :host {
1159        --media-box-border-radius: 4px;
1160        --media-box-padding-left: 10px;
1161        --media-box-padding-right: 10px;
1162        --media-preview-border-radius: var(--media-box-border-radius);
1163        --media-box-arrow-offset: var(--media-box-border-radius);
1164        --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
1165        --_preview-background: var(--media-preview-background, var(--_control-background));
1166
1167        
1168        contain: layout;
1169      }
1170
1171      #buffered {
1172        background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
1173        position: absolute;
1174        height: 100%;
1175        will-change: width;
1176      }
1177
1178      #preview-rail,
1179      #current-rail {
1180        width: 100%;
1181        position: absolute;
1182        left: 0;
1183        bottom: 100%;
1184        pointer-events: none;
1185        will-change: transform;
1186      }
1187
1188      [part~="box"] {
1189        width: min-content;
1190        
1191        position: absolute;
1192        bottom: 100%;
1193        flex-direction: column;
1194        align-items: center;
1195        transform: translateX(-50%);
1196      }
1197
1198      [part~="current-box"] {
1199        display: var(--media-current-box-display, var(--media-box-display, flex));
1200        margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));
1201        visibility: hidden;
1202      }
1203
1204      [part~="preview-box"] {
1205        display: var(--media-preview-box-display, var(--media-box-display, flex));
1206        margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));
1207        transition-property: var(--media-preview-transition-property, visibility, opacity);
1208        transition-duration: var(--media-preview-transition-duration-out, .25s);
1209        transition-delay: var(--media-preview-transition-delay-out, 0s);
1210        visibility: hidden;
1211        opacity: 0;
1212      }
1213
1214      :host(:is([${a_.MEDIA_PREVIEW_IMAGE}], [${a_.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
1215        transition-duration: var(--media-preview-transition-duration-in, .5s);
1216        transition-delay: var(--media-preview-transition-delay-in, .25s);
1217        visibility: visible;
1218        opacity: 1;
1219      }
1220
1221      @media (hover: hover) {
1222        :host(:is([${a_.MEDIA_PREVIEW_IMAGE}], [${a_.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
1223          transition-duration: var(--media-preview-transition-duration-in, .5s);
1224          transition-delay: var(--media-preview-transition-delay-in, .25s);
1225          visibility: visible;
1226          opacity: 1;
1227        }
1228      }
1229
1230      media-preview-thumbnail,
1231      ::slotted(media-preview-thumbnail) {
1232        visibility: hidden;
1233        
1234        transition: visibility 0s .25s;
1235        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1236        background: var(--media-preview-thumbnail-background, var(--_preview-background));
1237        box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
1238        max-width: var(--media-preview-thumbnail-max-width, 180px);
1239        max-height: var(--media-preview-thumbnail-max-height, 160px);
1240        min-width: var(--media-preview-thumbnail-min-width, 120px);
1241        min-height: var(--media-preview-thumbnail-min-height, 80px);
1242        border: var(--media-preview-thumbnail-border);
1243        border-radius: var(--media-preview-thumbnail-border-radius,
1244          var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
1245      }
1246
1247      :host([${a_.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
1248      :host([${a_.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
1249        transition-delay: var(--media-preview-transition-delay-in, .25s);
1250        visibility: visible;
1251      }
1252
1253      @media (hover: hover) {
1254        :host([${a_.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,
1255        :host([${a_.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
1256          transition-delay: var(--media-preview-transition-delay-in, .25s);
1257          visibility: visible;
1258        }
1259
1260        :host([${a_.MEDIA_PREVIEW_TIME}]:hover) {
1261          --media-time-range-hover-display: block;
1262        }
1263      }
1264
1265      media-preview-chapter-display,
1266      ::slotted(media-preview-chapter-display) {
1267        font-size: var(--media-font-size, 13px);
1268        line-height: 17px;
1269        min-width: 0;
1270        visibility: hidden;
1271        
1272        transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;
1273        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1274        background: var(--media-preview-chapter-background, var(--_preview-background));
1275        border-radius: var(--media-preview-chapter-border-radius,
1276          var(--media-preview-border-radius) var(--media-preview-border-radius)
1277          var(--media-preview-border-radius) var(--media-preview-border-radius));
1278        padding: var(--media-preview-chapter-padding, 3.5px 9px);
1279        margin: var(--media-preview-chapter-margin, 0 0 5px);
1280        text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1281      }
1282
1283      :host([${a_.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,
1284      :host([${a_.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {
1285        transition-delay: var(--media-preview-transition-delay-in, .25s);
1286        border-radius: var(--media-preview-chapter-border-radius, 0);
1287        padding: var(--media-preview-chapter-padding, 3.5px 9px 0);
1288        margin: var(--media-preview-chapter-margin, 0);
1289        min-width: 100%;
1290      }
1291
1292      media-preview-chapter-display[${a_.MEDIA_PREVIEW_CHAPTER}],
1293      ::slotted(media-preview-chapter-display[${a_.MEDIA_PREVIEW_CHAPTER}]) {
1294        visibility: visible;
1295      }
1296
1297      media-preview-chapter-display:not([aria-valuetext]),
1298      ::slotted(media-preview-chapter-display:not([aria-valuetext])) {
1299        display: none;
1300      }
1301
1302      media-preview-time-display,
1303      ::slotted(media-preview-time-display),
1304      media-time-display,
1305      ::slotted(media-time-display) {
1306        font-size: var(--media-font-size, 13px);
1307        line-height: 17px;
1308        min-width: 0;
1309        
1310        transition: min-width 0s, border-radius 0s;
1311        transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1312        background: var(--media-preview-time-background, var(--_preview-background));
1313        border-radius: var(--media-preview-time-border-radius,
1314          var(--media-preview-border-radius) var(--media-preview-border-radius)
1315          var(--media-preview-border-radius) var(--media-preview-border-radius));
1316        padding: var(--media-preview-time-padding, 3.5px 9px);
1317        margin: var(--media-preview-time-margin, 0);
1318        text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1319        transform: translateX(min(
1320          max(calc(50% - var(--_box-width) / 2),
1321          calc(var(--_box-shift, 0))),
1322          calc(var(--_box-width) / 2 - 50%)
1323        ));
1324      }
1325
1326      :host([${a_.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
1327      :host([${a_.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
1328        transition-delay: var(--media-preview-transition-delay-in, .25s);
1329        border-radius: var(--media-preview-time-border-radius,
1330          0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
1331        min-width: 100%;
1332      }
1333
1334      :host([${a_.MEDIA_PREVIEW_TIME}]:hover) {
1335        --media-time-range-hover-display: block;
1336      }
1337
1338      [part~="arrow"],
1339      ::slotted([part~="arrow"]) {
1340        display: var(--media-box-arrow-display, inline-block);
1341        transform: translateX(min(
1342          max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),
1343          calc(var(--_box-shift, 0))),
1344          calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))
1345        ));
1346        
1347        border-color: transparent;
1348        border-top-color: var(--media-box-arrow-background, var(--_control-background));
1349        border-width: var(--media-box-arrow-border-width,
1350          var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);
1351        border-style: solid;
1352        justify-content: center;
1353        height: 0;
1354      }
1355    </style>
1356    <div id="preview-rail">
1357      <slot name="preview" part="box preview-box">
1358        <media-preview-thumbnail>
1359          <template shadowrootmode="${oA.shadowRootOptions.mode}">
1360            ${oA.getTemplateHTML({})}
1361          </template>
1362        </media-preview-thumbnail>
1363        <media-preview-chapter-display></media-preview-chapter-display>
1364        <media-preview-time-display></media-preview-time-display>
1365        <slot name="preview-arrow"><div part="arrow"></div></slot>
1366      </slot>
1367    </div>
1368    <div id="current-rail">
1369      <slot name="current" part="box current-box">
1370        
1371      </slot>
1372    </div>
1373  `},a5.customElements.get("media-time-range")||a5.customElements.define("media-time-range",oK);var oj=class extends nA{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_VOLUME,a_.MEDIA_MUTED,a_.MEDIA_VOLUME_UNAVAILABLE]}constructor(){super(),this.range.addEventListener("input",()=>{let e=this.range.value,t=new a5.CustomEvent(ay.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)})}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",aj("volume"))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===a_.MEDIA_VOLUME||e===a_.MEDIA_MUTED){let e;this.range.valueAsNumber=this.mediaMuted?0:this.mediaVolume,this.range.setAttribute("aria-valuetext",(e=this.range.valueAsNumber,`${Math.round(100*e)}%`)),this.updateBar()}}
1373get mediaVolume(){return rc(this,a_.MEDIA_VOLUME,1)}set mediaVolume(e){rm(this,a_.MEDIA_VOLUME,e)}get mediaMuted(){return rp(this,a_.MEDIA_MUTED)}set mediaMuted(e){rv(this,a_.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return rb(this,a_.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){rE(this,a_.MEDIA_VOLUME_UNAVAILABLE,e)}};a5.customElements.get("media-volume-range")||a5.customElements.define("media-volume-range",oj);var oY=class extends s7{constructor(){super(...arguments),this.container=null}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_LOOP]}connectedCallback(){var e;super.connectedCallback(),this.container=(null==(e=this.shadowRoot)?void 0:e.querySelector("#icon"))||null,this.container&&(this.container.textContent=aj("Loop"))}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_LOOP&&this.container&&this.setAttribute("aria-checked",this.mediaLoop?"true":"false")}get mediaLoop(){return rp(this,a_.MEDIA_LOOP)}set mediaLoop(e){rv(this,a_.MEDIA_LOOP,e)}handleClick(){let e=!this.mediaLoop,t=new a5.CustomEvent(ay.MEDIA_LOOP_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(t)}};oY.getSlotTemplateHTML=function(e){return`
1374      <style>
1375        :host {
1376          min-width: 4ch;
1377          padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1378          width: 100%;
1379          display: grid;
1380          grid-template-columns: 1fr auto;
1381          gap: 1rem;
1382          font-weight: var(--media-button-font-weight, normal);
1383        }
1384
1385        #checked-indicator {
1386          display: none;
1387        }
1388
1389        :host([${a_.MEDIA_LOOP}]) #checked-indicator {
1390          display: block;
1391        }
1392      </style>
1393      
1394      <span id="icon">
1395     </span>
1396
1397      <div id="checked-indicator">
1398        <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
1399          <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
1400        </svg>
1401      </div>
1402    `},oY.getTooltipContentHTML=function(){return aj("Loop")},a5.customElements.get("media-loop-button")||a5.customElements.define("media-loop-button",oY);var oz=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},oX=(e,t,i)=>(oz(e,t,"read from private field"),i?i.call(e):t.get(e)),oJ=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},o0=(e,t,i,a)=>(oz(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),o1={processCallback(e,t,i){if(i){for(let[e,a]of t)if(e in i){let t=i[e];"boolean"==typeof t&&a instanceof o9&&"boolean"==typeof a.element[a.attributeName]?a.booleanValue=t:"function"==typeof t&&a instanceof o9?a.element[a.attributeName]=t:a.value=t}}}},o2=class extends a5.DocumentFragment{constructor(e,t,i=o1){var a;super(),oJ(this,t_,void 0),oJ(this,tS,void 0),this.append(e.content.cloneNode(!0)),o0(this,t_,o5(this)),o0(this,tS,i),null==(a=i.createCallback)||a.call(i,this,oX(this,t_),t),i.processCallback(this,oX(this,t_),t)}update(e){oX(this,tS).processCallback(this,oX(this,t_),e)}};t_=new WeakMap,tS=new WeakMap;var o5=(e,t=[])=>{let i,a;for(let r of e.attributes||[])if(r.value.includes("{{")){let s=new o6;for([i,a]of o4(r.value))if(i){let i=new o9(e,r.name,r.namespaceURI);s.append(i),t.push([a,i])}else s.append(a);r.value=s.toString()}for(let r of e.childNodes)if(1!==r.nodeType||r instanceof HTMLTemplateElement){let s=r.data;if(1===r.nodeType||s.includes("{{")){let n=[];if(s)for([i,a]of o4(s))if(i){let i=new le(e);n.push(i),t.push([a,i])}else n.push(new Text(a));else if(r instanceof HTMLTemplateElement){let i=new lt(e,r);n.push(i),t.push([i.expression,i])}r.replaceWith(...n.flatMap(e=>e.replacementNodes||[e]))}}else o5(r,t);return t},o3={},o4=e=>{let t="",i=0,a=o3[e],r=0,s;if(a)return a;for(a=[];s=e[r];r++)"{"===s&&"{"===e[r+1]&&"\\"!==e[r-1]&&e[r+2]&&1==++i?(t&&a.push([0,t]),t="",r++):"}"!==s||"}"!==e[r+1]||"\\"===e[r-1]||--i?t+=s||"":(a.push([1,t.trim()]),t="",r++);return t&&a.push([0,(i>0?"{{":"")+t]),o3[e]=a},o7=class{get value(){return""}set value(e){}toString(){return this.value}},o8=new WeakMap,o6=class{constructor(){oJ(this,tL,[])}[Symbol.iterator](){return oX(this,tL).values()}get length(){return oX(this,tL).length}item(e){return oX(this,tL)[e]}append(...e){for(let t of e)t instanceof o9&&o8.set(t,this),oX(this,tL).push(t)}toString(){return oX(this,tL).join("")}};tL=new WeakMap;var o9=class extends o7{constructor(e,t,i){super(),oJ(this,tN),oJ(this,tx,""),oJ(this,tC,void 0),oJ(this,tR,void 0),oJ(this,tD,void 0),o0(this,tC,e),o0(this,tR,t),o0(this,tD,i)}get attributeName(){return oX(this,tR)}get attributeNamespace(){return oX(this,tD)}
1402get element(){return oX(this,tC)}get value(){return oX(this,tx)}set value(e){oX(this,tx)!==e&&(o0(this,tx,e),oX(this,tN,tP)&&1!==oX(this,tN,tP).length?oX(this,tC).setAttributeNS(oX(this,tD),oX(this,tR),oX(this,tN,tP).toString()):null==e?oX(this,tC).removeAttributeNS(oX(this,tD),oX(this,tR)):oX(this,tC).setAttributeNS(oX(this,tD),oX(this,tR),e))}get booleanValue(){return oX(this,tC).hasAttributeNS(oX(this,tD),oX(this,tR))}set booleanValue(e){if(oX(this,tN,tP)&&1!==oX(this,tN,tP).length)throw new DOMException("Value is not fully templatized");this.value=e?"":null}};tx=new WeakMap,tC=new WeakMap,tR=new WeakMap,tD=new WeakMap,tN=new WeakSet,tP=function(){return o8.get(this)};var le=class extends o7{constructor(e,t){super(),oJ(this,tU,void 0),oJ(this,tO,void 0),o0(this,tU,e),o0(this,tO,t?[...t]:[new Text])}get replacementNodes(){return oX(this,tO)}get parentNode(){return oX(this,tU)}get nextSibling(){return oX(this,tO)[oX(this,tO).length-1].nextSibling}get previousSibling(){return oX(this,tO)[0].previousSibling}get value(){return oX(this,tO).map(e=>e.textContent).join("")}set value(e){this.replace(e)}replace(...e){let t=e.flat().flatMap(e=>null==e?[new Text]:e.forEach?[...e]:11===e.nodeType?[...e.childNodes]:e.nodeType?[e]:[new Text(e)]);t.length||t.push(new Text),o0(this,tO,function(e,t,i,a=null){let r=0,s,n,o,l=i.length,d=t.length;for(;r<l&&r<d&&t[r]==i[r];)r++;for(;r<l&&r<d&&i[l-1]==t[d-1];)a=i[--d,--l];if(r==d)for(;r<l;)e.insertBefore(i[r++],a);if(r==l)for(;r<d;)e.removeChild(t[r++]);else{for(s=t[r];r<l;)o=i[r++],n=s?s.nextSibling:a,s==o?s=n:r<l&&i[r]==n?(e.replaceChild(o,s),s=n):e.insertBefore(o,s);for(;s!=a;)n=s.nextSibling,e.removeChild(s),s=n}return i}(oX(this,tO)[0].parentNode,oX(this,tO),t,this.nextSibling))}};tU=new WeakMap,tO=new WeakMap;var lt=class extends le{constructor(e,t){const i=t.getAttribute("directive")||t.getAttribute("type");let a=t.getAttribute("expression")||t.getAttribute(i)||"";a.startsWith("{{")&&(a=a.trim().slice(2,-2).trim()),super(e),this.expression=a,this.template=t,this.directive=i}},li={string:e=>String(e)},la=class{constructor(e){this.template=e,this.state=void 0}},lr=new WeakMap,ls=new WeakMap,ln={partial:(e,t)=>{t[e.expression]=new la(e.template)},if:(e,t)=>{var i;if(lh(e.expression,t))if(lr.get(e)!==e.template){lr.set(e,e.template);let i=new o2(e.template,t,ll);e.replace(i),ls.set(e,i)}else null==(i=ls.get(e))||i.update(t);else e.replace(""),lr.delete(e),ls.delete(e)}},lo=Object.keys(ln),ll={processCallback(e,t,i){var a,r;if(i)for(let[e,s]of t){if(s instanceof lt){if(!s.directive){let e=lo.find(e=>s.template.hasAttribute(e));e&&(s.directive=e,s.expression=s.template.getAttribute(e))}null==(a=ln[s.directive])||a.call(ln,s,i);continue}let t=lh(e,i);if(t instanceof la){lr.get(s)!==t.template?(lr.set(s,t.template),s.value=t=new o2(t.template,t.state,ll),ls.set(s,t)):null==(r=ls.get(s))||r.update(t.state);continue}t?(s instanceof o9&&s.attributeName.startsWith("aria-")&&(t=String(t)),s instanceof o9?"boolean"==typeof t?s.booleanValue=t:"function"==typeof t?s.element[s.attributeName]=t:s.value=t:(s.value=t,lr.delete(s),ls.delete(s))):s instanceof o9?s.value=void 0:(s.value=void 0,lr.delete(s),ls.delete(s))}}},ld={"!":e=>!e,"!!":e=>!!e,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>
1402e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,"??":(e,t)=>null!=e?e:t,"|":(e,t)=>{var i;return null==(i=li[t])?void 0:i.call(li,e)}};function lh(e,t={}){var i,a,r,s,n,o,l;let d=(function(e,t){let i,a,r,s=[];for(;e;){for(let s in r=null,i=e.length,t)(a=t[s].exec(e))&&a.index<i&&(r={token:a[0],type:s,matches:a.slice(1)},i=a.index);i&&s.push({token:e.substr(0,i),type:void 0}),r&&s.push(r),e=e.substr(i+(r?r.token.length:0))}return s})(e,{boolean:/true|false/,number:/-?\d+\.?\d*/,string:/(["'])((?:\\.|[^\\])*?)\1/,operator:/[!=><][=!]?|\?\?|\|/,ws:/\s+/,param:/[$a-z_][$\w]*/i}).filter(({type:e})=>"ws"!==e);if(0===d.length||d.some(({type:e})=>!e))return lu(e);if((null==(i=d[0])?void 0:i.token)===">"){let i=t[null==(a=d[1])?void 0:a.token];if(!i)return lu(e);let o={...t};i.state=o;let l=d.slice(2);for(let e=0;e<l.length;e+=3){let i=null==(r=l[e])?void 0:r.token,a=null==(s=l[e+1])?void 0:s.token,d=null==(n=l[e+2])?void 0:n.token;i&&"="===a&&(o[i]=lm(d,t))}return i}if(1===d.length)return lc(d[0])?lm(d[0].token,t):lu(e);if(2===d.length){let i=ld[null==(o=d[0])?void 0:o.token];return i&&lc(d[1])?i(lm(d[1].token,t)):lu(e)}if(3===d.length){let i=null==(l=d[1])?void 0:l.token,a=ld[i];if(!a||!lc(d[0])||!lc(d[2]))return lu(e);let r=lm(d[0].token,t);return a(r,"|"===i?d[2].token:lm(d[2].token,t))}}function lu(e){return console.warn(`Warning: invalid expression \`${e}\``),!1}function lc({type:e}){return["number","boolean","string","param"].includes(e)}function lm(e,t){let i=e[0],a=e.slice(-1);return"true"===e||"false"===e?"true"===e:i===a&&["'",'"'].includes(i)?e.slice(1,-1):aV(e)?parseFloat(e):t[e]}var lp=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},lv=(e,t,i)=>(lp(e,t,"read from private field"),i?i.call(e):t.get(e)),lb=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lE=(e,t,i,a)=>(lp(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lg=(e,t,i)=>(lp(e,t,"access private method"),i),lf={mediatargetlivewindow:"targetlivewindow",mediastreamtype:"streamtype"},lA=a3.createElement("template");lA.innerHTML=`
1403  <style>
1404    :host {
1405      display: inline-block;
1406      line-height: 0;
1407    }
1408
1409    media-controller {
1410      width: 100%;
1411      height: 100%;
1412    }
1413
1414    media-captions-button:not([mediasubtitleslist]),
1415    media-captions-menu:not([mediasubtitleslist]),
1416    media-captions-menu-button:not([mediasubtitleslist]),
1417    media-audio-track-menu[mediaaudiotrackunavailable],
1418    media-audio-track-menu-button[mediaaudiotrackunavailable],
1419    media-rendition-menu[mediarenditionunavailable],
1420    media-rendition-menu-button[mediarenditionunavailable],
1421    media-volume-range[mediavolumeunavailable],
1422    media-airplay-button[mediaairplayunavailable],
1423    media-fullscreen-button[mediafullscreenunavailable],
1424    media-cast-button[mediacastunavailable],
1425    media-pip-button[mediapipunavailable] {
1426      display: none;
1427    }
1428  </style>
1429`;var lk=class extends a5.HTMLElement{constructor(){super(),lb(this,tB),lb(this,tq),lb(this,tW,void 0),lb(this,tH,void 0),lb(this,t$,void 0),this.shadowRoot?this.renderRoot=this.shadowRoot:(this.renderRoot=this.attachShadow({mode:"open"}),this.createRenderer());const e=new MutationObserver(e=>{var t;(!this.mediaController||(null==(t=this.mediaController)?void 0:t.breakpointsComputed))&&e.some(e=>{let t=e.target;return t===this||"media-controller"===t.localName&&!!(lf[e.attributeName]||e.attributeName.startsWith("breakpoint"))})&&this.render()});e.observe(this,{attributes:!0}),e.observe(this.renderRoot,{attributes:!0,subtree:!0}),this.addEventListener(aS.BREAKPOINTS_COMPUTED,this.render),lg(this,tB,tV).call(this,"template")}get mediaController(){return this.renderRoot.querySelector("media-controller")}get template(){var e;return null!=(e=lv(this,tW))?e:this.constructor.template}set template(e){null===e?this.removeAttribute("template"):"string"==typeof e?this.setAttribute("template",e):e instanceof HTMLTemplateElement&&(lE(this,tW,e),lE(this,t$,null),this.createRenderer())}get props(){var e,t,i;let a=[...Array.from(null!=(t=null==(e=this.mediaController)?void 0:e.attributes)?t:[]).filter(({name:e})=>lf[e]||e.startsWith("breakpoint")),...Array.from(this.attributes)],r={};for(let e of a){let t=null!=(i=lf[e.name])?i:e.name.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase()),{value:a}=e;null!=a?(aV(a)&&(a=parseFloat(a)),r[t]=""===a||a):r[t]=!1}return r}attributeChangedCallback(e,t,i){"template"===e&&t!=i&&lg(this,tq,tG).call(this)}connectedCallback(){lg(this,tq,tG).call(this)}createRenderer(){this.template instanceof HTMLTemplateElement&&this.template!==lv(this,tH)&&(lE(this,tH,this.template),this.renderer=new o2(this.template,this.props,this.constructor.processor),this.renderRoot.textContent="",this.renderRoot.append(lA.content.cloneNode(!0),this.renderer))}render(){var e;null==(e=this.renderer)||e.update(this.props)}};async function lw(e){let t=await fetch(e);if(200!==t.status)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);return t.text()}function ly(e){return e.split("-")[0]}tW=new WeakMap,tH=new WeakMap,t$=new WeakMap,tB=new WeakSet,tV=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}},tq=new WeakSet,tG=function(){var e;let t=this.getAttribute("template");if(!t||t===lv(this,t$))return;let i=this.getRootNode(),a=null==(e=null==i?void 0:i.getElementById)?void 0:e.call(i,t);if(a){lE(this,t$,t),lE(this,tW,a),this.createRenderer();return}(function(e){if(!/^(\/|\.\/|https?:\/\/)/.test(e))return!1;let t=/^https?:\/\//.test(e)?void 0:location.origin;try{new URL(e,t)}catch(e){return!1}return!0})(t)&&(lE(this,t$,t),lw(t).then(e=>{let t=a3.createElement("template");t.innerHTML=e,lE(this,tW,t),this.createRenderer()}).catch(console.error))},lk.observedAttributes=["template"],lk.processor=ll,a5.customElements.get("media-theme")||a5.customElements.define("media-theme",lk);
1429var lI=class extends Event{constructor({action:e="auto",relatedTarget:t,...i}){super("invoke",i),this.action=e,this.relatedTarget=t}},lT=class extends Event{constructor({newState:e,oldState:t,...i}){super("toggle",i),this.newState=e,this.oldState=t}},lM=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},l_=(e,t,i)=>(lM(e,t,"read from private field"),i?i.call(e):t.get(e)),lS=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lL=(e,t,i,a)=>(lM(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lx=(e,t,i)=>(lM(e,t,"access private method"),i);function lC({type:e,text:t,value:i,checked:a}){let r=a3.createElement("media-chrome-menu-item");r.type=null!=e?e:"",r.part.add("menu-item"),e&&r.part.add(e),r.value=i,r.checked=a;let s=a3.createElement("span");return s.textContent=t,r.append(s),r}function lR(e,t){let i=e.querySelector(`:scope > [slot="${t}"]`);if((null==i?void 0:i.nodeName)=="SLOT"&&(i=i.assignedElements({flatten:!0})[0]),i)return i.cloneNode(!0);let a=e.shadowRoot.querySelector(`[name="${t}"] > svg`);return a?a.cloneNode(!0):""}var lD="style",lN="hidden",lP="disabled",lU=class extends a5.HTMLElement{constructor(){if(super(),lS(this,tX),lS(this,t0),lS(this,t5),lS(this,t4),lS(this,t8),lS(this,t9),lS(this,ia),lS(this,is),lS(this,il),lS(this,ih),lS(this,ic),lS(this,ip),lS(this,ib),lS(this,ig),lS(this,ik),lS(this,iy),lS(this,iT),lS(this,i_),lS(this,tF,null),lS(this,tZ,null),lS(this,tQ,null),lS(this,tK,new Set),lS(this,tj,void 0),lS(this,tY,!1),lS(this,tz,null),lS(this,t2,()=>{let e=l_(this,tK),t=new Set(this.items);for(let i of e)t.has(i)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:i}));for(let i of t)e.has(i)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:i}));lL(this,tK,t)}),lS(this,it,()=>{lx(this,ia,ir).call(this),lx(this,is,io).call(this,!1)}),lS(this,ii,()=>{lx(this,ia,ir).call(this)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.shadowRoot.addEventListener("slotchange",this),lL(this,tj,new MutationObserver(l_(this,t2))),l_(this,tj).observe(this.defaultSlot,{childList:!0})}static get observedAttributes(){return[lP,lN,lD,"anchor",aI.MEDIA_CONTROLLER]}static formatMenuItemText(e,t){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":lx(this,tX,tJ).call(this,e);break;case"invoke":lx(this,t4,t7).call(this,e);break;case"click":lx(this,il,id).call(this,e);break;case"toggle":lx(this,ic,im).call(this,e);break;case"focusout":lx(this,ib,iE).call(this,e);break;case"keydown":lx(this,ig,iA).call(this,e)}}connectedCallback(){var e,t;lL(this,tz,ru(this.shadowRoot,":host")),lx(this,t5,t3).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),lL(this,tF,ri(this)),null==(t=null==(e=l_(this,tF))?void 0:e.associateElement)||t.call(e,this),this.hidden||(a6(lW(this),l_(this,it)),a6(this,l_(this,ii))),lx(this,t0,t1).call(this)}disconnectedCallback(){var e,t;a9(lW(this),l_(this,it)),a9(this,l_(this,ii)),this.disable(),null==(t=null==(e=l_(this,tF))?void 0:e.unassociateElement)||t.call(e,this),lL(this,tF,null)}attributeChangedCallback(e,t,i){var a,r,s,n;e===lN&&i!==t?(l_(this,tY)||lL(this,tY,!0),this.hidden?lx(this,t9,ie).call(this):lx(this,t8,t6).call(this),this.dispatchEvent(new lT({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===aI.MEDIA_CONTROLLER?(t&&(null==(r=null==(a=l_(this,tF))?void 0:a.unassociateElement)||r.call(a,this),lL(this,tF,null)),i&&this.isConnected&&(lL(this,tF,ri(this)),null==(n=null==(s=l_(this,tF))?void 0:s.associateElement)||n.call(s,this))):e===lP&&i!==t?null==i?this.enable():this.disable():e===lD&&i!==t&&lx(this,t5,t3).call(this)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}get anchor(){return this.getAttribute("anchor")}
1429set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?null==(e=rl(this))?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(lO)}get radioGroupItems(){return this.items.filter(e=>"menuitemradio"===e.role)}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,t;return null!=(t=null==(e=this.checkedItems[0])?void 0:e.value)?t:""}set value(e){let t=this.items.find(t=>t.value===e);t&&lx(this,i_,iS).call(this,t)}focus(){if(lL(this,tZ,ro()),this.items.length){lx(this,iT,iM).call(this,this.items[0]),this.items[0].focus();return}let e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');null==e||e.focus()}handleSelect(e){var t;let i=lx(this,ik,iw).call(this,e);i&&(lx(this,i_,iS).call(this,i,"checkbox"===i.type),l_(this,tQ)&&!this.hidden&&(null==(t=l_(this,tZ))||t.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var t,i;let{key:a}=e,r=this.items,s=null!=(i=null!=(t=lx(this,ik,iw).call(this,e))?t:lx(this,iy,iI).call(this))?i:r[0],n=Math.max(0,r.indexOf(s));"ArrowDown"===a?n++:"ArrowUp"===a?n--:"Home"===e.key?n=0:"End"===e.key&&(n=r.length-1),n<0&&(n=r.length-1),n>r.length-1&&(n=0),lx(this,iT,iM).call(this,r[n]),r[n].focus()}};function lO(e){return["menuitem","menuitemradio","menuitemcheckbox"].includes(null==e?void 0:e.role)}function lW(e){var t;return null!=(t=e.getAttribute("bounds")?rn(e,`#${e.getAttribute("bounds")}`):rt(e)||e.parentElement)?t:e}tF=new WeakMap,tZ=new WeakMap,tQ=new WeakMap,tK=new WeakMap,tj=new WeakMap,tY=new WeakMap,tz=new WeakMap,tX=new WeakSet,tJ=function(e){let t=e.target;for(let e of t.assignedNodes({flatten:!0}))3===e.nodeType&&""===e.textContent.trim()&&e.remove();["header","title"].includes(t.name)&&lx(this,t0,t1).call(this),t.name||l_(this,t2).call(this)},t0=new WeakSet,t1=function(){let e=this.shadowRoot.querySelector('slot[name="header"]');e.hidden=0===this.shadowRoot.querySelector('slot[name="title"]').assignedNodes().length&&0===e.assignedNodes().length},t2=new WeakMap,t5=new WeakSet,t3=function(){var e;let t=this.shadowRoot.querySelector("#layout-row"),i=null==(e=getComputedStyle(this).getPropertyValue("--media-menu-layout"))?void 0:e.trim();t.setAttribute("media","row"===i?"":"width:0")},t4=new WeakSet,t7=function(e){lL(this,tQ,e.relatedTarget),rs(this,e.relatedTarget)||(this.hidden=!this.hidden)},t8=new WeakSet,t6=function(){var e;null==(e=l_(this,tQ))||e.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),a6(lW(this),l_(this,it)),a6(this,l_(this,ii))},t9=new WeakSet,ie=function(){var e;null==(e=l_(this,tQ))||e.setAttribute("aria-expanded","false"),a9(lW(this),l_(this,it)),a9(this,l_(this,ii))},it=new WeakMap,ii=new WeakMap,ia=new WeakSet,ir=function(e){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;let{x:t,y:i}=function({anchor:e,floating:t,placement:i}){let{x:a,y:r}=function({anchor:e,floating:t},i){let a,r="x"==(["top","bottom"].includes(ly(i))?"y":"x")?"y":"x",s="y"===r?"height":"width",n=ly(i),o=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,d=e[s]/2-t[s]/2;switch(n){case"top":a={x:o,y:e.y-t.height};break;case"bottom":a={x:o,y:e.y+e.height};break;case"right":a={x:e.x+e.width,y:l};break;case"left":a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}switch(i.split("-")[1]){case"start":a[r]-=d;break;case"end":a[r]+=d}return a}(function({anchor:e,floating:t}){var i,a,r;let s,n;return{anchor:(i=e,a=t.offsetParent,s=i.getBoundingClientRect(),n=null!=(r=null==a?void 0:a.getBoundingClientRect())?r:{x:0,y:0},{x:s.x-n.x,y:s.y-n.y,width:s.width,height:s.height}),floating:{x:0,y:0,width:t.offsetWidth,height:t.offsetHeight}}}({anchor:e,floating:t}),i);return{x:a,y:r}}({anchor:this.anchorElement,floating:this,placement:"top-start"});null!=e||(e=this.offsetWidth);let a=lW(this).getBoundingClientRect(),r=a.width-t-e,s=a.height-i-this.offsetHeight,{style:n}=l_(this,tz);n.setProperty("position","absolute"),n.setProperty("right",`${Math.max(0,r)}px`),n.setProperty("--_menu-bottom",`${s}px`);let o=getComputedStyle(this),l=n.getPropertyValue("--_menu-bottom")===o.bottom?s:parseFloat(o.bottom),d=a.height-l-parseFloat(o.marginBottom);this.style.setProperty("--_menu-max-height",`${d}px`)},is=new WeakSet,io=function(e){let t=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),i=null==t?void 0:t.querySelector('[role="menu"]'),{style:a}=l_(this,tz);if(e||a.setProperty("--media-menu-transition-in","none"),i){let e=i.offsetHeight,a=Math.max(i.offsetWidth,t.offsetWidth);this.style.setProperty("min-width",`${a}px`),this.style.setProperty("min-height",`${e}px`),lx(this,ia,ir).call(this,a)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),lx(this,ia,ir).call(this);a.removeProperty("--media-menu-transition-in")},il=new WeakSet,id=function(e){var t;if(e.stopPropagation(),e.composedPath().includes(l_(this,ih,iu))){null==(t=l_(this,tZ))||t.focu
1429s(),this.hidden=!0;return}let i=lx(this,ik,iw).call(this,e);!i||i.hasAttribute("disabled")||(lx(this,iT,iM).call(this,i),this.handleSelect(e))},ih=new WeakSet,iu=function(){var e;return null==(e=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))?void 0:e.find(e=>e.matches('button[part~="back"]'))},ic=new WeakSet,im=function(e){if(e.target===this)return;lx(this,ip,iv).call(this);let t=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(let i of t)i.invokeTargetElement!=e.target&&("open"!=e.newState||"true"!=i.getAttribute("aria-expanded")||i.invokeTargetElement.hidden||i.invokeTargetElement.dispatchEvent(new lI({relatedTarget:i})));for(let e of t)e.setAttribute("aria-expanded",`${!e.submenuElement.hidden}`);lx(this,is,io).call(this,!0)},ip=new WeakSet,iv=function(){let e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)},ib=new WeakSet,iE=function(e){var t;rs(this,e.relatedTarget)||(l_(this,tY)&&(null==(t=l_(this,tZ))||t.focus()),l_(this,tQ)&&l_(this,tQ)!==e.relatedTarget&&!this.hidden&&(this.hidden=!0))},ig=new WeakSet,iA=function(e){var t,i,a,r,s;let{key:n,ctrlKey:o,altKey:l,metaKey:d}=e;if(!o&&!l&&!d&&this.keysUsed.includes(n))if(e.preventDefault(),e.stopPropagation(),"Tab"===n){if(l_(this,tY)){this.hidden=!0;return}e.shiftKey?null==(i=null==(t=this.previousElementSibling)?void 0:t.focus)||i.call(t):null==(r=null==(a=this.nextElementSibling)?void 0:a.focus)||r.call(a),this.blur()}else"Escape"===n?(null==(s=l_(this,tZ))||s.focus(),l_(this,tY)&&(this.hidden=!0)):"Enter"===n||" "===n?this.handleSelect(e):this.handleMove(e)},ik=new WeakSet,iw=function(e){return e.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))},iy=new WeakSet,iI=function(){return this.items.find(e=>0===e.tabIndex)},iT=new WeakSet,iM=function(e){for(let t of this.items)t.tabIndex=t===e?0:-1},i_=new WeakSet,iS=function(e,t){let i=[...this.checkedItems];"radio"===e.type&&this.radioGroupItems.forEach(e=>e.checked=!1),t?e.checked=!e.checked:e.checked=!0,this.checkedItems.some((e,t)=>e!=i[t])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},lU.shadowRootOptions={mode:"open"},lU.getTemplateHTML=function(e){return`
1430    <style>
1431      :host {
1432        font: var(--media-font,
1433          var(--media-font-weight, normal)
1434          var(--media-font-size, 14px) /
1435          var(--media-text-content-height, var(--media-control-height, 24px))
1436          var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1437        color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1438        --_menu-bg: rgb(20 20 30 / .8);
1439        background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, var(--_menu-bg))));
1440        border-radius: var(--media-menu-border-radius);
1441        border: var(--media-menu-border, none);
1442        display: var(--media-menu-display, inline-flex) !important;
1443        
1444        transition: var(--media-menu-transition-in,
1445          visibility 0s,
1446          opacity .2s ease-out,
1447          transform .15s ease-out,
1448          left .2s ease-in-out,
1449          min-width .2s ease-in-out,
1450          min-height .2s ease-in-out
1451        ) !important;
1452        
1453        visibility: var(--media-menu-visibility, visible);
1454        opacity: var(--media-menu-opacity, 1);
1455        max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
1456        transform: var(--media-menu-transform-in, translateY(0) scale(1));
1457        flex-direction: column;
1458        
1459        min-height: 0;
1460        position: relative;
1461        bottom: var(--_menu-bottom);
1462        box-sizing: border-box;
1463      } 
1464
1465      @-moz-document url-prefix() {
1466        :host{
1467          --_menu-bg: rgb(20 20 30);
1468        }
1469      }
1470
1471      :host([hidden]) {
1472        transition: var(--media-menu-transition-out,
1473          visibility .15s ease-in,
1474          opacity .15s ease-in,
1475          transform .15s ease-in
1476        ) !important;
1477        visibility: var(--media-menu-hidden-visibility, hidden);
1478        opacity: var(--media-menu-hidden-opacity, 0);
1479        max-height: var(--media-menu-hidden-max-height,
1480          var(--media-menu-max-height, var(--_menu-max-height, 300px)));
1481        transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
1482        pointer-events: none;
1483      }
1484
1485      :host([slot="submenu"]) {
1486        background: none;
1487        width: 100%;
1488        min-height: 100%;
1489        position: absolute;
1490        bottom: 0;
1491        right: -100%;
1492      }
1493
1494      #container {
1495        display: flex;
1496        flex-direction: column;
1497        min-height: 0;
1498        transition: transform .2s ease-out;
1499        transform: translate(0, 0);
1500      }
1501
1502      #container.has-expanded {
1503        transition: transform .2s ease-in;
1504        transform: translate(-100%, 0);
1505      }
1506
1507      button {
1508        background: none;
1509        color: inherit;
1510        border: none;
1511        padding: 0;
1512        font: inherit;
1513        outline: inherit;
1514        display: inline-flex;
1515        align-items: center;
1516      }
1517
1518      slot[name="header"][hidden] {
1519        display: none;
1520      }
1521
1522      slot[name="header"] > *,
1523      slot[name="header"]::slotted(*) {
1524        padding: .4em .7em;
1525        border-bottom: 1px solid rgb(255 255 255 / .25);
1526        cursor: var(--media-cursor, default);
1527      }
1528
1529      slot[name="header"] > button[part~="back"],
1530      slot[name="header"]::slotted(button[part~="back"]) {
1531        cursor: var(--media-cursor, pointer);
1532      }
1533
1534      svg[part~="back"] {
1535        height: var(--media-menu-icon-height, var(--media-control-height, 24px));
1536        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1537        display: block;
1538        margin-right: .5ch;
1539      }
1540
1541      slot:not([name]) {
1542        gap: var(--media-menu-gap);
1543        flex-direction: var(--media-menu-flex-direction, column);
1544        overflow: var(--media-menu-overflow, hidden auto);
1545        display: flex;
1546        min-height: 0;
1547      }
1548
1549      :host([role="menu"]) slot:not([name]) {
1550        padding-block: .4em;
1551      }
1552
1553      slot:not([name])::slotted([role="menu"]) {
1554        background: none;
1555      }
1556
1557      media-chrome-menu-item > span {
1558        margin-right: .5ch;
1559        max-width: var(--media-menu-item-max-width);
1560        text-overflow: ellipsis;
1561        overflow: hidden;
1562      }
1563    </style>
1564    <style id="layout-row" media="width:0">
1565
1566      slot[name="header"] > *,
1567      slot[name="header"]::slotted(*) {
1568        padding: .4em .5em;
1569      }
1570
1571      slot:not([name]) {
1572        gap: var(--media-menu-gap, .25em);
1573        flex-direction: var(--media-menu-flex-direction, row);
1574        padding-inline: .5em;
1575      }
1576
1577      media-chrome-menu-item {
1578        padding: .3em .5em;
1579      }
1580
1581      media-chrome-menu-item[aria-checked="true"] {
1582        background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
1583      }
1584
1585      
1586      media-chrome-menu-item::part(checked-indicator) {
1587        display: var(--media-menu-item-checked-indicator-display, none);
1588      }
1589    </style>
1590    <div id="container" part="container">
1591      <slot name="header" hidden>
1592        <button part="back button" aria-label="Back to previous menu">
1593          <slot name="back-icon">
1594            <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
1595              <path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>
1596            </svg>
1597          </slot>
1598          <slot name="title"></slot>
1599        </button>
1600      </slot>
1601      <slot></slot>
1602    </div>
1603    <slot name="checked-indicator" hidden></slot>
1604  `},a5.customElements.get("media-chrome-menu")||a5.customElements.define("media-chrome-menu",lU);var lH=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},l$=(e,t,i)=>(lH(e,t,"read from private field"),i?i.call(e):t.get(e)),lB=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},lV=(e,t,i,a)=>(lH(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),lq=(e,t,i)=>(lH(e,t,"access private method"),i),lG="type",lF="value",lZ="checked",lQ="disabled",lK=class extends a5.HTMLElement{constructor(){if(super(),lB(this,iC),lB(this,iD),lB(this,iP),lB(this,iW),lB(this,i$),lB(this,iV),lB(this,iL,!1),lB(this,ix,void 0),lB(this,iO,()=>{var e,t;this.submenuElement.items&&this.setAttribute("submenusize",`${this.submenuElement.items.length}`);let i=this.shadowRoot.querySelector('slot[name="description"]'),a=null==(e=this.submenuElement.checkedItems)?void 0:e[0],r=null!=(t=null==a?void 0:a.dataset.description)?t:null==a?void 0:a.text,s=a3.createElement("span");s.textContent=null!=r?r:"",i.replaceChildren(s)}),!this.shadowRoot){this.attachShadow(this.constructor.shadowRootOptions);const e=re(this.attributes);this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(e)}this.shadowRoot.addEventListener("slotchange",this)}static get observedAttributes(){return[lG,lQ,lZ,lF]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),lj(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","fal
1604se"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":lq(this,iC,iR).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":lq(this,i$,iB).call(this,e);break;case"keyup":lq(this,iW,iH).call(this,e)}}attributeChangedCallback(e,t,i){e===lZ&&lj(this)&&!l$(this,iL)?this.setAttribute("aria-checked",null!=i?"true":"false"):e===lG&&i!==t?this.role="menuitem"+i:e===lQ&&i!==t&&(null==i?this.enable():this.disable())}connectedCallback(){this.hasAttribute(lQ)||this.enable(),this.role="menuitem"+this.type,lV(this,ix,function e(t,i){if(!t)return null;let{host:a}=t.getRootNode();return!i&&a?e(t,a):(null==i?void 0:i.items)?i:e(i,null==i?void 0:i.parentNode)}(this,this.parentNode)),lq(this,iV,iq).call(this),this.submenuElement&&lq(this,iD,iN).call(this)}disconnectedCallback(){this.disable(),lq(this,iV,iq).call(this),lV(this,ix,null)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=rl(this))?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return null!=(e=this.getAttribute(lG))?e:""}set type(e){this.setAttribute(lG,`${e}`)}get value(){var e;return null!=(e=this.getAttribute(lF))?e:this.text}set value(e){this.setAttribute(lF,e)}get text(){var e;return(null!=(e=this.textContent)?e:"").trim()}get checked(){if(lj(this))return"true"===this.getAttribute("aria-checked")}set checked(e){lj(this)&&(lV(this,iL,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){!lj(this)&&this.invokeTargetElement&&rs(this,e.target)&&this.invokeTargetElement.dispatchEvent(new lI({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}};function lj(e){return"radio"===e.type||"checkbox"===e.type}iL=new WeakMap,ix=new WeakMap,iC=new WeakSet,iR=function(e){let t=e.target;if(!(null==t?void 0:t.name))for(let e of t.assignedNodes({flatten:!0}))e instanceof Text&&""===e.textContent.trim()&&e.remove();"submenu"===t.name&&(this.submenuElement?lq(this,iD,iN).call(this):lq(this,iP,iU).call(this))},iD=new WeakSet,iN=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",l$(this,iO)),this.submenuElement.addEventListener("addmenuitem",l$(this,iO)),this.submenuElement.addEventListener("removemenuitem",l$(this,iO)),l$(this,iO).call(this)},iP=new WeakSet,iU=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",l$(this,iO)),this.submenuElement.removeEventListener("addmenuitem",l$(this,iO)),this.submenuElement.removeEventListener("removemenuitem",l$(this,iO)),l$(this,iO).call(this)},iO=new WeakMap,iW=new WeakSet,iH=function(e){let{key:t}=e;this.keysUsed.includes(t)?this.handleClick(e):this.removeEventListener("keyup",lq(this,iW,iH))},i$=new WeakSet,iB=function(e){let{metaKey:t,altKey:i,key:a}=e;t||i||!this.keysUsed.includes(a)?this.removeEventListener("keyup",lq(this,iW,iH)):this.addEventListener("keyup",lq(this,iW,iH),{once:!0})},iV=new WeakSet,iq=function(){var e;let t=null==(e=l$(this,ix))?void 0:e.radioGroupItems;if(!t)return;let i=t.filter(e=>"true"===e.getAttribute("aria-checked")).pop();for(let e of(i||(i=t[0]),t))e.setAttribute("aria-checked","false");null==i||i.setAttribute("aria-checked","true")},lK.shadowRootOptions={mode:"open"},lK.getTemplateHTML=function(e){return`
1605    <style>
1606      :host {
1607        transition: var(--media-menu-item-transition,
1608          background .15s linear,
1609          opacity .2s ease-in-out
1610        );
1611        outline: var(--media-menu-item-outline, 0);
1612        outline-offset: var(--media-menu-item-outline-offset, -1px);
1613        cursor: var(--media-cursor, pointer);
1614        display: flex;
1615        align-items: center;
1616        align-self: stretch;
1617        justify-self: stretch;
1618        white-space: nowrap;
1619        white-space-collapse: collapse;
1620        text-wrap: nowrap;
1621        padding: .4em .8em .4em 1em;
1622      }
1623
1624      :host(:focus-visible) {
1625        box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
1626        outline: var(--media-menu-item-hover-outline, 0);
1627        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
1628      }
1629
1630      :host(:hover) {
1631        cursor: var(--media-cursor, pointer);
1632        background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
1633        outline: var(--media-menu-item-hover-outline);
1634        outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
1635      }
1636
1637      :host([aria-checked="true"]) {
1638        background: var(--media-menu-item-checked-background);
1639      }
1640
1641      :host([hidden]) {
1642        display: none;
1643      }
1644
1645      :host([disabled]) {
1646        pointer-events: none;
1647        color: rgba(255, 255, 255, .3);
1648      }
1649
1650      slot:not([name]) {
1651        width: 100%;
1652      }
1653
1654      slot:not([name="submenu"]) {
1655        display: inline-flex;
1656        align-items: center;
1657        transition: inherit;
1658        opacity: var(--media-menu-item-opacity, 1);
1659      }
1660
1661      slot[name="description"] {
1662        justify-content: end;
1663      }
1664
1665      slot[name="description"] > span {
1666        display: inline-block;
1667        margin-inline: 1em .2em;
1668        max-width: var(--media-menu-item-description-max-width, 100px);
1669        text-overflow: ellipsis;
1670        overflow: hidden;
1671        font-size: .8em;
1672        font-weight: 400;
1673        text-align: right;
1674        position: relative;
1675        top: .04em;
1676      }
1677
1678      slot[name="checked-indicator"] {
1679        display: none;
1680      }
1681
1682      :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {
1683        display: var(--media-menu-item-checked-indicator-display, inline-block);
1684      }
1685
1686      
1687      svg, img, ::slotted(svg), ::slotted(img) {
1688        height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));
1689        fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1690        display: block;
1691      }
1692
1693      
1694      [part~="indicator"],
1695      ::slotted([part~="indicator"]) {
1696        fill: var(--media-menu-item-indicator-fill,
1697          var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
1698        height: var(--media-menu-item-indicator-height, 1.25em);
1699        margin-right: .5ch;
1700      }
1701
1702      [part~="checked-indicator"] {
1703        visibility: hidden;
1704      }
1705
1706      :host([aria-checked="true"]) [part~="checked-indicator"] {
1707        visibility: visible;
1708      }
1709    </style>
1710    <slot name="checked-indicator">
1711      <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
1712        <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
1713      </svg>
1714    </slot>
1715    <slot name="prefix"></slot>
1716    <slot></slot>
1717    <slot name="description"></slot>
1718    <slot name="suffix">
1719      ${this.getSuffixSlotInnerHTML(e)}
1720    </slot>
1721    <slot name="submenu"></slot>
1722  `},lK.getSuffixSlotInnerHTML=function(e){return""},a5.customElements.get("media-chrome-menu-item")||a5.customElements.define("media-chrome-menu-item",lK);var lY=class extends lU{get anchorElement(){return"auto"!==this.anchor?super.anchorElement:rt(this).querySelector("media-settings-menu-button")}};lY.getTemplateHTML=function(e){return`
1723    ${lU.getTemplateHTML(e)}
1724    <style>
1725      :host {
1726        --_menu-bg: rgb(20 20 30 / .8);
1727        background: var(--media-settings-menu-background,
1728            var(--media-menu-background,
1729              var(--media-control-background,
1730                var(--media-secondary-color, var(--_menu-bg)))));
1731        min-width: var(--media-settings-menu-min-width, 170px);
1732        border-radius: 2px 2px 0 0;
1733        overflow: hidden;
1734      }
1735
1736      @-moz-document url-prefix() {
1737        :host{
1738          --_menu-bg: rgb(20 20 30);
1739        }
1740      }
1741
1742      :host([role="menu"]) {
1743        
1744        justify-content: end;
1745      }
1746
1747      slot:not([name]) {
1748        justify-content: var(--media-settings-menu-justify-content);
1749        flex-direction: var(--media-settings-menu-flex-direction, column);
1750        overflow: visible;
1751      }
1752
1753      #container.has-expanded {
1754        --media-settings-menu-item-opacity: 0;
1755      }
1756    </style>
1757  `},a5.customElements.get("media-settings-menu")||a5.customElements.define("media-settings-menu",lY);var lz=class extends lK{};lz.shadowRootOptions={mode:"open"},lz.getTemplateHTML=function(e){return`
1758    ${lK.getTemplateHTML.call(this,e)}
1759    <style>
1760      slot:not([name="submenu"]) {
1761        opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));
1762      }
1763
1764      :host([aria-expanded="true"]:hover) {
1765        background: transparent;
1766      }
1767    </style>
1768  `},lz.getSuffixSlotInnerHTML=function(e){return`
1769    <svg aria-hidden="true" viewBox="0 0 20 24">
1770      <path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/>
1771    </svg>
1772  `},a5.customElements.get("media-settings-menu-item")||a5.customElements.define("media-settings-menu-item",lz);var lX=class extends s7{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?null==(e=rl(this))?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){var e;null==(e=this.invokeTargetElement)||e.dispatchEvent(new lI({relatedTarget:this}))}};a5.customElements.get("media-chrome-menu-button")||a5.customElements.define("media-chrome-menu-button",lX);var lJ=class extends lX{static get observedAttributes(){return[...super.observedAttributes,"target"]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",aj("settings"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:rt(this).querySelector("media-settings-menu")}};lJ.getSlotTemplateHTML=function(){return`
1773    <style>
1774      :host([aria-expanded="true"]) slot[name=tooltip] {
1775        display: none;
1776      }
1777    </style>
1778    <slot name="icon">
1779      <svg aria-hidden="true" viewBox="0 0 24 24">
1780        <path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>
1781      </svg>
1782    </slot>
1783  `},lJ.getTooltipContentHTML=function(){return aj("Settings")},a5.customElements.get("media-settings-menu-button")||a5.customElements.define("media-settings-menu-button",lJ);var l0=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},l1=(e,t,i)=>(l0(e,t,"read from private field"),i?i.call(e):t.get(e)),l2=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},l5=(e,t,i,a)=>(l0(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),l3=(e,t,i)=>(l0(e,t,"access private method"),i),l4=class extends lU{constructor(){super(...arguments),l2(this,iZ),l2(this,iK),l2(this,iG,[]),l2(this,iF,void 0)}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_AUDIO_TRACK_LIST,a_.MEDIA_AUDIO_TRACK_ENABLED,a_.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===a_.MEDIA_AUDIO_TRACK_ENABLED&&t!==i)this.value=i;else if(e===a_.MEDIA_AUDIO_TRACK_LIST&&t!==i){var a;l5(this,iG,null==(a=null!=i?i:"")?void 0:a.split(/\s+/).map(a$)),l3(this,iZ,iQ).call(this)}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",l3(this,iK,ij))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",l3(this,iK,ij))}get anchorElement(){var e;return"auto"!==this.anchor?super.anchorElement:null==(e=rt(this))?void 0:e.querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return l1(this,iG)}set mediaAudioTrackList(e){l5(this,iG,e),l3(this,iZ,iQ).call(this)}get mediaAudioTrackEnabled(){var e;return null!=(e=rb(this,a_.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){rE(this,a_.MEDIA_AUDIO_TRACK_ENABLED,e)}};iG=new WeakMap,iF=new WeakMap,iZ=new WeakSet,iQ=function(){if(l1(this,iF)===JSON.stringify(this.mediaAudioTrackList))return;l5(this,iF,JSON.stringify(this.mediaAudioTrackList));let e=this.mediaAudioTrackList;for(let t of(this.defaultSlot.textContent="",e.sort((e,t)=>
1783e.id.localeCompare(t.id,void 0,{numeric:!0})),e)){let e=lC({type:"radio",text:this.formatMenuItemText(t.label,t),value:`${t.id}`,checked:t.enabled});e.prepend(lR(this,"checked-indicator")),this.defaultSlot.append(e)}},iK=new WeakSet,ij=function(){if(null==this.value)return;let e=new a5.CustomEvent(ay.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},a5.customElements.get("media-audio-track-menu")||a5.customElements.define("media-audio-track-menu",l4);var l7=`<svg aria-hidden="true" viewBox="0 0 24 24">
1784  <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
1785  <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
1786</svg>`,l8=e=>{let t=aj("Audio");e.setAttribute("aria-label",t)},l6=class extends lX{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_AUDIO_TRACK_ENABLED,a_.MEDIA_AUDIO_TRACK_UNAVAILABLE]}connectedCallback(){super.connectedCallback(),l8(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_LANG&&l8(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=rt(this))?void 0:e.querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){var e;return null!=(e=rb(this,a_.MEDIA_AUDIO_TRACK_ENABLED))?e:""}set mediaAudioTrackEnabled(e){rE(this,a_.MEDIA_AUDIO_TRACK_ENABLED,e)}};l6.getSlotTemplateHTML=function(){return`
1787    <style>
1788      :host([aria-expanded="true"]) slot[name=tooltip] {
1789        display: none;
1790      }
1791    </style>
1792    <slot name="icon">${l7}</slot>
1793  `},l6.getTooltipContentHTML=function(){return aj("Audio")},a5.customElements.get("media-audio-track-menu-button")||a5.customElements.define("media-audio-track-menu-button",l6);var l9=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},de=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},dt=(e,t,i)=>(l9(e,t,"access private method"),i),di=`
1794  <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
1795    <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
1796  </svg>`,da=class extends lU{constructor(){super(...arguments),de(this,iz),de(this,iJ),de(this,iY,void 0)}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_SUBTITLES_LIST,a_.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_SUBTITLES_LIST&&t!==i?dt(this,iz,iX).call(this):e===a_.MEDIA_SUBTITLES_SHOWING&&t!==i&&(this.value=i||"",dt(this,iz,iX).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",dt(this,iJ,i0))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",dt(this,iJ,i0))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:rt(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return dr(this,a_.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){ds(this,a_.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return dr(this,a_.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){ds(this,a_.MEDIA_SUBTITLES_SHOWING,e)}};iY=new WeakMap,iz=new WeakSet,iX=function(){var e,t,i,a;let r=(l9(this,t=iY,"read from private field"),t.get(this)!==JSON.stringify(this.mediaSubtitlesList)),s=this.value!==this.getAttribute(a_.MEDIA_SUBTITLES_SHOWING);if(!r&&!s)return;i=iY,a=JSON.stringify(this.mediaSubtitlesList),l9(this,i,"write to private field"),i.set(this,a),this.defaultSlot.textContent="";let n=!this.value,o=lC({type:"radio",text:this.formatMenuItemText(aj("Off")),value:"off",checked:n});for(let t of(o.prepend(lR(this,"checked-indicator")),this.defaultSlot.append(o),this.mediaSubtitlesList)){let i=lC({type:"radio",text:this.formatMenuItemText(t.label,t),value:rZ(t),checked:this.value==rZ(t)});i.prepend(lR(this,"checked-indicator")),"captions"===(null!=(e=t.kind)?e:"subs")&&i.append(lR(this,"captions-indicator")),this.defaultSlot.append(i)}},iJ=new WeakSet,i0=function(){let e=this.mediaSubtitlesShowing,t=this.getAttribute(a_.MEDIA_SUBTITLES_SHOWING),i=this.value!==t;if((null==e?void 0:e.length)&&i&&this.dispatchEvent(new a5.CustomEvent(ay.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:e})),!this.value||!i)return;let a=new a5.CustomEvent(ay.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(a)},da.getTemplateHTML=function(e){return`
1797    ${lU.getTemplateHTML(e)}
1798    <slot name="captions-indicator" hidden>${di}</slot>
1799  `};var dr=(e,t)=>
1799{let i=e.getAttribute(t);return i?rG(i):[]},ds=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let a=rQ(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};a5.customElements.get("media-captions-menu")||a5.customElements.define("media-captions-menu",da);var dn=`<svg aria-hidden="true" viewBox="0 0 26 24">
1800  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
1801</svg>`,dl=`<svg aria-hidden="true" viewBox="0 0 26 24">
1802  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
1803</svg>`,dd=e=>{e.setAttribute("data-captions-enabled",rz(e).toString())},dh=e=>{e.setAttribute("aria-label",aj("closed captions"))},du=class extends lX{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_SUBTITLES_LIST,a_.MEDIA_SUBTITLES_SHOWING,a_.MEDIA_LANG]}connectedCallback(){super.connectedCallback(),dh(this),dd(this)}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_SUBTITLES_SHOWING?dd(this):e===a_.MEDIA_LANG&&dh(this)}get invokeTargetElement(){var e;return void 0!=this.invokeTarget?super.invokeTargetElement:null==(e=rt(this))?void 0:e.querySelector("media-captions-menu")}get mediaSubtitlesList(){return dc(this,a_.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){dm(this,a_.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return dc(this,a_.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){dm(this,a_.MEDIA_SUBTITLES_SHOWING,e)}};du.getSlotTemplateHTML=function(){return`
1804    <style>
1805      :host([data-captions-enabled="true"]) slot[name=off] {
1806        display: none !important;
1807      }
1808
1809      
1810      :host(:not([data-captions-enabled="true"])) slot[name=on] {
1811        display: none !important;
1812      }
1813
1814      :host([aria-expanded="true"]) slot[name=tooltip] {
1815        display: none;
1816      }
1817    </style>
1818
1819    <slot name="icon">
1820      <slot name="on">${dn}</slot>
1821      <slot name="off">${dl}</slot>
1822    </slot>
1823  `},du.getTooltipContentHTML=function(){return aj("Captions")};var dc=(e,t)=>{let i=e.getAttribute(t);return i?rG(i):[]},dm=(e,t,i)=>{if(!(null==i?void 0:i.length))return void e.removeAttribute(t);let a=rQ(i);e.getAttribute(t)!==a&&e.setAttribute(t,a)};a5.customElements.get("media-captions-menu-button")||a5.customElements.define("media-captions-menu-button",du);var dp=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},dv=(e,t,i)=>(dp(e,t,"read from private field"),i?i.call(e):t.get(e)),db=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},dE=(e,t,i)=>(dp(e,t,"access private method"),i),dg="rates",df=class extends lU{constructor(){super(),db(this,i2),db(this,i3),db(this,i1,new rV(this,dg,{defaultValue:oo})),dE(this,i2,i5).call(this)}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PLAYBACK_RATE,dg]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e===a_.MEDIA_PLAYBACK_RATE&&t!=i?(this.value=i,dE(this,i2,i5).call(this)):e===dg&&t!=i&&(dv(this,i1).value=i,dE(this,i2,i5).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",dE(this,i3,i4))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",dE(this,i3,i4))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:rt(this).querySelector("media-playback-rate-menu-button")}get rates(){return dv(this,i1)}set rates(e){e?Array.isArray(e)?dv(this,i1).value=e.join(" "):"str
1823ing"==typeof e&&(dv(this,i1).value=e):dv(this,i1).value="",dE(this,i2,i5).call(this)}get mediaPlaybackRate(){return rc(this,a_.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){rm(this,a_.MEDIA_PLAYBACK_RATE,e)}};i1=new WeakMap,i2=new WeakSet,i5=function(){this.defaultSlot.textContent="";let e=this.mediaPlaybackRate,t=new Set(Array.from(dv(this,i1)).map(e=>Number(e)));for(let i of(e>0&&!t.has(e)&&t.add(e),Array.from(t).sort((e,t)=>e-t))){let t=lC({type:"radio",text:this.formatMenuItemText(`${i}x`,i),value:i.toString(),checked:e===i});t.prepend(lR(this,"checked-indicator")),this.defaultSlot.append(t)}},i3=new WeakSet,i4=function(){if(!this.value)return;let e=new a5.CustomEvent(ay.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},a5.customElements.get("media-playback-rate-menu")||a5.customElements.define("media-playback-rate-menu",df);var dA=class extends lX{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_PLAYBACK_RATE]}constructor(){var e;super(),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${null!=(e=this.mediaPlaybackRate)?e:1}x`}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===a_.MEDIA_PLAYBACK_RATE){let e=i?+i:NaN,t=Number.isNaN(e)?1:e;this.container.innerHTML=`${t}x`,this.setAttribute("aria-label",aj("Playback rate {playbackRate}",{playbackRate:t}))}}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:rt(this).querySelector("media-playback-rate-menu")}get mediaPlaybackRate(){return rc(this,a_.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){rm(this,a_.MEDIA_PLAYBACK_RATE,e)}};dA.getSlotTemplateHTML=function(e){return`
1824    <style>
1825      :host {
1826        min-width: 5ch;
1827        padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1828      }
1829      
1830      :host([aria-expanded="true"]) slot[name=tooltip] {
1831        display: none;
1832      }
1833    </style>
1834    <slot name="icon">${e.mediaplaybackrate||1}x</slot>
1835  `},dA.getTooltipContentHTML=function(){return aj("Playback rate")},a5.customElements.get("media-playback-rate-menu-button")||a5.customElements.define("media-playback-rate-menu-button",dA);var dk=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},dw=(e,t,i)=>(dk(e,t,"read from private field"),i?i.call(e):t.get(e)),dy=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},dI=(e,t,i,a)=>(dk(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),dT=(e,t,i)=>(dk(e,t,"access private method"),i),dM=class extends lU{constructor(){super(...arguments),dy(this,i6),dy(this,ae),dy(this,i7,[]),dy(this,i8,{})}static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_RENDITION_LIST,a_.MEDIA_RENDITION_SELECTED,a_.MEDIA_RENDITION_UNAVAILABLE,a_.MEDIA_HEIGHT]}static formatMenuItemText(e,t){return super.formatMenuItemText(e,t)}static formatRendition(e,{showBitrate:t=!1}={}){let i=`${Math.min(e.width,e.height)}p`;if(t&&e.bitrate){let t=e.bitrate/1e6,a=`${t.toFixed(+(t<1))} Mbps`;return`${i} (${a})`}return this.formatMenuItemText(i,e)}static compareRendition(e,t){var i,a;return t.height===e.height?(null!=(i=t.bitrate)?i:0)-(null!=(a=e.bitrate)?a:0):t.height-e.height}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e===a_.MEDIA_RENDITION_SELECTED&&t!==i)this.value=null!=i?i:"auto",dT(this,i6,i9).call(this);else if(e===a_.MEDIA_RENDITION_LIST&&t!==i)dI(this,i7,null==i?void 0:i.split(/\s+/).map(aW)),dT(this,i6,i9).call(this);else e===a_.MEDIA_HEIGHT&&t!==i&&dT(this,i6,i9).call(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",dT(this,ae,at))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",dT(this,ae,at))}get anchorElement(){return"auto"!==this.anchor?super.anchorElement:rt(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return dw(this,i7)}set mediaRenditionList(e){dI(this,i7,e),dT(this,i6,i9).call(this)}get mediaRenditionSelected(){return rb(this,a_.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){rE(this,a_.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return rc(this,a_.MEDIA_HEIGHT)}set mediaHeight(e){rm(this,a_.MEDIA_HEIGHT,e)}compareRendition(e,t){return this.constructor.compareRendition(e,t)}formatMenuItemText(e,t){return this.constructor.formatMenuItemText(e,t)}formatRendition(e,t){return this.constructor.formatRendition(e,t)}showRenditionBitrate(e){return this.mediaRenditionList.some(t=>t!==e&&t.height===e.height&&t.bitrate!==e.bitrate)}};i7=new WeakMap,i8=new WeakMap,i6=new WeakSet,i9=function(){if(dw(this,i8).mediaRenditionList===JSON.stringify(this.mediaRenditionList)&&dw(this,i8).mediaHeight===this.mediaHeight)return;dw(this,i8).mediaRenditionList=JSON.stringify(this.mediaRenditionList),dw(this,i8).mediaHeight=this.mediaHeight;let e=this.mediaRenditionList.sort(this.compareRendition.bind(this)),t=e.find(e=>e.id===this.mediaRenditionSelected);for(let i of e)i.selected=i===t;this.defaultSlot.textContent="";let i=!this.mediaRenditionSelected;for(let t of e){let e=lC({type:"radio",text:this.formatRendition(t,{showBitrate:this.showRenditionBitrate(t)}
1835),value:`${t.id}`,checked:t.selected&&!i});e.prepend(lR(this,"checked-indicator")),this.defaultSlot.append(e)}let a=t&&this.showRenditionBitrate(t),r=i?t?this.formatMenuItemText(`${aj("Auto")} \u2022 ${this.formatRendition(t,{showBitrate:a})}`,t):this.formatMenuItemText(`${aj("Auto")} (${this.mediaHeight}p)`):this.formatMenuItemText(aj("Auto")),s=lC({type:"radio",text:r,value:"auto",checked:i});s.dataset.description=r,s.prepend(lR(this,"checked-indicator")),this.defaultSlot.append(s)},ae=new WeakSet,at=function(){if(null==this.value)return;let e=new a5.CustomEvent(ay.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(e)},a5.customElements.get("media-rendition-menu")||a5.customElements.define("media-rendition-menu",dM);var d_=`<svg aria-hidden="true" viewBox="0 0 24 24">
1836  <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />
1837</svg>`,dS=class extends lX{static get observedAttributes(){return[...super.observedAttributes,a_.MEDIA_RENDITION_SELECTED,a_.MEDIA_RENDITION_UNAVAILABLE,a_.MEDIA_HEIGHT]}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",aj("quality"))}get invokeTargetElement(){return void 0!=this.invokeTarget?super.invokeTargetElement:rt(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return rb(this,a_.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){rE(this,a_.MEDIA_RENDITION_SELECTED,e)}get mediaHeight(){return rc(this,a_.MEDIA_HEIGHT)}set mediaHeight(e){rm(this,a_.MEDIA_HEIGHT,e)}};dS.getSlotTemplateHTML=function(){return`
1838    <style>
1839      :host([aria-expanded="true"]) slot[name=tooltip] {
1840        display: none;
1841      }
1842    </style>
1843    <slot name="icon">${d_}</slot>
1844  `},dS.getTooltipContentHTML=function(){return aj("Quality")},a5.customElements.get("media-rendition-menu-button")||a5.customElements.define("media-rendition-menu-button",dS);var dL=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)},dx=(e,t,i)=>(dL(e,t,"read from private field"),i?i.call(e):t.get(e)),dC=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},dR=(e,t,i,a)=>(dL(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),dD=(e,t,i)=>(dL(e,t,"access private method"),i),dN=class extends lU{constructor(){super(),dC(this,aa),dC(this,as),dC(this,ao),dC(this,ad),dC(this,ac),dC(this,ai,!1),dC(this,au,e=>{let t=e.target,i=(null==t?void 0:t.nodeName)==="VIDEO",a=dD(this,ad,ah).call(this,t);(i||a)&&(dx(this,ai)?dD(this,as,an).call(this):dD(this,ac,am).call(this,e))}),dC(this,ap,e=>{let t=e.target,i=this.contains(t),a=2===e.button,r=(null==t?void 0:t.nodeName)==="VIDEO",s=dD(this,ad,ah).call(this,t);i||a&&(r||s)||dD(this,as,an).call(this)}),dC(this,av,e=>{"Escape"===e.key&&dD(this,as,an).call(this)}),dC(this,ab,e=>{var t,i;let a=e.target;if(null==(t=a.matches)?void 0:t.call(a,'button[invoke="copy"]')){let e=null==(i=a.closest("media-context-menu-item"))?void 0:i.querySelector('input[slot="copy"]');e&&navigator.clipboard.writeText(e.value)}dD(this,as,an).call(this)}),this.setAttribute("noautohide",""),dD(this,aa,ar).call(this)}connectedCallback(){super.connectedCallback(),rt(this).addEventListener("contextmenu",dx(this,au)),this.addEventListener("click",dx(this,ab))}disconnectedCallback(){super.disconnectedCallback(),rt(this).removeEventListener("contextmenu",dx(this,au)),this.removeEventListener("click",dx(this,ab)),document.removeEventListener("mousedown",dx(this,ap)),document.removeEventListener("keydown",dx(this,av))}};ai=new WeakMap,aa=new WeakSet,ar=function(){this.hidden=!dx(this,ai)},as=new WeakSet,an=function(){dR(this,ai,!1),dD(this,aa,ar).call(this)},ao=new WeakSet,al=function(){document.querySelectorAll("media-context-menu").forEach(e=>{e!==this&&dD(e,as,an).call(e)})},ad=new WeakSet,ah=function(e){return!!e&&(!!e.hasAttribute("slot")&&"media"===e.getAttribute("slot")||!!(e.nodeName.includes("-")&&e.tagName.includes("-"))&&(e.hasAttribute("src")||e.hasAttribute("poster")||e.hasAttribute("preload")||e.hasAttribute("playsinline")))},au=new WeakMap,ac=new WeakSet,am=function(e){e.preventDefault(),dD(this,ao,al).call(this),dR(this,ai,!0),this.style.position="fixed",this.style.left=`${e.clientX}px`,this.style.top=`${e.clientY}px`,dD(this,aa,ar).call(this),document.addEventListener("mousedown",dx(this,ap),{once:!0}),document.addEventListener("keydown",dx(this,av),{once:!0})},ap=new WeakMap,av=new WeakMap,ab=new WeakMap,dN.getTemplateHTML=function(e){return`
1845      ${lU.getTemplateHTML(e)}
1846      <style>
1847        :host {
1848          --_menu-bg: rgb(20 20 30 / .8);
1849          background: var(--media-settings-menu-background,
1850            var(--media-menu-background,
1851              var(--media-control-background,
1852                var(--media-secondary-color, var(--_menu-bg)))));
1853          min-width: var(--media-settings-menu-min-width, 170px);
1854          border-radius: 2px;
1855          overflow: hidden;
1856        }
1857      </style>
1858    `},a5.customElements.get("media-context-menu")||a5.customElements.define("media-context-menu",dN);var dP=class extends lK{};dP.shadowRootOptions={mode:"open"},dP.getTemplateHTML=function(e){return`
1859    ${lK.getTemplateHTML.call(this,e)}
1860    <style>
1861        ::slotted(*) {
1862            color: var(--media-text-color, white);
1863            text-decoration: none;
1864            border: none;
1865            background: none;
1866            cursor: pointer;
1867            padding: 0;
1868            min-height: var(--media-control-height, 24px);
1869        }
1870    </style>
1871  `},a5.customElements.get("media-context-menu-item")||a5.customElements.define("media-context-menu-item",dP);var dU=null==(ag=null==(aE=a5.document)?void 0:aE.createElement)?void 0:ag.call(aE,"template");dU&&(dU.innerHTML=String.raw`
1872    <style>
1873      :host {
1874        --_primary-color: var(--media-primary-color, #fff);
1875        --_secondary-color: var(--media-secondary-color, rgb(0 0 0 / .75));
1876
1877        --media-icon-color: var(--_primary-color);
1878        --media-range-thumb-background: var(--_primary-color);
1879        --media-range-bar-color: var(--_primary-color);
1880        --media-control-background: transparent;
1881        --media-control-hover-background: transparent;
1882        --media-range-track-border-radius: 3px;
1883        --media-time-range-buffered-color: rgba(255, 255, 255, 0.4);
1884        --media-range-track-background: rgba(255, 255, 255, 0.5);
1885        --media-range-thumb-opacity: 0;
1886        --media-preview-thumbnail-border-radius: 2px;
1887        --media-tooltip-display: none;
1888
1889        color: var(--_primary-color);
1890      }
1891
1892      @supports (color: color-mix(in srgb, red, blue)) {
1893        :host {
1894          --_secondary-color: color-mix(in srgb, var(--media-secondary-color, #000) 75%, transparent);
1895        }
1896      }
1897
1898      media-control-bar {
1899        --media-control-padding: 2px;
1900        background: var(--_secondary-color);
1901        align-items: center;
1902        height: 30px;
1903        border-radius: 4px;
1904        margin: 0 5px 5px;
1905        padding-inline: 2px;
1906      }
1907
1908      media-controller[breakpointsm] media-control-bar {
1909        --media-control-padding: 4px;
1910        height: 38px;
1911        border-radius: 8px;
1912        padding-inline: 5px;
1913      }
1914
1915      media-controller[breakpointmd] media-control-bar {
1916        height: 46px;
1917        margin: 0 8px 8px;
1918      }
1919
1920      media-controller[breakpointlg] media-control-bar,
1921      media-controller[breakpointxl] media-control-bar {
1922        padding-inline: 7px;
1923      }
1924
1925      .live-controls-left {
1926        margin-right: auto;
1927      }
1928
1929      media-time-range,
1930      media-live-button,
1931      media-time-display,
1932      media-text-display,
1933      media-playback-rate-button[role='button'] {
1934        color: inherit;
1935      }
1936
1937      [disabled]:not(media-live-button) {
1938        opacity: 60%;
1939        cursor: not-allowed;
1940      }
1941
1942      ${
vendor: 15,368 bytes, lines 1942-2195
1942""}
1943      media-seek-backward-button {
1944        display: var(--media-control-display, var(--media-seek-backward-button-display, none));
1945      }
1946
1947      media-seek-forward-button {
1948        display: var(--media-control-display, var(--media-seek-forward-button-display, none));
1949      }
1950
1951      media-pip-button {
1952        display: var(--media-control-display, var(--media-pip-button-display, none));
1953      }
1954    </style>
1955
1956    <template partial="PlayButton">
1957      <media-play-button part="play button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
1958        <svg aria-hidden="true" viewBox="0 0 24 24" slot="play">
1959          <path d="m6.73 20.93 14.05-8.54a.46.46 0 0 0 0-.78L6.73 3.07a.48.48 0 0 0-.73.39v17.07a.48.48 0 0 0 .73.4Z" />
1960        </svg>
1961        <svg aria-hidden="true" viewBox="0 0 24 24" slot="pause">
1962          <path
1963            d="M6 19.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v15ZM14.5 4a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5h-3Z"
1964          />
1965        </svg>
1966      </media-play-button>
1967    </template>
1968
1969    <template partial="MuteButton">
1970      <media-mute-button part="mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
1971        <svg aria-hidden="true" viewBox="0 0 24 24" slot="high">
1972          <path
1973            d="m11.14 4.86-4 4a.49.49 0 0 1-.35.14H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.5.5 0 0 0 .85-.36V5.21a.5.5 0 0 0-.86-.35Zm2.74-1.56v1.52A7.52 7.52 0 0 1 19.47 12a7.52 7.52 0 0 1-5.59 7.18v1.52A9 9 0 0 0 21 12a9 9 0 0 0-7.12-8.7Zm3.56 8.7a5.49 5.49 0 0 0-3.56-5.1v1.66a3.93 3.93 0 0 1 0 6.88v1.66a5.49 5.49 0 0 0 3.56-5.1Z"
1974          />
1975        </svg>
1976        <svg aria-hidden="true" viewBox="0 0 24 24" slot="medium">
1977          <path
1978            d="m11.14 4.853-4 4a.49.49 0 0 1-.35.14H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.5.5 0 0 0 .85-.36V5.203a.5.5 0 0 0-.86-.35Zm6.3 7.14a5.49 5.49 0 0 0-3.56-5.1v1.66a3.93 3.93 0 0 1 0 6.88v1.66a5.49 5.49 0 0 0 3.56-5.1Z"
1979          />
1980        </svg>
1981        <svg aria-hidden="true" viewBox="0 0 24 24" slot="low">
1982          <path
1983            d="m11.14 4.853-4 4a.49.49 0 0 1-.35.14H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.5.5 0 0 0 .85-.36V5.203a.5.5 0 0 0-.86-.35Zm6.3 7.14a5.49 5.49 0 0 0-3.56-5.1v1.66a3.93 3.93 0 0 1 0 6.88v1.66a5.49 5.49 0 0 0 3.56-5.1Z"
1984          />
1985        </svg>
1986        <svg aria-hidden="true" viewBox="0 0 24 24" slot="off">
1987          <path
1988            d="m3 4.05 4.48 4.47-.33.33a.49.49 0 0 1-.36.15H3.25a.25.25 0 0 0-.25.25v5.5a.25.25 0 0 0 .25.25h3.54a.49.49 0 0 1 .36.15l4 4a.48.48 0 0 0 .36.15.5.5 0 0 0 .5-.5v-5.75l4.67 4.66a7.71 7.71 0 0 1-2.79 1.47v1.52a9.32 9.32 0 0 0 3.87-1.91L20 21l1-1L4.06 3 3 4.05Zm5.36 5.36 2.39 2.39V17L8 14.26a1.74 1.74 0 0 0-1.24-.51H4.25v-3.5h2.54A1.74 1.74 0 0 0 8 9.74l.36-.33ZM19.47 12a7.19 7.19 0 0 1-.89 3.47l1.11 1.1A8.64 8.64 0 0 0 21 12a9 9 0 0 0-7.12-8.7v1.52A7.52 7.52 0 0 1 19.47 12ZM12 8.88V5.21a.5.5 0 0 0-.5-.5.48.48 0 0 0-.36.15L9.56 6.44 12 8.88ZM15.91 12a4.284 4.284 0 0 1-.07.72l1.22 1.22a5.2 5.2 0 0 0 .38-1.94 5.49 5.49 0 0 0-3.56-5.1v1.66A4 4 0 0 1 15.91 12Z"
1989          />
1990        </svg>
1991      </media-mute-button>
1992    </template>
1993
1994    <template partial="CaptionsButton">
1995      <media-captions-button part="captions button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
1996        <svg aria-hidden="true" viewBox="0 0 26 24" slot="on">
1997          <path
1998            d="M22.832 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.41 10.1a3.63 3.63 0 0 1-1.51.32 4.76 4.76 0 0 1-1.63-.27 4 4 0 0 1-1.28-.83 3.67 3.67 0 0 1-.84-1.26 4.23 4.23 0 0 1-.3-1.63 4.28 4.28 0 0 1 .3-1.64 3.53 3.53 0 0 1 .84-1.21 3.89 3.89 0 0 1 1.29-.8 4.76 4.76 0 0 1 1.63-.27 4.06 4.06 0 0 1 1.35.24c.225.091.44.205.64.34a2.7 2.7 0 0 1 .55.52l-1.27 1a1.79 1.79 0 0 0-.6-.46 2 2 0 0 0-.83-.16 2 2 0 0 0-1.56.69 2.35 2.35 0 0 0-.46.77 2.78 2.78 0 0 0-.16 1c-.009.34.046.68.16 1 .104.283.26.545.46.77.188.21.415.38.67.5a2 2 0 0 0 .84.18 1.87 1.87 0 0 0 .9-.21 1.78 1.78 0 0 0 .65-.6l1.38 1a2.88 2.88 0 0 1-1.22 1.01Zm7.52 0a3.63 3.63 0 0 1-1.51.32 4.76 4.76 0 0 1-1.63-.27 3.89 3.89 0 0 1-1.28-.83 3.55 3.55 0 0 1-.85-1.26 4.23 4.23 0 0 1-.3-1.63 4.28 4.28 0 0 1 .3-1.64 3.43 3.43 0 0 1 .85-1.25 3.75 3.75 0 0 1 1.28-.8 4.76 4.76 0 0 1 1.63-.27 4 4 0 0 1 1.35.24c.225.091.44.205.64.34.21.144.395.32.55.52l-1.27 1a1.79 1.79 0 0 0-.6-.46 2 2 0 0 0-.83-.16 2 2 0 0 0-1.56.69 2.352 2.352 0 0 0-.46.77 3.01 3.01 0 0 0-.16 1c-.003.34.05.678.16 1 .108.282.263.542.46.77.188.21.416.38.67.5a2 2 0 0 0 .84.18 1.87 1.87 0 0 0 .9-.21 1.78 1.78 0 0 0 .65-.6l1.38 1a2.82 2.82 0 0 1-1.21 1.05Z"
1999          />
2000        </svg>
2001        <svg aria-hidden="true" viewBox="0 0 26 24" slot="off">
2002          <path
2003            d="M22.832 5.68a2.58 2.58 0 0 0-2.3-2.5c-1.81-.12-4.67-.18-7.53-.18-2.86 0-5.72.06-7.53.18a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c1.81.12 4.67.18 7.53.18 2.86 0 5.72-.06 7.53-.18a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.137-.21-8.283 0-12.42a1.11 1.11 0 0 1 .91-1.11c1.67-.11 4.43-.18 7.43-.18s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.137.21 8.283 0 12.42ZM10.843 14a1.55 1.55 0 0 1-.76.18 1.57 1.57 0 0 1-.71-.18 1.69 1.69 0 0 1-.57-.42 2.099 2.099 0 0 1-.38-.58 2.47 2.47 0 0 1 0-1.64 2 2 0 0 1 .39-.66 1.73 1.73 0 0 1 .58-.42c.23-.103.479-.158.73-.16.241-.004.48.044.7.14.199.088.373.222.51.39l1.08-.89a2.179 2.179 0 0 0-.47-.44 2.81 2.81 0 0 0-.54-.32 2.91 2.91 0 0 0-.58-.15 2.71 2.71 0 0 0-.56 0 4.08 4.08 0 0 0-1.38.15 3.27 3.27 0 0 0-1.09.67 3.14 3.14 0 0 0-.71 1.06 3.62 3.62 0 0 0-.26 1.39 3.57 3.57 0 0 0 .26 1.38 3 3 0 0 0 .71 1.06c.316.293.687.52 1.09.67.443.16.91.238 1.38.23a3.2 3.2 0 0 0 1.28-.27c.401-.183.747-.47 1-.83l-1.17-.88a1.42 1.42 0 0 1-.53.52Zm6.62 0a1.58 1.58 0 0 1-.76.18 1.54 1.54 0 0 1-.7-.18 1.69 1.69 0 0 1-.57-.42 2.12 2.12 0 0 1-.43-.58 2.29 2.29 0 0 1 .39-2.3 1.84 1.84 0 0 1 1.32-.58c.241-.003.48.045.7.14.199.088.373.222.51.39l1.08-.92a2.43 2.43 0 0 0-.47-.44 3.22 3.22 0 0 0-.53-.29 2.999 2.999 0 0 0-.57-.15 2.87 2.87 0 0 0-.57 0 4.06 4.06 0 0 0-1.36.15 3.17 3.17 0 0 0-1.09.67 3 3 0 0 0-.72 1.06 3.62 3.62 0 0 0-.25 1.39 3.57 3.57 0 0 0 .25 1.38c.16.402.405.764.72 1.06a3.17 3.17 0 0 0 1.09.67c.44.16.904.237 1.37.23.441 0 .877-.092 1.28-.27a2.45 2.45 0 0 0 1-.83l-1.15-.85a1.49 1.49 0 0 1-.54.49Z"
2004          />
2005        </svg>
2006      </media-captions-button>
2007    </template>
2008
2009    <template partial="FullscreenButton">
2010      <media-fullscreen-button part="fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2011        <svg aria-hidden="true" viewBox="0 0 24 24" slot="enter">
2012          <path
2013            d="M20.25 14.5a.76.76 0 0 0-.75.75v4.25h-4.25a.75.75 0 1 0 0 1.5h5a.76.76 0 0 0 .75-.75v-5a.76.76 0 0 0-.75-.75Zm0-11.5h-5a.76.76 0 0 0-.75.75.76.76 0 0 0 .75.75h4.25v4.25a.75.75 0 1 0 1.5 0v-5a.76.76 0 0 0-.75-.75ZM8.75 19.5H4.5v-4.25a.76.76 0 0 0-.75-.75.76.76 0 0 0-.75.75v5a.76.76 0 0 0 .75.75h5a.75.75 0 1 0 0-1.5Zm0-16.5h-5a.76.76 0 0 0-.75.75v5a.76.76 0 0 0 .75.75.76.76 0 0 0 .75-.75V4.5h4.25a.76.76 0 0 0 .75-.75.76.76 0 0 0-.75-.75Z"
2014          />
2015        </svg>
2016        <svg aria-hidden="true" viewBox="0 0 24 24" slot="exit">
2017          <path
2018            d="M20.25 14.5h-5a.76.76 0 0 0-.75.75v5a.75.75 0 1 0 1.5 0V16h4.25a.75.75 0 1 0 0-1.5Zm-5-5h5a.75.75 0 1 0 0-1.5H16V3.75a.75.75 0 1 0-1.5 0v5a.76.76 0 0 0 .75.75Zm-6.5 5h-5a.75.75 0 1 0 0 1.5H8v4.25a.75.75 0 1 0 1.5 0v-5a.76.76 0 0 0-.75-.75Zm0-11.5a.76.76 0 0 0-.75.75V8H3.75a.75.75 0 0 0 0 1.5h5a.76.76 0 0 0 .75-.75v-5A.76.76 0 0 0 8.75 3Z"
2019          />
2020        </svg>
2021      </media-fullscreen-button>
2022    </template>
2023
2024    <template partial="LiveButton">
2025      <media-live-button part="live seek-live button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2026        <span slot="text" style="font-weight: normal">Live</span>
2027        <svg
2028          slot="indicator"
2029          width="8"
2030          height="8"
2031          viewBox="0 0 8 8"
2032          xmlns="http://www.w3.org/2000/svg"
2033          style="width: 8px; height: 8px; margin-right: 2px"
2034        >
2035          <rect width="8" height="8" rx="2" />
2036        </svg>
2037      </media-live-button>
2038    </template>
2039
2040    <template partial="PipButton">
2041      <media-pip-button part="pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2042        <svg aria-hidden="true" viewBox="0 0 26 24" slot="enter">
2043          <path
2044            d="M22 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h6.75v-1.25h-6.5V4.25h17.5v6.5H23V4a1 1 0 0 0-1-1Zm0 10h-8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1Zm-.5 6.5h-7v-5h7v5Z"
2045          />
2046        </svg>
2047        <svg aria-hidden="true" viewBox="0 0 26 24" slot="exit">
2048          <path
2049            d="M22 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h6.75v-1.25h-6.5V4.25h17.5v6.5H23V4a1 1 0 0 0-1-1Zm0 10h-8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1Zm-.5 6.5h-7v-5h7v5Z"
2050          />
2051        </svg>
2052      </media-pip-button>
2053    </template>
2054
2055    <template partial="SeekBackwardButton">
2056      <media-seek-backward-button
2057        seekoffset="{{backwardseekoffset ?? 10}}"
2058        part="seek-backward button"
2059        disabled="{{disabled}}"
2060        aria-disabled="{{disabled}}"
2061      >
2062        <svg aria-hidden="true" viewBox="0 0 22 24" slot="icon">
2063          <path d="M11 6V3L5.37 7 11 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 11 6Z" />
2064          <text class="value" transform="translate(2.5 21)" style="font-size: 8px; font-family: 'ArialMT', 'Arial'">
2065            {{backwardseekoffset ?? 10}}
2066          </text>
2067        </svg>
2068      </media-seek-backward-button>
2069    </template>
2070
2071    <template partial="SeekForwardButton">
2072      <media-seek-forward-button
2073        seekoffset="{{forwardseekoffset ?? 10}}"
2074        part="seek-forward button"
2075        disabled="{{disabled}}"
2076        aria-disabled="{{disabled}}"
2077      >
2078        <svg aria-hidden="true" viewBox="0 0 22 24" slot="icon">
2079          <path d="M11 6V3l5.61 4L11 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 11 6Z" />
2080          <text class="value" transform="translate(10 21)" style="font-size: 8px; font-family: 'ArialMT', 'Arial'">
2081            {{forwardseekoffset ?? 10}}
2082          </text>
2083        </svg>
2084      </media-seek-forward-button>
2085    </template>
2086
2087    <template partial="AirplayButton">
2088      <media-airplay-button part="airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2089        <svg aria-hidden="true" viewBox="0 0 26 24" slot="icon">
2090          <path d="M13.19 14.22a.25.25 0 0 0-.38 0l-5.46 6.37a.25.25 0 0 0 .19.41h10.92a.25.25 0 0 0 .19-.41l-5.46-6.37Z" />
2091          <path
2092            d="M22 3H4a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h2.94L8 16.75H4.25V4.25h17.5v12.5H18L19.06 18H22a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Z"
2093          />
2094        </svg>
2095      </media-airplay-button>
2096    </template>
2097
2098    <template partial="CastButton">
2099      <media-cast-button part="cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
2100        <svg aria-hidden="true" viewBox="0 0 26 24" slot="enter">
2101          <path d="M3 15.5V17c2.206 0 4 1.794 4 4h1.5A5.5 5.5 0 0 0 3 15.5Zm0 3V21h2.5A2.5 2.5 0 0 0 3 18.5Z" />
2102          <path d="M3 12.5V14c3.86 0 7 3.14 7 7h1.5A8.5 8.5 0 0 0 3 12.5Z" />
2103          <path
2104            d="M22 3H4a1 1 0 0 0-1 1v6.984c.424 0 .84.035 1.25.086V4.25h17.5v15.5h-8.82c.051.41.086.826.086 1.25H22a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Z"
2105          />
2106        </svg>
2107        <svg aria-hidden="true" viewBox="0 0 26 24" slot="exit">
2108          <path d="M3 15.5V17c2.206 0 4 1.794 4 4h1.5A5.5 5.5 0 0 0 3 15.5Zm0 3V21h2.5A2.5 2.5 0 0 0 3 18.5Z" />
2109          <path d="M3 12.5V14c3.86 0 7 3.14 7 7h1.5A8.5 8.5 0 0 0 3 12.5Z" />
2110          <path
2111            d="M22 3H4a1 1 0 0 0-1 1v6.984c.424 0 .84.035 1.25.086V4.25h17.5v15.5h-8.82c.051.41.086.826.086 1.25H22a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Z"
2112          />
2113          <path d="M20.5 5.5h-15v5.811c3.52.906 6.283 3.67 7.189 7.19H20.5V5.5Z" />
2114        </svg>
2115      </media-cast-button>
2116    </template>
2117
2118    <template partial="TimeRange">
2119      <media-time-range part="time range" disabled="{{disabled}}" aria-disabled="{{disabled}}"></media-time-range>
2120    </template>
2121
2122    <template partial="VolumeRange">
2123      <media-volume-range part="volume range" disabled="{{disabled}}" aria-disabled="{{disabled}}"></media-volume-range>
2124    </template>
2125
2126    <media-controller
2127      defaultsubtitles="{{defaultsubtitles}}"
2128      defaultduration="{{defaultduration}}"
2129      gesturesdisabled="{{disabled}}"
2130      hotkeys="{{hotkeys}}"
2131      nohotkeys="{{nohotkeys}}"
2132      defaultstreamtype="on-demand"
2133    >
2134      <slot name="media" slot="media"></slot>
2135      <slot name="poster" slot="poster"></slot>
2136      <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>
2137      <media-error-dialog slot="dialog"></media-error-dialog>
2138
2139      <div slot="top-chrome">
2140        <template if="videotitle">
2141          <template if="videotitle != true">
2142            <media-text-display part="top title display" class="title-display">{{videotitle}}</media-text-display>
2143          </template>
2144        </template>
2145        <template if="!videotitle">
2146          <template if="title">
2147            <media-text-display part="top title display" class="title-display">{{title}}</media-text-display>
2148          </template>
2149        </template>
2150      </div>
2151
2152      <template if="streamtype == 'on-demand'">
2153        <template if="!breakpointsm">
2154          <media-control-bar>
2155            {{>PlayButton}} {{>TimeRange}} {{>MuteButton}} {{>CaptionsButton}} {{>FullscreenButton}}
2156          </media-control-bar>
2157        </template>
2158
2159        <template if="breakpointsm">
2160          <media-control-bar>
2161            {{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeRange}}
2162            <template if="breakpointmd">
2163              <media-time-display></media-time-display>
2164            </template>
2165            {{>MuteButton}} {{>VolumeRange}} {{>CaptionsButton}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}}
2166            {{>FullscreenButton}}
2167          </media-control-bar>
2168        </template>
2169      </template>
2170
2171      <template if="streamtype == 'live'">
2172        <media-control-bar>
2173          <div class="live-controls-left">
2174            {{>LiveButton}}
2175            <template if="!targetlivewindow">
2176              <template if="breakpointsm">
2177                <media-time-display></media-time-display>
2178              </template>
2179            </template>
2180          </div>
2181          <template if="targetlivewindow > 0">
2182            <template if="breakpointsm">{{>TimeRange}}</template>
2183          </template>
2184          <div class="live-controls-right">
2185            <template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
2186            {{>MuteButton}} {{>VolumeRange}} {{>CaptionsButton}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}}
2187            {{>FullscreenButton}}
2188          </div>
2189        </media-control-bar>
2190      </template>
2191
2192      <slot></slot>
2193    </media-controller>
2194
2195  `
2195);var dO=class extends lk{};(t="symbol"!=typeof(i="template")?i+"":i)in dO?aw(dO,t,{enumerable:!0,configurable:!0,writable:!0,value:dU}):dO[t]=dU,a5.customElements&&!a5.customElements.get("media-theme-minimal")&&a5.customElements.define("media-theme-minimal",dO),e.i(336444);var dW=e.i(710711),dH=e.i(927393);let d$=(e,t,i,a,r,s)=>{(0,dH.trackAnalyticsEvent)(dW.EVENT_NAME_VIDEO_PLAY,{videoTitle:e,videoId:t,currentTime:i,duration:a,...r&&{productId:r},...s&&{caption:s}})},dB=(e,t,i,a,r,s)=>{(0,dH.trackAnalyticsEvent)(dW.EVENT_NAME_VIDEO_PAUSE,{videoTitle:e,videoId:t,currentTime:i,duration:a,...r&&{productId:r},...s&&{caption:s}})},dV=(e,t,i,a,r,s)=>{(0,dH.trackAnalyticsEvent)(dW.EVENT_NAME_VIDEO_MUTE,{videoTitle:e,videoId:t,currentTime:i,duration:a,...r&&{productId:r},...s&&{caption:s}})},dq=(e,t,i,a,r,s)=>{(0,dH.trackAnalyticsEvent)(dW.EVENT_NAME_VIDEO_UNMUTE,{videoTitle:e,videoId:t,currentTime:i,duration:a,...r&&{productId:r},...s&&{caption:s}})},dG=(e,t,i,a,r,s)=>{(0,dH.trackAnalyticsEvent)(dW.EVENT_NAME_VIDEO_COMPLETED_90_PERCENT,{videoTitle:e,videoId:t,currentTime:i,duration:a,...r&&{productId:r},...s&&{caption:s}})};e.s(["trackVideoCompleted90Percent",0,dG,"trackVideoMute",0,dV,"trackVideoPause",0,dB,"trackVideoPlay",0,d$,"trackVideoThumbnailClick",0,(e,t,i,a,r)=>{(0,dH.trackAnalyticsEvent)(dW.EVENT_NAME_CLICK_VIDEO_THUMBNAIL,{videoTitle:e,videoId:t,index:i,...a&&{productId:a},...r&&{caption:r}})},"trackVideoUnmute",0,dq],277686);let dF=(0,ak.default)(()=>e.A(778532),{loadableGenerated:{modules:[627174]},ssr:!1});e.s(["LightboxMuxVideo",0,({video:e,productId:t})=>{let i=(0,aA.useRef)(null),a=(0,aA.useCallback)(()=>{i.current?.media&&d$(e.title,e.id,i.current.media.currentTime,i.current.media.duration,t)},[e.title,e.id,t]),r=(0,aA.useCallback)(()=>{i.current?.media&&dB(e.title,e.id,i.current.media.currentTime,i.current.media.duration,t)},[t,e.id,e.title]),s=(0,aA.useCallback)(()=>{i.current?.media&&dV(e.title,e.id,i.current.media.currentTime,i.current.media.duration,t)},[t,e.id,e.title]),n=(0,aA.useCallback)(()=>{i.current?.media&&dq(e.title,e.id,i.current.media.currentTime,i.current.media.duration,t)},[t,e.id,e.title]),o=(0,aA.useRef)(!1),l=(0,aA.useRef)(null);(0,aA.useEffect)(()=>{o.current=!1,l.current=null},[e.id]);let d=(0,aA.useCallback)(()=>{let a=i.current?.media;!a||o.current||!a.duration||a.currentTime/a.duration>=.9&&(dG(e.title,e.id,a.currentTime,a.duration,t),o.current=!0)},[t,e.id,e.title]),h=(0,aA.useCallback)(()=>{if(i.current?.media){let e=i.current.media.muted;null!==l.current&&l.current!==e&&(e?s():n()),l.current=e}},[s,n]);return e.muxVideo?.playbackId?(0,af.jsx)(dF,{ref:i,theme:"minimal",playbackId:e.muxVideo.playbackId,poster:"",onPlay:a,onPause:r,onVolumeChange:h,onTimeUpdate:d,disablePictureInPicture:!0,style:{"--cast-button":"none","--fullscreen-button":"none","--airplay-button":"none","--pip-button":"none"},metadata:{video_id:e.id,video_title:e.title},autoPlay:!0}):null}],43653)}]);
2196
2197//# debugId=a39bb5c0-7010-70f0-a177-3a3a38ad20e9
2198//# sourceMappingURL=31l-am-42r7c8.js.map

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