@preventive/triage 1.0.0-alpha.77 → 1.0.0-alpha.78
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/common/line-diff.d.ts +2 -0
- package/common/line-diff.js +54 -0
- package/common/managed/dependency-routes.js +25 -0
- package/common/managed/routes.js +9 -12
- package/common/pretty-json.js +95 -0
- package/common/pretty-print.d.ts +1 -0
- package/common/pretty-print.js +6 -0
- package/common/whitespace-insensitive.js +19 -0
- package/out/activity.js +2 -2
- package/out/{chunk-OCE6KQGJ.js → chunk-26W3E5JE.js} +1 -1
- package/out/chunk-3S4YWYOM.js +1 -0
- package/out/{chunk-OQS2USZM.js → chunk-55YIWY3H.js} +1 -1
- package/out/{chunk-IVDE66N5.js → chunk-6VXEPL32.js} +1 -1
- package/out/{chunk-XVKDPU4D.js → chunk-6Y6PZ2BU.js} +1 -1
- package/out/{chunk-S5PPXPAT.js → chunk-ATT2QA77.js} +1 -1
- package/out/{chunk-2V6Q4ZOZ.js → chunk-B64CTMVU.js} +1 -1
- package/out/{chunk-EXQQ5VQJ.js → chunk-BEKYZCPX.js} +1 -1
- package/out/{chunk-SDLETN3Z.js → chunk-BGLN56X6.js} +1 -1
- package/out/{chunk-S2ZIKK45.js → chunk-EEJA7JBI.js} +1 -1
- package/out/{chunk-4IW3VD3H.js → chunk-FSU2PLJL.js} +1 -1
- package/out/{chunk-5DWOFBKS.js → chunk-I4YPK32I.js} +1 -1
- package/out/{chunk-I6UQQKAH.js → chunk-LVSLM7HB.js} +1 -1
- package/out/{chunk-T6EXDRB7.js → chunk-MKX6JODK.js} +1 -1
- package/out/{chunk-N7TD27UJ.js → chunk-NCJQDKPK.js} +1 -1
- package/out/chunk-O2NYWLX3.js +259 -0
- package/out/{chunk-NEFCZAIY.js → chunk-PKLVXUEI.js} +1 -1
- package/out/chunk-QBIUW5EF.js +2 -0
- package/out/{chunk-ADMVRLNP.js → chunk-QD3IBSF4.js} +1 -1
- package/out/{chunk-GSNSP3EF.js → chunk-RPNO56H2.js} +1 -1
- package/out/{chunk-QBFT2DDR.js → chunk-UR4WYMIP.js} +1 -1
- package/out/{chunk-UH6NZBSU.js → chunk-VHEXSGGP.js} +1 -1
- package/out/chunk-XLX6XXJF.js +1 -0
- package/out/{chunk-BXQCCW7F.js → chunk-XM4RLC4A.js} +1 -1
- package/out/client-managed-import.js +1 -1
- package/out/client-managed.js +2 -2
- package/out/compare.js +14 -14
- package/out/dialogs.js +22 -22
- package/out/graph.js +1 -1
- package/out/index.html +9 -7
- package/out/scan.js +2 -2
- package/out/terminal.js +7 -7
- package/out/view.css +1 -1
- package/out/view.js +8 -8
- package/package.json +8 -2
- package/server-managed/http.ts +13 -11
- package/server-managed/npm-delta-worker.js +58 -12
- package/server-managed/npm-delta.ts +52 -28
- package/server-managed/pretty-copies.ts +22 -0
- package/server-managed/pretty-format.d.ts +3 -0
- package/server-managed/pretty-format.js +13 -0
- package/server-managed/pretty-print.ts +34 -24
- package/server-managed/public-workspace.ts +1 -1
- package/out/chunk-G6YPDPW7.js +0 -2
- package/out/chunk-JCIIBLKR.js +0 -1
- package/out/chunk-WGQ7D5DB.js +0 -1
- package/out/chunk-Z6DL5PPO.js +0 -255
- /package/out/{chunk-Z667U2UJ.js → chunk-SZWPYLPC.js} +0 -0
package/out/terminal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as e,b as t,c as n,d as r,e as i,f as a,g as o,h as s,i as c,j as l,k as u,l as d,m as f,n as p,o as m,p as h,q as g,r as _,s as v,t as ee}from"./chunk-4YZOXAXR.js";import{a as te}from"./chunk-GO7FT4OD.js";import{a as ne,b as re}from"./chunk-Z667U2UJ.js";import{a as ie}from"./chunk-DEVAORP2.js";import{d as ae,e as oe}from"./chunk-ZQHLECTI.js";import{a as se,b as y,c as ce,d as le}from"./chunk-7YFJUT2P.js";import"./chunk-PXK7EU4V.js";import{a as ue,b as de,c as fe,d as pe,e as me,f as he}from"./chunk-PQPKHAI5.js";import{a as ge,d as _e}from"./chunk-PWFUOLZK.js";import"./chunk-C4Z6ZBXV.js";import{a as ve,c as ye,g as be,j as xe}from"./chunk-2XUEZHIP.js";import"./chunk-OOJM4CTU.js";var Se={__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`},Ce=/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}]/gu,we=e=>`${e}`.replaceAll(Ce,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`),Te=(e,t,n=`a string`)=>TypeError(`${e} must be ${n}, not ${t===null?`null`:typeof t}`),b=class extends Error{constructor(e,t){super(`${we(t)}: ${Se[e]??e}`),this.name=`VfsError`,this.code=e,this.path=t}},Ee=(e,t=`path`)=>{if(typeof e!=`string`)throw Te(t,e);return e};function De(e,t){let n=Math.min(Ee(e).length,Ee(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 Oe=e=>[...e.entries.keys()].sort(De),ke=(e,t)=>t===``?e:e===`/`?`/${t}`:`${e}/${t}`;function*Ae(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=Oe(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 je=new Set([`error`,`keep`,`replace`]);function Me(e,t,n=`'error', 'keep' or 'replace'`){if(typeof e!=`string`)throw Te(t,e,n);if(!je.has(e))throw RangeError(`${t} must be ${n}, not ${JSON.stringify(e)}`);return e}function Ne({clash:e=`error`,fold:t}){if(typeof e!=`function`&&Me(e,`clash`,`'error', 'keep', 'replace' or a function`),t!==void 0&&typeof t!=`function`)throw Te(`fold`,t,`a function`);return{fold:t,settle:typeof e==`function`?(t,n)=>Me(e(t,n),`what clash returns`):()=>e}}function Pe(e,t,n,{settle:r,fold:i},a){let o=Ie(t,a.copy),s=new Map([[o,{into:e}]]),c=[];for(let{name:e,leaf:t,parent:a,node:l}of Ae(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?Le(o,a,t,i):[t];if(d.length>0){let i=ke(n,e),a=r(i,d.map(e=>i.slice(0,-t.length)+e));if(a===`error`)throw new b(`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 Ae(n))a.number(e.node);for(let t of r)e.entries.delete(t);e.entries.set(t,n)}}function*Fe(e,t,n){for(let{name:r,node:i}of Ae(e))if(i.type===`directory`)for(let e of Map.groupBy(Oe(i),e=>n(e)).values())e.length>1&&(yield{path:ke(t,r),names:e})}function Ie(e,t){let n=new Map;for(let{node:r,parent:i,leaf:a}of Ae(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 Le(e,t,n,r){return r===void 0?[]:(e.keys??=Map.groupBy(Oe(e.into).filter(e=>!t.entries.has(e)),e=>r(e)),e.keys.get(r(n))??[])}var Re=40,ze=255,Be=4096,Ve=new Uint8Array,He={file:420,directory:493,symlink:511},Ue=new TextEncoder,We=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),Ge=e=>typeof e==`string`&&e.endsWith(`/`),Ke=class{#e;#t=0;constructor(){this.#e=this.#r()}#n(e,t,n=He[e],r=0){return{ino:++this.#t,type:e,mode:it(n),mtime:at(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 Te(`a path`,e);if(e.includes(`\0`))throw new b(`EINVAL`,e);if(e===``)throw new b(`ENOENT`,e);let i=e.endsWith(`/`),a=[qe(e)],o=[{name:``,node:this.#e}],s=Re,c,l,u,d;for(;;){for(;a.length>1&&Ye(a.at(-1));)a.pop();if(Ye(a.at(-1))){({name:u,node:d}=o.pop()),c=void 0;break}if(l=a.length>1,u=Ze(a.at(-1)),u===`.`)continue;if(u===`..`){o.length>1&&o.pop();continue}c=o.at(-1).node;let f=a.every(Ye);if(d=c.entries.get(u),r&&!f&&a.every(Je)){i=!0;break}if(d===void 0){if(f)break;if(!n||l)throw new b(`ENOENT`,e);tt(u,e),d=this.#r(),c.entries.set(u,d)}if(d.type===`symlink`&&(!f||t)){if(s--===0)throw new b(`ELOOP`,e);d.target.startsWith(`/`)&&(o.length=1),a.push(qe(d.target,!0))}else{if(f){if(i&&!r&&d.type!==`directory`)throw new b(`ENOTDIR`,e);break}if(d.type!==`directory`)throw new b(`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 b(`ENOENT`,e);return n}#o(e,t){return this.#a(e,t).node}#s(e,t,n){tt(e.name,n),e.dir.entries.set(e.name,t)}#c(e,t){if(e.dir!==void 0)return e.dir;throw new b(Xe(t,0)===t.length?`EBUSY`:`EINVAL`,t)}#l(e,t,n){try{return this.#i(e,{follow:n}).node?.type===t}catch(e){if(e instanceof b)return!1;throw e}}stat(e){return $e(this.#o(e,!0))}lstat(e){return $e(this.#o(e,Ge(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 Qe(this.#a(e))}readFile(e){let t=this.#o(e,!0);if(t.type===`directory`)throw new b(`EISDIR`,e);return t.bytes}readText(e){let t=this.readFile(e);try{return We.decode(t)}catch{throw new b(`EILSEQ`,e)}}readlink(e){let t=this.#o(e,Ge(e));if(t.type!==`symlink`)throw new b(`EINVAL`,e);return t.target}readdir(e){let t=this.#o(e,!0);if(t.type!==`directory`)throw new b(`ENOTDIR`,e);return Oe(t)}#u(e,t,n,r,i,a=!1){let o=a&&t instanceof Uint8Array?ot(t):st(t,e),s=this.#i(e,{follow:!Ge(e),create:!0});if(s.trailing||s.node?.type===`directory`)throw new b(`EISDIR`,e);s.node===void 0?this.#s(s,this.#n(`file`,{bytes:o},r,i),e):n(s.node,o)}writeFile(e,t,{mode:n,mtime:r,adopt:i=!1}={}){if(typeof i!=`boolean`)throw Te(`adopt`,i,`a boolean`);this.#u(e,t,(e,t)=>Object.assign(e,{bytes:t,grows:!1,...et(e,n,r)}),n,r,i)}appendFile(e,t){this.#u(e,t,lt)}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 b(`ENOENT`,e);this.#s(i,this.#r(n,r),e)}else if(!t||i.node.type!==`directory`)throw new b(`EEXIST`,e)}symlink(e,t,{mode:n,mtime:r}={}){if(typeof e!=`string`)throw Te(`a link target`,e);if(e===``||e.includes(`\0`))throw new b(`EINVAL`,t);tt(e,t,Be),this.#s(this.#d(t),this.#n(`symlink`,{target:e,size:nt(e)},n,r),t)}hardlink(e,t){let n=this.#o(e,Ge(e)),r=this.#d(t);if(n.type===`directory`)throw new b(`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 b(`EEXIST`,e);if(t.trailing)throw new b(`ENOENT`,e);return t}unlink(e){this.rm(e)}rmdir(e){let t=this.#a(e,!1);if(t.node.type!==`directory`)throw new b(`ENOTDIR`,e);let n=this.#c(t,e);if(t.node.entries.size>0)throw new b(`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 b(`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 b(`ENOENT`,e);tt(r.name,t);let o=n.node.type===`directory`;if(!o&&(n.trailing||r.trailing))throw new b(`ENOTDIR`,n.trailing?e:t);if(r.chain.some(e=>e.node===n.node))throw new b(`EINVAL`,t);if(n.chain.some(e=>e.node===r.node))throw new b(`ENOTEMPTY`,t);if(r.node!==n.node){if(r.node!==void 0&&r.node.type===`directory`!==o)throw new b(o?`ENOTDIR`:`EISDIR`,t);if(r.node?.type===`directory`&&r.node.entries.size>0)throw new b(`ENOTEMPTY`,t);i.entries.delete(n.name),a.entries.set(r.name,n.node)}}chmod(e,t){this.#o(e,!0).mode=it(t)}utimes(e,t){this.#o(e,!0).mtime=at(t)}mount(e,t=`/`,n={}){if(typeof e!=`object`||!e||!(#e in e))throw Te(`a tree`,e,`a Vfs`);let r=Ne(n),i=this.#a(t);if(i.node.type!==`directory`)throw new b(`ENOTDIR`,t);Pe(i.node,e.#e,Qe(i),r,{copy:ct,number:e=>{e.ino||=++this.#t}})}walk(e=`/`){let t=this.#a(e),n=Qe(t);return Ae(t.node,({name:e,node:t,depth:r})=>({path:ke(n,e),type:t.type,depth:r}))}collisions(e,t=`/`){if(typeof e!=`function`)throw Te(`fold`,e,`a function`);let n=this.#a(t);return Fe(n.node,Qe(n),e)}entries(e=`/`){let t=this.#a(e),n=t.node.type===`directory`?`.`:t.name,r=new Map;return Ae(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:Ve},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})}},qe=(e,t=!1)=>({text:e,at:Xe(e,0),dot:t&&e.endsWith(`/`)}),Je=e=>e.at===e.text.length,Ye=e=>Je(e)&&!e.dot,Xe=(e,t)=>{let n=t;for(;e[n]===`/`;)n++;return n};function Ze(e){if(Je(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=Xe(e.text,n),r}var Qe=({chain:e,name:t})=>`/${[...e.slice(1).map(e=>e.name),t].filter(Boolean).join(`/`)}`,$e=e=>({type:e.type,ino:e.ino,mode:e.mode,mtime:e.mtime,size:e.bytes?.length??e.size??0}),et=(e,t=e.mode,n=e.mtime)=>({mode:it(t),mtime:at(n)});function tt(e,t,n=ze){if(!e.isWellFormed())throw new b(`EILSEQ`,t);if(rt(e,n))throw new b(`ENAMETOOLONG`,t)}function nt(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 rt=(e,t)=>e.length>t||e.length*3>t&&nt(e)>t;function it(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 at(e){if(!Number.isSafeInteger(e))throw RangeError(`an mtime must be an integer of whole seconds, not ${e}`);return e}var ot=e=>e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.length);function st(e,t){if(typeof e==`string`){if(!e.isWellFormed())throw new b(`EILSEQ`,t);return Ue.encode(e)}if(e instanceof Uint8Array)return new Uint8Array(e);throw Te(`file contents`,e,`a string or a Uint8Array`)}function ct({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,o}function lt(e,t){let n=e.bytes,r=n.length+t.length,i=e.grows===!0&&n.byteOffset+r<=n.buffer.byteLength,a=i?new Uint8Array(n.buffer,n.byteOffset,r):new Uint8Array(Math.max(r,n.length*2)).subarray(0,r);i||a.set(n),a.set(t,n.length),e.bytes=a,e.grows=!0}var x=(e=``)=>({stdout:e,stderr:``,exitCode:0}),S=(e,t=1)=>({stdout:``,stderr:e.endsWith(`
|
|
1
|
+
import{a as e,b as t,c as n,d as r,e as i,f as a,g as o,h as s,i as c,j as l,k as u,l as d,m as f,n as p,o as m,p as h,q as g,r as _,s as v,t as ee}from"./chunk-4YZOXAXR.js";import{a as te}from"./chunk-GO7FT4OD.js";import{a as ne,b as re}from"./chunk-SZWPYLPC.js";import{a as ie}from"./chunk-DEVAORP2.js";import{d as ae,e as oe}from"./chunk-ZQHLECTI.js";import{a as se,b as ce,c as le,d as ue,e as de,f as fe}from"./chunk-PQPKHAI5.js";import{a as pe,b as y,c as me,d as he}from"./chunk-7YFJUT2P.js";import"./chunk-PXK7EU4V.js";import{a as ge,d as _e}from"./chunk-PWFUOLZK.js";import"./chunk-C4Z6ZBXV.js";import{a as ve,c as ye,g as be,j as xe}from"./chunk-2XUEZHIP.js";import"./chunk-OOJM4CTU.js";var Se={__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`},Ce=/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}]/gu,we=e=>`${e}`.replaceAll(Ce,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`),Te=(e,t,n=`a string`)=>TypeError(`${e} must be ${n}, not ${t===null?`null`:typeof t}`),b=class extends Error{constructor(e,t){super(`${we(t)}: ${Se[e]??e}`),this.name=`VfsError`,this.code=e,this.path=t}},Ee=(e,t=`path`)=>{if(typeof e!=`string`)throw Te(t,e);return e};function De(e,t){let n=Math.min(Ee(e).length,Ee(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 Oe=e=>[...e.entries.keys()].sort(De),ke=(e,t)=>t===``?e:e===`/`?`/${t}`:`${e}/${t}`;function*Ae(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=Oe(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 je=new Set([`error`,`keep`,`replace`]);function Me(e,t,n=`'error', 'keep' or 'replace'`){if(typeof e!=`string`)throw Te(t,e,n);if(!je.has(e))throw RangeError(`${t} must be ${n}, not ${JSON.stringify(e)}`);return e}function Ne({clash:e=`error`,fold:t}){if(typeof e!=`function`&&Me(e,`clash`,`'error', 'keep', 'replace' or a function`),t!==void 0&&typeof t!=`function`)throw Te(`fold`,t,`a function`);return{fold:t,settle:typeof e==`function`?(t,n)=>Me(e(t,n),`what clash returns`):()=>e}}function Pe(e,t,n,{settle:r,fold:i},a){let o=Ie(t,a.copy),s=new Map([[o,{into:e}]]),c=[];for(let{name:e,leaf:t,parent:a,node:l}of Ae(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?Le(o,a,t,i):[t];if(d.length>0){let i=ke(n,e),a=r(i,d.map(e=>i.slice(0,-t.length)+e));if(a===`error`)throw new b(`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 Ae(n))a.number(e.node);for(let t of r)e.entries.delete(t);e.entries.set(t,n)}}function*Fe(e,t,n){for(let{name:r,node:i}of Ae(e))if(i.type===`directory`)for(let e of Map.groupBy(Oe(i),e=>n(e)).values())e.length>1&&(yield{path:ke(t,r),names:e})}function Ie(e,t){let n=new Map;for(let{node:r,parent:i,leaf:a}of Ae(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 Le(e,t,n,r){return r===void 0?[]:(e.keys??=Map.groupBy(Oe(e.into).filter(e=>!t.entries.has(e)),e=>r(e)),e.keys.get(r(n))??[])}var Re=40,ze=255,Be=4096,Ve=new Uint8Array,He={file:420,directory:493,symlink:511},Ue=new TextEncoder,We=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),Ge=e=>typeof e==`string`&&e.endsWith(`/`),Ke=class{#e;#t=0;constructor(){this.#e=this.#r()}#n(e,t,n=He[e],r=0){return{ino:++this.#t,type:e,mode:it(n),mtime:at(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 Te(`a path`,e);if(e.includes(`\0`))throw new b(`EINVAL`,e);if(e===``)throw new b(`ENOENT`,e);let i=e.endsWith(`/`),a=[qe(e)],o=[{name:``,node:this.#e}],s=Re,c,l,u,d;for(;;){for(;a.length>1&&Ye(a.at(-1));)a.pop();if(Ye(a.at(-1))){({name:u,node:d}=o.pop()),c=void 0;break}if(l=a.length>1,u=Ze(a.at(-1)),u===`.`)continue;if(u===`..`){o.length>1&&o.pop();continue}c=o.at(-1).node;let f=a.every(Ye);if(d=c.entries.get(u),r&&!f&&a.every(Je)){i=!0;break}if(d===void 0){if(f)break;if(!n||l)throw new b(`ENOENT`,e);tt(u,e),d=this.#r(),c.entries.set(u,d)}if(d.type===`symlink`&&(!f||t)){if(s--===0)throw new b(`ELOOP`,e);d.target.startsWith(`/`)&&(o.length=1),a.push(qe(d.target,!0))}else{if(f){if(i&&!r&&d.type!==`directory`)throw new b(`ENOTDIR`,e);break}if(d.type!==`directory`)throw new b(`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 b(`ENOENT`,e);return n}#o(e,t){return this.#a(e,t).node}#s(e,t,n){tt(e.name,n),e.dir.entries.set(e.name,t)}#c(e,t){if(e.dir!==void 0)return e.dir;throw new b(Xe(t,0)===t.length?`EBUSY`:`EINVAL`,t)}#l(e,t,n){try{return this.#i(e,{follow:n}).node?.type===t}catch(e){if(e instanceof b)return!1;throw e}}stat(e){return $e(this.#o(e,!0))}lstat(e){return $e(this.#o(e,Ge(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 Qe(this.#a(e))}readFile(e){let t=this.#o(e,!0);if(t.type===`directory`)throw new b(`EISDIR`,e);return t.bytes}readText(e){let t=this.readFile(e);try{return We.decode(t)}catch{throw new b(`EILSEQ`,e)}}readlink(e){let t=this.#o(e,Ge(e));if(t.type!==`symlink`)throw new b(`EINVAL`,e);return t.target}readdir(e){let t=this.#o(e,!0);if(t.type!==`directory`)throw new b(`ENOTDIR`,e);return Oe(t)}#u(e,t,n,r,i,a=!1){let o=a&&t instanceof Uint8Array?ot(t):st(t,e),s=this.#i(e,{follow:!Ge(e),create:!0});if(s.trailing||s.node?.type===`directory`)throw new b(`EISDIR`,e);s.node===void 0?this.#s(s,this.#n(`file`,{bytes:o},r,i),e):n(s.node,o)}writeFile(e,t,{mode:n,mtime:r,adopt:i=!1}={}){if(typeof i!=`boolean`)throw Te(`adopt`,i,`a boolean`);this.#u(e,t,(e,t)=>Object.assign(e,{bytes:t,grows:!1,...et(e,n,r)}),n,r,i)}appendFile(e,t){this.#u(e,t,lt)}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 b(`ENOENT`,e);this.#s(i,this.#r(n,r),e)}else if(!t||i.node.type!==`directory`)throw new b(`EEXIST`,e)}symlink(e,t,{mode:n,mtime:r}={}){if(typeof e!=`string`)throw Te(`a link target`,e);if(e===``||e.includes(`\0`))throw new b(`EINVAL`,t);tt(e,t,Be),this.#s(this.#d(t),this.#n(`symlink`,{target:e,size:nt(e)},n,r),t)}hardlink(e,t){let n=this.#o(e,Ge(e)),r=this.#d(t);if(n.type===`directory`)throw new b(`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 b(`EEXIST`,e);if(t.trailing)throw new b(`ENOENT`,e);return t}unlink(e){this.rm(e)}rmdir(e){let t=this.#a(e,!1);if(t.node.type!==`directory`)throw new b(`ENOTDIR`,e);let n=this.#c(t,e);if(t.node.entries.size>0)throw new b(`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 b(`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 b(`ENOENT`,e);tt(r.name,t);let o=n.node.type===`directory`;if(!o&&(n.trailing||r.trailing))throw new b(`ENOTDIR`,n.trailing?e:t);if(r.chain.some(e=>e.node===n.node))throw new b(`EINVAL`,t);if(n.chain.some(e=>e.node===r.node))throw new b(`ENOTEMPTY`,t);if(r.node!==n.node){if(r.node!==void 0&&r.node.type===`directory`!==o)throw new b(o?`ENOTDIR`:`EISDIR`,t);if(r.node?.type===`directory`&&r.node.entries.size>0)throw new b(`ENOTEMPTY`,t);i.entries.delete(n.name),a.entries.set(r.name,n.node)}}chmod(e,t){this.#o(e,!0).mode=it(t)}utimes(e,t){this.#o(e,!0).mtime=at(t)}mount(e,t=`/`,n={}){if(typeof e!=`object`||!e||!(#e in e))throw Te(`a tree`,e,`a Vfs`);let r=Ne(n),i=this.#a(t);if(i.node.type!==`directory`)throw new b(`ENOTDIR`,t);Pe(i.node,e.#e,Qe(i),r,{copy:ct,number:e=>{e.ino||=++this.#t}})}walk(e=`/`){let t=this.#a(e),n=Qe(t);return Ae(t.node,({name:e,node:t,depth:r})=>({path:ke(n,e),type:t.type,depth:r}))}collisions(e,t=`/`){if(typeof e!=`function`)throw Te(`fold`,e,`a function`);let n=this.#a(t);return Fe(n.node,Qe(n),e)}entries(e=`/`){let t=this.#a(e),n=t.node.type===`directory`?`.`:t.name,r=new Map;return Ae(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:Ve},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})}},qe=(e,t=!1)=>({text:e,at:Xe(e,0),dot:t&&e.endsWith(`/`)}),Je=e=>e.at===e.text.length,Ye=e=>Je(e)&&!e.dot,Xe=(e,t)=>{let n=t;for(;e[n]===`/`;)n++;return n};function Ze(e){if(Je(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=Xe(e.text,n),r}var Qe=({chain:e,name:t})=>`/${[...e.slice(1).map(e=>e.name),t].filter(Boolean).join(`/`)}`,$e=e=>({type:e.type,ino:e.ino,mode:e.mode,mtime:e.mtime,size:e.bytes?.length??e.size??0}),et=(e,t=e.mode,n=e.mtime)=>({mode:it(t),mtime:at(n)});function tt(e,t,n=ze){if(!e.isWellFormed())throw new b(`EILSEQ`,t);if(rt(e,n))throw new b(`ENAMETOOLONG`,t)}function nt(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 rt=(e,t)=>e.length>t||e.length*3>t&&nt(e)>t;function it(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 at(e){if(!Number.isSafeInteger(e))throw RangeError(`an mtime must be an integer of whole seconds, not ${e}`);return e}var ot=e=>e.constructor===Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.length);function st(e,t){if(typeof e==`string`){if(!e.isWellFormed())throw new b(`EILSEQ`,t);return Ue.encode(e)}if(e instanceof Uint8Array)return new Uint8Array(e);throw Te(`file contents`,e,`a string or a Uint8Array`)}function ct({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,o}function lt(e,t){let n=e.bytes,r=n.length+t.length,i=e.grows===!0&&n.byteOffset+r<=n.buffer.byteLength,a=i?new Uint8Array(n.buffer,n.byteOffset,r):new Uint8Array(Math.max(r,n.length*2)).subarray(0,r);i||a.set(n),a.set(t,n.length),e.bytes=a,e.grows=!0}var x=(e=``)=>({stdout:e,stderr:``,exitCode:0}),S=(e,t=1)=>({stdout:``,stderr:e.endsWith(`
|
|
2
2
|
`)?e:e+`
|
|
3
|
-
`,exitCode:t}),ut=(e,t=1)=>S(`usage: ${e}`,t),dt=Symbol(`unsupported`);function C(e){if(e==null)return null;try{return e[dt]??null}catch{return null}}function w(e,t,n,r,i=1){return T(S(r,i),e,t,n,r)}function T(e,t,n,r,i){return Object.defineProperty(e,dt,{value:{kind:t,command:n,detail:r,message:i},enumerable:!1,configurable:!0}),e}function ft(e,t,n,r){let i=C(e);return i?w(i.kind,t,i.detail,n,r):S(n,r)}var E=class extends Error{constructor(e,t,n){super(n),this.name=`UnsupportedError`,T(this,e,null,t,n)}};function pt(){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 D(e){try{return se(e)}catch(e){throw e instanceof TypeError?new E(`feature`,`unpaired surrogate`,`unpaired UTF-16 surrogates cannot be encoded as UTF-8`):e}}var mt=e=>e<128?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0;function*ht(e){for(let t=0;t<e.length;){let n=St[e[t]],r=n===1?e[t]:n===0?-1:_t(e,t,n);yield r,t+=r<0?1:n}}var gt=[0,0,128,2048,65536];function _t(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<gt[n]||r>1114111||r>=55296&&r<=57343?-1:r}var vt=e=>le(e);function yt(e){let t;try{t=ce(e)}catch{}return t}function bt(e){let t=yt(e);if(t!==void 0)return t;let n=new Uint16Array(e.length),r=0;for(let t=0;t<e.length;){let i=St[e[t]],a=i===1?e[t]:i===0?-1:_t(e,t,i);a<0?n[r++]=56320+e[t++]:(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+=xt)i+=String.fromCharCode.apply(null,n.subarray(e,Math.min(r,e+xt)));return i}var xt=4096,St=Uint8Array.from({length:256},(e,t)=>mt(t)),Ct=`\\uDC80-\\uDCFF`,wt=RegExp(`[${Ct}]`,`u`),Tt=e=>e>=56448&&e<=56575;function Et(e){if(!wt.test(e))return D(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(Tt(i))t[n++]=i-56320;else if(i<2048)n=Dt(t,n,192|i>>6,i,1);else if(i<65536){if(i>=55296&&i<=57343)return D(e);n=Dt(t,n,224|i>>12,i,2)}else n=Dt(t,n,240|i>>18,i,3),r++}return t.slice(0,n)}function Dt(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 Ot(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 O(e){try{return ce(e)}catch{throw new E(`feature`,`partial UTF-8 byte sequence`,`byte output that is not valid UTF-8 cannot be represented by this string-based terminal`)}}function kt(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 k(e,t){return t.startsWith(`/`)?kt(t):kt(e+`/`+t)}var At=40,jt=(e,t)=>e.isLink?.(t)===!0;function A(e,t,n,{follow:r=!0}={}){let i=Mt(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 Mt(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=At,c=`/`;for(;a.length>0;){let e=a.shift();if(!n.isDir(c)){if(!i){let t=n.isFile(c)||jt(n,c)?`Not a directory`:`No such file or directory`;return{path:c,error:t,rest:[e,...a]}}e===`..`?c=j(c):e!==`.`&&(c=It(c,e));continue}if(e===`..`){c=j(c);continue}if(e!==`.`&&(c=It(c,e)),!jt(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)&&!jt(n,c);return{path:c,error:l?`No such file or directory`:null,rest:[]}}var Nt=(e,t,n,r=!0)=>n===``||n.includes(`\0`)?k(t,n):Mt(t,n,e,{follow:r,lenient:!0}).path;function Pt(e,t,n,r=A(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=Mt(e,t,n);return i.rest.length>0?i.error:n.isDir(j(i.path))?null:`Not a directory`}function j(e){let t=kt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return n<0?`.`:n===0?`/`:t.slice(0,n)}function Ft(e){let t=kt(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 It(e,t){return e===`/`?`/`+t:e+`/`+t}function Lt(e,t){return e===`/`?t.slice(1):t.slice(e.length+1)}function Rt(e,t,n=`reading them as text`){let r=yt(e);if(r===void 0)throw new E(`feature`,`binary file`,`${t} holds bytes that spell no text, and ${n} is not supported`);return r}var zt=(e,t)=>e!==void 0&&t!==void 0&&e.length===t.length&&e.every((e,n)=>e===t[n]);function*Bt(e,t,n=1/0,r=()=>!0){if(e.isFile(t)){yield{path:t,kind:`file`,depth:0};return}if(!e.isDir(t)){jt(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:It(t.path,n),kind:e,depth:t.depth+1})}}}function*Vt(e,t){for(let n of Bt(e,t))n.kind===`file`&&(yield n.path)}function Ht(e,t=`/`){let n=new Ke;try{n.mkdir(t,{recursive:!0})}catch(e){throw Gt(e,`mount ${JSON.stringify(t)}`)}let r={declared:new Map,made:new Set([`/`,t])};for(let[i,a]of Qt(e)){let e=String(i);if(e.includes(`\0`))throw TypeError(`createTerminal: source paths must not contain NUL characters`);let o=tn(a,e),s=kt(`/`+e);Ut(n,r,t===`/`?s:s===`/`?t:t+s,o,e)}return Xt(n)}function Ut(e,t,n,r,i){let a=t.declared.get(n);if(a!==void 0){if(a===r.type&&Kt(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`?Wt(i):Gt(e?.code===`EEXIST`?new b(`ENOTDIR`,o):e,`source ${JSON.stringify(i)}`)}if(e.realpath(o)!==o)throw Wt(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 Gt(e,`source ${JSON.stringify(i)}`)}}var Wt=e=>TypeError(`createTerminal: source ${JSON.stringify(e)} is declared through a symbolic link; declare it where the link leads`);function Gt(e,t){return e instanceof b?TypeError(`createTerminal: ${t}: ${e.message}`,{cause:e}):e}function Kt(e,t,n){return n.type===`directory`?!0:n.type===`symlink`?e.readlink(t)===n.target:zt(e.readFile(t),typeof n.data==`string`?D(n.data):n.data)}var qt={directory:`dirs`,file:`files`,symlink:`links`},Jt=e=>e.slice(0,e.lastIndexOf(`/`))||`/`,Yt=()=>({dirs:[],files:[],links:[]});function Xt(e){let t=null,n=null,r={children:new Map,types:new Map},i=()=>n??=Zt(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:Yt(),types:new Map};for(let r of e.readdir(t)){let{type:i}=e.lstat(It(t,r));n.types.set(r,i),n.listing[qt[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(Jt(n))&&!r.types.has(n);)t.push(n),n=Jt(n);let a=o(Jt(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(Jt(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=Rt(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)=>zt(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=>Vt(d,e)};return d}function Zt(e,t){let n=new Map([[`/`,Yt()]]),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,Yt()),n.get(e)[qt[o]].push(a.slice(e.length+(e===`/`?0:1))),r.set(a,o))}return{children:n,types:r}}function Qt(e){try{return Map.prototype.entries.call(e)}catch{return Object.entries(e??{})}}var $t={file:[`data`],directory:[],symlink:[`target`]},en=new Set([`mode`,`mtime`]);function tn(e,t){let n=JSON.stringify(t);if(typeof e==`string`)return{type:`file`,data:nn(e,t)};if(ArrayBuffer.isView(e))return{type:`file`,data:an(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:rn(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($t,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`||$t[r].includes(t)))throw TypeError(en.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:nn(i,t)};if(ArrayBuffer.isView(i))return{type:r,data:an(i,t)};throw TypeError(`createTerminal: source ${n} declares \`data\` that is neither text nor a Uint8Array`)}function nn(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 rn(e,t){let n=JSON.stringify(t);if(e.format!==`base64`)throw TypeError(`createTerminal: source ${n} declares format ${JSON.stringify(e.format)}; the only format is { format: 'base64', data }`);let r=Object.keys(e).find(e=>e!==`format`&&e!==`data`);if(r!==void 0)throw TypeError(`createTerminal: source ${n} declares \`${r}\`, which base64 contents do not have`);if(typeof e.data!=`string`)throw TypeError(`createTerminal: source ${n} must declare its base64 as a string in \`data\``);try{return oe(e.data)}catch(e){throw e instanceof SyntaxError?TypeError(`createTerminal: source ${n} declares base64 that does not decode`,{cause:e}):e}}function an(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 on={__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_`},sn={__proto__:null};for(let[e,t]of Object.entries(on)){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])}sn[e]=r}var cn=32767;function ln(e,t){if(e>cn||t!==void 0&&t>cn)throw Error(`Regular expression too big`)}function un(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 on))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}else r+=o,a=!1}throw Error(`Unmatched [, [^, [:, [., or [=`)}function dn(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]):on[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 fn={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,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,1jfk:w:w:1,20cg:w:w:1,2olc:y:y:1`,N=`C.UTF-8`,hn=`only the C.UTF-8 locale is supported`,gn=e=>typeof e==`string`&&/^C\.UTF-?8$/iu.test(e),_n=new Set([`LANG`,`LC_ALL`,`LC_CTYPE`]);function vn(e){if(e.locale===void 0||gn(e.locale))return N;throw TypeError(`createTerminal: ${hn} (got ${JSON.stringify(e.locale)})`)}function yn(e,t){if(!(_n.has(e)?gn(t)||e!==`LANG`&&t===``:gn(t)||t===`C`||t===`POSIX`||t===``))throw new E(`feature`,e,`${e}: ${hn}`)}var bn=e=>e===`C`||e===`POSIX`,xn=e=>bn(e.locale);function Sn(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 Cn(e){let t=e.findIndex(([e])=>e>95);return[...e.slice(0,t),[95,95],...e.slice(t)]}function wn(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 Tn=e=>e.map(([e,t])=>e===t?wn(e):`${wn(e)}-${wn(t)}`).join(``);function En(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 Dn=e=>e===`upper`||e===`lower`?`alpha`:e,On=[181,305,383,453,456,459,498,837,962,976,977,981,982,1008,1009,1010,1013,7835,8126],kn=/[\u1C80-\u1C88]/u;function An(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 jn=(e,t)=>({up:e,low:t,folds:new Map});function Mn(){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 jn(e,t)}function Nn(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 Fn(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&&En(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 On)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]),Nn([...s,...o.map(e=>[e,e])])}};return u}var In=Fn(`C`,!1,e=>sn[e],e=>on[e],Mn),Ln=Fn(N,!0,e=>e===`word`?Cn(Sn(fn.alnum)):Object.hasOwn(fn,e)?Sn(fn[e]):void 0,(e,t)=>t===void 0?void 0:Tn(t),()=>jn(An(pn),An(mn)));function Rn(e){if(e===N)return Ln;if(bn(e))return In;throw new E(`feature`,`locale`,`matching in the ${e} locale is not supported`)}var zn=(1n<<63n)-1n,Bn=-zn-1n,Vn=(1n<<64n)-1n;function P(e,t,n,r){let i=A(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=A(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}. ${Hn(e,s)}`)}function Hn(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 Un(){let e=new Set;return{add:t=>e.add(t),collect(t,n){for(let r of n)r.startsWith(`.`)&&e.add(k(t,r))},emit(t,n,r,i=``){Yn(t,{command:n,action:`omitted`,noun:[`hidden entry`,`hidden entries`],explanation:r,context:i,paths:e})}}}var Wn=/^(?<command>[^:]+): (?<operand>.+): (?<reason>no such file or directory|not a directory|is a directory)$/iu;function Gn(e,t){for(let n of t.split(`
|
|
3
|
+
`,exitCode:t}),ut=(e,t=1)=>S(`usage: ${e}`,t),dt=Symbol(`unsupported`);function C(e){if(e==null)return null;try{return e[dt]??null}catch{return null}}function w(e,t,n,r,i=1){return T(S(r,i),e,t,n,r)}function T(e,t,n,r,i){return Object.defineProperty(e,dt,{value:{kind:t,command:n,detail:r,message:i},enumerable:!1,configurable:!0}),e}function ft(e,t,n,r){let i=C(e);return i?w(i.kind,t,i.detail,n,r):S(n,r)}var E=class extends Error{constructor(e,t,n){super(n),this.name=`UnsupportedError`,T(this,e,null,t,n)}};function pt(){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 D(e){try{return pe(e)}catch(e){throw e instanceof TypeError?new E(`feature`,`unpaired surrogate`,`unpaired UTF-16 surrogates cannot be encoded as UTF-8`):e}}var mt=e=>e<128?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0;function*ht(e){for(let t=0;t<e.length;){let n=St[e[t]],r=n===1?e[t]:n===0?-1:_t(e,t,n);yield r,t+=r<0?1:n}}var gt=[0,0,128,2048,65536];function _t(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<gt[n]||r>1114111||r>=55296&&r<=57343?-1:r}var vt=e=>he(e);function yt(e){let t;try{t=me(e)}catch{}return t}function bt(e){let t=yt(e);if(t!==void 0)return t;let n=new Uint16Array(e.length),r=0;for(let t=0;t<e.length;){let i=St[e[t]],a=i===1?e[t]:i===0?-1:_t(e,t,i);a<0?n[r++]=56320+e[t++]:(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+=xt)i+=String.fromCharCode.apply(null,n.subarray(e,Math.min(r,e+xt)));return i}var xt=4096,St=Uint8Array.from({length:256},(e,t)=>mt(t)),Ct=`\\uDC80-\\uDCFF`,wt=RegExp(`[${Ct}]`,`u`),Tt=e=>e>=56448&&e<=56575;function Et(e){if(!wt.test(e))return D(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(Tt(i))t[n++]=i-56320;else if(i<2048)n=Dt(t,n,192|i>>6,i,1);else if(i<65536){if(i>=55296&&i<=57343)return D(e);n=Dt(t,n,224|i>>12,i,2)}else n=Dt(t,n,240|i>>18,i,3),r++}return t.slice(0,n)}function Dt(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 Ot(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 O(e){try{return me(e)}catch{throw new E(`feature`,`partial UTF-8 byte sequence`,`byte output that is not valid UTF-8 cannot be represented by this string-based terminal`)}}function kt(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 k(e,t){return t.startsWith(`/`)?kt(t):kt(e+`/`+t)}var At=40,jt=(e,t)=>e.isLink?.(t)===!0;function A(e,t,n,{follow:r=!0}={}){let i=Mt(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 Mt(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=At,c=`/`;for(;a.length>0;){let e=a.shift();if(!n.isDir(c)){if(!i){let t=n.isFile(c)||jt(n,c)?`Not a directory`:`No such file or directory`;return{path:c,error:t,rest:[e,...a]}}e===`..`?c=j(c):e!==`.`&&(c=It(c,e));continue}if(e===`..`){c=j(c);continue}if(e!==`.`&&(c=It(c,e)),!jt(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)&&!jt(n,c);return{path:c,error:l?`No such file or directory`:null,rest:[]}}var Nt=(e,t,n,r=!0)=>n===``||n.includes(`\0`)?k(t,n):Mt(t,n,e,{follow:r,lenient:!0}).path;function Pt(e,t,n,r=A(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=Mt(e,t,n);return i.rest.length>0?i.error:n.isDir(j(i.path))?null:`Not a directory`}function j(e){let t=kt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return n<0?`.`:n===0?`/`:t.slice(0,n)}function Ft(e){let t=kt(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 It(e,t){return e===`/`?`/`+t:e+`/`+t}function Lt(e,t){return e===`/`?t.slice(1):t.slice(e.length+1)}function Rt(e,t,n=`reading them as text`){let r=yt(e);if(r===void 0)throw new E(`feature`,`binary file`,`${t} holds bytes that spell no text, and ${n} is not supported`);return r}var zt=(e,t)=>e!==void 0&&t!==void 0&&e.length===t.length&&e.every((e,n)=>e===t[n]);function*Bt(e,t,n=1/0,r=()=>!0){if(e.isFile(t)){yield{path:t,kind:`file`,depth:0};return}if(!e.isDir(t)){jt(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:It(t.path,n),kind:e,depth:t.depth+1})}}}function*Vt(e,t){for(let n of Bt(e,t))n.kind===`file`&&(yield n.path)}function Ht(e,t=`/`){let n=new Ke;try{n.mkdir(t,{recursive:!0})}catch(e){throw Gt(e,`mount ${JSON.stringify(t)}`)}let r={declared:new Map,made:new Set([`/`,t])};for(let[i,a]of Qt(e)){let e=String(i);if(e.includes(`\0`))throw TypeError(`createTerminal: source paths must not contain NUL characters`);let o=tn(a,e),s=kt(`/`+e);Ut(n,r,t===`/`?s:s===`/`?t:t+s,o,e)}return Xt(n)}function Ut(e,t,n,r,i){let a=t.declared.get(n);if(a!==void 0){if(a===r.type&&Kt(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`?Wt(i):Gt(e?.code===`EEXIST`?new b(`ENOTDIR`,o):e,`source ${JSON.stringify(i)}`)}if(e.realpath(o)!==o)throw Wt(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 Gt(e,`source ${JSON.stringify(i)}`)}}var Wt=e=>TypeError(`createTerminal: source ${JSON.stringify(e)} is declared through a symbolic link; declare it where the link leads`);function Gt(e,t){return e instanceof b?TypeError(`createTerminal: ${t}: ${e.message}`,{cause:e}):e}function Kt(e,t,n){return n.type===`directory`?!0:n.type===`symlink`?e.readlink(t)===n.target:zt(e.readFile(t),typeof n.data==`string`?D(n.data):n.data)}var qt={directory:`dirs`,file:`files`,symlink:`links`},Jt=e=>e.slice(0,e.lastIndexOf(`/`))||`/`,Yt=()=>({dirs:[],files:[],links:[]});function Xt(e){let t=null,n=null,r={children:new Map,types:new Map},i=()=>n??=Zt(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:Yt(),types:new Map};for(let r of e.readdir(t)){let{type:i}=e.lstat(It(t,r));n.types.set(r,i),n.listing[qt[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(Jt(n))&&!r.types.has(n);)t.push(n),n=Jt(n);let a=o(Jt(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(Jt(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=Rt(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)=>zt(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=>Vt(d,e)};return d}function Zt(e,t){let n=new Map([[`/`,Yt()]]),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,Yt()),n.get(e)[qt[o]].push(a.slice(e.length+(e===`/`?0:1))),r.set(a,o))}return{children:n,types:r}}function Qt(e){try{return Map.prototype.entries.call(e)}catch{return Object.entries(e??{})}}var $t={file:[`data`],directory:[],symlink:[`target`]},en=new Set([`mode`,`mtime`]);function tn(e,t){let n=JSON.stringify(t);if(typeof e==`string`)return{type:`file`,data:nn(e,t)};if(ArrayBuffer.isView(e))return{type:`file`,data:an(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:rn(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($t,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`||$t[r].includes(t)))throw TypeError(en.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:nn(i,t)};if(ArrayBuffer.isView(i))return{type:r,data:an(i,t)};throw TypeError(`createTerminal: source ${n} declares \`data\` that is neither text nor a Uint8Array`)}function nn(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 rn(e,t){let n=JSON.stringify(t);if(e.format!==`base64`)throw TypeError(`createTerminal: source ${n} declares format ${JSON.stringify(e.format)}; the only format is { format: 'base64', data }`);let r=Object.keys(e).find(e=>e!==`format`&&e!==`data`);if(r!==void 0)throw TypeError(`createTerminal: source ${n} declares \`${r}\`, which base64 contents do not have`);if(typeof e.data!=`string`)throw TypeError(`createTerminal: source ${n} must declare its base64 as a string in \`data\``);try{return oe(e.data)}catch(e){throw e instanceof SyntaxError?TypeError(`createTerminal: source ${n} declares base64 that does not decode`,{cause:e}):e}}function an(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 on={__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_`},sn={__proto__:null};for(let[e,t]of Object.entries(on)){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])}sn[e]=r}var cn=32767;function ln(e,t){if(e>cn||t!==void 0&&t>cn)throw Error(`Regular expression too big`)}function un(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 on))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}else r+=o,a=!1}throw Error(`Unmatched [, [^, [:, [., or [=`)}function dn(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]):on[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 fn={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,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nf: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`,hn=`only the C.UTF-8 locale is supported`,gn=e=>typeof e==`string`&&/^C\.UTF-?8$/iu.test(e),_n=new Set([`LANG`,`LC_ALL`,`LC_CTYPE`]);function vn(e){if(e.locale===void 0||gn(e.locale))return N;throw TypeError(`createTerminal: ${hn} (got ${JSON.stringify(e.locale)})`)}function yn(e,t){if(!(_n.has(e)?gn(t)||e!==`LANG`&&t===``:gn(t)||t===`C`||t===`POSIX`||t===``))throw new E(`feature`,e,`${e}: ${hn}`)}var bn=e=>e===`C`||e===`POSIX`,xn=e=>bn(e.locale);function Sn(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 Cn(e){let t=e.findIndex(([e])=>e>95);return[...e.slice(0,t),[95,95],...e.slice(t)]}function wn(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 Tn=e=>e.map(([e,t])=>e===t?wn(e):`${wn(e)}-${wn(t)}`).join(``);function En(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 Dn=e=>e===`upper`||e===`lower`?`alpha`:e,On=[181,305,383,453,456,459,498,837,962,976,977,981,982,1008,1009,1010,1013,7835,8126],kn=/[\u1C80-\u1C88]/u;function An(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 jn=(e,t)=>({up:e,low:t,folds:new Map});function Mn(){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 jn(e,t)}function Nn(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 Fn(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&&En(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 On)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]),Nn([...s,...o.map(e=>[e,e])])}};return u}var In=Fn(`C`,!1,e=>sn[e],e=>on[e],Mn),Ln=Fn(N,!0,e=>e===`word`?Cn(Sn(fn.alnum)):Object.hasOwn(fn,e)?Sn(fn[e]):void 0,(e,t)=>t===void 0?void 0:Tn(t),()=>jn(An(pn),An(mn)));function Rn(e){if(e===N)return Ln;if(bn(e))return In;throw new E(`feature`,`locale`,`matching in the ${e} locale is not supported`)}var zn=(1n<<63n)-1n,Bn=-zn-1n,Vn=(1n<<64n)-1n;function P(e,t,n,r){let i=A(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=A(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}. ${Hn(e,s)}`)}function Hn(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 Un(){let e=new Set;return{add:t=>e.add(t),collect(t,n){for(let r of n)r.startsWith(`.`)&&e.add(k(t,r))},emit(t,n,r,i=``){Yn(t,{command:n,action:`omitted`,noun:[`hidden entry`,`hidden entries`],explanation:r,context:i,paths:e})}}}var Wn=/^(?<command>[^:]+): (?<operand>.+): (?<reason>no such file or directory|not a directory|is a directory)$/iu;function Gn(e,t){for(let n of t.split(`
|
|
4
4
|
`))Wn.test(n)&&e.discarded?.add(n)}function Kn(e,t,n){let r=new Map;for(let i of e){if(t.includes(i))continue;let{command:e,operand:a,reason:o}=Wn.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 qn(e,t){return e===`status`?null:{name:t,search:e===`search`}}function Jn(){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 Yn(e,t){Xn(e,t,t.paths.size,t.paths)}function Xn(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 Zn(e,t=`
|
|
5
5
|
`){if(e===``)return[];let n=e.split(t);return n.at(-1)===``&&n.pop(),n}function Qn(e){let t=0,n=typeof e==`string`?`
|
|
6
6
|
`:10;for(let r=e.indexOf(n);r>=0;r=e.indexOf(n,r+1))t++;return t}var $n=(e,t=`
|
|
@@ -50,7 +50,7 @@ ${r}`,status:2}}}return n.value===`inode`?{gap:{detail:`--sort=inode`,message:`-
|
|
|
50
50
|
tar: Error is not recoverable: exiting now
|
|
51
51
|
`,status:2}}:{value:{name:n>0?e.slice(0,n):null,id:a}}}function Wc(e){return e.mode===null?Lc(`You must specify one of the '-Acdtrux', '--delete' or '--test-label' options`):e.files>1?Lc(`Multiple archive files require '-M' option`):e.mode===`create`&&!e.items.some(e=>e.name!==void 0)?Lc(`Cowardly refusing to create an empty archive`):{mode:e.mode,items:e.items,verbose:e.flags.has(`utc`)?Math.max(e.verbose,2):e.verbose,archive:e.values.get(`file`)??`-`,gzip:e.flags.has(`gzip`),auto:e.flags.has(`auto-compress`),toStdout:e.flags.has(`to-stdout`),keepOld:e.flags.has(`keep-old-files`),numericOwner:e.flags.has(`numeric-owner`),utc:e.flags.has(`utc`),noWildcards:e.flags.has(`no-wildcards`),owner:e.values.get(`owner`),group:e.values.get(`group`),strip:e.values.get(`strip-components`)??0,blocking:e.values.get(`blocking-factor`)??20,format:e.values.get(`format`)??`gnu`}}var Gc={__proto__:null,gnu:`gnu`,ustar:`ustar`,pax:`pax`,posix:`pax`,oldgnu:null,v7:null},Kc=[`none`,`name`,`inode`];function qc(e,t){if(t.includes(e))return{value:e};let n=t.filter(t=>t.startsWith(e));return n.length===1?{value:n[0]}:{error:n.length?`ambiguous`:`invalid`}}var Jc=2n**63n-1n;function Yc(e){let t=/^[ \t\n\v\f\r]*([+-]?)(\d+)$/u.exec(e);if(!t)return null;let n=BigInt(t[1]+t[2]);return n>Jc||n<-Jc-1n?null:n<0n?-1:Number(n>BigInt(2**53-1)?2**53-1:n)}function Xc(e){let t={ctx:e,events:[],status:0,stopped:!1,gap:null,listTo:1,closedOut:e.closed?.out===!0,lostListing:null,say(e,n){t.events.push({fd:e,text:n})},list(e,n=!0){t.listTo===1&&t.closedOut?t.lostListing=n?`flushed`:`pending`:t.say(t.listTo,e+`
|
|
52
52
|
`)},bytes(e){t.events.push({fd:1,bytes:e})},warn(e){t.say(2,`tar: ${e}
|
|
53
|
-
`)},error(e){t.warn(e),t.status=2},fatal(e){t.warn(e),t.warn(`Error is not recoverable: exiting now`),t.status=2,t.stopped=!0},refuse(e,n,r){t.warn(r),t.gap={kind:e,detail:n,message:`tar: ${r}`},t.status=2,t.stopped=!0}};return t}function Zc(e){!e.stopped&&e.status===2&&e.warn(`Exiting with failure status due to previous errors`),!e.stopped&&e.lostListing!==null&&(e.warn(e.lostListing===`pending`?`stdout: write error: Bad file descriptor`:`stdout: write error`),e.status=2);let t=t=>e.events.filter(e=>e.fd===t&&e.text!==void 0).map(e=>e.text).join(``),n={stdout:t(1),stderr:t(2),exitCode:e.status,events:e.events};return e.gap===null?n:T(n,e.gap.kind,`tar`,e.gap.detail,e.gap.message)}var Qc=32768;async function $c(e,t,n){let r=zc(t,n);if(r.usage)return{stdout:``,stderr:r.usage.text,exitCode:r.usage.status};let i=Xc(n);return r.blocking>Qc?i.refuse(`option`,`--blocking-factor`,`${r.blocking}: a record of that many blocks is more than this terminal holds`):r.mode===`create`?await _c(r,i):await el(r,i),Zc(i)}async function el(e,t){let{ctx:n}=t,r=Date.now(),i=await uc(e,t);if(!i)return;let a=Uo(e.items),o=e.mode===`extract`;e.toStdout&&(t.listTo=2);let s=e.verbose>1?Io(n,e):null,c=new Map;for(let[l,u]of i.entries.entries()){for(let e of i.warnings[l])t.warn(e);let d=Eo(u),f=a.match(d);if(f===null)continue;let p=il(f,c,t);if(p===null)return;let m=o?Ec(d,e.strip):d;if(m!==null&&(e.verbose>0&&t.list(s?s(u):jo(d,n)),o&&e.toStdout?(u.type===`file`||u.type===`contiguous-file`)&&tl(u.data,m,t):o&&Oc(u,m,Dc(p,m),t,e.keepOld,e=>nl(m,e,s,t))&&rl(i.mtimes[l],m,r,t),t.stopped))return}if(i.child)return t.fatal(`Child returned status ${i.child}`);Wo(a,t,e.noWildcards)}function tl(e,t,n){n.closedOut?e.length>0&&n.error(`${H(t,n.ctx)}: Cannot write: Bad file descriptor`):n.bytes(e)}function nl(e,t,n,r){if(!n)return;let i=e.split(`/`).slice(0,-1);for(let e=i.length-t;e<i.length;e++)r.list(n.mkdir(i.slice(0,e+1).join(`/`)),!1)}function rl(e,t,n,r){e>=0&&e*1e3<=n||r.refuse(`feature`,`archive times`,`${H(t,r.ctx)}: extracting an entry dated before 1970 or in the future is not supported`)}function il(e,t,n){if(t.has(e))return t.get(e);let r=n.ctx.cwd;for(let t of e.dirs)if(r=Go(r,t,n),r===null)return null;return t.set(e,r),r}var al=67324752,ol=33639248,sl=101010256,cl=61440,ll={file:32768,directory:16384,symlink:40960},ul=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function dl(e){let t=new Uint8Array(e.reduce((e,[t])=>e+t,0)),n=ul(t),r=0;for(let[t,i]of e){if(!Number.isInteger(i)||i<0||i>=2**(8*t))throw RangeError(`${i} does not fit ${t} bytes`);t===1?n.setUint8(r,i):t===2?n.setUint16(r,i,!0):n.setUint32(r,i,!0),r+=t}return t}var fl=e=>c(e,`deflate-raw`),pl=1032;async function ml(e,t,n){if(t>e.length*pl)throw new i(`an entry declares more than its data can inflate to`,n);let r=await u(e,`deflate-raw`,new Uint8Array(t)).catch(e=>{throw new i(e.limited?`an entry inflates to more than its declared size`:`an entry does not inflate`,n)});if(r.length!==t)throw new i(`an entry inflates to less than its declared size`,n);return r}function hl(e){let t=new Date(e*1e3),n=t.getUTCFullYear();return n<1980||n>2107?null:{time:t.getUTCHours()<<11|t.getUTCMinutes()<<5|t.getUTCSeconds()>>1,date:n-1980<<9|t.getUTCMonth()+1<<5|t.getUTCDate()}}function gl(e,t,n){let r=Date.UTC(1980+(e>>9),(e>>5&15)-1,e&31,t>>11,t>>5&63,(t&31)*2)/1e3,a=hl(r);if(a===null||a.time!==t||a.date!==e)throw new i(`an entry has an invalid DOS time`,n);return r}var _l=new Set([`deflate`,`store`]),vl=788,yl=2048,bl=315532800,xl=2147483647,Sl=65534,Cl=4294967294;function wl(e,t,n,r){if(!Number.isSafeInteger(e)||e<n||e>r)throw new i(`${t} ${String(e)} is not an integer from ${n} to ${r}`);return e}function Tl(e,t){let n=h(e,ll),{name:r,type:i,linkname:a}=n;return{...n,mode:wl(e.mode??p[i],`mode`,0,4095),mtime:wl(e.mtime??bl,`mtime`,bl,xl),...g(r,i,a,t)}}var El=e=>dl([[2,21589],[2,5],[1,1],[4,e]]);async function Dl(e,{method:n=`deflate`,symlinksAbove:a}={}){if(!_l.has(n))throw new i(`method ${d(String(n))} is not deflate or store`);let o=new _(!0,a),s=[],c=[],l=0,u=0;for(let r of e){let e=Tl(r,o.above);if(o.add(e),++u>Sl)throw new i(`more than ${Sl} entries would need zip64`);let a=se(m(e)),f=e.type===`symlink`?se(e.linkname):e.data;if(f.length>Cl||l>Cl)throw new i(`${d(e.name)} would need zip64`);let p=n===`deflate`&&e.type===`file`&&f.length?await fl(f):f,h=p.length<f.length?p:f,g=h===f?0:8,{time:_,date:v}=hl(e.mtime),ee=El(e.mtime),ne=[[2,g===8?20:10],[2,t(a)?0:yl],[2,g],[2,_],[2,v],[4,te(f)],[4,h.length],[4,f.length],[2,a.length],[2,ee.length]];s.push(dl([[4,al],...ne]),a,ee,h);let re=(ll[e.type]|e.mode)*65536+(e.type===`directory`?16:0);c.push(dl([[4,ol],[2,vl],...ne,[2,0],[2,0],[2,0],[4,re],[4,l]]),a,ee),l+=30+a.length+ee.length+h.length}let f=r(c);if(l+f.length>Cl)throw new i(`the archive would need zip64`);let p=dl([[4,sl],[2,0],[2,0],[2,u],[2,u],[4,f.length],[4,l],[2,0]]);return r([...s,f,p])}var Ol=134695760,kl=117853008,Al=1,jl=21589,Ml=28789,Nl=1,Pl=8,Fl=16;function Il(e,t=0){let n=ul(e),r=(n,r)=>{if(n<t||n+r>t+e.length)throw new i(`the archive is truncated`,n)};return{u16:e=>(r(e,2),n.getUint16(e-t,!0)),u32:e=>(r(e,4),n.getUint32(e-t,!0)),range:(n,i)=>(r(n,i),e.subarray(n-t,n-t+i))}}function Ll(e){if(e instanceof Uint8Array){let t=Il(e);return{size:e.length,read:(t,n)=>e.subarray(t,n),window:()=>t}}if(e instanceof Blob){let t=async(t,n)=>new Uint8Array(await e.slice(t,n).arrayBuffer());return{size:e.size,read:t,window:async(n,r)=>Il(await t(n,Math.min(r,e.size)),n)}}throw new i(`the archive is not a Uint8Array or a Blob`)}var Rl=65536;function zl(e){let t,n=0,r=0;return async(i,a,o=1/0)=>{let s=Math.min(i+a,e.size);return(t===void 0||i<n||s>r)&&(n=i,r=Math.max(s,Math.min(i+Rl,o,e.size)),t=await e.window(n,r)),t}}async function Bl(e){let{size:t}=e,n=await e.window(Math.max(0,t-22-65535-20),t);for(let e=t-22;e>=Math.max(0,t-22-65535);e--)if(n.u32(e)===sl&&e+22+n.u16(e+20)===t){if(e>=20&&n.u32(e-20)===kl)throw new i(`zip64 is not supported`,e-20);return{end:e,r:n}}throw new i(`no end of central directory record`)}function Vl(e,t){let n=[],r=Il(e);for(let a=0;a<e.length;){let o=r.u16(a),s=r.u16(a+2);if(a+4+s>e.length)throw new i(`an extra field runs past its room`,t);if(o===Al)throw new i(`zip64 is not supported`,t);if(o===Ml)throw new i(`an entry carries a second name in a Unicode path extra field`,t);n.push({id:o,data:e.slice(a+4,a+4+s)}),a+=4+s}return n}async function Hl(e,t){let n=await e(t,46);if(n.u32(t)!==ol)throw new i(`no central directory entry where one is counted`,t);let r=n.u16(t+28),a=n.u16(t+30);n=await e(t,46+r+a);let o={at:t,madeBy:n.u16(t+4),version:n.u16(t+6),flags:n.u16(t+8),method:n.u16(t+10),time:n.u16(t+12),date:n.u16(t+14),crc:n.u32(t+16),csize:n.u32(t+20),usize:n.u32(t+24),internal:n.u16(t+36),attributes:n.u32(t+38),offset:n.u32(t+42),name:n.range(t+46,r).slice(),next:t+46+r+a+n.u16(t+32)};if(n.u16(t+34)!==0)throw new i(`the archive spans several disks`,t);if(o.flags&Nl)throw new i(`an entry is encrypted`,t);if(o.method!==0&&o.method!==8)throw new i(`compression method ${o.method} is not stored or deflate`,t);if(o.csize===4294967295||o.usize===4294967295||o.offset===4294967295)throw new i(`zip64 is not supported`,t);o.mtime=gl(o.date,o.time,t),o.extra=Vl(n.range(t+46+r,a),t);let s=o.extra.find(e=>e.id===jl)?.data;if(s!==void 0&&s[0]&1){if(s.length<5)throw new i(`an extended timestamp is cut short`,t);o.mtime=ul(s).getInt32(1,!0)}return o}async function Ul(e,t){let{offset:r,boundary:a,stop:o}=t,s=await e(r,30,o);if(s.u32(r)!==al)throw new i(`no local header where the central directory points`,r);let c=s.u16(r+26),l=s.u16(r+28);if(s=await e(r,30+c+l,o),!n(s.range(r+30,c),t.name))throw new i(`the local header names a different entry`,r);for(let[e,n,a]of[[4,`version`,`a different version`],[6,`flags`,`different flags`],[8,`method`,`a different compression method`],[10,`time`,`a different time`],[12,`date`,`a different date`]])if(s.u16(r+e)!==t[n])throw new i(`the local header has ${a}`,r);Vl(s.range(r+30+c,l),r);let u=t.flags&Pl,d=(e,t)=>s.u32(r+e)===t||u&&s.u32(r+e)===0;if(!d(14,t.crc)||!d(18,t.csize)||!d(22,t.usize))throw new i(`the local header disagrees with the central directory`,r);t.dataAt=r+30+c+l;let f=t.dataAt+t.csize;if(u){let n=await e(f,16,a),r=e=>n.u32(e)===t.crc&&n.u32(e+4)===t.csize&&n.u32(e+8)===t.usize,o=n.u32(f)===Ol&&r(f+4);if(r(f)&&!(o&&f+16===a))f+=12;else if(o)f+=16;else throw new i(`the data descriptor disagrees with the central directory`,f)}return f}function Wl(e,t,n){let r=n&cl;if(t.endsWith(`/`)){if(r!==0&&r!==ll.directory)throw new i(`${d(t)} is a directory by its name but not by its mode`,e.at);return`directory`}if(r===ll.directory)throw new i(`${d(t)} is a directory by its mode but not by its name`,e.at);if(e.attributes&Fl)throw new i(`${d(t)} is a directory by its attributes but not by its name`,e.at);if(r===ll.symlink)return`symlink`;if(r===0||r===ll.file)return`file`;throw new i(`the mode of ${d(t)} (${n.toString(8)}) is not one this package reads`,e.at)}async function Gl(t,n,r){let{at:o,method:s,csize:c,usize:l}=n,u=f(n.name,`entry name`,o),m=n.madeBy>>8==3?n.attributes>>>16:0,h=Wl(n,u,m);if(h===`directory`&&l!==0)throw new i(`directory ${d(u)} has data`,o);if(s===0&&c!==l)throw new i(`a stored entry has two sizes`,o);let _=await t.read(n.dataAt,n.dataAt+c);if(_.length!==c)throw new i(`the archive is truncated`,n.dataAt);let v=s===8?await ml(_,l,o):_;if(te(v)!==n.crc)throw new i(`the data does not match its CRC-32`,o);let ee=h===`symlink`?f(v,`symlink target`,o):``,ne={...a(()=>g(u,h,ee,r.above),o),type:h,mode:m===0?p[h]:m&4095,mtime:n.mtime,data:h===`file`?v:e,storedName:u,system:n.madeBy>>8,version:n.version,flags:n.flags,internalAttributes:n.internal,attributes:n.attributes,extra:n.extra};return a(()=>r.add(ne),o),ne}async function*Kl(e,{limit:t=1/0,symlinksAbove:n}={},r=!1){if(t!==1/0&&!(Number.isSafeInteger(t)&&t>=0))throw new i(`limit ${String(t)} is not a whole number of bytes`);let a=new _(r,n),{end:o,r:s}=await Bl(e),c=s.u16(o+8);if(s.u16(o+4)!==0||s.u16(o+6)!==0||c!==s.u16(o+10))throw new i(`the archive spans several disks`,o);let l=s.u32(o+12),u=s.u32(o+16);if(c===65535||l===4294967295||u===4294967295)throw new i(`zip64 is not supported`,o);if(u+l!==o)throw new i(`the central directory does not end at the end record`,o);let d=zl(e),f=[],p=u,m=0;for(let e=0;e<c;e++){let e=await Hl(d,p);if(m+=e.usize,m>t)throw new i(`the entries come to more than ${t} bytes`,p,{limited:!0});f.push(e),p=e.next}if(p!==o)throw new i(`the central directory does not hold what the end record counts`,p);let h=f.toSorted((e,t)=>e.offset-t.offset);for(let e=h.length-1;e>=0;e--){let[t,n]=[h[e],h[e+1]];t.boundary=n?.offset??u,t.stop=t.csize===0&&n?n.stop:t.boundary-t.csize}let g=zl(e),v=0;for(let e of h){if(e.offset!==v)throw new i(e.offset>v?`bytes belong to no entry`:`two entries overlap`,v);v=await Ul(g,e)}if(v!==u)throw new i(`bytes belong to no entry`,v);for(let t of f)yield await Gl(e,t,a)}async function ql(e,t){if(!(e instanceof Uint8Array))throw new i(`the archive is not a Uint8Array`);return await Array.fromAsync(Kl(Ll(e),t,!0))}var Jl=(e,t)=>e===null?t:`${e.endsWith(`/`)?e.slice(0,-1):e}/${t}`;function Yl(e,t,n){let r=eu(t.exdir,n);if(r===null)return!1;let i=[],a=Xl(e,r,i,t,n);for(let e of i)Zl(e,n);return a}function Xl(e,t,n,r,i){let{ctx:a}=i;for(let o of e){let e=o.type===`directory`;if(r.junk&&e)continue;let s=r.junk?Ft(o.name):o.name,c=k(t,s),l=Jl(r.exdir,e?`${s}/`:s),u=Ql(c,a)?tu(j(c),a):`read-only`;if(u===`read-only`)return $l(l,i);if(u!==null)return i.refuse(`feature`,`name taken`,`${l}: extracting under a name that is not a directory is not supported`),!1;if(e){if(!nu(c,l,i))return!1;continue}if(i.quiet===0)return i.refuse(`feature`,`extraction listing`,`whether each file was stored or deflated is not known here, and an extraction that is not quiet names it (-q extracts without it)`),!1;let d=ru(c,l,r,i);if(d===null)return!1;if(d===`skip`)continue;let f=a.fs.openWritable(`/`,c);if(!f)return $l(l,i);let p=o.type===`symlink`;f.writeBytes(p?D(o.linkname):o.data),p&&n.push({path:c,shown:l,target:o.linkname})}return!0}function Zl({path:e,shown:t,target:n},r){let{fs:i}=r.ctx,a=A(`/`,e,i),o=a.path!==null&&i.isFile(a.path)?or(i,a.path):null,s=D(n);o===null||o.length!==s.length||o.some((e,t)=>e!==s[t])?r.say(2,`warning: deferred symlink (${t}) failed:
|
|
53
|
+
`)},error(e){t.warn(e),t.status=2},fatal(e){t.warn(e),t.warn(`Error is not recoverable: exiting now`),t.status=2,t.stopped=!0},refuse(e,n,r){t.warn(r),t.gap={kind:e,detail:n,message:`tar: ${r}`},t.status=2,t.stopped=!0}};return t}function Zc(e){!e.stopped&&e.status===2&&e.warn(`Exiting with failure status due to previous errors`),!e.stopped&&e.lostListing!==null&&(e.warn(e.lostListing===`pending`?`stdout: write error: Bad file descriptor`:`stdout: write error`),e.status=2);let t=t=>e.events.filter(e=>e.fd===t&&e.text!==void 0).map(e=>e.text).join(``),n={stdout:t(1),stderr:t(2),exitCode:e.status,events:e.events};return e.gap===null?n:T(n,e.gap.kind,`tar`,e.gap.detail,e.gap.message)}var Qc=32768;async function $c(e,t,n){let r=zc(t,n);if(r.usage)return{stdout:``,stderr:r.usage.text,exitCode:r.usage.status};let i=Xc(n);return r.blocking>Qc?i.refuse(`option`,`--blocking-factor`,`${r.blocking}: a record of that many blocks is more than this terminal holds`):r.mode===`create`?await _c(r,i):await el(r,i),Zc(i)}async function el(e,t){let{ctx:n}=t,r=Date.now(),i=await uc(e,t);if(!i)return;let a=Uo(e.items),o=e.mode===`extract`;e.toStdout&&(t.listTo=2);let s=e.verbose>1?Io(n,e):null,c=new Map;for(let[l,u]of i.entries.entries()){for(let e of i.warnings[l])t.warn(e);let d=Eo(u),f=a.match(d);if(f===null)continue;let p=il(f,c,t);if(p===null)return;let m=o?Ec(d,e.strip):d;if(m!==null&&(e.verbose>0&&t.list(s?s(u):jo(d,n)),o&&e.toStdout?(u.type===`file`||u.type===`contiguous-file`)&&tl(u.data,m,t):o&&Oc(u,m,Dc(p,m),t,e.keepOld,e=>nl(m,e,s,t))&&rl(i.mtimes[l],m,r,t),t.stopped))return}if(i.child)return t.fatal(`Child returned status ${i.child}`);Wo(a,t,e.noWildcards)}function tl(e,t,n){n.closedOut?e.length>0&&n.error(`${H(t,n.ctx)}: Cannot write: Bad file descriptor`):n.bytes(e)}function nl(e,t,n,r){if(!n)return;let i=e.split(`/`).slice(0,-1);for(let e=i.length-t;e<i.length;e++)r.list(n.mkdir(i.slice(0,e+1).join(`/`)),!1)}function rl(e,t,n,r){e>=0&&e*1e3<=n||r.refuse(`feature`,`archive times`,`${H(t,r.ctx)}: extracting an entry dated before 1970 or in the future is not supported`)}function il(e,t,n){if(t.has(e))return t.get(e);let r=n.ctx.cwd;for(let t of e.dirs)if(r=Go(r,t,n),r===null)return null;return t.set(e,r),r}var al=67324752,ol=33639248,sl=101010256,cl=61440,ll={file:32768,directory:16384,symlink:40960},ul=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function dl(e){let t=new Uint8Array(e.reduce((e,[t])=>e+t,0)),n=ul(t),r=0;for(let[t,i]of e){if(!Number.isInteger(i)||i<0||i>=2**(8*t))throw RangeError(`${i} does not fit ${t} bytes`);t===1?n.setUint8(r,i):t===2?n.setUint16(r,i,!0):n.setUint32(r,i,!0),r+=t}return t}var fl=e=>c(e,`deflate-raw`),pl=1032;async function ml(e,t,n){if(t>e.length*pl)throw new i(`an entry declares more than its data can inflate to`,n);let r=await u(e,`deflate-raw`,new Uint8Array(t)).catch(e=>{throw new i(e.limited?`an entry inflates to more than its declared size`:`an entry does not inflate`,n)});if(r.length!==t)throw new i(`an entry inflates to less than its declared size`,n);return r}function hl(e){let t=new Date(e*1e3),n=t.getUTCFullYear();return n<1980||n>2107?null:{time:t.getUTCHours()<<11|t.getUTCMinutes()<<5|t.getUTCSeconds()>>1,date:n-1980<<9|t.getUTCMonth()+1<<5|t.getUTCDate()}}function gl(e,t,n){let r=Date.UTC(1980+(e>>9),(e>>5&15)-1,e&31,t>>11,t>>5&63,(t&31)*2)/1e3,a=hl(r);if(a===null||a.time!==t||a.date!==e)throw new i(`an entry has an invalid DOS time`,n);return r}var _l=new Set([`deflate`,`store`]),vl=788,yl=2048,bl=315532800,xl=2147483647,Sl=65534,Cl=4294967294;function wl(e,t,n,r){if(!Number.isSafeInteger(e)||e<n||e>r)throw new i(`${t} ${String(e)} is not an integer from ${n} to ${r}`);return e}function Tl(e,t){let n=h(e,ll),{name:r,type:i,linkname:a}=n;return{...n,mode:wl(e.mode??p[i],`mode`,0,4095),mtime:wl(e.mtime??bl,`mtime`,bl,xl),...g(r,i,a,t)}}var El=e=>dl([[2,21589],[2,5],[1,1],[4,e]]);async function Dl(e,{method:n=`deflate`,symlinksAbove:a}={}){if(!_l.has(n))throw new i(`method ${d(String(n))} is not deflate or store`);let o=new _(!0,a),s=[],c=[],l=0,u=0;for(let r of e){let e=Tl(r,o.above);if(o.add(e),++u>Sl)throw new i(`more than ${Sl} entries would need zip64`);let a=pe(m(e)),f=e.type===`symlink`?pe(e.linkname):e.data;if(f.length>Cl||l>Cl)throw new i(`${d(e.name)} would need zip64`);let p=n===`deflate`&&e.type===`file`&&f.length?await fl(f):f,h=p.length<f.length?p:f,g=h===f?0:8,{time:_,date:v}=hl(e.mtime),ee=El(e.mtime),ne=[[2,g===8?20:10],[2,t(a)?0:yl],[2,g],[2,_],[2,v],[4,te(f)],[4,h.length],[4,f.length],[2,a.length],[2,ee.length]];s.push(dl([[4,al],...ne]),a,ee,h);let re=(ll[e.type]|e.mode)*65536+(e.type===`directory`?16:0);c.push(dl([[4,ol],[2,vl],...ne,[2,0],[2,0],[2,0],[4,re],[4,l]]),a,ee),l+=30+a.length+ee.length+h.length}let f=r(c);if(l+f.length>Cl)throw new i(`the archive would need zip64`);let p=dl([[4,sl],[2,0],[2,0],[2,u],[2,u],[4,f.length],[4,l],[2,0]]);return r([...s,f,p])}var Ol=134695760,kl=117853008,Al=1,jl=21589,Ml=28789,Nl=1,Pl=8,Fl=16;function Il(e,t=0){let n=ul(e),r=(n,r)=>{if(n<t||n+r>t+e.length)throw new i(`the archive is truncated`,n)};return{u16:e=>(r(e,2),n.getUint16(e-t,!0)),u32:e=>(r(e,4),n.getUint32(e-t,!0)),range:(n,i)=>(r(n,i),e.subarray(n-t,n-t+i))}}function Ll(e){if(e instanceof Uint8Array){let t=Il(e);return{size:e.length,read:(t,n)=>e.subarray(t,n),window:()=>t}}if(e instanceof Blob){let t=async(t,n)=>new Uint8Array(await e.slice(t,n).arrayBuffer());return{size:e.size,read:t,window:async(n,r)=>Il(await t(n,Math.min(r,e.size)),n)}}throw new i(`the archive is not a Uint8Array or a Blob`)}var Rl=65536;function zl(e){let t,n=0,r=0;return async(i,a,o=1/0)=>{let s=Math.min(i+a,e.size);return(t===void 0||i<n||s>r)&&(n=i,r=Math.max(s,Math.min(i+Rl,o,e.size)),t=await e.window(n,r)),t}}async function Bl(e){let{size:t}=e,n=await e.window(Math.max(0,t-22-65535-20),t);for(let e=t-22;e>=Math.max(0,t-22-65535);e--)if(n.u32(e)===sl&&e+22+n.u16(e+20)===t){if(e>=20&&n.u32(e-20)===kl)throw new i(`zip64 is not supported`,e-20);return{end:e,r:n}}throw new i(`no end of central directory record`)}function Vl(e,t){let n=[],r=Il(e);for(let a=0;a<e.length;){let o=r.u16(a),s=r.u16(a+2);if(a+4+s>e.length)throw new i(`an extra field runs past its room`,t);if(o===Al)throw new i(`zip64 is not supported`,t);if(o===Ml)throw new i(`an entry carries a second name in a Unicode path extra field`,t);n.push({id:o,data:e.slice(a+4,a+4+s)}),a+=4+s}return n}async function Hl(e,t){let n=await e(t,46);if(n.u32(t)!==ol)throw new i(`no central directory entry where one is counted`,t);let r=n.u16(t+28),a=n.u16(t+30);n=await e(t,46+r+a);let o={at:t,madeBy:n.u16(t+4),version:n.u16(t+6),flags:n.u16(t+8),method:n.u16(t+10),time:n.u16(t+12),date:n.u16(t+14),crc:n.u32(t+16),csize:n.u32(t+20),usize:n.u32(t+24),internal:n.u16(t+36),attributes:n.u32(t+38),offset:n.u32(t+42),name:n.range(t+46,r).slice(),next:t+46+r+a+n.u16(t+32)};if(n.u16(t+34)!==0)throw new i(`the archive spans several disks`,t);if(o.flags&Nl)throw new i(`an entry is encrypted`,t);if(o.method!==0&&o.method!==8)throw new i(`compression method ${o.method} is not stored or deflate`,t);if(o.csize===4294967295||o.usize===4294967295||o.offset===4294967295)throw new i(`zip64 is not supported`,t);o.mtime=gl(o.date,o.time,t),o.extra=Vl(n.range(t+46+r,a),t);let s=o.extra.find(e=>e.id===jl)?.data;if(s!==void 0&&s[0]&1){if(s.length<5)throw new i(`an extended timestamp is cut short`,t);o.mtime=ul(s).getInt32(1,!0)}return o}async function Ul(e,t){let{offset:r,boundary:a,stop:o}=t,s=await e(r,30,o);if(s.u32(r)!==al)throw new i(`no local header where the central directory points`,r);let c=s.u16(r+26),l=s.u16(r+28);if(s=await e(r,30+c+l,o),!n(s.range(r+30,c),t.name))throw new i(`the local header names a different entry`,r);for(let[e,n,a]of[[4,`version`,`a different version`],[6,`flags`,`different flags`],[8,`method`,`a different compression method`],[10,`time`,`a different time`],[12,`date`,`a different date`]])if(s.u16(r+e)!==t[n])throw new i(`the local header has ${a}`,r);Vl(s.range(r+30+c,l),r);let u=t.flags&Pl,d=(e,t)=>s.u32(r+e)===t||u&&s.u32(r+e)===0;if(!d(14,t.crc)||!d(18,t.csize)||!d(22,t.usize))throw new i(`the local header disagrees with the central directory`,r);t.dataAt=r+30+c+l;let f=t.dataAt+t.csize;if(u){let n=await e(f,16,a),r=e=>n.u32(e)===t.crc&&n.u32(e+4)===t.csize&&n.u32(e+8)===t.usize,o=n.u32(f)===Ol&&r(f+4);if(r(f)&&!(o&&f+16===a))f+=12;else if(o)f+=16;else throw new i(`the data descriptor disagrees with the central directory`,f)}return f}function Wl(e,t,n){let r=n&cl;if(t.endsWith(`/`)){if(r!==0&&r!==ll.directory)throw new i(`${d(t)} is a directory by its name but not by its mode`,e.at);return`directory`}if(r===ll.directory)throw new i(`${d(t)} is a directory by its mode but not by its name`,e.at);if(e.attributes&Fl)throw new i(`${d(t)} is a directory by its attributes but not by its name`,e.at);if(r===ll.symlink)return`symlink`;if(r===0||r===ll.file)return`file`;throw new i(`the mode of ${d(t)} (${n.toString(8)}) is not one this package reads`,e.at)}async function Gl(t,n,r){let{at:o,method:s,csize:c,usize:l}=n,u=f(n.name,`entry name`,o),m=n.madeBy>>8==3?n.attributes>>>16:0,h=Wl(n,u,m);if(h===`directory`&&l!==0)throw new i(`directory ${d(u)} has data`,o);if(s===0&&c!==l)throw new i(`a stored entry has two sizes`,o);let _=await t.read(n.dataAt,n.dataAt+c);if(_.length!==c)throw new i(`the archive is truncated`,n.dataAt);let v=s===8?await ml(_,l,o):_;if(te(v)!==n.crc)throw new i(`the data does not match its CRC-32`,o);let ee=h===`symlink`?f(v,`symlink target`,o):``,ne={...a(()=>g(u,h,ee,r.above),o),type:h,mode:m===0?p[h]:m&4095,mtime:n.mtime,data:h===`file`?v:e,storedName:u,system:n.madeBy>>8,version:n.version,flags:n.flags,internalAttributes:n.internal,attributes:n.attributes,extra:n.extra};return a(()=>r.add(ne),o),ne}async function*Kl(e,{limit:t=1/0,symlinksAbove:n}={},r=!1){if(t!==1/0&&!(Number.isSafeInteger(t)&&t>=0))throw new i(`limit ${String(t)} is not a whole number of bytes`);let a=new _(r,n),{end:o,r:s}=await Bl(e),c=s.u16(o+8);if(s.u16(o+4)!==0||s.u16(o+6)!==0||c!==s.u16(o+10))throw new i(`the archive spans several disks`,o);let l=s.u32(o+12),u=s.u32(o+16);if(c===65535||l===4294967295||u===4294967295)throw new i(`zip64 is not supported`,o);if(u+l!==o)throw new i(`the central directory does not end at the end record`,o);let d=zl(e),f=[],p=u,m=0;for(let e=0;e<c;e++){let e=await Hl(d,p);if(m+=e.usize,m>t)throw new i(`the entries come to more than ${t} bytes`,p,{limited:!0});f.push(e),p=e.next}if(p!==o)throw new i(`the central directory does not hold what the end record counts`,p);let h=f.toSorted((e,t)=>e.offset-t.offset);for(let e=h.length-1;e>=0;e--){let[t,n]=[h[e],h[e+1]];t.boundary=n?.offset??u,t.stop=t.csize===0&&n?n.stop:t.boundary-t.csize}let g=zl(e),v=0;for(let e of h){if(e.offset!==v)throw new i(e.offset>v?`bytes belong to no entry`:`two entries overlap`,v);v=await Ul(g,e)}if(v!==u)throw new i(`bytes belong to no entry`,v);for(let t of f)yield await Gl(e,t,a)}async function ql(e,t){if(!(e instanceof Uint8Array))throw new i(`the archive is not a Uint8Array`);return await Array.fromAsync(Kl(Ll(e),t,!0))}var Jl=(e,t)=>e===null?t:`${e.endsWith(`/`)?e.slice(0,-1):e}/${t}`;function Yl(e,t,n){let r=eu(t.exdir,n);if(r===null)return!1;let i=[],a=Xl(e,r,i,t,n);for(let e of i)Zl(e,n);return a}function Xl(e,t,n,r,i){let{ctx:a}=i;for(let o of e){let e=o.type===`directory`;if(r.junk&&e)continue;let s=r.junk?Ft(o.name):o.name,c=k(t,s),l=Jl(r.exdir,e?`${s}/`:s),u=Ql(c,a)?tu(j(c),a):`read-only`;if(u===`read-only`)return $l(l,i);if(u!==null)return i.refuse(`feature`,`name taken`,`${l}: extracting under a name that is not a directory is not supported`),!1;if(e){if(!nu(c,l,i))return!1;continue}if(i.quiet===0)return i.refuse(`feature`,`extraction listing`,`whether each file was stored or deflated is not known here, and an extraction that is not quiet names it (-q extracts without it)`),!1;let d=ru(c,l,r,i);if(d===null)return!1;if(d===`skip`)continue;let f=a.fs.openWritable(`/`,c);if(!f)return $l(l,i);let p=o.type===`symlink`;f.writeBytes(p?D(o.linkname):o.data),p&&n.push({path:c,shown:l,target:o.linkname})}return!0}function Zl({path:e,shown:t,target:n},r){let{fs:i}=r.ctx,a=A(`/`,e,i),o=a.path!==null&&i.isFile(a.path)?or(i,a.path):null,s=D(n);o===null||o.length!==s.length||o.some((e,t)=>e!==s[t])?r.say(2,`warning: deferred symlink (${t}) failed:
|
|
54
54
|
invalid placeholder file
|
|
55
55
|
`):(i.removeWritable(`/`,e),i.makeWritableLink(`/`,e,n))}var Ql=(e,t)=>t.writable&&z(e);function $l(e,t){return t.refuse(`feature`,`read-only target`,`${e}: Read-only file system`),!1}function eu(e,t){let{ctx:n}=t;if(e===null)return n.cwd;let r=k(n.cwd,e),i=A(`/`,r,n.fs);if(i.path!==null&&n.fs.isDir(i.path))return i.path;if(i.path!==null)return t.refuse(`feature`,`extraction directory`,`${e}: an extraction directory that is not a directory is not supported`),null;let a=A(`/`,j(r),n.fs);return a.error===null?!Ql(r,n)||!n.fs.makeWritableDir(`/`,r)?($l(e,t),null):r:(t.say(2,`checkdir: cannot create extraction directory: ${e}
|
|
56
56
|
${a.error}
|
|
@@ -219,7 +219,7 @@ string2 must map all characters in the domain to one`):null}function l_(e){let t
|
|
|
219
219
|
+++ ${c(1)}
|
|
220
220
|
${s}`:o.style===`context`?`${u}*** ${c(0)}
|
|
221
221
|
--- ${c(1)}
|
|
222
|
-
${s}`:u+s}function Xx(e,t){let n=e.showFunction?er(t[0]):null;return
|
|
222
|
+
${s}`:u+s}function Xx(e,t){let n=e.showFunction?er(t[0]):null;return fe(t[0],t[1],{format:e.style??`normal`,context:e.context,label:n?e=>Qx(n,e):null,minimal:e.minimal,ignoreCase:e.ignoreCase,whitespace:e.whitespace,horizon:e.horizon})}var Zx=/^[A-Za-z$_]/u;function Qx(e,t){for(let n=t-1;n>=0;n--){if(!Zx.test(e[n]))continue;let t=y(e[n].replace(/\n$/u,``)),r=Math.min(40,t.length);for(;r>0&&$x(t[r-1]);)r--;return eS(t.subarray(0,r))}return null}var $x=e=>e===32||e>=9&&e<=13;function eS(e){for(let t=e.length;t>Math.max(0,e.length-4);t--)try{return O(e.subarray(0,t))}catch{}return``}var tS=[`q`,`s`,`r`,`N`,`a`,`i`,`w`,`b`,`Z`,`p`,`d`,`u`,`c`,`e`,`n`,`y`,`t`,`T`,`l`,`E`,`B`,`P`,`v`,`H`],nS=`brief.report-identical-files.recursive.new-file.text.ignore-case.ignore-all-space.ignore-space-change.ignore-trailing-space.strip-trailing-cr.show-c-function.minimal.normal.unified.context.ed.rcs.side-by-side.expand-tabs.initial-tab.paginate.ignore-tab-expansion.ignore-blank-lines.unidirectional-new-file.version.help.suppress-common-lines.speed-large-files.ignore-file-name-case.no-ignore-file-name-case.no-dereference.left-column`.split(`.`),rS=[`U`,`C`,`x`,`X`,`S`,`F`,`W`,`I`,`D`],iS=[`show-function-line`,`exclude-from`,`starting-file`,`from-file`,`to-file`,`ifdef`,`width`,`tabsize`,`horizon-lines`,`ignore-matching-lines`,`line-format`,`old-line-format`,`new-line-format`,`unchanged-line-format`,`old-group-format`,`new-group-format`,`unchanged-group-format`,`changed-group-format`,`color`,`palette`],aS=[`L`,`label`,`x`,`exclude`],oS=new Map([[`e`,`ed script output`],[`ed`,`ed script output`],[`n`,`RCS output`],[`rcs`,`RCS output`],[`y`,`side-by-side output`],[`side-by-side`,`side-by-side output`],[`W`,`side-by-side output`],[`width`,`side-by-side output`],[`suppress-common-lines`,`side-by-side output`],[`left-column`,`side-by-side output`],[`t`,`tab expansion`],[`expand-tabs`,`tab expansion`],[`T`,`initial tabs`],[`initial-tab`,`initial tabs`],[`tabsize`,`tab expansion`],[`E`,`tab expansion`],[`ignore-tab-expansion`,`tab expansion`],[`B`,`ignoring blank lines`],[`ignore-blank-lines`,`ignoring blank lines`],[`I`,`ignoring matching lines`],[`ignore-matching-lines`,`ignoring matching lines`],[`D`,`merged #ifdef output`],[`ifdef`,`merged #ifdef output`],[`l`,`pagination`],[`paginate`,`pagination`],[`F`,`a custom function regex`],[`show-function-line`,`a custom function regex`],[`X`,`reading exclusions from a file`],[`exclude-from`,`reading exclusions from a file`],[`S`,`a starting file`],[`starting-file`,`a starting file`],[`from-file`,`comparing one file to many`],[`to-file`,`comparing one file to many`],[`P`,`one-sided new files`],[`unidirectional-new-file`,`one-sided new files`],[`v`,`a version banner`],[`version`,`a version banner`],[`help`,`a help text`],[`H`,`large-file heuristics`],[`speed-large-files`,`large-file heuristics`],[`ignore-file-name-case`,`case-insensitive names`],[`no-ignore-file-name-case`,`case-insensitive names`],[`no-dereference`,`symbolic links`],[`color`,`colored output`],[`palette`,`colored output`],[`line-format`,`custom line formats`],[`old-line-format`,`custom line formats`],[`new-line-format`,`custom line formats`],[`unchanged-line-format`,`custom line formats`],[`old-group-format`,`custom group formats`],[`new-group-format`,`custom group formats`],[`unchanged-group-format`,`custom group formats`],[`changed-group-format`,`custom group formats`]]),sS=e=>S(`diff: ${e}
|
|
223
223
|
diff: Try 'diff --help' for more information.`,2);function cS(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r===`--`){t.push(...e.slice(n));break}if(r===`--unified`||r===`--context`)t.push(`-`+(r===`--unified`?`u`:`c`));else if(r.startsWith(`--unified=`)||r.startsWith(`--context=`))t.push(r.startsWith(`--u`)?`-U`:`-C`,r.slice(10));else{if(r.startsWith(`--color`))return{refused:`colored output`,label:r};t.push(r)}}return{tokens:t}}function lS(e){let t=cS(e);if(t.refused)return{refused:w(`option`,`diff`,t.label.replace(/=.*/u,``),`diff: ${t.label}: ${t.refused} is not supported`,2)};let n;try{n=U(t.tokens,{short:tS,long:nS,valueShort:rS,valueLong:iS,repeatable:aS})}catch(e){let t=C(e);return t?{refused:w(t.kind,`diff`,t.detail,`diff: ${e.message}`,2)}:{error:sS(e.message)}}let r={style:null,context:-1,horizon:0,labels:[],excludes:[],whitespace:`none`,switches:fS(e)};for(let{name:e,value:t}of n.order){let n=oS.get(e),i=(e.length===1?`-`:`--`)+e;if(n)return{refused:w(`option`,`diff`,i,`diff: ${i}: ${n} is not supported`,2)};let a=uS(r,e,t);if(a)return{error:a}}return r.showFunction&&r.style===null&&(r.style=`context`),r.context<0&&(r.context=3),n.positional.length<2?{error:sS(`missing operand after '${n.positional[0]??`diff`}'`)}:n.positional.length>2?{error:sS(`extra operand '${n.positional[2]}'`)}:{opts:r,operands:n.positional}}function uS(e,t,n){let r=t=>e.style!==null&&e.style!==t?sS(`conflicting output style options`):(e.style=t,null);switch(t){case`u`:case`c`:{let n=r(t===`u`?`unified`:`context`);return e.context<3&&(e.context=3),n}case`U`:case`C`:{let i=dS(n);if(i===null)return sS(`invalid context length '${n}'`);let a=r(t===`U`?`unified`:`context`);return e.context<i&&(e.context=i),a}case`normal`:return r(`normal`);case`horizon-lines`:{let t=dS(n);return t===null?sS(`invalid horizon length '${n}'`):(e.horizon=Math.max(e.horizon,t),null)}case`q`:case`brief`:return e.brief=!0,null;case`s`:case`report-identical-files`:return e.identical=!0,null;case`r`:case`recursive`:return e.recursive=!0,null;case`N`:case`new-file`:return e.newFile=!0,null;case`a`:case`text`:return e.text=!0,null;case`i`:case`ignore-case`:return e.ignoreCase=!0,null;case`w`:case`ignore-all-space`:return e.whitespace=`all`,null;case`b`:case`ignore-space-change`:return e.whitespace!==`all`&&(e.whitespace=`change`),null;case`Z`:case`ignore-trailing-space`:return e.whitespace===`none`&&(e.whitespace=`trailing`),null;case`strip-trailing-cr`:return e.stripCr=!0,null;case`p`:case`show-c-function`:return e.showFunction=!0,null;case`d`:case`minimal`:return e.minimal=!0,null;case`L`:case`label`:return e.labels.length===2?S(`diff: too many file label options`,2):(e.labels.push(n),null);case`x`:case`exclude`:return e.excludes.push(n),null;default:return null}}function dS(e){if(e===``)return 0;let t=/^[ \t\n\v\f\r]*([-+]?)(\d+)$/u.exec(e);return!t||t[1]===`-`&&/[1-9]/u.test(t[2])?null:Math.min(Number(t[2]),2**53-1)}function fS(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(r===`--`)break;!r.startsWith(`-`)||r===`-`||(t.push(r),pS(r)&&n+1<e.length&&t.push(e[++n]))}return t.map(e=>` `+w_(e,{vars:new Map})).join(``)}function pS(e){if(e.startsWith(`--`))return!e.includes(`=`)&&(iS.includes(e.slice(2))||e===`--label`||e===`--exclude`);for(let t=1;t<e.length;t++){let n=e[t];if(rS.includes(n)||n===`L`)return t+1===e.length}return!1}function mS(e,t,n){let{ctx:r,opts:i}=e,a=SS(xS(e,t),xS(e,n));for(let[o,s,c]of a){let a=wS(t,o),l=wS(n,o),u=s?yS(r,a):null,d=c?yS(r,l):null;s&&c?gS(e,[a,l],[u,d]):i.newFile?hS(e,[a,l],u??d,[s,c]):DS(e,`Only in ${s?t:n}: ${o}
|
|
224
224
|
`,1)}}function hS(e,[t,n],r,i){vS(r)?e.opts.recursive?bS(e,[t,n],i.map(e=>e?r:null)):DS(e,`Common subdirectories: ${t} and ${n}
|
|
225
225
|
`):OS(e,t,n,!0,i)}function gS(e,[t,n],[r,i]){let{opts:a}=e,o=[r,i].indexOf(`gone`);if(o!==-1&&vS([r,i][1-o])){let r=[t,n][o];return DS(e,`diff: ${r}: ${A(e.ctx.cwd,r,e.ctx.fs).error}
|
|
@@ -230,8 +230,8 @@ diff: Try 'diff --help' for more information.`,2);function cS(e){let t=[];for(le
|
|
|
230
230
|
`,2,!0):OS(o,r[0],r[1],!1)}}else OS(o,s,c,!1);return o.out.exitCode=o.status,o.out}function wS(e,t){let n=e.replace(/\/+$/u,``);return(n===``?`/`:n+`/`)+t}function TS(e,t,n){return A(e.ctx.cwd,t,e.ctx.fs).path===A(e.ctx.cwd,n,e.ctx.fs).path}function ES(e,t){if(t===`-`)return`stdin`;let n=A(e.ctx.cwd,t,e.ctx.fs);return n.error?`missing`:e.ctx.fs.isDir(n.path)?`dir`:`file`}function DS(e,t,n=0,r=!1){K(e.out,r?G(t):{...G(),stdout:t,events:[{fd:1,text:t}]}),e.status=Math.max(e.status,n)}function OS(e,t,n,r,i=null){let{opts:a}=e,o=[t,n].map(t=>PS(e,t)),s=o.map(e=>e.content===null),c=a.newFile&&!(s[0]&&s[1]),l=!1;for(let r=0;r<2;r++)!s[r]||(i?!i[r]:c)||(DS(e,`diff: ${[t,n][r]}: ${o[r].error??`No such file or directory`}
|
|
231
231
|
`,2,!0),l=!0);if(l)return;if(o[0].identity!==void 0&&o[0].identity===o[1].identity&&!s[0])return kS(e,t,n);let u=e=>a.labels[e]??[t,n][e];if(!a.text&&o.some(jS))return MS(o)?kS(e,t,n):DS(e,`${a.brief?`Files`:`Binary files`} ${u(0)} and ${u(1)} differ
|
|
232
232
|
`,1);if(o.some(e=>e.content===void 0)){if(MS(o))return kS(e,t,n);if(a.brief&&!a.ignoreCase&&!a.stripCr&&a.whitespace===`none`)return DS(e,`Files ${u(0)} and ${u(1)} differ
|
|
233
|
-
`,1)}for(let[e,t]of o.entries())t.content===void 0&&Rt(t.bytes,JSON.stringify(u(e)));let d=o.map(e=>e.content??``);if(a.stripCr&&(d=d.map(AS)),a.brief)return
|
|
234
|
-
`,1);let f;try{f=Yx(e,d,[t,n],s,r)}catch(r){if(!(r instanceof
|
|
233
|
+
`,1)}for(let[e,t]of o.entries())t.content===void 0&&Rt(t.bytes,JSON.stringify(u(e)));let d=o.map(e=>e.content??``);if(a.stripCr&&(d=d.map(AS)),a.brief)return fe(d[0],d[1],{format:`brief`,ignoreCase:a.ignoreCase,whitespace:a.whitespace})===``?kS(e,t,n):DS(e,`Files ${u(0)} and ${u(1)} differ
|
|
234
|
+
`,1);let f;try{f=Yx(e,d,[t,n],s,r)}catch(r){if(!(r instanceof se)&&!(r instanceof de))throw r;let i=`diff: ${t} ${n}: ${r.message}`,a=r instanceof se?`change set verification`:`diff rendering verification`;K(e.out,w(`feature`,`diff`,a,i,2)),e.status=2;return}if(f===``)return kS(e,t,n);DS(e,f,1)}function kS(e,t,n){e.opts.identical&&DS(e,`Files ${t} and ${n} are identical
|
|
235
235
|
`)}var AS=e=>e.replace(/\r\n/gu,`
|
|
236
236
|
`),jS=e=>e.content===void 0?e.bytes.includes(0):e.content?.includes(`\0`)===!0,MS=([e,t])=>e.content!==void 0&&t.content!==void 0?e.content===t.content:zt(e.bytes??NS,t.bytes??NS),NS=new Uint8Array;function PS(e,t){let{ctx:n}=e;if(t===`-`)return I(n),{content:e.stdin,identity:n.stdinHandle?.identity??Symbol(`stdin`)};let r=P(n,`diff`,t);if(r.error||n.fs.isDir(r.path))return{content:null,bytes:null,identity:void 0,error:r.error};let{text:i,bytes:a}=sr(n.fs,r.path);return{content:i,bytes:a,identity:n.fs.fileIdentity?.(r.path)??r.path}}var FS=(e,t,n)=>{throw new Y(`malformed patch at line ${Math.min(t,e.lines.length-1)+1}: ${n??``}`)};function IS(e,t){return!!e.lines[t+1]?.startsWith(`\\`)}function LS(e){let{lines:t}=e,n=e.pos,r=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?\n$/u.exec(t[n]??``);if(!r)return null;let i=n,a=Number(r[3]),o=Number(r[1]),s=r[2]===void 0?1:Number(r[2]),c=r[4]===void 0?1:Number(r[4]);s===0&&o++,c===0&&a++;let l=[],u=[],d=0,f=n,p=-1;for(n++;u.length<s||l.length<c;n+=1){let r=t[n]!==void 0;if(!r&&c-l.length>3)throw new Y(`unexpected end of file in patch`);let i=r?t[n]:`
|
|
237
237
|
`;r&&(f=n);let a=i[0],o=i;a===` `||a===`
|
|
@@ -359,7 +359,7 @@ ${h}`:h)}for(let e of p)r.notes.add(e);return L(f.join(``),l)}function uA(e){let
|
|
|
359
359
|
`}h_(t,c);let l=s.length;for(;l>0&&s[l-1]===`
|
|
360
360
|
`;)l--;return s.slice(0,l)}async function dj(e,t){return{stdout:``,stderr:``,exitCode:+!await pj(e,t)}}var fj=async(e,t)=>(await Zb(e,t)).value;async function pj(e,t){let{kind:n}=e;if(n===`not`)return!await pj(e.expression,t);if(n===`and`)return await pj(e.left,t)&&await pj(e.right,t);if(n===`or`)return await pj(e.left,t)||await pj(e.right,t);let{op:r}=e;if(n===`unary`){let n=await fj(e.word,t);if(r===`-n`)return n!==``;if(r===`-z`)return n===``;if([`-a`,`-e`,`-f`,`-d`].includes(r))return OT(r,n,t);if(r===`-v`)return mj(n,t);hj(r)}[`<`,`>`,`-nt`,`-ot`,`-ef`].includes(r)&&hj(r);let i=await fj(e.left,t);if(Object.hasOwn(bT,r)){let n=await fj(e.right,t);return bT[r](Db(i,t),Db(n,t))}let a=await Zb(e.right,t);Ch(a)&&hj(`extglob`);let o=mh(Eh(a),{bash:!0}).test(i);return r===`!=`?!o:o}function mj(e,t){return e.includes(`[`)&&hj(`-v array subscript`),/^[ \t\n\r\f\v]*[+-]?0+[ \t]*$/u.test(e)&&hj(`-v positional parameter`),/^[A-Za-z_][A-Za-z0-9_]*$/u.test(e)?eb(e,t).set:!1}function hj(e){throw new E(`feature`,`[[ ${e}`,`${e} in [[ is not supported`)}function gj(e,t,n,r){return e.define?(t.functions.set(e.define.name,e.define.body),G()):e.test?dj(e.test,t):e.group?Cj(e,t,n,r):e.loop?e.loop.words?xj(e.loop,t,r):yj(e.loop,t,r):Sj(e.conditional,t,n,r)}var _j=1e4,vj={kind:`feature`,command:null,detail:`loop limit`,message:`a loop running more than ${_j} times is not supported`};async function yj(e,t,n){let r=G(),i={text:t.stdinLeft,bytes:t.stdinBytes};t.loopDepth++;try{for(let a=0;;a++){if(a===_j){t.unsupported.add(vj),K(r,S(`error: ${vj.message}`,1));break}let o=r.ignored,s=r.exitCode,c=await n(e.condition,t,i,!0);if(K(r,c),r.exitCode=s,r.ignored=o,c.halt||c.control)return{...r,halt:c.halt,control:c.control,blame:c.blame};if(c.exitCode===0==!!e.until)break;let l=await n(e.body,t,i);if(K(r,l),r.blame=l.blame,l.halt)return{...r,halt:!0};if(l.control?.levels>1)return{...r,control:{...l.control,levels:l.control.levels-1}};if(l.control?.type===`break`)break}}finally{t.loopDepth--}return r}var bj={value:`for`,mask:null};async function xj(e,t,n){let r=await Ub([bj,...e.words],t),i=G(),a={text:t.stdinLeft,bytes:t.stdinBytes};t.loopDepth++;try{for(let o of r.argv.slice(1)){t.vars.set(e.name,o);let r=await n(e.body,t,a);if(K(i,r),i.blame=r.blame,r.halt)return{...i,halt:!0};if(r.control?.levels>1)return{...i,control:{...r.control,levels:r.control.levels-1}};if(r.control?.type===`break`)break}}finally{t.loopDepth--}return i}async function Sj(e,t,n,r){let i=G(),a={text:n,bytes:t.stdinBytes};for(let n of e.branches){let e=await r(n.condition,t,a,!0);if(K(i,e),e.halt||e.control)return{...i,halt:e.halt,control:e.control,blame:e.blame};if(e.exitCode!==0)continue;let o=await r(n.body,t,a);return K(i,o),{...i,halt:o.halt,control:o.control,blame:o.blame}}if(!e.otherwise)return i.exitCode=0,i.ignored=!1,i;let o=await r(e.otherwise,t,a);return K(i,o),{...i,halt:o.halt,control:o.control,blame:o.blame}}async function Cj(e,t,n,r){let i={text:n,bytes:t.stdinBytes};return e.isolate?{...await Vb(t,()=>r(e.group,t,i)),halt:!1,control:void 0,ignored:!1}:r(e.group,t,i)}var wj=new Set([`sort`,`cat`]),Tj=new Set([`wc`,`tac`]);function Ej(e){let t=null,n=null,r=e=>{t&&!t.bufferReads&&t.reads.push(e)},i=e=>{if(e!==void 0)for(let r=t;r;r=r.parent){if(!r.reads.includes(e)||r===t&&n?.scope===r&&(n.unsupported||r.buffered||n.fd===1&&(wj.has(r.name)||Tj.has(r.name)&&!r.reads.slice(1).includes(e))))continue;if(r.failure)throw r.failure;let i=r===t&&n?.fd===2,a=i?`input modified by diagnostics`:`streaming self-output`,o=i?`reading input while diagnostics write to the same file is not supported`:`writing to an actively read input file is not supported`;throw r.failure=T(new E(`feature`,a,o),`feature`,r.name,a,o),r.failure}};return e.observeIo?.({read:r,write:i}),{read:r,bufferOutput(){t&&(t.buffered=!0)},bufferReads(e){if(!t)return e();let n=t,r=n.bufferReads;n.bufferReads=!0;try{return e()}finally{n.bufferReads=r}},setReads(e){t&&(t.reads=e)},async run(e,n){let r=t;t={name:e,reads:[],parent:r};try{return await n()}finally{t=r}},output(e,r,a){let o=n;n={scope:t,fd:null,unsupported:!!C(e)};try{for(let t of p_(e))t.text!==``&&(n.fd=t.fd,i(r.fds[t.fd]?.identity));return a((e,t)=>{n.fd=e.fd,f_(e,t)})}finally{n=o}}}}function Dj(e,t){return g_(e,{fds:{1:t.outputFds[1]?.path?t.outputFds[1]:`out`,2:t.outputFds[2]?.path?t.outputFds[2]:`err`},deferred:{1:Oj(t.outputFds[1]),2:Oj(t.outputFds[2])}},t)}var Oj=e=>e!==`out`&&e!==`err`&&!e?.path;async function kj(e,t,n,r=!1){if(e.some(e=>e.background))throw new E(`feature`,`&`,"background processes (`&`) are not supported");let i=G(),a=null,o=null;for(let[s,c]of e.entries()){if(c.warnings&&K(i,g_({...G(c.warnings),exitCode:i.exitCode,ignored:i.ignored},{fds:t.outputFds},t)),c.gate===`and`&&i.exitCode!==0){(o??=Jn()).skip(r?null:a,i.exitCode);continue}if(c.gate===`or`&&i.exitCode===0)continue;o?.flush(t.notes);let l=r||c.negate||Aj(e,s),u=await(l?Hb(t,{errexitOff:!0},()=>jj(c.stages,t,n)):jj(c.stages,t,n));if(K(i,u),c.negate&&!u.halt&&(i.exitCode=+(u.exitCode===0)),l&&(i.ignored=!0),a=c.negate?null:u.blame,t.lastExit=i.exitCode,u.halt||u.control){Object.assign(i,{halt:u.halt,control:u.control});break}if(i.exitCode!==0&&!i.ignored&&t.errexit&&!t.errexitOff){i.halt=!0;break}}return o?.flush(t.notes),t.stdinLeft=n.text,t.stdinBytes=n.bytes??null,Object.assign(i,{blame:a})}var Aj=(e,t)=>[`and`,`or`].includes(e[t+1]?.gate);async function jj(e,t,n){let r=G(),i=n.text,a=n.bytes??null;for(let o=0;o<e.length;o++){let s=e[o],c=o===0,l=o<e.length-1?Mj():null,u={...t.outputFds};l&&(u[1]=l);let d=a,f=i,p=()=>Nj(s,t,{stdin:f,stdinBytes:d,stdinFile:c&&t.stdinFile,fds:u,stdinPiped:!c||t.stdinPiped,stdinTerminal:c&&t.stdinTerminal}),m=e.length>1?{...await Vb(t,p),ignored:!1}:await p();c&&(n.text=m.inputLeft,n.bytes=m.bytesLeft??null),K(r,m);let h=l?.carried()??{text:``};a=h.bytes??null,i=h.text??yt(h.bytes)??``,r.blame=m.blame,e.length===1&&(r.halt=m.halt,r.control=m.control)}return r}function Mj(){let e=``,t=null;return{write(n){t===null?e+=n:n!==``&&t.push(D(n))},writeBytes(n){t===null&&(t=e===``?[]:[D(e)],e=``),t.push(n)},carried:()=>t===null?{text:e}:{bytes:Ot([...t,new Uint8Array])}}}function Nj(e,t,{stdin:n,stdinBytes:r,stdinFile:i,fds:a,stdinPiped:o,stdinTerminal:s}){let c={fds:a,stdin:n,stdinBytes:r,stdinFile:i,stdinPiped:o,stdinTerminal:s,stdinOrigin:i?t.stdinOrigin:null,stdinHandle:i?t.stdinHandle:null};return Hb(t,{substitutionExit:null,expansionOutput:G(),expansionFds:a},()=>Rj(c,t,async()=>{let n=!e.group&&!e.loop&&!e.conditional&&!e.test&&!e.define,r,o;try{n&&(r=await Ub(e.words,t),r.argv.length===0?await Hj(e.assigns,t):r.temps=await Uj(e.assigns,t))}catch(e){o=Ij(t,e)}if(o)return K(t.expansionOutput,Pj(o,c,t)),{...t.expansionOutput,inputLeft:t.stdinLeft,bytesLeft:t.stdinBytes,halt:o.halt};let s=await Fj(e,t,t.stdinLeft,i,a);t.expansionFds=s.fds;let l=!1,u=null,d=await Rj(s,t,()=>Lj(t,async()=>{if(s.error)return s.error;if(!n){let n=await gj(e,t,s.stdin,kj);return l=!0,u=n.blame??null,n}let i=r.argv.length>0?r.argv[0]:null,a=i===null?void 0:t.functions.get(i);if(a){if(l=!0,t.calling.has(i)){let e=w(`feature`,i,`function recursion`,`${i}: a function calling itself is not supported`);return t.unsupported.add(C(e)),e}t.calling.add(i);try{return await Hb(t,{loopDepth:0},async()=>({...await Wj(r.temps,t,()=>kj(a,t,{text:s.stdin,bytes:s.stdinBytes})),ignored:!1}))}finally{t.calling.delete(i)}}let o=await Vj(t,r);return r.argv.length&&(u=qn(t.registry.chainRole(r.argv),r.argv[0])),o})),f=s.inherited?t.stdinLeft:s.parentLeft,p=s.inherited?t.stdinBytes:s.parentBytes;return K(t.expansionOutput,l?d:Pj(d,s,t)),{...t.expansionOutput,inputLeft:f,bytesLeft:p,halt:d.halt,control:d.control,blame:u}}))}function Pj(e,t,n){try{return g_(e,t,n)}catch(e){return g_(Ij(n,e),t,n)}}async function Fj(e,t,n,r,i){let a={...i},o=n,s=r,c=s?t.stdinOrigin:null,l=s?t.stdinHandle:null,u=!0,d=n,f=!1,p=t.stdinTerminal,m=t.stdinBytes,h=m,g=e=>({error:e,fds:a,stdin:o,stdinBytes:m,stdinFile:s,stdinPiped:f||t.stdinPiped,stdinTerminal:p,stdinOrigin:s?c:null,stdinHandle:s?l:null,inherited:u,parentLeft:d,parentBytes:h}),_=async e=>{let n=await Hb(t,{expansionFds:a},()=>Rj({fds:a,stdin:o,stdinBytes:m,stdinFile:s,stdinOrigin:c,stdinHandle:l},t,e));return o=t.stdinLeft,m=t.stdinBytes,u&&(d=o,h=m),n};try{for(let n of e.redirs)if(n.op===`dup`){if(a[n.toFd]===void 0||a[n.toFd]===`closed`)return g(S(`error: ${n.toFd}: Bad file descriptor`));a[n.fd]=a[n.toFd]}else if(n.op===`close`)a[n.fd]=`closed`;else if(n.op===`to`){let e=n.target===void 0?await _(()=>Gb(n.word,t)):{value:n.target};if(e.error)return g(S(`error: ${e.error}`));let r=e.value===`/dev/null`?`null`:e.value===`/dev/stdout`?a[1]:e.value===`/dev/stderr`?a[2]:t.writable?t.fs.openWritable(t.cwd,e.value,n.append):null;if(r===null){let r=go(n.label,e.value,t.writable);return t.unsupported.add(C(r)),g(S(`error: ${r.message}`))}if(r===`closed`)return g(S(`error: ${e.value}: No such file or directory`));a[n.fd]=r,n.both&&(a[2]=r)}else if(n.op===`text`)o=n.expand?await _(()=>qb(zj(n.body),t)):n.body,s=!1,u=!1,m=null,p=!1;else if(n.op===`herestring`)o=await _(()=>qb(n.word,t))+`
|
|
361
361
|
`,s=!1,u=!1,m=null,p=!1;else{let e=await _(()=>Gb(n.word,t)),r=e.error?{error:S(`error: ${e.error}`)}:Bj(e.value,t,s?c:o);if(r.error)return g(r.error);o=r.content,e.value!==`/dev/stdin`&&(m=r.bytes??null),(e.value!==`/dev/stdin`||s)&&(u=!1),e.value!==`/dev/stdin`&&(s=e.value!==`/dev/null`,c=s?o:null,l=r.handle,f=s,p=!1)}if(s&&l){let e=t.io.bufferReads(()=>t.fs.readIdentity(l.identity));if(e!==l.content){if(u||o!==l.content)throw new E(`feature`,`modified redirected input`,`reading an inherited input file after it changes is not supported`);o=c=e,l={...l,content:e}}}}catch(e){return g(Ij(t,e))}return g()}function Ij(e,t){F(e,`shell`,t?.path,t?.fsError);let n=C(t);return n&&e.unsupported.add(n),{...S(`error: ${R(t)}`,1),...t?.halt?{halt:!0}:{}}}async function Lj(e,t){try{return await t()}catch(t){return Ij(e,t)}}function Rj(e,t,n){let r={outputFds:e.fds,closed:{out:e.fds[1]===`closed`,err:e.fds[2]===`closed`},stdinFile:!!e.stdinFile,stdinPiped:e.stdinPiped??t.stdinPiped,stdinTerminal:e.stdinTerminal??t.stdinTerminal,stdinOrigin:e.stdinOrigin,stdinHandle:e.stdinHandle};return t.stdinLeft=e.stdin,t.stdinBytes=e.stdinBytes??null,Hb(t,r,n)}function zj(e){let t=``,n=``;for(let r=0;r<e.length;r++){let i=e[r],a=e[r+1];if(i===`\\`&&(a===`$`||a===`\\`||a==="`"))t+=a,n+=`1`,r++;else if(i==="`"){let i=Wr(e,r);t+=i.raw,n+=`2`+`1`.repeat(i.raw.length-1),r+=i.raw.length-1}else{if(i===`$`){let i=Ri(e,r,0,!0);if(i?.command!==void 0||i?.parameter!==void 0||i?.arithmetic!==void 0){t+=i.raw,n+=`2`+`1`.repeat(i.raw.length-1),r+=i.raw.length-1;continue}}t+=i,n+=`2`}}return{value:t,mask:n}}function Bj(e,t,n){if(e===`/dev/null`)return{content:``};if(e===`/dev/stdin`)return{content:n};let{path:r,error:i}=P(t,`shell`,e);if(i)return{error:S(`error: ${e}: ${i}`)};if(t.fs.isFile(r)){let{text:e,bytes:n}=sr(t.fs,r),i=e??``;return{content:i,bytes:e===void 0?n:void 0,handle:t.writable&&r.startsWith(`/tmp/`)?{path:r,content:i,identity:t.fs.fileIdentity(r)}:null}}return{error:S(`error: ${e}: Is a directory`)}}function Vj(e,t){let{argv:n}=t;return n.length===0?{stdout:``,stderr:``,exitCode:e.substitutionExit??0}:Wj(t.temps,e,()=>e.invoke(n[0],n.slice(1),e.stdinLeft))}async function Hj(e,t){for(let n of e)t.vars.set(n.name,await qb(n.word,t,!0))}async function Uj(e,t){if(e.length===0)return null;let n=t.vars,r=new Zy(n),i=new Set(e.map(e=>e.name));r.bound=new Set;try{await Hb(t,{vars:r},async()=>{for(let n of e){r.expansionTargets=i;let e=await qb(n.word,t,!0);r.expansionTargets=null,r.set(n.name,e)}})}finally{r.expansionTargets=null;for(let e of r.bound)i.has(e)||n.set(e,r.get(e))}return{vars:r,names:i}}async function Wj(e,t,n){if(!e)return n();let r=t.vars,i=new Zy(r),a=e.names;for(let t of a)i.set(t,e.vars.get(t));t.vars=i;try{return i.bound=new Set,await n()}finally{t.vars=r;for(let[e,t]of i)(!a.has(e)||i.bound?.has(e))&&r.set(e,t);for(let e of i.unsetNames)a.has(e)||r.delete(e)}}function Gj(e,t={}){let{fs:n,cwd:r,home:i,mount:a,writable:o,locale:s}=Pr(e,t),c=fd(t),l=t.commands===void 0?ej(c):ZA(t.commands,c);return Xj(Yj({fs:n,io:Ej(n),mount:a,writable:o,registry:l,createdAt:Date.now(),lock:{turn:Promise.resolve()}},{cwd:r,home:i,user:t.user??`user`,locale:s,...Kj()}),`createTerminal`)}var Kj=()=>({vars:new Zy,functions:new Map,lastExit:0,errexit:!1}),qj=e=>({vars:new Zy(e.vars),functions:new Map(e.functions),lastExit:e.lastExit,errexit:e.errexit});function Jj(e,t={}){let{cwd:n,home:r,user:i,locale:a,inherit:o}=Fr(e,t);return Xj(Yj(e,{cwd:n,home:r,user:i,locale:a,...o?qj(e):Kj()}),`fork`)}function Yj({fs:e,io:t,mount:n,writable:r,registry:i,createdAt:a,lock:o},s){let c={fs:e,io:t,mount:n,writable:r,registry:i,createdAt:a,lock:o,...s,calling:new Set,outputFds:{1:`out`,2:`err`},loopDepth:0,closed:{out:!1,err:!1},stdinFile:!1,stdinPiped:!1,stdinTerminal:!0,stdinOrigin:null,stdinHandle:null,stdinLeft:``,stdinBytes:null,unsupported:pt(),notes:new Set};return c.dispatch=(e,t,n,{devNull:r=!1}={})=>Hb(c,{stdinLeft:c.stdinLeft,stdinBytes:c.stdinBytes,stdinFile:!1,stdinPiped:!1,stdinTerminal:c.stdinTerminal&&!r,stdinOrigin:null,stdinHandle:null},()=>Vb(c,()=>Zj(e,t,n,c,!0))),c.flushOutput=e=>Dj(e,c),c.hasCommand=e=>i.has(e)&&!i.shellOnly(e),c.invoke=(e,t,n)=>Zj(e,t,n,c),c.substitute=(e,t)=>uj(e,c,kj,t),c.runLine=e=>eM(e,c),c}function Xj(e,t){if(!e.fs.isDir(e.cwd))throw Error(`${t}: cwd is not a directory: ${e.cwd}`);return{run:t=>$j(e,t),cwd:()=>e.cwd,complete:t=>nj(t,e,e.registry),fork:t=>Jj(e,t)}}async function Zj(e,t,n,r,i=!1){let a=r.registry,o=a.resolveCommand(e),s=()=>{if((i||e!==o)&&a.shellOnly(o))return w(`command`,e,e,`${e}: shell builtin cannot be invoked as an external command`,127);let s=a.commands[o];return s?s(n,t,r):tj(e,a)},c=t=>Dj(Qj(r,b_(e,t,r),o),r);try{return await r.io.run(o,async()=>c(await s()))}catch(t){F(r,e,t?.path,t?.fsError);let n=`${e}: ${R(t)}`,i=C(t);return i&&r.unsupported.add({...i,command:i.command??e,message:n},i.command??o),c(S(n))}}function Qj(e,t,n){let r=C(t);return r&&e.unsupported.add(r,n),t}function $j(e,t){let{lock:n}=e,r=n.turn.then(()=>eM(t,e));return n.turn=r.then(()=>null,()=>null),r}function eM(e,t){let n=pt();return Hb(t,{unsupported:n,notes:new Set,discarded:new Set,stdinFile:!1,stdinPiped:!1,stdinTerminal:!0,stdinOrigin:null,stdinHandle:null,stdinBytes:null,closed:{out:!1,err:!1},outputFds:{1:`out`,2:`err`}},async()=>{let r={stdout:``,stderr:``,exitCode:0},i={text:``};try{for(let n of Ga(e,t.writable,t.registry.has)){let e=await kj(n,t,i);if(r.stdout+=e.stdout,r.stderr+=e.stderr,r.exitCode=e.exitCode,e.halt||e.control)break}}catch(e){let i=C(e);i&&n.add(i),t.lastExit=e.exitCode??(i?1:2),r.stderr+=`error: ${e.message}
|
|
362
|
-
`,r.exitCode=t.lastExit}return tM(r,t,n)})}var tM=(e,t,n)=>({stdout:e.stdout,stderr:e.stderr,exitCode:e.exitCode,cwd:t.cwd,unsupported:Object.freeze(n.entries),notes:Object.freeze([...t.notes,...Kn(t.discarded,e.stderr,t.notes)])}),nM={unified:[[/^--- /u,`bold`],[/^\+\+\+ /u,`bold`],[
|
|
362
|
+
`,r.exitCode=t.lastExit}return tM(r,t,n)})}var tM=(e,t,n)=>({stdout:e.stdout,stderr:e.stderr,exitCode:e.exitCode,cwd:t.cwd,unsupported:Object.freeze(n.entries),notes:Object.freeze([...t.notes,...Kn(t.discarded,e.stderr,t.notes)])}),nM={unified:[[/^--- /u,`bold`],[/^\+\+\+ /u,`bold`],[ce,`cyan`],[/^\+/u,`green`],[/^-/u,`red`],[/^\\ /u,`gray`]],context:[[le,`cyan`],[/^\*{3} \d/u,`cyan`],[/^--- \d/u,`cyan`],[/^\*{3} /u,`bold`],[/^--- /u,`bold`],[/^! /u,`yellow`],[/^\+ /u,`green`],[/^- /u,`red`]],normal:[[ue,`cyan`],[/^< /u,`red`],[/^> /u,`green`],[/^---$/u,`gray`]]},rM=[[`context`,le],[`unified`,ce],[`normal`,ue]],iM=e=>rM.find(([,t])=>e.some(e=>t.test(e)))?.[0]??null;function aM(e){let t=e.split(`
|
|
363
363
|
`),n=nM[iM(t)];return n===void 0?null:t.map(e=>n.find(([t])=>t.test(e))?.[1]??null)}var oM={bold:`head`,cyan:`hunk`,green:`add`,red:`del`,yellow:`chg`,gray:`meta`};function sM(e){let t=aM(e);return t===null?null:e.split(`
|
|
364
364
|
`).map((e,n)=>({text:e,kind:t[n]===null?``:oM[t[n]]??``}))}function cM({stdout:e,stderr:t,unsupported:n}){return n.filter(n=>!t.includes(n.message)&&!e.includes(n.message)).map(e=>e.message)}var lM=`:host{display:flex;flex-direction:column;position:relative;height:100%;min-height:0;background:var(--bg);color:var(--text);font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:13px;line-height:1.45}.output{flex:1 1 auto;overflow-y:auto;overscroll-behavior:none;-webkit-app-region:no-drag;app-region:no-drag;scrollbar-gutter:stable;padding:var(--terminal-output-padding, 12px 14px 6px);cursor:text}.banner{color:var(--muted);margin-bottom:8px;user-select:none}.banner .cmd{color:var(--accent)}.banner .cmd:hover{text-decoration:underline}.line{white-space:pre-wrap;overflow-wrap:break-word}.cwd{color:var(--accent)}.sigil{color:var(--muted)}.stdout,.stderr{margin:0 0 4px;font:inherit;white-space:pre-wrap;overflow-wrap:break-word}.stderr{color:var(--critical)}.diff-head{color:var(--text);font-weight:600}.diff-hunk{color:var(--accent)}.diff-add{color:var(--green)}.diff-del{color:var(--critical)}.diff-chg{color:var(--yellow)}.diff-meta{color:var(--muted)}.form{flex:0 0 auto;display:flex;align-items:center;padding:var(--terminal-form-padding, 8px 14px 10px);border-top:1px solid var(--border)}.form:focus-within{border-top-color:var(--accent)}.form[aria-busy=true] .sigil{opacity:.4}.form[aria-busy=true] .input{caret-color:transparent}.form .cwd{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:none}.form .sigil{flex:0 0 auto;user-select:none;margin:0 1ch}.input-wrap{flex:1 1 auto;min-width:0;position:relative;display:flex;align-items:center}.input{width:100%;background:transparent;border:none;outline:none;color:inherit;font:inherit;padding:0;position:relative}.ghost{position:absolute;inset:0;display:flex;align-items:center;font:inherit;white-space:pre;overflow:hidden;pointer-events:none;user-select:none;color:var(--muted);opacity:.55}.ghost-pad{color:transparent}.notes{position:absolute;top:8px;right:14px;z-index:2;display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:min(52%,320px);pointer-events:none}.note{box-sizing:border-box;padding:5px 9px;border:1px solid var(--border);border-radius:var(--ui-radius, 5px);background:var(--bg);color:var(--muted);font-size:12px;line-height:1.4;text-align:left;overflow-wrap:break-word;animation:note-in .14s ease-out,note-out .4s ease-in var(--dwell-out, 5.6s) forwards}.note-gap{border-color:var(--warning);color:var(--text)}@keyframes note-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@keyframes note-out{to{opacity:0;transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.note{animation:none}}:host-context(body.theme-w95) *{overscroll-behavior:none}
|
|
365
365
|
`,uM=`/sources`,dM={mount:uM,home:`/`,writable:`/tmp/`};function fM(e){let t=[`ls`,`find /`,`grep -r ${mM(e)} .`];if(!e||e.size===0)return t;let n=null;for(let[t,r]of e){if(typeof r!=`string`)continue;let e=t.replace(/^\.?\//u,``);(n===null||e.length<n.length)&&(n=e)}return n&&t.push(`cat ${n} | head -n 20`),t}var pM=[`TODO`,`FIXME`,`XXX`,`HACK`,`NOTE`,`BUG`,`export`,`import`,`require`,`//`];function mM(e){if(!e||e.size===0)return pM[0];for(let t of pM)for(let n of e.values())if(typeof n==`string`&&n.includes(t))return t;return pM[0]}var hM=class e extends xe{static properties={sources:{attribute:!1},_lines:{state:!0},_input:{state:!0},_cwd:{state:!0},_ghost:{state:!0},_notes:{state:!0},_running:{state:!0}};static styles=ve(lM);#e=null;#t=null;#n=[];#r=-1;#i=``;#a=null;#o=null;static#s=200;#c=new Map;#l=0;static#u=3;static#d=400;constructor(){super(),this.sources=null,this._lines=[],this._input=``,this._cwd=uM,this._ghost=``,this._notes=[],this._running=!1}willUpdate(e){e.has(`sources`)&&this.sources!==this.#t&&(this.#e=this.sources?Gj(this.sources,dM):null,this._cwd=this.#e?this.#e.cwd():uM,this._lines=[{kind:`banner`,commands:fM(this.sources)}],this.#n=[],this.#r=-1,this.#i=``,this.#a=null,this._input=``,this.#T(),this.#t=this.sources),e.has(`_input`)&&(this.#g(),this.#_())}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>this.#f())}disconnectedCallback(){super.disconnectedCallback(),this.#g(),this.#T()}firstUpdated(){this.focusInput()}updated(e){(e.has(`_lines`)||e.has(`sources`))&&this.#f()}focusInput(){let e=this.renderRoot.querySelector(`.input`);e&&e.focus()}#f(){let e=this.renderRoot.querySelector(`.output`);e&&(e.scrollTop=e.scrollHeight)}#p=async e=>{if(e.preventDefault(),!this.#e||this._running)return;let t=this._input,n=this._cwd;if(t.trim().length>0&&(this.#n=[...this.#n,t]),this.#r=-1,this._input=``,t.trim()===`clear`){this._lines=[],this.#T();return}let r;this._running=!0;try{r=await this.#e.run(t)}catch(e){this._lines=[...this._lines,{kind:`prompt`,cwd:n,text:t},{kind:`stderr`,text:`${e?.message??e}
|