PageSourceSearch

https://assets-cdn.abcnews.com/abcnews/b2b237945e9d-release-09-15-2026.11/client/abcnews/3479-df8075f3.js

js abcnews.com collected 2026-09-24 07:46:19 UTC 1,624,548 bytes, 5,264 lines download raw bytes

1(self.webpackChunkabcnews=self.webpackChunkabcnews||[]).push([[3479],{81676:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AiringEvents=void 0,e.AiringEvents={SELECTED_FEED_CHANGED:"@EVENT/PLAYER/AIRING/SELECTED_FEED_CHANGED"}},77580:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AudioEvents=void 0;const n="@EVENT/PLAYER/AUDIO";e.AudioEvents={SELECTED_TRACK_CHANGED:`${n}/SELECTED_TRACK_CHANGED`,TRACKS_CHANGED:`${n}/TRACKS_CHANGED`}},56660:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CaptionsEvents=void 0;const n="@EVENT/PLAYER/CAPTIONS";e.CaptionsEvents={OFF:`${n}/OFF`,ON:`${n}/ON`,SELECTED_TRACK_CHANGED:`${n}/SELECTED_TRACK_CHANGED`,TRACKS_CHANGED:`${n}/TRACKS_CHANGED`}},37652:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CastingEvents=void 0,e.CastingEvents={STATE_CHANGED:"@EVENT/PLAYER/CASTING/STATE_CHANGED"}},12569:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlaybackEvents=void 0;const n="@EVENT/PLAYER/PLAYBACK";e.PlaybackEvents={ACTIVITY_STATUS_CHANGED:`${n}/ACTIVITY_STATUS_CHANGED`,AUTO_PLAY_FAILED:`${n}/AUTOPLAY_FAILED`,BUFFERING_ENDED:`${n}/BUFFERING_ENDED`,BUFFERING_STARTED:`${n}/BUFFERING_STARTED`,CAN_PLAY_THROUGH:`${n}/CAN_PLAY_THROUGH`,EXITED:`${n}/EXITED`,INACTIVITY_TIMEOUT:`${n}/INACTIVITY_TIMEOUT`,INITIALIZED:`${n}/INITIALIZED`,MARKER_REACHED:`${n}/MARKER_REACHED`,MEDIA_CLIENT_INITIALIZED:`${n}/MEDIA_CLIENT_INITIALIZED`,MEDIA_CLIENT_DISPOSED:`${n}/MEDIA_CLIENT_DISPOSED`,MEDIA_COMPLETED:`${n}/MEDIA_COMPLETED`,MEDIA_PAUSED:`${n}/MEDIA_PAUSED`,MEDIA_SEEKING:`${n}/MEDIA_SEEKING`,MEDIA_SEEK_COMPLETE:`${n}/MEDIA_SEEK_COMPLETE`,MEDIA_RESUMED:`${n}/MEDIA_RESUMED`,MEDIA_STARTED:`${n}/MEDIA_STARTED`,PAGE_VISIBILITY_CHANGED:`${n}/PAGE_VISIBILITY_CHANGED`,PLAYBACK_STATE_CHANGED:`${n}/PLAYBACK_STATE_CHANGED`,READY:`${n}/READY`,RESTART:`${n}/RESTART`,RESUMED_WITHOUT_CATCHING_UP:`${n}/RESUMED_WITHOUT_CATCHING_UP`,PROGRAM_AUTHORIZE:`${n}/PROGRAM_AUTHORIZE`,PROGRAM_BOUNDARY:`${n}/PROGRAM_BOUNDARY`,PROGRAM_BOUNDARY_ERROR:`${n}/PROGRAM_BOUNDARY_ERROR`,PROGRAM_ENDED:`${n}/PROGRAM_ENDED`,PROGRAM_METADATA_CHANGED:`${n}/PROGRAM_METADATA_CHANGED`,RIGHTS_CHECK_PREFETCHED_RIGHTS:`${n}/RIGHTS_CHECK_PREFETCHED_RIGHTS`,WINDOW_BEFORE_UNLOAD:`${n}/WINDOW_BEFORE_UNLOAD`}},25451:function(t,e,n){"use strict";e.B=void 0;const i=n(77580),r=n(81676),o=n(56660),a=n(37652),s=n(12569),l=n(38343),c=n(73802),d="@EVENT/PLAYER";e.B={DISPOSED:`${d}/DISPOSED`,MEDIA_READY:`${d}/MEDIA_READY`,AUDIO:i.AudioEvents,AIRING:r.AiringEvents,CAPTIONS:o.CaptionsEvents,CASTING:a.CastingEvents,PLAYBACK:s.PlaybackEvents,TIMECODE:l.TimecodeEvents,VOLUME:c.VolumeEvents,MEDIA_PLAYBACK_CRITERIA_SET:`${d}/MEDIA_PLAYBACK_CRITERIA_SET`}},38343:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimecodeEvents=void 0;const n="@EVENT/PLAYER/TIMECODE";e.TimecodeEvents={PLAYBACK_TIME_UPDATE:`${n}/PLAYBACK_TIME_UPDATE`,TIMECODE_UPDATE:`${n}/TIMECODE_UPDATE`}},73802:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VolumeEvents=void 0;const n="@EVENT/PLAYER/VOLUME";e.VolumeEvents={MUTED:`${n}/MUTED`,UNMUTED:`${n}/UNMUTED`,LEVEL:`${n}/LEVEL`,CHANGED:`${n}/CHANGED`}},29484:function(t,e){"use strict";e.j=void 0,e.j={APPLICATION_EXIT:"applicationExit",PLAYED_TO_END:"playedToEnd",USER:"user",ERROR:"error"}},90953:function(t,e){"use strict";e.s=void 0,e.s={NOTREADY:"NOTREADY",PAUSED:"PAUSED",BUFFERING:"BUFFERING",PLAYING:"PLAYING",SEEKING:"SEEKING",ENDED:"ENDED"}},20637:function(t,e,n){var i=n(50239),r=i.PROTO,o=i.ns,a=i.mix,s=i.idxOf,l=i.forEach,c=i.TRUE,d=i.FALSE,u=i.noop,p=i.cnum,h=i.emptyAry,m=i.NULL,g=i.TYPE_STR,v=i.TYPE_FUNC,f=i.getGlobal,b=n(5902),_=b.emit,E=n(30731),y=n(36968),S=n(19212),T=n(98802),C=T.DATA_LAYER_DEFAULT,w=T.DATA_LAYER_NAMESPACE,A=T.DATA_LAYER_PREFIX,I=T.EVENTS,O=I.DATA_LAYER_INIT_COMPLETE,R=T.STATES,x=T.DCF_COOKIE,L=T.USP_COOKIE;function k(){var t=this;if(!i.kindOf(t,k[r]))return new k;t.subscribedEventNames=[],t.queueExpirationTimer=m,t.shouldQueuePublishEvents=c,t.publishQueues={},t.readyState=R.LOADING,t.pageViewed=d,t.publish=t.publish.bind(t)}function P(t){return`${A}.${t}`}k[r]={constructor:k,getAnalyticsConfig:function(){return{}},init:function(t,e,n){var i=this,r=e||"";return(i=a(i,t||C)).space=r,i.initialized=c,o(w,i),n&&(i.hasExpirationPromise=c,n.then((()=>i.expireAllQueues()))),i.readyState=R.COMPLETE,b.emit(O),i},isInitialized:function(){return this.initialized===c},onReadyStateChange:function(t){b.on(O,t)},publish:function(t){var e=this,n=P(t),i=arguments||h,r=Array.prototype.slice.call(i,1);r.unshift(n),"pageView"===t&&(e.pageViewed=c),s(e.subscribedEventNames,n)>=0?_.apply(b,r):e.shouldQueuePublishEvents&&e.addToPublishQueue&&e.addToPublishQueue(r,n)},subscribe:function(t,e){var n=this,i=P(t),r=e||u;typeof t===g&&typeof r===v&&(b.on(i,(function(){var t=arguments||h,e=Array.prototype.slice.call(t);r.apply(m,E(e))})),s(n.subscribedEventNames,i)<0&&(n.subscribedEventNames.push(i),n.runPublishQueue(i)))},update:function(t){b.emit(I.UPDATE)},updateDataLayer:function(t,e,n){var i=this;return t&&e&&(i=y(i,t,e)),typeof n===g&&b.emit(n),b.emit(I.UPDATE),i},toggleConsentInfo:function(){(f("OneTrust.ToggleInfoDisplay")||u)()},hasConsent:function(){return 1===p(S.getCookie(x))},getUSPrivacy:function(){return S.getCookie(L)||""},addToPublishQueue:function(t,e){var n=this,i=n.publishQueues[`${e}`]||[];i.push(t),n.publishQueues[`${e}`]=i,n.hasExpirationPromise||n.queueExpirationTimer||(n.queueExpirationTimer=setTimeout((function(){n.subscribedEventNames.length<1&&n.expireAllQueues()}),2e4))},runPublishQueue:function(t){var e=this.publishQueues[`${t}`];e&&(l(e,(function(t){_.apply(b,t)})),delete this.publishQueues[`${t}`])},expireAllQueues:function(){this.shouldQueuePublishEvents=d,this.publishQueue={}}},t.exports=k},98802:function(t,e){e.DATA_LAYER_DEFAULT={site:{edition:"",site:"",language:"",orientation:""},pzn:{login_status:"",entitlements:",",disneyplus_bundle:"no",has_favorites:"no",subscriber_type:"",has_fantasy:"no",has_notifications:"no",auto_start:"no"},page:{nav_method:"",content_category:"",story_id:"",section:"",prev_page:"",espnplus_category:"",espnplus_products:"",premium:"",game_state:"",content_type:"",game_detail:"",page_name:"",game_id:"",page_infrastru
1cture:"",author:"",league:"",player_team_detail:"",purchase_method:"",story_title:"",feed_rule:"",mktg_campaign:"",espnplus_content:"",sport:"",feed_type:""},visitor:{dssid:"",swid:"",ad_blocker:"no",unid:"",consent_groups:""}},e.DATA_LAYER_PREFIX="__dataLayer",e.DATA_LAYER_NAMESPACE="window.__dataLayer",e.EVENTS={DATA_LAYER_INIT_COMPLETE:"dataLayer.init.complete",UPDATE:"dataLayer.update"},e.KEY_NAMES={AD_BLOCKER:"ad_blocker",APP_VERSION:"app_version",EDITION:"edition",GUEST:"guest",LANGUAGE:"language",LOGIN_STATUS:"login_status",ORIENTATION:"orientation",PAGE:"page",PAGE_ID:"page_id",PAGE_ID_SOURCE:"page_id_source",PAGE_INFRASTRUCTURE:"page_infrastructure",PAGE_NAME:"page_name",PAGE_TYPE:"page_type",PAGE_URL:"page_url",PLATFORM:"platform",PREV_PAGE:"prev_page",PZN:"pzn",SITE:"site",SWID:"swid",UNID:"unid",VISITOR:"visitor"},e.STATES={LOADING:"loading",COMPLETE:"complete"},e.DCF_COOKIE="_dcf",e.USP_COOKIE="usprivacy"},63566:function(t,e,n){t.exports=n(20637)},18029:function(t,e,n){var i=n(35393),r=n(11700),o=i((function(t,e,n){return t+(n?" ":"")+r(e)}));t.exports=o},41304:function(t,e,n){"use strict";n.d(e,{D:function(){return It},E:function(){return K},S:function(){return ht},T:function(){return j},a:function(){return lt},i:function(){return c},n:function(){return pt},p:function(){return yt},r:function(){return l},x:function(){return Y}});const i=globalThis,r=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new WeakMap;let s=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(e,t))}return t}toString(){return this.cssText}};const l=t=>new s("string"==typeof t?t:t+"",void 0,o),c=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new s(n,t,o)},d=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return l(e)})(t):t,{is:u,defineProperty:p,getOwnPropertyDescriptor:h,getOwnPropertyNames:m,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,f=globalThis,b=f.trustedTypes,_=b?b.emptyScript:"",E=f.reactiveElementPolyfillSupport,y=(t,e)=>t,S={toAttribute(t,e){switch(e){case Boolean:t=t?_:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},T=(t,e)=>!u(t,e),C={attribute:!0,type:String,converter:S,reflect:!1,useDefault:!1,hasChanged:T};Symbol.metadata??=Symbol("metadata"),f.litPropertyMetadata??=new WeakMap;let w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(t,n,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){const{get:i,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??C}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...m(t),...g(t)];for(const n of e)this.createProperty(n,t[n])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,n]of e)this.elementProperties.set(t,n)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const n=this._$Eu(t,e);void 0!==n&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];
vendor: 4,109 bytes, line 1
1if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift(d(t))}else void 0!==t&&e.push(d(t));return e}static _$Eu(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(r)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const n of e){const e=document.createElement("style"),r=i.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=n.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$ET(t,e){const n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(void 0!==i&&!0===n.reflect){const r=(void 0!==n.converter?.toAttribute?n.converter:S).toAttribute(e,n.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const n=this.constructor,i=n._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=n.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:S;this._$Em=i;const o=r.fromAttribute(e,t.type);this[i]=o??this._$Ej?.get(i)??o,this._$Em=null}}requestUpdate(t,e,n){if(void 0!==t){const i=this.constructor,r=this[t];if(n??=i.getPropertyOptions(t),!((n.hasChanged??T)(r,e)||n.useDefault&&n.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,n))))return;this.C(t,e,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:n,reflect:i,wrapped:r},o){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||n||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,n]of t){const{wrapped:t}=n,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,n,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[y("elementProperties")]=new Map,w[y("finalized")]=new Map,E?.({ReactiveElement:w}),(f.reactiveElementVersions??=[]).push("2.1.1");const A=globalThis,I=A.trustedTypes,O=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,R="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}
1$`,L="?"+x,k=`<${L}>`,P=document,D=()=>P.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,F=/>/g,z=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$=/'/g,H=/"/g,G=/^(?:script|style|textarea|title)$/i,Y=(1,(t,...e)=>({_$litType$:1,strings:t,values:e})),j=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),W=new WeakMap,q=P.createTreeWalker(P,129);function X(t,e){if(!M(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==O?O.createHTML(e):e}class Z{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,o=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const n=t.length-1,i=[];let r,o=2===e?"<svg>":3===e?"<math>":"",a=B;for(let e=0;e<n;e++){const n=t[e];let s,l,c=-1,d=0;for(;d<n.length&&(a.lastIndex=d,l=a.exec(n),null!==l);)d=a.lastIndex,a===B?"!--"===l[1]?a=V:void 0!==l[1]?a=F:void 0!==l[2]?(G.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=z):void 0!==l[3]&&(a=z):a===z?">"===l[0]?(a=r??B,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?z:'"'===l[3]?H:$):a===H||a===$?a=z:a===V||a===F?a=B:(a=z,r=void 0);const u=a===z&&t[e+1].startsWith("/>")?" ":"";o+=a===B?n+k:c>=0?(i.push(s),n.slice(0,c)+R+n.slice(c)+x+u):n+x+(-2===c?e:u)}return[X(t,o+(t[n]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]})(t,e);if(this.el=Z.createElement(l,n),q.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=q.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(R)){const e=c[o++],n=i.getAttribute(t).split(x),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:n,ctor:"."===a[1]?nt:"?"===a[1]?it:"@"===a[1]?rt:et}),i.removeAttribute(t)}else t.startsWith(x)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(G.test(i.tagName)){const t=i.textContent.split(x),e=t.length-1;if(e>0){i.textContent=I?I.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],D()),q.nextNode(),s.push({type:2,index:++r});i.append(t[e],D())}}}else if(8===i.nodeType)if(i.data===L)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(x,t+1));)s.push({type:7,index:r}),t+=x.length-1}r++}}static createElement(t,e){const n=P.createElement("template");return n.innerHTML=t,n}}function Q(t,e,n=t,i){if(e===j)return e;let r=void 0!==i?n._$Co?.[i]:n._$Cl;const o=N(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t),r._$AT(t,n,i)),void 0!==i?(n._$Co??=[])[i]=r:n._$Cl=r),void 0!==r&&(e=Q(t,r._$AS(t,e.values),r,i)),e}class J{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:n}=this._$AD,i=(t?.creationScope??P).importNode(e,!0);q.currentNode=i;let r=q.nextNode(),o=0,a=0,s=n[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new tt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ot(r,this,t)),this._$AV.push(e),s=n[++a]}o!==s?.index&&(r=q.nextNode(),o++)}return q.currentNode=P,i}p(t){let e=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,n,i){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),N(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==j&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>M(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==K&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:n}=t,i="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=Z.createElement(X(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new J(i,this),n=t.u(this.options);t.p(e),this.T(n),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new Z(t)),e}k(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new tt(this.O(D()),this.O(D()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,i,r){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=K}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(void 0===r)t=Q(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==j,o&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=Q(this,i[n+a],e,a),s===j&&(s=this._$AH[a]),o||=!N(s)||s!==this._$AH[a],s===K?t=K:t!==K&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}o&&!i&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class nt extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}class it extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==K)}}class rt extends et{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){if((t=Q(this,t,e,0)??K)===j)return;const n=this._$AH,i=t===K&&n!==K||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==K&&(n===K||i);i&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}
1class ot{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at=A.litHtmlPolyfillSupport;at?.(Z,tt),(A.litHtmlVersions??=[]).push("3.3.1");const st=globalThis;class lt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,n)=>{const i=n?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=n?.renderBefore??null;i._$litPart$=r=new tt(e.insertBefore(D(),t),t,void 0,n??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return j}}lt._$litElement$=!0,lt.finalized=!0,st.litElementHydrateSupport?.({LitElement:lt});const ct=st.litElementPolyfillSupport;ct?.({LitElement:lt}),(st.litElementVersions??=[]).push("4.2.1");const dt={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:T},ut=(t=dt,e,n)=>{const{kind:i,metadata:r}=n;let o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),o.set(n.name,t),"accessor"===i){const{name:i}=n;return{set(n){const r=e.get.call(this);e.set.call(this,n),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=n;return function(n){const r=this[i];e.call(this,n),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function pt(t){return(e,n)=>"object"==typeof n?ut(t,e,n):((t,e,n)=>{const i=e.hasOwnProperty(n);return e.constructor.createProperty(n,t),i?Object.getOwnPropertyDescriptor(e,n):void 0})(t,e,n)}const ht="undefined"!=typeof window?window:global,mt=616,gt=346,vt={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right"},ft=(new Set(Object.values(vt)),{margin:16,defaultCorner:vt.BOTTOM_RIGHT,responsive:{mobileViewportMax:599,tabletViewportMax:1023,mobileWidthPercent:.9,tabletWidthPercent:.45,desktopWidthPercent:.3,mobileMaxWidth:464,tabletMaxWidth:500,desktopMaxWidth:720,minWidth:464,mobileMinWidth:464,tabletMinWidth:500,desktopMinWidth:616}}),bt=(t={})=>({...ft,...t,responsive:{...ft.responsive,...t.responsive||{}}}),_t=(t,e,n)=>Math.min(Math.max(t,e),n),Et=(t,e,n)=>{const i=Math.max(t-e,0),r=i>=2*n;return{min:r?n:0,max:r?i-n:i}},yt=({position:t,bounds:e,size:n,config:i={}})=>{const r=bt(i),o=Et(e.width,n.width,r.margin),a=Et(e.height,n.height,r.margin);return{x:_t(t.x,o.min,o.max),y:_t(t.y,a.min,a.max)}},St=({bounds:t,size:e,config:n={}})=>{const i=bt(n),r=Et(t.width,e.width,i.margin),o=Et(t.height,e.height,i.margin);return{[vt.TOP_LEFT]:{x:r.min,y:o.min},[vt.TOP_RIGHT]:{x:r.max,y:o.min},[vt.BOTTOM_LEFT]:{x:r.min,y:o.max},[vt.BOTTOM_RIGHT]:{x:r.max,y:o.max}}};Symbol.toStringTag;var Tt=Object.defineProperty,Ct=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&Tt(e,n,o),o};const wt=t=>"number"==typeof t.width&&"number"==typeof t.height,At=class extends lt{constructor(){super(...arguments),this.fill=!1,this.draggingDisabled=!1,this.overlayDrag=!1,this.snapDropToCorner=!1,this.position={x:0,y:0},this.size={width:mt,height:gt},this.snapConfig={},this.boundsElement=null,this.dragStartThresholdPx=0,this._blockSlottedPointerTargets=!1,this._overlayDragListenerAttached=!1,this._selectionSuppressed=!1,this._prevUserSelect="",this._prevWebkitUserSelect="",this._clearDeckTimeout=null,this._dragId=null,this._dragClient0={x:0,y:0},this._position0={x:0,y:0},this._pendingPointerListeners=!1,this._onPendingPointerMove=t=>{if(t.pointerId!==this._dragId)return;const e=t.clientX-this._dragClient0.x,n=t.clientY-this._dragClient0.y,i=this.dragStartThresholdPx;e*e+n*n<i*i||(this._detachPendingListeners(),this._startActiveDragPointerSession(t),this._onMove(t))},this._onPendingPointerUp=t=>{t.pointerId===this._dragId&&(this._detachPendingListeners(),this._restoreTextSelection(),this._dragId=null)},this._onDocumentPointerDown=t=>{if(this.fill||this.draggingDisabled)return;if(t.composedPath().includes(this))return;const e=this.getBoundingClientRect();t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>
1=e.top&&t.clientY<=e.bottom&&this._onPointerDown(t)},this._onPointerDown=t=>{if(0!==t.button)return;if(this.fill||this.draggingDisabled)return;const e=function(t){return t.composedPath().some((t=>t instanceof Element&&null!=t.closest("[data-draggable-surface-handle]")))}(t),n=this.dragStartThresholdPx>0&&!e&&!function(t){return t.composedPath().some((t=>t instanceof Element&&(null!=t.closest("[data-draggable-surface-no-drag]")||null!=t.closest("[data-interactive-element]")||t instanceof HTMLElement&&t.matches('button,a[href],input,textarea,select,option,[contenteditable="true"],[contenteditable=""]'))))}(t);return e||n?e?(this._armDragBaseline(t),void this._startActiveDragPointerSession(t)):void this._attachPendingDrag(t):void 0},this._onMove=t=>{if(t.pointerId!==this._dragId)return;t.preventDefault();const e=t.clientX-this._dragClient0.x,n=t.clientY-this._dragClient0.y,i={x:this._position0.x+e,y:this._position0.y+n},r=this._numericSize(),o=yt({position:i,bounds:this._bounds(),size:r,config:this._snap()});this.position={...o},this.dispatchEvent(new CustomEvent("dragsurface-drag",{bubbles:!0,composed:!0,detail:{position:{...o},clientX:t.clientX,clientY:t.clientY}}))},this._onUp=t=>{if(t.pointerId!==this._dragId)return;t.preventDefault(),this._restoreTextSelection(),this.removeAttribute("data-dragging"),this._dragId=null,ht?.removeEventListener?.("pointermove",this._onMove),ht?.removeEventListener?.("pointerup",this._onUp),ht?.removeEventListener?.("pointercancel",this._onUp);const e=this._bounds(),n=this._numericSize(),i=this._snap();let r,o={...this.position};this.snapDropToCorner&&(o=(({position:t,bounds:e,size:n,config:i={}})=>{const r=yt({position:t,bounds:e,size:n,config:i}
1),o=St({bounds:e,size:n,config:i});let a=o[vt.BOTTOM_RIGHT],s=Number.POSITIVE_INFINITY;return Object.entries(o).forEach((([t,e])=>{const n=(r.x-e.x)**2+(r.y-e.y)**2;n<s&&(s=n,a=e)})),a})({position:o,bounds:e,size:n,config:i}),this.position={...o},r=(({position:t,bounds:e,size:n,config:i={}})=>{const r=yt({position:t,bounds:e,size:n,config:i}),o=St({bounds:e,size:n,config:i});let a=vt.BOTTOM_RIGHT,s=Number.POSITIVE_INFINITY;return Object.entries(o).forEach((([t,e])=>{const n=(r.x-e.x)**2+(r.y-e.y)**2;n<s&&(s=n,a=t)})),a})({position:o,bounds:e,size:n,config:i})),this.dispatchEvent(new CustomEvent("dragsurface-dragend",{bubbles:!0,composed:!0,detail:{position:{...o},corner:r,clientX:t.clientX,clientY:t.clientY}})),this._scheduleHitDeckRemoval()}}connectedCallback(){super.connectedCallback(),this.addEventListener("pointerdown",this._onPointerDown,{capture:!0}),this._syncOverlayDragListener()}disconnectedCallback(){this.removeEventListener("pointerdown",this._onPointerDown,{capture:!0}),this._detachOverlayDragListener(),this._detachPendingListeners(),this._restoreTextSelection(),ht?.removeEventListener?.("pointermove",this._onMove),ht?.removeEventListener?.("pointerup",this._onUp),ht?.removeEventListener?.("pointercancel",this._onUp),this.removeAttribute("data-dragging"),this._dragId=null,null!=this._clearDeckTimeout&&(ht.clearTimeout(this._clearDeckTimeout),this._clearDeckTimeout=null),this._blockSlottedPointerTargets=!1,super.disconnectedCallback()}updated(t){super.updated(t),this._syncOverlayDragListener(),(t.has("boundsElement")||t.has("fill"))&&(this.fill?this.removeAttribute("bounds-relative"):this.boundsElement?this.setAttribute("bounds-relative",""):this.removeAttribute("bounds-relative")),this._applyHostBox()}_snap(){return bt(this.snapConfig)}_bounds(){return this.boundsElement?{width:this.boundsElement.clientWidth,height:this.boundsElement.clientHeight}:function(){const t=ht?.visualViewport;if(t&&t.width>0&&t.height>0)return{width:t.width,height:t.height};
1const e=ht?.innerWidth,n=ht?.innerHeight;return"number"==typeof e&&"number"==typeof n?{width:e,height:n}:{width:0,height:0}}()}_numericSize(){return this.fill?{width:this.clientWidth||mt,height:this.clientHeight||gt}:wt(this.size)?{width:this.size.width,height:this.size.height}:{width:this.clientWidth||mt,height:this.clientHeight||gt}}_applyHostBox(){if(this.fill)return this.style.left="",this.style.top="",this.style.inlineSize="",void(this.style.blockSize="");this.style.left=`${this.position.x}px`,this.style.top=`${this.position.y}px`,wt(this.size)?(this.style.inlineSize=`${this.size.width}px`,this.style.blockSize=`${this.size.height}px`):(this.style.inlineSize=String(this.size.width),this.style.blockSize=String(this.size.height))}_armDragBaseline(t){this._dragId=t.pointerId,this._dragClient0={x:t.clientX,y:t.clientY},this._position0={...this.position}}_suppressTextSelection(){if(this._selectionSuppressed)return;const t=ht?.document?.documentElement;t&&(this._selectionSuppressed=!0,this._prevUserSelect=t.style.userSelect,this._prevWebkitUserSelect=t.style.getPropertyValue("-webkit-user-select"),t.style.userSelect="none",t.style.setProperty("-webkit-user-select","none"))}_restoreTextSelection(){if(!this._selectionSuppressed)return;this._selectionSuppressed=!1;const t=ht?.document?.documentElement;t&&(t.style.userSelect=this._prevUserSelect,this._prevWebkitUserSelect?t.style.setProperty("-webkit-user-select",this._prevWebkitUserSelect):t.style.removeProperty("-webkit-user-select"))}_scheduleHitDeckRemoval(){null!=this._clearDeckTimeout&&ht.clearTimeout(this._clearDeckTimeout),this._clearDeckTimeout=ht.setTimeout((()=>{this._clearDeckTimeout=null,this._blockSlottedPointerTargets=!1,this.requestUpdate()}),0)}_startActiveDragPointerSession(t){t.preventDefault(),this._suppressTextSelection(),ht?.getSelection?.()?.removeAllRanges?.(),this.setAttribute("data-dragging",""),this._blockSlottedPointerTargets=!0,this.requestUpdate();try{this.setPointerCapture(t.pointerId)}catch{}this.dispatchEvent(new CustomEvent("dragsurface-dragstart",{bubbles:!0,composed:!0,detail:{position:{...this.position},clientX:t.clientX,clientY:t.clientY}})),ht?.addEventListener?.("pointermove",this._onMove),ht?.addEventListener?.("pointerup",this._onUp),ht?.addEventListener?.("pointercancel",this._onUp)}_detachPendingListeners(){this._pendingPointerListeners&&(this._pendingPointerListeners=!1,ht?.removeEventListener?.("pointermove",this._onPendingPointerMove),ht?.removeEventListener?.("pointerup",this._onPendingPointerUp),ht?.removeEventListener?.("pointercancel",this._onPendingPointerUp))}_attachPendingDrag(t){this._armDragBaseline(t),this._suppressTextSelection(),this._pendingPointerListeners=!0,ht?.addEventListener?.("pointermove",this._onPendingPointerMove),ht?.addEventListener?.("pointerup",this._onPendingPointerUp),ht?.addEventListener?.("pointercancel",this._onPendingPointerUp)}_syncOverlayDragListener(){const t=this.overlayDrag&&this.isConnected;t!==this._overlayDragListenerAttached&&(t?(ht?.addEventListener?.("pointerdown",this._onDocumentPointerDown,{capture:!0}),this._overlayDragListenerAttached=t):this._detachOverlayDragListener())}_detachOverlayDragListener(){this._overlayDragListenerAttached&&(ht?.removeEventListener?.("pointerdown",this._onDocumentPointerDown,{capture:!0}),this._overlayDragListenerAttached=!1)}render(){return Y`
2			<div class="surface-stack">
3				<div class="surface-root"><slot></slot></div>
4				${this._blockSlottedPointerTargets?Y`<div class="drag-hit-deck" aria-hidden="true"></div>`:K}
5			</div>
6		`}};At.styles=c`
7		:host {
8			display: block;
9			box-sizing: border-box;
10			touch-action: auto;
11		}
12
13		.surface-stack {
14			position: relative;
15			box-sizing: border-box;
16			inline-size: 100%;
17			block-size: 100%;
18			isolation: isolate;
19		}
20
21		/* Do not steal hits from slotted light-DOM (e.g. mini-player drag handle). */
22		.surface-root {
23			position: relative;
24			box-sizing: border-box;
25			inline-size: 100%;
26			block-size: 100%;
27			pointer-events: none;
28		}
29
30		::slotted(*) {
31			pointer-events: auto;
32		}
33
34		:host([fill]) {
35			position: absolute;
36			inset: 0;
37			inline-size: 100%;
38			block-size: 100%;
39			display: flex;
40			flex-direction: column;
41			min-height: 0;
42			min-width: 0;
43		}
44
45		:host([fill]) .surface-stack {
46			flex: 1;
47			min-height: 0;
48			min-width: 0;
49			display: flex;
50			flex-direction: column;
51			block-size: auto;
52		}
53
54		:host([fill]) .surface-root {
55			flex: 1;
56			min-height: 0;
57			min-width: 0;
58			display: flex;
59			flex-direction: column;
60			block-size: auto;
61		}
62
63		:host([fill]) ::slotted(*) {
64			pointer-events: auto;
65			flex: 1;
66			min-height: 0;
67			min-width: 0;
68			align-self: stretch;
69		}
70
71		.drag-hit-deck {
72			position: absolute;
73			inset: 0;
74			z-index: 2147483646;
75			pointer-events: auto;
76		}
77
78		:host([data-dragging]) {
79			touch-action: none;
80		}
81
82		:host(:not([fill])[bounds-relative]) {
83			position: absolute;
84		}
85
86		:host(:not([fill]):not([bounds-relative])) {
87			position: fixed;
88		}
89	`;let It=At;Ct([pt({type:Boolean,reflect:!0})],It.prototype,"fill"),Ct([pt({type:Boolean,reflect:!0,attribute:"dragging-disabled"})],It.prototype,"draggingDisabled"),Ct([pt({type:Boolean,reflect:!0,attribute:"overlay-drag"})],It.prototype,"overlayDrag"),Ct([pt({type:Boolean,reflect:!0,attribute:"snap-drop-to-corner"})],It.prototype,"snapDropToCorner"),Ct([pt({attribute:!1})],It.prototype,"position"),Ct([pt({attribute:!1})],It.prototype,"size"),Ct([pt({attribute:!1})],It.prototype,"snapConfig"),Ct([pt({attribute:!1})],It.prototype,"boundsElement"),Ct([pt({type:Number,attribute:"drag-start-threshold-px"})],It.prototype,"dragStartThresholdPx")},8601:function(t,e,n){"use strict";n.d(e,{B:function(){return HM},I:function(){return Ql},M:function(){return Df},S:function(){return G_},U:function(){return pt},a:function(){return Wb},b:function(){return KM},c:function(){return WM},d:function(){return XM},e:function(){return TV},f:function(){return tU},g:function(){return b},h:function(){return GC},i:function(){return aE},j:function(){return E_},k:function(){return rU},l:function(){return ff},m:function(){return yz},n:function(){return cE},o:function(){return $y},r:function(){return v},s:function(){return __},t:function(){return NM},w:function(){return p_}});var i,r,o,a,s,l,c,d,u,p=n(41304),h=t=>{throw TypeError(t)},m=(t,e,n)=>e.has(t)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),g=(t,e,n)=>(((t,e,n)=>{e.has(t)||h("Cannot access private method")})(t,e),n);function v(t){return(0,p.n)({...t,state:!0,attribute:!1})}const f=(t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n);function b(t,e){return(e,n,i)=>f(e,n,{get(){return this,this.renderRoot?.querySelector(t)??null}})}let _;function E(t){return(e,n)=>f(e,n,{get(){return(this.renderRoot??(_??=document.createDocumentFragment())).querySelectorAll(t)}})}
89let y=class extends Event{constructor(t,e,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=n,this.subscribe=i??!1}},S=class{constructor(t,e,n,i){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1}else this.context=e,this.callback=n,this.subscribe=i??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new y(this.context,this.host,this.t,this.subscribe))}},T=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}},C=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},w=class extends T{constructor(t,e,n){super(void 0!==e.context?e.initialValue:n),this.onContextRequest=t=>{if(t.context!==this.context)return;const e=t.contextTarget??t.composedPath()[0];e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{if(t.context!==this.context)return;if((t.contextTarget??t.composedPath()[0])===this.host)return;const e=new Set;for(const[t,{consumerHost:n}]of this.subscriptions)e.has(t)||(e.add(t),n.dispatchEvent(new y(this.context,n,t,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new C(this.context,this.host))}};function A({context:t}){return(e,n)=>{const i=new WeakMap;if("object"==typeof n)return{get(){return e.get.call(this)},set(t){return i.get(this).setValue(t),e.set.call(this,t)},init(e){return i.set(this,new w(this,{context:t,initialValue:e})),e}};{e.constructor.addInitializer((e=>{i.set(e,new w(e,{context:t}))}));const r=Object.getOwnPropertyDescriptor(e,n);let o;if(void 0===r){const t=new WeakMap;o={get(){return t.get(this)},set(e){i.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=r.set;o={...r,set(e){i.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(e,n,o)}}}function I({context:t,subscribe:e}){return(n,i)=>{"object"==typeof i?i.addInitializer((function(){new S(this,{context:t,callback:t=>{n.set.call(this,t)},subscribe:e})})):n.constructor.addInitializer((n=>{new S(n,{context:t,callback:t=>{n[i]=t},subscribe:e})}))}}const O="media-element-context",R="dictionary-context",x="container-context",L="emit-context",k="theme-context",P="breakpoint-context",D="ui-kit-context",N="theme-token-context",M="command-bus-context",U="state-stream-context",B="feature-flags-context",V="local-state-context",F="logger-context",z="fullscreen-target-context",$="text-direction-context";var H=Object.defineProperty,G=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&H(e,n,o),o};function Y(t){class e extends t{}return G([I({context:O})],e.prototype,"mediaElement"),G([I({context:R,subscribe:!0})],e.prototype,"dictionary"),G([I({context:x})],e.prototype,"container"),G([I({context:L})],e.prototype,"emit"),G([I({context:k})],e.prototype,"theme"),G([I({context:P})],e.prototype,"breakpoints"),G([I({context:D})],e.prototype,"uiKit"),G([I({context:N})],e.prototype,"themeTokens"),G([I({context:M})],e.prototype,"commandBus"),G([I({context:U})],e.prototype,"stateStream$"),G([I({context:B})],e.prototype,"featureFlags"),G([I({context:V})],e.prototype,"localState"),G([I({context:F})],e.prototype,"logger"),G([I({context:z})],e.prototype,"fullscreenTarget"),G([I({context:$,subscribe:!0})],e.prototype,"textDirection"),e}var j=Object.defineProperty,K=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&j(e,n,o),o};const W="ltr";function q(t){return"rtl"===t}const X=new Set;let Z=null,Q=!1;const J=["pointerdown","keydown","focusin"],tt={capture:!0};function et(t){!function(t){const e=t.composedPath();for(const t of e)if(t instanceof HTMLElement&&X.has(t))return void(Z=t);Z=null}(t)}function nt(t){t&&(X.add(t),function(){if(!Q&&"undefined"!=typeof document){for(const t of J)document.addEventListener(t,et,tt);Q=!0}}())}function it(t){if(X.size<2)return!0;const e=Z&&X.has(Z)?Z:null;return!e||!t||e===t}function rt(t){if(!t)return!1;const e=t;if("function"==typeof e.checkVisibility)return e.checkVisibility();let n=t;for(;n instanceof Element;){const t=getComputedStyle(n);if("none"===t.display||"hidden"===t.visibility)return!1;const e=n.parentNode;n=e instanceof ShadowRoot?e.host:e}return!0}const ot=["a[href]","area[href]","button","input","select","textarea","details","summary","iframe","object","embed","audio[controls]","video[controls]",'[tabindex]:not
89([tabindex="-1"])','[contenteditable]:not([contenteditable="false"])'].join(",");function at(t){const e=[],n=[t];for(;n.length>0;){const t=n.pop();if(t){t instanceof HTMLElement&&t.matches(ot)&&!t.disabled&&e.push(t),t instanceof Element&&t.shadowRoot&&n.push(t.shadowRoot);for(const e of Array.from(t.children))n.push(e)}}return e}function st(t,e){const n=()=>{};if(!t||!e)return n;const i=[];let r=e,o=!1;for(;r;){if(r===t){o=!0;break}const e=r.parentNode;if(!e)break;const n=e.children;if(n)for(const t of Array.from(n))t!==r&&t instanceof HTMLElement&&!t.inert&&"true"!==t.getAttribute("aria-hidden")&&i.push(t);r=e instanceof ShadowRoot?e.host:e}if(!o)return n;const a=[];for(const t of i)for(const e of at(t))a.push({element:e,hadAttribute:e.hasAttribute("tabindex"),previousValue:e.getAttribute("tabindex")}),e.setAttribute("tabindex","-1");return()=>{for(const{element:t,hadAttribute:e,previousValue:n}of a)e&&null!==n?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");a.length=0}}const lt=p.i`
90	:host(:lang(th)) [class*="locale-"],
91	:host(:lang(ar)) [class*="locale-"] {
92		letter-spacing: 0;
93	}
94
95	:host(:lang(th)) .locale-h1 {
96		font-size: 44px;
97		font-weight: 400;
98		line-height: 64px;
99	}
100
101	:host(:lang(ar)) .locale-h1,
102	:host(:lang(he)) .locale-h1 {
103		font-size: 44px;
104		font-weight: 700;
105		line-height: 54px;
106	}
107
108	:host(:lang(he)) .locale-h1 {
109		letter-spacing: 0.11px;
110	}
111
112	:host(:lang(th)) .locale-h3 {
113		font-size: 24px;
114		font-weight: 400;
115		line-height: 34px;
116	}
117
118	:host(:lang(ar)) .locale-h3,
119	:host(:lang(he)) .locale-h3 {
120		font-size: 24px;
121		font-weight: 700;
122		line-height: 28px;
123	}
124
125	:host(:lang(he)) .locale-h3 {
126		letter-spacing: 0.11px;
127	}
128
129	:host(:lang(th)) .locale-h4-heavy {
130		font-size: 20px;
131		font-weight: 500;
132		line-height: 31px;
133	}
134
135	:host(:lang(ar)) .locale-h4-heavy,
136	:host(:lang(he)) .locale-h4-heavy {
137		font-size: 20px;
138		font-weight: 700;
139		line-height: 28px;
140	}
141
142	:host(:lang(he)) .locale-h4-heavy {
143		letter-spacing: 0.11px;
144	}
145
146	:host(:lang(th)) .locale-h5 {
147		font-size: 20px;
148		font-weight: 300;
149		line-height: 31px;
150	}
151
152	:host(:lang(ar)) .locale-h5,
153	:host(:lang(he)) .locale-h5 {
154		font-size: 20px;
155		font-weight: 400;
156		line-height: 32px;
157	}
158
159	:host(:lang(he)) .locale-h5 {
160		letter-spacing: -0.1px;
161	}
162
163	:host(:lang(th)) .locale-body-headline {
164		font-size: 15px;
165		font-weight: 400;
166		line-height: 24px;
167	}
168
169	:host(:lang(ar)) .locale-body-headline,
170	:host(:lang(he)) .locale-body-headline {
171		font-size: 15px;
172		font-weight: 700;
173		line-height: 24px;
174	}
175
176	:host(:lang(he)) .locale-body-headline {
177		letter-spacing: 0.11px;
178	}
179
180	:host(:lang(th)) .locale-body-headline-large {
181		font-size: 20px;
182		font-weight: 400;
183		line-height: 32px;
184	}
185
186	:host(:lang(ar)) .locale-body-headline-large,
187	:host(:lang(he)) .locale-body-headline-large {
188		font-size: 20px;
189		font-weight: 700;
190		line-height: 32px;
191	}
192
193	:host(:lang(he)) .locale-body-headline-large {
194		letter-spacing: 0.11px;
195	}
196
197	:host(:lang(ar)) .locale-body-large,
198	:host(:lang(he)) .locale-body-large {
199		font-size: 20px;
200		font-weight: 400;
201		line-height: 32px;
202	}
203
204	:host(:lang(th)) .locale-body-large {
205		font-size: 20px;
206		font-weight: 300;
207		line-height: 32px;
208	}
209
210	:host(:lang(he)) .locale-body-large {
211		letter-spacing: -0.1px;
212	}
213
214	:host(:lang(th)) .locale-body-copy {
215		font-size: 15px;
216		font-weight: 300;
217		line-height: 24px;
218	}
219
220	:host(:lang(ar)) .locale-body-copy,
221	:host(:lang(he)) .locale-body-copy {
222		font-size: 15px;
223		font-weight: 400;
224		line-height: 24px;
225	}
226
227	:host(:lang(he)) .locale-body-copy {
228		letter-spacing: -0.1px;
229	}
230
231	:host(:lang(th)) .locale-metadata {
232		font-size: 14px;
233		font-weight: 300;
234		line-height: 21px;
235	}
236
237	:host(:lang(ar)) .locale-metadata,
238	:host(:lang(he)) .locale-metadata {
239		font-size: 12px;
240		font-weight: 400;
241		line-height: 18px;
242	}
243
244	:host(:lang(he)) .locale-metadata {
245		letter-spacing: -0.1px;
246	}
247
248	:host(:lang(th)) .locale-metadata-heavy {
249		font-size: 14px;
250		font-weight: 400;
251		line-height: 21px;
252	}
253
254	:host(:lang(ar)) .locale-metadata-heavy,
255	:host(:lang(he)) .locale-metadata-heavy {
256		font-size: 12px;
257		font-weight: 700;
258		line-height: 18px;
259	}
260
261	:host(:lang(he)) .locale-metadata-heavy {
262		letter-spacing: 0.11px;
263	}
264
265	:host(:lang(th)) .locale-overline-large-heavy {
266		font-size: 18px;
267		font-weight: 400;
268		line-height: 28px;
269	}
270
271	:host(:lang(ar)) .locale-overline-large-heavy {
272		font-size: 17px;
273		font-weight: 500;
274		line-height: 26px;
275	}
276
277	:host(:lang(he)) .locale-overline-large-heavy {
278		font-size: 20px;
279		font-weight: 500;
280		line-height: 31px;
281		letter-spacing: 0.75px;
282	}
283
284	:host(:lang(th)) .locale-subhead-promo {
285		font-size: 22px;
286		font-weight: 300;
287		line-height: 36px;
288	}
289
290	:host(:lang(ar)) .locale-subhead-promo,
291	:host(:lang(he)) .locale-subhead-promo {
292		font-size: 22px;
293		font-weight: 400;
294		line-height: 36px;
295	}
296
297	:host(:lang(he)) .locale-subhead-promo {
298		letter-spacing: -0.1px;
299	}
300
301	:host(:lang(th)) .locale-subhead-promo-heavy {
302		font-size: 22px;
303		font-weight: 400;
304		line-height: 36px;
305	}
306
307	:host(:lang(ar)) .locale-subhead-promo-heavy,
308	:host(:lang(he)) .locale-subhead-promo-heavy {
309		font-size: 22px;
310		font-weight: 700;
311		line-height: 36px;
312	}
313
314	:host(:lang(he)) .locale-subhead-promo-heavy {
315		letter-spacing: 0.11px;
316	}
317
318	:host(:lang(th)) .locale-button-focused {
319		font-size: 19px;
320		font-weight: 500;
321		line-height: 30px;
322	}
323
324	:host(:lang(he)) .locale-button-focused {
325		font-size: 21px;
326		font-weight: 500;
327		line-height: 34px;
328		letter-spacing: 0.88px;
329	}
330
331	:host(:lang(ar)) .locale-button-focused {
332		font-size: 18px;
333		font-weight: 500;
334		line-height: 29px;
335	}
336
337	:host(:lang(th)) .locale-text-button-focused {
338		font-size: 15px;
339		font-weight: 500;
340		line-height: 24px;
341	}
342
343	:host(:lang(ar)) .locale-text-button-focused,
344	:host(:lang(he)) .locale-text-button-focused {
345		font-size: 15px;
346		font-weight: 700;
347		line-height: 24px;
348	}
349
350	:host(:lang(he)) .locale-text-button-focused {
351		letter-spacing: 0.11px;
352	}
353
354	:host(:lang(th)) .locale-page-nav-small-focused {
355		font-size: 16px;
356		font-weight: 500;
357		line-height: 24px;
358	}
359
360	:host(:lang(ar)) .locale-page-nav-small-focused {
361		font-size: 16px;
362		font-weight: 500;
363		line-height: 17px;
364	}
365
366	:host(:lang(he)) .locale-page-nav-small-focused {
367		font-size: 18px;
368		font-weight: 500;
369		line-height: 20px;
370		letter-spacing: 0.75px;
371	}
372
373	:host(:lang(ar)) .locale-body-copy-no-size,
374	:host(:lang(he)) .locale-body-copy-no-size {
375		font-weight: 400;
376		line-height: 24px;
377	}
378
379	:host(:lang(th)) .locale-body-copy-no-size {
380		font-weight: 300;
381		line-height: 24px;
382	}
383
384	:host(:lang(he)) .locale-body-copy-no-size {
385		letter-spacing: -0.1px;
386	}
387`;var ct=Object.defineProperty,dt=Object.getOwnPropertyDescriptor,ut=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?dt(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&ct(e,n,o),o};let pt=class extends p.a{constructor(){super(...arguments),this.extraClasses=""}connectedCallback(){super.connectedCallback(),this.appliedTextDirection=this.textDirection,this.setAttribute("dir",this.textDirection??W)}willUpdate(t){super.willUpdate(t),this.textDirection!==this.appliedTextDirection&&(this.appliedTextDirection=this.textDirection,this.setAttribute("dir",this.textDirection??W))}createRenderRoot(){const t=super.createRenderRoot();if(t instanceof ShadowRoot){const e=lt.styleSheet;e&&(t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}return t}static define(t,e=this,n={}){customElements.get(t)?console.warn(`core-ui attempted to register custom element "${t}", but it is already registered.`,{name:t,elementConstructor:e}):customElements.define(t,class extends e{},n)}getQAElements(){}moveFocusTo(t,e){return function(t,e,n){return!(!(i=e)||"function"!=typeof i.focus||!it(t)||(e.focus({...n,preventScroll:!0}),0));var i}(this.container,t,e)}};pt.version="4.1.3",ut([(0,p.n)({type:String})],pt.prototype,"extraClasses",2),pt=ut([Y,function(t){class e extends t{constructor(){super(...arguments),this.tooltipPosition="top-center",this.shouldRenderTooltip=!0,this.shouldTooltipStayOpen=!1,this.tooltipLabel="",this.shouldShowTooltipOnFocus=!1,this.isTooltipHidden=!0}}return K([(0,p.n)({type:String})],e.prototype,"tooltipPosition"),K([(0,p.n)({type:Boolean})],e.prototype,"shouldRenderTooltip"),K([(0,p.n)({type:Boolean})],e.prototype,"shouldTooltipStayOpen"),K([(0,p.n)({type:String})],e.prototype,"tooltipLabel"),K([(0,p.n)({type:Boolean})],e.prototype,"shouldShowTooltipOnFocus"),K([(0,p.n)()],e.prototype,"isTooltipHidden"),e}],pt);var ht=Object.defineProperty,mt=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&ht(e,n,o),o};const gt=class extends pt{constructor(){super(...arguments),this.tabs=[],this.activeTabName="",this._activeTabContent=null}willUpdate(t){(t.has("activeTabName")||t.has("tabs"))&&this._updateActiveTabContent()}connectedCallback(){if(super.connectedCallback(),this.tabs.length>0){const t=this.tabs.find((t=>t.name===this.activeTabName));this.activeTabName=t?this.activeTabName:this.tabs[0].name,this._updateActiveTabContent()}}_updateActiveTabContent(){const t=this.tabs.find((t=>t.name===this.activeTabName));this._activeTabContent=t?t.content:null}_handleTabClick(t){this.activeTabName=t,this.dispatchEvent(new CustomEvent("tab-change",{bubbles:!0,composed:!0,detail:{activeTabName:t}}))}render(){return p.x`
388			<div class="tab-view">
389				<div class="tab-headers">
390					${this.tabs.map((t=>p.x`
391							<button
392								class="tab-header ${this.activeTabName===t.name?"active":""}"
393								@click=${()=>this._handleTabClick(t.name)}
394							>
395								${t.name}
396							</button>
397						`))}
398				</div>
399				<div class="tab-content">${this._activeTabContent}</div>
400			</div>
401		`}};gt.styles=p.i`
402		:host {
403			block-size: 100%;
404			display: block;
405			inline-size: 100%;
406			min-block-size: 0;
407		}
408
409		.tab-view {
410			display: flex;
411			flex-direction: column;
412			block-size: 100%;
413			min-block-size: 0;
414		}
415
416		.tab-headers {
417			border-block-end: var(--tab-view-header-border, 1px solid #ccc);
418			display: flex;
419			flex-wrap: wrap;
420			gap: var(--tab-view-header-gap, 0);
421			padding-block-end: var(--tab-view-header-padding-block-end, 0);
422		}
423
424		.tab-header {
425			background: var(--tab-view-tab-background, none);
426			border: var(--tab-view-tab-border, none);
427			border-radius: var(--tab-view-tab-border-radius, 0);
428			color: var(--tab-view-tab-color, white);
429			cursor: pointer;
430			font-size: var(--tab-view-tab-font-size, 1rem);
431			padding: var(--tab-view-tab-padding, 4px 15px);
432		}
433
434		.tab-header.active {
435			background: var(--tab-view-tab-active-background, transparent);
436			border-color: var(--tab-view-tab-active-border-color, currentColor);
437			color: var(--tab-view-tab-active-color, var(--tab-view-tab-color, white));
438			font-weight: bold;
439		}
440
441		.tab-content {
442			flex: 1;
443			min-block-size: 0;
444			overflow: auto;
445			padding: var(--tab-view-content-padding, 15px);
446		}
447	`;let vt=gt;
vendor: 4,357 bytes, line 447
447mt([(0,p.n)({type:Array})],vt.prototype,"tabs"),mt([(0,p.n)({type:String})],vt.prototype,"activeTabName"),mt([v()],vt.prototype,"_activeTabContent");var ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function bt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _t,Et={exports:{}},yt=function(){if(_t)return Et.exports;_t=1;var t,e="object"==typeof Reflect?Reflect:null,n=e&&"function"==typeof e.apply?e.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};t=e&&"function"==typeof e.ownKeys?e.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function r(){r.init.call(this)}Et.exports=r,Et.exports.once=function(t,e){return new Promise((function(n,i){function r(n){t.removeListener(e,o),i(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),n([].slice.call(arguments))}m(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,r)}))},r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var o=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function s(t){return void 0===t._maxListeners?r.defaultMaxListeners:t._maxListeners}function l(t,e,n,i){var r,o,l,c;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),l=o[e]),void 0===l)l=o[e]=n,++t._eventsCount;else if("function"==typeof l?l=o[e]=i?[n,l]:[l,n]:i?l.unshift(n):l.push(n),(r=s(t))>0&&l.length>r&&!l.warned){l.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=t,d.type=e,d.count=l.length,c=d,console&&console.warn&&console.warn(c)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=c.bind(i);return r.listener=n,i.wrapFn=r,r}function u(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):h(r,r.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function m(t,e,n,i){if("function"==typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){i.once&&t.removeEventListener(e,r),n(o)}))}}return Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");o=t}}),r.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},r.prototype.getMaxListeners=function(){return s(this)},r.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];
447if(void 0===l)return!1;if("function"==typeof l)n(l,this,e);else{var c=l.length,d=h(l,c);for(i=0;i<c;++i)n(d[i],this,e)}return!0},r.prototype.addListener=function(t,e){return l(this,t,e,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(t,e){return l(this,t,e,!0)},r.prototype.once=function(t,e){return a(e),this.on(t,d(this,t,e)),this},r.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,d(this,t,e)),this},r.prototype.removeListener=function(t,e){var n,i,r,o,s;if(a(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,s||e)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},r.prototype.listeners=function(t){return u(this,t,!0)},r.prototype.rawListeners=function(t){return u(this,t,!1)},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},r.prototype.listenerCount=p,r.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]},Et.exports}();const St=bt(yt),Tt=p.i`
448	:host {
449		position: relative;
450		z-index: 1;
451	}
452`,Ct="ui-kit-resize-event";function wt(t){return class extends t{constructor(){super(...arguments),this.resizeObserver=null}disconnectedCallback(){super.disconnectedCallback(),this.cleanupResizeObserver()}updated(t){super.updated(t),this.setupContainerObserver()}setupContainerObserver(){const{breakpoints:t,container:e}=this;e&&t&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver((t=>{window.requestAnimationFrame((()=>{t.forEach((t=>{const{width:n,height:i}=t.contentRect,r=new CustomEvent(Ct,{detail:{width:n,height:i,container:e},bubbles:!0,composed:!0});window.dispatchEvent(r)}))}))})),this.resizeObserver.observe(e))}cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}}}const At=/(application|accessibility|iscp|media)\..+$/;function It(t={},e=At){return(n,i,r={pattern:"",replacement:""})=>{const{pattern:o,replacement:a}=r,s=o&&a,l=t&&t[n],c=void 0!==i;return l&&!e.test(l)?s?t[n].replace(o,a):t[n]:c?s?i.replace(o,a):i:n}}var Ot,Rt,xt=(t=>(t.ACTIVE="active",t.BACKGROUND_RUNNING="background_running",t.PAUSED_VISIBLE="paused_visible",t.PAUSED_HIDDEN="paused_hidden",t.DISMISS="dismiss",t))(xt||{}),Lt=(t=>(t.CUMULATIVE="cumulative",t.CONSECUTIVE="consecutive",t))(Lt||{}),kt={exports:{}},Pt=(Ot||(Ot=1,Rt=kt,function(t){var e,n,i,r,o,a,s,l,c,d,u,p,h,m,g,v,f,b;function _(t){return null!=t}function E(t){return"number"==typeof t&&t>h&&t<m}function y(t){return"number"==typeof t&&t%1==0}function S(t,e){return E(t)&&t>e}function T(t,e){return E(t)&&t<e}function C(t,e){return E(t)&&t>=e}function w(t,e){return E(t)&&t<=e}function A(t){return"string"==typeof t}function I(t){return A(t)&&""!==t}function O(t){return"[object Object]"===c.call(t)}function R(t,e){for(var n in t)if(l.call(t,n)&&e(n,t[n]))return!0;return!1}function x(t,e){try{return t instanceof e}catch(t){return!1}}function L(t){return _(t)&&t.length>=0}function k(t){return g?_(t)&&N(t[Symbol.iterator]):L(t)}function P(t,e){var n,i;if(!_(t))return!1;if(f&&x(t,Set))return t.has(e);if(A(t))return-1!==t.indexOf(e);if(g&&t[Symbol.iterator]&&N(t.values)){n=t.values();do{if((i=n.next()).value===e)return!0}while(!i.done);return!1}return R(t,(function(t,n){return n===e}))}function D(t,e){return!!_(t)&&(v&&x(t,Map)?t.has(e):!(k(t)&&!E(+e)||!t[e]))}function N(t){return"function"==typeof t}function M(t,e){for(var n in t)l.call(t,n)&&e(n,t[n])}function U(t,e){var n;for(n=0;n<t.length;n+=1)if(t[n]===e)return e;return!e}function B(t,e){var n,i;for(n in t)if(l.call(t,n)){if(O(i=t[n])&&B(i,e)===e)return e;if(i===e)return e}return!e}function V(t,e){return M(e,(function(e,n){t[e]=n})),t}function F(t,e){return function(){var n=arguments,i=t.l||t.length,r=n[i],o=n[i+1];return $(t.apply(null,n),I(r)?r:e.replace("{a}",z(n[0])).replace("{e}",z(n[1])).replace("{e2}",z(n[2])).replace("{t}",(function(){var t=n[1];return t&&t.name?t.name:t})),N(o)?o:TypeError),n[0]}}function z(t){return function(){return A(t)?'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"':t&&!0!==t&&t.constructor&&!x(t,RegExp)&&"number"!=typeof t?t.constructor.name:t}}function $(t,e,n){if(t)return t;throw new(n||Error)(e||"assert failed")}function H(t){var e=function(){return G(t.apply(null,arguments))};return e.l=t.length,e}function G(t){return!t}function Y(t,e,n){var i=function(){var i,r;if(i=arguments[0],"maybe"===t&&o.assigned(i))return!0;
452if(!e(i))return!1;i=function(t,e){switch(t){case L:return u.call(e);case O:return d(e).map((function(t){return e[t]}));default:return e}}(e,i),r=u.call(arguments,1);try{i.forEach((function(e){if(("maybe"!==t||_(e))&&!n.apply(null,[e].concat(r)))throw 0}))}catch(t){return!1}return!0};return i.l=n.length,i}function j(t,e){return K([t,n,e,""])}function K(t){var n,i,r;return n=t.shift(),i=t.pop(),r=t.pop(),M(t.pop(),(function(o,a){var s=e[o];s&&i&&(s=s.replace("to",i+"to")),Object.defineProperty(r,o,{configurable:!1,enumerable:!0,writable:!1,value:n.apply(null,t.concat(a,s))})})),r}function W(t,e,n){return K([t,e,{},n])}function q(t,e){s.forEach((function(i){t[i].of=W(e,n[i].of)}))}e={},n={},[{n:"equal",f:function(t,e){return t===e},s:"equal {e}"},{n:"undefined",f:function(t){return void 0===t},s:"be undefined"},{n:"null",f:function(t){return null===t},s:"be null"},{n:"assigned",f:_,s:"be assigned"},{n:"primitive",f:function(t){var e;switch(t){case null:case void 0:case!1:case!0:return!0}return"string"==(e=typeof t)||"number"===e||g&&"symbol"===e},s:"be primitive type"},{n:"contains",f:P,s:"contain {e}"},{n:"in",f:function(t,e){return P(e,t)},s:"be in {e}"},{n:"containsKey",f:D,s:"contain key {e}"},{n:"keyIn",f:function(t,e){return D(e,t)},s:"be key in {e}"},{n:"zero",f:function(t){return 0===t},s:"be 0"},{n:"one",f:function(t){return 1===t},s:"be 1"},{n:"infinity",f:function(t){return t===h||t===m},s:"be infinity"},{n:"number",f:E,s:"be Number"},{n:"integer",f:y,s:"be integer"},{n:"float",f:function(t){return E(t)&&t%1!=0},s:"be non-integer number"},{n:"even",f:function(t){return"number"==typeof t&&t%2==0},s:"be even number"},{n:"odd",f:function(t){return y(t)&&t%2!=0},s:"be odd number"},{n:"greater",f:S,s:"be greater than {e}"},{n:"less",f:T,s:"be less than {e}"},{n:"between",f:function(t,e,n){return e<n?S(t,e)&&t<n:T(t,e)&&t>n},s:"be between {e} and {e2}"},{n:"greaterOrEqual",f:C,s:"be greater than or equal to {e}"},{n:"lessOrEqual",f:w,s:"be less than or equal to {e}"},{n:"inRange",f:function(t,e,n){return e<n?C(t,e)&&t<=n:w(t,e)&&t>=n},s:"be in the range {e} to {e2}"},{n:"positive",f:function(t){return S(t,0)},s:"be positive number"},{n:"negative",f:function(t){return T(t,0)},s:"be negative number"},{n:"string",f:A,s:"be String"},{n:"emptyString",f:function(t){return""===t},s:"be empty string"},{n:"nonEmptyString",f:I,s:"be non-empty string"},{n:"match",f:function(t,e){return A(t)&&!!t.match(e)},s:"match {e}"},{n:"boolean",f:function(t){return!1===t||!0===t},s:"be Boolean"},{n:"object",f:O,s:"be Object"},{n:"emptyObject",f:function(t){return O(t)&&!R(t,(function(){return!0}))},s:"be empty object"},{n:"nonEmptyObject",f:function(t){return O(t)&&R(t,(function(){return!0}))},s:"be non-empty object"},{n:"instanceStrict",f:x,s:"be instanceof {t}"},{n:"thenable",f:function(t){return _(t)&&N(t.then)},s:"be promise-like"},{n:"instance",f:function(t,e){try{return x(t,e)||t.constructor.name===e.name||c.call(t)==="[object "+e.name+"]"}catch(t){return!1}},s:"be {t}"},{n:"like",f:function t(e,n){var i;if(!_(e)||!_(n))return e===n;for(i in n)if(l.call(n,i)){if(!l.call(e,i)||typeof e[i]!=typeof n[i])return!1;if(O(e[i])&&!t(e[i],n[i]))return!1}return!0},s:"be like {e}"},{n:"identical",f:function t(e,n){var i;if(!_(e)||!_(n))return e===n;for(i in n)if(l.call(n,i)){if(!l.call(e,i))return!1;if(O(e[i])){if(!t(e[i],n[i]))return!1}else if(e[i]!==n[i])return!1}for(i in e)if(l.call(e,i)){if(!l.call(n,i))return!1;if(O(n[i])){if(!t(n[i],e[i]))return!1}else if(n[i]!==e[i])return!1}return!0},s:"be identical to {e}"},{n:"array",f:function(t){return p(t)},s:"be Array"},{n:"emptyArray",f:function(t){return p(t)&&0===t.length},s:"be empty array"},{n:"nonEmptyArray",f:function(t){return p(t)&&t.length>0},s:"be non-empty array"},{n:"arrayLike",f:L,s:"be array-like"},{n:"iterable",f:k,s:"be iterable"},{n:"date",f:function(t){return x(t,Date)&&y(t.getTime())},s:"be valid Date"},{n:"function",f:N,s:"be Function"},{n:"hasLength",f:function(t,e){return _(t)&&t.length===e},s:"have length {e}"},{n:"throws",f:function(t){if(!N(t))return!1;try{t()}catch(t){return!0}return!1},s:"throw"}].map((function(t){var i=t.n;e[i]="assert failed: expected {a} to "+t.s,n[i]=t.f})),i={map:function t(e,n){var i;if(i=p(e)?[]:{},N(n))M(e,(function(t,e){i[t]=n(e)}));else{p(n)||r.object(n);var a=d(e||{});M(n,(function(n,r){a.some((function(t,e){return t===n&&(a.splice(e,1),!0)})),N(r)?o.assigned(e)?i[n]=!!r.m:i[n]=r(e[n]):i[n]=t(e[n],r)}))}return i},all:function(t){return p(t)?U(t,!1):(r.object(t),B(t,!1))},any:function(t){return p(t)?U(t,!0):(r.object(t),B(t,!0))}},s=["array","arrayLike","iterable","object"],l=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=Object.keys,u=Array.prototype.slice,p=Array.isArray,h=Number.NEGATIVE_INFINITY,m=Number.POSITIVE_INFINITY,g="function"==typeof Symbol,v="function"==typeof Map,f="function"==typeof Set,i=V(i,n),r=j(F,$),o=j(H,G),a=j((function(t){var e=function(){return!!o.assigned(arguments[0])||t.apply(null,arguments)};return e.l=t.length,e.m=!0,e}),(function(t){return!_(t)||t}
452)),r.not=W(F,o,"not "),r.maybe=W(F,a,"maybe "),s.forEach((function(t){n[t].of=K([Y.bind(null,null),n[t],n,{},""])})),q(r,F),q(o,H),s.forEach((function(t){a[t].of=K([Y.bind(null,"maybe"),n[t],n,{},""]),r.maybe[t].of=W(F,a[t].of),r.not[t].of=W(F,o[t].of)})),b=V(i,{assert:r,not:o,maybe:a}),null!==Rt&&Rt.exports?Rt.exports=b:t.check=b}(kt.exports)),kt.exports);const Dt=bt(Pt);var Nt,Mt,Ut,Bt,Vt,Ft,zt,$t,Ht,Gt,Yt,jt,Kt,Wt,qt,Xt,Zt,Qt,Jt,te,ee,ne,ie,re,oe,ae,se,le;function ce(){return Mt?Nt:(Mt=1,Nt=function(t){return function(){return t}})}function de(){if(Ft)return Vt;Ft=1;var t=(Bt?Ut:(Bt=1,Ut=function(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}))();return Vt=t}function ue(){if(Gt)return Ht;Gt=1;var t="object"==typeof ft&&ft&&ft.Object===Object&&ft;return Ht=t}function pe(){if(jt)return Yt;jt=1;var t=ue(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Yt=n}function he(){if(Wt)return Kt;Wt=1;var t=pe().Symbol;return Kt=t}function me(){if(te)return Jt;te=1;var t=he(),e=function(){if(Xt)return qt;Xt=1;var t=he(),e=Object.prototype,n=e.hasOwnProperty,i=e.toString,r=t?t.toStringTag:void 0;return qt=function(t){var e=n.call(t,r),o=t[r];try{t[r]=void 0;var a=!0}catch(t){}var s=i.call(t);return a&&(e?t[r]=o:delete t[r]),s}}(),n=function(){if(Qt)return Zt;Qt=1;var t=Object.prototype.toString;return Zt=function(e){return t.call(e)}}(),i=t?t.toStringTag:void 0;return Jt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?e(t):n(t)}}function ge(){return ne?ee:(ne=1,ee=function(t){return null!=t&&"object"==typeof t})}function ve(){if(ae)return oe;ae=1;var t=function(){if(re)return ie;re=1;var t=me(),e=ge();return ie=function(n){return e(n)&&"[object Arguments]"==t(n)}}(),e=ge(),n=Object.prototype,i=n.hasOwnProperty,r=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&i.call(t,"callee")&&!r.call(t,"callee")};return oe=o}function fe(){if(le)return se;le=1;var t=Array.isArray;return se=t}var be,_e,Ee,ye,Se,Te,Ce,we,Ae,Ie,Oe,Re={exports:{}};function xe(){return Ee||(Ee=1,function(t,e){var n=pe(),i=_e?be:(_e=1,be=function(){return!1}),r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,a=o&&o.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;t.exports=s}(Re,Re.exports)),Re.exports}function Le(){if(Se)return ye;Se=1;var t=/^(?:0|[1-9]\d*)$/;return ye=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}}function ke(){return Ce?Te:(Ce=1,Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991})}Re.exports;var Pe,De,Ne,Me,Ue,Be,Ve,Fe,ze,$e,He,Ge,Ye,je,Ke,We,qe,Xe,Ze,Qe,Je,tn,en,nn,rn,on,an,sn,ln,cn,dn,un={exports:{}};function pn(){if(Ne)return De;Ne=1;var t=function(){if(Ae)return we;Ae=1;var t=me(),e=ke(),n=ge(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,we=function(r){return n(r)&&e(r.length)&&!!i[t(r)]}}(),e=Oe?Ie:(Oe=1,Ie=function(t){return function(e){return t(e)}}),n=(Pe||(Pe=1,function(t,e){var n=ue(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i&&n.process,a=function(){try{return r&&r.require&&r.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(un,un.exports)),un.exports),i=n&&n.isTypedArray,r=i?e(i):t;return De=r}function hn(){if(Ue)return Me;Ue=1;var t=$t?zt:($t=1,zt=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}),e=ve(),n=fe(),i=xe(),r=Le(),o=pn(),a=Object.prototype.hasOwnProperty;return Me=function(s,l){var c=n(s),d=!c&&e(s),u=!c&&!d&&i(s),p=!c&&!d&&!u&&o(s),h=c||d||u||p,m=h?t(s.length,String):[],g=m.length;for(var v in s)!l&&!a.call(s,v)||h&&("length"==v||u&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||r(v,g))||m.push(v);return m}}function mn(){if(Ve)return Be;Ve=1;var t=Object.prototype;return Be=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}}function gn(){return ze?Fe:(ze=1,Fe=function(t,e){return function(n){return t(e(n))}})}function vn(){if(Ye)return Ge;Ye=1;var t=mn(),e=function(){if(He)return $e;He=1;var t=gn()(Object.keys,Object);return $e=t}(),n=Object.prototype.hasOwnProperty;return Ge=function(i){if(!t(i))return e(i);var r=[];for(var o in Object(i))n.call(i,o)&&"constructor"!=o&&r.push(o);return r}}function fn(){return Ke?je:(Ke=1,je=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)})}function bn(){if(qe)return We;qe=1;var t=me(),e=fn();return We=function(n){if(!e(n))return!1;var i=t(n);return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i}}function _n(){if(Ze)return Xe;Ze=1;var t=bn(),e=ke();return Xe=function(n){return null!=n&&e(n.length)&&!t(n)}}function En(){if(Je)return Qe;Je=1;var t=hn(),e=vn(),n=_n();return Qe=function(i){return n(i)?t(i):e(i)}}function yn(){return ln?sn:(ln=1,sn=function(t){return t})}un.exports;const Sn=bt(function(){if(dn)return cn;dn=1;var t=ce(),e=function(){if(an)return on;an=1;var t=function(){if(rn)return nn;rn=1;var t=function(){if(en)return tn;en=1;var t=de(),e=En();return tn=function(n,i){return n&&t(n,i,e)}}();return nn=function(e,n,i,r){return t(e,(function(t,e,o){n(r,i(t),e,o)})),r}}();return on=function(e,n){return function(i,r){return t(i,e,n(r),{})}}}(),n=yn(),i=Object.prototype.toString,r=e((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=i.call(e)),t[e]=n}),t(n));return cn=r}());var Tn,Cn;(Cn=Tn||(Tn={}))[Cn.TRACE=10]="TRACE",Cn[Cn.LOG=15]="LOG",Cn[Cn.DEBUG=20]="DEBUG",Cn[Cn.INFO=30]="INFO",Cn[Cn.WARN=40]="WARN",Cn[Cn.ERROR=50]="ERROR",Cn[Cn.SILENT=60]="SILENT";const wn=Sn(Tn),An=(t=Tn.WARN)=>{Dt.assert.contains(Tn,t,"Logger(level) needs valid LogLevel value");let e=t;const n={get logLevel(){return e},set logLevel(t){e=t},time:t=>{e>Tn.DEBUG||console.time(`[Disney Web Player - Time profiler] - ${t}`)},timeEnd:t=>{e>Tn.DEBUG||console.timeEnd(`[Disney Web Player - Time profiler] - ${t}`)}};return Object.keys(Tn).filter((t=>
452"SILENT"!==t)).forEach((t=>{const i=t.toLowerCase(),r=Tn[t];n[i]=(t,...n)=>{const i=((t,e,...n)=>(Dt.assert.contains(Tn,t,"LogEvent(logLevel, sourceOrMessage, ...args) needs a valid LogLevel"),{logLevel:t,toArgs:()=>[`(${wn[t]} - DisneyWebPlayer): `,e].concat(n)}))(r,t,...n);(t=>e=>{if(e.logLevel<t)return;const n=wn[e.logLevel].toLowerCase();console[n]?console[n](...e.toArgs()):console.log(...e.toArgs())})(e)(i)}})),n},In="@@btmp/CLIENT",On={PLAYBACK:{PLAY:`${In}/PLAYBACK/PLAY`},TIMECODE:{UPDATE:`${In}/TIMECODE/UPDATE`}},Rn={SKIP_BY_TYPE:"@@btmp/CLIENT_REQUEST/CASTING/SKIP_BY_TYPE"},xn="__disney_web_player_local_storage";var Ln,kn,Pn,Dn,Nn,Mn,Un,Bn,Vn,Fn,zn,$n,Hn,Gn,Yn,jn,Kn,Wn,qn,Xn,Zn,Qn,Jn,ti,ei,ni,ii,ri;function oi(){if(Bn)return Un;Bn=1;var t=Function.prototype.toString;return Un=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function ai(){if(Gn)return Hn;Gn=1;var t=function(){if(Fn)return Vn;Fn=1;var t=bn(),e=function(){if(Mn)return Nn;Mn=1;var t,e=function(){if(Dn)return Pn;Dn=1;var t=pe()["__core-js_shared__"];return Pn=t}(),n=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return Nn=function(t){return!!n&&n in t}}(),n=fn(),i=oi(),r=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Vn=function(o){return!(!n(o)||e(o))&&(t(o)?c:r).test(i(o))}}(),e=$n?zn:($n=1,zn=function(t,e){return null==t?void 0:t[e]});return Hn=function(n,i){var r=e(n,i);return t(r)?r:void 0}}function si(){if(Wn)return Kn;Wn=1;var t=ai()(pe(),"Map");return Kn=t}function li(){if(ni)return ei;ni=1;var t=function(){if(jn)return Yn;jn=1;var t=ai()(pe(),"DataView");return Yn=t}(),e=si(),n=function(){if(Xn)return qn;Xn=1;var t=ai()(pe(),"Promise");return qn=t}(),i=function(){if(Qn)return Zn;Qn=1;var t=ai()(pe(),"Set");return Zn=t}(),r=function(){if(ti)return Jn;ti=1;var t=ai()(pe(),"WeakMap");return Jn=t}(),o=me(),a=oi(),s="[object Map]",l="[object Promise]",c="[object Set]",d="[object WeakMap]",u="[object DataView]",p=a(t),h=a(e),m=a(n),g=a(i),v=a(r),f=o;return(t&&f(new t(new ArrayBuffer(1)))!=u||e&&f(new e)!=s||n&&f(n.resolve())!=l||i&&f(new i)!=c||r&&f(new r)!=d)&&(f=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,i=n?a(n):"";if(i)switch(i){case p:return u;case h:return s;case m:return l;case g:return c;case v:return d}return e}),ei=f}(kn=Ln||(Ln={})).LOCAL="local",kn.SESSION="session";const ci=bt(function(){if(ri)return ii;ri=1;var t=vn(),e=li(),n=ve(),i=fe(),r=_n(),o=xe(),a=mn(),s=pn(),l=Object.prototype.hasOwnProperty;return ii=function(c){if(null==c)return!0;if(r(c)&&(i(c)||"string"==typeof c||"function"==typeof c.splice||o(c)||s(c)||n(c)))return!c.length;var d=e(c);if("[object Map]"==d||"[object Set]"==d)return!c.size;if(a(c))return!t(c).length;for(var u in c)if(l.call(c,u))return!1;return!0}}());var di,ui,pi,hi,mi,gi,vi,fi,bi,_i,Ei,yi,Si,Ti,Ci,wi,Ai,Ii,Oi,Ri,xi,Li,ki,Pi,Di,Ni,Mi,Ui,Bi,Vi,Fi,zi,$i,Hi,Gi,Yi,ji,Ki,Wi,qi,Xi,Zi,Qi,Ji,tr,er,nr,ir,rr,or,ar,sr,lr,cr,dr,ur,pr,hr,mr,gr,vr,fr,br,_r;function Er(){return hi?pi:(hi=1,pi=function(t,e){return t===e||t!=t&&e!=e})}function yr(){if(gi)return mi;gi=1;var t=Er();return mi=function(e,n){for(var i=e.length;i--;)if(t(e[i][0],n))return i;return-1}}function Sr(){if(wi)return Ci;wi=1;var t=ui?di:(ui=1,di=function(){this.__data__=[],this.size=0}),e=function(){if(fi)return vi;fi=1;var t=yr(),e=Array.prototype.splice;return vi=function(n){var i=this.__data__,r=t(i,n);return!(r<0||(r==i.length-1?i.pop():e.call(i,r,1),--this.size,0))}}(),n=function(){if(_i)return bi;_i=1;var t=yr();return bi=function(e){var n=this.__data__,i=t(n,e);return i<0?void 0:n[i][1]}}(),i=function(){if(yi)return Ei;yi=1;var t=yr();return Ei=function(e){return t(this.__data__,e)>-1}}(),r=function(){if(Ti)return Si;Ti=1;var t=yr();return Si=function(e,n){var i=this.__data__,r=t(i,e);return r<0?(++this.size,i.push([e,n])):i[r][1]=n,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Ci=o}function Tr(){if(Ni)return Di;Ni=1;var t=ai()(Object,"create");return Di=t}function Cr(){if(Ji)return Qi;Ji=1;var t=Zi?Xi:(Zi=1,Xi=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Qi=function(e,n){var i=e.__data__;return t(n)?i["string"==typeof n?"string":"hash"]:i.map}}function wr(){if(cr)return lr;cr=1;var t=function(){if(qi)return Wi;qi=1;var t=function(){if(Ki)return ji;Ki=1;var t=function(){if(Ui)return Mi;Ui=1;var t=Tr();return Mi=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Vi?Bi:(Vi=1,Bi=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(zi)return Fi;zi=1;var t=Tr(),e=Object.prototype.hasOwnProperty;return Fi=function(n){var i=this.__data__;if(t){var r=i[n];return"__lodash_hash_undefined__"===r?void 0:r}return e.call(i,n)?i[n]:void 0}}(),i=function(){if(Hi)return $i;Hi=1;var t=Tr(),e=Object.prototype.hasOwnProperty;return $i=function(n){var i=this.__data__;return t?void 0!==i[n]:e.call(i,n)}}(),r=function(){if(Yi)return Gi;Yi=1;var t=Tr();return Gi=function(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,ji=o}(),e=Sr(),n=si();return Wi=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(er)return tr;er=1;var t=Cr();return tr=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(ir)return nr;ir=1;var t=Cr();return nr=function(e){return t(this,e).get(e)}}(),i=function(){if(or)return rr;or=1;var t=Cr();return rr=function(e){return t(this,e).has(e)}}(),r=function(){if(sr)return ar;sr=1;var t=Cr();return ar=function(e,n){var i=t(this,e),r=i.size;return i.set(e,n),this.size+=i.size==r?0:1,this}}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,lr=o}function Ar(){if(hr)return pr;hr=1;var t=Sr(),e=function(){if(Ii)return Ai;Ii=1;var t=Sr();return Ai=function(){this.__data__=new t,this.size=0}}(),n=Ri?Oi:(Ri=1,Oi=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),i=Li?xi:(Li=1,xi=function(t){return this.__data__.get(t)}),r=Pi?ki:(Pi=1,ki=function(t){return this.__data__.has(t)}),o=function(){if(ur)return dr;ur=1;var t=Sr(),e=si(),n=wr();return dr=function(i,r){var o=this.__data__;if(o instanceof t){var a=o.__data__;if(!e||a.length<199)return a.push([i,r]),this.size=++o.size,this;o=this.__data__=new n(a)}return o.set(i,r),this.size=o.size,this}}();function a(e){var n=this.__data__=new t(e);this.size=n.size}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=r,a.prototype.set=o,pr=a}function Ir(){if(gr)return mr;gr=1;var t=ai(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return mr=e}
452function Or(){if(fr)return vr;fr=1;var t=Ir();return vr=function(e,n,i){"__proto__"==n&&t?t(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i}}function Rr(){if(_r)return br;_r=1;var t=Or(),e=Er();return br=function(n,i,r){(void 0!==r&&!e(n[i],r)||void 0===r&&!(i in n))&&t(n,i,r)}}var xr,Lr,kr,Pr,Dr,Nr,Mr,Ur,Br,Vr,Fr,zr,$r,Hr,Gr,Yr,jr,Kr,Wr,qr,Xr,Zr,Qr,Jr,to,eo,no,io,ro,oo,ao,so,lo,co,uo,po,ho,mo,go,vo,fo,bo,_o,Eo,yo,So,To,Co,wo,Ao,Io,Oo,Ro,xo,Lo,ko={exports:{}};function Po(){if(kr)return Lr;kr=1;var t=pe().Uint8Array;return Lr=t}function Do(){if($r)return zr;$r=1;var t=gn()(Object.getPrototypeOf,Object);return zr=t}function No(){return Xr?qr:(Xr=1,qr=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]})}function Mo(){if(Qr)return Zr;Qr=1;var t=Or(),e=Er(),n=Object.prototype.hasOwnProperty;return Zr=function(i,r,o){var a=i[r];n.call(i,r)&&e(a,o)&&(void 0!==o||r in i)||t(i,r,o)}}function Uo(){if(ao)return oo;ao=1;var t=hn(),e=function(){if(ro)return io;ro=1;var t=fn(),e=mn(),n=no?eo:(no=1,eo=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}),i=Object.prototype.hasOwnProperty;return io=function(r){if(!t(r))return n(r);var o=e(r),a=[];for(var s in r)("constructor"!=s||!o&&i.call(r,s))&&a.push(s);return a}}(),n=_n();return oo=function(i){return n(i)?t(i,!0):e(i)}}function Bo(){if(uo)return co;uo=1;var t=Rr(),e=(xr||(xr=1,function(t,e){var n=pe(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=a?a(n):new t.constructor(n);return t.copy(i),i}}(ko,ko.exports)),ko.exports),n=function(){if(Mr)return Nr;Mr=1;var t=function(){if(Dr)return Pr;Dr=1;var t=Po();return Pr=function(e){var n=new e.constructor(e.byteLength);return new t(n).set(new t(e)),n}}();return Nr=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}}(),i=Br?Ur:(Br=1,Ur=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}),r=function(){if(Gr)return Hr;Gr=1;var t=function(){if(Fr)return Vr;Fr=1;var t=fn(),e=Object.create;return Vr=function(){function n(){}return function(i){if(!t(i))return{};if(e)return e(i);n.prototype=i;var r=new n;return n.prototype=void 0,r}}()}(),e=Do(),n=mn();return Hr=function(i){return"function"!=typeof i.constructor||n(i)?{}:t(e(i))}}(),o=ve(),a=fe(),s=function(){if(jr)return Yr;jr=1;var t=_n(),e=ge();return Yr=function(n){return e(n)&&t(n)}}(),l=xe(),c=bn(),d=fn(),u=function(){if(Wr)return Kr;Wr=1;var t=me(),e=Do(),n=ge(),i=Function.prototype,r=Object.prototype,o=i.toString,a=r.hasOwnProperty,s=o.call(Object);return Kr=function(i){if(!n(i)||"[object Object]"!=t(i))return!1;var r=e(i);if(null===r)return!0;var l=a.call(r,"constructor")&&r.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==s}}(),p=pn(),h=No(),m=function(){if(lo)return so;lo=1;var t=function(){if(to)return Jr;to=1;var t=Mo(),e=Or();return Jr=function(n,i,r,o){var a=!r;r||(r={});for(var s=-1,l=i.length;++s<l;){var c=i[s],d=o?o(r[c],n[c],c,r,n):void 0;void 0===d&&(d=n[c]),a?e(r,c,d):t(r,c,d)}return r}}(),e=Uo();return so=function(n){return t(n,e(n))}}();return co=function(g,v,f,b,_,E,y){var S=h(g,f),T=h(v,f),C=y.get(T);if(C)t(g,f,C);else{var w=E?E(S,T,f+"",g,v,y):void 0,A=void 0===w;if(A){var I=a(T),O=!I&&l(T),R=!I&&!O&&p(T);w=T,I||O||R?a(S)?w=S:s(S)?w=i(S):O?(A=!1,w=e(T,!0)):R?(A=!1,w=n(T,!0)):w=[]:u(T)||o(T)?(w=S,o(S)?w=m(S):d(S)&&!c(S)||(w=r(T))):A=!1}A&&(y.set(T,w),_(w,T,b,E,y),y.delete(T)),t(g,f,w)}}}function Vo(){if(fo)return vo;fo=1;var t=go?mo:(go=1,mo=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}),e=Math.max;return vo=function(n,i,r){return i=e(void 0===i?n.length-1:i,0),function(){for(var o=arguments,a=-1,s=e(o.length-i,0),l=Array(s);++a<s;)l[a]=o[i+a];a=-1;for(var c=Array(i+1);++a<i;)c[a]=o[a];return c[i]=r(l),t(n,this,c)}},vo}function Fo(){if(To)return So;To=1;var t=function(){if(_o)return bo;_o=1;var t=ce(),e=Ir(),n=yn();return bo=e?function(n,i){return e(n,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n}(),e=function(){if(yo)return Eo;yo=1;var t=Date.now;return Eo=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}},Eo}(),n=e(t);return So=n}const zo=bt(function(){if(Lo)return xo;Lo=1;var t=function(){if(ho)return po;ho=1;var t=Ar(),e=Rr(),n=de(),i=Bo(),r=fn(),o=Uo(),a=No();return po=function s(l,c,d,u,p){l!==c&&n(c,(function(n,o){if(p||(p=new t),r(n))i(l,c,o,d,s,u,p);else{var h=u?u(a(l,o),n,o+"",l,c,p):void 0;void 0===h&&(h=n),e(l,o,h)}}),o)},po}(),e=function(){if(Ro)return Oo;Ro=1;var t=function(){if(wo)return Co;
452wo=1;var t=yn(),e=Vo(),n=Fo();return Co=function(i,r){return n(e(i,r,t),i+"")}}(),e=function(){if(Io)return Ao;Io=1;var t=Er(),e=_n(),n=Le(),i=fn();return Ao=function(r,o,a){if(!i(a))return!1;var s=typeof o;return!!("number"==s?e(a)&&n(o,a.length):"string"==s&&o in a)&&t(a[o],r)}}();return Oo=function(n){return t((function(t,i){var r=-1,o=i.length,a=o>1?i[o-1]:void 0,s=o>2?i[2]:void 0;for(a=n.length>3&&"function"==typeof a?(o--,a):void 0,s&&e(i[0],i[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=i[r];l&&n(t,l,r,a)}return t}))}}()((function(e,n,i){t(e,n,i)}));return xo=e}());var $o,Ho,Go,Yo,jo,Ko,Wo,qo,Xo,Zo,Qo,Jo,ta,ea,na,ia,ra,oa,aa,sa,la,ca,da,ua,pa,ha,ma,ga,va,fa,ba,_a,Ea,ya,Sa,Ta,Ca,wa,Aa,Ia,Oa,Ra,xa,La,ka,Pa,Da,Na,Ma,Ua,Ba,Va,Fa,za,$a,Ha,Ga,Ya,ja,Ka,Wa,qa,Xa,Za,Qa,Ja,ts,es,ns,is,rs,os,as,ss,ls,cs,ds,us,ps,hs,ms,gs,vs,fs,bs,_s,Es,ys,Ss,Ts,Cs,ws,As,Is,Os,Rs,xs,Ls,ks,Ps,Ds,Ns,Ms,Us,Bs,Vs,Fs,zs;function $s(){if(Ho)return $o;Ho=1;var t=me(),e=ge();return $o=function(n){return"symbol"==typeof n||e(n)&&"[object Symbol]"==t(n)}}function Hs(){if(ia)return na;ia=1;var t=function(){if(Zo)return Xo;Zo=1;var t=wr(),e=Ko?jo:(Ko=1,jo=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),n=qo?Wo:(qo=1,Wo=function(t){return this.__data__.has(t)});function i(e){var n=-1,i=null==e?0:e.length;for(this.__data__=new t;++n<i;)this.add(e[n])}return i.prototype.add=i.prototype.push=e,i.prototype.has=n,Xo=i}(),e=Jo?Qo:(Jo=1,Qo=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}),n=ea?ta:(ea=1,ta=function(t,e){return t.has(e)});return na=function(i,r,o,a,s,l){var c=1&o,d=i.length,u=r.length;if(d!=u&&!(c&&u>d))return!1;var p=l.get(i),h=l.get(r);if(p&&h)return p==r&&h==i;var m=-1,g=!0,v=2&o?new t:void 0;for(l.set(i,r),l.set(r,i);++m<d;){var f=i[m],b=r[m];if(a)var _=c?a(b,f,m,r,i,l):a(f,b,m,i,r,l);if(void 0!==_){if(_)continue;g=!1;break}if(v){if(!e(r,(function(t,e){if(!n(v,e)&&(f===t||s(f,t,o,a,l)))return v.push(e)}))){g=!1;break}}else if(f!==b&&!s(f,b,o,a,l)){g=!1;break}}return l.delete(i),l.delete(r),g}}function Gs(){return ua?da:(ua=1,da=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t})}function Ys(){if(ha)return pa;ha=1;var t=Gs(),e=fe();return pa=function(n,i,r){var o=i(n);return e(n)?o:t(o,r(n))}}function js(){return fa?va:(fa=1,va=function(){return[]})}function Ks(){if(_a)return ba;_a=1;var t=ga?ma:(ga=1,ma=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}),e=js(),n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;return ba=i?function(e){return null==e?[]:(e=Object(e),t(i(e),(function(t){return n.call(e,t)})))}:e}function Ws(){if(Ia)return Aa;Ia=1;var t=function(){if(wa)return Ca;wa=1;var t=Ar(),e=Hs(),n=function(){if(ca)return la;ca=1;var t=he(),e=Po(),n=Er(),i=Hs(),r=oa?ra:(oa=1,ra=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}),o=sa?aa:(sa=1,aa=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}),a=t?t.prototype:void 0,s=a?a.valueOf:void 0;return la=function(t,a,l,c,d,u,p){switch(l){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!u(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var h=r;case"[object Set]":var m=1&c;if(h||(h=o),t.size!=a.size&&!m)return!1;var g=p.get(t);if(g)return g==a;c|=2,p.set(t,a);var v=i(h(t),h(a),c,d,u,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(a)}return!1}}(),i=function(){if(Ta)return Sa;Ta=1;var t=function(){if(ya)return Ea;ya=1;var t=Ys(),e=Ks(),n=En();return Ea=function(i){return t(i,n,e)}}(),e=Object.prototype.hasOwnProperty;return Sa=function(n,i,r,o,a,s){var l=1&r,c=t(n),d=c.length;if(d!=t(i).length&&!l)return!1;for(var u=d;u--;){var p=c[u];if(!(l?p in i:e.call(i,p)))return!1}var h=s.get(n),m=s.get(i);if(h&&m)return h==i&&m==n;var g=!0;s.set(n,i),s.set(i,n);for(var v=l;++u<d;){var f=n[p=c[u]],b=i[p];if(o)var _=l?o(b,f,p,i,n,s):o(f,b,p,n,i,s);if(!(void 0===_?f===b||a(f,b,r,o,s):_)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var E=n.constructor,y=i.constructor;E==y||!("constructor"in n)||!("constructor"in i)||"function"==typeof E&&E instanceof E&&"function"==typeof y&&y instanceof y||(g=!1)}return s.delete(n),s.delete(i),g}}(),r=li(),o=fe(),a=xe(),s=pn(),l="[object Arguments]",c="[object Array]",d="[object Object]",u=Object.prototype.hasOwnProperty;return Ca=function(p,h,m,g,v,f){var b=o(p),_=o(h),E=b?c:r(p),y=_?c:r(h),S=(E=E==l?d:E)==d,T=(y=y==l?d:y)==d,C=E==y;if(C&&a(p)){if(!a(h))return!1;b=!0,S=!1}if(C&&!S)return f||(f=new t),b||s(p)?e(p,h,m,g,v,f):n(p,h,E,m,g,v,f);if(!(1&m)){var w=S&&u.call(p,"__wrapped__"),A=T&&u.call(h,"__wrapped__");
452if(w||A){var I=w?p.value():p,O=A?h.value():h;return f||(f=new t),v(I,O,m,g,f)}}return!!C&&(f||(f=new t),i(p,h,m,g,v,f))}}(),e=ge();return Aa=function n(i,r,o,a,s){return i===r||(null==i||null==r||!e(i)&&!e(r)?i!=i&&r!=r:t(i,r,o,a,n,s))}}function qs(){if(La)return xa;La=1;var t=fn();return xa=function(e){return e==e&&!t(e)}}function Xs(){return Na?Da:(Na=1,Da=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}})}function Zs(){if(Va)return Ba;Va=1;var t=fe(),e=$s(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;return Ba=function(r,o){if(t(r))return!1;var a=typeof r;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=r&&!e(r))||i.test(r)||!n.test(r)||null!=o&&r in Object(o)}}function Qs(){return Ka?ja:(Ka=1,ja=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r})}function Js(){if(Ja)return Qa;Ja=1;var t=fe(),e=Zs(),n=function(){if(Ya)return Ga;Ya=1;var t=function(){if(Ha)return $a;Ha=1;var t=function(){if(za)return Fa;za=1;var t=wr();function e(n,i){if("function"!=typeof n||null!=i&&"function"!=typeof i)throw new TypeError("Expected a function");var r=function(){var t=arguments,e=i?i.apply(this,t):t[0],o=r.cache;if(o.has(e))return o.get(e);var a=n.apply(this,t);return r.cache=o.set(e,a)||o,a};return r.cache=new(e.Cache||t),r}return e.Cache=t,Fa=e}();return $a=function(e){var n=t(e,(function(t){return 500===i.size&&i.clear(),t})),i=n.cache;return n}}(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=t((function(t){var i=[];return 46===t.charCodeAt(0)&&i.push(""),t.replace(e,(function(t,e,r,o){i.push(r?o.replace(n,"$1"):e||t)})),i}));return Ga=i}(),i=function(){if(Za)return Xa;Za=1;var t=function(){if(qa)return Wa;qa=1;var t=he(),e=Qs(),n=fe(),i=$s(),r=t?t.prototype:void 0,o=r?r.toString:void 0;return Wa=function t(r){if("string"==typeof r)return r;if(n(r))return e(r,t)+"";if(i(r))return o?o.call(r):"";var a=r+"";return"0"==a&&1/r==-1/0?"-0":a},Wa}();return Xa=function(e){return null==e?"":t(e)}}();return Qa=function(r,o){return t(r)?r:e(r,o)?[r]:n(i(r))}}function tl(){if(es)return ts;es=1;var t=$s();return ts=function(e){if("string"==typeof e||t(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}}function el(){if(is)return ns;is=1;var t=Js(),e=tl();return ns=function(n,i){for(var r=0,o=(i=t(i,n)).length;null!=n&&r<o;)n=n[e(i[r++])];return r&&r==o?n:void 0}}function nl(){if(os)return rs;os=1;var t=el();return rs=function(e,n,i){var r=null==e?void 0:t(e,n);return void 0===r?i:r}}function il(){if(us)return ds;us=1;var t=ss?as:(ss=1,as=function(t,e){return null!=t&&e in Object(t)}),e=function(){if(cs)return ls;cs=1;var t=Js(),e=ve(),n=fe(),i=Le(),r=ke(),o=tl();return ls=function(a,s,l){for(var c=-1,d=(s=t(s,a)).length,u=!1;++c<d;){var p=o(s[c]);if(!(u=null!=a&&l(a,p)))break;a=a[p]}return u||++c!=d?u:!!(d=null==a?0:a.length)&&r(d)&&i(p,d)&&(n(a)||e(a))}}();return ds=function(n,i){return null!=n&&e(n,i,t)}}function rl(){if(ys)return Es;ys=1;var t=function(){if(Ua)return Ma;Ua=1;var t=function(){if(Ra)return Oa;Ra=1;var t=Ar(),e=Ws();return Oa=function(n,i,r,o){var a=r.length,s=a,l=!o;if(null==n)return!s;for(n=Object(n);a--;){var c=r[a];if(l&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++a<s;){var d=(c=r[a])[0],u=n[d],p=c[1];if(l&&c[2]){if(void 0===u&&!(d in n))return!1}else{var h=new t;if(o)var m=o(u,p,d,n,i,h);if(!(void 0===m?e(p,u,3,o,h):m))return!1}}return!0}}(),e=function(){if(Pa)return ka;Pa=1;var t=qs(),e=En();return ka=function(n){for(var i=e(n),r=i.length;r--;){var o=i[r],a=n[o];i[r]=[o,a,t(a)]}return i}}(),n=Xs();return Ma=function(i){var r=e(i);return 1==r.length&&r[0][2]?n(r[0][0],r[0][1]):function(e){return e===i||t(e,i,r)}}}(),e=function(){if(hs)return ps;hs=1;var t=Ws(),e=nl(),n=il(),i=Zs(),r=qs(),o=Xs(),a=tl();return ps=function(s,l){return i(s)&&r(l)?o(a(s),l):function(i){var r=e(i,s);return void 0===r&&r===l?n(i,s):t(l,r,3)}}}(),n=yn(),i=fe(),r=function(){if(_s)return bs;_s=1;var t=gs?ms:(gs=1,ms=function(t){return function(e){return null==e?void 0:e[t]}}),e=function(){if(fs)return vs;fs=1;var t=el();return vs=function(e){return function(n){return t(n,e)}}}(),n=Zs(),i=tl();return bs=function(r){return n(r)?t(i(r)):e(r)}}();return Es=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?i(o)?e(o[0],o[1]):t(o):r(o)}}function ol(){if(Rs)return Os;Rs=1;var t=el(),e=function(){if(Is)return As;Is=1;var t=Mo(),e=Js(),n=Le(),i=fn(),r=tl();return As=function(o,a,s,l){if(!i(o))return o;for(var c=-1,d=(a=e(a,o)).length,u=d-1,p=o;null!=p&&++c<d;){var h=r(a[c]),m=s;if("__proto__"===h||"constructor"===h||"prototype"===h)return o;if(c!=u){var g=p[h];void 0===(m=l?l(g,h,p):void 0)&&(m=i(g)?g:n(a[c+1])?[]:{})}t(p,h,m),p=p[h]}return o}}(),n=Js();return Os=function(i,r,o){for(var a=-1,s=r.length,l={};++a<s;){var c=r[a],d=t(i,c);o(d,c)&&e(l,n(c,i),d)}return l}}function al(){if(Vs)return Bs;Vs=1;var t=function(){if(Us)return Ms;Us=1;var t=function(){if(Ns)return Ds;Ns=1;var t=Gs(),e=function(){if(Ps)return ks;Ps=1;var t=he(),e=ve(),n=fe(),i=t?t.isConcatSpreadable:void 0;return ks=function(t){return n(t)||e(t)||!!(i&&t&&t[i])}}();return Ds=function n(i,r,o,a,s){var l=-1,c=i.length;for(o||(o=e),s||(s=[]);++l<c;){var d=i[l];r>0&&o(d)?r>1?n(d,r-1,o,a,s):t(s,d):a||(s[s.length]=d)}return s}}();return Ms=function(e){return null!=e&&e.length?t(e,1):[]}}(),e=Vo(),n=Fo();return Bs=function(i){return n(e(i,void 0,t),i+"")}}!function(){if(ws)return Cs;ws=1;var t=function(){if(Yo)return Go;Yo=1;var t=$s();return Go=function(e,n,i){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=n(a);if(null!=s&&(void 0===l?s==s&&!t(s):i(s,l)))var l=s,c=a}return c}}(),e=rl(),n=Ts?Ss:(Ts=1,Ss=function(t,e){return t<e});Cs=function(i,r){return i&&i.length?t(i,e(r,2),n):void 0}}();const sl=bt(function(){if(zs)return Fs;zs=1;var t=function(){if(Ls)return xs;Ls=1;var t=ol(),e=il();return xs=function(n,i){return t(n,i,(function(t,i){return e(n,i)}))}}(),e=al()((function(e,n){return null==e?{}:t(e,n)}));return Fs=e}());var ll,cl,dl,ul,pl,hl;const ml=bt(function(){if(hl)return pl;hl=1;var t=Qs(),e=rl(),n=ol(),i=function(){if(ul)return dl;ul=1;var t=Ys(),e=function(){if(cl)return ll;cl=1;var t=Gs(),e=Do(),n=Ks(),i=js(),r=Object.getOwnPropertySymbols;return ll=r?function(i){for(var r=[];i;)t(r,n(i)),i=e(i);return r}:i}(),n=Uo();return dl=function(i){return t(i,n,e)}}();return pl=function(r,o){if(null==r)return{};var a=t(i(r),(function(t){return[t]}));return o=e(o),n(r,a,(function(t,e){return o(t,e[0])}))}}()),gl="255,255,255",vl="0,0,0",fl="255,0,0",bl="0,255,0",_l="0,0,255",El="255,255,0",yl="255,0,255",Sl="0,255,255",Tl="0.75",Cl="0.5",wl="0.25",Al={fontMap:{fontDefault:"default",fontMonospaceSerif:"monospace-serif",fontProportionalSerif:"proportional-serif",fontMonospaceSansSerif:"monospace-sans-serif",fontProportionalSansSerif:"proportional-sans-serif",fontCasual:"casual",fontScript:"script",fontSmallCaps:"small-caps",fontGreek:"greek",fontJapanese:"japanese",fontKorean:"korean",fontSimplifiedChinese:"simplified-chinese",fontTraditionalChinese:"traditional-chinese",fontVietnamese:"vietnamese",fontThai:"thai"},fontColorMap:{fontColorWhite:gl,fontColorBlack:vl,fontColorRed:fl,fontColorGreen:bl,fontColorBlue:_l,fontColorYellow:El,fontColorMagenta:yl,fontColorCyan:Sl,fontColorGeneralBlue:"48, 91, 200",fontColorGeneralRed:"212, 9, 9",fontColorGeneralTeal:"67, 222, 211",fontColorGeneralYellow:"255, 207, 36",fontColorGeneralViolet:"182, 47, 180",fontColorGeneralLime:"131, 214, 38"},fontSizeMap:{fontSize16:"small",fontSize24:"medium-small",fontSize32:"medium",fontSize40:"medium-large",fontSize48:"large",fontSize64:"extra-large"},windowColorMap:{windowColorWhite:gl,windowColorBlack:vl,windowColorRed:fl,windowColorGreen:bl,windowColorBlue:_l,windowColorYellow:El,windowColorMagenta:yl,windowColorCyan:Sl},fontEdgeMap:{fontEdgeNone:"none",fontEdgeRaised:"raised",fontEdgeDepressed:"depressed",fontEdgeUniform:"uniform",fontEdgeShadow:"shadow"},backgroundColorMap:{backgroundColorWhite:gl,backgroundColorBlack:vl,backgroundColorRed:fl,backgroundColorGreen:bl,backgroundColorBlue:_l,backgroundColorYellow:El,backgroundColorMagenta:yl,backgroundColorCyan:Sl},backgroundOpacityMap:{backgroundOpacity100:"1",backgroundOpacity75:Tl,backgroundOpacity50:Cl,backgroundOpacity25:wl,backgroundOpacity0:"0"},windowOpacityMap:{windowOpacity100:"1",windowOpacity75:Tl,windowOpacity50:Cl,windowOpacity25:wl,windowOpacity0:"0"},fontOpacityMap:{fontOpacity100:"1",fontOpacity75:Tl,fontOpacity50:Cl,fontOpacity25:wl,fontOpacity0:"0"},getRGBA:(t,e)=>`rgba(${t},${e})`},Il=/^rgba\(\s*([^)]+)\s*\)$/i,Ol=t=>{const e=t?.match?.(Il);
452if(!e)return null;const n=e[1].split(",").map((t=>t.trim()));return n.length>=3?n:null},Rl=(t,e)=>{const n=Ol(t);if(!n)return t;const[i,r,o]=n;return`rgba(${i},${r},${o},${e})`},xl=t=>{const e=Ol(t);return e?`${Math.round(parseFloat(e[0]))}|${Math.round(parseFloat(e[1]))}|${Math.round(parseFloat(e[2]))}`:null},Ll=["backgroundColor","windowColor","textColor","font","size","textEdge","sizeScalar","fontMappingOverride"],kl=(t,e=Al)=>((t,e)=>{if(!t||"object"!=typeof t)return{};const n={...t};return delete n.values,i=((t,e)=>{const n={...t},i=[["size",new Set(Object.values(e.fontSizeMap))],["font",new Set(Object.values(e.fontMap))],["textEdge",new Set(Object.values(e.fontEdgeMap))]];for(const[t,e]of i){const i=n[t];null!=i&&""!==i&&("string"==typeof i&&e.has(i)||delete n[t])}return n})(n,e),i&&"object"==typeof i?ml(sl(i,Ll),(t=>void 0!==t&&""!==t)):{};var i})(t,e),Pl=t=>Math.round(100*(t=>{const e=Ol(t);return e&&e.length>=4?parseFloat(e[3]):1})(t??"")),Dl=(t,e)=>{const n=((t,e=Al)=>{const{sizeScalar:n,fontMappingOverride:i,...r}=t||{},o=kl(r,e),a=void 0!==i?i:o.fontMappingOverride,{fontMappingOverride:s,...l}=o;return{...l,...void 0!==n?{sizeScalar:n}:{},fontMappingOverride:a??{}}})(e&&"object"==typeof e?e:{});return zo({},null!=t&&"object"==typeof t?t:{},n)};function Nl(){try{const t=localStorage.getItem(xn);if(!t)return null;const e=JSON.parse(t).timedTextAppearance;if(null!=e&&"object"==typeof e&&!Array.isArray(e))return kl(e)}catch{return null}return null}const Ml="@@btmp",Ul={AIRING:{SET_SELECTED_FEED:`${Ml}/AIRING/SET_SELECTED_FEED`},CASTING:{START_CASTING:`${Ml}/CASTING/START_CASTING`,STOP_CASTING:`${Ml}/CASTING/STOP_CASTING`}},Bl="@@btmp/UI/SET_HOVER_TARGET";var Vl,Fl;(Fl=Vl||(Vl={})).PLAYBACK_STATE_TIMER="playbackStateTimer",Fl.SYSTEM="system",Fl.USER="user";const zl="@EVENT/PLAYER/UI",$l={CONTROLS:{OVERLAY:{VISIBLE:`${zl}/CONTROLS/OVERLAY/VISIBLE`},PLAY_NEXT:{CLICKED:`${zl}/CONTROLS/PLAY_NEXT/CLICKED`}},END_CARD:{SHOW:`${zl}/END_CARD/SHOW`},MODAL_VISIBLE:`${zl}/MODAL_VISIBLE`,PIVOT_TRAY:{MORE_FOR_YOU_CLICKED:`${zl}/PIVOT_TRAY/MORE_FOR_YOU_CLICKED`,MORE_FOR_YOU_SHOWN:`${zl}/PIVOT_TRAY/MORE_FOR_YOU_SHOWN`,CLOSE_CLICKED:`${zl}/PIVOT_TRAY/CLOSE_CLICKED`,OPEN:`${zl}/PIVOT_TRAY/OPEN`,CLOSE:`${zl}/PIVOT_TRAY/CLOSE`,SCROLL:`${zl}/PIVOT_TRAY/SCROLL`,RESIZE:`${zl}/PIVOT_TRAY/RESIZE`,TILE_SELECTED:`${zl}/PIVOT_TRAY/TILE_SELECTED`,AUTOPLAY:`${zl}/PIVOT_TRAY/AUTOPLAY`}},Hl="video_auxiliary",Gl="videoplayer",Yl="video_controls",jl="live",Kl="subtitle_styling",Wl="share_menu",ql="catch_up_to_live",Xl={MEDIA:{CONTROLS:{SKIP_BACK:`${Yl}_skipback`,SKIP_FORWARD:`${Yl}_skipforward`,PLAY:"btn_play",PAUSE:"btn_pause",DONE:"btn_done",AT_LIVE:`${Yl}_at_live`,JUMP_LIVE:`${Yl}_jump_live`,INDICATOR_AT_LIVE:"indicator_at_live",FULLSCREEN:`${Yl}_fullscreen`,FULLSCREEN_TOOLTIP:"btn_fullscreen",EXIT_FULLSCREEN_TOOLTIP:"btn_exit_fullscreen",EXIT_FULLSCREEN:`${Yl}_exit_fullscreen`,MAXIMIZE:`${Yl}_maximize`,MINI_PLAYER:`${Yl}_mini_player`,SLIDER:`${Yl}_slider`,SLIDER_SET_TO:`${Yl}_slider_set_to`,SLIDER_TIMELINE:`${Yl}_slider_timeline`,SLIDER_VERTICAL_SCRUB_HINT:`${Yl}_slider_vertical_scrub_hint`,SETTINGS:`${Yl}_settings`,SUBTITLE_SETTINGS:`${Yl}_subsettings`,CLOSED_CAPTION:`${Yl}_closedcaption`,CLOSE:`${Yl}_close`,AUDIO_LABEL:`${Yl}_audio_label`,SHARE:`${Yl}_share`,SHARE_VIDEO:`${Yl}_share_video`,SKIP_PROMO:"btn_skip_promo",SUBTITLE_LABEL:`${Yl}_subtitle_label`,SUBTITLES_NOT_AVAILABLE:`${Yl}_subtitles_not_available`,SUBTITLES_OFF:`${Yl}_subtitles_off`,SETTINGS_MENU_HEADER:`${Yl}_settingsmenu_header`,SUBTITLE_SETTINGS_MENU_HEADER:`${Yl}_subsettingsmenu_header`,SUBTITLE_EXAMPLE:`${Yl}_subtitle_example`,SUBTITLE_MENU_CLOSE:"btn_close_settings",SUBTITLE_MENU_BACKGROUND_LABEL:`${Yl}_subtitle_menu_background_label`,SUBTITLE_MENU_FOREGROUND_LABEL:`${Yl}_subtitle_menu_foreground_label`,SUBTITLE_MENU_WINDOW_LABEL:`${Yl}_subtitle_menu_window_label`,SUBTITLE_MENU_FONT_LABEL:`${Yl}_subtitle_menu_font_label`,SUBTITLE_MENU_FONT_DEFAULT:`${Yl}_subtitle_menu_font_default`,SUBTITLE_MENU_FONT_MONOSPACE_SERIF:`${Yl}_subtitle_menu_font_monospaceserif`,SUBTITLE_MENU_FONT_PROPORTIONAL_SERIF:`${Yl}_subtitle_menu_font_proportionalserif`,SUBTITLE_MENU_FONT_MONOSPACE_SANS_SERIF:`${Yl}_subtitle_menu_font_monospacesansserif`,SUBTITLE_MENU_FONT_PROPORTIONAL_SANS_SERIF:`${Yl}_subtitle_menu_font_proportionalsansserif`,SUBTITLE_MENU_FONT_CASUAL:`${Yl}_subtitle_menu_font_casual`,SUBTITLE_MENU_FONT_SCRIPT:`${Yl}_subtitle_menu_font_script`,SUBTITLE_MENU_FONT_SMALL_CAPS:`${Yl}_subtitle_menu_font_smallcaps`,SUBTITLE_MENU_FONT_COLOR_OPACITY:`${Yl}_subtitle_menu_font_coloropacity`,SUBTITLE_MENU_FONT_SIZE_LABEL:`${Yl}_subtitle_menu_fontsize_label`,SUBTITLE_MENU_FONT_EDGE_LABEL:`${Yl}_subtitle_menu_fontedge_label`,SUBTITLE_MENU_BACKGROUND_COLOR_OPACITY_LABEL:`${Yl}
452_subtitle_menu_background_coloropacity_label`,SUBTITLE_MENU_WINDOW_COLOR_OPACITY_LABEL:`${Yl}_subtitle_menu_window_coloropacity_label`,SUBTITLE_MENU_RESET_DEFAULT_BUTTON:`${Yl}_subtitle_menu_resetdefault_button`,SUBTITLE_MENU_RESET_BUTTON:`${Yl}_subtitle_menu_reset_button`,SUBTITLE_STYLING_MENU:"btn_subtitle_styling",SUBTITLE_SETTINGS_LABEL:"btn_settings_label",CLOSE_SUBTITLE_SETTINGS:"btn_close_settings",SCROLL_DOWN:`${Yl}_scroll_down`,SCROLL_UP:`${Yl}_scroll_up`,TIMELINE:"video_player_timeline",BROADCASTS_MENU:`${Yl}_broadcasts_menu`,BROADCAST_TOOLTIP:"player_controls_broadcast_tooltip",PLAY_FROM_START:"btn_action_watch_from_start",PLAY_FROM_EARLIEST:"btn_action_watch_from_earliest",LIVE_POINT:"btn_live_point",WATCH_LIVE:"btn_watch_live",WATCH_LIVE_NEXT_PROGRAM:"btn_watch_live_next_program",BACK10:"btn_back_10",BACK30:"btn_back_30",FORWARD10:"btn_forward_10",FORWARD30:"btn_forward_30",PLAY_NEXT_EPISODE:"btn_next_episode",BACK:"btn_back",AIRPLAY:"btn_airplay",CHROMECAST_DISABLED:"casting_disabled_message",CHROMECAST_OFF:"btn_chromecast_off",CHROMECAST_ON:"btn_chromecast_on",VOLUME:"video_controls_volume",AUTOPLAY:`${Yl}_autoplay`,CLOSED_CAPTION_SETTINGS:`${Yl}_captions_settings`,DEBUG:`${Yl}_debug`,SETTINGS_MENU_CAPTIONS_LABEL:`${Yl}_settings_menu_captions_label`,EXPANDABLE_METADATA_VIDEO_DESCRIPTION:`${Yl}_expandable_metadata_video_description`},CATCH_UP_TO_LIVE:{NEXT_CLIP:`${ql}_next_clip`,PREVIOUS_CLIP:`${ql}_previous_clip`,JUMP_TO_LIVE:`${ql}_jump_to_live`,SLIDE:`${ql}_slide`,JUMP_TO_LIVE_LABEL:`${ql}_jump_to_live_label`},OVERLAYS:{CTA_OK:`${Hl}_cta_ok`,INACTIVITY_MODAL_HEADING:"inactivity_modal_heading",INACTIVITY_MODAL_BODY:"inactivity_modal_body",INACTIVITY_MODAL_CTA:"inactivity_modal_cta",INACTIVITY_MODAL_HEADING_A11Y:"inactivity_modal_heading_a11y",INACTIVITY_MODAL_BODY_A11Y:"inactivity_modal_body_a11y",INACTIVITY_MODAL_CTA_A11Y:"inactivity_modal_cta_a11y",UP_NEXT:`${Hl}_up_next`,SKIP_INTRO:`${Hl}_skip_intro`,SKIP_RECAP:`${Hl}_skip_recap`,SKIP_CREDITS:`${Hl}_skip_credits`,TUTORIAL_CAST_INSTRUCTIONS:`${Hl}_cast_copy`,PLAY_NEXT_EPISODE:"btn_upnextlite_play",PLAYER_CONTROLS_DISABLED:"player_controls_disabled",PLAYER_CONTROLS_DISABLED_LIVE_RESOURCE_APPLICATION:"player_controls_disabled_live_resource_application",TOAST_NOTICE_SCRUB_DURING_INTRO:"alert_message_scrub_during_intro",TOAST_NOTICE_AD_BOUNDARY:"video_navigation_across_ad_pod_message",TOAST_NOTICE_LIVE_BACK_EDGE:"live_back_edge_navigation",TOAST_NOTICE_LIVE_FRONT_EDGE:"live_front_edge_navigation",NOTICE_LIVE_NO_SEEK:"notice_live_no_seek",UP_NEXT_COUNTDOWN_TEXT:"upnextlite_countdown_text",UP_NEXT_HEADER:"upnextlite_metadata_header",WATCH_LIVE_NEXT_PROGRAM_METADATA_LABEL:"watch_live_next_program_metadata_label",UP_NEXT_SERIES_TITLE:"upnextlite_metadata_series_title",ERROR_OVERLAY_DISMISS:"btn_error_update_version_dismiss",PIVOT_TRAY_MORE_FOR_YOU:"pivot_tray_more_for_you",PIVOT_TRAY_CLOSE:"pivot_tray_close",PIVOT_TRAY_AUTOPLAY_COUNTDOWN_TEXT:"pivot_tray_auto
452play_countdown_text",PIVOT_TRAY_UP_NEXT_TEXT:"pivot_tray_up_next_text",PIVOT_TRAY_UP_NEXT_CONTENT:"pivot_tray_up_next_content",PIVOT_TRAY_VIEW_PREVIOUS:"pivot_tray_view_previous",PIVOT_TRAY_VIEW_NEXT:"pivot_tray_view_next"},PLAYER:{PLAY:`${Yl}_play`,PAUSE:`${Yl}_pause`,STOP:`${Yl}_stop`,PLAY_VIDEO:`${Gl}_play_video`,PAUSE_VIDEO:`${Gl}_pause_video`,AFFILIATE_LOGO_LABEL:`${Gl}_affiliate_logo_label`,BROADCASTS:`${Gl}_broadcasts`,AT_LIVE:`${Gl}_at_live`,GO_LIVE:`${Gl}_go_live`,LIVE_LABEL:`${Gl}_live_label`,BACK10:`${Gl}_back10`,BACK30:`${Gl}_back30`,FORWARD10:`${Gl}_forward10`,FORWARD30:`${Gl}_forward30`,MUTE:`${Gl}_mute`,MUTE_VIDEO:`${Gl}_mute_video`,SKIPPED_BACK10:`${Gl}_skipped_back10`,SKIPPED_BACK30:`${Gl}_skipped_back30`,SKIPPED_FORWARD10:`${Gl}_skipped_forward10`,SKIPPED_FORWARD30:`${Gl}_skipped_forward30`,PAUSED:`${Gl}_paused`,RESUMED:`${Gl}_resumed`,UNMUTE:`${Gl}_unmute`,PROMO_END:`${Gl}_promo_end`,PROMO_START:`${Gl}_promo_start`,AD_END:`${Gl}_ad_break_end`,AD_START:`${Gl}_ad_break_start`,BUMPER_END:`${Gl}_bumper_end`,BUMPER_START:`${Gl}_bumper_start`},SUBTITLE_STYLING:{FONT_COLOR:`${Kl}_font_color`,BACKGROUND_COLOR:`${Kl}_background_color`,FONT_OPACITY:`${Kl}_font_opacity`,BACKGROUND_OPACITY:`${Kl}_background_opacity`,FONT_COLOR_OPAQUE:`${Kl}_font_color_opaque`,FONT_COLOR_SEMI_OPAQUE:`${Kl}_font_color_semiopaque`,FONT_COLOR_TRANSPARENT:`${Kl}_font_color_transparent`,FONT_COLOR_WHITE:`${Kl}_font_color_white`,FONT_COLOR_BLACK:`${Kl}_font_color_black`,FONT_COLOR_RED:`${Kl}_font_color_red`,FONT_COLOR_GREEN:`${Kl}_font_color_green`,FONT_COLOR_BLUE:`${Kl}_font_color_blue`,FONT_COLOR_YELLOW:`${Kl}_font_color_yellow`,FONT_COLOR_CYAN:`${Kl}_font_color_cyan`,FONT_COLOR_MAGENTA:`${Kl}_font_color_magenta`,FONT_COLOR_TEAL:`${Kl}_font_color_teal`,FONT_COLOR_VIOLET:`${Kl}_font_color_violet`,FONT_EDGE_DEPRESSED:`${Kl}_font_edge_styling_depressed`,FONT_EDGE_RAISED:`${Kl}_font_edge_styling_raised`,FONT_EDGE_UNIFORM:`${Kl}_font_edge_styling_uniform`,FONT_EDGE_DROP_SHADOW:`${Kl}_font_edge_styling_drop_shadow`,FONT_EDGE_NONE:`${Kl}_font_edge_styling_none`,FONT_SIZE_50_PERCENT:`${Kl}_50_percent`,FONT_SIZE_75_PERCENT:`${Kl}_75_percent`,FONT_SIZE_100_PERCENT:`${Kl}_100_percent`,FONT_SIZE_125_PERCENT:`${Kl}_125_percent`,FONT_SIZE_150_PERCENT:`${Kl}_150_percent`,FONT_SIZE_200_PERCENT:`${Kl}_200_percent`,FONT_SIZE_SMALL:`${Kl}_small`,FONT_SIZE_MEDIUM:`${Kl}_medium`,FONT_SIZE_LARGE:`${Kl}_large`,FONT_DEFAULT:`${Kl}_font_default`},SETTINGS:{AUTOPLAY_LABEL:"settings_menu_autoplay_label"},LIVE:{OPEN_CONTROLS_PAUSED:`${jl}_open_controls_paused`,OPEN_CONTROLS_PLAYING:`${jl}_open_controls_playing`,PAUSED:`${jl}_paused`,PLAY_SELECTED:`${jl}_play_selected`},SHARE:{START_AT_LABEL:`${Wl}_start_at_label`,COPY_LABEL:`${Wl}_copy_label`,COPIED_LABEL:`${Wl}_copied_label`,FACEBOOK_LOGO_LABEL:`${Wl}_facebook_logo_label`,X_LOGO_LABEL:`${Wl}_x_logo_label`,EMAIL_LOGO_LABEL:`${Wl}_email_logo_label`,EMBED_LOGO_LABEL:`${Wl}_embed_logo_label`},ADS:{AD_BADGE_LABEL:"ad_badge_label",AD_INTERACTION_LINK_LABEL:"ad_interaction_link_label"}}},Zl="chromecast";var Ql,Jl;(Jl=Ql||(Ql={})).INACTIVITY_TIMEOUT="inactivityTimeout",Jl.PLAY="play",Jl.PAUSE="pause",Jl.TOGGLE_PLAY_PAUSE="togglePlayPause",Jl.RESTART="restart",Jl.RESTART_ACTIVITY_STATUS_TIMER="restartActivityStatusTimer",Jl.PLAY_NEXT="playNext",Jl.SEEK="seek",Jl.SEEK_TO_LIVE="seekToLive",Jl.SEEK_TO_START="seekToStart",Jl.QUICK_FAST_FORWARD="quickFastForward",Jl.QUICK_REWIND="quickRewind",Jl.SCRUB="scrub",Jl.MUTE="mute",Jl.UNMUTE="unmute",Jl.TOGGLE_MUTE="toggleMute",Jl.SET_
452VOLUME="setVolume",Jl.INCREASE_VOLUME="increaseVolume",Jl.DECREASE_VOLUME="decreaseVolume",Jl.CAPTIONS_TRACK_SELECTION="captionsTrackSelection",Jl.ENABLE_CAPTIONS="enableCaptions",Jl.DISABLE_CAPTIONS="disableCaptions",Jl.TOGGLE_CAPTIONS="toggleCaptions",Jl.FULLSCREEN_ENTER="fullscreenEnter",Jl.FULLSCREEN_EXIT="fullscreenExit",Jl.DIM_CONTROLS="dimControls",Jl.BLUR_VIDEO="blurVideo",Jl.SHIFT_CAPTION_LAYOUT="shiftCaptionLayout",Jl.NOTIFY_CONTROLS_DISABLED="notifyControlsDisabled",Jl.TOGGLE_PROGRESS_BAR_LIVE_LABEL="toggleProgressBarLiveLabel",Jl.TOGGLE_CURRENTLY_LIVE_OVERLAY="toggleCurrentlyLiveOverlay",Jl.MOUSE_EVENT="mouseEvent",Jl.KEYBOARD_EVENT="keyboardEvent",Jl.FOCUS_EVENT="focusEvent",Jl.POINTER_EVENT="pointerEvent",Jl.TOGGLE_MODAL="toggleModal",Jl.MODAL_EVENT="modalEvent",Jl.OVERLAY_EVENT="overlayEvent",Jl.NORMAL_MODE="normalMode",Jl.PIP_MINIMIZE="pipMinimize",Jl.CLOSE_PLAYER="closePlayer",Jl.CONTINUOUS_PLAY_NEXT="continuousPlayNext",Jl.CONTINUOUS_PLAY_SHOW="continuousPlayShow",Jl.CONTINUOUS_PLAY_HIDE="continuousPlayHide",Jl.END_CARD_SHOWN="endCardShown",Jl.END_CARD_PLAY_NEXT="endCardPlayNext",Jl.INTERACTION_EVENT="interactionEvent",Jl.SHARE_MENU_CLICK="shareMenuClick",Jl.SHARE="share",Jl.EXPANDABLE_METADATA_CHANGE="expandableMetadataChange",Jl.INTERSTITIAL_AD_CLICKED="interstitialAdClicked",Jl.CUTL_NEXT="cutlNext",Jl.CUTL_PREV="cutlPrev",Jl.CUTL_JUMP_TO_LIVE="cutlJumpToLive",Jl.ENABLE_AUTOPLAY="enableAutoplay",Jl.SET_TIMED_TEXT_APPEARANCE="setTimedTextAppearance",Jl.SET_TIMED_TEXT_REGION="setTimedTextRegion",Jl.SKIP_PROMO="skipPromo",Jl.AUDIO_TRACK_SELECTION="audioTrackSelection",Jl.MULTIVIEW_FEED_CHANGE_REQUEST="multiviewFeedChangeRequest",Jl.GET_IMAGE_URL="getImageUrl",Jl.DISPOSE="dispose",Jl.MEDIA_ELEMENT_DISPATCH="mediaElementDispatch",Jl.MEDIA_ELEMENT_GET_STATE="mediaElementGetState";const tc={AD:"ad",BUMPER:"bumper",CONTENT:"content",PROMO:"promo"},ec="PREROLL";var nc,ic;(ic=nc||(nc={})).AMBIENT="AMBIENT",ic.BACKGROUND_AUTOPLAY="BACKGROUND_AUTOPLAY",ic.CATCH_UP_TO_LIVE="CATCH_UP_TO_LIVE",ic.NORMAL="NORMAL";const rc="PAUSED";var oc,ac;(ac=oc||(oc={})).APP="app",ac.SEEK="seek",ac.SKIP="skip";var sc,lc,cc,dc;(lc=sc||(sc={}))[lc.UNKNOWN=0]="UNKNOWN",lc[lc.LIVE=1]="LIVE",lc[lc.EVENT=2]="EVENT",lc[lc.LINEAR=4]="LINEAR",lc[lc.SLIDING_WINDOW=8]="SLIDING_WINDOW",lc[lc.VOD=16]="VOD",lc[lc.REPLAY=32]="REPLAY",lc[lc.EVENT_REPLAY=34]="EVENT_REPLAY",lc[lc.LINEAR_REPLAY=36]="LINEAR_REPLAY",(dc=cc||(cc={})).EVENT="event",dc.EVENT_REPLAY="eventReplay",dc.LINEAR="linear",dc.LINEAR_REAIR="linearReair",dc.SVOD="SVOD";const uc="REACHED_LIVE_EDGE",pc="REACHED_TAIL_EDGE",hc="AD_BOUNDARY",mc="BUMPER_BOUNDARY",gc="CONTROLS_DISABLED",vc="CONTROLS_DISABLED_DEFAULT",fc="LIVE_NO_SEEK",bc="CAPTIONS_NOT_AVAILABLE";var _c,Ec;function yc(){if(Ec)return _c;Ec=1;var t=me(),e=ge();return _c=function(n){return"number"==typeof n||e(n)&&"[object Number]"==t(n)}}const Sc=bt(yc()),Tc=(t=An(Tn.DEBUG))=>(e,n="hh:mm:ss")=>{if(!Sc(e)||e<0)return t.warn("FormatDuration",`Unable to format the given duration. Duration "${e}" is invalid.`),"";const i=3600,r=Math.floor(e/1e3),o=Math.floor(r/60),a=r%60;if("mms"===n){const t=Math.floor(a);return 0===o?`${t}s`:`${o}m${t}s`}if("m"===n){const t=a>=30?o+1:o;return`${Math.max(1,t)}m`}const s=Math.floor(r/i),l=Math.floor(r%i/60),c=Math.floor(r%i%60),d="escape",u="hours",p="minutes",h="seconds",m="text",g={};g[d]=/\{(.+?)\}/,g[u]=/[Hh]{1,2}/,g[p]=/m{1,2}/,g[h]=/s{1,2}/,g[m]=/.+?/,g.empty=/.*/;const v=Object.keys(g).map((t=>g[t].source)).join("|"),f=new RegExp(v,"g");return n.match(f).map(((t,e)=>{const n=Object.keys(g).find((e=>g[e].test(t)));let i="";switch(n){case d:i=t.replace(g.escape,"$1");break;case u:i=t.length>1&&s<10?`0${s}`:s;break;case p:i=t.length>1&&l<10?`0${l}`:l;break;case h:i=t.length>1&&c<10?`0${c}`:c;break;case m:i=t}return{index:e,length:t.length,type:n,token:t,value:i}})).map((t=>t.value)).join("")},Cc=(t,...e)=>{Dt.assert.nonEmptyString(t,`${Cc.signature} fName is required`);const n=t=>{const e=(...e)=>(Dt.assert(e.every(Dt.nonEmptyString),`${Cc.signature} all paramNames must be non-empty strings`),n(`${t}${((...t)=>`(${t.join(", ")})`)(...e)}
452`));return e.value=()=>t,e};return n(t)(...e)};Cc.signature=Cc("toFunctionSignature","fName","...paramNames").value();const wc=[t=>t,t=>60*t,t=>3600*t],Ac=t=>{const e=`${Ac.signature} timecode (${t}) must be a string of the form hh:mm:ss, where hh, mm, & ss are numeric`;Dt.assert.string(t,e);const n=t.split(":").reverse();return Dt.assert.array(n,e),Dt.assert.equal(n.length,3,e),n.reduce(((t,n,i)=>{const r=wc[i],o=+n;return Dt.assert.number(o,e),t+r(+n)}),0)};Ac.signature=Cc("toSecondsFromTimecode","timecode").value();const Ic=t=>t<6e5?"m:ss":t<36e5?"mm:ss":t<36e6?"h:mm:ss":"hh:mm:ss";var Oc="delete",Rc=5,xc=1<<Rc,Lc=xc-1,kc={};function Pc(t){t&&(t.value=!0)}function Dc(){}function Nc(t){return void 0===t.size&&(t.size=t.__iterate(Uc)),t.size}function Mc(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?Nc(t)+e:e}function Uc(){return!0}function Bc(t,e,n){return(0===t&&!$c(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function Vc(t,e){return zc(t,e,0)}function Fc(t,e){return zc(t,e,e)}function zc(t,e,n){return void 0===t?n:$c(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function $c(t){return t<0||0===t&&1/t==-1/0}var Hc="@@__IMMUTABLE_ITERABLE__@@";function Gc(t){return Boolean(t&&t[Hc])}var Yc="@@__IMMUTABLE_KEYED__@@";function jc(t){return Boolean(t&&t[Yc])}var Kc="@@__IMMUTABLE_INDEXED__@@";function Wc(t){return Boolean(t&&t[Kc])}function qc(t){return jc(t)||Wc(t)}var Xc=function(t){return Gc(t)?t:Sd(t)},Zc=function(t){function e(t){return jc(t)?t:Td(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Xc),Qc=function(t){function e(t){return Wc(t)?t:Cd(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Xc),Jc=function(t){function e(t){return Gc(t)&&!qc(t)?t:wd(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Xc);Xc.Keyed=Zc,Xc.Indexed=Qc,Xc.Set=Jc;var td="@@__IMMUTABLE_SEQ__@@";function ed(t){return Boolean(t&&t[td])}var nd="@@__IMMUTABLE_RECORD__@@";function id(t){return Boolean(t&&t[nd])}function rd(t){return Gc(t)||id(t)}var od="@@__IMMUTABLE_ORDERED__@@";function ad(t){return Boolean(t&&t[od])}var sd=0,ld=1,cd=2,dd="function"==typeof Symbol&&Symbol.iterator,ud="@@iterator",pd=dd||ud,hd=function(t){this.next=t};function md(t,e,n,i){var r=0===t?e:1===t?n:[e,n];return i?i.value=r:i={value:r,done:!1},i}function gd(){return{value:void 0,done:!0}}function vd(t){return!!Array.isArray(t)||!!_d(t)}function fd(t){return t&&"function"==typeof t.next}function bd(t){var e=_d(t);return e&&e.call(t)}function _d(t){var e=t&&(dd&&t[dd]||t[ud]);if("function"==typeof e)return e}hd.prototype.toString=function(){return"[Iterator]"},hd.KEYS=sd,hd.VALUES=ld,hd.ENTRIES=cd,hd.prototype.inspect=hd.prototype.toSource=function(){return this.toString()},hd.prototype[pd]=function(){return this};var Ed=Object.prototype.hasOwnProperty;function yd(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Sd=function(t){function e(t){return null==t?xd():rd(t)?t.toSeq():function(t){var e,n,i=Pd(t);if(i)return(n=_d(e=t))&&n===e.entries?i.fromEntrySeq():function(t){var e=_d(t);return e&&e===t.keys}(t)?i.toSetSeq():i;if("object"==typeof t)return new Id(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var i=n.length,r=0;r!==i;){var o=n[e?i-++r:r++];if(!1===t(o[1],o[0],this))break}return r}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var i=n.length,r=0;return new hd((function(){if(r===i)return{value:void 0,done:!0};var o=n[e?i-++r:r++];return md(t,o[0],o[1])}))}return this.__iteratorUncached(t,e)},e}(Xc),Td=function(t){function e(t){return null==t?xd().toKeyedSeq():Gc(t)?jc(t)?t.toSeq():t.fromEntrySeq():id(t)?t.toSeq():Ld(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Sd),Cd=function(t){function e(t){return null==t?xd():Gc(t)?jc(t)?t.entrySeq():t.toIndexedSeq():id(t)?t.toSeq().entrySeq():kd(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Sd),wd=function(t){function e(t){return(Gc(t)&&!qc(t)?t:Cd(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Sd);Sd.isSeq=ed,Sd.Keyed=Td,Sd.Set=wd,Sd.Indexed=Cd,Sd.prototype[td]=!0;var Ad=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[Mc(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,i=n.length,r=0;r!==i;){var o=e?i-++r:r++;if(!1===t(n[o],o,this))break}return r},e.prototype.__iterator=function(t,e){var n=this._array,i=n.length,r=0;return new hd((function(){if(r===i)return{value:void 0,done:!0};var o=e?i-++r:r++;return md(t,o,n[o])}))},e}(Cd),Id=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return Ed.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,i=this._keys,r=i.length,o=0;o!==r;){var a=i[e?r-++o:o++];if(!1===t(n[a],a,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._object,i=this._keys,r=i.length,o=0;return new hd((function(){if(o===r)return{value:void 0,done:!0};var a=i[e?r-++o:o++];return md(t,a,n[a])}))},e}(Td);Id.prototype[od]=!0;var Od,Rd=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=bd(this._collection),i=0;if(fd(n))for(var r;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=bd(this._collection);if(!fd(n))return new hd(gd);var i=0;return new hd((function(){var e=n.next();return e.done?e:md(t,i++,e.value)}))},e}(Cd);function xd(){return Od||(Od=new Ad([]))}function Ld(t){var e=Pd(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new Id(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function kd(t){var e=Pd(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function Pd(t){return yd(t)?new Ad(t):vd(t)?new Rd(t):void 0}var Dd="@@__IMMUTABLE_MAP__@@";function Nd(t){return Boolean(t&&t[Dd])}function Md(t){return Nd(t)&&ad(t)}function Ud(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function Bd(t,e){if(t===e||t!=t&&e!=e)return!0;
452if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(Ud(t)&&Ud(e)&&t.equals(e))}var Vd="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),i=65535&(e|=0);return n*i+((t>>>16)*i+n*(e>>>16)<<16>>>0)|0};function Fd(t){return t>>>1&1073741824|3221225471&t}var zd=Object.prototype.valueOf;function $d(t){if(null==t)return Hd(t);if("function"==typeof t.hashCode)return Fd(t.hashCode(t));var e,n,i,r=(e=t).valueOf!==zd&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==r)return Hd(r);switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return Fd(e)}(r);case"string":return r.length>Jd?(void 0===(i=nu[n=r])&&(i=Gd(n),eu===tu&&(eu=0,nu={}),eu++,nu[n]=i),i):Gd(r);case"object":case"function":return function(t){var e;if(qd&&void 0!==(e=Wd.get(t)))return e;if(void 0!==(e=t[Qd]))return e;if(!jd){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Qd]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=Kd(),qd)Wd.set(t,e);else{if(void 0!==Yd&&!1===Yd(t))throw new Error("Non-extensible objects are not allowed as keys.");
vendor: 7,793 bytes, line 452
452if(jd)Object.defineProperty(t,Qd,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Qd]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Qd]=e}}return e}(r);case"symbol":return function(t){var e=Xd[t];return void 0!==e||(e=Kd(),Xd[t]=e),e}(r);default:if("function"==typeof r.toString)return Gd(r.toString());throw new Error("Value type "+typeof r+" cannot be hashed.")}}function Hd(t){return null===t?1108378658:1108378659}function Gd(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return Fd(e)}var Yd=Object.isExtensible,jd=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function Kd(){var t=++Zd;return 1073741824&Zd&&(Zd=0),t}var Wd,qd="function"==typeof WeakMap;qd&&(Wd=new WeakMap);var Xd=Object.create(null),Zd=0,Qd="__immutablehash__";"function"==typeof Symbol&&(Qd=Symbol(Qd));var Jd=16,tu=255,eu=0,nu={},iu=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=cu(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,i=lu(this,t,e);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(t,e)}),i},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e,i){return t(e,i,n)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Td);iu.prototype[od]=!0;var ru=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,i=0;return e&&Nc(this),this._iter.__iterate((function(r){return t(r,e?n.size-++i:i++,n)}),e)},e.prototype.__iterator=function(t,e){var n=this,i=this._iter.__iterator(ld,e),r=0;return e&&Nc(this),new hd((function(){var o=i.next();return o.done?o:md(t,e?n.size-++r:r++,o.value,o)}))},e}(Cd),ou=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(ld,e);return new hd((function(){var e=n.next();return e.done?e:md(t,e.value,e.value,e)}))},e}(wd),au=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){_u(e);var i=Gc(e);return t(i?e.get(1):e[1],i?e.get(0):e[0],n)}}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(ld,e);return new hd((function(){for(;;){var e=n.next();if(e.done)return e;var i=e.value;if(i){_u(i);var r=Gc(i);return md(t,r?i.get(0):i[0],r?i.get(1):i[1],e)}}}))},e}(Td);function su(t){var e=yu(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Su,e.__iterateUncached=function(e,n){var i=this;return t.__iterate((function(t,n){return!1!==e(n,t,i)}),n)},e.__iteratorUncached=function(e,n){if(e===cd){var i=t.__iterator(e,n);return new hd((function(){var t=i.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===ld?sd:ld,n)},e}function lu(t,e,n){var i=yu(t);return i.size=t.size,i.has=function(e){return t.has(e)},i.get=function(i,r){var o=t.get(i,kc);return o===kc?r:e.call(n,o,i,t)},i.__iterateUncached=function(i,r){var o=this;return t.__iterate((function(t,r,a){return!1!==i(e.call(n,t,r,a),r,o)}),r)},i.__iteratorUncached=function(i,r){var o=t.__iterator(cd,r);return new hd((function(){var r=o.next();if(r.done)return r;var a=r.value,s=a[0];return md(i,s,e.call(n,a[1],s,t),r)}))},i}function cu(t,e){var n=this,i=yu(t);return i._iter=t,i.size=t.size,i.reverse=function(){return t},t.flip&&(i.flip=function(){var e=su(t);return e.reverse=function(){return t.flip()},e}),i.get=function(n,i){return t.get(e?n:-1-n,i)},i.has=function(n){return t.has(e?n:-1-n)},i.includes=function(e){return t.includes(e)},i.cacheResult=Su,i.__iterate=function(n,i){var r=this,o=0;return i&&Nc(t),t.__iterate((function(t,a){return n(t,e?a:i?r.size-++o:o++,r)}),!i)},i.__iterator=function(i,r){var o=0;r&&Nc(t);var a=t.__iterator(cd,!r);return new hd((function(){var t=a.next();if(t.done)return t;var s=t.value;return md(i,e?s[0]:r?n.size-++o:o++,s[1],t)}))},i}function du(t,e,n,i){var r=yu(t);return i&&(r.has=function(i){var r=t.get(i,kc);return r!==kc&&!!e.call(n,r,i,t)},r.get=function(i,r){var o=t.get(i,kc);return o!==kc&&e.call(n,o,i,t)?o:r}),r.__iterateUncached=function(r,o){var a=this,s=0;return t.__iterate((function(t,o,l){if(e.call(n,t,o,l))return s++,r(t,i?o:s-1,a)}),o),s},r.__iteratorUncached=function(r,o){var a=t.__iterator(cd,o),s=0;return new hd((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,c=l[0],d=l[1];if(e.call(n,d,c,t))return md(r,i?c:s++,d,o)}}))},r}function uu(t,e,n,i){var r=t.size;if(Bc(e,n,r))return t;if(void 0===r&&(e<0||n<0))return uu(t.toSeq().cacheResult(),e,n,i);var o,a=Vc(e,r),s=Fc(n,r)-a;s==s&&(o=s<0?0:s);var l=yu(t);return l.size=0===o?o:t.size&&o||void 0,!i&&ed(t)&&o>=0&&(l.get=function(e,n){return(e=Mc(this,e))>=0&&e<o?t.get(e+a,n):n}),l.__iterateUncached=function(e,n){var r=this;if(0===o)return 0;if(n)return this.cacheResult().__iterate(e,n);var s=0,l=!0,c=0;return t.__iterate((function(t,n){if(!l||!(l=s++<a))return c++,!1!==e(t,i?n:c-1,r)&&c!==o})),c},l.__iteratorUncached=function(e,n){if(0!==o&&n)return this.cacheResult().__iterator(e,n);if(0===o)return new hd(gd);var r=t.__iterator(e,n),s=0,l=0;return new hd((function(){for(;s++<a;)r.next();if(++l>o)return{value:void 0,done:!0};var t=r.next();return i||e===ld||t.done?t:md(e,l-1,e===sd?void 0:t.value[1],t)}))},l}function pu(t,e,n,i){var r=yu(t);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var s=!0,l=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return l++,r(t,i?o:l-1,a)})),l},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var s=t.__iterator(cd,o),l=!0,c=0;return new hd((function(){var t,o,d;do{if((t=s.next()).done)return i||r===ld?t:md(r,c++,r===sd?void 0:t.value[1],t);var u=t.value;o=u[0],d=u[1],l&&(l=e.call(n,d,o,a))}while(l);return r===cd?t:md(r,o,d,t)}))},r}function hu(t,e,n){var i=yu(t);return i.__iterateUncached=function(r,o){if(o)return this.cacheResult().__iterate(r,o);var a=0,s=!1;return function t(l,c){l.__iterate((function(o,l){return(!e||c<e)&&Gc(o)?t(o,c+1):(a++,!1===r(o,n?l:a-1,i)&&(s=!0)),!s}),o)}(t,0),a},i.__iteratorUncached=function(i,r){if(r)return this.cacheResult().__iterator(i,r);var o=t.__iterator(i,r),a=[],s=0;return new hd((function(){for(;o;){var t=o.next();if(!1===t.done){var l=t.value;
452if(i===cd&&(l=l[1]),e&&!(a.length<e)||!Gc(l))return n?t:md(i,s++,l,t);a.push(o),o=l.__iterator(i,r)}else o=a.pop()}return{value:void 0,done:!0}}))},i}function mu(t,e,n){e||(e=Tu);var i=jc(t),r=0,o=t.toSeq().map((function(e,i){return[i,e,r++,n?n(e,i,t):e]})).valueSeq().toArray();return o.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]})).forEach(i?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),i?Td(o):Wc(t)?Cd(o):wd(o)}function gu(t,e,n){if(e||(e=Tu),n){var i=t.toSeq().map((function(e,i){return[e,n(e,i,t)]})).reduce((function(t,n){return vu(e,t[1],n[1])?n:t}));return i&&i[0]}return t.reduce((function(t,n){return vu(e,t,n)?n:t}))}function vu(t,e,n){var i=t(n,e);return 0===i&&n!==e&&(null==n||n!=n)||i>0}function fu(t,e,n,i){var r=yu(t),o=new Ad(n).map((function(t){return t.size}));return r.size=i?o.max():o.min(),r.__iterate=function(t,e){for(var n,i=this.__iterator(ld,e),r=0;!(n=i.next()).done&&!1!==t(n.value,r++,this););return r},r.__iteratorUncached=function(t,r){var o=n.map((function(t){return t=Xc(t),bd(r?t.reverse():t)})),a=0,s=!1;return new hd((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=i?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:md(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},r}function bu(t,e){return t===e?t:ed(t)?e:t.constructor(e)}function _u(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Eu(t){return jc(t)?Zc:Wc(t)?Qc:Jc}function yu(t){return Object.create((jc(t)?Td:Wc(t)?Cd:wd).prototype)}function Su(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Sd.prototype.cacheResult.call(this)}function Tu(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Cu(t,e){e=e||0;for(var n=Math.max(0,t.length-e),i=new Array(n),r=0;r<n;r++)i[r]=t[r+e];return i}function wu(t,e){if(!t)throw new Error(e)}function Au(t){wu(t!==1/0,"Cannot perform this action with an infinite size.")}function Iu(t){if(yd(t)&&"string"!=typeof t)return t;if(ad(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}ru.prototype.cacheResult=iu.prototype.cacheResult=ou.prototype.cacheResult=au.prototype.cacheResult=Su;var Ou=Object.prototype.toString;function Ru(t){return"object"==typeof t&&(rd(t)||Array.isArray(t)||function(t){if(!t||"object"!=typeof t||"[object Object]"!==Ou.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,i=Object.getPrototypeOf(e);null!==i;)n=i,i=Object.getPrototypeOf(n);return n===e}(t))}function xu(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function Lu(t,e,n){return rd(t)?t.get(e,n):function(t,e){return rd(t)?t.has(e):Ru(t)&&Ed.call(t,e)}(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function ku(t){if(Array.isArray(t))return Cu(t);var e={};for(var n in t)Ed.call(t,n)&&(e[n]=t[n]);return e}function Pu(t,e,n,i){i||(i=n,n=void 0);var r=Du(rd(t),t,Iu(e),0,n,i);return r===kc?n:r}function Du(t,e,n,i,r,o){var a=e===kc;if(i===n.length){var s=a?r:e,l=o(s);return l===s?e:l}if(!a&&!Ru(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,i).map(xu)+"]: "+e);var c=n[i],d=a?kc:Lu(e,c,kc),u=Du(d===kc?t:rd(d),d,n,i+1,r,o);return u===d?e:u===kc?function(t,e){if(!Ru(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(rd(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!Ed.call(t,e))return t;var n=ku(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}(e,c):function(t,e,n){if(!Ru(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(rd(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(Ed.call(t,e)&&n===t[e])return t;var i=ku(t);return i[e]=n,i}(a?t?up():{}:e,c,u)}function Nu(t,e){return function(t,e,n){return Pu(t,e,kc,(function(){return n}))}(this,t,e)}function Mu(t){return function(t,e){return Pu(t,e,(function(){return kc}))}(this,t)}function Uu(t,e,n,i){return Pu(t,[e],n,i)}function Bu(t,e,n){return 1===arguments.length?t(this):Uu(this,t,e,n)}function Vu(t,e,n){return Pu(this,t,e,n)}function Fu(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return $u(this,t)}function zu(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return $u(this,e,t)}function $u(t,e,n){for(var i=[],r=0;r<e.length;r++){var o=Zc(e[r]);0!==o.size&&i.push(o)}return 0===i.length?t:0!==t.toSeq().size||t.__ownerID||1!==i.length?t.withMutations((function(t){for(var e=n?function(e,i){Uu(t,i,kc,(function(t){return t===kc?e:n(t,e,i)}))}:function(e,n){t.set(n,e)},r=0;r<i.length;r++)i[r].forEach(e)})):t.constructor(i[0])}function Hu(t,e,n){return Gu(t,e,function(t){return function e(n,i,r){return Ru(n)&&Ru(i)&&(o=i,a=Sd(n),s=Sd(o),Wc(a)===Wc(s)&&jc(a)===jc(s))?Gu(n,[i],e):t?t(n,i,r):i;var o,a,s}}(n))}function Gu(t,e,n){if(!Ru(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(rd(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var i=Array.isArray(t),r=t,o=i?Qc:Zc,a=i?function(e){r===t&&(r=ku(r)),r.push(e)}:function(e,i){var o=Ed.call(r,i),a=o&&n?n(r[i],e,i):e;o&&a===r[i]||(r===t&&(r=ku(r)),r[i]=a)},s=0;s<e.length;
vendor: 7,202 bytes, line 452
452s++)o(e[s]).forEach(a);return r}function Yu(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Hu(this,t)}function ju(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Hu(this,e,t)}function Ku(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Pu(this,t,up(),(function(t){return Gu(t,e)}))}function Wu(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return Pu(this,t,up(),(function(t){return Hu(t,e)}))}function qu(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Xu(){return this.__ownerID?this:this.__ensureOwner(new Dc)}function Zu(){return this.__ensureOwner()}function Qu(){return this.__altered}var Ju=function(t){function e(e){return null==e?up():Nd(e)&&!ad(e)?e:up().withMutations((function(n){var i=t(e);Au(i.size),i.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return up().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return pp(this,t,e)},e.prototype.remove=function(t){return pp(this,t,kc)},e.prototype.deleteAll=function(t){var e=Xc(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):up()},e.prototype.sort=function(t){return Up(mu(this,t))},e.prototype.sortBy=function(t,e){return Up(mu(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(i){i.forEach((function(r,o){i.set(o,t.call(e,r,o,n))}))}))},e.prototype.__iterator=function(t,e){return new sp(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,i=0;return this._root&&this._root.iterate((function(e){return i++,t(e[1],e[0],n)}),e),i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?dp(this.size,this._root,t,this.__hash):0===this.size?up():(this.__ownerID=t,this.__altered=!1,this)},e}(Zc);Ju.isMap=Nd;var tp=Ju.prototype;tp[Dd]=!0,tp[Oc]=tp.remove,tp.removeAll=tp.deleteAll,tp.setIn=Nu,tp.removeIn=tp.deleteIn=Mu,tp.update=Bu,tp.updateIn=Vu,tp.merge=tp.concat=Fu,tp.mergeWith=zu,tp.mergeDeep=Yu,tp.mergeDeepWith=ju,tp.mergeIn=Ku,tp.mergeDeepIn=Wu,tp.withMutations=qu,tp.wasAltered=Qu,tp.asImmutable=Zu,tp["@@transducer/init"]=tp.asMutable=Xu,tp["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},tp["@@transducer/result"]=function(t){return t.asImmutable()};var ep=function(t,e){this.ownerID=t,this.entries=e};ep.prototype.get=function(t,e,n,i){for(var r=this.entries,o=0,a=r.length;o<a;o++)if(Bd(n,r[o][0]))return r[o][1];return i},ep.prototype.update=function(t,e,n,i,r,o,a){for(var s=r===kc,l=this.entries,c=0,d=l.length;c<d&&!Bd(i,l[c][0]);c++);var u=c<d;if(u?l[c][1]===r:s)return this;if(Pc(a),(s||!u)&&Pc(o),!s||1!==l.length){if(!u&&!s&&l.length>=bp)return function(t,e,n,i){t||(t=new Dc);for(var r=new op(t,$d(n),[n,i]),o=0;o<e.length;o++){var a=e[o];r=r.update(t,0,void 0,a[0],a[1])}return r}(t,l,i,r);var p=t&&t===this.ownerID,h=p?l:Cu(l);return u?s?c===d-1?h.pop():h[c]=h.pop():h[c]=[i,r]:h.push([i,r]),p?(this.entries=h,this):new ep(t,h)}};var np=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};np.prototype.get=function(t,e,n,i){void 0===e&&(e=$d(n));var r=1<<((0===t?e:e>>>t)&Lc),o=this.bitmap;return 0==(o&r)?i:this.nodes[vp(o&r-1)].get(t+Rc,e,n,i)},np.prototype.update=function(t,e,n,i,r,o,a){void 0===n&&(n=$d(i));var s=(0===e?n:n>>>e)&Lc,l=1<<s,c=this.bitmap,d=0!=(c&l);if(!d&&r===kc)return this;var u=vp(c&l-1),p=this.nodes,h=d?p[u]:void 0,m=hp(h,t,e+Rc,n,i,r,o,a);if(m===h)return this;if(!d&&m&&p.length>=_p)return function(t,e,n,i,r){for(var o=0,a=new Array(xc),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[i]=r,new ip(t,o+1,a)}(t,p,c,s,m);if(d&&!m&&2===p.length&&mp(p[1^u]))return p[1^u];if(d&&m&&1===p.length&&mp(m))return m;var g=t&&t===this.ownerID,v=d?m?c:c^l:c|l,f=d?m?fp(p,u,m,g):function(t,e,n){var i=t.length-1;if(n&&e===i)return t.pop(),t;for(var r=new Array(i),o=0,a=0;a<i;a++)a===e&&(o=1),r[a]=t[a+o];return r}(p,u,g):function(t,e,n,i){var r=t.length+1;if(i&&e+1===r)return t[e]=n,t;for(var o=new Array(r),a=0,s=0;s<r;s++)s===e?(o[s]=n,a=-1):o[s]=t[s+a];return o}(p,u,m,g);return g?(this.bitmap=v,this.nodes=f,this):new np(t,v,f)};var ip=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};ip.prototype.get=function(t,e,n,i){void 0===e&&(e=$d(n));var r=(0===t?e:e>>>t)&Lc,o=this.nodes[r];return o?o.get(t+Rc,e,n,i):i},ip.prototype.update=function(t,e,n,i,r,o,a){void 0===n&&(n=$d(i));var s=(0===e?n:n>>>e)&Lc,l=r===kc,c=this.nodes,d=c[s];if(l&&!d)return this;var u=hp(d,t,e+Rc,n,i,r,o,a);if(u===d)return this;var p=this.count;if(d){if(!u&&--p<Ep)return function(t,e,n,i){for(var r=0,o=0,a=new Array(n),s=0,l=1,c=e.length;s<c;s++,l<<=1){var d=e[s];void 0!==d&&s!==i&&(r|=l,a[o++]=d)}return new np(t,r,a)}(t,c,p,s)}else p++;var h=t&&t===this.ownerID,m=fp(c,s,u,h);return h?(this.count=p,this.nodes=m,this):new ip(t,p,m)};var rp=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};rp.prototype.get=function(t,e,n,i){for(var r=this.entries,o=0,a=r.length;o<a;o++)if(Bd(n,r[o][0]))return r[o][1];return i},rp.prototype.update=function(t,e,n,i,r,o,a){void 0===n&&(n=$d(i));var s=r===kc;if(n!==this.keyHash)return s?this:(Pc(a),Pc(o),gp(this,t,e,n,[i,r]));for(var l=this.entries,c=0,d=l.length;c<d&&!Bd(i,l[c][0]);c++);var u=c<d;if(u?l[c][1]===r:s)return this;if(Pc(a),(s||!u)&&Pc(o),s&&2===d)return new op(t,this.keyHash,l[1^c]);var p=t&&t===this.ownerID,h=p?l:Cu(l);return u?s?c===d-1?h.pop():h[c]=h.pop():h[c]=[i,r]:h.push([i,r]),p?(this.entries=h,this):new rp(t,this.keyHash,h)};var op=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};op.prototype.get=function(t,e,n,i){return Bd(n,this.entry[0])?this.entry[1]:i},op.prototype.update=function(t,e,n,i,r,o,a){var s=r===kc,l=Bd(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(Pc(a),s?void Pc(o):l?t&&t===this.ownerID?(this.entry[1]=r,this):new op(t,this.keyHash,[i,r]):(Pc(o),gp(this,t,e,$d(i),[i,r])))},ep.prototype.iterate=rp.prototype.iterate=function(t,e){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===t(n[e?r-i:i]))return!1},np.prototype.iterate=ip.prototype.iterate=function(t,e){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var o=n[e?r-i:i];if(o&&!1===o.iterate(t,e))return!1}},op.prototype.iterate=function(t,e){return t(this.entry)};var ap,sp=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&cp(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,i=e.index++,r=void 0;if(n.entry){if(0===i)return lp(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return lp(t,n.entr
vendor: 1,342 bytes, line 452
452ies[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return lp(t,o.entry);e=this._stack=cp(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(hd);function lp(t,e){return md(t,e[0],e[1])}function cp(t,e){return{node:t,index:0,__prev:e}}function dp(t,e,n,i){var r=Object.create(tp);return r.size=t,r._root=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function up(){return ap||(ap=dp(0))}function pp(t,e,n){var i,r;if(t._root){var o={value:!1},a={value:!1};if(i=hp(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;r=t.size+(o.value?n===kc?-1:1:0)}else{if(n===kc)return t;r=1,i=new ep(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=r,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?dp(r,i):up()}function hp(t,e,n,i,r,o,a,s){return t?t.update(e,n,i,r,o,a,s):o===kc?t:(Pc(s),Pc(a),new op(e,i,[r,o]))}function mp(t){return t.constructor===op||t.constructor===rp}function gp(t,e,n,i,r){if(t.keyHash===i)return new rp(e,i,[t.entry,r]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&Lc,s=(0===n?i:i>>>n)&Lc,l=a===s?[gp(t,e,n+Rc,i,r)]:(o=new op(e,i,r),a<s?[t,o]:[o,t]);return new np(e,1<<a|1<<s,l)}function vp(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function fp(t,e,n,i){var r=i?t:Cu(t);return r[e]=n,r}
vendor: 5,329 bytes, line 452
452var bp=xc/4,_p=xc/2,Ep=xc/4,yp="@@__IMMUTABLE_LIST__@@";function Sp(t){return Boolean(t&&t[yp])}var Tp=function(t){function e(e){var n=xp();if(null==e)return n;if(Sp(e))return e;var i=t(e),r=i.size;return 0===r?n:(Au(r),r>0&&r<xc?Rp(0,r,Rc,null,new wp(i.toArray())):n.withMutations((function(t){t.setSize(r),i.forEach((function(e,n){return t.set(n,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=Mc(this,t))>=0&&t<this.size){var n=Pp(this,t+=this._origin);return n&&n.array[t&Lc]}return e},e.prototype.set=function(t,e){return function(t,e,n){if((e=Mc(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?Dp(t,e).set(0,n):Dp(t,0,e+1).set(e,n)}));e+=t._origin;var i=t._tail,r=t._root,o={value:!1};return e>=Np(t._capacity)?i=Lp(i,t.__ownerID,0,e,n,o):r=Lp(r,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=r,t._tail=i,t.__hash=void 0,t.__altered=!0,t):Rp(t._origin,t._capacity,t._level,r,i):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Rc,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):xp()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){Dp(n,0,e+t.length);for(var i=0;i<t.length;i++)n.set(e+i,t[i])}))},e.prototype.pop=function(){return Dp(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){Dp(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},e.prototype.shift=function(){return Dp(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],i=0;i<arguments.length;i++){var r=e[i],o=t("string"!=typeof r&&vd(r)?r:[r]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(t){n.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(n[0])},e.prototype.setSize=function(t){return Dp(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(i){for(var r=0;r<n.size;r++)i.set(r,t.call(e,i.get(r),r,n))}))},e.prototype.slice=function(t,e){var n=this.size;return Bc(t,e,n)?this:Dp(this,Vc(t,n),Fc(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,i=Op(this,e);return new hd((function(){var r=i();return r===Ip?{value:void 0,done:!0}:md(t,e?--n:n++,r)}))},e.prototype.__iterate=function(t,e){for(var n,i=e?this.size:0,r=Op(this,e);(n=r())!==Ip&&!1!==t(n,e?--i:i++,this););return i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Rp(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?xp():(this.__ownerID=t,this.__altered=!1,this)},e}(Qc);Tp.isList=Sp;var Cp=Tp.prototype;Cp[yp]=!0,Cp[Oc]=Cp.remove,Cp.merge=Cp.concat,Cp.setIn=Nu,Cp.deleteIn=Cp.removeIn=Mu,Cp.update=Bu,Cp.updateIn=Vu,Cp.mergeIn=Ku,Cp.mergeDeepIn=Wu,Cp.withMutations=qu,Cp.wasAltered=Qu,Cp.asImmutable=Zu,Cp["@@transducer/init"]=Cp.asMutable=Xu,Cp["@@transducer/step"]=function(t,e){return t.push(e)},Cp["@@transducer/result"]=function(t){return t.asImmutable()};var wp=function(t,e){this.array=t,this.ownerID=e};wp.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var i=n>>>e&Lc;if(i>=this.array.length)return new wp([],t);var r,o=0===i;if(e>0){var a=this.array[i];if((r=a&&a.removeBefore(t,e-Rc,n))===a&&o)return this}if(o&&!r)return this;var s=kp(this,t);if(!o)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},wp.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var i,r=n-1>>>e&Lc;if(r>=this.array.length)return this;if(e>0){var o=this.array[r];if((i=o&&o.removeAfter(t,e-Rc,n))===o&&r===this.array.length-1)return this}var a=kp(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Ap,Ip={};function Op(t,e){var n=t._origin,i=t._capacity,r=Np(i),o=t._tail;return function t(a,s,l){return 0===s?function(t,a){var s=a===r?o&&o.array:t&&t.array,l=a>n?0:n-a,c=i-a;return c>xc&&(c=xc),function(){if(l===c)return Ip;var t=e?--c:l++;return s&&s[t]}}(a,l):function(r,o,a){var s,l=r&&r.array,c=a>n?0:n-a>>o,d=1+(i-a>>o);return d>xc&&(d=xc),function(){for(;;){if(s){var n=s();if(n!==Ip)return n;s=null}if(c===d)return Ip;var i=e?--d:c++;s=t(l&&l[i],o-Rc,a+(i<<o))}}}(a,s,l)}(t._root,t._level,0)}function Rp(t,e,n,i,r,o,a){var s=Object.create(Cp);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=i,s._tail=r,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function xp(){return Ap||(Ap=Rp(0,0,Rc))}function Lp(t,e,n,i,r,o){var a,s=i>>>n&Lc,l=t&&s<t.array.length;if(!l&&void 0===r)return t;if(n>0){var c=t&&t.array[s],d=Lp(c,e,n-Rc,i,r,o);return d===c?t:((a=kp(t,e)).array[s]=d,a)}return l&&t.array[s]===r?t:(o&&Pc(o),a=kp(t,e),void 0===r&&s===a.array.length-1?a.array.pop():a.array[s]=r,a)}function kp(t,e){return e&&t&&e===t.ownerID?t:new wp(t?t.array.slice():[],e)}function Pp(t,e){if(e>=Np(t._capacity))return t._tail;
vendor: 13,138 bytes, line 452
452if(e<1<<t._level+Rc){for(var n=t._root,i=t._level;n&&i>0;)n=n.array[e>>>i&Lc],i-=Rc;return n}}function Dp(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var i=t.__ownerID||new Dc,r=t._origin,o=t._capacity,a=r+e,s=void 0===n?o:n<0?o+n:r+n;if(a===r&&s===o)return t;if(a>=s)return t.clear();for(var l=t._level,c=t._root,d=0;a+d<0;)c=new wp(c&&c.array.length?[void 0,c]:[],i),d+=1<<(l+=Rc);d&&(a+=d,r+=d,s+=d,o+=d);for(var u=Np(o),p=Np(s);p>=1<<l+Rc;)c=new wp(c&&c.array.length?[c]:[],i),l+=Rc;var h=t._tail,m=p<u?Pp(t,s-1):p>u?new wp([],i):h;if(h&&p>u&&a<o&&h.array.length){for(var g=c=kp(c,i),v=l;v>Rc;v-=Rc){var f=u>>>v&Lc;g=g.array[f]=kp(g.array[f],i)}g.array[u>>>Rc&Lc]=h}if(s<o&&(m=m&&m.removeAfter(i,0,s)),a>=p)a-=p,s-=p,l=Rc,c=null,m=m&&m.removeBefore(i,0,a);else if(a>r||p<u){for(d=0;c;){var b=a>>>l&Lc;if(b!==p>>>l&Lc)break;b&&(d+=(1<<l)*b),l-=Rc,c=c.array[b]}c&&a>r&&(c=c.removeBefore(i,l,a-d)),c&&p<u&&(c=c.removeAfter(i,l,p-d)),d&&(a-=d,s-=d)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=l,t._root=c,t._tail=m,t.__hash=void 0,t.__altered=!0,t):Rp(a,s,l,c,m)}function Np(t){return t<xc?0:t-1>>>Rc<<Rc}var Mp,Up=function(t){function e(t){return null==t?Vp():Md(t)?t:Vp().withMutations((function(e){var n=Zc(t);Au(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Vp()},e.prototype.set=function(t,e){return Fp(this,t,e)},e.prototype.remove=function(t){return Fp(this,t,kc)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?Bp(e,n,t,this.__hash):0===this.size?Vp():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(Ju);function Bp(t,e,n,i){var r=Object.create(Up.prototype);return r.size=t?t.size:0,r._map=t,r._list=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Vp(){return Mp||(Mp=Bp(up(),xp()))}function Fp(t,e,n){var i,r,o=t._map,a=t._list,s=o.get(e),l=void 0!==s;if(n===kc){if(!l)return t;a.size>=xc&&a.size>=2*o.size?(i=(r=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(i.__ownerID=r.__ownerID=t.__ownerID)):(i=o.remove(e),r=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return t;i=o,r=a.set(s,[e,n])}else i=o.set(e,a.size),r=a.set(a.size,[e,n]);return t.__ownerID?(t.size=i.size,t._map=i,t._list=r,t.__hash=void 0,t.__altered=!0,t):Bp(i,r)}Up.isOrderedMap=Md,Up.prototype[od]=!0,Up.prototype[Oc]=Up.prototype.remove;var zp="@@__IMMUTABLE_STACK__@@";function $p(t){return Boolean(t&&t[zp])}var Hp=function(t){function e(t){return null==t?Kp():$p(t)?t:Kp().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=Mc(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,i=arguments.length-1;i>=0;i--)n={value:t[i],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):jp(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&$p(e))return e;Au(e.size);var n=this.size,i=this._head;return e.__iterate((function(t){n++,i={value:t,next:i}}),!0),this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):jp(n,i)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Kp()},e.prototype.slice=function(e,n){if(Bc(e,n,this.size))return this;var i=Vc(e,this.size);if(Fc(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var r=this.size-i,o=this._head;i--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):jp(r,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?jp(this.size,this._head,t,this.__hash):0===this.size?Kp():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new Ad(this.toArray()).__iterate((function(e,i){return t(e,i,n)}),e);for(var i=0,r=this._head;r&&!1!==t(r.value,i++,this);)r=r.next;return i},e.prototype.__iterator=function(t,e){if(e)return new Ad(this.toArray()).__iterator(t,e);var n=0,i=this._head;return new hd((function(){if(i){var e=i.value;return i=i.next,md(t,n++,e)}return{value:void 0,done:!0}}))},e}(Qc);Hp.isStack=$p;var Gp,Yp=Hp.prototype;function jp(t,e,n,i){var r=Object.create(Yp);return r.size=t,r._head=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Kp(){return Gp||(Gp=jp(0))}Yp[zp]=!0,Yp.shift=Yp.pop,Yp.unshift=Yp.push,Yp.unshiftAll=Yp.pushAll,Yp.withMutations=qu,Yp.wasAltered=Qu,Yp.asImmutable=Zu,Yp["@@transducer/init"]=Yp.asMutable=Xu,Yp["@@transducer/step"]=function(t,e){return t.unshift(e)},Yp["@@transducer/result"]=function(t){return t.asImmutable()};var Wp="@@__IMMUTABLE_SET__@@";function qp(t){return Boolean(t&&t[Wp])}function Xp(t){return qp(t)&&ad(t)}function Zp(t,e){if(t===e)return!0;if(!Gc(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||jc(t)!==jc(e)||Wc(t)!==Wc(e)||ad(t)!==ad(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!qc(t);if(ad(t)){var i=t.entries();return e.every((function(t,e){var r=i.next().value;return r&&Bd(r[1],t)&&(n||Bd(r[0],e))}))&&i.next().done}var r=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{r=!0;var o=t;t=e,e=o}var a=!0,s=e.__iterate((function(e,i){if(n?!t.has(e):r?!Bd(e,t.get(i,kc)):!Bd(t.get(i,kc),e))return a=!1,!1}));return a&&t.size===s}function Qp(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Jp(t){if(!t||"object"!=typeof t)return t;if(!Gc(t)){if(!Ru(t))return t;t=Sd(t)}if(jc(t)){var e={};return t.__iterate((function(t,n){e[n]=Jp(t)})),e}var n=[];return t.__iterate((function(t){n.push(Jp(t))})),n}var th=function(t){function e(e){return null==e?oh():qp(e)&&!ad(e)?e:oh().withMutations((function(n){var i=t(e);Au(i.size),i.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Zc(t).keySeq())},e.intersect=function(t){return(t=Xc(t).toArray()).length?nh.intersect.apply(e(t.pop()),t):oh()},e.union=function(t){return(t=Xc(t).toArray()).length?nh.union.apply(e(t.pop()),t):oh()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return ih(this,this._map.set(t,t))},e.prototype.remove=function(t){return ih(this,this._map.remove(t))},e.prototype.clear=function(){return ih(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,i=!1,r=ih(this,this._map.mapEntries((function(r){var o=r[1],a=t.call(e,o,o,n);return a!==o&&(i=!0),[a,a]}),e));return i?r:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var i=0;i<e.length;i++)"string"==typeof e[i]?n.add(e[i]):t(e[i]).forEach((function(t){return n.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var i=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||i.push(t)})),this.withMutations((function(t){i.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var i=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&i.push(t)})),this.withMutations((function(t){i.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return Th(mu(this,t))},e.prototype.sortBy=function(t,e){return Th(mu(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(Jc);th.isSet=qp;var eh,nh=th.prototype;function ih(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function rh(t,e){var n=Object.create(nh);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function oh(){return eh||(eh=rh(up()))}nh[Wp]=!0,nh[Oc]=nh.remove,nh.merge=nh.concat=nh.union,nh.withMutations=qu,nh.asImmutable=Zu,nh["@@transducer/init"]=nh.asMutable=Xu,nh["@@transducer/step"]=function(t,e){return t.add(e)},nh["@@transducer/result"]=function(t){return t.asImmutable()},nh.__empty=oh,nh.__make=rh;var ah,sh=function(t){function e(t,n,i){if(!(this instanceof e))return new e(t,n,i);if(wu(0!==i,"Cannot step a Range by 0"),t=t||0,void 0===n&&(n=1/0),i=void 0===i?1:Math.abs(i),n<t&&(i=-i),this._start=t,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-t)/i-1)+1),0===this.size){if(ah)return ah;ah=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+Mc(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return Bc(t,n,this.size)?this:(t=Vc(t,this.size),(n=Fc(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,i=this._step,r=e?this._start+(n-1)*i:this._start,o=0;o!==n&&!1!==t(r,e?n-++o:o++,this);)r+=e?-i:i;return o},e.prototype.__iterator=function(t,e){var n=this.size,i=this._step,r=e?this._start+(n-1)*i:this._start,o=0;return new hd((function(){if(o===n)return{value:void 0,done:!0};var a=r;return r+=e?-i:i,md(t,e?n-++o:o++,a)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Zp(this,t)},e}(Cd);function lh(t,e,n){for(var i=Iu(e),r=0;r!==i.length;)if((t=Lu(t,i[r++],kc))===kc)return n;return t}function ch(t,e){return lh(this,t,e)}function dh(){Au(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t}Xc.isIterable=Gc,Xc.isKeyed=jc,Xc.isIndexed=Wc,Xc.isAssociative=qc,Xc.isOrdered=ad,Xc.Iterator=hd,Qp(Xc,{toArray:function(){Au(this.size);var t=new Array(this.size||0),e=jc(this),n=0;return this.__iterate((function(i,r){t[n++]=e?[r,i]:i})),t},toIndexedSeq:function(){return new ru(this)},toJS:function(){return Jp(this)},toKeyedSeq:function(){return new iu(this,!0)},toMap:function(){return Ju(this.toKeyedSeq())},toObject:dh,toOrderedMap:function(){return Up(this.toKeyedSeq())},toOrderedSet:function(){return Th(jc(this)?this.valueSeq():this)},toSet:function(){return th(jc(this)?this.valueSeq():this)},toSetSeq:function(){return new ou(this)},toSeq:function(){return Wc(this)?this.toIndexedSeq():jc(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Hp(jc(this)?this.valueSeq():this)},toList:function(){return Tp(jc(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return bu(this,function(t,e){var n=jc(t),i=[t].concat(e).map((function(t){return Gc(t)?n&&
vendor: 8,024 bytes, line 452
452(t=Zc(t)):t=n?Ld(t):kd(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var r=i[0];if(r===t||n&&jc(r)||Wc(t)&&Wc(r))return r}var o=new Ad(i);return n?o=o.toKeyedSeq():Wc(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),o}(this,t))},includes:function(t){return this.some((function(e){return Bd(e,t)}))},entries:function(){return this.__iterator(cd)},every:function(t,e){Au(this.size);var n=!0;return this.__iterate((function(i,r,o){if(!t.call(e,i,r,o))return n=!1,!1})),n},filter:function(t,e){return bu(this,du(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var i=jc(t),r=[[],[]];t.__iterate((function(o,a){r[e.call(n,o,a,t)?1:0].push(i?[a,o]:o)}));var o=Eu(t);return r.map((function(e){return bu(t,o(e))}))}(this,t,e)},find:function(t,e,n){var i=this.findEntry(t,e);return i?i[1]:n},forEach:function(t,e){return Au(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Au(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(i){n?n=!1:e+=t,e+=null!=i?i.toString():""})),e},keys:function(){return this.__iterator(sd)},map:function(t,e){return bu(this,lu(this,t,e))},reduce:function(t,e,n){return gh(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return gh(this,t,e,n,arguments.length<2,!0)},reverse:function(){return bu(this,cu(this,!0))},slice:function(t,e){return bu(this,uu(this,t,e,!0))},some:function(t,e){Au(this.size);var n=!1;return this.__iterate((function(i,r,o){if(t.call(e,i,r,o))return n=!0,!1})),n},sort:function(t){return bu(this,mu(this,t))},values:function(){return this.__iterator(ld)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return Nc(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var i=Ju().asMutable();return t.__iterate((function(r,o){i.update(e.call(n,r,o,t),0,(function(t){return t+1}))})),i.asImmutable()}(this,t,e)},equals:function(t){return Zp(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Ad(t._cache);var e=t.toSeq().map(fh).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(bh(t),e)},findEntry:function(t,e,n){var i=n;return this.__iterate((function(n,r,o){if(t.call(e,n,r,o))return i=[r,n],!1})),i},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(Uc,null,t)},flatMap:function(t,e){return bu(this,function(t,e,n){var i=Eu(t);return t.toSeq().map((function(r,o){return i(e.call(n,r,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return bu(this,hu(this,t,!0))},fromEntrySeq:function(){return new au(this)},get:function(t,e){return this.find((function(e,n){return Bd(n,t)}),void 0,e)},getIn:ch,groupBy:function(t,e){return function(t,e,n){var i=jc(t),r=(ad(t)?Up():Ju()).asMutable();t.__iterate((function(o,a){r.update(e.call(n,o,a,t),(function(t){return(t=t||[]).push(i?[a,o]:o),t}))}));var o=Eu(t);return r.map((function(e){return bu(t,o(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,kc)!==kc},hasIn:function(t){return lh(this,t,kc)!==kc},isSubset:function(t){return t="function"==typeof t.includes?t:Xc(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:Xc(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return Bd(e,t)}))},keySeq:function(){return this.toSeq().map(vh).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return gu(this,t)},maxBy:function(t,e){return gu(this,e,t)},min:function(t){return gu(this,t?_h(t):yh)},minBy:function(t,e){return gu(this,e?_h(e):yh,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return bu(this,pu(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(bh(t),e)},sortBy:function(t,e){return bu(this,mu(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return bu(this,function(t,e,n){var i=yu(t);return i.__iterateUncached=function(i,r){var o=this;if(r)return this.cacheResult().__iterate(i,r);var a=0;return t.__iterate((function(t,r,s){return e.call(n,t,r,s)&&++a&&i(t,r,o)})),a},i.__iteratorUncached=function(i,r){var o=this;if(r)return this.cacheResult().__iterator(i,r);var a=t.__iterator(cd,r),s=!0;return new hd((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var r=t.value,l=r[0],c=r[1];return e.call(n,c,l,o)?i===cd?t:md(i,l,c,t):(s=!1,{value:void 0,done:!0})}))},i}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(bh(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=ad(t),n=jc(t),i=e?1:0;return function(t,e){return e=Vd(e,3432918353),e=Vd(e<<15|e>>>-15,461845907),e=Vd(e<<13|e>>>-13,5),e=Vd((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Fd((e=Vd(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){i=31*i+Sh($d(t),$d(e))|0}:function(t,e){i=i+Sh($d(t),$d(e))|0}:e?function(t){i=31*i+$d(t)|0}:function(t){i=i+$d(t)|0}),i)}(this))}});var uh=Xc.prototype;uh[Hc]=!0,uh[pd]=uh.values,uh.toJSON=uh.toArray,uh.__toStringMapper=xu,uh.inspect=uh.toSource=function(){return this.toString()},uh.chain=uh.flatMap,uh.contains=uh.includes,Qp(Zc,{flip:function(){return bu(this,su(this))},mapEntries:function(t,e){var n=this,i=0;return bu(this,this.toSeq().map((function(r,o){return t.call(e,[o,r],i++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return bu(this,this.toSeq().flip().map((function(i,r){return t.call(e,i,r,n)})).flip())}});var ph=Zc.prototype;ph[Yc]=!0,ph[pd]=uh.entries,ph.toJSON=dh,ph.__toStringMapper=function(t,e){return xu(e)+": "+xu(t)},Qp(Qc,{toKeyedSeq:function(){return new iu(this,!1)},filter:function(t,e){return bu(this,du(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return bu(this,cu(this,!1))},slice:function(t,e){return bu(this,uu(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=Vc(t,t<0?this.count():this.size);var i=this.slice(0,t);return bu(this,1===n?i:i.concat(Cu(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return bu(this,hu(this,t,!1))},get:function(t,e){return(t=Mc(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=Mc(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return bu(this,function(t,e){var n=yu(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,i){var r=this,o=0;return t.__iterate((function(t){return(!o||!1!==n(e,o++,r))&&!1!==n(t,o++,r)}),i),o},n.__iteratorUncached=function(n,i){var r,o=t.__iterator(ld,i),a=0;return new hd((function(){return(!r||a%2)&&(r=o.next()).done?r:a%2?md(n,a++,e):md(n,a++,r.value,r)}))},n}(this,t))},interleave:function(){var t=[this].concat(Cu(arguments)),e=fu(this.toSeq(),Cd.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),bu(this,n)}
vendor: 4,724 bytes, line 452
452,keySeq:function(){return sh(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return bu(this,pu(this,t,e,!1))},zip:function(){return bu(this,fu(this,Eh,[this].concat(Cu(arguments))))},zipAll:function(){return bu(this,fu(this,Eh,[this].concat(Cu(arguments)),!0))},zipWith:function(t){var e=Cu(arguments);return e[0]=this,bu(this,fu(this,t,e))}});var hh=Qc.prototype;hh[Kc]=!0,hh[od]=!0,Qp(Jc,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var mh=Jc.prototype;function gh(t,e,n,i,r,o){return Au(t.size),t.__iterate((function(t,o,a){r?(r=!1,n=t):n=e.call(i,n,t,o,a)}),o),n}function vh(t,e){return e}function fh(t,e){return[e,t]}function bh(t){return function(){return!t.apply(this,arguments)}}function _h(t){return function(){return-t.apply(this,arguments)}}function Eh(){return Cu(arguments)}function yh(t,e){return t<e?1:t>e?-1:0}function Sh(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}mh.has=uh.includes,mh.contains=mh.includes,mh.keys=mh.values,Qp(Td,ph),Qp(Cd,hh),Qp(wd,mh);var Th=function(t){function e(t){return null==t?Ih():Xp(t)?t:Ih().withMutations((function(e){var n=Jc(t);Au(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Zc(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(th);Th.isOrderedSet=Xp;var Ch,wh=Th.prototype;function Ah(t,e){var n=Object.create(wh);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function Ih(){return Ch||(Ch=Ah(Vp()))}wh[od]=!0,wh.zip=hh.zip,wh.zipWith=hh.zipWith,wh.zipAll=hh.zipAll,wh.__empty=Ih,wh.__make=Ah;var Oh=function(t,e){var n;!function(t){if(id(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(rd(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var i=function(o){var a=this;if(o instanceof i)return o;if(!(this instanceof i))return new i(o);if(!n){n=!0;var s=Object.keys(t),l=r._indices={};r._name=e,r._keys=s,r._defaultValues=t;for(var c=0;c<s.length;c++){var d=s[c];l[d]=c,r[d]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Lh(this)+' with property "'+d+'" since that property name is part of the Record API.'):Ph(r,d)}}return this.__ownerID=void 0,this._values=Tp().withMutations((function(t){t.setSize(a._keys.length),Zc(o).forEach((function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)}))})),this},r=i.prototype=Object.create(Rh);return r.constructor=i,e&&(i.displayName=e),i};Oh.prototype.toString=function(){for(var t,e=Lh(this)+" { ",n=this._keys,i=0,r=n.length;i!==r;i++)e+=(i?", ":"")+(t=n[i])+": "+xu(this.get(t));return e+" }"},Oh.prototype.equals=function(t){return this===t||id(t)&&kh(this).equals(kh(t))},Oh.prototype.hashCode=function(){return kh(this).hashCode()},Oh.prototype.has=function(t){return this._indices.hasOwnProperty(t)},Oh.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],i=this._values.get(n);return void 0===i?this._defaultValues[t]:i},Oh.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return xh(this,n)}return this},Oh.prototype.remove=function(t){return this.set(t)},Oh.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:xh(this,t)},Oh.prototype.wasAltered=function(){return this._values.wasAltered()},Oh.prototype.toSeq=function(){return kh(this)},Oh.prototype.toJS=function(){return Jp(this)},Oh.prototype.entries=function(){return this.__iterator(cd)},Oh.prototype.__iterator=function(t,e){return kh(this).__iterator(t,e)},Oh.prototype.__iterate=function(t,e){return kh(this).__iterate(t,e)},Oh.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?xh(this,e,t):(this.__ownerID=t,this._values=e,this)},Oh.isRecord=id,Oh.getDescriptiveName=Lh;var Rh=Oh.prototype;function xh(t,e,n){var i=Object.create(Object.getPrototypeOf(t));return i._values=e,i.__ownerID=n,i}function Lh(t){return t.constructor.displayName||t.constructor.name||"Record"}function kh(t){return Ld(t._keys.map((function(e){return[e,t.get(e)]})))}function Ph(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)}
452,set:function(t){wu(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}Rh[nd]=!0,Rh[Oc]=Rh.remove,Rh.deleteIn=Rh.removeIn=Mu,Rh.getIn=ch,Rh.hasIn=uh.hasIn,Rh.merge=Fu,Rh.mergeWith=zu,Rh.mergeIn=Ku,Rh.mergeDeep=Yu,Rh.mergeDeepWith=ju,Rh.mergeDeepIn=Wu,Rh.setIn=Nu,Rh.update=Bu,Rh.updateIn=Vu,Rh.withMutations=qu,Rh.asMutable=Xu,Rh.asImmutable=Zu,Rh[pd]=Rh.entries,Rh.toJSON=Rh.toObject=uh.toObject,Rh.inspect=Rh.toSource=function(){return this.toString()};var Dh,Nh,Mh="NOT_FOUND",Uh=function(t,e){return t===e};function Bh(t,e){var n,i,r="object"==typeof e?e:{equalityCheck:e},o=r.equalityCheck,a=void 0===o?Uh:o,s=r.maxSize,l=void 0===s?1:s,c=r.resultEqualityCheck,d=function(t){return function(e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var i=e.length,r=0;r<i;r++)if(!t(e[r],n[r]))return!1;return!0}}(a),u=1===l?(n=d,{get:function(t){return i&&n(i.key,t)?i.value:Mh},put:function(t,e){i={key:t,value:e}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(t,e){var n=[];function i(t){var i=n.findIndex((function(n){return e(t,n.key)}));if(i>-1){var r=n[i];return i>0&&(n.splice(i,1),n.unshift(r)),r.value}return Mh}return{get:i,put:function(e,r){i(e)===Mh&&(n.unshift({key:e,value:r}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,d);function p(){var e=u.get(arguments);if(e===Mh){if(e=t.apply(null,arguments),c){var n=u.getEntries().find((function(t){return c(t.value,e)}));n&&(e=n.value)}u.put(arguments,e)}return e}return p.clearCache=function(){return u.clear()},p}function Vh(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];var o,a=0,s={memoizeOptions:void 0},l=i.pop();if("object"==typeof l&&(s=l,l=i.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,d=void 0===c?n:c,u=Array.isArray(d)?d:[d],p=function(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}(i),h=t.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(u)),m=t((function(){for(var t=[],e=p.length,n=0;n<e;n++)t.push(p[n].apply(null,arguments));return o=h.apply(null,t)}));return Object.assign(m,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),m}}const Fh=bt(function(){if(Nh)return Dh;Nh=1;var t=Ws();return Dh=function(e,n){return t(e,n)}}()),zh=Vh(Bh,((t,e)=>Ju.isMap(t)&&Ju.isMap(e)?Bd(t,e):Fh(t,e))),$h=zh([(t=Ju())=>t.getIn(["player","extensions","audio"])||Ju()],(t=>t.toJS())),Hh=zh(((t=Ju())=>t.getIn(["player","extensions","captions"])||Ju()),(t=>t.toJS())),Gh=zh(((t=Ju())=>t.getIn(["player","extensions","casting"])||Ju()),(t=>t.toJS())),Yh=zh(((t=Ju())=>t.getIn(["player","core","clickToPlay"])||Ju()),(t=>t.toJS()));var jh,Kh;(Kh=jh||(jh={})).ORIGINAL="ORIGINAL",Kh.EPISODIC="EPISODIC",Kh.CLIPS="CLIPS",Kh.LIVE="LIVE";const Wh=zh(((t=Ju())=>t.getIn(["player","extensions","continuousPlay"])||Ju()),(t=>t.toJS())),qh=zh(((t=Ju())=>t.getIn(["player","core","error"])||Ju()),(t=>t.toJS())),Xh=zh(((t=Ju())=>t.getIn(["player","mediaClient"])||Ju()),(t=>t.toJS())),Zh=zh(((t=Ju())=>t.getIn(["player","extensions","playback"])||Ju()),(t=>t.toJS())),Qh=zh(((t=Ju())=>t.getIn(["player","mediaPlaybackCriteria"])||Ju()),(t=>t.toJS())),{UNKNOWN:Jh,LIVE:tm,EVENT:em,LINEAR:nm,SLIDING_WINDOW:im,VOD:rm,REPLAY:om,EVENT_REPLAY:am,LINEAR_REPLAY:sm}=sc;Object.entries(sc).filter((([t,e])=>Number.isNaN(Number(t))&&![sc.UNKNOWN,sc.EVENT_REPLAY,sc.LINEAR_REPLAY].includes(e)));const lm=t=>e=>((t,e)=>(t&e)===e)(e,t),cm=lm(em),dm=lm(nm),um=lm(im),pm=lm(rm),hm=lm(om),mm=lm(sm),gm=lm(am),vm=t=>lm(tm)(t)||dm(t)||cm(t)&&!(t=>
452pm(t)&&gm(t))(t)&&!(t=>pm(t)&&cm(t)&&!hm(t))(t),fm={programId:null,metadata:null},bm=zh(((t=Ju())=>t.getIn(["player","core","playbackSession"])||Ju()),(t=>t.toJS())),_m=zh(((t=Ju())=>t.getIn(["player","core","timeline"])||Ju()),(t=>{const{timeline:e}=t.toJS();return e?.seekableDurationMs??null})),Em=zh(bm,Qh,Zh,_m,((t,e,n,i)=>{const r=n?.clients?.pcsConfig?.configs?.web?.playback?.enablePboStartoverRules;let o=t?.currentProgram;if(!r||!o){const t=e?.current?.metadata?.streamType,i=n?.streamType,r=((t,...e)=>e.reduce(((t,e)=>t|e),t))(t,i);o={...o??{},allowStartover:e?.current?.mediaParams?.allowStartover??!(!pm(a=r)&&!cm(a))}}var a;const s=(({streamType:t,seekableDurationMs:e,programs:n=[],storedCurrentlyLiveProgram:i})=>{if(null==t||!dm(t)||null==e)return fm;const r=n.find((t=>e>=t.startPositionMs&&e<=t.startPositionMs+t.durationMs))??null;if(!r)return fm;const o=r.id===i?.programId?i?.metadata??null:null;return{programId:r.id,metadata:o}})({streamType:n?.streamType,seekableDurationMs:i,programs:t?.programs,storedCurrentlyLiveProgram:t?.currentlyLiveProgram});return{...t,currentProgram:{...o},currentlyLiveProgram:s}}));var ym,Sm,Tm,Cm,wm,Am,Im,Om,Rm,xm,Lm,km,Pm,Dm,Nm,Mm,Um,Bm,Vm,Fm,zm,$m,Hm,Gm,Ym,jm,Km,Wm,qm,Xm,Zm,Qm,Jm,tg,eg,ng,ig,rg,og,ag,sg,lg,cg,dg,ug,pg,hg,mg,gg,vg,fg,bg,_g,Eg,yg,Sg,Tg,Cg,wg,Ag,Ig,Og,Rg,xg,Lg,kg,Pg,Dg,Ng,Mg,Ug,Bg,Vg,Fg,zg,$g,Hg,Gg,Yg,jg,Kg,Wg,qg,Xg,Zg,Qg,Jg,tv,ev,nv,iv,rv,ov,av,sv,lv,cv,dv,uv,pv,hv,mv;(Sm=ym||(ym={})).CABLEVISION="cablevision",Sm.CHROME="chrome",Sm.CHROMECAST="chromecast",Sm.COMCAST="comcast",Sm.EDGE="edge",Sm.FIREFOX="firefox",Sm.HISENSE_GLOBAL="hisenseglobal",Sm.HISENSE_JAPAN="hisensejapan",Sm.OPERA="opera",Sm.PANASONIC="panasonic",Sm.SAFARI="safari",Sm.SKYQ="skyq",Sm.TELECENTRO="telecentro",Sm.TIZEN="tizen",Sm.TOSHIBA="toshiba",Sm.VIZIO="vizio",Sm.WEBOS="webos",(Cm=Tm||(Tm={})).Default="default",Cm.Aggressive="aggressive",Cm.Progressive="progressive",(Am=wm||(wm={}))[Am.PBO_WRITE=0]="PBO_WRITE",Am[Am.PBO_READ=1]="PBO_READ",Am[Am.MV_PLAYLIST_WRITE=2]="MV_PLAYLIST_WRITE",Am[Am.MV_PLAYLIST_READ=3]="MV_PLAYLIST_READ",Am[Am.MEDIA_PLAYLIST_WRITE=4]="MEDIA_PLAYLIST_WRITE",Am[Am.MEDIA_PLAYLIST_READ=5]="MEDIA_PLAYLIST_READ",Am[Am.INIT_SECTION_WRITE=6]="INIT_SECTION_WRITE",Am[Am.INIT_SECTION_READ=7]="INIT_SECTION_READ",Am[Am.PREFLIGHT_CAPABILITY_WRITE=8]="PREFLIGHT_CAPABILITY_WRITE",Am[Am.PREFLIGHT_CAPABILITY_READ=9]="PREFLIGHT_CAPABILITY_READ",(Om=Im||(Im={})).PLAYBACK_CONFIG="playback-config",Om.PLAYBACK_SESSION="playback-session",Om.CORE_PLAYER="core-player",(xm=Rm||(Rm={})).AUDIO_INIT_SECTION_REQUEST_ERROR="AUDIO_INIT_SECTION_REQUEST_ERROR",xm.AUDIO_SEGMENT_REQUEST_ERROR="AUDIO_SEGMENT_REQUEST_ERROR",xm.MEDIA_PLAYLIST_REQUEST_ERROR="MEDIA_PLAYLIST_REQUEST_ERROR",xm.MULTIVARIANT_PLAYLIST_FILTER_ERROR="MV_PLAYLIST_FILTER_ERROR",xm.MULTIVARIANT_PLAYLIST_PARSE_ERROR="MV_PLAYLIST_PARSE_ERROR",xm.MULTIVARIANT_PLAYLIST_REQUEST_ERROR="MV_PLAYLIST_REQUEST_ERROR",xm.MULTIVARIANT_PLAYLIST_RESPONSE_NOT_OK="MV_PLAYLIST_RESPONSE_NOT_OK",xm.MULTIVARIANT_PLAYLIST_RESPONSE_TEXT_ERROR="MV_PLAYLIST_RESPONSE_TEXT_ERROR",xm.PREBUFFER_NO_ROOM="PREBUFFER_NO_ROOM",xm.SUBTITLE_SEGMENT_REQUEST_ERROR="SUBTITLE_SEGMENT_REQUEST_ERROR",xm.VIDEO_INIT_SECTION_REQUEST_ERROR="VIDEO_INIT_SECTION_REQUEST_ERROR",xm.VIDEO_SEGMENT_REQUEST_ERROR="VIDEO_SEGMENT_REQUEST_ERROR",xm.DRM_CDM_INTERNAL_ERROR="DRM_CDM_INTERNAL_ERROR",xm.DRM_CDM_PROVISIONING_REQUEST_FAILED="DRM_CDM_PROVISIONING_REQUEST_FAILED",xm.DRM_CERTIFICATE_ERROR="DRM_CERTIFICATE_ERROR",xm.DRM_DECRYPTION_INIT_FAILED="DRM_DECRYPTION_INIT_FAILED",xm.DRM_GENERATE_LICENSE_REQUEST_FAILED="DRM_GENERATE_LICENSE_REQUEST_FAILED",xm.DRM_HDCP_ERROR="DRM_HDCP_ERROR",xm.DRM_INDIVIDUALIZATION_REQUEST_ERROR="DRM_INDIVIDUALIZATION_REQUEST_ERROR",xm.DRM_LICENSE_REQUEST_ERROR="DRM_LICENSE_REQUEST_ERROR",xm.DRM_NO_SUPPORTED_KEY_SYSTEM="DRM_NO_SUPPORTED_KEY_SYSTEM",xm.DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIG="DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIGURATION",xm.DRM_SYSTEM_ACCESS_FAILED="DRM_SYSTEM_ACCESS_FAILED",xm.INCOMPATIBLE_CODECS_ERROR="INCOMPATIBLE_CODECS_ERROR",xm.MEDIAELEMENT_ERROR="MEDIAELEMENT_ERROR",xm.MEDIAELEMENT_ATTACHING_ERROR="MEDIAELEMENT_ATTACHING_ERROR",xm.MEDIAELEMENT_DETACHING_ERROR="MEDIAELEMENT_DETACHING_ERROR",xm.AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER="AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER",xm.SOURCE_BUFFER_APPEND_ERROR="SOURCE_BUFFER_APPEND_ERROR",xm.SOURCE_BUFFER_APPEND_NO_ROOM="SOURCE_BUFFER_APPEND_NO_ROOM",xm.SOURCE_BUFFER_DISPOSE_ERROR="SOURCE_BUFFER_DISPOSE_ERROR",xm.SOURCE_BUFFER_ERROR_EVENT="SOURCE_BUFFER_ERROR_EVENT",xm.SOURCE_BUFFER_INVALID_STATE_ERROR="SOURCE_BUFFER_INVALID_STATE_ERROR",xm.SOURCE_BUFFER_REMOVE_
452ERROR="SOURCE_BUFFER_REMOVE_ERROR",xm.PLAYBACK_STALL_LOW_BUFFER="PLAYBACK_STALL_LOW_BUFFER",xm.PLAYBACK_STALL_UNKNOWN_CAUSE="PLAYBACK_STALL_UNKNOWN_CAUSE",xm.PLAYBACK_STALL_WHILE_FETCHING="PLAYBACK_STALL_WHILE_FETCHING",xm.PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING="PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING",xm.PLAYBACK_STALL_SERVER_WHILE_FETCHING="PLAYBACK_STALL_SERVER_WHILE_FETCHING",xm.PLAYBACK_STALL_CLIENT_WHILE_FETCHING="PLAYBACK_STALL_CLIENT_WHILE_FETCHING",xm.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",xm.PLAYBACK_BUFFERING_ERROR="PLAYBACK_BUFFERING_ERROR",xm.PLAYBACK_DECODING_ERROR="PLAYBACK_DECODING_ERROR",xm.PLAYBACK_UNKNOWN_ERROR="PLAYBACK_UNKNOWN_ERROR",xm.LICENSE_AGE_NOT_VERIFIED="LICENSE_AGE_NOT_VERIFIED",xm.LICENSE_AUTH_ERROR="LICENSE_AUTH_ERROR",xm.LICENSE_BLACKOUT="LICENSE_BLACKOUT",xm.LICENSE_DOWNGRADED="LICENSE_DOWNGRADED",xm.LICENSE_HEADERS_TIMEOUT="LICENSE_HEADERS_TIMEOUT",xm.LICENSE_INSUFFICIENT_SECURITY_LEVEL="LICENSE_INSUFFICIENT_SECURITY_LEVEL",xm.LICENSE_INVALID="LICENSE_INVALID",xm.LICENSE_KIDS_MODE_ENABLED="LICENSE_KIDS_MODE_ENABLED",xm.LICENSE_MEDIA_ID_MISSING="LICENSE_MEDIA_ID_MISSING",xm.LICENSE_NETWORK_ERROR="LICENSE_NETWORK_ERROR",xm.LICENSE_NOT_ENTITLED="LICENSE_NOT_ENTITLED",xm.LICENSE_NOT_FOUND_ERROR="LICENSE_NOT_FOUND_ERROR",xm.LICENSE_NOT_PERMITTED_OFFLINE="LICENSE_NOT_PERMITTED_OFFLINE",xm.LICENSE_NOT_PERMITTED_RENEWAL="LICENSE_NOT_PERMITTED_RENEWAL",xm.LICENSE_OTHER_ERROR="LICENSE_OTHER_ERROR",xm.LICENSE_PARENTAL_CONTROLS_ENABLED="LICENSE_PARENTAL_CONTROLS_ENABLED",xm.LICENSE_PIN_EXPIRED="LICENSE_PIN_EXPIRED",xm.LICENSE_PIN_MISSING="LICENSE_PIN_MISSING",xm.LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED="LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED",xm.LICENSE_PROFILE_MISSING="LICENSE_PROFILE_MISSING",xm.LICENSE_REJECTED="LICENSE_REJECTED",xm.LICENSE_BAD_REQUEST="LICENSE_BAD_REQUEST",xm.LICENSE_SERVER_ERROR="LICENSE_SERVER_ERROR",xm.LICENSE_REQUEST_ABORT="LICENSE_REQUEST_ABORT",xm.LICENSE_RESPONSE_PARSE_ERROR="LICENSE_RESPONSE_PARSE_ERROR",function(t){t[t.NONE=0]="NONE",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.HTTP=4]="HTTP",t[t.REMOTE=5]="REMOTE",t[t.DEBUG=6]="DEBUG",t[t.SILLY=7]="SILLY"}(Lm||(Lm={})),(Pm=km||(km={})).playback="playback",Pm.clientSdk="clientSdk",Pm.edgeSdk="edgeSdk",Pm.edgeService="edgeService",(Nm=Dm||(Dm={})).LOAD="LOAD",Nm.DRM="DRM",Nm.LICENSE="LICENSE",Nm.MEDIA="MEDIA",Nm.PLAYBACK="PLAYBACK",Nm.PQM="PQM",Nm.SRVC="SRVC",Nm.GENEXP="GENEXP",(Um=Mm||(Mm={})).AD_POD_LOAD_ERR="AD_POD_LOAD_ERR",Um.MEDIA_LOAD_ERR="MEDIA_LOAD_ERR",Um.DRM_CERT_LOAD_ERR="DRM_CERT_LOAD_ERR",Um.DRM_INIT_FAIL="DRM_INIT_FAIL",Um.DRM_PROVISION_FAIL="DRM_PROVISION_FAIL",Um.HDCP_ERR="HDCP_ERR",Um.LICENSE_DENIED="LICENSE_DENIED",Um.LICENSE_LOAD_ERR="LICENSE_LOAD_ERR",Um.LICENSE_BAD_REQUEST="LICENSE_BAD_REQUEST",Um.CAPTIONS_ERR="CAPTIONS_ERR",Um.MEDIA_PROCESSING_ERROR="MEDIA_PROCESSING_ERROR",Um.SUBTITLES_ERR="SUBTITLES_ERR",Um.GEN_PLAYBACK_ERR="GEN_PLAYBACK_ERR",Um.PLAYBACK_STALL="PLAYBACK_STALL",Um.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",Um.PQM_ERR="PQM_ERR",Um.PQM_LOAD_ERR="PQM_LOAD_ERR",Um.ADOBE_PASS_AUTHORIZATION_FAILED="ADOBE_PASS_AUTHORIZATION_FAILED",Um.ADOBE_PASS_BAD_REQUEST="ADOBE_PASS_BAD_REQUEST",Um.ADOBE_PASS_INTERNAL_SERVER_ERROR="ADOBE_PASS_INTERNAL_SERVER_ERROR",Um.ADOBE_PASS_UNEXPECTED_STATUS="ADOBE_PASS_UNEXPECTED_STATUS",Um.ADOBE_PASS_OUTSIDE_TIME_BOUNDS="ADOBE_PASS_OUTSIDE_TIME_BOUNDS",Um.ADOBE_PASS_UNAUTHORIZED="ADOBE_PASS_UNAUTHORIZED",Um.AGE_NOT_VERIFIED="AGE_NOT_VERIFIED",Um.AGE_NOT_VERIFIED_KR="AGE_NOT_VERIFIED_KR",Um.BLACKOUT="BLACKOUT",Um.BLACKOUT_DISPUTE="BLACKOUT_DISPUTE",Um.DOWNGRADE="DOWNGRADE",Um.KIDS_MODE_ENABLED="KIDS_MODE_ENABLED",Um.LOGIN_REQUIRED="LOGIN_REQUIRED",Um.MEDIA_ID_MISSING="MEDIA_ID_MISSING",Um.MEDIA_RIGHTS_BAD_REQUEST="MEDIA_RIGHTS_BAD_REQUEST",Um.MEDIA_RIGHTS_SERVICE_ERROR="MEDIA_RIGHTS_SERVICE_ERROR",Um.MEDIA_RIGHTS_UNKNOWN_ERROR="MEDIA_RIGHTS_UNKNOWN_ERROR",Um.NOT_ENTITLED="NOT_ENTITLED",Um.NOT_PERMITTED_OFFLINE="NOT_PERMITTED_OFFLINE",Um.NOT_PERMITTED_RENEWAL="NOT_PERMITTED_RENEWAL",Um.PARENTAL_CONTROLS_RESTRICTED="PARENTAL_CONTROLS_RESTRICTED",Um.PIN_EXPIRED="PIN_EXPIRED",Um.PIN_MISSING="PIN_MISSING",Um.PLATFORM_CLIENT_UPGRADE_REQUIRED="PLATFORM_CLIENT_UPGRADE_REQUIRED",Um.PROFILE_MISSING="PROFILE_MISSING",Um.PROFILE_PERSONAL_INFO_MISSING="PROFILE_PERSONAL_INFO_MISSING",Um.REJECTED="REJECTED",Um.SECURITY_LEVEL_INSUFFICIENT="SECURITY_LEVEL_INSUFFICIENT",Um.SERVICE_ERR="SERVICE_ERR",Um.STREAM_CONCURRENCY_VIOLATION="STREAM_CONCURRENCY_VIOLATION",Um.EXTERNAL_EXP="EXTERNAL_EXP",Um.GEN_EXP="GEN_EXP",Um.INTERNAL_EXP="INTERNAL_EXP",(Vm=Bm||(Bm={}))[Vm.OTHER=0]="OTHER",Vm[Vm.DEVICE_OTHER=1e3]="DEVICE_OTHER",Vm[Vm.DEVICE_MV=1010]="DEVICE_MV",Vm[Vm.DEVICE_VARIANT=1020]="DEVICE_VARIANT",Vm[Vm.DEVICE_VIDEO=1030]="DEVICE_VIDEO",Vm[Vm.DEVICE_AUDIO=1040]="DEVICE_AUDIO",Vm[Vm.DEVICE_SUBTITLES=1050]="DEVICE_SUBTITLES",Vm[Vm.REQUEST_TIMEOUT_OTHER=1100]="REQUEST_TIMEOUT_OTHER",Vm[Vm.REQUEST_TIMEOUT_MV=1110]="REQUEST_TIMEOUT_MV",Vm[Vm.REQUEST_TIMEOUT_VARIANT=1120]="REQUEST_TIMEOUT_VARIANT",Vm[Vm.REQUEST_TIMEOUT_VIDEO=1130]="REQUEST_TIMEOUT_VIDEO",Vm[Vm.REQUEST_TIMEOUT_AUDIO=1140]="REQUEST_TIMEOUT_AUDIO",Vm[Vm.REQUEST_TIMEOUT_SUBTITLES=1150]="REQUEST_TIMEOUT_SUBTITLES",Vm[Vm.HEADERS_TIMEOUT_OTHER=1200]="HEADERS_TIMEOUT_OTHER",Vm[Vm.HEADERS_TIMEOUT_MV=1210]="HEADERS_TIMEOUT_MV",Vm[Vm.HEADERS_TIMEOUT_VARIANT=1220]="HEADERS_TIMEOUT_VARIANT",Vm[Vm.HEADERS_TIMEOUT_VIDEO=1230]="HEADERS_TIMEOUT_VIDEO",Vm[Vm.HEADERS_TIMEOUT_AUDIO=1240]="HEADERS_TIMEOUT_AUDIO",Vm[Vm.HEADERS_TIMEOUT_SUBTITLES=1250]="HEADERS_TIMEOUT_SUBTITLES",Vm[Vm.PAYLOAD_TIMEOUT_OTHER=1300]="PAYLOAD_TIMEOUT_OTHER",Vm[Vm.PAYLOAD_TIMEOUT_MV=1310]="PAYLOAD_TIMEOUT_MV",Vm[Vm.PAYLOAD_TIMEOUT_VARIANT=1320]="PAYLOAD_TIMEOUT_VARIANT",Vm[Vm.PAYLOAD_TIMEOUT_VIDEO=1330]="PAYLOAD_TIMEOUT_VIDEO",Vm[Vm.PAYLOAD_TIMEOUT_AUDIO=1340]="PAYLOAD_TIMEOUT_AUDIO",Vm[Vm.PAYLOAD_TIMEOUT_SUBTITLES=1350]="PAYLOAD_TIMEOUT_SUBTITLES",Vm[Vm.ABORTED_OTHER=1400]="ABORTED_OTHER",Vm[Vm.ABORTED_MV=1410]="ABORTED_MV",Vm[Vm.ABORTED_VARIA
452NT=1420]="ABORTED_VARIANT",Vm[Vm.ABORTED_VIDEO=1430]="ABORTED_VIDEO",Vm[Vm.ABORTED_AUDIO=1440]="ABORTED_AUDIO",Vm[Vm.ABORTED_SUBTITLES=1450]="ABORTED_SUBTITLES",Vm[Vm.SERVER_ERROR_OTHER=1500]="SERVER_ERROR_OTHER",Vm[Vm.SERVER_ERROR_MV=1510]="SERVER_ERROR_MV",Vm[Vm.SERVER_ERROR_VARIANT=1520]="SERVER_ERROR_VARIANT",Vm[Vm.SERVER_ERROR_VIDEO=1530]="SERVER_ERROR_VIDEO",Vm[Vm.SERVER_ERROR_AUDIO=1540]="SERVER_ERROR_AUDIO",Vm[Vm.SERVER_ERROR_SUBTITLES=1550]="SERVER_ERROR_SUBTITLES",Vm[Vm.NOT_FOUND_OTHER=1600]="NOT_FOUND_OTHER",Vm[Vm.NOT_FOUND_MV=1610]="NOT_FOUND_MV",Vm[Vm.NOT_FOUND_VARIANT=1620]="NOT_FOUND_VARIANT",Vm[Vm.NOT_FOUND_VIDEO=1630]="NOT_FOUND_VIDEO",Vm[Vm.NOT_FOUND_AUDIO=1640]="NOT_FOUND_AUDIO",Vm[Vm.NOT_FOUND_SUBTITLES=1650]="NOT_FOUND_SUBTITLES",Vm[Vm.AUTH_OTHER=1700]="AUTH_OTHER",Vm[Vm.AUTH_MV=1710]="AUTH_MV",Vm[Vm.AUTH_VARIANT=1720]="AUTH_VARIANT",Vm[Vm.AUTH_VIDEO=1730]="AUTH_VIDEO",Vm[Vm.AUTH_AUDIO=1740]="AUTH_AUDIO",Vm[Vm.AUTH_SUBTITLES=1750]="AUTH_SUBTITLES",Vm[Vm.UNEXPECTED_RESPONSE_OTHER=1800]="UNEXPECTED_RESPONSE_OTHER",Vm[Vm.UNEXPECTED_RESPONSE_MV=1810]="UNEXPECTED_RESPONSE_MV",Vm[Vm.UNEXPECTED_RESPONSE_VARIANT=1820]="UNEXPECTED_RESPONSE_VARIANT",Vm[Vm.UNEXPECTED_RESPONSE_VIDEO=1830]="UNEXPECTED_RESPONSE_VIDEO",Vm[Vm.UNEXPECTED_RESPONSE_AUDIO=1840]="UNEXPECTED_RESPONSE_AUDIO",Vm[Vm.UNEXPECTED_RESPONSE_SUBTITLES=1850]="UNEXPECTED_RESPONSE_SUBTITLES",Vm[Vm.PAYLOAD_PROCESSING_OTHER=2e3]="PAYLOAD_PROCESSING_OTHER",Vm[Vm.PAYLOAD_PROCESSING_MV=2010]="PAYLOAD_PROCESSING_MV",Vm[Vm.PAYLOAD_PROCESSING_VARIANT=2020]="PAYLOAD_PROCESSING_VARIANT",Vm[Vm.PAYLOAD_PROCESSING_VIDEO=2030]="PAYLOAD_PROCESSING_VIDEO",Vm[Vm.PAYLOAD_PROCESSING_AUDIO=2040]="PAYLOAD_PROCESSING_AUDIO",Vm[Vm.PAYLOAD_PROCESSING_SUBTITLES=2050]="PAYLOAD_PROCESSING_SUBTITLES",Vm[Vm.CDN_FALLBACK_ERRROR=3e3]="CDN_FALLBACK_ERRROR",Vm[Vm.PARSING_ERROR_OTHER=4e3]="PARSING_ERROR_OTHER",Vm[Vm.PARSING_ERROR_MV=4010]="PARSING_ERROR_MV",Vm[Vm.PARSING_ERROR_VARIANT=4020]="PARSING_ERROR_VARIANT",Vm[Vm.PARSING_ERROR_VIDEO=4030]="PARSING_ERROR_VIDEO",Vm[Vm.PARSING_ERROR_AUDIO=4040]="PARSING_ERROR_AUDIO",Vm[Vm.PARSING_ERROR_SUBTITLES=4050]="PARSING_ERROR_SUBTITLES",Vm[Vm.PARSING_ERROR_CAPTIONS=4060]="PARSING_ERROR_CAPTIONS",Vm[Vm.MEDIA_ERROR_OTHER=5e3]="MEDIA_ERROR_OTHER",Vm[Vm.MEDIA_ERROR_VIDEO=5010]="MEDIA_ERROR_VIDEO",Vm[Vm.MEDIA_ERROR_AUDIO=5020]="MEDIA_ERROR_AUDIO",Vm[Vm.MEDIA_ERROR_SUBTITLES=5030]="MEDIA_ERROR_SUBTITLES",Vm[Vm.MEDIA_ERROR_CAPTIONS=5040]="MEDIA_ERROR_CAPTIONS",Vm[Vm.STALL_OTHER=6e3]="STALL_OTHER",Vm[Vm.STALL_AUDIO_BUFFER=6010]="STALL_AUDIO_BUFFER",Vm[Vm.STALL_VIDEO_BUFFER=6020]="STALL_VIDEO_BUFFER",Vm[Vm.DRM_ERROR_OTHER=6100]="DRM_ERROR_OTHER",Vm[Vm.DRM_KEY_ACCESS_FAILED=6110]="DRM_KEY_ACCESS_FAILED",Vm[Vm.DRM_NO_KEY_SYSTEMS=6120]="DRM_NO_KEY_SYSTEMS",Vm[Vm.PLAYBACK_SERVICE_ERROR=7e3]="PLAYBACK_SERVICE_ERROR",Vm[Vm.PLAYBACK_SERVICE_BLACKOUT_DISPUTE=7016]="PLAYBACK_SERVICE_BLACKOUT_DISPUTE",(zm=Fm||(Fm={})).AUDIO_INIT_SECTION_REQUEST_ERROR="AUDIO_INIT_SECTION_REQUEST_ERROR",zm.AUDIO_SEGMENT_REQUEST_ERROR="AUDIO_SEGMENT_REQUEST_ERROR",zm.MEDIA_PLAYLIST_REQUEST_ERROR="MEDIA_PLAYLIST_REQUEST_ERROR",zm.MULTIVARIANT_PLAYLIST_FILTER_ERROR="MV_PLAYLIST_FILTER_ERROR",zm.MULTIVARIANT_PLAYLIST_PARSE_ERROR="MV_PLAYLIST_PARSE_ERROR",zm.MULTIVARIANT_PLAYLIST_REQUEST_ERROR="MV_PLAYLIST_REQUEST_ERROR",zm.MULTIVARIANT_PLAYLIST_RESPONSE_NOT_OK="MV_PLAYLIST_RESPONSE_NOT_OK",zm.MULTIVARIANT_PLAYLIST_RESPONSE_TEXT_ERROR="MV_PLAYLIST_RESPONSE_TEXT_ERROR",zm.PREBUFFER_NO_ROOM="PREBUFFER_NO_ROOM",zm.SUBTITLE_SEGMENT_REQUEST_ERROR="SUBTITLE_SEGMENT_REQUEST_ERROR",zm.VIDEO_INIT_SECTION_REQUEST_ERROR="VIDEO_INIT_SECTION_REQUEST_ERROR",zm.VIDEO_SEGMENT_REQUEST_ERROR="VIDEO_SEGMENT_REQUEST_ERROR",zm.DRM_CDM_INTERNAL_ERROR="DRM_CDM_INTERNAL_ERROR",zm.DRM_CDM_PROVISIONING_REQUEST_FAILED="DRM_CDM_PROVISIONING_REQUEST_FAILED",zm.DRM_CERTIFICATE_ERROR="DRM_CERTIFICATE_ERROR",zm.DRM_DECRYPTION_INIT_FAILED="DRM_DECRYPTION_INIT_FAILED",zm.DRM_GENERATE_LICENSE_REQUEST_FAILED="DRM_GENERATE_LICENSE_REQUEST_FAILED",zm.DRM_HDCP_ERROR="DRM_HDCP_ERROR",zm.DRM_INDIVIDUALIZATION_REQUEST_ERROR="DRM_INDIVIDUALIZATION_REQUEST_ERROR",zm.DRM_LICENSE_REQUEST_ERROR="DRM_LICENSE_REQUEST_ERROR",zm.DRM_NO_SUPPORTED_
452KEY_SYSTEM="DRM_NO_SUPPORTED_KEY_SYSTEM",zm.DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIG="DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIGURATION",zm.DRM_SYSTEM_ACCESS_FAILED="DRM_SYSTEM_ACCESS_FAILED",zm.INCOMPATIBLE_CODECS_ERROR="INCOMPATIBLE_CODECS_ERROR",zm.MEDIAELEMENT_ERROR="MEDIAELEMENT_ERROR",zm.MEDIAELEMENT_ATTACHING_ERROR="MEDIAELEMENT_ATTACHING_ERROR",zm.MEDIAELEMENT_DETACHING_ERROR="MEDIAELEMENT_DETACHING_ERROR",zm.AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER="AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER",zm.SOURCE_BUFFER_APPEND_ERROR="SOURCE_BUFFER_APPEND_ERROR",zm.SOURCE_BUFFER_APPEND_NO_ROOM="SOURCE_BUFFER_APPEND_NO_ROOM",zm.SOURCE_BUFFER_DISPOSE_ERROR="SOURCE_BUFFER_DISPOSE_ERROR",zm.SOURCE_BUFFER_ERROR_EVENT="SOURCE_BUFFER_ERROR_EVENT",zm.SOURCE_BUFFER_INVALID_STATE_ERROR="SOURCE_BUFFER_INVALID_STATE_ERROR",zm.SOURCE_BUFFER_REMOVE_ERROR="SOURCE_BUFFER_REMOVE_ERROR",zm.PLAYBACK_STALL_LOW_BUFFER="PLAYBACK_STALL_LOW_BUFFER",zm.PLAYBACK_STALL_UNKNOWN_CAUSE="PLAYBACK_STALL_UNKNOWN_CAUSE",zm.PLAYBACK_STALL_WHILE_FETCHING="PLAYBACK_STALL_WHILE_FETCHING",zm.PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING="PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING",zm.PLAYBACK_STALL_SERVER_WHILE_FETCHING="PLAYBACK_STALL_SERVER_WHILE_FETCHING",zm.PLAYBACK_STALL_CLIENT_WHILE_FETCHING="PLAYBACK_STALL_CLIENT_WHILE_FETCHING",zm.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",zm.PLAYBACK_BUFFERING_ERROR="PLAYBACK_BUFFERING_ERROR",zm.PLAYBACK_DECODING_ERROR="PLAYBACK_DECODING_ERROR",zm.PLAYBACK_UNKNOWN_ERROR="PLAYBACK_UNKNOWN_ERROR",zm.LICENSE_AGE_NOT_VERIFIED="LICENSE_AGE_NOT_VERIFIED",zm.LICENSE_AUTH_ERROR="LICENSE_AUTH_ERROR",zm.LICENSE_BLACKOUT="LICENSE_BLACKOUT",zm.LICENSE_DOWNGRADED="LICENSE_DOWNGRADED",zm.LICENSE_HEADERS_TIMEOUT="LICENSE_HEADERS_TIMEOUT",zm.LICENSE_INSUFFICIENT_SECURITY_LEVEL="LICENSE_INSUFFICIENT_SECURITY_LEVEL",zm.LICENSE_INVALID="LICENSE_INVALID",zm.LICENSE_KIDS_MODE_ENABLED="LICENSE_KIDS_MODE_ENABLED",zm.LICENSE_MEDIA_ID_MISSING="LICENSE_MEDIA_ID_MISSING",zm.LICENSE_NETWORK_ERROR="LICENSE_NETWORK_ERROR",zm.LICENSE_NOT_ENTITLED="LICENSE_NOT_ENTITLED",zm.LICENSE_NOT_FOUND_ERROR="LICENSE_NOT_FOUND_ERROR",zm.LICENSE_NOT_PERMITTED_OFFLINE="LICENSE_NOT_PERMITTED_OFFLINE",zm.LICENSE_NOT_PERMITTED_RENEWAL="LICENSE_NOT_PERMITTED_RENEWAL",zm.LICENSE_OTHER_ERROR="LICENSE_OTHER_ERROR",zm.LICENSE_PARENTAL_CONTROLS_ENABLED="LICENSE_PARENTAL_CONTROLS_ENABLED",zm.LICENSE_PIN_EXPIRED="LICENSE_PIN_EXPIRED",zm.LICENSE_PIN_MISSING="LICENSE_PIN_MISSING",zm.LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED="LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED",zm.LICENSE_PROFILE_MISSING="LICENSE_PROFILE_MISSING",zm.LICENSE_REJECTED="LICENSE_REJECTED",zm.LICENSE_BAD_REQUEST="LICENSE_BAD_REQUEST",zm.LICENSE_SERVER_ERROR="LICENSE_SERVER_ERROR",zm.LICENSE_REQUEST_ABORT="LICENSE_REQUEST_ABORT",zm.LICENSE_RESPONSE_PARSE_ERROR="LICENSE_RESPONSE_PARSE_ERROR",zm.PBO_AGE_NOT_VERIFIED="PBO_AGE_NOT_VERIFIED",zm.PBO_AGE_NOT_VERIFIED_KR="PBO_AGE_NOT_VERIFIED_KR",zm.PBO_BLACKOUT="PBO_BLACKOUT",zm.PBO_BLACKOUT_DISPUTE="PBO_BLACKOUT_DISPUTE",zm.PBO_KIDS_MODE_ENABLED="PBO_KIDS_MODE_ENABLED",zm.PBO_LOGIN_REQUIRED="PBO_LOGIN_REQUIRED",zm.PBO_MEDIA_RIGHTS_BAD_REQUEST="PBO_MEDIA_RIGHTS_BAD_REQUEST",zm.PBO_MEDIA_RIGHTS_SERVICE_ERROR="PBO_MEDIA_RIGHTS_SERVICE_ERROR",zm.PBO_MEDIA_RIGHTS_UNKNOWN_ERROR="PBO_MEDIA_RIGHTS_UNKNOWN_ERROR",zm.PBO_NOT_ENTITLED="PBO_NOT_ENTITLED",zm.PBO_NOT_PERMITTED_OFFLINE="PBO_NOT_PERMITTED_OFFLINE",zm.PBO_NOT_PERMITTED_RENEWAL="PBO_NOT_PERMITTED_RENEWAL",zm.PBO_OTHER_ERROR="PBO_OTHER_ERROR",zm.PBO_PARENTAL_CONTROLS_ENABLED="PBO_PARENTAL_CONTROLS_ENABLED",zm.PBO_PIN_EXPIRED="PBO_PIN_EXPIRED",zm.PBO_PIN_MISSING="PBO_PIN_MISSING",zm.PBO_PLATFORM_CLIENT_UPGRADE_REQUIRED="PBO_PLATFORM_CLIENT_UPGRADE_REQUIRED",zm.PBO_PROFILE_MISSING="PBO_PROFILE_MISSING",zm.PBO_PROFILE_PERSONAL_INFO_MISSING="PBO_PROFILE_PERSONAL_INFO_MISSING",zm.PBO_STREAM_CONCURRENCY_VIOLATION="PBO_STREAM_CONCURRENCY_VIOLATION",zm.PBO_ADOBE_PASS_FAILED_AUTHORIZATION="PBO_ADOBE_PASS_FAILED_AUTHORIZATION",zm.PBO_ADOBE_PASS_FAILED_BAD_REQUEST="PBO_ADOBE_PASS_FAILED_BAD_REQUEST",zm.PBO_ADOBE_PASS_FAILED_INTERNAL_SERVER_ERROR="PBO_ADOBE_PASS_FAILED_INTERNAL_SERVER_ERROR",zm.PBO_ADOBE_PASS_FAILED_UNEXPECTED_STATUS="PBO_ADOBE_PASS_FAILED_UNEXPECTED_STATUS",zm.PBO_ADOBE_PASS_UNAUTHORIZED="PBO_ADOBE_PASS_UNAUTHORIZED",zm.PBO_ADOBE_PASS_OUTSIDE_TIME_BOUNDS="PBO_ADOBE_PASS_OUTSIDE_TIME_BOUNDS",zm.SDK_OTHER_ERROR="SDK_OTHER_ERROR",(Hm=$m||($m={})).ADOBE_PASS_FAILED_AUTHORIZATION="adobe-pass-failed-authorization",Hm.ADOBE_PASS_FAILED_BAD_REQUEST="adobe-pass-failed-bad-request",Hm.ADOBE_PASS_FAILED_INTERNAL_SERVER_ERROR="adobe-pass-failed-internal-server-error",Hm.ADOBE_PASS_FAILED_UNEXPECTED_STATUS="adobe-pass-failed-unexpected-status",Hm.ADOBE_PASS_OUTSIDE_TIME_BOUNDS="adobe-pass-outside-time-bounds",Hm.ADOBE_PASS_UNAUTHORIZED="adobe-pass-unauthorized",Hm.AGE_NOT_VERIFIED="age-not-verified",Hm.AGE_NOT_VERIFIED_KR="age-not-verified-kr",Hm.BLACKOUT="blackout",Hm.BLACKOUT_DISPUTE="blackout.dispute",Hm.KIDS_MODE_ENABLED="kids-mode-enabled",Hm.LOGIN_REQUIRED="login.required",Hm.MEDIA_RIGHTS_BAD_REQUEST="media-rights.bad-request",Hm.MEDIA_RIGHTS_SERVICE_ERROR="media-rights.service-error",Hm.MEDIA_RIGHTS_UNKNOWN_ERROR="media-rights.unknown-error",Hm.NOT_ENTITLED="not-entitled",Hm.PARENTAL_CONTROLS_RESTRICTED="parental-control
452s-restricted",Hm.PIN_EXPIRED="pin-expired",Hm.PIN_MISSING="pin-missing",Hm.PLATFORM_CLIENT_UPGRADE_REQUIRED="platform.client.upgrade.required",Hm.PROFILE_MISSING="profile-missing",Hm.PROFILE_PERSONAL_INFO_MISSING="profile.personal-info-missing",Hm.STREAM_CONCURRENCY_VIOLATION="stream-concurrency-violation",(Ym=Gm||(Gm={})).Direct="DIRECT",Ym.TveMvpd="TVE_MVPD",Ym.TveIsp="TVE_ISP",Ym.TveOpen="TVE_OPEN",(Km=jm||(jm={})).abc="abc",Km.abcNews="abc_news",Km.abcNewsKGO="abc_news_bay_area",Km.abcNewsKFSN="abc_news_central_california",Km.abcNewsWLS="abc_news_chicago",Km.abcNewsKTRK="abc_news_houston",Km.abcNewsKABC="abc_news_los_angeles",Km.abcNewsWABC="abc_news_new_york",Km.abcNewsWTVD="abc_news_north_carolina",Km.abcNewsWPVI="abc_news_philadelphia",Km.disneyNow="disneynow",Km.disneyPlus="disneyplus",Km.espn="espn",Km.freeform="freeform",Km.fxNow="fxnow",Km.gma="abc_news_good_morning_america",Km.natGeo="national_geographic",Km.natGeoKids="nat_geo_kids",Km.natGeoTv="nat_geo_tv",(qm=Wm||(Wm={})).production="prod",qm.stage="stage",qm.qa="qa",qm.develop="dev",(Zm=Xm||(Xm={})).Adobe="ADOBE",Zm.Comcast="COMCAST",Zm.Cox="COX",Zm.Direct="DIRECT",Zm.Gatekeeper="GATEKEEPER",Zm.OneId="ONEID",Zm.None="NONE",(Jm=Qm||(Qm={})).PlaybackServiceStateChanged="PLAYBACK_SERVICE_STATE_CHANGED",Jm.MediaCapabilitiesChanged="MEDIA_CAPABILITIES_CHANGED",(eg=tg||(tg={})).NONE="NONE",eg.SSAI="SSAI",eg.SGAI="SGAI",eg.ADPARTNER="ADPARTNER",(ig=ng||(ng={})).AutoAdvance="AutoAdvance",ig.AuthorizationOnly="AuthorizationOnly",ig.ContinueWatching="ContinueWatching",ig.FeedSwitch="FeedSwitch",ig.NextEpisode="NextEpisode",ig.UserAction="UserAction",ig.UserActionFromLive="UserActionFromLive",ig.UserActionFromBeginning="UserActionFromBeginning",ig.UserActionCatchUpToLive="UserActionCatchUpToLive",ig.UserActionHomescreen="UserActionHomescreen",ig.UserActionBrowseTilefocus="UserActionBrowseTilefocus",ig.UserActionVerticalvideo="UserActionVerticalvideo",ig.Autoplay="Autoplay",ig.AutoplayHeaderHome="AutoplayHeaderHome",ig.AutoplayHomescreen="AutoplayHomescreen",ig.PlaylistTap="PlaylistTap",ig.UserActionLiveGuide="UserActionLiveGuide",(og=rg||(rg={})).autoplay="autoplay",og.userAction="userAction",og.autoAdvance="autoAdvance",og.background="background",og.pip="pip",og.transferred="transferred",og.userActionRestartButton="userActionRestartButton",og.tileFocus="tileFocus",og.feedSwitch="feedSwitch",og.nextEpisode="nextEpisode",og.unknown="unknown",og.autoplayBrowseBackground="autoplayBrowseBackground",og.autoplayBrowseHeroImmersive="autoplayBrowseHeroImmersive",og.userActionBrowseTileFocus="useractionBrowseTileFocus",og.userActionLiveGuide="userActionLiveGuide",(sg=ag||(ag={})).expandingTile="expandingTile",sg.defaultTile="defaultTile",sg.primary="primary",sg.liveHubBackground="live-hub-background",sg.liveHubWindow="live-hub-window",(cg=lg||(lg={})).Yes="YES",cg.No="NO",cg.Error="ERROR",cg.NotSent="NOT_SENT",(ug=dg||(dg={})).DefaultTile="default-tile",ug.ExpandedTile="expanding-tile",ug.Main="main",(hg=pg||(pg={})).AutoAdvance="auto-advance",hg.Autoplay="autoplay",hg.AutoplayHeaderDetails="autoplay-header-details",hg.AutoplayHeroImmersive="autoplay-hero-immersive",hg.AutoplayHomescreen="autoplay-homescreen",hg.AutoplayTile="autoplay-tile",hg.CatchUpToLive="user-action-catch-up-to-live",hg.ContinueWatching="continue-watching",hg.FeedSwitch="feed-switch",hg.LiveEdge="user-action-from-live",hg.NextEpisode="next-episode",hg.PlayFromBeginning="user-action-from-beginning",hg.PlaylistTap="playlist-tap",hg.UserAction="user-action",hg.UserActionBrowseTilefocus="user-action-browse-tilefocus",hg.UserActionHomescreen="user-action-homescreen",hg.UserActionLiveGuide="user-action-live-guide",hg.UserActionStandardArtVertical="user-action-standardartvertical",hg.UserActionVerticalvideo="user-action-verticalvideo",hg.UserAdvance="user-advance",(gg=mg||(mg={})).Optimizely="optimizely",gg.WeaponX="weapon_x",(fg=vg||(vg={})).ClientSdkPlaybackParamsSchema="CLIENT_SDK_PLAYBACK_PARAMS_SCHEMA",fg.M3u8PlaybackParamsSchema="M3U8_PLAYBACK_PARAMS_SCHEMA",fg.StaticPBOPlaybackParamsSchema="STATIC_PBO_PLAYBACK_PARAMS_SCHEMA",fg.ShieldPlaybackParamsSchema="SHIELD_PLAYBACK_PARAMS_SCHEMA",fg.EdgeSdkPlaybackParamsSchema="EDGE_SDK_PLAYBACK_PARAMS_SCHEMA",fg.NewEdgeSdkPlaybackParamsSchema="NEW_EDGE_SDK_PLAYBACK_PARAMS_SCHEMA",(_g=bg||(bg={})).dataSaverAutomatic="dataSaverAutomatic",_g.dataSaverModerate="dataSaverModerate",_g.dataSaverSaveData="dataSaverSaveData",(yg=Eg||(Eg={})).ONLINE="ONLINE",yg.OFFLINE="OFFLINE",yg.GROUPWATCH="GROUPWATCH",yg.SHAREPLAY="SHAREPLAY",yg.MULTICAST="MULTICAST",yg.BACKGROUND_AUTOPLAY="BACKGROUND_AUTOPLAY",(Tg=Sg||(Sg={})).CatchUpToLive="cutl",Tg.SportsCenterForYou="sc4u",Tg.Header="header",(wg=Cg||(Cg={})).low="LOW",wg.medium="MED",wg.high="HIGH",wg.none="NONE",(Ig=Ag||(Ag={})).FOUR_HOUR="4_HOUR",Ig.FIFTEEN_MIN="15_MIN",(Rg=Og||(Og={})).Uninitialized="UNINITIALIZED",Rg.Initialized="INITIALIZED",Rg.Failed="FAILED",(Lg=xg||(xg={})).Sd="SD",Lg.Hd="HD",Lg.Fhd="FHD",Lg.Uhd="UHD",(Pg=kg||(kg={}
452)).HevcDolbyVision20="HEVC_DOLBY_VISION_20",Pg.HevcDolbyVision8="HEVC_DOLBY_VISION_8",Pg.HevcDolbyVision5="HEVC_DOLBY_VISION_5",Pg.HevcHdr10Plus="HEVC_HDR10_PLUS",Pg.HevcHdr10="HEVC_HDR10",Pg.HevcSdr="HEVC_SDR",Pg.AvcSdr="AVC_SDR",Pg.Av1Sdr="AV1_SDR",Pg.Av1Hdr10="AV1_HDR10",Pg.Av1Hdr10Plus="AV1_HDR10_PLUS",Pg.Av1DolbyVision10="AV1_DOLBY_VISION_10",Pg.Vp9Sdr="VP9_SDR",Pg.Vp9Hdr10="VP9_HDR10",(Ng=Dg||(Dg={})).AacStereo="AAC_STEREO",Ng.Eac3Stereo="EAC3_STEREO",Ng.Eac3FiveDotOne="EAC3_FIVE_DOT_ONE",Ng.Eac3SevenDotOne="EAC3_SEVEN_DOT_ONE",Ng.Eac3Atmos="EAC3_ATMOS",Ng.DtsX="DTS_X",(Ug=Mg||(Mg={})).PlaybackStateChanged="PLAYBACK_STATE_CHANGED",Ug.MediaPreferencesApplied="MEDIA_PREFERENCES_APPLIED",Ug.MarkersChanged="MARKERS_CHANGED",Ug.MarkerReached="MARKER_REACHED",Ug.TimelineProgress="TIMELINE_PROGRESS",Ug.ProgramStarted="PROGRAM_STARTED",Ug.ProgramProgress="PROGRAM_PROGRESS",Ug.ProgramEnded="PROGRAM_ENDED",Ug.ProgramsChanged="PROGRAMS_CHANGED",Ug.ProgramAuthorizeEvent="PROGRAM_AUTHORIZE_EVENT",Ug.RecordingStatusChanged="RECORDING_STATUS_CHANGED",Ug.BreakStarted="BREAK_STARTED",Ug.BreakProgress="BREAK_PROGRESS",Ug.BreakEnded="BREAK_ENDED",Ug.BreakError="BREAK_ERROR",Ug.BreaksChanged="BREAKS_CHANGED",Ug.BreakContentStarted="BREAK_CONTENT_STARTED",Ug.BreakContentEnded="BREAK_CONTENT_ENDED",Ug.BreakContentSequenceStarted="BREAK_CONTENT_SEQUENCE_STARTED",Ug.BreakContentSequenceEnded="BREAK_CONTENT_SEQUENCE_ENDED",Ug.DxcRendererLoaded="DXC_RENDERER_LOADED",Ug.DxcRendererStarting="DXC_RENDERER_STARTING",Ug.DxcRendererStarted="DXC_RENDERER_STARTED",Ug.DxcRendererUnloaded="DXC_RENDERER_UNLOADED",Ug.AutoPlayBlocked="AUTO_PLAY_BLOCKED",Ug.NielsenId3FrameEvent="NIELSEN_ID3_FRAME",(Vg=Bg||(Bg={})).MainContent="MAIN_CONTENT",Vg.AdServiceContent="AD_SERVICE_CONTENT",Vg.AuxiliaryContent="AUXILIARY_CONTENT",(zg=Fg||(Fg={})).PassThroughAds="PASSTHROUGH_ADS",zg.Slate="SLATE",zg.PassthroughContent="PASSTHROUGH_CONTENT",zg.DynamicAds="DYNAMIC_ADS",zg.VideoCreative="VideoCreative",zg.InstreamDxcCreative="InstreamDxcCreative",zg.OutstreamDxcCreative="OutstreamDxcCreative",zg.Slug="SLUG",zg.Bumper="BUMPER",zg.ContentPromo="CONTENT_PROMO",zg.BrandBumper="BRAND_BUMPER",zg.NetworkBumper="NETWORK_BUMPER",zg.NoahCard="NOAH_CARD",zg.TuneInCard="TUNE_IN_CARD",(Hg=$g||($g={})).Point="POINT",Hg.Range="RANGE",(Yg=Gg||(Gg={})).Vod="VOD",Yg.LiveComplete="LIVE_COMPLETE",Yg.LiveSlide="LIVE_SLIDE",(Kg=jg||(jg={})).Start="START",Kg.LiveEdge="LIVE_EDGE",Kg.Bookmark="BOOKMARK",Kg.Position="POSITION",(qg=Wg||(Wg={})).Scheduled="scheduled",qg.Pretune="pretune",qg.Playing="playing",qg.Posttune="posttune",qg.Complete="complete",(Zg=Xg||(Xg={})).Created="CREATED",Zg.Preparing="PREPARING",Zg.Prepared="PREPARED",Zg.Starting="STARTING",Zg.Playing="PLAYING",Zg.Paused="PAUSED",Zg.Rebuffering="REBUFFERING",Zg.Seeking="SEEKING",Zg.Complete="COMPLETE",Zg.Error="ERROR",(Jg=Qg||(Qg={})).User="USER",Jg.Player="PLAYER",Jg.ApplicationInactivity="APPLICATION_INACTIVITY",Jg.Scrub="SCRUB",(ev=tv||(tv={})).User="USER",ev.Player="PLAYER",(iv=nv||(nv={})).User="USER",iv.Player="PLAYER",iv.Error="ERROR",iv.Background="BACKGROUND",iv.ApplicationExit="APPLICATION_EXIT",iv.ApplicationInactivity="APPLICATION_INACTIVITY",(ov=rv||(rv={})).Restart="RESTART",ov.GoLive="GO_LIVE",ov.Scrub="SCRUB",ov.SkipForwardNext="SKIP_FORWARD_NEXT",ov.SkipForwardMilestone="SKIP_FORWARD_MILESTONE",ov.SkipForwardIncremental="SKIP_FORWARD_INCREMENTAL",ov.SkipBackwardIncremental="SKIP_BACKWARD_INCREMENTAL",ov.Looping="LOOPING",ov.TrackSelectionChanged="TRACK_SELECTION_CHANGED",(sv=av||(av={})).Applied="APPLIED",sv.Deferred="DEFERRED",sv.Blocked="BLOCKED",(lv||(lv={})).BreakContentClickUrl="BREAK_CONTENT_CLICK_URL",(dv=cv||(cv={})).DxcChoiceBase="DXC_CHOICE",dv.DxcGatewayGo="DXC_GATEWAY_GO",dv.DxcPauseBase="DXC_PAUSE_BASE",dv.DxcPauseExpandable="DXC_PAUSE_EXPANDABLE",dv.VideoCreative="VideoCreative",(pv=uv||(uv={})).Hdr10Plus="HDR10_PLUS",pv.Hdr10="HDR10",pv.DolbyVision="DOLBY_VISION",pv.DolbyVision20="DOLBY_VISION20",pv.Sdr="SDR",(mv=hv||(hv={})).RecordingOffset="RECORDING_OFFSET",mv.None="NONE";const gv=t=>![null,void 0].includes(t),vv=({allowStartover:t,playheadPositionMs:e,windowPositionMs:n,playheadIsLive:i,recordingOffsetPositionMs:r,seekableDurationMs:o,startPositionMs:a=0,programDurationMs:s=0,isRecording:l,sessionStartMs:c,timelineType:d})=>{const u=a+s,p=i?e:o,h=gv(r),m=a+(r??0);let g,v;if(!0===l&&d===Gg.Vod)g=gv(n)?Math.max(m,n):m,v=u;else if(h)if(v=p,t)g=Math.max(n,a);else{const t=gv(c)?Math.min(m,c):m;g=Math.max(n,a,t)}else v=p,g=Math.min(Math.max(a,n),u);const f=Math.min(v,u);return{seekableStartMs:Math.min(g,f),seekableEndMs:f}},fv={forwardBufferDurationMs:null,hasEnd:!1,isRecording:null,playheadIsLive:!1,playheadPositionMs:null,programDurationMs:null,recordingOffsetPositionMs:null,seekableDurationMs:null,seekableEndMs:null,seekableStartMs:null,sessionStartMs:null,restartDisplayType:null,startPositionMs:null,windowPositionMs:null,zeroPositionProgramDateTimeMs:null,type:null},bv=zh(((t=Ju())=>t.getIn(["player","core","timeline"])||Ju()),Em,((t,e)=>{const n=t.toJS(),i=e?.currentProgram;if(!n.timeline)return n.timeline={...fv},n;const{seekableStartMs:r,seekableEndMs:o}=n.timeline,a=null!=r&&null!=o;return n.timeline=a?{...n.timeline}:{...n.timeline,...vv({...n.timeline,allowStartover:i?.allowStartover,timelineType:n.timeline.type})},n})),_v=zh(((t=Ju())=>t.getIn(["player","extensions","volume"])||Ju()),(t=>t.toJS())),Ev=zh(((t=Ju())=>t.getIn(["ui","mode"])||Ju()),(t=>t.toJS())),yv=zh(((t=Ju())=>t.getIn(["ui","overlays"])||Ju()),(t=>t.toJS())),Sv=zh(((t=Ju())=>t.getIn(["player","core","skip"])||Ju()),(t=>t.toJS())),Tv=zh(Em,Zh,bv,((t,e,n)=>{const{streamType:i}=e,{currentProgram:{allowStartover:r}}=t,{timeline:o}
452=n,{isLive:a,isEvent:s,isVOD:l,isLinear:c,isReplay:d,isSlidingWindow:u,isEventReplay:p,isLinearReplay:h}=(t=>({isLive:vm(t),isEvent:cm(t),isLinear:dm(t),isSlidingWindow:um(t),isVOD:pm(t),isReplay:hm(t),isEventReplay:gm(t),isLinearReplay:mm(t)}))(i),m=null!=o?.recordingOffsetPositionMs&&null!=o?.seekableStartMs&&null!=o?.seekableEndMs&&o.seekableEndMs>o.seekableStartMs;return{noSeek:!r&&a&&!m,isLive:a,isEvent:s,isLiveEvent:a&&s,isVOD:l,isLinear:c,isReplay:d,isSlidingWindow:u,isEventReplay:p,isLinearReplay:h}}));var Cv,wv;(wv=Cv||(Cv={})).ERROR_OVERLAY_HIDE="@@dwp-ui/UI/OVERLAY/ERROR/HIDE",wv.ERROR_OVERLAY_REMOVE="@@dwp-ui/UI/OVERLAY/ERROR/REMOVE",wv.ERROR_OVERLAY_REMOVE_ALL="@@dwp-ui/UI/OVERLAY/ERROR/REMOVE_ALL",wv.ERROR_OVERLAY_SHOW="@@dwp-ui/UI/OVERLAY/ERROR/SHOW",wv.SKIP_OVERLAY_HIDE="@@dwp-ui/UI/OVERLAY/SKIP/HIDE",wv.SKIP_OVERLAY_SHOW="@@dwp-ui/UI/OVERLAY/SKIP/SHOW";const Av={AudioState:$h,CaptionsState:Hh,CastingState:Gh,ClickToPlayOverlayState:Yh,ContinuousPlayState:Wh,ErrorOverlayState:qh,MediaClientState:Xh,PlaybackState:Zh,PlayerPlaybackSessionState:Em,VolumeState:_v,UiModeState:Ev,OverlaysState:yv,SkipOverlayState:Sv,TimelineState:bv},Iv=(t,e)=>{const{fontMap:n,fontColorMap:i,fontSizeMap:r,windowColorMap:o,fontEdgeMap:a,backgroundColorMap:s,backgroundOpacityMap:l,windowOpacityMap:c,fontOpacityMap:d,getRGBA:u}=e,{font:p,fontColor:h,fontOpacity:m,fontSize:g,fontEdge:v,backgroundColor:f,backgroundOpacity:b,windowColor:_,windowOpacity:E,fontMappingOverride:y={}}=t,S=s[f]||s.backgroundColorBlack,T=o[_]||o.windowColorWhite,C=i[h]||i.fontColorWhite,w=l[b]||l.backgroundOpacity75,A=c[E]||c.windowOpacity0,I=d[m]||d.fontOpacity100;return{backgroundColor:u(S,w),windowColor:u(T,A),fontColor:u(C,I),font:n[p]||n.fontProportionalSansSerif,fontSize:r[g]||r.fontSize32,fontEdge:a[v]||a.fontEdgeNone,fontMappingOverride:y}},Ov=Iv({backgroundOpacity:"backgroundOpacity75",fontOpacity:"fontOpacity100",windowOpacity:"windowOpacity0",fontSize:"fontSize32",font:"fontDefault",fontEdge:"fontEdgeNone",backgroundColor:"backgroundColorBlack",fontColor:"fontColorWhite",windowColor:"windowColorBlack"},Al),Rv={backgroundColor:Ov.backgroundColor,windowColor:Ov.windowColor,textColor:Ov.fontColor,font:Ov.font,size:Ov.fontSize,textEdge:Ov.fontEdge,fontMappingOverride:Ov.fontMappingOverride};function xv(t){return"string"==typeof t&&t.trim().startsWith("rgba(")}var Lv,kv,Pv,Dv,Nv,Mv,Uv,Bv;var Vv,Fv={exports:{}},zv=(Vv||(Vv=1,function(t,e){t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){n.r(e),n.d(e,"getScreenOrientation",(function(){return i})),n.d(e,"parseUserAgent",(function(){return r})),n.d(e,"getDevice",(function(){return o}));var i=function(){return"undefined"!=typeof window?window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape":"unknown"};function r(t){var e,n,r="(",o=")",a="|",s="unknown",l="version",c={},d=null,u=null,p=function(t,e){return new RegExp(t,e||"i")},h={ios:"iP(?:hone|ad|od)",bb:"(?:BlackBerry|BB10| RIM )",android:"Android",windows:"Windows",winpdsk:"WPDesktop",winpold:"Windows Phone",winphone:"Trident(?:.*?Touch(?:.*?Mobile))",linux:"Linux(?!.*(Android|Tesla))",tesla:"Tesla",mac:"Macintosh",chromebook:"CrOS"},m="(?:"+[h.mac,h.windows,h.linux,h.chromebook].join(a)+o,g=/[._]/,v={windowsphone:p(h.winphone+a+h.winpold+a+h.winpdsk),windows:p(h.windows),ios:p(h.ios),blackberry:p(h.bb),android:p(h.android),linux:p(h.linux),macintosh:p(h.mac),chromebook:p(h.chromebook),tesla:p(h.tesla)}
452,f={desktop:/(?:Windows NT(?!.*WPDesktop)(?!.*Xbox))/i,tablet:p(r+["Tablet|iPad","\\sNT.*?"+h.winphone,h.android+"(?!.*Mobi)","silk",h.bb+".*?Tablet","xbox"].join(a)+o),phone:p(r+["Mobi|Mobile","WPDesktop",h.ios,h.winphone,h.bb].join(a)+o)},b={tablet:p(r+["Tablet|iPad","\\sNT.*?"+h.winphone,h.android+"(?!.*Mobi)","silk",h.bb+".*?Tablet"].join(a)+o),phone:p(r+["Mobi|Mobile",h.ios,h.winphone,h.bb].join(a)+o),desktop:p(m),vehicle:p(h.tesla)},_={msie:/msie|iemobile|trident/i,edge:/edge/i,chromiumedge:/(?:chrome\/).*(?=edg\/[\w\.]+)/i,chromiumopera:/(?:chrome\/).*(?=opr\/[\w\.]+)/i,chrome:/chrome|crios/i,firefox:/firefox|fxios/i,opera:/opera(?!.*?mini)\//i,operamini:/opera mini/i,silk:/silk/i,android:/android(?!.+(?:chrome|silk))/i,safari:/safari/i},E={webkit:/AppleWebKit/i,gecko:/gecko\//i,trident:/trident/i,edge:/Edge/i},y={desktop:"desktop",other:s,phone:"phone",tablet:"tablet",vehicle:"vehicle"},S=function(t){var e=t.split(g).slice(0,4);return t&&e.length<2&&e.push(0),e.join(".")},T=function(e){var n,i,r,o=t;for(n in e)({}).hasOwnProperty.call(e,n)&&(i=e[n].test(o),c[n]=c[n]||i&&!r,i&&!r&&(r=n));return r},C=function(e,n){return function(t,e){return t&&e?t[e]:t}(e.exec(t),n)||""};return{userAgent:t,platform:u=T(v)||s,platformVersion:S(C(p("(?:"+(c.blackberry?l:u)+"|"+h.winpold+"|OS)[^\\d]+([\\d\\.\\_]+)","ig"),1)),browser:(T(E),d=T(_)||("ios"===u&&c.webkit?"safari":s)),browserVersion:(e=d,n="[\\/\\s]",c.chrome&&c.ios?e="crios":c.opera?e=l:c.msie?(e=e+a+"IEMobile|rv",n="[\\/\\:\\s]"):c.chromiumedge?e="edg":c.chromiumopera?e="opr":c.firefox&&c.ios&&(e="fxios"),(c.android||c.chrome?/version[\/\s][\d\.]+/i.test(t):(c.ios||c.safari)&&/(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)/i.test(t))?S(C(p("(?:"+e+")"+n+"([\\d\\.]+)","i"),1)):S(C(p("(?:"+e+a+l+")"+n+"([\\d\\.]+)","i"),1))),formFactor:function(){var t;return t=c.msie?f:b,y[T(t)]||y.other}(),screenOrientation:i()}}var o=function(){return r(navigator.userAgent)}}])}(Fv)),Fv.exports);const $v=t=>({phone:"phone"===t?.formFactor,tablet:"tablet"===t?.formFactor,desktop:"desktop"===t?.formFactor,vehicle:"vehicle"===t?.formFactor,android:"android"===t?.platform,ios:"ios"===t?.platform,blackberry:"blackberry"===t?.platform,windows:"windows"===t?.platform,windowsphone:"windowsphone"===t?.platform,macintosh:"macintosh"===t?.platform,linux:"linux"===t?.platform,chromebook:"chromebook"===t?.platform,tesla:"tesla"===t?.platform,msie:"msie"===t?.browser,edge:"edge"===t?.browser,chromiumedge:"chromiumedge"===t?.browser,chromiumopera:"chromiumopera"===t?.browser,chrome:"chrome"===t?.browser,firefox:"firefox"===t?.browser,opera:"opera"===t?.browser,operamini:"operamini"===t?.browser,silk:"silk"===t?.browser,safari:"safari"===t?.browser}
452),Hv=({is:t=$v(zv.getDevice()),browserVersion:e=parseInt(zv.getDevice()?.browserVersion,10)}={})=>!!t.tablet&&!!t.msie&&e<=11,Gv=(t=$v(zv.getDevice()),e=Hv)=>!(!t.phone&&!t.tablet||e({is:t})),Yv=()=>{const t=window?.navigator?.userAgentData?.platform||window?.navigator?.platform;return"MacIntel"===t&&window?.navigator?.maxTouchPoints>0||"iPad"===t||/iPad/i.test(window?.navigator?.userAgent)},jv=(t=$v(zv.getDevice()))=>!!t.ios||Yv();var Kv,Wv,qv,Xv,Zv,Qv,Jv,tf,ef,nf;function rf(){if(tf)return Jv;tf=1;var t=function(){if(Qv)return Zv;Qv=1;var t=function(){if(Xv)return qv;Xv=1;var t=/\s/;return qv=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}}(),e=/^\s+/;return Zv=function(n){return n?n.slice(0,t(n)+1).replace(e,""):n}}(),e=fn(),n=$s(),i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return Jv=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(e(s)){var l="function"==typeof s.valueOf?s.valueOf():s;s=e(l)?l+"":l}if("string"!=typeof s)return 0===s?s:+s;s=t(s);var c=r.test(s);return c||o.test(s)?a(s.slice(2),c?2:8):i.test(s)?NaN:+s}}const of=bt(function(){if(nf)return ef;nf=1;var t=Wv?Kv:(Wv=1,Kv=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}),e=rf();return ef=function(n,i,r){return void 0===r&&(r=i,i=void 0),void 0!==r&&(r=(r=e(r))==r?r:0),void 0!==i&&(i=(i=e(i))==i?i:0),t(e(n),i,r)}}()),af=bt(nl()),sf=Vh(Bh,((t,e)=>Ju.isMap(t)&&Ju.isMap(e)?Bd(t,e):Fh(t,e))),lf=zh(((t=Ju())=>!!t.getIn(["ui","controls","audioSubtitleDrawer","main","isDrawerOpen"])),(t=>({isOpen:t}))),cf=sf(((t=Ju())=>t.getIn(["player","extensions","interstitials"])||Ju()),(t=>{const e=t?.getIn(["currentSession","currentAsset","type"]),n=t?.getIn(["currentSession","currentAsset","subtype"]),i=[tc.AD,tc.PROMO,tc.BUMPER,tc.CONTENT].includes(e),r=[tc.AD,tc.CONTENT].includes(e),o=n===Fg.Slate,a=e===tc.PROMO,s=null!=t.getIn(["currentSession","sessionId"]);return{...t.toJS(),hasCurrentSession:s,isInterstitialPlaying:i,isAdType:r,isSlateAd:o,isPromoType:a}})),df=sf(bv,(({timeline:t})=>{const{startPositionMs:e,playheadPositionMs:n}=t;return{isInPretune:n<e}}));var uf,pf;(pf=uf||(uf={})).CAN_PLAY_THROUGH="@PLAYER/CAN_PLAY_THROUGH",pf.EMIT_EVENT="@PLAYER/EMIT_EVENT",pf.INACTIVITY_TIMEOUT="@PLAYER/INACTIVITY_TIMEOUT",pf.LOCAL_STORAGE_SET_ITEM="@PLAYER/LOCAL_STORAGE_SET_ITEM",pf.LOCAL_STORAGE_ITEM_SET="@PLAYER/LOCAL_STORAGE_ITEM_SET",pf.NIELSEN_ID3_FRAME="@PLAYER/NIELSEN_ID3_FRAME",pf.PAGE_VISIBILITY_CHANGED="@PLAYER/PAGE_VISIBILITY_CHANGED",pf.PROGRAM_METADATA_CHANGED="@PLAYER/PROGRAM_METADATA_CHANGED",pf.RESTART_ACTIVITY_STATUS_TIMER="@PLAYER/RESTART_ACTIVITY_STATUS_TIMER",pf.SESSION_STORAGE_SET_ITEM="@PLAYER/SESSION_STORAGE_SET_ITEM",pf.SESSION_STORAGE_ITEM_SET="@PLAYER/SESSION_STORAGE_ITEM_SET",pf.SET_AUTHORIZATION_TYPE="@PLAYER/SET_AUTHORIZATION_TYPE",pf.SET_ACTIVITY_STATUS="@PLAYER/SET_ACTIVITY_STATUS",pf.SET_ACTIVITY_STATUS_IDLE_TIME_MS="@PLAYER/SET_ACTIVITY_STATUS_IDLE_TIME_MS",pf.SET_CURRENTLY_LIVE_PROGRAM_METADATA="@PLAYER/SET_CURRENTLY_LIVE_PROGRAM_METADATA",pf.SET_DEBUG_OPTIONS="@PLAYER/SET_DEBUG_OPTIONS",pf.SET_MARKERS="@PLAYER/SET_MARKERS",pf.SET_MEDIA_PLAYBACK_CRITERIA="@PLAYER/SET_MEDIA_PLAYBACK_CRITERIA",pf.SET_MEDIA_PLAYBACK_CRITERIA_METADATA="@PLAYER/SET_MEDIA_PLAYBACK_CRITERIA_METADATA",pf.SET_PLAYER_BEHAVIOR="@PLAYER/SET_PLAYER_BEHAVIOR",pf.SET_PIP_STATE="@PLAYER/SET_PIP_STATE",pf.SET_SESSION_ACTIVATED="@PLAYER/SET_SESSION_ACTIVATED",pf.SET_TIMELINE="@PLAYER/SET_TIMELINE",pf.UI_INTERACTION="@PLAYER/UI_INTERACTION",pf.UPDATE_TELEMETRY_PARAMETERS="@PLAYER/UPDATE_TELEMETRY_PARAMETERS",pf.WINDOW_BEFORE_UNLOAD="@PLAYER/WINDOW_BEFORE_UNLOAD";class hf{constructor(t,e=1e3){this.timers=new Map,this.tickIntervalId=null,this.timerGeneration=0,this.callbacks=t,this.tickIntervalMs=e}start(t,e,n=Lt.CUMULATIVE){this.clear(t);const i=this.validateDuration(e),r=performance.now();this.timerGeneration+=1;const o=this.timerGeneration,a={state:"running",endAtMs:r+i,pausedAtMs:null,originalDurationMs:i,mode:n,lastReportedRemainingMs:i,timeoutId:null,generation:o};a.timeoutId=setTimeout((()=>{this.handleTimerComplete(t,o)}),i),this.timers.set(t,a),this.manageTickInterval()}pause(t){const e=this.timers.get(t);return!(!e||"running"!==e.state||(null!==e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),e.pausedAtMs=performance.now(),e.state="paused",this.manageTickInterval(),0))}resume(t){const e=this.timers.get(t);if(!e||"paused"!==e.state||null===e.pausedAtMs)return!1;if(e.mode===Lt.CONSECUTIVE)return this.restart(t);const n=Math.max(0,e.endAtMs-e.pausedAtMs);if(n<=0)return this.complete(t),!0;const i=performance.now();this.timerGeneration+=1;const r=this.timerGeneration;return e.endAtMs=i+n,e.pausedAtMs=null,e.state="running",e.generation=r,e.timeoutId=setTimeout((()=>{this.handleTimerComplete(t,r)}),n),this.manageTickInterval(),!0}restart(t){const e=this.timers.get(t);if(!e)return!1;null!==e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null);const n=performance.now(),{originalDurationMs:i}=e;this.timerGeneration+=1;const r=this.timerGeneration;return e.state="running",e.endAtMs=n+i,e.pausedAtMs=null,e.lastReportedRemainingMs=i,e.generation=r,e.timeoutId=setTimeout((()=>{this.handleTimerComplete(t,r)}),i),this.manageTickInterval(),!0}clear(t){const e=this.timers.get(t);return!!e&&(null!==e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),this.timers.delete(t),this.manageTickInterval(),!0)}clearAll(){for(const t of this.timers.values())null!==t.timeoutId&&(clearTimeout(t.timeoutId),t.timeoutId=null);this.timers.clear(),this.stopTickInterval()}getRemainingMs(t){const e=this.timers.get(t);return e?"paused"===e.state&&null!==e.pausedAtMs?Math.max(0,e.endAtMs-e.pausedAtMs):Math.max(0,e.endAtMs-performance.now()):null}has(t){return this.timers.has(t)}isPaused(t){return"paused"===this.timers.get(t)?.state}getActiveIds(){return Array.from(this.timers.keys())}getRunningCount(){let t=0;for(const e of this.timers.values())"running"===e.state&&t++;return t}getOriginalDurationMs(t){const e=this.timers.get(t);return e?.originalDurationMs??null}getTimerInfo(t){return this.timers.get(t)??null}complete(t){const e=this.timers.get(t);e&&(null!==e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null),this.timers.delete(t),this.manageTickInterval(),this.callbacks.onComplete(t))}setMode(t,e){const n=this.timers.get(t);return!!n&&(n.mode=e,!0)}dispose(){this.clearAll()}validateDuration(t){return Number.isFinite(t)?Math.max(0,t):0}handleTimerComplete(t,e){const n=this.timers.get(t);n&&n.generation===e&&(this.timers.delete(t),this.manageTickInterval(),this.callbacks.onComplete(t))}manageTickInterval(){const t=this.getRunningCount()>0;t&&null===this.tickIntervalId?this.startTickInterval():t||null===this.tickIntervalId||this.stopTickInterval()}startTickInterval(){null===this.tickIntervalId&&(this.tickIntervalId=setInterval((()=>{this.tick()}),this.tickIntervalMs))}stopTickInterval(){null!==this.tickIntervalId&&(clearInterval(this.tickIntervalId),this.tickIntervalId=null)}tick(){const t=performance.now();
452for(const[e,n]of this.timers)try{if("running"!==n.state)continue;const i=Math.max(0,n.endAtMs-t);Math.abs(n.lastReportedRemainingMs-i)>=100&&(n.lastReportedRemainingMs=i,this.callbacks.onTick(e,i))}catch{}}}const mf=class t{constructor(e,n){this.completedOverlays=new Set,this.currentPhaseIndex=0,this.isSequenceActive=!1,this.isSequenceCompleted=!1,this.isConnected=!1,this.isProcessingSequence=!1,this.stateSubscription=null,this.currentOverlayContext=null,this.previousOverlayContext=null,this.previousRawStateKeys=null,this.lastKnownUiState=null,this.previousPlaybackId=null,this.previousProgramId=null,this.releasedPendingMedia=!1,this.unsubscribeLocalState=null,this.isStarted=!1,this.startDelayTimeoutId=null,this.isWaitingForStartDelay=!1,this.host=e,this.config=n,this.instanceId=++t.instanceCounter,this.overlayConfigById=t.buildOverlayIndex(n),this.ensureConfigValidated(),this.timerManager=new hf({onTick:(t,e)=>this.handleTimerTick(t,e),onComplete:t=>this.handleTimerComplete(t)},n.tickIntervalMs??1e3),e.addController(this),this.debugLog("LIFECYCLE","controller initialized",{phases:n.phases.map((t=>t.id)),overlays:Array.from(this.overlayConfigById.keys())})}ensureStarted(){this.isStarted||(this.host.stateStream$&&this.host.localState?(this.isStarted=!0,this.debugLog("LIFECYCLE","dependencies ready - starting subscriptions"),this.subscribeToStateStream(),this.subscribeToLocalState()):this.debugLogVerbose("LIFECYCLE","ensureStarted deferred - waiting for state dependencies"))}debugLog(t,e,n){if(!this.config.debug)return;const i=`[StartupOverlaySequencer:${this.instanceId}][${t}]`;n?console.log(i,e,n):console.log(i,e)}debugLogVerbose(t,e,n){"verbose"===this.config.debug&&this.debugLog(t,e,n)}handleTimerTick(t,e){this.debugLogVerbose("TIMER",`tick "${t}"`,{remainingMs:e,now:Date.now()});try{this.updateOverlayState(t,{remainingTime:e}),this.requestHostUpdate()}catch{}}handleTimerComplete(t){this.debugLog("TIMER",`complete "${t}"`),this.completedOverlays.add(t),this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,completed:!0,interrupted:!1}),this.config.onOverlayComplete?.(t,!1,this.host.logger,this.instanceId),this.requestHostUpdate(),this.processSequence()}ensureConfigValidated(){t.validatedConfigs.has(this.config)||(t.validateNoCyclicDependencies(this.config),t.validatedConfigs.add(this.config))}subscribeToStateStream(){if(this.stateSubscription||!this.host.stateStream$)return!1;const e=this.host.stateStream$;return e.distinctOn?this.stateSubscription=e.distinctOn((e=>t.extractRelevantStateKeys(e,this.host.localState)),Fh).subscribe((t=>this.handleStateChange(t))):this.stateSubscription=e.subscribe((t=>this.handleStateChangeWithDedup(t))),!0}subscribeToLocalState(){!this.unsubscribeLocalState&&this.host.localState&&(this.unsubscribeLocalState=this.host.localState.subscribe(this.host,(t=>({areControlsVisible:t.overlayState?.areControlsVisible,skipOpen:t.overlayState?.overlays?.skip?.isOpen,isCastingNormalMode:t.playerMode?.isCastingNormalMode,isMiniPlayer:t.playerMode?.isMiniPlayer}))))}handleStateChangeWithDedup(e){this.lastKnownUiState=e;const n=t.extractRelevantStateKeys(e,this.host.localState);this.previousRawStateKeys&&Fh(n,this.previousRawStateKeys)||(this.previousRawStateKeys=n,this.handleStateChange(e))}handleStateChange(t){this.lastKnownUiState=t,this.checkForMediaChange(t);const e=this.buildOverlayContext(t),n=this.previousOverlayContext;(!n||!Fh(e,n))&&(this.shouldResetForClickToPlay(n,e)&&(this.debugLog("CONTEXT","click-to-play visibility changed to true, resetting sequence"),this.reset()),this.previousOverlayContext=e,this.checkForProgramRollover(e),this.releasedPendingMedia||this.isSequenceActive||this.isSequenceCompleted||this.tryStart(e),this.isSequenceActive&&(this.reconcileAllOverlays(e),this.processSequence()))}shouldResetForClickToPlay(t,e){if(!this.overlayConfigById.has("clickToPlay"))return!1;if(!t)return!1;if(!this.isSequenceActive&&!this.isSequenceCompleted)return!1;if(t.clickToPlayVisible||!e.clickToPlayVisible)return!1;const n=this.host.localState?.startupOverlays?.clickToPlay;return!n?.isOpen}
452checkForMediaChange(t){const e=t.playbackId??null,n=this.previousPlaybackId;if(this.previousPlaybackId=e,e!==n){if(null===e)return this.debugLog("CONTEXT","player released, awaiting next media",{from:n}),this.releasedPendingMedia=!0,void this.reset();this.releasedPendingMedia=!1,null!==n&&(this.debugLog("CONTEXT","media change detected",{from:n,to:e}),this.reset())}}checkForProgramRollover(t){const e=t.programId,n=this.previousProgramId;this.previousProgramId=e,t.isLive&&!t.isBehindLiveEdge&&null!=e&&null!=n&&e!==n&&(this.debugLog("CONTEXT","live program rollover detected",{from:n,to:e}),this.restartRatingsForRollover(t))}restartRatingsForRollover(t){if(!this.config.replayRatingsOnProgramRollover)return;const e=this.config.phases.findIndex((t=>t.overlays.some((t=>"ratings"===t.id))));e<0||(this.currentOverlayContext=t,this.config.phases[e].overlays.map((t=>t.id)).forEach((t=>{this.timerManager.clear(t),this.completedOverlays.delete(t),this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,completed:!1,interrupted:!1})})),this.updateSequenceState({isSequenceActive:!0,isSequenceCompleted:!1,currentPhaseIndex:e}),this.config.onPhaseChange?.(e,this.config.phases[e]?.id??"",this.host.logger,this.instanceId),this.processSequence())}hostConnected(){this.debugLog("LIFECYCLE","hostConnected"),this.isConnected=!0,this.ensureStarted()}hostUpdated(){this.ensureStarted(),this.lastKnownUiState&&this.isSequenceActive&&this.handleStateChangeWithDedup(this.lastKnownUiState)}hostDisconnected(){this.debugLog("LIFECYCLE","hostDisconnected",{wasActive:this.isSequenceActive,activeOverlays:this.timerManager.getActiveIds()}),this.isConnected=!1,this.stateSubscription?.unsubscribe(),this.stateSubscription=null,this.unsubscribeLocalState?.(),this.unsubscribeLocalState=null,null!==this.startDelayTimeoutId&&(clearTimeout(this.startDelayTimeoutId),this.startDelayTimeoutId=null),this.isWaitingForStartDelay=!1,this.lastKnownUiState=null,this.previousOverlayContext=null,this.previousRawStateKeys=null,this.currentOverlayContext=null,this.previousPlaybackId=null,this.previousProgramId=null,this.isStarted=!1,this.timerManager.clearAll(),this.resetStateWithoutUpdate()}get activePhase(){if(!(this.currentPhaseIndex>=this.config.phases.length))return this.config.phases[this.currentPhaseIndex]}get isActive(){return this.isSequenceActive}get isComplete(){return this.isSequenceCompleted}get context(){return this.currentOverlayContext}get phaseIndex(){return this.currentPhaseIndex}get totalPhases(){return this.config.phases.length}get activeOverlays(){return this.timerManager.getActiveIds()}get timers(){const t=this.timerManager;return{get:e=>{const n=t.getTimerInfo(e);if(n)return{originalDurationMs:n.originalDurationMs}},keys:()=>t.getActiveIds()[Symbol.iterator](),has:e=>t.has(e)}}tryStart(t){if(this.isSequenceActive||this.isSequenceCompleted)return!1;const e=this.config.shouldStart(t);return this.debugLogVerbose("LIFECYCLE","shouldStart check",{shouldStartResult:e,isPlaying:t.isPlaying,isPaused:t.isPaused,controlsOpen:t.controlsOpen,isInterstitialPlaying:t.isInterstitialPlaying}),!!e&&(this.debugLog("LIFECYCLE","sequence starting",{firstPhase:this.config.phases[0]?.id,totalPhases:this.config.phases.length}),this.currentOverlayContext=t,this.updateSequenceState({isSequenceActive:!0,currentPhaseIndex:0}),this.config.onPhaseChange?.(0,this.config.phases[0]?.id??"",this.host.logger,this.instanceId),this.processSequence(),!0)}activateOverlay(t){const e=this.getOverlayConfig(t),n=this.currentOverlayContext;if(!e||!n)return this.debugLogVerbose("OVERLAY",`activate "${t}" failed`,{reason:e?"no context":"no config"}),!1;if(this.isOverlayComplete(t)||this.timerManager.has(t))return!1;if(e.shouldActivate&&!e.shouldActivate(n))return this.debugLog("OVERLAY",`"${t}" skipped (shouldActivate=false)`),this.markOverlayAsSkipped(t),!0;const i=this.resolveDuration(e,n),r=e.evaluate?e.evaluate(n):xt.ACTIVE;if(this.debugLogVerbose("OVERLAY",`"${t}" initial evaluate`,{action:r}),r===xt.DISMISS)return this.debugLog("OVERLAY",`"${t}" dismissed on activate`),this.markOverlayAsDismissed(t),!0;const o=r===xt.PAUSED_VISIBLE||r===xt.PAUSED_HIDDEN,a=r===xt.ACTIVE||r===xt.PAUSED_VISIBLE,s=e.timerMode??Lt.CUMULATIVE;return this.debugLog("OVERLAY",`activating "${t}"`,{durationMs:i,timerMode:s,initialAction:r,startPaused:o,startVisible:a}),this.completedOverlays.delete(t),this.updateOverlayState(t,{isOpen:!0,isPaused:o,isVisible:a,remainingTime:i,interrupted:!1,completed:!1}),this.timerManager.start(t,i,s),o&&this.timerManager.pause(t),this.config.onOverlayActivate?.(t,this.host.logger,this.instanceId),!0}markOverlayAsSkipped(t){this.completedOverlays.add(t),this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,interrupted:!1,completed:!0}),this.config.onOverlayComplete?.(t,!1,this.host.logger,this.instanceId),this.processSequence()}markOverlayAsDismissed(t){this.completedOverlays.add(t),this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,interrupted:!0,completed:!0}),this.config.onOverlayComplete?.(t,!0,this.host.logger,this.instanceId),this.processSequence()}deactivateOverlay(t){return!!this.timerManager.has(t)&&(this.debugLog("OVERLAY",`deactivating "${t}"`),this.timerManager.clear(t),this.completedOverlays.add(t),this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,interrupted:!0,completed:!0}),this.config.onOverlayComplete?.(t,!0,this.host.logger,this.instanceId),this.processSequence(),!0)}areDependenciesMet(t){const{waitFor:e}=t;return!e||0===e.length||e.every((t=>this.isOverlayComplete(t)))}isOverlayComplete(t){const e=this.host.localState?.startupOverlays;return void 0!==e?.[t]?!0===e[t]?.completed:this.completedOverlays.has(t)}isPhaseComplete(){const t=this.activePhase;return!t||(t.waitForAll??1?t.overlays.every((t=>this.isOverlayComplete(t.id))):t.overlays.some((t=>this.isOverlayComplete(t.id))))}completeSequence(){this.isSequenceActive&&(this.debugLog("LIFECYCLE","sequence completing",{completedPhases:this.currentPhaseIndex+1,totalPhases:this.config.phases.length}),this.closeAllActiveOverlays(),this.timerManager.clearAll(),this.updateSequenceState({isSequenceActive:!1,isSequenceCompleted:!0}),this.config.onComplete?.(this.host.logger,this.instanceId))}reset(){this.debugLog("LIFECYCLE","sequence reset",{wasActive:this.isSequenceActive,wasCompleted:this.isSequenceCompleted,previousPhase:this.currentPhaseIndex}),this.timerManager.clearAll(),this.completedOverlays.clear(),this.currentOverlayContext=null,this.previousOverlayContext=null,this.previousRawStateKeys=null,this.previousProgramId=null,this.resetAllOverlayStates(),this.updateSequenceState({isSequenceActive:!1,isSequenceCompleted:!1,currentPhaseIndex:0})}resetAllOverlayStates(){const t=Array.from(this.overlayConfigById.keys());for(const e of t)this.updateOverlayState(e,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,completed:!1,interrupted:!1})}getOverlayConfig(t){return this.overlayConfigById.get(t)}getRemainingMs(t){return this.timerManager.getRemainingMs(t)}hasTimer(t){return this.timerManager.has(t)}resolveDuration(e,n){const i="function"==typeof e.duration?e.duration(n):e.duration;return t.validateDuration(i)}pauseTimer(t){const e=this.timerManager.pause(t);return e&&(this.debugLog("TIMER",`paused "${t}"`,{remainingMs:this.timerManager.getRemainingMs(t)}),this.updateOverlayState(t,{isPaused:!0}),this.requestHostUpdate()),e}resumeTimer(t){const e=this.timerManager.resume(t);return e&&(this.debugLog("TIMER",`resumed "${t}"`,{remainingMs:this.timerManager.getRemainingMs(t)}),this.updateOverlayState(t,{isPaused:!1}),this.requestHostUpdate()),e}restartTimer(t){const e=this.timerManager.restart(t);if(e){const e=this.timerManager.getRemainingMs(t);this.debugLog("TIMER",`restarted "${t}"`,{remainingMs:e}),this.updateOverlayState(t,{isPaused:!1,remainingTime:e??0}),this.requestHostUpdate()}return e}clearTimer(t){const e=this.timerManager.clear(t);return e&&(this.debugLog("TIMER",`cleared "${t}"`),this.requestHostUpdate()),e}completeTimer(t){this.debugLog("TIMER",`force complete "${t}"`),this.timerManager.complete(t)}startTimer(t,e){this.debugLog("TIMER",`starting "${t}"`,{durationMs:e}),this.timerManager.start(t,e),this.updateOverlayState(t,{isOpen:!0,isVisible:!0,isPaused:!1,remainingTime:e}),this.requestHostUpdate()}updateContext(t){this.currentOverlayContext=t,this.debugLog("CONTEXT","context updated",{isPlaying:t.isPlaying,isPaused:t.isPau
452sed,controlsOpen:t.controlsOpen})}pause(){const t=[],e=this.timerManager.getActiveIds();for(const n of e)this.pauseTimer(n)&&t.push(n);return t}resume(){const t=[],e=this.timerManager.getActiveIds();for(const n of e)this.resumeTimer(n)&&t.push(n);return t}processSequence(){if(this.isConnected&&this.isSequenceActive&&!this.isProcessingSequence&&!this.isWaitingForStartDelay)if(!this.currentOverlayContext||this.config.shouldStart(this.currentOverlayContext)){this.isProcessingSequence=!0,this.debugLogVerbose("PHASE","processSequence START",{phaseIndex:this.currentPhaseIndex,phaseId:this.activePhase?.id,activeOverlays:this.timerManager.getActiveIds()});try{for(this.activatePendingOverlays();this.isPhaseComplete()&&this.isSequenceActive;){const t=this.activePhase?.id;if(!this.advancePhase())return void this.completeSequence();this.debugLog("PHASE","phase advanced",{fromPhase:t,toPhase:this.activePhase?.id,phaseIndex:this.currentPhaseIndex});const e=this.activePhase,n=e?.startDelayMs;if(n&&n>0)return this.debugLog("PHASE","start delay beginning",{phaseId:e?.id,startDelayMs:n}),this.isWaitingForStartDelay=!0,void(this.startDelayTimeoutId=setTimeout((()=>{this.handleStartDelayComplete()}),n));this.activatePendingOverlays()}}finally{this.isProcessingSequence=!1}}else this.debugLogVerbose("PHASE","processSequence blocked by shouldStart")}handleStartDelayComplete(){if(this.startDelayTimeoutId=null,this.isWaitingForStartDelay=!1,!this.isConnected||!this.isSequenceActive)return;const t=this.activePhase?.id;this.debugLog("PHASE","start delay complete",{phaseId:t}),this.processSequence()}advancePhase(){if(this.currentPhaseIndex>=this.config.phases.length-1)return this.currentPhaseIndex+=1,!1;this.currentPhaseIndex+=1;const t=this.config.phases[this.currentPhaseIndex];return this.config.onPhaseChange?.(this.currentPhaseIndex,t?.id??"",this.host.logger,this.instanceId),this.requestHostUpdate(),!0}activatePendingOverlays(){const t=this.activePhase;if(!t||!this.isSequenceActive)return[];const e=[];return t.overlays.forEach((t=>{const n=this.timerManager.has(t.id),i=this.isOverlayComplete(t.id);n||i||(this.areDependenciesMet(t)?this.activateOverlay(t.id)&&e.push(t.id):this.debugLog("OVERLAY",`skipped "${t.id}"`,{reason:"dependencies not met",waitFor:t.waitFor}))})),e.length>0&&this.debugLog("OVERLAY","activated overlays",{activated:e}),e}updateSequenceState(t){void 0!==t.isSequenceActive&&(this.isSequenceActive=t.isSequenceActive),void 0!==t.isSequenceCompleted&&(this.isSequenceCompleted=t.isSequenceCompleted),void 0!==t.currentPhaseIndex&&(this.currentPhaseIndex=t.currentPhaseIndex),this.requestHostUpdate()}requestHostUpdate(){this.isConnected&&this.host.requestUpdate()}buildOverlayContext(t){const{casting:e,timeline:n,playback:i,streamDetails:r,overlays:o,interstitials:a,isPretune:s,isUiLegacyControlsOverlayVisible:l,playbackCriteria:c,playbackSession:d}=t,u=c?.current?.metadata,{programDurationMs:p=0}=n?.timeline??{},{playing:h=!1,paused:m=!1,notready:g=!1,buffering:v=!1,isBehindLiveEdge:f=!1}=i??{},{isLive:b=!1,isVOD:_=!1}=r??{},{isOverlayVisible:E=!1}=o?.controls??{},{isInterstitialPlaying:y=!1}=a??{},{isInPretune:S=!1}=s??{},T=this.host.localState,C=T?.overlayState?.areControlsVisible,w=E,A=l,I=C||w||A||!1;return this.debugLogVerbose("INPUT","controls sources",{localStateControlsVisible:C,globalStateControlsVisible:w,legacyControlsVisible:A,resolvedControlsOpen:I}),this.currentOverlayContext={controlsOpen:I,isPlaying:h,isPaused:m,isBuffering:v,isPretune:S,isNotReady:g,isInterstitialPlaying:y,isCasting:e?.isCasting??!1,isCastingNormalMode:T?.playerMode?.isCastingNormalMode??!0,skipOverlayVisible:T?.overlayState?.overlays?.skip?.isOpen??!1,isMiniPlayer:T?.playerMode?.isMiniPlayer??!1,clickToPlayVisible:t.clickToPlayOverlay?.visible??!1,contentDurationMs:p,isLive:b,isVOD:_,isBehindLiveEdge:f,programId:d?.currentProgram?.id??null,ratings:u?.ratings??null,networkAttribution:u?.networkAttribution??null,serviceAttribution:u?.serviceAttribution??null,serviceAttributionImageUrl:u?.serviceAttributionImageUrl??null,playerFeatureFlags:i?.clients?.playerFeatureFlags}
452,this.debugLogVerbose("INPUT","context rebuilt",{controlsOpen:this.currentOverlayContext.controlsOpen,isInterstitialPlaying:this.currentOverlayContext.isInterstitialPlaying,isPlaying:this.currentOverlayContext.isPlaying,isPaused:this.currentOverlayContext.isPaused,isBuffering:this.currentOverlayContext.isBuffering,isPretune:this.currentOverlayContext.isPretune}),this.currentOverlayContext}reconcileAllOverlays(t){for(const e of this.timerManager.getActiveIds())this.reconcileOverlay(e,t)}reconcileOverlay(t,e){const n=this.overlayConfigById.get(t);if(!n?.evaluate)return;const i=this.host.localState?.startupOverlays?.[t];if(!i?.isOpen)return;this.debugLogVerbose("DECISION",`evaluating "${t}"`,{controlsOpen:e.controlsOpen,isInterstitial:e.isInterstitialPlaying,isPaused:i.isPaused,isVisible:i.isVisible,timerState:this.timerManager.getTimerInfo(t)?.state});const r=n.evaluate?n.evaluate(e):xt.ACTIVE;if(this.debugLogVerbose("DECISION",`"${t}" result`,{action:r,currentPaused:i.isPaused,currentVisible:i.isVisible}),r===xt.DISMISS)return void this.dismissOverlay(t);const o=r===xt.PAUSED_VISIBLE||r===xt.PAUSED_HIDDEN,a=r===xt.ACTIVE||r===xt.PAUSED_VISIBLE,s=i.isPaused??!1,l=i.isVisible??!0;o!==s&&(o?this.pauseTimer(t):n.timerMode===Lt.CONSECUTIVE?this.restartTimer(t):this.resumeTimer(t)),a!==l&&this.updateOverlayState(t,{isVisible:a})}dismissOverlay(t){this.debugLog("OVERLAY",`dismissing "${t}" via reconcile`),this.timerManager.clear(t),this.completedOverlays.add(t),this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,interrupted:!0,completed:!0}),this.config.onOverlayComplete?.(t,!0,this.host.logger,this.instanceId),this.processSequence()}updateOverlayState(t,e){const n=this.host.localState?.startupOverlays?.[t],i=n?.isOpen??!1,r=n?.isVisible??!1,o=e.isOpen??n?.isOpen??!1,a=e.isVisible??n?.isVisible??!1;i!==o||r!==a?this.debugLog("STATE",`"${t}" state changed`,{wasOpen:i,wasVisible:r,isOpen:o,isVisible:a}):this.debugLogVerbose("STATE",`update "${t}"`,e),this.host.localState?.updateStartupOverlay(t,e)}static validateDuration(t){return Number.isFinite(t)?Math.max(0,t):0}static extractRelevantStateKeys(t,e){return{playing:t.playback?.playing,paused:t.playback?.paused,notready:t.playback?.notready,buffering:t.playback?.buffering,isInPretune:t.isPretune?.isInPretune,isInterstitialPlaying:t.interstitials?.isInterstitialPlaying,isLive:t.streamDetails?.isLive,isVOD:t.streamDetails?.isVOD,isBehindLiveEdge:t.playback?.isBehindLiveEdge,programDurationMs:t.timeline?.timeline?.programDurationMs,controlsOverlayVisible:t.overlays?.controls?.isOverlayVisible,isUiLegacyControlsOverlayVisible:t.isUiLegacyControlsOverlayVisible,playbackId:t.playbackId,playbackCriteria:t.playbackCriteria,programId:t.playbackSession?.currentProgram?.id,clickToPlayVisible:t.clickToPlayOverlay?.visible,areControlsVisible:e?.overlayState?.areControlsVisible,skipOverlayVisible:e?.overlayState?.overlays?.skip?.isOpen,isCasting:t.casting?.isCasting,isCastingNormalMode:e?.playerMode?.isCastingNormalMode,isMiniPlayer:e?.playerMode?.isMiniPlayer}}static buildOverlayIndex(t){const e=new Map;return t.phases.forEach((t=>{t.overlays.forEach((t=>{e.set(t.id,t)}))})),e}static validateNoCyclicDependencies(t){const e=new Map;t.phases.forEach((t=>{t.overlays.forEach((t=>{e.set(t.id,t.waitFor??[])}))}));const n=new Set,i=new Set,r=t=>{if(i.has(t))return!0;if(n.has(t))return!1;n.add(t),i.add(t);const o=(e.get(t)??[]).some((t=>r(t)));return i.delete(t),o};Array.from(e.keys()).forEach((t=>{if(r(t))throw new Error(`Circular dependency detected in overlay configuration involving "${t}"`)}))}closeAllActiveOverlays(){this.timerManager.getActiveIds().forEach((t=>{this.updateOverlayState(t,{isOpen:!1,isPaused:!1,isVisible:!1,remainingTime:0,interrupted:!0,completed:!1})}))}resetStateWithoutUpdate(){this.isSequenceActive=!1,this.isSequenceCompleted=!1,this.currentPhaseIndex=0,this.isProcessingSequence=!1,this.isWaitingForStartDelay=!1,null!==this.startDelayTimeoutId&&(clearTimeout(this.startDelayTimeoutId),this.startDelayTimeoutId=null),this.completedOverlays.clear()}};mf.validatedConfigs=new WeakSet,mf.instanceCounter=0;let gf=mf;var vf=(t=>(t.ABC_NEWS="abcNews",t.CHECK="check",t.DEFAULT="default",t.DISNEY_PLUS="disneyPlus",t.ENTERTAINMENT_ABC="entertainmentAbc",t.ENTERTAINMENT_FX="entertainmentFx",t.ENTERTAINMENT_FREE_FORM="entertainmentFreeForm",t.ENTERTAINMENT_NAT_GEO="entertainmentNatGeo",t.ESPN="espn",t.KIDS="kids",t))(vf||{});const ff={PLAY_PAUSE_TOGGLED_BY_CLICK:"playPauseToggledByClick",AUTOPLAY_TOGGLE:"autoplayToggle",CAPTIONS_TOGGLE:"captionsToggle",CATCH_UP_TO_LIVE_SLIDE:"catchUpToLiveSlide",FEED_CHANGE_REQUEST:"feedChangeRequest",REPLAY_COMMAND:"replayCommand",EXIT_PLAYBACK:"@@btmp-ui/UI/CONTROLS/NAVIGATION/EXIT_PLAYBACK",CASTING_MINIMIZED:"@@btmp-ui/UI/MODE/CASTING_MINIMIZED",NORMAL_MODE:"@@btmp-ui/UI/MODE/NORMAL",PIP_MINIMIZE:"@@btmp-ui/UI/MODE/PIP_MINIMIZE",CASTING_TUTORIAL_SHOW:"@@btmp-ui/UI/OVERLAY/TUTORIALS/CASTING/SHOW",CASTING_TUTORIAL_HIDE:"@@btmp-ui/UI/OVERLAY/TUTORIALS/CASTING/HIDE"};class bf{static compress(t,e={}){const n=[];return this.compressInto(t.commands,n,e),{...t,commands:n}}static compressInto(t,e,n={}){const i=function(t){const e=t.maxHz??60,n=t.minIntervalMs??Math.max(1,Math.floor(1e3/e)),i=t.minDistancePx??2;return{minIntervalMs:n,minDistancePx:i,minDistancePx2:i*i,coalesceWindowMs:t.coalesceWindowMs??40,preserveDuringDrag:!1!==t.preserveDuringDrag,preserveTargetBoundary:!1!==t.preserveTargetBoundary}}(n);let r=null,o=-1/0,a=Number.NaN,s=Number.NaN;const l=t=>{e.push(t);const{x:n,y:i}=Ef(t);o=t.timestamp,a=n,s=i};for(let n=0;n<t.length;n++){const c=t[n];if(_f(c)){const t=c,{x:e,y:n,ref:d,dragging:u}=Ef(t);if(r&&i.preserveTargetBoundary&&Ef(r).ref!==d&&(l(r),r=null),i.preserveDuringDrag&&u){r&&(l(r),r=null),l(t);continue}r=t;const p=t.timestamp-o;if(p>=i.minIntervalMs)if(Number.isFinite(a)){const o=e-a,c=n-s;(o*o+c*c>=i.minDistancePx2||p>=i.coalesceWindowMs)&&(l(t),r=null)}else l(t),r=null}else r&&(l(r),r=null),e.push(c)}r&&(l(r),r=null)}}function _f(t){const e=t?.command?.type,n=t?.command?.payload?.action;return"mouseMove"===e||"mouseEvent"===e&&"move"===n}function Ef(t){const e=t?.command?.payload||{},n=Number(e.clientX??0),i=Number(e.clientY??0),r="string"==typeof e.ref?e.ref:null,o=Number(e.buttons??0);return{x:n,y:i,ref:r,dragging:!!e.isDragging||o>0}}const yf=class t{constructor(t){this.middleware=[],this.recording=!1,this.recordedCommands=[],this.startTime=0,this.recentCommandSignatures=new Set,this.echoQueue=[],this.isPaused=!1,this.currentReplayIndex=0,this.currentReplayCommands=null,this.currentReplayOptions=null,this.currentResolve=null,this.rafId=null,this.replayToken=0,this.loopStartNow=0,this.tsOffset=0,this.pendingMove=null,this.lastMoveDispatchedAt=-1/0,this.defaultSink=t=>{console.log("Command reached default sink:",t)},this.relTs=t=>t.timestamp-this.tsOffset,this.stepReplay=()=>{const t=this.replayToken,e=this.currentReplayCommands,n=this.currentResolve,i=this.currentReplayOptions;if(t!==this.replayToken||!e||!n||!i)return;const r=performance.now()-this.loopStartNow,o=i.maxPerFrame;let a=0;for(;this.currentReplayIndex<e.length&&this.relTs(e[this.currentReplayIndex])<=r&&a<o;){const t=e[this.currentReplayIndex];i.coalesceMoves&&this.isMouseMove(t)?this.pendingMove=t:(this.flushPendingMoveIfDue(this.relTs(t),i),this.safeDispatch(t)),this.currentReplayIndex++,a++}if(i.coalesceMoves&&this.pendingMove){const t=this.currentReplayIndex<e.length?this.relTs(e[this.currentReplayIndex]):Number.POSITIVE_INFINITY,n=this.relTs(this.pendingMove),r=n-this.lastMoveDispatchedAt>=i.moveThrottleMs,o=t-n>=i.moveCoalesceMs,a=this.currentReplayIndex>=e.length;(r||o||a)&&(this.safeDispatch(this.pendingMove),this.lastMoveDispatchedAt=n,this.pendingMove=null)}if(this.currentReplayIndex>=e.length){if(this.pendingMove&&(this.relTs(this.pendingMove)-this.lastMoveDispatchedAt>=this.currentReplayOptions.moveThrottleMs&&this.safeDispatch(this.pendingMove),this.pendingMove=null),t===this.replayToken&&this.currentResolve){const t=this.currentResolve;this.currentResolve=null,this.resetReplayState(),t()}}else this.isPaused||t!==this.replayToken||this.scheduleNextFrame()},t?.middleware&&(this.middleware=[...t.middleware]),this.sink=t?.sink||this.defaultSink,this.recording=!!t?.recording,this.emit=t?.emit,this.recording&&this.startRecording()}startRecording(){this.recording=!0,this.recordedCommands=[],this.startTime=Date.now()}stopRecording(){this.recording=!1;const t=Date.now();return{commands:[...this.recordedCommands],metadata:{startTime:this.startTime,endTime:t,ver
452sion:"1.0"}}}normalizeRecording(t){return t.commands.length,t}clearRecordedBuffer(){this.recordedCommands=[]}dispose(){this.cancelReplay(),this.middleware=[],this.sink=this.defaultSink,this.emit=void 0}pauseReplay(){return!(!this.currentReplayCommands||this.isPaused||(this.isPaused=!0,null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),0))}restartReplay(){return!!(this.currentReplayCommands&&this.isPaused&&this.currentResolve)&&(this.isPaused=!1,this.currentReplayOptions?.headless?this.startHeadlessLoop():this.scheduleNextFrame(),!0)}cancelReplay(){return!(null===this.rafId&&!this.isPaused&&null===this.currentReplayCommands||(this.replayToken++,null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.currentResolve&&(this.currentResolve(),this.currentResolve=null),this.resetReplayState(),0))}resetReplayState(){this.isPaused=!1,this.currentReplayIndex=0,this.currentReplayCommands=null,this.currentReplayOptions=null,this.pendingMove=null,this.lastMoveDispatchedAt=-1/0,this.tsOffset=0,this.recentCommandSignatures.clear(),this.echoQueue.length=0}static isPlainObject(t){if(null===t||"object"!=typeof t)return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}static briefForSpecial(t){try{if("undefined"!=typeof Element&&t instanceof Element)return{_el:t.tagName,id:t.id||void 0,class:t.className||void 0}}catch{}try{if("undefined"!=typeof Node&&t instanceof Node)return{_node:t.nodeName}}catch{}try{if("undefined"!=typeof Event&&t instanceof Event)return{_event:t.type}}catch{}try{if("undefined"!=typeof Window&&t instanceof Window)return"[Window]";if("undefined"!=typeof Document&&t instanceof Document)return"[Document]"}catch{}return t instanceof Date?t.toISOString():t instanceof RegExp?t.toString():null}static prunePayloadForSignature(e,n=new WeakSet,i=0){const r=t.SIG_MAX_DEPTH,o=t.SIG_MAX_KEYS,a=t.SIG_MAX_ARRAY;if(null==e)return e;const s=typeof e;if("string"===s||"number"===s||"boolean"===s)return e;if("bigint"===s)return Number.isSafeInteger(Number(e))?Number(e):String(e);if("symbol"===s)return String(e);if("function"===s)return"[Function]";if(n.has(e))return"[Circular]";if(n.add(e),i>=r)return`[${e&&e.constructor&&e.constructor.name||"Object"}…]`;const l=t.briefForSpecial(e);if(l)return l;if(e instanceof Map){const r=[];let o=0;return Array.from(e.entries()).some((([e,s])=>o>=a||(r.push(["MapEntry",t.prunePayloadForSignature(e,n,i+1),t.prunePayloadForSignature(s,n,i+1)]),o+=1,!1))),o>a&&r.push("[+more]"),r}if(e instanceof Set){const r=[];let o=0;return Array.from(e.values()).some((e=>o>=a||(r.push(["SetValue",t.prunePayloadForSignature(e,n,i+1)]),o+=1,!1))),o>a&&r.push("[+more]"),r}if(Array.isArray(e)){const r=e.slice(0,a).map((e=>t.prunePayloadForSignature(e,n,i+1)));return e.length>a&&r.push(`[+${e.length-a} more]`),r}if(t.isPlainObject(e)){const r={},a=Object.keys(e).filter((e=>!t.ECHO_OMIT_KEYS.has(e))).sort(),s=Math.min(a.length,o);for(let o=0;o<s;o++){const s=a[o];try{r[s]=t.prunePayloadForSignature(e[s],n,i+1)}catch{r[s]="[Unserializable]"}}return a.length>s&&(r["[+more]"]=a.length-s),r}const c={_ctor:e&&e.constructor&&e.constructor.name||"Object"};try{const r=Object.keys(e).filter((e=>!t.ECHO_OMIT_KEYS.has(e))).sort().slice(0,o);r.forEach((r=>{c[r]=t.prunePayloadForSignature(e[r],n,i+1)})),Object.keys(e).length>r.length&&(c["[+more]"]=Object.keys(e).length-r.length)}catch{}return c}generateCommandSignature(e){const n=t.prunePayloadForSignature(e.payload);return JSON.stringify({type:e.type,payload:n})}registerCommandSignature(e){const n="undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now(),i=n-t.ECHO_TTL_MS;for(;this.echoQueue.length&&this.echoQueue[0].at<i;){const t=this.echoQueue.shift();this.recentCommandSignatures.delete(t.sig)}if(this.recentCommandSignatures.has(e))return!1;if(this.recentCommandSignatures.add(e),this.echoQueue.push({sig:e,at:n}),this.echoQueue.length>t.ECHO_MAX){const t=this.echoQueue.shift();this.recentCommandSignatures.delete(t.sig)}return!0}shouldSuppressCommand(t){const e=this.generateCommandSignature(t);return!this.registerCommandSignature(e)}replayRecording(t,e={}){return this.cancelReplay(),new Promise((n=>{try{let i=t?.commands||[];if(!i.length)return void n();if(e.precompress){const t=[];bf.compressInto(i,t,e.precompress),i=t}this.currentReplayCommands=i,this.tsOffset=i[0].timestamp||0,this.currentReplayOptions={headless:!!e.headless,coalesceMoves:!1!==e.coalesceMoves,moveThrottleMs:e.moveThrottleMs??16,moveCoalesceMs:e.moveCoalesceMs??40,maxPerFrame:e.maxPerFrame??500},this.currentReplayIndex=0,this.currentResolve=n,this.isPaused=!1,this.replayToken++,this.currentReplayOptions.headless?this.startHeadlessLoop():(this.loopStartNow=performance.now(),this.scheduleNextFrame())}catch(t){console.error("Error starting replay:",t),n()}}))}scheduleNextFrame(){!this.isPaused&&this.currentReplayCommands&&this.currentResolve&&(this.rafId=requestAnimationFrame(this.stepReplay))}startHeadlessLoop(){const t=this.replayToken,e=this.currentReplayCommands;this.currentResolve;const n=this.currentReplayOptions,i=Number.isFinite(n.maxPerFrame)?Math.max(1,Math.floor(n.maxPerFrame)):Number.MAX_SAFE_INTEGER,r=()=>{if(t!==this.replayToken||this.isPaused)return;let o=0;for(;this.currentReplayIndex<e.length&&o<i;){if(this.isPaused||t!==this.replayToken)return;const i=e[this.currentReplayIndex];if(n.coalesceMoves&&this.isMouseMove(i)?this.pendingMove=i:(this.flushPendingMoveIfDue(this.relTs(i),n),this.safeDispatch(i)),this.currentReplayIndex++,o++,n.coalesceMoves&&this.pendingMove){const t=this.currentReplayIndex<e.length?this.relTs(e[this.currentReplayIndex]):Number.POSITIVE_INFINITY,i=this.relTs(this.pendingMove),r=i-this.lastMoveDispatchedAt>=n.moveThrottleMs,o=t-i>=n.moveCoalesceMs,a=this.currentReplayIndex>=e.length;(r||o||a)&&(this.safeDispatch(this.pendingMove),this.lastMoveDispatchedAt=i,this.pendingMove=null)}}if(this.currentReplayIndex>=e.length){if(this.pendingMove&&(this.relTs(this.pendingMove)-this.lastMoveDispatchedAt>=n.moveThrottleMs&&this.safeDispatch(this.pendingMove),this.pendingMove=null),t===this.replayToken&&this.currentResolve){const t=this.currentResolve;this.currentResolve=null,this.resetReplayState(),t()}}else this.scheduleHeadlessTick(r)};r()}scheduleHeadlessTick(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}flushPendingMoveIfDue(t,e){if(!this.pendingMove)return;const n=this.relTs(this.pendingMove);(n-this.lastMoveDispatchedAt>=e.moveThrottleMs||t-n>=e.moveCoalesceMs)&&(this.safeDispatch(this.pendingMove),this.lastMoveDispatchedAt=n,this.pendingMove=null)}isMouseMove(t){const e=t?.command?.type,n=t?.command?.payload?.action;return"mouseMove"===e||"mouseEvent"===e&&"move"===n}markReplayPayload(t){if(t&&"object"==typeof t)try{Object.defineProperty(t,"__cbReplay",{value:!0,enumerable:!1,
452configurable:!0})}catch{}return t}safeDispatch(t){try{const e={type:t.command.type,payload:this.markReplayPayload(t.command.payload)};this.dispatch(e,!0);const n={command:t.command.type,timestamp:this.relTs(t),payload:t.command.payload};if(this.dispatchCommand){this.dispatchCommand("replayCommand",n);const t=ff?.REPLAY_COMMAND&&"replayCommand"!==ff.REPLAY_COMMAND?ff.REPLAY_COMMAND:null;t&&this.dispatchCommand(t,n)}}catch(e){console.error("Dispatch error:",e,t)}}use(t){this.middleware.push(t)}setSink(t){this.sink=t}dispatch(t,e=!1){return!(!e&&this.shouldSuppressCommand(t)||(this.recording&&!e&&this.recordedCommands.push({command:t,timestamp:Date.now()-this.startTime}),this.processMiddleware(0,t),0))}dispatchCommand(t,e){return this.dispatch(function(t,e){return{type:t,payload:e}}(t,e))}processMiddleware(t,e){t>=this.middleware.length?this.sink(e):this.middleware[t](e,(e=>this.processMiddleware(t+1,e)))}};yf.ECHO_TTL_MS=300,yf.ECHO_MAX=4096,yf.ECHO_OMIT_KEYS=new Set(["timestamp","timeStamp","ts","time","isReplay","__cbReplay","frame","sequence","uuid","nonce","requestId"]),yf.SIG_MAX_DEPTH=5,yf.SIG_MAX_KEYS=32,yf.SIG_MAX_ARRAY=64;let Sf=yf;const Tf=t=>(e,n)=>{const{payload:i,type:r}=e||{};t?.stateStore?.dispatch({type:uf.UI_INTERACTION,value:{context:r,payload:i}}),n(e)};var Cf=(t=>(t.QUICKFASTFORWARD_10="quick-fast-forward-10",t.QUICKREWIND_10="quick-rewind-10",t.QUICKFASTFORWARD_30="quick-fast-forward-30",t.QUICKREWIND_30="quick-rewind-30",t.PLAY="play",t.PAUSE="pause",t.PLAY_LIVE="play-live",t.PAUSE_LIVE="pause-live",t.CONTROLS_VISIBLE_PAUSED="controls-visible-paused",t.CONTROLS_VISIBLE_PLAYING="controls-visible-playing",t.PROMO_STARTED="promo-started",t.PROMO_ENDED="promo-ended",t.BUMPER_STARTED="bumper-started",t.BUMPER_ENDED="bumper-ended",t.AD_STARTED="ad-started",t.AD_ENDED="ad-ended",t))(Cf||{});const wf=(t,e)=>n=>{const i=Tc(),r={[Cf.QUICKFASTFORWARD_10]:{key:Xl.MEDIA.PLAYER.SKIPPED_FORWARD10,value:"Video Skipped Forward 10 Seconds to {time}"},[Cf.QUICKFASTFORWARD_30]:{key:Xl.MEDIA.PLAYER.SKIPPED_FORWARD30,value:"Video Skipped Forward 30 Seconds"},[Cf.QUICKREWIND_10]:{key:Xl.MEDIA.PLAYER.SKIPPED_BACK10,value:"Video Skipped Back 10 Seconds to {time}"},[Cf.QUICKREWIND_30]:{key:Xl.MEDIA.PLAYER.SKIPPED_BACK30,value:"Video Skipped Back 30 Seconds"},[Cf.PLAY]:{key:Xl.MEDIA.PLAYER.RESUMED,value:"Playback Resumed"},[Cf.PAUSE]:{key:Xl.MEDIA.PLAYER.PAUSED,value:"Paused at {time}"},[Cf.PLAY_LIVE]:{key:Xl.MEDIA.LIVE.PLAY_SELECTED,value:"Playing"},[Cf.PAUSE_LIVE]:{key:Xl.MEDIA.LIVE.PAUSED,value:"Paused"},[Cf.CONTROLS_VISIBLE_PAUSED]:{key:Xl.MEDIA.LIVE.OPEN_CONTROLS_PAUSED,value:"Player Controls Open, Paused"},[Cf.CONTROLS_VISIBLE_PLAYING]:{key:Xl.MEDIA.LIVE.OPEN_CONTROLS_PLAYING,value:"Player Controls Open, Playing"},[Cf.PROMO_STARTED]:{key:Xl.MEDIA.PLAYER.PROMO_START,value:"Promotion"},[Cf.PROMO_ENDED]:{key:Xl.MEDIA.PLAYER.PROMO_END,value:"End of promotion"},[Cf.AD_STARTED]:{key:Xl.MEDIA.PLAYER.AD_START,value:"Ad"},[Cf.AD_ENDED]:{key:Xl.MEDIA.PLAYER.AD_END,value:"End of Ad"},[Cf.BUMPER_STARTED]:{key:Xl.MEDIA.PLAYER.BUMPER_START,value:"Intro"},[Cf.BUMPER_ENDED]:{key:Xl.MEDIA.PLAYER.BUMPER_END,value:"End of Intro"}},{key:o,value:a}=void 0!==r[e]?r[e]:{key:"",value:""};if(void 0!==n){const e={pattern:/\$?\{time\}/,replacement:i(n,Ic(n))};return t.translate(o,a,e)}return t.translate(o,a)},Af=(t,e)=>n=>{const i=t[n.type];if(i&&"function"==typeof i)i(n.payload);else if(!(n.type in t))throw new Error(`[${e}] Unsupported command type: ${n.type}`)},If=async t=>{try{await t()}catch(t){if(t instanceof TypeError&&t?.message?.includes("Pending operation cancelled"))return void console.warn("Fullscreen operation cancelled:",t);throw t}},Of="controls",Rf="toast",xf="castingTutorial",Lf="currentlyLiveProgram",kf="open",Pf="close",Df={SHARE:"share",SETTINGS_MODAL:"settingsModal",SHARE_MODAL:"shareModal",BROADCAST:"broadcast",DEBUG_MODAL:"debugModal",AUDIO_SWITCHER_MODAL:"audioSwitcherModal",AIRING_MODAL:"airingModal"},Nf="open",Mf="close",Uf="viewChange",Bf="share-modal-heading",Vf=(t,e,n,i,r,o)=>{const a=((t,e,n,i)=>{const r={[Ql.PLAY]:i=>{const r=vm(e()?.playback?.streamType)?Cf.PLAY_LIVE:Cf.PLAY,o=wf(n,r)(void 0);t.play(),i?.localState?.updateTextToSpeech(o)}
452,[Ql.PAUSE]:i=>{t.pause();const r=e(),o=vm(r?.playback?.streamType)?Cf.PAUSE_LIVE:Cf.PAUSE,a=wf(n,o)(Math.floor(r?.timeline?.timeline?.playheadPositionMs??0));i?.localState?.updateTextToSpeech(a)},[Ql.TOGGLE_PLAY_PAUSE]:()=>{e()?.playback?.isPaused?t.play():t.pause()},[Ql.RESTART]:()=>{const{playback:n}=e()??{};if(vm(n?.streamType))return t.seekToStart(),void(n?.isPaused&&t.play());t.restart()},[Ql.RESTART_ACTIVITY_STATUS_TIMER]:()=>{t.playbackSession.restartActivityStatusTimer(),t.play(tv.User)},[Ql.INACTIVITY_TIMEOUT]:()=>{t.playbackSession.inactivityTimeout()},[Ql.PLAY_NEXT]:e=>{const n=e?.nextContentId;n&&t.casting?.isCasting&&t.casting?.playNext&&t.casting.playNext(n)},[Ql.ENABLE_AUTOPLAY]:e=>{t.autoplay=!e,t.dispatchEvent(new Event("autoplayChanged"))},[$l.CONTROLS.PLAY_NEXT.CLICKED]:t=>{i?.stateStore?.dispatch?.({type:$l.CONTROLS.PLAY_NEXT.CLICKED,value:t})}};return Af(r,"PlaybackSink")})(t,e,n,r),s=((t,e,n)=>{const i=()=>e()?.timeline?.timeline?.playheadPositionMs??0,r={[Ql.SEEK]:e=>{const{proposedTime:n}=e;t.seek(n)},[Ql.SEEK_TO_LIVE]:()=>t.seekToLive(),[Ql.SEEK_TO_START]:()=>t.seekToStart(),[Ql.SCRUB]:e=>{e.__cbReplay||t.scrub(e.target?e:null)},[Ql.QUICK_REWIND]:e=>{const r="number"==typeof e?e:e.offset,o="number"==typeof e?i():e.playheadPositionMs??i(),a="number"==typeof e?void 0:e.localState,s=1e4===r?Cf.QUICKREWIND_10:Cf.QUICKREWIND_30,l=Math.floor(o-r),c=wf(n,s)(l);t.quickRewind(r),a?.updateTextToSpeech(c)},[Ql.QUICK_FAST_FORWARD]:e=>{const r="number"==typeof e?e:e.offset,o="number"==typeof e?i():e.playheadPositionMs??i(),a="number"==typeof e?void 0:e.localState,s=1e4===r?Cf.QUICKFASTFORWARD_10:Cf.QUICKFASTFORWARD_30,l=Math.floor(o+r),c=wf(n,s)(l);t.quickFastForward(r),a?.updateTextToSpeech(c)}};return Af(r,"SeekingSink")})(t,e,n),l=(t=>{function e(e,n){const i=Math.round(Math.min(100,Math.max(0,e)));t.volume.level=i,i>0&&n&&t.volume.unmute()}const n={[Ql.MUTE]:e=>{const{muted:n=!1,level:i=0}=e??{};n||0===i||t.volume.mute()},[Ql.UNMUTE]:n=>{const{level:i,previousLevel:r}=n??{};t.volume.unmute(),e(i||r||50,!1)},[Ql.TOGGLE_MUTE]:e=>{const{muted:n=!1,level:i=0}=e??{};n||0===i?t.volume.unmute():t.volume.mute()},[Ql.SET_VOLUME]:t=>{const{level:n=0,muted:i=!1}=t??{};e(n,i)},[Ql.INCREASE_VOLUME]:t=>{const{increaseAmount:n=10,level:i=0,muted:r=!1}=t??{};e(Math.round(Math.min(100,Math.max(0,i+n))),r)},[Ql.DECREASE_VOLUME]:t=>{const{decreaseAmount:n=10,level:i=0,muted:r=!1}=t??{};e(Math.round(Math.min(100,Math.max(0,i-n))),r)}};return Af(n,"VolumeSink")})(t),c=((t,e)=>{const{container:n}=e??{},i=e=>{t?.setTimedTextAppearance?.(e??{})};n&&window.addEventListener(Ct,(e=>{const{height:i,container:r}=e.detail||{};if(n===r&&Number.isFinite(i)){const e=(t=>{const[,e]=[[!t,3.3],[t<200,8],[t<400,6],[t<600,3.3],[!0,3.3]].find((([t])=>!!t));return e})(i),n=Nl()??{},r=Dl({},n);t?.setTimedTextAppearance?.({...r,sizeScalar:e})}}));const r={[Ql.CAPTIONS_TRACK_SELECTION]:e=>(({track:e})=>{e?t?.captions?.setTrack(e,Vl.USER):console.warn("captions were not set due to missing track")})(e),[Ql.ENABLE_CAPTIONS]:e=>(e=>{const{timedTextAppearance:n}=e??{};i(n??{}),t?.captions?.enable(Vl.USER)})(e),[Ql.DISABLE_CAPTIONS]:()=>t?.captions?.disable(Vl.USER),[Ql.SET_TIMED_TEXT_APPEARANCE]:t=>{const{replaceAppearance:e,...n}=t??{};if(!0===e)return void i(t);const r=Nl()??{},o=Dl(r,n);i(o)},[Ql.SET_TIMED_TEXT_REGION]:e=>{t?.setTimedTextRegion?.(e?.region??null)}};return Af(r,"CaptionSink")})(t,{container:o}),d=((t,e)=>{const n={[Ql.FULLSCREEN_EXIT]:()=>{If((()=>{document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()}))},[Ql.FULLSCREEN_ENTER]:({container:n})=>{const i=e.querySelector("video[src]");If(n?()=>{n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():i.webkitSupportsFullscreen?i.webkitEnterFullscreen():console.warn("Fullscreen API is not supported")}:()=>t.requestFullscreen())}};return Af(n,"FullscreenSink")})(t,r),u=((t,e,n)=>{const i={[Ql.DIM_CONTROLS]:t=>{const{control:e}=t;n?.stateStore?.dispatch({type:Bl,control:e})},[Ql.BLUR_VIDEO]:({value:t})=>{const e=t,n=document.querySelector(".hive-video");
452n&&(n.style.filter.includes("blur")&&(n.style.filter="",n.style.transform=""),e&&(n.style.filter="blur(45px) brightness(0.85)",n.style.transform=" scale(2)"))},[Ql.SHIFT_CAPTION_LAYOUT]:({visible:e})=>{if("function"!=typeof t.shiftCaptionLayout){const t=document.querySelector(".TimedTextOverlay");t&&t.classList.toggle("mainapp-control-showing",e)}else t.shiftCaptionLayout(e)},[Ql.NOTIFY_CONTROLS_DISABLED]:t=>{const{control:e,localState:n}=t;n?.updateDisabledControl(!0,e)},[Ql.TOGGLE_PROGRESS_BAR_LIVE_LABEL]:t=>{const{show:e,localState:n}=t;n?.updateProgressBarLiveLabel(e)},[Ql.TOGGLE_CURRENTLY_LIVE_OVERLAY]:t=>{const{value:e,localState:n}=t;n?.updateOverlayState({overlayName:Lf,isOpen:e})},[Ql.MOUSE_EVENT]:t=>{const{ref:n,action:i}=t;if(!t.__cbReplay)return;let{clientX:r}=t,{clientY:o}=t;const a=e.getQAElement?.(n);if(a&&"number"==typeof t.relX&&"number"==typeof t.relY){const e=a.getBoundingClientRect();r=e.left+t.relX*e.width,o=e.top+t.relY*e.height}const s=new MouseEvent({move:"mousemove",enter:"mouseenter",leave:"mouseleave",down:"mousedown",up:"mouseup"}[i||"move"]||"mousemove",{clientX:r,clientY:o,bubbles:!0,cancelable:!0,composed:!0});a?.dispatchEvent(s)},[Ql.KEYBOARD_EVENT]:t=>{const{ref:n,key:i,code:r,type:o}=t;if(!t.__cbReplay)return;const a=new KeyboardEvent(o,{key:i,code:r,bubbles:!0,cancelable:!0}),s=e.getQAElement?.(n);s?.dispatchEvent(a)},[Ql.FOCUS_EVENT]:t=>{const{ref:n,relatedTarget:i,action:r}=t;if(!t.__cbReplay)return;const o=new FocusEvent(r||"focus",{bubbles:!0,cancelable:!0,relatedTarget:i}),a=e.getQAElement?.(n);a?.dispatchEvent(o)},[Ql.POINTER_EVENT]:t=>{const{ref:n,type:i,pointerId:r,pointerType:o,width:a,height:s}=t;if(!t.__cbReplay)return;let{clientX:l}=t,{clientY:c}=t;const d=e.getQAElement?.(n);if(d&&"number"==typeof t.relX&&"number"==typeof t.relY){const e=d.getBoundingClientRect();l=e.left+t.relX*e.width,c=e.top+t.relY*e.height}const u=new PointerEvent(i,{clientX:l,clientY:c,pointerId:r,pointerType:o,width:a,height:s,bubbles:!0,cancelable:!0,composed:!0});d?.dispatchEvent(u)},[Ql.NORMAL_MODE]:()=>{n?.stateStore?.dispatch({type:ff.NORMAL_MODE})},[Ql.PIP_MINIMIZE]:()=>{n?.stateStore?.dispatch({type:ff.PIP_MINIMIZE})},[Ql.CLOSE_PLAYER]:()=>{n?.stateStore?.dispatch({type:Ql.CLOSE_PLAYER})},[ff.EXIT_PLAYBACK]:()=>{n?.stateStore?.dispatch({type:ff.EXIT_PLAYBACK})},[ff.CASTING_MINIMIZED]:t=>{const{localState:e}=t??{};n?.stateStore?.dispatch({type:ff.CASTING_MINIMIZED}),e?.updateCasting({isCastingNormalMode:!1})},[ff.NORMAL_MODE]:t=>{const{localState:e}=t??{};n?.stateStore?.dispatch({type:ff.NORMAL_MODE}),e?.updateCasting({isCastingNormalMode:!0})},[ff.PIP_MINIMIZE]:()=>{n?.stateStore?.dispatch({type:ff.PIP_MINIMIZE})},[ff.CASTING_TUTORIAL_SHOW]:()=>{n?.stateStore?.dispatch({type:ff.CASTING_TUTORIAL_SHOW})},[ff.CASTING_TUTORIAL_HIDE]:()=>{n?.stateStore?.dispatch({type:ff.CASTING_TUTORIAL_HIDE})},[ff.FEED_CHANGE_REQUEST]:t=>{n?.stateStore?.dispatch({type:Ul.AIRING.SET_SELECTED_FEED,value:t,generatedBy:Vl.USER})}};return Af(i,"UiSink")})(t,i,r),p=(t=>{const e={[Ql.CONTINUOUS_PLAY_NEXT]:e=>t.continuousPlay.next(e),[Ql.CONTINUOUS_PLAY_SHOW]:e=>t.continuousPlay.show(e),[Ql.CONTINUOUS_PLAY_HIDE]:()=>t.continuousPlay.hide()};return Af(e,"ContinuousPlaySink")})(t),h=(t=>{const e={[Ql.CUTL_PREV]:()=>t.catchUpToLive?.previousClip(),[Ql.CUTL_NEXT]:()=>t.catchUpToLive?.nextClip(),[Ql.CUTL_JUMP_TO_LIVE]:()=>t.catchUpToLive?.jumpToLive()};return Af(e,"CatchUpToLiveSink")})(t),m=(t=>{const e={[Ql.INTERSTITIAL_AD_CLICKED]:()=>t.interstitialAdClicked()};return Af(e,"AdSink")})(t),g=(t=>{const e={[Ql.SKIP_PROMO]:()=>t.skipPromo()};return Af(e,"PromoSink")})(t),v=(t=>{const e={[Ql.TOGGLE_MODAL]:e=>{const{overlayName:n,menuControllerPath:i,showModal:r=!1,menuController:o}=e,a=o||t.getQAElement?.(i);a?a.toggleModal({overlayName:n,showModal:r}):console.warn(`No controller found for overlay: ${n}`)},[Ql.MODAL_EVENT]:t=>{const{localState:e,modalName:n,type:i,currentViewName:r}=t,o={modalName:n,isOpen:i===Nf||i===Uf,currentViewName:r};e?.updateModalState(o)}};return Af(e,"ModalSink")})(i),f=(t=>{const e={[Ql.OVERLAY_EVENT]:t=>{const{localState:e,overlayName:n,type:i,suppressesProgressScrubPreview:r}=t,o={overlayName:n,isOpen:i===kf,...void 0!==r&&{suppressesProgressScrubPreview:r}};e?.updateOverlayState(o)},[Ql.EXPANDABLE_METADATA_CHANGE]:t=>{const{isExpanded:e,localState:n}=t;n?.updateExpandableMetadata(e)}};return Af(e,"OverlaySink")})(),b=(t=>{const e={[Ql.AUDIO_TRACK_SELECTION]:e=>{e?.track&&t?.audio?.setTrack(e.track,Vl.USER)}};return Af(e,"AudioSink")})(t),_=(t=>{const e={[Ql.GET_IMAGE_URL]:({imageId:e,resolve:n})=>{try{if(!t.imageApi)return void n(null);n(t.imageApi.getImage({imageId:e}))}catch(t){n(null)}}};return Af(e,"ImageSink")})(t),E=(t=>{const e={[Ql.DISPOSE]:()=>{}};return Af(e,"DisposeSink")})(),y=(t=>{const e={[Ql.MEDIA_ELEMENT_DISPATCH]:({value:e})=>{try{if(!t?.stateStore?.dispatch)return;t.stateStore.dispatch(e)}catch(t){console.error("Error dispatching to media element:",t)}},[Ql.MEDIA_ELEMENT_GET_STATE]:({resolve:e})=>{try{if(!t?.stateStore?.getState)return void e(null);e(t.stateStore.getState().toJS())}catch(t){console.error("Error getting media element state:",t),e(null)}}};return Af(e,"MediaElementSink")})(r);return S=[b,E,_,y,a,s,l,c,d,u,p,h,m,g,v,f],t=>{S.some((e=>{try{return e(t),!0}catch(t){return!1}}
452))||console.warn(`[MergeSinks] No sink handled command: ${t.type}`)};var S},Ff=t=>t?.getIn(["ui","controls"])?.toJS()??{},zf=(t=[],e="")=>{const n=!!document.fullscreenEnabled||!!document.webkitFullscreenEnabled||!!document.mozFullScreenEnabled||!!document.msFullscreenEnabled||"webkitEnterFullscreen"in HTMLVideoElement.prototype,i=t.includes(e);return n&&!i};class $f{constructor(){this.hostSubscriptions=new Map,this.volume={previousLevel:this.getPreviousLevelFromLocalStorage()},this.volumeBar={changing:!1,opened:!1},this.fullscreen={isAvailable:zf(),isEnabled:!1},this.playerMode={isMiniPlayer:!1,isCastingNormalMode:!0,isVerticalVideo:!1,useVerticalShareModal:!1,alwaysVisibleControls:!1},this.modalState={isAnyModalOpen:!1,hideShareAt:!1,forceHide:!1,modals:{}},this.progressBar={showLiveLabel:!1},this.autoplay={enabled:!1,playbackKey:""},this.textToSpeech={status:""},this.overlayState={areControlsVisible:!1,overlays:{},expandableMetadata:{isExpanded:!1}},this.adBadge={forceHide:!1},this.disabledControl={clicked:!1,type:null},this.takeoverState={isOpen:!1,overlayName:""},this.takeoverStateCallbacks=new Set,this.startupOverlays={},this.environment={isIOS:jv()},this.playPauseIndicator={showPlayIcon:!1},this.playPauseIndicatorCallback=null,this.startupOverlayCallbacks=new Set}hostConnected(){}hostDisconnected(){}subscribe(t,e){const n={host:t,selector:e,lastValue:e?e(this.getState()):void 0};return this.hostSubscriptions.set(t,n),t.addController(this),()=>{this.hostSubscriptions.delete(t)}}getState(){return{volume:this.volume,volumeBar:this.volumeBar,fullscreen:this.fullscreen,playerMode:this.playerMode,modalState:this.modalState,progressBar:this.progressBar,autoplay:this.autoplay,textToSpeech:this.textToSpeech,overlayState:this.overlayState,adBadge:this.adBadge,disabledControl:this.disabledControl,takeoverState:this.takeoverState,startupOverlays:this.startupOverlays,environment:this.environment,playPauseIndicator:this.playPauseIndicator}}notifyHosts(){const t=this.getState();this.hostSubscriptions.forEach((e=>{const{host:n,selector:i,lastValue:r}=e;if(!i)return void n.requestUpdate();const o=i(t);!Fh(r,o)&&(e.lastValue=o,n.requestUpdate())}))}updateVolumePreviousLevel(t){this.volume.previousLevel=t,this.notifyHosts()}updateVolumeBarChanging(t){this.volumeBar.changing=t,this.notifyHosts()}updateVolumeBarOpened(t){this.volumeBar.opened=t,this.notifyHosts()}onPlayPauseIndicatorRequest(t){return this.playPauseIndicatorCallback=t,()=>{this.playPauseIndicatorCallback===t&&(this.playPauseIndicatorCallback=null)}}updatePlayPauseIndicator(t){this.playPauseIndicator.showPlayIcon=t,this.playPauseIndicatorCallback?.(t),this.notifyHosts()}updateFullscreenAvailable(t){this.fullscreen.isAvailable=t,this.notifyHosts()}updateFullscreenEnabled(t){this.fullscreen.isEnabled=t,this.notifyHosts()}updateCasting(t){this.playerMode={...this.playerMode,isCastingNormalMode:t.isCastingNormalMode??this.playerMode.isCastingNormalMode},this.notifyHosts()}updateMiniPlayerMode(t){this.playerMode.isMiniPlayer=t,this.notifyHosts()}createModalStateEntry(t){this.modalState.modals[t]||(this.modalState.modals[t]={isOpen:!1,currentViewName:""})}updateModalState({modalName:t,isOpen:e,currentViewName:n}){this.modalState.modals[t]||this.createModalStateEntry(t),this.modalState.modals[t].isOpen=e,this.modalState.modals[t].currentViewName=n,this.modalState.isAnyModalOpen=Object.values(this.modalState.modals).some((t=>t.isOpen)),this.notifyHosts()}hasAnyOpenModal(t){return t.some((t=>!0===this.modalState.modals[t]?.isOpen))}updateHideShareAt(t){this.modalState.hideShareAt!==t&&(this.modalState.hideShareAt=t,this.notifyHosts())}updateProgressBarLiveLabel(t){this.progressBar.showLiveLabel=t,this.notifyHosts()}updateAutoplay(t,e){this.autoplay={enabled:t,playbackKey:e},this.notifyHosts()}updateTextToSpeech(t){this.textToSpeech.status=t,this.notifyHosts()}updateOverlayState({overlayName:t,isOpen:e,suppressesProgressScrubPreview:n}){this.overlayState.overlays[t]||(this.overlayState.overlays[t]={isOpen:!1});const i=this.overlayState.overlays[t];i.isOpen=e,void 0!==n?i.suppressesProgressScrubPreview=n:e||delete i.suppressesProgressScrubPreview,this.notifyHosts()}updateExpandableMetadata(t){this.overlayState.expandableMetadata.isExpanded!==t&&(this.overlayState.expandableMetadata.isExpanded=t,this.notifyHosts())}updateForceHideExperienceModals(t){this.modalState.forceHide!==t&&(this.modalState.forceHide=t,this.notifyHosts())}updateAdBadgeForceHide(t){this.adBadge.forceHide=t,this.notifyHosts()}updateDisabledControl(t,e){this.disabledControl.clicked=t,this.disabledControl.type=e,this.notifyHosts()}onTakeoverStateChange(t){return this.takeoverStateCallbacks.add(t),()=>{this.takeoverStateCallbacks.delete(t)}}onStartupOverlayChange(t){return this.startupOverlayCallbacks.add(t),()=>{this.startupOverlayCallbacks.delete(t)}}updateStartupOverlay(t,e){const n=this.startupOverlays[t],i={...n??{isOpen:!1,isVisible:!1,isPaused:!1,remainingTime:0,completed:!1,interrupted:!1},...e};this.startupOverlays[t]=i,this.startupOverlayCallbacks.forEach((e=>{try{e(t,i,n)}catch(t){console.error("[LocalStateController] Error in startup overlay callback:",t)}})),this.notifyHosts()}resetStartupOverlays(){this.startupOverlays={},this.notifyHosts()}updateTakeoverState(t,e){const n=this.takeoverState.isOpen;this.takeoverState.isOpen=t,this.takeoverState.overlayName=e,this.takeoverStateCallbacks.forEach((i=>{try{i(t,e,n)}catch(t){console.error("[LocalStateController] Error in takeover state callback:",t)}})),this.notifyHosts()}updateControlsOverlay(t){this.overlayState.areControlsVisible!==t&&(this.overlayState.areControlsVisible=t,this.notifyHosts())}updateIsVerticalVideo(t){this.playerMode.isVerticalVideo!==t&&(this.playerMode.isVerticalVideo=t,this.notifyHosts())}updateUseVerticalShareModal(t){this.playerMode.useVerticalShareModal!==t&&(this.playerMode.useVerticalShareModal=t,this.notifyHosts())}updateAlwaysVisibleControls(t){this.playerMode.alwaysVisibleControls!==t&&(this.playerMode.alwaysVisibleControls=t,this.notifyHosts())}getPreviousLevelFromLocalStorage(){try{const t=localStorage.getItem(xn),e=t?JSON.parse(t)?.volumeSettings:{};return e?.main?.level||50}catch{return 50}}reset(){this.volume.previousLevel=this.getPreviousLevelFromLocalStorage(),this.volumeBar.changing=!1,this.volumeBar.opened=!1,this.fullscreen.isAvailable=zf(),this.fullscreen.isEnabled=!1,this.playerMode.isMiniPlayer=!1,this.playerMode.isCastingNormalMode=!0,this.playerMode.isVerticalVideo=!1,this.playerMode.useVerticalShareModal=!1,this.playerMode.alwaysVisibleControls=!1,this.modalState.isAnyModalOpen=!1,this.modalState.hideShareAt=!1,this.modalState.forceHide=!1,this.modalState.modals={},this.progressBar.showLiveLabel=!1,this.autoplay={enabled:!1,playbackKey:""},this.textToSpeech.status="",this.overlayState.areControlsVisible=!1,this.overlayState.overlays={},this.overlayState.expandableMetadata.isExpanded=!1,this.adBadge.forceHide=!1,this.disabledControl.clicked=!1,this.disabledControl.type=null,this.takeoverState.isOpen=!1,this.takeoverState.overlayName="",this.startupOverlays={},this.playPauseIndicator.showPlayIcon=!1,this.notifyHosts()}}const Hf=Symbol("trackVisibleHost"),Gf=()=>t=>(t.prototype[Hf]=!0,t);var Yf=Object.defineProperty,jf=Object.getOwnPropertyDescriptor,Kf=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?jf(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&Yf(e,n,o),o};const Wf=({componentName:t,extension:e})=>{(function(t){if("undefined"==typeof window)return Promise.resolve();const e=p.S.coreUiRegisterOnce;if(e&&"function"==typeof e.then)return e;
452const n="function"==typeof t?t()?.toRegisterComponents?.():void 0,i=Promise.resolve(n).catch((t=>(p.S.coreUiRegisterOnce=void 0,console.error("[core-ui] Component registration failed:",t),Promise.resolve())));return p.S.coreUiRegisterOnce=i,i})(e).catch((()=>{console.error("[core-ui] Component registration failed in UiKit()")}));let n=class extends pt{constructor(){super(),this.initialized=!1,this.localState=new $f,this.sequencer=null,this.textDirection="ltr",this.attachShadow({mode:"open"})}connectedCallback(){super.connectedCallback(),nt(this.container)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.container)&&(X.delete(t),Z===t&&(Z=null),0===X.size&&function(){if(Q&&"undefined"!=typeof document){for(const t of J)document.removeEventListener(t,et,tt);Q=!1}}()),this.commandBus&&this.commandBus?.dispatchCommand(Ql.DISPOSE,{label:"Ui kit main component"}),this.removeAllListeners&&this.removeAllListeners(),this.stateStreamSubscription?.unsubscribe(),this.mediaPlayerApi?.stateStream&&this.mediaPlayerApi.stateStream.unsubscribeAll?.(),document.removeEventListener("fullscreenchange",this.onFullscreenChange),document.removeEventListener("mozfullscreenchange",this.onFullscreenChange),document.removeEventListener("webkitfullscreenchange",this.onFullscreenChange),document.removeEventListener("msfullscreenchange",this.onFullscreenChange)}initFullscreen(){this.onFullscreenChange=this.onFullscreenChange.bind(this),document.addEventListener("fullscreenchange",this.onFullscreenChange),document.addEventListener("mozfullscreenchange",this.onFullscreenChange),document.addEventListener("webkitfullscreenchange",this.onFullscreenChange),document.addEventListener("msfullscreenchange",this.onFullscreenChange)}onFullscreenChange(){const t=!!(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullscreen||document.msFullscreenElement);this.localState?.updateFullscreenEnabled?.(t)}initialize({mediaPlayer:t,mediaElement:n,theme:i,dictionary:r,container:o,template:a,featureFlags:s,fullscreenTarget:l,localization:c}){if(this.initialized)return void console.info("\n\t\t\t\t\t[core-ui] Core UI has already been initialized.\n\n\t\t\t\t\tplease run\n\n\t\t\t\t\tuiRef.requestUpdate();\n\n\t\t\t\t\tawait uiRef.updateComplete;\n\n\t\t\t\t\tto re-render the ui with the most up to date state for this instance of core-ui.\n\t\t\t\t");const{mediaPlayerApi:d}=t;this.mediaPlayerApi=d;const u=new St,{on:p,off:h,emit:m,removeAllListeners:g}=u;var v;this.dictionary={translate:It(r)},this.on=p,this.off=h,this.removeAllListeners=g,this.emit=m.bind(this),this.mediaElement=n,this.container=this.registerContainer(o),nt(this.container),this.fullscreenTarget=l,this.textDirection=c?.textDirection||"ltr",this.region=c?.region,this.setAttribute("dir",this.textDirection),this.template=a,this.uiKit=this,this.stateStream$=(v=this.mediaPlayerApi?.stateStream,v.combine([df,Av.PlaybackState,Av.PlayerPlaybackSessionState,cf,Tv,Av.TimelineState,Av.MediaClientState,Av.CaptionsState,Av.ContinuousPlayState,Qh,Av.VolumeState,Av.CastingState,Av.AudioState,Av.OverlaysState,Av.SkipOverlayState,Av.ErrorOverlayState,Av.ClickToPlayOverlayState,Av.UiModeState,lf,Ff],((t,e,n,i,r,o,a,s,l,c,d,u,p,h,m,g,v,f,b,_)=>{const{timeline:{seekableDurationMs:E,playheadPositionMs:y,zeroPositionProgramDateTimeMs:S,startPositionMs:T,programDurationMs:C}}=o,w=S+y,A=S+E,I=S+T,O=(0!==C?C:E)/1e3,R=E/1e3,x=(L=s.tracks,L?.map((({name:t,language:e})=>({name:t,language:e}))));var L;const k=!!(x&&x.length>0),P=c?.current?.playbackSessionCreationParameters,D=P?.mediaPreferences?.timedText?.languagePriorityList,N=s.preferences?.appearance,M=Nl(),U=P?.mediaPreferences?.timedText?.appearance,B=(t=>{let e;for(const n of t){if(null==n)continue;const t=kl(n);0!==Object.keys(t).length&&(e=Dl(e,t))}return(t=>{if(null==t||"object"!=typeof t)return t;const{fontMappingOverride:e,...n}=t;return null!=e&&"object"==typeof e&&!Array.isArray(e)&&ci(e)?Object.keys(n).length>0?n:void 0:t})(e)})([U,M,N]),V=P?.playbackParameters?.playbackId??null,F=c?.current?.mediaParams?.playbackLifecycle===nc.CATCH_UP_TO_LIVE,z=!!c?.current?.metadata?.catchUpToLive;return{isPretune:t,isCatchUpToLiveLifeCycle:F,catchUpToLiveData:z,supp
452ortsCatchUpToLive:z||F,clickToPlayOverlay:v,playback:e,playbackSession:n,interstitials:i,streamDetails:r,timeline:{timeline:{...o.timeline,currentTimeAsPdt:w,endPositionPdtMs:A,startPositionPdtMs:I,plannedDurationSecs:O,endPositionSecs:R},scrubResult:o.scrubResult,markers:o.markers},mediaClient:a,mediaPreferences:{languagePriorityList:D,timedTextAppearance:B},playbackCriteria:c,playbackId:V,captions:{...s,areAvailable:k,availableLanguages:x},audio:p,continuousPlay:l,controls:_??{},volume:d,casting:u,playerMode:f??{isCastingNormalMode:!0},errorOverlay:g,overlays:h,skipOverlay:m,isUiLegacyControlsOverlayVisible:h?.controls?.isOverlayVisible??!1,audioSubtitleDrawerOpen:b?.isOpen??!1}}))),this.stateStreamSubscription=this.stateStream$?.subscribe((t=>{this.latestUiState=t}));const f=s?.startOverOnTrackSelection;this.featureFlags={...s||{},..."boolean"==typeof f?{startOverOnTrackSelection:{enabled:f}}:{}};const b=e?.().toThemeConfiguration();this.theme=i||vf.DEFAULT,this.breakpoints=b?.breakpoints||new Map,this.themeTokens=b?.themes||{};const _=e?.().toCommandBusConfig?.(d,(()=>this.latestUiState),this.dictionary,this.mediaElement,this.uiKit,this.container);_&&(_.emit=this.emit),this.commandBus=new Sf(_),this.commandBus.use((t=>(e,n)=>{if(!e)return void n(e);const{type:i,payload:r}=e;t&&"function"==typeof t&&t(i,r),n(e)})?.(this.emit));const E=localStorage.getItem("enableQaMode"),y="true"===E?Tn.INFO:Tn.SILENT;this.logger=An(y),"true"===E&&this.commandBus.use(((t={})=>{const{level:e="info"}=t;return(t,n)=>{(console[e]||console.log)(`[Core-UI Command Bus] Processing ui command: ${t.type}`,t.payload),n(t)}})());const S=e?.().toStartupSequenceConfig?.();S&&!this.sequencer&&(this.sequencer=new gf({addController:t=>this.addController(t),removeController:t=>this.removeController(t),requestUpdate:()=>this.requestUpdate(),updateComplete:this.updateComplete,stateStream$:this.stateStream$,localState:this.localState,logger:this.logger},S)),this.initFullscreen(),this.initialized=!0,this.requestUpdate()}getVisibleTrackedElements(){return(t=>{const e=new Map,n=t=>{const i=t.shadowRoot;i&&n(i),t.querySelectorAll("*").forEach((t=>{if((t=>!0===t[Hf]&&"function"==typeof t.getTrackingVisibility)(t)){const n=t.getTrackingVisibility();n&&!e.has(n.elementId)&&e.set(n.elementId,n)}t.shadowRoot&&n(t.shadowRoot)}))};return t&&n(t),[...e.values()]})(this)}get currentlyVisible(){return this.getVisibleTrackedElements()}getQAElement(t,e){const{tagName:n,path:i}=this.resolveQaReference(t,e);if("container"===n)return i?af(this.container,i):this.container;const r=this.findQaElementHost(n);if(!r)return;const o=r.getQAElements?.();return o?i?af(o,i):o:void 0}resolveQaReference(t,e){if(e)return{tagName:t,path:e};if(!t.includes("."))return{tagName:t};const[n,...i]=t.split(".");return{tagName:n,path:i.join(".")}}getQaSearchRoots(){const t=[this.renderRoot,this,this.container,document].filter((t=>!!t&&"function"==typeof t.querySelector));return t.filter(((e,n)=>t.indexOf(e)===n))}findQaElementHost(t){const e=this.getQaSearchRoots().flatMap((e=>this.findQaElementHostsInRoot(e,t)));if(0!==e.length)return e.find((t=>t.getClientRects().length>0))??e[0]}findQaElementHostsInRoot(t,e){const n=Array.from(t.querySelectorAll(e));for(const i of t.querySelectorAll("*")){const t=i.shadowRoot;t&&n.push(...this.findQaElementHostsInRoot(t,e))}return n}registerContainer(t){return"string"==typeof t?document.querySelector(t):t}renderInternal(){return p.x` ${this.template?this.template():p.x`<slot></slot>`} `}render(){return this.initialized&&this.mediaPlayerApi?this.renderInternal():p.E}};n.styles=[Tt],Kf([A({context:O})],n.prototype,"mediaElement",2),Kf([A({context:R})],n.prototype,"dictionary",2),Kf([A({context:x})],n.prototype,"container",2),Kf([A({context:L})],n.prototype,"emit",2),Kf([A({context:k})],n.prototype,"theme",2),Kf([A({context:P})],n.prototype,"breakpoints",2),Kf([A({context:D})],n.prototype,"uiKit",2),Kf([A({context:N})],n.prototype,"themeTokens",2),Kf([A({context:M})],n.prototype,"commandBus",2),Kf([A({context:U})],n.prototype,"stateStream$",2),Kf([A({context:B})],n.prototype,"featureFlags",2),Kf([A({context:V})],n.prototype,"localState",2),Kf([A({context:F})],n.prototype,"logger",2),Kf([A({context:"sequencer-context"})],n.prototype,"sequencer",2),Kf([A({context:z})],n.prototype,"fullscreenTarget",2),Kf([A({context:$})],n.prototype,"textDirection",2),n=Kf([wt],n),n.define(t)},{entries:qf,setPrototypeOf:Xf,isFrozen:Zf,getPrototypeOf:Qf,getOwnPropertyDescriptor:Jf}=Object;let{freeze:tb,seal:eb,create:nb}=Object,{apply:ib,construct:rb}="undefined"!=typeof Reflect&&Reflect;tb||(tb=function(t){return t}),eb||(eb=function(t){return t}),ib||(ib=function(t,e,n){return t.apply(e,n)}),rb||(rb=function(t,e){return new t(...e)});const ob=Eb(Array.prototype.forEach),ab=Eb(Array.prototype.lastIndexOf),sb=Eb(Array.prototype.pop),lb=Eb(Array.prototype.push),cb=Eb(Array.prototype.splice),db=Eb(String.prototype.toLowerCase),ub=Eb(String.prototype.toString),pb=Eb(String.prototype.match),hb=Eb(String.prototype.replace),mb=Eb(String.prototype.indexOf),gb=Eb(String.prototype.trim),vb=Eb(Object.prototype.hasOwnProperty),fb=Eb(RegExp.prototype.test),bb=(_b=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return rb(_b,e)});var _b;function Eb(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ib(t,e,i)}}function yb(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:db;Xf&&Xf(t,null);let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(Zf(e)||(e[i]=t),r=t)}t[r]=!0}return t}function Sb(t){for(let e=0;e<t.length;e++)vb(t,e)||(t[e]=null);return t}function Tb(t){const e=nb(null);for(const[n,i]of qf(t))vb(t,n)&&(Array.isArray(i)?e[n]=Sb(i):i&&"object"==typeof i&&i.constructor===Object?e[n]=Tb(i):e[n]=i);return e}function Cb(t,e){for(;null!==t;){const n=Jf(t,e);if(n){if(n.get)return Eb(n.get);if("function"==typeof n.value)return Eb(n.value)}t=Qf(t)}return function(){return null}}const wb=tb(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ab=tb(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ib=tb(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ob=tb(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Rb=tb(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xb=tb(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lb=tb(["#text"]),kb=tb(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
452spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pb=tb(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Db=tb(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Nb=tb(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mb=eb(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ub=eb(/<%[\w\W]*|[\w\W]*%>/gm),Bb=eb(/\$\{[\w\W]*/gm),Vb=eb(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fb=eb(/^aria-[\-\w]+$/),zb=eb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$b=eb(/^(?:\w+script|data):/i),Hb=eb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gb=eb(/^html$/i),Yb=eb(/^[a-z][.\w]*(-[.\w]+)+$/i);var jb=Object.freeze({__proto__:null,ARIA_ATTR:Fb,ATTR_WHITESPACE:Hb,CUSTOM_ELEMENT:Yb,DATA_ATTR:Vb,DOCTYPE_NAME:Gb,ERB_EXPR:Ub,IS_ALLOWED_URI:zb,IS_SCRIPT_OR_DATA:$b,MUSTACHE_EXPR:Mb,TMPLIT_EXPR:Bb});var Kb=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=e=>t(e);
vendor: 13,801 bytes, lines 452-492
452if(n.version="3.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let{document:i}=e;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:m}=e,g=c.prototype,v=Cb(g,"cloneNode"),f=Cb(g,"remove"),b=Cb(g,"nextSibling"),_=Cb(g,"childNodes"),E=Cb(g,"parentNode");if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let y,S="";const{implementation:T,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:A}=i,{importNode:I}=r;let O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof qf&&"function"==typeof E&&T&&void 0!==T.createHTMLDocument;const{MUSTACHE_EXPR:R,ERB_EXPR:x,TMPLIT_EXPR:L,DATA_ATTR:k,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:M}=jb;let{IS_ALLOWED_URI:U}=jb,B=null;const V=yb({},[...wb,...Ab,...Ib,...Rb,...Lb]);let F=null;const z=yb({},[...kb,...Pb,...Db,...Nb]);let $=Object.seal(nb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,G=null,Y=!0,j=!0,K=!1,W=!0,q=!1,X=!0,Z=!1,Q=!1,J=!1,tt=!1,et=!1,nt=!1,it=!0,rt=!1,ot=!0,at=!1,st={},lt=null;const ct=yb({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let dt=null;const ut=yb({},["audio","video","img","source","image","track"]);let pt=null;const ht=yb({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),mt="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let ft=vt,bt=!1,_t=null;const Et=yb({},[mt,gt,vt],ub);let yt=yb({},["mi","mo","mn","ms","mtext"]),St=yb({},["annotation-xml"]);const Tt=yb({},["title","style","font","a","script"]);let Ct=null;const wt=["application/xhtml+xml","text/html"];let At=null,It=null;const Ot=i.createElement("form"),Rt=function(t){return t instanceof RegExp||t instanceof Function},xt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!It||It!==t){if(t&&"object"==typeof t||(t={}),t=Tb(t),Ct=-1===wt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,At="application/xhtml+xml"===Ct?ub:db,B=vb(t,"ALLOWED_TAGS")?yb({},t.ALLOWED_TAGS,At):V,F=vb(t,"ALLOWED_ATTR")?yb({},t.ALLOWED_ATTR,At):z,_t=vb(t,"ALLOWED_NAMESPACES")?yb({},t.ALLOWED_NAMESPACES,ub):Et,pt=vb(t,"ADD_URI_SAFE_ATTR")?yb(Tb(ht),t.ADD_URI_SAFE_ATTR,At):ht,dt=vb(t,"ADD_DATA_URI_TAGS")?yb(Tb(ut),t.ADD_DATA_URI_TAGS,At):ut,lt=vb(t,"FORBID_CONTENTS")?yb({},t.FORBID_CONTENTS,At):ct,H=vb(t,"FORBID_TAGS")?yb({},t.FORBID_TAGS,At):Tb({}),G=vb(t,"FORBID_ATTR")?yb({},t.FORBID_ATTR,At):Tb({}),st=!!vb(t,"USE_PROFILES")&&t.USE_PROFILES,Y=!1!==t.ALLOW_ARIA_ATTR,j=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,W=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,q=t.SAFE_FOR_TEMPLATES||!1,X=!1!==t.SAFE_FOR_XML,Z=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,nt=t.RETURN_TRUSTED_TYPE||!1,J=t.FORCE_BODY||!1,it=!1!==t.SANITIZE_DOM,rt=t.SANITIZE_NAMED_PROPS||!1,ot=!1!==t.KEEP_CONTENT,at=t.IN_PLACE||!1,U=t.ALLOWED_URI_REGEXP||zb,ft=t.NAMESPACE||vt,yt=t.MATHML_TEXT_INTEGRATION_POINTS||yt,St=t.HTML_INTEGRATION_POINTS||St,$=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Rt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Rt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),q&&(j=!1),et&&(tt=!0),st&&(B=yb({},Lb),F=[],!0===st.html&&(yb(B,wb),yb(F,kb)),!0===st.svg&&(yb(B,Ab),yb(F,Pb),yb(F,Nb)),!0===st.svgFilters&&(yb(B,Ib),yb(F,Pb),yb(F,Nb)),!0===st.mathMl&&(yb(B,Rb),yb(F,Db),yb(F,Nb))),t.ADD_TAGS&&(B===V&&(B=Tb(B)),yb(B,t.ADD_TAGS,At)),t.ADD_ATTR&&(F===z&&(F=Tb(F)),yb(F,t.ADD_ATTR,At)),t.ADD_URI_SAFE_ATTR&&yb(pt,t.ADD_URI_SAFE_ATTR,At),t.FORBID_CONTENTS&&(lt===ct&&(lt=Tb(lt)),yb(lt,t.FORBID_CONTENTS,At)),ot&&(B["#text"]=!0),Z&&yb(B,["html","head","body"]),B.table&&(yb(B,["tbody"]),delete H.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw bb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw bb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=t.TRUSTED_TYPES_POLICY,S=y.createHTML("")}else void 0===y&&(y=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(m,o)),null!==y&&"string"==typeof S&&(S=y.createHTML(""));tb&&tb(t),It=t}},Lt=yb({},[...Ab,...Ib,...Ob]),kt=yb({},[...Rb,...xb]),Pt=function(t){lb(n.removed,{element:t});try{E(t).removeChild(t)}catch(e){f(t)}},Dt=function(t,e){try{lb(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){lb(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Pt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Nt=function(t){let e=null,n=null;if(J)t="<remove></remove>"+t;else{const e=pb(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ct&&ft===vt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=y?y.createHTML(t):t;if(ft===vt)try{e=(new h).parseFromString(r,Ct)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(ft,"template",null);try{e.documentElement.innerHTML=bt?S:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ft===vt?A.call(e,Z?"html":"body")[0]:Z?e.documentElement:o},Mt=function(t){return C.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ut=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof u)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Bt=function(t){return"function"==typeof l&&t instanceof l};function Vt(t,e,i){ob(t,(t=>{t.call(n,e,i,It)}))}const Ft=function(t){let e=null;if(Vt(O.beforeSanitizeElements,t,null),Ut(t))return Pt(t),!0;const i=At(t.nodeName);if(Vt(O.uponSanitizeElement,t,{tagName:i,allowedTags:B}),X&&t.hasChildNodes()&&!Bt(t.firstElementChild)&&fb(/<[/\w!]/g,t.innerHTML)&&fb(/<[/\w!]/g,t.textContent))return Pt(t),!0;if(7===t.nodeType)return Pt(t),!0;if(X&&8===t.nodeType&&fb(/<[/\w]/g,t.data))return Pt(t),!0;if(!B[i]||H[i]){if(!H[i]&&$t(i)){if($.tagNameCheck instanceof RegExp&&fb($.tagNameCheck,i))return!1;if($.tagNameCheck instanceof Function&&$.tagNameCheck(i))return!1}if(ot&&!lt[i]){const e=E(t)||t.parentNode,n=_(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i){const r=v(n[i],!0);r.__removalCount=(t.__removalCount||0)+1,e.insertBefore(r,b(t))}}return Pt(t),!0}return t instanceof c&&!function(t){let e=E(t);e&&e.tagName||(e={namespaceURI:ft,tagName:"template"});const n=db(t.tagName),i=db(e.tagName);return!!_t[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===vt?"svg"===n:e.namespaceURI===mt?"svg"===n&&("annotation-xml"===i||yt[i]):Boolean(Lt[n]):t.namespaceURI===mt?e.namespaceURI===vt?"math"===n:e.namespaceURI===gt?"math"===n&&St[i]:Boolean(kt[n]):t.namespaceURI===vt?!(e.namespaceURI===gt&&!St[i])&&!(e.namespaceURI===mt&&!yt[i])&&!kt[n]&&(Tt[n]||!Lt[n]):!("application/xhtml+xml"!==Ct||!_t[t.namespaceURI]))}(t)?(Pt(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!fb(/<\/no(script|embed|frames)/i,t.innerHTML)?(q&&3===t.nodeType&&(e=t.textContent,ob([R,x,L],(t=>{e=hb(e,t," ")})),t.textContent!==e&&(lb(n.removed,{element:t.cloneNode()}),t.textContent=e)),Vt(O.afterSanitizeElements,t,null),!1):(Pt(t),!0)},zt=function(t,e,n){if(it&&("id"===e||"name"===e)&&(n in i||n in Ot))return!1;if(j&&!G[e]&&fb(k,e));else if(Y&&fb(P,e));else if(!F[e]||G[e]){if(!($t(t)&&($.tagNameCheck instanceof RegExp&&fb($.tagNameCheck,t)||$.tagNameCheck instanceof Function&&$.tagNameCheck(t))&&($.attributeNameCheck instanceof RegExp&&fb($.attributeNameCheck,e)||$.attributeNameCheck instanceof Function&&$.attributeNameCheck(e))||"is"===e&&$.allowCustomizedBuiltInElements&&($.tagNameCheck instanceof RegExp&&fb($.tagNameCheck,n)||$.tagNameCheck instanceof Function&&$.tagNameCheck(n))))return!1}else if(pt[e]);else if(fb(U,hb(n,N,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==mb(n,"data:")||!dt[t])if(K&&!fb(D,hb(n,N,"")));else if(n)return!1;return!0},$t=function(t){return"annotation-xml"!==t&&pb(t,M)},Ht=function(t){Vt(O.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Ut(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],{name:a,namespaceURI:s,value:l}=o,c=At(a),d=l;let u="value"===a?d:gb(d);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Vt(O.uponSanitizeAttribute,t,i),u=i.attrValue,!rt||"id"!==c&&"name"!==c||(Dt(a,t),u="user-content-"+u),X&&fb(/((--!?|])>)|<\/(style|title)/i,u)){Dt(a,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Dt(a,t);continue}if(!W&&fb(/\/>/i,u)){Dt(a,t);continue}q&&ob([R,x,L],(t=>{u=hb(u,t," ")}));const p=At(t.nodeName);if(zt(p,c,u)){if(y&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(p,c)){case"TrustedHTML":u=y.createHTML(u);break;case"TrustedScriptURL":u=y.createScriptURL(u)}if(u!==d)try{s?t.setAttributeNS(s,a,u):t.setAttribute(a,u),Ut(t)?Pt(t):sb(n.removed)}catch(e){Dt(a,t)}}else Dt(a,t)}Vt(O.afterSanitizeAttributes,t,null)},Gt=function t(e){let n=null;const i=Mt(e);for(Vt(O.beforeSanitizeShadowDOM,e,null);n=i.nextNode();)Vt(O.uponSanitizeShadowNode,n,null),Ft(n),Ht(n),n.content instanceof a&&t(n.content);Vt(O.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,c=null;if(bt=!t,bt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Bt(t)){if("function"!=typeof t.toString)throw bb("toString is not a function");if("string"!=typeof(t=t.toString()))throw bb("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Q||xt(e),n.removed=[],"string"==typeof t&&(at=!1),at){if(t.nodeName){const e=At(t.nodeName);if(!B[e]||H[e])throw bb("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)i=Nt("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!tt&&!q&&!Z&&-1===t.indexOf("<"))return y&&nt?y.createHTML(t):t;if(i=Nt(t),!i)return tt?null:nt?S:""}i&&J&&Pt(i.firstChild);const d=Mt(at?t:i);for(;s=d.nextNode();)Ft(s),Ht(s),s.content instanceof a&&Gt(s.content);if(at)return t;if(tt){if(et)for(c=w.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(F.shadowroot||F.shadowrootmode)&&(c=I.call(r,c,!0)),c}let u=Z?i.outerHTML:i.innerHTML;return Z&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&fb(Gb,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),q&&ob([R,x,L],(t=>{u=hb(u,t," ")})),y&&nt?y.createHTML(u):u},n.setConfig=function(){xt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){It=null,Q=!1},n.isValidAttribute=function(t,e,n){It||xt({});const i=At(t),r=At(e);return zt(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&lb(O[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=ab(O[t],e);return-1===n?void 0:cb(O[t],n,1)[0]}return sb(O[t])},n.removeHooks=function(t){O[t]=[]},n.removeAllHooks=function(){O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Wb=t=>{if("string"!=typeof t)return p.i``;const e=Kb.sanitize(t);return p.i`${(0,p.r)(e)}`},qb=p.i`
453	:host {
454		--opacity-0: 0;
455		--opacity-1: 1;
456		--fade-in--animation: fadeIn 0.6s cubic-bezier(0.76, 0, 0.24, 1);
457		--fade-out--animation: fadeOut 0.6s cubic-bezier(0.76, 0, 0.24, 1);
458		--fade-in-slide-up--animation: fadeInSlideUp 400ms
459			cubic-bezier(0, 0, 0.58, 1);
460	}
461
462	.hidden {
463		opacity: var(--opacity-0);
464		visibility: hidden;
465	}
466
467	.visible {
468		opacity: var(--opacity-1);
469		visibility: visible;
470	}
471
472	@keyframes fadeIn {
473		from {
474			opacity: var(--opacity-0);
475		}
476		to {
477			opacity: var(--opacity-1);
478		}
479	}
480
481	@keyframes fadeOut {
482		from {
483			opacity: var(--opacity-1);
484		}
485		to {
486			opacity: var(--opacity-0);
487		}
488	}
489
490	@keyframes fadeInSlideUp {
491		from {
492			opacity: var(--opacity-0);
493			translate: 0 30px;
494		}
495		to {
496			opacity: var(--opacity-1);
497			translate: 0 0;
498		}
499	}
500
501	.fadeInSlideUp {
502		animation: var(--fade-in-slide-up--animation);
503	}
504
505	.fadeIn {
506		animation: var(--fade-in--animation);
507	}
508
509	.fadeOut {
510		animation: var(--fade-out--animation);
511	}
512
513	@keyframes BTMPButtonScale {
514		0% {
515			transform: scale(0.5);
516		}
517
518		100% {
519			transform: scale(1);
520		}
521	}
522
523	@-webkit-keyframes BTMPButtonScale {
524		0% {
525			-webkit-transform: scale(0.5);
526		}
527
528		100% {
529			-webkit-transform: scale(1);
530		}
531	}
532
533	@-moz-keyframes BTMPButtonScale {
534		0% {
535			-moz-transform: scale(0.5);
536		}
537
538		100% {
539			-moz-transform: scale(1);
540		}
541	}
542
543	@keyframes BTMPPreviewImage {
544		0% {
545			transform: scale(0.4);
546		}
547
548		100% {
549			transform: scale(1);
550		}
551	}
552
553	@-webkit-keyframes BTMPPreviewImage {
554		0% {
555			-webkit-transform: scale(0.4);
556		}
557
558		100% {
559			-webkit-transform: scale(1);
560		}
561	}
562
563	@-moz-keyframes BTMPPreviewImage {
564		0% {
565			-moz-transform: scale(0.4);
566		}
567
568		100% {
569			-moz-transform: scale(1);
570		}
571	}
572
573	@keyframes BTMPPreviewImageMini {
574		0% {
575			transform: scale(0.1);
576		}
577
578		100% {
579			transform: scale(0.5);
580		}
581	}
582
583	@-webkit-keyframes BTMPPreviewImageMini {
584		0% {
585			-webkit-transform: scale(0.1);
586		}
587
588		100% {
589			-webkit-transform: scale(0.5);
590		}
591	}
592
593	@-moz-keyframes BTMPPreviewImageMini {
594		0% {
595			-moz-transform: scale(0.1);
596		}
597
598		100% {
599			-moz-transform: scale(0.5);
600		}
601	}
602
603	@keyframes spin {
604		from {
605			transform: rotate(0deg);
606		}
607		to {
608			transform: rotate(360deg);
609		}
610	}
611
612	@keyframes timelineLoader {
613		0% {
614			transform: scaleX(0.01);
615			opacity: 0;
616			animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
617		}
618		27.3% {
619			transform: scaleX(0.01);
620			opacity: 1;
621			animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
622		}
623		54.6% {
624			transform: scaleX(1);
625			opacity: 1;
626		}
627		72.8% {
628			transform: scaleX(1);
629			opacity: 1;
630			animation-timing-function: ease-in-out;
631		}
632		100% {
633			transform: scaleX(1);
634			opacity: 0;
635		}
636	}
637`,Xb=new Map,Zb=new Map;function Qb(t){if("undefined"==typeof window)return Promise.resolve();if(customElements.get(t))return Promise.resolve();const e=Zb.get(t);if(e)return e;const n=Xb.get(t);if(!n)return Promise.resolve();const i=n().then((e=>{e&&!customElements.get(t)&&customElements.define(t,e)}));return Zb.set(t,i),i}function Jb(t,e){var n;return(n=class extends t{}).brandConfig=e,n}var t_=(t=>(t.FROMLEFT="from-left",t.FROMBOTTOM="from-bottom",t))(t_||{}),e_=(t=>(t.CONTAINER="container",t.PLAY="play",t.PAUSE="pause",t.TOGGLE_PLAY_PAUSE_PLAY="toggle-play-pause.playButton",t.TOGGLE_PLAY_PAUSE_PAUSE="toggle-play-pause.pauseButton",t.QUICK_FAST_FORWARD="quick-fast-forward.quickFastForward",t.QUICK_REWIND="quick-rewind.quickRewind",t.TOGGLE_MUTE_MUTED="toggle-mute-button.muted",t.TOGGLE_MUTE_UNMUTED="toggle-mute-button.unmuted",t.TOGGLE_MUTE_AUDIO_CONTROL_CONTAINER="toggle-mute-button.audioControlContainer",t.VOLUME_BAR="volume-bar",t.EXIT_FULLSCREEN="exit-fullscreen",t.REQUEST_FULLSCREEN="request-fullscreen",t.SHARE_CONTROL="share-control",t.SHARE_CONTROL_MENU_CONTROLLER="share-control.menuController",t.SETTINGS_CONTROL="settings-control",t.SETTINGS_CONTROL_MENU_CONTROLLER="settings-control.menuController",t.ALTERNATIVE_BROADCAST_CONTROL="alternative-broadcast-control",t.ALTERNATIVE_BROADCAST_CONTROL_MENU_CONTROLLER="alternative-broadcast-control.menuController",t.RESTART_PLAYBACK="restart-playback.restartPlayback",t.PROGRESS_BAR_PRE_TAIL_END_NON_SEEKABLE_RANGE="progress-bar.preTailEndNonSeekableRange",t.PROGRESS_BAR_POST_LIVE_EDGE_NON_SEEKABLE_RANGE="progress-bar.postLiveEdgeNonSeekableRange",t.PROGRESS_BAR_SEEKABLE_RANGE="progress-bar.seekableRange",t.PROGRESS_BAR_LIVE_LABEL="progress-bar.liveLabel",t.PROGRESS_BAR_PREVIEW_TIME="progress-bar-preview.previewTime",t.PROGRESS_BAR_PREVIEW_LIVE_EDGE_LABEL="progress-bar-preview.liveEdgeLabel",t.UP_NEXT_LITE_SERIES_TITLE="up-next-lite-v1.seriesTitle",t.UP_NEXT_LITE_EPISODE_TITLE="up-next-lite-v1.episodeTitle",t.UP_NEXT_LITE_PLAY_BUTTON="up-next-lite-v1.playButton",t.LIVE_CONTROL_TEXT_WITH_DOT="live-control.textWithDot",t.MENU_HEADER_MENU_CONTROLLER="menu-header.menuController",t))(e_||{});function n_(t){return t.constructor.brandConfig??{}}var i_=Object.defineProperty;class r_{constructor(t=0,e=!0,n=(()=>{})){this.timeoutDuration=t,this.restartFromBeginning=e,this.callback=n,this.timeoutId=null,this.elapsed=0,this.startTime=null,this.abortController=null,this.signalAbortListener=null,this.signal=null,this.abortControllerListener=null,this.paused=!1,this.activeTimeoutDuration=t}clearTimeoutId(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}pauseTimeout(){this.timeoutId&&(this.clearTimeoutId(),this.startTime&&(this.elapsed+=Date.now()-this.startTime,this.startTime=null)),this.paused=!0}startTimeout(t=null,e){this.pauseTimeout(),this.cleanupEventListeners(),this.activeTimeoutDuration=null!==t?t:this.timeoutDuration;let n=this.activeTimeoutDuration;return!this.restartFromBeginning&&this.elapsed>0?n=Math.max(n-this.elapsed,0):this.elapsed=0,this.startTime=Date.now(),this.paused=!1,this.abortController=new AbortController,e&&(this.signal=e,this.signalAbortListener=()=>this.clearTimeout(),this.signal.addEventListener("abort",this.signalAbortListener)),new Promise((t=>{this.timeoutId=setTimeout((()=>{this.callback(),this.elapsed=0,t()}),n),this.abortControllerListener=()=>{this.clearTimeoutId()},this.abortController?.signal.addEventListener("abort",this.abortControllerListener)}))}resumeTimeout(){if(this.paused){const t=this.restartFromBeginning;this.restartFromBeginning=!1;const e=this.startTimeout();return this.restartFromBeginning=t,e}return Promise.resolve()}clearTimeout(){this.clearTimeoutId(),this.cleanupEventListeners(),this.paused=!1,this.elapsed=0}cleanupEventListeners(){this.signalAbortListener&&(this.signal.removeEventListener("abort",this.signalAbortListener),this.signal=null,this.signalAbortListener=null),this.abortController&&this.abortControllerListener&&(this.abortController.signal.removeEventListener("abort",this.abortControllerListener),this.abortControllerListener=null),this.abortController?.abort(),this.abortController=null}get remaining(){if(this.paused)return this.activeTimeoutDuration-this.elapsed;if(null!==this.timeoutId&&null!==this.startTime){const t=Date.now()-this.startTime;return Math.max(0,this.activeTimeoutDuration-this.elapsed-t)}return 0}setTimeoutDuration(t){this.timeoutDuration=t,this.activeTimeoutDuration=t}setRestartFromBeginning(t){this.restartFromBeginning=t}setCallback(t){this.callback=t}}class o_{constructor(t,e,{restartFromBeginning:n=!0}={}){this.updateInterval=null,(this.host=t).addController(this);const i=this.host.timeoutDuration||0;this.timeoutController=new r_(i,n,(()=>{e(),this.host.updateVisibility&&this.host.updateVisibility(),this.host.requestUpdate()}))}startUpdateInterval(){null===this.updateInterval&&this.host.updateOnRemainingTime&&(this.updateInterval=window.setInterval((()=>{this.host.requestUpdate()}),100))}clearUpdateInterval(){null!==this.updateInterval&&(window.clearInterval(this.updateInterval),this.updateInterval=null)}startTimeout(t=null,e){const n=this.timeoutController.startTimeout(t,e);
637return this.startUpdateInterval(),n}pauseTimeout(){this.timeoutController.pauseTimeout(),this.clearUpdateInterval()}resumeTimeout(){const t=this.timeoutController.resumeTimeout();return this.startUpdateInterval(),t}clearTimeout(){this.timeoutController.clearTimeout(),this.clearUpdateInterval()}get paused(){return this.timeoutController.paused}get remaining(){return this.timeoutController.remaining}evaluateDismissals(){if(!this.host.getTimeoutDismissals)return;const t=this.host.getTimeoutDismissals();(t&&Array.isArray(t)?t.some((t=>t)):t)?this.pauseTimeout():this.resumeTimeout()}hostConnected(){this.evaluateDismissals()}hostDisconnected(){this.clearTimeout(),this.clearUpdateInterval()}hostUpdate(){void 0!==this.host.timeoutDuration&&this.timeoutController.setTimeoutDuration(this.host.timeoutDuration),this.evaluateDismissals()}}function a_(t){const e=t=>e=>{class n extends e{constructor(...e){super(...e),this.updateOnRemainingTime=t.updateOnRemainingTime,this.timeoutHostManager=new o_(this,(()=>{const t=new CustomEvent("timeout-complete",{bubbles:!0,composed:!0});this.dispatchEvent(t)}),{restartFromBeginning:this.restartFromBeginning})}startTimeout(t,e){return this.timeoutHostManager.startTimeout(t??null,e)}pauseTimeout(){this.timeoutHostManager.pauseTimeout()}resumeTimeout(){return this.timeoutHostManager.resumeTimeout()}clearTimeout(){this.timeoutHostManager.clearTimeout()}get isTimeoutPaused(){return this.timeoutHostManager.paused}get remainingTime(){return this.timeoutHostManager.remaining}}return((t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);o&&i_(e,n,o)})([(0,p.n)({type:Boolean})],n.prototype,"updateOnRemainingTime"),n};return"function"==typeof t?e({})(t):e(t)}var s_=Object.defineProperty;
637const l_=["debug-modal-control","debug-modal","main-debug-view","debug-json-viewer"];class c_{constructor(t){this.debugControlVisible=!1,this.debugComponentsRequested=!1,(this.host=t).addController(this),this.debugControlVisible=t.debugControlVisible||!1,this.keydownHandler=this.handleKeydown.bind(this),this.debugControlVisible&&this.loadDebugComponents()}loadDebugComponents(){if(!this.debugComponentsRequested){this.debugComponentsRequested=!0;for(const t of l_)Qb(t)}}handleKeydown(t){t.ctrlKey&&t.shiftKey&&"."===t.key&&this.toggleDebugControl()}toggleDebugControl(){this.debugControlVisible=!this.debugControlVisible,this.debugControlVisible&&this.loadDebugComponents(),this.host.updateDebugVisibility&&this.host.updateDebugVisibility(this.debugControlVisible),this.host.requestUpdate()}hostConnected(){"true"===localStorage.getItem("enableQaMode")&&window.addEventListener("keydown",this.keydownHandler)}hostDisconnected(){window.removeEventListener("keydown",this.keydownHandler)}hostUpdate(){void 0!==this.host.debugControlVisible&&(this.debugControlVisible=this.host.debugControlVisible),this.debugControlVisible&&this.loadDebugComponents()}get isDebugControlVisible(){return this.debugControlVisible}}function d_(t){class e extends t{constructor(...t){super(...t),this.debugControlVisible=!1,this.debugController=new c_(this)}toggleDebugControl(){this.debugController.toggleDebugControl()}isDebugControlVisible(){return this.debugController.isDebugControlVisible}updateDebugVisibility(t){this.debugControlVisible=void 0!==t&&t,this.requestUpdate()}}return((t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);o&&s_(e,n,o)})([(0,p.n)({type:Boolean})],e.prototype,"debugControlVisible"),e}class u_{constructor(t,e){this.brandConfig={},this.currentBreakpoints=[],this.themeSheet=null,this.handleResize=t=>{const{width:e,height:n,container:i}=t.detail||{};i&&i!==this.host.container||(Number.isFinite(e)&&this.updateResponsiveStyles(e),this.applyResizeDerivedPlayerState(e,n))},this.host=t,this.opts=e,this.defaultTokens=e.defaultTokens,t.addController(this)}static isEmptyTokenValue(t){return""===t||null==t}static pruneEmptyTokenValues(t){return t&&"object"==typeof t?Object.entries(t).reduce(((t,[e,n])=>{if(u_.isEmptyTokenValue(n))return t;if(n&&"object"==typeof n&&!Array.isArray(n)){const i=u_.pruneEmptyTokenValues(n);return ci(i)||(t[e]=i),t}return t[e]=n,t}),{}):{}}hostConnected(){if(this.brand=this.host.brand,this.themeName=this.host.theme||"default",this.themeTokens=this.host.themeTokens||{},this.brandConfig=n_(this.host),this.host.container&&this.host.breakpoints){const t=this.host.container.clientWidth,e=this.host.container.clientHeight;this.updateResponsiveStyles(t),this.applyResizeDerivedPlayerState(t,e)}this.applyThemeVars(),this.setupContainerObserver()}hostDisconnected(){window.removeEventListener(Ct,this.handleResize)}setupContainerObserver(){window.addEventListener(Ct,this.handleResize)}static computeIsVerticalVideo(t,e){if(!Number.isFinite(t)||!Number.isFinite(e)||e<=0)return!1;const n=t/e;return Math.abs(n-9/16)<.01||e>t&&n<=.8}applyResizeDerivedPlayerState(t,e){const n=this.opts.experienceModalHideWidth??375,i=u_.computeIsVerticalVideo(t,e);this.host?.localState?.updateIsVerticalVideo(i);const r=Number.isFinite(t)&&t<n;this.host?.localState?.updateForceHideExperienceModals(r)}findInMap(t,e){return Array.from(t).filter((([,t])=>t<e)).map((([t])=>t))}getThemeTokensFn(){return this.brandConfig?.tokens}static supportsConstructable(){try{return"function"==typeof CSSStyleSheet&&!!CSSStyleSheet.prototype&&"function"==typeof CSSStyleSheet.prototype.replaceSync&&("adoptedStyleSheets"in Document.prototype||"adoptedStyleSheets"in ShadowRoot.prototype)}catch{return!1}}updateResponsiveStyles(t){const e=this.defaultTokens,n=this.themeTokens?.[this.themeName]||{};let i;const r=this.getThemeTokensFn();if("function"!=typeof r||ci(n)||(i=r(n)),!(e?.responsive&&!ci(e.responsive)||i?.responsive&&!ci(i.responsive))||!this.host.breakpoints)return;const o=this.findInMap(this.host.breakpoints,t);JSON.stringify(o)!==JSON.stringify(this.currentBreakpoints)&&(this.currentBreakpoints=o,this.applyThemeVars())}applyThemeVars(){this.themeTokens=this.host.themeTokens||this.themeTokens||{},this.brandConfig=n_(this.host)||this.brandConfig||{};const t=this.defaultTokens,e=this.themeTokens?.[this.themeName]||{};let n;"function"==typeof this.brandConfig?.tokens&&e&&Object.keys(e).length>0&&(n=this.brandConfig.tokens(e));const i=u_.pruneEmptyTokenValues(t||{}),r=u_.pruneEmptyTokenValues(n||{}),o=zo({},i,r),{responsive:a,...s}=o;let l=s;const c={};i?.responsive&&!ci(i.responsive)&&zo(c,i.responsive),r?.responsive&&!ci(r.responsive)&&zo(c,r.responsive),!ci(c)&&this.currentBreakpoints.length>
6370&&this.currentBreakpoints.forEach((t=>{l=zo({},l,c[t]||{})}));const{shadowRoot:d}=this.host;if(!d)return;const u=`:host {\n${Object.entries(l).filter((([,t])=>!u_.isEmptyTokenValue(t))).map((([t,e])=>`--${t}: ${e};`)).join("\n")}\n}`;if(u_.supportsConstructable())if(this.themeSheet)this.themeSheet.replaceSync(u);else{this.themeSheet=new CSSStyleSheet,this.themeSheet.replaceSync(u);const t=Array.from(d.adoptedStyleSheets||[]);d.adoptedStyleSheets=[...t,this.themeSheet]}else{let t=d.querySelector("style[data-theme-sheet]");t||(t=document.createElement("style"),t.setAttribute("data-theme-sheet",""),d.appendChild(t)),t.textContent=u}}}function p_(t){const e=t.tokens,n=t.tokenPrefix||t.name.toLowerCase();class i extends t{constructor(...t){super(...t);const{experienceModalHideWidth:i}=p_.themeOverride,r={tokenPrefix:n,defaultTokens:e,experienceModalHideWidth:i};this.themeController=new u_(this,r)}}return Object.getOwnPropertyNames(t).forEach((e=>{"prototype"!==e&&"name"!==e&&"length"!==e&&(i[e]=t[e])})),i}p_.themeOverride={experienceModalHideWidth:null};const h_=new WeakMap,m_=new WeakMap;function g_(t){const e=getComputedStyle(t);return{mt:parseFloat(e.marginTop)||0,mr:parseFloat(e.marginRight)||0,mb:parseFloat(e.marginBottom)||0,ml:parseFloat(e.marginLeft)||0}}function v_(t){m_.delete(t)}const f_="ui-ptr-debug-flags";let b_={logs:!1,paint:!1,paintColor:"rgba(255,0,0,0.15)",paintOutline:"1px dashed rgba(255,0,0,0.6)"};function __(t,e){b_={...b_,...t};const n="undefined"!=typeof window?window:void 0;n?.dispatchEvent?.(new CustomEvent(f_,{detail:{...b_}}))}function E_(){return b_}const y_="ui-ptr-exclude-register",S_="ui-ptr-exclude-unregister",T_="ui-ptr-exclude-geometry",C_=Symbol.for("ui.ptr.scope.root");function w_(t,e){let n=e;for(;n;){if(n===t)return!0;const e=n?.host;n=e??n.parentNode??null}return!1}function A_(t){return t?"function"==typeof t?A_(t()):Array.isArray(t)?t.filter(Boolean):null!=t?.length?Array.from(t):1===t?.nodeType?[t]:[]:[]}function I_(t){if(!t)return 0;const e=t.split(",").map((t=>t.trim())).filter(Boolean);let n=0;return e.forEach((t=>{t.endsWith("ms")?n=Math.max(n,parseFloat(t)):t.endsWith("s")&&(n=Math.max(n,1e3*parseFloat(t)))})),n}function O_(t){const e=getComputedStyle(t),n=I_(e.transitionDuration),i=I_(e.transitionDelay),r=I_(e.animationDuration),o=I_(e.animationDelay),a=(e.animationIterationCount||"1").split(",").map((t=>t.trim())).reduce(((t,e)=>Math.max(t,"infinite"===e?1:parseFloat(e||"1")||1)),1);return Math.max(r*Math.max(1,a)+o,n+i)}function R_(t,e){return e.localName?.includes("-")?e.localName:t.localName??e.localName??"unknown"}function x_(t,e){for(const n of t)if(e.some((t=>w_(n,t))))return n;return null}function L_(t){const{target:e,watch:n,scope:i}=t;return function(t){return class extends t{constructor(){super(...arguments),this.excluded=new Set,this.watched=new Set,this.watchers=new Map,this.rootMutationObserver=null,this.initRafId=null,this.syncScheduled=!1,this.onGlobalTransition=t=>{const e=t.composedPath?.();if(!e)return;const n=e.filter((t=>t instanceof Node)),i=x_(this.watched,n);if(i)return v_(i),void this.sampleFor(i,t.type);const r=x_(this.excluded,n);r&&(v_(r),this.sampleFor(r,t.type))},this.onGlobalAnimation=t=>{const e=t.composedPath?.();if(!e)return;const n=e.filter((t=>t instanceof Node)),i=x_(this.watched,n);if(i)return v_(i),void this.sampleFor(i,t.type);const r=x_(this.excluded,n);r&&(v_(r),this.sampleFor(r,t.type))},this.onRootMutation=t=>{t.some((t=>"attributes"===t.type||"childList"===t.type&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].some((t=>t.nodeType===Node.ELEMENT_NODE))))&&this.scheduleSync()}}get scopeEl(){return void 0===this._scopeEl&&(this._scopeEl=i?i(this):function(t){let e=t;for(;e;){if(e instanceof Element&&(e.hasAttribute("data-ui-ptr-scope")||e[C_]))return e;const t=e.getRootNode?.();e=t?.host?t.host:e.parentNode??null}return null}(this)),this._scopeEl??null}get bus(){return this._bus||(this._bus=this.scopeEl??window),this._bus}dispatchGeometryPing(t){!function(t,e){const n=e||("undefined"!=typeof window?window:void 0);if(!n)return;let i=h_.get(n);i||(i=new Set,h_.set(n,i)),i.has(t)||(i.add(t),requestAnimationFrame((()=>{i.delete(t),n.dispatchEvent?.(new CustomEvent(t,{bubbles:!0,composed:!0}))}
637)))}(T_,this.bus)}startSampler(t,e){const n=this.watchers.get(t)??{},i=performance.now()+Math.max(220,e+140);n.samplerUntil=i;const r=t=>{!n.samplerUntil||t>=n.samplerUntil?n.samplerId=void 0:(this.dispatchGeometryPing("raf"),n.samplerId=requestAnimationFrame(r))};n.samplerId||(n.samplerId=requestAnimationFrame(r)),this.watchers.set(t,n)}sampleFor(t,e){this.dispatchGeometryPing(e),this.startSampler(t,O_(t)||400)}attachNodeWatchers(t,e){if(this.watchers.has(t))return;const n={};"undefined"!=typeof ResizeObserver&&(n.ro=new ResizeObserver((()=>this.dispatchGeometryPing(`${e}:resize`))),n.ro.observe(t)),n.mo=new MutationObserver((()=>{v_(t),this.dispatchGeometryPing(`${e}:mutation`)})),n.mo.observe(t,{attributes:!0,attributeFilter:["class","style","hidden","aria-hidden","open"]}),n.onTr=()=>this.sampleFor(t,`${e}:transitionrun`),n.onTs=()=>this.sampleFor(t,`${e}:transitionstart`),n.onTe=()=>this.sampleFor(t,`${e}:transitionend`),n.onAs=()=>this.sampleFor(t,`${e}:animationstart`),n.onAi=()=>this.dispatchGeometryPing(`${e}:animationiteration`),n.onAe=()=>this.sampleFor(t,`${e}:animationend`),t.addEventListener("transitionrun",n.onTr),t.addEventListener("transitionstart",n.onTs),t.addEventListener("transitionend",n.onTe),t.addEventListener("animationstart",n.onAs),t.addEventListener("animationiteration",n.onAi),t.addEventListener("animationend",n.onAe),this.watchers.set(t,n);const i=O_(t)||350;this.startSampler(t,i),this.dispatchGeometryPing(`${e}:prime`)}detachNodeWatchers(t){const e=this.watchers.get(t);e&&(e.ro?.disconnect(),e.mo?.disconnect(),t.removeEventListener("transitionrun",e.onTr),t.removeEventListener("transitionstart",e.onTs),t.removeEventListener("transitionend",e.onTe),t.removeEventListener("animationstart",e.onAs),t.removeEventListener("animationiteration",e.onAi),t.removeEventListener("animationend",e.onAe),e.samplerId&&cancelAnimationFrame(e.samplerId),this.watchers.delete(t))}scheduleSync(){this.syncScheduled||(this.syncScheduled=!0,queueMicrotask((()=>{this.syncScheduled=!1,this.isConnected&&this.sync()})))}sync(){const t=this.scopeEl,i=A_("function"==typeof e?e(this):e).filter(Boolean).filter((e=>!t||w_(t,e))),r=A_("function"==typeof n?n(this):n).filter(Boolean).filter((e=>!t||w_(t,e))),o=new Set(i),a=new Set(r),s=Array.from(this.excluded).filter((t=>!o.has(t))),l=i.filter((t=>!this.excluded.has(t))),c=Array.from(this.watched).filter((t=>!a.has(t))),d=r.filter((t=>!this.watched.has(t))),u=this.bus;s.forEach((t=>{this.excluded.delete(t),this.detachNodeWatchers(t),u.dispatchEvent(new CustomEvent(S_,{detail:{el:t}}))})),l.forEach((t=>{this.excluded.add(t),this.attachNodeWatchers(t,"exclude"),u.dispatchEvent(new CustomEvent(y_,{detail:{el:t,component:R_(this,t)}}))})),c.forEach((t=>{this.watched.delete(t),this.detachNodeWatchers(t)})),d.forEach((t=>{this.watched.add(t),this.attachNodeWatchers(t,"watch")}))}connectedCallback(){super.connectedCallback?.();const t=this.bus;t.addEventListener("transitionrun",this.onGlobalTransition,!0),t.addEventListener("transitionstart",this.onGlobalTransition,!0),t.addEventListener("transitionend",this.onGlobalTransition,!0),t.addEventListener("animationstart",this.onGlobalAnimation,!0),t.addEventListener("animationiteration",this.onGlobalAnimation,!0),t.addEventListener("animationend",this.onGlobalAnimation,!0),this.rootMutationObserver=new MutationObserver(this.onRootMutation),this.rootMutationObserver.observe(this.renderRoot,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open","class","style","hidden","aria-hidden"]}),this.sync(),queueMicrotask((()=>{this.isConnected&&this.sync()})),this.initRafId=requestAnimationFrame((()=>{this.initRafId=null,this.isConnected&&this.sync()}));const e=document.fonts?.ready;e?.then&&e.then((()=>{this.isConnected&&this.sync()}))}disconnectedCallback(){null!=this.initRafId&&cancelAnimationFrame(this.initRafId),this.initRafId=null;const t=this.bus;t.removeEventListener("transitionrun",this.onGlobalTransition,!0),t.removeEventListener("transitionstart",this.onGlobalTransition,!0),t.removeEventListener("transitionend",this.onGlobalTransition,!0),t.removeEventListener("animationstart",this.onGlobalAnimation,!0),t.removeEventListener("animationiteration",this.onGlobalAnimation,!0),t.removeEventListener("animationend",this.onGlobalAnimation,!0),this.rootMutationObserver?.disconnect(),this.rootMutationObserver=null,Array.from(this.excluded).forEac
637h((t=>{this.detachNodeWatchers(t),this.bus.dispatchEvent(new CustomEvent(S_,{detail:{el:t}}))})),this.excluded.clear(),Array.from(this.watched).forEach((t=>this.detachNodeWatchers(t))),this.watched.clear(),super.disconnectedCallback?.()}}}}const k_=t=>(...e)=>({_$litDirective$:t,values:e});let P_=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const D_={},N_=k_(class extends P_{constructor(){super(...arguments),this.key=p.E}render(t,e){return this.key=t,e}update(t,[e,n]){return e!==this.key&&(((t,e=D_)=>{t._$AH=e})(t),this.key=e),n}});var M_=Object.defineProperty;const U_=t=>{class e extends t{constructor(){super(...arguments),this.renderKey=0,this.previousValues=[]}connectedCallback(){super.connectedCallback(),this.previousValues=this.getResetObservables()}updated(t){super.updated(t);const e=this.getResetObservables();this.areShallowEqual(e,this.previousValues)||(this.onReset?.(),this.renderKey++),this.previousValues=e}areShallowEqual(t,e){return t.length===e.length&&t.every(((t,n)=>t===e[n]))}getResetObservables(){throw new Error("getResetObservables must be implemented when using ResetMixin")}onReset(){throw new Error("onReset must be implemented when using ResetMixin")}renderInternal(){throw new Error("renderInternal must be implemented when using ResetMixin")}render(){return N_(this.renderKey,this.renderInternal())}}return((t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);o&&M_(e,n,o)})([v()],e.prototype,"renderKey"),e};var B_,V_,F_,z_,$_=function(){if(z_)return F_;z_=1;var t=fn(),e=function(){if(V_)return B_;V_=1;var t=pe();return B_=function(){return t.Date.now()}}(),n=rf(),i=Math.max,r=Math.min;return F_=function(o,a,s){var l,c,d,u,p,h,m=0,g=!1,v=!1,f=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function b(t){var e=l,n=c;return l=c=void 0,m=t,u=o.apply(n,e)}function _(t){var e=t-h;return void 0===h||e>=a||e<0||v&&t-m>=d}function E(){var t=e();if(_(t))return y(t);p=setTimeout(E,function(t){var e=a-(t-h);return v?r(e,d-(t-m)):e}(t))}function y(t){return p=void 0,f&&l?b(t):(l=c=void 0,u)}function S(){var t=e(),n=_(t);if(l=arguments,c=this,h=t,n){if(void 0===p)return function(t){return m=t,p=setTimeout(E,a),g?b(t):u}(h);if(v)return clearTimeout(p),p=setTimeout(E,a),b(h)}return void 0===p&&(p=setTimeout(E,a)),u}return a=n(a)||0,t(s)&&(g=!!s.leading,d=(v="maxWait"in s)?i(n(s.maxWait)||0,a):d,f="trailing"in s?!!s.trailing:f),S.cancel=function(){void 0!==p&&clearTimeout(p),m=0,l=h=c=p=void 0},S.flush=function(){return void 0===p?u:y(e())},S},F_}();const H_=bt($_);class G_{constructor(t,e,n){(this.host=t).addController(this),this.value=n,this.selector=e}hostConnected(){this.host?.stateStream$?this.subscription=this.host.stateStream$.distinctOn(this.selector,Fh).subscribe((t=>{const e=this.selector(t);this.value=e,this.host.requestUpdate()})):console.warn("[StreamController] stateStream$ not available on host",this.host?.constructor?.name)}hostDisconnected(){this.subscription?.unsubscribe()}}var Y_=Object.defineProperty,j_=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&Y_(e,n,o),o};const K_={isLive:!1,noSeek:!1,isPaused:!1,notready:!0,ended:!1,streamType:"",isVOD:!1,programDecoration:void 0,isCatchUpToLiveLifeCycle:!1,scrubbing:!1,playbackId:void 0,hasFeeds:!1,hasNextContent:!1,hasMultipleAudioTracks:!1,isCasting:!1,enablePip:!1},W_=t=>{const{audio:e,casting:n,playback:i,playbackCriteria:r,playbackId:o,streamDetails:a,timeline:s,isCatchUpToLiveLifeCycle:l}=t??{},{isCasting:c}=n??{},{current:d}=r||{},{metadata:u}=d??{},p=i?.clients?.pcsConfig?.configs?.web?.ux,h=u,m=h?.feeds??[],g=h?.playbackVariantGroupings?.[0]?.playbackVariants??[],v=h?.alternativeBroadcastSelectorData??[],f=Boolean(m.length||g.length||v.length),b=h?.upNextData?.[0]?.item,_=t?.controls?.playNext?.contentId,E=Boolean(b?.id??_);return{isLive:a?.isLive??!1,noSeek:a?.noSeek??!1,isPaused:i?.isPaused??!1,notready:i?.notready??!0,ended:i?.ended??!1,streamType:String(i?.streamType??""),isVOD:a?.isVOD??!1,programDecoration:u?.programDecoration,isCatchUpToLiveLifeCycle:l??!1,scrubbing:s?.scrubResult?.scrubbing??!1,playbackId:o??void 0,hasFeeds:f,hasNext
637Content:E,hasMultipleAudioTracks:(e?.tracks?.length??0)>1,isCasting:c??!1,enablePip:p?.enablePiP??!1}},q_=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown","Enter"," ","Escape"]);function X_(t){const e="Spacebar"===t.key?" ":t.key;return"Shift"!==e&&"Alt"!==e&&"Meta"!==e&&"Control"!==e&&!function(t){const e=t;return!!e&&(!!e.isContentEditable||!!e.matches?.("textarea, input, [contenteditable=''], [contenteditable='true']")&&!(e instanceof HTMLInputElement&&new Set(["button","submit","reset","checkbox","radio","range","file","color","image","hidden"]).has((e.type||"").toLowerCase())))}(t.target)&&q_.has(e)}const Z_=t=>{class e extends t{constructor(...t){super(...t),this.timeoutDuration=3500,this.hideShare=!1,this.hideShareAt=!1,this.keyboardIdleMs=2500,this.forceVisible=!1,this.takeoverBehavior="pause-play",this.visible=!1,this.isKeyboardFocused=!1,this.settingsOpen=!1,this.shareMenuOpen=!1,this.airingModalOpen=!1,this.pauseAndHideControls=!1,this.wasTakeoverOpen=!1,this.shouldResumePlayback=!1,this.streamController=new G_(this,W_,K_),this.lastInput="pointer",this.keyboardIdleTimerId=null,this.dispatchMouseMoveCommand=H_((t=>{this.commandBus.dispatchCommand(Ql.MOUSE_EVENT,{clientX:t.clientX,clientY:t.clientY,ref:e_.CONTAINER,label:"Main Container",action:"move",timestamp:Date.now()})}),20),this.handleMouseMove=t=>{const{container:e}=this;e&&!t.composedPath().includes(e)||(this.lastInput="pointer",this.isKeyboardFocused=!1,this.stopKeyboardIdleTimer(),this.updateVisibility(!0),this.isTimeoutPaused||this.startTimeout?.(),this.dispatchMouseMoveCommand(t))},this.handleMouseLeave=t=>{const{container:e}=this;e&&!e.contains(t.relatedTarget)&&(this.isTimeoutPaused||this.startTimeout?.())},this.handlePointerDown=t=>{this.lastInput="pointer",this.isKeyboardFocused=!1,this.stopKeyboardIdleTimer();const e=t.target;"touch"===t.pointerType&&e.dataset.interactiveElement?t.preventDefault():this.handleMouseMove(t)},this.handleKeyDown=t=>{X_(t)&&(this.lastInput="keyboard",this.isKeyboardFocused=!0,this.updateVisibility(!0),this.clearTimeout?.(),this.startKeyboardIdleTimer())},this.handleFocusIn=t=>{const e=t.target;this.updateVisibility(!0),"keyboard"===this.lastInput||e.matches(":focus-visible")?(this.isKeyboardFocused=!0,this.clearTimeout?.(),this.startKeyboardIdleTimer()):(this.isKeyboardFocused=!1,this.isTimeoutPaused||this.startTimeout?.())},this.handleFocusOut=t=>{const e=t.relatedTarget;e&&this.contains(e)||(this.isKeyboardFocused=!1,this.stopKeyboardIdleTimer(),this.isTimeoutPaused||this.startTimeout?.())},this.addEventListener("timeout-complete",(()=>{this.updateVisibility(!1)}))}connectedCallback(){super.connectedCallback(),this.localState?.updateHideShareAt(this.hideShareAt);const{container:t}=this;t&&(t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("mouseleave",this.handleMouseLeave),t.addEventListener("mousemove",this.handleMouseMove),t.addEventListener("focusin",this.handleFocusIn),t.addEventListener("focusout",this.handleFocusOut),t.addEventListener("keydown",this.handleKeyDown)),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({volumeBarChanging:t.volumeBar.changing,settingsOpen:t.modalState?.modals?.settingsModal?.isOpen??!1,shareMenuOpen:t.modalState?.modals?.shareModal?.isOpen??!1,airingModalOpen:t.modalState?.modals?.airingModal?.isOpen??!1,broadcastOpen:t.overlayState?.overlays?.broadcast?.isOpen??!1,takeoverIsOpen:t.takeoverState.isOpen,takeoverOverlayName:t.takeoverState.overlayName}))),this.unsubscribeFromTakeoverState=this.localState?.onTakeoverStateChange?.(((t,e,n)=>{this.handleTakeoverStateChangeSynchronous(t,e,n)}))}disconnectedCallback(){super.disconnectedCallback();const{container:t}=this;t&&(t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("mouseleave",this.handleMouseLeave),t.removeEventListener("mousemove",this.handleMouseMove),t.removeEventListener("focusin",this.handleFocusIn),t.removeEventListener("focusout",this.handleFocusOut),t.removeEventListener("keydown",this.handleKeyDown)),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0),this.unsubscribeFromTakeoverState&&(this.unsubscribeFromTakeoverState(),this.unsubscribeFromTakeoverState=void 0),this.stopKeyboardIdleTimer(),this.clearTimeout?.(),this.dispatchMouseMoveCommand.cancel()}updated(){this.localState,this.settingsOpen=this.localState?.modalState?.modals?.settingsModal?.isOpen??!1,this.shareMenuOpen=this.localState?.modalState?.modals?.shareModal?.isOpen??!1,this.airingModalOpen=this.localState?.modalState?.modals?.airingModal?.isOpen??!1}handleTakeoverStateChangeSynchronous(t,e,n){if("none"===this.takeoverBehavior)return;const i=t&&!n,r=!t&&n;if(!i&&!r)return;const o="blur-video"===this.takeoverBehavior||"blur-and-pause-play"===this.takeoverBehavior,a="pause
637-play"===this.takeoverBehavior||"blur-and-pause-play"===this.takeoverBehavior;if(o&&this.commandBus?.dispatchCommand(Ql.BLUR_VIDEO,{label:"Controls overlay",value:t}),a){const{noSeek:e,isPaused:n}=this.streamController.value;if(e)return void(this.wasTakeoverOpen=t);if(i)return this.shouldResumePlayback=!n,this.commandBus?.dispatchCommand(Ql.PAUSE,{label:"Controls overlay",localState:this.localState}),this.pauseAndHideControls=!0,void(this.wasTakeoverOpen=!0);if(r)return this.pauseAndHideControls=!1,this.shouldResumePlayback&&this.commandBus?.dispatchCommand(Ql.PLAY,{label:"Controls overlay",localState:this.localState}),this.shouldResumePlayback=!1,void(this.wasTakeoverOpen=!1)}"blur-video"===this.takeoverBehavior&&(this.wasTakeoverOpen=t)}handleTakeoverStateChange(){const{isOpen:t,overlayName:e}=this.localState?.takeoverState??{};this.handleTakeoverStateChangeSynchronous(t??!1,e??"",this.wasTakeoverOpen)}updateVisibility(t=!1){if(!t&&this.forceVisible)return;const e=this.visible;this.localState?.updateControlsOverlay(t),this.visible=t,t&&!e&&this.commandBus?.dispatchCommand($l.CONTROLS.OVERLAY.VISIBLE),this.commandBus?.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:Of,type:t?kf:Pf,localState:this.localState}),this.commandBus?.dispatchCommand(Ql.SHIFT_CAPTION_LAYOUT,{label:"Controls overlay mixin",visible:t})}getTimeoutDismissals(){return[this.isKeyboardFocused,this.pauseAndHideControls]}startKeyboardIdleTimer(){this.stopKeyboardIdleTimer(),this.keyboardIdleTimerId=window.setTimeout((()=>{this.isKeyboardFocused=!1,this.isTimeoutPaused||this.startTimeout?.()}),this.keyboardIdleMs)}stopKeyboardIdleTimer(){null!==this.keyboardIdleTimerId&&(clearTimeout(this.keyboardIdleTimerId),this.keyboardIdleTimerId=null)}}return j_([(0,p.n)({type:Number})],e.prototype,"timeoutDuration"),j_([(0,p.n)({type:Boolean})],e.prototype,"hideShare"),j_([(0,p.n)({type:Boolean})],e.prototype,"hideShareAt"),j_([(0,p.n)({type:Number})],e.prototype,"keyboardIdleMs"),j_([(0,p.n)({type:Boolean})],e.prototype,"forceVisible"),j_([(0,p.n)({type:String})],e.prototype,"takeoverBehavior"),j_([v()],e.prototype,"visible"),j_([v()],e.prototype,"isKeyboardFocused"),j_([v()],e.prototype,"settingsOpen"),j_([v()],e.prototype,"shareMenuOpen"),j_([v()],e.prototype,"airingModalOpen"),j_([v()],e.prototype,"pauseAndHideControls"),j_([v()],e.prototype,"wasTakeoverOpen"),j_([v()],e.prototype,"shouldResumePlayback"),e};function Q_(t,e,n){return t?e(t):n?.(t)}const J_=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),J_(t,e);return!0},tE=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},eE=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),rE(e)}};function nE(t){void 0!==this._$AN?(tE(this),this._$AM=t,eE(this)):this._$AM=t}function iE(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(i))for(let t=n;t<i.length;t++)J_(i[t],!1),tE(i[t]);else null!=i&&(J_(i,!1),tE(i));else J_(this,t)}const rE=t=>{2==t.type&&(t._$AP??=iE,t._$AQ??=nE)};class oE extends P_{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),eE(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(J_(this,t),tE(this))}setValue(t){if(void 0===this._$Ct.strings)this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const aE=()=>new sE;class sE{}const lE=new WeakMap,cE=k_(class extends oE{render(t){return p.E}update(t,[e]){const n=e!==this.G;return n&&void 0!==this.G&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),p.E}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let n=lE.get(e);void 0===n&&(n=new WeakMap,lE.set(e,n)),void 0!==n.get(this.G)&&this.G.call(this.ht,void 0),n.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?lE.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),dE=Math.min,uE=Math.max,pE=Math.round,hE=Math.floor,mE=t=>({x:t,y:t}
vendor: 18,978 bytes, lines 637-819
637),gE={left:"right",right:"left",bottom:"top",top:"bottom"},vE={start:"end",end:"start"};function fE(t,e,n){return uE(t,dE(e,n))}function bE(t,e){return"function"==typeof t?t(e):t}function _E(t){return t.split("-")[0]}function EE(t){return t.split("-")[1]}function yE(t){return"x"===t?"y":"x"}function SE(t){return"y"===t?"height":"width"}const TE=new Set(["top","bottom"]);function CE(t){return TE.has(_E(t))?"y":"x"}function wE(t){return yE(CE(t))}function AE(t){return t.replace(/start|end/g,(t=>vE[t]))}const IE=["left","right"],OE=["right","left"],RE=["top","bottom"],xE=["bottom","top"];function LE(t){return t.replace(/left|right|bottom|top/g,(t=>gE[t]))}function kE(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function PE(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function DE(t,e,n){let{reference:i,floating:r}=t;const o=CE(e),a=wE(e),s=SE(a),l=_E(e),c="y"===o,d=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:u};break;case"left":h={x:i.x-r.width,y:u};break;default:h={x:i.x,y:i.y}}switch(EE(e)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function NE(t,e){var n;void 0===e&&(e={});const{x:i,y:r,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=bE(e,t),m=kE(h),g=s[p?"floating"===u?"reference":"floating":u],v=PE(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),f="floating"===u?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},E=PE(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:f,offsetParent:b,strategy:l}):f);return{top:(v.top-E.top+m.top)/_.y,bottom:(E.bottom-v.bottom+m.bottom)/_.y,left:(v.left-E.left+m.left)/_.x,right:(E.right-v.right+m.right)/_.x}}const ME=new Set(["left","top"]);function UE(){return"undefined"!=typeof window}function BE(t){return zE(t)?(t.nodeName||"").toLowerCase():"#document"}function VE(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function FE(t){var e;return null==(e=(zE(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function zE(t){return!!UE()&&(t instanceof Node||t instanceof VE(t).Node)}function $E(t){return!!UE()&&(t instanceof Element||t instanceof VE(t).Element)}function HE(t){return!!UE()&&(t instanceof HTMLElement||t instanceof VE(t).HTMLElement)}function GE(t){return!(!UE()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof VE(t).ShadowRoot)}const YE=new Set(["inline","contents"]);function jE(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=ry(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!YE.has(r)}const KE=new Set(["table","td","th"]);function WE(t){return KE.has(BE(t))}const qE=[":popover-open",":modal"];function XE(t){return qE.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const ZE=["transform","translate","scale","rotate","perspective"],QE=["transform","translate","scale","rotate","perspective","filter"],JE=["paint","layout","strict","content"];function ty(t){const e=ey(),n=$E(t)?ry(t):t;return ZE.some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||QE.some((t=>(n.willChange||"").includes(t)))||JE.some((t=>(n.contain||"").includes(t)))}function ey(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ny=new Set(["html","body","#document"]);function iy(t){return ny.has(BE(t))}function ry(t){return VE(t).getComputedStyle(t)}function oy(t){return $E(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ay(t){if("html"===BE(t))return t;const e=t.assignedSlot||t.parentNode||GE(t)&&t.host||FE(t);return GE(e)?e.host:e}function sy(t){const e=ay(t);return iy(e)?t.ownerDocument?t.ownerDocument.body:t.body:HE(e)&&jE(e)?e:sy(e)}function ly(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=sy(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),a=VE(r);if(o){const t=cy(a);return e.concat(a,a.visualViewport||[],jE(r)?r:[],t&&n?ly(t):[])}return e.concat(r,ly(r,[],n))}function cy(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function dy(t){const e=ry(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=HE(t),o=r?t.offsetWidth:n,a=r?t.offsetHeight:i,s=pE(n)!==o||pE(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function uy(t){return $E(t)?t:t.contextElement}function py(t){const e=uy(t);if(!HE(e))return mE(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:o}=dy(e);let a=(o?pE(n.width):n.width)/i,s=(o?pE(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const hy=mE(0);function my(t){const e=VE(t);return ey()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:hy}function gy(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),o=uy(t);let a=mE(1);e&&(i?$E(i)&&(a=py(i)):a=py(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==VE(t))&&e}(o,n,i)?my(o):mE(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,u=r.height/a.y;if(o){const t=VE(o),e=i&&$E(i)?VE(i):i;let n=t,r=cy(n);for(;r&&i&&e!==n;){const t=py(r),e=r.getBoundingClientRect(),i=ry(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,u*=t.y,l+=o,c+=a,n=VE(r),r=cy(n)}}return PE({width:d,height:u,x:l,y:c})}function vy(t,e){const n=oy(t).scrollLeft;return e?e.left+n:gy(FE(t)).left+n}function fy(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-vy(t,n),y:n.top+e.scrollTop}}const by=new Set(["absolute","fixed"]);function _y(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=VE(t),i=FE(t),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const t=ey();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}const c=vy(i);if(c<=0){const t=i.ownerDocument,e=t.body,n=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(i.clientWidth-e.clientWidth-r);a<=25&&(o-=a)}else c<=25&&(o+=c);return{width:o,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=FE(t),n=oy(t),i=t.ownerDocument.body,r=uE(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=uE(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+vy(t);const s=-n.scrollTop;return"rtl"===ry(i).direction&&(a+=uE(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}(FE(t));else if($E(e))i=function(t,e){const n=gy(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=HE(t)?py(t):mE(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:r*o.x,y:i*o.y}}(e,n);else{const n=my(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return PE(i)}function Ey(t,e){const n=ay(t);return!(n===e||!$E(n)||iy(n))&&("fixed"===ry(n).position||Ey(n,e))}function yy(t,e,n){const i=HE(e),r=FE(e),o="fixed"===n,a=gy(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const l=mE(0);function c(){l.x=vy(r)}if(i||!i&&!o)if(("body"!==BE(e)||jE(r))&&(s=oy(e)),i){const t=gy(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&c();o&&!i&&r&&c();const d=!r||i||o?mE(0):fy(r,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function Sy(t){return"static"===ry(t).position}function Ty(t,e){if(!HE(t)||"fixed"===ry(t).position)return null;if(e)return e(t);let n=t.offsetParent;return FE(t)===n&&(n=n.ownerDocument.body),n}function Cy(t,e){const n=VE(t);if(XE(t))return n;if(!HE(t)){let e=ay(t);for(;e&&!iy(e);){if($E(e)&&!Sy(e))return e;e=ay(e)}return n}let i=Ty(t,e);for(;i&&WE(i)&&Sy(i);)i=Ty(i,e);return i&&iy(i)&&Sy(i)&&!ty(i)?n:i||function(t){let e=ay(t);for(;HE(e)&&!iy(e);){if(ty(e))return e;if(XE(e))return null;e=ay(e)}return null}(t)||n}const wy={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const o="fixed"===r,a=FE(i),s=!!e&&XE(e.floating);if(i===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=mE(1);const d=mE(0),u=HE(i);if((u||!u&&!o)&&(("body"!==BE(i)||jE(a))&&(l=oy(i)),HE(i))){const t=gy(i);c=py(i),d.x=t.x+i.clientLeft,d.y=t.y+i.clientTop}const p=!a||u||o?mE(0):fy(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:FE,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=[..."clippingAncestors"===n?XE(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=ly(t,[],!1).filter((t=>$E(t)&&"body"!==BE(t))),r=null;const o="fixed"===ry(t).position;let a=o?ay(t):t;for(;$E(a)&&!iy(a);){const e=ry(a),n=ty(a);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&r&&by.has(r.position)||jE(a)&&!n&&Ey(t,a))?i=i.filter((t=>t!==a)):r=e,a=ay(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=o[0],s=o.reduce(((t,n)=>{const i=_y(e,n,r);return t.top=uE(i.top,t.top),t.right=dE(i.right,t.right),t.bottom=dE(i.bottom,t.bottom),t.left=uE(i.left,t.left),t}),_y(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Cy,getElementRects:async function(t){const e=this.getOffsetParent||Cy,n=this.getDimensions,i=await n(t.floating);return{reference:yy(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=dy(t);return{width:e,height:n}},getScale:py,isElement:$E,isRTL:function(t){return"rtl"===ry(t).direction}};function Ay(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Iy=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=bE(t,e),c={x:n,y:i},d=await NE(e,l),u=CE(_E(r)),p=yE(u);let h=c[p],m=c[u];if(o){const t="y"===p?"bottom":"right";h=fE(h+d["y"===p?"top":"left"],h,h-d[t])}if(a){const t="y"===u?"bottom":"right";m=fE(m+d["y"===u?"top":"left"],m,m-d[t])}const g=s.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[p]:o,[u]:a}}}}}},Oy=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=bE(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const f=_E(r),b=CE(s),_=_E(s)===s,E=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=p||(_||!g?[LE(s)]:function(t){const e=LE(t);return[AE(t),e,AE(e)]}(s)),S="none"!==m;!p&&S&&y.push(...function(t,e,n,i){const r=EE(t);let o=function(t,e,n){switch(t){case"top":case"bottom":return n?e?OE:IE:e?IE:OE;case"left":case"right":return e?RE:xE;default:return[]}}(_E(t),"start"===n,i);return r&&(o=o.map((t=>t+"-"+r)),e&&(o=o.concat(o.map(AE)))),o}(s,g,m,E));const T=[s,...y],C=await NE(e,v),w=[];let A=(null==(i=o.flip)?void 0:i.overflows)||[];if(d&&w.push(C[f]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=EE(t),r=wE(t),o=SE(r);let a="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=LE(a)),[a,LE(a)]}(r,a,E);w.push(C[t[0]],C[t[1]])}if(A=[...A,{placement:r,overflows:w}],!w.every((t=>t<=0))){var I,O;const t=((null==(I=o.flip)?void 0:I.index)||0)+1,e=T[t];if(e&&("alignment"!==u||b===CE(e)||A.every((t=>CE(t.placement)!==b||t.overflows[0]>0))))return{data:{index:t,overflows:A},reset:{placement:e}};let n=null==(O=A.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:O.placement;if(!n)switch(h){case"bestFit":{var R;const t=null==(R=A.filter((t=>{if(S){const e=CE(t.placement);return e===b||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:R[0];t&&(n=t);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},Ry=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:d=0}=bE(t,e)||{};if(null==c)return{};const u=kE(d),p={x:n,y:i},h=wE(r),m=SE(h),g=await a.getDimensions(c),v="y"===h,f=v?"top":"left",b=v?"bottom":"right",_=v?"clientHeight":"clientWidth",E=o.reference[m]+o.reference[h]-p[h]-o.floating[m],y=p[h]-o.reference[h],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let T=S?S[_]:0;T&&await(null==a.isElement?void 0:a.isElement(S))||(T=s.floating[_]||o.floating[m]);const C=E/2-y/2,w=T/2-g[m]/2-1,A=dE(u[f],w),I=dE(u[b],w),O=A,R=T-g[m]-I,x=T/2-g[m]/2+C,L=fE(O,x,R),k=!l.arrow&&null!=EE(r)&&x!==L&&o.reference[m]/2-(x<O?A:I)-g[m]/2<0,P=k?x<O?x-O:x-R:0;return{[h]:p[h]+P,data:{[h]:L,centerOffset:x-L-P,...k&&{alignmentOffset:P}},reset:k}}}),xy=p.i`
638	.button-container {
639		width: var(--button-container--width, 100%);
640		height: var(--button-container--height, 100%);
641		margin: var(--button-container--margin-top, 0)
642			var(--button-container--margin-right, 0)
643			var(--button-container--margin-bottom, 0)
644			var(--button-container--margin-left, 0);
645		opacity: var(--button-container--opacity, 1);
646		transition: var(--button-container--transition);
647		display: var(--button-container--display);
648		align-items: var(--button-container--align-items);
649		justify-content: var(--button-container--justify-content);
650
651		&:not(.disabled):hover {
652			opacity: var(--button-container--opacity-hover);
653		}
654
655		&.disabled {
656			--control-cursor: var(--control--disabled-cursor, not-allowed);
657			--button-container--opacity: var(
658				--button-container--opacity-disabled,
659				0.4
660			);
661
662			.control {
663				opacity: var(--control--disabled-opacity, 1);
664
665				&:hover,
666				&:active {
667					transform: var(--control--disabled-transform, none);
668					background-color: var(
669						--controls--disabled-background-color,
670						var(--controls-background-color)
671					);
672				}
673			}
674		}
675
676		&.round {
677			height: var(--button-container__round--size);
678			width: var(--button-container__round--size);
679			border-radius: var(--button-container__round-border-radius, 50%);
680			background-color: var(--button-container__round--background-color);
681
682			&:hover {
683				background-color: var(
684					--button-container__round__hover--background-color,
685					var(--button-container__round--background-color)
686				);
687				outline: var(--button-container__round__hover-outline);
688			}
689		}
690	}
691
692	.control {
693		font-size: var(--control--font-size, 0);
694		height: var(--control-height, inherit);
695		width: var(--control-width, inherit);
696		mask-image: var(--control--mask, unset);
697		-webkit-mask-image: var(--control--mask, unset);
698		mask-repeat: var(--control--mask-repeat, no-repeat);
699		-webkit-mask-repeat: var(--control--mask-repeat, no-repeat);
700		mask-size: var(--control--mask-size, contain);
701		-webkit-mask-size: var(--control--mask-size, contain);
702		mask-position: var(--control--mask-position, center);
703		-webkit-mask-position: var(--control--mask-position, center);
704		background-color: var(--controls-background-color, #f0f3f5);
705		border: var(--control-border, none);
706		cursor: var(--control-cursor, pointer);
707		margin: var(--control--margin-top, 0) var(--control--margin-right, 0)
708			var(--control--margin-bottom, 0) var(--control--margin-left, 0);
709		padding: var(--control--padding);
710		animation-name: var(--control--animation);
711		animation-iteration-count: var(--control--animation-iteration-count);
712		animation-timing-function: var(--control--animation-timing-function);
713		animation-duration: var(--control--animation-duration);
714		color: var(--control--font-color, inherit);
715		pointer-events: auto;
716	}
717
718	.control.active {
719		background-color: var(
720			--controls--active-background-color,
721			var(--controls-background-color)
722		);
723		color: var(--controls--active-font-color, inherit);
724	}
725
726	.control:hover {
727		background-color: var(
728			--controls--hover-background-color,
729			var(--controls--active-background-color, var(--controls-background-color))
730		);
731		color: var(--controls--hover-font-color, inherit);
732		transform: var(--control--hover--transform);
733	}
734
735	.control:active {
736		background-color: var(
737			--controls--pressed-background-color,
738			var(
739				--controls--hover-background-color,
740				var(
741					--controls--active-background-color,
742					var(--controls-background-color)
743				)
744			)
745		);
746		transform: var(--control--pressed--transform);
747	}
748
749	.control.active:hover {
750		/* Fallback order:
751		1. --controls--active-hover-background-color
752		2. --controls--hover-background-color
753		3. --controls--active-background-color
754		4. --controls-background-color
755		*/
756		background-color: var(
757			--controls--active-hover-background-color,
758			var(
759				--controls--hover-background-color,
760				var(
761					--controls--active-background-color,
762					var(--controls-background-color)
763				)
764			)
765		);
766	}
767
768	.control.hidden {
769		display: var(--controls--display-none);
770	}
771
772	dialog::backdrop {
773		--dialog-backdrop-color: white;
774		--dialog-backdrop-opacity: 0.8;
775
776		background-color: var(--dialog-backdrop-color);
777		opacity: var(--dialog-backdrop-opacity);
778	}
779`,Ly=p.i`
780	:host {
781		display: var(--controls__host--display);
782		justify-content: var(--controls__host--justify-content);
783		position: relative;
784		width: var(--controls__host--width, fit-content);
785		min-width: var(--controls__host--min-width);
786		height: var(--controls__host--height, fit-content);
787		margin-left: var(--controls__host--margin-left);
788		margin-right: var(--controls__host--margin-right);
789		margin-top: var(--controls__host--margin-top);
790		margin-bottom: var(--controls__host--margin-bottom);
791		pointer-events: auto;
792	}
793
794	:host(.active) {
795		position: unset;
796	}
797
798	${xy}
799`,ky=p.i`
800	:host {
801		user-select: none;
802	}
803
804	.tooltip-container {
805		position: relative;
806		display: flex;
807		align-items: center;
808	}
809
810	.tooltip {
811		position: absolute;
812		display: none;
813		top: 0;
814		left: 0;
815		width: var(--tooltip-width);
816		height: var(--tooltip-height);
817		padding: var(--tooltip-padding);
818		background: var(--tooltip-background);
819		border-radius: var(--tooltip-border-radius);
820		box-shadow: var(--tooltip-box-shadow, none);
821		backdrop-filter: var(--tooltip-backdrop-filter, none);
822		-webkit-backdrop-filter: var(--tooltip-backdrop-filter, none);
823		opacity: var(--tooltip-opacity);
824		font-family: var(--tooltip-font-family);
825		color: var(--tooltip-color);
826		font-size: var(--tooltip-font-size);
827		font-feature-settings: var(--tooltip-font-feature-settings);
828		font-style: var(--tooltip-font-style);
829		font-weight: var(--tooltip-font-weight);
830		line-height: var(--tooltip-line-height);
831		letter-spacing: var(--tooltip-letter-spacing);
832		text-transform: var(--tooltip-text-transform);
833		text-align: var(--tooltip-text-align);
834	}
835
836	.tooltip-arrow {
837		position: absolute;
838		width: var(--tooltip-arrow-size);
839		height: var(--tooltip-arrow-size);
840		background: var(--tooltip-background);
841		transform: rotate(45deg);
842		pointer-events: none;
843	}
844
845	.tooltip[data-floating-side="top"] .tooltip-arrow {
846		bottom: calc(var(--tooltip-arrow-size) / -2);
847	}
848
849	.tooltip[data-floating-side="bottom"] .tooltip-arrow {
850		top: calc(var(--tooltip-arrow-size) / -2);
851	}
852
853	:host([dir="rtl"]) .tooltip,
854	:host(:lang(th)) .tooltip {
855		font-family: inherit;
856	}
857
858	:host([dir="rtl"]) .tooltip {
859		letter-spacing: normal;
860		line-height: unset;
861	}
862`;Object.getOwnPropertyDescriptor;let Py=class extends pt{constructor(){super(...arguments),this.tooltipRef=aE(),this.tooltipArrowRef=aE(),this.anchorContainerRef=aE(),this.tooltipHidden=!0,this.autoUpdateCleanup=null,this.unsubscribeFromLocalState=null,this.updateTooltipPosition=async()=>{const t=this.anchorContainerRef.value,e=this.tooltipRef.value,n=this.tooltipArrowRef.value;if(!t||!e||!n)return;this.syncTooltipDirectionState();const{x:i,y:r,middlewareData:o,placement:a,strategy:s}=await((t,e,n)=>{const i=new Map,r={platform:wy,...n},o={...r.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:u}=DE(c,i,l),p=i,h={},m=0;for(let n=0;n<s.length;n++){const{name:o,fn:g}=s[n],{x:v,y:f,data:b,reset:_}=await g({x:d,y:u,initialPlacement:i,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=v?v:d,u=null!=f?f:u,h={...h,[o]:{...h[o],...b}},_&&m<=50&&(m++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):_.rects),({x:d,y:u}=DE(c,p,l))),n=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:h}})(t,e,{...r,platform:o})})(t,e,{placement:this.getPlacement(),strategy:"absolute",middleware:[(u=this.getTooltipOffset(),void 0===u&&(u=0),{name:"offset",options:u,async fn(t){var e,n;const{x:i,y:r,placement:o,middlewareData:a}=t,s=await async function(t,e){const{placement:n,platform:i,elements:r}=t,o=await(null==i.isRTL?void 0:i.isRTL(r.floating)),a=_E(n),s=EE(n),l="y"===CE(n),c=ME.has(a)?-1:1,d=o&&l?-1:1,u=bE(e,t);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(h="end"===s?-1*m:m),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,u);return o===(null==(e=a.offset)?void 0:e.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:o}}}}),Oy({boundary:this.container,padding:10}),Iy({boundary:this.container,padding:10}),Ry({element:n,padding:4})]}),[l]=a.split("-"),{x:c,y:d}=o.arrow??{};var u;Object.assign(e.style,{left:`${i}px`,top:`${r}px`,position:s}),e.dataset.floatingSide=l,Object.assign(n.style,{bottom:"",left:null==c?"":`${c}px`,right:"",top:null==d?"":`${d}px`})}}get hasExplicitRtlDirection(){return q(this.textDirection)||"rtl"===this.getAttribute("dir")}get floatingTextDirection(){return this.hasExplicitRtlDirection?"rtl":"ltr"}firstUpdated(){this.shouldShowTooltipOnFocus&&(this.addEventListener("focusin",this.onFocusIn),this.addEventListener("focusout",this.onFocusOut))}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isAnyModalOpen:t.modalState?.isAnyModalOpen})))}disconnectedCallback(){this.shouldShowTooltipOnFocus&&(this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut)),this.stopTooltipAutoUpdate(),super.disconnectedCallback(),this.unsubscribeFromLocalState?.()}getTooltipOffset(){const t=getComputedStyle(this),e=parseFloat(t.getPropertyValue("--tooltip-offset")),n=parseFloat(t.getPropertyValue("--tooltip-alignment-offset"));return Number.isNaN(n)?Number.isNaN(e)?8:e:{mainAxis:Number.isNaN(e)?8:e,alignmentAxis:n}}getPlacement(){return function({direction:t,position:e}){const[n,i]=e.split("-");return"center"===i?n:`${n}-${{ltr:{left:"start",right:"end"},rtl:{left:"end",right:"start"}}[t][i]}`}({direction:this.floatingTextDirection,position:this.tooltipPosition})}syncTooltipDirectionState(){this.setAttribute("dir",this.floatingTextDirection)}startTooltipAutoUpdate(t){const e=this.anchorContainerRef.value;e&&(this.stopTooltipAutoUpdate(),this.autoUpdateCleanup=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=uy(t),d=r||o?[...c?ly(c):[],...ly(e)]:[];d.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const u=c&&s?function(t,e){let n,i=null;const r=FE(t);function o(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const c=t.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||e(),!p||!h)return;const m={rootMargin:-hE(u)+"px "+-hE(r.clientWidth-(d+p))+"px "+-hE(r.clientHeight-(u+h))+"px "+-hE(d)+"px",threshold:uE(0,dE(1,l))||1};let g=!0;function v(e){const i=e[0].intersectionRatio;if(i!==l){if(!g)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||Ay(c,t.getBoundingClientRect())||a(),g=!1}try{i=new IntersectionObserver(v,{...m,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(v,m)}i.observe(t)}(!0),o}(c,n):null;let p,h=-1,m=null;a&&(m=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var t;null==(t=m)||t.observe(e)}))),n()})),c&&!l&&m.observe(c),m.observe(e));let g=l?gy(t):null;return l&&function e(){const i=gy(t);g&&!Ay(g,i)&&n(),g=i,p=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{r&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=m)||t.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(e,t,(()=>{this.updateTooltipPosition().then((()=>{this.tooltipHidden||this.tooltipRef.value!==t||(t.style.visibility="visible")}))})))}stopTooltipAutoUpdate(){this.autoUpdateCleanup?.(),this.autoUpdateCleanup=null}show(){if(this.tooltipRef.value){const t=this.tooltipRef.value;t.style.display="none",t.style.visibility="hidden",this.syncTooltipDirectionState(),t.style.display="block",this.tooltipHidden=!1,this.startTooltipAutoUpdate(t)}return null}
862hide(){if(this.tooltipRef.value){const t=this.tooltipRef.value;this.stopTooltipAutoUpdate(),t.style.display="none",delete t.dataset.floatingSide,t.style.removeProperty("visibility"),this.tooltipHidden=!0}}onMouseEnter(){this.show()}onMouseLeave(){this.hide()}onFocusIn(){this.shouldShowTooltipOnFocus&&this.show()}onFocusOut(){this.shouldShowTooltipOnFocus&&this.hide()}updated(t){t.has("tooltipLabel")&&!this.tooltipHidden&&this.updateTooltipPosition(),!t.has("tooltipPosition")&&!t.has("textDirection")||this.tooltipHidden||this.updateTooltipPosition(),t.has("shouldShowTooltipOnFocus")&&(this.shouldShowTooltipOnFocus?(this.addEventListener("focusin",this.onFocusIn),this.addEventListener("focusout",this.onFocusOut)):(this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut),this.hide()))}render(){const t=!this.localState?.modalState?.isAnyModalOpen;return t||this.hide(),Q_(this.shouldRenderTooltip,(()=>p.x`
863				<div
864					class="tooltip-container"
865					@mouseenter=${t?this.onMouseEnter:()=>{}}
866					@mouseleave=${this.onMouseLeave}
867					${cE(this.anchorContainerRef)}
868				>
869					<div
870						class="tooltip"
871						data-position="${this.tooltipPosition}"
872						${cE(this.tooltipRef)}
873					>
874						<span class="tooltip-label locale-page-nav-small-focused">
875							${this.tooltipLabel}
876						</span>
877						<span class="tooltip-arrow" ${cE(this.tooltipArrowRef)}></span>
878					</div>
879					<slot></slot>
880				</div>
881			`),(()=>p.x`<slot></slot>`))}};Py.tokens={"tooltip-width":"max-content","tooltip-height":"max-content","tooltip-padding":"4px 8px","tooltip-background":"#000","tooltip-border-radius":"2px","tooltip-opacity":"0.75","tooltip-color":"#f9f9f9","tooltip-font-size":"13px","tooltip-line-height":"14px","tooltip-letter-spacing":"1.55px","tooltip-text-transform":"uppercase","tooltip-text-align":"center","tooltip-arrow-size":"8px","tooltip-arrow-border-style":"solid","tooltip-offset":"8","tooltip-arrow-top":"unset","tooltip-font-family":"inherit"},Py.tokenPrefix="info-tooltip",Py.styles=[ky,Ly],Py=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
881)([p_],Py);const Dy=({ariaLabel:t,altText:e,className:n,src:i,height:r,width:o})=>p.x` <img
882		aria-label="${t}"
883		alt="${e}"
884		class="${n}"
885		src="${i}"
886		height="${r}"
887		width="${o}"
888	/>`;class Ny{constructor({host:t,storageKey:e,dialogRef:n,storeKey:i,isTakeover:r,isResponsiveTakeover:o}){this.viewRegistry={},this.nestedMenuRegistry={},this.captionsEnabled=!1,this.resizeEventHandler=null,this.releaseFocusIsolation=null,this.main="main",this.handleEscapeKey=t=>{const e=this.dialogRef?.value?.open,n=this.getStoredView();"Escape"===t.key&&e&&(this.isNested(n)&&this.navigateTo(this.main,{visible:!1,overlayName:n}),this.toggleModal({overlayName:this.storageKey}))},(this.host=t).addController(this),this.storageKey=e,this.dialogRef=n,this.storeKey=i,this.isTakeover=r,this.isResponsiveTakeover=o}registerViews(t,e){this.viewRegistry[t]=e,this.reinitializeAfterRegistration()}reinitializeAfterRegistration(){this.initializeMenuMap(),this.initializeCurrentView()}registerNestedMenus(t,e){this.nestedMenuRegistry[t]=e,this.reinitializeAfterRegistration()}hostConnected(){this.initializeMenuMap(),this.initializeCurrentView(),this.unsubscribeFromLocalState=this.host.localState?.subscribe?.(this.host,(({modalState:t})=>{const e=t?.modals[this.storageKey]||void 0;e&&!e.isOpen&&this.dialogRef?.value?.open&&this.toggleModal({overlayName:this.storageKey})})),this.subscribeToCaptionsState(),this.isResponsiveTakeover&&this.setupResponsiveTakeover(),this.host.requestUpdate()}checkBreakpointAndUpdateTakeover(t,e=!0){const{breakpoint:n}=this.host,{breakpoints:i}=this.host,r=i?.get(n);if(!r)return;const o=t<r;e&&!this.dialogRef?.value?.open||this.updateTakeoverState(o,this.storageKey)}setupResponsiveTakeover(){this.resizeEventHandler=t=>{const e=t,{width:n,container:i}=e.detail||{};i&&i!==this.host.container||this.checkBreakpointAndUpdateTakeover(n)},window.addEventListener(Ct,this.resizeEventHandler)}cleanupResponsiveTakeover(){this.resizeEventHandler&&(window.removeEventListener(Ct,this.resizeEventHandler),this.resizeEventHandler=null)}initializeMenuMap(){this.viewRegistry[this.storageKey]?this.menuMap=this.viewRegistry[this.storageKey]:!this.menuMap&&this.host.clientConfiguration?.[this.storageKey]&&(this.menuMap=this.host.clientConfiguration?.[this.storageKey]())}subscribeToCaptionsState(){const t=this.host?.stateStream$;if(!t)return;const e=t.subscribe((t=>{this.captionsEnabled=t?.captions?.enabled??!1}));this.unsubscribeFromStream=()=>e?.unsubscribe()}initializeCurrentView(){const t=this.getStoredView();this.currentView=this.menuMap?.[t]}getStoredView(){return sessionStorage.getItem(`${this.storageKey}-view`)||this.main}hostDisconnected(){this.cleanupHostClasses(),this.removeEscapeKeyListener(),this.clearFocusIsolation(),this.menuMap=null,this.isResponsiveTakeover&&this.cleanupResponsiveTakeover(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0),this.unsubscribeFromStream&&(this.unsubscribeFromStream(),this.unsubscribeFromStream=void 0)}cleanupHostClasses(){this.host.classList.forEach((t=>this.host.classList.remove(t)))}updateDialogRefId(t){this.dialogRef.value&&(this.dialogRef.value.id=t)}navigateTo(t,e=null,n){const i={view:t,takeoverState:e,label:n};this.navigateToWithParams(i)}navigateToWithParams({view:t,label:e,takeoverState:n=null}){this.isValidView(t)?(e&&(this.currentLabel=e,this.dialogRef.value?.setAttribute("aria-label",this.currentLabel)),this.setCurrentView(t),this.storeCurrentView(t),this.updateDialogRefId(t),n&&this.updateTakeoverState(n.visible,n.overlayName),this.isNested(t)&&this.host.moveFocusTo?.(this.dialogRef.value),this.requestHostUpdate()):this.logNavigationError(t)}isValidView(t){return!!this.menuMap?.[t]&&this.currentView!==this.menuMap[t]}logNavigationError(t){console.warn(`DialogModal.controller cannot navigate to a view of value: ${t} not found in menuMap with value: ${JSON.stringify(this.menuMap)}`)}setCurrentView(t){this.currentView=this.menuMap[t]}storeCurrentView(t){sessionStorage.setItem(`${this.storageKey}-view`,t)}requestHostUpdate(){this.dialogRef?.value?.getRootNode().host.requestUpdate()}isNested(t){const e=this.nestedMenuRegistry[this.storageKey];if(e?.includes(t))return!0;const n=this.host.clientConfiguration?.nestedMenuList?.();return!!n?.includes(t)}addEscapeKeyListener(){document.addEventListener("keydown",this.handleEscapeKey)}removeEscapeKeyListener(){document.removeEventListener("keydown",this.handleEscapeKey)}
888dispatchModalEvent(t,e){this.host?.commandBus?.dispatchCommand(Ql.MODAL_EVENT,{modalName:t,type:e?Nf:Mf,currentViewName:this.getStoredView(),localState:this.host?.localState})}updateTakeoverState(t,e){this.updateLocalStateWithTakeoverState(t,e),this.handleCaptionsForTakeover(t),this.updateAdBadgeState(t)}updateLocalStateWithTakeoverState(t,e){this.host?.localState?.updateTakeoverState(t,e)}handleCaptionsForTakeover(t){t?(this.resumeCaptions=this.captionsEnabled,this.host?.commandBus?.dispatchCommand(Ql.DISABLE_CAPTIONS,{label:"Dialog controller "})):this.resumeCaptions&&this.host?.commandBus?.dispatchCommand(Ql.ENABLE_CAPTIONS,{label:"Dialog controller "})}updateAdBadgeState(t){this.host?.localState?.updateAdBadgeForceHide(t)}toggleModal({overlayName:t,showModal:e=!1,label:n}){this.removeEscapeKeyListener();const i=this.dialogRef?.value?.open;let r=i;i?r=this.closeDialog(t):(this.currentLabel=n,r=this.openDialog(e)),this.updateDialogAfterToggle(r,t)}closeDialog(t){this.clearFocusIsolation(),this.dialogRef?.value?.close(),this.dialogRef.value?.removeAttribute("aria-label"),this.currentLabel=void 0;const e=this.getStoredView();return this.isNested(e)&&this.navigateTo(this.main,{visible:!1,overlayName:t}),!1}openDialog(t){return t?this.dialogRef?.value?.showModal():(this.addEscapeKeyListener(),this.dialogRef?.value?.show()),this.currentLabel?this.dialogRef.value?.setAttribute("aria-label",this.currentLabel):console.warn(`Dialog "${this.storageKey}" opened without an accessible 'label'.`),this.applyFocusIsolation(),!0}applyFocusIsolation(){this.clearFocusIsolation();const t=this.dialogRef?.value,e=this.host.container,n=this.host instanceof HTMLElement?this.host:null;t&&e&&n&&rt(t)&&(this.releaseFocusIsolation=st(e,n))}clearFocusIsolation(){this.releaseFocusIsolation?.(),this.releaseFocusIsolation=null}updateDialogAfterToggle(t,e){const n=this.getDialogId(t,e);if(this.dispatchModalEvent(e,t),this.updateDialogRefId(n),this.resetDialogScroll(),this.updateHostActiveClass(t),this.isTakeover)this.updateTakeoverState(t,this.storageKey);else if(this.isResponsiveTakeover&&t){const t=this.host.container?.clientWidth;this.checkBreakpointAndUpdateTakeover(t,!1)}else this.isResponsiveTakeover&&!t&&this.updateTakeoverState(!1,this.storageKey);this.host.requestUpdate()}getDialogId(t,e){return t?sessionStorage.getItem(`${this.storageKey}-view`)??e??this.main:null}resetDialogScroll(){this.dialogRef.value&&(this.dialogRef.value.scrollTop=0)}updateHostActiveClass(t){this.host.classList.toggle("active",t)}}const My=k_(class extends P_{constructor(t){if(super(t),1!==t.type||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const n=t.element.classList;for(const t of this.st)t in e||(n.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return p.T}}),Uy=new Map;function By(t,e=["Enter"],n=[" "]){return function(i,r,o){const a=o.value;return o.value=function(){const i=this.renderRoot.querySelector(t);if(i&&!Uy.has(i)){let r,o;const a=t=>{const{key:n}=t;return e.includes(n)},s=t=>{const{key:e}=t;return n.includes(e)},l=(e,n=(()=>{}))=>{e.stopPropagation(),e.preventDefault(),n.call(this,e),this.commandBus?.dispatchCommand?.(Ql.KEYBOARD_EVENT,{type:e.type,label:`${this.tagName.toUpperCase()}`,ref:`${this.tagName.toLowerCase()}${t}`})},c=(e,n=(()=>{}))=>{e.stopPropagation(),e.preventDefault(),n.call(this,e),this.commandBus?.dispatchCommand?.(Ql.KEYBOARD_EVENT,{type:e.type,label:`${this.tagName.toUpperCase()}`,ref:`${this.tagName.toLowerCase()}${t}`})},d=e=>{r=t=>{a(t)&&(l(t,this.handleKeyPress),c(t,this.handleKeyDown))},o=t=>{s(t)&&l(t,this.handleKeyPress)},i.addEventListener("keydown",r),i.addEventListener("keyup",o),this.commandBus?.dis
888patchCommand?.(Ql.FOCUS_EVENT,{action:"focus",label:`${this.tagName.toUpperCase()}`,ref:`${this.tagName.toLowerCase()}${t}`})},u=e=>{i.removeEventListener("keydown",r),i.removeEventListener("keyup",o),this.commandBus?.dispatchCommand?.(Ql.FOCUS_EVENT,{action:"blur",label:`${this.tagName.toUpperCase()}`,ref:`${this.tagName.toLowerCase()}${t}`})};i.addEventListener("focus",d),i.addEventListener("blur",u),Uy.set(i,{onFocus:d,onBlur:u})}a&&a.apply(this,...arguments)},o}}function Vy(t){return function(e,n,i){const r=i.value;return i.value=function(){const e=this.renderRoot.querySelector(t),n=Uy.get(e);n&&(e.removeEventListener("focus",n.onFocus),e.removeEventListener("blur",n.onBlur),Uy.delete(e)),r&&r.apply(this,...arguments)},i}}const Fy="important",zy=" !"+Fy,$y=k_(class extends P_{constructor(t){if(super(t),1!==t.type||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,n)=>{const i=t[n];return null==i?e:e+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:n}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?n.removeProperty(t):n[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(zy);t.includes("-")||e?n.setProperty(t,e?i.slice(0,-11):i,e?Fy:""):n[t]=i}}return p.T}}),Hy=({onClick:t,onDisabledClick:e,ariaLabel:n,ariaPressed:i,className:r,disabled:o,tabIndex:a=0,content:s,part:l,styles:c={},containerClassName:d="",doesTemplateHandleKeyEvents:u=!1})=>{const h=o?e:t,m=My({"button-container":!0,[d]:!0,disabled:o?"disabled":""});return p.x`
889		<div
890			aria-label="${n}"
891			aria-disabled=${!!o}
892			aria-pressed=${i}
893			class=${m}
894			@click=${h}
895			@keydown=${u?function(t){"Enter"===t.key&&(t.preventDefault(),h?.())}:void 0}
896			@keyup=${u?function(t){" "===t.key&&(t.preventDefault(),h?.())}:void 0}
897			tabindex="${o?"-1":a}"
898			role="button"
899		>
900			<button
901				class="${r}"
902				part="${l}"
903				tabindex="-1"
904				style=${$y(c)}
905				aria-hidden="true"
906			>
907				${s}
908			</button>
909		</div>
910	`};class Gy{get visible(){return this.streamController?.value?.isCatchUpToLiveLifeCycle}get ariaLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CATCH_UP_TO_LIVE.JUMP_TO_LIVE,"Jump to Live")}get contentLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CATCH_UP_TO_LIVE.JUMP_TO_LIVE_LABEL,"Go Live")}get state(){const{visible:t,ariaLabel:e,contentLabel:n}=this;return{visible:t,ariaLabel:e,contentLabel:n}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}jumpToLiveAction(){this.host?.commandBus?.dispatchCommand?.(Ql.CUTL_JUMP_TO_LIVE,{label:"CUTL Jump to Live"})}}const Yy=Wb("\n  :host([hidden]) {\n    display: none;\n  }\n\n  @media (max-width: 766px) {\n    :host {\n      --controls__host--display: none;\n    }\n  }\n"),jy={"controls__host--display":"flex","controls__host--width":"30px","controls__host--height":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","button-container--opacity":"1","button-container--opacity-hover":"1","button-container__round--size":"","button-container__round--background-color":"","button-container__round__hover--background-color":"","button-container__round-padding":"","controls-background-color":"#FFF","controls--active-background-color":"#FFF","controls--hover-background-color":"","controls--pressed-background-color":"","controls--active-hover-background-color":"","control-cursor":"pointer","button-container--align-items":"center","button-container--justify-content":"center","control--mask":"none"},Ky={...jy,"controls__host--display":"flex","button-container--width":"auto","button-container--height":"30px","controls__host--width":"auto","control-height":"30px","control-width":"auto","controls-background-color":"transparent","controls--active-background-color":"transparent","control--font-size":"14px","control--font-color":"#cecfcf","controls--active-font-color":"#ffffff","control-cursor":"pointer",responsive:{}};var Wy=Object.defineProperty,qy=Object.getOwnPropertyDescriptor,Xy=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?qy(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&Wy(e,n,o),o};const Zy={isCatchUpToLiveLifeCycle:!1,supportsCatchUpToLive:!1,catchUpToLiveData:!1},Qy=t=>{const{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}=t;return{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}};let Jy=class extends pt{constructor(){super(),this.streamController=new G_(this,Qy,Zy),this.controller=new Gy(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){return{"button-container":this.buttonContainer}}
910disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}firstUpdated(t){super.firstUpdated(t)}handleKeyPress(){this.controller.jumpToLiveAction()}render(){const{visible:t,ariaLabel:e,contentLabel:n}=this.controller.state,i=My({"catch-up-to-live-jump-to-live":!0,control:!0}),r={onClick:()=>this.controller.jumpToLiveAction(),ariaLabel:e,styles:{textTransform:"uppercase",fontWeight:"500",lineHeight:"20px",whiteSpace:"nowrap"},content:p.x`<span>${n}</span>`,className:i};return t?p.x`
911					<info-tooltip
912						tooltipPosition="${this.tooltipPosition}"
913						tooltipLabel="${e}"
914						.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
915					>
916						${Hy(r)}
917					</info-tooltip>
918				`:null}};Jy.tokens=Ky,Jy.styles=[Yy,Ly],Xy([(0,p.n)({type:Object})],Jy.prototype,"store",2),Xy([b(".button-container")],Jy.prototype,"buttonContainer",2),Xy([Vy(".button-container")],Jy.prototype,"disconnectedCallback",1),Xy([By(".button-container")],Jy.prototype,"updated",1),Jy=Xy([p_],Jy);class tS{get visible(){return this.streamController?.value?.isCatchUpToLiveLifeCycle}get ariaLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CATCH_UP_TO_LIVE.NEXT_CLIP,"Next Clip")}get state(){const{visible:t,ariaLabel:e}=this;return{visible:t,ariaLabel:e}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}nextClipAction(){this.host?.commandBus?.dispatchCommand?.(Ql.CUTL_NEXT,{label:"CUTL Next Clip"})}}const eS=Wb("\n  :host([hidden]) {\n    display: none;\n  }\n\n  @media (max-width: 766px) {\n    :host {\n      --controls__host--display: none;\n    }\n  }\n"),nS={...jy,"controls__host--display":"flex","controls__host--justify-content":"center","controls__host--width":"30px","controls__host--height":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","control--mask":"url(\"data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7430_20487)'%3e%3cpath%20d='M20.4168%2016L7.0835%206V26L20.4168%2016Z'%20fill='%23CECFCF'/%3e%3cpath%20d='M22.4168%206.33333H25.0835V25.6667H22.4168V6.33333Z'%20fill='%23CECFCF'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7430_20487'%3e%3crect%20width='32'%20height='32'%20fill='white'%20transform='translate(0.0834961)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\")",responsive:{}};var iS=Object.defineProperty,rS=Object.getOwnPropertyDescriptor,oS=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?rS(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&iS(e,n,o),o};const aS={isCatchUpToLiveLifeCycle:!1,supportsCatchUpToLive:!1,catchUpToLiveData:!1},sS=t=>{const{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}=t;return{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}};let lS=class extends pt{constructor(){super(),this.streamController=new G_(this,sS,aS),this.controller=new tS(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){return{"button-container":this.buttonContainer}}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}firstUpdated(t){super.firstUpdated(t)}handleKeyPress(){this.controller.nextClipAction()}render(){const{visible:t,ariaLabel:e}=this.controller.state,n={onClick:()=>this.controller.nextClipAction(),ariaLabel:e,className:My({"catch-up-to-live-next-clip":!0,control:!0})};return t?p.x`
919					<info-tooltip
920						tooltipPosition="${this.tooltipPosition}"
921						tooltipLabel="${e}"
922						.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
923					>
924						${Hy(n)}
925					</info-tooltip>
926				`:null}};lS.tokens=nS,lS.styles=[eS,Ly],oS([(0,p.n)({type:Object})],lS.prototype,"store",2),oS([b(".button-container")],lS.prototype,"buttonContainer",2),oS([Vy(".button-container")],lS.prototype,"disconnectedCallback",1),oS([By(".button-container")],lS.prototype,"updated",1),lS=oS([p_],lS);class cS{get visible(){return this.streamController?.value?.isCatchUpToLiveLifeCycle}get ariaLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CATCH_UP_TO_LIVE.PREVIOUS_CLIP,"Previous Clip")}get state(){const{visible:t,ariaLabel:e}=this;return{visible:t,ariaLabel:e}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}
926previousClipAction(){this.host?.commandBus?.dispatchCommand?.(Ql.CUTL_PREV,{label:"CUTL Previous Clip"})}}const dS=Wb("\n  :host([hidden]) {\n    display: none;\n  }\n\n  @media (max-width: 766px) {\n    :host {\n      --controls__host--display: none;\n    }\n  }\n"),uS={...jy,"controls__host--display":"flex","controls__host--justify-content":"center","controls__host--width":"30px","controls__host--height":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","control--mask":"url(\"data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_7430_20484)'%3e%3cpath%20d='M11.7502%2016L25.0835%2026V6L11.7502%2016Z'%20fill='%23CECFCF'/%3e%3cpath%20d='M7.0835%206.33333H9.75016V25.6667H7.0835V6.33333Z'%20fill='%23CECFCF'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7430_20484'%3e%3crect%20width='32'%20height='32'%20fill='white'%20transform='translate(0.0834961)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\")",responsive:{}};var pS=Object.defineProperty,hS=Object.getOwnPropertyDescriptor,mS=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?hS(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&pS(e,n,o),o};const gS={isCatchUpToLiveLifeCycle:!1,supportsCatchUpToLive:!1,catchUpToLiveData:!1},vS=t=>{const{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}=t;return{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}};let fS=class extends pt{constructor(){super(),this.streamController=new G_(this,vS,gS),this.controller=new cS(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){return{"button-container":this.buttonContainer}}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}firstUpdated(t){super.firstUpdated(t)}handleKeyPress(){this.controller.previousClipAction()}render(){const{visible:t,ariaLabel:e}=this.controller.state,n={onClick:()=>this.controller.previousClipAction(),ariaLabel:e,className:My({"catch-up-to-live-previous-clip":!0,control:!0})};return t?p.x`
927					<info-tooltip
928						tooltipPosition="${this.tooltipPosition}"
929						tooltipLabel="${e}"
930						.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
931					>
932						${Hy(n)}
933					</info-tooltip>
934				`:null}};fS.tokens=uS,fS.styles=[dS,Ly],mS([(0,p.n)({type:Object})],fS.prototype,"store",2),mS([b(".button-container")],fS.prototype,"buttonContainer",2),mS([Vy(".button-container")],fS.prototype,"disconnectedCallback",1),mS([By(".button-container")],fS.prototype,"updated",1),fS=mS([p_],fS);class bS{get visible(){const t=this.streamController?.value?.supportsCatchUpToLive,e=this.host?.localState?.fullscreen?.isEnabled;return!e&&t}get ariaLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CATCH_UP_TO_LIVE.SLIDE,"Catch up to live")}get state(){const{visible:t,ariaLabel:e}=this;return{visible:t,ariaLabel:e}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}slideAction(){this.host?.commandBus?.dispatchCommand?.(ff.CATCH_UP_TO_LIVE_SLIDE)}}const _S=Wb("\n  :host([hidden]) {\n    display: none;\n  }\n\n  @media (max-width: 766px) {\n    :host {\n      --controls__host--display: none;\n    }\n  }\n"),ES={...jy,"controls__host--display":"flex","controls__host--justify-content":"center","controls__host--width":"30px","controls__host--height":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","control--mask":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%3e%3cg%20id='Pinchback%20Icon%20Web'%3e%3crect%20id='Rectangle%203367'%20x='5.0835'%20y='7'%20width='13'%20height='18'%20fill='%23CECFCF'%20stroke='%23CECFCF'%20stroke-width='2'/%3e%3crect%20id='Rectangle%203368'%20x='22.0835'%20y='6'%20width='6'%20height='20'%20fill='%23CECFCF'/%3e%3c/g%3e%3c/svg%3e\")",responsive:{}};var yS=Object.defineProperty,SS=Object.getOwnPropertyDescriptor,TS=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?SS(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&yS(e,n,o),o};const CS={isCatchUpToLiveLifeCycle:!1,supportsCatchUpToLive:!1,catchUpToLiveData:!1},wS=t=>{const{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}=t;return{isCatchUpToLiveLifeCycle:e,supportsCatchUpToLive:n,catchUpToLiveData:i}};let AS=class extends pt{constructor(){super(),this.streamController=new G_(this,wS,CS),this.controller=new bS(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){return{"button-container":this.buttonContainer}}
934connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isEnabled:t.fullscreen.isEnabled})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState?.()}updated(t){super.updated(t)}firstUpdated(t){super.firstUpdated(t)}handleKeyPress(){this.controller.slideAction()}render(){const{visible:t,ariaLabel:e}=this.controller.state,n={onClick:()=>this.controller.slideAction(),ariaLabel:e,className:My({"catch-up-to-live-slide":!0,control:!0})};return this.hidden=!t,t?p.x`
935					<info-tooltip
936						tooltipPosition="${this.tooltipPosition}"
937						tooltipLabel="${e}"
938						.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
939					>
940						${Hy(n)}
941					</info-tooltip>
942				`:null}};AS.tokens=ES,AS.styles=[_S,Ly],TS([(0,p.n)({type:Object})],AS.prototype,"store",2),TS([b(".button-container")],AS.prototype,"buttonContainer",2),TS([Vy(".button-container")],AS.prototype,"disconnectedCallback",1),TS([By(".button-container")],AS.prototype,"updated",1),AS=TS([p_],AS);const IS=Wb("\n\t:host .close-player-icon {\n\t\t--control--mask: var(--close-player-icon);\n\t}\n"),OS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cg%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M36%2036H0V0h36z'/%3e%3cpath%20fill='%23F9F9F9'%20d='M17.9%2016.239l8.833-9.085c.255-.266.629-.404%201.01-.404.248%200%20.491.056.706.175.641.338.817%201.121.301%201.649l-9.081%209.342%209.08%209.312c.517.53.343%201.311-.313%201.657-.546.287-1.276.2-1.7-.231l-8.835-9.062-8.838%209.064c-.421.428-1.152.516-1.699.229-.655-.346-.829-1.127-.312-1.657l9.08-9.312-9.08-9.341c-.516-.529-.34-1.312.313-1.657.202-.112.445-.168.693-.168.382%200%20.755.138%201.007.4l8.836%209.089z'/%3e%3c/g%3e%3c/svg%3e",RS={"controls__host--display":"flex","controls__host--width":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","button-container--align-items":"center","button-container--justify-content":"center","close-player-icon":`url("${OS}")`,responsive:{}};var xS=Object.defineProperty,LS=Object.getOwnPropertyDescriptor,kS=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?LS(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&xS(e,n,o),o};let PS=class extends pt{getQAElements(){return{closePlayerButton:this.closePlayerButton,"button-container":this.buttonContainer}}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}primaryAction(){this.localState?.updateMiniPlayerMode(!1),this.commandBus?.dispatchCommand(Ql.CLOSE_PLAYER)}handleKeyPress(){this.primaryAction()}render(){const t=this.dictionary?.translate(Xl.MEDIA.CONTROLS.CLOSE,"Close"),e={onClick:()=>{this.primaryAction()},ariaLabel:t,className:"close-player-icon control",tabIndex:0};return p.x`
943			<info-tooltip
944				tooltipPosition="${this.tooltipPosition}"
945				tooltipLabel="${t}"
946				.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
947			>
948				${Hy(e)}
949			</info-tooltip>
950		`}};PS.tokens=RS,PS.styles=[IS,Ly],kS([b(".close-player-icon")],PS.prototype,"closePlayerButton",2),kS([b(".button-container")],PS.prototype,"buttonContainer",2),kS([Vy(".button-container")],PS.prototype,"disconnectedCallback",1),kS([By(".button-container")],PS.prototype,"updated",1),PS=kS([p_],PS);let DS=class{get BACK_10(){return 1e4}get BACK_30(){return 3e4}get offset(){return this.BACK_10}get ariaLabel(){const{dictionary:t}=this.host,e={key:Xl.MEDIA.PLAYER.BACK10,fallback:"Skip Back 10 Seconds"};return t?.translate(e.key,e.fallback)}get controlIcon(){return"--control--mask"}get disabled(){return!1}get visible(){return!0}get seekControlled(){return this.streamController?.value?.isLive}get label(){return this.ariaLabel}get state(){const{visible:t,disabled:e,ariaLabel:n,label:i,controlIcon:r,offset:o,seekControlled:a}=this,{isLive:s,noSeek:l}=this.streamController.value;return{offset:o,ariaLabel:n,controlIcon:r,disabled:e,visible:t,seekControlled:a,label:i,isLive:s,noSeek:l}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}quickRewindAction(){if(this.streamController.value.noSeek)return;const{offset:t,seekControlled:e}=this,{playheadPositionMs:n}=this.streamController.value;
950this.host?.commandBus?.dispatchCommand?.(Ql.QUICK_REWIND,{offset:t,playheadPositionMs:n,localState:this.host?.localState}),e&&this.host?.commandBus?.dispatchCommand?.(Ql.NOTIFY_CONTROLS_DISABLED,{control:"quick-rewind",localState:this.host?.localState})}handleDisabledAction(){this.streamController.value.noSeek||this.host?.commandBus?.dispatchCommand?.(Ql.NOTIFY_CONTROLS_DISABLED,{control:"quick-rewind",localState:this.host?.localState})}};const NS="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.3567%2016.6433C5.10259%2016.6433%205.70752%2017.2482%205.70752%2017.9941C5.70752%2024.7717%2011.2224%2030.2866%2018%2030.2866C24.7776%2030.2866%2030.2925%2024.7776%2030.2925%2018C30.2925%2011.2224%2024.7776%205.70752%2018%205.70752C16.0325%205.70752%2014.159%206.15975%2012.4205%207.04659C11.1989%207.66915%2010.083%208.50901%209.12569%209.50157H12.8023C13.5482%209.50157%2014.1531%2010.1065%2014.1531%2010.8524C14.1531%2011.5983%2013.5482%2012.2032%2012.8023%2012.2032H6.30658C5.56069%2012.2032%204.95576%2011.5983%204.95576%2010.8524V4.35082C4.95576%203.60493%205.56069%203%206.30658%203C7.05247%203%207.6574%203.60493%207.6574%204.35082V7.15231C10.4354%204.49765%2014.1179%203%2018%203C26.2694%203%2033%209.73062%2033%2018C33%2026.2694%2026.2694%2033%2018%2033C9.73062%2033%203%2026.2694%203%2018C3.00587%2017.2541%203.61081%2016.6433%204.3567%2016.6433Z'%20fill='%23CACACA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.7252%2020.2476V21.1994H16.5491V20.2476H15.2493V14.6502H14.2892C13.937%2014.9017%2013.4087%2015.0653%2012.7085%2015.1449V15.8535H14.0292V20.2518H12.7252V20.2476Z'%20fill='%23CACACA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1939%2014.9101C21.8627%2014.7382%2021.456%2014.6502%2020.978%2014.6502C20.5%2014.6502%2020.0975%2014.7382%2019.7662%2014.9101C19.4392%2015.082%2019.1876%2015.3336%2019.0115%2015.6606C18.8396%2015.9877%2018.7138%2016.3399%2018.6425%2016.7256C18.5713%2017.1072%2018.5335%2017.5558%2018.5335%2018.0632C18.5335%2018.5705%2018.5713%2019.0191%2018.6425%2019.4007C18.7138%2019.7822%2018.8354%2020.1386%2019.0115%2020.4657C19.1834%2020.7927%2019.435%2021.0401%2019.7662%2021.212C20.0933%2021.3839%2020.5%2021.4678%2020.978%2021.4678C21.456%2021.4678%2021.8627%2021.3839%2022.1939%2021.212C22.5251%2021.0401%2022.7767%2020.7927%2022.9528%2020.4657C23.1247%2020.1386%2023.2505%2019.7864%2023.3218%2019.4007C23.3931%2019.0191%2023.4308%2018.5705%2023.4308%2018.0632C23.4308%2017.5558%2023.3931%2017.1072%2023.3218%2016.7256C23.2505%2016.3441%2023.1289%2015.9877%2022.9528%2015.6606C22.7767%2015.3336%2022.5251%2015.082%2022.1939%2014.9101ZM21.9507%2019.9164C21.7746%2020.3189%2021.4476%2020.516%2020.978%2020.516C20.5042%2020.516%2020.1813%2020.3147%2020.0094%2019.9164C19.8375%2019.5139%2019.7495%2018.9688%2019.7495%2018.2728C19.7495%2017.581%2019.7788%2017.0611%2019.8417%2016.7214C19.9046%2016.3818%2020.0304%2016.1093%2020.2149%2015.9038C20.3994%2015.7026%2020.6551%2015.5977%2020.978%2015.5977C21.4518%2015.5977%2021.7746%2015.799%2021.9507%2016.1973C22.1268%2016.5998%2022.2149%2017.2162%2022.2149%2018.0548C22.2149%2018.8975%2022.1268%2019.5139%2021.9507%2019.9164Z'%20fill='%23CACACA'/%3e%3c/svg%3e",MS={...jy,"control-mask":`url("${NS}")`,"background-color":"#000000","quick-rewind-shell":`url("${NS}")`,"quick-rewind-10":"none","quick-rewind-30":"none",responsive:{}};var US=Object.defineProperty,BS=Object.getOwnPropertyDescriptor,VS=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?BS(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&US(e,n,o),o};const FS={notready:!0,noSeek:!1,isLive:!1,isVOD:!1,isLiveEvent:!1,isInterstitialPlaying:!1,isBehindLiveEdge:!1,hasStarted:!1,ended:!1,isPretune:!1,liveApi:!1,isSlidingWindow:!1,playheadPositionMs:0,startPositionMs:0,startPositionPdtMs:0,seekableStartMs:0,currentTimeAsPdt:0,endPositionPdtMs:0},zS=t=>{const{streamDetails:e,interstitials:n,playback:i,isPretune:r,mediaClient:o,timeline:a}=t,{noSeek:s,isLive:l,isVOD:c,isLiveEvent:d,isSlidingWindow:u}=e,{isInterstitialPlaying:p}=n,{isBehindLiveEdge:h,hasStarted:m,ended:g,notready:v}=i,{isInPretune:f}=r,{timeline:{currentTimeAsPdt:b,endPositionPdtMs:_,playheadPositionMs:E,startPositionMs:y,seekableStartMs:S,startPositionPdtMs:T}}=a,{attributes:{supports:{liveApi:C}}}=o;return{notready:!!v,noSeek:s,isLive:l,isVOD:c,isLiveEvent:d,isInterstitialPlaying:p,isBehindLiveEdge:h,hasStarted:m,ended:g,isPretune:f,liveApi:C,currentTimeAsPdt:b,endPositionPdtMs:_,isSlidingWindow:u,playheadPositionMs:E,startPositionMs:y,startPositionPdtMs:T,seekableStartMs:S}};let $S=class extends pt{constructor(){super(),this.streamController=new G_(this,zS,FS),this.controller=new DS(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}firstUpdated(t){super.firstUpdated(t)}handleKeyPress(){this.controller.quickRewindAction()}get isVariantResolved(){const{isVOD:t,isLive:e,isLiveEvent:n}=this.streamController.value;return t||e||n}get genericAriaLabel(){return"Skip Back"}render(){const{visible:t,disabled:e,ariaLabel:n,label:i,noSeek:r}=this.controller.state,o=this.isVariantResolved,a=!!e||!!r,s={};"--control--mask"!==this.controller.controlIcon&&(s["--control--mask"]=o?`var(${this.controller.controlIcon})`:`var(--quick-rewind-shell, var(${this.controller.controlIcon}))`);const l={onClick:()=>this.controller.quickRewindAction(),onDisabledClick:()=>this.controller.handleDisabledAction(),ariaLabel:o?n:this.genericAriaLabel,className:"quick-rw control",part:"quick-rewind-icon",disabled:a,styles:s}
950,c=o&&!r?i:"";return t?p.x`
951					<info-tooltip
952						tooltipPosition="${this.tooltipPosition}"
953						tooltipLabel="${c}"
954						?shouldShowTooltipOnFocus=${o&&!r&&this.shouldShowTooltipOnFocus}
955						.shouldRenderTooltip=${this.shouldRenderTooltip&&!!c}
956					>
957						${Hy(l)}
958					</info-tooltip>
959				`:null}getQAElements(){return{quickRewind:this.quickRewind,"button-container":this.buttonContainer}}};$S.tokens=MS,$S.styles=[Ly],VS([(0,p.n)({type:Object})],$S.prototype,"store",2),VS([b(".button-container")],$S.prototype,"buttonContainer",2),VS([b(".quick-rw")],$S.prototype,"quickRewind",2),VS([Vy(".button-container")],$S.prototype,"disconnectedCallback",1),VS([By(".button-container")],$S.prototype,"updated",1),$S=VS([p_,L_({target:t=>t.shadowRoot?.querySelector(".button-container"),scope:t=>t.container})],$S);let HS=class{get FORWARD_10(){return 1e4}get FORWARD_30(){return 3e4}get offset(){return this.FORWARD_10}get ariaLabel(){const{dictionary:t}=this.host,e={key:Xl.MEDIA.PLAYER.FORWARD10,fallback:"Skip Ahead 10 Seconds"};return t?.translate(e.key,e.fallback)}get controlIcon(){return"--control--mask"}get disabled(){return!1}get visible(){return!0}get seekControlled(){return this.streamController.value.isLive}get label(){return this.ariaLabel}get state(){const{visible:t,disabled:e,ariaLabel:n,label:i,controlIcon:r,offset:o,seekControlled:a}=this,{isLive:s,noSeek:l}=this.streamController.value;return{offset:o,ariaLabel:n,controlIcon:r,disabled:e,visible:t,seekControlled:a,label:i,isLive:s,noSeek:l}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}quickFastForwardAction(){if(this.streamController.value.noSeek)return;const{offset:t,seekControlled:e}=this,{playheadPositionMs:n}=this.streamController.value;this.host?.commandBus?.dispatchCommand?.(Ql.QUICK_FAST_FORWARD,{offset:t,playheadPositionMs:n,localState:this.host?.localState}),e&&this.host?.commandBus?.dispatchCommand?.(Ql.NOTIFY_CONTROLS_DISABLED,{control:"quick-fast-forward",localState:this.host?.localState})}handleDisabledAction(){this.streamController.value.noSeek||this.host?.commandBus?.dispatchCommand?.(Ql.NOTIFY_CONTROLS_DISABLED,{control:"quick-fast-forward",localState:this.host?.localState})}};const GS="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.6433%2016.6433C30.8974%2016.6433%2030.2925%2017.2482%2030.2925%2017.9941C30.2925%2024.7717%2024.7776%2030.2866%2018%2030.2866C11.2224%2030.2866%205.70752%2024.7776%205.70752%2018C5.70752%2011.2224%2011.2224%205.70752%2018%205.70752C19.9675%205.70752%2021.841%206.15975%2023.5795%207.04659C24.8011%207.66915%2025.917%208.50901%2026.8743%209.50157H23.1977C22.4518%209.50157%2021.8469%2010.1065%2021.8469%2010.8524C21.8469%2011.5983%2022.4518%2012.2032%2023.1977%2012.2032H29.6934C30.4393%2012.2032%2031.0442%2011.5983%2031.0442%2010.8524V4.35082C31.0442%203.60493%2030.4393%203%2029.6934%203C28.9475%203%2028.3426%203.60493%2028.3426%204.35082V7.15231C25.5646%204.49765%2021.8821%203%2018%203C9.73062%203%203%209.73062%203%2018C3%2026.2694%209.73062%2033%2018%2033C26.2694%2033%2033%2026.2694%2033%2018C32.9941%2017.2541%2032.3892%2016.6433%2031.6433%2016.6433Z'%20fill='%23CACACA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.7252%2020.2476V21.1994H16.5491V20.2476H15.2493V14.6502H14.2892C13.937%2014.9017%2013.4087%2015.0653%2012.7085%2015.1449V15.8535H14.0292V20.2518H12.7252V20.2476Z'%20fill='%23CACACA'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.1939%2014.9101C21.8627%2014.7382%2021.456%2014.6502%2020.978%2014.6502C20.5%2014.6502%2020.0975%2014.7382%2019.7662%2014.9101C19.4392%2015.082%2019.1876%2015.3336%2019.0115%2015.6606C18.8396%2015.9877%2018.7138%2016.3399%2018.6426%2016.7256C18.5713%2017.1072%2018.5335%2017.5558%2018.5335%2018.0632C18.5335%2018.5705%2018.5713%2019.0191%2018.6426%2019.4007C18.7138%2019.7822%2018.8354%2020.1386%2019.0115%2020.4657C19.1834%2020.7927%2019.435%2021.0401%2019.7662%2021.212C20.0933%2021.3839%2020.5%2021.4678%2020.978%2021.4678C21.456%2021.4678%2021.8627%2021.3839%2022.1939%2021.212C22.5252%2021.0401%2022.7767%2020.7927%2022.9528%2020.4657C23.1247%2020.1386%2023.2505%2019.7864%2023.3218%2019.4007C23.3931%2019.0191%2023.4308%2018.5705%2023.4308%2018.0632C23.4308%2017.5558%2023.3931%2017.1072%2023.3218%2016.7256C23.2505%2016.3441%2023.1289%2015.9877%2022.9528%2015.6606C22.7767%2015.3336%2022.5252%2015.082%2022.1939%2014.9101ZM21.9507%2019.9164C21.7746%2020.3189%2021.4476%2020.516%2020.978%2020.516C20.5042%2020.516%2020.1813%2020.3147%2020.0094%2019.9164C19.8375%2019.5139%2019.7495%2018.9688%2019.7495%2018.2728C19.7495%2017.581%2019.7788%2017.0611%2019.8417%2016.7214C19.9046%2016.3818%2020.0304%2016.1093%2020.2149%2015.9038C20.3994%2015.7026%2020.6551%2015.5977%2020.978%2015.5977C21.4518%2015.5977%2021.7
959746%2015.799%2021.9507%2016.1973C22.1268%2016.5998%2022.2149%2017.2162%2022.2149%2018.0548C22.2149%2018.8975%2022.1268%2019.5139%2021.9507%2019.9164Z'%20fill='%23CACACA'/%3e%3c/svg%3e",YS={...jy,"control-mask":`url("${GS}")`,"background-color":"#000000","quick-fast-forward-shell":`url("${GS}")`,"quick-fast-forward-10":"none","quick-fast-forward-30":"none",responsive:{}};var jS=Object.defineProperty,KS=Object.getOwnPropertyDescriptor,WS=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?KS(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&jS(e,n,o),o};const qS={notready:!0,noSeek:!1,isLive:!1,isVOD:!1,isLiveEvent:!1,isInterstitialPlaying:!1,isBehindLiveEdge:!1,hasStarted:!1,ended:!1,isPretune:!1,liveApi:!1,currentTimeAsPdt:0,endPositionPdtMs:0,playheadPositionMs:0},XS=t=>{const{streamDetails:e,interstitials:n,playback:i,isPretune:r,mediaClient:o,timeline:a}=t,{noSeek:s,isLive:l,isVOD:c,isLiveEvent:d}=e,{isInterstitialPlaying:u}=n,{isBehindLiveEdge:p,hasStarted:h,ended:m,notready:g}=i,{isInPretune:v}=r,{timeline:{currentTimeAsPdt:f,endPositionPdtMs:b,playheadPositionMs:_}}=a,{attributes:{supports:{liveApi:E}}}=o;return{notready:!!g,noSeek:s,isLive:l,isVOD:c,isLiveEvent:d,isInterstitialPlaying:u,isBehindLiveEdge:p,hasStarted:h,ended:m,isPretune:v,liveApi:E,currentTimeAsPdt:f,endPositionPdtMs:b,playheadPositionMs:_}};let ZS=class extends pt{constructor(){super(),this.streamController=new G_(this,XS,qS),this.controller=new HS(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}firstUpdated(t){super.firstUpdated(t)}handleKeyPress(){this.controller.quickFastForwardAction()}get isVariantResolved(){const{isVOD:t,isLive:e,isLiveEvent:n}=this.streamController.value;return t||e||n}get genericAriaLabel(){return"Skip Ahead"}render(){const{visible:t,disabled:e,ariaLabel:n,label:i,noSeek:r}=this.controller.state,o=this.isVariantResolved,a=o&&!r?i:"",s=e||r,l={};"--control--mask"!==this.controller.controlIcon&&(l["--control--mask"]=o?`var(${this.controller.controlIcon})`:`var(--quick-fast-forward-shell, var(${this.controller.controlIcon}))`);const c={onClick:()=>this.controller.quickFastForwardAction(),onDisabledClick:()=>this.controller.handleDisabledAction(),ariaLabel:o?n:this.genericAriaLabel,className:"quick-fast-forward-icon control",part:"quick-fast-forward-icon",disabled:s,styles:l};return t?p.x`
960					<info-tooltip
961						tooltipPosition="${this.tooltipPosition}"
962						tooltipLabel="${a}"
963						?shouldShowTooltipOnFocus=${o&&!r&&this.shouldShowTooltipOnFocus}
964						.shouldRenderTooltip=${this.shouldRenderTooltip&&!!a}
965					>
966						${Hy(c)}
967					</info-tooltip>
968				`:null}getQAElements(){return{quickFastForward:this.quickFastForward,"button-container":this.buttonContainer}}};ZS.tokens=YS,ZS.styles=[Ly],WS([(0,p.n)({type:Object})],ZS.prototype,"store",2),WS([b(".button-container")],ZS.prototype,"buttonContainer",2),WS([b(".quick-fast-forward-icon")],ZS.prototype,"quickFastForward",2),WS([Vy(".button-container")],ZS.prototype,"disconnectedCallback",1),WS([By(".button-container")],ZS.prototype,"updated",1),ZS=WS([p_,L_({target:t=>t.shadowRoot?.querySelector(".button-container"),scope:t=>t.container})],ZS);const QS=Wb("\n  :host .fullscreen-icon {\n    --control--mask: var(--fullscreen-icon);\n  }\n  \n  :host .exit-fullscreen-icon {\n    --control--mask: var(--exit-fullscreen-icon);\n  }\n");class JS{constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}get streamValue(){return this.streamController?.value??this.host.fullscreenStreamController?.value??{isInterstitialPlaying:!1}}get visible(){const{isInterstitialPlaying:t}=this.streamValue,{isAvailable:e,isEnabled:n}=this.host.localState?.fullscreen??{},{isIOS:i}=this.host.localState?.environment??{};return!(!e||i&&t&&!n)}get isInFullscreen(){const{isEnabled:t}=this.host.localState?.fullscreen??{};return!!t}get shouldAllowEntry(){const{isInterstitialPlaying:t}=this.streamValue,{isIOS:e}=this.host.localState?.environment??{};return!(e&&t&&!this.isInFullscreen)}getDefaultOptions(){return{labelKey:this.isInFullscreen?"EXIT_FULLSCREEN":"FULLSCREEN",labelFallback:this.isInFullscreen?"Exit Full Screen":"Full Screen"}}get ariaLabel(){const{labelKey:t,labelFallback:e}=this.getDefaultOptions();return this.host.dictionary?.translate(Xl.MEDIA.CONTROLS[t],e)}get className(){return(this.isInFullscreen?"exit-fullscreen-icon":"fullscreen-icon")+" control"}}var tT=Object.defineProperty,eT=Object.getOwnPropertyDescriptor,nT=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?eT(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&tT(e,n,o),o};const iT={isInterstitialPlaying:!1},rT=t=>{const{interstitials:e}=t,{isInterstitialPlaying:n}=e;return{isInterstitialPlaying:n}};let oT=class extends pt{constructor(){super(),this.streamController=new G_(this,rT,iT),this.wasInFullscreen=!1;const t=n_(this).Controller??JS;this.controller=new t(this,{streamController:this.streamController})}blurToggleFocus(){const t=this.shadowRoot?.activeElement;t?.blur?.(),this.buttonContainer?.blur()}getQAElements(){return{exitfullscreenButton:this.exitFullscreenButton,fullscreenButton:this.fullscreenButton,"button-container":this.buttonContainer}}
968connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isAvailable:t.fullscreen.isAvailable,isEnabled:t.fullscreen.isEnabled})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}updated(t){super.updated(t);const e=this.controller.isInFullscreen,n=this.shadowRoot?.activeElement,i=this.buttonContainer?.matches(":focus")||!!n&&this.buttonContainer?.contains(n);!this.wasInFullscreen&&e&&i&&this.blurToggleFocus(),this.wasInFullscreen=e}primaryAction(){const{isInFullscreen:t}=this.controller,e=this.fullscreenTarget??this.container;t?this.commandBus.dispatchCommand(Ql.FULLSCREEN_EXIT,{container:e}):(this.commandBus.dispatchCommand(Ql.FULLSCREEN_ENTER,{container:e}),queueMicrotask((()=>this.blurToggleFocus())))}handleKeyPress(){this.primaryAction()}render(){const{visible:t,ariaLabel:e,className:n}=this.controller,i={onClick:()=>{this.primaryAction()},ariaLabel:e,className:n,tabIndex:0};return this.hidden=!t,t?p.x`
969					<info-tooltip
970						tooltipPosition="${this.tooltipPosition}"
971						tooltipLabel="${e}"
972						.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
973					>
974						${Hy(i)}
975					</info-tooltip>
976				`:null}};oT.tokens={"controls__host--display":"flex","controls__host--width":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","button-container--align-items":"center","button-container--justify-content":"center","fullscreen-icon":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M32%2020.692V28h-7.364v-2.436h4.909v-4.872H32zm-24.545%200l-.001%204.872h4.91V28H5v-7.308h2.455zM12.364%209v2.436l-4.91-.001v4.873H5V9h7.364zM32%209v7.308h-2.455v-4.873h-4.909V9H32z'/%3e%3c/svg%3e\")","exit-fullscreen-icon":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M32%2020.692v2.436h-4.91V28h-2.454v-7.308H32zm-19.636%200V28H9.909v-4.872H5v-2.436h7.364zm0-11.692v7.308H5v-2.436l4.909-.001V9h2.455zM27.09%209l-.001%204.871H32v2.437h-7.364V9h2.455z'/%3e%3c/svg%3e\")",responsive:{}},oT.styles=[QS,Ly],nT([b(".exit-fullscreen-icon")],oT.prototype,"exitFullscreenButton",2),nT([b(".fullscreen-icon")],oT.prototype,"fullscreenButton",2),nT([b(".button-container")],oT.prototype,"buttonContainer",2),nT([Vy(".button-container")],oT.prototype,"disconnectedCallback",1),nT([By(".button-container")],oT.prototype,"updated",1),oT=nT([p_],oT);const aT=Wb("\n  :host([hidden]) {\n    display: none;\n  }\n\n  :host .enable-captions {\n    --control--mask: var(--enable-captions-icon);\n  }\n  \n  :host .disable-captions {\n    --control--mask: var(--disable-captions-icon);\n  }\n");class sT{get visible(){const{areAvailable:t}=this.streamController.value,{showCaptionsDisabledState:e}=this.host;return t||e}get disabled(){const{areAvailable:t}=this.streamController.value,{showCaptionsDisabledState:e}=this.host;return e&&!t}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController??t.streamController}hostConnected(){}hostDisconnected(){}}var lT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,dT=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?cT(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&lT(e,n,o),o};const uT={enabled:!1,areAvailable:!1,languagePriorityList:[],tracks:[],selectedLanguage:void 0,timedTextAppearance:void 0,subtitleQuickToggleEnabled:!1},pT=t=>{const{captions:e,mediaPreferences:n,playback:i}=t,{enabled:r,areAvailable:o,tracks:a,selectedLanguage:s}=e,{languagePriorityList:l,timedTextAppearance:c}=n||{},{playerFeatureFlags:d}=i?.clients||{},{subtitleQuickToggleEnabled:u=!1}=d||{};return{enabled:!!r,areAvailable:o,languagePriorityList:l||[],tracks:a||[],selectedLanguage:s,timedTextAppearance:c,subtitleQuickToggleEnabled:u}};let hT=class extends pt{constructor(){super(),this.showCaptionsDisabledState=!1,this.restartFromBeginning=!0,this.streamController=new G_(this,pT,uT);const t=n_(this).Controller??sT;this.controller=new t(this,{streamController:this.streamController})}getQAElements(){return{enableCaptions:this.enableCaptions,disableCaptions:this.disableCaptions,"button-container":this.buttonContainer}}
976disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}primaryAction(){const{areAvailable:t}=this.streamController.value;if(this.showCaptionsDisabledState&&!t)return void this.commandBus?.dispatchCommand?.(Ql.NOTIFY_CONTROLS_DISABLED,{control:"closed-captions-unavailable",label:"Closed caption",localState:this.localState});if(this.controller.disabled)return;const{enabled:e,timedTextAppearance:n}=this.streamController.value,i=!e,r={timedTextAppearance:n};e?this.commandBus?.dispatchCommand?.(Ql.DISABLE_CAPTIONS):this.commandBus?.dispatchCommand?.(Ql.ENABLE_CAPTIONS,r),this.commandBus?.dispatchCommand(ff.CAPTIONS_TOGGLE,{enabled:i,analyticsTrackingLabel:"captions-quick-toggle"})}handleKeyPress(){this.primaryAction()}getTrackingVisibility(){if(!this.controller.visible)return null;const{enabled:t,tracks:e}=this.streamController.value;return{elementId:"quick_toggle",elementIdType:"button",elementName:"quick_toggle",value:{enabled:t,subtitleTrack:e.find((t=>t.isSelected))}}}render(){const{enabled:t}=this.streamController.value,{extraClasses:e=""}=this,n=this.controller.visible,i=this.controller.disabled,r={onClick:()=>{this.primaryAction()},onDisabledClick:()=>{this.primaryAction()},ariaLabel:this.dictionary?.translate(Xl.MEDIA.CONTROLS.CLOSED_CAPTION,"Closed Caption"),ariaPressed:t,className:(t?"disable-captions active":"enable-captions")+" toggle-closed-captions control",containerClassName:e,disabled:i,tabIndex:0};return this.hidden=!n,n?p.x`<info-tooltip
977					tooltipPosition="${this.tooltipPosition}"
978					tooltipLabel="${r.ariaLabel}"
979					.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
980					.shouldRenderTooltip=${this.shouldRenderTooltip}
981					>${Hy(r)}</info-tooltip
982				>`:null}};hT.tokens={"controls__host--display":"flex","controls__host--width":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","button-container--align-items":"center","button-container--justify-content":"center","enable-captions-icon":"url(\"data:image/svg+xml,%3csvg%20width='33'%20height='32'%20viewBox='0%200%2033%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.69613%2012.667C7.69613%2011.7465%208.44232%2011.0003%209.36279%2011.0003H13.3628C14.2833%2011.0003%2015.0295%2011.7465%2015.0295%2012.667V14.3337H13.0295V13.0003H9.69613V19.0003H13.0295V17.667H15.0295V19.3337C15.0295%2020.2541%2014.2833%2021.0003%2013.3628%2021.0003H9.36279C8.44232%2021.0003%207.69613%2020.2541%207.69613%2019.3337V12.667Z'%20fill='%23CECFCF'/%3e%3cpath%20d='M19.3628%2011.0003C18.4423%2011.0003%2017.6961%2011.7465%2017.6961%2012.667V19.3337C17.6961%2020.2541%2018.4423%2021.0003%2019.3628%2021.0003H23.3628C24.2833%2021.0003%2025.0295%2020.2541%2025.0295%2019.3337V17.667H23.0295V19.0003H19.6961V13.0003H23.0295V14.3337H25.0295V12.667C25.0295%2011.7465%2024.2833%2011.0003%2023.3628%2011.0003H19.3628Z'%20fill='%23CECFCF'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.36279%205.66699H29.3628V26.3337H3.36279V5.66699ZM5.36279%207.66699V24.3337H27.3628V7.66699H5.36279Z'%20fill='%23CECFCF'/%3e%3c/svg%3e\")","disable-captions-icon":"url(\"data:image/svg+xml,%3csvg%20width='33'%20height='33'%20viewBox='0%200%2033%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.38867%205.79199H29.3887V26.4587H3.38867V5.79199ZM9.38867%2011.1253C8.4682%2011.1253%207.72201%2011.8715%207.72201%2012.792V19.4587C7.72201%2020.3791%208.4682%2021.1253%209.38867%2021.1253H13.3887C14.3091%2021.1253%2015.0553%2020.3791%2015.0553%2019.4587V17.792H13.0553V19.1253H9.72201V13.1253H13.0553V14.4587H15.0553V12.792C15.0553%2011.8715%2014.3091%2011.1253%2013.3887%2011.1253H9.38867ZM19.3887%2011.1253C18.4682%2011.1253%2017.722%2011.8715%2017.722%2012.792V19.4587C17.722%2020.3791%2018.4682%2021.1253%2019.3887%2021.1253H23.3887C24.3091%2021.1253%2025.0553%2020.3791%2025.0553%2019.4587V17.792H23.0553V19.1253H19.722V13.1253H23.0553V14.4587H25.0553V12.792C25.0553%2011.8715%2024.3091%2011.1253%2023.3887%2011.1253H19.3887Z'%20fill='%23CECFCF'/%3e%3c/svg%3e\")","button-container--opacity-disabled":"1","control--disabled-cursor":"default","control--disabled-opacity":"0.25","controls--disabled-background-color":"#FFF","control--disabled-transform":"none",responsive:{}},hT.styles=[aT,Ly],dT([(0,p.n)({type:Boolean})],hT.prototype,"showCaptionsDisabledState",2),dT([b(".enable-captions")],hT.prototype,"enableCaptions",2),dT([b(".disable-captions")],hT.prototype,"disableCaptions",2),dT([b(".button-container")],hT.prototype,"buttonContainer",2),dT([Vy(".button-container")],hT.prototype,"disconnectedCallback",1),dT([By(".button-container")],hT.prototype,"updated",1),hT=dT([Gf(),p_],hT);class mT{constructor(t){this.hoverAnimationFrameId=null,this.dragAnimationFrameId=null,this.latestDragEvent=null,(this.host=t).addController(this)}get thumbPosition(){return this.positionFromValue(this.dragging?this.dragValue:this.value)}
982get thumbStyle(){return this.getStyleMap(this.thumbPosition)}get hoverMarkerPosition(){return this.getStyleMap(this.relativePointerPosition)}get slideableStartPercentage(){const t=this.max-this.min;return 0===t?0:(this.slideableMin-this.min)/t*100}get slideableWidthPercentage(){const t=this.max-this.min;return 0===t?0:(this.slideableMax-this.slideableMin)/t*100}get currentProgressPercentage(){const t=this.positionFromValue(this.value);return Math.min(Math.max(t,0),100)}get progressBarPercentage(){const t=this.positionFromValue(this.dragging?this.dragValue:this.value);return Math.min(Math.max(t,0),100)}get minPosition(){return this.positionFromValue(this.min)}get maxPosition(){return this.positionFromValue(this.max)}get hoverValuePosition(){return this.positionFromValue(this.hoverValue)}get positionValue(){return null!==this.hoverValue?this.hoverValue-this.min:this.dragging?this.dragValue-this.min:null}get clampedValue(){return of(this.value,this.min,this.max)}get relativePointerPosition(){return(null!==this.hoverValue?this.hoverValuePosition:null)??(this.dragging?this.thumbPosition:null)}hostConnected(){}hostDisconnected(){null!==this.hoverAnimationFrameId&&(cancelAnimationFrame(this.hoverAnimationFrameId),this.hoverAnimationFrameId=null),null!==this.dragAnimationFrameId&&(cancelAnimationFrame(this.dragAnimationFrameId),this.dragAnimationFrameId=null),this.latestDragEvent=null}updateValues({min:t,max:e,value:n,slideableMin:i=t,slideableMax:r=e}){t>e&&(console.warn("[ui-kit slider] min cannot be greater than max."),t=e),i>r&&(console.warn("[ui-kit slider] slideableMin cannot be greater than slideableMax."),i=r),(n<t||n>e)&&(console.warn("[ui-kit slider] value is out of range."),n=Math.max(t,Math.min(n,e))),this.min=t,this.max=e,this.value=n,this.slideableMin=i,this.slideableMax=r}toDropPrecision(t){const e=+t,n=Math.floor(e)===e?0:e.toString().split(".")[1].length||0;return t=>Number(t.toFixed(n))}applyStep(t){const e=Math.round(t/this.host.step)*this.host.step,n=this.toDropPrecision(this.host.step);return of(n(e),this.min,this.max)}shouldFlipForRtl(){return!1}calculateValueFromEvent(t){if(t.__cbReplay&&"number"==typeof t.relX&&"number"==typeof t.relY){let e;switch(this.host.direction){case t_.FROMLEFT:e=t.relX*(this.slideableMax-this.slideableMin)+this.slideableMin;break;case t_.FROMBOTTOM:e=(1-t.relY)*(this.slideableMax-this.slideableMin)+this.slideableMin;break;default:e=0}return this.applyStep(e)}const e=this.host.sliderRef?.value,n=this.host.sliderContainerRef?.value,i="function"==typeof e?.getBoundingClientRect?e.getBoundingClientRect():"function"==typeof n?.getBoundingClientRect?n.getBoundingClientRect():null,{left:r,width:o,bottom:a,height:s}=i||{left:0,width:0,bottom:0,height:0};let l;switch(this.host.direction){case t_.FROMLEFT:{const e=o?(t.clientX-r)/o:0;l=(this.shouldFlipForRtl()&&q(this.host.textDirection)?1-e:e)*(this.slideableMax-this.slideableMin)+this.slideableMin;break}case t_.FROMBOTTOM:l=s?(a-t.clientY)/s*(this.slideableMax-this.slideableMin)+this.slideableMin:this.slideableMin;break;default:l=0}return this.applyStep(l)}getStyleMap(t){if(!t&&0!==t)return t;const e={},n=this.host.precise?t:Math.round(t);switch(this.host.direction){case t_.FROMLEFT:e.left=`${n}%`;break;case t_.FROMBOTTOM:e.top=`calc(100% - ${n}%)`;break;default:e.left="unset",e.bottom="unset"}return e}handlePointerDown(t,e){t.preventDefault(),this.pointerId=t.pointerId;try{t.currentTarget.setPointerCapture(t.pointerId)}catch(t){console.warn("Pointer capture failed",t)}this.dragging=!0,this.latestDragEvent=null,this.hoverValue=null,this.dragValue=this.value,this.proposedPosition=(this.calculateValueFromEvent(t)-this.min)/(this.max-this.min)*100,this.updateValueFromDrag(t,e),this.host.requestUpdate()}calculatePointerUpValue(t){return of(this.calculateValueFromEvent(t),this.slideableMin,this.slideableMax)}handlePointerUp(t,e){if(this.dragging){this.dragging=!1;try{t.currentTarget.releasePointerCapture(this.pointerId),this.pointerId=null,this.proposedPosition=null}catch(t){console.warn("Pointer release failed",t)}}null!==this.dragAnimationFrameId&&(cancelAnimationFrame(this.dragAnimationFrameId),this.dragAnimationFrameId=null),this.latestDragEvent=null;try{const n=this.calculatePointerUpValue(t);this.value=n,e(n)}catch(t){console.warn("Pointer up failed",t)}this.host.requestUpdate()}handlePointerMove(t,e){if(this.dragging)return this.latestDragEvent=t,void(null===this.dragAnimationFrameId&&(this.dragAnimationFrameId=requestAnimationFrame((()=>{const t=this.latestDragEvent;
982this.latestDragEvent=null,t&&this.updateValueFromDrag(t,e),this.dragAnimationFrameId=null}))));null===this.hoverAnimationFrameId&&this.host.moveThumbOnHover&&(this.hoverAnimationFrameId=requestAnimationFrame((()=>{this.hoverValue=this.calculateValueFromEvent(t),e&&e(this.hoverValue),this.host.requestUpdate(),this.hoverAnimationFrameId=null}))),this.host.requestUpdate()}handlePointerOut(t,e){const n=this.host.sliderContainerRef?.value;if(t.relatedTarget!==n){if(n&&t.relatedTarget instanceof Node){const e=n.closest(".progress-bar__container")||n.parentElement;if(e&&e.contains(t.relatedTarget))return}null!==this.hoverAnimationFrameId&&(cancelAnimationFrame(this.hoverAnimationFrameId),this.hoverAnimationFrameId=null),e&&e(),this.hoverValue=null,this.host.requestUpdate()}}updateValueFromDrag(t,e){if(this.dragging){const n=this.calculateValueFromEvent(t);this.dragValue=of(n,this.slideableMin,this.slideableMax),e&&e(this.dragValue),this.host.requestUpdate()}}setHoverToValue(t,e){this.hoverValue=t,e&&e(this.hoverValue),this.host.requestUpdate()}positionFromValue(t){const e=this.slideableMax-this.slideableMin;return(t-this.slideableMin)/e*100}}class gT{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}getMinMax(){return{min:0,max:100}}}const vT=p.i`
983	:host {
984		display: flex;
985		height: 100%;
986		width: 100%;
987	}
988
989	.volume-bar__container {
990		position: var(--container--position);
991		width: var(--container--width);
992		height: var(--container--height);
993		padding: var(--container--padding);
994		cursor: var(--container--cursor);
995		top: var(--container--top);
996		display: var(--container--display);
997		bottom: var(--container--bottom);
998		transform: var(--container--transform);
999		justify-content: var(--container--justify-content);
1000		align-items: var(--container--align-items);
1001		align-content: var(--container--align-content);
1002		touch-action: var(--container--touch-action);
1003	}
1004
1005	.volume-bar__container.from-bottom {
1006		--container--position: var(--container__from-bottom--position);
1007		--container--top: var(--container__from-bottom--top);
1008		--container--transform: translateX(
1009			var(--container__from-bottom--translate-inline, 0px)
1010		);
1011		--container--width: var(--container__from-bottom--width);
1012		--container--height: var(--container__from-bottom--height);
1013		--container--bottom: var(--container__from-bottom--bottom);
1014		--container--display: var(--container__from-bottom--display);
1015		--container--justify-content: var(
1016			--container__from-bottom--justify-content
1017		);
1018		--max-level--width: var(--max-level__from-bottom--width);
1019	}
1020
1021	:host(:dir(rtl)) .volume-bar__container.from-bottom {
1022		--container--transform: translateX(
1023			calc(0px - var(--container__from-bottom--translate-inline, 0px))
1024		);
1025	}
1026
1027	.volume-bar__container.from-left {
1028		--container--display: var(--container__from-left--display);
1029		--container--padding: var(--container__from-left--padding);
1030		--container--align-items: var(--container__from-left--align-items);
1031		--container--width: var(--container__from-left--width);
1032		--container--height: var(--container__from-left--height);
1033		--container--align-content: var(--container__from-left--align-content);
1034		--max-level--position: relative;
1035		--max-level--width: var(--max-level__from-left--width);
1036		--max-level--height: var(--max-level__from-left--height);
1037	}
1038
1039	.volume-bar__max-level {
1040		width: var(--max-level--width);
1041		height: var(--max-level--height);
1042		background-color: var(--max-level--background-color);
1043		border-radius: var(--max-level--border-radius);
1044		cursor: var(--max-level--cursor);
1045		position: var(--max-level--position);
1046	}
1047
1048	.volume-bar__current-level {
1049		position: var(--current-level--position);
1050		bottom: var(--current-level--bottom);
1051		background-color: var(--current-level--background-color);
1052		border-radius: var(--current-level--border-radius);
1053	}
1054
1055	.volume-bar__thumb {
1056		position: var(--thumb--position);
1057		top: var(--thumb--top);
1058		left: var(--thumb--left);
1059		transform: var(--thumb--transform);
1060		width: var(--thumb--width);
1061		height: var(--thumb--height);
1062		background-color: var(--thumb--background-color);
1063		border-radius: var(--thumb--border-radius);
1064		box-shadow: var(--thumb--box-shadow);
1065
1066		&:focus {
1067			outline: none;
1068		}
1069
1070		&:hover {
1071			width: var(--thumb--width-hover);
1072			height: var(--thumb--height-hover);
1073		}
1074		&:active {
1075			width: var(--thumb--width-hover);
1076			height: var(--thumb--height-hover);
1077		}
1078	}
1079
1080	.volume-bar__container:has(.volume-bar__thumb:focus-visible) {
1081		outline: auto;
1082		outline-offset: 2px;
1083	}
1084`;var fT=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,_T=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?bT(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&fT(e,n,o),o};const ET={muted:!1,level:0},yT=t=>{const{volume:e}=t,{muted:n,level:i}=e;return{muted:!!n,level:i??0}};let ST=class extends pt{constructor(){super(),this.sliderContainerRef=aE(),this.sliderRef=aE(),this.thumbRef=aE(),this.dictionaryKey=Xl.MEDIA.CONTROLS.VOLUME,this.fallback="Volume",this.visible=!0,this.sliderTabIndex=0,this.step=1,this.direction=t_.FROMLEFT,this.slider=new mT(this),this.streamController=new G_(this,yT,ET),this.controller=new gT(this),this.sliderAriaLabel="Volume",this.moveThumbOnHover=!1,this.onSliderInput=t=>{this.primaryAction(t)};const{Controller:t}=n_(this);t&&(this.controller=new t(this))}getQAElements(){return{thumb:this.thumb,volumeBarContainer:this.volumeBarContainer}}hasFocusTarget(t){return this.volumeBarContainer?.contains(t)??!1}connectedCallback(){super.connectedCallback(),this.sliderAriaLabel=this.dictionary?.translate(this.dictionaryKey,this.fallback),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({opened:t.volumeBar.opened,previousLevel:t.volume.previousLevel,changing:t.volumeBar.changing})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}update(t){super.update(t)}updatePreviousLevel(){this.slider.dragging&&0===this.slider.thumbPosition&&this.slider.proposedPosition>0&&this.localState?.updateVolumePreviousLevel?.(this.slider.proposedPosition)}primaryAction(t){const{muted:e}=this.streamController.value;this.commandBus?.dispatchCommand(Ql.SET_VOLUME,{level:t,muted:e,label:"Volume bar",ref:e_.VOLUME_BAR})}getSliderProgressStyles(t){return this.direction===t_.FROMBOTTOM?$y({width:"inherit",height:`${t}%`}):$y({width:`${t}%`,height:"inherit"})}handlePointerUp(t){this.slider.handlePointerUp(t,this.onSliderInput),this.localState?.updateVolumeBarChanging?.(!1)}handlePointerDown(t){this.slider.handlePointerDown(t,this.onSliderInput),this.localState?.updateVolumeBarChanging?.(!0)}handlePointerMove(t){this.slider.handlePointerMove(t,this.onSliderInput),this.updatePreviousLevel()}handleKeyDown(t){if(!this.slider)return;const{min:e,max:n}=this.controller.getMinMax(),{step:i}=this;let{value:r}=this.slider;switch(t.key){case"ArrowLeft":case"ArrowDown":r-=i;break;case"ArrowRight":case"ArrowUp":r+=i;break;case"Home":r=e;break;case"End":r=n;break;default:return}t.preventDefault(),t.stopPropagation();const o=of(Math.round(r),e,n);this.primaryAction(o)}render(){const{sliderAriaLabel:t,sliderTabIndex:e,step:n}=this,{muted:i,level:r}=this.streamController.value,o=i?0:r,{min:a,max:s}=this.controller.getMinMax(),l=this.localState?.volumeBar?.opened??!1;this.slider.updateValues({min:a,max:s,value:o});const{min:c,max:d,thumbPosition:u,clampedValue:h,thumbStyle:m}=this.slider,g=this.direction===t_.FROMBOTTOM;return p.x`
1085			<div
1086				class="volume-bar__container ${this.direction} ${l?"volume-bar__container--open":""}"
1087				@pointerup=${this.handlePointerUp}
1088				@pointerdown=${this.handlePointerDown}
1089				@pointermove=${this.handlePointerMove}
1090				${cE(this.sliderContainerRef)}
1091			>
1092				<div class="volume-bar__max-level" ${cE(this.sliderRef)}>
1093					<div
1094						class="volume-bar__current-level"
1095						style=${this.getSliderProgressStyles(u)}
1096					></div>
1097					<div
1098						class="volume-bar__thumb"
1099						style=${$y(m)}
1100						@keydown=${this.handleKeyDown}
1101						tabindex="${e}"
1102						${cE(this.thumbRef)}
1103						role="slider"
1104						aria-label=${t}
1105						aria-orientation=${g?"vertical":"horizontal"}
1106						aria-valuemin="${Math.round(c)}"
1107						aria-valuemax="${Math.round(d)}"
1108						aria-valuenow="${Math.round(h)}"
1109						aria-valuestep="${n}"
1110						aria-valuetext="${Math.round(h)} of ${Math.round(d)}"
1111						aria-hidden=${e<0?"true":p.E}
1112					></div>
1113				</div>
1114			</div>
1115		`}};ST.tokenPrefix="volume-bar",ST.tokens={"container--position":"relative","container--width":"100%","container--height":"100%","container--padding":"0","container--cursor":"pointer","container--top":"0","container--display":"block","container--bottom":"0","container--transform":"none","container--justify-content":"center","container--align-items":"center","container--align-content":"center","container--touch-action":"none","container__from-bottom--position":"relative","container__from-bottom--top":"0","container__from-bottom--translate-inline":"0px","container__from-bottom--width":"3px","container__from-bottom--bottom":"100%","container__from-bottom--display":"flex","container__from-bottom--justify-content":"center","container__from-left--display":"inline-block","container__from-left--padding":"14px 0 10px 0","container__from-left--align-items":"center","container__from-left--width":"62px","container__from-left--height":"100%","container__from-left--align-content":"center","max-level--width":"100%","max-level--height":"100%","max-level--background-color":"rgba(249, 249, 249, 0.6)","max-level--border-radius":"3px","max-level--cursor":"pointer","max-level--position":"absolute","max-level__from-left--width":"52px","max-level__from-left--height":"3px","current-level--position":"absolute","current-level--bottom":"0","current-level--background-color":"#f1f1f1","current-level--border-radius":"3px","thumb--position":"absolute","thumb--top":"50%","thumb--left":"0","thumb--transform":"translate(0, -50%)","thumb--width":"10px","thumb--height":"10px","thumb--background-color":"#f1f1f1","thumb--border-radius":"50%","volume-bar-container-from-left-max-height":"30px",responsive:{extraSmall:{"container__from-left--width":"91px","max-level__from-left--width":"81px"}}},ST.styles=[vT],_T([b(".volume-bar__thumb")],ST.prototype,"thumb",2),_T([b(".volume-bar__container")],ST.prototype,"volumeBarContainer",2),_T([(0,p.n)({type:Boolean})],ST.prototype,"visible",2),_T([(0,p.n)({type:String})],ST.prototype,"sliderClassName",2),_T([(0,p.n)({type:Number})],ST.prototype,"sliderTabIndex",2),_T([(0,p.n)({type:Number})],ST.prototype,"step",2),_T([(0,p.n)({type:String})],ST.prototype,"direction",2),ST=_T([p_,L_({target:t=>t.shadowRoot?.querySelector(".volume-bar__container--open")??void 0,watch:t=>t.shadowRoot.querySelector(".volume-bar__container"),scope:t=>t?.container})],ST);const TT="Keyboard actions",CT=new WeakMap;let wT=class{constructor(t,e){this.controller=new AbortController,this.keyMap=new Map,this.pendingSpaceActivationSuppression=!1,(this.host=t).addController(this),this.captionsStreamController=e?.captionsStreamController,this.volumeStreamController=e?.volumeStreamController,this.playbackStreamController=e?.playbackStreamController,this.quickRewindController=new DS(t,{streamController:e?.quickRewindStreamController}),this.quickFastForwardController=new HS(t,{streamController:e?.quickFastForwardStreamController}),this.fullscreenController=new JS(t,{streamController:e?.fullscreenStreamController}),this.setupKeyMap()}hostConnected(){}hostDisconnected(){this.controller.abort()}keyToString(t){return`${t.key}-${t.metaKey?"M":""}${t.ctrlKey?"C":""}${t.altKey?"A":""}${t.shiftKey?"S":""}`}getValidKeyboardRoots(){return[document.body,this.host.fullscreenTarget,this.host.container,...this.host.keyboardContainer||[]].filter((t=>t instanceof HTMLElement))}getEventPath(t){return"function"==typeof t.composedPath?t.composedPath():[]}getDeepestTargetElement(t,e=this.getEventPath(t)){return e.find((t=>t instanceof HTMLElement))||(t.target instanceof HTMLElement?t.target:null)}isWithinKeyboardRoot(t,e,n){return e===document.body?t===document.body&&it(this.host.container):e===t||n.includes(e)||e.contains(t)}getKeyboardRoot(t,e,n,i){const r=t.currentTarget instanceof HTMLElement?t.currentTarget:null;return r&&i.includes(r)?r:i.find((t=>this.isWithinKeyboardRoot(e,t,n)))||null}get baseKeyCombinations(){return[[{key:" "},t=>t.togglePlayPause()],[{key:"Enter"},t=>t.togglePlayPause()],[{key:"Escape"},t=>t.exitFullscreen()],[{key:"k"},t=>t.togglePlayPause()],[{key:"ArrowLeft"},t=>t.quickRewind()],[{key:"ArrowRight"},t=>t.quickFastForward()],[{key:"ArrowDown"},t=>t.decreaseVolume()],[{key:"ArrowUp"},t=>t.increaseVolume()],[{key:"c"},t=>t.toggleCaptions()],[{key:"f"},t=>t.toggleFullscreen()],[{key:"w"},t=>t.increaseVolume()],[{key:"s"},t=>t.decreaseVolume()],[{key:"a"},t=>t.quickRewind()],[{key:"d"},t=>t.quickFastForward()],[{key:"m"},t=>t.toggleMute()],[{key:"n",shiftKey:!0},t=>t.playNext()]]}getKeyCombinations(){return this.baseKeyCombinations.filter((t=>this.filterKeyCombinations(t))).map((t=>this.replaceKeyCombinations(t)))}filterKeyCombinations(t){return!0}replaceKeyCombinations(t){return t}
1115setupKeyMap(){this.getKeyCombinations().forEach((([t,e])=>this.keyMap.set(this.keyToString(t),e)))}refreshKeyMap(){this.keyMap.clear(),this.setupKeyMap()}isWithinOpenModal(t){return t.some((t=>t instanceof HTMLElement&&t.matches('dialog[open], [role="dialog"], [aria-modal="true"]')))}keyboardAction(t){if(t.repeat)return;const e=this.getEventPath(t),n=this.getDeepestTargetElement(t,e);if(!n)return;if(["input","textarea","select",'[contenteditable="true"]','[role="textbox"]',...this.host.ignoredSelectors||[]].some((t=>n?.closest(t))))return;if(" "!==t.key&&this.isWithinOpenModal(e))return;const i=this.getValidKeyboardRoots(),r=this.getKeyboardRoot(t,n,e,i);if(!r||!this.isWithinKeyboardRoot(n,r,e))return;const o=this.keyToString(t),a=this.keyMap.get(o);if(!a)return;if(this.hasContainerAlreadyHandled(t))return;const s=this.isActivatableControl(n);"Enter"===t.key&&s||(t.preventDefault(),t.stopPropagation()," "===t.key&&s&&(this.pendingSpaceActivationSuppression=!0),a(this))}shouldSuppressSpaceActivation(t){return!(" "!==t.key||!this.pendingSpaceActivationSuppression||(this.pendingSpaceActivationSuppression=!1,0))}hasContainerAlreadyHandled(t){const{container:e}=this.host;if(!(e instanceof HTMLElement))return!1;let n=CT.get(t);return n||(n=new Set,CT.set(t,n)),!!n.has(e)||(n.add(e),!1)}isActivatableControl(t){return Boolean(t?.closest('button, [role="button"], a[href], [role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"], [role="switch"], [role="tab"], [role="option"], summary'))}quickRewind(){this.quickRewindController.quickRewindAction()}quickFastForward(){this.quickFastForwardController.quickFastForwardAction()}toggleFullscreen(){const t=this.host.fullscreenTarget??this.host.container,{isInFullscreen:e,shouldAllowEntry:n}=this.fullscreenController;e?this.dispatchCommand(Ql.FULLSCREEN_EXIT):n&&this.dispatchCommand(Ql.FULLSCREEN_ENTER,{container:t,label:TT})}togglePlayPause(){this.dispatchCommand(Ql.TOGGLE_PLAY_PAUSE);const{isPaused:t=!1}=this.playbackStreamController?.value??{};this.host.localState?.updatePlayPauseIndicator?.(t)}exitFullscreen(){this.dispatchCommand(Ql.FULLSCREEN_EXIT)}getVolumeCommandPayload(){const{muted:t=!1,level:e=0}=this.volumeStreamController?.value??{};return{level:e,muted:t}}increaseVolume(){this.dispatchCommand(Ql.INCREASE_VOLUME,this.getVolumeCommandPayload())}decreaseVolume(){this.dispatchCommand(Ql.DECREASE_VOLUME,this.getVolumeCommandPayload())}toggleCaptions(){const{enabled:t=!1,timedTextAppearance:e}=this.captionsStreamController?.value??{};t?this.dispatchCommand(Ql.DISABLE_CAPTIONS):this.dispatchCommand(Ql.ENABLE_CAPTIONS,{timedTextAppearance:e})}toggleMute(){const{muted:t,level:e}=this.getVolumeCommandPayload();this.dispatchCommand(Ql.TOGGLE_MUTE,{muted:t,level:e})}playNext(){this.dispatchCommand(Ql.PLAY_NEXT)}dispatchCommand(t,e={}){this.host.commandBus?.dispatchCommand?.(t,{...e,label:TT})}};var AT=Object.defineProperty,IT=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&AT(e,n,o),o};const OT={isPaused:!1},RT=t=>({isPaused:t?.playback?.isPaused??!1});let xT=((i=class extends pt{constructor(){super(),this.keyboardContainer=[],this.ignoredSelectors=[],this.quickRewindStreamController=new G_(this,zS,FS),this.quickFastForwardStreamController=new G_(this,XS,qS),this.fullscreenStreamController=new G_(this,rT,iT),this.captionsStreamController=new G_(this,pT,uT),this.volumeStreamController=new G_(this,yT,ET),this.playbackStreamController=new G_(this,RT,OT),this.controller=new wT(this,this.getControllerOptions()),this.abortController=new AbortController,this.handleKeyDown=t=>{this.controller.keyboardAction(t)},this.handleKeyUp=t=>{this.controller.shouldSuppressSpaceActivation(t)&&(t.preventDefault(),t.stopPropagation())};const{Controller:t}=n_(this);t&&(this.controller=new t(this,this.getControllerOptions()))}getControllerOptions(){return{captionsStreamController:this.captionsStreamController,quickRewindStreamController:this.quickRewindStreamController,quickFastForwardStreamController:this.quickFastForwardStreamController,fullscreenStreamController:this.fullscreenStreamController,volumeStreamController:this.volumeStreamController,playbackStreamController:this.playbackStreamController}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleKeyDown,{signal:this.abortController.signal}),document.addEventListener("keyup",this.handleKeyUp,{capture:!0,signal:this.abortController.signal})}disconnectedCallback(){super.disconnectedCallback(),this.abortController.abort(),this.abortController=new AbortController}render(){return p.x`${p.E}`}}).tokens={responsive:{}},i);IT([(0,p.n)({type:Array,attribute:!1})],xT.prototype,"keyboardContainer"),IT([(0,p.n)({type:Array,attribute:!1})],xT.prototype,"ignoredSelectors"),IT([(0,p.n)({type:Number})],xT.prototype,"quickFastForwardOffset"),IT([(0,p.n)({type:Number})],xT.prototype,"quickRewindOffset");const LT=Wb('\n\t:host {\n\t\tcursor: pointer;\n\t\tcolor: var(--text-color);\n\n\t\t.text-with-dot {\n\t\t\tdisplay: inline-flex;\n\t\t\talign-items: center;\n\t\t\tpadding-right: 8px;\n\t\t\tpadding-left: 12px;\n\t\t\tfont-size: var(--live-text--font-size);\n\t\t\tfont-weight: 500;\n\t\t}\n\n\t\t.text-with-dot::before {\n\t\t\tcontent: "";\n\t\t\tdisplay: inline-block;\n\t\t\twidth: var(--live-dot--width);\n\t\t\theight: var(--live-dot--width);\n\t\t\tbackground-color: var(--live-dot--color, #D85860);\n\t\t\tborder-radius: 50%;\n\t\t\tmargin-right: 8px;\n\t\t\tvertical-align: middle;\n\t\t}\n\t}\n\n\t:host::part(behind-live-edge) {\n\t\t--controls-background-color: var(\n\t\t\t--behind--background-color\n\t\t);\n\t\t--controls--active-background-color: var(\n\t\t\t--behind--active--background-color\n\t\t);\n\t}\n'),kT="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='%23ffffff'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.4062%2031.5L28.125%2019.125L19.2656%2015.1875L25.5938%204.5L7.875%2016.875L16.7344%2020.8125L10.4062%2031.5Z'/%3e%3c/svg%3e",PT={...jy,"control--mask":`url("${kT}")`,"behind--background-color":"#FFF","behind--active--background-color":"#FFF",responsive:{}};var DT=Object.defineProperty,NT=Object.getOwnPropertyDescriptor,MT=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?NT(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&DT(e,n,o),o};
1115const UT={AT_LIVE:{ariaLabel:{key:Xl.MEDIA.PLAYER.AT_LIVE,fallback:"Watching Live"},label:{key:Xl.MEDIA.CONTROLS.LIVE_POINT,fallback:"You're Live"}},BEHIND_LIVE:{ariaLabel:{key:Xl.MEDIA.PLAYER.GO_LIVE,fallback:"Go to the Live Point"},label:{key:Xl.MEDIA.CONTROLS.WATCH_LIVE,fallback:"Watch Live"}},BEHIND_LIVE_NEXT_PROGRAM:{ariaLabel:{key:Xl.MEDIA.PLAYER.GO_LIVE,fallback:"Go to the Live Point"},label:{key:Xl.MEDIA.CONTROLS.WATCH_LIVE_NEXT_PROGRAM,fallback:"Watch Live: Next Program"}}},BT="Live button",VT={streamType:null,notready:!0,isBehindLiveEdge:!1,isPaused:!1,isLiveApiSupported:!1,isLive:!1,hasEnd:!1,isPretune:!1,timelineType:"",programDurationMs:0,startPositionMs:0,seekableDurationMs:0,isCasting:!1,isCastConnecting:!1,isCastConnected:!1,currentProgramId:null,currentLiveProgramId:null},FT=t=>({streamType:t.playback?.streamType??null,notready:!!t.playback?.notready,isBehindLiveEdge:!!t.playback?.isBehindLiveEdge,isPaused:!!t.playback?.isPaused,isLiveApiSupported:!!t.mediaClient?.attributes?.supports?.liveApi,isLive:!!t.streamDetails?.isLive,hasEnd:!!t.playbackSession?.currentProgram?.hasEnd,isPretune:!!t.isPretune?.isInPretune,timelineType:t.timeline?.timeline?.type||"",programDurationMs:t.timeline?.timeline?.programDurationMs||0,startPositionMs:t.timeline?.timeline?.startPositionMs||0,seekableDurationMs:t.timeline?.timeline?.seekableDurationMs||0,isCasting:t.casting?.isCasting??!1,isCastConnecting:t.casting?.connecting??!1,isCastConnected:t.casting?.connected??!1,currentProgramId:t.playbackSession?.currentProgram?.id??null,currentLiveProgramId:t.playbackSession?.currentlyLiveProgram?.programId??null});let zT=class extends pt{constructor(){super(...arguments),this.forceShow=!1,this.renderAsText=!1,this.tooltipReflectsProgramBoundary=!1,this.defaultOptions={ariaLabel:{key:"",fallback:""},label:{key:"",fallback:""}},this.streamController=new G_(this,FT,VT),this.setCurrentLiveOverlayOpen=t=>{t&&!this.isCurrentLiveProgramAhead||this.commandBus?.dispatchCommand(Ql.TOGGLE_CURRENTLY_LIVE_OVERLAY,{value:t,localState:this.localState})}}getQAElements(){return{textWithDot:this.textWithDot,"button-container":this.buttonContainer}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isMiniPlayer:t.playerMode.isMiniPlayer})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}updated(t){super.updated(t)}primaryAction(t){const{isPretune:e}=this.streamController.value;this.commandBus?.dispatchCommand(Ql.SEEK_TO_LIVE,{label:BT}),t&&this.commandBus?.dispatchCommand(Ql.PLAY,{label:BT,localState:this.localState}),e&&this.commandBus?.dispatchCommand(Ql.NOTIFY_CONTROLS_DISABLED,{control:"live-control",label:BT,localState:this.localState})}get isCurrentLiveProgramAhead(){const{currentProgramId:t,currentLiveProgramId:e}=this.streamController.value;return Boolean(e)&&t!==e}handleKeyPress(){const{isPaused:t}=this.streamController.value;this.primaryAction(t)}getTrackingVisibility(){const{notready:t,isLive:e,isLiveApiSupported:n,isBehindLiveEdge:i}=this.streamController.value;return!t&&e&&n&&i?{elementId:"jump_to_live",elementIdType:"button",elementName:"jump_to_live"}:null}render(){const{streamType:t,notready:e,isBehindLiveEdge:n,isPaused:i,isLiveApiSupported:r,isLive:o,hasEnd:a,timelineType:s,programDurationMs:l,startPositionMs:c,seekableDurationMs:d,isCasting:u}=this.streamController.value,h=c+l,m=u?a&&um(t):h<d&&a&&s===Gg.LiveSlide;this.defaultOptions=((t,e,n)=>t?e&&n?UT.BEHIND_LIVE_NEXT_PROGRAM:UT.BEHIND_LIVE:UT.AT_LIVE)(n,m,this.tooltipReflectsProgramBoundary);const g=!this.isCurrentLiveProgramAhead,v=this.forceShow||!e&&o&&r,f=!n,b=this.dictionary.translate(this.defaultOptions.ariaLabel.key,this.defaultOptions.ariaLabel.fallback),_=this.dictionary.translate(this.defaultOptions.label.key,this.defaultOptions.label.fallback),E=this.dictionary.translate(Xl.MEDIA.CONTROLS.LIVE_POINT,"Live"),y={ariaLabel:b,className:"live-button control",onClick:t=>{this.primaryAction(i)},onDisabledClick:t=>
1115{this.commandBus?.dispatchCommand(Ql.TOGGLE_PROGRESS_BAR_LIVE_LABEL,{show:!0,localState:this.localState}),this.primaryAction(i)},tabIndex:0,disabled:f,part:n?"behind-live-edge":""};return this.hidden=!v,v?Q_(this.renderAsText,(()=>p.x`<div class="text-with-dot">${E}</div>`),(()=>p.x`
1116				<info-tooltip
1117					tooltipPosition="${this.tooltipPosition}"
1118					tooltipLabel="${_}"
1119					.shouldRenderTooltip=${g}
1120					.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
1121					@pointerenter=${()=>this.setCurrentLiveOverlayOpen(!0)}
1122					@pointerleave=${()=>this.setCurrentLiveOverlayOpen(!1)}
1123					@focusin=${()=>this.setCurrentLiveOverlayOpen(!0)}
1124					@focusout=${()=>this.setCurrentLiveOverlayOpen(!1)}
1125				>
1126					${Hy(y)}
1127				</info-tooltip>
1128			`)):p.E}};zT.tokens=PT,zT.styles=[LT,Ly],MT([(0,p.n)({type:String})],zT.prototype,"part",2),MT([(0,p.n)({type:Boolean})],zT.prototype,"forceShow",2),MT([(0,p.n)({type:Boolean})],zT.prototype,"renderAsText",2),MT([(0,p.n)({type:Boolean})],zT.prototype,"tooltipReflectsProgramBoundary",2),MT([v()],zT.prototype,"defaultOptions",2),MT([b(".button-container")],zT.prototype,"buttonContainer",2),MT([b(".text-with-dot")],zT.prototype,"textWithDot",2),MT([Vy(".button-container")],zT.prototype,"disconnectedCallback",1),MT([By(".button-container")],zT.prototype,"updated",1),zT=MT([Gf(),p_],zT);const $T={...jy,"control--mask":"url(\"data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.4065%2019.3957C23.4024%2018.7317%2023.4024%2017.2683%2022.4065%2016.6043L7.60789%206.73859C6.49315%205.99543%205%206.79454%205%208.13429V27.8657C5%2029.2055%206.49315%2030.0046%207.60789%2029.2614L22.4065%2019.3957ZM28.5625%2031C29.9087%2031%2031%2029.9087%2031%2028.5625V7.4375C31%206.09131%2029.9087%205%2028.5625%205C27.2163%205%2026.125%206.09131%2026.125%207.4375V28.5625C26.125%2029.9087%2027.2163%2031%2028.5625%2031Z'%20fill='%23CACACA'/%3e%3c/svg%3e\")"},HT=p.i`
1129	:host([hidden]) {
1130		display: none;
1131	}
1132`;var GT=Object.defineProperty,YT=Object.getOwnPropertyDescriptor,jT=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?YT(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&GT(e,n,o),o};const KT=t=>{const e=t.playbackCriteria?.current?.metadata?.upNextData?.[0],n=e?.item?.id||null,i=t.controls?.playNext?.contentId||null,r=n??i,o=e?Boolean(e.sequentialEpisode):Boolean(i),a=e?.item?.actions,s=a?.find((t=>"playback"===t.type))?.options?.[0]?.infoBlock;return{isSequentialEpisode:o,nextContentId:r,actionInfoBlock:s,hasStarted:!!t.playback?.hasStarted,notready:!!t.playback?.notready,isLive:!!t.streamDetails?.isLive,isCasting:!!t.casting?.isCasting}};let WT=class extends pt{constructor(){super(...arguments),this.initialState={isSequentialEpisode:!1,nextContentId:null,actionInfoBlock:void 0,hasStarted:!1,notready:!0,isLive:!1,isCasting:!1},this.streamController=new G_(this,KT,this.initialState)}getQAElements(){return{"button-container":this.buttonContainer}}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}primaryAction(){const{nextContentId:t}=this.streamController.value;this.commandBus?.dispatchCommand(Ql.PLAY_NEXT,{label:"Play next",nextContentId:t}),this.commandBus?.dispatchCommand($l.CONTROLS.PLAY_NEXT.CLICKED,{nextContentId:t,analyticsTrackingLabel:"play_next_videoplayer"})}handleKeyPress(){this.primaryAction()}getTrackingVisibility(){const{isSequentialEpisode:t,nextContentId:e,notready:n,isLive:i,isCasting:r,actionInfoBlock:o}=this.streamController.value;return i||!r&&n||!t||!e?null:{elementId:"play_next",elementIdType:"button",elementName:"play_next",...o?{actionInfoBlock:o}:{}}}render(){const{hasStarted:t}=this.streamController.value,e=!!this.getTrackingVisibility(),n={onClick:()=>{this.primaryAction()},ariaLabel:this.dictionary?.translate(Xl.MEDIA.CONTROLS.PLAY_NEXT_EPISODE,"Play next episode"),className:"play-next control",part:this.part||"play-next",disabled:!t};return this.hidden=!e,Q_(e,(()=>p.x`
1133				<info-tooltip
1134					tooltipPosition="${this.tooltipPosition}"
1135					tooltipLabel="${n.ariaLabel}"
1136					.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
1137				>
1138					${Hy(n)}
1139				</info-tooltip>
1140			`),(()=>p.E))}};WT.styles=[Ly,HT],WT.tokens=$T,jT([(0,p.n)({type:String})],WT.prototype,"part",2),jT([b(".button-container")],WT.prototype,"buttonContainer",2),jT([Vy(".button-container")],WT.prototype,"disconnectedCallback",1),jT([By(".button-container")],WT.prototype,"updated",1),WT=jT([Gf(),p_],WT);const qT="data-ui-ptr-scope",XT=Symbol.for("ui.ptr.scope.root"),ZT=450;function QT(t,e){let n=e;for(;n;){if(n===t)return!0;const e=n?.host;n=e??n.parentNode??null}return!1}const JT="dual",tC="triple",eC="quad",nC={dual:["a","b"],triple:["a","b","c"],quad:["a","b","c","d"]},iC={"2_sideBySide":JT,"3_invertedTriangle":tC,"4_box":eC};function rC(t){if(!t||"object"!=typeof t)return null;const e=t.multiview;return function(t){if(!t||"object"!=typeof t)return!1;const e=t;return"string"==typeof e.template&&Array.isArray(e.airings)&&e.airings.length>0}(e)?e:null}function oC(t){return`${t.network.shortName} · ${t.shortName}`}function aC(t,e=!1){return{id:t.id,name:t.shortName,language:t.network.id,isSelected:e,hasDescribesVideo:!1,hasDialogueEnhancement:!1,formats:[],displayName:{title:t.network.shortName,subtitle:t.shortName}}}function sC(t,e={}){const n=(i=t.template,r=t.airings.length,function(t){return function(t){return t in iC}(t)?iC[t]:null}(i)||(r<=2?JT:3===r?tC:eC));var i,r;const o=e.activeAudioSubstreamId??t.airings[0]?.id??null;return{layout:n,substreams:t.airings.map(((t,n)=>{const i=e.audioTracks?.find((e=>e.id===t.id))??e.audioTracks?.[n]??aC(t,t.id===o);return function(t,e={}){const{isAudioActive:n=!1,track:i}=e;return{id:t.id,feedId:t.tracking.trackingId,metaLabel:oC(t),track:i??aC(t,n),airing:t}}(t,{isAudioActive:t.id===o,track:i})})),activeAudioSubstreamId:o}}const lC=Wb("\n\t:host {\n\t\tz-index: 1000;\n\t\tpointer-events: none;\n\t}\n\n\t:host([hidden]) {\n\t\tdisplay: none;\n\t}\n\t\n  .pointer-actions {\n    position: absolute;\n    inset: 0;\n    z-index: 1;\n    pointer-events: none;\n  }\n\n  .pointer-actions.dismiss-click {\n    pointer-events: none;\n  }\n");let cC=class{constructor(t){this.unsubscribeFromLocalState=null,this.isFirstControlsInteractionForTimeoutDuration=!1,this.previousControl
1140sIsOpen=!1,(this.host=t).addController(this)}hostConnected(){this.unsubscribeFromLocalState=this.host.localState?.subscribe?.(this.host,(t=>{const e=t.overlayState.overlays.controls?.isOpen??!1;return!e&&this.previousControlsIsOpen&&this.onControlsClose(),e&&!this.previousControlsIsOpen&&this.onControlsOpen(),this.previousControlsIsOpen=e,e}))}hostDisconnected(){this.unsubscribeFromLocalState?.(),this.unsubscribeFromLocalState=null}onControlsOpen(){}onControlsClose(){}get modalNamesToCheckForClose(){return[]}get controlsIsOpen(){return this.host.localState?.overlayState?.overlays?.controls?.isOpen??!1}isTouch(t){return"touch"===t}get areControlsAlwaysVisible(){return this.host.localState?.playerMode?.alwaysVisibleControls??!1}get shouldAllowFullscreenEntry(){const{isInterstitialPlaying:t}=this.host.streamController?.value??{},{isEnabled:e}=this.host.localState?.fullscreen??{},{isIOS:n}=this.host.localState?.environment??{};return!(n&&t&&!e)}};var dC=Object.defineProperty,uC=Object.getOwnPropertyDescriptor,pC=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?uC(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&dC(e,n,o),o};const hC="Pointer actions",mC={isLive:!1,isInterstitialPlaying:!1,isPaused:!1,hasMultiviewPlayback:!1},gC=t=>{const{streamDetails:e,interstitials:n,playback:i,playbackCriteria:r}=t,{isLive:o}=e,{isInterstitialPlaying:a}=n,{isPaused:s}=i??{};return{isLive:o,isInterstitialPlaying:a,isPaused:s??!1,hasMultiviewPlayback:Boolean(rC(r?.current?.metadata))}};let vC=class extends pt{constructor(){super(),this.clickTimeout=null,this.controller=new cC(this),this.streamController=new G_(this,gC,mC),this.disableDoubleClick=!1,this.toggleFullscreen=()=>{const{container:t}=this,{isEnabled:e}=this.localState?.fullscreen||{};e?this.commandBus.dispatchCommand(Ql.FULLSCREEN_EXIT,{label:hC}):this.controller.shouldAllowFullscreenEntry&&this.commandBus.dispatchCommand(Ql.FULLSCREEN_ENTER,{container:t,label:hC})},this.doubleClickAction=()=>{if(this.disableDoubleClick)return this.singleClickAction(),void(this.clickTimeout=setTimeout((()=>{this.singleClickAction(),this.clickTimeout=null}),300));this.shouldCloseModalsOnClick()?this.closePredefinedModals():this.toggleFullscreen()},this.clearClickTimeout=()=>{this.clickTimeout&&(clearTimeout(this.clickTimeout),this.clickTimeout=null)},this.handleClick=(t,e)=>{this.streamController.value.hasMultiviewPlayback||(this.clearClickTimeout(),t.detail%2==0?this.doubleClickAction():this.clickTimeout=setTimeout((()=>{this.controller?.isTouch(e)&&this.controller?.isFirstControlsInteractionForTimeoutDuration&&!this.controller?.areControlsAlwaysVisible?this.controller.isFirstControlsInteractionForTimeoutDuration=!1:(this.singleClickAction(),this.clickTimeout=null)}),250))};const{Controller:t}=n_(this);t&&(this.controller=new t(this))}shouldCloseModalsOnClick(){const t=this.controller?.modalNamesToCheckForClose||[];return this.localState?.hasAnyOpenModal(t)??!1}closePredefinedModals(){const t=this.controller?.modalNamesToCheckForClose||[];Object.entries(this.localState?.modalState?.modals||{}).filter((([e,n])=>t.includes(e)&&n.isOpen)).forEach((([t,e])=>{this.commandBus?.dispatchCommand(Ql.MODAL_EVENT,{modalName:t,type:Mf,currentViewName:"",localState:this.localState})}))}singleClickAction(){if(this.shouldCloseModalsOnClick())return void this.closePredefinedModals();const t=!this.streamController.value.isPaused;this.commandBus?.dispatchCommand(Ql.TOGGLE_PLAY_PAUSE,{label:hC}),this.localState?.updatePlayPauseIndicator?.(!t)}updated(t){super.updated(t),this.toggleAttribute("hidden",this.streamController.value.hasMultiviewPlayback)}render(){return p.x``}};vC.tokens={bottom:"0",responsive:{}},vC.styles=[lC],pC([(0,p.n)({type:Boolean})],vC.prototype,"disableDoubleClick",2),vC=pC([p_,function(t={}){const{overlapInset:e=8,cornerRadius:n=6,cursor:i="pointer",resizeEventName:r="ui-kit-resize-event",listenWindow:o=!0,scope:a,registerEventName:s=y_,unregisterEventName:l=S_,debugLogs:c=!1,debugPaint:d=!1,debugPaintColor:u="rgba(255,0,0,0.15)",debugPaintOutline:p="1px dashed rgba(255,0,0,0.6)",zIndex:h="",bus:m}=t;return function(t){return class extends t{constructor(){super(...arguments),this.registry=new Set,this.registryComponents=new Map,this.lastPath="",this.lastKey="",this.samplingUntil=0,this.samplingId=null,this.stableKeyCount=0,this.samplingFrames=0,this.maskClickBound=!1,this.initRafId=null,this.dbgLogs=c,this.dbgPaint=d,this.dbgPaintColor=u,this.dbgPaintOutline=p,this.visible=!0,this.lastLogAt=0,this.onDebugFlags=t=>{const e=t.detail;this.dbgLogs=e.logs,this.dbgPaint=e.paint,this.dbgPaintColor=e.paintColor,this.dbgPaintOutline=e.paintOutline,this.ensureLayers(),this.updateMask()},this.samplerTick=t=>{if(t<this.samplingUntil){this.samplingFrames++;const t=this.lastKey;if(this.updateMask(),this.lastKey===t&&""!==t){if(this.stableKeyCount++,this.stableKeyCount>=2)return void this.stopSampling()}else this.stableKeyCount=0;this.samplingId=requestAnimationFrame(this.samplerTick)}else this.stopSampling()},this.onRegisterCapture=t=>{const e=t.detail,n=e?.el;if(!n)return;const i=this.scopeEl;i&&!QT(i,n)||(this.registry.add(n),this.registryComponents.set(n,e?.component??this.componentNameFor(n)),this.bump(ZT))},this.onUnregisterCapture=t=>{const e=t.detail?.el;e&&(this.registry.delete(e),this.registryComponents.delete(e),this.updateMask())},this.onGeometry=()=>this.bump(ZT),this.onBusResize=()=>this.bump(ZT),this.onWinResize=()=>this.bump(ZT),this.onWinScroll=()=>this.updateMask(),this.onFsChange=()=>this.bump(ZT)}resolveScope(){const t=a?.(this);if(t)return t;return function(t){let e=t;for(;e;){if(e instanceof Element&&(e.hasAttribute(qT)||e[XT]))return e;const t=e.getRootNode?.();e=t?.host?t.host:e.parentNode??null}return null}(this)||this}get scopeEl(){return void 0===this._scopeEl&&(this._scopeEl=this.resolveScope(),this._scopeEl&&(this._scopeEl.setAttribute(qT,""),this._scopeEl[XT]=!0)),this._scopeEl}get bus(){if(!this._bus){const t=this.scopeEl;this._bus=m?.(this,t)??t??window}return this._bus}log(...t){this.dbgLogs&&console.log("mask::",...t)}stopSampling(){null!=this.samplingId&&cancelAnimationFrame(this.samplingId),this.samplingId=null,this.samplingUntil=0,this.stableKeyCount=0,this.samplingFrames=0}startSampling(t=450){const e=Math.max(220,t+140);this.samplingUntil=performance.now()+e,this.stableKeyCount=0,this.samplingFrames=0,null==this.samplingId&&(this.samplingId=requestAnimationFrame(this.samplerTick))}bump(t=450){this.updateMask(),this.startSampling(t)}ensureLayers(){if(!this.renderRoot)return;const t=this;if(t.style.position||(t.style.position="absolute"),t.style.inset||(t.style.inset="0"),t.style.overflow||(t.style.overflow="hidden"),!this.maskHost){const t=document.createElement("div");t.part="pointer-mask-root",t.style.position="absolute",t.style.inset="0",t.style.pointerEvents="none",h&&(t.style.zIndex=h);const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("data-pointer-mask-svg","true"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false"),e.style.position="absolute",e.style.inset="0",e.style.overflow="visible";const n=document.createElementNS(e.namespaceURI,"path");n.setAttribute("data-pointer-mask-path","true"),n.setAttribute("fill-rule","evenodd"),n.setAttribute("fill","transparent"),n.style.pointerEvents="auto",n.style.cursor=i,this.maskClickBound||(this.maskClickBound=!0,n.addEventListener("pointerdown",(t=>{this.lastPointerType=t.pointerType})),n.addEventListener("click",(t=>{"function"==typeof this.handleClick?this.handleClick(t,this.lastPointerType):this.dispatchEvent(new MouseEvent("click",t))})),n.addEventListener("dblclick",(t=>{"function"==typeof this.handleDblClick?this.handleDblClick(t):this.dispatchEvent(new MouseEvent("dblclick",t))}))),e.appendChild(n),t.appendChild(e),this.renderRoot.appendChild(t),this.maskHost=t}if(this.dbgPaint){if(!this.vizLayer){const t=document.createElement("div");t.part="pointer-mask-debug",t.style.position="absolute",t.style.inset="0",t.style.pointerEvents="none",h&&(t.style.zIndex=h),this.renderRoot.appendChild(t),this.vizLayer=t}}else this.vizLayer&&(this.vizLayer.remove(),this.vizLayer=void 0)}
1140hostRect(){return this.getBoundingClientRect()}toHostRect(t,e){const n=t.getBoundingClientRect();let i=n.left-e.left,r=n.top-e.top,o=n.width,a=n.height;const s=this.samplingFrames<=1,{mt:l,mr:c,mb:d,ml:u}=function(t,e=!1){if(!e)return function(t){const e=m_.get(t);if(e)return e;const n=g_(t);return m_.set(t,n),n}(t);const n=g_(t);return m_.set(t,n),n}(t,s);return i-=u,r-=l,o+=u+c,a+=l+d,new DOMRect(i,r,o,a)}buildPath(t,i){return`M0 0 H${t.width} V${t.height} H0 Z`+i.map((t=>{const i=Math.max(0,t.left-e),r=Math.max(0,t.top-e),o=Math.max(0,t.width+2*e),a=Math.max(0,t.height+2*e);if(n<=0)return` M${i} ${r} H${i+o} V${r+a} H${i} Z`;const s=Math.min(n,Math.min(o,a)/2);return[` M${i+s} ${r}`," H"+(i+o-s),` A${s} ${s} 0 0 1 ${i+o} ${r+s}`," V"+(r+a-s),` A${s} ${s} 0 0 1 ${i+o-s} ${r+a}`,` H${i+s}`,` A${s} ${s} 0 0 1 ${i} ${r+a-s}`,` V${r+s}`,` A${s} ${s} 0 0 1 ${i+s} ${r}`," Z"].join("")})).join("")}makeKey(t,e){return`${0|t.width}x${0|t.height}:${e.length}|${e.map((t=>`${0|t.left},${0|t.top},${0|t.width},${0|t.height}`)).join("|")}`}mergeOverlappingHoles(t){if(t.length<=1)return t;const e=[],n=new Set;for(let i=0;i<t.length;i++)if(!n.has(i)){let r=t[i];n.add(i);for(let e=0;e<t.length;e++)if(i!==e&&!n.has(e)){const i=t[e];if(!(r.right<=i.left||r.left>=i.right||r.bottom<=i.top||r.top>=i.bottom)){const t=Math.min(r.left,i.left),o=Math.min(r.top,i.top),a=Math.max(r.right,i.right),s=Math.max(r.bottom,i.bottom);r=new DOMRect(t,o,a-t,s-o),n.add(e),e=-1}}e.push(r)}return e}componentNameFor(t){return this.registryComponents.get(t)??t.localName??"unknown"}componentsForHole(t,e){const n=e.filter((({rect:e})=>!(t.right<=e.left||t.left>=e.right||t.bottom<=e.top||t.top>=e.bottom))).map((({component:t})=>t));return Array.from(new Set(n)).join(",")}updateMask(){if(!this.visible)return;if(this.ensureLayers(),!this.maskHost)return;const t=this.scopeEl,i=this.hostRect(),r=Array.from(this.registry).filter((e=>!t||QT(t,e))).map((t=>({rect:this.toHostRect(t,i),component:this.componentNameFor(t)}))).filter((({rect:t})=>t.width>1&&t.height>1)),o=r.map((({rect:t})=>t)),a=this.mergeOverlappingHoles(o),s=this.makeKey(i,a),l=s!==this.lastKey;if(!l&&!this.vizLayer)return;l&&(this.lastKey=s);const c=this.buildPath(i,a),d=this.maskHost.querySelector("path[data-pointer-mask-path]");if(d&&c!==this.lastPath&&(d.setAttribute("d",c),this.lastPath=c,this.log("apply svg path",{pathLen:c.length})),this.vizLayer&&(this.vizLayer.replaceChildren(),a.forEach((t=>{const i=Math.max(0,t.left-e),o=Math.max(0,t.top-e),a=Math.max(0,t.width+2*e),s=Math.max(0,t.height+2*e),l=document.createElement("div"),c=this.componentsForHole(t,r);l.setAttribute("data-pointer-mask-component",c),l.style.position="absolute",l.style.left=`${i}px`,l.style.top=`${o}px`,l.style.width=`${a}px`,l.style.height=`${s}px`,l.style.borderRadius=`${n}px`,l.style.background=this.dbgPaintColor,this.dbgPaintOutline&&(l.style.outline=this.dbgPaintOutline),l.style.pointerEvents="none",this.vizLayer.appendChild(l)}))),this.dbgLogs){const t=performance.now();t-this.lastLogAt>120&&(this.lastLogAt=t,console.table(a.map(((t,e)=>({i:e,component:this.componentsForHole(t,r),x:Math.round(t.left),y:Math.round(t.top),w:Math.round(t.width),h:Math.round(t.height)})))))}}connectedCallback(){super.connectedCallback?.(),this.io=new IntersectionObserver((([t])=>{this.visible=!!t.isIntersecting,this.visible&&this.updateMask()}),{root:null,rootMargin:"0px",threshold:0}),this.io.observe(this);const t=E_();this.dbgLogs=t.logs??this.dbgLogs,this.dbgPaint=t.paint??this.dbgPaint,this.dbgPaintColor=t.paintColor??this.dbgPaintColor,this.dbgPaintOutline=t.paintOutline??this.dbgPaintOutline,this.ensureLayers(),this.updateMask(),queueMicrotask((()=>{this.isConnected&&this.updateMask()})),this.initRafId=requestAnimationFrame((()=>{this.initRafId=null,this.isConnected&&this.updateMask()}));const e=document.fonts?.ready;e?.then&&e.then((()=>{this.isConnected&&this.updateMask()}));const n=this.bus;n.addEventListener(y_,this.onRegisterCapture,!0),n.addEventListener(S_,this.onUnregisterCapture,!0),n.addEventListener(T_,this.onGeometry,!0),n.addEventListener(r,this.onBusResize),o&&(window.addEventListener("resize",this.onWinResize,{passive:!0}),window.addEventListener("scroll",this.onWinScroll,{passive:!0})),document.addEventListener("fullscreenchange",this.onFsChange),n.addEventListener(f_,this.onDebugFlags),window.addEventListener(f_,this.onDebugFlags)}disconnectedCallback(){const t=this.bus;t.removeEventListener(y_,this.onRegisterCapture,!0),t.removeEventListener(S_,this.onUnregisterCapture,!0),t.removeEventListener(T_,this.onGeometry,!0),t.removeEventListener(r,this.onBusResize),o&&(window.removeEventListener("resize",this.onWinResize),window.removeEventListener("scroll",this.onWinScroll)),document.removeEventListener("fullscreenchange",this.onFsChange),t.removeEventListener(f_,this.onDebugFlags),window.removeEventListener(f_,this.onDebugFlags),null!=this.samplingId&&this.stopSampling(),null!=this.initRafId&&cancelAnimationFrame(this.initRafId),this.initRafId=null,this.io?.disconnect(),this.io=void 0,super.disconnectedCallback?.()}requestPointerMaskUpdate(){this.updateMask()}}}}({resizeEventName:Ct,overlapInset:10,cornerRadius:8,cursor:"pointer",listenWindow:!0,scope:t=>t.container})],vC);const fC=Wb('\n  :host {\n  \tdisplay: flex;\n    height: var(--host-height);\n    width: var(--host-width);\n    pointer-events: var(--host-pointer-events);\n    margin-right: var(--host-margin-right);\n  }\n\n  .progress-bar-container,\n  .progress-bar__total-duration,\n  .progress-bar__progress,\n  .progress-bar__thumb {\n    box-sizing: border-box;\n  }\n\n  .progress-bar__container {\n    display: flex;
1140\n    align-items: center;\n    position: relative;\n    width: 100%;\n    cursor: pointer;\n    direction: ltr;\n    isolation: isolate;\n  }\n\n  .progress-bar__time-bar {\n    position: absolute;\n    height: var(--time-bar--height);\n    transition: width 100ms ease-out;\n    border-radius: var(--time-bar--border-radius);\n  }\n\n  .progress-bar__total-duration {\n    background-color: var(--total-duration--background-color);\n    width: 100%;\n    border-radius: 6px;\n    will-change: transform, backdrop-filter;\n    transform: translateZ(0);\n    -webkit-backdrop-filter: var(--total-duration--backdrop-filter);\n    backdrop-filter: var(--total-duration--backdrop-filter);\n  }\n\n\t.progress-bar__pre-tail-end-non-seekable-range {\n\t\tposition: absolute;\n\t\theight: var(--time-bar--height);\n\t\tpointer-events: auto;\n\t}\n\n\t.progress-bar__post-live-edge-non-seekable-range {\n\t\tposition: absolute;\n\t\theight: var(--time-bar--height);\n\t\tpointer-events: auto;\n    display: var(--post-live-edge-non-seekable-range--display);\n\t}\n\n\t.no-seek,\n\t.no-seek > *,\n\t.no-seek .progress-bar__seekable-range,\n\t.progress-bar__pretune,\n\t.progress-bar__pretune > *,\n\t.progress-bar__pretune .progress-bar__seekable-range {\n\t\tpointer-events: none;\n\t}\n\n  .progress-bar__seekable-range {\n    height: var(--time-bar--height);\n    padding-top: var(--seekable-range--padding-top);\n    padding-bottom: var(--seekable-range--padding-bottom);\n    background-color: var(\n      --seekable-range--background-color\n    );\n    position: relative;\n    display: flex;\n    align-items: center;\n    pointer-events: all;\n    cursor: pointer;\n    touch-action: none;\n  }\n\n  .progress-bar__seekable-range.centered-time-preview {\n    --seekable-range--preview-fill--position: absolute;\n    --seekable-range--preview-fill--inset: 0;\n    --seekable-range--preview-fill--pointer-events: none;\n  }\n\n  .progress-bar__seekable-range progress-bar-preview {\n    position: var(--seekable-range--preview-fill--position, initial);\n    inset: var(--seekable-range--preview-fill--inset, initial);\n    pointer-events: var(--seekable-range--preview-fill--pointer-events, initial);\n    display: var(--seekable-range--preview-fill--display, initial);\n  }\n\n  .progress-bar__progress {\n    background-color: var(--progress--background-color);\n    z-index: 1;\n  }\n\n  .progress-bar__progress.progress-bar__progress-dragging {\n    transition: none;\n  }\n\n  .progress-bar__thumb {\n    position: absolute;\n    display: flex;\n    justify-content: center;\n    top: var(--thumb--top);\n    width: var(--thumb--width);\n    height: var(--thumb--height);\n    border-radius: var(--thumb--border-radius);\n    background-color: var(--thumb--background-color);\n    transform: translate(-50%, -50%);\n    pointer-events: none;\n    z-index: 3;\n  }\n\n  .progress-bar__thumb-scrubbing {\n    transition: left 100ms ease-out, height 50ms ease-out, width 50ms ease-out;\n  }\n\n  .progress-bar__thumb-scrubbing.progress-bar__thumb-dragging {\n    transition: height 50ms ease-out, width 50ms ease-out;\n  }\n\n  .progress-bar__current-time {\n    position: absolute;\n    color: var(--current-time--color);\n    text-align: var(--current-time--text-align);\n    font-size: var(--current-time--font-size);\n    line-height: var(--current-time--line-height);\n    font-weight: var(--current-time--font-weight);\n    transform: var(--current-time--transform);\n    \n\t\t&.progress-bar__live-label {\n\t\t\tcolor: var(--live-label--color);\n\t\t}\n  }\n\n  .progress-bar__thumb.progress-bar__thumb-dragging ~ .progress-bar__current-time {\n    visibility: var(--current-time--visibility-dragging, visible);\n  }\n\n  .progress-bar__proposed-time-marker {\n    position: var(--proposed-time-marker--position);\n    height: var(--proposed-time-marker--height);\n    width: var(--proposed-time-marker--width);\n    background-color: var(\n      --proposed-time-marker--background-color\n    );\n  }\n\n  .progress-bar__ad-marker-container {\n    --ad-marker__point-width: var(\n      --ad-marker__point--width,\n      var(--time-bar--height)\n    );\n    --ad-marker__point-height: var(\n      --ad-marker__point--height,\n      var(--time-bar--height)\n    );\n    --ad-marker__range-height: var(--ad-marker__range--height);\n\n    overflow: var(\n      --live-edge-ad-marker-container--overflow,\n      hidden\n    );\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    z-index: 1;\n  }\n\n  .progress-bar__slider-tick {\n    background-color: var(--slider-tick--background-color);\n    height: var(--slider-tick--height);\n    position: var(--slider-tick--position);\n    width: var(--slider-tick--width);\n    z-index: 2;\n  }\n\n  .progress-bar__deferred-marker {\n    background-color: var(--deferred-marker--background-color);\n    height: var(\n      --deferred-marker--height,\n      var(--time-bar--height)\n    );\n    position: absolute;\n    width: var(--deferred-marker--width);\n    z-index: 2;\n  }\n\n  /* VOD OVERRIDES */\n\n  .progress-bar__container {\n    &.progress-bar__vod {\
1140n      .progress-bar__progress {\n        background-color: var(\n          --progress--vod--background-color,\n          var(--progress--background-color)\n        );\n      }\n      .progress-bar__seekable-range {\n        background-color: var(\n          --seekable-range__vod--background-color\n        );\n      }\n    }\n  }\n\n  /* LIVE OVERRIDES */\n  .progress-bar__container {\n    &.static-live {\n      .progress-bar__total-duration {\n        background-color: var(--total-duration__static-live--background-color);\n      }\n    }\n\n    &.progress-bar__live {\n      .progress-bar__progress {\n        background-color: var(\n          --progress__live--background-color,\n          var(--progress--background-color)\n        );\n      }\n      .progress-bar__seekable-range {\n        &::before,\n        &::after {\n          content: "";\n          position: absolute;\n          left: 0;\n          width: 100%;\n          height: var(--time-bar--height);\n          pointer-events: none;\n        }\n        &::before {\n          border-right: var(--seekable-range__live--border-right);\n        }\n        &::after {\n          opacity: var(--seekable-range__live--overlay--opacity);\n        }\n      }\n\n  \t\t.progress-bar__seekable-range {\n        &::before {\n          background-color: var(\n            --seekable-range__live--background-color\n          );\n        }\n        &::after {\n          background-color: var(\n            --seekable-range__live--overlay--background-color\n          );\n        }\n      }\n    }\n  }\n\n\t.progress-bar__container.no-seek {\n\t\t&.progress-bar__live {\n\t\t\t.progress-bar__seekable-range {\n\t\t\t\t&::before {\n\t\t\t\t\t--seekable-range__live--background-color: var(--total-duration--background-color);\n\t\t\t\t\t--seekable-range__live--border-right: none;\n\t\t\t\t\twidth: unset;\n\t\t\t\t}\n\t\t\t\t&::after {\n\t\t\t\t\t--seekable-range__live--overlay--background-color: var(--total-duration--background-color);\n\t\t\t\t\twidth: unset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n  /* PRETUNE OVERRIDES */\n  .progress-bar__container {\n    &.progress-bar__pretune {\n      .progress-bar__thumb {\n        display: none;\n      }\n    }\n  }\n\n  /* HOVER/FOCUS OVERRIDES */\n\t.progress-bar__live.no-seek .progress-bar__progress {\n\t\tbackground-color: unset;\n\t}\n\n  .progress-bar__container {\n    &:not(.progress-bar__pretune):hover,\n    &:not(.progress-bar__pretune):focus {\n      /* TIME BARS */\n      .progress-bar__time-bar {\n        height: var(\n          --time-bar--height-hover,\n          var(--time-bar--height)\n        );\n      }\n\n      .seekable-range {\n        height: var(--time-bar--height-hover);\n      }\n\n      /* TOTAL DURATION */\n      .progress-bar__total-duration {\n        background-color: var(\n          --total-duration--background-color-hover,\n          var(--total-duration--background-color)\n        );\n      }\n\n      /* PROGRESS INDICATOR BAR */\n      .progress-bar__progress {\n        background-color: var(\n          --progress--hover--background-color,\n          var(--progress--background-color)\n        );\n      }\n\n      &.progress-bar__live {\n        .progress-bar__progress {\n          background-color: var(\n            --progress__live-background--color-hover,\n            var(\n              --progress__live--background-color,\n              var(--progress--background-color)\n            )\n          );\n        }\n\n        .progress-bar__seekable-range {\n          &::before,\n          &::after {\n            height: var(--time-bar--height-hover);\n          }\n        }\n      }\n\n      &.progress-bar__vod {\n        .progress-bar__progress {\n          background-color: var(\n            --progress--vod-hover-background-color,\n            var(\n              --progress--vod--background-color,\n              var(--progress--background-color)\n            )\n          );\n        }\n      }\n\n      .progress-bar__ad-marker-container {\n        --point-width: var(\n          --ad-marker__point--width-hover,\n          var(\n            --point--width,\n            var(--time-bar--height-hover)\n          )\n        );\n        --point-height: var(\n          --ad-marker__point--height-hover,\n          var(\n            --ad-marker__point--height,\n            var(--time-bar--height-hover)\n          )\n        );\n        --range-height: var(\n          --ad-marker__range--height-hover,\n          var(--ad-marker__range--height)\n        );\n      }\n\n      /* THUMB SCRUBBER */\n      .progress-bar__thumb {\n        height: var(\n          --thumb--height-hover,\n          var(--thumb--height)\n        );\n        width: var(\n          --thumb--width-hover,\n          var(--thumb--width)\n        );\n        display: flex;\n\n        &.progress-bar__thumb-dragging {\n          height: var(--thumb--height-dragging, var(--thumb--height-hover));\n          width: var(--thumb--width-dragging, var(--thumb--width-hover));\n        }\n      }\n      &.progress-bar__ad-playing {\n        .progress-bar__thumb {\n          height: var(\n            --ad-playing--thumb--width-hover,\n            var(--thumb--height-hover)\n          );\n          width: var(\n            --ad-playing--thumb--height-hover,\n            var(--thumb--width-hover)\n          );\n        }\n      }\n    }\n  }\n\n  /* AD PLAYING OVERRIDES */\n\n  .progress-bar__ad-playing {\n    /* THUMB SCRUBBER */\n    .progress-bar__thumb {\n      display: var(--ad-playing--thumb--display, --thumb--display);\n      width: var(\n        --ad-playing--thumb--width,\n        var(--thumb--width)\n      );\n      height: var(\n        --ad-playing--thumb--height,\n        var(--thumb--height)\n      );\n      background-color: var(\n        --ad-playing--thumb--background-color,\n        var(--thumb--background-color)\n      );\n      border: var(--ad-marker__point--active-deferred-outline);\n    }\n\n    &.progress-bar__live {\n      .progress-bar__thumb {\n        background-color: var(--thumb--background-color);\n        border: none;\n      }\n    }\n  }
1140\n\n  .progress-bar__slider-description {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    padding: 0;\n    margin: -1px;\n    overflow: hidden;\n    clip: rect(0, 0, 0, 0);\n    white-space: nowrap;\n    border: 0;\n  }\n');class bC{get visible(){return!this.streamController.value.notready}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}}function*_C(t,e){if(void 0!==t){let n=0;for(const i of t)yield e(i,n++)}}const EC=p.i`
1141	.marker-point,
1142	.marker-range {
1143		pointer-events: var(--marker-pointer-events);
1144		position: var(--marker-position);
1145	}
1146
1147	.marker-point.active-deferred {
1148		--point-background-color: var(--active-deferred__point-background-color);
1149		outline: var(--point--active-deferred-outline);
1150		box-sizing: border-box;
1151		height: var(--point-height--active-deferred, var(--point-height));
1152		width: var(--point-width--active-deferred, var(--point-width));
1153	}
1154
1155	.marker-point {
1156		width: var(--point-width);
1157		height: var(--point-height);
1158		background-color: var(--point-background-color);
1159		border-radius: var(--point-border-radius);
1160		transform: var(--point-transform);
1161	}
1162
1163	.marker-range {
1164		height: var(--range-height);
1165		background-color: var(--range-background-color);
1166		transform: var(--range-transform);
1167		border-radius: var(--range-border-radius);
1168	}
1169`;Object.getOwnPropertyDescriptor;const yC={startPositionMs:0,seekableStartMs:0,seekableEndMs:0,deferredSeekId:null,hasCurrentSession:!1,markers:[],noSeek:!1},SC=t=>{const{timeline:e,interstitials:n,streamDetails:i}=t,{startPositionMs:r,seekableStartMs:o,seekableEndMs:a}=e?.timeline||{},{deferredSeekId:s}=e?.scrubResult||{},{currentSession:l,milestones:c}=n||{},{noSeek:d}=i||{};return{startPositionMs:r??0,seekableStartMs:o??0,seekableEndMs:a??0,deferredSeekId:s??null,hasCurrentSession:!!l,markers:c?.data??[],noSeek:d??!1}};let TC=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,SC,yC)}render(){const{startPositionMs:t,seekableStartMs:e,seekableEndMs:n,deferredSeekId:i,hasCurrentSession:r,markers:o,noSeek:a}=this.streamController.value,s=n-e;return a?p.E:p.x` ${_C(o,(e=>{if(t>e.milestoneTime)return p.E;const n=(e.milestoneTime-t)/s*100;if(e.milestonePlacement===$g.Point)return p.x`
1170					<div
1171						class="marker-point ${e.id!==i||r?"":"active-deferred"}"
1172						id=${e.id}
1173						style=${$y({left:`${n}%`})}
1174					></div>
1175				`;if(e.milestonePlacement===$g.Range&&null!==e.milestoneEndTime){const i=(e.milestoneEndTime-t)/s*100-n;return p.x`
1176					<div
1177						class="marker-range"
1178						id=${e.id}
1179						style=${$y({left:`${n}%`,width:`${i}%`})}
1180					></div>
1181				`}return p.x`<div
1182				class="marker-unknown"
1183				id=${e.id}
1184				style=${$y({left:`${n}%`,display:"none"})}
1185			></div>`}))}`}};TC.tokens={"marker-position":"absolute","marker-pointer-events":"none","point-width":"4px","point-height":"4px","point-background-color":"#0E0B14","point-border-radius":"50%","point-transform":"translate(-50%, -50%)","point--active-deferred-outline":"1px solid #ffdb6e","active-deferred__point-background-color":"#000","range-height":"2px","range-background-color":"#0e0b14","range-transform":"translateY(-50%)","range-border-radius":"2px",responsive:{}},TC.styles=[EC],TC=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
1185)([p_],TC);const CC=p.i`
1186	.progress-bar__current-time--centered-above {
1187		position: absolute;
1188		left: 50%;
1189		bottom: 100%;
1190		margin-bottom: var(--centered-time--gap, 8px);
1191		transform: var(--centered-time--transform, translateX(-50%));
1192		padding: var(--centered-time--padding, 3px 10px);
1193		font-family: var(--centered-time--font-family);
1194		font-size: var(--centered-time--font-size, 22px);
1195		font-weight: var(--centered-time--font-weight);
1196		line-height: var(--centered-time--line-height);
1197		letter-spacing: var(--centered-time--letter-spacing);
1198		color: var(--centered-time--color);
1199		white-space: nowrap;
1200	}
1201
1202	.hide {
1203		visibility: hidden;
1204	}
1205
1206	.visible {
1207		visibility: visible;
1208	}
1209
1210	.preview-tile {
1211		display: var(--preview-tile--display, flex);
1212		flex-direction: var(--preview-tile--flex-direction, column);
1213		justify-content: var(--preview-tile--justify-content, center);
1214		align-items: var(--preview-tile--align-items, center);
1215		position: var(--preview-tile--position);
1216		bottom: var(--preview-tile--bottom);
1217		padding-top: var(--preview-tile--padding-top);
1218		padding-right: var(--preview-tile--padding-right);
1219		padding-bottom: var(--preview-tile--padding-bottom);
1220		padding-left: var(--preview-tile--padding-left);
1221		z-index: var(--preview-tile--z-index);
1222		gap: var(--preview-tile--gap);
1223		pointer-events: none;
1224	}
1225
1226	.hover-marker {
1227		position: var(--hover-marker--position);
1228		width: var(--hover-marker--width);
1229		height: var(--hover-marker--height);
1230		background-color: var(--hover-marker--background-color);
1231		top: var(--hover-marker--top);
1232		border-radius: var(--hover-marker--border-radius);
1233		pointer-events: var(--hover-marker--pointer-events);
1234		transform: var(--hover-marker--transform);
1235		z-index: 2;
1236	}
1237
1238	.hover-timeline-before-playhead {
1239		background-color: var(
1240			--hover-timeline-before-playhead--background-color,
1241			var(--hover-marker--background-color)
1242		);
1243	}
1244
1245	.hover-timeline-after-playhead {
1246		background-color: var(
1247			--hover-timeline-after-playhead--background-color,
1248			var(--hover-marker--background-color)
1249		);
1250	}
1251
1252	.preview-time {
1253		box-sizing: border-box;
1254		position: var(--preview-time--position);
1255		align-content: center;
1256		border-radius: var(--preview-time--border-radius, 20px);
1257		background-color: var(--preview-time--bg-color, rgba(0, 0, 0, 0.75));
1258		padding: var(--preview-time--padding);
1259		width: auto;
1260		height: var(--preview-time--height);
1261		text-align: center;
1262		line-height: var(--preview-time--line-height, 1.53);
1263		letter-spacing: var(--preview-time--letter-spacing);
1264		color: var(--preview-time--color, #f9f9f9);
1265		font-size: var(--preview-time--font-size, 20px);
1266		font-weight: var(--preview-time--font-weight);
1267	}
1268
1269	.live-edge-label {
1270		position: absolute;
1271		inset-inline-end: 0;
1272		color: var(--live-label--color);
1273		font-size: var(--preview-time--font-size, 20px);
1274		line-height: var(--preview-time--line-height, 1.53);
1275		font-weight: var(--preview-time--font-weight, 700);
1276		text-transform: uppercase;
1277		transform: translate(50%, 22px);
1278		pointer-events: none;
1279		z-index: 3;
1280	}
1281
1282	.preview-image-container {
1283		margin-bottom: var(--preview-image-container--margin-bottom, 4px);
1284	}
1285
1286	.preview-image {
1287		background-position: 0px 0px;
1288		box-shadow: var(--preview-image--box-shadow);
1289		border-radius: var(--preview-image--border-radius);
1290		border: var(--preview-image--border, none);
1291	}
1292
1293	.aspect-ratio-1_33 {
1294		--preview-tile-width: var(--preview-tile--aspect-ratio-1_33-width);
1295	}
1296
1297	.aspect-ratio-1_85 {
1298		--preview-tile-width: var(--preview-tile--aspect-ratio-1_85-width);
1299	}
1300
1301	.aspect-ratio-2_35 {
1302		--preview-tile-width: var(--preview-tile--aspect-ratio-2_35-width);
1303	}
1304
1305	.aspect-ratio-2_35 .preview-image-container {
1306		width: var(--preview-image-container--aspect-ratio-2_35-width);
1307	}
1308
1309	.aspect-ratio-1_33 .preview-image {
1310		background-size: var(--preview-tile--aspect-ratio-1_33-width);
1311		width: var(--preview-tile--aspect-ratio-1_33-width);
1312	}
1313
1314	.aspect-ratio-1_85 .preview-image {
1315		background-size: var(--preview-tile--aspect-ratio-1_85-width);
1316		width: var(--preview-tile--aspect-ratio-1_85-width);
1317	}
1318
1319	.aspect-ratio-2_35 .preview-image {
1320		background-size: var(--preview-tile--aspect-ratio-2_35-width);
1321		width: var(--preview-tile--aspect-ratio-2_35-width);
1322	}
1323`;var wC=Object.defineProperty,AC=Object.getOwnPropertyDescriptor,IC=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?AC(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&wC(e,n,o),o};const OC=Tc(),RC={1.33:"aspect-ratio-1_33",1.85:"aspect-ratio-1_85",2.35:"aspect-ratio-2_35"},xC={playheadPositionMs:0,thumbnailHeight:0,thumbnailWidth:1,thumbnailSrc:null,noSeek:!1,isLive:!1},LC=t=>{const{timeline:e,streamDetails:n}=t,{playheadPositionMs:i}=e?.timeline||{},{thumbnailHeight:r,thumbnailWidth:o,thumbnailSrc:a}=e?.scrubResult||{},{noSeek:s,isLive:l}=n||{};return{playheadPositionMs:i??0,thumbnailHeight:r??0,thumbnailWidth:o??1,thumbnailSrc:a??null,
1323noSeek:s??!1,isLive:l??!1}};let kC=class extends pt{constructor(){super(...arguments),this.disablePreviewTile=!1,this.hideHoverMarker=!1,this.hidePreviewTimeBubble=!1,this.centerTimePreview=!1,this.timeDisplayFormat="current",this.showLiveEdgeLabel=!1,this.streamController=new G_(this,LC,xC),this.tileRef=aE(),this.timeBubbleObserver=new IntersectionObserver(this.observeTimeBubble.bind(this)),this.hasRendered=!1,this.timeBubbleWidth=0}getQAElements(){return{previewTime:this.previewTimeElement,liveEdgeLabel:this.liveEdgeLabelElement}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe(this,(t=>{const e=t.overlayState?.overlays?.toast;return Boolean(e?.isOpen&&(e.suppressesProgressScrubPreview??!1))}))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState?.()}observeTimeBubble(t){t.forEach((t=>{this.timeBubbleWidth=t?.boundingClientRect?.width||0}))}onBubbleRefChanged(t){t&&this.timeBubbleObserver.observe(t)}get shouldHideProgressScrubPreviewForToast(){const t=this.localState?.overlayState?.overlays?.toast;return Boolean(t?.isOpen&&(t.suppressesProgressScrubPreview??!1))}getTileRef(){return this.tileRef}getHasRendered(){return this.hasRendered}getPreviewTilePosition(){const{thumbnailSrc:t}=this.streamController.value;if(!this.hoverMarkerPosition)return{};const e=this.sliderContainer?.value?.getBoundingClientRect()?.width;if(!e)return this.hoverMarkerPosition;let n;if(this.showLiveEdgeLabel&&"number"==typeof this.thumbPosition)n=this.thumbPosition/100*e;else{const{left:t}=this.hoverMarkerPosition,i=parseFloat(t);n=t.endsWith("%")?i/100*e:t.endsWith("px")?i:t}let i="calc(var(--preview-tile-width) + var(--preview-tile--padding-right) + var(--preview-tile--padding-left))";t||(i=`calc(${this.timeBubbleWidth}px + var(--preview-tile--padding-right) + var(--preview-tile--padding-left))`);const r=`calc(${n}px - calc(${i} / 2))`;return this.showLiveEdgeLabel?{left:`max(0px, ${r})`}:{left:`clamp(0px, ${r}, calc(${e}px - ${i}))`}}get previewTileClassNames(){const{thumbnailHeight:t,thumbnailWidth:e}=this.streamController.value,n=Number((e/t).toFixed(2)),i=RC[n]||RC[2.35],r=this.hasRendered&&!!this.hoverMarkerPosition;return{"preview-tile":!0,[i]:!0,hide:!r,visible:r}}show(){if(this.tileRef.value){const t=this.tileRef.value;this.hasRendered||(this.hasRendered=!0);const e=this.getPreviewTilePosition();t.style.left=e.left}}hide(){const t=this.tileRef?.value;t&&t.style&&t.style.removeProperty("left"),this.hasRendered=!1}syncPreviewVisibility(){this.shouldHideProgressScrubPreviewForToast||!this.hoverMarkerPosition?this.hide():this.show()}render(){const{thumbnailHeight:t,thumbnailWidth:e,thumbnailSrc:n,playheadPositionMs:i,noSeek:r}=this.streamController.value,o="number"==typeof this.programDurationMs?OC(this.programDurationMs,Ic(this.programDurationMs)):null,a="number"==typeof this.positionValue?OC(this.positionValue,Ic(this.positionValue)):null,s=this.dragging&&this.centerTimePreview&&"number"==typeof this.positionValue&&!r&&!!a&&!this.shouldHideProgressScrubPreviewForToast,l=s&&o?`${a} / ${o}`:null,c=(({thumbnailSrc:t,thumbnailHeight:e=0,thumbnailWidth:n=1})=>({backgroundImage:`url('${t}')`,backgroundRepeat:"no-repeat",paddingTop:e/n*100+"%"}))({thumbnailHeight:t,thumbnailWidth:e,thumbnailSrc:n}),d=My({"hover-timeline-before-playhead":this.positionValue<i,"hover-timeline-after-playhead":this.positionValue>i});return this.syncPreviewVisibility(),Q_(s&&l,(()=>p.x`
1324				<span
1325					class="progress-bar__current-time progress-bar__current-time--centered-above"
1326				>
1327					${l}
1328				</span>
1329			`),(()=>Q_(this.hoverMarkerPosition&&!r&&!this.shouldHideProgressScrubPreviewForToast,(()=>p.x`
1330						<div
1331							${cE(this.tileRef)}
1332							class="${My(this.previewTileClassNames)}"
1333						>
1334							${Q_(n&&!this.disablePreviewTile,(()=>p.x`
1335									<div class="preview-image-container">
1336										<div
1337											class="preview-image"
1338											style=${$y(c)}
1339										></div>
1340									</div>
1341								`))}
1342							${Q_(a&&!this.hidePreviewTimeBubble,(()=>p.x`
1343									<span ${cE(this.onBubbleRefChanged)} class="preview-time">
1344										${a}
1345									</span>
1346								`))}
1347						</div>
1348						${Q_(!this.dragging&&!this.hideHoverMarker,(()=>p.x`
1349								<div
1350									style=${$y(this.hoverMarkerPosition)}
1351									class="hover-marker ${d}"
1352									role="presentation"
1353								></div>
1354							`),(()=>p.E))}
1355						${Q_(this.showLiveEdgeLabel,(()=>p.x`
1356								<span class="live-edge-label">
1357									${this.dictionary?.translate(Xl.MEDIA.CONTROLS.INDICATOR_AT_LIVE,"LIVE")}
1358								</span>
1359							`))}
1360					`),(()=>p.E))))}};kC.tokens={"hover-marker--position":"absolute","hover-marker--width":"4px","hover-marker--height":"16px","hover-marker--background-color":"#F9F9F9","hover-marker--border-radius":"2px","hover-marker--transform":"translate(-50%, -50%)","hover-marker--pointer-events":"none","hover-marker--top":void 0,"preview-tile--position":"absolute","preview-tile--aspect-ratio-1_33-width":"200px","preview-tile--aspect-ratio-1_85-width":"200px","preview-tile--aspect-ratio-2_35-width":"200px","preview-tile--display":"flex","preview-tile--flex-direction":"column","preview-tile--justify-content":"center","preview-tile--align-items":"center","preview-tile--bottom":"15px","preview-tile--padding-top":"4px","preview-tile--padding-right":"4px","preview-tile--padding-bottom":"4px","preview-tile--padding-left":"4px","preview-tile--animation-duration":".1s","preview-tile--animation-iteration-count":"1","preview-tile--animation-name":"BTMPPreviewImage","preview-tile--animation-timing-function":"ease-out","preview-tile--z-index":"2","preview-tile--gap":"11px","preview-image-container--margin-bottom":"0","preview-image-container--aspect-ratio-2_35-width":"110px","preview-image--box-sha
1360dow":"0 0 8px rgba(0,0,0,.5)","preview-time--position":"relative","preview-time--line-height":"1.53","preview-time--bg-color":"rgba(0, 0, 0, .75)","preview-time--border-radius":"20px","preview-time--font-size":"20px","preview-time--font-weight":"700","preview-time--letter-spacing":"0.022px","preview-time--color":"#f9f9f9","preview-time--padding":"4px 10px","centered-time--gap":"8px","centered-time--padding":"3px 10px","centered-time--transform":"translateX(-50%)","centered-time--font-family":"inherit","centered-time--font-size":"22px","centered-time--font-weight":"700","centered-time--line-height":"24px","centered-time--letter-spacing":"-0.66px","centered-time--color":"#ffffff",responsive:{}},kC.tokenPrefix="progress-bar-preview",kC.styles=[qb,CC],IC([(0,p.n)({type:Object})],kC.prototype,"hoverMarkerPosition",2),IC([(0,p.n)({type:Number})],kC.prototype,"positionValue",2),IC([(0,p.n)({type:Object})],kC.prototype,"sliderContainer",2),IC([(0,p.n)({type:Object})],kC.prototype,"dragging",2),IC([(0,p.n)({type:Boolean})],kC.prototype,"disablePreviewTile",2),IC([(0,p.n)({type:Boolean})],kC.prototype,"hideHoverMarker",2),IC([(0,p.n)({type:Boolean})],kC.prototype,"hidePreviewTimeBubble",2),IC([(0,p.n)({type:Boolean})],kC.prototype,"centerTimePreview",2),IC([(0,p.n)({type:Number})],kC.prototype,"programDurationMs",2),IC([(0,p.n)({type:String})],kC.prototype,"timeDisplayFormat",2),IC([(0,p.n)({type:Boolean})],kC.prototype,"showLiveEdgeLabel",2),IC([(0,p.n)({type:Number})],kC.prototype,"thumbPosition",2),IC([v()],kC.prototype,"hasRendered",2),IC([v()],kC.prototype,"timeBubbleWidth",2),IC([b(".preview-time")],kC.prototype,"previewTimeElement",2),IC([b(".live-edge-label")],kC.prototype,"liveEdgeLabelElement",2),kC=IC([p_],kC);var PC=Object.defineProperty,DC=Object.getOwnPropertyDescriptor,NC=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?DC(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&PC(e,n,o),o};const MC=Tc(),UC="Progress bar",BC="progress-bar-slider-description",VC={playheadPositionMs:NaN,programDurationMs:NaN,seekableEndMs:NaN,seekableStartMs:NaN,startPositionMs:NaN,scrubbing:!1,expectedSeekResult:null,notready:!0,deferredSeekTime:null,seeking:!1,isBehindLiveEdge:!1,isLive:!1,isLiveEvent:!1,isVOD:!0,noSeek:!1,isPretune:!1,hasCurrentSession:!1,isAdType:!1,isVNextPlayerEnabled:!1},FC=t=>{const{timeline:e,playback:n,streamDetails:i,interstitials:r,isPretune:o}=t,{playheadPositionMs:a,programDurationMs:s,seekableEndMs:l,seekableStartMs:c,startPositionMs:d}=e?.timeline||{},{scrubbing:u,expectedSeekResult:p}=e?.scrubResult||{},{notready:h,deferredSeekTime:m,seeking:g,isBehindLiveEdge:v}=n||{},{isLive:f,isLiveEvent:b,isVOD:_,noSeek:E}=i||{},{hasCurrentSession:y,isAdType:S}=r||{},{isInPretune:T}=o||{};return{playheadPositionMs:a??NaN,programDurationMs:s??NaN,seekableEndMs:l??NaN,seekableStartMs:c??NaN,startPositionMs:d??NaN,scrubbing:u??!1,expectedSeekResult:p??null,notready:h??!0,deferredSeekTime:m??null,seeking:g??!1,isBehindLiveEdge:v??!1,isLive:f??!1,isLiveEvent:b??!1,isVOD:_??!0,noSeek:E??!1,isPretune:T??!1,hasCurrentSession:y??!1,isAdType:S??!1,isVNextPlayerEnabled:Boolean(n?.clients?.playerFeatureFlags?.isVNextPlayerEnabled)}};let zC=class extends pt{constructor(){super(),this.sliderContainerRef=aE(),this.slider=new mT(this),this.dictionaryKey=Xl.MEDIA.CONTROLS.TIMELINE,this.fallback="Timeline",this.moveThumbOnHover=!0,this.streamController=new G_(this,FC,VC),this.controller=new bC(this,{streamController:this.streamController}),this.sliderTabIndex=0,this.step=.001,this.precise=!0,this.staticLive=!1,this.hideCurrentTimeBelowThumb=!1,this.hideThumb=!1,this.disablePreviewTile=!1,this.hideHoverMarker=!1,this.hideProposedTimeMarker=!1,this.hidePreviewTimeBubble=!1,this.centerTimePreview=!1,this.showTimeOnlyWhenDragging=!1,this.timeDisplayFormat="current",this.direction=t_.FROMLEFT,this.pendingSeekTargetMs=null,this.a11ySnapshot=null,this.a11yThrottleLastEmitMs=0,this.a11yWasSeeking=!1,this.a11yLastPassiveQuantizedMs=null,this.handleSeekableRangeFocusIn=()=>{if(this.slider.dragging)return;const t=this.slider.value,{startPositionMs:e}=this.streamController.value,{min:n,max:i}=this.slider;if("number"!=typeof t||!Number.isFinite(t)||!Number.isFinite(e))return;const r=this.quantizeSliderA11yMs(t);this.a11ySnapshot=this.buildA11ySnapshot(r,e,n,i),this.a11yLastPassiveQuantizedMs=r,this.requestUpdate()},this.dispatchPointerEvent=H_(((t,{refString:e})=>{const n=t.currentTarget??this.seekableRange;if(!n)return;const i=n.getBoundingClientRect(),r=i.width>0?(t.clientX-i.left)/i.width:0,o=i.height>0?(t.clientY-i.top)/i.height:0;this.commandBus.dispatchCommand(Ql.POINTER_EVENT,{clientX:t.clientX,clientY:t.clientY,relX:r,relY:o,type:t.type,pointerId:t.pointerId,pointerType:t.pointerType||"mouse",isPrimary:void 0===t.isPrimary||t.isPrimary,width:t.width||1,height:t.height||1,ref:e,label:UC,timestamp:Date.now()})}),20),this.isProposedTimeValid=t=>void 0!==t,this.handleClick=t=>{if(this.isProposedTimeValid(t)){this.commitA11ySnapshotFromPosition(t),this.pendingSeekTargetMs=t;const e=this.streamController.value.playheadPositionMs/1e3;
1360this.commandBus?.dispatchCommand(Ql.SEEK,{fromPlayheadPositionSecs:e,toPlayheadPositionSecs:t/1e3,proposedTime:t,label:UC})}},this.handleMove=t=>{this.commandBus?.dispatchCommand(Ql.SCRUB,{target:t,scrubbing:!0,label:UC})},this.handleOut=()=>{this.commandBus?.dispatchCommand(Ql.SCRUB,{target:null,label:UC})},this.handleKeyDown=t=>{if(!this.slider||this.shouldDisableAction())return;const e=this.localState?.playerMode?.isVerticalVideo??!1;if(e&&("ArrowUp"===t.key||"ArrowDown"===t.key))return t.preventDefault(),void t.stopPropagation();const{slideableMin:n,slideableMax:i}=this.slider;let{value:r}=this.slider;const o=e?5e3:1e3;switch(t.key){case"ArrowLeft":case"ArrowDown":r-=o;break;case"ArrowRight":case"ArrowUp":r+=o;break;case"Home":r=n;break;case"End":r=i;break;default:return}t.preventDefault(),t.stopPropagation();const a=of(r,n,i);this.handleClick(a)},this.handlePointerOut=H_((t=>{this.slider.handlePointerOut(t,this.handleOut),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_SEEKABLE_RANGE}),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_PRE_TAIL_END_NON_SEEKABLE_RANGE}),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_POST_LIVE_EDGE_NON_SEEKABLE_RANGE}),this.commandBus?.dispatchCommand(Ql.DIM_CONTROLS,{label:UC,control:null})}),50);const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}disconnectedCallback(){super.disconnectedCallback(),this.handlePointerOut?.cancel(),this.unsubscribeFromLocalState?.()}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe(this,(t=>{const e=t.overlayState?.overlays?.toast;return{controlsOpen:t.modalState.modals.controls?.isOpen??!1,showLiveLabel:t.progressBar.showLiveLabel,isVerticalVideo:t.playerMode?.isVerticalVideo??!1,toastSuppressesProgressScrubPreview:Boolean(e?.isOpen&&(e.suppressesProgressScrubPreview??!1))}}))}willUpdate(t){this.updateSliderFromState(),this.updateA11yValues()}quantizeSliderA11yMs(t){return 1e3*Math.floor(t/1e3)}buildA11ySnapshot(t,e,n,i){const r=Math.round(n/1e3),o=Math.round(i/1e3),a=Math.max(0,i-n),s=Math.round(t/1e3),l=t-e;return{positionMs:t,ariaValuemin:r,ariaValuemax:o,ariaValuenow:s,ariaValuetext:Number.isFinite(l)&&Number.isFinite(a)&&a>0?`${MC(l,Ic(l))} of ${MC(a,Ic(a))}`:`${s} of ${o}`}}commitA11ySnapshotFromPosition(t){const{startPositionMs:e}=this.streamController.value,{min:n,max:i}=this.slider;if(!Number.isFinite(e))return;const r=this.quantizeSliderA11yMs(t);this.a11ySnapshot=this.buildA11ySnapshot(r,e,n,i),this.a11yLastPassiveQuantizedMs=r}refreshA11ySnapshotFromPlayhead(){const{startPositionMs:t}=this.streamController.value,{min:e,max:n}=this.slider,i=this.slider.clampedValue;if(!(Number.isFinite(i)&&Number.isFinite(t)&&Number.isFinite(e)&&Number.isFinite(n)))return;const r=this.quantizeSliderA11yMs(i);this.a11ySnapshot=this.buildA11ySnapshot(r,t,e,n),this.a11yLastPassiveQuantizedMs=r}timelineHasValidNumbers(){const{playheadPositionMs:t,programDurationMs:e,seekableEndMs:n,seekableStartMs:i,startPositionMs:r}=this.streamController.value;return Number.isFinite(t)&&Number.isFinite(e)&&Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(r)&&e>0&&n>=i}updateA11yValues(){if(!this.timelineHasValidNumbers())return;const{startPositionMs:t,seeking:e}=this.streamController.value,n=this.slider.dragging,{min:i,max:r,clampedValue:o}=this.slider;if(!(Number.isFinite(t)&&Number.isFinite(i)&&Number.isFinite(r)&&Number.isFinite(o)))return;const a=Date.now(),s=this.quantizeSliderA11yMs(o),l=null!==this.pendingSeekTargetMs;if(n){this.a11yLastPassiveQuantizedMs=null;const e=this.buildA11ySnapshot(o,t,i,r);return void((null===this.a11ySnapshot||a-this.a11yThrottleLastEmitMs>=400)&&(this.a11ySnapshot=e,this.a11yThrottleLastEmitMs=a))}if(e){if(l)return;const e=this.buildA11ySnapshot(s,t,i,r);return void((null===this.a11ySnapshot||a-this.a11yThrottleLastEmitMs>=400)&&(this.a11ySnapshot=e,this.a11yThrottleLastEmitMs=a))}if(this.a11yThrottleLastEmitMs=0,l)return;const c=this.a11yLastPassiveQuantizedMs;if(null===this.a11ySnapshot)return this.a11ySnapshot=this.buildA11ySnapshot(s,t,i,r),void(this.a11yLastPassiveQuantizedMs=s);if(null===c)return void(this.a11yLastPassiveQuantizedMs=s);const d=Math.abs(s-c);this.a11yLastPassiveQuantizedMs=s,d>=2e3&&(this.a11ySnapshot=this.buildA11ySnapshot(s,t,i,r))}updateSliderFromState(){const{playheadPositionMs:t,programDurationMs:e,seekableEndMs:n,seekableStartMs:i,startPositionMs:r,deferredSeekTime:o}=this.streamController.value,a=this.slider.dragging;if(!(Number.isFinite(t)&&Number.isFinite(e)&&Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(r)&&e>0&&n>=i))return;const s="number"==typeof o&&Number.isFinite(o)?o:null,l=null!==this.pendingSeekTargetMs&&Math.abs(t-this.pendingSeekTargetMs)<=1e3,c=null!==this.pendingSeekTargetMs&&(null!==s||l),d=null===this.pendingSeekTargetMs||c?null:this.pendingSeekTargetMs,u=s??d??t;a||this.slider.updateValues({min:r,max:r+e,value:u,slideableMin:i,slideableMax:n}),c&&(this.pendingSeekTargetMs=null)}firstUpdated(t){super.firstUpdated(t)}updated(t){super.updated(t);const e=this.streamController.value.seeking;!this.a11yWasSeeking||e||this.slider.dragging||(this.refreshA11ySnapshotFromPlayhead(),this.requestUpdate()),this.a11yWasSeeking=e}shouldDisableAction(t){const{expectedSeekResult:e,isLive:n,noSeek:i,isPretune:r,hasCurrentSession:o,isAdType:a}=this.streamController.value;let s=!1;return(i||r)&&(s=!0),n||("DEFERRED"===e&&"pointerDown"===t&&(s=!0),o&&a&&(s=!0)),s&&this.commandBus?.dis
1360patchCommand(Ql.NOTIFY_CONTROLS_DISABLED,{control:"timeline",label:UC,localState:this.localState}),s}dispatchProgressBarDragging(t){this.dispatchEvent(new CustomEvent("progress-bar-dragging",{detail:{dragging:t},bubbles:!0,composed:!0}))}handlePointerUp(t){const e=this.slider.dragging;this.slider.handlePointerUp(t,this.handleClick),e&&this.dispatchProgressBarDragging(!1),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_SEEKABLE_RANGE})}handlePointerDown(t){this.shouldDisableAction("pointerDown")||(this.slider.handlePointerDown(t,this.handleMove),this.dispatchProgressBarDragging(!0),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_SEEKABLE_RANGE}))}handlePointerMove(t){this.handlePointerOut?.cancel(),this.slider.handlePointerMove(t,this.handleMove),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_SEEKABLE_RANGE}),this.commandBus?.dispatchCommand(Ql.DIM_CONTROLS,{label:UC,control:"progress-bar"})}handlePointerMovePreTailEdge(t){const{noSeek:e,seekableStartMs:n}=this.streamController.value;e||(this.handlePointerOut?.cancel(),this.slider.setHoverToValue(n,this.handleMove),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_PRE_TAIL_END_NON_SEEKABLE_RANGE}),this.commandBus?.dispatchCommand(Ql.DIM_CONTROLS,{label:UC,control:"progress-bar"}))}handlePointerMovePostLiveEdge(t){const{noSeek:e,seekableEndMs:n}=this.streamController.value;e||(this.handlePointerOut?.cancel(),this.slider.setHoverToValue(n,this.handleMove),this.dispatchPointerEvent(t,{refString:e_.PROGRESS_BAR_POST_LIVE_EDGE_NON_SEEKABLE_RANGE}),this.commandBus?.dispatchCommand(Ql.DIM_CONTROLS,{label:UC,control:"progress-bar"}))}handlePointerUpPreTailEdge(t){const{noSeek:e}=this.streamController.value;e||this.commandBus?.dispatchCommand(Ql.SEEK_TO_START,{label:"Progress bar"})}handlePointerUpPostLiveEdge(t){const{noSeek:e}=this.streamController.value;e||this.commandBus?.dispatchCommand(Ql.SEEK_TO_LIVE,{label:"Progress bar"})}renderProgressBar({visible:t}){const{deferredSeekTime:e,seeking:n,isBehindLiveEdge:i,isLive:r,isLiveEvent:o,isVOD:a,noSeek:s,isPretune:l,hasCurrentSession:c,isAdType:d,playheadPositionMs:u,startPositionMs:h,programDurationMs:m,scrubbing:g,isVNextPlayerEnabled:v}=this.streamController.value,{handlePointerUp:f,handlePointerDown:b,handlePointerMove:_,handlePointerMovePreTailEdge:E,handlePointerMovePostLiveEdge:y,handlePointerUpPreTailEdge:S,handlePointerUpPostLiveEdge:T,handlePointerOut:C,sliderContainerRef:w,tabIndex:A,hideCurrentTimeBelowThumb:I}=this,{min:O,max:R,dragging:x,proposedPosition:L,hoverMarkerPosition:k,positionValue:P,clampedValue:D,slideableStartPercentage:N,slideableWidthPercentage:M,progressBarPercentage:U,currentProgressPercentage:B,thumbPosition:V,positionFromValue:F}=this.slider,z=this.localState?.hasAnyOpenModal(["controls"]),$=this.localState?.progressBar?.showLiveLabel??!1,H=My({"progress-bar__ad-playing":c&&d,"progress-bar__live":r,"progress-bar__vod":!r,"no-seek":s,"progress-bar__pretune":l,"static-live":this.staticLive}),G=My({"progress-bar__thumb-scrubbing":g,"progress-bar__thumb-dragging":x}),Y=My({"progress-bar__progress-dragging":x}),j=u-h,K=x&&"number"==typeof P?P:null,W="number"==typeof this.slider.value?this.slider.value-h:null,q=K??W??j,X="number"==typeof q?MC(q,Ic(q)):null,Z=x?V:B,Q=this.localState?.overlayState?.overlays?.toast,J=Boolean(Q?.isOpen&&(Q.suppressesProgressScrubPreview??!1)),tt=!I&&(X&&k&&!s&&!J||s&&z);let et=!1,nt="";(a||i||!z)&&$?this.commandBus?.dispatchCommand(Ql.TOGGLE_PROGRESS_BAR_LIVE_LABEL,{show:!1,localState:this.localState}):(et=!n&&$&&z,nt=this.dictionary?.translate(Xl.MEDIA.CONTROLS.INDICATOR_AT_LIVE,"LIVE"));const it=v&&(r||o)&&!i,rt=My({"progress-bar__live-label":!tt&&et}),ot=this.localState?.playerMode?.isVerticalVideo??!1,at=this.a11ySnapshot??this.buildA11ySnapshot(this.quantizeSliderA11yMs(D),h,O,R),st=ot?this.dictionary?.translate(Xl.MEDIA.CONTROLS.SLIDER_VERTICAL_SCRUB_HINT,"Use the left and right arrow keys to move backward or forward in the video."):void 0;return(r||o)&&this.staticLive?p.x`
1361				<div
1362					class="progress-bar__container progress-bar__no-pointer-events ${H}"
1363				>
1364					<div
1365						class="progress-bar__total-duration progress-bar__time-bar"
1366					></div>
1367				</div>
1368			`:p.x`
1369			<div
1370				class="progress-bar__container progress-bar__no-pointer-events ${H}"
1371			>
1372				<div class="progress-bar__total-duration progress-bar__time-bar"></div>
1373				<div
1374					class="progress-bar__pre-tail-end-non-seekable-range"
1375					style=${$y({left:"0%",width:`${N}%`})}
1376					@pointerup=${S}
1377					@pointerout=${C}
1378					@pointermove=${E}
1379				></div>
1380				<div
1381					class="progress-bar__post-live-edge-non-seekable-range"
1382					style=${$y({left:`${N+M}%`,right:"0px"})}
1383					@pointerup=${T}
1384					@pointerout=${C}
1385					@pointermove=${y}
1386				></div>
1387				<div
1388					class=${My({"progress-bar__seekable-range":!0,"centered-time-preview":this.centerTimePreview})}
1389					style=${$y({left:`${N}%`,width:`${M}%`})}
1390					@pointerup=${f}
1391					@pointerdown=${b}
1392					@pointerout=${C}
1393					@pointermove=${_}
1394					@focusin=${this.handleSeekableRangeFocusIn}
1395					@keydown=${this.handleKeyDown}
1396					tabindex=${t?"0":"-1"}
1397					role="slider"
1398					aria-orientation="horizontal"
1399					aria-label=${this.dictionary?.translate(this.dictionaryKey,this.fallback)}
1400					aria-valuemin="${at.ariaValuemin}"
1401					aria-valuemax="${at.ariaValuemax}"
1402					aria-valuenow="${at.ariaValuenow}"
1403					aria-valuetext="${at.ariaValuetext}"
1404					aria-describedby=${ot&&st?BC:p.E}
1405					${cE(w)}
1406				>
1407					${Q_(!s,(()=>p.x`
1408							<div
1409								class="progress-bar__progress progress-bar__time-bar ${Y}"
1410								style=${$y({width:`${U}%`})}
1411							></div>
1412						`))}
1413					${Q_(this.hideThumb,(()=>p.E),(()=>p.x`
1414							<div
1415								class="progress-bar__thumb ${G}"
1416								style=${$y({left:`${V}%`})}
1417								aria-hidden="true"
1418							></div>
1419						`))}
1420					${Q_(!it&&(tt||et),(()=>p.x`
1421							<span
1422								class="progress-bar__current-time  ${rt}"
1423								style=${$y({left:`${Z}%`})}
1424							>
1425								${tt?X:nt}
1426							</span>
1427						`))}
1428					<div
1429						class="progress-bar__time-bar progress-bar__ad-marker-container
1430						${r?"progress-bar__ad-marker-container-live":""} "
1431					>
1432						<ad-markers></ad-markers>
1433					</div>
1434					<progress-bar-preview
1435						.hoverMarkerPosition=${k}
1436						.positionValue=${P}
1437						.programDurationMs=${m}
1438						.sliderContainer=${w}
1439						.dragging=${x}
1440						.disablePreviewTile=${this.disablePreviewTile}
1441						.hideHoverMarker=${this.hideHoverMarker}
1442						.hidePreviewTimeBubble=${this.hidePreviewTimeBubble}
1443						.showTimeOnlyWhenDragging=${this.showTimeOnlyWhenDragging}
1444						.centerTimePreview=${this.centerTimePreview}
1445						.timeDisplayFormat=${this.timeDisplayFormat}
1446						.showLiveEdgeLabel=${it}
1447						.thumbPosition=${V}
1448					></progress-bar-preview>
1449					${Q_(!this.hideProposedTimeMarker&&x&&null!==L,(()=>p.x`
1450							<div
1451								class="progress-bar__proposed-time-marker"
1452								style=${$y({left:`${L}%`})}
1453							></div>
1454						`),(()=>p.E))}
1455					${Q_(null!=e,(()=>p.x`
1456							<div
1457								class="progress-bar__deferred-marker"
1458								style=${$y({left:`${F.call(this.slider,e)}%`})}
1459								role="presentation"
1460							></div>
1461						`),(()=>p.E))}
1462				</div>
1463				${Q_(ot&&st,(()=>p.x`
1464						<span
1465							id=${BC}
1466							class="progress-bar__slider-description"
1467						>
1468							${st}
1469						</span>
1470					`))}
1471			</div>
1472		`}render(){const{visible:t}=this.controller;return Q_(t,(()=>this.renderProgressBar({visible:t})),(()=>p.E))}getQAElements(){return{preTailEndNonSeekableRange:this.preTailEndNonSeekableRange,postLiveEdgeNonSeekableRange:this.postLiveEdgeNonSeekableRange,seekableRange:this.seekableRange,liveLabel:this.liveLabel}}};zC.tokens={"host-height":"24px","host-width":"100%","host-pointer-events":"auto","host-margin-right":"0","thumb--position":"absolute","thumb--top":"2.5px","thumb--transform":"translate(-50%, -50%)","thumb--width":"12px","thumb--height":"12px","thumb--height-hover":"16px","thumb--width-hover":"16px","thumb--background-color":"#f1f1f1","thumb--border-radius":"50%","thumb--cursor":"pointer","thumb--width-dragging":"unset","thumb--height-dragging":"unset","time-bar--height":"4px","time-bar--height-hover":"6px","time-bar--border-radius":"6px","total-duration--background-color":"#9D9E9F","total-duration--background-color-hover":"#9D9E9F","total-duration__static-live--background-color":"#FFFFFF","progress--height":"100%","progress--left":"0","progress--background-color":"#3EABFF","progress--vod--background-color":"#B5B7B7B3","progress--vod--background-color-hover":"#B5B7B7","progress__live--background-color":"#ff3e3e","progress__live-background--color-hover":"#ff3e3e","seekable-range--padding-top":"10px","seekable-range--padding-bottom":"10px","seekable-range__vod--background-color":"transparent","seekable-range__live--background-color":"#ff3e3e","seekable-range__live--overlay--opacity":"0.32","seekable-range__live--overlay--background-color":"#000000","seekable-range__live--border-right":"2px s
1472olid #f1f1f1","live-label--color":"#3eabff","current-time--color":"#ffffff","current-time--text-align":"center","current-time--font-size":"12px","current-time--line-height":"16px","current-time--font-weight":"500","current-time--transform-text":"capitalize","current-time--transform":"translate(-50%, 22px)","current-time--visibility-dragging":"visible","proposed-time-marker--position":"relative","proposed-time-marker--height":"100%","proposed-time-marker--width":"5px","proposed-time-marker--background-color":"white","deferred-marker--background-color":"#F9F9F9","deferred-marker--width":"2px","ad-playing--thumb--background-color":"#000","ad-marker__point--active-deferred-outline":"1px solid #ffdb6e","ad-playing--thumb--width":"13px","ad-playing--thumb--height":"13px","ad-playing--thumb--height-hover":"17px","ad-playing--thumb--width-hover":"17px",responsive:{}},zC.styles=[fC],NC([(0,p.n)({type:Number})],zC.prototype,"sliderTabIndex",2),NC([(0,p.n)({type:Number})],zC.prototype,"step",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"staticLive",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"hideCurrentTimeBelowThumb",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"hideThumb",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"disablePreviewTile",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"hideHoverMarker",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"hideProposedTimeMarker",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"hidePreviewTimeBubble",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"centerTimePreview",2),NC([(0,p.n)({type:Boolean})],zC.prototype,"showTimeOnlyWhenDragging",2),NC([(0,p.n)({type:String})],zC.prototype,"timeDisplayFormat",2),NC([b(".progress-bar__pre-tail-end-non-seekable-range")],zC.prototype,"preTailEndNonSeekableRange",2),NC([b(".progress-bar__post-live-edge-non-seekable-range")],zC.prototype,"postLiveEdgeNonSeekableRange",2),NC([b(".progress-bar__seekable-range")],zC.prototype,"seekableRange",2),NC([b(".progress-bar__live-label")],zC.prototype,"liveLabel",2),zC=NC([p_],zC);class $C{get ariaLabel(){const{dictionary:t}=this.host,{seekableStartMs:e,startPositionMs:n,restartDisplayType:i}=this.streamController.value,r=null!=i?"earliest"===i:e>n,o={key:Xl.MEDIA.CONTROLS.PLAY_FROM_START,fallback:"Watch From Start"},a={key:Xl.MEDIA.CONTROLS.PLAY_FROM_EARLIEST,fallback:"Watch From Earliest"},s=r?a:o;return t?.translate(s.key,s.fallback)}get controlIcon(){return"--control--mask"}get disabled(){const{noSeek:t,isPretune:e}=this.streamController.value;return!!t||!!e}get visible(){return!0}get seekControlled(){const{isLive:t}=this.streamController.value;return t}get label(){return this.ariaLabel}get state(){const{visible:t,disabled:e,ariaLabel:n,label:i,controlIcon:r,seekControlled:o}=this,{isLive:a,noSeek:s}=this.streamController.value;return{ariaLabel:n,controlIcon:r,disabled:e,visible:t,seekControlled:o,label:i,isLive:a,noSeek:s}}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}}const HC=p.i`
1473	:host .restart-playback {
1474		--control--mask: var(--restart-control-icon);
1475	}
1476`,GC="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.5935%2019.3957C12.5976%2018.7317%2012.5976%2017.2683%2013.5935%2016.6043L28.3921%206.73859C29.5069%205.99543%2031%206.79454%2031%208.13429V27.8657C31%2029.2055%2029.5069%2030.0046%2028.3921%2029.2614L13.5935%2019.3957ZM7.4375%2031C6.09131%2031%205%2029.9087%205%2028.5625V7.4375C5%206.09131%206.09131%205%207.4375%205C8.78369%205%209.875%206.09131%209.875%207.4375V28.5625C9.875%2029.9087%208.78369%2031%207.4375%2031Z'%20fill='%23CACACA'/%3e%3c/svg%3e",YC={...jy,"restart-control-icon":`url("${GC}")`,"background-color":"#000000"};var jC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,WC=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?KC(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&jC(e,n,o),o};const qC={noSeek:!1,isLive:!1,isSlidingWindow:!1,seekableStartMs:0,startPositionMs:0,restartDisplayType:null,isPretune:!1,hasStarted:!1},XC=t=>{const{streamDetails:e,isPretune:n,timeline:i,playback:r}=t,{noSeek:o,isLive:a,isSlidingWindow:s}=e,{isInPretune:l}=n,{hasStarted:c}=r,{timeline:{seekableStartMs:d,startPositionMs:u,restartDisplayType:p}}=i;return{noSeek:o,isLive:a,isSlidingWindow:s,seekableStartMs:d,startPositionMs:u,restartDisplayType:p??null,isPretune:l,hasStarted:c}};let ZC=class extends pt{constructor(){super(),this.streamController=new G_(this,XC,qC),this.controller=new $C(this,{streamController:this.streamController}),this.disabled=!1;const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){return{restartPlayback:this.restartPlayback,"button-container":this.buttonContainer}}
1476connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}primaryAction(){this.controller.state.disabled||this.commandBus?.dispatchCommand(Ql.RESTART,{label:"Restart Control"})}handleKeyPress(t){this.controller.state.disabled||this.primaryAction()}render(){const{visible:t,disabled:e,ariaLabel:n,label:i}=this.controller.state,r={onClick:()=>this.primaryAction(),ariaLabel:n,className:"restart-playback control",part:"restart-playback",disabled:e};return this.hidden=!t,t?p.x`
1477					<info-tooltip
1478						tooltipPosition="${this.tooltipPosition}"
1479						tooltipLabel="${i}"
1480						?shouldShowTooltipOnFocus=${!e&&this.shouldShowTooltipOnFocus}
1481					>
1482						${Hy(r)}
1483					</info-tooltip>
1484				`:null}};ZC.tokens=YC,ZC.styles=[HC,Ly],WC([b(".button-container")],ZC.prototype,"buttonContainer",2),WC([b(".restart-playback")],ZC.prototype,"restartPlayback",2),WC([(0,p.n)({type:Boolean})],ZC.prototype,"disabled",2),WC([Vy(".button-container")],ZC.prototype,"disconnectedCallback",1),WC([By(".button-container")],ZC.prototype,"updated",1),ZC=WC([p_],ZC);const QC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.125%207.36208H10.9433C10.8855%207.36127%2010.8293%207.34332%2010.7817%207.31048C10.7341%207.27765%2010.6974%207.23142%2010.6761%207.17767C10.6549%207.12392%2010.6501%207.06506%2010.6623%207.00857C10.6746%206.95209%2010.7034%206.90052%2010.745%206.86041L13.79%203.78041C13.8477%203.72875%2013.9225%203.7002%2014%203.7002C14.0775%203.7002%2014.1522%203.72875%2014.21%203.78041L17.255%206.86041C17.2966%206.90052%2017.3254%206.95209%2017.3376%207.00857C17.3499%207.06506%2017.3451%207.12392%2017.3238%207.17767C17.3026%207.23142%2017.2658%207.27765%2017.2183%207.31048C17.1707%207.34332%2017.1144%207.36127%2017.0566%207.36208H14.875V17.5004C14.875%2017.7325%2014.7828%2017.955%2014.6187%2018.1191C14.4546%2018.2832%2014.232%2018.3754%2014%2018.3754C13.7679%2018.3754%2013.5454%2018.2832%2013.3813%2018.1191C13.2172%2017.955%2013.125%2017.7325%2013.125%2017.5004V7.36208ZM4.05125%2012.2183C4.21469%2012.0549%204.4355%2011.9617%204.66663%2011.9587C4.89775%2011.9617%205.11856%2012.0549%205.282%2012.2183C5.44545%2012.3818%205.5386%2012.6026%205.54163%2012.8337V22.1671C5.54163%2022.2444%205.57236%2022.3186%205.62705%2022.3733C5.68175%2022.428%205.75594%2022.4587%205.83329%2022.4587H22.1666C22.244%2022.4587%2022.3182%2022.428%2022.3729%2022.3733C22.4276%2022.3186%2022.4583%2022.2444%2022.4583%2022.1671V12.8337C22.4583%2012.6017%2022.5505%2012.3791%2022.7146%2012.215C22.8787%2012.0509%2023.1012%2011.9587%2023.3333%2011.9587C23.5654%2011.9587%2023.7879%2012.0509%2023.952%2012.215C24.1161%2012.3791%2024.2083%2012.6017%2024.2083%2012.8337V22.1671C24.2052%2022.7076%2023.9891%2023.2251%2023.6069%2023.6073C23.2247%2023.9896%2022.7072%2024.2057%2022.1666%2024.2087H5.83329C5.29275%2024.2057%204.77523%2023.9896%204.393%2023.6073C4.01078%2023.2251%203.79469%2022.7076%203.79163%2022.1671V12.8337C3.79465%2012.6026%203.8878%2012.3818%204.05125%2012.2183Z'%20fill='white'/%3e%3c/svg%3e",JC={...jy,"share-control-icon":`url("${QC}")`,"control--mask-size":"auto","share-open--visibility":"unset"};class tw{get storageKey(){return this.host.storageKey}get ariaLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SHARE,"Share")}get tabIndex(){return 0}get isOpen(){return this.host.dialogRef?.value?.open??!1}get className(){return My({"share-control":!0,control:!0,active:this.isOpen})}get onClick(){return this.host.primaryAction.bind(this.host)}get buttonProps(){const{ariaLabel:t,tabIndex:e,className:n,onClick:i}=this;return{onClick:i,ariaLabel:t,className:n,tabIndex:e}}hostConnected(){}hostDisconnected(){}constructor(t){(this.host=t).addController(this)}getDialog({dialogRef:t,menuController:e}){return p.x`
1485			<share-menu
1486				.dialogRef=${t}
1487				.menuController=${e}
1488			></share-menu>
1489		`}}const ew=p.i`
1490	.share-control.active {
1491		visibility: var(--share-open--visibility);
1492	}
1493
1494	:host .share-control {
1495		--control--mask: var(--share-control-icon);
1496	}
1497
1498	:host .share-control.active {
1499		--control--mask: var(
1500			--share-control-icon--selected,
1501			var(--share-control-icon)
1502		);
1503	}
1504`;var nw=Object.defineProperty,iw=Object.getOwnPropertyDescriptor,rw=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?iw(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&nw(e,n,o),o};const ow={isPaused:!1},aw=t=>({isPaused:t.playback?.isPaused??!1});let sw=class extends pt{constructor(){super(),this.dialogRef=aE(),this.storageKey="shareMenu",this.menuController=new Ny({host:this,storageKey:this.storageKey,dialogRef:this.dialogRef,storeKey:"overlays",isTakeover:!1}),this.controller=new tw(this),this.streamController=new G_(this,aw,ow),this.shouldResumePlayback=!1,this.wasTakeoverOpen=!1;const{Controller:t}=n_(this);t&&(this.controller=new t(this))}getQAElements(){return{menuController:this.menuController,"button-container":this.buttonContainer}}
1504connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isOpen:t.takeoverState.isOpen,overlayName:t.takeoverState.overlayName})))}handleTakeoverStateChange(){const{isOpen:t,overlayName:e}=this.localState?.takeoverState??{},n=t&&e===this.storageKey&&!this.wasTakeoverOpen,i=!t&&this.wasTakeoverOpen;if(n)return this.shouldResumePlayback=!this.streamController.value.isPaused,this.commandBus?.dispatchCommand(Ql.PAUSE,{label:"Share control",localState:this.localState}),void(this.wasTakeoverOpen=!0);i&&(this.shouldResumePlayback&&this.commandBus?.dispatchCommand(Ql.PLAY,{label:"Share control",localState:this.localState}),this.shouldResumePlayback=!1,this.wasTakeoverOpen=!1)}get buttonProps(){const t=Xl.MEDIA.CONTROLS.SHARE,e=this.dialogRef?.value?.open,n=My({"share-control":!0,control:!0,active:e});return{onClick:()=>{this.primaryAction()},ariaLabel:this.dictionary.translate(t,"Share"),className:n,tabIndex:0}}updated(t){super.updated(t),this.handleTakeoverStateChange()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState?.(),this.localState?.updateModalState?.({modalName:this.storageKey,isOpen:!1,currentViewName:""})}primaryAction(){const t=this.localState?.modalState?.modals[Df.SETTINGS_MODAL]?.isOpen,e=this.localState?.modalState?.modals[Df.BROADCAST]?.isOpen;t||e?console.warn("Cannot open menu while either another menu is open"):this.commandBus?.dispatchCommand(Ql.TOGGLE_MODAL,{overlayName:"shareMenu",label:this.dictionary.translate(Xl.MEDIA.CONTROLS.SHARE,"Share Control"),menuController:this.menuController,menuControllerPath:e_.SHARE_CONTROL_MENU_CONTROLLER})}handleKeyPress(){this.primaryAction()}renderButton(){const{tooltipPosition:t,shouldShowTooltipOnFocus:e}=this,{buttonProps:n}=this.controller;return p.x`
1505			<info-tooltip
1506				tooltipPosition="${t}"
1507				tooltipLabel="${n.ariaLabel}"
1508				.shouldShowTooltipOnFocus=${e}
1509			>
1510				${Hy(n)}
1511			</info-tooltip>
1512		`}render(){return p.x`
1513			${this.controller.getDialog({menuController:this.menuController,dialogRef:this.dialogRef})}
1514			<div>${this.renderButton()}</div>
1515		`}};sw.tokens=JC,sw.styles=[ew,Ly],rw([b(".button-container")],sw.prototype,"buttonContainer",2),rw([By(".button-container")],sw.prototype,"updated",1),rw([Vy(".button-container")],sw.prototype,"disconnectedCallback",1),sw=rw([p_],sw);const lw=Wb("\n  :host .pip-enter-icon {\n    --control--mask: var(--pip-enter-icon);\n  }\n");var cw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,uw=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?dw(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&cw(e,n,o),o};let pw=class extends pt{getQAElements(){return{pipButton:this.pipButton,"button-container":this.buttonContainer}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isMiniPlayer:t.playerMode?.isMiniPlayer})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}updated(t){super.updated(t)}primaryAction(){const t=this.localState?.playerMode?.isMiniPlayer;t?(this.localState?.updateMiniPlayerMode(!1),this.commandBus?.dispatchCommand(Ql.NORMAL_MODE)):(this.localState?.updateMiniPlayerMode(!0),this.commandBus?.dispatchCommand(Ql.PIP_MINIMIZE))}handleKeyPress(){this.primaryAction()}render(){const t=this.localState?.playerMode?.isMiniPlayer,e=t?this.dictionary?.translate(Xl.MEDIA.CONTROLS.MAXIMIZE,"Maximize"):this.dictionary?.translate(Xl.MEDIA.CONTROLS.MINI_PLAYER,"Mini Player"),n={onClick:()=>{this.primaryAction()},ariaLabel:e,className:"pip-enter-icon control",tabIndex:0};return p.x`<info-tooltip
1516			tooltipPosition="${this.tooltipPosition}"
1517			tooltipLabel="${e}"
1518			.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
1519			>${Hy(n)}</info-tooltip
1520		>`}};pw.tokens={"controls__host--display":"flex","controls__host--width":"30px","control-height":"30px","control-width":"30px","button-container--display":"flex","button-container--width":"30px","button-container--height":"30px","controls-background-color":"#FFF","controls--active-background-color":"#FFF","control-cursor":"pointer","button-container--align-items":"center","button-container--justify-content":"center","pip-enter-icon":"url(\"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.0615%204.00001C14.7157%203.99994%2015.3036%203.99952%2015.7793%204.06348C16.2986%204.13331%2016.8312%204.29602%2017.2676%204.73243C17.704%205.16884%2017.8667%205.70138%2017.9365%206.22071C18.0005%206.69641%2018.0001%207.28436%2018%207.93848V8.00001H18.0615C18.7157%207.99994%2019.3036%207.99952%2019.7793%208.06348C20.2986%208.13331%2020.8312%208.29602%2021.2676%208.73243C21.704%209.16884%2021.8667%209.70138%2021.9365%2010.2207C22.0005%2010.6964%2022.0001%2011.2844%2022%2011.9385V16.0615C22.0001%2016.7157%2022.0005%2017.3036%2021.9365%2017.7793C21.8667%2018.2986%202
15201.704%2018.8312%2021.2676%2019.2676C20.8312%2019.704%2020.2986%2019.8667%2019.7793%2019.9365C19.3036%2020.0005%2018.7157%2020.0001%2018.0615%2020H9.93848C9.28436%2020.0001%208.69641%2020.0005%208.22071%2019.9365C7.70138%2019.8667%207.16884%2019.704%206.73243%2019.2676C6.29602%2018.8312%206.13331%2018.2986%206.06348%2017.7793C5.99952%2017.3036%205.99994%2016.7157%206.00001%2016.0615V16H5.93848C5.28436%2016.0001%204.69641%2016.0005%204.22071%2015.9365C3.70138%2015.8667%203.16884%2015.704%202.73243%2015.2676C2.29602%2014.8312%202.13331%2014.2986%202.06348%2013.7793C1.99952%2013.3036%201.99994%2012.7157%202.00001%2012.0615V7.93848C1.99994%207.28436%201.99952%206.69641%202.06348%206.22071C2.13331%205.70138%202.29602%205.16884%202.73243%204.73243C3.16884%204.29602%203.70138%204.13331%204.22071%204.06348C4.69641%203.99952%205.28436%203.99994%205.93848%204.00001H14.0615ZM8.85352%2010.1465C8.65826%209.95123%208.34175%209.95123%208.14649%2010.1465C7.95123%2010.3418%207.95123%2010.6583%208.14649%2010.8535L10.793%2013.5H9.50001C9.22386%2013.5%209.00001%2013.7239%209.00001%2014C9.00001%2014.2761%209.22386%2014.5%209.50001%2014.5H12C12.2761%2014.5%2012.5%2014.2761%2012.5%2014V11.5C12.5%2011.2239%2012.2761%2011%2012%2011C11.7239%2011%2011.5%2011.2239%2011.5%2011.5V12.793L8.85352%2010.1465ZM6.00001%206.00001C5.26463%206.00001%204.81366%206.00203%204.48731%206.0459C4.20049%206.
152008447%204.15217%206.13998%204.14649%206.14649C4.13998%206.15217%204.08447%206.20049%204.0459%206.48731C4.00203%206.81366%204.00001%207.26463%204.00001%208.00001V12C4.00001%2012.7354%204.00203%2013.1864%204.0459%2013.5127C4.08441%2013.7991%204.13888%2013.8477%204.14551%2013.8535L4.14649%2013.8545C4.15222%2013.8611%204.20067%2013.9156%204.48731%2013.9541C4.81366%2013.998%205.26463%2014%206.00001%2014V11.9385C5.99994%2011.2844%205.99952%2010.6964%206.06348%2010.2207C6.13332%209.70138%206.29602%209.16884%206.73243%208.73243C7.16884%208.29602%207.70138%208.13332%208.22071%208.06348C8.69641%207.99952%209.28436%207.99994%209.93848%208.00001H16C16%207.26463%2015.998%206.81366%2015.9541%206.48731C15.9156%206.20067%2015.8611%206.15222%2015.8545%206.14649L15.8535%206.14551C15.8477%206.13888%2015.7991%206.08441%2015.5127%206.0459C15.1864%206.00203%2014.7354%206.00001%2014%206.00001H6.00001Z'%20fill='white'/%3e%3c/svg%3e\")",responsive:{}},pw.styles=[lw,Ly],uw([b(".button-container")],pw.prototype,"buttonContainer",2),uw([b(".pip-enter-icon")],pw.prototype,"pipButton",2),uw([Vy(".button-container")],pw.prototype,"disconnectedCallback",1),uw([By(".button-container")],pw.prototype,"updated",1),pw=uw([p_],pw);let hw=class{constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController}hostConnected(){}hostDisconnected(){}get state(){const{muted:t,level:e}=this.streamController.value,{extraClasses:n=""}=this.host,i=t?"muted":"unmuted",r=`--volume-${i}__control--mask`,o=this.host.direction!==t_.FROMBOTTOM,a={key:t?Xl.MEDIA.PLAYER.UNMUTE:Xl.MEDIA.PLAYER.MUTE,fallback:t?"Unmute":"Mute"};return{ariaLabel:this.host.dictionary?.translate(a.key,a.fallback)??a.fallback,className:`toggle-mute-button control volume-${i}`,containerClassName:n,controlIcon:r,showTooltip:o,volumeType:i}}toggleMute(){const{level:t,muted:e}=this.streamController.value,n=this.host.localState?.volume.previousLevel,i={muted:e,level:t,previousLevel:n};e||0===t?this.host?.commandBus?.dispatchCommand?.(Ql.UNMUTE,{...i,ref:e_.TOGGLE_MUTE_UNMUTED,label:"Toggle unmute"}):this.host?.commandBus?.dispatchCommand?.(Ql.MUTE,{...i,ref:e_.TOGGLE_MUTE_MUTED,label:"Toggle mute"})}};const mw="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M26.792%2016.202l2.796-2.797a1.327%201.327%200%200%201%201.881.001c.52.52.515%201.368.001%201.881l-2.796%202.797%202.796%202.796a1.327%201.327%200%200%201%200%201.881c-.52.52-1.368.515-1.882.001l-2.796-2.796-2.797%202.796a1.327%201.327%200%200%201-1.88%200%201.335%201.335%200%200%201-.002-1.882l2.797-2.796-2.797-2.797a1.327%201.327%200%200%201%20.001-1.88%201.335%201.335%200%200%201%201.881-.002l2.797%202.797zm-8.247-8.594c.35.18.56.54.594.972v19.008c0%20.396-.244.792-.594.972a1.202%201.202%200%200%201-.489.108c-.21%200-.454-.072-.629-.216l-8.455-6.444H5.548a1.067%201.067%200%200%201-1.048-1.08v-5.724c0-.576.454-1.08%201.048-1.08h3.424l8.455-6.408c.175-.144.42-.216.63-.216.174%200%20.349.036.488.108z'/%3e%3c/svg%3e",gw="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M24.472%2024.425c0-.247.105-.494.281-.705%202.89-2.893%202.89-7.62%200-10.549a1.002%201.002%200%200%201%200-1.411.998.998%200%200%201%201.41%200%209.345%209.345%200%200%201%202.747%206.668c0%202.505-.986%204.868-2.747%206.668a.998.998%200%200%201-1.41%200c-.176-.142-.281-.388-.281-.67zm-2.662-3.034c0-.247.106-.494.282-.705a3.393%203.393%200%200%200%201.021-2.435c0-.917-.352-1.799-1.021-2.434a1.002%201.002%200%200%201%200-1.411.998.998%200%200%201%201.409%200%205.422%205.422%200%200%201%201.585%203.845%205.422%205.422%200%200%201-1.585%203.846.998.998%200%200%201-1.41%200%20.986.986%200%200%201-.281-.706zM18.545%207.608c.35.18.56.54.594.972v19.008c0%20.396-.244.792-.594.972a1.202%201.202%200%200%201-.489.108c-.21%200-.454-.072-.629-.216l-8.455-6.444H5.548a1.067%201.067%200%200%201-1.048-1.08v-5.724c0-.576.454-1.08%201.048-1.08h3.424l8.455-6.408c.175-.144.42-.216.63-.216.174%200%20.349.036.488.108z'/%3e%3c/svg%3e",vw=p.i`
1521	.volume-muted {
1522		--control--mask: var(
1523			--volume-muted__control--mask,
1524			url("${(0,p.r)(mw)}")
1525		);
1526	}
1527
1528	.volume-min {
1529		--control--mask: var(
1530			--volume-min__control--mask,
1531			url("${(0,p.r)("data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20fill='%23444'%20d='M10.8%204.4l-0.5%201.1c0.5%200.9%200.8%201.9%200.8%203%200%201-0.3%202-0.7%202.9l0.7%200.9c0.6-1.1%201-2.4%201-3.7-0.1-1.6-0.5-3-1.3-4.2z'/%3e%3cpath%20fill='%23444'%20d='M4%205h-4v6h4l5%204v-14z'/%3e%3c/svg%3e")}")
1532		);
1533	}
1534
1535	.volume-low {
1536		--control--mask: var(
1537			--volume-low__control--mask,
1538			url("${(0,p.r)("data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cpath%20fill='%23444'%20d='M11.8%202.4l-0.5%201c1.1%201.4%201.7%203.2%201.7%205.1%200%201.7-0.5%203.2-1.3%204.6l0.7%200.8c1.1-1.5%201.7-3.4%201.7-5.4-0.1-2.3-0.9-4.4-2.3-6.1z'/%3e%3cpath%20fill='%23444'%20d='M10.8%204.4l-0.5%201.1c0.5%200.9%200.8%201.9%200.8%203%200%201-0.3%202-0.7%202.9l0.7%200.9c0.6-1.1%201-2.4%201-3.7-0.1-1.6-0.5-3-1.3-4.2z'/%3e%3cpath%20fill='%23444'%20d='M4%205h-4v6h4l5%204v-14z'/%3e%3c/svg%3e")}")
1539		);
1540	}
1541
1542	.volume-max,
1543	.volume-unmuted {
1544		--control--mask: var(
1545			--volume-max__control--mask,
1546			url("${(0,p.r)(gw)}")
1547		);
1548	}
1549`,fw=p.i`
1550	:host .volume-muted {
1551		--control--mask: var(--muted-icon);
1552	}
1553
1554	:host .volume-unmuted {
1555		--control--mask: var(--unmuted-icon);
1556	}
1557
1558	:host .volume-half {
1559		--control--mask: var(--volume-half-icon);
1560	}
1561
1562	:host .volume-full {
1563		--control--mask: var(--volume-full-icon);
1564	}
1565
1566	.audio-control-container.volume-bar-visible {
1567		.volume-bar-container {
1568			display: var(--volume-bar-container-display, inherit);
1569			pointer-events: all;
1570			opacity: 1;
1571			width: var(--volume-bar-container-from-left-width, 90px);
1572		}
1573		.control {
1574			background-color: var(
1575				--controls--active-background-color,
1576				var(--controls-background-color)
1577			);
1578		}
1579	}
1580
1581	.audio-control-container:not(.volume-bar-visible) .volume-bar-container {
1582		pointer-events: none;
1583	}
1584
1585	.audio-control-container.from-bottom:not(.volume-bar-visible)
1586		.volume-bar-container {
1587		height: 0;
1588		padding: 0;
1589	}
1590
1591	.audio-control-container.from-left:not(.volume-bar-visible)
1592		.volume-bar-container {
1593		width: 0;
1594		padding: 0;
1595	}
1596
1597	.volume-bar-container {
1598		opacity: 0;
1599	}
1600
1601	.from-left {
1602		display: inline-flex;
1603		flex-direction: row;
1604		align-items: center;
1605
1606		&.volume-bar-static,
1607		&.volume-bar-extended {
1608			display: inline-grid;
1609			grid-template-columns: 1fr 2fr;
1610			width: auto;
1611			padding-right: 10px;
1612		}
1613
1614		&.volume-bar-extended {
1615			transition:
1616				margin 0.25s cubic-bezier(0.4, 0, 1, 1),
1617				width 0.25s cubic-bezier(0.4, 0, 1, 1);
1618		}
1619
1620		.volume-bar-container {
1621			transition:
1622				opacity 0.2s,
1623				margin 0.2s cubic-bezier(0, 0, 0.2, 1),
1624				width 0.2s cubic-bezier(0, 0, 0.2, 1);
1625			max-height: var(--volume-bar-container-from-left-max-height, unset);
1626		}
1627	}
1628
1629	.from-bottom {
1630		display: grid;
1631		grid-template-columns: 1fr;
1632		grid-template-rows: 1fr;
1633
1634		.volume-bar-container {
1635			transition: opacity 0.2s;
1636		}
1637	}
1638
1639	.from-bottom > * {
1640		grid-area: 1 / 1;
1641	}
1642`,bw={...jy,"muted-icon":`url("${mw}")`,"unmuted-icon":`url("${gw}")`,"volume-bar-container-from-left-max-height":"32px","volume-bar-container-from-left-width":"62px","volume-bar-container-vertical-z-index":"100","volume-bar-container-vertical-top":"-11px","volume-bar-container-vertical-box-sizing":"border-box","volume-bar-container-vertical-position":"absolute","volume-bar-container-vertical-padding":"0","volume-bar-container-vertical-bottom":"auto","volume-bar-container-vertical-height":"auto","volume-bar-container-vertical-width":"auto","volume-bar-container-display":"inherit","audio-control-container-from-bottom-display":"flex","audio-control-container-from-bottom-flex-direction":"column",responsive:{}};var _w=Object.defineProperty,Ew=Object.getOwnPropertyDescriptor,yw=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?Ew(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&_w(e,n,o),o};const Sw={muted:!1,level:0,isVNextPlayerEnabled:!1},Tw=t=>{const{volume:e,playback:n}=t,{muted:i,level:r}=e??{};return{muted:!!i,level:r??0,isVNextPlayerEnabled:Boolean(n?.clients?.playerFeatureFlags?.isVNextPlayerEnabled)}};let Cw=class extends pt{constructor(){super(),this.includeVolumeBar=!1,this.volumeAccessibilityGroup=!1,this.openVolumeBarOnKeyboardFocus=!1,this.direction=t_.FROMLEFT,this.sliderDecay=80,this.showVolumeSlider=!1,this.controlsDecayInProgress=!1,this.isVolumeBarVisible=!1,this.streamController=new G_(this,Tw,Sw),this.controller=new hw(this,{streamController:this.streamController}),this.focusListeners=!1,this.lastInputKeyListenerAttached=!1,this.pointerOverContainer=!1,this.lastInput="pointer",this.handleLastInputKeyDown=t=>{this.includeVolumeBar&&X_(t)&&(this.lastInput="keyboard")},this.handlePointerDown=()=>{this.lastInput="pointer"},this.handleAudioControlFocusIn=()=>{this.includeVolumeBar&&(this.openVolumeBarOnKeyboardFocus?"keyboard"===this.lastInput&&this.setVolumeBarVisible(!0):this.setVolumeBarVisible(!0))},this.handleFocusOut=t=>{const e=t.relatedTarget;if(e){if(this.audioControlContainer?.contains(e))return;if(this.volumeBar?.hasFocusTarget(e))return}this.lastInput="pointer",this.syncVolumeBarVisibility()};const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){return{muted:this.muted,unmute:this.unmuted,audioControlContainer:this.audioControlContainer,"button-container":this.buttonContainer}}
1642connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({opened:t.volumeBar.opened,previousLevel:t.volume.previousLevel})))}disconnectedCallback(){super.disconnectedCallback(),this.audioControlContainer&&this.focusListeners&&(this.audioControlContainer.removeEventListener("focusin",this.handleAudioControlFocusIn),this.audioControlContainer.removeEventListener("focusout",this.handleFocusOut),this.audioControlContainer.removeEventListener("pointerdown",this.handlePointerDown),this.focusListeners=!1),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0),this.removeLastInputKeyListener()}updated(t){super.updated(t),this.audioControlContainer&&!this.focusListeners&&(this.audioControlContainer.addEventListener("focusin",this.handleAudioControlFocusIn),this.audioControlContainer.addEventListener("focusout",this.handleFocusOut),this.audioControlContainer.addEventListener("pointerdown",this.handlePointerDown),this.focusListeners=!0),this.syncLastInputKeyListener()}syncLastInputKeyListener(){if(this.includeVolumeBar&&!this.lastInputKeyListenerAttached)return window.addEventListener("keydown",this.handleLastInputKeyDown,!0),void(this.lastInputKeyListenerAttached=!0);!this.includeVolumeBar&&this.lastInputKeyListenerAttached&&this.removeLastInputKeyListener()}removeLastInputKeyListener(){this.lastInputKeyListenerAttached&&(window.removeEventListener("keydown",this.handleLastInputKeyDown,!0),this.lastInputKeyListenerAttached=!1)}handleKeyPress(){this.controller.toggleMute()}handleMouseEnter(t){this.pointerOverContainer=!0,this.syncVolumeBarVisibility(),this.commandBus?.dispatchCommand?.(Ql.MOUSE_EVENT,{ref:e_.TOGGLE_MUTE_AUDIO_CONTROL_CONTAINER,action:"enter",timestamp:Date.now()})}handleMouseLeave(t){this.pointerOverContainer=!1,this.syncVolumeBarVisibility(),this.commandBus?.dispatchCommand?.(Ql.MOUSE_EVENT,{ref:e_.TOGGLE_MUTE_AUDIO_CONTROL_CONTAINER,action:"leave",label:"Audio control container",timestamp:Date.now()})}hasKeyboardFocusInAudioControl(){if("keyboard"!==this.lastInput)return!1;const t=document.activeElement;return(this.audioControlContainer?.contains(t)??!1)||(this.volumeBar?.hasFocusTarget(t)??!1)}setVolumeBarVisible(t){this.isVolumeBarVisible=t,this.toggleAttribute("volume-expanded",t),this.localState?.updateVolumeBarOpened?.(t)}syncVolumeBarVisibility(){if(!this.includeVolumeBar)return;const t=this.pointerOverContainer||this.hasKeyboardFocusInAudioControl();this.setVolumeBarVisible(t)}render(){const{ariaLabel:t,ariaPressed:e,className:n,containerClassName:i,showTooltip:r}=this.controller.state,o={onClick:()=>this.controller.toggleMute(),ariaLabel:t,ariaPressed:e,className:n,containerClassName:i},a=this.isVolumeBarVisible?"volume-bar-visible":"",s=this.includeVolumeBar&&this.volumeAccessibilityGroup?this.dictionary?.translate(Xl.MEDIA.CONTROLS.VOLUME,"Volume")??"Volume":void 0,l=this.includeVolumeBar&&this.isVolumeBarVisible?0:-1;return p.x`
1643			<div
1644				class="audio-control-container ${this.direction} ${a}"
1645				role=${s?"group":p.E}
1646				aria-label=${s||p.E}
1647				@mouseenter="${this.handleMouseEnter}"
1648				@mouseleave="${this.handleMouseLeave}"
1649			>
1650				<info-tooltip
1651					.shouldRenderTooltip="${r&&this.shouldRenderTooltip}"
1652					tooltipPosition="${this.tooltipPosition}"
1653					tooltipLabel="${o.ariaLabel}"
1654				>
1655					${Hy(o)}
1656				</info-tooltip>
1657				${this.includeVolumeBar?p.x` <div class="volume-bar-container">
1658								<volume-bar
1659									direction=${this.direction}
1660									.sliderTabIndex=${l}
1661								></volume-bar>
1662							</div>`:null}
1663			</div>
1664		`}};Cw.tokenPrefix="toggle-mute-button",Cw.tokens=bw,Cw.styles=[fw,vw,Ly],yw([(0,p.n)({type:Boolean})],Cw.prototype,"includeVolumeBar",2),yw([(0,p.n)({type:Boolean})],Cw.prototype,"volumeAccessibilityGroup",2),yw([(0,p.n)({type:Boolean})],Cw.prototype,"openVolumeBarOnKeyboardFocus",2),yw([(0,p.n)({type:String})],Cw.prototype,"direction",2),yw([(0,p.n)({type:Number})],Cw.prototype,"sliderDecay",2),yw([v()],Cw.prototype,"showVolumeSlider",2),yw([v()],Cw.prototype,"controlsDecayInProgress",2),yw([v()],Cw.prototype,"isVolumeBarVisible",2),yw([b(".muted")],Cw.prototype,"muted",2),yw([b(".unmuted")],Cw.prototype,"unmuted",2),yw([b(".audio-control-container")],Cw.prototype,"audioControlContainer",2),yw([b(".button-container")],Cw.prototype,"buttonContainer",2),yw([b("volume-bar")],Cw.prototype,"volumeBar",2),yw([Vy(".button-container")],Cw.prototype,"disconnectedCallback",1),yw([By(".button-container")],Cw.prototype,"updated",1),Cw=yw([p_],Cw);const ww=Wb("\n  :host .play-button {\n\t\t--control--mask: var(--play-icon);\n  }\n\n  :host .pause-button {\n    --control--mask: var(--pause-icon);\n  }\n"),Aw="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M30.978%2016.1356C32.3407%2016.9069%2032.3407%2018.8709%2030.978%2019.6422L10.0048%2031.5137C8.66259%2032.2734%207%2031.3033%207%2029.7604V6.
166401739C7%204.4745%208.66259%203.50437%2010.0048%204.26408L30.978%2016.1356Z'%20fill='%23CACACA'/%3e%3c/svg%3e",Iw="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%207.36363C6%204.95367%207.95367%203%2010.3636%203C12.7736%203%2014.7273%204.95367%2014.7273%207.36364V28.6364C14.7273%2031.0463%2012.7736%2033%2010.3636%2033C7.95367%2033%206%2031.0463%206%2028.6364V7.36363Z'%20fill='%23CACACA'/%3e%3cpath%20d='M21.2727%207.36364C21.2727%204.95367%2023.2264%203%2025.6364%203C28.0463%203%2030%204.95367%2030%207.36364V28.6364C30%2031.0463%2028.0463%2033%2025.6364%2033C23.2264%2033%2021.2727%2031.0463%2021.2727%2028.6364V7.36364Z'%20fill='%23CACACA'/%3e%3c/svg%3e",Ow={...jy,"play-icon":`url("${Aw}")`,"pause-icon":`url("${Iw}")`,"background-color":"#000000",responsive:{}};let Rw=class{get disabled(){return!1}get ariaLabel(){const{dictionary:t}=this.host,{showPlay:e}=this.streamController.value,n=e?{key:Xl.MEDIA.PLAYER.PLAY,fallback:"Play"}:{key:Xl.MEDIA.PLAYER.PAUSE,fallback:"Pause"};return t.translate(n.key,n.fallback)}get className(){const{showPlay:t}=this.streamController.value;return(t?"play-button":"pause-button")+" control"}get containerClassName(){const{extraClasses:t=""}=this.host;return`${t}`}get state(){const{disabled:t,ariaLabel:e,className:n,containerClassName:i}=this,{showPlay:r,noSeek:o}=this.streamController.value;return{disabled:t,ariaLabel:e,showPlay:r,noSeek:o,className:n,containerClassName:i}}get seekToLiveOnPlay(){return!1}constructor(t,e){(this.host=t).addController(this),this.streamController=e?.streamController??t.streamController}hostConnected(){}hostDisconnected(){}};var xw=Object.defineProperty,Lw=Object.getOwnPropertyDescriptor,kw=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?Lw(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&xw(e,n,o),o};const Pw={showPlay:!1,noSeek:!1,disabled:!1,isPretune:!1,hasStarted:!1,isInterstitialPlaying:!1,isAdType:!1,isLive:!1,playheadPositionMs:0},Dw=t=>{const{playback:e,streamDetails:n,isPretune:i,interstitials:r,timeline:o}=t,{noSeek:a,isLive:s}=n,{isPaused:l,previousState:c,seeking:d,ended:u,hasStarted:p}=e,{isInPretune:h}=i,{isInterstitialPlaying:m,isAdType:g}=r;return{showPlay:!!u||!!l||c===rc&&d,isPretune:h,hasStarted:p,isInterstitialPlaying:m,isAdType:g,noSeek:!!a,isLive:!!s,disabled:!1,playheadPositionMs:o?.timeline?.playheadPositionMs??0}};let Nw=class extends pt{constructor(){super(),this.streamController=new G_(this,Dw,Pw),this.controller=new Rw(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}getQAElements(){const t=this.streamController.value.showPlay?this.playButton:this.pauseButton;return{play:this.playButton,playButton:this.playButton,pause:this.pauseButton,pauseButton:this.pauseButton,button:t,tooltip:this.tooltip,buttonContainer:this.buttonContainer,"button-container":this.buttonContainer}}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}primaryAction(){const{state:{showPlay:t,noSeek:e},seekToLiveOnPlay:n}=this.controller;if(!e)return t?(n&&this.commandBus?.dispatchCommand(Ql.SEEK_TO_LIVE,{label:"Toggle play"}),void this.commandBus?.dispatchCommand(Ql.PLAY,{ref:e_.TOGGLE_PLAY_PAUSE_PLAY,playheadPosition:this.streamController.value.playheadPositionMs,label:"Toggle play",localState:this.localState})):void this.commandBus?.dispatchCommand(Ql.PAUSE,{ref:e_.TOGGLE_PLAY_PAUSE_PAUSE,playheadPosition:this.streamController.value.playheadPositionMs,label:"Toggle pause",localState:this.localState})}disabledAction(){this.commandBus?.dispatchCommand(Ql.NOTIFY_CONTROLS_DISABLED,{control:null,label:"Toggle play pause",localState:this.localState})}handleKeyPress(){const{state:{disabled:t,noSeek:e}}=this.controller;e||(t?this.disabledAction():this.primaryAction())}render(){if(!this.stateStream$)return p.E;const{state:{disabled:t,ariaLabel:e,noSeek:n,className:i,containerClassName:r}}=this.controller,o={onClick:()=>{this.primaryAction()},onDisabledClick:()=>this.disabledAction(),ariaLabel:e,className:i,containerClassName:r,part:i,disabled:t||n},a=!n&&e;return p.x`
1665			<info-tooltip
1666				tooltipPosition="${this.tooltipPosition}"
1667				tooltipLabel="${a}"
1668				?shouldShowTooltipOnFocus=${!n&&this.shouldShowTooltipOnFocus}
1669				.shouldRenderTooltip=${this.shouldRenderTooltip&&!!a}
1670			>
1671				${Hy(o)}
1672			</info-tooltip>
1673		`}};Nw.tokens=Ow,Nw.styles=[ww,Ly],kw([b(".play-button")],Nw.prototype,"playButton",2),kw([b(".pause-button")],Nw.prototype,"pauseButton",2),kw([b("info-tooltip")],Nw.prototype,"tooltip",2),kw([b(".button-container")],Nw.prototype,"buttonContainer",2),kw([(0,p.n)({type:String})],Nw.prototype,"part",2),kw([v()],Nw.prototype,"configOptions",2),kw([Vy(".button-container")],Nw.prototype,"disconnectedCallback",1),kw([By(".button-container")],Nw.prototype,"updated",1),Nw=kw([p_],Nw);const Mw=Wb("\n  :host .play-button {\n\t\t--control--mask: var(--play-icon);\n  }\n\n  :host .pause-button {\n    --control--mask: var(--stop-icon);\n    --control--mask-size: 100%;\n  }\n"),Uw={...Ow,"stop-icon":"url(\"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M25.3327%206.66675H6.66602V25.3334H25.3327V6.66675Z'%20fill='white'/%3e%3c/svg%3e\")",responsive:{}};class Bw extends Rw{get ariaLabel(){const{dictionary:t}=this.host,{showPlay:e}=this.streamController.value;
1673return e?t.translate(Xl.MEDIA.PLAYER.PLAY,"Play"):t.translate(Xl.MEDIA.PLAYER.STOP,"Stop")}}Object.getOwnPropertyDescriptor;let Vw=class extends Nw{constructor(){super();const{Controller:t}=n_(this);this.controller=new(t??Bw)(this,{streamController:this.streamController})}};Vw.tokens=Uw,Vw.styles=[ww,Mw,Ly],Vw=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o})([p_],Vw);const Fw=Wb("\n\t:host {\n\t\tdisplay: block;\n\t}\n\n\t.button-container.round {\n\t\tbackdrop-filter: var(--multiview-audio-select--backdrop-filter, none);\n\t}\n\n\t:host([audio-active]) .button-container.round {\n\t\tbackground-color: var(--audio-selected-background-color);\n\t\tbackdrop-filter: var(--audio-selected-backdrop-filter);\n\t}\n\n\t.control {\n\t\t--control--mask: var(--audio-select-icon);\n\t}\n\n\t.control.audio-active,\n\t:host([audio-active]) .control {\n\t\t--control--mask: var(--audio-selected-icon);\n\t}\n"),zw={...jy,"controls__host--width":"64px","control-height":"32px","control-width":"32px","button-container--height":"64px","button-container--width":"64px","button-container__round--size":"64px","button-container__round--background-color":"rgba(0, 0, 0, 0.56)","button-container__round__hover--background-color":"rgba(0, 0, 0, 0.56)","controls-background-color":"#ffffff","audio-select-icon":"url(\"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.66732%2011.6666V25.6666H4.33398V11.6666H7.66732Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.334%206.33325V25.6666H11.0007V6.33325H14.334Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.0007%2016.9999V25.6666H17.6673V16.9999H21.0007Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M27.6673%2011.6666V25.6666H24.334V11.6666H27.6673Z'%20fill='white'/%3e%3c/svg%3e\")","audio-selected-icon":"url(\"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.334%2031.0366L7.75293%2021.7046H1.33398V10.2954L7.75293%2010.2944L17.334%200.963379V31.0366ZM20.334%205.6665C26.0409%205.6665%2030.667%2010.2935%2030.667%2016.0005C30.6667%2021.6367%2026.1543%2026.2192%2020.5449%2026.3315L20.334%2026.3335V24.3335C24.9362%2024.3335%2028.6667%2020.6026%2028.667%2016.0005C28.667%2011.4668%2025.0465%207.77852%2020.5391%207.66943L20.334%207.6665V5.6665ZM8.56641%2012.2954L3.33398%2012.2944V19.7046H8.56641L15.334%2026.2964L15.333%205.70361L8.56641%2012.2954ZM20.334%209.6665C23.8318%209.6665%2026.667%2012.5027%2026.667%2016.0005C26.6667%2019.4377%2023.9287%2022.2349%2020.5146%2022.3306L20.334%2022.3335V20.3335C22.7271%2020.3335%2024.6667%2018.3935%2024.667%2016.0005C24.667%2013.6593%2022.8105%2011.7513%2020.4893%2011.6694L20.334%2011.6665V9.6665ZM20.334%2013.6665C21.6226%2013.6665%2022.667%2014.7118%2022.667%2016.0005C22.6667%2017.246%2021.6909%2018.2631%2020.4619%2018.3296L20.334%2018.3335V16.3335C20.5179%2016.3335%2020.6667%2016.1844%2020.667%2016.0005C20.667%2015.8368%2020.5491%2015.7006%2020.3936%2015.6724L20.334%2015.666
16735V13.6665Z'%20fill='white'/%3e%3c/svg%3e\")","audio-selected-background-color":"rgba(0, 0, 0, 0.48)","audio-selected-backdrop-filter":"blur(25px)",responsive:{}};var $w=Object.defineProperty,Hw=Object.getOwnPropertyDescriptor,Gw=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?Hw(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&$w(e,n,o),o};let Yw=class extends pt{constructor(){super(...arguments),this.track=null,this.isAudioActive=!1}updated(t){t.has("isAudioActive")&&this.toggleAttribute("audio-active",this.isAudioActive)}connectedCallback(){super.connectedCallback(),this.toggleAttribute("audio-active",this.isAudioActive)}primaryAction(){!this.isAudioActive&&this.track&&this.commandBus?.dispatchCommand(Ql.AUDIO_TRACK_SELECTION,{label:"Multiview audio select",track:this.track})}render(){const t=this.isAudioActive?"Audio playing":"Select audio";return p.x`
1674			${Hy({onClick:()=>this.primaryAction(),ariaLabel:t,className:My({control:!0,"audio-active":this.isAudioActive}),containerClassName:"round",part:"multiview-audio-select"})}
1675		`}};Yw.tokens=zw,Yw.styles=[Fw,Ly],Gw([(0,p.n)({attribute:!1})],Yw.prototype,"track",2),Gw([(0,p.n)({type:Boolean})],Yw.prototype,"isAudioActive",2),Yw=Gw([p_],Yw);const jw=Wb("\n\t:host {\n\t\tdisplay: block;\n\t}\n\n\t.control {\n\t\t--control--mask: var(--expand-icon);\n\t}\n"),Kw={...jy,"controls__host--width":"64px","control-height":"32px","control-width":"32px","button-container--height":"64px","button-container--width":"64px","button-container__round--size":"64px","button-container__round--background-color":"rgba(0, 0, 0, 0.56)","button-container__round__hover--background-color":"rgba(0, 0, 0, 0.56)","controls-background-color":"#ffffff","expand-icon":"url(\"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M23.6667%204.33325H15V6.33325H21.6667V16.3333H15V18.9999H5V16.3333H3V20.9999H15V27.6666H29V16.3333H23.6667V4.33325Z'%20fill='white'/%3e%3cpath%20d='M11.6667%204.33325H3V12.9999H5V7.74747L10.6667%2013.4141L12.0809%2011.9999L6.41421%206.33325H11.6667V4.33325Z'%20fill='white'/%3e%3c/svg%3e\")",responsive:{}};var Ww=Object.defineProperty,qw=Object.getOwnPropertyDescriptor,Xw=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?qw(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&Ww(e,n,o),o};let Zw=class extends pt{constructor(){super(...arguments),this.substreamId="",this.feedId=""}primaryAction(){this.commandBus?.dispatchCommand(Ql.MULTIVIEW_FEED_CHANGE_REQUEST,{substreamId:this.substreamId,feedId:this.feedId,label:"Multiview stream select"})}render(){return p.x`
1676			${Hy({onClick:()=>this.primaryAction(),ariaLabel:"Select substream",className:"control",containerClassName:"round",part:"multiview-stream-select"})}
1677		`}};Zw.tokens=Kw,Zw.styles=[jw,Ly],Xw([(0,p.n)({type:String})],Zw.prototype,"substreamId",2),Xw([(0,p.n)({type:String})],Zw.prototype,"feedId",2),Zw=Xw([p_],Zw);const Qw=p.i`
1678	:host {
1679		position: absolute;
1680		bottom: var(--host-bottom);
1681		inset-inline-end: var(--host-inset-inline-end);
1682		pointer-events: auto;
1683		display: inline-flex;
1684		align-items: center;
1685		gap: var(--host-gap);
1686		z-index: 1;
1687	}
1688
1689	:host([isControlsOverlayVisible]) {
1690		bottom: var(--host-bottom-controls-overlay-visible);
1691	}
1692
1693	:host([lifted]) {
1694		bottom: var(--host-bottom-lifted);
1695		transition: all 0.3s ease;
1696	}
1697
1698	button {
1699		appearance: none;
1700		box-sizing: var(--button-box-sizing);
1701		display: inline-flex;
1702		align-items: center;
1703		justify-content: center;
1704		gap: var(--button-gap);
1705		height: var(--button-height);
1706		padding-block: var(--button-padding-block);
1707		padding-inline: var(--button-padding-inline);
1708		border: none;
1709		border-radius: var(--button-border-radius);
1710		background: var(--button-background);
1711		backdrop-filter: var(--button-backdrop-filter);
1712		-webkit-backdrop-filter: var(--button-backdrop-filter);
1713		color: #000;
1714		cursor: pointer;
1715		transition: all 0.3s ease;
1716	}
1717
1718	:host([dir="rtl"]) button,
1719	:host([dir="rtl"]) .label,
1720	:host(:lang(th)) button,
1721	:host(:lang(th)) .label {
1722		font-family: inherit;
1723	}
1724
1725	.icon {
1726		width: 2em;
1727		height: 2em;
1728		background-size: contain;
1729		background-repeat: no-repeat;
1730		background-position: center;
1731	}
1732
1733	.label {
1734		font-family: var(--label-font-family);
1735		font-size: var(--label-font-size);
1736		font-style: var(--label-font-style);
1737		font-weight: var(--label-font-weight);
1738		line-height: var(--label-line-height);
1739		letter-spacing: var(--label-letter-spacing);
1740		text-transform: uppercase;
1741		color: #000;
1742	}
1743
1744	:host(:lang(ar)) .label {
1745		letter-spacing: normal;
1746	}
1747`;var Jw=Object.defineProperty,tA=Object.getOwnPropertyDescriptor,eA=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?tA(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&Jw(e,n,o),o};const nA={isVNextPlayerEnabled:!1},iA=t=>{const{playback:e}=t??{};return{isVNextPlayerEnabled:Boolean(e?.clients?.playerFeatureFlags?.isVNextPlayerEnabled)}};let rA=class extends pt{constructor(){super(...arguments),this.label="Skip",this.isControlsOverlayVisible=!1,this.lifted=!1,this.streamController=new G_(this,iA,nA),this.onClick=()=>{this.dispatchEvent(new CustomEvent("activate",{bubbles:!0,composed:!0}))}}getQAElements(){return{label:this.labelElement,icon:this.iconElement,"button-container":this.buttonContainer}}updated(t){super.updated(t)}disconnectedCallback(){super.disconnectedCallback()}render(){const{isVNextPlayerEnabled:t}=this.streamController.value,e=!t,n=e&&this.iconUrl?{backgroundColor:"black",WebkitMaskImage:`url("${this.iconUrl}")`,WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center",WebkitMaskSize:"contain",maskImage:`url("${this.iconUrl}")`,maskRepeat:"no-repeat",maskPosition:"center",maskSize:"contain"}:{};return p.x`
1748			<div class="button-container">
1749				<button type="button" @click=${this.onClick}>
1750					${e?p.x`<span class="icon" style=${$y(n)}></span>`:p.E}
1751					<span class="label locale-button-focused">${this.label}</span>
1752				</button>
1753			</div>
1754		`}};rA.tokens={"host-bottom":"5em","host-bottom-controls-overlay-visible":"13em","host-bottom-lifted":"16em","host-inset-inline-end":"20px","host-gap":"8px","button-gap":"8px","button-height":"auto","button-padding-block":"8px","button-padding-inline":"16px","button-border-radius":"4px","button-background":"rgba(255, 255, 255, 0.9)","button-backdrop-filter":"none","label-font-family":"inherit","label-font-size":"inherit","label-font-style":"normal","label-font-weight":"bold","label-line-height":"normal","label-letter-spacing":"normal",responsive:{}},rA.styles=[Qw],eA([(0,p.n)({type:String})],rA.prototype,"label",2),eA([(0,p.n)({type:String})],rA.prototype,"iconUrl",2),eA([(0,p.n)({type:Boolean,reflect:!0})],rA.prototype,"isControlsOverlayVisible",2),eA([(0,p.n)({type:Boolean,reflect:!0})],rA.prototype,"lifted",2),eA([b(".button-container")],rA.prototype,"buttonContainer",2),eA([b(".label")],rA.prototype,"labelElement",2),eA([b(".icon")],rA.prototype,"iconElement",2),eA([By(".button-container")],rA.prototype,"updated",1),eA([Vy(".button-container")],rA.prototype,"disconnectedCallback",1),rA=eA([p_],rA);class oA{get title(){return this.streamController.value.title||""}get subtitle(){return this.streamController.value.subtitle||""}get titleLogoPath(){return this.streamController.value.titleLogoPath||null}get subtitleLogoPath(){return this.streamController.value.subtitleLogoPath||null}get titleLogoAltText(){return this.streamController.value.titleLogoAltText||null}get subtitleLogoAltText(){return this.streamController.value.subtitleLogoAltText||null}get isCasting(){return this.streamController.value.isCasting??!1}get castingPlatform(){return this.streamController.value.castingPlatform||null}get showCastingControls(){return!1}get shouldShowTitleLabels(){return!0}get castingLocation(){return""}get isLive(){return this.streamController.value.isLive??!1}get state(){return{title:this.title,subtitle:this.subtitle,titleLogoPath:this.titleLogoPath,subtitleLogoPath:this.subtitleLogoPath,titleLogoAltText:this.titleLogoAltText,subtitleLogoAltText:this.subtitleLogoAltText,showCastingControls:this.showCastingControls,shouldShowTitleLabels:this.shouldShowTitleLabels,castingLocation:this.castingLocation,isLive:this.isLive}}constructor(t,e){(this.host=t).addController(this),this.streamController=e.streamController}hostConnected(){}hostDisconnected(){}onBackArrowClick(){this.host.commandBus?.dispatchCommand(ff.EXIT_PLAYBACK)}onCastingArrowClick(){const t={localState:this.host.localState};this.host.localState?.playerMode?.isCastingNormalMode?this.host.commandBus?.dis
1754patchCommand(ff.CASTING_MINIMIZED,t):this.host.commandBus?.dispatchCommand(ff.NORMAL_MODE,t)}}const aA=Wb('\n\t:host {\n\t\tdisplay: block;\n\t\tpointer-events: none;\n\t\tmin-inline-size: 0;\n\t}\n\n\t.title-bug-area {\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t\tz-index: 1;\n\t\tmin-inline-size: 0;\n\t}\n\n\t.title-bug-area.wrap__title {\n\t\tinline-size: 38%;\n\t}\n\n\t.title-bug-container {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: var(--title-bug-container--align-items, center);\n\t\tinline-size: 100%;\n\t\tmax-inline-size: 100%;\n\t\tmin-inline-size: 0;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.control-icon-btn {\n\t\tblock-size: auto;\n\t}\n\n\t.control-icon-btn.title-btn {\n\t\tflex: 1 1 0;\n\t\tinline-size: var(--title-width, auto);\n\t\tmax-block-size: var(--title-height, 100%);\n\t\tmax-inline-size: var(--title-max-width, 620px);\n\t\tmin-inline-size: 0;\n\t\ttext-align: start;\n\t\tcolor: white;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tbackground: none;\n\t\tborder: none;\n\t\tcursor: default;\n\t\tpadding-block: 0;\n\t\tpadding-inline: 0;\n\t\tfont-family: inherit;\n\t\tgap: var(--title-bug-container--gap, 0);\n\t}\n\n\t.control-icon-btn.title-btn.-network-logo-only {\n\t\tdisplay: grid;\n\t\talign-items: center;\n\t}\n\n\t.control-icon-btn.title-btn.title-btn--with-live-badge {\n\t\tgap: 6px;\n\t}\n\n\t.live-badge-row {\n\t\tdisplay: var(--live-badge-row--display, inline-flex);\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\talign-self: start;\n\t\tbox-sizing: border-box;\n\t\tflex-shrink: 0;\n\t\tgap: var(--live-badge--gap, 1px);\n\t\tmin-block-size: var(--live-badge--height, 20px);\n\t\tpadding-inline-start: var(--live-badge--padding-inline-start, 2px);\n\t\tpadding-inline-end: var(--live-badge--padding-inline-end, 4px);\n\t\tpadding-block: var(--live-badge--padding-block, 3px);\n\t\tborder-radius: var(--live-badge--border-radius, 6px);\n\t\tbackground-color: var(--live-badge--background-color, #e50044);\n\t}\n\n\t.live-badge__icon {\n\t\tflex-shrink: 0;\n\t\tinline-size: var(--live-badge-icon--size, 14px);\n\t\tblock-size: var(--live-badge-icon--size, 14px);\n\t\tmask-image: var(--live-badge-icon);\n\t\t-webkit-mask-image: var(--live-badge-icon);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tbackground-color: var(--live-badge-icon--color, #ffffff);\n\t\tpointer-events: none;\n\t}\n\n\t.live-badge__label {\n\t\tfont-size: var(--live-badge-label--font-size, 12px);\n\t\tline-height: var(--live-badge-label--line-height, 18px);\n\t\tfont-weight: var(--live-badge-label--font-weight, 700);\n\t\tcolor: var(--live-badge-label--color, #ffffff);\n\t\tletter-spacing: 0.11px;\n\t\ttext-transform: uppercase;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tpointer-events: none;\n\t}\n\n\t.title-field {\n\t\tfont-size: var(--title-font-size, 20px);\n\t\tline-height: var(--title-line-height, 38px);\n\t\tfont-weight: var(--title-font-weight, 800);\n\t\tcolor: var(--title--color, white);\n\t\toverflow: var(--title-field--overflow, visible);\n\t\twhite-space: var(--title-field--white-space, normal);\n\t\ttext-overflow: var(--title-field--text-overflow, clip);\n\t\toverflow-wrap: var(--title-field--overflow-wrap, break-word);\n\t\tword-break: var(--title-field--word-break, break-word);\n\t}\n\n\t.title-field img {\n\t\tmax-block-size: 40px;\n\t\tvertical-align: middle;\n\t}\n\n\t.casting-field {\n\t\tdisplay: var(--casting-field--display, block);\n\t\tfont-size: 12px;\n\t\tline-height: 1.5;\n\t\tcolor: rgba(249, 249, 249, 0.8);\n\t\twhite-space: nowrap;\n\t}\n\n\t.subtitle-field {\n\t\tfont-size: var(--subtitle-font-size, 15px);\n\t\tfont-weight: var(--subtitle-font-weight, 400);\n\t\tmargin-block-end: var(--subtitle-margin-bottom, 6px);\n\t\tcolor: var(--subtitle--color, #d5d7db);\n\t\tline-height: var(--subtitle-line-height, 23px);\n\t\tletter-spacing: var(--subtitle-letter-spacing, unset);\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tmin-inline-size: 0;\n\t\toverflow-wrap: break-word;\n\t\tword-break: break-word;\n\t}\n\n\t.subtitle-field img {\n\t\tmax-block-size: var(--subtitle-field-img--max-block-size, 16px);\n\t}\n\n\t.subtitle-field.no-margin {\n\t\tmargin-block-end: 0;\n\t}\n\n\t.serviceAttribution-field {\n\t\tdisplay: var(--serviceAttribution-field--display, block);\n\t\tfont-size: var(--serviceAttribution-field--font-size, 12px);\n\t\tcolor: var(--serviceAttribution-field--color, #d5d7db);\n\t\tline-height: var(--serviceAttribution-field--line-height, 18px);\n\t\tletter-spacing: var(--serviceAttribution-field--letter-spacing, unset);\n\t}\n\n\t.network-attribution-subtitle {\n\t\tpadding-inline-end: var(--network-attribution-subtitle--padding-right, 12px);\n\t\tpadding-block-start: var(--network-attribution-subtitle--padding-top, 0);\n\t\tpadding-block-end: var(--network-attribution-subtitle--padding-bottom, 0);\n\t\talign-self: center;\n\t}\n\n\t.nowrap {\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\tinline-size: 100%;\n\t}\n\n\t.header-arrow-tooltip {\n\t\tbackground-color: var(--header-arrow--background-color, transparent);\n\t\tbackdrop-filter: var(--header-arrow--backdrop-filter);\n\t\tborder-radius: var(--header-arrow--border-radius, 0);\n\t\tbox-sizing: var(--header-arrow--box-sizing, content-box);\n\t\tinline-size: var(--header-arrow--width, auto);\n\t\tblock-size: var(--header-arrow--height, auto);\n\t\tdisplay: var(--header-arrow--display, block);\n\t\talign-items: var(--header-arrow--align-items, initial);\n\t\tjustify-content: var(--header-arrow--justify-content, initial);\n\t\tmargin-block-start: var(--header-arrow--margin-block-start, 0);\n\t\tmargin-inline-end: var(--header-arrow--margin-inline-end, 0);\n\t\tmargin-block-end: var(--header-arrow--margin-block-end, 0);\n\t\tmargin-inline-start: var(--header-arrow--margin-inline-start, 0);\n\t\t&:hover {\n\t\t\tbackground-color: var(--header-arrow--hover-background-color, transparent);\n\t\t}\n\t\t&:active {\n\t\t\tbackground-color: var(--header-arrow--active-background-color, transparent);\n\t\t}\n\t}\n\n\t.back-icon {\n\t\tmask-image: var(--back-icon);\n\t\t-webkit-mask-image: var(--back-icon);\n\t\tblock-size: var(--header-arrow--height, var(--back-icon--height));\n\t\tinline-size: var(--header-arrow--width, var(--back-icon--width));\n\t\tmin-inline-size: var(--header-arrow--width, var(--back-icon--width));\n\t\tmask-size: var(--back-icon--width) var(--back-icon--height);\n\t\t-webkit-mask-size: var(--back-icon--width) var(--back-icon--height);\n\t\tmask-position: center;\n\t\t-webkit-mask-position: center;\n\t\tmask-repeat: no-repeat;\n\t\t-webkit-mask-repeat: no-repeat;\n\t\tbackground-color: var(--back-icon--color);\n\t\topacity: var(--back-icon--opacity);\n\t\tcursor: pointer;\n\t\tpointer-events: auto;\n\t\tborder: none;\n\t\tpadding-block: 0;\n\t\tpadding-inline: 0;\n\t\tflex-shrink: 0;\n\t\tmargin-block-start: 0;\n\t}\n\n\t.back-icon:hover {\n\t\topacity: var(--back-icon--hover-opacity);\n\t}\n\n\t.down-icon {\n\t\tmask-image: var(--down-icon);\n\t\t-webkit-mask-image: var(--down-icon);\n\t\tblock-size: var(--down-icon--height);\n\t\tinline-size: var(--down-icon--width);\n\t\tmin-inline-size: var(--down-icon--width);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tbackground-color: var(--down-icon--color);\n\t\topacity: var(--down-icon--opacity);\n\t\tcursor: pointer;\n\t\tpointer-events: auto;\n\t\tborder: none;\n\t\tpadding-block: 0;\n\t\tpadding-inline: 0;\n\t\tflex-shrink: 0;
1754\n\t\tmargin-block: 6px;\n\t\tmargin-inline: 6px;\n\t}\n\n\t.down-icon:hover {\n\t\topacity: var(--down-icon--hover-opacity);\n\t}\n\n\t.up-icon {\n\t\tmask-image: var(--up-icon, var(--down-icon));\n\t\t-webkit-mask-image: var(--up-icon, var(--down-icon));\n\t\tblock-size: var(--up-icon--height, var(--down-icon--height));\n\t\tinline-size: var(--up-icon--width, var(--down-icon--width));\n\t\tmin-inline-size: var(--up-icon--width, var(--down-icon--width));\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tbackground-color: var(--up-icon--color, var(--down-icon--color));\n\t\topacity: var(--up-icon--opacity, var(--down-icon--opacity));\n\t\tcursor: pointer;\n\t\tpointer-events: auto;\n\t\tborder: none;\n\t\tpadding-block: 0;\n\t\tpadding-inline: 0;\n\t\tflex-shrink: 0;\n\t\tmargin-block: 0px;\n\t\tmargin-inline: var(--up-icon--margin-inline, 6px);\n\t\ttransform: rotate(180deg);\n\t\tmargin-block-start: -3px;\n\t}\n\n\t.up-icon:hover {\n\t\topacity: var(--up-icon--hover-opacity, var(--down-icon--hover-opacity));\n\t}\n\n\t:host([dir="rtl"]) .back-icon {\n\t\ttransform: scaleX(-1);\n\t}\n\n\t:host(:lang(ar)) .live-badge__label,\n\t:host(:lang(ar)) .subtitle-field {\n\t\tletter-spacing: normal;\n\t}\n\n\t:host(:lang(ar)) .casting-field {\n\t\tcolor: #dbdcde;\n\t}\n'),sA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M24.158%2030.29c.584.64.386%201.59-.353%202.007a1.538%201.538%200%200%201-.783.203c-.431%200-.854-.167-1.138-.485L10.838%2019.842a1.268%201.268%200%200%201%200-1.724L21.888%205.979c.475-.518%201.3-.624%201.92-.277.739.418.936%201.364.352%202.006L13.898%2018.982l10.26%2011.309zM11.98%2018.764a.349.349%200%200%201%20.001.434l.197-.216-.198-.218zm11.076-11.67c-.012-.007-.058%200-.031-.03a.076.076%200%200%200%20.03.03zm-.027%2023.846a1.042%201.042%200%200%201-.007-.008l.007.008z'/%3e%3c/svg%3e",lA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M28.35%2011.565c.578-.538%201.433-.355%201.81.325.122.21.182.463.182.72%200%20.398-.15.786-.437%201.048L18.93%2
1754023.827a1.126%201.126%200%200%201-1.555%200L6.432%2013.655c-.468-.438-.563-1.198-.25-1.767.377-.681%201.23-.863%201.809-.325l10.164%209.446%2010.195-9.445zM17.957%2022.776a.31.31%200%200%201%20.391%200l-.194-.181-.197.181zM7.436%2012.581c-.006.01%200%20.053-.027.028a.07.07%200%200%200%20.027-.028zm21.5.024z'/%3e%3c/svg%3e",cA={"title-bug-container--gap":"4px","title--font-size":"20px","title--line-height":"28px","title--font-weight":"800","title--color":"#efefef","subtitle--font-size":"12px","subtitle--line-height":"20px","subtitle--font-weight":"400","subtitle--color":"#d5d7db","back-icon":`url("${sA}")`,"back-icon--height":"36px","back-icon--width":"36px","back-icon--opacity":"0.8","back-icon--hover-opacity":"1","back-icon--color":"#efefef","back-icon--margin-top":"0","down-icon":`url("${lA}")`,"down-icon--height":"36px","down-icon--width":"36px","down-icon--opacity":"0.8","down-icon--hover-opacity":"1","down-icon--color":"#efefef","up-icon":`url("${lA}")`,"up-icon--height":"36px","up-icon--width":"36px","up-icon--opacity":"0.8","up-icon--hover-opacity":"1","up-icon--color":"#efefef","title-logo--max-height":"40px","title-logo--vertical-align":"middle","subtitle-logo--max-height":"16px","subtitle-logo--vertical-align":"middle","live-badge-icon":`url("${kT}")`,"live-badge--background-color":"#e50044","live-badge--height":"20px","live-badge--border-radius":"6px","live-badge--gap":"1px","live-badge--padding-inline-start":"2px","live-badge--padding-inline-end":"4px","live-badge--padding-block":"3px","live-badge-icon--size":"14px","live-badge-icon--color":"#ffffff","live-badge-label--font-size":"12px","live-badge-label--line-height":"18px","live-badge-label--font-weight":"700","live-badge-label--color":"#ffffff",responsive:{smallPlus:{"back-icon--margin-top":"1px","title-bug-container--gap":"4px","subtitle--line-height":"33px"},medium:{"title--font-size":"32px","subtitle--font-size":"15px","title--line-height":"38px","subtitle--line-height":"22px"}}};var dA=Object.defineProperty,uA=Object.getOwnPropertyDescriptor,pA=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?uA(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&dA(e,n,o),o};const hA={title:"",subtitle:"",titleLogoPath:null,subtitleLogoPath:null,titleLogoAltText:null,subtitleLogoAltText:null,isLive:!1,isEventReplay:!1,serviceAttribution:null,subtitleNetworkLogoUrl:null,subtitleNetworkLogoAltText:null,networkAttributionArtworkType:null,isCasting:!1,castingPlatform:null,castingLocation:null,isVNextPlayerEnabled:!1},mA=t=>{const{playbackCriteria:e,streamDetails:n,casting:i,playback:r}=t,o=Boolean(r?.clients?.playerFeatureFlags?.isVNextPlayerEnabled),a=e?.current?.metadata,{title:s,subtitle:l,serviceAttribution:c,subtitleNetworkLogo:d,networkAttribution:u}=a??{},{isLive:p,isEventReplay:h}=n??{},m=d?.imageUrl||"subtitle"===u?.artworkType&&u?.watermarkImageUrl,g=d?.imageUrl||("subtitle"===u?.artworkType?u?.watermarkImageUrl:null),v=d?.altText||("subtitle"===u?.artworkType?u?.ttsText:null),{isCasting:f,platform:b,location:_}=i??{};return{title:s?.text||"",subtitle:l?.text||"",titleLogoPath:s?.logoPath||null,subtitleLogoPath:l?.logoPath||null,titleLogoAltText:s?.logoAlt||null,subtitleLogoAltText:l?.logoAlt||null,isLive:p??!1,isEventReplay:h??!1,serviceAttribution:c||null,subtitleNetworkLogoUrl:g,subtitleNetworkLogoAltText:v,networkAttributionArtworkType:m?"subtitle":u?.artworkType||null,isCasting:f??!1,castingPlatform:b??null,castingLocation:_??null,isVNextPlayerEnabled:o}};let gA=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,mA,hA),this.controller=new oA(this,{streamController:this.streamController}),this.tooltipPosition="bottom-center",this.shouldShowTooltipOnFocus=!0}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({playerMode:t.playerMode??{isCastingNormalMode:!0}}
1754)));const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController})),this.controller.hostConnected()}disconnectedCallback(){super.disconnectedCallback(),this.controller.hostDisconnected(),this.unsubscribeFromLocalState?.(),this.unsubscribeFromLocalState=void 0}get isCastingMiniMode(){const{showCastingControls:t}=this.controller.state,e=this.localState?.playerMode?.isCastingNormalMode??!0;return t&&!e}get shouldEllipsis(){const{networkAttributionArtworkType:t}=this.streamController.value;return"subtitle"===t}get shouldTruncateTitle(){return this.shouldEllipsis}get subtitleLogoWithoutText(){const{subtitleNetworkLogoUrl:t,networkAttributionArtworkType:e}=this.streamController.value;return!!t&&"subtitle"===e}get networkLogoOnly(){const{title:t,titleLogoPath:e,subtitle:n,subtitleLogoPath:i,subtitleNetworkLogoUrl:r}=this.streamController.value;return!(t||e||n||i||!r)}get showLiveBadge(){const{isLive:t,isEventReplay:e,isVNextPlayerEnabled:n}=this.streamController.value;return!(!n||!t||e)}renderLiveBadgeRow(){if(!this.showLiveBadge)return null;const t=this.dictionary?.translate(Xl.MEDIA.PLAYER.LIVE_LABEL,"Live");return p.x`
1755			<div class="live-badge-row" aria-label=${t}>
1756				<span class="live-badge__icon" aria-hidden="true"></span>
1757				<span class="live-badge__label locale-metadata-heavy"
1758					>${t}</span
1759				>
1760			</div>
1761		`}renderTitleDisplay(){const{title:t,titleLogoPath:e,titleLogoAltText:n}=this.streamController.value;if(!t&&!e)return null;const i=My({"title-field":!0,"body-copy":!0,"locale-h3":!this.isCastingMiniMode,"locale-body-headline":this.isCastingMiniMode,nowrap:this.shouldTruncateTitle}),r=e?p.x`<img
1762					src=${e}
1763					alt=${n||"Title Logo"}
1764				/>`:null;return p.x`
1765			<div class=${i}>
1766				${r} ${r&&t?" | ":null}
1767				<span>${t}</span>
1768			</div>
1769		`}renderSubtitleDisplay(){const{title:t,subtitle:e,titleLogoPath:n,subtitleLogoPath:i,subtitleLogoAltText:r,subtitleNetworkLogoUrl:o,subtitleNetworkLogoAltText:a}=this.streamController.value;if(!e&&!i&&!this.subtitleLogoWithoutText)return null;const s=!(t||e||n||i),l=My({"subtitle-field":!0,"locale-body-headline":!this.isCastingMiniMode,"locale-metadata":this.isCastingMiniMode,nowrap:this.shouldEllipsis,"no-margin":s}),c=i?p.x`<img
1770					src=${i}
1771					alt=${r||"Subtitle Logo"}
1772				/>`:null,d=o&&this.shouldEllipsis?p.x`<img
1773						class="network-attribution-subtitle"
1774						src=${o}
1775						alt=${a||""}
1776					/>`:null;return p.x`
1777			<div class=${l}>
1778				${c} ${d}
1779				${i&&e?" | ":null}
1780				<span>${e}</span>
1781			</div>
1782		`}renderCastingField(){const{showCastingControls:t,castingLocation:e}=this.controller.state;return t&&e?p.x`<div class="casting-field">${e}</div>`:null}renderServiceAttribution(){const{serviceAttribution:t}=this.streamController.value;return t?p.x`<div class="serviceAttribution-field locale-body-headline">
1783			${t}
1784		</div>`:null}renderArrow(){const{showCastingControls:t}=this.controller.state,e=this.localState?.playerMode?.isCastingNormalMode??!0,n=t?Xl.MEDIA.CONTROLS.CHROMECAST_ON:Xl.MEDIA.CONTROLS.BACK,i=this.dictionary?.translate(n,t?"Cast":"Back"),r=t?e?"down-icon":"up-icon":"back-icon";return p.x`
1785			<info-tooltip
1786				part="info-tooltip"
1787				class="header-arrow-tooltip"
1788				tooltipPosition="${this.tooltipPosition}"
1789				tooltipLabel=${i}
1790				.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
1791			>
1792				<button
1793					role="button"
1794					aria-label=${i}
1795					class=${r}
1796					@click=${e=>{e.stopPropagation(),t?this.controller.onCastingArrowClick():this.controller.onBackArrowClick()}}
1797				></button>
1798			</info-tooltip>
1799		`}renderTitleLabels(){const{shouldShowTitleLabels:t,showCastingControls:e}=this.controller.state;if(!t)return null;const n=My({"control-icon-btn":!0,"title-btn":!0,"-network-logo-only":this.networkLogoOnly,"title-btn--with-live-badge":this.showLiveBadge});return p.x`
1800			<button class=${n} tabindex="-1" type="button">
1801				${this.renderLiveBadgeRow()} ${this.renderTitleDisplay()}
1802				${e?this.renderCastingField():this.renderSubtitleDisplay()}
1803				${this.renderServiceAttribution()}
1804			</button>
1805		`}render(){const{isLive:t}=this.controller.state,e=t?-1:0,n=this.isCastingMiniMode?" casting-mini-mode":"";return p.x`
1806			<div class="title-bug-area">
1807				<div
1808					class="title-bug-container${n}"
1809					role="button"
1810					tabindex=${e}
1811				>
1812					${this.renderArrow()} ${this.renderTitleLabels()}
1813				</div>
1814			</div>
1815		`}};var vA,fA;gA.tokens=cA,gA.styles=[aA],pA([(0,p.n)({type:String})],gA.prototype,"tooltipPosition",2),pA([(0,p.n)({type:Boolean})],gA.prototype,"shouldShowTooltipOnFocus",2),gA=pA([p_,L_({target:t=>t.shadowRoot.querySelectorAll("\n\t\t\t.back-icon,\n\t\t\t.down-icon,\n\t\t\t.up-icon\n\t\t"),watch:t=>t.shadowRoot.querySelector(".title-bug-container")})],gA);const bA=bt(function(){if(fA)return vA;fA=1;var t=yc();return vA=function(e){return t(e)&&e!=+e}}()),_A=Wb('\n\t:host {\n\t\tdisplay: var(--host--display);\n\t\tjustify-content: var(--host--justify-content);\n\t\tflex-direction: var(--host--flex-direction);\n\t\tmargin-bottom: var(--host--margin-bottom);\n\t\tposition: var(--host--position);\n\t\tz-index: 12;\n\t\twidth: var(--host--width);\n\t\theight: var(--host--height);\n\t\ttop: var(--host--top);\n\t\tpointer-events: var(--host--pointer-events);\n\t\tfont-synthesis: var(--host--font-synthesis);\n\t}\n\n\t.ad-badge-overlay--container {\n\t\tcontain: layout style;\n\t\tdisplay: var(--container--display);\n\t\tbox-sizing: var(--container--box-sizing);\n\t\theight: var(--container--height);\n\t\tbackground-color: var(--container--background-color);\n\t\tflex-direction: var(--container--flex-direction);\n\t\tjustify-content: var(--container--justify-content);\n\t\talign-items: var(--container--align-items);\n\t\tpadding-block: var(--container--padding-block);\n\t\tpadding-inline: var(--container--padding-inline);\n\t\tgap: var(--container--gap);\n\t\tmargin-inline-start: var(--container--margin-inline-start);\n\t\tmargin-bottom: var(--container--margin-bottom);\n\t\tmargin-top: var(--container--margin-top);\n\t\tborder-radius: var(--container--border-radius);\n\t\tmax-width: var(--container--max-width--moz);\n\t\tmax-width: var(--container--max-width);\n\t\ttransition: var(--container--transition);\n\t}\n\n\t.ad-badge-overlay--container.controls-open {\n\t\tmargin-bottom: var(\n\t\t\t--container__controls-open--margin-bottom\n\t\t);\n\t\ttransition: var(\n\t\t\t--container__controls-open--transition\n\t\t);\n\t}\n\n\t.ad-badge-overlay--container.ipad-fullscreen {\n\t\tmargin-inline-start: var(\n\t\t\t--container__controls-fullscreen--margin-inline-start\n\t\t);\n\t\tmargin-block-start: var(\n\t\t\t--container__controls-fullscreen--margin-block-start\n\t\t);\n\t\ttransition: var(\n\t\t\t--container__controls-fullscreen--transition\n\t\t);\n\t}\n\n\t:host([dir="rtl"]) .ad-badge-overlay--container {\n\t\talign-self: var(--container__rtl--align-self, auto);\n\t\tmargin-inline-start: var(--container__rtl--margin-inline-start, var(--container--margin-inline-start));\n\t\tmargin-inline-end: var(--container__rtl--margin-inline-end, 0);\n\t}\n\n\t:host([dir="rtl"]) .ad-badge-overlay--container.ipad-fullscreen {\n\t\tmargin-inline-start: var(--container__controls-fullscreen__rtl--margin-inline-start, var(--container__controls-fullscreen--margin-inline-start));\n\t\tmargin-inline-end: var(--container__controls-fullscreen__rtl--margin-inline-end, 0);\n\t}\n\n\t:host(:lang(ar)) .ad-badge-overlay__content__interaction--link {\n\t\ttext-underline-offset: var(--interaction-link__lang-ar--text-underline-offset, auto);\n\t}\n\n\t:host(:lang(he)) .ad-badge-overlay__content__interaction--link {\n\t\ttext-underline-offset: var(--interaction-link__lang-he--text-underline-offset, auto);\n\t}\n\n\t:host(:lang(th)) .ad-badge-overlay__content__interaction--link {\n\t\ttext-underline-offset: var(--interaction-link__lang-th--text-underline-offset, auto);\n\t}\n\n\t.ad-badge-overlay--badge {\n\t\tmargin: 0;\n\t\tmargin-inline-start: var(--badge--margin-inline-start);\n\t\tpadding: var(--badge--padding);\n\t\tborder-radius: var(--badge--border-radius);\n\t\tbackground-color: var(--badge--background-color);\n\t\tfont-size: var(--badge--font-size);\n\t\tfont-weight: var(--badge--font-weight);\n\t\tletter-spacing: var(--badge--letter-spacing);\n\t\ttext-align: var(--badge--text-align);\n\t\tcolor: var(--badge--color);\n\t}\n\n\t.ad-badge-overlay__content--container {\n\t\tdisplay: var(--content-container--display);\n\t\tflex-direction: var(\n\t\t\t--content-container--flex-direction\n\t\t);\n\t\tmargin: var(--content-container--margin);\n\t\tborder-radius: var(\n\t\t\t--content-container--border-radius\n\t\t);\n\t\tcolor: var(--content-container--color);\n\t}\n\n\t.ad-badge-overlay__content--time-display {\n\t\tline-height: var(--time-display--line-height);\n\t\tletter-spacing: var(--time-display--letter-spacing);\n\t\tfont-size: var(--time-display--font-size);\n\t\tfont-weight: var(--time-display--font-weight);\n\t\tfont-variant-numeric: tabular-nums;\n\t\twidth: 4ch;\n\t\ttext-align: center;\n\t}\n\n\t.ad-badge-overlay__content__interaction--container {\n\t\tdisplay: flex;\n\t}\n\n\t.ad-badge-overlay__content__interaction--link {\n\t\tcolor: var(--interaction-link--color);\n\t\ttext-decoration: var(\n\t\t\t--interaction-link--text-decoration\n\t\t);\n\t\tpointer-events: var(\n\t\t\t--interaction-link--pointer-events\n\t\t);\n\t\tfont-size: var(--interaction-link--font-size);\n\t\tfont-weight: var(--interaction-link--font-weight);\n\t\tline-height: var(--interaction-link--line-height);\n\n\t\t&:hover {\n\t\t\ttext-decoration: var(\n\t\t\t\t--interaction-link--text-decoration--hover\n\t\t\t);\n\t\t}\n\t\tcursor: pointer;\n\t}\n\n\t.ad-badge-overlay__content__interaction--spacer {\n\t\theight: var(--interaction-spacer--height);\n\t\twidth: var(--interaction-spacer--width);\n\t\tmargin-block: 0;\n\t\tmargin-inline-start: var(\n\t\t\t--interaction-spacer--margin-inline-start\n\t\t);\n\t\tmargin-inline-end: var(--interaction-spacer--margin-inline-end);\n\t\tbackground-color: var(\n\t\t\t--interaction-spacer--background-color\n\t\t);\n\t}\n\n\t:host(:lang(ar)) .ad-badge-overlay--badge {\n\t\tletter-spacing: normal;\n\t}\n');var EA=Object.defineProperty,yA=Object.getOwnPropertyDescriptor,SA=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?yA(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&EA(e,n,o),o};const TA={currentSession:null,isAdType:!1,isSlateAd:!1,isLive:!1},CA=t=>{const{interstitials:e,streamDetails:n}=t??{},{currentSession:i,isAdType:r,isSlateAd:o}=e??{},{isLive:a}=n??{};return{currentSession:i??null,isAdType:r??!1,isSlateAd:o??!1,isLive:a??!1}};let wA=class extends pt{constructor(){super(...arguments),this.tabIndex=0,this.disableLiveDaiUI=window["browser-adk-flag-cache"]?.disableLiveDaiUI??!1,this.streamController=new G_(this,CA,TA),this.localStateUnsubscribe=null,this.formatDuration=Tc(),this.isIpad=Yv(),this.wasVisible=!1,this.overlayVisible=!1}willUpdate(t){super.willUpdate(t),this.overlayVisible=this.computeOverlayVisible()}connectedCallback(){super.connectedCallback(),this.localStateUnsubscribe=this.localState?.subscribe(this,(t=>({forceHide:t.adBadge.forceHide,controlsOverlayOpen:t.overlayState.overlays[Of]?.isOpen,isFullscreenEnabled:t.fullscreen.isEnabled})))}disconnectedCallback(){super.disconnectedCallback(),this.wasVisible&&(this.dispatchOverlayEvent(Pf),this.wasVisible=!1),this.localStateUnsubscribe&&this.localStateUnsubscribe()}updated(t){super.updated(t);const e=this.overlayVisible;if(e!==this.wasVisible){const t=e?kf:Pf;this.dispatchOverlayEvent(t)}this.wasVisible=e}computeOverlayVisible(){const{currentSession:t,isAdType:e,isLive:n}=this.streamController.value;if(!t)return!1;if(n&&this.disableLiveDaiUI)return!1;const{sessionDuration:i,sessionPosition:r}=t,o=!bA(i-r),a=this.localState?.adBadge.forceHide??!1;return o&&e&&!a}
1815dispatchOverlayEvent(t){this.commandBus?.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:"adBadge",type:t,localState:this.localState})}primaryAction({event:t}){t.preventDefault(),this.commandBus?.dispatchCommand(Ql.PAUSE,{label:"Ad badge overlay",localState:this.localState}),this.commandBus?.dispatchCommand(Ql.INTERSTITIAL_AD_CLICKED,{label:"Ad badge overlay"})}handleKeyPress(t){this.primaryAction({event:t})}render(){if(!this.overlayVisible)return p.E;const{currentSession:t,isLive:e,isSlateAd:n}=this.streamController.value,{currentAsset:i,sessionDuration:r,sessionPosition:o}=t,a=i?.clickUrl,s=r-o,l=this.formatDuration(s,Ic(s)),c=this.dictionary.translate(Xl.MEDIA.ADS.AD_BADGE_LABEL,"Ad"),d=this.dictionary.translate(Xl.MEDIA.ADS.AD_INTERACTION_LINK_LABEL,"Learn More"),u=this.localState?.overlayState.overlays[Of]?.isOpen??!1,h=this.localState?.fullscreen.isEnabled??!1,m=this.isIpad&&h;return p.x`<div
1816			class="ad-badge-overlay--container ${u?"controls-open":""} ${m?"ipad-fullscreen":""}"
1817		>
1818			${Q_(!n,(()=>p.x`<div class="ad-badge-overlay--badge locale-metadata-heavy">
1819						${c}
1820					</div>`),(()=>p.E))}
1821			<div class="ad-badge-overlay__content--container">
1822				<div
1823					class="ad-badge-overlay__content--time-display locale-metadata-heavy"
1824				>
1825					${l}
1826				</div>
1827				${Q_(!e&&a,(()=>p.x`
1828						<div class="ad-badge-overlay__content__interaction--container">
1829							<div class="ad-badge-overlay__content__interaction--spacer"></div>
1830							<a
1831								tabindex=${this.tabIndex}
1832								class="ad-badge-overlay__content__interaction--link locale-metadata"
1833								@click=${t=>this.primaryAction({event:t})}
1834								>${d}</a
1835							>
1836						</div>
1837					`),(()=>p.E))}
1838			</div>
1839		</div>`}};wA.tokens={"host--display":"flex","host--justify-content":"flex-end","host--flex-direction":"column","host--position":"absolute","host--width":"100%","host--height":"100%","host--top":"0px","host--pointer-events":"none","host--font-synthesis":"none","container--display":"flex","container--height":"36px","container--background-color":"rgba(0, 0, 0, 0.6)","container--flex-direction":"row","container--justify-content":"flex-start","container--align-items":"center","container--padding-block":"0","container--padding-inline":"0","container--gap":"0","container--box-sizing":"border-box","container--margin-inline-start":"1.2em","container--margin-bottom":"23px","container--border-radius":"6px","container--max-width--moz":"-moz-fit-content","container--max-width":"fit-content","container--transition":"margin-bottom 0.250s ease-in-out","container__controls-open--margin-bottom":"110px","container__controls-open--transition":"none","container__controls-fullscreen--transition":"margin-inline-start 0.2s ease, margin-block-start 0.2s ease;","container__controls-fullscreen--margin-inline-start":"140px","container__controls-fullscreen--margin-block-start":"5px","container--margin-top":"unset","badge--padding":"2px 4px 0px 4px","badge--border-radius":"4px","badge--background-color":"#ffdb6e","badge--font-size":"1em","badge--font-weight":"600","badge--letter-spacing":"0.5px","badge--text-align":"center","badge--color":"#0e0b14","badge--margin-inline-start":"0.33em","content-container--display":"flex","content-container--flex-direction":"row","content-container--margin":"0 0.4em","content-container--border-radius":"2px","content-container--color":"white","time-display--line-height":"1.5","time-display--letter-spacing":"normal","time-display--font-size":"16px","time-display--font-weight":"600","interaction-link--color":"white","interaction-link--text-decoration":"none","interaction-link--pointer-events":"auto","interaction-link--font-size":"16px","interaction-link--font-weight":"600","interaction-link--line-height":"1.5","interaction-link--text-decoration--hover":"underline","interaction-spacer--height":"100%","interaction-spacer--width":"2px","interaction-spacer--margin-inline-start":"0.5em","interaction-spacer--margin-inline-end":"0.5em","interaction-spacer--background-color":"rgba(255, 255, 255, 0.2)",responsive:{extraSmall:{"container__controls-open--margin-bottom":"105px"}}},wA.styles=[_A],SA([(0,p.n)({type:Number})],wA.prototype,"tabIndex",2),SA([v()],wA.prototype,"disableLiveDaiUI",2),SA([Vy("a")],wA.prototype,"disconnectedCallback",1),SA([By("a")],wA.prototype,"updated",1),wA=SA([p_,L_({target:t=>t.shadowRoot.querySelector(".ad-badge-overlay__content__interaction--container"),scope:t=>t?.container})],wA);const AA=Wb("\t\n\t.buffering-overlay--container {\n\t\tdisplay: var(--buffering-overlay--container-display);\n\t\talign-items: var(--buffering-overlay--container-align-items);\n\t\tjustify-content: var(--buffering-overlay--container-justify-content);\n\t\tposition: absolute;\n\t\tinset-block: var(--buffering-overlay--container-inset-block);\n\t\tinset-inline: var(--buffering-overlay--container-inset-inline);\n\t\twidth: var(--buffering-overlay--container-width);\n\t\theight: var(--buffering-overlay--container-height);\n\t\tpointer-events: none;\n\t}\n\n\t.buffering-overlay--track {\n\t\tdisplay: var(--track--display);\n\t\twidth: var(--track--width);\n\t\theight: var(--track--height);\n\t\tbackground-color: var(--track--background-color);\n\t\tborder-radius: var(--track--border-radius);\n\t\tflex-shrink: 0;\n\t}\n\t\n\t.buffering-overlay--loader {\n\t\tdisplay: var(--loader--display);\n\t\t-webkit-animation: var(--loader--webkit-animation);\n\t\tanimation: var(--loader--animation);\n\t\tbackground-image: var(--loader--background-image);\n\t\tbackground-position: var(--loader--background-position);\n\t\tbackground-repeat: var(--loader--background-repeat);\n\t\tbackground-size: var(--loader--background-size);\n\t\tborder: var(--loader--border);\n\t\tborder-radius: var(--loader--border-radius);\n\t\tborder-top-color: var(--loader--border-top-color);\n\t\tbackground-color: var(--loader--background-color);\n\t\ttransform-origin: var(--loader--transform-origin);\n\t\theight: var(--loader--height);\n\t\tleft: var(--loader--left);\n\t\tposition: var(--loader--position);\n\t\ttop: var(--loader--top);\n\t\twidth: var(--loader--width);\n\t}\n");Object.getOwnPropertyDescriptor;const IA={buffering:!1,seeking:!1,notready:!1},OA=t=>{const{playback:e}=t;
1839return{buffering:!!e?.buffering,seeking:!!e?.seeking,notready:!!e?.notready}};let RA=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,OA,IA)}render(){const{buffering:t,seeking:e,notready:n}=this.streamController.value;return t||e||n?p.x`
1840			<div class="buffering-overlay--container">
1841				<div class="buffering-overlay--track"></div>
1842				<div class="buffering-overlay--loader"></div>
1843			</div>
1844		`:p.E}};RA.tokens={"buffering-overlay--container-inset-block":"0","buffering-overlay--container-inset-inline":"0","buffering-overlay--container-width":"auto","buffering-overlay--container-height":"auto","buffering-overlay--container-align-items":"center","buffering-overlay--container-justify-content":"center","buffering-overlay--container-display":"flex","track--display":"none","track--height":"0","track--background-color":"transparent","track--border-radius":"0","track--width":"100%","loader--webkit-animation":"spin 2s linear infinite","loader--animation":"spin 2s linear infinite","loader--background-image":"none","loader--background-position":"center","loader--background-repeat":"no-repeat","loader--background-size":"contain","loader--border":"3px solid #f4f4f4","loader--border-radius":"50%","loader--border-top-color":"transparent","loader--background-color":"transparent","loader--transform-origin":"center","loader--display":"block","loader--height":"50px","loader--left":"calc(50% - 25px)","loader--position":"absolute","loader--top":"calc(50% - 25px)","loader--width":"50px",responsive:{}},RA.styles=[qb,AA],RA=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
1844)([p_],RA);var xA=(t=>(t.USER_ADVANCE="user-advance",t.AUTO_ADVANCE="auto-advance",t))(xA||{});const LA={"container--height":"87px","container--width":"97%","container--bottom":"14px","container--right":"10px","container--translate":"0","container--padding":"unset","container--column-gap":"0","container--row-gap":"0","container--background-color":"#000c","container--border-radius":"6px","container--transform":"translate(-50%)","container--left":"50%","container--z-index":"13","container--transition":"margin-bottom 0.250s ease-in-out","container__controls-open--margin-bottom":"80px","container__controls-open--transition":"none","container-original--background-color":"transparent","container--border-bottom-right-radius":"6px","container--border-bottom-left-radius":"6px","content--display":"flex","content--flex-direction":"column","content--padding-block":"8px","content--padding-inline":"8px","content--gap":"4px","content--width":"50%","content--align-items":"baseline","content--justify-content":"space-around","content-tile--width":"100%","content--min-width":"0","content-tile--border":"none","content-tile--display":"flex","content-tile--padding":"0px","content-tile--border-radius":"6px","content-tile--background":"transparent","content-tile--background-size":"cover","content-tile--aspect-ratio":"16 / 9","content-tile--background-position":"top","content-tile--background-repeat":"no-repeat","content-tile--justify-content":"center","content-tile--align-items":"center","content-tile--cursor":"pointer","live-indicator--display":"none","metadata--gap":"4px","metadata--width":"100%","main-title-font-family":"BentonSans-Regular, Helvetica, Verdana, Geneva, Tahoma, sans-serif","main-title--font-size":"13px","main-title--font-weight":"500","main-title--line-height":"16px","main-title--overflow":"hidden","main-title--display":"-webkit-box","main-title---webkit-box-orient":"vertical","main-title--line-clamp":"1","main-subtitle-title-font-family":"BentonSans-Regular, Helvetica, Verdana, Geneva, Tahoma, sans-serif","main-subtitle--font-size":"10px","main-subtitle--font-weight":"500","main-subtitle--line-height":"11px","main-subtitle--text-transform":"uppercase","main-subtitle--text-overflow":"ellipsis","main-subtitle--overflow":"hidden","main-subtitle--display":"-webkit-box","main-subtitle---webkit-box-orient":"vertical","main-subtitle--line-clamp":"1","play-button-svg--height":"48px","play-button-svg--width":"auto","play-button-svg--background-color":"rgba(0, 0, 0, 0.80)","play-button-svg--border-radius":"9999px","play-button-svg-before--mask-image":`url("${Aw}")`,"play-button-svg-before--mask-position":"center","play-button-svg-before--position":"absolute","play-button-svg-before--background-color":"#fff","play-button-svg-before--width":"48px","play-button-svg-before--height":"48px","progress-ring--height":"48px","progress-ring--width":"48px","progress-ring--overflow":"unset","progress-ring__circle--transform-origin":"50% 50%","progress-ring__circle--stroke":"white","cta-container--display":"flex","cta-container--gap":"8px","cta-container--flex-direction":"row","cta-container--justify-content":"flex-start","cta-container--align-items":"center","container--flex-wrap":"unset","cta--display":"flex","cta--width":"100px","cta--height":"24px","cta--padding":"4px 8px","cta--justify-content":"center","cta--align-items":"center","cta--border-radius":"9999px","cta--font-family":"BentonSans-Regular, Helvetica, Verdana, Geneva, Tahoma, sans-serif","cta--font-size":"13px","cta--font-weight":"500","cta--line-height":"16px","cta--color":"#fff","cta--border":"2px solid #fff","cta--cursor":"pointer","cta-primary--background":"transparent","cta-primary--color":"#fff","cta-secondary--background":"#fff","cta-secondary--color":"#000","bottom-timer--height":"4px","bottom-timer--background-color":"rgba(255, 255, 255, 0.3)","bottom-timer--color":"#fff","countdown-text--font-family":"BentonSans-Regular, Helvetica, Verdana, Geneva, Tahoma, sans-serif","countdown-text--font-size":"12px","countdown-text--font-weight":"500","countdown-text--line-height":"14px","countdown-text--color":"#8d8e90","countdown-text--margin-block-end":"4px","close-button--position":"absolute","close-button--top":"8px","close-button--right":"8px","close-button--width":"24px","close-button--height":"24px","close-button--background-color":"rgba(0, 0, 0, 0.5)","close-button--border":"none","close-button--mask-image":"none","close-button--border-radius":"50%","close-button--display":"flex","close-button--justify-content":"center","close-button--align-items":"center","close-button--cursor":"pointer","close-button--z-index":"1","close-button--pa
1844dding":"0","close-icon--color":"white","close-icon--font-size":"18px","close-icon--line-height":"1",responsive:{tiny:{"container--width":"360px","container--bottom":"unset"},extraSmall:{"container--width":"440px","container--height":"104px","live-indicator--display":"flex","live-indicator--position":"absolute","live-indicator--align-items":"center","live-indicator--padding-inline-start":"4px","live-indicator--gap":"3px","live-indicator--width":"42px","live-indicator--height":"14px","live-indicator--background-color":"rgba(255, 255, 255, 0.8)","live-indicator--border-radius":"7px","live-indicator--bottom":"8px","live-indicator--left":"8px","live-indicator--color":"#151617","live-indicator--font-size":"10px","live-indicator--font-style":"normal","live-indicator--font-weight":"500","live-indicator--line-height":"12px","live-indicator--letter-spacing":"1px","live-indicator--text-transform":"uppercase","live-indicator-styled-radio--mask-image":`url("${kT}")`,"live-indicator-styled-radio--mask-repeat":"no-repeat","live-indicator-styled-radio--width":"7px","live-indicator-styled-radio--height":"6px","live-indicator-styled-radio--background-color":"rgba(221, 0, 0, 1)","content--padding-block":"8px","content--padding-inline":"16px","content--gap":"8px","main-title--line-clamp":"2","main-title--font-size":"15px","main-title--line-height":"20px"},medium:{"container--bottom":"30px","container__controls-open--margin-bottom":"63px","container--transform":"unset","container--left":"unset"},large:{"container__controls-open--margin-bottom":"63px","container--width":"628px","container--height":"149px","content--gap":"16px","content--padding-block":"16px","content--padding-inline":"24px","live-indicator--padding-inline-start":"6px","live-indicator--gap":"4px","live-indicator--width":"61px","live-indicator--height":"20px","live-indicator-styled-radio--width":"10px","live-indicator-styled-radio--height":"10px","main-title--font-size":"20px","main-title--font-weight":"900","main-title--line-height":"22px","metadata--gap":"8px","main-subtitle--font-size":"13px","main-subtitle--line-height":"16px"}}},kA=Wb('\n\t@keyframes countdown {\n\t\tfrom {\n\t\t\tstroke-dashoffset: var(--circumference);\n\t\t}\n\t\tto {\n\t\t\tstroke-dashoffset: 0;\n\t\t}\n\t}\n\n\t@keyframes bottom-timer-countdown {\n\t\tfrom {\n\t\t\ttransform: scaleX(0);\n\t\t}\n\t\tto {\n\t\t\ttransform: scaleX(1);\n\t\t}\n\t}\n\n\t.end-card-overlay__container {\n\t\tposition: absolute;\n\t\tdirection: inherit;\n\t\ttranslate: var(--container--translate);\n\t\tblock-size: var(--container--height);\n\t\tinline-size: var(--container--width);\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tbox-sizing: border-box;\n\t\tbackground-color: var(--container--background-color);\n\t\tborder-radius: var(--container--border-radius);\n\t\tz-index: var(--container--z-index);\n\t\tpadding: var(--container--padding);\n\t\tinset-block-start: var(\n\t\t\t--end-card-overlay__container--inset-block-start,\n\t\t\tauto\n\t\t);\n\t\tinset-inline-end: var(\n\t\t\t--end-card-overlay__container--inset-inline-end,\n\t\t\tvar(--container--right)\n\t\t);\n\t\tinset-block-end: var(\n\t\t\t--end-card-overlay__container--inset-block-end,\n\t\t\tvar(--container--bottom)\n\t\t);\n\t\tinset-inline-start: var(\n\t\t\t--end-card-overlay__container--inset-inline-start,\n\t\t\tvar(--container--left)\n\t\t);\n\t\ttransform: var(--container--transform);\n\t\ttransition: var(--container--transition);\n\t\tflex-wrap: var(--container--flex-wrap);\n\t\tmax-inline-size: var(--container--max-width);\n\t\tcolumn-gap: var(--container--column-gap, 0);\n\t\trow-gap: var(--container--row-gap, 0);\n\t}\n\n\t.end-card-overlay__container.controls-open {\n\t\tmargin-block-end: var(--container__controls-open--margin-bottom);\n\t\ttransition: var(--container__controls-open--transition);\n\t}\n\n\t/* Dim the whole end card while the timeline scrub preview is showing so the\n\t * preview reads clearly on top of it. */\n\t.end-card-overlay__container.scrub-preview-active {\n\t\topacity: 0.3;\n\t}\n\n\t.end-card-overlay__header {\n\t\tdisplay: var(--header--display);\n\t\tinline-size: var(--header--width);\n\t\tjustify-content: var(--header--justify-content);\n\t\tflex-basis: var(--header--flex-basis);\n\t\tposition: var(--header--position);\n\t\tinset-block-start: var(--header--top);\n\t\tfont-feature-settings: var(--header--font-feature-settings);\n\t\tfont-family: var(--header--font-family);\n\t\tfont-size: var(--header--font-size);\n\t\tfont-weight: var(--header--font-weight);\n\t\tline-height: var(--header--line-height);\n\t\tletter-spacing: var(--header--letter-spacing);\n\t\ttext-transform: var(--header--text-transform);\n\t\tcolor: var(--header--color);\n\t}\n\n\t.end-card-overlay__container.bottom-timer {\n\t\tborder-end-end-radius: var(--container--border-bottom-right-radius);\n\t\tborder-end-start-radius: var(--container--border-bottom-left-radius);\n\t}\n\n\t.end-card-overlay__container.original {\n\t\tbackground-color: var(--container-original--background-color);\n\t}\n\n\t.end-card-overlay__container.takeover-visible {\n\t\tvisibility: hidden;\n\t}\n\n\t.end-card-overlay__content {\n\t\tdisplay: var(--content--display);\n\t\tflex-direction: var(--content--flex-direction);\n\t\tflex-grow: var(--content--flex-grow);\n\t\tpadding-block: var(--content--padding-block);\n\t\tpadding-inline: var(--content--padding-inline);\n\t\tgap: var(--content--gap);\n\t\talign-items: var(--content--align-items);\n\t\tjustify-content: var(--content--justify-content);\n\t\tinline-size: var(--content--width);\n\t\tmin-inline-size: var(--content--min-width);\n\t}\n\n\t.end-card-overlay__content-tile {\n\t\tposition: relative;\n\t\tpadding: var(--content-tile--padding);\n\t\tborder: var(--content-tile--border);\n\t\taspect-ratio: var(--content-tile--aspect-ratio);\n\t\tdisplay: var(--content-tile--display);\n\t\tborder-radius: var(--content-tile--border-radius);\n\t\tbackground: var(--content-tile--background);\n\t\tbackground-size: var(--content-tile--background-size);\n\t\tbackground-position: var(--content-tile--background-position);\n\t\tbackground-repeat: var(--content-tile--background-repeat);\n\t\tjustify-content: var(--content-tile--justify-content);\n\t\talign-items: var(--content-tile--align-items);\n\t\tcursor: var(--content-tile--cursor);\n\t\tmax-block-size: var(--container--height);\n\t\tinline-size: var(--content-tile--width);\n\t\tblock-size: var(--content-tile--height);\n\t}\n\n\t.end-card-overlay__content-tile::before {\n\t\tcontent: "";\n\t\tdisplay: block;\n\t\tposition: var(--play-button-svg-before--position);\n\t\tinset: 0;\n\t\tmargin: auto;\n\t\tmask-image: var(--play-button-svg-before--mask-image);\n\t\t-webkit-mask-image: var(--play-button-svg-before--mask-image, unset);\n\t\tmask-position: var(--play-button-svg-before--mask-position);\n\t\t-webkit-mask-position: var(--play-button-svg-before--mask-position, center);\n\t\tmask-repeat: var(--play-button-svg-before--mask-repeat, no-repeat);\n\t\t-webkit-mask-repeat: var(--play-button-svg-before--mask-repeat, no-repeat);\n\t\tmask-size: contain;\n\t\t-webkit-mask-size: contain;\n\t\tinline-size: var(--play-button-svg-before--width);\n\t\tblock-size: var(--play-button-svg-before--height);\n\t\tbackground: var(--play-button-svg-before--background-color);\n\t}\n\n\t.end-card-overlay__live-indicator {\n\t\tdisplay: var(--live-indicator--display);\n\t\tposition: var(--live-indicator--position);\n\t\talign-items: var(--live-indicator--align-items);\n\t\tjustify-content: var(--live-indicator--justify-content);\n\t\tpadding-inline-start: var(--live-indicator--padding-inline-start);\n\t\tgap: var(--live-indicator--gap);\n\t\tinline-size: var(--live-indicator--width);\n\t\tblock-size: var(--live-indicator--height);\n\t\tbackground-color: var(--live-indicator--background-color);\n\t\tborder-radius: var(--live-indicator--border-radius);\n\t\tinset-block-end: var(--live-indicator--bottom);\n\t\tinset-inline-start: var(--live-indicator--left);\n\t\tcolor: var(--live-indicator--color);\n\t\tfont-size: var(--live-indicator--font-size);\n\t\tfont-style: var(--live-indicator--font-style);\n\t\tfont-weight: var(--live-indicator--font-weight);\n\t\tline-height: var(--live-indicator--line-height);\n\t\tletter-spacing: var(--live-indicator--letter-spacing);\n\t\ttext-transform: var(--live-indicator--text-transform);\n\t}\n\n\t.live-indicator-dot {\n\t\tbackground-color: var(--live-indicator-styled-radio--background-color);\n\t\tmask-image: var(--live-indicator-styled-radio--mask-image);\n\t\t-webkit-mask-image: var(--live-indicator-styled-radio--mask-image);\n\t\tmask-repeat: var(--live-indicator-styled-radio--mask-repeat);\n\t\t-webkit-mask-repeat: var(--live-indicator-styled-radio--mask-repeat);\n\t\tmask-size: var(--live-indicator-styled-radio--width)\n\t\t\tvar(--live-indicator-styled-radio--height);\n\t\t-webkit-mask-size: var(--live-indicator-styled-radio--width)\n\t\t\tvar(--live-indicator-styled-radio--height);\n\t\tinline-size: var(--live-indicator-styled-radio--width);\n\t\tblock-size: var(--live-indicator-styled-radio--height);\n\t}\n\n\t.end-card-overlay__play-icon {\n\t\tbackground-color: var(--play-button-svg--background-color);\n\t\tblock-size: var(--play-button-svg--height);\n\t\tinline-size: var(--play-button-svg--width);\n\t\tborder-radius: var(--play-button-svg--border-radius);\n\t}\n\n\t.progress-ring {\n\t\tblock-size: var(--progress-ring--height);\n\t\tinline-size: var(--progress-ring--width);\n\t\tinset: 0px;\n\t\toverflow: var(--progress-ring--overflow);\n\t}\n\n\t.progress-ring__circle {\n\t\ttransform: rotate(-90deg);\n\t\ttransform-origin: var(--progress-ring__circle--transform-origin);\n\t\tanimation: var(--progress-ring__circle--duration) linear countdown forwards;\n\t\tanimation-play-state: var(--progress-ring__circle--animation-play-state);\n\t\tstroke: var(--progress-ring__circle--stroke);\n\t\tstroke-width: var(--progress-ring__circle--stroke-width);\n\t\tstroke-linecap: var(--progress-ring__circle--stroke-linecap);\n\t}\n\n\t.end-card-overlay__metadata {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: var(--metadata--gap);\n\t\tinline-size: var(--metadata--width);\n\t}\n\n\t.end-card-overlay__countdown-text {\n\t\tcolor: var(--countdown-text--color);\n\t\tmargin-block: 0;\n\t\tmargin-inline: 0;\n\t\tmargin-block-end: var(--countdown-text--margin-block-end);\n\t\tfont-family: var(--countdown-text--font-family);\n\t\tfont-size: var(--countdown-text--font-size);\n\t\tfont-weight: var(--countdown-text--font-weight);\n\t\tline-height: var(--countdown-text--line-height);\n\t}\n\n\t.end-card-overlay__main-title {\n\t\tdisplay: var(--main-title--display);\n\t\tcolor: var(--main-title--font-color, #fff);\n\t\tmargin: 0px;\n\t\tfont-family: var(--main-title-font-family);\n\t\tfont-size: var(--main-title--font-size);\n\t\tfont-weight: var(--main-title--font-weight);\n\t\tline-height: var(--main-title--line-height);\n\t\ttext-overflow: var(--main-title--text-overflow);\n\t\toverflow: var(--main-title--overflow);\n\t\t-webkit-line-clamp: var(--main-title--line-clamp);\n\t\t-webkit-box-orient: var(--main-title---webkit-box-orient);\n\t\tline-clamp: var(--main-title--line-clamp);\n\t}\n\n\t.end-card-overlay__main-subtitle {\n\t\tcolor: var(--main-subtitle--font-color, #8d8e90);\n\t\tmargin: 0px;\n\t\tfont-family: var(--main-subtitle-font-family);\n\t\tfont-size: var(--main-subtitle--font-size);\n\t\tfont-weight: var(--main-subtitle--font-weight);\n\t\tline-height: var(--main-subtitle--line-height);\n\t\ttext-transform: var(--main-subtitle--text-transform);\n\t\ttext-overflow: var(--main-subtitle--text-overflow);\n\t\toverflow: var(--main-subtitle--overflow);\n\t\tdisplay: var(--main-subtitle--display);\n\t\t-webkit-line-clamp: var(--main-subtitle--line-clamp);\n\t\t-webkit-box-orient: var(--main-subtitle---webkit-box-orient);\n\t\tline-clamp: var(--main-subtitle--line-clamp);\n\t}\n\n\t.end-card-overlay__cta-container {\n\t\tdisplay: var(--cta-container--display);\n\t\tgap: var(--cta-container--gap);\n\t\tflex-direction: var(--cta-container--flex-direction);\n\t\tjustify-content: var(--cta-container--justify-content);\n\t\talign-items: var(--cta-container--align-items);\n\t\t/* Keep the CTA group intrinsic-size and anchor it to logical start.\n\t\t   In LTR this is left-aligned; in RTL it moves to the right without extra spacing hacks. */\n\t\talign-self: flex-start;\n\t}\n\n\t.end-card-overlay__cta {\n\t\tdisplay: var(--cta--display);\n\t\tinline-size: var(--cta--width);\n\t\tblock-size: var(--cta--height);\n\t\tpadding: var(--cta--padding);\n\t\tjustify-content: var(--cta--justify-content);\n\t\talign-items: var(--cta--align-items);\n\t\tborder-radius: var(--cta--border-radius);\n\t\tfont-family: var(--cta--font-family);\n\t\tfont-size: var(--cta--font-size);\n\t\tfont-weight: var(--cta--font-weight);\n\t\tline-height: var(--cta--line-height);\n\t\tborder: var(--cta--border);\n\t\tcursor: var(--cta--cursor);\n\t}\n\n\t.end-card-overlay__cta-primary {\n\t\tbackground: var(--cta-primary--background);\n\t\tcolor: var(--cta-primary--color);\n\t}\n\n\t.end-card-overlay__cta-secondary {\n\t\tbackground: var(--cta-secondary--background);\n\t\tcolor: var(--cta-secondary--color);\n\t}\n\n\t.end-card-overlay__bottom-timer-container {\n\t\tposition: absolute;\n\t\tinset-block-end: -4px;\n\t\tinset-inline-start: 0;\n\t\tinline-size: 100%;\n\t\tblock-size: var(--bottom-timer--height);\n\t\tbackground-color: var(--bottom-timer--background-color);\n\t\toverflow: hidden;\n\t}\n\n\t.end-card-overlay__bottom-timer {\n\t\tblock-size: 100%;\n\t\tinline-size: 100%;\n\t\tbackground-color: var(--bottom-timer--color);\n\t\ttransform-origin: inline-start;\n\t\tanimation: var(--bottom-timer--duration) linear bottom-timer-countdown\n\t\t\tforwards;\n\t\tanimation-play-state: var(--bottom-timer--animation-play-state);\n\t}\n\n\t.end-card-overlay__close-button {\n\t\tposition: var(--close-button--position);\n\t\tinset-block-start: var(--close-button--top);\n\t\tinset-inline-end: var(--close-button--right);\n\t\tinline-size: var(--close-button--width);\n\t\tblock-size: var(--close-button--height);\n\t\tbackground-color: var(--close-button--background-color);\n\t\tborder: none;\n\t\tappearance: none;\n\t\tmask-image: var(--close-button--mask-image);\n\t\tmask-repeat: no-repeat;\n\t\tmask-size: contain;\n\t\tcursor: pointer;\n\t}\n\n\t.end-card-overlay__close-icon {\n\t\tcolor: var(--close-icon--color);\n\t\tfont-size: var(--close-icon--font-size);\n\t\tline-height: var(--close-icon--line-height);\n\t}\n\n\t:host([dir="rtl"]) .end-card-overlay__header,\n\t:host([dir="rtl"]) .end-card-overlay__main-title,\n\t:host([dir="rtl"]) .end-card-overlay__main-subtitle,\n\t:host([dir="rtl"]) .end-card-overlay__cta,\n\t:host(:lang(th)) .end-card-overlay__header,\n\t:host(:lang(th)) .end-card-overlay__main-title,\n\t:host(:lang(th)) .end-card-overlay__main-subtitle,\n\t:host(:lang(th)) .end-card-overlay__cta {\n\t\tfont-family: inherit;\n\t}\n\n\t:host(:lang(ar)) .end-card-overlay__header {\n\t\tletter-spacing: normal;\n\t}\n\n\t:host(:lang(ar)) .end-card-overlay__main-title {\n\t\tcolor: #dbdcde;\n\t}\n');var PA=Object.defineProperty,DA=Object.getOwnPropertyDescriptor,NA=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?DA(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&PA(e,n,o),o};
1844const MA=5e5,UA={continuousPlayVisible:!1,countdownMs:MA,autoplayEnabled:!0,id:void 0,image:"",subtitle:"",title:"",variant:jh.EPISODIC,isPaused:!1,ratingText:"",ratingImageUrl:"",ratingAltText:"",durationMs:0,isUiLegacyControlsOverlayVisible:!1,audioSubtitleDrawerOpen:!1,scrubbing:!1},BA=t=>{const{continuousPlay:e,playback:n,timeline:i,casting:r,isUiLegacyControlsOverlayVisible:o,audioSubtitleDrawerOpen:a}=t??{},{endCard:s}=e??{},{ux:l,countdownMs:c,autoplayEnabled:d}=s??{};return{continuousPlayVisible:!r?.isCasting&&(l?.visible??!1),countdownMs:c??MA,autoplayEnabled:d??!0,id:l?.id,image:l?.image??"",subtitle:l?.subtitle??"",title:l?.title??"",variant:l?.variant??jh.EPISODIC,isPaused:n?.isPaused??!1,ratingText:l?.ratingText??"",ratingImageUrl:l?.ratingImageUrl??"",ratingAltText:l?.ratingAltText??"",durationMs:l?.durationMs??0,isUiLegacyControlsOverlayVisible:o??!1,audioSubtitleDrawerOpen:a??!1,scrubbing:i?.scrubResult?.scrubbing??!1}};let VA=class extends pt{constructor(){super(),this.variant=jh.EPISODIC,this.isEndCardActive=!1,this.timeoutDuration=MA,this.bottomTimer=!1,this.showHeader=!1,this.showRatingAndDuration=!1,this.streamController=new G_(this,BA,UA),this.wasEndCardActive=!1,this.prevTakeoverVisible=!1,this.pendingShowAfterDrawerClose=!1,this.timeoutStarted=!1,this.upNextImage="",this.upNextSubtitle="",this.upNextTitle="",this.upNextCountdownMs=MA,this.upNextAutoplayEnabled=!0,this.upNextRatingText="",this.upNextRatingImageUrl="",this.upNextRatingAltText="",this.upNextDurationMs=0,this.resolvedImage={id:void 0,url:void 0},this.handlePrimaryButtonClick=t=>{t.preventDefault(),this.primaryAction(xA.USER_ADVANCE)},this.handleSecondaryButtonClick=t=>{t.preventDefault(),this.secondaryAction()},this.addEventListener("timeout-complete",(()=>{this.primaryAction(xA.AUTO_ADVANCE),this.isEndCardActive=!1}))}resolveImageUrl(t){if(t)return/^https?:\/\//i.test(t)||t.startsWith("data:")?t:this.resolvedImage.id===t?this.resolvedImage.url:void(this.pendingImageUrlId!==t&&(this.pendingImageUrlId=t,this.commandBus?.dispatchCommand(Ql.GET_IMAGE_URL,{imageId:t,resolve:e=>{this.pendingImageUrlId=void 0,this.resolvedImage={id:t,url:e||""},this.requestUpdate()}})))}formatCountdownSeconds(){const t=Math.floor(this.remainingTime/1e3);return`:${t<10?`0${t}`:t}`}getTimeoutDismissals(){return[this.streamController.value.isPaused]}primaryAction(t=xA.AUTO_ADVANCE){this.clearTimeout(),this.commandBus?.dispatchCommand(Ql.CONTINUOUS_PLAY_NEXT,{label:"End card overlay",id:this.upNextId,title:this.upNextTitle,startType:t}),this.commandBus?.dispatchCommand($l.CONTROLS.PLAY_NEXT.CLICKED,{nextContentId:this.upNextId,autoplay:t===xA.AUTO_ADVANCE,analyticsTrackingLabel:"up_next_lite"}),this.isEndCardActive=!1,this.requestUpdate()}secondaryAction(){this.clearTimeout(),this.commandBus?.dispatchCommand(Ql.CONTINUOUS_PLAY_HIDE,{label:"End card overlay"}),this.isEndCardActive=!1,this.requestUpdate()}renderHeader(){return p.x`${p.E}`}handleContainerClick(t){}renderRatingAndDuration(){return p.x`${p.E}`}updated(){this.upNextAutoplayEnabled&&!this.remainingTime&&(this.isEndCardActive=!1)}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({controlsOverlay:t.overlayState.areControlsVisible||(t.overlayState.overlays[Of]?.isOpen??!1),takeoverVisible:t.takeoverState.isOpen})))}getTakeoverVisible(){return this.localState?.takeoverState?.isOpen??!1}handleStateTransitions(t){const e=this.wasEndCardActive,n=this.prevTakeoverVisible,i=this.getTakeoverVisible(),r=t.audioSubtitleDrawerOpen;this.wasEndCardActive=t.continuousPlayVisible,this.prevTakeoverVisible=i;const o=t.continuousPlayVisible&&!e,a=!t.continuousPlayVisible&&e,s=t.continuousPlayVisible&&i&&!n,l=t.continuousPlayVisible&&(t.isPaused||i),c=t.continuousPlayVisible&&!t.isPaused&&!i;if(a&&(this.pendingShowAfterDrawerClose=!1),!o||!r)return this.pendingShowAfterDrawerClose&&t.continuousPlayVisible&&!r?(this.pendingShowAfterDrawerClose=!1,void this.onEndCardShow(t)):void(this.pendingShowAfterDrawerClose&&t.continuousPlayVisible||(o?this.onEndCardShow(t):a?this.onEndCardHide():s||l?this.pauseTimeout():c&&this.resumeTimeout()));this.pendingShowAfterDrawerClose=!0}onEndCardShow(t){this.isEndCardActive=!0,this.dispatchOverlayEvent(kf);const e={label:"End card overlay",id:t.id,title:t.title,image:t.image,subtitle:t.subtitle,variant:t.variant,ratingText:t.ratingText,ratingImageUrl:t.ratingImageUrl,ratingAltText:t.ratingAltText,durationMs:t.durationMs};
1844this.commandBus?.dispatchCommand(Ql.CONTINUOUS_PLAY_SHOW,e),this.commandBus?.dispatchCommand($l.END_CARD.SHOW,e),this.timeoutDuration=t.countdownMs,t.autoplayEnabled&&this.startTimeout(this.timeoutDuration)}onEndCardHide(){this.isEndCardActive=!1,this.dispatchOverlayEvent(Pf),this.clearTimeout()}dispatchOverlayEvent(t){this.commandBus?.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:"endCard",type:t,localState:this.localState})}disconnectedCallback(){super.disconnectedCallback(),this.wasEndCardActive&&(this.dispatchOverlayEvent(Pf),this.wasEndCardActive=!1),this.pendingShowAfterDrawerClose=!1,this.clearTimeout?.(),this.unsubscribeFromLocalState?.()}renderBottomTimer(t,e){const n={"--bottom-timer--duration":`${this.upNextCountdownMs}ms`,"--bottom-timer--animation-play-state":this.isTimeoutPaused?"paused":"running"};return p.x`
1845			<div
1846				class="end-card-overlay__container ${My(t)}"
1847				data-pointer-exclude
1848			>
1849				${Q_(this.showHeader,(()=>p.x`
1850						<div class="end-card-overlay__header">${this.renderHeader()}</div>
1851					`),(()=>p.E))}
1852				<button
1853					type="button"
1854					class="end-card-overlay__close-button"
1855					@click=${t=>this.handleSecondaryButtonClick(t)}
1856					aria-label="${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.CTA_OK,"Dismiss")}"
1857				></button>
1858				<button
1859					type="button"
1860					class="end-card-overlay__content-tile"
1861					style=${$y(this.upNextImage?{backgroundImage:`url(${this.upNextImage})`}:{})}
1862					@click=${t=>this.handlePrimaryButtonClick(t)}
1863				>
1864					${Q_(this.variant===jh.LIVE,(()=>p.x` <div class="end-card-overlay__live-indicator">
1865								<span class="live-indicator-dot"></span>
1866								${e}
1867							</div>`),(()=>p.E))}
1868				</button>
1869				<div class="end-card-overlay__content">
1870					<div class="end-card-overlay__metadata">
1871						<p class="end-card-overlay__countdown-text">
1872							${this.dictionary.translate(Xl.MEDIA.OVERLAYS.UP_NEXT,"Up next in")}
1873							${this.formatCountdownSeconds()}
1874						</p>
1875						<p class="end-card-overlay__main-title locale-body-copy">
1876							${this.upNextTitle}
1877						</p>
1878						${Q_(this.upNextSubtitle,(()=>p.x`
1879								<p class="end-card-overlay__main-subtitle locale-h4-heavy">
1880									${this.upNextSubtitle}
1881								</p>
1882							`),(()=>p.E))}
1883						${Q_(this.showRatingAndDuration,(()=>p.x`
1884								<div class="end-card-overlay__rating-duration">
1885									${this.renderRatingAndDuration()}
1886								</div>
1887							`),(()=>p.E))}
1888					</div>
1889				</div>
1890				${Q_(this.upNextAutoplayEnabled,(()=>p.x`
1891						<div
1892							class="end-card-overlay__bottom-timer-container"
1893							style=${$y(n)}
1894						>
1895							<div class="end-card-overlay__bottom-timer"></div>
1896						</div>
1897					`),(()=>p.E))}
1898			</div>
1899		`}renderDefault(t,e,n,i,r){const o=2*n*Math.PI,a={"--circumference":`${o}px`,strokeDasharray:`${o} ${o}`,"--progress-ring__circle--duration":`${this.upNextCountdownMs}ms`,"--progress-ring__circle--animation-play-state":this.isTimeoutPaused?"paused":"running"};return p.x`
1900			<div
1901				class="end-card-overlay__container ${My(t)}"
1902				data-pointer-exclude
1903				@click=${t=>this.handleContainerClick(t)}
1904			>
1905				${Q_(this.showHeader,(()=>p.x`
1906						<div class="end-card-overlay__header">${this.renderHeader()}</div>
1907					`),(()=>p.E))}
1908				<button
1909					type="button"
1910					class="end-card-overlay__content-tile"
1911					style=${$y(this.upNextImage?{backgroundImage:`url(${this.upNextImage})`}:{})}
1912					@click=${t=>this.handlePrimaryButtonClick(t)}
1913				>
1914					${Q_(this.variant===jh.LIVE,(()=>p.x` <div class="end-card-overlay__live-indicator">
1915								<span class="live-indicator-dot"></span>
1916								${e}
1917							</div>`),(()=>p.E))}
1918					${Q_(this.upNextAutoplayEnabled,(()=>p.x`
1919							<div class="end-card-overlay__play-icon">
1920								<svg class="progress-ring">
1921									<circle
1922										class="progress-ring__circle"
1923										stroke-width="2"
1924										stroke="white"
1925										fill="transparent"
1926										r=${n}
1927										cx="24"
1928										cy="24"
1929										style=${$y(a)}
1930									/>
1931								</svg>
1932							</div>
1933						`),(()=>p.E))}
1934				</button>
1935				<div class="end-card-overlay__content">
1936					<div class="end-card-overlay__metadata">
1937						<p class="end-card-overlay__main-title locale-body-copy">
1938							${this.upNextTitle}
1939						</p>
1940						${Q_(this.upNextSubtitle,(()=>p.x`
1941								<p class="end-card-overlay__main-subtitle locale-h4-heavy">
1942									${this.upNextSubtitle}
1943								</p>
1944							`),(()=>p.E))}
1945						${Q_(this.showRatingAndDuration,(()=>p.x`
1946								<div class="end-card-overlay__rating-duration">
1947									${this.renderRatingAndDuration()}
1948								</div>
1949							`),(()=>p.E))}
1950					</div>
1951					<div class="end-card-overlay__cta-container">
1952						${Q_(this.variant!==jh.LIVE,(()=>Hy(i)),(()=>p.E))}
1953						${Q_(this.variant===jh.ORIGINAL,(()=>Hy(r)),(()=>p.E))}
1954					</div>
1955				</div>
1956			</div>
1957		`}render(){const t=this.streamController.value;this.handleStateTransitions(t),this.upNextCountdownMs=t.countdownMs,this.upNextAutoplayEnabled=t.autoplayEnabled,this.upNextId=t.id,this.upNextImage=this.resolveImageUrl(t.image)??"",this.upNextSubtitle=t.subtitle,this.upNextTitle=t.title,this.upNextRatingText=t.ratingText,this.upNextRatingImageUrl=t.ratingImageUrl,this.upNextRatingAltText=t.ratingAltText,this.upNextDurationMs=t.durationMs,this.variant=t.variant;const e=this.getTakeoverVisible(),n=t.isUiLegacyControlsOverlayVisible||(this.localState?.overlayState?.areControlsVisible??!1)||(this.localState?.overlayState?.overlays?.[Of]?.isOpen??!1),i=this.dictionary.translate(Xl.MEDIA.OVERLAYS.CTA_OK,"Dismiss"),r=this.dictionary.translate(Xl.MEDIA.OVERLAYS.PLAY_NEXT_EPISODE,"Play Now"),o=this.dictionary.translate(Xl.MEDIA.PLAYER.LIVE_LABEL,"Live"),a={onClick:t=>this.handleSecondaryButtonClick(t),ariaLabel:this.dictionary?.translate(Xl.MEDIA.OVERLAYS.CTA_OK,"Dismiss"),className:"end-card-overlay__cta end-card-overlay__cta-primary",content:p.x`${i}`},s={onClick:t=>this.handlePrimaryButtonClick(t),ariaLabel:this.dictionary?.translate(Xl.MEDIA.CONTROLS.PLAY_NEXT_EPISODE,"Play Next"),className:"end-card-overlay__cta end-card-overlay__cta-secondary",content:p.x`${r}`},l={original:this.variant===jh.ORIGINAL,"vod-episode":this.variant===jh.EPISODIC,"vod-clip":this.variant===jh.CLIPS,live:this.variant===jh.LIVE,"takeover-visible":e,"bottom-timer":this.bottomTimer,"controls-open":n,"scrub-preview-active":t.scrubbing};return this.isEndCardActive?this.bottomTimer?this.renderBottomTimer(l,o):this.renderDefault(l,o,21,a,s):p.E}};VA.tokens=LA,VA.styles=[kA],NA([(0,p.n)({type:String,reflect:!0,useDefault:!0})],VA.prototype,"variant",2),NA([(0,p.n)({type:Boolean})],VA.prototype,"isEndCardActive",2),NA([(0,p.n)({type:Number})],VA.prototype,"timeoutDuration",2),NA([(0,p.n)({type:Boolean})],VA.prototype,"bottomTimer",2),NA([(0,p.n)({type:Boolean})],VA.prototype,"showHeader",2),NA([(0,p.n)({type:Boolean})],VA.prototype,"showRatingAndDuration",2),VA=NA([p_,a_({updateOnRemainingTime:!0}),L_({target:t=>t.shadowRoot?.querySelectorAll("[data-pointer-exclude]"),scope:t=>t?.container})],VA);class FA{get visible(){const t=this.host.localState?.startupOverlays?.title;return t?.isVisible??!1}get state(){return{visible:this.visible}}constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}}const zA=Wb("\n\t:host {\n\t\tdisplay: block;\n\t\tpointer-events: none;\n\t}\n\n\t.title-overlay-container {\n\t\tposition: absolute;\n\t\tinset-inline-start: var(--title-overlay-container--inline-start);\n\t\tinset-block-start: var(--title-overlay-container--block-start);\n\t\tz-index: 1;\n\t\tmax-width: var(--max-width, 800px);\n\t}\n\n\t.title-overlay-container.is-live {\n\t\tmax-width: var(--live-max-width, 800px);\n\t}\n");Object.getOwnPropertyDescriptor;const $A={streamType:null,isLive:!1},HA=t=>{const{playback:e,streamDetails:n}=t,{isLive:i}=n??{};return{streamType:e?.streamType??null,isLive:i??!1}};let GA=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,HA,$A),this.controller=new FA(this)}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({titleOverlayOpen:t.startupOverlays?.title?.isVisible??!1})));const{Controller:t}=n_(this);t&&(this.controller=new t(this)),this.controller.hostConnected()}disconnectedCallback(){super.disconnectedCallback(),this.controller.hostDisconnected(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}get isHiddenByStreamType(){const{streamType:t}=this.streamController.value;return t===sc.LIVE||t===sc.EVENT_REPLAY}render(){const{visible:t}=this.controller.state,{isLive:e}=this.streamController.value,n=My({"title-overlay-container":!0,"is-live":e}),i=p.x`
1958			<div class=${n}>
1959				<title-bug></title-bug>
1960			</div>
1961		`;return Q_(t,(()=>i),(()=>p.E))}};GA.tokens={"max-width":"800px","live-max-width":"800px","title-overlay-container--inline-start":"20px","title-overlay-container--block-start":"14px",responsive:{smallPlus:{"title-overlay-container--block-start":"14px"}}},GA.styles=[zA],GA=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
1961)([p_],GA);class YA{constructor(t,e){this.streamController=null,(this.host=t).addController(this),this.streamController=e?.streamController||null}get visible(){const{castingPlatform:t}=this,{deviceAvailable:e}=this,{castingSuppressed:n}=this;return!n&&!!e&&!!t}get castingPlatform(){return this.streamController?.value?.platform||null}get deviceAvailable(){return this.streamController?.value?.available||!1}get castingSuppressed(){return!1}get connected(){return this.streamController?.value?.connected||!1}get connecting(){return this.streamController?.value?.connecting||!1}get disconnected(){return!this.connected&&!this.connecting&&this.deviceAvailable}get unavailable(){return!this.deviceAvailable}get isCastDisablementEnabled(){return this.streamController?.value?.isCastDisablementEnabled||!1}get state(){return{visible:this.visible,castingPlatform:this.castingPlatform,connected:this.connected,connecting:this.connecting,disconnected:this.disconnected,unavailable:this.unavailable}}hostConnected(){this.updateVisibility()}hostDisconnected(){}updateVisibility(){this.host?.updateVisibility?.(this.visible)}onToggleSession(t){const e=t?{type:Ul.CASTING.START_CASTING}:{type:Ul.CASTING.STOP_CASTING};this.host.mediaElement?.stateStore?.dispatch(e)}getCastingState(){return this.connected?"connected":this.connecting?"connecting":this.disconnected?"disconnected":"unavailable"}getTooltipLabel(){const{castingPlatform:t}=this.state,e=this.getCastingState();return t===Zl?this.isCastDisablementEnabled?this.host.dictionary?.translate(Xl.MEDIA.CONTROLS.CHROMECAST_DISABLED,"Casting is currently not available"):"connected"===e?this.host.dictionary?.translate(Xl.MEDIA.CONTROLS.CHROMECAST_ON,"Chromecast on"):this.host.dictionary?.translate(Xl.MEDIA.CONTROLS.CHROMECAST_OFF,"Chromecast off"):""}}const jA=Wb("\n\t.casting-animation-wrapper {\n\t\twidth: var(--control-width, 36px);\n\t\theight: var(--control-height, 36px);\n\t\tpointer-events: auto;\n\t\tposition: var(--casting-wrapper-position, absolute);\n\t\tinset-inline-end: var(--casting-wrapper-edge-offset, var(--control-height, 36px));\n\t\ttop: var(--casting-wrapper-top, var(--control-width, 36px));\n\t\tz-index: 1;\n\t}\n\n\tinfo-tooltip.casting-disabled-tooltip {\n\t\t--tooltip-arrow-size: 0px;\n\t\t--tooltip-backdrop-filter: blur(25px);\n\t\t--tooltip-background: rgba(0, 0, 0, 0.7);\n\t\t--tooltip-border-radius: 12px;\n\t\t--tooltip-box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\n\t\t--tooltip-font-size: 20px;\n\t\t--tooltip-font-weight: 400;\n\t\t--tooltip-letter-spacing: -0.1px;\n\t\t--tooltip-line-height: 32px;\n\t\t--tooltip-alignment-offset: -8px;\n\t\t--tooltip-offset: 28px;\n\t\t--tooltip-opacity: 1;\n\t\t--tooltip-padding: 22px 21px;\n\t\t--tooltip-text-transform: none;\n\t}\n\n\t.casting-control-button {\n\t\twidth: var(--control-width, 36px);\n\t\theight: var(--control-height, 36px);\n\t\tbackground-size: 77%;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tborder: none;\n\t\tcursor: pointer;\n\t\topacity: var(--casting-icon--opacity, 0.8);\n\t\tmask-repeat: no-repeat;\n\t\t-webkit-mask-repeat: no-repeat;\n\t\tmask-size: contain;\n\t\t-webkit-mask-size: contain;\n\t\tmask-position: center;\n\t\t-webkit-mask-position: center;\n\t\tbackground-color: var(--casting-icon--color, #efefef);\n\t}\n\n\t.casting-control-button:hover {\n\t\topacity: var(--casting-icon--hover-opacity, 1);\n\t}\n\n\t.casting-control-button:focus {\n\t\toutline: 2px solid var(--casting-icon--focus-color, #efefef);\n\t\toutline-offset: 2px;\n\t}\n\n\t.chromecast-on-icon {\n\t\tmask-image: var(--chromecast-on-icon);\n\t\t-webkit-mask-image: var(--chromecast-on-icon);\n\t}\n\n\t.chromecast-off-icon {\n\t\tmask-image: var(--chromecast-off-icon);\n\t\t-webkit-mask-image: var(--chromecast-off-icon);\n\t}\n\n\t.chromecast-disabled-icon {\n\t\tmask-image: var(--chromecast-disabled-icon);\n\t\t-webkit-mask-image: var(--chromecast-disabled-icon);\n\t}\n\n\t.chromecast-connecting-icon {\n\t\tanimation-name: chromecastAnimation;\n\t\tanimation-duration: 1s;\n\t\tanimation-iteration-count: infinite;\n\t\tbackground-size: 77%;\n\t}\n\n\t@keyframes chromecastAnimation {\n\t\t0% {\n\t\t\tmask-image: var(--chromecast-connecting-0-icon);\n\t\t\t-webkit-mask-image: var(--chromecast-connecting-0-icon);\n\t\t}\n\t\t25% {\n\t\t\tmask-image: var(--chromecast-connecting-1-icon);\n\t\t\t-webkit-mask-image: var(--chromecast-connecting-1-icon);\n\t\t}\n\t\t50% {\n\t\t\tmask-image: var(--chromecast-connecting-2-icon);\n\t\t\t-webkit-mask-image: var(--chromecast-connecting-2-icon);\n\t\t}\n\t\t100% {\n\t\t\tmask-image: var(--chromecast-connecting-2-icon);\n\t\t\t-webkit-mask-image: var(--chromecast-connecting-2-icon);\n\t\t}\n\t}\n\n\t:host(.casting-tutorial-indicator) .casting-animation-wrapper {\n\t\tbox-shadow:\n\t\t\t0 0 8px #4a6587,\n\t\t\t0 0 8px #4a6587;\n\t\tanimation: casting-tutorial-pulse 2s linear 1s infinite;\n\t\tborder-radius: 25px;\n\n\t\t.casting-control-button {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t@keyframes casting-tutorial-pulse {\n\t\t0% {\n\t\t\tbox-shadow:\n\t\t\t\t0 0 8px #4a6587,\n\t\t\t\t0 0 8px #4a6587;\n\t\t}\n\t\t50% {\n\t\t\tbox-shadow:\n\t\t\t\t0 0 16px #4a6587,\n\t\t\t\t0 0 14px #4a6587;\n\t\t}\n\t\t100% {\n\t\t\tbox-shadow:\n\t\t\t\t0 0 8px #4a6587,\n\t\t\t\t0 0 8px #4a6587;\n\t\t}\n\t}\n");Object.getOwnPropertyDescriptor;const KA={platform:null,available:!1,isCasting:!1,connected:!1,connecting:!1,isCastDisablementEnabled:!1},WA=t=>{const e=t.playback?.clients?.playerFeatureFlags;return{...t.casting||KA,isCastDisablementEnabled:Boolean(e?.isCastDisablementEnabled)}};let qA=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,WA,KA),this.controller=new YA(this,{streamController:this.streamController})}connectedCallback(){super.connectedCallback();const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController})),this.controller.hostConnected()}willUpdate(t){super.willUpdate(t);const{visible:e,castingPlatform:n}=this.controller.state;this.toggleAttribute("data-has-content",Boolean(e&&n))}renderCastingButton(){const{visible:t,castingPlatform:e,disconnected:n}=this.controller.state;if(!t||!e)return p.E;const i=this.controller.getCastingState(),r="unavailable"!==i?"0":"-1",o=this.controller.getTooltipLabel(),a=this.streamController.value.isCastDisablementEnabled;this.tooltipPosition=a?"bottom-right":"bottom-center";let s="";return e===Zl&&(s=a?`${e}-disabled-icon`:"connecting"===i?`${e}-connecting-icon`:`${e}-${"connected"===i?"on":"off"}-icon`),p.x`
1962			<div class="casting-animation-wrapper" part="wrapper">
1963				<info-tooltip
1964					class=${a?"casting-disabled-tooltip":""}
1965					part="info-tooltip"
1966					tooltipPosition="${this.tooltipPosition}"
1967					tooltipLabel=${o}
1968					.shouldShowTooltipOnFocus=${this.shouldShowTooltipOnFocus}
1969				>
1970					<button
1971						role="button"
1972						aria-label=${o}
1973						class="casting-control-button ${e} ${s}"
1974						part="casting-control-button"
1975						@click=${t=>{t.stopPropagation(),a||this.controller.onToggleSession(n)}}
1976						tabindex=${r}
1977					></button>
1978				</info-tooltip>
1979			</div>
1980		`}render(){const{visible:t}=this.controller.state;return Q_(t,(()=>this.renderCastingButton()),(()=>p.E))}};qA.tokens={"control-width":"36px","control-height":"36px","casting-wrapper-position":"absolute","casting-wrapper-top":"var(--control-width, 36px)","casting-wrapper-edge-offset":"var(--control-height, 36px)","casting-icon--opacity":"0.6","casting-icon--hover-opacity":"0.8","casting-icon--color":"#efefef","casting-icon--focus-color":"#efefef","chromecast-on-icon":"url(\"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%202
19800H5.47826C5.47826%2018.1362%203.92464%2016.6316%202%2016.6316V20Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%2014.9517C4.74286%2014.9517%207.21945%2017.3438%207.21945%2020H8.95652C8.95652%2016.2755%205.84596%2013.2632%202%2013.2632L2%2014.9517Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%2011.5863C6.71462%2011.5863%2010.7167%2015.4343%2010.7167%2020H12.4348C12.4348%2014.4145%207.7581%209.89473%202%209.89473V11.5863Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.81818%204C2.81818%204%202%204.8%202%205.77778V8.63371H3.73611V5.68274H20.2647V18.3246H13.7619V20H20.1818C21.1818%2020%2022%2019.2%2022%2018.2222V5.77778C22%204.8%2021.1818%204%2020.1818%204H3.81818Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.47826%207.36842V8.87832C9.21729%2010.064%2012.1726%2012.9634%2013.3812%2016.6316H18.5217V7.36842H5.47826Z'%20fill='white'/%3e%3c/svg%3e\")","chromecast-off-icon":"url(\"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%2020H5.47826C5.47826%2018.1361%203.92464%2016.6316%202%2016.6316V20Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%2014.9517C4.74286%2014.9517%207.21945%2017.3438%207.21945%2020H8.95652C8.95652%2016.2755%205.84596%2013.2632%202%2013.2632L2%2014.9517Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%2011.5863C6.71462%2011.5863%2010.7167%2015.4343%2010.7167%2020H12.4348C12.4348%2014.4145%207.7581%209.89473%202%209.89473V11.5863Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.81818%204C2.81818%204%202%204.8%202%205.77778V8.63371H3.73611V5.68274H20.2647V18.3246H13.7619V20H20.1818C21.1818%2020%2022%2019.2%2022%2018.2222V5.77778C22%204.8%2021.1818%204%2020.1818%204H3.81818Z'%20fill='white'/%3e%3c/svg%3e\")","chromecast-disabled-icon":"url(\"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%3e%3cpath%20d='M2.00001%2019C2.00001%2018.4477%202.47454%2017.9793%202.95898%2018.2445C3.29462%2018.4282%203.5718%2018.7054%203.75553%2019.041C4.02073%2019.5255%203.55229%2020%203.00001%2020C2.44773%2020%202.00001%2019.5523%202.00001%2019Z'%20fill='white'/%3e%3cpath%20d='M2.00001%2015C2.00001%2014.4477%202.45109%2013.9913%202.99583%2014.0823C5.5117%2014.5025%207.4975%2016.4883%207.91775%2019.0042C8.00875%2019.5489%207.5523%2020%207.00001%2020C6.44773%2020%206.01284%2019.5453%205.87658%2019.0101C5.51666%2017.5963%204.40368%2016.4834%202.98989%2016.1234C2.45468%2015.9872%202.00001%2015.5523%202.00001%2015Z'%20fill='white'/%3e%3cpath%20d='M2.00001%2011C2.00001%2010.4477%202.44902%209.99476%202.99861%2010.0492C7.72415%2010.5178%2011.4823%2014.2759%2011.9508%2019.0014C12.0053%2019.551%2011.5523%2020%2011%2020C10.4477%2020%2010.0066%2019.5501%209.93836%2019.002C9.48783%2015.3817%206.61834%2012.5122%202.99803%2012.0617C2.44997%2011.9935%202.00001%2011.5523%202.00001%2011Z'%20fill='white'/%3e%3cpath%20d='M18%204.00001C18.6788%204.00001%2019.2887%203.99754%2019.7793%204.06349C20.2986%204.13332%2020.8312%204.29605%2021.2676%204.73243C21.704%205.16883%2021.8667%205.7014%2021.9365%206.22072C22.0025%206.7113%2022%207.32119%2022%208.00001V16C22%2016.6788%2022.0025%2017.2887%2021.9365%2017.7793C21.8667%2018.2986%2021.704%2018.8312%2021.2676%2019.2676C20.8312%2019.704%2020.2986%2019.8667%2019.7793%2019.9365C19.2887%2020.0025%2018.6788%2020%2018%2020H14.921C14.4123%2020%2014.0034%2019.5789%2013.9642%2019.0718C13.9203%2018.504%2014.3519%2018%2014.9214%2018H19C19.4714%2018%2019.7071%2018%2019.8535%2017.8535C20%2017.7071%2020%2017.4714%2020%2017V7.00001C20%206.52864%2020%206.29294%2019.8535%206.1465C19.7071%206.00008%2019.4714%206.00001%2019%206.00001H5.00001C4.52862%206.00001%204.29294%206.00005%204.1465%206.1465C4.00006%206.29294%204.00001%206.52863%204.00001%207.00001C4.00001%207.61066%203.45077%208.07213%202.84161%208.02945C2.73108%208.02171%202.62014%208.01546%202.5088%208.01075C2.22608%208.00479%201.99922%207.77384%202.00072%207.49107C2.00326%207.01554%202.01449%206.58519%202.06349%206.22072C2.13332%205.7014%202.29603%205.16884%202.73243%204.73243C3.16884%204.29603%203.7014%204.13332%204.22072%204.06349C4.7113%203.99753%205.32119%204.00001%206.00001%204.00001H18Z'%2
19800fill='white'/%3e%3c/g%3e%3c/svg%3e\")","chromecast-connecting-0-icon":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M1.455%2027.632c-0.384%200-0.757-0.157-1.030-0.426-0.27-0.27-0.425-0.644-0.425-1.025%200-0.383%200.154-0.758%200.425-1.027%200.273-0.27%200.646-0.426%201.030-0.426%200.381%200%200.757%200.157%201.027%200.426s0.428%200.644%200.428%201.027c0%200.38-0.157%200.755-0.428%201.025s-0.646%200.426-1.027%200.426z'%3e%3c/path%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M29.091%2027.636h-12.414c-0.621%200-2.132-0.053-2.132-1.508s1.51-1.455%202.132-1.455h12.414v-17.455h-26.182v4.364c0%200%200%201.455-1.455%201.455s-1.455-1.455-1.455-1.455v-4.364c0-1.401%201.455-2.856%202.909-2.856h26.182c1.455%200%202.909%201.455%202.909%202.856v17.508c0%201.455-1.455%202.909-2.909%202.909z'%3e%3c/path%3e%3c/svg%3e\")","chromecast-connecting-1-icon":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M7.432%2027.636c-0.716%200-1.296-0.58-1.296-1.296%200-1.293-0.503-2.508-1.418-3.422s-2.13-1.417-3.422-1.417c-0.716%200-1.296-0.58-1.296-1.296s0.58-1.296%201.296-1.296c1.985%200%203.851%200.773%205.255%202.176s2.177%203.27%202.177%205.255c0%200.715-0.58%201.295-1.295%201.295z'%3e%3c/path%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M1.455%2027.632c-0.384%200-0.757-0.157-1.030-0.426-0.27-0.27-0.425-0.644-0.425-1.025%200-0.383%200.154-0.758%200.425-1.027%200.273-0.27%200.646-0.426%201.030-0.426%200.381%200%200.757%200.157%201.027%200.426s0.428%200.644%200.428%201.027c0%200.38-0.157%200.755-0.428%201.025s-0.646%200.426-1.027%200.426z'%3e%3c/path%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M29.091%2027.636h-12.414c-0.621%200-2.132-0.053-2.132-1.508s1.51-1.455%202.132-1.455h12.414v-17.455h-26.182v4.364c0%200%200%201.455-1.455%201.455s-1.455-1.455-1.455-1.455v-4.364c0-1.401%201.455-2.856%202.909-2.856h26.182c1.455%200%202.909%201.455%202.909%202.856v17.508c0%201.455-1.455%202.909-2.909%202.909z'%3e%3c/path%3e%3c/svg%3e\")","chromecast-connecting-2-icon":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M7.432%2027.636c-0.716%200-1.296-0.58-1.296-1.296%200-1.293-0.503-2.508-1.418-3.422s-2.13-1.417-3.422-1.417c-0.716%200-1.296-0.58-1.296-1.296s0.58-1.296%201.296-1.296c1.985%200%203.851%200.773%205.255%202.176s2.177%203.27%202.177%205.255c0%200.715-0.58%201.295-1.295%201.295z'%3e%3c/path%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M11.949%2027.636c-0.63%200-1.141-0.511-1.141-1.141%200-2.582-1.005-5.010-2.831-6.836s-4.254-2.831-6.836-2.831c-0.63%200-1.141-0.511-1.141-1.141s0.511-1.141%201.141-1.141c3.192%200%206.192%201.243%208.45%203.5s3.5%205.258%203.5%208.449c-0%200.63-0.511%201.141-1.142%201.141z'%3e%3c/path%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M1.455%2027.632c-0.384%200-0.757-0.157-1.030-0.426-0.27-0.27-0.425-0.644-0.425-1.025%200-0.383%200.154-0.758%200.425-1.027%200.273-0.27%200.646-0.426%201.030-0.426%200.381%200%200.757%200.157%201.027%200.426s0.428%200.644%200.428%201.027c0%200.38-0.157%200.755-0.428%201.025s-0.646%200.426-1.027%200.426z'%3e%3c/path%3e%3cpath%20fill='%23F9F9F9'%20class='st0'%20d='M29.091%2027.636h-12.414c-0.621%200-2.132-0.053-2.132-1.508s1.51-1.455%202.132-1.455h12.414v-17.455h-26.182v4.364c0%200%200%201.455-1.455%201.455s-1.455-1.455-1.455-1.455v-4.364c0-1.401%201.455-2.856%202.909-2.856h26.182c1.455%200%202.909%201.455%202.909%202.856v17.508c0%201.455-1.455%202.909-2.909%202.909z'%3e%3c/path%3e%3c/svg%3e\")"},qA.styles=[jA],qA=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
1980)([p_,L_({target:t=>t.shadowRoot.querySelector("\n\t\t.casting-control-button\n\t"),watch:t=>t.shadowRoot.querySelector(".casting-animation-wrapper"),scope:t=>t?.container})],qA);const XA=Wb("\n\t:host {\n\t\tdisplay: block;\n\t\tinline-size: var(--casting-controls-overlay--inline-size);\n\t\tmax-inline-size: 100%;\n\t\tblock-size: var(--casting-controls-overlay--block-size);\n\t\tcolor: var(--casting-controls-overlay--title-color);\n\t\tpointer-events: none;\n\t}\n\n\t.casting-controls-overlay {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: var(\n\t\t\t--casting-controls-overlay--grid-template-columns\n\t\t);\n\t\tgrid-template-rows:\n\t\t\tvar(--casting-controls-overlay--content-block-size)\n\t\t\tauto;\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\toverflow: hidden;\n\t\tbackground-color: var(--casting-controls-overlay--background-color);\n\t\tpointer-events: none;\n\t}\n\n\tposter-overlay {\n\t\tgrid-column: 1;\n\t\tgrid-row: 1;\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tinline-size: var(--casting-controls-overlay--poster-inline-size);\n\t\tblock-size: var(--casting-controls-overlay--poster-block-size);\n\t\tborder-radius: var(--casting-controls-overlay--poster-border-radius);\n\t\toverflow: hidden;\n\t\tflex-shrink: 0;\n\t\topacity: var(--casting-controls-overlay--poster-opacity);\n\t\t--poster-overlay--object-fit: var(\n\t\t\t--casting-controls-overlay--poster-object-fit\n\t\t);\n\t\t--poster-overlay--z-index: 0;\n\t\t--poster-overlay--background-color: var(\n\t\t\t--casting-controls-overlay--poster-background-color\n\t\t);\n\t}\n\n\t.casting-controls-overlay__title {\n\t\tgrid-column: 2;\n\t\tgrid-row: 1;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tmin-inline-size: 0;\n\t\tmax-inline-size: var(--casting-controls-overlay--title-max-inline-size);\n\t\tpadding-inline-start: var(\n\t\t\t--casting-controls-overlay--title-padding-inline-start\n\t\t);\n\t\tpadding-inline-end: var(\n\t\t\t--casting-controls-overlay--title-padding-inline-end\n\t\t);\n\t}\n\n\ttitle-bug {\n\t\tinline-size: 100%;\n\t\tmin-inline-size: 0;\n\t\t--header-arrow--margin-block-end: 0;\n\t\t--header-arrow--margin-inline-end: 0;\n\t\t--header-arrow--width: auto;\n\t\t--header-arrow--height: auto;\n\t\t--header-arrow--border-radius: 0;\n\t\t--header-arrow--margin: 0;\n\t\t--header-arrow--background-color: transparent;\n\t\t--down-icon--width: var(--casting-controls-overlay--arrow-size);\n\t\t--down-icon--height: var(--casting-controls-overlay--arrow-size);\n\t\t--up-icon--width: var(--casting-controls-overlay--arrow-size);\n\t\t--up-icon--height: var(--casting-controls-overlay--arrow-size);\n\t\t--title-font-size: var(--casting-controls-overlay--title-font-size);\n\t\t--title-line-height: var(--casting-controls-overlay--title-line-height);\n\t\t--title-max-width: var(\n\t\t\t--casting-controls-overlay--title-text-max-inline-size\n\t\t);\n\t\t--title--color: var(--casting-controls-overlay--title-color);\n\t\t--title-field--overflow: hidden;\n\t\t--title-field--white-space: nowrap;\n\t\t--title-field--text-overflow: ellipsis;\n\t\t--title-field--overflow-wrap: normal;\n\t\t--title-field--word-break: normal;\n\t\t--subtitle-font-size: var(\n\t\t\t--casting-controls-overlay--metadata-font-size\n\t\t);\n\t\t--subtitle-line-height: var(\n\t\t\t--casting-controls-overlay--metadata-line-height\n\t\t);\n\t\t--serviceAttribution-field--display: none;\n\t\toverflow: hidden;\n\t}\n\n\t.casting-controls-overlay__play-pause {\n\t\tgrid-column: 3;\n\t\tgrid-row: 1;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tpadding-inline-start: var(\n\t\t\t--casting-controls-overlay--play-pause-padding-inline-start\n\t\t);\n\t\tpointer-events: auto;\n\t}\n\n\ttoggle-play-pause {\n\t\t--button-container--width: var(\n\t\t\t--casting-controls-overlay--play-pause-size\n\t\t);\n\t\t--button-container--height: var(\n\t\t\t--casting-controls-overlay--play-pause-size\n\t\t);\n\t\t--button-container--opacity: 1;\n\t\t--button-container--opacity-hover: 1;\n\t\tpadding: 0;\n\t}\n\n\tprogress-bar {\n\t\tgrid-column: 1 / -1;\n\t\tgrid-row: 2;\n\t\tinline-size: 100%;
1980\n\t\tpadding-block-start: var(\n\t\t\t--casting-controls-overlay--progress-padding-block-start\n\t\t);\n\t\t--host-height: var(--casting-controls-overlay--progress-host-block-size);\n\t\t--host-width: 100%;\n\t\t--time-bar--height: var(\n\t\t\t--casting-controls-overlay--progress-time-bar-block-size\n\t\t);\n\t\t--time-bar--height-hover: var(\n\t\t\t--casting-controls-overlay--progress-time-bar-block-size\n\t\t);\n\t\t--thumb--width: 0px;\n\t\t--thumb--height: 0px;\n\t\t--thumb--width-hover: 0px;\n\t\t--thumb--height-hover: 0px;\n\t\t--seekable-range--padding-top: 0;\n\t\t--seekable-range--padding-bottom: 0;\n\t\t--current-time--visibility-dragging: hidden;\n\t\tpointer-events: auto;\n\t}\n");Object.getOwnPropertyDescriptor;let ZA=class extends pt{render(){return p.x`
1981			<div class="casting-controls-overlay" part="container">
1982				<poster-overlay></poster-overlay>
1983				<div class="casting-controls-overlay__title">
1984					<title-bug></title-bug>
1985				</div>
1986				<div class="casting-controls-overlay__play-pause">
1987					<toggle-play-pause></toggle-play-pause>
1988				</div>
1989				<progress-bar
1990					hideThumb
1991					disablePreviewTile
1992					hideHoverMarker
1993					hideProposedTimeMarker
1994					hidePreviewTimeBubble
1995					hideCurrentTimeBelowThumb
1996				></progress-bar>
1997			</div>
1998		`}};ZA.tokens={"casting-controls-overlay--inline-size":"375px","casting-controls-overlay--block-size":"64px","casting-controls-overlay--background-color":"rgba(20, 22, 32, 0.95)","casting-controls-overlay--grid-template-columns":"auto 1fr auto","casting-controls-overlay--content-block-size":"55px","casting-controls-overlay--progress-padding-block-start":"4px","casting-controls-overlay--progress-host-block-size":"6px","casting-controls-overlay--progress-time-bar-block-size":"4px","casting-controls-overlay--poster-inline-size":"102px","casting-controls-overlay--poster-block-size":"60px","casting-controls-overlay--poster-border-radius":"4px","casting-controls-overlay--poster-opacity":"0.8","casting-controls-overlay--poster-object-fit":"cover","casting-controls-overlay--poster-background-color":"transparent","casting-controls-overlay--title-padding-inline-start":"0","casting-controls-overlay--title-padding-inline-end":"10px","casting-controls-overlay--title-max-inline-size":"none","casting-controls-overlay--title-text-max-inline-size":"178px","casting-controls-overlay--title-font-size":"14px","casting-controls-overlay--title-line-height":"20px","casting-controls-overlay--title-color":"#efefef","casting-controls-overlay--metadata-font-size":"12px","casting-controls-overlay--metadata-line-height":"16px","casting-controls-overlay--arrow-size":"24px","casting-controls-overlay--play-pause-size":"32px","casting-controls-overlay--play-pause-padding-inline-start":"10px",responsive:{}},ZA.styles=[XA],ZA=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
1998)([p_,L_({target:t=>t.shadowRoot.querySelectorAll("\n\t\t\ttitle-bug,\n\t\t\ttoggle-play-pause,\n\t\t\tprogress-bar\n\t\t"),watch:t=>t.shadowRoot.querySelector(".casting-controls-overlay"),scope:t=>t?.container})],ZA);const QA=Wb('\n\t:host {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tinline-size: auto;\n\t\tblock-size: auto;\n\t\tz-index: 1;\n\t\tpointer-events: none;\n\t}\n\n\t.multiview-grid-wrapper {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: 1;\n\t\tcontainer-type: size;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tmin-block-size: 0;\n\t\tpointer-events: none;\n\t}\n\n\t.multiview-grid {\n\t\t--multiview-tile-gap: var(--multiview-grid--gap);\n\t\tdisplay: grid;\n\t\tgap: var(--multiview-tile-gap);\n\t\tinline-size: fit-content;\n\t\tblock-size: fit-content;\n\t\tmax-inline-size: 100%;\n\t\tmax-block-size: 100%;\n\t}\n\n\t.layout-dual .multiview-grid {\n\t\t--multiview-tile-width: min(\n\t\t\tcalc((100cqw - var(--multiview-tile-gap)) / 2),\n\t\t\tcalc(100cqh * 16 / 9)\n\t\t);\n\t\tgrid-template-areas: "a b";\n\t\tgrid-template-columns: var(--multiview-tile-width) var(--multiview-tile-width);\n\t\tgrid-template-rows: auto;\n\t}\n\n\t.layout-triple .multiview-grid {\n\t\t--multiview-tile-width: min(\n\t\t\tcalc((100cqw - var(--multiview-tile-gap)) / 2),\n\t\t\tcalc((100cqh - var(--multiview-tile-gap)) / 2 * 16 / 9)\n\t\t);\n\t\tgrid-template-areas:\n\t\t\t"a b"\n\t\t\t"c c";\n\t\tgrid-template-columns: var(--multiview-tile-width) var(--multiview-tile-width);\n\t\tgrid-template-rows: auto auto;\n\t}\n\n\t.layout-quad .multiview-grid {\n\t\t--multiview-tile-width: min(\n\t\t\tcalc((100cqw - var(--multiview-tile-gap)) / 2),\n\t\t\tcalc((100cqh - var(--multiview-tile-gap)) / 2 * 16 / 9)\n\t\t);\n\t\tgrid-template-areas:\n\t\t\t"a b"\n\t\t\t"c d";\n\t\tgrid-template-columns: var(--multiview-tile-width) var(--multiview-tile-width);\n\t\tgrid-template-rows: auto auto;\n\t}\n\n\t.grid-area-a {\n\t\tgrid-area: a;\n\t}\n\n\t.grid-area-b {\n\t\tgrid-area: b;\n\t}\n\n\t.grid-area-c {\n\t\tgrid-area: c;\n\t\tgrid-column: 1 / -1;\n\t\tjustify-self: center;\n\t\tinline-size: var(--multiview-tile-width);\n\t}\n\n\t.layout-quad .grid-area-c {\n\t\tgrid-column: auto;\n\t\tgrid-area: c;\n\t\tjustify-self: stretch;\n\t\tinline-size: auto;\n\t}\n\n\t.grid-area-d {\n\t\tgrid-area: d;\n\t}\n\n\tmultiview-substream {\n\t\tpointer-events: auto;\n\t\tinline-size: 100%;\n\t\tblock-size: auto;\n\t}\n'),JA={layout:"quad",substreams:[],activeAudioSubstreamId:null,hasMultiviewData:!1},tI=t=>{const e=rC(t.playbackCriteria?.current?.metadata);if(!e)return JA;const n=function(t,e){if(!e.length)return null;const n=t.audio?.tracks??[],i=n.findIndex((t=>t.isSelected)),r=i>=0?n[i]:void 0;if(r){const t=e.find((t=>t.id===r.id));if(t)return t.id;if(i<e.length)return e[i].id}return e[0]?.id??null}(t,e.airings);return{...sC(e,{activeAudioSubstreamId:n,audioTracks:t.audio?.tracks}),hasMultiviewData:!0}};Object.getOwnPropertyDescriptor;let eI=class extends pt{constructor(){super(...arguments),this.multiviewStreamController=new G_(this,tI,JA)}getVisibleSubstreams(){const{layout:t,substreams:e}=this.multiviewStreamController.value,n=nC[t].length;return e.slice(0,n)}render(){const{layout:t,activeAudioSubstreamId:e}=this.multiviewStreamController.value,n=this.getVisibleSubstreams();return n.length?p.x`
1999			<div class="multiview-grid-wrapper layout-${t}">
2000				<div class="multiview-grid">
2001					${n.map(((i,r)=>{const o=nC[t][r],a=function(t,e,n){return n.some((t=>!0===t.track?.isSelected))?!0===t.track?.isSelected:e===t.id}(i,e,n);return p.x`
2002							<multiview-substream
2003								class="grid-area-${o}"
2004								substreamId=${i.id}
2005								feedId=${i.feedId}
2006								metaLabel=${i.metaLabel}
2007								layoutArea=${o}
2008								.track=${i.track}
2009								?selected=${a}
2010								?audio-active=${a}
2011							></multiview-substream>
2012						`}))}
2013				</div>
2014			</div>
2015		`:p.E}};eI.styles=[QA],eI.tokens={"multiview-overlay--inline-size":"100%","multiview-overlay--block-size":"100%","multiview-grid--gap":"1px"},eI=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2015)([p_],eI);const nI=Wb("\n\t:host {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t\tbackground: transparent;\n\t\tcontainer-type: inline-size;\n\t\taspect-ratio: var(--multiview-substream--aspect-ratio);\n\t\tborder-radius: var(--multiview-substream--border-radius);\n\t\tborder: var(--multiview-substream--border-width) solid transparent;\n\t\toverflow: hidden;\n\t\tbox-sizing: border-box;\n\t\t--multiview-substream-action-size: clamp(32px, 22cqw, 64px);\n\t\t--multiview-substream-action-gap: clamp(8px, 4cqw, 16px);\n\t\t--multiview-substream-meta-font-size: clamp(10px, 3.5cqw, 14px);\n\t\t--multiview-substream-meta-line-height: clamp(14px, 4.5cqw, 18px);\n\t\t--multiview-substream-meta-padding-block-start: clamp(8px, 4cqw, 16px);\n\t\t--multiview-substream-meta-padding-block-end: clamp(20px, 10cqw, 40px);\n\t\t--multiview-substream-meta-padding-inline: clamp(8px, 4cqw, 16px);\n\t}\n\n\t:host([selected]) {\n\t\tborder-color: var(--multiview-substream-selected--border-color);\n\t}\n\n\t.multiview-substream {\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\tbackground: transparent;\n\t}\n\n\t.substream-meta {\n\t\tposition: absolute;\n\t\tinset-block-start: 0;\n\t\tinset-inline: 0;\n\t\tz-index: 2;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding-block-start: var(--multiview-substream-meta-padding-block-start);\n\t\tpadding-block-end: var(--multiview-substream-meta-padding-block-end);\n\t\tpadding-inline: var(--multiview-substream-meta-padding-inline);\n\t\tbackground: linear-gradient(\n\t\t\t180deg,\n\t\t\tvar(--multiview-substream-meta--gradient-start) 0%,\n\t\t\tvar(--multiview-substream-meta--gradient-end) 100%\n\t\t);\n\t\tcolor: var(--multiview-substream-meta--color);\n\t\tfont-size: var(--multiview-substream-meta-font-size);\n\t\tline-height: var(--multiview-substream-meta-line-height);\n\t\tpointer-events: none;\n\t}\n\n\t.substream-content {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: transparent;\n\t}\n\n\t.mv-actions {\n\t\tposition: absolute;\n\t\tinset-block-start: 50%;\n\t\tinset-inline-start: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--multiview-substream-action-gap);\n\t\tz-index: 3;\n\t\tpointer-events: auto;\n\t}\n\n\t.mv-actions multiview-audio-select,\n\t.mv-actions multiview-stream-select {\n\t\t--button-container__round--size: var(--multiview-substream-action-size);\n\t\t--button-container--height: var(--multiview-substream-action-size);\n\t\t--button-container--width: var(--multiview-substream-action-size);\n\t\t--controls__host--width: var(--multiview-substream-action-size);\n\t\t--control-height: calc(var(--multiview-substream-action-size) / 2);\n\t\t--control-width: calc(var(--multiview-substream-action-size) / 2);\n\t}\n");var iI=Object.defineProperty,rI=Object.getOwnPropertyDescriptor,oI=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?rI(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&iI(e,n,o),o};let aI=class extends pt{constructor(){super(...arguments),this.substreamId="",this.feedId="",this.metaLabel="",this.isAudioActive=!1,this.selected=!1,this.layoutArea="a",this.track=null}render(){return p.x`
2016			<div class="multiview-substream">
2017				<div class="substream-meta">${this.metaLabel}</div>
2018				<div class="substream-content">
2019					<slot></slot>
2020				</div>
2021				<div class="mv-actions">
2022					<multiview-audio-select
2023						.track=${this.track}
2024						?isAudioActive=${this.isAudioActive}
2025					></multiview-audio-select>
2026					<multiview-stream-select
2027						substreamId=${this.substreamId}
2028						feedId=${this.feedId}
2029					></multiview-stream-select>
2030				</div>
2031			</div>
2032		`}};aI.tokens={"multiview-substream--border-radius":"10px","multiview-substream--border-width":"2px","multiview-substream--border-color":"rgba(255, 255, 255, 0.35)","multiview-substream-selected--border-color":"#ffffff","multiview-substream--aspect-ratio":"16 / 9","multiview-substream-meta--padding-block-start":"16px","multiview-substream-meta--padding-block-end":"40px","multiview-substream-meta--padding-inline":"16px","multiview-substream-meta--font-size":"14px","multiview-substream-meta--line-height":"18px","multiview-substream-meta--color":"#ffffff","multiview-substream-meta--gradient-start":"rgba(0, 0, 0, 0.8)","multiview-substream-meta--gradient-end":"rgba(0, 0, 0, 0)","multiview-substream-actions--gap":"16px",responsive:{}},aI.styles=[nI],oI([(0,p.n)({type:String})],aI.prototype,"substreamId",2),oI([(0,p.n)({type:String})],aI.prototype,"feedId",2),oI([(0,p.n)({type:String})],aI.prototype,"metaLabel",2),oI([(0,p.n)({type:Boolean,attribute:"audio-active"})],aI.prototype,"isAudioActive",2),oI([(0,p.n)({type:Boolean,reflect:!0})],aI.prototype,"selected",2),oI([(0,p.n)({type:String})],aI.prototype,"layoutArea",2),oI([(0,p.n)({attribute:!1})],aI.prototype,"track",2),aI=oI([p_],aI);class sI{get visible(){return this.host?.localState?.overlayState.overlays[xf]?.isOpen||!1}constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}hide(){this.host?.localState&&this.host?.commandBus?(this.host.commandBus.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:xf,type:Pf,localState:this.host.localState}),this.host.commandBus.dispatchCommand?.(ff.CASTING_TUTORIAL_HIDE)):console.warn("[CastingTutorialOverlayController] Cannot hide tutorial: localState or commandBus not available")}show(){this.host?.localState&&this.host?.commandBus?(this.host.commandBus.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:xf,type:kf,localState:this.host.localState}),this.host.commandBus.dispatchCommand?.(ff.CASTING_TUTORIAL_SHOW)):console.warn("[CastingTutorialOverlayController] Cannot show tutorial: localState or commandBus not available")}}const lI=p.i`
2033	:host {
2034		position: absolute;
2035		inset: 0;
2036		z-index: 3;
2037		pointer-events: none;
2038		display: none;
2039	}
2040
2041	:host:has(.casting-tutorial-overlay) {
2042		display: block;
2043	}
2044
2045	.casting-tutorial-overlay {
2046		position: absolute;
2047		top: 0;
2048		left: 0;
2049		right: 0;
2050		bottom: 0;
2051		display: flex;
2052		flex-direction: column;
2053		background-color: rgba(0, 0, 0, 0.7);
2054		pointer-events: auto;
2055		z-index: 3;
2056	}
2057
2058	.casting-tutorial-overlay-button-indicator {
2059		pointer-events: auto;
2060	}
2061
2062	.casting-tutorial-overlay-header {
2063		display: flex;
2064		flex: 0 0 auto;
2065		justify-content: space-between;
2066		align-items: flex-start;
2067		padding: 20px;
2068	}
2069
2070	.casting-tutorial-overlay-spacer {
2071		flex: 1;
2072	}
2073
2074	.casting-tutorial-overlay-button-indicator {
2075		flex: 0 0 auto;
2076	}
2077
2078	.casting-tutorial-overlay-body {
2079		flex: 1;
2080		display: flex;
2081		flex-direction: column;
2082		align-items: center;
2083		justify-content: center;
2084		padding: 20px;
2085	}
2086
2087	.casting-tutorial-overlay-instructions {
2088		font-size: 32px;
2089		text-align: center;
2090		margin-block-end: 24px;
2091		color: var(--casting-tutorial-overlay--text-color, #ffffff);
2092	}
2093
2094	.casting-tutorial-confirmation-button {
2095		width: 326px;
2096		height: 48px;
2097		border: none;
2098		border-radius: 4px;
2099		background-color: var(
2100			--casting-tutorial-overlay-button--background-color,
2101			#0072d2
2102		);
2103		color: var(--casting-tutorial-overlay-button--text-color, #ffffff);
2104		pointer-events: auto;
2105		align-self: center;
2106		padding: 12px 24px;
2107		font-size: 15px;
2108		font-weight: 900;
2109		font-style: normal;
2110		font-stretch: normal;
2111		line-height: 1.6;
2112		letter-spacing: 1.5px;
2113		text-align: center;
2114		cursor: pointer;
2115	}
2116`;Object.getOwnPropertyDescriptor;let cI=class extends pt{constructor(){super(...arguments),this.controller=new sI(this),this.handleClick=()=>{this.controller.hide()}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isCastingTutorialVisible:t.overlayState.overlays[xf]?.isOpen}))),this.controller.hostConnected()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState&&this.unsubscribeFromLocalState(),this.controller.hide()}render(){const{visible:t}=this.controller;if(!t)return p.E;const e=this.dictionary?.translate(Xl.MEDIA.OVERLAYS.TUTORIAL_CAST_INSTRUCTIONS,"Click to cast videos to your TV"),n=this.dictionary?.translate(Xl.MEDIA.OVERLAYS.CTA_OK,"OK");return p.x`
2117			<div class="casting-tutorial-overlay">
2118				<div class="casting-tutorial-overlay-header">
2119					<div class="casting-tutorial-overlay-spacer"></div>
2120					<div class="casting-tutorial-overlay-button-indicator">
2121						<casting-control-overlay
2122							class="casting-tutorial-indicator"
2123						></casting-control-overlay>
2124					</div>
2125				</div>
2126				<div class="casting-tutorial-overlay-body">
2127					<div class="casting-tutorial-overlay-instructions">
2128						${e}
2129					</div>
2130					<button
2131						type="button"
2132						class="casting-tutorial-confirmation-button"
2133						@click=${this.handleClick}
2134					>
2135						${n}
2136					</button>
2137				</div>
2138			</div>
2139		`}};cI.tokens={"casting-tutorial-overlay--text-color":"#ffffff","casting-tutorial-overlay-button--text-color":"#ffffff","casting-tutorial-overlay-button--background-color":"#0072d2"},cI.styles=[lI],cI=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o})([p_,L_({target:t=>t.shadowRoot?.querySelector("\n\t\t\t.casting-tutorial-overlay\n\t\t"),scope:t=>t?.container})],cI);const dI=Wb("\n\t.poster-overlay {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground-color: var(--poster-overlay--background-color);\n\t\tz-index: var(--poster-overlay--z-index);\n\t}\n\n\t.poster-overlay--image {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: var(--poster-overlay--object-fit);\n\t}\n");Object.getOwnPropertyDescriptor;const uI={posterVisible:!1,posterImageUrl:null},pI=t=>{const{overlays:e}=t,{poster:n}=e;return{posterVisible:n?.visible??!1,posterImageUrl:n?.imageUrl??null}};let hI=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,pI,uI)}get posterVisible(){return this.streamController.value.posterVisible}get posterImageUrl(){return this.streamController.value.posterImageUrl}render(){return this.posterVisible&&this.posterImageUrl?p.x`
2140			<div class="poster-overlay">
2141				<img
2142					class="poster-overlay--image"
2143					src="${this.posterImageUrl}"
2144					alt=""
2145				/>
2146			</div>
2147		`:p.E}};hI.tokens={"poster-overlay--background-color":"#000","poster-overlay--z-index":"1","poster-overlay--object-fit":"contain",responsive:{}},hI.styles=[dI],hI=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2147)([p_],hI);class mI{get visible(){const t=this.host.localState?.startupOverlays?.networkAttribution;return t?.isVisible??!1}get hasNetworkAttribution(){const{watermarkImageUrl:t,artworkType:e}=this.host.streamController?.value??{};return!!t&&"subtitle"!==e}get isMiniPlayer(){return this.host.localState?.playerMode?.isMiniPlayer??!1}get state(){return{visible:this.visible,hasNetworkAttribution:this.hasNetworkAttribution,isMiniPlayer:this.isMiniPlayer}}constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}}const gI=Wb("\n\t:host {\n\t\t--img-pos-small: 30px;\n\t\t--img-pos-med: 24px;\n\t\t--img-pos-large: 48px;\n\t\t--img-size-large: 72px;\n\t\t--img-size: 32px;\n\t}\n\n\t.network-attribution-container {\n\t\tposition: absolute;\n\t\tblock-size: 100%;\n\t\tinline-size: 100%;\n\t\tinset-inline-end: 0;\n\t\tinset-block-start: 0;\n\t\tpointer-events: none;\n\t}\n\n\t.network-attribution-container img {\n\t\tposition: absolute;\n\t\tinset-block-end: var(--img-pos-med);\n\t\tinset-inline-end: var(--img-pos-med);\n\t\tblock-size: var(--img-size);\n\t\tinline-size: var(--img-size);\n\t\topacity: 0.5;\n\t}\n\n\t@media screen and (max-width: 768px) {\n\t\t.network-attribution-container img {\n\t\t\tinset-block-end: var(--img-pos-small);\n\t\t\tinset-inline-end: var(--img-pos-small);\n\t\t}\n\t}\n\n\t@media screen and (min-width: 1024px) {\n\t\t.network-attribution-container img {\n\t\t\tinset-block-end: var(--img-pos-large);\n\t\t\tinset-inline-end: var(--img-pos-large);\n\t\t\tblock-size: var(--img-size-large);\n\t\t\tinline-size: var(--img-size-large);\n\t\t}\n\t}\n\n\t.network-attribution-container.mini img {\n\t\tinset-block-end: 10px;\n\t\tinset-inline-end: 10px;\n\t\tblock-size: 24px;\n\t\tinline-size: 24px;\n\t}\n");var vI=Object.defineProperty;const fI={watermarkImageUrl:null,networkAttributionAltText:null,artworkType:null,skipOverlayVisible:!1,isCasting:!1},bI=t=>{const{playbackCriteria:e,overlays:n,casting:i}=t,r=e?.current?.metadata;return{watermarkImageUrl:r?.networkAttribution?.watermarkImageUrl??null,networkAttributionAltText:r?.networkAttribution?.ttsText??null,artworkType:r?.networkAttribution?.artworkType??null,skipOverlayVisible:n?.skip?.visible??!1,isCasting:i?.isCasting??!1}},_I=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,bI,fI),this.controller=new mI(this),this.altText=""}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({networkAttributionOverlayOpen:t.startupOverlays?.networkAttribution?.isVisible??!1,isMiniPlayer:t.playerMode?.isMiniPlayer??!1,isCastingNormalMode:t.playerMode?.isCastingNormalMode??!0,controlsVisible:t.overlayState?.areControlsVisible??!1}))),this.controller.hostConnected()}disconnectedCallback(){super.disconnectedCallback(),this.controller.hostDisconnected(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}render(){const{visible:t,hasNetworkAttribution:e,isMiniPlayer:n}=this.controller.state,{watermarkImageUrl:i,networkAttributionAltText:r}=this.streamController.value,o={"network-attribution-container":!0,fadeIn:t,visible:t,mini:n},a=Dy({src:i??"",className:"network-attribution",altText:this.altText||r||""}),s=p.x`<div class=${My(o)}>
2148			${a}
2149		</div>`;return Q_(t&&e,(()=>s),(()=>p.E))}};_I.styles=[qb,gI];let EI=_I;((t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);o&&vI(e,n,o)})([(0,p.n)({type:String})],EI.prototype,"altText");class yI{get visible(){const t=this.host.localState?.startupOverlays?.serviceAttribution;return t?.isVisible??!1}get hasServiceAttribution(){const t=this.host.streamController?.value?.serviceAttributionImageUrl;return!(!t&&!this.host.defaultImageUrl)}get isMiniPlayer(){return this.host.localState?.playerMode?.isMiniPlayer??!1}get state(){return{visible:this.visible,hasServiceAttribution:this.hasServiceAttribution,isMiniPlayer:this.isMiniPlayer}}constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}}const SI=Wb("\n\t@keyframes fadeIn {\n\t\tfrom {\n\t\t\topacity: 0;\n\t\t}\n\t\tto {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t.overlay-service-attribution-container {\n\t\tblock-size: var(--height);\n\t\tinline-size: var(--width);\n\t\tmargin: 20px 0 0 0;\n\t\tposition: absolute;\n\t\tinset-inline-end: 38px;\n\t\tinset-block-start: 24px;\n\t\tpointer-events: none;\n\t\tz-index: 1;\n\t}\n\n\t.overlay-service-attribution-container.visible {\n\t\topacity: 1;\n\t}\n\n\t.overlay-service-attribution-container.fadeIn {\n\t\tanimation: fadeIn 0.6s cubic-bezier(0.76, 0, 0.24, 1);\n\t}\n\n\t.overlay-service-attribution-container img {\n\t\tblock-size: auto;\n\t\tinline-size: 100%;\n\t}\n\n\t.overlay-service-attribution-container.mini {\n\t\tinline-size: 6vw;\n\t\tinset-inline-end: 20px;\n\t\tinset-block-start: 5px;\n\t}\n");var TI=Object.defineProperty,CI=Object.getOwnPropertyDescriptor,wI=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?CI(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&TI(e,n,o),o};const AI={serviceAttributionImageUrl:null},II=t=>{const{playbackCriteria:e}=t,n=e?.current?.metadata;return{serviceAttributionImageUrl:n?.serviceAttributionImageUrl??null}};let OI=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,II,AI),this.controller=new yI(this),this.altText="",this.defaultImageUrl=null}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({serviceAttributionOverlayOpen:t.startupOverlays?.serviceAttribution?.isVisible??!1,isMiniPlayer:t.playerMode?.isMiniPlayer??!1,controlsVisible:t.overlayState?.areControlsVisible??!1})));const{Controller:t}=n_(this);t&&(this.controller=new t(this)),this.controller.hostConnected()}disconnectedCallback(){super.disconnectedCallback(),this.controller.hostDisconnected(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}render(){const{visible:t,hasServiceAttribution:e,isMiniPlayer:n}=this.controller.state,{serviceAttributionImageUrl:i}=this.streamController.value,r=i||this.defaultImageUrl,o={"overlay-service-attribution-container":!0,"fadeIn visible":!0,mini:n},a=Dy({src:r??"",className:"service-attribution",altText:this.altText}),s=p.x`<div class=${My(o)}>
2150			${a}
2151		</div>`;return Q_(t&&e,(()=>s),(()=>p.E))}};OI.tokens={responsive:{height:"51px",width:"93px",extraSmall:{width:"51px",height:"28px"}}},OI.styles=[SI],wI([(0,p.n)({type:String})],OI.prototype,"altText",2),wI([(0,p.n)({type:String})],OI.prototype,"defaultImageUrl",2),OI=wI([p_],OI);const RI=p.i`
2152	@keyframes toastNotificationShiftFadeIn {
2153		from {
2154			opacity: 0;
2155			transform: translateY(8px);
2156		}
2157
2158		to {
2159			opacity: 1;
2160			transform: translateY(0);
2161		}
2162	}
2163
2164	@keyframes toastNotificationShiftFadeOut {
2165		from {
2166			opacity: 1;
2167			transform: translateY(0);
2168		}
2169
2170		to {
2171			opacity: 0;
2172			transform: translateY(8px);
2173		}
2174	}
2175
2176	.toast-notification__container {
2177		position: var(--container--position);
2178		top: var(--container--top);
2179		bottom: var(--container--bottom);
2180		font-size: var(--container--font-size);
2181		font-weight: var(--container--font-weight);
2182		line-height: var(--container--line-height);
2183		color: var(--container--color);
2184		align-items: var(--container--align-items);
2185		pointer-events: var(--container--pointer-events);
2186		display: var(--container--display);
2187		width: var(--container--width);
2188		height: var(--container--height);
2189		justify-content: var(--container--justify-content);
2190		z-index: var(--container--z-index);
2191		opacity: 0;
2192
2193		&.visible {
2194			opacity: 1;
2195			animation-name: var(--animation-name);
2196			animation-duration: var(--animation-duration);
2197			animation-timing-function: var(--animation-timing);
2198			animation-delay: var(--animation-delay, 0s);
2199			animation-fill-mode: var(--animation-fill-mode, none);
2200		}
2201
2202		&.hidden {
2203			opacity: 0;
2204			animation-name: var(--animation-name--hidden);
2205			animation-duration: var(--animation-duration--hidden);
2206			animation-timing-function: var(--animation-timing--hidden);
2207			animation-delay: var(--animation-delay--hidden, 0s);
2208			animation-fill-mode: var(--animation-fill-mode--hidden, none);
2209		}
2210	}
2211	.toast-notification__container.with-session {
2212		margin: var(--container_with-session--margin);
2213		justify-content: var(--container_with-session--justify-content);
2214		width: var(--container_with-session--width);
2215	}
2216	.toast-notification__container__notification {
2217		margin: var(--container__notification--margin);
2218		margin-bottom: var(--container__notification--margin-bottom);
2219		letter-spacing: var(--container__notification--letter-spacing);
2220		background-color: var(--container__notification--background-color);
2221		padding: var(--container__notification--padding);
2222		border-radius: var(--container__notification--border-radius);
2223	}
2224	.toast-notification__container__notification.with-session {
2225		margin-bottom: var(--container__notification_with-session--margin-bottom);
2226	}
2227
2228	:host(:lang(ar)) .toast-notification__container__notification {
2229		letter-spacing: normal;
2230	}
2231`,xI=new Set(["quick-rewind","quick-fast-forward","timeline"]);let LI=class{constructor(t,e){this.toastMap={[hc]:{key:Xl.MEDIA.OVERLAYS.TOAST_NOTICE_AD_BOUNDARY,fallback:"Your video will continue from this point after the break.",duration:null},[mc]:{key:Xl.MEDIA.OVERLAYS.TOAST_NOTICE_SCRUB_DURING_INTRO,fallback:"Your video will start from here after the intro.",duration:null},[pc]:{key:Xl.MEDIA.OVERLAYS.TOAST_NOTICE_LIVE_BACK_EDGE,fallback:"Beginning of navigation window",duration:3e3},[uc]:{key:Xl.MEDIA.OVERLAYS.TOAST_NOTICE_LIVE_FRONT_EDGE,fallback:"You are live",duration:3e3},[gc]:{key:Xl.MEDIA.OVERLAYS.PLAYER_CONTROLS_DISABLED_LIVE_RESOURCE_APPLICATION,fallback:"Controls disabled until event begins",duration:3e3},[vc]:{key:Xl.MEDIA.OVERLAYS.PLAYER_CONTROLS_DISABLED,fallback:"Controls disabled",duration:3e3},[fc]:{key:Xl.MEDIA.OVERLAYS.NOTICE_LIVE_NO_SEEK,fallback:"Seeking is not available for this program",duration:3e3},[bc]:{key:Xl.MEDIA.CONTROLS.SUBTITLES_NOT_AVAILABLE,fallback:"Captions not available",duration:2e3}},this.timeoutDuration=null,(this.host=t).addController(this),this.streamController=e.streamController}set toastData(t){this.host.toastData?.key===t?.key&&this.host.toastData?.fallback===t?.fallback&&this.host.toastData?.duration===t?.duration||(this.host.toastData=t)}get toastData(){return this.host.toastData}hostConnected(){this.processState()}hostDisconnected(){}hostUpdated(){this.processState()}shouldProcessScrubbingToasts(){return!0}shouldSuppressProgressBarPreviewWhileToastOpen(){return!1}processState(){const{isInterstitialPlaying:t,placementSubType:e,scrubbing:n,expectedSeekResult:i,isPretune:r,isLive:o}=this.streamController.value,a=this.host.localState?.disabledControl?.clicked??!1,s=this.host.localState?.disabledControl?.type??null;this.shouldProcessScrubbingToasts()&&this.handleScrubbingToasts({scrubbing:n,expectedSeekResult:i,isPretune:r,placementSubType:e,isLive:o}),this.handleDisabledControls({disabledControlClick:a,disabledControlType:s,isPretune:r,isInterstitialPlaying:t,isLive:o})}handleScrubbingToasts({scrubbing:t,expectedSeekResult:e,isPretune:n,placementSubType:i,isLive:r}){if(t)if(n){const{noSeek:t}=this.streamController.value;this.toastData=this.getDisabledToast(t?vc:gc),this.timeoutDuration=this.toastData.duration}else r||(i===ec?(this.toastData={...this.toastMap[mc],timeoutDismissals:()=>[this.streamController.value.scrubbing]},this.timeoutDuration=this.toastData.duration):"DEFERRED"===e&&(this.toastData={...this.toastMap[hc],timeoutDismissals:()=>[this.streamController.value.scrubbing]},this.timeoutDuration=this.toastData.duration))}handleDisabledControls({disabledControlClick:t,disabledControlType:e,isPretune:n,isInterstitialPlaying:i,isLive:r}){if(!t)return;if("closed-captions-unavailable"===e)return this.toastData=this.getDisabledToast(bc),this.timeoutDuration=this.toastData?.duration,void this.host.localState?.updateDisabledControl(!1,null);const{noSeek:o}=this.streamController.value,a=null!=(s=e)&&xI.has(s);var s;if(o&&!i&&a)return this.toastData=this.getDisabledToast(vc),this.timeoutDuration=this.toastData?.duration,void this.host.localState?.updateDisabledControl(!1,null);a?n?this.toastData=this.getDisabledToast(gc):i?this.toastData=this.getDisabledToast(vc):"quick-rewind"===e?this.toastData={...this.toastMap[pc],timeoutDismissals:()=>[]}:"quick-fast-forward"===e&&r&&(this.toastData={...this.toastMap[uc],timeoutDismissals:()=>[]}):this.toastData=this.getDisabledToast(vc),this.timeoutDuration=this.toastData?.duration,this.host.localState?.updateDisabledControl(!1,null)}getDisabledToast(t){return{...this.toastMap[t],timeoutDismissals:()=>[]}}};var kI=Object.defineProperty,PI=Object.getOwnPropertyDescriptor,DI=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?PI(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&kI(e,n,o),o};const NI={isInterstitialPlaying:!1,placementSubType:null,hasCurrentSession:!1,scrubbing:!1,expectedSeekResult:null,isPretune:!1,isLive:!1,isVNextPlayerEnabled:!1,noSeek:!1},MI=t=>{const{interstitials:e,timeline:n,streamDetails:i,isPretune:r,playback:o}=t,{isInterstitialPlaying:a,currentSession:s,hasCurrentSession:l}=e??{},{placementSubType:c}=s??{},{scrubResult:d}=n??{},{scrubbing:u,expectedSeekResult:p}=d??{},{isInPretune:h}=r??{},{isLive:m,noSeek:g}=i??{};return{isInterstitialPlaying:a??!1,placementSubType:c??null,hasCurrentSession:l??!1,scrubbing:u??!1,expectedSeekResult:p??null,isPretune:h??!1,isLive:m??!1,isVNextPlayerEnabled:Boolean(o?.clients?.playerFeatureFlags?.isVNextPlayerEnabled)??!1,noSeek:g??!1}};let UI=class extends pt{constructor(){super(),this.streamController=new G_(this,MI,NI),this.unsubscribeFromLocalState=null,this.restartFromBeginning=!0,this.toastData=null;const t=n_(this).Controller??LI;this.controller=new t(this,{streamController:this.streamController})}get timeoutDuration(){return this.controller.timeoutDuration}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({disabledControlClicked:t.disabledControl.clicked,disabledControlType:t.disabledControl.type})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState?.()}getTimeoutDismissals(){return this.toastData?.timeoutDismissals()||[]}updateVisibility(){this.toastData=null}updated(t){super.updated(t),t.has("toastData")&&this.toastData&&(this.toastData.duration&&this.startTimeout(),this.commandBus?.dis
2231patchCommand(Ql.OVERLAY_EVENT,{overlayName:Rf,type:kf,localState:this.localState,suppressesProgressScrubPreview:this.controller.shouldSuppressProgressBarPreviewWhileToastOpen()})),t.has("toastData")&&!this.toastData&&this.commandBus?.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:Rf,type:Pf,localState:this.localState})}render(){if(!this.toastData)return p.E;const{key:t,fallback:e}=this.toastData,{hasCurrentSession:n}=this.streamController.value,i=this.dictionary.translate(t,e),r=!!i,o="toast-notification__container";return p.x`
2232			<div
2233				class="${o} ${r?"visible":"hidden"} ${n?"with-session":""}"
2234			>
2235				${r&&p.x`
2236						<div
2237							class="${o}__notification locale-metadata-heavy ${n?"with-session":""}"
2238						>
2239							${i}
2240						</div>
2241					`}
2242			</div>
2243		`}};UI.tokens={"container--position":"absolute","container--top":"0","container--bottom":"0","container--pointer-events":"none","container--font-size":"12px","container--color":"white","container--font-weight":"bold","container--display":"flex","container--align-items":"flex-end","container--justify-content":"center","container--line-height":"unset","container--width":"100%","container--height":"100%","container__notification--background-color":"transparent","container__notification--margin-bottom":"15px","container__notification--letter-spacing":"unset","container__notification--padding":"0px","container__notification--margin":"0px","container__notification--border-radius":"0px","container_with-session--margin":"0 9.4em","container_with-session--justify-content":"unset","container_with-session--width":"100%","container--z-index":"11","container__notification_with-session--margin-bottom":"21px",responsive:{}},UI.styles=[qb,RI],DI([v()],UI.prototype,"toastData",2),UI=DI([p_,a_],UI);var BI,VI,FI={},zI={};function $I(){if(VI)return BI;VI=1;var t={},e={};[{n:"undefined",f:c,s:"be undefined"},{n:"null",f:function(t){return null===t},s:"be null"},{n:"assigned",f:d,s:"be assigned"},{n:"primitive",f:function(t){switch(t){case null:case void 0:case!1:case!0:return!0;default:return"string"==typeof t||"number"==typeof t||o&&"symbol"==typeof t}},s:"be primitive type"},{n:"contains",f:A,s:"contain {e}"},{n:"in",f:function(t,e){return A(e,t)},s:"be in {e}"},{n:"containsKey",f:I,s:"contain key {e}"},{n:"keyIn",f:function(t,e){return I(e,t)},s:"be key in {e}"},{n:"infinity",f:function(t){return t===Number.NEGATIVE_INFINITY||t===Number.POSITIVE_INFINITY},s:"be infinity"},{n:"number",f:u,s:"be Number"},{n:"integer",f:p,s:"be integer"},{n:"float",f:function(t){return u(t)&&t%1!=0},s:"be non-integer number"},{n:"even",f:function(t){return p(t)&&t%2==0},s:"be even number"},{n:"odd",f:function(t){return p(t)&&t%2!=0},s:"be odd number"},{n:"greater",f:h,s:"be greater than {e}"},{n:"less",f:m,s:"be less than {e}"},{n:"between",f:function(t,e,n){return e<n?h(t,e)&&t<n:m(t,e)&&t>n},s:"be between {e} and {e2}"},{n:"greaterOrEqual",f:g,s:"be greater than or equal to {e}"},{n:"lessOrEqual",f:v,s:"be less than or equal to {e}"},{n:"inRange",f:function(t,e,n){return e<n?g(t,e)&&t<=n:v(t,e)&&t>=n},s:"be in the range {e} to {e2}"},{n:"positive",f:function(t){return h(t,0)},s:"be positive number"},{n:"negative",f:function(t){return m(t,0)},s:"be negative number"},{n:"string",f:f,s:"be String"},{n:"emptyString",f:function(t){return f(t)&&""===t},s:"be empty string"},{n:"nonEmptyString",f:b,s:"be non-empty string"},{n:"match",f:function(t,e){return f(t)&&y(e,RegExp)&&!!t.match(e)},s:"match {e}"},{n:"boolean",f:function(t){return S(t,Boolean)},s:"be Boolean"},{n:"object",f:_,s:"be Object"},{n:"emptyObject",f:function(t){return _(t)&&!E(t,(function(){return!0}))},s:"be empty object"},{n:"nonEmptyObject",f:function(t){return _(t)&&E(t,(function(){return!0}))},s:"be non-empty object"},{n:"inheritance",f:function(t,e){try{return d(t)&&t.prototype instanceof e}catch(t){return!1}},s:"inherit from {t}"},{n:"instanceStrict",f:y,s:"be instanceof {t}"},{n:"thenable",f:function(t){return d(t)&&O(t.then)},s:"be promise-like"},{n:"instance",f:S,s:"be {t}"},{n:"like",f:T,s:"be like {e}"},{n:"array",f:function(t){return Array.isArray(t)},s:"be Array"},{n:"emptyArray",f:function(t){return Array.isArray(t)&&0===t.length},s:"be empty array"},{n:"nonEmptyArray",f:function(t){return Array.isArray(t)&&t.length>0},s:"be non-empty array"},{n:"arrayLike",f:C,s:"be array-like"},{n:"iterable",f:w,s:"be iterable"},{n:"date",f:function(t){return y(t,Date)&&p(t.getTime())},s:"be valid Date"}
2243,{n:"function",f:O,s:"be Function"},{n:"hasLength",f:function(t,e){return d(t)&&u(e)&&t.length===e},s:"have length {e}"},{n:"throws",f:function(t){if(!O(t))return!1;try{t()}catch(t){return!0}return!1},s:"throw"},{n:"arrayBuffer",f:function(t){return l&&y(t,ArrayBuffer)},s:"be ArrayBuffer"},{n:"arrayBufferView",f:function(t){return l&&ArrayBuffer.isView(t)},s:"be ArrayBufferView"}].forEach((function(n){var i=n.n;t[i]="assert failed: expected {a} to "+n.s,e[i]=n.f}));var n=V(P,N),i=V(M,U),r=V((function(t){var e=function(){return!!i.assigned(arguments[0])||t.apply(null,arguments)};return e.l=t.length,e.m=!0,e}),(function(t){return!1===d(t)||t}));n.not=z(P,i,"not "),n.maybe=z(P,r,"maybe "),["array","arrayLike","iterable","object"].forEach((function(t){e[t].of=F([B.bind(null,null),e[t],e,{},""]),n[t].of=z(P,e[t].of),i[t].of=z(M,e[t].of),r[t].of=F([B.bind(null,"maybe"),e[t],e,{},""]),n.maybe[t].of=z(P,r[t].of),n.not[t].of=z(P,i[t].of)}));var o="function"==typeof Symbol,a="function"==typeof Map,s="function"==typeof Set,l="undefined"!=typeof ArrayBuffer;function c(t){return void 0===t}function d(t){return null!=t}function u(t){return S(t,Number)&&t>Number.NEGATIVE_INFINITY&&t<Number.POSITIVE_INFINITY}function p(t){return u(t)&&t%1==0}function h(t,e){return u(t)&&u(e)&&t>e}function m(t,e){return u(t)&&u(e)&&t<e}function g(t,e){return u(t)&&u(e)&&t>=e}function v(t,e){return u(t)&&u(e)&&t<=e}function f(t){return S(t,String)}function b(t){return f(t)&&""!==t}function _(t){return"[object Object]"===Object.prototype.toString.call(t)}function E(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n]))return!0;return!1}function y(t,e){try{return t instanceof e}catch(t){return!1}}function S(t,e){try{return y(t,e)||t.constructor.name===e.name||Object.prototype.toString.call(t)==="[object "+e.name+"]"}catch(t){return!1}}function T(t,e){var n=d(t),i=d(e);if(!n&&i||n&&!i)return!1;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(!1===Object.prototype.hasOwnProperty.call(t,r)||typeof t[r]!=typeof e[r])return!1;if(_(t[r])&&!1===T(t[r],e[r]))return!1}return!0}function C(t){return d(t)&&t.length>=0}function w(t){return o?d(t)&&O(t[Symbol.iterator]):C(t)}function A(t,e){if(!d(t))return!1;if(s&&y(t,Set))return t.has(e);if(f(t))return-1!==t.indexOf(e);if(o&&t[Symbol.iterator]&&O(t.values)){var n,i=t.values();do{if((n=i.next()).value===e)return!0}while(!n.done);return!1}return E(t,(function(t,n){return n===e}))}function I(t,e){return!!d(t)&&(a&&y(t,Map)?t.has(e):!(w(t)&&!u(+e))&&Object.prototype.hasOwnProperty.call(t,e))}function O(t){return"function"==typeof t}function R(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function x(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return e;return!e}function L(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];if(_(i)&&L(i,e)===e)return e;if(i===e)return e}return!e}function k(t,e){return R(e,(function(e,n){t[e]=n})),t}function P(t,e){return function(){var n=arguments,i=t.l||t.length,r=n[i],o=n[i+1];return N(t.apply(null,n),b(r)?r:e.replace("{a}",D(n[0])).replace("{e}",D(n[1])).replace("{e2}",D(n[2])).replace("{t}",(function(){var t=n[1];return t&&t.name?t.name:t})),O(o)?o:TypeError),n[0]}}function D(t){return function(){return f(t)?'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"':t&&!0!==t&&t.constructor&&!y(t,RegExp)&&"number"!=typeof t?t.constructor.name:t}}function N(t,e,n){if(t)return t;throw new(n||Error)(e||"assert failed")}function M(t){var e=function(){return U(t.apply(null,arguments))};return e.l=t.length,e}function U(t){return!t}function B(t,e,n){var r=function(){var r=arguments[0];if("maybe"===t&&i.assigned(r))return!0;if(!e(r))return!1;r=function(t,e){switch(t){case C:return Array.prototype.slice.call(e);case _:return Object.keys(e).map((function(t){return e[t]}));default:return e}}(e,r);var o=Array.prototype.slice.call(arguments,1);try{if(Array.isArray(r))for(var a=0;a<r.length;a++){var s=r[a];if(("maybe"!==t||d(s)&&n!==c)&&!n.apply(null,[s].concat(o)))throw Error}else r.forEach((function(e){if(("maybe"!==t||d(e))&&!n.apply(null,[e].concat(o)))throw Error}))}catch(t){return!1}return!0};return r.l=n.length,r}function V(t,n){return F([t,e,n,""])}function F(e){var n=e.shift(),i=e.pop(),r=e.pop();return R(e.pop(),(function(o,a){var s=t[o];s&&i&&(s=s.replace("to",i+"to")),Object.defineProperty(r,o,{configurable:!1,enumerable:!0,writable:!1,value:n.apply(null,e.concat(a,s))})})),r}function z(t,e,n){return F([t,e,{},n])}var $=k({map:function t(e,r){var o;if(o=Array.isArray(e)?[]:{},O(r))R(e,(function(t,e){o[t]=r(e)}));else{!1===Array.isArray(r)&&n.object(r);var a=Object.keys(e||{});R(r,(function(n,r){a.some((function(t,e){return t===n&&(a.splice(e,1),!0)})),O(r)?i.assigned(e)?o[n]=!!r.m:o[n]=r(e[n]):o[n]=t(e[n],r)}))}return o},all:function(t){return Array.isArray(t)?x(t,!1):(n.object(t),L(t,!1))},any:function(t){return Array.isArray(t)?x(t,!0):(n.object(t),L(t,!0))}},e),H=k($,{assert:n,not:i,maybe:r});return BI={Check:H}}var HI,GI,YI={},jI={};function KI(){if(HI)return jI;HI=1,Object.defineProperty(jI,"__esModule",{value:!0}),jI.Logger=void 0;var t=$I();function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n,i,r,o,a=(n=function e(n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];var a;t.Check.function(n[e])?n[e].apply(n,r):(a=console)[e].apply(a,r)};e.methods.forEach((function(e){(t.Check.not.assigned(n)||t.Check.not.function(n[e]))&&console.warn('Provided logger is missing the expected "'.concat(e,'" function, falling back to console.')),i[e]=r.bind(null,e)}))},Object.defineProperty(n,"prototype",{writable:!1}),n);return jI.Logger=a,i=a,o=["warn"],(r=function(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,n);if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===e(n)?n:String(n)}(r="methods"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,jI}function WI(){if(GI)return YI;GI=1,Object.defineProperty(YI,"__esModule",{value:!0}),YI.Config=void 0;var t=$I(),e=KI();function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,r,o=TypeError,a=function(){function a(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a)}var s,l;return s=a,l=[{key:"DefaultError",get:function(){return o}},{key:"ErrorType",get:function(){return i},set:function(e){if(!t.Check.instance(e.prototype,Error))throw TypeError("Config.ErrorType expected a Type that inherits from Error.");i=e}},{key:"logger",get:function(){return r},set:function(t){r=new e.Logger(t)}},{key:"setup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.Check.not.object(e)||(t.Check.assigned(e.ErrorType)&&(a.ErrorType=e.ErrorType),t.Check.assigned(e.logger)&&(a.logger=e.logger))}},{key:"reset",value:function(){a.resetErrorType(),a.resetLogger()}}
2243,{key:"resetErrorType",value:function(){a.ErrorType=o}},{key:"resetLogger",value:function(){a.logger=console}}],l&&function(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===n(o)?o:String(o)),r)}var o}(s,l),Object.defineProperty(s,"prototype",{writable:!1}),a}();return YI.Config=a,a.reset(),YI}var qI,XI={},ZI={},QI={};function JI(){return qI||(qI=1,Object.defineProperty(QI,"__esModule",{value:!0}),QI.defineProperty=function(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1})}),QI}var tO,eO,nO,iO={},rO={},oO={},aO={},sO={};function lO(){if(tO)return sO;tO=1,Object.defineProperty(sO,"__esModule",{value:!0}),sO.logValidateCreator=function(e,n){var i=n.typeName,r=n.isOptional;return(0,t.defineProperty)(e,"warn",(function(t,n){e(t,n,"warn")})),(0,t.defineProperty)(e.warn,"isLogging",!0),(0,t.defineProperty)(e.warn,"typeName",i),(0,t.defineProperty)(e.warn,"isOptional",r),(0,t.defineProperty)(e,"typeName",i),(0,t.defineProperty)(e,"isOptional",r),e};var t=JI();return sO}function cO(){if(eO)return aO;eO=1,Object.defineProperty(aO,"__esModule",{value:!0}),aO.extendValidateCreator=function(i,r){var o=r.name;return i=(0,n.logValidateCreator)(i,{typeName:o}),(0,e.defineProperty)(i,"optional",(0,n.logValidateCreator)((function(e,n,r,o){t.Check.not.assigned(e)||i(e,n,r,o)}),{typeName:o,isOptional:!0})),i};var t=$I(),e=JI(),n=lO();return aO}var dO,uO,pO,hO={},mO={},gO={};function vO(){if(uO)return mO;uO=1,Object.defineProperty(mO,"__esModule",{value:!0}),mO.checkValue=function(n,i,r,o){for(var a=r.messageBuilder,s=r.ErrorType,l=o||r.loggingFunc,c=arguments.length,d=new Array(c>4?c-4:0),u=4;u<c;u++)d[u-4]=arguments[u];var p=e.isValueOk.apply(void 0,[n,i].concat(d));if(!1===p){var h=a.buildMessage({value:n,type:i,expectedArgs:d});if(!l)throw new s(h);t.Config.logger[l](h)}return p};var t=WI(),e=function(){if(dO)return gO;dO=1,Object.defineProperty(gO,"__esModule",{value:!0}),gO.isValueOk=function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];var a,s=n.assert,l=n.isArray,c=n.validator,d=!0;return t.Check.function(c)?(l?(d=t.Check.assert.array(e))&&e.forEach((function(t){d=d&&c.apply(void 0,[t].concat(r))})):d=c.apply(void 0,[e].concat(r)),d):d=l?d&&(a=t.Check.array.of)[s].apply(a,[e].concat(r)):t.Check[s].apply(t.Check,[e].concat(r))};var t=$I();return gO}();return mO}var fO,bO,_O,EO={},yO={};function SO(){return _O||(_O=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=function(){if(nO)return oO;nO=1,Object.defineProperty(oO,"__esModule",{value:!0}),oO.customValidateCreator=function(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!1},o=arguments.length>2?arguments[2]:void 0,a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];var c=i.isArray;return(0,n.extendValidateCreator)((function(n,a,l){var d=a.ErrorType,u=a.userArguments,p=a.messageBuilder.buildMessage({value:n,type:i,message:o,expectedArgs:s});function h(t){var n=!1;try{n=!!(n=r.apply(void 0,[t,u].concat(s)))}catch(t){e.Config.logger.warn("TypeChecking",t)}if(!1===n){if(!l)throw new d(p);e.Config.logger[l](p)}}c?(t.Check.assert.array(n,p,d),n.forEach((function(t){return h(t)}))):h(n)}),i)};var t=$I(),e=WI(),n=cO();return oO}();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=function(){if(pO)return hO;pO=1,Object.defineProperty(hO,"__esModule",{value:!0}),hO.genericValidateCreator=function(r){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];var l=r.name;function c(n,i,o){if(t.Check.not.assigned(i))throw TypeError("typecheck(...) params expected Types.".concat(l," not Types.").concat(l,"()"));e.checkValue.apply(void 0,[n,r,i,o].concat(a))}return r.isExtensible?(0,n.extendValidateCreator)(c,r):(0,i.logValidateCreator)(c,{typeName:l})};var t=$I(),e=vO(),n=cO(),i=lO();return hO}();
2243Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=lO();Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var r=function(){if(fO)return EO;fO=1,Object.defineProperty(EO,"__esModule",{value:!0}),EO.objectValidateCreator=function(i,r){var o=i.isArray,a=t.Check.nonEmptyObject(r);return(0,n.extendValidateCreator)((function(t,n,s){if((0,e.checkValue)(t,i,n,s)&&a){var l=n.messageBuilder.setParentParams(r,o);o?t.forEach((function(t){return n.execute({objParams:r,parent:l,userData:t})})):n.execute({objParams:r,parent:l,userData:t})}}),i)};var t=$I(),e=vO(),n=cO();return EO}();Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=function(){if(bO)return yO;bO=1,Object.defineProperty(yO,"__esModule",{value:!0}),yO.skipValidateCreator=function(i){var r=i.name;return(0,n.logValidateCreator)((function(n,r,o){if(t.Check.not.assigned(r))throw TypeError("typecheck(...) params expected Types.skip not Types.skip()");var a=r.messageBuilder;if(o){var s=a.buildMessage({value:n,type:i});e.Config.logger[o](s)}}),{typeName:r})};var t=$I(),e=WI(),n=lO();return yO}();Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))}(rO)),rO}var TO,CO,wO={},AO={},IO={};function OO(){if(CO)return IO;CO=1,Object.defineProperty(IO,"__esModule",{value:!0}),IO.getArticle=function(n){switch(e(n)){case"string":case"number":case"function":case"boolean":return"a ";case"object":return function(e){if(t.Check.not.function(e.constructor))return"";switch(e.constructor.name.substr(0,1).toLowerCase()){case"a":case"e":case"i":case"o":case"u":return"an ";default:return"a "}}(n);default:return""}};var t=$I();function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}return IO}var RO,xO,LO={},kO={};function PO(){if(RO)return kO;RO=1,Object.defineProperty(kO,"__esModule",{value:!0}),kO.getTypeToString=function(n,i){return t.Check.not.assigned(n)||Number.isNaN(n)?t.Check.string(i)?i:String(n):t.Check.string(n)?n:t.Check.function(n)?function(n){var i,r="";switch(n){case Date:case String:case Number:case Boolean:r=n.name;break;default:if(t.Check.function(null===(i=n.prototype)||void 0===i?void 0:i.toString))try{r=n.prototype.toString()}catch(t){}}return e(r)?r:n.name||"a Function"}(n):function(t){var n,i="";try{i=t.toString()}catch(t){}return e(i)?i:(null===(n=t.constructor)||void 0===n?void 0:n.name)||"an Object"}(n)};var t=$I();function e(t){return""!==t&&-1===t.indexOf("[object")}return kO}function DO(){if(xO)return LO;
2243xO=1,Object.defineProperty(LO,"__esModule",{value:!0}),LO.getTypeName=function(n,i){return t.Check.not.assigned(n)||Number.isNaN(n)?t.Check.string(i)?i:String(n):t.Check.function(n)?function(t){return t.name||(0,e.getTypeToString)(t)}(n):function(t){var n;return(null===(n=t.constructor)||void 0===n?void 0:n.name)||(0,e.getTypeToString)(t)}(n)};var t=$I(),e=PO();return LO}var NO,MO={};function UO(){if(NO)return MO;NO=1,Object.defineProperty(MO,"__esModule",{value:!0}),MO.UserArgumentsType=void 0,MO.getUserArgumentsType=function(n){return t.Check.object(n)?e.object:t.Check.arrayLike(n)&&t.Check.not.string(n)?e.array:e.none};var t=$I(),e={object:1,array:2,none:0};return MO.UserArgumentsType=e,MO}var BO,VO,FO,zO={},$O={},HO={};function GO(){if(VO)return HO;VO=1,Object.defineProperty(HO,"__esModule",{value:!0}),HO.stringify=a;var t=PO();function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'"',"\\":"\\\\"};function r(t){return n.lastIndex=0,n.test(t)?'"'.concat(t.replace(n,(function(t){var e=i[t];return"string"==typeof e?e:"\\u".concat("0000".concat(t.charCodeAt(0).toString(16)).slice(-4))})),'"'):'"'.concat(t,'"')}function o(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(-1===i)return Object.keys(t).length>0?"{...}":"{}";var r=[],o=Object.keys(t);for(e=0;e<o.length&&(0===i||e<i);e++){var s=o[e];Object.prototype.hasOwnProperty.call(t,s)&&(n=a(t[s],-1))&&r.push("".concat(s,":").concat(n))}return 0===r.length?n="{}":(n="{".concat(r.join(", ")),i>0&&o.length>i?n+=", ...}":n+="}"),n}function a(n){var i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;switch(e(n)){case"string":return r(n);case"boolean":case"number":case"undefined":return String(n);case"function":return(0,t.getTypeToString)(n);case"object":if(null==n)return"null";switch(null===(i=n.constructor)||void 0===i?void 0:i.name){case"Boolean":case"Number":return String(n.valueOf());case"Array":return function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(-1===i)return t.length>0?"[...]":"[]";var r=[];for(e=0;e<t.length&&(0===i||e<i);e++){var o=t[e];r[e]=a(o,-1)||"null"}return 0===r.length?n="[]":(n="[".concat(r.join(", ")),i>0&&t.length>i?n+=", ...]":n+="]"),n}(n,s);case"Object":return o(n,s);case"String":return r(n.valueOf());default:if("function"==typeof n.toJSON)return r(n.toJSON());if("function"==typeof n.toString){var l=n.toString();if(""!==l&&-1===l.indexOf("[object"))return l}return o(n,s)}default:return""}}return HO}function YO(){if(FO)return $O;FO=1,Object.defineProperty($O,"__esModule",{value:!0}),$O.getValueName=function(o){var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).includeTypeName,s=void 0!==a&&a;if(t.Check.not.assigned(o)||Number.isNaN(o))return String(o);if(t.Check.function(o))return(0,i.getTypeToString)(o);if(t.Check.object(o)){var l=(0,i.getTypeToString)(o);if("Object"!==l&&"an Object"!==l)return l}var c=(0,r.stringify)(o);if(s){var d="".concat((0,e.getArticle)(o)).concat((0,n.getTypeName)(o));return c?"".concat(d,": ").concat(c):d}return c};var t=$I(),e=OO(),n=DO(),i=PO(),r=GO();return $O}var jO,KO,WO,qO,XO,ZO,QO,JO,tR={},eR={},nR={},iR={},rR={},oR={},aR={};function sR(){return JO||(JO=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=function(){if(TO)return AO;TO=1,Object.defineProperty(AO,"__esModule",{value:!0}),AO.createCustomValidator=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!1},i=arguments.length>2?arguments[2]:void 0;return e.expectArgs?function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t.customValidateCreator.apply(void 0,[e,n,i].concat(o))}.bind(e):(0,t.customValidateCreator)(e,n,i)};var t=SO();return AO}();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=JI();
2243Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=OO();Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var r=DO();Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=PO();Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=UO();Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=function(){if(BO)return zO;BO=1,Object.defineProperty(zO,"__esModule",{value:!0}),zO.getValue=function(e,n,i){switch((0,t.getUserArgumentsType)(e)){case t.UserArgumentsType.array:return e[n];case t.UserArgumentsType.object:return e[i];default:throw ReferenceError("typecheckParams(...) error in step2.")}};var t=UO();return zO}();Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var l=YO();Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=(jO||(jO=1,Object.defineProperty(tR,"__esModule",{value:!0}),tR.hasSuperclass=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=null!=t?Object.getPrototypeOf(t):null,n=null!=e?Object.getPrototypeOf(e):null;return null!=(null!=n?Object.getPrototypeOf(n):null)}),tR);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var d=(KO||(KO=1,Object.defineProperty(eR,"__esModule",{value:!0}),eR.isEveryParamNonRequired=function(t){return null!=t&&Object.keys(t).every((function(e){var n=t[e];return n&&(n.isOptional||n.isUndefinable)}))}),eR);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var u=function(){if(WO)return nR;WO=1,Object.defineProperty(nR,"__esModule",{value:!0}),nR.isObjectTypes=function(e){return!!t.Check.nonEmptyObject(e)&&Object.values(e).every((function(e){return t.Check.function(e)&&t.Check.string(e.typeName)}))};var t=$I();return nR}();Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var p=GO();Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=(qO||(qO=1,Object.defineProperty(iR,"__esModule",{value:!0}),iR.stringifyKeys=function(t){return Object.keys(t).map((function(t){return'"'.concat(t,'"')}))}),iR);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=(XO||(XO=1,Object.defineProperty(rR,"__esModule",{value:!0}),rR.stringifyRegExp=function(t){return t.source}),rR);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=function(){if(ZO)return oR;ZO=1,Object.defineProperty(oR,"__esModule",{value:!0}),oR.stringifyValues=function(e){return Object.values(e).map((function(e){return(0,t.stringify)(e)}))};var t=GO();return oR}();Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var v=(QO||(QO=1),aR);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}))}(wO)),wO}var lR,cR,dR,uR={},pR={};var hR,mR,gR,vR={};function fR(){if(hR)return vR;hR=1,Object.defineProperty(vR,"__esModule",{value:!0}),vR.Type=void 0;var t=GO();function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(){function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var r=null!=i?i:{},o=r.assert,a=void 0===o?e:o,s=r.singular,l=void 0===s?e:s,c=r.plural,d=void 0===c?"".concat(e,"s"):c,u=r.isArray,p=void 0!==u&&u,h=r.expectArgs,m=void 0!==h&&h,g=r.isExtensible,v=void 0===g||g,f=r.isArrayable,b=void 0===f||f,_=r.autoDisplayArgs,E=void 0===_||_,y=r.firstType,S=r.validator,T=r.operator,C=r.validateCreator,w=void 0===C?function(){return!1}:C,A=r.stringifyArgs,I=void 0===A?function(e){return(0,t.stringify)(e)}:A;this.name=e,this.assert=a,this.plural=d,this.isArray=p,this.singular=p?"an Array of ".concat(this.plural):l,this.firstType=y,this.validator=S,this.expectArgs=!!m,this.isExtensible=!!v,this.isArrayable=!!b,this.autoDisplayArgs=!!E,this.operator=T,this.validateCreator=w,this.stringifyArgs=I}var i,r;return i=n,r=[{key:"createValidator",value:function(){return this.expectArgs?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.validateCreator.apply(this,[this].concat(e))}.bind(this):this.validateCreator(this)}},{key:"toString",value:function(){for(var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.name,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if("custom"===this.name)return e;var o=this.singular;if(/{[a-k]}/.test(o))["a","b","c","d","e","f"].forEach((function(e,n){var r=i[n];if(void 0!==r){var a=t.stringifyArgs(r);o=o.replace(new RegExp("{".concat(e,"}"),"i"),a).trim()}else o=o.replace(new RegExp("{".concat(e,"}"),"i"),"").trim()}));else if(this.autoDisplayArgs&&i.length>0){var a=i.map((function(e){return"".concat(t.stringifyArgs(e))})).join();o+=": ".concat(a)}return o}}],r&&function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=function(t,n){if("object"!==e(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===e(o)?o:String(o)),r)}var o}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),n}();return vR.Type=n,vR}function bR(){if(mR)return ZI;mR=1,Object.defineProperty(ZI,"__esModule",{value:!0}),ZI.createTypes=function i(r){var a={};
2243return e.Asserts.forEach((function(e){var s=e.assertName,l=e.isArrayable;if(!r||!1!==l){var c=new n.Type(s,o(o({},e),{},{isArray:r}));if((0,t.defineProperty)(a,s,c.createValidator()),"array"===s){if(r)return;(0,t.defineProperty)(a.array,"of",i(!0))}}})),a};var t=JI(),e=function(){if(dR)return iO;dR=1,Object.defineProperty(iO,"__esModule",{value:!0}),iO.Asserts=void 0;var t=SO(),e=sR(),n=(cR||(cR=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=function(){if(lR)return pR;lR=1,Object.defineProperty(pR,"__esModule",{value:!0}),pR.dateStringValidator=function(e){return t.test(e)};var t=/^([+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([.,]\d+(?!:))?)?(\17[0-5]\d([.,]\d+)?)?(Z|([+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/;return pR}();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}))}(uR)),uR),i=[{assertName:"array",singular:"an Array",plural:"arrays",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"arrayBuffer",singular:"an ArrayBuffer",plural:"arrayBuffers",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"arrayBufferView",singular:"an ArrayBufferView",plural:"arrayBufferViews",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"assigned",singular:"an assigned value",plural:"assigned values",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"boolean",singular:"a Boolean",plural:"booleans",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"custom",expectArgs:!0,isArrayable:!1,validateCreator:t.customValidateCreator},{assertName:"date",singular:"a Date",plural:"dates",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"dateString",singular:"a String in ISO date format",plural:"strings in ISO date format",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator,validator:n.dateStringValidator},{assertName:"function",singular:"a Function",plural:"functions",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"greaterOrEqual",singular:"a Number greater or equal to {a}",plural:"numbers greater or equal to {a}",expectArgs:!0,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"in",singular:"one of [{a}]",plural:"one of [{a}]",expectArgs:!0,isArrayable:!0,stringifyArgs:e.stringifyValues,validateCreator:t.genericValidateCreator},{assertName:"inheritance",arrayLike:"inheritance",singular:"a type that inherits from {a}",plural:"types that inherit from {a}",expectArgs:!0,isArrayable:!0,stringifyArgs:e.getTypeToString,validateCreator:t.genericValidateCreator},{assertName:"instanceStrict",singular:"an instance of {a}",plural:"instances of {a}",expectArgs:!0,isArrayable:!0,stringifyArgs:e.getTypeToString,validateCreator:t.genericValidateCreator},{assertName:"integer",singular:"an integer",plural:"integers",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"keyIn",singular:"as a key in [{a}]",plural:"as keys in [{a}]",expectArgs:!0,isArrayable:!1,stringifyArgs:e.stringifyKeys,validateCreator:t.genericValidateCreator},{assertName:"like",singular:"an Object that matches {{a}}",plural:"objects that match {{a}}",expectArgs:!0,isArrayable:!1,stringifyArgs:e.stringifyKeys,validateCreator:t.genericValidateCreator},{assertName:"match",singular:"a String that matches /{a}/",plural:"strings that match /{a}/",expectArgs:!0,isArrayable:!1,stringifyArgs:e.stringifyRegExp,validateCreator:t.genericValidateCreator},{assertName:"nonEmptyObject",singular:"a non-empty Object",plural:"non-empty objects",expectArgs:!1,isArrayable:!0,validateCreator:t.genericValidateCreator},{assertName:"nonEmptyString",singular:"a non-empty String",plural:"non-empty strings",expectArgs:!1,isArrayable:!0,validateCreator:t.genericValidateCreator},{assertName:"number",singular:"a Number",plural:"numbers",expectArgs:!1,isArrayable:!0,validateCreator:t.genericValidateCreator},{assertName:"object",singular:"an Object",plural:"objects",expectArgs:!0,isArrayable:!0,validateCreator:t.objectValidateCreator},{assertName:"positive",singular:"a Number greater than 0",plural:"numbers greater than 0",expectArgs:!1,isArrayable:!1,validateCreator:t.genericValidateCreator},{assertName:"skip",singular:"a value",expectArgs:!1,isExtensible:!1,isArrayable:!1,validateCreator:t.skipValidateCreator},{assertName:"string",singular:"a String",plural:"strings",expectArgs:!1,isArrayable:!0,validateCreator:t.genericValidateCreator}];return iO.Asserts=i,iO}(),n=fR();function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2243e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e);if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===i(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}return ZI}var _R,ER={},yR={},SR={},TR={};function CR(){if(_R)return TR;_R=1,Object.defineProperty(TR,"__esModule",{value:!0}),TR.TypeChecker=void 0;var t=WI(),e=sR();function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(){function i(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n=e.messageBuilder,r=e.userArguments,o=e.objParams,a=e.ErrorType,s=void 0===a?t.Config.ErrorType:a,l=e.signature,c=e.loggingFunc;this.messageBuilder=n,this.userArguments=r,this.objParams=o,this.ErrorType=s,this.signature=l,this.loggingFunc=c}var r,o;return r=i,o=[{key:"execute",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.userData,r=void 0===i?this.userArguments:i,o=n.objParams,a=void 0===o?this.objParams:o,s=n.parent;Object.keys(a).forEach((function(n,i){var o=a[n];t.messageBuilder.setCurrentParam(n,s),o((0,e.getValue)(r,i,n),t)}))}}],o&&function(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===n(o)?o:String(o)),r)}var o}(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),i}();return TR.TypeChecker=i,TR}var wR,AR,IR={};function OR(){if(wR)return IR;function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}wR=1,Object.defineProperty(IR,"__esModule",{value:!0}),IR.TypeCheckerAtLeastOne=void 0;var e=$I(),n=sR();function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},i.apply(this,arguments)}function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=function(a){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}(p,a);var s,l,c,d,u=(c=p,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var e,n=o(c);if(d){var i=o(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(this,e)});function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),(e=u.call(this,t)).messageBuilder.methodSignature.params.atLeastOne=!0,e}return s=p,l=[{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(o(p.prototype),"execute",this).call(this,t);var r=t.userData,a=void 0===r?this.userArguments:r,s=t.objParams,l=void 0===s?this.objParams:s,c=!1;if(Object.keys(l).forEach((function(t,i){var r=(0,n.getValue)(a,i,t);e.Check.assigned(r)&&(c=!0)})),!1===c){var d=this.messageBuilder.buildCustomMessage("at least one parameter must be provided");throw new this.ErrorType(d)}}}],l&&function(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=function(e,n){if("object"!==t(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===t(o)?o:String(o)),r)}var o}(s.prototype,l),Object.defineProperty(s,"prototype",{writable:!1}),p}(CR().TypeChecker);return IR.TypeCheckerAtLeastOne=a,IR}function RR(){return AR||(AR=1,function(t){Object.defineProperty(t,"__esMo
2243dule",{value:!0});var e=CR();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=OR();Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))}(SR)),SR}var xR,LR={},kR={};function PR(){if(xR)return kR;xR=1,Object.defineProperty(kR,"__esModule",{value:!0}),kR.composeOverloading=function(n){var i,r,o,a,s,l="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"typecheck","(...)");switch(n.length){case 5:var c=e(n,5);i=c[0],r=c[1],o=c[2],a=c[3],s=c[4];break;case 4:if(t.Check.inheritance(n[3],Error))if(t.Check.function(n[0])||t.Check.string(n[0])){var d=e(n,4);r=d[0],o=d[1],a=d[2],s=d[3]}else{var u=e(n,4);i=u[0],o=u[1],a=u[2],s=u[3]}else{var p=e(n,4);i=p[0],r=p[1],o=p[2],a=p[3]}break;case 3:if(t.Check.inheritance(n[2],Error)){var h=e(n,3);o=h[0],a=h[1],s=h[2]}else if(t.Check.function(n[0])||t.Check.string(n[0])){var m=e(n,3);r=m[0],o=m[1],a=m[2]}else{var g=e(n,3);i=g[0],o=g[1],a=g[2]}break;case 2:var v=e(n,2);o=v[0],a=v[1];break;default:o=e(n,1)[0]}return{signature:l,object:i,method:r,c:o,d:a,ErrorType:s}};var t=$I();function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}return kR}var DR,NR,MR={},UR={},BR={},VR={};function FR(){if(NR)return VR;function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}return NR=1,Object.defineProperty(VR,"__esModule",{value:!0}),VR.buildExpectedMessage=function(e){var n,i=e.type,r=e.expectedArgs,o=void 0===r?[]:r,a=e.message,s=i.toString.apply(i,[a].concat(function(e){if(Array.isArray(e))return t(e)}(n=o)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));return"expected ".concat(s)},VR}var zR,$R={};function HR(){if(zR)return $R;zR=1,Object.defineProperty($R,"__esModule",{value:!0}),$R.buildReceivedMessage=function(e){var n=(0,t.getValueName)(e,{includeTypeName:!0});return"but received ".concat(n)};var t=YO();return $R}var GR,YR,jR,KR={},WR={},qR={};function XR(){if(GR)return qR;function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}GR=1,Object.defineProperty(qR,"__esModule",{value:!0}),qR.Param=void 0;var e=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.name,i=t.parent,r=void 0===i?null:i,o=t.isOptional,a=void 0!==o&&o;this.name=n,this.parent=r,this.isOptional=a,this.isArray=!1,this.params=null}var n,i;return n=e,(i=[{key:"isRequired",get:function(){return!1===this.isOptional}},{key:"isNonRequired",get:function(){return this.isOptional}},{key:"extension",get:function(){return this.isOptional?" or null or undefined":""}}
2243,{key:"toString",value:function(){var t=null!=this.parent?"".concat(this.parent.name,"."):"";return"".concat(t).concat(this.name)}}])&&function(e,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=function(e,n){if("object"!==t(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===t(o)?o:String(o)),r)}var o}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();return qR.Param=e,qR}function ZR(){if(YR)return WR;YR=1,Object.defineProperty(WR,"__esModule",{value:!0}),WR.Params=void 0;var t=$I(),e=XR();function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===n(o)?o:String(o)),r)}var o}var r=function(){function n(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var r=null!=i?i:{},o=r.parent,a=r.displayEtcetera,s=void 0!==a&&a,l=r.displayBrackets,c=void 0!==l&&l;t.Check.object(e)?this.params=n.toArray(e,o):this.params=[],this.displayBrackets=c,this.displayEtcetera=s,this.atLeastOne=!1}var r,o,a;return r=n,o=[{key:"length",get:function(){return this.params.length}},{key:"isSomeParamRequired",get:function(){return this.params.some((function(t){return t.isRequired}))}},{key:"isEveryParamNonRequired",get:function(){return this.length>0&&this.params.every((function(t){return t.isNonRequired}))}},{key:"map",value:function(t){return this.params.map(t)}},{key:"get",value:function(t){return this.params[t]}},{key:"toString",value:function(){var t=this,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params).map((function(e){return t.stringify(e)})),n=this.displayBrackets&&this.atLeastOne?"{":"",i=this.displayBrackets&&this.atLeastOne?"}":"";return"".concat(n).concat(e.join(", ")).concat(i)}},{key:"stringify",value:function(e){if(t.Check.not.assigned(e.params))return"".concat(e.name);var n=this.displayEtcetera?", ...":"",i=e.isArray?"[":"",r=e.isArray?"]":"",o=this.toString(e.params);return"".concat(i,"{").concat(o).concat(n,"}").concat(r)}}],a=[{key:"toArray",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null==t?[]:Object.keys(t).map((function(i){var r=t[i].isOptional;return new e.Param({name:i,parent:n,isOptional:r})}))}}],o&&i(r.prototype,o),a&&i(r,a),Object.defineProperty(r,"prototype",{writable:!1}),n}();return WR.Params=r,WR}function QR(){if(jR)return KR;jR=1,Object.defineProperty(KR,"__esModule",{value:!0}),KR.MessageBuilder=void 0;var t=ZR(),e=FR(),n=HR();function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),this.methodSignature=t,this.param=null}var o,a;return o=r,a=[{key:"setCurrentParam",value:function(t,e){this.param=this.methodSignature.findParam(t,e)}},{key:"setParentParams",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.param)throw ReferenceError("setParentParams(...) this.param is null. Call setCurrentParam() before.");return this.param.params=new t.Params(e,{parent:this.param}),this.param.isArray=n,this.param}},{key:"buildCustomMessage",value:function(t){return"".concat(this.methodSignature," ").concat(t,".")}},{key:"buildMessage",value:function(t){var i=t.value,r=(0,e.buildExpectedMessage)(t),o=(0,n.buildReceivedMessage)(i);return"".concat(this.methodSignature," ").concat(this.param," ").concat(r).concat(this.param.extension," ").concat(o,".")}}],a&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===i(o)?o:String(o)),r)}var o}(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();return KR.MessageBuilder=r,KR}var JR,tx,ex,nx,ix,rx={};function ox(){if(JR)return rx;JR=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.MethodSignature=void 0;var t=$I(),e=sR(),n=ZR();function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=t.object,o=void 0===i?null:i,a=t.method,s=void 0===a?null:a,l=t.objParams,c=void 0===l?null:l,d=t.displayBrackets,u=void 0!==d&&d,p=(0,e.hasSuperclass)(o)&&null==s;this.object=o,this.method=s,this.params=new n.Params(c,{displayEtcetera:
2243p,displayBrackets:u})}var o,a;return o=r,a=[{key:"name",get:function(){var n,i=(0,e.getTypeToString)(this.object,""),r=(0,e.getTypeToString)(this.method,"");return n=t.Check.nonEmptyString(i)&&t.Check.nonEmptyString(r)?".":"","".concat(i).concat(n).concat(r)}},{key:"parameters",get:function(){var e="",n="";return t.Check.nonEmptyString(this.name)?(e="(",n=")"):this.params.length>0&&(e="{",n="}"),"".concat(e).concat(this.params).concat(n)}},{key:"findParam",value:function(e){for(var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null!==(i=null==r?void 0:r.params)&&void 0!==i?i:this.params,a=null,s=0;s<o.length&&(a=o.get(s),t.Check.instanceStrict(a,n.Params)&&(a=this.findParam(e,r,a)),null==a||a.name!==e||a.parent!==r);s++);if(null==a)throw ReferenceError("findParam(...) not able to find param: ".concat(e,"."));return a}},{key:"toString",value:function(){return"".concat(this.name).concat(this.parameters)}}],a&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=function(t,e){if("object"!==i(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===i(o)?o:String(o)),r)}var o}(o.prototype,a),Object.defineProperty(o,"prototype",{writable:!1}),r}();return rx.MethodSignature=r,rx}function ax(){return nx||(nx=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=PR();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=function(){if(DR)return MR;DR=1,Object.defineProperty(MR,"__esModule",{value:!0}),MR.isUserInput=function(e){return t.Check.arrayLike(e)&&t.Check.not.string(e)||t.Check.object(e)};var t=$I();return MR}();Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=function(){if(ex)return UR;ex=1,Object.defineProperty(UR,"__esModule",{value:!0}),UR.validateArguments=function(i,r){var o=(0,n.composeOverloading)(i,r),a=o.signature,s=o.object,l=o.method,c=o.c,d=o.d,u=o.ErrorType,p=(0,e.getUserArgumentsType)(d);if(p===e.UserArgumentsType.none)throw TypeError("".concat(a," arguments expected an Array or an Object. Make sure you invoke typecheck correctly."));var h=p===e.UserArgumentsType.object,m=new t.MethodSignature({object:s,method:l,objParams:c,displayBrackets:h});return{signature:a,messageBuilder:new t.MessageBuilder(m),objParams:c,userArguments:d,ErrorType:u}};var t=(tx||(tx=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=FR();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=HR();Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=QR();
2243Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var r=ox();Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=ZR();Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=XR();Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}))}(BR)),BR),e=sR(),n=PR();return UR}();Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))}(LR)),LR}function sx(){if(ix)return yR;ix=1,Object.defineProperty(yR,"__esModule",{value:!0}),yR.typecheck=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=(0,e.validateArguments)(i);new t.TypeChecker(o).execute()};var t=RR(),e=ax();return yR}var lx,cx,dx,ux,px,hx={},mx={};function gx(){return ux||(ux=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=$I();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=WI();Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=function(){if(gR)return XI;gR=1,Object.defineProperty(XI,"__esModule",{value:!0}),XI.Types=void 0;var t=(0,bR().createTypes)();return XI.Types=t,XI}();
2243Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var r=(dx||(dx=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=sx();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in t&&t[n]===e[n]||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}}))}));var n=function(){if(lx)return hx;lx=1;var t=RR(),e=ax();return sx().typecheck.warn=function(){for(var n="warn",i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var a=(0,e.validateArguments)(r,"typecheck.".concat(n)),s=new t.TypeChecker(a);s.loggingFunc=n,s.execute()},hx}();Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=function(){if(cx)return mx;cx=1;var t=RR(),e=sx(),n=ax();return e.typecheck.atLeastOne=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=(0,n.validateArguments)(i,"typecheck.atLeastOne");new t.TypeCheckerAtLeastOne(o).execute()},mx}();
2243Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}))}(ER)),ER);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))}(zI)),zI}var vx=(px||(px=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=gx();Object.keys(e).forEach((function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}))}(FI)),FI);class fx{get visible(){const t=this.host.localState?.startupOverlays?.ratings;return t?.isVisible??!1}get hasRatings(){const t=this.host.streamController?.value?.ratings;return!!t}get hasServiceAttribution(){const t=this.host.streamController?.value?.serviceAttribution;return!!t}get isMiniPlayer(){return this.host.localState?.playerMode?.isMiniPlayer??!1}get state(){return{visible:this.visible,hasRatings:this.hasRatings,hasServiceAttribution:this.hasServiceAttribution,isMiniPlayer:this.isMiniPlayer}}constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}}const bx=Wb("\n\t/* === Animations === */\n\n\t@keyframes fadeIn {\n\t\tfrom { opacity: 0; }\n\t\tto { opacity: 1; }\n\t}\n\n\t/* === Host & Scrim === */\n\n\t:host {\n\t\theight: var(--host--height);\n\t\tmax-height: var(--host--max-height);\n\t\tmax-width: var(--host--max-width);\n\t\toverflow: var(--host--overflow);\n\t\tpointer-events: var(--host--pointer-events);\n\t\tposition: var(--host--position);\n\t\tinset-block-start: var(--host--top);\n\t\tinset-inline-start: var(--host--left);\n\t\twidth: var(--host--width);\n\t}\n\n\t:host(:not([ratings-visible]))::before {\n\t\tbackground-image: none;\n\t}\n\n\t:host::before {\n\t\tcontent: var(--host-before--content);\n\t\twidth: var(--host-before--width);\n\t\theight: var(--host-before--height);\n\t\tbackground-image: var(--host-before--background-image);\n\t\tbackground-color: var(--host-before--background-color);\n\t\tpointer-events: var(--host-before--pointer-events);\n\t\tposition: var(--host-before--position);\n\t\tinset-block-start: var(--host-before--top);\n\t\tinset-inline-start: var(--host-before--left);\n\t\tmin-height: var(--host-before--min-height);\n\t\tpadding-block-end: var(--host-before--padding-bottom);\n\t}\n\n\t/* === Layout Shell === */\n\n\t.ratings-overlay_container {\n\t\tbox-sizing: var(--container--box-sizing);\n\t\tdisplay: var(--container--display);\n\t\theight: var(--container--height);\n\t\twidth: var(--container--width);\n\t\tmax-height: var(--container--max-height);\n\t\tmax-width: var(--container--max-width);\n\t\tmin-width: var(--container--min-width);\n\t\tpointer-events: var(--container--pointer-events);\n\t\tposition: var(--container--position);\n\t\tflex-direction: var(--container--flex-direction);\n\t\tflex-wrap: var(--container--flex-wrap);\n\t\tjustify-content: var(--container--justify-content);\n\t\talign-items: var(--container--align-items);\n\t\talign-content: var(--container--align-content);\n\t\tinset-inline-start: var(--container--left);\n\t\tinset-block-start: var(--container--top);\n\t\tline-height: var(--container--line-height);\n\t\tcolor: var(--container--color);\n\t\tpadding: var(--container--padding);\n\t}\n\n\t.ratings-overlay_wrapper {\n\t\ttext-align: var(--wrapper--text-align);\n\t\torder: var(--wrapper--order);\n\t\tflex-grow: var(--wrapper--flex-grow);\n\t\talign-items: var(--wrapper--align-items);\n\t\tposition: var(--wrapper--position);\n\t\twidth: var(--wrapper--width);\n\t}\n\n\t.ratings-overlay_wrapper.visible {\n\t\topacity: 1;\n\t}\n\n\t.ratings-overlay_wrapper.fadeIn {\n\t\tanimation: fadeIn 0.6s cubic-bezier(0.76, 0, 0.24, 1);\n\t}\n\n\t.ratings-overlay_wrapper:before {\n\t\tcontent: none;\n\t}\n\n\t.ratings-overlay_wrapper.mini {\n\t\tfont-size: var(--wrapper--mini-font-size);\n\t}\n\n\t.ratings-content-wrapper {\n\t\tdisplay: var(--content-wrapper--display);\n\t\tflex-direction: var(--content-wrapper--flex-direction);\n\t\tborder-inline-start-width: var(--content-wrapper--border-left-width);\n\t\tborder-inline-start-style: var(--content-wrapper--border-left-style);\n\t\tborder-inline-start-color: var(--content-wrapper--border-left-color);\n\t\tpadding-inline-start: var(--content-wrapper--padding-left);\n\t\tmargin-block: var(--content-wrapper--margin-block);\n\t\tmargin-inline: var(--content-wrapper--margin-inline);\n\t\tgap: var(--content-wrapper--gap);\n\t\talign-self: flex-start;\n\t}\n\n\t.ratings-content-wrapper.mini {\n\t\tmargin-block-start: var(--content-wrapper--margin-block-start-mini);\n\t\tmargin-block-end: var(--content-wrapper--margin-block-end-mini);\n\t\tmargin-inline-start: var(--content-wrapper--margin-inline-start-mini);\n\t\tmargin-inline-end: var(--content-wrapper--margin-inline-end-mini);\n\t\tpadding-inline-start: var(--content-wrapper--padding-left-mini);\n\t}\n\n\t/* === Rating Row === */\n\n\t.rating-row {\n\t\tposition: var(--rating-container-position);\n\t\tborder-inline-start-width: var(--rating-container-border-left-width);\n\t\tborder-inline-start-style: var(--rating-container-border-left-style);\n\t\tborder-inline-start-color: var(--rating-container-border-left-color);\n\t\tmargin: var(--rating-container-margin);\n\t\tdisplay: var(--rating-display);\n\t\talign-items: flex-start;\n\t\tcolor: var(--rating-color);
2243\n\t\tfont-weight: var(--rating-font-weight);\n\t\twidth: var(--rating-width);\n\t}\n\n\t.rating-row.mini {\n\t\tmargin: var(--rating-container-margin-mini);\n\t}\n\n\t/*\n\t * Legacy alias: brand overrides (entertainment-ui, news-ui)\n\t * reference .guidelines-rating_icon directly.\n\t */\n\t.rating-badge,\n\t.guidelines-rating_icon {\n\t\twidth: var(--icon--width);\n\t\theight: var(--icon--height);\n\t\tmax-height: var(--icon--max-height);\n\t\tmax-width: var(--icon--max-width);\n\t\tmargin-block-start: var(--icon--margin-top);\n\t\talign-self: flex-start;\n\t}\n\n\t.rating-badge.mini,\n\t.guidelines-rating_icon.mini {\n\t\twidth: var(--icon--mini-width);\n\t\theight: var(--icon--mini-height);\n\t\tmax-height: var(--icon--mini-max-height);\n\t\tmax-width: var(--icon--mini-max-width);\n\t}\n\n\t.rating-text {\n\t\tdisplay: block;\n\t\tfont-weight: bold;\n\t\tborder-inline-start-width: var(--rating-text-border-left-width);\n\t\tborder-inline-start-style: var(--rating-text-border-left-style);\n\t\tborder-inline-start-color: var(--rating-text-border-left-color);\n\t\tpadding-inline-start: var(--rating-text-padding-left);\n\t}\n\n\t/* === Descriptors === */\n\n\t.rating-descriptors {\n\t\tdisplay: var(--rating-description-display);\n\t\tflex-direction: var(--rating-description-flex-direction);\n\t\tflex-wrap: var(--rating-description-flex-wrap);\n\t\talign-items: var(--rating-description-align-items);\n\t\tgap: var(--rating-description-gap);\n\t\tmargin-inline-start: var(--rating-description-margin-inline-start);\n\t}\n\n\t.rating-descriptor-text {\n\t\tdisplay: block;\n\t\tfont-weight: normal;\n\t\tborder-inline-start-width: var(--descriptor-text--border-left-width);\n\t\tborder-inline-start-style: var(--descriptor-text--border-left-style);\n\t\tborder-inline-start-color: var(--descriptor-text--border-left-color);\n\t\tpadding-inline-start: var(--descriptor-text--padding-left);\n\t}\n\n\t.descriptor-icon {\n\t\talign-self: var(--descriptor-icon--align-self);\n\t\twidth: var(--descriptor-icon--width);\n\t\theight: var(--descriptor-icon--height);\n\t\tmax-height: var(--descriptor-icon--max-height);\n\t\tmargin-block-start: var(--descriptor-icon--margin-top);\n\t}\n\n\t.descriptor-icon.mini {\n\t\theight: var(--descriptor-icon--mini-height);\n\t\tmax-height: var(--descriptor-icon--mini-max-height);\n\t\twidth: var(--descriptor-icon--mini-width);\n\t}\n\n\t.descriptor-icon:not(:first-of-type) {\n\t\tmargin-inline-start: var(--descriptor-icon--not-first-margin-left);\n\t}\n\n\t.descriptor-icon:first-of-type {\n\t\tmargin-inline-start: var(--descriptor-icon--first-margin-left);\n\t}\n\n\t.descriptor-text {\n\t\tdisplay: inline-block;\n\t\tmargin-inline-start: var(--descriptor-text--margin-left);\n\t\tborder-inline-start-width: var(--descriptor-text--border-left-width);\n\t\tborder-inline-start-style: var(--descriptor-text--border-left-style);\n\t\tborder-inline-start-color: var(--descriptor-text--border-left-color);\n\t\tpadding-inline-start: var(--descriptor-text--padding-left);\n\t}\n\n\t.descriptor-text:first-of-type {\n\t\tmargin-inline-start: var(--descriptor-text--first-margin-left);\n\t}\n\n\t/* === Advisories === */\n\n\t.advisories_container {\n\t\tdisplay: var(--advisories-container--display);\n\t\tflex-direction: var(--advisories-container--flex-direction);\n\t\tgap: var(--advisories-container--gap);\n\t\tpadding-inline-end: var(--advisories-container--padding-right);\n\t\tposition: var(--advisories-container--position);\n\t\tmargin: var(--advisories-container--margin);\n\t\tcolor: var(--advisories-container--color);\n\t}\n\n\t.advisories_container.mini {\n\t\tmargin: var(--advisories-container--margin-small);\n\t\tpadding-inline-end: var(--mini-container--padding-right);\n\t}\n\n\t.advisory {\n\t\tdisplay: var(--advisory--display);\n\t\tjustify-content: var(--advisory--justify-content);\n\t\talign-items: var(--advisory--align-items);\n\t\tmargin-inline-start: var(--advisory--margin-left);\n\t\tmargin-block-start: 0;\n\t\tmargin-block-end: 0;\n\t\twidth: var(--advisory--width);\n\t\tborder-inline-start-width: var(--advisory--border-left-width);\n\t\tborder-inline-start-style: var(--advisory--border-left-style);\n\t\tborder-inline-start-color: var(--advisory--border-left-color);\n\t\tpadding-inline-start: var(--advisory--padding-left);\n\t}\n\n\t.advisory.mini {\n\t\twidth: var(--advisory--mini-width);\n\t\tmargin: var(--advisory--mini-margin);\n\t}\n\n\t.advisory-icon {\n\t\tmargin-inline-end: var(--advisory-icon--margin-right);\n\t\twidth: var(--advisory-icon--width);\n\t\theight: var(--advisory-icon--height);\n\t}\n\n\t/* === Copy / Text Mode === */\n\n\t.rating-row.copy {\n\t\tflex-direction: column;\n\t\tgap: var(--content-wrapper--gap);\n\t}\n\n\t.rating-descriptors.copy {\n\t\tmargin-inline-start: 0;\n\t}\n\n\t/* === Service Attribution === */\n\n\t.serviceAttribution-field {\n\t\tdisplay: var(--service-attribution--display);\n\t\tfont-size: var(--service-attribution--font-size);\n\t\tcolor: var(--service-attribution--color);\n\t\tline-height: var(--service-attribution--line-height);\n\t\tletter-spacing: var(--service-attribution--letter-spacing);\n\t}\n\n\t/* === Territory Advisory === */\n\n\t.territory-advisory {\n\t\tdisplay: var(--advisory--display);\n\t\tjustify-content: var(--advisory--justify-content);\n\t\talign-items: var(--advisory--align-items);\n\t\tfont-size: var(--territory--font-size);\n\t\tmargin-inline-start: var(--advisory--margin-left);\n\t\tmargin-block-start: 0;\n\t\tmargin-block-end: 0;\n\t\twidth: var(--advisory--width);\n\t\tborder-inline-start-width: var(--advisory--border-left-width);\n\t\tborder-inline-start-style: var(--advisory--border-left-style);\n\t\tborder-inline-start-color: var(--advisory--border-left-color);\n\t\tpadding-inline-start: var(--advisory--padding-left);\n\t}\n\n\t.territory-advisory.mini {\n\t\twidth: var(--advisory--mini-width);\n\t\tmargin: var(--advisory--mini-margin);\n\t}\n"),_x=(t="")=>{if(!t.includes("**"))return[t];const e=[];let n=t;for(;n.includes("**");){const t=n.indexOf("**");t>0&&e.push(n.substring(0,t));const i=n.indexOf("**",t+2);if(-1===i){e.push(n);break}const r=n.substring(t+2,i);e.push(p.x`<b>${r}</b>`),n=n.substring(i+2)}return n&&e.push(n),e};Object.getOwnPropertyDescriptor;const Ex={ratings:null,serviceAttribution:null},yx=t=>{const{playbackCriteria:e}=t,n=e?.current?.metadata;return{ratings:n?.ratings??null,serviceAttribution:n?.serviceAttribution??null}};let Sx=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,yx,Ex),this.controller=new fx(this)}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({ratingsVisible:t.startupOverlays?.ratings?.isVisible??!1,isMiniPlayer:t.playerMode?.isMiniPlayer??!1,controlsVisible:t.overlayState?.areControlsVisible??!1})));const{Controller:t}=n_(this);t&&(this.controller=new t(this)),this.controller.hostConnected()}disconnectedCallback(){super.disconnectedCallback(),this.controller.hostDisconnected(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}_hasRatingInfo(t){const{ratingIcon:e,rating:n,ratingAlt:i,descriptionIcons:r}=t;return!!(e||n||i||r?.some((({icon:t,alt:e})=>t||e)))}_renderRatingBadge(t,e){const{ratingIcon:n,ratingAlt:i,rating:r}=t,o=i||r;return n?p.x`
2244				<img
2245					class=${My({"rating-badge":!0,mini:e})}
2246					alt=${o}
2247					src=${n}
2248				/>
2249			`:o?p.x`<span class="rating-text locale-body-headline">${o}</span>`:p.E}_renderDescriptors(t,e,n){const{descriptionIcons:i,description:r}=t,o=i?.length>0,a=o&&i.every((t=>!t.icon));if(a||!o&&r){const t=a?i.map((t=>
2249t.alt)).filter(Boolean).join(", "):r;return t?p.x`
2250				<span class=${My({"rating-descriptors":!0,copy:n})}>
2251					<span class="rating-descriptor-text locale-body-copy">${t}</span>
2252				</span>
2253			`:p.E}return o?p.x`
2254				<span
2255					class=${My({"rating-descriptors":!0,"locale-body-copy":!0,copy:n})}
2256				>
2257					${i.map(((t,n)=>{const{icon:r,alt:o}=t,a=n===i.length-1;return r?p.x`
2258								<img
2259									class=${My({"descriptor-icon":!0,mini:e})}
2260									alt=${o}
2261									src=${r}
2262								/>
2263							`:p.x`
2264							<span class="descriptor-text">
2265								${a?o:`${o}, `}
2266							</span>
2267						`}))}
2268				</span>
2269			`:p.E}_hasTextDescriptors(t){const{descriptionIcons:e,description:n}=t,i=e?.length>0;return i&&e.every((t=>!t.icon))||!i&&!!n}_renderRatingRow(t,e,n){if(!this._hasRatingInfo(t))return p.E;const i=n||this._hasTextDescriptors(t);return p.x`
2270			<div class=${My({"rating-row":!0,mini:e,copy:i})}>
2271				${this._renderRatingBadge(t,e)}
2272				${this._renderDescriptors(t,e,i)}
2273			</div>
2274		`}_normalizeAdvisory(t){if(vx.Check.nonEmptyString(t))return{icon:"",text:t,type:""};if(vx.Check.nonEmptyObject(t)){const e=t;return{icon:e.icon||"",text:e.text||"",type:e.type||""}}return{icon:"",text:"",type:""}}_renderAdvisories(t,e){return t?.length?t.map(((t,n)=>{const{icon:i,text:r,type:o}=this._normalizeAdvisory(t);return p.x`
2275				<p
2276					class=${My({advisory:!0,[`advisory--${o}`]:!!o,mini:e,"locale-body-copy":!0})}
2277					key=${`advisory_${n}`}
2278				>
2279					${i?p.x`<img
2280									alt="advisory icon"
2281									class="advisory-icon"
2282									src=${i}
2283								/>`:p.E}
2284					<span>${[..._x(r)]}</span>
2285				</p>
2286			`})):p.E}_renderTerritoryAdvisory(t,e){return t?p.x`
2287			<p class=${My({"territory-advisory":!0,mini:e})}>
2288				<span>${[..._x(t)]}</span>
2289			</p>
2290		`:null}get rendersServiceAttribution(){return!1}_renderServiceAttribution(){const{serviceAttribution:t}=this.streamController.value;return t?p.x`<div class="serviceAttribution-field locale-body-headline">
2291			${t}
2292		</div>`:p.E}renderTemplate(t,e){const{ratings:n}=this.streamController.value,{advisories:i,territoryAdvisory:r}=n||{},o=!n?.ratingIcon,a=i&&i.length>0||r;return p.x`
2293			<div class="ratings-overlay_container">
2294				<div class=${My(t)}>
2295					<div
2296						class=${My({"ratings-content-wrapper":!0,mini:e})}
2297					>
2298						${n?this._renderRatingRow(n,e,o):p.E}
2299						${a?p.x`
2300										<div
2301											class=${My({advisories_container:!0,mini:e})}
2302										>
2303											${this._renderAdvisories(i,e)}
2304											${this._renderTerritoryAdvisory(r,e)}
2305										</div>
2306									`:p.E}
2307						${this._renderServiceAttribution()}
2308					</div>
2309				</div>
2310			</div>
2311		`}render(){const{visible:t,hasRatings:e,hasServiceAttribution:n,isMiniPlayer:i}=this.controller.state,r=t&&(e||this.rendersServiceAttribution&&n);if(this.toggleAttribute("ratings-visible",r),!r)return p.E;const{ratings:o}=this.streamController.value;return this.renderTemplate({"ratings-overlay_wrapper":!0,"with-copy":!o?.ratingIcon,"fadeIn visible":!0,mini:i},i)}};Sx.tokens={"host--height":"100%","host--max-height":"inherit","host--max-width":"inherit","host--overflow":"hidden","host--pointer-events":"none","host--position":"absolute","host--top":"0","host--left":"0","host--width":"100%","host-before--content":'""',"host-before--width":"100%","host-before--height":"100%","host-before--position":"absolute","host-before--top":"0","host-before--left":"0","host-before--min-height":"260px","host-before--background-image":"linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.02) 13%, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.13) 35%, rgba(0, 0, 0, 0.21) 45%, rgba(0, 0, 0, 0.29) 55%, rgba(0, 0, 0, 0.37) 65%, rgba(0, 0, 0, 0.44) 75%, rgba(0, 0, 0, 0.48) 87%, rgba(0, 0, 0, 0.5))","host-before--background-color":"transparent","host-before--pointer-events":"none","host-before--padding-bottom":"150px","wrapper--text-align":"start","wrapper--order":"1","wrapper--flex-grow":"2","wrapper--align-items":"flex-start","wrapper--position":"relative","wrapper--width":"100%","wrapper--mini-font-size":"10px","container--justify-content":"flex-start","container--box-sizing":"border-box","container--display":"flex","container--height":"100%","container--width":"100%","container--max-height":"inherit","container--max-width":"inherit","container--min-width":"100%","container--p
2311ointer-events":"none","container--position":"absolute","container--flex-direction":"row","container--flex-wrap":"nowrap","container--align-items":"flex-start","container--left":"0","container--top":"0","container--line-height":"1.53","container--align-content":"space-between","container--color":"#FFFFFF","container--padding":"0","content-wrapper--display":"flex","content-wrapper--flex-direction":"column","content-wrapper--border-left-width":"0","content-wrapper--border-left-style":"none","content-wrapper--border-left-color":"transparent","content-wrapper--padding-left":"0","content-wrapper--margin-block":"14px","content-wrapper--margin-inline":"20px","content-wrapper--margin-block-start-mini":"5px","content-wrapper--margin-block-end-mini":"0","content-wrapper--margin-inline-start-mini":"5px","content-wrapper--margin-inline-end-mini":"0","content-wrapper--padding-left-mini":"5px","content-wrapper--gap":"24px","rating-container-position":"relative","rating-container-border-left-width":"0","rating-container-border-left-style":"none","rating-container-border-left-color":"transparent","rating-container-margin":"0","rating-container-margin-mini":"0","rating-width":"auto","rating-display":"flex","rating-font-weight":"bold","rating-color":"white","icon--width":"auto","icon--height":"auto","icon--max-height":"1.3em","icon--max-width":"none","icon--margin-top":"1px","icon--mini-width":"18px","icon--mini-height":"auto","icon--mini-max-height":"18px","icon--mini-max-width":"none","rating-text-border-left-width":"2px","rating-text-border-left-style":"solid","rating-text-border-left-color":"#33DDFF","rating-text-padding-left":"12px","rating-description-display":"flex","rating-description-flex-direction":"row","rating-description-flex-wrap":"nowrap","rating-description-align-items":"center","rating-description-gap":"12px","rating-description-margin-inline-start":"12px","descriptor-icon--align-self":"flex-start","descriptor-icon--width":"auto","descriptor-icon--height":"auto","descriptor-icon--max-height":"1.3em","descriptor-icon--margin-top":"1px","descriptor-icon--mini-height":"auto","descriptor-icon--mini-max-height":"18px","descriptor-icon--mini-width":"18px","descriptor-icon--not-first-margin-left":"8px","descriptor-icon--first-margin-left":"0","descriptor-text--margin-left":"10px","descriptor-text--first-margin-left":"-8px","descriptor-text--border-left-width":"2px","descriptor-text--border-left-style":"solid","descriptor-text--border-left-color":"#33DDFF","descriptor-text--padding-left":"12px","advisories-container--display":"flex","advisories-container--flex-direction":"column","advisories-container--gap":"24px","advisories-container--margin-small":"0","advisories-container--padding-right":"10px","advisories-container--position":"relative","advisories-container--margin":"0","advisories-container--color":"white","mini-container--padding-right":"10px","advisory--display":"flex","advisory--justify-content":"flex-start","advisory--align-items":"center","advisory--margin-left":"unset","advisory--width":"100%","advisory--mini-width":"100%","advisory--mini-margin":"unset","advisory--border-left-width":"2px","advisory--border-left-style":"solid","advisory--border-left-color":"#33DDFF","advisory--padding-left":"12px","advisory-icon--margin-right":"8px","advisory-icon--width":"auto","advisory-icon--height":"24px","territory--font-size":"9px","service-attribution--display":"block","service-attribution--font-size":"12px","service-attribution--color":"#d5d7db","service-attribution--line-height":"18px","service-attribution--letter-spacing":"unset",responsive:{tiny:{"wrapper--mini-font-size":"5px","icon--max-height":"38px","descriptor-icon--max-height":"38px","descriptor-icon--mini-max-height":"8px","descriptor-icon--mini-width":"8px","advisory--width":"auto","advisory--mini-margin":"5px 0 0 5px","territory--font-size":"10px"},extraSmall:{"icon--max-height":"48px","descriptor-icon--max-height":"48px"},smallPlus:{"icon--max-height":"48px","icon--margin-top":"0"},medium:{"content-wrapper--margin-block":"26px","content-wrapper--margin-inline":"55px"},large:{"wrapper--mini-font-size":"8px","icon--max-height":"58px","de
2311scriptor-icon--max-height":"58px","descriptor-icon--mini-max-height":"12px","descriptor-icon--mini-width":"12px","advisory--mini-margin":"8px 0 0 8px"},extraLarge:{"icon--max-height":"82px","descriptor-icon--max-height":"82px"}}},Sx.styles=[bx],Sx=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o})([p_],Sx);const Tx=Wb(":host {\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: flex-end;\n\t\t\tflex-direction: column;\n\t\t\tposition: absolute;\n\t\t\tz-index: 9999;\n\t\t\tinline-size: 100%;\n\t\t\tblock-size: 100%;\n\t\t\tinset-block-start: 0px;\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t@keyframes fadeIn {\n\t\t\tfrom {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\tto {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t.promo-overlay__container {\n\t\t\tanimation: fadeIn 0.4s ease-out forwards;\n\t\t}\n\n\t\t.promo-overlay__scrim {\n\t\t\tposition: absolute;\n\t\t\tinset-block-end: 0;\n\t\t\tinset-inline: 0;\n\t\t\tinset-inline-end: 0;\n\t\t\tblock-size: 30%;\n\t\t\tbackground: linear-gradient(\n\t\t\t\tto top,\n\t\t\t\trgba(0, 0, 0, 0.7) 0%,\n\t\t\t\ttransparent 100%\n\t\t\t);\n\t\t\ttransition: opacity 0.5s ease;\n\t\t}\n\n\t\t.promo-overlay__title-treatment {\n\t\t\tposition: absolute;\n\t\t\tinset-inline-start: 20px;\n\t\t\tinset-block-end: var(--promo-overlay__title-treatment--inset-block-end, 100px);\n\t\t\tmax-inline-size: 40%;\n\t\t\ttransition: all 0.3s ease;\n\t\t}\n\n\t\t.promo-overlay__title-treatment--low-position {\n\t\t\tinset-block-end: 80px;\n\t\t}\n\n\t\t.promo-overlay__title-treatment img {\n\t\t\tinline-size: auto;\n\t\t\tblock-size: auto;\n\t\t\tobject-fit: contain;\n\t\t\tmax-block-size: var(--promo-overlay__title-treatment__img--max-block-size, 60px);\n\t\t}\n\n\t\t.promo-overlay__title-treatment span {\n\t\t\tcolor: white;\n\t\t\tfont-size: 24px;\n\t\t\ttext-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);\n\t\t}\n\n\t\t.promo-overlay__info-container {\n\t\t\tposition: absolute;\n\t\t\tinset-inline-start: 20px;\n\t\t\tinset-block-end: 80px;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tgap: 12px;\n\t\t\ttransition: opacity 0.5s ease;\n\t\t}\n\n\t\t.promo-overlay__rating {\n\t\t\tcolor: white;\n\t\t\tfont-size: 16px;\n\t\t\topacity: 1;\n\t\t\ttransition: opacity 0.5s ease;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t}\n\n\t\t.promo-overlay__separator {\n\t\t\tinline-size: 1px;\n\t\t\tblock-size: 16px;\n\t\t\tbackground: white;\n\t\t}\n\n\t\t.promo-overlay__promo {\n\t\t\tcolor: white;\n\t\t\tfont-size: 1.1em;\n\t\t\topacity: 1;\n\t\t\ttransition: opacity 0.5s ease;\n\t\t}\n\n\t\t.promo-overlay__advisory-image {\n\t\t\tblock-size: 20px;\n\t\t\tinline-size: auto;\n\t\t}\n\n\t\t.promo-overlay__advisory {\n\t\t\tcolor: white;\n\t\t\tfont-size: 14px;\n\t\t\topacity: 1;\n\t\t}");var Cx=Object.defineProperty,wx=Object.getOwnPropertyDescriptor,Ax=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?wx(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&Cx(e,n,o),o};const Ix=Symbol("IMAGE_PENDING"),Ox={visuals:null,isPromoType:!1,isControlsOverlayVisible:!1},Rx=t=>{const{interstitials:e,isUiLegacyControlsOverlayVisible:n}=t??{},{currentSession:i,isPromoType:r}=e??{},{currentAsset:o}=i??{};return{visuals:o?.visuals??null,isPromoType:r??!1,isControlsOverlayVisible:n??!1}};let xx=class extends pt{constructor(){super(...arguments),this.imageErrors=new Set,this.timeoutCompleted=!1,this.imageCache={},this.imagesReady=!1,this.imageLoadTimeout=null,this.streamController=new G_(this,Rx,Ox),this.localStateUnsubscribe=null,this.wasPromoActive=!1,this.wasControlsOpen=!1,this.promoActivating=!1,this.timeoutDuration=8e3,this.restartFromBeginning=!0,this.onSkipActivate=()=>{this.commandBus?.dispatchCommand(Ql.SKIP_PROMO,{label:"Skip"})}}updateVisibility(t=!1){this.timeoutCompleted=!t}getTimeoutDismissals(){return[this.localState?.overlayState?.overlays?.[Of]?.isOpen]}connectedCallback(){super.connectedCallback(),this.localStateUnsubscribe=this.localState?.subscribe?.(this,(t=>({volumeBarOpened:t.volumeBar.opened,controlsOverlayOpen:t.overlayState.overlays[Of]?.isOpen})))}disconnectedCallback(){super.disconnectedCallback(),this.wasPromoActive&&(this.dispatchOverlayEvent(Pf),this.wasPromoActive=!1),this.imageLoadTimeout&&(clearTimeout(this.imageLoadTimeout),this.imageLoadTimeout=null),this.localStateUnsubscribe?.(),this.clearTimeout?.()}updated(t){super.updated(t);const{isPromoType:e}=this.streamController.value,n=this.getIsControlsOverlayVisible();!e||this.wasPromoActive||this.promoActivating||(this.promoActivating=!0,this.onPromoActivated()),!e&&this.wasPromoActive&&(this.onPromoDeactivated(),this.promoActivating=!1),n!==this.wasControlsOpen&&this.onControlsOverlayChanged(n),this.wasPromoActive=e,this.wasControlsOpen=n}onPromoActivated(){this.timeoutCompleted=!1,this.imageErrors.clear(),this.imageCache={},this.imagesReady=!1,this.clearTimeout?.(),this.dispatchOverlayEvent(kf),this.prefetchImages()}
2311prefetchImages(){const t=this.visuals.filter((t=>t.imageId)).map((t=>t.imageId));if(0===t.length)return this.imagesReady=!0,void this.startTimeout?.();let e=0;const n=t.length,i=()=>{e++,e>=n&&this.onAllImagesPrefetched()};t.forEach((t=>{void 0===this.imageCache[t]||this.imageCache[t]===Ix?(this.imageCache[t]=Ix,this.commandBus?.dispatchCommand(Ql.GET_IMAGE_URL,{imageId:t,resolve:e=>{if(!e)return this.imageCache[t]=void 0,void i();this.loadImageAsset(e,t,i)}})):i()})),this.imageLoadTimeout&&(clearTimeout(this.imageLoadTimeout),this.imageLoadTimeout=null),this.imageLoadTimeout=setTimeout((()=>{!this.imagesReady&&this.isConnected&&this.onAllImagesPrefetched()}),2e3)}loadImageAsset(t,e,n){const i=new Image;i.onload=()=>{this.imageCache[e]=t,n()},i.onerror=()=>{this.imageCache[e]=t,this.imageErrors.add(e),n()},i.src=t}onAllImagesPrefetched(){this.imageLoadTimeout&&(clearTimeout(this.imageLoadTimeout),this.imageLoadTimeout=null),this.imagesReady=!0,this.startTimeout?.(),this.requestUpdate()}onPromoDeactivated(){this.clearTimeout?.(),this.imageErrors.clear(),this.imagesReady=!1,this.imageLoadTimeout&&(clearTimeout(this.imageLoadTimeout),this.imageLoadTimeout=null),this.dispatchOverlayEvent(Pf)}onControlsOverlayChanged(t){const{isPromoType:e}=this.streamController.value;t?this.timeoutCompleted||this.pauseTimeout?.():e&&!this.timeoutCompleted&&this.resumeTimeout?.()}dispatchOverlayEvent(t){this.commandBus?.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:"promo",type:t,localState:this.localState})}getIsControlsOverlayVisible(){const t=this.streamController.value?.isControlsOverlayVisible??!1,e=this.localState?.overlayState?.overlays?.[Of]?.isOpen??!1;return t||e}get visuals(){return this.streamController?.value?.visuals??[]}get promoString(){const t=this.visuals.find((t=>"PROMO_FULL_TEXT"===t.type));if(t)return t.text;const e=this.visuals.find((t=>"PROMO_TEXT"===t.type));return e?this.dictionary.translate(e.dictionaryKey,""):""}get titleTreatment(){return this.visuals.find((t=>"TITLE_TREATMENT"===t.type))}get ratings(){return this.visuals.filter((t=>"ON_SCREEN_RATING"===t.type)).map((t=>({text:t.text,imageId:t.imageId,imageUrl:this.getCachedImageUrl(t.imageId),hasError:!!t.imageId&&this.imageErrors.has(t.imageId)})))}get advisories(){return this.visuals.filter((t=>"ON_SCREEN_ADVISORY"===t.type)).map((t=>({text:t.text,imageId:t.imageId,imageUrl:this.getCachedImageUrl(t.imageId),hasError:!!t.imageId&&this.imageErrors.has(t.imageId)})))}handleImageError(t){this.imageErrors.add(t),this.requestUpdate()}getPositionClass(){return this.ratings.length||this.promoString?"promo-overlay__title-treatment--high-position":"promo-overlay__title-treatment--low-position"}getCachedImageUrl(t){if(!t)return;const e=this.imageCache[t];return e!==Ix&&void 0!==e?e:void 0}render(){const{isPromoType:t}=this.streamController.value;if(!t||!this.imagesReady)return p.E;const e=this.getIsControlsOverlayVisible(),n=!e&&!this.timeoutCompleted;return p.x`
2312			<div class="promo-overlay__container">
2313				${n?this.renderVisuals():p.E}
2314				${this.renderSkipButton(e)}
2315			</div>
2316		`}renderVisuals(){return p.x`
2317			<div class="promo-overlay__visuals-container">
2318				<div class="promo-overlay__scrim"></div>
2319				${this.renderTitleTreatment()} ${this.renderInfoContainer()}
2320			</div>
2321		`}renderTitleTreatment(){const t=this.titleTreatment;if(!t)return p.E;const e=this.getCachedImageUrl(t.imageId),n=!!t.imageId&&this.imageErrors.has(t.imageId);return t.imageId&&!n&&e?p.x`
2322			<div class="promo-overlay__title-treatment ${this.getPositionClass()}">
2323				<img
2324					src="${e}"
2325					alt="${t.text??""}"
2326					@error="${()=>this.handleImageError(t.imageId)}"
2327				/>
2328			</div>
2329		`:p.E}renderInfoContainer(){const t=this.ratings.some((t=>t.imageUrl&&!t.hasError));return p.x`
2330			<div class="promo-overlay__info-container">
2331				${this.ratings.map((t=>this.renderIconItem(t,"rating")))}
2332				${this.advisories.map((t=>this.renderIconItem(t,"advisory")))}
2333				${t&&this.promoString?p.x`<div class="promo-overlay__separator"></div>`:p.E}
2334				${this.promoString?p.x`<div class="promo-overlay__promo">${this.promoString}</div>`:p.E}
2335			</div>
2336		`}renderIconItem(t,e){if(!t.imageUrl||t.hasError)return p.E;const n="rating"===e?"promo-overlay__advisory-image promo-overlay__rating-image":"promo-overlay__advisory-image",i="rating"===e,r=p.x`
2337			<img
2338				class="${n}"
2339				src="${t.imageUrl}"
2340				alt="${t.text??""}"
2341				@error="${()=>this.handleImageError(t.imageId)}"
2342			/>
2343		`;return i?p.x`<div class="promo-overlay__rating">${r}</div>`:r}renderSkipButton(t){const e=this.dictionary.translate(Xl.MEDIA.CONTROLS.SKIP_PROMO,"Skip");return p.x`
2344			<skip-button
2345				.label=${e}
2346				.iconUrl=${"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20fill='%23F9F9F9'%20d='M18.388%2019.104l-9.25%206.523c-.91.641-1.638.263-1.638-.838V11.11c0-1.091.733-1.474%201.638-.837l9.25%206.523c.91.642.905%201.672%200%202.31zm13.506%200l-9.251%206.523c-.91.641-1.638.263-1.638-.838V11.11c0-1.091.733-1.474%201.638-.837l9.25%206.523c.91.642.905%201.672%200%202.31z'/%3e%3c/svg%3e"}
2347				?isControlsOverlayVisible=${t}
2348				?lifted=${this.localState?.volumeBar?.opened}
2349				@activate=${this.onSkipActivate}
2350			></skip-button>
2351		`}};xx.tokens={responsive:{extraSmall:{"promo-overlay__title-treatment__img--max-height":"46px","promo-overlay__title-treatment--bottom":"100px"},medium:{"promo-overlay__title-treatment__img--max-height":"60px","promo-overlay__title-treatment--bottom":"120px"},large:{"promo-overlay__title-treatment__img--max-height":"78px"},extraLarge:{"promo-overlay__title-treatment__img--max-height":"101px"}}},xx.styles=[Tx],Ax([v()],xx.prototype,"imageErrors",2),Ax([v()],xx.prototype,"timeoutCompleted",2),Ax([v()],xx.prototype,"imageCache",2),Ax([v()],xx.prototype,"imagesReady",2),xx=Ax([a_,p_,L_({target:t=>t.shadowRoot?.querySelector("skip-button"),scope:t=>t?.container})],xx);const Lx=Wb('\n\t.inactivity-overlay__container {\n        background-color: var(--container-background-color);\n        color: var(--font-color);\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tposition: absolute;\n\t\tinset: 0;\n        width: 100%;\n        height: 100%;\n        z-index: 11;\n        pointer-events: auto;\n\t}\n\n    .inactivity-overlay__container::before {\n        content: "";\n        position: absolute;\n        inset: 0;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        background-color: var(--gradient-background-color);\n        background-image: var(--container-background-image);\n        background-size: cover;\n        background-position: center;\n        background-repeat: no-repeat;\n        opacity: 0.5;\n        z-index: -1;\n    }\n\n    .inactivity-overlay__heading {\n        padding: 0;\n        margin: 0;\n        font-size: var(--heading-font-size);\n        line-height: var(--heading-line-height);\n        letter-spacing: 0.11px;\n        font-weight: 700;\n    }\n\n    .inactivity-overlay__body {\n        font-size: 22px;\n        line-height: 36px;\n        letter-spacing: -0.1px;\n        font-weight: 400;\n    }\n\n    .inactivity-overlay__cta {\n        width: 78px;\n        height: 48px;\n        padding: 0px 24px;\n        border-radius: 4px;\n        border: none;\n        background-color: var(--cta-background-color);\n        font-size: 15px;\n        font-weight: 700;\n        line-height: 24px;\n        letter-spacing: 1.76px;\n        text-transform: uppercase;\n        cursor: pointer;\n    }\n');var kx=Object.defineProperty,Px=Object.getOwnPropertyDescriptor,Dx=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?Px(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&kx(e,n,o),o};const Nx={isCasting:!1,isCastingNormalMode:!0,activityStatus:{active:!0},modalTimeoutMs:3e5},Mx=t=>{const{casting:e,playback:n,playbackSession:i,playerMode:r,streamDetails:o}=t,{activityStatus:a}=i,{isLive:s}=o,{isCasting:l}=e,{isCastingNormalMode:c=!0}=r??{},{playerFeatureFlags:d}=n?.clients??{},{inactivityModalVod:u,inactivityModalLive:p}=d??{},h=a?.timeoutMs;return{isCasting:l,isCastingNormalMode:c,activityStatus:a,modalTimeoutMs:h??((s?1e3*(p?.modalInactivity??0):1e3*(u?.modalInactivity??0))||(s?n?.clients?.pcsConfig?.configs?.web?.ux?.inactivity?.live?.modalTimeoutMs:n?.clients?.pcsConfig?.configs?.web?.ux?.inactivity?.vod?.modalTimeoutMs))??Nx.modalTimeoutMs}};let Ux=class extends pt{constructor(){super(),this.streamController=new G_(this,Mx,Nx),this.timeoutDuration=Nx.modalTimeoutMs,this.onInactivityTimeout=this.onInactivityTimeout.bind(this),this.addEventListener("timeout-complete",this.onInactivityTimeout)}onInactivityTimeout(){const{isCasting:t}=this.streamController.value;t||this.commandBus?.dispatchCommand(Ql.INACTIVITY_TIMEOUT)}primaryAction(){this.clearTimeout?.(),this.commandBus?.dispatchCommand(Ql.RESTART_ACTIVITY_STATUS_TIMER)}firstUpdated(t){super.firstUpdated(t),this.timeoutDuration=this.streamController.value.modalTimeoutMs}getQAElements(){return{inactivityOverlay:this.inactivityOverlay,"button-container":this.buttonContainer}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("timeout-complete",this.onInactivityTimeout)}updated(t){super.updated(t)}handleKeyPress(){this.primaryAction()}render(){const{activityStatus:t,isCasting:e,isCastingNormalMode:n}=this.streamController.value,i=e&&!n;if(t.active||i)return this.clearTimeout?.(),null;this.startTimeout?.();const r="Video stopped due to inactivity",o=this.dictionary?.translate(Xl.MEDIA.OVERLAYS.INACTIVITY_MODAL_HEADING_A11Y,r),a="Are you still watching?",s=this.dictionary?.translate(Xl.MEDIA.OVERLAYS.INACTIVITY_MODAL_BODY_A11Y,a),l=this.dictionary.translate(Xl.MEDIA.OVERLAYS.INACTIVITY_MODAL_CTA_A11Y,"Yes"),c={onClick:this.primaryAction,ariaLabel:l,className:"inactivity-overlay__cta control locale-button-focused",content:p.x`${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.INACTIVITY_MODAL_CTA,"Yes")}`};return p.x`<div class="inactivity-overlay__container">
2352			<h1
2353				class="inactivity-overlay__heading locale-h1"
2354				aria-label="${o}"
2355			>
2356				${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.INACTIVITY_MODAL_HEADING,r)}
2357			</h1>
2358			<p
2359				class="inactivity-overlay__body locale-subhead-promo"
2360				aria-label="${s}"
2361			>
2362				${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.INACTIVITY_MODAL_BODY,a)}
2363			</p>
2364			${Hy(c)}
2365		</div>`}};Ux.tokens={"container-background-color":"#060A0E","gradient-background-color":"#80A7F0","container-background-image":"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0ODAiIGhlaWdodD0iMjcwIiB2aWV3Qm94PSIwIDAgNDgwIDI3MCIgZmlsbD0ibm9uZSI+CiAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZl8xMTYwNV8xODA4MSkiPgogICAgPHBhdGggZD0iTTU2Mi40NDkgMTY5LjA4MUM1NDcuOTg1IDMwMi4wMDkgMzgyLjQ4NiAzOTMuMDM2IDE5Mi43OTcgMzcyLjM5NkMxMC45NzI3IDMxO
2365C41ODYgLTEzMC4wMTggMTk0LjY3MyAtMTI0LjQ3NyA5NC4zMzUyQy0xMTAuMDEzIC0zOC41OTMgNTUuNDg2NSAtMTI5LjYyIDI0NS4xNzYgLTEwOC45OEM0MzQuODY1IC04OC4zMzk1IDU3Ni45MTMgMzYuMTUyNCA1NjIuNDQ5IDE2OS4wODFaIiBmaWxsPSIjMDYwQTBFIi8+CiAgPC9nPgogIDxkZWZzPgogICAgPGZpbHRlciBpZD0iZmlsdGVyMF9mXzExNjA1XzE4MDgxIiB4PSItMjgwLjg4NSIgeT0iLTI2OC4xNDgiIHdpZHRoPSIxMDAwLjYiIGhlaWdodD0iNzk5LjcxMyIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgogICAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgICA8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI3OC4xMjUiIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5kQmx1cl8xMTYwNV8xODA4MSIvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgo8L3N2Zz4=)","font-color":"#F9F9F9","heading-font-size":"24px","heading-line-height":"28px","cta-background-color":"#056D84",responsive:{large:{"container-background-image":"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDQwIiBoZWlnaHQ9IjgxMCIgdmlld0JveD0iMCAwIDE0NDAgODEwIiBmaWxsPSJub25lIj4KICA8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9mXzExNjA1XzE4MDcxKSI+CiAgICA8cGF0aCBkPSJNMTY4Ny4zNSA1MDcuMjQxQzE2NDMuOTUgOTA2LjAyNSAxMTQ3LjQ2IDExNzkuMTEgNTc4LjM4OCAxMTE3LjE5QzMyLjkxNjEgOTU1Ljc1NiAtMzkwLjA1NSA1ODQuMDE5IC0zNzMuNDMyIDI4My4wMDVDLTMzMC4wNCAtMTE1Ljc4IDE2Ni40NTggLTM4OC44NjIgNzM1LjUyNiAtMzI2Ljk0MUMxMzA0LjU5IC0yNjUuMDIgMTczMC43NCAxMDguNDU2IDE2ODcuMzUgNTA3LjI0MVoiIGZpbGw9IiMwNjBBMEUiLz4KICA8L2c+CiAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2ZfMTE2MDVfMTgwNzEiIHg9Ii04NDIuNjU2IiB5PSItODA0LjQ0NyIgd2lkdGg9IjMwMDEuNzkiIGhlaWdodD0iMjM5OS4xNCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgogICAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgICA8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIyMzQuMzc1IiByZXN1bHQ9ImVmZmVjdDFfZm9yZWdyb3VuZEJsdXJfMTE2MDVfMTgwNzEiLz4KICAgIDwvZmlsdGVyPgogIDwvZGVmcz4KPC9zdmc+)"},medium:{"container-background-image":"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjU3NiIgdmlld0JveD0iMCAwIDEwMjQgNTc2IiBmaWxsPSJub25lIj4KICA8ZyBmaWx0ZXI9InVybCgjZmlsdGVyMF9mXzExNjA1XzE3MjU4KSI+CiAgICA8cGF0aCBkPSJNMTE5OS44OSAzNjAuNzA0QzExNjkuMDMgNjQ0LjI4NCA4MTUuOTcgODM4LjQ3NiA0MTEuMjk5IDc5NC40NDNDMjMuNDA3OSA2NzkuNjQ5IC0yNzcuMzcyIDQxNS4zMDIgLTI2NS41NTEgMjAxLjI0N0MtMjM0LjY5NCAtODIuMzMyNyAxMTguMzcxIC0yNzYuNTI0IDUyMy4wNDEgLTIzMi40OTFDOTI3LjcxMiAtMTg4LjQ1OSAxMjMwLjc1IDc3LjEyNDEgMTE5OS44OSAzNjAuNzA0WiIgZmlsbD0iIzA2MEEwRSIvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImZpbHRlcjBfZl8xMTYwNV8xNzI1OCIgeD0iLTU5OS4yMiIgeT0iLTU3Mi4wNTIiIHdpZHRoPSIyMTM0LjYxIiBoZWlnaHQ9IjE3MDYuMDYiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KICAgICAgPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KICAgICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0ic2hhcGUiLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTY2LjY2NyIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzExNjA1XzE3MjU4Ii8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+Cjwvc3ZnPg==)"},smallPlus:{"container-background-image":"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NjgiIGhlaWdodD0iNDMyIiB2aWV3Qm94PSIwIDAgNzY4IDQzMiIgZmlsbD0ibm9uZSI+CiAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZl8xMTYwNV8xODA3NykiPgogICAgPHBhdGggZD0iTTg5OS45MTkgMjcwLjUyOUM4NzYuNzc2IDQ4My4yMTQgNjExLjk3NyA2MjguODU3IDMwOC40NzQgNTk1LjgzM0MxNy41NTU5IDUwOS43MzcgLTIwOC4wMjkgMzExLjQ3NyAtMTk5LjE2MyAxNTAuOTM2Qy0xNzYuMDIxIC02MS43NDg4IDg4Ljc3OCAtMjA3LjM5MiAzOTIuMjgxIC0xNzQuMzY4QzY5NS43ODQgLTE0MS4zNDMgOTIzLjA2MSA1Ny44NDM4IDg5OS45MTkgMjcwLjUyOVoiIGZpbGw9IiMwNjBBMEUiLz4KICA8L2c+CiAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2ZfMTE2MDVfMTgwNzciIHg9Ii00NDkuNDE2IiB5PSItNDI5LjAzOCIgd2lkdGg9IjE2MDAuOTYiIGhlaWdodD0iMTI3OS41NCIgZmlsdGVyVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPgogICAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgICA8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgogICAgICA8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMjUiIHJlc3VsdD0iZWZmZWN0MV9mb3JlZ3JvdW5k
2365Qmx1cl8xMTYwNV8xODA3NyIvPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgo8L3N2Zz4=)","heading-font-size":"44px","heading-line-height":"54px"}}},Ux.styles=[Lx],Dx([b(".button-container")],Ux.prototype,"buttonContainer",2),Dx([b(".inactivity-overlay__container")],Ux.prototype,"inactivityOverlay",2),Dx([(0,p.n)({type:Number})],Ux.prototype,"timeoutDuration",2),Dx([Vy(".button-container")],Ux.prototype,"disconnectedCallback",1),Dx([By(".button-container")],Ux.prototype,"updated",1),Ux=Dx([p_,a_,L_({target:t=>t.shadowRoot.querySelectorAll("\n\t\t\t.inactivity-overlay__cta\n\t\t"),watch:t=>t,scope:t=>t?.container})],Ux);const Bx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%3e%3cpath%20d='M2.25%2011.118c0-1.11.733-1.488%201.637-.851l9.345%206.582c.904.636.904%201.669%200%202.305l-9.345%206.582c-.904.637-1.637.256-1.637-.852zm13.606%200c0-1.11.732-1.488%201.636-.851l9.346%206.582c.904.636.904%201.669%200%202.305l-9.346%206.582c-.903.637-1.636.256-1.636-.852zM33%209.75a2.252%202.252%200%200%200-2.25%202.26v11.98A2.25%202.25%200%200%200%2033%2026.25a2.252%202.252%200%200%200%202.25-2.26V12.01A2.25%202.25%200%200%200%2033%209.75z'/%3e%3c/svg%3e",Vx=Wb("\n\t.skip-overlay {\n\t\tposition: absolute;\n\t\tinset-block-end: var(--skip-overlay--position-inset-block-end);\n\t\tinset-inline-end: var(--skip-overlay--position-inset-inline-end);\n\t\tz-index: 10;\n\t\tpointer-events: auto;\n\t}\n\n\t.skip-overlay.controls-decayed {\n\t\tinset-block-end: var(\n\t\t\t--skip-overlay--position-inset-block-end-controls-decayed\n\t\t);\n\t}\n\n\t.skip-overlay--hide {\n\t\topacity: 0;\n\t}\n\n\tskip-button {\n\t\tposition: static;\n\t}\n"),Fx={"skip-overlay--background-color":"rgb(249, 249, 249)","skip-overlay--background-color-hover":"rgb(199, 199, 199)","skip-overlay--border-radius":"4px","skip-overlay--height":"56px","skip-overlay--padding":"0 19px 0 15px","skip-overlay--font-size":"15px","skip-overlay--font-weight":"bold","skip-overlay--letter-spacing":"1px","skip-overlay--text-color":"#000","skip-overlay--icon-size":"36px","skip-overlay--icon-gap":"14px","skip-overlay--icon":`url("${Bx}")`,"skip-overlay--position-inset-block-end":"220px","skip-overlay--position-inset-block-end-controls-decayed":"var(--skip-overlay--position-inset-block-end)","skip-overlay--position-inset-inline-end":"24px",responsive:{}};var zx=Object.defineProperty,$x=Object.getOwnPropertyDescriptor,Hx=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?$x(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&zx(e,n,o),o};const Gx={visible:!1,skipType:void 0,offset:void 0,skipDecay:void 0,shouldStartFading:!1,fadeDuration:.1,isCasting:!1},Yx=t=>{const{skipOverlay:e,casting:n}=t;return{visible:e?.visible??!1,skipType:e?.skipType,offset:e?.offset,skipDecay:e?.skipDecay,shouldStartFading:e?.shouldStartFading??!1,fadeDuration:e?.fadeDuration??.1,isCasting:n?.isCasting??!1}};let jx=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,Yx,Gx),this.isHover=!1,this.handleMouseEnter=()=>{this.isHover=!0},this.handleMouseLeave=()=>{setTimeout((()=>{this.isHover=!1}),500)},this.handleClick=()=>{this.isHover=!1;const{isCasting:t,skipType:e,offset:n}=this.streamController.value;if(t&&e)this.commandBus?.dispatchCommand(Ql.MEDIA_ELEMENT_DISPATCH,{value:{type:Rn.SKIP_BY_TYPE,value:e}});else{const t=this.storedOffset??n;void 0!==t&&this.commandBus?.dispatchCommand(Ql.MEDIA_ELEMENT_DISPATCH,{value:{type:On.TIMECODE.UPDATE,value:t,skipType:e,cause:oc.SKIP}})}this.commandBus?.dispatchCommand(Ql.MEDIA_ELEMENT_DISPATCH,{value:{type:Cv.SKIP_OVERLAY_HIDE}})}}get buttonText(){const{skipType:t}=this.streamController.value;switch(t){case"recap":return this.dictionary?.translate(Xl.MEDIA.OVERLAYS.SKIP_RECAP,"SKIP RECAP");case"intro":return this.dictionary?.translate(Xl.MEDIA.OVERLAYS.SKIP_INTRO,"SKIP INTRO");case"credits":return this.dictionary?.translate(Xl.MEDIA.OVERLAYS.SKIP_CREDITS,"SKIP CREDITS");default:return""}}connectedCallback(){super.connectedCallback(),this.localStateUnsubscribe=this.localState?.subscribe(this,(t=>({controlsOverlayOpen:t.overlayState.overlays[Of]?.isOpen})))}disconnectedCallback(){super.disconnectedCallback(),this.localStateUnsubscribe?.(),this.localStateUnsubscribe=void 0}updated(t){super.updated(t);const{offset:e}=this.streamController.value;void 0!==e&&(this.storedOffset=e)}render(){const{offset:t,skipDecay:e,visible:n,shouldStartFading:i,fadeDuration:r}=this.streamController.value,o=this.localState?.overlayState.overlays[Of]?.isOpen??!1,{buttonText:a,isHover:s}=this;if(!(s||a&&t&&e&&n))return p.E;const l=!s&&i&&r?`transition: opacity ${r}s;`:"";return p.x`
2366			<div
2367				class=${My({"skip-overlay":!0,"controls-decayed":!o,"skip-overlay--hide":!s&&i})}
2368				style="${l}"
2369				aria-live="assertive"
2370			>
2371				<skip-button
2372					.label=${a}
2373					.iconUrl=${Bx}
2374					@activate=${this.handleClick}
2375					@mouseenter=${this.handleMouseEnter}
2376					@mouseleave=${this.handleMouseLeave}
2377				></skip-button>
2378			</div>
2379		`}};jx.tokens=Fx,jx.styles=[Vx],Hx([v()],jx.prototype,"isHover",2),Hx([v()],jx.prototype,"storedOffset",2),jx=Hx([p_,L_({target:t=>t.shadowRoot?.querySelector("skip-button"),scope:t=>t?.container})],jx);const Kx=Wb("\n\t:host {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: var(--timed-text-override-region--z-index);\n\t\tpointer-events: none;\n\t\tdirection: ltr;\n\t}\n\n\t.timed-text-override-region {\n\t\tposition: absolute;\n\t\tinset-block-start: var(--timed-text-override-region--inset-block-start);\n\t\tinset-block-end: var(--timed-text-override-region--inset-block-end);\n\t\tinset-inline-start: var(--timed-text-override-region--inset-inline-start);\n\t\tinset-inline-end: var(--timed-text-override-region--inset-inline-end);\n\t\tbackground-color: var(\n\t\t\t--timed-text-override-region--debug-background-color,\n\t\t\ttransparent\n\t\t);\n\t\tpointer-events: none;\n\t}\n\n\t.timed-text-override-region.controls-decayed {\n\t\tinset-block-end: var(\n\t\t\t--timed-text-override-region--inset-block-end-controls-decayed\n\t\t);\n\t\tinset-block-start: var(\n\t\t\t--timed-text-override-region--inset-block-start-controls-decayed\n\t\t);\n\t\tinset-inline-start: var(\n\t\t\t--timed-text-override-region--inset-inline-start-controls-decayed\n\t\t);\n\t\tinset-inline-end: var(\n\t\t\t--timed-text-override-region--inset-inline-end-controls-decayed\n\t\t);\n\t}\n");var Wx=Object.defineProperty,qx=Object.getOwnPropertyDescriptor,Xx=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?qx(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&Wx(e,n,o),o};const Zx={notready:!0},Qx=t=>({notready:!!t.playback.notready});let Jx=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,Qx,Zx),this.hasRegisteredRegion=!1}get timedTextRegion(){return this.regionElement}connectedCallback(){super.connectedCallback(),this.localStateUnsubscribe=this.localState?.subscribe(this,(t=>({controlsOverlayOpen:t.overlayState.overlays[Of]?.isOpen})))}registerRegion(){this.streamController.value.notready||(this.commandBus?.dispatchCommand(Ql.SET_TIMED_TEXT_REGION,{region:this.timedTextRegion??null}),this.hasRegisteredRegion=!0)}firstUpdated(){this.registerRegion()}updated(t){super.updated(t),this.hasRegisteredRegion||this.registerRegion()}disconnectedCallback(){super.disconnectedCallback(),this.commandBus?.dispatchCommand(Ql.SET_TIMED_TEXT_REGION,{region:null}),this.hasRegisteredRegion=!1,this.localStateUnsubscribe?.(),this.localStateUnsubscribe=void 0}render(){const t=this.localState?.overlayState.overlays[Of]?.isOpen??!1;return p.x`
2380			<div
2381				class=${My({"timed-text-override-region":!0,"controls-decayed":!t})}
2382				aria-hidden="true"
2383			></div>
2384		`}};Jx.tokens={"timed-text-override-region--inset-block-start":"120px","timed-text-override-region--inset-block-end":"120px","timed-text-override-region--inset-inline-start":"0","timed-text-override-region--inset-inline-end":"0","timed-text-override-region--inset-block-start-controls-decayed":"var(--timed-text-override-region--inset-block-start)","timed-text-override-region--inset-block-end-controls-decayed":"0px","timed-text-override-region--inset-inline-start-controls-decayed":"var(--timed-text-override-region--inset-inline-start)","timed-text-override-region--inset-inline-end-controls-decayed":"var(--timed-text-override-region--inset-inline-end)","timed-text-override-region--debug-background-color":"","timed-text-override-region--z-index":"12",responsive:{}},Jx.styles=[Kx],Xx([b(".timed-text-override-region")],Jx.prototype,"regionElement",2),Jx=Xx([p_],Jx);const tL=Wb("\n\t:host {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tpointer-events: none;\n\t\tz-index: 1;\n\t}\n\n\t@keyframes upNextLiteFadeIn {\n\t\tfrom {\n\t\t\topacity: 0;\n\t\t\ttranslate: 0 30px;\n\t\t}\n\n\t\tto {\n\t\t\topacity: 1;\n\t\t\ttranslate: 0 0;\n\t\t}\n\t}\n\n\t.up-next-lite-v1-overlay {\n\t\tposition: absolute;\n\t\tinset-block-end: 190px;\n\t\tinset-inline: 24px;\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: flex-end;\n\t\tgap: 24px;\n\t\tanimation: upNextLiteFadeIn 400ms cubic-bezier(0, 0, 0.58, 1);\n\t}\n\n\t.up-next-lite-v1-overlay__details {\n\t\tdisplay: flex;\n\t\talign-items: stretch;\n\t\tmax-inline-size: min(60%, 720px);\n\t\tcolor: white;\n\t\ttext-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);\n\t\tfont-size: 20px;\n\t\tline-height: 1.2;\n\t\ttext-align: start;\n\t}\n\n\t.up-next-lite-v1-overlay__header {\n\t\tmargin: 24px;\n\t\tfont-weight: 700;\n\t\twhite-space: nowrap;\n\t}\n\n\t.up-next-lite-v1-overlay__divider {\n\t\tinline-size: 1px;\n\t\tbackground: white;\n\t\topacity: 0.85;\n\t}\n\n\t.up-next-lite-v1-overlay__metadata {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\tgap: 4px;\n\t\tmargin-inline-start: 24px;\n\t\tmin-inline-size: 0;\n\t}\n\n\t.up-next-lite-v1-overlay__series-title,\n\t.up-next-lite-v1-overlay__episode-title {\n\t\tmargin: 0;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\n\t.up-next-lite-v1-overlay__series-title {\n\t\tfont-weight: 700;\n\t}\n\n\t.up-next-lite-v1-overlay__button-container {\n\t\tpointer-events: auto;\n\t\tmargin-inline-start: auto;\n\t}\n\n\t.up-next-lite-v1-overlay__button {\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tgap: 14px;\n\t\tmin-block-size: var(--up-next-lite-v1-overlay--button-min-block-size, 56px);\n\t\tpadding-block: 10px;\n\t\tpadding-inline: 24px;\n\t\tborder: 0;\n\t\tborder-radius: var(--up-next-lite-v1-overlay--button-border-radius);\n\t\tbackground: rgba(249, 249, 249);\n\t\tcolor: #000;\n\t\tcursor: pointer;\n\t\tfont: inherit;\n\t\tfont-size: 15px;\n\t\tfont-weight: 700;\n\t\tletter-spacing: 1px;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.up-next-lite-v1-overlay__button:hover {\n\t\tbackground: rgba(229, 229, 229, 0.95);\n\t}\n\n\t.up-next-lite-v1-overlay__button:focus-visible {\n\t\toutline: 2px solid white;\n\t\toutline-offset: 2px;\n\t}\n\n\t.up-next-lite-v1-overlay__button-icon {\n\t\tflex: none;\n\t\tinline-size: 36px;\n\t\tblock-size: 36px;\n\t\tbackground-color: #000;\n\t\tmask-image: var(--up-next-lite-v1-overlay--button-icon-mask);\n\t\tmask-repeat: no-repeat;\n\t\tmask-position: center;\n\t\tmask-size: contain;\n\t\t-webkit-mask-image: var(--up-next-lite-v1-overlay--button-icon-mask);\n\t\t-webkit-mask-repeat: no-repeat;\n\t\t-webkit-mask-position: center;\n\t\t-webkit-mask-size: contain;\n\t}\n\n\t.up-next-lite-v1-overlay__button-label {\n\t\twhite-space: nowrap;\n\t}\n\n\t@media (max-width: 768px) {\n\t\t.up-next-lite-v1-overlay {\n\t\t\tinset-block-end: 168px;\n\t\t\tgap: 16px;\n\t\t}\n\n\t\t.up-next-lite-v1-overlay__details {\n\t\t\tfont-size: 15px;\n\t\t}\n\n\t\t.up-next-lite-v1-overlay__header,\n\t\t.up-next-lite-v1-overlay__divider {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t.up-next-lite-v1-overlay__metadata {\n\t\t\tmargin-inline-start: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 480px) {\n\t\t.up-next-lite-v1-overlay {\n\t\t\tinset-block-end: 136px;\n\t\t\tinset-inline: 16px;\n\t\t}\n\n\t\t.up-next-lite-v1-overlay__details {\n\t\t\tfont-size: 12px;\n\t\t}\n\n\t\t.up-next-lite-v1-overlay__button {\n\t\t\tgap: 10px;\n\t\t\tpadding-inline: 12px 14px;\n\t\t\tfont-size: 12px;\n\t\t}\n\n\t\t.up-next-lite-v1-overlay__button-icon {\n\t\t\tinline-size: 24px;\n\t\t\tblock-size: 24px;\n\t\t}\n\t}\n\n\t:host(:lang(ar)) .up-next-lite-v1-overlay__button {\n\t\tletter-spacing: normal;\n\t}\n"),eL={"up-next-lite-v1-overlay--button-border-radius":"4px","up-next-lite-v1-overlay--button-icon-mask":`url("${Aw}")`};var nL=Object.defineProperty,iL=Object.getOwnPropertyDescriptor,rL=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?iL(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&nL(e,n,o),o};const oL={visible:!1,autoplayCountdownEnabled:!1,autoplayCountdownSecs:void 0,seriesTitle:"",fullEpisodeTitle:"",displayText:"",nextContentId:null,isVNextPlayerEnabled:!1,isCasting:!1},aL=t=>{const e=t.overlays?.upNextLite,n=e?.data,i=t.playback?.clients?.pcsConfig?.configs?.web?.ux?.upNextLite?.autoplayCountdownMs,r=t.playbackCriteria?.current?.metadata?.upNextData?.[0],o=r?.item?.visuals,a=void 0!==n;return{visible:e?.visible??!1,autoplayCountdownEnabled:e?.autoplayCountdownEnabled??!1,autoplayCountdownSecs:Number.isFinite(i)?i/1e3:void 0,seriesTitle:(a?n?.seriesTitle:o?.title)??"",fullEpisodeTitle:(a?n?.fullEpisodeTitle:o?.fullEpisodeTitle)??"",dis
2384playText:(a?n?.displayText:o?.displayText)??"",nextContentId:r?.item?.id??n?.contentId??null,isVNextPlayerEnabled:Boolean(t.playback?.clients?.playerFeatureFlags?.isVNextPlayerEnabled),isCasting:t.casting?.isCasting??!1}};let sL=class extends pt{constructor(){super(),this.streamController=new G_(this,aL,oL),this.timeoutDuration=0,this.activeCountdownSignature="",this.completedCountdownSignature="",this.handleTimeoutComplete=()=>{this.completedCountdownSignature=this.countdownSignature,this.handleTransition(!0)},this.handleButtonClick=()=>{this.handleTransition(!1)},this.addEventListener("timeout-complete",this.handleTimeoutComplete)}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isMiniPlayer:t.playerMode?.isMiniPlayer??!1})))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("timeout-complete",this.handleTimeoutComplete),this.clearAutoplayCountdown(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}updated(t){super.updated(t),this.syncAutoplayState()}get isMiniPlayer(){return this.localState?.playerMode?.isMiniPlayer??!1}get shouldShow(){const{visible:t,nextContentId:e,seriesTitle:n,fullEpisodeTitle:i}=this.streamController.value;return t&&!this.isMiniPlayer&&Boolean(e)&&Boolean(n||i)}get headerLabel(){return this.dictionary?.translate(Xl.MEDIA.OVERLAYS.UP_NEXT_HEADER,"UP NEXT")??"UP NEXT"}get seriesTitleLabel(){const{seriesTitle:t}=this.streamController.value;return t?(this.dictionary?.translate(Xl.MEDIA.OVERLAYS.UP_NEXT_SERIES_TITLE,"{series_title}")??"{series_title}").replace(/\$?\{series_title\}/,t):""}get countdownSeconds(){const{autoplayCountdownEnabled:t}=this.streamController.value;return t&&this.remainingTime?Math.max(0,Math.ceil(this.remainingTime/1e3)):null}get buttonText(){const{displayText:t}=this.streamController.value,e=this.dictionary?.translate(Xl.MEDIA.OVERLAYS.PLAY_NEXT_EPISODE,"NEXT EPISODE")??"NEXT EPISODE";return null===this.countdownSeconds?t||e:`${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.UP_NEXT_COUNTDOWN_TEXT,"NEXT EPISODE IN")??"NEXT EPISODE IN"} ${this.countdownSeconds}`}get countdownSignature(){const{autoplayCountdownEnabled:t,autoplayCountdownSecs:e,nextContentId:n}=this.streamController.value;return t&&e&&n?`${n}:${e}`:""}get countdownDurationMs(){const{autoplayCountdownSecs:t}=this.streamController.value;return t?1e3*t:0}getTimeoutDismissals(){return[!this.shouldShow]}syncAutoplayState(){const t=this.countdownSignature;if(t){if(this.completedCountdownSignature!==t){if(this.timeoutDuration=this.countdownDurationMs,this.activeCountdownSignature!==t)return this.activeCountdownSignature=t,void(this.shouldShow?(this.startTimeout(this.timeoutDuration),this.requestUpdate()):this.clearTimeout());this.shouldShow&&0===this.remainingTime&&(this.startTimeout(this.timeoutDuration),this.requestUpdate())}}else this.clearAutoplayCountdown()}clearAutoplayCountdown(){this.clearTimeout(),this.timeoutDuration=0,this.activeCountdownSignature="",this.completedCountdownSignature=""}handleTransition(t=!1){const{nextContentId:e,isCasting:n}=this.streamController.value;e&&(this.completedCountdownSignature=this.countdownSignature,this.clearTimeout(),this.commandBus?.dispatchCommand(Ql.PLAY_NEXT,{label:"Up Next Lite overlay",nextContentId:e,autoplay:t}),n||this.commandBus?.dispatchCommand($l.CONTROLS.PLAY_NEXT.CLICKED,{nextContentId:e,autoplay:t,analyticsTrackingLabel:"up_next_lite"}))}getQAElements(){return{seriesTitle:this.seriesTitleElement,episodeTitle:this.episodeTitleElement,playButton:this.playButtonElement}}render(){const{fullEpisodeTitle:t,isVNextPlayerEnabled:e}=this.streamController.value,n=this.seriesTitleLabel,i=this.shouldShow;return this.hidden=!i,i?p.x`
2385			<div class="up-next-lite-v1-overlay">
2386				<div class="up-next-lite-v1-overlay__details">
2387					<div
2388						class="up-next-lite-v1-overlay__header locale-body-headline-large"
2389					>
2390						${this.headerLabel}
2391					</div>
2392					<div class="up-next-lite-v1-overlay__divider"></div>
2393					<div class="up-next-lite-v1-overlay__metadata">
2394						${n?p.x`
2395										<div
2396											class="up-next-lite-v1-overlay__series-title locale-subhead-promo-heavy"
2397										>
2398											${n}
2399										</div>
2400									`:p.E}
2401						${t?p.x`
2402										<div
2403											class="up-next-lite-v1-overlay__episode-title locale-h5"
2404										>
2405											${t}
2406										</div>
2407									`:p.E}
2408					</div>
2409				</div>
2410				<div
2411					class="up-next-lite-v1-overlay__button-container"
2412					aria-live="assertive"
2413				>
2414					<button
2415						type="button"
2416						class="up-next-lite-v1-overlay__button locale-button-focused"
2417						@click=${this.handleButtonClick}
2418					>
2419						${e?p.E:p.x`<span
2420										class="up-next-lite-v1-overlay__button-icon"
2421									></span>`}
2422						<span class="up-next-lite-v1-overlay__button-label">
2423							${this.buttonText}
2424						</span>
2425					</button>
2426				</div>
2427			</div>
2428		`:p.E}};sL.tokens=eL,sL.styles=[tL],rL([b(".up-next-lite-v1-overlay__series-title")],sL.prototype,"seriesTitleElement",2),rL([b(".up-next-lite-v1-overlay__episode-title")],sL.prototype,"episodeTitleElement",2),rL([b(".up-next-lite-v1-overlay__button")],sL.prototype,"playButtonElement",2),sL=rL([p_,a_({updateOnRemainingTime:!0}),L_({target:t=>t.shadowRoot?.querySelector(".up-next-lite-v1-overlay__button"),scope:t=>t?.container})],sL);const lL=Wb("\n\t:host {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tpointer-events: none;\n\t\tz-index: 1;\n\t\tcontainer-type: size;\n\t}\n\n\t.current-live-program-overlay {\n\t\tposition: absolute;\n\t\tinset-block-end: var(--current-live-program-overlay--inset-block-end, 150px);\n\t\tinset-inline-end: var(--current-live-program-overlay--inset-inline-end, 40px);\n\t\tanimation: var(--fade-in-slide-up--animation);\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\t.current-live-program-overlay {\n\t\t\tanimation: none;\n\t\t}\n\t}\n\n\t.current-live-program-overlay__tile {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--current-live-program-overlay--tile-gap, 12px);\n\t\tinline-size: var(--current-live-program-overlay--tile-inline-size, 513px);\n\t\tblock-size: var(--current-live-program-overlay--tile-block-size, 142px);\n\t\tpadding-block: 6px;\n\t\tpadding-inline: 6px 12px;\n\t\tborder: 1px solid\n\t\t\tvar(--current-live-program-overlay--tile-border-color, rgba(255, 255, 255, 0.1));\n\t\tborder-radius: var(--current-live-program-overlay--tile-border-radius, 15px);\n\t\tbackground: var(--current-live-program-overlay--tile-background, #17171b);\n\t\tbackdrop-filter: blur(50px);\n\t\t-webkit-backdrop-filter: blur(50px);\n\t\tbox-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);\n\t\toverflow: hidden;\n\t}\n\n\t.current-live-program-overlay__artwork {\n\t\tposition: relative;\n\t\tflex: none;\n\t\tinline-size: var(--current-live-program-overlay--artwork-inline-size, 231px);\n\t\tblock-size: var(--current-live-program-overlay--artwork-block-size, 130px);\n\t\tborder: 1px solid rgba(255, 255, 255, 0.1);\n\t\tborder-radius: var(--current-live-program-overlay--artwork-border-radius, 9px);\n\t\tbackground: var(--current-live-program-overlay--artwork-background, rgba(255, 255, 255, 0.08));\n\t\toverflow: hidden;\n\t}\n\n\t.current-live-program-overlay__artwork-img {\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\t.current-live-program-overlay__network-logo {\n\t\tposition: absolute;\n\t\tinset-block-end: var(--current-live-program-overlay--network-logo-inset-block-end, 8px);\n\t\tinset-inline-end: var(--current-live-program-overlay--network-logo-inset-inline-end, 8px);\n\t\tblock-size: var(--current-live-program-overlay--network-logo-block-size, 24px);\n\t\tinline-size: auto;\n\t\tobject-fit: contain;\n\t}\n\n\t.current-live-program-overlay__badge {\n\t\tposition: absolute;\n\t\tinset-block-end: var(--current-live-program-overlay--badge-inset-block-end, 8px);\n\t\tinset-inline-start: var(--current-live-program-overlay--badge-inset-inline-start, 8px);\n\t\tdisplay: inline-flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tbox-sizing: border-box;\n\t\tgap: 1px;\n\t\tmin-block-size: var(--current-live-program-overlay--badge-block-size, 20px);\n\t\tpadding-block: 3px;\n\t\tpadding-inline: 2px 4px;\n\t\tborder-radius: var(--current-live-program-overlay--badge-border-radius, 6px);\n\t\tbackground-color: var(--current-live-program-overlay--badge-background-color, #e50044);\n\t}\n\n\t.current-live-program-overlay__badge-icon {\n\t\tflex-shrink: 0;\n\t\tinline-size: 14px;\n\t\tblock-size: 14px;\n\t\tmask-image: var(--current-live-program-overlay--badge-icon);\n\t\t-webkit-mask-image: var(--current-live-program-overlay--badge-icon);\n\t\tmask-size: contain;\n\t\t-webkit-mask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\t-webkit-mask-repeat: no-repeat;\n\t\tmask-position: center;\n\t\t-webkit-mask-position: center;\n\t\tbackground-color: var(--current-live-program-overlay--badge-icon-color, #ffffff);\n\t}\n\n\t.current-live-program-overlay__badge-label {\n\t\tfont-weight: 700;\n\t\tfont-size: 12px;\n\t\tline-height: 18px;\n\t\tletter-spacing: 0.11px;\n\t\ttext-transform: uppercase;\n\t\twhite-space: nowrap;\n\t\tcolor: var(--current-live-program-overlay--badge-label-color, #ffffff);\n\t}\n\n\t.current-live-program-overlay__progress {\n\t\tposition: absolute;\n\t\tinset-inline: 0;\n\t\tinset-block-end: 0;\n\t\tblock-size: var(--current-live-program-overlay--progress-block-size, 4px);\n\t\tbackground: var(--current-live-program-overlay--progress-track-color, rgba(255, 255, 255, 0.3));\n\t}\n\n\t.current-live-program-overlay__progress-fill {\n\t\tblock-size: 100%;\n\t\tbackground: var(--current-live-program-overlay--progress-fill-color, #f5063d);\n\t}\n\n\t.current-live-program-overlay__metadata {\n\t\tflex: 1 1 0;\n\t\tmin-inline-size: 0;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: flex-start;\n\t\tgap: 9px;\n\t\tcolor: white;\n\t}\n\n\t.current-live-program-overlay__eyebrow {\n\t\tfont-weight: 400;\n\t\tfont-size: var(--current-live-program-overlay--eyebrow-font-size, 15px);\n\t\tline-height: 24px;\n\t\tletter-spacing: -0.1px;\n\t\tcolor: var(--current-live-program-overlay--eyebrow-color, rgba(255, 255, 255, 0.8));\n\t}\n\n\t.current-live-program-overlay__title {\n\t\tfont-weight: 700;\n\t\tfont-size: var(--current-live-program-overlay--title-font-size, 20px);\n\t\tline-height: 28px;\n\t\tletter-spacing: 0.11px;\n\t\tcolor: var(--current-live-program-overlay--title-color, #ffffff);\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tdisplay: -webkit-box;\n\t\t-webkit-line-clamp: 2;\n\t\t-webkit-box-orient: vertical;\n\t}\n\n\t.current-live-program-overlay__subtitle {\n\t\tfont-weight: 700;\n\t\tfont-size: var(--current-live-program-overlay--subtitle-font-size, 15px);\n\t\tline-height: 24px;\n\t\tletter-spacing: 0.11px;\n\t\tcolor: var(--current-live-program-overlay--subtitle-color, rgba(255, 255, 255, 0.6));\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\tmax-inline-size: 100%;\n\t}\n\n\t@container (max-inline-size: 1024px) {\n\t\t.current-live-program-overlay {\n\t\t\tinset-block-end: 120px;\n\t\t\tinset-inline-end: 32px;\n\t\t}\n\n\t\t.current-live-program-overlay__tile {\n\t\t\tinline-size: 440px;\n\t\t\tblock-size: 122px;\n\t\t\tgap: 10px;\n\t\t}\n\n\t\t.current-live-program-overlay__artwork {\n\t\t\tinline-size: 196px;\n\t\t\tblock-size: 110px;\n\t\t}\n\n\t\t.current-live-program-overlay__eyebrow {\n\t\t\tfont-size: 14px;\n\t\t}\n\n\t\t.current-live-program-overlay__title {\n\t\t\tfont-size: 18px;\n\t\t}\n\n\t\t.current-live-program-overlay__subtitle {\n\t\t\tfont-size: 14px;\n\t\t}\n\t}\n\n\t@container (max-inline-size: 520px) {\n\t\t.current-live-program-overlay {\n\t\t\tinset-block-end: 84px;\n\t\t\tinset-inline-end: 24px;\n\t\t}\n\n\t\t.current-live-program-overlay__tile {\n\t\t\tinline-size: 340px;\n\t\t\tblock-size: 96px;\n\t\t\tgap: 8px;\n\t\t}\n\n\t\t.current-live-program-overlay__artwork {\n\t\t\tinline-size: 150px;\n\t\t\tblock-size: 84px;\n\t\t}\n\n\t\t.current-live-program-overlay__eyebrow {\n\t\t\tfont-size: 13px;\n\t\t}\n\n\t\t.current-live-program-overlay__title {\n\t\t\tfont-size: 16px;\n\t\t}\n\n\t\t.current-live-program-overlay__subtitle {\n\t\t\tfont-size: 13px;\n\t\t}\n\t}\n\n\t@container (max-block-size: 600px) {\n\t\t.current-live-program-overlay {\n\t\t\tinset-block-end: 96px;\n\t\t}\n\t}\n"),cL={"current-live-program-overlay--inset-block-end":"150px","current-live-program-overlay--inset-inline-end":"40px","current-live-program-overlay--tile-inline-size":"513px","current-live-program-overlay--tile-block-size":"142px","current-live-program-overlay--tile-gap":"12px","current-live-program-overlay--tile-border-radius":"15px","current-live-program-overlay--tile-border-color":"rgba(255, 255, 255, 0.1)","current-live-program-overlay--tile-background":"#17171b","current-live-program-overlay--artwork-inline-size":"231px","current-live-program-overlay--artwork-block-size":"130px","current-live-program-overlay--artwork-border-radius":"9px","current-live-program-overlay--artwork-background":"rgba(255, 255, 255, 0.08)","current-live-program-overlay--network-logo-block-size":"24px","current-live-program-overlay--network-logo-inset-block-end":"8px","current-live-program-overlay--network-logo-inset-inline-end":"8px","current-live-program-overlay--progress-block-size":"4px","current-live-program-overlay--progress-track-color":"rgba(255, 255, 255, 0.3)","current-live-program-overlay--progress-fill-color":"#f5063d","current-live-program-overlay--badge-icon":`url("${kT}")`,"current-live-program-overlay--badge-background-color":"#e50044","current-live-program-overlay--badge-icon-color":"#ffffff","current-live-program-overlay--badge-label-color":"#ffffff","current-live-program-overlay--badge-block-size":"20px","current-live-program-overlay--badge-border-radius":"6px","current-live-program-overlay--badge-inset-block-end":"8px","current-live-program-overlay--badge-inset-inline-start":"8px","current-live-program-overlay--eyebrow-font-size":"15px","current-live-program-overlay--eyebrow-color":"rgba(255, 255, 255, 0.8)","current-live-program-overlay--title-font-size":"20px","current-live-program-overlay--title-color":"#ffffff","current-live-program-overlay--subtitle-font-size":"15px","current-live-program-overlay--subtitle-color":"rgba(255, 255, 255, 0.6)"};Object.getOwnPropertyDescriptor;const dL={programTitle:"",subtitle:"",artworkUrl:"",networkLogoUrl:"",networkLogoAltText:"",progress:0,isCurrentLiveProgramOverlayEnabled:!1},uL=t=>{const e=t.playbackSession?.currentlyLiveProgram?.programId??null,
2428n=t.timeline?.timeline?.seekableDurationMs,i=t.playbackSession?.programs?.find((t=>t.id===e));return i&&null!=n&&i.durationMs>0?of((n-i.startPositionMs)/i.durationMs,0,1):0},pL=t=>{const e=t.playbackSession?.currentlyLiveProgram,n=e?.metadata,i=t.playbackCriteria?.current?.metadata?.networkAttribution;return{programTitle:n?.programTitle??dL.programTitle,subtitle:n?.subtitle??dL.subtitle,artworkUrl:n?.artworkUrl??dL.artworkUrl,networkLogoUrl:i?.watermarkImageUrl??dL.networkLogoUrl,networkLogoAltText:i?.ttsText??dL.networkLogoAltText,progress:uL(t),isCurrentLiveProgramOverlayEnabled:Boolean(t.playback?.clients?.playerFeatureFlags?.isCurrentLiveProgramOverlayEnabled)}};let hL=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,pL,dL)}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isOpen:t.overlayState?.overlays?.[Lf]?.isOpen??!1})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState?.(),this.unsubscribeFromLocalState=void 0}get isHoverOpen(){return this.localState?.overlayState?.overlays?.[Lf]?.isOpen??!1}get liveLabel(){const t="Live";return this.dictionary?.translate(Xl.MEDIA.PLAYER.LIVE_LABEL,t)??t}get eyebrowLabel(){const t="LIVE NOW";return this.dictionary?.translate(Xl.MEDIA.OVERLAYS.WATCH_LIVE_NEXT_PROGRAM_METADATA_LABEL,t)??t}get shouldShow(){const{isCurrentLiveProgramOverlayEnabled:t,programTitle:e}=this.streamController.value;return t&&this.isHoverOpen&&Boolean(e)}willUpdate(t){super.willUpdate(t),this.hidden=!this.shouldShow}render(){const{programTitle:t,subtitle:e,artworkUrl:n,networkLogoUrl:i,networkLogoAltText:r,progress:o}=this.streamController.value;return this.shouldShow?p.x`
2429			<div class="current-live-program-overlay">
2430				<div class="current-live-program-overlay__tile">
2431					<div class="current-live-program-overlay__artwork">
2432						${n?p.x`<img
2433										class="current-live-program-overlay__artwork-img"
2434										src=${n}
2435										alt=""
2436									/>`:p.E}
2437						<div class="current-live-program-overlay__badge">
2438							<span
2439								class="current-live-program-overlay__badge-icon"
2440								aria-hidden="true"
2441							></span>
2442							<span class="current-live-program-overlay__badge-label">
2443								${this.liveLabel}
2444							</span>
2445						</div>
2446						${i?p.x`<img
2447										class="current-live-program-overlay__network-logo"
2448										src=${i}
2449										alt=${r}
2450									/>`:p.E}
2451						<div class="current-live-program-overlay__progress">
2452							<div
2453								class="current-live-program-overlay__progress-fill"
2454								style="inline-size: ${Math.round(100*o)}%"
2455							></div>
2456						</div>
2457					</div>
2458					<div class="current-live-program-overlay__metadata">
2459						<div class="current-live-program-overlay__eyebrow">
2460							${this.eyebrowLabel}
2461						</div>
2462						${t?p.x`<div class="current-live-program-overlay__title">
2463										${t}
2464									</div>`:p.E}
2465						${e?p.x`<div class="current-live-program-overlay__subtitle">
2466										${e}
2467									</div>`:p.E}
2468					</div>
2469				</div>
2470			</div>
2471		`:p.E}};hL.tokens=cL,hL.styles=[qb,lL],hL=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2471)([p_],hL);const mL=Wb("\n\t.click-to-play-overlay {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tz-index: var(--click-to-play-overlay--z-index);\n\t\tpointer-events: auto;\n\t\tpadding: var(--click-to-play-overlay--padding);\n\t}\n\n\t.click-to-play-button {\n\t\tborder: none;\n\t\tcursor: pointer;\n\t\tbackground-color: transparent;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: var(--click-to-play-overlay--icon-size) auto;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.click-to-play-button.play {\n\t\tbackground-image: var(--click-to-play-overlay--play-icon);\n\t}\n\n\t.click-to-play-button.replay {\n\t\tbackground-image: var(--click-to-play-overlay--replay-icon);\n\t}\n\n\t.click-to-play-button:focus-visible {\n\t\toutline: 2px solid var(--click-to-play-overlay--focus-color);\n\t\toutline-offset: -2px;\n\t}\n"),gL={"click-to-play-overlay--z-index":"10","click-to-play-overlay--padding":"24px","click-to-play-overlay--icon-size":"196px","click-to-play-overlay--play-icon":`url("${Aw}")`,"click-to-play-overlay--replay-icon":"url(\"data:image/svg+xml,%3csvg%20width='28'%20height='29'%20viewBox='0%200%2028%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.0748%202.45949L7.2948%201.10949C7.2318%200.994034%207.13837%200.898039%207.02467%200.83193C6.91096%200.76582%206.78131%200.732122%206.6498%200.734492C6.48302%200.732096%206.32019%200.785368%206.18708%200.885884C6.05396%200.986399%205.95816%201.12842%205.9148%201.28949L4.8648%205.21949C4.84001%205.31503%204.83431%205.41453%204.84805%205.51227C4.86178%205.61002%204.89468%205.70409%204.94485%205.7891C4.99501%205.8741%205.06147%205.94837%205.1404%206.00764C5.21933%206.06691%205.30918%206.11002%205.4048%206.13449L9.3348%207.18449H9.4848H9.4998C9.63069%207.1837%209.75909%207.14867%209.87224%207.08289C9.9854%207.0171%2010.0794%206.92285%2010.1448%206.80949C10.2106%206.69548%2010.2453%206.56614%2010.2453%206.43449C10.2453%206.30284%2010.2106%206.17351%2010.1448%206.05949L9.1998%204.40949C11.4861%203.373%2014.0464%203.1044%2016.498%203.64386C18.9496%204.18331%2021.1607%205.50183%2022.8008%207.40227C24.4408%209.30271%2025.4216%2011.683%2025.5965%2014.1871C25.7715%2016.6912%2025.1312%2019.1847%2023.7713%2021.2947C22.4115%2023.4048%2020.4051%2025.0179%2018.0524%2025.893C15.6996%2026.7681%2013.1268%2026.8581%2010.7186%2026.1496C8.3104%2025.441%206.19626%2023.972%204.69228%2021.9622C3.1883%2019.9524%202.37529%2017.5097%202.3748%2014.9995C2.37622%2013.8674%202.53782%2012.7413%202.8548%2011.6545C2.90965%2011.38%202.86019%2011.0949%202.7161%2010.8549C2.57201%2010.615%202.34362%2010.4373%202.07557%2010.3567C1.80751%2010.2761%201.51903%2010.2983%201.26648%2010.419C1.01393%2010.5398%200.815445%2010.7503%200.709804%2011.0095C-0.21143%2014.0604%20-0.0566607%2017.3353%201.1482%2020.2857C2.35307%2023.2362%204.5349%2025.6833%207.32845%2027.2172C10.122%2028.7512%2013.3577%2029.279%2016.4939%2028.7122C19.6301%2028.1455%2022.4765%2026.5186%2024.5565%2024.104C26.6365%2021.6893%2027.8239%2018.6334%2027.9199%2015.4479C28.0159%2012.2623%2027.0148%209.14044%2025.084%206.60487C23.1532%204.0693%2020.4101%202.27392%2017.3137%201.51929C14.2173%200.764663%2010.9557%201.09658%208.0748%202.45949Z'%20fill='white'/%3e%3c/svg%3e\")","click-to-play-overlay--focus-color":"#ffffff",responsive:{}};Object.getOwnPropertyDescriptor;const vL={ended:!1},fL=t=>({ended:t.playback?.ended??!1});let bL=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,fL,vL),this.handleClick=()=>{this.commandBus?.dispatchCommand(Ql.MEDIA_ELEMENT_DISPATCH,{value:{type:On.PLAYBACK.PLAY}})}}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe?.(this,(t=>({isVisible:t.startupOverlays?.clickToPlay?.isVisible??!1})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState&&(this.unsubscribeFromLocalState(),this.unsubscribeFromLocalState=void 0)}render(){if(!this.localState?.startupOverlays?.clickToPlay?.isVisible)return p.E;const{ended:t}=this.streamController.value,e=t?"replay":"play",n=t?"Replay":"Click to Play";return p.x`
2472			<div class="click-to-play-overlay" aria-live="assertive">
2473				<button
2474					type="button"
2475					class="click-to-play-button ${e}"
2476					aria-label=${n}
2477					@click=${this.handleClick}
2478				></button>
2479			</div>
2480		`}};bL.tokens=gL,bL.styles=[mL],bL=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o})([p_],bL);const _L=Wb("\n\t:host {\n\t\tdisplay: none;\n\t\tpointer-events: none;\n\t}\n\n\t:host([preplay-visible]) {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tdisplay: block;\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.overlay__preplay {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbox-sizing: border-box;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex-wrap: nowrap;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\talign-content: space-between;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tpadding-inline: var(--preplay-overlay--padding-inline);\n\t\tbackground-color: var(--preplay-overlay--background-color);\n\t\tcolor: var(--preplay-overlay--text-color);\n\t\tletter-spacing: normal;\n\t\tline-height: 1.5;\n\t\ttext-align: center;\n\t\tz-index: var(--preplay-overlay--z-index);\n\t}\n\n\t.overlay__preplay p {\n\t\tbox-sizing: border-box;\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t}\n\n\t.preplay_advisory {\n\t\tfont-size: var(--preplay-overlay--advisory-font-size);\n\t\twhite-space: pre-line;\n\t}\n\n\t.preplay_countdown {\n\t\tfont-size: var(--preplay-overlay--countdown-font-size);\n\t\tfont-weight: var(--preplay-overlay--countdown-font-weight);\n\t}\n\n\t.preplay_countdown.hide_countdown {\n\t\topacity: 0;\n\t}\n");Object.getOwnPropertyDescriptor;const EL=/\$?\{time_left\}/,yL={preplay:{}},SL=(t,e)=>"string"==typeof t?t.replace(EL,`${e}`):t,TL=t=>({preplay:t.overlays?.preplay??{}});let CL=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,TL,yL)}render(){const{visible:t,text:e,hideCountdown:n,countDownText:i}=(({advisory:t,countdown:e,visible:n}={})=>{const i=Object.entries(t??{}).reduce(((t,[n,i])=>({...t,[n]:SL(i,e)})),{});return{visible:n??!1,text:i.text??"",hideCountdown:!e,countDownText:i.countDownText??""}})(this.streamController.value.preplay);return this.toggleAttribute("preplay-visible",t),t?p.x`
2481			<div class="overlay overlay__preplay" aria-live="polite">
2482				<p class="preplay_advisory">${e}</p>
2483				<p
2484					class=${My({preplay_countdown:!0,hide_countdown:n})}
2485				>
2486					${i}
2487				</p>
2488			</div>
2489		`:p.E}};CL.tokens={"preplay-overlay--z-index":"1","preplay-overlay--padding-inline":"10%","preplay-overlay--background-color":"#000000","preplay-overlay--text-color":"#f9f9f9","preplay-overlay--advisory-font-size":"12px","preplay-overlay--countdown-font-size":"12px","preplay-overlay--countdown-font-weight":"900",responsive:{medium:{"preplay-overlay--advisory-font-size":"15px","preplay-overlay--countdown-font-size":"15px"},large:{"preplay-overlay--advisory-font-size":"24px","preplay-overlay--countdown-font-size":"18px"}}},CL.styles=[_L],CL=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2489)([p_],CL);const wL=Wb("\n\t.error-overlay-backdrop {\n\t\tposition: fixed;\n\t\tinset: 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground: var(--error-overlay--backdrop-background);\n\t\tz-index: var(--error-overlay--z-index);\n\t\tpointer-events: auto;\n\t}\n\n\t.error-overlay-dialog {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tbackground: var(--error-overlay--dialog-background);\n\t\tcolor: var(--error-overlay--text-color);\n\t\tborder-radius: var(--error-overlay--dialog-border-radius);\n\t\tpadding: var(--error-overlay--dialog-padding);\n\t\tmax-width: var(--error-overlay--dialog-max-width);\n\t\twidth: var(--error-overlay--dialog-width);\n\t\tbox-shadow: var(--error-overlay--dialog-shadow);\n\t}\n\n\t.error-overlay-messages {\n\t\tmargin: 0 0 var(--error-overlay--message-button-gap) 0;\n\t}\n\n\t.error-overlay-message {\n\t\tfont-size: var(--error-overlay--message-font-size);\n\t\tline-height: var(--error-overlay--message-line-height);\n\t\tmargin: 0 0 var(--error-overlay--message-gap) 0;\n\t}\n\n\t.error-overlay-message:last-child {\n\t\tmargin-bottom: 0;\n\t}\n\n\t.error-overlay-dismiss {\n\t\talign-self: flex-end;\n\t\tbackground: var(--error-overlay--dismiss-background);\n\t\tcolor: var(--error-overlay--dismiss-color);\n\t\tborder: none;\n\t\tpadding: var(--error-overlay--dismiss-padding);\n\t\tborder-radius: var(--error-overlay--dismiss-border-radius);\n\t\ttext-transform: uppercase;\n\t\tletter-spacing: var(--error-overlay--dismiss-letter-spacing);\n\t\tfont-weight: var(--error-overlay--dismiss-font-weight);\n\t\tcursor: pointer;\n\t}\n\n\t.error-overlay-dismiss:hover {\n\t\topacity: 0.95;\n\t}\n\n\t.error-overlay-dismiss:focus-visible {\n\t\toutline: 2px solid var(--error-overlay--dismiss-focus-color);\n\t\toutline-offset: 2px;\n\t}\n");Object.getOwnPropertyDescriptor;const AL={visible:!1,messages:[]},IL=t=>{const{errorOverlay:e}=t;return{visible:e?.visible??!1,messages:e?.messages??[]}};let OL=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,IL,AL),this.handleDismiss=()=>{this.commandBus?.dispatchCommand(Ql.MEDIA_ELEMENT_DISPATCH,{value:{type:Cv.ERROR_OVERLAY_HIDE}}),this.commandBus?.dispatchCommand(Ql.MEDIA_ELEMENT_DISPATCH,{value:{type:Cv.ERROR_OVERLAY_REMOVE_ALL}})}}render(){const{visible:t,messages:e}=this.streamController.value;if(!t||0===e.length)return p.E;const n=this.dictionary?.translate(Xl.MEDIA.OVERLAYS.ERROR_OVERLAY_DISMISS,"DISMISS");return p.x`
2490			<div
2491				class="error-overlay-backdrop"
2492				aria-live="assertive"
2493				role="presentation"
2494			>
2495				<div
2496					class="error-overlay-dialog"
2497					role="dialog"
2498					aria-modal="true"
2499					aria-labelledby="error-overlay-messages"
2500				>
2501					<div class="error-overlay-messages" id="error-overlay-messages">
2502						${e.map((t=>p.x`
2503								<p class="error-overlay-message">${t}</p>
2504							`))}
2505					</div>
2506					<button
2507						type="button"
2508						class="error-overlay-dismiss"
2509						aria-label=${n}
2510						@click=${this.handleDismiss}
2511					>
2512						${n}
2513					</button>
2514				</div>
2515			</div>
2516		`}};OL.tokens={"error-overlay--backdrop-background":"rgba(0, 0, 0, 0.7)","error-overlay--z-index":"9999","error-overlay--dialog-background":"#2b2f36","error-overlay--text-color":"#cacaca","error-overlay--dialog-border-radius":"8px","error-overlay--dialog-padding":"32px","error-overlay--dialog-max-width":"327px","error-overlay--dialog-shadow":"0 8px 20px rgba(0, 0, 0, 0.6)","error-overlay--message-font-size":"15px","error-overlay--message-line-height":"1.5","error-overlay--message-gap":"12px","error-overlay--message-button-gap":"24px","error-overlay--dismiss-background":"#ffffff","error-overlay--dismiss-color":"#0b0b0b","error-overlay--dismiss-padding":"10px 12px","error-overlay--dismiss-border-radius":"8px","error-overlay--dismiss-letter-spacing":"1.5px","error-overlay--dismiss-font-weight":"700","error-overlay--dismiss-focus-color":"#ffffff",responsive:{medium:{"error-overlay--dialog-max-width":"560px"}}},OL.styles=[wL],OL=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2516)([p_],OL);const RL=Wb('\n\t:host {\n\t\tposition: absolute;\n\t\tinset-inline: 0;\n\t\tinset-block-end: 0;\n\t\tblock-size: 800px;\n\t\tmax-block-size: 100%;\n\t\tz-index: 10001;\n\t\tpointer-events: none;\n\t\toverflow: hidden;\n\t}\n\n\t:host([data-tray-open]) {\n\t\topacity: 1 !important;\n\t\tvisibility: visible !important;\n\t}\n\n\t.pivot-tray-overlay {\n\t\tposition: absolute;\n\t\tinset-inline: 0;\n\t\tinset-block-end: 0;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: flex-end; /* Position content at bottom */\n\t\tpointer-events: none;\n\t\tblock-size: 800px; /* Fill parent */\n\t}\n\n\t.pivot-tray-overlay--visible {\n\t\tbackground: linear-gradient(\n\t\t\tto top,\n\t\t\trgba(0, 0, 0, 0.9) 0%,\n\t\t\trgba(0, 0, 0, 0.8) 10%,\n\t\t\trgba(0, 0, 0, 0.7) 20%,\n\t\t\trgba(0, 0, 0, 0.58) 33%,\n\t\t\trgba(0, 0, 0, 0.45) 45%,\n\t\t\trgba(0, 0, 0, 0.33) 58%,\n\t\t\trgba(0, 0, 0, 0.2) 70%,\n\t\t\trgba(0, 0, 0, 0.1) 80%,\n\t\t\trgba(0, 0, 0, 0) 100%\n\t\t);\n\t\topacity: 1 !important;\n\t\tvisibility: visible !important;\n\t}\n\n\t.tiles-container {\n\t\tposition: relative;\n\t\tpadding: 0;\n\t\tpadding-inline: 0;\n\t\tpadding-block-end: 32px;\n\t\toverflow: hidden;\n\t\tpointer-events: none;\n\t\topacity: 0;\n\t\ttransform: translateY(20px); /* Start slightly below */\n\t\ttransition:\n\t\t\topacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n\t\t\ttransform 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.tiles-container--visible {\n\t\topacity: 1;\n\t\ttransform: translateY(0); /* Slide up to position */\n\t\toverflow: visible;\n\t\tpointer-events: auto;\n\t}\n\n\t.cta-button-container {\n\t\tposition: absolute;\n\t\tinset-block-end: var(--cta--inset-block-end); /* Position from bottom */\n\t\tinset-inline-start: var(--cta--inset-inline-start);\n\t\topacity: 0;\n\t\tdisplay: none;\n\t\ttransform: translateX(-5px); /* Start position: slightly to the left */\n\t\tpointer-events: none;\n\t\ttransition:\n\t\t\topacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),\n\t\t\ttransform 0.4s cubic-bezier(0.4, 0, 0.2, 1);\n\t\twill-change: transform, opacity;\n\t}\n\n\t.cta-button-container--visible {\n\t\topacity: 1;\n\t\ttransform: translateX(0); /* End position: slide in to final position */\n\t\tpointer-events: auto;\n\t\tdisplay: block;\n\t}\n\n\t.cta-button {\n\t\tbackground: var(--cta--background);\n\t\tbackground-blend-mode: var(--cta--background-blend-mode);\n\t\tbackdrop-filter: var(--cta--backdrop-filter);\n\t\tcolor: var(--cta--color);\n\t\tborder: none;\n\t\tborder-radius: var(--cta--border-radius);\n\t\tfont-weight: var(--cta--font-weight);\n\t\tpadding-block: var(--cta--padding-block);\n\t\tpadding-inline: var(--cta--padding-inline);\n\t\tfont-size: var(--cta--font-size);\n\t\tcursor: pointer;\n\t\tpointer-events: auto;\n\t\tfont-family: Inspire, sans-serif;\n\t\ttransition:\n\t\t\tbackground 0.15s ease,\n\t\t\tcolor 0.15s ease,\n\t\t\tbackdrop-filter 0.15s ease,\n\t\t\tbackground-blend-mode 0.15s ease;\n\t}\n\n\t.cta-button:hover {\n\t\tbackground: white;\n\t\tcolor: black;\n\t\tbackground-blend-mode: normal;\n\t\tbackdrop-filter: none;\n\t}\n\n\t.carousel-header {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tjustify-content: space-between;\n\t\tpadding: 0 var(--close-button-right, 0);\n\t\tmargin-block-end: var(--carousel-header--margin-block-end, 12px);\n\t}\n\n\t.close-button {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tgap: var(--close-button--gap);\n\t\tinline-size: var(--close-button--inline-size);\n\t\tmin-inline-size: fit-content;\n\t\tblock-size: var(--close-button--block-size);\n\t\tbackground: var(--close-button--background);\n\t\tbackground-blend-mode: var(--close-button--background-blend-mode);\n\t\tbackdrop-filter: var(--close-button--backdrop-filter);\n\t\tborder-radius: var(--close-button--border-radius);\n\t\tpadding: var(--close-button--padding);\n\t\tcursor: pointer;\n\t\tpointer-events: auto;\n\t\tborder: none;\n\t\tfont-family: Inspire, sans-serif;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\topacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n\t\t\tbackground 0.15s ease,\n\t\t\tcolor 0.15s ease,\n\t\t\tbackdrop-filter 0.15s ease,\n\t\t\tbackground-blend-mode 0.15s ease;\n\t}\n\n\t.tiles-container--visible .close-button {\n\t\topacity: 1;\n\t}\n\n\t.close-button:hover {\n\t\tbackground: white;\n\t\tcolor: black;\n\t\tbackground-blend-mode: normal;\n\t\tbackdrop-filter: none;\n\t}\n\n\t.close-button:hover .close-button__text {\n\t\tcolor: black;\n\t}\n\n\t.close-button:hover .close-button__icon {\n\t\tbackground-color: black;\n\t}\n\n\t.close-button__icon {\n\t\tinline-size: var(--close-button--icon-size);\n\t\tblock-size: var(--close-button--icon-size);\n\t\tmask-image: var(--close-button--icon);\n\t\t-webkit-mask-image: var(--close-button--icon);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tmask-position: center;\n\t\tbackground-color: white;\n\t\tflex-shrink: 0;\n\t\ttransition: stroke 0.15s ease;\n\t}\n\n\t.close-button__text {\n\t\tfont-size: var(--close-button--text-size);\n\t\tfont-weight: var(--close-button--text-weight);\n\t\tcolor: var(--close-button--text-color);\n\t\ttext-transform: var(--close-button--text-transform);\n\t\tline-height: 24px;\n\t\ttransition: color 0.15s ease;\n\t}\n\n\t.countdown-text {\n\t\tcolor: var(--countdown-text--color);\n\t\tfont-size: var(--countdown-text--font-size);\n\t\tfont-weight: var(--countdown-text--font-weight);\n\t\tfont-family: Inspire, sans-serif;\n\t\tline-height: var(--countdown-text--line-height);\n\t\tpointer-events: auto;\n\t\topacity: 0;\n\t\ttransition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t.countdown-text--visible {\n\t\topacity: 1;\n\t}\n\n\t.countdown-text--closing {\n\t\topacity: 0;\n\t}\n\n\t:host([dir="rtl"]) .cta-button,\n\t:host([dir="rtl"]) .close-button,\n\t:host([dir="rtl"]) .countdown-text,\n\t:host(:lang(th)) .cta-button,\n\t:host(:lang(th)) .close-button,\n\t:host(:lang(th)) .countdown-text {\n\t\tfont-family: inherit;\n\t}\n\n\t/* TODO: A11y - Add :focus-visible styles for .close-button and .cta-button */\n\n\t/* Reduced motion support for users with vestibular disorders */\n\t@media (prefers-reduced-motion: reduce) {\n\t\t.tiles-container {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.cta-button-container {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.close-button {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.countdown-text {\n\t\t\ttransition: none;\n\t\t}\n\t}\n'),xL={"tray--background":"rgba(24, 24, 24, 0.96)","tray--padding":"32px 48px","tray--gap":"24px","cta--background":"linear-gradient(0deg, rgba(78, 78, 78, 0.3) 0%, rgba(78, 78, 78, 0.3) 100%), rgba(169, 169, 169, 0.15)","cta--background-blend-mode":"overlay, luminosity","cta--backdrop-filter":"blur(25px)","cta--color":"#fff","cta--border-radius":"100px","cta--font-weight":"700","cta--padding-block":"8px","cta--padding-inline":"16px","cta--font-size":"15px","cta--line-height":"32px","cta--inset-block-end":"24px","cta--inset-inline-start":"24px","close-button--inline-size":"114px","close-button--block-size":"38px","close-button--background":"linear-gradient(0deg, rgba(78, 78, 78, 0.3) 0%, rgba(78, 78, 78, 0.3) 100%), rgba(169, 169, 169, 0.15)","close-button--background-blend-mode":"overlay, luminosity","close-button--backdrop-filter":"blur(25px)","close-button--border-radius":"100px","close-button--pa
2516dding":"1px 10px","close-button--gap":"7px","close-button--icon-size":"20px","close-button--icon":`url("${OS}")`,"close-button--text-size":"16px","close-button--text-weight":"700","close-button--text-color":"#fff","close-button--text-transform":"none","close-button--letter-spacing":"0.11px;","countdown-text--color":"#fff","countdown-text--font-size":"20px","countdown-text--font-weight":"700","countdown-text--line-height":"32px","carousel-header--margin-block-end":"12px",responsive:{extraSmall:{"tray--padding":"16px 24px","tray--gap":"16px"},small:{"tray--padding":"20px 32px","tray--gap":"20px"},medium:{"tray--padding":"24px 40px","tray--gap":"24px","cta--font-size":"20px"}}},LL="tile-click";class kL{constructor(t){this._countdownRemaining=0,this._countdownCancelled=!1,this._isClosing=!1,this._countdownTextVisible=!1,this._animationKey=0,this._hoveredTileIndex=null,this._trayOpenTimestamp=0,this._countdownInterval=null,this._clickOutsideHandler=null,this._previousPivotTrayState=null,this._imageCache={},this._previouslyFocusedElement=null,this._previousCtaVisible=!1,this.handleClickOutside=t=>{if(!this.pivotTrayIsOpen||this._isClosing)return;const e=t.composedPath(),n=this.host;e.some((t=>t===n||!!(t instanceof Node&&n.shadowRoot?.contains(t))||t===n.shadowRoot))||this.closeTray()},(this.host=t).addController(this)}get countdownRemaining(){return this._countdownRemaining}get countdownCancelled(){return this._countdownCancelled}get isClosing(){return this._isClosing}get countdownTextVisible(){return this._countdownTextVisible}get animationKey(){return this._animationKey}get hoveredTileIndex(){return this._hoveredTileIndex}get pivotTrayIsOpen(){return this.host.streamController?.value?.pivotTrayIsOpen??!1}get pivotTrayCtaVisible(){return this.host.streamController?.value?.pivotTrayCtaVisible??!1}get isUiLegacyControlsOverlayVisible(){return this.host.streamController?.value?.isUiLegacyControlsOverlayVisible??!1}get autoplayEnabled(){return this.host.streamController?.value?.autoplayEnabled??!1}get countdownMs(){return this.host.streamController?.value?.countdownMs??25e3}get upNextItems(){return this.host.streamController?.value?.upNextItems??[]}get isTrayOpenedOrClosing(){return this.pivotTrayIsOpen||this._isClosing}get areControlsVisible(){return this.isUiLegacyControlsOverlayVisible}get shouldShowCtaButton(){return this.pivotTrayCtaVisible&&!this.isTrayOpenedOrClosing}get isCountdownActive(){return null!==this._countdownInterval&&!this._countdownCancelled}get state(){return{pivotTrayIsOpen:this.pivotTrayIsOpen,pivotTrayCtaVisible:this.pivotTrayCtaVisible,isClosing:this._isClosing,countdownRemaining:this._countdownRemaining,countdownCancelled:this._countdownCancelled,countdownTextVisible:this._countdownTextVisible,shouldShowCtaButton:this.shouldShowCtaButton,hoveredTileIndex:this._hoveredTileIndex,animationKey:this._animationKey,isCountdownActive:this.isCountdownActive}}hostConnected(){}hostDisconnected(){this.stopCountdown(),this.removeClickOutsideListener(),this.host.clearTimeout?.(),this.pivotTrayIsOpen&&this.dispatchOverlayEvent(Pf)}handleUpdate(){const t=this.host.streamController?.value;if(!t)return;const{pivotTrayIsOpen:e,resetCountdown:n,autoplayEnabled:i,pivotTrayCtaVisible:r}=t,o=this._previousPivotTrayState?.pivotTrayIsOpen??!1,a=this._previousPivotTrayState?.pivotTrayIsOpen!==e||this._previousPivotTrayState?.pivotTrayCtaVisible!==t.pivotTrayCtaVisible;a&&(e?this.host.setAttribute("data-tray-open",""):this.host.removeAttribute("data-tray-open")),r&&!this._previousCtaVisible&&this.host.commandBus?.dispatchCommand($l.PIVOT_TRAY.MORE_FOR_YOU_SHOWN),this._previousCtaVisible=r,a&&this._previousPivotTrayState?.pivotTrayIsOpen!==e&&this.host.mediaElement?.stateStore?.dispatch({type:"@@btmp-ui/UI/OVERLAY/CONTROLS/SET_DISPLAY_MODE",value:e?"alwaysOff":"decay"}),a&&e&&!o&&n&&this.onTrayOpened(i),a&&!e&&o&&this.onTrayClosed(),a&&e&&!o&&this.addClickOutsideListener(),this._previousPivotTrayState={...t}}handleClosingStateChange(t){t&&(this._countdownTextVisible=!1)}onTrayOpened(t){this._countdownCancelled=!1,this._hoveredTileIndex=null,this._trayOpenTimestamp=Date.now(),this._animationKey+=1,this._countdownTextVisible=!1,this._previouslyFocusedElement=document.activeElement,this.dispatchOverlayEvent(kf),requestAnimationFrame((()=>{this._countdownTextVisible=!0,this.host.requestUpdate(),this.focusFirstTile()}
2516)),t?this.startCountdown():this._countdownCancelled=!0}onTrayClosed(){this.cancelCountdown(),this.removeClickOutsideListener(),this.restoreFocus(),this.host.commandBus?.dispatchCommand($l.PIVOT_TRAY.CLOSE),this.dispatchOverlayEvent(Pf)}focusFirstTile(){const t=this.host,e=t?.shadowRoot?.querySelector("pivot-tray-carousel")?.shadowRoot?.querySelector("pivot-tray-tile")?.shadowRoot?.querySelector(".tile-container");this.host.moveFocusTo?.(e)}restoreFocus(){this._previouslyFocusedElement instanceof HTMLElement&&this.host.moveFocusTo?.(this._previouslyFocusedElement),this._previouslyFocusedElement=null}startCountdown(){this._countdownInterval||(this._countdownRemaining=this.countdownMs/1e3,this._countdownInterval=setInterval((()=>{this._countdownRemaining>0?(this._countdownRemaining-=1,this.host.requestUpdate()):this._countdownCancelled||this.onCountdownComplete()}),1e3))}stopCountdown(){this._countdownInterval&&(clearInterval(this._countdownInterval),this._countdownInterval=null)}cancelCountdown(){this.stopCountdown(),this._countdownCancelled=!0}onCountdownComplete(){this.stopCountdown(),this.transformUpNextItemsToTiles(this.upNextItems).length&&(this.host.commandBus?.dispatchCommand($l.PIVOT_TRAY.AUTOPLAY,{item:this.upNextItems[0].item,index:0}),this.handleTileClick(new CustomEvent(LL,{detail:{item:this.upNextItems[0].item,index:0}})))}transformUpNextItemsToTiles(t){return t?.length?t.map((t=>{if(!t?.item)return null;const{item:e,rating:n}=t,{visuals:i,id:r}=e||{};if(!i||!r)return null;const o=i?.artwork?.standard?.tile?.[1.78]?.imageId||i?.artwork?.up_next?.background?.[1.78]?.imageId,a=i?.title||"",s=i?.metastringParts?.releaseYearRange?.startYear||"",l=i?.metastringParts?.genres?.values?.join(", ")||"",c={id:r||"",title:a,episodeTitle:i?.episodeTitle||"",fullEpisodeTitle:i?.fullEpisodeTitle||"",artworkUrl:this.resolveImage(o)||""};return n&&(c.rating=n),s&&(c.year=s),l&&(c.genre=l),c})).filter((t=>null!==t)):[]}resolveImage(t){if(!t)return;const e=this._imageCache[t];if(void 0!==e)return e;this._imageCache[t]=void 0,this.host.commandBus?.dispatchCommand(Ql.GET_IMAGE_URL,{imageId:t,resolve:e=>{this._imageCache[t]=e||void 0,this.host.requestUpdate()}})}openTray(){this.host.commandBus?.dispatchCommand($l.PIVOT_TRAY.MORE_FOR_YOU_CLICKED),this.host.mediaElement?.stateStore?.dispatch?.({type:"@PLAYER/OPEN_PIVOT_TRAY_CTA"}),this.dispatchOverlayEvent(kf)}closeTray(){this._isClosing=!0,this.host.requestUpdate(),this.host.commandBus?.dispatchCommand($l.PIVOT_TRAY.CLOSE_CLICKED),this.host.mediaElement?.stateStore?.dispatch?.({type:"@PLAYER/CLOSE_PIVOT_TRAY"}),this.cancelCountdown(),this.removeClickOutsideListener(),this.host.startTimeout?.(this.host.closingAnimationMs)}onTimeoutComplete(){this._isClosing=!1,this.host.requestUpdate()}handleTileClick(t){if(this._countdownInterval&&this.cancelCountdown(),!t.detail)return;const{item:e,index:n}=t.detail;e?.id&&(this.host.commandBus?.dispatchCommand($l.PIVOT_TRAY.TILE_SELECTED,{item:e,index:n}),this.host.commandBus?.dispatchCommand(Ql.PLAY_NEXT,{label:"Pivot tray overlay"}),this.host.commandBus?.dispatchCommand($l.CONTROLS.PLAY_NEXT.CLICKED,{nextContentId:e.id,analyticsTrackingLabel:"pivot_tray_overlay"}))}handleTileHover(t){const e=t.detail?.tileIndex,n=Date.now()-this._trayOpenTimestamp>=this.host.hoverCooldownMs;this._countdownInterval&&!this._countdownCancelled&&n&&(this.cancelCountdown(),this.host.requestUpdate()),(this._countdownCancelled||!this._countdownInterval)&&void 0!==e&&(this._hoveredTileIndex=e,this.host.requestUpdate())}handleTileMouseLeave(){(this._countdownCancelled||!this._countdownInterval)&&(this._hoveredTileIndex=null,this.host.requestUpdate())}addClickOutsideListener(){this._clickOutsideHandler||(this._clickOutsideHandler=this.handleClickOutside,document.addEventListener("mousedown",this._clickOutsideHandler,!0))}removeClickOutsideListener(){this._clickOutsideHandler&&(document.removeEventListener("mousedown",this._clickOutsideHandler,!0),this._clickOutsideHandler=null)}dispatchOverlayEvent(t){this.host.commandBus?.dispatchCommand(Ql.OVERLAY_EVENT,{overlayName:"pivotTray",type:t,localState:this.host.localState})}}function PL(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function DL(t={},e={}){const n=["__proto__","constructor","prototype"];Object.keys(e).filter((t=>
2516n.indexOf(t)<0)).forEach((n=>{void 0===t[n]?t[n]=e[n]:PL(e[n])&&PL(t[n])&&Object.keys(e[n]).length>0&&DL(t[n],e[n])}))}const NL={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ML(){const t="undefined"!=typeof document?document:{};return DL(t,NL),t}const UL={document:NL,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function BL(){const t="undefined"!=typeof window?window:{};return DL(t,UL),t}function VL(t=""){return t.trim().split(" ").filter((t=>!!t.trim()))}function FL(t,e=0){return setTimeout(t,e)}function zL(){return Date.now()}function $L(t,e="x"){const n=BL();let i,r,o;const a=function(t){const e=BL();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}(t);return n.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((t=>t.replace(",","."))).join(", ")),o=new n.WebKitCSSMatrix("none"===r?"":r)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=o.toString().split(",")),"x"===e&&(r=n.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(r=n.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function HL(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function GL(...t){const e=Object(t[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<t.length;r+=1){const o=t[r];if(null!=o&&(i=o,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const t=Object.keys(Object(o)).filter((t=>n.indexOf(t)<0));for(let n=0,i=t.length;n<i;n+=1){const i=t[n],r=Object.getOwnPropertyDescriptor(o,i);void 0!==r&&r.enumerable&&(HL(e[i])&&HL(o[i])?o[i].__swiper__?e[i]=o[i]:GL(e[i],o[i]):!HL(e[i])&&HL(o[i])?(e[i]={},o[i].__swiper__?e[i]=o[i]:GL(e[i],o[i])):e[i]=o[i])}}}var i;return e}function YL(t,e,n){t.style.setProperty(e,n)}function jL({swiper:t,targetPosition:e,side:n}){const i=BL(),r=-t.translate;let o,a=null;const s=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const l=e>r?"next":"prev",c=(t,e)=>"next"===l&&t>=e||"prev"===l&&t<=e,d=()=>{o=(new Date).getTime(),null===a&&(a=o);const l=Math.max(Math.min((o-a)/s,1),0),u=.5-Math.cos(l*Math.PI)/2;let p=r+u*(e-r);if(c(p,e)&&(p=e),t.wrapperEl.scrollTo({[n]:p}),c(p,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[n]:p})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(d)};d()}function KL(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function WL(t,e=""){const n=BL(),i=[...t.children];return n.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter((t=>t.matches(e))):i}function qL(t){try{return void console.warn(t)}catch(t){}}function XL(t,e=[]){const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:VL(e)),n}function ZL(t){const e=BL(),n=ML(),i=t.getBoundingClientRect(),r=n.body,o=t.clientTop||r.clientTop||0,a=t.clientLeft||r.clientLeft||0,s=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:i.top+s-o,left:i.left+l-a}}function QL(t,e){return BL().getComputedStyle(t,null).getPropertyValue(e)}function JL(t){let e,n=t;if(n){for(e=0;
2516null!==(n=n.previousSibling);)1===n.nodeType&&(e+=1);return e}}function tk(t,e){const n=[];let i=t.parentElement;for(;i;)e?i.matches(e)&&n.push(i):n.push(i),i=i.parentElement;return n}function ek(t,e){e&&t.addEventListener("transitionend",(function n(i){i.target===t&&(e.call(t,i),t.removeEventListener("transitionend",n))}))}function nk(t,e,n){const i=BL();return t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom"))}function ik(t){return(Array.isArray(t)?t:[t]).filter((t=>!!t))}function rk(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90==0?e+.001:e}function ok(t,e=""){"undefined"!=typeof trustedTypes?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:t=>t}).createHTML(e):t.innerHTML=e}let ak,sk,lk;function ck(){return ak||(ak=function(){const t=BL(),e=ML();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}()),ak}function dk(t={}){return sk||(sk=function({userAgent:t}={}){const e=ck(),n=BL(),i=n.navigator.platform,r=t||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=r.match(/(Android);?[\s\/]+([\d.]+)?/);let c=r.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const d=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===i;let h="MacIntel"===i;return!c&&h&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${s}`)>=0&&(c=r.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),h=!1),l&&!p&&(o.os="android",o.android=!0),(c||u||d)&&(o.os="ios",o.ios=!0),o}(t)),sk}function uk(){return lk||(lk=function(){const t=BL(),e=dk();let n=!1;function i(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(i()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,i]=e.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));n=t<16||16===t&&i<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),o=i();return{isSafari:n||o,needPerspectiveFix:n,need3dFix:o||r&&e.ios,isWebView:r}}()),lk}const pk=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)},hk=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)},mk=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(n){let e=n.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(n.shadowRoot?e=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(e=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),e&&e.remove())}))),e&&e.remove()}},gk=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},vk=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const i="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const n=r,o=[n-e];return o.push(...Array.from({length:e}).map(((t,e)=>n+i+e))),void t.slides.forEach(((e,n)=>
vendor: 4,914 bytes, line 2516
2516{o.includes(e.column)&&gk(t,n)}))}const o=r+i-1;if(t.params.rewind||t.params.loop)for(let i=r-e;i<=o+e;i+=1){const e=(i%n+n)%n;(e<r||e>o)&&gk(t,e)}else for(let i=Math.max(r-e,0);i<=Math.min(o+e,n-1);i+=1)i!==r&&(i>o||i<r)&&gk(t,i)};function fk({swiper:t,runCallbacks:e,direction:n,step:i}){const{activeIndex:r,previousIndex:o}=t;let a=n;a||(a=r>o?"next":r<o?"prev":"reset"),t.emit(`transition${i}`),e&&"reset"===a?t.emit(`slideResetTransition${i}`):e&&r!==o&&(t.emit(`slideChangeTransition${i}`),"next"===a?t.emit(`slideNextTransition${i}`):t.emit(`slidePrevTransition${i}`))}function bk(t,e,n){const i=BL(),{params:r}=t,o=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return!o||!(n<=a||n>=i.innerWidth-a)||"prevent"===o&&(e.preventDefault(),!0)}function _k(t){const e=this,n=ML();let i=t;i.originalEvent&&(i=i.originalEvent);const r=e.touchEventsData;if("pointerdown"===i.type){if(null!==r.pointerId&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(r.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void bk(e,i,i.targetTouches[0].pageX);const{params:o,touches:a,enabled:s}=e;if(!s)return;if(!o.simulateTouch&&"mouse"===i.pointerType)return;if(e.animating&&o.preventInteractionOnTransition)return;!e.animating&&o.cssMode&&o.loop&&e.loopFix();let l=i.target;if("wrapper"===o.touchEventsTarget&&!function(t,e){const n=BL();let i=e.contains(t);return!i&&n.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(t),i||(i=function(t,e){const n=[e];for(;n.length>0;){const e=n.shift();if(t===e)return!0;n.push(...e.children,...e.shadowRoot?e.shadowRoot.children:[],...e.assignedElements?e.assignedElements():[])}}(t,e))),i}(l,e.wrapperEl))return;if("which"in i&&3===i.which)return;if("button"in i&&i.button>0)return;if(r.isTouched&&r.isMoved)return;const c=!!o.noSwipingClass&&""!==o.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!i.target||!i.target.shadowRoot);if(o.noSwiping&&(p?function(t,e=this){return function e(n){if(!n||n===ML()||n===BL())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(t);return i||n.getRootNode?i||e(n.getRootNode().host):null}(e)}(u,l):l.closest(u)))return void(e.allowClick=!0);if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const h=a.currentX,m=a.currentY;if(!bk(e,i,h))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,r.touchStartTime=zL(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1);let g=!0;l.matches(r.focusableElements)&&(g=!1,"SELECT"===l.nodeName&&(r.isTouched=!1)),n.activeElement&&n.activeElement.matches(r.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(r.focusableElements))&&n.activeElement.blur();const v=g&&e.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||l.isContentEditable||i.preventDefault(),o.freeMode&&o.freeMode.enabled&&e.freeMode&&e.animating&&!o.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function Ek(t){const e=ML(),n=this,i=n.touchEventsData,{params:r,touches:o,rtlTranslate:a,enabled:s}=n;if(!s)return;if(!r.simulateTouch&&"mouse"===t.pointerType)return;let l,c=t;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==i.touchId)return;if(c.pointerId!==i.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find((t=>t.identifier===i.touchId)),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return o.startX=d,void(o.startY=u);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(o,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=zL()));if(r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(u<o.startY&&n.translate<=n.maxTranslate()||u>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(a&&(d>o.startX&&-n.translate<=n.maxTranslate()||d<o.startX&&-n.translate>=n.minTranslate()))return;if(!a&&(d<o.startX&&n.translate<=n.maxTranslate()||d>o.startX&&n.translate>=n.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==c.target&&"mouse"!==c.pointerType&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),o.previousX=o.currentX,o.previousY=o.currentY,o.currentX=d,o.currentY=u;const p=o.currentX-o.startX,h=o.currentY-o.startY;
vendor: 3,534 bytes, line 2516
2516if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(void 0===i.isScrolling){let t;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:p*p+h*h>=25&&(t=180*Math.atan2(Math.abs(h),Math.abs(p))/Math.PI,i.isScrolling=n.isHorizontal()?t>r.touchAngle:90-t>r.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let m=n.isHorizontal()?p:h,g=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;r.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),g=Math.abs(g)*(a?1:-1)),o.diff=m,m*=r.touchRatio,a&&(m=-m,g=-g);const v=n.touchesDirection;n.swipeDirection=m>0?"prev":"next",n.touchesDirection=g>0?"prev":"next";const f=n.params.loop&&!r.cssMode,b="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(f&&b&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(t)}i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==r._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&v!==n.touchesDirection&&f&&b&&Math.abs(m)>=1)return Object.assign(o,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let _=!0,E=r.resistanceRatio;if(r.touchReleaseOnEdges&&(E=0),m>0?(f&&b&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(_=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+m)**E))):m<0&&(f&&b&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==r.slidesPerView&&n.slides.length-r.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===r.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(_=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-m)**E))),_&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 11,534 bytes, line 2516
2516if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&n.freeMode||r.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function yk(t){const e=this,n=e.touchEventsData;let i,r=t;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(i=[...r.changedTouches].find((t=>t.identifier===n.touchId)),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&(!["pointercancel","contextmenu"].includes(r.type)||!e.browser.isSafari&&!e.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:s,slidesGrid:l,enabled:c}=e;if(!c)return;if(!o.simulateTouch&&"mouse"===r.pointerType)return;if(n.allowTouchCallbacks&&e.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const d=zL(),u=d-n.touchStartTime;if(e.allowClick){const t=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(t&&t[0]||r.target,t),e.emit("tap click",r),u<300&&d-n.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(n.lastClickTime=zL(),FL((()=>{e.destroyed||(e.allowClick=!0)})),!n.isTouched||!n.isMoved||!e.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=o.followFinger?s?e.translate:-e.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:p});const h=p>=-e.maxTranslate()&&!e.params.loop;let m=0,g=e.slidesSizesGrid[0];for(let t=0;t<l.length;t+=t<o.slidesPerGroupSkip?1:o.slidesPerGroup){const e=t<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==l[t+e]?(h||p>=l[t]&&p<l[t+e])&&(m=t,g=l[t+e]-l[t]):(h||p>=l[t])&&(m=t,g=l[l.length-1]-l[l.length-2])}let v=null,f=null;o.rewind&&(e.isBeginning?f=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(v=0));const b=(p-l[m])/g,_=m<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(u>o.longSwipesMs){if(!o.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(b>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?v:m+_):e.slideTo(m)),"prev"===e.swipeDirection&&(b>1-o.longSwipesRatio?e.slideTo(m+_):null!==f&&b<0&&Math.abs(b)>o.longSwipesRatio?e.slideTo(f):e.slideTo(m))}else{if(!o.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||r.target!==e.navigation.nextEl&&r.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==v?v:m+_),"prev"===e.swipeDirection&&e.slideTo(null!==f?f:m)):r.target===e.navigation.nextEl?e.slideTo(m+_):e.slideTo(m)}}function Sk(){const t=this,{params:e,el:n}=t;if(n&&0===n.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:o}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const s=a&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||s?t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout((()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()}),500)),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}function Tk(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Ck(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:i}=t;if(!i)return;let r;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const o=t.maxTranslate()-t.minTranslate();r=0===o?0:(t.translate-t.minTranslate())/o,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function wk(t){const e=this;mk(e,t.target),e.params.cssMode||"auto"!==e.params.slidesPerView&&!e.params.autoHeight||e.update()}function Ak(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const Ik=(t,e)=>{const n=ML(),{params:i,el:r,wrapperEl:o,device:a}=t,s=!!i.nested,l="on"===e?"addEventListener":"removeEventListener",c=e;r&&"string"!=typeof r&&(n[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:s}),r[l]("touchstart",t.onTouchStart,{passive:!1}),r[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("touchmove",t.onTouchMove,{passive:!1,capture:s}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:s}),n[l]("touchend",t.onTouchEnd,{passive:!0}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("touchcancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",t.onClick,!0),i.cssMode&&o[l]("scroll",t.onScroll),i.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Sk,!0):t[c]("observerUpdate",Sk,!0),r[l]("load",t.onLoad,{capture:!0}))},Ok=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var Rk={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function xk(t,e){return function(n={}){const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(!0===t[i]&&(t[i]={enabled:!0}),"navigation"===i&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),i in t&&"enabled"in r?("object"!=typeof t[i]||"enabled"in t[i]||(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),GL(e,n)):GL(e,n)):GL(e,n)}}const Lk={eventsEmitter:{on(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const r=n?"unshift":"push";return t.split(" ").forEach((t=>{i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][r](e)})),i},once(t,e,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;function r(...n){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy,e.apply(i,n)}return r.__emitterProxy=e,i.on(t,r,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].forEach(((i,r)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[t].splice(r,1)}))})),n):n},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let n,i,r;return"string"==typeof t[0]||Array.isArray(t[0])?(n=t[0],i=t.slice(1,t.length),r=e):(n=t[0].events,i=t[0].data,r=t[0].context||e),i.unshift(r),(Array.isArray(n)?n:n.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(r,[t,...i])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((t=>{t.apply(r,i)}))})),e}},update:{updateSize:function(){const t=this;let e,n;const i=t.el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:i.clientWidth,n=void 0!==t.params.height&&null!==t.params.height?t.params.height:i.clientHeight,0===e&&t.isHorizontal()||0===n&&t.isVertical()||(e=e-parseInt(QL(i,"padding-left")||0,10)-parseInt(QL(i,"padding-right")||0,10),n=n-parseInt(QL(i,"padding-top")||0,10)-parseInt(QL(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))},updateSlides:function(){const t=this;function e(e,n){return parseFloat(e.getPropertyValue(t.getDirectionLabel(n))||0)}const n=t.params,{wrapperEl:i,slidesEl:r,rtlTranslate:o,wrongRTL:a}=t,s=t.virtual&&n.virtual.enabled,l=s?t.virtual.slides.length:t.slides.length,c=WL(r,`.${t.params.slideClass}, swiper-slide`),d=s?t.virtual.slides.length:c.length;let u=[];const p=[],h=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(t));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(t));const v=t.snapGrid.length,f=t.slidesGrid.length,b=t.size-m-g;let _=n.spaceBetween,E=-m,y=0,S=0;if(void 0===b)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*b:"string"==typeof _&&(_=parseFloat(_)),t.virtualSize=-_-m-g,c.forEac
vendor: 4,251 bytes, line 2516
2516h((t=>{o?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(YL(i,"--swiper-centered-offset-before",""),YL(i,"--swiper-centered-offset-after",""));const T=n.grid&&n.grid.rows>1&&t.grid;let C;T?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();const w="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((t=>void 0!==n.breakpoints[t].slidesPerView)).length>0;for(let i=0;i<d;i+=1){C=0;const r=c[i];if(!r||(T&&t.grid.updateSlide(i,r,c),"none"!==QL(r,"display"))){if(s&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(C=n.virtual.slidesPerViewAutoSlideSize),C&&r&&(n.roundLengths&&(C=Math.floor(C)),r.style[t.getDirectionLabel("width")]=`${C}px`);else if("auto"===n.slidesPerView){w&&(r.style[t.getDirectionLabel("width")]="");const i=getComputedStyle(r),o=r.style.transform,a=r.style.webkitTransform;if(o&&(r.style.transform="none"),a&&(r.style.webkitTransform="none"),n.roundLengths)C=t.isHorizontal()?nk(r,"width"):nk(r,"height");else{const t=e(i,"width"),n=e(i,"padding-left"),o=e(i,"padding-right"),a=e(i,"margin-left"),s=e(i,"margin-right"),l=i.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=t+a+s;else{const{clientWidth:e,offsetWidth:i}=r;C=t+n+o+a+s+(i-e)}}o&&(r.style.transform=o),a&&(r.style.webkitTransform=a),n.roundLengths&&(C=Math.floor(C))}else C=(b-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(C=Math.floor(C)),r&&(r.style[t.getDirectionLabel("width")]=`${C}px`);r&&(r.swiperSlideSize=C),h.push(C),n.centeredSlides?(E=E+C/2+y/2+_,0===y&&0!==i&&(E=E-b/2-_),0===i&&(E=E-b/2-_),Math.abs(E)<.001&&(E=0),n.roundLengths&&(E=Math.floor(E)),S%n.slidesPerGroup==0&&u.push(E),p.push(E)):(n.roundLengths&&(E=Math.floor(E)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&u.push(E),p.push(E),E=E+C+_),t.virtualSize+=C+_,y=C,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,b)+g,o&&a&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${t.virtualSize+_}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+_}px`),T&&t.grid.updateWrapperSize(C,u),!n.centeredSlides){const e=[];for(let i=0;i<u.length;i+=1){let r=u[i];n.roundLengths&&(r=Math.floor(r)),u[i]<=t.virtualSize-b&&e.push(r)}u=e,Math.floor(t.virtualSize-b)-Math.floor(u[u.length-1])>1&&u.push(t.virtualSize-b)}if(s&&n.loop){const e=h[0]+_;if(n.slidesPerGroup>1){const i=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),r=e*n.slidesPerGroup;for(let t=0;t<i;t+=1)u.push(u[u.length-1]+r)}for(let i=0;i<t.virtual.slidesBefore+t.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&u.push(u[u.length-1]+e),p.push(p[p.length-1]+e),t.virtualSize+=e}if(0===u.length&&(u=[0]),0!==_){const e=t.isHorizontal()&&o?"marginLeft":t.getDirectionLabel("marginRight");c.filter(((t,e)=>!(n.cssMode&&!n.loop)||e!==c.length-1)).forEach((t=>{t.style[e]=`${_}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let t=0;h.forEach((e=>{t+=e+(_||0)})),t-=_;const e=t>b?t-b:0;u=u.map((t=>t<=0?-m:t>e?e+g:t))}if(n.centerInsufficientSlides){let t=0;h.forEach((e=>{t+=e+(_||0)})),t-=_;const e=(m||0)+(g||0);if(t+e<b){const n=(b-t-e)/2;u.forEach(((t,e)=>{u[e]=t-n})),p.forEach(((t,e)=>{p[e]=t+n}))}}if(Object.assign(t,{slides:c,snapGrid:u,slidesGrid:p,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){YL(i,"--swiper-centered-offset-before",-u[0]+"px"),YL(i,"--swiper-centered-offset-after",t.size/2-h[h.length-1]/2+"px");const e=-t.snapGrid[0],n=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+n))}if(d!==l&&t.emit("slidesLengthChange"),u.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==f&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!(s||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const e=`${n.containerModifierClass}backface-hidden`,i=t.el.classList.contains(e);d<=n.maxBackfaceHiddenSlides?i||t.el.classList.add(e):i&&t.el.classList.remove(e)}},updateAutoHeight:function(t){const e=this,n=[],i=e.virtual&&e.params.virtual.enabled;let r,o=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>
vendor: 16,305 bytes, line 2516
2516i?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach((t=>{n.push(t)}));else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const t=e.activeIndex+r;if(t>e.slides.length&&!i)break;n.push(a(t))}else n.push(a(e.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const t=n[r].offsetHeight;o=t>o?t:o}(o||0===o)&&(e.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-n-t.cssOverflowAdjustment()},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,n=e.params,{slides:i,rtlTranslate:r,snapGrid:o}=e;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&e.updateSlidesOffset();let a=-t;r&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let s=n.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*e.size:"string"==typeof s&&(s=parseFloat(s));for(let t=0;t<i.length;t+=1){const l=i[t];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(a+(n.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+s),u=(a-o[0]+(n.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+s),p=-(a-c),h=p+e.slidesSizesGrid[t],m=p>=0&&p<=e.size-e.slidesSizesGrid[t],g=p>=0&&p<e.size-1||h>1&&h<=e.size||p<=0&&h>=e.size;g&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(t)),pk(l,g,n.slideVisibleClass),pk(l,m,n.slideFullyVisibleClass),l.progress=r?-d:d,l.originalProgress=r?-u:u}},updateProgress:function(t){const e=this;if(void 0===t){const n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}const n=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:o,isEnd:a,progressLoop:s}=e;const l=o,c=a;if(0===i)r=0,o=!0,a=!0;else{r=(t-e.minTranslate())/i;const n=Math.abs(t-e.minTranslate())<1,s=Math.abs(t-e.maxTranslate())<1;o=n||r<=0,a=s||r>=1,n&&(r=0),s&&(r=1)}if(n.loop){const n=e.getSlideIndexByData(0),i=e.getSlideIndexByData(e.slides.length-1),r=e.slidesGrid[n],o=e.slidesGrid[i],a=e.slidesGrid[e.slidesGrid.length-1],l=Math.abs(t);s=l>=r?(l-r)/a:(l+a-o)/a,s>1&&(s-=1)}Object.assign(e,{progress:r,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),o&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!o||c&&!a)&&e.emit("fromEdge"),e.emit("progress",r)},updateSlidesClasses:function(){const t=this,{slides:e,params:n,slidesEl:i,activeIndex:r}=t,o=t.virtual&&n.virtual.enabled,a=t.grid&&n.grid&&n.grid.rows>1,s=t=>WL(i,`.${n.slideClass}${t}, swiper-slide${t}`)[0];let l,c,d;if(o)if(n.loop){let e=r-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),l=s(`[data-swiper-slide-index="${e}"]`)}else l=s(`[data-swiper-slide-index="${r}"]`);else a?(l=e.find((t=>t.column===r)),d=e.find((t=>t.column===r+1)),c=e.find((t=>t.column===r-1))):l=e[r];l&&(a||(d=function(t,e){const n=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=e[0]),c=function(t,e){const n=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&n.push(i):n.push(i),t=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=e[e.length-1]))),e.forEach((t=>{hk(t,t===l,n.slideActiveClass),hk(t,t===d,n.slideNextClass),hk(t,t===c,n.slidePrevClass)})),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:r,activeIndex:o,realIndex:a,snapIndex:s}=e;let l,c=t;const d=t=>{let n=t-e.virtual.slidesBefore;return n<0&&(n=e.virtual.slides.length+n),n>=e.virtual.slides.length&&(n-=e.virtual.slides.length),n};if(void 0===c&&(c=function(t){const{slidesGrid:e,params:n}=t,i=t.rtlTranslate?t.translate:-t.translate;let r;for(let t=0;t<e.length;t+=1)void 0!==e[t+1]?i>=e[t]&&i<e[t+1]-(e[t+1]-e[t])/2?r=t:i>=e[t]&&i<e[t+1]&&(r=t+1):i>=e[t]&&(r=t);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(e)),i.indexOf(n)>=0)l=i.indexOf(n);else{const t=Math.min(r.slidesPerGroupSkip,c);l=t+Math.floor((c-t)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===o&&!e.params.loop)return void(l!==s&&(e.snapIndex=l,e.emit("snapIndexChange")));if(c===o&&e.params.loop&&e.virtual&&e.params.virtual.enabled)return void(e.realIndex=d(c));const u=e.grid&&r.grid&&r.grid.rows>1;let p;if(e.virtual&&r.virtual.enabled&&r.loop)p=d(c);else if(u){const t=e.slides.find((t=>t.column===c));let n=parseInt(t.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(e.slides.indexOf(t),0)),p=Math.floor(n/r.grid.rows)}else if(e.slides[c]){const t=e.slides[c].getAttribute("data-swiper-slide-index");p=t?parseInt(t,10):c}else p=c;Object.assign(e,{previousSnapIndex:s,snapIndex:l,previousRealIndex:a,realIndex:p,previousIndex:o,activeIndex:c}),e.initialized&&vk(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==p&&e.emit("realIndexChange"),e.emit("slideChange"))},updateClickedSlide:function(t,e){const n=this,i=n.params;let r=t.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach((t=>{!r&&t.matches&&t.matches(`.${i.slideClass}, swiper-slide`)&&(r=t)}));let o,a=!1;if(r)for(let t=0;t<n.slides.length;t+=1)if(n.slides[t]===r){a=!0,o=t;break}if(!r||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:n,translate:i,wrapperEl:r}=this;if(e.virtualTranslate)return n?-i:i;if(e.cssMode)return i;let o=$L(r,t);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(t,e){const n=this,{rtlTranslate:i,params:r,wrapperEl:o,progress:a}=n;let s,l=0,c=0;n.isHorizontal()?l=i?-t:t:c=t,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();s=0===d?0:(t-n.minTranslate())/d,s!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,n=!0,i=!0,r){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let d;if(d=i&&t>l?l:i&&t<c?c:t,o.updateProgress(d),a.cssMode){const t=o.isHorizontal();if(0===e)s[t?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return jL({swiper:o,targetPosition:-d,side:t?"left":"top"}),!0;s.scrollTo({[t?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===e?(o.setTransition(0),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",e,r),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",e,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,o.animating=!1,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=0===t?"0ms":""),n.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),fk({swiper:n,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t=!0,e){const n=this,{params:i}=n;n.animating=!1,i.cssMode||(n.setTransition(0),fk({swiper:n,runCallbacks:t,direction:e,step:"End"}))}},slide:{slideTo:function(t=0,e,n=!0,i,r){"string"==typeof t&&(t=parseInt(t,10));const o=this;let a=t;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:p,wrapperEl:h,enabled:m}=o;if(!m&&!i&&!r||o.destroyed||o.animating&&s.preventInteractionOnTransition)return!1;void 0===e&&(e=o.params.speed);const g=Math.min(o.params.slidesPerGroupSkip,a);let v=g+Math.floor((a-g)/o.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const f=-l[v];if(s.normalizeSlideIndex)for(let t=0;t<c.length;t+=1){const e=-Math.floor(100*f),n=Math.floor(100*c[t]),i=Math.floor(100*c[t+1]);void 0!==c[t+1]?e>=n&&e<i-(i-n)/2?a=t:e>=n&&e<i&&(a=t+1):e>=n&&(a=t)}if(o.initialized&&a!==u){if(!o.allowSlideNext&&(p?f>o.translate&&f>o.minTranslate():f<o.translate&&f<o.minTranslate()))return!1;if(!o.allowSlidePrev&&f>o.translate&&f>o.maxTranslate()&&(u||0)!==a)return!1}let b;a!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(f),b=a>u?"next":a<u?"prev":"reset";const _=o.virtual&&o.params.virtual.enabled;if((!_||!r)&&(p&&-f===o.translate||!p&&f===o.translate))return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==s.effect&&o.setTranslate(f),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(s.cssMode){const t=o.isHorizontal(),n=p?f:-f;if(0===e)_&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),_&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{h[t?"scrollLeft":"scrollTop"]=n}))):h[t?"scrollLeft":"scrollTop"]=n,_&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}));else{if(!o.support.smoothScroll)return jL({swiper:o,targetPosition:n,side:t?"left":"top"}),!0;h.scrollTo({[t?"left":"top"]:n,behavior:"smooth"})}return!0}const E=uk().isSafari;return _&&!r&&E&&o.isElement&&o.virtual.update(!1,!1,a),o.setTransition(e),o.setTranslate(f),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",e,i),o.transitionStart(n,b),0===e?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,e,n=!0,i){"string"==typeof t&&(t=parseInt(t,10));const r=this;if(r.destroyed)return;void 0===e&&(e=r.params.speed);const o=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a+=r.virtual.slidesBefore;else{let t;if(o){const e=a*r.params.grid.rows;t=r.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else t=r.getSlideIndexByData(a);const e=o?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:l}=r.params,c=n||!!s||!!l;let d=r.params.slidesPerView;"auto"===d?d=r.slidesPerViewDynamic():(d=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&d%2==0&&(d+=1));let u=e-t<d;if(c&&(u=u||t<Math.ceil(d/2)),i&&c&&"auto"!==r.params.slidesPerView&&!o&&(u=!1),u){const n=c?t<r.activeIndex?"prev":"next":t-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:n,slideTo:!0,activeSlideIndex:"next"===n?t+1:t-e+1,slideRealIndex:"next"===n?r.realIndex:void 0})}if(o){const t=a*r.params.grid.rows;a=r.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame((()=>{r.slideTo(a,e,n,i)})),r},slideNext:function(t,e=!0,n){const i=this,{enabled:r,params:o,animating:a}=i;if(!r||i.destroyed)return i;void 0===t&&(t=i.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<o.slidesPerGroupSkip?1:s,c=i.virtual&&o.virtual.enabled;if(o.loop){if(a&&!c&&o.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&o.cssMode)return requestAnimationFrame((()=>{i.slideTo(i.activeIndex+l,t,e,n)})),!0}return o.rewind&&i.isEnd?i.slideTo(0,t,e,n):i.slideTo(i.activeIndex+l,t,e,n)},slidePrev:function(t,e=!0,n){const i=this,{params:r,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;void 0===t&&(t=i.params.speed);const d=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const p=u(s?i.translate:-i.translate),h=o.map((t=>u(t))),m=r.freeMode&&r.freeMode.enabled;let g=o[h.indexOf(p)-1];if(void 0===g&&(r.cssMode||m)){let t;o.forEach(((e,n)=>{p>=e&&(t=n)})),void 0!==t&&(g=m?o[t]:o[t>0?t-1:t])}let v=0;if(void 0!==g&&(v=a.indexOf(g),v<0&&(v=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=v-i.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,t,e,n)}return r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame((()=>{i.slideTo(v,t,e,n)})),!0):i.slideTo(v,t,e,n)},slideReset:function(t,e=!0,n){const i=this;if(!i.destroyed)return void 0===t&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,n)},slideToClosest:function(t,e=!0,n,i=.5){const r=this;if(r.destroyed)return;void 0===t&&(t=r.params.speed);let o=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){const t=r.snapGrid[s];l-t>(r.snapGrid[s+1]-t)*i&&(o+=r.params.slidesPerGroup)}else{const t=r.snapGrid[s-1];l-t<=(r.snapGrid[s]-t)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,t,e,n)},slideToClickedSlide:function(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,i="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let r,o=t.getSlideIndexWhenGrid(t.clickedIndex);const a=t.isElement?"swiper-slide":`.${e.slideClass}`,s=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;r=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(r):o>(s?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),o=t.getSlideIndex(WL(n,`${a}[data-swiper-slide-index="${r}"]`)[0]),FL((()=>{t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(t,e){const n=this,{params:i,slidesEl:r}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const o=()=>{WL(r,`.${i.slideClass}, swiper-slide`).forEach(((t,e)=>{t.setAttribute("data-swiper-slide-index",e)}))},a=n.grid&&i.grid&&i.grid.rows>1;i.loopAddBlankSlides&&(i.slidesPerGroup>1||a)&&(()=>{const t=WL(r,`.${i.slideBlankClass}`);t.forEach((t=>{t.remove()})),t.length>0&&(n.recalcSlides(),n.updateSlides())})();const s=i.slidesPerGroup*(a?i.grid.rows:1),l=n.slides.length%s!=0,c=a&&n.slides.length%i.grid.rows!=0,d=t=>{for(let e=0;e<t;e+=1){const t=n.isElement?XL("swiper-slide",[i.slideBlankClass]):XL("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(t)}};l?(i.loopAddBlankSlides?(d(s-n.slides.length%s),n.recalcSlides(),n.updateSlides()):qL("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
2516not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):c?(i.loopAddBlankSlides?(d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()):qL("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),o()):o();const u=i.centeredSlides||!!i.slidesOffsetBefore||!!i.slidesOffsetAfter;n.loopFix({slideRealIndex:t,direction:u?void 0:"next",initial:e})},loopFix:function({slideRealIndex:t,slideTo:e=!0,direction:n,setTranslate:i,activeSlideIndex:r,initial:o,byController:a,byMousewheel:s}={}){const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:p,params:h}=l,{centeredSlides:m,slidesOffsetBefore:g,slidesOffsetAfter:v,initialSlide:f}=h,b=m||!!g||!!v;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled)return e&&(b||0!==l.snapIndex?b&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let _=h.slidesPerView;"auto"===_?_=l.slidesPerViewDynamic():(_=Math.ceil(parseFloat(h.slidesPerView,10)),b&&_%2==0&&(_+=1));const E=h.slidesPerGroupAuto?_:h.slidesPerGroup;let y=b?Math.max(E,Math.ceil(_/2)):E;y%E!=0&&(y+=E-y%E),y+=h.loopAdditionalSlides,l.loopedSlides=y;const S=l.grid&&h.grid&&h.grid.rows>1;c.length<_+y||"cards"===l.params.effect&&c.length<_+2*y?qL("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):S&&"row"===h.grid.fill&&qL("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const T=[],C=[],w=S?Math.ceil(c.length/h.grid.rows):c.length,A=o&&w-f<_&&!b;let I=A?f:l.activeIndex;void 0===r?r=l.getSlideIndex(c.find((t=>t.classList.contains(h.slideActiveClass)))):I=r;const O="next"===n||!n,R="prev"===n||!n;let x=0,L=0;const k=(S?c[r].column:r)+(b&&void 0===i?-_/2+.5:0);if(k<y){x=Math.max(y-k,E);for(let t=0;t<y-k;t+=1){const e=t-Math.floor(t/w)*w;if(S){const t=w-e-1;for(let e=c.length-1;e>=0;e-=1)c[e].column===t&&T.push(e)}else T.push(w-e-1)}}else if(k+_>w-y){L=Math.max(k-(w-2*y),E),A&&(L=Math.max(L,_-w+f+1));for(let t=0;t<L;t+=1){const e=t-Math.floor(t/w)*w;S?c.forEach(((t,n)=>{t.column===e&&C.push(n)})):C.push(e)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),"cards"===l.params.effect&&c.length<_+2*y&&(C.includes(r)&&C.splice(C.indexOf(r),1),T.includes(r)&&T.splice(T.indexOf(r),1)),R&&T.forEach((t=>{c[t].swiperLoopMoveDOM=!0,p.prepend(c[t]),c[t].swiperLoopMoveDOM=!1})),O&&C.forEach((t=>{c[t].swiperLoopMoveDOM=!0,p.append(c[t]),c[t].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===h.slidesPerView?l.updateSlides():S&&(T.length>0&&R||C.length>0&&O)&&l.slides.forEach(((t,e)=>{l.grid.updateSlide(e,t,l.slides)})),h.watchSlidesProgress&&l.updateSlidesOffset(),e)if(T.length>0&&R){if(void 0===t){const t=l.slidesGrid[I],e=l.slidesGrid[I+x]-t;s?l.setTranslate(l.translate-e):(l.slideTo(I+Math.ceil(x),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-e,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-e))}else if(i){const t=S?T.length/h.grid.rows:T.length;l.slideTo(l.activeIndex+t,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(C.length>0&&O)if(void 0===t){const t=l.slidesGrid[I],e=l.slidesGrid[I-L]-t;s?l.setTranslate(l.translate-e):(l.slideTo(I-L,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-e,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-e))}else{const t=S?C.length/h.grid.rows:C.length;l.slideTo(l.activeIndex-t,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!a){const o={slideRealIndex:t,direction:n,setTranslate:i,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...o,slideTo:t.params.slidesPerView===h.slidesPerView&&e})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView&&e})}l.emit("loopFix")},loopDestroy:function(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||!n||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];
vendor: 13,745 bytes, line 2516
2516t.slides.forEach((t=>{const e=void 0===t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;i[e]=t})),t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")})),i.forEach((t=>{n.append(t)})),t.recalcSlides(),t.slideTo(t.realIndex,0)}},grabCursor:{setGrabCursor:function(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1}))},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1})))}},events:{attachEvents:function(){const t=this,{params:e}=t;t.onTouchStart=_k.bind(t),t.onTouchMove=Ek.bind(t),t.onTouchEnd=yk.bind(t),t.onDocumentTouchStart=Ak.bind(t),e.cssMode&&(t.onScroll=Ck.bind(t)),t.onClick=Tk.bind(t),t.onLoad=wk.bind(t),Ik(t,"on")},detachEvents:function(){Ik(this,"off")}},breakpoints:{setBreakpoint:function(){const t=this,{realIndex:e,initialized:n,params:i,el:r}=t,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const a=ML(),s="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:a.querySelector(i.breakpointsBase),c=t.getBreakpoint(o,s,l);if(!c||t.currentBreakpoint===c)return;const d=(c in o?o[c]:void 0)||t.originalParams,u=Ok(t,i),p=Ok(t,d),h=t.params.grabCursor,m=d.grabCursor,g=i.enabled;u&&!p?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&p&&(r.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&r.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),h&&!m?t.unsetGrabCursor():!h&&m&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((e=>{if(void 0===d[e])return;const n=i[e]&&i[e].enabled,r=d[e]&&d[e].enabled;n&&!r&&t[e].disable(),!n&&r&&t[e].enable()}));const v=d.direction&&d.direction!==i.direction,f=i.loop&&(d.slidesPerView!==i.slidesPerView||v),b=i.loop;v&&n&&t.changeDirection(),GL(t.params,d);const _=t.params.enabled,E=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),g&&!_?t.disable():!g&&_&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",d),n&&(f?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&E?(t.loopCreate(e),t.updateSlides()):b&&!E&&t.loopDestroy()),t.emit("breakpoint",d)},getBreakpoint:function(t,e="window",n){if(!t||"container"===e&&!n)return;let i=!1;const r=BL(),o="window"===e?r.innerHeight:n.clientHeight,a=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:o*e,point:t}}return{value:t,point:t}}));a.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<a.length;t+=1){const{point:o,value:s}=a[t];"window"===e?r.matchMedia(`(min-width: ${s}px)`).matches&&(i=o):s<=n.clientWidth&&(i=o)}return i||"max"}},checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:i}=n;if(i){const e=t.slides.length-1,n=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*i;t.isLocked=t.size>n}else t.isLocked=1===t.snapGrid.length;!0===n.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===n.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const t=this,{classNames:e,params:n,rtl:i,el:r,device:o}=t,a=function(t,e){const n=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((i=>{t[i]&&n.push(e+i)})):"string"==typeof t&&n.push(e+t)})),n}(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),r.classList.add(...e),t.emitContainerClasses()},removeClasses:function(){const{el:t,classNames:e}=this;t&&"string"!=typeof t&&(t.classList.remove(...e),this.emitContainerClasses())}}},kk={};class Pk{constructor(...t){let e,n;1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?n=t[0]:[e,n]=t,n||(n={}),n=GL({},n),e&&!n.el&&(n.el=e);const i=ML();if(n.el&&"string"==typeof n.el&&i.querySelectorAll(n.el).length>1){const t=[];return i.querySelectorAll(n.el).forEach((e=>{const i=GL({},n,{el:e});t.push(new Pk(i))})),t}const r=this;r.__swiper__=!0,r.support=ck(),r.device=dk({userAgent:n.userAgent}),r.browser=uk(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],n.modules&&Array.isArray(n.modules)&&r.modules.push(...n.modules);const o={};r.modules.forEach((t=>{t({params:n,swiper:r,extendParams:xk(n,o),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const a=GL({},Rk,o);return r.params=GL({},a,kk,n),r.originalParams=GL({},r.params),r.passedParams=GL({},n),r.params&&r.params.on&&Object.keys(r.params.on).forEach((t=>{r.on(t,r.params.on[t])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===r.params.direction},isVertical(){return"vertical"===r.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:e,params:n}=this,i=JL(WL(e,`.${n.slideClass}, swiper-slide`)[0]);return JL(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?t=Math.floor(t/this.params.grid.rows):"row"===this.params.grid.fill&&(t%=Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const{slidesEl:t,params:e}=this;this.slides=WL(t,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const n=this;t=Math.min(Math.max(t,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*t+i;n.translateTo(r,void 0===e?0:e),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.forEach((n=>{const i=t.getSlideClasses(n);e.push({slideEl:n,classNames:i}),t.emit("_slideClass",n,i)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:o,size:a,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let t,e=i[s]?Math.ceil(i[s].swiperSlideSize):0;for(let n=s+1;n<i.length;n+=1)i[n]&&!t&&(e+=Math.ceil(i[n].swiperSlideSize),l+=1,e>a&&(t=!0));for(let n=s-1;n>=0;n-=1)i[n]&&!t&&(e+=i[n].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=s+1;t<i.length;t+=1)(e?r[t]+o[t]-r[s]<a:r[t]-r[s]<a)&&(l+=1);else for(let t=s-1;t>=0;t-=1)r[s]-r[t]<a&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:n}=t;function i(){const e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}let r;if(n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete&&mk(t,e)})),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&t.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){const e=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;r=t.slideTo(e.length-1,0,!1,!0)}else r=t.slideTo(t.activeIndex,0,!1,!0);r||i()}n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const n=this,i=n.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${t}`),n.emitContainerClasses(),n.params.direction=t,n.slides.forEach((e=>{"vertical"===t?e.style.width="":e.style.height=""})),n.emit("changeDirection"),e&&n.update()),n}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;let n=t||e.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=e,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);const i=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):WL(n,i())[0];return!r&&e.params.createElements&&(r=XL("div",e.params.wrapperClass),n.append(r),WL(n,`.${e.params.slideClass}`).forEach((t=>{r.append(t)}))),Object.assign(e,{el:n,wrapperEl:r,slidesEl:e.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:r,hostEl:e.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===QL(n,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===QL(n,"direction")),wrongRTL:"-webkit-box"===QL(r,"display")}),!0}init(t){const e=this;if(e.initialized)return e;if(!1===e.mount(t))return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();const n=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&n.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((t=>{t.complete?mk(e,t):t.addEventListener("load",(t=>{mk(e,t.target)}))})),vk(e),e.initialized=!0,vk(e),e.emit("init"),e.emit("afterInit"),e}destroy(t=!0,e=!0){const n=this,{params:i,el:r,wrapperEl:o,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),e&&(n.removeClasses(),r&&"string"!=typeof r&&r.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach((t=>{t.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((t=>{n.off(t)})),!1!==t&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))}(n)),n.destroyed=!0),null}static extendDefaults(t){GL(kk,t)}static get extendedDefaults(){return kk}static get defaults(){return Rk}static installModule(t){Pk.prototype.__modules__||(Pk.prototype.__modules__=[]);const e=Pk.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>Pk.installModule(t))),Pk):(Pk.installModule(t),Pk)}}function Dk(t,e,n,i){return t.params.createElements&&Object.keys(i).forEac
2516h((r=>{if(!n[r]&&!0===n.auto){let o=WL(t.el,`.${i[r]}`)[0];o||(o=XL("div",i[r]),o.className=i[r],t.el.append(o)),n[r]=o,e[r]=o}})),n}Object.keys(Lk).forEach((t=>{Object.keys(Lk[t]).forEach((e=>{Pk.prototype[e]=Lk[t][e]}))})),Pk.use([function({swiper:t,on:e,emit:n}){const i=BL();let r=null,o=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(n("beforeResize"),n("resize"))},s=()=>{t&&!t.destroyed&&t.initialized&&n("orientationchange")};e("init",(()=>{t.params.resizeObserver&&void 0!==i.ResizeObserver?t&&!t.destroyed&&t.initialized&&(r=new ResizeObserver((e=>{o=i.requestAnimationFrame((()=>{const{width:n,height:i}=t;let r=n,o=i;e.forEach((({contentBoxSize:e,contentRect:n,target:i})=>{i&&i!==t.el||(r=n?n.width:(e[0]||e).inlineSize,o=n?n.height:(e[0]||e).blockSize)})),r===n&&o===i||a()}))})),r.observe(t.el)):(i.addEventListener("resize",a),i.addEventListener("orientationchange",s))})),e("destroy",(()=>{o&&i.cancelAnimationFrame(o),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",s)}))},function({swiper:t,extendParams:e,on:n,emit:i}){const r=[],o=BL(),a=(e,n={})=>{const a=new(o.MutationObserver||o.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void i("observerUpdate",e[0]);const n=function(){i("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(n):o.setTimeout(n,0)}));a.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:t.isElement||(void 0===n.childList||n).childList,characterData:void 0===n.characterData||n.characterData}),r.push(a)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=tk(t.hostEl);for(let t=0;t<e.length;t+=1)a(e[t])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}})),n("destroy",(()=>{r.forEach((t=>{t.disconnect()})),r.splice(0,r.length)}))}]);const Nk='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function Mk(t=""){return`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Uk(t){const e=this,{params:n,slidesEl:i}=e;n.loop&&e.loopDestroy();const r=t=>{if("string"==typeof t){const e=document.createElement("div");ok(e,t),i.append(e.children[0]),ok(e,"")}else i.append(t)};if("object"==typeof t&&"length"in t)for(let e=0;e<t.length;e+=1)t[e]&&r(t[e]);else r(t);e.recalcSlides(),n.loop&&e.loopCreate(),n.observer&&!e.isElement||e.update()}function Bk(t){const e=this,{params:n,activeIndex:i,slidesEl:r}=e;n.loop&&e.loopDestroy();let o=i+1;const a=t=>{if("string"==typeof t){const e=document.createElement("div");ok(e,t),r.prepend(e.children[0]),ok(e,"")}else r.prepend(t)};if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a(t[e]);o=i+t.length}else a(t);e.recalcSlides(),n.loop&&e.loopCreate(),n.observer&&!e.isElement||e.update(),e.slideTo(o,0,!1)}function Vk(t,e){const n=this,{params:i,activeIndex:r,slidesEl:o}=n;let a=r;i.loop&&(a-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const s=n.slides.length;if(t<=0)return void n.prependSlide(e);if(t>=s)return void n.appendSlide(e);let l=a>t?a+1:a;const c=[];for(let e=s-1;e>=t;e-=1){const t=n.slides[e];t.remove(),c.unshift(t)}if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&o.append(e[t]);l=a>t?a+e.length:a}else o.append(e);for(let t=0;t<c.length;t+=1)o.append(c[t]);n.recalcSlides(),i.loop&&n.loopCreate(),i.observer&&!n.isElement||n.update(),i.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function Fk(t){const e=this,{params:n,activeIndex:i}=e;let r=i;n.loop&&(r-=e.loopedSlides,e.loopDestroy());let o,a=r;if("object"==typeof t&&"length"in t){for(let n=0;n<t.length;n+=1)o=t[n],e.slides[o]&&e.slides[o].remove(),o<a&&(a-=1);a=Math.max(a,0)}else o=t,e.slides[o]&&e.slides[o].remove(),o<a&&(a-=1),a=Math.max(a,0);e.recalcSlides(),n.loop&&e.loopCreate(),n.observer&&!e.isElement||e.update(
2516),n.loop?e.slideTo(a+e.loopedSlides,0,!1):e.slideTo(a,0,!1)}function zk(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}function $k(t){const{effect:e,swiper:n,on:i,setTranslate:r,setTransition:o,overwriteParams:a,perspective:s,recreateShadows:l,getEffectParams:c}=t;let d;i("beforeInit",(()=>{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),s&&s()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const t=a?a():{};Object.assign(n.params,t),Object.assign(n.originalParams,t)})),i("setTranslate _virtualUpdated",(()=>{n.params.effect===e&&r()})),i("setTransition",((t,i)=>{n.params.effect===e&&o(i)})),i("transitionEnd",(()=>{if(n.params.effect===e&&l){if(!c||!c().slideShadows)return;n.slides.forEach((t=>{t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>t.remove()))})),l()}})),i("virtualUpdate",(()=>{n.params.effect===e&&(n.slides.length||(d=!0),requestAnimationFrame((()=>{d&&n.slides&&n.slides.length&&(r(),d=!1)})))}))}function Hk(t,e){const n=KL(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Gk({swiper:t,duration:e,transformElements:n,allSlides:i}){const{activeIndex:r}=t;if(t.params.virtualTranslate&&0!==e){let e,o=!1;e=i?n:n.filter((e=>{const n=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.find((t=>t.shadowRoot&&t.shadowRoot===e.parentNode)))(e):e;return t.getSlideIndex(n)===r})),e.forEach((e=>{ek(e,(()=>{if(o)return;if(!t||t.destroyed)return;o=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}))}))}}function Yk(t,e,n){const i=`swiper-slide-shadow${n?`-${n}`:""}${t?` swiper-slide-shadow-${t}`:""}`,r=KL(e);let o=r.querySelector(`.${i.split(" ").join(".")}`);return o||(o=XL("div",i.split(" ")),r.append(o)),o}const jk=[function({swiper:t,extendParams:e,on:n,emit:i}){let r;e({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const o=ML();t.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=o.createElement("div");function s(e,n){const i=t.params.virtual;if(i.cache&&t.virtual.cache[n])return t.virtual.cache[n];let r;return i.renderSlide?(r=i.renderSlide.call(t,e,n),"string"==typeof r&&(ok(a,r),r=a.children[0])):r=t.isElement?XL("swiper-slide"):XL("div",t.params.slideClass),r.setAttribute("data-swiper-slide-index",n),i.renderSlide||ok(r,e),i.cache&&(t.virtual.cache[n]=r),r}function l(e,n,r){const{slidesPerGroup:o,centeredSlides:a,slidesPerView:l,loop:c,initialSlide:d}=t.params;if(n&&!c&&d>0)return;const{addSlidesBefore:u,addSlidesAfter:p,slidesPerViewAutoSlideSize:h}=t.params.virtual,{from:m,to:g,slides:v,slidesGrid:f,offset:b}=t.virtual;t.params.cssMode||t.updateActiveIndex();const _=void 0===r?t.activeIndex||0:r;let E,y,S,T;if(E=t.rtlTranslate?"right":t.isHorizontal()?"left":"top","auto"===l)if(h){let e=t.size;e||(e=t.isHorizontal()?t.el.getBoundingClientRect().width:t.el.getBoundingClientRect().height),y=Math.max(1,Math.ceil(e/h))}else y=1;else y=l;a?(S=Math.floor(y/2)+o+p,T=Math.floor(y/2)+o+u):(S=y+(o-1)+p,T=(c?y:o)+u);let C=_-T,w=_+S;c||(C=Math.max(C,0),w=Math.min(w,v.length-1));let A=(t.slidesGrid[C]||0)-(t.slidesGrid[0]||0);function I(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i("virtualUpdate")}if(c&&_>=T?(C-=T,a||(A+=t.slidesGrid[0])):c&&_<T&&(C=-T,a&&(A+=t.slidesGrid[0])),Object.assign(t.virtual,{from:C,to:w,offset:A,slidesGrid:t.slidesGrid,slidesBefore:T,slidesAfter:S}),m===C&&g===w&&!e)return t.slidesGrid!==f&&A!==b&&t.slides.forEach((e=>{e.style[E]=A-Math.abs(t.cssOverflowAdjustment())+"px"})),t.updateProgress(),void i("virtualUpdate");if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:A,from:C,to:w,slides:function(){const t=[];for(let e=C;e<=w;e+=1)t.push(v[e]);return t}()}),void(t.params.virtual.renderExternalUpdate?I():i("virtualUpdate"));const O=[],R=[],x=t=>{let e=t;return t<0?e=v.length+t:e>=v.length&&(e-=v.length),e};
2516if(e)t.slides.filter((e=>e.matches(`.${t.params.slideClass}, swiper-slide`))).forEach((t=>{t.remove()}));else for(let e=m;e<=g;e+=1)if(e<C||e>w){const n=x(e);t.slides.filter((e=>e.matches(`.${t.params.slideClass}[data-swiper-slide-index="${n}"], swiper-slide[data-swiper-slide-index="${n}"]`))).forEach((t=>{t.remove()}))}const L=c?-v.length:0,k=c?2*v.length:v.length;for(let t=L;t<k;t+=1)if(t>=C&&t<=w){const n=x(t);void 0===g||e?R.push(n):(t>g&&R.push(n),t<m&&O.push(n))}if(R.forEach((e=>{t.slidesEl.append(s(v[e],e))})),c)for(let e=O.length-1;e>=0;e-=1){const n=O[e];t.slidesEl.prepend(s(v[n],n))}else O.sort(((t,e)=>e-t)),O.forEach((e=>{t.slidesEl.prepend(s(v[e],e))}));WL(t.slidesEl,".swiper-slide, swiper-slide").forEach((e=>{e.style[E]=A-Math.abs(t.cssOverflowAdjustment())+"px"})),I()}n("beforeInit",(()=>{if(!t.params.virtual.enabled)return;let e;if(void 0===t.passedParams.virtual.slides){const n=[...t.slidesEl.children].filter((e=>e.matches(`.${t.params.slideClass}, swiper-slide`)));n&&n.length&&(t.virtual.slides=[...n],e=!0,n.forEach(((e,n)=>{e.setAttribute("data-swiper-slide-index",n),t.virtual.cache[n]=e,e.remove()})))}e||(t.virtual.slides=t.params.virtual.slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,l(!1,!0)})),n("setTranslate",(()=>{t.params.virtual.enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(r),r=setTimeout((()=>{l()}),100)):l())})),n("init update resize",(()=>{t.params.virtual.enabled&&t.params.cssMode&&YL(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)})),Object.assign(t.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.push(e[n]);else t.virtual.slides.push(e);l(!0)},prependSlide:function(e){const n=t.activeIndex;let i=n+1,r=1;if(Array.isArray(e)){for(let n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.unshift(e[n]);i=n+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const e=t.virtual.cache,n={};Object.keys(e).forEach((t=>{const i=e[t],o=i.getAttribute("data-swiper-slide-index");o&&i.setAttribute("data-swiper-slide-index",parseInt(o,10)+r),n[parseInt(t,10)+r]=i})),t.virtual.cache=n}l(!0),t.slideTo(i,0)},removeSlide:function(e){if(null==e)return;let n=t.activeIndex;if(Array.isArray(e))for(let i=e.length-1;i>=0;i-=1)t.params.virtual.cache&&(delete t.virtual.cache[e[i]],Object.keys(t.virtual.cache).forEach((n=>{n>e&&(t.virtual.cache[n-1]=t.virtual.cache[n],t.virtual.cache[n-1].setAttribute("data-swiper-slide-index",n-1),delete t.virtual.cache[n])}))),t.virtual.slides.splice(e[i],1),e[i]<n&&(n-=1),n=Math.max(n,0);else t.params.virtual.cache&&(delete t.virtual.cache[e],Object.keys(t.virtual.cache).forEach((n=>{n>e&&(t.virtual.cache[n-1]=t.virtual.cache[n],t.virtual.cache[n-1].setAttribute("data-swiper-slide-index",n-1),delete t.virtual.cache[n])}))),t.virtual.slides.splice(e,1),e<n&&(n-=1),n=Math.max(n,0);l(!0),t.slideTo(n,0)},removeAllSlides:function(){t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),l(!0),t.slideTo(0,0)},update:l})},function({swiper:t,extendParams:e,on:n,emit:i}){const r=ML(),o=BL();function a(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let a=e;a.originalEvent&&(a=a.originalEvent);const s=a.keyCode||a.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===s,d=l&&34===s,u=37===s,p=39===s,h=38===s,m=40===s;if(!t.allowSlideNext&&(t.isHorizontal()&&p||t.isVertical()&&m||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||c))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||r.activeElement&&(r.activeElement.isContentEditable||r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase())))){if(t.params.keyboard.onlyInViewport&&(c||d||u||p||h||m)){let e=!1;if(tk(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===tk(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,r=i.clientWidth,a=i.clientHeight,s=o.innerWidth,l=o.innerHeight,c=ZL(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+r,c.top],[c.left,c.top+a],[c.left+r,c.top+a]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=s&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||p)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((d||p)&&!n||(c||u)&&n)&&t.slideNext(),((c||u)&&!n||(d||p)&&n)&&t.slidePrev()):((c||d||h||m)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(d||m)&&t.slideNext(),(c||h)&&t.slidePrev()),i("keyPress",s)}}function s(){t.keyboard.enabled||(r.addEventListener("keydown",a),t.keyboard.enabled=!0)}function l(){t.keyboard.enabled&&(r.removeEventListener("keydown",a),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",(()=>{t.params.keyboard.enabled&&s()})),n("destroy",(()=>{t.keyboard.enabled&&l()})),Object.assign(t.keyboard,{enable:s,disable:l})},function({swiper:t,extendParams:e,on:n,emit:i}){const r=BL();let o;e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let a,s=zL();const l=[];function c(){t.enabled&&(t.mouseEntered=!0)}function d(){t.enabled&&(t.mouseEntered=!1)}function u(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&zL()-s<t.params.mousewheel.thresholdTime||!(e.delta>=6&&zL()-s<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),i("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),i("scroll",e.raw)),s=(new r.Date).getTime(),1))}function p(e){let n=e,r=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const s=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let c=t.el;"container"!==t.params.mousewheel.eventsTarget&&(c=document.querySelector(t.params.mousewheel.eventsTarget));const d=c&&c.contains(n.target);if(!t.mouseEntered&&!d&&!s.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let p=0;const h=t.rtlTranslate?-1:1,m=function(t){let e=0,n=0,i=0,r=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120
2516),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),i=10*e,r=10*n,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(i=t.deltaX),t.shiftKey&&!i&&(i=r,r=0),(i||r)&&t.deltaMode&&(1===t.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!e&&(e=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:e,spinY:n,pixelX:i,pixelY:r}}(n);if(s.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(m.pixelX)>Math.abs(m.pixelY)))return!0;p=-m.pixelX*h}else{if(!(Math.abs(m.pixelY)>Math.abs(m.pixelX)))return!0;p=-m.pixelY}else p=Math.abs(m.pixelX)>Math.abs(m.pixelY)?-m.pixelX*h:-m.pixelY;if(0===p)return!0;s.invert&&(p=-p);let g=t.getTranslate()+p*s.sensitivity;if(g>=t.minTranslate()&&(g=t.minTranslate()),g<=t.maxTranslate()&&(g=t.maxTranslate()),r=!!t.params.loop||!(g===t.minTranslate()||g===t.maxTranslate()),r&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:zL(),delta:Math.abs(p),direction:Math.sign(p)},r=a&&e.time<a.time+500&&e.delta<=a.delta&&e.direction===a.direction;if(!r){a=void 0;let c=t.getTranslate()+p*s.sensitivity;const d=t.isBeginning,u=t.isEnd;if(c>=t.minTranslate()&&(c=t.minTranslate()),c<=t.maxTranslate()&&(c=t.maxTranslate()),t.setTransition(0),t.setTranslate(c),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!d&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const n=l.length?l[l.length-1]:void 0,i=l[0];if(l.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))l.splice(0);else if(l.length>=15&&e.time-i.time<500&&i.delta-e.delta>=1&&e.delta<=6){const n=p>0?.8:.2;a=e,l.splice(0),o=FL((()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,n)}),0)}o||(o=FL((()=>{!t.destroyed&&t.params&&(a=e,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))}),500))}if(r||i("scroll",n),t.params.autoplay&&t.params.autoplay.disableOnInteraction&&t.autoplay.stop(),s.releaseOnEdges&&(c===t.minTranslate()||c===t.maxTranslate()))return!0}}else{const n={time:zL(),delta:Math.abs(p),direction:Math.sign(p),raw:e};l.length>=2&&l.shift();const i=l.length?l[l.length-1]:void 0;if(l.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&u(n):u(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function h(e){let n=t.el;"container"!==t.params.mousewheel.eventsTarget&&(n=document.querySelector(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",c),n[e]("mouseleave",d),n[e]("wheel",p)}function m(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",p),!0):!t.mousewheel.enabled&&(h("addEventListener"),t.mousewheel.enabled=!0,!0)}function g(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,p),!0):!!t.mousewheel.enabled&&(h("removeEventListener"),t.mousewheel.enabled=!1,!0)}n("init",(()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&g(),t.params.mousewheel.enabled&&m()})),n("destroy",(()=>{t.params.cssMode&&m(),t.mousewheel.enabled&&g()})),Object.assign(t.mousewheel,{enable:m,disable:g})},function({swiper:t,extendParams:e,on:n,emit:i}){function r(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function o(e,n){const i=t.params.navigation;(e=ik(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))}))}function a(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return o(n,!1),void o(e,!1);o(n,t.isBeginning&&!t.params.rewind),o(e,t.isEnd&&!t.params.rewind)}function s(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),i("navigationPrev"))}function l(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),i("navigationNext"))}function c(){const e=t.params.navigation;if(t.params.navigation=Dk(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=r(e.nextEl),i=r(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=ik(n),i=ik(i);const o=(n,i)=>{if(n){if(e.addIcons&&n.matches(".swiper-button-next,.swiper-button-prev")&&!n.querySelector("svg")){const t=document.createElement("div");ok(t,Nk),n.appendChild(t.querySelector("svg")),t.remove()}n.addEventListener("click","next"===i?l:s)}!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};
2516n.forEach((t=>o(t,"next"))),i.forEach((t=>o(t,"prev")))}function d(){let{nextEl:e,prevEl:n}=t.navigation;e=ik(e),n=ik(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?l:s),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((t=>i(t,"next"))),n.forEach((t=>i(t,"prev")))}e({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null,arrowSvg:Nk},n("init",(()=>{!1===t.params.navigation.enabled?u():(c(),a())})),n("toEdge fromEdge lock unlock",(()=>{a()})),n("destroy",(()=>{d()})),n("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=ik(e),n=ik(n),t.enabled?a():[...e,...n].filter((t=>!!t)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),n("click",((e,n)=>{let{nextEl:r,prevEl:o}=t.navigation;r=ik(r),o=ik(o);const a=n.target;let s=o.includes(a)||r.includes(a);if(t.isElement&&!s){const t=n.path||n.composedPath&&n.composedPath();t&&(s=t.find((t=>r.includes(t)||o.includes(t))))}if(t.params.navigation.hideOnClick&&!s){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;r.length?e=r[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),i(!0===e?"navigationShow":"navigationHide"),[...r,...o].filter((t=>!!t)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),c(),a()},disable:u,update:a,init:c,destroy:d})},function({swiper:t,extendParams:e,on:n,emit:i}){const r="swiper-pagination";let o;e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let a=0;function s(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function l(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function c(e){const n=e.target.closest(Mk(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=JL(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=(r=t.realIndex,o=i,(o%=a=t.slides.length)==1+(r%=a)?"next":o===r-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i);var r,o,a}function d(){const e=t.rtl,n=t.params.pagination;if(s())return;let r,c,d=t.pagination.el;d=ik(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(c=t.previousRealIndex||0,r=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(r=t.snapIndex,c=t.previousSnapIndex):(c=t.previousIndex||0,r=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let s,u,p;if(n.dynamicBullets&&(o=nk(i[0],t.isHorizontal()?"width":"height"),d.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=o*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==c&&(a+=r-(c||0),a>n.dynamicMainBullets-1?a=n.dynamicMainBullets-1:a<0&&(a=0)),s=Math.max(r-a,0),u=s+(Math.min(i.length,n.dynamicMainBullets)-1),p=(u+s)/2),i.forEac
2516h((t=>{const e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${n.bulletActiveClass}${t}`))].map((t=>"string"==typeof t&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...e)})),d.length>1)i.forEach((e=>{const i=JL(e);i===r?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(i>=s&&i<=u&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),i===s&&l(e,"prev"),i===u&&l(e,"next"))}));else{const e=i[r];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&i.forEach(((t,e)=>{t.setAttribute("part",e===r?"bullet-active":"bullet")})),n.dynamicBullets){const t=i[s],e=i[u];for(let t=s;t<=u;t+=1)i[t]&&i[t].classList.add(...`${n.bulletActiveClass}-main`.split(" "));l(t,"prev"),l(e,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),a=(o*r-o)/2-p*o,s=e?"right":"left";i.forEach((e=>{e.style[t.isHorizontal()?s:"top"]=`${a}px`}))}}d.forEach(((e,o)=>{if("fraction"===n.type&&(e.querySelectorAll(Mk(n.currentClass)).forEach((t=>{t.textContent=n.formatFractionCurrent(r+1)})),e.querySelectorAll(Mk(n.totalClass)).forEach((t=>{t.textContent=n.formatFractionTotal(p)}))),"progressbar"===n.type){let i;i=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const o=(r+1)/p;let a=1,s=1;"horizontal"===i?a=o:s=o,e.querySelectorAll(Mk(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${s})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(ok(e,n.renderCustom(t,r+1,p)),0===o&&i("paginationRender",e)):(0===o&&i("paginationRender",e),i("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function u(){const e=t.params.pagination;if(s())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let r=t.pagination.el;r=ik(r);let o="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?o+=e.renderBullet.call(t,n,e.bulletClass):o+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],r.forEach((n=>{"custom"!==e.type&&ok(n,o||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(Mk(e.bulletClass)))})),"custom"!==e.type&&i("paginationRender",r[0])}function p(){t.params.pagination=Dk(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find((e=>tk(e,".swiper")[0]===t.el)))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}
2516),n=ik(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),a=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",c),t.enabled||n.classList.add(e.lockClass)})))}function h(){const e=t.params.pagination;if(s())return;let n=t.pagination.el;n&&(n=ik(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",c))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}n("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;
2516n=ik(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),n("init",(()=>{!1===t.params.pagination.enabled?m():(p(),u(),d())})),n("activeIndexChange",(()=>{void 0===t.snapIndex&&d()})),n("snapIndexChange",(()=>{d()})),n("snapGridLengthChange",(()=>{u(),d()})),n("destroy",(()=>{h()})),n("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=ik(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),n("lock unlock",(()=>{d()})),n("click",((e,n)=>{const r=n.target,o=ik(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;const e=o[0].classList.contains(t.params.pagination.hiddenClass);i(!0===e?"paginationShow":"paginationHide"),o.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=ik(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),h()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=ik(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),p(),u(),d()},disable:m,render:u,update:d,init:p,destroy:h})},function({swiper:t,extendParams:e,on:n,emit:i}){const r=ML();let o,a,s,l,c=!1,d=null,u=null;function p(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n}=t,{dragEl:i,el:r}=e,o=t.params.scrollbar,l=t.params.loop?t.progressLoop:t.progress;let c=a,u=(s-a)*l;n?(u=-u,u>0?(c=a-u,u=0):-u+a>s&&(c=s+u)):u<0?(c=a+u,u=0):u+a>s&&(c=s-u),t.isHorizontal()?(i.style.transform=`translate3d(${u}px, 0, 0)`,i.style.width=`${c}px`):(i.style.transform=`translate3d(0px, ${u}px, 0)`,i.style.height=`${c}px`),o.hide&&(clearTimeout(d),r.style.opacity=1,d=setTimeout((()=>{r.style.opacity=0,r.style.transitionDuration="400ms"}),1e3))}function h(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:n,el:i}=e;n.style.width="",n.style.height="",s=t.isHorizontal()?i.offsetWidth:i.offsetHeight,l=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),a="auto"===t.params.scrollbar.dragSize?s*l:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n.style.width=`${a}px`:n.style.height=`${a}px`,i.style.display=l>=1?"none":"",t.params.scrollbar.hide&&(i.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function m(e){return t.isHorizontal()?e.clientX:e.clientY}function g(e){const{scrollbar:n,rtlTranslate:i}=t,{el:r}=n;let l;l=(m(e)-ZL(r)[t.isHorizontal()?"left":"top"]-(null!==o?o:a/2))/(s-a),l=Math.max(Math.min(l,1),0),i&&(l=1-l);const c=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*l;t.updateProgress(c),t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}function v(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:a}=t,{el:s,dragEl:l}=r;c=!0,o=e.target===l?m(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),a.style.transitionDuration="100ms",l.style.transitionDuration="100ms",g(e),clearTimeout(u),s.style.transitionDuration="0ms",n.hide&&(s.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",e)}function f(e){const{scrollbar:n,wrapperEl:r}=t,{el:o,dragEl:a}=n;c&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,g(e),r.style.transitionDuration="0ms",o.style.transitionDuration="0ms",a.style.transitionDuration="0ms",i("scrollbarDragMove",e))}function b(e){const n=t.params.scrollbar,{scrollbar:r,wrapperEl:o}=t,{el:a}=r;c&&(c=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",o.style.transitionDuration=""),n.hide&&(clearTimeout(u),u=FL((()=>{a.style.opacity=0,a.style.transitionDuration="400ms"}),1e3)),i("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function _(e){const{scrollbar:n,params:i}=t,o=n.el;if(!o)return;const a=o,s=!!i.passiveListeners&&{passive:!1,capture:!1},l=!!i.passiveListeners&&{passive:!0,capture:!1};if(!a)return;const c="on"===e?"addEventListener":"removeEventListener";a[c]("pointerdown",v,s),r[c]("pointermove",f,s),r[c]("pointerup",b,l)}function E(){const{scrollbar:e,el:n}=t;t.params.scrollbar=Dk(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const i=t.params.scrollbar;if(!i.el)return;let o,a;if("string"==typeof i.el&&t.isElement&&(o=t.el.querySelector(i.el)),o||"string"!=typeof i.el)o||(o=i.el);else if(o=r.querySelectorAll(i.el),!o.length)return;t.params.uniqueNavElements&&"string"==typeof i.el&&o.length>1&&1===n.querySelectorAll(i.el).length&&(o=n.querySelector(i.el)),o.length>0&&(o=o[0]),o.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass),o&&(a=o.querySelector(Mk(t.params.scrollbar.dragClass)),a||(a=XL("div",t.params.scrollbar.dragClass),o.append(a))),Object.assign(e,{el:o,dragEl:a}),i.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&_("on"),o&&o.classList[t.enabled?"remove":"add"](...VL(t.params.scrollbar.lockClass))}function y(){const e=t.params.scrollbar,n=t.scrollbar.el;
2516n&&n.classList.remove(...VL(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&_("off")}e({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},n("changeDirection",(()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:n}=t.scrollbar;n=ik(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),n("init",(()=>{!1===t.params.scrollbar.enabled?S():(E(),h(),p())})),n("update resize observerUpdate lock unlock changeDirection",(()=>{h()})),n("setTranslate",(()=>{p()})),n("setTransition",((e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(n)})),n("enable disable",(()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...VL(t.params.scrollbar.lockClass))})),n("destroy",(()=>{y()}));const S=()=>{t.el.classList.add(...VL(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...VL(t.params.scrollbar.scrollbarDisabledClass)),y()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...VL(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...VL(t.params.scrollbar.scrollbarDisabledClass)),E(),h(),p()},disable:S,updateSize:h,setTranslate:p,init:E,destroy:y})},function({swiper:t,extendParams:e,on:n}){e({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(e,n)=>{const{rtl:i}=t,r=i?-1:1,o=e.getAttribute("data-swiper-parallax")||"0";let a=e.getAttribute("data-swiper-parallax-x"),s=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),d=e.getAttribute("data-swiper-parallax-rotate");if(a||s?(a=a||"0",s=s||"0"):t.isHorizontal()?(a=o,s="0"):(s=o,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*n*r+"%":a*n*r+"px",s=s.indexOf("%")>=0?parseInt(s,10)*n+"%":s*n+"px",null!=c){const t=c-(c-1)*(1-Math.abs(n));e.style.opacity=t}let u=`translate3d(${a}, ${s}, 0px)`;null!=l&&(u+=` scale(${l-(l-1)*(1-Math.abs(n))})`),d&&null!=d&&(u+=` rotate(${d*n*-1}deg)`),e.style.transform=u},o=()=>{const{el:e,slides:n,progress:o,snapGrid:a,isElement:s}=t,l=WL(e,i);t.isElement&&l.push(...WL(t.hostEl,i)),l.forEach((t=>{r(t,o)})),n.forEach(((e,n)=>{let s=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(n/2)-o*(a.length-1)),s=Math.min(Math.max(s,-1),1),e.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach((t=>{r(t,s)}))}))};n("beforeInit",(()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)})),n("init",(()=>{t.params.parallax.enabled&&o()})),n("setTranslate",(()=>{t.params.parallax.enabled&&o()})),n("setTransition",((e,n)=>{t.params.parallax.enabled&&((e=t.params.speed)=>{const{el:n,hostEl:r}=t,o=[...n.querySelectorAll(i)];t.isElement&&o.push(...r.querySelectorAll(i)),o.forEach((t=>{let n=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(n=0),t.style.transitionDuration=`${n}ms`}))})(n)}))},function({swiper:t,extendParams:e,on:n,emit:i}){const r=BL();e({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o=1,a=!1,s=!1,l={x:0,y:0};const c=-3;let d,u;const p=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,f=1;function b(){if(p.length<2)return 1;const t=p[0].pageX,e=p[0].pageY,n=p[1].pageX,i=p[1].pageY;return Math.sqrt((n-t)**2+(i-e)**2)}function _(){const e=t.params.zoom,n=h.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;
2516if(e.limitToOriginalSize&&h.imageEl&&h.imageEl.naturalWidth){const t=h.imageEl.naturalWidth/h.imageEl.offsetWidth;return Math.min(t,n)}return n}function E(e){const n=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(n)||t.slides.filter((t=>t.contains(e.target))).length>0}function y(e){const n=`.${t.params.zoom.containerClass}`;return!!e.target.matches(n)||[...t.hostEl.querySelectorAll(n)].filter((t=>t.contains(e.target))).length>0}function S(e){if("mouse"===e.pointerType&&p.splice(0,p.length),!E(e))return;const n=t.params.zoom;if(d=!1,u=!1,p.push(e),!(p.length<2)){if(d=!0,h.scaleStart=b(),!h.slideEl){h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),h.slideEl||(h.slideEl=t.slides[t.activeIndex]);let i=h.slideEl.querySelector(`.${n.containerClass}`);if(i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=i,h.imageWrapEl=i?tk(h.imageEl,`.${n.containerClass}`)[0]:void 0,!h.imageWrapEl)return void(h.imageEl=void 0);h.maxRatio=_()}if(h.imageEl){const[t,e]=function(){if(p.length<2)return{x:null,y:null};const t=h.imageEl.getBoundingClientRect();return[(p[0].pageX+(p[1].pageX-p[0].pageX)/2-t.x-r.scrollX)/o,(p[0].pageY+(p[1].pageY-p[0].pageY)/2-t.y-r.scrollY)/o]}();h.originX=t,h.originY=e,h.imageEl.style.transitionDuration="0ms"}a=!0}}function T(e){if(!E(e))return;const n=t.params.zoom,i=t.zoom,r=p.findIndex((t=>t.pointerId===e.pointerId));r>=0&&(p[r]=e),p.length<2||(u=!0,h.scaleMove=b(),h.imageEl&&(i.scale=h.scaleMove/h.scaleStart*o,i.scale>h.maxRatio&&(i.scale=h.maxRatio-1+(i.scale-h.maxRatio+1)**.5),i.scale<n.minRatio&&(i.scale=n.minRatio+1-(n.minRatio-i.scale+1)**.5),h.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`))}function C(e){if(!E(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const n=t.params.zoom,i=t.zoom,r=p.findIndex((t=>t.pointerId===e.pointerId));r>=0&&p.splice(r,1),d&&u&&(d=!1,u=!1,h.imageEl&&(i.scale=Math.max(Math.min(i.scale,h.maxRatio),n.minRatio),h.imageEl.style.transitionDuration=`${t.params.speed}ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`,o=i.scale,a=!1,i.scale>1&&h.slideEl?h.slideEl.classList.add(`${n.zoomedSlideClass}`):i.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${n.zoomedSlideClass}`),1===i.scale&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}function w(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function A(e){const n="mouse"===e.pointerType&&t.params.zoom.panOnMouseMove;if(!E(e)||!y(e))return;const i=t.zoom;if(!h.imageEl)return;if(!m.isTouched||!h.slideEl)return void(n&&O(e));if(n)return void O(e);m.isMoved||(m.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,m.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,m.startX=$L(h.imageWrapEl,"x")||0,m.startY=$L(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");const r=m.width*i.scale,s=m.height*i.scale;if(m.minX=Math.min(h.slideWidth/2-r/2,0),m.maxX=-m.minX,m.minY=Math.min(h.slideHeight/2-s/2,0),m.maxY=-m.minY,m.touchesCurrent.x=p.length>0?p[0].pageX:e.pageX,m.touchesCurrent.y=p.length>0?p[0].pageY:e.pageY,Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(t.allowClick=!1),!m.isMoved&&!a){if(t.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.x<m.touchesStart.x||Math.floor(m.maxX)===Math.floor(m.startX)&&m.touchesCurrent.x>m.touchesStart.x))return m.isTouched=!1,void w();if(!t.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.y<m.touchesStart.y||Math.floor(m.maxY)===Math.floor(m.startY)&&m.touchesCurrent.y>m.touchesStart.y))return m.isTouched=!1,void w()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout((()=>{t.destroyed||w()})),m.isMoved=!0;const l=(i.scale-o)/(h.maxRatio-t.params.zoom.minRatio),{originX:c,originY:d}=h;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+l*(m.width-2*c),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+l*(m.height-2*d),m.currentX<m.minX&&(m.currentX=m.minX+1-(m.minX-m.currentX+1)**.8),m.currentX>m.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentY<m.minY&&(m.currentY=m.minY+1-(m.minY-m.currentY+1)**.8),m.currentY>m.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=m.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=m.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(m.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(m.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(m.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(m.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=m.touchesCurrent.x,g.prevPositionY=m.touchesCurrent.y,g.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function I(){const e=t.zoom;h.slideEl&&t.activeIndex!==t.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,
25160,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,0,0)"),h.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,o=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function O(t){if(o<=1||!h.imageWrapEl)return;if(!E(t)||!y(t))return;const e=r.getComputedStyle(h.imageWrapEl).transform,n=new r.DOMMatrix(e);if(!s)return s=!0,l.x=t.clientX,l.y=t.clientY,m.startX=n.e,m.startY=n.f,m.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,m.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,h.slideWidth=h.slideEl.offsetWidth,void(h.slideHeight=h.slideEl.offsetHeight);const i=(t.clientX-l.x)*c,a=(t.clientY-l.y)*c,d=m.width*o,u=m.height*o,p=h.slideWidth,g=h.slideHeight,v=Math.min(p/2-d/2,0),f=-v,b=Math.min(g/2-u/2,0),_=-b,S=Math.max(Math.min(m.startX+i,f),v),T=Math.max(Math.min(m.startY+a,_),b);h.imageWrapEl.style.transitionDuration="0ms",h.imageWrapEl.style.transform=`translate3d(${S}px, ${T}px, 0)`,l.x=t.clientX,l.y=t.clientY,m.startX=S,m.startY=T,m.currentX=S,m.currentY=T}function R(e){const n=t.zoom,i=t.params.zoom;if(!h.slideEl){e&&e.target&&(h.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),h.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=WL(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex]);let n=h.slideEl.querySelector(`.${i.containerClass}`);n&&(n=n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=n,h.imageWrapEl=n?tk(h.imageEl,`.${i.containerClass}`)[0]:void 0}if(!h.imageEl||!h.imageWrapEl)return;let a,s,l,c,d,u,p,g,v,f,b,E,y,S,T,C,w,A;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${i.zoomedSlideClass}`),void 0===m.touchesStart.x&&e?(a=e.pageX,s=e.pageY):(a=m.touchesStart.x,s=m.touchesStart.y);const I=o,O="number"==typeof e?e:null;1===o&&O&&(a=void 0,s=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0);const R=_();n.scale=O||R,o=O||R,!e||1===o&&O?(p=0,g=0):(w=h.slideEl.offsetWidth,A=h.slideEl.offsetHeight,l=ZL(h.slideEl).left+r.scrollX,c=ZL(h.slideEl).top+r.scrollY,d=l+w/2-a,u=c+A/2-s,v=h.imageEl.offsetWidth||h.imageEl.clientWidth,f=h.imageEl.offsetHeight||h.imageEl.clientHeight,b=v*n.scale,E=f*n.scale,y=Math.min(w/2-b/2,0),S=Math.min(A/2-E/2,0),T=-y,C=-S,I>0&&O&&"number"==typeof m.currentX&&"number"==typeof m.currentY?(p=m.currentX*n.scale/I,g=m.currentY*n.scale/I):(p=d*n.scale,g=u*n.scale),p<y&&(p=y),p>T&&(p=T),g<S&&(g=S),g>C&&(g=C)),O&&1===n.scale&&(h.originX=0,h.originY=0),m.currentX=p,m.currentY=g,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${p}px, ${g}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${n.scale})`}function x(){const e=t.zoom,n=t.params.zoom;if(!h.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?h.slideEl=WL(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:h.slideEl=t.slides[t.activeIndex];let e=h.slideEl.querySelector(`.${n.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),h.imageEl=e,h.imageWrapEl=e?tk(h.imageEl,`.${n.containerClass}`)[0]:void 0}h.imageEl&&h.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,o=1,m.currentX=void 0,m.currentY=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,0,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${n.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0,t.params.zoom.panOnMouseMove&&(l={x:0,y:0},s&&(s=!1,m.startX=0,m.startY=0)))}function L(e){const n=t.zoom;n.scale&&1!==n.scale?x():R(e)}function k(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function P(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:n,activeListenerWithCapture:i}=k();t.wrapperEl.addEventListener("pointerdown",S,n),t.wrapperEl.addEventListener("pointermove",T,
2516i),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.addEventListener(e,C,n)})),t.wrapperEl.addEventListener("pointermove",A,i)}function D(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:n,activeListenerWithCapture:i}=k();t.wrapperEl.removeEventListener("pointerdown",S,n),t.wrapperEl.removeEventListener("pointermove",T,i),["pointerup","pointercancel","pointerout"].forEach((e=>{t.wrapperEl.removeEventListener(e,C,n)})),t.wrapperEl.removeEventListener("pointermove",A,i)}Object.defineProperty(t.zoom,"scale",{get(){return f},set(t){if(f!==t){const e=h.imageEl,n=h.slideEl;i("zoomChange",t,e,n)}f=t}}),n("init",(()=>{t.params.zoom.enabled&&P()})),n("destroy",(()=>{D()})),n("touchStart",((e,n)=>{t.zoom.enabled&&function(e){const n=t.device;if(!h.imageEl)return;if(m.isTouched)return;n.android&&e.cancelable&&e.preventDefault(),m.isTouched=!0;const i=p.length>0?p[0]:e;m.touchesStart.x=i.pageX,m.touchesStart.y=i.pageY}(n)})),n("touchEnd",((e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(p.length=0,!h.imageEl)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let n=300,i=300;const r=g.x*n,o=m.currentX+r,a=g.y*i,s=m.currentY+a;0!==g.x&&(n=Math.abs((o-m.currentX)/g.x)),0!==g.y&&(i=Math.abs((s-m.currentY)/g.y));const l=Math.max(n,i);m.currentX=o,m.currentY=s;const c=m.width*e.scale,d=m.height*e.scale;m.minX=Math.min(h.slideWidth/2-c/2,0),m.maxX=-m.minX,m.minY=Math.min(h.slideHeight/2-d/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),h.imageWrapEl.style.transitionDuration=`${l}ms`,h.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}()})),n("doubleTap",((e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&L(n)})),n("transitionEnd",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&I()})),n("slideChange",(()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&I()})),Object.assign(t.zoom,{enable:P,disable:D,in:R,out:x,toggle:L})},function({swiper:t,extendParams:e,on:n}){function i(t,e){const n=function(){let t,e,n;return(i,r)=>{for(e=-1,t=i.length;t-e>1;)n=t+e>>1,i[n]<=r?e=n:t=n;return t}}();let i,r;return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(r=n(this.x,t),i=r-1,(t-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this}function r(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},n("beforeInit",(()=>{"undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach((e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const n=`${t.params.eventsPrefix}init`,i=r=>{t.controller.control.push(r.detail[0]),t.update(),e.removeEventListener(n,i)};e.addEventListener(n,i)}})):t.controller.control=t.params.controller.control})),n("update",(()=>{r()})),n("resize",(()=>{r()})),n("observerUpdate",(()=>{r()})),n("setTranslate",((e,n,i)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(n,i)})),n("setTransition",((e,n,i)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(n,i)})),Object.assign(t.controller,{setTranslate:function(e,n){const r=t.controller.control;let o,a;const s=t.constructor;function l(e){if(e.destroyed)return;const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new i(t.slidesGrid,e.slidesGrid):new i(t.snapGrid,e.snapGrid)}(e),a=-t.controller.spline.interpolate(-n)),a&&"container"!==t.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(o)&&Number.isFinite(o)||(o=1),a=(n-t.minTranslate())*o+e.minTranslate()),t.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(let t=0;t<r.length;t+=1)r[t]!==n&&r[t]instanceof s&&l(r[t]);else r instanceof s&&n!==r&&l(r)},setTransition:function(e,n){const i=t.constructor,r=t.controller.control;let o;function a(n){n.destroyed||(n.setTransition(e,t),0!==e&&(n.transitionStart(),n.params.autoHeight&&FL((()=>{n.updateAutoHeight()})),ek(n.wrapperEl,(()=>{r&&n.transitionEnd()}))))}if(Array.isArray(r))for(o=0;o<r.length;o+=1)r[o]!==n&&r[o]instanceof i&&a(r[o]);else r instanceof i&&n!==r&&a(r)}})},function({swiper:t,extendParams:e,on:n}
2516){e({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),t.a11y={clicked:!1};let i,r,o=null,a=(new Date).getTime();function s(t){const e=o;0!==e.length&&ok(e,t)}function l(t){(t=ik(t)).forEach((t=>{t.setAttribute("tabIndex","0")}))}function c(t){(t=ik(t)).forEach((t=>{t.setAttribute("tabIndex","-1")}))}function d(t,e){(t=ik(t)).forEach((t=>{t.setAttribute("role",e)}))}function u(t,e){(t=ik(t)).forEach((t=>{t.setAttribute("aria-roledescription",e)}))}function p(t,e){(t=ik(t)).forEach((t=>{t.setAttribute("aria-label",e)}))}function h(t){(t=ik(t)).forEach((t=>{t.setAttribute("aria-disabled",!0)}))}function m(t){(t=ik(t)).forEach((t=>{t.setAttribute("aria-disabled",!1)}))}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(Mk(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=ik(t.navigation.prevEl);ik(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?s(n.lastSlideMessage):s(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?s(n.firstSlideMessage):s(n.prevSlideMessage))}t.pagination&&i.matches(Mk(t.params.pagination.bulletClass))&&i.click()}}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function f(){return v()&&t.params.pagination.clickable}const b=(t,e,n)=>{l(t),"BUTTON"!==t.tagName&&(d(t,"button"),t.addEventListener("keydown",g)),p(t,n),function(t,e){(t=ik(t)).forEach((t=>{t.setAttribute("aria-controls",e)}))}(t,e)},_=e=>{r&&r!==e.target&&!r.contains(e.target)&&(i=!0),t.a11y.clicked=!0},E=()=>{i=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},y=t=>{a=(new Date).getTime()},S=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-a<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;r=n;const o=t.slides.indexOf(n)===t.activeIndex,s=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);o||s||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{i||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(n.getAttribute("data-swiper-slide-index"))),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(n)),0),i=!1)})))},T=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&u(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((i,r)=>{const o=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;p(i,e.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,n))}))};n("beforeInit",(()=>{o=XL("span",t.params.a11y.notificationClass),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")})),n("afterInit",(()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.el.append(o);const n=t.el;e.containerRoleDescriptionMessage&&u(n,e.containerRoleDescriptionMessage),e.containerMessage&&p(n,e.containerMessage),e.containerRole&&d(n,e.containerRole);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||`swiper-wrapper-${function(t=16){return"x".repeat(t).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`;var a,s,l;a=r,ik(i).forEach((t=>{t.setAttribute("id",a)})),e.wrapperLiveRegion&&(s=i,l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite",(s=ik(s)).forEach((t=>{t.setAttribute("aria-live",l)}))),T();let{nextEl:c,prevEl:h}=t.navigation?t.navigation:{};
2516c=ik(c),h=ik(h),c&&c.forEach((t=>b(t,r,e.nextSlideMessage))),h&&h.forEach((t=>b(t,r,e.prevSlideMessage))),f()&&ik(t.pagination.el).forEach((t=>{t.addEventListener("keydown",g)})),ML().addEventListener("visibilitychange",y),t.el.addEventListener("focus",S,!0),t.el.addEventListener("focus",S,!0),t.el.addEventListener("pointerdown",_,!0),t.el.addEventListener("pointerup",E,!0)})()})),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&T()})),n("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(h(n),c(n)):(m(n),l(n))),e&&(t.isEnd?(h(e),c(e)):(m(e),l(e)))}()})),n("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;v()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(l(n),t.params.pagination.renderBullet||(d(n,"button"),p(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,JL(n)+1)))),n.matches(Mk(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),n("destroy",(()=>{t.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=ik(e),n=ik(n),e&&e.forEach((t=>t.removeEventListener("keydown",g))),n&&n.forEach((t=>t.removeEventListener("keydown",g))),f()&&ik(t.pagination.el).forEach((t=>{t.removeEventListener("keydown",g)})),ML().removeEventListener("visibilitychange",y),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",S,!0),t.el.removeEventListener("pointerdown",_,!0),t.el.removeEventListener("pointerup",E,!0))}()}))},function({swiper:t,extendParams:e,on:n}){e({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,r={};const o=t=>t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=t=>{const e=BL();let n;n=t?new URL(t):e.location;const i=n.pathname.slice(1).split("/").filter((t=>""!==t)),r=i.length;return{key:i[r-2],value:i[r-1]}},s=(e,n)=>{const r=BL();if(!i||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):r.location;const s=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${n}"]`):t.slides[n];let l=o(s.getAttribute("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),l=`${n}/${e?`${e}/`:""}${l}`}else a.pathname.includes(e)||(l=`${e?`${e}/`:""}${l}`);t.params.history.keepQuery&&(l+=a.search);const c=r.history.state;c&&c.value===l||(t.params.history.replaceState?r.history.replaceState({value:l},null,l):r.history.pushState({value:l},null,l))},l=(e,n,i)=>{if(n)for(let r=0,a=t.slides.length;r<a;r+=1){const a=t.slides[r];if(o(a.getAttribute("data-history"))===n){const n=t.getSlideIndex(a);t.slideTo(n,e,i)}}else t.slideTo(0,e,i)},c=()=>{r=a(t.params.url),l(t.params.speed,r.value,!1)};n("init",(()=>{t.params.history.enabled&&(()=>{const e=BL();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);i=!0,r=a(t.params.url),r.key||r.value?(l(0,r.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",c)):t.params.history.replaceState||e.addEventListener("popstate",c)}})()})),n("destroy",(()=>{t.params.history.enabled&&(()=>{const e=BL();t.params.history.replaceState||e.removeEventListener("popstate",c)})()})),n("transitionEnd _freeModeNoMomentumRelease",(()=>{i&&s(t.params.history.key,t.activeIndex)})),n("slideChange",(()=>{i&&t.params.cssMode&&s(t.params.history.key,t.activeIndex)}))},function({swiper:t,extendParams:e,emit:n,on:i}){let r=!1;const o=ML(),a=BL();e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,n){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.find((t=>t.getAttribute("data-hash")===n));return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(WL(t.slidesEl,`.${t.params.slideClass}[data-hash="${n}"], swiper-slide[data-hash="${n}"]`)[0])}}});const s=()=>{n("hashChange");const e=o.location.hash.replace("#",""),i=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(i?i.getAttribute("data-hash"):"")){const n=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===n||Number.isNaN(n))return;t.slideTo(n)}},l=()=>{if(!r||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],i=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${i}`||""),n("hashSet")):(o.location.hash=i||"",n("hashSet"))};i("init",(()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;r=!0;const e=o.location.hash.replace("#","");if(e){const n=0,i=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(i||0,n,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&a.addEventListener("hashchange",s)})()})),i("destroy",(()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&a.removeEventListener("hashchange",s)})),i("transitionEnd _freeModeNoMomentumRelease",(()=>{r&&l()})),i("slideChange",(()=>{r&&t.params.cssMode&&l()}))},function({swiper:t,extendParams:e,on:n,emit:i,params:r}){let o,a;t.autoplay={running:!1,paused:!1,timeLeft:0}
2516,e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,l,c,d,u,p,h,m,g=r&&r.autoplay?r.autoplay.delay:3e3,v=r&&r.autoplay?r.autoplay.delay:3e3,f=(new Date).getTime();function b(e){t&&!t.destroyed&&t.wrapperEl&&e.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",b),m||e.detail&&e.detail.bySwiperTouchMove||C())}const _=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?l=!0:l&&(v=s,l=!1);const e=t.autoplay.paused?s:f+v-(new Date).getTime();t.autoplay.timeLeft=e,i("autoplayTimeLeft",e,e/g),a=requestAnimationFrame((()=>{_()}))},E=e=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(a),_();let n=void 0===e?t.params.autoplay.delay:e;g=t.params.autoplay.delay,v=t.params.autoplay.delay;const r=(()=>{let e;if(e=t.virtual&&t.params.virtual.enabled?t.slides.find((t=>t.classList.contains("swiper-slide-active"))):t.slides[t.activeIndex],e)return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(r)&&r>0&&void 0===e&&(n=r,g=r,v=r),s=n;const l=t.params.speed,c=()=>{t&&!t.destroyed&&(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(l,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,l,!0,!0),i("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(l,!0,!0),i("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,l,!0,!0),i("autoplay")),t.params.cssMode&&(f=(new Date).getTime(),requestAnimationFrame((()=>{E()}))))};return n>0?(clearTimeout(o),o=setTimeout((()=>{c()}),n)):requestAnimationFrame((()=>{c()})),n},y=()=>{f=(new Date).getTime(),t.autoplay.running=!0,E(),i("autoplayStart")},S=()=>{t.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),i("autoplayStop")},T=(e,n)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(o),e||(h=!0);const r=()=>{i("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",b):C()};if(t.autoplay.paused=!0,n)return p&&(s=t.params.autoplay.delay),p=!1,void r();const a=s||t.params.autoplay.delay;s=a-((new Date).getTime()-f),t.isEnd&&s<0&&!t.params.loop||(s<0&&(s=0),r())},C=()=>{t.isEnd&&s<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(f=(new Date).getTime(),h?(h=!1,E(s)):E(),t.autoplay.paused=!1,i("autoplayResume"))},w=()=>{if(t.destroyed||!t.autoplay.running)return;const e=ML();"hidden"===e.visibilityState&&(h=!0,T(!0)),"visible"===e.visibilityState&&C()},A=e=>{"mouse"===e.pointerType&&(h=!0,m=!0,t.animating||t.autoplay.paused||T(!0))},I=e=>{"mouse"===e.pointerType&&(m=!1,t.autoplay.paused&&C())};n("init",(()=>{t.params.autoplay.enabled&&(t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",A),t.el.addEventListener("pointerleave",I)),ML().addEventListener("visibilitychange",w),y())})),n("destroy",(()=>{t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("pointerenter",A),t.el.removeEventListener("pointerleave",I)),ML().removeEventListener("visibilitychange",w),t.autoplay.running&&S()})),n("_freeModeStaticRelease",(()=>{(d||h)&&C()})),n("_freeModeNoMomentumRelease",(()=>{t.params.autoplay.disableOnInteraction?S():T(!0,!0)})),n("beforeTransitionStart",((e,n,i)=>{!t.destroyed&&t.autoplay.running&&(i||!t.params.autoplay.disableOnInteraction?T(!0,!0):S())})),n("sliderFirstMove",(()=>{!t.destroyed&&t.autoplay.running&&(t.params.autoplay.disableOnInteraction?S():(c=!0,d=!1,h=!1,u=setTimeout((()=>{h=!0,d=!0,T(!0)}),200)))})),n("touchEnd",(()=>{if(!t.destroyed&&t.autoplay.running&&c){if(clearTimeout(u),clearTimeout(o),t.params.autoplay.disableOnInteraction)return d=!1,void(c=!1);d&&t.params.cssMode&&C(),d=!1,c=!1}})),n("slideChange",(()=>{!t.destroyed&&t.autoplay.running&&(p=!0)})),Object.assign(t.autoplay,{start:y,stop:S,pause:T,resume:C})},function({swiper:t,extendParams:e,on:n}){e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,r=!1;function o(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,i=e.clickedSlide;if(i&&i.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let r;r=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):n,t.params.loop?t.slideToLoop(r):t.slideTo(r)}function a(){const{thumbs:e}=t.params;if(i)return!1;i=!0;const n=t.constructor;if(e.swiper instanceof n){if(e.swiper.destroyed)return i=!1,!1;t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}
2516),t.thumbs.swiper.update()}else if(HL(e.swiper)){const i=Object.assign({},e.swiper);Object.assign(i,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new n(i),r=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",o),!0}function s(e){const n=t.thumbs.swiper;if(!n||n.destroyed)return;const i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;let r=1;const o=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),n.slides.forEach((t=>t.classList.remove(o))),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e<r;e+=1)WL(n.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach((t=>{t.classList.add(o)}));else for(let e=0;e<r;e+=1)n.slides[t.realIndex+e]&&n.slides[t.realIndex+e].classList.add(o);const a=t.params.thumbs.autoScrollOffset,s=a&&!n.params.loop;if(t.realIndex!==n.realIndex||s){const r=n.activeIndex;let o,l;if(n.params.loop){const e=n.slides.find((e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`));o=n.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else o=t.realIndex,l=o>t.previousIndex?"next":"prev";s&&(o+="next"===l?a:-1*a),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(o)<0&&(n.params.centeredSlides?o=o>r?o-Math.floor(i/2)+1:o+Math.floor(i/2)-1:o>r&&n.params.slidesPerGroup,n.slideTo(o,e?0:void 0))}}t.thumbs={swiper:null},n("beforeInit",(()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const n=ML(),i=()=>{const i="string"==typeof e.swiper?n.querySelector(e.swiper):e.swiper;if(i&&i.swiper)e.swiper=i.swiper,a(),s(!0);else if(i){const n=`${t.params.eventsPrefix}init`,r=o=>{e.swiper=o.detail[0],i.removeEventListener(n,r),a(),s(!0),e.swiper.update(),t.update()};i.addEventListener(n,r)}return i},r=()=>{t.destroyed||i()||requestAnimationFrame(r)};requestAnimationFrame(r)}else a(),s(!0)})),n("slideChange update resize observerUpdate",(()=>{s()})),n("setTransition",((e,n)=>{const i=t.thumbs.swiper;i&&!i.destroyed&&i.setTransition(n)})),n("beforeDestroy",(()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&r&&e.destroy()})),Object.assign(t.thumbs,{init:a,update:s})},function({swiper:t,extendParams:e,emit:n,once:i}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:zL()})},onTouchEnd:function({currentPos:e}){if(t.params.cssMode)return;const{params:r,wrapperEl:o,rtlTranslate:a,snapGrid:s,touchEventsData:l}=t,c=zL()-l.touchStartTime;if(e<-t.minTranslate())t.slideTo(t.activeIndex);else if(e>-t.maxTranslate())t.slides.length<s.length?t.slideTo(s.length-1):t.slideTo(t.slides.length-1);else{if(r.freeMode.momentum){if(l.velocities.length>1){const e=l.velocities.pop(),n=l.velocities.pop(),i=e.position-n.position,o=e.time-n.time;t.velocity=i/o,t.velocity/=2,Math.abs(t.velocity)<r.freeMode.minimumVelocity&&(t.velocity=0),(o>150||zL()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeMode.momentumVelocityRatio,l.velocities.length=0;let e=1e3*r.freeMode.momentumRatio;const c=t.velocity*e;let d=t.translate+c;a&&(d=-d);let u,p=!1;const h=20*Math.abs(t.velocity)*r.freeMode.momentumBounceRatio;let m;if(d<t.maxTranslate())r.freeMode.momentumBounce?(d+t.maxTranslate()<-h&&(d=t.maxTranslate()-h),u=t.maxTranslate(),p=!0,l.allowMomentumBounce=!0):d=t.maxTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(d>t.minTranslate())r.freeMode.momentumBounce?(d-t.minTranslate()>h&&(d=t.minTranslate()+h),u=t.minTranslate(),p=!0,l.allowMomentumBounce
2516=!0):d=t.minTranslate(),r.loop&&r.centeredSlides&&(m=!0);else if(r.freeMode.sticky){let e;for(let t=0;t<s.length;t+=1)if(s[t]>-d){e=t;break}d=Math.abs(s[e]-d)<Math.abs(s[e-1]-d)||"next"===t.swipeDirection?s[e]:s[e-1],d=-d}if(m&&i("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-d-t.translate)/t.velocity):Math.abs((d-t.translate)/t.velocity),r.freeMode.sticky){const n=Math.abs((a?-d:d)-t.translate),i=t.slidesSizesGrid[t.activeIndex];e=n<i?r.speed:n<2*i?1.5*r.speed:2.5*r.speed}}else if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode.momentumBounce&&p?(t.updateProgress(u),t.setTransition(e),t.setTranslate(d),t.transitionStart(!0,t.swipeDirection),t.animating=!0,ek(o,(()=>{t&&!t.destroyed&&l.allowMomentumBounce&&(n("momentumBounce"),t.setTransition(r.speed),setTimeout((()=>{t.setTranslate(u),ek(o,(()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(d),t.setTransition(e),t.setTranslate(d),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,ek(o,(()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(d),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(r.freeMode.sticky)return void t.slideToClosest();r.freeMode&&n("_freeModeNoMomentumRelease")}(!r.freeMode.momentum||c>=r.longSwipesMs)&&(n("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function({swiper:t,extendParams:e,on:n}){let i,r,o,a;e({grid:{rows:1,fill:"column"}});const s=()=>{let e=t.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*t.size:"string"==typeof e&&(e=parseFloat(e)),e};n("init",(()=>{a=t.params.grid&&t.params.grid.rows>1})),n("update",(()=>{const{params:e,el:n}=t,i=e.grid&&e.grid.rows>1;a&&!i?(n.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),o=1,t.emitContainerClasses()):!a&&i&&(n.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&n.classList.add(`${e.containerModifierClass}grid-column`),t.emitContainerClasses()),a=i})),t.grid={initSlides:e=>{const{slidesPerView:n}=t.params,{rows:a,fill:s}=t.params.grid,l=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:e.length;o=Math.floor(l/a),i=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==n&&"row"===s&&(i=Math.max(i,n*a)),r=i/a},unsetSlides:()=>{t.slides&&t.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[t.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,n,a)=>{const{slidesPerGroup:l}=t.params,c=s(),{rows:d,fill:u}=t.params.grid,p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:a.length;let h,m,g;if("row"===u&&l>1){const t=Math.floor(e/(l*d)),r=e-d*l*t,o=0===t?l:Math.min(Math.ceil((p-t*d*l)/d),l);g=Math.floor(r/o),m=r-g*o+t*l,h=m+g*i/d,n.style.order=h}else"column"===u?(m=Math.floor(e/d),g=e-m*d,(m>o||m===o&&g===d-1)&&(g+=1,g>=d&&(g=0,m+=1))):(g=Math.floor(e/r),m=e-g*r);n.row=g,n.column=m,n.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,n.style[t.getDirectionLabel("margin-top")]=0!==g?c&&`${c}px`:"",n.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:r,roundLengths:o}=t.params,a=s(),{rows:l}=t.params.grid;if(t.virtualSize=(e+a)*i,t.virtualSize=Math.ceil(t.virtualSize/l)-a,t.params.cssMode||(t.wrapperEl.style[t.getDirectionLabel("width")]=`${t.virtualSize+a}px`),r){const e=[];for(let i=0;i<n.length;i+=1){let r=n[i];o&&(r=Math.floor(r)),n[i]<t.virtualSize+n[0]&&e.push(r)}n.splice(0,n.length),n.push(...e)}}}},function({swiper:t}){Object.assign(t,{appendSlide:Uk.bind(t),prependSlide:Bk.bind(t),addSlide:Vk.bind(t),removeSlide:Fk.bind(t),removeAllSlides:zk.bind(t)})},function({swiper:t,extendParams:e,on:n}){e({fadeEffect:{crossFade:!1}}),$k({effect:"fade",swiper:t,on:n,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let n=0;n<e.length;n+=1){const e=t.slides[n];let i=-e.swiperSlideOffset;t.params.virtualTranslate||(i-=t.translate);let r=0;t.isHorizontal()||(r=i,i=0);const o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),a=Hk(0,e);a.style.opacity=o,a.style.transform=`translate3d(${i}px, ${r}px, 0px)`}},setTransition:e=>{const n=t.slides.map((t=>KL(t)));
2516n.forEach((t=>{t.style.transitionDuration=`${e}ms`})),Gk({swiper:t,duration:e,transformElements:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:n}){e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(t,e,n)=>{let i=n?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),r=n?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");i||(i=XL("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"left":"top")).split(" ")),t.append(i)),r||(r=XL("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(n?"right":"bottom")).split(" ")),t.append(r)),i&&(i.style.opacity=Math.max(-e,0)),r&&(r.style.opacity=Math.max(e,0))};$k({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{el:e,wrapperEl:n,slides:r,width:o,height:a,rtlTranslate:s,size:l,browser:c}=t,d=rk(t),u=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled;let m,g=0;u.shadow&&(p?(m=t.wrapperEl.querySelector(".swiper-cube-shadow"),m||(m=XL("div","swiper-cube-shadow"),t.wrapperEl.append(m)),m.style.height=`${o}px`):(m=e.querySelector(".swiper-cube-shadow"),m||(m=XL("div","swiper-cube-shadow"),e.append(m))));for(let t=0;t<r.length;t+=1){const e=r[t];let n=t;h&&(n=parseInt(e.getAttribute("data-swiper-slide-index"),10));let o=90*n,a=Math.floor(o/360);s&&(o=-o,a=Math.floor(-o/360));const c=Math.max(Math.min(e.progress,1),-1);let m=0,v=0,f=0;n%4==0?(m=4*-a*l,f=0):(n-1)%4==0?(m=0,f=4*-a*l):(n-2)%4==0?(m=l+4*a*l,f=l):(n-3)%4==0&&(m=-l,f=3*l+4*l*a),s&&(m=-m),p||(v=m,m=0);const b=`rotateX(${d(p?0:-o)}deg) rotateY(${d(p?o:0)}deg) translate3d(${m}px, ${v}px, ${f}px)`;c<=1&&c>-1&&(g=90*n+90*c,s&&(g=90*-n-90*c)),e.style.transform=b,u.slideShadows&&i(e,c,p)}if(n.style.transformOrigin=`50% 50% -${l/2}px`,n.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,u.shadow)if(p)m.style.transform=`translate3d(0px, ${o/2+u.shadowOffset}px, ${-o/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const t=Math.abs(g)-90*Math.floor(Math.abs(g)/90),e=1.5-(Math.sin(2*t*Math.PI/360)/2+Math.cos(2*t*Math.PI/360)/2),n=u.shadowScale,i=u.shadowScale/e,r=u.shadowOffset;m.style.transform=`scale3d(${n}, 1, ${i}) translate3d(0px, ${a/2+r}px, ${-a/2/i}px) rotateX(-89.99deg)`}const v=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;n.style.transform=`translate3d(0px,0,${v}
2516px) rotateX(${d(t.isHorizontal()?0:g)}deg) rotateY(${d(t.isHorizontal()?-g:0)}deg)`,n.style.setProperty("--swiper-cube-translate-z",`${v}px`)},setTransition:e=>{const{el:n,slides:i}=t;if(i.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=n.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach((t=>{const n=Math.max(Math.min(t.progress,1),-1);i(t,n,e)}))},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function({swiper:t,extendParams:e,on:n}){e({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(e,n)=>{let i=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),r=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");i||(i=Yk("flip",e,t.isHorizontal()?"left":"top")),r||(r=Yk("flip",e,t.isHorizontal()?"right":"bottom")),i&&(i.style.opacity=Math.max(-n,0)),r&&(r.style.opacity=Math.max(n,0))};$k({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,r=t.params.flipEffect,o=rk(t);for(let a=0;a<e.length;a+=1){const s=e[a];let l=s.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(s.progress,1),-1));const c=s.swiperSlideOffset;let d=-180*l,u=0,p=t.params.cssMode?-c-t.translate:-c,h=0;t.isHorizontal()?n&&(d=-d):(h=p,p=0,u=-d,d=0),s.style.zIndex=-Math.abs(Math.round(l))+e.length,r.slideShadows&&i(s,l);const m=`translate3d(${p}px, ${h}px, 0px) rotateX(${o(u)}deg) rotateY(${o(d)}deg)`;Hk(0,s).style.transform=m}},setTransition:e=>{const n=t.slides.map((t=>KL(t)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Gk({swiper:t,duration:e,transformElements:n})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach((e=>{let n=e.progress;t.params.flipEffect.limitRotation&&(n=Math.max(Math.min(e.progress,1),-1)),i(e,n)}))},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:n}){e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),$k({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:e,height:n,slides:i,slidesSizesGrid:r}=t,o=t.params.coverflowEffect,a=t.isHorizontal(),s=t.translate,l=a?e/2-s:n/2-s,c=a?o.rotate:-o.rotate,d=o.depth,u=rk(t);for(let t=0,e=i.length;t<e;t+=1){const e=i[t],n=r[t],s=(l-e.swiperSlideOffset-n/2)/n,p="function"==typeof o.modifier?o.modifier(s):s*o.modifier;let h=a?c*p:0,m=a?0:c*p,g=-d*Math.abs(p),v=o.stretch;"string"==typeof v&&-1!==v.indexOf("%")&&(v=parseFloat(o.stretch)/100*n);let f=a?0:v*p,b=a?v*p:0,_=1-(1-o.scale)*Math.abs(p);Math.abs(b)<.001&&(b=0),Math.abs(f)<.001&&(f=0),Math.abs(g)<.001&&(g=0),Math.abs(h)<.001&&(h=0),Math.abs(m)<.001&&(m=0),Math.abs(_)<.001&&(_=0);const E=`translate3d(${b}px,${f}px,${g}px)  rotateX(${u(m)}deg) rotateY(${u(h)}deg) scale(${_})`;if(Hk(0,e).style.transform=E,e.style.zIndex=1-Math.abs(Math.round(p)),o.slideShadows){let t=a?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=a?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");t||(t=Yk("coverflow",e,a?"left":"top")),n||(n=Yk("coverflow",e,a?"right":"bottom")),t&&(t.style.opacity=p>0?p:0),n&&(n.style.opacity=-p>0?-p:0)}}},setTransition:e=>{t.slides.map((t=>KL(t))).forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((t=>{t.style.transitionDuration=`${e}ms`}))}))},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function({swiper:t,extendParams:e,on:n}
2516){e({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=t=>"string"==typeof t?t:`${t}px`;$k({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:e,wrapperEl:n,slidesSizesGrid:r}=t,o=t.params.creativeEffect,{progressMultiplier:a}=o,s=t.params.centeredSlides,l=rk(t);if(s){const e=r[0]/2-t.params.slidesOffsetBefore||0;n.style.transform=`translateX(calc(50% - ${e}px))`}for(let n=0;n<e.length;n+=1){const r=e[n],c=r.progress,d=Math.min(Math.max(r.progress,-o.limitProgress),o.limitProgress);let u=d;s||(u=Math.min(Math.max(r.originalProgress,-o.limitProgress),o.limitProgress));const p=r.swiperSlideOffset,h=[t.params.cssMode?-p-t.translate:-p,0,0],m=[0,0,0];let g=!1;t.isHorizontal()||(h[1]=h[0],h[0]=0);let v={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(v=o.next,g=!0):d>0&&(v=o.prev,g=!0),h.forEach(((t,e)=>{h[e]=`calc(${t}px + (${i(v.translate[e])} * ${Math.abs(d*a)}))`})),m.forEach(((t,e)=>{let n=v.rotate[e]*Math.abs(d*a);m[e]=n})),r.style.zIndex=-Math.abs(Math.round(c))+e.length;const f=h.join(", "),b=`rotateX(${l(m[0])}deg) rotateY(${l(m[1])}deg) rotateZ(${l(m[2])}deg)`,_=u<0?`scale(${1+(1-v.scale)*u*a})`:`scale(${1-(1-v.scale)*u*a})`,E=u<0?1+(1-v.opacity)*u*a:1-(1-v.opacity)*u*a,y=`translate3d(${f}) ${b} ${_}`;if(g&&v.shadow||!g){let t=r.querySelector(".swiper-slide-shadow");if(!t&&v.shadow&&(t=Yk("creative",r)),t){const e=o.shadowPerProgress?d*(1/o.limitProgress):d;t.style.opacity=Math.min(Math.max(Math.abs(e),0),1)}}const S=Hk(0,r);S.style.transform=y,S.style.opacity=E,v.origin&&(S.style.transformOrigin=v.origin)}},setTransition:e=>{const n=t.slides.map((t=>KL(t)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Gk({swiper:t,duration:e,transformElements:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function({swiper:t,extendParams:e,on:n}){e({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),$k({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:e,activeIndex:n,rtlTranslate:i}=t,r=t.params.cardsEffect,{startTranslate:o,isTouched:a}=t.touchEventsData,s=i?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],d=c.progress,u=Math.min(Math.max(d,-4),4);let p=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(p-=e[0].swiperSlideOffset);let h=t.params.cssMode?-p-t.translate:-p,m=0;const g=-100*Math.abs(u);let v=1,f=-r.perSlideRotate*u,b=r.perSlideOffset-.75*Math.abs(u);const _=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,E=(_===n||_===n-1)&&u>0&&u<1&&(a||t.params.cssMode)&&s<o,y=(_===n||_===n+1)&&u<0&&u>-1&&(a||t.params.cssMode)&&s>o;if(E||y){const e=(1-Math.abs((Math.abs(u)-.5)/.5))**.5;f+=-28*u*e,v+=-.5*e,b+=96*e,m=(r.rotate||t.isHorizontal()?-25:0)*e*Math.abs(u)+"%"}if(h=u<0?`calc(${h}px ${i?"-":"+"} (${b*Math.abs(u)}%))`:u>0?`calc(${h}px ${i?"-":"+"} (-${b*Math.abs(u)}%))`:`${h}px`,!t.isHorizontal()){const t=m;m=h,h=t}const S=u<0?""+(1+(1-v)*u):""+(1-(1-v)*u),T=`\n        translate3d(${h}, ${m}, ${g}px)\n        rotateZ(${r.rotate?i?-f:f:0}deg)\n        scale(${S})\n      `;if(r.slideShadows){let t=c.querySelector(".swiper-slide-shadow");t||(t=Yk("cards",c)),t&&(t.style.opacity=Math.min(Math.max((Math.abs(u)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(d))+e.length,Hk(0,c).style.transform=T}},setTransition:e=>{const n=t.slides.map((t=>KL(t)));n.forEach((t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach((t=>{t.style.transitionDuration=`${e}ms`}))})),Gk({swiper:t,duration:e,transformElements:n})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:t.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})}];Pk.use(jk);const Kk=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
2516ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Wk(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)&&!t.__swiper__}function qk(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter((t=>n.indexOf(t)<0)).forEach((n=>{void 0===t[n]?t[n]=e[n]:Wk(e[n])&&Wk(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:qk(t[n],e[n]):t[n]=e[n]}))}function Xk(t=""){return t.replace(/-[a-z]/g,(t=>t.toUpperCase().replace("-","")))}const Zk=t=>{if(parseFloat(t)===Number(t))return Number(t);if("true"===t)return!0;if(""===t)return!0;if("false"===t)return!1;if("null"===t)return null;if("undefined"!==t){if("string"==typeof t&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch(n){e=t}return e}return t}},Qk=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function Jk(t,e,n){const i={},r={};qk(i,Rk);const o=[...Kk,"on"],a=o.map((t=>t.replace(/_/,"")));o.forEach((e=>{e=e.replace("_",""),void 0!==t[e]&&(r[e]=t[e])}));const s=[...t.attributes];return"string"==typeof e&&void 0!==n&&s.push({name:e,value:Wk(n)?{...n}:n}),s.forEach((t=>{const e=Qk.find((e=>t.name.startsWith(`${e}-`)));if(e){const n=Xk(e),i=Xk(t.name.split(`${e}-`)[1]);void 0===r[n]&&(r[n]={}),!0===r[n]&&(r[n]={enabled:!0}),!1===r[n]&&(r[n]={enabled:!1}),r[n][i]=Zk(t.value)}else{const e=Xk(t.name);if(!a.includes(e))return;const n=Zk(t.value);r[e]&&Qk.includes(t.name)&&!Wk(n)?(r[e].constructor!==Object&&(r[e]={}),r[e].enabled=!!n):r[e]=n}})),qk(i,r),i.navigation?i.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...!0!==i.navigation?i.navigation:{}}:!1===i.navigation&&delete i.navigation,i.scrollbar?i.scrollbar={el:".swiper-scrollbar",...!0!==i.scrollbar?i.scrollbar:{}}:!1===i.scrollbar&&delete i.scrollbar,i.pagination?i.pagination={el:".swiper-pagination",...!0!==i.pagination?i.pagination:{}}:!1===i.pagination&&delete i.pagination,{params:i,passedParams:r}}const tP=':host{--swiper-theme-color:#007aff}:host{display:block;margin-left:auto;margin-right:auto;position:relative;z-index:1}.swiper{display:block;height:100%;list-style:none;margin-left:auto;margin-right:auto;overflow:hidden;padding:0;position:relative;width:100%;z-index:1}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:initial;display:flex;height:100%;position:relative;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);width:100%;z-index:1}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){display:block;flex-shrink:0;height:100%;position:relative;transition-property:transform;width:100%}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){he
2516ight:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);min-width:1px;width:100%}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper:after{content:"";left:0;pointer-events:none;position:absolute;top:0}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{align-items:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;display:flex;height:var(--swiper-navigation-size);justify-content:center;position:absolute;width:var(--swiper-navigation-size);z-index:10}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{height:100%;object-fit:contain;transform-origin:center;width:100%;fill:currentColor;pointer-events:none}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-next,.swiper-horizontal .swiper-button-prev,.swiper-horizontal~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-horizontal .swiper-button-prev,.swiper-horizontal.swiper-rtl .swiper-button-next,.swiper-horizontal.swiper-rtl~.swiper-button-next,.swiper-horizontal~.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}.swiper-horizontal .swiper-button-next,.swiper-horizontal.swiper-rtl .swiper-button-prev,.swiper-horizontal.swiper-rtl~.swiper-button-prev,.swiper-horizontal~.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl .swiper-button-next .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-next .swiper-navigation-icon,.swiper-horizontal~.swiper-button-prev .swiper-navigation-icon{transform:rotate(180deg)}.swiper-horizontal.swiper-rtl .swiper-button-prev .swiper-navigation-icon,.swiper-horizontal.swiper-rtl~.swiper-button-prev .swiper-navigation-icon{transform:rotate(0deg)}.swiper-vertical .swiper-button-next,.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-next,.swiper-vertical~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}.swiper-vertical .swiper-button-prev,.swiper-vertical~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px)}.swiper-vertical .swiper-button-prev .swiper-navigation-icon,.swiper-vertical~.swiper-button-prev .swiper-navigation-icon{transform:rotate(-90deg)}.swiper-vertical .swiper-button-next,.swiper-vertical~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto}.swiper-vertical .swiper-button-next .swiper-navigation-icon,.swiper-vertical~.swiper-button-next .swiper-navigation-icon
vendor: 8,761 bytes, line 2516
2516{transform:rotate(90deg)}.swiper-pagination{position:absolute;text-align:center;transform:translateZ(0);transition:opacity .3s;z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);display:inline-block;height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px))}button.swiper-pagination-bullet{appearance:none;border:none;box-shadow:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translate3d(0,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{display:block;margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:transform .2s,top .2s}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));height:100%;left:0;position:absolute;top:0;transform:scale(0);transform-origin:left top;width:100%}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0;width:100%}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{height:100%;left:0;top:0;width:var(--swiper-pagination-progressbar-size,4px)}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);position:absolute;top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);z-index:50}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{height:calc(100% - var(--swiper-scrollbar-sides-offset, 1%)*2);left:var(--swiper-scrollbar-left,auto);position:absolute;right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);height:100%;left:0;position:relative;top:0;width:100%}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{left:0;opacity:0;pointer-events:none;position:absolute;top:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{margin:0 auto;transition-timing-function:ease-out}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-direction:column;flex-wrap:wrap}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){backface-visibility:hidden;height:100%;pointer-events:none;transform-origin:0 0;visibility:hidden;width:100%;z-index:1}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{bottom:0;height:100%;left:0;opacity:.6;position:absolute;width:100%;z-index:0}.swiper-cube .swiper-cube-shadow:before{background:#000;bottom:0;content:"";filter:blur(50px);left:0;position:absolute;right:0;top:0}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){backface-visibility:hidden;pointer-events:none;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){backface-visibility:hidden;overflow:hidden;transform-origin:center bottom}
2516',eP="undefined"==typeof window||"undefined"==typeof HTMLElement?class{}:HTMLElement,nP=(t,e)=>{if("undefined"!=typeof CSSStyleSheet&&t.adoptedStyleSheets){const n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets=[n]}else{const n=document.createElement("style");n.rel="stylesheet",n.textContent=e,t.appendChild(n)}};class iP extends eP{constructor(){super(),this.attachShadow({mode:"open"})}cssStyles(){return[tP,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join("\n")}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const t=this.slideSlots||0,e=[...this.querySelectorAll("[slot^=slide-]")].map((t=>parseInt(t.getAttribute("slot").split("slide-")[1],10)));if(this.slideSlots=e.length?Math.max(...e)+1:0,this.rendered)if(this.slideSlots>t)for(let e=t;e<this.slideSlots;e+=1){const t=document.createElement("swiper-slide");t.setAttribute("part",`slide slide-${e+1}`);const n=document.createElement("slot");n.setAttribute("name",`slide-${e+1}`),t.appendChild(n),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(t)}else if(this.slideSlots<t){const t=this.swiper.slides;for(let e=t.length-1;e>=0;e-=1)e>this.slideSlots&&t[e].remove()}}render(){if(this.rendered)return;this.calcSlideSlots();let t=this.cssStyles();this.slideSlots>0&&(t=t.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),t.length&&nP(this.shadowRoot,t),this.cssLinks().forEach((t=>{if(this.shadowRoot.querySelector(`link[href="${t}"]`))return;const e=document.createElement("link");e.rel="stylesheet",e.href=t,this.shadowRoot.appendChild(e)}));const e=document.createElement("div");e.classList.add("swiper"),e.part="container",ok(e,`\n      <slot name="container-start"></slot>\n      <div class="swiper-wrapper" part="wrapper">\n        <slot></slot>\n        ${Array.from({length:this.slideSlots}).map(((t,e)=>`\n        <swiper-slide part="slide slide-${e}">\n          <slot name="slide-${e}"></slot>\n        </swiper-slide>\n        `)).join("")}\n      </div>\n      <slot name="container-end"></slot>\n      ${function(t={}){return t.navigation&&void 0===t.navigation.nextEl&&void 0===t.navigation.prevEl}(this.passedParams)?'\n        <div part="button-prev" class="swiper-button-prev"></div>\n        <div part="button-next" class="swiper-button-next"></div>\n      ':""}\n      ${function(t={}){return t.pagination&&void 0===t.pagination.el}(this.passedParams)?'\n        <div part="pagination" class="swiper-pagination"></div>\n      ':""}\n      ${function(t={}){return t.scrollbar&&void 0===t.scrollbar.el}(this.passedParams)?'\n        <div part="scrollbar" class="swiper-scrollbar"></div>\n      ':""}\n    `),this.shadowRoot.appendChild(e),this.rendered=!0}initialize(){if(this.swiper&&this.swiper.initialized)return;const{params:t,passedParams:e}=Jk(this);this.swiperParams=t,this.passedParams=e,delete this.swiperParams.init,this.render(),this.swiper=new Pk(this.shadowRoot.querySelector(".swiper"),{...t.virtual?{}:{observer:!0},...t,touchEventsTarget:"container",onAny:(e,...n)=>{"observerUpdate"===e&&this.calcSlideSlots();const i=t.eventsPrefix?`${t.eventsPrefix}${e.toLowerCase()}`:e.toLowerCase(),r=new CustomEvent(i,{detail:n,bubbles:"hashChange"!==e,cancelable:!0});this.dispatchEvent(r)}})}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||!1!==this.init&&"false"!==this.getAttribute("init")&&this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(t,e){const{params:n,passedParams:i}=Jk(this,t,e);this.passedParams=i,this.swiperParams=n,this.swiper&&this.swiper.params[t]===e||function({swiper:t,slides:e,passedParams:n,changedParams:i,nextEl:r,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=i.filter((t=>"children"!==t&&"direction"!==t&&"wrapperClass"!==t)),{params:c,pagination:d,navigation:u,scrollbar:p,virtual:h,thumbs:m}=t;let g,v,f,b,_,E,y,S;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&c.thumbs&&(!c.thumbs.swiper||c.thumbs.swiper.destroyed)&&(g=!0),i.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(v=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(c.pagination||!1===c.pagination)&&d&&!d.el&&(f=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||!1===c.scrollbar)&&p&&!p.el&&(b=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||r)&&(c.navigation||!1===c.navigation)&&u&&!u.prevEl&&!u.nextEl&&(_=!0);const T=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),c[e].prevEl=void 0,c[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),c[e].el=void 0,t[e].el=void 0))};i.includes("loop")&&t.isElement&&(c.loop&&!n.loop?E=!0:!c.loop&&n.loop?y=!0:S=!0),l.forEach((t=>{if(Wk(c[t])&&Wk(n[t]))Object.assign(c[t],n[t]),"navigation"!==t&&"pagination"!==t&&"scrollbar"!==t||!("enabled"in n[t])||n[t].enabled||T(t);else{const e=n[t];!0!==e&&!1!==e||"navigation"!==t&&"pagination"!==t&&"scrollbar"!==t?c[t]=n[t]:!1===e&&T(t)}})),l.includes("controller")&&!v&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),i.includes("children")&&e&&h&&c.virtual.enabled?(h.slides=e,h.update(!0)):i.includes("virtual")&&h&&c.virtual.enabled&&(e&&(h.slides=e),h.update(!0)),i.includes("children")&&e&&c.loop&&(S=!0),g&&m.init(
2516)&&m.update(!0),v&&(t.controller.control=c.controller.control),f&&(!t.isElement||s&&"string"!=typeof s||((s=document.createElement("div")).classList.add("swiper-pagination"),s.part.add("pagination"),t.el.appendChild(s)),s&&(c.pagination.el=s),d.init(),d.render(),d.update()),b&&(!t.isElement||a&&"string"!=typeof a||((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),t.el.appendChild(a)),a&&(c.scrollbar.el=a),p.init(),p.updateSize(),p.setTranslate()),_&&(t.isElement&&(r&&"string"!=typeof r||((r=document.createElement("div")).classList.add("swiper-button-next"),ok(r,t.navigation.arrowSvg),r.part.add("button-next"),t.el.appendChild(r)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),ok(o,t.navigation.arrowSvg),o.part.add("button-prev"),t.el.appendChild(o))),r&&(c.navigation.nextEl=r),o&&(c.navigation.prevEl=o),u.init(),u.update()),i.includes("allowSlideNext")&&(t.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(t.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&t.changeDirection(n.direction,!1),(E||S)&&t.loopDestroy(),(y||S)&&t.loopCreate(),t.update()}({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Xk(t)],..."navigation"===t&&i[t]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},..."pagination"===t&&i[t]?{paginationEl:".swiper-pagination"}:{},..."scrollbar"===t&&i[t]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(t,e,n){this.swiper&&this.swiper.initialized&&("true"===e&&null===n&&(n=!1),this.updateSwiperOnPropChange(t,n))}static get observedAttributes(){return Kk.filter((t=>t.includes("_"))).map((t=>t.replace(/[A-Z]/g,(t=>`-${t}`)).replace("_","").toLowerCase()))}}Kk.forEach((t=>{"init"!==t&&(t=t.replace("_",""),Object.defineProperty(iP.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(t,e)}}))}));"undefined"!=typeof window&&(window.SwiperElementRegisterParams=t=>{Kk.push(...t)});const rP=Wb('\n\tswiper-container {\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\toverflow: visible;\n\t}\n\n\tswiper-container .swiper {\n\t\toverflow: visible;\n\t}\n\n\tswiper-container .swiper-wrapper {\n\t\toverflow: visible;\n\t}\n\n\tswiper-slide {\n\t\t/* Formula: (100% / Total Units) - Gap Size */\n\t\t/* CSS handles (100% / 5) - 2% perfectly */\n\t\tinline-size: calc((100% / var(--total-units)) - var(--gap-size));\n\n\t\t/* CRITICAL: Prevents borders from breaking the math */\n\t\tbox-sizing: border-box;\n\n\t\ttext-align: start;\n\t\tfont-size: 18px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\toverflow: visible;\n\t}\n\n\t:host {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t}\n\n\t.carousel-container {\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t}\n\n\t.tiles-swiper {\n\t\t/* Configurable Centered Peeking Carousel Variables */\n\t\t--total-units: 5; /* Default: 4 + (0.5 * 2) = 5 units (set via JS) */\n\t\t--gap-size: 2%; /* Default: 2% gap (set via JS) */\n\n\t\tinline-size: 100%;\n\t\tblock-size: auto;\n\t\topacity: 0;\n\t\toverflow: hidden;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\ttransition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);\n\t}\n\n\t/* When visible: expand and show */\n\t:host([visible]) .tiles-swiper {\n\t\toverflow: visible;\n\t\tpadding: 10px 0;\n\t\tmargin: -10px 0;\n\t\topacity: 1;\n\t}\n\n\t/* Ensure Swiper\'s internal wrapper doesn\'t clip */\n\t.tiles-swiper::part(container) {\n\t\toverflow: visible;\n\t}\n\n\t.tiles-swiper::part(wrapper) {\n\t\toverflow: visible;\n\t}\n\n\tswiper-slide {\n\t\tblock-size: auto;\n\t\tdisplay: flex;\n\t\talign-items: flex-start;\n\t\toverflow: visible;\n\t\ttext-align: start;\n\t}\n\n\tswiper-slide pivot-tray-tile {\n\t\tinline-size: 100%;\n\t\ttext-align: start;\n\t}\n\n\t/* Unfocused tiles: 50% opacity, not clickable/hoverable */\n\t:host([visible]) swiper-slide pivot-tray-tile[data-unfocused] {\n\t\topacity: 0.5;\n\t\tpointer-events: none;\n\t\tcursor: default;\n\t}\n\n\t.carousel-nav {\n\t\tposition: absolute;\n\t\t/* Dynamically calculated to center with artwork (set via JS on :host) */\n\t\tinset-block-start: var(--nav-button-inset-block-start, 80px); /* Fallback to reasonable default */\n\t\tbackground: none;\n\t\tborder: none;\n\t\tcursor: pointer;\n\t\tdisplay: none;\n\t\tpointer-events: auto;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\topacity: 0;\n\t\tz-index: 10;\n\t\tpadding: 0;\n\t\tinline-size: calc(((100% / var(--total-units)) - var(--gap-size)) * 0.2);\n\t\tblock-size: var(--carousel-nav--block-size);\n\t\t/* Center the arrow icon itself */\n\t\ttransform: translateY(-50%);\n\t\ttransition:\n\t\t\topacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n\t\t\ttransform 0.15s ease;\n\t}\n\n\t.carousel-nav--visible {\n\t\topacity: 1;\n\t\tdisplay: flex;\n\t}\n\n\t/* Hover: subtle shift in direction of navigation */\n\t.carousel-nav--left:hover {\n\t\ttransform: translateY(-50%) translateX(-2px);\n\t}\n\n\t.carousel-nav--right:hover {\n\t\ttransform: translateY(-50%) translateX(2px);\n\t}\n\n\t/* Active/click: quick scale down for tactile feedback */\n\t.carousel-nav:active {\n\t\ttransform: translateY(-50%) scale(0.9);\n\t}\n\n\t.carousel-nav--left {\n\t\tinset-inline-start: 10px;\n\t}\n\n\t.carousel-nav--right {\n\t\tinset-inline-end: 10px;\n\t}\n\n\t.carousel-nav--right .carousel-nav__icon {\n\t\t/* Flip the arrow icon horizontally for right arrow */\n\t\ttransform: scaleX(-1);\n\t}\n\n\t:host([dir="rtl"]) .carousel-nav--right .carousel-nav__icon {\n\t\ttransform: scaleX(1);\n\t}\n\n\t:host([dir="rtl"]) .carousel-nav--left .carousel-nav__icon {\n\t\ttransform: scaleX(-1);\n\t}\n\n\t.carousel-nav__icon {\n\t\tinline-size: var(--carousel-nav--icon-inline-size);\n\t\tblock-size: 100%;\n\t\tbackground-color: white;\n\t\tmask: var(--carousel-nav--icon);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tmask-position: center;\n\t\tfilter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));\n\t\ttransition:\n\t\t\tfilter 0.15s ease,\n\t\t\ttransform 0.15s ease;\n\t}\n\n\t/* Hover: glow effect on icon */\n\t.carousel-nav:hover .carousel-nav__icon {\n\t\tfilter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9))\n\t\t\tdrop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));\n\t}\n\n\t/* TODO: A11y - Add :focus-visible styles for .carousel-nav buttons */\n\n\t/* Reduced motion support for users with vestibular disorders */\n\t@media (prefers-reduced-motion: reduce) {\n\t\t.tiles-swiper {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.carousel-nav {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.carousel-nav__icon {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.carousel-nav--left:hover,\n\t\t.carousel-nav--right:hover {\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n'),oP={"carousel-nav--icon":`url("${sA}")`,"carousel-nav--icon-inline-size":"32px","carousel-nav--block-size":"70%"},aP=new Set;class sP{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}get tiles(){return this.host.tiles}getNewVisibleUpNextItems(t,e){const{upNextItems:n}=this.host,i=n.slice(t,t+e).filter((t=>t?.item?.id&&!aP.has(t.item.id)));for(const t of i)aP.add(t.item.id);return i}dispatchVisibilityEvent(t,e,n){const i=this.getNewVisibleUpNextItems(e,n
2516);i.length&&this.host.commandBus?.dispatchCommand(t,{upNextItems:i,slideIndex:e,visibleTileCount:n})}dispatchOpenEvent(t,e){this.dispatchVisibilityEvent($l.PIVOT_TRAY.OPEN,t,e)}dispatchScrollEvent(t,e){this.dispatchVisibilityEvent($l.PIVOT_TRAY.SCROLL,t,e)}dispatchResizeEvent(t,e){this.dispatchVisibilityEvent($l.PIVOT_TRAY.RESIZE,t,e)}}const lP=Wb('\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tcursor: var(--pivot-tray-tile--cursor);\n\t\t/* Width set by parent container using flex-basis */\n\t}\n\n\t:host(:hover) .metadata,\n\t.artwork-wrapper[data-has-active-countdown] ~ .metadata {\n\t\topacity: var(--pivot-tray-tile-metadata--opacity-hover);\n\t}\n\n\t:host(:hover) .artwork-container,\n\t.artwork-wrapper[data-has-active-countdown] .artwork-container {\n\t\ttransform: scale(1.05, 1.05) translateZ(0) translate3d(0, 0, 0);\n\t\toutline: var(--pivot-tray-tile--focus-outline);\n\t\toutline-offset: var(--pivot-tray-tile--focus-outline-offset);\n\t\tbox-shadow: var(--pivot-tray-tile--focus-box-shadow);\n\t}\n\n\t.artwork-wrapper {\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t\toverflow: visible;\n\t\t/* Height determined by aspect-ratio in .artwork-container */\n\t}\n\n\t.artwork-container {\n\t\tposition: relative;\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\tborder-radius: var(--pivot-tray-tile-artwork--border-radius);\n\t\toverflow: hidden;\n\t\tbackground: var(--pivot-tray-tile--background);\n\t\tbox-shadow: var(--pivot-tray-tile--box-shadow);\n\t\taspect-ratio: 16 / 9;\n\t\ttransition: transform 0.3s ease-out;\n\t}\n\n\t.artwork {\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\tobject-fit: cover;\n\t\tdisplay: block;\n\t\tborder-radius: var(--pivot-tray-tile-artwork--border-radius);\n\t}\n\n\t.artwork-placeholder {\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\tbackground: rgba(128, 128, 128, 0.3);\n\t\tborder-radius: var(--pivot-tray-tile-artwork--border-radius);\n\t}\n\n\t.title {\n\t\tfont-size: var(--pivot-tray-tile-title--font-size);\n\t\tfont-weight: var(--pivot-tray-tile-title--font-weight);\n\t\tmargin-block: 0;\n\t\tmargin-inline: 0;\n\t\tline-height: 24px;\n\t\ttext-align: start;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tinline-size: 100%;\n\t}\n\n\t.subtitle {\n\t\tfont-size: var(--pivot-tray-tile-subtitle--font-size);\n\t\tmargin-block: 0;\n\t\tmargin-inline: 0;\n\t\tline-height: 1.2;\n\t\ttext-align: start;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tinline-size: 100%;\n\t}\n\n\t.metadata {\n\t\tpadding-block: var(--pivot-tray-tile-metadata--padding-block);\n\t\tpadding-inline: var(--pivot-tray-tile-metadata--padding-inline);\n\t\tdisplay: flex;\n\t\tcolor: var(--pivot-tray-tile-metadata--color);\n\t\tflex-direction: column;\n\t\tgap: 3px;\n\t\topacity: var(--pivot-tray-tile-metadata--opacity);\n\t\ttext-align: start;\n\t}\n\n\t.metadata:hover {\n\t\topacity: var(--pivot-tray-tile-metadata--opacity-hover);\n\t}\n\n\t.metadata__structured {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\tgap: 4px 4px;\n\t\tfont-size: var(--pivot-tray-tile-metadata--font-size);\n\t\tline-height: 18px;\n\t\tmax-block-size: 20px;\n\t\toverflow: hidden;\n\t}\n\n\t.metadata__rating-badge {\n\t\tblock-size: var(--pivot-tray-tile-metadata--rating-badge-block-size);\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t}\n\n\t.metadata__year,\n\t.metadata__genre {\n\t\tfont-size: var(--pivot-tray-tile-metadata--font-size);\n\t\tline-height: 18px;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\n\t.metadata__genre {\n\t\tflex: 1;\n\t\tmin-inline-size: 0;\n\t}\n\n\t.metadata__dot {\n\t\tfont-size: 16px;\n\t\tline-height: 18px;\n\t}\n\n\t.episode-title {\n\t\tfont-size: var(--pivot-tray-tile-metadata--font-size);\n\t\tline-height: 18px;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\tinline-size: 100%;\n\t}\n\n\t.badge {\n\t\tposition: absolute;\n\t\tinset-block-start: var(--pivot-tray-tile-badge--inset-block-start);\n\t\tinset-inline-start: var(--pivot-tray-tile-badge--inset-inline-start);\n\t\tbackground: var(--pivot-tray-tile-badge--background);\n\t\tpadding-block: var(--pivot-tray-tile-badge--padding-block);\n\t\tpadding-inline: var(--pivot-tray-tile-badge--padding-inline);\n\t\tborder-radius: var(--pivot-tray-tile-badge--border-radius);\n\t\tfont-size: var(--pivot-tray-tile-badge--font-size);\n\t\tfont-weight: var(--pivot-tray-tile-badge--font-weight);\n\t\ttext-transform: uppercase;\n\t}\n\n\t.play-overlay {\n\t\tposition: absolute;\n\t\tinset-block-start: 0;\n\t\tinline-size: 100%;\n\t\tblock-size: 100%;\n\t\taspect-ratio: 1;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tpointer-events: none;\n\t\tz-index: 2;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\topacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),\n\t\t\ttransform 0.3s ease-out;\n\t\twill-change: transform, opacity;\n\t}\n\n\t.play-overlay--visible {\n\t\topacity: 1;\n\t}\n\n\t.play-overlay__contrast-gradient {\n\t\tposition: absolute;\n\t\tinline-size: var(--pivot-tray-tile-play-overlay--contrast-gradient-size);\n\t\tblock-size: var(--pivot-tray-tile-play-overlay--contrast-gradient-size);\n\t\tborder-radius: 50%;\n\t\tbackground: radial-gradient(\n\t\t\t50% 50% at 50% 50%,\n\t\t\trgba(0, 0, 0, 0.8) 0%,\n\t\t\trgba(0, 0, 0, 0) 100%\n\t\t);\n\t}\n\n\t.play-overlay__icon-circle {\n\t\tposition: relative;\n\t\tinline-size: var(--pivot-tray-tile-play-overlay--icon-circle-size);\n\t\taspect-ratio: 1;\n\t\tbackground: white;\n\t\tborder-radius: 50%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tz-index: 1;\n\t}\n\n\t.play-overlay__play-icon {\n\t\tinline-size: var(--pivot-tray-tile-play-overlay--play-icon-size);\n\t\taspect-ratio: 1;\n\t\tbackground-color: black;\n\t\tmask-image: var(--pivot-tray-tile-play-overlay--icon-mask);\n\t\t-webkit-mask-image: var(--pivot-tray-tile-play-overlay--icon-mask);\n\t\tmask-repeat: no-repeat;\n\t\t-webkit-mask-repeat: no-repeat;\n\t\tmask-size: contain;\n\t\t-webkit-mask-size: contain;\n\t\tmask-position: center;\n\t\t-webkit-mask-position: center;\n\t}\n\n\t.play-overlay__progress-ring {\n\t\tposition: absolute;\n\t\tinline-size: var(--pivot-tray-tile-play-overlay--progress-ring-size);\n\t\taspect-ratio: 1;\n\t\tinset-block-start: 50%;\n\t\tinset-inline-start: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\tz-index: 0;\n\t\toverflow: visible;\n\t\ttransition: opacity 0.5s ease-out;\n\t\topacity: 0;\n\t}\n\n\t:host([dir="rtl"]) .play-overlay__progress-ring {\n\t\ttransform: translate(50%, -50%);\n\t}\n\n\t.play-overlay__progress-ring--active {\n\t\topacity: 1;\n\t}\n\n\t.play-overlay__progress-circle {\n\t\tanimation: countdown-ring linear forwards;\n\t\tanimation-play-state: running;\n\t\tstroke-width: var(--pivot-tray-tile-play-overlay--progress-stroke-width);\n\t\t/* animation-duration set inline via style attribute */\n\t}\n\n\t@keyframes countdown-ring {\n\t\tfrom {\n\t\t\tstroke-dashoffset: 0;\n\t\t}\n\t\tto {\n\t\t\tstroke-dashoffset: -163.36; /* 2 * π * 26, negative for clockwise */\n\t\t}\n\t}\n\n\t/* TODO: A11y - Add :focus-visible styles for .tile-container */\n\n\t/* Reduced motion support for users with vestibular disorders */\n\t@media (prefers-reduced-motion: reduce) {\n\t\t:host {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t:host(:hover) {\n\t\t\ttransform: none;\n\t\t}\n\n\t\t.play-overlay {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.play-overlay__progress-ring {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t.play-overlay__progress-circle {\n\t\t\tanimation: none;\n\t\t}\n\t}\n'),cP={"pivot-tray-tile--width":"223px","pivot-tray-tile--height":"auto","pivot-tray-tile--background":"#181818","pivot-tray-tile--border-radius":"8px","pivot-tray-tile--box-sha
2516dow":"0 2px 16px rgba(0,0,0,0.25)","pivot-tray-tile--cursor":"pointer","pivot-tray-tile--focus-outline":"5px solid #ffffff","pivot-tray-tile--focus-outline-offset":"3px","pivot-tray-tile--focus-box-shadow":"none","pivot-tray-tile-artwork--height":"137px","pivot-tray-tile-artwork--border-radius":"12px","pivot-tray-tile-metadata--padding-block":"10px 16px","pivot-tray-tile-metadata--padding-inline":"16px 0","pivot-tray-tile-metadata--font-size":"12px","pivot-tray-tile-metadata--color":"#ffffff","pivot-tray-tile-metadata--opacity":"0.6","pivot-tray-tile-metadata--opacity-hover":"1","pivot-tray-tile-title--font-size":"15px","pivot-tray-tile-title--font-weight":"700","pivot-tray-tile-title--color":"#ffffff","pivot-tray-tile-subtitle--font-size":"14px","pivot-tray-tile-subtitle--color":"#b3b3b3","pivot-tray-tile-metadata--rating-badge-block-size":"20px","pivot-tray-tile-badge--inset-block-start":"12px","pivot-tray-tile-badge--inset-inline-start":"12px","pivot-tray-tile-badge--background":"#ff0000","pivot-tray-tile-badge--color":"#ffffff","pivot-tray-tile-badge--padding-block":"4px","pivot-tray-tile-badge--padding-inline":"8px","pivot-tray-tile-badge--border-radius":"4px","pivot-tray-tile-badge--font-size":"12px","pivot-tray-tile-badge--font-weight":"bold","pivot-tray-tile-play-overlay--size":"92px","pivot-tray-tile-play-overlay--scale":"47%","pivot-tray-tile-play-overlay--icon-circle-size":"34.5px","pivot-tray-tile-play-overlay--play-icon-size":"15.675px","pivot-tray-tile-play-overlay--progress-ring-size":"44px","pivot-tray-tile-play-overlay--progress-color":"#33DDFF","pivot-tray-tile-play-overlay--progress-stroke-width":"3.5","pivot-tray-tile-play-overlay--icon-mask":`url("${Aw}")`,"pivot-tray-tile-play-overlay--contrast-gradient-size":"80px",responsive:{extraSmall:{"pivot-tray-tile--width":"140px","pivot-tray-tile-artwork--height":"79px","pivot-tray-tile-metadata--padding-block":"10px 12px","pivot-tray-tile-metadata--padding-inline":"12px 0","pivot-tray-tile-subtitle--font-size":"10px","pivot-tray-tile-play-overlay--scale":"55%","pivot-tray-tile-play-overlay--contrast-gradient-size":"66px"},medium:{"pivot-tray-tile--width":"160px","pivot-tray-tile-artwork--height":"90px","pivot-tray-tile-metadata--padding-block":"10px 12px","pivot-tray-tile-metadata--padding-inline":"12px 0","pivot-tray-tile-subtitle--font-size":"11px","pivot-tray-tile-play-overlay--scale":"55%","pivot-tray-tile-play-overlay--contrast-gradient-size":"66px"},medLarge:{"pivot-tray-tile--width":"200px","pivot-tray-tile-artwork--height":"113px","pivot-tray-tile-metadata--padding-block":"10px 12px","pivot-tray-tile-metadata--padding-inline":"12px 0","pivot-tray-tile-subtitle--font-size":"12px","pivot-tray-tile-play-overlay--scale":"50%","pivot-tray-tile-play-overlay--contrast-gradient-size":"66px"},gigantic:{"pivot-tray-tile-play-overlay--icon-circle-size":"42px","pivot-tray-tile-play-overlay--play-icon-size":"19px","pivot-tray-tile-play-overlay--progress-ring-size":"55px","pivot-tray-tile-play-overlay--progress-stroke-width":"4.3","pivot-tray-tile-play-overlay--contrast-gradient-size":"88px"}}};class dP{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}get tileData(){return this.host.tileData}}var uP=Object.defineProperty,pP=Object.getOwnPropertyDescriptor,hP=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?pP(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&uP(e,n,o),o};let mP=class extends pt{constructor(){super(),this.tileData={id:"",title:"",artworkUrl:""},this.index=0,this.item=null,this.showPlayOverlay=!1,this.countdownMs=25,this.countdownCancelled=!1,this.isCountdownActive=!1,this.animationKey=0,this.tabIndex=0,this.imageLoadError=!1,this.controller=new dP(this),this.handleClick=()=>{this.dispatchEvent(new CustomEvent(LL,{detail:{item:this.item,index:this.index},bubbles:!0,composed:!0}))},this.handleImageError=()=>{this.imageLoadError=!0},this.handleKeydown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleClick())};const{Controller:t}=n_(this);t&&(this.controller=new t(this))}updated(t){super.updated(t)}renderPlayOverlay(){const t=2*Math.PI*26,e=27.5,n=My({"play-overlay":!0,"play-overlay--visible":this.showPlayOverlay}),i=this.isCountdownActive&&!this.countdownCancelled,r=My({"play-overlay__progress-ring":!0,"play-overlay__progress-ring--active":i});return N_(this.animationKey,p.x`
2517				<div class=${n}>
2518					<div class="play-overlay__contrast-gradient"></div>
2519					<div class="play-overlay__icon-circle">
2520						<div class="play-overlay__play-icon"></div>
2521					</div>
2522					${i?p.x`
2523									<svg
2524										class=${r}
2525										viewBox="0 0 ${55} ${55}"
2526										xmlns="http://www.w3.org/2000/svg"
2527										aria-hidden="true"
2528									>
2529										<circle
2530											class="play-overlay__progress-circle"
2531											style="animation-duration: ${this.countdownMs}ms;"
2532											cx="${e}"
2533											cy="${e}"
2534											r="${26}"
2535											fill="none"
2536											stroke="#33DDFF"
2537											stroke-linecap="round"
2538											stroke-dasharray="${t}"
2539											transform="rotate(-90 ${e} ${e})"
2540										/>
2541									</svg>
2542								`:null}
2543				</div>
2544			`)}renderMetadata(){const{rating:t,year:e,genre:n,subtitle:i}=this.tileData;if(t||e||n){const i=[];t&&i.push(p.x`<img
2545						class="metadata__rating-badge"
2546						src=${t.imageUrl}
2547						alt=${t.altText}
2548					/>`),e&&i.push(p.x`<span class="metadata__year locale-metadata">${e}</span>`),n&&i.push(p.x`<span class="metadata__genre locale-metadata">${n}</span>`);const r=[];return i.forEach(((t,e)=>{e>1&&r.push(p.x`<span class="metadata__dot">•</span>`),r.push(t)})),p.x` <div class="metadata__structured">${r}</div> `}return i?p.x`<p class="subtitle locale-metadata">${i}</p>`:null}render(){const{title:t,episodeTitle:e,fullEpisodeTitle:n,artworkUrl:i,badge:r}=this.tileData,o=this.isCountdownActive&&0===this.index;return p.x`
2549			<div
2550				class="tile-container"
2551				role="button"
2552				aria-label="${this.dictionary?.translate(Xl.MEDIA.CONTROLS.PLAY,"Play")??"Play"} ${t}"
2553				@keydown=${this.handleKeydown}
2554				@click=${this.handleClick}
2555				tabindex=${this.tabIndex}
2556			>
2557				<div
2558					class="artwork-wrapper"
2559					?data-has-active-countdown=${o}
2560				>
2561					<div class="artwork-container">
2562						${r?p.x`<div class="badge">${r}</div>`:null}
2563						${i&&!this.imageLoadError?p.x`<img
2564										class="artwork"
2565										src=${i}
2566										alt=${t}
2567										@error=${this.handleImageError}
2568									/>`:p.x`<div class="artwork-placeholder"></div>`}
2569						${this.renderPlayOverlay()}
2570					</div>
2571				</div>
2572				<div class="metadata">
2573					<h3 class="title locale-body-headline">${t}</h3>
2574					<span class="episode-title locale-metadata"
2575						>${n||e}</span
2576					>
2577					${this.renderMetadata()}
2578				</div>
2579			</div>
2580		`}};mP.tokens=cP,mP.styles=[lP],hP([(0,p.n)({type:Object})],mP.prototype,"tileData",2),hP([(0,p.n)({type:Number})],mP.prototype,"index",2),hP([(0,p.n)({type:Object})],mP.prototype,"item",2),hP([(0,p.n)({type:Boolean})],mP.prototype,"showPlayOverlay",2),hP([(0,p.n)({type:Number})],mP.prototype,"countdownMs",2),hP([(0,p.n)({type:Boolean})],mP.prototype,"countdownCancelled",2),hP([(0,p.n)({type:Boolean})],mP.prototype,"isCountdownActive",2),hP([(0,p.n)({type:Number})],mP.prototype,"animationKey",2),hP([(0,p.n)({type:Number})],mP.prototype,"tabIndex",2),hP([b(".artwork-wrapper")],mP.prototype,"artworkWrapper",2),hP([v()],mP.prototype,"imageLoadError",2),mP=hP([p_],mP);var gP=Object.defineProperty,vP=Object.getOwnPropertyDescriptor,fP=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?vP(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&gP(e,n,o),o};"undefined"!=typeof window&&(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",iP),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",class extends eP{constructor(){super(),this.attachShadow({mode:"open"})}render(){const t=this.lazy||""===this.getAttribute("lazy")||"true"===this.getAttribute("lazy");if(nP(this.shadowRoot,"::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:10}::slotted(.swiper-slide-shadow){background:#00000026}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(270deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(90deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(0deg,#00000080,#0000)}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(180deg,#00000080,#0000)}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s linear infinite;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top:4px solid #0000;box-sizing:border-box;height:42px;left:50%;margin-left:-21px;margin-top:-21px;position:absolute;top:50%;transform-origin:50%;width:42px;z-index:10}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){backface-visibility:hidden;z-index:0}::slotted(.swiper-zoom-container){align-items:center;display:flex;height:100%;justify-content:center;text-align:center;width:100%}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-height:100%;max-width:100%;object-fit:contain}"),this.shadowRoot.appendChild(document.createElement("slot")),t){const t=document.createElement("div");t.classList.add("swiper-lazy-preloader"),t.part.add("preloader"),this.shadowRoot.appendChild(t)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}}));let bP=class extends pt{constructor(){super(),this.tiles=[],this.upNextItems=[],this.visible=!1,this.countdownMs=25e3,this.countdownCancelled=!1,this.autoplayEnabled=!1,this.isCountdownActive=!1,this.animationKey=0,this.hoveredTileIndex=null,this.currentSlideIndex=0,this.canScrollLeft=!1,this.canScrollRight=!1,this.tileCount=5,this.gapPct=2,this.peekAmount=.2,this.swiperContainer=null,this.swiperResizeObserver=null,this.viewportResizeObserver=null,this.controller=new sP(this),this.containerRef
2580=aE(),this.getTotalUnits=()=>this.tileCount+2*this.peekAmount,this.gapPixels=20,this.getOffset=()=>this.swiperContainer?this.swiperContainer.clientWidth/this.getTotalUnits()*this.peekAmount+this.gapPixels/2:0,this.emitLayoutUpdate=()=>{const t=this.getLayoutMetrics();this.style.setProperty("--nav-button-inset-block-start",`${t.artworkCenterFromTop}px`),this.dispatchEvent(new CustomEvent("layout-update",{detail:t,bubbles:!0,composed:!0}))},this.onViewportResize=()=>{const t=window.innerWidth,e=bP.getTileCountForWidth(t);e!==this.tileCount&&(this.tileCount=e,this.swiperContainer?.swiper&&(this.swiperContainer.swiper.params.slidesPerGroup=this.tileCount,this.swiperContainer.swiper.update()),this.emitLayoutUpdate(),this.controller.dispatchResizeEvent(this.currentSlideIndex,this.visibleTileCountForEvents))},this.updateContainerCSSVariables=t=>{this.containerRef?.value?.style.setProperty("--total-units",t),this.containerRef?.value?.style.setProperty("--gap-size",`${this.gapPct}%`),this.swiperContainer?.style.setProperty("--total-units",t),this.swiperContainer.style.setProperty("--gap-size",`${this.gapPct}%`)},this.onSwiperResize=()=>{if(this.swiperContainer?.swiper){const t=this.gapPixels,e=this.getOffset(),n=this.getTotalUnits();this.updateContainerCSSVariables(n.toString()),this.swiperContainer.swiper.params.spaceBetween=t,this.swiperContainer.swiper.params.slidesOffsetBefore=e,this.swiperContainer.swiper.params.slidesOffsetAfter=e,this.swiperContainer.swiper.params.slidesPerGroup=this.tileCount,this.swiperContainer.swiper.update(),this.emitLayoutUpdate()}},this.initSwiper=()=>{if(!this.swiperContainer&&(this.swiperContainer=this.shadowRoot?.querySelector("swiper-container"),this.swiperContainer)){const t=window.innerWidth;this.tileCount=bP.getTileCountForWidth(t);const e=this.getTotalUnits();this.updateContainerCSSVariables(e.toString());const n=this.gapPixels,i=this.getOffset(),r={slidesPerView:"auto",spaceBetween:n,slidesPerGroup:this.tileCount,slidesOffsetBefore:i,slidesOffsetAfter:i,speed:500};Object.assign(this.swiperContainer,r),this.swiperContainer.initialize(),this.swiperContainer.addEventListener("swiperslidechange",this.handleSwiperSlideChange),this.swiperContainer.addEventListener("swiperreachbeginning",this.handleSwiperReachBeginning),this.swiperContainer.addEventListener("swiperreachend",this.handleSwiperReachEnd),this.swiperContainer.addEventListener("swiperfromend",this.handleSwiperFromEnd),this.viewportResizeObserver=new ResizeObserver(this.onViewportResize),this.viewportResizeObserver.observe(document.body),this.swiperResizeObserver=new ResizeObserver(this.onSwiperResize),this.swiperResizeObserver.observe(this.swiperContainer),requestAnimationFrame((()=>{this.updateNavigationState(),this.emitLayoutUpdate(),this.controller.dispatchOpenEvent(this.currentSlideIndex,this.visibleTileCountForEvents)}))}this.swiperContainer?.swiper&&this.swiperContainer.swiper.slideTo(0,0)},this.handleSwiperSlideChange=()=>{this.updateNavigationState(),this.swiperContainer?.swiper&&(this.currentSlideIndex=this.swiperContainer.swiper.activeIndex,this.controller.dispatchScrollEvent(this.currentSlideIndex,this.visibleTileCountForEvents))},this.handleSwiperReachBeginning=()=>{this.canScrollLeft=!1},this.handleSwiperReachEnd=()=>{this.canScrollRight=!1},this.handleSwiperFromEnd=()=>{this.canScrollRight=!0},this.updateNavigationState=()=>{if(this.swiperContainer?.swiper){const{swiper:t}=this.swiperContainer;this.canScrollLeft=!t.isBeginning,this.canScrollRight=!t.isEnd}},this.handleCarouselNavLeft=()=>{this.swiperContainer?.swiper&&this.swiperContainer.swiper.slidePrev()},this.handleCarouselNavRight=()=>{this.swiperContainer?.swiper&&this.swiperContainer.swiper.slideNext()},this.handleKeyDown=(t,e)=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())},this.handleCarouselNavLeftKeyDown=t=>{this.handleKeyDown(t,this.handleCarouselNavLeft)},this.handleCarouselNavRightKeyDown=t=>{this.handleKeyDown(t,this.handleCarouselNavRight)},this.handleTileHover=t=>{this.dispatchEvent(new CustomEvent("tile-hover",{detail:{tileIndex:t},bubbles:!0,composed:!0}))},this.handleTileMouseLeave=()=>{this.dispatchEvent(new CustomEvent("tile-mouseleave",{bubbles:!0,composed:!0}))};const{Controller:t}=n_(this);t&&(this.controller=new t(this))}disconnectedCallback(){super.disconnectedCallback(),this.viewportResizeObserver&&(this.viewportResizeObserver.disconnect(),this.viewportResizeObserver=null),this.swiperResizeObserver&&(this.swiperResizeObserver.disconnect(),this.swiperResizeObserver=null),this.swiperContainer&&(this.swiperContainer.removeEventListener("swiperslidechange",this.handleSwiperSlideChange),this.swiperContainer.removeEventListener("swiperreachbeginning",this.handleSwiperReachBeginning),this.swiperContainer.removeEventListener("swiperreachend",this.handleSwiperReachEnd),this.swiperContainer.removeEventListener("swiperfromend",this.handleSwiperFromEnd),this.swiperContainer=null)}updated(t){super.updated(t),t.has("visible")&&this.visible&&(this.currentSlideIndex=0,requestAnimationFrame((()=>{this.initSwiper()})))}getLayoutMetrics(){const t=this.getOffset(),e=(this.swiperContainer?.clientWidth??0)/this.getTotalUnits()-this.gapPixels;return{offset:t,tileWidth:e,artworkCenterFromTop:10+e*(9/16)/2}}getCurrentSlideIndex(){return this.currentSlideIndex}get visibleTileCountForEvents(){const t=Math.max(0,this.upNextItems.length-this.currentSlideIndex);return Math.min(this.tileCount+1,t)}static getTileCountForWidth(t){return t>=1400?5:t>=1024?4:t>=768?3:2}render(){const t=My({"carousel-nav":!0,"carousel-nav--left":!0,"carousel-nav--visible":this.visible&&this.canScrollLeft}),e=My({"carousel-nav":!0,"carousel-nav--right":!0,"carousel-nav--visible":this.visible&&this.canScrollRight});return p.x`
2581			<div
2582				${cE(this.containerRef)}
2583				class="carousel-container"
2584				role="region"
2585				aria-label="${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_UP_NEXT_CONTENT,"Up next content")}"
2586			>
2587				<button
2588					class=${t}
2589					@click=${this.handleCarouselNavLeft}
2590					@keydown=${this.handleCarouselNavLeftKeyDown}
2591					aria-label="${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_VIEW_PREVIOUS,"View previous recommendations")}"
2592				>
2593					<div class="carousel-nav__icon"></div>
2594				</button>
2595				<button
2596					class=${e}
2597					@click=${this.handleCarouselNavRight}
2598					@keydown=${this.handleCarouselNavRightKeyDown}
2599					aria-label="${this.dictionary?.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_VIEW_NEXT,"View next recommendations")}"
2600				>
2601					<div class="carousel-nav__icon"></div>
2602				</button>
2603				<swiper-container
2604					class="tiles-swiper"
2605					init="false"
2606					dir=${this.textDirection??W}
2607				>
2608					${this.tiles.map(((t,e)=>{const n=this.currentSlideIndex,i=this.currentSlideIndex+this.tileCount-1,r=e<n||e>i,o=this.isCountdownActive&&0===e&&null===this.hoveredTileIndex||e===this.hoveredTileIndex;return p.x`
2609							<swiper-slide>
2610								<pivot-tray-tile
2611									.tileData=${t}
2612									.index=${e}
2613									.item=${this.upNextItems[e]?.item}
2614									.showPlayOverlay=${o}
2615									.countdownMs=${this.countdownMs}
2616									.countdownCancelled=${this.countdownCancelled}
2617									.isCountdownActive=${this.isCountdownActive}
2618									.animationKey=${this.animationKey}
2619									.tabIndex=${r?-1:0}
2620									?data-unfocused=${r}
2621									@mouseenter=${()=>this.handleTileHover(e)}
2622									@focus=${()=>this.handleTileHover(e)}
2623									@mouseleave=${this.handleTileMouseLeave}
2624								></pivot-tray-tile>
2625							</swiper-slide>
2626						`}))}
2627				</swiper-container>
2628			</div>
2629		`}};bP.tokens=oP,bP.styles=[rP],fP([(0,p.n)({type:Array})],bP.prototype,"tiles",2),fP([(0,p.n)({type:Array})],bP.prototype,"upNextItems",2),fP([(0,p.n)({type:Boolean,reflect:!0})],bP.prototype,"visible",2),fP([(0,p.n)({type:Number})],bP.prototype,"countdownMs",2),fP([(0,p.n)({type:Boolean})],bP.prototype,"countdownCancelled",2),fP([(0,p.n)({type:Boolean})],bP.prototype,"autoplayEnabled",2),fP([(0,p.n)({type:Boolean})],bP.prototype,"isCountdownActive",2),fP([(0,p.n)({type:Number})],bP.prototype,"animationKey",2),fP([(0,p.n)({type:Number})],bP.prototype,"hoveredTileIndex",2),fP([v()],bP.prototype,"currentSlideIndex",2),fP([v()],bP.prototype,"canScrollLeft",2),fP([v()],bP.prototype,"canScrollRight",2),fP([v()],bP.prototype,"tileCount",2),fP([v()],bP.prototype,"gapPct",2),fP([v()],bP.prototype,"peekAmount",2),bP=fP([p_],bP);var _P=Object.defineProperty,EP=Object.getOwnPropertyDescriptor,yP=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?EP(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&_P(e,n,o),o};const SP={pivotTrayIsOpen:!1,isUiLegacyControlsOverlayVisible:!1,autoplayEnabled:!1,countdownMs:25e3,resetCountdown:!0,upNextItems:[],pivotTrayCtaVisible:!1},TP=t=>{const{continuousPlay:e,isUiLegacyControlsOverlayVisible:n,playbackCriteria:i}=t,r=e?.pivotTray,o=i?.current?.metadata?.upNextData??[];return{pivotTrayIsOpen:r?.isOpen??!1,resetCountdown:r?.resetCountdown??!0,pivotTrayCtaVisible:r?.ctaVisible??!1,isUiLegacyControlsOverlayVisible:n??!1,autoplayEnabled:r?.autoplayEnabled??!1,countdownMs:r?.countdownMs??25e3,upNextItems:o}};let CP=class extends pt{constructor(){super(),this.hoverCooldownMs=500,this.closingAnimationMs=300,this.carouselLayoutOffset=0,this.carouselArtworkCenterTop=122.5,this.streamController=new G_(this,TP,SP),this.handleCarouselLayoutUpdate=t=>{const{offset:e,artworkCenterFromTop:n}=t.detail;this.carouselLayoutOffset=e,this.carouselArtworkCenterTop=60+n},this.controller=new kL(this);const{Controller:t}=n_(this);t&&(this.controller=new t(this)),this.addEventListener("timeout-complete",(()=>{this.controller.onTimeoutComplete()}))}updated(t){super.updated(t),this.controller?.handleUpdate(),t.has("controller")&&this.controller?.handleClosingStateChange(this.controller.isClosing)}resolveImage(t){return this.controller.resolveImage(t)}render(){const{pivotTrayIsOpen:t,isClosing:e,countdownCancelled:n,countdownRemaining:i,isCountdownActive:r,countdownTextVisible:o,shouldShowCtaButton:a,hoveredTileIndex:s,animationKey:l}=this.controller?.state??{},{countdownMs:c,upNextItems:d,autoplayEnabled:u}=this.controller;if(!d?.length)return null;const h=this.controller.transformUpNextItemsToTiles(d),m=My({"tiles-container":!0,"tiles-container--visible":t,"tiles-container--closing":e}),g=My({"close-button":!0}),v=My({"countdown-text":!0,"locale-body-headline-large":!0,"countdown-text--visible":o&&t&&!e,"countdown-text--closing":e&&!t}),f=My({"cta-button-container":!0,"cta-button-container--visible":a}),b=My({"pivot-tray-overlay":!0,"pivot-tray-overlay--visible":t}),_=`\n\t\t\t--countdown-text-left: ${this.carouselLayoutOffset}px;\n\t\t\t--artwork-center-top: ${this.carouselArtworkCenterTop}px;\n\t\t\t--close-button-right: ${this.carouselLayoutOffset}px;\n\t\t`,E={pattern:/\$?\{secondsRemaining\}/,replacement:`${i}`},y=n||0===i?this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_UP_NEXT_TEXT,"Up Next"):this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_AUTOPLAY_COUNTDOWN_TEXT,"Up Next in {secondsRemaining} Seconds",E);return p.x`
2630			<div
2631				class=${b}
2632				role="dialog"
2633				aria-modal="true"
2634				aria-label=${this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_UP_NEXT_TEXT,"Up Next")}
2635			>
2636				<div
2637					class=${m}
2638					style=${_}
2639					@tile-click=${this.controller?.handleTileClick.bind(this.controller)}
2640				>
2641					<div class="carousel-header">
2642						<div
2643							class=${v}
2644							aria-live="polite"
2645							aria-atomic="true"
2646						>
2647							${y}
2648						</div>
2649						${Q_(t,(()=>Hy({onClick:this.controller?.closeTray.bind(this.controller),ariaLabel:this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_CLOSE,"Close"),className:g,content:p.x`
2650										<div class="close-button__icon"></div>
2651										<span class="close-button__text locale-text-button-focused"
2652											>${this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_CLOSE,"Close")}</span
2653										>
2654									`,doesTemplateHandleKeyEvents:!0})),(()=>null))}
2655					</div>
2656					<pivot-tray-carousel
2657						.tiles=${h}
2658						.upNextItems=${d}
2659						?visible=${t}
2660						.countdownMs=${c}
2661						.countdownCancelled=${n}
2662						.autoplayEnabled=${u}
2663						.isCountdownActive=${r}
2664						.animationKey=${l}
2665						.hoveredTileIndex=${s}
2666						@layout-update=${this.handleCarouselLayoutUpdate}
2667						@tile-hover=${this.controller?.handleTileHover.bind(this.controller)}
2668						@tile-mouseleave=${this.controller?.handleTileMouseLeave.bind(this.controller)}
2669					></pivot-tray-carousel>
2670				</div>
2671				<!-- CTA button outside tray, fades in when closed -->
2672				<div class=${f}>
2673					${Hy({onClick:this.controller?.openTray.bind(this.controller),ariaLabel:this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_MORE_FOR_YOU,"More For You"),className:"cta-button locale-body-headline-large",content:p.x`${this.dictionary.translate(Xl.MEDIA.OVERLAYS.PIVOT_TRAY_MORE_FOR_YOU,"More For You")}`,doesTemplateHandleKeyEvents:!0})}
2674				</div>
2675			</div>
2676		`}};CP.tokens=xL,CP.styles=[RL],yP([(0,p.n)({type:Number})],CP.prototype,"hoverCooldownMs",2),yP([(0,p.n)({type:Number})],CP.prototype,"closingAnimationMs",2),yP([v()],CP.prototype,"carouselLayoutOffset",2),yP([v()],CP.prototype,"carouselArtworkCenterTop",2),CP=yP([a_,p_,L_({target:t=>t.shadowRoot?.querySelector(".pivot-tray-overlay--visible"),watch:t=>t.shadowRoot?.querySelector(".pivot-tray-overlay"),scope:t=>t.container})],CP);const wP=p.i`
2677	.affiliate-logo__container {
2678		display: var(--container--display);
2679		position: var(--container--position);
2680		cursor: var(--container--cursor);
2681		top: var(--container--top);
2682		right: var(--container--right);
2683		width: var(--container--width);
2684		height: var(--container--height);
2685		background-size: var(--container--background-size);
2686		background-repeat: var(--container--background-repeat);
2687		background-color: var(--container--background-color);
2688		text-decoration: var(--container--text-decoration);
2689		pointer-events: var(--container--pointer-events);
2690	}
2691
2692	.affiliate-logo__visually-hidden {
2693		display: var(--visually-hidden--display, none);
2694	}
2695
2696	span.affiliate-logo__container {
2697		cursor: default;
2698	}
2699`;Object.getOwnPropertyDescriptor;const AP={src:void 0,target:void 0,alt:void 0,href:void 0},IP=t=>{const{metadata:e}=t?.playbackCriteria?.current||{},n=e?e.affiliateLogo:void 0;return{src:n?.src,target:n?.target,alt:n?.alt,href:n?.href}};let OP=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,IP,AP)}render(){const{src:t,target:e,alt:n,href:i}=this.streamController.value,r=$y({backgroundImage:`url(${t})`}),o=this.dictionary?.translate(Xl.MEDIA.PLAYER.AFFILIATE_LOGO_LABEL,"Affiliate Logo");return Q_(t,(()=>p.x`
2700				${Q_(i,(()=>p.x`
2701						<a
2702							class="affiliate-logo__container"
2703							href=${i}
2704							target=${e}
2705							style=${r}
2706							aria-label=${o}
2707						>
2708							<span class="affiliate-logo__visually-hidden">${n}</span>
2709						</a>
2710					`),(()=>p.x`
2711						<span
2712							class="affiliate-logo__container"
2713							style=${r}
2714							aria-label=${o}
2715							role="img"
2716						>
2717							<span class="affiliate-logo__visually-hidden">${n}</span>
2718						</span>
2719					`))}
2720			`),(()=>p.E))}};
2720OP.tokens={"container--display":"block","container--position":"absolute","container--cursor":"pointer","container--top":"3%","container--right":"1%","container--width":"15%","container--height":"8%","container--background-size":"contain","container--background-repeat":"no-repeat","container--background-color":"transparent","container--text-decoration":"none","container--pointer-events":"auto","visually-hidden--display":"none",responsive:{}},OP.styles=wP,OP=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o})([p_,L_({target:t=>t.shadowRoot.querySelector("a.affiliate-logo__container"),scope:t=>t?.container})],OP);class RP{constructor(t,e){this.formatDuration=Tc(),(this.host=t).addController(this),this.streamController=e.streamController,this.format=e.format||this.format}hostConnected(){}hostDisconnected(){}setFormat(t){this.format=t,this.host.requestUpdate()}get visible(){return!this.streamController.value.notready}get formattedTime(){const{playheadPositionMs:t}=this.streamController.value;return Number.isNaN(t)?this.formatDuration(0,this.format||Ic(0)):this.formatDuration(t,this.format||Ic(t))}get state(){return{visible:this.visible,formattedTime:this.formattedTime}}}Object.getOwnPropertyDescriptor;const xP={notready:!0,playheadPositionMs:NaN},LP=t=>{const{playback:e,timeline:n}=t,{notready:i}=e||{},{playheadPositionMs:r}=n?.timeline||{};return{notready:i??!0,playheadPositionMs:r??NaN}};let kP=class extends pt{constructor(){super(),this.streamController=new G_(this,LP,xP),this.controller=new RP(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}render(){const{visible:t,formattedTime:e}=this.controller?.state||{};return t?p.x`<div class="current-time-indicator">${e}</div>`:null}};kP.tokens={"font-size":"12px","font-family":"sans-serif","text-color":"#FFFFFF",padding:"unset",responsive:{}},kP.styles=[p.i`
2721			:host {
2722				font-size: var(--font-size);
2723				font-family: var(--font-family);
2724				color: var(--text-color);
2725				padding: var(--padding);
2726			}
2727		`],kP=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2727)([p_],kP);const PP=p.i`
2728	.text-to-speech-status {
2729		width: 0;
2730		height: 0;
2731		overflow: hidden;
2732		font-size: 0;
2733	}
2734`;var DP=Object.defineProperty,NP=Object.getOwnPropertyDescriptor,MP=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?NP(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&DP(e,n,o),o};const UP={currentAssetType:void 0},BP=t=>{const{interstitials:e}=t;return{currentAssetType:e?.currentSession?.currentAsset?.type??void 0}};let VP=class extends pt{constructor(){super(...arguments),this.promoProcessed=!1,this.adProcessed=!1,this.bumperProcessed=!1,this.lastProcessed=[],this.computedStatus="",this.interstitialTypeProperty=[[tc.PROMO,"promoProcessed"],[tc.AD,"adProcessed"],[tc.BUMPER,"bumperProcessed"]],this.streamController=new G_(this,BP,UP),this.previousAssetType=void 0}connectedCallback(){super.connectedCallback(),this.unsubscribeFromLocalState=this.localState?.subscribe(this,(t=>t.textToSpeech.status))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromLocalState?.()}update(t){super.update(t),this.handleInterstitialChanges()}handleInterstitialChanges(){const{currentAssetType:t}=this.streamController.value,e=t;if(e&&e!==this.previousAssetType){const[t,n]=this.getActionDetails(e),i=`${t}-started`;t&&!this[n]&&(this.lastProcessed=this.lastProcessed.concat(t),this.processTextToSpeechUpdate(i,n,!0))}if(null==e&&this.previousAssetType&&this.lastProcessed.length>0){const[t="",e=""]=this.getActionDetails(this.lastProcessed[0]),n=`${t}-ended`;e&&(this.lastProcessed=this.lastProcessed.filter((e=>e!==t)),this.processTextToSpeechUpdate(n,e,!1))}this.previousAssetType=e}processTextToSpeechUpdate(t,e,n){const i=wf(this.dictionary,t)(void 0);this[e]=n,this.computedStatus=i,this.localState?.updateTextToSpeech(i)}getActionDetails(t){return this.interstitialTypeProperty.find((([e])=>e===t))}render(){const t=this.computedStatus||this.localState?.textToSpeech?.status||"";return p.x`
2735			<p class="text-to-speech-status" aria-live="polite" aria-atomic="true">
2736				<span>${t}</span>
2737			</p>
2738		`}};VP.styles=PP,MP([v()],VP.prototype,"promoProcessed",2),MP([v()],VP.prototype,"adProcessed",2),MP([v()],VP.prototype,"bumperProcessed",2),MP([v()],VP.prototype,"lastProcessed",2),MP([v()],VP.prototype,"computedStatus",2),MP([(0,p.n)()],VP.prototype,"interstitialTypeProperty",2),VP=MP([Y],VP),VP.define("text-to-speech");const FP={"program-headline":function(){let t,e=!1,n="";return{reset(){t=void 0,e=!1,n=""},sync(i){const{playbackId:r,programDecoration:o}=i,a=o?.headline?.trim();return r!==t&&(t=r,e=!1,n=""),a&&!e&&(e=!0,n=a),n}}}};class zP{#t=null;#e=null;constructor(t,e){(this.host=t).addController(this),this.streamController=e.streamController}hostConnected(){}hostDisconnected(){}syncLiveMessage(t){const e=this.streamController.value;return"string"==typeof(n=t)&&""!==n&&Object.prototype.hasOwnProperty.call(FP,n)?(t!==this.#e&&(this.#t?.reset(),this.#t=FP[t](),this.#e=t),this.#t.sync(e)):(this.#t?.reset(),this.#t=null,this.#e=null,"");var n}}const $P=p.i`
2739	:host {
2740		display: block;
2741		position: fixed;
2742		inset: 0;
2743		pointer-events: none;
2744		z-index: var(--aria-announcement-overlay-z-index, 2147483646);
2745		contain: layout style;
2746	}
2747
2748	.sr-only {
2749		position: absolute;
2750		width: 1px;
2751		height: 1px;
2752		padding: 0;
2753		margin: -1px;
2754		overflow: hidden;
2755		clip: rect(0, 0, 0, 0);
2756		white-space: nowrap;
2757		border: 0;
2758	}
2759`;var HP=Object.defineProperty,GP=Object.getOwnPropertyDescriptor,YP=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?GP(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&HP(e,n,o),o};const jP={playbackId:void 0,programDecoration:void 0},KP=t=>{const{playbackId:e,playbackCriteria:n}=t??{},{metadata:i}=n?.current??{};return{playbackId:e??void 0,programDecoration:i?.programDecoration}};let WP=class extends pt{constructor(){super(...arguments),this.announce="",this.streamController=new G_(this,KP,jP),this.controller=new zP(this,{streamController:this.streamController}),this.liveMessage=""}updated(t){super.updated(t),this.liveMessage=this.controller.syncLiveMessage(this.announce)}render(){return p.x`
2760			<div class="sr-only" aria-live="polite" aria-atomic="true">
2761				${this.liveMessage}
2762			</div>
2763		`}};WP.styles=[$P],YP([(0,p.n)({type:String})],WP.prototype,"announce",2),YP([v()],WP.prototype,"liveMessage",2),WP=YP([p_],WP);class qP{constructor(t,e){this.formatDuration=Tc(),(this.host=t).addController(this),this.streamController=e.streamController,this.format=e.format||this.format}hostConnected(){}hostDisconnected(){}setFormat(t){this.format=t,this.host.requestUpdate()}get visible(){const{notready:t,seekableEndMs:e,programDurationMs:n,playheadPositionMs:i,startPositionMs:r,isLinear:o,hasEnd:a}=this.streamController.value;if(Number.isNaN(i)||Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(r))return!1;const s=e-(r+n);return!t&&!(o?!a&&s>0:s>0&&n-(i-r)<=0)}get formattedTime(){const{playheadPositionMs:t,programDurationMs:e,startPositionMs:n}=this.streamController.value;if(Number.isNaN(t)||Number.isNaN(e)||Number.isNaN(n))return this.formatDuration(0,this.format||Ic(0));const i=e-(t-n);return this.formatDuration(i,this.getResolvedTimeFormatForRemaining(i))}get timeFormatKind(){const{playheadPositionMs:t,programDurationMs:e,startPositionMs:n}=this.streamController.value;if(Number.isNaN(t)||Number.isNaN(e)||Number.isNaN(n))return qP.resolvedFormatToKind(this.format||Ic(0));const i=e-(t-n),r=this.getResolvedTimeFormatForRemaining(i);return qP.resolvedFormatToKind(r)}getResolvedTimeFormatForRemaining(t){return this.format||Ic(t)}static resolvedFormatToKind(t){return"m:ss"===t||"mm:ss"===t?"ms":"hms"}get state(){return{visible:this.visible,formattedTime:this.formattedTime,timeFormatKind:this.timeFormatKind}}}Object.getOwnPropertyDescriptor;const XP={notready:!0,playheadPositionMs:NaN,programDurationMs:NaN,seekableEndMs:NaN,startPositionMs:NaN,isLinear:!1,hasEnd:!1},ZP=t=>{const{playback:e,timeline:n,streamDetails:i,playbackSession:r}=t,{notready:o}=e||{},{playheadPositionMs:a,programDurationMs:s,seekableEndMs:l,startPositionMs:c}=n?.timeline||{},{isLinear:d}=i||{},{currentProgram:u}=r||{};return{notready:o??!0,playheadPositionMs:a??NaN,programDurationMs:s??NaN,seekableEndMs:l??NaN,startPositionMs:c??NaN,isLinear:d??!1,hasEnd:u?.hasEnd??!1}};let QP=class extends pt{constructor(){super(),this.streamController=new G_(this,ZP,XP),this.controller=new qP(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}render(){const{visible:t,formattedTime:e,timeFormatKind:n}=this.controller?.state||{};return t?p.x`<div
2764					class="time-remaining-indicator locale-body-copy"
2765					data-time-format=${n??"ms"}
2766				>
2767					${e}
2768				</div>`:null}};QP.tokens={"font-size":"12px","font-family":"sans-serif","text-color":"#FFFFFF","margin-left":"10px",responsive:{}},QP.styles=[p.i`
2769			:host {
2770				display: flex;
2771				align-items: flex-end;
2772				justify-content: flex-end;
2773				flex: 0 0 auto;
2774				box-sizing: border-box;
2775				font-size: var(--font-size);
2776				font-family: var(--font-family);
2777				color: var(--text-color);
2778				position: var(--time-remaining-indicator--position);
2779				bottom: var(--time-remaining-indicator--bottom);
2780				margin-left: var(--time-remaining-indicator--margin-left);
2781			}
2782
2783			:host([dir="rtl"]),
2784			:host(:lang(th)) {
2785				font-family: inherit;
2786			}
2787
2788			.time-remaining-indicator {
2789				box-sizing: border-box;
2790				font-variant-numeric: tabular-nums;
2791				text-align: end;
2792				min-width: 4ch;
2793			}
2794
2795			.time-remaining-indicator[data-time-format="hms"] {
2796				min-width: 6ch;
2797			}
2798		`],QP=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2798)([p_],QP);class JP{constructor(t,e){this.formatDuration=Tc(),(this.host=t).addController(this),this.streamController=e.streamController,this.format=e.format||this.format}hostConnected(){}hostDisconnected(){}setFormat(t){this.format=t,this.host.requestUpdate()}get visible(){return!this.streamController.value.notready}get formattedTime(){const{programDurationMs:t}=this.streamController.value;return Number.isNaN(t)?this.formatDuration(0,this.format||Ic(0)):this.formatDuration(t,this.format||Ic(t))}get state(){return{visible:this.visible,formattedTime:this.formattedTime}}}Object.getOwnPropertyDescriptor;const tD={notready:!0,programDurationMs:NaN},eD=t=>{const{playback:e,timeline:n}=t,{notready:i}=e||{},{programDurationMs:r}=n?.timeline||{};return{notready:i??!0,programDurationMs:r??NaN}};let nD=class extends pt{constructor(){super(),this.streamController=new G_(this,eD,tD),this.controller=new JP(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}render(){const{visible:t,formattedTime:e}=this.controller?.state||{};return t?p.x`<div class="total-duration">${e}</div>`:null}};nD.tokens={"font-size":"12px","font-family":"sans-serif","text-color":"#FFFFFF",padding:"unset",responsive:{}},nD.styles=[p.i`
2799			:host {
2800				font-size: var(--font-size);
2801				font-family: var(--font-family);
2802				color: var(--text-color);
2803				padding: var(--padding);
2804			}
2805		`],nD=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2805)([p_],nD);class iD{constructor(t,e){this.formatDuration=Tc(),(this.host=t).addController(this),this.streamController=e.streamController}hostConnected(){}hostDisconnected(){}get programDecoration(){return this.streamController.value.programDecoration}get isVOD(){return this.streamController.value.isVOD}get timeRemaining(){const{playheadPositionMs:t,programDurationMs:e,startPositionMs:n}=this.streamController.value;if(Number.isNaN(t)||Number.isNaN(e)||Number.isNaN(n))return this.formatDuration(0,"m");const i=e-(t-n);return this.formatDuration(i,"m")}}const rD=p.i`
2806	.program-decoration {
2807		color: var(--text--color);
2808	}
2809
2810	.program-decoration__title {
2811		font-size: var(--title--font--size);
2812		color: var(--title--color);
2813		font-weight: var(--font--weight);
2814		padding-bottom: var(--title--padding--bottom);
2815	}
2816
2817	.program-decoration__rating {
2818		font-size: var(--rating--font--size);
2819		font-weight: var(--font--weight);
2820		padding-bottom: var(--rating--padding--bottom);
2821	}
2822
2823	.program-decoration__logo {
2824		object-fit: var(--logo--object--fit);
2825		object-position: var(--logo--object--position);
2826	}
2827
2828	.program-decoration__divider {
2829		height: var(--divider--height);
2830		width: var(--divider--width);
2831		border: var(--divider--border);
2832		background-color: var(--divider--background--color);
2833		margin: var(--divider--margin) 0;
2834	}
2835
2836	.program-decoration__description {
2837		max-height: var(--description--max-height);
2838		overflow: hidden;
2839	}
2840`;Object.getOwnPropertyDescriptor;const oD={programDecoration:void 0,isVOD:!1,playheadPositionMs:NaN,programDurationMs:NaN,startPositionMs:NaN},aD=t=>{const{playbackCriteria:e,streamDetails:n,timeline:i}=t,{current:r}=e??{},{metadata:o}=r??{},a=o?.programDecoration,{isVOD:s}=n||{},{playheadPositionMs:l,programDurationMs:c,startPositionMs:d}=i?.timeline||{};return{programDecoration:a,isVOD:s??!1,playheadPositionMs:l??NaN,programDurationMs:c??NaN,startPositionMs:d??NaN}};let sD=class extends pt{constructor(){super(),this.streamController=new G_(this,aD,oD),this.controller=new iD(this,{streamController:this.streamController});const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}render(){const{programDecoration:t,timeRemaining:e,isVOD:n}=this.controller,{logo:i,title:r,airDate:o,rating:a,description:s}=t||{};return p.x`
2841			<div class="program-decoration">
2842				${Q_(i,(()=>p.x`
2843						${Dy({src:i,ariaLabel:"Brand Logo",altText:"Brand Logo",height:63,width:114,className:"program-decoration__logo"})}
2844						<hr class="program-decoration__divider" />
2845					`),(()=>p.E))}
2846				${Q_(r,(()=>p.x`<div class="program-decoration__title">${r}</div>`),(()=>p.E))}
2847				${Q_(o||a,(()=>p.x`
2848						<div class="program-decoration__rating">
2849							${Q_(n&&o,(()=>p.x`<span>${o} | </span>`),(()=>p.E))}
2850							${a} | ${e}
2851						</div>
2852					`),(()=>p.E))}
2853				${Q_(s,(()=>p.x`<div class="program-decoration__description">
2854							${s}
2855						</div>`),(()=>p.E))}
2856			</div>
2857		`}};sD.tokens={"title--font--size":"20px","title--color":"#FFFFFF","title--padding--bottom":"8px","rating--font--size":"14px","rating--padding--bottom":"16px","text--color":"#B5B7B7","font--weight":"500","logo--object--fit":"contain","logo--object--position":"bottom","divider--height":"1px","divider--width":"164px","divider--border":"0","divider--background--color":"#5A5C5D","divider--margin":"16px","description--max-height":"auto",responsive:{}},sD.tokenPrefix="program-decoration",sD.styles=rD,sD=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
2857)([p_],sD);class lD{constructor(t,e){this._isVisible=!1,this._showPlayIcon=!1,this._triggerKey=0,this.lastTriggerTime=0,this.#n=null,this.#i=!1,(this.host=t).addController(this),this.streamController=e.streamController}#n;#i;hostConnected(){this.#n=this.host.localState?.onPlayPauseIndicatorRequest?.((t=>{this.trigger(t)}))??null}hostDisconnected(){this.#n?.(),this.#n=null,this.host.clearTimeout()}setHostPinned(t){this.#i=t,t&&this.host.clearTimeout(),this.host.requestUpdate()}onFocusIn(){this.setHostPinned(!0)}onFocusOut(){this.#i&&(this.setHostPinned(!1),this.forceHide())}dispatchTogglePlayback(){const{showPlay:t,noSeek:e,playheadPositionMs:n}=this.streamController.value;if(e)return;const{commandBus:i,localState:r}=this.host;t?i?.dispatchCommand(Ql.PLAY,{ref:e_.TOGGLE_PLAY_PAUSE_PLAY,playheadPosition:n,label:"Toggle play",localState:r}):i?.dispatchCommand(Ql.PAUSE,{ref:e_.TOGGLE_PLAY_PAUSE_PAUSE,playheadPosition:n,label:"Toggle pause",localState:r})}getAccessibleButtonLabel(){const{showPlay:t}=this.streamController.value,e=t?{key:Xl.MEDIA.PLAYER.PLAY_VIDEO,fallback:"Play video"}:{key:Xl.MEDIA.PLAYER.PAUSE_VIDEO,fallback:"Pause video"};return this.host.dictionary?.translate(e.key,e.fallback)??e.fallback}get hostPinned(){return this.#i}forceHide(){this._isVisible=!1,this.host.requestUpdate()}onHideTimeoutComplete(){this.#i||(this._isVisible=!1,this.host.requestUpdate())}getNextShowPlayIcon(){const{isPaused:t}=this.streamController.value,e=Date.now(),n=e-this.lastTriggerTime;return this.lastTriggerTime=e,n<500&&this._isVisible?!this._showPlayIcon:!t}trigger(t){const{hasStarted:e}=this.streamController.value;e&&(this._showPlayIcon=void 0!==t?t:this.getNextShowPlayIcon(),this.showIndicator())}showIndicator(){this._isVisible=!0,this._triggerKey+=1,this.host.requestUpdate(),this.#i||this.host.startTimeout(620)}get isVisible(){return this._isVisible}get showPlayIcon(){return this._showPlayIcon}get triggerKey(){return this._triggerKey}get state(){return{isVisible:this.isVisible,showPlayIcon:this.showPlayIcon,triggerKey:this.triggerKey}}}const cD=p.i`
2858	:host {
2859		display: flex;
2860		align-items: center;
2861		justify-content: center;
2862		pointer-events: auto;
2863	}
2864
2865	.button-container {
2866		display: flex;
2867		align-items: center;
2868		justify-content: center;
2869		margin: 0;
2870		padding: 0;
2871		min-inline-size: var(--button-size);
2872		min-block-size: var(--button-size);
2873		border: none;
2874		background: transparent;
2875		cursor: pointer;
2876		border-radius: 50%;
2877		color: inherit;
2878		font: inherit;
2879	}
2880
2881	.button-container:focus-visible {
2882		outline: 2px solid var(--focus-ring-color, #fff);
2883		outline-offset: 2px;
2884	}
2885
2886	.indicator {
2887		display: flex;
2888		align-items: center;
2889		justify-content: center;
2890		width: var(--button-size);
2891		height: var(--button-size);
2892		border-radius: 50%;
2893		background-color: var(--background-color);
2894		opacity: 0;
2895		animation: fadeInOut
2896			calc(
2897				var(--fade-in-duration) + var(--fade-out-delay) +
2898					var(--fade-out-duration)
2899			)
2900			var(--easing-function) forwards;
2901	}
2902
2903	.indicator--pinned {
2904		opacity: 1;
2905		animation: none;
2906	}
2907
2908	.indicator::before {
2909		content: "";
2910		display: block;
2911		width: var(--icon-size);
2912		height: var(--icon-size);
2913		background-color: white;
2914		mask-repeat: no-repeat;
2915		mask-position: center;
2916		mask-size: contain;
2917		-webkit-mask-repeat: no-repeat;
2918		-webkit-mask-position: center;
2919		-webkit-mask-size: contain;
2920	}
2921
2922	.indicator.play::before {
2923		mask-image: var(--play-icon);
2924		-webkit-mask-image: var(--play-icon);
2925	}
2926
2927	.indicator.pause::before {
2928		mask-image: var(--pause-icon);
2929		-webkit-mask-image: var(--pause-icon);
2930	}
2931
2932	@keyframes fadeInOut {
2933		0% {
2934			opacity: 0;
2935		}
2936		16.13% {
2937			opacity: 1;
2938		}
2939		19.35% {
2940			opacity: 1;
2941		}
2942		100% {
2943			opacity: 0;
2944		}
2945	}
2946`,dD={"play-icon":`url("${Aw}")`,"pause-icon":`url("${Iw}")`,"icon-size":"32px","button-size":"64px","background-color":"rgba(0, 0, 0, 0.5)","fade-in-duration":"100ms","fade-out-duration":"500ms","fade-out-delay":"20ms","easing-function":"cubic-bezier(0, 0, 0.58, 1)",responsive:{}};var uD=Object.defineProperty,pD=Object.getOwnPropertyDescriptor,hD=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?pD(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&uD(e,n,o),o};const mD={isPaused:!1,hasStarted:!1,showPlay:!1,noSeek:!1,playheadPositionMs:void 0,hasPlaybackContext:!1},gD=t=>{const{playback:e,streamDetails:n,playbackId:i,timeline:r}=t??{},{noSeek:o}=n??{},{isPaused:a,hasStarted:s,previousState:l,seeking:c,ended:d}=e??{},u=!!d||!!a||!(l!==rc||!c),p=r?.timeline?.playheadPositionMs;return{isPaused:a??!1,hasStarted:s??!1,showPlay:u,noSeek:!!o,playheadPositionMs:p,hasPlaybackContext:null!=i||null!=e}};let vD=class extends pt{constructor(){super(),this.streamController=new G_(this,gD,mD),this.controller=new lD(this,{streamController:this.streamController}),this.focusFromPointer=!1,this.handlePointerDown=()=>{this.focusFromPointer=!0},this.handleFocusIn=t=>{const e=t.currentTarget;this.focusFromPointer?this.focusFromPointer=!1:e.matches(":focus-visible")&&this.controller.onFocusIn()},this.handleFocusOut=()=>{this.focusFromPointer=!1,this.controller.onFocusOut()},this.handleClick=()=>{const{showPlay:t}=this.streamController.value;this.controller.setHostPinned(!1),this.controller.dispatchTogglePlayback(),this.controller.trigger(t),this.buttonContainer?.blur()};const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}updateVisibility(){this.controller.onHideTimeoutComplete()}disconnectedCallback(){super.disconnectedCallback()}updated(t){super.updated(t)}trigger(){this.controller.trigger()}focus(){this.moveFocusTo(this.buttonContainer,{focusVisible:!0})}primaryAction(){this.togglePlaybackAndFlash()}handleKeyPress(){this.togglePlaybackAndFlash()}togglePlaybackAndFlash(){const{showPlay:t}=this.streamController.value;this.controller.dispatchTogglePlayback(),this.controller.hostPinned||this.controller.trigger(t)}renderIndicatorBody(){const{isVisible:t,showPlayIcon:e,triggerKey:n}=this.controller?.state||{},{showPlay:i}=this.streamController.value;return this.controller.hostPinned?p.x`<div
2947				class=${My({indicator:!0,"indicator--pinned":!0,play:i,pause:!i})}
2948			></div>`:t?N_(n,p.x`<div
2949				class=${My({indicator:!0,play:e,pause:!e})}
2950			></div>`):p.E}render(){return this.streamController.value.hasPlaybackContext?p.x`
2951			<button
2952				type="button"
2953				class="button-container"
2954				aria-label=${this.controller.getAccessibleButtonLabel()}
2955				@pointerdown=${this.handlePointerDown}
2956				@click=${this.handleClick}
2957				@focusin=${this.handleFocusIn}
2958				@focusout=${this.handleFocusOut}
2959			>
2960				${this.renderIndicatorBody()}
2961			</button>
2962		`:p.E}};vD.tokens=dD,vD.styles=[cD],hD([b(".button-container")],vD.prototype,"buttonContainer",2),hD([Vy(".button-container")],vD.prototype,"disconnectedCallback",1),hD([By(".button-container")],vD.prototype,"updated",1),vD=hD([p_,a_],vD);const fD=36e5,bD=864e5;class _D{constructor(t,e){(this.host=t).addController(this),this.streamController=e.streamController}hostConnected(){}hostDisconnected(){}get timestamp(){const{airDate:t}=this.streamController.value;if(t)return function(t){const e=t instanceof Date?t:new Date(t),n=new Date,i=n.getTime()-e.getTime();if(i<6e4)return{text:"Just Now"};if(i<fD){const t=Math.floor(i/6e4);return{text:`${t} ${1===t?"minute":"minutes"} ago`}}if(i<bD){const t=Math.floor(i/fD);return{text:`${t} ${1===t?"hour":"hours"} ago`}}if(i<1728e5){const t=Math.floor(i/bD);return{text:`${t} ${1===t?"day":"days"} ago`}}const r=n.getFullYear(),o=e.getFullYear(),a=e.toLocaleDateString("en-US",{month:"short"}),s=e.getDate();return o<r?{text:`${a} ${s}, ${o}`}:{text:`${a} ${s}`}}(t)}get headline(){return this.streamController.value.headline}get description(){return this.streamController.value.description}get location(){return this.streamController.value.location}get isDescriptionPrimary(){return!this.headline&&!!this.description}get isVisible(){const{airDate:t,headline:e,description:n}=this.streamController.value;return!!(t||e||n)}isExpandable(t){return!(!this.headline||!this.description)||!(!this.headline&&!this.description)&&t}}const ED=p.i`
2963	.expandable-metadata {
2964		display: var(--container--display, flex);
2965		flex-direction: var(--container--flex-direction, column);
2966		flex: var(--container--flex, 1);
2967		min-width: var(--container--min-width, 0);
2968		overflow: var(--container--overflow, hidden);
2969		font-family: var(--font-family, inherit);
2970		pointer-events: auto;
2971		cursor: pointer;
2972		position: relative;
2973	}
2974
2975	.expandable-metadata--static {
2976		cursor: default;
2977	}
2978
2979	.expandable-metadata:focus {
2980		outline: none;
2981	}
2982
2983	.expandable-metadata:focus-visible {
2984		outline: 2px solid var(--focus-ring-color, #fff);
2985		outline-offset: 2px;
2986		border-radius: 3px;
2987	}
2988
2989	.expandable-metadata__content {
2990		display: flex;
2991		flex-direction: column;
2992		gap: var(--container--gap);
2993	}
2994
2995	.expandable-metadata__scroll-wrapper {
2996		position: relative;
2997		display: flex;
2998		max-height: var(--description--expanded-max-height, 50vh);
2999		min-height: 0;
3000	}
3001
3002	.expandable-metadata__content--expanded {
3003		max-height: var(--description--expanded-max-height, 50vh);
3004		overflow-y: scroll;
3005		scrollbar-width: none;
3006		-ms-overflow-style: none;
3007		cursor: grab;
3008		user-select: none;
3009		flex: 1;
3010		min-width: 0;
3011	}
3012
3013	.expandable-metadata__content--expanded::-webkit-scrollbar {
3014		display: none;
3015	}
3016
3017	.expandable-metadata__scrollbar-track {
3018		flex-shrink: 0;
3019		width: 2px;
3020		position: relative;
3021		background: transparent;
3022		cursor: pointer;
3023		opacity: 0;
3024		transition: opacity 0.2s ease-out;
3025	}
3026
3027	.expandable-metadata__scrollbar-track--show {
3028		opacity: 1;
3029	}
3030
3031	.expandable-metadata__scrollbar-track[hidden] {
3032		display: none;
3033	}
3034
3035	.expandable-metadata__scrollbar-thumb {
3036		position: absolute;
3037		right: 0;
3038		width: 2px;
3039		background: #d9d9d9;
3040		border-radius: 2px;
3041		pointer-events: auto;
3042		cursor: grab;
3043		min-height: 20px;
3044	}
3045
3046	.expandable-metadata__scrollbar-thumb:active {
3047		cursor: grabbing;
3048	}
3049
3050	.expandable-metadata__content--dragging {
3051		cursor: grabbing;
3052	}
3053
3054	.expandable-metadata__content--fade-top {
3055		mask-image: linear-gradient(
3056			to bottom,
3057			transparent 0%,
3058			black var(--description--scroll-gradient-height, 32px),
3059			black 100%
3060		);
3061		-webkit-mask-image: linear-gradient(
3062			to bottom,
3063			transparent 0%,
3064			black var(--description--scroll-gradient-height, 32px),
3065			black 100%
3066		);
3067	}
3068
3069	.expandable-metadata__content--fade-bottom {
3070		mask-image: linear-gradient(
3071			to bottom,
3072			black 0%,
3073			black calc(100% - var(--description--scroll-gradient-height, 32px)),
3074			transparent 100%
3075		);
3076		-webkit-mask-image: linear-gradient(
3077			to bottom,
3078			black 0%,
3079			black calc(100% - var(--description--scroll-gradient-height, 32px)),
3080			transparent 100%
3081		);
3082	}
3083
3084	.expandable-metadata__content--fade-top.expandable-metadata__content--fade-bottom {
3085		mask-image: linear-gradient(
3086			to bottom,
3087			transparent 0%,
3088			black var(--description--scroll-gradient-height, 32px),
3089			black calc(100% - var(--description--scroll-gradient-height, 32px)),
3090			transparent 100%
3091		);
3092		-webkit-mask-image: linear-gradient(
3093			to bottom,
3094			transparent 0%,
3095			black var(--description--scroll-gradient-height, 32px),
3096			black calc(100% - var(--description--scroll-gradient-height, 32px)),
3097			transparent 100%
3098		);
3099	}
3100
3101	.expandable-metadata__timestamp-container {
3102		position: relative;
3103		height: var(--timestamp--line-height, 14px);
3104		overflow: hidden;
3105		padding-bottom: 4px;
3106		box-sizing: content-box;
3107	}
3108
3109	.expandable-metadata__location,
3110	.expandable-metadata__timestamp {
3111		font-size: var(--timestamp--font-size);
3112		font-weight: var(--timestamp--font-weight);
3113		line-height: var(--timestamp--line-height);
3114		letter-spacing: var(--timestamp--letter-spacing);
3115		color: var(--timestamp--color);
3116	}
3117
3118	.expandable-metadata__location {
3119		color: var(--location--color, var(--timestamp--color));
3120	}
3121
3122	.expandable-metadata__timestamp-container .expandable-metadata__location,
3123	.expandable-metadata__timestamp-container .expandable-metadata__timestamp {
3124		position: absolute;
3125		left: 0;
3126		top: 0;
3127		width: 100%;
3128		opacity: 1;
3129		transition: opacity var(--timestamp--transition-duration, 300ms) ease-in-out;
3130	}
3131
3132	.expandable-metadata__timestamp-container
3133		.expandable-metadata__timestamp--hidden,
3134	.expandable-metadata__timestamp-container
3135		.expandable-metadata__location--hidden {
3136		opacity: 0;
3137	}
3138
3139	.expandable-metadata__headline {
3140		margin: 0;
3141		font-size: var(--headline--font-size, var(--description--font-size));
3142		font-weight: var(--headline--font-weight, var(--description--font-weight));
3143		line-height: var(--headline--line-height, var(--description--line-height));
3144		letter-spacing: var(
3145			--headline--letter-spacing,
3146			var(--description--letter-spacing)
3147		);
3148		color: var(--headline--color, var(--description--color));
3149		display: -webkit-box;
3150		-webkit-line-clamp: var(--headline--line-clamp, 2);
3151		-webkit-box-orient: vertical;
3152		overflow: hidden;
3153		text-overflow: ellipsis;
3154	}
3155
3156	.expandable-metadata__headline--expanded {
3157		display: block;
3158		-webkit-line-clamp: unset;
3159		overflow: visible;
3160	}
3161
3162	.expandable-metadata__headline-affordance {
3163		white-space: nowrap;
3164	}
3165
3166	.expandable-metadata__description {
3167		font-size: var(--description--font-size);
3168		font-weight: var(--description--font-weight);
3169		line-height: var(--description--line-height);
3170		letter-spacing: var(--description--letter-spacing);
3171		color: var(--description--color);
3172		margin-top: var(--description--margin-top, 4px);
3173	}
3174
3175	.expandable-metadata__description--primary {
3176		margin-top: 0;
3177	}
3178
3179	.expandable-metadata__description--collapsed {
3180		display: -webkit-box;
3181		-webkit-line-clamp: var(--headline--line-clamp, 2);
3182		-webkit-box-orient: vertical;
3183		overflow: hidden;
3184		text-overflow: ellipsis;
3185	}
3186`;var yD=Object.defineProperty,SD=Object.getOwnPropertyDescriptor,TD=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?SD(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&yD(e,n,o),o};const CD={airDate:void 0,location:void 0,headline:void 0,description:void 0},wD=t=>{const{playbackCriteria:e}=t??{},{current:n}=e||{},{metadata:i}=n??{},r=i?.programDecoration;return{airDate:r?.airDate,headline:r?.headline,description:r?.description,location:r?.location}};let AD=class extends pt{constructor(){super(),this.streamController=new G_(this,wD,CD),this.isExpanded=!1,this.isScrolledTop=!1,this.isScrolledBottom=!0,this.isDragging=!1,this.showLocation=!1,this.isThumbDragging=!1,this.hasScrollbar=!1,this.showScrollbar=!1,this.isPrimaryTextTruncated=!1,this.dragStartY=0,this.dragStartScrollTop=0,this.thumbDragStartY=0,this.thumbDragStartScrollTop=0,this.ignoreNextClick=!1,this.switchCount=0,this.swapTimerId=null,this.controller=new _D(this,{streamController:this.streamController}),this.handleResize=t=>{if(this.isExpanded)return;const{container:e}=t.detail||{};e&&e!==this.container||this.updatePrimaryTextTruncation()},this.handleToggleMetadata=t=>{t.stopPropagation(),this.isExpandable&&(this.ignoreNextClick?this.ignoreNextClick=!1:(this.isExpanded=!this.isExpanded,this.resetScrollState(),this.isExpanded?(this.stopSwapTimer(),requestAnimationFrame((()=>{const t=this.expandableMetadataContentEl;if(t){const{scrollHeight:e,clientHeight:n}=t;this.isScrolledBottom=e>n,this.hasScrollbar=e>n,this.syncScrollbarThumb(t)}}))):this.resetSwapTimer(),this.dispatchExpandedChange()))},this.handleDescriptionScroll=t=>{const e=t.target,{scrollTop:n,scrollHeight:i,clientHeight:r}=e;this.isScrolledTop=n>0,this.isScrolledBottom=n+r<i-1,this.hasScrollbar=i>r,this.revealScrollbarTemporarily(),this.syncScrollbarThumb(e)}
3186,this.handleTrackClick=t=>{t.stopPropagation();const e=this.expandableMetadataContentEl,n=this.scrollbarTrackEl;if(!e||!n)return;this.revealScrollbarTemporarily();const{scrollHeight:i}=e,r=n.getBoundingClientRect(),o=t.clientY-r.top;e.scrollTop=o/r.height*i},this.handleThumbMouseDown=t=>{t.stopPropagation(),t.preventDefault();const e=this.expandableMetadataContentEl;e&&(this.ignoreNextClick=!0,this.revealScrollbarTemporarily(),this.isThumbDragging=!0,this.thumbDragStartY=t.clientY,this.thumbDragStartScrollTop=e.scrollTop,document.addEventListener("mousemove",this.handleThumbDragMove),document.addEventListener("mouseup",this.handleThumbDragEnd))},this.handleThumbDragMove=t=>{if(!this.isThumbDragging)return;const e=this.expandableMetadataContentEl,n=this.scrollbarTrackEl;if(!e||!n)return;const i=n.getBoundingClientRect(),r=(t.clientY-this.thumbDragStartY)/i.height*e.scrollHeight;e.scrollTop=this.thumbDragStartScrollTop+r,this.thumbDragStartY=t.clientY,this.thumbDragStartScrollTop=e.scrollTop,t.preventDefault()},this.handleThumbDragEnd=()=>{this.isThumbDragging=!1,document.removeEventListener("mousemove",this.handleThumbDragMove),document.removeEventListener("mouseup",this.handleThumbDragEnd)},this.handleMouseDown=t=>{if(!this.isExpanded)return;const e=this.expandableMetadataContentEl;e&&(this.isDragging=!0,this.dragStartY=t.pageY,this.dragStartScrollTop=e.scrollTop,t.preventDefault())},this.handleMouseMove=t=>{if(!this.isDragging)return;const e=this.expandableMetadataContentEl;if(!e)return;const n=t.pageY-this.dragStartY;Math.abs(n)>3&&(this.ignoreNextClick=!0),e.scrollTop=this.dragStartScrollTop-n,t.preventDefault()},this.handleDragEnd=()=>{this.isDragging=!1};const{Controller:t}=n_(this);t&&(this.controller=new t(this,{streamController:this.streamController}))}connectedCallback(){super.connectedCallback(),p.S.addEventListener(Ct,this.handleResize)}disconnectedCallback(){p.S.removeEventListener(Ct,this.handleResize),super.disconnectedCallback(),this.stopSwapTimer()}updated(t){super.updated(t),!this.isExpandable&&this.isExpanded&&this.collapse(),this.isExpanded||this.updatePrimaryTextTruncation()}firstUpdated(){this.startSwapTimer(),this.updatePrimaryTextTruncation()}get isExpandable(){return this.controller.isExpandable(this.isPrimaryTextTruncated)}updatePrimaryTextTruncation(){requestAnimationFrame((()=>{const{primaryTextEl:t}=this;this.isPrimaryTextTruncated=!!t&&t.scrollHeight>t.clientHeight}))}startSwapTimer(){const{location:t}=this.controller;if(!t||this.isExpanded)return;const e=this.switchCount<AD.INITIAL_SWAP_COUNT?AD.INITIAL_SWAP_DELAY:AD.SUBSEQUENT_SWAP_DELAY;this.swapTimerId=setTimeout((()=>{this.showLocation=!this.showLocation,this.switchCount++,this.startSwapTimer()}),e)}stopSwapTimer(){this.swapTimerId&&(clearTimeout(this.swapTimerId),this.swapTimerId=null)}resetSwapTimer(){this.stopSwapTimer(),this.showLocation=!1,this.switchCount=0,this.startSwapTimer()}dispatchExpandedChange(){this.commandBus?.dispatchCommand(Ql.EXPANDABLE_METADATA_CHANGE,{isExpanded:this.isExpanded,localState:this.localState})}updateVisibility(){this.showScrollbar=!1}resetScrollState(){this.isScrolledTop=!1,this.isScrolledBottom=!0,this.hasScrollbar=!1,this.showScrollbar=!1,this.ignoreNextClick=!1,this.clearTimeout()}revealScrollbarTemporarily(){this.hasScrollbar&&(this.showScrollbar=!0,this.clearTimeout(),this.startTimeout(AD.SCROLLBAR_HIDE_DELAY_MS))}collapse(){this.isExpanded&&(this.isExpanded=!1,this.resetScrollState(),this.resetSwapTimer(),this.dispatchExpandedChange())}handleKeyPress(t){this.isExpandable&&("Escape"!==t.key?this.handleToggleMetadata(t):this.isExpanded&&this.collapse())}syncScrollbarThumb(t){const e=this.scrollbarThumbEl;if(!e)return;const{scrollTop:n,scrollHeight:i,clientHeight:r}=t;if(i<=r)return;const o=r,a=Math.max(o*o/i,20),s=n/i*o;e.style.height=`${a}px`,e.style.top=`${s}px`}renderTimestampSection(){const{timestamp:t,location:e}=this.controller;if(!t)return p.E;const n=Boolean(e)&&!this.isExpanded,i={"expandable-metadata__timestamp":!0,"expandable-metadata__timestamp--hidden":n&&this.showLocation},r={"expandable-metadata__location":!0,"expandable-metadata__location--hidden":n&&!this.showLocation};return n?p.x`
3187				<div class="expandable-metadata__timestamp-container">
3188					<div class=${My(i)}>${t.text}</div>
3189					<div class=${My(r)}>${e}</div>
3190				</div>
3191			`:e&&this.isExpanded?p.x`
3192				<div class="expandable-metadata__location">${e}</div>
3193				<div class=${My(i)}>${t.text}</div>
3194			`:p.x`
3195			<div class=${My(i)}>${t.text}</div>
3196		`}renderScrollbar(){return this.isExpanded?p.x`
3197			<div
3198				class=${My({"expandable-metadata__scrollbar-track":!0,"expandable-metadata__scrollbar-track--show":this.showScrollbar})}
3199				?hidden=${!this.hasScrollbar}
3200				@click=${this.handleTrackClick}
3201				@mousedown=${t=>t.stopPropagation()}
3202			>
3203				<div
3204					class="expandable-metadata__scrollbar-thumb"
3205					@mousedown=${this.handleThumbMouseDown}
3206					@click=${t=>t.stopPropagation()}
3207				></div>
3208			</div>
3209		`:p.E}renderTextContent(){const{headline:t,description:e,isDescriptionPrimary:n}=this.controller,i={"expandable-metadata__headline":!0,"expandable-metadata__headline--expanded":this.isExpanded,"expandable-metadata__primary-text":!!t&&!this.isExpanded},r=!!t&&!!e&&!this.isExpanded,o={"expandable-metadata__description":!0,"expandable-metadata__description--primary":n,"expandable-metadata__description--collapsed":n&&!this.isExpanded,"expandable-metadata__primary-text":n&&!this.isExpanded};return p.x`
3210			${Q_(t,(()=>p.x`<h2 class=${My(i)}>
3211						${t}${r?p.x`<span
3212										class="expandable-metadata__headline-affordance"
3213										aria-hidden="true"
3214										>…</span
3215									>`:p.E}
3216					</h2>`),(()=>p.E))}
3217			${Q_(e&&(n||this.isExpanded),(()=>p.x`<div class=${My(o)}>${e}</div>`),(()=>p.E))}
3218		`}render(){const{isVisible:t}=this.controller;if(!t)return p.E;const e=this.isExpandable,n={"expandable-metadata__content":!0,"expandable-metadata__content--expanded":this.isExpanded,"expandable-metadata__content--dragging":this.isDragging,"expandable-metadata__content--fade-top":this.isScrolledTop&&this.isExpanded,"expandable-metadata__content--fade-bottom":this.isScrolledBottom&&this.isExpanded},i={"expandable-metadata":!0,"expandable-metadata--static":!e},r=p.x`
3219			<div
3220				class=${My(n)}
3221				@scroll=${this.handleDescriptionScroll}
3222				@mousedown=${this.handleMouseDown}
3223				@mousemove=${this.handleMouseMove}
3224				@mouseup=${this.handleDragEnd}
3225				@mouseleave=${this.handleDragEnd}
3226			>
3227				${this.renderTimestampSection()} ${this.renderTextContent()}
3228			</div>
3229		`;return p.x`
3230			<div
3231				class=${My(i)}
3232				tabindex=${e?"0":p.E}
3233				role=${e?"button":p.E}
3234				aria-expanded=${e?this.isExpanded:p.E}
3235				aria-label=${e?this.dictionary?.translate(Xl.MEDIA.CONTROLS.EXPANDABLE_METADATA_VIDEO_DESCRIPTION,"Video Description"):p.E}
3236				@click=${e?this.handleToggleMetadata:p.E}
3237			>
3238				${this.isExpanded?p.x`
3239								<div class="expandable-metadata__scroll-wrapper">
3240									${r} ${this.renderScrollbar()}
3241								</div>
3242							`:r}
3243			</div>
3244		`}};AD.tokens={"font-family":"inherit","container--display":"flex","container--flex-direction":"column","container--gap":"8px","container--flex":"1","container--min-width":"0","container--overflow":"hidden","timestamp--font-size":"14px","timestamp--font-weight":"500","timestamp--line-height":"14px","timestamp--letter-spacing":"-0.28px","timestamp--color":"rgba(255, 255, 255, 0.75)","timestamp--transition-duration":"300ms","location--color":"rgba(255, 255, 255, 0.75)","headline--font-size":"16px","headline--font-weight":"400","headline--line-height":"22px","headline--letter-spacing":"-0.32px","headline--color":"white","headline--line-clamp":"2","description--font-size":"16px","description--font-weight":"400","description--line-height":"22px","description--letter-spacing":"-0.32px","description--color":"white","description--margin-top":"4px","description--expanded-max-height":"calc(var(--player-height, 100vh) * 0.5)","description--scroll-gradient-height":"24px","description--scroll-gradient-color":"rgba(0, 0, 0, 0.25)",responsive:{}},AD.styles=[ED],AD.INITIAL_SWAP_DELAY=3e3,AD.SUBSEQUENT_SWAP_DELAY=5e3,AD.INITIAL_SWAP_COUNT=4,AD.SCROLLBAR_HIDE_DELAY_MS=1200,TD([v()],AD.prototype,"isExpanded",2),TD([v()],AD.prototype,"isScrolledTop",2),TD([v()],AD.prototype,"isScrolledBottom",2),TD([v()],AD.prototype,"isDragging",2),TD([v()],AD.prototype,"showLocation",2),TD([v()],AD.prototype,"isThumbDragging",2),TD([v()],AD.prototype,"hasScrollbar",2),TD([v()],AD.prototype,"showScrollbar",2),TD([v()],AD.prototype,"isPrimaryTextTruncated",2),TD([b(".expandable-metadata__content")],AD.prototype,"expandableMetadataContentEl",2),TD([b(".expandable-metadata__scrollbar-thumb")],AD.prototype,"scrollbarThumbEl",2),TD([b(".expandable-metadata__scrollbar-track")],AD.prototype,"scrollbarTrackEl",2),TD([b(".expandable-metadata__primary-text")],AD.prototype,"primaryTextEl",2),TD([Vy(".expandable-metadata")],AD.prototype,"disconnectedCallback",1),TD([By(".expandable-metadata",["Enter","Escape"])],AD.prototype,"updated",1),AD=TD([p_,a_],AD);const ID=({disabled:t,onChange:e,checked:n,readonly:i,required:r,
3244id:o})=>{function a(t){const e=t.querySelector("input.switch__input");e?.click()}return p.x`
3245		<div
3246			class="switch__root${n?" checked":""}"
3247			@click=${function(t){const e=t.target;e?.closest?.("input.switch__input")||a(t.currentTarget)}}
3248			@keydown=${function(t){"Enter"===t.key&&(t.preventDefault(),a(t.target))}}
3249			@keyup=${function(t){" "===t.key&&(t.preventDefault(),a(t.target))}}
3250			tabindex="0"
3251		>
3252			<span class="switch__track">
3253				<span class="switch__thumb"></span>
3254			</span>
3255			<input
3256				tabindex="-1"
3257				class="switch__input"
3258				role="switch"
3259				type="checkbox"
3260				aria-checked=${n}
3261				.checked=${n}
3262				?disabled=${t}
3263				@change=${e}
3264				?readonly=${i}
3265				?required=${r}
3266				id=${o}
3267			/>
3268		</div>
3269	`},OD=Wb("\n  :host .autoplay-toggle__item {\n    display: var(--display);\n    justify-content: var(--justify-content);\n    padding-block: var(--padding-block);\n    padding-inline: var(--padding-inline);\n    user-select: var(--user-select);\n    border: var(--border);\n    border-top-width: var(--border-top-width);\n\t\tborder-bottom-width: var(--border-bottom-width);\n  }\n\n  :host .autoplay-toggle__item:hover {\n    background-color: var(--hover--background-color);\n  }\n"),RD={"switch__root--switch-color":"#4c4e5a","switch__root--box-sizing":"border-box","switch__root--display":"inline-flex","switch__root--position":"relative","switch__root--align-items":"center","switch__root--border-radius":"16px","switch__root--cursor":"pointer","switch__root--gap":"0.5rem","switch__root-checked--switch-color":"#0072d2","switch__track--display":"flex","switch__track--position":"relative","switch__track--transition":"background-color cubic-bezier(0.4, 0, 0.2, 1) 120ms","switch__track--border-radius":"16px","switch__track--block-size":"16px","switch__track--inline-size":"42px","switch__track--background-color":"var(--switch__root--switch-color)","switch__track--border":"none","switch__track-checked--border":"var(--switch__track--border)","switch__thumb--display":"block","switch__thumb--position":"relative","switch__thumb--inset-block-start":"-3px","switch__thumb--inset-inline-start":"0px","switch__thumb--transition-duration":"0.12s","switch__thumb--transition-property":"transform","switch__thumb--transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","switch__thumb--border-radius":"16px","switch__thumb--background-color":"#cacaca","switch__thumb--inline-size":"22px","switch__thumb--block-size":"22px","switch__thumb--will-change":"transform","switch__thumb-checked--background-color":"#FFFFFF","switch__thumb-checked--inline-offset":"22px","switch__input--cursor":"inherit","switch__input--position":"absolute","switch__input--inset":"0px","switch__input--opacity":"0","switch__input--z-index":"1","switch__input--margin":"0px",responsive:{}},xD={display:"flex","justify-content":"space-between","padding-block":"12px","padding-inline":"16px","user-select":"none","hover--background-color":"#31343E",border:"0px solid white","border-top-width":"0","border-bottom-width":"0",...RD,responsive:{}},LD=Wb('\n  /* Switch component styles */\n  .switch__root {\n    --switch-color: var(--switch__root--switch-color);\n    box-sizing: var(--switch__root--box-sizing);\n    display: var(--switch__root--display);\n    position: var(--switch__root--position);\n    align-items: var(--switch__root--align-items);\n    border-radius: var(--switch__root--border-radius);\n    cursor: var(--switch__root--cursor);\n    gap: var(--switch__root--gap);\n  }\n\n  .switch__root.checked {\n    --switch__track--background-color: var(--switch__root-checked--switch-color);\n  }\n\n  .switch__track {\n    display: var(--switch__track--display);\n    position: var(--switch__track--position);\n    transition: var(--switch__track--transition);\n    border-radius: var(--switch__track--border-radius);\n    block-size: var(--switch__track--block-size);\n    inline-size: var(--switch__track--inline-size);\n    background-color: var(--switch__track--background-color);\n    border: var(--switch__track--border);\n  }\n\n  .switch__thumb {\n    display: var(--switch__thumb--display);\n    position: var(--switch__thumb--position);\n    inset-block-start: var(--switch__thumb--inset-block-start);\n    inset-inline-start: var(--switch__thumb--inset-inline-start);\n    transition-duration: var(--switch__thumb--transition-duration);\n    transition-property: var(--switch__thumb--transition-property);\n    transition-timing-function: var(--switch__thumb--transition-timing-function);\n    border-radius: var(--switch__thumb--border-radius);\n    background-color: var(--switch__thumb--background-color);\n    inline-size: var(--switch__thumb--inline-size);\n    block-size: var(--switch__thumb--block-size);\n    will-change: var(--switch__thumb--will-change);\n  }\n\n  .switch__root.checked .switch__thumb {\n  \tbackground-color: var(--switch__thumb-checked--background-color, var(--switch__thumb--background-color));\n    transform: translateX(var(--switch__thumb-checked--inline-offset));\n  }\n\n  :host([dir="rtl"]) .switch__root.checked .switch__thumb {\n    transform: translateX(calc(-1 * var(--switch__thumb-checked--inline-offset)));\n  }\n\n  .switch__root.checked .switch__track {\n    border: var(--switch__track-checked--border);\n  }\n\n  .switch__input {\n    cursor: var(--switch__input--cursor);\n    position: var(--switch__input--position);\n    inset: var(--switch__input--inset);\n    opacity: var(--switch__input--opacity);\n    z-index: var(--switch__input--z-index);\n    margin: var(--switch__input--margin);\n  }\n');var kD=Object.defineProperty,PD=Object.getOwnPropertyDescriptor,DD=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?PD(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&kD(e,n,o),o};const ND={autoplayEnabled:!1,playbackId:null},MD=t=>({autoplayEnabled:t.playbackCriteria?.current?.mediaParams?.autoPlay?.enabled??!1,playbackId:t?.playbackId??null});let UD=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,MD,ND),this.primaryAction=t=>{const e=this.autoplayEnabled,n=t.target.checked;
3269this.updateLocalAutoplay(n),this.commandBus?.dispatchCommand(Ql.ENABLE_AUTOPLAY,e),this.commandBus?.dispatchCommand(ff.AUTOPLAY_TOGGLE,{enabled:n})}}getQAElements(){return{switch:this.autoplaySwitchRoot,switchInput:this.autoplaySwitch,autoplaySwitch:this.autoplaySwitchRoot,autoplaySwitchInput:this.autoplaySwitch}}get playbackKey(){return this.streamController.value.playbackId??"__autoplay_missing__"}get autoplayEnabled(){const t=this.localState?.autoplay;return t?.playbackKey===this.playbackKey?t.enabled:this.streamController.value.autoplayEnabled}updateLocalAutoplay(t){this.localState?.updateAutoplay?.(t,this.playbackKey),this.requestUpdate()}render(){return p.x`<div class="autoplay-toggle__item">
3270			<label for="autoplay-switch">
3271				${this.dictionary?.translate?.(Xl.MEDIA.SETTINGS.AUTOPLAY_LABEL,"Autoplay")}
3272			</label>
3273			${ID({checked:this.autoplayEnabled,onChange:this.primaryAction,id:"autoplay-switch"})}
3274		</div>`}};UD.tokens=xD,UD.styles=[OD,LD],DD([b("#autoplay-switch")],UD.prototype,"autoplaySwitch",2),DD([b(".switch__root")],UD.prototype,"autoplaySwitchRoot",2),UD=DD([p_],UD);const BD=p.i`
3275	.captions-font-size {
3276		display: flex;
3277		padding: var(--captions-settings-font-size--padding, 0.25rem);
3278		block-size: var(--captions-settings-font-size--height, 36px);
3279		border-radius: var(--captions-settings-font-size--border-radius, 6px);
3280		background-color: var(
3281			--captions-settings-font-size--background,
3282			rgba(255, 255, 255, 0.08)
3283		);
3284	}
3285
3286	.captions-font-size__option-container {
3287		display: grid;
3288		flex-grow: 1;
3289	}
3290
3291	.captions-font-size__option-button {
3292		text-transform: capitalize;
3293		font-size: var(--captions-settings-font-size-option--font-size, 12px);
3294		font-weight: var(
3295			--captions-settings-font-size-option--font-size-weight,
3296			500
3297		);
3298		background: var(
3299			--captions-settings-font-size-option--background,
3300			transparent
3301		);
3302		color: var(--captions-settings-font-size-option--color, #fff);
3303		border: var(--captions-settings-font-size-option--border, 0);
3304		cursor: pointer;
3305
3306		&.--selected {
3307			background-color: var(
3308				--captions-settings-font-size--background,
3309				rgba(255, 255, 255, 0.08)
3310			);
3311			box-shadow: var(
3312				--captions-settings-font-size-option-selected--bow-shadow
3313			);
3314			border-radius: var(
3315				--captions-settings-font-size-option-selected--border-radius,
3316				4px
3317			);
3318		}
3319	}
3320
3321	:host([dir="rtl"]) .captions-font-size__option-button,
3322	:host(:lang(th)) .captions-font-size__option-button {
3323		font-family: inherit;
3324	}
3325`;var VD=Object.defineProperty,FD=Object.getOwnPropertyDescriptor,zD=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?FD(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&VD(e,n,o),o};const $D={timedTextAppearance:{}},HD=t=>({timedTextAppearance:t.mediaPreferences?.timedTextAppearance??{}});let GD=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,HD,$D),this.label="size",this.sizeLocaleClass={"medium-small":"locale-metadata",medium:"locale-body-copy","medium-large":"locale-body-large"}}get timedTextAppearance(){return this.streamController.value.timedTextAppearance}getQAElements(){return{fontSizeButtons:this.fontSizeButtons}}selectFontSize(t){if(this.value===t)return;this.value=t;const e={[this.label]:t};this.onChange?this.onChange(e):this.commandBus?.dispatchCommand(Ql.SET_TIMED_TEXT_APPEARANCE,e)}render(){return p.x`
3326			<div class="captions-font-size" role="group">
3327				${this.fontSizeOptions.map(((t,e)=>Hy({content:p.x`${t.text}`,ariaLabel:t.text,tabIndex:0,containerClassName:"captions-font-size__option-container",className:`captions-font-size__option-button ${t.value===this.value?"--selected":""} ${this.sizeLocaleClass[t.value]??""}`,styles:{"--captions-settings-font-size-option--font-size":this.fontMapping?.[t.value]||12+2*e+"px"},doesTemplateHandleKeyEvents:!0,onClick:()=>{this.selectFontSize(t.value)}})))}
3328			</div>
3329		`}};GD.tokens={responsive:{}},GD.styles=[BD],zD([E(".captions-font-size__option-button")],GD.prototype,"fontSizeButtons",2),zD([(0,p.n)({type:String})],GD.prototype,"label",2),zD([(0,p.n)()],GD.prototype,"value",2),zD([(0,p.n)()],GD.prototype,"fontSizeOptions",2),zD([(0,p.n)()],GD.prototype,"fontMapping",2),zD([(0,p.n)({attribute:!1})],GD.prototype,"onChange",2),GD=zD([Y],GD);const YD=Wb("\n  /* CaptionPreview component styles */\n  .caption-preview-window {\n    background-color: var(--preview-window--color);\n    border-radius: var(--preview-window--border-radius);\n    display: var(--preview-window--display);\n    padding: var(--preview-window--padding);\n  }\n\n  .caption-preview {\n    text-align: var(--preview--text-align);\n  }\n\n  .caption-preview p {\n    background-color: var(--captions--background-color);\n    font-family: var(--captions--font-family);\n    color: var(--captions--font-color);\n    font-size: var(--captions--font-size);\n    text-shadow: var(--captions--text-shadow);\n    font-variant: var(--captions--font-variant);\n    margin: var(--preview-text--margin);\n    padding: var(--preview-text--padding);\n    border-radius: var(--preview--border-radius);\n  }\n");class jD{constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}getFontColor(t){if(xv(t?.textColor))return t.textColor;const{fontColor:e}=Iv(t,Al);return e}getFontSize(t){const{fontMapping:e}=this.host;return e[t?.size]}getFontFamily(t){const{fontFaceMapping:e}=this.host;return e[t?.font]}getFontVariant(t){return"small-caps"===t?.font?"small-caps":"none"}getTextShadow(t){const e={none:"none",raised:"2px 2px 0 rgba(0, 0, 0, 0.5)",depressed:"1px 1px 0 rgba(0, 0, 0, 0.88)",shadow:"2px 2px 2px rgba(0, 0, 0, 0.5)",uniform:"-1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black,
33291px 1px 0 black, 0px -1px 0 black, 0px 1px 0 black, -1px 0px 0 black, 1px 0px 0 black"},n=t?.textEdge;return n&&void 0!==e[n]?e[n]:"none"}getBackgroundColor(t){if(xv(t?.backgroundColor))return t.backgroundColor;const{backgroundColor:e}=Iv(t,Al);return e}getWindowColor(t){if(xv(t?.windowColor))return t.windowColor;const{windowColor:e}=Iv(t,Al);return e}applyStyles(t){const{host:e}=this;if(!t)return;const n=this.getFontColor(t),i=this.getFontSize(t),r=this.getFontFamily(t),o=this.getFontVariant(t),a=this.getTextShadow(t),s=this.getBackgroundColor(t),l=this.getWindowColor(t);n&&e.style.setProperty("--captions--font-color",n),i&&e.style.setProperty("--captions--font-size",i),r&&e.style.setProperty("--captions--font-family",r),o&&e.style.setProperty("--captions--font-variant",o),e.style.setProperty("--captions--text-shadow",a),s&&e.style.setProperty("--captions--background-color",s),l&&e.style.setProperty("--preview-window--color",l)}}var KD=Object.defineProperty,WD=Object.getOwnPropertyDescriptor,qD=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?WD(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&KD(e,n,o),o};let XD=class extends pt{constructor(){super(...arguments),this.controller=new jD(this),this.fontMapping={small:"16px","medium-small":"24px",medium:"32px","medium-large":"40px",large:"48px","extra-large":"64px"},this.fontFaceMapping={fontMonospaceSerif:"Courier New",fontProportionalSerif:"Times New Roman",fontMonospaceSansSerif:"Console",fontProportionalSansSerif:"Arial, sans-serif",fontDefault:"sans-serif",fontCasual:"Comic Sans MS",fontScript:"Apple Chancery",fontSmallCaps:"Arial"}}updated(){this.controller.applyStyles(this.timedTextAppearance)}render(){return p.x`
3330			<div class="caption-preview-window">
3331				<div class="caption-preview">
3332					<p class="locale-body-copy-no-size">
3333						${this.dictionary?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_EXAMPLE,"Subtitles will appear like this")}
3334					</p>
3335				</div>
3336			</div>
3337		`}};XD.tokens={"preview--text-align":"left","preview-container--flex-basis":"100%","preview-container--text-align":"center","preview-window--padding":"1.5rem","preview-window--border-radius":"0.5em","preview-window--display":"inline-block","preview-text--margin":"0","preview-text--padding":"0px","preview-window--color":"transparent","captions--background-color":"transparent","captions--font-family":"sans-serif","captions--font-color":"#ffffff","captions--font-size":"24px","captions--text-shadow":"none","captions--font-variant":"none","preview--border-radius":"unset",responsive:{}},XD.styles=[YD],qD([(0,p.n)({type:Object})],XD.prototype,"timedTextAppearance",2),qD([(0,p.n)({type:Object})],XD.prototype,"fontMapping",2),qD([(0,p.n)({type:Object})],XD.prototype,"fontFaceMapping",2),XD=qD([p_],XD);const ZD=Wb("\n  :host .captions-toggle__item {\n    display: var(--display);\n    justify-content: var(--justify-content);\n    padding-block: var(--padding-block);\n    padding-inline: var(--padding-inline);\n    user-select: var(--user-select);\n    border: var(--border);\n    border-top-width: var(--border-top-width);\n    border-bottom-width: var(--border-bottom-width);\n    font-family: var(--font-family);\n  }\n\n  :host .captions-toggle__item:hover {\n    background-color: var(--hover--background-color);\n  }\n"),QD={display:"flex","justify-content":"space-between","padding-block":"12px","padding-inline":"16px","user-select":"none","hover--background-color":"#31343E",border:"0px solid white","border-top-width":"0","border-bottom-width":"0","font-family":"inherit",...RD,responsive:{}};var JD=Object.defineProperty,tN=Object.getOwnPropertyDescriptor,eN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?tN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&JD(e,n,o),o};let nN=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,pT,uT),this.labelFallback="Captions"}getQAElements(){return{captionsSwitch:this.captionsSwitch}}primaryAction(t){const{timedTextAppearance:e}=this.streamController.value,n=t.target.checked,i={label:"Captions toggle",timedTextAppearance:e};
3337n?this.commandBus?.dispatchCommand(Ql.ENABLE_CAPTIONS,i):this.commandBus?.dispatchCommand(Ql.DISABLE_CAPTIONS,{label:"Captions toggle"}),this.commandBus?.dispatchCommand(ff.CAPTIONS_TOGGLE,{enabled:n})}render(){const{enabled:t,areAvailable:e}=this.streamController.value;return e?p.x`<div class="captions-toggle__item">
3338					<label for="captions-switch">
3339						${this.dictionary?.translate?.(Xl.MEDIA.CONTROLS.SETTINGS_MENU_CAPTIONS_LABEL,this.labelFallback)}
3340					</label>
3341					${ID({checked:t,onChange:this.primaryAction.bind(this),id:"captions-switch"})}
3342				</div>`:p.E}};nN.tokens=QD,nN.styles=[ZD,LD],eN([b("#captions-switch")],nN.prototype,"captionsSwitch",2),eN([(0,p.n)({type:String})],nN.prototype,"labelFallback",2),nN=eN([p_],nN);var iN=(t=>(t.DEFAULT="fontDefault",t.MONOSPACE_SERIF="fontMonospaceSerif",t.PROPORTIONAL_SERIF="fontProportionalSerif",t.MONOSPACE_SANS_SERIF="fontMonospaceSansSerif",t.PROPORTIONAL_SANS_SERIF="fontProportionalSansSerif",t.CASUAL="fontCasual",t.SCRIPT="fontScript",t.SMALL_CAPS="fontSmallCaps",t.GREEK="fontGreek",t.JAPANESE="fontJapanese",t.KOREAN="fontKorean",t.SIMPLIFIED_CHINESE="fontSimplifiedChinese",t.TRADITIONAL_CHINESE="fontTraditionalChinese",t.VIETNAMESE="fontVietnamese",t.THAI="fontThai",t))(iN||{}),rN=(t=>(t.WHITE="backgroundColorWhite",t.BLACK="backgroundColorBlack",t.RED="backgroundColorRed",t.GREEN="backgroundColorGreen",t.BLUE="backgroundColorBlue",t.YELLOW="backgroundColorYellow",t.MAGENTA="backgroundColorMagenta",t.CYAN="backgroundColorCyan",t))(rN||{}),oN=(t=>(t.WHITE="fontColorWhite",t.BLACK="fontColorBlack",t.RED="fontColorRed",t.GREEN="fontColorGreen",t.BLUE="fontColorBlue",t.YELLOW="fontColorYellow",t.MAGENTA="fontColorMagenta",t.CYAN="fontColorCyan",t.GENERAL_TEAL="fontColorGeneralTeal",t.GENERAL_LIME="fontColorGeneralLime",t.GENERAL_YELLOW="fontColorGeneralYellow",t.GENERAL_VIOLET="fontColorGeneralViolet",t.GENERAL_RED="fontColorGeneralRed",t.GENERAL_BLUE="fontColorGeneralBlue",t))(oN||{});const aN=p.i`
3343	:host {
3344		/* TODO: move to a theme once full menu gets created vvv */
3345
3346		--color-opacity-picker--background-color: #000000;
3347		--color-opacity-picker--padding: 10px;
3348
3349		--color-opacity-picker__styled-radio-buttons--gap: 12px;
3350		--color-opacity-picker__styled-radio-buttons--padding, 0;
3351
3352		--color-opacity-picker__styled-radio-buttons__styled-radio--size: 24px;
3353		--color-opacity-picker__styled-radio-buttons__styled-radio--outline: 2px solid #ffffff;
3354		--color-opacity-picker__styled-radio-buttons__styled-radio--focused-outline: 3px solid #ffffff;;
3355
3356		--color-opacity-picker__snap-slider--padding: 0 10px;
3357
3358		--color-opacity-picker__snap-slider__range--height: 24px;
3359		--color-opacity-picker__snap-slider__range--width: 100%;
3360		--color-opacity-picker__snap-slider__range--background-color: #f0f0f0;
3361		--color-opacity-picker__snap-slider__range--border-width: 1px;
3362		--color-opacity-picker__snap-slider__range--border-style: solid;
3363		--color-opacity-picker__snap-slider__range--border-color: #666666;
3364
3365		--color-opacity-picker__snap-slider__thumb--background-color: #333333;
3366		--color-opacity-picker__snap-slider__thumb--top: 0;
3367		--color-opacity-picker__snap-slider__thumb--size: 24px;
3368		--color-opacity-picker__snap-slider__thumb--transition: inset-inline-start
3369			100ms ease-out;
3370
3371		--color-opacity-picker__snap-slider__snap-point--color: #ffffff;
3372		--color-opacity-picker__snap-slider__snap-point--size: 10px;
3373		--color-opacity-picker__snap-slider__range--border-width: 2px;
3374		--color-opacity-picker__snap-slider__snap-point--border-style: solid;
3375		--color-opacity-picker__snap-slider__snap-point--border-color: #000000;
3376		--color-opacity-picker__snap-slider__snap-point--border-width: 0.5px;
3377
3378		/* TODO: move to theme ^^^ */
3379
3380		--styled-radio-buttons--gap: var(--color-opacity-picker__styled-radio-buttons--gap);
3381		--styled-radio-buttons--padding: var(--color-opacity-picker__styled-radio-buttons--padding);
3382
3383		--styled-radio-buttons__styled-radio--size: var(
3384			--color-opacity-picker__styled-radio-buttons__styled-radio--size
3385		);
3386		--styled-radio-buttons__styled-radio--outline: var(
3387			--color-opacity-picker__styled-radio-buttons__styled-radio--outline
3388		);
3389		--styled-radio-buttons__styled-radio--focused-outline: var(
3390			--color-opacity-picker__styled-radio-buttons__styled-radio--focused-outline
3391		);
3392
3393		--snap-slider--padding: var(
3394			--color-opacity-picker__snap-slider--padding
3395		);
3396
3397		--snap-slider__range--height: var(
3398			--color-opacity-picker__snap-slider__range--height
3399		);
3400		--snap-slider__range--width: var(
3401			--color-opacity-picker__snap-slider__range--width
3402		);
3403		--snap-slider__range--background-color: var(
3404			--color-opacity-picker__snap-slider__range--background-color
3405		);
3406		--snap-slider__range--before--background-color: var(
3407			--color-opacity-picker__snap-slider__range--before--background-color
3408		);
3409		--snap-slider__range--after--background-color: var(
3410			--color-opacity-picker__snap-slider__range--after--background-color
3411		);
3412		--snap-slider__range--background-image: var(
3413			--color-opacity-picker__snap-slider__range--background-image
3414		);
3415		--snap-slider__range--border-width: var(
3416			--color-opacity-picker__snap-slider__range--border-width
3417		);
3418		--snap-slider__range--border-style: var(
3419			--color-opacity-picker__snap-slider__range--border-style
3420		);
3421		--snap-slider__range--border-color: var(
3422			--color-opacity-picker__snap-slider__range--border-color
3423		);
3424
3425		--snap-slider__thumb--background-color: var(
3426			--color-opacity-picker__snap-slider__thumb--background-color
3427		);
3428		--snap-slider__thumb--top: var(
3429			--color-opacity-picker__snap-slider__thumb--top
3430		);
3431		--snap-slider__thumb--size: var(
3432			--color-opacity-picker__snap-slider__thumb--size
3433		);
3434		--snap-slider__thumb--transition: var(
3435			--color-opacity-picker__snap-slider__thumb--transition
3436		);
3437
3438		--snap-slider__snap-point--color: var(
3439			--color-opacity-picker__snap-slider__snap-point--color
3440		);
3441		--snap-slider__snap-point--size: var(
3442			--color-opacity-picker__snap-slider__snap-point--size
3443		);
3444		--snap-slider__range--border-width: var(
3445			--color-opacity-picker__snap-slider__range--border-width
3446		);
3447		--snap-slider__snap-point--border-style: var(
3448			--color-opacity-picker__snap-slider__snap-point--border-style
3449		);
3450		--snap-slider__snap-point--border-color: var(
3451			--color-opacity-picker__snap-slider__snap-point--border-color
3452		);
3453		--snap-slider__snap-point--border-width: var(
3454			--color-opacity-picker__snap-slider__snap-point--border-width
3455		);
3456	}
3457
3458	.color-opacity-picker {
3459		padding: var(--color-opacity-picker--padding);
3460		background-color: var(--color-opacity-picker--background-color, #000000);
3461		border-radius: var(--color-opacity-picker--border-radius);
3462	}
3463
3464	:host([dir="rtl"]) {
3465		--snap-slider__range--background-image: var(
3466			--color-opacity-picker__snap-slider__range--background-image-rtl
3467		);
3468	}
3469`;var sN=Object.defineProperty,lN=Object.getOwnPropertyDescriptor,cN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?lN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&sN(e,n,o),o};let dN=class extends pt{constructor(){super(...arguments),this.colors=[{value:Al.getRGBA(Al.fontColorMap[oN.RED],Al.fontOpacityMap.fontOpacity100),id:oN.RED,text:"Red"},{value:Al.getRGBA(Al.fontColorMap[oN.GREEN],Al.fontOpacityMap.fontOpacity100),id:oN.GREEN,text:"Green"},{value:Al.getRGBA(Al.fontColorMap[oN.BLUE],Al.fontOpacityMap.fontOpacity100),id:oN.BLUE,text:"Blue"},{value:Al.getRGBA(Al.fontColorMap[oN.YELLOW],Al.fontOpacityMap.fontOpacity100),id:oN.YELLOW,text:"Yellow"},{value:Al.getRGBA(Al.fontColorMap[oN.MAGENTA],Al.fontOpacityMap.fontOpacity100),id:oN.MAGENTA,text:"Magenta"}],this.numOpacitySnapPoints=5,this.opacityValue=100,this.colorValue=oN.RED,this.valueType="font",this.handleColorChange=t=>{this.colorValue=t,this.handleChange()},this.handleOpacityChange=t=>{this.opacityValue=t,this.handleChange()}}handleChange(){if(!this.onChange)return;const t=this.colors.find((t=>t.id===this.colorValue)),e=t?.value??this.colors[0]?.value??Al.getRGBA(Al.fontColorMap.fontColorWhite,Al.fontOpacityMap.fontOpacity100),n=this.opacityValue/100,i="background"===this.valueType?"backgroundColor":"textColor";this.onChange({[i]:Rl(e,n)})}render(){const{colors:t,numOpacitySnapPoints:e,colorValue:n,opacityValue:i,handleColorChange:r,handleOpacityChange:o,valueType:a,dictionary:s}
3469=this,l="background"===a,c=l?"Background Color":"Font Color",d=l?"Background Opacity":"Font Opacity",u=s?.translate(l?Xl.MEDIA.SUBTITLE_STYLING.BACKGROUND_COLOR:Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR,c)??c,h=s?.translate(l?Xl.MEDIA.SUBTITLE_STYLING.BACKGROUND_OPACITY:Xl.MEDIA.SUBTITLE_STYLING.FONT_OPACITY,d)??d;return p.x`
3470			<div class="color-opacity-picker">
3471				<picker-dots
3472					pickerName="color-picker"
3473					.dots=${t}
3474					.onChange=${r}
3475					value=${n}
3476					ariaLabel=${u}
3477				></picker-dots>
3478				<snap-slider
3479					.numSnapPoints=${e}
3480					.onChange=${o}
3481					.min=${0}
3482					.max=${100}
3483					.value=${i}
3484					ariaLabel=${h}
3485				></snap-slider>
3486			</div>
3487		`}getQAElements(){return{pickerDots:this.pickerDots,snapSlider:this.snapSlider}}};dN.tokens={"color-opacity-picker--padding":"8px","color-opacity-picker--border-radius":"6px","color-opacity-picker--background-color":"rgba(255, 255, 255, 0.08)","color-opacity-picker__snap-slider__range--background-color":"unset","snap-slider__range--before--background-color":"unset","snap-slider__range--after--background-color":"rgb(126, 127,128)","color-opacity-picker__snap-slider__range--background-image":"linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgb(126, 127,128) 100%)","color-opacity-picker__snap-slider__range--background-image-rtl":"linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, rgb(126, 127,128) 100%)","color-opacity-picker__snap-slider__range--border-width":"0.25px","color-opacity-picker__snap-slider__thumb--background-color":"#fff","color-opacity-picker__snap-slider__thumb--top":"2px","color-opacity-picker__snap-slider__thumb--size":"18px","color-opacity-picker__snap-slider__snap-point--size":"6px","color-opacity-picker__snap-slider__snap-point--border-color":"#fff","color-opacity-picker__snap-slider__snap-point--border-width":".25px","color-opacity-picker__snap-slider__snap-point--border-style":"solid","color-opacity-picker__snap-slider__snap-point--color":"rgba(61, 65, 73, 1)",responsive:{}},dN.styles=[aN],cN([b("picker-dots")],dN.prototype,"pickerDots",2),cN([b("snap-slider")],dN.prototype,"snapSlider",2),cN([(0,p.n)({type:String})],dN.prototype,"colors",2),cN([(0,p.n)({type:Number})],dN.prototype,"numOpacitySnapPoints",2),cN([(0,p.n)({type:Number})],dN.prototype,"opacityValue",2),cN([(0,p.n)({type:String})],dN.prototype,"colorValue",2),cN([(0,p.n)({type:String})],dN.prototype,"valueType",2),cN([(0,p.n)({type:Function})],dN.prototype,"onChange",2),dN=cN([p_],dN);const uN=p.i`
3488	:host {
3489		/* TODO: move to a theme once full menu gets created vvv */
3490
3491		--font-picker--background-color: rgba(255, 255, 255, 0.08);
3492		--font-picker--padding: 8px;
3493		--font-picker--border-radius: 6px;
3494		--font-picker--gap: 14px;
3495
3496		--font-picker__styled-radio-buttons--gap: 12px;
3497		--font-picker__styled-radio-buttons--margin: 0px;
3498		--font-picker__styled-radio-buttons--padding: 0;
3499
3500		--font-picker__styled-radio-buttons__styled-radio--width: 40px;
3501		--font-picker__styled-radio-buttons__styled-radio--height: 44px;
3502		--font-picker__styled-radio-buttons__styled-radio--outline: 2px solid
3503			#ffffff;
3504		--font-picker__styled-radio-buttons__styled-radio--focused-outline: 3px
3505			solid #ffffff;
3506		--font-picker__styled-radio-buttons__styled-radio--background-color: rgba(
3507			255,
3508			255,
3509			255,
3510			0.08
3511		);
3512		--font-picker__styled-radio-buttons__styled-radio--border-radius: 4px;
3513		--font-picker__styled-radio-buttons__styled-radio--padding: 7px 6px;
3514
3515		--font-picker__styled-radio-buttons__styled-radio__before--content: "Aa";
3516		--font-picker__styled-radio-buttons__styled-radio__before--color: #ffffff;
3517		--font-picker__styled-radio-buttons__styled-radio__before--font-size: 20px;
3518		--font-picker__styled-radio-buttons__styled-radio__before--line-height: 30px;
3519		--font-picker__styled-radio-buttons__styled-radio__before--text-align: center;
3520
3521		/* TODO: move to theme ^^^ */
3522
3523		--styled-radio-buttons--flex-wrap: var(
3524			--font-picker__styled-radio-buttons--flex-wrap
3525		);
3526		--styled-radio-buttons--gap: var(--font-picker__styled-radio-buttons--gap);
3527		--styled-radio-buttons--padding: var(
3528			--font-picker__styled-radio-buttons--padding
3529		);
3530		--styled-radio-buttons--margin: var(
3531			--font-picker__styled-radio-buttons--margin
3532		);
3533
3534		--styled-radio-buttons__styled-radio--width: var(
3535			--font-picker__styled-radio-buttons__styled-radio--width
3536		);
3537		--styled-radio-buttons__styled-radio--height: var(
3538			--font-picker__styled-radio-buttons__styled-radio--height
3539		);
3540		--styled-radio-buttons__styled-radio--outline: var(
3541			--font-picker__styled-radio-buttons__styled-radio--outline
3542		);
3543		--styled-radio-buttons__styled-radio--focused-outline: var(
3544			--font-picker__styled-radio-buttons__styled-radio--focused-outline
3545		);
3546		--styled-radio-buttons__styled-radio--background-color: var(
3547			--font-picker__styled-radio-buttons__styled-radio--background-color
3548		);
3549		--styled-radio-buttons__styled-radio--border-radius: var(
3550			--font-picker__styled-radio-buttons__styled-radio--border-radius
3551		);
3552		--styled-radio-buttons__styled-radio--padding: var(
3553			--font-picker__styled-radio-buttons__styled-radio--padding
3554		);
3555		--styled-radio-buttons__styled-radio__before--content: var(
3556			--font-picker__styled-radio-buttons__styled-radio__before--content
3557		);
3558		--styled-radio-buttons__styled-radio__before--color: var(
3559			--font-picker__styled-radio-buttons__styled-radio__before--color
3560		);
3561		--styled-radio-buttons__styled-radio__before--font-size: var(
3562			--font-picker__styled-radio-buttons__styled-radio__before--font-size
3563		);
3564		--styled-radio-buttons__styled-radio__before--line-height: var(
3565			--font-picker__styled-radio-buttons__styled-radio__before--line-height
3566		);
3567		--styled-radio-buttons__styled-radio__before--text-align: var(
3568			--font-picker__styled-radio-buttons__styled-radio__before--text-align
3569		);
3570	}
3571
3572	.font-picker {
3573		display: flex;
3574		flex-direction: column;
3575		align-items: var(--font-picker--align-items);
3576		align-self: stretch;
3577		padding: var(--font-picker--padding);
3578		background-color: var(--font-picker--background-color);
3579		border-radius: var(--font-picker--border-radius);
3580		gap: var(--font-picker--gap);
3581	}
3582
3583	.switch-container {
3584		display: flex;
3585		justify-content: space-between;
3586		align-items: center;
3587		align-self: stretch;
3588		padding-block: var(--font-picker__switch-container--padding-block);
3589		padding-inline: var(--font-picker__switch-container--padding-inline);
3590	}
3591
3592	.switch__root {
3593		flex-shrink: 0;
3594		align-self: stretch;
3595	}
3596`,pN={"font-picker--align-items":"flex-start","font-picker__styled-radio-buttons--flex-wrap":"nowrap","font-picker__styled-radio-buttons--gap":"8px","font-picker__styled-radio-buttons--margin":"0px","font-picker__switch-container--padding-block":"0px","font-picker__switch-container--padding-inline":"2px",...RD,responsive:{}};var hN=Object.defineProperty,mN=Object.getOwnPropertyDescriptor,gN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?mN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&hN(e,n,o),o};let vN=class extends pt{constructor(){super(...arguments),this.valueType="font",this.fontValue="default",this.dropShadowValue=!1,this.fontEdgeSetting="",this.handleChange=()=>{const t=this.dropShadowValue&&this.fontEdgeSetting?this.fontEdgeSetting:"none";this.onChange&&this.onChange({font:this.fontValue,textEdge:t})},this.handleFontChange=t=>{const e=this.captionsSettingsService.fontFamilyOptions(this.dictionary).fonts.find((e=>e.id===t));this.fontValue=e?.value??t,this.handleChange()},this.handleDropShadowChange=t=>{this.dropShadowValue=t.target.checked,this.handleChange()}}
3596selectedFontRadioId(){const t=this.captionsSettingsService.fontFamilyOptions(this.dictionary).fonts.find((t=>t.value===this.fontValue));return t?.id??this.fontValue}render(){const{valueType:t,dropShadowValue:e,handleFontChange:n,handleDropShadowChange:i,dictionary:r}=this;return p.x`
3597			<div class="font-picker">
3598				<styled-radio-buttons
3599					radioSetName="color-picker"
3600					.radioItems=${this.captionsSettingsService.fontFamilyOptions(r).fonts}
3601					.onChange=${n}
3602					value=${this.selectedFontRadioId()}
3603					ariaLabel=${r?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_LABEL,"Font")??"Font"}
3604					shape="rounded-square"
3605				></styled-radio-buttons>
3606				<div class="switch-container">
3607					<label class="locale-metadata-heavy" for="drop-shadow-switch">
3608						${r?.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_DROP_SHADOW,"Drop Shadow")}
3609					</label>
3610					${ID({checked:e,onChange:i,id:"drop-shadow-switch"})}
3611				</div>
3612			</div>
3613		`}getQAElements(){return{fontRadioButtons:this.fontRadioButtons,dropShadowSwitch:this.dropShadowSwitch}}};vN.tokens=pN,vN.styles=[uN,LD],gN([b("styled-radio-buttons")],vN.prototype,"fontRadioButtons",2),gN([b("#drop-shadow-switch")],vN.prototype,"dropShadowSwitch",2),gN([(0,p.n)()],vN.prototype,"captionsSettingsService",2),gN([(0,p.n)({type:String})],vN.prototype,"valueType",2),gN([(0,p.n)({type:String})],vN.prototype,"fontValue",2),gN([(0,p.n)({type:Boolean})],vN.prototype,"dropShadowValue",2),gN([(0,p.n)({type:String})],vN.prototype,"fontEdgeSetting",2),gN([(0,p.n)({type:Function})],vN.prototype,"onChange",2),vN=gN([p_],vN);const fN=Wb("\n\t:host {\n\t\twidth: 100%;\n\t}\n\n\t.menu-header-item {\n\t\tposition: var(--item--position);\n\t\tdisplay: var(--display);\n\t\twidth: var(--item--width);\n\t\tflex-direction: var(--flex-direction);\n\t\tjustify-content: var(--justify-content);\n\t\tpadding: var(--item--padding);\n\t\talign-items: var(--item--align-items);\n\t}\n\n\t.menu-header__title {\n\t\twidth: var(--title--width);\n\t\tcolor: var(--title--color);\n\t\ttext-align: var(--title--text-align);\n\t\tfont-size: var(--title--font-size);\n\t\tfont-family: var(--title--font-family);\n\t\tfont-style: var(--title--font-style);\n\t\tfont-weight: var(--title--font-weight);\n\t\tline-height: var(--title--line-height);\n\t\tletter-spacing: var(--title--letter-spacing);\n\t\tpadding-top: var(--title--padding-top);\n\t\tpadding-bottom: var(--title--padding-bottom);\n\t\tborder-bottom: var(--title--border-bottom);\n\t}\n\n\t.menu-header__back-button--container {\n\t\tposition: absolute;\n\t\tright: var(--back-button-container--right);\n\t\tleft: var(--back-button-container--left);\n\t\theight: var(--back-button-container--height);\n\t\tpadding: var(--back-button-container--padding);\n\t\t--button-container--width: var(--back-button-container--width);\n\t\t--button-container--height: var(--back-button-container--height);\n\t}\n\n\t.menu-header__back-button {\n\t\t--control--mask: var(--back-button--mask-image);\n\t\t--controls-background-color: var(--back-button--background-color);\n\t\t--control-height: var(--back-button-container--height);\n\t\t--control-width: var(--back-button-container--width);\n\t}\n\n\t.menu-header__close-button--container {\n\t\tposition: absolute;\n\t\tright: var(--close-button-container--right);\n\t\theight: var(--close-button-container--height);\n\t\tpadding: var(--close-button-container--padding);\n\t\t--button-container--width: var(--close-button-container--width);\n\t\t--button-container--height: var(--close-button-container--height);\n\t}\n\n\t.menu-header__close-button {\n\t\t--control--mask: var(--close-button--mask-image);\n\t\t--controls-background-color: var(--close-button--background-color);\n\t\t--control-height: var(--close-button-container--height);\n\t\t--control-width: var(--close-button-container--width);\n\t}\n"),bN="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_12588_15174)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.0039%206.91L17.5939%205.5L12.0039%2011.09L6.41391%205.5L5.00391%206.91L10.5939%2012.5L5.00391%2018.09L6.41391%2019.5L12.0039%2013.91L17.5939%2019.5L19.0039%2018.09L13.4139%2012.5L19.0039%206.91Z'%20fill='%23F9F9F9'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_12588_15174'%3e%3crect%20width='14'%20height='14'%20fill='white'%20transform='translate(5%205.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",_N="data:image/svg+xml,%3csvg%20width='11'%20height='18'%20viewBox='0%200%2011%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.1659%2015.8388L3.14756%208.99959L10.1659%202.16043V2.15876L8.71756%200.66626L0.166727%208.99959L8.71756%2017.3329L10.1659%2015.8404V15.8388Z'%20fill='white'/%3e%3c/svg%3e",EN={"controls__host--width":"100%","controls__host--height":"41px","control--mask-size":"auto","item--position":"relative",display:"flex","item--width":"100%","item--padding":"unset","item--align-items":"unset","flex-direction":"column","justify-content":"center","title--width":"inherit","title--color":"#DCDDDF","title--text-align":"center","title--font-size":"15px","title--font-style":"normal","title--font-weight":"700","title--line-height":"28px","title--letter-spacing":"1","title--padding-top":"6px","title--padding-bottom":"6px","title--border-bottom":"1px solid #48494a","title--font-family":"inherit","close-button-container--height":"14px","close-button-container--width":"14px","close-button-container--right":"0","close-button-container--padding":"6px","close-button--mask-image":`url("${bN}")`,"close-button--background-color":"#ffffff","back-button-container--height":"14px","back-button-container--width":"14px","back-button-container--right":"24px","back-button-container--left":"0","back-button-container--padding":"6px","back-button--mask-image":`url("${_N}")`,"back-button--background-color":"#ffffff",padding:"unset",responsive:{}};var yN=Object.defineProperty,SN=Object.getOwnPropertyDescriptor,TN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?SN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&yN(e,n,o),o};let CN=class extends pt{getQAElements(){return{menuController:this.menuController}}updated(t){super.updated(t)}handleBackClick(){this.menuController.navigateTo(this.back)}
3613handleCloseClick(){this.commandBus?.dispatchCommand(Ql.TOGGLE_MODAL,{label:this.title||"Menu Header",overlayName:this.toggleCloseOverlay,menuController:this.menuController,menuControllerPath:this.menuControllerRef})}render(){const t=this.toggleCloseOverlay?Hy({onClick:this.handleCloseClick.bind(this),ariaLabel:"Close Menu",className:"menu-header__close-button control",containerClassName:"menu-header__close-button--container",tabIndex:0,part:"menu-header__close-button",doesTemplateHandleKeyEvents:!0}):p.E,e=this.back?Hy({onClick:this.handleBackClick.bind(this),onDisabledClick:this.handleBackClick.bind(this),ariaLabel:"Back",className:"menu-header__back-button control",containerClassName:"menu-header__back-button--container",tabIndex:0,part:"menu-header__back",doesTemplateHandleKeyEvents:!0}):p.E;return p.x`
3614			<div class="menu-header-item">
3615				${t} ${e}
3616				<div class="menu-header__title">${this.title}</div>
3617			</div>
3618		`}};CN.tokens=EN,CN.styles=[Ly,fN],TN([(0,p.n)({type:Object})],CN.prototype,"menuController",2),TN([(0,p.n)({type:String})],CN.prototype,"menuControllerRef",2),TN([(0,p.n)({type:String})],CN.prototype,"title",2),TN([(0,p.n)({type:String})],CN.prototype,"back",2),TN([(0,p.n)({type:String})],CN.prototype,"toggleCloseOverlay",2),CN=TN([p_],CN);const wN=Wb('\n  /* MenuNavItem component styles */\n  .menu-nav-item {\n    display: var(--display);\n    justify-content: var(--justify-content);\n    padding: var(--padding);\n    user-select: var(--user-select);\n    cursor: var(--cursor);\n    gap: var(--gap);\n    font-family: var(--font-family);\n  }\n\n  .menu-nav-item:hover {\n    background-color: var(--hover--background-color);\n  }\n\n  .menu-nav-details {\n    display: flex;\n    gap: 10px;\n  }\n\n  .menu-sublabel {\n    color: var(--sublabel--color);\n    font-size: var(--sublabel--font-size);\n  }\n\n  .menu-nav-item__right-caret {\n    height: var(--right-caret--height);\n    width: var(--right-caret--width);\n    mask-image: var(--right-caret--mask-image);\n    -webkit-mask-image: var(--right-caret--mask-image);\n    mask-repeat: var(--right-caret--mask-repeat);\n    -webkit-mask-repeat: var(--right-caret--mask-repeat);\n    mask-size: var(--right-caret--mask-size);\n    -webkit-mask-size: var(--right-caret--mask-size);\n    mask-position: var(--right-caret--mask-position);\n    -webkit-mask-position: var(--right-caret--mask-position);\n    background-color: var(--right-caret--background-color);\n  }\n\n  :host([dir="rtl"]) .menu-nav-item__right-caret {\n    transform: scaleX(-1);\n  }\n'),AN="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.63918%203.0304C5.25682%202.63518%205.38661%202.04964%205.87058%201.79194C6.02021%201.70817%206.19991%201.66658%206.38332%201.66658C6.66563%201.66658%206.942%201.76996%207.12835%201.96617L14.3605%209.47991C14.6559%209.78645%2014.6559%2010.236%2014.3602%2010.5447L7.12649%2018.0375C6.81505%2018.3576%206.27451%2018.423%205.86967%2018.2084C5.38532%2017.9505%205.25638%2017.3663%205.63882%2016.9704L12.3574%2010.0113L5.63918%203.0304Z'%20fill='%23F9F9F9'/%3e%3c/svg%3e",IN={display:"flex","justify-content":"space-between",padding:"8px 16px","user-select":"none",cursor:"pointer",gap:"12px","hover--background-color":"#31343e","right-caret--height":"20px","right-caret--width":"20px","right-caret--mask-image":`url("${AN}")`,"right-caret--mask-repeat":"no-repeat","right-caret--mask-size":"contain","right-caret--mask-position":"center","right-caret--background-color":"#f9f9f9",responsive:{}};var ON=Object.defineProperty,RN=Object.getOwnPropertyDescriptor,xN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?RN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&ON(e,n,o),o};let LN=class extends pt{handleClick(t){t&&t.preventDefault();const e=this.isNavigatingToTakeover?{visible:!0,overlayName:this.next}:null;this.menuController.navigateTo(this.next,e)}handleKeyDown(t){"Enter"===t.key&&(t.preventDefault(),this.handleClick())}handleKeyUp(t){" "===t.key&&(t.preventDefault(),this.handleClick())}render(){return p.x`
3619			<div
3620				class="menu-nav-item"
3621				role="button"
3622				@click=${()=>this.handleClick()}
3623				@keydown=${t=>this.handleKeyDown(t)}
3624				@keyup=${t=>this.handleKeyUp(t)}
3625				tabindex="0"
3626				aria-label=${this.label}
3627			>
3628				${this.label}
3629				<div class="menu-nav-details">
3630					<span class="menu-sublabel"> ${this.sublabel} </span>
3631					${this.includeRightCaret?p.x`<div class="menu-nav-item__right-caret"></div>`:p.E}
3632				</div>
3633			</div>
3634		`}};LN.tokens=IN,LN.styles=[wN],xN([(0,p.n)({type:String})],LN.prototype,"label",2),xN([(0,p.n)({type:String})],LN.prototype,"sublabel",2),xN([(0,p.n)({type:String})],LN.prototype,"next",2),xN([(0,p.n)({type:Boolean})],LN.prototype,"isNavigatingToTakeover",2),xN([(0,p.n)({type:Boolean})],LN.prototype,"includeRightCaret",2),xN([(0,p.n)({type:Object})],LN.prototype,"menuController",2),LN=xN([p_],LN);const kN=p.i`
3635	.picker-dots {
3636		display: flex;
3637		justify-content: var(--picker-dots--justify-content);
3638		flex-wrap: var(--picker-dots--flex-wrap);
3639		gap: var(--picker-dots--gap);
3640		padding: var(--picker-dots--padding);
3641		border: none;
3642	}
3643
3644	.dot-radio {
3645		border: 0;
3646		clip: rect(0 0 0 0);
3647		width: 1px;
3648		height: 1px;
3649		margin: -1px;
3650		overflow: hidden;
3651		padding: 0;
3652		position: absolute;
3653		top: 0;
3654		left: 0;
3655	}
3656
3657	.dot-radio + .dot {
3658		display: inline-block;
3659		content: "";
3660		width: var(--picker-dots__dot--size);
3661		height: var(--picker-dots__dot--size);
3662		border-radius: 50%;
3663		background-color: var(--picker-dots__dot--background-color);
3664		cursor: pointer;
3665	}
3666
3667	.dot-radio:checked + .dot {
3668		outline: var(--picker-dots__dot--outline);
3669	}
3670
3671	input.dot-radio:focus + .dot {
3672		outline: var(--picker-dots__dot--focused-outline);
3673	}
3674
3675	.dot-label {
3676		display: none;
3677	}
3678`;var PN=Object.defineProperty,DN=Object.getOwnPropertyDescriptor,NN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?DN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&PN(e,n,o),o};let MN=class extends pt{constructor(){super(...arguments),this.pickerName="picker-dots",this.handleChange=t=>{this.value=t.target.value,this.onChange&&this.onChange(this.value)}}getQAElements(){return{radioInputs:this.radioInputs}}render(){return p.x`
3679			<form @change=${this.handleChange}>
3680				<fieldset class="picker-dots" role="radiogroup">
3681					${this.dots.map((t=>p.x`
3682							<label
3683								class="dot-container"
3684								for=${t.text}
3685								style=${$y({"--picker-dots__dot--background-color":t.value})}
3686							>
3687								<input
3688									class="dot-radio"
3689									type="radio"
3690									id=${t.text}
3691									name=${this.pickerName}
3692									value=${t.id}
3693									.checked=${t.id===this.value}
3694								/>
3695								<span class="dot"></span>
3696								<span class="dot-label">${t.text}</span>
3697							</label>
3698						`))}
3699				</fieldset>
3700			</form>
3701		`}};MN.tokens={"picker-dots--flex-wrap":"nowrap","picker-dots--gap":"12px","picker-dots__dot--size":"24px","picker-dots--padding":"0 0 14px 0","picker-dots__dot--outline":"2px s
3701olid #fff","picker-dots__dot--focused-outline":"3px solid #fff","picker-dots--justify-content":"center",responsive:{}},MN.styles=[kN],NN([E(".dot-radio")],MN.prototype,"radioInputs",2),NN([(0,p.n)({type:String})],MN.prototype,"pickerName",2),NN([(0,p.n)({type:Array})],MN.prototype,"dots",2),NN([(0,p.n)({type:Function})],MN.prototype,"onChange",2),NN([(0,p.n)({type:String})],MN.prototype,"value",2),MN=NN([p_],MN);const UN=Wb("\n  /* SettingsDropdown component styles */\n  select {\n    width: var(--select--width);\n    background: var(--select--background);\n    color: var(--select--color);\n    border-style: var(--select--border-style);\n    padding: var(--select--padding);\n    margin-bottom: var(--select--margin-bottom);\n    font-weight: var(--select--font-weight);\n  }\n");var BN=Object.defineProperty,VN=Object.getOwnPropertyDescriptor,FN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?VN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&BN(e,n,o),o};const zN={timedTextAppearance:{}},$N=t=>({timedTextAppearance:t.mediaPreferences?.timedTextAppearance??{}});let HN=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,$N,zN),this.options=[],this.value="",this.label="",this.className=""}get timedTextAppearance(){return this.streamController.value.timedTextAppearance}handleChange(t){t&&t.target&&(this.value=t.target.value,this.onChange?this.onChange({[this.label]:this.value}):this.commandBus&&this.commandBus.dispatchCommand(Ql.SET_TIMED_TEXT_APPEARANCE,{[this.label]:this.value}))}render(){const t={options:this.options,value:this.value,label:this.label,handleChange:t=>this.handleChange(t),id:this.label,selectedValue:this.timedTextAppearance[this.label]||this.value};return p.x`<div class=${this.className||""}>${(({handleChange:t,value:e,options:n,id:i,selectedValue:r,label:o})=>p.x`
3702	<select @change="${t}" .value="${e}" .id=${i}>
3703		${n?.map((t=>p.x`<option
3704					value="${t.value}"
3705					?selected=${r===t.value}
3706				>
3707					${t.text??t.value}
3708				</option>`))}
3709	</select>
3710`)(t)}</div>`}};HN.tokens={"select--width":"100%","select--background":"rgba(0, 0, 0, 0.5)","select--color":"#fff","select--border-style":"none","select--padding":"0.5rem 0.25rem","select--margin-bottom":"5px","select--font-weight":"600",responsive:{}},HN.styles=[UN],FN([(0,p.n)({type:Array})],HN.prototype,"options",2),FN([(0,p.n)({type:String})],HN.prototype,"value",2),FN([(0,p.n)({type:String})],HN.prototype,"label",2),FN([(0,p.n)({type:String})],HN.prototype,"className",2),FN([(0,p.n)({attribute:!1})],HN.prototype,"onChange",2),HN=FN([p_],HN);const GN=Wb("\n\t:host {\n\t\twidth: 100%;\n\t}\n\t\t\n\t.share-menu-url__labels__container {\n\t\tdisplay: var(--labels__container--display);\n\t\twidth: var(--labels__container--width);\n\t\tjustify-content: var(--labels__container--justify-content);\n\t\talign-items: var(--labels__container--align-items);\n\t\tcolor: var(--labels__container--color);\n\t}
3710\n\t\n\t.share-menu-url__input__container,\n\t.share-menu-url__input__container input {\n\t\twidth: var(--input__container--width);\n\t\tbox-sizing: var(--input__container--box-sizing);\n\t\tmargin-top: var(--input__container--margin-top);\n\t}\n\t\n\t.share-menu-url__input__container input {\n\t\tbackground-color: var(--input--background-color);\n\t\tborder-radius: var(--input--border-radius);\n\t\tfont-weight: var(--input--font-weight);\n\t\tfont-size: var(--input--font-size);\n\t\tpadding: var(--input--padding);\n\t\tcursor: var(--input--cursor);\n\t\tcolor: var(--input--color);\n\t\tborder: var(--input--border);\n\t\tletter-spacing: var(--input--letter-spacing);\n\t}\n\t\n\t.share-menu-url__copy-button {\n\t\tbackground: var(--copy-button--background);\n\t\tborder: var(--copy-button--border);\n\t\tcolor: var(--copy-button--color);\n\t\tfont: var(--copy-button--font);\n\t\tcursor: var(--copy-button--cursor);\n\t\tpadding: var(--copy-button--padding);\n\t}\n\t\n\t.share-menu-url__labels__container__left {\n\t\tdisplay: var(--labels__container__left--display);\n\t}\n");class YN{constructor(t){this.isTimestampChecked=!1,(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}getIsLive(t){return vm(t)}getDisplayUrl(t,e){const{isTimestampChecked:n}=this;if(!t)return"";if(n&&null!=e){const n=new URL(t);return n.searchParams.set("t",Math.floor(e/1e3).toString()),n.toString()}return t}updateTimestampChecked(t){this.isTimestampChecked=t,this.host.requestUpdate()}}var jN=Object.defineProperty,KN=Object.getOwnPropertyDescriptor,WN=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?KN(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&jN(e,n,o),o};const qN={playheadPositionMs:null,streamType:void 0,shareUrl:""},XN=t=>({playheadPositionMs:t.timeline?.timeline?.playheadPositionMs??null,streamType:t.playback?.streamType,shareUrl:t.playbackCriteria?.current?.metadata?.share?.url??""});let ZN=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,XN,qN),this.controller=new YN(this),this.inputRef=aE(),this.copyRef=aE(),this.timestampRef=aE(),this.urlInputId="share-url-input-"+ZN.idCounter++,this.timestampId="share-timestamp-chk-"+ZN.idCounter++,this.updateUrlWithTimestamp=()=>{const t=this.timestampRef.value;this.controller.updateTimestampChecked(t?.checked||!1)},this.copyToClipboard=()=>{const t=this.inputRef.value;t&&(t.setSelectionRange(0,t.value.length),navigator.clipboard.writeText(t.value).then((()=>{this.copyRef.value&&(this.copyRef.value.innerHTML=this.copiedLabel,setTimeout((()=>{this.copyRef.value&&(this.copyRef.value.innerHTML=this.copyLabel)}),2e3))})).catch((t=>{console.error("Failed to copy text: ",t)})))}}render(){const{playheadPositionMs:t,streamType:e,shareUrl:n}=this.streamController.value,{isTimestampChecked:i}=this.controller,r=this.controller.getIsLive(e),o=this.controller.getDisplayUrl(n,t);return p.x`
3711			<div class="share-menu-url__labels__container">
3712				<div class="share-menu-url__labels__container__left">
3713					<label for=${this.urlInputId}>${this.label}</label>
3714					${r?p.E:p.x`
3715									<div class="share-menu-url__checkbox-container">
3716										<input
3717											id=${this.timestampId}
3718											type="checkbox"
3719											name="timestamp"
3720											?checked=${i}
3721											@change=${this.updateUrlWithTimestamp}
3722											${cE(this.timestampRef)}
3723										/>
3724										<label for=${this.timestampId}>${this.startAtLabel}</label>
3725									</div>
3726								`}
3727				</div>
3728				<button
3729					class="share-menu-url__copy-button"
3730					@click=${this.copyToClipboard}
3731					${cE(this.copyRef)}
3732				>
3733					${this.copyLabel}
3734				</button>
3735			</div>
3736			<div class="share-menu-url__input__container">
3737				<input
3738					type="text"
3739					.value=${o}
3740					${cE(this.inputRef)}
3741					id=${this.urlInputId}
3742				/>
3743			</div>
3744		`}};ZN.idCounter=0,ZN.tokens={"labels__container--display":"flex","labels__container--width":"100%","labels__container--justify-content":"space-between","labels__container--align-items":"center","labels__container--color":"white","input__container--width":"100%","input__container--box-sizing":"border-box","input__container--margin-top":"5px","input--background-color":"rgba(0, 0, 0, 0.5)","input--border-radius":"5px","input--font-weight":"300","input--font-size":"12px","input--padding":"8px","input--cursor":"text","input--color":"white","input--border":"none","input--letter-spacing":"0.7px","copy-button--background":"none","copy-button--border":"none","copy-button--color":"inherit","copy-button--font":"inherit","copy-button--cursor":"pointer","copy-button--padding":"0","labels__container__left--display":"flex",responsive:{}},ZN.styles=[GN],WN([(0,p.n)({type:String})],ZN.prototype,"label",2),WN([(0,p.n)({type:String})],ZN.prototype,"copyLabel",2),WN([(0,p.n)({type:String})],ZN.prototype,"copiedLabel",2),WN([(0,p.n)({type:String})],ZN.prototype,"startAtLabel",2),ZN=WN([p_],ZN);let QN=class extends mT{shouldFlipForRtl(){return!0}calculateSnapValue(t){if(!this.host.numSnapPoints)return t;const e=(this.max-this.min)/(this.host.numSnapPoints-1);return Math.round((t-this.min)/e)*e}calculatePointerUpValue(t){return this.calculateSnapValue(super.calculatePointerUpValue(t))}};const JN=p.i`
3745	:host {
3746		display: block;
3747		position: relative;
3748		padding: var(--snap-slider--padding);
3749	}
3750
3751	.range {
3752		position: relative;
3753		width: var(--snap-slider__range--width);
3754		height: var(--snap-slider__range--height);
3755		background-color: var(--snap-slider__range--background-color);
3756		background-image: var(--snap-slider__range--background-image);
3757		z-index: 1;
3758		border-top-width: var(--snap-slider__range--border-width);
3759		border-top-style: var(--snap-slider__range--border-style);
3760		border-top-color: var(--snap-slider__range--border-color);
3761		border-bottom-width: var(--snap-slider__range--border-width);
3762		border-bottom-style: var(--snap-slider__range--border-style);
3763		border-bottom-color: var(--snap-slider__range--border-color);
3764
3765		&:before,
3766		&:after {
3767			content: "";
3768			display: inline-block;
3769			position: absolute;
3770			width: calc(var(--snap-slider__range--height) / 2);
3771			height: var(--snap-slider__range--height);
3772			border-top-width: var(--snap-slider__range--border-width);
3773			border-top-style: var(--snap-slider__range--border-style);
3774			border-top-color: var(--snap-slider__range--border-color);
3775			border-bottom-width: var(--snap-slider__range--border-width);
3776			border-bottom-style: var(--snap-slider__range--border-style);
3777			border-bottom-color: var(--snap-slider__range--border-color);
3778			z-index: 0;
3779			top: 50%;
3780        	transform: translateY(-50%);
3781		}
3782
3783		&:before {
3784			inset-inline-start: calc(var(--snap-slider__range--height) / -2);
3785			background-color: var(--snap-slider__range--before--background-color, --snap-slider__range--background-color););
3786			border-start-start-radius: var(--snap-slider__range--height);
3787			border-end-start-radius: var(--snap-slider__range--height);
3788			border-inline-start-width: var(--snap-slider__range--border-width);
3789			border-inline-start-style: var(--snap-slider__range--border-style);
3790			border-inline-start-color: var(--snap-slider__range--border-color);
3791		}
3792
3793		&:after {
3794			inset-inline-end: calc(var(--snap-slider__range--height) / -2);
3795			background-color: var(--snap-slider__range--after--background-color, --snap-slider__range--background-color);
3796			border-start-end-radius: var(--snap-slider__range--height);
3797			border-end-end-radius: var(--snap-slider__range--height);
3798			border-inline-end-width: var(--snap-slider__range--border-width);
3799			border-inline-end-style: var(--snap-slider__range--border-style);
3800			border-inline-end-color: var(--snap-slider__range--border-color);
3801		}
3802	}
3803
3804	.thumb {
3805		position: absolute;
3806		border-radius: 50%;
3807		width: var(--snap-slider__thumb--size);
3808		height: var(--snap-slider__thumb--size);
3809		background-color: var(--snap-slider__thumb--background-color);
3810		transition: var(--snap-slider__thumb--transition);
3811		z-index: 3;
3812		top: 50%;
3813		transform: translateY(-50%);
3814		margin-inline-start: calc(var(--snap-slider__thumb--size) / -2);
3815	}
3816
3817	.snap-point {
3818		position: absolute;
3819		box-sizing: border-box;
3820		width: var(--snap-slider__snap-point--size);
3821		height: var(--snap-slider__snap-point--size);
3822		background-color: var(--snap-slider__snap-point--color);
3823		border-radius: 50%;
3824		border-width: var(--snap-slider__snap-point--border-width);
3825		border-style: var(--snap-slider__snap-point--border-style);
3826		border-color: var(--snap-slider__snap-point--border-color);
3827		transform: translateY(-50%);
3828		margin-inline-start: calc(var(--snap-slider__snap-point--size) / -2);
3829		top: 50%;
3830		pointer-events: none;
3831		padding: 0;
3832		z-index: 2;
3833
3834		&:first-of-type,
3835		&:last-of-type {
3836			opacity: 0;
3837			&:focus {
3838				opacity: 1;
3839			}
3840		}
3841		&:focus {
3842			z-index: 4;
3843		}
3844	}
3845`;var tM=Object.defineProperty,eM=Object.getOwnPropertyDescriptor,nM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?eM(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&tM(e,n,o),o};let iM=class extends pt{constructor(){super(...arguments),this.sliderContainerRef
3845=aE(),this.thumbRef=aE(),this.controller=new QN(this),this.direction=t_.FROMLEFT,this.role="slider",this.step=1,this.handleChange=t=>{this.onChange&&(this.value=t,this.onChange(this.value))},this.handleMove=t=>{const e=this.controller.calculateSnapValue(t);this.onScrub&&this.onScrub(e)},this.handleKeyDown=t=>{const{min:e,max:n,numSnapPoints:i}=this;if(!i||i<=1)return;const{value:r}=this.controller,o=(n-e)/(i-1),a=Math.round((r-e)/o);let s=a;switch(t.key){case"ArrowLeft":case"ArrowDown":s=Math.max(0,a-1);break;case"ArrowRight":case"ArrowUp":s=Math.min(i-1,a+1);break;case"Home":s=0;break;case"End":s=i-1;break;default:return}if(s===a)return;t.preventDefault(),t.stopPropagation();const l=e+s*o;this.controller.value=l,this.announceValue(l),this.requestUpdate(),this.handleChange(l)},this.handleSnapPointKeyDown=(t,e)=>{"Enter"===t.key&&(t.preventDefault(),this.controller.value=e,this.requestUpdate(),this.handleChange(e))},this.handleSnapPointKeyUp=(t,e)=>{" "===t.key&&(t.preventDefault(),this.controller.value=e,this.requestUpdate(),this.handleChange(e))},this.renderSnapPoints=()=>{const{handleSnapPointKeyDown:t,handleSnapPointKeyUp:e,numSnapPoints:n}=this,{min:i,max:r}=this.controller,o=[],a=(r-i)/(n-1);for(let s=0;s<=n-1;s++){const n=i+s*a,l=(n-i)/(r-i)*100;o.push(p.x`
3846				<button
3847					class="snap-point"
3848					style=${$y({insetInlineStart:`${l}%`})}
3849					@keydown=${e=>t(e,n)}
3850					@keyup=${t=>e(t,n)}
3851					tabindex="-1"
3852					aria-hidden="true"
3853				></button>
3854			`)}return p.x`${o}`}}connectedCallback(){super.connectedCallback(),this.controller.updateValues({min:this.min,max:this.max,value:this.value})}handlePointerUp(t){this.controller.handlePointerUp(t,this.handleChange)}handlePointerDown(t){this.controller.handlePointerDown(t,this.handleMove)}handlePointerMove(t){this.controller.handlePointerMove(t,this.handleMove)}announceValue(t){const e=`${Math.round(t)}%`;this.getAnnouncer().textContent="",requestAnimationFrame((()=>{this.getAnnouncer().textContent=e}))}getAnnouncer(){const t="dwp-snap-slider-announcer";let e=document.getElementById(t);return e||(e=document.createElement("div"),e.id=t,e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.style.cssText="position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;",document.body.appendChild(e)),e}render(){const{handlePointerUp:t,handlePointerDown:e,handlePointerMove:n,handleKeyDown:i,sliderContainerRef:r,thumbRef:o}=this;this.controller.updateValues({min:this.min,max:this.max,value:this.value});const{min:a,max:s,clampedValue:l,thumbPosition:c}=this.controller;return p.x`
3855			<div
3856				class="range"
3857				${cE(r)}
3857
3858				@pointerup=${t}
3859				@pointerdown=${e}
3860				@pointermove=${n}
3861				@keydown=${i}
3862				role=${this.role}
3863				tabindex="0"
3864				aria-label="${this.ariaLabel??this.dictionary?.translate(Xl.MEDIA.CONTROLS.SLIDER,"Slider")}"
3865				aria-valuemin="${Math.round(a)}"
3866				aria-valuemax="${Math.round(s)}"
3867				aria-valuenow="${Math.round(l)}"
3868				aria-valuetext="${Math.round(l)} of ${Math.round(s)}"
3869			>
3870				<div
3871					class="thumb"
3872					style=${$y({insetInlineStart:`${c}%`})}
3873					aria-hidden="true"
3874					${cE(o)}
3875				></div>
3876				${this.renderSnapPoints()}
3877			</div>
3878		`}getQAElements(){return{slider:this.sliderRange,thumb:this.thumb,snapPoints:this.snapPoints}}};iM.tokens={responsive:{}},iM.styles=[JN],nM([(0,p.n)({type:String})],iM.prototype,"ariaLabel",2),nM([(0,p.n)({type:Number})],iM.prototype,"step",2),nM([(0,p.n)({type:Number})],iM.prototype,"numSnapPoints",2),nM([(0,p.n)({type:Function})],iM.prototype,"onChange",2),nM([(0,p.n)({type:Function})],iM.prototype,"onScrub",2),nM([(0,p.n)({type:Number})],iM.prototype,"value",2),nM([(0,p.n)({type:Number})],iM.prototype,"min",2),nM([(0,p.n)({type:Number})],iM.prototype,"max",2),nM([b(".range")],iM.prototype,"sliderRange",2),nM([b(".thumb")],iM.prototype,"thumb",2),nM([E(".snap-point")],iM.prototype,"snapPoints",2),iM=nM([p_],iM);const rM=Wb('\n\t.share-at-time-container {\n        display: var(--container--display);\n        padding: var(--container--padding);\n        justify-content: var(--container--justify-content);\n        align-items: var(--container--align-items);\n        gap: var(--container--gap);\n        color: var(--container--color);\n        font-size: var(--container--font-size);\n        font-style: var(--container--font-style);\n        font-weight: var(--container--font-weight);\n        line-height: var(--container--line-height);\n        letter-spacing: var(--container--letter-spacing);\n\t}\n\n    .checkbox {\n        cursor: var(--checkbox--cursor);\n        appearance: var(--checkbox--appearance);\n        position: var(--checkbox--position);\n        opacity: 0;\n        pointer-events: none;\n    }\n\n    .checkbox-label {\n        display: inline-flex;\n        align-items: center;\n        cursor: pointer;\n        position: relative;\n    }\n\n    .checkbox-custom {\n        width: var(--checkbox--width);\n        height: var(--checkbox--height);\n        border: var(--checkbox--border);\n        border-radius: var(--checkbox--border-radius);\n        background: var(--checkbox--background);\n        position: var(--checkbox--position);\n    }\n\n    .checkbox:checked + .checkbox-custom::after {\n        content: "";\n        background-image: var(--checkbox__checked--control-mask);\n        background-size: contain;\n        background-repeat: no-repeat;\n        position: absolute;\n        top: 50%;\n        left: 50%;\n        transform: translate(-50%, -50%);\n        width: var(--checkbox--width);\n        height: var(--checkbox--height);\n    }\n\n    .text-input {\n        width: var(--text-input--width);\n        height: var(--text-input--height);\n        padding: var(--text-input--padding);\n        box-sizing: var(--text-input--box-sizing);\n        border-radius: var(--text-input--border-radius);\n        background: var(--text-input--background);\n        border: var(--text-input--border);\n        text-align: var(--text-input--text-align);\n        color: var(--text-input--color);\n        font-size: var(--text-input--font-size);\n        font-style: var(--text-input--font-style);\n        font-weight: var(--text-input--font-weight);\n        line-height: var(--text-input--line-height);\n        letter-spacing: var(--text-input--letter-spacing);\n\n        &[disabled] {\n            background: var(--text-input--disabled--background);\n            color: var(--text-input--disabled--color);\n        }\n    }\n');class oM{constructor(t){this.formatDuration=Tc(),this.didUserInteract=!1,this.doesAppendTimecode=!1,this.bespokeTimecode=null,(this.host=t).addController(this)}get label(){return this.host.dictionary?.translate(Xl.MEDIA.SHARE.START_AT_LABEL,"Share video from")}get bespokeTimeInMs(){const{bespokeTimecode:t}=this;if(!t)return null;let e=t?.trim().split(":")||[];for(e.forEach(((t,n)=>{let i=parseFloat(t);Number.isNaN(i)&&(i=0),e[n]=String(i).padStart(2,"0")}));e.length<3;)e.unshift("00");e.length>3&&(e=e.slice(e.length-3));const n=e.join(":");return 1e3*Ac(n)}hostConnected(){}hostDisconnected(){}getBoxValue(t){const{bespokeTimecode:e,didUserInteract:n,doesAppendTimecode:i}=this;let r="00:00:00";if(i){const i=this.getCurrentTimecode(t);r=n?e:i}return r}getState(t){const{doesAppendTimecode:e,bespokeTimeInMs:n,didUserInteract:i}=this;return{shareTimeInMs:i?n:t,doesAppendTimecode:e}}getCurrentTimecode(t){const{timeFormat:e}=this;return this.formatDuration(t,e??Ic(e))}}var aM=Object.defineProperty,sM=Object.getOwnPropertyDescriptor,lM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?sM(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&aM(e,n,o),o};const cM={playheadPositionMs:0},dM=t=>({playheadPositionMs:t.timeline?.timeline?.playheadPositionMs??0});let uM=class extends pt{constructor(){super(...arguments),this.streamController=new G_(this,dM,cM),this.controller=new oM(this),this.checkboxRef=aE(),this.textInputRef=aE(),this.textInputId="share-time-text-"+uM.idCounter++,this.previousPlayheadPositionMs=null,this.onCheckboxChange=()=>{const{controller:t}=this;t.doesAppendTimecode=this.checkboxRef.value?.checked,t.doesAppendTimecode||(t.bespokeTimecode=null,t.didUserInteract=!1),this.handleChange()},this.onTextBoxKeyDown=()=>{const{controller:t}=this,{doesAppendTimecode:e}=t;!e||(t.didUserInteract=!0,this.onTextBoxChange())},this.onTextBoxChange=()=>{const{controller:t}=this,{didUserInteract:e,doesAppendTimecode:n}=t,{textInputRef:i}=this;if(e){const e=i.value?.value;t.bespokeTimecode=e}n&&this.handleChange()}}handleChange(){const{playheadPositionMs:t}=this.streamController.value;this.onChange?.(this.controller.getState(t)),this.requestUpdate()}updated(){const{playheadPositionMs:t}=this.streamController.value,{doesAppendTimecode:e,didUserInteract:n}=this.controller,i=e&&!n,r=this.previousPlayheadPositionMs!==t;i&&r&&this.onChange?.(this.controller.getState(t)),this.previousPlayheadPositionMs=t}renderCheckbox(){const{checkboxRef:t}=this;return p.x`
3879			<label class="checkbox-label">
3880				<input
3881					class="checkbox"
3882					type="checkbox"
3883					name="does-append-timestamp"
3884					@change=${this.onCheckboxChange}
3885					${cE(t)}
3886				/>
3887				<span class="checkbox-custom"></span>
3888			</label>
3889		`}renderLabel(){const{label:t}=this.controller;return p.x`<label for=${this.textInputId}>${t}:</label>`}renderTextInput(){const{textInputRef:t,controller:e,streamController:n}=this,{playheadPositionMs:i}=n.value,{doesAppendTimecode:r}=e,o=e.getBoxValue(i);return p.x`
3890			<input
3891				id=${this.textInputId}
3892				name="Time Input"
3893				class="text-input"
3894				type="text"
3895				@keydown=${this.onTextBoxKeyDown}
3896				@change=${e.didUserInteract?this.onTextBoxChange:null}
3897				.value=${o}
3898				?unchecked=${!r}
3899				${cE(t)}
3900			/>
3901		`}render(){return p.x`
3902			<div class="share-at-time-container">
3903				${this.renderCheckbox()} ${this.renderLabel()} ${this.renderTextInput()}
3904			</div>
3905		`}getQAElements(){return{checkbox:this.checkboxRef.value??null,textInput:this.textInputRef.value??null}}};uM.idCounter=0,uM.tokens={"container--display":"flex","container--padding":"7.5px 0","container--justify-content":"center","container--align-items":"center","container--gap":"12px","container--color":"#FFFFFF","container--font-size":"14px","container--font-style":"normal","container--font-weight":"400","container--line-height":"14px","container--letter-spacing":"-0.28px","checkbox--width":"24px","checkbox--height":"24px","checkbox--cursor":"pointer","checkbox--appearance":"none","checkbox--border-radius":"1px","checkbox--border":"1px solid #FFFFFF","checkbox--background":"#141618","checkbox--position":"relative","checkbox__checked--background":"#FFFFFF","checkbox__checked--border-color":"#FFFFFF","checkbox__checked--box-sha
3905dow":"inset 0 0 0 2px #141618","checkbox__checked--control-mask":"url(\"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2012L9%2016L19%206'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\")","text-input--width":"80px","text-input--height":"38px","text-input--padding":"8px","text-input--box-sizing":"border-box","text-input--border-radius":"4px","text-input--background":"#FFFFFF","text-input--border":"none","text-input--text-align":"center","text-input--color":"#000000","text-input--font-size":"16px","text-input--font-style":"normal","text-input--font-weight":"400","text-input--line-height":"22px","text-input--letter-spacing":"-0.32px","text-input--disabled--background":"#F0F0F0","text-input--disabled--color":"#A0A0A0"},uM.styles=[rM],lM([(0,p.n)({type:Function})],uM.prototype,"onChange",2),uM=lM([p_],uM);const pM=Wb("\n\t.social-icon {\n\t\tblock-size: var(--height);\n\t\tinline-size: var(--width);\n\t\tmask-image: var(--mask);\n\t\t-webkit-mask-image: var(--mask);\n\t\tmask-repeat: var(--mask-repeat, no-repeat);\n\t\t-webkit-mask-repeat: var(--mask-repeat, no-repeat);\n\t\tmask-size: var(--mask-size, contain);\n\t\t-webkit-mask-size: var(--mask-size, contain);\n\t\tmask-position: var(--mask-position, center);\n\t\t-webkit-mask-position: var(--mask-position, center);\n\t\tbackground-color: var(--background-color);\n\t}\n\n\t.social-icon-container {\n\t\tappearance: none;\n\t\tborder: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tbackground: none;\n\t\tfont: inherit;\n\t\tcolor: inherit;\n\t\ttext-align: inherit;\n\t\tcursor: var(--container--cursor);\n\t\tdisplay: var(--container--display);\n\t\tblock-size: var(--container--height);\n\t\tinline-size: var(--container--width);\n\t\talign-items: var(--container--align-items);\n\t\tjustify-content: var(--container--justify-content);\n\n\t\t&:hover {\n\t\t\t.social-icon {\n\t\t\t\tbackground-color: var(--hover--background-color);\n\t\t\t}\n\t\t}\n\t}\n\n\n\t.social-icon.facebook {\n\t\t--mask: var(--facebook--mask);\n\t}\n\n\t.social-icon.x {\n\t\t--mask: var(--x--mask);\n\t}\n\n\t.social-icon.email {\n\t\t--mask: var(--email--mask);\n\t}\n\n\t.social-icon.link {\n\t\t--mask: var(--link--mask);\n\t}\n\n\t.social-icon.embed {\n\t\t--mask: var(--embed--mask);\n\t}\n\n\t.label {\n\t\tdisplay: var(--label--display);\n\t}\n\n\t.expanded {\n\t\t&.social-icon-container {\n\t\t\tdisplay: var(--container__expanded--display);\n\t\t\tflex: var(--container__expanded--flex);\n\t\t\talign-items: var(--container__expanded--align-items);\n\t\t\tjustify-content: var(--container__expanded--justify-content);\n\t\t\tbackground: var(--container__expanded--background);\n\t\t\tgap: var(--container__expanded--gap);\n\t\t\tborder-radius: var(--container__expanded--border-radius);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--container__expanded__hover--background);\n\t\t\t}\n\n\t\t\t&.medium {\n\t\t\t\tblock-size: var(--container__expanded__medium--height);\n\t\t\t\tpadding: var(--container__expanded__medium--padding);\n\t\t\t}\n\n\t\t\t&.large {\n\t\t\t\tflex-direction: var(--container__expanded__large--flex-direction);\n\t\t\t\tblock-size: var(--container__expanded__large--height);\n\t\t\t\tpadding: var(--container__expanded__large--padding);\n\t\t\t\toverflow: var(--container__expanded__large--overflow);\n\t\t\t\tcolor: var(--container__expanded__large--color);\n\t\t\t\ttext-overflow: var(--container__expanded__large--text-overflow);\n\t\t\t\tfont-size: var(--container__expanded__large--font-size);\n\t\t\t\tfont-style: var(--container__expanded__large--font-style);\n\t\t\t\tfont-weight: var(--container__expanded__large--font-weight);\n\t\t\t\tline-height: var(--container__expanded__large--line-height);\n\t\t\t\ttext-decoration: var(--container__expanded__large--text-decoration);\n\n\t\t\t\t.label {\n\t\t\t\t\tdisplay: var(--container__expanded__large__label--display);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.social-icon {\n\t\t\t\tinline-size: var(--container__expanded__social-icon--width);\n\t\t\t\tblock-size: var(--container__expanded__social-icon--height);\n\t\t\t\tflex-shrink: var(--container__expanded__social-icon--flex-shrink);\n\t\t\t}\n\t\t}\n\t}\n");var hM=Object.defineProperty,mM=Object.getOwnPropertyDescriptor,gM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?mM(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&hM(e,n,o),o};let vM=class extends pt{constructor(){super(...arguments),this.behavior="default",this.platform="",this.tabIndex=0,this.target="_self",this.features="",this.feedbackTimeout=2e3,this.show
3905Feedback=!1}copyToClipboard(t){navigator.clipboard.writeText(t).catch((t=>{console.error("Failed to copy text: ",t)}))}displayFeedback(){this.feedback&&(this.showFeedback=!0,setTimeout((()=>{this.showFeedback=!1}),this.feedbackTimeout))}handleClick(){let t;switch(this.behavior){case"embed":t=`<iframe src="${this.href}" width="640" height="360" allow="encrypted-media" allowFullScreen frameBorder="0"></iframe>`,this.copyToClipboard(t),this.displayFeedback();break;case"link":this.copyToClipboard(this.href),this.displayFeedback();break;default:window.open(this.href,this.target,this.features)}this.trackingHandler?.({platform:this.platform})}renderLabel(){return p.x`<span class="label">
3906			${this.showFeedback?this.feedback:this.label}
3907		</span>`}renderIcon(){return p.x`<div class="social-icon ${this.className}"></div>`}render(){return p.x`
3908			<button
3909				type="button"
3910				class="social-icon-container ${this.className}"
3911				aria-label=${this.ariaLabel}
3912				tabindex=${this.tabIndex}
3913				@click=${this.handleClick}
3914			>
3915				${this.renderIcon()}
3916				${Q_(this.label,(()=>this.renderLabel()),(()=>p.E))}
3917			</button>
3918		`}getQAElements(){return{button:this.actionButton}}};vM.tokens={height:"70%",width:"70%","mask-repeat":"no-repeat","mask-size":"contain","mask-position":"center","background-color":"#CECFCF","hover--background-color":"#FFFFFF","container--cursor":"pointer","container--display":"flex","container--height":"50px","container--width":"50px","container--align-items":"center","container--justify-content":"center","facebook--mask":"url(\"data:image/svg+xml,%3csvg%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.875%200C5.35215%200%200.875%204.50451%200.875%2010.0611C0.875%2015.0829%204.53186%2019.2452%209.3125%2020V12.9694H6.77344V10.0611H9.3125V7.84452C9.3125%205.32296%2010.8054%203.93012%2013.0896%203.93012C14.1837%203.93012%2015.3281%204.12663%2015.3281%204.12663V6.60261H14.0671C12.8249%206.60261%2012.4375%207.37816%2012.4375%208.17381V10.0611H15.2109L14.7676%2012.9694H12.4375V20C17.2181%2019.2452%2020.875%2015.0829%2020.875%2010.0611C20.875%204.50451%2016.3979%200%2010.875%200Z'%20fill='white'/%3e%3c/svg%3e\")","x--mask":"url(\"data:image/svg+xml,%3csvg%20width='21'%20height='20'%20viewBox='0%200%2021%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M16.3762%200.960938H19.443L12.7429%208.61866L20.625%2019.0391H14.4525L9.61865%2012.7192L4.08766%2019.0391H1.01901L8.18538%2010.8483L0.625%200.960938H6.95235L11.3217%206.7376L16.3743%200.960938M15.298%2017.2035H16.9973L6.0299%202.70015H4.20633L15.2998%2017.2035'%20fill='white'/%3e%3c/svg%3e\")","email--mask":"url(\"data:image/svg+xml,%3csvg%20width='21'%20height='16'%20viewBox='0%200%2021%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.375%204.56458V1.84663C20.3723%201.37143%2020.1823%200.916461%2019.8463%200.580439C19.5103%200.244417%2019.0553%200.0544502%2018.5801%200.0517578H2.16987C1.69467%200.0544502%201.2397%200.244417%200.903681%200.580439C0.567659%200.916461%200.377692%201.37143%200.375%201.84663V14.1543C0.377692%2014.6295%200.567659%2015.0845%200.903681%2015.4205C1.2397%2015.7565%201.69467%2015.9465%202.16987%2015.9492H18.5801C19.0553%2015.9465%2019.5103%2015.7565%2019.8463%2015.4205C20.1823%2015.0845%2020.3723%2014.6295%2020.375%2014.1543V4.56458ZM18.8365%2014.1543C18.8365%2014.2223%2018.8095%2014.2875%2018.7614%2014.3356C18.7134%2014.3837%2018.6481%2014.4107%2018.5801%2014.4107H2.16987C2.10187%2014.4107%202.03665%2014.3837%201.98856%2014.3356C1.94048%2014.2875%201.91346%2014.2223%201.91346%2014.1543V5.83637L10.016%2010.0518C10.1281%2010.1054%2010.2507%2010.1333%2010.375%2010.1333C10.4993%2010.1333%2010.6219%2010.1054%2010.734%2010.0518L18.8365%205.8056V14.1543ZM18.8365%204.02099V4.10304L10.375%208.53381L1.91346%204.10304V1.84663C1.91346%201.77863%201.94048%201.71341%201.98856%201.66532C2.03665%201.61723%202.10187%201.59022%202.16987%201.59022H18.5801C18.6481%201.59022%2018.7134%201.61723%2018.7614%201.66532C18.8095%201.71341%2018.8365%201.77863%2018.8365%201.84663V4.02099Z'%20fill='white'/%3e%3c/svg%3e\")","embed--mask":"url(\"data:image/svg+xml,%3csvg%20width='21'%20height='16'%20viewBox='0%200%2021%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.1094%201.29054C13.257%200.798456%2012.9778%200.279873%2012.4857%200.132249C11.9936%20-0.0153748%2011.475%200.263862%2011.3274%200.755942L7.14139%2014.7093C6.99377%2015.2013%207.273%2015.7199%207.76
3918508%2015.8675C8.25716%2016.0152%208.77575%2015.7359%208.92337%2015.2439L13.1094%201.29054ZM5.89898%2012.3785C5.53571%2012.7418%204.94672%2012.7418%204.58345%2012.3785L0.397456%208.19252C0.0341815%207.82924%200.0341815%207.24026%200.397455%206.87699L4.58345%202.69099C4.94672%202.32772%205.53571%202.32772%205.89898%202.69099C6.26225%203.05426%206.26225%203.64325%205.89898%204.00652L2.37075%207.53475L5.89898%2011.063C6.26226%2011.4263%206.26226%2012.0152%205.89898%2012.3785ZM14.351%203.15615C14.7143%202.79287%2015.3033%202.79287%2015.6665%203.15615L19.8525%207.34214C20.2158%207.70541%2020.2158%208.2944%2019.8525%208.65767L15.6665%2012.8437C15.3033%2013.2069%2014.7143%2013.2069%2014.351%2012.8437C13.9877%2012.4804%2013.9877%2011.8914%2014.351%2011.5281L17.8792%207.99991L14.351%204.47168C13.9877%204.1084%2013.9877%203.51942%2014.351%203.15615Z'%20fill='white'/%3e%3c/svg%3e\")","link--mask":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M14%207H16C18.7614%207%2021%209.23858%2021%2012C21%2014.7614%2018.7614%2017%2016%2017H14M10%207H8C5.23858%207%203%209.23858%203%2012C3%2014.7614%205.23858%2017%208%2017H10M8%2012H16'%20stroke='%23000000'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\")","label--display":"none","container__expanded--display":"flex","container__expanded--flex":"1 0 0","container__expanded--align-items":"center","container__expanded--justify-content":"center","container__expanded--background":"rgba(255, 255, 255, 0.08)","container__expanded--gap":"5px","container__expanded--border-radius":"6px","container__expanded__hover--background":"rgba(200, 200, 200, 0.2)","container__expanded__medium--height":"44px","container__expanded__medium--padding":"2.5px 9px","container__expanded__large--flex-direction":"row","container__expanded__large--height":"44px","container__expanded__large--padding":"2.5px 9px","container__expanded__large--overflow":"hidden","container__expanded__large--color":"#FFFFFF","container__expanded__large--text-overflow":"ellipsis","container__expanded__large--font-size":"13px","expanded__large--font-style":"normal","container__expanded__large--font-weight":"500","container__expanded__large--line-height":"150%","container__expanded__large--text-decoration":"none","container__expanded__large__label--display":"block","container__expanded__social-icon--width":"20px","container__expanded__social-icon--height":"20px","container__expanded__social-icon--flex-shrink":"0",responsive:{small:{"container__expanded__medium--height":"44px","container__expanded__medium--padding":"2.5px 9px","container__expanded__large--height":"64px","container__expanded__large--padding":"8px 9px","container__expanded__large--flex-direction":"column"}}},vM.styles=[pM],gM([(0,p.n)({type:String})],vM.prototype,"className",2),gM([(0,p.n)({type:String})],vM.prototype,"href",2),gM([(0,p.n)({type:String})],vM.prototype,"behavior",2),gM([(0,p.n)({type:String})],vM.prototype,"platform",2),gM([(0,p.n)({type:Number})],vM.prototype,"tabIndex",2),gM([(0,p.n)({type:String})],vM.prototype,"ariaLabel",2),gM([(0,p.n)({type:String})],vM.prototype,"label",2),gM([(0,p.n)({type:String})],vM.prototype,"feedback",2),gM([(0,p.n)({type:String})],vM.prototype,"target",2),gM([(0,p.n)({type:String})],vM.prototype,"features",2),gM([(0,p.n)({type:Function})],vM.prototype,"trackingHandler",2),gM([(0,p.n)({type:Number})],vM.prototype,"feedbackTimeout",2),gM([b("button")],vM.prototype,"actionButton",2),gM([v()],vM.prototype,"showFeedback",2),vM=gM([p_],vM);const fM=p.i`
3919	.styled-radio-buttons {
3920		display: flex;
3921		flex-wrap: var(--styled-radio-buttons--flex-wrap);
3922		justify-content: var(--styled-radio-buttons--justify-content);
3923		gap: var(--styled-radio-buttons--gap);
3924		padding: var(--styled-radio-buttons--padding);
3925		margin: var(--styled-radio-buttons--margin);
3926		border: none;
3927	}
3928
3929	.styled-radio-input {
3930		border: 0;
3931		clip: rect(0 0 0 0);
3932		width: 1px;
3933		height: 1px;
3934		margin: -1px;
3935		overflow: hidden;
3936		padding: 0;
3937		position: absolute;
3938		top: 0;
3939		left: 0;
3940	}
3941
3942	.styled-radio-input + .styled-radio {
3943		display: inline-block;
3944		box-sizing: border-box;
3945		width: var(
3946			--styled-radio-buttons__styled-radio--size,
3947			var(--styled-radio-buttons__styled-radio--width)
3948		);
3949		height: var(
3950			--styled-radio-buttons__styled-radio--size,
3951			var(--styled-radio-buttons__styled-radio--height)
3952		);
3953		cursor: pointer;
3954		background-color: var(
3955			--styled-radio-buttons__styled-radio--background-color
3956		);
3957		padding: var(--styled-radio-buttons__styled-radio--padding);
3958		background-size: var(--styled-radio-buttons__styled-radio--background-size);
3959
3960		&.circle {
3961			border-radius: 50%;
3962		}
3963
3964		&.rounded-square {
3965			border-radius: var(--styled-radio-buttons__styled-radio--border-radius);
3966		}
3967
3968		&.has-before::before {
3969			display: var(
3970				--styled-radio-buttons__styled-radio__before--display,
3971				block
3972			);
3973			justify-content: var(
3974				--styled-radio-buttons__styled-radio__before--justify-content,
3975			);
3976			width: 100%;
3977			height: 100%;
3978			content: var(--styled-radio-buttons__styled-radio__before--content);
3979
3980			overflow: hidden;
3981			color: var(--styled-radio-buttons__styled-radio__before--color,);
3982			text-overflow: ellipsis;
3983			font-family: var(
3984				--styled-radio-buttons__styled-radio__before--font-family
3985			);
3986			font-size: var(--styled-radio-buttons__styled-radio__before--font-size);
3987			font-weight: var(
3988				--styled-radio-buttons__styled-radio__before--font-weight
3989			);
3990			line-height: var(
3991				--styled-radio-buttons__styled-radio__before--line-height
3992			);
3993			letter-spacing: var(
3994				--styled-radio-buttons__styled-radio__before--letter-spacing
3995			);
3996		}
3997	}
3998
3999	.styled-radio-input:checked + .styled-radio {
4000		outline: var(--styled-radio-buttons__styled-radio--outline);
4001	}
4002
4003	input.styled-radio-input:focus + .styled-radio {
4004		outline: var(--styled-radio-buttons__styled-radio--focused-outline);
4005	}
4006
4007	.styled-radio-label {
4008		display: none;
4009	}
4010`;var bM=Object.defineProperty,_M=Object.getOwnPropertyDescriptor,EM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?_M(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&bM(e,n,o),o};let yM=class extends pt{constructor(){super(...arguments),this.radioSetName="styled-radio-buttons",this.handleChange=t=>{this.value=t.target.value,this.onChange&&this.onChange(this.value)}}getQAElements(){return{radioInputs:this.radioInputs}}render(){return p.x`
4011			<form @change=${this.handleChange}>
4012				<fieldset class="styled-radio-buttons" role="radiogroup">
4013					${this.radioItems.map((t=>{const e={...t?.styleOverrides};return t.backgroundColor&&(e["--styled-radio-buttons__styled-radio--background-color"]=t.backgroundColor),p.x`
4014							<label class="styled-radio-container" for=${t.text}>
4015								<span class="styled-radio-label"> ${t.text} </span>
4016								<input
4017									aria-label=${t.text}
4018									class="styled-radio-input"
4019									type="radio"
4020									id=${t.text}
4021									name=${this.radioSetName}
4022									value=${t.id}
4023									.checked=${t.id===this.value}
4024								/>
4025								<span
4026									aria-hidden="true"
4027									class="styled-radio ${this.shape} ${t.styleOverrides?"has-before":""}"
4028									style=${$y(e)}
4029								></span>
4030							</label>
4031						`}))}
4032				</fieldset>
4033			</form>
4034		`}};yM.tokens={responsive:{}},yM.styles=[fM],EM([E(".styled-radio-input")],yM.prototype,"radioInputs",2),EM([(0,p.n)({type:String})],yM.prototype,"radioSetName",2),EM([(0,p.n)({type:Array})],yM.prototype,"radioItems",2),EM([(0,p.n)({type:Function})],yM.prototype,"onChange",2),EM([(0,p.n)({type:String})],yM.prototype,"value",2),EM([(0,p.n)({type:String})],yM.prototype,"shape",2),yM=EM([p_],yM);const SM=p.i`
4035	social-icon {
4036		display: var(--social-icon--display);
4037	}
4038
4039	.share-icons-container {
4040		padding: var(--share-icons__container--padding);
4041	}
4042
4043	.container {
4044		display: var(--container--display);
4045		flex-direction: var(--container--flex-direction);
4046		align-items: var(--container--align-items);
4047		gap: var(--container--gap);
4048		align-self: var(--container--align-self);
4049
4050		&.social {
4051			margin: var(--container__social--margin);
4052		}
4053	}
4054`;let TM=class{constructor(t,e){this.timeQueryParamKey="t",this.socialPopupFeatures="width=600, height=400",this.shareAtTimeState={shareTimeInMs:null,doesAppendTimecode:!1},(this.host=t).addController(this)}get hideShareAt(){return this.host.localState?.modalState?.hideShareAt??!1}get facebookLabel(){return this.host.dictionary.translate(Xl.MEDIA.SHARE.FACEBOOK_LOGO_LABEL,"Share on Facebook")}get xLabel(){return this.host.dictionary.translate(Xl.MEDIA.SHARE.X_LOGO_LABEL,"Share on X")}get emailLabel(){return this.host.dictionary.translate(Xl.MEDIA.SHARE.EMAIL_LOGO_LABEL,"Share via Email")}get brandName(){return"the website"}get copyLabel(){return this.host.dictionary.translate(Xl.MEDIA.SHARE.COPY_LABEL,"Copy Link")}get embedLabel(){return this.host.dictionary.translate(Xl.MEDIA.SHARE.EMBED_LOGO_LABEL,"Embed")}get copiedLabel(){return this.host.dictionary.translate(Xl.MEDIA.SHARE.COPIED_LABEL,"Copied!")}hostConnected(){}hostDisconnected(){}getFacebookHref(t,e){return`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(t)}&title=${encodeURIComponent(e)}`}getXHref(t,e){return`https://x.com/intent/post?text=${encodeURIComponent(e)}&url=${encodeURIComponent(t)}`}getMailtoHref(t){const{brandName:e}=this,n=`Check out this video on ${e}: ${t}`;return`mailto:?subject=${encodeURIComponent(`Check out this video on ${e}.`)}&body=${encodeURIComponent(n)}`}getShareUrl(t){return this.appendTimeToURL(t)}getEmbedUrl(t,e){return this.appendTimeToURL(t||e)}appendTimeToURL(t){const{timeQueryParamKey:e,shareAtTimeState:n}=this,{shareTimeInMs:i,doesAppendTimecode:r}=n;if(!r||null===i||!t)return t;const o=new URL(t),a=Math.floor(i/1e3).toString();return o.searchParams.set(e,a),o.toString()}};Object.getOwnPropertyDescriptor;const CM={isLive:!1,contentTitle:"",shareUrl:"",embedUrl:""},wM=t=>{const e=t.playbackCriteria?.current?.metadata,n=e?.title,i="string"==typeof n?n:n?.text??"";return{isLive:t.streamDetails?.isLive??!1,contentTitle:i,shareUrl:e?.share?.url??"",embedUrl:e?.share?.embedUrl??""}};let AM=class extends pt{constructor(){super(),this.streamController=new G_(this,wM,CM),this.controller=new TM(this),this.handleAnalyticsEventClick=t=>
4054{this.commandBus?.dispatchCommand(Ql.SHARE_MENU_CLICK,{label:"Share icons",...t})},this.onShareAtTimeChange=t=>{this.controller.shareAtTimeState=t,this.requestUpdate()};const{Controller:t}=n_(this);t&&(this.controller=new t(this))}renderShareAtTime(){const{isLive:t}=this.streamController.value,{hideShareAt:e}=this.controller;return Q_(t||e,(()=>p.E),(()=>p.x`
4055				<share-at-time .onChange=${this.onShareAtTimeChange}></share-at-time>
4056			`))}renderSocialIcons(){const{handleAnalyticsEventClick:t,controller:e,streamController:n}=this,{contentTitle:i,shareUrl:r}=n.value,o=e.getShareUrl(r),{facebookLabel:a,xLabel:s,emailLabel:l,socialPopupFeatures:c}=e,d=e.getFacebookHref(o,i),u=e.getXHref(o,i),h=e.getMailtoHref(o);return p.x`
4057			<div class="social container">
4058				<social-icon
4059					className="facebook medium expanded"
4060					platform="facebook"
4061					target="_blank"
4062					href=${d}
4063					ariaLabel=${a}
4064					features=${c}
4065					.trackingHandler=${t}
4066				></social-icon>
4067				<social-icon
4068					className="x medium expanded"
4069					platform="x"
4070					target="_blank"
4071					href=${u}
4072					ariaLabel=${s}
4073					features=${c}
4074					.trackingHandler=${t}
4075				></social-icon>
4076				<social-icon
4077					className="email medium expanded"
4078					platform="email"
4079					behavior="email"
4080					target="_blank"
4081					href="${h}"
4082					ariaLabel=${l}
4083					.trackingHandler=${t}
4084				></social-icon>
4085			</div>
4086		`}renderCopyIcons(){const{handleAnalyticsEventClick:t,controller:e,streamController:n}=this,{shareUrl:i,embedUrl:r}=n.value,o=e.getShareUrl(i),a=e.getEmbedUrl(r,i),{copiedLabel:s,copyLabel:l,embedLabel:c}=e;return p.x`
4087			<div class="copy container">
4088				<social-icon
4089					className="embed large expanded"
4090					platform="embed"
4091					behavior="embed"
4092					href=${a}
4093					ariaLabel=${c}
4094					label=${c}
4095					feedback=${s}
4096					.trackingHandler=${t}
4097				></social-icon>
4098				<social-icon
4099					className="link large expanded"
4100					platform="link"
4101					behavior="link"
4102					href=${o}
4103					ariaLabel=${l}
4104					feedback=${s}
4105					label=${l}
4106					.trackingHandler=${t}
4107				></social-icon>
4108			</div>
4109		`}render(){return p.x`
4110			<div class="share-icons-container">
4111				${this.renderShareAtTime()} ${this.renderSocialIcons()}
4112				${this.renderCopyIcons()}
4113			</div>
4114		`}};AM.tokens={"social-icon--display":"contents","share-icons__container--padding":"0 12px 12px 12px","container--display":"flex","container--flex-direction":"row","container--align-items":"center","container--gap":"10px","container--align-self":"stretch","container__social--margin":"12px 0 8px 0",responsive:{}},AM.styles=[SM],AM=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4114)([Y,p_],AM);const IM=t=>t??p.E,OM=Wb(`\n    ${xy}\n\n\t.modal-menu-header-item {\n\t\tposition: var(--item--position);\n\t\tdisplay: var(--display,);\n\t\tinline-size: var(--item--width);\n\t\tblock-size: var(--item--height);\n\t\tflex-direction: var(--flex-direction);\n\t\tjustify-content: var(--justify-content);\n\t\tpadding: var(--item--padding);\n\t\talign-items: var(--item--align-items);\n\t}\n\n\t.modal-menu-header__title {\n\t\tmargin: 0;\n\t\tinline-size: var(--title--width);\n\t\tcolor: var(--title--color);\n\t\ttext-align: var(--title--text-align);\n\t\tfont-size: var(--title--font-size);\n\t\tfont-family: var(--title--font-family);\n\t\tfont-style: var(--title--font-style);\n\t\tfont-weight: var(--title--font-weight);\n\t\tline-height: var(--title--line-height);\n\t\tletter-spacing: var(--title--letter-spacing);\n\t\ttext-transform: var(--title--text-transform);\n\t\tpadding-block-start: var(--title--padding-top);\n\t\tpadding-block-end: var(--title--padding-bottom);\n\t\tborder-block-end: var(--title--border-bottom);\n\t}\n\n\t.modal-menu-header__back-button--container {\n\t\tposition: absolute;\n\t\tinset-inline-end: var(--back-button-container--right);\n\t\tinset-inline-start: var(--back-button-container--left);\n\t\tblock-size: var(--back-button-container--height);\n\t\tpadding: var(--back-button-container--padding);\n\t\t--button-container--width: var(--back-button-container--width);\n\t\t--button-container--height: var(--back-button-container--height);\n\t}\n\n\t.modal-menu-header__back-button {\n\t\t--control--mask: var(--back-button--mask-image);\n\t\t--controls-background-color: var(--back-button--background-color);\n\t\t--control-height: var(--back-button-container--height);\n\t\t--control-width: var(--back-button-container--width);\n\t}\n\n\t.modal-menu-header__close-button--container {\n\t\tposition: absolute;\n\t\tinset-inline-end: var(--close-button-container--right);\n\t\tblock-size: var(--close-button-container--height);\n\t\tpadding: var(--close-button-container--padding);\n\t\t--button-container--width: var(--close-button-container--width);\n\t\t--button-container--height: var(--close-button-container--height);\n\t}\n\n\t.modal-menu-header__close-button {\n\t\t--control--mask: var(--close-button--mask-image);\n\t\t--controls-background-color: var(--close-button--background-color);\n\t\t--control-height: var(--close-button-container--height);\n\t\t--control-width: var(--close-button-container--width);\n\t}\n\n\t:host([dir="rtl"]) .modal-menu-header__back-button {\n\t\ttransform: scaleX(-1);\n\t}\n\n\t:host([dir="rtl"]) .modal-menu-header__title,\n\t:host(:lang(th)) .modal-menu-header__title {\n\t\tfont-family: inherit;\n\t}\n\n\t:host(:lang(ar)) .modal-menu-header__title {\n\t\tletter-spacing: normal;\n\t}\n`),RM={"item--position":"relative",display:"flex","item--width":"100%","item--height":"41px","item--padding":"unset","item--align-items":"unset","flex-direction":"column","justify-content":"center","title--width":"inherit","title--color":"#DCDDDF","title--text-align":"center","title--font-size":"15px","title--font-style":"normal","title--font-weight":"700","title--line-height":"28px","title--letter-spacing":"1","title--text-transform":"none","title--padding-top":"6px","title--padding-bottom":"6px","title--border-bottom":"1px solid #48494a","title--font-family":"inherit","close-button-container--height":"14px","close-button-container--width":"14px","close-button-container--right":"0","close-button-container--padding":"6px","close-button--mask-image":`url("${bN}")`,"close-button--background-color":"#ffffff","back-button-container--height":"14px","back-button-container--width":"14px","back-button-container--right":"24px","back-button-container--left":"0","back-button-container--padding":"6px","back-button--mask-image":`url("${_N}")`,"back-button--background-color":"#ffffff",responsive:{}};var xM=Object.defineProperty,LM=Object.getOwnPropertyDescriptor,kM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?LM(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&xM(e,n,o),o};let PM=class extends pt{constructor(){super(...arguments),this.hasBackButton=!1,this.hasCloseButton=!1,this.titleLocaleClass="locale-body-headline-large"}render(){const t=this.hasCloseButton?Hy({onClick:this.onCloseClick.bind(this),ariaLabel:this.dictionary?.translate(Xl.MEDIA.CONTROLS.CLOSE,"Close"),className:"modal-menu-header__close-button control",containerClassName:"modal-menu-header__close-button--container",tabIndex:0,part:"modal-menu-header__close-button",doesTemplateHandleKeyEvents:!0}):p.E,e=this.hasBackButton?Hy({onClick:this.onBackClick.bind(this),ariaLabel:this.dictionary?.translate(Xl.MEDIA.CONTROLS.BACK,"Back"),className:"modal-menu-header__back-button control",containerClassName:"modal-menu-header__back-button--container",tabIndex:0,part:"modal-menu-header__back",doesTemplateHandleKeyEvents:!0}):p.E;return p.x`
4115			<header class="modal-menu-header-item" role="banner">
4116				${e}
4117				<h2
4118					class="modal-menu-header__title ${this.titleLocaleClass}"
4119					id=${IM(this.titleId??void 0)}
4120				>
4121					${this.title}
4122				</h2>
4123				${t}
4124			</header>
4125		`}getQAElements(){return{closeButton:this.closeButton,backButton:this.backButton,heading:this.heading}}};PM.tokens=RM,PM.styles=[OM],kM([b(".modal-menu-header__close-button")],PM.prototype,"closeButton",2),kM([b(".modal-menu-header__back-button")],PM.prototype,"backButton",2),kM([b(".modal-menu-header__title")],PM.prototype,"heading",2),kM([(0,p.n)({type:String})],PM.prototype,"title",2),kM([(0,p.n)({type:String})],PM.prototype,"titleId",2),kM([(0,p.n)({type:Boolean})],PM.prototype,"hasBackButton",2),kM([(0,p.n)({type:Boolean})],PM.prototype,"hasCloseButton",2),kM([(0,p.n)({type:String})],PM.prototype,"titleLocaleClass",2),kM([(0,p.n)({type:Function})],PM.prototype,"onBackClick",2),kM([(0,p.n)({type:Function})],PM.prototype,"onCloseClick",2),PM=kM([p_],PM);const DM=Wb("\n\tdialog {\n\t\tpadding: var(--dialog--padding);\n\t\tborder: var(--dialog--border);\n\t\tbackground: none;\n\t\tinset-block-start: var(--dialog--top);\n\t\tinset-inline-start: var(--dialog--left);\n\t\tinset-inline-end: var(--dialog--right);\n\t\tinset-block-end: var(--dialog--bottom);\n\t\tz-index: var(--dialog--z-index);\n\t\toverflow: var(--dialog--overflow);\n\t\tborder-radius: var(--dialog--border-radius);\n\t\tbackground-color: var(--dialog--background-color);\n\t\t-webkit-backdrop-filter: var(--dialog--backdrop-filter);\n\t\tbackdrop-filter: var(--dialog--backdrop-filter);\n\t\tcolor: var(--dialog--text-color);\n\t\tinline-size: var(--dialog--width);\n\t\tmax-inline-size: 100%;\n\t\ttransform: var(--dialog--transform, none);\n\t\tmax-block-size: min(\n\t\t\tvar(--dialog--max-height, 100%),\n\t\t\tcalc(100% - var(--dialog--bottom, 0px))\n\t\t);\n\t\tbox-sizing: border-box;\n\t\tmargin-inline: auto;\n\t}\n\n\tdialog[open] {\n\t\tdisplay: inline-flex;\n\t\tflex-direction: column;\n\t\toutline: none;\n\t}\n\n\tdialog[open] > * {\n\t\tmin-height: 0;\n\t}\n\n\tdialog.controls-open {\n\t\tinset-block-end: var(--dialog--controls-open--bottom, var(--dialog--bottom));\n\t\tblock-size: var(--dialog--controls-open--height, var(--dialog--height));\n\t}\n\n\tdialog.video-container-vertical {\n\t\tinset-block-start: var(--dialog--vertical-container--top, var(--dialog--top));\n\t\tinset-inline-start: var(--dialog--vertical-container--left, var(--dialog--left));\n\t\tinset-inline-end: var(--dialog--vertical-container--right, var(--dialog--right));\n\t\tinset-block-end: var(--dialog--vertical-container--bottom, var(--dialog--bottom));\n\t\tinline-size: var(--dialog--vertical-container--width, var(--dialog--width));\n\t\tmax-block-size: var(--dialog--vertical-container--max-height, min(\n\t\t\tvar(--dialog--max-height, 100%),\n\t\t\tcalc(100% - var(--dialog--bottom, 0px))\n\t\t));\n\t\ttransform: var(--dialog--vertical-container--transform, var(--dialog--transform, none));\n\t\tborder-radius: var(--dialog--vertical-container--border-radius, var(--dialog--border-radius));\n\t}\n\n\t.dialog-scrim {\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tbackground: var(--dialog--scrim--background, transparent);\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t\tz-index: var(--dialog--scrim--z-index, 9998);\n\t\ttransition: opacity\n\t\t\tvar(--dialog--scrim--transition-duration, 200ms)\n\t\t\tvar(--dialog--scrim--transition-timing, ease);\n\t}\n\n\t.dialog-scrim.is-visible {\n\t\topacity: 1;\n\t\tpointer-events: auto;\n\t}\n"),NM={"dialog--top":"0","dialog--left":"0","dialog--right":"0","dialog--bottom":"0","dialog--vertical-container--top":"auto","dialog--vertical-container--left":"","dialog--vertical-container--right":"","dialog--vertical-container--bottom":"","dialog--vertical-container--width":"","dialog--vertical-container--max-height":"","dialog--vertical-container--transform":"","dialog--vertical-container--border-radius":"","dialog--scrim--background":"transparent","dialog--scrim--transition-duration":"150ms","dialog--scrim--transition-timing":"ease","dialog--scrim--z-index":"9998","dialog--border-radius":"6px","dialog--background-color":"rgba(20, 22, 24, 0.95)","dialog--text-color":"#fff","dialog--width":"316px","dialog--max-height":"100%","dialog--transform":"none","dialog--content-max-height":"276px","dialog--z-index":"9999","dialog--padding":"0px","dialog--border":"none","dialog--overflow":"hidden",responsive:{extraExtraSmall:{"dialog--left":"0","dialog--top":"unset","dialog--right":"0","dialog--bottom":"10px","dialog--transform":"none","dialog--content-max-height":"316px"},small:{"dialog--content-max-height":"356px"},medium:{"dialog--left":"auto","dialog--top":"unset","dialog--right":"3%","dialog--bottom":"110px","dialog--transform":"none","dialog--content-max-height":"412px"},extraLarge:{"dialog--content-max-height":"unset"}}};var MM,UM,BM,VM,FM,zM;const $M=bt(function(){if(zM)return FM;zM=1;var t=function(){if(Bv)return Uv;Bv=1;var t=kv?Lv:(kv=1,Lv=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}),e=Dv?Pv:(Dv=1,Pv=function(t){return t!=t}),n=Mv?Nv:(Mv=1,Nv=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1});return Uv=function(i,r,o){return r==r?n(i,r,o):t(i,e,o)}}(),e=function(){if(VM)return BM;VM=1;var t=function(){if(UM)return MM;UM=1;var t=rf();return MM=function(e){return e?1/0===(e=t(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}}();return BM=function(e){var n=t(e),i=n%1;return n==n?i?n-i:n:0}}(),n=Math.max;return FM=function(i,r,o){var a=null==i?0:i.length;if(!a)return-1;var s=null==o?0:e(o);return s<0&&(s=n(a+s,0)),t(i,r,s)}}());class HM{constructor(t){this.isResponsiveTakeover=!1,this.defaultViewName="main",this.allowsVerticalVideoOverride=!1,this.resetToMainView=()=>{this.navigateToMainView()},this.resizeHandler=null,(this.host=t).addController(this)}get thisModalsState(){const{localState:t}=this.host;
4125return t?.modalState.modals[this.host.modalName]}get currentViewName(){return this.thisModalsState?.currentViewName||this.defaultViewName}get commandBus(){return this.host.commandBus}get isModalOpen(){return this.thisModalsState?.isOpen||!1}get isAnyModalOpen(){const{localState:t}=this.host;return t.modalState.isAnyModalOpen||!1}get ariaLabel(){return null}get ariaLabelledBy(){return null}get isControlsOverlayVisible(){const{localState:t}=this.host;return t?.overlayState?.areControlsVisible??!1}get isVerticalVideo(){const{localState:t}=this.host;return t?.playerMode?.isVerticalVideo??!1}get forceHideExperienceModals(){const{localState:t}=this.host;return t?.modalState?.forceHide??!1}get useVerticalShareModal(){const{localState:t}=this.host;return t?.playerMode?.useVerticalShareModal??!1}get effectiveForceHide(){return!(!this.forceHideExperienceModals||this.allowsVerticalVideoOverride&&this.useVerticalShareModal)}get useVerticalContainerLayout(){return this.useVerticalShareModal&&this.forceHideExperienceModals}hostConnected(){const{localState:t}=this.host;t?.createModalStateEntry(this.host.modalName),this.unsubscribeFromLocalState=t?.subscribe(this.host,(t=>({isAnyModalOpen:t.modalState.isAnyModalOpen,isModalOpen:t.modalState.modals[this.host.modalName]?.isOpen,currentViewName:t.modalState.modals[this.host.modalName]?.currentViewName,areControlsVisible:t.overlayState?.areControlsVisible,takeoverIsOpen:t.takeoverState?.isOpen,takeoverOverlayName:t.takeoverState?.overlayName,isVerticalVideo:t.playerMode?.isVerticalVideo,useVerticalShareModal:t.playerMode?.useVerticalShareModal,forceHide:t.modalState?.forceHide}))),p.S.addEventListener("beforeunload",this.resetToMainView),this.setupResizeListener()}hostDisconnected(){this.unsubscribeFromLocalState?.(),this.unsubscribeFromLocalState=null,p.S.removeEventListener("beforeunload",this.resetToMainView),this.cleanupResizeListener()}toggle(){const{isModalOpen:t,isAnyModalOpen:e}=this;if(!t&&e)return void console.warn(`BaseDialogModalController: Cannot open modal "${this.host.modalName}" because another modal is already open.`);const n=!t;this.dispatchModalEvent({type:n?Nf:Mf}),this.updateResponsiveTakeover(n)}dispatchModalEvent({modalName:t=this.host.modalName,type:e=null,currentViewName:n=this.currentViewName}){const{localState:i}=this.host;if(e===Mf&&(n=this.defaultViewName),this?.commandBus?.dispatchCommand(Ql.MODAL_EVENT,{modalName:t,type:e,currentViewName:n,localState:i}),e===Nf){const e=this.getModalTrackingData();this.commandBus?.dispatchCommand($l.MODAL_VISIBLE,{modalName:t,...void 0===e?{}:{data:e}})}}getModalTrackingData(){}navigateToView(t){this.isModalOpen?this.viewNames&&-1!==$M(this.viewNames,t)?(this.dispatchModalEvent({type:Uf,currentViewName:t}),this.host.focusOnDialog()):console.warn(`BaseDialogModalController: Invalid view name "${t}"`):console.warn(`BaseDialogModalController: Cannot change view to "${t}" because modal "${this.host.modalName}" is not open.`)}navigateToMainView(){this.navigateToView(this.defaultViewName)}updateResponsiveTakeover(t,e){if(!this.isResponsiveTakeover)return;const{localState:n,container:i,breakpoints:r}=this.host,o=this.host.breakpoint??"medium",a=r?.get(o);if(!a)return;const s=null!=e?e:i?.clientWidth,l=t&&null!=s&&s<a;n?.updateTakeoverState(l,this.host.modalName)}setupResizeListener(){this.isResponsiveTakeover&&(this.resizeHandler=t=>{const{width:e,container:n}=t.detail||{};Number.isFinite(e)&&(n&&n!==this.host.container||this.isModalOpen&&this.updateResponsiveTakeover(!0,e))},window.addEventListener(Ct,this.resizeHandler))}cleanupResizeListener(){this.resizeHandler&&(window.removeEventListener(Ct,this.resizeHandler),this.resizeHandler=null)}closeModal(t){this.dispatchModalEvent({type:Mf}),this.updateResponsiveTakeover(!1),this.host.updateComplete.then((()=>{!1!==this.host.isConnected&&this.host.handleClose?.()}))}}var GM=Object.defineProperty,YM=Object.getOwnPropertyDescriptor,jM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?YM(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&GM(e,n,o),o};let KM=class extends pt{constructor(){super(...arguments),this.breakpoint="medium",this.controller=new HM(this),this.releaseFocusIsolation=null,this.handleDialogKeyDown=t=>{"Escape"===t.key&&this.controller.closeModal()},this.handleDialogClose=()=>{this.controller.isModalOpen&&this.controller.closeModal()},this.open=(t=!1)=>{t?this.dialog?.showModal?.():this.dialog?.show?.(),this.addDialogListeners(),this.updateComplete.then((()=>{!1!==this.isConnected&&(this.focusOnDialog(),this.applyFocusIsolation())}))},this.close=()=>{this.clearFocusIsolation(),this.resetScroll(),this.dialog?.close(),this.removeDialogListeners()},this.resetScroll=()=>{this.dialog&&(this.dialog.scrollTop=0)},this.focusOnDialog=()=>{this.moveFocusTo(this.dialog)},this.handleScrimClick=()=>{this.controller.closeModal()}}get isDialogOpen(){return this.dialog?.open||!1}get renderCurrentView(){return this.views?.[this.controller.currentViewName]||(()=>p.E)}connectedCallback(){super.connectedCallback(),this.createViews()}disconnectedCallback(){this.removeDialogListeners(),this.clearFocusIsolation(),super.disconnectedCallback()}updated(t){super.updated(t);const{isModalOpen:e,effectiveForceHide:n}=this.controller;n&&e?this.controller.closeModal():this.isDialogOpen!==e&&(e?this.open():this.close())}addDialogListeners(){document.addEventListener("keydown",this.handleDialogKeyDown)}removeDialogListeners(){document.removeEventListener("keydown",this.handleDialogKeyDown)}applyFocusIsolation(){this.clearFocusIsolation(),this.dialog&&this.container&&rt(this.dialog)&&(this.releaseFocusIsolation=st(this.container,this.getIsolationTarget()))}getIsolationTarget(){const t=this.getRootNode();return t instanceof ShadowRoot&&t.host instanceof HTMLElement?t.host:this}clearFocusIsolation(){this.releaseFocusIsolation?.(),this.releaseFocusIsolation=null}addViewsToController(){this.views&&(this.controller.viewNames=Object.keys(this.views))}createViews(){this.addViewsToController()}render(){const{ariaLabel:t,ariaLabelledBy:e,isControlsOverlayVisible:n,isModalOpen:i,useVerticalContainerLayout:r,currentViewName:o}=this.controller,a={[`${this.modalName}-dialog`]:!0,[`view-${o}`]:!!o,"controls-open":n,"video-container-vertical":r},s={"dialog-scrim":!0,"is-visible":r&&i};return p.x`
4126			<div
4127				class="${My(s)}"
4128				aria-hidden="true"
4129				@click=${this.handleScrimClick}
4130			></div>
4131			<dialog
4132				class="${My(a)}"
4133				aria-label=${IM(t??void 0)}
4134				aria-labelledby=${IM(e??void 0)}
4135				tabindex="-1"
4136				aria-modal="true"
4137				@close=${this.handleDialogClose}
4138			>
4139				${this.renderCurrentView()}
4140			</dialog>
4141		`}getQAElements(){return{dialog:this.dialog,viewRoot:this.dialog?.firstElementChild??null}}};KM.tokens=NM,KM.styles=[DM],jM([b("dialog")],KM.prototype,"dialog",2),jM([(0,p.n)({type:String}
4141)],KM.prototype,"modalName",2),jM([(0,p.n)({type:Function})],KM.prototype,"handleClose",2),KM=jM([p_,L_({target:t=>t.shadowRoot.querySelector("dialog[open]"),watch:t=>t.shadowRoot.querySelector("dialog"),scope:t=>t?.container})],KM);class WM{constructor(t){this.modalName="baseModal",(this.host=t).addController(this)}get isModalOpen(){return this.host?.modalController?.isModalOpen??!1}get tooltipLabel(){return""}get ariaLabel(){return this.tooltipLabel}get tabIndex(){return 0}get classMapObject(){return{control:!0,"modal-control":!0,active:this.isModalOpen}}get onClick(){return this.host?.primaryAction}get buttonProps(){const{ariaLabel:t,tooltipLabel:e,tabIndex:n,classMapObject:i,onClick:r}=this,{extraClasses:o=""}=this.host;return{onClick:r,ariaLabel:t,tooltipLabel:e||t,className:My(i),containerClassName:o,tabIndex:n,doesTemplateHandleKeyEvents:!0}}hostConnected(){const{localState:t}=this.host;t?.createModalStateEntry(this.modalName),this.unsubscribeToModalSate=t?.subscribe(this.host,(t=>({isModalOpen:t.modalState.modals[this.modalName]?.isOpen})))}hostDisconnected(){this.unsubscribeToModalSate?.(),this.unsubscribeToModalSate=null}isVisible(){return!0}}const qM=Wb(`\n    ${xy}\n\n    .modal-control {\n        --control--mask: var(--modal-control-icon);\n    }\n\n    .modal-control.active {\n\t\tvisibility: var(--modal-open--visibility);\n\t}\n\n\t:host .modal-control.active {\n\t\t--control--mask: var(\n\t\t\t--modal-control-icon--selected,\n\t\t\tvar(--modal-control-icon)\n\t\t);\n\t}\n\n\t/* Hide only trigger UI while keeping modal host mounted */\n\t:host([modal-open]) .button-container {\n\t\tvisibility: var(--modal-open--visibility);\n\t\tpointer-events: var(--modal-open--pointer-events, auto);\n\t}\n\n\t:host([modal-open]) info-tooltip {\n\t\tvisibility: var(--modal-open--visibility);\n\t\tpointer-events: var(--modal-open--pointer-events, auto);\n\t}\n\n\t.modal-control:focus-visible {\n\t\toutline: var(--modal-control-focus-outline, 2px solid #fff);\n\t\toutline-offset: -2px;\n\t}\n`),XM={"button-container--width":"30px","button-container--height":"30px","button-container--display":"flex","button-container--align-items":"center","button-container--justify-content":"center","button-container--opacity":"1","button-container--opacity-hover":"1","button-container__round--size":"","button-container__round--background-color":"","button-container__round__hover--background-color":"","control-height":"30px","control-width":"30px","control--mask-size":"auto","control-cursor":"pointer","controls-background-color":"#FFF","controls--active-background-color":"#FFF","controls--hover-background-color":"","controls--pressed-background-color":"","controls--active-hover-background-color":"","modal-control-icon":"","modal-control-icon--selected":"","modal-open--visibility":"unset","modal-open--pointer-events":"auto"};var ZM=Object.defineProperty,QM=Object.getOwnPropertyDescriptor,JM=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?QM(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&ZM(e,n,o),o};let tU=class extends pt{constructor(){super(...arguments),this.controller=new WM(this),this.handleClose=()=>{this.focusOnButton()},this.primaryAction=()=>{this.modalController?.toggle()}}get modalController(){return this.modal?.controller}focusOnButton(){this.moveFocusTo(this.button)}getQAElements(){return{button:this.button,toggle:this.button,modal:this.modal?.getQAElements?.(),modalElement:this.modal}}renderModal(){const{modalName:t}=this.controller;return p.x`<base-dialog-modal
4142			modalName="${t}"
4143			.handleClose=${this.handleClose}
4144		></base-dialog-modal>`}renderButton(){const{tooltipPosition:t,shouldRenderTooltip:e,shouldShowTooltipOnFocus:n}=this,{buttonProps:i}=this.controller;return p.x`
4145			<info-tooltip
4146				tooltipPosition="${t}"
4147				tooltipLabel="${i.tooltipLabel}"
4148				.shouldRenderTooltip=${e}
4149				.shouldShowTooltipOnFocus=${n}
4150			>
4151				${Hy(i)}
4152			</info-tooltip>
4153		`}render(){return this.hidden=!this.controller.isVisible(),this.toggleAttribute("modal-open",this.modalController?.isModalOpen??!1),p.x` ${this.renderModal()} ${this.renderButton()} `}};tU.styles=[qM],tU.tokens=XM,JM([b("button")],tU.prototype,"button",2),JM([b("base-dialog-modal")],tU.prototype,"modal",2),tU=JM([p_],tU);var eU=Object.defineProperty,nU=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&eU(e,n,o),o};const iU=class extends pt{constructor(){super(...arguments),this.onCloseModalClick=()=>{this.modalController?.closeModal?.(!0)},this.onReturnToMainViewClick=()=>{this.modalController?.navigateToMainView?.()}}render(){return p.x`<div class="base-dialog-modal-view">
4154			Base Dialog Modal View Content
4155		</div>`}};iU.styles=[];let rU=iU;nU([(0,p.n)({type:String})],rU.prototype,"viewName"),nU([(0,p.n)({attribute:!1})],rU.prototype,"modalController");const oU={...NM};class aU extends HM{constructor(){super(...arguments),this.isResponsiveTakeover=!0,this.allowsVerticalVideoOverride=!0}get ariaLabel(){return null}get ariaLabelledBy(){return this.isModalOpen?Bf:null}}Object.getOwnPropertyDescriptor;let sU=class extends KM{constructor(){super(...arguments),this.controller=new aU(this)}renderMainView(){return p.x`<main-share-view
4156			.modalController=${this.controller}
4157		></main-share-view>`}createViews(){this.views={main:this.renderMainView},this.addViewsToController()}queryShareSocialIconHosts(){const t=this.dialog?.querySelector("main-share-view"),e=t?.shadowRoot?.querySelector("share-icons"),n=e?.shadowRoot?.querySelectorAll("social-icon")??null;return n?Array.from(n):[]}queryShareHeadingElement(){const t=this.dialog?.querySelector("main-share-view"),e=t?.shadowRoot?.querySelector("modal-menu-header");return e instanceof PM?e.getQAElements().heading??null:null}getQAElements(){return{...super.getQAElements(),socialIconHosts:this.queryShareSocialIconHosts(),shareHeading:this.queryShareHeadingElement()}}};sU.styles=[...KM.styles],sU.tokens=oU,sU=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4157)([p_],sU);let lU=class extends WM{constructor(){super(...arguments),this.modalName=Df.SHARE_MODAL}get tooltipLabel(){const{dictionary:t}=this.host;return t.translate(Xl.MEDIA.CONTROLS.SHARE,"Share")}get classMapObject(){return{...super.classMapObject,"share-modal-control-button":!0}}};const cU={...XM,"modal-control-icon":`url("${QC}")`,"modal-open--visibility":"hidden","modal-open--pointer-events":"none"};var dU=Object.defineProperty,uU=Object.getOwnPropertyDescriptor,pU=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?uU(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&dU(e,n,o),o};let hU=class extends tU{constructor(){super(...arguments),this.controller=new lU(this)}renderModal(){const{modalName:t}=this.controller;return p.x`<share-modal
4158			modalName="${t}"
4159			.handleClose=${this.handleClose}
4160		></share-modal>`}};hU.styles=[...tU.styles],hU.tokens=cU,pU([b("share-modal")],hU.prototype,"modal",2),hU=pU([p_],hU);class mU{get title(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SHARE,"Share")}constructor(t){(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}}const gU=(t,e,n)=>{const i=t.filter((t=>((t,e)=>!!t&&(e.language===t||t.startsWith(`${e.language}-`)||e.language?.startsWith(`${t}-`)))(e,t)));return i.find((t=>"boolean"==typeof n&&!!t.hasDescribesVideo===n))??i[0]},vU=({tracks:t=[],selectedLanguage:e,languagePriorityList:n=[],preferDescribesVideo:i})=>t.find((t=>t.isSelected))??gU(t,e,i)??n.map((e=>gU(t,e,i))).find(Boolean),fU={...NM};class bU extends HM{constructor(){super(...arguments),this.isResponsiveTakeover=!0}getModalTrackingData(){return this.host.getTrackingSnapshot()}get isControlsOverlayVisible(){if(super.isControlsOverlayVisible)return!0;if(!this.isModalOpen)return!1;const{isOpen:t,overlayName:e}=this.host.localState?.takeoverState??{};return Boolean(t&&(e===Df.SETTINGS_MODAL||"captionSettings"===e))}get ariaLabel(){return this.host?.dictionary&&this.isModalOpen?this.host.dictionary.translate(Xl.MEDIA.CONTROLS.SETTINGS,"Settings Control"):null}navigateToAudioSelection(){this.navigateToView("audioSelection")}navigateToSubtitlesSelection(){this.navigateToView("subtitlesSelection")}navigateToCaptionSettings(){this.navigateToView("captionSettings")}}const _U=Wb("\n\t/* Caption settings view-specific positioning */\n\tdialog.view-captionSettings {\n\t\tinset-inline-end: var(--dialog--captionSettings--right, var(--dialog--right));\n\t\tinset-block-end: var(--dialog--captionSettings--bottom, var(--dialog--bottom));\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t}\n\n\tdialog.view-captionSettings caption-settings-view {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t\tmin-height: 0;\n\t\twidth: 100%;\n\t\tpadding: var(--caption-settings-padding);\n\t\tinline-size: 100%;\n\t}\n");var EU=Object.defineProperty,yU=Object.getOwnPropertyDescriptor,SU=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?yU(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&EU(e,n,o),o};const TU={captionsEnabled:!1,captionTracks:[],audioTracks:[],audioSelectedLanguage:void 0,audioLanguagePriorityList:[],audioPreferDescribesVideo:!1},CU=t=>({captionsEnabled:t.captions?.enabled??!1,captionTracks:t.captions?.tracks??[],audioTracks:t.audio?.tracks??[],audioSelectedLanguage:t.audio?.selectedLanguage,audioLanguagePriorityList:t.audio?.preferences?.languagePriorityList??[],audioPreferDescribesVideo:t.audio?.preferences?.preferDescribesVideo});let wU=class extends KM{constructor(){super(...arguments),this.controller=new bU(this),this.trackingStreamController=new G_(this,CU,TU)}getCurrentViewElement(){switch(this.controller.currentViewName){case"audioSelection":return this.audioSelectionView;case"subtitlesSelection":return this.subtitlesSelectionView;case"captionSettings":return this.captionSettingsView;default:return this.mainView}}getCurrentViewQaElements(){switch(this.controller.currentViewName){case"audioSelection":return this.audioSelectionView?.getQAElements?.();case"subtitlesSelection":return this.subtitlesSelectionView?.getQAElements?.();case"captionSettings":return this.captionSettingsView?.getQAElements?.();default:return this.mainView?.getQAElements?.()}}getTrackingSnapshot(){const{captionsEnabled:t,captionTracks:e,audioTracks:n,audioSelectedLanguage:i,audioLanguagePriorityList:r,audioPreferDescribesVideo:o}=this.trackingStreamController.value,a=e.find((t=>t.isSelected));return{audioTrack:vU({tracks:n,selectedLanguage:i,languagePriorityList:r,preferDescribesVideo:o}),subtitleTrack:a,subtitlesEnabled:t}}getQAElements(){return{...super.getQAElements(),mainView:this.mainView?.getQAElements?.(),audioSelectionView:this.audioSelectionView?.getQAElements?.(),subtitlesSelectionView:this.subtitlesSelectionView?.getQAElements?.(),captionSettingsView:this.captionSettingsView?.getQAElements?.(),currentView:this.getCurrentViewQaElements(),currentViewElement:this.getCurrentViewElement()}}renderMainView(){return p.x`<main-settings-view
4161			.modalController=${this.controller}
4162		></main-settings-view>`}renderAudioSelectionView(){return p.x`<audio-selection-view
4163			.modalController=${this.controller}
4164		></audio-selection-view>`}renderSubtitlesSelectionView(){return p.x`<subtitles-selection-view
4165			.modalController=${this.controller}
4166		></subtitles-selection-view>`}renderCaptionSettingsView(){return p.x`<caption-settings-view
4167			.modalController=${this.controller}
4168		></caption-settings-view>`}createViews(){this.views={main:this.renderMainView,audioSelection:this.renderAudioSelectionView,subtitlesSelection:this.renderSubtitlesSelectionView,captionSettings:this.renderCaptionSettingsView},this.addViewsToController()}};wU.styles=[...KM.styles,_U],wU.tokens=fU,SU([b("main-settings-view")],wU.prototype,"mainView",2),SU([b("audio-selection-view")],wU.prototype,"audioSelectionView",2),SU([b("subtitles-selection-view")],wU.prototype,"subtitlesSelectionView",2),SU([b("caption-settings-view")],wU.prototype,"captionSettingsView",2),wU=SU([p_],wU);let AU=class extends WM{constructor(){super(...arguments),this.modalName=Df.SETTINGS_MODAL}get ariaLabel(){const{dictionary:t}=this.host;return t.translate(Xl.MEDIA.CONTROLS.SETTINGS,"Settings Control")}get classMapObject(){return{...super.classMapObject,"settings-modal-control-button":!0}}};const IU={...XM,"modal-control-icon":"url(\"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.5133%2010.1154L23.9167%2010.5004C24.1908%2010.5508%2024.4454%2010.677%2024.6516%2010.8646C24.8578%2011.0522%2025.0073%2011.2938%2025.0833%2011.562C25.4255%2013.1538%2025.4255%2014.8002%2025.0833%2016.392C25.0279%2016.6809%2024.8871%2016.9465%2024.6791%2017.1545C24.4711%2017.3625%2024.2055%2017.5033%2023.9167%2017.5587L21.5133%2017.9437C21.3931%2018.1934%2021.2567%2018.4351%2021.105%2018.667L21.99
416817%2021.0004C22.0904%2021.2706%2022.1077%2021.5639%2022.0413%2021.8439C21.9749%2022.1238%2021.8279%2022.3782%2021.6183%2022.5754C20.4455%2023.663%2019.0531%2024.4865%2017.535%2024.9904C17.2487%2025.0833%2016.9409%2025.0862%2016.6529%2024.9986C16.365%2024.9109%2016.1109%2024.737%2015.925%2024.5004L14.4433%2022.622H13.65L12.1217%2024.547C11.9828%2024.7232%2011.8055%2024.8653%2011.6033%2024.9623C11.401%2025.0594%2011.1793%2025.1089%2010.955%2025.107C10.8007%2025.1066%2010.6473%2025.083%2010.5%2025.037C8.97551%2024.5584%207.57124%2023.7588%206.38166%2022.692C6.16984%2022.4939%206.02137%2022.2375%205.95493%2021.9552C5.8885%2021.6728%205.90708%2021.3772%206.00833%2021.1054L6.89499%2018.772C6.74326%2018.5401%206.60686%2018.2984%206.48666%2018.0487L4.08333%2017.6637C3.79575%2017.6054%203.53173%2017.4636%203.32424%2017.2561C3.11675%2017.0486%202.97499%2016.7846%202.91666%2016.497C2.57449%2014.9052%202.57449%2013.2588%202.91666%2011.667C2.97208%2011.3782%203.11289%2011.1126%203.32088%2010.9046C3.52886%2010.6966%203.79446%2010.5558%204.08333%2010.5004L6.48666%2010.057C6.60686%209.80728%206.74326%209.56565%206.89499%209.3337L6.00833%207.00036C5.90353%206.72059%205.88648%206.41552%205.95943%206.12581C6.03238%205.83609%206.19187%205.57548%206.41666%205.3787C7.58949%204.29107%208.9819%203.46756%2010.5%202.9637C10.786%202.88356%2011.0896%202.89194%2011.3707%202.98774C11.6519%203.08354%2011.8974%203.26226%2012.075%203.50036L13.6033%205.3787H14.3967L15.925%203.50036C16.1026%203.26226%2016.3481%203.08354%2016.6293%202.98774C16.9104%202.89194%2017.214%202.88356%2017.5%202.9637C19.0336%203.47335%2020.4386%204.30918%2021.6183%205.4137C21.8301%205.61184%2021.9786%205.86821%2022.045%206.15055C22.1115%206.43288%2022.0929%206.72856%2021.9917%207.00036L21.105%209.3337C21.259%209.58449%2021.3955%209.84567%2021.5133%2010.1154ZM21.105%2016.2987L23.4383%2015.9137L23.415%2015.8554C23.6633%2014.6312%2023.6633%2013.3696%2023.415%2012.1454L21.0817%2011.7604C20.8514%2011.7219%2020.6337%2011.6287%2020.4469%2011.4886C20.2601%2011.3485%2020.1097%2011.1657%2020.0083%2010.9554C19.879%2010.681%2019.7309%2010.4159%2019.565%2010.162C19.4384%209.97387%2019.3585%209.75818%2019.3322%209.53292C19.3058%209.30766%2019.3336%209.07935%2019.4133%208.86703L20.2883%206.5337C19.3797%205.71689%2018.3221%205.08308%2017.1733%204.66703L15.19%207.1987H14.7117C14.2462%207.15191%2013.7772%207.15191%2013.3117%207.1987H12.8333L10.8267%204.66703C9.67792%205.08308%208.62025%205.71689%207.71166%206.5337L8.58666%208.86703C8.66638%209.07935%208.69421%209.30766%208.66783%209.53292C8.64145%209.75818%208.56162%209.97387%208.43499%2010.162C8.26907%2010.4159%208.12094%2010.681%207.99166%2010.9554C7.89025%2011.1657%207.73984%2011.3485%207.55306%2011.4886C7.36629%2011.6287%207.14861%2011.7219%206.91832%2011.7604L4.58499%2012.1454C4.33673%2013.3696%204.33673%2014.6312%204.58499%2015.8554L6.91832%2016.2404C7.14861%2016.2788%207.36629%2016.372%207.55306%2016.5121C7.73984%2016.6522%207.89025%2016.8351%207.99166%2017.0454C8.12094%2017.3197%208.26907%2017.5848%208.43499%2017.8387C8.56162%2018.0269%208.64145%2018.2425%208.66783%2018.4678C8.69421%2018.6931%208.66638%2018.9214%208.58666%2019.1337L7.71166%2021.467C8.62025%2022.2838%209.67792%2022.9176%2010.8267%2023.3337L12.81%2020.802H13.2883C13.7538%2020.8488%2014.2228%2020.8488%2014.6883%2020.802H15.1667L17.1733%2023.3337C18.3258%2022.9378%2019.3913%2022.3239%2020.3117%2021.5254L19.4367%2019.192C19.3569%2018.9797%2019.3291%2018.7514%2019.3555%2018.5261C19.3819%2018.3009%2019.4617%2018.0852%2019.5883%2017.897C19.7542%2017.6431%2019.9024%2017.3781%2020.0317%2017.1037C20.1331%2016.8934%2020.2835%2016.7105%2020.4703%2016.5704C20.657%2016.4304%2020.8747%2016.3372%2021.105%2016.2987ZM16.485%2014.0003C16.485%2015.3728%2015.3724%2016.4853%2014%2016.4853C12.6276%2016.4853%2011.515%2015.3728%2011.515%2014.0003C11.515%2012.6279%2012.6276%2011.5153%2014%2011.5153C15.3724%2011.5153%2016.485%2012.6279%2016.485%2014.0003Z'%20fill='%23CACACA'/%3e%3c/svg%3e\")","modal-open--visibility":"hidden","modal-open--pointer-events":"none"};var OU=Object.defineProperty,RU=Object.getOwnPropertyDescriptor,xU=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?RU(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&OU(e,n,o),o};let LU=class extends tU{constructor(){super(...arguments),this.controller=new AU(this)}getTrackingVisibility(){return this.controller.isVisible()?{elementId:"settings_menu",elementIdType:"button",elementName:"settings_menu"}:null}renderModal(){const{modalName:t}=this.controller;return p.x`<settings-modal
4169			modalName="${t}"
4170			.handleClose=${this.handleClose}
4171		></settings-modal>`}};LU.styles=[...tU.styles],LU.tokens=IU,xU([b("settings-modal")],LU.prototype,"modal",2),LU=xU([Gf(),p_],LU);class kU{constructor(t,e){this.streamController=null,this.host=t,this.streamController=e?.streamController??null}get title(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SETTINGS_MENU_HEADER,"Settings")}get audioLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.AUDIO_LABEL,"Audio")}
4171get audioLanguagesLabel(){const{dictionary:t}=this.host,e=t?.translate(Xl.MEDIA.CONTROLS.AUDIO_LABEL,"Audio");return e}get selectedAudioTrackName(){const t=vU({tracks:this.streamController?.value?.audioTracks,selectedLanguage:this.streamController?.value?.audioSelectedLanguage,languagePriorityList:this.streamController?.value?.audioLanguagePriorityList,preferDescribesVideo:this.streamController?.value?.audioPreferDescribesVideo});return t?.displayName?.title??t?.name}get captionSettingsLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_SETTINGS_MENU_HEADER,"Subtitle Styling")}get captionsToggleLabelFallback(){return"Captions On/Off"}get subtitlesLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_LABEL,"Subtitles")}get subtitlesOffLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SUBTITLES_OFF,"Off")}get selectedSubtitleTrackName(){const t=this.streamController?.value?.captionsEnabled??!1,e=this.streamController?.value?.captionTracks??[];if(!t)return this.subtitlesOffLabel;const n=e.find((t=>t.isSelected));return n?.displayName?.title??n?.name??this.subtitlesOffLabel}get hasMultipleAudioTracks(){return(this.streamController?.value?.audioTracks?.length??0)>1}get areCaptionsAvailable(){return this.streamController?.value?.captionsAvailable??!1}}const PU=Wb('\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t\tborder-radius: var(--main-settings-container-border-radius);\n\t\tborder: var(--main-settings-container-border);\n\t\tbackground-color: var(--main-settings-container-background);\n\t\tbox-shadow: var(--main-settings-container-box-shadow);\n\t\t-webkit-backdrop-filter: var(--main-settings-container-backdrop-filter);\n\t\tbackdrop-filter: var(--main-settings-container-backdrop-filter);\n\t\tcolor: var(--main-settings-container-color);\n\t\twidth: var(--main-settings-container-width);\n\t\tmax-width: var(--main-settings-container-max-width);\n\t\tpadding: var(--main-settings-container-padding);\n\t\tbox-sizing: border-box;\n\t\tfont-family: var(--main-settings-font-family);\n\t\tfont-size: var(--main-settings-font-size);\n\t}\n\n\tmodal-menu-header {\n\t\tdisplay: block;\n\t\tflex-shrink: 0;\n\t}\n\n\t.settings-main-menu {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tpadding: var(--main-settings-menu-padding);\n\t\tgap: var(--main-settings-menu-gap);\n\t\toverflow-y: auto;\n\t\tscrollbar-gutter: var(--main-settings-menu-scrollbar-gutter, auto);\n\t\tmax-height: var(--main-settings-menu-max-height);\n\t}\n\n\t.settings-nav-item {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tpadding: var(--main-settings-nav-item-padding);\n\t\tmin-height: var(--main-settings-nav-item-min-height);\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: var(--main-settings-nav-item-border-radius);\n\t\tbackground: transparent;\n\t\tcolor: var(--main-settings-nav-item-color);\n\t\tfont: inherit;\n\t\tfont-size: var(--main-settings-nav-item-font-size);\n\t\tline-height: var(--main-settings-nav-item-line-height);\n\t\tletter-spacing: var(--main-settings-nav-item-letter-spacing);\n\t\tfont-family: var(--main-settings-nav-item-font-family);\n\t\ttext-align: start;\n\t\tcursor: pointer;\n\t\tuser-select: none;\n\t\tgap: var(--main-settings-nav-item-gap);\n\t}\n\n\t.settings-nav-item:hover {\n\t\tbackground-color: var(--main-settings-nav-item-hover-background);\n\t}\n\n\t.settings-nav-item:focus {\n\t\toutline: none;\n\t}\n\n\t.settings-nav-item:focus-visible {\n\t\toutline: var(--main-settings-focus-outline-width) solid var(--main-settings-focus-outline-color);\n\t\toutline-offset: -2px;\n\t}\n\n\t.settings-nav-item__details {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: var(--main-settings-nav-item-details-gap);\n\t}\n\n\t.settings-nav-item__sublabel {\n\t\tcolor: var(--main-settings-sublabel-color);\n\t\tfont-size: var(--main-settings-sublabel-font-size);\n\t\tline-height: var(--main-settings-sublabel-line-height);\n\t\tletter-spacing: var(--main-settings-sublabel-letter-spacing);\n\t}\n\n\t.settings-nav-item__caret {\n\t\theight: var(--main-settings-caret-size);\n\t\twidth: var(--main-settings-caret-size);\n\t\tmask-image: var(--main-settings-caret-icon);\n\t\t-webkit-mask-image: var(--main-settings-caret-icon);\n\t\tmask-size: var(--main-settings-caret-mask-size);\n\t\tmask-repeat: var(--main-settings-caret-mask-repeat);\n\t\tmask-position: var(--main-settings-caret-mask-position);\n\t\tbackground-color: var(--main-settings-caret-color);\n\t}\n\n\t:host([dir="rtl"]),\n\t:host(:lang(th)) {\n\t\t--main-settings-font-family: inherit;\n\t\t--main-settings-nav-item-font-family: inherit;\n\t}\n\n\t:host([dir="rtl"]) .settings-nav-item__caret {\n\t\ttransform: scaleX(-1);\n\t}\n\n\t.settings-nav-item--highlighted {\n\t\tbackground-color: var(--main-settings-highlight-background);\n\t\tcolor: var(--main-settings-highlight-color);\n\t\tborder-radius: var(--main-settings-highlight-border-radius);\n\t}\n\n\t.settings-nav-item--highlighted .settings-nav-item__sublabel {\n\t\tcolor: var(--main-settings-highlight-sublabel-color);\n\t}\n\n\t.settings-nav-item--highlighted .settings-nav-item__caret {\n\t\tbackground-color: var(--main-settings-highlight-caret-color);\n\t}\n'),DU={"main-settings-container-border-radius":"6px","main-settings-container-border":"none","main-settings-container-background":"rgba(20, 22, 24, 0.95)","main-settings-container-box-shadow":"none","main-settings-container-backdrop-filter":"none","main-settings-container-color":"#fff","main-settings-container-width":"323px","main-settings-container-max-width":"100%","main-settings-container-padding":"2px","main-settings-font-family":"inherit","main-settings-font-size":"inherit","main-settings-menu-padding":"0","main-settings-menu-gap":"0","main-settings-menu-max-height":"var(--dialog--content-max-height)","main-settings-nav-item-padding":"8px 16px","main-settings-nav-item-min-height":"auto","main-settings-nav-item-border-radius":"0","main-settings-nav-item-color":"inherit","main-settings-nav-item-font-size":"inherit","main-settings-nav-item-line-height":"normal","main-settings-nav-item-letter-spacing":"normal","main-settings-nav-item-gap":"12px","main-settings-nav-item-font-family":"inherit","main-settings-nav-item-hover-background":"#31343e","main-settings-nav-item-details-gap":"10px","main-settings-sublabel-color":"#999","main-settings-sublabel-font-size":"inherit","main-settings-sublabel-line-height":"normal","main-settings-sublabel-letter-spacing":"normal","main-settings-highlight-background":"#fff","main-settings-highlight-color":"#000","main-settings-highlight-border-radius":"0","main-settings-highlight-sublabel-color":"#4b4e5a","main-settings-highlight-caret-color":"#000","main-settings-focus-outline-color":"#fff","main-settings-focus-outline-width":"2px","main-settings-caret-icon":`url("${AN}")`,"main-settings-caret-color":"#f9f9f9","main-settings-caret-size":"20px","main-settings-caret-mask-size":"contain","main-settings-caret-mask-repeat":"no-repeat","main-settings-caret-mask-position":"center",responsive:{}};var NU=Object.defineProperty,MU=Object.getOwnPropertyDescriptor,UU=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?MU(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&NU(e,n,o),o};
4171const BU={captionsEnabled:!1,captionsAvailable:!1,captionTracks:[],audioTracks:[],audioSelectedLanguage:void 0,audioLanguagePriorityList:[],audioPreferDescribesVideo:!1},VU=t=>({captionsEnabled:t?.captions?.enabled??!1,captionsAvailable:t?.captions?.areAvailable??!1,captionTracks:t?.captions?.tracks??[],audioTracks:t?.audio?.tracks??[],audioSelectedLanguage:t?.audio?.selectedLanguage,audioLanguagePriorityList:t?.audio?.preferences?.languagePriorityList??[],audioPreferDescribesVideo:t?.audio?.preferences?.preferDescribesVideo});let FU=class extends rU{constructor(){super(...arguments),this.streamController=new G_(this,VU,BU),this.controller=new kU(this,{streamController:this.streamController}),this.navigateToAudioSelection=()=>{this.settingsController?.navigateToAudioSelection()},this.navigateToCaptionSettings=()=>{this.settingsController?.navigateToCaptionSettings()},this.navigateToSubtitlesSelection=()=>{this.settingsController?.navigateToSubtitlesSelection()}}getQAElements(){return{audio:this.audioNavItem,audioNavItem:this.audioNavItem,subtitles:this.subtitlesNavItem,subtitlesNavItem:this.subtitlesNavItem,captionSettings:this.captionSettingsNavItem,captionSettingsNavItem:this.captionSettingsNavItem}}get settingsController(){return this.modalController}renderCaptionsControl(){const{areCaptionsAvailable:t,subtitlesLabel:e,selectedSubtitleTrackName:n}=this.controller;return t?p.x`<button
4172					type="button"
4173					role="menuitem"
4174					class="settings-nav-item"
4175					data-view="subtitlesSelection"
4176					@click=${this.navigateToSubtitlesSelection}
4177					aria-label="${e}, ${n}"
4178				>
4179					<span
4180						class="settings-nav-item__label locale-body-large"
4181						aria-hidden="true"
4182						>${e}</span
4183					>
4184					<span class="settings-nav-item__details" aria-hidden="true">
4185						<span class="settings-nav-item__sublabel locale-body-copy"
4186							>${n}</span
4187						>
4188						<span class="settings-nav-item__caret"></span>
4189					</span>
4190				</button>`:p.E}renderAudioControl(){const{hasMultipleAudioTracks:t,audioLanguagesLabel:e,selectedAudioTrackName:n}=this.controller;return t?p.x`<button
4191					type="button"
4192					role="menuitem"
4193					class="settings-nav-item"
4194					data-view="audioSelection"
4195					@click=${this.navigateToAudioSelection}
4196					aria-label="${e}${n?`, ${n}`:""}"
4197				>
4198					<span
4199						class="settings-nav-item__label locale-body-large"
4200						aria-hidden="true"
4201						>${e}</span
4202					>
4203					<span class="settings-nav-item__details" aria-hidden="true">
4204						${n?p.x`<span
4205										class="settings-nav-item__sublabel locale-body-copy"
4206										>${n}</span
4207									>`:p.E}
4208						<span class="settings-nav-item__caret"></span>
4209					</span>
4210				</button>`:p.E}renderCaptionSettingsControl(){const{areCaptionsAvailable:t,captionSettingsLabel:e}=this.controller;return t?p.x`<button
4211					type="button"
4212					role="menuitem"
4213					class="settings-nav-item"
4214					data-view="captionSettings"
4215					@click=${this.navigateToCaptionSettings}
4216					aria-label="${e}"
4217				>
4218					<span
4219						class="settings-nav-item__label locale-body-large"
4220						aria-hidden="true"
4221						>${e}</span
4222					>
4223					<span class="settings-nav-item__details" aria-hidden="true">
4224						<span class="settings-nav-item__caret"></span>
4225					</span>
4226				</button>`:p.E}render(){const{title:t}=this.controller;return p.x`
4227			<modal-menu-header
4228				title=${t}
4229				.onCloseClick=${this.onCloseModalClick}
4230				.hasCloseButton=${!0}
4231			></modal-menu-header>
4232			<div class="settings-main-menu" role="menu" aria-label=${t}>
4233				${this.renderCaptionsControl()} ${this.renderAudioControl()}
4234				${this.renderCaptionSettingsControl()}
4235			</div>
4236		`}};FU.styles=[...rU.styles,PU],FU.tokens=DU,UU([b(".settings-nav-item[data-view='audioSelection']")],FU.prototype,"audioNavItem",2),UU([b(".settings-nav-item[data-view='subtitlesSelection']")],FU.prototype,"subtitlesNavItem",2),UU([b(".settings-nav-item[data-view='captionSettings']")],FU.prototype,"captionSettingsNavItem",2),FU=UU([p_],FU);class zU{constructor(t,e){this.streamController=null,this.host=t,this.streamController=e?.streamController??null}get title(){const{dictionary:t}=this.host,e=t?.translate(Xl.MEDIA.CONTROLS.AUDIO_LABEL,"Audio");return e}get audioTracks(){return this.streamController?.value?.audioTracks??[]}get hasMultipleTracks(){return this.audioTracks.length>1}get selectedTrack(){return vU({tracks:this.audioTracks,selectedLanguage:this.streamController?.value?.selectedLanguage,languagePriorityList:this.streamController?.value?.languagePriorityList,preferDescribesVideo:this.streamController?.value?.preferDescribesVideo})}isTrackSelected(t){return this.selectedTrack===t}
4236selectAudioTrack(t){this.host.commandBus?.dispatchCommand(Ql.AUDIO_TRACK_SELECTION,{label:"Audio selection menu",track:t})}}const $U=Wb('\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t\tborder-radius: var(--audio-selection-container-border-radius);\n\t\tborder: var(--audio-selection-container-border);\n\t\tbackground-color: var(--audio-selection-container-background);\n\t\tbox-shadow: var(--audio-selection-container-box-shadow);\n\t\tbackdrop-filter: var(--audio-selection-container-backdrop-filter);\n\t\tcolor: var(--audio-selection-container-color);\n\t\twidth: var(--audio-selection-container-width);\n\t\tmax-width: var(--audio-selection-container-max-width);\n\t\tpadding: var(--audio-selection-container-padding);\n\t\tbox-sizing: border-box;\n\t\tfont-family: var(--audio-selection-font-family);\n\t\tfont-size: var(--audio-selection-font-size);\n\t}\n\n\t.audio-selection-list {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: auto;\n\t\tscrollbar-gutter: var(--audio-selection-list-scrollbar-gutter, auto);\n\t\tmax-height: var(--audio-selection-list-max-height);\n\t\t-webkit-overflow-scrolling: touch;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.audio-selection-list::-webkit-scrollbar {\n\t\twidth: var(--audio-selection-scrollbar-width);\n\t}\n\n\t.audio-selection-list::-webkit-scrollbar-thumb {\n\t\tbackground: var(--audio-selection-scrollbar-thumb-color);\n\t\tborder-radius: var(--audio-selection-scrollbar-thumb-radius);\n\t}\n\n\t.audio-selection-list::-webkit-scrollbar-corner {\n\t\tbackground: transparent;\n\t}\n\n\t.audio-selection-list::-webkit-scrollbar-button {\n\t\tdisplay: none;\n\t}\n\n\t.audio-selection-list__item {\n\t\tmargin: 0;\n\t\tpadding: var(--audio-selection-list-item-padding, 0);\n\t}\n\n\t.audio-selection-list__button {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tpadding: var(--audio-selection-item-padding);\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: var(--audio-selection-item-border-radius);\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont: inherit;\n\t\ttext-align: start;\n\t\tcursor: pointer;\n\t}\n\n\t.audio-selection-list__button:hover {\n\t\tbackground-color: var(--audio-selection-item-hover-background);\n\t}\n\n\t.audio-selection-list__button:focus {\n\t\toutline: none;\n\t}\n\n\t.audio-selection-list__button:focus-visible {\n\t\toutline: var(--audio-selection-focus-outline-width) solid var(--audio-selection-focus-outline-color);\n\t\toutline-offset: -2px;\n\t}\n\n\t.audio-selection-list__button[aria-checked="true"] {\n\t\tbackground-color: var(--audio-selection-item-selected-background);\n\t\tcolor: var(--audio-selection-item-selected-color);\n\t\tborder-radius: var(--audio-selection-item-selected-border-radius);\n\t}\n\n\t.audio-selection-list__button[aria-checked="true"] .audio-selection-list__label {\n\t\tcolor: var(--audio-selection-item-selected-label-color);\n\t}\n\n\t.audio-selection-list__label {\n\t\tflex: 1;\n\t\tcolor: var(--audio-selection-label-color);\n\t\tfont-size: var(--audio-selection-label-font-size);\n\t\tline-height: var(--audio-selection-label-line-height);\n\t\tletter-spacing: var(--audio-selection-label-letter-spacing);\n\t}\n\n\t.audio-selection-list__check {\n\t\tmask-image: var(--audio-selection-check-icon);\n\t\t-webkit-mask-image: var(--audio-selection-check-icon);\n\t\theight: var(--audio-selection-check-size);\n\t\twidth: var(--audio-selection-check-size);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tbackground-color: var(--audio-selection-check-color);\n\t\tflex-shrink: 0;\n\t\tmargin-inline-start: var(--audio-selection-check-margin-left);\n\t}\n\n\t.audio-selection-list__button[aria-checked="true"] .audio-selection-list__check {\n\t\tbackground-color: var(--audio-selection-item-selected-check-color);\n\t}\n'),HU="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.6312%205.39404C21.9659%205.74265%2021.9546%206.29655%2021.606%206.63122L9.45223%2018.2988C8.92016%2018.8096%208.07984%2018.8096%207.54777%2018.2988L2.39404%2013.3512C2.04543%2013.0165%202.03412%2012.4626%202.36879%2012.114C2.70345%2011.7654%203.25736%2011.7541%203.60597%2012.0888L8.5%2016.7871L20.394%205.36879C20.7426%205.03412%2021.2966%205.04543%2021.6312%205.39404Z'%20fill='white'/%3e%3c/svg%3e",GU={"audio-selection-container-border-radius":"6px","audio-selection-container-border":"none","audio-selection-container-background":"rgba(20, 22, 24, 0.95)","audio-selection-container-box-shadow":"none","audio-selection-container-backdrop-filter":"none","audio-selection-container-color":"#fff","audio-selection-container-width":"323px","audio-selection-container-max-width":"100%","audio-selection-container-padding":"2px","audio-selection-font-family":"inherit","audio-selection-font-size":"inherit","audio-selection-list-max-height":"var(--dialog--content-max-height)","audio-selection-item-padding":"10px 14px","audio-selection-item-border-radius":"0","audio-selection-item-selected-border-radius":"0","audio-selection-item-hover-background":"rgba(255, 255, 255, 0.04)","audio-selection-item-selected-background":"rgba(255, 255, 255, 0.08)","audio-selection-item-selected-color":"#000","audio-selection-item-selected-label-color":"#000","audio-selection-item-selected-check-color":"#000","audio-selection-label-color":"inherit","audio-selection-label-font-size":"inherit","audio-selection-label-line-height":"normal","audio-selection-label-letter-spacing":"normal","audio-selection-focus-outline-color":"#fff","audio-selection-focus-outline-width":"2px","audio-selection-check-icon":`url("${HU}")`,"audio-selection-check-color":"#fff","audio-selection-check-size":"24px","audio-selection-check-margin-left":"8px","audio-selection-scrollbar-width":"4px","audio-selection-scrollbar-thumb-color":"#666","audio-selection-scrollbar-thumb-radius":"12px",responsive:{small:{"audio-selection-item-padding":"20px 24px"}}};var YU=Object.defineProperty,jU=Object.getOwnPropertyDescriptor,KU=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?jU(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&YU(e,n,o),o};const WU={audioTracks:[],selectedLanguage:void 0,languagePriorityList:[],preferDescribesVideo:!1},qU=t=>({audioTracks:t.audio?.tracks??[],selectedLanguage:t.audio?.selectedLanguage,languagePriorityList:t.audio?.preferences?.languagePriorityList??[],preferDescribesVideo:t.audio?.preferences?.preferDescribesVideo});let XU=class extends rU{constructor(){super(...arguments),this.streamController=new G_(this,qU,WU),this.controller=new zU(this,{streamController:this.streamController}),this.handleTrackSelection=t=>{this.controller.selectAudioTrack(t)}}getQAElements(){return{audioTrackButtons:this.audioTrackButtons}}render(){const{title:t,audioTracks:e}=this.controller;return p.x`
4237			<modal-menu-header
4238				title=${t}
4239				.onBackClick=${this.onReturnToMainViewClick}
4240				.onCloseClick=${this.onCloseModalClick}
4241				.hasBackButton=${!0}
4242				.hasCloseButton=${!0}
4243			></modal-menu-header>
4244			<ul class="audio-selection-list" role="radiogroup" aria-label=${t}>
4245				${_C(e,(t=>{const e=this.controller.isTrackSelected(t);return p.x`
4246						<li class="audio-selection-list__item">
4247							<button
4248								type="button"
4249								class="audio-selection-list__button"
4250								role="radio"
4251								aria-checked=${e}
4252								@click=${()=>this.handleTrackSelection(t)}
4253							>
4254								<span class="audio-selection-list__label locale-body-large"
4255									>${t.displayName?.title??t.name}</span
4256								>
4257								${e?p.x`<span
4258												class="audio-selection-list__check"
4259												aria-hidden="true"
4260											></span>`:p.E}
4261							</button>
4262						</li>
4263					`}))}
4264			</ul>
4265		`}};XU.styles=[...rU.styles,$U],XU.tokens=GU,KU([E(".audio-selection-list__button")],XU.prototype,"audioTrackButtons",2),XU=KU([p_],XU);class ZU{constructor(t,e){this.streamController=null,this.host=t,this.streamController=e?.streamController??null}get title(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_LABEL,"Subtitles")}get subtitlesOffLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SUBTITLES_OFF,"Off")}get subtitleTracks(){return this.streamController?.value?.subtitleTracks??[]}
4265selectSubtitleTrack(t){this.host.commandBus?.dispatchCommand(Ql.CAPTIONS_TRACK_SELECTION,{label:"Subtitles selection menu",track:t})}disableSubtitles(){this.host.commandBus?.dispatchCommand(Ql.DISABLE_CAPTIONS,{label:"Subtitles selection menu"})}}const QU=Wb('\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t\tborder-radius: var(--subtitles-selection-container-border-radius);\n\t\tborder: var(--subtitles-selection-container-border);\n\t\tbackground-color: var(--subtitles-selection-container-background);\n\t\tbox-shadow: var(--subtitles-selection-container-box-shadow);\n\t\tbackdrop-filter: var(--subtitles-selection-container-backdrop-filter);\n\t\tcolor: var(--subtitles-selection-container-color);\n\t\twidth: var(--subtitles-selection-container-width);\n\t\tmax-width: var(--subtitles-selection-container-max-width);\n\t\tpadding: var(--subtitles-selection-container-padding);\n\t\tbox-sizing: border-box;\n\t\tfont-family: var(--subtitles-selection-font-family);\n\t\tfont-size: var(--subtitles-selection-font-size);\n\t}\n\n\t.subtitles-selection-list {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: auto;\n\t\tscrollbar-gutter: var(--subtitles-selection-list-scrollbar-gutter, auto);\n\t\tmax-height: var(--subtitles-selection-list-max-height);\n\t\t-webkit-overflow-scrolling: touch;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.subtitles-selection-list::-webkit-scrollbar {\n\t\twidth: var(--subtitles-selection-scrollbar-width);\n\t}\n\n\t.subtitles-selection-list::-webkit-scrollbar-thumb {\n\t\tbackground: var(--subtitles-selection-scrollbar-thumb-color);\n\t\tborder-radius: var(--subtitles-selection-scrollbar-thumb-radius);\n\t}\n\n\t.subtitles-selection-list::-webkit-scrollbar-corner {\n\t\tbackground: transparent;\n\t}\n\n\t.subtitles-selection-list::-webkit-scrollbar-button {\n\t\tdisplay: none;\n\t}\n\n\t.subtitles-selection-list__item {\n\t\tmargin: 0;\n\t\tpadding: var(--subtitles-selection-list-item-padding, 0);\n\t}\n\n\t.subtitles-selection-list__button {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tpadding: var(--subtitles-selection-list-button-padding);\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: var(--subtitles-selection-item-border-radius);\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont: inherit;\n\t\ttext-align: start;\n\t\tcursor: pointer;\n\t}\n\n\t.subtitles-selection-list__button:hover {\n\t\tbackground-color: var(--subtitles-selection-item-hover-background);\n\t}\n\n\t.subtitles-selection-list__button:focus {\n\t\toutline: none;\n\t}\n\n\t.subtitles-selection-list__button:focus-visible {\n\t\toutline: var(--subtitles-selection-focus-outline-width) solid var(--subtitles-selection-focus-outline-color);\n\t\toutline-offset: -2px;\n\t}\n\n\t.subtitles-selection-list__button[aria-checked="true"] {\n\t\tbackground-color: var(--subtitles-selection-item-selected-background);\n\t\tcolor: var(--subtitles-selection-item-selected-color);\n\t\tborder-radius: var(--subtitles-selection-item-selected-border-radius);\n\t}\n\n\t.subtitles-selection-list__button[aria-checked="true"] .subtitles-selection-list__label {\n\t\tcolor: var(--subtitles-selection-item-selected-label-color);\n\t}\n\n\t.subtitles-selection-list__label {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1;\n\t\tcolor: var(--subtitles-selection-label-color);\n\t\tfont-size: var(--subtitles-selection-label-font-size);\n\t\tline-height: var(--subtitles-selection-label-line-height);\n\t\tletter-spacing: var(--subtitles-selection-label-letter-spacing);\n\t}\n\n\t.subtitles-selection-list__sdh-badge {\n\t\tdisplay: inline-flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tmargin-inline-start: var(--subtitles-selection-sdh-badge-margin-left);\n\t\tpadding: var(--subtitles-selection-sdh-badge-padding);\n\t\tborder: 1px solid var(--subtitles-selection-sdh-badge-border-color);\n\t\tborder-radius: var(--subtitles-selection-sdh-badge-radius);\n\t\tcolor: var(--subtitles-selection-sdh-badge-color);\n\t\tfont-size: var(--subtitles-selection-sdh-badge-font-size);\n\t\tline-height: var(--subtitles-selection-sdh-badge-line-height);\n\t\ttext-transform: uppercase;\n\t}\n\n\t.subtitles-selection-list__button[aria-checked="true"] .subt
4265itles-selection-list__sdh-badge {\n\t\tcolor: var(--subtitles-selection-item-selected-sdh-badge-color);\n\t\tborder-color: var(--subtitles-selection-item-selected-sdh-badge-border-color);\n\t}\n\n\t.subtitles-selection-list__check {\n\t\tmask-image: var(--subtitles-selection-check-icon);\n\t\t-webkit-mask-image: var(--subtitles-selection-check-icon);\n\t\theight: var(--subtitles-selection-check-size);\n\t\twidth: var(--subtitles-selection-check-size);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tbackground-color: var(--subtitles-selection-check-color);\n\t\tflex-shrink: 0;\n\t\tmargin-inline-start: var(--subtitles-selection-check-margin-left);\n\t}\n\n\t.subtitles-selection-list__button[aria-checked="true"] .subtitles-selection-list__check {\n\t\tbackground-color: var(--subtitles-selection-item-selected-check-color);\n\t}\n'),JU={"subtitles-selection-container-border-radius":"6px","subtitles-selection-container-border":"none","subtitles-selection-container-background":"rgba(20, 22, 24, 0.95)","subtitles-selection-container-box-shadow":"none","subtitles-selection-container-backdrop-filter":"none","subtitles-selection-container-color":"#fff","subtitles-selection-container-width":"323px","subtitles-selection-container-max-width":"100%","subtitles-selection-container-padding":"2px","subtitles-selection-font-family":"inherit","subtitles-selection-font-size":"inherit","subtitles-selection-list-max-height":"150px","subtitles-selection-list-button-padding":"10px 14px","subtitles-selection-item-hover-background":"rgba(255, 255, 255, 0.04)","subtitles-selection-item-selected-background":"rgba(255, 255, 255, 0.08)","subtitles-selection-item-selected-color":"#000","subtitles-selection-item-selected-label-color":"#000","subtitles-selection-item-selected-check-color":"#000","subtitles-selection-item-selected-sdh-badge-color":"#000","subtitles-selection-item-selected-sdh-badge-border-color":"#4b4e5a","subtitles-selection-item-border-radius":"0","subtitles-selection-item-selected-border-radius":"0","subtitles-selection-label-color":"inherit","subtitles-selection-label-font-size":"inherit","subtitles-selection-label-line-height":"normal","subtitles-selection-label-letter-spacing":"normal","subtitles-selection-focus-outline-color":"#fff","subtitles-selection-focus-outline-width":"2px","subtitles-selection-check-icon":`url("${HU}")`,"subtitles-selection-check-color":"#fff","subtitles-selection-check-size":"24px","subtitles-selection-check-margin-left":"8px","subtitles-selection-sdh-badge-color":"#fff","subtitles-selection-sdh-badge-border-color":"rgba(255, 255, 255, 0.45)","subtitles-selection-sdh-badge-font-size":"10px","subtitles-selection-sdh-badge-line-height":"10px","subtitles-selection-sdh-badge-padding":"2px","subtitles-selection-sdh-badge-radius":"3px","subtitles-selection-sdh-badge-margin-left":"6px","subtitles-selection-scrollbar-width":"4px","subtitles-selection-scrollbar-thumb-color":"#666","subtitles-selection-scrollbar-thumb-radius":"12px",responsive:{extraSmall:{"subtitles-selection-list-max-height":"180px"},small:{"subtitles-selection-list-max-height":"235px","subtitles-selection-list-button-padding":"20px 24px"}}};var tB=Object.defineProperty,eB=Object.getOwnPropertyDescriptor,nB=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?eB(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&tB(e,n,o),o};const iB={subtitleTracks:[],captionsEnabled:!1,selectedLanguage:void 0,languagePriorityList:[],timedTextAppearance:void 0},rB=t=>({subtitleTracks:t.captions?.tracks??[],captionsEnabled:t.captions?.enabled??!1,selectedLanguage:t.captions?.selectedLanguage,languagePriorityList:t.mediaPreferences?.languagePriorityList??[],timedTextAppearance:t.mediaPreferences?.timedTextAppearance});let oB=class extends rU{constructor(){super(...arguments),this.streamController=new G_(this,rB,iB),this.controller=new ZU(this,{streamController:this.streamController}),this.handleTrackSelection=t=>{this.controller.selectSubtitleTrack(t)},this.handleOffSelection=()=>{this.controller.disableSubtitles()}}getQAElements(){return{subtitleTrackButtons:this.subtitleTrackButtons}}hasSdhBadge(t){return t.hasDescribesMusicAndSound??!1}
4265render(){const{title:t,subtitlesOffLabel:e,subtitleTracks:n}=this.controller,{captionsEnabled:i}=this.streamController.value;return p.x`
4266			<modal-menu-header
4267				title=${t}
4268				.onBackClick=${this.onReturnToMainViewClick}
4269				.onCloseClick=${this.onCloseModalClick}
4270				.hasBackButton=${!0}
4271				.hasCloseButton=${!0}
4272			></modal-menu-header>
4273			<ul
4274				class="subtitles-selection-list"
4275				role="radiogroup"
4276				aria-label=${t}
4277			>
4278				<li class="subtitles-selection-list__item">
4279					<button
4280						type="button"
4281						class="subtitles-selection-list__button"
4282						role="radio"
4283						aria-checked=${i?"false":"true"}
4284						@click=${this.handleOffSelection}
4285					>
4286						<span class="subtitles-selection-list__label locale-body-large"
4287							>${e}</span
4288						>
4289						${i?p.E:p.x`<span
4290										class="subtitles-selection-list__check"
4291										aria-hidden="true"
4292									></span>`}
4293					</button>
4294				</li>
4295				${_C(n,(t=>p.x`
4296						<li class="subtitles-selection-list__item">
4297							<button
4298								type="button"
4299								class="subtitles-selection-list__button"
4300								role="radio"
4301								aria-checked=${i&&t.isSelected?"true":"false"}
4302								@click=${()=>this.handleTrackSelection(t)}
4303							>
4304								<span class="subtitles-selection-list__label locale-body-large">
4305									${t.displayName?.title??t.name}
4306									${this.hasSdhBadge(t)?p.x`<span class="subtitles-selection-list__sdh-badge"
4307													>cc</span
4308												>`:p.E}
4309								</span>
4310								${i&&t.isSelected?p.x`<span
4311												class="subtitles-selection-list__check"
4312												aria-hidden="true"
4313											></span>`:p.E}
4314							</button>
4315						</li>
4316					`))}
4317			</ul>
4318		`}};oB.styles=[...rU.styles,QU],oB.tokens=JU,nB([E(".subtitles-selection-list__button")],oB.prototype,"subtitleTrackButtons",2),oB=nB([p_],oB);const aB=["small","medium-small","medium","medium-large","large","extra-large"],sB=[aB[1],aB[2],aB[3]],lB={small:"16px","medium-small":"24px",medium:"32px","medium-large":"40px",large:"48px","extra-large":"64px"},cB={small:{i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_50_PERCENT,fallback:"50%"},"medium-small":{i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_75_PERCENT,fallback:"75%"},medium:{i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_100_PERCENT,fallback:"100%"},"medium-large":{i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_125_PERCENT,fallback:"125%"},large:{i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_150_PERCENT,fallback:"150%"},"extra-large":{i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_200_PERCENT,fallback:"200%"}},dB=[["White",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_WHITE,"White"],["Black",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_BLACK,"Black"],["Red",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_RED,"Red"],["Green",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_GREEN,"Green"],["Blue",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_BLUE,"Blue"],["Yellow",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_YELLOW,"Yellow"],["Magenta",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_MAGENTA,"Magenta"],["Cyan",Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_CYAN,"Cyan"]];function uB(t,e){for(const[n,i]of e)if(n(t))return i;throw new Error(`No rule matched kind: ${String(t)}`)}const pB=[[t=>"background"===t,{colorMap:Al.backgroundColorMap,opaque:Al.backgroundOpacityMap.backgroundOpacity100,idPrefix:"backgroundColor"}],[t=>"font"===t,{colorMap:Al.fontColorMap,opaque:Al.fontOpacityMap.fontOpacity100,idPrefix:"fontColor"}],[t=>"window"===t,{colorMap:Al.windowColorMap,opaque:Al.windowOpacityMap.windowOpacity100,idPrefix:"windowColor"}]],hB=(t,e)=>{const{getRGBA:n}=Al,{colorMap:i,opaque:r,idPrefix:o}=uB(e,pB);return dB.map((([e,a,s])=>{const l=`${o}${e}`;return{id:l,value:n(i[l],r),text:t.translate(a,s)}}))},mB=[{suffix:"100",i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_OPAQUE,fallback:"Opaque"},{suffix:"75",i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_SEMI_OPAQUE,fallback:"Semi-opaque"},{suffix:"0",i18n:Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_TRANSPARENT,fallback:"Transparent"}],gB=[[t=>"background"===t,{opacityMap:Al.backgroundOpacityMap,idPrefix:"backgroundOpacity",specs:mB}],[t=>"font"===t,{opacityMap:Al.fontOpacityMap,idPrefix:"fontOpacity",specs:mB.slice(0,2)}],[t=>"window"===t,{opacityMap:Al.windowOpacityMap,idPrefix:"windowOpacity",specs:mB}]],vB=(t,e)=>{const{opacityMap:n,idPrefix:i,specs:r}=uB(e,gB);return r.map((({suffix:e,i18n:r,fallback:o})=>{const a=`${i}${e}`;return{id:a,value:n[a],text:t.translate(r,o)}}))},fB={textColor:"textColor",fontColor:"textColor",size:"size",fontSize:"size",textEdge:"textEdge",fontEdge:"textEdge",font:"font",backgroundColor:"backgroundColor",windowColor:"windowColor",windowColors:"windowColor",backgroundOpacityOptions:"backgroundOpacity",fontOpacityOptions:"fontOpacity",windowOpacityOptions:"windowOpacity",fontSizes:"size",fonts:"font",fontEdgeOptions:"textEdge",fontColors:"textColor",backgroundColors:"backgroundColor",dropShadow:"textEdge"};class bB{fontFaceMapping(){return{default:"sans-serif","monospace-serif":'"Courier New", serif',"proportional-serif":'"Times New Roman", serif',"monospace-sans-serif":"Console, sans-serif","proportional-sans-serif":"Arial, sans-serif",casual:"Comic Sans MS",script:"Apple Chancery","small-caps":"Arial",greek:"sans-serif",japanese:"sans-serif",korean:"sans-serif","simplified-chinese":"sans-serif","traditional-chinese":"sans-serif",vietnamese:"sans-serif",thai:"sans-serif"}}fontMapping(){return{...lB}}backgroundOpacityOptions(t){return{backgroundOpacityOptions:vB(t,"background")}}fontOpacityOptions(t){return{fontOpacityOptions:vB(t,"font")}}windowOpacityOptions(t){return{windowOpacityOptions:vB(t,"window")}}fontSizeOptions(t){return{fontSizes:aB.map((e=>{const{i18n:n,fallback:i}=cB[e];return{id:e,value:e,text:t.translate(n,i)}}))}}fontFamilyOptions(t){const{fontMap:e}=Al;return{fonts:[{id:"fontDefault",value:e.fontDefault,text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_DEFAULT,"Default")},{id:"fontMonospaceSerif",value:e.fontMonospaceSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_MONOSPACE_SERIF,"Monospace Serif")},{id:"fontProportionalSerif",value:e.fontProportionalSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_PROPORTIONAL_SERIF,"Proportional Serif")},{id:"fontMonospaceSansSerif",value:e.fontMonospaceSansSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_MONOSPACE_SANS_SERIF,"Monospace Sans-Serif")},{id:"fontProportionalSansSerif",value:e.fontProportionalSansSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_PROPORTIONAL_SANS_SERIF,"Proportional Sans-Serif")},{id:"fontCasual",value:e.fontCasual,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_CASUAL,"Casual")},{id:"fontScript",value:e.fontScript,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_SCRIPT,"Script")},{id:"fontSmallCaps",value:e.fontSmallCaps,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_SMALL_CAPS,"Small Caps")}]}}fontEdgeOptions(t){const{fontEdgeMap:e}=Al;return{fontEdgeOptions:[{id:"fontEdgeNone",value:e.fontEdgeNone,text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_NONE,"None")},{id:"fontEdgeRaised",value:e.fontEdgeRaised,text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_RAISED,"Raised")},{id:"fontEdgeDepressed",value:e.fontEdgeDepressed,text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_DEPRESSED,"Depressed")},{id:"fontEdgeUniform",value:e.fontEdgeUniform,text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_UNIFORM,"Uniform")},{id:"fontEdgeShadow",value:e.fontEdgeShadow,text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_DROP_SHADOW,"Drop Shadow")}]}}backgroundColorOptions(t){return{backgroundColors:hB(t,"background")}}
4318fontColorOptions(t){return{fontColors:hB(t,"font")}}windowColorOptions(t){return{windowColors:hB(t,"window")}}getDmpLabel(t){return fB[t]??t}getDefaultDmpAppearance(t){const e={...Rv};return t&&Object.keys(t).length>0?{...e,...t}:e}}class _B{constructor(t){this.defaultService=new bB,(this.host=t).addController(this)}hostConnected(){}hostDisconnected(){}get service(){return this.host.captionsSettingsService??this.defaultService}get commandBus(){return this.host.commandBus}get dictionary(){return this.host.dictionary}get title(){return this.dictionary?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_SETTINGS_MENU_HEADER,"Subtitle Styling")}get fontSizeOptions(){return this.service.fontSizeOptions(this.dictionary).fontSizes}get fontColors(){return this.service.fontColorOptions(this.dictionary).fontColors}get backgroundColors(){return this.service.backgroundColorOptions(this.dictionary).backgroundColors}get fontFamilyOptions(){return!1===this.host.streamController.value.isFontFamilyUserSelectable?[]:this.service.fontFamilyOptions(this.dictionary).fonts}getValidFontSize(t){return this.getValidOption(t,this.fontSizeOptions,(t=>t.value),this.service.getDefaultDmpAppearance().size)}getValidFont(t){return!1===this.host.streamController.value.isFontFamilyUserSelectable?t??this.service.getDefaultDmpAppearance().font:this.getValidOption(t,this.service.fontFamilyOptions(this.dictionary).fonts,(t=>t.value),this.service.getDefaultDmpAppearance().font)}getValidTextColor(t){return this.getValidOption(t,this.fontColors,(t=>t.value),this.service.getDefaultDmpAppearance().textColor)}getValidBackgroundColor(t){return this.getValidOption(t,this.backgroundColors,(t=>t.value),this.service.getDefaultDmpAppearance().backgroundColor)}textOpacityPercentFromRgba(t){return Pl(t)}backgroundOpacityPercentFromRgba(t){return Pl(t)}resolveColorDotId(t,e){if(!t||!e.length)return e[0]?.id??"";if(!xv(t))return t;const n=xl(t),i=e.find((t=>xl(t.value)===n));return i?.id??e[0]?.id??""}get fontMapping(){return this.service.fontMapping()}get fontFaceMapping(){return this.service.fontFaceMapping()}get fontEdgeSetting(){const t=this.service.fontEdgeOptions(this.dictionary).fontEdgeOptions??[],e=e=>t.find(e);return(e((t=>"shadow"===t.value))??e((t=>"fontEdgeShadow"===t.id))??e((t=>"depressed"===t.value))??e((t=>"fontEdgeDepressed"===t.id))??e((t=>"none"!==t.value)))?.value??"shadow"}get fontEdgeOptions(){return this.service.fontEdgeOptions(this.dictionary).fontEdgeOptions??[]}get textLabel(){return this.dictionary?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_SIZE_LABEL,"Text")}get backgroundLabel(){return this.dictionary?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_BACKGROUND_LABEL,"Background")}get resetButtonLabel(){return this.dictionary?.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_RESET_DEFAULT_BUTTON,"Reset")}updateAppearance(t,e){if(!this.commandBus)return;const n=Dl(t??{},e);this.dispatchAppearancePatch(n,!1)}resetAppearanceToDefaults(){const t=this.service.getDefaultDmpAppearance();return this.dispatchAppearancePatch(t,!0),t}dispatchAppearancePatch(t,e){const n=e?{...t,replaceAppearance:!0}:t;this.commandBus?.dispatchCommand(Ql.SET_TIMED_TEXT_APPEARANCE,n)}getValidOption(t,e,n,i){return t&&e.some((e=>n(e)===t))?t:i}}const EB=Wb('\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tmin-height: 0;\n\t\toverflow: hidden;\n\t\tbackground: var(--caption-settings-background);\n\t\tborder-radius: var(--caption-settings-border-radius);\n\t\tbox-shadow: var(--caption-settings-box-shadow);\n\t\tbackdrop-filter: var(--caption-settings-backdrop-filter);\n\t\tfont-family: var(--caption-settings-font-family);\n\t\tfont-size: var(--caption-settings-font-size);\n\t\tfont-weight: var(--caption-settings-font-weight);\n\t\tcolor: var(--caption-settings-color);\n\t\twidth: var(--caption-settings-width);\n\t\tmax-width: var(--caption-settings-max-width);\n\t\talign-content: center;\n\t\tpadding: var(--caption-settings-padding);\n\t}\n\n\tmodal-menu-header {\n\t\tflex-shrink: 0;\n\t}\n\n\t.settings-container {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1 1 auto;\n\t\tmin-height: 0;\n\t\toverflow-y: auto;\n\t\tscrollbar-gutter: var(--caption-settings-container-scrollbar-gutter, auto);\n\t\tpadding: var(--caption-settings-container-padding);\n\t\twidth: var(--caption-settings-container-width);\n\t\tgap: var(--caption-settings-container-gap);\n\t\tbox-sizing: var(--caption-settings-container-box-sizing);\n\t}\n\n\t.settings-container::-webkit-scrollbar {\n\t\twidth: var(--caption-settings-scrollbar-width);\n\t}\n\n\t.settings-container::-webkit-scrollbar-thumb {\n\t\tbackground: var(--caption-settings-scrollbar-thumb-color);\n\t\tborder-radius: var(--caption-settings-scrollbar-thumb-radius);\n\t}\n\n\t.settings-container::-webkit-scrollbar-corner {\n\t\tbackground: transparent;\n\t}\n\n\t.settings-container::-webkit-scrollbar-button {\n\t\tdisplay: none;\n\t}\n\n\t.caption-preview-container {\n\t\tbox-sizing: border-box;\n\t\twidth: var(--caption-settings-max-width, 100%);\n\t\tmax-width: 100%;\n\t\tmin-width: 0;\n\t\toverflow-x: clip;\n\t\ttext-align: center;\n\t\talign-content: center;\n\t\tpadding: 8px var(--caption-settings-content-padding-x);\n\t}\n\n\t.settings-section {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder: none;\n\t\tdisplay: contents;\n\t}\n\n\t.settings-section__heading {\n\t\tmargin: var(--caption-settings-section-heading-margin, 1em 0 0 0);\n\t\tpadding-left: var(--caption-settings-content-padding-x);\n\t\tpadding-right: var(--caption-settings-content-padding-x);\n\t\tfont-family: inherit;\n\t\tfont-size: var(--caption-settings-heading-font-size);
4318\n\t\tfont-weight: var(--caption-settings-heading-font-weight);\n\t\tcolor: var(--caption-settings-heading-color);\n\t\tline-height: normal;\n\t}\n\n\t.settings-section__content {\n\t\tpadding-left: var(--caption-settings-content-padding-x);\n\t\tpadding-right: var(--caption-settings-content-padding-x);\n\t\tborder-radius: var(--caption-settings-content-border-radius);\n\t\tmargin-top: var(--caption-settings-content-margin-top);\n\t}\n\n\t.caption-settings-reset {\n\t\tdisplay: block;\n\t\tcolor: var(--caption-settings-reset-color);\n\t\tpadding: var(--caption-settings-reset-padding);\n\t\tborder: none;\n\t\tbackground: none;\n\t\tcursor: pointer;\n\t\ttext-align: center;\n\t\ttext-decoration: none;\n\t\tfont-family: var(--caption-settings-reset-font-family);\n\t\tfont-size: var(--caption-settings-reset-font-size);\n\t\tfont-style: normal;\n\t\tfont-weight: var(--caption-settings-reset-font-weight);\n\t\tline-height: var(--caption-settings-reset-line-height);\n\t\tletter-spacing: var(--caption-settings-reset-letter-spacing);\n\t}\n\n\t.caption-settings-reset:hover {\n\t\topacity: var(--caption-settings-reset-hover-opacity);\n\t}\n\n\t.caption-settings-reset:focus {\n\t\toutline: none;\n\t}\n\n\t.caption-settings-reset:focus-visible {\n\t\toutline: var(--caption-settings-focus-outline-width) solid var(--caption-settings-focus-outline-color);\n\t\toutline-offset: 2px;\n\t}\n\n\t:host([dir="rtl"]) .caption-settings-reset,\n\t:host(:lang(th)) .caption-settings-reset {\n\t\tfont-family: inherit;\n\t}\n\n\t:host([dir="rtl"]),\n\t:host(:lang(th)) {\n\t\tfont-family: inherit;\n\t}\n\n\t:host(:lang(ar)) .caption-settings-reset {\n\t\tletter-spacing: normal;\n\t}\n');var yB=Object.defineProperty,SB=Object.getOwnPropertyDescriptor,TB=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?SB(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&yB(e,n,o),o};const CB={timedTextAppearance:void 0,isFontFamilyUserSelectable:!0},wB=t=>{return{timedTextAppearance:t.mediaPreferences?.timedTextAppearance,isFontFamilyUserSelectable:(e=t.playback,n=t.captions?.selectedLanguage,null==function(t,e){if(null==e||""===e)return;const n=t?.clients?.pcsConfig?.configs?.web?.playback?.timedText?.forcedFontMap?.[e];return"string"==typeof n&&""!==n.trim()?n:void 0}(e,n))};var e,n};let AB=class extends rU{constructor(){super(...arguments),this.streamController=new G_(this,wB,CB),this.controller=new _B(this),this.handleSettingsChange=t=>{const e=this.effectiveTimedTextAppearance();this.controller.updateAppearance(e,t),this.requestUpdate()},this.handleResetClick=()=>{this.controller.resetAppearanceToDefaults(),this.requestUpdate()}}effectiveTimedTextAppearance(){return Nl()??this.streamController.value.timedTextAppearance}getResetButtonLabel(){return this.controller.resetButtonLabel}getTextLabel(){return this.controller.textLabel}render(){const{isFontFamilyUserSelectable:t}=this.streamController.value,e=this.effectiveTimedTextAppearance(),{size:n,font:i,textColor:r,backgroundColor:o,textEdge:a}={...e},s=!!a&&"none"!==a,{title:l,fontSizeOptions:c,fontColors:d,backgroundColors:u,fontMapping:h,fontFaceMapping:m,fontEdgeSetting:g,backgroundLabel:v,service:f}=this.controller,b=this.getTextLabel(),_=this.getResetButtonLabel(),E=this.controller.getValidFontSize(n),y=this.controller.getValidFont(i),S=this.controller.textOpacityPercentFromRgba(r),T=this.controller.backgroundOpacityPercentFromRgba(o),C=this.controller.resolveColorDotId(r,d),w=this.controller.resolveColorDotId(o,u);return p.x`
4319			<modal-menu-header
4320				title=${l}
4321				.onBackClick=${this.onReturnToMainViewClick}
4322				.onCloseClick=${this.onCloseModalClick}
4323				.hasBackButton=${!0}
4324				.hasCloseButton=${!0}
4325				.titleLocaleClass=${"locale-body-headline"}
4326			></modal-menu-header>
4327			<div class="settings-container" role="form" aria-label=${l}>
4328				<div class="caption-preview-container">
4329					<caption-preview
4330						.timedTextAppearance=${{...e}}
4331						.fontMapping=${h}
4332						.fontFaceMapping=${m}
4333					></caption-preview>
4334				</div>
4335				<section class="settings-section" aria-labelledby="text-settings-label">
4336					<h3
4337						id="text-settings-label"
4338						class="settings-section__heading locale-metadata-heavy"
4339					>
4340						${b}
4341					</h3>
4342					<div class="settings-section__content">
4343						<captions-font-size
4344							label="size"
4345							.value=${E}
4346							.fontSizeOptions=${c}
4347							.fontMapping=${h}
4348							.onChange=${this.handleSettingsChange}
4349						></captions-font-size>
4350					</div>
4351					${!1!==t?p.x`<div class="settings-section__content">
4352									<font-picker
4353										.onChange=${this.handleSettingsChange}
4354										.fontValue=${y}
4355										.dropShadowValue=${s}
4356										.fontEdgeSetting=${g}
4357										.captionsSettingsService=${f}
4358									></font-picker>
4359								</div>`:p.E}
4360					<div class="settings-section__content">
4361						<color-opacity-picker
4362							.colors=${d}
4363							.colorValue=${C}
4364							.opacityValue=${S}
4365							.onChange=${this.handleSettingsChange}
4366						></color-opacity-picker>
4367					</div>
4368				</section>
4369				<section
4370					class="settings-section"
4371					aria-labelledby="background-settings-label"
4372				>
4373					<h3
4374						id="background-settings-label"
4375						class="settings-section__heading locale-metadata-heavy"
4376					>
4377						${v}
4378					</h3>
4379					<div class="settings-section__content">
4380						<color-opacity-picker
4381							.colors=${u}
4382							.colorValue=${w}
4383							.opacityValue=${T}
4384							.valueType=${"background"}
4385							.onChange=${this.handleSettingsChange}
4386						></color-opacity-picker>
4387					</div>
4388				</section>
4389				<button
4390					type="button"
4391					class="caption-settings-reset locale-metadata-heavy"
4392					@click=${this.handleResetClick}
4393					aria-label="${_}"
4394				>
4395					${_}
4396				</button>
4397			</div>
4398		`}getQAElements(){return{reset:this.resetButton,resetButton:this.resetButton}}};AB.styles=[...rU.styles,EB],AB.tokens={"caption-settings-background":"rgba(20, 22, 24, 0.95)","caption-settings-border-radius":"12px","caption-settings-box-shadow":"none","caption-settings-backdrop-filter":"none","caption-settings-font-family":"Post Grotesk, sans-serif","caption-settings-font-size":"12px","caption-settings-font-weight":"400","caption-settings-color":"#fff","caption-settings-width":"min-content","caption-settings-max-width":"323px","caption-settings-container-max-height":"var(--dialog--content-max-height)","caption-settings-scrollbar-width":"4px","caption-settings-scrollbar-thumb-color":"#666","caption-settings-scrollbar-thumb-radius":"12px","caption-settings-heading-font-size":"inherit","caption-settings-heading-font-weight":"inherit","caption-settings-heading-color":"inherit","caption-settings-content-padding-x":"12px","caption-settings-content-border-radius":"6px","caption-settings-content-margin-top":"8px","caption-settings-reset-color":"#fff","caption-settings-reset-font-family":"Post Grotesk, sans-serif","caption-settings-reset-font-size":"14px","caption-settings-reset-font-weight":"500","caption-settings-reset-line-height":"14px","caption-settings-reset-letter-spacing":"normal","caption-settings-reset-padding":"12px 0","caption-settings-reset-hover-opacity":"0.8","caption-settings-focus-outline-color":"#fff","caption-settings-focus-outline-width":"2px",responsive:{}},TB([(0,p.n)({attribute:!1})],AB.prototype,"captionsSettingsService",2),TB([b(".caption-settings-reset")],AB.prototype,"resetButton",2),AB=TB([p_],AB);const IB={...NM,"dialog--background-color":"transparent","dialog--width":"auto","dialog--border-radius":"12px","dialog--bottom":"132px","dialog--right":"74px","container-border-radius":"12px","container-border":"1px solid rgba(255, 255, 255, 0.1)","container-background":"rgba(0, 0, 0, 0.7)","ontainer-box-shadow":"0 4px 4px 0 rgba(0, 0, 0, 0.25)","container-backdrop-filter":"blur(25px)",responsive:{...NM.responsive,medium:{...NM.responsive?.medium,"dialog--bottom":"132px","dialog--right":"86px"}}};class OB extends HM{get ariaLabel(){return this.host?.dictionary&&this.isModalOpen?this.host.dictionary.translate(Xl.MEDIA.PLAYER.BROADCASTS,"Broadcasts"):null}}const RB=Wb("");Object.getOwnPropertyDescriptor;let xB=class extends KM{constructor(){super(...arguments),this.controller=new OB(this)}renderMainView(){return p.x`<airing-selection-view
4399			.modalController=${this.controller}
4400		></airing-selection-view>`}createViews(){this.views={main:this.renderMainView},this.addViewsToController()}};xB.styles=[...KM.styles,RB],xB.tokens=IB,xB=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4400)([p_],xB);class LB{constructor(t,e){this.streamController=null,this.host=t,this.streamController=e?.streamController??null}get title(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.BROADCASTS_MENU,"Broadcasts")}get feeds(){return this.streamController?.value?.feeds??[]}selectFeed(t){this.host.commandBus?.dispatchCommand(ff.FEED_CHANGE_REQUEST,t),this.host.modalController?.closeModal?.(!0)}}const kB=Wb('\n    :host {\n        display: flex;\n        flex-direction: column;\n        overflow: hidden;\n        border-radius: var(--container-border-radius);\n        border: var(--container-border);\n        background-color: var(--container-background);\n        box-shadow: var(--container-box-shadow);\n        backdrop-filter: var(--container-backdrop-filter);\n        color: var(--container-color);\n        width: var(--container-width);\n        max-width: var(--container-max-width);\n        padding: var(--container-padding);\n        box-sizing: border-box;\n        font-family: var(--container-font-family);\n        font-size: var(--container-font-size);\n    }\n\n    .list {\n        display: flex;\n        flex-direction: column;\n        overflow: auto;\n        max-height: var(--list-max-height);\n        -webkit-overflow-scrolling: touch;\n        list-style: none;\n        margin: 0;\n        padding: 0;\n    }\n\n    .list::-webkit-scrollbar {\n        width: var(--scrollbar-width);\n    }\n\n    .list::-webkit-scrollbar-thumb {\n        background: var(--scrollbar-thumb-color);\n        border-radius: var(--scrollbar-thumb-radius);\n    }\n\n    .list__item {\n        margin: 0;\n        padding: 0;\n    }\n\n    .list__button {\n        display: flex;\n        justify-content: space-between;\n        align-items: center;\n        width: 100%;\n        padding: var(--item-padding);\n        border: none;\n        border-radius: var(--item-border-radius);\n        background: transparent;\n        color: inherit;\n        font: inherit;\n        text-align: start;\n        cursor: pointer;\n    }\n\n    .list__button:hover {\n        background-color: var(--item-hover-background);\n    }\n\n    .list__button:focus {\n        outline: none;\n    }\n\n    .list__button:focus-visible {\n        outline: var(--focus-outline-width) solid var(--focus-outline-color);\n        outline-offset: -2px;\n    }\n\n    .list__button[aria-checked="true"] {\n        background-color: var(--item-selected-background);\n        color: var(--item-selected-color);\n        border-radius: var(--item-selected-border-radius);\n    }\n\n    .list__button[aria-checked="true"] .list__label {\n        color: var(--item-selected-color);\n    }\n\n    .list__label {\n        display: flex;\n        align-items: center;\n        flex: 1;\n    }\n\n    .list__check {\n        mask-image: var(--check-icon);\n        -webkit-mask-image: var(--check-icon);\n        height: var(--check-size);\n        width: var(--check-size);\n        mask-size: contain;\n        mask-repeat: no-repeat;\n        background-color: var(--check-color);\n        flex-shrink: 0;\n        margin-inline-start: var(--check-margin-left);\n    }\n\n    .list__button[aria-checked="true"] .list__check {\n        background-color: var(--item-selected-color);\n    }\n'),PB={"container-border-radius":"12px","container-border":"1px solid rgba(255, 255, 255, 0.06)","container-background":"rgba(0, 0, 0, 0.7)","container-box-shadow":"inset 0px 1px 0px 0px rgba(255, 255, 255, 0.12)","container-backdrop-filter":"blur(18px)","container-color":"#fff","container-width":"360px","container-max-width":"100%","container-padding":"12px 16px","list-max-height":"150px","item-padding":"11px 12px","item-hover-background":"rgba(255, 255, 255, 0.04)","item-selected-background":"rgba(255, 255, 255)","item-selected-color":"#000","item-border-radius":"8px","item-selected-border-radius":"8px","focus-outline-color":"#fff","focus-outline-width":"2px","check-icon":`url("${HU}")`,"check-color":"#fff","check-size":"24px","check-margin-left":"8px","scrollbar-width":"4px","scrollbar-thumb-color":"#666","scrollbar-thumb-radius":"12px",responsive:{extraSmall:{"list-max-height":"180px"},small:{"list-max-height":"235px","item-padding":"20px 24px"},medium:{"container-width":"360px","list-max-height":"300px"}}};var DB=Object.defineProperty,NB=Object.getOwnPropertyDescriptor,MB=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?NB(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&DB(e,n,o),o};function UB(t,e){return t.map(((t,n)=>{if(t?.playbackAction){const{availId:i,deeplinkId:r,visuals:{displayText:o=""}={}}=t.playbackAction;return{id:i,displayText:o||`Item-${n}`,isSelected:i===e,deeplinkId:r??"",contentId:i??""}}return null})).filter((t=>!!t))}const BB={feeds:[]},VB=t=>{const e=t.playbackCriteria?.current?.metadata,n=e?.feeds??[];if(n.length)return{feeds:(i=n,i.map((t=>({id:String(t.id),displayText:t.displayName?.title||t.name||t.text||"",isSelected:t.isSelected??!1,deeplinkId:t.deeplinkId??"",contentId:t.contentId??""}))))};var i;const r=e?.playbackVariantGroupings??[],o=r[0]?.playbackVariants??[],a=e?.availId;return{feeds:UB(o,a)}};let FB=class extends rU{constructor(){super(...arguments),this.streamController=new G_(this,VB,BB),this.controller=new LB(this,{streamController:this.streamController}),this.handleFeedSelection=t=>{this.controller.selectFeed(t)}}getQAElements(){return{feedButtons:this.feedButtons}}render(){const{title:t,feeds:e}=this.controller;return p.x`
4401			<modal-menu-header
4402				title=${t}
4403				.onCloseClick=${this.onCloseModalClick}
4404				.hasBackButton=${!1}
4405				.hasCloseButton=${!0}
4406			></modal-menu-header>
4407			<ul class="list" role="radiogroup" aria-label=${t}>
4408				${_C(e,(t=>p.x`
4409						<li class="list__item">
4410							<button
4411								type="button"
4412								class="list__button"
4413								role="radio"
4414								aria-checked=${t.isSelected?"true":"false"}
4415								@click=${()=>this.handleFeedSelection(t)}
4416							>
4417								<span class="list__label"> ${t.displayText} </span>
4418								${t.isSelected?p.x`<span class="list__check" aria-hidden="true"></span>`:p.E}
4419							</button>
4420						</li>
4421					`))}
4422			</ul>
4423		`}};FB.styles=[...rU.styles,kB],FB.tokens=PB,MB([E(".list__button")],FB.prototype,"feedButtons",2),FB=MB([p_],FB);class zB extends WM{constructor(){super(...arguments),this.modalName=Df.AIRING_MODAL}get ariaLabel(){const{dictionary:t}=this.host;return t.translate(Xl.MEDIA.CONTROLS.BROADCASTS_MENU,"Broadcasts")}get classMapObject(){return{...super.classMapObject,"airing-modal-control-button":!0}}}const $B={...XM,"modal-control-icon":"url(\"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.9053%207.00001C13.6684%206.99993%2014.3542%206.99961%2014.9092%207.07422C15.5151%207.1557%2016.1364%207.34536%2016.
44236455%207.8545C17.1547%208.36364%2017.3443%208.98495%2017.4258%209.59083C17.5004%2010.1458%2017.5001%2010.8316%2017.5%2011.5947V16.4053C17.5001%2017.1684%2017.5004%2017.8542%2017.4258%2018.4092C17.3443%2019.0151%2017.1547%2019.6364%2016.6455%2020.1455C16.1364%2020.6547%2015.5151%2020.8443%2014.9092%2020.9258C14.3542%2021.0004%2013.6684%2021.0001%2012.9053%2021H6.92774C6.16498%2021.0001%205.47961%2021.0003%204.92481%2020.9258C4.31889%2020.8443%203.69668%2020.6547%203.1875%2020.1455C2.67851%2019.6364%202.48968%2019.015%202.40821%2018.4092C2.33359%2017.8542%202.33294%2017.1684%202.33301%2016.4053V11.5947C2.33294%2010.8316%202.33359%2010.1458%202.40821%209.59083C2.48968%208.98504%202.67851%208.36358%203.1875%207.8545C3.69668%207.34532%204.31889%207.15569%204.92481%207.07422C5.47961%206.99969%206.16498%206.99993%206.92774%207.00001H12.9053ZM23.6582%207.92286C23.8838%207.83492%2024.4021%207.67883%2024.9404%207.99122C25.4786%208.30357%2025.6002%208.83082%2025.6357%209.07032C25.6671%209.28149%2025.6672%209.5301%2025.667%209.71192V18.2881C25.6672%2018.4699%2025.6671%2018.7185%2025.6357%2018.9297C25.6002%2019.1692%2025.4786%2019.6964%2024.9404%2020.0088C24.4021%2020.3212%2023.8838%2020.1651%2023.6582%2020.0772C23.4592%2019.9996%2023.2437%2019.8756%2023.0859%2019.7852C23.0733%2019.7779%2023.0607%2019.7714%2023.0488%2019.7647L20.4258%2018.2656C20.4176%2018.261%2020.4089%2018.2559%2020.4004%2018.251C20.28%2018.1823%2020.1262%2018.0944%2019.9961%2018.002C19.8358%2017.888%2019.6386%2017.7184%2019.4863%2017.4561C19.3342%2017.1938%2019.285%2016.9389%2019.2656%2016.7432C19.2499%2016.5843%2019.2499%2016.4072%2019.25%2016.2686V11.7315C19.2499%2011.5928%2019.2499%2011.4157%2019.2656%2011.2568C19.285%2011.0612%2019.3342%2010.8062%2019.4863%2010.544C19.6386%2010.2816%2019.8358%2010.112%2019.9961%209.99805C20.1262%209.90564%2020.28%209.81774%2020.4004%209.74903C20.4089%209.74416%2020.4176%209.73906%2020.4258%209.73438L23.0488%208.23536C23.0607%208.22858%2023.0733%208.2221%2023.0859%208.21485C23.2437%208.12445%2023.4592%208.00045%2023.6582%207.92286Z'%20fill='white'/%3e%3c/svg%3e\")","modal-open--pointer-events":"none"};var HB=Object.defineProperty,GB=Object.getOwnPropertyDescriptor,YB=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?GB(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&HB(e,n,o),o};let jB=class extends tU{constructor(){super(...arguments),this.controller=new zB(this)}getTrackingVisibility(){return this.controller.isVisible()?{elementId:"broadcast_selector",elementIdType:"button",elementName:"broadcast_selector"}:null}renderModal(){const{modalName:t}=this.controller;return p.x`<airing-modal
4424			modalName="${t}"
4425			.handleClose=${this.handleClose}
4426		></airing-modal>`}};jB.styles=[...tU.styles],jB.tokens=$B,YB([b("airing-modal")],jB.prototype,"modal",2),jB=YB([Gf(),p_],jB);const KB={...NM,"dialog--background-color":"transparent","dialog--width":"auto","dialog--overflow":"visible",responsive:{...NM.responsive,small:{...NM.responsive?.small,"dialog--left":"auto","dialog--top":"unset","dialog--right":"3%","dialog--bottom":"110px"}}};class WB extends HM{constructor(){super(...arguments),this.isResponsiveTakeover=!0}get ariaLabel(){return this.host?.dictionary&&this.isModalOpen?this.host.dictionary.translate(Xl.MEDIA.CONTROLS.AUDIO_LABEL,"Audio Switcher"):null}}Object.getOwnPropertyDescriptor;let qB=class extends KM{constructor(){super(...arguments),this.controller=new WB(this)}renderMainView(){return p.x`<audio-switcher-main-selection-view
4427			.modalController=${this.controller}
4428		></audio-switcher-main-selection-view>`}createViews(){this.views={main:this.renderMainView},this.addViewsToController()}};qB.styles=[...KM.styles],qB.tokens=KB,qB=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4428)([p_],qB);class XB extends WM{constructor(){super(...arguments),this.modalName=Df.AUDIO_SWITCHER_MODAL}get ariaLabel(){const{dictionary:t}=this.host;return t.translate(Xl.MEDIA.CONTROLS.AUDIO_LABEL,"Audio Switcher")}get classMapObject(){return{...super.classMapObject,"audio-switcher-modal-control-button":!0}}}const ZB={...XM,"modal-control-icon":"","modal-open--visibility":"visible","modal-open--pointer-events":"auto"};var QB=Object.defineProperty,JB=Object.getOwnPropertyDescriptor,tV=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?JB(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&QB(e,n,o),o};let eV=class extends tU{constructor(){super(...arguments),this.controller=new XB(this)}renderModal(){const{modalName:t}=this.controller;return p.x`<audio-switcher-modal
4429			modalName="${t}"
4430			.handleClose=${this.handleClose}
4431		></audio-switcher-modal>`}};eV.styles=[...tU.styles],eV.tokens=ZB,tV([b("audio-switcher-modal")],eV.prototype,"modal",2),eV=tV([p_],eV);class nV{constructor(t,e){this.streamController=null,this.host=t,this.streamController=e?.streamController??null}get title(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.AUDIO_LABEL,"Audio Switcher")}get audioTracks(){return this.streamController?.value?.audioTracks??[]}get hasMultipleTracks(){return this.audioTracks.length>1}selectAudioTrack(t){this.streamController?.value?.isInterstitialPlaying||this.host.commandBus?.dispatchCommand(Ql.AUDIO_TRACK_SELECTION,{label:"Audio switcher menu",track:t})}}const iV=Wb('\n\tmodal-menu-header {\n\t\t--title--border-bottom: none;\n\t}\n\n\t:host {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t\tborder-radius: var(--audio-switcher-container-border-radius);\n\t\tborder: var(--audio-switcher-container-border);\n\t\tbackground-color: var(--audio-switcher-container-background);\n\t\tbox-shadow: var(--audio-switcher-container-box-shadow);\n\t\tbackdrop-filter: var(--audio-switcher-container-backdrop-filter);\n\t\tcolor: var(--audio-switcher-container-color);\n\t\twidth: var(--audio-switcher-container-width);\n\t\tmax-width: var(--audio-switcher-container-max-width);\n\t\tpadding: var(--audio-switcher-container-padding);\n\t\tbox-sizing: border-box;\n\t\tfont-family: var(--audio-switcher-font-family);\n\t\tfont-size: var(--audio-switcher-font-size);\n\t}\n\n\t.audio-switcher-list {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\toverflow: auto;\n\t\tmax-height: var(--audio-switcher-list-max-height);\n\t\t-webkit-overflow-scrolling: touch;\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.audio-switcher-list::-webkit-scrollbar {\n\t\twidth: var(--audio-switcher-scrollbar-width);\n\t}\n\n\t.audio-switcher-list::-webkit-scrollbar-thumb {\n\t\tbackground: var(--audio-switcher-scrollbar-thumb-color);\n\t\tborder-radius: var(--audio-switcher-scrollbar-thumb-radius);\n\t}\n\n\t.audio-switcher-list::-webkit-scrollbar-corner {\n\t\tbackground: transparent;\n\t}\n\n\t.audio-switcher-list::-webkit-scrollbar-button {\n\t\tdisplay: none;\n\t}\n\n\t.audio-switcher-list__item {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\n\t.audio-switcher-list__button {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\twidth: 100%;\n\t\tpadding: var(--audio-switcher-item-padding);\n\t\tmargin: 0;\n\t\tborder: none;\n\t\tborder-radius: var(--audio-switcher-item-border-radius);\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont: inherit;\n\t\ttext-align: start;\n\t\tcursor: pointer;\n\t}\n\n\t.audio-switcher-list__button:hover {\n\t\tbackground-color: var(--audio-switcher-item-hover-background);\n\t}\n\n\t.audio-switcher-list__button:focus {\n\t\toutline: none;\n\t}\n\n\t.audio-switcher-list__button:focus-visible {\n\t\toutline: var(--audio-switcher-focus-outline-width) solid var(--audio-switcher-focus-outline-color);\n\t\toutline-offset: -2px;\n\t}\n\n\t.audio-switcher-list__button:disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t.audio-switcher-list__button:disabled:hover {\n\t\tbackground-color: transparent;\n\t}\n\n\t.audio-switcher-list__button[aria-checked="true"]:disabled:hover {\n\t\tbackground-color: var(--audio-switcher-item-selected-background);\n\t}\n\n\t.audio-switcher-list__button[aria-checked="true"] {\n\t\tbackground-color: var(--audio-switcher-item-selected-background);\n\t\tcolor: var(--audio-switcher-item-selected-color);\n\t\tborder-radius: var(--audio-switcher-item-selected-border-radius);\n\t}\n\n\t.audio-switcher-list__button[aria-checked="true"]:hover {\n\t\tbackground-color: var(--audio-switcher-item-hover-background);\n\t}\n\n\t.audio-switcher-list__button[aria-checked="true"] .audio-switcher-list__label {\n\t\tcolor: var(--audio-switcher-item-selected-label-color);\n\t}\n\n\t.audio-switcher-list__label {\n\t\tflex: 1;\n\t\tcolor: var(--audio-switcher-label-color);\n\t\tfont-size: var(--audio-switcher-label-font-size);\n\t\tline-height: var(--audio-switcher-label-line-height);\n\t\tletter-spacing: var(--audio-switcher-label-letter-spacing);\n\t}\n\n\t.audio-switcher-list__check {\n\t\tmask-image: var(--audio-switcher-check-icon);\n\t\t-webkit-mask-image: var(--audio-switcher-check-icon);\n\t\theight: var(--audio-switcher-check-size);\n\t\twidth: var(--audio-switcher-check-size);\n\t\tmask-size: contain;\n\t\tmask-repeat: no-repeat;\n\t\tbackground-color: var(--audio-switcher-check-color);\n\t\tflex-shrink: 0;\n\t\tmargin-inline-start: var(--audio-switcher-check-margin-left);\n\t}\n\n\t.audio-switcher-list__button[aria-checked="true"] .audio-switcher-list__check {\n\t\tbackground-color: var(--audio-switcher-item-selected-check-color);\n\t}\n'),rV={"audio-switcher-container-border-radius":"6px","audio-switcher-container-border":"none","audio-switcher-container-background":"#1d1e1f","audio-switcher-container-box-shadow":"none","audio-switcher-container-backdrop-filter":"none","audio-switcher-container-color":"#f9f9f9","audio-switcher-container-width":"300
4431px","audio-switcher-container-max-width":"100%","audio-switcher-container-padding":"2px","audio-switcher-font-family":"inherit","audio-switcher-font-size":"inherit","audio-switcher-list-max-height":"var(--dialog--content-max-height)","audio-switcher-item-padding":"10px 14px","audio-switcher-item-border-radius":"0","audio-switcher-item-selected-border-radius":"0","audio-switcher-item-hover-background":"rgba(255, 255, 255, 0.04)","audio-switcher-item-selected-background":"transparent","audio-switcher-item-selected-color":"inherit","audio-switcher-item-selected-label-color":"inherit","audio-switcher-item-selected-check-color":"#fff","audio-switcher-label-color":"inherit","audio-switcher-label-font-size":"inherit","audio-switcher-label-line-height":"normal","audio-switcher-label-letter-spacing":"normal","audio-switcher-focus-outline-color":"#fff","audio-switcher-focus-outline-width":"2px","audio-switcher-check-icon":`url("${HU}")`,"audio-switcher-check-color":"#fff","audio-switcher-check-size":"24px","audio-switcher-check-margin-left":"8px","audio-switcher-scrollbar-width":"8px","audio-switcher-scrollbar-thumb-color":"#666","audio-switcher-scrollbar-thumb-radius":"12px",responsive:{small:{"audio-switcher-item-padding":"20px 24px"}}};var oV=Object.defineProperty,aV=Object.getOwnPropertyDescriptor,sV=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?aV(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&oV(e,n,o),o};const lV={audioTracks:[],selectedLanguage:void 0,isInterstitialPlaying:!1},cV=t=>({audioTracks:t.audio?.tracks??[],selectedLanguage:t.audio?.selectedLanguage,isInterstitialPlaying:!!t.interstitials?.isInterstitialPlaying});let dV=class extends rU{constructor(){super(...arguments),this.streamController=new G_(this,cV,lV),this.controller=new nV(this,{streamController:this.streamController}),this.handleTrackSelection=t=>{this.controller.selectAudioTrack(t)}}getQAElements(){return{audioTrackButtons:this.audioTrackButtons}}render(){const{title:t,audioTracks:e}=this.controller,{isInterstitialPlaying:n}=this.streamController.value;return p.x`
4432			<modal-menu-header
4433				title=${t}
4434				.onCloseClick=${this.onCloseModalClick}
4435				.hasBackButton=${!1}
4436				.hasCloseButton=${!0}
4437			></modal-menu-header>
4438			<ul class="audio-switcher-list" role="radiogroup" aria-label=${t}>
4439				${_C(e,(t=>p.x`
4440						<li class="audio-switcher-list__item">
4441							<button
4442								type="button"
4443								class="audio-switcher-list__button"
4444								role="radio"
4445								aria-checked=${t.isSelected?"true":"false"}
4446								?disabled=${n}
4447								@click=${()=>this.handleTrackSelection(t)}
4448							>
4449								<span class="audio-switcher-list__label"
4450									>${t.displayName?.title??t.name}</span
4451								>
4452								${t.isSelected?p.x`<span
4453												class="audio-switcher-list__check"
4454												aria-hidden="true"
4455											></span>`:p.E}
4456							</button>
4457						</li>
4458					`))}
4459			</ul>
4460		`}};dV.styles=[...rU.styles,iV],dV.tokens=rV,sV([E(".audio-switcher-list__button")],dV.prototype,"audioTrackButtons",2),dV=sV([p_],dV);const uV={...NM,"dialog--height":"90%"};class pV extends HM{constructor(){super(...arguments),this.isResponsiveTakeover=!1}get ariaLabel(){return this.host?.dictionary&&this.isModalOpen?this.host.dictionary.translate(Xl.MEDIA.CONTROLS.BROADCASTS_MENU,"Alternative Broadcast"):null}}Object.getOwnPropertyDescriptor;let hV=class extends KM{constructor(){super(...arguments),this.controller=new pV(this)}renderMainView(){return p.x`<alternative-broadcast-main-view
4461			.modalController=${this.controller}
4462		></alternative-broadcast-main-view>`}createViews(){this.views={main:this.renderMainView},this.addViewsToController()}};hV.styles=[...KM.styles],hV.tokens=uV,hV=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4462)([p_],hV);class mV extends WM{constructor(){super(...arguments),this.modalName=Df.BROADCAST}get ariaLabel(){const{dictionary:t}=this.host;return t.translate(Xl.MEDIA.CONTROLS.BROADCASTS_MENU,"Alternative Broadcast")}get classMapObject(){return{...super.classMapObject,"alternative-broadcast-modal-control-button":!0}}}const gV={...XM,"modal-control-icon":"","modal-open--visibility":"visible","modal-open--pointer-events":"auto"};var vV=Object.defineProperty,fV=Object.getOwnPropertyDescriptor,bV=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?fV(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&vV(e,n,o),o};const _V={alternativeBroadcastSelectorData:[]},EV=t=>({alternativeBroadcastSelectorData:t.playbackCriteria?.current?.metadata?.alternativeBroadcastSelectorData??[]});let yV=class extends tU{constructor(){super(...arguments),this.controller=new mV(this),this.streamController=new G_(this,EV,_V)}renderModal(){const{modalName:t}=this.controller;return p.x`<alternative-broadcast-modal
4463			modalName="${t}"
4464			.handleClose=${this.handleClose}
4465		></alternative-broadcast-modal>`}render(){const t=super.render(),{alternativeBroadcastSelectorData:e}=this.streamController.value;return this.hidden=!e?.length,t}getTrackingVisibility(){const{alternativeBroadcastSelectorData:t}=this.streamController.value;return t?.length?{elementId:"broadcast_selector",elementIdType:"button",elementName:"broadcast_selector"}:null}};yV.styles=[...tU.styles],yV.tokens=gV,bV([b("alternative-broadcast-modal")],yV.prototype,"modal",2),yV=bV([Gf(),p_],yV);Object.getOwnPropertyDescriptor;let SV=class extends rU{render(){return p.x`<div class="base-broadcast-view">
4466			Alternative Broadcast View Placeholder
4467		</div>`}};SV.styles=[...rU.styles],SV=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4467)([p_],SV);const TV="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M17.416%202.62412C17.7607%202.39435%2017.8538%201.9287%2017.624%201.58405C17.3943%201.23941%2016.9286%201.14628%2016.584%201.37604L13.6687%203.31955C13.1527%203.11343%2012.5897%203.00006%2012.0001%203.00006C11.4105%203.00006%2010.8474%203.11345%2010.3314%203.31962L7.41603%201.37604C7.07138%201.14628%206.60573%201.23941%206.37596%201.58405C6.1462%201.9287%206.23933%202.39435%206.58397%202.62412L8.9437%204.19727C8.24831%204.84109%207.75664%205.70181%207.57617%206.6719C8.01128%206.55973%208.46749%206.50006%208.93763%206.50006H15.0626C15.5328%206.50006%2015.989%206.55973%2016.4241%206.6719C16.2436%205.70176%2015.7519%204.841%2015.0564%204.19717L17.416%202.62412Z'%20fill='%231C274C'/%3e%3cpath%20d='M1.25%2014.0001C1.25%2013.5859%201.58579%2013.2501%202%2013.2501H5V11.9376C5%2011.1019%205.26034%2010.327%205.70435%209.68959L3.22141%208.69624C2.83684%208.54238%202.6498%208.10589%202.80366%207.72131C2.95752%207.33673%203.39401%207.1497%203.77859%207.30356L6.91514%208.55841C7.50624%208.20388%208.19807%208.00006%208.9375%208.00006H15.0625C15.8019%208.00006%2016.4938%208.20388%2017.0849%208.55841L20.2214%207.30356C20.606%207.1497%2021.0425%207.33673%2021.1963%207.72131C21.3502%208.10589%2021.1632%208.54238%2020.7786%208.69624L18.2957%209.68959C18.7397%2010.327%2019%2011.1019%2019%2011.9376V13.2501H22C22.4142%2013.2501%2022.75%2013.5859%2022.75%2014.0001C22.75%2014.4143%2022.4142%2014.7501%2022%2014.7501H19V15.0001C19%2016.1808%2018.7077%2017.2932%2018.1915%2018.2689L20.7786%2019.3039C21.1632%2019.4578%2021.3502%2019.8943%2021.1963%2020.2789C21.0425%2020.6634%2020.606%2020.8505%2020.2214%2020.6966L17.3288%2019.5394C16.1974%2020.8664%2014.5789%2021.7655%2012.75%2021.9604V15.0001C12.75%2014.5858%2012.4142%2014.2501%2012%2014.2501C11.5858%2014.2501%2011.25%2014.5858%2011.25%2015.0001V21.9604C9.42109%2021.7655%207.80265%2020.8664%206.67115%2019.5394L3.77859%2020.6966C3.39401%2020.8505%202.95752%2020.6634%202.80366%2020.2789C2.6498%2019.8943%202.83684%2019.4578%203.22141%2019.3039L5.80852%2018.2689C5.29231%2017.2932%205%2016.1808%205%2015.0001V14.7501H2C1.58579%2014.7501%201.25%2014.4143%201.25%2014.0001Z'%20fill='%231C274C'/%3e%3c/svg%3e",CV={fontFamily:"Post Grotesk, sans-serif",colors:{colorsSurface2:"rgba(20, 22, 24, .95)",colorsTextIconInformationNeutralLow:"#9D9E9F",colorsFillActivePrimaryNavResting:"#FFFFFF00",colorsFillActionPrimaryAltResting:"#FFFFFF",colorsFillActionPrimaryAltPresseds:"#CECFCF",colorsFillInformationNotfiySecondary:"#000000",textColor:"#f0f3f5",informationTextColor:"#B0B5BE",volumeBackgroundColor:"rgba(249, 249, 249, 0.6)",previewTimeBackgroundColor:"rgba(0, 0, 0, .75)",white:"#FFFFFF",softWhite:"#F9F9F9",black:"#000000",secondaryBlack:"#191919",primaryRed:"#ff3e3e",gray10:"#F4F5F6",gray40:"#B5B7B7",gray40Alpha70:"#B5B7B7B3",gray60:"#9D9E9F",gray60Alpha35:"#9D9E9F59",gray60Alpha50:"#9D9E9F80",gray90:"#22252A",iconInactive:"#FFFFFF",iconActive:"#CECFCF",iconHover:"rgba(229, 230, 233, 1)",iconPressed:"rgba(244, 245, 246, 1)",iconPlaybackHover:"rgba(229, 230, 233, 1)",iconPlaybackPressed:"rgba(229, 230, 233, 1)"},hostHeight:void 0,volumeBar:{height:"5px",width:"80px",thumbWidth:"14px",thumbHeight:"14px",thumbTransform:"translate(-50%, -50%)",thumbLeft:"unset",fromBottom:{width:"unset",height:"unset",display:"unset",justifyContent:"unset",position:"unset",top:"unset",bottom:"unset",maxLevel:{width:"unset"}}},progressBar:{borderRadius:void 0,transportControlsGap:"10px",thumbWidth:"12px",thumbHeight:"12px",thumbWidthHover:"20px",thumbHeightHover:"20px",timeBarHeight:"4px",timeBarBorderRadius:void 0,timeBarHeightHover:"8px",adPlayingThumbDisplay:"flex",adPlayingThumbHeight:"10.5px",adPlayingThumbHeightHover:"12.5px",adPlayingThumbWidth:"10.5px",adPlayingThumbWidthHover:"12.5px",thumbDeferredOutline:"2px solid #ffdb6e",preview:{imageBackgroundColor:"#2D2F36",tileBottom:"20px",timeFontFamily:"Post Grotesk, sans-serif",timeBackgroundColor:"#1D1E1F",hoverMarkerBeforeThumbColor:"#1D1E1F"},adMarkers:{markerContainerOverflow:"visible",pointActiveDeferredOutline:"2px s
4467olid #ffdb6e",pointHeightActiveDeferred:"6px",pointWidthActiveDeferred:"6px"}},seekableRange:{paddingTop:void 0,paddingBottom:void 0},live:{width:"unset",color:"#D85860",fontSize:"14px",liveDotWidth:"6px"},icons:{size:{host:"28px",default:"28px",round:"40px"},modalOpen:{visibility:"hidden"},round:{backgroundColor:"rgba(0, 0, 0, 0.6)",hoverBackgroundColor:"rgba(0, 0, 0, 0.8)"},masks:{back:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.0358%207.22462C18.4286%206.90427%2019.0076%206.92686%2019.3737%207.29298C19.7398%207.65909%2019.7624%208.2381%2019.4421%208.63087L19.3737%208.70704L12.0807%2016L19.3737%2023.293L19.4421%2023.3692C19.7624%2023.7619%2019.7398%2024.3409%2019.3737%2024.707C19.0076%2025.0732%2018.4286%2025.0958%2018.0358%2024.7754L17.9596%2024.707L9.95964%2016.707C9.56912%2016.3165%209.56912%2015.6835%209.95964%2015.293L17.9596%207.29298L18.0358%207.22462Z'%20fill='white'/%3e%3c/svg%3e",check:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2012L9%2016L19%206'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",close:"data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.06703%208.067C8.58773%207.54631%209.43195%207.54631%209.95265%208.067L16%2014.1144L22.0474%208.067C22.5681%207.5463%2023.4123%207.54631%2023.933%208.067C24.4537%208.5877%2024.4537%209.43192%2023.933%209.95262L17.8856%2016L23.933%2022.0474C24.4537%2022.5681%2024.4537%2023.4123%2023.933%2023.933C23.4123%2024.4537%2022.5681%2024.4537%2022.0474%2023.933L16%201
44677.8856L9.95265%2023.933C9.43195%2024.4537%208.58773%2024.4537%208.06703%2023.933C7.54633%2023.4123%207.54633%2022.5681%208.06703%2022.0474L14.1144%2016L8.06703%209.95262C7.54633%209.43192%207.54633%208.5877%208.06703%208.067Z'%20fill='white'/%3e%3c/svg%3e",debug:TV,disablecaptions:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2%206V18C2%2019.1046%202.89543%2020%204%2020H20C21.1046%2020%2022%2019.1046%2022%2018V6C22%204.89543%2021.1046%204%2020%204H4C2.89543%204%202%204.89543%202%206ZM8.9338%2015.8402C10.462%2015.8402%2011.4569%2014.9214%2011.58%2013.1873L10.0107%2012.8466C9.93893%2014.0956%209.5697%2014.5498%208.94406%2014.5498C8.15431%2014.5498%207.72354%2013.9511%207.72354%2011.9898C7.72354%2010.0285%208.18508%209.44016%208.9338%209.44016C9.60047%209.44016%209.93893%209.81177%209.99021%2011.1331L11.5697%2010.844C11.5287%209.0479%2010.5338%208.16016%208.94406%208.16016C7.20047%208.16016%206.09277%209.15112%206.09277%2012.0002C6.09277%2014.8905%207.08765%2015.8402%208.9338%2015.8402ZM15.2617%2015.8402C16.7899%2015.8402%2017.7847%2014.9214%2017.9078%2013.1873L16.3386%2012.8466C16.2668%2014.0956%2015.8976%2014.5498%2015.2719%2014.5498C14.4822%2014.5498%2014.0514%2013.9511%2014.0514%2011.9898C14.0514%2010.0285%2014.5129%209.44016%2015.2617%209.44016C15.9283%209.44016%2016.2668%209.81177%2016.3181%2011.1331L17.8976%2010.844C17.8565%209.0479%2016.8617%208.16016%2015.2719%208.16016C13.5283%208.16016%2012.4206%209.15112%2012.4206%2012.0002C12.4206%2014.8905%2013.4155%2015.8402%2015.2617%2015.8402Z'%20fill='%23141618'/%3e%3c/svg%3e",dismissEndcard:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%3e%3cpath%20d='M2.72489%2017.2831C2.8619%2017.417%203.04585%2017.4919%203.23739%2017.4919C3.42894%2017.4919%203.61289%2017.417%203.74989%2017.2831L9.99989%2011.0331L16.2499%2017.2831C16.3869%2017.419%2016.5723%2017.495%2016.7653%2017.4942C16.9583%2017.4934%2017.1431%2017.416%2017.2791%2017.2789C17.415%2017.1419%2017.4909%2016.9565%2017.4901%2016.7635C17.4893%2016.5705%2017.4119%2016.3857%2017.2749%2016.2498L11.0332%209.99977L17.2749%203.74977C17.3427%203.68247%2017.3967%203.60246%2017.4336%203.51432C17.4705%203.42618%2017.4897%203.33162%2017.4901%203.23605C17.4905%203.14049%2017.4721%203.04578%2017.4359%202.95734C17.3996%202.8689%2017.3464%202.78846%2017.2791%202.72061C17.2118%202.65276%2017.1318%202.59883%2017.0436%202.5619C16.9555%202.52497%2016.8609%202.50576%2016.7653%202.50538C16.6698%202.50499%2016.5751%202.52343%2016.4866%202.55964C16.3982%202.59586%2016.3177%202.64914%2016.2499%202.71644L9.99989%208.96644L3.74989%202.71644C3.61287%202.58052%203.42745%202.5046%203.23445%202.50538C3.04144%202.50616%202.85665%202.58358%202.72073%202.72061C2.5848%202.85764%202.50888%203.04305%202.50966%203.23605C2.51044%203.42906%202.58787%203.61385%202.72489%203.74977L8.96656%209.99977L2.72489%2016.2498C2.65533%2016.3166%202.59998%2016.3969%202.56218%2016.4857C2.52437%2016.5744%202.50488%2016.6699%202.50488%2016.7664C2.50488%2016.8629%202.52437%2016.9584%202.56218%2017.0472C2.59998%2017.136%202.65533%2017.2162%202.72489%2017.2831Z'%20fill='white'/%3e%3c/svg%3e",enablecaptions:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20style='&%2310;'%3e%3cpath%20d='M4.33301%205.6665H23.666C24.2183%205.6665%2024.666%206.11422%2024.666%206.6665V21.3335C24.6658%2021.8856%2024.2182%2022.3335%2023.666%2022.3335H4.33301C3.78083%2022.3335%203.33318%2021.8856%203.33301%2021.3335V6.6665C3.33301%206.11422%203.78072%205.6665%204.33301%205.6665Z'%20stroke='white'%20stroke-width='2'/%3e%3cpath%20d='M13.5101%2015.385C13.3665%2017.4082%2012.2058%2018.48%2010.4229%2018.48C8.26908%2018.48%207.1084%2017.3721%207.1084%2014C7.1084%2010.6761%208.40071%209.52002%2010.4349%209.52002C12.2896%209.52002%2013.4503%2010.5557%2013.4981%2012.6512L11.6554%2012.9884C11.5956%2011.4469%2011.2007%2011.0134%2010.4229%2011.0134C9.54942%2011.0134%209.01096%2011.6998%209.01096%2013.988C9.01096%2016.2761%209.51353%2016.9746%2010.4349%2016.9746C11.1648%2016.9746%2011.5956%2016.4447%2011.6793%2014.9875L13.5101%2015.385Z'%20fill='white'/%3e%3cpath%20d='M20.8926%2015.385C20.749%2017.4082%2019.5883%2018.48%2017.8054%2018.48C15.6516%2018.48%2014.4909%2017.3721%2014.4909%2014C14.4909%2010.6761%2015.7832%209.52002%2017.8174%209.52002
4467C19.6721%209.52002%2020.8328%2010.5557%2020.8806%2012.6512L19.0379%2012.9884C18.9781%2011.4469%2018.5832%2011.0134%2017.8054%2011.0134C16.9319%2011.0134%2016.3935%2011.6998%2016.3935%2013.988C16.3935%2016.2761%2016.896%2016.9746%2017.8174%2016.9746C18.5473%2016.9746%2018.9781%2016.4447%2019.0618%2014.9875L20.8926%2015.385Z'%20fill='white'/%3e%3c/svg%3e",exitfullscreen:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.2667%203.5C10.911%203.5%2011.4333%204.02233%2011.4333%204.66667V10.2667C11.4333%2010.911%2010.911%2011.4333%2010.2667%2011.4333H4.66667C4.02233%2011.4333%203.5%2010.911%203.5%2010.2667C3.5%209.62233%204.02233%209.1%204.66667%209.1H9.1V4.66667C9.1%204.02233%209.62233%203.5%2010.2667%203.5ZM17.7333%203.5C18.3777%203.5%2018.9%204.02233%2018.9%204.66667V9.1H23.3333C23.9777%209.1%2024.5%209.62233%2024.5%2010.2667C24.5%2010.911%2023.9777%2011.4333%2023.3333%2011.4333H17.7333C17.089%2011.4333%2016.5667%2010.911%2016.5667%2010.2667V4.66667C16.5667%204.02233%2017.089%203.5%2017.7333%203.5ZM3.5%2017.7333C3.5%2017.089%204.02233%2016.5667%204.66667%2016.5667H10.2667C10.911%2016.5667%2011.4333%2017.089%2011.4333%2017.7333V23.3333C11.4333%2023.9777%2010.911%2024.5%2010.2667%2024.5C9.62233%2024.5%209.1%2023.9777%209.1%2023.3333V18.9H4.66667C4.02233%2018.9%203.5%2018.3777%203.5%2017.7333ZM16.5667%2017.7333C16.5667%2017.089%2017.089%2016.5667%2017.7333%2016.5667H23.3333C23.9777%2016.5667%2024.5%2017.089%2024.5%2017.7333C24.5%2018.3777%2023.9777%2018.9%2023.3333%2018.9H18.9V23.3333C18.9%2023.9777%2018.3777%2024.5%2017.7333%2024.5C17.089%2024.5%2016.5667%2023.9777%2016.5667%2023.3333V17.7333Z'%20fill='white'/%3e%3c/svg%3e",ffShell:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.0382%209.16671C23.3788%209.16671%2025.5678%209.79161%2027.4535%2010.8825L29.2895%207.70857C26.8607%206.30359%2024.0405%205.50004%2021.0382%205.50004C11.9255%205.50004%204.53821%2012.8873%204.53821%2022C4.53821%2031.1127%2011.9255%2038.5%2021.0382%2038.5C30.1509%2038.5%2037.5382%2031.1127%2037.5382%2022C37.5382%2020.9875%2036.7174%2020.1667%2035.7049%2020.1667C34.6924%2020.1667%2033.8715%2020.9875%2033.8715%2022C33.8715%2029.0877%2028.1259%2034.8334%2021.0382%2034.8334C13.9506%2034.8334%208.20487%2029.0877%208.20487%2022C8.20487%2014.9124%2013.9506%209.16671%2021.0382%209.16671Z'%20fill='white'/%3e%3cpath%20d='M32.1632%2012.347C32.5983%2012.2039%2032.861%2011.7616%2032.7785%2011.311L31.8451%206.21494C31.6924%205.38161%2030.5879%205.18358%2030.1553%205.91197L26.1671%2012.6265C25.7344%2013.3549%2026.4368%2014.2301%2027.2416%2013.9654L32.1632%2012.347Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M30.8311%2010.8551L28.9924%2011.4598L30.4824%208.95123L30.8311%2010.8551ZM32.7785%2011.311C32.861%2011.7616%2032.5983%2012.2039%2032.1632%2012.347L27.2416%2013.9654C26.4368%2014.2301%2025.7344%2013.3549%2026.1671%2012.6265L30.1553%205.91197C30.5879%205.18358%2031.6924%205.38161%2031.8451%206.21494L32.7785%2011.311Z'%20fill='white'/%3e%3c/svg%3e",ff10sec:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.0382%209.16671C23.3788%209.16671%2025.5678%209.79161%2027.4535%2010.8825L29.2895%207.70857C26.8607%206.30359%2024.0405%205.50004%2021.0382%205.50004C11.9255%205.50004%204.53821%2012.8873%204.53821%2022C4.53821%2031.1127%2011.9255%2038.5%2021.0382%2038.5C30.1509%2038.5%2037.5382%2031.1127%2037.5382%2022C37.5382%2020.9875%2036.7174%2020.1667%2035.7049%2020.1667C34.6924%2020.1667%2033.8715%2020.9875%2033.8715%2022C33.8715%2029.0877%2028.1259%2034.8334%2021.0382%2034.8334C13.9506%2034.8334%208.20487%2029.0877%208.20487%2022C8.20487%2014.9124%2013.9506%209.16671%2021.0382%209.16671Z'%20fill='white'/%3e%3cpath%20d='M32.1632%2012.347C32.5983%2012.2039%2
4467032.861%2011.7616%2032.7785%2011.311L31.8451%206.21494C31.6924%205.38161%2030.5879%205.18358%2030.1553%205.91197L26.1671%2012.6265C25.7344%2013.3549%2026.4368%2014.2301%2027.2416%2013.9654L32.1632%2012.347Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M30.8311%2010.8551L28.9924%2011.4598L30.4824%208.95123L30.8311%2010.8551ZM32.7785%2011.311C32.861%2011.7616%2032.5983%2012.2039%2032.1632%2012.347L27.2416%2013.9654C26.4368%2014.2301%2025.7344%2013.3549%2026.1671%2012.6265L30.1553%205.91197C30.5879%205.18358%2031.6924%205.38161%2031.8451%206.21494L32.7785%2011.311Z'%20fill='white'/%3e%3cpath%20d='M30.2408%2022.2989C30.2408%2023.1239%2030.1583%2023.8994%2029.9933%2024.6254C29.8393%2025.3404%2029.5863%2025.9619%2029.2343%2026.4899C28.8823%2027.0179%2028.4313%2027.4359%2027.8813%2027.7439C27.3313%2028.0409%2026.6603%2028.1894%2025.8683%2028.1894C25.0763%2028.1894%2024.4053%2028.0409%2023.8553%2027.7439C23.3053%2027.4359%2022.8543%2027.0179%2022.5023%2026.4899C22.1503%2025.9619%2021.8918%2025.3404%2021.7268%2024.6254C21.5728%2023.8994%2021.4958%2023.1239%2021.4958%2022.2989C21.4958%2021.4739%2021.5728%2020.7039%2021.7268%2019.9889C21.8918%2019.2629%2022.1503%2018.6359%2022.5023%2018.1079C22.8543%2017.5799%2023.3053%2017.1674%2023.8553%2016.8704C24.4053%2016.5624%2025.0763%2016.4084%2025.8683%2016.4084C26.6603%2016.4084%2027.3313%2016.5624%2027.8813%2016.8704C28.4313%2017.1674%2028.8823%2017.5799%2029.2343%2018.1079C29.5863%2018.6359%2029.8393%2019.2629%2029.9933%2019.9889C30.1583%2020.7039%2030.2408%2021.4739%2030.2408%2022.2989ZM27.8153%2022.2989C27.8153%2021.7379%2027.7768%2021.2154%2027.6998%2020.7314C27.6338%2020.2364%2027.5238%2019.8074%2027.3698%2019.4444C27.2158%2019.0814%2027.0123%2018.8009%2026.7593%2018.6029C26.5173%2018.3939%2026.2203%2018.2894%2025.8683%2018.2894C25.5163%2018.2894%2025.2138%2018.3939%2024.9608%2018.6029C24.7188%2018.8009%2024.5208%2019.0814%2024.3668%2019.4444C24.2128%2019.8074%2024.0973%2020.2364%2024.0203%2020.7314C23.9543%2021.2154%2023.9213%2021.7379%2023.9213%2022.2989C23.9213%2022.8599%2023.9543%2023.3879%2024.0203%2023.8829C24.0973%2024.3669%2024.2128%2024.7904%2024.3668%2025.1534C24.5208%2025.5164%2024.7188%2025.8024%2024.9608%2026.0114C25.2138%2026.2094%2025.5163%2026.3084%2025.8683%2026.3084C26.2203%2026.3084%2026.5173%2026.2094%2026.7593%2026.0114C27.0123%2025.8024%2027.2158%2025.5164%2027.3698%2025.1534C27.5238%2024.7904%2027.6338%2024.3669%2027.6998%2023.8829C27.7768%2023.3879%2027.8153%2022.8599%2027.8153%2022.2989Z'%20fill='white'/%3e%3cpath%20d='M12.7242%2026.0774H15.3972V19.0814C15.1772%2019.2464%2014.8802%2019.3839%2014.5062%2019.4939C14.1322%2019.6039%2013.7307%2019.6699%2013.3017%2019.6919L12.8727%2017.7614C13.4667%2017.6954%2014.0057%2017.5634%2014.4897%2017.3654C14.9847%2017.1674%2015.3697%2016.9034%2015.6447%2016.5734H17.8062V26.0774H20.2482V27.9584H12.7242V26.0774Z'%20fill='white'/%3e%3c/svg%3e",ff30sec:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M6.885%2010.575C6.927%2010.395%206.996%2010.212%207.092%2010.026C7.188%209.834%207.317%209.663%207.479%209.513C7.647%209.363%207.854%209.24%208.1%209.144C8.352%209.048%208.649%209%208.991%209C9.327%209%209.627%209.048%209.891%209.144C10.155%209.234%2010.377%209.36%2010.557%209.522C10.737%209.684%2010.875%209.873%2010.971%2010.089C11.067%2010.299%2011.115%2010.524%2011.115%2010.764C11.115%2011.112%2011.025%2011.4%2010.845%2011.628C10.671%2011.856%2010.446%2012.021%2010.17%2012.123C10.332%2012.153%2010.479%2012.213%2010.611%2012.303C10.749%2012.393%2010.866%2012.504%2010.962%2012.636C11.058%2012.762%2011.133%2012.906%2011.187%2013.068C11.241%2013.23%2011.268%2013.398%2011.268%2013.572C11.268%2013.8%2011.22%2014.025%2011.124%2014.247C11.034%2014.463%2010.896%2014.661%2010.71%2014.841C10.524%2015.015%2010.287%2015.156%209.999%2015.264C9.711%2015.372%209.375%2015.426%208.991%2015.426C8.583%2015.426%208.235%2015.369%207.947%2015.255C7.665%2015.135%207.437%2014.991%207.263%2014.823C7.089%2014.649%206.96%2014.466%206.876%2014.274C6.798%2014.082%206.756%2013.914%206.75%2013.77L7.974%2013.41C7.986%2013.506%208.01%2013.611%208.046%2013.725C8.082%2013.839%208.136%2013.947%208.208%2014.049C8.286%2014.151%208.388%2014.238%208.514%2014.31C8.646%2014.376%208.808%2014.409%209%2014.409C9.186%2014.409%209.339%2014.382%209.459%2014.328C9.585%2014.274%209.684%2014.205%209.756%2014.121C9.828%2014.037%209.879%2013.944%209.909%2013.842C9.939%2013.74%209.954%2013.641%209.954%2013.545C9.954%2013.275%209.855%2013.062%209.657%2012.906C9.465%2012.744%209.192%2012.663%208.838%2012.663L8.523%2012.681V11.601C8.559%2011.607%208.595%2011.61%208.631%2011.61H8.829C9.165%2011.61%209.411%2011.532%209.567%2011.376C9.729%2011.22%209.81%2011.028%209.81%2010.8C9.81%2010.542%209.726%2010.347%209.558%2010.215C9.39%2010.083%209.192%2010.017%208.964%2010.017C8.718%2010.017%208.511%2010.101%208.343%2010.269C8.175%2010.431%208.085%2010.629%208.073%2010.863L6.885%2010.575Z'%20fill='%23141618'/%3e%3cpath%20d='M16.6105%2012.213C16.6105%2012.663%2016.5655%2013.086%2016.4755%2013.482C16.3915%2013.872%2016.2535%2014.211%2016.0615%2014.499C15.8695%2014.787%2015.6235%2015.015%2015.3235%2015.183C15.0235%2015.345%2014.6575%2015.426%2014.2255%2015.426C13.7935%2015.426%2013.4275%2015.345%2013.1275%2015.183C12.8275%2015.015%2012.5815%2014.787%2012.3895%2014.499C12.1975%2014.211%2012.0565%2013.872%2011.9665%2013.482C11.8825%2013.086%2011.8405%2012.663%2011.8405%2012.213C11.8405%2011.763%2011.8825%2011.343%2011.9665%2010.953C12.0565%2010.557%2012.1975%2010.215%2012.3895%209.927C12.5815%209.639%2012.8275%209.414%2013.1275%209.252C13.4275%209.084%2013.7935%209%2014.2255%209C14.6575%209%2015.0235%209.084%2015.3235%209.252C15.6235%209.414%2015.8695%209.639%2016.0615%209.927C16.2535%2010.215%2016.3915%2010.557%2016.4755%2010.953C16.5655%2011.343%2016.6105%2011.763%2016.6105%2012.213ZM15.2875%2012.213C15.2875%2011.907%2015.2665%2011.622%2015.2245%2011.358C15.1885%2011.088%2015.1285%2010.854%2015.0445%2010.656C14.9605%2010.458%2014.8495%2010.305%2014.7115%2010.197C14.5795%2010.083%2014.4175%2010.026%2014.2255%2010.026C14.0335%2010.026%2013.8685%2010.083%2013.7305%2010.197C13.5985%2010.305%2013.4905%2010.458%2013.4065%2010.656C13.3225%2010.854%2013.2595%2011.088%2013.2175%2011.358C13.1815%2011.622%2013.1635%2011.907%2013.1635%2012.213C13.1635%2012.519%2013.1815%2012.807%2013.2175%2013.077C13.2595%2013.341%2013.3225%2013.572%2013.4065%2013.77C13.4905%2013.968%2013.5985%2014.124%2013.7305%2014.238C13.8685%2014.346%2014.0335%2014.4%2014.2255%2014.4C14.4175%2014.4%2014.5795%2014.346%2014.7115%2014.238C14.8495%2014.124%2014.9605%2013.968%2015.0445%2013.77C15.1285%2013.572%2015.1885%2013.341%2015.2245%2013.077C15.2665%2012.807%2015.2875%2012.519%2015.2875%2012.213Z'%20fill='%23141618'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.4756%205C12.7523%205%2013.9463%205.34086%2014.9749%205.93586L15.9763%204.20465C14.6515%203.4383%2013.1132%203%2011.4756%203C6.50502%203%202.47559%207.02944%202.47559%2012C2.47559%2016.9706%206.50502%2021%2011.4756%2021C16.4461%2021%2020.4756%2016.9706%2020.4756%2012C20.4756%2011.4477%2020.0279%2011%2019.4756%2011C18.9233%2011%2018.4756%2011.4477%2018.4756%2012C18.4756%2015.866%2015.3416%2019%2011.4756%2019C7.60959%2019%204.47559%2015.866%204.47559%2012C4.47559%208.13401%207.60959%205%2011.4756%205Z'%20fill='%23141618'/%3e%3cpath%20d='M17.5435%206.7345C17.7808%206.65645%2017.9241%206.41519%2017.8791%206.16944L17.37%203.38975C17.2867%202.9352%2016.6843%202.82719%2016.4483%203.22449L14.2729%206.88698C14.0369%207.28429%2014.42%207.76165%2014.859%207.6173L17.5435%206.7345Z'%20fill='%23141618'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.8169%205.92075L15.814%206.25055L16.6267%204.88227L16.8169%205.92075ZM17.8791%206.16944C17.9241%206.41519%2017.7808%206.65645%2017.5435%206.7345L14.859%207.6173C14.42%207.76165%2014.0369%207.28429%2014.2729%206.88698L16.4483%203.22449C16.6843%202.82719%2017.2867%202.93521%2017.37%203.38975L17.8791%206.16944Z'%20fill='%23141618'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.4756%205C13%205%2014.4079%205.48611%2015.5566%206.31195L16.724%204.68805C15.2465%203.6258%2013.4326%203%2011.4756%203C6.50502%203%202.47559%207.02944%202.47559%2012C2.47559%2016.9706%206.50502%2021%2011.4756%2021C16.4461%2021%2020.4756%2016.9706%2020.4756%2012H18.4756C18.4756%2015.866%2015.3416%2019%2011.4756%2019C7.60959%2019%204.47559%2015.866%204.47559%2012C4.47559%208.13401%207.60959%205%2011.4756%205Z'%20fill='%23141618'/%3e%3c/svg%3e",fullscreen:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.5%204.66667C3.5%204.02233%204.02233%203.5%204.66667%203.5H10.2667C10.911%203.5%2011.4333%204.02233%2011.4333%204.66667C11.4333%205.311%2010.911%205.83333%2010.2667%205.83333H5.83333V10.2667C5.83333%2010.911%205.311%2011.4333%204.66667%2011.4333C4.02233%2011.4333%203.5%2010.911%203.5%2010.2667V4.66667ZM16.5667%204.66667C16.5667%204.02233%2017.089%203.5%2017.7333%203.5H23.3333C23.9777%203.5%2024.5%204.02233%2024.5%204.66667V10.2667C24.5%2010.911%2023.9777%2011.4333%2023.3333%2011.4333C22.689%2011.4333%2022.1667%2010.911%2022.1667%2010.2667V5.83333H17.7333C17.089%205.83333%2016.5667%205.311%2016.5667%204.66667ZM4.66667%2016.5667C5.311%2016.5667%205.83333%2017.089%205.83333%2017.7333V22.1667H10.2667C10.911%2022.1667%2011.4333%2022.689%2011.4333%2023.3333C11.4333%2023.9777%2010.911%2024.5%2010.2667%2024.5H4.66667C4.02233%2024.5%203.5%2023.9777%203.5%2023.3333V17.7333C3.5%2017.089%204.02233%2016.5667%204.66667%2016.5667ZM23.3333%2016.5667C23.9777%2016.5667%2024.5%2017.089%2024.5%2017.7333V23.3333C24.5%2023.9777%2023.9777%2024.5%2023.3333%2024.5H17.7333C17.089%2024.5%2016.5667%2023.9777%2016.5667%2023.3333C16.5667%2022.689%2017.089%2022.1667%2017.7333%2022.1667H22.1667V17.7333C22.1667%2017.089%2022.689%2016.5667%2023.3333%2016.5667Z'%20fill='white'/%3e%3c/svg%3e",muted:"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.0892%2010.9519C20.4308%2010.6101%2020.9849%2010.61%2021.3266%2010.9517L23.1379%2012.7626L24.9482%2010.9518C25.2898%2010.6101%2025.8439%2010.61%2026.1856%2010.9517C26.5274%2011.2934%2026.5274%2011.8474%2026.1857%2012.1891L24.3753%2014L26.1857%2015.8109C26.5274%2016.1526%2026.5274%2016.7066%2026.1856%2017.0483C25.8439%2017.39%2025.2898%2017.3899%2024.9482%2017.0482L23.1379%2015.2374L21.3266%2017.0483C20.9849%2017.39%2020.4308%2017.3899%2020.0892%2017.0481C19.7475%2016.7064%2019.7476%2016.1524%2020.0893%2
4467015.8107L21.9004%2014L20.0893%2012.1893C19.7476%2011.8476%2019.7475%2011.2936%2020.0892%2010.9519Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.7526%205.16626C15.2885%203.99604%2017.5%205.09134%2017.5%207.02227V20.9777C17.5%2022.9087%2015.2885%2024.004%2013.7526%2022.8337L8.93953%2019.1667H7C5.067%2019.1667%203.5%2017.5997%203.5%2015.6667V12.3333C3.5%2010.4003%205.067%208.83334%207%208.83334H8.93953L13.7526%205.16626ZM15.1667%207.02227L10.3536%2010.6893C9.94723%2010.999%209.45044%2011.1667%208.93953%2011.1667H7C6.35567%2011.1667%205.83333%2011.689%205.83333%2012.3333V15.6667C5.83333%2016.311%206.35567%2016.8333%207%2016.8333H8.93953C9.45044%2016.8333%209.94723%2017.001%2010.3536%2017.3107L15.1667%2020.9777V7.02227Z'%20fill='white'/%3e%3c/svg%3e",pause:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20style='&%2310;'%3e%3cpath%20d='M11.6666%2043.7332V12.2665C11.6666%2011.9351%2011.9353%2011.6665%2012.2666%2011.6665H20.4C20.7313%2011.6665%2021%2011.9351%2021%2012.2665V43.7332C21%2044.0645%2020.7313%2044.3332%2020.4%2044.3332H12.2666C11.9353%2044.3332%2011.6666%2044.0645%2011.6666%2043.7332Z'%20fill='white'%20stroke='white'%20stroke-width='2'/%3e%3cpath%20d='M35%2043.7332V12.2665C35%2011.9351%2035.2686%2011.6665%2035.6%2011.6665H43.7333C44.0647%2011.6665%2044.3333%2011.9351%2044.3333%2012.2665V43.7332C44.3333%2044.0645%2044.0647%2044.3332%2043.7333%2044.3332H35.6C35.2686%2044.3332%2035%2044.0645%2035%2043.7332Z'%20fill='white'%20stroke='white'%20stroke-width='2'/%3e%3c/svg%3e",play:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%3e%3cpath%20d='M16.1137%2010.5864C15.1804%2010.0334%2014%2010.706%2014%2011.7908V44.2102C14%2045.295%2015.1804%2045.9676%2016.1137%2045.4146L43.4675%2029.2049C44.3826%2028.6626%2044.3826%2027.3383%2043.4675%2026.7961L16.1137%2010.5864Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3333%2013.4288V42.5722L40.923%2028.0005L16.3333%2013.4288ZM11.6666%2011.7908C11.6666%208.89799%2014.8146%207.10429%2017.3032%208.57904L44.6571%2024.7887C47.0972%2026.2347%2047.0972%2029.7662%2044.6571%2031.2122L17.3032%2047.4219C14.8146%2048.8967%2011.6666%2047.1029%2011.6666%2044.2102V11.7908Z'%20fill='white'/%3e%3c/svg%3e",restart:"data:image/svg+xml,%3csvg%20width='26'%20height='27'%20viewBox='0%200%2026%2027'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-inside-1_5240_1632'%20fill='white'%3e%3cpath%20d='M4.27832%200.429688C4.36157%20-0.0248552%204.96421%20-0.132657%205.2002%200.264648L6.62695%202.66797C8.51099%201.60639%2010.6862%201%2013%201C20.1796%201%2025.9999%206.82037%2026%2014C26%2021.1797%2020.1797%2027%2013%2027C5.8203%2027%200%2021.1797%200%2014C8.83169e-05%2013.4478%200.44777%2013%201%2013C1.55223%2013%201.99991%2013.4478%202%2014C2%2020.0751%206.92487%2025%2013%2025C19.0751%2025%2024%2020.0751%2024%2014C23.9999%207.92494%2019.0751%203%2013%203C11.0554%203%209.2316%203.50424%207.64844%204.3877L9.14453%206.90527C9.38048%207.30254%208.99751%207.77995%208.55859%207.63574L3.69141%206.03516C3.45407%205.95711%203.31046%205.71548%203.35547%205.46973L4.27832%200.429688Z'/%3e%3c/mask%3e%3cpath%20d='M4.27832%200.429688C4.36157%20-0.0248552%204.96421%20-0.132657%205.2002%200.264648L6.62695%202.66797C8.51099%201.60639%2010.6862%201%2013%201C20.1796%201%2025.9999%206.82037%2026%2014C26%2021.1797%2020.1797%2027%2013%2027C5.8203%2027%200%2021.1797%200%2014C8.83169e-05%2013.4478%200.44777%2013%201%2013C1.55223%2013%201.99991%2013.4478%202%2014C2%2020.0751%206.92487%2025%2013%2025C19.0751%2025%2024%2020.0751%2024%2014C23.9999%207.92494%2019.0751%203%2013%203C11.0554%203%209.2316%203.50424%207.64844%204.3877L9.14453%206.90527C9.38048%207.30254%208.99751%207.77995%208.55859%207.63574L3.69141%206.03516C3.45407%205.95711%203.31046%205.71548%203.35547%205.46973L4.27832%200.429688Z'%20fill='white'/%3e%3cpath%20d='M4.27832%200.429688L3.29468%200.249525L3.29467%200.249578L4.27832%200.429688ZM5.2002%200.264648L6.06008%20-0.245834L6.
446705997%20-0.246025L5.2002%200.264648ZM6.62695%202.66797L5.76707%203.17845L6.26613%204.0191L7.11785%203.53919L6.62695%202.66797ZM26%2014H27V14L26%2014ZM0%2014L-1%2013.9998V14H0ZM2%2014H3V13.9998L2%2014ZM24%2014H25V14L24%2014ZM7.64844%204.3877L7.16114%203.51446L6.26383%204.01519L6.78877%204.89856L7.64844%204.3877ZM9.14453%206.90527L10.0043%206.39462L10.0042%206.39441L9.14453%206.90527ZM8.55859%207.63574L8.2462%208.5857L8.24645%208.58578L8.55859%207.63574ZM3.69141%206.03516L4.0038%205.0852L4.0038%205.0852L3.69141%206.03516ZM3.35547%205.46973L4.33911%205.64989L4.33912%205.64984L3.35547%205.46973ZM4.27832%200.429688L5.26196%200.60985C5.17849%201.06556%204.5758%201.1716%204.34042%200.775322L5.2002%200.264648L6.05997%20-0.246025C5.35262%20-1.43692%203.54466%20-1.11528%203.29468%200.249525L4.27832%200.429688ZM5.2002%200.264648L4.34031%200.775131L5.76707%203.17845L6.62695%202.66797L7.48684%202.15749L6.06008%20-0.245834L5.2002%200.264648ZM6.62695%202.66797L7.11785%203.53919C8.85625%202.55967%2010.863%202%2013%202V1V0C10.5095%200%208.16572%200.653115%206.13606%201.79675L6.62695%202.66797ZM13%201V2C19.6273%202%2024.9999%207.37265%2025%2014L26%2014L27%2014C26.9999%206.2681%2020.7319%200%2013%200V1ZM26%2014H25C25%2020.6274%2019.6274%2026%2013%2026V27V28C20.732%2028%2027%2021.732%2027%2014H26ZM13%2027V26C6.37258%2026%201%2020.6274%201%2014H0H-1C-1%2021.732%205.26801%2028%2013%2028V27ZM0%2014L1%2014.0002V14V13V12C-0.104674%2012%20-0.999823%2012.8956%20-1%2013.9998L0%2014ZM1%2013V14V14.0002L2%2014L3%2013.9998C2.99982%2012.8956%202.10467%2012%201%2012V13ZM2%2014H1C1%2020.6274%206.37258%2026%2013%2026V25V24C7.47715%2024%203%2019.5228%203%2014H2ZM13%2025V26C19.6274%2026%2025%2020.6274%2025%2014H24H23C23%2019.5228%2018.5228%2024%2013%2024V25ZM24%2014L25%2014C24.9999%207.37267%2019.6274%202%2013%202V3V4C18.5228%204%2022.9999%208.47722%2023%2014L24%2014ZM13%203V2C10.8803%202%208.88926%202.55012%207.16114%203.51446L7.64844%204.3877L8.13573%205.26093C9.57393%204.45837%2011.2306%204%2
4467013%204V3ZM7.64844%204.3877L6.78877%204.89856L8.28487%207.41614L9.14453%206.90527L10.0042%206.39441L8.5081%203.87683L7.64844%204.3877ZM9.14453%206.90527L8.28474%207.41592C8.04902%207.01903%208.43138%206.54135%208.87074%206.68571L8.55859%207.63574L8.24645%208.58578C9.56364%209.01856%2010.7119%207.58604%2010.0043%206.39462L9.14453%206.90527ZM8.55859%207.63574L8.87099%206.68579L4.0038%205.0852L3.69141%206.03516L3.37901%206.98511L8.2462%208.58569L8.55859%207.63574ZM3.69141%206.03516L4.0038%205.0852C4.24084%205.16316%204.38417%205.40384%204.33911%205.64989L3.35547%205.46973L2.37183%205.28956C2.23674%206.02712%202.6673%206.75106%203.37902%206.98511L3.69141%206.03516ZM3.35547%205.46973L4.33912%205.64984L5.26197%200.609797L4.27832%200.429688L3.29467%200.249578L2.37182%205.28962L3.35547%205.46973Z'%20fill='white'%20mask='url(%23path-1-inside-1_5240_1632)'/%3e%3c/svg%3e",rwdShell:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='19'%20viewBox='0%200%2020%2019'%20fill='none'%3e%3cpath%20d='M10%200.380012C8.63373%200.380996%207.28467%200.68496%206.05%201.27001L5.53%200.370012C5.488%200.29304%205.42571%200.229044%205.34991%200.184971C5.2741%200.140898%205.18767%200.118432%205.1%200.120012C4.98881%200.118415%204.88026%200.15393%204.79152%200.22094C4.70277%200.28795%204.6389%200.382632%204.61%200.490012L3.91%203.11001C3.86571%203.23281%203.86571%203.36722%203.91%203.49001C3.94294%203.54772%203.9875%203.59796%204.04086%203.63755C4.09422%203.67714%204.15522%203.70522%204.22%203.72001L6.84%204.42001H7C7.08726%204.41949%207.17286%204.39613%207.24829%204.35227C7.32373%204.30842%207.38637%204.24558%207.43%204.17001C7.47388%204.094%207.49699%204.00778%207.49699%203.92001C7.49699%203.83224%207.47388%203.74602%207.43%203.67001L6.8%202.57001C8.32418%201.87902%2010.0311%201.69995%2011.6655%202.05959C13.2999%202.41922%2014.774%203.29824%2015.8673%204.5652C16.9607%205.83216%2017.6145%207.41899%2017.7312%209.08841C17.8478%2010.7578%2017.4209%2012.4202%2016.5143%2013.8268C15.6078%2015.2335%2014.2702%2016.309%2012.7017%2016.8924C11.1332%2017.4757%209.41797%2017.5358%207.81252%2017.0634C6.20707%2016.591%204.79764%2015.6117%203.79499%2014.2718C2.79233%2012.9319%202.25032%2011.3035%202.25%209.63001C2.25%209.4311%202.17098%209.24034%202.03033%209.09968C1.88968%208.95903%201.69891%208.88001%201.5%208.88001C1.30109%208.88001%201.11032%208.95903%200.96967%209.09968C0.829018%209.24034%200.75%209.4311%200.75%209.63001C0.75%2011.4595%201.2925%2013.2479%202.30891%2014.769C3.32531%2016.2902%204.76996%2017.4758%206.46018%2018.1759C8.15039%2018.876%2010.0103%2019.0592%2011.8046%2018.7023C13.5989%2018.3454%2015.2471%2017.4644%2016.5407%2016.1707C17.8344%2014.8771%2018.7154%2013.2289%2019.0723%2011.4346C19.4292%209.64027%2019.246%207.78041%2018.5459%206.09019C17.8458%204.39997%2016.6602%202.95532%2015.139%201.93892C13.6179%200.922515%2011.8295%200.380012%2010%200.380012Z'%20fill='white'/%3e%3c/svg%3e",rwd10sec:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%20fill='none'%20style='&%2310;
4467'%3e%3cpath%20d='M10.8761%2012.347C10.441%2012.2039%2010.1783%2011.7616%2010.2608%2011.311L11.1942%206.21494C11.3469%205.38161%2012.4514%205.18358%2012.884%205.91197L16.8722%2012.6265C17.3049%2013.3549%2016.6025%2014.2301%2015.7977%2013.9654L10.8761%2012.347Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.2082%2010.8551L14.0469%2011.4598L12.5569%208.95123L12.2082%2010.8551ZM10.2608%2011.311C10.1783%2011.7616%2010.441%2012.2039%2010.8761%2012.347L15.7977%2013.9654C16.6025%2014.2301%2017.3049%2013.3549%2016.8722%2012.6265L12.884%205.91197C12.4514%205.18358%2011.3469%205.38161%2011.1942%206.21494L10.2608%2011.311Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.0004%209.16671C19.2057%209.16671%2016.6246%2010.0579%2014.5186%2011.5719L12.3783%208.5948C15.0871%206.64735%2018.4125%205.50004%2022.0004%205.50004C31.1131%205.50004%2038.5004%2012.8873%2038.5004%2022C38.5004%2031.1127%2031.1131%2038.5%2022.0004%2038.5C12.8877%2038.5%205.50043%2031.1127%205.50043%2022C5.50043%2020.9875%206.32124%2020.1667%207.33376%2020.1667C8.34628%2020.1667%209.16709%2020.9875%209.16709%2022C9.16709%2029.0877%2014.9128%2034.8334%2022.0004%2034.8334C29.0881%2034.8334%2034.8338%2029.0877%2034.8338%2022C34.8338%2014.9124%2029.0881%209.16671%2022.0004%209.16671Z'%20fill='white'/%3e%3cpath%20d='M13.1826%2026.0774H15.8556V19.0814C15.6356%2019.2464%2015.3386%2019.3839%2014.9646%2019.4939C14.5906%2019.6039%2014.1891%2019.6699%2013.7601%2019.6919L13.3311%2017.7614C13.9251%2017.6954%2014.4641%2017.5634%2014.9481%2017.3654C15.4431%2017.1674%2015.8281%2016.9034%2016.1031%2016.5734H18.2646V26.0774H20.7066V27.9584H13.1826V26.0774Z'%20fill='white'/%3e%3cpath%20d='M30.6991%2022.2989C30.6991%2023.1239%2030.6166%2023.8994%2030.4517%2024.6254C30.2976%2025.3404%2030.0446%2025.9619%2029.6926%2026.4899C29.3406%2027.0179%2028.8896%2027.4359%2028.3396%2027.7439C27.7896%2028.0409%2027.1186%2028.1894%2026.3266%2028.1894C25.5346%2028.1894%2024.8636%2028.0409%2024.3136%2027.7439C23.7636%2027.4359%2023.3126%2027.0179%2022.9606%2026.4899C22.6086%2025.9619%2022.3501%2025.3404%2022.1851%2024.6254C22.0311%2023.8994%2021.9541%2023.1239%2021.9541%2022.2989C21.9541%2021.4739%2022.0311%2020.7039%2022.1851%2019.9889C22.3501%2019.2629%2022.6086%2018.6359%2022.9606%2018.1079C23.3126%2017.5799%2023.7636%2017.1674%2024.3136%2016.8704C24.8636%2016.5624%2025.5346%2016.4084%2026.3266%2016.4084C27.1186%2016.4084%2027.7896%2016.5624%2028.3396%2016.8704C28.8896%2017.1674%2029.3406%2017.5799%2029.6926%2018.1079C30.0446%2018.6359%2030.2976%2019.2629%2030.4517%2019.9889C30.6166%2020.7039%2030.6991%2021.4739%2030.6991%2022.2989ZM28.2736%2022.2989C28.2736%2021.7379%2028.2351%2021.2154%2028.1581%2020.7314C28.0921%2020.2364%2027.9821%2019.8074%2027.8281%2019.4444C27.6741%2019.0814%2027.4706%2018.8009%2027.2176%2018.6029C26.9756%2018.3939%2026.6786%2018.2894%2026.3266%2018.2894C25.9746%2018.2894%2025.6721%2018.3939%2025.4191%2018.6029C25.1772%2018.8009%2024.9791%2019.0814%2024.8251%2019.4444C24.6711%2019.8074%2024.5556%2020.2364%2024.4786%2020.7314C24.4126%2021.2154%2024.3796%2021.7379%2024.3796%2022.2989C24.3796%2022.8599%2024.4126%2023.3879%2024.4786%2023.8829C24.5556%2024.3669%2024.6711%2024.7904%2024.8251%2025.1534C24.9791%2025.5164%2025.1772%2025.8024%2025.4191%2026.0114C25.6721%2026.2094%2025.9746%2026.3084%2026.3266%2026.3084C26.6786%2026.3084%2026.9756%2026.2094%2027.2176%2026.0114C27.4706%2025.8024%2027.6741%2025.5164%2027.8281%2025.1534C27.9821%2024.7904%2028.0921%2024.3669%2028.1581%2023.8829C28.2351%2023.3879%2028.2736%2022.8599%2028.2736%2022.2989Z'%20fill='white'/%3e%3c/svg%3e",rwd30sec:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M7.135%2010.575C7.177%2010.395%207.246%2010.212%207.342%2010.026C7.438%209.834%207.567%209.663%207.729%209.513C7.897%209.363%208.104%209.24%208.35%209.144C8.602%209.048%208.899%209%209.241%209C9.577%209%209.877%209.048%2010.141%209.144C10.405%209.234%2010.627%209.36%2010.807%209.522C10.987%209.684%2011.125%209.873%2011.221%2010.089C11.317%2010.299%2011.365%2010.524%2011.365%2010.764C11.365%2011.112%2011.275%2011.4%2011.095%2011.628C10.921%2011.856%2010.696%2012.021%2010.42%2012.123C10.582%2012.153%2010.729%2012.213%2010.861%2012.303C10.999%2012.393%2011.116%2012.504%2011.212%2012.636C11.308%2012.762%2011.383%2012.906%2011.437%2013.068C11.491%2013.23%2011.518%2013.398%2011.518%2013.572C11.518%2013.8%2011.47%2014.025%2011.374%2014.247C11.284%2014.463%2011.146%2014.661%2010.96%2014.841C10.774%2015.015%2010.537%2015.156%2010.249%2015.264C9.961%2015.372%209.625%2015.426%209.241%2015.426C8.833%2015.426%208.485%2015.369%208.197%2015.255C7.915%2015.135%207.687%2014.991%207.513%2014.823C7.339%2014.649%207.21%2014.466%207.126%2014.274C7.048%2014.082%207.006%2013.914%207%2013.77L8.224%2013.41C8.236%2013.506%208.26%2013.611%208.296%2013.725C8.332%2013.839%208.386%2013.947%208.458%2014.049C8.536%2014.151%208.638%2014.238%208.764%2014.31C8.896%2014.376%209.058%2014.409%209.25%2014.409C9.436%2014.409%209.589%2014.382%209.709%2014.328C9.835%2014.274%209.934%2014.205%2010.006%2014.121C10.078%2014.037%2010.129%2013.944%2010.159%2013.842C10.189%2013.74%2010.204%2013.641%2010.204%2013.545C10.204%2013.275%2010.105%2013.062%209.907%2012.906C9.715%2012.744%209.442%2012.663%209.088%2012.663L8.773%2012.681V11.601C8.809%2011.607%208.845%2011.61%208.881%2011.61H9.079C9.415%2011.61%209.661%2011.532%209.817%2011.376C9.979%2011.22%2010.06%2011.028%2010.06%2010.8C10.06%2010.542%209.976%2010.347%209.808%2010.215C9.64%2010.083%209.442%2010.017%209.214%2010.017C8.968%2010.017%208.761%2010.101%208.593%2010.269C8.425%2010.431%208.335%2010.629%208.323%2010.863L7.135%2010.575Z'%20fill='%23141618'/%3e%3cpath%20d='M16.8605%2012.213C16.8605%2012.663%2016.8155%2013.086%2016.7255%2013.482C16.6415%2013.872%2016.5035%2014.211%2016.3115%2014.499C16.1195%2014.787%2015.8735%2015.015%2015.5735%2015.183C15.2735%2015.345%2014.9075%2015.426%2014.4755%2015.426C14.0435%2015.426%2013.6775%2015.345%2013.3775%2015.183C13.0775%2015.015%2012.8315%2014.787%2012.6395%2014.499C12.4475%2014.211%2012.3065%2013.872%2012.2165%2013.482C12.1325%2013.086%2012.0905%2012.663%2012.0905%2012.213C12.0905%2011.763%2012.1325%2011.343%2012.2165%2010.953C12.3065%2010.557%2012.4475%2010.215%2012.6395%209.927C12.8315%209.639%2013.0775%209.414%2013.3775%209.252C13.6775%209.084%2014.0435%209%2014.4755%209C14.9075%209%2015.2735%209.084%2015.5735%209.252C15.8735%209.414%2016.1195%209.639%2016.3115%209.927C16.5035%2010.215%2016.
44676415%2010.557%2016.7255%2010.953C16.8155%2011.343%2016.8605%2011.763%2016.8605%2012.213ZM15.5375%2012.213C15.5375%2011.907%2015.5165%2011.622%2015.4745%2011.358C15.4385%2011.088%2015.3785%2010.854%2015.2945%2010.656C15.2105%2010.458%2015.0995%2010.305%2014.9615%2010.197C14.8295%2010.083%2014.6675%2010.026%2014.4755%2010.026C14.2835%2010.026%2014.1185%2010.083%2013.9805%2010.197C13.8485%2010.305%2013.7405%2010.458%2013.6565%2010.656C13.5725%2010.854%2013.5095%2011.088%2013.4675%2011.358C13.4315%2011.622%2013.4135%2011.907%2013.4135%2012.213C13.4135%2012.519%2013.4315%2012.807%2013.4675%2013.077C13.5095%2013.341%2013.5725%2013.572%2013.6565%2013.77C13.7405%2013.968%2013.8485%2014.124%2013.9805%2014.238C14.1185%2014.346%2014.2835%2014.4%2014.4755%2014.4C14.6675%2014.4%2014.8295%2014.346%2014.9615%2014.238C15.0995%2014.124%2015.2105%2013.968%2015.2945%2013.77C15.3785%2013.572%2015.4385%2013.341%2015.4745%2013.077C15.5165%2012.807%2015.5375%2012.519%2015.5375%2012.213Z'%20fill='%23141618'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%205C10.7233%205%209.52931%205.34086%208.50073%205.93586L7.49927%204.20465C8.82407%203.4383%2010.3624%203%2012%203C16.9706%203%2021%207.02944%2021%2012C21%2016.9706%2016.9706%2021%2012%2021C7.02944%2021%203%2016.9706%203%2012C3%2011.4477%203.44772%2011%204%2011C4.55228%2011%205%2011.4477%205%2012C5%2015.866%208.13401%2019%2012%2019C15.866%2019%2019%2015.866%2019%2012C19%208.13401%2015.866%205%2012%205Z'%20fill='%23141618'/%3e%3cpath%20d='M5.93211%206.7345C5.69477%206.65645%205.55147%206.41519%205.59648%206.16944L6.10561%203.38975C6.18886%202.9352%206.79133%202.82719%207.02732%203.22449L9.2027%206.88698C9.43868%207.28429%209.05559%207.76165%208.61661%207.6173L5.93211%206.7345Z'%20fill='%23141618'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.65867%205.92075L7.66159%206.25055L6.84888%204.88227L6.65867%205.92075ZM5.59648%206.16944C5.55147%206.41519%205.69477%206.65645%205.93211%206.7345L8.61661%207.6173C9.05559%207.76165%209.43868%207.28429%209.2027%206.88698L7.02732%203.22449C6.79133%202.82719%206.18887%202.93521%206.10561%203.38975L5.59648%206.16944Z'%20fill='%23141618'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%205C10.4756%205%209.06772%205.48611%207.919%206.31195L6.75155%204.68805C8.22911%203.6258%2010.0429%203%2012%203C16.9706%203%2021%207.02944%2021%2012C21%2016.9706%2016.9706%2021%2012%2021C7.02944%2021%203%2016.9706%203%2012H5C5%2015.866%208.13401%2019%2012%2019C15.866%2019%2019%2015.866%2019%2012C19%208.13401%2015.866%205%2012%205Z'%20fill='%23141618'/%3e%3c/svg%3e",settings:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%3e%3cpath%20d='M15.042%202.67383C15.879%202.7444%2016.5912%203.33507%2016.8076%204.15918L17.1348%205.40723L17.6104%205.60254L18.3008%205.01367L18.4541%204.89453C19.2405%204.34355%2020.3226%204.42721%2021.0146%205.11914L22.8809%206.98633C23.6158%207.72164%2023.6654%208.89744%2022.9941%209.69141L22.4033%2010.3896L22.5781%2010.8105L23.8262%2011.1289C24.7125%2011.3545%2025.334%2012.1527%2025.334%2013.0674V14.9121L25.3262%2015.082C25.2551%2015.9202%2024.6627%2016.6327%2023.8369%2016.8477L22.5723%2017.1768L22.3965%2017.6035L22.9922%2018.3066L23.1104%2018.46C23.6568%2019.2462%2023.5708%2020.3247%2022.8809%2021.0146L21.0146%2022.8809C20.3105%2023.585%2019.205%2023.6579%2018.418%2023.0801L18.2646%2022.9561V22.9551L18.2627%2022.9531C18.2607%2022.9514%2018.2569%2022.9489%2018.2529%2022.9453C18.2446%2022.9379%2018.2318%2022.9264%2018.2158%2022.9121C18.1831%2022.8829%2018.1346%2022.8399%2018.0762%2022.7881C17.959%2022.6842%2017.7993%2022.5427%2017.6279%2022.3936C17.6268%2022.3925%2017.6252%2022.3907%2017.624%2022.3896L17.1895%2022.5693L16.8721%2023.8252C16.6471%2024.7121%2015.8486%2025.3338%2014.9336%2025.334H13.0674C12.1516%2025.334%2011.3523%2024.7111%2011.1279%2023.8232L10.8115%2022.5713L10.4121%2022.4072L9.66406%2023.0176C8.91859%2023.6251%207.85474%2023.6112%207.12695%2023.0098L6.98633%2022.8809L5.11914%2021.0146C4.36966%2020.2651%204.33565%2019.0608%205.04102%2018.2695L5.61426%2017.625L5.44238%2
4467017.2178L4.14062%2016.8633C3.27085%2016.6258%202.66714%2015.8352%202.66699%2014.9336V13.0674C2.66699%2012.1379%203.30775%2011.3304%204.21289%2011.1191L5.41797%2010.8369L5.59082%2010.4121L4.98145%209.66113C4.33542%208.8658%204.39475%207.71098%205.11914%206.98633L6.98633%205.11914L7.13184%204.9873C7.88399%204.36908%208.98759%204.37927%209.72949%205.03906L10.377%205.61523L10.7754%205.44727L11.1152%204.1582L11.165%203.99609C11.4462%203.20518%2012.1974%202.66717%2013.0488%202.66699H14.873L15.042%202.67383ZM12.459%206.9082L9.99121%207.94824L8.40039%206.5332L6.5332%208.40039L7.88965%2010.0703L6.88086%2012.5498L4.66699%2013.0674V14.9336L6.9082%2015.5459L7.94824%2018.0137L6.5332%2019.6006L8.40039%2021.4668L10.0723%2020.1045L12.5039%2021.1055L13.0674%2023.334H14.9336L15.498%2021.1064L17.9717%2020.0811C18.1779%2020.2285%2018.5851%2020.5754%2018.9404%2020.8848L19.6006%2021.4668L21.4668%2019.6006L20.082%2017.9668L21.1064%2015.4922L23.334%2014.9121V13.0674L21.1143%2012.5029L20.0898%2010.0283L21.4668%208.40039L19.6006%206.5332L17.9805%207.91797L15.4541%206.87891L14.873%204.66699H13.0488L12.459%206.9082ZM14%209.5C16.4853%209.5%2018.5%2011.5147%2018.5%2014C18.5%2016.4853%2016.4853%2018.5%2014%2018.5C11.5147%2018.5%209.5%2016.4853%209.5%2014C9.5%2011.5147%2011.5147%209.5%2014%209.5ZM14%2011.5C12.6193%2011.5%2011.5%2012.6193%2011.5%2014C11.5%2015.3807%2012.6193%2016.5%2014%2016.5C15.3807%2016.5%2016.5%2015.3807%2016.5%2014C16.5%2012.6193%2015.3807%2011.5%2014%2011.5Z'%20fill='white'/%3e%3c/svg%3e",settingsOpen:"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='path-1-outside-1_4034_39374'%20maskUnits='userSpaceOnUse'%20x='2.66602'%20y='2.66666'%20width='23'%20height='23'%20fill='black'%3e%3crect%20fill='white'%20x='2.66602'%20y='2.66666'%20width='23'%20height='23'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.0891%2010.0285L21.1136%2012.5024L23.3327%2013.0667L23.3326%2014.912L21.1056%2015.4915L20.0809%2017.9661L21.466%2019.6L19.5993%2021.4667C19.5993%2
4467021.4667%2018.3831%2020.3759%2017.9708%2020.0812L15.4969%2021.1056L14.9327%2023.3333H13.066L12.5032%2021.1048L10.0711%2020.1043L8.39935%2021.4667L6.53268%2019.6L7.94738%2018.0131L6.90706%2015.5451L4.66602%2014.9333V13.0667L6.88035%2012.5499L7.88916%2010.0696L6.53268%208.39999L8.39935%206.53332L9.99013%207.94822L12.4585%206.90771L13.0483%204.66666H14.8723L15.4533%206.87841L17.9797%207.91741L19.5993%206.53332L21.466%208.39999L20.0891%2010.0285ZM19.8327%2014C19.8327%2017.2217%2017.221%2019.8333%2013.9993%2019.8333C10.7777%2019.8333%208.16602%2017.2217%208.16602%2014C8.16602%2010.7783%2010.7777%208.16666%2013.9993%208.16666C17.221%208.16666%2019.8327%2010.7783%2019.8327%2014Z'/%3e%3c/mask%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M20.0891%2010.0285L21.1136%2012.5024L23.3327%2013.0667L23.3326%2014.912L21.1056%2015.4915L20.0809%2017.9661L21.466%2019.6L19.5993%2021.4667C19.5993%2021.4667%2018.3831%2020.3759%2017.9708%2020.0812L15.4969%2021.1056L14.9327%2023.3333H13.066L12.5032%2021.1048L10.0711%2020.1043L8.39935%2021.4667L6.53268%2019.6L7.94738%2018.0131L6.90706%2015.5451L4.66602%2014.9333V13.0667L6.88035%2012.5499L7.88916%2010.0696L6.53268%208.39999L8.39935%206.53332L9.99013%207.94822L12.4585%206.90771L13.0483%204.66666H14.8723L15.4533%206.87841L17.9797%207.91741L19.5993%206.53332L21.466%208.39999L20.0891%2010.0285ZM19.8327%2014C19.8327%2017.2217%2017.221%2019.8333%2013.9993%2019.8333C10.7777%2019.8333%208.16602%2017.2217%208.16602%2014C8.16602%2010.7783%2010.7777%208.16666%2013.9993%208.16666C17.221%208.16666%2019.8327%2010.7783%2019.8327%2014Z'%20fill='%23F4F4F4'/%3e%3cpath%20d='M21.1136%2012.5024L19.7277%2013.0763C19.9087%2013.5134%2020.2853%2013.8395%2020.7439%2013.9561L21.1136%2012.5024ZM20.0891%2010.0285L18.9437%209.05997C18.5812%209.48861%2018.4885%2010.0837%2018.7032%2010.6024L20.0891%2010.0285ZM23.3327%2013.0667L24.8327%2013.0668C24.8327%2012.3807%2024.3673%2011.782%2023.7023%2011.6129L23.3327%2013.0667ZM23.3326%2014.912L23.7103%2016.3637C24.3712%2016.1917%2024.8325%2015.595%2024.8326%2014.9121L23.3326%2014.912ZM21.1056%2015.4915L20.7279%2014.0398C20.2729%2014.1582%2019.8997%2014.4831%2019.7198%2014.9176L21.1056%2015.4915ZM20.0809%2017.9661L18.695%2017.3922C18.48%2017.9115%2018.5733%2018.5074%2018.9367%2018.9361L20.0809%2017.9661ZM21.466%2019.6L22.5267%2020.6607C23.0787%2020.1086%2023.115%2019.2255%2022.6102%2018.63L21.466%2019.6ZM19.5993%2021.4667L18.5979%2022.5834C19.191%2023.1153%2020.0966%2023.0907%2020.66%2022.5273L19.5993%2021.4667ZM17.9708%2020.0812L18.8431%2018.8609C18.4219%2018.5598%2017.8752%2018.4972%2017.3969%2018.6953L17.9708%2020.0812ZM15.4969%2021.1056L14.923%2019.7198C14.4854%2019.901%2014.1591%2020.2782%2014.0428%2020.7373L15.4969%2021.1056ZM14.9327%2023.3333V24.8333C15.6193%2024.8333%2016.2182%2024.3672%2016.3868%2023.7016L14.9327%2023.3333ZM13.066%2023.3333L11.6117%2023.7006C11.7799%2024.3667%2012.3791%2024.8333%2013.066%2024.8333V23.3333ZM12.5032%2021.1048L13.9576%2020.7375C13.8412%2020.2768%2013.5134%2019.8984%2013.0739%2019.7176L12.5032%2021.1048ZM10.0711%2020.1043L10.6418%2018.7171C10.1328%2018.5077%209.55011%2018.5938%209.1235%2018.9415L10.0711%2020.1043ZM8.39935%2021.4667L7.33869%2022.5273C7.88282%2023.0714%208.75044%2023.1156%209.34695%2022.6294L8.39935%2021.4667ZM6.53268%2019.6L5.41301%2018.6018C4.88395%2019.1953%204.90984%2020.0985%205.47202%2020.6607L6.53268%2019.6ZM7.94738%2018.0131L9.06705%2019.0112C9.45229%2018.5791%209.55447%2017.9639%209.3296%2017.4304L7.94738%2018.0131ZM6.90706%2015.5451L8.28927%2014.9625C8.11037%2014.5381%207.74641%2014.2194%207.3021%2014.0981L6.90706%2015.5451ZM4.66602%2014.9333H3.16602C3.16602%2015.6096%203.61856%2016.2023%204.27097%2016.3804L4.66602%2014.9333ZM4.66602%2013.0667L4.32512
4467%2011.6059C3.64626%2011.7643%203.16602%2012.3696%203.16602%2013.0667H4.66602ZM6.88035%2012.5499L7.22125%2014.0106C7.69542%2013.9%208.08637%2013.5661%208.26982%2013.115L6.88035%2012.5499ZM7.88916%2010.0696L9.27863%2010.6347C9.48485%2010.1277%209.39851%209.54855%209.05335%209.12372L7.88916%2010.0696ZM6.53268%208.39999L5.47202%207.33933C4.9285%207.88285%204.8838%208.74928%205.36849%209.34585L6.53268%208.39999ZM8.39935%206.53332L9.39624%205.41251C8.80266%204.88457%207.90041%204.91094%207.33869%205.47266L8.39935%206.53332ZM9.99013%207.94822L8.99324%209.06903C9.42535%209.45336%2010.0399%209.55507%2010.5728%209.33043L9.99013%207.94822ZM12.4585%206.90771L13.0412%208.28992C13.47%208.10914%2013.7907%207.73954%2013.9091%207.28946L12.4585%206.90771ZM13.0483%204.66666V3.16666C12.3669%203.16666%2011.7711%203.62594%2011.5977%204.2849L13.0483%204.66666ZM14.8723%204.66666L16.3231%204.28559C16.1499%203.62629%2015.554%203.16666%2014.8723%203.16666V4.66666ZM15.4533%206.87841L14.0025%207.25948C14.1219%207.71433%2014.4478%208.08682%2014.8828%208.26568L15.4533%206.87841ZM17.9797%207.91741L17.4092%209.30469C17.9298%209.51876%2018.5264%209.4234%2018.9542%209.05774L17.9797%207.91741ZM19.5993%206.53332L20.66%205.47266C20.1064%204.91903%2019.2201%204.88434%2018.6248%205.393L19.5993%206.53332ZM21.466%208.39999L22.6114%209.36849C23.115%208.77292%2023.0782%207.89082%2022.5267%207.33933L21.466%208.39999ZM21.1136%2012.5024L22.4994%2011.9285L21.475%209.45457L20.0891%2010.0285L18.7032%2010.6024L19.7277%2013.0763L21.1136%2012.5024ZM23.3327%2013.0667L23.7023%2011.6129L21.4832%2011.0486L21.1136%2012.5024L20.7439%2013.9561L22.963%2014.5204L23.3327%2013.0667ZM23.3326%2014.912L24.8326%2014.9121L24.8327%2013.0668L23.3327%2013.0667L21.8327%2013.0666L21.8326%2014.9119L23.3326%2014.912ZM21.1056%2015.4915L21.4834%2016.9431L23.7103%2016.3637L23.3326%2014.912L22.9548%2013.4604L20.7279%2014.0398L21.1056%2015.4915ZM20.0809%2017.9661L21.4667%2018.54L22.4915%2016.0654L21.1056%2015.4915L19.7198%2014.9176L18.695%2017.3922L20.0809%2017.9661ZM21.466%2019.6L22.6102%2018.63L21.225%2016.9961L20.0809%2017.9661L18.9367%2018.9361L20.3218%2020.57L21.466%2019.6ZM19.5993%2021.4667L20.66%2022.5273L22.5267%2020.6607L21.466%2019.6L20.4054%2018.5393L18.5387%2020.406L19.5993%2021.4667ZM17.9708%2020.0812L17.0985%2021.3015C17.2338%2021.3981%2017.5817%2021.691%2017.9548%2022.0158C18.1281%2022.1666%2018.2893%2022.3089%2018.4074%2022.4137C18.4664%2022.466%2018.5144%2022.5088%2018.5475%2022.5383C18.564%2022.5531%2018.5768%2022.5645%2018.5854%2022.5722C18.5896%2022.576%2018.5929%2022.5789%2018.595%2022.5808C18.596%2022.5817%2018.5968%2022.5824%2018.5973%2022.5828C18.5975%2022.5831%2018.5977%2022.5832%2018.5978%2022.5833C18.5978%2022.5833%2018.5979%2022.5834%2018.5979%2022.5834C18.5979%2022.5834%2018.5979%2022.5834%2018.5979%2022.5834C18.5979%2022.5834%2018.5979%2022.5834%2019.5993%2021.4667C20.6008%2020.35%2020.6008%2020.3499%2020.6008%2020.3499C20.6008%2020.3499%2020.6007%2020.3499%2020.6007%2020.3498C20.6006%2020.3498%2020.6006%2020.3497%2020.6005%2020.3496C20.6003%2020.3494%2020.6%2020.3492%2020.5997%2020.3489C20.599%2020.3483%2020.598%2020.3474%2020.5967%2020.3463C20.5942%2020.344%2020.5905%2020.3407%2020.5858%2020.3365C20.5764%2020.3281%2020.5626%2020.3158%2020.5451%2020.3001C20.5101%2020.2688%2020.4598%2020.2241%2020.3983%2020.1695C20.2755%2020.0606%2020.1069%2019.9117%2019.9245%2019.753C19.5865%2019.4588%2019.1201%2019.0589%2018.8431%2018.8609L17.9708%2020.0812ZM15.4969%2021.1056L16.0708%2022.4915L18.5447%2021.467L17.9708%2020.0812L17.3969%2018.6953L14.923%2019.7198L15.4969%2021.1056ZM14.9327%2023.3333L16.3868%2023.7016L16.951%2021.4739L15.4969%2021.1056L14.0428%2020.7373L13.4786%2022.965L14.9327%2023.3333ZM13.066%2023.3333V24.8333H14.9327V23.3333V21.8333H13.066V23.3333ZM12.5032%2021.1048L11.0489%2021.4721L11.6117%2023.7006L13.066%2023.3333L14.5204%2022.966L13.9576%2020.7375L12.5032%2021.1048ZM10.0711%2020.1043L9.50042%2021.4915L11.9325%2022.492L12.5032%2021.1048L13.0739%2019.7176L10.6418%2018.7171L10.0711%2020.1043ZM8.39935%2021.4667L9.34695%2022.6294L11.0187%2021.267L10.0711%2020.1043L9.1235%2018.9415L7.45175%2020.3039L8.39935%2021.4667ZM6.53268%2019.6L5.47202%2020.6607L7.33869%2022.5273L8.39935%2021.4667L9.46001%2020.406L7.59334%2018.5393L6.53268%2019.6ZM7.94738%2018.0131L6.82771%2017.0149L5.41301%2018.6018L6.53268%2019.6L7.65235%2020.5982L9.06705%2019.0112L7.94738%2018.0131ZM6.90706%2015.5451L5.52484%2016.1278L6.56517%2018.5957L7.94738%2018.0131L9.3296%2017.4304L8.28927%2014.9625L6.90706%2015.5451ZM4.66602%2014.9333L4.27097%2016.3804L6.51201%2016.9922L6.90706%2015.5451L7.3021%2014.0981L5.06106%2013.4863L4.66602%2014.9333ZM4.66602%2013.0667H3.16602V14.9333H4.66602H6.16602V13.0667H4.66602ZM6.88035%2012.5499L6.53946%2011.0891L4.32512
4467%2011.6059L4.66602%2013.0667L5.00691%2014.5274L7.22125%2014.0106L6.88035%2012.5499ZM7.88916%2010.0696L6.49969%209.50445L5.49088%2011.9848L6.88035%2012.5499L8.26982%2013.115L9.27863%2010.6347L7.88916%2010.0696ZM6.53268%208.39999L5.36849%209.34585L6.72496%2011.0154L7.88916%2010.0696L9.05335%209.12372L7.69688%207.45413L6.53268%208.39999ZM8.39935%206.53332L7.33869%205.47266L5.47202%207.33933L6.53268%208.39999L7.59334%209.46065L9.46001%207.59398L8.39935%206.53332ZM9.99013%207.94822L10.987%206.82741L9.39624%205.41251L8.39935%206.53332L7.40246%207.65413L8.99324%209.06903L9.99013%207.94822ZM12.4585%206.90771L11.8758%205.5255L9.40747%206.56601L9.99013%207.94822L10.5728%209.33043L13.0412%208.28992L12.4585%206.90771ZM13.0483%204.66666L11.5977%204.2849L11.0079%206.52596L12.4585%206.90771L13.9091%207.28946L14.4989%205.04841L13.0483%204.66666ZM14.8723%204.66666V3.16666H13.0483V4.66666V6.16666H14.8723V4.66666ZM15.4533%206.87841L16.9041%206.49735L16.3231%204.28559L14.8723%204.66666L13.4215%205.04772L14.0025%207.25948L15.4533%206.87841ZM17.9797%207.91741L18.5503%206.53014L16.0238%205.49114L15.4533%206.87841L14.8828%208.26568L17.4092%209.30469L17.9797%207.91741ZM19.5993%206.53332L18.6248%205.393L17.0052%206.77709L17.9797%207.91741L18.9542%209.05774L20.5739%207.67365L19.5993%206.53332ZM21.466%208.39999L22.5267%207.33933L20.66%205.47266L19.5993%206.53332L18.5387%207.59398L20.4053%209.46065L21.466%208.39999ZM20.0891%2010.0285L21.2345%2010.997L22.6114%209.36849L21.466%208.39999L20.3206%207.43149L18.9437%209.05997L20.0891%2010.0285ZM13.9993%2019.8333V21.3333C18.0494%2021.3333%2021.3327%2018.0501%2021.3327%2014H19.8327H18.3327C18.3327%2016.3932%2016.3926%2018.3333%2013.9993%2018.3333V19.8333ZM8.16602%2014H6.66602C6.66602%2018.0501%209.94926%2021.3333%2013.9993%2021.3333V19.8333V18.3333C11.6061%2018.3333%209.66602%2016.3932%209.66602%2014H8.16602ZM13.9993%208.16666V6.66666C9.94926%206.66666%206.66602%209.9499%206.66602%2014H8.16602H9.66602C9.66602%2011.6068%2011.6061%209.66666%2013.9993%209.66666V8.16666ZM19.8327%2014H21.3327C21.3327%209.9499%2018.0494%206.66666%2013.9993%206.66666V8.16666V9.66666C16.3926%209.66666%2018.3327%2011.6068%2018.3327%2014H19.8327Z'%20fill='white'%20mask='url(%23path-1-outside-1_4034_39374)'/%3e%3c/svg%3e",share:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M13.0823%202.09434C13.4588%201.92369%2013.901%201.9879%2014.2121%202.25984L22.6409%209.62818C22.8696%209.82805%2023%2010.1172%2023%2010.4207C23%2010.7243%2022.8696%2011.0134%2022.6409%2011.2133L14.2121%2018.5816C13.901%2018.8535%2013.4588%2018.9178%2013.0823%2018.7471C12.7061%2018.5763%2012.464%2018.2019%2012.464%2017.7891V14.6312H10.3567C7.44751%2014.6315%205.08872%2016.9877%205.08872%2019.8943V20.9469C5.08872%2021.4677%204.70802%2021.9107%204.19254%2021.9882C3.67695%2022.0657%203.18217%2021.7542%203.02884%2021.2563L1.33114%2015.7455C-0.128081%2011.0073%203.41823%206.21037%208.38021%206.21025H12.464V3.05239C12.464%202.63954%2012.7061%202.26511%2013.0823%202.09434ZM14.5712%207.26287C14.5712%207.84421%2014.0994%208.31549%2013.5176%208.31549H8.38021C4.83595%208.31561%202.30342%2011.7423%203.34575%2015.1267L3.78406%2016.5514C5.00366%2014.1626%207.48851%2012.5261%2010.3567%2012.526H13.5176C14.0994%2012.526%2014.5712%2012.9972%2014.5712%2013.5786V15.469L20.3454%2010.4207L14.5712%205.37144V7.26287Z'%20fill='%23141618'/%3e%3c/svg%3e",shareSelected:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20d='M13.0823%202.09423C13.4586%201.92368%2013.9%201.98804%2014.2111%202.25973L22.6399%209.62812C22.8683%209.82799%2023%2010.1173%2023%2010.4207C22.9999%2010.7241%2022.8684%2011.0134%2022.6399%2011.2132L14.2111%2018.5816C13.9001%2018.8533%2013.4586%2018.9175%2013.0823%2018.7471C12.706%2018.5765%2012.4641%2018.2019%2012.464%2017.7891V14.6312H10.3568C7.44731%2014.6312%205.08874%2016.9876%205.08874%2019.8943V20.947L5.08463%2021.0436C5.04075%2021.5215%204.67471%2021.9156%204.19153%2021.9883C3.6762%2022.0655%203.18128%2021.7539%203.02784%2021.2564L1.33117%2015.7455C-0.128114%2011.0072%203.41814%206.21017%208.38022%206.21017H12.464V3.05228C12.464%202.63928%2012.7059%202.26491%2013.0823%202.09423Z'%20fill='%23141618'/%3e%3c/svg%3e",volumeFull:"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.5866%205.16625C14.1225%203.99603%2016.334%205.09134%2016.334%207.02226V20.9777C16.334%2022.9087%2014.1225%2024.004%2012.5866%2022.8337L7.7
44677351%2019.1667H5.83398C3.90099%2019.1667%202.33398%2017.5997%202.33398%2015.6667V12.3333C2.33398%2010.4003%203.90099%208.83333%205.83398%208.83333H7.77351L12.5866%205.16625ZM14.0007%207.02226L9.18761%2010.6893C8.78122%2010.999%208.28443%2011.1667%207.77351%2011.1667H5.83398C5.18965%2011.1667%204.66732%2011.689%204.66732%2012.3333V15.6667C4.66732%2016.311%205.18965%2016.8333%205.83398%2016.8333H7.77351C8.28443%2016.8333%208.78122%2017.001%209.18761%2017.3107L14.0007%2020.9777V7.02226Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.1257%208.40533C19.6382%208.01483%2020.3703%208.11376%2020.7607%208.62628C21.7685%209.94894%2022.2195%2011.7273%2022.2195%2013.4167C22.2195%2015.106%2021.7685%2016.8844%2020.7607%2018.207C20.3703%2018.7196%2019.6382%2018.8185%2019.1257%2018.428C18.6132%2018.0375%2018.5142%2017.3055%2018.9047%2016.7929C19.5238%2015.9804%2019.8862%2014.743%2019.8862%2013.4167C19.8862%2012.0903%2019.5238%2010.8529%2018.9047%2010.0404C18.5142%209.52786%2018.6132%208.79582%2019.1257%208.40533Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5712%204.94946C23.0594%204.5289%2023.796%204.58369%2024.2166%205.07184C26.081%207.23588%2026.9426%2010.3847%2026.9426%2013.4167C26.9426%2016.4487%2026.081%2019.5975%2024.2166%2021.7615C23.796%2022.2496%2023.0594%2022.3044%2022.5712%2021.8839C22.0831%2021.4633%2022.0283%2020.7267%2022.4488%2020.2385C23.8421%2018.6213%2024.6093%2016.0774%2024.6093%2013.4167C24.6093%2010.756%2023.8421%208.21202%2022.4488%206.59483C22.0283%206.10668%2022.0831%205.37002%2022.5712%204.94946Z'%20fill='white'/%3e%3c/svg%3e",volumeHalf:"data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.4597%208.40534C21.9722%208.01484%2022.7042%208.11377%2023.0947%208.62629C24.1025%209.94895%2024.5535%2011.7273%2024.5535%2013.4167C24.5535%2015.106%2024.1025%2016.8844%2023.0947%2018.2071C22.7042%2018.7196%2021.9722%2018.8185%2021.4597%2018.428C20.9472%2018.0375%2020.8482%2017.3055%2021.2387%2016.793C21.8578%2015.9804%2022.2202%2014.743%2022.2202%2013.4167C22.2202%2012.0903%2021.8578%2010.8529%2021.2387%2010.0404C20.8482%209.52787%2020.9472%208.79583%2021.4597%208.40534Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.7526%205.16626C15.2885%203.99604%2017.5%205.09134%2017.5%207.02227V20.9777C17.5%2022.9087%2015.2885%2024.004%2013.7526%2022.8337L8.93953%2019.1667H7C5.067%2019.1667%203.5%2017.5997%203.5%2015.6667V12.3333C3.5%2010.4003%205.067%208.83334%207%208.83334H8.93953L13.7526%205.16626ZM15.1667%207.02227L10.3536%2010.6893C9.94723%2010.999%209.45044%2011.1667%208.93953%2011.1667H7C6.35567%2011.1667%205.83333%2011.689%205.83333%2012.3333V15.6667C5.83333%2016.311%206.35567%2016.8333%207%2016.8333H8.93953C9.45044%2016.8333%209.94723%2017.001%2010.3536%2017.3107L15.1667%2020.9777V7.02227Z'%20fill='white'/%3e%3c/svg%3e"}},animation:{duration:"200ms",timing:"cubic-bezier(0, 0, 0.58, 1)"},bufferingOverlay:{containerInsetBlock:"0",containerInsetInline:"0",containerWidth:"auto",containerHeight:"auto",containerAlignItems:"center",containerJustifyContent:"center",trackDisplay:"none",trackHeight:"0",trackBackgroundColor:"transparent",trackBorderRadius:"0",trackWidth:"100%",loaderAnimation:"spin 2s linear infinite",loaderBackgroundImage:"none",loaderBackgroundPosition:"center",loaderBackgroundRepeat:"no-repeat",loaderBackgroundSize:"contain",loaderBorder:"3px solid #f4f4f4",loaderBorderRadius:"50%",loaderBorderTopColor:"transparent",loaderBackgroundColor:"transparent",loaderTransformOrigin:"center",loaderHeight:"50px",loaderWidth:"50px",loaderLeft:"calc(50% - 25px)",loaderPosition:"absolute",loaderTop:"calc(50% - 25px)"},toastNotification:{withSessionJustifyContent:"center",notificationBackgroundColor:"#22252A",containerTextColor:"#F4F5F6",notificationMargin:"0px",notificationMarginBottom:"76px",notificationWithSessionMarginBottom:"76px",notificationPadding:"4px 8px",withSessionMargin:"unset",notificationBorderRadius:"6px",containerFontWeight:"400",notificationLetterSpacing:"-0.32px",containerFontSize:"16px",withSessionWidth:"100%",containerLineHeight:"16px",animationName:"toastNotificationShiftFadeIn",animationDuration:"300ms",animationTiming:"cubic-bezier(0, 0, 0.42, 1)",animationDelay:"50ms",animationFillMode:"both",animationNameHidden:"toastNotificationShiftFadeOut",animationDurationHidden:"300ms",animationTimingHidden:"cubic-bezier(0, 0, 0.58, 1)",animationFillModeHidden:"forwards",responsive:{medium:{notificationMarginBottom:"82px",notificationWithSessionMarginBottom:"82px"},large:{notificationMarginBottom:"92px",notificationWithSessionMarginBottom:"92px"},gigantic:{notificationMarginBottom:"103px",notificationWithSessionMarginBottom:"103px"}}}},wV={breakpoints:new Map([["extraExtraSmall",339],["extraSmall",375],["extraSmallPlus",520],["small",668],["medium",768],["medLarge",1024],["large",1208],["extraLarge",1248],["gigantic",1400]]),brand:"news",themes:{default:CV,verts:{...CV,colors:{...CV.colors,gray19:"#303030"},volumeBar:{width:"80px",thumbWidth:"14px",thumbHeight:"14px",thumbBoxShadow:"0 5px 10px 0 rgba(35, 44, 57, 0.40);",thumbTransform:"translate(0, -50%)",thumbLeft:"-4.5px",thumbBackgroun
4467dColor:CV.colors.white,fromLeft:{height:"5px"},fromBottom:{height:"48px",width:"48px",display:"flex",justifyContent:"center",position:"absolute",top:"auto",bottom:"calc(100% - 1px)",maxLevel:{width:"5px"}},currentLevel:{backgroundColor:CV.colors.white}},progressBar:{hostHeight:"4px",borderRadius:"6px",transportControlsGap:"10px",thumbWidth:"12px",thumbHeight:"12px",thumbWidthHover:"20px",thumbHeightHover:"20px",timeBarHeight:"4px",timeBarHeightHover:"8px",timeBarBorderRadius:"6px",adPlayingThumbDisplay:"flex",adPlayingThumbHeight:"10.5px",adPlayingThumbHeightHover:"12.5px",adPlayingThumbWidth:"10.5px",adPlayingThumbWidthHover:"12.5px",thumbDeferredOutline:"2px solid #ffdb6e",preview:{imageBackgroundColor:"#2D2F36",tileBottom:"20px",timeFontFamily:"Post Grotesk, sans-serif",timeBackgroundColor:"#1D1E1F",hoverMarkerBeforeThumbColor:"#1D1E1F"},adMarkers:{markerContainerOverflow:"visible",pointActiveDeferredOutline:"2px solid #ffdb6e",pointHeightActiveDeferred:"6px",pointWidthActiveDeferred:"6px"}},seekableRange:{paddingTop:"0",paddingBottom:"0"},timeBar:{height:"4px",borderRadius:"6px"},icons:{size:{host:"unset",default:"24px",round:"48px"},modalOpen:{visibility:"visible"},round:{backgroundColor:"rgba(0, 0, 0, 0.5)",hoverBackgroundColor:"rgba(0, 0, 0, 0.5)"},masks:{...CV.icons.masks}},animation:{duration:"200ms",timing:"cubic-bezier(0, 0, 0.58, 1)"},bufferingOverlay:{containerDisplay:"none",containerInsetBlock:"auto 16px",containerInsetInline:"14px",containerWidth:"auto",containerHeight:"auto",containerAlignItems:"stretch",containerJustifyContent:"flex-start",trackDisplay:"none",loaderDisplay:"none",trackHeight:"4px",trackBackgroundColor:"#515662",trackBorderRadius:"6px",trackWidth:"100%",loaderAnimation:"timelineLoader 1s ease 2s infinite",loaderBackgroundImage:"none",loaderBackgroundPosition:"center",loaderBackgroundRepeat:"no-repeat",loaderBackgroundSize:"contain",loaderBorder:"none",loaderBorderRadius:"6px",loaderBorderTopColor:"transparent",loaderBackgroundColor:"#B0B5BE",loaderTransformOrigin:"center center",loaderHeight:"100%",loaderWidth:"100%",loaderLeft:"0",loaderPosition:"absolute",loaderTop:"0",responsive:{medium:{containerInsetInline:"16px"},medLarge:{containerInsetInline:"16px"},large:{containerInsetInline:"16px"},gigantic:{containerInsetInline:"16px"}}},shareModal:{dialogPosition:{top:"50%",bottom:"unset",left:"0",right:"0",transform:"translateY(-50%)"},verticalContainer:{top:"50%",bottom:"unset",left:"0",right:"0",width:"114px",maxHeight:"316px",borderRadius:"12px",transform:"translateY(-50%)"},scrimBackground:"rgba(0, 0, 0, 0.75)",verticalIcons:{containerFlexDirection:"column",containerAlignItems:"center",containerGap:"4px",containerSocialMargin:"0 0 4px 0",containerPadding:"0 0 12px",socialIconDisplay:"block",socialIconWidth:"90px",socialIconExpandedFlex:"0 0 auto",socialIconMediumChicletHeight:"44px",socialIconLargeChicletHeight:"58px",socialIconLargeFlexDirection:"column",socialIconBorderRadius:"6px"}},toastNotification:{...CV.toastNotification,notificationMargin:"0 14px",notificationMarginBottom:"132px",notificationWithSessionMarginBottom:"132px",notificationPadding:"8px 8.5px",notificationBorderRadius:"4px",notificationBackgroundColor:"#3d4149",containerFontSize:"14px",containerFontWeight:"500",containerLineHeight:"1.5",containerTextColor:CV.colors.white,notificationLetterSpacing:"-0.28px",responsive:{medium:{notificationMarginBottom:"134px",notificationWithSessionMarginBottom:"134px"},large:{notificationMarginBottom:"144px",notificationWithSessionMarginBottom:"144px"},gigantic:{notificationMarginBottom:"155px",notificationWithSessionMarginBottom:"155px"}}}}}},AV={shouldStart:t=>(t.isPlaying||t.isPaused)&&!t.isNotReady&&!t.isBuffering&&!t.isPretune&&!t.isInterstitialPlaying,phases:[{id:"ratings",overlays:[{id:"ratings",duration:5e3,timerMode:Lt.CONSECUTIVE,evaluate:t=>t.isInterstitialPlaying?xt.PAUSED_HIDDEN:t.isPaused?xt.PAUSED_VISIBLE:xt.ACTIVE}]}],onPhaseChange:(t,e,n,i)=>{n?.info(`[StartupOverlaySequencer:${i}] Phase changed to ${t}: ${e}`)},onOverlayActivate:(t,e,n)=>{e?.info(`[StartupOverlaySequencer:${n}] Overlay activated: ${t}`)},onOverlayComplete:(t,e,n,i)=>{n?.info(`[StartupOverlaySequencer:${i}] Overlay complete: ${t}, interrupted: ${e}`)},onComplete:(t,e)=>{t?.info(`[StartupOverlaySequencer:${e}] Sequence complete`)}},IV=Jb(Py,{tokens:t=>({"tooltip-offset":"43px","tooltip-arrow-top":"21px","tooltip-color":t.colors.colorsFillActionPrimaryAltResting,"tooltip-background":t.colors.colorsFillInformationNotfiySecondary,"tooltip-font-size":"15px","tooltip-font-weight":"400","tooltip-font-style":"normal","tooltip-font-feature-settings":"'liga' off, 'clig' off","tooltip-letter-spacing":"0","tooltip-line-height":"normal","tooltip-border-radius":"6px","tooltip-text-transform":"none","tooltip-opacity":"1","tooltip-font-family":"GT America, -apple-system, BentonSans-Regular, Helvetica, Verdana, Geneva, Tahoma, sans-serif",responsive:{}})});class OV extends DS{get offset(){const{isVOD:t,isLiveEvent:e}=this.streamController.value;return t||e?this.BACK_10:this.BACK_30}get ariaLabel(){const{dictionary:t}=this.host,{isVOD:e,isLiveEvent:n}
4467=this.streamController.value,i=e||n?{key:Xl.MEDIA.PLAYER.BACK10,fallback:"Skip Back 10 Seconds"}:{key:Xl.MEDIA.PLAYER.BACK30,fallback:"Skip Back 30 Seconds"};return t.translate(i.key,i.fallback)}get label(){const{dictionary:t}=this.host,{isVOD:e,isLiveEvent:n}=this.streamController.value,i=e||n?{key:Xl.MEDIA.CONTROLS.BACK10,fallback:"Rewind 10 Sec"}:{key:Xl.MEDIA.CONTROLS.BACK30,fallback:"Rewind 30 Sec"};return t.translate(i.key,i.fallback)}get controlIcon(){const{isVOD:t,isLiveEvent:e}=this.streamController.value;return t||e?"--quick-rewind-10":"--quick-rewind-30"}quickRewindDisabled(){const{offset:t}=this,{isVOD:e,isLive:n,noSeek:i,isLiveEvent:r,isSlidingWindow:o,isInterstitialPlaying:a,hasStarted:s,ended:l,isPretune:c,currentTimeAsPdt:d,playheadPositionMs:u,seekableStartMs:p,startPositionMs:h}=this.streamController.value,m=[[!s,()=>!s],[!e&&!n,()=>!0],[c,()=>!0],[i,()=>!0],[e&&a,()=>!0],[e&&l,()=>!0],[r,()=>{const e=h+Math.abs(t);return u-Math.abs(t)<=h||u<=e}],[n&&o,()=>d<=p+t],[!0,()=>!1]],[,g]=m.find((([t])=>t));return g()}get disabled(){return this.quickRewindDisabled()}get visible(){const{isVOD:t,isLive:e,liveApi:n,notready:i}=this.streamController.value;return i||!t&&!e||t||e&&n}get seekControlled(){const{currentTimeAsPdt:t,startPositionPdtMs:e,isLive:n}=this.streamController.value,i=(t||0)-Math.abs(this.offset);return!!e&&!!n&&i<(e||0)}}const RV=Jb($S,{tokens:t=>({"controls__host--width":"var(--quick-controls-size)","controls__host--height":"var(--quick-controls-size)","control-height":"var(--quick-controls-size)","control-width":"var(--quick-controls-size)","button-container--height":"var(--quick-controls-size)","button-container--width":"var(--quick-controls-size)","controls-background-color":t.colors.iconInactive,"controls--hover-background-color":t.colors.iconPlaybackHover,"controls--pressed-background-color":t.colors.iconPlaybackPressed,"quick-rewind-shell":`url("${t.icons.masks.rwdShell}")`,"quick-rewind-10":`url("${t.icons.masks.rwd10sec}")`,"quick-rewind-30":`url("${t.icons.masks.rwd30sec}")`,responsive:{}}),Controller:OV}),xV=Jb(Nw,{tokens:t=>({"controls__host--width":"var(--toggle-play-pause-size)","controls__host--height":"var(--toggle-play-pause-size)","control-height":"var(--toggle-play-pause-size)","control-width":"var(--toggle-play-pause-size)","button-container--height":"var(--toggle-play-pause-size)","button-container--width":"var(--toggle-play-pause-size)","button-container__round--size":t.icons?.size?.round,"button-container__round--background-color":t.icons?.round?.backgroundColor,"button-container__round__hover--background-color":t.icons?.round?.hoverBackgroundColor,"controls-background-color":t.colors.iconInactive,"controls--hover-background-color":t.colors.iconPlaybackHover,"controls--pressed-background-color":t.colors.iconPlaybackPressed,"play-icon":`url("${t.icons.masks.play}")`,"pause-icon":`url("${t.icons.masks.pause}")`,responsive:{}}),Controller:class extends Rw{get state(){return{...super.state,noSeek:!1}}get seekToLiveOnPlay(){return this.streamController.value.isLive}}}),LV=Jb(ZC,{tokens:t=>({"controls__host--width":"44px","controls__host--height":"44px","control-height":"44px","control-width":"44px","button-container--height":"44px","button-container--width":"44px","controls-background-color":t.colors.iconInactive,"controls--hover-background-color":t.colors.iconHover,"controls--pressed-background-color":t.colors.iconPressed,"controls--active-hover-background-color":t.colors.iconInactive,"restart-control-icon":`url("${t.icons.masks.restart}")`,responsive:{small:{"controls__host--width":"56px","controls__host--height":"56px","control-height":"56px","control-width":"56px","button-container--height":"56px","button-container--width":"56px"},medium:{"controls__host--width":"36px","controls__host--height":"36px","control-height":"36px","control-width":"36px","button-container--height":"36px","button-container--width":"36px"}}})});class kV extends HS{quickFastForwardDisabled(){const{isVOD:t,isLive:e,noSeek:n,isPretune:i,isBehindLiveEdge:r,hasStarted:o,ended:a,isInterstitialPlaying:s}=this.streamController.value;return!o||!t&&!e||t&&s||e&&!r||i||n||t&&a}get offset(){const{isVOD:t,isLiveEvent:e}=this.streamController.value;return t||e?this.FORWARD_10:this.FORWARD_30}get ariaLabel(){const{dictionary:t}=this.host,{isVOD:e,isLiveEvent:n}
4467=this.streamController.value,i=e||n?{key:Xl.MEDIA.PLAYER.FORWARD10,fallback:"Skip Ahead 10 Seconds"}:{key:Xl.MEDIA.PLAYER.FORWARD30,fallback:"Skip Ahead 30 Seconds"};return t.translate(i.key,i.fallback)}get label(){const{dictionary:t}=this.host,{isVOD:e,isLiveEvent:n}=this.streamController.value,i=e||n?{key:Xl.MEDIA.CONTROLS.FORWARD10,fallback:"Forward 10 Sec"}:{key:Xl.MEDIA.CONTROLS.FORWARD30,fallback:"Forward 30 Sec"};return t.translate(i.key,i.fallback)}get controlIcon(){const{isVOD:t,isLiveEvent:e}=this.streamController.value;return t||e?"--quick-fast-forward-10":"--quick-fast-forward-30"}get disabled(){return this.quickFastForwardDisabled()}get visible(){const{isVOD:t,isLive:e,liveApi:n,notready:i}=this.streamController.value;return i||!t&&!e||t||e&&n}get seekControlled(){const{currentTimeAsPdt:t,endPositionPdtMs:e,isLive:n}=this.streamController.value,i=(t||0)+this.offset;return!!e&&!!n&&i>e}}const PV=Jb(ZS,{tokens:t=>({"controls__host--width":"var(--quick-controls-size)","controls__host--height":"var(--quick-controls-size)","control-height":"var(--quick-controls-size)","control-width":"var(--quick-controls-size)","button-container--height":"var(--quick-controls-size)","button-container--width":"var(--quick-controls-size)","controls-background-color":t.colors.iconInactive,"controls--hover-background-color":t.colors.iconPlaybackHover,"controls--pressed-background-color":t.colors.iconPlaybackPressed,"quick-fast-forward-shell":`url("${t.icons.masks.ffShell}")`,"quick-fast-forward-10":`url("${t.icons.masks.ff10sec}")`,"quick-fast-forward-30":`url("${t.icons.masks.ff30sec}")`,responsive:{}}),Controller:kV}),DV=Jb(zT,{tokens:t=>({"controls__host--width":"unset","control-height":t.icons.size.default,"control-width":t.icons.size.default,"button-container--height":t.icons.size.default,"button-container--width":t.icons.size.default,"controls-background-color":t.colors.liveRed,"controls--active-background-color":t.colors.liveRed,"behind--background-color":t.colors.iconInactive,"behind--active--background-color":t.colors.iconInactive,"live-dot--color":t.live.color,"live-dot--font-size":t.live.fontSize,"live-dot--width":t.live.liveDotWidth,"control--mask":t.icons.masks.live,responsive:{}})}),NV=Jb(zC,{tokens:t=>({"host-height":t.progressBar?.hostHeight,"thumb--top":"50%","thumb--transform":"translate(-20%, -50%)","thumb--background-color":t.colors.softWhite,"thumb--width":t.progressBar?.thumbWidth,"thumb--height":t.progressBar?.thumbHeight,"thumb--width-hover":t.progressBar?.thumbWidthHover,"thumb--height-hover":t.progressBar?.thumbHeightHover,"ad-playing--thumb--background-color":t.colors.black,"ad-playing--thumb--display":t.progressBar?.adPlayingThumbDisplay,"ad-playing--thumb--width":t.progressBar?.adPlayingThumbWidth,"ad-playing--thumb--width-hover":t.progressBar?.adPlayingThumbWidthHover,"ad-playing--thumb--height":t.progressBar?.adPlayingThumbHeight,"ad-playing--thumb--height-hover":t.progressBar?.adPlayingThumbHeightHover,"ad-marker__point--active-deferred-outline":t.progressBar?.thumbDeferredOutline,"total-duration--background-color":t.colors.gray60Alpha35,"total-duration--background-color-hover":t.colors.gray60Alpha50,"progress--background-color":t.colors.gray40Alpha70,"progress--vod--background-color":t.colors.white,"progress--vod--background-color-hover":t.colors.white,"progress__live--background-color":t.colors.white,"progress__live-background--color-hover":t.colors.white,"progress--border-radius":t.progressBar?.borderRadius,"seekable-range__live--background-color":t.colors.white,"seekable-range__live--overlay--background-color":t.colors.black,"seekable-range__live--border-right":"2px s
4467olid #f1f1f1","post-live-edge-non-seekable-range--display":"none","seekable-range--padding-top":t.seekableRange?.paddingTop,"seekable-range--padding-bottom":t.seekableRange?.paddingBottom,"live-label--color":t.colors.white,"current-time--color":t.colors.white,"proposed-time-marker--background-color":t.colors.white,"deferred-marker--background-color":t.colors.softWhite,"time-bar--height":t.progressBar?.timeBarHeight,"time-bar--height-hover":t.progressBar?.timeBarHeightHover,"time-bar--border-radius":t.progressBar?.timeBarBorderRadius,"live-edge-ad-marker-container--overflow":t?.progressBar?.adMarkers?.markerContainerOverflow,responsive:{}})}),MV=Jb(TC,{tokens:t=>({"marker-position":"absolute","marker-pointer-events":"none","point-width":"4px","point-height":"4px","point-background-color":t.colors.black,"point-border-radius":"50%","point-transform":"translate(-50%, -50%)","point-height--active-deferred":t.progressBar?.adMarkers?.pointHeightActiveDeferred,"point-width--active-deferred":t.progressBar?.adMarkers?.pointWidthActiveDeferred,"point--active-deferred-outline":"2px solid #ffdb6e","active-deferred__point-background-color":t.colors.black,"range-height":"2px","range-background-color":t.colors.black,"range-transform":"translateY(-50%)","range-border-radius":"2px",responsive:{}})}),UV=Jb(kC,{tokens:t=>({"hover-marker--background-color":t.colors.softWhite,"hover-timeline-before-playhead--background-color":t.progressBar?.preview?.hoverMarkerBeforeThumbColor,"hover-timeline-after-playhead--background-color":t.colors.white,"preview-tile--display":"flex","preview-tile--flex-direction":"column","preview-tile--justify-content":"center","preview-tile--align-items":"center","preview-tile--position":"absolute","preview-tile--bottom":t.progressBar?.preview?.tileBottom,"preview-tile--z-index":"2","preview-tile--aspect-ratio-1_33-width":"180px","preview-tile--aspect-ratio-1_85-width":"180px","preview-tile--aspect-ratio-2_35-width":"80px","preview-image-container--aspect-ratio-2_35-width":"auto","preview-image--border-radius":"4px","preview-image--background-color":t.progressBar?.preview?.imageBackgroundColor,"preview-time--position":"relative","preview-time--bg-color":t.progressBar?.preview?.timeBackgroundColor,"preview-time--border-radius":"20px","preview-time--color":t.colors.softWhite,"preview-time--height":"30px","preview-time--font-size":"16px","preview-time--font-weight":"500","preview-time--line-height":"16px","preview-time--letter-spacing":"-0.32px","centered-time--font-family":t.fontFamily,responsive:{extraSmall:{"preview-tile--aspect-ratio-2_35-width":"120px"},medium:{"preview-tile--aspect-ratio-2_35-width":"180px"},large:{}}})}),BV=Jb(hT,{tokens:t=>({"controls__host--width":t.icons.size.host,"controls__host--height":t.icons.size.host,"control-height":t.icons.size.default,"control-width":t.icons.size.default,"button-container--height":t.icons.size.default,"button-container--width":t.icons.size.default,"button-container__round--size":t.icons?.size?.round,"button-container__round--background-color":t.icons?.round?.backgroundColor,"button-container__round__hover--background-color":t.icons?.round?.hoverBackgroundColor,"controls-background-color":t.colors.iconInactive,"controls--hover-background-color":t.colors.iconHover,"controls--pressed-background-color":t.colors.iconPressed,"controls--active-hover-background-color":t.colors.iconInactive,"enable-captions-icon":`url("${t.icons.masks.enablecaptions}")`,"disable-captions-icon":`url("${t.icons.masks.disablecaptions}")`,responsive:{}})}),VV=Jb(oT,{tokens:t=>({"controls__host--width":t.icons.size.host,"controls__host--height":t.icons.size.host,"control-height":t.icons.size.default,"control-width":t.icons.size.default,"button-container--height":t.icons.size.default,"button-container--width":t.icons.size.default,"controls-background-color":t.colors.iconInactive,"controls--hover-background-color":t.colors.iconHover,"controls--pressed-background-color":t.colors.iconPressed,"fullscreen-icon":`url("${t.icons.masks.fullscreen}")`,"exit-fullscreen-icon":`url("${t.icons.masks.exitfullscreen}")`,responsive:{}})}),FV=Jb(Cw,{tokens:t=>({"controls__host--width":t.icons.size.host,"controls__host--height":t.icons.size.host,"control-height":t.icons.size.default,"control-width":t.icons.size.default,"button-container--height":t.icons.size.default,"button-container--width":t.icons.size.default,"button-container__round--size":t.icons?.size?.round,"button-container__round--background-color":t.icons?.round?.backgroundColor,"button-container__round__hover--background-color":t.icons?.round?.hoverBackgroun
4467dColor,"controls-background-color":t.colors.iconInactive,"volume-bar-container-from-left-max-height":t.icons.size.default,"volume-bar-container-from-left-width":"100%","muted-icon":`url("${t.icons.masks.muted}")`,"volume-half-icon":`url("${t.icons.masks.volumeHalf}")`,"volume-full-icon":`url("${t.icons.masks.volumeFull}")`,responsive:{}}),Controller:class extends hw{get state(){const{muted:t,level:e}=this.streamController.value,n=super.state,i=t||0===e;let r="full";i?r="muted":!t&&e<=50&&(r="half");const o=`--volume-${r}__control--mask`,a={key:Xl.MEDIA.PLAYER.MUTE_VIDEO,fallback:"Mute video"};return{...n,ariaLabel:this.host.dictionary?.translate(a.key,a.fallback)??a.fallback,ariaPressed:i,volumeType:r,controlIcon:o,className:`toggle-mute-button control volume-${r}`,showTooltip:!0}}}}),zV=Jb(ST,{tokens:t=>({"container__from-left--padding":"10px 10px 10px 6px","container__from-bottom--width":t.volumeBar?.fromBottom?.width,"container__from-bottom--height":t.volumeBar?.fromBottom?.height,"container__from-bottom--display":t.volumeBar?.fromBottom?.display,"container__from-bottom--justify-content":t.volumeBar?.fromBottom?.justifyContent,"container__from-bottom--position":t.volumeBar?.fromBottom?.position,"container__from-bottom--top":t.volumeBar?.fromBottom?.top,"container__from-bottom--bottom":t.volumeBar?.fromBottom?.bottom,"max-level__from-bottom--width":t.volumeBar?.fromBottom?.maxLevel?.width,"max-level--background-color":t.colors?.gray19,"current-level--background-color":t?.volumeBar?.currentLevel?.backgroundColor,"thumb--width":t.volumeBar?.thumbWidth,"thumb--height":t.volumeBar?.thumbHeight,"thumb--transform":t.volumeBar?.thumbTransform,"thumb--left":t.volumeBar?.thumbLeft,"thumb--box-shadow":t.volumeBar?.thumbBoxShadow,"thumb--background-color":t.volumeBar?.thumbBackgroundColor,responsive:{}})}),$V=Jb(vC,{tokens:t=>({bottom:"85px",responsive:{}}),Controller:class extends cC{constructor(){super(...arguments),this.isFirstControlsInteractionForTimeoutDuration=!0}get modalNamesToCheckForClose(){return[Df.SETTINGS_MODAL,Df.SHARE_MODAL]}onControlsOpen(){this.areControlsAlwaysVisible||(this.isFirstControlsInteractionForTimeoutDuration=!0)}}}),HV=p.i`
4468	:host([vertical]) {
4469		--item--height: var(--modal-menu-header__vertical--height, 40px);
4470		--item--padding: var(--modal-menu-header__vertical--padding, 0 12px);
4471		--close-button-container--height: var(
4472			--modal-menu-header__vertical__close-button-container--size,
4473			28px
4474		);
4475		--close-button-container--width: var(
4476			--modal-menu-header__vertical__close-button-container--size,
4477			28px
4478		);
4479		--close-button-container--right: var(
4480			--modal-menu-header__vertical__close-button-container--right,
4481			6px
4482		);
4483		--close-button-container--padding: var(
4484			--modal-menu-header__vertical__close-button-container--padding,
4485			6px
4486		);
4487		--title--text-align: var(
4488			--modal-menu-header__vertical__title--text-align,
4489			start
4490		);
4491		--title--padding-top: var(
4492			--modal-menu-header__vertical__title--padding-top,
4493			0
4494		);
4495		--title--padding-bottom: var(
4496			--modal-menu-header__vertical__title--padding-bottom,
4497			0
4498		);
4499	}
4500`;let GV=(a=class extends PM{constructor(){super(...arguments),m(this,r)}connectedCallback(){super.connectedCallback(),g(this,r,o).call(this),this.unsubscribeFromVerticalLayout=this.localState?.subscribe(this,(t=>({forceHide:t.modalState?.forceHide??!1,useVerticalShareModal:t.playerMode?.useVerticalShareModal??!1})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromVerticalLayout?.(),this.unsubscribeFromVerticalLayout=void 0}update(t){g(this,r,o).call(this),super.update(t)}},r=new WeakSet,o=function(){const t=this.localState?.modalState?.forceHide??!1,e=this.localState?.playerMode?.useVerticalShareModal??!1;this.toggleAttribute("vertical",e&&t)},a.styles=[...PM.styles,HV],a);const YV=Jb(GV,{tokens:t=>({padding:"12px","back-button-container--right":"90%","close-button--mask-image":`url("${t.icons.masks.close}")`,"back-button--mask-image":`url("${t.icons.masks.back}")`,"title--border-bottom":"none","title--color":t.colors.white,"title--font-size":"16px","close-button-container--height":"32px","close-button-container--width":"32px","back-button-container--width":"32px","back-button-container--height":"32px","item--height":"46px","item--width":"auto","title--font-family":t.fontFamily,responsive:{medium:{"item--height":"55px"}}})});
4500class jV extends lU{get ariaLabel(){const{dictionary:t}=this.host;return t?.translate(Xl.MEDIA.CONTROLS.SHARE_VIDEO,this.tooltipLabel)}}const KV={isPaused:!1},WV=t=>({isPaused:t?.playback?.isPaused??!1}),qV=Jb(class extends hU{constructor(){super(...arguments),this.breakpoint="medium",this.controller=new jV(this),this.shouldResumePlayback=!1,this.wasModalOpen=!1,this.shareStreamController=new G_(this,WV,KV)}connectedCallback(){super.connectedCallback(),this.unsubscribeFromModalState=this.localState?.subscribe(this,(t=>({isShareModalOpen:t.modalState.modals[Df.SHARE_MODAL]?.isOpen})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromModalState?.(),this.unsubscribeFromModalState=void 0}willUpdate(){const t=this.localState?.modalState?.modals[Df.SHARE_MODAL]?.isOpen??!1;t&&!this.wasModalOpen&&(this.shouldResumePlayback=!this.shareStreamController.value.isPaused,this.commandBus?.dispatchCommand?.(Ql.PAUSE,{label:"Share modal control"})),!t&&this.wasModalOpen&&this.shouldResumePlayback&&(this.commandBus?.dispatchCommand?.(Ql.PLAY,{label:"Share modal control"}),this.shouldResumePlayback=!1),this.wasModalOpen=t}},{tokens:t=>({"control-height":t.icons.size.default,"control-width":t.icons.size.default,"button-container--height":t.icons.size.default,"button-container--width":t.icons.size.default,"controls__host--width":t.icons.size.host,"controls__host--height":t.icons.size.host,"button-container__round--size":t.icons?.size?.round,"button-container__round--background-color":t.icons?.round?.backgroundColor,"button-container__round__hover--background-color":t.icons?.round?.hoverBackgroundColor,"controls-background-color":t.colors.iconInactive,"controls--pressed-background-color":t.colors.iconPressed,"controls--hover-background-color":t.colors.iconHover,"controls--active-hover-background-color":t.colors.iconInactive,"modal-control-icon":`url("${t.icons.masks.share}")`,"modal-control-icon--selected":`url("${t.icons.masks.shareSelected}")`,"modal-open--visibility":t.icons?.modalOpen?.visibility,responsive:{medium:{"modal-open--visibility":"visible"}}})}),XV=Jb(sU,{tokens:t=>({"dialog--top":t.shareModal?.dialogPosition?.top,"dialog--vertical-container--top":t.shareModal?.verticalContainer?.top??t.shareModal?.dialogPosition?.top,"dialog--vertical-container--left":t.shareModal?.verticalContainer?.left,"dialog--vertical-container--right":t.shareModal?.verticalContainer?.right,"dialog--vertical-container--bottom":t.shareModal?.verticalContainer?.bottom,"dialog--vertical-container--width":t.shareModal?.verticalContainer?.width,"dialog--vertical-container--max-height":t.shareModal?.verticalContainer?.maxHeight,"dialog--vertical-container--transform":t.shareModal?.verticalContainer?.transform,"dialog--vertical-container--border-radius":t.shareModal?.verticalContainer?.borderRadius,"dialog--scrim--background":t.shareModal?.scrimBackground,"dialog--left":t.shareModal?.dialogPosition?.left,"dialog--right":t.shareModal?.dialogPosition?.right,"dialog--bottom":t.shareModal?.dialogPosition?.bottom,"dialog--transform":t.shareModal?.dialogPosition?.transform,responsive:{extraExtraSmall:{"dialog--top":t.shareModal?.dialogPosition?.top,"dialog--vertical-container--top":t.shareModal?.dialogPosition?.top,"dialog--left":t.shareModal?.dialogPosition?.left,"dialog--right":t.shareModal?.dialogPosition?.right,"dialog--bottom":t.shareModal?.dialogPosition?.bottom,"dialog--transform":t.shareModal?.dialogPosition?.transform},extraSmall:{"dialog--top":t.shareModal?.dialogPosition?.top,"dialog--vertical-container--top":t.shareModal?.dialogPosition?.top,"dialog--left":t.shareModal?.dialogPosition?.left,"dialog--right":t.shareModal?.dialogPosition?.right,"dialog--bottom":t.shareModal?.dialogPosition?.bottom,"dialog--transform":t.shareModal?.dialogPosition?.transform},small:{"dialog--top":t.shareModal?.dialogPosition?.top,"dialog--vertical-container--top":t.shareModal?.dialogPosition?.top,"dialog--left":t.shareModal?.dialogPosition?.left,"dialog--right":t.shareModal?.dialogPosition?.right,"dialog--bottom":t.shareModal?.dialogPosition?.bottom,"dialog--transform":t.shareModal?.dialogPosition?.transform},medium:{"dialog--top":t.shareModal?.dialogPosition?.top,"dialog--vertical-container--top":t.shareModal?.dialogPosition?.top,"dialog--left":t.shareModal?.dialogPosition?.left,"dialog--right":t.shareModal?.dialogPosition?.right,"dialog--bottom":t.shareModal?.dialogPosition?.bottom,"dialog--transform":t.shareModal?.dialogPosition?.transform},extraLarge:{"dialog--top":t.shareModal?.dialogPosition?.top,"dialog--vertical-container--top":t.shareModal?.dialogPosition?.top,"dialog--left":t.shareModal?.dialogPosition?.left,"dialog--right":t.shareModal?.dialogPosition?.right,"dialog--bottom":t.shareModal?.dialogPosition?.bottom,"dialog--transform":t.shareModal?.dialogPosition?.transform}}})});class ZV extends TM{get brandName(){return"ABC News"}get hideShareAt(){return!0}}const QV=p.i`
4501	:host([vertical]) .share-icons-container {
4502		padding: var(--share-icons__container__vertical--padding, 8px);
4503	}
4504
4505	:host([vertical]) .container {
4506		flex-direction: var(--container__vertical--flex-direction, column);
4507		align-items: var(--container__vertical--align-items, stretch);
4508		gap: var(--container__vertical--gap, 8px);
4509	}
4510
4511	:host([vertical]) .container.social {
4512		margin: var(--container__social__vertical--margin, 8px 0);
4513	}
4514
4515	:host([vertical]) social-icon {
4516		display: var(--social-icon__vertical--display, block);
4517
4518		--container--width: var(--social-icon__vertical--width, 100%);
4519		--container--height: var(
4520			--social-icon__vertical--height,
4521			var(--social-icon__vertical--medium-chiclet-height, 48px)
4522		);
4523		--container__expanded--flex: var(
4524			--social-icon__vertical--expanded-flex,
4525			0 0 auto
4526		);
4527		--container__expanded__medium--height: var(
4528			--social-icon__vertical--medium-chiclet-height,
4529			48px
4530		);
4531		--container__expanded__large--height: var(
4532			--social-icon__vertical--large-chiclet-height,
4533			64px
4534		);
4535		--container__expanded__large--flex-direction: var(
4536			--social-icon__vertical--large-flex-direction,
4537			column
4538		);
4539		--container__expanded--border-radius: var(
4540			--social-icon__vertical--border-radius,
4541			6px
4542		);
4543	}
4544`;let JV=(c=class extends AM{constructor(){super(...arguments),m(this,s),this.controller=new ZV(this,{streamController:this.streamController})}connectedCallback(){super.connectedCallback(),g(this,s,l).call(this),this.unsubscribeFromVerticalLayout=this.localState?.subscribe(this,(t=>({forceHide:t.modalState?.forceHide??!1,useVerticalShareModal:t.playerMode?.useVerticalShareModal??!1})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromVerticalLayout?.(),this.unsubscribeFromVerticalLayout=void 0}update(t){g(this,s,l).call(this),super.update(t)}renderCopyIcons(){const{handleAnalyticsEventClick:t,controller:e,streamController:n}=this,{shareUrl:i,embedUrl:r}
4544=n.value,o=e.getShareUrl(i),{copiedLabel:a,copyLabel:s}=e;return p.x`
4545			<div class="copy container">
4546				${r?p.x`
4547								<social-icon
4548									className="embed large expanded"
4549									platform="embed"
4550									behavior="embed"
4551									href=${e.getEmbedUrl(r,i)}
4552									ariaLabel=${e.embedLabel}
4553									label=${e.embedLabel}
4554									feedback=${a}
4555									.trackingHandler=${t}
4556								></social-icon>
4557							`:p.E}
4558				<social-icon
4559					className="link large expanded"
4560					platform="link"
4561					behavior="link"
4562					href=${o}
4563					ariaLabel=${s}
4564					feedback=${a}
4565					label=${s}
4566					.trackingHandler=${t}
4567				></social-icon>
4568			</div>
4569		`}},s=new WeakSet,l=function(){const t=this.localState?.modalState?.forceHide??!1,e=this.localState?.playerMode?.useVerticalShareModal??!1;this.toggleAttribute("vertical",e&&t)},c.styles=[...AM.styles,QV],c);const tF=Jb(JV,{tokens:t=>({"container__vertical--flex-direction":t.shareModal?.verticalIcons?.containerFlexDirection,"container__vertical--align-items":t.shareModal?.verticalIcons?.containerAlignItems,"container__vertical--gap":t.shareModal?.verticalIcons?.containerGap,"container__social__vertical--margin":t.shareModal?.verticalIcons?.containerSocialMargin,"share-icons__container__vertical--padding":t.shareModal?.verticalIcons?.containerPadding,"social-icon__vertical--display":t.shareModal?.verticalIcons?.socialIconDisplay,"social-icon__vertical--width":t.shareModal?.verticalIcons?.socialIconWidth,"social-icon__vertical--expanded-flex":t.shareModal?.verticalIcons?.socialIconExpandedFlex,"social-icon__vertical--medium-chiclet-height":t.shareModal?.verticalIcons?.socialIconMediumChicletHeight,"social-icon__vertical--large-chiclet-height":t.shareModal?.verticalIcons?.socialIconLargeChicletHeight,"social-icon__vertical--large-flex-direction":t.shareModal?.verticalIcons?.socialIconLargeFlexDirection,"social-icon__vertical--border-radius":t.shareModal?.verticalIcons?.socialIconBorderRadius,responsive:{}})});class eF extends AU{isVisible(){const t=this.host,e=t.streamController?.value?.captionsAvailable??!1,n=t.streamController?.value?.audioTracksCount??0;return e||n>1}}const nF={captionsAvailable:!1,audioTracksCount:0},iF=t=>({captionsAvailable:t.captions?.areAvailable??!1,audioTracksCount:t.audio?.tracks?.length??0}),rF=Jb(class extends LU{constructor(){super(...arguments),this.breakpoint="medium",this.streamController=new G_(this,iF,nF),this.controller=new eF(this)}},{tokens:t=>({"control-height":t.icons.size.default,"control-width":t.icons.size.default,"button-container--height":t.icons.size.default,"button-container--width":t.icons.size.default,"controls-background-color":t.colors.iconInactive,"controls--pressed-background-color":t.colors.iconPressed,"controls--hover-background-color":t.colors.iconHover,"controls--active-hover-background-color":t.colors.iconInactive,"modal-control-icon":`url("${t.icons.masks.settings}")`,"modal-control-icon--selected":`url("${t.icons.masks.settingsOpen}")`,"modal-open--visibility":"hidden",responsive:{medium:{"modal-open--visibility":"visible"}}})}),oF=Wb('\n\t:host([dir="rtl"]) dialog {\n\t\tinset-inline-start: var(--dialog--rtl-left, var(--dialog--left));\n\t\tinset-inline-end: var(--dialog--rtl-right, var(--dialog--right));\n\t\tleft: var(--dialog--rtl-physical-left, auto);\n\t\tright: var(--dialog--rtl-physical-right, auto);\n\t\ttransform: var(--dialog--rtl-transform, var(--dialog--transform, none));\n\t}\n\n\t:host([dir="rtl"]) dialog.view-captionSettings {\n\t\tinset-inline-end: var(\n\t\t\t--dialog--captionSettings--rtl-right,\n\t\t\tvar(\n\t\t\t\t--dialog--captionSettings--right,\n\t\t\t\tvar(--dialog--rtl-right, var(--dialog--right))\n\t\t\t)\n\t\t);\n\t\tleft: var(\n\t\t\t--dialog--captionSettings--rtl-physical-left,\n\t\t\tvar(--dialog--rtl-physical-left, auto)\n\t\t);\n\t\tright: var(\n\t\t\t--dialog--captionSettings--rtl-physical-right,\n\t\t\tvar(--dialog--rtl-physical-right, auto)\n\t\t);\n\t}\n');let aF=(d=class extends wU{constructor(){super(...arguments),this.breakpoint="medium",this.wasFullscreen=!1}connectedCallback(){super.connectedCallback(),this.wasFullscreen=this.localState?.fullscreen?.isEnabled??!1,this.unsubscribeFromFullscreenState=this.localState?.subscribe(this,(t=>({isAnyModalOpen:t.modalState.isAnyModalOpen,isModalOpen:t.modalState.modals[Df.SETTINGS_MODAL]?.isOpen,isFullscreen:t.fullscreen.isEnabled,currentViewName:t.modalState.modals[Df.SETTINGS_MODAL]?.currentViewName,controlsOverlay:t.overlayState.areControlsVisible,isVerticalVideo:t.playerMode?.isVerticalVideo,forceHideExperienceModals:t.modalState.forceHide})))}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromFullscreenState?.(),this.unsubscribeFromFullscreenState=void 0}willUpdate(){const t=this.localState?.fullscreen?.isEnabled??!1,e=this.localState?.modalState?.modals[Df.SETTINGS_MODAL]?.isOpen??!1;t!==this.wasFullscreen&&e&&this.controller.closeModal(),this.wasFullscreen=t}},d.styles=[...wU.styles,oF],d);const sF=Jb(aF,{tokens:()=>({"dialog--border-radius":"12px","dialog--background-color":"transparent","dialog--width":"auto",responsive:{extraExtraSmall:{"dialog--top":"unset","dialog--left":"50%","dialog--right":"auto","dialog--rtl-left":"auto","dialog--rtl-right":"auto","dialog--rtl-physical-left":"50%","dialog--rtl-physical-right":"auto","dialog--bottom":"10px","dialog--transform":"translateX(-50%)","dialog--rtl-transform":"translateX(-50%)","dialog--captionSettings--rtl-right":"auto","dialog--captionSettings--rtl-physical-left":"50%","dialog--captionSettings--rtl-physical-right":"auto"},medium:{"dialog--captionSettings--right":"24px"},extraLarge:{"dialog--captionSettings--right":"24px","dialog--captionSettings--bottom":"130px"}}})}),lF=Jb(FU,{tokens:t=>({"main-settings-container-background":t.colors.colorsSurface2,"main-settings-container-color":t.colors.white,"main-settings-font-family":t.fontFamily,"main-settings-nav-item-font-family":t.fontFamily,"main-settings-nav-item-padding":"10px 14px","main-settings-sublabel-color":t.colors.informationTextColor,"main-settings-sublabel-font-size":"14px","main-settings-caret-color":t.colors.white,responsive:{medium:{"main-settings-nav-item-padding":"16px 16px 16px 24px"}}})}),cF=Jb(XU,{tokens:t=>({"audio-selection-container-background":t.colors?.colorsSurface2,"audio-selection-container-color":t.colors?.white,"audio-selection-check-icon":`url("${t.icons?.masks?.check}")`,"audio-selection-check-color":t.colors?.white,"audio-selection-item-selected-color":t.colors?.white,"audio-selection-item-selected-check-color":t.colors?.white,"audio-selection-item-selected-label-color":t.colors?.white,responsive:{extraSmall:{"audio-selection-list-max-height":"180px"},small:{"audio-selection-list-max-height":"235px","audio-selection-item-padding":"20px 24px"}}})}),dF=Jb(oB,{tokens:t=>({"subtitles-selection-item-selected-label-color":t?.colors?.white,"subtitles-selection-item-selected-check-color":t?.colors?.white})}),uF={"monospace-serif":'"Courier New", serif',"proportional-serif":'"Times New Roman", serif',"monospace-sans-serif":"Console, sans-serif","proportional-sans-serif":"Arial, sans-serif",script:"Apple Chancery","small-caps":"Arial, sans-serif"};class pF extends bB{fontFaceMapping(){return uF}fontMapping(){return{"medium-small":"16px",medium:"20px","medium-large":"24px"}}fontSizeOptions(t){const e={"medium-small":t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_SMALL,"small"),medium:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_MEDIUM,"medium"),"medium-large":t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_SIZE_LARGE,"large")};return{fontSizes:sB.map((t=>({id:t,value:t,text:e[t]})))}}backgroundColorOptions(t){return{backgroundColors:[{id:"backgroundColorWhite",value:Al.getRGBA(Al.backgroundColorMap[rN.WHITE],Al.backgroundOpacityMap.backgroundOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_WHITE,"White")},{id:"backgroundColorBlack",value:Al.getRGBA(Al.backgroundColorMap[rN.BLACK],Al.backgroundOpacityMap.backgroundOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_BLACK,"Black")}]}}fontColorOptions(t){return{fontColors:[{id:"fontColorWhite",value:Al.getRGBA(Al.fontColorMap[oN.WHITE],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_WHITE,"White")},{id:"fontColorBlack",value:Al.getRGBA(Al.fontColorMap[oN.BLACK],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_BLACK,"Black")},{id:"fontColorGeneralBlue",value:Al.getRGBA(Al.fontColorMap[oN.GENERAL_BLUE],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_BLUE,"Blue")},{id:"fontColorGeneralTeal",value:Al.getRGBA(Al.fontColorMap[oN.GENERAL_TEAL],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_TEAL,"Teal")},{id:"fontColorGeneralLime",value:Al.getRGBA(Al.fontColorMap[oN.GENERAL_LIME],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_GREEN,"Green")},{id:"fontColorGeneralYellow",value:Al.getRGBA(Al.fontColorMap[oN.GENERAL_YELLOW],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_YELLOW,"Yellow")},{id:"fontColorGeneralRed",value:Al.getRGBA(Al.fontColorMap[oN.GENERAL_RED],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_RED,"Red")},{id:"fontColorGeneralViolet",value:Al.getRGBA(Al.fontColorMap[oN.GENERAL_VIOLET],Al.fontOpacityMap.fontOpacity100),text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_COLOR_VIOLET,"Violet")}]}}fontFamilyOptions(t){const{fontMap:e}=Al;return{fonts:[{id:iN.MONOSPACE_SERIF,value:e.fontMonospaceSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_MONOSPACE_SERIF,"Monospace Serif"),styleOverrides:{"--styled-radio-buttons__styled-radio__before--font-family":uF["monospace-serif"],"--styled-radio-buttons__styled-radio__before--font-weight":"500"}},{id:iN.PROPORTIONAL_SERIF,value:e.fontProportionalSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_PROPORTIONAL_SERIF,"Proportional Serif"),styleOverrides:{"--styled-radio-buttons__styled-radio__before--font-family":uF["proportional-serif"],"--styled-radio-buttons__styled-radio__before--font-weight":"400","--styled-radio-buttons__styled-radio__before--letter-spacing":"1.6px"}},{id:iN.MONOSPACE_SANS_SERIF,value:e.fontMonospaceSansSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_MONOSPACE_SANS_SERIF,"Monospace Sans-Serif"),styleOverrides:{"--styled-radio-buttons__styled-radio__before--font-family":uF["monospace-sans-serif"],"--styled-radio-buttons__styled-radio__before--font-weight":"400"}},{id:iN.PROPORTIONAL_SANS_SERIF,value:e.fontProportionalSansSerif,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_PROPORTIONAL_SANS_SERIF,"Proportional Sans-Serif"),styleOverrides:{"--styled-radio-buttons__styled-radio__before--font-family":uF["proportional-sans-serif"],"--styled-radio-buttons__styled-radio__before--font-weight":"400"}},{id:iN.SCRIPT,value:e.fontScript,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_SCRIPT,"Script"),styleOverrides:{"--styled-radio-buttons__styled-radio__before--font-family":uF.script,"--styled-radio-buttons__styled-radio__before--font-weight":"700"}},{id:iN.SMALL_CAPS,value:e.fontSmallCaps,text:t.translate(Xl.MEDIA.CONTROLS.SUBTITLE_MENU_FONT_SMALL_CAPS,"Small Caps"),styleOverrides:{"--styled-radio-buttons__styled-radio__before--font-family":uF["small-caps"],"font-variant":"small-caps","--styled-radio-buttons__styled-radio__before--font-weight":"700","--styled-radio-buttons__styled-radio__before--letter-spacing":"1px"}}]}}fontEdgeOptions(t){return{fontEdgeOptions:[{id:"fontEdgeDepressed",value:"fontEdgeDepressed",text:t.translate(Xl.MEDIA.SUBTITLE_STYLING.FONT_EDGE_DEPRESSED,"Depressed")}]}}}const hF=class extends AB{constructor(){super(...arguments),this.captionsSettingsService=new pF}};hF.brandConfig={tokens:t=>({"caption-settings-background":t.colors.colorsSurface2,"caption-settings-box-sha
4569dow":"0px 4px 4px 0px rgba(0, 0, 0, 0.25)","caption-settings-backdrop-filter":"blur(2px)","caption-settings-font-family":"Post Grotesk, sans-serif","caption-settings-reset-font-family":"Post Grotesk, sans-serif","caption-settings-reset-letter-spacing":"-0.28px","caption-settings-max-width":"320px","subtitles-selection-item-selected-label-color":t.colors?.white,"subtitles-selection-item-selected-check-color":t.colors?.white,responsive:{extraSmall:{"caption-settings-container-max-height":"316px"},small:{"caption-settings-container-max-height":"356px"},medium:{"caption-settings-container-max-height":"412px"},extraLarge:{"caption-settings-container-max-height":"unset"}}})};let mF=hF;const gF=Jb(CN,{tokens:t=>({padding:"12px","back-button-container--right":"90%","close-button--mask-image":`url("${t.icons.masks.close}")`,"back-button--mask-image":`url("${t.icons.masks.back}")`,"title--border-bottom":"none","title--color":t.colors.white,"title--font-size":"16px","close-button-container--height":"32px","close-button-container--width":"32px","back-button-container--width":"32px","back-button-container--height":"32px","controls__host--height":"46px","controls__host--width":"auto","title--font-family":"Post Grotesk, sans-serif",responsive:{medium:{"controls__host--height":"55px"}}})}),vF=Jb(LN,{tokens:t=>({padding:"10px 14px",gap:"12px","sublabel--color":t.colors.informationTextColor,"sublabel--font-size":"14px","font-family":"Post Grotesk, sans-serif",responsive:{medium:{padding:"16px 16px 16px 24px"}}})}),fF=Jb(XD,{tokens:t=>({"preview--border-radius":"4px","preview-text--padding":"2.5px 9px",responsive:{}})}),bF=Jb(vN,{tokens:()=>({"switch__track--block-size":"24px","switch__track--inline-size":"42px","switch__track--border":"0.5px solid #FFF","switch__track--border-radius":"999px","switch__track-checked--border":"0.5px solid transparent","switch__root--border-radius":"999px","switch__root--switch-color":"rgba(255, 255, 255, 0.08)","switch__track--background-color":"rgba(255, 255, 255, 0.08)","switch__thumb--background-color":"#fff","switch__thumb--border-radius":"18px","switch__thumb--inset-block-start":"3px","switch__thumb--inset-inline-start":"3px","switch__thumb--block-size":"18px","switch__thumb--inline-size":"18px","switch__root-checked--switch-color":"rgba(255, 255, 255, 0.72)","switch__thumb-checked--inline-offset":"18px","switch__thumb-checked--background-color":"#000",responsive:{}})}),_F=Jb(nN,{tokens:t=>({"switch__track--block-size":"24px","switch__track--border":"0.5px solid #FFFFFF","switch__track-checked--border":"0.5px solid transparent","switch__track--background-color":"rgba(255, 255, 255, 0.08)","switch__thumb--inset-block-start":"2px","switch__thumb--inset-inline-start":"2px","switch__thumb--block-size":"20px","switch__thumb--inline-size":"20px","switch__root-checked--switch-color":"rgba(255, 255, 255, 0.72)","switch__thumb-checked--inline-offset":"18px","switch__thumb-checked--background-color":t.colors.black,"padding-block":"10px","padding-inline":"14px","font-family":"Post Grotesk, sans-serif",responsive:{medium:{"padding-block":"16px","padding-inline":"24px 16px"}}})}),EF=Jb(wA,{tokens:t=>({"host--justify-content":"flex-start","container--margin-bottom":"unset","container__controls-open--margin-bottom":"unset","container--margin-top":"23px"})}),yF=Jb(RA,{tokens:t=>({"buffering-overlay--container-inset-block":t.bufferingOverlay?.containerInsetBlock,"buffering-overlay--container-inset-inline":t.bufferingOverlay?.containerInsetInline,"buffering-overlay--container-width":t.bufferingOverlay?.containerWidth,"buffering-overlay--container-height":t.bufferingOverlay?.containerHeight,"buffering-overlay--container-align-items":t.bufferingOverlay?.containerAlignItems,"buffering-overlay--container-justify-content":t.bufferingOverlay?.containerJustifyContent,"buffering-overlay--container-display":t.bufferingOverlay?.containerDisplay,"track--display":t.bufferingOverlay?.trackDisplay,"track--height":t.bufferingOverlay?.trackHeight,"track--background-color":t.bufferingOverlay?.trackBackgroundColor,"track--border-radius":t.bufferingOverlay?.trackBorderRadius,"track--width":t.bufferingOverlay?.trackWidth,"loader--webkit-animation":t.bufferingOverlay?.loaderAnimation,"loader--animation":t.bufferingOverlay?.loaderAnimation,"loader--background-image":t.bufferingOverlay?.loaderBackgroun
4569dImage,"loader--background-position":t.bufferingOverlay?.loaderBackgroundPosition,"loader--background-repeat":t.bufferingOverlay?.loaderBackgroundRepeat,"loader--background-size":t.bufferingOverlay?.loaderBackgroundSize,"loader--border":t.bufferingOverlay?.loaderBorder,"loader--border-radius":t.bufferingOverlay?.loaderBorderRadius,"loader--border-top-color":t.bufferingOverlay?.loaderBorderTopColor,"loader--background-color":t.bufferingOverlay?.loaderBackgroundColor,"loader--transform-origin":t.bufferingOverlay?.loaderTransformOrigin,"loader--display":t.bufferingOverlay?.loaderDisplay,"loader--height":t.bufferingOverlay?.loaderHeight,"loader--width":t.bufferingOverlay?.loaderWidth,"loader--left":t.bufferingOverlay?.loaderLeft,"loader--position":t.bufferingOverlay?.loaderPosition,"loader--top":t.bufferingOverlay?.loaderTop,responsive:{medium:{"buffering-overlay--container-inset-inline":t.bufferingOverlay?.responsive?.medium?.containerInsetInline},medLarge:{"buffering-overlay--container-inset-inline":t.bufferingOverlay?.responsive?.medLarge?.containerInsetInline},large:{"buffering-overlay--container-inset-inline":t.bufferingOverlay?.responsive?.large?.containerInsetInline},gigantic:{"buffering-overlay--container-inset-inline":t.bufferingOverlay?.responsive?.gigantic?.containerInsetInline}}})}),SF=Jb(VA,{tokens:t=>({"play-button-svg-before--mask-image":`url("${t.icons.masks.play}")`,"play-button-svg-before--width":t.icons.size.default,"play-button-svg-before--height":t.icons.size.default,"play-button-svg--background-color":"transparent","container--padding":"6px 6px 4px 6px","container--border-bottom-right-radius":"0","container--border-bottom-left-radius":"0","close-button--mask-image":`url("${t.icons.masks.dismissEndcard}")`,"close-button--background-color":t.colors.white,"close-button--height":"20px","close-button--width":"20px","end-card-overlay__container--inset-block-start":"auto","end-card-overlay__container--inset-inline-end":"auto","end-card-overlay__container--inset-block-end":"14px","end-card-overlay__container--inset-inline-start":"50%","container--transition":"margin-bottom 0.4s cubic-bezier(0.42, 0, 1, 1)","container__controls-open--transition":"margin-bottom 0.1s cubic-bezier(0.42, 0, 1, 1)","content-tile--width":"140px","container--height":"90px",responsive:{tiny:{"container--bottom":"10px","container__controls-open--margin-bottom":"20px"},extraSmall:{"container--width":"370px","container--height":"90px"},small:{"end-card-overlay__container--inset-block-start":"auto","end-card-overlay__container--inset-inline-end":"24px","end-card-overlay__container--inset-block-end":"24px","end-card-overlay__container--inset-inline-start":"auto","container--transform":"unset"},large:{"container--width":"370px","container--height":"90px","container__controls-open--margin-bottom":"71px"},gigantic:{"container__controls-open--margin-bottom":"83px"}}})}),TF=Jb(UI,{tokens:t=>({"container__notification--margin":t.toastNotification?.notificationMargin,"container__notification--margin-bottom":t.toastNotification?.notificationMarginBottom,"container__notification_with-session--margin-bottom":t.toastNotification?.notificationWithSessionMarginBottom,"container__notification--background-color":t.toastNotification?.notificationBackgroundColor,"container__notification--padding":t.toastNotification?.notificationPadding,"container_with-session--margin":t.toastNotification?.withSessionMargin,"container__notification--border-radius":t.toastNotification?.notificationBorderRadius,"container--font-weight":t.toastNotification?.containerFontWeight,"container_with-session--justify-content":t.toastNotification?.withSessionJustifyContent,"container__notification--letter-spacing":t.toastNotification?.notificationLetterSpacing,"container--font-size":t.toastNotification?.containerFontSize,"container_with-session--width":t.toastNotification?.withSessionWidth,"container--line-height":t.toastNotification?.containerLineHeight,"container--color":t.toastNotification?.containerTextColor,"animation-name":t.toastNotification?.animationName,"animation-duration":t.toastNotification?.animationDuration,"animation-timing":t.toastNotification?.animationTiming,"animation-delay":t.toastNotification?.animationDelay,"animation-fill-mode":t.toastNotification?.animationFillMode,"animation-name--hidden":t.toastNotification?.animationNameHidden,"animation-duration--hidden":t.toastNotification?.animationDurationHidden,"animation-timing--hidden":t.toastNotification?.animationTimingHidden,"animation-fill-mode--hidden":t.toastNotification?.animationFillModeHidden,responsive:{medium:{"container__notification--margin-bottom":t.toastNotification?.responsive?.medium?.notificationMarginBottom,"container__notification_with-session--margin-bottom":t.toastNotification?.responsive?.medium?.notificationWithSessionMarginBottom},large:{"container__notification--margin-bottom":t.toastNotification?.responsive?.large?.notificationMarginBottom,"container__notification_with-session--margin-bottom":t.toastNotification?.responsive?.large?.notificationWithSessionMarginBottom},gigantic:{"container__notification--margin-bottom":t.toastNotification?.responsive?.gigantic?.notificationMarginBottom,"container__notification_with-session--margin-bottom":t.toastNotification?.responsive?.gigantic?.notificationWithSessionMarginBottom}}}),Controller:class extends LI{shouldProcessScrubbingToasts(){return!1}shouldSuppressProgressBarPreviewWhileToastOpen(){return!0}handleDisabledControls(t){const{disabledControlClick:e,disabledControlType:n,isPretune:i,isInterstitialPlaying:r,isLive:o}=t;if(!e)return;if("timeline"!==n)return void super.handleDisabledControls(t);const{expectedSeekResult:a,placementSubType:s}=this.streamController.value;i?this.applyToast(this.getDisabledToast(gc)):r?this.applyToast({...this.toastMap[hc],timeoutDismissals:()=>[],duration:2800}):o?this.applyToast({...this.getDisabledToast(fc),duration:2800}):"DEFERRED"!==a?s!==ec?this.host.localState?.updateDisabledControl(!1,null):this.applyToast({...this.toastMap[mc],timeoutDismissals:()=>[],duration:2800}):this.applyToast({...this.toastMap[hc],timeoutDismissals:()=>[],duration:2800})}applyToast(t){this.toastData=t??null,this.timeoutDuration=this.toastData?.duration??null,this.host.localState?.updateDisabledControl(!1,null),this.host.requestUpdate()}}}),CF=Jb(kP,{tokens:t=>({"font-size":"var(--font-size)","font-family":"var(--font-family)","text-color":t.colors.informationTextColor,responsive:{}})}),wF=Jb(nD,{tokens:t=>({"font-size":"var(--font-size)","font-family":"var(--font-family)","text-color":t.colors.informationTextColor,responsive:{}})}),AF=Jb(sD,{tokens:()=>
4569({responsive:{extraExtraSmall:{"description--max-height":"2lh"},extraSmall:{"description--max-height":"2lh"},extraSmallPlus:{"description--max-height":"2lh"},small:{"description--max-height":"auto"}}})}),IF=Jb(AD,{tokens:t=>({"font-family":t.fontFamily})}),OF=p.i`
4570	.guidelines-rating_icon {
4571		height: 48px;
4572		width: fit-content;
4573		object-fit: contain;
4574		display: block;
4575	}
4576
4577	.ratings-overlay_wrapper.with-copy {
4578		.ratings-overlay_copy-container {
4579			color: white;
4580			width: fit-content;
4581			background-color: rgba(0, 0, 0, 0.56);
4582			padding: 10px;
4583			border-radius: 6px;
4584		}
4585	}
4586
4587	.ratings-overlay_wrapper.mini .guidelines-rating_icon {
4588		height: 24px;
4589	}
4590`,RF=Jb(((u=class extends Sx{renderTemplate(t,e){const{ratings:n}=this.streamController.value;return function(t,e={},n=!1){const{ratingAlt:i,ratingIcon:r}=t||{},o={"ratings-content-wrapper":!0,mini:n};return p.x`
4591		<div class="ratings-overlay_container">
4592			<div class=${My(e)}>
4593				<div class=${My(o)}>
4594					${Q_(r,(()=>p.x`
4595							<img
4596								class="guidelines-rating_icon"
4597								alt=${i}
4598								src=${r}
4599							/>
4600						`),(()=>p.x`
4601							<div class="ratings-overlay_copy-container">${i}</div>
4602						`))}
4603				</div>
4604			</div>
4605		</div>
4606	`}(n,t,e)}}).styles=[...Sx.styles,OF],u),{tokens:()=>({"wrapper-before--background-image":"none","host-before--background-image":"none","content-wrapper--border-left-width":"0","content-wrapper--padding-left":"0","content-wrapper--margin":"16px 20px",responsive:{medium:{"content-wrapper--margin":"16px 20px"}}})});var xF=Object.defineProperty;class LF extends xT{firstUpdated(t){super.firstUpdated(t),this.controller.refreshKeyMap()}}((t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);o&&xF(e,n,o)})([(0,p.n)({type:String})],LF.prototype,"variant");const kF=Jb(LF,{Controller:class extends wT{constructor(t,e){super(t,e),this.quickRewindController=new OV(t,{streamController:e?.quickRewindStreamController}),this.quickFastForwardController=new kV(t,{streamController:e?.quickFastForwardStreamController}),this.fullscreenController=new JS(t,{streamController:e?.fullscreenStreamController})}filterKeyCombinations([t]){const{variant:e}=this.host;return"verts"!==e||!["f","Escape","ArrowUp","ArrowDown"].includes(t.key)}}}),PF=p.i`
4607	:host {
4608		--control--hover--transform: scale(1.0455);
4609		--control--pressed--transform: unset;
4610	}
4611
4612	[hidden] {
4613		display: none;
4614	}
4615
4616	.controls-container.progress-bar-replaced {
4617		background-image: none;
4618	}
4619
4620	.buffering-timeline {
4621		position: relative;
4622		width: 100%;
4623		height: var(--buffering-timeline--height, 4px);
4624		flex-shrink: 0;
4625	}
4626
4627	.buffering-timeline__track {
4628		width: 100%;
4629		height: 100%;
4630		background-color: var(--buffering-timeline--track-background-color);
4631		border-radius: var(--buffering-timeline--track-border-radius);
4632	}
4633
4634	.buffering-timeline__loader {
4635		position: absolute;
4636		inset-block-start: 0;
4637		inset-inline-start: 0;
4638		width: 100%;
4639		height: 100%;
4640		background-color: var(--buffering-timeline--loader-background-color);
4641		border-radius: var(--buffering-timeline--loader-border-radius);
4642		transform-origin: var(--buffering-timeline--loader-transform-origin);
4643		-webkit-animation: var(--buffering-timeline--loader-animation);
4644		animation: var(--buffering-timeline--loader-animation);
4645	}
4646
4647	.controls-container {
4648		opacity: 0;
4649		transition-timing-function: cubic-bezier(0.42, 0, 1, 1);
4650		transition-property: opacity, translate;
4651
4652		&.visible {
4653			transition-duration: 0.2s;
4654			opacity: 1;
4655			translate: 0 0;
4656		}
4657
4658		&.hidden {
4659			transition-duration: 0.4s;
4660
4661			.controls-footer {
4662				transition: translate 0.4s linear;
4663				translate: 0 40px;
4664			}
4665		}
4666
4667		keyboard-actions {
4668			position: absolute;
4669		}
4670
4671		display: flex;
4672		align-items: flex-end;
4673		justify-content: space-between;
4674		flex-direction: column;
4675		overflow: hidden;
4676		height: 100%;
4677		width: 100%;
4678		position: relative;
4679		top: 0;
4680		left: 0;
4681		bottom: 0;
4682		right: 0;
4683		pointer-events: auto;
4684		box-sizing: border-box;
4685		padding: var(--controls-container--padding);
4686		background-image: linear-gradient(
4687			180deg,
4688			rgba(0, 0, 0, 0) 0%,
4689			rgba(0, 0, 0, 0.3) 40%,
4690			rgba(0, 0, 0, 0.75) 100%
4691		);
4692		background-size: 100% 115px;
4693		background-position: bottom;
4694		background-repeat: no-repeat;
4695	}
4696
4697	.controls-center {
4698		position: absolute;
4699		top: 50%;
4700		left: 50%;
4701		transform: translate(-50%, -50%);
4702		display: flex;
4703		align-items: center;
4704		justify-content: center;
4705		z-index: 2;
4706		pointer-events: none;
4707	}
4708
4709	.controls-center play-pause-indicator {
4710		pointer-events: auto;
4711	}
4712
4713	.controls-footer {
4714		display: flex;
4715		flex-direction: column;
4716		width: 100%;
4717		height: auto;
4718		gap: var(--controls-footer--gap);
4719		margin-top: auto;
4720		justify-content: space-between;
4721		z-index: 2;
4722		margin-bottom: 0;
4723	}
4724
4725	.vertical-button-controls {
4726		--button-container__round--size: 48px;
4727		--button-container__round--background-color: rgba(0, 0, 0, 0.5);
4728		--button-container__round__hover--background-color: rgba(0, 0, 0, 0.8);
4729		display: flex;
4730		flex-direction: column;
4731		gap: 12px;
4732
4733		.volume-control-container {
4734			display: flex;
4735			align-items: flex-end;
4736			justify-content: center;
4737			width: 48px;
4738			height: 48px;
4739			overflow: hidden;
4740			border-radius: 999px;
4741			background-color: rgba(0, 0, 0, 0.5);
4742			transition:
4743				height 0.2s ease,
4744				background-color 0.2s ease;
4745		}
4746
4747		.volume-control-container:hover,
4748		.volume-control-container:has(toggle-mute-button[volume-expanded]) {
4749			height: 115px;
4750			overflow: visible;
4751			--volume-bar-container-display: inherit;
4752			/* On mobile/tablet viewport, volume control is mute/unmute only; no volumebar on hover. */
4753			@media (max-width: 1024px) {
4754				height: 48px;
4755				--volume-bar-container-display: none;
4756			}
4757		}
4758
4759		.volume-control-container toggle-mute-button {
4760			--button-container__round--background-color: transparent;
4761			--button-container__round__hover--background-color: transparent;
4762		}
4763	}
4764
4765	.upper-footer-controls {
4766		display: flex;
4767		justify-content: space-between;
4768		align-items: flex-end;
4769		gap: 16px;
4770	}
4771
4772	.transport-controls {
4773		color: white;
4774		display: flex;
4775		box-sizing: border-box;
4776		position: relative;
4777		bottom: auto;
4778		left: auto;
4779		right: auto;
4780		top: auto;
4781		align-items: center;
4782		width: 100%;
4783		margin: 0;
4784		gap: 9px;
4785		margin-top: 16px;
4786	}
4787
4788	.controls-container.hide-controls.settings-open {
4789		.controls-center,
4790		.transport-controls,
4791		share-modal-control,
4792		toggle-captions,
4793		debug-modal-control {
4794			display: none;
4795		}
4796	}
4797
4798	.controls-container.hide-controls.share-open {
4799		.controls-center,
4800		.transport-controls {
4801			display: flex;
4802		}
4803
4804		settings-modal-control,
4805		toggle-captions,
4806		debug-modal-control {
4807			display: revert;
4808		}
4809	}
4810
4811	.controls-container.metadata-expanded {
4812		background: rgba(0, 0, 0, 0.75);
4813	}
4814
4815	.controls-container.scrubbing {
4816		.controls-center,
4817		.upper-footer-controls {
4818			display: none;
4819		}
4820	}
4821`;var DF=Object.defineProperty,NF=(t,e,n,i)=>{for(var r,o=void 0,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(e,n,o)||o);return o&&DF(e,n,o),o};const MF=t=>{const e=Z_(t);class n extends e{constructor(){super(...arguments),this.timeoutDurationAfterLeave=1e3,this.timeoutDuration=3e3,this.keyboardIdleMs=3e3,this.isMouseActive=!1,this.mouseIdleTimerId=null,this.handleMouseMove=t=>{const e=this.container;if(e&&!t.composedPath().includes(e))return;this.isMouseActive=!0;const n=this;n.lastInput="pointer",n.isKeyboardFocused=!1,n.stopKeyboardIdleTimer(),this.restartMouseIdleTimer(),this.updateVisibility(!0),this.isTimeoutPaused||this.areMenusOpen()||this.startTimeout?.(),this.dispatchMouseMoveCommand(t)},this.handleMouseLeave=t=>{const e=this.container;this.isMouseActive=!1,this.clearMouseIdleTimer(),e&&!e.contains(t.relatedTarget)&&(this.isTimeoutPaused||this.areMenusOpen()||this.startTimeout?.(this.timeoutDurationAfterLeave))}}
4821areMenusOpen(){const t=this.localState?.modalState?.modals?.settingsModal?.isOpen??!1,e=this.localState?.modalState?.modals?.shareModal?.isOpen??!1;return t||e}getTimeoutDismissals(){return[...super.getTimeoutDismissals?.()||[],this.areMenusOpen()]}disconnectedCallback(){super.disconnectedCallback(),this.clearMouseIdleTimer()}restartMouseIdleTimer(){this.clearMouseIdleTimer(),this.mouseIdleTimerId=window.setTimeout((()=>{this.isMouseActive=!1,!this.isKeyboardFocused&&!this.isTimeoutPaused&&!this.areMenusOpen()&&this.startTimeout?.()}),this.timeoutDuration)}clearMouseIdleTimer(){null!==this.mouseIdleTimerId&&(clearTimeout(this.mouseIdleTimerId),this.mouseIdleTimerId=null)}}return NF([(0,p.n)({type:Number})],n.prototype,"timeoutDurationAfterLeave"),NF([(0,p.n)({type:Number})],n.prototype,"timeoutDuration"),NF([(0,p.n)({type:Number})],n.prototype,"keyboardIdleMs"),NF([v()],n.prototype,"isMouseActive"),n};var UF,BF,VF,FF,zF,$F,HF,GF,YF,jF,KF,WF,qF,XF,ZF,QF,JF=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,ez=t=>{throw TypeError(t)},nz=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?tz(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&JF(e,n,o),o},iz=(t,e,n)=>e.has(t)||ez("Cannot "+n),rz=(t,e,n)=>(iz(t,e,"read from private field"),n?n.call(t):e.get(t)),oz=(t,e,n)=>e.has(t)?ez("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),az=(t,e,n,i)=>(iz(t,e,"write to private field"),e.set(t,n),n);const sz="EXPANDABLE-METADATA",lz={buffering:!1,seeking:!1,notready:!0,isActivated:void 0},cz=t=>({buffering:!!t?.playback?.buffering,seeking:!!t?.playback?.seeking,notready:!!t?.playback?.notready,isActivated:t?.playbackSession?.isActivated}),dz=[sz,"TOGGLE-MUTE-BUTTON","SHARE-MODAL-CONTROL","TOGGLE-CAPTIONS","PROGRESS-BAR","AFFILIATE-LOGO","PLAY-PAUSE-INDICATOR"];let uz=class extends(U_(MF(pt))){constructor(){super(...arguments),oz(this,UF),this.forceVisible=!0,this.vertsPlaybackController=new G_(this,cz,lz),this.progressBarDragging=!1,oz(this,zF,!1),oz(this,$F,!1),oz(this,HF,!1),oz(this,GF,!1),oz(this,YF,!1),oz(this,jF),oz(this,KF,(t=>{const e=t.composedPath();az(this,zF,e.some((t=>t instanceof HTMLElement&&t.tagName===sz)))})),oz(this,WF,(t=>{rz(this,UF,BF)&&(rz(this,zF)?az(this,zF,!1):t.composedPath().some((t=>t instanceof HTMLElement&&dz.includes(t.tagName)))||(t.stopPropagation(),t.preventDefault(),this.expandableMetadataEl?.collapse?.()))})),oz(this,qF,(t=>{const{height:e,container:n}=t.detail||{};n===this.container&&Number.isFinite(e)&&this.style.setProperty("--player-height",`${e}px`)})),oz(this,XF,(t=>{this.progressBarDragging=t.detail.dragging})),oz(this,ZF,(t=>{rz(this,HF)&&X_(t)&&"Escape"!==t.key&&az(this,HF,!1)}))}connectedCallback(){super.connectedCallback(),this.localState?.updateUseVerticalShareModal(!0),this.localState?.updateAlwaysVisibleControls(!0),this.updateVisibility(!0),az(this,jF,this.localState?.subscribe(this,(t=>t.overlayState?.expandableMetadata?.isExpanded??!1))),window.addEventListener(Ct,rz(this,qF)),this.container?.addEventListener("keydown",rz(this,ZF))}disconnectedCallback(){var t;this.localState?.updateUseVerticalShareModal(!1),this.localState?.updateAlwaysVisibleControls(!1),this.container?.removeEventListener("keydown",rz(this,ZF)),super.disconnectedCallback(),null==(t=rz(this,jF))||t.call(this),az(this,jF,void 0),this.containerElement?.removeEventListener("click",rz(this,WF),!0),this.containerElement?.removeEventListener("mousedown",rz(this,KF),!0),window.removeEventListener(Ct,rz(this,qF))}firstUpdated(){this.containerElement&&(this.containerElement.addEventListener("click",rz(this,WF),!0),this.containerElement.addEventListener("mousedown",rz(this,KF),!0))}updated(t){const e=rz(this,GF),n=rz(this,YF);super.updated(t);const i=this.localState?.modalState?.modals?.shareModal?.isOpen??!1,r=this.localState?.modalState?.modals?.settingsModal?.isOpen??!1,o=e&&!i||n&&!r;var a,s;az(this,GF,i),az(this,YF,r),(this,a=UF,s=QF,iz(this,a,"access private method"),s).call(this,o)}getTimeoutDismissals(){return[!0]}getResetObservables(){const{isActivated:t}=this.vertsPlaybackController.value;return[this.streamController.value.playbackId,!1!==t&&null]}onReset(){this.expandableMetadataEl?.collapse?.(),this.localState?.updateUseVerticalShareModal(!0),this.localState?.updateAlwaysVisibleControls(!0),this.localState?.updateTakeoverState(!1,""),this.localState?.updateModalState({modalName:Df.SHARE_MODAL,isOpen:!1,currentViewName:"main"}),this.localState?.updateModalState({modalName:Df.SHARE,isOpen:!1,currentViewName:"main"}),this.localState?.updateModalState({modalName:Df.SETTINGS_MODAL,isOpen:!1,currentViewName:"main"}),az(this,$F,!1),az(this,HF,!1),az(this,GF,!1),az(this,YF,!1)}renderInternal(){const t={visible:this.visible,hidden:!this.visible,"controls-container":!0,"settings-open":this.settingsOpen,"share-open":this.shareMenuOpen,"hide-control
4821s":this.pauseAndHideControls,"metadata-expanded":rz(this,UF,BF),scrubbing:this.progressBarDragging,"progress-bar-replaced":rz(this,UF,VF)};return p.x`
4822			<div class=${My(t)}>
4823				<keyboard-actions variant="verts"></keyboard-actions>
4824				<div class="controls-center">
4825					<play-pause-indicator></play-pause-indicator>
4826				</div>
4827				<div class="controls-footer">
4828					<div class="upper-footer-controls">
4829						<expandable-metadata></expandable-metadata>
4830						<div class="vertical-button-controls">
4831							<div class="volume-control-container">
4832								<toggle-mute-button
4833									direction="from-bottom"
4834									includeVolumeBar
4835									volumeAccessibilityGroup
4836									openVolumeBarOnKeyboardFocus
4837									extraClasses="round"
4838									.shouldRenderTooltip=${!1}
4839								></toggle-mute-button>
4840							</div>
4841							<share-modal-control
4842								extraClasses="round"
4843								.shouldRenderTooltip=${!1}
4844							></share-modal-control>
4845							<toggle-captions
4846								extraClasses="round"
4847								.shouldRenderTooltip=${!1}
4848								showCaptionsDisabledState
4849							></toggle-captions>
4850						</div>
4851					</div>
4852					<div class="transport-controls">
4853						${rz(this,UF,FF)?p.x`
4854										<progress-bar
4855											?hideCurrentTimeBelowThumb=${!0}
4856											?hideThumb=${!0}
4857											?hideHoverMarker=${!0}
4858											?hideProposedTimeMarker=${!0}
4859											?showTimeOnlyWhenDragging=${!0}
4860											?hidePreviewTimeBubble=${!0}
4861											?centerTimePreview=${!0}
4862											timeDisplayFormat="current/total"
4863											@progress-bar-dragging=${rz(this,XF)}
4864										></progress-bar>
4865									`:rz(this,UF,VF)?p.x`
4866											<div class="buffering-timeline">
4867												<div class="buffering-timeline__track"></div>
4868												<div class="buffering-timeline__loader"></div>
4869											</div>
4870										`:p.E}
4871					</div>
4872				</div>
4873			</div>
4874		`}};UF=new WeakSet,BF=function(){return this.localState?.overlayState?.expandableMetadata?.isExpanded??!1},VF=function(){const{buffering:t,seeking:e,notready:n}=this.vertsPlaybackController.value;return t||e||n},FF=function(){return!rz(this,UF,VF)},zF=new WeakMap,$F=new WeakMap,HF=new WeakMap,GF=new WeakMap,YF=new WeakMap,jF=new WeakMap,KF=new WeakMap,WF=new WeakMap,qF=new WeakMap,XF=new WeakMap,ZF=new WeakMap,QF=function(t){t?az(this,HF,!0):rz(this,HF)||rz(this,$F)||"keyboard"===this.lastInput&&this.playPauseIndicatorEl&&queueMicrotask((()=>{rz(this,HF)||requestAnimationFrame((()=>{rz(this,HF)||!rz(this,$F)&&this.playPauseIndicatorEl&&(this.playPauseIndicatorEl.focus(),az(this,$F,!0))}))}))},uz.styles=[qb,PF],uz.tokens={"playback-controls-wide--display":"none","playback-controls-narrow--display":"flex","aux-controls-small--display":"none","experience-controls--display":"none","experience-controls-narrow--display":"none","experience-controls-extra-narrow--display":"flex","experience-controls-narrow--flex":"0","controls-container--padding":"0 14px 16px 14px","controls-container__after--height":"100%","controls-container__after--background":"rgba(0, 0, 0, 0.80)","toggle-play-pause-size":"44px","quick-controls-size":"32px","restart-playback-size":"44px","controls-footer--gap":"0",responsive:{extraExtraSmall:{"experience-controls-extra-narrow--display":"none","experience-controls-narrow--display":"none","experience-controls--display":"flex"},extraSmallPlus:{"experience-controls-extra-narrow--display":"none","experience-controls-narrow--display":"flex","experience-controls--display":"none","playback-controls-wide--display":"flex","playback-controls-narrow--display":"none","controls-container__after--height":"250px","controls-container__after--background":"linear-gradient(\n\t\t\t\t180deg,\n\t\t\t\trgba(0, 0, 0, 0) 0%,\n\t\t\t\trgba(0, 0, 0, 0.1) 12.84%,\n\t\t\t\trgba(0, 0, 0, 0.2) 23.8%,\n\t\t\t\trgba(0, 0, 0, 0.33) 33.48%,\n\t\t\t\trgba(0, 0, 0, 0.45) 42.52%,\n\t\t\t\trgba(0, 0, 0, 0.58) 51.55%,\n\t\t\t\trgba(0, 0, 0, 0.7) 61.19%,\n\t\t\t\trgba(0, 0, 0, 0.8) 72.05%,\n\t\t\t\trgba(0, 0, 0, 0.9) 84.78%,\n\t\t\t\trgba(0, 0, 0, 0.9) 100%\n\t\t\t)"},small:{"experience-controls-extra-narrow--display":"none","experience-control
4874s-narrow--display":"none","experience-controls--display":"flex","toggle-play-pause-size":"56px","quick-controls-size":"44px","restart-playback-size":"56px"},medium:{"restart-playback-size":"36px","controls-footer--gap":"6px","controls-container--padding":"0 16px 16px 16px"},medLarge:{"aux-controls-small--display":"flex","controls-container--padding":"0 16px 16px 16px"},large:{"controls-container--padding":"0 16px 16px 16px"},gigantic:{"controls-container--padding":"0 16px 16px 16px","controls-footer--gap":"10px"}}},uz.brandConfig={tokens:t=>({"transport-controls--gap":t.progressBar?.transportControlsGap,"buffering-timeline--height":t.bufferingOverlay?.trackHeight,"buffering-timeline--track-background-color":t.bufferingOverlay?.trackBackgroundColor,"buffering-timeline--track-border-radius":t.bufferingOverlay?.trackBorderRadius,"buffering-timeline--loader-background-color":t.bufferingOverlay?.loaderBackgroundColor,"buffering-timeline--loader-border-radius":t.bufferingOverlay?.loaderBorderRadius,"buffering-timeline--loader-animation":t.bufferingOverlay?.loaderAnimation,"buffering-timeline--loader-transform-origin":t.bufferingOverlay?.loaderTransformOrigin,responsive:{}})},nz([v()],uz.prototype,"progressBarDragging",2),nz([b("expandable-metadata")],uz.prototype,"expandableMetadataEl",2),nz([b("play-pause-indicator")],uz.prototype,"playPauseIndicatorEl",2),nz([b(".controls-container")],uz.prototype,"containerElement",2),uz=nz([a_,d_,p_,L_({target:t=>{const e=t.shadowRoot.querySelector(".controls-container"),n=e?.classList.contains("metadata-expanded");return n&&e?[e]:t.shadowRoot.querySelectorAll("\n            progress-bar,\n            debug-modal-control,\n            share-modal-control,\n            toggle-captions,\n            settings-modal-control,\n            toggle-fullscreen,\n            live-button,\n            toggle-mute-button,\n            quick-rewind,\n            quick-fast-forward,\n            toggle-play-pause,\n            restart-playback,\n            play-next,\n            expandable-metadata,\n            play-pause-indicator\n    ")},watch:t=>t.shadowRoot.querySelector(".controls-container"),scope:t=>t?.container})],uz);const pz=Wb("\n\ttoggle-play-pause {\n\t\tdisplay: inline-block;\n\t\t--controls__host--width: 40px;\n\t\t--controls__host--height: 40px;\n\t}\n\n\t.ambient-controls-overlay {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t\tposition: relative;\n\t}\n\n\t.controls-container {\n\t\t--toggle-play-pause-size: 24px;\n\t\t--button-container__round--size: 40px;\n\t\t--button-container__round--background-color: rgba(0, 0, 0, 0.6);\n\t\t--button-container__round__hover--background-color: rgba(0, 0, 0, 0.8);\n\n\t\tposition: absolute;\n\t\tbottom: 16px;\n\t\tinset-inline-start: 16px;\n\t\tflex-direction: row;\n\t\tgap: 10px;\n\t\tz-index: var(--controls-container--z-index);\n\t}\n");Object.getOwnPropertyDescriptor;let hz=class extends pt{render(){return p.x`
4875			<div class="ambient-controls-overlay">
4876				<div class="controls-container">
4877					<toggle-play-pause
4878						.shouldRenderTooltip=${!1}
4879						extraClasses="round"
4880					></toggle-play-pause>
4881					${this.debugControlVisible?p.x`<debug-modal-control></debug-modal-control>`:""}
4882				</div>
4883			</div>
4884		`}};hz.styles=[pz],hz.tokens={"controls-container--z-index":"3"},hz=((t,e,n,i)=>{for(var r,o=e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=r(o)||o);return o}
4884)([p_,L_({target:t=>t.shadowRoot.querySelectorAll("\n\t\t\ttoggle-play-pause\n\t\t"),scope:t=>t?.container})],hz);const mz=p.i`
4885	:host {
4886		--control--hover--transform: scale(1.0455);
4887		--control--pressed--transform: unset;
4888	}
4889
4890	[hidden] {
4891		display: none;
4892	}
4893
4894	.controls-container {
4895		opacity: 0;
4896		transition-timing-function: cubic-bezier(0.42, 0, 1, 1);
4897		transition-property: opacity, translate;
4898
4899		&.visible {
4900			transition-duration: 0.2s;
4901			opacity: 1;
4902			translate: 0 0;
4903		}
4904
4905		&.hidden {
4906			transition-duration: 0.4s;
4907
4908			.controls-footer {
4909				transition: translate 0.4s linear;
4910				translate: 0 40px;
4911			}
4912		}
4913
4914		keyboard-actions {
4915			position: absolute;
4916		}
4917
4918		display: flex;
4919		align-items: flex-end;
4920		justify-content: space-between;
4921		flex-direction: column;
4922		overflow: hidden;
4923		height: 100%;
4924		width: 100%;
4925		position: relative;
4926		top: 0;
4927		left: 0;
4928		bottom: 0;
4929		right: 0;
4930		pointer-events: auto;
4931		box-sizing: border-box;
4932		padding: var(--controls-container--padding);
4933
4934		&:after {
4935			content: "";
4936			position: absolute;
4937			bottom: 0;
4938			left: 0;
4939			width: 100%;
4940			height: var(--controls-container__after--height);
4941			background: var(--controls-container__after--background);
4942			z-index: 1;
4943			pointer-events: none;
4944		}
4945
4946		.program-decoration {
4947			display: flex;
4948			position: absolute;
4949			inset: 0;
4950			align-items: end;
4951			background: rgba(0, 0, 0, 0.75);
4952			padding-block: 0 104px;
4953			padding-inline: 16px 0;
4954
4955			program-decoration {
4956				max-width: 525px;
4957			}
4958		}
4959	}
4960
4961	.controls-header {
4962		display: flex;
4963		flex-direction: column;
4964		padding: 16px 0px 24px;
4965		width: 100%;
4966		height: auto;
4967		min-height: auto;
4968		justify-content: flex-start;
4969	}
4970
4971	.controls-sub-header {
4972		display: flex;
4973		justify-content: space-between;
4974		align-items: center;
4975		padding: 0;
4976	}
4977
4978	.header-info {
4979		display: flex;
4980		gap: 10px;
4981	}
4982
4983	.aux-controls {
4984		display: flex;
4985		gap: 10px;
4986	}
4987
4988	.controls-center {
4989		display: flex;
4990		flex-direction: row;
4991		padding: 0;
4992		width: 100%;
4993		height: auto;
4994		min-height: auto;
4995		justify-content: center;
4996		z-index: 2;
4997
4998		.playback-controls-narrow quick-rewind,
4999		.playback-controls-narrow quick-fast-forward {
5000			padding: 8px;
5001		}
5002
5003		.playback-controls-narrow toggle-play-pause {
5004			padding: 4px;
5005		}
5006
5007		.playback-controls-narrow {
5008			display: var(--playback-controls-narrow--display);
5009			justify-content: center;
5010			align-items: center;
5011			gap: 12px;
5012		}
5013	}
5014
5015	.controls-footer {
5016		display: flex;
5017		flex-direction: column;
5018		width: 100%;
5019		height: auto;
5020		gap: var(--controls-footer--gap);
5021		margin-top: 0;
5022		justify-content: space-between;
5023		z-index: 2;
5024		margin-bottom: 0;
5025	}
5026
5027	.controls-sub-footer {
5028		display: flex;
5029		justify-content: space-between;
5030		align-items: center;
5031		padding: 0;
5032		z-index: 3;
5033	}
5034
5035	.volume-controls {
5036		display: flex;
5037		gap: 10px;
5038		position: relative;
5039		height: auto;
5040		bottom: auto;
5041		left: auto;
5042		right: auto;
5043		top: auto;
5044		transform: none;
5045		align-items: center;
5046		justify-content: flex-start;
5047		margin-block: 0;
5048		margin-inline: 0 auto;
5049		padding: 0;
5050		min-width: 130px;
5051	}
5052
5053	.experience-controls {
5054		display: var(--experience-controls--display);
5055		justify-content: flex-end;
5056		margin-inline-start: auto;
5057	}
5058
5059	.volume-controls > *,
5060	.experience-controls-narrow > *,
5061	.experience-controls > * {
5062		padding: 8px;
5063	}
5064
5065	.experience-controls,
5066	.experience-controls-narrow,
5067	.experience-controls-left,
5068	.volume-controls {
5069		gap: 4px;
5070		flex: 1;
5071	}
5072
5073	.experience-controls-narrow {
5074		display: var(--experience-controls-narrow--display);
5075		gap: 12px;
5076		justify-content: flex-end;
5077	}
5078
5079	.playback-controls-narrow .live {
5080		--toggle-play-pause-size: 44px;
5081	}
5082
5083	.experience-controls-extra-narrow {
5084		display: var(--experience-controls-extra-narrow--display);
5085		gap: 12px;
5086		justify-content: flex-end;
5087	}
5088
5089	.playback-controls-wide quick-rewind,
5090	.playback-controls-wide quick-fast-forward {
5091		padding: 8px;
5092	}
5093
5094	.playback-controls-wide toggle-play-pause {
5095		padding: 4px;
5096	}
5097
5098	.playback-controls-wide {
5099		--toggle-play-pause-size: 36px;
5100		--quick-controls-size: 28px;
5101
5102		display: var(--playback-controls-wide--display);
5103		justify-content: center;
5104		align-items: center;
5105		gap: 12px;
5106	}
5107
5108	.playback-controls {
5109		direction: ltr;
5110	}
5111
5112	.transport-controls {
5113		color: white;
5114		display: flex;
5115		padding: 0 8px;
5116		box-sizing: border-box;
5117		position: relative;
5118		bottom: auto;
5119		left: auto;
5120		right: auto;
5121		top: auto;
5122		align-items: center;
5123		width: 100%;
5124		margin: 0;
5125		gap: 9px;
5126	}
5127
5128	current-time-indicator,
5129	total-duration {
5130		font-variant-numeric: tabular-nums;
5131		text-align: center;
5132		flex: 0 0 4ch;
5133	}
5134
5135	.controls-container.hide-controls.settings-open {
5136		.controls-header,
5137		.controls-center,
5138		.transport-controls,
5139		.volume-controls,
5140		.playback-controls-narrow,
5141		.playback-controls-wide,
5142		share-modal-control,
5143		toggle-captions,
5144		toggle-fullscreen,
5145		debug-modal-control {
5146			display: none;
5147		}
5148
5149		.experience-controls {
5150			display: flex;
5151			justify-content: center;
5152			width: 100%;
5153		}
5154	}
5155
5156	.controls-container.hide-controls.share-open {
5157		.controls-header,
5158		.controls-center,
5159		.transport-controls,
5160		.volume-controls,
5161		.playback-controls-narrow,
5162		.playback-controls-wide,
5163		settings-modal-control,
5164		toggle-captions,
5165		toggle-fullscreen,
5166		debug-modal-control {
5167			display: none;
5168		}
5169
5170		.experience-controls {
5171			display: flex;
5172			justify-content: center;
5173			width: 100%;
5174		}
5175	}
5176`;var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,fz=(t,e,n,i)=>{for(var r,o=i>1?void 0:i?vz(e,n):e,a=t.length-1;a>=0;a--)(r=t[a])&&(o=(i?r(e,n,o):r(o))||o);return i&&o&&gz(e,n,o),o};let bz=class extends(U_(MF(pt))){constructor(){super(...arguments),this.timeoutDuration=Gv()?3500:2500,this.handleKeyNavigation=t=>{t&&(this.updateVisibility(!0),this.isTimeoutPaused||this.startTimeout())}}getTimeoutDismissals(){const t=super.getTimeoutDismissals(),e=this.localState?.overlayState?.overlays?.broadcast?.isOpen??!1;return[...t,this.shareMenuOpen,e,this.settingsOpen,this.streamController.value.scrubbing,this.localState?.volumeBar?.changing,this.localState?.modalState?.isAnyModalOpen]}getResetObservables(){return[this.streamController.value.playbackId]}onReset(){this.localState?.updateTakeoverState(!1,""),this.localState?.updateOverlayState({overlayName:"shareMenu",isOpen:!1}),this.localState?.updateModalState({modalName:Df.SETTINGS_MODAL,isOpen:!1,currentViewName:"main"})}renderPlaybackControls(){const{ended:t,isVOD:e}=this.streamController.value,n=Q_(t&&e,(()=>p.x` <restart-playback></restart-playback> `),(()=>p.x` <toggle-play-pause></toggle-play-pause> `));return p.x`
5177			<quick-rewind></quick-rewind>
5178			${n}
5179			<quick-fast-forward></quick-fast-forward>
5180		`}renderLivePlaybackControls(){return p.x` <toggle-play-pause></toggle-play-pause>`}renderInternal(){const{isLive:t,programDecoration:e}=this.streamController.value,n={visible:this.visible,hidden:!this.visible,"controls-container":!0,"settings-open":this.settingsOpen,"share-open":this.shareMenuOpen,"hide-controls":this.pauseAndHideControls};return p.x`
5181				<div class=${My(n)}>
5182					<div class="controls-header">
5183							<keyboard-actions></keyboard-actions>
5184							${Q_(e,(()=>p.x`
5185									<div class="program-decoration">
5186										<program-decoration></program-decoration>
5187									</div>
5188								`),(()=>p.E))}
5189							<div class="controls-sub-header">
5190								<div class="header-info">
5191									<affiliate-logo></affiliate-logo>
5192								</div>
5193								<div class="aux-controls">
5194								</div>
5195							</div>
5196						</div>
5197						<div class="controls-center">
5198							<div class="playback-controls-narrow playback-controls ${t?"live":""}">
5199								${Q_(!t,(()=>this.renderPlaybackControls()),(()=>this.renderLivePlaybackControls()))}
5200							</div>
5201						</div>
5202						<div class="controls-footer">
5203							<div class="transport-controls">
5204								${Q_(t,(()=>p.x`
5205										<progress-bar
5206											?hideCurrentTimeBelowThumb=${!0}
5207											staticLive
5208										></progress-bar>
5209										<live-button
5210											.renderAsText=${!0}
5211											.shouldRenderTooltip=${!1}
5212										></live-button>
5213									`),(()=>p.x`
5214										<current-time-indicator></current-time-indicator>
5215										<progress-bar
5216											?hideCurrentTimeBelowThumb=${!0}
5217										></progress-bar>
5218										<total-duration></total-duration>
5219									`))}
5220							</div>
5221							<div class="controls-sub-footer">
5222								<div class="volume-controls">
5223									<toggle-mute-button
5224										direction="from-left"
5225										includeVolumeBar
5226									></toggle-mute-button>
5227								</div>
5228								<div class="playback-controls-wide playback-controls">
5229								${Q_(!t,(()=>this.renderPlaybackControls()),(()=>this.renderLivePlaybackControls()))}
5230								</div>
5231								<div class="experience-controls-extra-narrow">
5232									<toggle-captions></toggle-captions>
5233									<toggle-fullscreen></toggle-fullscreen>
5234								</div>
5235								<div class="experience-controls-narrow">
5236									${Q_(t,(()=>p.x`
5237											${this.hideShare?p.E:p.x`<share-modal-control></share-modal-control>`}
5238											<toggle-captions></toggle-captions>
5239										`),(()=>p.E))}
5240									<settings-modal-control></settings-modal-control>
5241									<toggle-fullscreen></toggle-fullscreen>
5242								</div>
5243								<div class="experience-controls">
5244									${this.debugControlVisible?p.x`<debug-modal-control></debug-modal-control>`:""}
5245									${this.hideShare?p.E:p.x`<share-modal-control></share-modal-control>`}
5246									<toggle-captions></toggle-captions>
5247									<settings-modal-control></settings-modal-control>
5248									<toggle-fullscreen></toggle-fullscreen>
5249								</div>
5250							</div>
5251						</div>
5252					</div>
5253				</div>
5254			`}};bz.styles=[mz],bz.tokens={"playback-controls-wide--display":"none","playback-controls-narrow--display":"flex","aux-controls-small--display":"none","experience-controls--display":"none","experience-controls-narrow--display":"none","experience-controls-extra-narrow--display":"flex","experience-controls-narrow--flex":"0","controls-container--padding":"0 8px 8px 8px","controls-container__after--height":"100%","controls-container__after--background":"rgba(0, 0, 0, 0.80)","toggle-play-pause-size":"44px","quick-controls-size":"32px","restart-playback-size":"44px","controls-footer--gap":"0",responsive:{extraExtraSmall:{"experience-controls-extra-narrow--display":"none","experience-controls-narrow--display":"none","experience-controls--display":"flex"},extraSmallPlus:{"experience-controls-extra-narrow--display":"none","experience-controls-narrow--display":"flex","experience-controls--display":"none","playback-controls-wide--display":"flex","playback-controls-narrow--display":"none","controls-container__after--height":"250px","controls-container__after--background":"linear-gradient(\n\t\t\t\t180deg,\n\t\t\t\trgba(0, 0, 0, 0) 0%,\n\t\t\t\trgba(0, 0, 0, 0.1) 12.84%,\n\t\t\t\trgba(0, 0, 0, 0.2) 23.8%,\n\t\t\t\trgba(0, 0, 0, 0.33) 33.48%,\n\t\t\t\trgba(0, 0, 0, 0.45) 42.52%,\n\t\t\t\trgba(0, 0, 0, 0.58) 51.55%,\n\t\t\t\trgba(0, 0, 0, 0.7) 61.19%,\n\t\t\t\trgba(0, 0, 0, 0.8) 72.05%,\n\t\t\t\trgba(0, 0, 0, 0.9) 84.78%,\n\t\t\t\trgba(0, 0, 0, 0.9) 100%\n\t\t\t)"},small:{"experience-controls-extra-narrow--display":"none","experience-controls-narrow--display":"none","experience-controls--display":"flex","toggle-play-pause-size":"56px","quick-controls-size":"44px","controls-container--padding":"0 12px 8px 12px","restart-playback-size":"56px"},medium:{"restart-playback-size":"36px","controls-footer--gap":"6px"},medLarge:{"aux-controls-small--display":"flex"},large:{"controls-container--padding":"0 16px 16px 16px"},gigantic:{"controls-container--padding":"0 24px 24px 24px","controls-footer--gap":"10px"}}},bz.brandConfig={tokens:t=>({"transport-controls--gap":t.progressBar?.transportControlsGap,responsive:{}})},fz([(0,p.n)({type:Number})],bz.prototype,"timeoutDuration",2),bz=fz([a_,d_,p_,L_({target:t=>t.shadowRoot.querySelectorAll("\n\t\t\tprogress-bar,\n\t\t\tdebug-modal-control,\n\t\t\tshare-modal-control,\n\t\t\ttoggle-captions,\n\t\t\tsettings-modal-control,\n\t\t\ttoggle-fullscreen,\n\t\t\tlive-button,\n\t\t\ttoggle-mute-button,\n\t\t\tquick-rewind,\n\t\t\tquick-fast-forward,\n\t\t\ttoggle-play-pause,\n\t\t\trestart-playback,\n\t\t\tplay-next\n\t"),watch:t=>t.shadowRoot.querySelector(".controls-container"),scope:t=>t?.container})],bz);const _z=[{name:"draggable-surface",ctor:p.D},{name:"info-tooltip",ctor:IV},{name:"quick-rewind",ctor:RV},{name:"toggle-play-pause",ctor:xV},{name:"restart-playback",ctor:LV},{name:"quick-fast-forward",ctor:PV},{name:"live-button",ctor:DV},{name:"progress-bar",ctor:NV},{name:"ad-markers",ctor:MV},{name:"progress-bar-preview",ctor:UV},{name:"toggle-captions",ctor:BV},{name:"toggle-fullscreen",ctor:VV},{name:"toggle-mute-button",ctor:FV},{name:"volume-bar",ctor:zV},{name:"pointer-actions",ctor:$V},{name:"modal-menu-header",ctor:YV},{name:"share-modal-control",ctor:qV},{name:"share-modal",ctor:XV},{name:"main-share-view",ctor:class extends rU{constructor(){super(...arguments),this.controller=new mU(this)}render(){const{title:t}=this.controller;return p.x`
5255			<modal-menu-header
5256				title=${t}
5257				titleId=${Bf}
5258				.onCloseClick=${this.onCloseModalClick}
5259				.hasCloseButton=${!0}
5260			></modal-menu-header>
5261			<nav class="share-icons-container" aria-label="${t}">
5262				<share-icons></share-icons>
5263			</nav>
5264		`}}},{name:"share-icons",ctor:tF},{name:"share-url-input",ctor:ZN},{name:"share-at-time",ctor:uM},{name:"social-icon",ctor:vM},{name:"settings-modal-control",ctor:rF},{name:"settings-modal",ctor:sF},{name:"main-settings-view",ctor:lF},{name:"audio-selection-view",ctor:cF},{name:"caption-settings-view",ctor:mF},{name:"subtitles-selection-view",ctor:dF},{name:"debug-modal-control",lazy:()=>n.e(4722).then(n.bind(n,74722)).then((t=>t.DebugModalControl))},{name:"debug-modal",lazy:()=>n.e(4722).then(n.bind(n,74722)).then((t=>t.DebugModal))},{name:"main-debug-view",lazy:()=>n.e(4722).then(n.bind(n,74722)).then((t=>t.MainDebugView))},{name:"debug-json-viewer",lazy:()=>n.e(4722).then(n.bind(n,74722)).then((t=>t.DebugJsonViewer))},{name:"tab-view",ctor:vt},{name:"menu-header",ctor:gF},{name:"menu-nav-item",ctor:vF},{name:"autoplay-toggle",ctor:UD},{name:"caption-preview",ctor:fF},{name:"captions-font-size",ctor:GD},{name:"captions-toggle",ctor:_F},{name:"color-opacity-picker",ctor:dN},{name:"font-picker",ctor:bF},{name:"picker-dots",ctor:MN},{name:"snap-slider",ctor:iM},{name:"styled-radio-buttons",ctor:yM},{name:"ad-badge-overlay",ctor:EF},{name:"buffering-overlay",ctor:yF},{name:"end-card-overlay",ctor:SF},{name:"toast-notification",ctor:TF},{name:"verts-controls-overlay",ctor:uz}
5264,{name:"ambient-controls-overlay",ctor:hz},{name:"controls-overlay",ctor:bz},{name:"aria-announcement-overlay",ctor:WP},{name:"current-time-indicator",ctor:CF},{name:"total-duration",ctor:wF},{name:"program-decoration",ctor:AF},{name:"affiliate-logo",ctor:OP},{name:"play-pause-indicator",ctor:vD},{name:"expandable-metadata",ctor:IF},{name:"ratings-overlay",ctor:RF},{name:"keyboard-actions",ctor:kF}];p_.themeOverride={experienceModalHideWidth:339};const Ez=t=>({toThemeConfiguration:()=>wV,toBrandConfiguration:()=>({}),toCommandBusConfig:(t,e,n,i,r,o)=>({middleware:[Tf(i)],sink:Vf(t,e,n,r,i,o)}),toRegisterComponents:()=>function(t){if("undefined"!=typeof window)for(const{name:e,ctor:n,lazy:i}of t)customElements.get(e)||(n?customElements.define(e,n):Xb.set(e,i))}(_z),toStartupSequenceConfig:()=>AV}),yz=({componentName:t})=>{Wf({componentName:t,extension:Ez})}},5758:function(t,e,n){"use strict";n.d(e,{Z:function(){return fs}});var i=n(85893),r=n(67294),o=n(72160),a=n(93967),s=n(50239),l=n(8601);n(41304);var c=(0,r.forwardRef)((({children:t,errorString:e,dismissUrl:n,className:r,errorWrapper:o},a)=>{const l=(0,i.jsxs)("div",{className:"FittWebPlayerContainer-error-message",children:[(0,i.jsx)("p",{children:e}),(0,i.jsx)("a",{href:n,className:"error--link",children:"Dismiss"})]});return(0,s.cbool)(e)&&(0,s.cbool)(o)?(0,i.jsx)("div",{className:`${r} FittWebPlayerContainer-error`,children:(0,i.jsxs)("div",{className:"FittWebPlayerContainer-player",children:[(0,i.jsx)("div",{className:"FittWebPlayerContainer-error-container",children:l}),o]})}):(0,s.cbool)(e)?(0,i.jsx)("div",{className:`${r} FittWebPlayerContainer-error`,children:l}):t})),d=n(5902),u=n(63566),p=n(64721),h=n(38169);const m={MEDIA:"dtci.media",ADS_AD_SKIPPED:"dtci.ads.adSkipped",EMBEDDED:"dtci.embedded",UPDATE_ANALYTICS:"dtci.updateAnalytics",DTCI_ADS_ENDED:"dtci.ads-ad-ended",DTCI_ADS_SKIPPED:"dtci.ads-ad-skipped",DTCI_ADS_STARTED:"dtci.ads-ad-started",DTCI_ADS_PAUSE:"dtci.ads-pause",DTCI_ADS_PLAY:"dtci.ads-play",DTCI_ADS_PAUSE_TWO:"dtci.ads.pause",DTCI_ADS_PLAY_TWO:"dtci.ads.play",DTCI_ENDED:"dtci.ended",DTCI_DISPOSE:"dtci.dispose",DTCI_SEEKING:"dtci.seeking",DTCI_SEEKED:"dtci.seeked",DTCI_TIME_UPDATE:"dtci.timeupdate",DTCI_GET_NEXT_CONTENT:"dtci.getNextContent",DTCI_QOE:"dtci.qoe"},g="closedCaptionEnabled",v={authorizationexpiredexception:"We’re having trouble connecting to your account. Please reenter your account information and try again. (Error Code 10).",blackoutexception:"We’re sorry, this video is not available in your region. (Error Code 11).",keynotfoundexception:"We’re sorry, but we cannot play the video you requested. Please try again. (Error Code 28).",loginrequiredexception:"We’re having trouble connecting to your account. Please log out, and log in again. (Error Code 32).",mediakeynotfoundexception:"We’re sorry, but we cannot play the video you requested. Please try again. (Error Code 28).",medianotallowedexception:"We’re sorry, but we cannot play this video. (Error Code 36).",mediaunavailableexception:"We’re sorry, but we cannot play the video you requested. (Error Code 41).",notentitledexception:"We’re sorry, but we cannot play the video you requested. (Error Code 43).",parentalcontrolsrestrictedexception:"This profile’s content rating settings do not allow this program to be played.",profilepersonalinfomissingexception:"Please update your profile with Date of Birth and Gender.",streamconcurrencyexception:"You're already streaming on the maximum number of devices. To continue watching, please stop streaming on another device (Error Code 75)."};var f=class{constructor(t){this.mediaPlayer=t,this.listeners=[],this.registerEvents()}registerListener(t,e){this.storeListener(t,e),this.mediaPlayer.on(t,e)}storeListener(t,e){p(this.listeners,t)||this.listeners.push({eventName:t,handler:e})}handleEvents(t,e){const n=this;if(u){const i=Array.prototype.concat.apply([m.MEDIA,t,e,n.mediaPlayer]);try{u.publish.apply(d,i)}catch(t){console.error("Error publishing event to dataLayer",t)}}}registerEvents(){const t={...m};Object.keys(t).forEach((t=>{const e=this,n=h(e.handleEvents,e,t);e.storeListener(t,n),e.mediaPlayer.on(t,n)}))}removeListeners(){const t=this;
5264t.listeners.forEach((({eventName:e,handler:n})=>{t.mediaPlayer?.off(e,n)})),t.listeners=[]}};const b="@EVENT/PLAYER/AUDIO",_="@EVENT/PLAYER/CAPTIONS",E="@EVENT/PLAYER/PLAYBACK",y="@EVENT/PLAYER/TIMECODE",S="@EVENT/PLAYER/VOLUME",T="@EVENT/PLAYER",C={DISPOSED:`${T}/DISPOSED`,MEDIA_READY:`${T}/MEDIA_READY`,AUDIO:{SELECTED_TRACK_CHANGED:`${b}/SELECTED_TRACK_CHANGED`,TRACKS_CHANGED:`${b}/TRACKS_CHANGED`},AIRING:{SELECTED_FEED_CHANGED:"@EVENT/PLAYER/AIRING/SELECTED_FEED_CHANGED"},CAPTIONS:{OFF:`${_}/OFF`,ON:`${_}/ON`,SELECTED_TRACK_CHANGED:`${_}/SELECTED_TRACK_CHANGED`,TRACKS_CHANGED:`${_}/TRACKS_CHANGED`},CASTING:{STATE_CHANGED:"@EVENT/PLAYER/CASTING/STATE_CHANGED"},PLAYBACK:{ACTIVITY_STATUS_CHANGED:`${E}/ACTIVITY_STATUS_CHANGED`,AUTO_PLAY_FAILED:`${E}/AUTOPLAY_FAILED`,BUFFERING_ENDED:`${E}/BUFFERING_ENDED`,BUFFERING_STARTED:`${E}/BUFFERING_STARTED`,CAN_PLAY_THROUGH:`${E}/CAN_PLAY_THROUGH`,EXITED:`${E}/EXITED`,INACTIVITY_TIMEOUT:`${E}/INACTIVITY_TIMEOUT`,INITIALIZED:`${E}/INITIALIZED`,MARKER_REACHED:`${E}/MARKER_REACHED`,MEDIA_CLIENT_INITIALIZED:`${E}/MEDIA_CLIENT_INITIALIZED`,MEDIA_CLIENT_DISPOSED:`${E}/MEDIA_CLIENT_DISPOSED`,MEDIA_COMPLETED:`${E}/MEDIA_COMPLETED`,MEDIA_PAUSED:`${E}/MEDIA_PAUSED`,MEDIA_SEEKING:`${E}/MEDIA_SEEKING`,MEDIA_SEEK_COMPLETE:`${E}/MEDIA_SEEK_COMPLETE`,MEDIA_RESUMED:`${E}/MEDIA_RESUMED`,MEDIA_STARTED:`${E}/MEDIA_STARTED`,PAGE_VISIBILITY_CHANGED:`${E}/PAGE_VISIBILITY_CHANGED`,PLAYBACK_STATE_CHANGED:`${E}/PLAYBACK_STATE_CHANGED`,READY:`${E}/READY`,RESTART:`${E}/RESTART`,RESUMED_WITHOUT_CATCHING_UP:`${E}/RESUMED_WITHOUT_CATCHING_UP`,PROGRAM_AUTHORIZE:`${E}/PROGRAM_AUTHORIZE`,PROGRAM_BOUNDARY:`${E}/PROGRAM_BOUNDARY`,PROGRAM_BOUNDARY_ERROR:`${E}/PROGRAM_BOUNDARY_ERROR`,PROGRAM_ENDED:`${E}/PROGRAM_ENDED`,PROGRAM_METADATA_CHANGED:`${E}/PROGRAM_METADATA_CHANGED`,RIGHTS_CHECK_PREFETCHED_RIGHTS:`${E}/RIGHTS_CHECK_PREFETCHED_RIGHTS`,WINDOW_BEFORE_UNLOAD:`${E}/WINDOW_BEFORE_UNLOAD`},TIMECODE:{PLAYBACK_TIME_UPDATE:`${y}/PLAYBACK_TIME_UPDATE`,TIMECODE_UPDATE:`${y}/TIMECODE_UPDATE`},VOLUME:{MUTED:`${S}/MUTED`,UNMUTED:`${S}/UNMUTED`,LEVEL:`${S}/LEVEL`,CHANGED:`${S}/CHANGED`},MEDIA_PLAYBACK_CRITERIA_SET:`${T}/MEDIA_PLAYBACK_CRITERIA_SET`};const w=new Set;const A="webplayer:external:event";var I,O,R,x,L,k,P,D,N,M,U,B,V,F,z,$,H,G,Y,j,K,W,q,X,Z,Q,J,tt,et,nt,it,rt,ot,at,st,lt,ct,dt,ut,pt,ht,mt,gt,vt,ft,bt,_t,Et,yt,St,Tt,Ct,wt,At;!function(t){t.CABLEVISION="cablevision",t.CHROME="chrome",t.CHROMECAST="chromecast",t.COMCAST="comcast",t.EDGE="edge",t.FIREFOX="firefox",t.HISENSE_GLOBAL="hisenseglobal",t.HISENSE_JAPAN="hisensejapan",t.OPERA="opera",t.PANASONIC="panasonic",t.SAFARI="safari",t.SKYQ="skyq",t.TELECENTRO="telecentro",t.TIZEN="tizen",t.TOSHIBA="toshiba",t.VIZIO="vizio",t.WEBOS="webos"}(I||(I={})),function(t){t.Default="default",t.Aggressive="aggressive",t.Progressive="progressive"}(O||(O={})),function(t){t[t.PBO_WRITE=0]="PBO_WRITE",t[t.PBO_READ=1]="PBO_READ",t[t.MV_PLAYLIST_WRITE=2]="MV_PLAYLIST_WRITE",t[t.MV_PLAYLIST_READ=3]="MV_PLAYLIST_READ",t[t.MEDIA_PLAYLIST_WRITE=4]="MEDIA_PLAYLIST_WRITE",t[t.MEDIA_PLAYLIST_READ=5]="MEDIA_PLAYLIST_READ",t[t.INIT_SECTION_WRITE=6]="INIT_SECTION_WRITE",t[t.INIT_SECTION_READ=7]="INIT_SECTION_READ",t[t.PREFLIGHT_CAPABILITY_WRITE=8]="PREFLIGHT_CAPABILITY_WRITE",t[t.PREFLIGHT_CAPABILITY_READ=9]="PREFLIGHT_CAPABILITY_READ"}(R||(R={})),function(t){t.PLAYBACK_CONFIG="playback-config",t.PLAYBACK_SESSION="playback-session",t.CORE_PLAYER="core-player"}(x||(x={})),function(t){t.AUDIO_INIT_SECTION_REQUEST_ERROR="AUDIO_INIT_SECTION_REQUEST_ERROR",t.AUDIO_SEGMENT_REQUEST_ERROR="AUDIO_SEGMENT_REQUEST_ERROR",t.MEDIA_PLAYLIST_REQUEST_ERROR="MEDIA_PLAYLIST_REQUEST_ERROR",t.MULTIVARIANT_PLAYLIST_FILTER_ERROR="MV_PLAYLIST_FILTER_ERROR",t.MULTIVARIANT_PLAYLIST_PARSE_ERROR="MV_PLAYLIST_PARSE_ERROR",t.MULTIVARIANT_PLAYLIST_REQUEST_ERROR="MV_PLAYLIST_REQUEST_ERROR",t.MULTIVARIANT_PLAYLIST_RESPONSE_NOT_OK="MV_PLAYLIST_RESPONSE_NOT_OK",t.MULTIVARIANT_PLAYLIST_RESPONSE_TEXT_ERROR="MV_PLAYLIST_RESPONSE_TEXT_ERROR",t.PREBUFFER_NO_ROOM="PREBUFFER_NO_ROOM",t.SUBTITLE_SEGMENT_REQUEST_ERROR="SUBTITLE_SEGMENT_REQUEST_ERROR",t.VIDEO_INIT_SECTION_REQUEST_ERROR="VIDEO_INIT_SECTION_REQUEST_ERROR",t.VIDEO_SEGMENT_REQUEST_ERROR="VIDEO_SEGMENT_REQUEST_ERROR",t.DRM_CDM_INTERNAL_ERROR="DRM_CDM_INTERNAL_ERROR",t.DRM_CDM_PROVISIONING_REQUEST_FAILED="DRM_CDM_PROVISIONING_REQUEST_FAILED",t.DRM_CERTIFICATE_ERROR="DRM_CERTIFICATE_ERROR",t.DRM_DECRYPTION_INIT_FAILED="DRM_DECRYPTION_INIT_FAILED",t.DRM_GENERATE_LICENSE_REQUEST_FAILED="DRM_GENERATE_LICENSE_REQUEST_FAILED",t.DRM_HDCP_ERROR="DRM_HDCP_ERROR",t.DRM_INDIVIDUALIZATION_REQUEST_ERROR="DRM_INDIVIDUALIZATION_REQUEST_ERROR",t.DRM_LICENSE_REQUEST_ERROR="DRM_LICENSE_REQUEST_ERROR",t.DRM_NO_SUPPORTED_
5264KEY_SYSTEM="DRM_NO_SUPPORTED_KEY_SYSTEM",t.DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIG="DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIGURATION",t.DRM_SYSTEM_ACCESS_FAILED="DRM_SYSTEM_ACCESS_FAILED",t.INCOMPATIBLE_CODECS_ERROR="INCOMPATIBLE_CODECS_ERROR",t.MEDIAELEMENT_ERROR="MEDIAELEMENT_ERROR",t.MEDIAELEMENT_ATTACHING_ERROR="MEDIAELEMENT_ATTACHING_ERROR",t.MEDIAELEMENT_DETACHING_ERROR="MEDIAELEMENT_DETACHING_ERROR",t.AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER="AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER",t.SOURCE_BUFFER_APPEND_ERROR="SOURCE_BUFFER_APPEND_ERROR",t.SOURCE_BUFFER_APPEND_NO_ROOM="SOURCE_BUFFER_APPEND_NO_ROOM",t.SOURCE_BUFFER_DISPOSE_ERROR="SOURCE_BUFFER_DISPOSE_ERROR",t.SOURCE_BUFFER_ERROR_EVENT="SOURCE_BUFFER_ERROR_EVENT",t.SOURCE_BUFFER_INVALID_STATE_ERROR="SOURCE_BUFFER_INVALID_STATE_ERROR",t.SOURCE_BUFFER_REMOVE_ERROR="SOURCE_BUFFER_REMOVE_ERROR",t.PLAYBACK_STALL_LOW_BUFFER="PLAYBACK_STALL_LOW_BUFFER",t.PLAYBACK_STALL_UNKNOWN_CAUSE="PLAYBACK_STALL_UNKNOWN_CAUSE",t.PLAYBACK_STALL_WHILE_FETCHING="PLAYBACK_STALL_WHILE_FETCHING",t.PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING="PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING",t.PLAYBACK_STALL_SERVER_WHILE_FETCHING="PLAYBACK_STALL_SERVER_WHILE_FETCHING",t.PLAYBACK_STALL_CLIENT_WHILE_FETCHING="PLAYBACK_STALL_CLIENT_WHILE_FETCHING",t.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",t.PLAYBACK_BUFFERING_ERROR="PLAYBACK_BUFFERING_ERROR",t.PLAYBACK_DECODING_ERROR="PLAYBACK_DECODING_ERROR",t.PLAYBACK_UNKNOWN_ERROR="PLAYBACK_UNKNOWN_ERROR",t.LICENSE_AGE_NOT_VERIFIED="LICENSE_AGE_NOT_VERIFIED",t.LICENSE_AUTH_ERROR="LICENSE_AUTH_ERROR",t.LICENSE_BLACKOUT="LICENSE_BLACKOUT",t.LICENSE_DOWNGRADED="LICENSE_DOWNGRADED",t.LICENSE_HEADERS_TIMEOUT="LICENSE_HEADERS_TIMEOUT",t.LICENSE_INSUFFICIENT_SECURITY_LEVEL="LICENSE_INSUFFICIENT_SECURITY_LEVEL",t.LICENSE_INVALID="LICENSE_INVALID",t.LICENSE_KIDS_MODE_ENABLED="LICENSE_KIDS_MODE_ENABLED",t.LICENSE_MEDIA_ID_MISSING="LICENSE_MEDIA_ID_MISSING",t.LICENSE_NETWORK_ERROR="LICENSE_NETWORK_ERROR",t.LICENSE_NOT_ENTITLED="LICENSE_NOT_ENTITLED",t.LICENSE_NOT_FOUND_ERROR="LICENSE_NOT_FOUND_ERROR",t.LICENSE_NOT_PERMITTED_OFFLINE="LICENSE_NOT_PERMITTED_OFFLINE",t.LICENSE_NOT_PERMITTED_RENEWAL="LICENSE_NOT_PERMITTED_RENEWAL",t.LICENSE_OTHER_ERROR="LICENSE_OTHER_ERROR",t.LICENSE_PARENTAL_CONTROLS_ENABLED="LICENSE_PARENTAL_CONTROLS_ENABLED",t.LICENSE_PIN_EXPIRED="LICENSE_PIN_EXPIRED",t.LICENSE_PIN_MISSING="LICENSE_PIN_MISSING",t.LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED="LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED",t.LICENSE_PROFILE_MISSING="LICENSE_PROFILE_MISSING",t.LICENSE_REJECTED="LICENSE_REJECTED",t.LICENSE_BAD_REQUEST="LICENSE_BAD_REQUEST",t.LICENSE_SERVER_ERROR="LICENSE_SERVER_ERROR",t.LICENSE_REQUEST_ABORT="LICENSE_REQUEST_ABORT",t.LICENSE_RESPONSE_PARSE_ERROR="LICENSE_RESPONSE_PARSE_ERROR"}(L||(L={})),function(t){t[t.NONE=0]="NONE",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.HTTP=4]="HTTP",t[t.REMOTE=5]="REMOTE",t[t.DEBUG=6]="DEBUG",t[t.SILLY=7]="SILLY"}(k||(k={})),function(t){t.playback="playback",t.clientSdk="clientSdk",t.edgeSdk="edgeSdk",t.edgeService="edgeService"}(P||(P={})),function(t){t.LOAD="LOAD",t.DRM="DRM",t.LICENSE="LICENSE",t.MEDIA="MEDIA",t.PLAYBACK="PLAYBACK",t.PQM="PQM",t.SRVC="SRVC",t.GENEXP="GENEXP"}(D||(D={})),function(t){t.AD_POD_LOAD_ERR="AD_POD_LOAD_ERR",t.MEDIA_LOAD_ERR="MEDIA_LOAD_ERR",t.DRM_CERT_LOAD_ERR="DRM_CERT_LOAD_ERR",t.DRM_INIT_FAIL="DRM_INIT_FAIL",t.DRM_PROVISION_FAIL="DRM_PROVISION_FAIL",t.HDCP_ERR="HDCP_ERR",t.LICENSE_DENIED="LICENSE_DENIED",t.LICENSE_LOAD_ERR="LICENSE_LOAD_ERR",t.LICENSE_BAD_REQUEST="LICENSE_BAD_REQUEST",t.CAPTIONS_ERR="CAPTIONS_ERR",t.MEDIA_PROCESSING_ERROR="MEDIA_PROCESSING_ERROR",t.SUBTITLES_ERR="SUBTITLES_ERR",t.GEN_PLAYBACK_ERR="GEN_PLAYBACK_ERR",t.PLAYBACK_STALL="PLAYBACK_STALL",t.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",t.PQM_ERR="PQM_ERR",t.PQM_LOAD_ERR="PQM_LOAD_ERR",t.ADOBE_PASS_AUTHORIZATION_FAILED="ADOBE_PASS_AUTHORIZATION_FAILED",t.ADOBE_PASS_BAD_REQUEST="ADOBE_PASS_BAD_REQUEST",t.ADOBE_PASS_INTERNAL_SERVER_ERROR="ADOBE_PASS_INTERNAL_SERVER_ERROR",t.ADOBE_PASS_UNEXPECTED_STATUS="ADOBE_PASS_UNEXPECTED_STATUS",t.ADOBE_PASS_OUTSIDE_TIME_BOUNDS="ADOBE_PASS_OUTSIDE_TIME_BOUNDS",t.ADOBE_PASS_UNAUTHORIZED="ADOBE_PASS_UNAUTHORIZED",t.AGE_NOT_VERIFIED="AGE_NOT_VERIFIED",t.AGE_NOT_VERIFIED_KR="AGE_NOT_VERIFIED_KR",t.BLACKOUT="BLACKOUT",t.BLACKOUT_DISPUTE="BLACKOUT_DISPUTE",t.DOWNGRADE="DOWNGRADE",t.KIDS_MODE_ENABLED="KIDS_MODE_ENABLED",t.LOGIN_REQUIRED="LOGIN_REQUIRED",t.MEDIA_ID_MISSING="MEDIA_ID_MISSING",t.MEDIA_RIGHTS_BAD_REQUEST="MEDIA_RIGHTS_BAD_REQUEST",t.MEDIA_RIGHTS_SERVICE_ERROR="MEDIA_RIGHTS_SERVICE_ERROR",t.MEDIA_RIGHTS_UNKNOWN_ERROR="MEDIA_RIGHTS_UNKNOWN_ERROR",t.NOT_ENTITLED="NOT_ENTITLED",t.NOT_PERMITTED_OFFLINE="NOT_PERMITTED_OFFLINE",t.NOT_PERMITTED_RENEWAL="NOT_PERMITTED_RENEWAL",t.PARENTAL_CONTROLS_RESTRICTED="PARENTAL_CONTROLS_RESTRICTED",t.PIN_EXPIRED="PIN_EXPIRED",t.PIN_MISSING="PIN_MISSING",t.PLATFORM_CLIENT_UPGRADE_REQUIRED="PLATFORM_CLIENT_UPGRADE_REQUIRED",t.PROFILE_MISSING="PROFILE_MISSING",t.PROFILE_PERSONAL_INFO_MISSING="PROFILE_PERSONAL_INFO_MISSING",t.REJECTED="REJECTED",t.SECURITY_LEVEL_INSUFFICIENT="SECURITY_LEVEL_INSUFFICIENT",t.SERVICE_ERR="SERVICE_ERR",t.STREAM_CONCURRENCY_VIOLATION="STREAM_CONCURRENCY_VIOLATION",t.EXTERNAL_EXP="EXTERNAL_EXP",t.GEN_EXP="GEN_EXP",t.INTERNAL_EXP="INTERNAL_EXP"}(N||(N={})),function(t){t[t.OTHER=0]="OTHER",t[t.DEVICE_OTHER=1e3]="DEVICE_OTHER",t[t.DEVICE_MV=1010]="DEVICE_MV",t[t.DEVICE_VARIANT=1020]="DEVICE_VARIANT",t[t.DEVICE_VIDEO=1030]="DEVICE_VIDEO",t[t.DEVICE_AUDIO=1040]="DEVICE_AUDIO",t[t.DEVICE_SUBTITLES=1050]="DEVICE_SUBTITLES",t[t.REQUEST_TIMEOUT_OTHER=1100]="REQUEST_TIMEOUT_OTHER",t[t.REQUEST_TIMEOUT_MV=1110]="REQUEST_TIMEOUT_MV",t[t.REQUEST_TIMEOUT_VARIANT=1120]="REQUEST_TIMEOUT_VARIANT",t[t.REQUEST_TIMEOUT_VIDEO=1130]="REQUEST_TIMEOUT_VIDEO",t[t.REQUEST_TIMEOUT_AUDIO=1140]="REQUEST_TIMEOUT_AUDIO",t[t.REQUEST_TIMEOUT_SUBTITLES=1150]="REQUEST_TIMEOUT_SUBTITLES",t[t.HEADERS_TIMEOUT_OTHER=1200]="HEADERS_TIMEOUT_OTHER",t[t.HEADERS_TIMEOUT_MV=1210]="HEADERS_TIMEOUT_MV",t[t.HEADERS_TIMEOUT_VARIANT=1220]="HEADERS_TIMEOUT_VARIANT",t[t.HEADERS_TIMEOUT_VIDEO=1230]="HEADERS_TIMEOUT_VIDEO",t[t.HEADERS_TIMEOUT_AUDIO=1240]="HEADERS_TIMEOUT_AUDIO",t[t.HEADERS_TIMEOUT_SUBTITLES=1250]="HEADERS_TIMEOUT_SUBTITLES",t[t.PAYLOAD_TIMEOUT_OTHER=1300]="PAYLOAD_TIMEOUT_OTHER",t[t.PAYLOAD_TIMEOUT_MV=1310]="PAYLOAD_TIMEOUT_MV",t[t.PAYLOAD_TIMEOUT_VARIANT=1320]="PAYLOAD_TIMEOUT_VARIANT",t[t.PAYLOAD_TIMEOUT_VIDEO=1330]="PAYLOAD_TIMEOUT_VIDEO",t[t.PAYLOAD_TIMEOUT_AUDIO=1340]="PAYLOAD_TIMEOUT_AUDIO",t[t.PAYLOAD_TIMEOUT_SUBTITLES=1350]="PAYLOAD_TIMEOUT_SUBTITLES",t[t.ABORTED_OTHER=1400]="ABORTED_OTHER",t[t.ABORTED_MV=1410]="ABORTED_MV",t[t.ABORTED_VARIA
5264NT=1420]="ABORTED_VARIANT",t[t.ABORTED_VIDEO=1430]="ABORTED_VIDEO",t[t.ABORTED_AUDIO=1440]="ABORTED_AUDIO",t[t.ABORTED_SUBTITLES=1450]="ABORTED_SUBTITLES",t[t.SERVER_ERROR_OTHER=1500]="SERVER_ERROR_OTHER",t[t.SERVER_ERROR_MV=1510]="SERVER_ERROR_MV",t[t.SERVER_ERROR_VARIANT=1520]="SERVER_ERROR_VARIANT",t[t.SERVER_ERROR_VIDEO=1530]="SERVER_ERROR_VIDEO",t[t.SERVER_ERROR_AUDIO=1540]="SERVER_ERROR_AUDIO",t[t.SERVER_ERROR_SUBTITLES=1550]="SERVER_ERROR_SUBTITLES",t[t.NOT_FOUND_OTHER=1600]="NOT_FOUND_OTHER",t[t.NOT_FOUND_MV=1610]="NOT_FOUND_MV",t[t.NOT_FOUND_VARIANT=1620]="NOT_FOUND_VARIANT",t[t.NOT_FOUND_VIDEO=1630]="NOT_FOUND_VIDEO",t[t.NOT_FOUND_AUDIO=1640]="NOT_FOUND_AUDIO",t[t.NOT_FOUND_SUBTITLES=1650]="NOT_FOUND_SUBTITLES",t[t.AUTH_OTHER=1700]="AUTH_OTHER",t[t.AUTH_MV=1710]="AUTH_MV",t[t.AUTH_VARIANT=1720]="AUTH_VARIANT",t[t.AUTH_VIDEO=1730]="AUTH_VIDEO",t[t.AUTH_AUDIO=1740]="AUTH_AUDIO",t[t.AUTH_SUBTITLES=1750]="AUTH_SUBTITLES",t[t.UNEXPECTED_RESPONSE_OTHER=1800]="UNEXPECTED_RESPONSE_OTHER",t[t.UNEXPECTED_RESPONSE_MV=1810]="UNEXPECTED_RESPONSE_MV",t[t.UNEXPECTED_RESPONSE_VARIANT=1820]="UNEXPECTED_RESPONSE_VARIANT",t[t.UNEXPECTED_RESPONSE_VIDEO=1830]="UNEXPECTED_RESPONSE_VIDEO",t[t.UNEXPECTED_RESPONSE_AUDIO=1840]="UNEXPECTED_RESPONSE_AUDIO",t[t.UNEXPECTED_RESPONSE_SUBTITLES=1850]="UNEXPECTED_RESPONSE_SUBTITLES",t[t.PAYLOAD_PROCESSING_OTHER=2e3]="PAYLOAD_PROCESSING_OTHER",t[t.PAYLOAD_PROCESSING_MV=2010]="PAYLOAD_PROCESSING_MV",t[t.PAYLOAD_PROCESSING_VARIANT=2020]="PAYLOAD_PROCESSING_VARIANT",t[t.PAYLOAD_PROCESSING_VIDEO=2030]="PAYLOAD_PROCESSING_VIDEO",t[t.PAYLOAD_PROCESSING_AUDIO=2040]="PAYLOAD_PROCESSING_AUDIO",t[t.PAYLOAD_PROCESSING_SUBTITLES=2050]="PAYLOAD_PROCESSING_SUBTITLES",t[t.CDN_FALLBACK_ERRROR=3e3]="CDN_FALLBACK_ERRROR",t[t.PARSING_ERROR_OTHER=4e3]="PARSING_ERROR_OTHER",t[t.PARSING_ERROR_MV=4010]="PARSING_ERROR_MV",t[t.PARSING_ERROR_VARIANT=4020]="PARSING_ERROR_VARIANT",t[t.PARSING_ERROR_VIDEO=4030]="PARSING_ERROR_VIDEO",t[t.PARSING_ERROR_AUDIO=4040]="PARSING_ERROR_AUDIO",t[t.PARSING_ERROR_SUBTITLES=4050]="PARSING_ERROR_SUBTITLES",t[t.PARSING_ERROR_CAPTIONS=4060]="PARSING_ERROR_CAPTIONS",t[t.MEDIA_ERROR_OTHER=5e3]="MEDIA_ERROR_OTHER",t[t.MEDIA_ERROR_VIDEO=5010]="MEDIA_ERROR_VIDEO",t[t.MEDIA_ERROR_AUDIO=5020]="MEDIA_ERROR_AUDIO",t[t.MEDIA_ERROR_SUBTITLES=5030]="MEDIA_ERROR_SUBTITLES",t[t.MEDIA_ERROR_CAPTIONS=5040]="MEDIA_ERROR_CAPTIONS",t[t.STALL_OTHER=6e3]="STALL_OTHER",t[t.STALL_AUDIO_BUFFER=6010]="STALL_AUDIO_BUFFER",t[t.STALL_VIDEO_BUFFER=6020]="STALL_VIDEO_BUFFER",t[t.DRM_ERROR_OTHER=6100]="DRM_ERROR_OTHER",t[t.DRM_KEY_ACCESS_FAILED=6110]="DRM_KEY_ACCESS_FAILED",t[t.DRM_NO_KEY_SYSTEMS=6120]="DRM_NO_KEY_SYSTEMS",t[t.PLAYBACK_SERVICE_ERROR=7e3]="PLAYBACK_SERVICE_ERROR",t[t.PLAYBACK_SERVICE_BLACKOUT_DISPUTE=7016]="PLAYBACK_SERVICE_BLACKOUT_DISPUTE"}(M||(M={})),function(t){t.AUDIO_INIT_SECTION_REQUEST_ERROR="AUDIO_INIT_SECTION_REQUEST_ERROR",t.AUDIO_SEGMENT_REQUEST_ERROR="AUDIO_SEGMENT_REQUEST_ERROR",t.MEDIA_PLAYLIST_REQUEST_ERROR="MEDIA_PLAYLIST_REQUEST_ERROR",t.MULTIVARIANT_PLAYLIST_FILTER_ERROR="MV_PLAYLIST_FILTER_ERROR",t.MULTIVARIANT_PLAYLIST_PARSE_ERROR="MV_PLAYLIST_PARSE_ERROR",t.MULTIVARIANT_PLAYLIST_REQUEST_ERROR="MV_PLAYLIST_REQUEST_ERROR",t.MULTIVARIANT_PLAYLIST_RESPONSE_NOT_OK="MV_PLAYLIST_RESPONSE_NOT_OK",t.MULTIVARIANT_PLAYLIST_RESPONSE_TEXT_ERROR="MV_PLAYLIST_RESPONSE_TEXT_ERROR",t.PREBUFFER_NO_ROOM="PREBUFFER_NO_ROOM",t.SUBTITLE_SEGMENT_REQUEST_ERROR="SUBTITLE_SEGMENT_REQUEST_ERROR",t.VIDEO_INIT_SECTION_REQUEST_ERROR="VIDEO_INIT_SECTION_REQUEST_ERROR",t.VIDEO_SEGMENT_REQUEST_ERROR="VIDEO_SEGMENT_REQUEST_ERROR",t.DRM_CDM_INTERNAL_ERROR="DRM_CDM_INTERNAL_ERROR",t.DRM_CDM_PROVISIONING_REQUEST_FAILED="DRM_CDM_PROVISIONING_REQUEST_FAILED",t.DRM_CERTIFICATE_ERROR="DRM_CERTIFICATE_ERROR",t.DRM_DECRYPTION_INIT_FAILED="DRM_DECRYPTION_INIT_FAILED",t.DRM_GENERATE_LICENSE_REQUEST_FAILED="DRM_GENERATE_LICENSE_REQUEST_FAILED",t.DRM_HDCP_ERROR="DRM_HDCP_ERROR",t.DRM_INDIVIDUALIZATION_REQUEST_ERROR="DRM_INDIVIDUALIZATION_REQUEST_ERROR",t.DRM_LICENSE_REQUEST_ERROR="DRM_LICENSE_REQUEST_ERROR",t.DRM_NO_SUPPORTED_KEY_SYSTEM="DRM_NO_SUPPORTED_
5264KEY_SYSTEM",t.DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIG="DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIGURATION",t.DRM_SYSTEM_ACCESS_FAILED="DRM_SYSTEM_ACCESS_FAILED",t.INCOMPATIBLE_CODECS_ERROR="INCOMPATIBLE_CODECS_ERROR",t.MEDIAELEMENT_ERROR="MEDIAELEMENT_ERROR",t.MEDIAELEMENT_ATTACHING_ERROR="MEDIAELEMENT_ATTACHING_ERROR",t.MEDIAELEMENT_DETACHING_ERROR="MEDIAELEMENT_DETACHING_ERROR",t.AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER="AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER",t.SOURCE_BUFFER_APPEND_ERROR="SOURCE_BUFFER_APPEND_ERROR",t.SOURCE_BUFFER_APPEND_NO_ROOM="SOURCE_BUFFER_APPEND_NO_ROOM",t.SOURCE_BUFFER_DISPOSE_ERROR="SOURCE_BUFFER_DISPOSE_ERROR",t.SOURCE_BUFFER_ERROR_EVENT="SOURCE_BUFFER_ERROR_EVENT",t.SOURCE_BUFFER_INVALID_STATE_ERROR="SOURCE_BUFFER_INVALID_STATE_ERROR",t.SOURCE_BUFFER_REMOVE_ERROR="SOURCE_BUFFER_REMOVE_ERROR",t.PLAYBACK_STALL_LOW_BUFFER="PLAYBACK_STALL_LOW_BUFFER",t.PLAYBACK_STALL_UNKNOWN_CAUSE="PLAYBACK_STALL_UNKNOWN_CAUSE",t.PLAYBACK_STALL_WHILE_FETCHING="PLAYBACK_STALL_WHILE_FETCHING",t.PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING="PLAYBACK_STALL_TIMEOUT_WHILE_FETCHING",t.PLAYBACK_STALL_SERVER_WHILE_FETCHING="PLAYBACK_STALL_SERVER_WHILE_FETCHING",t.PLAYBACK_STALL_CLIENT_WHILE_FETCHING="PLAYBACK_STALL_CLIENT_WHILE_FETCHING",t.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",t.PLAYBACK_BUFFERING_ERROR="PLAYBACK_BUFFERING_ERROR",t.PLAYBACK_DECODING_ERROR="PLAYBACK_DECODING_ERROR",t.PLAYBACK_UNKNOWN_ERROR="PLAYBACK_UNKNOWN_ERROR",t.LICENSE_AGE_NOT_VERIFIED="LICENSE_AGE_NOT_VERIFIED",t.LICENSE_AUTH_ERROR="LICENSE_AUTH_ERROR",t.LICENSE_BLACKOUT="LICENSE_BLACKOUT",t.LICENSE_DOWNGRADED="LICENSE_DOWNGRADED",t.LICENSE_HEADERS_TIMEOUT="LICENSE_HEADERS_TIMEOUT",t.LICENSE_INSUFFICIENT_SECURITY_LEVEL="LICENSE_INSUFFICIENT_SECURITY_LEVEL",t.LICENSE_INVALID="LICENSE_INVALID",t.LICENSE_KIDS_MODE_ENABLED="LICENSE_KIDS_MODE_ENABLED",t.LICENSE_MEDIA_ID_MISSING="LICENSE_MEDIA_ID_MISSING",t.LICENSE_NETWORK_ERROR="LICENSE_NETWORK_ERROR",t.LICENSE_NOT_ENTITLED="LICENSE_NOT_ENTITLED",t.LICENSE_NOT_FOUND_ERROR="LICENSE_NOT_FOUND_ERROR",t.LICENSE_NOT_PERMITTED_OFFLINE="LICENSE_NOT_PERMITTED_OFFLINE",t.LICENSE_NOT_PERMITTED_RENEWAL="LICENSE_NOT_PERMITTED_RENEWAL",t.LICENSE_OTHER_ERROR="LICENSE_OTHER_ERROR",t.LICENSE_PARENTAL_CONTROLS_ENABLED="LICENSE_PARENTAL_CONTROLS_ENABLED",t.LICENSE_PIN_EXPIRED="LICENSE_PIN_EXPIRED",t.LICENSE_PIN_MISSING="LICENSE_PIN_MISSING",t.LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED="LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED",t.LICENSE_PROFILE_MISSING="LICENSE_PROFILE_MISSING",t.LICENSE_REJECTED="LICENSE_REJECTED",t.LICENSE_BAD_REQUEST="LICENSE_BAD_REQUEST",t.LICENSE_SERVER_ERROR="LICENSE_SERVER_ERROR",t.LICENSE_REQUEST_ABORT="LICENSE_REQUEST_ABORT",t.LICENSE_RESPONSE_PARSE_ERROR="LICENSE_RESPONSE_PARSE_ERROR",t.PBO_AGE_NOT_VERIFIED="PBO_AGE_NOT_VERIFIED",t.PBO_AGE_NOT_VERIFIED_KR="PBO_AGE_NOT_VERIFIED_KR",t.PBO_BLACKOUT="PBO_BLACKOUT",t.PBO_BLACKOUT_DISPUTE="PBO_BLACKOUT_DISPUTE",t.PBO_KIDS_MODE_ENABLED="PBO_KIDS_MODE_ENABLED",t.PBO_LOGIN_REQUIRED="PBO_LOGIN_REQUIRED",t.PBO_MEDIA_RIGHTS_BAD_REQUEST="PBO_MEDIA_RIGHTS_BAD_REQUEST",t.PBO_MEDIA_RIGHTS_SERVICE_ERROR="PBO_MEDIA_RIGHTS_SERVICE_ERROR",t.PBO_MEDIA_RIGHTS_UNKNOWN_ERROR="PBO_MEDIA_RIGHTS_UNKNOWN_ERROR",t.PBO_NOT_ENTITLED="PBO_NOT_ENTITLED",t.PBO_NOT_PERMITTED_OFFLINE="PBO_NOT_PERMITTED_OFFLINE",t.PBO_NOT_PERMITTED_RENEWAL="PBO_NOT_PERMITTED_RENEWAL",t.PBO_OTHER_ERROR="PBO_OTHER_ERROR",t.PBO_PARENTAL_CONTROLS_ENABLED="PBO_PARENTAL_CONTROLS_ENABLED",t.PBO_PIN_EXPIRED="PBO_PIN_EXPIRED",t.PBO_PIN_MISSING="PBO_PIN_MISSING",t.PBO_PLATFORM_CLIENT_UPGRADE_REQUIRED="PBO_PLATFORM_CLIENT_UPGRADE_REQUIRED",t.PBO_PROFILE_MISSING="PBO_PROFILE_MISSING",t.PBO_PROFILE_PERSONAL_INFO_MISSING="PBO_PROFILE_PERSONAL_INFO_MISSING",t.PBO_STREAM_CONCURRENCY_VIOLATION="PBO_STREAM_CONCURRENCY_VIOLATION",t.PBO_ADOBE_PASS_FAILED_AUTHORIZATION="PBO_ADOBE_PASS_FAILED_AUTHORIZATION",t.PBO_ADOBE_PASS_FAILED_BAD_REQUEST="PBO_ADOBE_PASS_FAILED_BAD_REQUEST",t.PBO_ADOBE_PASS_FAILED_INTERNAL_SERVER_ERROR="PBO_ADOBE_PASS_FAILED_INTERNAL_SERVER_ERROR",t.PBO_ADOBE_PASS_FAILED_UNEXPECTED_STATUS="PBO_ADOBE_PASS_FAILED_UNEXPECTED_STATUS",t.PBO_ADOBE_PASS_UNAUTHORIZED="PBO_ADOBE_PASS_UNAUTHORIZED",t.PBO_ADOBE_PASS_OUTSIDE_TIME_BOUNDS="PBO_ADOBE_PASS_OUTSIDE_TIME_BOUNDS",t.SDK_OTHER_ERROR="SDK_OTHER_ERROR"}(U||(U={})),function(t){t.ADOBE_PASS_FAILED_AUTHORIZATION="adobe-pass-failed-authorization",t.ADOBE_PASS_FAILED_BAD_REQUEST="adobe-pass-failed-bad-request",t.ADOBE_PASS_FAILED_INTERNAL_SERVER_ERROR="adobe-pass-failed-internal-server-error",t.ADOBE_PASS_FAILED_UNEXPECTED_STATUS="adobe-pass-failed-unexpected-status",t.ADOBE_PASS_OUTSIDE_TIME_BOUNDS="adobe-pass-outside-time-bounds",t.ADOBE_PASS_UNAUTHORIZED="adobe-pass-unauthorized",t.AGE_NOT_VERIFIED="age-not-verified",t.AGE_NOT_VERIFIED_KR="age-not-verified-kr",t.BLACKOUT="blackout",t.BLACKOUT_DISPUTE="blackout.dispute",t.KIDS_MODE_ENABLED="kids-mode-enabled",t.LOGIN_REQUIRED="login.required",t.MEDIA_RIGHTS_BAD_REQUEST="media-rights.bad-request",t.MEDIA_RIGHTS_SERVICE_ERROR="media-rights.service-error",t.MEDIA_RIGHTS_UNKNOWN_ERROR="media-rights.unknown-error",t.NOT_ENTITLED="not-entitled",t.PARENTAL_CONTROLS_RESTRICTED="parental-control
5264s-restricted",t.PIN_EXPIRED="pin-expired",t.PIN_MISSING="pin-missing",t.PLATFORM_CLIENT_UPGRADE_REQUIRED="platform.client.upgrade.required",t.PROFILE_MISSING="profile-missing",t.PROFILE_PERSONAL_INFO_MISSING="profile.personal-info-missing",t.STREAM_CONCURRENCY_VIOLATION="stream-concurrency-violation"}(B||(B={})),function(t){t.Direct="DIRECT",t.TveMvpd="TVE_MVPD",t.TveIsp="TVE_ISP",t.TveOpen="TVE_OPEN"}(V||(V={})),function(t){t.abc="abc",t.abcNews="abc_news",t.abcNewsKGO="abc_news_bay_area",t.abcNewsKFSN="abc_news_central_california",t.abcNewsWLS="abc_news_chicago",t.abcNewsKTRK="abc_news_houston",t.abcNewsKABC="abc_news_los_angeles",t.abcNewsWABC="abc_news_new_york",t.abcNewsWTVD="abc_news_north_carolina",t.abcNewsWPVI="abc_news_philadelphia",t.disneyNow="disneynow",t.disneyPlus="disneyplus",t.espn="espn",t.freeform="freeform",t.fxNow="fxnow",t.gma="abc_news_good_morning_america",t.natGeo="national_geographic",t.natGeoKids="nat_geo_kids",t.natGeoTv="nat_geo_tv"}(F||(F={})),function(t){t.production="prod",t.stage="stage",t.qa="qa",t.develop="dev"}(z||(z={})),function(t){t.Adobe="ADOBE",t.Comcast="COMCAST",t.Cox="COX",t.Direct="DIRECT",t.Gatekeeper="GATEKEEPER",t.OneId="ONEID",t.None="NONE"}($||($={})),function(t){t.PlaybackServiceStateChanged="PLAYBACK_SERVICE_STATE_CHANGED",t.MediaCapabilitiesChanged="MEDIA_CAPABILITIES_CHANGED"}(H||(H={})),function(t){t.NONE="NONE",t.SSAI="SSAI",t.SGAI="SGAI",t.ADPARTNER="ADPARTNER"}(G||(G={})),function(t){t.AutoAdvance="AutoAdvance",t.AuthorizationOnly="AuthorizationOnly",t.ContinueWatching="ContinueWatching",t.FeedSwitch="FeedSwitch",t.NextEpisode="NextEpisode",t.UserAction="UserAction",t.UserActionFromLive="UserActionFromLive",t.UserActionFromBeginning="UserActionFromBeginning",t.UserActionCatchUpToLive="UserActionCatchUpToLive",t.UserActionHomescreen="UserActionHomescreen",t.UserActionBrowseTilefocus="UserActionBrowseTilefocus",t.UserActionVerticalvideo="UserActionVerticalvideo",t.Autoplay="Autoplay",t.AutoplayHeaderHome="AutoplayHeaderHome",t.AutoplayHomescreen="AutoplayHomescreen",t.PlaylistTap="PlaylistTap",t.UserActionLiveGuide="UserActionLiveGuide"}(Y||(Y={})),function(t){t.autoplay="autoplay",t.userAction="userAction",t.autoAdvance="autoAdvance",t.background="background",t.pip="pip",t.transferred="transferred",t.userActionRestartButton="userActionRestartButton",t.tileFocus="tileFocus",t.feedSwitch="feedSwitch",t.nextEpisode="nextEpisode",t.unknown="unknown",t.autoplayBrowseBackground="autoplayBrowseBackground",t.autoplayBrowseHeroImmersive="autoplayBrowseHeroImmersive",t.userActionBrowseTileFocus="useractionBrowseTileFocus",t.userActionLiveGuide="userActionLiveGuide"}(j||(j={})),function(t){t.expandingTile="expandingTile",t.defaultTile="defaultTile",t.primary="primary",t.liveHubBackground="live-hub-background",t.liveHubWindow="live-hub-window"}(K||(K={})),function(t){t.Yes="YES",t.No="NO",t.Error="ERROR",t.NotSent="NOT_SENT"}(W||(W={})),function(t){t.DefaultTile="default-tile",t.ExpandedTile="expanding-tile",t.Main="main"}(q||(q={})),function(t){t.AutoAdvance="auto-advance",t.Autoplay="autoplay",t.AutoplayHeaderDetails="autoplay-header-details",t.AutoplayHeroImmersive="autoplay-hero-immersive",t.AutoplayHomescreen="autoplay-homescreen",t.AutoplayTile="autoplay-tile",t.CatchUpToLive="user-action-catch-up-to-live",t.ContinueWatching="continue-watching",t.FeedSwitch="feed-switch",t.LiveEdge="user-action-from-live",t.NextEpisode="next-episode",t.PlayFromBeginning="user-action-from-beginning",t.PlaylistTap="playlist-tap",t.UserAction="user-action",t.UserActionBrowseTilefocus="user-action-browse-tilefocus",t.UserActionHomescreen="user-action-homescreen",t.UserActionLiveGuide="user-action-live-guide",t.UserActionStandardArtVertical="user-action-standardartvertical",t.UserActionVerticalvideo="user-action-verticalvideo",t.UserAdvance="user-advance"}(X||(X={})),function(t){t.Optimizely="optimizely",t.WeaponX="weapon_x"}(Z||(Z={})),function(t){t.ClientSdkPlaybackParamsSchema="CLIENT_SDK_PLAYBACK_PARAMS_SCHEMA",t.M3u8PlaybackParamsSchema="M3U8_PLAYBACK_PARAMS_SCHEMA",t.StaticPBOPlaybackParamsSchema="STATIC_PBO_PLAYBACK_PARAMS_SCHEMA",t.ShieldPlaybackParamsSchema="SHIELD_PLAYBACK_PARAMS_SCHEMA",t.EdgeSdkPlaybackParamsSchema="EDGE_SDK_PLAYBACK_PARAMS_SCHEMA",t.NewEdgeSdkPlaybackParamsSchema="NEW_EDGE_SDK_PLAYBACK_PARAMS_SCHEMA"}(Q||(Q={})),function(t){t.dataSaverAutomatic="dataSaverAutomatic",t.dataSaverModerate="dataSaverModerate",t.dataSaverSaveData="dataSaverSaveData"}(J||(J={})),function(t){t.ONLINE="ONLINE",t.OFFLINE="OFFLINE",t.GROUPWATCH="GROUPWATCH",t.SHAREPLAY="SHAREPLAY",t.MULTICAST="MULTICAST",t.BACKGROUND_AUTOPLAY="BACKGROUND_AUTOPLAY"}(tt||(tt={})),function(t){t.CatchUpToLive="cutl",t.SportsCenterForYou="sc4u",t.Header="header"}(et||(et={})),function(t){t.low="LOW",t.medium="MED",t.high="HIGH",t.none="NONE"}(nt||(nt={})),function(t){t.FOUR_HOUR="4_HOUR",t.FIFTEEN_MIN="15_MIN"}(it||(it={})),function(t){t.Uninitialized="UNINITIALIZED",t.Initialized="INITIALIZED",t.Failed="FAILED"}(rt||(rt={})),function(t){t.Sd="SD",t.Hd="HD",t.Fhd="FHD",t.Uhd="UHD"}(ot||(ot={})),function(t){t.HevcDolbyVision20="HEVC_DOLBY_VISION_20",t.HevcDolbyVision8="HEVC_DOLBY_VISION_8",t.HevcDolbyVision5="HEVC_DOLBY_VISION_5",t.HevcHdr10Plus="HEVC_HDR10_PLUS",t.HevcHdr10="HEVC_HDR10",t.HevcSdr="HEVC_SDR",t.AvcSdr="AVC_SDR",t.Av1Sdr="AV1_SDR",t.Av1Hdr10="AV1_HDR10",t.Av1Hdr10Plus="AV1_HDR10_PLUS",t.Av1DolbyVision10="AV1_DOLBY_VISION_10",t.Vp9Sdr="VP9_SDR",t.Vp9Hdr10="VP9_HDR10"}(at||(at={}
5264)),function(t){t.AacStereo="AAC_STEREO",t.Eac3Stereo="EAC3_STEREO",t.Eac3FiveDotOne="EAC3_FIVE_DOT_ONE",t.Eac3SevenDotOne="EAC3_SEVEN_DOT_ONE",t.Eac3Atmos="EAC3_ATMOS",t.DtsX="DTS_X"}(st||(st={})),function(t){t.PlaybackStateChanged="PLAYBACK_STATE_CHANGED",t.MediaPreferencesApplied="MEDIA_PREFERENCES_APPLIED",t.MarkersChanged="MARKERS_CHANGED",t.MarkerReached="MARKER_REACHED",t.TimelineProgress="TIMELINE_PROGRESS",t.ProgramStarted="PROGRAM_STARTED",t.ProgramProgress="PROGRAM_PROGRESS",t.ProgramEnded="PROGRAM_ENDED",t.ProgramsChanged="PROGRAMS_CHANGED",t.ProgramAuthorizeEvent="PROGRAM_AUTHORIZE_EVENT",t.RecordingStatusChanged="RECORDING_STATUS_CHANGED",t.BreakStarted="BREAK_STARTED",t.BreakProgress="BREAK_PROGRESS",t.BreakEnded="BREAK_ENDED",t.BreakError="BREAK_ERROR",t.BreaksChanged="BREAKS_CHANGED",t.BreakContentStarted="BREAK_CONTENT_STARTED",t.BreakContentEnded="BREAK_CONTENT_ENDED",t.BreakContentSequenceStarted="BREAK_CONTENT_SEQUENCE_STARTED",t.BreakContentSequenceEnded="BREAK_CONTENT_SEQUENCE_ENDED",t.DxcRendererLoaded="DXC_RENDERER_LOADED",t.DxcRendererStarting="DXC_RENDERER_STARTING",t.DxcRendererStarted="DXC_RENDERER_STARTED",t.DxcRendererUnloaded="DXC_RENDERER_UNLOADED",t.AutoPlayBlocked="AUTO_PLAY_BLOCKED",t.NielsenId3FrameEvent="NIELSEN_ID3_FRAME"}(lt||(lt={})),function(t){t.MainContent="MAIN_CONTENT",t.AdServiceContent="AD_SERVICE_CONTENT",t.AuxiliaryContent="AUXILIARY_CONTENT"}(ct||(ct={})),function(t){t.PassThroughAds="PASSTHROUGH_ADS",t.Slate="SLATE",t.PassthroughContent="PASSTHROUGH_CONTENT",t.DynamicAds="DYNAMIC_ADS",t.VideoCreative="VideoCreative",t.InstreamDxcCreative="InstreamDxcCreative",t.OutstreamDxcCreative="OutstreamDxcCreative",t.Slug="SLUG",t.Bumper="BUMPER",t.ContentPromo="CONTENT_PROMO",t.BrandBumper="BRAND_BUMPER",t.NetworkBumper="NETWORK_BUMPER",t.NoahCard="NOAH_CARD",t.TuneInCard="TUNE_IN_CARD"}(dt||(dt={})),function(t){t.Point="POINT",t.Range="RANGE"}(ut||(ut={})),function(t){t.Vod="VOD",t.LiveComplete="LIVE_COMPLETE",t.LiveSlide="LIVE_SLIDE"}(pt||(pt={})),function(t){t.Start="START",t.LiveEdge="LIVE_EDGE",t.Bookmark="BOOKMARK",t.Position="POSITION"}(ht||(ht={})),function(t){t.Scheduled="scheduled",t.Pretune="pretune",t.Playing="playing",t.Posttune="posttune",t.Complete="complete"}(mt||(mt={})),function(t){t.Created="CREATED",t.Preparing="PREPARING",t.Prepared="PREPARED",t.Starting="STARTING",t.Playing="PLAYING",t.Paused="PAUSED",t.Rebuffering="REBUFFERING",t.Seeking="SEEKING",t.Complete="COMPLETE",t.Error="ERROR"}(gt||(gt={})),function(t){t.User="USER",t.Player="PLAYER",t.ApplicationInactivity="APPLICATION_INACTIVITY",t.Scrub="SCRUB"}(vt||(vt={})),function(t){t.User="USER",t.Player="PLAYER"}(ft||(ft={})),function(t){t.User="USER",t.Player="PLAYER",t.Error="ERROR",t.Background="BACKGROUND",t.ApplicationExit="APPLICATION_EXIT",t.ApplicationInactivity="APPLICATION_INACTIVITY"}(bt||(bt={})),function(t){t.Restart="RESTART",t.GoLive="GO_LIVE",t.Scrub="SCRUB",t.SkipForwardNext="SKIP_FORWARD_NEXT",t.SkipForwardMilestone="SKIP_FORWARD_MILESTONE",t.SkipForwardIncremental="SKIP_FORWARD_INCREMENTAL",t.SkipBackwardIncremental="SKIP_BACKWARD_INCREMENTAL",t.Looping="LOOPING",t.TrackSelectionChanged="TRACK_SELECTION_CHANGED"}(_t||(_t={})),function(t){t.Applied="APPLIED",t.Deferred="DEFERRED",t.Blocked="BLOCKED"}(Et||(Et={})),function(t){t.BreakContentClickUrl="BREAK_CONTENT_CLICK_URL"}(yt||(yt={})),function(t){t.DxcChoiceBase="DXC_CHOICE",t.DxcGatewayGo="DXC_GATEWAY_GO",t.DxcPauseBase="DXC_PAUSE_BASE",t.DxcPauseExpandable="DXC_PAUSE_EXPANDABLE",t.VideoCreative="VideoCreative"}(St||(St={})),function(t){t.Hdr10Plus="HDR10_PLUS",t.Hdr10="HDR10",t.DolbyVision="DOLBY_VISION",t.DolbyVision20="DOLBY_VISION20",t.Sdr="SDR"}(Tt||(Tt={})),function(t){t.RecordingOffset="RECORDING_OFFSET",t.None="NONE"}(Ct||(Ct={})),function(t){t.NativeMediaElementPlaybackParamsSchema="NATIVE_MEDIA_ELEMENT_PLAYBACK_PARAMS_SCHEMA"}(wt||(wt={})),function(t){t.Detached="DETACHED"}(At||(At={}));const It={...bt,...At},Ot="@EVENT/ERROR",Rt={MEDIA_ERROR:`${Ot}/MEDIA_ERROR`,PLAYBACK_FAILED_PERMISSION_DENIED:`${Ot}/PLAYBACK_FAILED_PERMISSION_DENIED`,CHROMECAST_ERROR:`${Ot}/CHROMECAST_ERROR`};var xt;!function(t){t.INACTIVITY_TIMEOUT="inactivityTimeout",t.PLAY="play",t.PAUSE="pause",t.TOGGLE_PLAY_PAUSE="togglePlayPause",t.RESTART="restart",t.RESTART_ACTIVITY_STATUS_TIMER="restartActivityStatusTimer",t.PLAY_NEXT="playNext",t.SEEK="seek",t.SEEK_TO_LIVE="seekToLive",t.SEEK_TO_START="seekToStart",t.QUICK_FAST_FORWARD="quickFastForward",t.QUICK_REWIND="quickRewind",t.SCRUB="scrub",t.MUTE="mute",t.UNMUTE="unmute",t.TOGGLE_MUTE="toggleMute",t.SET_VOLUME="setVolume",t.INCREASE_VOLUME="increaseVolume",t.DECREASE_VOLUME="decreaseVolume",t.CAPTIONS_TRACK_SELECTION="captionsTrackSelection",t.ENABLE_CAPTIONS="enableCaptions",t.DISABLE_CAPTIONS="disableCaptions",t.TOGGLE_CAPTIONS="toggleCaptions",t.FULLSCREEN_ENTER="fullscreenEnter",t.FULLSCREEN_EXIT="fullscreenExit",t.DIM_CONTROLS="dimControls",t.BLUR_VIDEO="blurVideo",t.SHIFT_CAPTION_LAYOUT="shiftCaptionLayout",t.NOTIFY_CONTROLS_DISABLED="notifyControl
5264sDisabled",t.TOGGLE_PROGRESS_BAR_LIVE_LABEL="toggleProgressBarLiveLabel",t.TOGGLE_CURRENTLY_LIVE_OVERLAY="toggleCurrentlyLiveOverlay",t.MOUSE_EVENT="mouseEvent",t.KEYBOARD_EVENT="keyboardEvent",t.FOCUS_EVENT="focusEvent",t.POINTER_EVENT="pointerEvent",t.TOGGLE_MODAL="toggleModal",t.MODAL_EVENT="modalEvent",t.OVERLAY_EVENT="overlayEvent",t.NORMAL_MODE="normalMode",t.PIP_MINIMIZE="pipMinimize",t.CLOSE_PLAYER="closePlayer",t.CONTINUOUS_PLAY_NEXT="continuousPlayNext",t.CONTINUOUS_PLAY_SHOW="continuousPlayShow",t.CONTINUOUS_PLAY_HIDE="continuousPlayHide",t.END_CARD_SHOWN="endCardShown",t.END_CARD_PLAY_NEXT="endCardPlayNext",t.INTERACTION_EVENT="interactionEvent",t.SHARE_MENU_CLICK="shareMenuClick",t.SHARE="share",t.EXPANDABLE_METADATA_CHANGE="expandableMetadataChange",t.INTERSTITIAL_AD_CLICKED="interstitialAdClicked",t.CUTL_NEXT="cutlNext",t.CUTL_PREV="cutlPrev",t.CUTL_JUMP_TO_LIVE="cutlJumpToLive",t.ENABLE_AUTOPLAY="enableAutoplay",t.SET_TIMED_TEXT_APPEARANCE="setTimedTextAppearance",t.SET_TIMED_TEXT_REGION="setTimedTextRegion",t.SKIP_PROMO="skipPromo",t.AUDIO_TRACK_SELECTION="audioTrackSelection",t.MULTIVIEW_FEED_CHANGE_REQUEST="multiviewFeedChangeRequest",t.GET_IMAGE_URL="getImageUrl",t.DISPOSE="dispose",t.MEDIA_ELEMENT_DISPATCH="mediaElementDispatch",t.MEDIA_ELEMENT_GET_STATE="mediaElementGetState"}(xt||(xt={}));const Lt=Object.values(xt);function kt(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("pointer-actions",{}),(0,i.jsx)("end-card-overlay",{bottomTimer:!0}),(0,i.jsx)("ad-badge-overlay",{}),(0,i.jsx)("controls-overlay",{}),(0,i.jsx)("toast-notification",{})]})}var Pt=function({CustomOverlay:t}){return(0,i.jsx)(i.Fragment,{children:t||(0,i.jsx)(kt,{})})};const Dt="FittWebPlayerContainer",Nt=[o.oi,o.oC,t=>{if(t!==o.jq&&!(t.prototype instanceof o.jq))throw new Error("UiKitExtension - BaseClass must be or derive from CoreBrowserPlayer");return class extends t{initialize(t){super.initialize(t),(0,l.m)({componentName:"fitt-web-player-ui"})}}},o.TX,o._O,o.nt];(0,o.IW)({name:"disney-web-player",extensions:[...Nt]});const Mt=(0,r.forwardRef)((({theme:t,classNames:e,environment:n=o.qA.production,playbackCriteria:u,playerConfiguration:p,sdkSession:h,children:m,listeners:v={},interactionListeners:b={},dismissUrl:_,errorWrapper:E,mediaItem:y,presenter:S,id:T,webPlayerElementId:I,shouldActivateDeferredSession:O=!0,customUIOverlay:R,loaderSvgUrl:x,includeErrorDetails:L=!1,...k},P)=>{const[D,N]=(0,r.useState)(void 0),[M,U]=(0,r.useState)(!1),B=(0,r.useRef)(!1),[V,F]=(0,r.useState)(void 0),z=(0,r.useRef)(),$=(0,r.useRef)(null),[H,G]=(0,r.useState)(void 0),[Y,j]=(0,r.useState)(void 0),[K,W]=(0,r.useState)(void 0),[q,X]=(0,r.useState)(void 0),[Z,Q]=(0,r.useState)(!1),[J,tt]=(0,r.useState)(k?.imgSrc||k?.img||k?.thumbnail),et=(0,r.useRef)(!1),nt=(0,r.useRef)(void 0),it=(0,r.useRef)(null),rt=y?.overlayImage||null,ot={},at={},st=y?.isVerticalVideoFeed||!1,lt=(0,r.useRef)(null),[ct,dt]=(0,r.useState)(!1),ut=a(Dt,e),pt=k?.onVideoChange,ht=(({playerEl:t,uiKitEl:e,container:n="",theme:i="default"})=>{const[o,a]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(t&&e){const r=t?.stateStore?.getState().toJS();e.initialize({container:n,dictionary:{video_navigation_across_ad_pod_message:"Video will play from here after the break"},initialState:{mediaClient:r?.player?.mediaClient,playback:r?.player?.extensions?.playback,timeline:r?.player?.extensions?.timecode},mediaElement:t,mediaPlayer:{mediaPlayerApi:t.mediaPlayer,tech:"Core"},theme:i});const o=()=>{a(s.TRUE)},l=()=>{a(s.FALSE)};return e?.updateComplete?.then((()=>{t?.mediaPlayer.on(C.PLAYBACK.MEDIA_STARTED,o)})),t?.mediaPlayer.on(C.PLAYBACK.MEDIA_CLIENT_DISPOSED,l),()=>{t?.mediaPlayer.off(C.PLAYBACK.MEDIA_STARTED,o),t?.mediaPlayer.off(C.PLAYBACK.MEDIA_CLIENT_DISPOSED,l)}}}),[n,t,e]),o})({container:Y,theme:t,playerEl:V,uiKitEl:H});rt&&!ht&&(ot.backgroundImage=`url(${rt})`,ot.backgroundSize="cover",ot.backgroundPosition="center",at.zIndex=1),x&&(at.backgroundImage="none"),(0,r.useEffect)((()=>{N({playbackCriteria:u})}),[u]);const mt=(0,r.useMemo)((()=>u&&st&&lt.current?{...u,playbackSessionCreationParameters:{...u.playbackSessionCreationParameters,mediaPreferences:{...u.playbackSessionCreationParameters?.mediaPreferences,timedText:{...u.playbackSessionCreationParameters?.mediaPreferences?.timedText,enabled:(0,s.cbool)(localStorage.getItem(g)),timedTextRegionOverride:lt.current}}}}:u),[u,st,lt.current]);return(0,r.useEffect)((()=>
5264{if(!M&&p&&u&&h&&V&&!B?.current){V.initialized,h.isInitialized;const t=()=>{U(!0),V?.mediaPlayer&&($.current=new f(V.mediaPlayer),$.current&&Object.keys(v)?.forEach((t=>{$?.current?.registerListener(t,v[t])})))};localStorage.setItem("enableQAMode","true"),V.initialize&&(B.current=!0,V.initialize({configuration:p?.configuration,sdkSession:h}),t())}}),[M,p,u,h,V]),(0,r.useEffect)((function(){return()=>{const t=z.current;t&&t.mediaPlayer&&($.current&&$.current.removeListeners?.(),t.mediaPlayer.dispose())}}),[]),(({id:t,listenForExternalControls:e,playableId:n,playerInitialized:i,playerEl:o,deferredSessionRef:a})=>{(0,r.useEffect)((()=>{if(e&&i){const e=o?.mediaPlayer,n=e?.captions?.preferences,i=(i,r)=>{const l=r?.type,c=r?.id;if(t===c)switch(l){case"play":(async()=>{await Promise.resolve();const t=a?.current;await(async({deferredSession:t})=>{t?.isDeferred&&(await async function(){0!==w.size&&await Promise.all([...w].map((t=>t.catch((t=>{console.warn("[disney-media-player] deferred session deactivate failed; continuing PLAY",t)})))))}(),t.isActivated||(t.wasDeactivated?await t.reconnect().catch((t=>{console.warn("[disney-media-player] deferred session reconnect failed; continuing PLAY",t)})):t.activate()))})({deferredSession:t}),o?.__vvPresented||"function"!=typeof o?.dcf?.trackPresented||(o.__vvPresented=s.TRUE,o.dcf.trackPresented()),await(e?.play())})();break;case"pause":(async()=>{const t=a?.current;t?.isDeferred&&t.isActivated&&await t.deactivate().catch((t=>{console.warn("[disney-media-player] deferred session deactivate failed; continuing PAUSE",t)})),e?.pause()})();break;case"mute":e?.volume?.mute();break;case"unmute":e?.volume?.unmute();break;case"captionsOn":n&&(e.captions.preferences={timedText:{enabled:s.TRUE}});break;case"captionsOff":n&&(e.captions.preferences={timedText:{enabled:s.FALSE}});break;case"stopped":o?.dcf?.mediaStopped();break;default:console.warn(`Unhandled event type: ${l}`)}},r=()=>{},l=()=>{};return e?.on(C.PLAYBACK.MEDIA_STARTED,r),e?.on(C.PLAYBACK.MEDIA_COMPLETED,l),d.on(A,i),()=>{e?.off(C.PLAYBACK.MEDIA_STARTED,r),e?.off(C.PLAYBACK.MEDIA_COMPLETED,l),d.off(A,i)}}}),[a,t,e,n,i,o])})({id:T,playableId:q,playerEl:V,playerInitialized:M,listenForExternalControls:k?.listenForExternalControls,deferredSessionRef:it}),(({playerEl:t,webPlayerElementId:e,shouldActivateDeferredSession:n=!0,deferredSessionRef:i,playbackCriteria:a,playerInitialized:l,presenter:c,setErrorString:d,setPrepareAndStartInitiated:u,onVideoChange:p,setBackgroundImage:h,isContinuousPlayRef:m,includeErrorDetails:v=!1,errorDetailRef:f,verticalCaptionsRef:b})=>{const _=(0,r.useCallback)((e=>{let n=!1;try{n=(0,s.cbool)(window.localStorage.getItem(g))}catch(t){n=!1}t?.mediaPlayer?.playbackSession?.activate(e,{timedText:{enabled:n,timedTextRegionOverride:b.current}})}),[t,b]),E=(0,r.useCallback)((async()=>{await(t?.mediaPlayer?.playbackSession?.deactivate())}),[t]),y=(0,r.useRef)({started:!1,mediaId:void 0,startParams:null}),S=(0,r.useCallback)((e=>{const r={isDeferred:!0,isActivated:!1,wasDeactivated:!1,activate:()=>{_(e),r.isActivated=!0,r.wasDeactivated=!1},reconnect:async()=>{const n=y.current.startParams;n?(await(t?.start(n.startPositionType,n.authorizationData,n.startPositionMs)),_(e),r.isActivated=!0,r.wasDeactivated=!1):r.activate()},deactivate:async()=>{r.isActivated=!1,r.wasDeactivated=!0,await function(t){const e=function(t){return new Promise(((e,n)=>{const i=setTimeout((()=>{n(new Error("deferred session deactivate timed out after 3000ms"))}),3e3);t.then((()=>{clearTimeout(i),e()})).catch((t=>{clearTimeout(i),n(t)}))}))}(t);return w.add(e),e.finally((()=>{w.delete(e)}))}(E())}};i&&(i.current=r),n&&r.activate()}),[_,E,i,t,n]),T=(0,r.useCallback)((t=>{const e=t?.error;if(e)return d(e),s.TRUE}),[d]);(0,r.useEffect)((()=>{const n={...a},r=async(n,r)=>{const o=(0,s.cbool)(c?.isProgramBoundary),a=r?.metadata?.nowPlaying;if((!y.current.started||y.current.mediaId!==a)&&l&&!o&&(t?.setMediaPlaybackCriteria&&(u(n?.startType||c?.viewModel?.mediaItem?.startType),await t.setMediaPlaybackCriteria(r)),!r?.mediaParams?.autoPrepareAndStart)){const n=r?.mediaParams,o=n?.startPositionType,l=n?.authorizationData||s.emptyAry,u=n?.startPositionMs,p=(0,s.cbool)(r?.playbackSessionCreationParameters?.shouldDeferMediaElementAttachment),h=Array.isArray(l)?(0,s.first)(l):l;try{if(T(h))return;y.current.startParams={startPositionType:o,authorizationData:h,startPositionMs:u},p&&await(t?.prepare(o,h,u)),await(t?.start(o,h,u)),y.current.started=!0,y.current.mediaId=a,p&&e?S(e):i&&!p&&(i.current=null)}catch(e){y.current.started=!1,y.current.mediaId=void 0,y.current.startParams=null,i&&(i.current=null);const n=e?.name,r=v?f?.current:void 0;await t.mediaPlayer.playbackSession.release(It.Error),d(c?.getSDKError(n,r))}}},u=(t="")=>{const e=((0,s.getGlobal)()||{}).__dataLayer;e?.page&&t&&(e.page={...e.page,start_type:t})},g=async({upNextContent:t})=>
5264{const e=c?.viewModel?.mediaItem,n=e?.id;t.metadata.nextVideoUrl?window.location.replace(t.metadata.nextVideoUrl):(m.current=s.TRUE,h(e?.images?.[0]?.url),p&&p(n),r(e,t))};return t?.mediaPlayer?.on(o.DO.PLAY_NEXT,g),r({},n),()=>{t?.mediaPlayer?.off(o.DO.PLAY_NEXT,g)}}),[e,i,S,T,t,a,l,c,d,u,p,h,m,v])})({playerEl:V,webPlayerElementId:I,shouldActivateDeferredSession:O,deferredSessionRef:it,playbackCriteria:mt,playerInitialized:M,presenter:S,setErrorString:W,setPrepareAndStartInitiated:Q,onVideoChange:pt,setBackgroundImage:tt,isContinuousPlayRef:et,includeErrorDetails:L,errorDetailRef:nt,verticalCaptionsRef:lt}),(({playerEl:t,playerInitialized:e,prepareAndStartInitiated:n,presenter:i,setErrorString:o,includeErrorDetails:a=!1,errorDetailRef:s})=>{(0,r.useEffect)((()=>{if(e){const e=t=>{const e=t?.playbackError,n=e?.error?.name||"keynotfoundexception",r=a?e?.dmpErrorString:void 0;s&&(s.current=r),o(i?.getSDKError(n,r))};return t?.mediaPlayer?.on(Rt.MEDIA_ERROR,e),()=>{t?.mediaPlayer?.off(Rt.MEDIA_ERROR,e)}}}),[e,t,n,i,o,a])})({prepareAndStartInitiated:Z,playerEl:V,playerInitialized:M,presenter:S,setErrorString:W,includeErrorDetails:L,errorDetailRef:nt}),(({uiKitEl:t})=>{(0,r.useEffect)((()=>{const e=window.localStorage,n=t=>{e.setItem(g,(0,s.cbool)(t?.enabled).toString())};if(t)return t.on(l.l.CAPTIONS_TOGGLE,n),()=>{t.off(l.l.CAPTIONS_TOGGLE,n)}}),[t])})({uiKitEl:H}),(({uiKitEl:t,interactionListeners:e})=>{(0,r.useEffect)((()=>{if(!t)return;const n=Object.entries(e).filter((([t,e])=>((t,e)=>Lt.includes(t)&&"function"==typeof e)(t,e)));return n.forEach((([e,n])=>t.on(e,n))),()=>{n.forEach((([e,n])=>t.off(e,n)))}}),[t,e])})({uiKitEl:H,interactionListeners:b}),(({onVideoChange:t,playerEl:e,playerInitialized:n,presenter:i})=>{(0,r.useEffect)((()=>{const t=i?.getAuthorizationPayload,r=i?.fetchAndSetVideo,o=async(t,e,n)=>{if(e){let n=t?.viewModel?.mediaItem;await(t?.loadPlaybackCriteria?.(n,e))}t?.isProgramBoundary&&t?.updateStartType?.("Live Show Boundary"),n&&await(t?.loadPlaybackCriteria?.(n))};if(e&&n){const n=async()=>{if(i.isProgramBoundary=s.TRUE,r){let t=await Promise.all([r()]),n=t&&(0,s.first)(t);await o(i,s.FALSE,n);let a=i?.viewModel?.playbackCriteria,l=a?.metadata,c=a?.playbackContext?.playbackSessionCreationParameters?.telemetryParameters;c&&e?.updateTelemetryParameters?.(c),l&&e?.mediaPlayer?.updatePlaybackCriteriaMetadata(l)}};let a;return t&&(a=async()=>{let n=await Promise.all([t()]),r=n&&(0,s.first)(n);await o(i,r,s.FALSE);const a=i?.viewModel,l=a?.playbackCriteria,c=l?.mediaParams?.authorizationData;c&&e?.updateAuthorization(c)}),e?.mediaPlayer?.on(C.PLAYBACK.PROGRAM_BOUNDARY,n),e?.mediaPlayer?.on(C.PLAYBACK.PROGRAM_AUTHORIZE,a),i.isProgramBoundary=s.FALSE,()=>{e?.mediaPlayer?.off(C.PLAYBACK.PROGRAM_AUTHORIZE,a),e?.mediaPlayer?.off(C.PLAYBACK.PROGRAM_BOUNDARY,n)}}}),[t,n,e,i])})({onVideoChange:pt,playerEl:V,playerInitialized:M,presenter:S}),(0,r.useEffect)((()=>{if(!st||!lt.current)return;const t=()=>{const t=lt.current;if(!t)return;const e=t.querySelectorAll(".hive-subtitle-renderer-cue"),n=Array.from(e).some((t=>t.textContent&&t.textContent.trim().length>0));dt(n)},e=new MutationObserver(t);return e.observe(lt.current,{childList:!0,subtree:!0,characterData:!0}),t(),()=>{e.disconnect()}}),[st,lt.current]),(0,i.jsx)(c,{errorString:K||"",dismissUrl:_||"",className:ut,errorWrapper:E,children:(0,i.jsxs)("div",{className:ut,"data-testid":"fitt-web-player",ref:t=>j(t),children:[(0,i.jsx)("div",{className:`${Dt}-loader`,style:at,children:x&&(0,i.jsx)("object",{type:"image/svg+xml",data:x})}),st&&(0,i.jsx)("div",{ref:lt,className:a(`${Dt}-vertical-captions`,{"no-active-captions":!ct})}),(0,i.jsxs)("div",{className:`${Dt}-player`,style:ot,children:[(0,i.jsx)("disney-web-player",{id:I||void 0,ref:t=>{z.current=t,F(t)}}),m]}),M&&(0,i.jsx)("fitt-web-player-ui",{ref:t=>G(t),children:ht&&(0,i.jsx)(Pt,{CustomOverlay:R})})]})})}));var Ut=Mt,Bt=n(68949),Vt=n(38585);const Ft={};let zt;s.mix,s.rfalse,s.noop,s.passThru,Bt.configure({useProxies:"never",enforceActions:"observed",computedRequiresReaction:!1,reactionRequiresObservable:!1,observableRequiresReaction:!1,disableErrorBoundaries:!1}),zt={runInAction:function(){let t;if(t=2===arguments.length?arguments[1]:arguments[0],t)return Bt.runInAction(t)},action:Bt.action,observable:Bt.observable,toJS:function(t,e=!1){return Bt.toJS(t,e)},makeObservable:Bt.makeObservable,makeAutoObservable:Bt.makeAutoObservable,extendObservable:function(t,e,n,i){return Bt.runInAction((()=>{Bt.extendObservable(t,Ft);const r=Object.getOwnPropertyDescriptors(e),o=Object.create(Object.getPrototypeOf(e));return Object.keys(r).forEach((n=>{Bt.isObservableProp(t,n)?Bt.set(t,n,e[n]):Object.defineProperty(o,n,r[n])})),Bt.extendObservable(t,o,n,i),t}))},when:Bt.when,autorun:Bt.autorun,reaction:Bt.reaction,observe:Bt.observe,isObservable:Bt.isObservable,isObservableArray:Bt.isObservableArray,isObservableMap:Bt.isObservableMap,isAction:Bt.isAction,isComputed:Bt.isComputed,isComputedProp:Bt.isComputedProp,computed:Bt.computed,configure:Bt.configure,inject:Vt.inject,observer:function(t){let e,n=t.contextTypes,i=(0,Vt.observer)(t);return n&&(e=i.type,e&&(e.contextTypes=n)),i},Provider:Vt.Provider,PropTypes:Vt.PropTypes,comparer:Bt.comparer,$mobx:Bt.$mobx,isObservableProp:Bt.isObservableProp};const{runInAction:$t,action:Ht,observable:Gt,toJS:Yt,makeObservable:jt,makeAutoObservable:Kt,extendObservable:Wt,when:qt,autorun:Xt,reaction:Zt,observe:Qt,isObservable:Jt,isObservableArray:te,isObservableMap:ee,isAction:ne,isComputed:ie,isComputedProp:re,computed:oe,configure:ae,inject:se,observer:le,Provider:ce,PropTypes:de,comparer:ue,$mobx:pe,isObservableProp:he}=zt,me=[],ge={CUSTOMER_KEY:{abcnews:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",otv:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",abc:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",fxn:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",fx:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",fxx:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",fxm:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",ff:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",ngtv:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",ngc:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",ngw:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",fast:"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",espn:"885e2dd94adb263c2321d2d0f3778d18523bce4a"},GATEWAY_URL:"https://6f4780f3f1c410159773174fc103819d3763406e.ts-testonly.conviva.com",AUTO_START:"autostart",MANUAL:"manual",DMED:"dmed",BRAND:{abcnews:"abc_news",otv:"abc_otv",abc:"abc",fxn:"fx",fx:"fx",fxx:"fx",fxm:"fx",ff:"freeform",ngtv:"natgeo_tv",ngc:"natgeo_tv",ngw:"natgeo_tv",fast:"abc",espn:"espn_com",natgeo:"natgeo_mag",natgeokids:"natgeo_kid"},APP_NAME:{abcnews:"abc_news WEB",otv:"abc_otvWEB",abc:"ABC WEB",fxn:"FX Networks WEB",fx:"FX Networks WEB",fxx:"FXX WEB",fxm:"FX Movie Channel WEB",ff:"Freeform WEB",ngtv:"National Geographic Chanel WEB",ngc:"National Geographic Chanel WEB",ngw:"National Geographic Wild WEB",fast:"Fast WEB",espn:"Espn Web - Fitt",disney:"Disney Now WEB",disneyjunior:"Disney Now WEB",disneyxd:"Disney Now WEB",natgeo:"National Geographic WEB",natgeokids:"National Geographic Kids WEB"},STREAM_TYPES:{EVENT:"event",LINEAR:"linear",LINEAR_REAIR:"linearReair",LIVE:"live",VOD:"VOD"}},ve="linear",fe="LIVE";
5264var be,_e,Ee,ye,Se,Te,Ce,we,Ae,Ie,Oe,Re,xe,Le,ke,Pe,De,Ne,Me,Ue,Be,Ve,Fe,ze,$e,He,Ge,Ye,je,Ke,We,qe,Xe,Ze,Qe,Je,tn,en,nn,rn,on,an,sn,ln,cn,dn,un,pn,hn,mn,gn,vn,fn,bn,_n,En,yn,Sn,Tn,Cn,wn=class{constructor({mediaItem:t,authorization:e,sessionToken:n,configAppStores:i,playerProps:r}){this.mediaItem=t,this.configAppStores=i,this.playerProps=r,this.authorization=e,this.sessionToken=n}buildPlaybackCriteria(){}};!function(t){t.CURRENT_PLAYBACK_STATE_CHANGED="CURRENT_PLAYBACK_STATE_CHANGED",t.MEDIA_LOADEDMETADATA="MEDIA_LOADEDMETADATA",t.MEDIA_KEYS_SET="MEDIA_KEYS_SET",t.DRM_LICENSE_LOADED="DRM_LICENSE_LOADED",t.DATE_RANGES_PARSED="DATE_RANGES_PARSED",t.DATERANGE_ENTER="DATERANGE_ENTER",t.TIMED_METADATA="TIMED_METADATA",t.TIMELINE_CHANGED="TIMELINE_CHANGED",t.MEDIA_PREFERENCES_APPLIED="MEDIA_PREFERENCES_APPLIED",t.AUTO_PLAY_BLOCKED="AUTO_PLAY_BLOCKED",t.RECONNECT="RECONNECT",t.INTERSTITIAL_EVENT_RESOLVED="BREAK_RESOLVED",t.INTERSTITIAL_EVENT_STARTED="BREAK_STARTED",t.INTERSTITIAL_EVENT_ENDED="BREAK_ENDED",t.INTERSTITIAL_ASSET_EVENT_LOAD_STARTED="BREAK_ASSET_LOAD_STARTED",t.INTERSTITIAL_ASSET_EVENT_STARTED="BREAK_ASSET_STARTED",t.INTERSTITIAL_ASSET_EVENT_ENDED="BREAK_ASSET_ENDED",t.INTERSTITIAL_ASSET_EVENT_ERROR="BREAK_ASSET_ERROR",t.INTERSTITIAL_ASSET_EVENT_PLAY_PROGRESS="BREAK_ASSET_PLAY_PROGRESS",t.INTERSTITIAL_ASSET_EVENT_PLAY_PROGRESS_25="BREAK_ASSET_PLAY_PROGRESS_25",t.INTERSTITIAL_ASSET_EVENT_PLAY_PROGRESS_50="BREAK_ASSET_PLAY_PROGRESS_50",t.INTERSTITIAL_ASSET_EVENT_PLAY_PROGRESS_75="BREAK_ASSET_PLAY_PROGRESS_75",t.RENDITION_PLAYLIST_PARSED="RENDITION_PLAYLIST_PARSED",t.TIMED_TEXT_RENDITION_UPDATED="TIMED_TEXT_RENDITION_UPDATED",t.CURRENT_ASSET_PLAYER_UPDATED="CURRENT_ASSET_PLAYER_UPDATED",t.PLAYER_ERROR="PLAYER_ERROR",t.MULTIVARIANT_PLAYLIST_FETCHED="MULTIVARIANT_PLAYLIST_FETCHED",t.MEDIA_PLAYLIST_FETCHED="MEDIA_PLAYLIST_FETCHED",t.DRM_LICENSE_FETCHED="DRM_LICENSE_FETCHED",t.ASSET_SOURCE_CHANGED="ASSET_SOURCE_CHANGED"}(be||(be={})),function(t){t.Sd="SD",t.Hd="HD",t.Fhd="FHD",t.Uhd="UHD"}(_e||(_e={})),function(t){t.ENCOUNTER="ENCOUNTER",t.SEEK="SEEK"}(Ee||(Ee={})),function(t){t.MULTIVARIANT_PLAYLIST="MULTIVARIANT_PLAYLIST",t.MEDIA_PLAYLIST_VIDEO="MEDIA_PLAYLIST_VIDEO",t.MEDIA_PLAYLIST_AUDIO="MEDIA_PLAYLIST_AUDIO",t.MEDIA_PLAYLIST_SUBTITLES="MEDIA_PLAYLIST_SUBTITLES",t.MEDIA_SEGMENT_VIDEO="MEDIA_SEGMENT_VIDEO",t.MEDIA_SEGMENT_AUDIO="MEDIA_SEGMENT_AUDIO",t.MEDIA_SEGMENT_SUBTITLES="MEDIA_SEGMENT_SUBTITLES",t.INIT_SECTION_VIDEO="INIT_SECTION_VIDEO",t.INIT_SECTION_AUDIO="INIT_SECTION_AUDIO",t.INIT_SECTION_SUBTITLES="INIT_SECTION_SUBTITLES",t.DRM_LICENSE="DRM_LICENSE",t.DRM_CERTIFICATE="DRM_CERTIFICATE",t.DECRYPTION_KEY="DECRYPTION_KEY",t.VTT_SUBTITLES="VTT_SUBTITLES"}(ye||(ye={})),function(t){t.CREATED="CREATED",t.PREPARING="PREPARING",t.PREPARED="PREPARED",t.STARTING="STARTING",t.PLAYING="PLAYING",t.PAUSED="PAUSED",t.REBUFFERING="REBUFFERING",t.SEEKING="SEEKING",t.COMPLETE="COMPLETE",t.ERROR="ERROR"}(Se||(Se={})),function(t){t[t.MEDIA_PLAYLIST_LOAD_FAILURE=1234]="MEDIA_PLAYLIST_LOAD_FAILURE",t[t.SEGMENT_LOAD_FAILURE=5678]="SEGMENT_LOAD_FAILURE"}(Te||(Te={})),function(t){t.READY="READY",t.RESOLVING="RESOLVING",t.RESOLVED="RESOLVED"}(Ce||(Ce={})),function(t){t.Interstitial="com.apple.hls.interstitial",t.BreakV1="com.disney.media.break.v1",t.ChannelUpdateV1="com.disney.media.channel-update.v1"}(we||(we={})),function(t){t.NIELSEN_ID3_FRAME="NIELSEN_ID3_FRAME"}(Ae||(Ae={})),function(t){t.ABORTING_CYCLE_BUFFER="ABORTING_CYCLE_BUFFER",t.ABORTING_APPENDING_SEGMENT="ABORTING_APPENDING_SEGMENT",t.ABORTING_PENDING_MEDIASOURCE="ABORTING_PENDING_MEDIASOURCE",t.ADDING_CLOSED_CAPTION_CUES="ADDING_CLOSED_CAPTION_CUES",t.APPENDING_BUFFER_TO_MEDIA_SOURCE_ERROR="APPENDING_BUFFER_TO_MEDIA_SOURCE_ERROR",t.APPENDING_SEGMENT="APPENDING_SEGMENT",t.ATTACHING_MEDIASOURCE="ATTACHING_MEDIASOURCE",t.ATTACHING_MEDIASOURCE_ERROR="ATTACHING_MEDIASOURCE_ERROR",t.ATTEMPT_ADDING_AGGREGATED_KEY_SESSION="ATTEMPT_ADDING_AGGREGATED_KEY_SESSION",t.AWAITING_BUFFER_DISPOSAL="AWAITING_BUFFER_DISPOSAL",t.BUFFER_CONTROLLER_INITIAL_STATE="BUFFER_CONTROLLER_INITIAL_STATE",t.CREATING_AUDIO_SOURCE_BUFFER="CREATING_AUDIO_SOURCE_BUFFER",t.CREATING_BUFFER_DISPOSE_PROMISES="CREATING_BUFFER_DISPOSE_PROMISES",t.CLEARING_DRM_SESSIONS="CLEARING_DRM_SESSIONS",t.CREATING_MEDIA_SOURCE="CREATING_MEDIA_SOURCE",t.CREATING_VIDEO_SOURCE_BUFFER="CREATING_VIDEO_SOURCE_BUFFER",t.CYCLING_AUDIO_BUFFER="CYCLING_AUDIO_BUFFER",t.CYCLING_AUDIO_BUFFER_ERROR="CYCLING_AUDIO_BUFFER_ERROR",t.CYCLING_VIDEO_BUFFER="CYCLING_VIDEO_BUFFER",t.CYCLING_VIDEO_BUFFER_ERROR="CYCLING_VIDEO_BUFFER_ERROR",t.DETACHING_MEDIASOURCE="DETACHING_MEDIASOURCE",t.DETECTING_END_OF_STREAM="DETECTING_END_OF_STREAM",t.DETACHING_MEDIASOURCE_ERROR="DETACHING_MEDIASOURCE_ERROR",t.DETECTING_MEDIASOURCE_IS_UNDEFINED="DETECTING_MEDIASOURCE_IS_UNDEFINED",t.DISPOSING_BUFFER_CONTROLLERS="DISPOSING_BUFFER_CONTROLLERS",t.ENDING_STREAM="ENDING_STREAM",t.ENDING_NOT_REACHED="ENDING_NOT_REACHED",t.FAILED_PULL_FROM_PREBUFFER="FAILED_PULL_FROM_PREBUFFER",t.GETTING_MEDIA_SOURCE_TYPE="GETTING_MEDIA_SOURCE_TYPE",t.INVALID_SEGMENT_OUTSIDE_SLIDING_WINDOW="INVALID_SEGMENT_OUTSIDE_SLIDING_WINDOW",t.LOADING_MEDIAELEMENT="LOADING_MEDIAELEMENT",t.LOADING_SEGMENT_INTO_PREBUFFER_QUEUE="LOADING_SEGMENT_INTO_PREBUFFER_QUEUE",t.MATCHING_SAFARI_VIDEO_CODEC="MATCHING_SAFARI_VIDEO_CODEC",t.MEDIAELEMENT_CONTROLLER_INITIAL_STATE="MEDIAELEMENT_CONTROLLER_INITIAL_STATE",t.MEDIASOURCE_CONTROLLER_INITIAL_STATE="MEDIASOURCE_CONTROLLER_INITIAL_STATE",t.NULLING_AUDIO_SOURCE_BUFFER="NULLING_AUDIO_SOURCE_BUFFER",t.PREBUFFER_NOT_FOUND="PREBUFFER_NOT_FOUND",t.REBASING_BUFFERS="REBASING_BUFFERS",t.REBUILDING_MEDIA_SOURCE="REBUILDING_MEDIA_SOURCE",t.REMOVING_MEDIAELEMENT_SRC="REMOVING_MEDIAELEMENT_SRC",t.RESETTING_MEDIAELEMENT_CONTROLLER="RESETTING_MEDIAELEMENT_CONTROLLER",t.REVOKING_OBJECT_URL_DUR
5264ING_MEDIASOURCE_DETACH="REVOKING_OBJECT_URL_DURING_MEDIASOURCE_DETACH",t.SETTING_AUDIO_MIME_TYPE="SETTING_AUDIO_MIME_TYPE",t.SETTING_BUFFERS="SETTING_BUFFERS",t.SETTING_MEDIAELEMENT_CURRENTTIME="SETTING_MEDIAELEMENT_CURRENTTIME",t.SETTING_MEDIA_SOURCE="SETTING_MEDIA_SOURCE",t.SETTING_MEDIA_SOURCE_TYPE="SETTING_MEDIA_SOURCE_TYPE",t.SETTING_PENDING_MEDIASOURCE="SETTING_PENDING_MEDIASOURCE",t.SETTING_VIDEO_FORMAT="SETTING_VIDEO_FORMAT",t.SETTING_VIDEO_MIME_TYPE="SETTING_VIDEO_MIME_TYPE",t.SETTING_VIDEO_TRANSMUX_FORMAT="SETTING_VIDEO_TRANSMUX_FORMAT",t.SLOWING_BUFFER_APPEND_FREQUENCY="SLOWING_BUFFER_APPEND_FREQUENCY",t.SWITCHING_ASSET_PLAYER="SWITCHING_ASSET_PLAYER",t.UPDATING_BUFFER_METRICS="UPDATING_BUFFER_METRICS",t.CHANGING_VIDEO_BUFFER_TYPE="CHANGING_VIDEO_BUFFER_TYPE",t.CHANGING_AUDIO_BUFFER_TYPE="CHANGING_AUDIO_BUFFER_TYPE"}(Ie||(Ie={})),function(t){t[t.NONE=0]="NONE",t[t.ERROR=1]="ERROR",t[t.WARN=2]="WARN",t[t.INFO=3]="INFO",t[t.HTTP=4]="HTTP",t[t.REMOTE=5]="REMOTE",t[t.DEBUG=6]="DEBUG",t[t.SILLY=7]="SILLY"}(Oe||(Oe={})),function(t){t.AUDIO_INIT_SECTION_REQUEST_ERROR="AUDIO_INIT_SECTION_REQUEST_ERROR",t.AUDIO_SEGMENT_REQUEST_ERROR="AUDIO_SEGMENT_REQUEST_ERROR",t.MEDIA_PLAYLIST_REQUEST_ERROR="MEDIA_PLAYLIST_REQUEST_ERROR",t.MULTIVARIANT_PLAYLIST_FILTER_ERROR="MV_PLAYLIST_FILTER_ERROR",t.MULTIVARIANT_PLAYLIST_PARSE_ERROR="MV_PLAYLIST_PARSE_ERROR",t.MULTIVARIANT_PLAYLIST_REQUEST_ERROR="MV_PLAYLIST_REQUEST_ERROR",t.MULTIVARIANT_PLAYLIST_RESPONSE_NOT_OK="MV_PLAYLIST_RESPONSE_NOT_OK",t.MULTIVARIANT_PLAYLIST_RESPONSE_TEXT_ERROR="MV_PLAYLIST_RESPONSE_TEXT_ERROR",t.PREBUFFER_NO_ROOM="PREBUFFER_NO_ROOM",t.SUBTITLE_SEGMENT_REQUEST_ERROR="SUBTITLE_SEGMENT_REQUEST_ERROR",t.VIDEO_INIT_SECTION_REQUEST_ERROR="VIDEO_INIT_SECTION_REQUEST_ERROR",t.VIDEO_SEGMENT_REQUEST_ERROR="VIDEO_SEGMENT_REQUEST_ERROR",t.DRM_CDM_INTERNAL_ERROR="DRM_CDM_INTERNAL_ERROR",t.DRM_CDM_PROVISIONING_REQUEST_FAILED="DRM_CDM_PROVISIONING_REQUEST_FAILED",t.DRM_CERTIFICATE_ERROR="DRM_CERTIFICATE_ERROR",t.DRM_DECRYPTION_INIT_FAILED="DRM_DECRYPTION_INIT_FAILED",t.DRM_GENERATE_LICENSE_REQUEST_FAILED="DRM_GENERATE_LICENSE_REQUEST_FAILED",t.DRM_HDCP_ERROR="DRM_HDCP_ERROR",t.DRM_INDIVIDUALIZATION_REQUEST_ERROR="DRM_INDIVIDUALIZATION_REQUEST_ERROR",t.DRM_LICENSE_REQUEST_ERROR="DRM_LICENSE_REQUEST_ERROR",t.DRM_NO_SUPPORTED_KEY_SYSTEM="DRM_NO_SUPPORTED_KEY_SYSTEM",t.DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIG="DRM_NO_SUPPORTED_KEY_SYSTEM_CONFIGURATION",t.DRM_SYSTEM_ACCESS_FAILED="DRM_SYSTEM_ACCESS_FAILED",t.INCOMPATIBLE_CODECS_ERROR="INCOMPATIBLE_CODECS_ERROR",t.MEDIAELEMENT_ERROR="MEDIAELEMENT_ERROR",t.MEDIAELEMENT_ATTACHING_ERROR="MEDIAELEMENT_ATTACHING_ERROR",t.MEDIAELEMENT_DETACHING_ERROR="MEDIAELEMENT_DETACHING_ERROR",t.AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER="AUDIO_BUFFER_WOULD_EXCEED_VIDEO_BUFFER",t.SOURCE_BUFFER_APPEND_ERROR="SOURCE_BUFFER_APPEND_ERROR",t.SOURCE_BUFFER_APPEND_NO_ROOM="SOURCE_BUFFER_APPEND_NO_ROOM",t.SOURCE_BUFFER_DISPOSE_ERROR="SOURCE_BUFFER_DISPOSE_ERROR",t.SOURCE_BUFFER_ERROR_EVENT="SOURCE_BUFFER_ERROR_EVENT",t.SOURCE_BUFFER_INVALID_STATE_ERROR="SOURCE_BUFFER_INVALID_STATE_ERROR",t.SOURCE_BUFFER_REMOVE_ERROR="SOURCE_BUFFER_REMOVE_ERROR",t.PLAYBACK_STALL_LOW_BUFFER="PLAYBACK_STALL_LOW_BUFFER",t.PLAYBACK_STALL_UNKNOWN_CAUSE="PLAYBACK_STALL_UNKNOWN_CAUSE",t.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",t.PLAYBACK_BUFFERING_ERROR="PLAYBACK_BUFFERING_ERROR",t.PLAYBACK_DECODING_ERROR="PLAYBACK_DECODING_ERROR",t.PLAYBACK_UNKNOWN_ERROR="PLAYBACK_UNKNOWN_ERROR",t.LICENSE_AGE_NOT_VERIFIED="LICENSE_AGE_NOT_VERIFIED",t.LICENSE_AUTH_ERROR="LICENSE_AUTH_ERROR",t.LICENSE_BLACKOUT="LICENSE_BLACKOUT",t.LICENSE_DOWNGRADED="LICENSE_DOWNGRADED",t.LICENSE_HEADERS_TIMEOUT="LICENSE_HEADERS_TIMEOUT",t.LICENSE_INSUFFICIENT_SECURITY_LEVEL="LICENSE_INSUFFICIENT_SECURITY_LEVEL",t.LICENSE_INVALID="LICENSE_INVALID",t.LICENSE_KIDS_MODE_ENABLED="LICENSE_KIDS_MODE_ENABLED",t.LICENSE_MEDIA_ID_MISSING="LICENSE_MEDIA_ID_MISSING",t.LICENSE_NETWORK_ERROR="LICENSE_NETWORK_ERROR",t.LICENSE_NOT_ENTITLED="LICENSE_NOT_ENTITLED",t.LICENSE_NOT_FOUND_ERROR="LICENSE_NOT_FOUND_ERROR",t.LICENSE_NOT_PERMITTED_OFFLINE="LICENSE_NOT_PERMITTED_OFFLINE",t.LICENSE_NOT_PERMITTED_RENEWAL="LICENSE_NOT_PERMITTED_RENEWAL",t.LICENSE_OTHER_ERROR="LICENSE_OTHER_ERROR",t.LICENSE_PARENTAL_CONTROLS_ENABLED="LICENSE_PARENTAL_CONTROLS_ENABLED",t.LICENSE_PIN_EXPIRED="LICENSE_PIN_EXPIRED",t.LICENSE_PIN_MISSING="LICENSE_PIN_MISSING",t.LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED="LICENSE_PLATFORM_CLIENT_UPGRADE_REQUIRED",t.LICENSE_PROFILE_MISSING="LICENSE_PROFILE_MISSING",t.LICENSE_REJECTED="LICENSE_REJECTED",t.LICENSE_SERVER_ERROR="LICENSE_SERVER_ERROR",t.PBO_AGE_NOT_VERIFIED="PBO_AGE_NOT_VERIFIED",t.PBO_AGE_NOT_VERIFIED_KR="PBO_AGE_NOT_VERIFIED_KR",t.PBO_BLACKOUT="PBO_BLACKOUT",t.PBO_KIDS_MODE_ENABLED="PBO_KIDS_MODE_ENABLED",t.PBO_LOGIN_REQUIRED="PBO_LOGIN_REQUIRED",t.PBO_MEDIA_RIGHTS_BAD_REQUEST="PBO_MEDIA_RIGHTS_BAD_REQUEST",t.PBO_MEDIA_RIGHTS_SERVICE_ERROR="PBO_MEDIA_RIGHTS_SERVICE_ERROR",t.PBO_MEDIA_RIGHTS_UNKNOWN_ERROR="PBO_MEDIA_RIGHTS_UNKNOWN_ERROR",t.PBO_NOT_ENTITLED="PBO_NOT_ENTITLED",t.PBO_NOT_PERMITTED_OFFLINE="PBO_NOT_PERMITTED_OFFLINE",t.PBO_NOT_PERMITTED_RENEWAL="PBO_NOT_PERMITTED_RENEWAL",t.PBO_OTHER_ERROR="PBO_OTHER_ERROR",t.PBO_PARENTAL_CONTROLS_ENABLED="PBO_PARENTAL_CONTROLS_ENABLED",t.PBO_PIN_EXPIRED="PBO_PIN_EXPIRED",t.PBO_PIN_MISSING="PBO_PIN_MISSING",t.PBO_PLATFORM_CLIENT_UPGRADE_REQUIRED="PBO_PLATFORM_CLIENT_UPGRADE_REQUIRED",t.PBO_PROFILE_MISSING="PBO_PROFILE_MISSING",t.PBO_PROFILE_PERSONAL_INFO_MISSING="PBO_PROFILE_PERSONAL_INFO_MISSING"}(Re||(Re={})),function(t){t.Direct="DIRECT",t.TveMvpd="TVE_MVPD",t.TveIsp="TVE_ISP",t.TveOpen="TVE_OPEN"}(xe||(xe={})),function(t){t.abc="abc",t.abcNews="abc_news",t.abcNewsKGO="abc_news_bay_area",t.abcNewsKFSN="abc_news_central_california",t.abcNewsWLS="abc_news_chicago",t.abcNewsKTRK="abc_news_houston",t.abcNewsKABC="abc_news_los_angeles",t.abcNewsWABC="abc_news_new_york",t.abcNewsWTVD="abc_news_north_carolina",t.abcNewsWPVI="abc_news_philadelphia",t.disneyNow="disneynow",t.disneyPlus="disneyplus",t.espn="espn",t.freeform="freeform",t.fxNow="fxnow",t.gma="abc_news_good_morning_america",t.natGeo="national_geographic",t.natGeoKids="nat_geo_kids",t.natGeoTv="nat_geo_tv"}(Le||(Le={})),function(t){t.develop="dev",t.stage="stage",t.production="prod"}(ke||(ke={})),function(t){t.playback="playback",t.clientSdk="clientSdk",t.edgeSdk="edgeSdk",t.edgeService="edgeService"}(Pe||(Pe={})),function(t){t.LOAD="LOAD",t.DRM="DRM",t.LICENSE="LICENSE",t.MEDIA="MEDIA",t.PLAYBACK="PLAYBACK",t.PQM="PQM",t.SRVC="SRVC",t.GENEXP="GENEXP"}(De||(De={})),function(t){t.AD_POD_LOAD_ERR="AD_POD_LOAD_ERR",t.MEDIA_LOAD_ERR="MEDIA_LOAD_ERR",t.DRM_CERT_LOAD_ERR="DRM_CERT_LOAD_ERR",t.DRM_INIT_FAIL="DRM_INIT_FAIL",t.DRM_PROVISION_FAIL="DRM_PROVISION_FAIL",t.HDCP_ERR="HDCP_ERR",t.LICENSE_DENIED="LICENSE_DENIED",t.LICENSE_
5264LOAD_ERR="LICENSE_LOAD_ERR",t.CAPTIONS_ERR="CAPTIONS_ERR",t.MEDIA_PROCESSING_ERROR="MEDIA_PROCESSING_ERROR",t.SUBTITLES_ERR="SUBTITLES_ERR",t.GEN_PLAYBACK_ERR="GEN_PLAYBACK_ERR",t.PLAYBACK_STALL="PLAYBACK_STALL",t.PLAYBACK_START_TIMEOUT="PLAYBACK_START_TIMEOUT",t.PQM_ERR="PQM_ERR",t.PQM_LOAD_ERR="PQM_LOAD_ERR",t.AGE_NOT_VERIFIED="AGE_NOT_VERIFIED",t.AGE_NOT_VERIFIED_KR="AGE_NOT_VERIFIED_KR",t.BLACKOUT="BLACKOUT",t.DOWNGRADE="DOWNGRADE",t.KIDS_MODE_ENABLED="KIDS_MODE_ENABLED",t.LOGIN_REQUIRED="LOGIN_REQUIRED",t.MEDIA_ID_MISSING="MEDIA_ID_MISSING",t.MEDIA_RIGHTS_BAD_REQUEST="MEDIA_RIGHTS_BAD_REQUEST",t.MEDIA_RIGHTS_SERVICE_ERROR="MEDIA_RIGHTS_SERVICE_ERROR",t.MEDIA_RIGHTS_UNKNOWN_ERROR="MEDIA_RIGHTS_UNKNOWN_ERROR",t.NOT_ENTITLED="NOT_ENTITLED",t.NOT_PERMITTED_OFFLINE="NOT_PERMITTED_OFFLINE",t.NOT_PERMITTED_RENEWAL="NOT_PERMITTED_RENEWAL",t.PARENTAL_CONTROLS_RESTRICTED="PARENTAL_CONTROLS_RESTRICTED",t.PIN_EXPIRED="PIN_EXPIRED",t.PIN_MISSING="PIN_MISSING",t.PLATFORM_CLIENT_UPGRADE_REQUIRED="PLATFORM_CLIENT_UPGRADE_REQUIRED",t.PROFILE_MISSING="PROFILE_MISSING",t.PROFILE_PERSONAL_INFO_MISSING="PROFILE_PERSONAL_INFO_MISSING",t.REJECTED="REJECTED",t.SECURITY_LEVEL_INSUFFICIENT="SECURITY_LEVEL_INSUFFICIENT",t.SERVICE_ERR="SERVICE_ERR",t.EXTERNAL_EXP="EXTERNAL_EXP",t.GEN_EXP="GEN_EXP",t.INTERNAL_EXP="INTERNAL_EXP"}(Ne||(Ne={})),function(t){t[t.OTHER=0]="OTHER",t[t.DEVICE_OTHER=1e3]="DEVICE_OTHER",t[t.DEVICE_MV=1010]="DEVICE_MV",t[t.DEVICE_VARIANT=1020]="DEVICE_VARIANT",t[t.DEVICE_VIDEO=1030]="DEVICE_VIDEO",t[t.DEVICE_AUDIO=1040]="DEVICE_AUDIO",t[t.DEVICE_SUBTITLES=1050]="DEVICE_SUBTITLES",t[t.REQUEST_TIMEOUT_OTHER=1100]="REQUEST_TIMEOUT_OTHER",t[t.REQUEST_TIMEOUT_MV=1110]="REQUEST_TIMEOUT_MV",t[t.REQUEST_TIMEOUT_VARIANT=1120]="REQUEST_TIMEOUT_VARIANT",t[t.REQUEST_TIMEOUT_VIDEO=1130]="REQUEST_TIMEOUT_VIDEO",t[t.REQUEST_TIMEOUT_AUDIO=1140]="REQUEST_TIMEOUT_AUDIO",t[t.REQUEST_TIMEOUT_SUBTITLES=1150]="REQUEST_TIMEOUT_SUBTITLES",t[t.HEADERS_TIMEOUT_OTHER=1200]="HEADERS_TIMEOUT_OTHER",t[t.HEADERS_TIMEOUT_MV=1210]="HEADERS_TIMEOUT_MV",t[t.HEADERS_TIMEOUT_VARIANT=1220]="HEADERS_TIMEOUT_VARIANT",t[t.HEADERS_TIMEOUT_VIDEO=1230]="HEADERS_TIMEOUT_VIDEO",t[t.HEADERS_TIMEOUT_AUDIO=1240]="HEADERS_TIMEOUT_AUDIO",t[t.HEADERS_TIMEOUT_SUBTITLES=1250]="HEADERS_TIMEOUT_SUBTITLES",t[t.PAYLOAD_TIMEOUT_OTHER=1300]="PAYLOAD_TIMEOUT_OTHER",t[t.PAYLOAD_TIMEOUT_MV=1310]="PAYLOAD_TIMEOUT_MV",t[t.PAYLOAD_TIMEOUT_VARIANT=1320]="PAYLOAD_TIMEOUT_VARIANT",t[t.PAYLOAD_TIMEOUT_VIDEO=1330]="PAYLOAD_TIMEOUT_VIDEO",t[t.PAYLOAD_TIMEOUT_AUDIO=1340]="PAYLOAD_TIMEOUT_AUDIO",t[t.PAYLOAD_TIMEOUT_SUBTITLES=1350]="PAYLOAD_TIMEOUT_SUBTITLES",t[t.ABORTED_OTHER=1400]="ABORTED_OTHER",t[t.ABORTED_MV=1410]="ABORTED_MV",t[t.ABORTED_VARIANT=1420]="ABORTED_VARIANT",t[t.ABORTED_VIDEO=1430]="ABORTED_VIDEO",t[t.ABORTED_AUDIO=1440]="ABORTED_AUDIO",t[t.ABORTED_SUBTITLES=1450]="ABORTED_SUBTITLES",t[t.SERVER_ERROR_OTHER=1500]="SERVER_ERROR_OTHER",t[t.SERVER_ERROR_MV=1510]="SERVER_ERROR_MV",t[t.SERVER_ERROR_VARIANT=1520]="SERVER_ERROR_VARIANT",t[t.SERVER_ERROR_VIDEO=1530]="SERVER_ERROR_VIDEO",t[t.SERVER_ERROR_AUDIO=1540]="SERVER_ERROR_AUDIO",t[t.SERVER_ERROR_SUBTITLES=1550]="SERVER_ERROR_SUBTITLES",t[t.NOT_FOUND_OTHER=1600]="NOT_FOUND_OTHER",t[t.NOT_FOUND_MV=1610]="NOT_FOUND_MV",t[t.NOT_FOUND_VARIANT=1620]="NOT_FOUND_VARIANT",t[t.NOT_FOUND_VIDEO=1630]="NOT_FOUND_VIDEO",t[t.NOT_FOUND_AUDIO=1640]="NOT_FOUND_AUDIO",t[t.NOT_FOUND_SUBTITLES=1650]="NOT_FOUND_SUBTITLES",t[t.AUTH_OTHER=1700]="AUTH_OTHER",t[t.AUTH_MV=1710]="AUTH_MV",t[t.AUTH_VARIANT=1720]="AUTH_VARIANT",t[t.AUTH_VIDEO=1730]="AUTH_VIDEO",t[t.AUTH_AUDIO=1740]="AUTH_AUDIO",t[t.AUTH_SUBTITLES=1750]="AUTH_SUBTITLES",t[t.UNEXPECTED_RESPONSE_OTHER=1800]="UNEXPECTED_RESPONSE_OTHER",t[t.UNEXPECTED_RESPONSE_MV=1810]="UNEXPECTED_RESPONSE_MV",t[t.UNEXPECTED_RESPONSE_VARIANT=1820]="UNEXPECTED_RESPONSE_VARIANT",t[t.UNEXPECTED_RESPONSE_VIDEO=1830]="UNEXPECTED_RESPONSE_VIDEO",t[t.UNEXPECTED_RESPONSE_AUDIO=1840]="UNEXPECTED_RESPONSE_AUDIO",t[t.UNEXPECTED_RESPONSE_SUBTITLES=1850]="UNEXPECTED_RESPONSE_SUBTITLES",t[t.PAYLOAD_PROCESSING_OTHER=2e3]="PAYLOAD_PROCESSING_OTHER",t[t.PAYLOAD_PROCESSING_MV=2010]="PAYLOAD_PROCESSING_MV",t[t.PAYLOAD_PROCESSING_VARIANT=2020]="PAYLOAD_PROCESSING_VARIANT",t[t.PAYLOAD_PROCESSING_VIDEO=2030]="PAYLOAD_PROCESSING_VIDEO",t[t.PAYLOAD_PROCESSING_AUDIO=2040]="PAYLOAD_PROCESSING_AUDIO",t[t.PAYLOAD_PROCESSING_SUBTITLES=2050]="PAYLOAD_PROCESSING_SUBTITLES",t[t.CDN_FALLBACK_ERRROR=3e3]="CDN_FALLBACK_ERRROR",t[t.PARSING_ERROR_OTHER=4e3]="PARSING_ERROR_OTHER",t[t.PARSING_ERROR_MV=4010]="PARSING_ERROR_MV",t[t.PARSING_ERROR_VARIANT=4020]="PARSING_ERROR_VARIANT",t[t.PARSING_ERROR_V
5264IDEO=4030]="PARSING_ERROR_VIDEO",t[t.PARSING_ERROR_AUDIO=4040]="PARSING_ERROR_AUDIO",t[t.PARSING_ERROR_SUBTITLES=4050]="PARSING_ERROR_SUBTITLES",t[t.PARSING_ERROR_CAPTIONS=4060]="PARSING_ERROR_CAPTIONS",t[t.MEDIA_ERROR_OTHER=5e3]="MEDIA_ERROR_OTHER",t[t.MEDIA_ERROR_VIDEO=5010]="MEDIA_ERROR_VIDEO",t[t.MEDIA_ERROR_AUDIO=5020]="MEDIA_ERROR_AUDIO",t[t.MEDIA_ERROR_SUBTITLES=5030]="MEDIA_ERROR_SUBTITLES",t[t.MEDIA_ERROR_CAPTIONS=5040]="MEDIA_ERROR_CAPTIONS",t[t.STALL_OTHER=6e3]="STALL_OTHER",t[t.STALL_AUDIO_BUFFER=6010]="STALL_AUDIO_BUFFER",t[t.STALL_VIDEO_BUFFER=6020]="STALL_VIDEO_BUFFER",t[t.DRM_ERROR_OTHER=6100]="DRM_ERROR_OTHER",t[t.DRM_KEY_ACCESS_FAILED=6110]="DRM_KEY_ACCESS_FAILED",t[t.DRM_NO_KEY_SYSTEMS=6120]="DRM_NO_KEY_SYSTEMS",t[t.PLAYBACK_SERVICE_ERROR=7e3]="PLAYBACK_SERVICE_ERROR"}(Me||(Me={})),function(t){t.Adobe="ADOBE",t.Comcast="COMCAST",t.Cox="COX",t.Direct="DIRECT",t.Gatekeeper="GATEKEEPER",t.OneId="ONEID",t.None="NONE"}(Ue||(Ue={})),function(t){t.PlaybackServiceStateChanged="PLAYBACK_SERVICE_STATE_CHANGED",t.MediaCapabilitiesChanged="MEDIA_CAPABILITIES_CHANGED"}(Be||(Be={})),function(t){t.AutoAdvance="AutoAdvance",t.AuthorizationOnly="AuthorizationOnly",t.ContinueWatching="ContinueWatching",t.FeedSwitch="FeedSwitch",t.NextEpisode="NextEpisode",t.UserAction="UserAction",t.UserActionFromLive="UserActionFromLive",t.UserActionFromBeginning="UserActionFromBeginning",t.UserActionCatchUpToLive="UserActionCatchUpToLive",t.UserActionHomescreen="UserActionHomescreen",t.UserActionBrowseTilefocus="UserActionBrowseTilefocus",t.UserActionVerticalvideo="UserActionVerticalvideo",t.Autoplay="Autoplay",t.AutoplayHeaderHome="AutoplayHeaderHome",t.AutoplayHomescreen="AutoplayHomescreen",t.PlaylistTap="PlaylistTap"}(Ve||(Ve={})),function(t){t.Yes="YES",t.No="NO",t.Error="ERROR",t.NotSent="NOT_SENT"}(Fe||(Fe={})),function(t){t.ClientSdkPlaybackParamsSchema="CLIENT_SDK_PLAYBACK_PARAMS_SCHEMA",t.M3u8PlaybackParamsSchema="M3U8_PLAYBACK_PARAMS_SCHEMA",t.StaticPBOPlaybackParamsSchema="STATIC_PBO_PLAYBACK_PARAMS_SCHEMA",t.ShieldPlaybackParamsSchema="SHIELD_PLAYBACK_PARAMS_SCHEMA",t.EdgeSdkPlaybackParamsSchema="EDGE_SDK_PLAYBACK_PARAMS_SCHEMA"}(ze||(ze={})),function(t){t.dataSaverAutomatic="dataSaverAutomatic",t.dataSaverModerate="dataSaverModerate",t.dataSaverSaveData="dataSaverSaveData"}($e||($e={})),function(t){t.CatchUpToLive="cutl",t.SportsCenterForYou="sc4u",t.Header="header"}(He||(He={})),function(t){t.low="LOW",t.medium="MED",t.high="HIGH",t.none="NONE"}(Ge||(Ge={})),function(t){t.FOUR_HOUR="4_HOUR",t.FIFTEEN_MIN="15_MIN"}(Ye||(Ye={})),function(t){t.Uninitialized="UNINITIALIZED",t.Initialized="INITIALIZED",t.Failed="FAILED"}(je||(je={})),function(t){t.Sd="SD",t.Hd="HD",t.Fhd="FHD",t.Uhd="UHD"}(Ke||(Ke={})),function(t){t.HevcDolbyVision20="HEVC_DOLBY_VISION_20",t.HevcDolbyVision8="HEVC_DOLBY_VISION_8",t.HevcDolbyVision5="HEVC_DOLBY_VISION_5",t.HevcHdr10Plus="HEVC_HDR10_PLUS",t.HevcHdr10="HEVC_HDR10",t.HevcSdr="HEVC_SDR",t.AvcSdr="AVC_SDR"}(We||(We={})),function(t){t.AacStereo="AAC_STEREO",t.Eac3Stereo="EAC3_STEREO",t.Eac3FiveDotOne="EAC3_FIVE_DOT_ONE",t.Eac3SevenDotOne="EAC3_SEVEN_DOT_ONE",t.Eac3Atmos="EAC3_ATMOS",t.DtsX="DTS_X"}(qe||(qe={})),function(t){t.PlaybackStateChanged="PLAYBACK_STATE_CHANGED",t.MediaPreferencesApplied="MEDIA_PREFERENCES_APPLIED",t.MarkersChanged="MARKERS_CHANGED",t.MarkerReached="MARKER_REACHED",t.TimelineProgress="TIMELINE_PROGRESS",t.ProgramStarted="PROGRAM_STARTED",t.ProgramProgress="PROGRAM_PROGRESS",t.ProgramEnded="PROGRAM_ENDED",t.ProgramsChanged="PROGRAMS_CHANGED",t.ProgramAuthorizeEvent="PROGRAM_AUTHORIZE_EVENT",t.BreakStarted="BREAK_STARTED",t.BreakProgress="BREAK_PROGRESS",t.BreakEnded="BREAK_ENDED",t.BreakError="BREAK_ERROR",t.BreaksChanged="BREAKS_CHANGED",t.BreakContentStarted="BREAK_CONTENT_STARTED",t.BreakContentEnded="BREAK_CONTENT_ENDED",t.BreakContentSequenceStarted="BREAK_CONTENT_SEQUENCE_STARTED",t.BreakContentSequenceEnded="BREAK_CONTENT_SEQUENCE_ENDED",t.DxcRendererLoaded="DXC_RENDERER_LOADED",t.DxcRendererStarting="DXC_RENDERER_STARTING",t.DxcRendererStarted="DXC_RENDERER_STARTED",t.DxcRendererUnloaded="DXC_RENDERER_UNLOADED",t.AutoPlayBlocked="AUTO_PLAY_BLOCKED",t.NielsenId3FrameEvent="NIELSEN_ID3_FRAME"}(Xe||(Xe={})),function(t){t.MainContent="MAIN_CONTENT",t.AdServiceContent="AD_SERVICE_CONTENT",t.AuxiliaryContent="AUXILIARY_CONTENT"}(Ze||(Ze={})),function(t){t.PassThroughAds="PASSTHROUGH_ADS",t.Slate="SLATE",t.PassthroughContent="PASSTHROUGH_CONTENT",t.DynamicAds="DYNAMIC_ADS",t.VideoCreative="VideoCreative",t.InstreamDxcCreative="InstreamDxcCreative",t.OutstreamDxcCreative="OutstreamDxcCreative",t.Slug="SLUG",t.Bumper="BUMPER",t.ContentPromo="CONTENT_PROMO",t.BrandBumper="BRAND_BUMPER",t.NetworkBumper="NETWORK_BUMPER",t.NoahCard="NOAH_CARD",t.TuneInCard="TUNE_IN_CARD"}(Qe||(Qe={})),function(t){t.Point="POINT",t.Range="RANGE"}(Je||(Je={})),function(t){t.Vod="VOD",t.LiveComplete="LIVE_COMPLETE",t.LiveSlide="LIVE_SLIDE"}(tn||(tn={})),function(t){t.Start="START",t.LiveEdge="LIVE_EDGE",t.Bookmark="BOOKMARK",t.Position="POSITION"}(en||(en={})),function(t){t.Scheduled="scheduled",t.Pretune="pretune",t.Playing="playing",t.Posttune="posttune",t.Complete="complete"}(nn||(nn={})),function(t){t.Created="CREATED",t.Preparing="PREPARING",t.Prepared="PREPARED",t.Starting="STARTING",t.Playing="PLAYING",t.Paused="PAUSED",t.Rebuffering="REBUFFERING",t.Seeking="SEEKING",t.Complete="COMPLETE",t.Error="ERROR"}(rn||(rn={})),function(t){t.User="USER",t.Player="PLAYER",t.Error="ERROR",t.Backgroun
5264d="BACKGROUND",t.ApplicationExit="APPLICATION_EXIT"}(on||(on={})),function(t){t.Restart="RESTART",t.GoLive="GO_LIVE",t.Scrub="SCRUB",t.SkipForwardNext="SKIP_FORWARD_NEXT",t.SkipForwardMilestone="SKIP_FORWARD_MILESTONE",t.SkipForwardIncremental="SKIP_FORWARD_INCREMENTAL",t.SkipBackwardIncremental="SKIP_BACKWARD_INCREMENTAL"}(an||(an={})),function(t){t.Applied="APPLIED",t.Deferred="DEFERRED",t.Blocked="BLOCKED"}(sn||(sn={})),function(t){t.BreakContentClickUrl="BREAK_CONTENT_CLICK_URL"}(ln||(ln={})),function(t){t.DxcChoiceBase="DXC_CHOICE",t.DxcGatewayGo="DXC_GATEWAY_GO",t.DxcPauseBase="DXC_PAUSE_BASE",t.DxcPauseExpandable="DXC_PAUSE_EXPANDABLE",t.VideoCreative="VideoCreative"}(cn||(cn={})),function(t){t.AdPod="AdPod",t.DecryptionKey="DecryptionKey",t.DrmLicense="DrmLicense",t.InitSectionAudio="InitSectionAudio",t.InitSectionVideo="InitSectionVideo",t.InitSectionSubtitles="InitSectionSubtitles",t.MediaPlaylistAudio="MediaPlaylistAudio",t.MediaPlaylistVideo="MediaPlaylistVideo",t.MediaPlaylistSubtitles="MediaPlaylistSubtitles",t.MediaSegmentAudio="MediaSegmentAudio",t.MediaSegmentVideo="MediaSegmentVideo",t.MediaSegmentSubtitles="MediaSegmentSubtitles",t.MultivariantPlaylist="MultivariantPlaylist"}(dn||(dn={})),function(t){t.AbcNews="AbcNews",t.DisneyEntertainment="DisneyEntertainment",t.DisneyPlus="DisneyPlus",t.Hulu="Hulu",t.EspnPlus="EspnPlus"}(un||(un={})),function(t){t.Created="Created",t.Preparing="Preparing",t.Prepared="Prepared",t.Starting="Starting",t.Playing="Playing",t.Paused="Paused",t.Rebuffering="Rebuffering",t.
5264Seeking="Seeking",t.Complete="Complete",t.Error="Error"}(pn||(pn={})),function(t){t.Main="Main",t.Interstitial="Interstitial",t.Asset="Asset"}(hn||(hn={})),function(t){t.ApplicationExit="ApplicationExit",t.Backgrounded="Backgrounded",t.Error="Error",t.Player="Player",t.User="User"}(mn||(mn={})),function(t){t.GoToLive="GoToLive",t.Scrub="Scrub",t.Skip="Skip",t.StartOver="StartOver"}(gn||(gn={})),function(t){t.Applied="Applied",t.Blocked="Blocked",t.Deferred="Deferred"}(vn||(vn={})),function(t){t.UserAction="UserAction"}(fn||(fn={})),function(t){t.MultiVariantFetched="MainProgress:MultiVariantFetched",t.VariantFetched="MainProgress:VariantFetched",t.Error="Playback:Error",t.Playhead="Playback:Playhead",t.StateChange="Playback:StateChange",t.Rendition="Quality:Rendition"}(bn||(bn={})),function(t){t.CABLEVISION="cablevision",t.CHROME="chrome",t.CHROMECAST="chromecast",t.COMCAST="comcast",t.EDGE="edge",t.FIREFOX="firefox",t.HISENSE_GLOBAL="hisenseglobal",t.HISENSE_JAPAN="hisensejapan",t.OPERA="opera",t.PANASONIC="panasonic",t.SAFARI="safari",t.SKYQ="skyq",t.TELECENTRO="telecentro",t.TIZEN="tizen",t.TOSHIBA="toshiba",t.VIZIO="vizio",t.WEBOS="webos"}(_n||(_n={})),function(t){t.Default="default",t.Aggressive="aggressive",t.Progressive="progressive"}(En||(En={})),function(t){t.Yes="YES",t.No="NO",t.NotSupported="NOT_SUPPORTED",t.Error="ERROR"}(yn||(yn={})),function(t){t.Ad="ad",t.Promo="promo",t.Bumper="bumper",t.Dubcard="dubcard",t.Slug="slug",t.Slate="slate",t.Unknown="Unknown"}(Sn||(Sn={})),function(t){t.PEAK_BITRATE="peakBitrate",t.AVERAGE_BITRATE="averageBitrate",t.WIDTH="width",t.HEIGHT="height",t.ENCODED_FRAME_RATE="encodedFrameRate"}(Tn||(Tn={})),function(t){t.ENGINE_CONFIG="engineConfig",t.MEDIA_CAPABILITY="mediaCapability",t.MEDIA_PREFERENCE="mediaPreference",t.CONSTRAINTS="constraints",t.HDCP="hdcp",t.RESIZE_OBSERVER="resizeObserver"}(Cn||(Cn={}));var An,In=n(27361);!function(t){t.AMBIENT="AMBIENT",t.BACKGROUND_AUTOPLAY="BACKGROUND_AUTOPLAY",t.CATCH_UP_TO_LIVE="CATCH_UP_TO_LIVE",t.NORMAL="NORMAL"}(An||(An={}));var On=n(84967),Rn=n(19495),xn=n(21800),Ln=n(77424);const kn="NA",Pn=/^\d+$/,Dn=ge.STREAM_TYPES,Nn={autostart:"Autoplay",continuous:"Continuous Play"},Mn=t=>{const e=(0,s.struc)(t?.contentType)===fe,n=t?.network?.type===ve,i=t?.isReAir;let r=Dn.VOD;return e&&(r=n?i?Dn.LINEAR_REAIR:Dn.LINEAR:Dn.EVENT),r},Un=t=>{const e=t?.authenticationTypes;let n=ge.ESPN_COM;var i,r;return(i=e,r=["MVPD","ISP","OPEN"],i.filter((t=>r.includes(t)))).length>0?n=ge.ESPNTVE:("DIRECT",e.includes("DIRECT")&&(n=ge.ESPN)),n};var Bn=n(47045);const Vn=ge.STREAM_TYPES,Fn="",zn=new Ln;var $n=class extends wn{constructor({mediaItem:t,authorization:e,sessionToken:n,configAppStores:i,playerProps:r}){super({mediaItem:t,authorization:e,sessionToken:n,configAppStores:i,playerProps:r})}getClosedCaptions(){const t=localStorage.getItem(g);return(0,s.cbool)(t)}buildPlaybackCriteria(){const t=this,e=t.mediaItem,n=e?.muted,i=e?.isAmbient,r=i?An.AMBIENT:s.UNDEF,o=In(e,"tracking.heartbeats",!1),a=In(e,"tracking.comscore",!1),l=In(e,"tracking.nielsen",!1),c=e?.loopingEnabled||!1,d=(0,s.cbool)(e?.shouldDeferMediaElementAttachment),u=t.configAppStores,p=t.playerProps?.initOptions?.autoplay,h=p!==s.UNDEF?p:s.TRUE,m=t.playerProps?.initOptions?.deferTrackingUntilPresented||s.FALSE,g=t.playerProps?.initOptions?.retrackOnLoop||s.FALSE,v=t.playerProps?.startTimeMs,f=t.playerProps?.loopEndPositionMs,b=t.playerProps?.authPayload,_=t.playerProps?.affiliateLogo,E=e?.ratings,y=e?.programDecoration,S=t.getClosedCaptions(),T=t.getPrivacyOptOut(),C=(On.view(),e?.shareUrl),w=e?.embedUrl,A=e?.isVerticalVideoFeed,I=t.playerProps?.verticalCaptionsElement||(0,s.first)(document.getElementsByClassName("FittWebPlayerContainer-vertical-captions")),O=e?.shieldDescriptionUrl||C||window?.location?.hostname;return{mediaParams:{startPositionType:v>0?en.Position:en.Start,startPositionMs:v,loopEndPositionMs:f,artificialDelayDuration:0,autoPrepareAndStart:s.FALSE,muted:n,playbackLifecycle:r,autoPlay:{enabled:h,muteAndRetryOnFail:s.TRUE},disableDCF:{comscore:!a,nielsen:!l,adobe:!o},deferTrackingUntilPresented:m,loop:c,retrackOnLoop:g},metadata:{networkAttribution:{artworkType:Fn,logoImageId:Fn,slug:Fn,ttsText:Fn,watermarkImageUrl:Fn},nowPlaying:e?.id,streamType:t.getStreamType(e),targetLanguage:"en",subtitle:{text:e?.subtitle||Fn},title:{text:e?.title},images:e?.images,tracking:{dcf:e,adobeConcurrency:b},share:{url:C,embedUrl:w},affiliateLogo:_,programDecoration:y,nextVideoUrl:e?.nextVideoUrl||null,ratings:E},playbackSessionCreationParameters:{adParameters:{additionalConsent:"",deviceAdId:u?.sdkSessionConfig?.sdkSession?.advertisingIdProvider?.advertisingId,limitAdTrackingEnabled:yn.NotSupported,privacyOptOut:T,shieldAdParameters:{authp:"noauth",appVersion:"1.0.51",userAgent:(0,s.getGlobal)()?.navigator?.userAgent,adUnit:e?.adUnit,isAutoplay:h,descriptionUrl:O,testGroup:e?.adTestGroup||s.UNDEF},gamParameters:{adUnitCode:e?.adUnit,contextUrl:O,affiliateStationCode:e?.station||Fn,isPlayerMuted:n}},autoPlay:h,shouldDeferMediaElementAttachment:d,hasPrivacyOptOut:s.FALSE,mediaPreferences:{audio:{languagePriorityList:["en"],preferDescribesVideo:s.FALSE},timedText:{enabled:S,languagePriorityList:["en"],preferDescribesMusicAndSound:s.FALSE,timedTextRegionOverride:A?I:null}},playbackParameters:t.getPlaybackParameters(),telemetryParameters:{conviva:t.toConvivaTrackingData()}}}}getPlaybackParameters(){return{sources:[{uri:"https://jaq.twdcgrid.com/playlist/tokenize/q/url=https://lw.bamgrid.com/2.0/hls/event/nocookie/profile/offset300/bam/ms02/hls/ext/tos6/unenc/master_1aud.m3u8"}],schema:ze.M3u8PlaybackParamsSchema,SDK:Bn.Z}}getPrivacyOptOut(){const t=this.playerProps,e=t?.privacyOptOutNotSent,n=Fe,i=(((0,s.getGlobal)()||s.emptyObj).__dataLayer||s.emptyObj).getUSPrivacy||s.noop,r=zn.get("OptanonConsent"),o=r?.includes("C0004:1")?"1YNY":"1YYY",a=i();let l=n.NotSent;return e||(l=(0,s.idxOf)(o,"1YYY")>-1||(0,s.idxOf)(a,"1YYY")>-1?n.Yes:n.No),l}
5264toConvivaTrackingData(){const t=this;return(({configAppStores:t,mediaItem:e,playerProps:n})=>{const i=t?.sdkSessionConfig?.sessionInfoStorage?.sessionInfo||t?.sdkSessionConfig?.sessionInfo,r=(0,s.struc)(i?.location?.countryCode||""),o=i?.account?.id,a=i?.device?.id,l=i?.sessionId,c=i?.profile?.id,d=n?.conviva,u=n?.initOptions,p=String(e?.id||"").split(":").pop()||"",h=(0,s.regxTest)(Pn,p),m=(0,s.getGlobal)()||{},g=m?.location,v=m.__dataLayer||{},f=t?.videoConfig?.pcsWeb?.pcsConfig?.configs?.web?.tracking?.conviva||t?.videoConfig?.data?.pcsWeb?.configuration?.pcs?.configs?.web?.tracking?.conviva||t?.videoConfig?.pcsWeb?.configuration?.pcs?.configs?.web?.tracking?.conviva,b=(t=>t?.playlistTap?"Playlist Tap":t?.isVerticalVideoFeed?"user-action-verticalvideo":Nn[t?.startType]||t?.startType)(u),_=v?.page?.play_location||u?.playerLocation,E=e?.contentOrigin;return{customerKey:f?.customerKey||ge.CUSTOMER_KEY[e?.brand]||"6f4780f3f1c410159773174fc103819d3763406e.cws.conviva.com",gatewayUrl:f?.gatewayUrl||ge.GATEWAY_URL,metadata:xn({accountId:o,adBlockerDetected:v?.visitor?.ad_blocker,alternateBroadcast:e?.feedType,appBrand:ge.BRAND[e?.brand],appConfigVersion:"1.0.51",applicationName:ge.APP_NAME[e?.brand],appVersion:e?.appVersion,assetName:e?.title,countryCode:r,channel:d?.channel||e?.channel||e?.network?.name||"",deviceId:a,duration:e?.duration,franchise:ge.ESPN,genre:ge.SPORTS,isAirPlay:"false",language:e?.language,league:e?.tracking?.conviva?.custom?.league||kn,page:g?.href,playerLocation:_,profileId:c,programType:h?"short-form":"espn"===e?.brand?"sports":e?.show?.type||kn,prt:"espn"===e?.brand?Un(e):ge.DMED,session_id:l,site:g?.origin,showTitle:e?.showTitle||e?.title,sport:e?.tracking?.conviva?.custom?.sport||kn,contentOrigin:E,startType:b,streamType:Mn(e),transportProtocol:Rn.loc()?.protocol,viewerId:(new Ln).get("SWID")||""},d||{})}})({configAppStores:t.configAppStores,mediaItem:t.mediaItem,playerProps:t.playerProps})}getStreamType(t){const e=(0,s.struc)(t?.contentType)===fe,n=t?.network?.type===ve;let i=Vn.VOD;return e&&(i=n?Vn.LINEAR:Vn.LIVE),i}};const Hn="uiqlbgzdwuru14v627vdusswb";function Gn(){const t=new Ln;return t?.get("SWID")||""}var Yn=class extends $n{buildPlaybackData(){const t=this?.mediaItem;if(t?.shieldUrl){let e=t.shieldUrl;if(t?.isVerticalVideoFeed){const n=new URL(e),i=t?.network?.brand||"";n.searchParams.set("context",`news_${i.toLowerCase()}_verts`),e=n.toString()}return{schema:ze.ShieldPlaybackParamsSchema,sources:[{uri:`${e}&pbo=true&apikey=${Hn}`}]}}return t?.playbackId?{schema:ze.ShieldPlaybackParamsSchema,sources:[{uri:`https://watch.auth.api.espn.com/video/auth/media/${this?.mediaItem?.playbackId}/asset?apikey=${Hn}`}]}:t?.source?.url?{schema:ze.M3u8PlaybackParamsSchema,sources:[{uri:(0,s.strReplace)(t?.source?.url,"hls","cmaf")}]}:void 0}getPlaybackParameters(){const t=this.buildPlaybackData();if(!t)throw new Error("Playback data is undefined");const{schema:e,sources:n}=t;return{schema:e,sources:n,request:{header:[{name:"Content-Type",value:"application/x-www-form-urlencoded;charset=UTF-8"}],body:[{name:"sessionToken",value:this.sessionToken},{name:"swid",value:Gn()}]}}}},jn=class extends $n{buildPlaybackCriteria(){const t=super.buildPlaybackCriteria(),e={authorizationData:((t,e)=>{if(!t)return null;const{source:n,token:i=e.token,resource:r}=t;return n&&i?{source:Ue[n],value:i||e.token,resource:r}:null})(this.authorization,this.mediaItem)||{source:Ue.None,value:null,resource:null}};return xn({},t,{mediaParams:{...t.mediaParams,...e}})}getPlaybackParameters(){return{playbackId:this.mediaItem.playbackId,schema:ze.ClientSdkPlaybackParamsSchema,SDK:Bn.Z,standardWebId:this.getSwidCookie()}}getSwidCookie(){const t=new Ln;return t?.get("SWID")||""}},Kn=class extends $n{buildPlaybackCriteria(){const t=super.buildPlaybackCriteria(),e=((t,e)=>{if(!t)return null;const{source:n,token:i=e.token,resource:r}=t;return n&&i?{source:Ue[n],value:i||e.token,resource:r}:null})(this.authorization,this.mediaItem),n={startPositionType:en.LiveEdge,authorizationData:e||{source:Ue.None,value:null,resource:null}};return xn({},t,{mediaParams:{...t.mediaParams,...n}})}getPlaybackParameters(){return{playbackId:this.mediaItem.playbackId,schema:ze.ClientSdkPlaybackParamsSchema,SDK:Bn.Z,standardWebId:this.getSwidCookie()}}getSwidCookie(){const t=new Ln;return t?.get("SWID")||""}},Wn=class extends $n{buildPlaybackCriteria(){const t=super.buildPlaybackCriteria(),e={startPositionType:en.LiveEdge,authorizationData:{source:Ue.None,value:null,resource:null}};return xn({},t,{mediaParams:{...t.mediaParams,...e}})}getPlaybackParameters(){const t=this.mediaItem;return{sources:[{uri:t?.playbackUrl}],schema:ze.M3u8PlaybackParamsSchema,SDK:Bn.Z}}};class qn{static createPlayerSetupInstance({mediaItem:t,authorization:e,sessionToken:n,configAppStores:i,playerProps:r}){const o=t?.contentType,a=t?.network,s="linear"===a?.type||me.includes(a?.id),l="vod"===o||"shortform"===o||"verts"===o,c=t?.isAdhoc,d="longform"===o;return l?new Yn({mediaItem:t,sessionToken:n,configAppStores:i,playerProps:r}):d?new jn({mediaItem:t,authorization:e,configAppStores:i,playerProps:r}):c?new Wn({mediaItem:t,sessionToken:n,configAppStores:i,playerProps:r}):s?new Kn({mediaItem:t,authorization:e,configAppStores:i,playerProps:r}):void 0}}class Xn{constructor(){if(Xn.instance)return Xn.instance;Xn.instance=this}static getInstance(){return Xn.instance||(Xn.instance=new Xn),Xn.instance}getSDKError(t="keynotfoundexception",e,n){let i=e?e[(0,s.strlc)(t)]:v[(0,s.strlc)(t)];
5264return i||(i="An error has occurred. Please contact support for more assistance."),n&&(i=`${i} [${n}]`),i}}var Zn,Qn=Xn.getInstance(),Jn=class{constructor({PlayerSetup:t}){this.playbackCriteria=null,this.PlayerSetup=t,this.getSDKError=Qn.getSDKError.bind(Qn),jt(this,{playbackCriteria:Gt.ref}),this.reset()}async loadPlaybackCriteria(t,e,n,i,r){let o;const a=n?.sdkSession||i?.sdkSessionConfig?.sdkSession||i?.sdkSessionConfig?.current?.sdkSession,s=[a?.getSessionToken?.()],l=await Promise.all(s),[c]=l;o=this.PlayerSetup?new this.PlayerSetup({mediaItem:t,authorization:e,sessionToken:c,configAppStores:i,playerProps:r}):qn.createPlayerSetupInstance({mediaItem:t,authorization:e,sessionToken:c,configAppStores:i,playerProps:r}),this.playbackCriteria=o?.buildPlaybackCriteria(),this.mediaItem=t}reset(){this.playbackCriteria=null}};!function(t){t.NONE="NONE",t.DISNEY_PLUS="DISNEY_PLUS",t.ESPN="ESPN",t.ENTERTAINMENT="ENTERTAINMENT",t.NEWS="NEWS"}(Zn||(Zn={}));var ti="delete",ei=5,ni=1<<ei,ii=ni-1,ri={};function oi(t){t&&(t.value=!0)}function ai(){}function si(t){return void 0===t.size&&(t.size=t.__iterate(ci)),t.size}function li(t,e){if("number"!=typeof e){var n=e>>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?si(t)+e:e}function ci(){return!0}function di(t,e,n){return(0===t&&!mi(t)||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function ui(t,e){return hi(t,e,0)}function pi(t,e){return hi(t,e,e)}function hi(t,e,n){return void 0===t?n:mi(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function mi(t){return t<0||0===t&&1/t==-1/0}var gi="@@__IMMUTABLE_ITERABLE__@@";function vi(t){return Boolean(t&&t[gi])}var fi="@@__IMMUTABLE_KEYED__@@";function bi(t){return Boolean(t&&t[fi])}var _i="@@__IMMUTABLE_INDEXED__@@";function Ei(t){return Boolean(t&&t[_i])}function yi(t){return bi(t)||Ei(t)}var Si=function(t){return vi(t)?t:Wi(t)},Ti=function(t){function e(t){return bi(t)?t:qi(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Si),Ci=function(t){function e(t){return Ei(t)?t:Xi(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Si),wi=function(t){function e(t){return vi(t)&&!yi(t)?t:Zi(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Si);Si.Keyed=Ti,Si.Indexed=Ci,Si.Set=wi;var Ai="@@__IMMUTABLE_SEQ__@@";function Ii(t){return Boolean(t&&t[Ai])}var Oi="@@__IMMUTABLE_RECORD__@@";function Ri(t){return Boolean(t&&t[Oi])}function xi(t){return vi(t)||Ri(t)}var Li="@@__IMMUTABLE_ORDERED__@@";function ki(t){return Boolean(t&&t[Li])}var Pi=0,Di=1,Ni=2,Mi="function"==typeof Symbol&&Symbol.iterator,Ui="@@iterator",Bi=Mi||Ui,Vi=function(t){this.next=t};function Fi(t,e,n,i){var r=0===t?e:1===t?n:[e,n];return i?i.value=r:i={value:r,done:!1},i}function zi(){return{value:void 0,done:!0}}function $i(t){return!!Array.isArray(t)||!!Yi(t)}function Hi(t){return t&&"function"==typeof t.next}function Gi(t){var e=Yi(t);return e&&e.call(t)}function Yi(t){var e=t&&(Mi&&t[Mi]||t[Ui]);if("function"==typeof e)return e}Vi.prototype.toString=function(){return"[Iterator]"},Vi.KEYS=Pi,Vi.VALUES=Di,Vi.ENTRIES=Ni,Vi.prototype.inspect=Vi.prototype.toSource=function(){return this.toString()},Vi.prototype[Bi]=function(){return this};var ji=Object.prototype.hasOwnProperty;function Ki(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var Wi=function(t){function e(t){return null==t?nr():xi(t)?t.toSeq():function(t){var e,n,i=or(t);if(i)return(n=Yi(e=t))&&n===e.entries?i.fromEntrySeq():function(t){var e=Yi(t);return e&&e===t.keys}(t)?i.toSetSeq():i;if("object"==typeof t)return new Ji(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var n=this._cache;if(n){for(var i=n.length,r=0;r!==i;){var o=n[e?i-++r:r++];if(!1===t(o[1],o[0],this))break}return r}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var n=this._cache;if(n){var i=n.length,r=0;return new Vi((function(){if(r===i)return{value:void 0,done:!0};var o=n[e?i-++r:r++];return Fi(t,o[0],o[1])}))}return this.__iteratorUncached(t,e)},e}(Si),qi=function(t){function e(t){return null==t?nr().toKeyedSeq():vi(t)?bi(t)?t.toSeq():t.fromEntrySeq():Ri(t)?t.toSeq():ir(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(Wi),Xi=function(t){function e(t){return null==t?nr():vi(t)?bi(t)?t.entrySeq():t.toIndexedSeq():Ri(t)?t.toSeq().entrySeq():rr(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(Wi),Zi=function(t){function e(t){return(vi(t)&&!yi(t)?t:Xi(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(Wi);Wi.isSeq=Ii,Wi.Keyed=qi,Wi.Set=Zi,Wi.Indexed=Xi,Wi.prototype[Ai]=!0;var Qi=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[li(this,t)]:e},e.prototype.__iterate=function(t,e){for(var n=this._array,i=n.length,r=0;r!==i;){var o=e?i-++r:r++;if(!1===t(n[o],o,this))break}return r},e.prototype.__iterator=function(t,e){var n=this._array,i=n.length,r=0;return new Vi((function(){if(r===i)return{value:void 0,done:!0};var o=e?i-++r:r++;return Fi(t,o,n[o])}))},e}(Xi),Ji=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return ji.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var n=this._object,i=this._keys,r=i.length,o=0;o!==r;){var a=i[e?r-++o:o++];if(!1===t(n[a],a,this))break}return o},e.prototype.__iterator=function(t,e){var n=this._object,i=this._keys,r=i.length,o=0;return new Vi((function(){if(o===r)return{value:void 0,done:!0};var a=i[e?r-++o:o++];return Fi(t,a,n[a])}))},e}(qi);Ji.prototype[Li]=!0;var tr,er=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=Gi(this._collection),i=0;if(Hi(n))for(var r;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=Gi(this._collection);if(!Hi(n))return new Vi(zi);var i=0;return new Vi((function(){var e=n.next();return e.done?e:Fi(t,i++,e.value)}))},e}(Xi);function nr(){return tr||(tr=new Qi([]))}function ir(t){var e=or(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new Ji(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function rr(t){var e=or(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function or(t){return Ki(t)?new Qi(t):$i(t)?new er(t):void 0}
5264var ar="@@__IMMUTABLE_MAP__@@";function sr(t){return Boolean(t&&t[ar])}function lr(t){return sr(t)&&ki(t)}function cr(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function dr(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(cr(t)&&cr(e)&&t.equals(e))}var ur="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),i=65535&(e|=0);return n*i+((t>>>16)*i+n*(e>>>16)<<16>>>0)|0};function pr(t){return t>>>1&1073741824|3221225471&t}var hr=Object.prototype.valueOf;function mr(t){if(null==t)return gr(t);if("function"==typeof t.hashCode)return pr(t.hashCode(t));var e,n,i,r=(e=t).valueOf!==hr&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==r)return gr(r);switch(typeof r){case"boolean":return r?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return pr(e)}(r);case"string":return r.length>wr?(void 0===(i=Or[n=r])&&(i=vr(n),Ir===Ar&&(Ir=0,Or={}),Ir++,Or[n]=i),i):vr(r);case"object":case"function":return function(t){var e;if(yr&&void 0!==(e=Er.get(t)))return e;if(void 0!==(e=t[Cr]))return e;if(!br){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Cr]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=_r(),yr)Er.set(t,e);else{if(void 0!==fr&&!1===fr(t))throw new Error("Non-extensible objects are not allowed as keys.");
vendor: 8,128 bytes, line 5264
5264if(br)Object.defineProperty(t,Cr,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Cr]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Cr]=e}}return e}(r);case"symbol":return function(t){var e=Sr[t];return void 0!==e||(e=_r(),Sr[t]=e),e}(r);default:if("function"==typeof r.toString)return vr(r.toString());throw new Error("Value type "+typeof r+" cannot be hashed.")}}function gr(t){return null===t?1108378658:1108378659}function vr(t){for(var e=0,n=0;n<t.length;n++)e=31*e+t.charCodeAt(n)|0;return pr(e)}var fr=Object.isExtensible,br=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function _r(){var t=++Tr;return 1073741824&Tr&&(Tr=0),t}var Er,yr="function"==typeof WeakMap;yr&&(Er=new WeakMap);var Sr=Object.create(null),Tr=0,Cr="__immutablehash__";"function"==typeof Symbol&&(Cr=Symbol(Cr));var wr=16,Ar=255,Ir=0,Or={},Rr=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Nr(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var n=this,i=Dr(this,t,e);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().map(t,e)}),i},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e,i){return t(e,i,n)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(qi);Rr.prototype[Li]=!0;var xr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this,i=0;return e&&si(this),this._iter.__iterate((function(r){return t(r,e?n.size-++i:i++,n)}),e)},e.prototype.__iterator=function(t,e){var n=this,i=this._iter.__iterator(Di,e),r=0;return e&&si(this),new Vi((function(){var o=i.next();return o.done?o:Fi(t,e?n.size-++r:r++,o.value,o)}))},e}(Xi),Lr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(Di,e);return new Vi((function(){var e=n.next();return e.done?e:Fi(t,e.value,e.value,e)}))},e}(Zi),kr=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate((function(e){if(e){Yr(e);var i=vi(e);return t(i?e.get(1):e[1],i?e.get(0):e[0],n)}}),e)},e.prototype.__iterator=function(t,e){var n=this._iter.__iterator(Di,e);return new Vi((function(){for(;;){var e=n.next();if(e.done)return e;var i=e.value;if(i){Yr(i);var r=vi(i);return Fi(t,r?i.get(0):i[0],r?i.get(1):i[1],e)}}}))},e}(qi);function Pr(t){var e=Kr(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Wr,e.__iterateUncached=function(e,n){var i=this;return t.__iterate((function(t,n){return!1!==e(n,t,i)}),n)},e.__iteratorUncached=function(e,n){if(e===Ni){var i=t.__iterator(e,n);return new Vi((function(){var t=i.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===Di?Pi:Di,n)},e}function Dr(t,e,n){var i=Kr(t);return i.size=t.size,i.has=function(e){return t.has(e)},i.get=function(i,r){var o=t.get(i,ri);return o===ri?r:e.call(n,o,i,t)},i.__iterateUncached=function(i,r){var o=this;return t.__iterate((function(t,r,a){return!1!==i(e.call(n,t,r,a),r,o)}),r)},i.__iteratorUncached=function(i,r){var o=t.__iterator(Ni,r);return new Vi((function(){var r=o.next();if(r.done)return r;var a=r.value,s=a[0];return Fi(i,s,e.call(n,a[1],s,t),r)}))},i}function Nr(t,e){var n=this,i=Kr(t);return i._iter=t,i.size=t.size,i.reverse=function(){return t},t.flip&&(i.flip=function(){var e=Pr(t);return e.reverse=function(){return t.flip()},e}),i.get=function(n,i){return t.get(e?n:-1-n,i)},i.has=function(n){return t.has(e?n:-1-n)},i.includes=function(e){return t.includes(e)},i.cacheResult=Wr,i.__iterate=function(n,i){var r=this,o=0;return i&&si(t),t.__iterate((function(t,a){return n(t,e?a:i?r.size-++o:o++,r)}),!i)},i.__iterator=function(i,r){var o=0;r&&si(t);var a=t.__iterator(Ni,!r);return new Vi((function(){var t=a.next();if(t.done)return t;var s=t.value;return Fi(i,e?s[0]:r?n.size-++o:o++,s[1],t)}))},i}function Mr(t,e,n,i){var r=Kr(t);return i&&(r.has=function(i){var r=t.get(i,ri);return r!==ri&&!!e.call(n,r,i,t)},r.get=function(i,r){var o=t.get(i,ri);return o!==ri&&e.call(n,o,i,t)?o:r}),r.__iterateUncached=function(r,o){var a=this,s=0;return t.__iterate((function(t,o,l){if(e.call(n,t,o,l))return s++,r(t,i?o:s-1,a)}),o),s},r.__iteratorUncached=function(r,o){var a=t.__iterator(Ni,o),s=0;return new Vi((function(){for(;;){var o=a.next();if(o.done)return o;var l=o.value,c=l[0],d=l[1];if(e.call(n,d,c,t))return Fi(r,i?c:s++,d,o)}}))},r}function Ur(t,e,n,i){var r=t.size;if(di(e,n,r))return t;var o=ui(e,r),a=pi(n,r);if(o!=o||a!=a)return Ur(t.toSeq().cacheResult(),e,n,i);var s,l=a-o;l==l&&(s=l<0?0:l);var c=Kr(t);return c.size=0===s?s:t.size&&s||void 0,!i&&Ii(t)&&s>=0&&(c.get=function(e,n){return(e=li(this,e))>=0&&e<s?t.get(e+o,n):n}),c.__iterateUncached=function(e,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(e,n);var a=0,l=!0,c=0;return t.__iterate((function(t,n){if(!l||!(l=a++<o))return c++,!1!==e(t,i?n:c-1,r)&&c!==s})),c},c.__iteratorUncached=function(e,n){if(0!==s&&n)return this.cacheResult().__iterator(e,n);if(0===s)return new Vi(zi);var r=t.__iterator(e,n),a=0,l=0;return new Vi((function(){for(;a++<o;)r.next();if(++l>s)return{value:void 0,done:!0};var t=r.next();return i||e===Di||t.done?t:Fi(e,l-1,e===Pi?void 0:t.value[1],t)}))},c}function Br(t,e,n,i){var r=Kr(t);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var s=!0,l=0;return t.__iterate((function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return l++,r(t,i?o:l-1,a)})),l},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var s=t.__iterator(Ni,o),l=!0,c=0;return new Vi((function(){var t,o,d;do{if((t=s.next()).done)return i||r===Di?t:Fi(r,c++,r===Pi?void 0:t.value[1],t);var u=t.value;o=u[0],d=u[1],l&&(l=e.call(n,d,o,a))}while(l);return r===Ni?t:Fi(r,o,d,t)}))},r}function Vr(t,e,n){var i=Kr(t);return i.__iterateUncached=function(r,o){if(o)return this.cacheResult().__iterate(r,o);var a=0,s=!1;return function t(l,c){l.__iterate((function(o,l){return(!e||c<e)&&vi(o)?t(o,c+1):(a++,!1===r(o,n?l:a-1,i)&&(s=!0)),!s}),o)}(t,0),a},i.__iteratorUncached=function(i,r){if(r)return this.cacheResult().__iterator(i,r);var o=t.__iterator(i,r),a=[],s=0;return new Vi((function(){for(;o;){var t=o.next();if(!1===t.done){var l=t.value;if(i===Ni&&(l=l[1]),e&&!(a.length<e)||!vi(l))return n?t:Fi(i,s++,l,t);a.push(o),o=l.__iterator(i,r)}else o=a.pop()}return{value:void 0,done:!0}}))},i}function Fr(t,e,n){e||(e=qr);var i=bi(t),r=0,o=t.toSeq().map((function(e,i){return[i,e,r++,n?n(e,i,t):e]})).valueSeq().toArray();return o.sort((function(t,n){return e(t[3],n[3])||t[2]-n[2]}
5264)).forEach(i?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),i?qi(o):Ei(t)?Xi(o):Zi(o)}function zr(t,e,n){if(e||(e=qr),n){var i=t.toSeq().map((function(e,i){return[e,n(e,i,t)]})).reduce((function(t,n){return $r(e,t[1],n[1])?n:t}));return i&&i[0]}return t.reduce((function(t,n){return $r(e,t,n)?n:t}))}function $r(t,e,n){var i=t(n,e);return 0===i&&n!==e&&(null==n||n!=n)||i>0}function Hr(t,e,n,i){var r=Kr(t),o=new Qi(n).map((function(t){return t.size}));return r.size=i?o.max():o.min(),r.__iterate=function(t,e){for(var n,i=this.__iterator(Di,e),r=0;!(n=i.next()).done&&!1!==t(n.value,r++,this););return r},r.__iteratorUncached=function(t,r){var o=n.map((function(t){return t=Si(t),Gi(r?t.reverse():t)})),a=0,s=!1;return new Vi((function(){var n;return s||(n=o.map((function(t){return t.next()})),s=i?n.every((function(t){return t.done})):n.some((function(t){return t.done}))),s?{value:void 0,done:!0}:Fi(t,a++,e.apply(null,n.map((function(t){return t.value}))))}))},r}function Gr(t,e){return t===e?t:Ii(t)?e:t.constructor(e)}function Yr(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function jr(t){return bi(t)?Ti:Ei(t)?Ci:wi}function Kr(t){return Object.create((bi(t)?qi:Ei(t)?Xi:Zi).prototype)}function Wr(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Wi.prototype.cacheResult.call(this)}function qr(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Xr(t,e){e=e||0;for(var n=Math.max(0,t.length-e),i=new Array(n),r=0;r<n;r++)i[r]=t[r+e];return i}function Zr(t,e){if(!t)throw new Error(e)}function Qr(t){Zr(t!==1/0,"Cannot perform this action with an infinite size.")}function Jr(t){if(Ki(t)&&"string"!=typeof t)return t;if(ki(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}xr.prototype.cacheResult=Rr.prototype.cacheResult=Lr.prototype.cacheResult=kr.prototype.cacheResult=Wr;var to=Object.prototype.toString;function eo(t){return"object"==typeof t&&(xi(t)||Array.isArray(t)||function(t){if(!t||"object"!=typeof t||"[object Object]"!==to.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var n=e,i=Object.getPrototypeOf(e);null!==i;)n=i,i=Object.getPrototypeOf(n);return n===e}(t))}function no(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function io(t,e,n){return xi(t)?t.get(e,n):function(t,e){return xi(t)?t.has(e):eo(t)&&ji.call(t,e)}(t,e)?"function"==typeof t.get?t.get(e):t[e]:n}function ro(t){if(Array.isArray(t))return Xr(t);var e={};for(var n in t)ji.call(t,n)&&(e[n]=t[n]);return e}function oo(t,e,n,i){i||(i=n,n=void 0);var r=ao(xi(t),t,Jr(e),0,n,i);return r===ri?n:r}function ao(t,e,n,i,r,o){var a=e===ri;if(i===n.length){var s=a?r:e,l=o(s);return l===s?e:l}if(!a&&!eo(e))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,i).map(no)+"]: "+e);var c=n[i],d=a?ri:io(e,c,ri),u=ao(d===ri?t:xi(d),d,n,i+1,r,o);return u===d?e:u===ri?function(t,e){if(!eo(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(xi(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!ji.call(t,e))return t;var n=ro(t);return Array.isArray(n)?n.splice(e,1):delete n[e],n}(e,c):function(t,e,n){if(!eo(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(xi(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,n)}if(ji.call(t,e)&&n===t[e])return t;var i=ro(t);return i[e]=n,i}(a?t?Bo():{}:e,c,u)}function so(t,e){return function(t,e,n){return oo(t,e,ri,(function(){return n}))}(this,t,e)}function lo(t){return function(t,e){return oo(t,e,(function(){return ri}))}(this,t)}function co(t,e,n,i){return oo(t,[e],n,i)}function uo(t,e,n){return 1===arguments.length?t(this):co(this,t,e,n)}function po(t,e,n){return oo(this,t,e,n)}function ho(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return go(this,t)}function mo(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return go(this,e,t)}function go(t,e,n){for(var i=[],r=0;r<e.length;r++){var o=Ti(e[r]);0!==o.size&&i.push(o)}return 0===i.length?t:0!==t.toSeq().size||t.__ownerID||1!==i.length?t.withMutations((function(t){for(var e=n?function(e,i){co(t,i,ri,(function(t){return t===ri?e:n(t,e,i)}))}:function(e,n){t.set(n,e)},r=0;r<i.length;r++)i[r].forEach(e)})):t.constructor(i[0])}function vo(t,e,n){return fo(t,e,function(t){return function e(n,i,r){return eo(n)&&eo(i)&&(o=i,a=Wi(n),s=Wi(o),Ei(a)===Ei(s)&&bi(a)===bi(s))?fo(n,[i],e):t?t(n,i,r):i;var o,a,s}}(n))}function fo(t,e,n){if(!eo(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(xi(t))return"function"==typeof n&&t.mergeWith?t.mergeWith.apply(t,[n].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var i=Array.isArray(t),r=t,o=i?Ci:Ti,a=i?function(e){r===t&&(r=ro(r)),r.push(e)}:function(e,i){var o=ji.call(r,i),a=o&&n?n(r[i],e,i):e;o&&a===r[i]||(r===t&&(r=ro(r)),r[i]=a)},s=0;s<e.length;
vendor: 7,202 bytes, line 5264
5264s++)o(e[s]).forEach(a);return r}function bo(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return vo(this,t)}function _o(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return vo(this,e,t)}function Eo(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return oo(this,t,Bo(),(function(t){return fo(t,e)}))}function yo(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];return oo(this,t,Bo(),(function(t){return vo(t,e)}))}function So(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function To(){return this.__ownerID?this:this.__ensureOwner(new ai)}function Co(){return this.__ensureOwner()}function wo(){return this.__altered}var Ao=function(t){function e(e){return null==e?Bo():sr(e)&&!ki(e)?e:Bo().withMutations((function(n){var i=t(e);Qr(i.size),i.forEach((function(t,e){return n.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Bo().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Vo(this,t,e)},e.prototype.remove=function(t){return Vo(this,t,ri)},e.prototype.deleteAll=function(t){var e=Si(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Bo()},e.prototype.sort=function(t){return da(Fr(this,t))},e.prototype.sortBy=function(t,e){return da(Fr(this,e,t))},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(i){i.forEach((function(r,o){i.set(o,t.call(e,r,o,n))}))}))},e.prototype.__iterator=function(t,e){return new Do(this,t,e)},e.prototype.__iterate=function(t,e){var n=this,i=0;return this._root&&this._root.iterate((function(e){return i++,t(e[1],e[0],n)}),e),i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Uo(this.size,this._root,t,this.__hash):0===this.size?Bo():(this.__ownerID=t,this.__altered=!1,this)},e}(Ti);Ao.isMap=sr;var Io=Ao.prototype;Io[ar]=!0,Io[ti]=Io.remove,Io.removeAll=Io.deleteAll,Io.setIn=so,Io.removeIn=Io.deleteIn=lo,Io.update=uo,Io.updateIn=po,Io.merge=Io.concat=ho,Io.mergeWith=mo,Io.mergeDeep=bo,Io.mergeDeepWith=_o,Io.mergeIn=Eo,Io.mergeDeepIn=yo,Io.withMutations=So,Io.wasAltered=wo,Io.asImmutable=Co,Io["@@transducer/init"]=Io.asMutable=To,Io["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Io["@@transducer/result"]=function(t){return t.asImmutable()};var Oo=function(t,e){this.ownerID=t,this.entries=e};Oo.prototype.get=function(t,e,n,i){for(var r=this.entries,o=0,a=r.length;o<a;o++)if(dr(n,r[o][0]))return r[o][1];return i},Oo.prototype.update=function(t,e,n,i,r,o,a){for(var s=r===ri,l=this.entries,c=0,d=l.length;c<d&&!dr(i,l[c][0]);c++);var u=c<d;if(u?l[c][1]===r:s)return this;if(oi(a),(s||!u)&&oi(o),!s||1!==l.length){if(!u&&!s&&l.length>=Yo)return function(t,e,n,i){t||(t=new ai);for(var r=new ko(t,mr(n),[n,i]),o=0;o<e.length;o++){var a=e[o];r=r.update(t,0,void 0,a[0],a[1])}return r}(t,l,i,r);var p=t&&t===this.ownerID,h=p?l:Xr(l);return u?s?c===d-1?h.pop():h[c]=h.pop():h[c]=[i,r]:h.push([i,r]),p?(this.entries=h,this):new Oo(t,h)}};var Ro=function(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n};Ro.prototype.get=function(t,e,n,i){void 0===e&&(e=mr(n));var r=1<<((0===t?e:e>>>t)&ii),o=this.bitmap;return 0==(o&r)?i:this.nodes[Ho(o&r-1)].get(t+ei,e,n,i)},Ro.prototype.update=function(t,e,n,i,r,o,a){void 0===n&&(n=mr(i));var s=(0===e?n:n>>>e)&ii,l=1<<s,c=this.bitmap,d=0!=(c&l);if(!d&&r===ri)return this;var u=Ho(c&l-1),p=this.nodes,h=d?p[u]:void 0,m=Fo(h,t,e+ei,n,i,r,o,a);if(m===h)return this;if(!d&&m&&p.length>=jo)return function(t,e,n,i,r){for(var o=0,a=new Array(ni),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[i]=r,new xo(t,o+1,a)}(t,p,c,s,m);if(d&&!m&&2===p.length&&zo(p[1^u]))return p[1^u];if(d&&m&&1===p.length&&zo(m))return m;var g=t&&t===this.ownerID,v=d?m?c:c^l:c|l,f=d?m?Go(p,u,m,g):function(t,e,n){var i=t.length-1;if(n&&e===i)return t.pop(),t;for(var r=new Array(i),o=0,a=0;a<i;a++)a===e&&(o=1),r[a]=t[a+o];return r}(p,u,g):function(t,e,n,i){var r=t.length+1;if(i&&e+1===r)return t[e]=n,t;for(var o=new Array(r),a=0,s=0;s<r;s++)s===e?(o[s]=n,a=-1):o[s]=t[s+a];return o}(p,u,m,g);return g?(this.bitmap=v,this.nodes=f,this):new Ro(t,v,f)};var xo=function(t,e,n){this.ownerID=t,this.count=e,this.nodes=n};xo.prototype.get=function(t,e,n,i){void 0===e&&(e=mr(n));var r=(0===t?e:e>>>t)&ii,o=this.nodes[r];return o?o.get(t+ei,e,n,i):i},xo.prototype.update=function(t,e,n,i,r,o,a){void 0===n&&(n=mr(i));var s=(0===e?n:n>>>e)&ii,l=r===ri,c=this.nodes,d=c[s];if(l&&!d)return this;var u=Fo(d,t,e+ei,n,i,r,o,a);if(u===d)return this;var p=this.count;if(d){if(!u&&--p<Ko)return function(t,e,n,i){for(var r=0,o=0,a=new Array(n),s=0,l=1,c=e.length;s<c;s++,l<<=1){var d=e[s];void 0!==d&&s!==i&&(r|=l,a[o++]=d)}return new Ro(t,r,a)}(t,c,p,s)}else p++;var h=t&&t===this.ownerID,m=Go(c,s,u,h);return h?(this.count=p,this.nodes=m,this):new xo(t,p,m)};var Lo=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n};Lo.prototype.get=function(t,e,n,i){for(var r=this.entries,o=0,a=r.length;o<a;o++)if(dr(n,r[o][0]))return r[o][1];return i},Lo.prototype.update=function(t,e,n,i,r,o,a){void 0===n&&(n=mr(i));var s=r===ri;if(n!==this.keyHash)return s?this:(oi(a),oi(o),$o(this,t,e,n,[i,r]));for(var l=this.entries,c=0,d=l.length;c<d&&!dr(i,l[c][0]);c++);var u=c<d;if(u?l[c][1]===r:s)return this;if(oi(a),(s||!u)&&oi(o),s&&2===d)return new ko(t,this.keyHash,l[1^c]);var p=t&&t===this.ownerID,h=p?l:Xr(l);return u?s?c===d-1?h.pop():h[c]=h.pop():h[c]=[i,r]:h.push([i,r]),p?(this.entries=h,this):new Lo(t,this.keyHash,h)};var ko=function(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n};ko.prototype.get=function(t,e,n,i){return dr(n,this.entry[0])?this.entry[1]:i},ko.prototype.update=function(t,e,n,i,r,o,a){var s=r===ri,l=dr(i,this.entry[0]);return(l?r===this.entry[1]:s)?this:(oi(a),s?void oi(o):l?t&&t===this.ownerID?(this.entry[1]=r,this):new ko(t,this.keyHash,[i,r]):(oi(o),$o(this,t,e,mr(i),[i,r])))},Oo.prototype.iterate=Lo.prototype.iterate=function(t,e){for(var n=this.entries,i=0,r=n.length-1;i<=r;i++)if(!1===t(n[e?r-i:i]))return!1},Ro.prototype.iterate=xo.prototype.iterate=function(t,e){for(var n=this.nodes,i=0,r=n.length-1;i<=r;i++){var o=n[e?r-i:i];if(o&&!1===o.iterate(t,e))return!1}},ko.prototype.iterate=function(t,e){return t(this.entry)};var Po,Do=function(t){function e(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&Mo(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var n=e.node,i=e.index++,r=void 0;if(n.entry){if(0===i)return No(t,n.entry)}else if(n.entries){if(i<=(r=n.entries.length-1))return No(t,n.entr
vendor: 1,342 bytes, line 5264
5264ies[this._reverse?r-i:i])}else if(i<=(r=n.nodes.length-1)){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return No(t,o.entry);e=this._stack=Mo(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(Vi);function No(t,e){return Fi(t,e[0],e[1])}function Mo(t,e){return{node:t,index:0,__prev:e}}function Uo(t,e,n,i){var r=Object.create(Io);return r.size=t,r._root=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Bo(){return Po||(Po=Uo(0))}function Vo(t,e,n){var i,r;if(t._root){var o={value:!1},a={value:!1};if(i=Fo(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;r=t.size+(o.value?n===ri?-1:1:0)}else{if(n===ri)return t;r=1,i=new Oo(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=r,t._root=i,t.__hash=void 0,t.__altered=!0,t):i?Uo(r,i):Bo()}function Fo(t,e,n,i,r,o,a,s){return t?t.update(e,n,i,r,o,a,s):o===ri?t:(oi(s),oi(a),new ko(e,i,[r,o]))}function zo(t){return t.constructor===ko||t.constructor===Lo}function $o(t,e,n,i,r){if(t.keyHash===i)return new Lo(e,i,[t.entry,r]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&ii,s=(0===n?i:i>>>n)&ii,l=a===s?[$o(t,e,n+ei,i,r)]:(o=new ko(e,i,r),a<s?[t,o]:[o,t]);return new Ro(e,1<<a|1<<s,l)}function Ho(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function Go(t,e,n,i){var r=i?t:Xr(t);return r[e]=n,r}
vendor: 5,002 bytes, line 5264
5264var Yo=ni/4,jo=ni/2,Ko=ni/4,Wo="@@__IMMUTABLE_LIST__@@";function qo(t){return Boolean(t&&t[Wo])}var Xo=function(t){function e(e){var n=ia();if(null==e)return n;if(qo(e))return e;var i=t(e),r=i.size;return 0===r?n:(Qr(r),r>0&&r<ni?na(0,r,ei,null,new Qo(i.toArray())):n.withMutations((function(t){t.setSize(r),i.forEach((function(e,n){return t.set(n,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=li(this,t))>=0&&t<this.size){var n=aa(this,t+=this._origin);return n&&n.array[t&ii]}return e},e.prototype.set=function(t,e){return function(t,e,n){if((e=li(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?sa(t,e).set(0,n):sa(t,0,e+1).set(e,n)}));e+=t._origin;var i=t._tail,r=t._root,o={value:!1};return e>=la(t._capacity)?i=ra(i,t.__ownerID,0,e,n,o):r=ra(r,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=r,t._tail=i,t.__hash=void 0,t.__altered=!0,t):na(t._origin,t._capacity,t._level,r,i):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=ei,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):ia()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){sa(n,0,e+t.length);for(var i=0;i<t.length;i++)n.set(e+i,t[i])}))},e.prototype.pop=function(){return sa(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){sa(e,-t.length);for(var n=0;n<t.length;n++)e.set(n,t[n])}))},e.prototype.shift=function(){return sa(this,1)},e.prototype.concat=function(){for(var e=arguments,n=[],i=0;i<arguments.length;i++){var r=e[i],o=t("string"!=typeof r&&$i(r)?r:[r]);0!==o.size&&n.push(o)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(t){n.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(n[0])},e.prototype.setSize=function(t){return sa(this,0,t)},e.prototype.map=function(t,e){var n=this;return this.withMutations((function(i){for(var r=0;r<n.size;r++)i.set(r,t.call(e,i.get(r),r,n))}))},e.prototype.slice=function(t,e){var n=this.size;return di(t,e,n)?this:sa(this,ui(t,n),pi(e,n))},e.prototype.__iterator=function(t,e){var n=e?this.size:0,i=ea(this,e);return new Vi((function(){var r=i();return r===ta?{value:void 0,done:!0}:Fi(t,e?--n:n++,r)}))},e.prototype.__iterate=function(t,e){for(var n,i=e?this.size:0,r=ea(this,e);(n=r())!==ta&&!1!==t(n,e?--i:i++,this););return i},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?na(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?ia():(this.__ownerID=t,this.__altered=!1,this)},e}(Ci);Xo.isList=qo;var Zo=Xo.prototype;Zo[Wo]=!0,Zo[ti]=Zo.remove,Zo.merge=Zo.concat,Zo.setIn=so,Zo.deleteIn=Zo.removeIn=lo,Zo.update=uo,Zo.updateIn=po,Zo.mergeIn=Eo,Zo.mergeDeepIn=yo,Zo.withMutations=So,Zo.wasAltered=wo,Zo.asImmutable=Co,Zo["@@transducer/init"]=Zo.asMutable=To,Zo["@@transducer/step"]=function(t,e){return t.push(e)},Zo["@@transducer/result"]=function(t){return t.asImmutable()};var Qo=function(t,e){this.array=t,this.ownerID=e};Qo.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var i=n>>>e&ii;if(i>=this.array.length)return new Qo([],t);var r,o=0===i;if(e>0){var a=this.array[i];if((r=a&&a.removeBefore(t,e-ei,n))===a&&o)return this}if(o&&!r)return this;var s=oa(this,t);if(!o)for(var l=0;l<i;l++)s.array[l]=void 0;return r&&(s.array[i]=r),s},Qo.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var i,r=n-1>>>e&ii;if(r>=this.array.length)return this;if(e>0){var o=this.array[r];if((i=o&&o.removeAfter(t,e-ei,n))===o&&r===this.array.length-1)return this}var a=oa(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Jo,ta={};function ea(t,e){var n=t._origin,i=t._capacity,r=la(i),o=t._tail;return function t(a,s,l){return 0===s?function(t,a){var s=a===r?o&&o.array:t&&t.array,l=a>n?0:n-a,c=i-a;return c>ni&&(c=ni),function(){if(l===c)return ta;var t=e?--c:l++;return s&&s[t]}}(a,l):function(r,o,a){var s,l=r&&r.array,c=a>n?0:n-a>>o,d=1+(i-a>>o);return d>ni&&(d=ni),function(){for(;;){if(s){var n=s();if(n!==ta)return n;s=null}if(c===d)return ta;var i=e?--d:c++;s=t(l&&l[i],o-ei,a+(i<<o))}}}(a,s,l)}(t._root,t._level,0)}function na(t,e,n,i,r,o,a){var s=Object.create(Zo);return s.size=e-t,s._origin=t,s._capacity=e,s._level=n,s._root=i,s._tail=r,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function ia(){return Jo||(Jo=na(0,0,ei))}function ra(t,e,n,i,r,o){var a,s=i>>>n&ii,l=t&&s<t.array.length;if(!l&&void 0===r)return t;if(n>
vendor: 13,465 bytes, line 5264
52640){var c=t&&t.array[s],d=ra(c,e,n-ei,i,r,o);return d===c?t:((a=oa(t,e)).array[s]=d,a)}return l&&t.array[s]===r?t:(o&&oi(o),a=oa(t,e),void 0===r&&s===a.array.length-1?a.array.pop():a.array[s]=r,a)}function oa(t,e){return e&&t&&e===t.ownerID?t:new Qo(t?t.array.slice():[],e)}function aa(t,e){if(e>=la(t._capacity))return t._tail;if(e<1<<t._level+ei){for(var n=t._root,i=t._level;n&&i>0;)n=n.array[e>>>i&ii],i-=ei;return n}}function sa(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var i=t.__ownerID||new ai,r=t._origin,o=t._capacity,a=r+e,s=void 0===n?o:n<0?o+n:r+n;if(a===r&&s===o)return t;if(a>=s)return t.clear();for(var l=t._level,c=t._root,d=0;a+d<0;)c=new Qo(c&&c.array.length?[void 0,c]:[],i),d+=1<<(l+=ei);d&&(a+=d,r+=d,s+=d,o+=d);for(var u=la(o),p=la(s);p>=1<<l+ei;)c=new Qo(c&&c.array.length?[c]:[],i),l+=ei;var h=t._tail,m=p<u?aa(t,s-1):p>u?new Qo([],i):h;if(h&&p>u&&a<o&&h.array.length){for(var g=c=oa(c,i),v=l;v>ei;v-=ei){var f=u>>>v&ii;g=g.array[f]=oa(g.array[f],i)}g.array[u>>>ei&ii]=h}if(s<o&&(m=m&&m.removeAfter(i,0,s)),a>=p)a-=p,s-=p,l=ei,c=null,m=m&&m.removeBefore(i,0,a);else if(a>r||p<u){for(d=0;c;){var b=a>>>l&ii;if(b!==p>>>l&ii)break;b&&(d+=(1<<l)*b),l-=ei,c=c.array[b]}c&&a>r&&(c=c.removeBefore(i,l,a-d)),c&&p<u&&(c=c.removeAfter(i,l,p-d)),d&&(a-=d,s-=d)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=l,t._root=c,t._tail=m,t.__hash=void 0,t.__altered=!0,t):na(a,s,l,c,m)}function la(t){return t<ni?0:t-1>>>ei<<ei}var ca,da=function(t){function e(t){return null==t?pa():lr(t)?t:pa().withMutations((function(e){var n=Ti(t);Qr(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):pa()},e.prototype.set=function(t,e){return ha(this,t,e)},e.prototype.remove=function(t){return ha(this,t,ri)},e.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],n)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?ua(e,n,t,this.__hash):0===this.size?pa():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=n,this)},e}(Ao);function ua(t,e,n,i){var r=Object.create(da.prototype);return r.size=t?t.size:0,r._map=t,r._list=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function pa(){return ca||(ca=ua(Bo(),ia()))}function ha(t,e,n){var i,r,o=t._map,a=t._list,s=o.get(e),l=void 0!==s;if(n===ri){if(!l)return t;a.size>=ni&&a.size>=2*o.size?(i=(r=a.filter((function(t,e){return void 0!==t&&s!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(i.__ownerID=r.__ownerID=t.__ownerID)):(i=o.remove(e),r=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return t;i=o,r=a.set(s,[e,n])}else i=o.set(e,a.size),r=a.set(a.size,[e,n]);return t.__ownerID?(t.size=i.size,t._map=i,t._list=r,t.__hash=void 0,t.__altered=!0,t):ua(i,r)}da.isOrderedMap=lr,da.prototype[Li]=!0,da.prototype[ti]=da.prototype.remove;var ma="@@__IMMUTABLE_STACK__@@";function ga(t){return Boolean(t&&t[ma])}var va=function(t){function e(t){return null==t?Ea():ga(t)?t:Ea().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var n=this._head;for(t=li(this,t);n&&t--;)n=n.next;return n?n.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,n=this._head,i=arguments.length-1;i>=0;i--)n={value:t[i],next:n};return this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):_a(e,n)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&ga(e))return e;Qr(e.size);var n=this.size,i=this._head;return e.__iterate((function(t){n++,i={value:t,next:i}}),!0),this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):_a(n,i)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ea()},e.prototype.slice=function(e,n){if(di(e,n,this.size))return this;var i=ui(e,this.size);if(pi(n,this.size)!==this.size)return t.prototype.slice.call(this,e,n);for(var r=this.size-i,o=this._head;i--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):_a(r,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_a(this.size,this._head,t,this.__hash):0===this.size?Ea():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var n=this;if(e)return new Qi(this.toArray()).__iterate((function(e,i){return t(e,i,n)}),e);for(var i=0,r=this._head;r&&!1!==t(r.value,i++,this);)r=r.next;return i},e.prototype.__iterator=function(t,e){if(e)return new Qi(this.toArray()).__iterator(t,e);var n=0,i=this._head;return new Vi((function(){if(i){var e=i.value;return i=i.next,Fi(t,n++,e)}return{value:void 0,done:!0}}))},e}(Ci);va.isStack=ga;var fa,ba=va.prototype;function _a(t,e,n,i){var r=Object.create(ba);return r.size=t,r._head=e,r.__ownerID=n,r.__hash=i,r.__altered=!1,r}function Ea(){return fa||(fa=_a(0))}ba[ma]=!0,ba.shift=ba.pop,ba.unshift=ba.push,ba.unshiftAll=ba.pushAll,ba.withMutations=So,ba.wasAltered=wo,ba.asImmutable=Co,ba["@@transducer/init"]=ba.asMutable=To,ba["@@transducer/step"]=function(t,e){return t.unshift(e)},ba["@@transducer/result"]=function(t){return t.asImmutable()};var ya="@@__IMMUTABLE_SET__@@";function Sa(t){return Boolean(t&&t[ya])}function Ta(t){return Sa(t)&&ki(t)}function Ca(t,e){if(t===e)return!0;if(!vi(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||bi(t)!==bi(e)||Ei(t)!==Ei(e)||ki(t)!==ki(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!yi(t);if(ki(t)){var i=t.entries();return e.every((function(t,e){var r=i.next().value;return r&&dr(r[1],t)&&(n||dr(r[0],e))}))&&i.next().done}var r=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{r=!0;var o=t;t=e,e=o}var a=!0,s=e.__iterate((function(e,i){if(n?!t.has(e):r?!dr(e,t.get(i,ri)):!dr(t.get(i,ri),e))return a=!1,!1}));return a&&t.size===s}function wa(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}function Aa(t){if(!t||"object"!=typeof t)return t;if(!vi(t)){if(!eo(t))return t;t=Wi(t)}if(bi(t)){var e={};return t.__iterate((function(t,n){e[n]=Aa(t)})),e}var n=[];return t.__iterate((function(t){n.push(Aa(t))})),n}var Ia=function(t){function e(e){return null==e?ka():Sa(e)&&!ki(e)?e:ka().withMutations((function(n){var i=t(e);Qr(i.size),i.forEach((function(t){return n.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Ti(t).keySeq())},e.intersect=function(t){return(t=Si(t).toArray()).length?Ra.intersect.apply(e(t.pop()),t):ka()},e.union=function(t){return(t=Si(t).toArray()).length?Ra.union.apply(e(t.pop()),t):ka()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return xa(this,this._map.set(t,t))},e.prototype.remove=function(t){return xa(this,this._map.remove(t))},e.prototype.clear=function(){return xa(this,this._map.clear())},e.prototype.map=function(t,e){var n=this,i=!1,r=xa(this,this._map.mapEntries((function(r){var o=r[1],a=t.call(e,o,o,n);return a!==o&&(i=!0),[a,a]}),e));return i?r:this},e.prototype.union=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(n){for(var i=0;i<e.length;i++)"string"==typeof e[i]?n.add(e[i]):t(e[i]).forEach((function(t){return n.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var i=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||i.push(t)})),this.withMutations((function(t){i.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var i=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&i.push(t)})),this.withMutations((function(t){i.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return Xa(Fr(this,t))},e.prototype.sortBy=function(t,e){return Xa(Fr(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var n=this;return this._map.__iterate((function(e){return t(e,e,n)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(wi);Ia.isSet=Sa;var Oa,Ra=Ia.prototype;function xa(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function La(t,e){var n=Object.create(Ra);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function ka(){return Oa||(Oa=La(Bo()))}Ra[ya]=!0,Ra[ti]=Ra.remove,Ra.merge=Ra.concat=Ra.union,Ra.withMutations=So,Ra.asImmutable=Co,Ra["@@transducer/init"]=Ra.asMutable=To,Ra["@@transducer/step"]=function(t,e){return t.add(e)},Ra["@@transducer/result"]=function(t){return t.asImmutable()},Ra.__empty=ka,Ra.__make=La;var Pa,Da=function(t){function e(t,n,i){if(!(this instanceof e))return new e(t,n,i);if(Zr(0!==i,"Cannot step a Range by 0"),t=t||0,void 0===n&&(n=1/0),i=void 0===i?1:Math.abs(i),n<t&&(i=-i),this._start=t,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-t)/i-1)+1),0===this.size){if(Pa)return Pa;Pa=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+li(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,n){return di(t,n,this.size)?this:(t=ui(t,this.size),(n=pi(n,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(n,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var n=e/this._step;if(n>=0&&n<this.size)return n}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var n=this.size,i=this._step,r=e?this._start+(n-1)*i:this._start,o=0;o!==n&&!1!==t(r,e?n-++o:o++,this);)r+=e?-i:i;return o},e.prototype.__iterator=function(t,e){var n=this.size,i=this._step,r=e?this._start+(n-1)*i:this._start,o=0;return new Vi((function(){if(o===n)return{value:void 0,done:!0};var a=r;return r+=e?-i:i,Fi(t,e?n-++o:o++,a)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Ca(this,t)},e}(Xi);function Na(t,e,n){for(var i=Jr(e),r=0;r!==i.length;)if((t=io(t,i[r++],ri))===ri)return n;return t}function Ma(t,e){return Na(this,t,e)}function Ua(){Qr(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t}Si.isIterable=vi,Si.isKeyed=bi,Si.isIndexed=Ei,Si.isAssociative=yi,Si.isOrdered=ki,Si.Iterator=Vi,wa(Si,{toArray:function(){Qr(this.size);var t=new Array(this.size||0),e=bi(this),n=0;return this.__iterate((function(i,r){t[n++]=e?[r,i]:i})),t},toIndexedSeq:function(){return new xr(this)},toJS:function(){return Aa(this)},toKeyedSeq:function(){return new Rr(this,!0)},toMap:function(){return Ao(this.toKeyedSeq())},toObject:Ua,toOrderedMap:function(){return da(this.toKeyedSeq())},toOrderedSet:function(){return Xa(bi(this)?this.valueSeq():this)},toSet:function(){return Ia(bi(this)?this.valueSeq():this)},toSetSeq:function(){return new Lr(this)},toSeq:function(){return Ei(this)?this.toIndexedSeq():bi(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return va(bi(this)?this.valueSeq():this)},toList:function(){return Xo(bi(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Gr(this,function(t,e){var n=bi(t),i=[t].concat(e).map((function(t){return vi(t)?n&&
vendor: 8,024 bytes, line 5264
5264(t=Ti(t)):t=n?ir(t):rr(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===i.length)return t;if(1===i.length){var r=i[0];if(r===t||n&&bi(r)||Ei(t)&&Ei(r))return r}var o=new Qi(i);return n?o=o.toKeyedSeq():Ei(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=i.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),o}(this,t))},includes:function(t){return this.some((function(e){return dr(e,t)}))},entries:function(){return this.__iterator(Ni)},every:function(t,e){Qr(this.size);var n=!0;return this.__iterate((function(i,r,o){if(!t.call(e,i,r,o))return n=!1,!1})),n},filter:function(t,e){return Gr(this,Mr(this,t,e,!0))},partition:function(t,e){return function(t,e,n){var i=bi(t),r=[[],[]];t.__iterate((function(o,a){r[e.call(n,o,a,t)?1:0].push(i?[a,o]:o)}));var o=jr(t);return r.map((function(e){return Gr(t,o(e))}))}(this,t,e)},find:function(t,e,n){var i=this.findEntry(t,e);return i?i[1]:n},forEach:function(t,e){return Qr(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Qr(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(i){n?n=!1:e+=t,e+=null!=i?i.toString():""})),e},keys:function(){return this.__iterator(Pi)},map:function(t,e){return Gr(this,Dr(this,t,e))},reduce:function(t,e,n){return $a(this,t,e,n,arguments.length<2,!1)},reduceRight:function(t,e,n){return $a(this,t,e,n,arguments.length<2,!0)},reverse:function(){return Gr(this,Nr(this,!0))},slice:function(t,e){return Gr(this,Ur(this,t,e,!0))},some:function(t,e){Qr(this.size);var n=!1;return this.__iterate((function(i,r,o){if(t.call(e,i,r,o))return n=!0,!1})),n},sort:function(t){return Gr(this,Fr(this,t))},values:function(){return this.__iterator(Di)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return si(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var i=Ao().asMutable();return t.__iterate((function(r,o){i.update(e.call(n,r,o,t),0,(function(t){return t+1}))})),i.asImmutable()}(this,t,e)},equals:function(t){return Ca(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Qi(t._cache);var e=t.toSeq().map(Ga).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ya(t),e)},findEntry:function(t,e,n){var i=n;return this.__iterate((function(n,r,o){if(t.call(e,n,r,o))return i=[r,n],!1})),i},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(ci,null,t)},flatMap:function(t,e){return Gr(this,function(t,e,n){var i=jr(t);return t.toSeq().map((function(r,o){return i(e.call(n,r,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Gr(this,Vr(this,t,!0))},fromEntrySeq:function(){return new kr(this)},get:function(t,e){return this.find((function(e,n){return dr(n,t)}),void 0,e)},getIn:Ma,groupBy:function(t,e){return function(t,e,n){var i=bi(t),r=(ki(t)?da():Ao()).asMutable();t.__iterate((function(o,a){r.update(e.call(n,o,a,t),(function(t){return(t=t||[]).push(i?[a,o]:o),t}))}));var o=jr(t);return r.map((function(e){return Gr(t,o(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,ri)!==ri},hasIn:function(t){return Na(this,t,ri)!==ri},isSubset:function(t){return t="function"==typeof t.includes?t:Si(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:Si(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return dr(e,t)}))},keySeq:function(){return this.toSeq().map(Ha).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return zr(this,t)},maxBy:function(t,e){return zr(this,e,t)},min:function(t){return zr(this,t?ja(t):Wa)},minBy:function(t,e){return zr(this,e?ja(e):Wa,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Gr(this,Br(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ya(t),e)},sortBy:function(t,e){return Gr(this,Fr(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Gr(this,function(t,e,n){var i=Kr(t);return i.__iterateUncached=function(i,r){var o=this;if(r)return this.cacheResult().__iterate(i,r);var a=0;return t.__iterate((function(t,r,s){return e.call(n,t,r,s)&&++a&&i(t,r,o)})),a},i.__iteratorUncached=function(i,r){var o=this;if(r)return this.cacheResult().__iterator(i,r);var a=t.__iterator(Ni,r),s=!0;return new Vi((function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var r=t.value,l=r[0],c=r[1];return e.call(n,c,l,o)?i===Ni?t:Fi(i,l,c,t):(s=!1,{value:void 0,done:!0})}))},i}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ya(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=ki(t),n=bi(t),i=e?1:0;return function(t,e){return e=ur(e,3432918353),e=ur(e<<15|e>>>-15,461845907),e=ur(e<<13|e>>>-13,5),e=ur((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=pr((e=ur(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){i=31*i+qa(mr(t),mr(e))|0}:function(t,e){i=i+qa(mr(t),mr(e))|0}:e?function(t){i=31*i+mr(t)|0}:function(t){i=i+mr(t)|0}),i)}(this))}});var Ba=Si.prototype;Ba[gi]=!0,Ba[Bi]=Ba.values,Ba.toJSON=Ba.toArray,Ba.__toStringMapper=no,Ba.inspect=Ba.toSource=function(){return this.toString()},Ba.chain=Ba.flatMap,Ba.contains=Ba.includes,wa(Ti,{flip:function(){return Gr(this,Pr(this))},mapEntries:function(t,e){var n=this,i=0;return Gr(this,this.toSeq().map((function(r,o){return t.call(e,[o,r],i++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Gr(this,this.toSeq().flip().map((function(i,r){return t.call(e,i,r,n)})).flip())}});var Va=Ti.prototype;Va[fi]=!0,Va[Bi]=Ba.entries,Va.toJSON=Ua,Va.__toStringMapper=function(t,e){return no(e)+": "+no(t)},wa(Ci,{toKeyedSeq:function(){return new Rr(this,!1)},filter:function(t,e){return Gr(this,Mr(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Gr(this,Nr(this,!1))},slice:function(t,e){return Gr(this,Ur(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(e||0,0),0===n||2===n&&!e)return this;t=ui(t,t<0?this.count():this.size);var i=this.slice(0,t);return Gr(this,1===n?i:i.concat(Xr(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Gr(this,Vr(this,t,!1))},get:function(t,e){return(t=li(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=li(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Gr(this,function(t,e){var n=Kr(t);return n.size=t.size&&2*t.size-1,n.__iterateUncached=function(n,i){var r=this,o=0;return t.__iterate((function(t){return(!o||!1!==n(e,o++,r))&&!1!==n(t,o++,r)}),i),o},n.__iteratorUncached=function(n,i){var r,o=t.__iterator(Di,i),a=0;return new Vi((function(){return(!r||a%2)&&(r=o.next()).done?r:a%2?Fi(n,a++,e):Fi(n,a++,r.value,r)}))},n}(this,t))},interleave:function(){var t=[this].concat(Xr(arguments)),e=Hr(this.toSeq(),Xi.of,t),n=e.flatten(!0);return e.size&&(n.size=e.size*t.length),Gr(this,n)}
vendor: 4,724 bytes, line 5264
5264,keySeq:function(){return Da(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Gr(this,Br(this,t,e,!1))},zip:function(){return Gr(this,Hr(this,Ka,[this].concat(Xr(arguments))))},zipAll:function(){return Gr(this,Hr(this,Ka,[this].concat(Xr(arguments)),!0))},zipWith:function(t){var e=Xr(arguments);return e[0]=this,Gr(this,Hr(this,t,e))}});var Fa=Ci.prototype;Fa[_i]=!0,Fa[Li]=!0,wa(wi,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var za=wi.prototype;function $a(t,e,n,i,r,o){return Qr(t.size),t.__iterate((function(t,o,a){r?(r=!1,n=t):n=e.call(i,n,t,o,a)}),o),n}function Ha(t,e){return e}function Ga(t,e){return[e,t]}function Ya(t){return function(){return!t.apply(this,arguments)}}function ja(t){return function(){return-t.apply(this,arguments)}}function Ka(){return Xr(arguments)}function Wa(t,e){return t<e?1:t>e?-1:0}function qa(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}za.has=Ba.includes,za.contains=za.includes,za.keys=za.values,wa(qi,Va),wa(Xi,Fa),wa(Zi,za);var Xa=function(t){function e(t){return null==t?ts():Ta(t)?t:ts().withMutations((function(e){var n=wi(t);Qr(n.size),n.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Ti(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Ia);Xa.isOrderedSet=Ta;var Za,Qa=Xa.prototype;function Ja(t,e){var n=Object.create(Qa);return n.size=t?t.size:0,n._map=t,n.__ownerID=e,n}function ts(){return Za||(Za=Ja(pa()))}Qa[Li]=!0,Qa.zip=Fa.zip,Qa.zipWith=Fa.zipWith,Qa.zipAll=Fa.zipAll,Qa.__empty=ts,Qa.__make=Ja;var es=function(t,e){var n;!function(t){if(Ri(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(xi(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var i=function(o){var a=this;if(o instanceof i)return o;if(!(this instanceof i))return new i(o);if(!n){n=!0;var s=Object.keys(t),l=r._indices={};r._name=e,r._keys=s,r._defaultValues=t;for(var c=0;c<s.length;c++){var d=s[c];l[d]=c,r[d]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+rs(this)+' with property "'+d+'" since that property name is part of the Record API.'):as(r,d)}}return this.__ownerID=void 0,this._values=Xo().withMutations((function(t){t.setSize(a._keys.length),Ti(o).forEach((function(e,n){t.set(a._indices[n],e===a._defaultValues[n]?void 0:e)}))})),this},r=i.prototype=Object.create(ns);return r.constructor=i,e&&(i.displayName=e),i};es.prototype.toString=function(){for(var t,e=rs(this)+" { ",n=this._keys,i=0,r=n.length;i!==r;i++)e+=(i?", ":"")+(t=n[i])+": "+no(this.get(t));return e+" }"},es.prototype.equals=function(t){return this===t||Ri(t)&&os(this).equals(os(t))},es.prototype.hashCode=function(){return os(this).hashCode()},es.prototype.has=function(t){return this._indices.hasOwnProperty(t)},es.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._indices[t],i=this._values.get(n);return void 0===i?this._defaultValues[t]:i},es.prototype.set=function(t,e){if(this.has(t)){var n=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(n!==this._values&&!this.__ownerID)return is(this,n)}return this},es.prototype.remove=function(t){return this.set(t)},es.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:is(this,t)},es.prototype.wasAltered=function(){return this._values.wasAltered()},es.prototype.toSeq=function(){return os(this)},es.prototype.toJS=function(){return Aa(this)},es.prototype.entries=function(){return this.__iterator(Ni)},es.prototype.__iterator=function(t,e){return os(this).__iterator(t,e)},es.prototype.__iterate=function(t,e){return os(this).__iterate(t,e)},es.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?is(this,e,t):(this.__ownerID=t,this._values=e,this)},es.isRecord=Ri,es.getDescriptiveName=rs;var ns=es.prototype;function is(t,e,n){var i=Object.create(Object.getPrototypeOf(t));return i._values=e,i.__ownerID=n,i}function rs(t){return t.constructor.displayName||t.constructor.name||"Record"}function os(t){return ir(t._keys.map((function(e){return[e,t.get(e)]})))}function as(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)}
5264,set:function(t){Zr(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}ns[Oi]=!0,ns[ti]=ns.remove,ns.deleteIn=ns.removeIn=lo,ns.getIn=Ma,ns.hasIn=Ba.hasIn,ns.merge=ho,ns.mergeWith=mo,ns.mergeIn=Eo,ns.mergeDeep=bo,ns.mergeDeepWith=_o,ns.mergeDeepIn=yo,ns.setIn=so,ns.update=uo,ns.updateIn=po,ns.withMutations=So,ns.asMutable=To,ns.asImmutable=Co,ns[Bi]=ns.entries,ns.toJSON=ns.toObject=Ba.toObject,ns.inspect=ns.toSource=function(){return this.toString()};var ss="NOT_FOUND",ls=function(t,e){return t===e},cs=n(18446);const ds=n.n(cs)(),us=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];var o,a=0,s={memoizeOptions:void 0},l=i.pop();if("object"==typeof l&&(s=l,l=i.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,d=void 0===c?n:c,u=Array.isArray(d)?d:[d],p=function(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every((function(t){return"function"==typeof t}))){var n=e.map((function(t){return"function"==typeof t?"function "+(t.name||"unnamed")+"()":typeof t})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return e}(i),h=t.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(u)),m=t((function(){for(var t=[],e=p.length,n=0;n<e;n++)t.push(p[n].apply(null,arguments));return o=h.apply(null,t)}));return Object.assign(m,{resultFunc:l,memoizedResultFunc:h,dependencies:p,lastResult:function(){return o},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),m}}((function(t,e){var n,i,r="object"==typeof e?e:{equalityCheck:e},o=r.equalityCheck,a=void 0===o?ls:o,s=r.maxSize,l=void 0===s?1:s,c=r.resultEqualityCheck,d=function(t){return function(e,n){if(null===e||null===n||e.length!==n.length)return!1;for(var i=e.length,r=0;r<i;r++)if(!t(e[r],n[r]))return!1;return!0}}(a),u=1===l?(n=d,{get:function(t){return i&&n(i.key,t)?i.value:ss},put:function(t,e){i={key:t,value:e}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(t,e){var n=[];function i(t){var i=n.findIndex((function(n){return e(t,n.key)}));if(i>-1){var r=n[i];return i>0&&(n.splice(i,1),n.unshift(r)),r.value}return ss}return{get:i,put:function(e,r){i(e)===ss&&(n.unshift({key:e,value:r}),n.length>t&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,d);function p(){var e=u.get(arguments);if(e===ss){if(e=t.apply(null,arguments),c){var n=u.getEntries().find((function(t){return c(t.value,e)}));n&&(e=n.value)}u.put(arguments,e)}return e}return p.clearCache=function(){return u.clear()},p}),((t,e)=>Ao.isMap(t)&&Ao.isMap(e)?dr(t,e):ds(t,e)));var ps;!function(t){t.ORIGINAL="ORIGINAL",t.EPISODIC="EPISODIC",t.CLIPS="CLIPS",t.LIVE="LIVE"}(ps||(ps={})),us(((t=Ao())=>t.getIn(["player","extensions","continuousPlay"])||Ao()),(t=>t.toJS()));class hs{constructor({configAppStores:t,props:e,PlayerSetup:n}){this._configAppStores=t,this._playerProps={},this.webPlayerRepository=new Jn({PlayerSetup:n}),jt(this,{viewModel:oe}),this.setupPlayer(e)}setupPlayer(t){this._playerProps=this.customSetup(t,this._configAppStores)}get viewModel(){const t=this.webPlayerRepository.playbackCriteria;return{mediaItem:this.webPlayerRepository.mediaItem,playbackCriteria:{...t},playerConfiguration:this.customPlayerConfiguration()}}customPlayerConfiguration(){let t={player:{}};return t.player=xn({},t.player,{continuousPlay:{brandExperience:Zn.ESPN,endCard:{callbackThresholdMs:5e3,countdownMs:5e3,type:o.fK.END_CARD},getContinuousPlayContext:this.getContinuousPlayContext.bind(this)}}),{configuration:t}}async getContinuousPlayContext(t){const e=t?.playbackContext?.playbackSessionCreationParameters?.playbackParameters,n=t?.metadata?.tracking?.dcf;return Promise.resolve({playbackParameters:e,endCardUx:{image:n?.images?.[0]?.url,title:n?.title,subtitle:n?.brand,variant:ps.CLIPS}})}async loadPlaybackCriteria(t,e,n){await this.webPlayerRepository.loadPlaybackCriteria(t,e,n,this._configAppStores,this._playerProps)}customSetup(t,e){}updateInitOptions(t){this._playerProps&&(this._playerProps={...this._playerProps,initOptions:{...this._playerProps.initOptions||{},...t}})}getSDKError(t,e){const n=this,i=n&&n.errorDictionary;return n.webPlayerRepository.getSDKError(t,i,e)}updateStartType(t=""){const e=((0,s.getGlobal)()||{}).__dataLayer;e?.page&&t&&(e.page={...e.page,start_type:t})}reset(){this.webPlayerRepository.reset()}}var ms=n(30998);class gs extends hs{customSetup(t,e){const n=this,i=t?.extUserInit,r=t?.initOptions,o=r?.autoplay||i,a=t?.endCardConfig||{},s=r?.startType,l=r?.playerLocation,c=r?.playlistTap,d=r?.isVerticalVideoFeed,u=r?.deferTrackingUntilPresented,p=r?.retrackOnLoop;return n.concurrency=t?.concurrency,n.dcfExtensionDisableTrackPage=t?.dcfExtensionDisableTrackPage,n.playlistVideos=t?.playlist,n.fetchAndSetVideo=t?.fetchAndSetVideo,n.errorDictionary=t?.errorDictionary,n.disableContinuousPlay=t?.disableContinuousPlay,n.getAuthorizationPayload=t?.getAuthorizationPayload,n.disableEndCard=t?.disableEndCard,n.endCardConfig=a,{initOptions:{autoplay:o,startType:s,playerLocation:l,playlistTap:c,isVerticalVideoFeed:d,deferTrackingUntilPresented:u,retrackOnLoop:p},shieldAdContext:t?.shieldAdContext,playlistVideos:t?.videos,startTimeMs:t?.startTimeMs||0,loopEndPositionMs:t?.loopEndPositionMs,authPayload:t?.authPayload,affiliateLogo:t?.affiliateLogo,privacyOptOutNotSent:t?.privacyOptOutNotSent}}get viewModel(){return{...super.viewModel,playerConfiguration:this.customPlayerConfiguration()}}customPlayerConfiguration(){const t=this,e=t.disableContinuousPlay,n=t.disableEndCard,i=t.endCardConfig;let r={player:{catchUpToLive:{getShieldClipPlaybackParameters:t.getClipsPlaybackParameters.bind(t)},tracking:{adobeConcurrency:t.concurrency,dcfExtensionDisableTrackPage:t.dcfExtensionDisableTrackPage},continuousPlay:{}}};return e||(r.player.continuousPlay={brandExperience:Zn.ESPN,endCard:{callbackThresholdMs:i?.callbackThresholdMs||1e4,countdownMs:i?.countdownMs||
52641e4,type:n?o.fK.CHROMELESS:o.fK.END_CARD},getUpNextContent:t.getUpNextContent.bind(t),getContinuousPlayContext:t.getContinuousPlayContext.bind(t)}),{configuration:r}}async getClipsPlaybackParameters(t){return await this.loadPlaybackCriteria(t),this.viewModel?.playbackCriteria?.playbackContext?.playbackSessionCreationParameters?.playbackParameters}async getUpNextContent(){let t,e,n,i=this,r=-1;return i.playlistVideos?.length&&(r=ms(i.playlistVideos,{id:i.viewModel.mediaItem?.id})),r>-1&&r<i.playlistVideos?.length-1?(e=i.playlistVideos[r+1],t=await Promise.all([i.fetchAndSetVideo(e?.id,null,!0)])):r>=i.playlistVideos?.length-1?(e=i.playlistVideos[0],t=await Promise.all([i.fetchAndSetVideo(e?.id,null,!0)])):t=await Promise.all([i.fetchAndSetVideo()]),t&&(0,s.first)(t)?[n]=t:n=i.viewModel?.mediaItem,await i.loadPlaybackCriteria(n),i.viewModel?.playbackCriteria}async getContinuousPlayContext(t){const e=t?.playbackContext?.playbackSessionCreationParameters?.playbackParameters,n=t?.metadata;return Promise.resolve({playbackParameters:e,endCardUx:{image:n?.images?.[0]?.url,title:n?.title?.text,subtitle:n?.subt
5264itle?.text,variant:ps.CLIPS}})}}const vs={local:o.qA.develop,sandbox:o.qA.develop,qa:o.qA.production,prod:o.qA.production};var fs=({adsState:t,analytics:e,appState:n,sdkSession:a,theme:s,environmentOvr:l,classNames:c="",mediaItem:d,dismissUrl:u,listenForExternalControls:p,authorization:h,videoConfig:m,routingConfig:g,id:v,Presenter:f=gs,children:b=null,listeners:_={},interactionListeners:E={},customUIOverlay:y,loaderSvgUrl:S,includeErrorDetails:T=!1,errorWrapper:C,...w})=>{const[A,I]=(0,r.useState)(),[O,R]=(0,r.useState)(null),x=(0,r.useMemo)((()=>new f({configAppStores:{adsConfig:t,analyticsConfig:e,appConfig:n,sdkSessionConfig:a,videoConfig:m,routingConfig:g},props:w})),[]);(0,r.useEffect)((()=>{w?.initOptions&&x?.updateInitOptions({startType:w.initOptions.startType,playlistTap:w.initOptions.playlistTap||!1,isVerticalVideoFeed:w.initOptions.isVerticalVideoFeed})}),[w?.initOptions?.startType,w?.initOptions?.playlistTap,w?.initOptions?.isVerticalVideoFeed]);const L=m?.pcsWeb,k=x?.viewModel?.playerConfiguration?.configuration,P={...L,configuration:{MediaClientOptions:L?.MediaClientOptions||[],pcs:L?.pcsConfig||{},...L,...k}},D=l||vs[n?.envName]||o.qA.production;return(0,r.useEffect)((()=>{d&&x?.loadPlaybackCriteria(d,h,a).then((()=>{R(x?.viewModel?.playbackCriteria)}))}),[d,x]),(0,i.jsx)(Ut,{sdkSession:a,environment:D,theme:s,id:v,listenForExternalControls:p,playerConfiguration:P,playbackCriteria:O,classNames:c,listeners:_,interactionListeners:E,dismissUrl:u,errorWrapper:C,mediaItem:d,presenter:x,customUIOverlay:y,loaderSvgUrl:S,includeErrorDetails:T,...w,children:b})}}}]);

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.