1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{73529:()=>{},72462:(e,s,n)=>{"use strict";n.r(s),n.d(s,{getLessons:()=>a,queryLessonsByIdsFromFirebase:()=>i,searchLessons:()=>c});var t=n(61491),r=n(27058);let o=n(85993),a=async e=>{if(!e)throw Error("User not logged in");let s=(0,r.aU)(t.yA),n=(0,r.rJ)(s,"lessons"),o=(0,r.P)(n,(0,r.My)("likes"),(0,r.AB)(100)),a=await (0,r.GG)(o);return new Promise(async(e,s)=>{if(a.empty)return e([]);let n=[];return a.forEach(e=>{let s=e.data();s.id=e.id,n.push(s)}),e(n)})},c=async(e,s)=>{if(!e)throw Error("User not logged in");let n=new o.SearchClient({nodes:[{host:"wpqzdinybsh2ela4p-1.a1.typesense.net",port:"443",protocol:"https"}],apiKey:"QUpc0uEx9LkdPa8b8a9XyAAE8N4UXyW8",numRetries:3,connectionTimeoutSeconds:10,retryIntervalSeconds:.1,healthcheckIntervalSeconds:2,logLevel:"debug"});return new Promise(async(e,t)=>{n.collections("lessons").documents().search({q:s,query_by:"prompt, subject"}).then(function(s){e(s)}).catch(function(e){console.dir(e),t(e)})})},i=async e=>{let s=(0,r.aU)(t.yA),n=(0,r.rJ)(s,"lessons"),o=(0,r.P)(n,(0,r._M)((0,r.Fs)(),"in",e)),a=await (0,r.GG)(o);return new Promise(async(e,s)=>{if(a.empty)return e([]);let n=[];return a.forEach(e=>{let s=e.data();s.id=e.id,n.push(s)}),e(n)})}}}]);
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.