neogrok 0.2.0 → 0.2.1
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.
- package/build/client/_app/immutable/chunks/{index.AFHLc7k7.js → index.8xz2tJHQ.js} +1 -1
- package/build/client/_app/immutable/chunks/index.8xz2tJHQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/{index.AFHLc7k7.js.gz → index.8xz2tJHQ.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{loading-ellipsis.EfcHtv03.js → loading-ellipsis.R0hKKLDn.js} +1 -1
- package/build/client/_app/immutable/chunks/loading-ellipsis.R0hKKLDn.js.br +0 -0
- package/build/client/_app/immutable/chunks/loading-ellipsis.R0hKKLDn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{singletons.vwJVlVCQ.js → singletons.7gor0m3T.js} +1 -1
- package/build/client/_app/immutable/chunks/singletons.7gor0m3T.js.br +0 -0
- package/build/client/_app/immutable/chunks/singletons.7gor0m3T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{stores.8mzBvaEV.js → stores.sdmSk4uL.js} +1 -1
- package/build/client/_app/immutable/chunks/stores.sdmSk4uL.js.br +0 -0
- package/build/client/_app/immutable/chunks/stores.sdmSk4uL.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.RbPPUffu.js → app.UPFfDTm6.js} +2 -2
- package/build/client/_app/immutable/entry/app.UPFfDTm6.js.br +0 -0
- package/build/client/_app/immutable/entry/app.UPFfDTm6.js.gz +0 -0
- package/build/client/_app/immutable/entry/{start.rCbSr4mr.js → start.xZRsd2fc.js} +1 -1
- package/build/client/_app/immutable/entry/start.xZRsd2fc.js.br +0 -0
- package/build/client/_app/immutable/entry/start.xZRsd2fc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.e_QjT0sm.js → 0.FkgixQg8.js} +1 -1
- package/build/client/_app/immutable/nodes/0.FkgixQg8.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.FkgixQg8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.EkqJBnVl.js → 1.LfY-Gknf.js} +1 -1
- package/build/client/_app/immutable/nodes/1.LfY-Gknf.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.LfY-Gknf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.eAUN9e8j.js +18 -0
- package/build/client/_app/immutable/nodes/10.eAUN9e8j.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.eAUN9e8j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.mfcM2A3w.js → 13.zRS6nLGa.js} +1 -1
- package/build/client/_app/immutable/nodes/13.zRS6nLGa.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.zRS6nLGa.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-A-IZzLqw.js → 0-udrx3sEB.js} +2 -2
- package/build/server/chunks/{0-A-IZzLqw.js.map → 0-udrx3sEB.js.map} +1 -1
- package/build/server/chunks/{1-g3_EhU2e.js → 1-w3Qi8qbp.js} +2 -2
- package/build/server/chunks/{1-g3_EhU2e.js.map → 1-w3Qi8qbp.js.map} +1 -1
- package/build/server/chunks/{10-O5Ly1RSy.js → 10-eOytQrEJ.js} +3 -3
- package/build/server/chunks/{10-O5Ly1RSy.js.map → 10-eOytQrEJ.js.map} +1 -1
- package/build/server/chunks/{13-ItAIOz6y.js → 13-rtSmyS3a.js} +3 -3
- package/build/server/chunks/{13-ItAIOz6y.js.map → 13-rtSmyS3a.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-MAStgoHK.js → _page.svelte-Dsob00jN.js} +2 -2
- package/build/server/chunks/{_page.svelte-MAStgoHK.js.map → _page.svelte-Dsob00jN.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-7KJATY9d.js → _page.svelte-osWzb7zl.js} +6 -3
- package/build/server/chunks/_page.svelte-osWzb7zl.js.map +1 -0
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +5 -5
- package/build/server/manifest.js.map +1 -1
- package/package.json +3 -4
- package/build/client/_app/immutable/chunks/index.AFHLc7k7.js.br +0 -0
- package/build/client/_app/immutable/chunks/loading-ellipsis.EfcHtv03.js.br +0 -0
- package/build/client/_app/immutable/chunks/loading-ellipsis.EfcHtv03.js.gz +0 -0
- package/build/client/_app/immutable/chunks/singletons.vwJVlVCQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/singletons.vwJVlVCQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/stores.8mzBvaEV.js.br +0 -0
- package/build/client/_app/immutable/chunks/stores.8mzBvaEV.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.RbPPUffu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.RbPPUffu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.rCbSr4mr.js.br +0 -0
- package/build/client/_app/immutable/entry/start.rCbSr4mr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.e_QjT0sm.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.e_QjT0sm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.EkqJBnVl.js.br +0 -3
- package/build/client/_app/immutable/nodes/1.EkqJBnVl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.-5InryQo.js +0 -17
- package/build/client/_app/immutable/nodes/10.-5InryQo.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.-5InryQo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.mfcM2A3w.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.mfcM2A3w.js.gz +0 -0
- package/build/server/chunks/_page.svelte-7KJATY9d.js.map +0 -1
|
@@ -8,7 +8,7 @@ import{_ as c}from"./5.MErjPYv9.js";const rt=[{id:"abap",name:"ABAP",import:()=>
|
|
|
8
8
|
\f\r &>`.split(""),`\0
|
|
9
9
|
\f\r "&'<=>\``.split("")],[`\0
|
|
10
10
|
\f\r "&'<=>\``.split(""),`\0
|
|
11
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function yr(r,e,t,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(r.tagName.toLowerCase());const l=[];let a;i.space==="html"&&r.tagName==="svg"&&(n.schema=Lt);const u=Er(n,r.properties),m=n.all(i.space==="html"&&r.tagName==="template"?r.content:r);return n.schema=i,m&&(s=!1),(u||!o||!pr(r,e,t))&&(l.push("<",r.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!n.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(m),!s&&(!o||!Ie(r,e,t))&&l.push("</"+r.tagName+">"),l.join("")}function Er(r,e){const t=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=br(r,i,e[i]);o&&t.push(o)}}for(;++n<t.length;){const o=r.settings.tightAttributes?t[n].charAt(t[n].length-1):void 0;n!==t.length-1&&o!=='"'&&o!=="'"&&(t[n]+=" ")}return t.join("")}function br(r,e,t){const n=Nn(r.schema,e),i=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,o=r.settings.allowDangerousCharacters?0:1;let s=r.quote,l;if(n.overloadedBoolean&&(t===n.attribute||t==="")?t=!0:(n.boolean||n.overloadedBoolean&&typeof t!="string")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=W(n.attribute,Object.assign({},r.settings.characterReferences,{subset:re.name[i][o]}));return t===!0||(t=Array.isArray(t)?(n.commaSeparated?Yn:Xn)(t,{padLeft:!r.settings.tightCommaSeparatedLists}):String(t),r.settings.collapseEmptyAttributes&&!t)?a:(r.settings.preferUnquoted&&(l=W(t,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:re.unquoted[i][o]}))),l!==t&&(r.settings.quoteSmart&&Ke(t,s)>Ke(t,r.alternative)&&(s=r.alternative),l=s+W(t,Object.assign({},r.settings.characterReferences,{subset:(s==="'"?re.single:re.double)[i][o],attribute:!0}))+s),a+(l&&"="+l))}function Ot(r,e,t,n){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?r.value:W(r.value,Object.assign({},n.settings.characterReferences,{subset:["<","&"]}))}function Rr(r,e,t,n){return n.settings.allowDangerousHtml?r.value:Ot(r,e,t,n)}function vr(r,e,t,n){return n.all(r)}const Ar=Bn("type",{invalid:Lr,unknown:Pr,handlers:{comment:qn,doctype:Kn,element:yr,raw:Rr,root:vr,text:Ot}});function Lr(r){throw new Error("Expected node, not `"+r+"`")}function Pr(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Tr={},Sr={},Cr=[];function Or(r,e){const t=e||Tr,n=t.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:kr,all:wr,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Sn,characterReferences:t.characterReferences||Sr,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?Lt:Mn,quote:n,alternative:i}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function kr(r,e,t){return Ar(r,e,t,this)}function wr(r){const e=[],t=r&&r.children||Cr;let n=-1;for(;++n<t.length;)e[n]=this.one(t[n],n,r);return e.join("")}function kt(r){return!r||["plaintext","txt","text","plain"].includes(r)}function ie(r){return Array.isArray(r)?r:[r]}function Ir(r){return r==="ansi"||kt(r)}function bi(r,e){if(!e)return;r.properties||={},r.properties.class||=[],typeof r.properties.class=="string"&&(r.properties.class=r.properties.class.split(/\s+/g)),Array.isArray(r.properties.class)||(r.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const n of t)n&&!r.properties.class.includes(n)&&r.properties.class.push(n)}var G=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Re={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Dr(r,e){const t=r.indexOf("\x1B[",e);if(t!==-1){const n=r.indexOf("m",t);return{sequence:r.substring(t+2,n).split(";"),startPosition:t,position:n+1}}return{position:r.length}}function Qe(r,e){let t=1;const n=r[e+t++];let i;if(n==="2"){const o=[r[e+t++],r[e+t++],r[e+t]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(i={type:"rgb",rgb:o})}else if(n==="5"){const o=Number.parseInt(r[e+t]);Number.isNaN(o)||(i={type:"table",index:Number(o)})}return[t,i]}function Nr(r){const e=[];for(let t=0;t<r.length;t++){const n=r[t],i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)Re[i]&&e.push({type:"setDecoration",value:Re[i]});else if(i<=29){const o=Re[i-20];o&&e.push({type:"resetDecoration",value:o})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:G[i-30]}});else if(i===38){const[o,s]=Qe(r,t);s&&e.push({type:"setForegroundColor",value:s}),t+=o}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:G[i-40]}});else if(i===48){const[o,s]=Qe(r,t);s&&e.push({type:"setBackgroundColor",value:s}),t+=o}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:G[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:G[i-100+8]}})}return e}function xr(){let r=null,e=null,t=new Set;return{parse(n){const i=[];let o=0;do{const s=Dr(n,o),l=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(l.length>0&&i.push({value:l,foreground:r,background:e,decorations:new Set(t)}),s.sequence){const a=Nr(s.sequence);for(const u of a)u.type==="resetAll"?(r=null,e=null,t.clear()):u.type==="resetForegroundColor"?r=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of a)u.type==="setForegroundColor"?r=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}o=s.position}while(o<n.length);return i}}}var Vr={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Mr(r=Vr){function e(l){return r[l]}function t(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<G.length;u++)n.push(e(G[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)n.push(t([l[u],l[m],l[p]]));let a=8;for(let u=0;u<24;u++,a+=10)n.push(t([a,a,a]));return n}function o(l){return i()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return o(l.index)}}return{value:s}}function Br(r,e,t){const n={...r.colorReplacements,...t?.colorReplacements},i=e.split(/\r?\n/),o=Mr(Object.fromEntries(G.map(l=>[l,r.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),s=xr();return i.map(l=>s.parse(l).map(a=>{let u;a.decorations.has("reverse")?u=a.background?o.value(a.background):r.bg:u=a.foreground?o.value(a.foreground):r.fg,u=wt(u,n),a.decorations.has("dim")&&(u=Gr(u));let m=x.None;return a.decorations.has("bold")&&(m|=x.Bold),a.decorations.has("italic")&&(m|=x.Italic),a.decorations.has("underline")&&(m|=x.Underline),{content:a.value,color:u,fontStyle:m}}))}function Gr(r){const e=r.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const n=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${n}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(n=>`${n}${n}`).join("")}80`;const t=r.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:r}function De(r,e,t={}){const{lang:n="text",theme:i=r.getLoadedThemes()[0]}=t;if(kt(n))return[...e.map(u=>[{content:u}])];const{theme:o,colorMap:s}=r.setTheme(i);if(n==="ansi")return Br(o,e,t);const l=r.getLangGrammar(n);return jr(e,l,o,s,t)}function jr(r,e,t,n,i){const o={...t.colorReplacements,...i?.colorReplacements},s=r;let l=Tn,a=[];const u=[];for(let m=0,p=s.length;m<p;m++){const d=s[m];if(d===""){a=[],u.push([]);continue}let _,f,R;i.includeExplanation&&(_=e.tokenizeLine(d,l),f=_.tokens,R=0);const y=e.tokenizeLine2(d,l),g=y.tokens.length/2;for(let E=0;E<g;E++){const A=y.tokens[2*E],w=E+1<g?y.tokens[2*E+2]:d.length;if(A===w)continue;const O=y.tokens[2*E+1],B=M.getForeground(O),q=wt(n[B],o),Vt=M.getFontStyle(O),he={start:A,end:w,color:q,fontStyle:Vt};if(i.includeExplanation){he.explanation=[];let xe=0;for(;A+xe<w;){const fe=f[R],Ve=d.substring(fe.startIndex,fe.endIndex);xe+=Ve.length,he.explanation.push({content:Ve,scopes:Ur(t,fe.scopes)}),R+=1}}a.push(he)}u.push(a),a=[],l=y.ruleStack}return u}function Ur(r,e){const t=[];for(let n=0,i=e.length;n<i;n++){const o=e.slice(0,n),s=e[n];t[n]={scopeName:s,themeMatches:$r(r,s,o)}}return t}function Ze(r,e){const t=`${r}.`;return r===e||e.substring(0,t.length)===t}function Fr(r,e,t,n){if(!Ze(r,t))return!1;let i=e.length-1,o=n.length-1;for(;i>=0&&o>=0;)Ze(e[i],n[o])&&(i-=1),o-=1;return i===-1}function $r(r,e,t){const n=[];let i=0;for(let o=0,s=r.settings.length;o<s;o++){const l=r.settings[o];let a;if(typeof l.scope=="string")a=l.scope.split(/,/).map(u=>u.trim());else if(Array.isArray(l.scope))a=l.scope;else continue;for(let u=0,m=a.length;u<m;u++){const d=a[u].split(/ /),_=d[d.length-1],f=d.slice(0,d.length-1);Fr(_,f,e,t)&&(n[i++]=l,u=m)}}return n}function wt(r,e){return e?.[r.toLowerCase()]||r}function It(r,e,t){const n=Object.entries(t.themes).filter(s=>s[1]).map(s=>({color:s[0],theme:s[1]})),i=Wr(...n.map(s=>De(r,e,{...t,theme:s.theme,includeExplanation:!1})));return i[0].map((s,l)=>s.map((a,u)=>{const m={content:a.content,variants:{}};return i.forEach((p,d)=>{const{content:_,explanation:f,...R}=p[l][u];m.variants[n[d].color]=R}),m}))}function Wr(...r){const e=r.map(()=>[]),t=r.length;for(let n=0;n<r[0].length;n++){const i=r.map(a=>a[n]),o=e.map(()=>[]);e.forEach((a,u)=>a.push(o[u]));const s=i.map(()=>0),l=i.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(u=>u.content.length));for(let u=0;u<t;u++){const m=l[u];m.content.length===a?(o[u].push(m),s[u]+=1,l[u]=i[u][s[u]]):(o[u].push({...m,content:m.content.slice(0,a)}),l[u]={...m,content:m.content.slice(a)})}}}return e}function pe(r,e,t,n={meta:{},options:t,codeToHast:(i,o)=>pe(r,i,o)}){let i=e;for(const m of t.transformers||[])i=m.preprocess?.call(n,i,t)||i;let o,s,l,a,u;if("themes"in t){const{defaultColor:m="light",cssVariablePrefix:p="--shiki-"}=t,d=Object.entries(t.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,g)=>y.color===m?-1:g.color===m?1:0);if(d.length===0)throw new Error("[shikiji] `themes` option must not be empty");const _=It(r,i,t);if(m&&!d.find(y=>y.color===m))throw new Error(`[shikiji] \`themes\` option must contain the defaultColor key \`${m}\``);const f=d.map(y=>r.getTheme(y.theme)),R=d.map(y=>y.color);l=_.map(y=>y.map(g=>Hr(g,R,p,m))),s=d.map((y,g)=>(g===0&&m?"":`${p+y.color}:`)+f[g].fg).join(";"),o=d.map((y,g)=>(g===0&&m?"":`${p+y.color}-bg:`)+f[g].bg).join(";"),a=`shiki-themes ${f.map(y=>y.name).join(" ")}`,u=m?void 0:[s,o].join(";")}else if("theme"in t){l=De(r,i,{...t,includeExplanation:!1});const m=r.getTheme(t.theme);o=m.bg,s=m.fg,a=m.name}else throw new Error("[shikiji] Invalid options, either `theme` or `themes` must be provided");return zr(l,{...t,fg:s,bg:o,themeName:a,rootStyle:u},n)}function Hr(r,e,t,n){const i={content:r.content,explanation:r.explanation},o=e.map(a=>Dt(r.variants[a])),s=new Set(o.flatMap(a=>Object.keys(a))),l=o.reduce((a,u,m)=>{for(const p of s){const d=u[p]||"inherit";if(m===0&&n)a[p]=d;else{const _=t+e[m]+(p==="color"?"":`-${p}`);a[p]?a[p]+=`;${_}:${d}`:a[p]=`${_}:${d}`}}return a},{});return i.htmlStyle=n?Nt(l):Object.values(l).join(";"),i}function zr(r,e,t){const{mergeWhitespaces:n=!0,transformers:i=[]}=e;e.transforms&&(i.push(e.transforms),console.warn("[shikiji] `transforms` option is deprecated, use `transformers` instead")),n===!0?r=qr(r):n==="never"&&(r=Kr(r));const o=[],s={type:"root",children:[]};let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([d])=>!d.startsWith("_")))},children:[]},a={type:"element",tagName:"code",properties:{},children:o};const u=[],m={...t,get tokens(){return r},get options(){return e},get root(){return s},get pre(){return l},get code(){return a},get lines(){return u}};r.forEach((d,_)=>{_&&o.push({type:"text",value:`
|
|
11
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function yr(r,e,t,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(r.tagName.toLowerCase());const l=[];let a;i.space==="html"&&r.tagName==="svg"&&(n.schema=Lt);const u=Er(n,r.properties),m=n.all(i.space==="html"&&r.tagName==="template"?r.content:r);return n.schema=i,m&&(s=!1),(u||!o||!pr(r,e,t))&&(l.push("<",r.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!n.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(m),!s&&(!o||!Ie(r,e,t))&&l.push("</"+r.tagName+">"),l.join("")}function Er(r,e){const t=[];let n=-1,i;if(e){for(i in e)if(e[i]!==null&&e[i]!==void 0){const o=br(r,i,e[i]);o&&t.push(o)}}for(;++n<t.length;){const o=r.settings.tightAttributes?t[n].charAt(t[n].length-1):void 0;n!==t.length-1&&o!=='"'&&o!=="'"&&(t[n]+=" ")}return t.join("")}function br(r,e,t){const n=Nn(r.schema,e),i=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,o=r.settings.allowDangerousCharacters?0:1;let s=r.quote,l;if(n.overloadedBoolean&&(t===n.attribute||t==="")?t=!0:(n.boolean||n.overloadedBoolean&&typeof t!="string")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const a=W(n.attribute,Object.assign({},r.settings.characterReferences,{subset:re.name[i][o]}));return t===!0||(t=Array.isArray(t)?(n.commaSeparated?Yn:Xn)(t,{padLeft:!r.settings.tightCommaSeparatedLists}):String(t),r.settings.collapseEmptyAttributes&&!t)?a:(r.settings.preferUnquoted&&(l=W(t,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:re.unquoted[i][o]}))),l!==t&&(r.settings.quoteSmart&&Ke(t,s)>Ke(t,r.alternative)&&(s=r.alternative),l=s+W(t,Object.assign({},r.settings.characterReferences,{subset:(s==="'"?re.single:re.double)[i][o],attribute:!0}))+s),a+(l&&"="+l))}function Ot(r,e,t,n){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?r.value:W(r.value,Object.assign({},n.settings.characterReferences,{subset:["<","&"]}))}function Rr(r,e,t,n){return n.settings.allowDangerousHtml?r.value:Ot(r,e,t,n)}function vr(r,e,t,n){return n.all(r)}const Ar=Bn("type",{invalid:Lr,unknown:Pr,handlers:{comment:qn,doctype:Kn,element:yr,raw:Rr,root:vr,text:Ot}});function Lr(r){throw new Error("Expected node, not `"+r+"`")}function Pr(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Tr={},Sr={},Cr=[];function Or(r,e){const t=e||Tr,n=t.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:kr,all:wr,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Sn,characterReferences:t.characterReferences||Sr,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?Lt:Mn,quote:n,alternative:i}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function kr(r,e,t){return Ar(r,e,t,this)}function wr(r){const e=[],t=r&&r.children||Cr;let n=-1;for(;++n<t.length;)e[n]=this.one(t[n],n,r);return e.join("")}function kt(r){return!r||["plaintext","txt","text","plain"].includes(r)}function ie(r){return Array.isArray(r)?r:[r]}function Ir(r){return r==="ansi"||kt(r)}function bi(r,e){if(!e)return;r.properties||={},r.properties.class||=[],typeof r.properties.class=="string"&&(r.properties.class=r.properties.class.split(/\s+/g)),Array.isArray(r.properties.class)||(r.properties.class=[]);const t=Array.isArray(e)?e:e.split(/\s+/g);for(const n of t)n&&!r.properties.class.includes(n)&&r.properties.class.push(n)}var G=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Re={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function Dr(r,e){const t=r.indexOf("\x1B[",e);if(t!==-1){const n=r.indexOf("m",t);return{sequence:r.substring(t+2,n).split(";"),startPosition:t,position:n+1}}return{position:r.length}}function Qe(r,e){let t=1;const n=r[e+t++];let i;if(n==="2"){const o=[r[e+t++],r[e+t++],r[e+t]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(i={type:"rgb",rgb:o})}else if(n==="5"){const o=Number.parseInt(r[e+t]);Number.isNaN(o)||(i={type:"table",index:Number(o)})}return[t,i]}function Nr(r){const e=[];for(let t=0;t<r.length;t++){const n=r[t],i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)Re[i]&&e.push({type:"setDecoration",value:Re[i]});else if(i<=29){const o=Re[i-20];o&&e.push({type:"resetDecoration",value:o})}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:G[i-30]}});else if(i===38){const[o,s]=Qe(r,t);s&&e.push({type:"setForegroundColor",value:s}),t+=o}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:G[i-40]}});else if(i===48){const[o,s]=Qe(r,t);s&&e.push({type:"setBackgroundColor",value:s}),t+=o}else i===49?e.push({type:"resetBackgroundColor"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:G[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:G[i-100+8]}})}return e}function xr(){let r=null,e=null,t=new Set;return{parse(n){const i=[];let o=0;do{const s=Dr(n,o),l=s.sequence?n.substring(o,s.startPosition):n.substring(o);if(l.length>0&&i.push({value:l,foreground:r,background:e,decorations:new Set(t)}),s.sequence){const a=Nr(s.sequence);for(const u of a)u.type==="resetAll"?(r=null,e=null,t.clear()):u.type==="resetForegroundColor"?r=null:u.type==="resetBackgroundColor"?e=null:u.type==="resetDecoration"&&t.delete(u.value);for(const u of a)u.type==="setForegroundColor"?r=u.value:u.type==="setBackgroundColor"?e=u.value:u.type==="setDecoration"&&t.add(u.value)}o=s.position}while(o<n.length);return i}}}var Vr={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Mr(r=Vr){function e(l){return r[l]}function t(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<G.length;u++)n.push(e(G[u]));let l=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)n.push(t([l[u],l[m],l[p]]));let a=8;for(let u=0;u<24;u++,a+=10)n.push(t([a,a,a]));return n}function o(l){return i()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return t(l.rgb);case"table":return o(l.index)}}return{value:s}}function Br(r,e,t){const n={...r.colorReplacements,...t?.colorReplacements},i=e.split(/\r?\n/),o=Mr(Object.fromEntries(G.map(l=>[l,r.colors?.[`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`]]))),s=xr();return i.map(l=>s.parse(l).map(a=>{let u;a.decorations.has("reverse")?u=a.background?o.value(a.background):r.bg:u=a.foreground?o.value(a.foreground):r.fg,u=wt(u,n),a.decorations.has("dim")&&(u=Gr(u));let m=x.None;return a.decorations.has("bold")&&(m|=x.Bold),a.decorations.has("italic")&&(m|=x.Italic),a.decorations.has("underline")&&(m|=x.Underline),{content:a.value,color:u,fontStyle:m}}))}function Gr(r){const e=r.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e)if(e[3]){const n=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${n}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(n=>`${n}${n}`).join("")}80`;const t=r.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:r}function De(r,e,t={}){const{lang:n="text",theme:i=r.getLoadedThemes()[0]}=t;if(kt(n))return[...e.split(/\r\n|\r|\n/).map(u=>[{content:u}])];const{theme:o,colorMap:s}=r.setTheme(i);if(n==="ansi")return Br(o,e,t);const l=r.getLangGrammar(n);return jr(e,l,o,s,t)}function jr(r,e,t,n,i){const o={...t.colorReplacements,...i?.colorReplacements},s=r.split(/\r\n|\r|\n/);let l=Tn,a=[];const u=[];for(let m=0,p=s.length;m<p;m++){const d=s[m];if(d===""){a=[],u.push([]);continue}let _,f,R;i.includeExplanation&&(_=e.tokenizeLine(d,l),f=_.tokens,R=0);const y=e.tokenizeLine2(d,l),g=y.tokens.length/2;for(let E=0;E<g;E++){const A=y.tokens[2*E],w=E+1<g?y.tokens[2*E+2]:d.length;if(A===w)continue;const O=y.tokens[2*E+1],B=M.getForeground(O),q=wt(n[B],o),Vt=M.getFontStyle(O),he={content:d.substring(A,w),color:q,fontStyle:Vt};if(i.includeExplanation){he.explanation=[];let xe=0;for(;A+xe<w;){const fe=f[R],Ve=d.substring(fe.startIndex,fe.endIndex);xe+=Ve.length,he.explanation.push({content:Ve,scopes:Ur(t,fe.scopes)}),R+=1}}a.push(he)}u.push(a),a=[],l=y.ruleStack}return u}function Ur(r,e){const t=[];for(let n=0,i=e.length;n<i;n++){const o=e.slice(0,n),s=e[n];t[n]={scopeName:s,themeMatches:$r(r,s,o)}}return t}function Ze(r,e){const t=`${r}.`;return r===e||e.substring(0,t.length)===t}function Fr(r,e,t,n){if(!Ze(r,t))return!1;let i=e.length-1,o=n.length-1;for(;i>=0&&o>=0;)Ze(e[i],n[o])&&(i-=1),o-=1;return i===-1}function $r(r,e,t){const n=[];let i=0;for(let o=0,s=r.settings.length;o<s;o++){const l=r.settings[o];let a;if(typeof l.scope=="string")a=l.scope.split(/,/).map(u=>u.trim());else if(Array.isArray(l.scope))a=l.scope;else continue;for(let u=0,m=a.length;u<m;u++){const d=a[u].split(/ /),_=d[d.length-1],f=d.slice(0,d.length-1);Fr(_,f,e,t)&&(n[i++]=l,u=m)}}return n}function wt(r,e){return e?.[r.toLowerCase()]||r}function It(r,e,t){const n=Object.entries(t.themes).filter(s=>s[1]).map(s=>({color:s[0],theme:s[1]})),i=Wr(...n.map(s=>De(r,e,{...t,theme:s.theme,includeExplanation:!1})));return i[0].map((s,l)=>s.map((a,u)=>{const m={content:a.content,variants:{}};return i.forEach((p,d)=>{const{content:_,explanation:f,...R}=p[l][u];m.variants[n[d].color]=R}),m}))}function Wr(...r){const e=r.map(()=>[]),t=r.length;for(let n=0;n<r[0].length;n++){const i=r.map(a=>a[n]),o=e.map(()=>[]);e.forEach((a,u)=>a.push(o[u]));const s=i.map(()=>0),l=i.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(u=>u.content.length));for(let u=0;u<t;u++){const m=l[u];m.content.length===a?(o[u].push(m),s[u]+=1,l[u]=i[u][s[u]]):(o[u].push({...m,content:m.content.slice(0,a)}),l[u]={...m,content:m.content.slice(a)})}}}return e}function pe(r,e,t,n={meta:{},options:t,codeToHast:(i,o)=>pe(r,i,o)}){let i=e;for(const m of t.transformers||[])i=m.preprocess?.call(n,i,t)||i;let o,s,l,a,u;if("themes"in t){const{defaultColor:m="light",cssVariablePrefix:p="--shiki-"}=t,d=Object.entries(t.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,g)=>y.color===m?-1:g.color===m?1:0);if(d.length===0)throw new Error("[shikiji] `themes` option must not be empty");const _=It(r,i,t);if(m&&!d.find(y=>y.color===m))throw new Error(`[shikiji] \`themes\` option must contain the defaultColor key \`${m}\``);const f=d.map(y=>r.getTheme(y.theme)),R=d.map(y=>y.color);l=_.map(y=>y.map(g=>Hr(g,R,p,m))),s=d.map((y,g)=>(g===0&&m?"":`${p+y.color}:`)+f[g].fg).join(";"),o=d.map((y,g)=>(g===0&&m?"":`${p+y.color}-bg:`)+f[g].bg).join(";"),a=`shiki-themes ${f.map(y=>y.name).join(" ")}`,u=m?void 0:[s,o].join(";")}else if("theme"in t){l=De(r,i,{...t,includeExplanation:!1});const m=r.getTheme(t.theme);o=m.bg,s=m.fg,a=m.name}else throw new Error("[shikiji] Invalid options, either `theme` or `themes` must be provided");return zr(l,{...t,fg:s,bg:o,themeName:a,rootStyle:u},n)}function Hr(r,e,t,n){const i={content:r.content,explanation:r.explanation},o=e.map(a=>Dt(r.variants[a])),s=new Set(o.flatMap(a=>Object.keys(a))),l=o.reduce((a,u,m)=>{for(const p of s){const d=u[p]||"inherit";if(m===0&&n)a[p]=d;else{const _=t+e[m]+(p==="color"?"":`-${p}`);a[p]?a[p]+=`;${_}:${d}`:a[p]=`${_}:${d}`}}return a},{});return i.htmlStyle=n?Nt(l):Object.values(l).join(";"),i}function zr(r,e,t){const{mergeWhitespaces:n=!0,transformers:i=[]}=e;e.transforms&&(i.push(e.transforms),console.warn("[shikiji] `transforms` option is deprecated, use `transformers` instead")),n===!0?r=qr(r):n==="never"&&(r=Kr(r));const o=[],s={type:"root",children:[]};let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([d])=>!d.startsWith("_")))},children:[]},a={type:"element",tagName:"code",properties:{},children:o};const u=[],m={...t,get tokens(){return r},get options(){return e},get root(){return s},get pre(){return l},get code(){return a},get lines(){return u}};r.forEach((d,_)=>{_&&o.push({type:"text",value:`
|
|
12
12
|
`});let f={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const y of d){let g={type:"element",tagName:"span",properties:{},children:[{type:"text",value:y.content}]};const E=y.htmlStyle||Nt(Dt(y));E&&(g.properties.style=E);for(const A of i)g=A?.token?.call(m,g,_+1,R,f)||g;f.children.push(g),R+=y.content.length}for(const y of i)f=y?.line?.call(m,f,_+1)||f;u.push(f),o.push(f)});for(const d of i)a=d?.code?.call(m,a)||a;l.children.push(a);for(const d of i)l=d?.pre?.call(m,l)||l;s.children.push(l);let p=s;for(const d of i)p=d?.root?.call(m,p)||p;return p}function Dt(r){const e={};return r.color&&(e.color=r.color),r.fontStyle&&(r.fontStyle&x.Italic&&(e["font-style"]="italic"),r.fontStyle&x.Bold&&(e["font-weight"]="bold"),r.fontStyle&x.Underline&&(e["text-decoration"]="underline")),e}function Nt(r){return Object.entries(r).map(([e,t])=>`${e}:${t}`).join(";")}function qr(r){return r.map(e=>{const t=[];let n="";return e.forEach((i,o)=>{const l=!(i.fontStyle&&i.fontStyle&x.Underline);l&&i.content.match(/^\s+$/)&&e[o+1]?n+=i.content:n?(l?t.push({...i,content:n+i.content}):t.push({content:n},i),n=""):t.push(i)}),t})}function Kr(r){return r.map(e=>e.flatMap(t=>{if(t.content.match(/^\s+$/))return t;const n=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return t;const[,i,o,s]=n;if(!i&&!s)return t;const l=[{...t,content:o}];return i&&l.unshift({content:i}),s&&l.push({content:s}),l}))}function Yr(r,e,t){const n={meta:{},options:t,codeToHast:(o,s)=>pe(r,o,s)};let i=Or(pe(r,e,t,n));for(const o of t.transformers||[])i=o.postprocess?.call(n,i,t)||i;return i}async function Xr(r){let e,t;const n={};function i(d){t=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(){return typeof performance<"u"?performance.now():Date.now()}function s(d,_,f){n.HEAPU8.copyWithin(d,_,_+f)}function l(){return 2147483648}function a(d){try{return e.grow(d-t.byteLength+65535>>>16),i(e.buffer),1}catch{}}function u(d){const _=n.HEAPU8.length;d=d>>>0;const f=l();if(d>f)return!1;const R=(y,g)=>y+(g-y%g)%g;for(let y=1;y<=4;y*=2){let g=_*(1+.2/y);g=Math.min(g,d+100663296);const E=Math.min(f,R(Math.max(d,g),65536));if(a(E))return!0}return!1}const m={emscripten_get_now:o,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function p(){const _=await r({env:m,wasi_snapshot_preview1:m});e=_.memory,i(e.buffer),Object.assign(n,_)}return await p(),n}let S=null,Jr=!1;function Qr(r){throw new Error(r.UTF8ToString(r.getLastOnigError()))}class de{static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){const o=e.charCodeAt(n);let s=o,l=!1;if(o>=55296&&o<=56319&&n+1<i){const a=e.charCodeAt(n+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?t+=1:s<=2047?t+=2:s<=65535?t+=3:t+=4,l&&n++}return t}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(e){const t=e.length,n=de._utf8ByteLength(e),i=n!==t,o=i?new Uint32Array(t+1):null;i&&(o[t]=n);const s=i?new Uint32Array(n+1):null;i&&(s[n]=t);const l=new Uint8Array(n);let a=0;for(let u=0;u<t;u++){const m=e.charCodeAt(u);let p=m,d=!1;if(m>=55296&&m<=56319&&u+1<t){const _=e.charCodeAt(u+1);_>=56320&&_<=57343&&(p=(m-55296<<10)+65536|_-56320,d=!0)}i&&(o[u]=a,d&&(o[u+1]=a),p<=127?s[a+0]=u:p<=2047?(s[a+0]=u,s[a+1]=u):p<=65535?(s[a+0]=u,s[a+1]=u,s[a+2]=u):(s[a+0]=u,s[a+1]=u,s[a+2]=u,s[a+3]=u)),p<=127?l[a++]=p:p<=2047?(l[a++]=192|(p&1984)>>>6,l[a++]=128|(p&63)>>>0):p<=65535?(l[a++]=224|(p&61440)>>>12,l[a++]=128|(p&4032)>>>6,l[a++]=128|(p&63)>>>0):(l[a++]=240|(p&1835008)>>>18,l[a++]=128|(p&258048)>>>12,l[a++]=128|(p&4032)>>>6,l[a++]=128|(p&63)>>>0),d&&u++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}createString(e){const t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class D{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++D.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(e){if(!S)throw new Error("Must invoke loadWasm first.");this._onigBinding=S,this.content=e;const t=new de(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!D._sharedPtrInUse?(D._sharedPtr||(D._sharedPtr=S.omalloc(1e4)),D._sharedPtrInUse=!0,S.HEAPU8.set(t.utf8Value,D._sharedPtr),this.ptr=D._sharedPtr):this.ptr=t.createString(S)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===D._sharedPtr?D._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Zr{_onigBinding;_ptr;constructor(e){if(!S)throw new Error("Must invoke loadWasm first.");const t=[],n=[];for(let l=0,a=e.length;l<a;l++){const u=new de(e[l]);t[l]=u.createString(S),n[l]=u.utf8Length}const i=S.omalloc(4*e.length);S.HEAPU32.set(t,i/4);const o=S.omalloc(4*e.length);S.HEAPU32.set(n,o/4);const s=S.createOnigScanner(i,o,e.length);for(let l=0,a=e.length;l<a;l++)S.ofree(t[l]);S.ofree(o),S.ofree(i),s===0&&Qr(S),this._onigBinding=S,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=Jr,o=0;if(typeof n=="number"?(n&8&&(i=!0),o=n):typeof n=="boolean"&&(i=n),typeof e=="string"){e=new D(e);const s=this._findNextMatchSync(e,t,i,o);return e.dispose(),s}return this._findNextMatchSync(e,t,i,o)}_findNextMatchSync(e,t,n,i){const o=this._onigBinding;let s;if(n?s=o.findNextOnigScannerMatchDbg(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i):s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i),s===0)return null;const l=o.HEAPU32;let a=s/4;const u=l[a++],m=l[a++],p=[];for(let d=0;d<m;d++){const _=e.convertUtf8OffsetToUtf16(l[a++]),f=e.convertUtf8OffsetToUtf16(l[a++]);p[d]={start:_,end:f,length:f-_}}return{index:u,captureIndices:p}}}function ei(r){return typeof r.instantiator=="function"}function ti(r){return typeof r.default=="function"}function ni(r){return typeof r.data<"u"}function ri(r){return typeof Response<"u"&&r instanceof Response}function ii(r){return typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||ArrayBuffer.isView(r))||typeof Buffer<"u"&&Buffer.isBuffer(r)||typeof SharedArrayBuffer<"u"&&r instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&r instanceof Uint32Array}let oe;function oi(r){if(oe)return oe;async function e(){S=await Xr(async t=>{let n=r;return n=await n,typeof n=="function"&&(n=await n(t)),typeof n=="function"&&(n=await n(t)),ei(n)?n=await n.instantiator(t):ti(n)?n=await n.default(t):(ni(n)&&(n=n.data),ri(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await si(n)(t):n=await li(n)(t):ii(n)&&(n=await ai(n)(t))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return oe=e(),oe}function ai(r){return e=>WebAssembly.instantiate(r,e)}function si(r){return e=>WebAssembly.instantiateStreaming(r,e)}function li(r){return async e=>{const t=await r.arrayBuffer();return WebAssembly.instantiate(t,e)}}function ui(r){return new D(r)}function ci(r){return new Zr(r)}const et={light:"#333333",dark:"#bbbbbb"},tt={light:"#fffffe",dark:"#1e1e1e"},nt="__shiki_resolved";function Ne(r){if(r?.[nt])return r;const e={...r};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:t,fg:n}=e;if(!t||!n){const l=e.settings?e.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(n=l.settings.foreground),l?.settings?.background&&(t=l.settings.background),!n&&e?.colors?.["editor.foreground"]&&(n=e.colors["editor.foreground"]),!t&&e?.colors?.["editor.background"]&&(t=e.colors["editor.background"]),n||(n=e.type==="light"?et.light:et.dark),t||(t=e.type==="light"?tt.light:tt.dark),e.fg=n,e.bg=t}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let i=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);i+=1;const a=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}e.settings=e.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),u=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!u)return l;const m={...l,settings:{...l.settings}};if(a){const p=s(l.settings.foreground);e.colorReplacements[p]=l.settings.foreground,m.settings.foreground=p}if(u){const p=s(l.settings.background);e.colorReplacements[p]=l.settings.background,m.settings.background=p}return m});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const a=s(e.colors[l]);e.colorReplacements[a]=e.colors[l],e.colors[l]=a}return Object.defineProperty(e,nt,{enumerable:!1,writable:!1,value:!0}),e}const Ri=Ne;class mi extends Pn{_resolver;_themes;_langs;_resolvedThemes={};_resolvedGrammars={};_langMap={};_langGraph=new Map;alias={};constructor(e,t,n){super(e),this._resolver=e,this._themes=t,this._langs=n,t.forEach(i=>this.loadTheme(i)),n.forEach(i=>this.loadLanguage(i))}getTheme(e){return typeof e=="string"?this._resolvedThemes[e]:this.loadTheme(e)}loadTheme(e){const t=Ne(e);return t.name&&(this._resolvedThemes[t.name]=t),t}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(e){if(this.alias[e]){const t=new Set([e]);for(;this.alias[e];){if(e=this.alias[e],t.has(e))throw new Error(`[shikiji] Circular alias \`${Array.from(t).join(" -> ")} -> ${e}\``);t.add(e)}}return this._resolvedGrammars[e]}async loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set(Object.values(this._langMap).filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const i=await this.loadGrammarWithConfiguration(e.scopeName,1,n);if(this._resolvedGrammars[e.name]=i,e.aliases&&e.aliases.forEach(o=>{this.alias[o]=e.name}),t.size)for(const o of t)delete this._resolvedGrammars[o.name],this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),await this.loadLanguage(this._langMap[o.name])}async init(){this._themes.map(e=>this.loadTheme(e)),await this.loadLanguages(this._langs)}async loadLanguages(e){for(const i of e)this.resolveEmbeddedLanguages(i);const t=Array.from(this._langGraph.entries()),n=t.filter(([i,o])=>!o);if(n.length){const i=t.filter(([o,s])=>s&&s.embeddedLangs?.some(l=>n.map(([a])=>a).includes(l))).filter(o=>!n.includes(o));throw new Error(`[shikiji] Missing languages ${n.map(([o])=>`\`${o}\``).join(", ")}, required by ${i.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[i,o]of t)this._resolver.addLanguage(o);for(const[i,o]of t)await this.loadLanguage(o)}getLoadedLanguages(){return Object.keys({...this._resolvedGrammars,...this.alias})}resolveEmbeddedLanguages(e){if(this._langMap[e.name]=e,this._langGraph.set(e.name,e),e.embeddedLangs)for(const t of e.embeddedLangs)this._langGraph.set(t,this._langMap[t])}}class pi{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(e,t){this._onigLibPromise=e,t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLibPromise}getLangRegistration(e){return this._langs.get(e)}async loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const o=t.slice(0,i).join(".");n=[...n,...this._injections.get(o)||[]]}return n}}async function xt(r={}){async function e(g){return Promise.resolve(typeof g=="function"?g():g).then(E=>E.default||E)}async function t(g){return Array.from(new Set((await Promise.all(g.map(async E=>await e(E).then(A=>Array.isArray(A)?A:[A])))).flat()))}const[n,i]=await Promise.all([Promise.all((r.themes||[]).map(e)).then(g=>g.map(Ne)),t(r.langs||[]),r.loadWasm?oi(r.loadWasm):void 0]),o=new pi(Promise.resolve({createOnigScanner(g){return ci(g)},createOnigString(g){return ui(g)}}),i),s=new mi(o,n,i);Object.assign(s.alias,r.langAlias),await s.init();let l;function a(g){const E=s.getGrammar(g);if(!E)throw new Error(`[shikiji] Language \`${g}\` not found, you may need to load it first`);return E}function u(g){const E=s.getTheme(g);if(!E)throw new Error(`[shikiji] Theme \`${g}\` not found, you may need to load it first`);return E}function m(g){const E=u(g);l!==g&&(s.setTheme(E),l=g);const A=s.getColorMap();return{theme:E,colorMap:A}}function p(){return s.getLoadedThemes()}function d(){return s.getLoadedLanguages()}async function _(...g){await s.loadLanguages(await t(g))}async function f(...g){await Promise.all(g.map(async E=>s.loadTheme(await e(E))))}function R(g){Object.assign(s.alias,g)}function y(){return s.alias}return{setTheme:m,getTheme:u,getLangGrammar:a,getLoadedThemes:p,getLoadedLanguages:d,getAlias:y,updateAlias:R,loadLanguage:_,loadTheme:f}}const vi=xt;async function di(r={}){const e=await xt(r);return{codeToThemedTokens:(t,n)=>De(e,t,n),codeToTokensWithThemes:(t,n)=>It(e,t,n),codeToHast:(t,n)=>pe(e,t,n),codeToHtml:(t,n)=>Yr(e,t,n),loadLanguage:e.loadLanguage,loadTheme:e.loadTheme,getTheme:e.getTheme,getLangGrammar:e.getLangGrammar,setTheme:e.setTheme,getLoadedThemes:e.getLoadedThemes,getLoadedLanguages:e.getLoadedLanguages,getInternalContext:()=>e}}function hi(r,e,t){async function n(i={}){function o(m){if(typeof m=="string"){if(Ir(m))return[];const p=r[m];if(!p)throw new Error(`[shikiji] Language \`${m}\` is not built-in.`);return p}return m}function s(m){if(typeof m=="string"){const p=e[m];if(!p)throw new Error(`[shikiji] Theme \`${m}\` is not built-in.`);return p}return m}const l=(i.themes??[]).map(m=>s(m)),a=(i.langs??[]).map(m=>o(m)),u=await di({...i,themes:l,langs:a,loadWasm:t});return{...u,loadLanguage(...m){return u.loadLanguage(...m.map(o))},loadTheme(...m){return u.loadTheme(...m.map(s))}}}return n}function fi(r){let e;async function t(l={}){if(e){const a=await e;return await Promise.all([a.loadTheme(...ie(l.theme||[])),a.loadLanguage(...ie(l.lang||[]))]),a}else return e=r({themes:ie(l.theme||[]),langs:ie(l.lang||[])}),e}async function n(l,a){return(await t({lang:a.lang,theme:"theme"in a?[a.theme]:Object.values(a.themes)})).codeToHtml(l,a)}async function i(l,a){return(await t({lang:a.lang,theme:"theme"in a?[a.theme]:Object.values(a.themes)})).codeToHast(l,a)}async function o(l,a){return(await t(a)).codeToThemedTokens(l,a)}async function s(l,a){return(await t({lang:a.lang,theme:Object.values(a.themes).filter(Boolean)})).codeToTokensWithThemes(l,a)}return{getSingletonHighlighter:()=>t(),codeToHtml:n,codeToHast:i,codeToThemedTokens:o,codeToTokensWithThemes:s}}let ve=null;async function _i(){return ve||(ve=c(()=>import("./onig.mBJmD8D5.js"),__vite__mapDeps([]),import.meta.url).then(r=>({data:r.default}))),ve}const gi=hi(Gt,Ut,_i),{codeToHtml:Ai,codeToHast:Li,codeToThemedTokens:Pi,codeToTokensWithThemes:Ti,getSingletonHighlighter:Si}=fi(gi);function Ci(r={}){const{name:e="css-variables",variablePrefix:t="--shiki-",fontStyle:n=!0}=r,i=s=>r.variableDefaults?.[s]?`var(${t}${s}, ${r.variableDefaults[s]})`:`var(${t}${s})`,o={name:e,type:"dark",colors:{"editor.foreground":i("foreground"),"editor.background":i("background"),"terminal.ansiBlack":i("ansi-black"),"terminal.ansiRed":i("ansi-red"),"terminal.ansiGreen":i("ansi-green"),"terminal.ansiYellow":i("ansi-yellow"),"terminal.ansiBlue":i("ansi-blue"),"terminal.ansiMagenta":i("ansi-magenta"),"terminal.ansiCyan":i("ansi-cyan"),"terminal.ansiWhite":i("ansi-white"),"terminal.ansiBrightBlack":i("ansi-bright-black"),"terminal.ansiBrightRed":i("ansi-bright-red"),"terminal.ansiBrightGreen":i("ansi-bright-green"),"terminal.ansiBrightYellow":i("ansi-bright-yellow"),"terminal.ansiBrightBlue":i("ansi-bright-blue"),"terminal.ansiBrightMagenta":i("ansi-bright-magenta"),"terminal.ansiBrightCyan":i("ansi-bright-cyan"),"terminal.ansiBrightWhite":i("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:i("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:i("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:i("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:i("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:i("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:i("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:i("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:i("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:i("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:i("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:i("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:i("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:i("token-keyword")}}]};return n||(o.tokenColors=o.tokenColors?.map(s=>(s.settings?.fontStyle&&delete s.settings.fontStyle,s))),o}export{x as FontStyle,bi as addClassToHast,Gt as bundledLanguages,Bt as bundledLanguagesAlias,Mt as bundledLanguagesBase,rt as bundledLanguagesInfo,Ut as bundledThemes,jt as bundledThemesInfo,Li as codeToHast,Ai as codeToHtml,Pi as codeToThemedTokens,Ti as codeToTokensWithThemes,Ci as createCssVariablesTheme,fi as createSingletonShorthands,hi as createdBundledHighlighter,gi as getHighlighter,di as getHighlighterCore,vi as getShikiContext,xt as getShikiInternal,Si as getSingletonHighlighter,_i as getWasmInlined,kt as isPlaintext,Ir as isSpecialLang,oi as loadWasm,Ne as normalizeTheme,ie as toArray,Ri as toShikiTheme,Br as tokenizeAnsiWithTheme};
|
|
13
13
|
function __vite__mapDeps(indexes) {
|
|
14
14
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as V}from"./singletons.
|
|
1
|
+
import{c as V}from"./singletons.7gor0m3T.js";import{n as v,k as H,H as g,a1 as K,G as p,a2 as O,a as j,d as _,a3 as N,i as b,g as X,u as P,r as U,v as D,K as Y,a4 as E,a5 as W,e as y,c as $,f as k,q as x,j as F,a6 as ee,t as te,b as le,s as se,h as A}from"./scheduler.T8nCnPq2.js";import{S as z,i as S,t as T,b as w,c as J,a as M,m as Q,d as R}from"./index.CP0w37D5.js";import{d as ne}from"./preferences.WetYOKHg.js";import{g as q,a as oe}from"./spread.rEx3vLA9.js";import{e as B}from"./each.oUkpMz5d.js";import{n as ae}from"./stores.sdmSk4uL.js";import{d as ie}from"./index.XEtU8W2G.js";const qe=V("goto");/**
|
|
2
2
|
* @license lucide-svelte v0.303.0 - ISC
|
|
3
3
|
|
|
4
4
|
This source code is licensed under the ISC license.
|
package/build/client/_app/immutable/chunks/{singletons.vwJVlVCQ.js → singletons.7gor0m3T.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as u}from"./index.XEtU8W2G.js";const v=globalThis.
|
|
1
|
+
import{w as u}from"./index.XEtU8W2G.js";const v=globalThis.__sveltekit_1n2tz0?.base??"",k=globalThis.__sveltekit_1n2tz0?.assets??v,m="1705278261299",T="sveltekit:snapshot",w="sveltekit:scroll",I="sveltekit:states",S="sveltekit:pageurl",y="sveltekit:history",N="sveltekit:navigation",f={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},_=location.origin;function U(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function L(){return{x:pageXOffset,y:pageYOffset}}function c(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const d={...f,"":f.hover};function h(t){let e=t.assignedSlot??t.parentNode;return e?.nodeType===11&&(e=e.host),e}function O(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=h(t)}}function Y(t,e){let n;try{n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,r=!n||!!a||A(n,e)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),l=n?.origin===_&&t.hasAttribute("download");return{url:n,external:r,target:a,download:l}}function x(t){let e=null,n=null,a=null,r=null,l=null,o=null,s=t;for(;s&&s!==document.documentElement;)a===null&&(a=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),e===null&&(e=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),o===null&&(o=c(s,"replacestate")),s=h(s);function i(b){switch(b){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:d[a??"off"],preload_data:d[r??"off"],keepfocus:i(e),noscroll:i(n),reload:i(l),replace_state:i(o)}}function p(t){const e=u(t);let n=!0;function a(){n=!0,e.update(o=>o)}function r(o){n=!1,e.set(o)}function l(o){let s;return e.subscribe(i=>{(s===void 0||n&&i!==s)&&o(s=i)})}return{notify:a,set:r,subscribe:l}}function E(){const{set:t,subscribe:e}=u(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${k}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==m;return o&&(t(!0),clearTimeout(n)),o}catch{return!1}}return{subscribe:e,check:a}}function A(t,e){return t.origin!==_||!t.pathname.startsWith(e)}let g;function P(t){g=t.client}function V(t){return(...e)=>g[t](...e)}const G={url:p({}),page:p({}),navigating:u(null),updated:E()};export{y as H,N,S as P,w as S,I as a,T as b,V as c,x as d,L as e,O as f,Y as g,v as h,A as i,f as j,P as k,_ as o,U as r,G as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r}from"./singletons.
|
|
1
|
+
import{s as r}from"./singletons.7gor0m3T.js";const e=()=>{const s=r;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},a={subscribe(s){return e().page.subscribe(s)}},i={subscribe(s){return e().navigating.subscribe(s)}};export{i as n,a as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{_ as u}from"../chunks/5.MErjPYv9.js";import{n as q,l as C,G as m,o as G,i as w,d as g,M as Q,N as U,e as z,c as B,a as F,f as A,O as P,t as H,b as J,s as K,P as W,w as R,Q as b}from"../chunks/scheduler.T8nCnPq2.js";import{S as X,i as Y,b as p,e as D,t as d,g as I,c as k,a as V,m as E,d as v}from"../chunks/index.CP0w37D5.js";const ae={};function Z(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],form:t[2]}}}return n&&(e=b(n,c(_)),_[15](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[15](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[15](null),e&&v(e,t)}}}function x(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],$$slots:{default:[ne]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[14](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[14](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&65591&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[14](null),e&&v(e,t)}}}function ee(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],form:t[2]}}}return n&&(e=b(n,c(_)),_[13](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[13](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[13](null),e&&v(e,t)}}}function te(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],$$slots:{default:[ie]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[12](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[12](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&65575&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[12](null),e&&v(e,t)}}}function ie(_){let e,i,o;var n=_[1][2];function c(t,s){return{props:{data:t[5],form:t[2]}}}return n&&(e=b(n,c(_)),_[11](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][2])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[11](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&32&&(r.data=t[5]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[11](null),e&&v(e,t)}}}function ne(_){let e,i,o,n;const c=[te,ee],t=[];function s(r,l){return r[1][2]?0:1}return e=s(_),i=t[e]=c[e](_),{c(){i.c(),o=m()},l(r){i.l(r),o=m()},m(r,l){t[e].m(r,l),w(r,o,l),n=!0},p(r,l){let a=e;e=s(r),e===a?t[e].p(r,l):(I(),p(t[a],1,1,()=>{t[a]=null}),D(),i=t[e],i?i.p(r,l):(i=t[e]=c[e](r),i.c()),d(i,1),i.m(o.parentNode,o))},i(r){n||(d(i),n=!0)},o(r){p(i),n=!1},d(r){r&&g(o),t[e].d(r)}}}function T(_){let e,i=_[7]&&N(_);return{c(){e=z("div"),i&&i.c(),this.h()},l(o){e=B(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var n=F(e);i&&i.l(n),n.forEach(g),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,n){w(o,e,n),i&&i.m(e,null)},p(o,n){o[7]?i?i.p(o,n):(i=N(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(o){o&&g(e),i&&i.d()}}}function N(_){let e;return{c(){e=H(_[8])},l(i){e=J(i,_[8])},m(i,o){w(i,e,o)},p(i,o){o&256&&K(e,i[8])},d(i){i&&g(e)}}}function re(_){let e,i,o,n,c;const t=[x,Z],s=[];function r(a,h){return a[1][1]?0:1}e=r(_),i=s[e]=t[e](_);let l=_[6]&&T(_);return{c(){i.c(),o=C(),l&&l.c(),n=m()},l(a){i.l(a),o=G(a),l&&l.l(a),n=m()},m(a,h){s[e].m(a,h),w(a,o,h),l&&l.m(a,h),w(a,n,h),c=!0},p(a,[h]){let O=e;e=r(a),e===O?s[e].p(a,h):(I(),p(s[O],1,1,()=>{s[O]=null}),D(),i=s[e],i?i.p(a,h):(i=s[e]=t[e](a),i.c()),d(i,1),i.m(o.parentNode,o)),a[6]?l?l.p(a,h):(l=T(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(a){c||(d(i),c=!0)},o(a){p(i),c=!1},d(a){a&&(g(o),g(n)),s[e].d(a),l&&l.d(a)}}}function oe(_,e,i){let{stores:o}=e,{page:n}=e,{constructors:c}=e,{components:t=[]}=e,{form:s}=e,{data_0:r=null}=e,{data_1:l=null}=e,{data_2:a=null}=e;Q(o.page.notify);let h=!1,O=!1,L=null;U(()=>{const f=o.page.subscribe(()=>{h&&(i(7,O=!0),W().then(()=>{i(8,L=document.title||"untitled page")}))});return i(6,h=!0),f});function j(f){R[f?"unshift":"push"](()=>{t[2]=f,i(0,t)})}function y(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function $(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function M(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}function S(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}return _.$$set=f=>{"stores"in f&&i(9,o=f.stores),"page"in f&&i(10,n=f.page),"constructors"in f&&i(1,c=f.constructors),"components"in f&&i(0,t=f.components),"form"in f&&i(2,s=f.form),"data_0"in f&&i(3,r=f.data_0),"data_1"in f&&i(4,l=f.data_1),"data_2"in f&&i(5,a=f.data_2)},_.$$.update=()=>{_.$$.dirty&1536&&o.page.set(n)},[t,c,s,r,l,a,h,O,L,o,n,j,y,$,M,S]}class le extends X{constructor(e){super(),Y(this,e,oe,re,q,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const ce=[()=>u(()=>import("../nodes/0.
|
|
1
|
+
import{_ as u}from"../chunks/5.MErjPYv9.js";import{n as q,l as C,G as m,o as G,i as w,d as g,M as Q,N as U,e as z,c as B,a as F,f as A,O as P,t as H,b as J,s as K,P as W,w as R,Q as b}from"../chunks/scheduler.T8nCnPq2.js";import{S as X,i as Y,b as p,e as D,t as d,g as I,c as k,a as V,m as E,d as v}from"../chunks/index.CP0w37D5.js";const ae={};function Z(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],form:t[2]}}}return n&&(e=b(n,c(_)),_[15](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[15](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[15](null),e&&v(e,t)}}}function x(_){let e,i,o;var n=_[1][0];function c(t,s){return{props:{data:t[3],$$slots:{default:[ne]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[14](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][0])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[14](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&8&&(r.data=t[3]),s&65591&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[14](null),e&&v(e,t)}}}function ee(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],form:t[2]}}}return n&&(e=b(n,c(_)),_[13](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[13](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[13](null),e&&v(e,t)}}}function te(_){let e,i,o;var n=_[1][1];function c(t,s){return{props:{data:t[4],$$slots:{default:[ie]},$$scope:{ctx:t}}}}return n&&(e=b(n,c(_)),_[12](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][1])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[12](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&16&&(r.data=t[4]),s&65575&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[12](null),e&&v(e,t)}}}function ie(_){let e,i,o;var n=_[1][2];function c(t,s){return{props:{data:t[5],form:t[2]}}}return n&&(e=b(n,c(_)),_[11](e)),{c(){e&&k(e.$$.fragment),i=m()},l(t){e&&V(e.$$.fragment,t),i=m()},m(t,s){e&&E(e,t,s),w(t,i,s),o=!0},p(t,s){if(s&2&&n!==(n=t[1][2])){if(e){I();const r=e;p(r.$$.fragment,1,0,()=>{v(r,1)}),D()}n?(e=b(n,c(t)),t[11](e),k(e.$$.fragment),d(e.$$.fragment,1),E(e,i.parentNode,i)):e=null}else if(n){const r={};s&32&&(r.data=t[5]),s&4&&(r.form=t[2]),e.$set(r)}},i(t){o||(e&&d(e.$$.fragment,t),o=!0)},o(t){e&&p(e.$$.fragment,t),o=!1},d(t){t&&g(i),_[11](null),e&&v(e,t)}}}function ne(_){let e,i,o,n;const c=[te,ee],t=[];function s(r,l){return r[1][2]?0:1}return e=s(_),i=t[e]=c[e](_),{c(){i.c(),o=m()},l(r){i.l(r),o=m()},m(r,l){t[e].m(r,l),w(r,o,l),n=!0},p(r,l){let a=e;e=s(r),e===a?t[e].p(r,l):(I(),p(t[a],1,1,()=>{t[a]=null}),D(),i=t[e],i?i.p(r,l):(i=t[e]=c[e](r),i.c()),d(i,1),i.m(o.parentNode,o))},i(r){n||(d(i),n=!0)},o(r){p(i),n=!1},d(r){r&&g(o),t[e].d(r)}}}function T(_){let e,i=_[7]&&N(_);return{c(){e=z("div"),i&&i.c(),this.h()},l(o){e=B(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var n=F(e);i&&i.l(n),n.forEach(g),this.h()},h(){A(e,"id","svelte-announcer"),A(e,"aria-live","assertive"),A(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,n){w(o,e,n),i&&i.m(e,null)},p(o,n){o[7]?i?i.p(o,n):(i=N(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(o){o&&g(e),i&&i.d()}}}function N(_){let e;return{c(){e=H(_[8])},l(i){e=J(i,_[8])},m(i,o){w(i,e,o)},p(i,o){o&256&&K(e,i[8])},d(i){i&&g(e)}}}function re(_){let e,i,o,n,c;const t=[x,Z],s=[];function r(a,h){return a[1][1]?0:1}e=r(_),i=s[e]=t[e](_);let l=_[6]&&T(_);return{c(){i.c(),o=C(),l&&l.c(),n=m()},l(a){i.l(a),o=G(a),l&&l.l(a),n=m()},m(a,h){s[e].m(a,h),w(a,o,h),l&&l.m(a,h),w(a,n,h),c=!0},p(a,[h]){let O=e;e=r(a),e===O?s[e].p(a,h):(I(),p(s[O],1,1,()=>{s[O]=null}),D(),i=s[e],i?i.p(a,h):(i=s[e]=t[e](a),i.c()),d(i,1),i.m(o.parentNode,o)),a[6]?l?l.p(a,h):(l=T(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i(a){c||(d(i),c=!0)},o(a){p(i),c=!1},d(a){a&&(g(o),g(n)),s[e].d(a),l&&l.d(a)}}}function oe(_,e,i){let{stores:o}=e,{page:n}=e,{constructors:c}=e,{components:t=[]}=e,{form:s}=e,{data_0:r=null}=e,{data_1:l=null}=e,{data_2:a=null}=e;Q(o.page.notify);let h=!1,O=!1,L=null;U(()=>{const f=o.page.subscribe(()=>{h&&(i(7,O=!0),W().then(()=>{i(8,L=document.title||"untitled page")}))});return i(6,h=!0),f});function j(f){R[f?"unshift":"push"](()=>{t[2]=f,i(0,t)})}function y(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function $(f){R[f?"unshift":"push"](()=>{t[1]=f,i(0,t)})}function M(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}function S(f){R[f?"unshift":"push"](()=>{t[0]=f,i(0,t)})}return _.$$set=f=>{"stores"in f&&i(9,o=f.stores),"page"in f&&i(10,n=f.page),"constructors"in f&&i(1,c=f.constructors),"components"in f&&i(0,t=f.components),"form"in f&&i(2,s=f.form),"data_0"in f&&i(3,r=f.data_0),"data_1"in f&&i(4,l=f.data_1),"data_2"in f&&i(5,a=f.data_2)},_.$$.update=()=>{_.$$.dirty&1536&&o.page.set(n)},[t,c,s,r,l,a,h,O,L,o,n,j,y,$,M,S]}class le extends X{constructor(e){super(),Y(this,e,oe,re,q,{stores:9,page:10,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5})}}const ce=[()=>u(()=>import("../nodes/0.FkgixQg8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>u(()=>import("../nodes/1.LfY-Gknf.js"),__vite__mapDeps([9,1,2,4,5,6]),import.meta.url),()=>u(()=>import("../nodes/2.vkJXjTLs.js"),__vite__mapDeps([10,1,2,11,7,6]),import.meta.url),()=>u(()=>import("../nodes/3.4gRT3HSg.js"),__vite__mapDeps([12,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/4.byFKum4o.js"),__vite__mapDeps([15,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../chunks/5.MErjPYv9.js").then(_=>_.a),__vite__mapDeps([]),import.meta.url),()=>u(()=>import("../nodes/6.Jq6ShEd9.js"),__vite__mapDeps([16,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/7.71Z9fgfA.js"),__vite__mapDeps([17,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/8.6IDmM4ij.js"),__vite__mapDeps([18,1,2,3,13,11]),import.meta.url),()=>u(()=>import("../nodes/9.K5BmOR02.js"),__vite__mapDeps([19,1,2,13,11,14]),import.meta.url),()=>u(()=>import("../nodes/10.eAUN9e8j.js"),__vite__mapDeps([20,6,1,4,5,21,2,7,22,3,23,11,13,24]),import.meta.url),()=>u(()=>import("../nodes/11.RxDnejtk.js"),__vite__mapDeps([25,1,2,11,26,22,13]),import.meta.url),()=>u(()=>import("../nodes/12.dd-A-uM0.js"),__vite__mapDeps([27,1,2,7,6,23]),import.meta.url),()=>u(()=>import("../nodes/13.zRS6nLGa.js"),__vite__mapDeps([28,21,5,6,1,2,7,22,3,4,23,11]),import.meta.url),()=>u(()=>import("../nodes/14.GEWk9aUl.js"),__vite__mapDeps([29,1,2,11,13,26,22]),import.meta.url)],ue=[0],me={"/(search-page)":[10],"/about":[11],"/(opengrok-compat)/diff/[project]/[...file]":[-4,[2]],"/(opengrok-compat)/download/[project]/[...file]":[-5,[2]],"/(opengrok-compat)/help.jsp":[-6,[2]],"/(opengrok-compat)/history/[project]/[...file]":[-7,[2]],"/preferences":[12],"/(opengrok-compat)/raw/[project]/[...file]":[-8,[2]],"/repositories":[13],"/(opengrok-compat)/search":[-9,[2]],"/syntax":[14],"/(opengrok-compat)/xref/[project]/[...file]":[-10,[2]]},pe={handleError:({error:_})=>{console.error(_)}};export{me as dictionary,pe as hooks,ae as matchers,ce as nodes,le as root,ue as server_loads};
|
|
2
2
|
function __vite__mapDeps(indexes) {
|
|
3
3
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
4
|
-
__vite__mapDeps.viteFileDeps = ["../nodes/0.
|
|
4
|
+
__vite__mapDeps.viteFileDeps = ["../nodes/0.FkgixQg8.js","../chunks/scheduler.T8nCnPq2.js","../chunks/index.CP0w37D5.js","../chunks/each.oUkpMz5d.js","../chunks/stores.sdmSk4uL.js","../chunks/singletons.7gor0m3T.js","../chunks/index.XEtU8W2G.js","../chunks/preferences.WetYOKHg.js","../assets/0.o0zCXDLg.css","../nodes/1.LfY-Gknf.js","../nodes/2.vkJXjTLs.js","../chunks/link.czJPdQv3.js","../nodes/3.4gRT3HSg.js","../chunks/example-query.6BQBimAu.js","../chunks/regexp.8yO1-0W0.js","../nodes/4.byFKum4o.js","../nodes/6.Jq6ShEd9.js","../nodes/7.71Z9fgfA.js","../nodes/8.6IDmM4ij.js","../nodes/9.K5BmOR02.js","../nodes/10.eAUN9e8j.js","../chunks/loading-ellipsis.R0hKKLDn.js","../chunks/spread.rEx3vLA9.js","../chunks/integer-input.fvZuttUG.js","../chunks/5.MErjPYv9.js","../nodes/11.RxDnejtk.js","../chunks/doc-section-heading.sh2xxNsr.js","../nodes/12.dd-A-uM0.js","../nodes/13.zRS6nLGa.js","../nodes/14.GEWk9aUl.js"]
|
|
5
5
|
}
|
|
6
6
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
7
7
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{N as Se,P as ke}from"../chunks/scheduler.T8nCnPq2.js";import{S as ct,a as lt,b as ft,H,N as K,r as ne,o as Ae,P as Oe,f as Qe,g as Re,d as de,i as $e,e as Te,s as q,h as F,j as et,k as bt}from"../chunks/singletons.
|
|
1
|
+
import{N as Se,P as ke}from"../chunks/scheduler.T8nCnPq2.js";import{S as ct,a as lt,b as ft,H,N as K,r as ne,o as Ae,P as Oe,f as Qe,g as Re,d as de,i as $e,e as Te,s as q,h as F,j as et,k as bt}from"../chunks/singletons.7gor0m3T.js";new URL("sveltekit-internal://");function Et(e,a){return e==="/"||a==="ignore"?e:a==="never"?e.endsWith("/")?e.slice(0,-1):e:a==="always"&&!e.endsWith("/")?e+"/":e}function St(e){return e.split("%25").map(decodeURI).join("%25")}function kt(e){for(const a in e)e[a]=decodeURIComponent(e[a]);return e}function Pe({href:e}){return e.split("#")[0]}const At=["href","pathname","search","toString","toJSON"];function Ot(e,a,c){const o=new URL(e);Object.defineProperty(o,"searchParams",{value:new Proxy(o.searchParams,{get(u,f){if(f==="get"||f==="getAll"||f==="has")return l=>(c(l),u[f](l));a();const w=Reflect.get(u,f);return typeof w=="function"?w.bind(u):w}}),enumerable:!0,configurable:!0});for(const u of At)Object.defineProperty(o,u,{get(){return a(),e[u]},enumerable:!0,configurable:!0});return Rt(o),o}function Rt(e){Object.defineProperty(e,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const $t="/__data.json",Pt=".html__data.json";function It(e){return e.endsWith(".html")?e.replace(/\.html$/,Pt):e.replace(/\/$/,"")+$t}function jt(...e){let a=5381;for(const c of e)if(typeof c=="string"){let o=c.length;for(;o;)a=a*33^c.charCodeAt(--o)}else if(ArrayBuffer.isView(c)){const o=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);let u=o.length;for(;u;)a=a*33^o[--u]}else throw new TypeError("value must be a string or TypedArray");return(a>>>0).toString(36)}const ut=window.fetch;window.fetch=(e,a)=>((e instanceof Request?e.method:a?.method||"GET")!=="GET"&&ae.delete(Ce(e)),ut(e,a));const ae=new Map;function xt(e){const a=atob(e),c=new Uint8Array(a.length);for(let o=0;o<a.length;o++)c[o]=a.charCodeAt(o);return c.buffer}function Lt(e,a){const c=Ce(e,a),o=document.querySelector(c);if(o?.textContent){let{body:u,...f}=JSON.parse(o.textContent);const w=o.getAttribute("data-ttl");return w&&ae.set(c,{body:u,init:f,ttl:1e3*Number(w)}),o.getAttribute("data-b64")!==null&&(u=xt(u)),Promise.resolve(new Response(u,f))}return window.fetch(e,a)}function Nt(e,a,c){if(ae.size>0){const o=Ce(e,c),u=ae.get(o);if(u){if(performance.now()<u.ttl&&["default","force-cache","only-if-cached",void 0].includes(c?.cache))return new Response(u.body,u.init);ae.delete(o)}}return window.fetch(a,c)}function Ce(e,a){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(a?.headers||a?.body){const u=[];a.headers&&u.push([...new Headers(a.headers)].join(",")),a.body&&(typeof a.body=="string"||ArrayBuffer.isView(a.body))&&u.push(a.body),o+=`[data-hash="${jt(...u)}"]`}return o}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const a=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Dt(e).map(o=>{const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(u)return a.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(f)return a.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const w=o.split(/\[(.+?)\](?!\])/);return"/"+w.map((g,s)=>{if(s%2){if(g.startsWith("x+"))return Ie(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return Ie(String.fromCharCode(...g.slice(2).split("-").map(O=>parseInt(O,16))));const h=Ut.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,v,P,E,$]=h;return a.push({name:E,matcher:$,optional:!!v,rest:!!P,chained:P?s===1&&w[0]==="":!1}),P?"(.*?)":v?"([^/]*)?":"([^/]+?)"}return Ie(g)}).join("")}).join("")}/?$`),params:a}}function Ct(e){return!/^\([^)]+\)$/.test(e)}function Dt(e){return e.slice(1).split("/").filter(Ct)}function Mt(e,a,c){const o={},u=e.slice(1),f=u.filter(l=>l!==void 0);let w=0;for(let l=0;l<a.length;l+=1){const g=a[l];let s=u[l-w];if(g.chained&&g.rest&&w&&(s=u.slice(l-w,l+1).filter(h=>h).join("/"),w=0),s===void 0){g.rest&&(o[g.name]="");continue}if(!g.matcher||c[g.matcher](s)){o[g.name]=s;const h=a[l+1],v=u[l+1];h&&!h.rest&&h.optional&&v&&g.chained&&(w=0),!h&&!v&&Object.keys(o).length===f.length&&(w=0);continue}if(g.optional&&g.chained){w++;continue}return}if(!w)return o}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ft({nodes:e,server_loads:a,dictionary:c,matchers:o}){const u=new Set(a);return Object.entries(c).map(([l,[g,s,h]])=>{const{pattern:v,params:P}=Tt(l),E={id:l,exec:$=>{const O=v.exec($);if(O)return Mt(O,P,o)},errors:[1,...h||[]].map($=>e[$]),layouts:[0,...s||[]].map(w),leaf:f(g)};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E});function f(l){const g=l<0;return g&&(l=~l),[g,e[l]]}function w(l){return l===void 0?l:[u.has(l),e[l]]}}function De(e,a=JSON.parse){try{return a(sessionStorage[e])}catch{}}function je(e,a,c=JSON.stringify){const o=c(a);try{sessionStorage[e]=o}catch{}}class xe extends Error{constructor(a,c){super(a),this.name="DevalueError",this.path=c.join("")}}function tt(e){return Object(e)!==e}const Vt=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bt(e){const a=Object.getPrototypeOf(e);return a===Object.prototype||a===null||Object.getOwnPropertyNames(a).sort().join("\0")===Vt}function Ht(e){return Object.prototype.toString.call(e).slice(8,-1)}function qt(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
2
2
|
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function X(e){let a="",c=0;const o=e.length;for(let u=0;u<o;u+=1){const f=e[u],w=qt(f);w&&(a+=e.slice(c,u)+w,c=u+1)}return`"${c===0?e:a+e.slice(c)}"`}const Me=-1,dt=-2,pt=-3,ht=-4,_t=-5,Fe=-6;function Jt(e,a){return gt(JSON.parse(e),a)}function gt(e,a){if(typeof e=="number")return u(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const c=e,o=Array(c.length);function u(f,w=!1){if(f===Me)return;if(f===pt)return NaN;if(f===ht)return 1/0;if(f===_t)return-1/0;if(f===Fe)return-0;if(w)throw new Error("Invalid input");if(f in o)return o[f];const l=c[f];if(!l||typeof l!="object")o[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const g=l[0],s=a?.[g];if(s)return o[f]=s(u(l[1]));switch(g){case"Date":o[f]=new Date(l[1]);break;case"Set":const h=new Set;o[f]=h;for(let E=1;E<l.length;E+=1)h.add(u(l[E]));break;case"Map":const v=new Map;o[f]=v;for(let E=1;E<l.length;E+=2)v.set(u(l[E]),u(l[E+1]));break;case"RegExp":o[f]=new RegExp(l[1],l[2]);break;case"Object":o[f]=Object(l[1]);break;case"BigInt":o[f]=BigInt(l[1]);break;case"null":const P=Object.create(null);o[f]=P;for(let E=1;E<l.length;E+=2)P[l[E]]=u(l[E+1]);break;default:throw new Error(`Unknown type ${g}`)}}else{const g=new Array(l.length);o[f]=g;for(let s=0;s<l.length;s+=1){const h=l[s];h!==dt&&(g[s]=u(h))}}else{const g={};o[f]=g;for(const s in l){const h=l[s];g[s]=u(h)}}return o[f]}return u(0)}function Gt(e,a){const c=[],o=new Map,u=[];for(const s in a)u.push({key:s,fn:a[s]});const f=[];let w=0;function l(s){if(typeof s=="function")throw new xe("Cannot stringify a function",f);if(o.has(s))return o.get(s);if(s===void 0)return Me;if(Number.isNaN(s))return pt;if(s===1/0)return ht;if(s===-1/0)return _t;if(s===0&&1/s<0)return Fe;const h=w++;o.set(s,h);for(const{key:P,fn:E}of u){const $=E(s);if($)return c[h]=`["${P}",${l($)}]`,h}let v="";if(tt(s))v=Le(s);else switch(Ht(s)){case"Number":case"String":case"Boolean":v=`["Object",${Le(s)}]`;break;case"BigInt":v=`["BigInt",${s}]`;break;case"Date":v=`["Date","${s.toISOString()}"]`;break;case"RegExp":const{source:E,flags:$}=s;v=$?`["RegExp",${X(E)},"${$}"]`:`["RegExp",${X(E)}]`;break;case"Array":v="[";for(let O=0;O<s.length;O+=1)O>0&&(v+=","),O in s?(f.push(`[${O}]`),v+=l(s[O]),f.pop()):v+=dt;v+="]";break;case"Set":v='["Set"';for(const O of s)v+=`,${l(O)}`;v+="]";break;case"Map":v='["Map"';for(const[O,D]of s)f.push(`.get(${tt(O)?Le(O):"..."})`),v+=`,${l(O)},${l(D)}`;v+="]";break;default:if(!Bt(s))throw new xe("Cannot stringify arbitrary non-POJOs",f);if(Object.getOwnPropertySymbols(s).length>0)throw new xe("Cannot stringify POJOs with symbolic keys",f);if(Object.getPrototypeOf(s)===null){v='["null"';for(const O in s)f.push(`.${O}`),v+=`,${X(O)},${l(s[O])}`,f.pop();v+="]"}else{v="{";let O=!1;for(const D in s)O&&(v+=","),O=!0,f.push(`.${D}`),v+=`${X(D)}:${l(s[D])}`,f.pop();v+="}"}}return c[h]=v,h}const g=l(e);return g<0?`${g}`:`[${c.join(",")}]`}function Le(e){const a=typeof e;return a==="string"?X(e):e instanceof String?X(e.toString()):e===void 0?Me.toString():e===0&&1/e<0?Fe.toString():a==="bigint"?`["BigInt","${e}"]`:String(e)}const mt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...mt];const Kt=new Set([...mt]);[...Kt];function Yt(e){return e.filter(a=>a!=null)}class _e{constructor(a,c){this.status=a,typeof c=="string"?this.body={message:c}:c?this.body=c:this.body={message:`Error: ${a}`}}toString(){return JSON.stringify(this.body)}}class nt{constructor(a,c){this.status=a,this.location=c}}class Ve extends Error{constructor(a,c,o){super(o),this.status=a,this.text=c}}const zt="x-sveltekit-invalidated",Wt="x-sveltekit-trailing-slash";function pe(e){return e instanceof _e||e instanceof Ve?e.status:500}function Xt(e){return e instanceof Ve?e.text:"Internal Error"}const Y=De(ct)??{},re=De(lt,Jt)??{},oe=De(ft)??{},rt=history.pushState,he=history.replaceState;function Ne(e){Y[e]=Te()}function at(e,a){let c=e+1;for(;Y[c];)delete Y[c],c+=1;for(c=a+1;oe[c];)delete oe[c],c+=1}function W(e){return location.href=e.href,new Promise(()=>{})}function ot(){}function Zt(e,a){const c=Ft(e),o=e.nodes[0],u=e.nodes[1];o(),u();const f=document.documentElement,w=[],l=[];let g=null;const s={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},v=!1,P=!1,E=!0,$=!1,O=!1,D=!1,Z=!1,se=!1,V,L=history.state?.[H],M=history.state?.[K];L||(L=M=Date.now(),he.call(history,{...history.state,[H]:L,[K]:M},"",location.href));const ge=Y[L];ge&&(history.scrollRestoration="manual",scrollTo(ge.x,ge.y));let j,z,me;async function Be(){if(await(me||=Promise.resolve()),!me)return;me=null;const n=ee(h.url,!0);g=null;const t=z={},r=n&&await ve(n);t===z&&(r&&(r.type==="redirect"?await ie(new URL(r.location,h.url).href,{},1,t):(r.props.page!==void 0&&(j=r.props.page),V.$set(r.props))),w.length=0)}function He(n){l.some(t=>t?.snapshot)&&(oe[n]=l.map(t=>t?.snapshot?.capture()))}function qe(n){oe[n]?.forEach((t,r)=>{l[r]?.snapshot?.restore(t)})}function Je(){Ne(L),je(ct,Y),He(M),je(ft,oe),je(lt,re,Gt)}async function ie(n,t,r,i){return fe({type:"goto",url:ne(n),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,redirect_count:r,state:t.state,nav_token:i,accept:()=>{t.invalidateAll&&(se=!0)}})}async function Ge(n){return g={id:n.id,promise:ve(n).then(t=>(t.type==="loaded"&&t.state.error&&(g=null),t))},g.promise}async function ce(n){const t=c.find(r=>r.exec(We(n)));t&&await Promise.all([...t.layouts,t.leaf].map(r=>r?.[1]()))}function Ke(n){h=n.state;const t=document.querySelector("style[data-sveltekit]");t&&t.remove(),j=n.props.page,V=new e.root({target:a,props:{...n.props,stores:q,components:l},hydrate:!0}),qe(M);const r={from:null,to:{params:h.params,route:{id:h.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};s.after_navigate.forEach(i=>i(r)),P=!0}async function Q({url:n,params:t,branch:r,status:i,error:d,route:p,form:_}){let y="never";for(const A of r)A?.slash!==void 0&&(y=A.slash);n.pathname=Et(n.pathname,y),n.search=n.search;const S={type:"loaded",state:{url:n,params:t,branch:r,error:d,route:p},props:{constructors:Yt(r).map(A=>A.node.component),page:j}};_!==void 0&&(S.props.form=_);let b={},N=!j,U=0;for(let A=0;A<Math.max(r.length,h.branch.length);A+=1){const x=r[A],R=h.branch[A];x?.data!==R?.data&&(N=!0),x&&(b={...b,...x.data},N&&(S.props[`data_${U}`]=b),U+=1)}return(!h.url||n.href!==h.url.href||h.error!==d||_!==void 0&&_!==j.form||N)&&(S.props.page={error:d,params:t,route:{id:p?.id??null},state:{},status:i,url:new URL(n),form:_??null,data:N?b:j.data}),S}async function ye({loader:n,parent:t,url:r,params:i,route:d,server_data_node:p}){let _=null,y=!0;const S={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},b=await n();if(b.universal?.load){let N=function(...m){for(const A of m){const{href:x}=new URL(A,r);S.dependencies.add(x)}};const U={route:new Proxy(d,{get:(m,A)=>(y&&(S.route=!0),m[A])}),params:new Proxy(i,{get:(m,A)=>(y&&S.params.add(A),m[A])}),data:p?.data??null,url:Ot(r,()=>{y&&(S.url=!0)},m=>{y&&S.search_params.add(m)}),async fetch(m,A){let x;m instanceof Request?(x=m.url,A={body:m.method==="GET"||m.method==="HEAD"?void 0:await m.blob(),cache:m.cache,credentials:m.credentials,headers:m.headers,integrity:m.integrity,keepalive:m.keepalive,method:m.method,mode:m.mode,redirect:m.redirect,referrer:m.referrer,referrerPolicy:m.referrerPolicy,signal:m.signal,...A}):x=m;const R=new URL(x,r);return y&&N(R.href),R.origin===r.origin&&(x=R.href.slice(r.origin.length)),P?Nt(x,R.href,A):Lt(x,A)},setHeaders:()=>{},depends:N,parent(){return y&&(S.parent=!0),t()},untrack(m){y=!1;try{return m()}finally{y=!0}}};_=await b.universal.load.call(null,U)??null}return{node:b,loader:n,server:p,universal:b.universal?.load?{type:"data",data:_,uses:S}:null,data:_??p?.data??null,slash:F&&(r.pathname===F||r.pathname===F+"/")?"always":b.universal?.trailingSlash??p?.slash}}function Ye(n,t,r,i,d,p){if(se)return!0;if(!d)return!1;if(d.parent&&n||d.route&&t||d.url&&r)return!0;for(const _ of d.search_params)if(i.has(_))return!0;for(const _ of d.params)if(p[_]!==h.params[_])return!0;for(const _ of d.dependencies)if(w.some(y=>y(new URL(_))))return!0;return!1}function we(n,t){return n?.type==="data"?n:n?.type==="skip"?t??null:null}function wt(n,t){if(!n)return new Set(t.searchParams.keys());const r=new Set([...n.searchParams.keys(),...t.searchParams.keys()]);for(const i of r){const d=n.searchParams.getAll(i),p=t.searchParams.getAll(i);d.every(_=>p.includes(_))&&p.every(_=>d.includes(_))&&r.delete(i)}return r}async function ve({id:n,invalidating:t,url:r,params:i,route:d}){if(g?.id===n)return g.promise;const{errors:p,layouts:_,leaf:y}=d,S=[..._,y];p.forEach(k=>k?.().catch(()=>{})),S.forEach(k=>k?.[1]().catch(()=>{}));let b=null;const N=h.url?n!==h.url.pathname+h.url.search:!1,U=h.route?d.id!==h.route.id:!1,m=wt(h.url,r);let A=!1;const x=S.map((k,I)=>{const T=h.branch[I],C=!!k?.[0]&&(T?.loader!==k[1]||Ye(A,U,N,m,T.server?.uses,i));return C&&(A=!0),C});if(x.some(Boolean)){try{b=await st(r,x)}catch(k){return le({status:pe(k),error:await te(k,{url:r,params:i,route:{id:d.id}}),url:r,route:d})}if(b.type==="redirect")return b}const R=b?.nodes;let B=!1;const J=S.map(async(k,I)=>{if(!k)return;const T=h.branch[I],C=R?.[I];if((!C||C.type==="skip")&&k[1]===T?.loader&&!Ye(B,U,N,m,T.universal?.uses,i))return T;if(B=!0,C?.type==="error")throw C;return ye({loader:k[1],url:r,params:i,route:d,parent:async()=>{const be={};for(let Ee=0;Ee<I;Ee+=1)Object.assign(be,(await J[Ee])?.data);return be},server_data_node:we(C===void 0&&k[0]?{type:"skip"}:C??null,k[0]?T?.server:void 0)})});for(const k of J)k.catch(()=>{});const G=[];for(let k=0;k<S.length;k+=1)if(S[k])try{G.push(await J[k])}catch(I){if(I instanceof nt)return{type:"redirect",location:I.location};let T=pe(I),C;if(R?.includes(I))T=I.status??T,C=I.error;else if(I instanceof _e)C=I.body;else{if(await q.updated.check())return await W(r);C=await te(I,{params:i,url:r,route:{id:d.id}})}const ue=await ze(k,G,p);return ue?await Q({url:r,params:i,branch:G.slice(0,ue.idx).concat(ue.node),status:T,error:C,route:d}):await Ze(r,{id:d.id},C,T)}else G.push(void 0);return await Q({url:r,params:i,branch:G,status:200,error:null,route:d,form:t?void 0:null})}async function ze(n,t,r){for(;n--;)if(r[n]){let i=n;for(;!t[i];)i-=1;try{return{idx:i+1,node:{node:await r[n](),loader:r[n],data:{},server:null,universal:null}}}catch{continue}}}async function le({status:n,error:t,url:r,route:i}){const d={};let p=null;if(e.server_loads[0]===0)try{const b=await st(r,[!0]);if(b.type!=="data"||b.nodes[0]&&b.nodes[0].type!=="data")throw 0;p=b.nodes[0]??null}catch{(r.origin!==Ae||r.pathname!==location.pathname||v)&&await W(r)}const y=await ye({loader:o,url:r,params:d,route:i,parent:()=>Promise.resolve({}),server_data_node:we(p)}),S={node:await u(),loader:u,universal:null,server:null,data:null};return await Q({url:r,params:d,branch:[y,S],status:n,error:t,route:null})}function ee(n,t){if($e(n,F))return;const r=We(n.pathname);for(const i of c){const d=i.exec(r);if(d)return{id:n.pathname+n.search,invalidating:t,route:i,params:kt(d),url:n}}}function We(n){return St(n.slice(F.length)||"/")}function Xe({url:n,type:t,intent:r,delta:i}){let d=!1;const p=it(h,r,n,t);i!==void 0&&(p.navigation.delta=i);const _={...p.navigation,cancel:()=>{d=!0,p.reject(new Error("navigation was cancelled"))}};return O||s.before_navigate.forEach(y=>y(_)),d?null:p}async function fe({type:n,url:t,popped:r,keepfocus:i,noscroll:d,replace_state:p,state:_={},redirect_count:y=0,nav_token:S={},accept:b=ot,block:N=ot}){const U=ee(t,!1),m=Xe({url:t,type:n,delta:r?.delta,intent:U});if(!m){N();return}const A=L,x=M;b(),O=!0,P&&q.navigating.set(m.navigation),z=S;let R=U&&await ve(U);if(!R){if($e(t,F))return await W(t);R=await Ze(t,{id:null},await te(new Ve(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=U?.url||t,z!==S)return m.reject(new Error("navigation was aborted")),!1;if(R.type==="redirect")if(y>=20)R=await le({status:500,error:await te(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return ie(new URL(R.location,t).href,{},y+1,S),!1;else R.props.page.status>=400&&await q.updated.check()&&await W(t);if(w.length=0,se=!1,$=!0,Ne(A),He(x),R.props.page.url.pathname!==t.pathname&&(t.pathname=R.props.page.url.pathname),_=r?r.state:_,!r){const k=p?0:1,I={[H]:L+=k,[K]:M+=k};(p?he:rt).call(history,I,"",t),p||at(L,M)}if(re[L]=_,g=null,R.props.page.state=_,P){h=R.state,R.props.page&&(R.props.page.url=t);const k=(await Promise.all(s.on_navigate.map(I=>I(m.navigation)))).filter(I=>typeof I=="function");if(k.length>0){let I=function(){s.after_navigate=s.after_navigate.filter(T=>!k.includes(T))};k.push(I),s.after_navigate.push(...k)}V.$set(R.props),Z=!0}else Ke(R);const{activeElement:B}=document;await ke();const J=r?r.scroll:d?Te():null;if(E){const k=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));J?scrollTo(J.x,J.y):k?k.scrollIntoView():scrollTo(0,0)}const G=document.activeElement!==B&&document.activeElement!==document.body;!i&&!G&&Ue(),E=!0,R.props.page&&(j=R.props.page),O=!1,n==="popstate"&&qe(M),m.fulfil(void 0),s.after_navigate.forEach(k=>k(m.navigation)),q.navigating.set(null),$=!1}async function Ze(n,t,r,i){return n.origin===Ae&&n.pathname===location.pathname&&!v?await le({status:i,error:r,url:n,route:t}):await W(n)}function vt(){let n;f.addEventListener("mousemove",p=>{const _=p.target;clearTimeout(n),n=setTimeout(()=>{i(_,2)},20)});function t(p){i(p.composedPath()[0],1)}f.addEventListener("mousedown",t),f.addEventListener("touchstart",t,{passive:!0});const r=new IntersectionObserver(p=>{for(const _ of p)_.isIntersecting&&(ce(_.target.href),r.unobserve(_.target))},{threshold:0});function i(p,_){const y=Qe(p,f);if(!y)return;const{url:S,external:b,download:N}=Re(y,F);if(b||N)return;const U=de(y);if(!U.reload)if(_<=U.preload_data){const m=ee(S,!1);m&&Ge(m)}else _<=U.preload_code&&ce(S.pathname)}function d(){r.disconnect();for(const p of f.querySelectorAll("a")){const{url:_,external:y,download:S}=Re(p,F);if(y||S)continue;const b=de(p);b.reload||(b.preload_code===et.viewport&&r.observe(p),b.preload_code===et.eager&&ce(_.pathname))}}s.after_navigate.push(d),d()}function te(n,t){if(n instanceof _e)return n.body;const r=pe(n),i=Xt(n);return e.hooks.handleError({error:n,event:t,status:r,message:i})??{message:i}}return{after_navigate:n=>{Se(()=>(s.after_navigate.push(n),()=>{const t=s.after_navigate.indexOf(n);s.after_navigate.splice(t,1)}))},before_navigate:n=>{Se(()=>(s.before_navigate.push(n),()=>{const t=s.before_navigate.indexOf(n);s.before_navigate.splice(t,1)}))},on_navigate:n=>{Se(()=>(s.on_navigate.push(n),()=>{const t=s.on_navigate.indexOf(n);s.on_navigate.splice(t,1)}))},disable_scroll_handling:()=>{($||!P)&&(E=!1)},goto:(n,t={})=>(n=ne(n),n.origin!==Ae?Promise.reject(new Error("goto: invalid URL")):ie(n,t,0)),invalidate:n=>{if(typeof n=="function")w.push(n);else{const{href:t}=new URL(n,location.href);w.push(r=>r.href===t)}return Be()},invalidate_all:()=>(se=!0,Be()),preload_data:async n=>{const t=ne(n),r=ee(t,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${t}`);const i=await Ge(r);if(i.type==="redirect")return{type:i.type,location:i.location};const{status:d,data:p}=i.props.page??j;return{type:i.type,status:d,data:p}},preload_code:n=>ce(n),push_state:(n,t)=>{const r={[H]:L+=1,[K]:M,[Oe]:j.url.href};rt.call(history,r,"",ne(n)),j={...j,state:t},V.$set({page:j}),re[L]=t,at(L,M)},replace_state:(n,t)=>{const r={[H]:L,[K]:M,[Oe]:j.url.href};he.call(history,r,"",ne(n)),j={...j,state:t},V.$set({page:j}),re[L]=t},apply_action:async n=>{if(n.type==="error"){const t=new URL(location.href),{branch:r,route:i}=h;if(!i)return;const d=await ze(h.branch.length,r,i.errors);if(d){const p=await Q({url:t,params:h.params,branch:r.slice(0,d.idx).concat(d.node),status:n.status??500,error:n.error,route:i});h=p.state,V.$set(p.props),ke().then(Ue)}}else n.type==="redirect"?ie(n.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...j,form:n.data,status:n.status}}),await ke(),V.$set({form:n.data}),n.type==="success"&&Ue())},_start_router:()=>{history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Je(),!O){const i=it(h,void 0,null,"leave"),d={...i.navigation,cancel:()=>{r=!0,i.reject(new Error("navigation was cancelled"))}};s.before_navigate.forEach(p=>p(d))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Je()}),navigator.connection?.saveData||vt(),f.addEventListener("click",t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=Qe(t.composedPath()[0],f);if(!r)return;const{url:i,external:d,target:p,download:_}=Re(r,F);if(!i)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_self")return;const y=de(r);if(!(r instanceof SVGAElement)&&i.protocol!==location.protocol&&!(i.protocol==="https:"||i.protocol==="http:")||_)return;if(d||y.reload){Xe({url:i,type:"link"})?O=!0:t.preventDefault();return}const[b,N]=i.href.split("#");if(N!==void 0&&b===Pe(location)){if(h.url.hash===i.hash){t.preventDefault(),r.ownerDocument.getElementById(N)?.scrollIntoView();return}if(D=!0,Ne(L),n(i),!y.replace_state)return;D=!1}t.preventDefault(),fe({type:"link",url:i,keepfocus:y.keepfocus,noscroll:y.noscroll,replace_state:y.replace_state??i.href===location.href})}),f.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),i=t.submitter;if((i?.formMethod||r.method)!=="get")return;const p=new URL(i?.hasAttribute("formaction")&&i?.formAction||r.action);if($e(p,F))return;const _=t.target,y=de(_);if(y.reload)return;t.preventDefault(),t.stopPropagation();const S=new FormData(_),b=i?.getAttribute("name");b&&S.append(b,i?.getAttribute("value")??""),p.search=new URLSearchParams(S).toString(),fe({type:"form",url:p,keepfocus:y.keepfocus,noscroll:y.noscroll,replace_state:y.replace_state??p.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[H]){const r=t.state[H];if(z={},r===L)return;const i=Y[r],d=re[r]??{},p=new URL(t.state[Oe]??location.href),_=t.state[K],y=Pe(location)===Pe(h.url);if(_===M&&(Z||y)){n(p),Y[L]=Te(),i&&scrollTo(i.x,i.y),d!==j.state&&(j={...j,state:d},V.$set({page:j})),L=r;return}const b=r-L;await fe({type:"popstate",url:p,popped:{state:d,scroll:i,delta:b},accept:()=>{L=r,M=_},block:()=>{history.go(-b)},nav_token:z})}else if(!D){const r=new URL(location.href);n(r)}}),addEventListener("hashchange",()=>{D&&(D=!1,he.call(history,{...history.state,[H]:++L,[K]:M},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&q.navigating.set(null)});function n(t){h.url=t,q.page.set({...j,url:t}),q.page.notify()}},_hydrate:async({status:n=200,error:t,node_ids:r,params:i,route:d,data:p,form:_})=>{v=!0;const y=new URL(location.href);({params:i={},route:d={id:null}}=ee(y,!1)||{});let S;try{const b=r.map(async(m,A)=>{const x=p[A];return x?.uses&&(x.uses=yt(x.uses)),ye({loader:e.nodes[m],url:y,params:i,route:d,parent:async()=>{const R={};for(let B=0;B<A;B+=1)Object.assign(R,(await b[B]).data);return R},server_data_node:we(x)})}),N=await Promise.all(b),U=c.find(({id:m})=>m===d.id);if(U){const m=U.layouts;for(let A=0;A<m.length;A++)m[A]||N.splice(A,0,void 0)}S=await Q({url:y,params:i,branch:N,status:n,error:t,form:_,route:U??null})}catch(b){if(b instanceof nt){await W(new URL(b.location,location.href));return}S=await le({status:pe(b),error:await te(b,{url:y,params:i,route:d}),url:y,route:d})}S.props.page&&(S.props.page.state={}),Ke(S)}}}async function st(e,a){const c=new URL(e);c.pathname=It(e.pathname),e.pathname.endsWith("/")&&c.searchParams.append(Wt,"1"),c.searchParams.append(zt,a.map(u=>u?"1":"0").join(""));const o=await ut(c.href);if(!o.ok){let u;throw o.headers.get("content-type")?.includes("application/json")?u=await o.json():o.status===404?u="Not Found":o.status===500&&(u="Internal Error"),new _e(o.status,u)}return new Promise(async u=>{const f=new Map,w=o.body.getReader(),l=new TextDecoder;function g(h){return gt(h,{Promise:v=>new Promise((P,E)=>{f.set(v,{fulfil:P,reject:E})})})}let s="";for(;;){const{done:h,value:v}=await w.read();if(h&&!s)break;for(s+=!v&&s?`
|
|
3
3
|
`:l.decode(v);;){const P=s.indexOf(`
|
|
4
4
|
`);if(P===-1)break;const E=JSON.parse(s.slice(0,P));if(s=s.slice(P+1),E.type==="redirect")return u(E);if(E.type==="data")E.nodes?.forEach($=>{$?.type==="data"&&($.uses=yt($.uses),$.data=g($.data))}),u(E);else if(E.type==="chunk"){const{id:$,data:O,error:D}=E,Z=f.get($);f.delete($),D?Z.reject(g(D)):Z.fulfil(g(O))}}}})}function yt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Ue(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const a=document.body,c=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),c!==null?a.setAttribute("tabindex",c):a.removeAttribute("tabindex");const o=getSelection();if(o&&o.type!=="None"){const u=[];for(let f=0;f<o.rangeCount;f+=1)u.push(o.getRangeAt(f));setTimeout(()=>{if(o.rangeCount===u.length){for(let f=0;f<o.rangeCount;f+=1){const w=u[f],l=o.getRangeAt(f);if(w.commonAncestorContainer!==l.commonAncestorContainer||w.startContainer!==l.startContainer||w.endContainer!==l.endContainer||w.startOffset!==l.startOffset||w.endOffset!==l.endOffset)return}o.removeAllRanges()}})}}}function it(e,a,c,o){let u,f;const w=new Promise((g,s)=>{u=g,f=s});return w.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:c&&{params:a?.params??null,route:{id:a?.route?.id??null},url:c},willUnload:!a,type:o,complete:w},fulfil:u,reject:f}}async function tn(e,a,c){const o=Zt(e,a);bt({client:o}),c?await o._hydrate(c):o.goto(location.href,{replaceState:!0}),o._start_router()}export{tn as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as W,k as q,e as m,l as j,c as d,a as g,d as h,o as N,f as p,i as y,g as v,u as w,r as C,v as D,K,j as M,t as P,b as V,h as Q}from"../chunks/scheduler.T8nCnPq2.js";import{S as R,i as U,t as $,b as z}from"../chunks/index.CP0w37D5.js";import{e as I}from"../chunks/each.oUkpMz5d.js";import{p as B}from"../chunks/stores.
|
|
1
|
+
import{n as W,k as q,e as m,l as j,c as d,a as g,d as h,o as N,f as p,i as y,g as v,u as w,r as C,v as D,K,j as M,t as P,b as V,h as Q}from"../chunks/scheduler.T8nCnPq2.js";import{S as R,i as U,t as $,b as z}from"../chunks/index.CP0w37D5.js";import{e as I}from"../chunks/each.oUkpMz5d.js";import{p as B}from"../chunks/stores.sdmSk4uL.js";import{p as F}from"../chunks/preferences.WetYOKHg.js";function L(o,e,r){const l=o.slice();return l[5]=e[r][0],l[6]=e[r][1],l}function G(o){let e,r=o[6]+"",l,f;return{c(){e=m("a"),l=P(r),this.h()},l(t){e=d(t,"A",{class:!0,href:!0});var a=g(e);l=V(a,r),a.forEach(h),this.h()},h(){p(e,"class","text-cyan-700"),p(e,"href",f=`${o[5]}${o[0].route.id?.startsWith("/(opengrok-compat)/")?"":o[0].url.search}`)},m(t,a){y(t,e,a),v(e,l)},p(t,a){a&1&&f!==(f=`${t[5]}${t[0].route.id?.startsWith("/(opengrok-compat)/")?"":t[0].url.search}`)&&p(e,"href",f)},d(t){t&&h(e)}}}function H(o){let e=o[6]+"",r;return{c(){r=P(e)},l(l){r=V(l,e)},m(l,f){y(l,r,f)},p:Q,d(l){l&&h(r)}}}function S(o){let e,r;function l(a,c){return a[5]===a[0].url.pathname?H:G}let f=l(o),t=f(o);return{c(){e=m("li"),t.c(),r=j(),this.h()},l(a){e=d(a,"LI",{class:!0});var c=g(e);t.l(c),r=N(c),c.forEach(h),this.h()},h(){p(e,"class","after:content-['•'] after:pl-1 after:pr-2 last:after:content-none")},m(a,c){y(a,e,c),t.m(e,null),v(e,r)},p(a,c){f===(f=l(a))&&t?t.p(a,c):(t.d(1),t=f(a),t&&(t.c(),t.m(e,r)))},d(a){a&&h(e),t.d()}}}function J(o){let e,r,l,f,t,a,c=I(o[1]),n=[];for(let s=0;s<c.length;s+=1)n[s]=S(L(o,c,s));const k=o[4].default,u=q(k,o,o[3],null);return{c(){e=m("div"),r=m("nav"),l=m("ul");for(let s=0;s<n.length;s+=1)n[s].c();f=j(),t=m("main"),u&&u.c(),this.h()},l(s){e=d(s,"DIV",{class:!0});var _=g(e);r=d(_,"NAV",{class:!0});var i=g(r);l=d(i,"UL",{class:!0});var b=g(l);for(let E=0;E<n.length;E+=1)n[E].l(b);b.forEach(h),i.forEach(h),f=N(_),t=d(_,"MAIN",{});var A=g(t);u&&u.l(A),A.forEach(h),_.forEach(h),this.h()},h(){p(l,"class","flex justify-center text-xs gap-y-2 flex-wrap"),p(r,"class","pb-12"),p(e,"class","container mx-auto px-2 py-4")},m(s,_){y(s,e,_),v(e,r),v(r,l);for(let i=0;i<n.length;i+=1)n[i]&&n[i].m(l,null);v(e,f),v(e,t),u&&u.m(t,null),a=!0},p(s,[_]){if(_&3){c=I(s[1]);let i;for(i=0;i<c.length;i+=1){const b=L(s,c,i);n[i]?n[i].p(b,_):(n[i]=S(b),n[i].c(),n[i].m(l,null))}for(;i<n.length;i+=1)n[i].d(1);n.length=c.length}u&&u.p&&(!a||_&8)&&w(u,k,s,s[3],a?D(k,s[3],_,null):C(s[3]),null)},i(s){a||($(u,s),a=!0)},o(s){z(u,s),a=!1},d(s){s&&h(e),K(n,s),u&&u.d(s)}}}function O(o,e,r){let l;M(o,B,n=>r(0,l=n));let{$$slots:f={},$$scope:t}=e;const a=[["/","Search"],["/repositories","Repositories"],["/syntax","Query Syntax"],["/about","About"],["/preferences","Preferences"]];let{data:c}=e;return F(c.preferences),o.$$set=n=>{"data"in n&&r(2,c=n.data),"$$scope"in n&&r(3,t=n.$$scope)},[l,a,c,t,f]}class ee extends R{constructor(e){super(),U(this,e,O,J,W,{data:2})}}export{ee as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as _,e as d,t as c,c as g,a as x,b as m,d as h,f as v,i as b,g as p,s as u,h as f,j as $}from"../chunks/scheduler.T8nCnPq2.js";import{S as E,i as S}from"../chunks/index.CP0w37D5.js";import{p as j}from"../chunks/stores.
|
|
1
|
+
import{n as _,e as d,t as c,c as g,a as x,b as m,d as h,f as v,i as b,g as p,s as u,h as f,j as $}from"../chunks/scheduler.T8nCnPq2.js";import{S as E,i as S}from"../chunks/index.CP0w37D5.js";import{p as j}from"../chunks/stores.sdmSk4uL.js";function q(n){let t,a=n[0].status+"",r,o,i=n[0].error?.message+"",l;return{c(){t=d("h1"),r=c(a),o=c(" - "),l=c(i),this.h()},l(s){t=g(s,"H1",{class:!0});var e=x(t);r=m(e,a),o=m(e," - "),l=m(e,i),e.forEach(h),this.h()},h(){v(t,"class","text-center text-xl")},m(s,e){b(s,t,e),p(t,r),p(t,o),p(t,l)},p(s,[e]){e&1&&a!==(a=s[0].status+"")&&u(r,a),e&1&&i!==(i=s[0].error?.message+"")&&u(l,i)},i:f,o:f,d(s){s&&h(t)}}}function y(n,t,a){let r;return $(n,j,o=>a(0,r=o)),[r]}class w extends E{constructor(t){super(),S(this,t,y,q,_,{})}}export{w as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{d as kl,w as xl}from"../chunks/index.XEtU8W2G.js";import{p as ol,n as il}from"../chunks/stores.sdmSk4uL.js";import{g as wl,I as ul,L as Cl,T as El}from"../chunks/loading-ellipsis.R0hKKLDn.js";import{a7 as Gs,n as Ce,H as en,a5 as An,k as fl,u as cl,r as hl,v as ml,e as p,c as g,a as y,d as h,f as _,i as R,q as Xt,j as Ue,a6 as Ll,w as Tn,l as b,t as H,o as v,b as j,p as V,g as o,y as Ks,a8 as ql,z as ys,s as X,A as Sl,a9 as Nl,h as un,G as ye,K as pl,N as Pl,J as In,m as Il}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ee,i as Le,c as N,a as P,m as I,t as x,b as w,d as T,f as ks,g as Dt,e as Vt}from"../chunks/index.CP0w37D5.js";import{c as gl,d as Tl,b as Al}from"../chunks/preferences.WetYOKHg.js";import{I as xs,c as Js}from"../chunks/integer-input.fvZuttUG.js";import{g as _l,a as dl}from"../chunks/spread.rEx3vLA9.js";import{L as on}from"../chunks/link.czJPdQv3.js";import{E as K}from"../chunks/example-query.6BQBimAu.js";import{e as Ye,u as $l,o as bl}from"../chunks/each.oUkpMz5d.js";import{_ as Ml}from"../chunks/5.MErjPYv9.js";const Yt=Object.freeze({contextLines:1,files:20,matches:500}),ws=r=>{const e=Number.parseInt(r.get("contextLines")??"",10),n=Number.parseInt(r.get("files")??"",10),t=Number.parseInt(r.get("matches")??"",10),s=r.get("q")||void 0,l=e>=0?e:Yt.contextLines,a=n>0?n:Yt.files,i=t>=0?t:Yt.matches;return{query:s,contextLines:l,files:a,matches:i}},Mn=kl(ol,r=>ws(r.url.searchParams));let Ws=0;const an=({query:r,contextLines:e,files:n,matches:t,searchType:s})=>{const l=Gs(il)?.to?.url??Gs(ol).url,a=ws(l.searchParams),i=r!==void 0&&(r||void 0)!==a.query,f=e!==void 0&&e>=0&&e!==a.contextLines,u=n!==void 0&&n>=0&&n!==a.files,m=t!==void 0&&t>=0&&t!==a.matches;if(i||f||u||m){const d=Date.now(),c=new URL(l);i&&r?c.searchParams.set("q",r):i&&c.searchParams.delete("q"),f&&e===Yt.contextLines?c.searchParams.delete("contextLines"):f&&c.searchParams.set("contextLines",e.toString()),u&&n===Yt.files?c.searchParams.delete("files"):u&&c.searchParams.set("files",n.toString()),m&&t===Yt.matches?c.searchParams.delete("matches"):m&&c.searchParams.set("matches",t.toString()),wl(c,{replaceState:s==="live"&&d-Ws<2e3,keepFocus:!0,noScroll:!0}),Ws=d}},Ol=async({url:r,fetch:e})=>({searchOutcome:await Hl(r,e)}),Hl=async(r,e)=>{const{query:n,...t}=ws(new URL(r).searchParams);if(n===void 0)return{kind:"none"};try{const l=await(await e("/api/search",{method:"POST",body:JSON.stringify({query:n,...t}),headers:{"content-type":"application/json"}})).json();return l.kind==="success"?{kind:"success",results:l.results}:l}catch(s){return console.error("Search failed",s),{kind:"error",error:String(s)}}},Kr=Object.freeze(Object.defineProperty({__proto__:null,load:Ol},Symbol.toStringTag,{value:"Module"}));function jl(r){let e;const n=r[2].default,t=fl(n,r,r[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&cl(t,n,s,s[3],e?ml(n,s[3],l,null):hl(s[3]),null)},i(s){e||(x(t,s),e=!0)},o(s){w(t,s),e=!1},d(s){t&&t.d(s)}}}function Ul(r){let e,n;const t=[{name:"chevron-right"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[jl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new ul({props:s}),{c(){N(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,a){I(e,l,a),n=!0},p(l,[a]){const i=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(i.$$scope={dirty:a,ctx:l}),e.$set(i)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){T(e,l)}}}function Rl(r,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["path",{d:"m9 18 6-6-6-6"}]];return r.$$set=a=>{n(1,e=en(en({},e),An(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=An(e),[l,e,t,s]}class zl extends Ee{constructor(e){super(),Le(this,e,Rl,Ul,Ce,{})}}function Dl(r){let e;const n=r[2].default,t=fl(n,r,r[3],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,l){t&&t.m(s,l),e=!0},p(s,l){t&&t.p&&(!e||l&8)&&cl(t,n,s,s[3],e?ml(n,s[3],l,null):hl(s[3]),null)},i(s){e||(x(t,s),e=!0)},o(s){w(t,s),e=!1},d(s){t&&t.d(s)}}}function Vl(r){let e,n;const t=[{name:"list-ordered"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Dl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new ul({props:s}),{c(){N(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,a){I(e,l,a),n=!0},p(l,[a]){const i=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(i.$$scope={dirty:a,ctx:l}),e.$set(i)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){T(e,l)}}}function Bl(r,e,n){let{$$slots:t={},$$scope:s}=e;const l=[["line",{x1:"10",x2:"21",y1:"6",y2:"6"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18"}],["path",{d:"M4 6h1v4"}],["path",{d:"M4 10h2"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1"}]];return r.$$set=a=>{n(1,e=en(en({},e),An(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=An(e),[l,e,t,s]}class Ql extends Ee{constructor(e){super(),Le(this,e,Bl,Vl,Ce,{})}}const Fl=Ql;function Gl(r){let e,n,t,s,l,a,i;return n=new Fl({props:{class:"inline",size:18,color:r[0]==="line-number"?"white":"black",strokeWidth:1,fill:r[0]==="line-number"?"white":"black"}}),{c(){e=p("button"),N(n.$$.fragment),this.h()},l(f){e=g(f,"BUTTON",{class:!0,title:!0});var u=y(e);P(n.$$.fragment,u),u.forEach(h),this.h()},h(){_(e,"class",t=`rounded w-6 grid place-items-center ${r[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`),_(e,"title",s=r[0]==="line-number"?"sort matches by score":"sort matches by line number")},m(f,u){R(f,e,u),I(n,e,null),l=!0,a||(i=Xt(e,"click",r[2]),a=!0)},p(f,[u]){const m={};u&1&&(m.color=f[0]==="line-number"?"white":"black"),u&1&&(m.fill=f[0]==="line-number"?"white":"black"),n.$set(m),(!l||u&1&&t!==(t=`rounded w-6 grid place-items-center ${f[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&_(e,"class",t),(!l||u&1&&s!==(s=f[0]==="line-number"?"sort matches by score":"sort matches by line number"))&&_(e,"title",s)},i(f){l||(x(n.$$.fragment,f),l=!0)},o(f){w(n.$$.fragment,f),l=!1},d(f){f&&h(e),T(n),a=!1,i()}}}function Kl(r,e,n){let t;const s=gl();return Ue(r,s,a=>n(0,t=a)),[t,s,()=>{Ll(s,t=t==="line-number"?"score":"line-number",t)}]}class Jl extends Ee{constructor(e){super(),Le(this,e,Kl,Gl,Ce,{})}}function Wl(r){let e,n,t,s,l,a,i,f,u,m,d,c,$,C,q,E,U,S,D,le="context",ee,J,re,ae,Y,W,ke="files",se,M,ce,de,Z,te,he="matches",Q,ue,G,B,ne,xe=(r[0]??"")+"",A,L,z,fe;f=new Cl({}),$=new El({}),q=new Jl({});function qe(O){r[18](O)}let me={id:"context",pending:r[8]};r[2]!==void 0&&(me.value=r[2]),J=new xs({props:me}),Tn.push(()=>ks(J,"value",qe)),J.$on("change",r[19]);function et(O){r[20](O)}let Se={id:"files",kind:"positive",pending:r[7]};r[3]!==void 0&&(Se.value=r[3]),M=new xs({props:Se}),Tn.push(()=>ks(M,"value",et)),M.$on("change",r[21]);function Oe(O){r[22](O)}let Ne={id:"matches",kind:"positive",pending:r[6]};return r[4]!==void 0&&(Ne.value=r[4]),ue=new xs({props:Ne}),Tn.push(()=>ks(ue,"value",Oe)),ue.$on("change",r[23]),{c(){e=p("form"),n=p("input"),t=b(),s=p("div"),l=p("label"),a=p("span"),i=H("query"),N(f.$$.fragment),u=b(),m=p("span"),d=p("input"),c=b(),N($.$$.fragment),C=b(),N(q.$$.fragment),U=b(),S=p("label"),D=p("span"),D.textContent=le,ee=b(),N(J.$$.fragment),ae=b(),Y=p("label"),W=p("span"),W.textContent=ke,se=b(),N(M.$$.fragment),de=b(),Z=p("label"),te=p("span"),te.textContent=he,Q=b(),N(ue.$$.fragment),B=b(),ne=p("div"),A=H(xe),this.h()},l(O){e=g(O,"FORM",{});var F=y(e);n=g(F,"INPUT",{type:!0,class:!0}),t=v(F),s=g(F,"DIV",{class:!0});var pe=y(s);l=g(pe,"LABEL",{for:!0,class:!0});var $e=y(l);a=g($e,"SPAN",{class:!0});var ge=y(a);i=j(ge,"query"),P(f.$$.fragment,ge),ge.forEach(h),u=v($e),m=g($e,"SPAN",{class:!0});var _e=y(m);d=g(_e,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),c=v(_e),P($.$$.fragment,_e),C=v(_e),P(q.$$.fragment,_e),_e.forEach(h),$e.forEach(h),U=v(pe),S=g(pe,"LABEL",{for:!0,class:!0});var Re=y(S);D=g(Re,"SPAN",{class:!0,"data-svelte-h":!0}),V(D)!=="svelte-1nbzu36"&&(D.textContent=le),ee=v(Re),P(J.$$.fragment,Re),Re.forEach(h),ae=v(pe),Y=g(pe,"LABEL",{for:!0,class:!0});var be=y(Y);W=g(be,"SPAN",{class:!0,"data-svelte-h":!0}),V(W)!=="svelte-1pt1x6a"&&(W.textContent=ke),se=v(be),P(M.$$.fragment,be),be.forEach(h),de=v(pe),Z=g(pe,"LABEL",{for:!0,class:!0});var tt=y(Z);te=g(tt,"SPAN",{class:!0,"data-svelte-h":!0}),V(te)!=="svelte-1hdyrgs"&&(te.textContent=he),Q=v(tt),P(ue.$$.fragment,tt),tt.forEach(h),pe.forEach(h),B=v(F),ne=g(F,"DIV",{class:!0});var Bt=y(ne);A=j(Bt,xe),Bt.forEach(h),F.forEach(h),this.h()},h(){_(n,"type","submit"),_(n,"class","hidden"),_(a,"class","text-xs px-1 text-gray-500"),_(d,"id","query"),_(d,"type","search"),d.autofocus=!0,_(d,"spellcheck",!1),_(d,"autocorrect","off"),_(d,"autocapitalize","off"),_(d,"autocomplete","off"),_(d,"class","font-mono focus:outline-none flex-auto appearance-none"),_(m,"class",E=`flex flex-auto p-1 border shadow-sm space-x-1 ${Js({error:r[0]!==null,pending:r[9]})}`),_(l,"for","query"),_(l,"class","flex-auto flex flex-col space-y-0.5"),_(D,"class","text-xs px-1 text-gray-500"),_(S,"for","context"),_(S,"class","flex flex-col space-y-0.5"),_(W,"class","text-xs px-1 text-gray-500"),_(Y,"for","files"),_(Y,"class","flex flex-col space-y-0.5"),_(te,"class","text-xs px-1 text-gray-500"),_(Z,"for","matches"),_(Z,"class","flex flex-col space-y-0.5"),_(s,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),_(ne,"class","text-xs text-red-500")},m(O,F){R(O,e,F),o(e,n),o(e,t),o(e,s),o(s,l),o(l,a),o(a,i),I(f,a,null),o(l,u),o(l,m),o(m,d),Ks(d,r[1]),o(m,c),I($,m,null),o(m,C),I(q,m,null),o(s,U),o(s,S),o(S,D),o(S,ee),I(J,S,null),o(s,ae),o(s,Y),o(Y,W),o(Y,se),I(M,Y,null),o(s,de),o(s,Z),o(Z,te),o(Z,Q),I(ue,Z,null),o(e,B),o(e,ne),o(ne,A),L=!0,d.focus(),z||(fe=[Xt(d,"input",r[16]),Xt(d,"input",r[17]),Xt(e,"submit",ql(r[24]))],z=!0)},p(O,[F]){F&2&&d.value!==O[1]&&Ks(d,O[1]),(!L||F&513&&E!==(E=`flex flex-auto p-1 border shadow-sm space-x-1 ${Js({error:O[0]!==null,pending:O[9]})}`))&&_(m,"class",E);const pe={};F&256&&(pe.pending=O[8]),!re&&F&4&&(re=!0,pe.value=O[2],ys(()=>re=!1)),J.$set(pe);const $e={};F&128&&($e.pending=O[7]),!ce&&F&8&&(ce=!0,$e.value=O[3],ys(()=>ce=!1)),M.$set($e);const ge={};F&64&&(ge.pending=O[6]),!G&&F&16&&(G=!0,ge.value=O[4],ys(()=>G=!1)),ue.$set(ge),(!L||F&1)&&xe!==(xe=(O[0]??"")+"")&&X(A,xe)},i(O){L||(x(f.$$.fragment,O),x($.$$.fragment,O),x(q.$$.fragment,O),x(J.$$.fragment,O),x(M.$$.fragment,O),x(ue.$$.fragment,O),L=!0)},o(O){w(f.$$.fragment,O),w($.$$.fragment,O),w(q.$$.fragment,O),w(J.$$.fragment,O),w(M.$$.fragment,O),w(ue.$$.fragment,O),L=!1},d(O){O&&h(e),T(f),T($),T(q),T(J),T(M),T(ue),z=!1,Sl(fe)}}}function Zl(r,e,n){let t,s,l,a,i,f,u;Ue(r,Mn,M=>n(14,i=M)),Ue(r,il,M=>n(15,f=M));let{queryError:m=null}=e;const d=Tl();Ue(r,d,M=>n(5,u=M));let c,$,C,q;const E=Mn.subscribe(M=>{f?.type!=="goto"&&n(1,{query:c,contextLines:$,files:C,matches:q}=M,c,n(2,$),n(3,C),n(4,q))});Nl(E);const U=()=>u==="live"&&(!c||c.length>=3),S=()=>{an({query:c,contextLines:$,files:C,matches:q,searchType:u})};let D;function le(){c=this.value,n(1,c)}const ee=()=>{U()&&an({query:c,searchType:u})};function J(M){$=M,n(2,$)}const re=M=>{U()&&an({contextLines:M.detail,searchType:u})};function ae(M){C=M,n(3,C)}const Y=M=>{U()&&an({files:M.detail,searchType:u})};function W(M){q=M,n(4,q)}const ke=M=>{U()&&an({matches:M.detail,searchType:u})},se=()=>{S()};return r.$$set=M=>{"queryError"in M&&n(0,m=M.queryError)},r.$$.update=()=>{r.$$.dirty&8224&&(u==="live"&&D==="manual"&&S(),n(13,D=u)),r.$$.dirty&49154&&n(9,t=f===null&&(i.query??"")!==(c??"")),r.$$.dirty&49156&&n(8,s=f===null&&i.contextLines!==$),r.$$.dirty&49160&&n(7,l=f===null&&i.files!==C),r.$$.dirty&49168&&n(6,a=f===null&&i.matches!==q)},[m,c,$,C,q,u,a,l,s,t,d,U,S,D,i,f,le,ee,J,re,ae,Y,W,ke,se]}class Xl extends Ee{constructor(e){super(),Le(this,e,Zl,Wl,Ce,{queryError:0})}}function Yl(r){let e,n="or, learn the query syntax from the ground up";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=g(t,"SPAN",{class:!0,"data-svelte-h":!0}),V(e)!=="svelte-2dyn7y"&&(e.textContent=n),this.h()},h(){_(e,"class","text-xs")},m(t,s){R(t,e,s)},p:un,d(t){t&&h(e)}}}function er(r){let e;return{c(){e=H("universal-ctags")},l(n){e=j(n,"universal-ctags")},m(n,t){R(n,e,t)},d(n){n&&h(e)}}}function tr(r){let e;return{c(){e=H("expression")},l(n){e=j(n,"expression")},m(n,t){R(n,e,t)},d(n){n&&h(e)}}}function nr(r){let e;return{c(){e=H("read the manual")},l(n){e=j(n,"read the manual")},m(n,t){R(n,e,t)},d(n){n&&h(e)}}}function sr(r){let e,n="ɴᴇᴏɢʀᴏᴋ",t,s,l,a,i="query examples",f,u,m,d,c,$,C="Every query is regex",q,E,U,S,D,le,ee="dot is a wildcard",J,re,ae,Y,W,ke="escaped dot is a dot",se,M,ce,de,Z,te,he,Q,ue="multiline search!",G,B,ne,xe="Filter results by...",A,L,z,fe,qe,me,et="(or <code>f:</code>)",Se,Oe,Ne,O,F,pe="(or <code>r:</code>)",$e,ge,_e,Re,be,tt="(or <code>b:</code>)",Bt,tn,nt,On,ze,st,Es="Exclude certain kinds of repositories",Hn,Pe,lt,rt,jn,at,Ls="(or <code>yes</code>)",Un,ot,it,Rn,ut,qs="(or <code>yes</code>)",zn,ft,ct,Dn,ht,Ss="(or <code>yes</code>)",Vn,Ie,mt,Ns="Search for symbol definitions",Bn,De,Qn,Ve,Fn,Gn,Be,nn,pt,Kn,sn,gt,Jn,Te,_t,Ps="Automatic case sensitivity",Wn,dt,Is=`If a query is all-lowercase, it is case insensitive by default;
|
|
2
|
+
otherwise it is case-sensitive by default. Change that with
|
|
3
|
+
<code>case:</code>.`,Zn,Qe,He,$t,Xn,bt,Ts="vs",Yn,vt,es,je,yt,ts,kt,As="vs",ns,xt,ss,Ae,wt,Ms="Use double quotes for queries with spaces",ls,Fe,rs,Ge,as,os,Ke,ln,Ct,is,rn,Et,us,Me,Lt,Os="Logically compose expressions",fs,Je,cs,We,hs,ms,ve,qt,St,ps,Nt,Hs="negate with a leading dash",gs,Pt,It,_s,Tt,js="expressions are implicitly 'and'ed…",ds,At,Mt,$s,Ot,Us="…but explicitly 'or'ed",bs,Ht,jt,vs,Ut,Rs="group expressions with parentheses",fn;return u=new on({props:{to:"/syntax",$$slots:{default:[Yl]},$$scope:{ctx:r}}}),S=new K({props:{query:".printf"}}),ae=new K({props:{query:"\\.printf"}}),ce=new K({props:{query:"whom?"}}),te=new K({props:{query:"OR[[:space:]]IMPLIED"}}),fe=new K({props:{query:"file:README test"}}),Ne=new K({props:{query:"repo:linux test"}}),_e=new K({props:{query:"branch:pages test"}}),nt=new K({props:{query:"lang:java test"}}),rt=new K({props:{query:"fork:no test"}}),it=new K({props:{query:"public:no test"}}),ct=new K({props:{query:"archived:no test"}}),Ve=new on({props:{to:"https://ctags.io",$$slots:{default:[er]},$$scope:{ctx:r}}}),pt=new K({props:{query:"sym:main"}}),gt=new K({props:{query:"sym:Test[A-Z]"}}),$t=new K({props:{query:"readme"}}),vt=new K({props:{query:"readme case:yes"}}),yt=new K({props:{query:"README"}}),xt=new K({props:{query:"README case:no"}}),Ge=new on({props:{to:"/syntax#expressions",$$slots:{default:[tr]},$$scope:{ctx:r}}}),Ct=new K({props:{query:'"run the test"'}}),Et=new K({props:{query:'"goto considered harmful"'}}),We=new on({props:{to:"/syntax#boolean-logic",$$slots:{default:[nr]},$$scope:{ctx:r}}}),St=new K({props:{query:"this -without_this"}}),It=new K({props:{query:"all of these"}}),Mt=new K({props:{query:"any or of or these"}}),jt=new K({props:{query:"(all of these) (any or of or these)"}}),{c(){e=p("h1"),e.textContent=n,t=b(),s=p("div"),l=p("span"),a=p("h2"),a.textContent=i,f=b(),N(u.$$.fragment),m=b(),d=p("ul"),c=p("li"),$=p("h3"),$.textContent=C,q=b(),E=p("ul"),U=p("li"),N(S.$$.fragment),D=b(),le=p("span"),le.textContent=ee,J=b(),re=p("li"),N(ae.$$.fragment),Y=b(),W=p("span"),W.textContent=ke,se=b(),M=p("li"),N(ce.$$.fragment),de=b(),Z=p("li"),N(te.$$.fragment),he=b(),Q=p("span"),Q.textContent=ue,G=b(),B=p("li"),ne=p("h3"),ne.textContent=xe,A=b(),L=p("ul"),z=p("li"),N(fe.$$.fragment),qe=b(),me=p("span"),me.innerHTML=et,Se=b(),Oe=p("li"),N(Ne.$$.fragment),O=b(),F=p("span"),F.innerHTML=pe,$e=b(),ge=p("li"),N(_e.$$.fragment),Re=b(),be=p("span"),be.innerHTML=tt,Bt=b(),tn=p("li"),N(nt.$$.fragment),On=b(),ze=p("li"),st=p("h3"),st.textContent=Es,Hn=b(),Pe=p("ul"),lt=p("li"),N(rt.$$.fragment),jn=b(),at=p("span"),at.innerHTML=Ls,Un=b(),ot=p("li"),N(it.$$.fragment),Rn=b(),ut=p("span"),ut.innerHTML=qs,zn=b(),ft=p("li"),N(ct.$$.fragment),Dn=b(),ht=p("span"),ht.innerHTML=Ss,Vn=b(),Ie=p("li"),mt=p("h3"),mt.textContent=Ns,Bn=b(),De=p("p"),Qn=H("As identified by "),N(Ve.$$.fragment),Fn=H("."),Gn=b(),Be=p("ul"),nn=p("li"),N(pt.$$.fragment),Kn=b(),sn=p("li"),N(gt.$$.fragment),Jn=b(),Te=p("li"),_t=p("h3"),_t.textContent=Ps,Wn=b(),dt=p("p"),dt.innerHTML=Is,Zn=b(),Qe=p("ul"),He=p("li"),N($t.$$.fragment),Xn=b(),bt=p("span"),bt.textContent=Ts,Yn=b(),N(vt.$$.fragment),es=b(),je=p("li"),N(yt.$$.fragment),ts=b(),kt=p("span"),kt.textContent=As,ns=b(),N(xt.$$.fragment),ss=b(),Ae=p("li"),wt=p("h3"),wt.textContent=Ms,ls=b(),Fe=p("p"),rs=H(`Otherwise each word is parsed as a separate
|
|
4
|
+
`),N(Ge.$$.fragment),as=H("."),os=b(),Ke=p("ul"),ln=p("li"),N(Ct.$$.fragment),is=b(),rn=p("li"),N(Et.$$.fragment),us=b(),Me=p("li"),Lt=p("h3"),Lt.textContent=Os,fs=b(),Je=p("span"),cs=H("Seriously, "),N(We.$$.fragment),hs=H(` for this
|
|
5
|
+
one.`),ms=b(),ve=p("ul"),qt=p("li"),N(St.$$.fragment),ps=b(),Nt=p("span"),Nt.textContent=Hs,gs=b(),Pt=p("li"),N(It.$$.fragment),_s=b(),Tt=p("span"),Tt.textContent=js,ds=b(),At=p("li"),N(Mt.$$.fragment),$s=b(),Ot=p("span"),Ot.textContent=Us,bs=b(),Ht=p("li"),N(jt.$$.fragment),vs=b(),Ut=p("span"),Ut.textContent=Rs,this.h()},l(k){e=g(k,"H1",{class:!0,"data-svelte-h":!0}),V(e)!=="svelte-wconra"&&(e.textContent=n),t=v(k),s=g(k,"DIV",{class:!0});var oe=y(s);l=g(oe,"SPAN",{class:!0});var Rt=y(l);a=g(Rt,"H2",{class:!0,"data-svelte-h":!0}),V(a)!=="svelte-1nqizqb"&&(a.textContent=i),f=v(Rt),P(u.$$.fragment,Rt),Rt.forEach(h),m=v(oe),d=g(oe,"UL",{class:!0});var ie=y(d);c=g(ie,"LI",{class:!0});var zt=y(c);$=g(zt,"H3",{class:!0,"data-svelte-h":!0}),V($)!=="svelte-1eyozjq"&&($.textContent=C),q=v(zt),E=g(zt,"UL",{class:!0});var we=y(E);U=g(we,"LI",{});var cn=y(U);P(S.$$.fragment,cn),D=v(cn),le=g(cn,"SPAN",{class:!0,"data-svelte-h":!0}),V(le)!=="svelte-1kofq96"&&(le.textContent=ee),cn.forEach(h),J=v(we),re=g(we,"LI",{});var hn=y(re);P(ae.$$.fragment,hn),Y=v(hn),W=g(hn,"SPAN",{class:!0,"data-svelte-h":!0}),V(W)!=="svelte-18jaiso"&&(W.textContent=ke),hn.forEach(h),se=v(we),M=g(we,"LI",{});var zs=y(M);P(ce.$$.fragment,zs),zs.forEach(h),de=v(we),Z=g(we,"LI",{});var mn=y(Z);P(te.$$.fragment,mn),he=v(mn),Q=g(mn,"SPAN",{class:!0,"data-svelte-h":!0}),V(Q)!=="svelte-1visk1u"&&(Q.textContent=ue),mn.forEach(h),we.forEach(h),zt.forEach(h),G=v(ie),B=g(ie,"LI",{class:!0});var pn=y(B);ne=g(pn,"H3",{class:!0,"data-svelte-h":!0}),V(ne)!=="svelte-1hsesxl"&&(ne.textContent=xe),A=v(pn),L=g(pn,"UL",{class:!0});var Ze=y(L);z=g(Ze,"LI",{});var gn=y(z);P(fe.$$.fragment,gn),qe=v(gn),me=g(gn,"SPAN",{class:!0,"data-svelte-h":!0}),V(me)!=="svelte-1o4wzqf"&&(me.innerHTML=et),gn.forEach(h),Se=v(Ze),Oe=g(Ze,"LI",{});var _n=y(Oe);P(Ne.$$.fragment,_n),O=v(_n),F=g(_n,"SPAN",{class:!0,"data-svelte-h":!0}),V(F)!=="svelte-13puatn"&&(F.innerHTML=pe),_n.forEach(h),$e=v(Ze),ge=g(Ze,"LI",{});var dn=y(ge);P(_e.$$.fragment,dn),Re=v(dn),be=g(dn,"SPAN",{class:!0,"data-svelte-h":!0}),V(be)!=="svelte-17xlaaj"&&(be.innerHTML=tt),dn.forEach(h),Bt=v(Ze),tn=g(Ze,"LI",{});var Ds=y(tn);P(nt.$$.fragment,Ds),Ds.forEach(h),Ze.forEach(h),pn.forEach(h),On=v(ie),ze=g(ie,"LI",{class:!0});var $n=y(ze);st=g($n,"H3",{class:!0,"data-svelte-h":!0}),V(st)!=="svelte-l49uq"&&(st.textContent=Es),Hn=v($n),Pe=g($n,"UL",{class:!0});var Qt=y(Pe);lt=g(Qt,"LI",{});var bn=y(lt);P(rt.$$.fragment,bn),jn=v(bn),at=g(bn,"SPAN",{class:!0,"data-svelte-h":!0}),V(at)!=="svelte-71g2qu"&&(at.innerHTML=Ls),bn.forEach(h),Un=v(Qt),ot=g(Qt,"LI",{});var vn=y(ot);P(it.$$.fragment,vn),Rn=v(vn),ut=g(vn,"SPAN",{class:!0,"data-svelte-h":!0}),V(ut)!=="svelte-71g2qu"&&(ut.innerHTML=qs),vn.forEach(h),zn=v(Qt),ft=g(Qt,"LI",{});var yn=y(ft);P(ct.$$.fragment,yn),Dn=v(yn),ht=g(yn,"SPAN",{class:!0,"data-svelte-h":!0}),V(ht)!=="svelte-71g2qu"&&(ht.innerHTML=Ss),yn.forEach(h),Qt.forEach(h),$n.forEach(h),Vn=v(ie),Ie=g(ie,"LI",{class:!0});var Ft=y(Ie);mt=g(Ft,"H3",{class:!0,"data-svelte-h":!0}),V(mt)!=="svelte-1w9svfj"&&(mt.textContent=Ns),Bn=v(Ft),De=g(Ft,"P",{class:!0});var kn=y(De);Qn=j(kn,"As identified by "),P(Ve.$$.fragment,kn),Fn=j(kn,"."),kn.forEach(h),Gn=v(Ft),Be=g(Ft,"UL",{class:!0});var xn=y(Be);nn=g(xn,"LI",{});var Vs=y(nn);P(pt.$$.fragment,Vs),Vs.forEach(h),Kn=v(xn),sn=g(xn,"LI",{});var Bs=y(sn);P(gt.$$.fragment,Bs),Bs.forEach(h),xn.forEach(h),Ft.forEach(h),Jn=v(ie),Te=g(ie,"LI",{class:!0});var Gt=y(Te);_t=g(Gt,"H3",{class:!0,"data-svelte-h":!0}),V(_t)!=="svelte-rw6b4q"&&(_t.textContent=Ps),Wn=v(Gt),dt=g(Gt,"P",{class:!0,"data-svelte-h":!0}),V(dt)!=="svelte-po3jik"&&(dt.innerHTML=Is),Zn=v(Gt),Qe=g(Gt,"UL",{class:!0});var wn=y(Qe);He=g(wn,"LI",{});var Kt=y(He);P($t.$$.fragment,Kt),Xn=v(Kt),bt=g(Kt,"SPAN",{class:!0,"data-svelte-h":!0}),V(bt)!=="svelte-bo3bnm"&&(bt.textContent=Ts),Yn=v(Kt),P(vt.$$.fragment,Kt),Kt.forEach(h),es=v(wn),je=g(wn,"LI",{});var Jt=y(je);P(yt.$$.fragment,Jt),ts=v(Jt),kt=g(Jt,"SPAN",{class:!0,"data-svelte-h":!0}),V(kt)!=="svelte-bo3bnm"&&(kt.textContent=As),ns=v(Jt),P(xt.$$.fragment,Jt),Jt.forEach(h),wn.forEach(h),Gt.forEach(h),ss=v(ie),Ae=g(ie,"LI",{class:!0});var Wt=y(Ae);wt=g(Wt,"H3",{class:!0,"data-svelte-h":!0}),V(wt)!=="svelte-1ax2qg5"&&(wt.textContent=Ms),ls=v(Wt),Fe=g(Wt,"P",{class:!0});var Cn=y(Fe);rs=j(Cn,`Otherwise each word is parsed as a separate
|
|
6
|
+
`),P(Ge.$$.fragment,Cn),as=j(Cn,"."),Cn.forEach(h),os=v(Wt),Ke=g(Wt,"UL",{class:!0});var En=y(Ke);ln=g(En,"LI",{});var Qs=y(ln);P(Ct.$$.fragment,Qs),Qs.forEach(h),is=v(En),rn=g(En,"LI",{});var Fs=y(rn);P(Et.$$.fragment,Fs),Fs.forEach(h),En.forEach(h),Wt.forEach(h),us=v(ie),Me=g(ie,"LI",{class:!0});var Zt=y(Me);Lt=g(Zt,"H3",{class:!0,"data-svelte-h":!0}),V(Lt)!=="svelte-9jbq7b"&&(Lt.textContent=Os),fs=v(Zt),Je=g(Zt,"SPAN",{class:!0});var Ln=y(Je);cs=j(Ln,"Seriously, "),P(We.$$.fragment,Ln),hs=j(Ln,` for this
|
|
7
|
+
one.`),Ln.forEach(h),ms=v(Zt),ve=g(Zt,"UL",{class:!0});var Xe=y(ve);qt=g(Xe,"LI",{});var qn=y(qt);P(St.$$.fragment,qn),ps=v(qn),Nt=g(qn,"SPAN",{class:!0,"data-svelte-h":!0}),V(Nt)!=="svelte-hf1rvj"&&(Nt.textContent=Hs),qn.forEach(h),gs=v(Xe),Pt=g(Xe,"LI",{});var Sn=y(Pt);P(It.$$.fragment,Sn),_s=v(Sn),Tt=g(Sn,"SPAN",{class:!0,"data-svelte-h":!0}),V(Tt)!=="svelte-1w1fygt"&&(Tt.textContent=js),Sn.forEach(h),ds=v(Xe),At=g(Xe,"LI",{});var Nn=y(At);P(Mt.$$.fragment,Nn),$s=v(Nn),Ot=g(Nn,"SPAN",{class:!0,"data-svelte-h":!0}),V(Ot)!=="svelte-cahjdy"&&(Ot.textContent=Us),Nn.forEach(h),bs=v(Xe),Ht=g(Xe,"LI",{});var Pn=y(Ht);P(jt.$$.fragment,Pn),vs=v(Pn),Ut=g(Pn,"SPAN",{class:!0,"data-svelte-h":!0}),V(Ut)!=="svelte-8b4fxa"&&(Ut.textContent=Rs),Pn.forEach(h),Xe.forEach(h),Zt.forEach(h),ie.forEach(h),oe.forEach(h),this.h()},h(){_(e,"class","text-4xl text-center pt-8 tracking-wide"),_(a,"class","text-2xl font-semibold"),_(l,"class","text-center"),_($,"class","text-lg"),_(le,"class","text-xs"),_(W,"class","text-xs"),_(Q,"class","text-xs"),_(E,"class","space-y-1"),_(c,"class","grow basis-64 max-w-xs"),_(ne,"class","text-lg"),_(me,"class","text-xs"),_(F,"class","text-xs"),_(be,"class","text-xs"),_(L,"class","space-y-1"),_(B,"class","grow basis-64 max-w-xs"),_(st,"class","text-lg"),_(at,"class","text-xs"),_(ut,"class","text-xs"),_(ht,"class","text-xs"),_(Pe,"class","space-y-1"),_(ze,"class","grow basis-64 max-w-xs"),_(mt,"class","text-lg"),_(De,"class","text-xs"),_(Be,"class","space-y-1"),_(Ie,"class","grow basis-64 max-w-xs"),_(_t,"class","text-lg"),_(dt,"class","text-xs"),_(bt,"class","text-sm"),_(kt,"class","text-sm"),_(Qe,"class","space-y-1"),_(Te,"class","grow basis-64 max-w-xs"),_(wt,"class","text-lg"),_(Fe,"class","text-xs"),_(Ke,"class","space-y-1"),_(Ae,"class","grow basis-64 max-w-xs"),_(Lt,"class","text-lg"),_(Je,"class","text-xs"),_(Nt,"class","text-xs"),_(Tt,"class","text-xs"),_(Ot,"class","text-xs"),_(Ut,"class","text-xs"),_(ve,"class","space-y-1"),_(Me,"class","grow basis-64 max-w-xs"),_(d,"class","flex flex-wrap gap-4 justify-evenly"),_(s,"class","flex flex-col items-center pt-6 gap-4")},m(k,oe){R(k,e,oe),R(k,t,oe),R(k,s,oe),o(s,l),o(l,a),o(l,f),I(u,l,null),o(s,m),o(s,d),o(d,c),o(c,$),o(c,q),o(c,E),o(E,U),I(S,U,null),o(U,D),o(U,le),o(E,J),o(E,re),I(ae,re,null),o(re,Y),o(re,W),o(E,se),o(E,M),I(ce,M,null),o(E,de),o(E,Z),I(te,Z,null),o(Z,he),o(Z,Q),o(d,G),o(d,B),o(B,ne),o(B,A),o(B,L),o(L,z),I(fe,z,null),o(z,qe),o(z,me),o(L,Se),o(L,Oe),I(Ne,Oe,null),o(Oe,O),o(Oe,F),o(L,$e),o(L,ge),I(_e,ge,null),o(ge,Re),o(ge,be),o(L,Bt),o(L,tn),I(nt,tn,null),o(d,On),o(d,ze),o(ze,st),o(ze,Hn),o(ze,Pe),o(Pe,lt),I(rt,lt,null),o(lt,jn),o(lt,at),o(Pe,Un),o(Pe,ot),I(it,ot,null),o(ot,Rn),o(ot,ut),o(Pe,zn),o(Pe,ft),I(ct,ft,null),o(ft,Dn),o(ft,ht),o(d,Vn),o(d,Ie),o(Ie,mt),o(Ie,Bn),o(Ie,De),o(De,Qn),I(Ve,De,null),o(De,Fn),o(Ie,Gn),o(Ie,Be),o(Be,nn),I(pt,nn,null),o(Be,Kn),o(Be,sn),I(gt,sn,null),o(d,Jn),o(d,Te),o(Te,_t),o(Te,Wn),o(Te,dt),o(Te,Zn),o(Te,Qe),o(Qe,He),I($t,He,null),o(He,Xn),o(He,bt),o(He,Yn),I(vt,He,null),o(Qe,es),o(Qe,je),I(yt,je,null),o(je,ts),o(je,kt),o(je,ns),I(xt,je,null),o(d,ss),o(d,Ae),o(Ae,wt),o(Ae,ls),o(Ae,Fe),o(Fe,rs),I(Ge,Fe,null),o(Fe,as),o(Ae,os),o(Ae,Ke),o(Ke,ln),I(Ct,ln,null),o(Ke,is),o(Ke,rn),I(Et,rn,null),o(d,us),o(d,Me),o(Me,Lt),o(Me,fs),o(Me,Je),o(Je,cs),I(We,Je,null),o(Je,hs),o(Me,ms),o(Me,ve),o(ve,qt),I(St,qt,null),o(qt,ps),o(qt,Nt),o(ve,gs),o(ve,Pt),I(It,Pt,null),o(Pt,_s),o(Pt,Tt),o(ve,ds),o(ve,At),I(Mt,At,null),o(At,$s),o(At,Ot),o(ve,bs),o(ve,Ht),I(jt,Ht,null),o(Ht,vs),o(Ht,Ut),fn=!0},p(k,[oe]){const Rt={};oe&1&&(Rt.$$scope={dirty:oe,ctx:k}),u.$set(Rt);const ie={};oe&1&&(ie.$$scope={dirty:oe,ctx:k}),Ve.$set(ie);const zt={};oe&1&&(zt.$$scope={dirty:oe,ctx:k}),Ge.$set(zt);const we={};oe&1&&(we.$$scope={dirty:oe,ctx:k}),We.$set(we)},i(k){fn||(x(u.$$.fragment,k),x(S.$$.fragment,k),x(ae.$$.fragment,k),x(ce.$$.fragment,k),x(te.$$.fragment,k),x(fe.$$.fragment,k),x(Ne.$$.fragment,k),x(_e.$$.fragment,k),x(nt.$$.fragment,k),x(rt.$$.fragment,k),x(it.$$.fragment,k),x(ct.$$.fragment,k),x(Ve.$$.fragment,k),x(pt.$$.fragment,k),x(gt.$$.fragment,k),x($t.$$.fragment,k),x(vt.$$.fragment,k),x(yt.$$.fragment,k),x(xt.$$.fragment,k),x(Ge.$$.fragment,k),x(Ct.$$.fragment,k),x(Et.$$.fragment,k),x(We.$$.fragment,k),x(St.$$.fragment,k),x(It.$$.fragment,k),x(Mt.$$.fragment,k),x(jt.$$.fragment,k),fn=!0)},o(k){w(u.$$.fragment,k),w(S.$$.fragment,k),w(ae.$$.fragment,k),w(ce.$$.fragment,k),w(te.$$.fragment,k),w(fe.$$.fragment,k),w(Ne.$$.fragment,k),w(_e.$$.fragment,k),w(nt.$$.fragment,k),w(rt.$$.fragment,k),w(it.$$.fragment,k),w(ct.$$.fragment,k),w(Ve.$$.fragment,k),w(pt.$$.fragment,k),w(gt.$$.fragment,k),w($t.$$.fragment,k),w(vt.$$.fragment,k),w(yt.$$.fragment,k),w(xt.$$.fragment,k),w(Ge.$$.fragment,k),w(Ct.$$.fragment,k),w(Et.$$.fragment,k),w(We.$$.fragment,k),w(St.$$.fragment,k),w(It.$$.fragment,k),w(Mt.$$.fragment,k),w(jt.$$.fragment,k),fn=!1},d(k){k&&(h(e),h(t),h(s)),T(u),T(S),T(ae),T(ce),T(te),T(fe),T(Ne),T(_e),T(nt),T(rt),T(it),T(ct),T(Ve),T(pt),T(gt),T($t),T(vt),T(yt),T(xt),T(Ge),T(Ct),T(Et),T(We),T(St),T(It),T(Mt),T(jt)}}}class vl extends Ee{constructor(e){super(),Le(this,e,null,sr,Ce,{})}}function Zs(r,e,n){const t=r.slice();return t[4]=e[n].text,t[5]=e[n].match,t[6]=e[n].color,t[7]=e[n].fontClass,t}function lr(r){let e=r[4]+"",n;return{c(){n=H(e)},l(t){n=j(t,e)},m(t,s){R(t,n,s)},p(t,s){s&1&&e!==(e=t[4]+"")&&X(n,e)},d(t){t&&h(n)}}}function rr(r){let e,n=r[4]+"",t,s,l;return{c(){e=p("span"),t=H(n),this.h()},l(a){e=g(a,"SPAN",{style:!0,class:!0});var i=y(e);t=j(i,n),i.forEach(h),this.h()},h(){_(e,"style",s=`color: ${r[6]}`),_(e,"class",l=r[7])},m(a,i){R(a,e,i),o(e,t)},p(a,i){i&1&&n!==(n=a[4]+"")&&X(t,n),i&1&&s!==(s=`color: ${a[6]}`)&&_(e,"style",s),i&1&&l!==(l=a[7])&&_(e,"class",l)},d(a){a&&h(e)}}}function ar(r){let e,n=r[4]+"",t;return{c(){e=p("mark"),t=H(n),this.h()},l(s){e=g(s,"MARK",{class:!0});var l=y(e);t=j(l,n),l.forEach(h),this.h()},h(){_(e,"class","bg-yellow-200")},m(s,l){R(s,e,l),o(e,t)},p(s,l){l&1&&n!==(n=s[4]+"")&&X(t,n)},d(s){s&&h(e)}}}function or(r){let e,n,t=r[4]+"",s,l,a;return{c(){e=p("mark"),n=p("span"),s=H(t),this.h()},l(i){e=g(i,"MARK",{class:!0});var f=y(e);n=g(f,"SPAN",{style:!0,class:!0});var u=y(n);s=j(u,t),u.forEach(h),f.forEach(h),this.h()},h(){_(n,"style",l=`color: ${r[6]}`),_(n,"class",a=r[7]),_(e,"class","bg-yellow-200")},m(i,f){R(i,e,f),o(e,n),o(n,s)},p(i,f){f&1&&t!==(t=i[4]+"")&&X(s,t),f&1&&l!==(l=`color: ${i[6]}`)&&_(n,"style",l),f&1&&a!==(a=i[7])&&_(n,"class",a)},d(i){i&&h(e)}}}function Xs(r){let e;function n(l,a){return l[5]&&l[6]?or:l[5]?ar:l[6]?rr:lr}let t=n(r),s=t(r);return{c(){s.c(),e=ye()},l(l){s.l(l),e=ye()},m(l,a){s.m(l,a),R(l,e,a)},p(l,a){t===(t=n(l))&&s?s.p(l,a):(s.d(1),s=t(l),s&&(s.c(),s.m(e.parentNode,e)))},d(l){l&&h(e),s.d(l)}}}function ir(r){let e,n=Ye(r[0]),t=[];for(let s=0;s<n.length;s+=1)t[s]=Xs(Zs(r,n,s));return{c(){for(let s=0;s<t.length;s+=1)t[s].c();e=ye()},l(s){for(let l=0;l<t.length;l+=1)t[l].l(s);e=ye()},m(s,l){for(let a=0;a<t.length;a+=1)t[a]&&t[a].m(s,l);R(s,e,l)},p(s,[l]){if(l&1){n=Ye(s[0]);let a;for(a=0;a<n.length;a+=1){const i=Zs(s,n,a);t[a]?t[a].p(i,l):(t[a]=Xs(i),t[a].c(),t[a].m(e.parentNode,e))}for(;a<t.length;a+=1)t[a].d(1);t.length=n.length}},i:un,o:un,d(s){s&&h(e),pl(t,s)}}}function ur(r,e,n){let{content:t}=e,{highlights:s=void 0}=e;const l=i=>{if(i!==void 0)switch(i){case 0:return;case 1:return"italic";case 2:return"font-bold";case 4:return"underline";default:throw new Error(`unreachable ${i}`)}};let a;return r.$$set=i=>{"content"in i&&n(1,t=i.content),"highlights"in i&&n(2,s=i.highlights)},r.$$.update=()=>{if(r.$$.dirty&6){const i=[];if(s){const f=t.matchRanges[Symbol.iterator]();let u=f.next().value,m=0;for(const{content:d,fontStyle:c,color:$}of s){const C=m+d.length,q=l(c);let E=m;for(;u&&(u.start>E&&u.start<C||u.end>E&&u.end<=C);)u.start>E&&u.start<C&&(i.push({text:t.text.slice(E,u.start),match:!1,fontClass:q,color:$}),E=u.start),u.end>E&&u.end<=C&&(i.push({text:t.text.slice(E,u.end),match:!0,fontClass:q,color:$}),E=u.end,u=f.next().value);E<C&&i.push({text:t.text.slice(E,C),match:!!u&&E>=u.start&&E<u.end,fontClass:q,color:$}),m=C}}else{let f=0;for(const{start:u,end:m}of t.matchRanges)f<u&&i.push({text:t.text.slice(f,u),match:!1}),i.push({text:t.text.slice(u,m),match:!0}),f=m;f<t.text.length&&i.push({text:t.text.slice(f),match:!1})}n(0,a=i)}},[a,t,s]}class Cs extends Ee{constructor(e){super(),Le(this,e,ur,ir,Ce,{content:1,highlights:2})}}function fr(r){let e,n;return e=new Cs({props:{content:r[0].fileName}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.content=t[0].fileName),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function cr(r){let e,n;return e=new on({props:{to:r[0].fileUrl,$$slots:{default:[hr]},$$scope:{ctx:r}}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.to=t[0].fileUrl),s&9&&(l.$$scope={dirty:s,ctx:t}),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function hr(r){let e,n;return e=new Cs({props:{content:r[0].fileName}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.content=t[0].fileName),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function mr(r){let e,n,t=r[0].repository+"",s,l,a,i,f,u,m=r[1].join(" | ")+"",d,c;l=new zl({props:{class:"inline",size:16}});const $=[cr,fr],C=[];function q(E,U){return E[0].fileUrl?0:1}return a=q(r),i=C[a]=$[a](r),{c(){e=p("h2"),n=p("span"),s=H(t),N(l.$$.fragment),i.c(),f=b(),u=p("span"),d=H(m),this.h()},l(E){e=g(E,"H2",{class:!0});var U=y(e);n=g(U,"SPAN",{});var S=y(n);s=j(S,t),P(l.$$.fragment,S),i.l(S),S.forEach(h),f=v(U),u=g(U,"SPAN",{class:!0});var D=y(u);d=j(D,m),D.forEach(h),U.forEach(h),this.h()},h(){_(u,"class","ml-auto"),_(e,"class","px-2 py-1 text-sm sticky top-0 flex flex-wrap bg-slate-100 whitespace-pre-wrap [overflow-wrap:anywhere]")},m(E,U){R(E,e,U),o(e,n),o(n,s),I(l,n,null),C[a].m(n,null),o(e,f),o(e,u),o(u,d),c=!0},p(E,[U]){(!c||U&1)&&t!==(t=E[0].repository+"")&&X(s,t);let S=a;a=q(E),a===S?C[a].p(E,U):(Dt(),w(C[S],1,1,()=>{C[S]=null}),Vt(),i=C[a],i?i.p(E,U):(i=C[a]=$[a](E),i.c()),x(i,1),i.m(n,null)),(!c||U&2)&&m!==(m=E[1].join(" | ")+"")&&X(d,m)},i(E){c||(x(l.$$.fragment,E),x(i),c=!0)},o(E){w(l.$$.fragment,E),w(i),c=!1},d(E){E&&h(e),T(l),C[a].d()}}}function pr(r,e,n){let t,{file:s}=e,{rank:l}=e;return r.$$set=a=>{"file"in a&&n(0,s=a.file),"rank"in a&&n(2,l=a.rank)},r.$$.update=()=>{r.$$.dirty&5&&n(1,t=[`${s.matchCount} ${s.matchCount===1?"match":"matches"}`,...s.branches.length>1||s.branches[0]!=="HEAD"?[s.branches.join(", ")]:[],s.language||"Text",`№${l}`])},[s,t,l]}class gr extends Ee{constructor(e){super(),Le(this,e,pr,mr,Ce,{file:0,rank:2})}}function Ys(r,e,n){const t=r.slice();return t[4]=e[n].lineNumber,t[5]=e[n].line,t[7]=n,t}function _r(r){let e=r[4]+"",n;return{c(){n=H(e)},l(t){n=j(t,e)},m(t,s){R(t,n,s)},p(t,s){s&1&&e!==(e=t[4]+"")&&X(n,e)},d(t){t&&h(n)}}}function dr(r){let e,n=r[4]+"",t,s;return{c(){e=p("a"),t=H(n),this.h()},l(l){e=g(l,"A",{class:!0,href:!0});var a=y(e);t=j(a,n),a.forEach(h),this.h()},h(){_(e,"class","hover:underline decoration-1"),_(e,"href",s=`${r[1].fileUrl}${r[1].lineNumberTemplate.join(r[4].toString())}`)},m(l,a){R(l,e,a),o(e,t)},p(l,a){a&1&&n!==(n=l[4]+"")&&X(t,n),a&3&&s!==(s=`${l[1].fileUrl}${l[1].lineNumberTemplate.join(l[4].toString())}`)&&_(e,"href",s)},d(l){l&&h(e)}}}function el(r){let e,n,t,s,l;function a(u,m){return u[1].fileUrl&&u[1].lineNumberTemplate?dr:_r}let i=a(r),f=i(r);return s=new Cs({props:{content:r[5],highlights:r[2]?.[r[7]]}}),{c(){e=p("span"),f.c(),n=b(),t=p("code"),N(s.$$.fragment),this.h()},l(u){e=g(u,"SPAN",{class:!0});var m=y(e);f.l(m),m.forEach(h),n=v(u),t=g(u,"CODE",{});var d=y(t);P(s.$$.fragment,d),d.forEach(h),this.h()},h(){_(e,"class","select-none text-gray-600 text-right pr-1")},m(u,m){R(u,e,m),f.m(e,null),R(u,n,m),R(u,t,m),I(s,t,null),l=!0},p(u,m){i===(i=a(u))&&f?f.p(u,m):(f.d(1),f=i(u),f&&(f.c(),f.m(e,null)));const d={};m&1&&(d.content=u[5]),m&4&&(d.highlights=u[2]?.[u[7]]),s.$set(d)},i(u){l||(x(s.$$.fragment,u),l=!0)},o(u){w(s.$$.fragment,u),l=!1},d(u){u&&(h(e),h(n),h(t)),f.d(),T(s)}}}function $r(r){let e,n,t=Ye(r[0]),s=[];for(let a=0;a<t.length;a+=1)s[a]=el(Ys(r,t,a));const l=a=>w(s[a],1,1,()=>{s[a]=null});return{c(){e=p("div");for(let a=0;a<s.length;a+=1)s[a].c();this.h()},l(a){e=g(a,"DIV",{class:!0});var i=y(e);for(let f=0;f<s.length;f+=1)s[f].l(i);i.forEach(h),this.h()},h(){_(e,"class","py-1 grid grid-cols-[minmax(2rem,_min-content)_1fr] gap-x-2 whitespace-pre overflow-x-auto")},m(a,i){R(a,e,i);for(let f=0;f<s.length;f+=1)s[f]&&s[f].m(e,null);n=!0},p(a,[i]){if(i&7){t=Ye(a[0]);let f;for(f=0;f<t.length;f+=1){const u=Ys(a,t,f);s[f]?(s[f].p(u,i),x(s[f],1)):(s[f]=el(u),s[f].c(),x(s[f],1),s[f].m(e,null))}for(Dt(),f=t.length;f<s.length;f+=1)l(f);Vt()}},i(a){if(!n){for(let i=0;i<t.length;i+=1)x(s[i]);n=!0}},o(a){s=s.filter(Boolean);for(let i=0;i<s.length;i+=1)w(s[i]);n=!1},d(a){a&&h(e),pl(s,a)}}}function br(r,e,n){let t,{lines:s}=e,{file:l}=e;const a=xl();return Ue(r,a,i=>n(2,t=i)),Pl(()=>{let i=!1;const f=setTimeout(async()=>{const{codeToThemedTokens:u,bundledLanguages:m}=await Ml(()=>import("../chunks/index.8xz2tJHQ.js"),__vite__mapDeps([0,1]),import.meta.url);let d=l.language.toLowerCase();if(d==="restructuredtext"&&(d="rst"),d in m){const c=d;i||a.set(await u(s.map(({line:{text:$}})=>$).join(`
|
|
8
|
+
`),{theme:"github-light",lang:c}))}else d!=="text"&&console.warn("Could not find shikiji language for '%s', skipping highlighting",d,m)},500);return()=>{i=!0,clearTimeout(f)}}),r.$$set=i=>{"lines"in i&&n(0,s=i.lines),"file"in i&&n(1,l=i.file)},[s,l,t,a]}class vr extends Ee{constructor(e){super(),Le(this,e,br,$r,Ce,{lines:0,file:1})}}const yr=(r,e,n)=>{const t=[],s=Math.min(e*2,e+10);let l=0;const a=i=>{if(l>=e)return null;if(l+i.matchCount>=s){let f=0;const u=[];for(const m of i.lines)if(u.push(m),f+=m.matchRanges.length,l+f>=s)break;return{lines:u,matchCount:f,startLineNumber:i.startLineNumber}}else return i};if(e>0)for(const i of r){const f=a(i);if(!n&&f===null)break;l+=f?.matchCount??0;const u=n?i:f,{lines:m,startLineNumber:d}=u,c=m.map((C,q)=>({lineNumber:q+d,line:C}));if(t.at(-1)?.at(-1)?.lineNumber===d-1?t.at(-1).push(...c):t.push(c),!n&&l>=e)break}return{lineGroups:t,preCutoffMatchCount:l}};function tl(r,e,n){const t=r.slice();return t[15]=e[n],t}function nl(r){let e,n=[],t=new Map,s,l=Ye(r[5]);const a=i=>i[15][0].lineNumber;for(let i=0;i<l.length;i+=1){let f=tl(r,l,i),u=a(f);t.set(u,n[i]=sl(u,f))}return{c(){e=p("div");for(let i=0;i<n.length;i+=1)n[i].c();this.h()},l(i){e=g(i,"DIV",{class:!0});var f=y(e);for(let u=0;u<n.length;u+=1)n[u].l(f);f.forEach(h),this.h()},h(){_(e,"class","font-mono text-sm divide-y")},m(i,f){R(i,e,f);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(e,null);s=!0},p(i,f){f&33&&(l=Ye(i[5]),Dt(),n=$l(n,f,a,1,i,l,t,e,bl,sl,null,tl),Vt())},i(i){if(!s){for(let f=0;f<l.length;f+=1)x(n[f]);s=!0}},o(i){for(let f=0;f<n.length;f+=1)w(n[f]);s=!1},d(i){i&&h(e);for(let f=0;f<n.length;f+=1)n[f].d()}}}function sl(r,e){let n,t,s;return t=new vr({props:{lines:e[15],file:e[0]}}),{key:r,first:null,c(){n=ye(),N(t.$$.fragment),this.h()},l(l){n=ye(),P(t.$$.fragment,l),this.h()},h(){this.first=n},m(l,a){R(l,n,a),I(t,l,a),s=!0},p(l,a){e=l;const i={};a&32&&(i.lines=e[15]),a&1&&(i.file=e[0]),t.$set(i)},i(l){s||(x(t.$$.fragment,l),s=!0)},o(l){w(t.$$.fragment,l),s=!1},d(l){l&&h(n),T(t,l)}}}function kr(r){let e,n,t,s,l=r[4]===1?"match":"matches",a,i,f;return{c(){e=p("button"),n=H("Hide "),t=H(r[4]),s=b(),a=H(l),this.h()},l(u){e=g(u,"BUTTON",{type:!0,class:!0});var m=y(e);n=j(m,"Hide "),t=j(m,r[4]),s=v(m),a=j(m,l),m.forEach(h),this.h()},h(){_(e,"type","button"),_(e,"class","bg-slate-100 text-sm py-1 sticky bottom-0")},m(u,m){R(u,e,m),o(e,n),o(e,t),o(e,s),o(e,a),i||(f=Xt(e,"click",r[9]),i=!0)},p(u,m){m&16&&X(t,u[4]),m&16&&l!==(l=u[4]===1?"match":"matches")&&X(a,l)},d(u){u&&h(e),i=!1,f()}}}function xr(r){let e,n,t,s,l=r[4]===1?"match":"matches",a,i,f;return{c(){e=p("button"),n=H("Show "),t=H(r[4]),s=H(" more "),a=H(l),this.h()},l(u){e=g(u,"BUTTON",{type:!0,class:!0});var m=y(e);n=j(m,"Show "),t=j(m,r[4]),s=j(m," more "),a=j(m,l),m.forEach(h),this.h()},h(){_(e,"type","button"),_(e,"class","bg-slate-100 text-sm py-1")},m(u,m){R(u,e,m),o(e,n),o(e,t),o(e,s),o(e,a),i||(f=Xt(e,"click",r[8]),i=!0)},p(u,m){m&16&&X(t,u[4]),m&16&&l!==(l=u[4]===1?"match":"matches")&&X(a,l)},d(u){u&&h(e),i=!1,f()}}}function wr(r){let e,n,t,s,l,a,i,f;l=new gr({props:{file:r[0],rank:r[1]}});let u=r[5].length>0&&nl(r);function m($,C){if($[4]>0&&!$[2])return xr;if($[4]>0&&$[2])return kr}let d=m(r),c=d&&d(r);return{c(){e=p("div"),n=p("span"),t=b(),s=p("section"),N(l.$$.fragment),a=b(),u&&u.c(),i=b(),c&&c.c(),this.h()},l($){e=g($,"DIV",{});var C=y(e);n=g(C,"SPAN",{}),y(n).forEach(h),t=v(C),s=g(C,"SECTION",{class:!0});var q=y(s);P(l.$$.fragment,q),a=v(q),u&&u.l(q),i=v(q),c&&c.l(q),q.forEach(h),C.forEach(h),this.h()},h(){_(s,"class","p-1 border-2 flex flex-col gap-1")},m($,C){R($,e,C),o(e,n),r[14](n),o(e,t),o(e,s),I(l,s,null),o(s,a),u&&u.m(s,null),o(s,i),c&&c.m(s,null),f=!0},p($,[C]){const q={};C&1&&(q.file=$[0]),C&2&&(q.rank=$[1]),l.$set(q),$[5].length>0?u?(u.p($,C),C&32&&x(u,1)):(u=nl($),u.c(),x(u,1),u.m(s,i)):u&&(Dt(),w(u,1,1,()=>{u=null}),Vt()),d===(d=m($))&&c?c.p($,C):(c&&c.d(1),c=d&&d($),c&&(c.c(),c.m(s,null)))},i($){f||(x(l.$$.fragment,$),x(u),f=!0)},o($){w(l.$$.fragment,$),w(u),f=!1},d($){$&&h(e),r[14](null),T(l),u&&u.d(),c&&c.d()}}}function Cr(r,e,n){let t,s,l,a,i,f,{file:u}=e,{rank:m}=e;const d=gl();Ue(r,d,S=>n(13,f=S));const c=Al();Ue(r,c,S=>n(12,i=S));let $=!1;const C=()=>{n(2,$=!0)};let q;const E=async()=>{await new Promise(S=>{const D=new IntersectionObserver(le=>{le.some(({isIntersecting:ee})=>ee)&&(D.disconnect(),S())});D.observe(q),q.scrollIntoView({block:"nearest",behavior:"smooth"})}),n(2,$=!1)};function U(S){Tn[S?"unshift":"push"](()=>{q=S,n(3,q)})}return r.$$set=S=>{"file"in S&&n(0,u=S.file),"rank"in S&&n(1,m=S.rank)},r.$$.update=()=>{r.$$.dirty&8193&&n(11,t=f==="line-number"?[...u.chunks].sort(({startLineNumber:S},{startLineNumber:D})=>S-D):u.chunks),r.$$.dirty&6148&&n(5,{lineGroups:s,preCutoffMatchCount:l}=yr(t,i,$),s,(n(10,l),n(11,t),n(12,i),n(2,$),n(13,f),n(0,u))),r.$$.dirty&1025&&n(4,a=u.matchCount-l-u.fileName.matchRanges.length)},[u,m,$,q,a,s,d,c,C,E,l,t,i,f,U]}class Er extends Ee{constructor(e){super(),Le(this,e,Cr,wr,Ce,{file:0,rank:1})}}function ll(r,e,n){const t=r.slice();return t[10]=e[n],t[12]=n,t}function rl(r){let e,n="(truncated)";return{c(){e=p("span"),e.textContent=n,this.h()},l(t){e=g(t,"SPAN",{title:!0,class:!0,"data-svelte-h":!0}),V(e)!=="svelte-k2z799"&&(e.textContent=n),this.h()},h(){_(e,"title","The number of matches found in zoekt reached the maximum limits, so the search was aborted and these counts are incomplete"),_(e,"class","text-yellow-700 cursor-help underline decoration-dashed")},m(t,s){R(t,e,s)},d(t){t&&h(e)}}}function al(r,e){let n,t,s;return t=new Er({props:{file:e[10],rank:e[12]+1}}),{key:r,first:null,c(){n=ye(),N(t.$$.fragment),this.h()},l(l){n=ye(),P(t.$$.fragment,l),this.h()},h(){this.first=n},m(l,a){R(l,n,a),I(t,l,a),s=!0},p(l,a){e=l;const i={};a&4&&(i.file=e[10]),a&4&&(i.rank=e[12]+1),t.$set(i)},i(l){s||(x(t.$$.fragment,l),s=!0)},o(l){w(t.$$.fragment,l),s=!1},d(l){l&&h(n),T(t,l)}}}function Lr(r){let e,n,t,s,l,a=r[3]===1?"file":"files",i,f,u,m,d=r[1]===1?"match":"matches",c,$,C,q=Math.floor(r[6]/1e4)/100+"",E,U,S,D,le,ee,J=r[2].length+"",re,ae,Y=r[2].length===1?"file":"files",W,ke,se,M,ce,de=r[0]===1?"match":"matches",Z,te,he,Q=[],ue=new Map,G,B=r[7]>0&&rl(),ne=Ye(r[2]);const xe=A=>`${A[10].repository}/${A[10].fileName.text}@${A[10].branches.join(";")}`;for(let A=0;A<ne.length;A+=1){let L=ll(r,ne,A),z=xe(L);ue.set(z,Q[A]=al(z,L))}return{c(){e=p("h1"),n=p("span"),t=H("zoekt: "),s=H(r[3]),l=b(),i=H(a),f=H(" / "),u=H(r[1]),m=b(),c=H(d),$=b(),B&&B.c(),C=H(" / "),E=H(q),U=H("ms"),S=b(),D=p("span"),le=H("neogrok: "),ee=p("span"),re=H(J),ae=b(),W=H(Y),ke=H(`
|
|
9
|
+
/
|
|
10
|
+
`),se=p("span"),M=H(r[0]),ce=b(),Z=H(de),te=b(),he=p("div");for(let A=0;A<Q.length;A+=1)Q[A].c();this.h()},l(A){e=g(A,"H1",{class:!0});var L=y(e);n=g(L,"SPAN",{});var z=y(n);t=j(z,"zoekt: "),s=j(z,r[3]),l=v(z),i=j(z,a),f=j(z," / "),u=j(z,r[1]),m=v(z),c=j(z,d),$=v(z),B&&B.l(z),C=j(z," / "),E=j(z,q),U=j(z,"ms"),z.forEach(h),S=v(L),D=g(L,"SPAN",{class:!0});var fe=y(D);le=j(fe,"neogrok: "),ee=g(fe,"SPAN",{});var qe=y(ee);re=j(qe,J),ae=v(qe),W=j(qe,Y),qe.forEach(h),ke=j(fe,`
|
|
11
|
+
/
|
|
12
|
+
`),se=g(fe,"SPAN",{});var me=y(se);M=j(me,r[0]),ce=v(me),Z=j(me,de),me.forEach(h),fe.forEach(h),L.forEach(h),te=v(A),he=g(A,"DIV",{class:!0});var et=y(he);for(let Se=0;Se<Q.length;Se+=1)Q[Se].l(et);et.forEach(h),this.h()},h(){In(ee,"text-yellow-700",r[5]),In(se,"text-yellow-700",r[4]),_(D,"class","ml-auto"),_(e,"class","text-xs flex flex-wrap py-1"),_(he,"class","space-y-2")},m(A,L){R(A,e,L),o(e,n),o(n,t),o(n,s),o(n,l),o(n,i),o(n,f),o(n,u),o(n,m),o(n,c),o(n,$),B&&B.m(n,null),o(n,C),o(n,E),o(n,U),o(e,S),o(e,D),o(D,le),o(D,ee),o(ee,re),o(ee,ae),o(ee,W),o(D,ke),o(D,se),o(se,M),o(se,ce),o(se,Z),R(A,te,L),R(A,he,L);for(let z=0;z<Q.length;z+=1)Q[z]&&Q[z].m(he,null);G=!0},p(A,[L]){(!G||L&8)&&X(s,A[3]),(!G||L&8)&&a!==(a=A[3]===1?"file":"files")&&X(i,a),(!G||L&2)&&X(u,A[1]),(!G||L&2)&&d!==(d=A[1]===1?"match":"matches")&&X(c,d),A[7]>0?B||(B=rl(),B.c(),B.m(n,C)):B&&(B.d(1),B=null),(!G||L&64)&&q!==(q=Math.floor(A[6]/1e4)/100+"")&&X(E,q),(!G||L&4)&&J!==(J=A[2].length+"")&&X(re,J),(!G||L&4)&&Y!==(Y=A[2].length===1?"file":"files")&&X(W,Y),(!G||L&32)&&In(ee,"text-yellow-700",A[5]),(!G||L&1)&&X(M,A[0]),(!G||L&1)&&de!==(de=A[0]===1?"match":"matches")&&X(Z,de),(!G||L&16)&&In(se,"text-yellow-700",A[4]),L&4&&(ne=Ye(A[2]),Dt(),Q=$l(Q,L,xe,1,A,ne,ue,he,bl,al,null,ll),Vt())},i(A){if(!G){for(let L=0;L<ne.length;L+=1)x(Q[L]);G=!0}},o(A){for(let L=0;L<Q.length;L+=1)w(Q[L]);G=!1},d(A){A&&(h(e),h(te),h(he)),B&&B.d();for(let L=0;L<Q.length;L+=1)Q[L].d()}}}function qr(r,e,n){let t,s,l,a,i,f,u,m,d;Ue(r,Mn,$=>n(9,d=$));let{results:c}=e;return r.$$set=$=>{"results"in $&&n(8,c=$.results)},r.$$.update=()=>{r.$$.dirty&256&&n(3,{zoektStats:{fileCount:t,matchCount:s,filesSkipped:l,duration:a},files:i}=c,t,(n(1,s),n(8,c)),(n(7,l),n(8,c)),(n(6,a),n(8,c)),(n(2,i),n(8,c))),r.$$.dirty&4&&n(0,f=i.reduce(($,{matchCount:C})=>$+C,0)),r.$$.dirty&524&&n(5,u=t>i.length&&i.length===d.files),r.$$.dirty&515&&n(4,m=s>f&&f===d.matches)},[f,s,i,t,m,u,a,l,c,d]}class yl extends Ee{constructor(e){super(),Le(this,e,qr,Lr,Ce,{results:8})}}function Sr(r){let e,n;return e=new yl({props:{results:r[0].searchOutcome.results}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p(t,s){const l={};s&1&&(l.results=t[0].searchOutcome.results),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function Nr(r){let e,n,t,s;const l=[Tr,Ir],a=[];function i(f,u){return f[1]?0:1}return e=i(r),n=a[e]=l[e](r),{c(){n.c(),t=ye()},l(f){n.l(f),t=ye()},m(f,u){a[e].m(f,u),R(f,t,u),s=!0},p(f,u){let m=e;e=i(f),e===m?a[e].p(f,u):(Dt(),w(a[m],1,1,()=>{a[m]=null}),Vt(),n=a[e],n?n.p(f,u):(n=a[e]=l[e](f),n.c()),x(n,1),n.m(t.parentNode,t))},i(f){s||(x(n),s=!0)},o(f){w(n),s=!1},d(f){f&&h(t),a[e].d(f)}}}function Pr(r){let e,n;return e=new vl({}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p:un,i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function Ir(r){let e,n;return e=new vl({}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p:un,i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function Tr(r){let e,n;return e=new yl({props:{results:r[1]}}),{c(){N(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,s){I(e,t,s),n=!0},p(t,s){const l={};s&2&&(l.results=t[1]),e.$set(l)},i(t){n||(x(e.$$.fragment,t),n=!0)},o(t){w(e.$$.fragment,t),n=!1},d(t){T(e,t)}}}function Ar(r){let e,n,t,s,l,a,i,f;document.title=e=(r[2].query?`${r[2].query} - `:"")+"neogrok",t=new Xl({props:{queryError:r[0].searchOutcome.kind==="error"?r[0].searchOutcome.error:null}});const u=[Pr,Nr,Sr],m=[];function d(c,$){return c[0].searchOutcome.kind==="none"?0:c[0].searchOutcome.kind==="error"?1:2}return l=d(r),a=m[l]=u[l](r),{c(){n=b(),N(t.$$.fragment),s=b(),a.c(),i=ye()},l(c){Il("svelte-1xqnt78",document.head).forEach(h),n=v(c),P(t.$$.fragment,c),s=v(c),a.l(c),i=ye()},m(c,$){R(c,n,$),I(t,c,$),R(c,s,$),m[l].m(c,$),R(c,i,$),f=!0},p(c,[$]){(!f||$&4)&&e!==(e=(c[2].query?`${c[2].query} - `:"")+"neogrok")&&(document.title=e);const C={};$&1&&(C.queryError=c[0].searchOutcome.kind==="error"?c[0].searchOutcome.error:null),t.$set(C);let q=l;l=d(c),l===q?m[l].p(c,$):(Dt(),w(m[q],1,1,()=>{m[q]=null}),Vt(),a=m[l],a?a.p(c,$):(a=m[l]=u[l](c),a.c()),x(a,1),a.m(i.parentNode,i))},i(c){f||(x(t.$$.fragment,c),x(a),f=!0)},o(c){w(t.$$.fragment,c),w(a),f=!1},d(c){c&&(h(n),h(s),h(i)),T(t,c),m[l].d(c)}}}function Mr(r,e,n){let t;Ue(r,Mn,a=>n(2,t=a));let{data:s}=e,l=null;return r.$$set=a=>{"data"in a&&n(0,s=a.data)},r.$$.update=()=>{r.$$.dirty&1&&(s.searchOutcome.kind==="success"?n(1,l=s.searchOutcome.results):s.searchOutcome.kind==="none"&&n(1,l=null))},[s,l,t]}class Jr extends Ee{constructor(e){super(),Le(this,e,Mr,Ar,Ce,{data:0})}}export{Jr as component,Kr as universal};
|
|
13
|
+
function __vite__mapDeps(indexes) {
|
|
14
|
+
if (!__vite__mapDeps.viteFileDeps) {
|
|
15
|
+
__vite__mapDeps.viteFileDeps = ["../chunks/index.8xz2tJHQ.js","../chunks/5.MErjPYv9.js"]
|
|
16
|
+
}
|
|
17
|
+
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
18
|
+
}
|
|
Binary file
|
|
Binary file
|