1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8443],{31207:function(e,t,i){i.r(t),i.d(t,{default:function(){return w}});var n,a=i(67294),r=i(46443),o=i(28037),l=Object.defineProperty,s=e=>{throw TypeError(e)},u=(e,t,i)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,d=(e,t,i)=>u(e,"symbol"!=typeof t?t+"":t,i),c=(e,t,i)=>t.has(e)||s("Cannot "+i),h=(e,t,i)=>(c(e,t,"read from private field"),i?i.call(e):t.get(e)),p=(e,t,i)=>t.has(e)?s("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),m=(e,t,i,n)=>(c(e,t,"write to private field"),n?n.call(e,i):t.set(e,i),i);class f extends(0,o.l)(r.zM){constructor(){super(...arguments),p(this,n)}attributeChangedCallback(e,t,i){"src"!==e&&super.attributeChangedCallback(e,t,i),"src"===e&&t!=i&&this.load()}async _initThumbnails(e){let t=async(t,i)=>{let n=[],a=e.timescale||1,r=e.startNumber||1,o=e.presentationTimeOffset?e.presentationTimeOffset/a:0,l=e.segmentDuration;for(let e=0;e<t;e++){let a=function({thIndex:e,tduration:t,thduration:i,ttiles:n,startNumber:a,pto:r}){return(Math.floor(e/n)+a-1)*t-r+(e%n+1-1)*i}({thIndex:e,thduration:i,ttiles:t,tduration:l,startNumber:r,pto:o}),s=a+i,u=new Promise((e,t)=>{this.api.provideThumbnail(a,({url:i,width:n,height:r,x:o,y:l})=>{try{let t=new VTTCue(a,s,`${i}#xywh=${o},${l},${n},${r}`);e(t)}catch(e){t(e)}})});n.push(u)}return await Promise.all(n).catch(e=>console.error("Error processing thumbnails",e))},{totalThumbnails:i,thumbnailDuration:n}=function(e){var t,i;let[n,a]=e.essentialProperties[0].value.split("x").map(Number),r=(null==(i=null==(t=e.adaptation)?void 0:t.period)?void 0:i.duration)||null,o=e.segmentDuration,l=o/(e.timescale||1)/(n*a);return{totalThumbnails:null!=r?Math.ceil(r/l):Math.ceil(o/l),thumbnailDuration:l}}(e),a=await t(i,n),r=this.nativeEl.querySelector('track[label="thumbnails"]');if(!r){r=function(){let e=document.createElement("track");return e.kind="metadata",e.label="thumbnails",e.srclang="en",e.mode="hidden",e.default=!0,e}(),this.nativeEl.appendChild(r);let e=function(e){let t=`WEBVTT 2 3`;for(let i of e)t+=`${n(i.startTime)} --> ${n(i.endTime)} 4${i.text} 5 6`;let i=new Blob([t],{type:"text/vtt"});return URL.createObjectURL(i);function n(e){let t=String(Math.floor(e/3600)).padStart(2,"0"),i=String(Math.floor(e%3600/60)).padStart(2,"0"),n=(e%60).toFixed(3).padStart(6,"0");return`${t}:${i}:${n}`}}(a);r.src=e,r.dispatchEvent(new Event("change"))}}async load(){if(h(this,n)){this.api.attachSource(this.src);return}m(this,n,!0);let e=await i.e(96).then(i.bind(i,50263));this.api=e.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay),this.api.on(e.MediaPlayer.events.STREAM_INITIALIZED,()=>{let e=this.api.getRepresentationsByType("video"),t=this.videoTracks.getTrackById("main");t||((t=this.addVideoTrack("main")).id="main",t.selected=!0),e.forEach(e=>{let i=e.bandwidth??e.bitrate??(Number.isFinite(e.bitrateInKbit)?1e3*e.bitrateInKbit:void 0);t.addRendition(e.id,e.width,e.height,e.mimeType??e.codec,i).id=e.id}),this.videoRenditions.addEventListener("change",()=>{let e=this.videoRenditions[this.videoRenditions.selectedIndex];null!=e&&e.id?(this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),this.api.setRepresentationForTypeById("video",e.id,!0)):this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})}),this.api.isDynamic()||this.api.getRepresentationsByType("image").forEach(async(e,t)=>{t>0||this._initThumbnails(e)})})}}n=new WeakMap,d(f,"shadowRootOptions",{...r.zM.shadowRootOptions}),d(f,"getTemplateHTML",e=>{let{src:t,...i}=e;return r.zM.getTemplateHTML(i)}),globalThis.customElements&&!globalThis.customElements.get("dash-video")&&globalThis.customElements.define("dash-video",f);var b=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),v={className:"class",htmlFor:"for"};function y(e){return e.toLowerCase()}function g(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function T(e,t,i){var n;e[t]=i,null==i&&t in((null==(n=globalThis.HTMLElement)?void 0:n.prototype)??{})&&e.removeAttribute(t)}var w=function({react:e,tagName:t,elementClass:i,events:n,displayName:a,defaultProps:r,toAttributeName:o=y,toAttributeValue:l=g}){let s=Number.parseInt(e.version)>=19,u=e.forwardRef((a,u)=>{var d,c;let h=e.useRef(null),p=e.useRef(new Map),m={},f={},y={},w={};for(let[e,t]of Object.entries(a)){if(b.has(e)){y[e]=t;continue}let n=o(v[e]??e);if(i.prototype&&e in i.prototype&&!(e in((null==(d=globalThis.HTMLElement)?void 0:d.prototype)??{}))&&!(null!=(c=i.observedAttributes)&&c.some(e=>e===n))){w[e]=t;continue}if(e.startsWith("on")){m[e]=t;continue}let a=l(t);n&&null!=a&&(f[n]=String(a),s||(y[n]=a)),n&&s&&(a!==g(t)?y[n]=a:y[n]=t)}if("u">typeof window){for(let t in m){let i=m[t],a=t.endsWith("Capture"),r=((null==n?void 0:n[t])??t.slice(2).toLowerCase()).slice(0,a?-7:void 0);e.useLayoutEffect(()=>{let e=null==h?void 0:h.current;if(!(!e||"function"!=typeof i))return e.addEventListener(r,i,a),()=>{e.removeEventListener(r,i,a)}},[null==h?void 0:h.current,i])}e.useLayoutEffect(()=>{if(null===h.current)return;let e=new Map;for(let t in w)T(h.current,t,w[t]),p.current.delete(t),e.set(t,w[t]);for(let[e,t]of p.current)T(h.current,e,void 0);p.current=e})}if(typeof window>"u"&&null!=i&&i.getTemplateHTML&&null!=i&&i.shadowRootOptions){let{mode:t,delegatesFocus:n}=i.shadowRootOptions,r=e.createElement("template",{shadowrootmode:t,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(f,a)}});y.children=[r,y.children]}return e.createElement(t,{...r,...y,ref:e.useCallback(e=>{h.current=e,"function"==typeof u?u(e):null!==u&&(u.current=e)},[u])})});return u.displayName=a??i.name,u}({react:a,tagName:"dash-video",elementClass:f,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":y(e)})}}]);
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.