1import{s as N,f as m,g as b,h as k,d as h,j as s,i as U,C as E,t as C,p as L,a as M,c as R,D as S,I as w,v as y,E as Y}from"./scheduler.e2b5ccef.js";import{S as j,i as P}from"./index.67416819.js";function q(r){let e,t,o,a,l,i='<svg class="h-8 w-8" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"></path></svg>',n,d,_;return{c(){e=m("button"),t=m("img"),a=M(),l=m("span"),l.innerHTML=i,this.h()},l(f){e=b(f,"BUTTON",{type:!0,class:!0,"aria-label":!0});var u=k(e);t=b(u,"IMG",{class:!0,src:!0,alt:!0,loading:!0}),a=R(u),l=b(u,"SPAN",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),S(l)!=="svelte-1vzv0g6"&&(l.innerHTML=i),u.forEach(h),this.h()},h(){s(t,"class","h-full w-full object-cover"),w(t.src,o=r[4])||s(t,"src",o),s(t,"alt",""),s(t,"loading","lazy"),s(l,"class","absolute left-1/2 top-1/2 flex h-16 w-20 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-2xl bg-red-600 text-white shadow-lg transition-transform group-hover:scale-110 group-focus-visible:scale-110"),s(l,"aria-hidden","true"),s(e,"type","button"),s(e,"class","group relative h-full w-full cursor-pointer focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-inset focus-visible:ring-white"),s(e,"aria-label",n="Play "+r[0])},m(f,u){U(f,e,u),y(e,t),y(e,a),y(e,l),d||(_=Y(e,"click",r[6]),d=!0)},p(f,u){u&16&&!w(t.src,o=f[4])&&s(t,"src",o),u&1&&n!==(n="Play "+f[0])&&s(e,"aria-label",n)},d(f){f&&h(e),d=!1,_()}}}function z(r){let e,t,o;return{c(){e=m("iframe"),this.h()},l(a){e=b(a,"IFRAME",{class:!0,src:!0,title:!0,frameborder:!0,allow:!0}),k(e).forEach(h),this.h()},h(){s(e,"class","h-full w-full"),w(e.src,t=r[5])||s(e,"src",t),s(e,"title",o=r[0]+" - YouTube video"),s(e,"frameborder","0"),s(e,"allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"),e.allowFullscreen=!0},m(a,l){U(a,e,l),r[9](e)},p(a,l){l&32&&!w(e.src,t=a[5])&&s(e,"src",t),l&1&&o!==(o=a[0]+" - YouTube video")&&s(e,"title",o)},d(a){a&&h(e),r[9](null)}}}function B(r){let e,t;function o(i,n){return i[2]?z:q}let a=o(r),l=a(r);return{c(){e=m("div"),l.c(),this.h()},l(i){e=b(i,"DIV",{class:!0});var n=k(e);l.l(n),n.forEach(h),this.h()},h(){s(e,"class",t="relative overflow-hidden bg-black "+r[1])},m(i,n){U(i,e,n),l.m(e,null)},p(i,[n]){a===(a=o(i))&&l?l.p(i,n):(l.d(1),l=a(i),l&&(l.c(),l.m(e,null))),n&2&&t!==(t="relative overflow-hidden bg-black "+i[1])&&s(e,"class",t)},i:E,o:E,d(i){i&&h(e),l.d()}}}function H(r){const e=new URL(r);return e.searchParams.set("autoplay","1"),e.toString()}function A(r,e,t){let o,a,l,{src:i}=e,{title:n}=e,{className:d=""}=e;const _=new Set(["youtube.com","www.youtube.com","youtube-nocookie.com","www.youtube-nocookie.com"]);function f(c){const v=new URL(c),g=v.pathname.split("/").filter(Boolean);if(v.protocol!=="https:"||!_.has(v.hostname)||g[0]!=="embed"||!g[1])throw new Error(`Unsupported YouTube embed URL: ${c}`);return{url:v,videoId:g[1]}}let u=!1,p;async function I(){t(2,u=!0),await C(),p.focus()}function T(c){L[c?"unshift":"push"](()=>{p=c,t(3,p)})}return r.$$set=c=>{"src"in c&&t(7,i=c.src),"title"in c&&t(0,n=c.title),"className"in c&&t(1,d=c.className)},r.$$.update=()=>{r.$$.dirty&128&&t(8,o=f(i)),r.$$.dirty&256&&t(5,a=H(o.url)),r.$$.dirty&256&&t(4,l=`https://i.ytimg.com/vi/${encodeURIComponent(o.videoId)}/hqdefault.jpg`)},[n,d,u,p,l,a,I,i,o,T]}class V extends j{constructor(e){super(),P(this,e,A,B,N,{src:7,title:0,className:1})}}export{V as Y};
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.