PageSourceSearch

https://web.flickthreads.com/_next/static/chunks/3_9nb6plpxq_c.js

js flickthreads.com collected 2026-09-25 03:40:47 UTC 25,102 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e18122de-0254-5550-8349-510dea79e57f")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,720993,e=>{"use strict";var t=e.i(359655);let n=t.createContext(!1),r=n.Provider;e.s(["IsRestoringProvider",0,r,"useIsRestoring",0,()=>t.useContext(n)])},939299,e=>{"use strict";var t=e.i(359655),n=e.i(344204);let r=t.createContext(void 0);e.s(["QueryClientContext",0,r,"QueryClientProvider",0,({client:e,children:i})=>(t.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,n.jsx)(r.Provider,{value:e,children:i})),"useQueryClient",0,e=>{let n=t.useContext(r);if(e)return e;if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n}])},388761,e=>{"use strict";var t=e.i(552731);let n=t.z.object({titleId:t.z.uuid(),episodeId:t.z.uuid().nullable().default(null)}),r=t.z.object({state:t.z.enum(["connected","reconnect_required"]),revision:t.z.number().int().nonnegative()}),i=t.z.object({target:n,runId:t.z.uuid(),sessionId:t.z.uuid().nullable(),position:t.z.number().nonnegative(),duration:t.z.number().positive().nullable(),completed:t.z.boolean(),suppressed:t.z.boolean(),revision:t.z.number().int(),lastActivityAt:t.z.string().nullable(),watchEventId:t.z.uuid().nullable()});e.s(["playbackAccessSchema",0,r,"playbackProgressSchema",0,i,"playbackTargetSchema",0,n])},307631,e=>{"use strict";let t=new Set(["co creator","creator","original creator","series creator","show creator","television creator"]),n=new Set(["co director","director","episode director","series director","television director"]),r=new Set(["creation","creator","production","writing"]);function i(e){let i=s(e.role),l=s(e.department);return t.has(i)&&r.has(l)?"creator":n.has(i)&&"directing"===l?"director":null}function l(e,t){return a(e)-a(t)||(t.episodeCount??-1)-(e.episodeCount??-1)||o(s(e.name),s(t.name))||o(e.personId,t.personId)}function a(e){return+("creator"!==i(e))}function s(e){return e.trim().toLocaleLowerCase("en-US").replace(/[^a-z0-9]+/g," ").trim()}function o(e,t){return e<t?-1:+(e>t)}e.s(["creatorDirectorKind",0,i,"selectCreatorDirectorCredits",0,function(e){let t=new Map;for(let l of e){var n,r;if(!i(l))continue;let e=t.get(l.personId);(!e||0>(n=l,r=e,a(n)-a(r)||(r.episodeCount??-1)-(n.episodeCount??-1)||o(s(n.role),s(r.role))||o(s(n.department),s(r.department))))&&t.set(l.personId,l)}return[...t.values()].sort(l)}])},938554,e=>{"use strict";var t=e.i(172413),n=e.i(872027),r=e.i(465411);async function i(e,r){let i;try{i=await (0,n.apiFetch)(`/api/v1/auth/${e}`,{method:"POST",credentials:"include",headers:void 0===r?void 0:{"content-type":"application/json"},body:void 0===r?void 0:JSON.stringify(r)})}catch(e){throw(0,t.apiTransportFailure)(e)}if(!i.ok){let e=await i.json().catch(()=>null);throw new t.ApiClientError(e?.message??e?.error?.message??"Authentication could not be completed.",i.status,i.status>=500||429===i.status)}return i}async function l(e,n,a="google"){let s,o=await i("sign-in/social",{callbackURL:(0,r.publicWebUrl)(e),disableRedirect:!0,errorCallbackURL:(0,r.publicWebUrl)(n),provider:a}),c=await o.json().catch(()=>null);if(!c||"string"!=typeof c.url)throw new t.ApiClientError("Google sign-in could not be started.",502,!0);try{s=new URL(c.url)}catch{throw new t.ApiClientError("Google sign-in returned an invalid destination.",502,!1)}if("https:"!==s.protocol||s.username||s.password)throw new t.ApiClientError("Google sign-in returned an invalid destination.",502,!1);return s.href}async function a(){let e=await i("sign-out");return await (0,r.clientRuntime)().clearSession?.(),e}e.i(296384),e.s(["requestPasswordReset",0,function(e){return i("request-password-reset",{email:e,redirectTo:new URL((0,r.publicWebUrl)("/auth/reset-password"),window.location.origin).href})},"resetPassword",0,function(e,t){return i("reset-password",{newPassword:t,token:e})},"signInWithEmail",0,function(e,t,n){return i("sign-in/email",{email:e,password:t,rememberMe:n})},"signInWithGoogle",0,l,"signOutSession",0,a,"signUpWithEmail",0,function(e,t,n){return i("sign-up/email",{callbackURL:(0,r.publicWebUrl)("/auth/verified"),name:e,email:t,password:n})}])},275560,e=>{"use strict";e.s(["createClientId",0,function(){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint8Array(16));e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=[...e].map(e=>e.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}])},172413,e=>{"use strict";var t=e.i(872027),n=e.i(636419);
3class r extends Error{status;retryable;requestId;constructor(e,t,n,r){super(e),this.status=t,this.retryable=n,this.requestId=r}}async function i(e,n){let i;try{let r=new Headers(n?.headers);n?.body===void 0||r.has("content-type")||"u">typeof FormData&&n?.body instanceof FormData||r.set("content-type","application/json"),i=await (0,t.apiFetch)(`/api/v1${e}`,{credentials:"include",...n,headers:r,signal:n?.signal?n.signal:"u">typeof AbortSignal&&"timeout"in AbortSignal?AbortSignal.timeout(3e4):void 0})}catch(e){throw a(e)}if(!i.ok){let e=await i.json().catch(()=>null);throw new r(e?.error?.message??e?.message??"The request could not be completed.",i.status,i.status>=500||429===i.status,i.headers.get("x-request-id")??e?.error?.requestId)}return i}async function l(e,t){let n=await i(e,t);return 204===n.status?null:n.json()}function a(e){let t=e instanceof n.ApiTransportError?e:null;return new r(t?.message??"Couldn’t reach the server. Please try again.",400*(t?.kind==="configuration"),t?.kind!=="configuration")}e.s(["ApiClientError",0,r,"apiRequest",0,l,"apiResponse",0,i,"apiTransportFailure",0,a,"isPermanentReadError",0,function(e){return e instanceof r&&e.status>=400&&e.status<500&&!e.retryable}])},982241,565679,e=>{"use strict";var t=e.i(359655),n=e.i(720993),r=e.i(939299);e.s(["NavigationDataWarmer",0,function({resolve:e,enabled:i=!0,identity:l=null}){let a=(0,r.useQueryClient)(),s=(0,n.useIsRestoring)();return(0,t.useEffect)(()=>{let t;if(s||!i)return;let n=function(e=2,t=8){let n=new Map,r=new Set,i=!1,l=()=>{if(!i)for(;r.size<e&&n.size;){let[e,t]=n.entries().next().value;n.delete(e),r.add(e),Promise.resolve().then(t).catch(()=>void 0).finally(()=>{r.delete(e),l()})}};return{add(e,a){i||r.has(e)||(n.delete(e),n.set(e,a),n.size>t&&n.delete(n.keys().next().value),l())},stop(){i=!0,n.clear()}}}(),r=()=>navigator.onLine&&"hidden"!==document.visibilityState&&!navigator.connection?.saveData,l=t=>{if(!(t instanceof HTMLAnchorElement)||t.download||t.target&&"_self"!==t.target)return null;let n=new URL(t.href,location.href);if(n.origin!==location.origin)return null;let r=`${n.pathname}${n.search}`,i=e(a,r);return i?{key:r,work:i}:null},o=location.pathname,c=new Set,u="u"<typeof IntersectionObserver?null:new IntersectionObserver(e=>{if(r())for(let t of(o!==location.pathname&&(o=location.pathname,c.clear()),e)){if(!t.isIntersecting||t.intersectionRatio<.25||c.size>=12&&!t.target.closest('[role="dialog"]'))continue;let e=l(t.target);!e||c.has(e.key)||(c.add(e.key),n.add(e.key,e.work))}},{threshold:.25}),d=e=>{for(let t of(e.matches("a[href]")&&l(e)&&u?.observe(e),e.querySelectorAll("a[href]")))l(t)&&u?.observe(t)};u&&d(document.body);let h=u?new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)if(e instanceof Element)for(let t of(u.unobserve(e),e.querySelectorAll("a[href]")))u.unobserve(t);for(let e of t.addedNodes)e instanceof Element&&d(e)}}):null;h?.observe(document.body,{childList:!0,subtree:!0});let p=e=>{if(!r())return;let i=l(e.target instanceof Element?e.target.closest("a[href]"):null);i&&(clearTimeout(t),t=setTimeout(()=>n.add(i.key,i.work),80*("pointerover"===e.type)))};for(let e of["pointerover","pointerdown","focusin"])document.addEventListener(e,p,{passive:!0});return()=>{for(let e of(clearTimeout(t),n.stop(),u?.disconnect(),h?.disconnect(),["pointerover","pointerdown","focusin"]))document.removeEventListener(e,p)}},[a,i,l,e,s]),null}],565679),e.s([],982241)},872027,636419,e=>{"use strict";let t,n=new Set(["auth","titles","preferences","ratings","activity","watchlist","subscriptions","lists","comments","threads","discussions","friends","profiles","me","integrations","playback","updates","home","search","catalog","books","devices","notifications"]);function r(e,i,l,a=0,s){let o=e.split("?")[0]?.split("/")[3]??"";try{t?.({area:n.has(o)?o:"other",method:i,kind:l,status:a,online:"u"<typeof navigator?void 0:navigator.onLine,requestId:s})}catch{}}let i={offline:"You’re offline. Your saved changes will retry when you reconnect.",network:"Couldn’t reach the server. Please try again.",timeout:"The server took too long to respond. Please try again.",cancelled:"The request was cancelled.",credentials:"Your saved sign-in could not be accessed. Unlock your device and try again.",configuration:"This request could not be sent. Please update the app and try again."};
3class l extends Error{kind;constructor(e){super(i[e]),this.kind=e,this.name="ApiTransportError"}}function a(e){if(e instanceof l)return e;let t=e instanceof Error||"u">typeof DOMException&&e instanceof DOMException?e.name:"";return new l("TimeoutError"===t?"timeout":"AbortError"===t?"cancelled":"u">typeof navigator&&!navigator.onLine?"offline":"network")}e.s(["ApiTransportError",0,l,"classifyTransportError",0,a,"configureApiDiagnostics",0,function(e){t=e},"reportApiFailure",0,r],636419);let s={origin:""};async function o(e,t={}){let n,i;if(!e.startsWith("/api/v1/")||/[\\\r\n]/.test(e)||!new URL(e,s.origin||"https://relative.invalid").pathname.startsWith("/api/v1/"))throw new l("configuration");let c=new Headers(t.headers);try{n=s.token?await s.token():null}catch{throw r(e,t.method??"GET","credentials"),new l("credentials")}n&&c.set("authorization",`Bearer ${n}`);try{i=await fetch(`${s.origin}${e}`,{...t,headers:c,credentials:s.token?"omit":"include",...s.token?{redirect:"error"}:{}})}catch(i){let n=a(i);throw r(e,t.method??"GET",n.kind),n}i.ok||r(e,t.method??"GET","http",i.status,i.headers.get("x-request-id")??void 0);let u=s.saveToken?i.headers.get("set-auth-token"):null;if(i.ok&&u)try{await s.saveToken?.(u)}catch{throw r(e,t.method??"GET","credentials"),new l("credentials")}return i}e.s(["apiFetch",0,o,"apiOrigin",0,function(){return s.origin}],872027)},5458,466868,142957,e=>{"use strict";var t=e.i(552731);let n=t.z.enum(["minimal","standard","extended"]),r=t.z.object({id:t.z.string().min(1),sha256:t.z.string().regex(/^[a-f0-9]{64}$/),compressedBytes:t.z.number().int().nonnegative(),documentCount:t.z.number().int().nonnegative(),url:t.z.string().url()}).strict(),i=t.z.object({schemaVersion:t.z.number().int().positive(),catalogRevision:t.z.number().int().positive(),locale:t.z.string().min(2),countryCode:t.z.string().length(2),tier:n,minimumClientVersion:t.z.string().min(1),generatedAt:t.z.string().datetime({offset:!0}),chunks:t.z.array(r)}).strict();t.z.object({schemaVersion:t.z.number().int().positive(),fromRevision:t.z.number().int().positive(),toRevision:t.z.number().int().positive(),upserts:t.z.array(t.z.string().min(1)),deletedCanonicalIds:t.z.array(t.z.string().min(1)),chunks:t.z.array(r)}).strict().refine(e=>e.toRevision>e.fromRevision,{message:"delta revision must move forward",path:["toRevision"]});let l=t.z.object({canonicalId:t.z.string().min(1),mediaType:t.z.enum(["movie","show"]),primaryTitle:t.z.string().min(1),originalTitle:t.z.string().nullable(),alternateTitles:t.z.array(t.z.string()),releaseYear:t.z.number().int().min(1870).max(3e3).nullable(),primaryLanguage:t.z.string().nullable(),popularityBucket:t.z.number().int().min(0).max(100),recencyBucket:t.z.number().int().min(0).max(100),posterRef:t.z.string().nullable(),placeholderColor:t.z.string().regex(/^#[0-9a-fA-F]{6}$/).nullable(),schemaVersion:t.z.number().int().positive(),catalogRevision:t.z.number().int().positive()}).strict();e.s(["catalogManifestSchema",0,i,"localTitleDocumentSchema",0,l],466868);let a=(e,t)=>e>t?1:e<t?-1:0,s=1/0,o="eexxaacctt",c=/\p{P}/gu,u=["en",{numeric:!0,sensitivity:"base"}],d=(e,t,n)=>e.replace("A-Z",t).replace("a-z",n),h={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:1/0,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,1/0],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(e,t,n)=>!0,toUpper:e=>e.toLocaleUpperCase(),toLower:e=>e.toLocaleLowerCase(),compare:null,sort:(e,t,n,r=a)=>{let{idx:i,chars:l,terms:s,interLft2:o,interLft1:c,start:u,intraIns:d,interIns:h,cases:p}=e;return i.map((e,t)=>t).sort((e,n)=>l[n]-l[e]||d[e]-d[n]||s[n]+o[n]+.5*c[n]-(s[e]+o[e]+.5*c[e])||h[e]-h[n]||u[e]-u[n]||p[n]-p[e]||r(t[i[e]],t[i[n]]))}},p=(e,t)=>0==t?"":1==t?e+"??":t==s?e+"*?":e+`{0,${t}}?`,f="(?:\\b|_)";function g(e){let{unicode:t,interLft:n,interRgt:r,intraMode:i,intraSlice:l,intraIns:s,intraSub:g,intraTrn:m,intraDel:v,intraContr:b,intraSplit:w,interSplit:z,intraBound:x,interBound:k,intraCh
3ars:E,toUpper:I,toLower:S,compare:T}=e=Object.assign({},h,e);s??=i,g??=i,m??=i,v??=i,T??="u"<typeof Intl?a:new Intl.Collator(...u).compare;let A=e.letters??e.alpha;if(null!=A){let e=I(A),t=S(A);z=d(z,e,t),w=d(w,e,t),k=d(k,e,t),x=d(x,e,t),E=d(E,e,t),b=d(b,e,t)}let C=t?"u":"",R='".+?"',L=RegExp(R,"gi"+C),M=RegExp(`(?:\\s+|^)-(?:${E}+|${R})`,"gi"+C),{intraRules:$}=e;null==$&&($=e=>{let t=h.intraSlice,n=0,r=0,i=0,a=0;if(/[^\d]/.test(e)){let o=e.length;o<=4?o>=3&&(i=Math.min(m,1),4==o&&(n=Math.min(s,1))):(t=l,n=s,r=g,i=m,a=v)}return{intraSlice:t,intraIns:n,intraSub:r,intraTrn:i,intraDel:a}});let j=!!w,U=RegExp(w,"g"+C),P=RegExp(z,"g"+C),D=RegExp("^"+z+"|"+z+"$","g"+C),q=RegExp(b,"gi"+C),O=(e,t=!1)=>{let n=[];e=(e=e.replace(L,e=>(n.push(e),o))).replace(D,""),t||(e=S(e)),j&&(e=e.replace(U,e=>e[0]+" "+e[1]));let r=0;return e.split(P).filter(e=>""!=e).map(e=>e===o?n[r++]:e)},B=/[^\d]+|\d+/g,F=(t,l=0,a=!1)=>{let o,c=O(t);if(0==c.length)return[];let u=Array(c.length).fill("");if(c=c.map((e,t)=>e.replace(q,e=>(u[t]=e,""))),1==i)o=c.map((e,t)=>{if('"'===e[0])return e.slice(1,-1).replace(/[.*+?^${}()|[\]\\]/g,"\\$&");let n="";for(let r of e.matchAll(B)){let e=r[0],{intraSlice:i,intraIns:l,intraSub:a,intraTrn:s,intraDel:o}=$(e);if(l+a+s+o==0)n+=e+u[t];else{let[r,c]=i,d=e.slice(0,r),h=e.slice(c),f=e.slice(r,c);1==l&&1==d.length&&d!=f[0]&&(d+="(?!"+d+")");let g=f.length,m=[e];if(a)for(let e=0;e<g;e++)m.push(d+f.slice(0,e)+E+f.slice(e+1)+h);if(s)for(let e=0;e<g-1;e++)f[e]!=f[e+1]&&m.push(d+f.slice(0,e)+f[e+1]+f[e]+f.slice(e+2)+h);if(o)for(let e=0;e<g;e++)m.push(d+f.slice(0,e+1)+"?"+f.slice(e+1)+h);if(l){let e=p(E,1);for(let t=0;t<g;t++)m.push(d+f.slice(0,t)+e+f.slice(t)+h)}n+="(?:"+m.join("|")+")"+u[t]}}return n});else{let e=p(E,s);2==l&&s>0&&(e=")("+e+")("),o=c.map((t,n)=>'"'===t[0]?t.slice(1,-1).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):t.split("").map((e,t,n)=>(1==s&&0==t&&n.length>1&&e!=n[t+1]&&(e+="(?!"+e+")"),e)).join(e)+u[n])}let d=2==n?f:"",h=2==r?f:"",g=h+p(e.interChars,e.interIns)+d;return[RegExp(o=l>0?a?d+"("+o.join(")"+h+"|"+d+"(")+")"+h:"(.??"+d+")"+(o="("+o.join(")("+g+")(")+")")+"("+h+".*)":d+(o=o.join(g))+h,"i"+C),c,u]},W=(e,t,n)=>{let[r]=F(t);if(null==r)return null;let i=[];if(null!=n)for(let t=0;t<n.length;t++){let l=n[t];r.test(e[l])&&i.push(l)}else for(let t=0;t<e.length;t++)r.test(e[t])&&i.push(t);return i},K=!!x,G=new RegExp(k,C),N=new RegExp(x,C),Z=(t,i,l)=>{let[a,s,o]=F(l,1),c=O(l,!0),[u]=F(l,2),d=s.length,h=Array(d),p=Array(d);for(let e=0;e<d;e++){let t=s[e],n=c[e],r='"'==t[0]?t.slice(1,-1):t+o[e],i='"'==n[0]?n.slice(1,-1):n+o[e];h[e]=r,p[e]=i}let f=t.length,g=Array(f).fill(0),m={idx:Array(f),start:g.slice(),chars:g.slice(),cases:g.slice(),terms:g.slice(),interIns:g.slice(),intraIns:g.slice(),interLft2:g.slice(),interRgt2:g.slice(),interLft1:g.slice(),interRgt1:g.slice(),ranges:Array(f)},y=1==n||1==r,v=0;for(let l=0;l<t.length;l++){let s=i[t[l]],o=s.match(a),c=o.index+o[1].length,f=c,g=!1,b=0,w=0,z=0,x=0,k=0,E=0,I=0,T=0,A=0,R=[];for(let t=0,i=2;t<d;t++,i+=2){let l=S(o[i]),a=h[t],u=p[t],m=a.length,v=l.length,L=l==a;if(o[i]==u&&I++,!L&&o[i+1].length>=m){let e=S(o[i+1]).indexOf(a);e>-1&&(R.push(f,v,e,m),f+=Y(o,i,e,m),l=a,v=m,L=!0,0==t&&(c=f))}if(y||L){let e=f-1,u=f+v,d=!1,h=!1;if(-1==e||G.test(s[e]))L&&b++,d=!0;else{if(2==n){g=!0;break}if(K&&N.test(s[e]+s[e+1]))L&&w++,d=!0;else if(1==n){let e=o[i+1],n=f+v;if(e.length>=m){let r,u=0,h=!1,p=RegExp(a,"ig"+C);for(;r=p.exec(e);){let e=n+(u=r.index),t=e-1;if(-1==t||G.test(s[t])){b++,h=!0;break}if(N.test(s[t]+s[e])){w++,h=!0;break}}h&&(d=!0,R.push(f,v,u,m),f+=Y(o,i,u,m),l=a,v=m,L=!0,0==t&&(c=f))}if(!d){g=!0;break}}}if(u==s.length||G.test(s[u]))L&&z++,h=!0;else{if(2==r){g=!0;break}if(K&&N.test(s[u-1]+s[u]))L&&x++,h=!0;else if(1==r){g=!0;break}}L&&(k+=m,d&&h&&E++)}if(v>m&&(A+=v-m),t>0&&(T+=o[i-1].length),!e.intraFilt(a,l,f)){g=!0;break}t<d-1&&(f+=v+o[i+1].length)}if(!g){m.idx[v]=t[l],m.interLft2[v]=b,m.interLft1[v]=w,m.interRgt2[v]=z,m.interRgt1[v]=x,m.chars[v]=k,m.terms[v]=E,m.cases[v]=I,m.interIns[v]=T,m.intraIns[v]=A,m.start[v]=c;let e=s.match(u),n=e.index+e[1].length,r=R.length,i=r>0?0:1/0,a=r-4;for(let t=2;t<e.length;){let r=e[t].length;if(i<=a&&R[i]==n){let r=R[i+1],l=R[i+2],a=R[i+3],s=t,o="";for(let t=0;t<r;s++)o+=e[s],t+=e[s].length;e.splice(t,s-t,o),n+=Y(e,t,l,a),i+=4}else n+=r,t++}n=e.index+e[1].length;let o=m.ranges[v]=[],d=n,h=n;for(let t=2;t<e.length;t++){let r=e[t].length;n+=r,t%2==0?h=n:r>0&&(o.push(d,h),d=h=n)}h>d&&o.push(d,h),v++}}if(v<t.length)for(let e in m)m[e]=m[e].slice(0,v);return m},Y=(e,t,n,r)=>{let i=e[t]+e[t+1].slice(0,n);return e[t-1]+=i,e[t]=e[t+1].slice(n,n+r),e[t+1]=e[t+1].slice(n+r),i.length};return{search:(...t)=>((t,n,r,i=1e3,l)=>{let a;r=r?!0===r?5:r:0;let s=null,o=null,u=[],d=O(n=n.replace(M,e=>{let t=e.trim().slice(1);return""!=(t='"'===t[0]?t.slice(1,-1).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"):t.replace(c,""))&&u.push(t),""}));if(u.length>0){if(a=RegExp(u.join("|"),"i"+C),0==d.length){let e=[];for(let n=0;n<t.length;n++)a.test(t[n])||e.push(n);return[e,null,null]}}
3else if(0==d.length)return[null,null,null];if(r>0){let e=O(n);if(e.length>1){let n=e.slice().sort((e,t)=>t.length-e.length);for(let e=0;e<n.length;e++){if(l?.length==0)return[[],null,null];l=W(t,n[e],l)}if(e.length>r)return[l,null,null];s=y(e).map(e=>e.join(" ")),o=[];let i=new Set;for(let e=0;e<s.length;e++)if(i.size<l.length){let n=l.filter(e=>!i.has(e)),r=W(t,s[e],n);for(let e=0;e<r.length;e++)i.add(r[e]);o.push(r)}else o.push([])}}null==s&&(s=[n],o=[l?.length>0?l:W(t,n)]);let h=null,p=null;if(u.length>0&&(o=o.map(e=>e.filter(e=>!a.test(t[e])))),o.reduce((e,t)=>e+t.length,0)<=i){h={},p=[];for(let n=0;n<o.length;n++){let r=o[n];if(null==r||0==r.length)continue;let i=s[n],l=Z(r,t,i),a=e.sort(l,t,i,T);if(n>0)for(let e=0;e<a.length;e++)a[e]+=p.length;for(let e in l)h[e]=(h[e]??[]).concat(l[e]);p=p.concat(a)}}return[[].concat(...o),h,p]})(...t),split:O,filter:W,info:Z,sort:e.sort}}let m=(()=>{let e={A:"ÁÀÃÂÄĄĂÅ",a:"áàãâäąăå",E:"ÉÈÊËĖĚ",e:"éèêëęě",I:"ÍÌÎÏĮİ",i:"íìîïįı",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲŮŰ",u:"úùûüūųůű",C:"ÇČĆ",c:"çčć",D:"Ď",d:"ď",G:"Ğ",g:"ğ",L:"Ł",l:"ł",N:"ÑŃŇ",n:"ñńň",S:"ŠŚȘŞ",s:"šśșş",T:"ŢȚŤ",t:"ţțť",Y:"Ý",y:"ý",Z:"ŻŹŽ",z:"żźž"},t={},n="";for(let r in e)e[r].split("").forEach(e=>{n+=e,t[e]=r});let r=RegExp(`[${n}]`,"g"),i=e=>t[e];return e=>{if("string"==typeof e)return e.replace(r,i);let t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n].replace(r,i);return t}})();function y(e){let t=(e=e.slice()).length,n=[e.slice()],r=Array(t).fill(0),i=1,l,a;for(;i<t;)r[i]<i?(l=i%2&&r[i],a=e[i],e[i]=e[l],e[l]=a,++r[i],i=1,n.push(e.slice())):(r[i]=0,++i);return n}let v=(e,t)=>t?`<mark>${e}</mark>`:e,b=(e,t)=>e+t;g.latinize=m,g.permute=e=>y([...Array(e.length).keys()]).sort((e,t)=>{for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]-t[n];return 0}).map(t=>t.map(t=>e[t])),g.highlight=function(e,t,n=v,r="",i=b){r=i(r,n(e.substring(0,t[0]),!1))??r;for(let l=0;l<t.length;l+=2){let a=t[l],s=t[l+1];r=i(r,n(e.substring(a,s),!0))??r,l<t.length-3&&(r=i(r,n(e.substring(t[l+1],t[l+2]),!1))??r)}return i(r,n(e.substring(t[t.length-1]),!1))??r};let w=/(?:^| )((?:18|19|20|21)\d{2})(?: |$)/,z=/[^\p{L}\p{N}]+/gu,x=/\p{M}+/gu;function k(e,t="en"){return e.normalize("NFKD").replace(x,"").toLocaleLowerCase(t).replace(/&/g," and ").replace(z," ").trim().replace(/\s+/g," ")}function E(e,t="en"){let n=k(e,t);return n?n.split(" "):[]}function I(e,t="en"){return E(e,t).map(e=>e[0]??"").join("")}function S(e,t,n=3){if(e===t)return 0;if(Math.abs(e.length-t.length)>n)return n+1;let r=Array(t.length+1).fill(0),i=Array.from({length:t.length+1},(e,t)=>t);for(let l=1;l<=e.length;l+=1){let a=[l],s=l;for(let o=1;o<=t.length;o+=1){let c=+(e[l-1]!==t[o-1]),u=Math.min((a[o-1]??n)+1,(i[o]??n)+1,(i[o-1]??n)+c);l>1&&o>1&&e[l-1]===t[o-2]&&e[l-2]===t[o-1]&&(u=Math.min(u,(r[o-2]??n)+1)),a[o]=u,s=Math.min(s,u)}if(s>n)return n+1;r.splice(0,r.length,...i),i=a}return i[t.length]??n+1}class T{#e=new Map;get size(){return this.#e.size}replace(e){this.#e.clear(),this.upsert(e)}upsert(e){for(let t of e)this.#e.set(t.canonicalId,function(e){let t=[e.primaryTitle,e.originalTitle,...e.alternateTitles].filter(e=>!!e).map(e=>k(e));return{document:e,primary:t[0]??"",alternates:t.slice(1),tokens:new Set(t.flatMap(e=>E(e))),initialisms:new Set(t.map(e=>I(e)).filter(e=>e.length>1))}}(t))}remove(e){for(let t of e)this.#e.delete(t)}search(e,t={}){let n=k(e,t.locale??"en");if(!n)return[];let r=function(e){let t,n=(t=e.match(w),t?.[1]?Number(t[1]):void 0);if(void 0===n)return{text:e,year:n};let r=e.replace(RegExp(`(?:^| )${n}(?: |$)`)," ").replaceAll(/\s+/g," ").trim();return r?{text:r,year:n}:{text:e,year:n}}(n),i=t.year??r.year,l=t.year?n:r.text,a=[];for(let e of this.#e.values()){if(t.mediaType&&"all"!==t.mediaType&&e.document.mediaType!==t.mediaType)continue;let n=function(e,t){if(e.primary===t)return{textualScore:100,matchKind:"exact"};if(e.alternates.includes(t))return{textualScore:98,matchKind:"alternate"};if(e.primary.startsWith(t)||e.alternates.some(e=>e.startsWith(t)))return{textualScore:90,matchKind:"prefix"};let n=E(t);if(n.length>0&&n.every(t=>e.tokens.has(t)))return{textualScore:82,matchKind:"tokens"};if(e.initialisms.has(t.replaceAll(" ","")))return{textualScore:78,matchKind:"initialism"};let r=Math.min(S(t,e.primary),...e.alternates.map(e=>S(t,e)));return r<=(t.length<=5?1:t.length<=10?2:3)?{textualScore:70-5*r,matchKind:"typo"}:null}(e,l);if(!n)continue;let r=i&&e.document.releaseYear===i?20:0,s=.01*e.document.popularityBucket+.001*e.document.recencyBucket;a.push({document:e.document,...n,finalScore:n.textualScore+r+s})}return a.sort((e,t)=>
3t.finalScore-e.finalScore||e.document.primaryTitle.localeCompare(t.document.primaryTitle)||e.document.canonicalId.localeCompare(t.document.canonicalId)).slice(0,t.limit??20)}}function A(e){let t=[e.primaryTitle,e.originalTitle,...e.alternateTitles].filter(e=>!!e),n=t.map(e=>I(e)).filter(e=>e.length>1);return k([...t,...n,e.releaseYear??""].join(" "))}function C(e){return[e.primaryTitle,e.originalTitle,...e.alternateTitles].filter(e=>!!e).map(e=>k(e))}class R{#t=new g({interSplit:"[^\\p{L}\\d']+",intraBound:"\\p{L}\\d|\\d\\p{L}|\\p{Ll}\\p{Lu}",intraChars:"[\\p{L}\\d']",intraContr:"'\\p{L}{1,2}\\b",intraDel:1,intraMode:1,intraSplit:"\\p{Ll}\\p{Lu}",intraSub:1,intraTrn:1,unicode:!0});#e=new Map;#n=new Map;#r=new Map;#i=[];#l=[];get size(){return this.#e.size}replace(e){this.#e.clear(),this.#n.clear(),this.#r.clear(),this.#i.length=0,this.#l.length=0,this.upsert(e)}upsert(e){for(let t of e){let e=this.#e.get(t.canonicalId);e&&this.#a(e);let n=this.#r.get(t.canonicalId);void 0===n?(this.#r.set(t.canonicalId,this.#i.length),this.#i.push(A(t)),this.#l.push(t.canonicalId)):(this.#i[n]=A(t),this.#l[n]=t.canonicalId),this.#e.set(t.canonicalId,t),this.#s(t)}}remove(e){for(let t of e){let e=this.#e.get(t);if(!e)continue;this.#e.delete(t),this.#a(e);let n=this.#r.get(t);void 0!==n&&(this.#r.delete(t),this.#i[n]="",this.#l[n]=null)}}search(e,t={}){let n=k(e,t.locale);if(!n)return[];let r=Math.min(2e3,Math.max(500,20*(t.limit??20))),[i,l,a]=this.#t.search(this.#i,n,5,1e4),s=l&&a?a.map(e=>l.idx[e]):i??[],o=new Set(this.#n.get(n)??[]);for(let e of s){let t=this.#l[e];if(t&&o.add(t),o.size>=r)break}let c=[...o].map(e=>this.#e.get(e)).filter(e=>!!e),u=new T;return u.replace(c),u.search(e,t)}#s(e){for(let t of C(e)){let n=this.#n.get(t)??new Set;n.add(e.canonicalId),this.#n.set(t,n)}}#a(e){for(let t of C(e)){let n=this.#n.get(t);n?.delete(e.canonicalId),n?.size===0&&this.#n.delete(t)}}}e.s(["UFuzzyLocalSearchEngine",0,R],142957),e.s([],5458)}]);
4
5//# sourceMappingURL=3ojw07br0c1kp.js.map
6//# debugId=e18122de-0254-5550-8349-510dea79e57f

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.