@visulima/vis 1.0.1 → 1.0.3
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/CHANGELOG.md +22 -0
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +3 -3
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog.js +1 -1
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler72.js +1 -1
- package/dist/packem_chunks/handler74.js +1 -1
- package/dist/packem_chunks/help-command.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/ts-loader.js +13 -13
- package/dist/packem_shared/{advisories-CaP4uNhD.js → advisories-B76fBVL-.js} +1 -1
- package/dist/packem_shared/{index-CgXLAAVI.js → index-BIKG7bQs.js} +1 -1
- package/dist/packem_shared/{osv-bloom-BAyJUnRx.js → osv-bloom-DMhXP184.js} +1 -1
- package/dist/packem_shared/target-merge-Dg25Izl5.js +11 -0
- package/index.d.ts +204 -204
- package/index.js +572 -655
- package/package.json +11 -11
- package/dist/packem_shared/target-merge-D2eTghgd.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/vis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A monorepo dev toolkit — task runner, remote caching, security scanning, git hooks, and AI agent integrations — powered by @visulima/task-runner",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"@visulima/secret-scanner": "1.0.0",
|
|
124
124
|
"@visulima/source-map": "3.0.0",
|
|
125
125
|
"@visulima/tabular": "4.0.0",
|
|
126
|
-
"@visulima/task-runner": "1.0.
|
|
127
|
-
"@visulima/tui": "1.0.
|
|
126
|
+
"@visulima/task-runner": "1.0.1",
|
|
127
|
+
"@visulima/tui": "1.0.3",
|
|
128
128
|
"module-replacements": "^2.11.0",
|
|
129
129
|
"module-replacements-codemods": "^2.0.1",
|
|
130
130
|
"react": "19.2.7",
|
|
@@ -151,14 +151,14 @@
|
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
"optionalDependencies": {
|
|
154
|
-
"@visulima/vis-binding-darwin-arm64": "1.0.
|
|
155
|
-
"@visulima/vis-binding-
|
|
156
|
-
"@visulima/vis-binding-linux-arm64-
|
|
157
|
-
"@visulima/vis-binding-
|
|
158
|
-
"@visulima/vis-binding-linux-x64-
|
|
159
|
-
"@visulima/vis-binding-linux-x64-
|
|
160
|
-
"@visulima/vis-binding-win32-arm64-msvc": "1.0.
|
|
161
|
-
"@visulima/vis-binding-win32-x64-msvc": "1.0.
|
|
154
|
+
"@visulima/vis-binding-darwin-arm64": "1.0.3",
|
|
155
|
+
"@visulima/vis-binding-darwin-x64": "1.0.3",
|
|
156
|
+
"@visulima/vis-binding-linux-arm64-gnu": "1.0.3",
|
|
157
|
+
"@visulima/vis-binding-linux-arm64-musl": "1.0.3",
|
|
158
|
+
"@visulima/vis-binding-linux-x64-musl": "1.0.3",
|
|
159
|
+
"@visulima/vis-binding-linux-x64-gnu": "1.0.3",
|
|
160
|
+
"@visulima/vis-binding-win32-arm64-msvc": "1.0.3",
|
|
161
|
+
"@visulima/vis-binding-win32-x64-msvc": "1.0.3"
|
|
162
162
|
},
|
|
163
163
|
"engines": {
|
|
164
164
|
"node": "^22.14.0 || >=24.10.0"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{createRequire as lo}from"node:module";const po=lo(import.meta.url),me=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,co=e=>{if(typeof me<"u"&&me.versions&&me.versions.node){const[t,o]=me.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return me.getBuiltinModule(e)}return po(e)},{createRequire:fo}=co("node:module"),go=fo(import.meta.url),be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wt=e=>{if(typeof be<"u"&&be.versions&&be.versions.node){const[t,o]=be.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return be.getBuiltinModule(e)}return go(e)},{homedir:ho,tmpdir:pt}=Wt("node:os"),{env:ot,cwd:bo,platform:$t}=be,{createRequire:k}=Wt("node:module"),yo=0,Qt=2,mo=Symbol("findUpStop"),vo=/^[A-Z]:\//i,ye=(e="")=>e&&e.replaceAll("\\","/").replace(vo,t=>t.toUpperCase()),Ro=/^[/\\]{2}/,Ao=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Z]:[/\\]/i,qt=/^[A-Z]:$/i,_o=/.(\.[^./]+)$/,Eo=/^[/\\]|^[a-z]:[/\\]/i,To=/\/$/,xo=()=>typeof process.cwd=="function"?process.cwd().replaceAll("\\","/"):"/",ct="/",Zt=(e,t)=>{let o="",f=0,p=-1,r=0,a;for(let l=0;l<=e.length;++l){if(l<e.length)a=e[l];else{if(a==="/")break;a="/"}if(a==="/"){if(!(p===l-1||r===1))if(r===2){if(o.length<2||f!==2||!o.endsWith(".")||o.at(-2)!=="."){if(o.length>2){const c=o.lastIndexOf("/");c===-1?(o="",f=0):(o=o.slice(0,c),f=o.length-1-o.lastIndexOf("/")),p=l,r=0;continue}else if(o.length>0){o="",f=0,p=l,r=0;continue}}t&&(o+=o.length>0?"/..":"..",f=2)}else o.length>0?o+=`/${e.slice(p+1,l)}`:o=e.slice(p+1,l),f=l-p-1;p=l,r=0}else a==="."&&r!==-1?++r:r=-1}return o},de=e=>Ao.test(e),Vt=function(e){if(e.length===0)return".";e=ye(e);const t=Ro.exec(e),o=de(e),f=e.at(-1)==="/";return e=Zt(e,!o),e.length===0?o?"/":f?"./":".":(f&&(e+="/"),qt.test(e)&&(e+="/"),t?o?`//${e}`:`//./${e}`:o&&!de(e)?`/${e}`:e)},se=(...e)=>{let t="";for(const o of e)if(o)if(t.length>0){const f=t.at(-1)==="/",p=o[0]==="/";f&&p?t+=o.slice(1):t+=f||p?o:`/${o}`}else t+=o;return Vt(t)},ft=function(...e){e=e.map(f=>ye(f));let t="",o=!1;for(let f=e.length-1;f>=-1&&!o;f--){const p=f>=0?e[f]:xo();!p||p.length===0||(t=`${p}/${t}`,o=de(p))}return t=Zt(t,!o),o&&!de(t)?`/${t}`:t.length>0?t:"."},Co=function(e){return _o.exec(ye(e))?.[1]??""},Tt=e=>{const t=ye(e).replace(To,""),o=t.lastIndexOf("/");if(o===-1)return de(e)?"/":".";const f=t.slice(0,o);return qt.test(f)?`${f}/`:f||(de(e)?"/":".")},So=(e,t)=>{const o=ye(e);return o.slice(o.lastIndexOf("/")+1)},$o=function(e){const t=Eo.exec(e)?.[0]?.replaceAll("\\","/")??"",o=So(e),f=Co(o);return{base:o,dir:Tt(e),ext:f,name:o.slice(0,o.length-f.length),root:t}},ko=k(import.meta.url),ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Oo=e=>{if(typeof ve<"u"&&ve.versions&&ve.versions.node){const[t,o]=ve.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ve.getBuiltinModule(e)}return ko(e)},{fileURLToPath:No}=Oo("node:url");function wo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kt,Ot;function Ho(){return Ot||(Ot=1,kt=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cr3","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),kt}var Lo=Ho();const Bo=wo(Lo);new Set(Bo);const it=e=>ye(e instanceof URL?No(e):e),Yt=e=>{if(!e||!(e instanceof URL)&&typeof e!="string")throw new TypeError("Path must be a non-empty string or URL.")},Io=k(import.meta.url),Re=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Mo=e=>{if(typeof Re<"u"&&Re.versions&&Re.versions.node){const[t,o]=Re.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Re.getBuiltinModule(e)}return Io(e)};Mo("node:fs/promises");const Do=k(import.meta.url),Ae=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Go=e=>{if(typeof Ae<"u"&&Ae.versions&&Ae.versions.node){const[t,o]=Ae.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ae.getBuiltinModule(e)}return Do(e)};Go("node:fs");const Nt=e=>{if(e.isFile())return"file";if(e.isDirectory())return"dir";if(e.isSymbolicLink())return"symlink"},Po=k(import.meta.url),_e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Uo=e=>{if(typeof _e<"u"&&_e.versions&&_e.versions.node){const[t,o]=_e.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return _e.getBuiltinModule(e)}return Po(e)};Uo("node:fs/promises");const Fo=k(import.meta.url),Ee=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,zo=e=>{if(typeof Ee<"u"&&Ee.versions&&Ee.versions.node){const[t,o]=Ee.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ee.getBuiltinModule(e)}return Fo(e)},{lstatSync:wt,mkdirSync:jo}=zo("node:fs"),Te=e=>{Yt(e);try{const t=wt(e);if(!t.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Nt(t))}'`);return}catch(t){if(t.code!=="ENOENT")throw t}try{jo(e,{recursive:!0})}catch(t){if(t.code!=="EEXIST")throw t;const o=wt(e);if(!o.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Nt(o))}'`,{cause:t})}},Xo=k(import.meta.url),xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ko=e=>{if(typeof xe<"u"&&xe.versions&&xe.versions.node){const[t,o]=xe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return xe.getBuiltinModule(e)}return Xo(e)};Ko("node:fs/promises");const Wo=k(import.meta.url),Ce=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qo=e=>{if(typeof Ce<"u"&&Ce.versions&&Ce.versions.node){const[t,o]=Ce.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ce.getBuiltinModule(e)}return Wo(e)};Qo("node:fs");const qo=k(import.meta.url),Se=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zo=e=>{if(typeof Se<"u"&&Se.versions&&Se.versions.node){const[t,o]=Se.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Se.getBuiltinModule(e)}return qo(e)};Zo("node:fs/promises");const Vo=k(import.meta.url),$e=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Yo=e=>{if(typeof $e<"u"&&$e.versions&&$e.versions.node){const[t,o]=$e.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return $e.getBuiltinModule(e)}return Vo(e)};Yo("node:fs");const Jo=k(import.meta.url),ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,er=e=>{if(typeof ke<"u"&&ke.versions&&ke.versions.node){const[t,o]=ke.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ke.getBuiltinModule(e)}return Jo(e)};er("node:fs/promises");const tr=k(import.meta.url),Oe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,or=e=>{if(typeof Oe<"u"&&Oe.versions&&Oe.versions.node){const[t,o]=Oe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Oe.getBuiltinModule(e)}return tr(e)};or("node:fs");k(import.meta.url);const rr=k(import.meta.url),Ne=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,sr=e=>{if(typeof Ne<"u"&&Ne.versions&&Ne.versions.node){const[t,o]=Ne.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ne.getBuiltinModule(e)}return rr(e)};sr("node:fs/promises");const nr=k(import.meta.url),we=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ur=e=>{if(typeof we<"u"&&we.versions&&we.versions.node){const[t,o]=we.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return we.getBuiltinModule(e)}return nr(e)};ur("node:fs");const ir=k(import.meta.url),He=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=e=>{if(typeof He<"u"&&He.versions&&He.versions.node){const[t,o]=He.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return He.getBuiltinModule(e)}return ir(e)};ar("node:fs/promises");const lr=k(import.meta.url),Le=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,pr=e=>{if(typeof Le<"u"&&Le.versions&&Le.versions.node){const[t,o]=Le.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Le.getBuiltinModule(e)}return lr(e)},{statSync:cr,lstatSync:fr}=pr("node:fs"),gr=(e,t={})=>{const o=t.cwd?it(t.cwd):process.cwd();let f=ft(o);const{root:p}=$o(f),r=it(t.stopAt??p),a=ft(f,r),l=t.type??"file",c=function(h){return[e]};t.allowSymlinks??=!0;const x=t.allowSymlinks?cr:fr;for(;f&&f!==a&&f!==p;){for(let h of c()){if(h===mo)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=it(h));const E=de(h)?h:ft(f,h);try{const C=x(E);if(l==="file"&&C.isFile()||l==="directory"&&C.isDirectory())return E}catch{}}f=Tt(f)}};function xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht={},gt,Lt;function at(){if(Lt)return gt;Lt=1;const e="[^\\\\/]",t=Symbol("unignore"),o="\\.",f="\\+",p="\\?",r="\\/",a="(?=.)",l="[^/]",c=`(?:${r}|$)`,x=`(?:^|${r})`,h=`${o}{1,2}${c}`,E=`(?!${o})`,C=`(?!${x}${h})`,T=`(?!${o}{0,1}${c})`,L=`(?!${h})`,te=`[^.${r}]`,q=`${l}*?`,Z="/",B={DOT_LITERAL:o,PLUS_LITERAL:f,QMARK_LITERAL:p,SLASH_LITERAL:r,ONE_CHAR:a,QMARK:l,END_ANCHOR:c,DOTS_SLASH:h,NO_DOT:E,NO_DOTS:C,NO_DOT_SLASH:T,NO_DOTS_SLASH:L,QMARK_NO_DOT:te,STAR:q,START_ANCHOR:x,SEP:Z},b={...B,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:`${o}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[\\\\/])${o}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},y={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return gt={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:y,UNIGNORE:t,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(s){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${s.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(s){return s===!0?b:B}},gt}var Bt;function lt(){return Bt||(Bt=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:f,REGEX_SPECIAL_CHARS_GLOBAL:p}=at();e.isObject=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),e.hasRegexChars=r=>f.test(r),e.isRegexChar=r=>r.length===1&&e.hasRegexChars(r),e.escapeRegex=r=>r.replace(p,"\\$1"),e.toPosixSlashes=r=>r.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const r=navigator.platform.toLowerCase();return r==="win32"||r==="windows"}return process.platform?process.platform==="win32":!1},e.removeBackslashes=r=>r.replace(o,a=>a==="\\"?"":a),e.escapeLast=(r,a,l)=>{const c=r.lastIndexOf(a,l);return c===-1?r:r[c-1]==="\\"?e.escapeLast(r,a,c-1):`${r.slice(0,c)}\\${r.slice(c)}`},e.removePrefix=(r,a={})=>{let l=r;return l.startsWith("./")&&(l=l.slice(2),a.prefix="./"),l},e.wrapOutput=(r,a={},l={})=>{const c=l.contains?"":"^",x=l.contains?"":"$";let h=`${c}(?:${r})${x}`;return a.negated===!0&&(h=`(?:^(?!${h}).*$)`),h},e.basename=(r,{windows:a}={})=>{const l=r.split(a?/[\\/]/:"/"),c=l[l.length-1];return c===""?l[l.length-2]:c}})(Ht)),Ht}var ht,It;function hr(){if(It)return ht;It=1;const e=lt(),{CHAR_ASTERISK:t,CHAR_AT:o,CHAR_BACKWARD_SLASH:f,CHAR_COMMA:p,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:x,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:E,CHAR_QUESTION_MARK:C,CHAR_RIGHT_CURLY_BRACE:T,CHAR_RIGHT_PARENTHESES:L,CHAR_RIGHT_SQUARE_BRACKET:te}=at(),q=B=>B===l||B===f,Z=B=>{B.isPrefix!==!0&&(B.depth=B.isGlobstar?1/0:1)};return ht=(B,b)=>{const y=b||{},s=B.length-1,A=y.parts===!0||y.scanToEnd===!0,O=[],m=[],_=[];let v=B,j=-1,U=0,Y=0,pe=!1,J=!1,F=!1,ee=!1,ce=!1,ne=!1,oe=!1,G=!1,ue=!1,K=!1,fe=0,W,R,w={value:"",depth:0,isGlob:!1};const X=()=>j>=s,i=()=>v.charCodeAt(j+1),M=()=>(W=R,v.charCodeAt(++j));for(;j<s;){R=M();let Q;if(R===f){oe=w.backslashes=!0,R=M(),R===c&&(ne=!0);continue}if(ne===!0||R===c){for(fe++;X()!==!0&&(R=M());){if(R===f){oe=w.backslashes=!0,M();continue}if(R===c){fe++;continue}if(ne!==!0&&R===r&&(R=M())===r){if(pe=w.isBrace=!0,F=w.isGlob=!0,K=!0,A===!0)continue;break}if(ne!==!0&&R===p){if(pe=w.isBrace=!0,F=w.isGlob=!0,K=!0,A===!0)continue;break}if(R===T&&(fe--,fe===0)){ne=!1,pe=w.isBrace=!0,K=!0;break}}if(A===!0)continue;break}if(R===l){if(O.push(j),m.push(w),w={value:"",depth:0,isGlob:!1},K===!0)continue;if(W===r&&j===U+1){U+=2;continue}Y=j+1;continue}if(y.noext!==!0&&(R===E||R===o||R===t||R===C||R===a)&&i()===x){if(F=w.isGlob=!0,ee=w.isExtglob=!0,K=!0,R===a&&j===U&&(ue=!0),A===!0){for(;X()!==!0&&(R=M());){if(R===f){oe=w.backslashes=!0,R=M();continue}if(R===L){F=w.isGlob=!0,K=!0;break}}continue}break}if(R===t){if(W===t&&(ce=w.isGlobstar=!0),F=w.isGlob=!0,K=!0,A===!0)continue;break}if(R===C){if(F=w.isGlob=!0,K=!0,A===!0)continue;break}if(R===h){for(;X()!==!0&&(Q=M());){if(Q===f){oe=w.backslashes=!0,M();continue}if(Q===te){J=w.isBracket=!0,F=w.isGlob=!0,K=!0;break}}if(A===!0)continue;break}if(y.nonegate!==!0&&R===a&&j===U){G=w.negated=!0,U++;continue}if(y.noparen!==!0&&R===x){if(F=w.isGlob=!0,A===!0){for(;X()!==!0&&(R=M());){if(R===x){oe=w.backslashes=!0,R=M();continue}if(R===L){K=!0;break}}continue}break}if(F===!0){if(K=!0,A===!0)continue;break}}y.noext===!0&&(ee=!1,F=!1);let I=v,ge="",n="";U>0&&(ge=v.slice(0,U),v=v.slice(U),Y-=U),I&&F===!0&&Y>0?(I=v.slice(0,Y),n=v.slice(Y)):F===!0?(I="",n=v):I=v,I&&I!==""&&I!=="/"&&I!==v&&q(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),y.unescape===!0&&(n&&(n=e.removeBackslashes(n)),I&&oe===!0&&(I=e.removeBackslashes(I)));const u={prefix:ge,input:B,start:U,base:I,glob:n,isBrace:pe,isBracket:J,isGlob:F,isExtglob:ee,isGlobstar:ce,negated:G,negatedExtglob:ue};if(y.tokens===!0&&(u.maxDepth=0,q(R)||m.push(w),u.tokens=m),y.parts===!0||y.tokens===!0){let Q;for(let N=0;N<O.length;N++){const re=Q?Q+1:U,ie=O[N],V=B.slice(re,ie);y.tokens&&(N===0&&U!==0?(m[N].isPrefix=!0,m[N].value=ge):m[N].value=V,Z(m[N]),u.maxDepth+=m[N].depth),(N!==0||V!=="")&&_.push(V),Q=ie}if(Q&&Q+1<B.length){const N=B.slice(Q+1);_.push(N),y.tokens&&(m[m.length-1].value=N,Z(m[m.length-1]),u.maxDepth+=m[m.length-1].depth)}u.slashes=O,u.parts=_}return u},ht}var dt,Mt;function dr(){if(Mt)return dt;Mt=1;const e=at(),t=lt(),{MAX_LENGTH:o,POSIX_REGEX_SOURCE:f,REGEX_NON_SPECIAL_CHARS:p,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:a}=e,l=(b,y)=>typeof y.expandRange=="function"?y.expandRange(...b,y):(b.sort(),`[${b.join("-")}]`),c=(b,y)=>`Missing ${b}: "${y}" - use "\\\\${y}" to match literal characters`,x=b=>{const y=[];let s=0,A=0,O=0,m="",_=!1;for(const v of b){if(_===!0){m+=v,_=!1;continue}if(v==="\\"){m+=v,_=!0;continue}if(v==='"'){O=O===1?0:1,m+=v;continue}if(O===0){if(v==="[")s++;else if(v==="]"&&s>0)s--;else if(s===0){if(v==="(")A++;else if(v===")"&&A>0)A--;else if(v==="|"&&A===0){y.push(m),m="";continue}}}m+=v}return y.push(m),y},h=b=>{let y=!1;for(const s of b){if(y===!0){y=!1;continue}if(s==="\\"){y=!0;continue}if(/[?*+@!()[\]{}]/.test(s))return!1}return!0},E=b=>{let y=b.trim(),s=!0;for(;s===!0;)s=!1,/^@\([^\\()[\]{}|]+\)$/.test(y)&&(y=y.slice(2,-1),s=!0);if(h(y))return y.replace(/\\(.)/g,"$1")},C=b=>{const y=b.map(E).filter(Boolean);for(let s=0;s<y.length;s++)for(let A=s+1;A<y.length;A++){const O=y[s],m=y[A],_=O[0];if(!(!_||O!==_.repeat(O.length)||m!==_.repeat(m.length))&&(O===m||O.startsWith(m)||m.startsWith(O)))return!0}return!1},T=(b,y=!0)=>{if(b[0]!=="+"&&b[0]!=="*"||b[1]!=="(")return;let s=0,A=0,O=0,m=!1;for(let _=1;_<b.length;_++){const v=b[_];if(m===!0){m=!1;continue}if(v==="\\"){m=!0;continue}if(v==='"'){O=O===1?0:1;continue}if(O!==1){if(v==="["){s++;continue}if(v==="]"&&s>0){s--;continue}if(!(s>0)){if(v==="("){A++;continue}if(v===")"&&(A--,A===0))return y===!0&&_!==b.length-1?void 0:{type:b[0],body:b.slice(2,_),end:_}}}}},L=b=>`${b.length===1?t.escapeRegex(b[0]):`[${b.map(y=>t.escapeRegex(y)).join("")}]`}*`,te=b=>{let y=0;const s=[];for(;y<b.length;){const A=T(b.slice(y),!1);if(!A||A.type!=="*")return;const O=x(A.body).map(_=>_.trim());if(O.length!==1)return;const m=E(O[0]);if(!m||m.length!==1)return;s.push(m),y+=A.end+1}if(!(s.length<1))return s},q=b=>{let y=0,s=b.trim(),A=T(s);for(;A;)y++,s=A.body.trim(),A=T(s);return y},Z=(b,y)=>{if(y.maxExtglobRecursion===!1)return{risky:!1};const s=typeof y.maxExtglobRecursion=="number"?y.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,A=x(b).map(v=>v.trim());if(A.length>1&&(A.some(v=>v==="")||A.some(v=>/^[*?]+$/.test(v))||C(A)))return{risky:!0};const O=[];let m=!1,_=!0;for(const v of A){const j=te(v);if(j){m=!0,O.push(...j);continue}const U=E(v);if(U&&U.length===1){O.push(U);continue}if(_=!1,q(v)>s)return{risky:!0}}return m?_?{risky:!0,safeOutput:L([...new Set(O)])}:{risky:!0}:{risky:!1}},B=(b,y)=>{if(typeof b!="string")throw new TypeError("Expected a string");b=a[b]||b;const s={...y},A=typeof s.maxLength=="number"?Math.min(o,s.maxLength):o;let O=b.length;if(O>A)throw new SyntaxError(`Input length: ${O}, exceeds maximum allowed length: ${A}`);const m={type:"bos",value:"",output:s.prepend||""},_=[m],v=s.capture?"":"?:",j=e.globChars(s.windows),U=e.extglobChars(j),{DOT_LITERAL:Y,PLUS_LITERAL:pe,SLASH_LITERAL:J,ONE_CHAR:F,DOTS_SLASH:ee,NO_DOT:ce,NO_DOT_SLASH:ne,NO_DOTS_SLASH:oe,QMARK:G,QMARK_NO_DOT:ue,STAR:K,START_ANCHOR:fe}=j,W=d=>`(${v}(?:(?!${fe}${d.dot?ee:Y}).)*?)`,R=s.dot?"":ce,w=s.dot?G:ue;let X=s.bash===!0?W(s):K;s.capture&&(X=`(${X})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);const i={input:b,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:_};b=t.removePrefix(b,i),O=b.length;const M=[],I=[],ge=[];let n=m,u;const Q=()=>i.index===O-1,N=i.peek=(d=1)=>b[i.index+d],re=i.advance=()=>b[++i.index]||"",ie=()=>b.slice(i.index+1),V=(d="",D=0)=>{i.consumed+=d,i.index+=D},st=d=>{i.output+=d.output!=null?d.output:d.value,V(d.value)},io=()=>{let d=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)re(),i.start++,d++;return d%2===0?!1:(i.negated=!0,i.start++,!0)},nt=d=>{i[d]++,ge.push(d)},he=d=>{i[d]--,ge.pop()},S=d=>{if(n.type==="globstar"){const D=i.braces>0&&(d.type==="comma"||d.type==="brace"),g=d.extglob===!0||M.length&&(d.type==="pipe"||d.type==="paren");d.type!=="slash"&&d.type!=="paren"&&!D&&!g&&(i.output=i.output.slice(0,-n.output.length),n.type="star",n.value="*",n.output=X,i.output+=n.output)}if(M.length&&d.type!=="paren"&&(M[M.length-1].inner+=d.value),(d.value||d.output)&&st(d),n&&n.type==="text"&&d.type==="text"){n.output=(n.output||n.value)+d.value,n.value+=d.value;return}d.prev=n,_.push(d),n=d},ut=(d,D)=>{const g={...U[D],conditions:1,inner:""};g.prev=n,g.parens=i.parens,g.output=i.output,g.startIndex=i.index,g.tokensIndex=_.length;const $=(s.capture?"(":"")+g.open;nt("parens"),S({type:d,value:D,output:i.output?"":F}),S({type:"paren",extglob:!0,value:re(),output:$}),M.push(g)},ao=d=>{const D=b.slice(d.startIndex,i.index+1),g=b.slice(d.startIndex+2,i.index),$=Z(g,s);if((d.type==="plus"||d.type==="star")&&$.risky){const H=$.safeOutput?(d.output?"":F)+(s.capture?`(${$.safeOutput})`:$.safeOutput):void 0,ae=_[d.tokensIndex];ae.type="text",ae.value=D,ae.output=H||t.escapeRegex(D);for(let le=d.tokensIndex+1;le<_.length;le++)_[le].value="",_[le].output="",delete _[le].suffix;i.output=d.output+ae.output,i.backtrack=!0,S({type:"paren",extglob:!0,value:u,output:""}),he("parens");return}let P=d.close+(s.capture?")":""),z;if(d.type==="negate"){let H=X;if(d.inner&&d.inner.length>1&&d.inner.includes("/")&&(H=W(s)),(H!==X||Q()||/^\)+$/.test(ie()))&&(P=d.close=`)$))${H}`),d.inner.includes("*")&&(z=ie())&&/^\.[^\\/.]+$/.test(z)){const ae=B(z,{...y,fastpaths:!1}).output;P=d.close=`)${ae})${H})`}d.prev.type==="bos"&&(i.negatedExtglob=!0)}S({type:"paren",extglob:!0,value:u,output:P}),he("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(b)){let d=!1,D=b.replace(r,(g,$,P,z,H,ae)=>z==="\\"?(d=!0,g):z==="?"?$?$+z+(H?G.repeat(H.length):""):ae===0?w+(H?G.repeat(H.length):""):G.repeat(P.length):z==="."?Y.repeat(P.length):z==="*"?$?$+z+(H?X:""):X:$?g:`\\${g}`);return d===!0&&(s.unescape===!0?D=D.replace(/\\/g,""):D=D.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),D===b&&s.contains===!0?(i.output=b,i):(i.output=t.wrapOutput(D,i,y),i)}for(;!Q();){if(u=re(),u==="\0")continue;if(u==="\\"){const g=N();if(g==="/"&&s.bash!==!0||g==="."||g===";")continue;if(!g){u+="\\",S({type:"text",value:u});continue}const $=/^\\+/.exec(ie());let P=0;if($&&$[0].length>2&&(P=$[0].length,i.index+=P,P%2!==0&&(u+="\\")),s.unescape===!0?u=re():u+=re(),i.brackets===0){S({type:"text",value:u});continue}}if(i.brackets>0&&(u!=="]"||n.value==="["||n.value==="[^")){if(s.posix!==!1&&u===":"){const g=n.value.slice(1);if(g.includes("[")&&(n.posix=!0,g.includes(":"))){const $=n.value.lastIndexOf("["),P=n.value.slice(0,$),z=n.value.slice($+2),H=f[z];if(H){n.value=P+H,i.backtrack=!0,re(),!m.output&&_.indexOf(n)===1&&(m.output=F);continue}}}(u==="["&&N()!==":"||u==="-"&&N()==="]")&&(u=`\\${u}`),u==="]"&&(n.value==="["||n.value==="[^")&&(u=`\\${u}`),s.posix===!0&&u==="!"&&n.value==="["&&(u="^"),n.value+=u,st({value:u});continue}if(i.quotes===1&&u!=='"'){u=t.escapeRegex(u),n.value+=u,st({value:u});continue}if(u==='"'){i.quotes=i.quotes===1?0:1,s.keepQuotes===!0&&S({type:"text",value:u});continue}if(u==="("){nt("parens"),S({type:"paren",value:u});continue}if(u===")"){if(i.parens===0&&s.strictBrackets===!0)throw new SyntaxError(c("opening","("));const g=M[M.length-1];if(g&&i.parens===g.parens+1){ao(M.pop());continue}S({type:"paren",value:u,output:i.parens?")":"\\)"}),he("parens");continue}if(u==="["){if(s.nobracket===!0||!ie().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(c("closing","]"));u=`\\${u}`}else nt("brackets");S({type:"bracket",value:u});continue}if(u==="]"){if(s.nobracket===!0||n&&n.type==="bracket"&&n.value.length===1){S({type:"text",value:u,output:`\\${u}`});continue}if(i.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(c("opening","["));S({type:"text",value:u,output:`\\${u}`});continue}he("brackets");const g=n.value.slice(1);if(n.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(u=`/${u}`),n.value+=u,st({value:u}),s.literalBrackets===!1||t.hasRegexChars(g))continue;const $=t.escapeRegex(n.value);if(i.output=i.output.slice(0,-n.value.length),s.literalBrackets===!0){i.output+=$,n.value=$;continue}n.value=`(${v}${$}|${n.value})`,i.output+=n.value;continue}if(u==="{"&&s.nobrace!==!0){nt("braces");const g={type:"brace",value:u,output:"(",outputIndex:i.output.length,tokensIndex:i.tokens.length};I.push(g),S(g);continue}if(u==="}"){const g=I[I.length-1];if(s.nobrace===!0||!g){S({type:"text",value:u,output:u});continue}let $=")";if(g.dots===!0){const P=_.slice(),z=[];for(let H=P.length-1;H>=0&&(_.pop(),P[H].type!=="brace");H--)P[H].type!=="dots"&&z.unshift(P[H].value);$=l(z,s),i.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const P=i.output.slice(0,g.outputIndex),z=i.tokens.slice(g.tokensIndex);g.value=g.output="\\{",u=$="\\}",i.output=P;for(const H of z)i.output+=H.output||H.value}S({type:"brace",value:u,output:$}),he("braces"),I.pop();continue}if(u==="|"){M.length>0&&M[M.length-1].conditions++,S({type:"text",value:u});continue}if(u===","){let g=u;const $=I[I.length-1];$&&ge[ge.length-1]==="braces"&&($.comma=!0,g="|"),S({type:"comma",value:u,output:g});continue}if(u==="/"){if(n.type==="dot"&&i.index===i.start+1){i.start=i.index+1,i.consumed="",i.output="",_.pop(),n=m;continue}S({type:"slash",value:u,output:J});continue}if(u==="."){if(i.braces>0&&n.type==="dot"){n.value==="."&&(n.output=Y);const g=I[I.length-1];n.type="dots",n.output+=u,n.value+=u,g.dots=!0;continue}if(i.braces+i.parens===0&&n.type!=="bos"&&n.type!=="slash"){S({type:"text",value:u,output:Y});continue}S({type:"dot",value:u,output:Y});continue}if(u==="?"){if(!(n&&n.value==="(")&&s.noextglob!==!0&&N()==="("&&N(2)!=="?"){ut("qmark",u);continue}if(n&&n.type==="paren"){const g=N();let $=u;(n.value==="("&&!/[!=<:]/.test(g)||g==="<"&&!/<([!=]|\w+>)/.test(ie()))&&($=`\\${u}`),S({type:"text",value:u,output:$});continue}if(s.dot!==!0&&(n.type==="slash"||n.type==="bos")){S({type:"qmark",value:u,output:ue});continue}S({type:"qmark",value:u,output:G});continue}if(u==="!"){if(s.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){ut("negate",u);continue}if(s.nonegate!==!0&&i.index===0){io();continue}}if(u==="+"){if(s.noextglob!==!0&&N()==="("&&N(2)!=="?"){ut("plus",u);continue}if(n&&n.value==="("||s.regex===!1){S({type:"plus",value:u,output:pe});continue}if(n&&(n.type==="bracket"||n.type==="paren"||n.type==="brace")||i.parens>0){S({type:"plus",value:u});continue}S({type:"plus",value:pe});continue}if(u==="@"){if(s.noextglob!==!0&&N()==="("&&N(2)!=="?"){S({type:"at",extglob:!0,value:u,output:""});continue}S({type:"text",value:u});continue}if(u!=="*"){(u==="$"||u==="^")&&(u=`\\${u}`);const g=p.exec(ie());g&&(u+=g[0],i.index+=g[0].length),S({type:"text",value:u});continue}if(n&&(n.type==="globstar"||n.star===!0)){n.type="star",n.star=!0,n.value+=u,n.output=X,i.backtrack=!0,i.globstar=!0,V(u);continue}let d=ie();if(s.noextglob!==!0&&/^\([^?]/.test(d)){ut("star",u);continue}if(n.type==="star"){if(s.noglobstar===!0){V(u);continue}const g=n.prev,$=g.prev,P=g.type==="slash"||g.type==="bos",z=$&&($.type==="star"||$.type==="globstar");if(s.bash===!0&&(!P||d[0]&&d[0]!=="/")){S({type:"star",value:u,output:""});continue}const H=i.braces>0&&(g.type==="comma"||g.type==="brace"),ae=M.length&&(g.type==="pipe"||g.type==="paren");if(!P&&g.type!=="paren"&&!H&&!ae){S({type:"star",value:u,output:""});continue}for(;d.slice(0,3)==="/**";){const le=b[i.index+4];if(le&&le!=="/")break;d=d.slice(3),V("/**",3)}if(g.type==="bos"&&Q()){n.type="globstar",n.value+=u,n.output=W(s),i.output=n.output,i.globstar=!0,V(u);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!z&&Q()){i.output=i.output.slice(0,-(g.output+n.output).length),g.output=`(?:${g.output}`,n.type="globstar",n.output=W(s)+(s.strictSlashes?")":"|$)"),n.value+=u,i.globstar=!0,i.output+=g.output+n.output,V(u);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&d[0]==="/"){const le=d[1]!==void 0?"|$":"";i.output=i.output.slice(0,-(g.output+n.output).length),g.output=`(?:${g.output}`,n.type="globstar",n.output=`${W(s)}${J}|${J}${le})`,n.value+=u,i.output+=g.output+n.output,i.globstar=!0,V(u+re()),S({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&d[0]==="/"){n.type="globstar",n.value+=u,n.output=`(?:^|${J}|${W(s)}${J})`,i.output=n.output,i.globstar=!0,V(u+re()),S({type:"slash",value:"/",output:""});continue}if(H&&d[0]==="/"){n.type="globstar",n.value+=u,n.output=`(?:^|${J}|${W(s)}${J})`,i.output+=n.output,i.globstar=!0,V(u+re()),S({type:"slash",value:"/",output:""});continue}i.output=i.output.slice(0,-n.output.length),n.type="globstar",n.output=W(s),n.value+=u,i.output+=n.output,i.globstar=!0,V(u);continue}const D={type:"star",value:u,output:X};if(s.bash===!0){D.output=".*?",(n.type==="bos"||n.type==="slash")&&(D.output=R+D.output),S(D);continue}if(n&&(n.type==="bracket"||n.type==="paren")&&s.regex===!0){D.output=u,S(D);continue}(i.index===i.start||n.type==="slash"||n.type==="dot")&&(n.type==="dot"?(i.output+=ne,n.output+=ne):s.dot===!0?(i.output+=oe,n.output+=oe):(i.output+=R,n.output+=R),N()!=="*"&&(i.output+=F,n.output+=F)),S(D)}for(;i.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(c("closing","]"));i.output=t.escapeLast(i.output,"["),he("brackets")}for(;i.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(c("closing",")"));i.output=t.escapeLast(i.output,"("),he("parens")}for(;i.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(c("closing","}"));i.output=t.escapeLast(i.output,"{"),he("braces")}if(s.strictSlashes!==!0&&(n.type==="star"||n.type==="bracket")&&S({type:"maybe_slash",value:"",output:`${J}?`}),i.backtrack===!0){i.output="";for(const d of i.tokens)i.output+=d.output!=null?d.output:d.value,d.suffix&&(i.output+=d.suffix)}return i};return B.fastpaths=(b,y)=>{const s={...y},A=typeof s.maxLength=="number"?Math.min(o,s.maxLength):o,O=b.length;if(O>A)throw new SyntaxError(`Input length: ${O}, exceeds maximum allowed length: ${A}`);b=a[b]||b;const{DOT_LITERAL:m,SLASH_LITERAL:_,ONE_CHAR:v,DOTS_SLASH:j,NO_DOT:U,NO_DOTS:Y,NO_DOTS_SLASH:pe,STAR:J,START_ANCHOR:F}=e.globChars(s.windows),ee=s.dot?Y:U,ce=s.dot?pe:U,ne=s.capture?"":"?:",oe={negated:!1,prefix:""};let G=s.bash===!0?".*?":J;s.capture&&(G=`(${G})`);const ue=R=>R.noglobstar===!0?G:`(${ne}(?:(?!${F}${R.dot?j:m}).)*?)`,K=R=>{switch(R){case"*":return`${ee}${v}${G}`;case".*":return`${m}${v}${G}`;case"*.*":return`${ee}${G}${m}${v}${G}`;case"*/*":return`${ee}${G}${_}${v}${ce}${G}`;case"**":return ee+ue(s);case"**/*":return`(?:${ee}${ue(s)}${_})?${ce}${v}${G}`;case"**/*.*":return`(?:${ee}${ue(s)}${_})?${ce}${G}${m}${v}${G}`;case"**/.*":return`(?:${ee}${ue(s)}${_})?${m}${v}${G}`;default:{const w=/^(.*?)\.(\w+)$/.exec(R);if(!w)return;const X=K(w[1]);return X?X+m+w[2]:void 0}}},fe=t.removePrefix(b,oe);let W=K(fe);return W&&s.strictSlashes!==!0&&(W+=`${_}?`),W},dt=B,dt}var bt,Dt;function br(){if(Dt)return bt;Dt=1;const e=hr(),t=dr(),o=lt(),f=at(),p=a=>a&&typeof a=="object"&&!Array.isArray(a),r=(a,l,c=!1)=>{if(Array.isArray(a)){const q=a.map(Z=>r(Z,l,c));return Z=>{for(const B of q){const b=B(Z);if(b)return b}return!1}}const x=p(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!x)throw new TypeError("Expected pattern to be a non-empty string");const h=l||{},E=h.windows,C=x?r.compileRe(a,l):r.makeRe(a,l,!1,!0),T=C.state;delete C.state;let L=()=>!1;if(h.ignore){const q={...l,ignore:null,onMatch:null,onResult:null};L=r(h.ignore,q,c)}const te=(q,Z=!1)=>{const{isMatch:B,match:b,output:y}=r.test(q,C,l,{glob:a,posix:E}),s={glob:a,state:T,regex:C,posix:E,input:q,output:y,match:b,isMatch:B};if(typeof h.onResult=="function"&&h.onResult(s),B===!1)return s.isMatch=!1,Z?s:!1;e:if(L(q)){if(typeof h.onIgnore=="function"&&h.onIgnore(s)===f.UNIGNORE){s.isMatch=!0;break e}return s.isMatch=!1,Z?s:!1}return typeof h.onMatch=="function"&&h.onMatch(s),Z?s:!0};return c&&(te.state=T),te};return r.test=(a,l,c,{glob:x,posix:h}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const E=c||{},C=E.format||(h?o.toPosixSlashes:null);let T=a===x,L=T&&C?C(a):a;return T===!1&&(L=C?C(a):a,T=L===x),(T===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?T=r.matchBase(a,l,c,h):T=l.exec(L)),{isMatch:!!T,match:T,output:L}},r.matchBase=(a,l,c,x=c&&c.windows)=>(l instanceof RegExp?l:r.makeRe(l,c)).test(o.basename(a,{windows:x})),r.isMatch=(a,l,c)=>r(l,c)(a),r.parse=(a,l)=>Array.isArray(a)?a.map(c=>r.parse(c,l)):t(a,{...l,fastpaths:!1}),r.scan=(a,l)=>e(a,l),r.compileRe=(a,l,c=!1,x=!1)=>{if(c===!0)return a.output;const h=l||{},E=h.contains?"":"^",C=h.contains?"":"$";let T=`${E}(?:${a.output})${C}`;a&&a.negated===!0&&(T=`^(?!${T}).*$`);const L=r.toRegex(T,l);return x===!0&&(L.state=a),L},r.makeRe=(a,l={},c=!1,x=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(h.output=t.fastpaths(a,l)),h.output||(h=t(a,l)),r.compileRe(h,l,c,x)},r.toRegex=(a,l)=>{try{const c=l||{};return new RegExp(a,c.flags||(c.nocase?"i":""))}catch(c){if(l&&l.debug===!0)throw c;return/$^/}},r.constants=f,bt=r,bt}var yt,Gt;function yr(){if(Gt)return yt;Gt=1;const e=br(),t=lt();function o(f,p,r=!1){return p&&(p.windows===null||p.windows===void 0)&&(p={...p,windows:t.isWindows()}),e(f,p,r)}return Object.assign(o,e),yt=o,yt}var mr=yr();xt(mr);const vr=k(import.meta.url),Be=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rt=e=>{if(typeof Be<"u"&&Be.versions&&Be.versions.node){const[t,o]=Be.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Be.getBuiltinModule(e)}return vr(e)};rt("fs");rt("fs");rt("path");rt("url");const{createRequire:Rr}=rt("module");var Pt=Rr(import.meta.url);try{Pt.resolve("picomatch"),Pt("picomatch")}catch{}var mt,Ut;function Ar(){if(Ut)return mt;Ut=1;/*!
|
|
2
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/return mt=function(e){if(typeof e!="string"||e==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},mt}var vt,Ft;function Jt(){if(Ft)return vt;Ft=1;/*!
|
|
7
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*/var e=Ar(),t={"{":"}","(":")","[":"]"},o=function(p){if(p[0]==="!")return!0;for(var r=0,a=-2,l=-2,c=-2,x=-2,h=-2;r<p.length;){if(p[r]==="*"||p[r+1]==="?"&&/[\].+)]/.test(p[r])||l!==-1&&p[r]==="["&&p[r+1]!=="]"&&(l<r&&(l=p.indexOf("]",r)),l>r&&(h===-1||h>l||(h=p.indexOf("\\",r),h===-1||h>l)))||c!==-1&&p[r]==="{"&&p[r+1]!=="}"&&(c=p.indexOf("}",r),c>r&&(h=p.indexOf("\\",r),h===-1||h>c))||x!==-1&&p[r]==="("&&p[r+1]==="?"&&/[:!=]/.test(p[r+2])&&p[r+3]!==")"&&(x=p.indexOf(")",r),x>r&&(h=p.indexOf("\\",r),h===-1||h>x))||a!==-1&&p[r]==="("&&p[r+1]!=="|"&&(a<r&&(a=p.indexOf("|",r)),a!==-1&&p[a+1]!==")"&&(x=p.indexOf(")",a),x>a&&(h=p.indexOf("\\",a),h===-1||h>x))))return!0;if(p[r]==="\\"){var E=p[r+1];r+=2;var C=t[E];if(C){var T=p.indexOf(C,r);T!==-1&&(r=T+1)}if(p[r]==="!")return!0}else r++}return!1},f=function(p){if(p[0]==="!")return!0;for(var r=0;r<p.length;){if(/[*?{}()[\]]/.test(p[r]))return!0;if(p[r]==="\\"){var a=p[r+1];r+=2;var l=t[a];if(l){var c=p.indexOf(l,r);c!==-1&&(r=c+1)}if(p[r]==="!")return!0}else r++}return!1};return vt=function(p,r){if(typeof p!="string"||p==="")return!1;if(e(p))return!0;var a=o;return r&&r.strict===!1&&(a=f),a(p)},vt}const _r=k(import.meta.url),Ie=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,eo=e=>{if(typeof Ie<"u"&&Ie.versions&&Ie.versions.node){const[t,o]=Ie.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ie.getBuiltinModule(e)}return _r(e)},Er=eo("path"),Tr=eo("os");var Rt,zt;function xr(){if(zt)return Rt;zt=1;var e=Jt(),t=Er.posix.dirname,o=Tr.platform()==="win32",f="/",p=/\\/g,r=/\\([!*?|[\](){}])/g;Rt=function(c,x){var h=Object.assign({flipBackslashes:!0},x);h.flipBackslashes&&o&&c.indexOf(f)<0&&(c=c.replace(p,f)),a(c)&&(c+=f),c+="a";do c=t(c);while(l(c));return c.replace(r,"$1")};function a(c){var x=c.slice(-1),h;switch(x){case"}":h="{";break;case"]":h="[";break;default:return!1}var E=c.indexOf(h);return E<0?!1:c.slice(E+1,-1).includes(f)}function l(c){return/\([^()]+$/.test(c)||c[0]==="{"||c[0]==="["||/[^\\][{[]/.test(c)?!0:e(c)}return Rt}var Cr=xr();xt(Cr);const Sr=k(import.meta.url),Me=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$r=e=>{if(typeof Me<"u"&&Me.versions&&Me.versions.node){const[t,o]=Me.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Me.getBuiltinModule(e)}return Sr(e)};$r("node:fs/promises");const kr=k(import.meta.url),De=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Or=e=>{if(typeof De<"u"&&De.versions&&De.versions.node){const[t,o]=De.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return De.getBuiltinModule(e)}return kr(e)},{accessSync:Nr}=Or("node:fs");function Et(e,t=yo){Yt(e),e=it(e);try{return Nr(e,t),!0}catch{return!1}}var wr=Jt();xt(wr);const Hr=k(import.meta.url),Ge=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,to=e=>{if(typeof Ge<"u"&&Ge.versions&&Ge.versions.node){const[t,o]=Ge.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ge.getBuiltinModule(e)}return Hr(e)};to("node:fs/promises");to("node:fs");let Lr=class extends Error{constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};const Br=k(import.meta.url),Pe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,oo=e=>{if(typeof Pe<"u"&&Pe.versions&&Pe.versions.node){const[t,o]=Pe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Pe.getBuiltinModule(e)}return Br(e)};oo("node:fs/promises");oo("node:zlib");const Ir=k(import.meta.url),Ue=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ro=e=>{if(typeof Ue<"u"&&Ue.versions&&Ue.versions.node){const[t,o]=Ue.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ue.getBuiltinModule(e)}return Ir(e)};ro("node:fs");ro("node:zlib");const Mr=k(import.meta.url),Fe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Dr=e=>{if(typeof Fe<"u"&&Fe.versions&&Fe.versions.node){const[t,o]=Fe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Fe.getBuiltinModule(e)}return Mr(e)},{createRequire:so}=Dr("node:module"),Gr=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&Gr.set("AggregateError",AggregateError);const Pr=so(import.meta.url),ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ur=e=>{if(typeof ze<"u"&&ze.versions&&ze.versions.node){const[t,o]=ze.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return ze.getBuiltinModule(e)}return Pr(e)};Ur("node:util");const Fr=so(import.meta.url),je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ct=e=>{if(typeof je<"u"&&je.versions&&je.versions.node){const[t,o]=je.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return je.getBuiltinModule(e)}return Fr(e)};Ct("node:fs");Ct("node:path");Ct("node:url");const zr=k(import.meta.url),Xe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,no=e=>{if(typeof Xe<"u"&&Xe.versions&&Xe.versions.node){const[t,o]=Xe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Xe.getBuiltinModule(e)}return zr(e)};no("node:fs");no("node:fs/promises");const jr=k(import.meta.url),Ke=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xr=e=>{if(typeof Ke<"u"&&Ke.versions&&Ke.versions.node){const[t,o]=Ke.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ke.getBuiltinModule(e)}return jr(e)};Xr("node:fs");const Kr=k(import.meta.url),We=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Wr=e=>{if(typeof We<"u"&&We.versions&&We.versions.node){const[t,o]=We.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return We.getBuiltinModule(e)}return Kr(e)};Wr("node:fs/promises");const Qr=k(import.meta.url),Qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qr=e=>{if(typeof Qe<"u"&&Qe.versions&&Qe.versions.node){const[t,o]=Qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Qe.getBuiltinModule(e)}return Qr(e)};qr("node:fs");k(import.meta.url);const Zr=k(import.meta.url),qe=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vr=e=>{if(typeof qe<"u"&&qe.versions&&qe.versions.node){const[t,o]=qe.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return qe.getBuiltinModule(e)}return Zr(e)};Vr("node:crypto");new TextEncoder;const Yr=k(import.meta.url),Ze=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Jr=e=>{if(typeof Ze<"u"&&Ze.versions&&Ze.versions.node){const[t,o]=Ze.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ze.getBuiltinModule(e)}return Yr(e)};Jr("node:fs/promises");const es=k(import.meta.url),Ve=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ts=e=>{if(typeof Ve<"u"&&Ve.versions&&Ve.versions.node){const[t,o]=Ve.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ve.getBuiltinModule(e)}return es(e)};ts("node:fs");const os=k(import.meta.url),Ye=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,rs=e=>{if(typeof Ye<"u"&&Ye.versions&&Ye.versions.node){const[t,o]=Ye.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Ye.getBuiltinModule(e)}return os(e)};rs("node:fs/promises");const ss=k(import.meta.url),Je=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ns=e=>{if(typeof Je<"u"&&Je.versions&&Je.versions.node){const[t,o]=Je.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return Je.getBuiltinModule(e)}return ss(e)};ns("node:fs");const us=k(import.meta.url),et=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,St=e=>{if(typeof et<"u"&&et.versions&&et.versions.node){const[t,o]=et.versions.node.split(".").map(Number);if(t>22||t===22&&o>=3||t===20&&o>=16)return et.getBuiltinModule(e)}return us(e)},is=St("fs"),as=St("os"),ls=St("path");var At={},jt;function ps(){if(jt)return At;jt=1;var e=Object.defineProperty,t=(h,E)=>e(h,"name",{value:E,configurable:!0}),o=is,f=as,p=ls;const r=t(h=>{let E="";for(let C=0;C<h.length;C+=1){const T=h[C],L=T.toUpperCase();E+=T===L?T.toLowerCase():L}return E},"invertCase"),a=new Map,l=t((h,E)=>{const C=p.join(h,`.is-fs-case-sensitive-test-${process.pid}`);try{return E.writeFileSync(C,""),!E.existsSync(r(C))}finally{try{E.unlinkSync(C)}catch{}}},"checkDirectoryCaseWithWrite"),c=t((h,E,C)=>{try{return l(h,C)}catch(T){if(E===void 0)return l(f.tmpdir(),C);throw T}},"checkDirectoryCaseWithFallback"),x=t((h,E=o,C=!0)=>{const T=h??process.cwd();if(C&&a.has(T))return a.get(T);let L;const te=r(T);return te!==T&&E.existsSync(T)?L=!E.existsSync(te):L=c(T,h,E),C&&a.set(T,L),L},"isFsCaseSensitive");return At.isFsCaseSensitive=x,At}ps();const uo=e=>e instanceof URL?new URL(e).pathname:e,Xt=e=>{const t=ho();if($t==="win32"){const f=ot.LOCALAPPDATA??(t?se(t,"AppData","Local"):pt());return se(f,e,"Cache")}if($t==="darwin"){const f=t?se(t,"Library","Caches"):pt();return se(f,e)}const o=ot.XDG_CACHE_HOME??(t?se(t,".cache"):pt());return se(o,e)},cs=e=>{if(e.length===0)return;const t=e.map(r=>Vt(uo(r)).split(ct));let o=Number.POSITIVE_INFINITY;for(const r of t)r.length<o&&(o=r.length);const f=[];for(let r=0;r<o;r+=1){const a=t[0][r];if(t.every(l=>l[r]===a))f.push(a);else break}const p=f.join(ct);return p===""?ct:p},tt=(e,t)=>{if(e!==void 0)return t?(...o)=>se(e,...o):e},fs=e=>{if(e?.files&&e.files.length>0){const t=cs(e.files);if(t!==void 0)return t}return e?.cwd??bo()},gs=e=>new Lr(`No package.json found searching upwards from '${uo(e)}'.`),_t=e=>!Et(e,Qt)&&Et(e),hs=(e,t)=>{if(ot.CACHE_DIR&&!["0","1","false","true"].includes(ot.CACHE_DIR)){const l=se(ot.CACHE_DIR,e);return t?.create&&Te(l),tt(l,t?.thunk)}const o=fs(t),f=gr("package.json",{cwd:o,type:"file"});if(!f){if(t?.useGlobalCacheFallback){const l=Xt(e);return t.create&&Te(l),tt(l,t.thunk)}if(t?.throwError)throw gs(o);return}const p=se(Tt(f),"node_modules"),r=se(p,".cache"),a=se(r,e);if(Et(a,Qt))return t?.create&&Te(a),tt(a,t?.thunk);if(_t(a)||_t(r)||_t(p)){if(t?.useGlobalCacheFallback){const l=Xt(e);return t.create&&Te(l),tt(l,t.thunk)}return}return t?.create&&Te(a),tt(a,t?.thunk)},ms=hs,Kt="@inherit",ds=["aliases","dependsOn","inputs","outputs"],bs=(e,t)=>{if(t===void 0)return e===void 0?void 0:[...e];if(!t.includes(Kt))return[...t];const o=[];for(const f of t){if(f===Kt){e!==void 0&&o.push(...e);continue}o.push(f)}return o},vs=(e,t)=>{const o={...e,...t};for(const f of ds){const p=e?.[f],r=t?.[f],a=bs(p,r);a===void 0?delete o[f]:o[f]=a}return o};export{ms as R,vs as m};
|