PageSourceSearch

https://hankorion.com/assets/chunk-YSiBVyul.js

js hankorion.com collected 2026-10-07 06:37:43 UTC 8,263 bytes, 1 lines download raw bytes

1import{S as se,i as oe,s as ae,z as F,n as J,e as v,H as re,f as b,g as u,h as a,q as G,k as f,I as U,l as P,u as N,r as K,x as S,J as ce,p as fe,o as ue,K as de,M as _e,N as R,O as pe,P as me,A as ve,B as be}from"./chunk-Dx3FLLgB.js";import{e as W}from"./chunk-HiP_jhlT.js";function X(s,e,l){const t=s.slice();return t[3]=e[l],t}function ke(s){let e,l;return{c(){e=u("div"),l=u("span"),l.textContent=`${S.comingSoon}`,a(e,"class","framePlaceholder svelte-17c0c96"),a(e,"aria-hidden","true")},m(t,i){b(t,e,i),f(e,l)},p:J,d(t){t&&v(e)}}}function he(s){let e,l,t;return{c(){e=u("img"),K(e.src,l=s[3].thumbnail)||a(e,"src",l),a(e,"alt",t=s[3].title),a(e,"loading","lazy"),a(e,"class","svelte-17c0c96")},m(i,o){b(i,e,o)},p(i,o){o&1&&!K(e.src,l=i[3].thumbnail)&&a(e,"src",l),o&1&&t!==(t=i[3].title)&&a(e,"alt",t)},d(i){i&&v(e)}}}function Y(s,e){let l,t,i,o,n=e[3].title+"",c,_,q,D,E;function C(m,w){return m[3].thumbnail?he:ke}let V=C(e),r=V(e);function p(){return e[2](e[3])}return{key:s,first:null,c(){l=u("div"),t=u("button"),r.c(),i=P(),o=u("div"),c=N(n),q=P(),a(o,"class","title-overlay svelte-17c0c96"),a(t,"class","tile svelte-17c0c96"),a(t,"type","button"),a(t,"aria-label",_=e[3].title),a(l,"class","gridItem svelte-17c0c96"),a(l,"role","listitem"),this.first=l},m(m,w){b(m,l,w),f(l,t),r.m(t,null),f(t,i),f(t,o),f(o,c),f(l,q),D||(E=U(t,"click",p),D=!0)},p(m,w){e=m,V===(V=C(e))&&r?r.p(e,w):(r.d(1),r=V(e),r&&(r.c(),r.m(t,i))),w&1&&n!==(n=e[3].title+"")&&G(c,n),w&1&&_!==(_=e[3].title)&&a(t,"aria-label",_)},d(m){m&&v(l),r.d(),D=!1,E()}}}function ge(s){let e,l=[],t=new Map,i=F(s[0]);const o=n=>n[3].slug;for(let n=0;n<i.length;n+=1){let c=X(s,i,n),_=o(c);t.set(_,l[n]=Y(_,c))}return{c(){e=u("div");for(let n=0;n<l.length;n+=1)l[n].c();a(e,"class","grid svelte-17c0c96"),a(e,"role","list")},m(n,c){b(n,e,c);for(let _=0;_<l.length;_+=1)l[_]&&l[_].m(e,null)},p(n,[c]){c&3&&(i=F(n[0]),l=re(l,c,o,1,n,i,t,e,ce,Y,null,X))},i:J,o:J,d(n){n&&v(e);for(let c=0;c<l.length;c+=1)l[c].d()}}}function ye(s,e,l){let{items:t=[]}=e,{onPick:i=n=>{}}=e;const o=n=>i(n);return s.$$set=n=>{"items"in n&&l(0,t=n.items),"onPick"in n&&l(1,i=n.onPick)},[t,i,o]}class De extends se{constructor(e){super(),oe(this,e,ye,ge,ae,{items:0,onPick:1})}}function Z(s,e,l){const t=s.slice();return t[11]=e[l],t[13]=l,t}function $(s){let e,l,t,i,o,n,c,_=s[0].title+"",q,D,E,C,V,r,p,m,w,B,I,H,O,j,k=s[3].length&&x(s),h=s[0].poster&&le(s);function Q(d,L){return d[0].id?we:Ce}let T=Q(s),M=T(s),g=s[0].description&&te(s),y=s[0].imdb&&ie(s),z=s[0].link&&ne(s);return{c(){e=u("div"),l=u("button"),t=P(),i=u("div"),o=u("div"),n=u("div"),c=u("div"),q=N(_),D=P(),k&&k.c(),E=P(),C=u("button"),C.textContent=`${S.close}`,V=P(),r=u("div"),h&&h.c(),p=P(),m=u("div"),M.c(),w=P(),g&&g.c(),B=P(),I=u("div"),y&&y.c(),H=P(),z&&z.c(),a(l,"class","backdropDismiss svelte-1ld7uz5"),a(l,"type","button"),a(l,"aria-label",S.closeVideo),a(c,"class","title svelte-1ld7uz5"),a(n,"class","meta svelte-1ld7uz5"),a(C,"class","x svelte-1ld7uz5"),a(C,"aria-label",S.close),a(o,"class","top svelte-1ld
17uz5"),a(m,"class","frame svelte-1ld7uz5"),a(r,"class","content svelte-1ld7uz5"),R(r,"noPoster",!s[0].poster),a(I,"class","links svelte-1ld7uz5"),a(i,"class","panel svelte-1ld7uz5"),a(e,"class","backdrop svelte-1ld7uz5"),a(e,"role","dialog"),a(e,"aria-modal","true"),a(e,"aria-label",S.video)},m(d,L){b(d,e,L),f(e,l),f(e,t),f(e,i),f(i,o),f(o,n),f(n,c),f(c,q),f(n,D),k&&k.m(n,null),f(o,E),f(o,C),f(i,V),f(i,r),h&&h.m(r,null),f(r,p),f(r,m),M.m(m,null),f(i,w),g&&g.m(i,null),f(i,B),f(i,I),y&&y.m(I,null),f(I,H),z&&z.m(I,null),s[6](e),O||(j=[U(l,"click",s[4]),U(C,"click",s[4])],O=!0)},p(d,L){L&1&&_!==(_=d[0].title+"")&&G(q,_),d[3].length?k?k.p(d,L):(k=x(d),k.c(),k.m(n,null)):k&&(k.d(1),k=null),d[0].poster?h?h.p(d,L):(h=le(d),h.c(),h.m(r,p)):h&&(h.d(1),h=null),T===(T=Q(d))&&M?M.p(d,L):(M.d(1),M=T(d),M&&(M.c(),M.m(m,null))),L&1&&R(r,"noPoster",!d[0].poster),d[0].description?g?g.p(d,L):(g=te(d),g.c(),g.m(i,B)):g&&(g.d(1),g=null),d[0].imdb?y?y.p(d,L):(y=ie(d),y.c(),y.m(I,H)):y&&(y.d(1),y=null),d[0].link?z?z.p(d,L):(z=ne(d),z.c(),z.m(I,null)):z&&(z.d(1),z=null)},d(d){d&&v(e),k&&k.d(),h&&h.d(),M.d(),g&&g.d(),y&&y.d(),z&&z.d(),s[6](null),O=!1,_e(j)}}}function x(s){let e,l=F(s[3]),t=[];for(let i=0;i<l.length;i+=1)t[i]=ee(Z(s,l,i));return{c(){e=u("div");for(let i=0;i<t.length;i+=1)t[i].c();a(e,"class","sub svelte-1ld7uz5")},m(i,o){b(i,e,o);for(let n=0;n<t.length;n+=1)t[n]&&t[n].m(e,null)},p(i,o){if(o&8){l=F(i[3]);let n;for(n=0;n<l.length;n+=1){const c=Z(i,l,n);t[n]?t[n].p(c,o):(t[n]=ee(c),t[n].c(),t[n].m(e,null))}for(;n<t.length;n+=1)t[n].d(1);t.length=l.length}},d(i){i&&v(e),ve(t,i)}}}function ze(s){let e;return{c(){e=u("span"),e.textContent="•",a(e,"class","dot svelte-1ld7uz5")},m(l,t){b(l,e,t)},d(l){l&&v(e)}}}function ee(s){let e,l,t=s[11]+"",i,o=s[13]>0&&ze();return{c(){o&&o.c(),e=P(),l=u("span"),i=N(t)},m(n,c){o&&o.m(n,c),b(n,e,c),b(n,l,c),f(l,i)},p(n,c){c&8&&t!==(t=n[11]+"")&&G(i,t)},d(n){n&&(v(e),v(l)),o&&o.d(n)}}}function le(s){let e,l,t,i;return{c(){e=u("div"),l=u("img"),K(l.src,t=s[0].poster)||a(l,"src",t),a(l,"alt",i=`${s[0].title} ${S.poster}`),a(l,"class","svelte-1ld7uz5"),a(e,"class","poster svelte-1ld7uz5")},m(o,n){b(o,e,n),f(e,l)},p(o,n){n&1&&!K(l.src,t=o[0].poster)&&a(l,"src",t),n&1&&i!==(i=`${o[0].title} ${S.poster}`)&&a(l,"alt",i)},d(o){o&&v(e)}}}function Ce(s){let e,l;return{c(){e=u("div"),l=u("span"),l.textContent=`${S.comingSoon}`,a(e,"class","placeholder svelte-1ld7uz5"),a(e,"aria-label",S.noVideo)},m(t,i){b(t,e,i),f(e,l)},p:J,d(t){t&&v(e)}}}function we(s){let e,l,t;return{c(){e=u("iframe"),K(e.src,l=W(s[0]))||a(e,"src",l),a(e,"title",t=s[0].title),a(e,"allow","autoplay; fullscreen; picture-in-picture"),e.allowFullscreen=!0,a(e,"loading","lazy"),a(e,"class","svelte-1ld7uz5")},m(i,o){b(i,e,o)},p(i,o){o&1&&!K(e.src,l=W(i[0]))&&a(e,"src",l),o&1&&t!==(t=i[0].title)&&a(e,"title",t)},d(i){i&&v(e)}}}function te(s){let e,l=s[0].description+"",t;return{c(){e=u("p"),t=N(l),a(e,"class","desc svelte-1ld7uz5")},m(i,o){b(i,e,o),f(e,t)},p(i,o){o&1&&l!==(l=i[0].description+"")&&G(t,l)},d(i){i&&v(e)}}}function ie(s){let e,l,t;
1return{c(){e=u("a"),l=N("IMDb"),a(e,"class","btn svelte-1ld7uz5"),a(e,"href",t=s[0].imdb),a(e,"target","_blank"),a(e,"rel","noreferrer")},m(i,o){b(i,e,o),f(e,l)},p(i,o){o&1&&t!==(t=i[0].imdb)&&a(e,"href",t)},d(i){i&&v(e)}}}function ne(s){let e,l=S.moreDetails+"",t,i;return{c(){e=u("a"),t=N(l),a(e,"class","btn svelte-1ld7uz5"),a(e,"href",i=s[0].link),a(e,"target","_blank"),a(e,"rel","noreferrer")},m(o,n){b(o,e,n),f(e,t)},p(o,n){n&1&&i!==(i=o[0].link)&&a(e,"href",i)},d(o){o&&v(e)}}}function Le(s){let e,l=s[1]&&$(s);return{c(){l&&l.c(),e=fe()},m(t,i){l&&l.m(t,i),b(t,e,i)},p(t,[i]){t[1]?l?l.p(t,i):(l=$(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:J,o:J,d(t){t&&v(e),l&&l.d(t)}}}function A(s,e){return String(s||"").trim().toLowerCase()===String(e||"").trim().toLowerCase()}function Pe(s,e,l){let t,{item:i}=e,{open:o=!1}=e,{onClose:n=()=>{}}=e,c;function _(r,p){return A(r,"director")||r==="監督"?be?`${S.directedBy}:${p}`:`Directed by ${p}`:`${r} ${p}`}function q(r){if(!r)return[];const p=[];r.credit&&r.director?p.push(_(r.credit,r.director)):(r.credit&&p.push(r.credit),r.director&&p.push(`dir. ${r.director}`)),r.client&&!A(r.client,r.title)&&p.push(r.client),r.prodCompany&&!A(r.prodCompany,r.title)&&!A(r.prodCompany,r.client)&&p.push(r.prodCompany),r.year&&p.push(r.year),r.genre&&p.push(r.genre);const m=new Set;return p.filter(w=>{const B=String(w).trim().toLowerCase();return!B||m.has(B)?!1:(m.add(B),!0)})}function D(){n()}function E(r){r.key==="Escape"&&D()}async function C(){await pe(),o&&(c==null||c.scrollTo({top:0}),document.body.classList.add("modal-open"))}ue(()=>{window.addEventListener("keydown",E)}),de(()=>{window.removeEventListener("keydown",E),document.body.classList.remove("modal-open")});function V(r){me[r?"unshift":"push"](()=>{c=r,l(2,c)})}return s.$$set=r=>{"item"in r&&l(0,i=r.item),"open"in r&&l(1,o=r.open),"onClose"in r&&l(5,n=r.onClose)},s.$$.update=()=>{s.$$.dirty&2&&(o?C():typeof document<"u"&&document.body.classList.remove("modal-open")),s.$$.dirty&1&&l(3,t=q(i))},[i,o,c,t,D,n,V]}class Ve extends se{constructor(e){super(),oe(this,e,Pe,Le,ae,{item:0,open:1,onClose:5})}}export{De as V,Ve as a};

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.