1import{b as m,e as p}from"./chunk-S4AWNSO7.js";import{h as u}from"./chunk-MDFI7MM2.js";import{x as c}from"./chunk-46TIY27H.js";import{Pa as l,ja as a,ma as s,oa as i}from"./chunk-ZKNABTT2.js";var g=new s("youtubeProxyConfiguration"),P=(()=>{class r{baseUrl;clientBaseUrl;clientOrigin;userConsent=i(m).forCategory(p);httpClient=i(u);constructor(){let e=i(l),t=i(g),n=t.onServer?.baseUrl&&c(e)?t.onServer.baseUrl:t.baseUrl;this.baseUrl=n.toString(),this.clientBaseUrl=t.baseUrl.toString(),this.clientOrigin=t.baseUrl.origin}getPlaylistMetadata(e,t=4){return this.httpClient.get(`${this.baseUrl}/api/v1/playlist/${e}?maxResults=${t}`)}getVideoMetadata(e){return this.httpClient.get(`${this.baseUrl}/api/v1/video/${e}`)}getThumbnailUrl(e){return`${this.clientOrigin}${e.thumbnail.src}`}static getEmbedUrl(e){return`https://www.youtube-nocookie.com/embed/${e}`}static getPlaylistUrl(e){return`https://www.youtube.com/playlist?list=${e}`}extractVideoId(e){let t=new URL(e);if(t.pathname.startsWith("/attribution_link"))return t.searchParams.get("u")===null?null:this.extractVideoId(t.origin+t.searchParams.get("u"));let n=t.searchParams.get("v");if(n!==null)return n;let o=t.pathname.split("/");return o[o.length-1]}static \u0275fac=function(t){return new(t||r)};static \u0275prov=a({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{g as a,P as b}; 2/**i18n:9b2f1e34af068233b6abd63a66684d4e9dbff90014448b8ec97e38af3af71f01*/ 3//# sourceMappingURL=chunk-WPRYDMBG.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.