neogrok 0.2.3 → 1.0.0
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/{loading-ellipsis.F0PJp930.js → loading-ellipsis.mvuswosg.js} +5 -5
- package/build/client/_app/immutable/chunks/loading-ellipsis.mvuswosg.js.br +0 -0
- package/build/client/_app/immutable/chunks/loading-ellipsis.mvuswosg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/singletons.hn7zINdM.js +1 -0
- package/build/client/_app/immutable/chunks/singletons.hn7zINdM.js.br +0 -0
- package/build/client/_app/immutable/chunks/singletons.hn7zINdM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{stores.852AJkoy.js → stores.-I7LX7Z3.js} +1 -1
- package/build/client/_app/immutable/chunks/stores.-I7LX7Z3.js.br +2 -0
- package/build/client/_app/immutable/chunks/stores.-I7LX7Z3.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.ZnsF8F9f.js → app.KviQ7CYm.js} +2 -2
- package/build/client/_app/immutable/entry/app.KviQ7CYm.js.br +0 -0
- package/build/client/_app/immutable/entry/app.KviQ7CYm.js.gz +0 -0
- package/build/client/_app/immutable/entry/{start.v915yXrs.js → start.HdYmLSrz.js} +1 -1
- package/build/client/_app/immutable/entry/start.HdYmLSrz.js.br +0 -0
- package/build/client/_app/immutable/entry/start.HdYmLSrz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.QbtAk6ZO.js → 0.ySqcwo9v.js} +1 -1
- package/build/client/_app/immutable/nodes/0.ySqcwo9v.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.ySqcwo9v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.ysg9Ih1m.js → 1.F9pbmFz4.js} +1 -1
- package/build/client/_app/immutable/nodes/1.F9pbmFz4.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.F9pbmFz4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.IsWZarvt.js → 10.r9Cf-icQ.js} +1 -1
- package/build/client/_app/immutable/nodes/10.r9Cf-icQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.r9Cf-icQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.LfvvxK6w.js → 13.px23MMV-.js} +1 -1
- package/build/client/_app/immutable/nodes/13.px23MMV-.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.px23MMV-.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-6EbCzqU0.js → 0-TkgzVOJ4.js} +2 -2
- package/build/server/chunks/{0-6EbCzqU0.js.map → 0-TkgzVOJ4.js.map} +1 -1
- package/build/server/chunks/{1-bxwKHYr4.js → 1-eQYFz3_9.js} +2 -2
- package/build/server/chunks/{1-bxwKHYr4.js.map → 1-eQYFz3_9.js.map} +1 -1
- package/build/server/chunks/{10-jkR2jgB5.js → 10-Jn5HKt5B.js} +3 -3
- package/build/server/chunks/{10-jkR2jgB5.js.map → 10-Jn5HKt5B.js.map} +1 -1
- package/build/server/chunks/{13-AGP3fA4C.js → 13-pFg_rlj6.js} +3 -3
- package/build/server/chunks/{13-AGP3fA4C.js.map → 13-pFg_rlj6.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-XzvIpipO.js → _page.svelte-P_YkMkGa.js} +5 -5
- package/build/server/chunks/_page.svelte-P_YkMkGa.js.map +1 -0
- package/build/server/chunks/{_page.svelte-wi2O2Ebc.js → _page.svelte-brbw9CBH.js} +5 -5
- package/build/server/chunks/_page.svelte-brbw9CBH.js.map +1 -0
- package/build/server/chunks/{loading-ellipsis-yq_aohpf.js → loading-ellipsis-4AR0F4AZ.js} +7 -7
- package/build/server/chunks/loading-ellipsis-4AR0F4AZ.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 +2 -2
- package/build/client/_app/immutable/chunks/loading-ellipsis.F0PJp930.js.br +0 -0
- package/build/client/_app/immutable/chunks/loading-ellipsis.F0PJp930.js.gz +0 -0
- package/build/client/_app/immutable/chunks/singletons.LsH4Ez6e.js +0 -1
- package/build/client/_app/immutable/chunks/singletons.LsH4Ez6e.js.br +0 -0
- package/build/client/_app/immutable/chunks/singletons.LsH4Ez6e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/stores.852AJkoy.js.br +0 -0
- package/build/client/_app/immutable/chunks/stores.852AJkoy.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.ZnsF8F9f.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ZnsF8F9f.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.v915yXrs.js.br +0 -0
- package/build/client/_app/immutable/entry/start.v915yXrs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.QbtAk6ZO.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.QbtAk6ZO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.ysg9Ih1m.js.br +0 -1
- package/build/client/_app/immutable/nodes/1.ysg9Ih1m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.IsWZarvt.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.IsWZarvt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.LfvvxK6w.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.LfvvxK6w.js.gz +0 -0
- package/build/server/chunks/_page.svelte-XzvIpipO.js.map +0 -1
- package/build/server/chunks/_page.svelte-wi2O2Ebc.js.map +0 -1
- package/build/server/chunks/loading-ellipsis-yq_aohpf.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{c as V}from"./singletons.
|
|
2
|
-
* @license lucide-svelte v0.
|
|
3
|
-
|
|
4
|
-
This source code is licensed under the ISC license.
|
|
5
|
-
See the LICENSE file in the root directory of this source tree.
|
|
1
|
+
import{c as V}from"./singletons.hn7zINdM.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.-I7LX7Z3.js";import{d as ie}from"./index.XEtU8W2G.js";const qe=V("goto");/**
|
|
2
|
+
* @license lucide-svelte v0.320.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/const re={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},L=re;function Z(o,e,s){const t=o.slice();return t[10]=e[s][0],t[11]=e[s][1],t}function I(o){let e,s=[o[11]],t={};for(let l=0;l<s.length;l+=1)t=g(t,s[l]);return{c(){e=K(o[10]),this.h()},l(l){e=O(l,o[10],{}),j(e).forEach(_),this.h()},h(){N(e,t)},m(l,n){b(l,e,n)},p(l,n){N(e,t=q(s,[n&32&&l[11]]))},d(l){l&&_(e)}}}function G(o){let e=o[10],s,t=o[10]&&I(o);return{c(){t&&t.c(),s=p()},l(l){t&&t.l(l),s=p()},m(l,n){t&&t.m(l,n),b(l,s,n)},p(l,n){l[10]?e?v(e,l[10])?(t.d(1),t=I(l),e=l[10],t.c(),t.m(s.parentNode,s)):t.p(l,n):(t=I(l),e=l[10],t.c(),t.m(s.parentNode,s)):e&&(t.d(1),t=null,e=l[10])},d(l){l&&_(s),t&&t.d(l)}}}function ce(o){let e,s,t,l,n,r=B(o[5]),c=[];for(let a=0;a<r.length;a+=1)c[a]=G(Z(o,r,a));const f=o[9].default,u=H(f,o,o[8],null);let m=[L,o[6],{width:o[2]},{height:o[2]},{stroke:o[1]},{"stroke-width":t=o[4]?Number(o[3])*24/Number(o[2]):o[3]},{class:l=`lucide-icon lucide lucide-${o[0]} ${o[7].class??""}`}],d={};for(let a=0;a<m.length;a+=1)d=g(d,m[a]);return{c(){e=K("svg");for(let a=0;a<c.length;a+=1)c[a].c();s=p(),u&&u.c(),this.h()},l(a){e=O(a,"svg",{width:!0,height:!0,stroke:!0,"stroke-width":!0,class:!0});var i=j(e);for(let h=0;h<c.length;h+=1)c[h].l(i);s=p(),u&&u.l(i),i.forEach(_),this.h()},h(){N(e,d)},m(a,i){b(a,e,i);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(e,null);X(e,s),u&&u.m(e,null),n=!0},p(a,[i]){if(i&32){r=B(a[5]);let h;for(h=0;h<r.length;h+=1){const C=Z(a,r,h);c[h]?c[h].p(C,i):(c[h]=G(C),c[h].c(),c[h].m(e,s))}for(;h<c.length;h+=1)c[h].d(1);c.length=r.length}u&&u.p&&(!n||i&256)&&P(u,f,a,a[8],n?D(f,a[8],i,null):U(a[8]),null),N(e,d=q(m,[L,i&64&&a[6],(!n||i&4)&&{width:a[2]},(!n||i&4)&&{height:a[2]},(!n||i&2)&&{stroke:a[1]},(!n||i&28&&t!==(t=a[4]?Number(a[3])*24/Number(a[2]):a[3]))&&{"stroke-width":t},(!n||i&129&&l!==(l=`lucide-icon lucide lucide-${a[0]} ${a[7].class??""}`))&&{class:l}]))},i(a){n||(T(u,a),n=!0)},o(a){w(u,a),n=!1},d(a){a&&_(e),Y(c,a),u&&u.d(a)}}}function ue(o,e,s){const t=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let l=E(e,t),{$$slots:n={},$$scope:r}=e,{name:c}=e,{color:f="currentColor"}=e,{size:u=24}=e,{strokeWidth:m=2}=e,{absoluteStrokeWidth:d=!1}=e,{iconNode:a}=e;return o.$$set=i=>{s(7,e=g(g({},e),W(i))),s(6,l=E(e,t)),"name"in i&&s(0,c=i.name),"color"in i&&s(1,f=i.color),"size"in i&&s(2,u=i.size),"strokeWidth"in i&&s(3,m=i.strokeWidth),"absoluteStrokeWidth"in i&&s(4,d=i.absoluteStrokeWidth),"iconNode"in i&&s(5,a=i.iconNode),"$$scope"in i&&s(8,r=i.$$scope)},e=W(e),[c,f,u,m,d,a,l,e,r,n]}class fe extends z{constructor(e){super(),S(this,e,ue,ce,v,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function he(o){let e;const s=o[2].default,t=H(s,o,o[3],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,n){t&&t.m(l,n),e=!0},p(l,n){t&&t.p&&(!e||n&8)&&P(t,s,l,l[3],e?D(s,l[3],n,null):U(l[3]),null)},i(l){e||(T(t,l),e=!0)},o(l){w(t,l),e=!1},d(l){t&&t.d(l)}}}function me(o){let e,s;const t=[{name:"zap"},o[1],{iconNode:o[0]}];let l={$$slots:{default:[he]},$$scope:{ctx:o}};for(let n=0;n<t.length;n+=1)l=g(l,t[n]);return e=new fe({props:l}),{c(){J(e.$$.fragment)},l(n){M(e.$$.fragment,n)},m(n,r){Q(e,n,r),s=!0},p(n,[r]){const c=r&3?q(t,[t[0],r&2&&oe(n[1]),r&1&&{iconNode:n[0]}]):{};r&8&&(c.$$scope={dirty:r,ctx:n}),e.$set(c)},i(n){s||(T(e.$$.fragment,n),s=!0)},o(n){w(e.$$.fragment,n),s=!1},d(n){R(e,n)}}}function _e(o,e,s){let{$$slots:t={},$$scope:l}=e;const n=[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"}]];return o.$$set=r=>{s(1,e=g(g({},e),W(r))),"$$scope"in r&&s(3,l=r.$$scope)},e=W(e),[n,e,t,l]}class de extends z{constructor(e){super(),S(this,e,_e,me,v,{})}}const ge=de;function ve(o){let e,s,t,l,n,r,c;return s=new ge({props:{class:"inline",size:18,color:o[0]==="live"?"white":"black",strokeWidth:1,fill:o[0]==="live"?"white":"black"}}),{c(){e=y("button"),J(s.$$.fragment),this.h()},l(f){e=$(f,"BUTTON",{class:!0,title:!0});var u=j(e);M(s.$$.fragment,u),u.forEach(_),this.h()},h(){k(e,"class",t=`rounded w-6 grid place-items-center ${o[0]==="live"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`),k(e,"title",l=o[0]==="live"?"disable live search":"enable live search")},m(f,u){b(f,e,u),Q(s,e,null),n=!0,r||(c=x(e,"click",o[2]),r=!0)},p(f,[u]){const m={};u&1&&(m.color=f[0]==="live"?"white":"black"),u&1&&(m.fill=f[0]==="live"?"white":"black"),s.$set(m),(!n||u&1&&t!==(t=`rounded w-6 grid place-items-center ${f[0]==="live"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&k(e,"class",t),(!n||u&1&&l!==(l=f[0]==="live"?"disable live search":"enable live search"))&&k(e,"title",l)},i(f){n||(T(s.$$.fragment,f),n=!0)},o(f){w(s.$$.fragment,f),n=!1},d(f){f&&_(e),R(s),r=!1,c()}}}function be(o,e,s){let t;const l=ne();return F(o,l,r=>s(0,t=r)),[t,l,()=>{ee(l,t=t==="live"?"manual":"live",t)}]}class Ce extends z{constructor(e){super(),S(this,e,be,ve,v,{})}}function ke(o){let e=".".repeat(o[0]%4)+"",s;return{c(){s=te(e)},l(t){s=le(t,e)},m(t,l){b(t,s,l)},p(t,[l]){l&1&&e!==(e=".".repeat(t[0]%4)+"")&&se(s,e)},i:A,o:A,d(t){t&&_(s)}}}function pe(o,e,s){let t;const l=ie(ae,(n,r,c)=>{if(n!==null){const f=setInterval(()=>c(u=>u+1),250);return()=>clearInterval(f)}else r(0)},0);return F(o,l,n=>s(0,t=n)),[t,l]}class Ee extends z{constructor(e){super(),S(this,e,pe,ke,v,{})}}export{fe as I,Ee as L,Ce as T,qe as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as u}from"./index.XEtU8W2G.js";const b=globalThis.__sveltekit_csf4vk?.base??"",k=globalThis.__sveltekit_csf4vk?.assets??b,m="1712789229719",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(v){switch(v){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,b 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.hn7zINdM.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
|
|
@@ -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.ySqcwo9v.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>u(()=>import("../nodes/1.F9pbmFz4.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.r9Cf-icQ.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.px23MMV-.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.ySqcwo9v.js","../chunks/scheduler.T8nCnPq2.js","../chunks/index.CP0w37D5.js","../chunks/each.oUkpMz5d.js","../chunks/stores.-I7LX7Z3.js","../chunks/singletons.hn7zINdM.js","../chunks/index.XEtU8W2G.js","../chunks/preferences.WetYOKHg.js","../assets/0.o0zCXDLg.css","../nodes/1.F9pbmFz4.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.r9Cf-icQ.js","../chunks/loading-ellipsis.mvuswosg.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.px23MMV-.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.hn7zINdM.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.-I7LX7Z3.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.-I7LX7Z3.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as bl}from"../chunks/index.XEtU8W2G.js";import{p as il,n as ul}from"../chunks/stores.852AJkoy.js";import{g as yl,I as fl,L as kl,T as xl}from"../chunks/loading-ellipsis.F0PJp930.js";import{a7 as Ks,n as we,H as en,a5 as Tn,k as cl,u as hl,r as ml,v as pl,e as p,c as g,a as y,d as m,f as _,i as R,q as Xt,j as Xe,a6 as wl,w as un,l as v,t as j,o as b,b as U,p as D,g as o,y as Js,a8 as Cl,z as ys,s as ee,A as El,a9 as Ll,h as fn,G as Me,K as ws,N as ql,J as An,m as Sl}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ce,i as Ee,c as S,a as N,m as P,t as x,b as w,d as I,f as ks,g as Dt,e as Bt}from"../chunks/index.CP0w37D5.js";import{c as gl,d as Nl,b as Pl}from"../chunks/preferences.WetYOKHg.js";import{I as xs,c as Ws}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 Z}from"../chunks/example-query.6BQBimAu.js";import{e as Ye,u as Il,o as Al}from"../chunks/each.oUkpMz5d.js";import{_ as Tl}from"../chunks/5.MErjPYv9.js";const Yt=Object.freeze({contextLines:1,files:20,matches:500}),Cs=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,f=t>=0?t:Yt.matches;return{query:s,contextLines:l,files:a,matches:f}},Mn=bl(il,r=>Cs(r.url.searchParams));let Zs=0;const an=({query:r,contextLines:e,files:n,matches:t,searchType:s})=>{const l=Ks(ul)?.to?.url??Ks(il).url,a=Cs(l.searchParams),f=r!==void 0&&(r||void 0)!==a.query,i=e!==void 0&&e>=0&&e!==a.contextLines,u=n!==void 0&&n>=0&&n!==a.files,c=t!==void 0&&t>=0&&t!==a.matches;if(f||i||u||c){const $=Date.now(),h=new URL(l);f&&r?h.searchParams.set("q",r):f&&h.searchParams.delete("q"),i&&e===Yt.contextLines?h.searchParams.delete("contextLines"):i&&h.searchParams.set("contextLines",e.toString()),u&&n===Yt.files?h.searchParams.delete("files"):u&&h.searchParams.set("files",n.toString()),c&&t===Yt.matches?h.searchParams.delete("matches"):c&&h.searchParams.set("matches",t.toString()),yl(h,{replaceState:s==="live"&&$-Zs<2e3,keepFocus:!0,noScroll:!0}),Zs=$}},Ml=async({url:r,fetch:e})=>({searchOutcome:await Ol(r,e)}),Ol=async(r,e)=>{const{query:n,...t}=Cs(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)}}},Gr=Object.freeze(Object.defineProperty({__proto__:null,load:Ml},Symbol.toStringTag,{value:"Module"}));function Hl(r){let e;const n=r[2].default,t=cl(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)&&hl(t,n,s,s[3],e?pl(n,s[3],l,null):ml(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 jl(r){let e,n;const t=[{name:"list-ordered"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Hl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new fl({props:s}),{c(){S(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,a){P(e,l,a),n=!0},p(l,[a]){const f=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){I(e,l)}}}function Ul(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),Tn(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=Tn(e),[l,e,t,s]}class Rl extends Ce{constructor(e){super(),Ee(this,e,Ul,jl,we,{})}}const zl=Rl;function Dl(r){let e,n,t,s,l,a,f;return n=new zl({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"),S(n.$$.fragment),this.h()},l(i){e=g(i,"BUTTON",{class:!0,title:!0});var u=y(e);N(n.$$.fragment,u),u.forEach(m),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(i,u){R(i,e,u),P(n,e,null),l=!0,a||(f=Xt(e,"click",r[2]),a=!0)},p(i,[u]){const c={};u&1&&(c.color=i[0]==="line-number"?"white":"black"),u&1&&(c.fill=i[0]==="line-number"?"white":"black"),n.$set(c),(!l||u&1&&t!==(t=`rounded w-6 grid place-items-center ${i[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&_(e,"class",t),(!l||u&1&&s!==(s=i[0]==="line-number"?"sort matches by score":"sort matches by line number"))&&_(e,"title",s)},i(i){l||(x(n.$$.fragment,i),l=!0)},o(i){w(n.$$.fragment,i),l=!1},d(i){i&&m(e),I(n),a=!1,f()}}}function Bl(r,e,n){let t;const s=gl();return Xe(r,s,a=>n(0,t=a)),[t,s,()=>{wl(s,t=t==="line-number"?"score":"line-number",t)}]}class Vl extends Ce{constructor(e){super(),Ee(this,e,Bl,Dl,we,{})}}function Ql(r){let e,n,t,s,l,a,f,i,u,c,$,h,d,E,q,A,F,C,O,V="context",J,K,te,ae,ne,X,ye="files",re,M,ce,de,Y,se,he="matches",Q,ue,W,B,le,ke=(r[0]??"")+"",T,L,z,fe;i=new kl({}),d=new xl({}),q=new Vl({});function Le(H){r[18](H)}let me={id:"context",pending:r[8]};r[2]!==void 0&&(me.value=r[2]),K=new xs({props:me}),un.push(()=>ks(K,"value",Le)),K.$on("change",r[19]);function et(H){r[20](H)}let qe={id:"files",kind:"positive",pending:r[7]};r[3]!==void 0&&(qe.value=r[3]),M=new xs({props:qe}),un.push(()=>ks(M,"value",et)),M.$on("change",r[21]);function Oe(H){r[22](H)}let Se={id:"matches",kind:"positive",pending:r[6]};return r[4]!==void 0&&(Se.value=r[4]),ue=new xs({props:Se}),un.push(()=>ks(ue,"value",Oe)),ue.$on("change",r[23]),{c(){e=p("form"),n=p("input"),t=v(),s=p("div"),l=p("label"),a=p("span"),f=j("query"),S(i.$$.fragment),u=v(),c=p("span"),$=p("input"),h=v(),S(d.$$.fragment),E=v(),S(q.$$.fragment),F=v(),C=p("label"),O=p("span"),O.textContent=V,J=v(),S(K.$$.fragment),ae=v(),ne=p("label"),X=p("span"),X.textContent=ye,re=v(),S(M.$$.fragment),de=v(),Y=p("label"),se=p("span"),se.textContent=he,Q=v(),S(ue.$$.fragment),B=v(),le=p("div"),T=j(ke),this.h()},l(H){e=g(H,"FORM",{});var G=y(e);n=g(G,"INPUT",{type:!0,class:!0}),t=b(G),s=g(G,"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);f=U(ge,"query"),N(i.$$.fragment,ge),ge.forEach(m),u=b($e),c=g($e,"SPAN",{class:!0});var _e=y(c);$=g(_e,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),h=b(_e),N(d.$$.fragment,_e),E=b(_e),N(q.$$.fragment,_e),_e.forEach(m),$e.forEach(m),F=b(pe),C=g(pe,"LABEL",{for:!0,class:!0});var Ue=y(C);O=g(Ue,"SPAN",{class:!0,"data-svelte-h":!0}),D(O)!=="svelte-1nbzu36"&&(O.textContent=V),J=b(Ue),N(K.$$.fragment,Ue),Ue.forEach(m),ae=b(pe),ne=g(pe,"LABEL",{for:!0,class:!0});var ve=y(ne);X=g(ve,"SPAN",{class:!0,"data-svelte-h":!0}),D(X)!=="svelte-1pt1x6a"&&(X.textContent=ye),re=b(ve),N(M.$$.fragment,ve),ve.forEach(m),de=b(pe),Y=g(pe,"LABEL",{for:!0,class:!0});var tt=y(Y);se=g(tt,"SPAN",{class:!0,"data-svelte-h":!0}),D(se)!=="svelte-1hdyrgs"&&(se.textContent=he),Q=b(tt),N(ue.$$.fragment,tt),tt.forEach(m),pe.forEach(m),B=b(G),le=g(G,"DIV",{class:!0});var Vt=y(le);T=U(Vt,ke),Vt.forEach(m),G.forEach(m),this.h()},h(){_(n,"type","submit"),_(n,"class","hidden"),_(a,"class","text-xs px-1 text-gray-500"),_($,"id","query"),_($,"type","search"),$.autofocus=!0,_($,"spellcheck",!1),_($,"autocorrect","off"),_($,"autocapitalize","off"),_($,"autocomplete","off"),_($,"class","font-mono focus:outline-none flex-auto appearance-none"),_(c,"class",A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:r[0]!==null,pending:r[9]})}`),_(l,"for","query"),_(l,"class","flex-auto flex flex-col space-y-0.5"),_(O,"class","text-xs px-1 text-gray-500"),_(C,"for","context"),_(C,"class","flex flex-col space-y-0.5"),_(X,"class","text-xs px-1 text-gray-500"),_(ne,"for","files"),_(ne,"class","flex flex-col space-y-0.5"),_(se,"class","text-xs px-1 text-gray-500"),_(Y,"for","matches"),_(Y,"class","flex flex-col space-y-0.5"),_(s,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),_(le,"class","text-xs text-red-500")},m(H,G){R(H,e,G),o(e,n),o(e,t),o(e,s),o(s,l),o(l,a),o(a,f),P(i,a,null),o(l,u),o(l,c),o(c,$),Js($,r[1]),o(c,h),P(d,c,null),o(c,E),P(q,c,null),o(s,F),o(s,C),o(C,O),o(C,J),P(K,C,null),o(s,ae),o(s,ne),o(ne,X),o(ne,re),P(M,ne,null),o(s,de),o(s,Y),o(Y,se),o(Y,Q),P(ue,Y,null),o(e,B),o(e,le),o(le,T),L=!0,$.focus(),z||(fe=[Xt($,"input",r[16]),Xt($,"input",r[17]),Xt(e,"submit",Cl(r[24]))],z=!0)},p(H,[G]){G&2&&$.value!==H[1]&&Js($,H[1]),(!L||G&513&&A!==(A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:H[0]!==null,pending:H[9]})}`))&&_(c,"class",A);const pe={};G&256&&(pe.pending=H[8]),!te&&G&4&&(te=!0,pe.value=H[2],ys(()=>te=!1)),K.$set(pe);const $e={};G&128&&($e.pending=H[7]),!ce&&G&8&&(ce=!0,$e.value=H[3],ys(()=>ce=!1)),M.$set($e);const ge={};G&64&&(ge.pending=H[6]),!W&&G&16&&(W=!0,ge.value=H[4],ys(()=>W=!1)),ue.$set(ge),(!L||G&1)&&ke!==(ke=(H[0]??"")+"")&&ee(T,ke)},i(H){L||(x(i.$$.fragment,H),x(d.$$.fragment,H),x(q.$$.fragment,H),x(K.$$.fragment,H),x(M.$$.fragment,H),x(ue.$$.fragment,H),L=!0)},o(H){w(i.$$.fragment,H),w(d.$$.fragment,H),w(q.$$.fragment,H),w(K.$$.fragment,H),w(M.$$.fragment,H),w(ue.$$.fragment,H),L=!1},d(H){H&&m(e),I(i),I(d),I(q),I(K),I(M),I(ue),z=!1,El(fe)}}}function Fl(r,e,n){let t,s,l,a,f,i,u;Xe(r,Mn,M=>n(14,f=M)),Xe(r,ul,M=>n(15,i=M));let{queryError:c=null}=e;const $=Nl();Xe(r,$,M=>n(5,u=M));let h,d,E,q;const A=Mn.subscribe(M=>{i?.type!=="goto"&&n(1,{query:h,contextLines:d,files:E,matches:q}=M,h,n(2,d),n(3,E),n(4,q))});Ll(A);const F=()=>u==="live"&&(!h||h.length>=3),C=()=>{an({query:h,contextLines:d,files:E,matches:q,searchType:u})};let O;function V(){h=this.value,n(1,h)}const J=()=>{F()&&an({query:h,searchType:u})};function K(M){d=M,n(2,d)}const te=M=>{F()&&an({contextLines:M.detail,searchType:u})};function ae(M){E=M,n(3,E)}const ne=M=>{F()&&an({files:M.detail,searchType:u})};function X(M){q=M,n(4,q)}const ye=M=>{F()&&an({matches:M.detail,searchType:u})},re=()=>{C()};return r.$$set=M=>{"queryError"in M&&n(0,c=M.queryError)},r.$$.update=()=>{r.$$.dirty&8224&&(u==="live"&&O==="manual"&&C(),n(13,O=u)),r.$$.dirty&49154&&n(9,t=i===null&&(f.query??"")!==(h??"")),r.$$.dirty&49156&&n(8,s=i===null&&f.contextLines!==d),r.$$.dirty&49160&&n(7,l=i===null&&f.files!==E),r.$$.dirty&49168&&n(6,a=i===null&&f.matches!==q)},[c,h,d,E,q,u,a,l,s,t,$,F,C,O,f,i,V,J,K,te,ae,ne,X,ye,re]}class Gl extends Ce{constructor(e){super(),Ee(this,e,Fl,Ql,we,{queryError:0})}}function Kl(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}),D(e)!=="svelte-2dyn7y"&&(e.textContent=n),this.h()},h(){_(e,"class","text-xs")},m(t,s){R(t,e,s)},p:fn,d(t){t&&m(e)}}}function Jl(r){let e;return{c(){e=j("universal-ctags")},l(n){e=U(n,"universal-ctags")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Wl(r){let e;return{c(){e=j("expression")},l(n){e=U(n,"expression")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Zl(r){let e;return{c(){e=j("read the manual")},l(n){e=U(n,"read the manual")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Xl(r){let e,n="ɴᴇᴏɢʀᴏᴋ",t,s,l,a,f="query examples",i,u,c,$,h,d,E="Every query is regex",q,A,F,C,O,V,J="dot is a wildcard",K,te,ae,ne,X,ye="escaped dot is a dot",re,M,ce,de,Y,se,he,Q,ue="multiline search!",W,B,le,ke="Filter results by...",T,L,z,fe,Le,me,et="(or <code>f:</code>)",qe,Oe,Se,H,G,pe="(or <code>r:</code>)",$e,ge,_e,Ue,ve,tt="(or <code>b:</code>)",Vt,tn,nt,On,Re,st,Ls="Exclude certain kinds of repositories",Hn,Ne,lt,rt,jn,at,qs="(or <code>yes</code>)",Un,ot,it,Rn,ut,Ss="(or <code>yes</code>)",zn,ft,ct,Dn,ht,Ns="(or <code>yes</code>)",Bn,Pe,mt,Ps="Search for symbol definitions",Vn,ze,Qn,De,Fn,Gn,Be,nn,pt,Kn,sn,gt,Jn,Ie,_t,Is="Automatic case sensitivity",Wn,dt,As=`If a query is all-lowercase, it is case insensitive by default;
|
|
1
|
+
import{d as bl}from"../chunks/index.XEtU8W2G.js";import{p as il,n as ul}from"../chunks/stores.-I7LX7Z3.js";import{g as yl,I as fl,L as kl,T as xl}from"../chunks/loading-ellipsis.mvuswosg.js";import{a7 as Ks,n as we,H as en,a5 as Tn,k as cl,u as hl,r as ml,v as pl,e as p,c as g,a as y,d as m,f as _,i as R,q as Xt,j as Xe,a6 as wl,w as un,l as v,t as j,o as b,b as U,p as D,g as o,y as Js,a8 as Cl,z as ys,s as ee,A as El,a9 as Ll,h as fn,G as Me,K as ws,N as ql,J as An,m as Sl}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ce,i as Ee,c as S,a as N,m as P,t as x,b as w,d as I,f as ks,g as Dt,e as Bt}from"../chunks/index.CP0w37D5.js";import{c as gl,d as Nl,b as Pl}from"../chunks/preferences.WetYOKHg.js";import{I as xs,c as Ws}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 Z}from"../chunks/example-query.6BQBimAu.js";import{e as Ye,u as Il,o as Al}from"../chunks/each.oUkpMz5d.js";import{_ as Tl}from"../chunks/5.MErjPYv9.js";const Yt=Object.freeze({contextLines:1,files:20,matches:500}),Cs=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,f=t>=0?t:Yt.matches;return{query:s,contextLines:l,files:a,matches:f}},Mn=bl(il,r=>Cs(r.url.searchParams));let Zs=0;const an=({query:r,contextLines:e,files:n,matches:t,searchType:s})=>{const l=Ks(ul)?.to?.url??Ks(il).url,a=Cs(l.searchParams),f=r!==void 0&&(r||void 0)!==a.query,i=e!==void 0&&e>=0&&e!==a.contextLines,u=n!==void 0&&n>=0&&n!==a.files,c=t!==void 0&&t>=0&&t!==a.matches;if(f||i||u||c){const $=Date.now(),h=new URL(l);f&&r?h.searchParams.set("q",r):f&&h.searchParams.delete("q"),i&&e===Yt.contextLines?h.searchParams.delete("contextLines"):i&&h.searchParams.set("contextLines",e.toString()),u&&n===Yt.files?h.searchParams.delete("files"):u&&h.searchParams.set("files",n.toString()),c&&t===Yt.matches?h.searchParams.delete("matches"):c&&h.searchParams.set("matches",t.toString()),yl(h,{replaceState:s==="live"&&$-Zs<2e3,keepFocus:!0,noScroll:!0}),Zs=$}},Ml=async({url:r,fetch:e})=>({searchOutcome:await Ol(r,e)}),Ol=async(r,e)=>{const{query:n,...t}=Cs(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)}}},Gr=Object.freeze(Object.defineProperty({__proto__:null,load:Ml},Symbol.toStringTag,{value:"Module"}));function Hl(r){let e;const n=r[2].default,t=cl(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)&&hl(t,n,s,s[3],e?pl(n,s[3],l,null):ml(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 jl(r){let e,n;const t=[{name:"list-ordered"},r[1],{iconNode:r[0]}];let s={$$slots:{default:[Hl]},$$scope:{ctx:r}};for(let l=0;l<t.length;l+=1)s=en(s,t[l]);return e=new fl({props:s}),{c(){S(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,a){P(e,l,a),n=!0},p(l,[a]){const f=a&3?_l(t,[t[0],a&2&&dl(l[1]),a&1&&{iconNode:l[0]}]):{};a&8&&(f.$$scope={dirty:a,ctx:l}),e.$set(f)},i(l){n||(x(e.$$.fragment,l),n=!0)},o(l){w(e.$$.fragment,l),n=!1},d(l){I(e,l)}}}function Ul(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),Tn(a))),"$$scope"in a&&n(3,s=a.$$scope)},e=Tn(e),[l,e,t,s]}class Rl extends Ce{constructor(e){super(),Ee(this,e,Ul,jl,we,{})}}const zl=Rl;function Dl(r){let e,n,t,s,l,a,f;return n=new zl({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"),S(n.$$.fragment),this.h()},l(i){e=g(i,"BUTTON",{class:!0,title:!0});var u=y(e);N(n.$$.fragment,u),u.forEach(m),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(i,u){R(i,e,u),P(n,e,null),l=!0,a||(f=Xt(e,"click",r[2]),a=!0)},p(i,[u]){const c={};u&1&&(c.color=i[0]==="line-number"?"white":"black"),u&1&&(c.fill=i[0]==="line-number"?"white":"black"),n.$set(c),(!l||u&1&&t!==(t=`rounded w-6 grid place-items-center ${i[0]==="line-number"?"bg-sky-500 hover:bg-slate-500":"hover:bg-slate-300"}`))&&_(e,"class",t),(!l||u&1&&s!==(s=i[0]==="line-number"?"sort matches by score":"sort matches by line number"))&&_(e,"title",s)},i(i){l||(x(n.$$.fragment,i),l=!0)},o(i){w(n.$$.fragment,i),l=!1},d(i){i&&m(e),I(n),a=!1,f()}}}function Bl(r,e,n){let t;const s=gl();return Xe(r,s,a=>n(0,t=a)),[t,s,()=>{wl(s,t=t==="line-number"?"score":"line-number",t)}]}class Vl extends Ce{constructor(e){super(),Ee(this,e,Bl,Dl,we,{})}}function Ql(r){let e,n,t,s,l,a,f,i,u,c,$,h,d,E,q,A,F,C,O,V="context",J,K,te,ae,ne,X,ye="files",re,M,ce,de,Y,se,he="matches",Q,ue,W,B,le,ke=(r[0]??"")+"",T,L,z,fe;i=new kl({}),d=new xl({}),q=new Vl({});function Le(H){r[18](H)}let me={id:"context",pending:r[8]};r[2]!==void 0&&(me.value=r[2]),K=new xs({props:me}),un.push(()=>ks(K,"value",Le)),K.$on("change",r[19]);function et(H){r[20](H)}let qe={id:"files",kind:"positive",pending:r[7]};r[3]!==void 0&&(qe.value=r[3]),M=new xs({props:qe}),un.push(()=>ks(M,"value",et)),M.$on("change",r[21]);function Oe(H){r[22](H)}let Se={id:"matches",kind:"positive",pending:r[6]};return r[4]!==void 0&&(Se.value=r[4]),ue=new xs({props:Se}),un.push(()=>ks(ue,"value",Oe)),ue.$on("change",r[23]),{c(){e=p("form"),n=p("input"),t=v(),s=p("div"),l=p("label"),a=p("span"),f=j("query"),S(i.$$.fragment),u=v(),c=p("span"),$=p("input"),h=v(),S(d.$$.fragment),E=v(),S(q.$$.fragment),F=v(),C=p("label"),O=p("span"),O.textContent=V,J=v(),S(K.$$.fragment),ae=v(),ne=p("label"),X=p("span"),X.textContent=ye,re=v(),S(M.$$.fragment),de=v(),Y=p("label"),se=p("span"),se.textContent=he,Q=v(),S(ue.$$.fragment),B=v(),le=p("div"),T=j(ke),this.h()},l(H){e=g(H,"FORM",{});var G=y(e);n=g(G,"INPUT",{type:!0,class:!0}),t=b(G),s=g(G,"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);f=U(ge,"query"),N(i.$$.fragment,ge),ge.forEach(m),u=b($e),c=g($e,"SPAN",{class:!0});var _e=y(c);$=g(_e,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),h=b(_e),N(d.$$.fragment,_e),E=b(_e),N(q.$$.fragment,_e),_e.forEach(m),$e.forEach(m),F=b(pe),C=g(pe,"LABEL",{for:!0,class:!0});var Ue=y(C);O=g(Ue,"SPAN",{class:!0,"data-svelte-h":!0}),D(O)!=="svelte-1nbzu36"&&(O.textContent=V),J=b(Ue),N(K.$$.fragment,Ue),Ue.forEach(m),ae=b(pe),ne=g(pe,"LABEL",{for:!0,class:!0});var ve=y(ne);X=g(ve,"SPAN",{class:!0,"data-svelte-h":!0}),D(X)!=="svelte-1pt1x6a"&&(X.textContent=ye),re=b(ve),N(M.$$.fragment,ve),ve.forEach(m),de=b(pe),Y=g(pe,"LABEL",{for:!0,class:!0});var tt=y(Y);se=g(tt,"SPAN",{class:!0,"data-svelte-h":!0}),D(se)!=="svelte-1hdyrgs"&&(se.textContent=he),Q=b(tt),N(ue.$$.fragment,tt),tt.forEach(m),pe.forEach(m),B=b(G),le=g(G,"DIV",{class:!0});var Vt=y(le);T=U(Vt,ke),Vt.forEach(m),G.forEach(m),this.h()},h(){_(n,"type","submit"),_(n,"class","hidden"),_(a,"class","text-xs px-1 text-gray-500"),_($,"id","query"),_($,"type","search"),$.autofocus=!0,_($,"spellcheck",!1),_($,"autocorrect","off"),_($,"autocapitalize","off"),_($,"autocomplete","off"),_($,"class","font-mono focus:outline-none flex-auto appearance-none"),_(c,"class",A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:r[0]!==null,pending:r[9]})}`),_(l,"for","query"),_(l,"class","flex-auto flex flex-col space-y-0.5"),_(O,"class","text-xs px-1 text-gray-500"),_(C,"for","context"),_(C,"class","flex flex-col space-y-0.5"),_(X,"class","text-xs px-1 text-gray-500"),_(ne,"for","files"),_(ne,"class","flex flex-col space-y-0.5"),_(se,"class","text-xs px-1 text-gray-500"),_(Y,"for","matches"),_(Y,"class","flex flex-col space-y-0.5"),_(s,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),_(le,"class","text-xs text-red-500")},m(H,G){R(H,e,G),o(e,n),o(e,t),o(e,s),o(s,l),o(l,a),o(a,f),P(i,a,null),o(l,u),o(l,c),o(c,$),Js($,r[1]),o(c,h),P(d,c,null),o(c,E),P(q,c,null),o(s,F),o(s,C),o(C,O),o(C,J),P(K,C,null),o(s,ae),o(s,ne),o(ne,X),o(ne,re),P(M,ne,null),o(s,de),o(s,Y),o(Y,se),o(Y,Q),P(ue,Y,null),o(e,B),o(e,le),o(le,T),L=!0,$.focus(),z||(fe=[Xt($,"input",r[16]),Xt($,"input",r[17]),Xt(e,"submit",Cl(r[24]))],z=!0)},p(H,[G]){G&2&&$.value!==H[1]&&Js($,H[1]),(!L||G&513&&A!==(A=`flex flex-auto p-1 border shadow-sm space-x-1 ${Ws({error:H[0]!==null,pending:H[9]})}`))&&_(c,"class",A);const pe={};G&256&&(pe.pending=H[8]),!te&&G&4&&(te=!0,pe.value=H[2],ys(()=>te=!1)),K.$set(pe);const $e={};G&128&&($e.pending=H[7]),!ce&&G&8&&(ce=!0,$e.value=H[3],ys(()=>ce=!1)),M.$set($e);const ge={};G&64&&(ge.pending=H[6]),!W&&G&16&&(W=!0,ge.value=H[4],ys(()=>W=!1)),ue.$set(ge),(!L||G&1)&&ke!==(ke=(H[0]??"")+"")&&ee(T,ke)},i(H){L||(x(i.$$.fragment,H),x(d.$$.fragment,H),x(q.$$.fragment,H),x(K.$$.fragment,H),x(M.$$.fragment,H),x(ue.$$.fragment,H),L=!0)},o(H){w(i.$$.fragment,H),w(d.$$.fragment,H),w(q.$$.fragment,H),w(K.$$.fragment,H),w(M.$$.fragment,H),w(ue.$$.fragment,H),L=!1},d(H){H&&m(e),I(i),I(d),I(q),I(K),I(M),I(ue),z=!1,El(fe)}}}function Fl(r,e,n){let t,s,l,a,f,i,u;Xe(r,Mn,M=>n(14,f=M)),Xe(r,ul,M=>n(15,i=M));let{queryError:c=null}=e;const $=Nl();Xe(r,$,M=>n(5,u=M));let h,d,E,q;const A=Mn.subscribe(M=>{i?.type!=="goto"&&n(1,{query:h,contextLines:d,files:E,matches:q}=M,h,n(2,d),n(3,E),n(4,q))});Ll(A);const F=()=>u==="live"&&(!h||h.length>=3),C=()=>{an({query:h,contextLines:d,files:E,matches:q,searchType:u})};let O;function V(){h=this.value,n(1,h)}const J=()=>{F()&&an({query:h,searchType:u})};function K(M){d=M,n(2,d)}const te=M=>{F()&&an({contextLines:M.detail,searchType:u})};function ae(M){E=M,n(3,E)}const ne=M=>{F()&&an({files:M.detail,searchType:u})};function X(M){q=M,n(4,q)}const ye=M=>{F()&&an({matches:M.detail,searchType:u})},re=()=>{C()};return r.$$set=M=>{"queryError"in M&&n(0,c=M.queryError)},r.$$.update=()=>{r.$$.dirty&8224&&(u==="live"&&O==="manual"&&C(),n(13,O=u)),r.$$.dirty&49154&&n(9,t=i===null&&(f.query??"")!==(h??"")),r.$$.dirty&49156&&n(8,s=i===null&&f.contextLines!==d),r.$$.dirty&49160&&n(7,l=i===null&&f.files!==E),r.$$.dirty&49168&&n(6,a=i===null&&f.matches!==q)},[c,h,d,E,q,u,a,l,s,t,$,F,C,O,f,i,V,J,K,te,ae,ne,X,ye,re]}class Gl extends Ce{constructor(e){super(),Ee(this,e,Fl,Ql,we,{queryError:0})}}function Kl(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}),D(e)!=="svelte-2dyn7y"&&(e.textContent=n),this.h()},h(){_(e,"class","text-xs")},m(t,s){R(t,e,s)},p:fn,d(t){t&&m(e)}}}function Jl(r){let e;return{c(){e=j("universal-ctags")},l(n){e=U(n,"universal-ctags")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Wl(r){let e;return{c(){e=j("expression")},l(n){e=U(n,"expression")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Zl(r){let e;return{c(){e=j("read the manual")},l(n){e=U(n,"read the manual")},m(n,t){R(n,e,t)},d(n){n&&m(e)}}}function Xl(r){let e,n="ɴᴇᴏɢʀᴏᴋ",t,s,l,a,f="query examples",i,u,c,$,h,d,E="Every query is regex",q,A,F,C,O,V,J="dot is a wildcard",K,te,ae,ne,X,ye="escaped dot is a dot",re,M,ce,de,Y,se,he,Q,ue="multiline search!",W,B,le,ke="Filter results by...",T,L,z,fe,Le,me,et="(or <code>f:</code>)",qe,Oe,Se,H,G,pe="(or <code>r:</code>)",$e,ge,_e,Ue,ve,tt="(or <code>b:</code>)",Vt,tn,nt,On,Re,st,Ls="Exclude certain kinds of repositories",Hn,Ne,lt,rt,jn,at,qs="(or <code>yes</code>)",Un,ot,it,Rn,ut,Ss="(or <code>yes</code>)",zn,ft,ct,Dn,ht,Ns="(or <code>yes</code>)",Bn,Pe,mt,Ps="Search for symbol definitions",Vn,ze,Qn,De,Fn,Gn,Be,nn,pt,Kn,sn,gt,Jn,Ie,_t,Is="Automatic case sensitivity",Wn,dt,As=`If a query is all-lowercase, it is case insensitive by default;
|
|
2
2
|
otherwise it is case-sensitive by default. Change that with
|
|
3
3
|
<code>case:</code>.`,Zn,Ve,He,$t,Xn,vt,Ts="vs",Yn,bt,es,je,yt,ts,kt,Ms="vs",ns,xt,ss,Ae,wt,Os="Use double quotes for queries with spaces",ls,Qe,rs,Fe,as,os,Ge,ln,Ct,is,rn,Et,us,Te,Lt,Hs="Logically compose expressions",fs,Ke,cs,Je,hs,ms,be,qt,St,ps,Nt,js="negate with a leading dash",gs,Pt,It,_s,At,Us="expressions are implicitly 'and'ed…",ds,Tt,Mt,$s,Ot,Rs="…but explicitly 'or'ed",vs,Ht,jt,bs,Ut,zs="group expressions with parentheses",cn;return u=new on({props:{to:"/syntax",$$slots:{default:[Kl]},$$scope:{ctx:r}}}),C=new Z({props:{query:".printf"}}),ae=new Z({props:{query:"\\.printf"}}),ce=new Z({props:{query:"whom?"}}),se=new Z({props:{query:"OR[[:space:]]IMPLIED"}}),fe=new Z({props:{query:"file:README test"}}),Se=new Z({props:{query:"repo:linux test"}}),_e=new Z({props:{query:"branch:pages test"}}),nt=new Z({props:{query:"lang:java test"}}),rt=new Z({props:{query:"fork:no test"}}),it=new Z({props:{query:"public:no test"}}),ct=new Z({props:{query:"archived:no test"}}),De=new on({props:{to:"https://ctags.io",$$slots:{default:[Jl]},$$scope:{ctx:r}}}),pt=new Z({props:{query:"sym:main"}}),gt=new Z({props:{query:"sym:Test[A-Z]"}}),$t=new Z({props:{query:"readme"}}),bt=new Z({props:{query:"readme case:yes"}}),yt=new Z({props:{query:"README"}}),xt=new Z({props:{query:"README case:no"}}),Fe=new on({props:{to:"/syntax#expressions",$$slots:{default:[Wl]},$$scope:{ctx:r}}}),Ct=new Z({props:{query:'"run the test"'}}),Et=new Z({props:{query:'"goto considered harmful"'}}),Je=new on({props:{to:"/syntax#boolean-logic",$$slots:{default:[Zl]},$$scope:{ctx:r}}}),St=new Z({props:{query:"this -without_this"}}),It=new Z({props:{query:"all of these"}}),Mt=new Z({props:{query:"any or of or these"}}),jt=new Z({props:{query:"(all of these) (any or of or these)"}}),{c(){e=p("h1"),e.textContent=n,t=v(),s=p("div"),l=p("span"),a=p("h2"),a.textContent=f,i=v(),S(u.$$.fragment),c=v(),$=p("ul"),h=p("li"),d=p("h3"),d.textContent=E,q=v(),A=p("ul"),F=p("li"),S(C.$$.fragment),O=v(),V=p("span"),V.textContent=J,K=v(),te=p("li"),S(ae.$$.fragment),ne=v(),X=p("span"),X.textContent=ye,re=v(),M=p("li"),S(ce.$$.fragment),de=v(),Y=p("li"),S(se.$$.fragment),he=v(),Q=p("span"),Q.textContent=ue,W=v(),B=p("li"),le=p("h3"),le.textContent=ke,T=v(),L=p("ul"),z=p("li"),S(fe.$$.fragment),Le=v(),me=p("span"),me.innerHTML=et,qe=v(),Oe=p("li"),S(Se.$$.fragment),H=v(),G=p("span"),G.innerHTML=pe,$e=v(),ge=p("li"),S(_e.$$.fragment),Ue=v(),ve=p("span"),ve.innerHTML=tt,Vt=v(),tn=p("li"),S(nt.$$.fragment),On=v(),Re=p("li"),st=p("h3"),st.textContent=Ls,Hn=v(),Ne=p("ul"),lt=p("li"),S(rt.$$.fragment),jn=v(),at=p("span"),at.innerHTML=qs,Un=v(),ot=p("li"),S(it.$$.fragment),Rn=v(),ut=p("span"),ut.innerHTML=Ss,zn=v(),ft=p("li"),S(ct.$$.fragment),Dn=v(),ht=p("span"),ht.innerHTML=Ns,Bn=v(),Pe=p("li"),mt=p("h3"),mt.textContent=Ps,Vn=v(),ze=p("p"),Qn=j("As identified by "),S(De.$$.fragment),Fn=j("."),Gn=v(),Be=p("ul"),nn=p("li"),S(pt.$$.fragment),Kn=v(),sn=p("li"),S(gt.$$.fragment),Jn=v(),Ie=p("li"),_t=p("h3"),_t.textContent=Is,Wn=v(),dt=p("p"),dt.innerHTML=As,Zn=v(),Ve=p("ul"),He=p("li"),S($t.$$.fragment),Xn=v(),vt=p("span"),vt.textContent=Ts,Yn=v(),S(bt.$$.fragment),es=v(),je=p("li"),S(yt.$$.fragment),ts=v(),kt=p("span"),kt.textContent=Ms,ns=v(),S(xt.$$.fragment),ss=v(),Ae=p("li"),wt=p("h3"),wt.textContent=Os,ls=v(),Qe=p("p"),rs=j(`Otherwise each word is parsed as a separate
|
|
4
4
|
`),S(Fe.$$.fragment),as=j("."),os=v(),Ge=p("ul"),ln=p("li"),S(Ct.$$.fragment),is=v(),rn=p("li"),S(Et.$$.fragment),us=v(),Te=p("li"),Lt=p("h3"),Lt.textContent=Hs,fs=v(),Ke=p("span"),cs=j("Seriously, "),S(Je.$$.fragment),hs=j(` for this
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ms,L as Rs,T as Us,I as Bs}from"../chunks/loading-ellipsis.F0PJp930.js";import{p as ks,n as Ts}from"../chunks/stores.852AJkoy.js";import{d as Hs}from"../chunks/index.XEtU8W2G.js";import{a7 as cs,n as qe,w as Se,e as g,l as w,t as y,c as $,a as k,o as S,b as v,d as c,p as Ft,f as m,i as H,g as a,y as _s,q as pt,a8 as zs,z as Ie,s as U,A as js,j as rt,a9 as Fs,h as je,G as ps,K as Cs,H as xe,a5 as ht,k as Vt,u as Qt,r as Yt,v as Gt,J as hs,m as Vs}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ae,i as Le,f as Ne,c as V,a as Q,m as Y,t as N,b as P,d as G,g as nt,e as lt}from"../chunks/index.CP0w37D5.js";import{d as Qs}from"../chunks/preferences.WetYOKHg.js";import{I as Ys,c as ds}from"../chunks/integer-input.fvZuttUG.js";import{e as dt}from"../chunks/each.oUkpMz5d.js";import{L as Zt}from"../chunks/link.czJPdQv3.js";import{g as Es,a as ws}from"../chunks/spread.rEx3vLA9.js";const Ss=Object.freeze({repos:100}),Jt=r=>{const e=Number.parseInt(r.get("repos")??"",10),t=r.get("q")||void 0,s=e>=0?e:Ss.repos;return{query:t,repos:s}},mt=Hs(ks,r=>Jt(r.url.searchParams));let ms=0;const jt=({query:r,repos:e,searchType:t})=>{const s=cs(Ts)?.to?.url??cs(ks).url,n=Jt(s.searchParams),o=r!==void 0&&(r||void 0)!==n.query,l=e!==void 0&&e>=0&&e!==n.repos;if(o||l){const i=Date.now(),u=new URL(s);o&&r?u.searchParams.set("q",r):o&&u.searchParams.delete("q"),l&&e===Ss.repos?u.searchParams.delete("repos"):l&&u.searchParams.set("repos",e.toString()),Ms(u,{replaceState:t==="live"&&i-ms<2e3,keepFocus:!0,noScroll:!0}),ms=i}},Gs=async({url:r,fetch:e})=>({listOutcome:await Zs(r,e)}),Zs=async(r,e)=>{const t=Jt(r.searchParams);try{return await(await e("/api/list",{method:"POST",body:JSON.stringify(t)})).json()}catch(s){return console.error("List repositories failed",s),{kind:"error",error:String(s)}}},Xr=Object.freeze(Object.defineProperty({__proto__:null,load:Gs},Symbol.toStringTag,{value:"Module"}));function Js(r){let e,t,s,n,o,l,i,u,p,_,T,C,d,b,M,q,B,W="repos",se,z,R,ne,re,x=(r[0]??"")+"",le,O,fe,J;u=new Rs({}),d=new Us({});function ae(L){r[14](L)}let ue={id:"context",pending:r[4]};return r[2]!==void 0&&(ue.value=r[2]),z=new Ys({props:ue}),Se.push(()=>Ne(z,"value",ae)),z.$on("change",r[15]),{c(){e=g("form"),t=g("input"),s=w(),n=g("div"),o=g("label"),l=g("span"),i=y("query"),V(u.$$.fragment),p=w(),_=g("span"),T=g("input"),C=w(),V(d.$$.fragment),M=w(),q=g("label"),B=g("span"),B.textContent=W,se=w(),V(z.$$.fragment),ne=w(),re=g("div"),le=y(x),this.h()},l(L){e=$(L,"FORM",{});var D=k(e);t=$(D,"INPUT",{type:!0,class:!0}),s=S(D),n=$(D,"DIV",{class:!0});var I=k(n);o=$(I,"LABEL",{for:!0,class:!0});var E=k(o);l=$(E,"SPAN",{title:!0,class:!0});var ee=k(l);i=v(ee,"query"),Q(u.$$.fragment,ee),ee.forEach(c),p=S(E),_=$(E,"SPAN",{class:!0});var te=k(_);T=$(te,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),C=S(te),Q(d.$$.fragment,te),te.forEach(c),E.forEach(c),M=S(I),q=$(I,"LABEL",{for:!0,class:!0});var ce=k(q);B=$(ce,"SPAN",{class:!0,"data-svelte-h":!0}),Ft(B)!=="svelte-leid1k"&&(B.textContent=W),se=S(ce),Q(z.$$.fragment,ce),ce.forEach(c),I.forEach(c),ne=S(D),re=$(D,"DIV",{class:!0});var _e=k(re);le=v(_e,x),_e.forEach(c),D.forEach(c),this.h()},h(){m(t,"type","submit"),m(t,"class","hidden"),m(l,"title","Same query syntax as the main search - use `r:name` to filter repositories by name, otherwise you are filtering them by their content!"),m(l,"class","text-xs px-1 text-gray-500"),m(T,"id","query"),m(T,"type","search"),T.autofocus=!0,m(T,"spellcheck",!1),m(T,"autocorrect","off"),m(T,"autocapitalize","off"),m(T,"autocomplete","off"),m(T,"class","font-mono focus:outline-none flex-auto appearance-none"),m(_,"class",b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:r[0]!==null,pending:r[5]})}`),m(o,"for","query"),m(o,"class","flex-auto flex flex-col space-y-0.5"),m(B,"class","text-xs px-1 text-gray-500"),m(q,"for","repos"),m(q,"class","flex flex-col space-y-0.5"),m(n,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),m(re,"class","text-xs text-red-500")},m(L,D){H(L,e,D),a(e,t),a(e,s),a(e,n),a(n,o),a(o,l),a(l,i),Y(u,l,null),a(o,p),a(o,_),a(_,T),_s(T,r[1]),a(_,C),Y(d,_,null),a(n,M),a(n,q),a(q,B),a(q,se),Y(z,q,null),a(e,ne),a(e,re),a(re,le),O=!0,T.focus(),fe||(J=[pt(T,"input",r[12]),pt(T,"input",r[13]),pt(e,"submit",zs(r[16]))],fe=!0)},p(L,[D]){D&2&&T.value!==L[1]&&_s(T,L[1]),(!O||D&33&&b!==(b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:L[0]!==null,pending:L[5]})}`))&&m(_,"class",b);const I={};D&16&&(I.pending=L[4]),!R&&D&4&&(R=!0,I.value=L[2],Ie(()=>R=!1)),z.$set(I),(!O||D&1)&&x!==(x=(L[0]??"")+"")&&U(le,x)},i(L){O||(N(u.$$.fragment,L),N(d.$$.fragment,L),N(z.$$.fragment,L),O=!0)},o(L){P(u.$$.fragment,L),P(d.$$.fragment,L),P(z.$$.fragment,L),O=!1},d(L){L&&c(e),G(u),G(d),G(z),fe=!1,js(J)}}}function Ks(r,e,t){let s,n,o,l,i;rt(r,mt,R=>t(10,o=R)),rt(r,Ts,R=>t(11,l=R));let{queryError:u}=e;const p=Qs();rt(r,p,R=>t(3,i=R));let _,T;const C=mt.subscribe(R=>{l?.type!=="goto"&&t(1,{query:_,repos:T}=R,_,t(2,T))});Fs(C);const d=()=>i==="live"&&(!_||_.length>=3),b=()=>{jt({query:_,repos:T,searchType:i})};let M;function q(){_=this.value,t(1,_)}const B=()=>{d()&&jt({query:_,searchType:i})};function W(R){T=R,t(2,T)}const se=R=>{d()&&jt({repos:R.detail,searchType:i})},z=()=>{b()};return r.$$set=R=>{"queryError"in R&&t(0,u=R.queryError)},r.$$.update=()=>{r.$$.dirty&520&&(i==="live"&&M==="manual"&&b(),t(9,M=i)),r.$$.dirty&3074&&t(5,s=l===null&&(o.query??"")!==(_??"")),r.$$.dirty&3076&&t(4,n=l===null&&o.repos!==T)},[u,_,T,i,n,s,p,d,b,M,o,l,q,B,W,se,z]}class Ws extends Ae{constructor(e){super(),Le(this,e,Ks,Js,qe,{queryError:0})}}const Xs=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],xs=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],er=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],tr=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],gs=(r,e,t)=>{let s=r;return typeof e=="string"||Array.isArray(e)?s=r.toLocaleString(e,t):(e===!0||t!==void 0)&&(s=r.toLocaleString(void 0,t)),s};function Pe(r,e){if(!Number.isFinite(r))throw new TypeError(`Expected a finite number, got ${typeof r}: ${r}`);e={bits:!1,binary:!1,space:!0,...e};const t=e.bits?e.binary?tr:er:e.binary?xs:Xs,s=e.space?" ":"";if(e.signed&&r===0)return` 0${s}${t[0]}`;const n=r<0,o=n?"-":e.signed?"+":"";n&&(r=-r);let l;if(e.minimumFractionDigits!==void 0&&(l={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(l={maximumFractionDigits:e.maximumFractionDigits,...l}),r<1){const _=gs(r,e.locale,l);return o+_+s+t[0]}const i=Math.min(Math.floor(e.binary?Math.log(r)/Math.log(1024):Math.log10(r)/3),t.length-1);r/=(e.binary?1024:1e3)**i,l||(r=r.toPrecision(3));const u=gs(Number(r),e.locale,l),p=t[i];return o+u+s+p}function sr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},i:je,o:je,d(t){t&&c(e)}}}function rr(r){let e,t;return e=new Zt({props:{to:r[1],$$slots:{default:[nr]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&2&&(o.to=s[1]),n&5&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function nr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},d(t){t&&c(e)}}}function lr(r){let e,t,s,n;const o=[rr,sr],l=[];function i(u,p){return u[1]?0:1}return t=i(r),s=l[t]=o[t](r),{c(){e=g("div"),s.c(),this.h()},l(u){e=$(u,"DIV",{class:!0});var p=k(e);s.l(p),p.forEach(c),this.h()},h(){m(e,"class","text-left")},m(u,p){H(u,e,p),l[t].m(e,null),n=!0},p(u,[p]){let _=t;t=i(u),t===_?l[t].p(u,p):(nt(),P(l[_],1,1,()=>{l[_]=null}),lt(),s=l[t],s?s.p(u,p):(s=l[t]=o[t](u),s.c()),N(s,1),s.m(e,null))},i(u){n||(N(s),n=!0)},o(u){P(s),n=!1},d(u){u&&c(e),l[t].d()}}}function or(r,e,t){let{name:s}=e,{url:n}=e;return r.$$set=o=>{"name"in o&&t(0,s=o.name),"url"in o&&t(1,n=o.url)},[s,n]}class ar extends Ae{constructor(e){super(),Le(this,e,or,lr,qe,{name:0,url:1})}}function $s(r,e,t){const s=r.slice();return s[3]=e[t].name,s[4]=e[t].version,s}function ir(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},i:je,o:je,d(s){s&&c(t)}}}function ur(r){let e,t;return e=new Zt({props:{to:r[1].replaceAll("{{.Version}}",r[4]),$$slots:{default:[fr]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&3&&(o.to=s[1].replaceAll("{{.Version}}",s[4])),n&129&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function fr(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},d(s){s&&c(t)}}}function bs(r){let e=r[3]+"",t,s,n,o,l,i,u;const p=[ur,ir],_=[];function T(C,d){return C[1]?0:1}return o=T(r),l=_[o]=p[o](r),{c(){t=y(e),s=y("@"),n=g("span"),l.c(),i=w(),this.h()},l(C){t=v(C,e),s=v(C,"@"),n=$(C,"SPAN",{class:!0});var d=k(n);l.l(d),i=S(d),d.forEach(c),this.h()},h(){m(n,"class","font-mono")},m(C,d){H(C,t,d),H(C,s,d),H(C,n,d),_[o].m(n,null),a(n,i),u=!0},p(C,d){(!u||d&1)&&e!==(e=C[3]+"")&&U(t,e);let b=o;o=T(C),o===b?_[o].p(C,d):(nt(),P(_[b],1,1,()=>{_[b]=null}),lt(),l=_[o],l?l.p(C,d):(l=_[o]=p[o](C),l.c()),N(l,1),l.m(n,i))},i(C){u||(N(l),u=!0)},o(C){P(l),u=!1},d(C){C&&(c(t),c(s),c(n)),_[o].d()}}}function cr(r){let e,t,s=dt(r[0]),n=[];for(let l=0;l<s.length;l+=1)n[l]=bs($s(r,s,l));const o=l=>P(n[l],1,1,()=>{n[l]=null});return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ps()},l(l){for(let i=0;i<n.length;i+=1)n[i].l(l);e=ps()},m(l,i){for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(l,i);H(l,e,i),t=!0},p(l,[i]){if(i&7){s=dt(l[0]);let u;for(u=0;u<s.length;u+=1){const p=$s(l,s,u);n[u]?(n[u].p(p,i),N(n[u],1)):(n[u]=bs(p),n[u].c(),N(n[u],1),n[u].m(e.parentNode,e))}for(nt(),u=s.length;u<n.length;u+=1)o(u);lt()}},i(l){if(!t){for(let i=0;i<s.length;i+=1)N(n[i]);t=!0}},o(l){n=n.filter(Boolean);for(let i=0;i<n.length;i+=1)P(n[i]);t=!1},d(l){l&&c(e),Cs(n,l)}}}function _r(r,e,t){let{branches:s}=e,{commitUrlTemplate:n}=e;const o=l=>/^[a-z0-9]{40}$/.test(l)?l.slice(0,8):l;return r.$$set=l=>{"branches"in l&&t(0,s=l.branches),"commitUrlTemplate"in l&&t(1,n=l.commitUrlTemplate)},[s,n,o]}class pr extends Ae{constructor(e){super(),Le(this,e,_r,cr,qe,{branches:0,commitUrlTemplate:1})}}function hr(r){let e;const t=r[2].default,s=Vt(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Qt(s,t,n,n[3],e?Gt(t,n[3],o,null):Yt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function dr(r){let e,t;const s=[{name:"chevron-up"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[hr]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function mr(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m18 15-6-6-6 6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class gr extends Ae{constructor(e){super(),Le(this,e,mr,dr,qe,{})}}function $r(r){let e;const t=r[2].default,s=Vt(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Qt(s,t,n,n[3],e?Gt(t,n[3],o,null):Yt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function br(r){let e,t;const s=[{name:"chevron-down"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[$r]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function yr(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m6 9 6 6 6-6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class vr extends Ae{constructor(e){super(),Le(this,e,yr,br,qe,{})}}const Br=(r,e)=>r?.prop===e.prop?r.direction==="ascending"?{...e,direction:"descending"}:null:{...e,direction:"ascending"},kr=({prop:r,kind:e,direction:t})=>{if(e==="number"&&t==="ascending")return({[r]:s},{[r]:n})=>s-n;if(e==="number"&&t==="descending")return({[r]:s},{[r]:n})=>n-s;if(e==="string"&&t==="ascending")return({[r]:s},{[r]:n})=>s<n?-1:s>n?1:0;if(e==="string"&&t==="descending")return({[r]:s},{[r]:n})=>n<s?-1:n>s?1:0};function Tr(r){let e,t;return e=new vr({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Cr(r){let e,t;return e=new gr({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Er(r){let e;return{c(){e=g("div"),this.h()},l(t){e=$(t,"DIV",{class:!0}),k(e).forEach(c),this.h()},h(){m(e,"class","flex-none w-4 h-4")},m(t,s){H(t,e,s)},i:je,o:je,d(t){t&&c(e)}}}function wr(r){let e,t,s,n,o,l,i,u;const p=[Er,Cr,Tr],_=[];function T(b,M){return b[0]===null||b[0].prop!==b[1].prop?0:b[0].direction==="ascending"?1:2}t=T(r),s=_[t]=p[t](r);const C=r[3].default,d=Vt(C,r,r[2],null);return{c(){e=g("button"),s.c(),n=w(),o=g("span"),d&&d.c(),this.h()},l(b){e=$(b,"BUTTON",{class:!0});var M=k(e);s.l(M),n=S(M),o=$(M,"SPAN",{});var q=k(o);d&&d.l(q),q.forEach(c),M.forEach(c),this.h()},h(){m(e,"class","w-full h-full flex justify-center items-center hover:bg-slate-200")},m(b,M){H(b,e,M),_[t].m(e,null),a(e,n),a(e,o),d&&d.m(o,null),l=!0,i||(u=pt(e,"click",r[4]),i=!0)},p(b,[M]){let q=t;t=T(b),t!==q&&(nt(),P(_[q],1,1,()=>{_[q]=null}),lt(),s=_[t],s||(s=_[t]=p[t](b),s.c()),N(s,1),s.m(e,n)),d&&d.p&&(!l||M&4)&&Qt(d,C,b,b[2],l?Gt(C,b[2],M,null):Yt(b[2]),null)},i(b){l||(N(s),N(d,b),l=!0)},o(b){P(s),P(d,b),l=!1},d(b){b&&c(e),_[t].d(),d&&d.d(b),i=!1,u()}}}function Sr(r,e,t){let{$$slots:s={},$$scope:n}=e,{sortColumn:o}=e,{sortBy:l}=e;const i=()=>{t(0,l=Br(l,o))};return r.$$set=u=>{"sortColumn"in u&&t(1,o=u.sortColumn),"sortBy"in u&&t(0,l=u.sortBy),"$$scope"in u&&t(2,n=u.$$scope)},[l,o,n,s,i]}class ze extends Ae{constructor(e){super(),Le(this,e,Sr,wr,qe,{sortColumn:1,sortBy:0})}}function ys(r,e,t){const s=r.slice();return s[14]=e[t].name,s[15]=e[t].url,s[16]=e[t].branches,s[17]=e[t].commitUrlTemplate,s[18]=e[t].shardCount,s[19]=e[t].fileCount,s[20]=e[t].indexBytes,s[21]=e[t].contentBytes,s[22]=e[t].lastIndexed,s[23]=e[t].lastCommit,s}function Ir(r){let e;return{c(){e=y("shard files")},l(t){e=v(t,"shard files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Nr(r){let e,t="Repository";return{c(){e=g("div"),e.textContent=t},l(s){e=$(s,"DIV",{"data-svelte-h":!0}),Ft(e)!=="svelte-1kv5i5g"&&(e.textContent=t)},m(s,n){H(s,e,n)},p:je,d(s){s&&c(e)}}}function Pr(r){let e;return{c(){e=y("Shard count")},l(t){e=v(t,"Shard count")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function qr(r){let e;return{c(){e=y("Contained files")},l(t){e=v(t,"Contained files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Ar(r){let e;return{c(){e=y("Index size in RAM")},l(t){e=v(t,"Index size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Lr(r){let e;return{c(){e=y("Content size in RAM")},l(t){e=v(t,"Content size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Dr(r){let e;return{c(){e=y("Last indexed")},l(t){e=v(t,"Last indexed")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Or(r){let e;return{c(){e=y("Last commit")},l(t){e=v(t,"Last commit")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function vs(r){let e,t,s,n,o,l,i,u,p=r[18]+"",_,T,C,d=r[19]+"",b,M,q,B=Pe(r[20],{space:!1,binary:!0})+"",W,se,z,R=Pe(r[21],{space:!1,binary:!0})+"",ne,re,x,le=r[22]+"",O,fe,J,ae=r[23]+"",ue,L,D;return s=new ar({props:{name:r[14],url:r[15]}}),l=new pr({props:{branches:r[16],commitUrlTemplate:r[17]}}),{c(){e=g("tr"),t=g("td"),V(s.$$.fragment),n=w(),o=g("td"),V(l.$$.fragment),i=w(),u=g("td"),_=y(p),T=w(),C=g("td"),b=y(d),M=w(),q=g("td"),W=y(B),se=w(),z=g("td"),ne=y(R),re=w(),x=g("td"),O=y(le),fe=w(),J=g("td"),ue=y(ae),L=w(),this.h()},l(I){e=$(I,"TR",{class:!0});var E=k(e);t=$(E,"TD",{class:!0});var ee=k(t);Q(s.$$.fragment,ee),ee.forEach(c),n=S(E),o=$(E,"TD",{class:!0});var te=k(o);Q(l.$$.fragment,te),te.forEach(c),i=S(E),u=$(E,"TD",{class:!0});var ce=k(u);_=v(ce,p),ce.forEach(c),T=S(E),C=$(E,"TD",{class:!0});var _e=k(C);b=v(_e,d),_e.forEach(c),M=S(E),q=$(E,"TD",{class:!0});var De=k(q);W=v(De,B),De.forEach(c),se=S(E),z=$(E,"TD",{class:!0});var Fe=k(z);ne=v(Fe,R),Fe.forEach(c),re=S(E),x=$(E,"TD",{class:!0});var ye=k(x);O=v(ye,le),ye.forEach(c),fe=S(E),J=$(E,"TD",{class:!0});var Oe=k(J);ue=v(Oe,ae),Oe.forEach(c),L=S(E),E.forEach(c),this.h()},h(){m(t,"class","p-1 border-x"),m(o,"class","p-1 border-x"),m(u,"class","p-1 border-x text-right"),m(C,"class","p-1 border-x text-right"),m(q,"class","p-1 border-x text-right"),m(z,"class","p-1 border-x text-right"),m(x,"class","p-1 border-x"),m(J,"class","p-1 border-x"),m(e,"class","border")},m(I,E){H(I,e,E),a(e,t),Y(s,t,null),a(e,n),a(e,o),Y(l,o,null),a(e,i),a(e,u),a(u,_),a(e,T),a(e,C),a(C,b),a(e,M),a(e,q),a(q,W),a(e,se),a(e,z),a(z,ne),a(e,re),a(e,x),a(x,O),a(e,fe),a(e,J),a(J,ue),a(e,L),D=!0},p(I,E){const ee={};E&4&&(ee.name=I[14]),E&4&&(ee.url=I[15]),s.$set(ee);const te={};E&4&&(te.branches=I[16]),E&4&&(te.commitUrlTemplate=I[17]),l.$set(te),(!D||E&4)&&p!==(p=I[18]+"")&&U(_,p),(!D||E&4)&&d!==(d=I[19]+"")&&U(b,d),(!D||E&4)&&B!==(B=Pe(I[20],{space:!1,binary:!0})+"")&&U(W,B),(!D||E&4)&&R!==(R=Pe(I[21],{space:!1,binary:!0})+"")&&U(ne,R),(!D||E&4)&&le!==(le=I[22]+"")&&U(O,le),(!D||E&4)&&ae!==(ae=I[23]+"")&&U(ue,ae)},i(I){D||(N(s.$$.fragment,I),N(l.$$.fragment,I),D=!0)},o(I){P(s.$$.fragment,I),P(l.$$.fragment,I),D=!1},d(I){I&&c(e),G(s),G(l)}}}function Mr(r){let e,t,s,n=r[0].repositories.length+"",o,l,i=r[0].repositories.length===1?"repository":"repositories",u,p,_=r[0].stats.shardCount+"",T,C,d=r[0].stats.shardCount===1?"shard":"shards",b,M,q=r[0].stats.fileCount+"",B,W,se=r[0].stats.fileCount===1?"file":"files",z,R,ne=Pe(r[0].stats.indexBytes+r[0].stats.contentBytes,{space:!1,binary:!0})+"",re,x,le,O,fe,J,ae=r[2].length+"",ue,L,D=r[2].length===1?"repository":"repositories",I,E,ee=r[4].shardCount+"",te,ce,_e=r[4].shardCount===1?"shard":"shards",De,Fe,ye=r[4].fileCount+"",Oe,gt,et=r[4].fileCount===1?"file":"files",ot,$t,tt=Pe(r[4].indexBytes+r[4].contentBytes,{space:!1,binary:!0})+"",at,bt,it,Me,ve,Be,ie,ut,yt,ft,vt,ke,Bt,Te,kt,ct,Tt,_t,Ct,Z,Ve,pe,Et,wt,Re,Kt="Branches",St,Qe,he,It,Nt,Ye,de,Pt,qt,Ge,me,At,Lt,Ze,ge,Dt,Ot,Je,$e,Mt,Rt,Ke,be,Ut,Ht,We,K;Te=new Zt({props:{to:"/about#repository-stats",$$slots:{default:[Ir]},$$scope:{ctx:r}}});function Is(f){r[7](f)}let Wt={sortColumn:{prop:"name",kind:"string"},$$slots:{default:[Nr]},$$scope:{ctx:r}};r[1]!==void 0&&(Wt.sortBy=r[1]),pe=new ze({props:Wt}),Se.push(()=>Ne(pe,"sortBy",Is));function Ns(f){r[8](f)}let Xt={sortColumn:{prop:"shardCount",kind:"number"},$$slots:{default:[Pr]},$$scope:{ctx:r}};r[1]!==void 0&&(Xt.sortBy=r[1]),he=new ze({props:Xt}),Se.push(()=>Ne(he,"sortBy",Ns));function Ps(f){r[9](f)}let xt={sortColumn:{prop:"fileCount",kind:"number"},$$slots:{default:[qr]},$$scope:{ctx:r}};r[1]!==void 0&&(xt.sortBy=r[1]),de=new ze({props:xt}),Se.push(()=>Ne(de,"sortBy",Ps));function qs(f){r[10](f)}let es={sortColumn:{prop:"indexBytes",kind:"number"},$$slots:{default:[Ar]},$$scope:{ctx:r}};r[1]!==void 0&&(es.sortBy=r[1]),me=new ze({props:es}),Se.push(()=>Ne(me,"sortBy",qs));function As(f){r[11](f)}let ts={sortColumn:{prop:"contentBytes",kind:"number"},$$slots:{default:[Lr]},$$scope:{ctx:r}};r[1]!==void 0&&(ts.sortBy=r[1]),ge=new ze({props:ts}),Se.push(()=>Ne(ge,"sortBy",As));function Ls(f){r[12](f)}let ss={sortColumn:{prop:"lastIndexed",kind:"string"},$$slots:{default:[Dr]},$$scope:{ctx:r}};r[1]!==void 0&&(ss.sortBy=r[1]),$e=new ze({props:ss}),Se.push(()=>Ne($e,"sortBy",Ls));function Ds(f){r[13](f)}let rs={sortColumn:{prop:"lastCommit",kind:"string"},$$slots:{default:[Or]},$$scope:{ctx:r}};r[1]!==void 0&&(rs.sortBy=r[1]),be=new ze({props:rs}),Se.push(()=>Ne(be,"sortBy",Ds));let Ue=dt(r[2]),j=[];for(let f=0;f<Ue.length;f+=1)j[f]=vs(ys(r,Ue,f));const Os=f=>P(j[f],1,1,()=>{j[f]=null});return{c(){e=g("h1"),t=g("span"),s=y("zoekt: "),o=y(n),l=w(),u=y(i),p=y(` /
|
|
1
|
+
import{g as Ms,L as Rs,T as Us,I as Bs}from"../chunks/loading-ellipsis.mvuswosg.js";import{p as ks,n as Ts}from"../chunks/stores.-I7LX7Z3.js";import{d as Hs}from"../chunks/index.XEtU8W2G.js";import{a7 as cs,n as qe,w as Se,e as g,l as w,t as y,c as $,a as k,o as S,b as v,d as c,p as Ft,f as m,i as H,g as a,y as _s,q as pt,a8 as zs,z as Ie,s as U,A as js,j as rt,a9 as Fs,h as je,G as ps,K as Cs,H as xe,a5 as ht,k as Vt,u as Qt,r as Yt,v as Gt,J as hs,m as Vs}from"../chunks/scheduler.T8nCnPq2.js";import{S as Ae,i as Le,f as Ne,c as V,a as Q,m as Y,t as N,b as P,d as G,g as nt,e as lt}from"../chunks/index.CP0w37D5.js";import{d as Qs}from"../chunks/preferences.WetYOKHg.js";import{I as Ys,c as ds}from"../chunks/integer-input.fvZuttUG.js";import{e as dt}from"../chunks/each.oUkpMz5d.js";import{L as Zt}from"../chunks/link.czJPdQv3.js";import{g as Es,a as ws}from"../chunks/spread.rEx3vLA9.js";const Ss=Object.freeze({repos:100}),Jt=r=>{const e=Number.parseInt(r.get("repos")??"",10),t=r.get("q")||void 0,s=e>=0?e:Ss.repos;return{query:t,repos:s}},mt=Hs(ks,r=>Jt(r.url.searchParams));let ms=0;const jt=({query:r,repos:e,searchType:t})=>{const s=cs(Ts)?.to?.url??cs(ks).url,n=Jt(s.searchParams),o=r!==void 0&&(r||void 0)!==n.query,l=e!==void 0&&e>=0&&e!==n.repos;if(o||l){const i=Date.now(),u=new URL(s);o&&r?u.searchParams.set("q",r):o&&u.searchParams.delete("q"),l&&e===Ss.repos?u.searchParams.delete("repos"):l&&u.searchParams.set("repos",e.toString()),Ms(u,{replaceState:t==="live"&&i-ms<2e3,keepFocus:!0,noScroll:!0}),ms=i}},Gs=async({url:r,fetch:e})=>({listOutcome:await Zs(r,e)}),Zs=async(r,e)=>{const t=Jt(r.searchParams);try{return await(await e("/api/list",{method:"POST",body:JSON.stringify(t)})).json()}catch(s){return console.error("List repositories failed",s),{kind:"error",error:String(s)}}},Xr=Object.freeze(Object.defineProperty({__proto__:null,load:Gs},Symbol.toStringTag,{value:"Module"}));function Js(r){let e,t,s,n,o,l,i,u,p,_,T,C,d,b,M,q,B,W="repos",se,z,R,ne,re,x=(r[0]??"")+"",le,O,fe,J;u=new Rs({}),d=new Us({});function ae(L){r[14](L)}let ue={id:"context",pending:r[4]};return r[2]!==void 0&&(ue.value=r[2]),z=new Ys({props:ue}),Se.push(()=>Ne(z,"value",ae)),z.$on("change",r[15]),{c(){e=g("form"),t=g("input"),s=w(),n=g("div"),o=g("label"),l=g("span"),i=y("query"),V(u.$$.fragment),p=w(),_=g("span"),T=g("input"),C=w(),V(d.$$.fragment),M=w(),q=g("label"),B=g("span"),B.textContent=W,se=w(),V(z.$$.fragment),ne=w(),re=g("div"),le=y(x),this.h()},l(L){e=$(L,"FORM",{});var D=k(e);t=$(D,"INPUT",{type:!0,class:!0}),s=S(D),n=$(D,"DIV",{class:!0});var I=k(n);o=$(I,"LABEL",{for:!0,class:!0});var E=k(o);l=$(E,"SPAN",{title:!0,class:!0});var ee=k(l);i=v(ee,"query"),Q(u.$$.fragment,ee),ee.forEach(c),p=S(E),_=$(E,"SPAN",{class:!0});var te=k(_);T=$(te,"INPUT",{id:!0,type:!0,spellcheck:!0,autocorrect:!0,autocapitalize:!0,autocomplete:!0,class:!0}),C=S(te),Q(d.$$.fragment,te),te.forEach(c),E.forEach(c),M=S(I),q=$(I,"LABEL",{for:!0,class:!0});var ce=k(q);B=$(ce,"SPAN",{class:!0,"data-svelte-h":!0}),Ft(B)!=="svelte-leid1k"&&(B.textContent=W),se=S(ce),Q(z.$$.fragment,ce),ce.forEach(c),I.forEach(c),ne=S(D),re=$(D,"DIV",{class:!0});var _e=k(re);le=v(_e,x),_e.forEach(c),D.forEach(c),this.h()},h(){m(t,"type","submit"),m(t,"class","hidden"),m(l,"title","Same query syntax as the main search - use `r:name` to filter repositories by name, otherwise you are filtering them by their content!"),m(l,"class","text-xs px-1 text-gray-500"),m(T,"id","query"),m(T,"type","search"),T.autofocus=!0,m(T,"spellcheck",!1),m(T,"autocorrect","off"),m(T,"autocapitalize","off"),m(T,"autocomplete","off"),m(T,"class","font-mono focus:outline-none flex-auto appearance-none"),m(_,"class",b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:r[0]!==null,pending:r[5]})}`),m(o,"for","query"),m(o,"class","flex-auto flex flex-col space-y-0.5"),m(B,"class","text-xs px-1 text-gray-500"),m(q,"for","repos"),m(q,"class","flex flex-col space-y-0.5"),m(n,"class","flex flex-wrap gap-y-2 justify-center whitespace-nowrap"),m(re,"class","text-xs text-red-500")},m(L,D){H(L,e,D),a(e,t),a(e,s),a(e,n),a(n,o),a(o,l),a(l,i),Y(u,l,null),a(o,p),a(o,_),a(_,T),_s(T,r[1]),a(_,C),Y(d,_,null),a(n,M),a(n,q),a(q,B),a(q,se),Y(z,q,null),a(e,ne),a(e,re),a(re,le),O=!0,T.focus(),fe||(J=[pt(T,"input",r[12]),pt(T,"input",r[13]),pt(e,"submit",zs(r[16]))],fe=!0)},p(L,[D]){D&2&&T.value!==L[1]&&_s(T,L[1]),(!O||D&33&&b!==(b=`flex flex-auto p-1 border shadow-sm space-x-1 ${ds({error:L[0]!==null,pending:L[5]})}`))&&m(_,"class",b);const I={};D&16&&(I.pending=L[4]),!R&&D&4&&(R=!0,I.value=L[2],Ie(()=>R=!1)),z.$set(I),(!O||D&1)&&x!==(x=(L[0]??"")+"")&&U(le,x)},i(L){O||(N(u.$$.fragment,L),N(d.$$.fragment,L),N(z.$$.fragment,L),O=!0)},o(L){P(u.$$.fragment,L),P(d.$$.fragment,L),P(z.$$.fragment,L),O=!1},d(L){L&&c(e),G(u),G(d),G(z),fe=!1,js(J)}}}function Ks(r,e,t){let s,n,o,l,i;rt(r,mt,R=>t(10,o=R)),rt(r,Ts,R=>t(11,l=R));let{queryError:u}=e;const p=Qs();rt(r,p,R=>t(3,i=R));let _,T;const C=mt.subscribe(R=>{l?.type!=="goto"&&t(1,{query:_,repos:T}=R,_,t(2,T))});Fs(C);const d=()=>i==="live"&&(!_||_.length>=3),b=()=>{jt({query:_,repos:T,searchType:i})};let M;function q(){_=this.value,t(1,_)}const B=()=>{d()&&jt({query:_,searchType:i})};function W(R){T=R,t(2,T)}const se=R=>{d()&&jt({repos:R.detail,searchType:i})},z=()=>{b()};return r.$$set=R=>{"queryError"in R&&t(0,u=R.queryError)},r.$$.update=()=>{r.$$.dirty&520&&(i==="live"&&M==="manual"&&b(),t(9,M=i)),r.$$.dirty&3074&&t(5,s=l===null&&(o.query??"")!==(_??"")),r.$$.dirty&3076&&t(4,n=l===null&&o.repos!==T)},[u,_,T,i,n,s,p,d,b,M,o,l,q,B,W,se,z]}class Ws extends Ae{constructor(e){super(),Le(this,e,Ks,Js,qe,{queryError:0})}}const Xs=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],xs=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],er=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],tr=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],gs=(r,e,t)=>{let s=r;return typeof e=="string"||Array.isArray(e)?s=r.toLocaleString(e,t):(e===!0||t!==void 0)&&(s=r.toLocaleString(void 0,t)),s};function Pe(r,e){if(!Number.isFinite(r))throw new TypeError(`Expected a finite number, got ${typeof r}: ${r}`);e={bits:!1,binary:!1,space:!0,...e};const t=e.bits?e.binary?tr:er:e.binary?xs:Xs,s=e.space?" ":"";if(e.signed&&r===0)return` 0${s}${t[0]}`;const n=r<0,o=n?"-":e.signed?"+":"";n&&(r=-r);let l;if(e.minimumFractionDigits!==void 0&&(l={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(l={maximumFractionDigits:e.maximumFractionDigits,...l}),r<1){const _=gs(r,e.locale,l);return o+_+s+t[0]}const i=Math.min(Math.floor(e.binary?Math.log(r)/Math.log(1024):Math.log10(r)/3),t.length-1);r/=(e.binary?1024:1e3)**i,l||(r=r.toPrecision(3));const u=gs(Number(r),e.locale,l),p=t[i];return o+u+s+p}function sr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},i:je,o:je,d(t){t&&c(e)}}}function rr(r){let e,t;return e=new Zt({props:{to:r[1],$$slots:{default:[nr]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&2&&(o.to=s[1]),n&5&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function nr(r){let e;return{c(){e=y(r[0])},l(t){e=v(t,r[0])},m(t,s){H(t,e,s)},p(t,s){s&1&&U(e,t[0])},d(t){t&&c(e)}}}function lr(r){let e,t,s,n;const o=[rr,sr],l=[];function i(u,p){return u[1]?0:1}return t=i(r),s=l[t]=o[t](r),{c(){e=g("div"),s.c(),this.h()},l(u){e=$(u,"DIV",{class:!0});var p=k(e);s.l(p),p.forEach(c),this.h()},h(){m(e,"class","text-left")},m(u,p){H(u,e,p),l[t].m(e,null),n=!0},p(u,[p]){let _=t;t=i(u),t===_?l[t].p(u,p):(nt(),P(l[_],1,1,()=>{l[_]=null}),lt(),s=l[t],s?s.p(u,p):(s=l[t]=o[t](u),s.c()),N(s,1),s.m(e,null))},i(u){n||(N(s),n=!0)},o(u){P(s),n=!1},d(u){u&&c(e),l[t].d()}}}function or(r,e,t){let{name:s}=e,{url:n}=e;return r.$$set=o=>{"name"in o&&t(0,s=o.name),"url"in o&&t(1,n=o.url)},[s,n]}class ar extends Ae{constructor(e){super(),Le(this,e,or,lr,qe,{name:0,url:1})}}function $s(r,e,t){const s=r.slice();return s[3]=e[t].name,s[4]=e[t].version,s}function ir(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},i:je,o:je,d(s){s&&c(t)}}}function ur(r){let e,t;return e=new Zt({props:{to:r[1].replaceAll("{{.Version}}",r[4]),$$slots:{default:[fr]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},p(s,n){const o={};n&3&&(o.to=s[1].replaceAll("{{.Version}}",s[4])),n&129&&(o.$$scope={dirty:n,ctx:s}),e.$set(o)},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function fr(r){let e=r[2](r[4])+"",t;return{c(){t=y(e)},l(s){t=v(s,e)},m(s,n){H(s,t,n)},p(s,n){n&1&&e!==(e=s[2](s[4])+"")&&U(t,e)},d(s){s&&c(t)}}}function bs(r){let e=r[3]+"",t,s,n,o,l,i,u;const p=[ur,ir],_=[];function T(C,d){return C[1]?0:1}return o=T(r),l=_[o]=p[o](r),{c(){t=y(e),s=y("@"),n=g("span"),l.c(),i=w(),this.h()},l(C){t=v(C,e),s=v(C,"@"),n=$(C,"SPAN",{class:!0});var d=k(n);l.l(d),i=S(d),d.forEach(c),this.h()},h(){m(n,"class","font-mono")},m(C,d){H(C,t,d),H(C,s,d),H(C,n,d),_[o].m(n,null),a(n,i),u=!0},p(C,d){(!u||d&1)&&e!==(e=C[3]+"")&&U(t,e);let b=o;o=T(C),o===b?_[o].p(C,d):(nt(),P(_[b],1,1,()=>{_[b]=null}),lt(),l=_[o],l?l.p(C,d):(l=_[o]=p[o](C),l.c()),N(l,1),l.m(n,i))},i(C){u||(N(l),u=!0)},o(C){P(l),u=!1},d(C){C&&(c(t),c(s),c(n)),_[o].d()}}}function cr(r){let e,t,s=dt(r[0]),n=[];for(let l=0;l<s.length;l+=1)n[l]=bs($s(r,s,l));const o=l=>P(n[l],1,1,()=>{n[l]=null});return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=ps()},l(l){for(let i=0;i<n.length;i+=1)n[i].l(l);e=ps()},m(l,i){for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(l,i);H(l,e,i),t=!0},p(l,[i]){if(i&7){s=dt(l[0]);let u;for(u=0;u<s.length;u+=1){const p=$s(l,s,u);n[u]?(n[u].p(p,i),N(n[u],1)):(n[u]=bs(p),n[u].c(),N(n[u],1),n[u].m(e.parentNode,e))}for(nt(),u=s.length;u<n.length;u+=1)o(u);lt()}},i(l){if(!t){for(let i=0;i<s.length;i+=1)N(n[i]);t=!0}},o(l){n=n.filter(Boolean);for(let i=0;i<n.length;i+=1)P(n[i]);t=!1},d(l){l&&c(e),Cs(n,l)}}}function _r(r,e,t){let{branches:s}=e,{commitUrlTemplate:n}=e;const o=l=>/^[a-z0-9]{40}$/.test(l)?l.slice(0,8):l;return r.$$set=l=>{"branches"in l&&t(0,s=l.branches),"commitUrlTemplate"in l&&t(1,n=l.commitUrlTemplate)},[s,n,o]}class pr extends Ae{constructor(e){super(),Le(this,e,_r,cr,qe,{branches:0,commitUrlTemplate:1})}}function hr(r){let e;const t=r[2].default,s=Vt(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Qt(s,t,n,n[3],e?Gt(t,n[3],o,null):Yt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function dr(r){let e,t;const s=[{name:"chevron-up"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[hr]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function mr(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m18 15-6-6-6 6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class gr extends Ae{constructor(e){super(),Le(this,e,mr,dr,qe,{})}}function $r(r){let e;const t=r[2].default,s=Vt(t,r,r[3],null);return{c(){s&&s.c()},l(n){s&&s.l(n)},m(n,o){s&&s.m(n,o),e=!0},p(n,o){s&&s.p&&(!e||o&8)&&Qt(s,t,n,n[3],e?Gt(t,n[3],o,null):Yt(n[3]),null)},i(n){e||(N(s,n),e=!0)},o(n){P(s,n),e=!1},d(n){s&&s.d(n)}}}function br(r){let e,t;const s=[{name:"chevron-down"},r[1],{iconNode:r[0]}];let n={$$slots:{default:[$r]},$$scope:{ctx:r}};for(let o=0;o<s.length;o+=1)n=xe(n,s[o]);return e=new Bs({props:n}),{c(){V(e.$$.fragment)},l(o){Q(e.$$.fragment,o)},m(o,l){Y(e,o,l),t=!0},p(o,[l]){const i=l&3?Es(s,[s[0],l&2&&ws(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(i.$$scope={dirty:l,ctx:o}),e.$set(i)},i(o){t||(N(e.$$.fragment,o),t=!0)},o(o){P(e.$$.fragment,o),t=!1},d(o){G(e,o)}}}function yr(r,e,t){let{$$slots:s={},$$scope:n}=e;const o=[["path",{d:"m6 9 6 6 6-6"}]];return r.$$set=l=>{t(1,e=xe(xe({},e),ht(l))),"$$scope"in l&&t(3,n=l.$$scope)},e=ht(e),[o,e,s,n]}class vr extends Ae{constructor(e){super(),Le(this,e,yr,br,qe,{})}}const Br=(r,e)=>r?.prop===e.prop?r.direction==="ascending"?{...e,direction:"descending"}:null:{...e,direction:"ascending"},kr=({prop:r,kind:e,direction:t})=>{if(e==="number"&&t==="ascending")return({[r]:s},{[r]:n})=>s-n;if(e==="number"&&t==="descending")return({[r]:s},{[r]:n})=>n-s;if(e==="string"&&t==="ascending")return({[r]:s},{[r]:n})=>s<n?-1:s>n?1:0;if(e==="string"&&t==="descending")return({[r]:s},{[r]:n})=>n<s?-1:n>s?1:0};function Tr(r){let e,t;return e=new vr({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Cr(r){let e,t;return e=new gr({props:{class:"flex-none",size:16}}),{c(){V(e.$$.fragment)},l(s){Q(e.$$.fragment,s)},m(s,n){Y(e,s,n),t=!0},i(s){t||(N(e.$$.fragment,s),t=!0)},o(s){P(e.$$.fragment,s),t=!1},d(s){G(e,s)}}}function Er(r){let e;return{c(){e=g("div"),this.h()},l(t){e=$(t,"DIV",{class:!0}),k(e).forEach(c),this.h()},h(){m(e,"class","flex-none w-4 h-4")},m(t,s){H(t,e,s)},i:je,o:je,d(t){t&&c(e)}}}function wr(r){let e,t,s,n,o,l,i,u;const p=[Er,Cr,Tr],_=[];function T(b,M){return b[0]===null||b[0].prop!==b[1].prop?0:b[0].direction==="ascending"?1:2}t=T(r),s=_[t]=p[t](r);const C=r[3].default,d=Vt(C,r,r[2],null);return{c(){e=g("button"),s.c(),n=w(),o=g("span"),d&&d.c(),this.h()},l(b){e=$(b,"BUTTON",{class:!0});var M=k(e);s.l(M),n=S(M),o=$(M,"SPAN",{});var q=k(o);d&&d.l(q),q.forEach(c),M.forEach(c),this.h()},h(){m(e,"class","w-full h-full flex justify-center items-center hover:bg-slate-200")},m(b,M){H(b,e,M),_[t].m(e,null),a(e,n),a(e,o),d&&d.m(o,null),l=!0,i||(u=pt(e,"click",r[4]),i=!0)},p(b,[M]){let q=t;t=T(b),t!==q&&(nt(),P(_[q],1,1,()=>{_[q]=null}),lt(),s=_[t],s||(s=_[t]=p[t](b),s.c()),N(s,1),s.m(e,n)),d&&d.p&&(!l||M&4)&&Qt(d,C,b,b[2],l?Gt(C,b[2],M,null):Yt(b[2]),null)},i(b){l||(N(s),N(d,b),l=!0)},o(b){P(s),P(d,b),l=!1},d(b){b&&c(e),_[t].d(),d&&d.d(b),i=!1,u()}}}function Sr(r,e,t){let{$$slots:s={},$$scope:n}=e,{sortColumn:o}=e,{sortBy:l}=e;const i=()=>{t(0,l=Br(l,o))};return r.$$set=u=>{"sortColumn"in u&&t(1,o=u.sortColumn),"sortBy"in u&&t(0,l=u.sortBy),"$$scope"in u&&t(2,n=u.$$scope)},[l,o,n,s,i]}class ze extends Ae{constructor(e){super(),Le(this,e,Sr,wr,qe,{sortColumn:1,sortBy:0})}}function ys(r,e,t){const s=r.slice();return s[14]=e[t].name,s[15]=e[t].url,s[16]=e[t].branches,s[17]=e[t].commitUrlTemplate,s[18]=e[t].shardCount,s[19]=e[t].fileCount,s[20]=e[t].indexBytes,s[21]=e[t].contentBytes,s[22]=e[t].lastIndexed,s[23]=e[t].lastCommit,s}function Ir(r){let e;return{c(){e=y("shard files")},l(t){e=v(t,"shard files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Nr(r){let e,t="Repository";return{c(){e=g("div"),e.textContent=t},l(s){e=$(s,"DIV",{"data-svelte-h":!0}),Ft(e)!=="svelte-1kv5i5g"&&(e.textContent=t)},m(s,n){H(s,e,n)},p:je,d(s){s&&c(e)}}}function Pr(r){let e;return{c(){e=y("Shard count")},l(t){e=v(t,"Shard count")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function qr(r){let e;return{c(){e=y("Contained files")},l(t){e=v(t,"Contained files")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Ar(r){let e;return{c(){e=y("Index size in RAM")},l(t){e=v(t,"Index size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Lr(r){let e;return{c(){e=y("Content size in RAM")},l(t){e=v(t,"Content size in RAM")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Dr(r){let e;return{c(){e=y("Last indexed")},l(t){e=v(t,"Last indexed")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function Or(r){let e;return{c(){e=y("Last commit")},l(t){e=v(t,"Last commit")},m(t,s){H(t,e,s)},d(t){t&&c(e)}}}function vs(r){let e,t,s,n,o,l,i,u,p=r[18]+"",_,T,C,d=r[19]+"",b,M,q,B=Pe(r[20],{space:!1,binary:!0})+"",W,se,z,R=Pe(r[21],{space:!1,binary:!0})+"",ne,re,x,le=r[22]+"",O,fe,J,ae=r[23]+"",ue,L,D;return s=new ar({props:{name:r[14],url:r[15]}}),l=new pr({props:{branches:r[16],commitUrlTemplate:r[17]}}),{c(){e=g("tr"),t=g("td"),V(s.$$.fragment),n=w(),o=g("td"),V(l.$$.fragment),i=w(),u=g("td"),_=y(p),T=w(),C=g("td"),b=y(d),M=w(),q=g("td"),W=y(B),se=w(),z=g("td"),ne=y(R),re=w(),x=g("td"),O=y(le),fe=w(),J=g("td"),ue=y(ae),L=w(),this.h()},l(I){e=$(I,"TR",{class:!0});var E=k(e);t=$(E,"TD",{class:!0});var ee=k(t);Q(s.$$.fragment,ee),ee.forEach(c),n=S(E),o=$(E,"TD",{class:!0});var te=k(o);Q(l.$$.fragment,te),te.forEach(c),i=S(E),u=$(E,"TD",{class:!0});var ce=k(u);_=v(ce,p),ce.forEach(c),T=S(E),C=$(E,"TD",{class:!0});var _e=k(C);b=v(_e,d),_e.forEach(c),M=S(E),q=$(E,"TD",{class:!0});var De=k(q);W=v(De,B),De.forEach(c),se=S(E),z=$(E,"TD",{class:!0});var Fe=k(z);ne=v(Fe,R),Fe.forEach(c),re=S(E),x=$(E,"TD",{class:!0});var ye=k(x);O=v(ye,le),ye.forEach(c),fe=S(E),J=$(E,"TD",{class:!0});var Oe=k(J);ue=v(Oe,ae),Oe.forEach(c),L=S(E),E.forEach(c),this.h()},h(){m(t,"class","p-1 border-x"),m(o,"class","p-1 border-x"),m(u,"class","p-1 border-x text-right"),m(C,"class","p-1 border-x text-right"),m(q,"class","p-1 border-x text-right"),m(z,"class","p-1 border-x text-right"),m(x,"class","p-1 border-x"),m(J,"class","p-1 border-x"),m(e,"class","border")},m(I,E){H(I,e,E),a(e,t),Y(s,t,null),a(e,n),a(e,o),Y(l,o,null),a(e,i),a(e,u),a(u,_),a(e,T),a(e,C),a(C,b),a(e,M),a(e,q),a(q,W),a(e,se),a(e,z),a(z,ne),a(e,re),a(e,x),a(x,O),a(e,fe),a(e,J),a(J,ue),a(e,L),D=!0},p(I,E){const ee={};E&4&&(ee.name=I[14]),E&4&&(ee.url=I[15]),s.$set(ee);const te={};E&4&&(te.branches=I[16]),E&4&&(te.commitUrlTemplate=I[17]),l.$set(te),(!D||E&4)&&p!==(p=I[18]+"")&&U(_,p),(!D||E&4)&&d!==(d=I[19]+"")&&U(b,d),(!D||E&4)&&B!==(B=Pe(I[20],{space:!1,binary:!0})+"")&&U(W,B),(!D||E&4)&&R!==(R=Pe(I[21],{space:!1,binary:!0})+"")&&U(ne,R),(!D||E&4)&&le!==(le=I[22]+"")&&U(O,le),(!D||E&4)&&ae!==(ae=I[23]+"")&&U(ue,ae)},i(I){D||(N(s.$$.fragment,I),N(l.$$.fragment,I),D=!0)},o(I){P(s.$$.fragment,I),P(l.$$.fragment,I),D=!1},d(I){I&&c(e),G(s),G(l)}}}function Mr(r){let e,t,s,n=r[0].repositories.length+"",o,l,i=r[0].repositories.length===1?"repository":"repositories",u,p,_=r[0].stats.shardCount+"",T,C,d=r[0].stats.shardCount===1?"shard":"shards",b,M,q=r[0].stats.fileCount+"",B,W,se=r[0].stats.fileCount===1?"file":"files",z,R,ne=Pe(r[0].stats.indexBytes+r[0].stats.contentBytes,{space:!1,binary:!0})+"",re,x,le,O,fe,J,ae=r[2].length+"",ue,L,D=r[2].length===1?"repository":"repositories",I,E,ee=r[4].shardCount+"",te,ce,_e=r[4].shardCount===1?"shard":"shards",De,Fe,ye=r[4].fileCount+"",Oe,gt,et=r[4].fileCount===1?"file":"files",ot,$t,tt=Pe(r[4].indexBytes+r[4].contentBytes,{space:!1,binary:!0})+"",at,bt,it,Me,ve,Be,ie,ut,yt,ft,vt,ke,Bt,Te,kt,ct,Tt,_t,Ct,Z,Ve,pe,Et,wt,Re,Kt="Branches",St,Qe,he,It,Nt,Ye,de,Pt,qt,Ge,me,At,Lt,Ze,ge,Dt,Ot,Je,$e,Mt,Rt,Ke,be,Ut,Ht,We,K;Te=new Zt({props:{to:"/about#repository-stats",$$slots:{default:[Ir]},$$scope:{ctx:r}}});function Is(f){r[7](f)}let Wt={sortColumn:{prop:"name",kind:"string"},$$slots:{default:[Nr]},$$scope:{ctx:r}};r[1]!==void 0&&(Wt.sortBy=r[1]),pe=new ze({props:Wt}),Se.push(()=>Ne(pe,"sortBy",Is));function Ns(f){r[8](f)}let Xt={sortColumn:{prop:"shardCount",kind:"number"},$$slots:{default:[Pr]},$$scope:{ctx:r}};r[1]!==void 0&&(Xt.sortBy=r[1]),he=new ze({props:Xt}),Se.push(()=>Ne(he,"sortBy",Ns));function Ps(f){r[9](f)}let xt={sortColumn:{prop:"fileCount",kind:"number"},$$slots:{default:[qr]},$$scope:{ctx:r}};r[1]!==void 0&&(xt.sortBy=r[1]),de=new ze({props:xt}),Se.push(()=>Ne(de,"sortBy",Ps));function qs(f){r[10](f)}let es={sortColumn:{prop:"indexBytes",kind:"number"},$$slots:{default:[Ar]},$$scope:{ctx:r}};r[1]!==void 0&&(es.sortBy=r[1]),me=new ze({props:es}),Se.push(()=>Ne(me,"sortBy",qs));function As(f){r[11](f)}let ts={sortColumn:{prop:"contentBytes",kind:"number"},$$slots:{default:[Lr]},$$scope:{ctx:r}};r[1]!==void 0&&(ts.sortBy=r[1]),ge=new ze({props:ts}),Se.push(()=>Ne(ge,"sortBy",As));function Ls(f){r[12](f)}let ss={sortColumn:{prop:"lastIndexed",kind:"string"},$$slots:{default:[Dr]},$$scope:{ctx:r}};r[1]!==void 0&&(ss.sortBy=r[1]),$e=new ze({props:ss}),Se.push(()=>Ne($e,"sortBy",Ls));function Ds(f){r[13](f)}let rs={sortColumn:{prop:"lastCommit",kind:"string"},$$slots:{default:[Or]},$$scope:{ctx:r}};r[1]!==void 0&&(rs.sortBy=r[1]),be=new ze({props:rs}),Se.push(()=>Ne(be,"sortBy",Ds));let Ue=dt(r[2]),j=[];for(let f=0;f<Ue.length;f+=1)j[f]=vs(ys(r,Ue,f));const Os=f=>P(j[f],1,1,()=>{j[f]=null});return{c(){e=g("h1"),t=g("span"),s=y("zoekt: "),o=y(n),l=w(),u=y(i),p=y(` /
|
|
2
2
|
`),T=y(_),C=w(),b=y(d),M=y(` /
|
|
3
3
|
`),B=y(q),W=w(),z=y(se),R=y(` /
|
|
4
4
|
`),re=y(ne),x=y(" RAM"),le=w(),O=g("span"),fe=y("neogrok: "),J=g("span"),ue=y(ae),L=w(),I=y(D),E=y(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1712789229719"}
|
|
Binary file
|
|
Binary file
|
|
@@ -19,9 +19,9 @@ const index = 0;
|
|
|
19
19
|
let component_cache;
|
|
20
20
|
const component = async () => component_cache ??= (await import('./_layout.svelte-dWIMzOyI.js')).default;
|
|
21
21
|
const server_id = "src/routes/+layout.server.ts";
|
|
22
|
-
const imports = ["_app/immutable/nodes/0.
|
|
22
|
+
const imports = ["_app/immutable/nodes/0.ySqcwo9v.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/stores.-I7LX7Z3.js","_app/immutable/chunks/singletons.hn7zINdM.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/preferences.WetYOKHg.js"];
|
|
23
23
|
const stylesheets = ["_app/immutable/assets/0.o0zCXDLg.css"];
|
|
24
24
|
const fonts = [];
|
|
25
25
|
|
|
26
26
|
export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets };
|
|
27
|
-
//# sourceMappingURL=0-
|
|
27
|
+
//# sourceMappingURL=0-TkgzVOJ4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-TkgzVOJ4.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import { l as loadPreferences } from \"../../chunks/preferences.js\";\nconst load = ({ cookies }) => {\n return {\n // While not all pages need preferences, most do. It's easiest to just make\n // them ubiquitously available.\n preferences: loadPreferences(cookies)\n };\n};\nexport {\n load\n};\n","import * as server from '../entries/pages/_layout.server.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.ySqcwo9v.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/each.oUkpMz5d.js\",\"_app/immutable/chunks/stores.-I7LX7Z3.js\",\"_app/immutable/chunks/singletons.hn7zINdM.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\",\"_app/immutable/chunks/preferences.WetYOKHg.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.o0zCXDLg.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AACA,MAAM,IAAI,GAAG,CAAC,EAAE,OAAO,EAAE,KAAK;AAC9B,EAAE,OAAO;AACT;AACA;AACA,IAAI,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC;AACzC,GAAG,CAAC;AACJ,CAAC;;;;;;;ACLW,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE,QAAQ;AAE1G,MAAC,SAAS,GAAG,+BAA+B;AAC5C,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,wCAAwC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,CAAC,+CAA+C,EAAE;AACvW,MAAC,WAAW,GAAG,CAAC,sCAAsC,EAAE;AACxD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 1;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./_error.svelte-c7BghUO7.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.F9pbmFz4.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/stores.-I7LX7Z3.js","_app/immutable/chunks/singletons.hn7zINdM.js","_app/immutable/chunks/index.XEtU8W2G.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1-
|
|
9
|
+
//# sourceMappingURL=1-eQYFz3_9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-eQYFz3_9.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.F9pbmFz4.js\",\"_app/immutable/chunks/scheduler.T8nCnPq2.js\",\"_app/immutable/chunks/index.CP0w37D5.js\",\"_app/immutable/chunks/stores.-I7LX7Z3.js\",\"_app/immutable/chunks/singletons.hn7zINdM.js\",\"_app/immutable/chunks/index.XEtU8W2G.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACvB,IAAI,eAAe,CAAC;AACR,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,6BAAmC,CAAC,EAAE,QAAQ;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,6CAA6C,CAAC,yCAAyC,CAAC,0CAA0C,CAAC,8CAA8C,CAAC,yCAAyC,EAAE;AAC9Q,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -112,9 +112,9 @@ var _page_ts = /*#__PURE__*/Object.freeze({
|
|
|
112
112
|
|
|
113
113
|
const index = 10;
|
|
114
114
|
let component_cache;
|
|
115
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
115
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-brbw9CBH.js')).default;
|
|
116
116
|
const universal_id = "src/routes/(search-page)/+page.ts";
|
|
117
|
-
const imports = ["_app/immutable/nodes/10.
|
|
117
|
+
const imports = ["_app/immutable/nodes/10.r9Cf-icQ.js","_app/immutable/chunks/index.XEtU8W2G.js","_app/immutable/chunks/scheduler.T8nCnPq2.js","_app/immutable/chunks/stores.-I7LX7Z3.js","_app/immutable/chunks/singletons.hn7zINdM.js","_app/immutable/chunks/loading-ellipsis.mvuswosg.js","_app/immutable/chunks/index.CP0w37D5.js","_app/immutable/chunks/preferences.WetYOKHg.js","_app/immutable/chunks/spread.rEx3vLA9.js","_app/immutable/chunks/each.oUkpMz5d.js","_app/immutable/chunks/integer-input.fvZuttUG.js","_app/immutable/chunks/link.czJPdQv3.js","_app/immutable/chunks/example-query.6BQBimAu.js","_app/immutable/chunks/5.MErjPYv9.js"];
|
|
118
118
|
const stylesheets = [];
|
|
119
119
|
const fonts = [];
|
|
120
120
|
|
|
@@ -130,4 +130,4 @@ var _10 = /*#__PURE__*/Object.freeze({
|
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
export { _10 as _, routeSearchQuery as r, updateRouteSearchQuery as u };
|
|
133
|
-
//# sourceMappingURL=10-
|
|
133
|
+
//# sourceMappingURL=10-Jn5HKt5B.js.map
|