@nordicsemiconductor/pc-nrfconnect-shared 80.0.0 → 82.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog.md CHANGED
@@ -7,7 +7,13 @@ This project does _not_ adhere to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
8
8
  every new version is a new major version.
9
9
 
10
- ## 80 - Unreleased
10
+ ## 82 - 09.08.2023
11
+
12
+ ### Fixed
13
+
14
+ - Jest tests were broken due to missing config changes.
15
+
16
+ ## 81 - 09.08.2023
11
17
 
12
18
  ### Changed
13
19
 
@@ -26,9 +32,35 @@ every new version is a new major version.
26
32
  + import { App } from '@nordicsemiconductor/pc-nrfconnect-shared';
27
33
  ```
28
34
 
29
- - Also check references in `tsconfig.json`, s`jest.config.js` and
35
+ - Also check references in `tsconfig.json`, `jest.config.js` and
30
36
  `.scss`-files.
31
37
 
38
+ The tsconfig can use the namespace directly like this
39
+
40
+ ```json
41
+ {
42
+ "extends": "@nordicsemiconductor/pc-nrfconnect-shared/config/tsconfig.json"
43
+ }
44
+
45
+ ```
46
+
47
+ The package.json can be changed as follows:
48
+
49
+ ```json
50
+ {
51
+ "eslintConfig": {
52
+ "extends": "./node_modules/@nordicsemiconductor/pc-nrfconnect-shared/config/eslintrc"
53
+ },
54
+ "prettier": "@nordicsemiconductor/pc-nrfconnect-shared/config/prettier.config.js"
55
+ }
56
+ ```
57
+
58
+ ## 80 - 2023-08-07
59
+
60
+ ### Changed
61
+
62
+ - Linux: Check for and log `nrf-udev` install on startup.
63
+
32
64
  ## 79 - 2023-08-04
33
65
 
34
66
  ### Added
@@ -48,6 +48,7 @@ module.exports = {
48
48
  'serialport',
49
49
  'electron',
50
50
  'pc-nrfconnect-shared',
51
+ '@nordicsemiconductor/pc-nrfconnect-shared',
51
52
  '@electron/remote',
52
53
  ],
53
54
  },
@@ -23,9 +23,6 @@ module.exports = (disabledMocks = []) => ({
23
23
  : {
24
24
  packageJson$: `${mockDir}/packageJsonMock.ts`,
25
25
  }),
26
- ...(disabledMocks.includes('react-ga')
27
- ? {}
28
- : { '^react-ga$': `${mockDir}/gaMock.ts` }),
29
26
  ...(disabledMocks.includes('serialport')
30
27
  ? {}
31
28
  : { serialport: `${mockDir}/emptyMock.ts` }),
@@ -33,7 +30,9 @@ module.exports = (disabledMocks = []) => ({
33
30
  transform: {
34
31
  '^.+\\.[jt]sx?$': '@swc/jest',
35
32
  },
36
- transformIgnorePatterns: ['node_modules/(?!(pc-nrfconnect-shared)/)'],
33
+ transformIgnorePatterns: [
34
+ 'node_modules/(?!(@nordicsemiconductor/pc-nrfconnect-shared)/)',
35
+ ],
37
36
  setupFilesAfterEnv: [`${__dirname}/../test/setupTests.ts`],
38
37
  snapshotSerializers: ['enzyme-to-json/serializer'],
39
38
  resolver: `${__dirname}/../test/jestResolver.js`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "80.0.0",
3
+ "version": "82.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,10 +9,10 @@
9
9
  "author": "Nordic Semiconductor ASA",
10
10
  "license": "ISC",
11
11
  "bin": {
12
- "check-for-typescript": "./scripts/check-for-typescript.ts",
13
- "check-app-properties": "./scripts/check-app-properties.ts",
14
- "nordic-publish": "./scripts/nordic-publish.ts",
15
- "nrfconnect-license": "./scripts/nrfconnect-license.ts",
12
+ "check-for-typescript": "./scripts/check-for-typescript.js",
13
+ "check-app-properties": "./scripts/check-app-properties.js",
14
+ "nordic-publish": "./scripts/nordic-publish.js",
15
+ "nrfconnect-license": "./scripts/nrfconnect-license.js",
16
16
  "run-esbuild": "./scripts/esbuild.js"
17
17
  },
18
18
  "files": [
@@ -27,9 +27,10 @@
27
27
  "./test",
28
28
  "./typings",
29
29
  "./styles.scss",
30
- "LICENSE",
31
- "Changelog.md",
32
- "README.md"
30
+ "./tsconfig.json",
31
+ "./LICENSE",
32
+ "./Changelog.md",
33
+ "./README.md"
33
34
  ],
34
35
  "main": "src",
35
36
  "scripts": {
@@ -42,7 +43,8 @@
42
43
  "generate-types": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir ./typings/generated --rootDir .",
43
44
  "prepare": "ts-node scripts/installHusky.ts",
44
45
  "release-shared": "ts-node scripts/release-shared.ts",
45
- "prepare-shared-release": "ts-node scripts/prepare-shared-release.ts"
46
+ "prepare-shared-release": "ts-node scripts/prepare-shared-release.ts",
47
+ "postinstall": "node scripts/postinstall.js"
46
48
  },
47
49
  "peerDependencies": {
48
50
  "@nordicsemiconductor/nrf-device-lib-js": "*"
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ts-node
2
+ "use strict";var Gr=Object.create;var v=Object.defineProperty;var Ar=Object.getOwnPropertyDescriptor;var Hr=Object.getOwnPropertyNames;var Rr=Object.getPrototypeOf,Kr=Object.prototype.hasOwnProperty;var n=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ur=(e,r)=>{for(var t in r)v(e,t,{get:r[t],enumerable:!0})},I=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Hr(r))!Kr.call(e,o)&&o!==t&&v(e,o,{get:()=>r[o],enumerable:!(i=Ar(r,o))||i.enumerable});return e};var Jr=(e,r,t)=>(t=e!=null?Gr(Rr(e)):{},I(r||!e||!e.__esModule?v(t,"default",{value:e,enumerable:!0}):t,e)),Lr=e=>I(v({},"__esModule",{value:!0}),e);var D=n((Bi,E)=>{function Vr(e){return function(r){return r?.[e]}}E.exports=Vr});var m=n((Qi,N)=>{var Xr=Array.isArray;N.exports=Xr});var M=n((Wi,$)=>{var Yr=typeof global=="object"&&global&&global.Object===Object&&global;$.exports=Yr});var b=n((eo,z)=>{var Zr=M(),Br=typeof self=="object"&&self&&self.Object===Object&&self,Qr=Zr||Br||Function("return this")();z.exports=Qr});var x=n((ro,k)=>{var Wr=b(),et=Wr.Symbol;k.exports=et});var H=n((to,A)=>{var F=x(),G=Object.prototype,rt=G.hasOwnProperty,tt=G.toString,f=F?F.toStringTag:void 0;function nt(e){var r=rt.call(e,f),t=e[f];try{e[f]=void 0;var i=!0}catch{}var o=tt.call(e);return i&&(r?e[f]=t:delete e[f]),o}A.exports=nt});var K=n((no,R)=>{var it=Object.prototype,ot=it.toString;function at(e){return ot.call(e)}R.exports=at});var _=n((io,L)=>{var U=x(),st=H(),ct=K(),ut="[object Null]",pt="[object Undefined]",J=U?U.toStringTag:void 0;function lt(e){return e==null?e===void 0?pt:ut:J&&J in Object(e)?st(e):ct(e)}L.exports=lt});var X=n((oo,V)=>{function ht(e){return e!=null&&typeof e=="object"}V.exports=ht});var q=n((ao,Y)=>{var ft=_(),gt=X(),dt="[object Symbol]";function yt(e){return typeof e=="symbol"||gt(e)&&ft(e)==dt}Y.exports=yt});var C=n((so,Z)=>{var vt=m(),mt=q(),bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xt=/^\w*$/;function qt(e,r){if(vt(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||mt(e)?!0:xt.test(e)||!bt.test(e)||r!=null&&e in Object(r)}Z.exports=qt});var S=n((co,B)=>{function _t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}B.exports=_t});var W=n((uo,Q)=>{var Ct=_(),St=S(),Pt="[object AsyncFunction]",Ot="[object Function]",jt="[object GeneratorFunction]",Tt="[object Proxy]";function wt(e){if(!St(e))return!1;var r=Ct(e);return r==Ot||r==jt||r==Pt||r==Tt}Q.exports=wt});var re=n((po,ee)=>{var It=b(),Et=It["__core-js_shared__"];ee.exports=Et});var ie=n((lo,ne)=>{var P=re(),te=function(){var e=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Dt(e){return!!te&&te in e}ne.exports=Dt});var ae=n((ho,oe)=>{var Nt=Function.prototype,$t=Nt.toString;function Mt(e){if(e!=null){try{return $t.call(e)}catch{}try{return e+""}catch{}}return""}oe.exports=Mt});var ce=n((fo,se)=>{var zt=W(),kt=ie(),Ft=S(),Gt=ae(),At=/[\\^$.*+?()[\]{}|]/g,Ht=/^\[object .+?Constructor\]$/,Rt=Function.prototype,Kt=Object.prototype,Ut=Rt.toString,Jt=Kt.hasOwnProperty,Lt=RegExp("^"+Ut.call(Jt).replace(At,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vt(e){if(!Ft(e)||kt(e))return!1;var r=zt(e)?Lt:Ht;return r.test(Gt(e))}se.exports=Vt});var pe=n((go,ue)=>{function Xt(e,r){return e?.[r]}ue.exports=Xt});var O=n((yo,le)=>{var Yt=ce(),Zt=pe();function Bt(e,r){var t=Zt(e,r);return Yt(t)?t:void 0}le.exports=Bt});var g=n((vo,he)=>{var Qt=O(),Wt=Qt(Object,"create");he.exports=Wt});var de=n((mo,ge)=>{var fe=g();function en(){this.__data__=fe?fe(null):{},this.size=0}ge.exports=en});var ve=n((bo,ye)=>{function rn(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}ye.exports=rn});var be=n((xo,me)=>{var tn=g(),nn="__lodash_hash_undefined__",on=Object.prototype,an=on.hasOwnProperty;function sn(e){var r=this.__data__;if(tn){var t=r[e];return t===nn?void 0:t}return an.call(r,e)?r[e]:void 0}me.exports=sn});var qe=n((qo,xe)=>{var cn=g(),un=Object.prototype,pn=un.hasOwnProperty;function ln(e){var r=this.__data__;return cn?r[e]!==void 0:pn.call(r,e)}xe.exports=ln});var Ce=n((_o,_e)=>{var hn=g(),fn="__lodash_hash_undefined__";function gn(e,r){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=hn&&r===void 0?fn:r,this}_e.exports=gn});var Pe=n((Co,Se)=>{var dn=de(),yn=ve(),vn=be(),mn=qe(),bn=Ce();function p(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var i=e[r];this.set(i[0],i[1])}}p.prototype.clear=dn;p.prototype.delete=yn;p.prototype.get=vn;p.prototype.has=mn;p.prototype.set=bn;Se.exports=p});var je=n((So,Oe)=>{function xn(){this.__data__=[],this.size=0}Oe.exports=xn});var we=n((Po,Te)=>{function qn(e,r){return e===r||e!==e&&r!==r}Te.exports=qn});var d=n((Oo,Ie)=>{var _n=we();function Cn(e,r){for(var t=e.length;t--;)if(_n(e[t][0],r))return t;return-1}Ie.exports=Cn});var De=n((jo,Ee)=>{var Sn=d(),Pn=Array.prototype,On=Pn.splice;function jn(e){var r=this.__data__,t=Sn(r,e);if(t<0)return!1;var i=r.length-1;return t==i?r.pop():On.call(r,t,1),--this.size,!0}Ee.exports=jn});var $e=n((To,Ne)=>{var Tn=d();function wn(e){var r=this.__data__,t=Tn(r,e);return t<0?void 0:r[t][1]}Ne.exports=wn});var ze=n((wo,Me)=>{var In=d();function En(e){return In(this.__data__,e)>-1}Me.exports=En});var Fe=n((Io,ke)=>{var Dn=d();function Nn(e,r){var t=this.__data__,i=Dn(t,e);return i<0?(++this.size,t.push([e,r])):t[i][1]=r,this}ke.exports=Nn});var Ae=n((Eo,Ge)=>{var $n=je(),Mn=De(),zn=$e(),kn=ze(),Fn=Fe();function l(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var i=e[r];this.set(i[0],i[1])}}l.prototype.clear=$n;l.prototype.delete=Mn;l.prototype.get=zn;l.prototype.has=kn;l.prototype.set=Fn;Ge.exports=l});var Re=n((Do,He)=>{var Gn=O(),An=b(),Hn=Gn(An,"Map");He.exports=Hn});var Je=n((No,Ue)=>{var Ke=Pe(),Rn=Ae(),Kn=Re();function Un(){this.size=0,this.__data__={hash:new Ke,map:new(Kn||Rn),string:new Ke}}Ue.exports=Un});var Ve=n(($o,Le)=>{function Jn(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}Le.exports=Jn});var y=n((Mo,Xe)=>{var Ln=Ve();function Vn(e,r){var t=e.__data__;return Ln(r)?t[typeof r=="string"?"string":"hash"]:t.map}Xe.exports=Vn});var Ze=n((zo,Ye)=>{var Xn=y();function Yn(e){var r=Xn(this,e).delete(e);return this.size-=r?1:0,r}Ye.exports=Yn});var Qe=n((ko,Be)=>{var Zn=y();function Bn(e){return Zn(this,e).get(e)}Be.exports=Bn});var er=n((Fo,We)=>{var Qn=y();function Wn(e){return Qn(this,e).has(e)}We.exports=Wn});var tr=n((Go,rr)=>{var ei=y();function ri(e,r){var t=ei(this,e),i=t.size;return t.set(e,r),this.size+=t.size==i?0:1,this}rr.exports=ri});var ir=n((Ao,nr)=>{var ti=Je(),ni=Ze(),ii=Qe(),oi=er(),ai=tr();function h(e){var r=-1,t=e==null?0:e.length;for(this.clear();++r<t;){var i=e[r];this.set(i[0],i[1])}}h.prototype.clear=ti;h.prototype.delete=ni;h.prototype.get=ii;h.prototype.has=oi;h.prototype.set=ai;nr.exports=h});var sr=n((Ho,ar)=>{var or=ir(),si="Expected a function";function j(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(si);var t=function(){var i=arguments,o=r?r.apply(this,i):i[0],a=t.cache;if(a.has(o))return a.get(o);var s=e.apply(this,i);return t.cache=a.set(o,s)||a,s};return t.cache=new(j.Cache||or),t}j.Cache=or;ar.exports=j});var ur=n((Ro,cr)=>{var ci=sr(),ui=500;function pi(e){var r=ci(e,function(i){return t.size===ui&&t.clear(),i}),t=r.cache;return r}cr.exports=pi});var lr=n((Ko,pr)=>{var li=ur(),hi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fi=/\\(\\)?/g,gi=li(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(hi,function(t,i,o,a){r.push(o?a.replace(fi,"$1"):i||t)}),r});pr.exports=gi});var fr=n((Uo,hr)=>{function di(e,r){for(var t=-1,i=e==null?0:e.length,o=Array(i);++t<i;)o[t]=r(e[t],t,e);return o}hr.exports=di});var br=n((Jo,mr)=>{var gr=x(),yi=fr(),vi=m(),mi=q(),bi=1/0,dr=gr?gr.prototype:void 0,yr=dr?dr.toString:void 0;function vr(e){if(typeof e=="string")return e;if(vi(e))return yi(e,vr)+"";if(mi(e))return yr?yr.call(e):"";var r=e+"";return r=="0"&&1/e==-bi?"-0":r}mr.exports=vr});var qr=n((Lo,xr)=>{var xi=br();function qi(e){return e==null?"":xi(e)}xr.exports=qi});var Cr=n((Vo,_r)=>{var _i=m(),Ci=C(),Si=lr(),Pi=qr();function Oi(e,r){return _i(e)?e:Ci(e,r)?[e]:Si(Pi(e))}_r.exports=Oi});var T=n((Xo,Sr)=>{var ji=q(),Ti=1/0;function wi(e){if(typeof e=="string"||ji(e))return e;var r=e+"";return r=="0"&&1/e==-Ti?"-0":r}Sr.exports=wi});var Or=n((Yo,Pr)=>{var Ii=Cr(),Ei=T();function Di(e,r){r=Ii(r,e);for(var t=0,i=r.length;e!=null&&t<i;)e=e[Ei(r[t++])];return t&&t==i?e:void 0}Pr.exports=Di});var Tr=n((Zo,jr)=>{var Ni=Or();function $i(e){return function(r){return Ni(r,e)}}jr.exports=$i});var Ir=n((Bo,wr)=>{var Mi=D(),zi=Tr(),ki=C(),Fi=T();function Gi(e){return ki(e)?Mi(Fi(e)):zi(e)}wr.exports=Gi});var Yi={};Ur(Yi,{default:()=>Xi});module.exports=Lr(Yi);var Nr=require("child_process"),u=require("fs"),$r=Jr(Ir()),Mr=e=>e.map(r=>`\`${r}\``).join(", "),w=e=>r=>{let t=(0,$r.default)(r)(e);return t==null||t===""},c=e=>{console.error(e),process.exit(1)},Er=e=>{console.warn(e)},zr=(e,r)=>{e.length!==0&&c(`${r}: ${Mr(e)}`)},kr=(e,r,t)=>{let i=r.filter(o=>!e.includes(o));zr(i,t)},Ai=(e,r,t)=>{r.some(i=>e.includes(i))||c(`${t}: ${Mr(r)}`)},Hi=e=>{let t=["name","version","description","displayName","engines.nrfconnect"].filter(w(e));zr(t,"package.json is missing these mandatory properties")},Ri=e=>{if(w(e)("homepage")&&Er("Please provide a property `homepage` in package.json."),w(e)("repository.url"))Er("Please provide a property `repository.url` in package.json.");else if((0,u.existsSync)("./.git")){let r=(0,Nr.execSync)("git remote get-url origin",{encoding:"utf-8"}).trimEnd(),t=e.repository?.url,i=s=>s?.replace(/\.git$/,""),o=s=>s?.replace(/^git@github\.com:/,"github.com/").replace(/^https:\/\//,""),a=s=>o(i(s));a(r)!==a(t)&&c(`package.json says the repository is located at \`${t}\` but \`git remote get-url origin\` says it is at \`${r}\`.`)}},Ki=e=>{kr(e.files??[],["LICENSE","dist/","Changelog.md"],"These entries are missing in the property `files` in package.json"),Ai(e.files??[],["resources/*","resources/icon.*","resources/"],"One of these entries must be in the property `files` in package.json")},Dr=e=>new RegExp(`^## ${e}`,"mi"),Ui=(e,r)=>{if((0,u.existsSync)("./Changelog.md")||c("The mandatory file `Changelog.md` is missing."),r){e.version==null&&c("package.json must specify a `version`.");let t=(0,u.readFileSync)("./Changelog.md","utf8");t.match(Dr(e.version))||c(`Found no entry for the current version packageJson.version ${e.version} in \`Changelog.md\`.`),t.match(Dr("unreleased"))&&c("There must not be an entry `unreleased` in `Changelog.md`.")}},Ji=e=>{try{return(0,u.readdirSync)(e)}catch{throw c(`Unable to read directory \`${e}\`.`),new Error}},Li=()=>{kr(Ji("./resources"),["icon.svg","icon.icns","icon.ico","icon.png"],"In the directory `resources` these files are missing")},Fr=({checkChangelogHasCurrentEntry:e})=>{let r=JSON.parse((0,u.readFileSync)("./package.json","utf8"));Hi(r),Ri(r),Ki(r),Ui(r,e),Li()},Vi=require.main===module;Vi&&Fr({checkChangelogHasCurrentEntry:!1});var Xi=Fr;
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ts-node
2
+ "use strict";var y=Object.create;var f=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var j=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports);var v=(s,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S(t))!L.call(s,i)&&i!==e&&f(s,i,{get:()=>t[i],enumerable:!(n=x(t,i))||n.enumerable});return s};var w=(s,t,e)=>(e=s!=null?y(q(s)):{},v(t||!s||!s.__esModule?f(e,"default",{value:s,enumerable:!0}):e,s));var c=j((U,l)=>{var{strictEqual:M}=require("assert"),h=require("path"),b=require("fs"),{Readable:D}=require("stream"),{fileURLToPath:N}=require("url"),p=class extends D{constructor(t,e){t instanceof URL&&(t=N(t)),M(typeof t,"string","`dir` parameter should be of type string or file URL. Got type: "+typeof t),e={queueMethod:"shift",pathSorter:void 0,filter:void 0,depthLimit:void 0,preserveSymlinks:!1,...e,objectMode:!0},super(e),this.root=h.resolve(t),this.paths=[this.root],this.options=e,e.depthLimit>-1&&(this.rootDepth=this.root.split(h.sep).length+1),this.fs=e.fs||b}_read(){if(this.paths.length===0)return this.push(null);let t=this.paths[this.options.queueMethod]();(this.options.preserveSymlinks?this.fs.lstat:this.fs.stat)(t,(n,i)=>{let r={path:t,stats:i};if(n)return this.emit("error",n,r);if(!i.isDirectory()||this.rootDepth&&t.split(h.sep).length-this.rootDepth>=this.options.depthLimit)return this.push(r);this.fs.readdir(t,(u,o)=>{if(u)return this.push(r),this.emit("error",u,r);o=o.map(function(g){return h.join(t,g)}),this.options.filter&&(o=o.filter(this.options.filter)),this.options.pathSorter&&o.sort(this.options.pathSorter),this.paths.push.apply(this.paths,o),this.push(r)})})}};function R(s,t){return new p(s,t)}l.exports=R});var a=require("child_process"),d=require("fs"),m=w(c()),k=()=>{let[,,s,...t]=process.argv;process.exit((0,a.spawnSync)(s,t,{shell:!0,stdio:"inherit"}).status??void 0)},F=()=>{(0,m.default)(".",{filter:t=>!t.endsWith("node_modules")}).on("data",({path:t})=>{(t.endsWith(".ts")||t.endsWith(".tsx"))&&(console.log(`Your project contains TypeScript files (with the file ending .ts or .tsx), so it also must contain a file 'tsconfig.json'.
3
+ `),process.exit(1))})};(0,d.existsSync)("tsconfig.json")?k():F();
@@ -0,0 +1,126 @@
1
+ #!/usr/bin/env ts-node
2
+ "use strict";var zi=Object.create;var rn=Object.defineProperty;var Ji=Object.getOwnPropertyDescriptor;var eo=Object.getOwnPropertyNames;var to=Object.getPrototypeOf,ro=Object.prototype.hasOwnProperty;var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var no=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of eo(t))!ro.call(e,s)&&s!==r&&rn(e,s,{get:()=>t[s],enumerable:!(n=Ji(t,s))||n.enumerable});return e};var so=(e,t,r)=>(r=e!=null?zi(to(e)):{},no(t||!e||!e.__esModule?rn(r,"default",{value:e,enumerable:!0}):r,e));var nn=S(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.splitWhen=ve.flatten=void 0;function io(e){return e.reduce((t,r)=>[].concat(t,r),[])}ve.flatten=io;function oo(e,t){let r=[[]],n=0;for(let s of e)t(s)?(n++,r[n]=[]):r[n].push(s);return r}ve.splitWhen=oo});var sn=S(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.isEnoentCodeError=void 0;function ao(e){return e.code==="ENOENT"}Ge.isEnoentCodeError=ao});var on=S(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.createDirentFromStats=void 0;var Et=class{constructor(t,r){this.name=t,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 uo(e,t){return new Et(e,t)}je.createDirentFromStats=uo});var an=S(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.removeLeadingDotSegment=re.escape=re.makeAbsolute=re.unixify=void 0;var co=require("path"),lo=2,fo=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function ho(e){return e.replace(/\\/g,"/")}re.unixify=ho;function po(e,t){return co.resolve(e,t)}re.makeAbsolute=po;function _o(e){return e.replace(fo,"\\$2")}re.escape=_o;function go(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(lo)}return e}re.removeLeadingDotSegment=go});var cn=S((Cl,un)=>{un.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var hn=S((Pl,fn)=>{var So=cn(),ln={"{":"}","(":")","[":"]"},yo=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,s=-2,i=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||s!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(s=e.indexOf("}",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(o=e.indexOf("\\",r),o===-1||o>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=ln[a];if(u){var d=e.indexOf(u,t);d!==-1&&(t=d+1)}if(e[t]==="!")return!0}else t++}return!1},Eo=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=ln[r];if(n){var s=e.indexOf(n,t);s!==-1&&(t=s+1)}if(e[t]==="!")return!0}else t++}return!1};fn.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(So(t))return!0;var n=yo;return r&&r.strict===!1&&(n=Eo),n(t)}});var dn=S((xl,pn)=>{"use strict";var mo=hn(),Ao=require("path").posix.dirname,Ro=require("os").platform()==="win32",mt="/",bo=/\\/g,vo=/[\{\[].*[\}\]]$/,To=/(^|[^\\])([\{\[]|\([^\)]+$)/,Oo=/\\([\!\*\?\|\[\]\(\)\{\}])/g;pn.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Ro&&t.indexOf(mt)<0&&(t=t.replace(bo,mt)),vo.test(t)&&(t+=mt),t+="a";do t=Ao(t);while(mo(t)||To.test(t));return t.replace(Oo,"$1")}});var We=S(z=>{"use strict";z.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;z.find=(e,t)=>e.nodes.find(r=>r.type===t);z.exceedsLimit=(e,t,r=1,n)=>n===!1||!z.isInteger(e)||!z.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;z.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};z.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);z.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;z.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;z.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);z.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];Array.isArray(i)?r(i,t):i!==void 0&&t.push(i)}return t};return r(e),t}});var Ye=S((Il,gn)=>{"use strict";var _n=We();gn.exports=(e,t={})=>{let r=(n,s={})=>{let i=t.escapeInvalid&&_n.isInvalidBrace(s),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||o)&&_n.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var yn=S((wl,Sn)=>{"use strict";Sn.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Cn=S((Nl,On)=>{"use strict";var En=yn(),Ee=(e,t,r)=>{if(En(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(En(t)===!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 s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+s+i+o+a;if(Ee.cache.hasOwnProperty(u))return Ee.cache[u].result;let d=Math.min(e,t),l=Math.max(e,t);if(Math.abs(d-l)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let g=Tn(e)||Tn(t),h={min:e,max:t,a:d,b:l},x=[],y=[];if(g&&(h.isPadded=g,h.maxLen=String(h.max).length),d<0){let m=l<0?Math.abs(l):1;y=mn(m,Math.abs(d),h,n),d=h.a=0}return l>=0&&(x=mn(d,l,h,n)),h.negatives=y,h.positives=x,h.result=Co(y,x,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&x.length+y.length>1&&(h.result=`(?:${h.result})`),Ee.cache[u]=h,h.result};function Co(e,t,r){let n=At(e,t,"-",!1,r)||[],s=At(t,e,"",!1,r)||[],i=At(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function Po(e,t){let r=1,n=1,s=Rn(e,r),i=new Set([t]);for(;e<=s&&s<=t;)i.add(s),r+=1,s=Rn(e,r);for(s=bn(t+1,n)-1;e<s&&s<=t;)i.add(s),n+=1,s=bn(t+1,n)-1;return i=[...i],i.sort(Io),i}function xo(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Lo(e,t),s=n.length,i="",o=0;for(let a=0;a<s;a++){let[u,d]=n[a];u===d?i+=u:u!=="0"||d!=="9"?i+=wo(u,d,r):o++}return o&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function mn(e,t,r,n){let s=Po(e,t),i=[],o=e,a;for(let u=0;u<s.length;u++){let d=s[u],l=xo(String(o),String(d),n),g="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+vn(a.count),o=d+1;continue}r.isPadded&&(g=No(d,r,n)),l.string=g+l.pattern+vn(l.count),i.push(l),o=d+1,a=l}return i}function At(e,t,r,n,s){let i=[];for(let o of e){let{string:a}=o;!n&&!An(t,"string",a)&&i.push(r+a),n&&An(t,"string",a)&&i.push(r+a)}return i}function Lo(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function Io(e,t){return e>t?1:t>e?-1:0}function An(e,t,r){return e.some(n=>n[t]===r)}function Rn(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function bn(e,t){return e-e%Math.pow(10,t)}function vn(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function wo(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Tn(e){return/^-?(0+)\d/.test(e)}function No(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}Ee.cache={};Ee.clearCache=()=>Ee.cache={};On.exports=Ee});var vt=S((Dl,Hn)=>{"use strict";var Do=require("util"),Ln=Cn(),Pn=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ho=e=>t=>e===!0?Number(t):String(t),Rt=e=>typeof e=="number"||typeof e=="string"&&e!=="",De=e=>Number.isInteger(+e),bt=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},ko=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Mo=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},xn=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Fo=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",s="",i;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(s=`-(${r}${e.negatives.join("|")})`),n&&s?i=`${n}|${s}`:i=n||s,t.wrap?`(${r}${i})`:i},In=(e,t,r,n)=>{if(r)return Ln(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},wn=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return Ln(e,t,r)},Nn=(...e)=>new RangeError("Invalid range arguments: "+Do.inspect(...e)),Dn=(e,t,r)=>{if(r.strictRanges===!0)throw Nn([e,t]);return[]},$o=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},qo=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw Nn([e,t]);return[]}s===0&&(s=0),i===0&&(i=0);let o=s>i,a=String(e),u=String(t),d=String(r);r=Math.max(Math.abs(r),1);let l=bt(a)||bt(u)||bt(d),g=l?Math.max(a.length,u.length,d.length):0,h=l===!1&&ko(e,t,n)===!1,x=n.transform||Ho(h);if(n.toRegex&&r===1)return In(xn(e,g),xn(t,g),!0,n);let y={negatives:[],positives:[]},m=w=>y[w<0?"negatives":"positives"].push(Math.abs(w)),b=[],v=0;for(;o?s>=i:s<=i;)n.toRegex===!0&&r>1?m(s):b.push(Mo(x(s,v),g,h)),s=o?s-r:s+r,v++;return n.toRegex===!0?r>1?Fo(y,n):wn(b,null,{wrap:!1,...n}):b},Bo=(e,t,r=1,n={})=>{if(!De(e)&&e.length>1||!De(t)&&t.length>1)return Dn(e,t,n);let s=n.transform||(h=>String.fromCharCode(h)),i=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=i>o,u=Math.min(i,o),d=Math.max(i,o);if(n.toRegex&&r===1)return In(u,d,!1,n);let l=[],g=0;for(;a?i>=o:i<=o;)l.push(s(i,g)),i=a?i-r:i+r,g++;return n.toRegex===!0?wn(l,null,{wrap:!1,options:n}):l},Ve=(e,t,r,n={})=>{if(t==null&&Rt(e))return[e];if(!Rt(e)||!Rt(t))return Dn(e,t,n);if(typeof r=="function")return Ve(e,t,1,{transform:r});if(Pn(r))return Ve(e,t,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,De(r)?De(e)&&De(t)?qo(e,t,r,s):Bo(e,t,Math.max(Math.abs(r),1),s):r!=null&&!Pn(r)?$o(r,s):Ve(e,t,1,r)};Hn.exports=Ve});var Fn=S((Hl,Mn)=>{"use strict";var Uo=vt(),kn=We(),Go=(e,t={})=>{let r=(n,s={})=>{let i=kn.isInvalidBrace(s),o=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",d="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+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 l=kn.reduce(n.nodes),g=Uo(...l,{...t,wrap:!1,toRegex:!0});if(g.length!==0)return l.length>1&&g.length>1?`(${g})`:g}if(n.nodes)for(let l of n.nodes)d+=r(l,n);return d};return r(e)};Mn.exports=Go});var Bn=S((kl,qn)=>{"use strict";var jo=vt(),$n=Ye(),Te=We(),me=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Te.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(me(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?me(s,i,r):s+i);return Te.flatten(n)},Wo=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,i={})=>{s.queue=[];let o=i,a=i.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(me(a.pop(),$n(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(me(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let g=Te.reduce(s.nodes);if(Te.exceedsLimit(...g,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=jo(...g,t);h.length===0&&(h=$n(s,t)),a.push(me(a.pop(),h)),s.nodes=[];return}let u=Te.encloseBrace(s),d=s.queue,l=s;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,d=l.queue;for(let g=0;g<s.nodes.length;g++){let h=s.nodes[g];if(h.type==="comma"&&s.type==="brace"){g===1&&d.push(""),d.push("");continue}if(h.type==="close"){a.push(me(a.pop(),d,u));continue}if(h.value&&h.type!=="open"){d.push(me(d.pop(),h.value));continue}h.nodes&&n(h,s)}return d};return Te.flatten(n(e))};qn.exports=Wo});var Gn=S((Ml,Un)=>{"use strict";Un.exports={MAX_LENGTH:1024*64,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
+ `,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 Kn=S((Fl,Vn)=>{"use strict";var Yo=Ye(),{MAX_LENGTH:jn,CHAR_BACKSLASH:Tt,CHAR_BACKTICK:Vo,CHAR_COMMA:Ko,CHAR_DOT:Qo,CHAR_LEFT_PARENTHESES:Xo,CHAR_RIGHT_PARENTHESES:Zo,CHAR_LEFT_CURLY_BRACE:zo,CHAR_RIGHT_CURLY_BRACE:Jo,CHAR_LEFT_SQUARE_BRACKET:Wn,CHAR_RIGHT_SQUARE_BRACKET:Yn,CHAR_DOUBLE_QUOTE:ea,CHAR_SINGLE_QUOTE:ta,CHAR_NO_BREAK_SPACE:ra,CHAR_ZERO_WIDTH_NOBREAK_SPACE:na}=Gn(),sa=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(jn,r.maxLength):jn;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},i=[s],o=s,a=s,u=0,d=e.length,l=0,g=0,h,x={},y=()=>e[l++],m=b=>{if(b.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&b.type==="text"){a.value+=b.value;return}return o.nodes.push(b),b.parent=o,b.prev=a,a=b,b};for(m({type:"bos"});l<d;)if(o=i[i.length-1],h=y(),!(h===na||h===ra)){if(h===Tt){m({type:"text",value:(t.keepEscaping?h:"")+y()});continue}if(h===Yn){m({type:"text",value:"\\"+h});continue}if(h===Wn){u++;let b=!0,v;for(;l<d&&(v=y());){if(h+=v,v===Wn){u++;continue}if(v===Tt){h+=y();continue}if(v===Yn&&(u--,u===0))break}m({type:"text",value:h});continue}if(h===Xo){o=m({type:"paren",nodes:[]}),i.push(o),m({type:"text",value:h});continue}if(h===Zo){if(o.type!=="paren"){m({type:"text",value:h});continue}o=i.pop(),m({type:"text",value:h}),o=i[i.length-1];continue}if(h===ea||h===ta||h===Vo){let b=h,v;for(t.keepQuotes!==!0&&(h="");l<d&&(v=y());){if(v===Tt){h+=v+y();continue}if(v===b){t.keepQuotes===!0&&(h+=v);break}h+=v}m({type:"text",value:h});continue}if(h===zo){g++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:g,commas:0,ranges:0,nodes:[]};o=m(v),i.push(o),m({type:"open",value:h});continue}if(h===Jo){if(o.type!=="brace"){m({type:"text",value:h});continue}let b="close";o=i.pop(),o.close=!0,m({type:b,value:h}),g--,o=i[i.length-1];continue}if(h===Ko&&g>0){if(o.ranges>0){o.ranges=0;let b=o.nodes.shift();o.nodes=[b,{type:"text",value:Yo(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===Qo&&g>0&&o.commas===0){let b=o.nodes;if(g===0||b.length===0){m({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){b.pop();let v=b[b.length-1];v.value+=a.value+h,a=v,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=i.pop(),o.type!=="root"){o.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let b=i[i.length-1],v=b.nodes.indexOf(o);b.nodes.splice(v,1,...o.nodes)}while(i.length>0);return m({type:"eos"}),s};Vn.exports=sa});var Zn=S(($l,Xn)=>{"use strict";var Qn=Ye(),ia=Fn(),oa=Bn(),aa=Kn(),Q=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=Q.create(n,t);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(Q.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Q.parse=(e,t={})=>aa(e,t);Q.stringify=(e,t={})=>Qn(typeof e=="string"?Q.parse(e,t):e,t);Q.compile=(e,t={})=>(typeof e=="string"&&(e=Q.parse(e,t)),ia(e,t));Q.expand=(e,t={})=>{typeof e=="string"&&(e=Q.parse(e,t));let r=oa(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Q.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Q.compile(e,t):Q.expand(e,t);Xn.exports=Q});var He=S((ql,rs)=>{"use strict";var ua=require("path"),ne="\\\\/",zn=`[^${ne}]`,ue="\\.",ca="\\+",la="\\?",Ke="\\/",fa="(?=.)",Jn="[^/]",Ot=`(?:${Ke}|$)`,es=`(?:^|${Ke})`,Ct=`${ue}{1,2}${Ot}`,ha=`(?!${ue})`,pa=`(?!${es}${Ct})`,da=`(?!${ue}{0,1}${Ot})`,_a=`(?!${Ct})`,ga=`[^.${Ke}]`,Sa=`${Jn}*?`,ts={DOT_LITERAL:ue,PLUS_LITERAL:ca,QMARK_LITERAL:la,SLASH_LITERAL:Ke,ONE_CHAR:fa,QMARK:Jn,END_ANCHOR:Ot,DOTS_SLASH:Ct,NO_DOT:ha,NO_DOTS:pa,NO_DOT_SLASH:da,NO_DOTS_SLASH:_a,QMARK_NO_DOT:ga,STAR:Sa,START_ANCHOR:es},ya={...ts,SLASH_LITERAL:`[${ne}]`,QMARK:zn,STAR:`${zn}*?`,DOTS_SLASH:`${ue}{1,2}(?:[${ne}]|$)`,NO_DOT:`(?!${ue})`,NO_DOTS:`(?!(?:^|[${ne}])${ue}{1,2}(?:[${ne}]|$))`,NO_DOT_SLASH:`(?!${ue}{0,1}(?:[${ne}]|$))`,NO_DOTS_SLASH:`(?!${ue}{1,2}(?:[${ne}]|$))`,QMARK_NO_DOT:`[^.${ne}]`,START_ANCHOR:`(?:^|[${ne}])`,END_ANCHOR:`(?:[${ne}]|$)`},Ea={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"};rs.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ea,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:{"***":"*","**/**":"**","**/**/**":"**"},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:ua.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ya:ts}}});var ke=S(V=>{"use strict";var ma=require("path"),Aa=process.platform==="win32",{REGEX_BACKSLASH:Ra,REGEX_REMOVE_BACKSLASH:ba,REGEX_SPECIAL_CHARS:va,REGEX_SPECIAL_CHARS_GLOBAL:Ta}=He();V.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);V.hasRegexChars=e=>va.test(e);V.isRegexChar=e=>e.length===1&&V.hasRegexChars(e);V.escapeRegex=e=>e.replace(Ta,"\\$1");V.toPosixSlashes=e=>e.replace(Ra,"/");V.removeBackslashes=e=>e.replace(ba,t=>t==="\\"?"":t);V.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};V.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Aa===!0||ma.sep==="\\";V.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?V.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};V.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};V.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var ls=S((Ul,cs)=>{"use strict";var ns=ke(),{CHAR_ASTERISK:Pt,CHAR_AT:Oa,CHAR_BACKWARD_SLASH:Me,CHAR_COMMA:Ca,CHAR_DOT:xt,CHAR_EXCLAMATION_MARK:Lt,CHAR_FORWARD_SLASH:us,CHAR_LEFT_CURLY_BRACE:It,CHAR_LEFT_PARENTHESES:wt,CHAR_LEFT_SQUARE_BRACKET:Pa,CHAR_PLUS:xa,CHAR_QUESTION_MARK:ss,CHAR_RIGHT_CURLY_BRACE:La,CHAR_RIGHT_PARENTHESES:is,CHAR_RIGHT_SQUARE_BRACKET:Ia}=He(),os=e=>e===us||e===Me,as=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},wa=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],o=[],a=[],u=e,d=-1,l=0,g=0,h=!1,x=!1,y=!1,m=!1,b=!1,v=!1,w=!1,H=!1,Z=!1,C=!1,k=0,T,A,I={value:"",depth:0,isGlob:!1},U=()=>d>=n,p=()=>u.charCodeAt(d+1),M=()=>(T=A,u.charCodeAt(++d));for(;d<n;){A=M();let W;if(A===Me){w=I.backslashes=!0,A=M(),A===It&&(v=!0);continue}if(v===!0||A===It){for(k++;U()!==!0&&(A=M());){if(A===Me){w=I.backslashes=!0,M();continue}if(A===It){k++;continue}if(v!==!0&&A===xt&&(A=M())===xt){if(h=I.isBrace=!0,y=I.isGlob=!0,C=!0,s===!0)continue;break}if(v!==!0&&A===Ca){if(h=I.isBrace=!0,y=I.isGlob=!0,C=!0,s===!0)continue;break}if(A===La&&(k--,k===0)){v=!1,h=I.isBrace=!0,C=!0;break}}if(s===!0)continue;break}if(A===us){if(i.push(d),o.push(I),I={value:"",depth:0,isGlob:!1},C===!0)continue;if(T===xt&&d===l+1){l+=2;continue}g=d+1;continue}if(r.noext!==!0&&(A===xa||A===Oa||A===Pt||A===ss||A===Lt)===!0&&p()===wt){if(y=I.isGlob=!0,m=I.isExtglob=!0,C=!0,A===Lt&&d===l&&(Z=!0),s===!0){for(;U()!==!0&&(A=M());){if(A===Me){w=I.backslashes=!0,A=M();continue}if(A===is){y=I.isGlob=!0,C=!0;break}}continue}break}if(A===Pt){if(T===Pt&&(b=I.isGlobstar=!0),y=I.isGlob=!0,C=!0,s===!0)continue;break}if(A===ss){if(y=I.isGlob=!0,C=!0,s===!0)continue;break}if(A===Pa){for(;U()!==!0&&(W=M());){if(W===Me){w=I.backslashes=!0,M();continue}if(W===Ia){x=I.isBracket=!0,y=I.isGlob=!0,C=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&A===Lt&&d===l){H=I.negated=!0,l++;continue}if(r.noparen!==!0&&A===wt){if(y=I.isGlob=!0,s===!0){for(;U()!==!0&&(A=M());){if(A===wt){w=I.backslashes=!0,A=M();continue}if(A===is){C=!0;break}}continue}break}if(y===!0){if(C=!0,s===!0)continue;break}}r.noext===!0&&(m=!1,y=!1);let N=u,fe="",c="";l>0&&(fe=u.slice(0,l),u=u.slice(l),g-=l),N&&y===!0&&g>0?(N=u.slice(0,g),c=u.slice(g)):y===!0?(N="",c=u):N=u,N&&N!==""&&N!=="/"&&N!==u&&os(N.charCodeAt(N.length-1))&&(N=N.slice(0,-1)),r.unescape===!0&&(c&&(c=ns.removeBackslashes(c)),N&&w===!0&&(N=ns.removeBackslashes(N)));let f={prefix:fe,input:e,start:l,base:N,glob:c,isBrace:h,isBracket:x,isGlob:y,isExtglob:m,isGlobstar:b,negated:H,negatedExtglob:Z};if(r.tokens===!0&&(f.maxDepth=0,os(A)||o.push(I),f.tokens=o),r.parts===!0||r.tokens===!0){let W;for(let L=0;L<i.length;L++){let ee=W?W+1:l,te=i[L],K=e.slice(ee,te);r.tokens&&(L===0&&l!==0?(o[L].isPrefix=!0,o[L].value=fe):o[L].value=K,as(o[L]),f.maxDepth+=o[L].depth),(L!==0||K!=="")&&a.push(K),W=te}if(W&&W+1<e.length){let L=e.slice(W+1);a.push(L),r.tokens&&(o[o.length-1].value=L,as(o[o.length-1]),f.maxDepth+=o[o.length-1].depth)}f.slashes=i,f.parts=a}return f};cs.exports=wa});var ps=S((Gl,hs)=>{"use strict";var Qe=He(),X=ke(),{MAX_LENGTH:Xe,POSIX_REGEX_SOURCE:Na,REGEX_NON_SPECIAL_CHARS:Da,REGEX_SPECIAL_CHARS_BACKREF:Ha,REPLACEMENTS:fs}=Qe,ka=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(s=>X.escapeRegex(s)).join("..")}return r},Oe=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Nt=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=fs[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Xe,r.maxLength):Xe,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},o=[i],a=r.capture?"":"?:",u=X.isWindows(t),d=Qe.globChars(u),l=Qe.extglobChars(d),{DOT_LITERAL:g,PLUS_LITERAL:h,SLASH_LITERAL:x,ONE_CHAR:y,DOTS_SLASH:m,NO_DOT:b,NO_DOT_SLASH:v,NO_DOTS_SLASH:w,QMARK:H,QMARK_NO_DOT:Z,STAR:C,START_ANCHOR:k}=d,T=E=>`(${a}(?:(?!${k}${E.dot?m:g}).)*?)`,A=r.dot?"":b,I=r.dot?H:Z,U=r.bash===!0?T(r):C;r.capture&&(U=`(${U})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let p={input:e,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:o};e=X.removePrefix(e,p),s=e.length;let M=[],N=[],fe=[],c=i,f,W=()=>p.index===s-1,L=p.peek=(E=1)=>e[p.index+E],ee=p.advance=()=>e[++p.index]||"",te=()=>e.slice(p.index+1),K=(E="",D=0)=>{p.consumed+=E,p.index+=D},$e=E=>{p.output+=E.output!=null?E.output:E.value,K(E.value)},Xi=()=>{let E=1;for(;L()==="!"&&(L(2)!=="("||L(3)==="?");)ee(),p.start++,E++;return E%2===0?!1:(p.negated=!0,p.start++,!0)},qe=E=>{p[E]++,fe.push(E)},ye=E=>{p[E]--,fe.pop()},P=E=>{if(c.type==="globstar"){let D=p.braces>0&&(E.type==="comma"||E.type==="brace"),_=E.extglob===!0||M.length&&(E.type==="pipe"||E.type==="paren");E.type!=="slash"&&E.type!=="paren"&&!D&&!_&&(p.output=p.output.slice(0,-c.output.length),c.type="star",c.value="*",c.output=U,p.output+=c.output)}if(M.length&&E.type!=="paren"&&(M[M.length-1].inner+=E.value),(E.value||E.output)&&$e(E),c&&c.type==="text"&&E.type==="text"){c.value+=E.value,c.output=(c.output||"")+E.value;return}E.prev=c,o.push(E),c=E},Be=(E,D)=>{let _={...l[D],conditions:1,inner:""};_.prev=c,_.parens=p.parens,_.output=p.output;let O=(r.capture?"(":"")+_.open;qe("parens"),P({type:E,value:D,output:p.output?"":y}),P({type:"paren",extglob:!0,value:ee(),output:O}),M.push(_)},Zi=E=>{let D=E.close+(r.capture?")":""),_;if(E.type==="negate"){let O=U;if(E.inner&&E.inner.length>1&&E.inner.includes("/")&&(O=T(r)),(O!==U||W()||/^\)+$/.test(te()))&&(D=E.close=`)$))${O}`),E.inner.includes("*")&&(_=te())&&/^\.[^\\/.]+$/.test(_)){let $=Nt(_,{...t,fastpaths:!1}).output;D=E.close=`)${$})${O})`}E.prev.type==="bos"&&(p.negatedExtglob=!0)}P({type:"paren",extglob:!0,value:f,output:D}),ye("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let E=!1,D=e.replace(Ha,(_,O,$,Y,B,yt)=>Y==="\\"?(E=!0,_):Y==="?"?O?O+Y+(B?H.repeat(B.length):""):yt===0?I+(B?H.repeat(B.length):""):H.repeat($.length):Y==="."?g.repeat($.length):Y==="*"?O?O+Y+(B?U:""):U:O?_:`\\${_}`);return E===!0&&(r.unescape===!0?D=D.replace(/\\/g,""):D=D.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),D===e&&r.contains===!0?(p.output=e,p):(p.output=X.wrapOutput(D,p,t),p)}for(;!W();){if(f=ee(),f==="\0")continue;if(f==="\\"){let _=L();if(_==="/"&&r.bash!==!0||_==="."||_===";")continue;if(!_){f+="\\",P({type:"text",value:f});continue}let O=/^\\+/.exec(te()),$=0;if(O&&O[0].length>2&&($=O[0].length,p.index+=$,$%2!==0&&(f+="\\")),r.unescape===!0?f=ee():f+=ee(),p.brackets===0){P({type:"text",value:f});continue}}if(p.brackets>0&&(f!=="]"||c.value==="["||c.value==="[^")){if(r.posix!==!1&&f===":"){let _=c.value.slice(1);if(_.includes("[")&&(c.posix=!0,_.includes(":"))){let O=c.value.lastIndexOf("["),$=c.value.slice(0,O),Y=c.value.slice(O+2),B=Na[Y];if(B){c.value=$+B,p.backtrack=!0,ee(),!i.output&&o.indexOf(c)===1&&(i.output=y);continue}}}(f==="["&&L()!==":"||f==="-"&&L()==="]")&&(f=`\\${f}`),f==="]"&&(c.value==="["||c.value==="[^")&&(f=`\\${f}`),r.posix===!0&&f==="!"&&c.value==="["&&(f="^"),c.value+=f,$e({value:f});continue}if(p.quotes===1&&f!=='"'){f=X.escapeRegex(f),c.value+=f,$e({value:f});continue}if(f==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&P({type:"text",value:f});continue}if(f==="("){qe("parens"),P({type:"paren",value:f});continue}if(f===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Oe("opening","("));let _=M[M.length-1];if(_&&p.parens===_.parens+1){Zi(M.pop());continue}P({type:"paren",value:f,output:p.parens?")":"\\)"}),ye("parens");continue}if(f==="["){if(r.nobracket===!0||!te().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Oe("closing","]"));f=`\\${f}`}else qe("brackets");P({type:"bracket",value:f});continue}if(f==="]"){if(r.nobracket===!0||c&&c.type==="bracket"&&c.value.length===1){P({type:"text",value:f,output:`\\${f}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Oe("opening","["));P({type:"text",value:f,output:`\\${f}`});continue}ye("brackets");let _=c.value.slice(1);if(c.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(f=`/${f}`),c.value+=f,$e({value:f}),r.literalBrackets===!1||X.hasRegexChars(_))continue;let O=X.escapeRegex(c.value);if(p.output=p.output.slice(0,-c.value.length),r.literalBrackets===!0){p.output+=O,c.value=O;continue}c.value=`(${a}${O}|${c.value})`,p.output+=c.value;continue}if(f==="{"&&r.nobrace!==!0){qe("braces");let _={type:"brace",value:f,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};N.push(_),P(_);continue}if(f==="}"){let _=N[N.length-1];if(r.nobrace===!0||!_){P({type:"text",value:f,output:f});continue}let O=")";if(_.dots===!0){let $=o.slice(),Y=[];for(let B=$.length-1;B>=0&&(o.pop(),$[B].type!=="brace");B--)$[B].type!=="dots"&&Y.unshift($[B].value);O=ka(Y,r),p.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let $=p.output.slice(0,_.outputIndex),Y=p.tokens.slice(_.tokensIndex);_.value=_.output="\\{",f=O="\\}",p.output=$;for(let B of Y)p.output+=B.output||B.value}P({type:"brace",value:f,output:O}),ye("braces"),N.pop();continue}if(f==="|"){M.length>0&&M[M.length-1].conditions++,P({type:"text",value:f});continue}if(f===","){let _=f,O=N[N.length-1];O&&fe[fe.length-1]==="braces"&&(O.comma=!0,_="|"),P({type:"comma",value:f,output:_});continue}if(f==="/"){if(c.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",o.pop(),c=i;continue}P({type:"slash",value:f,output:x});continue}if(f==="."){if(p.braces>0&&c.type==="dot"){c.value==="."&&(c.output=g);let _=N[N.length-1];c.type="dots",c.output+=f,c.value+=f,_.dots=!0;continue}if(p.braces+p.parens===0&&c.type!=="bos"&&c.type!=="slash"){P({type:"text",value:f,output:g});continue}P({type:"dot",value:f,output:g});continue}if(f==="?"){if(!(c&&c.value==="(")&&r.noextglob!==!0&&L()==="("&&L(2)!=="?"){Be("qmark",f);continue}if(c&&c.type==="paren"){let O=L(),$=f;if(O==="<"&&!X.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(c.value==="("&&!/[!=<:]/.test(O)||O==="<"&&!/<([!=]|\w+>)/.test(te()))&&($=`\\${f}`),P({type:"text",value:f,output:$});continue}if(r.dot!==!0&&(c.type==="slash"||c.type==="bos")){P({type:"qmark",value:f,output:Z});continue}P({type:"qmark",value:f,output:H});continue}if(f==="!"){if(r.noextglob!==!0&&L()==="("&&(L(2)!=="?"||!/[!=<:]/.test(L(3)))){Be("negate",f);continue}if(r.nonegate!==!0&&p.index===0){Xi();continue}}if(f==="+"){if(r.noextglob!==!0&&L()==="("&&L(2)!=="?"){Be("plus",f);continue}if(c&&c.value==="("||r.regex===!1){P({type:"plus",value:f,output:h});continue}if(c&&(c.type==="bracket"||c.type==="paren"||c.type==="brace")||p.parens>0){P({type:"plus",value:f});continue}P({type:"plus",value:h});continue}if(f==="@"){if(r.noextglob!==!0&&L()==="("&&L(2)!=="?"){P({type:"at",extglob:!0,value:f,output:""});continue}P({type:"text",value:f});continue}if(f!=="*"){(f==="$"||f==="^")&&(f=`\\${f}`);let _=Da.exec(te());_&&(f+=_[0],p.index+=_[0].length),P({type:"text",value:f});continue}if(c&&(c.type==="globstar"||c.star===!0)){c.type="star",c.star=!0,c.value+=f,c.output=U,p.backtrack=!0,p.globstar=!0,K(f);continue}let E=te();if(r.noextglob!==!0&&/^\([^?]/.test(E)){Be("star",f);continue}if(c.type==="star"){if(r.noglobstar===!0){K(f);continue}let _=c.prev,O=_.prev,$=_.type==="slash"||_.type==="bos",Y=O&&(O.type==="star"||O.type==="globstar");if(r.bash===!0&&(!$||E[0]&&E[0]!=="/")){P({type:"star",value:f,output:""});continue}let B=p.braces>0&&(_.type==="comma"||_.type==="brace"),yt=M.length&&(_.type==="pipe"||_.type==="paren");if(!$&&_.type!=="paren"&&!B&&!yt){P({type:"star",value:f,output:""});continue}for(;E.slice(0,3)==="/**";){let Ue=e[p.index+4];if(Ue&&Ue!=="/")break;E=E.slice(3),K("/**",3)}if(_.type==="bos"&&W()){c.type="globstar",c.value+=f,c.output=T(r),p.output=c.output,p.globstar=!0,K(f);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!Y&&W()){p.output=p.output.slice(0,-(_.output+c.output).length),_.output=`(?:${_.output}`,c.type="globstar",c.output=T(r)+(r.strictSlashes?")":"|$)"),c.value+=f,p.globstar=!0,p.output+=_.output+c.output,K(f);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&E[0]==="/"){let Ue=E[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(_.output+c.output).length),_.output=`(?:${_.output}`,c.type="globstar",c.output=`${T(r)}${x}|${x}${Ue})`,c.value+=f,p.output+=_.output+c.output,p.globstar=!0,K(f+ee()),P({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&E[0]==="/"){c.type="globstar",c.value+=f,c.output=`(?:^|${x}|${T(r)}${x})`,p.output=c.output,p.globstar=!0,K(f+ee()),P({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-c.output.length),c.type="globstar",c.output=T(r),c.value+=f,p.output+=c.output,p.globstar=!0,K(f);continue}let D={type:"star",value:f,output:U};if(r.bash===!0){D.output=".*?",(c.type==="bos"||c.type==="slash")&&(D.output=A+D.output),P(D);continue}if(c&&(c.type==="bracket"||c.type==="paren")&&r.regex===!0){D.output=f,P(D);continue}(p.index===p.start||c.type==="slash"||c.type==="dot")&&(c.type==="dot"?(p.output+=v,c.output+=v):r.dot===!0?(p.output+=w,c.output+=w):(p.output+=A,c.output+=A),L()!=="*"&&(p.output+=y,c.output+=y)),P(D)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Oe("closing","]"));p.output=X.escapeLast(p.output,"["),ye("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Oe("closing",")"));p.output=X.escapeLast(p.output,"("),ye("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Oe("closing","}"));p.output=X.escapeLast(p.output,"{"),ye("braces")}if(r.strictSlashes!==!0&&(c.type==="star"||c.type==="bracket")&&P({type:"maybe_slash",value:"",output:`${x}?`}),p.backtrack===!0){p.output="";for(let E of p.tokens)p.output+=E.output!=null?E.output:E.value,E.suffix&&(p.output+=E.suffix)}return p};Nt.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Xe,r.maxLength):Xe,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=fs[e]||e;let i=X.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:d,NO_DOT:l,NO_DOTS:g,NO_DOTS_SLASH:h,STAR:x,START_ANCHOR:y}=Qe.globChars(i),m=r.dot?g:l,b=r.dot?h:l,v=r.capture?"":"?:",w={negated:!1,prefix:""},H=r.bash===!0?".*?":x;r.capture&&(H=`(${H})`);let Z=A=>A.noglobstar===!0?H:`(${v}(?:(?!${y}${A.dot?d:o}).)*?)`,C=A=>{switch(A){case"*":return`${m}${u}${H}`;case".*":return`${o}${u}${H}`;case"*.*":return`${m}${H}${o}${u}${H}`;case"*/*":return`${m}${H}${a}${u}${b}${H}`;case"**":return m+Z(r);case"**/*":return`(?:${m}${Z(r)}${a})?${b}${u}${H}`;case"**/*.*":return`(?:${m}${Z(r)}${a})?${b}${H}${o}${u}${H}`;case"**/.*":return`(?:${m}${Z(r)}${a})?${o}${u}${H}`;default:{let I=/^(.*?)\.(\w+)$/.exec(A);if(!I)return;let U=C(I[1]);return U?U+o+I[2]:void 0}}},k=X.removePrefix(e,w),T=C(k);return T&&r.strictSlashes!==!0&&(T+=`${a}?`),T};hs.exports=Nt});var _s=S((jl,ds)=>{"use strict";var Ma=require("path"),Fa=ls(),Dt=ps(),Ht=ke(),$a=He(),qa=e=>e&&typeof e=="object"&&!Array.isArray(e),q=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(h=>q(h,t,r));return h=>{for(let x of l){let y=x(h);if(y)return y}return!1}}let n=qa(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},i=Ht.isWindows(t),o=n?q.compileRe(e,t):q.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(s.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};u=q(s.ignore,l,r)}let d=(l,g=!1)=>{let{isMatch:h,match:x,output:y}=q.test(l,o,t,{glob:e,posix:i}),m={glob:e,state:a,regex:o,posix:i,input:l,output:y,match:x,isMatch:h};return typeof s.onResult=="function"&&s.onResult(m),h===!1?(m.isMatch=!1,g?m:!1):u(l)?(typeof s.onIgnore=="function"&&s.onIgnore(m),m.isMatch=!1,g?m:!1):(typeof s.onMatch=="function"&&s.onMatch(m),g?m:!0)};return r&&(d.state=a),d};q.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},o=i.format||(s?Ht.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=q.matchBase(e,t,r,s):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};q.matchBase=(e,t,r,n=Ht.isWindows(r))=>(t instanceof RegExp?t:q.makeRe(t,r)).test(Ma.basename(e));q.isMatch=(e,t,r)=>q(t,r)(e);q.parse=(e,t)=>Array.isArray(e)?e.map(r=>q.parse(r,t)):Dt(e,{...t,fastpaths:!1});q.scan=(e,t)=>Fa(e,t);q.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",o=s.contains?"":"$",a=`${i}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=q.toRegex(a,t);return n===!0&&(u.state=e),u};q.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=Dt.fastpaths(e,t)),s.output||(s=Dt(e,t)),q.compileRe(s,t,r,n)};q.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};q.constants=$a;ds.exports=q});var Ss=S((Wl,gs)=>{"use strict";gs.exports=_s()});var Rs=S((Yl,As)=>{"use strict";var Es=require("util"),ms=Zn(),se=Ss(),kt=ke(),ys=e=>e===""||e==="./",F=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,s=new Set,i=new Set,o=0,a=l=>{i.add(l.output),r&&r.onResult&&r.onResult(l)};for(let l=0;l<t.length;l++){let g=se(String(t[l]),{...r,onResult:a},!0),h=g.state.negated||g.state.negatedExtglob;h&&o++;for(let x of e){let y=g(x,!0);(h?!y.isMatch:y.isMatch)&&(h?n.add(y.output):(n.delete(y.output),s.add(y.output)))}}let d=(o===t.length?[...i]:[...s]).filter(l=>!n.has(l));if(r&&d.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(l=>l.replace(/\\/g,"")):t}return d};F.match=F;F.matcher=(e,t)=>se(e,t);F.isMatch=(e,t,r)=>se(t,r)(e);F.any=F.isMatch;F.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,s=[],i=a=>{r.onResult&&r.onResult(a),s.push(a.output)},o=new Set(F(e,t,{...r,onResult:i}));for(let a of s)o.has(a)||n.add(a);return[...n]};F.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Es.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>F.contains(e,n,r));if(typeof t=="string"){if(ys(e)||ys(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return F.isMatch(e,t,{...r,contains:!0})};F.matchKeys=(e,t,r)=>{if(!kt.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=F(Object.keys(e),t,r),s={};for(let i of n)s[i]=e[i];return s};F.some=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let i=se(String(s),r);if(n.some(o=>i(o)))return!0}return!1};F.every=(e,t,r)=>{let n=[].concat(e);for(let s of[].concat(t)){let i=se(String(s),r);if(!n.every(o=>i(o)))return!1}return!0};F.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Es.inspect(e)}"`);return[].concat(t).every(n=>se(n,r)(e))};F.capture=(e,t,r)=>{let n=kt.isWindows(r),i=se.makeRe(String(e),{...r,capture:!0}).exec(n?kt.toPosixSlashes(t):t);if(i)return i.slice(1).map(o=>o===void 0?"":o)};F.makeRe=(...e)=>se.makeRe(...e);F.scan=(...e)=>se.scan(...e);F.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let s of ms(String(n),t))r.push(se.parse(s,t));return r};F.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:ms(e,t)};F.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return F.braces(e,{...t,expand:!0})};As.exports=F});var Ls=S(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.matchAny=R.convertPatternsToRe=R.makeRe=R.getPatternParts=R.expandBraceExpansion=R.expandPatternsWithBraceExpansion=R.isAffectDepthOfReadingPattern=R.endsWithSlashGlobStar=R.hasGlobStar=R.getBaseDirectory=R.isPatternRelatedToParentDirectory=R.getPatternsOutsideCurrentDirectory=R.getPatternsInsideCurrentDirectory=R.getPositivePatterns=R.getNegativePatterns=R.isPositivePattern=R.isNegativePattern=R.convertToNegativePattern=R.convertToPositivePattern=R.isDynamicPattern=R.isStaticPattern=void 0;var Ba=require("path"),Ua=dn(),Mt=Rs(),bs="**",Ga="\\",ja=/[*?]|^!/,Wa=/\[[^[]*]/,Ya=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Va=/[!*+?@]\([^(]*\)/,Ka=/,|\.\./;function vs(e,t={}){return!Ts(e,t)}R.isStaticPattern=vs;function Ts(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Ga)||ja.test(e)||Wa.test(e)||Ya.test(e)||t.extglob!==!1&&Va.test(e)||t.braceExpansion!==!1&&Qa(e))}R.isDynamicPattern=Ts;function Qa(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Ka.test(n)}function Xa(e){return Ze(e)?e.slice(1):e}R.convertToPositivePattern=Xa;function Za(e){return"!"+e}R.convertToNegativePattern=Za;function Ze(e){return e.startsWith("!")&&e[1]!=="("}R.isNegativePattern=Ze;function Os(e){return!Ze(e)}R.isPositivePattern=Os;function za(e){return e.filter(Ze)}R.getNegativePatterns=za;function Ja(e){return e.filter(Os)}R.getPositivePatterns=Ja;function eu(e){return e.filter(t=>!Ft(t))}R.getPatternsInsideCurrentDirectory=eu;function tu(e){return e.filter(Ft)}R.getPatternsOutsideCurrentDirectory=tu;function Ft(e){return e.startsWith("..")||e.startsWith("./..")}R.isPatternRelatedToParentDirectory=Ft;function ru(e){return Ua(e,{flipBackslashes:!1})}R.getBaseDirectory=ru;function nu(e){return e.includes(bs)}R.hasGlobStar=nu;function Cs(e){return e.endsWith("/"+bs)}R.endsWithSlashGlobStar=Cs;function su(e){let t=Ba.basename(e);return Cs(e)||vs(t)}R.isAffectDepthOfReadingPattern=su;function iu(e){return e.reduce((t,r)=>t.concat(Ps(r)),[])}R.expandPatternsWithBraceExpansion=iu;function Ps(e){return Mt.braces(e,{expand:!0,nodupes:!0})}R.expandBraceExpansion=Ps;function ou(e,t){let{parts:r}=Mt.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}R.getPatternParts=ou;function xs(e,t){return Mt.makeRe(e,t)}R.makeRe=xs;function au(e,t){return e.map(r=>xs(r,t))}R.convertPatternsToRe=au;function uu(e,t){return t.some(r=>r.test(e))}R.matchAny=uu});var Ds=S((Kl,Ns)=>{"use strict";var cu=require("stream"),Is=cu.PassThrough,lu=Array.prototype.slice;Ns.exports=fu;function fu(){let e=[],t=lu.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Is(n);function a(){for(let l=0,g=arguments.length;l<g;l++)e.push(ws(arguments[l],n));return u(),this}function u(){if(r)return;r=!0;let l=e.shift();if(!l){process.nextTick(d);return}Array.isArray(l)||(l=[l]);let g=l.length+1;function h(){--g>0||(r=!1,u())}function x(y){function m(){y.removeListener("merge2UnpipeEnd",m),y.removeListener("end",m),i&&y.removeListener("error",b),h()}function b(v){o.emit("error",v)}if(y._readableState.endEmitted)return h();y.on("merge2UnpipeEnd",m),y.on("end",m),i&&y.on("error",b),y.pipe(o,{end:!1}),y.resume()}for(let y=0;y<l.length;y++)x(l[y]);h()}function d(){r=!1,o.emit("queueDrain"),s&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function ws(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=ws(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Is(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var ks=S(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.merge=void 0;var hu=Ds();function pu(e){let t=hu(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Hs(e)),t.once("end",()=>Hs(e)),t}ze.merge=pu;function Hs(e){e.forEach(t=>t.emit("close"))}});var Ms=S(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isEmpty=Ce.isString=void 0;function du(e){return typeof e=="string"}Ce.isString=du;function _u(e){return e===""}Ce.isEmpty=_u});var ce=S(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.string=G.stream=G.pattern=G.path=G.fs=G.errno=G.array=void 0;var gu=nn();G.array=gu;var Su=sn();G.errno=Su;var yu=on();G.fs=yu;var Eu=an();G.path=Eu;var mu=Ls();G.pattern=mu;var Au=ks();G.stream=Au;var Ru=Ms();G.string=Ru});var qs=S(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.convertPatternGroupToTask=j.convertPatternGroupsToTasks=j.groupPatternsByBaseDirectory=j.getNegativePatternsAsPositive=j.getPositivePatterns=j.convertPatternsToTasks=j.generate=void 0;var le=ce();function bu(e,t){let r=Fs(e),n=$s(e,t.ignore),s=r.filter(u=>le.pattern.isStaticPattern(u,t)),i=r.filter(u=>le.pattern.isDynamicPattern(u,t)),o=$t(s,n,!1),a=$t(i,n,!0);return o.concat(a)}j.generate=bu;function $t(e,t,r){let n=[],s=le.pattern.getPatternsOutsideCurrentDirectory(e),i=le.pattern.getPatternsInsideCurrentDirectory(e),o=qt(s),a=qt(i);return n.push(...Bt(o,t,r)),"."in a?n.push(Ut(".",i,t,r)):n.push(...Bt(a,t,r)),n}j.convertPatternsToTasks=$t;function Fs(e){return le.pattern.getPositivePatterns(e)}j.getPositivePatterns=Fs;function $s(e,t){return le.pattern.getNegativePatterns(e).concat(t).map(le.pattern.convertToPositivePattern)}j.getNegativePatternsAsPositive=$s;function qt(e){let t={};return e.reduce((r,n)=>{let s=le.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},t)}j.groupPatternsByBaseDirectory=qt;function Bt(e,t,r){return Object.keys(e).map(n=>Ut(n,e[n],t,r))}j.convertPatternGroupsToTasks=Bt;function Ut(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(le.pattern.convertToNegativePattern))}}j.convertPatternGroupToTask=Ut});var Us=S(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.removeDuplicateSlashes=Pe.transform=void 0;var vu=/(?!^)\/{2,}/g;function Tu(e){return e.map(t=>Bs(t))}Pe.transform=Tu;function Bs(e){return e.replace(vu,"/")}Pe.removeDuplicateSlashes=Bs});var js=S(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.read=void 0;function Ou(e,t,r){t.fs.lstat(e,(n,s)=>{if(n!==null){Gs(r,n);return}if(!s.isSymbolicLink()||!t.followSymbolicLink){Gt(r,s);return}t.fs.stat(e,(i,o)=>{if(i!==null){if(t.throwErrorOnBrokenSymbolicLink){Gs(r,i);return}Gt(r,s);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Gt(r,o)})})}Je.read=Ou;function Gs(e,t){e(t)}function Gt(e,t){e(null,t)}});var Ws=S(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.read=void 0;function Cu(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}et.read=Cu});var Ys=S(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.createFileSystemAdapter=he.FILE_SYSTEM_ADAPTER=void 0;var tt=require("fs");he.FILE_SYSTEM_ADAPTER={lstat:tt.lstat,stat:tt.stat,lstatSync:tt.lstatSync,statSync:tt.statSync};function Pu(e){return e===void 0?he.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},he.FILE_SYSTEM_ADAPTER),e)}he.createFileSystemAdapter=Pu});var Vs=S(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});var xu=Ys(),jt=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=xu.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};Wt.default=jt});var Ae=S(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.statSync=pe.stat=pe.Settings=void 0;var Ks=js(),Lu=Ws(),Yt=Vs();pe.Settings=Yt.default;function Iu(e,t,r){if(typeof t=="function"){Ks.read(e,Vt(),t);return}Ks.read(e,Vt(t),r)}pe.stat=Iu;function wu(e,t){let r=Vt(t);return Lu.read(e,r)}pe.statSync=wu;function Vt(e={}){return e instanceof Yt.default?e:new Yt.default(e)}});var Zs=S((of,Xs)=>{var Qs;Xs.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Qs||(Qs=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Js=S((af,zs)=>{zs.exports=Du;var Nu=Zs();function Du(e,t){let r,n,s,i=!0;Array.isArray(e)?(r=[],n=e.length):(s=Object.keys(e),r={},n=s.length);function o(u){function d(){t&&t(u,r),t=null}i?Nu(d):d()}function a(u,d,l){r[u]=l,(--n===0||d)&&o(d)}n?s?s.forEach(function(u){e[u](function(d,l){a(u,d,l)})}):e.forEach(function(u,d){u(function(l,g){a(d,l,g)})}):o(null),i=!1}});var Kt=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var rt=process.versions.node.split(".");if(rt[0]===void 0||rt[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ei=Number.parseInt(rt[0],10),Hu=Number.parseInt(rt[1],10),ti=10,ku=10,Mu=ei>ti,Fu=ei===ti&&Hu>=ku;nt.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Mu||Fu});var ri=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.createDirentFromStats=void 0;var Qt=class{constructor(t,r){this.name=t,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 $u(e,t){return new Qt(e,t)}st.createDirentFromStats=$u});var Xt=S(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fs=void 0;var qu=ri();it.fs=qu});var Zt=S(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.joinPathSegments=void 0;function Bu(e,t,r){return e.endsWith(r)?e+t:e+r+t}ot.joinPathSegments=Bu});var ui=S(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.readdir=de.readdirWithFileTypes=de.read=void 0;var Uu=Ae(),ni=Js(),Gu=Kt(),si=Xt(),ii=Zt();function ju(e,t,r){if(!t.stats&&Gu.IS_SUPPORT_READDIR_WITH_FILE_TYPES){oi(e,t,r);return}ai(e,t,r)}de.read=ju;function oi(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,s)=>{if(n!==null){at(r,n);return}let i=s.map(a=>({dirent:a,name:a.name,path:ii.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){zt(r,i);return}let o=i.map(a=>Wu(a,t));ni(o,(a,u)=>{if(a!==null){at(r,a);return}zt(r,u)})})}de.readdirWithFileTypes=oi;function Wu(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=si.fs.createDirentFromStats(e.name,s),r(null,e)})}}function ai(e,t,r){t.fs.readdir(e,(n,s)=>{if(n!==null){at(r,n);return}let i=s.map(o=>{let a=ii.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{Uu.stat(a,t.fsStatSettings,(d,l)=>{if(d!==null){u(d);return}let g={name:o,path:a,dirent:si.fs.createDirentFromStats(o,l)};t.stats&&(g.stats=l),u(null,g)})}});ni(i,(o,a)=>{if(o!==null){at(r,o);return}zt(r,a)})})}de.readdir=ai;function at(e,t){e(t)}function zt(e,t){e(null,t)}});var pi=S(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.readdir=_e.readdirWithFileTypes=_e.read=void 0;var Yu=Ae(),Vu=Kt(),ci=Xt(),li=Zt();function Ku(e,t){return!t.stats&&Vu.IS_SUPPORT_READDIR_WITH_FILE_TYPES?fi(e,t):hi(e,t)}_e.read=Ku;function fi(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:li.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let i=t.fs.statSync(s.path);s.dirent=ci.fs.createDirentFromStats(s.name,i)}catch(i){if(t.throwErrorOnBrokenSymbolicLink)throw i}return s})}_e.readdirWithFileTypes=fi;function hi(e,t){return t.fs.readdirSync(e).map(n=>{let s=li.joinPathSegments(e,n,t.pathSegmentSeparator),i=Yu.statSync(s,t.fsStatSettings),o={name:n,path:s,dirent:ci.fs.createDirentFromStats(n,i)};return t.stats&&(o.stats=i),o})}_e.readdir=hi});var di=S(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.createFileSystemAdapter=ge.FILE_SYSTEM_ADAPTER=void 0;var xe=require("fs");ge.FILE_SYSTEM_ADAPTER={lstat:xe.lstat,stat:xe.stat,lstatSync:xe.lstatSync,statSync:xe.statSync,readdir:xe.readdir,readdirSync:xe.readdirSync};function Qu(e){return e===void 0?ge.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},ge.FILE_SYSTEM_ADAPTER),e)}ge.createFileSystemAdapter=Qu});var _i=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var Xu=require("path"),Zu=Ae(),zu=di(),Jt=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=zu.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Xu.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Zu.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};er.default=Jt});var ut=S(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.Settings=Se.scandirSync=Se.scandir=void 0;var gi=ui(),Ju=pi(),tr=_i();Se.Settings=tr.default;function ec(e,t,r){if(typeof t=="function"){gi.read(e,rr(),t);return}gi.read(e,rr(t),r)}Se.scandir=ec;function tc(e,t){let r=rr(t);return Ju.read(e,r)}Se.scandirSync=tc;function rr(e={}){return e instanceof tr.default?e:new tr.default(e)}});var yi=S((Sf,Si)=>{"use strict";function rc(e){var t=new e,r=t;function n(){var i=t;return i.next?t=i.next:(t=new e,r=t),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}Si.exports=rc});var mi=S((yf,nr)=>{"use strict";var nc=yi();function Ei(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=nc(sc),s=null,i=null,o=0,a=null,u={push:m,drain:J,saturated:J,pause:l,paused:!1,concurrency:r,running:d,resume:x,idle:y,length:g,getQueue:h,unshift:b,empty:J,kill:w,killAndDrain:H,error:Z};return u;function d(){return o}function l(){u.paused=!0}function g(){for(var C=s,k=0;C;)C=C.next,k++;return k}function h(){for(var C=s,k=[];C;)k.push(C.value),C=C.next;return k}function x(){if(u.paused){u.paused=!1;for(var C=0;C<u.concurrency;C++)o++,v()}}function y(){return o===0&&u.length()===0}function m(C,k){var T=n.get();T.context=e,T.release=v,T.value=C,T.callback=k||J,T.errorHandler=a,o===u.concurrency||u.paused?i?(i.next=T,i=T):(s=T,i=T,u.saturated()):(o++,t.call(e,T.value,T.worked))}function b(C,k){var T=n.get();T.context=e,T.release=v,T.value=C,T.callback=k||J,o===u.concurrency||u.paused?s?(T.next=s,s=T):(s=T,i=T,u.saturated()):(o++,t.call(e,T.value,T.worked))}function v(C){C&&n.release(C);var k=s;k?u.paused?o--:(i===s&&(i=null),s=k.next,k.next=null,t.call(e,k.value,k.worked),i===null&&u.empty()):--o===0&&u.drain()}function w(){s=null,i=null,u.drain=J}function H(){s=null,i=null,u.drain(),u.drain=J}function Z(C){a=C}}function J(){}function sc(){this.value=null,this.callback=J,this.next=null,this.release=J,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var s=e.callback,i=e.errorHandler,o=e.value;e.value=null,e.callback=J,e.errorHandler&&i(r,o),s.call(e.context,r,n),e.release(e)}}function ic(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(l,g){t.call(this,l).then(function(h){g(null,h)},g)}var s=Ei(e,n,r),i=s.push,o=s.unshift;return s.push=a,s.unshift=u,s.drained=d,s;function a(l){var g=new Promise(function(h,x){i(l,function(y,m){if(y){x(y);return}h(m)})});return g.catch(J),g}function u(l){var g=new Promise(function(h,x){o(l,function(y,m){if(y){x(y);return}h(m)})});return g.catch(J),g}function d(){if(s.idle())return new Promise(function(h){h()});var l=s.drain,g=new Promise(function(h){s.drain=function(){l(),h()}});return g}}nr.exports=Ei;nr.exports.promise=ic});var ct=S(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.joinPathSegments=ie.replacePathSegmentSeparator=ie.isAppliedFilter=ie.isFatalError=void 0;function oc(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}ie.isFatalError=oc;function ac(e,t){return e===null||e(t)}ie.isAppliedFilter=ac;function uc(e,t){return e.split(/[/\\]/).join(t)}ie.replacePathSegmentSeparator=uc;function cc(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}ie.joinPathSegments=cc});var or=S(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});var lc=ct(),sr=class{constructor(t,r){this._root=t,this._settings=r,this._root=lc.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ir.default=sr});var cr=S(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var fc=require("events"),hc=ut(),pc=mi(),lt=ct(),dc=or(),ar=class extends dc.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=hc.scandir,this._emitter=new fc.EventEmitter,this._queue=pc(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(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!lt.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=lt.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),lt.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&lt.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ur.default=ar});var Ai=S(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});var _c=cr(),lr=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new _c.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{gc(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Sc(t,this._storage)}),this._reader.read()}};fr.default=lr;function gc(e,t){e(t)}function Sc(e,t){e(null,t)}});var Ri=S(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});var yc=require("stream"),Ec=cr(),hr=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Ec.default(this._root,this._settings),this._stream=new yc.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};pr.default=hr});var bi=S(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});var mc=ut(),ft=ct(),Ac=or(),dr=class extends Ac.default{constructor(){super(...arguments),this._scandir=mc.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(t){if(ft.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=ft.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ft.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&ft.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};_r.default=dr});var vi=S(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});var Rc=bi(),gr=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Rc.default(this._root,this._settings)}read(){return this._reader.read()}};Sr.default=gr});var Ti=S(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});var bc=require("path"),vc=ut(),yr=class{constructor(t={}){this._options=t,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,bc.sep),this.fsScandirSettings=new vc.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Er.default=yr});var pt=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.Settings=oe.walkStream=oe.walkSync=oe.walk=void 0;var Oi=Ai(),Tc=Ri(),Oc=vi(),mr=Ti();oe.Settings=mr.default;function Cc(e,t,r){if(typeof t=="function"){new Oi.default(e,ht()).read(t);return}new Oi.default(e,ht(t)).read(r)}oe.walk=Cc;function Pc(e,t){let r=ht(t);return new Oc.default(e,r).read()}oe.walkSync=Pc;function xc(e,t){let r=ht(t);return new Tc.default(e,r).read()}oe.walkStream=xc;function ht(e={}){return e instanceof mr.default?e:new mr.default(e)}});var dt=S(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});var Lc=require("path"),Ic=Ae(),Ci=ce(),Ar=class{constructor(t){this._settings=t,this._fsStatSettings=new Ic.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Lc.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Ci.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Ci.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Rr.default=Ar});var Tr=S(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var wc=require("stream"),Nc=Ae(),Dc=pt(),Hc=dt(),br=class extends Hc.default{constructor(){super(...arguments),this._walkStream=Dc.walkStream,this._stat=Nc.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),s=new wc.PassThrough({objectMode:!0});s._write=(i,o,a)=>this._getEntry(n[i],t[i],r).then(u=>{u!==null&&r.entryFilter(u)&&s.push(u),i===n.length-1&&s.end(),a()}).catch(a);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(t,r,n){return this._getStat(t).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};vr.default=br});var Pi=S(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var kc=pt(),Mc=dt(),Fc=Tr(),Or=class extends Mc.default{constructor(){super(...arguments),this._walkAsync=kc.walk,this._readerStream=new Fc.default(this._settings)}dynamic(t,r){return new Promise((n,s)=>{this._walkAsync(t,r,(i,o)=>{i===null?n(o):s(i)})})}async static(t,r){let n=[],s=this._readerStream.static(t,r);return new Promise((i,o)=>{s.once("error",o),s.on("data",a=>n.push(a)),s.once("end",()=>i(n))})}};Cr.default=Or});var xi=S(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});var Le=ce(),Pr=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Le.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),s=this._splitSegmentsIntoSections(n);this._storage.push({complete:s.length<=1,pattern:r,segments:n,sections:s})}}_getPatternSegments(t){return Le.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Le.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Le.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Le.array.splitWhen(t,r=>r.dynamic&&Le.pattern.hasGlobStar(r.pattern))}};xr.default=Pr});var Li=S(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});var $c=xi(),Lr=class extends $c.default{match(t){let r=t.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let o=i.sections[0];if(!i.complete&&n>o.length||r.every((u,d)=>{let l=i.segments[d];return!!(l.dynamic&&l.patternRe.test(u)||!l.dynamic&&l.pattern===u)}))return!0}return!1}};Ir.default=Lr});var Ii=S(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var _t=ce(),qc=Li(),wr=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return o=>this._filter(t,o,s,i)}_getMatcher(t){return new qc.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(_t.pattern.isAffectDepthOfReadingPattern);return _t.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,s){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=_t.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let s=t.split("/").length;return n-s}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!_t.pattern.matchAny(t,r)}};Nr.default=wr});var wi=S(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});var Re=ce(),Dr=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Re.pattern.convertPatternsToRe(t,this._micromatchOptions),s=Re.pattern.convertPatternsToRe(r,this._micromatchOptions);return i=>this._filter(i,n,s)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let s=this._settings.baseNameMatch?t.name:t.path,i=t.dirent.isDirectory(),o=this._isMatchToPatterns(s,r,i)&&!this._isMatchToPatterns(t.path,n,i);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Re.path.makeAbsolute(this._settings.cwd,t);return Re.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let s=Re.path.removeLeadingDotSegment(t),i=Re.pattern.matchAny(s,r);return!i&&n?Re.pattern.matchAny(s+"/",r):i}};Hr.default=Dr});var Ni=S(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});var Bc=ce(),kr=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Bc.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Mr.default=kr});var Hi=S($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});var Di=ce(),Fr=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Di.path.makeAbsolute(this._settings.cwd,r),r=Di.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};$r.default=Fr});var gt=S(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});var Uc=require("path"),Gc=Ii(),jc=wi(),Wc=Ni(),Yc=Hi(),qr=class{constructor(t){this._settings=t,this.errorFilter=new Wc.default(this._settings),this.entryFilter=new jc.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Gc.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Yc.default(this._settings)}_getRootDirectory(t){return Uc.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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}}};Br.default=qr});var ki=S(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});var Vc=Pi(),Kc=gt(),Ur=class extends Kc.default{constructor(){super(...arguments),this._reader=new Vc.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(i=>n.transform(i))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Gr.default=Ur});var Mi=S(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var Qc=require("stream"),Xc=Tr(),Zc=gt(),jr=class extends Zc.default{constructor(){super(...arguments),this._reader=new Xc.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),s=this.api(r,t,n),i=new Qc.Readable({objectMode:!0,read:()=>{}});return s.once("error",o=>i.emit("error",o)).on("data",o=>i.emit("data",n.transform(o))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Wr.default=jr});var Fi=S(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var zc=Ae(),Jc=pt(),el=dt(),Yr=class extends el.default{constructor(){super(...arguments),this._walkSync=Jc.walkSync,this._statSync=zc.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let s of t){let i=this._getFullEntryPath(s),o=this._getEntry(i,s,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let s=this._getStat(t);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Vr.default=Yr});var $i=S(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});var tl=Fi(),rl=gt(),Kr=class extends rl.default{constructor(){super(...arguments),this._reader=new tl.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Qr.default=Kr});var qi=S(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ie=require("fs"),nl=require("os"),sl=Math.max(nl.cpus().length,1);we.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ie.lstat,lstatSync:Ie.lstatSync,stat:Ie.stat,statSync:Ie.statSync,readdir:Ie.readdir,readdirSync:Ie.readdirSync};var Xr=class{constructor(t={}){this._options=t,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,sl),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)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},we.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};we.default=Xr});var ji=S((Gf,Gi)=>{"use strict";var Bi=qs(),Ui=Us(),il=ki(),ol=Mi(),al=$i(),Zr=qi(),be=ce();async function zr(e,t){Ne(e);let r=Jr(e,il.default,t),n=await Promise.all(r);return be.array.flatten(n)}(function(e){function t(o,a){Ne(o);let u=Jr(o,al.default,a);return be.array.flatten(u)}e.sync=t;function r(o,a){Ne(o);let u=Jr(o,ol.default,a);return be.stream.merge(u)}e.stream=r;function n(o,a){Ne(o);let u=Ui.transform([].concat(o)),d=new Zr.default(a);return Bi.generate(u,d)}e.generateTasks=n;function s(o,a){Ne(o);let u=new Zr.default(a);return be.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=s;function i(o){return Ne(o),be.path.escape(o)}e.escapePath=i})(zr||(zr={}));function Jr(e,t,r){let n=Ui.transform([].concat(e)),s=new Zr.default(r),i=Bi.generate(n,s),o=new t(s);return i.map(o.read,o)}function Ne(e){if(![].concat(e).every(n=>be.string.isString(n)&&!be.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Gi.exports=zr});var Wi=so(ji()),ae=require("fs"),tn=/^#!.*?(\r?\n)+/,ul=/([.*+\\(){}[\]])/g,Yi=/\r?\n/g,cl=`Copyright (c) __YEAR__ Nordic Semiconductor ASA
4
+ All rights reserved.
5
+
6
+ SPDX-License-Identifier: Nordic-4-Clause
7
+
8
+ Use in source and binary forms, redistribution in binary form only, with
9
+ or without modification, are permitted provided that the following conditions
10
+ are met:
11
+
12
+ 1. Redistributions in binary form, except as embedded into a Nordic
13
+ Semiconductor ASA integrated circuit in a product or a software update for
14
+ such product, must reproduce the above copyright notice, this list of
15
+ conditions and the following disclaimer in the documentation and/or other
16
+ materials provided with the distribution.
17
+
18
+ 2. Neither the name of Nordic Semiconductor ASA nor the names of its
19
+ contributors may be used to endorse or promote products derived from this
20
+ software without specific prior written permission.
21
+
22
+ 3. This software, with or without modification, must only be used with a Nordic
23
+ Semiconductor ASA integrated circuit.
24
+
25
+ 4. Any software provided in binary form under this license must not be reverse
26
+ engineered, decompiled, modified and/or disassembled.
27
+
28
+ THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS OR
29
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30
+ MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
+ DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE LIABLE
32
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
36
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
37
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.`,Vi=`/*
38
+ * Copyright (c) __YEAR__ Nordic Semiconductor ASA
39
+ *
40
+ * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
41
+ */`,en=`/* Copyright (c) __YEARS__, Nordic Semiconductor ASA
42
+ *
43
+ * All rights reserved.
44
+ *
45
+ * Use in source and binary forms, redistribution in binary form only, with
46
+ * or without modification, are permitted provided that the following conditions
47
+ * are met:
48
+ *
49
+ * 1. Redistributions in binary form, except as embedded into a Nordic
50
+ * Semiconductor ASA integrated circuit in a product or a software update for
51
+ * such product, must reproduce the above copyright notice, this list of
52
+ * conditions and the following disclaimer in the documentation and/or other
53
+ * materials provided with the distribution.
54
+ *
55
+ * 2. Neither the name of Nordic Semiconductor ASA nor the names of its
56
+ * contributors may be used to endorse or promote products derived from this
57
+ * software without specific prior written permission.
58
+ *
59
+ * 3. This software, with or without modification, must only be used with a Nordic
60
+ * Semiconductor ASA integrated circuit.
61
+ *
62
+ * 4. Any software provided in binary form under this license must not be reverse
63
+ * engineered, decompiled, modified and/or disassembled.
64
+ *
65
+ * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS OR
66
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
67
+ * MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
68
+ * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE LIABLE
69
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
70
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
71
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
72
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
73
+ * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
74
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
75
+ */`,St=e=>{console.error(e),process.exit(1)},Fe=e=>RegExp(`^${e.replace(ul,"\\$1").replace(Yi,"\\r?\\n").replace("__YEAR__","\\d{4}").replace("__YEARS__","(?<oldStartingYear>\\d{4})( - \\d{4})?")}`),ll=()=>{(0,ae.existsSync)("./LICENSE")||St("Missing file 'LICENSE' in the root of the project."),(0,ae.readFileSync)("./LICENSE",{encoding:"utf8"}).trim().match(Fe(cl))||St("The file 'LICENSE' does not contain the correct license.")},fl=e=>e.replace(/\/$/,""),hl=e=>e.replace(/^\/(.*)/,"$1/**"),pl=(0,ae.readFileSync)(".gitignore",{encoding:"utf8"}).trim().split(/\r?\n/).map(fl).map(hl),Ki=()=>Wi.default.sync(["*.js","*.jsx","*.mjs","*.ts","*.tsx","*.css","*.scss","*.sass"],{ignore:[...pl,"scripts/nordic-publish.js","typings/generated",".git"],baseNameMatch:!0}),Qi=e=>!(0,ae.readFileSync)(e,{encoding:"utf8"}).replace(tn,"").trim().match(Fe(Vi)),dl=()=>{let e=Ki().filter(Qi);if(e.length>0){let r=(0,ae.existsSync)("./scripts/nrfconnect-license.ts")?"./scripts/nrfconnect-license.ts update":"nrfconnect-license update",n=e.map(s=>`- ${s}
76
+ `).join("");St(`These files do not contain the correct license, try fixing this with running 'npx ${r}':
77
+ ${n}`)}},_l=()=>{ll(),dl()},gl=e=>e.match(Yi)?.[0]??`
78
+ `,Sl=e=>{let t=e.match(tn);return t?{shebangLine:t[0],contentWithoutShebang:e.replace(tn,"")}:{shebangLine:"",contentWithoutShebang:e}},yl=e=>{let t=e.match(Fe(en))!=null,r=e.match(Fe(en))?.groups?.oldStartingYear,n=e.replace(Fe(en),"").trimStart();return{hadOutdatedLicense:t,oldStartYear:r,remainingContent:n}},El=e=>{if(!Qi(e))return;let t=(0,ae.readFileSync)(e,{encoding:"utf8"}),r=gl(t),{shebangLine:n,contentWithoutShebang:s}=Sl(t),{hadOutdatedLicense:i,oldStartYear:o,remainingContent:a}=yl(s),u="/*";if(!i&&a.startsWith(u)){console.warn(`The file '${e}' has a comment at the beginning which is not a known outdated license. Not touching this file.`);return}let d=String(new Date().getFullYear()),l=Vi.replace(/\r?\n/g,r).replace("__YEAR__",o??d);(0,ae.writeFileSync)(e,n+l+r+r+a),console.log(`${i?"Updated":"Added"} license header in file '${e}'`)},ml=()=>{Ki().forEach(El)},Al=process.argv[2];switch(Al){case"check":_l();break;case"update":ml();break;default:St("Must provide either 'check' or 'update' as a parameter.")}
79
+ /*! Bundled license information:
80
+
81
+ is-extglob/index.js:
82
+ (*!
83
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
84
+ *
85
+ * Copyright (c) 2014-2016, Jon Schlinkert.
86
+ * Licensed under the MIT License.
87
+ *)
88
+
89
+ is-glob/index.js:
90
+ (*!
91
+ * is-glob <https://github.com/jonschlinkert/is-glob>
92
+ *
93
+ * Copyright (c) 2014-2017, Jon Schlinkert.
94
+ * Released under the MIT License.
95
+ *)
96
+
97
+ is-number/index.js:
98
+ (*!
99
+ * is-number <https://github.com/jonschlinkert/is-number>
100
+ *
101
+ * Copyright (c) 2014-present, Jon Schlinkert.
102
+ * Released under the MIT License.
103
+ *)
104
+
105
+ to-regex-range/index.js:
106
+ (*!
107
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
108
+ *
109
+ * Copyright (c) 2015-present, Jon Schlinkert.
110
+ * Released under the MIT License.
111
+ *)
112
+
113
+ fill-range/index.js:
114
+ (*!
115
+ * fill-range <https://github.com/jonschlinkert/fill-range>
116
+ *
117
+ * Copyright (c) 2014-present, Jon Schlinkert.
118
+ * Licensed under the MIT License.
119
+ *)
120
+
121
+ queue-microtask/index.js:
122
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
123
+
124
+ run-parallel/index.js:
125
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
126
+ */
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+
3
+ /*
4
+ * Copyright (c) 2015 Nordic Semiconductor ASA
5
+ *
6
+ * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
7
+ */
8
+
9
+ const { execSync } = require('child_process');
10
+ const { existsSync } = require('fs');
11
+ const { resolve } = require('path');
12
+ const { build } = require('./esbuild-renderer');
13
+
14
+ const scripts = [
15
+ 'nordic-publish',
16
+ 'check-app-properties',
17
+ 'check-for-typescript',
18
+ 'nrfconnect-license',
19
+ ];
20
+
21
+ scripts.forEach(script => {
22
+ // compile scripts if they don't exist
23
+ if (!existsSync(`scripts/${script}.js`)) {
24
+ const command = `npx esbuild scripts/${script}.ts --bundle --outfile=scripts/${script}.js --platform=node --log-level=warning --minify`;
25
+ execSync(command, { encoding: 'utf-8' });
26
+ }
27
+ });
28
+
29
+ if (!existsSync(`dist/bootstrap.css`)) {
30
+ build({
31
+ logLevel: 'warning',
32
+ entryPoints: ['./src/bootstrap.scss'],
33
+ outfile: 'dist/bootstrap.css',
34
+ sourcemap: false,
35
+ });
36
+ }
37
+
38
+ const root = resolve(__dirname, '..');
39
+ process.chdir(root);
40
+
41
+ // Generate types
42
+ execSync('npm run generate-types', { encoding: 'utf-8' });
@@ -28,8 +28,7 @@
28
28
  through CSS, e.g. to change the colours.
29
29
  */
30
30
 
31
- import logger from '../../logging';
32
- import { Device } from '../deviceSlice';
31
+ import type { Device } from '../deviceSlice';
33
32
 
34
33
  import nrf51logo from '!!@svgr!./nRF51-Series-logo.svg';
35
34
  import nrf52logo from '!!@svgr!./nRF52-Series-logo.svg';
@@ -209,25 +208,11 @@ const deviceByUsb = (device: Device) => {
209
208
  return null;
210
209
  };
211
210
 
212
- let hasShownUdevWarning = false;
213
- const unknownDevice = (device: Device): DeviceInfo => {
214
- if (
215
- isNordicDevice(device) &&
216
- process.platform === 'linux' &&
217
- !hasShownUdevWarning
218
- ) {
219
- logger.warn(
220
- 'Could not properly detect an unknown device. Please make sure you have nrf-udev installed: https://github.com/NordicSemiconductor/nrf-udev'
221
- );
222
- hasShownUdevWarning = true;
223
- }
224
-
225
- return {
226
- name: device.usb?.product,
227
- icon: isNordicDevice(device) ? unknownNordicLogo : unknownLogo,
228
- website: {},
229
- };
230
- };
211
+ const unknownDevice = (device: Device): DeviceInfo => ({
212
+ name: device.usb?.product,
213
+ icon: isNordicDevice(device) ? unknownNordicLogo : unknownLogo,
214
+ website: {},
215
+ });
231
216
 
232
217
  export const deviceInfo = (device: Device): DeviceInfo =>
233
218
  deviceByPca(device) || deviceByUsb(device) || unknownDevice(device);
@@ -14,6 +14,7 @@ import {
14
14
  import { getAppDataDir } from '../utils/appDirs';
15
15
  import describeVersion from '../utils/describeVersion';
16
16
  import logLibVersions from '../utils/logLibVersions';
17
+ import udevInstalled from '../utils/udevInstalled';
17
18
  import logger from '.';
18
19
 
19
20
  let initialMessagesSent = false;
@@ -58,4 +59,10 @@ export default async () => {
58
59
  );
59
60
  }
60
61
  }
62
+
63
+ if (!udevInstalled()) {
64
+ logger.warn(
65
+ 'Required component nrf-udev is not detected. Install it from https://github.com/NordicSemiconductor/nrf-udev and restart the application'
66
+ );
67
+ }
61
68
  };
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright (c) 2015 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
5
+ */
6
+
7
+ import { execSync } from 'child_process';
8
+
9
+ export default () => {
10
+ if (process.platform !== 'linux') {
11
+ return true;
12
+ }
13
+
14
+ try {
15
+ execSync('dpkg -l nrf-udev');
16
+ } catch (error) {
17
+ return false;
18
+ }
19
+
20
+ return true;
21
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./config/tsconfig.json",
3
+ "include": [
4
+ "./main/**/*.ts",
5
+ "./src/**/*.ts",
6
+ "./src/**/*.tsx",
7
+ "./typings/*.d.ts"
8
+ ]
9
+ }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Device } from '../deviceSlice';
2
+ import type { Device } from '../deviceSlice';
3
3
  interface DeviceInfo {
4
4
  name?: string | null;
5
5
  cores?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA+BA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAyBxC,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;CACL;AAuKD,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,UAC2B,CAAC;AAExE,eAAO,MAAM,mBAAmB,WACpB,MAAM;;YAQjB,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,uBAEiC,CAAC;AAE/E,eAAO,MAAM,YAAY,WAAY,MAAM,uBAIrC,CAAC"}
1
+ {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA8BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAyB7C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;CACL;AAyJD,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,UAC2B,CAAC;AAExE,eAAO,MAAM,mBAAmB,WACpB,MAAM;;YAQjB,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,uBAEiC,CAAC;AAE/E,eAAO,MAAM,YAAY,WAAY,MAAM,uBAIrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sendInitialLogMessages.d.ts","sourceRoot":"","sources":["../../../../src/logging/sendInitialLogMessages.ts"],"names":[],"mappings":";AAmBA,wBAyCE"}
1
+ {"version":3,"file":"sendInitialLogMessages.d.ts","sourceRoot":"","sources":["../../../../src/logging/sendInitialLogMessages.ts"],"names":[],"mappings":";AAoBA,wBA+CE"}
@@ -0,0 +1,3 @@
1
+ declare const _default: () => boolean;
2
+ export default _default;
3
+ //# sourceMappingURL=udevInstalled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"udevInstalled.d.ts","sourceRoot":"","sources":["../../../../src/utils/udevInstalled.ts"],"names":[],"mappings":";AAQA,wBAYE"}
package/mocks/gaMock.ts DELETED
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright (c) 2021 Nordic Semiconductor ASA
3
- *
4
- * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
5
- */
6
-
7
- export default jest.fn(() => ({
8
- initialize: jest.fn(),
9
- }));
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env node
2
- /*
3
- * Copyright (c) 2015 Nordic Semiconductor ASA
4
- *
5
- * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
6
- */
7
-
8
- const { build } = require('./esbuild-renderer');
9
-
10
- build({
11
- logLevel: 'warning',
12
- entryPoints: ['./src/bootstrap.scss'],
13
- outfile: 'dist/bootstrap.css',
14
- sourcemap: false,
15
- });