@banou/stub 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1178,7 +1178,7 @@ ${K_}
|
|
|
1178
1178
|
height: 100%;
|
|
1179
1179
|
width: 100%;
|
|
1180
1180
|
overflow: hidden;
|
|
1181
|
-
`,Dv=e=>F(`div`,{css:Ev,children:F(r_.Provider,{children:F(Tv,{options:e,children:e.children})})}),Ov=`[data-testid="track-selection-button"]`,kv=`[data-testid="audio-text-track-menu"]`,Av=`.timeline-slider`,jv=`[role="menu"]`,Mv=`[role="menuitemradio"]`,Nv=1e4,Pv=2e4,Fv=5e3,Iv=100,Lv=`Opens Crunchyroll audio and subtitle choices.`,Rv=`Changes the Crunchyroll audio option you picked.`,zv=`Changes the Crunchyroll subtitle option you picked.`,Bv=`Restores your place after changing Crunchyroll audio or subtitles.`,Vv=/^(off|none|disabled)$/i,Hv=e=>new Promise(t=>setTimeout(t,e)),Uv=()=>!1,Wv=e=>{if(e())throw Error(`Crunchyroll track operation cancelled`)},Gv=(e,t)=>e.locator(kv).locator(jv).nth(t===`audio`?0:1),Kv=e=>e.replace(/\s+/g,` `).trim(),qv=(e,t)=>{let n=[...new Map(t.map(e=>({...e,label:Kv(e.label)})).filter(e=>e.label).map(e=>[e.id,e])).values()],r=n.find(e=>e.selected);if(!r)return;let i=e===`subtitles`?n.find(e=>Vv.test(e.label)):void 0,a=n.filter(e=>e!==i).map(e=>({id:e.id,label:e.label,disabled:e.disabled||void 0}));if(!(a.length<2&&!i)&&a.length)return{options:a,selectedId:r===i?null:r.id,...i?{offLabel:i.label}:{}}},Jv=async(e,t)=>{Wv(t);let n=e.locator(kv);if(await n.exists({timeout:1e3})){Wv(t);return}Wv(t),await e.locator(Ov).click({timeout:Nv,reason:Lv});let r=Date.now()+Nv;for(;Date.now()<r;){if(Wv(t),await n.exists({timeout:1e3}))return;await Hv(Iv)}throw Error(`Crunchyroll track menu did not open`)},Yv=async(e,t,n)=>{Wv(n);let r=Gv(e,t).locator(Mv),i=await r.count({timeout:1e3});Wv(n);let a=await Promise.all(Array.from({length:i},async(e,t)=>{Wv(n);let i=r.nth(t),[a,o,s]=await Promise.all([i.getAttribute(`aria-label`,{timeout:1e3}),i.getAttribute(`aria-checked`,{timeout:1e3}),i.getAttribute(`aria-disabled`,{timeout:1e3})]);return{label:Kv(a??``),index:t,selected:o===`true`,disabled:s===`true`}})),o=new Map;for(let e of a)o.set(e.label,(o.get(e.label)??0)+1);let s=new Map;return a.map(e=>{let t=(s.get(e.label)??0)+1;return s.set(e.label,t),{...e,id:o.get(e.label)===1?e.label:`${e.label}#${t}`}})},Xv=async(e,t)=>{let[n,r]=await Promise.all([Yv(e,`audio`,t),Yv(e,`subtitles`,t)]);return{audio:qv(`audio`,n),subtitles:qv(`subtitles`,r)}},Zv=async(e,t=Uv)=>(await Jv(e,t),Xv(e,t)),Qv=async(e,t,n,r)=>(await Yv(e,t,r)).find(e=>n===null?Vv.test(e.label):e.id===n)?.index??-1,$v=async(e,t,n,r)=>{let i=Date.now()+Pv;for(;Date.now()<i;){Wv(r),await Jv(e,r);let i=(await Yv(e,t,r)).find(e=>e.selected);if(i&&(n===null?Vv.test(i.label):i.id===n))return;await Hv(Iv)}throw Error(`Crunchyroll did not apply the ${t} option`)},ey=(e,t)=>{let n=Number.isFinite(e)?Math.max(0,e):0;return!Number.isFinite(t)||t<=0?n:Math.min(n,Math.max(0,t-.1))},ty=e=>({currentTime:e.currentTime,paused:e.paused,volume:e.volume,muted:e.muted,playbackRate:e.playbackRate}),ny=(e,t,n=Bv)=>e.locator(Av).fill(String(t),{timeout:Pv,reason:n}),ry=async(e,t,n)=>{let r=Date.now()+5e3;for(;Date.now()<r&&(Wv(n),!(e.currentSrc!==t||e.readyState<2));)await Hv(Iv);if(e.currentSrc===t&&e.readyState>=2)return!1;let i=Date.now()+Pv;for(;Date.now()<i;){if(Wv(n),e.readyState>=2)return!0;await Hv(Iv)}throw Error(`Crunchyroll playback did not become ready after changing tracks`)},iy=async(e,t,n,r)=>{Wv(r),t.volume=n.volume,t.muted=n.muted,t.playbackRate=n.playbackRate;let i=ey(n.currentTime,t.duration);Math.abs(t.currentTime-i)>2&&await ny(e,i);let a=Date.now()+Pv;for(;Date.now()<a&&(Math.abs(t.currentTime-i)>2||t.seeking||t.readyState<2);)Wv(r),await Hv(Iv);if(Math.abs(t.currentTime-i)>2||t.seeking||t.readyState<2)throw Error(`Crunchyroll playback position was not restored after changing tracks`);Wv(r),n.paused?t.pause():await t.play();let o=Date.now()+Fv;for(;Date.now()<o&&t.paused!==n.paused;)Wv(r),await Hv(Iv);if(t.paused!==n.paused)throw Error(`Crunchyroll playback state was not restored after changing tracks`)},ay=async(e,t,n,r,i=Uv)=>{await Jv(e,i);let a=await Qv(e,n,r,i);if(a<0)throw Error(`Crunchyroll ${n} option is no longer available`);Wv(i);let o=t.currentSrc,s=ty(t);return await Gv(e,n).locator(Mv).nth(a).click({timeout:Nv,reason:n===`audio`?Rv:zv}),await $v(e,n,r,i),await ry(t,o,i)&&await iy(e,t,s,i),Zv(e,i)},oy=`Seeks the video to the point you pick on the timeline.`,sy=(e,t)=>{ny(e,t,oy).catch(e=>console.warn(`[cr] timeline seek failed:`,e))},cy=(e,t)=>new Proxy(e,{set(e,n,r,i){return n===`currentTime`&&typeof r==`number`&&Number.isFinite(r)&&sy(t,r),Reflect.set(e,n,r,i)}}),ly=({remote:e,frame:t,subtitles:n,audioTracks:r,children:i})=>{let a=b(()=>e&&t?cy(e,t):null,[e,t]);return F(Dv,{expose:!0,media:a,subtitles:n,audioTracks:r,children:i})};l();var uy=[`www.crunchyroll.com`,`crunchyroll.com`,`sso.crunchyroll.com`,`static.crunchyroll.com`],dy=`
|
|
1181
|
+
`,Dv=e=>F(`div`,{css:Ev,children:F(r_.Provider,{children:F(Tv,{options:e,children:e.children})})}),Ov=({menu:e,section:t,option:n,sectionIndex:r})=>[...[...document.querySelectorAll(e)].flatMap(e=>[...e.querySelectorAll(t)])[r]?.querySelectorAll(n)??[]].map(e=>({label:e.getAttribute(`aria-label`)??``,selected:e.getAttribute(`aria-checked`)===`true`,disabled:e.getAttribute(`aria-disabled`)===`true`})),kv=async({button:e,timeout:t})=>{let n=Date.now()+t,r=document.querySelector(e);for(;!r&&Date.now()<n;)await new Promise(e=>setTimeout(e,100)),r=document.querySelector(e);if(!r)throw Object.assign(Error(`Crunchyroll track button is not on the page`),{name:`CrunchyrollControlMissingError`});let i=r.getBoundingClientRect(),a={bubbles:!0,cancelable:!0,composed:!0,clientX:i.left+i.width/2,clientY:i.top+i.height/2,button:0},o={...a,pointerType:`mouse`,pointerId:1,isPrimary:!0};r.dispatchEvent(new PointerEvent(`pointerdown`,{...o,buttons:1})),r.dispatchEvent(new MouseEvent(`mousedown`,{...a,buttons:1})),r.dispatchEvent(new PointerEvent(`pointerup`,{...o,buttons:0})),r.dispatchEvent(new MouseEvent(`mouseup`,{...a,buttons:0})),r.dispatchEvent(new MouseEvent(`click`,{...a,buttons:0}))},Av=({menu:e,section:t,option:n,sectionIndex:r,optionIndex:i})=>{let a=[...document.querySelectorAll(e)].flatMap(e=>[...e.querySelectorAll(t)])[r]?.querySelectorAll(n)[i];if(!a)throw Object.assign(Error(`Crunchyroll track option ${i} is not in the menu`),{name:`CrunchyrollControlMissingError`});let o=a.getBoundingClientRect(),s={bubbles:!0,cancelable:!0,composed:!0,clientX:o.left+o.width/2,clientY:o.top+o.height/2,button:0},c={...s,pointerType:`mouse`,pointerId:1,isPrimary:!0};a.dispatchEvent(new PointerEvent(`pointerdown`,{...c,buttons:1})),a.dispatchEvent(new MouseEvent(`mousedown`,{...s,buttons:1})),a.dispatchEvent(new PointerEvent(`pointerup`,{...c,buttons:0})),a.dispatchEvent(new MouseEvent(`mouseup`,{...s,buttons:0})),a.dispatchEvent(new MouseEvent(`click`,{...s,buttons:0}))},jv=async({timeline:e,time:t,timeout:n})=>{let r=Date.now()+n,i=document.querySelector(e);for(;!i&&Date.now()<r;)await new Promise(e=>setTimeout(e,100)),i=document.querySelector(e);if(i?.tagName!==`INPUT`)throw Object.assign(Error(`Crunchyroll timeline is not on the page`),{name:`CrunchyrollControlMissingError`});let a=i,o=Number(a.min||0),s=Number(a.max||100),c=a.getBoundingClientRect(),l=Math.max(0,Math.min(1,(t-o)/(s-o))),u={bubbles:!0,cancelable:!0,composed:!0,clientX:c.left+c.width*l,clientY:c.top+c.height/2,button:0},d={...u,pointerType:`mouse`,pointerId:1,isPrimary:!0},f=a.type===`range`&&Number.isFinite(o)&&Number.isFinite(s)&&s>o;f&&(a.dispatchEvent(new PointerEvent(`pointerdown`,{...d,buttons:1})),a.dispatchEvent(new MouseEvent(`mousedown`,{...u,buttons:1}))),a._valueTracker?.setValue(``),Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),`value`).set.call(a,String(t)),a.dispatchEvent(new Event(`input`,{bubbles:!0})),f&&(a.dispatchEvent(new PointerEvent(`pointerup`,{...d,buttons:0})),a.dispatchEvent(new MouseEvent(`mouseup`,{...u,buttons:0}))),a.dispatchEvent(new Event(`change`,{bubbles:!0}))},Mv=`[data-testid="track-selection-button"]`,Nv=`[data-testid="audio-text-track-menu"]`,Pv=`.timeline-slider`,Fv=`[role="menu"]`,Iv=`[role="menuitemradio"]`,Lv=1e4,Rv=2e4,zv=5e3,Bv=100,Vv={menu:Nv,section:Fv,option:Iv},Hv=/^(off|none|disabled)$/i,Uv=e=>new Promise(t=>setTimeout(t,e)),Wv=()=>!1,Gv=e=>{if(e())throw Error(`Crunchyroll track operation cancelled`)},Kv=e=>e===`audio`?0:1,qv=e=>e.replace(/\s+/g,` `).trim(),Jv=(e,t)=>{let n=[...new Map(t.map(e=>({...e,label:qv(e.label)})).filter(e=>e.label).map(e=>[e.id,e])).values()],r=n.find(e=>e.selected);if(!r)return;let i=e===`subtitles`?n.find(e=>Hv.test(e.label)):void 0,a=n.filter(e=>e!==i).map(e=>({id:e.id,label:e.label,disabled:e.disabled||void 0}));if(!(a.length<2&&!i)&&a.length)return{options:a,selectedId:r===i?null:r.id,...i?{offLabel:i.label}:{}}},Yv=async(e,t)=>{Gv(t);let n=e.locator(Nv);if(await n.exists({timeout:1e3})){Gv(t);return}Gv(t),await e.evaluate(kv,{button:Mv,timeout:Lv});let r=Date.now()+Lv;for(;Date.now()<r;){if(Gv(t),await n.exists({timeout:1e3}))return;await Uv(Bv)}throw Error(`Crunchyroll track menu did not open`)},Xv=async(e,t,n)=>{Gv(n);let r=await e.evaluate(Ov,{...Vv,sectionIndex:Kv(t)});Gv(n);let i=r.map((e,t)=>({...e,label:qv(e.label),index:t})),a=new Map;for(let e of i)a.set(e.label,(a.get(e.label)??0)+1);let o=new Map;return i.map(e=>{let t=(o.get(e.label)??0)+1;return o.set(e.label,t),{...e,id:a.get(e.label)===1?e.label:`${e.label}#${t}`}})},Zv=async(e,t)=>{let[n,r]=await Promise.all([Xv(e,`audio`,t),Xv(e,`subtitles`,t)]);return{audio:Jv(`audio`,n),subtitles:Jv(`subtitles`,r)}},Qv=async(e,t=Wv)=>(await Yv(e,t),Zv(e,t)),$v=async(e,t,n,r)=>(await Xv(e,t,r)).find(e=>n===null?Hv.test(e.label):e.id===n)?.index??-1,ey=async(e,t,n,r)=>{let i=Date.now()+Rv;for(;Date.now()<i;){Gv(r),await Yv(e,r);let i=(await Xv(e,t,r)).find(e=>e.selected);if(i&&(n===null?Hv.test(i.label):i.id===n))return;await Uv(Bv)}throw Error(`Crunchyroll did not apply the ${t} option`)},ty=(e,t)=>{let n=Number.isFinite(e)?Math.max(0,e):0;return!Number.isFinite(t)||t<=0?n:Math.min(n,Math.max(0,t-.1))},ny=e=>({currentTime:e.currentTime,paused:e.paused,volume:e.volume,muted:e.muted,playbackRate:e.playbackRate}),ry=(e,t)=>e.evaluate(jv,{timeline:Pv,time:t,timeout:Rv}),iy=async(e,t,n)=>{let r=Date.now()+5e3;for(;Date.now()<r&&(Gv(n),!(e.currentSrc!==t||e.readyState<2));)await Uv(Bv);if(e.currentSrc===t&&e.readyState>=2)return!1;let i=Date.now()+Rv;for(;Date.now()<i;){if(Gv(n),e.readyState>=2)return!0;await Uv(Bv)}throw Error(`Crunchyroll playback did not become ready after changing tracks`)},ay=async(e,t,n,r)=>{Gv(r),t.volume=n.volume,t.muted=n.muted,t.playbackRate=n.playbackRate;let i=ty(n.currentTime,t.duration);Math.abs(t.currentTime-i)>2&&await ry(e,i);let a=Date.now()+Rv;for(;Date.now()<a&&(Math.abs(t.currentTime-i)>2||t.seeking||t.readyState<2);)Gv(r),await Uv(Bv);if(Math.abs(t.currentTime-i)>2||t.seeking||t.readyState<2)throw Error(`Crunchyroll playback position was not restored after changing tracks`);Gv(r),n.paused?t.pause():await t.play();let o=Date.now()+zv;for(;Date.now()<o&&t.paused!==n.paused;)Gv(r),await Uv(Bv);if(t.paused!==n.paused)throw Error(`Crunchyroll playback state was not restored after changing tracks`)},oy=async(e,t,n,r,i=Wv)=>{await Yv(e,i);let a=await $v(e,n,r,i);if(a<0)throw Error(`Crunchyroll ${n} option is no longer available`);Gv(i);let o=t.currentSrc,s=ny(t);return await e.evaluate(Av,{...Vv,sectionIndex:Kv(n),optionIndex:a}),await ey(e,n,r,i),await iy(t,o,i)&&await ay(e,t,s,i),Qv(e,i)},sy=(e,t)=>{ry(e,t).catch(e=>console.warn(`[cr] timeline seek failed:`,e))},cy=(e,t)=>new Proxy(e,{set(e,n,r,i){return n===`currentTime`&&typeof r==`number`&&Number.isFinite(r)&&sy(t,r),Reflect.set(e,n,r,i)}}),ly=({remote:e,frame:t,subtitles:n,audioTracks:r,thumbnails:i,children:a})=>{let o=b(()=>e&&t?cy(e,t):null,[e,t]);return F(Dv,{expose:!0,media:o,subtitles:n,audioTracks:r,thumbnails:i,children:a})},uy=class extends Error{name=`BifParseError`},dy=[137,66,73,70,13,10,26,10],fy=64,py=8,my=4294967295,hy=36e3,gy=e=>{if(e.byteLength<fy)throw new uy(`truncated header: ${e.byteLength} bytes`);let t=new DataView(e);if(dy.some((e,n)=>t.getUint8(n)!==e))throw new uy(`bad magic`);let n=t.getUint32(12,!0),r=t.getUint32(16,!0)||1e3;if(n>hy)throw new uy(`implausible frame count ${n}`);let i=fy+(n+1)*py;if(i>e.byteLength)throw new uy(`truncated index: ${n} frames need ${i} bytes, have ${e.byteLength}`);let a=e=>t.getUint32(fy+e*py,!0),o=e=>t.getUint32(fy+e*py+4,!0);if(a(n)!==my)throw new uy(`the index does not end on the 0xffffffff entry`);let s=[];for(let t=0;t<n;t+=1){let c=o(t),l=o(t+1);if(c<i||l<=c||l>e.byteLength)throw new uy(`image ${t} spans ${c}..${l}, outside ${i}..${e.byteLength}`);let u=a(t),d=t+1===n;if(!d&&a(t+1)<=u)throw new uy(`timestamps do not increase at image ${t}`);s.push({start:u*r,end:d?1/0:a(t+1)*r,bytes:new Uint8Array(e,c,l-c)})}return s},_y=(e,t)=>{if(!e.length||!Number.isFinite(t))return;let n=0,r=e.length-1;for(;n<r;){let i=Math.ceil((n+r)/2);e[i].start<=t?n=i:r=i-1}return e[n]},vy=async({waitMs:e,fetchMs:t,maxBytes:n})=>{let r=/^(?:https?:\/\/|\/)\S*\.bif(?:[?#]\S*)?$/i,i=e=>typeof e==`string`&&e.length<8192&&e.includes(`.bif`)&&r.test(e),a=(e,t)=>{try{return e?.[t]}catch{return}},o=e=>{let t=Object.keys(e).find(e=>e.startsWith(`__reactFiber$`)||e.startsWith(`__reactInternalInstance$`));return t?a(e,t):void 0},s=e=>{let t=[],n=new Set,r=[e,...Array.from(e.querySelectorAll(`*`)).slice(0,3e3)];for(let e of r){let r=o(e);for(let e=0;r&&e<40&&!n.has(r);e+=1){n.add(r);let e=a(a(r,`memoizedProps`),`value`);e&&typeof e==`object`&&t.push(e),r=a(r,`return`)}}return t},c=e=>{let t=new Set,n=e,r=0;for(let e=0;e<=8&&n.length;e+=1){let e=[];for(let o of n){if(t.has(o))continue;if(t.add(o),r+=1,r>2e4)return;let n;try{n=Object.keys(o).slice(0,500)}catch{continue}for(let t of n){let n=a(o,t);if(i(n))return n;n&&typeof n==`object`&&(n===window||typeof a(n,`nodeType`)==`number`||ArrayBuffer.isView(n)||n instanceof ArrayBuffer||e.push(n))}}n=e}},l=e=>{let t=[];for(let n of e){let e=a(a(n,`volumeVM`),`_player`);if(!e||typeof e!=`object`)continue;let r=a(a(a(e,`playerOrchestrator`),`thumbnailOrchestrator`),`_currentBifUrl`);if(i(r))return{url:r,via:`named`};t.push(e)}let n=c(t.length?t:e);return n?{url:n,via:`search`}:void 0},u=async(e,r)=>{let i=new AbortController,a=setTimeout(()=>i.abort(),t);try{let t=await fetch(e,{signal:i.signal});if(!t.ok)return{none:`fetch-failed`,detail:`HTTP ${t.status}`};let a=Number(t.headers.get(`content-length`));if(a>n)return{none:`too-large`,detail:`${a} bytes`};let o=await t.arrayBuffer();return o.byteLength>n?{none:`too-large`,detail:`${o.byteLength} bytes`}:{bytes:o,via:r}}catch(e){return{none:`fetch-failed`,detail:String(e)}}finally{clearTimeout(a)}};try{let t=Date.now()+e,n=!1;for(;;){let e=document.querySelector(`.video-player-wrapper`);if(e?.querySelector(`video`)){n=!0;let t=l(s(e));if(t)return await u(t.url,t.via)}if(Date.now()>=t)return{none:n?`no-bif`:`no-player`};await new Promise(e=>setTimeout(e,500))}}catch(e){return{none:`failed`,detail:String(e)}}},yy={waitMs:1e4,fetchMs:15e3,maxBytes:31457280},by=e=>{let t=new Map,n=!1;return{at:r=>{if(n)return;let i=_y(e,r*1e3);if(!i)return;let a=t.get(i);return a||(a={url:URL.createObjectURL(new Blob([i.bytes],{type:`image/jpeg`})),startTime:i.start/1e3,endTime:i.end/1e3},t.set(i,a)),a},dispose:()=>{n=!0;for(let{url:e}of t.values())URL.revokeObjectURL(e);t.clear()}}},xy=async e=>{let t=await e.evaluate(vy,yy);if(`none`in t)throw Error(`no BIF: ${t.none}${t.detail?` (${t.detail})`:``}`);let n=gy(t.bytes);if(!n.length)throw Error(`no BIF: the file has no images`);return by(n)};l();var Sy=[`www.crunchyroll.com`,`crunchyroll.com`,`sso.crunchyroll.com`,`static.crunchyroll.com`],Cy=`
|
|
1182
1182
|
html, body {
|
|
1183
1183
|
margin: 0 !important;
|
|
1184
1184
|
padding: 0 !important;
|
|
@@ -1220,7 +1220,7 @@ ${K_}
|
|
|
1220
1220
|
opacity: 0 !important;
|
|
1221
1221
|
pointer-events: none !important;
|
|
1222
1222
|
}
|
|
1223
|
-
`,
|
|
1223
|
+
`,wy=`https://sso.crunchyroll.com/authorize?${new URLSearchParams({client_id:`noaihdevm_6iyg0a8l0q`,redirect_uri:`https://www.crunchyroll.com/callback`,response_type:`cookie`,state:`/`})}`,Ty=async e=>{let[t,n]=await Promise.all([e.locator(`.cx-app`).exists(),e.locator(`#recaptcha-container`).exists()]);return t||n},Ey=3e4,Dy=async()=>ne()?`extension`:(document.readyState!==`complete`&&await new Promise(e=>{let t=()=>{clearTimeout(n),e()},n=setTimeout(()=>{window.removeEventListener(`load`,t),e()},1e4);window.addEventListener(`load`,t,{once:!0})}),await new Promise(e=>setTimeout(e,300)),ne()?`extension`:`cloud`),Oy=async(e,t)=>{let n=Date.now()+Ey;for(;!t()&&Date.now()<n;){if(await e.locator(`.shell-header`).exists()){await new Promise(e=>setTimeout(e,100));continue}if(t())throw Error(`Login state check timed out`);let[n,r]=await Promise.all([e.locator(`#user-menu-anonymous`).exists(),e.locator(`#user-menu-authenticated`).exists()]);if(r||n)return{isLoggedIn:r,isLoggedOut:n};await new Promise(e=>setTimeout(e,100))}throw Error(`Login state check timed out`)},ky=3e4,Ay=async(e,t)=>{let n=Date.now()+ky;for(;!t()&&Date.now()<n;){try{if(await e.locator(`video`).exists())return t()?null:await e.locator(`video`).videoElement()}catch(e){if(e?.name===`LocatorUnsupportedError`)throw e}await new Promise(e=>setTimeout(e,100))}return null},jy=D`
|
|
1224
1224
|
position: relative;
|
|
1225
1225
|
width: 100%;
|
|
1226
1226
|
height: 100%;
|
|
@@ -1285,7 +1285,7 @@ ${K_}
|
|
|
1285
1285
|
text-align: center;
|
|
1286
1286
|
color: rgba(255, 255, 255, 0.6);
|
|
1287
1287
|
}
|
|
1288
|
-
`,by=({url:e})=>{let[t,n]=h(`detecting`),[r,i]=h(null),[a,s]=h(null),[c,l]=h(!0),[u,d]=h(!1),[f,g]=h(),[_,v]=h(null),[x,S]=h(0),[C,w]=h(0),[T,E]=h(!1),[D,k]=h(!1),A=o(null),j=o(null),[ee,M]=h(!1),N=o(!1),[P,I]=h(),L=o(0),te=o({generation:0,tail:Promise.resolve()}),re=o(!0),ie=p(()=>{let e=L.current+1;return L.current=e,te.current={generation:e,tail:Promise.resolve()},I(void 0),e},[]),oe=p((e,t)=>{if(te.current.generation!==e)return Promise.reject(Error(`Crunchyroll track operation cancelled`));let n=te.current,r=n.tail.then(t);return n.tail=r.then(()=>{},()=>{}),r},[]);m(()=>()=>{re.current=!1,L.current+=1},[]),m(()=>{let e=!1;return hy().then(t=>{e||n(t)}),()=>{e=!0}},[]),m(()=>{if(!r||t===`detecting`)return;let e=!1;return ae({iframe:r,domains:uy,permissions:[{category:`interaction`,reason:`Control the Crunchyroll player from this app`},{category:`storage`,reason:`Read the audio and subtitle track names`},{category:`evaluation`,reason:`Read the seek preview thumbnails from the Crunchyroll player`}]}).then(r=>{if(e)return;let i=ne()?`extension`:`cloud`;if(i!==t){n(i);return}s(r)}).catch(t=>{e||(console.error(`Failed to attach Crunchyroll frame`,t),g(t?.message||`Failed to load player`),l(!1))}),()=>{e=!0}},[r,t]),m(()=>{if(!a)return;let n=!1,r=()=>n;return l(!0),g(void 0),d(!1),v(null),ie(),(async()=>{if(t===`cloud`){if(await a.goto(e,{waitUntil:`load`}),n)return;let{isLoggedIn:t}=await gy(a,r);if(n)return;if(!t){l(!1),d(!0);return}if(await a.addStyleTag({content:dy}),n)return;let i=await vy(a,r);if(n)return;if(l(!1),!i)throw Error(`The episode did not load a player. It may be unavailable or require a different plan.`);v(i);return}if(await a.goto(e,{waitUntil:`documentstart`}),n||(await a.addStyleTag({content:dy}),n))return;let{isLoggedIn:i}=await gy(a,r);if(n)return;if(!i){l(!1),d(!0);return}let o=await vy(a,r);if(!n){if(l(!1),!o)throw Error(`The episode did not load a player. It may be unavailable or require a different plan.`);v(o)}})().catch(e=>{n||(console.error(`Failed to load Crunchyroll player`,e),g(e?.message||`Failed to load player`),l(!1))}),()=>{n=!0}},[a,e,x,t,ie]),m(()=>{if(!a||!_)return;let e=ie(),t=!1,n=()=>t||!re.current||e!==L.current;return(async()=>{let t,r;for(let i=0;i<5&&!n();i+=1){try{if(r=await oe(e,()=>Zv(a,n)),t=void 0,n()||(I(r),r.audio&&r.subtitles))return}catch(e){t=e}await new Promise(e=>setTimeout(e,500))}if(!r&&t)throw t})().then(()=>{},e=>{n()||console.warn(`[cr] track discovery failed:`,e)}),()=>{t=!0}},[a,_,ie,oe]);let R=L.current,se=p((e,t)=>{if(!a||!_)return Promise.reject(Error(`Crunchyroll player is not ready`));let n=()=>!re.current||R!==L.current;return oe(R,async()=>{try{let r=await ay(a,_,e,t,n);if(n())throw Error(`Crunchyroll track operation cancelled`);I(r)}catch(e){if(!n())try{let e=await Zv(a,n);n()||I(e)}catch{}throw e}})},[a,_,oe,R]),ce=b(()=>P?.subtitles&&{selection:{...P.subtitles,select:e=>se(`subtitles`,e)}},[P?.subtitles,se]),ue=b(()=>P?.audio&&{selection:{...P.audio,select:e=>se(`audio`,e)}},[P?.audio,se]),de=p(()=>{if(A.current!==null)return;let e=globalThis.open(fy,`_blank`,`width=500,height=700`);if(!e){k(!0),l(!1);return}k(!1),E(!0),j.current=e;let t=setInterval(()=>{e.closed&&(clearInterval(t),A.current===t&&(A.current=null),j.current===e&&(j.current=null),E(!1),S(e=>e+1))},500);A.current=t},[]),fe=p(()=>{s(null),g(void 0),v(null),ie(),d(!1),l(!0),w(e=>e+1)},[ie]),z=p(()=>{if(N.current)return;N.current=!0;let e=le({url:fy,domains:uy,isSignedIn:e=>e.locator(`#user-menu-authenticated`).exists(),onSignInPage:py});k(!1),M(!0),e.then(e=>{if(re.current){if(e===`blocked`){k(!0);return}if(e===`unsupported`){g(`The Crunchyroll sign-in window could not be opened here.`);return}if(e===`authed`){fe();return}d(!1),l(!0),S(e=>e+1)}},e=>{re.current&&(console.error(`Crunchyroll sign-in window failed`,e),g(e?.message||`The sign-in window failed`))}).finally(()=>{N.current=!1,re.current&&M(!1)})},[fe]);m(()=>()=>{A.current!==null&&(clearInterval(A.current),A.current=null)},[]),m(()=>{A.current!==null&&(clearInterval(A.current),A.current=null,E(!1)),k(!1)},[e]);let pe=p(()=>{j.current!==null&&(j.current.close(),j.current=null),A.current!==null&&(clearInterval(A.current),A.current=null),k(!1),E(!1),fe()},[fe]),me=(c||f||D||u)&&y(`div`,{className:`overlay`,children:[u&&!f&&!D&&y(O,{children:[`You need to be logged in to Crunchyroll to watch this content.`,t===`extension`?F(`button`,{className:`login-button`,onClick:de,disabled:T,children:T?`Finish signing in the popup...`:`Open Crunchyroll Login Page`}):y(O,{children:[F(`button`,{className:`login-button`,onClick:z,disabled:ee,children:ee?`Finish signing in the window...`:`Sign in to Crunchyroll`}),F(`span`,{className:`login-note`,children:`Sign-in happens in a window served through FKN, so your browser will not autofill saved passwords or offer passkeys there.`})]})]}),D&&!f&&y(O,{children:[`The login popup was blocked. Allow popups for this page and try again.`,F(`button`,{className:`login-button`,onClick:t===`extension`?de:z,children:`Open Crunchyroll Login Page`})]}),f&&y(O,{children:[f,F(`button`,{className:`login-button`,onClick:pe,children:`Retry`})]}),c&&!f&&!u&&`Loading Crunchyroll player...`]});return y(`div`,{css:yy,children:[t!==`detecting`&&F(ly,{remote:_,frame:a,subtitles:ce,audioTracks:ue,children:F(`iframe`,{ref:i,className:`cr-frame`,referrerPolicy:`no-referrer`,allow:`encrypted-media; autoplay; fullscreen;`},`${t}-${C}`)}),me]})},xy=e=>e,Sy=xy(({className:e,children:t})=>F(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:18,height:18,fill:`none`,"aria-hidden":`true`,className:e,children:t})),Cy=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`m14.051 10.723-7.985 4.964a1.98 1.98 0 0 1-2.758-.638A2.06 2.06 0 0 1 3 13.964V4.036C3 2.91 3.895 2 5 2c.377 0 .747.109 1.066.313l7.985 4.964a2.057 2.057 0 0 1 .627 2.808c-.16.257-.373.475-.627.637`})})),wy=xy(({className:e})=>y(Sy,{className:e,children:[F(`rect`,{width:5,height:14,x:2,y:2,fill:`currentColor`,rx:1.75}),F(`rect`,{width:5,height:14,x:11,y:2,fill:`currentColor`,rx:1.75})]})),Ty=xy(({className:e})=>y(Sy,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M9 17a8 8 0 0 1-8-8h2a6 6 0 1 0 1.287-3.713l1.286 1.286A.25.25 0 0 1 5.396 7H1.25A.25.25 0 0 1 1 6.75V2.604a.25.25 0 0 1 .427-.177l1.438 1.438A8 8 0 1 1 9 17`}),F(`path`,{fill:`currentColor`,d:`m11.61 9.639-3.331 2.07a.826.826 0 0 1-1.15-.266.86.86 0 0 1-.129-.452V6.849C7 6.38 7.374 6 7.834 6c.158 0 .312.045.445.13l3.331 2.071a.858.858 0 0 1 0 1.438`})]})),Ey=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M1 9c0 2.21.895 4.21 2.343 5.657l1.414-1.414a6 6 0 1 1 8.956-7.956l-1.286 1.286a.25.25 0 0 0 .177.427h4.146a.25.25 0 0 0 .25-.25V2.604a.25.25 0 0 0-.427-.177l-1.438 1.438A8 8 0 0 0 1 9`})})),Dy=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M.714 6.008h3.072l4.071-3.857c.5-.376 1.143 0 1.143.601V15.28c0 .602-.643.903-1.143.602l-4.071-3.858H.714c-.428 0-.714-.3-.714-.752V6.76c0-.451.286-.752.714-.752M14.5 7.586l-1.768-1.768a1 1 0 1 0-1.414 1.414L13.085 9l-1.767 1.768a1 1 0 0 0 1.414 1.414l1.768-1.768 1.768 1.768a1 1 0 0 0 1.414-1.414L15.914 9l1.768-1.768a1 1 0 0 0-1.414-1.414z`})})),Oy=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M.714 6.008h3.072l4.071-3.857c.5-.376 1.143 0 1.143.601V15.28c0 .602-.643.903-1.143.602l-4.071-3.858H.714c-.428 0-.714-.3-.714-.752V6.76c0-.451.286-.752.714-.752m10.568.59a.91.91 0 0 1 0-1.316.91.91 0 0 1 1.316 0c1.203 1.203 1.47 2.216 1.522 3.208q.012.255.011.51c0 1.16-.358 2.733-1.533 3.803a.7.7 0 0 1-.298.156c-.382.106-.873-.011-1.018-.156a.91.91 0 0 1 0-1.316c.57-.57.995-1.551.995-2.487 0-.944-.26-1.667-.995-2.402`})})),ky=xy(({className:e})=>y(Sy,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M15.6 3.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4C15.4 5.9 16 7.4 16 9s-.6 3.1-1.8 4.3c-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7`}),F(`path`,{fill:`currentColor`,d:`M.714 6.008h3.072l4.071-3.857c.5-.376 1.143 0 1.143.601V15.28c0 .602-.643.903-1.143.602l-4.071-3.858H.714c-.428 0-.714-.3-.714-.752V6.76c0-.451.286-.752.714-.752m10.568.59a.91.91 0 0 1 0-1.316.91.91 0 0 1 1.316 0c1.203 1.203 1.47 2.216 1.522 3.208q.012.255.011.51c0 1.16-.358 2.733-1.533 3.803a.7.7 0 0 1-.298.156c-.382.106-.873-.011-1.018-.156a.91.91 0 0 1 0-1.316c.57-.57.995-1.551.995-2.487 0-.944-.26-1.667-.995-2.402`})]})),Ay=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M9.57 3.617A1 1 0 0 0 8.646 3H4c-.552 0-1 .449-1 1v4.646a.996.996 0 0 0 1.001 1 1 1 0 0 0 .706-.293l4.647-4.647a1 1 0 0 0 .216-1.089m4.812 4.812a1 1 0 0 0-1.089.217l-4.647 4.647a.998.998 0 0 0 .708 1.706H14c.552 0 1-.449 1-1V9.353a1 1 0 0 0-.618-.924`})})),jy=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M7.883 1.93a.99.99 0 0 0-1.09.217L2.146 6.793A.998.998 0 0 0 2.853 8.5H7.5c.551 0 1-.449 1-1V2.854a1 1 0 0 0-.617-.924m7.263 7.57H10.5c-.551 0-1 .449-1 1v4.646a.996.996 0 0 0 1.001 1.001 1 1 0 0 0 .706-.293l4.646-4.646a.998.998 0 0 0-.707-1.707z`})})),My=xy(({className:e})=>y(Sy,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M13 2a4 4 0 0 1 4 4v2.035A3.5 3.5 0 0 0 16.5 8H15V6.273C15 5.018 13.96 4 12.679 4H4.32C3.04 4 2 5.018 2 6.273v5.454C2 12.982 3.04 14 4.321 14H6v1.5q0 .255.035.5H4a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4z`}),F(`rect`,{width:10,height:7,x:8,y:10,fill:`currentColor`,rx:2}),F(`path`,{fill:`currentColor`,d:`M7.129 5.547a.6.6 0 0 0-.656.13L3.677 8.473A.6.6 0 0 0 4.102 9.5h2.796c.332 0 .602-.27.602-.602V6.103a.6.6 0 0 0-.371-.556`})]})),Ny=xy(({className:e})=>y(Sy,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M13 2a4 4 0 0 1 4 4v2.036A3.5 3.5 0 0 0 16.5 8H15V6.273C15 5.018 13.96 4 12.679 4H4.32C3.04 4 2 5.018 2 6.273v5.454C2 12.982 3.04 14 4.321 14H6v1.5q0 .255.036.5H4a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4z`}),F(`rect`,{width:10,height:7,x:8,y:10,fill:`currentColor`,rx:2}),F(`path`,{fill:`currentColor`,d:`M4.871 10.454a.6.6 0 0 0 .656-.131l2.796-2.796A.6.6 0 0 0 7.898 6.5H5.102a.603.603 0 0 0-.602.602v2.795a.6.6 0 0 0 .371.556`})]})),Py=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M15 2a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3zM4 11a1 1 0 1 0 0 2h5a1 1 0 1 0 0-2zm8 0a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zM4 8a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2zm4 0a1 1 0 0 0 0 2h3a1 1 0 1 0 0-2zm6 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2`})})),Fy=xy(({className:e})=>y(Sy,{className:e,children:[F(`rect`,{width:16,height:12,x:1,y:3,stroke:`currentColor`,strokeWidth:2,rx:3}),F(`rect`,{width:3,height:2,x:3,y:8,fill:`currentColor`,rx:1}),F(`rect`,{width:2,height:2,x:13,y:8,fill:`currentColor`,rx:1}),F(`rect`,{width:4,height:2,x:11,y:11,fill:`currentColor`,rx:1}),F(`rect`,{width:5,height:2,x:7,y:8,fill:`currentColor`,rx:1}),F(`rect`,{width:7,height:2,x:3,y:11,fill:`currentColor`,rx:1})]})),Iy=xy(({className:e})=>F(Sy,{className:e,children:y(`g`,{fill:`currentColor`,children:[F(`rect`,{width:2,height:5,x:8,y:.5,opacity:.5,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:2,height:5,x:12.243,y:2.257,opacity:.45,rx:1,transform:`rotate(45 13.243 4.757)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.125s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:12.5,y:8,opacity:.4,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0.25s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:10.743,y:12.243,opacity:.35,rx:1,transform:`rotate(45 13.243 13.243)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.375s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:2,height:5,x:8,y:12.5,opacity:.3,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0.5s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:2,height:5,x:3.757,y:10.743,opacity:.25,rx:1,transform:`rotate(45 4.757 13.243)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.625s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:.5,y:8,opacity:.15,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0.75s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:2.257,y:3.757,opacity:.1,rx:1,transform:`rotate(45 4.757 4.757)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.875s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})})]})})),Ly=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M9 2a1 1 0 0 1 1 1v12a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1zm4 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1zM5 5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1zm8 4a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1zM5 9a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1z`})})),Ry=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M3 5a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1zm0 4a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1zm1 3a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H4z`})})),zy=xy(({className:e})=>F(Sy,{className:e,children:F(`path`,{fill:`currentColor`,d:`M14.53 4.53a.75.75 0 0 0-1.06-1.06L7 9.94 4.53 7.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l7-7z`})}));l();var By=10,$=e=>e,Vy=$(mm.Root),Hy=$(sm),Uy=$(Sm.Root),Wy=$(om.Popup),Gy=$(om.Title),Ky=$(om.Close),qy=$(Sm.Description),Jy=$(Sh.Provider),Yy=$(Sh.Root),Xy=$(Sh.Trigger),Zy=$(Sh.Popup),Qy=$(Um.Root),$y=$(Um.Trigger),eb=$(Um.Popup),tb=$(Nm),nb=$(Wm),rb=$(jm),ib=$(Mm),ab=$(Cm),ob=$(Pm),sb=$(sh.Value),cb=$(uh.Root),lb=$(rh.Track),ub=$(rh.Fill),db=$(rh.Buffer),fb=$(rh.Thumb),pb=$(rh.Value),mb=$(Th.Root),hb=$(km),gb=$(Tm),_b=$(Ad),vb=({className:e,...t})=>F(`button`,{type:`button`,className:`media-button media-button--subtle media-button--icon${e?` ${e}`:``}`,...t}),yb=({selection:e,icon:t})=>{let[n,r]=h(!1),[i,a]=h(!1),[o,s]=h(!1);m(()=>s(!1),[e.selectedId]);let c=[...e.offLabel?[{id:null,label:e.offLabel}]:[],...e.options],l=t=>{if(t===e.selectedId){r(!1);return}s(!1),a(!0),Promise.resolve().then(()=>e.onSelect(t)).then(()=>r(!1)).catch(t=>{console.warn(`[player] ${e.label} selection failed:`,t),s(!0)}).finally(()=>a(!1))};return y(Qy,{open:n,onOpenChange:e=>r(e),children:[F($y,{render:F(vb,{className:`media-button--menu${o?` media-button--error`:``}`,"aria-label":e.label}),children:t}),F(eb,{className:`media-surface media-popover media-popover--menu`,children:y(`div`,{className:`stub-menu`,role:`menu`,"aria-label":e.label,children:[F(`div`,{className:`stub-menu__heading`,children:e.label}),c.map(t=>{let n=t.id===e.selectedId;return y(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":n,className:`stub-menu__item${n?` stub-menu__item--active`:``}`,disabled:i||`disabled`in t&&t.disabled,onClick:()=>l(t.id),children:[F(`span`,{className:`stub-menu__check`,children:n?F(zy,{className:`media-icon`}):null}),F(`span`,{className:`stub-menu__label`,children:t.label}),`description`in t&&t.description?F(`span`,{className:`stub-menu__description`,children:t.description}):null]},t.id??`__off__`)})]})})]})},bb=()=>y(Qy,{openOnHover:!0,delay:200,closeDelay:100,side:`top`,children:[F($y,{render:y(rb,{className:`media-button--mute`,render:F(vb,{}),children:[F(Dy,{className:`media-icon media-icon--volume-off`}),F(Oy,{className:`media-icon media-icon--volume-low`}),F(ky,{className:`media-icon media-icon--volume-high`})]})}),F(eb,{className:`media-surface media-popover media-popover--volume`,children:y(mb,{className:`media-slider`,orientation:`vertical`,thumbAlignment:`edge`,children:[F(lb,{className:`media-slider__track`,children:F(ub,{className:`media-slider__fill`})}),F(fb,{className:`media-slider__thumb media-slider__thumb--persistent`})]})})]}),xb=({capabilities:e,children:t,className:n,...r})=>y(_b,{className:`media-default-skin media-default-skin--video${n?` ${n}`:``}`,...r,children:[t,F(Hy,{render:e=>F(`div`,{...e,className:`media-buffering-indicator`,children:F(`div`,{className:`media-surface`,children:F(Iy,{className:`media-icon`})})})}),F(Uy,{children:F(Wy,{className:`media-error`,children:y(`div`,{className:`media-error__dialog media-surface`,children:[y(`div`,{className:`media-error__content`,children:[F(Gy,{className:`media-error__title`,children:`Something went wrong.`}),F(qy,{className:`media-error__description`})]}),F(`div`,{className:`media-error__actions`,children:F(Ky,{className:`media-button media-button--primary`,children:`OK`})})]})})}),F(Vy,{className:`media-surface media-controls`,children:y(Jy,{children:[y(`div`,{className:`media-button-group`,children:[y(Yy,{side:`top`,children:[F(Xy,{render:y(tb,{className:`media-button--play`,render:F(vb,{}),children:[F(Ty,{className:`media-icon media-icon--restart`}),F(Cy,{className:`media-icon media-icon--play`}),F(wy,{className:`media-icon media-icon--pause`})]})}),F(Zy,{className:`media-surface media-tooltip`})]}),y(Yy,{side:`top`,children:[F(Xy,{render:F(nb,{seconds:-10,className:`media-button--seek`,render:F(vb,{}),children:y(`span`,{className:`media-icon__container`,children:[F(Ey,{className:`media-icon media-icon--seek media-icon--flipped`}),F(`span`,{className:`media-icon__label`,children:By})]})})}),y(Zy,{className:`media-surface media-tooltip`,children:[`Seek backward `,By,` seconds`]})]}),y(Yy,{side:`top`,children:[F(Xy,{render:F(nb,{seconds:By,className:`media-button--seek`,render:F(vb,{}),children:y(`span`,{className:`media-icon__container`,children:[F(Ey,{className:`media-icon media-icon--seek`}),F(`span`,{className:`media-icon__label`,children:By})]})})}),y(Zy,{className:`media-surface media-tooltip`,children:[`Seek forward `,By,` seconds`]})]})]}),y(`div`,{className:`media-time-controls`,children:[F(sb,{type:`current`,className:`media-time`}),y(cb,{className:`media-slider`,children:[y(lb,{className:`media-slider__track`,children:[F(ub,{className:`media-slider__fill`}),F(db,{className:`media-slider__buffer`})]}),F(fb,{className:`media-slider__thumb`}),F(`div`,{className:`media-surface media-thumbnail media-slider__preview`,children:F(pb,{type:`pointer`,className:`media-time media-thumbnail__time`})})]}),F(sb,{type:`duration`,className:`media-time`})]}),y(`div`,{className:`media-button-group`,children:[y(Yy,{side:`top`,children:[F(Xy,{render:F(ob,{className:`media-button--playback-rate`,render:F(vb,{})})}),F(Zy,{className:`media-surface media-tooltip`,children:`Toggle playback rate`})]}),F(bb,{}),e?.subtitles&&F(yb,{selection:e.subtitles,icon:e.subtitles.selectedId?F(Py,{className:`media-icon`}):F(Fy,{className:`media-icon`})},`subtitles`),e?.audioTracks&&F(yb,{selection:e.audioTracks,icon:F(Ly,{className:`media-icon`})},`audio`),e?.qualityLevels&&F(yb,{selection:e.qualityLevels,icon:F(Ry,{className:`media-icon`})},`quality`),y(Yy,{side:`top`,children:[F(Xy,{render:y(ib,{className:`media-button--pip`,render:F(vb,{}),children:[F(My,{className:`media-icon media-icon--pip-enter`}),F(Ny,{className:`media-icon media-icon--pip-exit`})]})}),F(Zy,{className:`media-surface media-tooltip`})]}),y(Yy,{side:`top`,children:[F(Xy,{render:y(ab,{className:`media-button--fullscreen`,render:F(vb,{}),children:[F(Ay,{className:`media-icon media-icon--fullscreen-enter`}),F(jy,{className:`media-icon media-icon--fullscreen-exit`})]})}),F(Zy,{className:`media-surface media-tooltip`})]})]})]})}),F(`div`,{className:`media-overlay`}),F(hb,{keys:`Space`,action:`togglePaused`}),F(hb,{keys:`k`,action:`togglePaused`}),F(hb,{keys:`m`,action:`toggleMuted`}),F(hb,{keys:`f`,action:`toggleFullscreen`}),F(hb,{keys:`i`,action:`togglePictureInPicture`}),F(hb,{keys:`ArrowRight`,action:`seekStep`,value:5}),F(hb,{keys:`ArrowLeft`,action:`seekStep`,value:-5}),F(hb,{keys:`l`,action:`seekStep`,value:10}),F(hb,{keys:`j`,action:`seekStep`,value:-10}),F(hb,{keys:`ArrowUp`,action:`volumeStep`,value:.05}),F(hb,{keys:`ArrowDown`,action:`volumeStep`,value:-.05}),F(hb,{keys:`0-9`,action:`seekToPercent`}),F(hb,{keys:`Home`,action:`seekToPercent`,value:0}),F(hb,{keys:`End`,action:`seekToPercent`,value:100}),F(hb,{keys:`>`,action:`speedUp`}),F(hb,{keys:`<`,action:`speedDown`}),F(gb,{type:`tap`,action:`togglePaused`,pointer:`mouse`,region:`center`}),F(gb,{type:`tap`,action:`toggleControls`,pointer:`touch`}),F(gb,{type:`doubletap`,action:`seekStep`,value:-10,region:`left`}),F(gb,{type:`doubletap`,action:`toggleFullscreen`,region:`center`}),F(gb,{type:`doubletap`,action:`seekStep`,value:10,region:`right`})]});l();var{Provider:Sb}=Md({features:Lu}),Cb=e=>`media`in e?e:{media:e},wb=({remote:e,frame:t,adapter:n})=>{let r=mc();return m(()=>{if(!r||!e||!t)return;let i=n?n(e,t):e;if(!i)return;let a=Cb(i);r(a.media);let o=oe(a.media);return()=>{o(),r(null),a.dispose?.()}},[e,t,n,r]),null},Tb=D`
|
|
1288
|
+
`,My=({url:e})=>{let[t,n]=h(`detecting`),[r,i]=h(null),[a,s]=h(null),[c,l]=h(!0),[u,d]=h(!1),[f,g]=h(),[_,v]=h(null),[x,S]=h(0),[C,w]=h(0),[T,E]=h(!1),[D,k]=h(!1),A=o(null),j=o(null),[ee,M]=h(!1),N=o(!1),[P,I]=h(),[L,te]=h(),re=o(0),ie=o({generation:0,tail:Promise.resolve()}),oe=o(!0),R=p(()=>{let e=re.current+1;return re.current=e,ie.current={generation:e,tail:Promise.resolve()},I(void 0),e},[]),se=p((e,t)=>{if(ie.current.generation!==e)return Promise.reject(Error(`Crunchyroll track operation cancelled`));let n=ie.current,r=n.tail.then(t);return n.tail=r.then(()=>{},()=>{}),r},[]);m(()=>()=>{oe.current=!1,re.current+=1},[]),m(()=>{let e=!1;return Dy().then(t=>{e||n(t)}),()=>{e=!0}},[]),m(()=>{if(!r||t===`detecting`)return;let e=!1;return ae({iframe:r,domains:Sy,permissions:[{category:`evaluation`,reason:`Switch Crunchyroll audio and subtitles, seek the video, and show the seek preview thumbnails`}]}).then(r=>{if(e)return;let i=ne()?`extension`:`cloud`;if(i!==t){n(i);return}s(r)}).catch(t=>{e||(console.error(`Failed to attach Crunchyroll frame`,t),g(t?.message||`Failed to load player`),l(!1))}),()=>{e=!0}},[r,t]),m(()=>{if(!a)return;let n=!1,r=()=>n;return l(!0),g(void 0),d(!1),v(null),R(),(async()=>{if(t===`cloud`){if(await a.goto(e,{waitUntil:`load`}),n)return;let{isLoggedIn:t}=await Oy(a,r);if(n)return;if(!t){l(!1),d(!0);return}if(await a.addStyleTag({content:Cy}),n)return;let i=await Ay(a,r);if(n)return;if(l(!1),!i)throw Error(`The episode did not load a player. It may be unavailable or require a different plan.`);v(i);return}if(await a.goto(e,{waitUntil:`documentstart`}),n||(await a.addStyleTag({content:Cy}),n))return;let{isLoggedIn:i}=await Oy(a,r);if(n)return;if(!i){l(!1),d(!0);return}let o=await Ay(a,r);if(!n){if(l(!1),!o)throw Error(`The episode did not load a player. It may be unavailable or require a different plan.`);v(o)}})().catch(e=>{n||(console.error(`Failed to load Crunchyroll player`,e),g(e?.message||`Failed to load player`),l(!1))}),()=>{n=!0}},[a,e,x,t,R]),m(()=>{if(!a||!_)return;let e=R(),t=!1,n=()=>t||!oe.current||e!==re.current;return(async()=>{let t,r;for(let i=0;i<5&&!n();i+=1){try{if(r=await se(e,()=>Qv(a,n)),t=void 0,n()||(I(r),r.audio&&r.subtitles))return}catch(e){t=e}await new Promise(e=>setTimeout(e,500))}if(!r&&t)throw t})().then(()=>{},e=>{n()||console.warn(`[cr] track discovery failed:`,e)}),()=>{t=!0}},[a,_,R,se]),m(()=>{if(!a||!_)return;let e=!1,t;return xy(a).then(n=>{if(e)return n.dispose();t=n,te(n)},t=>{e||console.warn(`[cr] seek thumbnails unavailable:`,t)}),()=>{e=!0,t?.dispose(),te(void 0)}},[a,_]);let ce=re.current,ue=p((e,t)=>{if(!a||!_)return Promise.reject(Error(`Crunchyroll player is not ready`));let n=()=>!oe.current||ce!==re.current;return se(ce,async()=>{try{let r=await oy(a,_,e,t,n);if(n())throw Error(`Crunchyroll track operation cancelled`);I(r)}catch(e){if(!n())try{let e=await Qv(a,n);n()||I(e)}catch{}throw e}})},[a,_,se,ce]),de=b(()=>P?.subtitles&&{selection:{...P.subtitles,select:e=>ue(`subtitles`,e)}},[P?.subtitles,ue]),fe=b(()=>P?.audio&&{selection:{...P.audio,select:e=>ue(`audio`,e)}},[P?.audio,ue]),z=p(()=>{if(A.current!==null)return;let e=globalThis.open(wy,`_blank`,`width=500,height=700`);if(!e){k(!0),l(!1);return}k(!1),E(!0),j.current=e;let t=setInterval(()=>{e.closed&&(clearInterval(t),A.current===t&&(A.current=null),j.current===e&&(j.current=null),E(!1),S(e=>e+1))},500);A.current=t},[]),pe=p(()=>{s(null),g(void 0),v(null),R(),d(!1),l(!0),w(e=>e+1)},[R]),me=p(()=>{if(N.current)return;N.current=!0;let e=le({url:wy,domains:Sy,isSignedIn:e=>e.locator(`#user-menu-authenticated`).exists(),onSignInPage:Ty});k(!1),M(!0),e.then(e=>{if(oe.current){if(e===`blocked`){k(!0);return}if(e===`unsupported`){g(`The Crunchyroll sign-in window could not be opened here.`);return}if(e===`authed`){pe();return}d(!1),l(!0),S(e=>e+1)}},e=>{oe.current&&(console.error(`Crunchyroll sign-in window failed`,e),g(e?.message||`The sign-in window failed`))}).finally(()=>{N.current=!1,oe.current&&M(!1)})},[pe]);m(()=>()=>{A.current!==null&&(clearInterval(A.current),A.current=null)},[]),m(()=>{A.current!==null&&(clearInterval(A.current),A.current=null,E(!1)),k(!1)},[e]);let he=p(()=>{j.current!==null&&(j.current.close(),j.current=null),A.current!==null&&(clearInterval(A.current),A.current=null),k(!1),E(!1),pe()},[pe]),ge=(c||f||D||u)&&y(`div`,{className:`overlay`,children:[u&&!f&&!D&&y(O,{children:[`You need to be logged in to Crunchyroll to watch this content.`,t===`extension`?F(`button`,{className:`login-button`,onClick:z,disabled:T,children:T?`Finish signing in the popup...`:`Open Crunchyroll Login Page`}):y(O,{children:[F(`button`,{className:`login-button`,onClick:me,disabled:ee,children:ee?`Finish signing in the window...`:`Sign in to Crunchyroll`}),F(`span`,{className:`login-note`,children:`Sign-in happens in a window served through FKN, so your browser will not autofill saved passwords or offer passkeys there.`})]})]}),D&&!f&&y(O,{children:[`The login popup was blocked. Allow popups for this page and try again.`,F(`button`,{className:`login-button`,onClick:t===`extension`?z:me,children:`Open Crunchyroll Login Page`})]}),f&&y(O,{children:[f,F(`button`,{className:`login-button`,onClick:he,children:`Retry`})]}),c&&!f&&!u&&`Loading Crunchyroll player...`]});return y(`div`,{css:jy,children:[t!==`detecting`&&F(ly,{remote:_,frame:a,subtitles:de,audioTracks:fe,thumbnails:L,children:F(`iframe`,{ref:i,className:`cr-frame`,referrerPolicy:`no-referrer`,allow:`encrypted-media; autoplay; fullscreen;`},`${t}-${C}`)}),ge]})},Ny=e=>e,Py=Ny(({className:e,children:t})=>F(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:18,height:18,fill:`none`,"aria-hidden":`true`,className:e,children:t})),Fy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`m14.051 10.723-7.985 4.964a1.98 1.98 0 0 1-2.758-.638A2.06 2.06 0 0 1 3 13.964V4.036C3 2.91 3.895 2 5 2c.377 0 .747.109 1.066.313l7.985 4.964a2.057 2.057 0 0 1 .627 2.808c-.16.257-.373.475-.627.637`})})),Iy=Ny(({className:e})=>y(Py,{className:e,children:[F(`rect`,{width:5,height:14,x:2,y:2,fill:`currentColor`,rx:1.75}),F(`rect`,{width:5,height:14,x:11,y:2,fill:`currentColor`,rx:1.75})]})),Ly=Ny(({className:e})=>y(Py,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M9 17a8 8 0 0 1-8-8h2a6 6 0 1 0 1.287-3.713l1.286 1.286A.25.25 0 0 1 5.396 7H1.25A.25.25 0 0 1 1 6.75V2.604a.25.25 0 0 1 .427-.177l1.438 1.438A8 8 0 1 1 9 17`}),F(`path`,{fill:`currentColor`,d:`m11.61 9.639-3.331 2.07a.826.826 0 0 1-1.15-.266.86.86 0 0 1-.129-.452V6.849C7 6.38 7.374 6 7.834 6c.158 0 .312.045.445.13l3.331 2.071a.858.858 0 0 1 0 1.438`})]})),Ry=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M1 9c0 2.21.895 4.21 2.343 5.657l1.414-1.414a6 6 0 1 1 8.956-7.956l-1.286 1.286a.25.25 0 0 0 .177.427h4.146a.25.25 0 0 0 .25-.25V2.604a.25.25 0 0 0-.427-.177l-1.438 1.438A8 8 0 0 0 1 9`})})),zy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M.714 6.008h3.072l4.071-3.857c.5-.376 1.143 0 1.143.601V15.28c0 .602-.643.903-1.143.602l-4.071-3.858H.714c-.428 0-.714-.3-.714-.752V6.76c0-.451.286-.752.714-.752M14.5 7.586l-1.768-1.768a1 1 0 1 0-1.414 1.414L13.085 9l-1.767 1.768a1 1 0 0 0 1.414 1.414l1.768-1.768 1.768 1.768a1 1 0 0 0 1.414-1.414L15.914 9l1.768-1.768a1 1 0 0 0-1.414-1.414z`})})),By=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M.714 6.008h3.072l4.071-3.857c.5-.376 1.143 0 1.143.601V15.28c0 .602-.643.903-1.143.602l-4.071-3.858H.714c-.428 0-.714-.3-.714-.752V6.76c0-.451.286-.752.714-.752m10.568.59a.91.91 0 0 1 0-1.316.91.91 0 0 1 1.316 0c1.203 1.203 1.47 2.216 1.522 3.208q.012.255.011.51c0 1.16-.358 2.733-1.533 3.803a.7.7 0 0 1-.298.156c-.382.106-.873-.011-1.018-.156a.91.91 0 0 1 0-1.316c.57-.57.995-1.551.995-2.487 0-.944-.26-1.667-.995-2.402`})})),Vy=Ny(({className:e})=>y(Py,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M15.6 3.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4C15.4 5.9 16 7.4 16 9s-.6 3.1-1.8 4.3c-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7`}),F(`path`,{fill:`currentColor`,d:`M.714 6.008h3.072l4.071-3.857c.5-.376 1.143 0 1.143.601V15.28c0 .602-.643.903-1.143.602l-4.071-3.858H.714c-.428 0-.714-.3-.714-.752V6.76c0-.451.286-.752.714-.752m10.568.59a.91.91 0 0 1 0-1.316.91.91 0 0 1 1.316 0c1.203 1.203 1.47 2.216 1.522 3.208q.012.255.011.51c0 1.16-.358 2.733-1.533 3.803a.7.7 0 0 1-.298.156c-.382.106-.873-.011-1.018-.156a.91.91 0 0 1 0-1.316c.57-.57.995-1.551.995-2.487 0-.944-.26-1.667-.995-2.402`})]})),Hy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M9.57 3.617A1 1 0 0 0 8.646 3H4c-.552 0-1 .449-1 1v4.646a.996.996 0 0 0 1.001 1 1 1 0 0 0 .706-.293l4.647-4.647a1 1 0 0 0 .216-1.089m4.812 4.812a1 1 0 0 0-1.089.217l-4.647 4.647a.998.998 0 0 0 .708 1.706H14c.552 0 1-.449 1-1V9.353a1 1 0 0 0-.618-.924`})})),Uy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M7.883 1.93a.99.99 0 0 0-1.09.217L2.146 6.793A.998.998 0 0 0 2.853 8.5H7.5c.551 0 1-.449 1-1V2.854a1 1 0 0 0-.617-.924m7.263 7.57H10.5c-.551 0-1 .449-1 1v4.646a.996.996 0 0 0 1.001 1.001 1 1 0 0 0 .706-.293l4.646-4.646a.998.998 0 0 0-.707-1.707z`})})),Wy=Ny(({className:e})=>y(Py,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M13 2a4 4 0 0 1 4 4v2.035A3.5 3.5 0 0 0 16.5 8H15V6.273C15 5.018 13.96 4 12.679 4H4.32C3.04 4 2 5.018 2 6.273v5.454C2 12.982 3.04 14 4.321 14H6v1.5q0 .255.035.5H4a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4z`}),F(`rect`,{width:10,height:7,x:8,y:10,fill:`currentColor`,rx:2}),F(`path`,{fill:`currentColor`,d:`M7.129 5.547a.6.6 0 0 0-.656.13L3.677 8.473A.6.6 0 0 0 4.102 9.5h2.796c.332 0 .602-.27.602-.602V6.103a.6.6 0 0 0-.371-.556`})]})),Gy=Ny(({className:e})=>y(Py,{className:e,children:[F(`path`,{fill:`currentColor`,d:`M13 2a4 4 0 0 1 4 4v2.036A3.5 3.5 0 0 0 16.5 8H15V6.273C15 5.018 13.96 4 12.679 4H4.32C3.04 4 2 5.018 2 6.273v5.454C2 12.982 3.04 14 4.321 14H6v1.5q0 .255.036.5H4a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4z`}),F(`rect`,{width:10,height:7,x:8,y:10,fill:`currentColor`,rx:2}),F(`path`,{fill:`currentColor`,d:`M4.871 10.454a.6.6 0 0 0 .656-.131l2.796-2.796A.6.6 0 0 0 7.898 6.5H5.102a.603.603 0 0 0-.602.602v2.795a.6.6 0 0 0 .371.556`})]})),Ky=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M15 2a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3zM4 11a1 1 0 1 0 0 2h5a1 1 0 1 0 0-2zm8 0a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zM4 8a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2zm4 0a1 1 0 0 0 0 2h3a1 1 0 1 0 0-2zm6 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2`})})),qy=Ny(({className:e})=>y(Py,{className:e,children:[F(`rect`,{width:16,height:12,x:1,y:3,stroke:`currentColor`,strokeWidth:2,rx:3}),F(`rect`,{width:3,height:2,x:3,y:8,fill:`currentColor`,rx:1}),F(`rect`,{width:2,height:2,x:13,y:8,fill:`currentColor`,rx:1}),F(`rect`,{width:4,height:2,x:11,y:11,fill:`currentColor`,rx:1}),F(`rect`,{width:5,height:2,x:7,y:8,fill:`currentColor`,rx:1}),F(`rect`,{width:7,height:2,x:3,y:11,fill:`currentColor`,rx:1})]})),Jy=Ny(({className:e})=>F(Py,{className:e,children:y(`g`,{fill:`currentColor`,children:[F(`rect`,{width:2,height:5,x:8,y:.5,opacity:.5,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:2,height:5,x:12.243,y:2.257,opacity:.45,rx:1,transform:`rotate(45 13.243 4.757)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.125s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:12.5,y:8,opacity:.4,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0.25s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:10.743,y:12.243,opacity:.35,rx:1,transform:`rotate(45 13.243 13.243)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.375s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:2,height:5,x:8,y:12.5,opacity:.3,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0.5s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:2,height:5,x:3.757,y:10.743,opacity:.25,rx:1,transform:`rotate(45 4.757 13.243)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.625s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:.5,y:8,opacity:.15,rx:1,children:F(`animate`,{attributeName:`opacity`,begin:`0.75s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})}),F(`rect`,{width:5,height:2,x:2.257,y:3.757,opacity:.1,rx:1,transform:`rotate(45 4.757 4.757)`,children:F(`animate`,{attributeName:`opacity`,begin:`0.875s`,calcMode:`linear`,dur:`1s`,repeatCount:`indefinite`,values:`1;0`})})]})})),Yy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M9 2a1 1 0 0 1 1 1v12a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1zm4 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1zM5 5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V6a1 1 0 0 1 1-1zm8 4a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1zM5 9a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1z`})})),Xy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M3 5a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1zm0 4a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1zm1 3a1 1 0 1 0 0 2h6a1 1 0 1 0 0-2H4z`})})),Zy=Ny(({className:e})=>F(Py,{className:e,children:F(`path`,{fill:`currentColor`,d:`M14.53 4.53a.75.75 0 0 0-1.06-1.06L7 9.94 4.53 7.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l7-7z`})}));l();var Qy=10,$=e=>e,$y=$(mm.Root),eb=$(sm),tb=$(Sm.Root),nb=$(om.Popup),rb=$(om.Title),ib=$(om.Close),ab=$(Sm.Description),ob=$(Sh.Provider),sb=$(Sh.Root),cb=$(Sh.Trigger),lb=$(Sh.Popup),ub=$(Um.Root),db=$(Um.Trigger),fb=$(Um.Popup),pb=$(Nm),mb=$(Wm),hb=$(jm),gb=$(Mm),_b=$(Cm),vb=$(Pm),yb=$(sh.Value),bb=$(uh.Root),xb=$(rh.Track),Sb=$(rh.Fill),Cb=$(rh.Buffer),wb=$(rh.Thumb),Tb=$(rh.Value),Eb=$(Th.Root),Db=$(km),Ob=$(Tm),kb=$(Ad),Ab=({className:e,...t})=>F(`button`,{type:`button`,className:`media-button media-button--subtle media-button--icon${e?` ${e}`:``}`,...t}),jb=({selection:e,icon:t})=>{let[n,r]=h(!1),[i,a]=h(!1),[o,s]=h(!1);m(()=>s(!1),[e.selectedId]);let c=[...e.offLabel?[{id:null,label:e.offLabel}]:[],...e.options],l=t=>{if(t===e.selectedId){r(!1);return}s(!1),a(!0),Promise.resolve().then(()=>e.onSelect(t)).then(()=>r(!1)).catch(t=>{console.warn(`[player] ${e.label} selection failed:`,t),s(!0)}).finally(()=>a(!1))};return y(ub,{open:n,onOpenChange:e=>r(e),children:[F(db,{render:F(Ab,{className:`media-button--menu${o?` media-button--error`:``}`,"aria-label":e.label}),children:t}),F(fb,{className:`media-surface media-popover media-popover--menu`,children:y(`div`,{className:`stub-menu`,role:`menu`,"aria-label":e.label,children:[F(`div`,{className:`stub-menu__heading`,children:e.label}),c.map(t=>{let n=t.id===e.selectedId;return y(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":n,className:`stub-menu__item${n?` stub-menu__item--active`:``}`,disabled:i||`disabled`in t&&t.disabled,onClick:()=>l(t.id),children:[F(`span`,{className:`stub-menu__check`,children:n?F(Zy,{className:`media-icon`}):null}),F(`span`,{className:`stub-menu__label`,children:t.label}),`description`in t&&t.description?F(`span`,{className:`stub-menu__description`,children:t.description}):null]},t.id??`__off__`)})]})})]})},Mb=()=>y(ub,{openOnHover:!0,delay:200,closeDelay:100,side:`top`,children:[F(db,{render:y(hb,{className:`media-button--mute`,render:F(Ab,{}),children:[F(zy,{className:`media-icon media-icon--volume-off`}),F(By,{className:`media-icon media-icon--volume-low`}),F(Vy,{className:`media-icon media-icon--volume-high`})]})}),F(fb,{className:`media-surface media-popover media-popover--volume`,children:y(Eb,{className:`media-slider`,orientation:`vertical`,thumbAlignment:`edge`,children:[F(xb,{className:`media-slider__track`,children:F(Sb,{className:`media-slider__fill`})}),F(wb,{className:`media-slider__thumb media-slider__thumb--persistent`})]})})]}),Nb=({capabilities:e,children:t,className:n,...r})=>y(kb,{className:`media-default-skin media-default-skin--video${n?` ${n}`:``}`,...r,children:[t,F(eb,{render:e=>F(`div`,{...e,className:`media-buffering-indicator`,children:F(`div`,{className:`media-surface`,children:F(Jy,{className:`media-icon`})})})}),F(tb,{children:F(nb,{className:`media-error`,children:y(`div`,{className:`media-error__dialog media-surface`,children:[y(`div`,{className:`media-error__content`,children:[F(rb,{className:`media-error__title`,children:`Something went wrong.`}),F(ab,{className:`media-error__description`})]}),F(`div`,{className:`media-error__actions`,children:F(ib,{className:`media-button media-button--primary`,children:`OK`})})]})})}),F($y,{className:`media-surface media-controls`,children:y(ob,{children:[y(`div`,{className:`media-button-group`,children:[y(sb,{side:`top`,children:[F(cb,{render:y(pb,{className:`media-button--play`,render:F(Ab,{}),children:[F(Ly,{className:`media-icon media-icon--restart`}),F(Fy,{className:`media-icon media-icon--play`}),F(Iy,{className:`media-icon media-icon--pause`})]})}),F(lb,{className:`media-surface media-tooltip`})]}),y(sb,{side:`top`,children:[F(cb,{render:F(mb,{seconds:-10,className:`media-button--seek`,render:F(Ab,{}),children:y(`span`,{className:`media-icon__container`,children:[F(Ry,{className:`media-icon media-icon--seek media-icon--flipped`}),F(`span`,{className:`media-icon__label`,children:Qy})]})})}),y(lb,{className:`media-surface media-tooltip`,children:[`Seek backward `,Qy,` seconds`]})]}),y(sb,{side:`top`,children:[F(cb,{render:F(mb,{seconds:Qy,className:`media-button--seek`,render:F(Ab,{}),children:y(`span`,{className:`media-icon__container`,children:[F(Ry,{className:`media-icon media-icon--seek`}),F(`span`,{className:`media-icon__label`,children:Qy})]})})}),y(lb,{className:`media-surface media-tooltip`,children:[`Seek forward `,Qy,` seconds`]})]})]}),y(`div`,{className:`media-time-controls`,children:[F(yb,{type:`current`,className:`media-time`}),y(bb,{className:`media-slider`,children:[y(xb,{className:`media-slider__track`,children:[F(Sb,{className:`media-slider__fill`}),F(Cb,{className:`media-slider__buffer`})]}),F(wb,{className:`media-slider__thumb`}),F(`div`,{className:`media-surface media-thumbnail media-slider__preview`,children:F(Tb,{type:`pointer`,className:`media-time media-thumbnail__time`})})]}),F(yb,{type:`duration`,className:`media-time`})]}),y(`div`,{className:`media-button-group`,children:[y(sb,{side:`top`,children:[F(cb,{render:F(vb,{className:`media-button--playback-rate`,render:F(Ab,{})})}),F(lb,{className:`media-surface media-tooltip`,children:`Toggle playback rate`})]}),F(Mb,{}),e?.subtitles&&F(jb,{selection:e.subtitles,icon:e.subtitles.selectedId?F(Ky,{className:`media-icon`}):F(qy,{className:`media-icon`})},`subtitles`),e?.audioTracks&&F(jb,{selection:e.audioTracks,icon:F(Yy,{className:`media-icon`})},`audio`),e?.qualityLevels&&F(jb,{selection:e.qualityLevels,icon:F(Xy,{className:`media-icon`})},`quality`),y(sb,{side:`top`,children:[F(cb,{render:y(gb,{className:`media-button--pip`,render:F(Ab,{}),children:[F(Wy,{className:`media-icon media-icon--pip-enter`}),F(Gy,{className:`media-icon media-icon--pip-exit`})]})}),F(lb,{className:`media-surface media-tooltip`})]}),y(sb,{side:`top`,children:[F(cb,{render:y(_b,{className:`media-button--fullscreen`,render:F(Ab,{}),children:[F(Hy,{className:`media-icon media-icon--fullscreen-enter`}),F(Uy,{className:`media-icon media-icon--fullscreen-exit`})]})}),F(lb,{className:`media-surface media-tooltip`})]})]})]})}),F(`div`,{className:`media-overlay`}),F(Db,{keys:`Space`,action:`togglePaused`}),F(Db,{keys:`k`,action:`togglePaused`}),F(Db,{keys:`m`,action:`toggleMuted`}),F(Db,{keys:`f`,action:`toggleFullscreen`}),F(Db,{keys:`i`,action:`togglePictureInPicture`}),F(Db,{keys:`ArrowRight`,action:`seekStep`,value:5}),F(Db,{keys:`ArrowLeft`,action:`seekStep`,value:-5}),F(Db,{keys:`l`,action:`seekStep`,value:10}),F(Db,{keys:`j`,action:`seekStep`,value:-10}),F(Db,{keys:`ArrowUp`,action:`volumeStep`,value:.05}),F(Db,{keys:`ArrowDown`,action:`volumeStep`,value:-.05}),F(Db,{keys:`0-9`,action:`seekToPercent`}),F(Db,{keys:`Home`,action:`seekToPercent`,value:0}),F(Db,{keys:`End`,action:`seekToPercent`,value:100}),F(Db,{keys:`>`,action:`speedUp`}),F(Db,{keys:`<`,action:`speedDown`}),F(Ob,{type:`tap`,action:`togglePaused`,pointer:`mouse`,region:`center`}),F(Ob,{type:`tap`,action:`toggleControls`,pointer:`touch`}),F(Ob,{type:`doubletap`,action:`seekStep`,value:-10,region:`left`}),F(Ob,{type:`doubletap`,action:`toggleFullscreen`,region:`center`}),F(Ob,{type:`doubletap`,action:`seekStep`,value:10,region:`right`})]});l();var{Provider:Pb}=Md({features:Lu}),Fb=e=>`media`in e?e:{media:e},Ib=({remote:e,frame:t,adapter:n})=>{let r=mc();return m(()=>{if(!r||!e||!t)return;let i=n?n(e,t):e;if(!i)return;let a=Fb(i);r(a.media);let o=oe(a.media);return()=>{o(),r(null),a.dispose?.()}},[e,t,n,r]),null},Lb=D`
|
|
1289
1289
|
position: absolute;
|
|
1290
1290
|
inset: 0;
|
|
1291
1291
|
border-radius: 0.8rem;
|
|
@@ -1359,7 +1359,7 @@ ${K_}
|
|
|
1359
1359
|
.media-button--error {
|
|
1360
1360
|
color: #f66;
|
|
1361
1361
|
}
|
|
1362
|
-
`,
|
|
1362
|
+
`,Rb=({remote:e,frame:t,adapter:n,capabilities:r,children:i})=>y(Pb,{children:[F(Ib,{remote:e,frame:t,adapter:n}),F(Nb,{capabilities:r,css:Lb,children:i})]}),zb=`[data-uia="timeline"]`,Bb=`[data-uia="video-canvas"]`,Vb=`[data-uia="player"]`,Hb=`Seeks the video to the point you pick on the timeline.`,Ub=`Reveals the player controls so the timeline can be used.`,Wb=140,Gb=2,Kb=12e3,qb=26,Jb=110,Yb={"still-watching":`[data-uia="interrupt-autoplay-continue"], [data-uia="interrupter-title"]`,"next-episode":`[data-uia="next-episode-seamless-button"], [data-uia="next-episode-seamless-button-draining"]`,error:`[data-uia="error-container"], [data-uia="nfp-error"]`},Xb=e=>new Promise(t=>setTimeout(t,e)),Zb=e=>e<0?0:e>1?1:e,Qb=0,$b=()=>{let e=Qb*1.1;return Qb++,{x:.5+Math.cos(e)*.05,y:.5+Math.sin(e)*.05}},ex=(e,t)=>{let n=null,r,i,a=!1,o=async()=>{if(!a){a=!0;try{await Promise.all([t.locator(Bb).ensure(`hover`,{reason:Ub}),t.locator(Vb).ensure(`hover`,{reason:Ub}),t.locator(zb).ensure(`click`,{reason:Hb})])}catch(e){a=!1,console.warn(`[nf] permission request failed:`,e)}}},s=()=>{if(n==null)return;let t=e.currentTime;Number.isFinite(t)&&Math.abs(t-n)<Gb&&(n=null,i&&clearTimeout(i))};e.addEventListener(`timeupdate`,s);let c=async n=>{let r=e.duration;if(!Number.isFinite(r)||r<=0){console.warn(`[nf] seek: duration unknown`,r);return}let i=Zb(n/r);o();let a=t.locator(zb),s=e.paused===!0;if(s)try{await e.play()}catch{}let c=!1;for(let e=0;e<qb;e++){if(e%2==0&&(await t.locator(Bb).hover({position:$b(),reason:Ub}).catch(()=>{}),await t.locator(Vb).hover({position:$b(),reason:Ub}).catch(()=>{})),await a.exists().catch(()=>!1)){c=!0;break}await Xb(Jb)}if(!c){let n=await Promise.all(Object.entries(Yb).map(async([e,n])=>await t.locator(n).exists().catch(()=>!1)?e:``)).then(e=>e.filter(Boolean).join(`, `)).catch(()=>``);if(console.warn(`[nf] seek aborted: controls never revealed${n?` (blocked by ${n})`:``}`),s)try{await e.pause()}catch{}return}if(await a.click({position:{x:i,y:.5},reason:Hb}).catch(e=>console.warn(`[nf] timeline click failed:`,e?.message??e)),s)try{await e.pause()}catch{}};return{media:new Proxy(e,{get(e,t,r){return t===`currentTime`&&n!=null?n:Reflect.get(e,t,r)},set(e,t,a,o){return t===`currentTime`&&typeof a==`number`&&Number.isFinite(a)?(n=a,r&&clearTimeout(r),r=setTimeout(()=>{c(a).catch(e=>console.warn(`[nf] timeline seek failed:`,e))},Wb),i&&clearTimeout(i),i=setTimeout(()=>{n=null},Kb),!0):Reflect.set(e,t,a,o)}}),dispose:()=>{e.removeEventListener(`timeupdate`,s),r&&clearTimeout(r),i&&clearTimeout(i)}}},tx=({remote:e,frame:t,capabilities:n,children:r})=>F(Rb,{remote:e,frame:t,adapter:ex,capabilities:n,children:r});l();var nx=[`netflix.com`,`www.netflix.com`,`nflxvideo.net`,`nflxso.net`,`nflxext.com`,`nflximg.net`,`assets.nflxext.com`],rx=`https://www.netflix.com/login`,ix=`
|
|
1363
1363
|
html, body {
|
|
1364
1364
|
margin: 0 !important;
|
|
1365
1365
|
padding: 0 !important;
|
|
@@ -1409,7 +1409,7 @@ ${K_}
|
|
|
1409
1409
|
height: 100% !important;
|
|
1410
1410
|
object-fit: contain !important;
|
|
1411
1411
|
}
|
|
1412
|
-
`,
|
|
1412
|
+
`,ax=async(e,t=10,n=500)=>{for(let r=0;r<t;r++)try{return await e()}catch(e){if(r===t-1||!(e instanceof Error)||!e.message.includes(`not registered`))throw e;await new Promise(e=>setTimeout(e,n))}throw Error(`unreachable`)},ox=async e=>{for(let t=0;t<50;t++){if(await e.locator(`[data-uia="header"] a[href*="/login"]`).exists())return!1;if(await e.locator(`.watch-video, [data-uia="video-canvas"]`).exists())return!0;await new Promise(e=>setTimeout(e,200))}return!1},sx=async(e,t)=>{for(;!t();){try{if(await e.locator(`video`).exists())return await e.locator(`video`).videoElement()}catch(e){if(e?.name===`LocatorUnsupportedError`)throw e}await new Promise(e=>setTimeout(e,200))}return null},cx=D`
|
|
1413
1413
|
position: relative;
|
|
1414
1414
|
width: 100%;
|
|
1415
1415
|
height: 100%;
|
|
@@ -1457,4 +1457,4 @@ ${K_}
|
|
|
1457
1457
|
background: #c11119;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
`,
|
|
1460
|
+
`,lx={cr:My,nf:({url:e})=>{let[t,n]=h(null),[r,i]=h(null),[a,o]=h(!0),[s,c]=h(!1),[l,u]=h(),[d,f]=h(null),[g,_]=h(0);m(()=>{if(!t)return;let e=!1;return(async()=>{for(let n=0;!e;n++)try{let n=await ae({iframe:t,domains:nx});if(e)return;if(!ne()){u(`Netflix playback currently needs the FKN browser extension.`),o(!1);return}i(n);return}catch(t){if(e)return;if(n>=4){console.error(`Failed to attach Netflix frame`,t),u(t instanceof Error?t.message:`Failed to load player`),o(!1);return}await new Promise(e=>setTimeout(e,300*(n+1)))}})(),()=>{e=!0}},[t]),m(()=>{if(!r)return;let t=!1,n=()=>t;return o(!0),u(void 0),c(!1),f(null),(async()=>{if(await r.goto(e,{waitUntil:`load`}),await ax(()=>r.addStyleTag({content:ix})),t)return;o(!1);let i=await ox(r);if(t)return;if(!i){c(!0);return}let a=await sx(r,n);!t&&a&&f(a)})().catch(e=>{t||(console.error(`Failed to load Netflix player`,e),u(e?.message??`Failed to load player`),o(!1))}),()=>{t=!0}},[r,e,g]);let v=p(()=>{let e=globalThis.open(rx,`_blank`,`width=500,height=700`);if(!e)return;let t=setInterval(()=>{e.closed&&(clearInterval(t),_(e=>e+1))},500)},[]);return y(`div`,{css:cx,children:[F(tx,{remote:d,frame:r,children:F(`iframe`,{ref:n,className:`nf-frame`,referrerPolicy:`no-referrer`,allow:`encrypted-media; autoplay; fullscreen;`})}),(s||l||a)&&y(`div`,{className:`overlay`,children:[s&&y(O,{children:[`You need to be logged in to Netflix to watch this content.`,F(`button`,{className:`login-button`,onClick:v,children:`Open Netflix Login Page`})]}),l&&!s&&l,a&&!l&&!s&&`Loading Netflix player...`]})]})}},ux=e=>lx[e],dx=new URLSearchParams(globalThis.location.search),fx=dx.get(`mediaUri`),px=dx.get(`episodeUri`),mx=dx.get(`sourceUri`),hx=dx.get(`url`),gx=mx?T(mx).origin:void 0,_x=gx?ux(gx):void 0;A(F(()=>!fx||!px||!mx||!hx||!_x?F(`div`,{children:`Unsupported or missing parameters`}):F(_x,{url:hx,mediaUri:fx,episodeUri:px,sourceUri:mx}),{}),document.getElementById(`app`));
|
|
@@ -424,7 +424,7 @@ https://bit.ly/2XbVrpR#`;function Rr(e,t,n){if(!e){var r=t||`Minfied Error #`+n+
|
|
|
424
424
|
gap: 1.2rem;
|
|
425
425
|
padding: 2rem 1.5rem;
|
|
426
426
|
}
|
|
427
|
-
`,Nf=()=>{let[e]=so(yo(J.WATCH)),[t]=so(yo(J.LOGIN_CALLBACK));return e||t?null:A(`footer`,{css:Mf,children:[H(po,{to:Y(J.HOME),className:`wordmark`,onClick:Ec,children:`stub`}),H(po,{to:Y(J.LEGAL),className:`nav-link`,children:`Legal`}),H(po,{to:Y(J.PRIVACY),className:`nav-link`,children:`Privacy`}),A(`span`,{className:`version`,title:`stub v0.0.
|
|
427
|
+
`,Nf=()=>{let[e]=so(yo(J.WATCH)),[t]=so(yo(J.LOGIN_CALLBACK));return e||t?null:A(`footer`,{css:Mf,children:[H(po,{to:Y(J.HOME),className:`wordmark`,onClick:Ec,children:`stub`}),H(po,{to:Y(J.LEGAL),className:`nav-link`,children:`Legal`}),H(po,{to:Y(J.PRIVACY),className:`nav-link`,children:`Privacy`}),A(`span`,{className:`version`,title:`stub v0.0.31, commit 869a06f`,children:[`v`,`0.0.31`,` `,H(`span`,{className:`commit`,children:`869a06f`})]})]})};m();var Pf=R`
|
|
428
428
|
position: fixed;
|
|
429
429
|
inset: 0;
|
|
430
430
|
/* a sibling of the modal's portal rather than a child of it, so it competes at the root and 200
|
package/build/embed.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Stub - Embed</title>
|
|
7
7
|
<style>*{box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0;padding:0}::selection{background:0 0}::selection{background:0 0}html,body{-webkit-tap-highlight-color:transparent;background:#000;width:100%;height:100%;overflow:hidden}#app,#app>div{width:100%;height:100%}#app>div>iframe{width:100%!important;height:100%!important;aspect-ratio:unset!important;border-radius:0!important}</style>
|
|
8
|
-
<script type="module" crossorigin src="./assets/embed-
|
|
8
|
+
<script type="module" crossorigin src="./assets/embed-UGFrxRT1.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/uri-DvH8-88e.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/build-CQLpK1BK.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="./assets/api-CtiKFcK3-DDpRQueA.js">
|
package/build/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Stub</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/main-
|
|
7
|
+
<script type="module" crossorigin src="/assets/main-CJ501JmQ.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="/assets/uri-DvH8-88e.js">
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/build-CQLpK1BK.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/api-CtiKFcK3-DDpRQueA.js">
|
package/build/index.js
CHANGED
|
@@ -12330,14 +12330,14 @@ var Q_ = H`
|
|
|
12330
12330
|
}),
|
|
12331
12331
|
/* @__PURE__ */ Z("span", {
|
|
12332
12332
|
className: "version",
|
|
12333
|
-
title: "stub v0.0.
|
|
12333
|
+
title: "stub v0.0.31, commit 869a06f",
|
|
12334
12334
|
children: [
|
|
12335
12335
|
"v",
|
|
12336
|
-
"0.0.
|
|
12336
|
+
"0.0.31",
|
|
12337
12337
|
" ",
|
|
12338
12338
|
/* @__PURE__ */ X("span", {
|
|
12339
12339
|
className: "commit",
|
|
12340
|
-
children: "
|
|
12340
|
+
children: "869a06f"
|
|
12341
12341
|
})
|
|
12342
12342
|
]
|
|
12343
12343
|
})
|
package/fkn.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"v":0,"app":"fkn:app:173elff365hgaijng4mufbd4zo6lypfskb3zdd5jkpgd4hj4ovjjq","name":"Stub","version":"0.0.
|
|
1
|
+
{"v":0,"app":"fkn:app:173elff365hgaijng4mufbd4zo6lypfskb3zdd5jkpgd4hj4ovjjq","name":"Stub","version":"0.0.31","key":"iScXi3QXmf9WXSFKHIRV6kxihm7Tmy4YRZe9wCdovuQ=","issuedAt":1790376858,"perSource":["npm:@banou/stub"],"contentsDigest":"ZrjX2MRLiaFUh7p42PefTVHJsKkxXpKeuMQVrdb0K6I=","sig":"arkaNUCpMFbV503KSjj3m6aX9tpx+vkCLOY8QGiW6SgoWyioaoUG6tdwK3ezvDAINjUzbLIZgeQJBqgrVlOyCA==","contents":{"name":"@banou/stub","version":"0.0.31","alg":"sha256","files":{"README.md":"UlRX2sBn1TfnBWbCmOoAbyYQ7jYz5xwO1YmpGLIarsY=","build/assets/account-BgpTCUUd.js":"+QWNm7+ZCCcOi6jWCjpSg0c+MFZkYj2GEvfO1EjY7k8=","build/assets/account-wP7U-PeH.js":"qfdpmvf5AHarGirPEwGEF3A0M7c/lXO0mTrsdywdnrE=","build/assets/anime-index-Jbe1K3rX.js":"GX18NEu4KqVsycGt40uiW2kcHF1A9hXPt/pVKrzdSSk=","build/assets/anime-seasons-CVM0BQGM.js":"L6fZ6Qpvlqr/dhdK1nl3Pa51iq4tVu8U6xchCJ/pO84=","build/assets/api-Bh_MpFDA.js":"nndNR3+QpRKpXNOJmtyR2xpXiyzwgeVFTKzPmSyNb7c=","build/assets/api-CtiKFcK3-DDpRQueA.js":"oIlZAVejdms4fpZ0CrORoXSP6d5YHpKB89LHFrYZEbU=","build/assets/build-CQLpK1BK.js":"hKYmEy2EbTZSyHofyGuayYsSf8C1sUd9qWOpP7t6Izs=","build/assets/embed-3a7RYKgR.css":"EuPdgWlK6mGFtnOnlqri0xmDiB/N98ZkSuFJJYccMsY=","build/assets/embed-UGFrxRT1.js":"NnshXz/zOu1rSUAHLpyO3YllQr0g65My8B0/luKDH7Q=","build/assets/frizbee_wasm_bg-FO8dlm9E.wasm":"EbPVSEfqpLjbbYlJez4oFXWj1pxftV//IJXVMjMkxWY=","build/assets/index-D_Wk5pTR.js":"TRHYgKCPQQQjdOVHdRCdw7HlGq+9OPpfT37uCzotFF4=","build/assets/lib-ByuinM2l.js":"RnHLLBzoUD9jyJ7OkC3CV1UCaTMieylk0rEiIYZRoxI=","build/assets/lib-account-CF0gclnF.js":"pxFxTy74A0YwsEwS0N8nry0jqEMSuIVZBQuQPhLYfVE=","build/assets/lib-account-CnUKCNw7.js":"+UkffvBqGmuWkgzBdMIOlxzMraAE559MUH63AJs7Ogo=","build/assets/lib-api-BdPC6S5P.js":"iTbTCU024Gg3DWkf4RbxB1oSHneH8LXTIC68qw1abzw=","build/assets/lib-api-CtiKFcK3-lXOtBAbs.js":"RhvViopigPTf9IUMcFL5ndsW2EGhCCWi7C+52jqAwlY=","build/assets/lib-rolldown-runtime-Cb76FRpK.js":"rbkB5HPusB8/kdOGAO86YoXaWoUoORGeUbc7DQ1plYk=","build/assets/lib-worker-1bjGH68T.js":"XmJFtkPyona0t03nEmhOe6Rf7dtPteiJ1CaXpQWmA70=","build/assets/lib-worker-CiCWGdxI.js":"MX8w2bsztAaWO4K1vAigeNAySLvrRBFpvVTm2DPEE98=","build/assets/lib-worker-anime-index-Jbe1K3rX.js":"GX18NEu4KqVsycGt40uiW2kcHF1A9hXPt/pVKrzdSSk=","build/assets/lib-worker-anime-seasons-CVM0BQGM.js":"L6fZ6Qpvlqr/dhdK1nl3Pa51iq4tVu8U6xchCJ/pO84=","build/assets/lib-worker-index-Bs3gK32M.js":"7OsJ+O+C9PLRMBbx+U4+d4xv9SvJyhP/QSvyOXIa1+0=","build/assets/main-CJ501JmQ.js":"aeH1bJ3GiKnr34dx+rdiAl+MAibU/0KlVCWFo3uDk+Q=","build/assets/main-CSyC6ryz.css":"u8JE9MBZl8EydceHpj+DhPVqHNH466jU+G+FCb3EJhI=","build/assets/remote-CVVOdyaq.js":"XobfVI+OoMFOw2RnQ+vlkeAv+36pUTcM537KkpoRhig=","build/assets/remote-VQoP8ehb.js":"uaBaVvfl6FtbnoGAwgjtkSQnhj+KoZ+Ks2DxmxSn1Z8=","build/assets/sacha_bg-CNH7LeJ_.wasm":"smWtrIBF7AJr+ZplWM15OF/LhD/8/qI1IA2fVj6hCHM=","build/assets/uri-DvH8-88e.js":"JjOiTM8eMVvzaC8nsLEDbkQt8l1ImaoiUrVdwYzzU5M=","build/assets/worker-BivVPB_E.js":"ITW1P9OUt8QbwG6fYmA+KAdO2lmlSPVZ9Mb1TYuaZGQ=","build/assets/worker-BmRu2LRc.js":"8JVyBPp4uwTPJi2cCU2AI31VpVA6xZl7RmqDfv1WIhw=","build/embed.html":"HeylrnxyDlHsV225/iCm4oN3Dz0Rblc+S18CFslmv4w=","build/index.html":"Xxgzbyyor7NlR47h9K9XlT2zqxH/sWDrDGemQ3RyS2A=","build/index.js":"PwOraLac6/ZSrLpdVI99Bn4v4SY5NB7BHNMa6FQ/zEc=","package.json":"EwUXixAWGdMcmdRUQclqP5roV6xvjWyAYBhdTFLtTUk="},"types":{"README.md":"text/markdown","build/assets/account-BgpTCUUd.js":"text/javascript","build/assets/account-wP7U-PeH.js":"text/javascript","build/assets/anime-index-Jbe1K3rX.js":"text/javascript","build/assets/anime-seasons-CVM0BQGM.js":"text/javascript","build/assets/api-Bh_MpFDA.js":"text/javascript","build/assets/api-CtiKFcK3-DDpRQueA.js":"text/javascript","build/assets/build-CQLpK1BK.js":"text/javascript","build/assets/embed-3a7RYKgR.css":"text/css","build/assets/embed-UGFrxRT1.js":"text/javascript","build/assets/frizbee_wasm_bg-FO8dlm9E.wasm":"application/wasm","build/assets/index-D_Wk5pTR.js":"text/javascript","build/assets/lib-ByuinM2l.js":"text/javascript","build/assets/lib-account-CF0gclnF.js":"text/javascript","build/assets/lib-account-CnUKCNw7.js":"text/javascript","build/assets/lib-api-BdPC6S5P.js":"text/javascript","build/assets/lib-api-CtiKFcK3-lXOtBAbs.js":"text/javascript","build/assets/lib-rolldown-runtime-Cb76FRpK.js":"text/javascript","build/assets/lib-worker-1bjGH68T.js":"text/javascript","build/assets/lib-worker-CiCWGdxI.js":"text/javascript","build/assets/lib-worker-anime-index-Jbe1K3rX.js":"text/javascript","build/assets/lib-worker-anime-seasons-CVM0BQGM.js":"text/javascript","build/assets/lib-worker-index-Bs3gK32M.js":"text/javascript","build/assets/main-CJ501JmQ.js":"text/javascript","build/assets/main-CSyC6ryz.css":"text/css","build/assets/remote-CVVOdyaq.js":"text/javascript","build/assets/remote-VQoP8ehb.js":"text/javascript","build/assets/sacha_bg-CNH7LeJ_.wasm":"application/wasm","build/assets/uri-DvH8-88e.js":"text/javascript","build/assets/worker-BivVPB_E.js":"text/javascript","build/assets/worker-BmRu2LRc.js":"text/javascript","build/embed.html":"text/html","build/index.html":"text/html","build/index.js":"text/javascript","package.json":"application/json"}},"keys":{"app":"fkn:app:173elff365hgaijng4mufbd4zo6lypfskb3zdd5jkpgd4hj4ovjjq","serial":1790278160679,"issuedAt":1790278160,"founder":{"kind":"fkn","seed":"f2qit1bapv9x9cvvve101bl0w3"},"signer":"fkn-1","name":"Stub","members":[{"key":"iScXi3QXmf9WXSFKHIRV6kxihm7Tmy4YRZe9wCdovuQ=","since":1790278160}],"sig":"+0lWhiIjTUH2utYkxtt2kQqTdrrG6rMLW4K21SDNAMyDi5RDdIZR+HtJ2S87hYatNUksZA3gQVHLYjJGgSdWAg=="}}
|