1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3737],{3737:(e,t,n)=>{n.d(t,{generateApkg:()=>s});var r=n(7676),i=n.n(r),N=n(602);function L(){return Math.floor(0x7fffffff*Math.random())}function a(){return Math.floor(Date.now()/1e3)}async function s(e,t,n){let r=new(await i()({locateFile:()=>n||"https://sql.js.org/dist/sql-wasm.wasm"})).Database,s=a(),d=L(),o=L();r.run(` 2 CREATE TABLE col ( 3 id integer PRIMARY KEY, 4 crt integer NOT NULL, 5 mod integer NOT NULL, 6 scm integer NOT NULL, 7 ver integer NOT NULL, 8 dty integer NOT NULL, 9 usn integer NOT NULL, 10 ls integer NOT NULL, 11 conf text NOT NULL, 12 models text NOT NULL, 13 decks text NOT NULL, 14 dconf text NOT NULL, 15 tags text NOT NULL 16 ); 17 CREATE TABLE notes ( 18 id integer PRIMARY KEY, 19 guid text NOT NULL, 20 mid integer NOT NULL, 21 mod integer NOT NULL, 22 usn integer NOT NULL, 23 tags text NOT NULL, 24 flds text NOT NULL, 25 sfld text NOT NULL, 26 csum integer NOT NULL, 27 flags integer NOT NULL, 28 data text NOT NULL 29 ); 30 CREATE TABLE cards ( 31 id integer PRIMARY KEY, 32 nid integer NOT NULL, 33 did integer NOT NULL, 34 ord integer NOT NULL, 35 mod integer NOT NULL, 36 usn integer NOT NULL, 37 type integer NOT NULL, 38 queue integer NOT NULL, 39 due integer NOT NULL, 40 ivl integer NOT NULL, 41 factor integer NOT NULL, 42 reps integer NOT NULL, 43 lapses integer NOT NULL, 44 left integer NOT NULL, 45 odue integer NOT NULL, 46 odid integer NOT NULL, 47 flags integer NOT NULL, 48 data text NOT NULL 49 ); 50 CREATE TABLE revlog ( 51 id integer PRIMARY KEY, 52 cid integer NOT NULL, 53 usn integer NOT NULL, 54 ease integer NOT NULL, 55 ivl integer NOT NULL, 56 lastIvl integer NOT NULL, 57 factor integer NOT NULL, 58 time integer NOT NULL, 59 type integer NOT NULL 60 ); 61 CREATE TABLE graves ( 62 usn integer NOT NULL, 63 oid integer NOT NULL, 64 type integer NOT NULL 65 ); 66 `),r.run("INSERT INTO col VALUES (1, ?, ?, ?, 11, 0, 0, 0, '{}', ?, ?, ?, '{}')",[s,1e3*s,1e3*s,JSON.stringify({[d]:{id:d,name:"SnapCards Basic",type:0,mod:a(),usn:-1,sortf:0,did:o,tmpls:[{name:"Card 1",ord:0,qfmt:"{{Front}}",afmt:'{{FrontSide}}<hr id="answer">{{Back}}',bqfmt:"",bafmt:"",did:null,bfont:"",bsize:0}],flds:[{name:"Front",ord:0,sticky:!1,rtl:!1,font:"Arial",size:20,media:[]},{name:"Back",ord:1,sticky:!1,rtl:!1,font:"Arial",size:20,media:[]}],css:".card {\n font-family: arial;\n font-size: 20px;\n text-align: center;\n color: black;\n background-color: white;\n}\n",latexPre:"",latexPost:"",latexsvg:!1,req:[[0,"any",[0]]],tags:[],vers:[]}}),JSON.stringify({1:{id:1,mod:a(),name:"Default",usn:0,lrnToday:[0,0],revToday:[0,0],newToday:[0,0],timeToday:[0,0],collapsed:!1,desc:"",dyn:0,conf:1,extendNew:10,extendRev:50},[o]:{id:o,mod:a(),name:e,usn:-1,lrnToday:[0,0],revToday:[0,0],newToday:[0,0],timeToday:[0,0],collapsed:!1,desc:"",dyn:0,conf:1,extendNew:10,extendRev:50}}),JSON.stringify({1:{id:1,mod:0,name:"Default",usn:0,maxTaken:60,autoplay:!0,timer:0,replayq:!0,new:{ints:[1,10,0,0],initialFactor:2500,order:1,perDay:20,delays:[1,10],bury:!1,separate:!0},rev:{perDay:200,ease4:1.3,fuzz:.05,minSpace:1,ivlFct:1,maxIvl:36500,bury:!1,hardFactor:1.2},lapse:{delays:[10],mult:0,minInt:1,leechFails:8,leechAction:0}}})]);for(let e=0;e<t.length;e++){let n=t[e],i=1e3*s+e,N=1e3*s+t.length+e,L=Math.random().toString(36).substring(2,12),a=`${n.question}\x1f${n.answer}`;r.run("INSERT INTO notes VALUES (?, ?, ?, ?, -1, '', ?, ?, ?, 0, '')",[i,L,d,s,a,n.question,function(e){let t=0,n=e.substring(0,8);for(let e=0;e<n.length;e++)t=(t<<5)-t+n.charCodeAt(e)|0;return Math.abs(t)}(n.question)]),r.run("INSERT INTO cards VALUES (?, ?, ?, 0, ?, -1, 0, 0, ?, 0, 0, 0, 0, 0, 0, 0, 0, '')",[N,i,o,s,e])}let T=r.export();return r.close(),(0,N.L)({"collection.anki2":new Uint8Array(T),media:(0,N._u)("{}")})}}}]); 67//# sourceMappingURL=3737.0010e9800a4dc138.js.map
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.