PageSourceSearch

https://rasenwatch.vercel.app/_next/static/chunks/279-9f8a9b373cc66d9c.js

js rasenwatch.vercel.app collected 2026-10-03 07:37:15 UTC 5,955 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[279],{279:(e,t,n)=>{n.d(t,{$$:()=>y,$W:()=>z,Fu:()=>u,HB:()=>f,IA:()=>m,Ip:()=>w,LI:()=>p,Ml:()=>g,TL:()=>v,_q:()=>c,dJ:()=>s,iR:()=>E,o_:()=>b,xi:()=>d,yS:()=>h});var r=n(2139),l=n(4667),i=n(5195),o=n(7895);let u="all";function a(e,t){if("string"!=typeof t)return;let n=t.trim();if(""!==n)for(let t=0;t<e.length;t+=1){let r=e[t].extraEpisodes;if(Array.isArray(r)){for(let e of r)if("string"==typeof e&&e.trim()===n)return t}}}function s(e,t){let n,l=a(e,t);if(void 0!==l)return l;let i=(0,r.e)(t);if(null===i)return;let o=-1/0;for(let t=0;t<e.length;t+=1){let r=e[t].fromEp;"number"==typeof r&&Number.isFinite(r)&&r<=i&&r>=o&&(n=t,o=r)}return n}function d(e,t){let n=a(e,t);if(void 0!==n)return n;if(!(0,l.bz)(String(null!=t?t:"")))return;let i=(0,r.e)(t);if(null===i)return;let o=s(e,t);if(void 0===o)return;let u=e[o].toEp;if(!("number"==typeof u&&Number.isFinite(u))||!(i>u)||!Number.isInteger(i)&&Math.floor(i)<=u)return o}function f(e,t){let n=d(e,t);if(void 0!==n)return"s:".concat(n);let r=s(e,t);return void 0===r?"u:none":"u:".concat(r)}function p(e,t,n){if(0===e.length&&(!n||0===n.size))return{unassignedExtra:[],belowFirstFromEp:[],supplyHoles:[],beyondEnd:[]};let i=new Set(null!=n?n:[]);if(!n)for(let t of e){var o;for(let e of null!=(o=t.extraEpisodes)?o:[]){let t=e.trim();""!==t&&i.add(t)}}let u=[...e].sort((e,t)=>e.fromEp-t.fromEp),a=u.length>0?u[0].fromEp:null,f=[],p=[];for(let e of t){let t=e.trim();if(""===t||i.has(t))continue;let n=(0,r.e)(t);if(null===n||!(0,l.bz)(t)){f.push(t);continue}null!==a&&n<a&&p.push(t)}let c=function(e,t){let n=[],r=[];if(0===e.length)return{holes:n,beyondEnd:r};let i=e.length-1;for(let l of t){let t=s(e,l);void 0!==t&&void 0===d(e,l)&&(t<i?n.push(l):r.push(l))}return n.sort(l.Jw),r.sort(l.Jw),{holes:n,beyondEnd:r}}(u,t);return{unassignedExtra:f,belowFirstFromEp:p,supplyHoles:c.holes.filter(e=>(0,l.bz)(e)),beyondEnd:c.beyondEnd.filter(e=>(0,l.bz)(e))}}function c(e,t){let n=new Map;if(0===e.length)return{perSeason:[],gapLabels:[],indexByLabel:n};let r=g(e),i=p(e,t),o=new Set([...i.unassignedExtra,...i.belowFirstFromEp,...i.supplyHoles,...i.beyondEnd]),u=new Map,a=[];for(let r of t){var d;let t=r.trim();if(""===t)continue;if(o.has(t)){a.push(t);continue}let l=s(e,t);if(void 0===l){a.push(t);continue}u.set(l,(null!=(d=u.get(l))?d:0)+1),n.set(t,l)}return a.sort(l.Jw),{perSeason:[...u.entries()].sort((e,t)=>e[0]-t[0]).map(e=>{let[t,n]=e;return{index:t,label:r[t],count:n}}),gapLabels:a,indexByLabel:n}}function h(e,t,n){if(null===t)return!0;let r=s(e,n);return void 0===r||t.has((0,o.G9)(e[r].name))}function m(e,t){let n=d(e,t);return void 0===n?void 0:e[n].ids}function g(e){return e.map(e=>("string"==typeof e.label?e.label.trim():"")||e.name.trim())}function b(e,t){if(!t||0===t.length)return e.map(e=>({...e}));let n=g(t);return e.map(e=>{let r=s(t,(0,l.Si)(e));return void 0===r?{...e}:{...e,epSeasonIndex:r,epSeasonLabel:n[r]}})}function v(e,t){return"".concat(e," (").concat(t,"エピソード)")}function E(e){let t=new Map,n=0;for(let l of e){let e=l.epSeasonIndex;if("number"!=typeof e||!Number.isInteger(e)||e<0){n+=1;continue}let i=t.get(e);if(i)i.count+=1,!i.label&&l.epSeasonLabel&&(i.label=l.epSeasonLabel);else{var r;t.set(e,{label:null!=(r=l.epSeasonLabel)?r:"",count:1})}}return{groups:[...t.entries()].sort((e,t)=>e[0]-t[0]).map(e=>{let[t,{label:n,count:r}]=e;return{key:"s".concat(t),index:t,label:n||"シーズン".concat(t+1),count:r}}),unassignedCount:n}}function z(e,t){return t===u||e.groups.some(e=>e.key===t)}function w(e,t){return t===u?e:e.filter(e=>"s".concat(e.epSeasonIndex)===t)}function y(e){var t,n,r,l,o,a,s;let d=function(e){var t;let{episodes:n,groups:r}=e;if(0===r.groups.length)return u;let l=e=>{let t="s".concat(e.epSeasonIndex);return z(r,t)?t:u},o=(0,i.Ui)([...n]),a=new Set(null!=(t=e.highlightedEpisodeNumbers)?t:[]),s=o.find(t=>{var n,r;return null!=(r=null==(n=e.highlightedEpisodeIds)?void 0:n.has(t.id))&&r||a.size>0&&!!t.EpisodeNumber&&a.has(t.EpisodeNumber)});if(s)return l(s);let d=o.find(t=>{var n,r;return null!=(r=null==(n=e.newEpisodeIds)?void 0:n.has(t.id))&&r});if(d)return l(d);if(e.lastWatchedEpisodeId){let t=n.find(t=>
1t.id===e.lastWatchedEpisodeId);if(t)return l(t)}return r.groups[0].key}(e);return!e.lastWatchedEpisodeId&&null!=(l=e.hasWatchHistory)&&l?(null!=(o=null==(t=e.highlightedEpisodeNumbers)?void 0:t.length)?o:0)>0||(null!=(a=null==(n=e.highlightedEpisodeIds)?void 0:n.size)?a:0)>0||(null!=(s=null==(r=e.newEpisodeIds)?void 0:r.size)?s:0)>0?d:u:d}},7895:(e,t,n)=>{n.d(t,{A:()=>r,B$:()=>o,FZ:()=>l,G9:()=>i,Qs:()=>s,Ws:()=>a,hu:()=>u,nW:()=>d});let r=500,l=100,i=e=>e.normalize("NFKC").trim(),o=e=>0!==e.length&&!(e.length>l)&&!RegExp("[\\p{Cc}\\p{Cf}]","u").test(e),u=/['"<>`\\\s]/,a=e=>/^[a-zA-Z0-9_-]{11}$/.test(e),s=e=>{if(!e||"-"===e)return!0;let t=e.startsWith("-http")?e.slice(1):e;if((e=>e.length>2048||u.test(e))(t))return!1;let n=(e=>{if(!e)return null;try{return new URL(e)}catch(t){try{return new URL("https://".concat(e))}catch(e){return null}}})(t);if(!n||"https:"!==n.protocol)return!1;let r=n.hostname.replace(/^www\./,"");if(!(r.endsWith(".amazon.com")||"amazon.com"===r||r.endsWith(".amazon.co.jp")||"amazon.co.jp"===r||r.endsWith(".amazon.co.uk")||"amazon.co.uk"===r||r.endsWith(".amazon.de")||"amazon.de"===r||"primevideo.com"===r||r.endsWith(".primevideo.com")||"watch.amazon.co.jp"===r||"watch.amazon.com"===r)||!/^\/[A-Za-z0-9_=\-./%]*$/.test(n.pathname))return!1;if(/\/(dp|detail|gp\/video|gp\/video\/detail|gp\/product)\/([A-Z0-9]{8,40}|amzn1\.dv\.gti\.[a-f0-9-]{20,80})(\/|$)/.test(n.pathname))return!0;if("/detail"===n.pathname){let e=n.searchParams.get("gti");if(e&&/^amzn1\.dv\.gti\.[a-f0-9-]{20,80}$/.test(e))return!0}return!1},d=e=>{let t=e=>{let t=(null!=e?e:"").trim();return""!==t&&"-"!==t&&"undefined"!==t};return t(e.netflixId)||t(e.amazonUrl)||t(e.danimeId)||t(e.unextId)||t(e.unextSid)||t(e.dmmtvUrl)}}}]);

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.