1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{b as t,g as n,y as r}from"./src-XwKPIMW5.js";import{r as i}from"./dist-Dvb0H3JS.js";import{a,i as o,o as s,s as c}from"./dialog-DY8C0EA6.js";import{t as l}from"./createLucideIcon-DP1dhTbs.js";import{t as u}from"./arrow-left-Bq_ymoRk.js";import{t as d}from"./arrow-right-CeS7gcbt.js";import{t as f}from"./x-BVTl3X8m.js";var p={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};p.node;var m=l(p),h=e(t(),1),g=n(),_=`PLHyDZWmKJ4N0JFOqy_ayo_Oh9j4dTyANo`;function v(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}function y(e,t=!1){let n=new URLSearchParams({list:_});return t&&(n.set(`autoplay`,`1`),n.set(`mute`,`1`)),`https://www.youtube-nocookie.com/embed/${e}?${n.toString()}`}var b=r();function x(e){let t=(0,g.c)(10),[n,r]=(0,h.useState)(null),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=e=>{r(e)},t[0]=i):i=t[0];let a=i,o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>{r(null)},t[1]=o):o=t[1];let s=o,c;t[2]===e?c=t[3]:(c=()=>{r(t=>t===null?null:(t+1)%e)},t[2]=e,t[3]=c);let l=c,u;t[4]===e?u=t[5]:(u=()=>{r(t=>t===null?null:(t-1+e)%e)},t[4]=e,t[5]=u);let d=u,f;return t[6]!==l||t[7]!==n||t[8]!==d?(f={openIndex:n,open:a,close:s,next:l,prev:d},t[6]=l,t[7]=n,t[8]=d,t[9]=f):f=t[9],f}function S(e){let t=(0,g.c)(40),{reels:n,state:r,closeLabel:l,prevLabel:p,nextLabel:m}=e,{_}=i(),{openIndex:v,close:x,next:S,prev:C}=r,w=v!==null,T=n.length,E,D;if(t[0]!==w||t[1]!==S||t[2]!==C?(E=()=>{if(!w)return;let e=e=>{e.key===`ArrowRight`?(e.preventDefault(),S()):e.key===`ArrowLeft`&&(e.preventDefault(),C())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},D=[w,S,C],t[0]=w,t[1]=S,t[2]=C,t[3]=E,t[4]=D):(E=t[3],D=t[4]),(0,h.useEffect)(E,D),v===null)return null;let O=n[v];if(!O)return null;let k;t[5]===x?k=t[6]:(k=e=>{e||x()},t[5]=x,t[6]=k);let A;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,b.jsx)(o,{className:`bg-black/85`}),t[7]=A):A=t[7];let j;t[8]===_?j=t[9]:(j=_({id:`fjqNCW`}),t[8]=_,t[9]=j);let M;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,b.jsx)(f,{className:`size-6`,"aria-hidden":`true`}),t[10]=M):M=t[10];let N;t[11]!==x||t[12]!==l?(N=(0,b.jsx)(`button`,{type:`button`,onClick:x,"aria-label":l,className:`absolute top-2 right-2 z-10 flex size-10 items-center justify-center rounded-full bg-white/90 text-black transition-colors hover:bg-white`,children:M}),t[11]=x,t[12]=l,t[13]=N):N=t[13];let P;t[14]!==S||t[15]!==m||t[16]!==C||t[17]!==p||t[18]!==T?(P=T>1?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`button`,{type:`button`,onClick:C,"aria-label":p,className:`absolute top-1/2 -left-2 z-10 flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-white/90 text-black transition-colors hover:bg-white sm:-left-12`,children:(0,b.jsx)(u,{className:`size-5`,"aria-hidden":`true`})}),(0,b.jsx)(`button`,{type:`button`,onClick:S,"aria-label":m,className:`absolute top-1/2 -right-2 z-10 flex size-10 -translate-y-1/2 items-center justify-center rounded-full bg-white/90 text-black transition-colors hover:bg-white sm:-right-12`,children:(0,b.jsx)(d,{className:`size-5`,"aria-hidden":`true`})})]}):null,t[14]=S,t[15]=m,t[16]=C,t[17]=p,t[18]=T,t[19]=P):P=t[19];let F;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(F={aspectRatio:`9 / 16`,maxHeight:`90vh`},t[20]=F):F=t[20];let I=O.youtubeVideoId,L;t[21]===_?L=t[22]:(L=_({id:`fjqNCW`}),t[21]=_,t[22]=L);let R;t[23]===O.youtubeVideoId?R=t[24]:(R=y(O.youtubeVideoId,!0),t[23]=O.youtubeVideoId,t[24]=R);let z;t[25]!==O.youtubeVideoId||t[26]!==L||t[27]!==R?(z=(0,b.jsx)(`div`,{className:`w-full overflow-hidden rounded-lg bg-black`,style:F,children:(0,b.jsx)(`iframe`,{title:L,src:R,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`h-full w-full`},I)}),t[25]=O.youtubeVideoId,t[26]=L,t[27]=R,t[28]=z):z=t[28];let B;t[29]!==z||t[30]!==N||t[31]!==P?(B=(0,b.jsxs)(`div`,{className:`relative flex h-full w-full max-w-md items-center justify-center`,children:[N,P,z]}),t[29]=z,t[30]=N,t[31]=P,t[32]=B):B=t[32];let V;t[33]!==B||t[34]!==j?(V=(0,b.jsxs)(a,{children:[A,(0,b.jsx)(c,{"aria-label":j,className:`fixed inset-0 z-50 flex items-center justify-center px-4 py-8 outline-none`,children:B})]}),t[33]=B,t[34]=j,t[35]=V):V=t[35];let H;return t[36]!==w||t[37]!==V||t[38]!==k?(H=(0,b.jsx)(s,{open:w,onOpenChange:k,children:V}),t[36]=w,t[37]=V,t[38]=k,t[39]=H):H=t[39],H}export{m as i,x as n,v as r,S as t};
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.