@preventive/triage 1.0.0-alpha.45 → 1.0.0-alpha.46

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.
Files changed (79) hide show
  1. package/client/linked-findings.js +3 -0
  2. package/common/bundle-metadata.d.ts +1 -0
  3. package/common/bundle-metadata.js +1 -1
  4. package/common/bundle-sources.js +5 -1
  5. package/common/line-diff.js +5 -4
  6. package/out/{chunk-NPW52BM2.js → chunk-4HI2MSAV.js} +13 -13
  7. package/out/{chunk-AFLZH7WG.js → chunk-4UFAMJAX.js} +1 -1
  8. package/out/{chunk-HMAJDVXN.js → chunk-7XRR4OFU.js} +1 -1
  9. package/out/{chunk-Q6MVYGYV.js → chunk-BOIXMUU5.js} +1 -1
  10. package/out/{chunk-XVBEOGOS.js → chunk-CC4OM6TZ.js} +2 -2
  11. package/out/chunk-G24A42V6.js +2 -0
  12. package/out/{chunk-WI7Z5A2T.js → chunk-JKGQ3O7O.js} +1 -1
  13. package/out/chunk-LE5ZWLG4.js +235 -0
  14. package/out/chunk-MSION3G4.js +36 -0
  15. package/out/{chunk-6HNXNIQY.js → chunk-S6GIXWQW.js} +1 -1
  16. package/out/chunk-V3KWNNMY.js +1 -0
  17. package/out/client-managed-import.js +1 -1
  18. package/out/client-managed.js +25 -25
  19. package/out/compare.js +13 -13
  20. package/out/dialogs.js +40 -40
  21. package/out/graph.js +1 -1
  22. package/out/index.html +6 -6
  23. package/out/scan.js +2 -2
  24. package/out/terminal.js +1 -1
  25. package/out/view.css +1 -1
  26. package/out/view.js +15 -15
  27. package/package.json +3 -1
  28. package/risk/actions/findings.js +14 -9
  29. package/risk/actions/scripts/shell.js +5 -1
  30. package/risk/index.d.ts +5 -2
  31. package/server-e2e/app.ts +5 -4
  32. package/server-e2e/http.ts +5 -2
  33. package/server-managed/bundle-cache.ts +7 -1
  34. package/server-managed/combined.ts +3 -2
  35. package/server-managed/commit-lockfiles.ts +21 -11
  36. package/server-managed/config.ts +6 -0
  37. package/server-managed/db-methods.ts +37 -9
  38. package/server-managed/db-neon.ts +61 -21
  39. package/server-managed/db-schema.ts +4 -0
  40. package/server-managed/db.ts +2 -1
  41. package/server-managed/dependency-reviews.ts +13 -3
  42. package/server-managed/github-app.ts +12 -6
  43. package/server-managed/github-issue-links.ts +11 -5
  44. package/server-managed/github-pulls.ts +2 -2
  45. package/server-managed/github-requests.ts +39 -0
  46. package/server-managed/http-response.ts +10 -2
  47. package/server-managed/http.ts +195 -111
  48. package/server-managed/index.ts +8 -7
  49. package/server-managed/kept-briefly.ts +37 -0
  50. package/server-managed/npm-delta.ts +11 -6
  51. package/server-managed/npm-kept.ts +32 -2
  52. package/server-managed/npm-loads.ts +100 -30
  53. package/server-managed/npm-packages.ts +89 -3
  54. package/server-managed/npm-risk.ts +4 -1
  55. package/server-managed/pretty-print.ts +67 -23
  56. package/server-managed/pull-dependencies.ts +29 -9
  57. package/server-managed/pull-dependency-reviews.ts +8 -8
  58. package/server-managed/queue.ts +16 -0
  59. package/server-managed/rename-diff.ts +22 -13
  60. package/server-managed/report-sources.ts +1 -1
  61. package/server-managed/report-store.ts +42 -9
  62. package/server-managed/repository-actions.ts +15 -6
  63. package/server-managed/repository-browser.ts +119 -31
  64. package/server-managed/repository-dependency-reviews.ts +41 -19
  65. package/server-managed/repository-history.ts +24 -8
  66. package/server-managed/repository-pulse.ts +8 -1
  67. package/server-managed/repository-risk-audit.ts +13 -0
  68. package/server-managed/repository-risk-read.ts +11 -6
  69. package/server-managed/repository-risk.ts +27 -20
  70. package/server-managed/session.ts +18 -4
  71. package/server-managed/sql.ts +5 -2
  72. package/server-managed/storage.ts +4 -2
  73. package/server-managed/team-reports.ts +24 -12
  74. package/server-managed/upstream-cache.ts +12 -0
  75. package/server.ts +14 -5
  76. package/out/chunk-5DHL5NG3.js +0 -2
  77. package/out/chunk-NV7ES4EW.js +0 -1
  78. package/out/chunk-PTGDYLNS.js +0 -36
  79. package/out/chunk-QRD6GIG5.js +0 -229
