docuvia 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ast-worker.js +1 -1
- package/dist/ast-worker.js.map +1 -1
- package/dist/chunk-BR2RIZZU.js +62 -0
- package/dist/chunk-BR2RIZZU.js.map +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QCEENSRK.js +0 -62
- package/dist/chunk-QCEENSRK.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
3
|
-
import{a as Zd,b as ep,d as qe,f as tp,g as rp,h as np}from"./chunk-QCEENSRK.js";import{A as Ap,B as Rp,C as Op,D as yp,E as El,F as Sl,G as Ip,H as Eo,I as Lp,J as Np,K as So,L as Cp,M as To,N as Ft,O as qr,P as Rr,a as op,b as fl,c as Pn,d as _o,e as ml,f as hl,g as Dn,h as sp,i as ap,j as lp,k as mt,l as Ar,m as cp,n as up,o as dp,p as pp,q as gp,r as _l,s as fp,t as Si,u as mp,v as hp,w as _p,x as Ep,y as Sp,z as Tp}from"./chunk-KZYHFZZS.js";import{a as ip,b as gl,c as m,d as g,e as Rt,g as Or}from"./chunk-EUTMBLVT.js";import{$ as Qd,A as ul,Aa as or,B as Fd,Ba as Ei,C as nr,Ca as j,D as fi,Da as Nn,E as ue,Ea as Cn,F as Er,Fa as Sr,G as Md,Ga as Tr,H as kd,I as Gd,J as xd,K as mi,L as Ud,M as Hd,N as Bd,O as Kd,P as Yd,Q as $d,R as Wd,S as at,T as hi,U as jd,V as Vd,W as zd,X as Jd,Y as qd,Z as ir,_ as ft,a as Ae,aa as oe,b as Dd,ba as $,c as fe,ca as Rn,da as fo,e as vd,ea as A,f as O,fa as Xd,g as S,h as y,i as E,j as R,k as T,l as At,m as ll,n as H,o as Je,p as hr,q as Re,r as rr,ra as dl,s as wt,sa as mo,t as wd,ta as _i,u as _r,ua as pl,v as je,va as On,w as cl,wa as yn,x as bd,xa as In,y as Jr,ya as Ln,z as bt,za as ho}from"./chunk-3WFKL5P6.js";import{a as ve,b as x,c as al}from"./chunk-KVOCOCYJ.js";var _g=x(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.splitWhen=kn.flatten=void 0;function jA(t){return t.reduce((e,r)=>[].concat(e,r),[])}kn.flatten=jA;function VA(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}kn.splitWhen=VA});var Eg=x(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.isEnoentCodeError=void 0;function zA(t){return t.code==="ENOENT"}Mo.isEnoentCodeError=zA});var Sg=x(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.createDirentFromStats=void 0;var Dl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function JA(t,e){return new Dl(t,e)}ko.createDirentFromStats=JA});var Og=x(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.convertPosixPathToPattern=Me.convertWindowsPathToPattern=Me.convertPathToPattern=Me.escapePosixPath=Me.escapeWindowsPath=Me.escape=Me.removeLeadingDotSegment=Me.makeAbsolute=Me.unixify=void 0;var qA=ve("os"),QA=ve("path"),Tg=qA.platform()==="win32",XA=2,ZA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,eR=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,tR=/^\\\\([.?])/,rR=/\\(?![!()+@[\]{}])/g;function nR(t){return t.replace(/\\/g,"/")}Me.unixify=nR;function iR(t,e){return QA.resolve(t,e)}Me.makeAbsolute=iR;function oR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(XA)}return t}Me.removeLeadingDotSegment=oR;Me.escape=Tg?vl:wl;function vl(t){return t.replace(eR,"\\$2")}Me.escapeWindowsPath=vl;function wl(t){return t.replace(ZA,"\\$2")}Me.escapePosixPath=wl;Me.convertPathToPattern=Tg?Ag:Rg;function Ag(t){return vl(t).replace(tR,"//$1").replace(rR,"/")}Me.convertWindowsPathToPattern=Ag;function Rg(t){return wl(t)}Me.convertPosixPathToPattern=Rg});var Ig=x((rx,yg)=>{"use strict";yg.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Cg=x((nx,Ng)=>{"use strict";var sR=Ig(),Lg={"{":"}","(":")","[":"]"},aR=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,o=-2,s=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(s===-1||s>n||(s=t.indexOf("\\",e),s===-1||s>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(s=t.indexOf("\\",e),s===-1||s>i))||o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(o=t.indexOf(")",e),o>e&&(s=t.indexOf("\\",e),s===-1||s>o))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(o=t.indexOf(")",r),o>r&&(s=t.indexOf("\\",r),s===-1||s>o))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=Lg[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},lR=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Lg[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Ng.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(sR(e))return!0;var n=aR;return r&&r.strict===!1&&(n=lR),n(e)}});var Dg=x((ix,Pg)=>{"use strict";var cR=Cg(),uR=ve("path").posix.dirname,dR=ve("os").platform()==="win32",bl="/",pR=/\\/g,gR=/[\{\[].*[\}\]]$/,fR=/(^|[^\\])([\{\[]|\([^\)]+$)/,mR=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Pg.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&dR&&e.indexOf(bl)<0&&(e=e.replace(pR,bl)),gR.test(e)&&(e+=bl),e+="a";do e=uR(e);while(cR(e)||fR.test(e));return e.replace(mR,"$1")}});var Go=x(yt=>{"use strict";yt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;yt.find=(t,e)=>t.nodes.find(r=>r.type===e);yt.exceedsLimit=(t,e,r=1,n)=>n===!1||!yt.isInteger(t)||!yt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;yt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};yt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;yt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;yt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;yt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);yt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let o=n[i];if(Array.isArray(o)){r(o);continue}o!==void 0&&e.push(o)}return e};return r(t),e}});var xo=x((sx,wg)=>{"use strict";var vg=Go();wg.exports=(t,e={})=>{let r=(n,i={})=>{let o=e.escapeInvalid&&vg.isInvalidBrace(i),s=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(o||s)&&vg.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(t)}});var Fg=x((ax,bg)=>{"use strict";bg.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Yg=x((lx,Kg)=>{"use strict";var Mg=Fg(),nn=(t,e,r)=>{if(Mg(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Mg(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),o=String(n.shorthand),s=String(n.capture),a=String(n.wrap),l=t+":"+e+"="+i+o+s+a;if(nn.cache.hasOwnProperty(l))return nn.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let _=t+"|"+e;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let p=Bg(t)||Bg(e),d={min:t,max:e,a:c,b:u},f=[],h=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),c<0){let _=u<0?Math.abs(u):1;h=kg(_,Math.abs(c),d,n),c=d.a=0}return u>=0&&(f=kg(c,u,d,n)),d.negatives=h,d.positives=f,d.result=hR(h,f,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&f.length+h.length>1&&(d.result=`(?:${d.result})`),nn.cache[l]=d,d.result};function hR(t,e,r){let n=Fl(t,e,"-",!1,r)||[],i=Fl(e,t,"",!1,r)||[],o=Fl(t,e,"-?",!0,r)||[];return n.concat(o).concat(i).join("|")}function _R(t,e){let r=1,n=1,i=xg(t,r),o=new Set([e]);for(;t<=i&&i<=e;)o.add(i),r+=1,i=xg(t,r);for(i=Ug(e+1,n)-1;t<i&&i<=e;)o.add(i),n+=1,i=Ug(e+1,n)-1;return o=[...o],o.sort(TR),o}function ER(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=SR(t,e),i=n.length,o="",s=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?o+=l:l!=="0"||c!=="9"?o+=AR(l,c,r):s++}return s&&(o+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[s],digits:i}}function kg(t,e,r,n){let i=_R(t,e),o=[],s=t,a;for(let l=0;l<i.length;l++){let c=i[l],u=ER(String(s),String(c),n),p="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+Hg(a.count),s=c+1;continue}r.isPadded&&(p=RR(c,r,n)),u.string=p+u.pattern+Hg(u.count),o.push(u),s=c+1,a=u}return o}function Fl(t,e,r,n,i){let o=[];for(let s of t){let{string:a}=s;!n&&!Gg(e,"string",a)&&o.push(r+a),n&&Gg(e,"string",a)&&o.push(r+a)}return o}function SR(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function TR(t,e){return t>e?1:e>t?-1:0}function Gg(t,e,r){return t.some(n=>n[e]===r)}function xg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Ug(t,e){return t-t%Math.pow(10,e)}function Hg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function AR(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Bg(t){return/^-?(0+)\d/.test(t)}function RR(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}nn.cache={};nn.clearCache=()=>nn.cache={};Kg.exports=nn});var Gl=x((cx,qg)=>{"use strict";var OR=ve("util"),Wg=Yg(),$g=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),yR=t=>e=>t===!0?Number(e):String(e),Ml=t=>typeof t=="number"||typeof t=="string"&&t!=="",vi=t=>Number.isInteger(+t),kl=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},IR=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,LR=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Ho=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},NR=(t,e,r)=>{t.negatives.sort((a,l)=>a<l?-1:a>l?1:0),t.positives.sort((a,l)=>a<l?-1:a>l?1:0);let n=e.capture?"":"?:",i="",o="",s;return t.positives.length&&(i=t.positives.map(a=>Ho(String(a),r)).join("|")),t.negatives.length&&(o=`-(${n}${t.negatives.map(a=>Ho(String(a),r)).join("|")})`),i&&o?s=`${i}|${o}`:s=i||o,e.wrap?`(${n}${s})`:s},jg=(t,e,r,n)=>{if(r)return Wg(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let o=String.fromCharCode(e);return`[${i}-${o}]`},Vg=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Wg(t,e,r)},zg=(...t)=>new RangeError("Invalid range arguments: "+OR.inspect(...t)),Jg=(t,e,r)=>{if(r.strictRanges===!0)throw zg([t,e]);return[]},CR=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},PR=(t,e,r=1,n={})=>{let i=Number(t),o=Number(e);if(!Number.isInteger(i)||!Number.isInteger(o)){if(n.strictRanges===!0)throw zg([t,e]);return[]}i===0&&(i=0),o===0&&(o=0);let s=i>o,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=kl(a)||kl(l)||kl(c),p=u?Math.max(a.length,l.length,c.length):0,d=u===!1&&IR(t,e,n)===!1,f=n.transform||yR(d);if(n.toRegex&&r===1)return jg(Ho(t,p),Ho(e,p),!0,n);let h={negatives:[],positives:[]},_=N=>h[N<0?"negatives":"positives"].push(Math.abs(N)),L=[],I=0;for(;s?i>=o:i<=o;)n.toRegex===!0&&r>1?_(i):L.push(LR(f(i,I),p,d)),i=s?i-r:i+r,I++;return n.toRegex===!0?r>1?NR(h,n,p):Vg(L,null,{wrap:!1,...n}):L},DR=(t,e,r=1,n={})=>{if(!vi(t)&&t.length>1||!vi(e)&&e.length>1)return Jg(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),o=`${t}`.charCodeAt(0),s=`${e}`.charCodeAt(0),a=o>s,l=Math.min(o,s),c=Math.max(o,s);if(n.toRegex&&r===1)return jg(l,c,!1,n);let u=[],p=0;for(;a?o>=s:o<=s;)u.push(i(o,p)),o=a?o-r:o+r,p++;return n.toRegex===!0?Vg(u,null,{wrap:!1,options:n}):u},Uo=(t,e,r,n={})=>{if(e==null&&Ml(t))return[t];if(!Ml(t)||!Ml(e))return Jg(t,e,n);if(typeof r=="function")return Uo(t,e,1,{transform:r});if($g(r))return Uo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,vi(r)?vi(t)&&vi(e)?PR(t,e,r,i):DR(t,e,Math.max(Math.abs(r),1),i):r!=null&&!$g(r)?CR(r,i):Uo(t,e,1,r)};qg.exports=Uo});var Zg=x((ux,Xg)=>{"use strict";var vR=Gl(),Qg=Go(),wR=(t,e={})=>{let r=(n,i={})=>{let o=Qg.isInvalidBrace(i),s=n.invalid===!0&&e.escapeInvalid===!0,a=o===!0||s===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return l+n.value;if(n.isClose===!0)return console.log("node.isClose",l,n.value),l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Qg.reduce(n.nodes),p=vR(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return u.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(t)};Xg.exports=wR});var rf=x((dx,tf)=>{"use strict";var bR=Gl(),ef=xo(),Gn=Go(),on=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Gn.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let o of i)n.push(on(o,e,r));else for(let o of e)r===!0&&typeof o=="string"&&(o=`{${o}}`),n.push(Array.isArray(o)?on(i,o,r):i+o);return Gn.flatten(n)},FR=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,o={})=>{i.queue=[];let s=o,a=o.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(i.invalid||i.dollar){a.push(on(a.pop(),ef(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(on(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let p=Gn.reduce(i.nodes);if(Gn.exceedsLimit(...p,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=bR(...p,e);d.length===0&&(d=ef(i,e)),a.push(on(a.pop(),d)),i.nodes=[];return}let l=Gn.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let p=0;p<i.nodes.length;p++){let d=i.nodes[p];if(d.type==="comma"&&i.type==="brace"){p===1&&c.push(""),c.push("");continue}if(d.type==="close"){a.push(on(a.pop(),c,l));continue}if(d.value&&d.type!=="open"){c.push(on(c.pop(),d.value));continue}d.nodes&&n(d,i)}return c};return Gn.flatten(n(t))};tf.exports=FR});var of=x((px,nf)=>{"use strict";nf.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
3
|
+
import{a as Zd,b as ep,d as qe,f as tp,g as rp,h as np}from"./chunk-BR2RIZZU.js";import{A as Ap,B as Rp,C as Op,D as yp,E as El,F as Sl,G as Ip,H as Eo,I as Lp,J as Np,K as So,L as Cp,M as To,N as Ft,O as qr,P as Rr,a as op,b as fl,c as Pn,d as _o,e as ml,f as hl,g as Dn,h as sp,i as ap,j as lp,k as mt,l as Ar,m as cp,n as up,o as dp,p as pp,q as gp,r as _l,s as fp,t as Si,u as mp,v as hp,w as _p,x as Ep,y as Sp,z as Tp}from"./chunk-KZYHFZZS.js";import{a as ip,b as gl,c as m,d as g,e as Rt,g as Or}from"./chunk-EUTMBLVT.js";import{$ as Qd,A as ul,Aa as or,B as Fd,Ba as Ei,C as nr,Ca as j,D as fi,Da as Nn,E as ue,Ea as Cn,F as Er,Fa as Sr,G as Md,Ga as Tr,H as kd,I as Gd,J as xd,K as mi,L as Ud,M as Hd,N as Bd,O as Kd,P as Yd,Q as $d,R as Wd,S as at,T as hi,U as jd,V as Vd,W as zd,X as Jd,Y as qd,Z as ir,_ as ft,a as Ae,aa as oe,b as Dd,ba as $,c as fe,ca as Rn,da as fo,e as vd,ea as A,f as O,fa as Xd,g as S,h as y,i as E,j as R,k as T,l as At,m as ll,n as H,o as Je,p as hr,q as Re,r as rr,ra as dl,s as wt,sa as mo,t as wd,ta as _i,u as _r,ua as pl,v as je,va as On,w as cl,wa as yn,x as bd,xa as In,y as Jr,ya as Ln,z as bt,za as ho}from"./chunk-3WFKL5P6.js";import{a as ve,b as x,c as al}from"./chunk-KVOCOCYJ.js";var _g=x(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.splitWhen=kn.flatten=void 0;function jA(t){return t.reduce((e,r)=>[].concat(e,r),[])}kn.flatten=jA;function VA(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}kn.splitWhen=VA});var Eg=x(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.isEnoentCodeError=void 0;function zA(t){return t.code==="ENOENT"}Mo.isEnoentCodeError=zA});var Sg=x(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.createDirentFromStats=void 0;var Dl=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function JA(t,e){return new Dl(t,e)}ko.createDirentFromStats=JA});var Og=x(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.convertPosixPathToPattern=Me.convertWindowsPathToPattern=Me.convertPathToPattern=Me.escapePosixPath=Me.escapeWindowsPath=Me.escape=Me.removeLeadingDotSegment=Me.makeAbsolute=Me.unixify=void 0;var qA=ve("os"),QA=ve("path"),Tg=qA.platform()==="win32",XA=2,ZA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,eR=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,tR=/^\\\\([.?])/,rR=/\\(?![!()+@[\]{}])/g;function nR(t){return t.replace(/\\/g,"/")}Me.unixify=nR;function iR(t,e){return QA.resolve(t,e)}Me.makeAbsolute=iR;function oR(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(XA)}return t}Me.removeLeadingDotSegment=oR;Me.escape=Tg?vl:wl;function vl(t){return t.replace(eR,"\\$2")}Me.escapeWindowsPath=vl;function wl(t){return t.replace(ZA,"\\$2")}Me.escapePosixPath=wl;Me.convertPathToPattern=Tg?Ag:Rg;function Ag(t){return vl(t).replace(tR,"//$1").replace(rR,"/")}Me.convertWindowsPathToPattern=Ag;function Rg(t){return wl(t)}Me.convertPosixPathToPattern=Rg});var Ig=x((rx,yg)=>{"use strict";yg.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var Cg=x((nx,Ng)=>{"use strict";var sR=Ig(),Lg={"{":"}","(":")","[":"]"},aR=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,o=-2,s=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(s===-1||s>n||(s=t.indexOf("\\",e),s===-1||s>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(s=t.indexOf("\\",e),s===-1||s>i))||o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(o=t.indexOf(")",e),o>e&&(s=t.indexOf("\\",e),s===-1||s>o))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(o=t.indexOf(")",r),o>r&&(s=t.indexOf("\\",r),s===-1||s>o))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var l=Lg[a];if(l){var c=t.indexOf(l,e);c!==-1&&(e=c+1)}if(t[e]==="!")return!0}else e++}return!1},lR=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=Lg[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};Ng.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(sR(e))return!0;var n=aR;return r&&r.strict===!1&&(n=lR),n(e)}});var Dg=x((ix,Pg)=>{"use strict";var cR=Cg(),uR=ve("path").posix.dirname,dR=ve("os").platform()==="win32",bl="/",pR=/\\/g,gR=/[\{\[].*[\}\]]$/,fR=/(^|[^\\])([\{\[]|\([^\)]+$)/,mR=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Pg.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&dR&&e.indexOf(bl)<0&&(e=e.replace(pR,bl)),gR.test(e)&&(e+=bl),e+="a";do e=uR(e);while(cR(e)||fR.test(e));return e.replace(mR,"$1")}});var Go=x(yt=>{"use strict";yt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;yt.find=(t,e)=>t.nodes.find(r=>r.type===e);yt.exceedsLimit=(t,e,r=1,n)=>n===!1||!yt.isInteger(t)||!yt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;yt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};yt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;yt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;yt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;yt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);yt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let o=n[i];if(Array.isArray(o)){r(o);continue}o!==void 0&&e.push(o)}return e};return r(t),e}});var xo=x((sx,wg)=>{"use strict";var vg=Go();wg.exports=(t,e={})=>{let r=(n,i={})=>{let o=e.escapeInvalid&&vg.isInvalidBrace(i),s=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(o||s)&&vg.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(t)}});var Fg=x((ax,bg)=>{"use strict";bg.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Yg=x((lx,Kg)=>{"use strict";var Mg=Fg(),nn=(t,e,r)=>{if(Mg(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Mg(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),o=String(n.shorthand),s=String(n.capture),a=String(n.wrap),l=t+":"+e+"="+i+o+s+a;if(nn.cache.hasOwnProperty(l))return nn.cache[l].result;let c=Math.min(t,e),u=Math.max(t,e);if(Math.abs(c-u)===1){let _=t+"|"+e;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let p=Bg(t)||Bg(e),d={min:t,max:e,a:c,b:u},f=[],h=[];if(p&&(d.isPadded=p,d.maxLen=String(d.max).length),c<0){let _=u<0?Math.abs(u):1;h=kg(_,Math.abs(c),d,n),c=d.a=0}return u>=0&&(f=kg(c,u,d,n)),d.negatives=h,d.positives=f,d.result=hR(h,f,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&f.length+h.length>1&&(d.result=`(?:${d.result})`),nn.cache[l]=d,d.result};function hR(t,e,r){let n=Fl(t,e,"-",!1,r)||[],i=Fl(e,t,"",!1,r)||[],o=Fl(t,e,"-?",!0,r)||[];return n.concat(o).concat(i).join("|")}function _R(t,e){let r=1,n=1,i=xg(t,r),o=new Set([e]);for(;t<=i&&i<=e;)o.add(i),r+=1,i=xg(t,r);for(i=Ug(e+1,n)-1;t<i&&i<=e;)o.add(i),n+=1,i=Ug(e+1,n)-1;return o=[...o],o.sort(TR),o}function ER(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=SR(t,e),i=n.length,o="",s=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?o+=l:l!=="0"||c!=="9"?o+=AR(l,c,r):s++}return s&&(o+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:o,count:[s],digits:i}}function kg(t,e,r,n){let i=_R(t,e),o=[],s=t,a;for(let l=0;l<i.length;l++){let c=i[l],u=ER(String(s),String(c),n),p="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+Hg(a.count),s=c+1;continue}r.isPadded&&(p=RR(c,r,n)),u.string=p+u.pattern+Hg(u.count),o.push(u),s=c+1,a=u}return o}function Fl(t,e,r,n,i){let o=[];for(let s of t){let{string:a}=s;!n&&!Gg(e,"string",a)&&o.push(r+a),n&&Gg(e,"string",a)&&o.push(r+a)}return o}function SR(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function TR(t,e){return t>e?1:e>t?-1:0}function Gg(t,e,r){return t.some(n=>n[e]===r)}function xg(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Ug(t,e){return t-t%Math.pow(10,e)}function Hg(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function AR(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Bg(t){return/^-?(0+)\d/.test(t)}function RR(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}nn.cache={};nn.clearCache=()=>nn.cache={};Kg.exports=nn});var Gl=x((cx,qg)=>{"use strict";var OR=ve("util"),Wg=Yg(),$g=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),yR=t=>e=>t===!0?Number(e):String(e),Ml=t=>typeof t=="number"||typeof t=="string"&&t!=="",vi=t=>Number.isInteger(+t),kl=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},IR=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,LR=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Ho=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},NR=(t,e,r)=>{t.negatives.sort((a,l)=>a<l?-1:a>l?1:0),t.positives.sort((a,l)=>a<l?-1:a>l?1:0);let n=e.capture?"":"?:",i="",o="",s;return t.positives.length&&(i=t.positives.map(a=>Ho(String(a),r)).join("|")),t.negatives.length&&(o=`-(${n}${t.negatives.map(a=>Ho(String(a),r)).join("|")})`),i&&o?s=`${i}|${o}`:s=i||o,e.wrap?`(${n}${s})`:s},jg=(t,e,r,n)=>{if(r)return Wg(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let o=String.fromCharCode(e);return`[${i}-${o}]`},Vg=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return Wg(t,e,r)},zg=(...t)=>new RangeError("Invalid range arguments: "+OR.inspect(...t)),Jg=(t,e,r)=>{if(r.strictRanges===!0)throw zg([t,e]);return[]},CR=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},PR=(t,e,r=1,n={})=>{let i=Number(t),o=Number(e);if(!Number.isInteger(i)||!Number.isInteger(o)){if(n.strictRanges===!0)throw zg([t,e]);return[]}i===0&&(i=0),o===0&&(o=0);let s=i>o,a=String(t),l=String(e),c=String(r);r=Math.max(Math.abs(r),1);let u=kl(a)||kl(l)||kl(c),p=u?Math.max(a.length,l.length,c.length):0,d=u===!1&&IR(t,e,n)===!1,f=n.transform||yR(d);if(n.toRegex&&r===1)return jg(Ho(t,p),Ho(e,p),!0,n);let h={negatives:[],positives:[]},_=N=>h[N<0?"negatives":"positives"].push(Math.abs(N)),L=[],I=0;for(;s?i>=o:i<=o;)n.toRegex===!0&&r>1?_(i):L.push(LR(f(i,I),p,d)),i=s?i-r:i+r,I++;return n.toRegex===!0?r>1?NR(h,n,p):Vg(L,null,{wrap:!1,...n}):L},DR=(t,e,r=1,n={})=>{if(!vi(t)&&t.length>1||!vi(e)&&e.length>1)return Jg(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),o=`${t}`.charCodeAt(0),s=`${e}`.charCodeAt(0),a=o>s,l=Math.min(o,s),c=Math.max(o,s);if(n.toRegex&&r===1)return jg(l,c,!1,n);let u=[],p=0;for(;a?o>=s:o<=s;)u.push(i(o,p)),o=a?o-r:o+r,p++;return n.toRegex===!0?Vg(u,null,{wrap:!1,options:n}):u},Uo=(t,e,r,n={})=>{if(e==null&&Ml(t))return[t];if(!Ml(t)||!Ml(e))return Jg(t,e,n);if(typeof r=="function")return Uo(t,e,1,{transform:r});if($g(r))return Uo(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,vi(r)?vi(t)&&vi(e)?PR(t,e,r,i):DR(t,e,Math.max(Math.abs(r),1),i):r!=null&&!$g(r)?CR(r,i):Uo(t,e,1,r)};qg.exports=Uo});var Zg=x((ux,Xg)=>{"use strict";var vR=Gl(),Qg=Go(),wR=(t,e={})=>{let r=(n,i={})=>{let o=Qg.isInvalidBrace(i),s=n.invalid===!0&&e.escapeInvalid===!0,a=o===!0||s===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return l+n.value;if(n.isClose===!0)return console.log("node.isClose",l,n.value),l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Qg.reduce(n.nodes),p=vR(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return u.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(t)};Xg.exports=wR});var rf=x((dx,tf)=>{"use strict";var bR=Gl(),ef=xo(),Gn=Go(),on=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Gn.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let o of i)n.push(on(o,e,r));else for(let o of e)r===!0&&typeof o=="string"&&(o=`{${o}}`),n.push(Array.isArray(o)?on(i,o,r):i+o);return Gn.flatten(n)},FR=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,o={})=>{i.queue=[];let s=o,a=o.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(i.invalid||i.dollar){a.push(on(a.pop(),ef(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(on(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let p=Gn.reduce(i.nodes);if(Gn.exceedsLimit(...p,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=bR(...p,e);d.length===0&&(d=ef(i,e)),a.push(on(a.pop(),d)),i.nodes=[];return}let l=Gn.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let p=0;p<i.nodes.length;p++){let d=i.nodes[p];if(d.type==="comma"&&i.type==="brace"){p===1&&c.push(""),c.push("");continue}if(d.type==="close"){a.push(on(a.pop(),c,l));continue}if(d.value&&d.type!=="open"){c.push(on(c.pop(),d.value));continue}d.nodes&&n(d,i)}return c};return Gn.flatten(n(t))};tf.exports=FR});var of=x((px,nf)=>{"use strict";nf.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
4
4
|
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var uf=x((gx,cf)=>{"use strict";var MR=xo(),{MAX_LENGTH:sf,CHAR_BACKSLASH:xl,CHAR_BACKTICK:kR,CHAR_COMMA:GR,CHAR_DOT:xR,CHAR_LEFT_PARENTHESES:UR,CHAR_RIGHT_PARENTHESES:HR,CHAR_LEFT_CURLY_BRACE:BR,CHAR_RIGHT_CURLY_BRACE:KR,CHAR_LEFT_SQUARE_BRACKET:af,CHAR_RIGHT_SQUARE_BRACKET:lf,CHAR_DOUBLE_QUOTE:YR,CHAR_SINGLE_QUOTE:$R,CHAR_NO_BREAK_SPACE:WR,CHAR_ZERO_WIDTH_NOBREAK_SPACE:jR}=of(),VR=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(sf,r.maxLength):sf;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},o=[i],s=i,a=i,l=0,c=t.length,u=0,p=0,d,f=()=>t[u++],h=_=>{if(_.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&_.type==="text"){a.value+=_.value;return}return s.nodes.push(_),_.parent=s,_.prev=a,a=_,_};for(h({type:"bos"});u<c;)if(s=o[o.length-1],d=f(),!(d===jR||d===WR)){if(d===xl){h({type:"text",value:(e.keepEscaping?d:"")+f()});continue}if(d===lf){h({type:"text",value:"\\"+d});continue}if(d===af){l++;let _;for(;u<c&&(_=f());){if(d+=_,_===af){l++;continue}if(_===xl){d+=f();continue}if(_===lf&&(l--,l===0))break}h({type:"text",value:d});continue}if(d===UR){s=h({type:"paren",nodes:[]}),o.push(s),h({type:"text",value:d});continue}if(d===HR){if(s.type!=="paren"){h({type:"text",value:d});continue}s=o.pop(),h({type:"text",value:d}),s=o[o.length-1];continue}if(d===YR||d===$R||d===kR){let _=d,L;for(e.keepQuotes!==!0&&(d="");u<c&&(L=f());){if(L===xl){d+=L+f();continue}if(L===_){e.keepQuotes===!0&&(d+=L);break}d+=L}h({type:"text",value:d});continue}if(d===BR){p++;let L={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};s=h(L),o.push(s),h({type:"open",value:d});continue}if(d===KR){if(s.type!=="brace"){h({type:"text",value:d});continue}let _="close";s=o.pop(),s.close=!0,h({type:_,value:d}),p--,s=o[o.length-1];continue}if(d===GR&&p>0){if(s.ranges>0){s.ranges=0;let _=s.nodes.shift();s.nodes=[_,{type:"text",value:MR(s)}]}h({type:"comma",value:d}),s.commas++;continue}if(d===xR&&p>0&&s.commas===0){let _=s.nodes;if(p===0||_.length===0){h({type:"text",value:d});continue}if(a.type==="dot"){if(s.range=[],a.value+=d,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){_.pop();let L=_[_.length-1];L.value+=a.value+d,a=L,s.ranges--;continue}h({type:"dot",value:d});continue}h({type:"text",value:d})}do if(s=o.pop(),s.type!=="root"){s.nodes.forEach(I=>{I.nodes||(I.type==="open"&&(I.isOpen=!0),I.type==="close"&&(I.isClose=!0),I.nodes||(I.type="text"),I.invalid=!0)});let _=o[o.length-1],L=_.nodes.indexOf(s);_.nodes.splice(L,1,...s.nodes)}while(o.length>0);return h({type:"eos"}),i};cf.exports=VR});var gf=x((fx,pf)=>{"use strict";var df=xo(),zR=Zg(),JR=rf(),qR=uf(),Et=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=Et.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Et.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};Et.parse=(t,e={})=>qR(t,e);Et.stringify=(t,e={})=>df(typeof t=="string"?Et.parse(t,e):t,e);Et.compile=(t,e={})=>(typeof t=="string"&&(t=Et.parse(t,e)),zR(t,e));Et.expand=(t,e={})=>{typeof t=="string"&&(t=Et.parse(t,e));let r=JR(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};Et.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Et.compile(t,e):Et.expand(t,e);pf.exports=Et});var wi=x((mx,Ef)=>{"use strict";var QR=ve("path"),Jt="\\\\/",ff=`[^${Jt}]`,XR=0,ar="\\.",ZR="\\+",eO="\\?",Bo="\\/",tO="(?=.)",mf="[^/]",Ul=`(?:${Bo}|$)`,hf=`(?:^|${Bo})`,Hl=`${ar}{1,2}${Ul}`,rO=`(?!${ar})`,nO=`(?!${hf}${Hl})`,iO=`(?!${ar}{0,1}${Ul})`,oO=`(?!${Hl})`,sO=`[^.${Bo}]`,aO=`${mf}*?`,_f={DOT_LITERAL:ar,PLUS_LITERAL:ZR,QMARK_LITERAL:eO,SLASH_LITERAL:Bo,ONE_CHAR:tO,QMARK:mf,END_ANCHOR:Ul,DOTS_SLASH:Hl,NO_DOT:rO,NO_DOTS:nO,NO_DOT_SLASH:iO,NO_DOTS_SLASH:oO,QMARK_NO_DOT:sO,STAR:aO,START_ANCHOR:hf},lO={..._f,SLASH_LITERAL:`[${Jt}]`,QMARK:ff,STAR:`${ff}*?`,DOTS_SLASH:`${ar}{1,2}(?:[${Jt}]|$)`,NO_DOT:`(?!${ar})`,NO_DOTS:`(?!(?:^|[${Jt}])${ar}{1,2}(?:[${Jt}]|$))`,NO_DOT_SLASH:`(?!${ar}{0,1}(?:[${Jt}]|$))`,NO_DOTS_SLASH:`(?!${ar}{1,2}(?:[${Jt}]|$))`,QMARK_NO_DOT:`[^.${Jt}]`,START_ANCHOR:`(?:^|[${Jt}])`,END_ANCHOR:`(?:[${Jt}]|$)`},cO={__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"};Ef.exports={DEFAULT_MAX_EXTGLOB_RECURSION:XR,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:cO,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,SEP:QR.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?lO:_f}}});var bi=x(ct=>{"use strict";var uO=ve("path"),dO=process.platform==="win32",{REGEX_BACKSLASH:pO,REGEX_REMOVE_BACKSLASH:gO,REGEX_SPECIAL_CHARS:fO,REGEX_SPECIAL_CHARS_GLOBAL:mO}=wi();ct.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);ct.hasRegexChars=t=>fO.test(t);ct.isRegexChar=t=>t.length===1&&ct.hasRegexChars(t);ct.escapeRegex=t=>t.replace(mO,"\\$1");ct.toPosixSlashes=t=>t.replace(pO,"/");ct.removeBackslashes=t=>t.replace(gO,e=>e==="\\"?"":e);ct.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};ct.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:dO===!0||uO.sep==="\\";ct.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?ct.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};ct.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};ct.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",o=`${n}(?:${t})${i}`;return e.negated===!0&&(o=`(?:^(?!${o}).*$)`),o}});var Lf=x((_x,If)=>{"use strict";var Sf=bi(),{CHAR_ASTERISK:Bl,CHAR_AT:hO,CHAR_BACKWARD_SLASH:Fi,CHAR_COMMA:_O,CHAR_DOT:Kl,CHAR_EXCLAMATION_MARK:Yl,CHAR_FORWARD_SLASH:yf,CHAR_LEFT_CURLY_BRACE:$l,CHAR_LEFT_PARENTHESES:Wl,CHAR_LEFT_SQUARE_BRACKET:EO,CHAR_PLUS:SO,CHAR_QUESTION_MARK:Tf,CHAR_RIGHT_CURLY_BRACE:TO,CHAR_RIGHT_PARENTHESES:Af,CHAR_RIGHT_SQUARE_BRACKET:AO}=wi(),Rf=t=>t===yf||t===Fi,Of=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},RO=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,o=[],s=[],a=[],l=t,c=-1,u=0,p=0,d=!1,f=!1,h=!1,_=!1,L=!1,I=!1,N=!1,b=!1,J=!1,X=!1,B=0,q,M,te={value:"",depth:0,isGlob:!1},he=()=>c>=n,C=()=>l.charCodeAt(c+1),Le=()=>(q=M,l.charCodeAt(++c));for(;c<n;){M=Le();let it;if(M===Fi){N=te.backslashes=!0,M=Le(),M===$l&&(I=!0);continue}if(I===!0||M===$l){for(B++;he()!==!0&&(M=Le());){if(M===Fi){N=te.backslashes=!0,Le();continue}if(M===$l){B++;continue}if(I!==!0&&M===Kl&&(M=Le())===Kl){if(d=te.isBrace=!0,h=te.isGlob=!0,X=!0,i===!0)continue;break}if(I!==!0&&M===_O){if(d=te.isBrace=!0,h=te.isGlob=!0,X=!0,i===!0)continue;break}if(M===TO&&(B--,B===0)){I=!1,d=te.isBrace=!0,X=!0;break}}if(i===!0)continue;break}if(M===yf){if(o.push(c),s.push(te),te={value:"",depth:0,isGlob:!1},X===!0)continue;if(q===Kl&&c===u+1){u+=2;continue}p=c+1;continue}if(r.noext!==!0&&(M===SO||M===hO||M===Bl||M===Tf||M===Yl)===!0&&C()===Wl){if(h=te.isGlob=!0,_=te.isExtglob=!0,X=!0,M===Yl&&c===u&&(J=!0),i===!0){for(;he()!==!0&&(M=Le());){if(M===Fi){N=te.backslashes=!0,M=Le();continue}if(M===Af){h=te.isGlob=!0,X=!0;break}}continue}break}if(M===Bl){if(q===Bl&&(L=te.isGlobstar=!0),h=te.isGlob=!0,X=!0,i===!0)continue;break}if(M===Tf){if(h=te.isGlob=!0,X=!0,i===!0)continue;break}if(M===EO){for(;he()!==!0&&(it=Le());){if(it===Fi){N=te.backslashes=!0,Le();continue}if(it===AO){f=te.isBracket=!0,h=te.isGlob=!0,X=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&M===Yl&&c===u){b=te.negated=!0,u++;continue}if(r.noparen!==!0&&M===Wl){if(h=te.isGlob=!0,i===!0){for(;he()!==!0&&(M=Le());){if(M===Wl){N=te.backslashes=!0,M=Le();continue}if(M===Af){X=!0;break}}continue}break}if(h===!0){if(X=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,h=!1);let Oe=l,fr="",P="";u>0&&(fr=l.slice(0,u),l=l.slice(u),p-=u),Oe&&h===!0&&p>0?(Oe=l.slice(0,p),P=l.slice(p)):h===!0?(Oe="",P=l):Oe=l,Oe&&Oe!==""&&Oe!=="/"&&Oe!==l&&Rf(Oe.charCodeAt(Oe.length-1))&&(Oe=Oe.slice(0,-1)),r.unescape===!0&&(P&&(P=Sf.removeBackslashes(P)),Oe&&N===!0&&(Oe=Sf.removeBackslashes(Oe)));let D={prefix:fr,input:t,start:u,base:Oe,glob:P,isBrace:d,isBracket:f,isGlob:h,isExtglob:_,isGlobstar:L,negated:b,negatedExtglob:J};if(r.tokens===!0&&(D.maxDepth=0,Rf(M)||s.push(te),D.tokens=s),r.parts===!0||r.tokens===!0){let it;for(let ge=0;ge<o.length;ge++){let $t=it?it+1:u,Wt=o[ge],gt=t.slice($t,Wt);r.tokens&&(ge===0&&u!==0?(s[ge].isPrefix=!0,s[ge].value=fr):s[ge].value=gt,Of(s[ge]),D.maxDepth+=s[ge].depth),(ge!==0||gt!=="")&&a.push(gt),it=Wt}if(it&&it+1<t.length){let ge=t.slice(it+1);a.push(ge),r.tokens&&(s[s.length-1].value=ge,Of(s[s.length-1]),D.maxDepth+=s[s.length-1].depth)}D.slashes=o,D.parts=a}return D};If.exports=RO});var vf=x((Ex,Df)=>{"use strict";var Mi=wi(),Qe=bi(),{MAX_LENGTH:Ko,POSIX_REGEX_SOURCE:OO,REGEX_NON_SPECIAL_CHARS:yO,REGEX_SPECIAL_CHARS_BACKREF:IO,REPLACEMENTS:Nf}=Mi,LO=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Qe.escapeRegex(i)).join("..")}return r},xn=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Cf=t=>{let e=[],r=0,n=0,i=0,o="",s=!1;for(let a of t){if(s===!0){o+=a,s=!1;continue}if(a==="\\"){o+=a,s=!0;continue}if(a==='"'){i=i===1?0:1,o+=a;continue}if(i===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){e.push(o),o="";continue}}}o+=a}return e.push(o),e},NO=t=>{let e=!1;for(let r of t){if(e===!0){e=!1;continue}if(r==="\\"){e=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Pf=t=>{let e=t.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),r=!0);if(NO(e))return e.replace(/\\(.)/g,"$1")},CO=t=>{let e=t.map(Pf).filter(Boolean);for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++){let i=e[r],o=e[n],s=i[0];if(!(!s||i!==s.repeat(i.length)||o!==s.repeat(o.length))&&(i===o||i.startsWith(o)||o.startsWith(i)))return!0}return!1},jl=(t,e=!0)=>{if(t[0]!=="+"&&t[0]!=="*"||t[1]!=="(")return;let r=0,n=0,i=0,o=!1;for(let s=1;s<t.length;s++){let a=t[s];if(o===!0){o=!1;continue}if(a==="\\"){o=!0;continue}if(a==='"'){i=i===1?0:1;continue}if(i!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return e===!0&&s!==t.length-1?void 0:{type:t[0],body:t.slice(2,s),end:s}}}}},PO=t=>{let e=0,r=[];for(;e<t.length;){let i=jl(t.slice(e),!1);if(!i||i.type!=="*")return;let o=Cf(i.body).map(a=>a.trim());if(o.length!==1)return;let s=Pf(o[0]);if(!s||s.length!==1)return;r.push(s),e+=i.end+1}return r.length<1?void 0:`${r.length===1?Qe.escapeRegex(r[0]):`[${r.map(i=>Qe.escapeRegex(i)).join("")}]`}*`},DO=t=>{let e=0,r=t.trim(),n=jl(r);for(;n;)e++,r=n.body.trim(),n=jl(r);return e},vO=(t,e)=>{if(e.maxExtglobRecursion===!1)return{risky:!1};let r=typeof e.maxExtglobRecursion=="number"?e.maxExtglobRecursion:Mi.DEFAULT_MAX_EXTGLOB_RECURSION,n=Cf(t).map(i=>i.trim());if(n.length>1&&(n.some(i=>i==="")||n.some(i=>/^[*?]+$/.test(i))||CO(n)))return{risky:!0};for(let i of n){let o=PO(i);if(o)return{risky:!0,safeOutput:o};if(DO(i)>r)return{risky:!0}}return{risky:!1}},Vl=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Nf[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(Ko,r.maxLength):Ko,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let o={type:"bos",value:"",output:r.prepend||""},s=[o],a=r.capture?"":"?:",l=Qe.isWindows(e),c=Mi.globChars(l),u=Mi.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:_,NO_DOT:L,NO_DOT_SLASH:I,NO_DOTS_SLASH:N,QMARK:b,QMARK_NO_DOT:J,STAR:X,START_ANCHOR:B}=c,q=G=>`(${a}(?:(?!${B}${G.dot?_:p}).)*?)`,M=r.dot?"":L,te=r.dot?b:J,he=r.bash===!0?q(r):X;r.capture&&(he=`(${he})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let C={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};t=Qe.removePrefix(t,C),i=t.length;let Le=[],Oe=[],fr=[],P=o,D,it=()=>C.index===i-1,ge=C.peek=(G=1)=>t[C.index+G],$t=C.advance=()=>t[++C.index]||"",Wt=()=>t.slice(C.index+1),gt=(G="",Ne=0)=>{C.consumed+=G,C.index+=Ne},uo=G=>{C.output+=G.output!=null?G.output:G.value,gt(G.value)},mT=()=>{let G=1;for(;ge()==="!"&&(ge(2)!=="("||ge(3)==="?");)$t(),C.start++,G++;return G%2===0?!1:(C.negated=!0,C.start++,!0)},po=G=>{C[G]++,fr.push(G)},mr=G=>{C[G]--,fr.pop()},le=G=>{if(P.type==="globstar"){let Ne=C.braces>0&&(G.type==="comma"||G.type==="brace"),k=G.extglob===!0||Le.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!Ne&&!k&&(C.output=C.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=he,C.output+=P.output)}if(Le.length&&G.type!=="paren"&&(Le[Le.length-1].inner+=G.value),(G.value||G.output)&&uo(G),P&&P.type==="text"&&G.type==="text"){P.value+=G.value,P.output=(P.output||"")+G.value;return}G.prev=P,s.push(G),P=G},go=(G,Ne)=>{let k={...u[Ne],conditions:1,inner:""};k.prev=P,k.parens=C.parens,k.output=C.output,k.startIndex=C.index,k.tokensIndex=s.length;let ae=(r.capture?"(":"")+k.open;po("parens"),le({type:G,value:Ne,output:C.output?"":h}),le({type:"paren",extglob:!0,value:$t(),output:ae}),Le.push(k)},hT=G=>{let Ne=t.slice(G.startIndex,C.index+1),k=t.slice(G.startIndex+2,C.index),ae=vO(k,r);if((G.type==="plus"||G.type==="star")&&ae.risky){let Te=ae.safeOutput?(G.output?"":h)+(r.capture?`(${ae.safeOutput})`:ae.safeOutput):void 0,jt=s[G.tokensIndex];jt.type="text",jt.value=Ne,jt.output=Te||Qe.escapeRegex(Ne);for(let Vt=G.tokensIndex+1;Vt<s.length;Vt++)s[Vt].value="",s[Vt].output="",delete s[Vt].suffix;C.output=G.output+jt.output,C.backtrack=!0,le({type:"paren",extglob:!0,value:D,output:""}),mr("parens");return}let ye=G.close+(r.capture?")":""),Ue;if(G.type==="negate"){let Te=he;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(Te=q(r)),(Te!==he||it()||/^\)+$/.test(Wt()))&&(ye=G.close=`)$))${Te}`),G.inner.includes("*")&&(Ue=Wt())&&/^\.[^\\/.]+$/.test(Ue)){let jt=Vl(Ue,{...e,fastpaths:!1}).output;ye=G.close=`)${jt})${Te})`}G.prev.type==="bos"&&(C.negatedExtglob=!0)}le({type:"paren",extglob:!0,value:D,output:ye}),mr("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let G=!1,Ne=t.replace(IO,(k,ae,ye,Ue,Te,jt)=>Ue==="\\"?(G=!0,k):Ue==="?"?ae?ae+Ue+(Te?b.repeat(Te.length):""):jt===0?te+(Te?b.repeat(Te.length):""):b.repeat(ye.length):Ue==="."?p.repeat(ye.length):Ue==="*"?ae?ae+Ue+(Te?he:""):he:ae?k:`\\${k}`);return G===!0&&(r.unescape===!0?Ne=Ne.replace(/\\/g,""):Ne=Ne.replace(/\\+/g,k=>k.length%2===0?"\\\\":k?"\\":"")),Ne===t&&r.contains===!0?(C.output=t,C):(C.output=Qe.wrapOutput(Ne,C,e),C)}for(;!it();){if(D=$t(),D==="\0")continue;if(D==="\\"){let k=ge();if(k==="/"&&r.bash!==!0||k==="."||k===";")continue;if(!k){D+="\\",le({type:"text",value:D});continue}let ae=/^\\+/.exec(Wt()),ye=0;if(ae&&ae[0].length>2&&(ye=ae[0].length,C.index+=ye,ye%2!==0&&(D+="\\")),r.unescape===!0?D=$t():D+=$t(),C.brackets===0){le({type:"text",value:D});continue}}if(C.brackets>0&&(D!=="]"||P.value==="["||P.value==="[^")){if(r.posix!==!1&&D===":"){let k=P.value.slice(1);if(k.includes("[")&&(P.posix=!0,k.includes(":"))){let ae=P.value.lastIndexOf("["),ye=P.value.slice(0,ae),Ue=P.value.slice(ae+2),Te=OO[Ue];if(Te){P.value=ye+Te,C.backtrack=!0,$t(),!o.output&&s.indexOf(P)===1&&(o.output=h);continue}}}(D==="["&&ge()!==":"||D==="-"&&ge()==="]")&&(D=`\\${D}`),D==="]"&&(P.value==="["||P.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&P.value==="["&&(D="^"),P.value+=D,uo({value:D});continue}if(C.quotes===1&&D!=='"'){D=Qe.escapeRegex(D),P.value+=D,uo({value:D});continue}if(D==='"'){C.quotes=C.quotes===1?0:1,r.keepQuotes===!0&&le({type:"text",value:D});continue}if(D==="("){po("parens"),le({type:"paren",value:D});continue}if(D===")"){if(C.parens===0&&r.strictBrackets===!0)throw new SyntaxError(xn("opening","("));let k=Le[Le.length-1];if(k&&C.parens===k.parens+1){hT(Le.pop());continue}le({type:"paren",value:D,output:C.parens?")":"\\)"}),mr("parens");continue}if(D==="["){if(r.nobracket===!0||!Wt().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));D=`\\${D}`}else po("brackets");le({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){le({type:"text",value:D,output:`\\${D}`});continue}if(C.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(xn("opening","["));le({type:"text",value:D,output:`\\${D}`});continue}mr("brackets");let k=P.value.slice(1);if(P.posix!==!0&&k[0]==="^"&&!k.includes("/")&&(D=`/${D}`),P.value+=D,uo({value:D}),r.literalBrackets===!1||Qe.hasRegexChars(k))continue;let ae=Qe.escapeRegex(P.value);if(C.output=C.output.slice(0,-P.value.length),r.literalBrackets===!0){C.output+=ae,P.value=ae;continue}P.value=`(${a}${ae}|${P.value})`,C.output+=P.value;continue}if(D==="{"&&r.nobrace!==!0){po("braces");let k={type:"brace",value:D,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};Oe.push(k),le(k);continue}if(D==="}"){let k=Oe[Oe.length-1];if(r.nobrace===!0||!k){le({type:"text",value:D,output:D});continue}let ae=")";if(k.dots===!0){let ye=s.slice(),Ue=[];for(let Te=ye.length-1;Te>=0&&(s.pop(),ye[Te].type!=="brace");Te--)ye[Te].type!=="dots"&&Ue.unshift(ye[Te].value);ae=LO(Ue,r),C.backtrack=!0}if(k.comma!==!0&&k.dots!==!0){let ye=C.output.slice(0,k.outputIndex),Ue=C.tokens.slice(k.tokensIndex);k.value=k.output="\\{",D=ae="\\}",C.output=ye;for(let Te of Ue)C.output+=Te.output||Te.value}le({type:"brace",value:D,output:ae}),mr("braces"),Oe.pop();continue}if(D==="|"){Le.length>0&&Le[Le.length-1].conditions++,le({type:"text",value:D});continue}if(D===","){let k=D,ae=Oe[Oe.length-1];ae&&fr[fr.length-1]==="braces"&&(ae.comma=!0,k="|"),le({type:"comma",value:D,output:k});continue}if(D==="/"){if(P.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",s.pop(),P=o;continue}le({type:"slash",value:D,output:f});continue}if(D==="."){if(C.braces>0&&P.type==="dot"){P.value==="."&&(P.output=p);let k=Oe[Oe.length-1];P.type="dots",P.output+=D,P.value+=D,k.dots=!0;continue}if(C.braces+C.parens===0&&P.type!=="bos"&&P.type!=="slash"){le({type:"text",value:D,output:p});continue}le({type:"dot",value:D,output:p});continue}if(D==="?"){if(!(P&&P.value==="(")&&r.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){go("qmark",D);continue}if(P&&P.type==="paren"){let ae=ge(),ye=D;if(ae==="<"&&!Qe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(ae)||ae==="<"&&!/<([!=]|\w+>)/.test(Wt()))&&(ye=`\\${D}`),le({type:"text",value:D,output:ye});continue}if(r.dot!==!0&&(P.type==="slash"||P.type==="bos")){le({type:"qmark",value:D,output:J});continue}le({type:"qmark",value:D,output:b});continue}if(D==="!"){if(r.noextglob!==!0&&ge()==="("&&(ge(2)!=="?"||!/[!=<:]/.test(ge(3)))){go("negate",D);continue}if(r.nonegate!==!0&&C.index===0){mT();continue}}if(D==="+"){if(r.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){go("plus",D);continue}if(P&&P.value==="("||r.regex===!1){le({type:"plus",value:D,output:d});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||C.parens>0){le({type:"plus",value:D});continue}le({type:"plus",value:d});continue}if(D==="@"){if(r.noextglob!==!0&&ge()==="("&&ge(2)!=="?"){le({type:"at",extglob:!0,value:D,output:""});continue}le({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let k=yO.exec(Wt());k&&(D+=k[0],C.index+=k[0].length),le({type:"text",value:D});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=D,P.output=he,C.backtrack=!0,C.globstar=!0,gt(D);continue}let G=Wt();if(r.noextglob!==!0&&/^\([^?]/.test(G)){go("star",D);continue}if(P.type==="star"){if(r.noglobstar===!0){gt(D);continue}let k=P.prev,ae=k.prev,ye=k.type==="slash"||k.type==="bos",Ue=ae&&(ae.type==="star"||ae.type==="globstar");if(r.bash===!0&&(!ye||G[0]&&G[0]!=="/")){le({type:"star",value:D,output:""});continue}let Te=C.braces>0&&(k.type==="comma"||k.type==="brace"),jt=Le.length&&(k.type==="pipe"||k.type==="paren");if(!ye&&k.type!=="paren"&&!Te&&!jt){le({type:"star",value:D,output:""});continue}for(;G.slice(0,3)==="/**";){let Vt=t[C.index+4];if(Vt&&Vt!=="/")break;G=G.slice(3),gt("/**",3)}if(k.type==="bos"&&it()){P.type="globstar",P.value+=D,P.output=q(r),C.output=P.output,C.globstar=!0,gt(D);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&!Ue&&it()){C.output=C.output.slice(0,-(k.output+P.output).length),k.output=`(?:${k.output}`,P.type="globstar",P.output=q(r)+(r.strictSlashes?")":"|$)"),P.value+=D,C.globstar=!0,C.output+=k.output+P.output,gt(D);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&G[0]==="/"){let Vt=G[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(k.output+P.output).length),k.output=`(?:${k.output}`,P.type="globstar",P.output=`${q(r)}${f}|${f}${Vt})`,P.value+=D,C.output+=k.output+P.output,C.globstar=!0,gt(D+$t()),le({type:"slash",value:"/",output:""});continue}if(k.type==="bos"&&G[0]==="/"){P.type="globstar",P.value+=D,P.output=`(?:^|${f}|${q(r)}${f})`,C.output=P.output,C.globstar=!0,gt(D+$t()),le({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-P.output.length),P.type="globstar",P.output=q(r),P.value+=D,C.output+=P.output,C.globstar=!0,gt(D);continue}let Ne={type:"star",value:D,output:he};if(r.bash===!0){Ne.output=".*?",(P.type==="bos"||P.type==="slash")&&(Ne.output=M+Ne.output),le(Ne);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&r.regex===!0){Ne.output=D,le(Ne);continue}(C.index===C.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(C.output+=I,P.output+=I):r.dot===!0?(C.output+=N,P.output+=N):(C.output+=M,P.output+=M),ge()!=="*"&&(C.output+=h,P.output+=h)),le(Ne)}for(;C.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","]"));C.output=Qe.escapeLast(C.output,"["),mr("brackets")}for(;C.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing",")"));C.output=Qe.escapeLast(C.output,"("),mr("parens")}for(;C.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(xn("closing","}"));C.output=Qe.escapeLast(C.output,"{"),mr("braces")}if(r.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&le({type:"maybe_slash",value:"",output:`${f}?`}),C.backtrack===!0){C.output="";for(let G of C.tokens)C.output+=G.output!=null?G.output:G.value,G.suffix&&(C.output+=G.suffix)}return C};Vl.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(Ko,r.maxLength):Ko,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=Nf[t]||t;let o=Qe.isWindows(e),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:f,START_ANCHOR:h}=Mi.globChars(o),_=r.dot?p:u,L=r.dot?d:u,I=r.capture?"":"?:",N={negated:!1,prefix:""},b=r.bash===!0?".*?":f;r.capture&&(b=`(${b})`);let J=M=>M.noglobstar===!0?b:`(${I}(?:(?!${h}${M.dot?c:s}).)*?)`,X=M=>{switch(M){case"*":return`${_}${l}${b}`;case".*":return`${s}${l}${b}`;case"*.*":return`${_}${b}${s}${l}${b}`;case"*/*":return`${_}${b}${a}${l}${L}${b}`;case"**":return _+J(r);case"**/*":return`(?:${_}${J(r)}${a})?${L}${l}${b}`;case"**/*.*":return`(?:${_}${J(r)}${a})?${L}${b}${s}${l}${b}`;case"**/.*":return`(?:${_}${J(r)}${a})?${s}${l}${b}`;default:{let te=/^(.*?)\.(\w+)$/.exec(M);if(!te)return;let he=X(te[1]);return he?he+s+te[2]:void 0}}},B=Qe.removePrefix(t,N),q=X(B);return q&&r.strictSlashes!==!0&&(q+=`${a}?`),q};Df.exports=Vl});var bf=x((Sx,wf)=>{"use strict";var wO=ve("path"),bO=Lf(),zl=vf(),Jl=bi(),FO=wi(),MO=t=>t&&typeof t=="object"&&!Array.isArray(t),Fe=(t,e,r=!1)=>{if(Array.isArray(t)){let u=t.map(d=>Fe(d,e,r));return d=>{for(let f of u){let h=f(d);if(h)return h}return!1}}let n=MO(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},o=Jl.isWindows(e),s=n?Fe.compileRe(t,e):Fe.makeRe(t,e,!1,!0),a=s.state;delete s.state;let l=()=>!1;if(i.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=Fe(i.ignore,u,r)}let c=(u,p=!1)=>{let{isMatch:d,match:f,output:h}=Fe.test(u,s,e,{glob:t,posix:o}),_={glob:t,state:a,regex:s,posix:o,input:u,output:h,match:f,isMatch:d};return typeof i.onResult=="function"&&i.onResult(_),d===!1?(_.isMatch=!1,p?_:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,p?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),p?_:!0)};return r&&(c.state=a),c};Fe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let o=r||{},s=o.format||(i?Jl.toPosixSlashes:null),a=t===n,l=a&&s?s(t):t;return a===!1&&(l=s?s(t):t,a=l===n),(a===!1||o.capture===!0)&&(o.matchBase===!0||o.basename===!0?a=Fe.matchBase(t,e,r,i):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};Fe.matchBase=(t,e,r,n=Jl.isWindows(r))=>(e instanceof RegExp?e:Fe.makeRe(e,r)).test(wO.basename(t));Fe.isMatch=(t,e,r)=>Fe(e,r)(t);Fe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Fe.parse(r,e)):zl(t,{...e,fastpaths:!1});Fe.scan=(t,e)=>bO(t,e);Fe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},o=i.contains?"":"^",s=i.contains?"":"$",a=`${o}(?:${t.output})${s}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let l=Fe.toRegex(a,e);return n===!0&&(l.state=t),l};Fe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=zl.fastpaths(t,e)),i.output||(i=zl(t,e)),Fe.compileRe(i,e,r,n)};Fe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Fe.constants=FO;wf.exports=Fe});var Mf=x((Tx,Ff)=>{"use strict";Ff.exports=bf()});var Bf=x((Ax,Hf)=>{"use strict";var Gf=ve("util"),xf=gf(),qt=Mf(),ql=bi(),kf=t=>t===""||t==="./",Uf=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},Ie=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,o=new Set,s=0,a=u=>{o.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let p=qt(String(e[u]),{...r,onResult:a},!0),d=p.state.negated||p.state.negatedExtglob;d&&s++;for(let f of t){let h=p(f,!0);(d?!h.isMatch:h.isMatch)&&(d?n.add(h.output):(n.delete(h.output),i.add(h.output)))}}let c=(s===e.length?[...o]:[...i]).filter(u=>!n.has(u));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Ie.match=Ie;Ie.matcher=(t,e)=>qt(t,e);Ie.isMatch=(t,e,r)=>qt(e,r)(t);Ie.any=Ie.isMatch;Ie.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],o=a=>{r.onResult&&r.onResult(a),i.push(a.output)},s=new Set(Ie(t,e,{...r,onResult:o}));for(let a of i)s.has(a)||n.add(a);return[...n]};Ie.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Gf.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Ie.contains(t,n,r));if(typeof e=="string"){if(kf(t)||kf(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Ie.isMatch(t,e,{...r,contains:!0})};Ie.matchKeys=(t,e,r)=>{if(!ql.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Ie(Object.keys(t),e,r),i={};for(let o of n)i[o]=t[o];return i};Ie.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let o=qt(String(i),r);if(n.some(s=>o(s)))return!0}return!1};Ie.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let o=qt(String(i),r);if(!n.every(s=>o(s)))return!1}return!0};Ie.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${Gf.inspect(t)}"`);return[].concat(e).every(n=>qt(n,r)(t))};Ie.capture=(t,e,r)=>{let n=ql.isWindows(r),o=qt.makeRe(String(t),{...r,capture:!0}).exec(n?ql.toPosixSlashes(e):e);if(o)return o.slice(1).map(s=>s===void 0?"":s)};Ie.makeRe=(...t)=>qt.makeRe(...t);Ie.scan=(...t)=>qt.scan(...t);Ie.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of xf(String(n),e))r.push(qt.parse(i,e));return r};Ie.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Uf(t)?[t]:xf(t,e)};Ie.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Ie.braces(t,{...e,expand:!0})};Ie.hasBraces=Uf;Hf.exports=Ie});var Qf=x(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.isAbsolute=ee.partitionAbsoluteAndRelative=ee.removeDuplicateSlashes=ee.matchAny=ee.convertPatternsToRe=ee.makeRe=ee.getPatternParts=ee.expandBraceExpansion=ee.expandPatternsWithBraceExpansion=ee.isAffectDepthOfReadingPattern=ee.endsWithSlashGlobStar=ee.hasGlobStar=ee.getBaseDirectory=ee.isPatternRelatedToParentDirectory=ee.getPatternsOutsideCurrentDirectory=ee.getPatternsInsideCurrentDirectory=ee.getPositivePatterns=ee.getNegativePatterns=ee.isPositivePattern=ee.isNegativePattern=ee.convertToNegativePattern=ee.convertToPositivePattern=ee.isDynamicPattern=ee.isStaticPattern=void 0;var Kf=ve("path"),kO=Dg(),Ql=Bf(),Yf="**",GO="\\",xO=/[*?]|^!/,UO=/\[[^[]*]/,HO=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,BO=/[!*+?@]\([^(]*\)/,KO=/,|\.\./,YO=/(?!^)\/{2,}/g;function $f(t,e={}){return!Wf(t,e)}ee.isStaticPattern=$f;function Wf(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(GO)||xO.test(t)||UO.test(t)||HO.test(t)||e.extglob!==!1&&BO.test(t)||e.braceExpansion!==!1&&$O(t))}ee.isDynamicPattern=Wf;function $O(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return KO.test(n)}function WO(t){return Yo(t)?t.slice(1):t}ee.convertToPositivePattern=WO;function jO(t){return"!"+t}ee.convertToNegativePattern=jO;function Yo(t){return t.startsWith("!")&&t[1]!=="("}ee.isNegativePattern=Yo;function jf(t){return!Yo(t)}ee.isPositivePattern=jf;function VO(t){return t.filter(Yo)}ee.getNegativePatterns=VO;function zO(t){return t.filter(jf)}ee.getPositivePatterns=zO;function JO(t){return t.filter(e=>!Xl(e))}ee.getPatternsInsideCurrentDirectory=JO;function qO(t){return t.filter(Xl)}ee.getPatternsOutsideCurrentDirectory=qO;function Xl(t){return t.startsWith("..")||t.startsWith("./..")}ee.isPatternRelatedToParentDirectory=Xl;function QO(t){return kO(t,{flipBackslashes:!1})}ee.getBaseDirectory=QO;function XO(t){return t.includes(Yf)}ee.hasGlobStar=XO;function Vf(t){return t.endsWith("/"+Yf)}ee.endsWithSlashGlobStar=Vf;function ZO(t){let e=Kf.basename(t);return Vf(t)||$f(e)}ee.isAffectDepthOfReadingPattern=ZO;function ey(t){return t.reduce((e,r)=>e.concat(zf(r)),[])}ee.expandPatternsWithBraceExpansion=ey;function zf(t){let e=Ql.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}ee.expandBraceExpansion=zf;function ty(t,e){let{parts:r}=Ql.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ee.getPatternParts=ty;function Jf(t,e){return Ql.makeRe(t,e)}ee.makeRe=Jf;function ry(t,e){return t.map(r=>Jf(r,e))}ee.convertPatternsToRe=ry;function ny(t,e){return e.some(r=>r.test(t))}ee.matchAny=ny;function iy(t){return t.replace(YO,"/")}ee.removeDuplicateSlashes=iy;function oy(t){let e=[],r=[];for(let n of t)qf(n)?e.push(n):r.push(n);return[e,r]}ee.partitionAbsoluteAndRelative=oy;function qf(t){return Kf.isAbsolute(t)}ee.isAbsolute=qf});var tm=x((Ox,em)=>{"use strict";var sy=ve("stream"),Xf=sy.PassThrough,ay=Array.prototype.slice;em.exports=ly;function ly(){let t=[],e=ay.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let i=n.end!==!1,o=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let s=Xf(n);function a(){for(let u=0,p=arguments.length;u<p;u++)t.push(Zf(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let p=u.length+1;function d(){--p>0||(r=!1,l())}function f(h){function _(){h.removeListener("merge2UnpipeEnd",_),h.removeListener("end",_),o&&h.removeListener("error",L),d()}function L(I){s.emit("error",I)}if(h._readableState.endEmitted)return d();h.on("merge2UnpipeEnd",_),h.on("end",_),o&&h.on("error",L),h.pipe(s,{end:!1}),h.resume()}for(let h=0;h<u.length;h++)f(u[h]);d()}function c(){r=!1,s.emit("queueDrain"),i&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),s}function Zf(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Zf(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Xf(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var nm=x($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.merge=void 0;var cy=tm();function uy(t){let e=cy(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>rm(t)),e.once("end",()=>rm(t)),e}$o.merge=uy;function rm(t){t.forEach(e=>e.emit("close"))}});var im=x(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.isEmpty=Un.isString=void 0;function dy(t){return typeof t=="string"}Un.isString=dy;function py(t){return t===""}Un.isEmpty=py});var lr=x(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.string=Xe.stream=Xe.pattern=Xe.path=Xe.fs=Xe.errno=Xe.array=void 0;var gy=_g();Xe.array=gy;var fy=Eg();Xe.errno=fy;var my=Sg();Xe.fs=my;var hy=Og();Xe.path=hy;var _y=Qf();Xe.pattern=_y;var Ey=nm();Xe.stream=Ey;var Sy=im();Xe.string=Sy});var lm=x(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.convertPatternGroupToTask=Ze.convertPatternGroupsToTasks=Ze.groupPatternsByBaseDirectory=Ze.getNegativePatternsAsPositive=Ze.getPositivePatterns=Ze.convertPatternsToTasks=Ze.generate=void 0;var Mt=lr();function Ty(t,e){let r=om(t,e),n=om(e.ignore,e),i=sm(r),o=am(r,n),s=i.filter(u=>Mt.pattern.isStaticPattern(u,e)),a=i.filter(u=>Mt.pattern.isDynamicPattern(u,e)),l=Zl(s,o,!1),c=Zl(a,o,!0);return l.concat(c)}Ze.generate=Ty;function om(t,e){let r=t;return e.braceExpansion&&(r=Mt.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Mt.pattern.removeDuplicateSlashes(n))}function Zl(t,e,r){let n=[],i=Mt.pattern.getPatternsOutsideCurrentDirectory(t),o=Mt.pattern.getPatternsInsideCurrentDirectory(t),s=ec(i),a=ec(o);return n.push(...tc(s,e,r)),"."in a?n.push(rc(".",o,e,r)):n.push(...tc(a,e,r)),n}Ze.convertPatternsToTasks=Zl;function sm(t){return Mt.pattern.getPositivePatterns(t)}Ze.getPositivePatterns=sm;function am(t,e){return Mt.pattern.getNegativePatterns(t).concat(e).map(Mt.pattern.convertToPositivePattern)}Ze.getNegativePatternsAsPositive=am;function ec(t){let e={};return t.reduce((r,n)=>{let i=Mt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}Ze.groupPatternsByBaseDirectory=ec;function tc(t,e,r){return Object.keys(t).map(n=>rc(n,t[n],e,r))}Ze.convertPatternGroupsToTasks=tc;function rc(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Mt.pattern.convertToNegativePattern))}}Ze.convertPatternGroupToTask=rc});var um=x(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.read=void 0;function Ay(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){cm(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){nc(r,i);return}e.fs.stat(t,(o,s)=>{if(o!==null){if(e.throwErrorOnBrokenSymbolicLink){cm(r,o);return}nc(r,i);return}e.markSymbolicLink&&(s.isSymbolicLink=()=>!0),nc(r,s)})})}Wo.read=Ay;function cm(t,e){t(e)}function nc(t,e){t(null,e)}});var dm=x(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.read=void 0;function Ry(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}jo.read=Ry});var pm=x(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.createFileSystemAdapter=Lr.FILE_SYSTEM_ADAPTER=void 0;var Vo=ve("fs");Lr.FILE_SYSTEM_ADAPTER={lstat:Vo.lstat,stat:Vo.stat,lstatSync:Vo.lstatSync,statSync:Vo.statSync};function Oy(t){return t===void 0?Lr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Lr.FILE_SYSTEM_ADAPTER),t)}Lr.createFileSystemAdapter=Oy});var gm=x(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});var yy=pm(),ic=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=yy.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};oc.default=ic});var sn=x(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.statSync=Nr.stat=Nr.Settings=void 0;var fm=um(),Iy=dm(),sc=gm();Nr.Settings=sc.default;function Ly(t,e,r){if(typeof e=="function"){fm.read(t,ac(),e);return}fm.read(t,ac(e),r)}Nr.stat=Ly;function Ny(t,e){let r=ac(e);return Iy.read(t,r)}Nr.statSync=Ny;function ac(t={}){return t instanceof sc.default?t:new sc.default(t)}});var _m=x((bx,hm)=>{"use strict";var mm;hm.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(mm||(mm=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var Sm=x((Fx,Em)=>{"use strict";Em.exports=Py;var Cy=_m();function Py(t,e){let r,n,i,o=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function s(l){function c(){e&&e(l,r),e=null}o?Cy(c):c()}function a(l,c,u){r[l]=u,(--n===0||c)&&s(c)}n?i?i.forEach(function(l){t[l](function(c,u){a(l,c,u)})}):t.forEach(function(l,c){l(function(u,p){a(c,u,p)})}):s(null),o=!1}});var lc=x(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var zo=process.versions.node.split(".");if(zo[0]===void 0||zo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Tm=Number.parseInt(zo[0],10),Dy=Number.parseInt(zo[1],10),Am=10,vy=10,wy=Tm>Am,by=Tm===Am&&Dy>=vy;Jo.IS_SUPPORT_READDIR_WITH_FILE_TYPES=wy||by});var Rm=x(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.createDirentFromStats=void 0;var cc=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Fy(t,e){return new cc(t,e)}qo.createDirentFromStats=Fy});var uc=x(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.fs=void 0;var My=Rm();Qo.fs=My});var dc=x(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.joinPathSegments=void 0;function ky(t,e,r){return t.endsWith(r)?t+e:t+r+e}Xo.joinPathSegments=ky});var Cm=x(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.readdir=Cr.readdirWithFileTypes=Cr.read=void 0;var Gy=sn(),Om=Sm(),xy=lc(),ym=uc(),Im=dc();function Uy(t,e,r){if(!e.stats&&xy.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Lm(t,e,r);return}Nm(t,e,r)}Cr.read=Uy;function Lm(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Zo(r,n);return}let o=i.map(a=>({dirent:a,name:a.name,path:Im.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){pc(r,o);return}let s=o.map(a=>Hy(a,e));Om(s,(a,l)=>{if(a!==null){Zo(r,a);return}pc(r,l)})})}Cr.readdirWithFileTypes=Lm;function Hy(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=ym.fs.createDirentFromStats(t.name,i),r(null,t)})}}function Nm(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Zo(r,n);return}let o=i.map(s=>{let a=Im.joinPathSegments(t,s,e.pathSegmentSeparator);return l=>{Gy.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let p={name:s,path:a,dirent:ym.fs.createDirentFromStats(s,u)};e.stats&&(p.stats=u),l(null,p)})}});Om(o,(s,a)=>{if(s!==null){Zo(r,s);return}pc(r,a)})})}Cr.readdir=Nm;function Zo(t,e){t(e)}function pc(t,e){t(null,e)}});var bm=x(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.readdir=Pr.readdirWithFileTypes=Pr.read=void 0;var By=sn(),Ky=lc(),Pm=uc(),Dm=dc();function Yy(t,e){return!e.stats&&Ky.IS_SUPPORT_READDIR_WITH_FILE_TYPES?vm(t,e):wm(t,e)}Pr.read=Yy;function vm(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Dm.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let o=e.fs.statSync(i.path);i.dirent=Pm.fs.createDirentFromStats(i.name,o)}catch(o){if(e.throwErrorOnBrokenSymbolicLink)throw o}return i})}Pr.readdirWithFileTypes=vm;function wm(t,e){return e.fs.readdirSync(t).map(n=>{let i=Dm.joinPathSegments(t,n,e.pathSegmentSeparator),o=By.statSync(i,e.fsStatSettings),s={name:n,path:i,dirent:Pm.fs.createDirentFromStats(n,o)};return e.stats&&(s.stats=o),s})}Pr.readdir=wm});var Fm=x(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.createFileSystemAdapter=Dr.FILE_SYSTEM_ADAPTER=void 0;var Hn=ve("fs");Dr.FILE_SYSTEM_ADAPTER={lstat:Hn.lstat,stat:Hn.stat,lstatSync:Hn.lstatSync,statSync:Hn.statSync,readdir:Hn.readdir,readdirSync:Hn.readdirSync};function $y(t){return t===void 0?Dr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Dr.FILE_SYSTEM_ADAPTER),t)}Dr.createFileSystemAdapter=$y});var Mm=x(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var Wy=ve("path"),jy=sn(),Vy=Fm(),gc=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Vy.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Wy.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new jy.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};fc.default=gc});var es=x(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.Settings=vr.scandirSync=vr.scandir=void 0;var km=Cm(),zy=bm(),mc=Mm();vr.Settings=mc.default;function Jy(t,e,r){if(typeof e=="function"){km.read(t,hc(),e);return}km.read(t,hc(e),r)}vr.scandir=Jy;function qy(t,e){let r=hc(e);return zy.read(t,r)}vr.scandirSync=qy;function hc(t={}){return t instanceof mc.default?t:new mc.default(t)}});var xm=x(($x,Gm)=>{"use strict";function Qy(t){var e=new t,r=e;function n(){var o=e;return o.next?e=o.next:(e=new t,r=e),o.next=null,o}function i(o){r.next=o,r=o}return{get:n,release:i}}Gm.exports=Qy});var Hm=x((Wx,_c)=>{"use strict";var Xy=xm();function Um(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Xy(Zy),i=null,o=null,s=0,a=null,l={push:_,drain:ut,saturated:ut,pause:u,paused:!1,get concurrency(){return r},set concurrency(B){if(!(B>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=B,!l.paused)for(;i&&s<r;)s++,I()},running:c,resume:f,idle:h,length:p,getQueue:d,unshift:L,empty:ut,kill:N,killAndDrain:b,error:X,abort:J};return l;function c(){return s}function u(){l.paused=!0}function p(){for(var B=i,q=0;B;)B=B.next,q++;return q}function d(){for(var B=i,q=[];B;)q.push(B.value),B=B.next;return q}function f(){if(l.paused){if(l.paused=!1,i===null){s++,I();return}for(;i&&s<r;)s++,I()}}function h(){return s===0&&l.length()===0}function _(B,q){var M=n.get();M.context=t,M.release=I,M.value=B,M.callback=q||ut,M.errorHandler=a,s>=r||l.paused?o?(o.next=M,o=M):(i=M,o=M,l.saturated()):(s++,e.call(t,M.value,M.worked))}function L(B,q){var M=n.get();M.context=t,M.release=I,M.value=B,M.callback=q||ut,M.errorHandler=a,s>=r||l.paused?i?(M.next=i,i=M):(i=M,o=M,l.saturated()):(s++,e.call(t,M.value,M.worked))}function I(B){B&&n.release(B);var q=i;q&&s<=r?l.paused?s--:(o===i&&(o=null),i=q.next,q.next=null,e.call(t,q.value,q.worked),o===null&&l.empty()):--s===0&&l.drain()}function N(){i=null,o=null,l.drain=ut}function b(){i=null,o=null,l.drain(),l.drain=ut}function J(){var B=i;for(i=null,o=null;B;){var q=B.next,M=B.callback,te=B.errorHandler,he=B.value,C=B.context;B.value=null,B.callback=ut,B.errorHandler=null,te&&te(new Error("abort"),he),M.call(C,new Error("abort")),B.release(B),B=q}l.drain=ut}function X(B){a=B}}function ut(){}function Zy(){this.value=null,this.callback=ut,this.next=null,this.release=ut,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,o=t.errorHandler,s=t.value;t.value=null,t.callback=ut,t.errorHandler&&o(r,s),i.call(t.context,r,n),t.release(t)}}function eI(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,p){e.call(this,u).then(function(d){p(null,d)},p)}var i=Um(t,n,r),o=i.push,s=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var p=new Promise(function(d,f){o(u,function(h,_){if(h){f(h);return}d(_)})});return p.catch(ut),p}function l(u){var p=new Promise(function(d,f){s(u,function(h,_){if(h){f(h);return}d(_)})});return p.catch(ut),p}function c(){var u=new Promise(function(p){process.nextTick(function(){if(i.idle())p();else{var d=i.drain;i.drain=function(){typeof d=="function"&&d(),p(),i.drain=d}}})});return u}}_c.exports=Um;_c.exports.promise=eI});var ts=x(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.joinPathSegments=Qt.replacePathSegmentSeparator=Qt.isAppliedFilter=Qt.isFatalError=void 0;function tI(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Qt.isFatalError=tI;function rI(t,e){return t===null||t(e)}Qt.isAppliedFilter=rI;function nI(t,e){return t.split(/[/\\]/).join(e)}Qt.replacePathSegmentSeparator=nI;function iI(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Qt.joinPathSegments=iI});var Tc=x(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var oI=ts(),Ec=class{constructor(e,r){this._root=e,this._settings=r,this._root=oI.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};Sc.default=Ec});var Oc=x(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var sI=ve("events"),aI=es(),lI=Hm(),rs=ts(),cI=Tc(),Ac=class extends cI.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=aI.scandir,this._emitter=new sI.EventEmitter,this._queue=lI(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let o of i)this._handleEntry(o,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!rs.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=rs.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),rs.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&rs.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};Rc.default=Ac});var Bm=x(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var uI=Oc(),yc=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new uI.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{dI(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{pI(e,this._storage)}),this._reader.read()}};Ic.default=yc;function dI(t,e){t(e)}function pI(t,e){t(null,e)}});var Km=x(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var gI=ve("stream"),fI=Oc(),Lc=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new fI.default(this._root,this._settings),this._stream=new gI.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Nc.default=Lc});var Ym=x(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var mI=es(),ns=ts(),hI=Tc(),Cc=class extends hI.default{constructor(){super(...arguments),this._scandir=mI.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(ns.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=ns.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),ns.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&ns.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};Pc.default=Cc});var $m=x(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var _I=Ym(),Dc=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new _I.default(this._root,this._settings)}read(){return this._reader.read()}};vc.default=Dc});var Wm=x(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var EI=ve("path"),SI=es(),wc=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,EI.sep),this.fsScandirSettings=new SI.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};bc.default=wc});var os=x(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.Settings=Xt.walkStream=Xt.walkSync=Xt.walk=void 0;var jm=Bm(),TI=Km(),AI=$m(),Fc=Wm();Xt.Settings=Fc.default;function RI(t,e,r){if(typeof e=="function"){new jm.default(t,is()).read(e);return}new jm.default(t,is(e)).read(r)}Xt.walk=RI;function OI(t,e){let r=is(e);return new AI.default(t,r).read()}Xt.walkSync=OI;function yI(t,e){let r=is(e);return new TI.default(t,r).read()}Xt.walkStream=yI;function is(t={}){return t instanceof Fc.default?t:new Fc.default(t)}});var ss=x(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});var II=ve("path"),LI=sn(),Vm=lr(),Mc=class{constructor(e){this._settings=e,this._fsStatSettings=new LI.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return II.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Vm.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Vm.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};kc.default=Mc});var Uc=x(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var NI=ve("stream"),CI=sn(),PI=os(),DI=ss(),Gc=class extends DI.default{constructor(){super(...arguments),this._walkStream=PI.walkStream,this._stat=CI.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new NI.PassThrough({objectMode:!0});i._write=(o,s,a)=>this._getEntry(n[o],e[o],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),o===n.length-1&&i.end(),a()}).catch(a);for(let o=0;o<n.length;o++)i.write(o);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,o)=>i===null?r(o):n(i))})}};xc.default=Gc});var zm=x(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var vI=os(),wI=ss(),bI=Uc(),Hc=class extends wI.default{constructor(){super(...arguments),this._walkAsync=vI.walk,this._readerStream=new bI.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(o,s)=>{o===null?n(s):i(o)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((o,s)=>{i.once("error",s),i.on("data",a=>n.push(a)),i.once("end",()=>o(n))})}};Bc.default=Hc});var Jm=x(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var ki=lr(),Kc=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return ki.pattern.getPatternParts(e,this._micromatchOptions).map(n=>ki.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ki.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return ki.array.splitWhen(e,r=>r.dynamic&&ki.pattern.hasGlobStar(r.pattern))}};Yc.default=Kc});var qm=x(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var FI=Jm(),$c=class extends FI.default{match(e){let r=e.split("/"),n=r.length,i=this._storage.filter(o=>!o.complete||o.segments.length>n);for(let o of i){let s=o.sections[0];if(!o.complete&&n>s.length||r.every((l,c)=>{let u=o.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Wc.default=$c});var Qm=x(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var as=lr(),MI=qm(),jc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),o=this._getNegativePatternsRe(n);return s=>this._filter(e,s,i,o)}_getMatcher(e){return new MI.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(as.pattern.isAffectDepthOfReadingPattern);return as.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let o=as.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(o,n)?!1:this._isSkippedByNegativePatterns(o,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!as.pattern.matchAny(e,r)}};Vc.default=jc});var Xm=x(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var wr=lr(),zc=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,i]=wr.pattern.partitionAbsoluteAndRelative(r),o={positive:{all:wr.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:wr.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:wr.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,o)}_filter(e,r){let n=wr.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let i=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let i=wr.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let i=wr.pattern.matchAny(e,r);return!i&&n?wr.pattern.matchAny(e+"/",r):i}};Jc.default=zc});var Zm=x(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var kI=lr(),qc=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return kI.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};Qc.default=qc});var th=x(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var eh=lr(),Xc=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=eh.path.makeAbsolute(this._settings.cwd,r),r=eh.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Zc.default=Xc});var ls=x(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var GI=ve("path"),xI=Qm(),UI=Xm(),HI=Zm(),BI=th(),eu=class{constructor(e){this._settings=e,this.errorFilter=new HI.default(this._settings),this.entryFilter=new UI.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new xI.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new BI.default(this._settings)}_getRootDirectory(e){return GI.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};tu.default=eu});var rh=x(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});var KI=zm(),YI=ls(),ru=class extends YI.default{constructor(){super(...arguments),this._reader=new KI.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(o=>n.transform(o))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};nu.default=ru});var nh=x(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});var $I=ve("stream"),WI=Uc(),jI=ls(),iu=class extends jI.default{constructor(){super(...arguments),this._reader=new WI.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),o=new $I.Readable({objectMode:!0,read:()=>{}});return i.once("error",s=>o.emit("error",s)).on("data",s=>o.emit("data",n.transform(s))).once("end",()=>o.emit("end")),o.once("close",()=>i.destroy()),o}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};ou.default=iu});var ih=x(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});var VI=sn(),zI=os(),JI=ss(),su=class extends JI.default{constructor(){super(...arguments),this._walkSync=zI.walkSync,this._statSync=VI.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let o=this._getFullEntryPath(i),s=this._getEntry(o,i,r);s===null||!r.entryFilter(s)||n.push(s)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};au.default=su});var oh=x(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});var qI=ih(),QI=ls(),lu=class extends QI.default{constructor(){super(...arguments),this._reader=new qI.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};cu.default=lu});var sh=x(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Bn=ve("fs"),XI=ve("os"),ZI=Math.max(XI.cpus().length,1);Kn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Bn.lstat,lstatSync:Bn.lstatSync,stat:Bn.stat,statSync:Bn.statSync,readdir:Bn.readdir,readdirSync:Bn.readdirSync};var uu=class{constructor(e={}){this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,ZI),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Kn.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Kn.default=uu});var fu=x((hU,lh)=>{"use strict";var ah=lm(),eL=rh(),tL=nh(),rL=oh(),du=sh(),It=lr();async function pu(t,e){kt(t);let r=gu(t,eL.default,e),n=await Promise.all(r);return It.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(c,u){kt(c);let p=gu(c,rL.default,u);return It.array.flatten(p)}t.sync=e;function r(c,u){kt(c);let p=gu(c,tL.default,u);return It.stream.merge(p)}t.stream=r;function n(c,u){kt(c);let p=[].concat(c),d=new du.default(u);return ah.generate(p,d)}t.generateTasks=n;function i(c,u){kt(c);let p=new du.default(u);return It.pattern.isDynamicPattern(c,p)}t.isDynamicPattern=i;function o(c){return kt(c),It.path.escape(c)}t.escapePath=o;function s(c){return kt(c),It.path.convertPathToPattern(c)}t.convertPathToPattern=s;let a;(function(c){function u(d){return kt(d),It.path.escapePosixPath(d)}c.escapePath=u;function p(d){return kt(d),It.path.convertPosixPathToPattern(d)}c.convertPathToPattern=p})(a=t.posix||(t.posix={}));let l;(function(c){function u(d){return kt(d),It.path.escapeWindowsPath(d)}c.escapePath=u;function p(d){return kt(d),It.path.convertWindowsPathToPattern(d)}c.convertPathToPattern=p})(l=t.win32||(t.win32={}))})(pu||(pu={}));function gu(t,e,r){let n=[].concat(t),i=new du.default(r),o=ah.generate(n,i),s=new e(i);return o.map(s.read,s)}function kt(t){if(![].concat(t).every(n=>It.string.isString(n)&&!It.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}lh.exports=pu});var _h=x((_U,ds)=>{"use strict";function dh(t){return Array.isArray(t)?t:[t]}var nL=void 0,hu="",ch=" ",mu="\\",iL=/^\s+$/,oL=/(?:[^\\]|^)\\$/,sL=/^\\!/,aL=/^\\#/,lL=/\r?\n/g,cL=/^\.{0,2}\/|^\.{1,2}$/,uL=/\/$/,Yn="/",ph="node-ignore";typeof Symbol<"u"&&(ph=Symbol.for("node-ignore"));var gh=ph,$n=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),dL=/([0-z])-([0-z])/g,fh=()=>!1,pL=t=>t.replace(dL,(e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:hu),gL=t=>t.startsWith("!")||t.startsWith("\\^")?`^${t.slice(t[0]==="!"?1:2)}`:t,fL=t=>{let{length:e}=t;return t.slice(0,e-e%2)},mL=[[/^\uFEFF/,()=>hu],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(r.indexOf("\\")===0?ch:hu)],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+ch}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*(?:\\\*\\\*\\\/)+/,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return e+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>mu],[/\\\\/g,()=>mu],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>e===mu?`\\[${r}${fL(n)}${i}`:i==="]"&&n.length%2===0?`[${gL(pL(r))}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],hL=/(^|\\\/)?\\\*$/,Gi="regex",cs="checkRegex",uh="_",_L={[Gi](t,e){return`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`},[cs](t,e){return`${e?`${e}[^/]*`:"[^/]*"}(?=$|\\/$)`}},EL=t=>mL.reduce((e,[r,n])=>e.replace(r,n.bind(t)),t),us=t=>typeof t=="string",SL=t=>t&&us(t)&&!iL.test(t)&&!oL.test(t)&&t.indexOf("#")!==0,TL=t=>t.split(lL).filter(Boolean),_u=class{constructor(e,r,n,i,o,s){this.pattern=e,this.mark=r,this.negative=o,$n(this,"body",n),$n(this,"ignoreCase",i),$n(this,"regexPrefix",s)}get regex(){let e=uh+Gi;return this[e]?this[e]:this._make(Gi,e)}get checkRegex(){let e=uh+cs;return this[e]?this[e]:this._make(cs,e)}_make(e,r){let n=this.regexPrefix.replace(hL,_L[e]),i=this.ignoreCase?new RegExp(n,"i"):new RegExp(n);return $n(this,r,i)}},AL=({pattern:t,mark:e},r)=>{let n=!1,i=t;i.indexOf("!")===0&&(n=!0,i=i.substr(1)),i=i.replace(sL,"!").replace(aL,"#");let o=EL(i);return new _u(t,e,i,r,n,o)},Eu=class{constructor(e){this._ignoreCase=e,this._rules=[]}_add(e){if(e&&e[gh]){this._rules=this._rules.concat(e._rules._rules),this._added=!0;return}if(us(e)&&(e={pattern:e}),SL(e.pattern)){let r=AL(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,dh(us(e)?TL(e):e).forEach(this._add,this),this._added}test(e,r,n){let i=!1,o=!1,s;this._rules.forEach(l=>{let{negative:c}=l;o===c&&i!==o||c&&!i&&!o&&!r||!l[n].test(e)||(i=!c,o=c,s=c?nL:l)});let a={ignored:i,unignored:o};return s&&(a.rule=s),a}},RL=(t,e)=>{throw new e(t)},cr=(t,e,r)=>us(t)?t?cr.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),mh=t=>cL.test(t);cr.isNotRelative=mh;cr.convert=t=>t;var Su=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:n=!1}={}){$n(this,gh,!0),this._rules=new Eu(r),this._strictPathCheck=!n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(e){return this._rules.add(e)&&this._initCache(),this}addPattern(e){return this.add(e)}_test(e,r,n,i){let o=e&&cr.convert(e);return cr(o,e,this._strictPathCheck?RL:fh),this._t(o,r,n,i)}checkIgnore(e){if(!uL.test(e))return this.test(e);let r=e.split(Yn).filter(Boolean);if(r.pop(),r.length){let n=this._t(r.join(Yn)+Yn,this._testCache,!0,r);if(n.ignored)return n}return this._rules.test(e,!1,cs)}_t(e,r,n,i){if(e in r)return r[e];if(i||(i=e.split(Yn).filter(Boolean)),i.pop(),!i.length)return r[e]=this._rules.test(e,n,Gi);let o=this._t(i.join(Yn)+Yn,r,n,i);return r[e]=o.ignored?o:this._rules.test(e,n,Gi)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return dh(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Tu=t=>new Su(t),OL=t=>cr(t&&cr.convert(t),t,fh),hh=()=>{let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");cr.convert=t;let e=/^[a-z]:\//i;cr.isNotRelative=r=>e.test(r)||mh(r)};typeof process<"u"&&process.platform==="win32"&&hh();ds.exports=Tu;Tu.default=Tu;ds.exports.isPathValid=OL;$n(ds.exports,Symbol.for("setupWindows"),hh)});import*as pT from"dotenv";import Yt from"process";import{execFile as DT}from"child_process";import{promisify as vT}from"util";import sr from"fs/promises";import Ke from"path";import{spawn as _T}from"child_process";import Dp from"fs/promises";import Ro from"path";import ET from"os";var Tl=class{value;next;constructor(e){this.value=e}},Ti=class{#t;#o;#c;constructor(){this.clear()}enqueue(e){let r=new Tl(e);this.#t?(this.#o.next=r,this.#o=r):(this.#t=r,this.#o=r),this.#c++}dequeue(){let e=this.#t;if(e)return this.#t=this.#t.next,this.#c--,this.#t||(this.#o=void 0),e.value}peek(){if(this.#t)return this.#t.value}clear(){this.#t=void 0,this.#o=void 0,this.#c=0}get size(){return this.#c}*[Symbol.iterator](){let e=this.#t;for(;e;)yield e.value,e=e.next}*drain(){for(;this.#t;)yield this.dequeue()}};function Qr(t){let e=!1;if(typeof t=="object"&&({concurrency:t,rejectOnClear:e=!1}=t),Pp(t),typeof e!="boolean")throw new TypeError("Expected `rejectOnClear` to be a boolean");let r=new Ti,n=0,i=()=>{n<t&&r.size>0&&(n++,r.dequeue().run())},o=()=>{n--,i()},s=async(c,u,p)=>{let d=(async()=>c(...p))();u(d);try{await d}catch{}o()},a=(c,u,p,d)=>{let f={reject:p};new Promise(h=>{f.run=h,r.enqueue(f)}).then(s.bind(void 0,c,u,d)),n<t&&i()},l=(c,...u)=>new Promise((p,d)=>{a(c,p,d,u)});return Object.defineProperties(l,{activeCount:{get:()=>n},pendingCount:{get:()=>r.size},clearQueue:{value(){if(!e){r.clear();return}let c=AbortSignal.abort().reason;for(;r.size>0;)r.dequeue().reject(c)}},concurrency:{get:()=>t,set(c){Pp(c),t=c,queueMicrotask(()=>{for(;n<t&&r.size>0;)i()})}},map:{async value(c,u){let p=Array.from(c,(d,f)=>this(u,d,f));return Promise.all(p)}}}),l}function Pp(t){if(!((Number.isInteger(t)||t===Number.POSITIVE_INFINITY)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}var yr={NAME:"Docuvia",EMAIL:"docuvia@localhost"};var Xr="refs/heads/",Al="HEAD";var ST="fast-import",TT="--quiet",Rl={PIPE:"pipe",IGNORE:"ignore"},Ao={DATA:"data",ERROR:"error",CLOSE:"close"},Zr={COMMIT:"commit",COMMITTER:"committer",DATA:"data",FROM:"from",DELETE_ALL:"deleteall",MODIFY:"M"},AT="100644",RT="inline",OT="+0000",yT="stdin write failed: ",IT=(t,e,r)=>{let n=[e,r?`${yT}${r.message}`:""].filter(Boolean).join("; ");return`git fast-import exited with code ${t}${n?": "+n:""}`},LT=300*1e3,NT="SIGTERM",CT=t=>`git fast-import timed out after ${t}ms and was terminated`,PT=ET.cpus().length*4;async function vp(t){let e=new Map,r=Qr(PT),n=async i=>{let o=await Dp.readdir(i,{withFileTypes:!0});await Promise.all(o.map(async s=>{let a=Ro.join(i,s.name);if(s.isDirectory())await n(a);else if(s.isFile()){let l=Ro.relative(t,a),c=await r(()=>Dp.readFile(a,$));e.set(l,c)}}))};return await n(t),e}function wp(t,e,r,n,i){let o=[];o.push(`${Zr.COMMIT} ${Xr}${t}`),o.push(`${Zr.COMMITTER} ${yr.NAME} <${yr.EMAIL}> ${r} ${OT}`),o.push(`${Zr.DATA} ${Buffer.byteLength(n,$)}`),o.push(n),i&&o.push(`${Zr.FROM} ${i}`),o.push(Zr.DELETE_ALL);for(let[s,a]of e){let l=Buffer.from(a,$),c=s.split(Ro.sep).join(Ro.posix.sep);o.push(`${Zr.MODIFY} ${AT} ${RT} ${c}`),o.push(`${Zr.DATA} ${l.length}`),o.push(a)}return o.push(""),o.join(`
|
|
5
5
|
`)}function bp(t,e,r=LT){return new Promise((n,i)=>{let o=_T("git",[ST,TT],{cwd:t,stdio:[Rl.PIPE,Rl.IGNORE,Rl.PIPE]}),s=setTimeout(()=>{o.kill(NT),i(new Error(CT(r)))},r);s.unref();let a=[],l;o.stderr.on(Ao.DATA,c=>a.push(c)),o.on(Ao.ERROR,i),o.on(Ao.CLOSE,c=>{if(clearTimeout(s),c===0)return n();let u=Buffer.concat(a).toString($).trim();i(new Error(IT(c,u,l)))}),o.stdin.on(Ao.ERROR,c=>{l=c}),o.stdin.end(e,$)})}var wT=vT(DT),bT={LC_ALL:"C",LANG:"C",LC_MESSAGES:"C"},de=(t,e,r={})=>wT(t,e,{...r,encoding:"utf8",env:{...process.env,...r.env??{},...bT}}),pe={REV_PARSE:"rev-parse",BRANCH:"branch",COMMIT_TREE:"commit-tree",UPDATE_REF:"update-ref",LS_FILES:"ls-files",LS_TREE:"ls-tree",DIFF:"diff",DIFF_TREE:"diff-tree",CAT_FILE:"cat-file",SHOW:"show",LOG:"log",REV_LIST:"rev-list",REMOTE:"remote",STATUS:"status",FETCH:"fetch",PUSH:"push",MERGE_BASE:"merge-base",WORKTREE:"worktree",BLAME:"blame"},ne={IS_INSIDE_WORK_TREE:"--is-inside-work-tree",LIST:"--list",DELETE_FORCE:"-D",MESSAGE_FLAG:"-m",STAGED:"-s",OTHERS:"--others",EXCLUDE_STANDARD:"--exclude-standard",NAME_ONLY:"--name-only",BLOB:"blob",MAX_COUNT_FLAG:"-n",LOG_FORMAT_SHA_AND_BODY:"--format=%H%x01%B%x00",GET_URL:"get-url",EMPTY_FORMAT:"--format=",WORKTREE_LIST:"list",PORCELAIN:"--porcelain",NAME_STATUS:"--name-status",END_OF_OPTIONS:"--end-of-options",NO_COMMIT_ID:"--no-commit-id",RECURSIVE:"-r",VERIFY:"--verify",QUIET:"--quiet",IS_ANCESTOR:"--is-ancestor",TREE_SUFFIX:"^{tree}",SUPPRESS_DIFF:"-s",COMMIT_TIMESTAMP_FORMAT:"--format=%ct",PARENT_FLAG:"-p",UNIFIED_ZERO:"--unified=0",NO_COLOR:"--no-color",PATHSPEC_SEPARATOR:"--",GIT_DIR_FLAG:"--git-dir",GIT_COMMON_DIR_FLAG:"--git-common-dir",GIT_PATH_FLAG:"--git-path",NO_VERIFY:"--no-verify"},Oo={PATH:"worktree ",BRANCH:"branch "},FT="\0",MT="",Ol={RENAMED:"R",ADDED:"A",DELETED:"D"},kT="4b825dc642cb6eb9a060e54bf8d69288fbee4904",Fp=".git",Mp="hooks",GT="_",kp="docuvia-knowledge.lock",xT=1e4,UT=100,HT=6e4,Gp="object",xp="code",be={BRANCH_LIST_FAILED:"git branch --list failed",BRANCH_DELETE_FAILED:"git branch -D failed",COMMIT_TREE_FAILED:"git commit-tree failed",UPDATE_REF_FAILED:"git update-ref failed",HOOK_FILE_WRITE_FAILED:"Writing hook file failed",HOOK_FILE_CHMOD_FAILED:"chmod on hook file failed",LS_FILES_STAGED_FAILED:"git ls-files -s failed",LS_FILES_OTHERS_FAILED:"git ls-files --others failed",DIFF_NAME_ONLY_FAILED:"git diff --name-only failed",CAT_FILE_BLOB_FAILED:"git cat-file blob failed",STATUS_PORCELAIN_FAILED:"git status --porcelain failed",DIFF_TREE_FAILED:"git diff-tree failed",FAST_IMPORT_FAILED:"git fast-import failed",FETCH_FAILED:"git fetch failed",PUSH_FAILED:"git push failed",MERGE_BASE_IS_ANCESTOR_FAILED:"git merge-base --is-ancestor failed",REV_PARSE_TREE_FAILED:"git rev-parse ^{tree} failed",SHOW_COMMIT_TIMESTAMP_FAILED:"git show --format=%ct failed",COMMIT_TREE_MERGE_FAILED:"git commit-tree (merge) failed",KNOWLEDGE_LOCK_ACQUIRE_FAILED:"Failed to acquire knowledge lock",KNOWLEDGE_LOCK_TIMED_OUT:t=>`Timed out waiting for the knowledge branch lock at ${t} \u2014 another Docuvia process may be stuck`},vn=class{async getGitDir(e){try{let{stdout:r}=await de("git",[pe.REV_PARSE,ne.GIT_DIR_FLAG],{cwd:e});return Ke.resolve(e,r.trim())}catch{return Ke.join(e,Fp)}}async getGitCommonDir(e){try{let{stdout:r}=await de("git",[pe.REV_PARSE,ne.GIT_COMMON_DIR_FLAG],{cwd:e});return Ke.resolve(e,r.trim())}catch{return Ke.join(e,Fp)}}async resolveHooksDir(e){let r;try{let{stdout:n}=await de("git",[pe.REV_PARSE,ne.GIT_PATH_FLAG,Mp],{cwd:e});r=Ke.resolve(e,n.trim())}catch{let n=await this.getGitCommonDir(e);r=Ke.join(n,Mp)}return Ke.basename(r)===GT?Ke.dirname(r):r}async isGitRepository(e){try{return await de("git",[pe.REV_PARSE,ne.IS_INSIDE_WORK_TREE],{cwd:e}),!0}catch{return!1}}async branchExists(e,r){try{let{stdout:n}=await de("git",[pe.BRANCH,ne.LIST,r],{cwd:e});return n.trim().length>0}catch(n){throw S.wrap(O.GIT_COMMAND_FAILED,be.BRANCH_LIST_FAILED,n)}}async deleteBranch(e,r){try{await de("git",[pe.BRANCH,ne.DELETE_FORCE,r],{cwd:e})}catch(n){throw S.wrap(O.GIT_COMMAND_FAILED,be.BRANCH_DELETE_FAILED,n)}}async commitEmptyTree(e,r){try{let{stdout:n}=await de("git",[pe.COMMIT_TREE,kT,ne.MESSAGE_FLAG,r],{cwd:e});return n.trim()}catch(n){throw S.wrap(O.GIT_BRANCH_CREATE_FAILED,be.COMMIT_TREE_FAILED,n)}}async updateBranchRef(e,r,n){try{await de("git",[pe.UPDATE_REF,`${Xr}${r}`,n],{cwd:e})}catch(i){throw S.wrap(O.GIT_BRANCH_CREATE_FAILED,be.UPDATE_REF_FAILED,i)}}async hooksDirExists(e){try{let r=await this.resolveHooksDir(e);return await sr.access(r),!0}catch{return!1}}async readHookFile(e,r){try{let n=await this.resolveHooksDir(e);return await sr.readFile(Ke.join(n,r),$)}catch{return}}async appendHookFile(e,r,n){try{let i=await this.resolveHooksDir(e);await sr.appendFile(Ke.join(i,r),n)}catch(i){throw S.wrap(O.GIT_HOOK_INSTALL_FAILED,be.HOOK_FILE_WRITE_FAILED,i)}}async writeHookFile(e,r,n){try{let i=await this.resolveHooksDir(e);await sr.writeFile(Ke.join(i,r),n)}catch(i){throw S.wrap(O.GIT_HOOK_INSTALL_FAILED,be.HOOK_FILE_WRITE_FAILED,i)}}async makeHookExecutable(e,r){try{let n=await this.resolveHooksDir(e);await sr.chmod(Ke.join(n,r),493)}catch(n){throw S.wrap(O.GIT_HOOK_INSTALL_FAILED,be.HOOK_FILE_CHMOD_FAILED,n)}}async listTrackedFilesWithBlobHash(e){let r=new Map;try{let{stdout:n}=await de("git",[pe.LS_FILES,ne.STAGED],{cwd:e,maxBuffer:67108864});for(let i of n.split(`
|
|
6
6
|
`)){if(!i.trim())continue;let[o,s]=i.split(" "),a=o.split(" ")[1];s&&a&&r.set(s,a)}return r}catch(n){throw S.wrap(O.GIT_COMMAND_FAILED,be.LS_FILES_STAGED_FAILED,n)}}async listUntrackedFiles(e){try{let{stdout:r}=await de("git",[pe.LS_FILES,ne.OTHERS,ne.EXCLUDE_STANDARD],{cwd:e,maxBuffer:67108864});return r.split(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docuvia",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Codebase Knowledge Evolver — maintains a local knowledge graph of your workspace: modules, dependencies, blast radius, and recorded architectural decisions.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/dist/chunk-QCEENSRK.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
import{ba as F,fa as u,ga as v,ha as Y,ia as k,ja as G,ka as H,la as B,ma as Q,na as V,oa as j,pa as W,qa as q}from"./chunk-3WFKL5P6.js";var J="anonymous";var Pt="AstWorkerCrashError",Ft={ARGUMENTS:"arguments",VARIABLE_DECLARATOR:"variable_declarator",ASSIGNMENT_EXPRESSION:"assignment_expression",PAIR:"pair",PUBLIC_FIELD_DEFINITION:"public_field_definition",IMPL_ITEM:"impl_item",TYPE_IDENTIFIER:"type_identifier",POINTER_TYPE:"pointer_type",QUALIFIED_IDENTIFIER:"qualified_identifier"},gt={PARSE_FAILURE_NO_DETAIL:"parse returned success=false with no error detail",PARSE_FAILURE_RESULT:"AST parse returned failure result",PARSE_THREW:"AST parse threw (worker crash or rejection)",WORKER_UNCAUGHT_EXCEPTION:"AST worker uncaughtException",WORKER_UNHANDLED_REJECTION:"AST worker unhandledRejection",WORKER_EXITED_DURING_SHUTDOWN:"AST worker exited during pool shutdown (expected)",WORKER_CRASHED_EXITED:"AST worker crashed/exited",WORKER_EXITED_UNEXPECTEDLY:"Worker exited unexpectedly",UNKNOWN_FILE:"(unknown file)",PARSE_CACHE_HIT:"AST parse cache hit",CACHE_METRICS_AND_QUEUE_PERFORMANCE:"AST cache metrics and queue performance",TASK_TIMED_OUT_TERMINATING:"AST worker task timed out \u2014 terminating stuck worker",WORKER_TERMINATE_FAILED:"AST worker terminate() rejected \u2014 forced termination did not complete",QUERIED_VIA_LANGUAGE_PROVIDER:"Queried nodes using @workspace/ast-core LanguageProvider",ANONYMOUS_NAME:J,workerCrashWhileParsing:n=>`AST worker crashed while parsing ${n}: `,taskTimedOutAfterMs:(n,e)=>`AST worker task ${n} timed out after ${e}ms`,workerExitedWithCode:n=>`Worker exited with code ${n}`,noLanguageProviderForExtension:n=>`No language provider registered for extension ${n}`,wasmNotFound:(n,e)=>`WASM not found for ${n}, AST parsing skipped (Regex fallback used). Tried paths: ${e}`,parsedViaTreeSitter:n=>`Parsed via web-tree-sitter (nodes: ${n})`,providerQueryFailed:n=>`ast-core provider query failed: ${n}`};var p={FILE:"file",CLASS:"class",FUNCTION:"function",CALL:"call",METHOD_CALL:"method_call",IMPORT:"import",API_CONTRACT:"api_contract"};var N={IDENTIFIER:"identifier",SCOPED_IDENTIFIER:"scoped_identifier",QUALIFIED_IDENTIFIER:"qualified_identifier",DOTTED_NAME:"dotted_name",ALIASED_IMPORT:"aliased_import",USE_AS_CLAUSE:"use_as_clause",USE_WILDCARD:"use_wildcard",SCOPED_USE_LIST:"scoped_use_list",USE_LIST:"use_list",DOT:"dot",BLANK_IDENTIFIER:"blank_identifier",NAMESPACE_USE_DECLARATION:"namespace_use_declaration",INCLUDE_EXPRESSION:"include_expression",INCLUDE_ONCE_EXPRESSION:"include_once_expression",REQUIRE_EXPRESSION:"require_expression",REQUIRE_ONCE_EXPRESSION:"require_once_expression",IMPORT_STATEMENT:"import_statement",IMPORT_FROM_STATEMENT:"import_from_statement",USE_DECLARATION:"use_declaration",IMPORT_DECLARATION:"import_declaration",PREPROC_INCLUDE:"preproc_include",USING_DECLARATION:"using_declaration",CALL:"call",USING_DIRECTIVE:"using_directive",CALL_EXPRESSION:"call_expression",METHOD_INVOCATION:"method_invocation",EXPLICIT_CONSTRUCTOR_INVOCATION:"explicit_constructor_invocation",COMMAND_CALL:"command_call",FUNCTION_CALL_EXPRESSION:"function_call_expression",MEMBER_CALL_EXPRESSION:"member_call_expression",SCOPED_CALL_EXPRESSION:"scoped_call_expression",INVOCATION_EXPRESSION:"invocation_expression",OBJECT_CREATION_EXPRESSION:"object_creation_expression",MEMBER_EXPRESSION:"member_expression",ATTRIBUTE:"attribute",MEMBER_ACCESS_EXPRESSION:"member_access_expression",VARIABLE_DECLARATION:"variable_declaration",LEXICAL_DECLARATION:"lexical_declaration",VARIABLE_DECLARATOR:"variable_declarator",ARROW_FUNCTION:"arrow_function",FUNCTION_DECLARATION:"function_declaration",METHOD_DEFINITION:"method_definition",CLASS_DECLARATION:"class_declaration",INTERFACE_DECLARATION:"interface_declaration",TYPE_ALIAS_DECLARATION:"type_alias_declaration",EXPORT_STATEMENT:"export_statement"};var d="*",_e=["require","require_relative","load"],K="this",Ae="new";function wt(n){let e=[];for(let o of n){let r=o.type,i=pe[r];if(i){i(o,e);continue}if(be(r)){Ye(o,r,e);continue}Ge(o,e)}return e}var pe={[N.IMPORT_STATEMENT]:Ce,[N.EXPORT_STATEMENT]:Oe,[N.IMPORT_FROM_STATEMENT]:Se,[N.USE_DECLARATION]:$e,[N.IMPORT_DECLARATION]:Ue,[N.PREPROC_INCLUDE]:Me,[N.USING_DECLARATION]:ye,[N.CALL]:we,[N.USING_DIRECTIVE]:ke};function Ce(n,e){let o=n.descendantsOfType("string").pop();if(!o)return;let r=o.text.replace(/['"]/g,""),i=n.descendantsOfType("namespace_import")[0];if(i){let l=i.descendantsOfType("identifier")[0];l&&e.push({localName:l.text,originalName:d,modulePath:r});return}let s=n.descendantsOfType("named_imports")[0];if(s){let l=s.descendantsOfType("import_specifier");for(let I of l){if(!I)continue;let E=I.childForFieldName("name"),f=I.childForFieldName("alias");if(E){let S=E.text,C=f?f.text:S;e.push({localName:C,originalName:S,modulePath:r})}}return}let a=n.descendantsOfType("identifier")[0];a&&e.push({localName:a.text,originalName:d,modulePath:r})}function Oe(n,e){let o=n.childForFieldName("source");if(!o)return;let r=o.text.replace(/['"]/g,""),i=n.descendantsOfType("export_clause")[0];if(i)for(let s of i.descendantsOfType("export_specifier")){if(!s)continue;let a=s.childForFieldName("name");if(!a)continue;let l=s.childForFieldName("alias");e.push({localName:l?l.text:a.text,originalName:a.text,modulePath:r,viaReexport:!0})}}function Se(n,e){let o=n.childForFieldName("module_name");if(!o)return;let r=o.text;if(n.descendantsOfType("wildcard_import")[0])return;n.childForFieldName("name")&&He(n,r,e)}function Re(n,e){let o=n.childForFieldName("path"),r=n.childForFieldName("alias");o&&r&&e.push({localName:r.text,originalName:d,modulePath:o.text})}function Le(n,e,o){let r=n.childForFieldName("path"),i=n.childForFieldName("alias");r&&i&&o.push({localName:i.text,originalName:d,modulePath:`${e}::${r.text}`})}function he(n,e,o){let r=n.descendantsOfType("identifier").pop();r&&o.push({localName:r.text,originalName:d,modulePath:`${e}::${n.text}`})}function De(n,e,o){if(n.type===N.USE_AS_CLAUSE){Le(n,e,o);return}if(n.type===N.IDENTIFIER){o.push({localName:n.text,originalName:d,modulePath:`${e}::${n.text}`});return}n.type===N.SCOPED_IDENTIFIER&&he(n,e,o)}function Pe(n,e){let o=n.childForFieldName("path"),r=n.childForFieldName("list");if(!o||!r)return;let i=o.text;for(let s of r.namedChildren)s&&De(s,i,e)}function Fe(n,e){let o=n.descendantsOfType("identifier"),r=o[o.length-1];r&&e.push({localName:r.text,originalName:d,modulePath:n.text})}function ge(n,e){for(let o of n.namedChildren)o&&o.type===N.IDENTIFIER&&e.push({localName:o.text,originalName:d,modulePath:o.text})}function $e(n,e){let o=n.childForFieldName("argument");if(o){if(o.type===N.USE_AS_CLAUSE){Re(o,e);return}if(o.type!==N.USE_WILDCARD){if(o.type===N.SCOPED_USE_LIST){Pe(o,e);return}if(o.type===N.SCOPED_IDENTIFIER||o.type===N.IDENTIFIER){Fe(o,e);return}o.type===N.USE_LIST&&ge(o,e)}}}function xe(n,e){let o=n.childForFieldName("path");if(!o)return;let r=o.text.replace(/['"]/g,""),i=n.childForFieldName("name");if(i){if(i.type===N.DOT||i.type===N.BLANK_IDENTIFIER)return;e.push({localName:i.text,originalName:d,modulePath:r})}else{let s=r.split("/"),a=s[s.length-1];e.push({localName:a,originalName:d,modulePath:r})}}function Ue(n,e){let o=n.descendantsOfType("import_spec_list")[0];if(!o)return;let r=o.descendantsOfType("import_spec");for(let i of r)i&&xe(i,e)}function Me(n,e){let o=n.childForFieldName("path");if(o){let r=o.text.replace(/[<>"']/g,"");e.push({localName:r,originalName:d,modulePath:r})}}function ye(n,e){let o=n.namedChildren;for(let r of o)if(r)if(r.type===N.QUALIFIED_IDENTIFIER){let i=r.descendantsOfType("identifier"),s=i[i.length-1];s&&e.push({localName:s.text,originalName:d,modulePath:r.text})}else r.type===N.IDENTIFIER&&e.push({localName:r.text,originalName:d,modulePath:r.text})}function we(n,e){let o=n.childForFieldName("method");if(!o)return;let r=o.text;if(!_e.includes(r))return;let i=n.childForFieldName("arguments");if(!i)return;let s=i.descendantsOfType("string_content")[0]||i.descendantsOfType("string")[0];if(!s)return;let a=s.text.replace(/['"]/g,""),l=a.replace(/\.rb$/,"");e.push({localName:l,originalName:d,modulePath:a})}function be(n){return n===N.NAMESPACE_USE_DECLARATION||n===N.INCLUDE_EXPRESSION||n===N.INCLUDE_ONCE_EXPRESSION||n===N.REQUIRE_EXPRESSION||n===N.REQUIRE_ONCE_EXPRESSION}function Xe(n,e){let o=n.descendantsOfType("qualified_name")[0]||n.descendantsOfType("name")[0];if(o){let r=o.text,i=r.split("\\"),s=i[i.length-1];e.push({localName:s,originalName:d,modulePath:r})}}function ve(n,e){let o=n.descendantsOfType("string")[0]||n.descendantsOfType("string_content")[0];if(o){let r=o.text.replace(/['"]/g,"");e.push({localName:r,originalName:d,modulePath:r})}}function Ye(n,e,o){e===N.NAMESPACE_USE_DECLARATION?Xe(n,o):ve(n,o)}function ke(n,e){let o=n.descendantsOfType("qualified_name")[0]||n.descendantsOfType("identifier")[0];if(o){let r=o.text,i=r.split("."),s=i[i.length-1];e.push({localName:s,originalName:d,modulePath:r})}}function Ge(n,e){let o=n.descendantsOfType("string").pop();if(!o)return;let r=o.text.replace(/['"]/g,""),i=n.descendantsOfType("identifier");for(let s of i)s&&(e.some(a=>a.localName===s.text)||e.push({localName:s.text,originalName:s.text,modulePath:r}))}function He(n,e,o){if(n.childForFieldName("name")){for(let i of n.namedChildren)if(i)if(i.type===N.ALIASED_IMPORT){let s=i.childForFieldName("name"),a=i.childForFieldName("alias");s&&a&&o.push({localName:a.text,originalName:s.text,modulePath:e})}else if(i.type===N.DOTTED_NAME){let s=i.descendantsOfType("identifier"),a=s[s.length-1];a&&o.push({localName:a.text,originalName:i.text,modulePath:e})}else i.type===N.IDENTIFIER&&o.push({localName:i.text,originalName:i.text,modulePath:e})}}function Be(n){let e=n.childForFieldName("function");if(!e)return{isMethodCall:!1,methodName:""};if(e.type===N.MEMBER_EXPRESSION){let o=e.childForFieldName("property"),r=e.childForFieldName("object");if(o)return{isMethodCall:!0,methodName:o.text,objectName:r?.text}}return{isMethodCall:!1,methodName:e.text}}function Qe(n){let e=n.childForFieldName("function");if(!e)return{isMethodCall:!1,methodName:""};if(e.type===N.ATTRIBUTE){let o=e.childForFieldName("attribute"),r=e.childForFieldName("object");if(o)return{isMethodCall:!0,methodName:o.text,objectName:r?.text}}return{isMethodCall:!1,methodName:e.text}}function Ve(n){let e=n.childForFieldName("name"),o=n.childForFieldName("object");if(e)return{isMethodCall:!0,methodName:e.text,objectName:o?.text}}function je(n){return{isMethodCall:!0,methodName:n.childForFieldName("constructor")?.text||K,objectName:K}}function We(n){let e=n.childForFieldName("method");if(!e)return;let o=n.childForFieldName("receiver");return o?{isMethodCall:!0,methodName:e.text,objectName:o.text}:{isMethodCall:!1,methodName:e.text}}function M(n){let e=n.type,r=n.childForFieldName("name")?.text||"";if(e===N.MEMBER_CALL_EXPRESSION){let i=n.childForFieldName("object");return{isMethodCall:!0,methodName:r,objectName:i?.text}}if(e===N.SCOPED_CALL_EXPRESSION){let i=n.childForFieldName("scope");return{isMethodCall:!0,methodName:r,objectName:i?.text}}return{isMethodCall:!1,methodName:r}}function qe(n){let e=n.childForFieldName("function")||n.namedChildren[0];if(e&&e.type===N.MEMBER_ACCESS_EXPRESSION){let o=e.childForFieldName("name"),r=e.childForFieldName("expression");if(o)return{isMethodCall:!0,methodName:o.text,objectName:r?.text}}if(e)return{isMethodCall:!1,methodName:e.text}}function Je(n){let e=n.childForFieldName("type");return{isMethodCall:!0,methodName:Ae,objectName:e?.text}}var bt={[N.CALL_EXPRESSION]:Be,[N.CALL]:Qe,[N.METHOD_INVOCATION]:Ve,[N.EXPLICIT_CONSTRUCTOR_INVOCATION]:je,[N.COMMAND_CALL]:We,[N.FUNCTION_CALL_EXPRESSION]:M,[N.MEMBER_CALL_EXPRESSION]:M,[N.SCOPED_CALL_EXPRESSION]:M,[N.INVOCATION_EXPRESSION]:qe,[N.OBJECT_CREATION_EXPRESSION]:Je};var Ke=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,L=class n extends Date{#t=!1;#n=!1;#e=null;constructor(e){let o=!0,r=!0,i="Z";if(typeof e=="string"){let s=e.match(Ke);s?(s[1]||(o=!1,e=`0000-01-01T${e}`),r=!!s[2],r&&e[10]===" "&&(e=e.replace(" ","T")),s[2]&&+s[2]>23?e="":(i=s[3]||null,e=e.toUpperCase(),!i&&r&&(e+="Z"))):e=""}super(e),isNaN(this.getTime())||(this.#t=o,this.#n=r,this.#e=i)}isDateTime(){return this.#t&&this.#n}isLocal(){return!this.#t||!this.#n||!this.#e}isDate(){return this.#t&&!this.#n}isTime(){return this.#n&&!this.#t}isValid(){return this.#t||this.#n}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#e===null)return e.slice(0,-1);if(this.#e==="Z")return e;let o=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return o=this.#e[0]==="-"?o:-o,new Date(this.getTime()-o*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(e,o="Z"){let r=new n(e);return r.#e=o,r}static wrapAsLocalDateTime(e){let o=new n(e);return o.#e=null,o}static wrapAsLocalDate(e){let o=new n(e);return o.#n=!1,o.#e=null,o}static wrapAsLocalTime(e){let o=new n(e);return o.#t=!1,o.#e=null,o}};function ze(n,e){let o=n.slice(0,e).split(/\r\n|\n|\r/g);return[o.length,o.pop().length+1]}function Ze(n,e,o){let r=n.split(/\r\n|\n|\r/g),i="",s=(Math.log10(e+1)|0)+1;for(let a=e-1;a<=e+1;a++){let l=r[a-1];l&&(i+=a.toString().padEnd(s," "),i+=": ",i+=l,i+=`
|
|
3
|
-
`,a===e&&(i+=" ".repeat(s+o+2),i+=`^
|
|
4
|
-
`))}return i}var T=class extends Error{line;column;codeblock;constructor(e,o){let[r,i]=ze(o.toml,o.ptr),s=Ze(o.toml,r,i);super(`Invalid TOML document: ${e}
|
|
5
|
-
|
|
6
|
-
${s}`,o),this.line=r,this.column=i,this.codeblock=s}};var et=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,tt=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,nt=/^[+-]?0[0-9_]/;function g(n,e){let o=n[e++],r=o,i=o==="'",s=o===n[e]&&o===n[e+1];s&&(n[e+=2]===`
|
|
7
|
-
`?e++:n[e]==="\r"&&n[e+1]===`
|
|
8
|
-
`&&(e+=2));let a="",l=e,I=0;for(let E=e;E<n.length;E++)if(o=n[E],s&&(o===`
|
|
9
|
-
`||o==="\r"&&n[E+1]===`
|
|
10
|
-
`))I=I&&3;else{if(o<" "&&o!==" "||o==="\x7F")throw new T("control characters are not allowed in strings",{toml:n,ptr:E});if((!I||I===3)&&o===r&&(!s||n[E+1]===r&&n[E+2]===r))return s&&(n[E+3]===r&&E++,n[E+3]===r&&E++),[I?a:a+n.slice(l,E),E+(s?3:1)];if(!I)!i&&o==="\\"&&(a+=n.slice(l,l=E),I=1);else if(I===1)if(o==="x"||o==="u"||o==="U"){let f=0,S=o==="x"?2:o==="u"?4:8;for(let C=0;C<S;C++,E++){let m=n.charCodeAt(E+1),O=m>=48&&m<=57?m-48:m>=65&&m<=70?m-65+10:m>=97&&m<=102?m-97+10:-1;if(O<0)throw new T("invalid non-hex character in unicode escape",{toml:n,ptr:E+1});f=f<<4|O}if(f<0||f>1114111||f>=55296&&f<=57343)throw new T("invalid unicode escape",{toml:n,ptr:E});a+=String.fromCodePoint(f),l=E+1,I=0}else if(o===" "||o===" ")I=2;else{if(o==="b")a+="\b";else if(o==="t")a+=" ";else if(o==="n")a+=`
|
|
11
|
-
`;else if(o==="f")a+="\f";else if(o==="r")a+="\r";else if(o==="e")a+="\x1B";else if(o==='"')a+='"';else if(o==="\\")a+="\\";else throw new T("unrecognized escape sequence",{toml:n,ptr:E});l=E+1,I=0}else if(o!==" "&&o!==" "){if(I===2)throw new T("invalid escape: only line-ending whitespace may be escaped",{toml:n,ptr:l});I=!i&&o==="\\"?1:0,l=E}}throw new T("unfinished string",{toml:n,ptr:e})}function z(n,e,o,r){if(n==="true")return!0;if(n==="false")return!1;if(n==="-inf")return-1/0;if(n==="inf"||n==="+inf")return 1/0;if(n==="nan"||n==="+nan"||n==="-nan")return NaN;if(n==="-0")return r?0n:0;let i=et.test(n);if(i||tt.test(n)){if(nt.test(n))throw new T("leading zeroes are not allowed",{toml:e,ptr:o});n=n.replace(/_/g,"");let a=+n;if(isNaN(a))throw new T("invalid number",{toml:e,ptr:o});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new T("integer value cannot be represented losslessly",{toml:e,ptr:o});(i||r===!0)&&(a=BigInt(n))}return a}let s=new L(n);if(!s.isValid())throw new T("invalid value",{toml:e,ptr:o});return s}function $(n,e=0,o=n.length){let r=n.indexOf(`
|
|
12
|
-
`,e);return n[r-1]==="\r"&&r--,r<=o?r:-1}function R(n,e){for(let o=e;o<n.length;o++){let r=n[o];if(r===`
|
|
13
|
-
`)return o;if(r==="\r"&&n[o+1]===`
|
|
14
|
-
`)return o+1;if(r<" "&&r!==" "||r==="\x7F")throw new T("control characters are not allowed in comments",{toml:n,ptr:e})}return n.length}function A(n,e,o,r){let i;for(;;){for(;(i=n[e])===" "||i===" "||!o&&(i===`
|
|
15
|
-
`||i==="\r"&&n[e+1]===`
|
|
16
|
-
`);)e++;if(r||i!=="#")break;e=R(n,e)}return e}function Z(n,e,o,r,i=!1){if(!r)return e=$(n,e),e<0?n.length:e;for(let s=e;s<n.length;s++){let a=n[s];if(a==="#")s=$(n,s);else{if(a===o)return s+1;if(a===r||i&&(a===`
|
|
17
|
-
`||a==="\r"&&n[s+1]===`
|
|
18
|
-
`))return s}}throw new T("cannot find end of structure",{toml:n,ptr:e})}function ot(n,e,o){let r=n.slice(e,o),i=r.indexOf("#");return i>-1&&(R(n,i),r=r.slice(0,i)),[r.trimEnd(),i]}function h(n,e,o,r,i){if(r===0)throw new T("document contains excessively nested structures. aborting.",{toml:n,ptr:e});let s=n[e];if(s==="["||s==="{"){let[I,E]=s==="["?te(n,e,r,i):ee(n,e,r,i);if(o){if(E=A(n,E),n[E]===",")E++;else if(n[E]!==o)throw new T("expected comma or end of structure",{toml:n,ptr:E})}return[I,E]}if(s==='"'||s==="'"){let[I,E]=g(n,e);if(o){if(E=A(n,E),n[E]&&n[E]!==","&&n[E]!==o&&n[E]!==`
|
|
19
|
-
`&&n[E]!=="\r")throw new T("unexpected character encountered",{toml:n,ptr:E});n[E]===","&&E++}return[I,E]}let a=Z(n,e,",",o),l=ot(n,e,a-(n[a-1]===","?1:0));if(!l[0])throw new T("incomplete key-value declaration: no value specified",{toml:n,ptr:e});return o&&l[1]>-1&&(a=A(n,e+l[1]),n[a]===","&&a++),[z(l[0],n,e,i),a]}var rt=/^[a-zA-Z0-9-_]+[ \t]*$/;function x(n,e,o="="){let r=e-1,i=[],s=n.indexOf(o,e);if(s<0)throw new T("incomplete key-value: cannot find end of key",{toml:n,ptr:e});do{let a=n[e=++r];if(a!==" "&&a!==" ")if(a==='"'||a==="'"){if(a===n[e+1]&&a===n[e+2])throw new T("multiline strings are not allowed in keys",{toml:n,ptr:e});let[l,I]=g(n,e);r=n.indexOf(".",I);let E=n.slice(I,r<0||r>s?s:r),f=$(E);if(f>-1)throw new T("newlines are not allowed in keys",{toml:n,ptr:e+r+f});if(E.trimStart())throw new T("found extra tokens after the string part",{toml:n,ptr:I});if(s<I&&(s=n.indexOf(o,I),s<0))throw new T("incomplete key-value: cannot find end of key",{toml:n,ptr:e});i.push(l)}else{r=n.indexOf(".",e);let l=n.slice(e,r<0||r>s?s:r);if(!rt.test(l))throw new T("only letter, numbers, dashes and underscores are allowed in keys",{toml:n,ptr:e});i.push(l.trimEnd())}}while(r+1&&r<s);return[i,A(n,s+1,!0,!0)]}function ee(n,e,o,r){let i={},s=new Set,a;for(e++;(a=n[e++])!=="}"&&a;){if(a===",")throw new T("expected value, found comma",{toml:n,ptr:e-1});if(a==="#")e=R(n,e);else if(a!==" "&&a!==" "&&a!==`
|
|
20
|
-
`&&a!=="\r"){let l,I=i,E=!1,[f,S]=x(n,e-1);for(let O=0;O<f.length;O++){if(O&&(I=E?I[l]:I[l]={}),l=f[O],(E=Object.hasOwn(I,l))&&(typeof I[l]!="object"||s.has(I[l])))throw new T("trying to redefine an already defined value",{toml:n,ptr:e});!E&&l==="__proto__"&&Object.defineProperty(I,l,{enumerable:!0,configurable:!0,writable:!0})}if(E)throw new T("trying to redefine an already defined value",{toml:n,ptr:e});let[C,m]=h(n,S,"}",o-1,r);s.add(C),I[l]=C,e=m}}if(!a)throw new T("unfinished table encountered",{toml:n,ptr:e});return[i,e]}function te(n,e,o,r){let i=[],s;for(e++;(s=n[e++])!=="]"&&s;){if(s===",")throw new T("expected value, found comma",{toml:n,ptr:e-1});if(s==="#")e=R(n,e);else if(s!==" "&&s!==" "&&s!==`
|
|
21
|
-
`&&s!=="\r"){let a=h(n,e-1,"]",o-1,r);i.push(a[0]),e=a[1]}}if(!s)throw new T("unfinished array encountered",{toml:n,ptr:e});return[i,e]}function ne(n,e,o,r){let i=e,s=o,a,l=!1,I;for(let E=0;E<n.length;E++){if(E){if(i=l?i[a]:i[a]={},s=(I=s[a]).c,r===0&&(I.t===1||I.t===2))return null;if(I.t===2){let f=i.length-1;i=i[f],s=s[f].c}}if(a=n[E],(l=Object.hasOwn(i,a))&&s[a]?.t===0&&s[a]?.d)return null;l||(a==="__proto__"&&(Object.defineProperty(i,a,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(s,a,{enumerable:!0,configurable:!0,writable:!0})),s[a]={t:E<n.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(I=s[a],I.t!==r&&!(r===1&&I.t===3)||(r===2&&(I.d||(I.d=!0,i[a]=[]),i[a].push(i={}),I.c[I.i++]=I={t:1,d:!1,i:0,c:{}}),I.d))return null;if(I.d=!0,r===1)i=l?i[a]:i[a]={};else if(r===0&&l)return null;return[a,i,I.c]}function y(n,{maxDepth:e=1e3,integersAsBigInt:o}={}){let r={},i={},s=r,a=i;for(let l=A(n,0);l<n.length;){if(n[l]==="["){let I=n[++l]==="[",E=x(n,l+=+I,"]");if(I){if(n[E[1]-1]!=="]")throw new T("expected end of table declaration",{toml:n,ptr:E[1]-1});E[1]++}let f=ne(E[0],r,i,I?2:1);if(!f)throw new T("trying to redefine an already defined table or value",{toml:n,ptr:l});a=f[2],s=f[1],l=E[1]}else{let I=x(n,l),E=ne(I[0],s,a,0);if(!E)throw new T("trying to redefine an already defined table or value",{toml:n,ptr:l});let f=h(n,I[1],void 0,e,o);E[1][E[0]]=f[0],l=f[1]}if(l=A(n,l,!0),n[l]&&n[l]!==`
|
|
22
|
-
`&&n[l]!=="\r")throw new T("each key-value declaration must be followed by an end-of-line",{toml:n,ptr:l});l=A(n,l)}return r}import{Query as it}from"web-tree-sitter";var w={IMPLEMENTS:"implements",EXTENDS:"extends",VARIABLE:"variable"},D=class{buildScopeMap(e){return this.config.buildScopeMap?this.config.buildScopeMap(e):new Map}classifyCall(e){return this.config.classifyCall?this.config.classifyCall(e):{isMethodCall:!1,methodName:e.text}}wasm_file;config;compiledQueries=null;constructor(e){this.config=e,this.wasm_file=e.wasm_file}initQueries(e){if(this.compiledQueries||!this.config.queries)return;let o=this.config.queries;this.compiledQueries={classes:this.compileQuery(e,o.classes),functions:this.compileQuery(e,o.functions),variables:this.compileQuery(e,o.variables),imports:this.compileQuery(e,o.imports),calls:this.compileQuery(e,o.calls),implements:this.compileQuery(e,o.implements),extends:this.compileQuery(e,o.extends)}}compileQuery(e,o){if(o)try{return new it(e,o)}catch{return}}deleteQueries(){this.compiledQueries&&(this.compiledQueries.classes?.delete(),this.compiledQueries.functions?.delete(),this.compiledQueries.variables?.delete(),this.compiledQueries.imports?.delete(),this.compiledQueries.calls?.delete(),this.compiledQueries.implements?.delete(),this.compiledQueries.extends?.delete(),this.compiledQueries=null)}captureNodes(e,o,r){if(!r)return[];let i=r.captures(e),s=[];for(let a of i)(o.length===0||o.includes(a.name))&&s.push(a.node);return s}extractClasses(e){return this.extractNodes(e,this.compiledQueries?.classes,[p.CLASS],this.config.classes)}extractFunctions(e){return this.extractNodes(e,this.compiledQueries?.functions,[p.FUNCTION],this.config.functions)}extractVariables(e){return this.extractNodes(e,this.compiledQueries?.variables,[w.VARIABLE],[])}extractImports(e){return this.extractNodes(e,this.compiledQueries?.imports,[p.IMPORT],this.config.imports)}extractCalls(e){return this.extractNodes(e,this.compiledQueries?.calls,[p.CALL],this.config.calls)}extractImplements(e){return this.extractNodes(e,this.compiledQueries?.implements,[w.IMPLEMENTS],this.config.implements||[])}extractExtends(e){return this.extractNodes(e,this.compiledQueries?.extends,[w.EXTENDS],this.config.extends||[])}extractNodes(e,o,r,i){if(o)return this.captureNodes(e,r,o);let s=[];for(let a of i)s.push(...e.descendantsOfType(a).filter(Boolean));return s}};var oe="languages.toml";function re(n){return Array.isArray(n)&&n.every(e=>typeof e=="string")}var st=["extensions","imports","classes","functions","calls"],at=["implements","extends"];function ct(n){if(!n||typeof n!="object")return!1;let e=n;return typeof e.wasm_file!="string"?!1:st.every(o=>re(e[o]))&&at.every(o=>{let r=e[o];return r==null||re(r)})}function lt(n){if(!n||typeof n!="object")return!1;let e=n;return!(!e.languages||typeof e.languages!="object"||!Object.values(e.languages).every(ct))}var U=class n{config;extToProviderMap;constructor(e){this.config=e||{languages:{}},this.extToProviderMap=new Map,this.buildCache()}buildCache(){this.extToProviderMap.clear();for(let[e,o]of Object.entries(this.config.languages)){let r=new D(o);for(let i of o.extensions)this.extToProviderMap.set(i,r)}}static loadFromString(e,o){let r=o||{languages:{}};if(!e)return new n(r);try{let i=y(e);if(lt(i)){let s={...r.languages,...i.languages};return new n({languages:s})}}catch{}return new n(r)}static async load(e,o){let r=o||{languages:{}};try{let i=typeof globalThis<"u"?globalThis.process:void 0;if(i&&i.versions&&i.versions.node){let s=await import("fs/promises"),a=await import("path"),l=e?a.resolve(e,oe):a.resolve(i.cwd(),oe);try{await s.access(l);let I=await s.readFile(l,F);return n.loadFromString(I,r)}catch{}}}catch{}return new n(r)}getProviderForExtension(e){return this.extToProviderMap.get(e)}registerProvider(e,o){for(let r of e)this.extToProviderMap.set(r,o)}getConfig(){return this.config}};var c={CLASS:"class",FUNCTION:"function",VARIABLE:"variable",IMPORT:"import",CALL:"call",IMPLEMENTS:"implements",EXTENDS:"extends"};var t={IDENTIFIER:"identifier",TYPE_IDENTIFIER:"type_identifier",CALL:"call",CALL_EXPRESSION:"call_expression",CLASS_DECLARATION:"class_declaration",ABSTRACT_CLASS_DECLARATION:"abstract_class_declaration",INTERFACE_DECLARATION:"interface_declaration",ENUM_DECLARATION:"enum_declaration",METHOD_DECLARATION:"method_declaration",METHOD_DEFINITION:"method_definition",FUNCTION_DECLARATION:"function_declaration",FUNCTION_DEFINITION:"function_definition",ARROW_FUNCTION:"arrow_function",MEMBER_EXPRESSION:"member_expression",IMPORT_STATEMENT:"import_statement",IMPORT_DECLARATION:"import_declaration",USE_DECLARATION:"use_declaration",ATTRIBUTE:"attribute",STRUCT_SPECIFIER:"struct_specifier",ENUM_SPECIFIER:"enum_specifier",UNION_SPECIFIER:"union_specifier",TYPE_DEFINITION:"type_definition",FUNCTION_DECLARATOR:"function_declarator",CLASS_SPECIFIER:"class_specifier",FIELD_EXPRESSION:"field_expression",PREPROC_INCLUDE:"preproc_include",USING_DECLARATION:"using_declaration",STRUCT_DECLARATION:"struct_declaration",RECORD_DECLARATION:"record_declaration",CONSTRUCTOR_DECLARATION:"constructor_declaration",DESTRUCTOR_DECLARATION:"destructor_declaration",CONVERSION_OPERATOR_DECLARATION:"conversion_operator_declaration",OPERATOR_DECLARATION:"operator_declaration",LOCAL_FUNCTION_STATEMENT:"local_function_statement",USING_DIRECTIVE:"using_directive",INVOCATION_EXPRESSION:"invocation_expression",OBJECT_CREATION_EXPRESSION:"object_creation_expression",BASE_LIST:"base_list",TYPE_DECLARATION:"type_declaration",TYPE_SPEC:"type_spec",FIELD_IDENTIFIER:"field_identifier",SELECTOR_EXPRESSION:"selector_expression",ANNOTATION_TYPE_DECLARATION:"annotation_type_declaration",COMPACT_CONSTRUCTOR_DECLARATION:"compact_constructor_declaration",METHOD_INVOCATION:"method_invocation",EXPLICIT_CONSTRUCTOR_INVOCATION:"explicit_constructor_invocation",SUPERCLASS:"superclass",SUPER_INTERFACES:"super_interfaces",TYPE_LIST:"type_list",GENERATOR_FUNCTION_DECLARATION:"generator_function_declaration",GENERATOR_FUNCTION:"generator_function",FUNCTION_EXPRESSION:"function_expression",PROPERTY_IDENTIFIER:"property_identifier",IMPLEMENTS_CLAUSE:"implements_clause",EXTENDS_CLAUSE:"extends_clause",TYPE_ALIAS_DECLARATION:"type_alias_declaration",CLASS_HERITAGE:"class_heritage",NAMESPACE_USE_DECLARATION:"namespace_use_declaration",INCLUDE_EXPRESSION:"include_expression",INCLUDE_ONCE_EXPRESSION:"include_once_expression",REQUIRE_EXPRESSION:"require_expression",REQUIRE_ONCE_EXPRESSION:"require_once_expression",TRAIT_DECLARATION:"trait_declaration",FUNCTION_CALL_EXPRESSION:"function_call_expression",MEMBER_CALL_EXPRESSION:"member_call_expression",SCOPED_CALL_EXPRESSION:"scoped_call_expression",NAME:"name",BASE_CLAUSE:"base_clause",CLASS_INTERFACE_CLAUSE:"class_interface_clause",IMPORT_FROM_STATEMENT:"import_from_statement",CLASS_DEFINITION:"class_definition",ARGUMENT_LIST:"argument_list",CLASS:"class",MODULE:"module",SINGLETON_CLASS:"singleton_class",METHOD:"method",SINGLETON_METHOD:"singleton_method",CONSTANT:"constant",SCOPE_RESOLUTION:"scope_resolution",BASE_CLASS_CLAUSE:"base_class_clause",QUALIFIED_IDENTIFIER:"qualified_identifier",STRUCT_ITEM:"struct_item",ENUM_ITEM:"enum_item",UNION_ITEM:"union_item",TRAIT_ITEM:"trait_item",FUNCTION_ITEM:"function_item"};var Et="tree-sitter-typescript.wasm",ie={extensions:v,wasm_file:Et,imports:[t.IMPORT_STATEMENT],classes:[t.CLASS_DECLARATION,t.ABSTRACT_CLASS_DECLARATION,t.INTERFACE_DECLARATION,t.ENUM_DECLARATION,t.TYPE_ALIAS_DECLARATION],functions:[t.FUNCTION_DECLARATION,t.METHOD_DEFINITION,t.ARROW_FUNCTION,t.FUNCTION_EXPRESSION,t.GENERATOR_FUNCTION_DECLARATION,t.GENERATOR_FUNCTION],calls:[t.CALL_EXPRESSION],implements:[t.IMPLEMENTS_CLAUSE],extends:[t.EXTENDS_CLAUSE],queries:{classes:`(${t.CLASS_DECLARATION} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.ABSTRACT_CLASS_DECLARATION} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.INTERFACE_DECLARATION} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.ENUM_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.TYPE_ALIAS_DECLARATION} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_DECLARATION}) @${c.FUNCTION} (${t.METHOD_DEFINITION}) @${c.FUNCTION} (${t.ARROW_FUNCTION}) @${c.FUNCTION} (${t.FUNCTION_EXPRESSION}) @${c.FUNCTION} (${t.GENERATOR_FUNCTION_DECLARATION}) @${c.FUNCTION} (${t.GENERATOR_FUNCTION}) @${c.FUNCTION}`,imports:`(${t.IMPORT_STATEMENT}) @${c.IMPORT} (${N.EXPORT_STATEMENT} source: (string)) @${c.IMPORT}`,variables:`(export_statement declaration: (lexical_declaration (variable_declarator name: (${t.IDENTIFIER})) @${c.VARIABLE}))`,calls:`(${t.CALL_EXPRESSION} function: [(${t.IDENTIFIER}) (${t.MEMBER_EXPRESSION})] @${c.CALL})`,implements:`(${t.IMPLEMENTS_CLAUSE} (_) @${c.IMPLEMENTS})`,extends:`(${t.EXTENDS_CLAUSE} value: (_) @${c.EXTENDS})`}};var Nt="tree-sitter-javascript.wasm",se={extensions:Y,wasm_file:Nt,imports:[t.IMPORT_STATEMENT],classes:[t.CLASS_DECLARATION],functions:[t.FUNCTION_DECLARATION,t.METHOD_DEFINITION,t.ARROW_FUNCTION,t.FUNCTION_EXPRESSION,t.GENERATOR_FUNCTION_DECLARATION,t.GENERATOR_FUNCTION],calls:[t.CALL_EXPRESSION],extends:[t.CLASS_HERITAGE],queries:{classes:`(${t.CLASS_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_DECLARATION}) @${c.FUNCTION} (${t.METHOD_DEFINITION}) @${c.FUNCTION} (${t.ARROW_FUNCTION}) @${c.FUNCTION} (${t.FUNCTION_EXPRESSION}) @${c.FUNCTION} (${t.GENERATOR_FUNCTION_DECLARATION}) @${c.FUNCTION} (${t.GENERATOR_FUNCTION}) @${c.FUNCTION}`,imports:`(${t.IMPORT_STATEMENT}) @${c.IMPORT} (${N.EXPORT_STATEMENT} source: (string)) @${c.IMPORT}`,variables:`(export_statement declaration: (lexical_declaration (variable_declarator name: (${t.IDENTIFIER})) @${c.VARIABLE}))`,calls:`(${t.CALL_EXPRESSION} function: [(${t.IDENTIFIER}) (${t.MEMBER_EXPRESSION})] @${c.CALL})`,extends:`(${t.CLASS_HERITAGE} "extends" (_) @${c.EXTENDS})`}};var It="tree-sitter-python.wasm",ae={extensions:k,wasm_file:It,imports:[t.IMPORT_STATEMENT,t.IMPORT_FROM_STATEMENT],classes:[t.CLASS_DEFINITION],functions:[t.FUNCTION_DEFINITION],calls:[t.CALL],extends:[t.CLASS_DEFINITION],queries:{classes:`(${t.CLASS_DEFINITION} name: (${t.IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_DEFINITION} name: (${t.IDENTIFIER})) @${c.FUNCTION}`,imports:`(${t.IMPORT_STATEMENT}) @${c.IMPORT} (${t.IMPORT_FROM_STATEMENT}) @${c.IMPORT}`,calls:`(${t.CALL} function: [(${t.IDENTIFIER}) (${t.ATTRIBUTE})] @${c.CALL})`,extends:`(${t.CLASS_DEFINITION} (${t.ARGUMENT_LIST} [(${t.IDENTIFIER}) (${t.ATTRIBUTE})] @${c.EXTENDS}))`}};var Tt="tree-sitter-rust.wasm",ce={extensions:G,wasm_file:Tt,imports:[t.USE_DECLARATION],classes:[t.STRUCT_ITEM,t.ENUM_ITEM,t.UNION_ITEM,t.TRAIT_ITEM],functions:[t.FUNCTION_ITEM],calls:[t.CALL_EXPRESSION],queries:{classes:`(${t.STRUCT_ITEM} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.ENUM_ITEM} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.UNION_ITEM} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.TRAIT_ITEM} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_ITEM} name: (${t.IDENTIFIER})) @${c.FUNCTION}`,imports:`(${t.USE_DECLARATION}) @${c.IMPORT}`,calls:`(${t.CALL_EXPRESSION} function: [(${t.IDENTIFIER}) (${t.FIELD_EXPRESSION})] @${c.CALL})`}};var ft="tree-sitter-go.wasm",le={extensions:H,wasm_file:ft,imports:[t.IMPORT_DECLARATION],classes:[t.TYPE_DECLARATION],functions:[t.FUNCTION_DECLARATION,t.METHOD_DECLARATION],calls:[t.CALL_EXPRESSION],queries:{classes:`(${t.TYPE_SPEC} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_DECLARATION} name: (${t.IDENTIFIER})) @${c.FUNCTION} (${t.METHOD_DECLARATION} name: (${t.FIELD_IDENTIFIER})) @${c.FUNCTION}`,imports:`(${t.IMPORT_DECLARATION}) @${c.IMPORT}`,calls:`(${t.CALL_EXPRESSION} function: [(${t.IDENTIFIER}) (${t.SELECTOR_EXPRESSION})] @${c.CALL})`}};var dt="tree-sitter-java.wasm",Ee={extensions:B,wasm_file:dt,imports:[t.IMPORT_DECLARATION],classes:[t.CLASS_DECLARATION,t.INTERFACE_DECLARATION,t.ENUM_DECLARATION,t.ANNOTATION_TYPE_DECLARATION,t.RECORD_DECLARATION],functions:[t.METHOD_DECLARATION,t.CONSTRUCTOR_DECLARATION,t.COMPACT_CONSTRUCTOR_DECLARATION],calls:[t.METHOD_INVOCATION,t.EXPLICIT_CONSTRUCTOR_INVOCATION],extends:[t.SUPERCLASS],implements:[t.SUPER_INTERFACES],queries:{classes:`(${t.CLASS_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.INTERFACE_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.ENUM_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.ANNOTATION_TYPE_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.RECORD_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS}`,functions:`(${t.METHOD_DECLARATION} name: (${t.IDENTIFIER})) @${c.FUNCTION} (${t.CONSTRUCTOR_DECLARATION} name: (${t.IDENTIFIER})) @${c.FUNCTION} (${t.COMPACT_CONSTRUCTOR_DECLARATION} name: (${t.IDENTIFIER})) @${c.FUNCTION}`,imports:`(${t.IMPORT_DECLARATION}) @${c.IMPORT}`,calls:`(${t.METHOD_INVOCATION} name: (${t.IDENTIFIER}) @${c.CALL}) (${t.EXPLICIT_CONSTRUCTOR_INVOCATION}) @${c.CALL}`,extends:`(${t.SUPERCLASS} (${t.TYPE_IDENTIFIER}) @${c.EXTENDS})`,implements:`(${t.SUPER_INTERFACES} (${t.TYPE_LIST} (${t.TYPE_IDENTIFIER}) @${c.IMPLEMENTS}))`}};var ut="tree-sitter-c.wasm",Ne={extensions:Q,wasm_file:ut,imports:[t.PREPROC_INCLUDE],classes:[t.STRUCT_SPECIFIER,t.ENUM_SPECIFIER,t.UNION_SPECIFIER,t.TYPE_DEFINITION],functions:[t.FUNCTION_DEFINITION],calls:[t.CALL_EXPRESSION],queries:{classes:`(${t.STRUCT_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.ENUM_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.UNION_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.TYPE_DEFINITION} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_DEFINITION} declarator: (${t.FUNCTION_DECLARATOR} declarator: (${t.IDENTIFIER}))) @${c.FUNCTION}`,imports:`(${t.PREPROC_INCLUDE}) @${c.IMPORT}`,calls:`(${t.CALL_EXPRESSION} function: (${t.IDENTIFIER}) @${c.CALL})`}};var mt="tree-sitter-cpp.wasm",Ie={extensions:V,wasm_file:mt,imports:[t.PREPROC_INCLUDE,t.USING_DECLARATION],classes:[t.CLASS_SPECIFIER,t.STRUCT_SPECIFIER,t.ENUM_SPECIFIER,t.UNION_SPECIFIER,t.TYPE_DEFINITION],functions:[t.FUNCTION_DEFINITION],calls:[t.CALL_EXPRESSION],extends:[t.BASE_CLASS_CLAUSE],queries:{classes:`(${t.CLASS_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.STRUCT_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.ENUM_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.UNION_SPECIFIER} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS} (${t.TYPE_DEFINITION} name: (${t.TYPE_IDENTIFIER})) @${c.CLASS}`,functions:`(${t.FUNCTION_DEFINITION} declarator: (${t.FUNCTION_DECLARATOR} declarator: [(${t.IDENTIFIER}) (${t.FIELD_IDENTIFIER}) (${t.QUALIFIED_IDENTIFIER})])) @${c.FUNCTION}`,imports:`(${t.PREPROC_INCLUDE}) @${c.IMPORT} (${t.USING_DECLARATION}) @${c.IMPORT}`,calls:`(${t.CALL_EXPRESSION} function: [(${t.IDENTIFIER}) (${t.FIELD_EXPRESSION})] @${c.CALL})`,extends:`(${t.BASE_CLASS_CLAUSE} (${t.TYPE_IDENTIFIER}) @${c.EXTENDS})`}};var _t="tree-sitter-ruby.wasm",Te={extensions:j,wasm_file:_t,imports:[t.CALL],classes:[t.CLASS,t.MODULE,t.SINGLETON_CLASS],functions:[t.METHOD,t.SINGLETON_METHOD],calls:[t.CALL],extends:[t.SUPERCLASS],queries:{classes:`(${t.CLASS} name: [(${t.CONSTANT}) (${t.SCOPE_RESOLUTION})]) @${c.CLASS} (${t.MODULE} name: (${t.CONSTANT})) @${c.CLASS} (${t.SINGLETON_CLASS}) @${c.CLASS}`,functions:`(${t.METHOD} name: (${t.IDENTIFIER})) @${c.FUNCTION} (${t.SINGLETON_METHOD} name: (${t.IDENTIFIER})) @${c.FUNCTION}`,imports:`((${t.CALL} method: (${t.IDENTIFIER}) @_method) @${c.IMPORT} (#match? @_method "^(require|require_relative|load)$"))`,calls:`(${t.CALL} method: (${t.IDENTIFIER}) @${c.CALL})`,extends:`(${t.SUPERCLASS} (_) @${c.EXTENDS})`}};var At="tree-sitter-php.wasm",fe={extensions:W,wasm_file:At,imports:[t.NAMESPACE_USE_DECLARATION,t.INCLUDE_EXPRESSION,t.INCLUDE_ONCE_EXPRESSION,t.REQUIRE_EXPRESSION,t.REQUIRE_ONCE_EXPRESSION],classes:[t.CLASS_DECLARATION,t.INTERFACE_DECLARATION,t.TRAIT_DECLARATION,t.ENUM_DECLARATION],functions:[t.FUNCTION_DEFINITION,t.METHOD_DECLARATION],calls:[t.FUNCTION_CALL_EXPRESSION,t.MEMBER_CALL_EXPRESSION,t.SCOPED_CALL_EXPRESSION],extends:[t.BASE_CLAUSE],implements:[t.CLASS_INTERFACE_CLAUSE],queries:{classes:`(${t.CLASS_DECLARATION} name: (${t.NAME})) @${c.CLASS} (${t.INTERFACE_DECLARATION} name: (${t.NAME})) @${c.CLASS} (${t.TRAIT_DECLARATION} name: (${t.NAME})) @${c.CLASS} (${t.ENUM_DECLARATION} name: (${t.NAME})) @${c.CLASS}`,functions:`(${t.FUNCTION_DEFINITION} name: (${t.NAME})) @${c.FUNCTION} (${t.METHOD_DECLARATION} name: (${t.NAME})) @${c.FUNCTION}`,imports:`(${t.NAMESPACE_USE_DECLARATION}) @${c.IMPORT} (${t.INCLUDE_EXPRESSION}) @${c.IMPORT} (${t.INCLUDE_ONCE_EXPRESSION}) @${c.IMPORT} (${t.REQUIRE_EXPRESSION}) @${c.IMPORT} (${t.REQUIRE_ONCE_EXPRESSION}) @${c.IMPORT}`,calls:`(${t.FUNCTION_CALL_EXPRESSION} function: (${t.NAME}) @${c.CALL}) (${t.MEMBER_CALL_EXPRESSION} name: (${t.NAME}) @${c.CALL}) (${t.SCOPED_CALL_EXPRESSION} name: (${t.NAME}) @${c.CALL})`,extends:`(${t.BASE_CLAUSE} (${t.NAME}) @${c.EXTENDS})`,implements:`(${t.CLASS_INTERFACE_CLAUSE} (${t.NAME}) @${c.IMPLEMENTS})`}};var pt="tree-sitter-c_sharp.wasm",de={extensions:q,wasm_file:pt,imports:[t.USING_DIRECTIVE],classes:[t.CLASS_DECLARATION,t.STRUCT_DECLARATION,t.INTERFACE_DECLARATION,t.ENUM_DECLARATION,t.RECORD_DECLARATION],functions:[t.METHOD_DECLARATION,t.CONSTRUCTOR_DECLARATION,t.DESTRUCTOR_DECLARATION,t.CONVERSION_OPERATOR_DECLARATION,t.OPERATOR_DECLARATION,t.LOCAL_FUNCTION_STATEMENT],calls:[t.INVOCATION_EXPRESSION,t.OBJECT_CREATION_EXPRESSION],extends:[t.BASE_LIST],queries:{classes:`(${t.CLASS_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.STRUCT_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.INTERFACE_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.ENUM_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS} (${t.RECORD_DECLARATION} name: (${t.IDENTIFIER})) @${c.CLASS}`,functions:`(${t.METHOD_DECLARATION} name: (${t.IDENTIFIER})) @${c.FUNCTION} (${t.CONSTRUCTOR_DECLARATION} name: (${t.IDENTIFIER})) @${c.FUNCTION} (${t.DESTRUCTOR_DECLARATION}) @${c.FUNCTION} (${t.CONVERSION_OPERATOR_DECLARATION}) @${c.FUNCTION} (${t.OPERATOR_DECLARATION}) @${c.FUNCTION} (${t.LOCAL_FUNCTION_STATEMENT}) @${c.FUNCTION}`,imports:`(${t.USING_DIRECTIVE}) @${c.IMPORT}`,calls:`(${t.INVOCATION_EXPRESSION}) @${c.CALL} (${t.OBJECT_CREATION_EXPRESSION}) @${c.CALL}`,extends:`(${t.BASE_LIST} (_) @${c.EXTENDS})`}};var Ct={languages:{[u.TYPESCRIPT]:ie,[u.JAVASCRIPT]:se,[u.PYTHON]:ae,[u.RUST]:ce,[u.GO]:le,[u.JAVA]:Ee,[u.C]:Ne,[u.CPP]:Ie,[u.RUBY]:Te,[u.PHP]:fe,[u.CSHARP]:de}};async function xo(n){return U.load(n,Ct)}import{Parser as vo,Language as Yo}from"web-tree-sitter";var P;(function(n){n[n.INTERNAL_LOGIC=0]="INTERNAL_LOGIC",n[n.CONTRACT_CHANGED=1]="CONTRACT_CHANGED"})(P||(P={}));var ue=new Set([N.FUNCTION_DECLARATION,N.METHOD_DEFINITION,N.ARROW_FUNCTION,N.CLASS_DECLARATION,N.INTERFACE_DECLARATION,N.TYPE_ALIAS_DECLARATION,N.EXPORT_STATEMENT,N.LEXICAL_DECLARATION,N.VARIABLE_DECLARATION]),me=class{parser;lang;constructor(e,o){this.parser=e,this.lang=o,this.parser.setLanguage(this.lang)}analyze(e,o,r){let i=this.parser.parse(e),s=this.parser.parse(o);if(!i||!s)return i&&i.delete(),s&&s.delete(),[];let a=[];try{let l=this.buildNodeIndex(i.rootNode),I=new Set;for(let E of r)a.push(...this.processChangedRange(E,s.rootNode,l,I))}finally{i&&i.delete(),s&&s.delete()}return a}processChangedRange(e,o,r,i){let s=this.getSmallestContainingNode(o,e);if(!s)return[];let a=this.findSemanticBoundary(s);if(!a)return this.resolveSpanningBoundaries(s,e,r,i);let l=this.buildModifiedNode(a,r,i);return l?[l]:[]}resolveSpanningBoundaries(e,o,r,i){let s=[];for(let a of e.children){if(!a||a.endPosition.row<o.startRow||a.startPosition.row>o.endRow)continue;let l={startRow:Math.max(o.startRow,a.startPosition.row),endRow:Math.min(o.endRow,a.endPosition.row)},I=this.getSmallestContainingNode(a,l);if(!I)continue;let E=this.findSemanticBoundary(I);if(!E)continue;let f=this.buildModifiedNode(E,r,i);f&&s.push(f)}return s}buildModifiedNode(e,o,r){if(r.has(e.id))return null;r.add(e.id);let i=this.getNodeName(e),s=i?o.get(`${e.type}::${i}`):void 0,a=this.resolvePruningLevel(s,e);return{nodeId:i||e.id.toString(),nodeType:e.type,pruningLevel:a,newRange:{startRow:e.startPosition.row,endRow:e.endPosition.row}}}resolvePruningLevel(e,o){if(!e)return P.CONTRACT_CHANGED;let r=this.getSignature(e),i=this.getSignature(o);return r===i?P.INTERNAL_LOGIC:P.CONTRACT_CHANGED}buildNodeIndex(e){let o=new Map,r=i=>{if(ue.has(i.type)){let s=this.getNodeName(i),a=s?`${i.type}::${s}`:null;a&&!o.has(a)&&o.set(a,i)}for(let s of i.children)s&&r(s)};return r(e),o}getSmallestContainingNode(e,o){if(e.startPosition.row>o.endRow||e.endPosition.row<o.startRow)return null;if(e.startPosition.row<=o.startRow&&e.endPosition.row>=o.endRow){for(let r of e.children){if(!r)continue;let i=this.getSmallestContainingNode(r,o);if(i)return i}return e}return null}findSemanticBoundary(e){let o=e;for(;o;){if(ue.has(o.type))return o;o=o.parent}return null}getNodeName(e){let o=e.childForFieldName("name");if(o)return o.text;if(e.type===N.VARIABLE_DECLARATION||e.type===N.LEXICAL_DECLARATION){let r=e.children.find(i=>i.type===N.VARIABLE_DECLARATOR);if(r){let i=r.childForFieldName("name");if(i)return i.text}}return null}getSignature(e){let o=e.childForFieldName("body")||e.childForFieldName("value");if(e.type===N.VARIABLE_DECLARATION||e.type===N.LEXICAL_DECLARATION){let r=e.children.find(i=>i.type===N.VARIABLE_DECLARATOR);if(r){let i=r.childForFieldName("value");if(i&&i.type===N.ARROW_FUNCTION){let s=i.childForFieldName("body");if(s)return this.getTextExcludingNode(e,s)}}}return o?this.getTextExcludingNode(e,o):e.text}getTextExcludingNode(e,o){let r=[],i=s=>{if(s.id!==o.id)if(s.childCount===0)r.push(s.text);else for(let a of s.children)a&&i(a)};return i(e),r.join(" ").trim().replace(/\s+/g," ")}};import*as _ from"path";import*as X from"fs";import{createRequire as Ot}from"module";import{fileURLToPath as St}from"url";var Rt=St(import.meta.url),b=_.dirname(Rt),Lt=Ot(import.meta.url);function Fr(n){let e=_.resolve(b,"../../../../"),o=[];try{let i=Lt.resolve("tree-sitter-wasms/package.json",{paths:[b,e]}),s=_.join(_.dirname(i),"out",n);if(o.push(s),X.existsSync(s))return{wasmPath:s,attemptedPaths:o}}catch{}let r=[_.resolve(e,`node_modules/tree-sitter-wasms/out/${n}`),_.resolve(b,`../../../node_modules/tree-sitter-wasms/out/${n}`),_.resolve(e,`node_modules/.pnpm/tree-sitter-wasms@0.1.13/node_modules/tree-sitter-wasms/out/${n}`),_.resolve(e,`artifacts/vscode-client/out/wasm/${n}`)];for(let i of r)if(o.push(i),X.existsSync(i))return{wasmPath:i,attemptedPaths:o};return{wasmPath:r[r.length-1],attemptedPaths:o}}export{J as a,Pt as b,Ft as c,gt as d,wt as e,xo as f,me as g,Fr as h};
|
|
23
|
-
/*! Bundled license information:
|
|
24
|
-
|
|
25
|
-
smol-toml/dist/date.js:
|
|
26
|
-
smol-toml/dist/error.js:
|
|
27
|
-
smol-toml/dist/primitive.js:
|
|
28
|
-
smol-toml/dist/util.js:
|
|
29
|
-
smol-toml/dist/extract.js:
|
|
30
|
-
smol-toml/dist/struct.js:
|
|
31
|
-
smol-toml/dist/parse.js:
|
|
32
|
-
smol-toml/dist/stringify.js:
|
|
33
|
-
smol-toml/dist/index.js:
|
|
34
|
-
(*!
|
|
35
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
36
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*
|
|
38
|
-
* Redistribution and use in source and binary forms, with or without
|
|
39
|
-
* modification, are permitted provided that the following conditions are met:
|
|
40
|
-
*
|
|
41
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
42
|
-
* list of conditions and the following disclaimer.
|
|
43
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
44
|
-
* this list of conditions and the following disclaimer in the
|
|
45
|
-
* documentation and/or other materials provided with the distribution.
|
|
46
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
47
|
-
* may be used to endorse or promote products derived from this software without
|
|
48
|
-
* specific prior written permission.
|
|
49
|
-
*
|
|
50
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
51
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
52
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
53
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
54
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
55
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
56
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
57
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
58
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
59
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
60
|
-
*)
|
|
61
|
-
*/
|
|
62
|
-
//# sourceMappingURL=chunk-QCEENSRK.js.map
|