@preventive/triage 1.0.0-alpha.45 → 1.0.0-alpha.47
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/client/linked-findings.js +3 -0
- package/common/bundle-metadata.d.ts +1 -0
- package/common/bundle-metadata.js +1 -1
- package/common/bundle-sources.js +5 -1
- package/common/line-diff.js +5 -4
- package/common/managed/agent-tasks.ts +5 -3
- package/common/managed/github-agents.ts +28 -10
- package/out/activity.js +4 -0
- package/out/{chunk-NPW52BM2.js → chunk-4HI2MSAV.js} +13 -13
- package/out/chunk-5AHIQFFG.js +36 -0
- package/out/chunk-6ANSHRFQ.js +6 -0
- package/out/chunk-6WF3KNTL.js +3 -0
- package/out/chunk-7BKKYVWR.js +7 -0
- package/out/{chunk-HMAJDVXN.js → chunk-FH24VHSJ.js} +1 -1
- package/out/chunk-NOZJULWS.js +52 -0
- package/out/{chunk-OKRLLE5I.js → chunk-PWFUOLZK.js} +1 -1
- package/out/chunk-S6U2J62U.js +232 -0
- package/out/chunk-SPEFPML6.js +2 -0
- package/out/chunk-UENXT2HK.js +3 -0
- package/out/chunk-VL43BTSO.js +1 -0
- package/out/{chunk-3PS4KWD2.js → chunk-WCPJDAYA.js} +1 -1
- package/out/chunk-ZCS4UYHI.js +1 -0
- package/out/chunk-ZGNMDGSB.js +1 -0
- package/out/client-managed-import.js +1 -1
- package/out/client-managed.js +15 -15
- package/out/client-sync.js +2 -2
- package/out/compare.js +12 -12
- package/out/dialogs.js +28 -28
- package/out/graph.js +11 -11
- package/out/index.html +11 -11
- package/out/scan.js +2 -2
- package/out/terminal.js +6 -6
- package/out/view.css +1 -1
- package/out/view.js +15 -15
- package/package.json +4 -1
- package/risk/actions/findings.js +14 -9
- package/risk/actions/scripts/shell.js +5 -1
- package/risk/index.d.ts +9 -4
- package/risk/npm/assess.js +15 -4
- package/risk/npm/registry.js +6 -1
- package/server-e2e/app.ts +5 -4
- package/server-e2e/http.ts +5 -2
- package/server-managed/activity.ts +24 -11
- package/server-managed/app-agents.ts +10 -21
- package/server-managed/bundle-build-worker.js +7 -3
- package/server-managed/bundle-build.ts +5 -3
- package/server-managed/bundle-cache.ts +16 -4
- package/server-managed/bundle.ts +3 -4
- package/server-managed/combined.ts +3 -2
- package/server-managed/commit-coauthors.ts +5 -9
- package/server-managed/commit-lockfiles.ts +21 -11
- package/server-managed/config.ts +6 -0
- package/server-managed/db-methods.ts +321 -156
- package/server-managed/db-neon.ts +71 -24
- package/server-managed/db-schema.ts +4 -0
- package/server-managed/db.ts +2 -1
- package/server-managed/dependency-reviews.ts +13 -3
- package/server-managed/github-app.ts +12 -6
- package/server-managed/github-issue-links.ts +11 -5
- package/server-managed/github-pulls.ts +2 -2
- package/server-managed/github-requests.ts +39 -0
- package/server-managed/http-response.ts +10 -2
- package/server-managed/http.ts +269 -143
- package/server-managed/index.ts +8 -7
- package/server-managed/kept-briefly.ts +37 -0
- package/server-managed/link-reports.ts +5 -1
- package/server-managed/npm-delta.ts +11 -6
- package/server-managed/npm-kept.ts +51 -7
- package/server-managed/npm-loads.ts +117 -35
- package/server-managed/npm-packages.ts +107 -14
- package/server-managed/npm-risk.ts +68 -18
- package/server-managed/pretty-print.ts +112 -35
- package/server-managed/pull-dependencies.ts +29 -9
- package/server-managed/pull-dependency-reviews.ts +8 -8
- package/server-managed/queue.ts +16 -0
- package/server-managed/rename-diff.ts +22 -13
- package/server-managed/report-sources.ts +1 -1
- package/server-managed/report-store.ts +50 -12
- package/server-managed/repository-actions.ts +15 -6
- package/server-managed/repository-agents.ts +1 -1
- package/server-managed/repository-browser.ts +123 -33
- package/server-managed/repository-code.ts +28 -11
- package/server-managed/repository-dependency-reviews.ts +41 -19
- package/server-managed/repository-history.ts +24 -8
- package/server-managed/repository-pulse.ts +9 -2
- package/server-managed/repository-risk-audit.ts +13 -0
- package/server-managed/repository-risk-read.ts +11 -6
- package/server-managed/repository-risk.ts +27 -20
- package/server-managed/session.ts +18 -4
- package/server-managed/solidity-entry-points.ts +5 -3
- package/server-managed/sql-postgres.ts +3 -0
- package/server-managed/sql.ts +6 -2
- package/server-managed/storage-db.ts +11 -3
- package/server-managed/storage-encryption.ts +7 -4
- package/server-managed/storage.ts +8 -4
- package/server-managed/team-feed.ts +3 -1
- package/server-managed/team-reports.ts +30 -13
- package/server-managed/uploads.ts +29 -9
- package/server-managed/upstream-cache.ts +12 -0
- package/server.ts +14 -5
- package/out/chunk-5DHL5NG3.js +0 -2
- package/out/chunk-6HNXNIQY.js +0 -52
- package/out/chunk-AFLZH7WG.js +0 -1
- package/out/chunk-NV7ES4EW.js +0 -1
- package/out/chunk-PTGDYLNS.js +0 -36
- package/out/chunk-Q6MVYGYV.js +0 -3
- package/out/chunk-QRD6GIG5.js +0 -229
- package/out/chunk-WI7Z5A2T.js +0 -6
- package/out/chunk-WQ74ZBZF.js +0 -7
- package/out/chunk-XVBEOGOS.js +0 -3
package/out/terminal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as e,b as t,c as n,e as r,f as i}from"./chunk-2ZDZWLFY.js";import{a}from"./chunk-GO7FT4OD.js";import{a as o,b as s,c,e as l,f as u,i as d,j as f,k as p,l as m,m as h}from"./chunk-NPW52BM2.js";import"./chunk-PXK7EU4V.js";import{c as g,d as _}from"./chunk-OKRLLE5I.js";import"./chunk-C4Z6ZBXV.js";import{a as ee,c as v,g as te,j as ne}from"./chunk-2XUEZHIP.js";import"./chunk-OOJM4CTU.js";var re={__proto__:null,ENOENT:`No such file or directory`,ENOTDIR:`Not a directory`,EISDIR:`Is a directory`,EEXIST:`File exists`,ENOTEMPTY:`Directory not empty`,ELOOP:`Too many levels of symbolic links`,EINVAL:`Invalid argument`,EPERM:`Operation not permitted`,EBUSY:`Device or resource busy`,EILSEQ:`Invalid or incomplete multibyte or wide character`,ENAMETOOLONG:`File name too long`},ie=/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}]/gu,ae=e=>`${e}`.replaceAll(ie,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`),oe=(e,t,n=`a string`)=>TypeError(`${e} must be ${n}, not ${t===null?`null`:typeof t}`),y=class extends Error{constructor(e,t){super(`${ae(t)}: ${re[e]??e}`),this.name=`VfsError`,this.code=e,this.path=t}},se=(e,t=`path`)=>{if(typeof e!=`string`)throw oe(t,e);return e};function ce(e,t){let n=Math.min(se(e).length,se(t).length);for(let r=0;r<n;r++)if(e[r]!==t[r])return e.codePointAt(r)-t.codePointAt(r);return e.length-t.length}var le=e=>[...e.entries.keys()].sort(ce),ue=(e,t)=>t===``?e:e===`/`?`/${t}`:`${e}/${t}`;function*de(e,t=e=>e,n=()=>!0){let r=[{name:``,node:e,depth:0}];for(;r.length>0;){let e=r.pop();if(yield t(e),e.node.type!==`directory`||!n(e))continue;let i=le(e.node);for(let t=i.length-1;t>=0;t--){let n=e.name===``?i[t]:`${e.name}/${i[t]}`;r.push({name:n,leaf:i[t],parent:e.node,node:e.node.entries.get(i[t]),depth:e.depth+1})}}}var fe=new Set([`error`,`keep`,`replace`]);function pe(e,t,n=`'error', 'keep' or 'replace'`){if(typeof e!=`string`)throw oe(t,e,n);if(!fe.has(e))throw RangeError(`${t} must be ${n}, not ${JSON.stringify(e)}`);return e}function me({clash:e=`error`,fold:t}){if(typeof e!=`function`&&pe(e,`clash`,`'error', 'keep', 'replace' or a function`),t!==void 0&&typeof t!=`function`)throw oe(`fold`,t,`a function`);return{fold:t,settle:typeof e==`function`?(t,n)=>pe(e(t,n),`what clash returns`):()=>e}}function he(e,t,n,{settle:r,fold:i},a){let o=_e(t,a.copy),s=new Map([[o,{into:e}]]),c=[];for(let{name:e,leaf:t,parent:a,node:l}of de(o,void 0,e=>s.has(e.node))){if(a===void 0)continue;let o=s.get(a),u=o.into.entries.get(t);if(u?.type===`directory`&&l.type===`directory`){s.set(l,{into:u});continue}let d=u===void 0?ve(o,a,t,i):[t];if(d.length>0){let i=ue(n,e),a=r(i,d.map(e=>i.slice(0,-t.length)+e));if(a===`error`)throw new y(`EEXIST`,i);if(a===`keep`)continue}c.push({dir:o.into,name:t,node:l,taken:d})}for(let{dir:e,name:t,node:n,taken:r}of c){for(let e of de(n))a.number(e.node);for(let t of r)e.entries.delete(t);e.entries.set(t,n)}}function*ge(e,t,n){for(let{name:r,node:i}of de(e))if(i.type===`directory`)for(let e of Map.groupBy(le(i),e=>n(e)).values())e.length>1&&(yield{path:ue(t,r),names:e})}function _e(e,t){let n=new Map;for(let{node:r,parent:i,leaf:a}of de(e))n.has(r)||n.set(r,t(r)),i!==void 0&&n.get(i).entries.set(a,n.get(r));return n.get(e)}function ve(e,t,n,r){return r===void 0?[]:(e.keys??=Map.groupBy(le(e.into).filter(e=>!t.entries.has(e)),e=>r(e)),e.keys.get(r(n))??[])}var ye=40,be=255,xe=4096,Se=new Uint8Array,Ce={file:420,directory:493,symlink:511},we=new TextEncoder,Te=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),Ee=e=>typeof e==`string`&&e.endsWith(`/`),De=class{#e;#t=0;constructor(){this.#e=this.#r()}#n(e,t,n=Ce[e],r=0){return{ino:++this.#t,type:e,mode:ze(n),mtime:Be(r),...t}}#r(e,t){return this.#n(`directory`,{entries:new Map},e,t)}#i(e,{follow:t=!0,mkdirs:n=!1,create:r=!1}={}){if(typeof e!=`string`)throw oe(`a path`,e);if(e.includes(`\0`))throw new y(`EINVAL`,e);if(e===``)throw new y(`ENOENT`,e);let i=e.endsWith(`/`),a=[Oe(e)],o=[{name:``,node:this.#e}],s=ye,c,l,u,d;for(;;){for(;a.length>1&&Ae(a.at(-1));)a.pop();if(Ae(a.at(-1))){({name:u,node:d}=o.pop()),c=void 0;break}if(l=a.length>1,u=Me(a.at(-1)),u===`.`)continue;if(u===`..`){o.length>1&&o.pop();continue}c=o.at(-1).node;let f=a.every(Ae);if(d=c.entries.get(u),r&&!f&&a.every(ke)){i=!0;break}if(d===void 0){if(f)break;if(!n||l)throw new y(`ENOENT`,e);Ie(u,e),d=this.#r(),c.entries.set(u,d)}if(d.type===`symlink`&&(!f||t)){if(s--===0)throw new y(`ELOOP`,e);d.target.startsWith(`/`)&&(o.length=1),a.push(Oe(d.target,!0));continue}if(f){if(i&&!r&&d.type!==`directory`)throw new y(`ENOTDIR`,e);break}if(d.type!==`directory`)throw new y(`ENOTDIR`,e);o.push({name:u,node:d})}return{dir:c,name:u,node:d,trailing:i,chain:o,linked:l}}#a(e,t=!0){let n=this.#i(e,{follow:t});if(n.node===void 0)throw new y(`ENOENT`,e);return n}#o(e,t){return this.#a(e,t).node}#s(e,t,n){Ie(e.name,n),e.dir.entries.set(e.name,t)}#c(e,t){if(e.dir!==void 0)return e.dir;throw new y(je(t,0)===t.length?`EBUSY`:`EINVAL`,t)}#l(e,t,n){try{return this.#o(e,n).type===t}catch(e){if(e instanceof y)return!1;throw e}}stat(e){return Pe(this.#o(e,!0))}lstat(e){return Pe(this.#o(e,Ee(e)))}isFile(e){return this.#l(e,`file`,!0)}isDirectory(e){return this.#l(e,`directory`,!0)}isSymlink(e){return this.#l(e,`symlink`,!1)}realpath(e){return Ne(this.#a(e))}readFile(e){let t=this.#o(e,!0);if(t.type===`directory`)throw new y(`EISDIR`,e);return t.bytes}readText(e){let t=this.readFile(e);try{return Te.decode(t)}catch{throw new y(`EILSEQ`,e)}}readlink(e){let t=this.#o(e,Ee(e));if(t.type!==`symlink`)throw new y(`EINVAL`,e);return t.target}readdir(e){let t=this.#o(e,!0);if(t.type!==`directory`)throw new y(`ENOTDIR`,e);return le(t)}#u(e,t,n,r,i){let a=Ve(t,e),o=this.#i(e,{follow:!Ee(e),create:!0});if(o.trailing||o.node?.type===`directory`)throw new y(`EISDIR`,e);o.node===void 0?this.#s(o,this.#n(`file`,{bytes:a},r,i),e):n(o.node,a)}writeFile(e,t,{mode:n,mtime:r}={}){this.#u(e,t,(e,t)=>Object.assign(e,{bytes:t,...Fe(e,n,r)}),n,r)}appendFile(e,t){this.#u(e,t,(e,t)=>{e.bytes=Ue(e.bytes,t)})}mkdir(e,{recursive:t=!1,mode:n,mtime:r}={}){let i=this.#i(e,{follow:t,mkdirs:t,create:!t});if(i.node===void 0){if(i.linked)throw new y(`ENOENT`,e);this.#s(i,this.#r(n,r),e)}else if(!t||i.node.type!==`directory`)throw new y(`EEXIST`,e)}symlink(e,t,{mode:n,mtime:r}={}){if(typeof e!=`string`)throw oe(`a link target`,e);if(e===``||e.includes(`\0`))throw new y(`EINVAL`,t);Ie(e,t,xe),this.#s(this.#d(t),this.#n(`symlink`,{target:e,size:Le(e)},n,r),t)}hardlink(e,t){let n=this.#o(e,Ee(e)),r=this.#d(t);if(n.type===`directory`)throw new y(`EPERM`,e);this.#s(r,n,t)}#d(e){let t=this.#i(e,{follow:!1,create:!0});if(t.node!==void 0)throw new y(`EEXIST`,e);if(t.trailing)throw new y(`ENOENT`,e);return t}unlink(e){this.rm(e)}rmdir(e){let t=this.#a(e,!1);if(t.node.type!==`directory`)throw new y(`ENOTDIR`,e);let n=this.#c(t,e);if(t.node.entries.size>0)throw new y(`ENOTEMPTY`,e);n.entries.delete(t.name)}rm(e,{recursive:t=!1}={}){let n=this.#a(e,!1);if(n.node.type===`directory`&&!t)throw new y(`EISDIR`,e);this.#c(n,e).entries.delete(n.name)}rename(e,t){let n=this.#i(e,{follow:!1,create:!0}),r=this.#i(t,{follow:!1,create:!0}),i=this.#c(n,e),a=this.#c(r,t);if(n.node===void 0)throw new y(`ENOENT`,e);Ie(r.name,t);let o=n.node.type===`directory`;if(!o&&(n.trailing||r.trailing))throw new y(`ENOTDIR`,n.trailing?e:t);if(r.chain.some(e=>e.node===n.node))throw new y(`EINVAL`,t);if(n.chain.some(e=>e.node===r.node))throw new y(`ENOTEMPTY`,t);if(r.node!==n.node){if(r.node!==void 0&&r.node.type===`directory`!==o)throw new y(o?`ENOTDIR`:`EISDIR`,t);if(r.node?.type===`directory`&&r.node.entries.size>0)throw new y(`ENOTEMPTY`,t);i.entries.delete(n.name),a.entries.set(r.name,n.node)}}chmod(e,t){this.#o(e,!0).mode=ze(t)}utimes(e,t){this.#o(e,!0).mtime=Be(t)}mount(e,t=`/`,n={}){if(typeof e!=`object`||!e||!(#e in e))throw oe(`a tree`,e,`a Vfs`);let r=me(n),i=this.#a(t);if(i.node.type!==`directory`)throw new y(`ENOTDIR`,t);he(i.node,e.#e,Ne(i),r,{copy:He,number:e=>{e.ino||=++this.#t}})}walk(e=`/`){let t=this.#a(e),n=Ne(t);return de(t.node,({name:e,node:t,depth:r})=>({path:ue(n,e),type:t.type,depth:r}))}collisions(e,t=`/`){if(typeof e!=`function`)throw oe(`fold`,e,`a function`);let n=this.#a(t);return ge(n.node,Ne(n),e)}entries(e=`/`){let t=this.#a(e),n=t.node.type===`directory`?`.`:t.name,r=new Map;return de(t.node,({name:e,node:t})=>{let i=e===``?n:e,a={name:i,type:t.type,mode:t.mode,mtime:t.mtime,linkname:``,data:Se},o=r.get(t);return o===void 0?t.type===`symlink`?(r.set(t,i),a.linkname=t.target):t.type===`file`&&(r.set(t,i),a.data=t.bytes):(a.type=`hardlink`,a.linkname=o),a})}},Oe=(e,t=!1)=>({text:e,at:je(e,0),dot:t&&e.endsWith(`/`)}),ke=e=>e.at===e.text.length,Ae=e=>ke(e)&&!e.dot,je=(e,t)=>{let n=t;for(;e[n]===`/`;)n++;return n};function Me(e){if(ke(e))return e.dot=!1,`.`;let t=e.text.indexOf(`/`,e.at),n=t===-1?e.text.length:t,r=e.text.slice(e.at,n);return e.at=je(e.text,n),r}var Ne=({chain:e,name:t})=>`/${[...e.slice(1).map(e=>e.name),t].filter(Boolean).join(`/`)}`,Pe=e=>({type:e.type,ino:e.ino,mode:e.mode,mtime:e.mtime,size:e.bytes?.length??e.size??0}),Fe=(e,t=e.mode,n=e.mtime)=>({mode:ze(t),mtime:Be(n)});function Ie(e,t,n=be){if(!e.isWellFormed())throw new y(`EILSEQ`,t);if(Re(e,n))throw new y(`ENAMETOOLONG`,t)}function Le(e){let t=0;for(let n of e){let e=n.codePointAt(0);t+=e<128?1:e<2048?2:e<65536?3:4}return t}var Re=(e,t)=>e.length>t||e.length*3>t&&Le(e)>t;function ze(e){if(!Number.isInteger(e)||e<0||e>4095)throw RangeError(`a mode must be an integer from 0 to 0o7777, not ${e}`);return e}function Be(e){if(!Number.isSafeInteger(e))throw RangeError(`an mtime must be an integer of whole seconds, not ${e}`);return e}function Ve(e,t){if(typeof e==`string`){if(!e.isWellFormed())throw new y(`EILSEQ`,t);return we.encode(e)}if(e instanceof Uint8Array)return new Uint8Array(e);throw oe(`file contents`,e,`a string or a Uint8Array`)}function He({type:e,mode:t,mtime:n,bytes:r,target:i,size:a}){let o={ino:0,type:e,mode:t,mtime:n};return e===`directory`?o.entries=new Map:e===`symlink`?Object.assign(o,{target:i,size:a}):o.bytes=r.byteOffset+r.length===r.buffer.byteLength?r:r.slice(),o}function Ue(e,t){let n=e.length+t.length,r=e.byteOffset+n<=e.buffer.byteLength,i=r?new Uint8Array(e.buffer,e.byteOffset,n):new Uint8Array(Math.max(n,e.length*2)).subarray(0,n);return r||i.set(e),i.set(t,e.length),i}var b=(e=``)=>({stdout:e,stderr:``,exitCode:0}),x=(e,t=1)=>({stdout:``,stderr:e.endsWith(`
|
|
1
|
+
import{a as e}from"./chunk-GO7FT4OD.js";import{a as t,b as n,c as r,e as i,f as a}from"./chunk-2ZDZWLFY.js";import{a as o,b as s,c,d as l,e as u,h as d,i as f,j as p,k as m,l as h}from"./chunk-4HI2MSAV.js";import"./chunk-PXK7EU4V.js";import{a as g,d as _}from"./chunk-PWFUOLZK.js";import"./chunk-C4Z6ZBXV.js";import{a as ee,c as v,g as te,j as ne}from"./chunk-2XUEZHIP.js";import"./chunk-OOJM4CTU.js";var re={__proto__:null,ENOENT:`No such file or directory`,ENOTDIR:`Not a directory`,EISDIR:`Is a directory`,EEXIST:`File exists`,ENOTEMPTY:`Directory not empty`,ELOOP:`Too many levels of symbolic links`,EINVAL:`Invalid argument`,EPERM:`Operation not permitted`,EBUSY:`Device or resource busy`,EILSEQ:`Invalid or incomplete multibyte or wide character`,ENAMETOOLONG:`File name too long`},ie=/[\p{Cc}\p{Zl}\p{Zp}\p{Bidi_Control}]/gu,ae=e=>`${e}`.replaceAll(ie,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,`0`)}`),oe=(e,t,n=`a string`)=>TypeError(`${e} must be ${n}, not ${t===null?`null`:typeof t}`),y=class extends Error{constructor(e,t){super(`${ae(t)}: ${re[e]??e}`),this.name=`VfsError`,this.code=e,this.path=t}},se=(e,t=`path`)=>{if(typeof e!=`string`)throw oe(t,e);return e};function ce(e,t){let n=Math.min(se(e).length,se(t).length);for(let r=0;r<n;r++)if(e[r]!==t[r])return e.codePointAt(r)-t.codePointAt(r);return e.length-t.length}var le=e=>[...e.entries.keys()].sort(ce),ue=(e,t)=>t===``?e:e===`/`?`/${t}`:`${e}/${t}`;function*de(e,t=e=>e,n=()=>!0){let r=[{name:``,node:e,depth:0}];for(;r.length>0;){let e=r.pop();if(yield t(e),e.node.type!==`directory`||!n(e))continue;let i=le(e.node);for(let t=i.length-1;t>=0;t--){let n=e.name===``?i[t]:`${e.name}/${i[t]}`;r.push({name:n,leaf:i[t],parent:e.node,node:e.node.entries.get(i[t]),depth:e.depth+1})}}}var fe=new Set([`error`,`keep`,`replace`]);function pe(e,t,n=`'error', 'keep' or 'replace'`){if(typeof e!=`string`)throw oe(t,e,n);if(!fe.has(e))throw RangeError(`${t} must be ${n}, not ${JSON.stringify(e)}`);return e}function me({clash:e=`error`,fold:t}){if(typeof e!=`function`&&pe(e,`clash`,`'error', 'keep', 'replace' or a function`),t!==void 0&&typeof t!=`function`)throw oe(`fold`,t,`a function`);return{fold:t,settle:typeof e==`function`?(t,n)=>pe(e(t,n),`what clash returns`):()=>e}}function he(e,t,n,{settle:r,fold:i},a){let o=_e(t,a.copy),s=new Map([[o,{into:e}]]),c=[];for(let{name:e,leaf:t,parent:a,node:l}of de(o,void 0,e=>s.has(e.node))){if(a===void 0)continue;let o=s.get(a),u=o.into.entries.get(t);if(u?.type===`directory`&&l.type===`directory`){s.set(l,{into:u});continue}let d=u===void 0?ve(o,a,t,i):[t];if(d.length>0){let i=ue(n,e),a=r(i,d.map(e=>i.slice(0,-t.length)+e));if(a===`error`)throw new y(`EEXIST`,i);if(a===`keep`)continue}c.push({dir:o.into,name:t,node:l,taken:d})}for(let{dir:e,name:t,node:n,taken:r}of c){for(let e of de(n))a.number(e.node);for(let t of r)e.entries.delete(t);e.entries.set(t,n)}}function*ge(e,t,n){for(let{name:r,node:i}of de(e))if(i.type===`directory`)for(let e of Map.groupBy(le(i),e=>n(e)).values())e.length>1&&(yield{path:ue(t,r),names:e})}function _e(e,t){let n=new Map;for(let{node:r,parent:i,leaf:a}of de(e))n.has(r)||n.set(r,t(r)),i!==void 0&&n.get(i).entries.set(a,n.get(r));return n.get(e)}function ve(e,t,n,r){return r===void 0?[]:(e.keys??=Map.groupBy(le(e.into).filter(e=>!t.entries.has(e)),e=>r(e)),e.keys.get(r(n))??[])}var ye=40,be=255,xe=4096,Se=new Uint8Array,Ce={file:420,directory:493,symlink:511},we=new TextEncoder,Te=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}),Ee=e=>typeof e==`string`&&e.endsWith(`/`),De=class{#e;#t=0;constructor(){this.#e=this.#r()}#n(e,t,n=Ce[e],r=0){return{ino:++this.#t,type:e,mode:ze(n),mtime:Be(r),...t}}#r(e,t){return this.#n(`directory`,{entries:new Map},e,t)}#i(e,{follow:t=!0,mkdirs:n=!1,create:r=!1}={}){if(typeof e!=`string`)throw oe(`a path`,e);if(e.includes(`\0`))throw new y(`EINVAL`,e);if(e===``)throw new y(`ENOENT`,e);let i=e.endsWith(`/`),a=[Oe(e)],o=[{name:``,node:this.#e}],s=ye,c,l,u,d;for(;;){for(;a.length>1&&Ae(a.at(-1));)a.pop();if(Ae(a.at(-1))){({name:u,node:d}=o.pop()),c=void 0;break}if(l=a.length>1,u=Me(a.at(-1)),u===`.`)continue;if(u===`..`){o.length>1&&o.pop();continue}c=o.at(-1).node;let f=a.every(Ae);if(d=c.entries.get(u),r&&!f&&a.every(ke)){i=!0;break}if(d===void 0){if(f)break;if(!n||l)throw new y(`ENOENT`,e);Ie(u,e),d=this.#r(),c.entries.set(u,d)}if(d.type===`symlink`&&(!f||t)){if(s--===0)throw new y(`ELOOP`,e);d.target.startsWith(`/`)&&(o.length=1),a.push(Oe(d.target,!0));continue}if(f){if(i&&!r&&d.type!==`directory`)throw new y(`ENOTDIR`,e);break}if(d.type!==`directory`)throw new y(`ENOTDIR`,e);o.push({name:u,node:d})}return{dir:c,name:u,node:d,trailing:i,chain:o,linked:l}}#a(e,t=!0){let n=this.#i(e,{follow:t});if(n.node===void 0)throw new y(`ENOENT`,e);return n}#o(e,t){return this.#a(e,t).node}#s(e,t,n){Ie(e.name,n),e.dir.entries.set(e.name,t)}#c(e,t){if(e.dir!==void 0)return e.dir;throw new y(je(t,0)===t.length?`EBUSY`:`EINVAL`,t)}#l(e,t,n){try{return this.#o(e,n).type===t}catch(e){if(e instanceof y)return!1;throw e}}stat(e){return Pe(this.#o(e,!0))}lstat(e){return Pe(this.#o(e,Ee(e)))}isFile(e){return this.#l(e,`file`,!0)}isDirectory(e){return this.#l(e,`directory`,!0)}isSymlink(e){return this.#l(e,`symlink`,!1)}realpath(e){return Ne(this.#a(e))}readFile(e){let t=this.#o(e,!0);if(t.type===`directory`)throw new y(`EISDIR`,e);return t.bytes}readText(e){let t=this.readFile(e);try{return Te.decode(t)}catch{throw new y(`EILSEQ`,e)}}readlink(e){let t=this.#o(e,Ee(e));if(t.type!==`symlink`)throw new y(`EINVAL`,e);return t.target}readdir(e){let t=this.#o(e,!0);if(t.type!==`directory`)throw new y(`ENOTDIR`,e);return le(t)}#u(e,t,n,r,i){let a=Ve(t,e),o=this.#i(e,{follow:!Ee(e),create:!0});if(o.trailing||o.node?.type===`directory`)throw new y(`EISDIR`,e);o.node===void 0?this.#s(o,this.#n(`file`,{bytes:a},r,i),e):n(o.node,a)}writeFile(e,t,{mode:n,mtime:r}={}){this.#u(e,t,(e,t)=>Object.assign(e,{bytes:t,...Fe(e,n,r)}),n,r)}appendFile(e,t){this.#u(e,t,(e,t)=>{e.bytes=Ue(e.bytes,t)})}mkdir(e,{recursive:t=!1,mode:n,mtime:r}={}){let i=this.#i(e,{follow:t,mkdirs:t,create:!t});if(i.node===void 0){if(i.linked)throw new y(`ENOENT`,e);this.#s(i,this.#r(n,r),e)}else if(!t||i.node.type!==`directory`)throw new y(`EEXIST`,e)}symlink(e,t,{mode:n,mtime:r}={}){if(typeof e!=`string`)throw oe(`a link target`,e);if(e===``||e.includes(`\0`))throw new y(`EINVAL`,t);Ie(e,t,xe),this.#s(this.#d(t),this.#n(`symlink`,{target:e,size:Le(e)},n,r),t)}hardlink(e,t){let n=this.#o(e,Ee(e)),r=this.#d(t);if(n.type===`directory`)throw new y(`EPERM`,e);this.#s(r,n,t)}#d(e){let t=this.#i(e,{follow:!1,create:!0});if(t.node!==void 0)throw new y(`EEXIST`,e);if(t.trailing)throw new y(`ENOENT`,e);return t}unlink(e){this.rm(e)}rmdir(e){let t=this.#a(e,!1);if(t.node.type!==`directory`)throw new y(`ENOTDIR`,e);let n=this.#c(t,e);if(t.node.entries.size>0)throw new y(`ENOTEMPTY`,e);n.entries.delete(t.name)}rm(e,{recursive:t=!1}={}){let n=this.#a(e,!1);if(n.node.type===`directory`&&!t)throw new y(`EISDIR`,e);this.#c(n,e).entries.delete(n.name)}rename(e,t){let n=this.#i(e,{follow:!1,create:!0}),r=this.#i(t,{follow:!1,create:!0}),i=this.#c(n,e),a=this.#c(r,t);if(n.node===void 0)throw new y(`ENOENT`,e);Ie(r.name,t);let o=n.node.type===`directory`;if(!o&&(n.trailing||r.trailing))throw new y(`ENOTDIR`,n.trailing?e:t);if(r.chain.some(e=>e.node===n.node))throw new y(`EINVAL`,t);if(n.chain.some(e=>e.node===r.node))throw new y(`ENOTEMPTY`,t);if(r.node!==n.node){if(r.node!==void 0&&r.node.type===`directory`!==o)throw new y(o?`ENOTDIR`:`EISDIR`,t);if(r.node?.type===`directory`&&r.node.entries.size>0)throw new y(`ENOTEMPTY`,t);i.entries.delete(n.name),a.entries.set(r.name,n.node)}}chmod(e,t){this.#o(e,!0).mode=ze(t)}utimes(e,t){this.#o(e,!0).mtime=Be(t)}mount(e,t=`/`,n={}){if(typeof e!=`object`||!e||!(#e in e))throw oe(`a tree`,e,`a Vfs`);let r=me(n),i=this.#a(t);if(i.node.type!==`directory`)throw new y(`ENOTDIR`,t);he(i.node,e.#e,Ne(i),r,{copy:He,number:e=>{e.ino||=++this.#t}})}walk(e=`/`){let t=this.#a(e),n=Ne(t);return de(t.node,({name:e,node:t,depth:r})=>({path:ue(n,e),type:t.type,depth:r}))}collisions(e,t=`/`){if(typeof e!=`function`)throw oe(`fold`,e,`a function`);let n=this.#a(t);return ge(n.node,Ne(n),e)}entries(e=`/`){let t=this.#a(e),n=t.node.type===`directory`?`.`:t.name,r=new Map;return de(t.node,({name:e,node:t})=>{let i=e===``?n:e,a={name:i,type:t.type,mode:t.mode,mtime:t.mtime,linkname:``,data:Se},o=r.get(t);return o===void 0?t.type===`symlink`?(r.set(t,i),a.linkname=t.target):t.type===`file`&&(r.set(t,i),a.data=t.bytes):(a.type=`hardlink`,a.linkname=o),a})}},Oe=(e,t=!1)=>({text:e,at:je(e,0),dot:t&&e.endsWith(`/`)}),ke=e=>e.at===e.text.length,Ae=e=>ke(e)&&!e.dot,je=(e,t)=>{let n=t;for(;e[n]===`/`;)n++;return n};function Me(e){if(ke(e))return e.dot=!1,`.`;let t=e.text.indexOf(`/`,e.at),n=t===-1?e.text.length:t,r=e.text.slice(e.at,n);return e.at=je(e.text,n),r}var Ne=({chain:e,name:t})=>`/${[...e.slice(1).map(e=>e.name),t].filter(Boolean).join(`/`)}`,Pe=e=>({type:e.type,ino:e.ino,mode:e.mode,mtime:e.mtime,size:e.bytes?.length??e.size??0}),Fe=(e,t=e.mode,n=e.mtime)=>({mode:ze(t),mtime:Be(n)});function Ie(e,t,n=be){if(!e.isWellFormed())throw new y(`EILSEQ`,t);if(Re(e,n))throw new y(`ENAMETOOLONG`,t)}function Le(e){let t=0;for(let n of e){let e=n.codePointAt(0);t+=e<128?1:e<2048?2:e<65536?3:4}return t}var Re=(e,t)=>e.length>t||e.length*3>t&&Le(e)>t;function ze(e){if(!Number.isInteger(e)||e<0||e>4095)throw RangeError(`a mode must be an integer from 0 to 0o7777, not ${e}`);return e}function Be(e){if(!Number.isSafeInteger(e))throw RangeError(`an mtime must be an integer of whole seconds, not ${e}`);return e}function Ve(e,t){if(typeof e==`string`){if(!e.isWellFormed())throw new y(`EILSEQ`,t);return we.encode(e)}if(e instanceof Uint8Array)return new Uint8Array(e);throw oe(`file contents`,e,`a string or a Uint8Array`)}function He({type:e,mode:t,mtime:n,bytes:r,target:i,size:a}){let o={ino:0,type:e,mode:t,mtime:n};return e===`directory`?o.entries=new Map:e===`symlink`?Object.assign(o,{target:i,size:a}):o.bytes=r.byteOffset+r.length===r.buffer.byteLength?r:r.slice(),o}function Ue(e,t){let n=e.length+t.length,r=e.byteOffset+n<=e.buffer.byteLength,i=r?new Uint8Array(e.buffer,e.byteOffset,n):new Uint8Array(Math.max(n,e.length*2)).subarray(0,n);return r||i.set(e),i.set(t,e.length),i}var b=(e=``)=>({stdout:e,stderr:``,exitCode:0}),x=(e,t=1)=>({stdout:``,stderr:e.endsWith(`
|
|
2
2
|
`)?e:e+`
|
|
3
|
-
`,exitCode:t}),We=(e,t=1)=>x(`usage: ${e}`,t),Ge=Symbol(`unsupported`);function S(e){if(e==null)return null;try{return e[Ge]??null}catch{return null}}function C(e,t,n,r,i=1){return w(x(r,i),e,t,n,r)}function w(e,t,n,r,i){return Object.defineProperty(e,Ge,{value:{kind:t,command:n,detail:r,message:i},enumerable:!1,configurable:!0}),e}function Ke(e,t,n,r){let i=S(e);return i?C(i.kind,t,i.detail,n,r):x(n,r)}var T=class extends Error{constructor(e,t,n){super(n),this.name=`UnsupportedError`,w(this,e,null,t,n)}};function qe(){let e=new Set,t=[];return{entries:t,add(n,r=n.command){let i=JSON.stringify([n.kind,r,n.detail]);e.has(i)||(e.add(i),t.push(Object.freeze(n)))}}}function E(e){try{return f(e)}catch(e){throw e instanceof TypeError?new T(`feature`,`unpaired surrogate`,`unpaired UTF-16 surrogates cannot be encoded as UTF-8`):e}}var Je=e=>e<128?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0;function*Ye(e){for(let t=0;t<e.length;){let n=nt[e[t]],r=n===1?e[t]:n===0?-1:Ze(e,t,n);yield r,t+=r<0?1:n}}var Xe=[0,0,128,2048,65536];function Ze(e,t,n){if(t+n>e.length)return-1;let r=e[t]&127>>n;for(let i=1;i<n;i++){if((e[t+i]&192)!=128)return-1;r=r<<6|e[t+i]&63}return r<Xe[n]||r>1114111||r>=55296&&r<=57343?-1:r}var Qe=e=>h(e);function $e(e){let t;try{t=m(e)}catch{}return t}function et(e){let t=$e(e);if(t!==void 0)return t;let n=new Uint16Array(e.length),r=0;for(let t=0;t<e.length;){let i=nt[e[t]],a=i===1?e[t]:i===0?-1:Ze(e,t,i);if(a<0){n[r++]=56320+e[t++];continue}a>65535?(n[r++]=55232+(a>>10),n[r++]=56320+(a&1023)):n[r++]=a,t+=i}let i=``;for(let e=0;e<r;e+=tt)i+=String.fromCharCode.apply(null,n.subarray(e,Math.min(r,e+tt)));return i}var tt=4096,nt=Uint8Array.from({length:256},(e,t)=>Je(t)),rt=`\\uDC80-\\uDCFF`,it=RegExp(`[${rt}]`,`u`),at=e=>e>=56448&&e<=56575;function ot(e){if(!it.test(e))return E(e);let t=new Uint8Array(e.length*3),n=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);if(i<128)t[n++]=i;else if(at(i))t[n++]=i-56320;else if(i<2048)n=st(t,n,192|i>>6,i,1);else if(i<65536){if(i>=55296&&i<=57343)return E(e);n=st(t,n,224|i>>12,i,2)}else n=st(t,n,240|i>>18,i,3),r++}return t.slice(0,n)}function st(e,t,n,r,i){e[t++]=n;for(let n=i-1;n>=0;n--)e[t++]=128|r>>6*n&63;return t}function ct(e){if(e.length===1)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}function D(e){try{return m(e)}catch{throw new T(`feature`,`partial UTF-8 byte sequence`,`byte output that is not valid UTF-8 cannot be represented by this string-based terminal`)}}function lt(e){let t=e.startsWith(`/`),n=e.split(`/`).filter(Boolean),r=[];for(let e of n)if(e!==`.`){if(e===`..`){r.length>0&&r.at(-1)!==`..`?r.pop():t||r.push(`..`);continue}r.push(e)}return t?`/`+r.join(`/`):r.length===0?`.`:r.join(`/`)}function O(e,t){return t.startsWith(`/`)?lt(t):lt(e+`/`+t)}var ut=40,dt=(e,t)=>e.isLink?.(t)===!0;function k(e,t,n,{follow:r=!0}={}){let i=ft(e,t,n,{follow:r});return i.error?{path:null,error:i.error}:t.endsWith(`/`)&&!n.isDir(i.path)?{path:null,error:`Not a directory`}:{path:i.path,error:null}}function ft(e,t,n,{follow:r=!0,lenient:i=!1}={}){if(t===``||t.includes(`\0`))return{path:`/`,error:`No such file or directory`,rest:[]};let a=(t.startsWith(`/`)?t:e+`/`+t).split(`/`).filter(Boolean),o=r||t.endsWith(`/`),s=ut,c=`/`;for(;a.length>0;){let e=a.shift();if(!n.isDir(c)){if(!i){let t=n.isFile(c)||dt(n,c)?`Not a directory`:`No such file or directory`;return{path:c,error:t,rest:[e,...a]}}e===`..`?c=j(c):e!==`.`&&(c=ht(c,e));continue}if(e===`..`){c=j(c);continue}if(e!==`.`&&(c=ht(c,e)),!dt(n,c)||a.length===0&&!o)continue;if(s--===0)return{path:c,error:`Too many levels of symbolic links`,rest:[...a]};let t=n.readLink(c);c=t.startsWith(`/`)?`/`:j(c),a.unshift(...t.split(`/`).filter(Boolean),...t.endsWith(`/`)?[`.`]:[])}let l=!n.isDir(c)&&!n.isFile(c)&&!dt(n,c);return{path:c,error:l?`No such file or directory`:null,rest:[]}}var A=(e,t,n,r=!0)=>n===``||n.includes(`\0`)?O(t,n):ft(t,n,e,{follow:r,lenient:!0}).path;function pt(e,t,n,r=k(e,t,n)){if(r.path!==null)return null;if(t===``||t.includes(`\0`)||t.endsWith(`/`)||r.error!==`No such file or directory`)return r.error;let i=ft(e,t,n);return i.rest.length>0?i.error:n.isDir(j(i.path))?null:`Not a directory`}function j(e){let t=lt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return n<0?`.`:n===0?`/`:t.slice(0,n)}function mt(e){let t=lt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return t.slice(n+1)}function M(e,t){for(let n=0;n<Math.min(e.length,t.length);n++)if(e[n]!==t[n])return e.codePointAt(n)-t.codePointAt(n);return e.length-t.length}function ht(e,t){return e===`/`?`/`+t:e+`/`+t}function gt(e,t){return e===`/`?t.slice(1):t.slice(e.length+1)}function _t(e,t,n=`reading them as text`){let r=$e(e);if(r===void 0)throw new T(`feature`,`binary file`,`${t} holds bytes that spell no text, and ${n} is not supported`);return r}var vt=(e,t)=>e!==void 0&&t!==void 0&&e.length===t.length&&e.every((e,n)=>e===t[n]);function*yt(e,t,n=1/0,r=()=>!0){if(e.isFile(t)){yield{path:t,kind:`file`,depth:0};return}if(!e.isDir(t)){dt(e,t)&&(yield{path:t,kind:`link`,depth:0});return}let i=[{path:t,kind:`dir`,depth:0}];for(;i.length;){let t=i.pop();if(yield t,t.kind!==`dir`||t.depth>=n||!r(t.path))continue;let{dirs:a,files:o,links:s=[]}=e.listDir(t.path),c=a.length-1,l=o.length-1,u=s.length-1;for(;c>=0||l>=0||u>=0;){let e=c>=0?`dir`:null,n=c>=0?a[c]:null;l>=0&&(n===null||M(o[l],n)>=0)&&(e=`file`,n=o[l]),u>=0&&(n===null||M(s[u],n)>=0)&&(e=`link`,n=s[u]),e===`dir`?c--:e===`file`?l--:u--,i.push({path:ht(t.path,n),kind:e,depth:t.depth+1})}}}function*bt(e,t){for(let n of yt(e,t))n.kind===`file`&&(yield n.path)}function xt(e,t=`/`){let n=new De;try{n.mkdir(t,{recursive:!0})}catch(e){throw wt(e,`mount ${JSON.stringify(t)}`)}let r={declared:new Map,made:new Set([`/`,t])};for(let[i,a]of jt(e)){let e=String(i);if(e.includes(`\0`))throw TypeError(`createTerminal: source paths must not contain NUL characters`);let o=Pt(a,e),s=lt(`/`+e);St(n,r,t===`/`?s:s===`/`?t:t+s,o,e)}return kt(n)}function St(e,t,n,r,i){let a=t.declared.get(n);if(a!==void 0){if(a===r.type&&Tt(e,n,r))return;throw TypeError(`createTerminal: source ${JSON.stringify(i)} names the same path as an earlier source, which declared something else there`)}t.declared.set(n,r.type);let o=n.slice(0,n.lastIndexOf(`/`))||`/`;if(!t.made.has(o)){try{e.mkdir(o,{recursive:!0})}catch(e){throw e?.code===`ENOENT`?Ct(i):wt(e?.code===`EEXIST`?new y(`ENOTDIR`,o):e,`source ${JSON.stringify(i)}`)}if(e.realpath(o)!==o)throw Ct(i);t.made.add(o)}try{if(r.type===`file`)e.writeFile(n,r.data);else if(r.type===`symlink`)e.symlink(r.target,n);else{try{e.mkdir(n)}catch(t){if(t?.code!==`EEXIST`||e.lstat(n).type!==`directory`)throw t}t.made.add(n)}}catch(e){throw wt(e,`source ${JSON.stringify(i)}`)}}var Ct=e=>TypeError(`createTerminal: source ${JSON.stringify(e)} is declared through a symbolic link; declare it where the link leads`);function wt(e,t){return e instanceof y?TypeError(`createTerminal: ${t}: ${e.message}`,{cause:e}):e}function Tt(e,t,n){return n.type===`directory`?!0:n.type===`symlink`?e.readlink(t)===n.target:vt(e.readFile(t),typeof n.data==`string`?E(n.data):n.data)}var Et={directory:`dirs`,file:`files`,symlink:`links`},Dt=e=>e.slice(0,e.lastIndexOf(`/`))||`/`,Ot=()=>({dirs:[],files:[],links:[]});function kt(e){let t=null,n=null,r={children:new Map,types:new Map},i=()=>n??=At(e,o),a=new WeakMap,o=e=>t!==null&&(e===t||e.startsWith(t+`/`)),s=t=>{let n=r.children.get(t);if(n!==void 0)return n;n={listing:Ot(),types:new Map};for(let r of e.readdir(t)){let{type:i}=e.lstat(ht(t,r));n.types.set(r,i),n.listing[Et[i]].push(r)}return r.children.set(t,n),n},c=e=>{if(typeof e!=`string`||!e.startsWith(`/`))return;if(e===`/`)return`directory`;let t=[],n=e;for(;o(Dt(n))&&!r.types.has(n);)t.push(n),n=Dt(n);let a=o(Dt(n))?r.types.get(n):i().types.get(n)??``;for(let e=t.length-1;e>=0;e--){let n=t[e];a=a===`directory`?s(Dt(n)).types.get(n.slice(n.lastIndexOf(`/`)+1))??``:``,r.types.set(n,a)}return a||void 0},l=t=>c(t)===void 0?void 0:e.lstat(t),u=t=>c(t)===`file`?e.readFile(t):void 0,d={vfs:e,writableAt:e=>{t=e,n=null,r={children:new Map,types:new Map}},reshaped:()=>{r={children:new Map,types:new Map}},isFile:e=>c(e)===`file`,isDir:e=>c(e)===`directory`,isLink:e=>c(e)===`symlink`,readLink:t=>c(t)===`symlink`?e.readlink(t):void 0,readFile:e=>{let t=u(e),n=t&&a.get(t);return t&&n===void 0&&a.set(t,n=_t(t,JSON.stringify(e))),n},readBytes:e=>u(e),fileSize:e=>{let t=l(e);return t===void 0||t.type===`directory`?void 0:t.size},sameFileContents:(e,t)=>vt(u(e),u(t)),exactBytes:u,isBytes:e=>c(e)===`file`,isEmptyFile:e=>{let t=l(e);return t?.type===`file`&&t.size===0},listDir:e=>{if(c(e)!==`directory`)throw Error(`not a directory: ${e}`);return o(e)?s(e).listing:i().children.get(e)},walkFiles:e=>bt(d,e)};return d}function At(e,t){let n=new Map([[`/`,Ot()]]),r=new Map([[`/`,`directory`]]),i=[`/`];for(let{path:a,type:o,depth:s}of e.walk(`/`)){if(s===0)continue;let e=i[s-1];o===`directory`&&(i[s]=a),!t(e)&&(o===`directory`&&n.set(a,Ot()),n.get(e)[Et[o]].push(a.slice(e.length+(e===`/`?0:1))),r.set(a,o))}return{children:n,types:r}}function jt(e){try{return Map.prototype.entries.call(e)}catch{return Object.entries(e??{})}}var Mt={file:[`data`],directory:[],symlink:[`target`]},Nt=new Set([`mode`,`mtime`]);function Pt(e,t){let n=JSON.stringify(t);if(typeof e==`string`)return{type:`file`,data:Ft(e,t)};if(ArrayBuffer.isView(e))return{type:`file`,data:Lt(e,t)};if(e instanceof ArrayBuffer)throw TypeError(`createTerminal: source ${n} is an ArrayBuffer; declare a file's bytes as a Uint8Array over it`);if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`createTerminal: source ${n} is ${e===null?`null`:Array.isArray(e)?`an array`:e===void 0?`undefined`:`a ${typeof e}`}; a source is text, a Uint8Array, or an object declaring its type`);if(e.format!==void 0)return{type:`file`,data:It(e,t)};let{type:r}=e;if(r===`link`)throw TypeError(`createTerminal: source ${n} declares type "link"; a symbolic link is declared as { type: 'symlink', target }`);if(r===`hardlink`)throw TypeError(`createTerminal: source ${n} declares a hard link, which is not supported: each file here has the one name`);if(r===void 0)throw TypeError(`createTerminal: source ${n} declares no type; an object declares { type: 'file' | 'directory' | 'symlink' } or { format: 'base64', data }`);if(!Object.hasOwn(Mt,r))throw TypeError(`createTerminal: source ${n} declares type ${JSON.stringify(r)}; the types are 'file', 'directory' and 'symlink'`);for(let t of Object.keys(e))if(!(t===`type`||Mt[r].includes(t)))throw TypeError(Nt.has(t)?`createTerminal: source ${n} declares \`${t}\`, which this terminal does not keep yet`:`createTerminal: source ${n} declares \`${t}\`, which a ${r} does not have`);if(r===`directory`)return{type:r};if(r===`symlink`){let{target:t}=e;if(typeof t!=`string`||t===``||t.includes(`\0`))throw TypeError(`createTerminal: link ${n} must declare a non-empty target without NUL characters`);return{type:r,target:t}}let{data:i=``}=e;if(typeof i==`string`)return{type:r,data:Ft(i,t)};if(ArrayBuffer.isView(i))return{type:r,data:Lt(i,t)};throw TypeError(`createTerminal: source ${n} declares \`data\` that is neither text nor a Uint8Array`)}function Ft(e,t){if(!e.isWellFormed())throw TypeError(`createTerminal: source ${JSON.stringify(t)} holds a lone surrogate, which no UTF-8 spells; declare the file's bytes as a Uint8Array`);return e}function It(e,n){let r=JSON.stringify(n);if(e.format!==`base64`)throw TypeError(`createTerminal: source ${r} declares format ${JSON.stringify(e.format)}; the only format is { format: 'base64', data }`);let i=Object.keys(e).find(e=>e!==`format`&&e!==`data`);if(i!==void 0)throw TypeError(`createTerminal: source ${r} declares \`${i}\`, which base64 contents do not have`);if(typeof e.data!=`string`)throw TypeError(`createTerminal: source ${r} must declare its base64 as a string in \`data\``);try{return t(e.data)}catch(e){throw e instanceof SyntaxError?TypeError(`createTerminal: source ${r} declares base64 that does not decode`,{cause:e}):e}}function Lt(e,t){if(e.BYTES_PER_ELEMENT!==1)throw TypeError(`createTerminal: source ${JSON.stringify(t)} is a ${e[Symbol.toStringTag]??`view`}; declare a file's bytes as a Uint8Array`);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Rt={__proto__:null,alpha:`A-Za-z`,digit:`0-9`,alnum:`0-9A-Za-z`,upper:`A-Z`,lower:`a-z`,space:` \\t\\n\\v\\f\\r`,blank:` \\t`,punct:"!-\\/:-@\\[-`{-~",xdigit:`0-9A-Fa-f`,cntrl:`\\x00-\\x1F\\x7F`,print:`\\x20-\\x7E`,graph:`\\x21-\\x7E`,word:`0-9A-Za-z_`},zt={__proto__:null};for(let[e,t]of Object.entries(Rt)){let n=RegExp(`[${t}]`,`u`),r=[];for(let e=0;e<128;e++){if(!n.test(String.fromCodePoint(e)))continue;let t=r.at(-1);t&&t[1]===e-1?t[1]=e:r.push([e,e])}zt[e]=r}var Bt=32767;function Vt(e,t){if(e>Bt||t!==void 0&&t>Bt)throw Error(`Regular expression too big`)}function Ht(e,t,n=!1){let r=t+1;e[r]===`^`&&r++;let i=!0,a=!1;for(;r<e.length;){let t=e[r];if(t===`]`&&!i)return r;if(i=!1,t===`[`&&`:.=`.includes(e[r+1]??``)){let t=e[r+1],i=e.indexOf(t+`]`,r+2);if(i===-1)throw Error(`Unmatched [, [^, [:, [., or [=`);if(t===`:`&&!(e.slice(r+2,i)in Rt))throw Error(`Invalid character class name`);if(t!==`:`&&n&&/\P{ASCII}/u.test(e.slice(r+2,i)))throw Error(`Invalid collation character`);r=i+2,a=t!==`.`;continue}if(t===`-`&&a&&r+1<e.length&&e[r+1]!==`]`)throw Error(`Invalid range end`);let o=t===`\\`&&r+1<e.length?2:1;if(e[r+o]===`-`&&e[r+o+1]!==void 0&&e[r+o+1]!==`]`){let t=r+o+1,i=e[t]===`[`?e[t+1]:void 0;if(i===`:`||i===`=`)throw Error(`Invalid range end`);let s=i===`.`?e.indexOf(`.]`,t+2):-1;if(i===`.`&&s===-1)throw Error(`Unmatched [, [^, [:, [., or [=`);let c=i===`.`?t+2:t+ +(e[t]===`\\`);if(n&&(e.codePointAt(r+o-1)>127||e.codePointAt(c)>127))throw Error(`Invalid collation character`);r=s===-1?t+(e[t]===`\\`?2:1):s+2,a=!0;continue}r+=o,a=!1}throw Error(`Unmatched [, [^, [:, [., or [=`)}function Ut(e,t,n={}){let r=/^\[:([a-z]+):\]/u.exec(e.slice(t));if(!r)return null;let i=n.classes?n.classes.body(r[1]):Rt[r[1]];if(i===void 0){if(n?.unknown!==`empty`)throw Error(`invalid character class \`[:${r[1]}:]\``);return{body:``,end:t+r[0].length}}return{body:i,end:t+r[0].length}}var Wt={alpha:`1t:p,6:p,1b:0,a:0,4:0,5:m,1:u,1:cp,4:b,e:4,7:0,1:0,2e:0,16:4,1:1,2:3,1:0,6:0,1:2,1:0,1:j,1:2a,1:3u,8:4l,1:11,2:0,6:14,13:d,1:0,1:1,1:1,1:0,8:q,4:3,t:a,5:1j,1:g,4:2t,1:7,4:7,4:f,2:0,g:1b,d:2s,e:16,9:1,4:0,5:n,2:i,j:o,7:a,5:n,1:5,h:15,a:b,3:6,6:23,1:f,1:2,4:e,2:9,1:i,1:7,2:1,2:l,1:6,1:0,3:3,3:7,2:1,2:1,1:0,8:0,4:1,1:4,2:b,a:0,4:2,1:5,4:1,2:l,1:6,1:1,1:1,1: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mi:1,x4i:1:-wlx:1,x4j:1:ps:1,x4k:8:1:2,x50:1:-1c:1,x51:1:-wn7:1,x52:1:-raw:1,x53:2:1:2,x5c:1:1:1,x5i:2:1:2,x6d:1:1:1,1ee9:q:w:1,1fcw:14:14:1,1fhs:10:14:1,1fn4:b:13:1,1fng:f:13:1,1fnw:7:13:1,1fo4:2:13:1,1h1c:1f:1s:1,1jfk:w:w:1,20cg:w:w:1,2olc:y:y:1`,N=`C.UTF-8`,qt=`only the C.UTF-8 locale is supported`,Jt=e=>typeof e==`string`&&/^C\.UTF-?8$/iu.test(e),Yt=new Set([`LANG`,`LC_ALL`,`LC_CTYPE`]);function Xt(e){if(e.locale===void 0||Jt(e.locale))return N;throw TypeError(`createTerminal: ${qt} (got ${JSON.stringify(e.locale)})`)}function Zt(e,t){if(!(Yt.has(e)?Jt(t)||e!==`LANG`&&t===``:Jt(t)||t===`C`||t===`POSIX`||t===``))throw new T(`feature`,e,`${e}: ${qt}`)}var Qt=e=>e===`C`||e===`POSIX`,$t=e=>Qt(e.locale);function en(e){let t=[],n=-1;for(let r of e.split(`,`)){let[e,i]=r.split(`:`).map(e=>parseInt(e,36)),a=n+1+e;t.push([a,a+i]),n=a+i}return t}function tn(e){let t=e.findIndex(([e])=>e>95);return[...e.slice(0,t),[95,95],...e.slice(t)]}function nn(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?String.fromCodePoint(e):e<128?`\\x`+e.toString(16).padStart(2,`0`):String.fromCodePoint(e)}var rn=e=>e.map(([e,t])=>e===t?nn(e):`${nn(e)}-${nn(t)}`).join(``);function an(e,t){let n=e.length-1,r=0;for(;r<=n;){let i=r+n>>1;if(t<e[i][0])n=i-1;else if(t>e[i][1])r=i+1;else return!0}return!1}var on=e=>e===`upper`||e===`lower`?`alpha`:e,sn=[181,305,383,453,456,459,498,837,962,976,977,981,982,1008,1009,1010,1013,7835,8126],cn=/[\u1C80-\u1C88]/u;function ln(e){let t=new Map;for(let n of e.split(`,`)){let[e,r,i,a]=n.split(`:`).map(e=>parseInt(e,36));for(let n=0;n<r;n++)t.set(e+n*a,e+n*a+i)}return t}var un=(e,t)=>({up:e,low:t,folds:new Map});function dn(){let e=new Map,t=new Map;for(let n=97;n<=122;n++)e.set(n,n-32),t.set(n-32,n);return un(e,t)}function fn(e){let t=[];for(let[n,r]of e.sort((e,t)=>e[0]-t[0])){let e=t.at(-1);e&&n<=e[1]+1?e[1]=Math.max(e[1],r):t.push([n,r])}return t}function pn(e){let t=`[${e}]`;return{"<":`(?<!${t})(?=${t})`,">":`(?<=${t})(?!${t})`,boundary:`(?:(?<!${t})(?=${t})|(?<=${t})(?!${t}))`,inside:`(?:(?<=${t})(?=${t})|(?<!${t})(?!${t}))`}}function mn(e,t,n,r,i){let a=new Map,o=new Map,s=null,c=e=>(o.has(e)||o.set(e,n(e)),o.get(e)),l=()=>s??=i(),u={name:e,multibyte:t,ranges:c,body(e){return a.has(e)||a.set(e,r(e,c(e))),a.get(e)},has(e,t){let n=c(e);return n!==void 0&&an(n,t)},assertions(){if(u.js)return u.js;let e=u.body(`space`);return u.js={__proto__:null,...pn(u.body(`word`)),word:`[${u.body(`word`)}]`,nonWord:`[^${u.body(`word`)}]`,space:`[${e}]`,nonSpace:`[^${e}]`},u.js},up:e=>l().up.get(e)??e,low:e=>l().low.get(e)??e,fold(e){let{folds:t}=l(),n=t.get(e);if(n===void 0){let r=u.up(e),i=u.low(r),a=new Set([e,r]);i!==r&&u.up(i)===r&&a.add(i);for(let e of sn)u.up(e)===r&&a.add(e);n=[...a].sort((e,t)=>e-t),t.set(e,n)}return n},foldRange(e,t){let{up:n}=l(),r=n.get(e)??e,i=n.get(t)??t;if(r>i)return null;let a=[],o=[];for(let[e,t]of n){let n=e>=r&&e<=i;n!==(t>=r&&t<=i)&&(n?a:o).push(e)}let s=[],c=r;for(let e of a.sort((e,t)=>e-t))e>c&&s.push([c,e-1]),c=e+1;return c<=i&&s.push([c,i]),fn([...s,...o.map(e=>[e,e])])}};return u}var hn=mn(`C`,!1,e=>zt[e],e=>Rt[e],dn),gn=mn(N,!0,e=>e===`word`?tn(en(Wt.alnum)):Object.hasOwn(Wt,e)?en(Wt[e]):void 0,(e,t)=>t===void 0?void 0:rn(t),()=>un(ln(Gt),ln(Kt)));function _n(e){if(e===N)return gn;if(Qt(e))return hn;throw new T(`feature`,`locale`,`matching in the ${e} locale is not supported`)}var vn=(1n<<63n)-1n,yn=-vn-1n,bn=(1n<<64n)-1n;function P(e,t,n,r){let i=k(e.cwd,n,e.fs,r);return F(e,t,n,i.error),i}function F(e,t,n,r){if(r!==`No such file or directory`||typeof n!=`string`)return;let i=n.startsWith(`/`),a=i?`/`:e.cwd,o=n.replace(/^\/+/u,``),s=new Set;for(let t of new Set([`/`,e.mount??`/`,e.home??`/`])){if(t===a)continue;let n=k(t,o,e.fs);n.error||s.add(n.path)}if(!s.size)return;let c=i?``:` from cwd ${JSON.stringify(e.cwd)}`,l=`${i?`absolute`:`relative`} path ${JSON.stringify(n)} was not found${c}`;e.notes?.add(`${t}: ${l}. ${xn(e,s)}`)}function xn(e,t){let n=[...t].sort(M),r=n.map(e=>JSON.stringify(e));if(n.length===1)return`A ${e.fs.isDir(n[0])?`dir`:`file`} exists at ${r[0]}.`;let i=n.every(t=>!e.fs.isDir(t)&&e.fs.isFile(t))&&n.some(t=>!e.fs.sameFileContents(n[0],t)),a=`${r.slice(0,-1).join(`, `)} and ${r.at(-1)}`;return`${n.length===2?`Both`:`All`} of ${a} exist${i?`, and they differ in contents`:``}.`}function Sn(){let e=new Set;return{add:t=>e.add(t),collect(t,n){for(let r of n)r.startsWith(`.`)&&e.add(O(t,r))},emit(t,n,r,i=``){On(t,{command:n,action:`omitted`,noun:[`hidden entry`,`hidden entries`],explanation:r,context:i,paths:e})}}}var Cn=/^(?<command>[^:]+): (?<operand>.+): (?<reason>no such file or directory|not a directory|is a directory)$/iu;function wn(e,t){for(let n of t.split(`
|
|
3
|
+
`,exitCode:t}),We=(e,t=1)=>x(`usage: ${e}`,t),Ge=Symbol(`unsupported`);function S(e){if(e==null)return null;try{return e[Ge]??null}catch{return null}}function C(e,t,n,r,i=1){return w(x(r,i),e,t,n,r)}function w(e,t,n,r,i){return Object.defineProperty(e,Ge,{value:{kind:t,command:n,detail:r,message:i},enumerable:!1,configurable:!0}),e}function Ke(e,t,n,r){let i=S(e);return i?C(i.kind,t,i.detail,n,r):x(n,r)}var T=class extends Error{constructor(e,t,n){super(n),this.name=`UnsupportedError`,w(this,e,null,t,n)}};function qe(){let e=new Set,t=[];return{entries:t,add(n,r=n.command){let i=JSON.stringify([n.kind,r,n.detail]);e.has(i)||(e.add(i),t.push(Object.freeze(n)))}}}function E(e){try{return f(e)}catch(e){throw e instanceof TypeError?new T(`feature`,`unpaired surrogate`,`unpaired UTF-16 surrogates cannot be encoded as UTF-8`):e}}var Je=e=>e<128?1:e>=194&&e<=223?2:e>=224&&e<=239?3:e>=240&&e<=244?4:0;function*Ye(e){for(let t=0;t<e.length;){let n=nt[e[t]],r=n===1?e[t]:n===0?-1:Ze(e,t,n);yield r,t+=r<0?1:n}}var Xe=[0,0,128,2048,65536];function Ze(e,t,n){if(t+n>e.length)return-1;let r=e[t]&127>>n;for(let i=1;i<n;i++){if((e[t+i]&192)!=128)return-1;r=r<<6|e[t+i]&63}return r<Xe[n]||r>1114111||r>=55296&&r<=57343?-1:r}var Qe=e=>h(e);function $e(e){let t;try{t=m(e)}catch{}return t}function et(e){let t=$e(e);if(t!==void 0)return t;let n=new Uint16Array(e.length),r=0;for(let t=0;t<e.length;){let i=nt[e[t]],a=i===1?e[t]:i===0?-1:Ze(e,t,i);if(a<0){n[r++]=56320+e[t++];continue}a>65535?(n[r++]=55232+(a>>10),n[r++]=56320+(a&1023)):n[r++]=a,t+=i}let i=``;for(let e=0;e<r;e+=tt)i+=String.fromCharCode.apply(null,n.subarray(e,Math.min(r,e+tt)));return i}var tt=4096,nt=Uint8Array.from({length:256},(e,t)=>Je(t)),rt=`\\uDC80-\\uDCFF`,it=RegExp(`[${rt}]`,`u`),at=e=>e>=56448&&e<=56575;function ot(e){if(!it.test(e))return E(e);let t=new Uint8Array(e.length*3),n=0;for(let r=0;r<e.length;r++){let i=e.codePointAt(r);if(i<128)t[n++]=i;else if(at(i))t[n++]=i-56320;else if(i<2048)n=st(t,n,192|i>>6,i,1);else if(i<65536){if(i>=55296&&i<=57343)return E(e);n=st(t,n,224|i>>12,i,2)}else n=st(t,n,240|i>>18,i,3),r++}return t.slice(0,n)}function st(e,t,n,r,i){e[t++]=n;for(let n=i-1;n>=0;n--)e[t++]=128|r>>6*n&63;return t}function ct(e){if(e.length===1)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t}function D(e){try{return m(e)}catch{throw new T(`feature`,`partial UTF-8 byte sequence`,`byte output that is not valid UTF-8 cannot be represented by this string-based terminal`)}}function lt(e){let t=e.startsWith(`/`),n=e.split(`/`).filter(Boolean),r=[];for(let e of n)if(e!==`.`){if(e===`..`){r.length>0&&r.at(-1)!==`..`?r.pop():t||r.push(`..`);continue}r.push(e)}return t?`/`+r.join(`/`):r.length===0?`.`:r.join(`/`)}function O(e,t){return t.startsWith(`/`)?lt(t):lt(e+`/`+t)}var ut=40,dt=(e,t)=>e.isLink?.(t)===!0;function k(e,t,n,{follow:r=!0}={}){let i=ft(e,t,n,{follow:r});return i.error?{path:null,error:i.error}:t.endsWith(`/`)&&!n.isDir(i.path)?{path:null,error:`Not a directory`}:{path:i.path,error:null}}function ft(e,t,n,{follow:r=!0,lenient:i=!1}={}){if(t===``||t.includes(`\0`))return{path:`/`,error:`No such file or directory`,rest:[]};let a=(t.startsWith(`/`)?t:e+`/`+t).split(`/`).filter(Boolean),o=r||t.endsWith(`/`),s=ut,c=`/`;for(;a.length>0;){let e=a.shift();if(!n.isDir(c)){if(!i){let t=n.isFile(c)||dt(n,c)?`Not a directory`:`No such file or directory`;return{path:c,error:t,rest:[e,...a]}}e===`..`?c=j(c):e!==`.`&&(c=ht(c,e));continue}if(e===`..`){c=j(c);continue}if(e!==`.`&&(c=ht(c,e)),!dt(n,c)||a.length===0&&!o)continue;if(s--===0)return{path:c,error:`Too many levels of symbolic links`,rest:[...a]};let t=n.readLink(c);c=t.startsWith(`/`)?`/`:j(c),a.unshift(...t.split(`/`).filter(Boolean),...t.endsWith(`/`)?[`.`]:[])}let l=!n.isDir(c)&&!n.isFile(c)&&!dt(n,c);return{path:c,error:l?`No such file or directory`:null,rest:[]}}var A=(e,t,n,r=!0)=>n===``||n.includes(`\0`)?O(t,n):ft(t,n,e,{follow:r,lenient:!0}).path;function pt(e,t,n,r=k(e,t,n)){if(r.path!==null)return null;if(t===``||t.includes(`\0`)||t.endsWith(`/`)||r.error!==`No such file or directory`)return r.error;let i=ft(e,t,n);return i.rest.length>0?i.error:n.isDir(j(i.path))?null:`Not a directory`}function j(e){let t=lt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return n<0?`.`:n===0?`/`:t.slice(0,n)}function mt(e){let t=lt(e);if(t===`/`)return`/`;let n=t.lastIndexOf(`/`);return t.slice(n+1)}function M(e,t){for(let n=0;n<Math.min(e.length,t.length);n++)if(e[n]!==t[n])return e.codePointAt(n)-t.codePointAt(n);return e.length-t.length}function ht(e,t){return e===`/`?`/`+t:e+`/`+t}function gt(e,t){return e===`/`?t.slice(1):t.slice(e.length+1)}function _t(e,t,n=`reading them as text`){let r=$e(e);if(r===void 0)throw new T(`feature`,`binary file`,`${t} holds bytes that spell no text, and ${n} is not supported`);return r}var vt=(e,t)=>e!==void 0&&t!==void 0&&e.length===t.length&&e.every((e,n)=>e===t[n]);function*yt(e,t,n=1/0,r=()=>!0){if(e.isFile(t)){yield{path:t,kind:`file`,depth:0};return}if(!e.isDir(t)){dt(e,t)&&(yield{path:t,kind:`link`,depth:0});return}let i=[{path:t,kind:`dir`,depth:0}];for(;i.length;){let t=i.pop();if(yield t,t.kind!==`dir`||t.depth>=n||!r(t.path))continue;let{dirs:a,files:o,links:s=[]}=e.listDir(t.path),c=a.length-1,l=o.length-1,u=s.length-1;for(;c>=0||l>=0||u>=0;){let e=c>=0?`dir`:null,n=c>=0?a[c]:null;l>=0&&(n===null||M(o[l],n)>=0)&&(e=`file`,n=o[l]),u>=0&&(n===null||M(s[u],n)>=0)&&(e=`link`,n=s[u]),e===`dir`?c--:e===`file`?l--:u--,i.push({path:ht(t.path,n),kind:e,depth:t.depth+1})}}}function*bt(e,t){for(let n of yt(e,t))n.kind===`file`&&(yield n.path)}function xt(e,t=`/`){let n=new De;try{n.mkdir(t,{recursive:!0})}catch(e){throw wt(e,`mount ${JSON.stringify(t)}`)}let r={declared:new Map,made:new Set([`/`,t])};for(let[i,a]of jt(e)){let e=String(i);if(e.includes(`\0`))throw TypeError(`createTerminal: source paths must not contain NUL characters`);let o=Pt(a,e),s=lt(`/`+e);St(n,r,t===`/`?s:s===`/`?t:t+s,o,e)}return kt(n)}function St(e,t,n,r,i){let a=t.declared.get(n);if(a!==void 0){if(a===r.type&&Tt(e,n,r))return;throw TypeError(`createTerminal: source ${JSON.stringify(i)} names the same path as an earlier source, which declared something else there`)}t.declared.set(n,r.type);let o=n.slice(0,n.lastIndexOf(`/`))||`/`;if(!t.made.has(o)){try{e.mkdir(o,{recursive:!0})}catch(e){throw e?.code===`ENOENT`?Ct(i):wt(e?.code===`EEXIST`?new y(`ENOTDIR`,o):e,`source ${JSON.stringify(i)}`)}if(e.realpath(o)!==o)throw Ct(i);t.made.add(o)}try{if(r.type===`file`)e.writeFile(n,r.data);else if(r.type===`symlink`)e.symlink(r.target,n);else{try{e.mkdir(n)}catch(t){if(t?.code!==`EEXIST`||e.lstat(n).type!==`directory`)throw t}t.made.add(n)}}catch(e){throw wt(e,`source ${JSON.stringify(i)}`)}}var Ct=e=>TypeError(`createTerminal: source ${JSON.stringify(e)} is declared through a symbolic link; declare it where the link leads`);function wt(e,t){return e instanceof y?TypeError(`createTerminal: ${t}: ${e.message}`,{cause:e}):e}function Tt(e,t,n){return n.type===`directory`?!0:n.type===`symlink`?e.readlink(t)===n.target:vt(e.readFile(t),typeof n.data==`string`?E(n.data):n.data)}var Et={directory:`dirs`,file:`files`,symlink:`links`},Dt=e=>e.slice(0,e.lastIndexOf(`/`))||`/`,Ot=()=>({dirs:[],files:[],links:[]});function kt(e){let t=null,n=null,r={children:new Map,types:new Map},i=()=>n??=At(e,o),a=new WeakMap,o=e=>t!==null&&(e===t||e.startsWith(t+`/`)),s=t=>{let n=r.children.get(t);if(n!==void 0)return n;n={listing:Ot(),types:new Map};for(let r of e.readdir(t)){let{type:i}=e.lstat(ht(t,r));n.types.set(r,i),n.listing[Et[i]].push(r)}return r.children.set(t,n),n},c=e=>{if(typeof e!=`string`||!e.startsWith(`/`))return;if(e===`/`)return`directory`;let t=[],n=e;for(;o(Dt(n))&&!r.types.has(n);)t.push(n),n=Dt(n);let a=o(Dt(n))?r.types.get(n):i().types.get(n)??``;for(let e=t.length-1;e>=0;e--){let n=t[e];a=a===`directory`?s(Dt(n)).types.get(n.slice(n.lastIndexOf(`/`)+1))??``:``,r.types.set(n,a)}return a||void 0},l=t=>c(t)===void 0?void 0:e.lstat(t),u=t=>c(t)===`file`?e.readFile(t):void 0,d={vfs:e,writableAt:e=>{t=e,n=null,r={children:new Map,types:new Map}},reshaped:()=>{r={children:new Map,types:new Map}},isFile:e=>c(e)===`file`,isDir:e=>c(e)===`directory`,isLink:e=>c(e)===`symlink`,readLink:t=>c(t)===`symlink`?e.readlink(t):void 0,readFile:e=>{let t=u(e),n=t&&a.get(t);return t&&n===void 0&&a.set(t,n=_t(t,JSON.stringify(e))),n},readBytes:e=>u(e),fileSize:e=>{let t=l(e);return t===void 0||t.type===`directory`?void 0:t.size},sameFileContents:(e,t)=>vt(u(e),u(t)),exactBytes:u,isBytes:e=>c(e)===`file`,isEmptyFile:e=>{let t=l(e);return t?.type===`file`&&t.size===0},listDir:e=>{if(c(e)!==`directory`)throw Error(`not a directory: ${e}`);return o(e)?s(e).listing:i().children.get(e)},walkFiles:e=>bt(d,e)};return d}function At(e,t){let n=new Map([[`/`,Ot()]]),r=new Map([[`/`,`directory`]]),i=[`/`];for(let{path:a,type:o,depth:s}of e.walk(`/`)){if(s===0)continue;let e=i[s-1];o===`directory`&&(i[s]=a),!t(e)&&(o===`directory`&&n.set(a,Ot()),n.get(e)[Et[o]].push(a.slice(e.length+(e===`/`?0:1))),r.set(a,o))}return{children:n,types:r}}function jt(e){try{return Map.prototype.entries.call(e)}catch{return Object.entries(e??{})}}var Mt={file:[`data`],directory:[],symlink:[`target`]},Nt=new Set([`mode`,`mtime`]);function Pt(e,t){let n=JSON.stringify(t);if(typeof e==`string`)return{type:`file`,data:Ft(e,t)};if(ArrayBuffer.isView(e))return{type:`file`,data:Lt(e,t)};if(e instanceof ArrayBuffer)throw TypeError(`createTerminal: source ${n} is an ArrayBuffer; declare a file's bytes as a Uint8Array over it`);if(typeof e!=`object`||!e||Array.isArray(e))throw TypeError(`createTerminal: source ${n} is ${e===null?`null`:Array.isArray(e)?`an array`:e===void 0?`undefined`:`a ${typeof e}`}; a source is text, a Uint8Array, or an object declaring its type`);if(e.format!==void 0)return{type:`file`,data:It(e,t)};let{type:r}=e;if(r===`link`)throw TypeError(`createTerminal: source ${n} declares type "link"; a symbolic link is declared as { type: 'symlink', target }`);if(r===`hardlink`)throw TypeError(`createTerminal: source ${n} declares a hard link, which is not supported: each file here has the one name`);if(r===void 0)throw TypeError(`createTerminal: source ${n} declares no type; an object declares { type: 'file' | 'directory' | 'symlink' } or { format: 'base64', data }`);if(!Object.hasOwn(Mt,r))throw TypeError(`createTerminal: source ${n} declares type ${JSON.stringify(r)}; the types are 'file', 'directory' and 'symlink'`);for(let t of Object.keys(e))if(!(t===`type`||Mt[r].includes(t)))throw TypeError(Nt.has(t)?`createTerminal: source ${n} declares \`${t}\`, which this terminal does not keep yet`:`createTerminal: source ${n} declares \`${t}\`, which a ${r} does not have`);if(r===`directory`)return{type:r};if(r===`symlink`){let{target:t}=e;if(typeof t!=`string`||t===``||t.includes(`\0`))throw TypeError(`createTerminal: link ${n} must declare a non-empty target without NUL characters`);return{type:r,target:t}}let{data:i=``}=e;if(typeof i==`string`)return{type:r,data:Ft(i,t)};if(ArrayBuffer.isView(i))return{type:r,data:Lt(i,t)};throw TypeError(`createTerminal: source ${n} declares \`data\` that is neither text nor a Uint8Array`)}function Ft(e,t){if(!e.isWellFormed())throw TypeError(`createTerminal: source ${JSON.stringify(t)} holds a lone surrogate, which no UTF-8 spells; declare the file's bytes as a Uint8Array`);return e}function It(e,t){let r=JSON.stringify(t);if(e.format!==`base64`)throw TypeError(`createTerminal: source ${r} declares format ${JSON.stringify(e.format)}; the only format is { format: 'base64', data }`);let i=Object.keys(e).find(e=>e!==`format`&&e!==`data`);if(i!==void 0)throw TypeError(`createTerminal: source ${r} declares \`${i}\`, which base64 contents do not have`);if(typeof e.data!=`string`)throw TypeError(`createTerminal: source ${r} must declare its base64 as a string in \`data\``);try{return n(e.data)}catch(e){throw e instanceof SyntaxError?TypeError(`createTerminal: source ${r} declares base64 that does not decode`,{cause:e}):e}}function Lt(e,t){if(e.BYTES_PER_ELEMENT!==1)throw TypeError(`createTerminal: source ${JSON.stringify(t)} is a ${e[Symbol.toStringTag]??`view`}; declare a file's bytes as a Uint8Array`);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Rt={__proto__:null,alpha:`A-Za-z`,digit:`0-9`,alnum:`0-9A-Za-z`,upper:`A-Z`,lower:`a-z`,space:` \\t\\n\\v\\f\\r`,blank:` \\t`,punct:"!-\\/:-@\\[-`{-~",xdigit:`0-9A-Fa-f`,cntrl:`\\x00-\\x1F\\x7F`,print:`\\x20-\\x7E`,graph:`\\x21-\\x7E`,word:`0-9A-Za-z_`},zt={__proto__:null};for(let[e,t]of Object.entries(Rt)){let n=RegExp(`[${t}]`,`u`),r=[];for(let e=0;e<128;e++){if(!n.test(String.fromCodePoint(e)))continue;let t=r.at(-1);t&&t[1]===e-1?t[1]=e:r.push([e,e])}zt[e]=r}var Bt=32767;function Vt(e,t){if(e>Bt||t!==void 0&&t>Bt)throw Error(`Regular expression too big`)}function Ht(e,t,n=!1){let r=t+1;e[r]===`^`&&r++;let i=!0,a=!1;for(;r<e.length;){let t=e[r];if(t===`]`&&!i)return r;if(i=!1,t===`[`&&`:.=`.includes(e[r+1]??``)){let t=e[r+1],i=e.indexOf(t+`]`,r+2);if(i===-1)throw Error(`Unmatched [, [^, [:, [., or [=`);if(t===`:`&&!(e.slice(r+2,i)in Rt))throw Error(`Invalid character class name`);if(t!==`:`&&n&&/\P{ASCII}/u.test(e.slice(r+2,i)))throw Error(`Invalid collation character`);r=i+2,a=t!==`.`;continue}if(t===`-`&&a&&r+1<e.length&&e[r+1]!==`]`)throw Error(`Invalid range end`);let o=t===`\\`&&r+1<e.length?2:1;if(e[r+o]===`-`&&e[r+o+1]!==void 0&&e[r+o+1]!==`]`){let t=r+o+1,i=e[t]===`[`?e[t+1]:void 0;if(i===`:`||i===`=`)throw Error(`Invalid range end`);let s=i===`.`?e.indexOf(`.]`,t+2):-1;if(i===`.`&&s===-1)throw Error(`Unmatched [, [^, [:, [., or [=`);let c=i===`.`?t+2:t+ +(e[t]===`\\`);if(n&&(e.codePointAt(r+o-1)>127||e.codePointAt(c)>127))throw Error(`Invalid collation character`);r=s===-1?t+(e[t]===`\\`?2:1):s+2,a=!0;continue}r+=o,a=!1}throw Error(`Unmatched [, [^, [:, [., or [=`)}function Ut(e,t,n={}){let r=/^\[:([a-z]+):\]/u.exec(e.slice(t));if(!r)return null;let i=n.classes?n.classes.body(r[1]):Rt[r[1]];if(i===void 0){if(n?.unknown!==`empty`)throw Error(`invalid character class \`[:${r[1]}:]\``);return{body:``,end:t+r[0].length}}return{body:i,end:t+r[0].length}}var Wt={alpha:`1t:p,6:p,1b:0,a:0,4:0,5:m,1:u,1:cp,4:b,e:4,7:0,1:0,2e:0,16:4,1:1,2:3,1:0,6:0,1:2,1:0,1:j,1:2a,1:3u,8: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1:1:1,8se:2:-8cf:1,8sg:1e:1:2,8vf:2:1:2,8vm:1:1:1,wu8:n:1:2,ww0:e:1:2,x0i:7:1:2,x0y:v:1:2,x2x:2:1:2,x31:1:-r9g:1,x32:5:1:2,x3f:1:1:1,x3h:1:-wmg:1,x3k:2:1:2,x3q:a:1:2,x4a:1:-wn8:1,x4b:1:-wnj:1,x4c:1:-wnf:1,x4d:1:-wn5:1,x4e:1:-wn8:1,x4g:1:-wlu:1,x4h:1:-wmi:1,x4i:1:-wlx:1,x4j:1:ps:1,x4k:8:1:2,x50:1:-1c:1,x51:1:-wn7:1,x52:1:-raw:1,x53:2:1:2,x5c:1:1:1,x5i:2:1:2,x6d:1:1:1,1ee9:q:w:1,1fcw:14:14:1,1fhs:10:14:1,1fn4:b:13:1,1fng:f:13:1,1fnw:7:13:1,1fo4:2:13:1,1h1c:1f:1s:1,1jfk:w:w:1,20cg:w:w:1,2olc:y:y:1`,N=`C.UTF-8`,qt=`only the C.UTF-8 locale is supported`,Jt=e=>typeof e==`string`&&/^C\.UTF-?8$/iu.test(e),Yt=new Set([`LANG`,`LC_ALL`,`LC_CTYPE`]);function Xt(e){if(e.locale===void 0||Jt(e.locale))return N;throw TypeError(`createTerminal: ${qt} (got ${JSON.stringify(e.locale)})`)}function Zt(e,t){if(!(Yt.has(e)?Jt(t)||e!==`LANG`&&t===``:Jt(t)||t===`C`||t===`POSIX`||t===``))throw new T(`feature`,e,`${e}: ${qt}`)}var Qt=e=>e===`C`||e===`POSIX`,$t=e=>Qt(e.locale);function en(e){let t=[],n=-1;for(let r of e.split(`,`)){let[e,i]=r.split(`:`).map(e=>parseInt(e,36)),a=n+1+e;t.push([a,a+i]),n=a+i}return t}function tn(e){let t=e.findIndex(([e])=>e>95);return[...e.slice(0,t),[95,95],...e.slice(t)]}function nn(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?String.fromCodePoint(e):e<128?`\\x`+e.toString(16).padStart(2,`0`):String.fromCodePoint(e)}var rn=e=>e.map(([e,t])=>e===t?nn(e):`${nn(e)}-${nn(t)}`).join(``);function an(e,t){let n=e.length-1,r=0;for(;r<=n;){let i=r+n>>1;if(t<e[i][0])n=i-1;else if(t>e[i][1])r=i+1;else return!0}return!1}var on=e=>e===`upper`||e===`lower`?`alpha`:e,sn=[181,305,383,453,456,459,498,837,962,976,977,981,982,1008,1009,1010,1013,7835,8126],cn=/[\u1C80-\u1C88]/u;function ln(e){let t=new Map;for(let n of e.split(`,`)){let[e,r,i,a]=n.split(`:`).map(e=>parseInt(e,36));for(let n=0;n<r;n++)t.set(e+n*a,e+n*a+i)}return t}var un=(e,t)=>({up:e,low:t,folds:new Map});function dn(){let e=new Map,t=new Map;for(let n=97;n<=122;n++)e.set(n,n-32),t.set(n-32,n);return un(e,t)}function fn(e){let t=[];for(let[n,r]of e.sort((e,t)=>e[0]-t[0])){let e=t.at(-1);e&&n<=e[1]+1?e[1]=Math.max(e[1],r):t.push([n,r])}return t}function pn(e){let t=`[${e}]`;return{"<":`(?<!${t})(?=${t})`,">":`(?<=${t})(?!${t})`,boundary:`(?:(?<!${t})(?=${t})|(?<=${t})(?!${t}))`,inside:`(?:(?<=${t})(?=${t})|(?<!${t})(?!${t}))`}}function mn(e,t,n,r,i){let a=new Map,o=new Map,s=null,c=e=>(o.has(e)||o.set(e,n(e)),o.get(e)),l=()=>s??=i(),u={name:e,multibyte:t,ranges:c,body(e){return a.has(e)||a.set(e,r(e,c(e))),a.get(e)},has(e,t){let n=c(e);return n!==void 0&&an(n,t)},assertions(){if(u.js)return u.js;let e=u.body(`space`);return u.js={__proto__:null,...pn(u.body(`word`)),word:`[${u.body(`word`)}]`,nonWord:`[^${u.body(`word`)}]`,space:`[${e}]`,nonSpace:`[^${e}]`},u.js},up:e=>l().up.get(e)??e,low:e=>l().low.get(e)??e,fold(e){let{folds:t}=l(),n=t.get(e);if(n===void 0){let r=u.up(e),i=u.low(r),a=new Set([e,r]);i!==r&&u.up(i)===r&&a.add(i);for(let e of sn)u.up(e)===r&&a.add(e);n=[...a].sort((e,t)=>e-t),t.set(e,n)}return n},foldRange(e,t){let{up:n}=l(),r=n.get(e)??e,i=n.get(t)??t;if(r>i)return null;let a=[],o=[];for(let[e,t]of n){let n=e>=r&&e<=i;n!==(t>=r&&t<=i)&&(n?a:o).push(e)}let s=[],c=r;for(let e of a.sort((e,t)=>e-t))e>c&&s.push([c,e-1]),c=e+1;return c<=i&&s.push([c,i]),fn([...s,...o.map(e=>[e,e])])}};return u}var hn=mn(`C`,!1,e=>zt[e],e=>Rt[e],dn),gn=mn(N,!0,e=>e===`word`?tn(en(Wt.alnum)):Object.hasOwn(Wt,e)?en(Wt[e]):void 0,(e,t)=>t===void 0?void 0:rn(t),()=>un(ln(Gt),ln(Kt)));function _n(e){if(e===N)return gn;if(Qt(e))return hn;throw new T(`feature`,`locale`,`matching in the ${e} locale is not supported`)}var vn=(1n<<63n)-1n,yn=-vn-1n,bn=(1n<<64n)-1n;function P(e,t,n,r){let i=k(e.cwd,n,e.fs,r);return F(e,t,n,i.error),i}function F(e,t,n,r){if(r!==`No such file or directory`||typeof n!=`string`)return;let i=n.startsWith(`/`),a=i?`/`:e.cwd,o=n.replace(/^\/+/u,``),s=new Set;for(let t of new Set([`/`,e.mount??`/`,e.home??`/`])){if(t===a)continue;let n=k(t,o,e.fs);n.error||s.add(n.path)}if(!s.size)return;let c=i?``:` from cwd ${JSON.stringify(e.cwd)}`,l=`${i?`absolute`:`relative`} path ${JSON.stringify(n)} was not found${c}`;e.notes?.add(`${t}: ${l}. ${xn(e,s)}`)}function xn(e,t){let n=[...t].sort(M),r=n.map(e=>JSON.stringify(e));if(n.length===1)return`A ${e.fs.isDir(n[0])?`dir`:`file`} exists at ${r[0]}.`;let i=n.every(t=>!e.fs.isDir(t)&&e.fs.isFile(t))&&n.some(t=>!e.fs.sameFileContents(n[0],t)),a=`${r.slice(0,-1).join(`, `)} and ${r.at(-1)}`;return`${n.length===2?`Both`:`All`} of ${a} exist${i?`, and they differ in contents`:``}.`}function Sn(){let e=new Set;return{add:t=>e.add(t),collect(t,n){for(let r of n)r.startsWith(`.`)&&e.add(O(t,r))},emit(t,n,r,i=``){On(t,{command:n,action:`omitted`,noun:[`hidden entry`,`hidden entries`],explanation:r,context:i,paths:e})}}}var Cn=/^(?<command>[^:]+): (?<operand>.+): (?<reason>no such file or directory|not a directory|is a directory)$/iu;function wn(e,t){for(let n of t.split(`
|
|
4
4
|
`))Cn.test(n)&&e.discarded?.add(n)}function Tn(e,t,n){let r=new Map;for(let i of e){if(t.includes(i))continue;let{command:e,operand:a,reason:o}=Cn.exec(i).groups,s=/'([^']*)'$/u.exec(a)?.[1]??a;if([...n].some(e=>e.includes(JSON.stringify(s))))continue;let c=`${e}: ${o}`;r.has(c)||r.set(c,new Set),r.get(c).add(s)}return[...r].map(([e,t])=>`${e}: ${[...t].map(e=>JSON.stringify(e)).join(`, `)}.`)}function En(e,t){return e===`status`?null:{name:t,search:e===`search`}}function Dn(){let e=null,t=0;return{skip(n,r){!t&&n&&(e={...n,exitCode:r}),t++},flush(n){if(t&&e){let r=t===1?`the command`:`the ${t} commands`,i=e.search&&e.exitCode===1?` A search that selects no lines exits 1, which is not a failure.`:``;n.add(`${e.name}: exited ${e.exitCode}, so ${r} after && did not run.${i}`)}e=null,t=0}}}function On(e,t){kn(e,t,t.paths.size,t.paths)}function kn(e,{command:t,action:n,noun:r,explanation:i=``,context:a=``},o,s){if(!o)return;let c=o<10?`: `+[...s].sort(M).map(e=>JSON.stringify(e)).join(`, `):``,l=Array.isArray(r)?r[o===1?0:1]:r;e.add(`${t}: ${n} ${o} ${l}${a}${c}.${i?` `+i:``}`)}function An(e,t=`
|
|
5
5
|
`){if(e===``)return[];let n=e.split(t);return n.at(-1)===``&&n.pop(),n}function jn(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 Mn=(e,t=`
|
|
@@ -51,7 +51,7 @@ ${r}`,status:2}}}return n.value===`inode`?{gap:{detail:`--sort=inode`,message:`-
|
|
|
51
51
|
tar: Error is not recoverable: exiting now
|
|
52
52
|
`,status:2}}:{value:{name:n>0?e.slice(0,n):null,id:a}}}function bu(e){return e.mode===null?pu(`You must specify one of the '-Acdtrux', '--delete' or '--test-label' options`):e.files>1?pu(`Multiple archive files require '-M' option`):e.mode===`create`&&!e.items.some(e=>e.name!==void 0)?pu(`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 xu={__proto__:null,gnu:`gnu`,ustar:`ustar`,pax:`pax`,posix:`pax`,oldgnu:null,v7:null},Su=[`none`,`name`,`inode`];function Cu(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 wu=2n**63n-1n;function Tu(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>wu||n<-wu-1n?null:n<0n?-1:Number(n>BigInt(2**53-1)?2**53-1:n)}function Eu(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+`
|
|
53
53
|
`)},bytes(e){t.events.push({fd:1,bytes:e})},warn(e){t.say(2,`tar: ${e}
|
|
54
|
-
`)},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 Du(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:w(n,e.gap.kind,`tar`,e.gap.detail,e.gap.message)}var Ou=32768;async function ku(e,t,n){let r=hu(t,n);if(r.usage)return{stdout:``,stderr:r.usage.text,exitCode:r.usage.status};let i=Eu(n);return r.blocking>Ou?i.refuse(`option`,`--blocking-factor`,`${r.blocking}: a record of that many blocks is more than this terminal holds`):r.mode===`create`?await ql(r,i):await Au(r,i),Du(i)}async function Au(e,t){let{ctx:n}=t,r=Date.now(),i=await Bl(e,t);if(!i)return;let a=yc(e.items),o=e.mode===`extract`;e.toStdout&&(t.listTo=2);let s=e.verbose>1?dc(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=bo(u),f=a.match(d);if(f===null)continue;let p=Pu(f,c,t);if(p===null)return;let m=o?nu(d,e.strip):d;if(m!==null&&(e.verbose>0&&t.list(s?s(u):oc(d,n)),o&&e.toStdout?(u.type===`file`||u.type===`contiguous-file`)&&ju(u.data,m,t):o&&iu(u,m,ru(p,m),t,e.keepOld,e=>Mu(m,e,s,t))&&Nu(i.mtimes[l],m,r,t),t.stopped))return}if(i.child)return t.fatal(`Child returned status ${i.child}`);bc(a,t,e.noWildcards)}function ju(e,t,n){n.closedOut?e.length>0&&n.error(`${mc(t,n.ctx)}: Cannot write: Bad file descriptor`):n.bytes(e)}function Mu(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 Nu(e,t,n,r){e>=0&&e*1e3<=n||r.refuse(`feature`,`archive times`,`${mc(t,r.ctx)}: extracting an entry dated before 1970 or in the future is not supported`)}function Pu(e,t,n){if(t.has(e))return t.get(e);let r=n.ctx.cwd;for(let t of e.dirs)if(r=xc(r,t,n),r===null)return null;return t.set(e,r),r}var Fu=67324752,Iu=33639248,Lu=101010256,Ru=61440,zu={file:32768,directory:16384,symlink:40960},Bu=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Vu(e){let t=new Uint8Array(e.reduce((e,[t])=>e+t,0)),n=Bu(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 Hu=e=>go(e,`deflate-raw`),Uu=1032;async function Wu(e,t,n){if(t>e.length*Uu)throw new V(`an entry declares more than its data can inflate to`,n);let r;try{r=await yo(e,`deflate-raw`,new Uint8Array(t))}catch(e){throw new V(e.limited?`an entry inflates to more than its declared size`:`an entry does not inflate`,n)}if(r.length!==t)throw new V(`an entry inflates to less than its declared size`,n);return r}function Gu(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 Ku(e){let t=Gu(e);if(t===null)throw new V(`mtime ${e} is outside DOS time, 1980 to 2107`);return t}function qu(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,i=Gu(r);if(i===null||i.time!==t||i.date!==e)throw new V(`an entry has an invalid DOS time`,n);return r}var Ju=new Set([`deflate`,`store`]),Yu=788,Xu=2048,Zu=315532800,Qu=2147483647,$u=65534,ed=4294967294;function td(e,t,n,r){if(!Number.isSafeInteger(e)||e<n||e>r)throw new V(`${t} ${String(e)} is not an integer from ${n} to ${r}`);return e}function nd(e){let t=Po(e,zu);return{...t,mode:td(e.mode??jo[t.type],`mode`,0,4095),mtime:td(e.mtime??Zu,`mtime`,Zu,Qu)}}var rd=e=>Vu([[2,21589],[2,5],[1,1],[4,e]]);async function id(e,{method:t=`deflate`,symlinksAbove:n}={}){if(!Ju.has(t))throw new V(`method ${H(String(t))} is not deflate or store`);let r=new Es(!0,bs(n)),i=[],o=[],s=0,c=0;for(let n of e){let e=nd(n),l={...e,...Ss(e.name,e.type,e.linkname,r.above)};if(r.add(l),++c>$u)throw new V(`more than ${$u} entries would need zip64`);let u=ko(No(l),`entry name`),d=l.type===`symlink`?ko(l.linkname,`symlink target`):l.data;if(d.length>ed||s>ed)throw new V(`${H(l.name)} would need zip64`);let f=d,p=0;if(t===`deflate`&&l.type===`file`&&d.length){let e=await Hu(d);e.length<d.length&&(f=e,p=8)}let{time:m,date:h}=Ku(l.mtime),g=rd(l.mtime),_=[[2,p===8?20:10],[2,oo(u)?0:Xu],[2,p],[2,m],[2,h],[4,a(d)],[4,f.length],[4,d.length],[2,u.length],[2,g.length]];i.push(Vu([[4,Fu],..._]),u,g,f);let ee=(zu[l.type]|l.mode)*65536+(l.type===`directory`?16:0);o.push(Vu([[4,Iu],[2,Yu],..._,[2,0],[2,0],[2,0],[4,ee],[4,s]]),u,g),s+=30+u.length+g.length+f.length}let l=co(o);if(s+l.length>ed)throw new V(`the archive would need zip64`);let u=Vu([[4,Lu],[2,0],[2,0],[2,c],[2,c],[4,l.length],[4,s],[2,0]]);return co([...i,l,u])}var ad=134695760,od=117853008,sd=1,cd=21589,ld=28789,ud=1,dd=8,fd=16;function pd(e,t=0){let n=Bu(e),r=(n,r)=>{if(n<t||n+r>t+e.length)throw new V(`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)),slice:(n,i)=>(r(n,i),e.subarray(n-t,n-t+i))}}function md(e){if(e instanceof Uint8Array){let t=pd(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)=>pd(await t(n,Math.min(r,e.size)),n)}}throw new V(`the archive is not a Uint8Array or a Blob`)}var hd=65536;function gd(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+hd,o,e.size)),t=await e.window(n,r)),t}}async function _d(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)===Lu&&e+22+n.u16(e+20)===t){if(e>=20&&n.u32(e-20)===od)throw new V(`zip64 is not supported`,e-20);return{end:e,r:n}}throw new V(`no end of central directory record`)}function vd(e,t){let n=new Map,r=pd(e);for(let i=0;i<e.length;){let a=r.u16(i),o=r.u16(i+2);if(i+4+o>e.length)throw new V(`an extra field runs past its room`,t);if(a===sd)throw new V(`zip64 is not supported`,t);if(a===ld)throw new V(`an entry carries a second name in a Unicode path extra field`,t);n.has(a)||n.set(a,e.subarray(i+4,i+4+o)),i+=4+o}return n}async function yd(e,t){let n=await e(t,46);if(n.u32(t)!==Iu)throw new V(`no central directory entry where one is counted`,t);let r=n.u16(t+28),i=n.u16(t+30);n=await e(t,46+r+i);let a={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),attributes:n.u32(t+38),offset:n.u32(t+42),name:n.slice(t+46,r).slice(),next:t+46+r+i+n.u16(t+32)};if(n.u16(t+34)!==0)throw new V(`the archive spans several disks`,t);if(a.flags&ud)throw new V(`an entry is encrypted`,t);if(a.method!==0&&a.method!==8)throw new V(`compression method ${a.method} is not stored or deflate`,t);if(a.csize===4294967295||a.usize===4294967295||a.offset===4294967295)throw new V(`zip64 is not supported`,t);a.mtime=qu(a.date,a.time,t);let o=vd(n.slice(t+46+r,i),t).get(cd);if(o!==void 0&&o[0]&1){if(o.length<5)throw new V(`an extended timestamp is cut short`,t);a.mtime=Bu(o).getInt32(1,!0)}return a}async function bd(e,t,n,r){let i=t.offset,a=await e(i,30,r);if(a.u32(i)!==Fu)throw new V(`no local header where the central directory points`,i);let o=a.u16(i+26),s=a.u16(i+28);if(a=await e(i,30+o+s,r),!so(a.slice(i+30,o),t.name))throw new V(`the local header names a different entry`,i);for(let[e,n,r]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(a.u16(i+e)!==t[n])throw new V(`the local header has ${r}`,i);vd(a.slice(i+30+o,s),i);let c=t.flags&dd,l=(e,t)=>a.u32(i+e)===t||c&&a.u32(i+e)===0;if(!l(14,t.crc)||!l(18,t.csize)||!l(22,t.usize))throw new V(`the local header disagrees with the central directory`,i);t.dataAt=i+30+o+s;let u=t.dataAt+t.csize;if(c){let r=await e(u,16,n),i=e=>r.u32(e)===t.crc&&r.u32(e+4)===t.csize&&r.u32(e+8)===t.usize,a=r.u32(u)===ad&&i(u+4);if(i(u)&&!(a&&u+16===n))u+=12;else if(a)u+=16;else throw new V(`the data descriptor disagrees with the central directory`,u)}return u}function xd(e,t,n){let r=n&Ru;if(t.endsWith(`/`)){if(r!==0&&r!==zu.directory)throw new V(`${H(t)} is a directory by its name but not by its mode`,e.at);return`directory`}if(r===zu.directory)throw new V(`${H(t)} is a directory by its mode but not by its name`,e.at);if(e.attributes&fd)throw new V(`${H(t)} is a directory by its attributes but not by its name`,e.at);if(r===zu.symlink)return`symlink`;if(r===0||r===zu.file)return`file`;throw new V(`the mode of ${H(t)} (${n.toString(8)}) is not one this package reads`,e.at)}async function Sd(e,t,n){let{at:r,method:i,csize:o,usize:s}=t,c=Ao(t.name,`entry name`,r),l=t.madeBy>>8==3?t.attributes>>>16:0,u=xd(t,c,l);if(u===`directory`&&s!==0)throw new V(`directory ${H(c)} has data`,r);if(i===0&&o!==s)throw new V(`a stored entry has two sizes`,r);let d=await e.read(t.dataAt,t.dataAt+o);if(d.length!==o)throw new V(`the archive is truncated`,t.dataAt);let f=i===8?await Wu(d,s,r):d;if(a(f)!==t.crc)throw new V(`the data does not match its CRC-32`,r);let p=u===`symlink`?Ao(f,`symlink target`,r):``,m={...lo(()=>Ss(c,u,p,n.above),r),type:u,mode:l===0?jo[u]:l&4095,mtime:t.mtime,data:u===`file`?f:ao,storedName:c};return lo(()=>n.add(m),r),m}async function*Cd(e,{limit:t=1/0,symlinksAbove:n}={},r=!1){if(t!==1/0&&!(Number.isSafeInteger(t)&&t>=0))throw new V(`limit ${String(t)} is not a whole number of bytes`);let i=bs(n),{end:a,r:o}=await _d(e),s=o.u16(a+8);if(o.u16(a+4)!==0||o.u16(a+6)!==0||s!==o.u16(a+10))throw new V(`the archive spans several disks`,a);let c=o.u32(a+12),l=o.u32(a+16);if(s===65535||c===4294967295||l===4294967295)throw new V(`zip64 is not supported`,a);if(l+c!==a)throw new V(`the central directory does not end at the end record`,a);let u=gd(e),d=[],f=l,p=0;for(let e=0;e<s;e++){let e=await yd(u,f);if(p+=e.usize,p>t)throw new V(`the entries come to more than ${t} bytes`,f,{limited:!0});d.push(e),f=e.next}if(f!==a)throw new V(`the central directory does not hold what the end record counts`,f);let m=0,h=d.toSorted((e,t)=>e.offset-t.offset),g=h.map((e,t)=>h[t+1]?.offset??l),_=[];for(let e=h.length-1;e>=0;e--)_[e]=h[e].csize===0&&e+1<h.length?_[e+1]:g[e]-h[e].csize;let ee=gd(e);for(let[e,t]of h.entries()){if(t.offset!==m)throw new V(t.offset>m?`bytes belong to no entry`:`two entries overlap`,m);m=await bd(ee,t,g[e],_[e])}if(m!==l)throw new V(`bytes belong to no entry`,m);let v=new Es(r,i);for(let t of d)yield await Sd(e,t,v)}async function wd(e,t){if(!(e instanceof Uint8Array))throw new V(`the archive is not a Uint8Array`);return await Array.fromAsync(Cd(md(e),t,!0))}var Td=(e,t)=>e===null?t:`${e.endsWith(`/`)?e.slice(0,-1):e}/${t}`;function Ed(e,t,n){let r=jd(t.exdir,n);if(r===null)return!1;let i=[],a=Dd(e,r,i,t,n);for(let e of i)Od(e,n);return a}function Dd(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?mt(o.name):o.name,c=O(t,s),l=Td(r.exdir,e?`${s}/`:s),u=kd(c,a)?Md(j(c),a):`read-only`;if(u===`read-only`)return Ad(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(!Nd(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=Pd(c,l,r,i);if(d===null)return!1;if(d===`skip`)continue;let f=a.fs.openWritable(`/`,c);if(!f)return Ad(l,i);let p=o.type===`symlink`;f.writeBytes(p?E(o.linkname):o.data),p&&n.push({path:c,shown:l,target:o.linkname})}return!0}function Od({path:e,shown:t,target:n},r){let{fs:i}=r.ctx,a=k(`/`,e,i),o=a.path!==null&&i.isFile(a.path)?zn(i,a.path):null,s=E(n);if(o===null||o.length!==s.length||o.some((e,t)=>e!==s[t])){r.say(2,`warning: deferred symlink (${t}) failed:
|
|
54
|
+
`)},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 Du(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:w(n,e.gap.kind,`tar`,e.gap.detail,e.gap.message)}var Ou=32768;async function ku(e,t,n){let r=hu(t,n);if(r.usage)return{stdout:``,stderr:r.usage.text,exitCode:r.usage.status};let i=Eu(n);return r.blocking>Ou?i.refuse(`option`,`--blocking-factor`,`${r.blocking}: a record of that many blocks is more than this terminal holds`):r.mode===`create`?await ql(r,i):await Au(r,i),Du(i)}async function Au(e,t){let{ctx:n}=t,r=Date.now(),i=await Bl(e,t);if(!i)return;let a=yc(e.items),o=e.mode===`extract`;e.toStdout&&(t.listTo=2);let s=e.verbose>1?dc(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=bo(u),f=a.match(d);if(f===null)continue;let p=Pu(f,c,t);if(p===null)return;let m=o?nu(d,e.strip):d;if(m!==null&&(e.verbose>0&&t.list(s?s(u):oc(d,n)),o&&e.toStdout?(u.type===`file`||u.type===`contiguous-file`)&&ju(u.data,m,t):o&&iu(u,m,ru(p,m),t,e.keepOld,e=>Mu(m,e,s,t))&&Nu(i.mtimes[l],m,r,t),t.stopped))return}if(i.child)return t.fatal(`Child returned status ${i.child}`);bc(a,t,e.noWildcards)}function ju(e,t,n){n.closedOut?e.length>0&&n.error(`${mc(t,n.ctx)}: Cannot write: Bad file descriptor`):n.bytes(e)}function Mu(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 Nu(e,t,n,r){e>=0&&e*1e3<=n||r.refuse(`feature`,`archive times`,`${mc(t,r.ctx)}: extracting an entry dated before 1970 or in the future is not supported`)}function Pu(e,t,n){if(t.has(e))return t.get(e);let r=n.ctx.cwd;for(let t of e.dirs)if(r=xc(r,t,n),r===null)return null;return t.set(e,r),r}var Fu=67324752,Iu=33639248,Lu=101010256,Ru=61440,zu={file:32768,directory:16384,symlink:40960},Bu=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Vu(e){let t=new Uint8Array(e.reduce((e,[t])=>e+t,0)),n=Bu(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 Hu=e=>go(e,`deflate-raw`),Uu=1032;async function Wu(e,t,n){if(t>e.length*Uu)throw new V(`an entry declares more than its data can inflate to`,n);let r;try{r=await yo(e,`deflate-raw`,new Uint8Array(t))}catch(e){throw new V(e.limited?`an entry inflates to more than its declared size`:`an entry does not inflate`,n)}if(r.length!==t)throw new V(`an entry inflates to less than its declared size`,n);return r}function Gu(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 Ku(e){let t=Gu(e);if(t===null)throw new V(`mtime ${e} is outside DOS time, 1980 to 2107`);return t}function qu(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,i=Gu(r);if(i===null||i.time!==t||i.date!==e)throw new V(`an entry has an invalid DOS time`,n);return r}var Ju=new Set([`deflate`,`store`]),Yu=788,Xu=2048,Zu=315532800,Qu=2147483647,$u=65534,ed=4294967294;function td(e,t,n,r){if(!Number.isSafeInteger(e)||e<n||e>r)throw new V(`${t} ${String(e)} is not an integer from ${n} to ${r}`);return e}function nd(e){let t=Po(e,zu);return{...t,mode:td(e.mode??jo[t.type],`mode`,0,4095),mtime:td(e.mtime??Zu,`mtime`,Zu,Qu)}}var rd=e=>Vu([[2,21589],[2,5],[1,1],[4,e]]);async function id(t,{method:n=`deflate`,symlinksAbove:r}={}){if(!Ju.has(n))throw new V(`method ${H(String(n))} is not deflate or store`);let i=new Es(!0,bs(r)),a=[],o=[],s=0,c=0;for(let r of t){let t=nd(r),l={...t,...Ss(t.name,t.type,t.linkname,i.above)};if(i.add(l),++c>$u)throw new V(`more than ${$u} entries would need zip64`);let u=ko(No(l),`entry name`),d=l.type===`symlink`?ko(l.linkname,`symlink target`):l.data;if(d.length>ed||s>ed)throw new V(`${H(l.name)} would need zip64`);let f=d,p=0;if(n===`deflate`&&l.type===`file`&&d.length){let e=await Hu(d);e.length<d.length&&(f=e,p=8)}let{time:m,date:h}=Ku(l.mtime),g=rd(l.mtime),_=[[2,p===8?20:10],[2,oo(u)?0:Xu],[2,p],[2,m],[2,h],[4,e(d)],[4,f.length],[4,d.length],[2,u.length],[2,g.length]];a.push(Vu([[4,Fu],..._]),u,g,f);let ee=(zu[l.type]|l.mode)*65536+(l.type===`directory`?16:0);o.push(Vu([[4,Iu],[2,Yu],..._,[2,0],[2,0],[2,0],[4,ee],[4,s]]),u,g),s+=30+u.length+g.length+f.length}let l=co(o);if(s+l.length>ed)throw new V(`the archive would need zip64`);let u=Vu([[4,Lu],[2,0],[2,0],[2,c],[2,c],[4,l.length],[4,s],[2,0]]);return co([...a,l,u])}var ad=134695760,od=117853008,sd=1,cd=21589,ld=28789,ud=1,dd=8,fd=16;function pd(e,t=0){let n=Bu(e),r=(n,r)=>{if(n<t||n+r>t+e.length)throw new V(`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)),slice:(n,i)=>(r(n,i),e.subarray(n-t,n-t+i))}}function md(e){if(e instanceof Uint8Array){let t=pd(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)=>pd(await t(n,Math.min(r,e.size)),n)}}throw new V(`the archive is not a Uint8Array or a Blob`)}var hd=65536;function gd(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+hd,o,e.size)),t=await e.window(n,r)),t}}async function _d(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)===Lu&&e+22+n.u16(e+20)===t){if(e>=20&&n.u32(e-20)===od)throw new V(`zip64 is not supported`,e-20);return{end:e,r:n}}throw new V(`no end of central directory record`)}function vd(e,t){let n=new Map,r=pd(e);for(let i=0;i<e.length;){let a=r.u16(i),o=r.u16(i+2);if(i+4+o>e.length)throw new V(`an extra field runs past its room`,t);if(a===sd)throw new V(`zip64 is not supported`,t);if(a===ld)throw new V(`an entry carries a second name in a Unicode path extra field`,t);n.has(a)||n.set(a,e.subarray(i+4,i+4+o)),i+=4+o}return n}async function yd(e,t){let n=await e(t,46);if(n.u32(t)!==Iu)throw new V(`no central directory entry where one is counted`,t);let r=n.u16(t+28),i=n.u16(t+30);n=await e(t,46+r+i);let a={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),attributes:n.u32(t+38),offset:n.u32(t+42),name:n.slice(t+46,r).slice(),next:t+46+r+i+n.u16(t+32)};if(n.u16(t+34)!==0)throw new V(`the archive spans several disks`,t);if(a.flags&ud)throw new V(`an entry is encrypted`,t);if(a.method!==0&&a.method!==8)throw new V(`compression method ${a.method} is not stored or deflate`,t);if(a.csize===4294967295||a.usize===4294967295||a.offset===4294967295)throw new V(`zip64 is not supported`,t);a.mtime=qu(a.date,a.time,t);let o=vd(n.slice(t+46+r,i),t).get(cd);if(o!==void 0&&o[0]&1){if(o.length<5)throw new V(`an extended timestamp is cut short`,t);a.mtime=Bu(o).getInt32(1,!0)}return a}async function bd(e,t,n,r){let i=t.offset,a=await e(i,30,r);if(a.u32(i)!==Fu)throw new V(`no local header where the central directory points`,i);let o=a.u16(i+26),s=a.u16(i+28);if(a=await e(i,30+o+s,r),!so(a.slice(i+30,o),t.name))throw new V(`the local header names a different entry`,i);for(let[e,n,r]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(a.u16(i+e)!==t[n])throw new V(`the local header has ${r}`,i);vd(a.slice(i+30+o,s),i);let c=t.flags&dd,l=(e,t)=>a.u32(i+e)===t||c&&a.u32(i+e)===0;if(!l(14,t.crc)||!l(18,t.csize)||!l(22,t.usize))throw new V(`the local header disagrees with the central directory`,i);t.dataAt=i+30+o+s;let u=t.dataAt+t.csize;if(c){let r=await e(u,16,n),i=e=>r.u32(e)===t.crc&&r.u32(e+4)===t.csize&&r.u32(e+8)===t.usize,a=r.u32(u)===ad&&i(u+4);if(i(u)&&!(a&&u+16===n))u+=12;else if(a)u+=16;else throw new V(`the data descriptor disagrees with the central directory`,u)}return u}function xd(e,t,n){let r=n&Ru;if(t.endsWith(`/`)){if(r!==0&&r!==zu.directory)throw new V(`${H(t)} is a directory by its name but not by its mode`,e.at);return`directory`}if(r===zu.directory)throw new V(`${H(t)} is a directory by its mode but not by its name`,e.at);if(e.attributes&fd)throw new V(`${H(t)} is a directory by its attributes but not by its name`,e.at);if(r===zu.symlink)return`symlink`;if(r===0||r===zu.file)return`file`;throw new V(`the mode of ${H(t)} (${n.toString(8)}) is not one this package reads`,e.at)}async function Sd(t,n,r){let{at:i,method:a,csize:o,usize:s}=n,c=Ao(n.name,`entry name`,i),l=n.madeBy>>8==3?n.attributes>>>16:0,u=xd(n,c,l);if(u===`directory`&&s!==0)throw new V(`directory ${H(c)} has data`,i);if(a===0&&o!==s)throw new V(`a stored entry has two sizes`,i);let d=await t.read(n.dataAt,n.dataAt+o);if(d.length!==o)throw new V(`the archive is truncated`,n.dataAt);let f=a===8?await Wu(d,s,i):d;if(e(f)!==n.crc)throw new V(`the data does not match its CRC-32`,i);let p=u===`symlink`?Ao(f,`symlink target`,i):``,m={...lo(()=>Ss(c,u,p,r.above),i),type:u,mode:l===0?jo[u]:l&4095,mtime:n.mtime,data:u===`file`?f:ao,storedName:c};return lo(()=>r.add(m),i),m}async function*Cd(e,{limit:t=1/0,symlinksAbove:n}={},r=!1){if(t!==1/0&&!(Number.isSafeInteger(t)&&t>=0))throw new V(`limit ${String(t)} is not a whole number of bytes`);let i=bs(n),{end:a,r:o}=await _d(e),s=o.u16(a+8);if(o.u16(a+4)!==0||o.u16(a+6)!==0||s!==o.u16(a+10))throw new V(`the archive spans several disks`,a);let c=o.u32(a+12),l=o.u32(a+16);if(s===65535||c===4294967295||l===4294967295)throw new V(`zip64 is not supported`,a);if(l+c!==a)throw new V(`the central directory does not end at the end record`,a);let u=gd(e),d=[],f=l,p=0;for(let e=0;e<s;e++){let e=await yd(u,f);if(p+=e.usize,p>t)throw new V(`the entries come to more than ${t} bytes`,f,{limited:!0});d.push(e),f=e.next}if(f!==a)throw new V(`the central directory does not hold what the end record counts`,f);let m=0,h=d.toSorted((e,t)=>e.offset-t.offset),g=h.map((e,t)=>h[t+1]?.offset??l),_=[];for(let e=h.length-1;e>=0;e--)_[e]=h[e].csize===0&&e+1<h.length?_[e+1]:g[e]-h[e].csize;let ee=gd(e);for(let[e,t]of h.entries()){if(t.offset!==m)throw new V(t.offset>m?`bytes belong to no entry`:`two entries overlap`,m);m=await bd(ee,t,g[e],_[e])}if(m!==l)throw new V(`bytes belong to no entry`,m);let v=new Es(r,i);for(let t of d)yield await Sd(e,t,v)}async function wd(e,t){if(!(e instanceof Uint8Array))throw new V(`the archive is not a Uint8Array`);return await Array.fromAsync(Cd(md(e),t,!0))}var Td=(e,t)=>e===null?t:`${e.endsWith(`/`)?e.slice(0,-1):e}/${t}`;function Ed(e,t,n){let r=jd(t.exdir,n);if(r===null)return!1;let i=[],a=Dd(e,r,i,t,n);for(let e of i)Od(e,n);return a}function Dd(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?mt(o.name):o.name,c=O(t,s),l=Td(r.exdir,e?`${s}/`:s),u=kd(c,a)?Md(j(c),a):`read-only`;if(u===`read-only`)return Ad(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(!Nd(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=Pd(c,l,r,i);if(d===null)return!1;if(d===`skip`)continue;let f=a.fs.openWritable(`/`,c);if(!f)return Ad(l,i);let p=o.type===`symlink`;f.writeBytes(p?E(o.linkname):o.data),p&&n.push({path:c,shown:l,target:o.linkname})}return!0}function Od({path:e,shown:t,target:n},r){let{fs:i}=r.ctx,a=k(`/`,e,i),o=a.path!==null&&i.isFile(a.path)?zn(i,a.path):null,s=E(n);if(o===null||o.length!==s.length||o.some((e,t)=>e!==s[t])){r.say(2,`warning: deferred symlink (${t}) failed:
|
|
55
55
|
invalid placeholder file
|
|
56
56
|
`);return}i.removeWritable(`/`,e),i.makeWritableLink(`/`,e,n)}var kd=(e,t)=>t.writable&&R(e);function Ad(e,t){return t.refuse(`feature`,`read-only target`,`${e}: Read-only file system`),!1}function jd(e,t){let{ctx:n}=t;if(e===null)return n.cwd;let r=O(n.cwd,e),i=k(`/`,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=k(`/`,j(r),n.fs);return a.error===null?!kd(r,n)||!n.fs.makeWritableDir(`/`,r)?(Ad(e,t),null):r:(t.say(2,`checkdir: cannot create extraction directory: ${e}
|
|
57
57
|
${a.error}
|
|
@@ -109,7 +109,7 @@ ${i}`,1)}:t.has(`tag`)&&r.text?{error:x(`${e}: --tag does not support --text mod
|
|
|
109
109
|
${i}`,1)}:{mode:r}}function Vf(e,t,n){let r=t.has(`z`)||t.has(`zero`)?`\0`:`
|
|
110
110
|
`;if(t.has(`tag`)){let t=e.replace(`-`,``);return(e,n)=>`${t} (${n}) = ${e}${r}`}return(e,t)=>`${e}${n.binary?` *`:` `}${t}${r}`}var Hf=Nf()?{sha1sum:If(`sha1sum`,1),sha256sum:If(`sha256sum`,256),sha384sum:If(`sha384sum`,384),sha512sum:If(`sha512sum`,512),shasum:If(`shasum`,1)}:{},Uf=()=>typeof fetch==`function`;function Wf(e){if(e.network!==void 0&&typeof e.network!=`boolean`)throw TypeError(`createTerminal: network must be true or false (got ${e.network===null?`null`:typeof e.network})`);return e.network===!0}var Gf=Object.freeze([`http:`,`https:`]),Kf=/^[a-zA-Z][a-zA-Z0-9+.-]*:/u;function qf(e){let t=Kf.test(e)?e:`http://`+e,n;try{n=new URL(t)}catch{return{malformed:!0}}return Gf.includes(n.protocol)?n.hostname===``?{malformed:!0}:{url:n}:{protocol:n.protocol.slice(0,-1)}}var Jf=new Set([`ENOTFOUND`,`EAI_AGAIN`]),Yf=new Set([`ETIMEDOUT`,`UND_ERR_CONNECT_TIMEOUT`,`UND_ERR_HEADERS_TIMEOUT`,`UND_ERR_BODY_TIMEOUT`]),Xf=new Set([`ECONNRESET`,`ECONNABORTED`,`EPIPE`]),Zf=new Set([`CERT_HAS_EXPIRED`,`CERT_NOT_YET_VALID`,`DEPTH_ZERO_SELF_SIGNED_CERT`,`SELF_SIGNED_CERT_IN_CHAIN`,`UNABLE_TO_GET_ISSUER_CERT_LOCALLY`,`UNABLE_TO_VERIFY_LEAF_SIGNATURE`,`ERR_TLS_CERT_ALTNAME_INVALID`]),Qf=new Set([`TimeoutError`,`AbortError`]);function $f(e,t,n){let r=tp(e),i=np(e),a=`Failed to connect to ${t.hostname} port ${ep(t)}`;return Qf.has(e?.name)||Yf.has(r)?{code:28,message:n===null?`Operation timed out: ${i}`:`Operation timed out after ${n} milliseconds`}:Jf.has(r)?{code:6,message:`Could not resolve host: ${t.hostname}`}:Zf.has(r)?{code:60,message:`SSL certificate problem: ${i}`}:Xf.has(r)?{code:56,message:`Recv failure: ${i}`}:{code:7,message:`${a}: ${i}`}}var ep=e=>e.port===``?e.protocol===`https:`?443:80:e.port;function tp(e){for(let t=e,n=0;t!=null&&n<8;t=t.cause,n++)if(typeof t.code==`string`)return t.code;return null}function np(e){let t=typeof e?.message==`string`&&e.message!==``?e.message:`transfer failed`;for(let n=e?.cause,r=0;n!=null&&r<8;n=n.cause,r++)typeof n.message==`string`&&n.message!==``&&(t=n.message);return t}async function rp(e,t,n=null){try{return{response:await fetch(e.href,t)}}catch(t){return{failed:$f(t,e,n)}}}async function ip(e,t,n=null){try{return{bytes:new Uint8Array(await e.arrayBuffer())}}catch(e){let{code:r,message:i}=$f(e,t,n);return{failed:r===7?{code:56,message:`Recv failure: ${np(e)}`}:{code:r,message:i}}}}async function ap(e){try{await e.body?.cancel()}catch{}}var op={short:[`h`,`s`,`S`,`i`,`I`,`L`,`f`,`O`,`k`,`v`,`G`,`n`],long:[`help`,`silent`,`show-error`,`no-progress-meter`,`include`,`head`,`location`,`location-trusted`,`fail`,`remote-name`,`compressed`,`insecure`,`verbose`,`get`,`netrc`],valueShort:[`X`,`A`,`m`,`u`,`e`,`b`,`c`,`w`,`x`,`T`,`r`,`C`,`E`,`D`,`F`],valueLong:[`request`,`user-agent`,`max-time`,`user`,`max-redirs`,`referer`,`cookie`,`cookie-jar`,`write-out`,`proxy`,`proxy-user`,`upload-file`,`range`,`continue-at`,`cert`,`key`,`cacert`,`capath`,`dump-header`,`connect-timeout`,`retry`,`limit-rate`,`resolve`,`interface`,`form`],repeatable:[`H`,`header`,`d`,`data`,`data-raw`,`data-ascii`,`data-binary`,`json`,`o`,`output`]},sp=new Map([[`k`,`certificates are the runtime's to check, and nothing here can tell it not to`],[`insecure`,`certificates are the runtime's to check, and nothing here can tell it not to`],[`v`,"the trace is of a connection this code never sees; `-i` prints the response headers"],[`verbose`,"the trace is of a connection this code never sees; `-i` prints the response headers"],[`location-trusted`,"a credential is for the origin it was given for; `-L` follows the hop without it"],[`G`,`moving the data into the query string is not implemented; put it in the URL`],[`get`,`moving the data into the query string is not implemented; put it in the URL`],[`n`,"there is no home directory here to read a `.netrc` from"],[`netrc`,"there is no home directory here to read a `.netrc` from"],[`b`,'there is no cookie jar here; a cookie to send is `-H "Cookie: …"`'],[`cookie`,'there is no cookie jar here; a cookie to send is `-H "Cookie: …"`'],[`c`,`there is no cookie jar here to write`],[`cookie-jar`,`there is no cookie jar here to write`],[`w`,`the transfer keeps no measurements of its own to write out`],[`write-out`,`the transfer keeps no measurements of its own to write out`],[`x`,`a proxy is the runtime's own setting, and nothing here passes it one`],[`proxy`,`a proxy is the runtime's own setting, and nothing here passes it one`],[`proxy-user`,`a proxy is the runtime's own setting, and nothing here passes it one`],[`F`,"a multipart body is not implemented; `--data-binary` sends one you spell out yourself"],[`form`,"a multipart body is not implemented; `--data-binary` sends one you spell out yourself"],[`T`,"uploading a file is not implemented; `-X PUT --data-binary @file` sends the same bytes"],[`upload-file`,"uploading a file is not implemented; `-X PUT --data-binary @file` sends the same bytes"],[`r`,'a ranged request is `-H "Range: bytes=…"`'],[`range`,'a ranged request is `-H "Range: bytes=…"`'],[`C`,`there is nothing to resume: a transfer here is one request and its answer`],[`continue-at`,`there is nothing to resume: a transfer here is one request and its answer`],[`E`,`client certificates are the runtime's own`],[`cert`,`client certificates are the runtime's own`],[`key`,`client certificates are the runtime's own`],[`cacert`,`the trust store is the runtime's own`],[`capath`,`the trust store is the runtime's own`],[`e`,'a referer is `-H "Referer: …"`'],[`referer`,'a referer is `-H "Referer: …"`'],[`D`,"writing the headers to a file of their own is not implemented; `-i` writes them in front of the body"],[`dump-header`,"writing the headers to a file of their own is not implemented; `-i` writes them in front of the body"],[`connect-timeout`,"only the whole transfer can be timed here, which is `--max-time`"],[`retry`,`retrying is not implemented: a transfer here is one request and its answer`],[`limit-rate`,`the runtime reads the response at its own pace`],[`resolve`,`name resolution is the runtime's own`],[`interface`,`the interface a request leaves by is the runtime's own`]]),cp=new Map([[`d`,`text`],[`data`,`text`],[`data-ascii`,`text`],[`data-raw`,`raw`],[`data-binary`,`binary`],[`json`,`json`]]),lp=new Set([`H`,`header`]),up=new Set([`o`,`output`]),dp=new Set([`O`,`remote-name`]),fp=`application/x-www-form-urlencoded`,pp=`application/json`,mp=50,hp=new Set([10,13]);function gp(e,t,n){let{flags:r,values:i,positional:a,order:o}=U(e,op);if(r.has(`h`)||r.has(`help`))return{help:!0};let s=_p(r,i);return s?{refusal:s}:{opts:vp(r,i,o,t,n),urls:a,targets:Op(o)}}function _p(e,t){for(let[n,r]of sp){if(!e.has(n)&&!t.has(n))continue;let i=(n.length===1?`-`:`--`)+n;return C(`option`,`curl`,i,`curl: ${i}: ${r}`,2)}return null}function vp(e,t,n,r,i){i.quiet=(e.has(`s`)||e.has(`silent`))&&!e.has(`S`)&&!e.has(`show-error`);let a=bp(n,r,i);if(a===null)return null;let o=wp(t,n,a,i);if(o===null)return null;let s=yp(t.get(`max-redirs`),`--max-redirs`,i),c=yp(t.get(`m`)??t.get(`max-time`),`--max-time`,i);if(s===null||c===null)return null;if(c!==void 0&&typeof AbortSignal?.timeout!=`function`)return Ap(i,`feature`,`--max-time`,2,`this runtime cannot put a deadline on a request`);let l=e.has(`I`)||e.has(`head`);return{headers:o,body:a.bytes,head:l,include:e.has(`i`)||e.has(`include`),location:e.has(`L`)||e.has(`location`),failEarly:e.has(`f`)||e.has(`fail`),method:t.get(`X`)??t.get(`request`)??(l?`HEAD`:a.bytes===null?`GET`:`POST`),redirects:s===void 0?mp:s<0?1/0:s,timeout:c===void 0?null:Math.round(c*1e3)}}function yp(e,t,n){if(e===void 0)return;let r=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/u.test(e.trim())?Number(e.trim()):NaN;return Number.isFinite(r)?r:(n.stderr+=`curl: option ${t}: expected a proper numerical parameter
|
|
111
111
|
`,n.status=2,null)}function bp(e,t,n){let r=[],i=new Set;for(let{name:a,value:o}of e){let e=cp.get(a);if(e===void 0)continue;let s=xp(e,o,t,n);if(s===null)return null;i.add(e===`json`?`json`:`form`),r.push(s)}if(r.length===0)return{bytes:null,json:!1};if(i.size>1)return n.stderr+=`curl: --json cannot be mixed with --data
|
|
112
|
-
`,n.status=2,null;let a=i.has(`json`),o=[];for(let[e,t]of r.entries())e>0&&!a&&o.push(E(`&`)),o.push(t);return{bytes:ct([...o,new Uint8Array]),json:a}}function xp(e,t,n,r){if(e===`raw`||!t.startsWith(`@`))return E(t);let i=t.slice(1),a=i===`-`?Sp(n,r.ctx):Cp(i,r);return a===null?null:e===`text`?a.filter(e=>!hp.has(e)):a}function Sp(e,t){let n=t.stdinBytes,r=t.stdinLeft===``?e:t.stdinLeft;return I(t,``,!0),n??E(r)}function Cp(e,t){let{ctx:n}=t,r=P(n,`curl`,e);return r.error||n.fs.isDir(r.path)?(kp(t,26,`Failed to open/read local data from file/application`),null):zn(n.fs,r.path)}function wp(
|
|
112
|
+
`,n.status=2,null;let a=i.has(`json`),o=[];for(let[e,t]of r.entries())e>0&&!a&&o.push(E(`&`)),o.push(t);return{bytes:ct([...o,new Uint8Array]),json:a}}function xp(e,t,n,r){if(e===`raw`||!t.startsWith(`@`))return E(t);let i=t.slice(1),a=i===`-`?Sp(n,r.ctx):Cp(i,r);return a===null?null:e===`text`?a.filter(e=>!hp.has(e)):a}function Sp(e,t){let n=t.stdinBytes,r=t.stdinLeft===``?e:t.stdinLeft;return I(t,``,!0),n??E(r)}function Cp(e,t){let{ctx:n}=t,r=P(n,`curl`,e);return r.error||n.fs.isDir(r.path)?(kp(t,26,`Failed to open/read local data from file/application`),null):zn(n.fs,r.path)}function wp(e,n,r,i){let a=new Headers;r.bytes!==null&&a.set(`content-type`,r.json?pp:fp),r.json&&a.set(`accept`,pp);let o=e.get(`A`)??e.get(`user-agent`);o!==void 0&&a.set(`user-agent`,o);let s=e.get(`u`)??e.get(`user`);if(s!==void 0){if(!s.includes(`:`))return Ap(i,`feature`,`-u`,2,`there is no interactive input here to read a password from`);a.set(`authorization`,`Basic ${t(E(s))}`)}for(let{name:e,value:t}of n)if(lp.has(e)&&!Tp(a,t,i))return null;return a}function Tp(e,t,n){let r=t.indexOf(`:`);if(r===-1)return t.endsWith(`;`)?Ep(e,t.slice(0,-1),``,n):Dp(n,t);let i=t.slice(r+1).trim();return i===``?(Ap(n,`option`,`-H`,2,`-H "${t}": taking away a header the runtime sends is not supported`),!1):Ep(e,t.slice(0,r),i,n)}function Ep(e,t,n,r){try{e.set(t.trim(),n)}catch{return Dp(r,t.trim())}return!0}function Dp(e,t){return e.stderr+=`curl: -H: not a header: ${t}
|
|
113
113
|
`,e.status=2,!1}function Op(e){let t=[];for(let{name:n,value:r}of e)up.has(n)?t.push(r===`-`?null:{file:r}):dp.has(n)&&t.push({remote:!0});return t}function kp(e,t,n){return e.quiet||(e.stderr+=`curl: (${t}) ${n}
|
|
114
114
|
`),e.status=t,!1}function Ap(e,t,n,r,i){return e.gap??={kind:t,detail:n,message:`curl: (${r}) ${i}`},kp(e,r,i),null}var jp=new Set([301,302,303,307,308]),Mp=new Set([301,302,303]);async function Np(e,t,n){let r={ctx:n,events:[],stderr:``,status:0,gap:null,quiet:!1},{help:i,refusal:a,opts:o,urls:s,targets:c}=gp(t,e,r);if(i)return{stdout:Fp,stderr:``,exitCode:0};if(a)return a;if(o===null)return Ip(r);if(s.length===0)return Pp();for(let[e,t]of s.entries())await Lp(t,c[e]??null,o,r);return Ip(r)}var Pp=()=>({stdout:``,stderr:`curl: try 'curl --help' for more information
|
|
115
115
|
`,exitCode:2}),Fp=`Usage: curl [options...] <url>
|
|
@@ -138,10 +138,10 @@ to exist here for it to work.
|
|
|
138
138
|
`;function Ip(e){let t=[...e.events,...e.stderr?[{fd:2,text:e.stderr}]:[]],n={stdout:``,stderr:e.stderr,exitCode:e.status,events:t};return e.gap?w(n,e.gap.kind,`curl`,e.gap.detail,e.gap.message):n}async function Lp(e,t,n,r){let i=qf(e);if(i.protocol)return Ap(r,`feature`,`protocol`,1,Rp(i.protocol));if(i.malformed)return kp(r,3,`URL using bad/illegal format or missing URL`);let a=t?.remote?zp(i.url):t?.file??null,o={url:i.url,method:n.method,body:n.body,headers:n.headers},s=n.timeout===null?null:AbortSignal.timeout(n.timeout),c=``;for(let e=0;;e++){let{response:t,failed:i}=await rp(o.url,Bp(o,s),n.timeout);if(i)return kp(r,i.code,i.message);(n.include||n.head)&&(c+=Jp(t,r.ctx));let l=Vp(t,o,n);if(l===null)return Gp(t,o.url,c,a,n,r);if(await ap(t),e>=n.redirects)return kp(r,47,`Maximum (${n.redirects}) redirects followed`);if(l.protocol)return Ap(r,`feature`,`protocol`,1,Rp(l.protocol));Object.assign(o,l)}}var Rp=e=>`Protocol "${e}" not supported or disabled in libcurl`,zp=e=>e.pathname.slice(e.pathname.lastIndexOf(`/`)+1),Bp=(e,t)=>({method:e.method,headers:e.headers,redirect:`manual`,...e.body===null?{}:{body:e.body},...t===null?{}:{signal:t}});function Vp(e,t,n){if(!n.location||!jp.has(e.status))return null;let r=e.headers.get(`location`);if(r===null||r===``)return null;let i;try{i=new URL(r,t.url)}catch{return null}if(i.protocol!==`http:`&&i.protocol!==`https:`)return{protocol:i.protocol.slice(0,-1)};let a=Mp.has(e.status)&&t.method!==`HEAD`&&t.method!==`GET`;return{url:i,method:a?`GET`:t.method,body:a?null:t.body,headers:Wp(t.headers,a,i.origin!==t.url.origin)}}var Hp=Object.freeze([`content-type`,`content-length`]),Up=Object.freeze([`authorization`,`cookie`,`proxy-authorization`]);function Wp(e,t,n){if(!t&&!n)return e;let r=new Headers(e);if(t)for(let e of Hp)r.delete(e);if(n)for(let e of Up)r.delete(e);return r}async function Gp(e,t,n,r,i,a){if(i.failEarly&&e.status>=400)return await ap(e),kp(a,22,`The requested URL returned error: ${e.status}`);if(i.head)return await ap(e),Kp(n,null,r,a);let o=await ip(e,t,i.timeout);return o.failed?kp(a,o.failed.code,o.failed.message):Kp(n,o.bytes,r,a)}function Kp(e,t,n,r){return n===null?(e!==``&&r.events.push({fd:1,text:e}),t!==null&&t.length>0&&r.events.push({fd:1,bytes:t}),!0):qp(n,e,t,r)}function qp(e,t,n,r){let{ctx:i}=r;if(e===``)return kp(r,23,`Remote filename has no length`);let a;try{a=i.writable&&i.fs.openWritable?.(i.cwd,e)}catch(e){return kp(r,23,`Failure writing output to destination: ${e.message}`)}return a?(a.writeBytes(ct([E(t),n??new Uint8Array])),!0):Ap(r,`feature`,`read-only target`,23,`${e}: file system is read-only`)}function Jp(e,t){t.notes?.add(`curl: response header names are lowercased and sorted, and the status line reads HTTP/1.1 whatever the connection spoke.`);let n=[`HTTP/1.1 ${e.status}${e.statusText===``?``:` ${e.statusText}`}`],r=e.headers.getSetCookie?.()??[],i=!1;for(let[t,a]of e.headers){if(t!==`set-cookie`){n.push(`${t}: ${a}`);continue}if(r.length===0){n.push(`${t}: ${a}`);continue}if(!i){i=!0;for(let e of r)n.push(`${t}: ${e}`)}}return n.join(`\r
|
|
139
139
|
`)+`\r
|
|
140
140
|
\r
|
|
141
|
-
`}var Yp={...Hc,...xf,...Hf,...vf},Xp=Object.freeze({__proto__:null,curl:Np}),Zp=Object.freeze(Object.keys(Xp)),Qp=e=>e===!0&&Uf()?Xp:null,$p=new Uint8Array;function em(e,t,n,r,i){let a=tm(e,i.skip,i.skipFlag,0),o=tm(e,i.len,i.lenFlag,1/0);if(a.error||o.error)return{error:a.error??o.error};let s=o.value,c=a.value,l=0,u=n,d=r.stdinBytes,f=[],m={stderr:``,failed:!1};for(let n of t.length?t:[null]){let t=Vn(e,n===null?[]:[n],u,r,{read:`loose-bytes`,noRead:s===0&&c===0}),o=t.entries[0]?.kind===`dir`;if(m.stderr+=t.stderr,m.failed||=t.failed&&!(e===`hexdump`&&o),c&&o)return{error:C(`feature`,e,`skip across unreadable input`,`${e}: skipping across a directory operand is not supported`)};if(o&&e===`xxd`)return{error:x(m.stderr,2)};if(!t.inputs.length&&!o)continue;let h=t.inputs[0],g=h&&(h.shared||h.name===null);if(e===`hexdump`&&c&&g&&!r.stdinFile)return I(r,u,!0,d),{error:x(`hexdump: standard input: Illegal seek`)};let _=g&&r.stdinFile&&i.skip!==void 0&&(e===`xxd`||e===`hexdump`&&a.value>0),ee=_?p(r.stdinOrigin):h?.bytes??$p,v=Math.min(c,ee.length);c-=v,l+=v;let te=Math.min(s,ee.length-v);if(f.push(ee.subarray(v,v+te)),s-=te,g){let e=ee.subarray(v+te),t=d!==null&&!_&&e.length>0?e:null;u=t===null?D(e):$e(e)??``,I(r,u,!0,t)}if(_&&c&&(l=a.value,c=0),s===0&&c===0)break}if(c&&i.skipPastEofErrors)return{error:x(m.stderr+`${e}: cannot skip past end of combined input`)};let h=new Uint8Array(f.reduce((e,t)=>e+t.length,0)),g=0;for(let e of f)h.set(e,g),g+=e.length;return{bytes:h,start:l,r:m}}function tm(e,t,n,r){if(t===void 0)return{value:r};if(e===`xxd`&&!/^(?:0[xX][\da-fA-F]+|0[0-7]*|[1-9]\d*)$/u.test(t))return{error:C(`feature`,e,`${n} ${t}`,`xxd: this offset/count spelling is not supported: ${t}`)};if(e===`hexdump`)return/^[ \t\n\r\v\f]*[+\d-]/u.test(t)?!/^\d+$/u.test(t)||/^0\d/u.test(t)?{error:C(`feature`,e,`${n} ${t}`,`hexdump: this offset/count spelling is not supported: ${t}`)}:BigInt(t)>BigInt(2**53-1)?{error:C(`feature`,e,`large byte count`,`hexdump: counts beyond exact integer precision are not supported`)}:{value:Number(t)}:{error:x(`${e}: ${n}: invalid count: ${t}`)};let i=/^[ \t\n\r\v\f]*\+?(0[xX][\da-fA-F]+|0[0-7]*|[1-9]\d*)(b|[kKMGTPEZYRQ](?:i?B)?)?$/u.exec(t);if(!i)return{error:x(`${e}: ${n}: invalid count: ${t}`)};let a=/^0\d/u.test(i[1])?`0o`+i[1].slice(1):i[1];return Yn(BigInt(a),i[2],`${e}: ${n}`,t)}var nm=16,rm=47,im=39;function am(e,t,n){let{flags:r,values:i,positional:a}=U(t,{short:[`C`,`v`],valueShort:[`n`,`s`]});if(a.includes(`-`))return C(`feature`,`hexdump`,`hyphen input operand`,`hexdump: a hyphen input operand is not supported; omit operands to read stdin`);let o=em(`hexdump`,a,e,n,{skip:i.get(`s`),len:i.get(`n`),skipFlag:`-s`,lenFlag:`-n`});return o.error?o.error:Kn(cm(o.bytes,o.start,r.has(`v`),r.has(`C`)?um:lm),o.r)}function om(e,t,n){let{flags:r,values:i,positional:a}=U(t,{short:[`v`],valueShort:[`j`,`N`]});if(!r.size&&!i.size&&(a.length===1&&/^\+\d/u.test(a[0])||a.length===2&&/^\+?\d/u.test(a[1])))return C(`feature`,`od`,`legacy offset operand`,`od: legacy offset operands are not supported; use -j OFFSET`);let o=em(`od`,a,e,n,{skip:i.get(`j`),len:i.get(`N`),skipFlag:`-j`,lenFlag:`-N`,skipPastEofErrors:!0});return o.error?o.error:Kn(cm(o.bytes,o.start,r.has(`v`),dm),o.r)}function sm(e,t,n){let{values:r,positional:i}=U(t,{valueShort:[`s`,`l`]});if(i.length>2)return x(`xxd: too many operands`);if(i.length===2&&i[1]!==`-`)return C(`feature`,`xxd`,`output file`,`xxd: output files are not supported (filesystem is read-only)`);let a=em(`xxd`,i.slice(0,1),e,n,{skip:r.get(`s`),len:r.get(`l`),skipFlag:`-s`,lenFlag:`-l`});return a.error?a.error:Kn(cm(a.bytes,a.start,!1,fm),a.r)}function cm(e,t,
|
|
141
|
+
`}var Yp={...Hc,...xf,...Hf,...vf},Xp=Object.freeze({__proto__:null,curl:Np}),Zp=Object.freeze(Object.keys(Xp)),Qp=e=>e===!0&&Uf()?Xp:null,$p=new Uint8Array;function em(e,t,n,r,i){let a=tm(e,i.skip,i.skipFlag,0),o=tm(e,i.len,i.lenFlag,1/0);if(a.error||o.error)return{error:a.error??o.error};let s=o.value,c=a.value,l=0,u=n,d=r.stdinBytes,f=[],m={stderr:``,failed:!1};for(let n of t.length?t:[null]){let t=Vn(e,n===null?[]:[n],u,r,{read:`loose-bytes`,noRead:s===0&&c===0}),o=t.entries[0]?.kind===`dir`;if(m.stderr+=t.stderr,m.failed||=t.failed&&!(e===`hexdump`&&o),c&&o)return{error:C(`feature`,e,`skip across unreadable input`,`${e}: skipping across a directory operand is not supported`)};if(o&&e===`xxd`)return{error:x(m.stderr,2)};if(!t.inputs.length&&!o)continue;let h=t.inputs[0],g=h&&(h.shared||h.name===null);if(e===`hexdump`&&c&&g&&!r.stdinFile)return I(r,u,!0,d),{error:x(`hexdump: standard input: Illegal seek`)};let _=g&&r.stdinFile&&i.skip!==void 0&&(e===`xxd`||e===`hexdump`&&a.value>0),ee=_?p(r.stdinOrigin):h?.bytes??$p,v=Math.min(c,ee.length);c-=v,l+=v;let te=Math.min(s,ee.length-v);if(f.push(ee.subarray(v,v+te)),s-=te,g){let e=ee.subarray(v+te),t=d!==null&&!_&&e.length>0?e:null;u=t===null?D(e):$e(e)??``,I(r,u,!0,t)}if(_&&c&&(l=a.value,c=0),s===0&&c===0)break}if(c&&i.skipPastEofErrors)return{error:x(m.stderr+`${e}: cannot skip past end of combined input`)};let h=new Uint8Array(f.reduce((e,t)=>e+t.length,0)),g=0;for(let e of f)h.set(e,g),g+=e.length;return{bytes:h,start:l,r:m}}function tm(e,t,n,r){if(t===void 0)return{value:r};if(e===`xxd`&&!/^(?:0[xX][\da-fA-F]+|0[0-7]*|[1-9]\d*)$/u.test(t))return{error:C(`feature`,e,`${n} ${t}`,`xxd: this offset/count spelling is not supported: ${t}`)};if(e===`hexdump`)return/^[ \t\n\r\v\f]*[+\d-]/u.test(t)?!/^\d+$/u.test(t)||/^0\d/u.test(t)?{error:C(`feature`,e,`${n} ${t}`,`hexdump: this offset/count spelling is not supported: ${t}`)}:BigInt(t)>BigInt(2**53-1)?{error:C(`feature`,e,`large byte count`,`hexdump: counts beyond exact integer precision are not supported`)}:{value:Number(t)}:{error:x(`${e}: ${n}: invalid count: ${t}`)};let i=/^[ \t\n\r\v\f]*\+?(0[xX][\da-fA-F]+|0[0-7]*|[1-9]\d*)(b|[kKMGTPEZYRQ](?:i?B)?)?$/u.exec(t);if(!i)return{error:x(`${e}: ${n}: invalid count: ${t}`)};let a=/^0\d/u.test(i[1])?`0o`+i[1].slice(1):i[1];return Yn(BigInt(a),i[2],`${e}: ${n}`,t)}var nm=16,rm=47,im=39;function am(e,t,n){let{flags:r,values:i,positional:a}=U(t,{short:[`C`,`v`],valueShort:[`n`,`s`]});if(a.includes(`-`))return C(`feature`,`hexdump`,`hyphen input operand`,`hexdump: a hyphen input operand is not supported; omit operands to read stdin`);let o=em(`hexdump`,a,e,n,{skip:i.get(`s`),len:i.get(`n`),skipFlag:`-s`,lenFlag:`-n`});return o.error?o.error:Kn(cm(o.bytes,o.start,r.has(`v`),r.has(`C`)?um:lm),o.r)}function om(e,t,n){let{flags:r,values:i,positional:a}=U(t,{short:[`v`],valueShort:[`j`,`N`]});if(!r.size&&!i.size&&(a.length===1&&/^\+\d/u.test(a[0])||a.length===2&&/^\+?\d/u.test(a[1])))return C(`feature`,`od`,`legacy offset operand`,`od: legacy offset operands are not supported; use -j OFFSET`);let o=em(`od`,a,e,n,{skip:i.get(`j`),len:i.get(`N`),skipFlag:`-j`,lenFlag:`-N`,skipPastEofErrors:!0});return o.error?o.error:Kn(cm(o.bytes,o.start,r.has(`v`),dm),o.r)}function sm(e,t,n){let{values:r,positional:i}=U(t,{valueShort:[`s`,`l`]});if(i.length>2)return x(`xxd: too many operands`);if(i.length===2&&i[1]!==`-`)return C(`feature`,`xxd`,`output file`,`xxd: output files are not supported (filesystem is read-only)`);let a=em(`xxd`,i.slice(0,1),e,n,{skip:r.get(`s`),len:r.get(`l`),skipFlag:`-s`,lenFlag:`-l`});return a.error?a.error:Kn(cm(a.bytes,a.start,!1,fm),a.r)}function cm(e,t,n,i){let a=i.hex?r(e):``,o=[],s=null,c=!1;for(let r=0;r<e.length;r+=nm){let l=e.subarray(r,r+nm),u=i.hex?a.slice(r*2,(r+nm)*2):``;i.compress&&!n&&s!==null&&l.length===nm&&bm(l,s)?c||=(o.push(`*`),!0):(o.push(i.row(t+r,l,u)),c=!1),s=l}let l=t+e.length;return(i.trailer===`always`||i.trailer===`nonzero`&&l>0)&&o.push(i.addr(l)),Mn(o)}var lm={compress:!0,trailer:`nonzero`,addr:pm,row:(e,t)=>(pm(e)+` `+_m(t).map(xm).join(` `)).padEnd(rm)},um={compress:!0,trailer:`nonzero`,addr:mm,hex:!0,row:gm},dm={compress:!0,trailer:`always`,addr:hm,row:(e,t)=>hm(e)+` `+_m(t).map(Sm).join(` `)},fm={compress:!1,trailer:`never`,hex:!0,row:(e,t,n)=>`${mm(e)}: ${vm(t,n).join(` `).padEnd(im)} ${ym(t)}`};function pm(e){return e.toString(16).padStart(7,`0`)}function mm(e){return e.toString(16).padStart(8,`0`)}function hm(e){return e.toString(8).padStart(7,`0`)}function gm(e,t,n){let r=[];for(let e=0;e<nm;e++)r.push(e<t.length?n.slice(e*2,e*2+2):` `);let i=r.slice(0,8).join(` `),a=r.slice(8).join(` `);return`${mm(e)} ${i} ${a} |${ym(t)}|`}function _m(e){let t=[];for(let n=0;n<e.length;n+=2)t.push(n+1<e.length?e[n]|e[n+1]<<8:e[n]);return t}function vm(e,t){let n=[];for(let r=0;r<e.length;r+=2)n.push(t.slice(r*2,r*2+4));return n}function ym(e){let t=``;for(let n of e)t+=n>=32&&n<=126?String.fromCodePoint(n):`.`;return t}function bm(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var xm=e=>e.toString(16).padStart(4,`0`),Sm=e=>e.toString(8).padStart(6,`0`),Cm=76;function wm(e,{encode:t,decode:n}){return(r,i,a)=>{let{flags:o,positional:s,order:c}=U(i,{short:[`d`,`i`],long:[`decode`,`ignore-garbage`],valueShort:[`w`],valueLong:[`wrap`]}),l=Cm;for(let{name:t,value:n}of c){if(t!==`w`&&t!==`wrap`)continue;if(!/^[ \t\n\r\f\v]*[+-]?\d+$/u.test(n)||BigInt(n)<0n)return x(`${e}: invalid wrap size: ${n}`);let r=BigInt(n);l=r>vn?0:Number(r)}if(s.length>1)return x(`${e}: extra operand: ${s[1]}`);let u=Vn(e,s,r,a,{read:`as-held`});if(u.failed)return x(u.stderr);let{content:d,bytes:f}=u.inputs[0];return o.has(`d`)||o.has(`decode`)?Em(e,n(d??Qe(f),o.has(`i`)||o.has(`ignore-garbage`))):Tm(t(f??E(d)),l)}}function Tm(e,t){if(!t||e===``)return b(e);let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return b(n.join(`
|
|
142
142
|
`)+`
|
|
143
143
|
`)}function Em(e,{bytes:t,valid:n}){let r=$e(t),i=n?``:`${e}: invalid input
|
|
144
|
-
`;if(r!==void 0&&n)return b(r);let a=r===void 0?{fd:1,bytes:t}:{fd:1,text:r};return{stdout:r??``,stderr:i,exitCode:+!n,events:[...t.length?[a]:[],...i?[{fd:2,text:i}]:[]]}}var Dm=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,Om=8,km=Object.freeze([2,4,5,7,8]),Am=wm(`base32`,{encode:e=>
|
|
144
|
+
`;if(r!==void 0&&n)return b(r);let a=r===void 0?{fd:1,bytes:t}:{fd:1,text:r};return{stdout:r??``,stderr:i,exitCode:+!n,events:[...t.length?[a]:[],...i?[{fd:2,text:i}]:[]]}}var Dm=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,Om=8,km=Object.freeze([2,4,5,7,8]),Am=wm(`base32`,{encode:e=>a(e,{padding:!0}),decode:Mm}),jm=/[a-z]/u;function Mm(e,t=!1){let n=e.replace(t?/[^A-Z2-7=]/gu:/\n/gu,``);try{let e=i(n,{padding:!0});if(!jm.test(n))return{bytes:e,valid:!0}}catch(e){if(!(e instanceof SyntaxError))throw e}return Nm(n)}function Nm(e){let t=new Uint8Array(Math.ceil(e.length/Om)*5),n=0,r=0,i=!0;for(;r<e.length;){if(e.length-r<Om){i=!1;break}let a=e.slice(r,r+Om),o=/^[A-Z2-7]*/u.exec(a)[0];if(n+=Pm(a,o,t.subarray(n)),!km.includes(o.length)||a.slice(o.length)!==`=`.repeat(Om-o.length)){i=!1;break}r+=Om}return{bytes:t.subarray(0,n),valid:i}}function Pm(e,t,n){let r=0,i=0,a=0;for(let e of t)i=i<<5|Dm.indexOf(e),r+=5,!(r<8)&&(r-=8,n[a++]=i>>r&255);return a}var Fm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Im=wm(`base64`,{encode:t,decode:Lm});function Lm(e,t=!1){let r=e.replace(t?/[^A-Za-z0-9+/=]/gu:/\n/gu,``);try{return{bytes:n(r,{padding:!0}),valid:!0}}catch(e){if(!(e instanceof SyntaxError))throw e;return Rm(r)}}function Rm(e){let t=new Uint8Array(Math.ceil(e.length/4)*3),r=/[A-Za-z0-9+/]*/uy,i=0,a=0,o=!0;for(;a<e.length;){r.lastIndex=a;let s=r.exec(e)[0].length,c=s-s%4;if(c){let r=n(e.slice(a,a+c));t.set(r,i),i+=r.length,a+=c}if(a===e.length)break;let l=s%4;if(l<2){o=!1;break}let u=Fm.indexOf(e[a]),d=Fm.indexOf(e[a+1]),f=l===3?Fm.indexOf(e[a+2]):0;t[i++]=u<<2|d>>4,l===3&&(t[i++]=d<<4|f>>2);let p=4-l;if(a+=l,e.slice(a,a+p)!==`=`.repeat(p)){o=!1;break}a+=p}return{bytes:t.subarray(0,i),valid:o}}var zm={short:[`n`,`N`,`i`,`s`,`w`,`F`,`v`,`l`,`c`,`q`,`u`,`a`,`H`,`I`],long:[`line-number`,`no-line-number`,`ignore-case`,`case-sensitive`,`word-regexp`,`fixed-strings`,`invert-match`,`files-with-matches`,`files-without-match`,`count`,`quiet`,`hidden`,`no-ignore`,`no-heading`,`with-filename`,`no-filename`,`text`,`unrestricted`],valueShort:[`A`,`B`,`C`],valueLong:[`after-context`,`before-context`,`context`],repeatable:[`e`,`regexp`]},Bm=new Map(Object.entries({"line-number":`n`,"no-line-number":`N`,"ignore-case":`i`,"case-sensitive":`s`,"word-regexp":`w`,"fixed-strings":`F`,"invert-match":`v`,"files-with-matches":`l`,"files-without-match":`L`,count:`c`,quiet:`q`,text:`a`,unrestricted:`u`,"with-filename":`H`,"no-filename":`I`,regexp:`e`,"after-context":`A`,"before-context":`B`,context:`C`})),Vm=new Set([`no-heading`,`no-ignore`]),Hm=(e,t)=>new T(`feature`,e,`rg: ${t}`);function Um(e){let t={patterns:[],context:[],mode:null,showName:null,ignoreCase:!1,lineNumbers:!1,word:!1,literal:!1,invert:!1,quiet:!1,text:!1,hidden:!1,unrestricted:0};for(let{name:n,value:r}of e.order)Vm.has(n)||Wm(t,Bm.get(n)??n,r,Km(n));let n=e=>t.context.findLast(([t])=>t===e)?.[1],r=e=>t.context.findLast(([t])=>t===e)?.[2]??`-`+e;if(t.after=Gm(n(`A`)??n(`C`),n(`A`)===void 0?r(`C`):r(`A`)),t.before=Gm(n(`B`)??n(`C`),n(`B`)===void 0?r(`C`):r(`B`)),t.unrestricted>=2&&(t.hidden=!0),t.unrestricted>=3)throw Hm(`-uuu`,`searching binary files is not supported`);return t}function Wm(e,t,n,r){switch(t){case`i`:e.ignoreCase=!0;return;case`s`:e.ignoreCase=!1;return;case`n`:e.lineNumbers=!0;return;case`N`:e.lineNumbers=!1;return;case`l`:case`L`:case`c`:e.mode=t;return;case`H`:e.showName=`H`;return;case`I`:e.showName=`h`;return;case`w`:e.word=!0;return;case`F`:e.literal=!0;return;case`v`:e.invert=!0;return;case`q`:e.quiet=!0;return;case`a`:e.text=!0;return;case`e`:e.patterns.push(n);return;case`hidden`:e.hidden=!0;return;case`u`:e.unrestricted++;return;case`A`:case`B`:case`C`:e.context.push([t,n,r]);return;default:throw Hm(Km(t),`${Km(t)} is not supported`)}}function Gm(e,t){if(e===void 0)return 0;if(!/^\d+$/u.test(e))throw Hm(`${t} value`,`error parsing flag ${t}: value is not a valid number`);return Number(e)}var Km=e=>(e.length===1?`-`:`--`)+e;function qm(e,t){return t?e.flatMap(e=>[`-e`,e]):[`-e`,e.length===1?e[0]:e.map(e=>`(?:${e})`).join(`|`)]}var Jm=[[/\\[1-9]/u,`backreference`],[/\(\?<?[=!]/u,`look-around`],[/\\[QE]/u,`\\Q…\\E literal span`]];function Ym(e){for(let t=0;t<e.length;t++){let n=e[t];if(n===`
|
|
145
145
|
`)return!0;if(n!==`\\`)continue;let r=e[t+1];if(r===`n`||r===`x`&&/^x\{?0*a\}?/iu.test(e.slice(t+1)))return!0;t++}return!1}function Xm(e,t){if(!t)for(let t of e){for(let[e,n]of Jm)if(e.test(t))throw Hm(n,`${n} is not supported; ripgrep's regex engine rejects it too`);if(Ym(t))throw Hm(`newline in a pattern`,`a newline in a pattern is not supported; ripgrep rejects one outside multiline mode`)}}var W=class extends Error{constructor(e,t=null,n=null,r=`syntax error`){super(e),this.line=t,this.gap=n,this.kind=r}},Zm=new Set([`BEGIN`,`END`,`BEGINFILE`,`ENDFILE`,`function`,`func`,`if`,`else`,`while`,`for`,`do`,`break`,`continue`,`next`,`nextfile`,`exit`,`return`,`delete`,`in`,`getline`,`print`,`printf`,`switch`,`case`,`default`]),Qm={__proto__:null,length:[0,1],substr:[2,3],index:[2,2],split:[2,3],sub:[2,3],gsub:[2,3],gensub:[3,4],match:[2,3],sprintf:[1,1/0],sin:[1,1],cos:[1,1],atan2:[2,2],exp:[1,1],log:[1,1],sqrt:[1,1],int:[1,1],rand:[0,0],srand:[0,1],tolower:[1,1],toupper:[1,1],close:[1,2],fflush:[0,1],systime:[0,0],strtonum:[1,1],and:[2,1/0],or:[2,1/0],xor:[2,1/0],lshift:[2,2],rshift:[2,2],compl:[1,1],typeof:[1,1],isarray:[1,1]},$m=new Map([[`system`,`system() is not supported: this terminal runs no processes`],[`strftime`,`strftime() is not supported (gawk extension)`],[`mktime`,`mktime() is not supported (gawk extension)`],[`asort`,`asort() is not supported (gawk extension)`],[`asorti`,`asorti() is not supported (gawk extension)`],[`patsplit`,`patsplit() is not supported (gawk extension)`]]),eh=new Set([...Object.keys(Qm),...$m.keys()]),th=5e6,nh=100,rh=1e6,ih=`this terminal runs no processes`;function ah(e,t,n){switch(e){case`+`:return t+n;case`-`:return t-n;case`*`:return t*n;case`/`:return t/n;case`%`:return t%n;default:return t**n}}var oh={__proto__:null,n:10,t:9,r:13,f:12,v:11,a:7,b:8},sh=`^$.[]|()*+?{}\\/"`,ch=1e3,lh=e=>e!==void 0&&/[0-9a-fA-F]/u.test(e),uh=e=>e!==void 0&&e>=`0`&&e<=`7`,dh=class{constructor(e,t,n,r){this.src=e,this.i=0,this.warn=t,this.tables=n,this.ignoreCase=r,this.groups=0}fail(e){throw new W(`invalid regex /${this.src}/: ${e}`)}peek(){return this.src[this.i]}literal(){let e=this.src.codePointAt(this.i);return this.i+=Lr(e),this.charNode(e)}charNode(e){let t=this.ignoreCase?this.tables.fold(e):[e];return t.length===1?{type:`char`,code:e}:{type:`set`,negate:!1,items:t.map(e=>[e,e])}}parse(){return this.alternation(0)}alternation(e){let t=[this.concatenation(e)];for(;this.peek()===`|`;)this.i++,t.push(this.concatenation(e));return t.length===1?t[0]:{type:`alt`,nodes:t}}concatenation(e){let t=[];for(;!this.endsConcatenation(e);)t.push(this.quantified(this.atom(t.length===0,e)));return t.length===1?t[0]:{type:`cat`,nodes:t}}endsConcatenation(e){let t=this.peek();return t===void 0||t===`|`||t===`)`&&e>0}quantified(e){let t=e;for(;;){let e=this.peek();if(e===`*`){this.i++,t={type:`rep`,node:t,min:0,max:null};continue}if(e===`+`){this.i++,t={type:`rep`,node:t,min:1,max:null};continue}if(e===`?`){this.i++,t={type:`rep`,node:t,min:0,max:1};continue}if(e===`{`){let e=/^\{(\d*)(?:(,)(\d*))?\}/u.exec(this.src.slice(this.i));if(!e&&/^\{[\d,]*\}/u.test(this.src.slice(this.i))&&this.fail(`invalid content of {}`),!e||e[1]===``&&e[2]===void 0)return t;let n=e[1]===``?0:Number(e[1]),r=e[2]===void 0?n:e[3]===``?null:Number(e[3]);if(r!==null&&r<n&&this.fail(`invalid interval {${n},${r}}`),n>ch||r!==null&&r>ch)throw new W(`interval count above ${ch} is not supported`,null,`regex interval limit`);this.i+=e[0].length,t={type:`rep`,node:t,min:n,max:r};continue}return t}}atom(e,t){let n=this.peek();if(n===`(`){this.i++;let e=++this.groups,n=this.alternation(t+1);return this.peek()!==`)`&&this.fail("missing `)`"),this.i++,{type:`group`,index:e,node:n}}return n===`[`?this.bracket():n===`\\`?this.escape():(this.i++,n===`.`?{type:`any`}:n===`^`||n===`$`?{type:`assert`,kind:n}:((n===`*`||n===`+`||n===`?`)&&!e&&this.fail(`unexpected \`${n}\``),this.i--,this.literal()))}escape(){this.i++;let e=this.peek();return e===void 0&&this.fail(`trailing backslash`),this.i++,e===`y`?{type:`assert`,kind:`y`}:e===`<`||e===`>`||e===`B`?{type:`assert`,kind:e}:e==="`"?{type:`assert`,kind:`^`}:e===`'`?{type:`assert`,kind:`$`}:e===`s`||e===`S`?{type:`set`,negate:e===`S`,items:this.tables.ranges(`space`)}:e===`w`||e===`W`?{type:`set`,negate:e===`W`,items:this.tables.ranges(`word`)}:(e===`b`&&this.warn?.("regexp escape sequence `\\b' is a backspace here, as in gawk; `\\y' is the word boundary"),this.charNode(this.escapedCode(e,!0)))}escapedCode(e,t){if(e in oh)return oh[e];if(uh(e)){let t=e;for(;t.length<3&&uh(this.peek());)t+=this.src[this.i++];return ph(t,8)}if(e===`x`&&lh(this.peek())){let e=``;for(;e.length<2&&lh(this.peek());)e+=this.src[this.i++];return ph(e,16)}let n=this.src.codePointAt(this.i-1);return!sh.includes(e)&&t&&this.warn?.(`regexp escape sequence \`\\${String.fromCodePoint(n)}' is not a known regexp operator`),this.i+=Lr(n)-1,n}bracket(){this.i++;let e=!1;this.peek()===`^`&&(e=!0,this.i++);let t=[],n=!0;for(;;){this.i>=this.src.length&&this.fail(`unterminated bracket expression`);let e=this.peek();if(e===`]`&&!n){this.i++;break}if(n=!1,e===`[`&&this.src[this.i+1]===`:`){let e=this.src.indexOf(`:]`,this.i+2);if(e!==-1){let n=this.src.slice(this.i+2,e),r=this.tables.ranges(this.ignoreCase?on(n):n);r===void 0&&this.fail(`invalid character class \`[:${n}:]\``),t.push(...r),this.i=e+2;continue}}let r=this.bracketChar();if(this.peek()===`-`&&this.src[this.i+1]!==`]`&&this.src[this.i+1]!==void 0){this.i++;let e=this.bracketChar(),n=this.ignoreCase?this.tables.foldRange(r,e):e<r?null:[[r,e]];n===null&&this.fail(`invalid range end`),t.push(...n)}else this.ignoreCase?t.push(...this.tables.fold(r).map(e=>[e,e])):t.push([r,r])}return{type:`set`,negate:e,items:t}}bracketChar(){let e=this.peek();if(e===`[`&&(this.src[this.i+1]===`.`||this.src[this.i+1]===`=`)){let e=this.src.indexOf(this.src[this.i+1]+`]`,this.i+2);if(e!==-1&&e>this.i+2){Array.from(this.src.slice(this.i+2,e)).length!==1&&this.fail(`invalid collation character`);let t=this.src.codePointAt(this.i+2);return this.i=e+2,t}}if(e===`\\`){this.i++,this.peek()===void 0&&this.fail(`trailing backslash`);let e=this.src[this.i++];return this.escapedCode(e,!1)}let t=this.src.codePointAt(this.i);return this.i+=Lr(t),t}};function fh(e,t=null,n=_n(N),r=!1){let i=new dh(e,t,n,r);return{ast:i.parse(),groups:i.groups}}function ph(e,t){let n=Number.parseInt(e,t);if(n>=128)throw new W(`non-ASCII regex byte escapes are not supported`,null,`regex byte escapes`);return n}var mh=e=>`\\u{${e.toString(16)}}`,hh=e=>e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?String.fromCodePoint(e):mh(e);function gh(e,t){if(e===`^`||e===`$`)return e;let n=t.assertions();return e===`y`?n.boundary:e===`B`?n.inside:n[e]}function _h(e,t=_n(N)){let n=e=>_h(e,t);switch(e.type){case`char`:return hh(e.code);case`any`:return`.`;case`set`:return`[${e.negate?`^`:``}${e.items.map(([e,t])=>e===t?hh(e):`${hh(e)}-${hh(t)}`).join(``)}]`;case`assert`:return gh(e.kind,t);case`group`:return`(${n(e.node)})`;case`cat`:return e.nodes.map(n).join(``);case`alt`:return`(?:${e.nodes.map(n).join(`|`)})`;case`rep`:{let t=`(?:${n(e.node)})`;return e.max===null?e.min===0?`${t}*`:e.min===1?`${t}+`:`${t}{${e.min},}`:e.min===0&&e.max===1?`${t}?`:`${t}{${e.min},${e.max}}`}default:throw new W(`internal: unknown regex node ${e.type}`)}}var vh=5e4;function yh(e,t){let n=t=>{for(let n=0;n<e.length;n++)if(t>=e[n][0]&&t<=e[n][1])return!0;return!1};return t?e=>!n(e):n}function bh(e,t=_n(N)){let n=[],r=e=>{if(n.length>=vh)throw new W(`regex too large`,null,`regex state limit`);return n.push(e),n.length-1};function i(e,t){switch(e.type){case`char`:return r({op:`char`,codes:[e.code],next:t});case`any`:return r({op:`any`,next:t});case`set`:return r({op:`set`,test:yh(e.items,e.negate),next:t});case`assert`:return r({op:`assert`,kind:e.kind,next:t});case`group`:return i(e.node,t);case`cat`:{let n=t;for(let t=e.nodes.length-1;t>=0;t--)n=i(e.nodes[t],n);return n}case`alt`:{let n=e.nodes.map(e=>i(e,t)),a=n.at(-1);for(let e=n.length-2;e>=0;e--)a=r({op:`split`,x:n[e],y:a});return a}case`rep`:return a(e,t);default:throw new W(`internal: unknown regex node ${e.type}`)}}function a(e,t){let a=t;if(e.max===null){let o=r({op:`split`,x:-1,y:t});n[o].x=i(e.node,o),a=o}else for(let n=e.max-e.min;n>0;n--)a=r({op:`split`,x:i(e.node,a),y:t});for(let t=0;t<e.min;t++)a=i(e.node,a);return a}let o=i(e,r({op:`match`})),s=``,c=o;for(;n[c].op===`char`&&n[c].codes.length===1&&n[c].codes[0]<128;)s+=String.fromCodePoint(n[c].codes[0]),c=n[c].next;return(n[c].op!==`match`||s===``)&&(s=null),{states:n,start:o,literal:s,isWord:e=>t.has(`word`,e),gen:new Int32Array(n.length).fill(-1),stamp:0}}function xh(e,t){if(t<=0)return-1;let n=e.codePointAt(t-1);if(n<56320||n>57343||t<2)return n;let r=e.codePointAt(t-2);return r>65535?r:n}function Sh(e,t,n,r){if(e===`^`)return n===0;if(e===`$`)return n===t.length;let i=r(xh(t,n)),a=n<t.length&&r(t.codePointAt(n));return e===`y`?i!==a:e===`B`?i===a:e===`<`?!i&&a:i&&!a}function Ch(e,t){return e.op===`char`?e.codes.includes(t):e.op===`any`||e.test(t)}function wh(e,t,n){if(e.literal!==null&&Number.isInteger(n)&&n>=0&&n<=t.length&&!Object.is(n,-0)){let r=t.indexOf(e.literal,n);return r<0?null:{start:r,end:r+e.literal.length}}let{states:r,gen:i}=e,a=t.length,o=[],s=(n,a,s,c,l)=>{for(o.push(a);o.length>0;){let a=o.pop();if(i[a]===l)continue;i[a]=l;let u=r[a];u.op===`split`?o.push(u.y,u.x):u.op===`assert`?Sh(u.kind,t,c,e.isWord)&&o.push(u.next):n.push(a,s)}},c=[],l=[],u=null,d=n,f=++e.stamp;for(;;){u===null&&s(c,e.start,d,d,f);let n=d<a?t.codePointAt(d):-1,i=Lr(n);if(c.length===0){if(u!==null||d>=a)break;d+=i,f=++e.stamp;continue}let o=++e.stamp;for(let e=0;e<c.length;e+=2){let t=c[e],a=c[e+1];if(u!==null&&a>u.start)continue;let f=r[t];if(f.op===`match`){(u===null||a<u.start||a===u.start&&d>u.end)&&(u={start:a,end:d});continue}n!==-1&&Ch(f,n)&&s(l,f.next,a,d+i,o)}if(c.length=0,[c,l]=[l,c],f=o,d>=a)break;d+=i}return u}var Th=new Map,Eh=class{constructor(e,t,n,r=_n(N)){let{ast:i,groups:a}=fh(e,n,r,t);this.src=e,this.ignoreCase=t,this.tables=r,this.groupCount=a,this.source=_h(i,r),this.flags=`su`;try{this.js=new RegExp(zr(this.source),this.flags)}catch(t){throw new W(`cannot compile regex /${e}/: ${t.message}`,null,`regex engine limit`)}this.ast=i,this.nfa=null,this.capture=null,this.captureShape=Dh(i)}test(e){return this.checkCase(e),this.js.test(e)}checkCase(e){if(this.ignoreCase&&cn.test(e+this.src))throw new W(`case-insensitive matching over Cyrillic Extended-C letters is not supported`,null,`locale-sensitive regex`)}search(e,t=0){return this.checkCase(e),this.nfa===null&&(this.nfa=bh(this.ast,this.tables)),wh(this.nfa,e,t)}groups(e,t,n){if(this.captureShape.unsafe)throw new W(`capture extraction across repeated or alternative groups is not supported`,null,`regex capture semantics`);let r=this.capture??=new RegExp(this.source,this.flags+`dy`);r.lastIndex=t;let i=r.exec(e);if(!i||i.index!==t||t+i[0].length!==n){let r=Array.from(e.slice(n)).length,a=RegExp(`(?:${this.source})(?=.{${r}}(?![^]))`,this.flags+`dy`);a.lastIndex=t,i=a.exec(e)}if(!i)throw new W(`capture extraction for this match is not supported`,null,`regex capture semantics`);return i.indices.map((e,t)=>e===void 0?void 0:{text:i[t],start:e[0],end:e[1]})}};function Dh(e){let t=(e.nodes??(e.node?[e.node]:[])).map(Dh),n=t.reduce((e,t)=>e+t.groups,+(e.type===`group`));return{groups:n,nullable:e.type===`assert`||(e.type===`group`||e.type===`cat`)&&t.every(e=>e.nullable)||e.type===`alt`&&t.some(e=>e.nullable)||e.type===`rep`&&(e.min===0||t[0].nullable),unsafe:e.type===`rep`&&(e.max===null||e.max>1)&&(n>1||n>0&&t[0].nullable)||e.type===`alt`&&n>0||t.some(e=>e.unsafe)}}function Oh(e,t=!1,n=null,r=_n(N)){let i=(t?`i`:`c`)+r.name+`\0`+e,a=Th.get(i);if(a)return a;Th.size>=500&&Th.clear();let o=new Eh(e,t,n,r);return Th.set(i,o),o}function kh(e,t,n){for(;;){let r=t.search(e,n);if(!r||r.start!==r.end)return r;if(r.end>=e.length)return null;n=r.end+Rr(e,r.end)}}function Ah(e,t){let n=[],r=0;for(;;){let i=kh(e,t,r);if(!i)break;n.push(e.slice(r,i.start)),r=i.end}return n.push(e.slice(r)),n}function jh(e,t,n,r){let i=r!==`first`,a=e.length,o=``,s=0,c=-1,l=0;for(;s<=a;){let u=t.search(e,s);if(!u)break;let d=u.start===u.end;if(d&&u.start===c&&r!==`nth`){if(u.start>=a)break;let t=Rr(e,u.start);o+=e.slice(s,u.start+t),s=u.start+t;continue}l++;let f=n(u.start,u.end,l);if(o+=e.slice(s,u.start)+(f===null?e.slice(u.start,u.end):f),c=u.end,d){if(u.end>=a){s=a;break}let t=Rr(e,u.end);o+=e.slice(u.end,u.end+t),s=u.end+t}else s=u.end;if(!i)break}return{out:o+e.slice(s),count:l}}function Mh(e,t){let n=`(){}+?|`,r=!1,i=0,a=!1,o=``;for(let s=0;s<e.length;s++){let c=e[s];if(a){if(c===`[`&&(e[s+1]===`.`||e[s+1]===`=`))throw new T(`feature`,`regex collating or equivalence class`,`grep: collating and equivalence classes are not supported`);if(c===`[`){let n=Ut(e,s,{classes:t});if(n){o+=n.body,s=n.end-1;continue}}o+=c,c===`]`&&(a=!1,r=!0);continue}if(c===`[`){o+=c,a=!0,e[s+1]===`^`&&(o+=`^`,s++),e[s+1]===`]`&&(o+=`\\]`,s++);continue}if(c===`\\`){let t=e[++s];if(t===void 0)return{error:`trailing backslash (\\)`};if(n.includes(t)){if((t===`+`||t===`?`)&&!r){o+=`\\`+t,r=!0;continue}if(t===`(`&&i++,t===`)`&&i--===0)return{error:`Unmatched ) or \\)`};(t===`(`||t===`|`)&&(r=!1),(t===`)`||t===`}`)&&(r=!0),o+=t}else o+="^$\\.*[]/bBsSwW<>`'123456789".includes(t)?`\\`+t:t,r=!"bB<>`'".includes(t);continue}if(c===`*`){o+=r?`*`:`\\*`,r=!0;continue}if(c===`^`){r=!Nh(e,s),o+=r?`\\^`:`^`;continue}if(c===`$`){r=s!==e.length-1&&(e[s+1]!==`\\`||e[s+2]!==`)`&&e[s+2]!==`|`),o+=r?`\\$`:`$`;continue}o+=n.includes(c)?`\\`+c:c,r=!0}return i>0?{error:`Unmatched ( or \\(`}:{source:o}}function Nh(e,t){if(t===0)return!0;if(t<2||e[t-2]!==`\\`||e[t-1]!==`(`&&e[t-1]!==`|`)return!1;let n=0;for(let r=t-3;r>=0&&e[r]===`\\`;r--)n++;return n%2==0}function Ph(e){if(!/\\[1-9]/u.test(e))return!1;let t=new Set,n=[],r=new Set,i=!1,a=0,o=!1,s=[],c=new Set,l=!1;for(let u=0;u<e.length;u++){let d=e[u];if(d===`\\`){let n=e[++u];if(!i&&/[1-9]/u.test(n??``)){let e=Number(n);if(!t.has(e))throw Error(`Invalid back reference`);(!c.has(e)||r.has(e))&&(o=!0)}s=[];continue}if(i){d===`]`&&(i=!1);continue}if(d===`[`){i=!0,s=[];continue}if(d===`(`)n.push({id:++a,entry:new Set(c),branches:[],start:u}),s=[];else if(d===`|`){let e=n.at(-1);e&&e.branches.push(c),c=new Set(e?.entry),s=[]}else if(d===`)`){let r=n.pop();if(!r)continue;c=r.branches.reduce((e,t)=>e.intersection(t),c),c.add(r.id),t.add(r.id),s=[...c.difference(r.entry)],l=Fh(e.slice(r.start,u+1))}else if(d===`*`||d===`?`||d===`+`){if(d!==`?`&&l)for(let e of s)r.add(e);if(d!==`+`)for(let e of s)c.delete(e)}else if(d===`{`){let t=/^\{(\d*)(?:,(\d*))?\}/u.exec(e.slice(u));if(t){Number(t[1])===0&&(c=c.difference(new Set(s)));let e=t[2]===void 0?Number(t[1]):t[2]===``?1/0:Number(t[2]);l&&e>1&&s.forEach(e=>r.add(e)),u+=t[0].length-1}else s=[]}else s=[]}return o}function Fh(e){try{return RegExp(`^(?:${e})$`,`su`).test(``)}catch{return!0}}var Ih=`bBsSwW`;function Lh(e,t){let n=``;for(let r=0;r<e.length;){let i=e[r];if(i===`[`){let i=zh(e,r,t);n+=i.text,r=i.end;continue}let a=i===`\\`,o=e.codePointAt(r+ +!!a),s=+!!a+Lr(o),c=a&&Ih.includes(e[r+1])?null:t.fold(o);n+=c===null||c.length===1?e.slice(r,r+s):`[${String.fromCodePoint(...c)}]`,r+=s}return n}function Rh(e,t){let n=``;for(let r of e){let e=t.fold(r.codePointAt(0));n+=e.length===1?RegExp.escape(r):`[${String.fromCodePoint(...e)}]`}return n}function zh(e,t,n){let r=t+1,i=`[`;e[r]===`^`&&(i+=`^`,r++);let a=!0;for(;;){let t=e[r];if(t===`]`&&!a)return{text:i+`]`,end:r+1};if(a=!1,t===`[`&&`:.=`.includes(e[r+1])){let t=e[r+1],n=e.indexOf(t+`]`,r+2);i+=t===`:`?`[:${on(e.slice(r+2,n))}:]`:e.slice(r,n+2),r=n+2;continue}let o=e.codePointAt(r),s=r+Lr(o);if(e[s]===`-`&&e[s+1]!==void 0&&e[s+1]!==`]`){let t=e.codePointAt(s+1),a=s+1+Lr(t);i+=Bh(o,t,e.slice(r,a),n),r=a;continue}i+=String.fromCodePoint(...n.fold(o)),r=s}}function Bh(e,t,n,r){let i=r.foldRange(e,t);if(i===null)throw Error(`Invalid range end`);return i.length===1&&i[0][0]===e&&i[0][1]===t?n:i.map(([e,t])=>e===t?String.fromCodePoint(e):`${String.fromCodePoint(e)}-${String.fromCodePoint(t)}`).join(``)}function Vh({pattern:e,tables:t},n){return[...e].map(e=>(n?t.fold(e.codePointAt(0)):[e.codePointAt(0)]).map(e=>E(String.fromCodePoint(e))))}function Hh(e,t){return t.every(t=>t.literal?(t.literalMask??=Vh(t.literal,t.folded),!Wh(e,t.literalMask)):!1)}function Uh(e,t,n,r=N){let i=_n(r);return t.every(t=>(n||!Kh.test(t))&&t.isWellFormed()&&!Wh(e,Vh({pattern:t,tables:i},!1)))}function Wh(e,t){if(t.length===0)return!0;for(let n of new Set(t[0].map(e=>e[0])))for(let r=e.indexOf(n);r>=0&&r+t.length<=e.length;r=e.indexOf(n,r+1))if(Gh(e,r,t,0))return!0;return!1}function Gh(e,t,n,r){return r===n.length||n[r].some(i=>i.every((n,r)=>e[t+r]===n)&&Gh(e,t+i.length,n,r+1))}var Kh=/[\\.^$*+?()[\]{}|]/u,qh=new Set(`\\.[*^$`),Jh=new Set(`\\.[*^$+?(){}|`);function Yh(e,t){if(t.has(`F`))return e;if(t.has(`P`))return Kh.test(e)?null:e;let n=t.has(`E`)?Jh:qh,r=``;for(let t=0;t<e.length;t++){let i=e[t]===`\\`,a=i?e[++t]:e[t];if(n.has(a)!==i)return null;r+=a}return r}var Xh=new Map;function Zh(e){if(Xh.has(e))return Xh.get(e);let t=e.assertions(),n=``;for(let t=128;t<=255;t++)e.has(`word`,t)&&(n+=`\\u${(56320+t).toString(16)}`);let r=pn(e.body(`word`)+n),i={"<":r[`<`],">":r[`>`],b:r.boundary,B:r.inside,W:Qh(t.nonWord),S:Qh(t.nonSpace)};return Xh.set(e,i),i}var Qh=e=>`(?:(?![${rt}])${e})`;function $h(e){let t=bh(e.ast,e.tables),n=t.states.map(e=>e.op===`any`?{op:`set`,test:e=>!at(e),next:e.next}:e.op===`set`?{...e,test:t=>!at(t)&&e.test(t)}:e),r={...t,states:n,isWord:t=>e.tables.has(`word`,at(t)?t-56320:t)};return{search:(e,t)=>wh(r,e,t)}}var eg=[0,0,0,0,1114112,2097152,67108864],tg=(e,t)=>at(e.codePointAt(t))?e.codePointAt(t)-56320:-1;function ng(e,t){let n=tg(e,t),r=n===237?3:n>=240&&n<=247?4:n>=248&&n<=251?5:n===252||n===253?6:0,i=n&127>>r;for(let n=1;n<r;n++){let r=tg(e,t+n);if(r<128||r>191)return 0;i=i<<6|r&63}return r===3?i>=55296&&i<=57343?3:0:r&&i>=eg[r]?r:0}function rg(e){for(let t=0;t<e.length;t++){let n=e.codePointAt(t);if(n>65535&&t++,!at(n))continue;let r=ng(e,t);if(r===0||r===3)return!0;t+=r-1}return!1}var ig=/[\uDCED\uDCF0-\uDCFD][\uDC80-\uDCBF]{2,5}/gu;function ag(e){let t={long:!1,surrogate:!1};for(let[n]of e.matchAll(ig)){let e=ng(n,0);if(e===3?t.surrogate=!0:e&&(t.long=!0),t.long&&t.surrogate)break}return t}function og(e,t){let n={negated:!1,dot:!1,regex:t,wordEdge:!1};for(let t=0;t<e.length;t++){let r=e[t];if(r===`\\`){let r=e[++t]??``;`<>bB`.includes(r)&&(n.wordEdge=!0),`<>bBwsWS`.includes(r)&&(n.regex=!0),`WS`.includes(r)&&(n.negated=!0)}else if(r===`.`)n.dot=!0;else if(r===`[`){let r=Ht(e,t),i=e.slice(t+1,r);i.startsWith(`^`)&&(n.negated=!0),/\[:|.-./u.test(i.replace(/^\^?\]?/u,``))&&(n.regex=!0),t=r}}return n}function sg(e,t,n){return t.long||t.surrogate?e.wordEdge||(e.dot||e.negated)&&(e.regex||n)?!0:t.long&&e.negated:!1}var cg=new Map;function lg(e){return cg.has(e)||cg.set(e,RegExp(`[^\\x00-\\x7f${rt}${e.body(`word`)}]`,`u`)),cg.get(e)}function ug(e){throw new T(`feature`,`PCRE `+e,`PCRE ${e} is not supported`)}function dg(e){let t={captures:0,closed:new Set,names:new Map,stack:[],behind:0,references:!1,risky:!1},n=``;for(let r=0;r<e.length;){let i=e[r];if(i===`\\`){let i=hg(e,r,t,!1);n+=i.source,r=i.end;continue}if(i===`[`){let i=mg(e,r,t);n+=i.source,r=i.end;continue}if(i===`(`){let i=fg(e,r,t);n+=i.source,r=i.end;continue}if(i===`)`){let e=t.stack.pop();e?.capture&&t.closed.add(e.capture),e?.behind&&t.behind--}if(`*+?`.includes(i)&&(t.behind&&ug(`variable-length lookbehind`),e[r+1]===`+`&&ug(`possessive repetition`),i!==`+`&&(t.risky=!0)),i===`|`&&(t.risky=!0),i===`{`){let i=pg(e,r,t);n+=i.source,r=i.end;continue}n+=i===`]`||i===`}`?`\\`+i:i,r++}return t.references&&t.risky&&ug(`conditional backreference`),n}function fg(e,t,n){let r=!1,i=null,a=`(`;if(e[t+1]===`*`&&ug(`control verb`),e[t+1]===`?`){let o=/^\(\?(?:[:=!]|<[=!]|<([A-Za-z_]\w*)>)/u.exec(e.slice(t));if(o||ug(`group`),a=o[0],r=a===`(?<=`||a===`(?<!`,!o[1]&&a!==`(?:`&&(n.risky=!0),o[1]){if(i=++n.captures,n.names.has(o[1]))throw Error(`duplicate PCRE capture name`);n.names.set(o[1],i)}}else i=++n.captures;return r&&n.behind++,n.stack.push({capture:i,behind:r}),{source:a,end:t+a.length}}function pg(e,t,n){let r=/^\{(\d+)(?:,(\d*))?\}/u.exec(e.slice(t));if(!r)return/^\{[\d, \t]*\}/u.test(e.slice(t))&&ug(`repetition`),{source:`\\{`,end:t+1};if(n.behind&&r[2]!==void 0&&r[1]!==r[2]&&ug(`variable-length lookbehind`),Number(r[1])>65535||Number(r[2])>65535)throw Error(`PCRE repetition count exceeds 65535`);return Number(r[1])===0&&(n.risky=!0),e[t+r[0].length]===`+`&&ug(`possessive repetition`),{source:r[0],end:t+r[0].length}}function mg(e,t,n){let r=t+1,i=`[`;for(e[r]===`^`&&(i+=`^`,r++),e[r]===`]`&&(i+=`\\]`,r++);r<e.length&&e[r]!==`]`;)if(e[r]===`[`&&`:.=`.includes(e[r+1]??``)&&ug(`character class`),e[r]===`\\`){let t=hg(e,r,n,!0);i+=t.source,r=t.end}else i+=e[r]===`[`?`\\[`:e[r],r++;return{source:i+(e[r]===`]`?`]`:``),end:r+1}}function hg(e,t,n,r){let i=e[t+1];if(i===void 0)throw Error(`trailing backslash`);if(i===`Q`){let n=e.indexOf(`\\E`,t+2);return{source:RegExp.escape(e.slice(t+2,n<0?void 0:n)),end:n<0?e.length:n+2}}if(i===`E`)return{source:``,end:t+2};if(i===`x`||i===`0`||r&&/[1-7]/u.test(i))return gg(e,t);if(i===`a`||i===`e`)return{source:i===`a`?`\\u0007`:`\\u001B`,end:t+2};if(`AzZ`.includes(i)&&!r)return{source:i===`A`?`^`:`$`,end:t+2};if(/[1-9]/u.test(i)&&!r)return(/\d/u.test(e[t+2]??``)||!n.closed.has(Number(i)))&&ug(`forward or ambiguous backreference`),n.references=!0,{source:`\\`+i,end:t+2};if(i===`k`&&!r){let r=/^\\k<([A-Za-z_]\w*)>/u.exec(e.slice(t));return(!r||!n.closed.has(n.names.get(r[1])))&&ug(`named backreference`),n.references=!0,{source:r[0],end:t+r[0].length}}if(`dDsSwWfnrtbB`.includes(i))return{source:`\\`+i,end:t+2};/[A-Za-z0-9]/u.test(i)&&ug(`escape \\`+i);let a=String.fromCodePoint(e.codePointAt(t+1));return{source:RegExp.escape(a),end:t+1+a.length}}function gg(e,t){let n=e[t+1]===`x`,r=(n?/^\\x(?:\{([\da-fA-F]+)\}|([\da-fA-F]{1,2}))/u:/^\\([0-7]{1,3})/u).exec(e.slice(t));if(!r)throw Error(`invalid PCRE character escape`);let i=n?16:8,a=parseInt(r[1]??r[2],i);return Ir(a)||ug(`character escape`),{source:`\\u{${a.toString(16)}}`,end:t+r[0].length}}function _g(e,t){let n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a===`\\`){let t=e[++i]??``;n+=r?a+t:vg(t);continue}if(r&&a===`[`){if(e[i+1]===`.`||e[i+1]===`=`)throw new T(`feature`,`regex collating or equivalence class`,`grep: collating and equivalence classes are not supported`);let r=Ut(e,i,{classes:t});if(r){n+=r.body,i=r.end-1;continue}}if(a===`[`&&!r){n+=`[`,r=!0,e[i+1]===`^`&&(n+=`^`,i++),e[i+1]===`]`&&(n+=`\\]`,i++);continue}a===`]`&&(r=!1),n+=a}return n}function vg(e){return"^$\\.*+?()[]{}|/bBsSwW<>`'123456789".includes(e)?`\\`+e:RegExp.escape(e)}function yg(e){for(let t=0;t<e.length;t++)if(e[t]===`\\`){if(`bBsSwW<>`.includes(e[++t]??``))return!0}else if(`.[*+?{`.includes(e[t]))return!0;return!1}function bg(e,t=`js`,n=_n(N)){let r=t===`extent`,i=t===`marked`,a=r?{b:`\\y`}:i?{...xg(n),...Zh(n)}:xg(n),o=``,s=!1;for(let t=0;t<e.length;t++){let n=e[t];if(n===`\\`){let i=e[++t];o+=!s&&Object.hasOwn(a,i)?a[i]:n+i,!r&&!s&&/[1-9]/u.test(i)&&/\d/u.test(e[t+1]??``)&&(o+=`(?:)`)}else if(i&&n===`[`){let n=Pg(e,t);o+=Qh(e.slice(t,n+1)),t=n}else i&&n===`.`?o+=`[^${rt}]`:(n===`[`&&(s=!0),n===`]`&&(s=!1),o+=n)}return o}function xg(e){let t=e.assertions();return{"<":t[`<`],">":t[`>`],b:t.boundary,B:t.inside,w:t.word,W:t.nonWord,s:t.space,S:t.nonSpace,"`":`^`,"'":`$`}}var Sg=e=>e.plain??=new RegExp(e.source,e.flags);function Cg(e){return e.markedSource===void 0?Sg(e):(e.marked??=new RegExp(zr(bg(e.markedSource,`marked`,e.tables)),e.flags),e.marked)}var wg=/^\{(?=\d|,)(\d*)(?:,(\d*))?\}/u,Tg=/^\\\{(?=\d|,)(\d*)(?:,(\d*))?\\\}/u;function Eg(e,t,n){let r=(n?wg:Tg).exec(e.slice(t));if(!r&&!n)throw Error(`invalid repetition count`);r&&Vt(Number(r[1]),r[2]===void 0||r[2]===``?void 0:Number(r[2]))}var Dg={__proto__:null,"*":{min:0,max:1/0},"+":{min:1,max:1/0},"?":{min:0,max:1}};function Og(e){if(Dg[e])return Dg[e];let t=wg.exec(e),n=Number(t[1]);return{min:n,max:t[2]===void 0?n:t[2]===``?1/0:Number(t[2])}}var kg=(e,t)=>e===0||t===0?0:e===1/0||t===1/0?1/0:e*t;function Ag(e,t){let n=Math.max(t.min,1);if(n>t.max)return{min:0,max:0};if(e.min>0&&(t.min===0&&e.min>1||e.max!==1/0&&t.max>n&&(n+1)*e.min>n*e.max+1))return null;let r=kg(t.max,e.max);return r!==1/0&&r>Bt?null:{min:kg(t.min,e.min),max:r}}function jg(e){return e.max===1/0?e.min===0?`*`:e.min===1?`+`:`{${e.min},}`:e.min===0&&e.max===1?`?`:e.min===e.max?`{${e.min}}`:`{${e.min},${e.max}}`}var Mg=e=>!e.startsWith(`(`)&&!/^\\[1-9]/u.test(e);function Ng(e,t){if(t.length===1)return e+jg(t[0].bounds);let n=t[0].bounds,r=null;for(let i=1;i<t.length;i++){let{bounds:a,text:o}=t[i],s=r===null?Ag(n,a):null;if(s){n=s;continue}if(!(r===null&&n.min===n.max&&Mg(e))&&a.max>1)throw Error(`stacked quantifier needs ambiguous nesting`);r=`(?:${r??e+jg(n)})${o}`}return r??e+jg(n)}function Pg(e,t){let n=t+1;for(e[n]===`^`&&n++;n<e.length;n++){if(e[n]===`\\`){n++;continue}if(e[n]===`]`)return n}return e.length-1}function Fg(e){let t=``,n=-1,r=-1,i=[],a=()=>{i.length>0&&(t=t.slice(0,n)+Ng(t.slice(n,r),i)),i=[]},o=e=>{a(),n=t.length,r=-1,t+=e},s=[];for(let c=0;c<e.length;c++){let l=e[c];if(l===`\\`){o(l+(e[++c]??``));continue}if(l===`[`){let t=Pg(e,c);o(e.slice(c,t+1)),c=t;continue}if(l===`(`){a(),s.push(t.length),n=-1,t+=l;continue}if(l===`)`){a(),t+=l,n=s.pop()??-1,r=-1;continue}if(l===`|`||l===`^`||l===`$`){a(),t+=l,n=-1;continue}let u=l===`{`?wg.exec(e.slice(c)):null;if(l===`*`||l===`+`||l===`?`||u){let e=u?u[0]:l;if(c+=e.length-1,n<0){t+=e;continue}i.length===0&&(r=t.length),i.push({bounds:Og(e),text:e});continue}o(l)}return a(),t}function Ig(e,t,n=!1){let r=-1;for(let i=0;i<e.length;i++){let a=i<=r,o=e[i];if(o===`\\`){let n=e[++i];if(n===void 0)throw Error(`trailing backslash`);if(a||n&&`dDxXuUpPkKcC`.includes(n))throw new T(`feature`,`regex escape`,`grep: this regex escape is not supported with GNU semantics`);!t&&n===`{`&&Eg(e,i-1,!1)}else if(o===`[`&&!a)r=Ht(e,i,n);else{if(a)continue;if(t&&o===`{`)Eg(e,i,!0);else if(t&&o===`(`&&e[i+1]===`?`)throw new T(`feature`,`regex extension`,`grep: ECMAScript group extensions are not supported in ERE`)}}}function Lg(e){for(let t=0;t<e.length;t++)if(e[t]===`\\`&&/[1-9]/u.test(e[++t]??``))return!0;return!1}function Rg(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];if(r===`\\`){n++;continue}if(t){r===`]`&&(t=!1);continue}if(r===`.`||r===`[`&&(t=!0,e[n+1]===`^`))return!0}return!1}function zg(e,t,n=N){let r=_n(n),i=[],a=t.has(`x`),o=t.has(`w`)&&!a;if(t.has(`P`)&&new Set(e).size>1)return{error:x(`grep: -P only supports a single pattern`,2)};for(let n of e){let e=!t.has(`F`)&&!t.has(`P`);e&&Ig(n,t.has(`E`),r.multibyte);let s=e&&Lg(n),c=t.has(`i`)&&!t.has(`P`)&&!s,l=t.has(`i`)&&!c?`isu`:`su`,u;if(t.has(`F`))u=c?Rh(n,r):RegExp.escape(n);else if(t.has(`P`))u=dg(n);else if(t.has(`E`))u=_g(c?Lh(n,r):n,r);else{let e=Mh(c?Lh(n,r):n,r);if(e.error)return{error:x(`grep: ${e.error}`,2)};u=e.source}let d=u;if(e&&Ph(d))return{error:C(`feature`,`grep`,`conditional backreference`,`grep: backreferences with conditional or repeated-empty captures are not supported`,2)};o&&(u=`(?<!${r.assertions().word})(?:${u})(?!${r.assertions().word})`),a&&(u=`^(?:${u})$`);try{let f=e?Fg(u):u,p=new RegExp(zr(e?bg(f,`js`,r):u),l);e&&Object.assign(p,{markedSource:f,tables:r,shape:og(n,s)}),p.pcre=t.has(`P`),p.localeSensitive=p.pcre?t.has(`i`)||o||yg(d)||/\\[dD]/u.test(d):t.has(`i`)&&s,p.folded=c,p.extendedC=c&&cn.test(n),p.unicodePattern=/[\u0080-\u{10FFFF}]/u.test(n),p.wellFormed=n.isWellFormed(),p.emptyWord=o&&!p.pcre&&new RegExp(e?bg(Fg(d),`js`,r):d,l).test(``),p.anyCharacter=Rg(d);let m=Yh(n,t);if(m?.isWellFormed()&&(c||!t.has(`i`))&&(p.literal={pattern:m,tables:r}),t.has(`o`)&&e&&!a){if(o||/\\[1-9]|\(\?/u.test(u))return{error:C(`feature`,`grep`,`-o regex extent`,`grep: only-matching with backreferences, lookarounds or word constraints is not supported`,2)};try{p.extent=new Eh(bg(u,`extent`,r),!1,null,r)}catch{return{error:C(`feature`,`grep`,`-o regex extent`,`grep: POSIX match extent for this pattern is not supported`,2)}}}i.push(p)}catch(e){return!t.has(`P`)&&Bg(d,t)?{error:C(`feature`,`grep`,`GNU regex syntax`,`grep: this GNU regular expression cannot be represented by the JavaScript matcher`,2)}:{error:x(`grep: invalid pattern (${t.has(`F`)?`fixed-string /${l}`:t.has(`P`)?`PCRE subset /${l}`:t.has(`E`)?`ERE / ECMAScript /${l}`:`BRE /${l}`}): ${e.message}`,2)}}}return{res:i}}function Bg(e,t){if(!t.has(`E`)&&/(?<!\\)\{(?!\d*(?:,\d*)?\})/u.test(e))return!1;try{return fh(bg(e,`extent`)),!0}catch(e){return!!e.gap}}function Vg(e,t,n=N,r=!1){let i=(e,t)=>C(`feature`,`grep`,e,`grep: ${t}`,2);if(e.marked){if(t.some(e=>e.pcre))return i(`binary input`,`PCRE matching over bytes that spell no text is not supported`);if(t.some(e=>!e.wellFormed))return i(`unpaired surrogate`,`a pattern holding an unpaired UTF-16 surrogate cannot be matched against bytes`)}if(t.some(e=>e.emptyWord)&&lg(_n(n)).test(e.content))return i(`empty word match`,`-w with a pattern that can match nothing, over non-ASCII text that is not word characters, is not supported`);let a=e.marked?t.filter(e=>e.shape&&(e.shape.wordEdge||e.shape.dot||e.shape.negated)):[],o=a.length?ag(e.content):null;if(a.some(e=>sg(e.shape,o,r)))return i(`binary input`,`matching this pattern beside bytes glibc reads as a character is not supported`);let s=()=>t.some(e=>e.unicodePattern)||/[\u0080-\u{10FFFF}]/u.test(e.content);if(n!==N&&t.some(e=>e.localeSensitive||e.folded||e.anyCharacter)&&s())return i(`locale`,`matching non-ASCII text in the ${n} locale is not supported`);if(t.some(e=>e.extendedC)||t.some(e=>e.folded)&&cn.test(e.content))return i(`locale-sensitive regex`,`case-insensitive matching over Cyrillic Extended-C letters is not supported`);let c=t.filter(e=>e.localeSensitive);return c.length===0||!s()?null:i(`non-ASCII regex semantics`,`${c.some(e=>e.pcre)?`PCRE matching`:`case-insensitive matching with backreferences`} on non-ASCII input is not supported`)}var Hg=/[*?[]/u,Ug=/\P{ASCII}/u,Wg=/[.+*?^${}()|[\]\\/]/u;function Gg(e,t={}){try{return Kg(e,t)}catch(e){throw e instanceof T?e:new T(`feature`,`glob pattern`,`unsupported glob pattern: ${e.message}`)}}function Kg(e,t){let n=`^`,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a===`\\`&&i+1<e.length){let r=e[i+1];n+=qg(r,t.ignoreCase),i++}else if(a===`*`){for(;e[i+1]===`*`;)i++;n+=`.*`}else if(a===`?`)n+=`.`;else if(a===`[`){let a=Xg(e,i,t);if(a?.voided)return/^(?!)$/u;a?(n+=a.source,i=a.end,r||=a.nonAsciiRange):n+=`\\[`}else n+=qg(a,t.ignoreCase)}return Yg(RegExp(n+`(?![\\s\\S])`,`us`),e,t,r)}function qg(e,t){return t&&/[a-zA-Z]/u.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:Wg.test(e)?`\\`+e:e}function Jg(e,t,n){let r=RegExp(`[${e}]`,`ui`),i=RegExp(`[${t}]`,`u`),a=``;for(let e=0;e<128;e++){let t=String.fromCodePoint(e);(r.test(t)||i.test(t))&&(a+=`\\x`+e.toString(16).padStart(2,`0`))}return`[${n?`^`:``}${a}]`}function Yg(e,t,n,r){let i=/[?[]/u.test(t),a=Ug.test(t);return{test(t){if(r||n.ignoreCase&&a||(i||n.ignoreCase)&&Ug.test(t))throw new T(`feature`,`non-ASCII glob matching`,`locale-dependent glob matching of non-ASCII names is not supported`);return e.test(t)}}}function Xg(e,t,n){let{ignoreCase:r}=n,i=t+1,a=!1;(e[i]===`!`||e[i]===`^`)&&(a=!0,i++);let o=``,s=``,c=!1,l=!1,u=!1,d=!1,f=``,p=0,m=``,h=0;for(e[i]===`]`&&(o+=`\\]`,i++,c=!0,f=`]`);i<e.length&&e[i]!==`]`;i++){let t=e[i];if(t===`[`&&(e[i+1]===`.`||e[i+1]===`=`))throw new T(`feature`,`glob collating or equivalence class`,`glob collating symbols and equivalence classes are not supported`);if(t===`[`&&e[i+1]===`:`){let t=n.bash?Zg(e,i):Ut(e,i,{unknown:`empty`});if(t){if(!n.bash&&t.body===``)throw new T(`feature`,`glob character class`,`unknown POSIX classes in command filename patterns are not supported`);l&&(d=!0),r?s+=t.body:o+=t.body,i=t.end-1,c=!1,l=!1;continue}if(n.bash)continue}if(t===`-`&&c)h=p,m=f,o+=`-`,l=!0,c=!1;else{let n=t===`\\`&&i+1<e.length?e[++i]:t;p=o.length,f=n,l&&Ug.test(m+n)&&(u=!0),l&&n.codePointAt(0)<m.codePointAt(0)?o=o.slice(0,h):o+=/[\]\\^[-]/u.test(n)?`\\${n}`:n,c=!l,l=!1}}return i>=e.length?null:d?{voided:!0,end:i}:{source:r?Jg(o,s,a):`[${a?`^`:``}${o}]`,end:i,nonAsciiRange:u}}function Zg(e,t){let n=e.indexOf(`:]`,t+2);if(n===-1)return null;let r=e.slice(t+2,n).replace(/\\([\s\S]|$)/gu,`$1`);return{body:r===`ascii`?`\\x00-\\x7F`:Rt[r]??``,end:n+2}}function Qg(e,t){return Gg(t).test(e)}function $g(e){let{value:t,mask:n}=e;if(n===null)return Hg.test(t);for(let e=0;e<t.length;e++)if(n[e]===`0`&&Hg.test(t[e]))return!0;return!1}function e_(e){let t=t=>!e.mask||e.mask[t]===`0`;for(let n=0;n<e.value.length;n++){let r=e.value[n];if(t(n)){if(r===`\\`)n++;else if(r===`[`)n=t_(e,n,t);else if(/[?*+@!]/u.test(r)&&e.value[n+1]===`(`&&t(n+1))return!0}}return!1}function t_(e,t,n){let{value:r}=e,i=t+1;for(/[!^]/u.test(r[i])&&n(i)&&i++,r[i]===`]`&&n(i)&&i++;i<r.length;i++)if(n(i)){if(r[i]===`\\`)i++;else{if(r[i]===`]`)return i;if(r[i]===`[`&&/[.:=]/u.test(r[i+1])&&n(i+1)){let e=r.indexOf(r[i+1]+`]`,i+2);e!==-1&&(i=e+1)}}}return t}var n_=/[*?[\]^!\\:.=-]/u;function r_(e){let{value:t,mask:n}=e;if(n===null)return t;let r=``;for(let e=0;e<t.length;e++){let i=t[e];r+=n[e]!==`0`&&n_.test(i)?`\\`+i:i}return r}function i_(e,t){let n=r_(e),r=n.match(/[^/]+|\/+/gu)??[],i=Sn(),a=new Set,o=[{path:``,marks:null}],s;try{for(let e=0;e<r.length;e++){let n=r[e];if(n.startsWith(`/`)||!Hg.test(n)){o=o.map(e=>({...e,path:e.path+o_(n)}));continue}o=s_(o,n,e===r.length-1,t,a)}let e=o.filter(e=>k(t.cwd,e.path,t.fs,{follow:!1}).path!==null);for(let t of e)for(let e of t.marks??[])i.add(e);return s=e.filter(e=>e.marks===null).map(e=>e.path).sort(M),s}finally{if(s===void 0)for(let e of a)i.add(e);i.emit(t.notes,`glob`,``,` while expanding ${JSON.stringify(n)}`),s?.length===0&&r.some(a_)&&t.notes.add(`glob: no paths matched ${JSON.stringify(n)}; the pattern was left literal.`)}}function a_(e){for(let t=0;t<e.length;t++)if(e[t]===`\\`)t++;else{if(e[t]===`*`||e[t]===`?`)return!0;if(e[t]===`[`)try{if(Xg(e,t,{bash:!0}))return!0}catch{return!0}}return!1}var o_=e=>e.replace(/\\(.)/gu,`$1`);function s_(e,t,n,r,i){let a=Gg(t,{bash:!0}),o=t.startsWith(`.`)||t.startsWith(`\\.`),s=[];for(let t of e){let e=k(r.cwd,t.path||`.`,r.fs).path;if(!r.fs.isDir(e))continue;let{dirs:c,files:l,links:u}=r.fs.listDir(e),d=n?u:u.filter(t=>r.fs.isDir(k(e,t,r.fs).path));for(let r of n?[...c,...l,...d]:[...c,...d]){let n=!o&&r.startsWith(`.`);if(!n&&t.marks===null)a.test(r)&&s.push({path:t.path+r,marks:null});else if(c_(a,r)){if(!n){s.push({path:t.path+r,marks:t.marks});continue}let a=O(e,r);i.add(a),s.push({path:t.path+r,marks:[...t.marks??[],a]})}}}return s}function c_(e,t){try{return e.test(t)}catch{return!0}}var l_=(e,t)=>e.some(e=>e.test(t)),u_=()=>({stdout:``,stderr:``,exitCode:1}),d_=e=>e.failure!==void 0,f_=e=>e.name??`(standard input)`,p_=e=>e.binaryLine===void 0?e.content:e.content.replaceAll(`\0`,`
|
|
146
146
|
`),m_=(e,t)=>t.map(e.marked?Cg:Sg);function h_(e,t,n,r){if(r===0)return 0;let i=m_(e,t),a=p_(e),o=0;if(r===1/0){for(let e of An(a))l_(i,e)!==n&&o++;return o}let s=0;for(;s<a.length&&o<r;){let e=a.indexOf(`
|
|
147
147
|
`,s);e<0&&(e=a.length),l_(i,a.slice(s,e))!==n&&o++,s=e+1}return o}function g_(){let e=[],t=(t,n)=>{let r=e.at(-1);r?.fd===t&&r.text!==void 0?r.text+=n:e.push({fd:t,text:n})};return{events:e,out(e){e&&t(1,e)},lines(t,n,r){if(!n||!it.test(t))return this.out(t);if(!r.isWellFormed())throw new T(`feature`,`unpaired surrogate`,`unpaired UTF-16 surrogates cannot be encoded as UTF-8`);e.push({fd:1,bytes:ot(t)})},err(e){e&&t(2,e)}}}function __(e,t){let n=t=>e.filter(e=>e.fd===t&&e.text!==void 0).map(e=>e.text).join(``);return{stdout:e.some(e=>e.bytes!==void 0)?``:n(1),stderr:n(2),exitCode:+!t,events:e}}function v_(e,t,n){let r={used:!1,write:g_(),selected:!1};for(let i of e)d_(i)?r.write.err(i.failure):y_(i,t,n,r);return __(r.write.events,r.selected)}function y_(e,t,n,r){if(e.binaryLine===0)return b_(e,t,n,r);let i=p_(e),a={input:e,opts:n,run:r,lines:An(i),res:t,tests:m_(e,t),bufbeg:0,name:n.showName??e.recursive?f_(e):null,out:[],lastout:null,pending:0,outleft:n.max??1/0,quiet:!1,heldBack:!1},o=a.lines.length,s=o>0&&!i.endsWith(`
|