@dylanpiercey/work 0.0.163 → 0.0.164
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/dist/index.mjs +1977 -1752
- package/dist/public/assets/{_B9aynZpd.js → _B3PQ4ksk.js} +7 -7
- package/dist/public/assets/_B3PQ4ksk.js.br +0 -0
- package/dist/public/assets/_B9AsiTsK.js +1 -0
- package/dist/public/assets/_BFjsR6nX.js +1 -0
- package/dist/public/assets/_BI14cwnd.js +1 -0
- package/dist/public/assets/_BJkOJi4V.js +1 -0
- package/dist/public/assets/_BSh216zP.js +1 -0
- package/dist/public/assets/_BUuzCdZp.js +1 -0
- package/dist/public/assets/{_C7fpvxku.js → _BVOa9uAw.js} +1 -1
- package/dist/public/assets/_BVOa9uAw.js.br +0 -0
- package/dist/public/assets/_BeDbwV8t.js +1 -0
- package/dist/public/assets/_BnqToOiR.js +1 -0
- package/dist/public/assets/_C4r6w1IH.js +1 -0
- package/dist/public/assets/_CFQvpOBF.js +1 -0
- package/dist/public/assets/_CTP_PmNe.js +1 -0
- package/dist/public/assets/_CgbAhdzb.js +1 -0
- package/dist/public/assets/_CtC3b7in.js +1 -0
- package/dist/public/assets/_Cv0p2qnH.js +1 -0
- package/dist/public/assets/_CxghlLep.js +1 -0
- package/dist/public/assets/_D7ThRXAJ.js +1 -0
- package/dist/public/assets/_DLaNvZPg.js +1 -0
- package/dist/public/assets/_DZB5QNc1.js +1 -0
- package/dist/public/assets/{_DO-1wrdg.js → _DaRbfhWL.js} +20 -20
- package/dist/public/assets/_DaRbfhWL.js.br +0 -0
- package/dist/public/assets/_DhdIHXk9.js +1 -0
- package/dist/public/assets/_wG4SetOf.js +1 -0
- package/dist/public/assets/_zYTXaLgN.js +1 -0
- package/dist/public/assets/app-page-CX1rqayX.css +1 -0
- package/dist/public/assets/app-page-CX1rqayX.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-CGVBiYSn.css +1 -0
- package/dist/public/assets/icon-arrow-down-CGVBiYSn.css.br +0 -0
- package/dist/public/assets/new-U_sz-hwn.js +1 -0
- package/dist/public/assets/review-view-DIOsAu77.css +1 -0
- package/dist/public/assets/review-view-DIOsAu77.css.br +0 -0
- package/dist/public/assets/review-view-DWG5uFu_.js +2 -0
- package/dist/public/assets/settings-U_sz-hwn.js +1 -0
- package/dist/public/assets/w-U_sz-hwn.js +1 -0
- package/dist/public/assets/w._-CLS-8mmy.js +1 -0
- package/dist/public/assets/w._-U_sz-hwn.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_ADBv0JHa.js +0 -1
- package/dist/public/assets/_B9aynZpd.js.br +0 -0
- package/dist/public/assets/_BD5g78lR.js +0 -1
- package/dist/public/assets/_BLp3ocpo.js +0 -1
- package/dist/public/assets/_By8Q0kjO.js +0 -1
- package/dist/public/assets/_C0IUHC2J.js +0 -1
- package/dist/public/assets/_C1uHTxE9.js +0 -1
- package/dist/public/assets/_C2EvCPWi.js +0 -1
- package/dist/public/assets/_C7fpvxku.js.br +0 -0
- package/dist/public/assets/_CHlzsEhp.js +0 -1
- package/dist/public/assets/_CJ7IP1Av.js +0 -1
- package/dist/public/assets/_CZFZcbX6.js +0 -1
- package/dist/public/assets/_Clds-jNF.js +0 -1
- package/dist/public/assets/_CmPjzYBq.js +0 -1
- package/dist/public/assets/_Cn4yj8mF.js +0 -1
- package/dist/public/assets/_CnY7WKoH.js +0 -1
- package/dist/public/assets/_CsbAROu4.js +0 -1
- package/dist/public/assets/_CwLvxT1I.js +0 -1
- package/dist/public/assets/_D1nQRxbq.js +0 -1
- package/dist/public/assets/_DO-1wrdg.js.br +0 -0
- package/dist/public/assets/_DqZ5bGsL.js +0 -1
- package/dist/public/assets/_KBJPVXi5.js +0 -1
- package/dist/public/assets/_Z_b2LTfZ.js +0 -1
- package/dist/public/assets/_oBeKiYJw.js +0 -1
- package/dist/public/assets/app-page-Dl6GaaKR.css +0 -1
- package/dist/public/assets/app-page-Dl6GaaKR.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-BG7XlCPT.css +0 -1
- package/dist/public/assets/icon-arrow-down-BG7XlCPT.css.br +0 -0
- package/dist/public/assets/new-DqdzV-MH.js +0 -1
- package/dist/public/assets/review-view-Buxhdl15.css +0 -1
- package/dist/public/assets/review-view-Buxhdl15.css.br +0 -0
- package/dist/public/assets/review-view-o3qf1i3k.js +0 -2
- package/dist/public/assets/settings-DqdzV-MH.js +0 -1
- package/dist/public/assets/w-DqdzV-MH.js +0 -1
- package/dist/public/assets/w._-DWpX54fh.js +0 -1
- package/dist/public/assets/w._-DqdzV-MH.js +0 -1
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_workspaceId as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_onExit as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_findOpenChange as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_onRevChange as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_sessions as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_findOpen as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,C as t,F as n,I as r,L as i,M as a,V as o,_ as ee,a as s,h as te,i as c,j as l,m as ne,v as re,y as u}from"./_tmN7XIcz.js";var d=!0,f=new Set;function ie(){return d}function p(e){if(d!==e){d=e;for(let t of f)t(e)}}function ae(e){return f.add(e),()=>f.delete(e)}var m=`work:auth-reload`,h=!1;function g(){if(!(typeof location>`u`||h)){try{if(sessionStorage.getItem(m))return;sessionStorage.setItem(m,`1`)}catch{}h=!0,location.reload()}}function oe(){try{sessionStorage.removeItem(m)}catch{}}function _(e){if(e.status===401||e.status===403)return!0;if(e.status>=500)return!1;if(e.type===`opaqueredirect`||e.redirected&&new URL(e.url).origin!==location.origin)return!0;let t=e.headers.get(`content-type`)||``;return!!(t.includes(`text/html`)&&!t.includes(`json`))}async function se(){try{let e=await fetch(`/api/boot`,{credentials:`same-origin`,cache:`no-store`,redirect:`manual`});return _(e)?(g(),!1):(e.ok&&oe(),e.ok)}catch{return!0}}function ce(e){let t=async()=>{if(!e?.aborted){try{let e=await fetch(`/api/boot`,{credentials:`same-origin`,cache:`no-store`,redirect:`manual`});if(_(e))return g();if(e.ok){h=!0,location.reload();return}}catch{}setTimeout(t,2e3)}};t()}async function v(e,t){let n=await fetch(e,t);if(_(n))throw g(),Error(`session expired`);let r;try{r=await n.json()}catch{throw _(n)?(g(),Error(`session expired`)):Error(n.ok?`invalid response`:`HTTP ${n.status}`)}if(r&&typeof r==`object`&&r.error)throw Error(r.error);if(!n.ok)throw Error(`HTTP ${n.status}`);return oe(),p(!0),r}function le(e){let t=e instanceof Error?e.message:String(e);return/HTTP 502|HTTP 503|HTTP 504|Failed to fetch|NetworkError|Load failed|ECONNREFUSED|session expired/i.test(t)}var ue=new Set([`workspaces.changed`,`sessions.changed`,`workspace.progress`,`review.changed`,`status.changed`]),de=1e4,y=4e4,fe=8e3,pe=[1e3,1e3,2e3,3e3],me=5e3,he=6e3,ge=4e3,b,x,S=null,C,w,T,E,D,O,k=0,_e=0,ve=0,ye=0,be=1e3;function xe(){return!!S&&S.readyState===WebSocket.OPEN&&!k}function A(e){b?.dispatchEvent(new MessageEvent(`sse.health`,{data:{healthy:e}}))}function j(e){x&&e!==x&&location.reload(),x=e}async function M(){try{j((await v(`/api/boot`)).boot),p(!0)}catch{}}function N(){let e=Date.now();if(e-ye<be)return;ye=e;let t=e-Math.max(_e,ve)>y;S&&t&&(L(),k||I()),z(),!(!t&&S&&!k)&&(M(),R())}function P(){_e=Date.now(),clearTimeout(w),clearTimeout(T),clearTimeout(O),O=void 0,T=setTimeout(I,y),p(!0),k&&(k=0,clearTimeout(E),E=void 0,A(!0))}function F(){v(`/api/status`).then(e=>{p(!0),b.dispatchEvent(new MessageEvent(`status.changed`,{data:e}))}).catch(()=>p(!1))}function I(){if(L(),k)return;k=Date.now(),A(!1),se();let e=0,t=()=>{E=setTimeout(()=>{k&&(document.visibilityState===`visible`&&(z(),R(),M(),F()),t())},pe[e++]??me)};t(),F()}function Se(){clearInterval(D),D=setInterval(()=>{if(document.visibilityState===`visible`&&!(!S||S.readyState!==WebSocket.OPEN||O)){try{S.send(`ping`)}catch{I();return}O=setTimeout(I,ge)}},he)}function L(){clearTimeout(w),clearTimeout(T),clearTimeout(O),O=void 0,clearInterval(D),D=void 0;let e=S;S=null,e&&(e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null,(e.readyState===WebSocket.OPEN||e.readyState===WebSocket.CONNECTING)&&e.close())}function R(){for(let e of[`workspaces.changed`,`sessions.changed`])b.dispatchEvent(new MessageEvent(e,{data:null}))}function z(){if(S&&(S.readyState===WebSocket.OPEN||S.readyState===WebSocket.CONNECTING))return;let e=location.protocol===`https:`?`wss`:`ws`,t=S=new WebSocket(`${e}://${location.host}/api/events`);ve=Date.now(),clearTimeout(w),w=setTimeout(I,fe),t.onmessage=e=>{let t;try{t=JSON.parse(String(e.data))}catch{return}let n=t.type;if(n){if(n===`hello`){P(),A(!0),j(t.data?.boot),Se();return}if(n===`ping`){P();return}ue.has(n)&&(P(),b.dispatchEvent(new MessageEvent(n,{data:t.data??null})))}},t.onerror=()=>{},t.onclose=()=>{S===t&&(S=null,k||I())}}function Ce(){return b||(b=new EventTarget,z(),M(),ae(e=>b?.dispatchEvent(new MessageEvent(`app.reachable`,{data:{reachable:e}}))),window.addEventListener(`offline`,()=>p(!1)),window.addEventListener(`online`,N),window.addEventListener(`pageshow`,N),window.addEventListener(`focus`,N),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`visible`?(clearTimeout(C),N()):(clearTimeout(C),C=setTimeout(()=>{k||L()},de))})),b}var B=new Map,we=new Set,Te;function Ee(e){for(let[t,n]of Object.entries(e))we.has(t)||B.set(t,n);typeof window<`u`&&(Te??=Promise.resolve())}function De(){return typeof window>`u`?Promise.resolve():Te??=(async()=>{try{let e=await fetch(`/api/prefs`);if(_(e)){g();return}Ee(await e.json())}catch{}})()}function V(e){return B.get(e)??null}function H(e,t){we.add(e),t===null?B.delete(e):B.set(e,t),Oe(e,t)}function Oe(e,t){return fetch(`/api/prefs`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({key:e,value:t}),keepalive:!0}).catch(()=>{})}function ke(e){H(`last-workspace`,e)}function Ae(){return V(`side-nav`)!==`0`}function je(e){H(`side-nav`,e?`1`:`0`)}function Me(e){return V(`tab:${e}`)}function Ne(e,t){H(`tab:${e}`,t)}function Pe(){return V(`diff-tree`)!==`0`}function Fe(e){H(`diff-tree`,e?`1`:`0`)}function Ie(){let e=Number(V(`diff-tree-w`));return e>=200&&e<=640?e:null}function Le(e){H(`diff-tree-w`,String(Math.round(e)))}function Re(){let e=V(`diff-scope`);return e===`working`||e===`dirty`?e:`committed`}function ze(e){H(`diff-scope`,e)}function Be(e){return V(`diff-filter:${e}`)||``}function Ve(e,t){H(`diff-filter:${e}`,t||null)}function He(e){let t=V(`diff-pos:${e}`);if(!t)return null;try{let e=JSON.parse(t);return e&&typeof e.key==`string`?e:null}catch{return null}}function Ue(e,t){H(`diff-pos:${e}`,t?JSON.stringify(t):null)}function We(e){H(`setup-later`,e?`1`:null)}function U(){let e=V(`sso-ignored`);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}}function Ge(e){let t=new Set(U());t.add(e),H(`sso-ignored`,JSON.stringify([...t].sort()))}function Ke(e){let t=U().filter(t=>t!==e);H(`sso-ignored`,t.length?JSON.stringify(t):null)}function qe(){let e=V(`theme`);return e===`light`||e===`dark`?e:`system`}function Je(e){H(`theme`,e===`system`?null:e)}function Ye(e){return e&&/^[0-9a-f]{7,64}$/i.test(e)?e:null}function Xe(e){if(e.view===`settings`)return`/settings`;if(e.view===`new`)return`/new`;if(!e.workspaceId)return`/`;let t=`/w/${encodeURIComponent(e.workspaceId)}`;if(e.view===`diff`){let n=new URLSearchParams;e.pr&&n.set(`pr`,e.pr),e.scope&&e.scope!==`committed`&&n.set(`scope`,e.scope),e.file&&n.set(`file`,e.file),e.rev&&n.set(`rev`,e.rev);let r=n.toString();return`${t}/review${r?`?${r}`:``}`}return e.view===`manage`?`${t}/manage`:`${t}${e.sessionId?`?s=${encodeURIComponent(e.sessionId)}`:``}`}function Ze(e){let t=e.pathname.replace(/\/+$/,``)||`/`;if(t===`/settings`)return{workspaceId:null,view:`settings`};if(t===`/new`)return{workspaceId:null,view:`new`};let n=/^\/w\/([^/]+)(?:\/(review|manage))?$/.exec(t);if(!n)return t===`/`?{workspaceId:null,view:`term`}:null;let r=decodeURIComponent(n[1]),i=new URLSearchParams(e.search);if(n[2]===`review`){let e=i.get(`scope`);return{workspaceId:r,view:`diff`,pr:i.get(`pr`),scope:e===`working`||e===`dirty`?e:null,file:i.get(`file`),rev:Ye(i.get(`rev`))}}return n[2]===`manage`?{workspaceId:r,view:`manage`}:{workspaceId:r,view:`term`,sessionId:i.get(`s`)}}function Qe(e,t){if(typeof history>`u`)return;let n=Xe(e);location.pathname+location.search!==n&&(t&&t.workspaceId===e.workspaceId&&t.view===e.view?history.replaceState:history.pushState).call(history,null,``,n)}function $e(){return typeof window<`u`&&window.matchMedia(`(pointer: coarse)`).matches}function et(){return typeof window<`u`&&window.matchMedia(`(max-width: 899px)`).matches}function W(){return typeof navigator<`u`&&navigator.standalone===!0}function tt(e,t){if(!/^https?:\/\//.test(e)){window.open(e,`_blank`,`noopener`);return}if(t?.system&&W()){location.href=`x-safari-${e}`;return}if(!W()){window.open(e,`_blank`,`noopener`);return}if(localStorage.getItem(`xSafariOk`)){location.href=`x-safari-${e}`;return}if(localStorage.getItem(`xSafariNo`)){window.open(e,`_blank`,`noopener`);return}let n=!1,r=()=>{document.visibilityState===`hidden`&&(n=!0,localStorage.setItem(`xSafariOk`,`1`))};document.addEventListener(`visibilitychange`,r),window.addEventListener(`pagehide`,r),setTimeout(()=>{document.removeEventListener(`visibilitychange`,r),window.removeEventListener(`pagehide`,r),!(n||document.visibilityState===`hidden`)&&(localStorage.setItem(`xSafariNo`,`1`),window.open(e,`_blank`,`noopener`))},1500),location.href=`x-safari-${e}`}var nt={working:`_B`,waiting:`_C`,idle:`_D`,off:`_E`},rt=`_L _q`,it=`_M _q`,at={accent:`_Q`,ok:`_R`,warn:`_S`,danger:`_T`,merged:`_U`,closed:`_V`},ot=`_Y _X`,st=`_0 _Z`,ct=`_4 _l`,lt=`_5 _l`,ut=`_6 _l`,dt=`_7 _l`;function ft(e){let t=e.split(`/`);return t.length>=3&&t[0].includes(`.`)?`https://${t[0]}/${t.slice(1).join(`/`)}`:`https://github.com/${e}`}function pt(e){let t=e.trim(),n=/^(?:https?|ssh):\/\/(?:[^@/\s]+@)?([a-z0-9.-]+)(?::\d+)?\/([\w.-]+)\/([\w.-]*?)(?:\.git)?\/?$/i.exec(t)||/^[\w.-]+@([a-z0-9.-]+):([\w.-]+)\/([\w.-]*?)(?:\.git)?$/i.exec(t);if(!n)return null;let r=n[1].toLowerCase();if(!r.includes(`.`)||!n[3])return null;let i=`${n[2]}/${n[3]}`;return r===`github.com`?i:`${r}/${i}`}var mt=`github.com`;function ht(e){let t=(e||[]).filter(e=>e.authed).map(e=>e.host);mt=t.includes(`github.com`)||t.length!==1?`github.com`:t[0]}function gt(e){let t=e.split(`/`);return t.length>=3&&t[0].includes(`.`)&&t[0]===mt?t.slice(1).join(`/`):e}var _t={error:`_bm`,warn:`_bn`,info:`_bo`},vt={error:`_bp`,warn:`_bq`,info:`_br`},yt={sm:12,md:14,lg:16,xl:18},G=`<svg viewBox="0 0 24 24" fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path></path></svg>`,K=` D l`,bt=(e,t)=>{c(e.a,`width`,t),c(e.a,`height`,t)},q=(e,t)=>bt(e,t??yt.md),J=(e,t)=>s(e.a,[`_m`,t]),Y=(e,t)=>c(e.b,`d`,t),xt=G,St=(e=>`/${e}&`)(K);function Ct(e){Y(e.a,`M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426`)}var wt=(e,t)=>q(e.a,t),X=(e,t)=>J(e.a,t),Tt=`<div><div><!><!></div><!></div>`,Et=` D D%b%l%l`,Dt=e(`E0`,e=>r(e.a,`click`,function(){e._._.o?.()})),Ot=e=>{s(e.a,[lt,`_bw`]),Ct(e.b),wt(e.b,14),X(e.b),Dt(e)},kt=t(0),At=re(25,e=>kt(e,e._._.n),e=>e._._),jt=l(1,`<!><!><!>`,`b%`,At),Mt=a(4,0,e=>{s(e.a,[`_bu`,e._.m&&`_bv`]),jt(e,+!e._.m)}),Nt=e=>{Mt._(e),Ft._(e)},Pt=l(2,(e=>`<button type=button title=Dismiss aria-label=Dismiss>${e}</button>`)(xt),(e=>` D/${e}&l`)(St),Ot),Ft=a(4,0,e=>Pt(e,+!e._.o)),It=t(1),Lt=a(3,0,e=>It(e,e._.l)),Rt=e=>{Lt._(e),s(e.a,`_bt`)},zt=a(2,0,e=>o(e.b,e._.j)),Bt=e=>{zt._(e),Vt._(e)},Vt=a(2,0,e=>s(e.a,vt[e._.r])),Z=i(21,e=>s(e.a,[`_bj`,_t[e.r],e.u,e.k]),2),Ht=u(17,e=>{c(e.a,`role`,e.r===`error`?`alert`:`status`),Z(e),Vt(e)}),Ut=(e,t)=>Ht(e,t||`error`),Wt=u(20,Z),Gt=e(`E1`,e=>n(e,{onDismiss:e.o,placement:e.s,onMount:function(){let e=new AbortController;return this.placement===`float`&&this.onDismiss&&window.addEventListener(`keydown`,e=>{e.key===`Escape`&&(document.querySelector(`dialog[open]`)||e.target instanceof HTMLInputElement&&e.target.value||(e.stopPropagation(),this.onDismiss?.()))},{capture:!0,signal:e.signal}),{abort:e}},onDestroy:function(){this.abort.abort()}})),Kt=i(19,Gt),qt=u(18,e=>{Wt(e,{float:`_bk`,inline:`_bl`}[e.s]),Kt(e)}),Jt=(e,t)=>qt(e,t||`float`),Yt=u(10,Z),Xt=e(`E2`,e=>te(e,`a`)),Zt=u(16,e=>{ne(e,`a`,e.q,{class:1,role:1}),Xt(e)});function Qt(e){s(e.b,`_bs`)}var $t=l(2,`<strong> </strong>`,` D `,Bt),en=u(9,e=>{$t(e,+!e.j),zt(e)}),tn=l(3,`<div><!></div>`,` D%`,Rt),nn=u(11,e=>{tn(e,+!e.l),Lt(e)}),rn=l(4,`<div><!><!></div>`,` D%b%`,Nt),an=i(15,e=>rn(e,e.m||e.o?0:1)),on=u(12,e=>{cn(e,e.m?.content),an(e),Mt(e)}),sn=u(14,e=>{an(e),Kt(e),Ft(e)}),cn=u(13,ee(At)),ln=`#fafafa`,un=`#131316`,Q=new Set;function dn(){if(typeof document>`u`)return`system`;let e=document.documentElement.dataset.theme;return e===`light`||e===`dark`?e:`system`}function fn(e){return Q.add(e),()=>Q.delete(e)}function pn(e){if(typeof document>`u`)return;let t=document.documentElement;e===`system`?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,e),mn(e,t.style.getPropertyValue(`--accent`).trim()||``);for(let t of Q)t(e)}function mn(e,t){if(typeof document>`u`)return;let n=document.head;for(let e of n.querySelectorAll(`meta[name="theme-color"]`))e.remove();let r=(e,t)=>{let r=document.createElement(`meta`);r.name=`theme-color`,r.content=e,t&&(r.media=t),n.append(r)};e===`light`?r(t||ln):e===`dark`?r(t||un):(r(t||ln,`(prefers-color-scheme: light)`),r(t||un,`(prefers-color-scheme: dark)`))}var hn=`_cc _N _O`,gn=`_5 _l`,_n=G,vn=(e=>`/${e}&`)(K);function yn(e){Y(e.a,`M21.8883 13.5C21.1645 18.3113 17.013 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C16.1006 2 19.6248 4.46819 21.1679 8 M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3`)}var bn=(e,t)=>q(e.a,t),xn=(e,t)=>J(e.a,t),Sn=G,Cn=(e=>`/${e}&`)(K);function wn(e){Y(e.a,`M15 6L9 12L15 18`)}var Tn=(e,t)=>q(e.a,t),En=(e,t)=>J(e.a,t),Dn=G,On=(e=>`/${e}&`)(K);function kn(e){Y(e.a,`M9 6L15 12L9 18`)}var An=(e,t)=>q(e.a,t),jn=(e,t)=>J(e.a,t),Mn=G,Nn=(e=>`/${e}&`)(K);function Pn(e){Y(e.a,`M17 17L21 21 M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z`)}var Fn=(e,t)=>q(e.a,t),In=(e,t)=>J(e.a,t),Ln=G,Rn=(e=>`/${e}&`)(K);function zn(e){Y(e.a,`M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5`)}var Bn=(e,t)=>q(e.a,t),Vn=(e,t)=>J(e.a,t),Hn=G,Un=(e=>`/${e}&`)(K);function Wn(e){Y(e.a,`M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M9.5 21V3 M5.5 10L7.25 12L5.5 14`)}var Gn=(e,t)=>q(e.a,t),Kn=(e,t)=>J(e.a,t);async function qn(e){try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement(`textarea`);t.value=e,t.style.cssText=`position:fixed;top:-100px;opacity:0;`,document.body.append(t),t.focus(),t.select();let n=document.execCommand(`copy`);return t.remove(),n}}function Jn(e,t){if(!e)return-1;let n=e.toLowerCase(),r=t.toLowerCase(),i=r.lastIndexOf(`/`),a=r.slice(i+1),o=r.slice(0,Math.max(0,i)).includes(n)?5:0;return a===n?1e3+o:a.startsWith(n)?800+o:a.includes(n)?600+o:$(n,a)?400+o:r.includes(n)?300:$(n,r)?100:-1}function Yn(e,t,n){return e?t.map(t=>({repo:t,score:Jn(e,t.nameWithOwner)})).filter(({repo:e,score:t})=>!e.isArchived&&t>=0&&!n(e.nameWithOwner)).sort((e,t)=>t.score-e.score||e.repo.nameWithOwner.length-t.repo.nameWithOwner.length||e.repo.nameWithOwner.localeCompare(t.repo.nameWithOwner)).slice(0,8).map(({repo:e})=>e):[]}function Xn(e,t){return e?t.map(t=>({branch:t,score:Jn(e,t)})).filter(({score:e})=>e>=0).sort((e,t)=>t.score-e.score||e.branch.length-t.branch.length||e.branch.localeCompare(t.branch)).map(({branch:e})=>e):t}function $(e,t){if(!e)return!0;let n=0,r=t.toLowerCase();for(let t of e.toLowerCase()){if(n=r.indexOf(t,n),n===-1)return!1;n++}return!0}var Zn=null;function Qn(e,t){Zn={cols:e,rows:t}}function $n(){return Zn}var er=`_ek _n`,tr=`_en _l`,nr=G,rr=(e=>`/${e}&`)(K);function ir(e){Y(e.a,`M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5`)}var ar=(e,t)=>q(e.a,t),or=(e,t)=>J(e.a,t);export{Yt as $,We as $t,An as A,nt as At,bn as B,He as Bt,Rn as C,rt as Ct,Mn as D,ct as Dt,Pn as E,lt as Et,Tn as F,tt as Ft,hn as G,Ge as Gt,_n as H,Pe as Ht,wn as I,Ze as It,fn as J,Ue as Jt,pn as K,U as Kt,Sn as L,Qe as Lt,Dn as M,W as Mt,On as N,et as Nt,Nn as O,st as Ot,En as P,$e as Pt,Zt as Q,ke as Qt,Cn as R,Xe as Rt,Ln as S,it as St,Fn as T,ut as Tt,vn as U,Ie as Ut,yn as V,Re as Vt,gn as W,Ee as Wt,on as X,Fe as Xt,mn as Y,ze as Yt,nn as Z,Le as Zt,Hn as _,yt as _t,rr as a,qe as an,en as at,Bn as b,ft as bt,$n as c,Ce as cn,wt as ct,Xn as d,le as dn,St as dt,je as en,Ut as et,Yn as f,se as fn,J as ft,Wn as g,K as gt,Gn as h,G as ht,nr as i,De as in,Tt as it,kn as j,at as jt,jn as k,ot as kt,Qn as l,xe as ln,Ct as lt,Kn as m,ie as mn,q as mt,ar as n,Ne as nn,sn as nt,tr as o,Ke as on,Et as ot,qn as p,ce as pn,Y as pt,dn as q,Ve as qt,ir as r,Ae as rn,Qt as rt,er as s,Me as sn,X as st,or as t,Je as tn,Jt as tt,$ as u,v as un,xt as ut,Un as v,pt as vt,In as w,dt as wt,zn as x,ht as xt,Vn as y,gt as yt,xn as z,Be as zt};
|
|
1
|
+
import{B as e,C as t,F as n,I as r,L as i,M as a,V as o,_ as ee,a as s,h as te,i as c,j as l,m as ne,v as re,y as u}from"./_tmN7XIcz.js";var d=!0,f=new Set;function ie(){return d}function p(e){if(d!==e){d=e;for(let t of f)t(e)}}function ae(e){return f.add(e),()=>f.delete(e)}var m=`work:auth-reload`,h=!1;function g(){if(!(typeof location>`u`||h)){try{if(sessionStorage.getItem(m))return;sessionStorage.setItem(m,`1`)}catch{}h=!0,location.reload()}}function oe(){try{sessionStorage.removeItem(m)}catch{}}function _(e){if(e.status===401||e.status===403)return!0;if(e.status>=500)return!1;if(e.type===`opaqueredirect`||e.redirected&&new URL(e.url).origin!==location.origin)return!0;let t=e.headers.get(`content-type`)||``;return!!(t.includes(`text/html`)&&!t.includes(`json`))}async function se(){try{let e=await fetch(`/api/boot`,{credentials:`same-origin`,cache:`no-store`,redirect:`manual`});return _(e)?(g(),!1):(e.ok&&oe(),e.ok)}catch{return!0}}function ce(e){let t=async()=>{if(!e?.aborted){try{let e=await fetch(`/api/boot`,{credentials:`same-origin`,cache:`no-store`,redirect:`manual`});if(_(e))return g();if(e.ok){h=!0,location.reload();return}}catch{}setTimeout(t,2e3)}};t()}async function v(e,t){let n=await fetch(e,t);if(_(n))throw g(),Error(`session expired`);let r;try{r=await n.json()}catch{throw _(n)?(g(),Error(`session expired`)):Error(n.ok?`invalid response`:`HTTP ${n.status}`)}if(r&&typeof r==`object`&&r.error)throw Error(r.error);if(!n.ok)throw Error(`HTTP ${n.status}`);return oe(),p(!0),r}function le(e){let t=e instanceof Error?e.message:String(e);return/HTTP 502|HTTP 503|HTTP 504|Failed to fetch|NetworkError|Load failed|ECONNREFUSED|session expired/i.test(t)}var ue=new Set([`workspaces.changed`,`sessions.changed`,`workspace.progress`,`review.changed`,`status.changed`]),de=1e4,y=4e4,fe=8e3,pe=[1e3,1e3,2e3,3e3],me=5e3,he=6e3,ge=4e3,b,x,S=null,C,w,T,E,D,O,k=0,_e=0,ve=0,ye=0,be=1e3;function xe(){return!!S&&S.readyState===WebSocket.OPEN&&!k}function A(e){b?.dispatchEvent(new MessageEvent(`sse.health`,{data:{healthy:e}}))}function j(e){x&&e!==x&&location.reload(),x=e}async function M(){try{j((await v(`/api/boot`)).boot),p(!0)}catch{}}function N(){let e=Date.now();if(e-ye<be)return;ye=e;let t=e-Math.max(_e,ve)>y;S&&t&&(L(),k||I()),z(),!(!t&&S&&!k)&&(M(),R())}function P(){_e=Date.now(),clearTimeout(w),clearTimeout(T),clearTimeout(O),O=void 0,T=setTimeout(I,y),p(!0),k&&(k=0,clearTimeout(E),E=void 0,A(!0))}function F(){v(`/api/status`).then(e=>{p(!0),b.dispatchEvent(new MessageEvent(`status.changed`,{data:e}))}).catch(()=>p(!1))}function I(){if(L(),k)return;k=Date.now(),A(!1),se();let e=0,t=()=>{E=setTimeout(()=>{k&&(document.visibilityState===`visible`&&(z(),R(),M(),F()),t())},pe[e++]??me)};t(),F()}function Se(){clearInterval(D),D=setInterval(()=>{if(document.visibilityState===`visible`&&!(!S||S.readyState!==WebSocket.OPEN||O)){try{S.send(`ping`)}catch{I();return}O=setTimeout(I,ge)}},he)}function L(){clearTimeout(w),clearTimeout(T),clearTimeout(O),O=void 0,clearInterval(D),D=void 0;let e=S;S=null,e&&(e.onopen=null,e.onmessage=null,e.onerror=null,e.onclose=null,(e.readyState===WebSocket.OPEN||e.readyState===WebSocket.CONNECTING)&&e.close())}function R(){for(let e of[`workspaces.changed`,`sessions.changed`])b.dispatchEvent(new MessageEvent(e,{data:null}))}function z(){if(S&&(S.readyState===WebSocket.OPEN||S.readyState===WebSocket.CONNECTING))return;let e=location.protocol===`https:`?`wss`:`ws`,t=S=new WebSocket(`${e}://${location.host}/api/events`);ve=Date.now(),clearTimeout(w),w=setTimeout(I,fe),t.onmessage=e=>{let t;try{t=JSON.parse(String(e.data))}catch{return}let n=t.type;if(n){if(n===`hello`){P(),A(!0),j(t.data?.boot),Se();return}if(n===`ping`){P();return}ue.has(n)&&(P(),b.dispatchEvent(new MessageEvent(n,{data:t.data??null})))}},t.onerror=()=>{},t.onclose=()=>{S===t&&(S=null,k||I())}}function Ce(){return b||(b=new EventTarget,z(),M(),ae(e=>b?.dispatchEvent(new MessageEvent(`app.reachable`,{data:{reachable:e}}))),window.addEventListener(`offline`,()=>p(!1)),window.addEventListener(`online`,N),window.addEventListener(`pageshow`,N),window.addEventListener(`focus`,N),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`visible`?(clearTimeout(C),N()):(clearTimeout(C),C=setTimeout(()=>{k||L()},de))})),b}var B=new Map,we=new Set,Te;function Ee(e){for(let[t,n]of Object.entries(e))we.has(t)||B.set(t,n);typeof window<`u`&&(Te??=Promise.resolve())}function De(){return typeof window>`u`?Promise.resolve():Te??=(async()=>{try{let e=await fetch(`/api/prefs`);if(_(e)){g();return}Ee(await e.json())}catch{}})()}function V(e){return B.get(e)??null}function H(e,t){we.add(e),t===null?B.delete(e):B.set(e,t),Oe(e,t)}function Oe(e,t){return fetch(`/api/prefs`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({key:e,value:t}),keepalive:!0}).catch(()=>{})}function ke(e){H(`last-workspace`,e)}function Ae(){return V(`side-nav`)!==`0`}function je(e){H(`side-nav`,e?`1`:`0`)}function Me(e){return V(`tab:${e}`)}function Ne(e,t){H(`tab:${e}`,t)}function Pe(){return V(`diff-tree`)!==`0`}function Fe(e){H(`diff-tree`,e?`1`:`0`)}function Ie(){let e=Number(V(`diff-tree-w`));return e>=200&&e<=640?e:null}function Le(e){H(`diff-tree-w`,String(Math.round(e)))}function Re(){let e=V(`diff-scope`);return e===`working`||e===`dirty`?e:`committed`}function ze(e){H(`diff-scope`,e)}function Be(e){return V(`diff-filter:${e}`)||``}function Ve(e,t){H(`diff-filter:${e}`,t||null)}function He(e){let t=V(`diff-pos:${e}`);if(!t)return null;try{let e=JSON.parse(t);return e&&typeof e.key==`string`?e:null}catch{return null}}function Ue(e,t){H(`diff-pos:${e}`,t?JSON.stringify(t):null)}function We(e){H(`setup-later`,e?`1`:null)}function U(){let e=V(`sso-ignored`);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`):[]}catch{return[]}}function Ge(e){let t=new Set(U());t.add(e),H(`sso-ignored`,JSON.stringify([...t].sort()))}function Ke(e){let t=U().filter(t=>t!==e);H(`sso-ignored`,t.length?JSON.stringify(t):null)}function qe(){let e=V(`theme`);return e===`light`||e===`dark`?e:`system`}function Je(e){H(`theme`,e===`system`?null:e)}function Ye(e){return e&&/^[0-9a-f]{7,64}$/i.test(e)?e:null}function Xe(e){if(e.view===`settings`)return`/settings`;if(e.view===`new`)return`/new`;if(!e.workspaceId)return`/`;let t=`/w/${encodeURIComponent(e.workspaceId)}`;if(e.view===`diff`){let n=new URLSearchParams;e.pr&&n.set(`pr`,e.pr),e.scope&&e.scope!==`committed`&&n.set(`scope`,e.scope),e.file&&n.set(`file`,e.file),e.rev&&n.set(`rev`,e.rev);let r=n.toString();return`${t}/review${r?`?${r}`:``}`}return e.view===`manage`?`${t}/manage`:`${t}${e.sessionId?`?s=${encodeURIComponent(e.sessionId)}`:``}`}function Ze(e){let t=e.pathname.replace(/\/+$/,``)||`/`;if(t===`/settings`)return{workspaceId:null,view:`settings`};if(t===`/new`)return{workspaceId:null,view:`new`};let n=/^\/w\/([^/]+)(?:\/(review|manage))?$/.exec(t);if(!n)return t===`/`?{workspaceId:null,view:`term`}:null;let r=decodeURIComponent(n[1]),i=new URLSearchParams(e.search);if(n[2]===`review`){let e=i.get(`scope`);return{workspaceId:r,view:`diff`,pr:i.get(`pr`),scope:e===`working`||e===`dirty`?e:null,file:i.get(`file`),rev:Ye(i.get(`rev`))}}return n[2]===`manage`?{workspaceId:r,view:`manage`}:{workspaceId:r,view:`term`,sessionId:i.get(`s`)}}function Qe(e,t){if(typeof history>`u`)return;let n=Xe(e);location.pathname+location.search!==n&&(t&&t.workspaceId===e.workspaceId&&t.view===e.view?history.replaceState:history.pushState).call(history,null,``,n)}function $e(){return typeof window<`u`&&window.matchMedia(`(pointer: coarse)`).matches}function et(){return typeof window<`u`&&window.matchMedia(`(max-width: 899px)`).matches}function W(){return typeof navigator<`u`&&navigator.standalone===!0}function tt(e,t){if(!/^https?:\/\//.test(e)){window.open(e,`_blank`,`noopener`);return}if(t?.system&&W()){location.href=`x-safari-${e}`;return}if(!W()){window.open(e,`_blank`,`noopener`);return}if(localStorage.getItem(`xSafariOk`)){location.href=`x-safari-${e}`;return}if(localStorage.getItem(`xSafariNo`)){window.open(e,`_blank`,`noopener`);return}let n=!1,r=()=>{document.visibilityState===`hidden`&&(n=!0,localStorage.setItem(`xSafariOk`,`1`))};document.addEventListener(`visibilitychange`,r),window.addEventListener(`pagehide`,r),setTimeout(()=>{document.removeEventListener(`visibilitychange`,r),window.removeEventListener(`pagehide`,r),!(n||document.visibilityState===`hidden`)&&(localStorage.setItem(`xSafariNo`,`1`),window.open(e,`_blank`,`noopener`))},1500),location.href=`x-safari-${e}`}var nt={working:`_B`,waiting:`_C`,idle:`_D`,off:`_E`},rt=`_L _q`,it=`_M _q`,at={accent:`_Q`,ok:`_R`,warn:`_S`,danger:`_T`,merged:`_U`,closed:`_V`},ot=`_Y _X`,st=`_0 _Z`,ct=`_4 _l`,lt=`_5 _l`,ut=`_6 _l`,dt=`_7 _l`;function ft(e){let t=e.split(`/`);return t.length>=3&&t[0].includes(`.`)?`https://${t[0]}/${t.slice(1).join(`/`)}`:`https://github.com/${e}`}function pt(e){let t=e.trim(),n=/^(?:https?|ssh):\/\/(?:[^@/\s]+@)?([a-z0-9.-]+)(?::\d+)?\/([\w.-]+)\/([\w.-]*?)(?:\.git)?\/?$/i.exec(t)||/^[\w.-]+@([a-z0-9.-]+):([\w.-]+)\/([\w.-]*?)(?:\.git)?$/i.exec(t);if(!n)return null;let r=n[1].toLowerCase();if(!r.includes(`.`)||!n[3])return null;let i=`${n[2]}/${n[3]}`;return r===`github.com`?i:`${r}/${i}`}var mt=`github.com`;function ht(e){let t=(e||[]).filter(e=>e.authed).map(e=>e.host);mt=t.includes(`github.com`)||t.length!==1?`github.com`:t[0]}function gt(e){let t=e.split(`/`);return t.length>=3&&t[0].includes(`.`)&&t[0]===mt?t.slice(1).join(`/`):e}var _t={error:`_bm`,warn:`_bn`,info:`_bo`},vt={error:`_bp`,warn:`_bq`,info:`_br`},yt={sm:12,md:14,lg:16,xl:18},G=`<svg viewBox="0 0 24 24" fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path></path></svg>`,K=` D l`,bt=(e,t)=>{c(e.a,`width`,t),c(e.a,`height`,t)},q=(e,t)=>bt(e,t??yt.md),J=(e,t)=>s(e.a,[`_m`,t]),Y=(e,t)=>c(e.b,`d`,t),xt=G,St=(e=>`/${e}&`)(K);function Ct(e){Y(e.a,`M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426`)}var wt=(e,t)=>q(e.a,t),X=(e,t)=>J(e.a,t),Tt=`<div><div><!><!></div><!></div>`,Et=` D D%b%l%l`,Dt=e(`F0`,e=>r(e.a,`click`,function(){e._._.o?.()})),Ot=e=>{s(e.a,[lt,`_bw`]),Ct(e.b),wt(e.b,14),X(e.b),Dt(e)},kt=t(0),At=re(25,e=>kt(e,e._._.n),e=>e._._),jt=l(1,`<!><!><!>`,`b%`,At),Mt=a(4,0,e=>{s(e.a,[`_bu`,e._.m&&`_bv`]),jt(e,+!e._.m)}),Nt=e=>{Mt._(e),Ft._(e)},Pt=l(2,(e=>`<button type=button title=Dismiss aria-label=Dismiss>${e}</button>`)(xt),(e=>` D/${e}&l`)(St),Ot),Ft=a(4,0,e=>Pt(e,+!e._.o)),It=t(1),Lt=a(3,0,e=>It(e,e._.l)),Rt=e=>{Lt._(e),s(e.a,`_bt`)},zt=a(2,0,e=>o(e.b,e._.j)),Bt=e=>{zt._(e),Vt._(e)},Vt=a(2,0,e=>s(e.a,vt[e._.r])),Z=i(21,e=>s(e.a,[`_bj`,_t[e.r],e.u,e.k]),2),Ht=u(17,e=>{c(e.a,`role`,e.r===`error`?`alert`:`status`),Z(e),Vt(e)}),Ut=(e,t)=>Ht(e,t||`error`),Wt=u(20,Z),Gt=e(`F1`,e=>n(e,{onDismiss:e.o,placement:e.s,onMount:function(){let e=new AbortController;return this.placement===`float`&&this.onDismiss&&window.addEventListener(`keydown`,e=>{e.key===`Escape`&&(document.querySelector(`dialog[open]`)||e.target instanceof HTMLInputElement&&e.target.value||(e.stopPropagation(),this.onDismiss?.()))},{capture:!0,signal:e.signal}),{abort:e}},onDestroy:function(){this.abort.abort()}})),Kt=i(19,Gt),qt=u(18,e=>{Wt(e,{float:`_bk`,inline:`_bl`}[e.s]),Kt(e)}),Jt=(e,t)=>qt(e,t||`float`),Yt=u(10,Z),Xt=e(`F2`,e=>te(e,`a`)),Zt=u(16,e=>{ne(e,`a`,e.q,{class:1,role:1}),Xt(e)});function Qt(e){s(e.b,`_bs`)}var $t=l(2,`<strong> </strong>`,` D `,Bt),en=u(9,e=>{$t(e,+!e.j),zt(e)}),tn=l(3,`<div><!></div>`,` D%`,Rt),nn=u(11,e=>{tn(e,+!e.l),Lt(e)}),rn=l(4,`<div><!><!></div>`,` D%b%`,Nt),an=i(15,e=>rn(e,e.m||e.o?0:1)),on=u(12,e=>{cn(e,e.m?.content),an(e),Mt(e)}),sn=u(14,e=>{an(e),Kt(e),Ft(e)}),cn=u(13,ee(At)),ln=`#fafafa`,un=`#131316`,Q=new Set;function dn(){if(typeof document>`u`)return`system`;let e=document.documentElement.dataset.theme;return e===`light`||e===`dark`?e:`system`}function fn(e){return Q.add(e),()=>Q.delete(e)}function pn(e){if(typeof document>`u`)return;let t=document.documentElement;e===`system`?t.removeAttribute(`data-theme`):t.setAttribute(`data-theme`,e),mn(e,t.style.getPropertyValue(`--accent`).trim()||``);for(let t of Q)t(e)}function mn(e,t){if(typeof document>`u`)return;let n=document.head;for(let e of n.querySelectorAll(`meta[name="theme-color"]`))e.remove();let r=(e,t)=>{let r=document.createElement(`meta`);r.name=`theme-color`,r.content=e,t&&(r.media=t),n.append(r)};e===`light`?r(t||ln):e===`dark`?r(t||un):(r(t||ln,`(prefers-color-scheme: light)`),r(t||un,`(prefers-color-scheme: dark)`))}var hn=`_bY _N _O`,gn=`_5 _l`,_n=G,vn=(e=>`/${e}&`)(K);function yn(e){Y(e.a,`M21.8883 13.5C21.1645 18.3113 17.013 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C16.1006 2 19.6248 4.46819 21.1679 8 M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3`)}var bn=(e,t)=>q(e.a,t),xn=(e,t)=>J(e.a,t),Sn=G,Cn=(e=>`/${e}&`)(K);function wn(e){Y(e.a,`M15 6L9 12L15 18`)}var Tn=(e,t)=>q(e.a,t),En=(e,t)=>J(e.a,t),Dn=G,On=(e=>`/${e}&`)(K);function kn(e){Y(e.a,`M9 6L15 12L9 18`)}var An=(e,t)=>q(e.a,t),jn=(e,t)=>J(e.a,t),Mn=G,Nn=(e=>`/${e}&`)(K);function Pn(e){Y(e.a,`M17 17L21 21 M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z`)}var Fn=(e,t)=>q(e.a,t),In=(e,t)=>J(e.a,t),Ln=G,Rn=(e=>`/${e}&`)(K);function zn(e){Y(e.a,`M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5`)}var Bn=(e,t)=>q(e.a,t),Vn=(e,t)=>J(e.a,t),Hn=G,Un=(e=>`/${e}&`)(K);function Wn(e){Y(e.a,`M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M9.5 21V3 M5.5 10L7.25 12L5.5 14`)}var Gn=(e,t)=>q(e.a,t),Kn=(e,t)=>J(e.a,t);async function qn(e){try{return await navigator.clipboard.writeText(e),!0}catch{let t=document.createElement(`textarea`);t.value=e,t.style.cssText=`position:fixed;top:-100px;opacity:0;`,document.body.append(t),t.focus(),t.select();let n=document.execCommand(`copy`);return t.remove(),n}}function Jn(e,t){if(!e)return-1;let n=e.toLowerCase(),r=t.toLowerCase(),i=r.lastIndexOf(`/`),a=r.slice(i+1),o=r.slice(0,Math.max(0,i)).includes(n)?5:0;return a===n?1e3+o:a.startsWith(n)?800+o:a.includes(n)?600+o:$(n,a)?400+o:r.includes(n)?300:$(n,r)?100:-1}function Yn(e,t,n){return e?t.map(t=>({repo:t,score:Jn(e,t.nameWithOwner)})).filter(({repo:e,score:t})=>!e.isArchived&&t>=0&&!n(e.nameWithOwner)).sort((e,t)=>t.score-e.score||e.repo.nameWithOwner.length-t.repo.nameWithOwner.length||e.repo.nameWithOwner.localeCompare(t.repo.nameWithOwner)).slice(0,8).map(({repo:e})=>e):[]}function Xn(e,t){return e?t.map(t=>({branch:t,score:Jn(e,t)})).filter(({score:e})=>e>=0).sort((e,t)=>t.score-e.score||e.branch.length-t.branch.length||e.branch.localeCompare(t.branch)).map(({branch:e})=>e):t}function $(e,t){if(!e)return!0;let n=0,r=t.toLowerCase();for(let t of e.toLowerCase()){if(n=r.indexOf(t,n),n===-1)return!1;n++}return!0}var Zn=null;function Qn(e,t){Zn={cols:e,rows:t}}function $n(){return Zn}var er=`_ev _n`,tr=`_ey _l`,nr=G,rr=(e=>`/${e}&`)(K);function ir(e){Y(e.a,`M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5`)}var ar=(e,t)=>q(e.a,t),or=(e,t)=>J(e.a,t);export{Yt as $,We as $t,An as A,nt as At,bn as B,He as Bt,Rn as C,rt as Ct,Mn as D,ct as Dt,Pn as E,lt as Et,Tn as F,tt as Ft,hn as G,Ge as Gt,_n as H,Pe as Ht,wn as I,Ze as It,fn as J,Ue as Jt,pn as K,U as Kt,Sn as L,Qe as Lt,Dn as M,W as Mt,On as N,et as Nt,Nn as O,st as Ot,En as P,$e as Pt,Zt as Q,ke as Qt,Cn as R,Xe as Rt,Ln as S,it as St,Fn as T,ut as Tt,vn as U,Ie as Ut,yn as V,Re as Vt,gn as W,Ee as Wt,on as X,Fe as Xt,mn as Y,ze as Yt,nn as Z,Le as Zt,Hn as _,yt as _t,rr as a,qe as an,en as at,Bn as b,ft as bt,$n as c,Ce as cn,wt as ct,Xn as d,le as dn,St as dt,je as en,Ut as et,Yn as f,se as fn,J as ft,Wn as g,K as gt,Gn as h,G as ht,nr as i,De as in,Tt as it,kn as j,at as jt,jn as k,ot as kt,Qn as l,xe as ln,Ct as lt,Kn as m,ie as mn,q as mt,ar as n,Ne as nn,sn as nt,tr as o,Ke as on,Et as ot,qn as p,ce as pn,Y as pt,dn as q,Ve as qt,ir as r,Ae as rn,Qt as rt,er as s,Me as sn,X as st,or as t,Je as tn,Jt as tt,$ as u,v as un,xt as ut,Un as v,pt as vt,In as w,dt as wt,zn as x,ht as xt,Vn as y,gt as yt,xn as z,Be as zt};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_findTick as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_focusNonce as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_focusPr as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$setup as e,$template as t,$walks as n}from"./_B3PQ4ksk.js";var r=[t,n,e];export{r as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_focusFileNonce as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_active as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_scope as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_rev as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_focusFile as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_onFileChange as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_findTickChange as e}from"./_B3PQ4ksk.js";export{e as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$input_workspaceBranch as e}from"./_B3PQ4ksk.js";export{e as _};
|