package/out/terminal.js CHANGED
@@ -1,4 +1,4 @@
1
- import{a as e,b as t,c as n,e as r,f as i}from"./chunk-2ZDZWLFY.js";import{a}from"./chunk-GO7FT4OD.js";import{a as o,b as s,c,e as l,f as u,i as d,j as f,k as p,l as m,m as h}from"./chunk-NPW52BM2.js";import"./chunk-PXK7EU4V.js";import{c as g,d as _}from"./chunk-OKRLLE5I.js";import"./chunk-C4Z6ZBXV.js";import{a as ee,c as v,g as te,j as ne}from"./chunk-2XUEZHIP.js";import"./chunk-OOJM4CTU.js";var re={__proto__:null,ENOENT:`No such file or directory`,ENOTDIR:`Not a directory`,EISDIR:`Is a directory`,EEXIST:`File exists`,ENOTEMPTY:`Directory not empty`,ELOOP:`Too many levels of symbolic links`,EINVAL:`Invalid argument`,EPERM:`Operation not permitted`,EBUSY:`Device or resource busy`,EILSEQ:`Invalid or incomplete multibyte or wide character`,ENAMETOOLONG:`File name too long`},ie=/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}]/gu,ae=e=>`${e}`.replaceAll(ie,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`),oe=(e,t,n=`a string`)=>TypeError(`${e} must be ${n}, not ${t===null?`null`:typeof t}`),y=class extends Error{constructor(e,t){super(`${ae(t)}: ${re[e]??e}`),this.name=`VfsError`,this.code=e,this.path=t}},se=(e,t=`path`)=>{if(typeof e!=`string`)throw oe(t,e);return e};function ce(e,t){let n=Math.min(se(e).length,se(t).length);for(let r=0;r<n;r++)if(e[r]!==t[r])return e.codePointAt(r)-t.codePointAt(r);return e.length-t.length}var le=e=>[...e.entries.keys()].sort(ce),ue=(e,t)=>t===``?e:e===`/`?`/${t}`:`${e}/${t}`;function*de(e,t=e=>e,n=()=>!0){let r=[{name:``,node:e,depth:0}];for(;r.length>0;){let e=r.pop();if(yield t(e),e.node.type!==`directory`||!n(e))continue;let i=le(e.node);for(let t=i.length-1;t>=0;t--){let n=e.name===``?i[t]:`${e.name}/${i[t]}`;r.push({name:n,leaf:i[t],parent:e.node,node:e.node.entries.get(i[t]),depth:e.depth+1})}}}var fe=new Set([`error`,`keep`,`replace`]);function pe(e,t,n=`'error', 'keep' or 'replace'`){if(typeof e!=`string`)throw oe(t,e,n);if(!fe.has(e))throw RangeError(`${t} must be ${n}, not ${JSON.stringify(e)}`);return e}function me({clash:e=`error`,fold:t}){if(typeof e!=`function`&&pe(e,`clash`,`'error', 'keep', 'replace' or a function`),t!==void 0&&typeof t!=`function`)throw oe(`fold`,t,`a function`);return{fold:t,settle:typeof e==`function`?(t,n)=>pe(e(t,n),`what clash returns`):()=>e}}function he(e,t,n,{settle:r,fold:i},a){let o=_e(t,a.copy),s=new Map([[o,{into:e}]]),c=[];for(let{name:e,leaf:t,parent:a,node:l}of de(o,void 0,e=>s.has(e.node))){if(a===void 0)continue;let o=s.get(a),u=o.into.entries.get(t);if(u?.type===`directory`&&l.type===`directory`){s.set(l,{into:u});continue}let d=u===void 0?ve(o,a,t,i):[t];if(d.length>0){let i=ue(n,e),a=r(i,d.map(e=>i.slice(0,-t.length)+e));if(a===`error`)throw new y(`EEXIST`,i);if(a===`keep`)continue}c.push({dir:o.into,name:t,node:l,taken:d})}for(let{dir:e,name:t,node:n,taken:r}of c){for(let e of de(n))a.number(e.node);for(let t of r)e.entries.delete(t);e.entries.set(t,n)}}function*ge(e,t,n){for(let{name:r,node:i}of de(e))if(i.type===`directory`)for(let e of Map.groupBy(le(i),e=>n(e)).values())e.length>1&&(yield{path:ue(t,r),names:e})}function _e(e,t){let n=new Map;for(let{node:r,parent:i,leaf:a}of de(e))n.has(r)||n.set(r,t(r)),i!==void 0&&n.get(i).entries.set(a,n.get(r));return n.get(e)}function ve(e,t,n,r){return r===void 0?[]:(e.keys??=Map.groupBy(le(e.into).filter(e=>!t.entries.has(e)),e=>r(e)),e.keys.get(r(n))??[])}var ye=40,be=255,xe=4096,Se=new Uint8Array,Ce={file:420,directory:493,symlink:511},we=new TextEncoder,Te=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),Ee=e=>typeof e==`string`&&e.endsWith(`/`),De=class{#e;#t=0;constructor(){this.#e=this.#r()}#n(e,t,n=Ce[e],r=0){return{ino:++this.#t,type:e,mode:ze(n),mtime:Be(r),...t}}#r(e,t){return this.#n(`directory`,{entries:new Map},e,t)}#i(e,{follow:t=!0,mkdirs:n=!1,create:r=!1}={}){if(typeof e!=`string`)throw oe(`a path`,e);if(e.includes(`\0`))throw new y(`EINVAL`,e);if(e===``)throw new y(`ENOENT`,e);let i=e.endsWith(`/`),a=[Oe(e)],o=[{name:``,node:this.#e}],s=ye,c,l,u,d;for(;;){for(;a.length>1&&Ae(a.at(-1));)a.pop();if(Ae(a.at(-1))){({name:u,node:d}=o.pop()),c=void 0;break}if(l=a.length>1,u=Me(a.at(-1)),u===`.`)continue;if(u===`..`){o.length>1&&o.pop();continue}c=o.at(-1).node;let f=a.every(Ae);if(d=c.entries.get(u),r&&!f&&a.every(ke)){i=!0;break}if(d===void 0){if(f)break;if(!n||l)throw new y(`ENOENT`,e);Ie(u,e),d=this.#r(),c.entries.set(u,d)}if(d.type===`symlink`&&(!f||t)){if(s--===0)throw new y(`ELOOP`,e);d.target.startsWith(`/`)&&(o.length=1),a.push(Oe(d.target,!0));continue}if(f){if(i&&!r&&d.type!==`directory`)throw new y(`ENOTDIR`,e);break}if(d.type!==`directory`)throw new y(`ENOTDIR`,e);o.push({name:u,node:d})}return{dir:c,name:u,node:d,trailing:i,chain:o,linked:l}}#a(e,t=!0){let n=this.#i(e,{follow:t});if(n.node===void 0)throw new y(`ENOENT`,e);return n}#o(e,t){return this.#a(e,t).node}#s(e,t,n){Ie(e.name,n),e.dir.entries.set(e.name,t)}#c(e,t){if(e.dir!==void 0)return e.dir;throw new y(je(t,0)===t.length?`EBUSY`:`EINVAL`,t)}#l(e,t,n){try{return this.#o(e,n).type===t}catch(e){if(e instanceof y)return!1;throw e}}stat(e){return Pe(this.#o(e,!0))}lstat(e){return Pe(this.#o(e,Ee(e)))}isFile(e){return this.#l(e,`file`,!0)}isDirectory(e){return this.#l(e,`directory`,!0)}isSymlink(e){return this.#l(e,`symlink`,!1)}realpath(e){return Ne(this.#a(e))}readFile(e){let t=this.#o(e,!0);if(t.type===`directory`)throw new y(`EISDIR`,e);return t.bytes}readText(e){let t=this.readFile(e);try{return Te.decode(t)}catch{throw new y(`EILSEQ`,e)}}readlink(e){let t=this.#o(e,Ee(e));if(t.type!==`symlink`)throw new y(`EINVAL`,e);return t.target}readdir(e){let t=this.#o(e,!0);if(t.type!==`directory`)throw new y(`ENOTDIR`,e);return le(t)}#u(e,t,n,r,i){let a=Ve(t,e),o=this.#i(e,{follow:!Ee(e),create:!0});if(o.trailing||o.node?.type===`directory`)throw new y(`EISDIR`,e);o.node===void 0?this.#s(o,this.#n(`file`,{bytes:a},r,i),e):n(o.node,a)}writeFile(e,t,{mode:n,mtime:r}={}){this.#u(e,t,(e,t)=>Object.assign(e,{bytes:t,...Fe(e,n,r)}),n,r)}appendFile(e,t){this.#u(e,t,(e,t)=>{e.bytes=Ue(e.bytes,t)})}mkdir(e,{recursive:t=!1,mode:n,mtime:r}={}){let i=this.#i(e,{follow:t,mkdirs:t,create:!t});if(i.node===void 0){if(i.linked)throw new y(`ENOENT`,e);this.#s(i,this.#r(n,r),e)}else if(!t||i.node.type!==`directory`)throw new y(`EEXIST`,e)}symlink(e,t,{mode:n,mtime:r}={}){if(typeof e!=`string`)throw oe(`a link target`,e);if(e===``||e.includes(`\0`))throw new y(`EINVAL`,t);Ie(e,t,xe),this.#s(this.#d(t),this.#n(`symlink`,{target:e,size:Le(e)},n,r),t)}hardlink(e,t){let n=this.#o(e,Ee(e)),r=this.#d(t);if(n.type===`directory`)throw new y(`EPERM`,e);this.#s(r,n,t)}#d(e){let t=this.#i(e,{follow:!1,create:!0});if(t.node!==void 0)throw new y(`EEXIST`,e);if(t.trailing)throw new y(`ENOENT`,e);return t}unlink(e){this.rm(e)}rmdir(e){let t=this.#a(e,!1);if(t.node.type!==`directory`)throw new y(`ENOTDIR`,e);let n=this.#c(t,e);if(t.node.entries.size>0)throw new y(`ENOTEMPTY`,e);n.entries.delete(t.name)}rm(e,{recursive:t=!1}={}){let n=this.#a(e,!1);if(n.node.type===`directory`&&!t)throw new y(`EISDIR`,e);this.#c(n,e).entries.delete(n.name)}rename(e,t){let n=this.#i(e,{follow:!1,create:!0}),r=this.#i(t,{follow:!1,create:!0}),i=this.#c(n,e),a=this.#c(r,t);if(n.node===void 0)throw new y(`ENOENT`,e);Ie(r.name,t);let o=n.node.type===`directory`;if(!o&&(n.trailing||r.trailing))throw new y(`ENOTDIR`,n.trailing?e:t);if(r.chain.some(e=>e.node===n.node))throw new y(`EINVAL`,t);if(n.chain.some(e=>e.node===r.node))throw new y(`ENOTEMPTY`,t);if(r.node!==n.node){if(r.node!==void 0&&r.node.type===`directory`!==o)throw new y(o?`ENOTDIR`:`EISDIR`,t);if(r.node?.type===`directory`&&r.node.entries.size>0)throw new y(`ENOTEMPTY`,t);i.entries.delete(n.name),a.entries.set(r.name,n.node)}}chmod(e,t){this.#o(e,!0).mode=ze(t)}utimes(e,t){this.#o(e,!0).mtime=Be(t)}mount(e,t=`/`,n={}){if(typeof e!=`object`||!e||!(#e in e))throw oe(`a tree`,e,`a Vfs`);let r=me(n),i=this.#a(t);if(i.node.type!==`directory`)throw new y(`ENOTDIR`,t);he(i.node,e.#e,Ne(i),r,{copy:He,number:e=>{e.ino||=++this.#t}})}walk(e=`/`){let t=this.#a(e),n=Ne(t);return de(t.node,({name:e,node:t,depth:r})=>({path:ue(n,e),type:t.type,depth:r}))}collisions(e,t=`/`){if(typeof e!=`function`)throw oe(`fold`,e,`a function`);let n=this.#a(t);return ge(n.node,Ne(n),e)}entries(e=`/`){let t=this.#a(e),n=t.node.type===`directory`?`.`:t.name,r=new Map;return de(t.node,({name:e,node:t})=>{let i=e===``?n:e,a={name:i,type:t.type,mode:t.mode,mtime:t.mtime,linkname:``,data:Se},o=r.get(t);return o===void 0?t.type===`symlink`?(r.set(t,i),a.linkname=t.target):t.type===`file`&&(r.set(t,i),a.data=t.bytes):(a.type=`hardlink`,a.linkname=o),a})}},Oe=(e,t=!1)=>({text:e,at:je(e,0),dot:t&&e.endsWith(`/`)}),ke=e=>e.at===e.text.length,Ae=e=>ke(e)&&!e.dot,je=(e,t)=>{let n=t;for(;e[n]===`/`;)n++;return n};function Me(e){if(ke(e))return e.dot=!1,`.`;let t=e.text.indexOf(`/`,e.at),n=t===-1?e.text.length:t,r=e.text.slice(e.at,n);return e.at=je(e.text,n),r}var Ne=({chain:e,name:t})=>`/${[...e.slice(1).map(e=>e.name),t].filter(Boolean).join(`/`)}`,Pe=e=>({type:e.type,ino:e.ino,mode:e.mode,mtime:e.mtime,size:e.bytes?.length??e.size??0}),Fe=(e,t=e.mode,n=e.mtime)=>({mode:ze(t),mtime:Be(n)});function Ie(e,t,n=be){if(!e.isWellFormed())throw new y(`EILSEQ`,t);if(Re(e,n))throw new y(`ENAMETOOLONG`,t)}function Le(e){let t=0;for(let n of e){let e=n.codePointAt(0);t+=e<128?1:e<2048?2:e<65536?3:4}return t}var Re=(e,t)=>e.length>t||e.length*3>t&&Le(e)>t;function ze(e){if(!Number.isInteger(e)||e<0||e>4095)throw RangeError(`a mode must be an integer from 0 to 0o7777, not ${e}`);return e}function Be(e){if(!Number.isSafeInteger(e))throw RangeError(`an mtime must be an integer of whole seconds, not ${e}`);return e}function Ve(e,t){if(typeof e==`string`){if(!e.isWellFormed())throw new y(`EILSEQ`,t);return we.encode(e)}if(e instanceof Uint8Array)return new Uint8Array(e);throw oe(`file contents`,e,`a string or a Uint8Array`)}function He({type:e,mode:t,mtime:n,bytes:r,target:i,size:a}){let o={ino:0,type:e,mode:t,mtime:n};return e===`directory`?o.entries=new Map:e===`symlink`?Object.assign(o,{target:i,size:a}):o.bytes=r.byteOffset+r.length===r.buffer.byteLength?r:r.slice(),o}function Ue(e,t){let n=e.length+t.length,r=e.byteOffset+n<=e.buffer.byteLength,i=r?new Uint8Array(e.buffer,e.byteOffset,n):new Uint8Array(Math.max(n,e.length*2)).subarray(0,n);return r||i.set(e),i.set(t,e.length),i}var b=(e=``)=>({stdout:e,stderr:``,exitCode:0}),x=(e,t=1)=>({stdout:``,stderr:e.endsWith(`
1
+ import{a as e,b as t,c as n,e as r,f as i}from"./chunk-2ZDZWLFY.js";import{a}from"./chunk-GO7FT4OD.js";import{a as o,b as s,c,d as l,e as u,h as d,i as f,j as p,k as m,l as h}from"./chunk-4HI2MSAV.js";import"./chunk-PXK7EU4V.js";import{c as g,d as _}from"./chunk-OKRLLE5I.js";import"./chunk-C4Z6ZBXV.js";import{a as ee,c as v,g as te,j as ne}from"./chunk-2XUEZHIP.js";import"./chunk-OOJM4CTU.js";var re={__proto__:null,ENOENT:`No such file or directory`,ENOTDIR:`Not a directory`,EISDIR:`Is a directory`,EEXIST:`File exists`,ENOTEMPTY:`Directory not empty`,ELOOP:`Too many levels of symbolic links`,EINVAL:`Invalid argument`,EPERM:`Operation not permitted`,EBUSY:`Device or resource busy`,EILSEQ:`Invalid or incomplete multibyte or wide character`,ENAMETOOLONG:`File name too long`},ie=/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}]/gu,ae=e=>`${e}`.replaceAll(ie,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`),oe=(e,t,n=`a string`)=>TypeError(`${e} must be ${n}, not ${t===null?`null`:typeof t}`),y=class extends Error{constructor(e,t){super(`${ae(t)}: ${re[e]??e}`),this.name=`VfsError`,this.code=e,this.path=t}},se=(e,t=`path`)=>{if(typeof e!=`string`)throw oe(t,e);return e};function ce(e,t){let n=Math.min(se(e).length,se(t).length);for(let r=0;r<n;r++)if(e[r]!==t[r])return e.codePointAt(r)-t.codePointAt(r);return e.length-t.length}var le=e=>[...e.entries.keys()].sort(ce),ue=(e,t)=>t===``?e:e===`/`?`/${t}`:`${e}/${t}`;function*de(e,t=e=>e,n=()=>!0){let r=[{name:``,node:e,depth:0}];for(;r.length>0;){let e=r.pop();if(yield t(e),e.node.type!==`directory`||!n(e))continue;let i=le(e.node);for(let t=i.length-1;t>=0;t--){let n=e.name===``?i[t]:`${e.name}/${i[t]}`;r.push({name:n,leaf:i[t],parent:e.node,node:e.node.entries.get(i[t]),depth:e.depth+1})}}}var fe=new Set([`error`,`keep`,`replace`]);function pe(e,t,n=`'error', 'keep' or 'replace'`){if(typeof e!=`string`)throw oe(t,e,n);if(!fe.has(e))throw RangeError(`${t} must be ${n}, not ${JSON.stringify(e)}`);return e}function me({clash:e=`error`,fold:t}){if(typeof e!=`function`&&pe(e,`clash`,`'error', 'keep', 'replace' or a function`),t!==void 0&&typeof t!=`function`)throw oe(`fold`,t,`a function`);return{fold:t,settle:typeof e==`function`?(t,n)=>pe(e(t,n),`what clash returns`):()=>e}}function he(e,t,n,{settle:r,fold:i},a){let o=_e(t,a.copy),s=new Map([[o,{into:e}]]),c=[];for(let{name:e,leaf:t,parent:a,node:l}of de(o,void 0,e=>s.has(e.node))){if(a===void 0)continue;let o=s.get(a),u=o.into.entries.get(t);if(u?.type===`directory`&&l.type===`directory`){s.set(l,{into:u});continue}let d=u===void 0?ve(o,a,t,i):[t];if(d.length>0){let i=ue(n,e),a=r(i,d.map(e=>i.slice(0,-t.length)+e));if(a===`error`)throw new y(`EEXIST`,i);if(a===`keep`)continue}c.push({dir:o.into,name:t,node:l,taken:d})}for(let{dir:e,name:t,node:n,taken:r}of c){for(let e of de(n))a.number(e.node);for(let t of r)e.entries.delete(t);e.entries.set(t,n)}}function*ge(e,t,n){for(let{name:r,node:i}of de(e))if(i.type===`directory`)for(let e of Map.groupBy(le(i),e=>n(e)).values())e.length>1&&(yield{path:ue(t,r),names:e})}function _e(e,t){let n=new Map;for(let{node:r,parent:i,leaf:a}of de(e))n.has(r)||n.set(r,t(r)),i!==void 0&&n.get(i).entries.set(a,n.get(r));return n.get(e)}function ve(e,t,n,r){return r===void 0?[]:(e.keys??=Map.groupBy(le(e.into).filter(e=>!t.entries.has(e)),e=>r(e)),e.keys.get(r(n))??[])}var ye=40,be=255,xe=4096,Se=new Uint8Array,Ce={file:420,directory:493,symlink:511},we=new TextEncoder,Te=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),Ee=e=>typeof e==`string`&&e.endsWith(`/`),De=class{#e;#t=0;constructor(){this.#e=this.#r()}#n(e,t,n=Ce[e],r=0){return{ino:++this.#t,type:e,mode:ze(n),mtime:Be(r),...t}}#r(e,t){return this.#n(`directory`,{entries:new Map},e,t)}#i(e,{follow:t=!0,mkdirs:n=!1,create:r=!1}={}){if(typeof e!=`string`)throw oe(`a path`,e);if(e.includes(`\0`))throw new y(`EINVAL`,e);if(e===``)throw new y(`ENOENT`,e);let i=e.endsWith(`/`),a=[Oe(e)],o=[{name:``,node:this.#e}],s=ye,c,l,u,d;for(;;){for(;a.length>1&&Ae(a.at(-1));)a.pop();if(Ae(a.at(-1))){({name:u,node:d}=o.pop()),c=void 0;break}if(l=a.length>1,u=Me(a.at(-1)),u===`.`)continue;if(u===`..`){o.length>1&&o.pop();continue}c=o.at(-1).node;let f=a.every(Ae);if(d=c.entries.get(u),r&&!f&&a.every(ke)){i=!0;break}if(d===void 0){if(f)break;if(!n||l)throw new y(`ENOENT`,e);Ie(u,e),d=this.#r(),c.entries.set(u,d)}if(d.type===`symlink`&&(!f||t)){if(s--===0)throw new y(`ELOOP`,e);d.target.startsWith(`/`)&&(o.length=1),a.push(Oe(d.target,!0));continue}if(f){if(i&&!r&&d.type!==`directory`)throw new y(`ENOTDIR`,e);break}if(d.type!==`directory`)throw new y(`ENOTDIR`,e);o.push({name:u,node:d})}return{dir:c,name:u,node:d,trailing:i,chain:o,linked:l}}#a(e,t=!0){let n=this.#i(e,{follow:t});if(n.node===void 0)throw new y(`ENOENT`,e);return n}#o(e,t){return this.#a(e,t).node}#s(e,t,n){Ie(e.name,n),e.dir.entries.set(e.name,t)}#c(e,t){if(e.dir!==void 0)return e.dir;throw new y(je(t,0)===t.length?`EBUSY`:`EINVAL`,t)}#l(e,t,n){try{return this.#o(e,n).type===t}catch(e){if(e instanceof y)return!1;throw e}}stat(e){return Pe(this.#o(e,!0))}lstat(e){return Pe(this.#o(e,Ee(e)))}isFile(e){return this.#l(e,`file`,!0)}isDirectory(e){return this.#l(e,`directory`,!0)}isSymlink(e){return this.#l(e,`symlink`,!1)}realpath(e){return Ne(this.#a(e))}readFile(e){let t=this.#o(e,!0);if(t.type===`directory`)throw new y(`EISDIR`,e);return t.bytes}readText(e){let t=this.readFile(e);try{return Te.decode(t)}catch{throw new y(`EILSEQ`,e)}}readlink(e){let t=this.#o(e,Ee(e));if(t.type!==`symlink`)throw new y(`EINVAL`,e);return t.target}readdir(e){let t=this.#o(e,!0);if(t.type!==`directory`)throw new y(`ENOTDIR`,e);return le(t)}#u(e,t,n,r,i){let a=Ve(t,e),o=this.#i(e,{follow:!Ee(e),create:!0});if(o.trailing||o.node?.type===`directory`)throw new y(`EISDIR`,e);o.node===void 0?this.#s(o,this.#n(`file`,{bytes:a},r,i),e):n(o.node,a)}writeFile(e,t,{mode:n,mtime:r}={}){this.#u(e,t,(e,t)=>Object.assign(e,{bytes:t,...Fe(e,n,r)}),n,r)}appendFile(e,t){this.#u(e,t,(e,t)=>{e.bytes=Ue(e.bytes,t)})}mkdir(e,{recursive:t=!1,mode:n,mtime:r}={}){let i=this.#i(e,{follow:t,mkdirs:t,create:!t});if(i.node===void 0){if(i.linked)throw new y(`ENOENT`,e);this.#s(i,this.#r(n,r),e)}else if(!t||i.node.type!==`directory`)throw new y(`EEXIST`,e)}symlink(e,t,{mode:n,mtime:r}={}){if(typeof e!=`string`)throw oe(`a link target`,e);if(e===``||e.includes(`\0`))throw new y(`EINVAL`,t);Ie(e,t,xe),this.#s(this.#d(t),this.#n(`symlink`,{target:e,size:Le(e)},n,r),t)}hardlink(e,t){let n=this.#o(e,Ee(e)),r=this.#d(t);if(n.type===`directory`)throw new y(`EPERM`,e);this.#s(r,n,t)}#d(e){let t=this.#i(e,{follow:!1,create:!0});if(t.node!==void 0)throw new y(`EEXIST`,e);if(t.trailing)throw new y(`ENOENT`,e);return t}unlink(e){this.rm(e)}rmdir(e){let t=this.#a(e,!1);if(t.node.type!==`directory`)throw new y(`ENOTDIR`,e);let n=this.#c(t,e);if(t.node.entries.size>0)throw new y(`ENOTEMPTY`,e);n.entries.delete(t.name)}rm(e,{recursive:t=!1}={}){let n=this.#a(e,!1);if(n.node.type===`directory`&&!t)throw new y(`EISDIR`,e);this.#c(n,e).entries.delete(n.name)}rename(e,t){let n=this.#i(e,{follow:!1,create:!0}),r=this.#i(t,{follow:!1,create:!0}),i=this.#c(n,e),a=this.#c(r,t);if(n.node===void 0)throw new y(`ENOENT`,e);Ie(r.name,t);let o=n.node.type===`directory`;if(!o&&(n.trailing||r.trailing))throw new y(`ENOTDIR`,n.trailing?e:t);if(r.chain.some(e=>e.node===n.node))throw new y(`EINVAL`,t);if(n.chain.some(e=>e.node===r.node))throw new y(`ENOTEMPTY`,t);if(r.node!==n.node){if(r.node!==void 0&&r.node.type===`directory`!==o)throw new y(o?`ENOTDIR`:`EISDIR`,t);if(r.node?.type===`directory`&&r.node.entries.size>0)throw new y(`ENOTEMPTY`,t);i.entries.delete(n.name),a.entries.set(r.name,n.node)}}chmod(e,t){this.#o(e,!0).mode=ze(t)}utimes(e,t){this.#o(e,!0).mtime=Be(t)}mount(e,t=`/`,n={}){if(typeof e!=`object`||!e||!(#e in e))throw oe(`a tree`,e,`a Vfs`);let r=me(n),i=this.#a(t);if(i.node.type!==`directory`)throw new y(`ENOTDIR`,t);he(i.node,e.#e,Ne(i),r,{copy:He,number:e=>{e.ino||=++this.#t}})}walk(e=`/`){let t=this.#a(e),n=Ne(t);return de(t.node,({name:e,node:t,depth:r})=>({path:ue(n,e),type:t.type,depth:r}))}collisions(e,t=`/`){if(typeof e!=`function`)throw oe(`fold`,e,`a function`);let n=this.#a(t);return ge(n.node,Ne(n),e)}entries(e=`/`){let t=this.#a(e),n=t.node.type===`directory`?`.`:t.name,r=new Map;return de(t.node,({name:e,node:t})=>{let i=e===``?n:e,a={name:i,type:t.type,mode:t.mode,mtime:t.mtime,linkname:``,data:Se},o=r.get(t);return o===void 0?t.type===`symlink`?(r.set(t,i),a.linkname=t.target):t.type===`file`&&(r.set(t,i),a.data=t.bytes):(a.type=`hardlink`,a.linkname=o),a})}},Oe=(e,t=!1)=>({text:e,at:je(e,0),dot:t&&e.endsWith(`/`)}),ke=e=>e.at===e.text.length,Ae=e=>ke(e)&&!e.dot,je=(e,t)=>{let n=t;for(;e[n]===`/`;)n++;return n};function Me(e){if(ke(e))return e.dot=!1,`.`;let t=e.text.indexOf(`/`,e.at),n=t===-1?e.text.length:t,r=e.text.slice(e.at,n);return e.at=je(e.text,n),r}var Ne=({chain:e,name:t})=>`/${[...e.slice(1).map(e=>e.name),t].filter(Boolean).join(`/`)}`,Pe=e=>({type:e.type,ino:e.ino,mode:e.mode,mtime:e.mtime,size:e.bytes?.length??e.size??0}),Fe=(e,t=e.mode,n=e.mtime)=>({mode:ze(t),mtime:Be(n)});function Ie(e,t,n=be){if(!e.isWellFormed())throw new y(`EILSEQ`,t);if(Re(e,n))throw new y(`ENAMETOOLONG`,t)}function Le(e){let t=0;for(let n of e){let e=n.codePointAt(0);t+=e<128?1:e<2048?2:e<65536?3:4}return t}var Re=(e,t)=>e.length>t||e.length*3>t&&Le(e)>t;function ze(e){if(!Number.isInteger(e)||e<0||e>4095)throw RangeError(`a mode must be an integer from 0 to 0o7777, not ${e}`);return e}function Be(e){if(!Number.isSafeInteger(e))throw RangeError(`an mtime must be an integer of whole seconds, not ${e}`);return e}function Ve(e,t){if(typeof e==`string`){if(!e.isWellFormed())throw new y(`EILSEQ`,t);return we.encode(e)}if(e instanceof Uint8Array)return new Uint8Array(e);throw oe(`file contents`,e,`a string or a Uint8Array`)}function He({type:e,mode:t,mtime:n,bytes:r,target:i,size:a}){let o={ino:0,type:e,mode:t,mtime:n};return e===`directory`?o.entries=new Map:e===`symlink`?Object.assign(o,{target:i,size:a}):o.bytes=r.byteOffset+r.length===r.buffer.byteLength?r:r.slice(),o}function Ue(e,t){let n=e.length+t.length,r=e.byteOffset+n<=e.buffer.byteLength,i=r?new Uint8Array(e.buffer,e.byteOffset,n):new Uint8Array(Math.max(n,e.length*2)).subarray(0,n);return r||i.set(e),i.set(t,e.length),i}var b=(e=``)=>({stdout:e,stderr:``,exitCode:0}),x=(e,t=1)=>({stdout:``,stderr:e.endsWith(`
2
2
  `)?e:e+`
3
3
  `,exitCode:t}),We=(e,t=1)=>x(`usage: ${e}`,t),Ge=Symbol(`unsupported`);function S(e){if(e==null)return null;try{return e[Ge]??null}catch{return null}}function C(e,t,n,r,i=1){return w(x(r,i),e,t,n,r)}function w(e,t,n,r,i){return Object.defineProperty(e,Ge,{value:{kind:t,command:n,detail:r,message:i},enumerable:!1,configurable:!0}),e}function Ke(e,t,n,r){let i=S(e);return i?C(i.kind,t,i.detail,n,r):x(n,r)}var T=class extends Error{constructor(e,t,n){super(n),this.name=`UnsupportedError`,w(this,e,null,t,n)}};function qe(){let e=new Set,t=[];return{entries:t,add(n,r=n.command){let i=JSON.stringify([n.kind,r,n.detail]);e.has(i)||(e.add(i),t.push(Object.freeze(n)))}}}function E(e){try{return f(e)}catch(e){throw e instanceof TypeError?new T(`feature`,`unpaired surrogate`,`unpaired UTF-16 surrogates cannot be encoded as UTF-8`):e}}var Je=e=>e<128?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0;function*Ye(e){for(let t=0;t<e.length;){let n=nt[e[t]],r=n===1?e[t]:n===0?-1:Ze(e,t,n);yield r,t+=r<0?1:n}}var Xe=[0,0,128,2048,65536];function Ze(e,t,n){if(t+n>e.length)return-1;let r=e[t]&127>>n;for(let i=1;i<n;i++){if((e[t+i]&192)!=128)return-1;r=r<<6|e[t+i]&63}return r<Xe[n]||r>1114111||r>=55296&&r<=57343?-1:r}var Qe=e=>h(e);function $e(e){let t;try{t=m(e)}catch{}return t}function et(e){let t=$e(e);if(t!==void 0)return t;let n=new Uint16Array(e.length),r=0;for(let t=0;t<e.length;){let i=nt[e[t]],a=i===1?e[t]:i===0?-1:Ze(e,t,i);if(a<0){n[r++]=56320+e[t++];continue}a>65535?(n[r++]=55232+(a>>10),n[r++]=56320+(a&1023)):n[r++]=a,t+=i}let i=``;for(let e=0;e<r;e+=tt)i+=String.fromCharCode.apply(null,n.subarray(e,Math.min(r,e+tt)));return i}var tt=4096,nt=Uint8Array.from({length:256},(e,t)=>Je(t)),rt=`\\uDC80-\\uDCFF`,it=RegExp(`[${rt}]`,`u`),at=e=>e>=56448&&e<=56575;function ot(e){if(!it.test(e))return E(e);let t=new Uint8Array(e.length*3),n=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);if(i<128)t[n++]=i;else if(at(i))t[n++]=i-56320;else if(i<2048)n=st(t,n,192|i>>6,i,1);else if(i<65536){if(i>=55296&&i<=57343)return E(e);n=st(t,n,224|i>>12,i,2)}else n=st(t,n,240|i>>18,i,3),r++}return t.slice(0,n)}function st(e,t,n,r,i){e[t++]=n;for(let n=i-1;n>=0;n--)e[t++]=128|r>>6*n&63;return t}function ct(e){if(e.length===1)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}function D(e){try{return m(e)}catch{throw new T(`feature`,`partial UTF-8 byte sequence`,`byte output that is not valid UTF-8 cannot be represented by this string-based terminal`)}}function lt(e){let t=e.startsWith(`/`),n=e.split(`/`).filter(Boolean),r=[];for(let e of n)if(e!==`.`){if(e===`..`){r.length>0&&r.at(-1)!==`..`?r.pop():t||r.push(`..`);continue}r.push(e)}return t?`/`+r.join(`/`):r.length===0?`.`:r.join(`/`)}function O(e,t){return t.startsWith(`/`)?lt(t):lt(e+`/`+t)}var ut=40,dt=(e,t)=>e.isLink?.(t)===!0;function k(e,t,n,{follow:r=!0}={}){let i=ft(e,t,n,{follow:r});return i.error?{path:null,error:i.error}:t.endsWith(`/`)&&!n.isDir(i.path)?{path:null,error:`Not a directory`}:{path:i.path,error:null}}function ft(e,t,n,{follow:r=!0,lenient:i=!1}={}){if(t===``||t.includes(`\0`))return{path:`/`,error:`No such file or directory`,rest:[]};let a=(t.startsWith(`/`)?t:e+`/`+t).split(`/`).filter(Boolean),o=r||t.endsWith(`/`),s=ut,c=`/`;for(;a.length>0;){let e=a.shift();if(!n.isDir(c)){if(!i){let t=n.isFile(c)||dt(n,c)?`Not a directory`:`No such file or directory`;return{path:c,error:t,rest:[e,...a]}}e===`..`?c=j(c):e!==`.`&&(c=ht(c,e));continue}if(e===`..`){c=j(c);continue}if(e!==`.`&&(c=ht(c,e)),!dt(n,c)||a.length===0&&!o)continue;if(s--===0)return{path:c,error:`Too many levels of symbolic links`,rest:[...a]};let t=n.readLink(c);c=t.startsWith(`/`)?`/`:j(c),a.unshift(...t.split(`/`).filter(Boolean),...t.endsWith(`/`)?[`.`]:[])}let l=!n.isDir(c)&&!n.isFile(c)&&!dt(n,c);return{path:c,error:l?`No such file or directory`:null,rest:[]}}var A=(e,t,n,r=!0)=>n===``||n.includes(`\0`)?O(t,n):ft(t,n,e,{follow:r,lenient:!0}).path;function pt(e,t,n,r=k(e,t,n)){if(r.path!==null)return null;if(t===``||t.includes(`\0`)||t.endsWith(`/`)||r.error!==`No such file or directory`)return r.error;let i=ft(e,t,n);return i.rest.length>0?i.error:n.isDir(j(i.path))?null:`Not a directory`}function j(e){let t=lt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return n<0?`.`:n===0?`/`:t.slice(0,n)}function mt(e){let t=lt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return t.slice(n+1)}function M(e,t){for(let n=0;n<Math.min(e.length,t.length);n++)if(e[n]!==t[n])return e.codePointAt(n)-t.codePointAt(n);return e.length-t.length}function ht(e,t){return e===`/`?`/`+t:e+`/`+t}function gt(e,t){return e===`/`?t.slice(1):t.slice(e.length+1)}function _t(e,t,n=`reading them as text`){let r=$e(e);if(r===void 0)throw new T(`feature`,`binary file`,`${t} holds bytes that spell no text, and ${n} is not supported`);return r}var vt=(e,t)=>e!==void 0&&t!==void 0&&e.length===t.length&&e.every((e,n)=>e===t[n]);function*yt(e,t,n=1/0,r=()=>!0){if(e.isFile(t)){yield{path:t,kind:`file`,depth:0};return}if(!e.isDir(t)){dt(e,t)&&(yield{path:t,kind:`link`,depth:0});return}let i=[{path:t,kind:`dir`,depth:0}];for(;i.length;){let t=i.pop();if(yield t,t.kind!==`dir`||t.depth>=n||!r(t.path))continue;let{dirs:a,files:o,links:s=[]}=e.listDir(t.path),c=a.length-1,l=o.length-1,u=s.length-1;for(;c>=0||l>=0||u>=0;){let e=c>=0?`dir`:null,n=c>=0?a[c]:null;l>=0&&(n===null||M(o[l],n)>=0)&&(e=`file`,n=o[l]),u>=0&&(n===null||M(s[u],n)>=0)&&(e=`link`,n=s[u]),e===`dir`?c--:e===`file`?l--:u--,i.push({path:ht(t.path,n),kind:e,depth:t.depth+1})}}}function*bt(e,t){for(let n of yt(e,t))n.kind===`file`&&(yield n.path)}function xt(e,t=`/`){let n=new De;try{n.mkdir(t,{recursive:!0})}catch(e){throw wt(e,`mount ${JSON.stringify(t)}`)}let r={declared:new Map,made:new Set([`/`,t])};for(let[i,a]of jt(e)){let e=String(i);if(e.includes(`\0`))throw TypeError(`createTerminal: source paths must not contain NUL characters`);let o=Pt(a,e),s=lt(`/`+e);St(n,r,t===`/`?s:s===`/`?t:t+s,o,e)}return kt(n)}function St(e,t,n,r,i){let a=t.declared.get(n);if(a!==void 0){if(a===r.type&&Tt(e,n,r))return;throw TypeError(`createTerminal: source ${JSON.stringify(i)} names the same path as an earlier source, which declared something else there`)}t.declared.set(n,r.type);let o=n.slice(0,n.lastIndexOf(`/`))||`/`;if(!t.made.has(o)){try{e.mkdir(o,{recursive:!0})}catch(e){throw e?.code===`ENOENT`?Ct(i):wt(e?.code===`EEXIST`?new y(`ENOTDIR`,o):e,`source ${JSON.stringify(i)}`)}if(e.realpath(o)!==o)throw Ct(i);t.made.add(o)}try{if(r.type===`file`)e.writeFile(n,r.data);else if(r.type===`symlink`)e.symlink(r.target,n);else{try{e.mkdir(n)}catch(t){if(t?.code!==`EEXIST`||e.lstat(n).type!==`directory`)throw t}t.made.add(n)}}catch(e){throw wt(e,`source ${JSON.stringify(i)}`)}}var Ct=e=>TypeError(`createTerminal: source ${JSON.stringify(e)} is declared through a symbolic link; declare it where the link leads`);function wt(e,t){return e instanceof y?TypeError(`createTerminal: ${t}: ${e.message}`,{cause:e}):e}function Tt(e,t,n){return n.type===`directory`?!0:n.type===`symlink`?e.readlink(t)===n.target:vt(e.readFile(t),typeof n.data==`string`?E(n.data):n.data)}var Et={directory:`dirs`,file:`files`,symlink:`links`},Dt=e=>e.slice(0,e.lastIndexOf(`/`))||`/`,Ot=()=>({dirs:[],files:[],links:[]});function kt(e){let t=null,n=null,r={children:new Map,types:new Map},i=()=>n??=At(e,o),a=new WeakMap,o=e=>t!==null&&(e===t||e.startsWith(t+`/`)),s=t=>{let n=r.children.get(t);if(n!==void 0)return n;n={listing:Ot(),types:new Map};for(let r of e.readdir(t)){let{type:i}=e.lstat(ht(t,r));n.types.set(r,i),n.listing[Et[i]].push(r)}return r.children.set(t,n),n},c=e=>{if(typeof e!=`string`||!e.startsWith(`/`))return;if(e===`/`)return`directory`;let t=[],n=e;for(;o(Dt(n))&&!r.types.has(n);)t.push(n),n=Dt(n);let a=o(Dt(n))?r.types.get(n):i().types.get(n)??``;for(let e=t.length-1;e>=0;e--){let n=t[e];a=a===`directory`?s(Dt(n)).types.get(n.slice(n.lastIndexOf(`/`)+1))??``:``,r.types.set(n,a)}return a||void 0},l=t=>c(t)===void 0?void 0:e.lstat(t),u=t=>c(t)===`file`?e.readFile(t):void 0,d={vfs:e,writableAt:e=>{t=e,n=null,r={children:new Map,types:new Map}},reshaped:()=>{r={children:new Map,types:new Map}},isFile:e=>c(e)===`file`,isDir:e=>c(e)===`directory`,isLink:e=>c(e)===`symlink`,readLink:t=>c(t)===`symlink`?e.readlink(t):void 0,readFile:e=>{let t=u(e),n=t&&a.get(t);return t&&n===void 0&&a.set(t,n=_t(t,JSON.stringify(e))),n},readBytes:e=>u(e),fileSize:e=>{let t=l(e);return t===void 0||t.type===`directory`?void 0:t.size},sameFileContents:(e,t)=>vt(u(e),u(t)),exactBytes:u,isBytes:e=>c(e)===`file`,isEmptyFile:e=>{let t=l(e);return t?.type===`file`&&t.size===0},listDir:e=>{if(c(e)!==`directory`)throw Error(`not a directory: ${e}`);return o(e)?s(e).listing:i().children.get(e)},walkFiles:e=>bt(d,e)};return d}function At(e,t){let n=new Map([[`/`,Ot()]]),r=new Map([[`/`,`directory`]]),i=[`/`];for(let{path:a,type:o,depth:s}of e.walk(`/`)){if(s===0)continue;let e=i[s-1];o===`directory`&&(i[s]=a),!t(e)&&(o===`directory`&&n.set(a,Ot()),n.get(e)[Et[o]].push(a.slice(e.length+(e===`/`?0:1))),r.set(a,o))}return{children:n,types:r}}function jt(e){try{return Map.prototype.entries.call(e)}catch{return Object.entries(e??{})}}var Mt={file:[`data`],directory:[],symlink:[`target`]},Nt=new Set([`mode`,`mtime`]);function Pt(e,t){let n=JSON.stringify(t);if(typeof e==`string`)return{type:`file`,data:Ft(e,t)};if(ArrayBuffer.isView(e))return{type:`file`,data:Lt(e,t)};if(e instanceof ArrayBuffer)throw TypeError(`createTerminal: source ${n} is an ArrayBuffer; declare a file's bytes as a Uint8Array over it`);if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`createTerminal: source ${n} is ${e===null?`null`:Array.isArray(e)?`an array`:e===void 0?`undefined`:`a ${typeof e}`}; a source is text, a Uint8Array, or an object declaring its type`);if(e.format!==void 0)return{type:`file`,data:It(e,t)};let{type:r}=e;if(r===`link`)throw TypeError(`createTerminal: source ${n} declares type "link"; a symbolic link is declared as { type: 'symlink', target }`);if(r===`hardlink`)throw TypeError(`createTerminal: source ${n} declares a hard link, which is not supported: each file here has the one name`);if(r===void 0)throw TypeError(`createTerminal: source ${n} declares no type; an object declares { type: 'file' | 'directory' | 'symlink' } or { format: 'base64', data }`);if(!Object.hasOwn(Mt,r))throw TypeError(`createTerminal: source ${n} declares type ${JSON.stringify(r)}; the types are 'file', 'directory' and 'symlink'`);for(let t of Object.keys(e))if(!(t===`type`||Mt[r].includes(t)))throw TypeError(Nt.has(t)?`createTerminal: source ${n} declares \`${t}\`, which this terminal does not keep yet`:`createTerminal: source ${n} declares \`${t}\`, which a ${r} does not have`);if(r===`directory`)return{type:r};if(r===`symlink`){let{target:t}=e;if(typeof t!=`string`||t===``||t.includes(`\0`))throw TypeError(`createTerminal: link ${n} must declare a non-empty target without NUL characters`);return{type:r,target:t}}let{data:i=``}=e;if(typeof i==`string`)return{type:r,data:Ft(i,t)};if(ArrayBuffer.isView(i))return{type:r,data:Lt(i,t)};throw TypeError(`createTerminal: source ${n} declares \`data\` that is neither text nor a Uint8Array`)}function Ft(e,t){if(!e.isWellFormed())throw TypeError(`createTerminal: source ${JSON.stringify(t)} holds a lone surrogate, which no UTF-8 spells; declare the file's bytes as a Uint8Array`);return e}function It(e,n){let r=JSON.stringify(n);if(e.format!==`base64`)throw TypeError(`createTerminal: source ${r} declares format ${JSON.stringify(e.format)}; the only format is { format: 'base64', data }`);let i=Object.keys(e).find(e=>e!==`format`&&e!==`data`);if(i!==void 0)throw TypeError(`createTerminal: source ${r} declares \`${i}\`, which base64 contents do not have`);if(typeof e.data!=`string`)throw TypeError(`createTerminal: source ${r} must declare its base64 as a string in \`data\``);try{return t(e.data)}catch(e){throw e instanceof SyntaxError?TypeError(`createTerminal: source ${r} declares base64 that does not decode`,{cause:e}):e}}function Lt(e,t){if(e.BYTES_PER_ELEMENT!==1)throw TypeError(`createTerminal: source ${JSON.stringify(t)} is a ${e[Symbol.toStringTag]??`view`}; declare a file's bytes as a Uint8Array`);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Rt={__proto__:null,alpha:`A-Za-z`,digit:`0-9`,alnum:`0-9A-Za-z`,upper:`A-Z`,lower:`a-z`,space:` \\t\\n\\v\\f\\r`,blank:` \\t`,punct:"!-\\/:-@\\[-`{-~",xdigit:`0-9A-Fa-f`,cntrl:`\\x00-\\x1F\\x7F`,print:`\\x20-\\x7E`,graph:`\\x21-\\x7E`,word:`0-9A-Za-z_`},zt={__proto__:null};for(let[e,t]of Object.entries(Rt)){let n=RegExp(`[${t}]`,`u`),r=[];for(let e=0;e<128;e++){if(!n.test(String.fromCodePoint(e)))continue;let t=r.at(-1);t&&t[1]===e-1?t[1]=e:r.push([e,e])}zt[e]=r}var Bt=32767;function Vt(e,t){if(e>Bt||t!==void 0&&t>Bt)throw Error(`Regular expression too big`)}function Ht(e,t,n=!1){let r=t+1;e[r]===`^`&&r++;let i=!0,a=!1;for(;r<e.length;){let t=e[r];if(t===`]`&&!i)return r;if(i=!1,t===`[`&&`:.=`.includes(e[r+1]??``)){let t=e[r+1],i=e.indexOf(t+`]`,r+2);if(i===-1)throw Error(`Unmatched [, [^, [:, [., or [=`);if(t===`:`&&!(e.slice(r+2,i)in Rt))throw Error(`Invalid character class name`);if(t!==`:`&&n&&/\P{ASCII}/u.test(e.slice(r+2,i)))throw Error(`Invalid collation character`);r=i+2,a=t!==`.`;continue}if(t===`-`&&a&&r+1<e.length&&e[r+1]!==`]`)throw Error(`Invalid range end`);let o=t===`\\`&&r+1<e.length?2:1;if(e[r+o]===`-`&&e[r+o+1]!==void 0&&e[r+o+1]!==`]`){let t=r+o+1,i=e[t]===`[`?e[t+1]:void 0;if(i===`:`||i===`=`)throw Error(`Invalid range end`);let s=i===`.`?e.indexOf(`.]`,t+2):-1;if(i===`.`&&s===-1)throw Error(`Unmatched [, [^, [:, [., or [=`);let c=i===`.`?t+2:t+ +(e[t]===`\\`);if(n&&(e.codePointAt(r+o-1)>127||e.codePointAt(c)>127))throw Error(`Invalid collation character`);r=s===-1?t+(e[t]===`\\`?2:1):s+2,a=!0;continue}r+=o,a=!1}throw Error(`Unmatched [, [^, [:, [., or [=`)}function Ut(e,t,n={}){let r=/^\[:([a-z]+):\]/u.exec(e.slice(t));if(!r)return null;let i=n.classes?n.classes.body(r[1]):Rt[r[1]];if(i===void 0){if(n?.unknown!==`empty`)throw Error(`invalid character class \`[:${r[1]}:]\``);return{body:``,end:t+r[0].length}}return{body:i,end:t+r[0].length}}var Wt={alpha:`1t:p,6:p,1b:0,a:0,4:0,5:m,1:u,1:cp,4:b,e:4,7:0,1:0,2e:0,16:4,1:1,2:3,1:0,6:0,1:2,1:0,1:j,1:2a,1:3u,8:4l,1:11,2:0,6:14,13:d,1:0,1:1,1:1,1:0,8:q,4:3,t:a,5:1j,1:g,4:2t,1:7,4:7,4:f,2:0,g:1b,d:2s,e:16,9:1,4:0,5:n,2:i,j:o,7:a,5:n,1:5,h:15,a:b,3:6,6:23,1:f,1:2,4:e,2:9,1:i,1:7,2:1,2:l,1:6,1:0,3:3,3:7,2:1,2:1,1:0,8:0,4:1,1:4,2:b,a:0,4:2,1:5,4:1,2:l,1:6,1:1,1:1,1:1,4:4,4:1,2:1,4:0,7:3,1:0,7:f,b:2,1:8,1:2,1:l,1:6,1:1,1:4,3:8,1:2,1:1,3:0,f:3,2:9,9:3,4:2,1:7,2:1,2:l,1:6,1:1,1:4,3:7,2:1,2:1,9:1,4:1,1:4,2:9,1:0,g:1,1:5,3:2,1:3,3:1,1:0,1:1,3:1,3:2,3:b,4:4,3:2,1:2,3:0,6:0,e:9,g:c,1:2,1:m,1:f,3:7,1:2,1:2,8:1,1:2,2:0,2:3,2:9,g:3,1:7,1:2,1:m,1:9,1:4,3:7,1:2,1:2,8:1,6:1,1:3,2:9,1:2,c:c,1:2,1:14,2:7,1:2,1:2,1:0,5:3,7:4,2:9,a:5,1:2,1:h,3:n,1:8,1:0,2:6,8:5,1:0,1:7,6:9,2:1,d:1l,5:6,6:0,2:9,13:1,1:0,1:4,1:n,1:0,1:i,1:2,2:4,1:0,6:0,2:9,2:3,w:0,v:9,m:7,1:z,4:i,4:f,1:z,1v:1i,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w:2:-8:1,6ay:2:-34:1,6b0:1:-7:1,6bc:2:-3k:1,6be:2:-3i:1,6bg:1:-9:1,6jq:1:-5st:1,6ju:1:-6gv:1,6jv:1:-6di:1,6k2:1:s:1,6lc:g:g:1,6mb:1:1:1,792:q:q:1,8ow:1c:1c:1,8rk:1:1:1,8rm:1:-8af:1,8rn:1:-2xy:1,8ro:1:-89z:1,8rr:3:1:2,8rx:1:-8bg:1,8ry:1:-8al:1,8rz:1:-8bj:1,8s0:1:-8bi:1,8s2:1:1:1,8s5:1:1:1,8se:2:-8cf:1,8sg:1e:1:2,8vf:2:1:2,8vm:1:1:1,wu8:n:1:2,ww0:e:1:2,x0i:7:1:2,x0y:v:1:2,x2x:2:1:2,x31:1:-r9g:1,x32:5:1:2,x3f:1:1:1,x3h:1:-wmg:1,x3k:2:1:2,x3q:a:1:2,x4a:1:-wn8:1,x4b:1:-wnj:1,x4c:1:-wnf:1,x4d:1:-wn5:1,x4e:1:-wn8:1,x4g:1:-wlu:1,x4h:1:-wmi:1,x4i:1:-wlx:1,x4j:1:ps:1,x4k:8:1:2,x50:1:-1c:1,x51:1:-wn7:1,x52:1:-raw:1,x53:2:1:2,x5c:1:1:1,x5i:2:1:2,x6d:1:1:1,1ee9:q:w:1,1fcw:14:14:1,1fhs:10:14:1,1fn4:b:13:1,1fng:f:13:1,1fnw:7:13:1,1fo4:2:13:1,1h1c:1f:1s:1,1jfk:w:w:1,20cg:w:w:1,2olc:y:y:1`,N=`C.UTF-8`,qt=`only the C.UTF-8 locale is supported`,Jt=e=>typeof e==`string`&&/^C\.UTF-?8$/iu.test(e),Yt=new Set([`LANG`,`LC_ALL`,`LC_CTYPE`]);function Xt(e){if(e.locale===void 0||Jt(e.locale))return N;throw TypeError(`createTerminal: ${qt} (got ${JSON.stringify(e.locale)})`)}function Zt(e,t){if(!(Yt.has(e)?Jt(t)||e!==`LANG`&&t===``:Jt(t)||t===`C`||t===`POSIX`||t===``))throw new T(`feature`,e,`${e}: ${qt}`)}var Qt=e=>e===`C`||e===`POSIX`,$t=e=>Qt(e.locale);function en(e){let t=[],n=-1;for(let r of e.split(`,`)){let[e,i]=r.split(`:`).map(e=>parseInt(e,36)),a=n+1+e;t.push([a,a+i]),n=a+i}return t}function tn(e){let t=e.findIndex(([e])=>e>95);return[...e.slice(0,t),[95,95],...e.slice(t)]}function nn(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?String.fromCodePoint(e):e<128?`\\x`+e.toString(16).padStart(2,`0`):String.fromCodePoint(e)}var rn=e=>e.map(([e,t])=>e===t?nn(e):`${nn(e)}-${nn(t)}`).join(``);function an(e,t){let n=e.length-1,r=0;for(;r<=n;){let i=r+n>>1;if(t<e[i][0])n=i-1;else if(t>e[i][1])r=i+1;else return!0}return!1}var on=e=>e===`upper`||e===`lower`?`alpha`:e,sn=[181,305,383,453,456,459,498,837,962,976,977,981,982,1008,1009,1010,1013,7835,8126],cn=/[\u1C80-\u1C88]/u;function ln(e){let t=new Map;for(let n of e.split(`,`)){let[e,r,i,a]=n.split(`:`).map(e=>parseInt(e,36));for(let n=0;n<r;n++)t.set(e+n*a,e+n*a+i)}return t}var un=(e,t)=>({up:e,low:t,folds:new Map});function dn(){let e=new Map,t=new Map;for(let n=97;n<=122;n++)e.set(n,n-32),t.set(n-32,n);return un(e,t)}function fn(e){let t=[];for(let[n,r]of e.sort((e,t)=>e[0]-t[0])){let e=t.at(-1);e&&n<=e[1]+1?e[1]=Math.max(e[1],r):t.push([n,r])}return t}function pn(e){let t=`[${e}]`;return{"<":`(?<!${t})(?=${t})`,">":`(?<=${t})(?!${t})`,boundary:`(?:(?<!${t})(?=${t})|(?<=${t})(?!${t}))`,inside:`(?:(?<=${t})(?=${t})|(?<!${t})(?!${t}))`}}function mn(e,t,n,r,i){let a=new Map,o=new Map,s=null,c=e=>(o.has(e)||o.set(e,n(e)),o.get(e)),l=()=>s??=i(),u={name:e,multibyte:t,ranges:c,body(e){return a.has(e)||a.set(e,r(e,c(e))),a.get(e)},has(e,t){let n=c(e);return n!==void 0&&an(n,t)},assertions(){if(u.js)return u.js;let e=u.body(`space`);return u.js={__proto__:null,...pn(u.body(`word`)),word:`[${u.body(`word`)}]`,nonWord:`[^${u.body(`word`)}]`,space:`[${e}]`,nonSpace:`[^${e}]`},u.js},up:e=>l().up.get(e)??e,low:e=>l().low.get(e)??e,fold(e){let{folds:t}=l(),n=t.get(e);if(n===void 0){let r=u.up(e),i=u.low(r),a=new Set([e,r]);i!==r&&u.up(i)===r&&a.add(i);for(let e of sn)u.up(e)===r&&a.add(e);n=[...a].sort((e,t)=>e-t),t.set(e,n)}return n},foldRange(e,t){let{up:n}=l(),r=n.get(e)??e,i=n.get(t)??t;if(r>i)return null;let a=[],o=[];for(let[e,t]of n){let n=e>=r&&e<=i;n!==(t>=r&&t<=i)&&(n?a:o).push(e)}let s=[],c=r;for(let e of a.sort((e,t)=>e-t))e>c&&s.push([c,e-1]),c=e+1;return c<=i&&s.push([c,i]),fn([...s,...o.map(e=>[e,e])])}};return u}var hn=mn(`C`,!1,e=>zt[e],e=>Rt[e],dn),gn=mn(N,!0,e=>e===`word`?tn(en(Wt.alnum)):Object.hasOwn(Wt,e)?en(Wt[e]):void 0,(e,t)=>t===void 0?void 0:rn(t),()=>un(ln(Gt),ln(Kt)));function _n(e){if(e===N)return gn;if(Qt(e))return hn;throw new T(`feature`,`locale`,`matching in the ${e} locale is not supported`)}var vn=(1n<<63n)-1n,yn=-vn-1n,bn=(1n<<64n)-1n;function P(e,t,n,r){let i=k(e.cwd,n,e.fs,r);return F(e,t,n,i.error),i}function F(e,t,n,r){if(r!==`No such file or directory`||typeof n!=`string`)return;let i=n.startsWith(`/`),a=i?`/`:e.cwd,o=n.replace(/^\/+/u,``),s=new Set;for(let t of new Set([`/`,e.mount??`/`,e.home??`/`])){if(t===a)continue;let n=k(t,o,e.fs);n.error||s.add(n.path)}if(!s.size)return;let c=i?``:` from cwd ${JSON.stringify(e.cwd)}`,l=`${i?`absolute`:`relative`} path ${JSON.stringify(n)} was not found${c}`;e.notes?.add(`${t}: ${l}. ${xn(e,s)}`)}function xn(e,t){let n=[...t].sort(M),r=n.map(e=>JSON.stringify(e));if(n.length===1)return`A ${e.fs.isDir(n[0])?`dir`:`file`} exists at ${r[0]}.`;let i=n.every(t=>!e.fs.isDir(t)&&e.fs.isFile(t))&&n.some(t=>!e.fs.sameFileContents(n[0],t)),a=`${r.slice(0,-1).join(`, `)} and ${r.at(-1)}`;return`${n.length===2?`Both`:`All`} of ${a} exist${i?`, and they differ in contents`:``}.`}function Sn(){let e=new Set;return{add:t=>e.add(t),collect(t,n){for(let r of n)r.startsWith(`.`)&&e.add(O(t,r))},emit(t,n,r,i=``){On(t,{command:n,action:`omitted`,noun:[`hidden entry`,`hidden entries`],explanation:r,context:i,paths:e})}}}var Cn=/^(?<command>[^:]+): (?<operand>.+): (?<reason>no such file or directory|not a directory|is a directory)$/iu;function wn(e,t){for(let n of t.split(`
4
4
  `))Cn.test(n)&&e.discarded?.add(n)}function Tn(e,t,n){let r=new Map;for(let i of e){if(t.includes(i))continue;let{command:e,operand:a,reason:o}=Cn.exec(i).groups,s=/'([^']*)'$/u.exec(a)?.[1]??a;if([...n].some(e=>e.includes(JSON.stringify(s))))continue;let c=`${e}: ${o}`;r.has(c)||r.set(c,new Set),r.get(c).add(s)}return[...r].map(([e,t])=>`${e}: ${[...t].map(e=>JSON.stringify(e)).join(`, `)}.`)}function En(e,t){return e===`status`?null:{name:t,search:e===`search`}}function Dn(){let e=null,t=0;return{skip(n,r){!t&&n&&(e={...n,exitCode:r}),t++},flush(n){if(t&&e){let r=t===1?`the command`:`the ${t} commands`,i=e.search&&e.exitCode===1?` A search that selects no lines exits 1, which is not a failure.`:``;n.add(`${e.name}: exited ${e.exitCode}, so ${r} after && did not run.${i}`)}e=null,t=0}}}function On(e,t){kn(e,t,t.paths.size,t.paths)}function kn(e,{command:t,action:n,noun:r,explanation:i=``,context:a=``},o,s){if(!o)return;let c=o<10?`: `+[...s].sort(M).map(e=>JSON.stringify(e)).join(`, `):``,l=Array.isArray(r)?r[o===1?0:1]:r;e.add(`${t}: ${n} ${o} ${l}${a}${c}.${i?` `+i:``}`)}function An(e,t=`