valaxy 0.22.10 → 0.22.12

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.
@@ -1,4 +1,4 @@
1
- import { isClient } from '@vueuse/core'
1
+ import { useEventListener } from '@vueuse/core'
2
2
  import { onContentUpdated } from 'valaxy'
3
3
 
4
4
  export function useCodeGroups() {
@@ -13,40 +13,37 @@ export function useCodeGroups() {
13
13
  })
14
14
  }
15
15
 
16
- if (isClient) {
17
- window.addEventListener('click', (e) => {
18
- const el = e.target as HTMLInputElement
19
-
20
- if (el.matches('.vp-code-group input')) {
21
- // input <- .tabs <- .vp-code-group
22
- const group = el.parentElement?.parentElement
23
- if (!group)
24
- return
25
-
26
- const i = Array.from(group.querySelectorAll('input')).indexOf(el)
27
- if (i < 0)
28
- return
29
-
30
- const blocks = group.querySelector('.blocks')
31
- if (!blocks)
32
- return
33
-
34
- const current = Array.from(blocks.children).find(child =>
35
- child.classList.contains('active'),
36
- )
37
- if (!current)
38
- return
39
-
40
- const next = blocks.children[i]
41
- if (!next || current === next)
42
- return
43
-
44
- current.classList.remove('active')
45
- next.classList.add('active')
46
-
47
- const label = group?.querySelector(`label[for="${el.id}"]`)
48
- label?.scrollIntoView({ block: 'nearest' })
49
- }
50
- })
51
- }
16
+ useEventListener('click', (e) => {
17
+ const el = e.target as HTMLInputElement
18
+ if (el.matches('.vp-code-group input')) {
19
+ // input <- .tabs <- .vp-code-group
20
+ const group = el.parentElement?.parentElement
21
+ if (!group)
22
+ return
23
+
24
+ const i = Array.from(group.querySelectorAll('input')).indexOf(el)
25
+ if (i < 0)
26
+ return
27
+
28
+ const blocks = group.querySelector('.blocks')
29
+ if (!blocks)
30
+ return
31
+
32
+ const current = Array.from(blocks.children).find(child =>
33
+ child.classList.contains('active'),
34
+ )
35
+ if (!current)
36
+ return
37
+
38
+ const next = blocks.children[i]
39
+ if (!next || current === next)
40
+ return
41
+
42
+ current.classList.remove('active')
43
+ next.classList.add('active')
44
+
45
+ const label = group?.querySelector(`label[for="${el.id}"]`)
46
+ label?.scrollIntoView({ block: 'nearest' })
47
+ }
48
+ })
52
49
  }
@@ -1,41 +1,53 @@
1
- import { isClient } from '@vueuse/core'
1
+ import { useEventListener } from '@vueuse/core'
2
2
  import { useFrontmatter, useSiteConfig } from 'valaxy'
3
3
  import { onMounted } from 'vue'
4
4
 
5
+ /**
6
+ * 获取未渲染元素的高度
7
+ */
8
+ function getHeightViaClone(el: HTMLElement) {
9
+ const clone = el.cloneNode(true) as HTMLElement
10
+ clone.style.cssText = `
11
+ position: absolute;
12
+ visibility: hidden;
13
+ display: block;
14
+ left: -9999px;
15
+ `
16
+ document.body.appendChild(clone)
17
+ const height = clone.scrollHeight
18
+ document.body.removeChild(clone)
19
+ return height
20
+ }
21
+
22
+ /**
23
+ * 折叠代码块(允许设置最大高度)
24
+ *
25
+ * - 通过设置 `codeHeightLimit` 来限制代码块的高度
26
+ */
5
27
  export function useCollapseCode() {
6
28
  const config = useSiteConfig()
7
29
  const frontmatter = useFrontmatter()
8
30
 
9
- if (isClient) {
10
- window.addEventListener('click', (e) => {
11
- const el = e.target as HTMLElement
12
- if (el.matches('[class*="language-"] > button.collapse')) {
13
- const parent = el.parentElement
14
- parent?.removeAttribute('style')
15
- parent?.classList.remove('folded')
16
- }
17
- })
31
+ const codeHeightLimit = frontmatter.value.codeHeightLimit || config.value.codeHeightLimit
32
+ if (typeof codeHeightLimit !== 'number' || codeHeightLimit <= 0) {
33
+ return
18
34
  }
19
35
 
36
+ useEventListener('click', (e) => {
37
+ const el = e.target as HTMLElement
38
+ if (el.matches('[class*="language-"] > button.collapse')) {
39
+ const parent = el.parentElement
40
+ parent?.removeAttribute('style')
41
+ parent?.classList.remove('folded')
42
+ }
43
+ })
44
+
20
45
  // determine whether to add folded class name
21
46
  onMounted(() => {
22
47
  const els = document.querySelectorAll('div[class*="language-"]')
23
- const siteConfigLimit = config.value.codeHeightLimit
24
- const frontmatterLimit = frontmatter.value.codeHeightLimit
25
- let codeHeightLimit: number
26
-
27
- if (typeof frontmatterLimit !== 'number' || frontmatterLimit <= 0) {
28
- if (siteConfigLimit === undefined || siteConfigLimit <= 0)
29
- return
30
- else
31
- codeHeightLimit = siteConfigLimit
32
- }
33
- else {
34
- codeHeightLimit = frontmatterLimit
35
- }
36
-
37
48
  for (const el of Array.from(els)) {
38
- if (el.scrollHeight > codeHeightLimit)
49
+ const elHeight = getHeightViaClone(el as HTMLElement)
50
+ if (elHeight > codeHeightLimit)
39
51
  el.classList.add('folded')
40
52
  }
41
53
  })
@@ -9,8 +9,8 @@ export function useMediumZoom() {
9
9
  const siteConfig = useSiteConfig()
10
10
  const mediumZoomConfig = siteConfig.value.mediumZoom
11
11
 
12
- onMounted(() => {
13
- if (mediumZoomConfig.enable) {
12
+ if (mediumZoomConfig.enable) {
13
+ onMounted(() => {
14
14
  mediumZoom(
15
15
  mediumZoomConfig.selector || '.markdown-body img',
16
16
  {
@@ -18,6 +18,6 @@ export function useMediumZoom() {
18
18
  ...mediumZoomConfig.options,
19
19
  },
20
20
  )
21
- }
22
- })
21
+ })
22
+ }
23
23
  }
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{a as w,d as h,e as d}from"./chunk-R76WNJFY.js";d();d();function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Z(e,t,n,r){function o(s){return s instanceof n?s:new n(function(c){c(s)})}return new(n||(n=Promise))(function(s,c){function l(i){try{u(r.next(i))}catch(p){c(p)}}function a(i){try{u(r.throw(i))}catch(p){c(p)}}function u(i){i.done?s(i.value):o(i.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}import{createHash as me}from"node:crypto";import G from"node:fs";import se from"node:module";import b from"node:path";import{fileURLToPath as be,pathToFileURL as X}from"node:url";import{MessageChannel as he,Worker as _e,parentPort as we,receiveMessageOnPort as ge,workerData as re}from"node:worker_threads";d();import{createRequire as de}from"node:module";var j=process.cwd(),A=typeof w>"u"?de(import.meta.url):w,ee=[".ts",".tsx",...Object.keys(A.extensions)];d();import q from"node:fs";import _ from"node:path";var ye=e=>{try{return A.resolve(e)}catch{}},W=e=>!!ye(e),I=(e,t=!1)=>{if(typeof e=="string")return q.existsSync(e)&&(t||q.statSync(e).isFile())?e:"";for(let n of e??[])if(I(n,t))return n;return""},te=(e,t=ee)=>{let n=[...t,""].find(r=>I(e+r));return n==null?"":e+n},D=(e,t,n)=>{if(console.assert(_.isAbsolute(e)),!I(e,!0)||e!==j&&!e.startsWith(j+_.sep))return"";e=_.resolve(q.statSync(e).isDirectory()?e:_.resolve(e,".."));let r=typeof t=="string",o=r?t:"package.json";do{let s=I(_.resolve(e,o),r&&n);if(s)return s;e=_.resolve(e,"..")}while(e===j||e.startsWith(j+_.sep));return""};d();var ve=4,f={TsNode:"ts-node",EsbuildRegister:"esbuild-register",EsbuildRunner:"esbuild-runner",SWC:"swc",TSX:"tsx"},{NODE_OPTIONS:k,SYNCKIT_EXEC_ARGV:B,SYNCKIT_GLOBAL_SHIMS:Se,SYNCKIT_TIMEOUT:ne,SYNCKIT_TS_RUNNER:Ee}=process.env,ie=Number(process.versions.node.split(".")[0])>=20,xe=ne?+ne:void 0,Te=B?.split(",")||[],je=Ee,Oe=["1","true"].includes(Se),Pe=[{moduleName:"node-fetch",globalName:"fetch"},{moduleName:"node:perf_hooks",globalName:"performance",named:"performance"}],Ne=16,g;function Re(e){if(e&&typeof e=="object"){let t={};for(let n in e)t[n]=e[n];return t}}function nt(e,t){g??(g=new Map);let n=g.get(e);if(n)return n;if(!b.isAbsolute(e))throw new Error("`workerPath` must be absolute");let r=Ce(e,typeof t=="number"?{timeout:t}:t);return g.set(e,r),r}var F=typeof w>"u"?se.createRequire(import.meta.url):w,$e=e=>new URL(`data:text/javascript,${encodeURIComponent(e)}`),ae=e=>{var t;try{return!!(!((t=G.statSync(e,{throwIfNoEntry:!1}))===null||t===void 0)&&t.isFile())}catch{return!1}},Ie=(e,{execArgv:t,tsRunner:n})=>{let r=b.extname(e);if(!/[/\\]node_modules[/\\]/.test(e)&&(!r||/^\.[cm]?js$/.test(r))){let a=r?e.slice(0,-r.length):e,u;switch(r){case".cjs":{u=[".cts",".cjs"];break}case".mjs":{u=[".mts",".mjs"];break}default:{u=[".ts",".js"];break}}let i=te(a,u),p;i&&(!r||(p=i!==a))&&(e=i,p&&(r=b.extname(e)))}let o=/\.[cm]?ts$/.test(e),s=e.endsWith(".mjs"),c=e.endsWith(".mts");if(o){if(!c){let a=D(e);a&&(c=F(a).type==="module")}switch(n==null&&W(f.TsNode)&&(n=f.TsNode),n){case f.TsNode:{c?t.includes("--loader")||(t=["--loader",`${f.TsNode}/esm`,...t]):t.includes("-r")||(t=["-r",`${f.TsNode}/register`,...t]);break}case f.EsbuildRegister:{t.includes("-r")||(t=["-r",f.EsbuildRegister,...t]);break}case f.EsbuildRunner:{t.includes("-r")||(t=["-r",`${f.EsbuildRunner}/register`,...t]);break}case f.SWC:{t.includes("-r")||(t=["-r",`@${f.SWC}-node/register`,...t]);break}case f.TSX:{t.includes("--loader")||(t=["--loader",f.TSX,...t]);break}default:throw new Error(`Unknown ts runner: ${String(n)}`)}}else if(!s){let a=D(e);a&&(s=F(a).type==="module")}let l;if(process.versions.pnp){let a=k?.split(/\s+/),u;try{u=F.resolve("pnpapi")}catch{}if(u&&!a?.some((i,p)=>["-r","--require"].includes(i)&&u===F.resolve(a[p+1]))&&!t.includes(u)){t=["-r",u,...t];let i=b.resolve(u,"../.pnp.loader.mjs");ae(i)&&(l=X(i).toString(),ie||(t=["--experimental-loader",l,...t]))}}return{ext:r,isTs:o,jsUseEsm:s,tsRunner:n,tsUseEsm:c,workerPath:e,pnpLoaderPath:l,execArgv:t}},De=e=>me("md5").update(e).digest("hex"),V=(e,t="import")=>{let{moduleName:n,globalName:r,named:o,conditional:s}=typeof e=="string"?{moduleName:e}:e,c=t==="import"?`import${r?" "+(o===null?"* as "+r:o?.trim()?`{${o}}`:r)+" from":""} '${b.isAbsolute(n)?String(X(n)):n}'`:`${r?"const "+(o?.trim()?`{${o}}`:r)+"=":""}require('${n.replace(/\\/g,"\\\\")}')`;if(!r)return c;let l=`globalThis.${r}=${o?.trim()?o:r}`;return c+(s===!1?`;${l}`:`;if(!globalThis.${r})${l}`)},Fe=(e,t)=>e.reduce((n,r)=>`${n}${n?";":""}${V(r,t)}`,""),v,U,Ue=typeof h>"u"?b.dirname(be(import.meta.url)):h,O,S,oe=(e,t,n="import")=>{v??(v=new Map);let r=v.get(e);if(r){let[l,a]=r;if(n==="require"&&!a||n==="import"&&a&&ae(a))return l}let o=Fe(t,n),s=o,c;return n==="import"&&(U||(U=b.resolve(D(Ue),"../node_modules/.synckit")),G.mkdirSync(U,{recursive:!0}),c=b.resolve(U,De(e)+".mjs"),s=V(c),G.writeFileSync(c,o)),v.set(e,[s,c]),s};function Ce(e,{timeout:t=xe,execArgv:n=Te,tsRunner:r=je,transferList:o=[],globalShims:s=Oe}={}){let{port1:c,port2:l}=new he,{isTs:a,ext:u,jsUseEsm:i,tsUseEsm:p,tsRunner:P,workerPath:E,pnpLoaderPath:ce,execArgv:ue}=Ie(e,{execArgv:n,tsRunner:r}),K=X(E);if(/\.[cm]ts$/.test(E)){let y=!p||Number.parseFloat(process.versions.node)>=Ne;if(P){if([f.EsbuildRegister,f.EsbuildRunner,f.SWC,...y?[]:[f.TSX]].includes(P))throw new Error(`${P} is not supported for ${u} files yet`+(y?", you can try [tsx](https://github.com/esbuild-kit/tsx) instead":""))}else throw new Error("No ts runner specified, ts worker path is not supported")}let C=(s===!0?Pe:Array.isArray(s)?s:[]).filter(({moduleName:y})=>W(y));S??(S=new Int32Array(O??(O=new SharedArrayBuffer(ve)),0,1));let H=C.length>0,Y=a?!p:!i&&H,z=new _e(i&&H||p&&P===f.TsNode?$e(`${oe(E,C)};import '${String(K)}'`):Y?`${oe(E,C,"require")};${V(E,"require")}`:K,{eval:Y,workerData:{sharedBuffer:O,workerPort:l,pnpLoaderPath:ce},transferList:[l,...o],execArgv:ue}),fe=0,J=(y,m,x)=>{let L=Date.now(),T=Atomics.wait(S,0,0,x);if(Atomics.store(S,0,0),!["ok","not-equal"].includes(T)){let M={id:m,cmd:"abort"};throw y.postMessage(M),new Error("Internal error: Atomics.wait() failed: "+T)}let N=ge(c).message,{id:R}=N,pe=Q(N,["id"]);if(R<m){let M=Date.now()-L;return J(y,m,x?x-M:void 0)}if(m!==R)throw new Error(`Internal error: Expected id ${m} but got id ${R}`);return Object.assign({id:R},pe)},le=(...y)=>{let m=fe++,x={id:m,args:y};z.postMessage(x);let{result:L,error:T,properties:N}=J(c,m,t);if(T)throw Object.assign(T,N);return L};return z.unref(),le}function ot(e){if(!re)return;let{workerPort:t,sharedBuffer:n,pnpLoaderPath:r}=re;r&&ie&&se.register(r);let o=new Int32Array(n,0,1);we.on("message",({id:s,args:c})=>{Z(this,void 0,void 0,function*(){let l=!1,a=i=>{i.id===s&&i.cmd==="abort"&&(l=!0)};t.on("message",a);let u;try{u={id:s,result:yield e(...c)}}catch(i){u={id:s,error:i,properties:Re(i)}}t.off("message",a),!l&&(t.postMessage(u),Atomics.add(o,0,1),Atomics.notify(o,0))})})}export{nt as a,ot as b};
2
+ import{a as w,d as h,e as d}from"./chunk-3KRYIAHJ.js";d();d();function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Z(e,t,n,r){function o(s){return s instanceof n?s:new n(function(c){c(s)})}return new(n||(n=Promise))(function(s,c){function l(i){try{u(r.next(i))}catch(p){c(p)}}function a(i){try{u(r.throw(i))}catch(p){c(p)}}function u(i){i.done?s(i.value):o(i.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}import{createHash as me}from"node:crypto";import G from"node:fs";import se from"node:module";import b from"node:path";import{fileURLToPath as be,pathToFileURL as X}from"node:url";import{MessageChannel as he,Worker as _e,parentPort as we,receiveMessageOnPort as ge,workerData as re}from"node:worker_threads";d();import{createRequire as de}from"node:module";var j=process.cwd(),A=typeof w>"u"?de(import.meta.url):w,ee=[".ts",".tsx",...Object.keys(A.extensions)];d();import q from"node:fs";import _ from"node:path";var ye=e=>{try{return A.resolve(e)}catch{}},W=e=>!!ye(e),I=(e,t=!1)=>{if(typeof e=="string")return q.existsSync(e)&&(t||q.statSync(e).isFile())?e:"";for(let n of e??[])if(I(n,t))return n;return""},te=(e,t=ee)=>{let n=[...t,""].find(r=>I(e+r));return n==null?"":e+n},D=(e,t,n)=>{if(console.assert(_.isAbsolute(e)),!I(e,!0)||e!==j&&!e.startsWith(j+_.sep))return"";e=_.resolve(q.statSync(e).isDirectory()?e:_.resolve(e,".."));let r=typeof t=="string",o=r?t:"package.json";do{let s=I(_.resolve(e,o),r&&n);if(s)return s;e=_.resolve(e,"..")}while(e===j||e.startsWith(j+_.sep));return""};d();var ve=4,f={TsNode:"ts-node",EsbuildRegister:"esbuild-register",EsbuildRunner:"esbuild-runner",SWC:"swc",TSX:"tsx"},{NODE_OPTIONS:k,SYNCKIT_EXEC_ARGV:B,SYNCKIT_GLOBAL_SHIMS:Se,SYNCKIT_TIMEOUT:ne,SYNCKIT_TS_RUNNER:Ee}=process.env,ie=Number(process.versions.node.split(".")[0])>=20,xe=ne?+ne:void 0,Te=B?.split(",")||[],je=Ee,Oe=["1","true"].includes(Se),Pe=[{moduleName:"node-fetch",globalName:"fetch"},{moduleName:"node:perf_hooks",globalName:"performance",named:"performance"}],Ne=16,g;function Re(e){if(e&&typeof e=="object"){let t={};for(let n in e)t[n]=e[n];return t}}function nt(e,t){g??(g=new Map);let n=g.get(e);if(n)return n;if(!b.isAbsolute(e))throw new Error("`workerPath` must be absolute");let r=Ce(e,typeof t=="number"?{timeout:t}:t);return g.set(e,r),r}var F=typeof w>"u"?se.createRequire(import.meta.url):w,$e=e=>new URL(`data:text/javascript,${encodeURIComponent(e)}`),ae=e=>{var t;try{return!!(!((t=G.statSync(e,{throwIfNoEntry:!1}))===null||t===void 0)&&t.isFile())}catch{return!1}},Ie=(e,{execArgv:t,tsRunner:n})=>{let r=b.extname(e);if(!/[/\\]node_modules[/\\]/.test(e)&&(!r||/^\.[cm]?js$/.test(r))){let a=r?e.slice(0,-r.length):e,u;switch(r){case".cjs":{u=[".cts",".cjs"];break}case".mjs":{u=[".mts",".mjs"];break}default:{u=[".ts",".js"];break}}let i=te(a,u),p;i&&(!r||(p=i!==a))&&(e=i,p&&(r=b.extname(e)))}let o=/\.[cm]?ts$/.test(e),s=e.endsWith(".mjs"),c=e.endsWith(".mts");if(o){if(!c){let a=D(e);a&&(c=F(a).type==="module")}switch(n==null&&W(f.TsNode)&&(n=f.TsNode),n){case f.TsNode:{c?t.includes("--loader")||(t=["--loader",`${f.TsNode}/esm`,...t]):t.includes("-r")||(t=["-r",`${f.TsNode}/register`,...t]);break}case f.EsbuildRegister:{t.includes("-r")||(t=["-r",f.EsbuildRegister,...t]);break}case f.EsbuildRunner:{t.includes("-r")||(t=["-r",`${f.EsbuildRunner}/register`,...t]);break}case f.SWC:{t.includes("-r")||(t=["-r",`@${f.SWC}-node/register`,...t]);break}case f.TSX:{t.includes("--loader")||(t=["--loader",f.TSX,...t]);break}default:throw new Error(`Unknown ts runner: ${String(n)}`)}}else if(!s){let a=D(e);a&&(s=F(a).type==="module")}let l;if(process.versions.pnp){let a=k?.split(/\s+/),u;try{u=F.resolve("pnpapi")}catch{}if(u&&!a?.some((i,p)=>["-r","--require"].includes(i)&&u===F.resolve(a[p+1]))&&!t.includes(u)){t=["-r",u,...t];let i=b.resolve(u,"../.pnp.loader.mjs");ae(i)&&(l=X(i).toString(),ie||(t=["--experimental-loader",l,...t]))}}return{ext:r,isTs:o,jsUseEsm:s,tsRunner:n,tsUseEsm:c,workerPath:e,pnpLoaderPath:l,execArgv:t}},De=e=>me("md5").update(e).digest("hex"),V=(e,t="import")=>{let{moduleName:n,globalName:r,named:o,conditional:s}=typeof e=="string"?{moduleName:e}:e,c=t==="import"?`import${r?" "+(o===null?"* as "+r:o?.trim()?`{${o}}`:r)+" from":""} '${b.isAbsolute(n)?String(X(n)):n}'`:`${r?"const "+(o?.trim()?`{${o}}`:r)+"=":""}require('${n.replace(/\\/g,"\\\\")}')`;if(!r)return c;let l=`globalThis.${r}=${o?.trim()?o:r}`;return c+(s===!1?`;${l}`:`;if(!globalThis.${r})${l}`)},Fe=(e,t)=>e.reduce((n,r)=>`${n}${n?";":""}${V(r,t)}`,""),v,U,Ue=typeof h>"u"?b.dirname(be(import.meta.url)):h,O,S,oe=(e,t,n="import")=>{v??(v=new Map);let r=v.get(e);if(r){let[l,a]=r;if(n==="require"&&!a||n==="import"&&a&&ae(a))return l}let o=Fe(t,n),s=o,c;return n==="import"&&(U||(U=b.resolve(D(Ue),"../node_modules/.synckit")),G.mkdirSync(U,{recursive:!0}),c=b.resolve(U,De(e)+".mjs"),s=V(c),G.writeFileSync(c,o)),v.set(e,[s,c]),s};function Ce(e,{timeout:t=xe,execArgv:n=Te,tsRunner:r=je,transferList:o=[],globalShims:s=Oe}={}){let{port1:c,port2:l}=new he,{isTs:a,ext:u,jsUseEsm:i,tsUseEsm:p,tsRunner:P,workerPath:E,pnpLoaderPath:ce,execArgv:ue}=Ie(e,{execArgv:n,tsRunner:r}),K=X(E);if(/\.[cm]ts$/.test(E)){let y=!p||Number.parseFloat(process.versions.node)>=Ne;if(P){if([f.EsbuildRegister,f.EsbuildRunner,f.SWC,...y?[]:[f.TSX]].includes(P))throw new Error(`${P} is not supported for ${u} files yet`+(y?", you can try [tsx](https://github.com/esbuild-kit/tsx) instead":""))}else throw new Error("No ts runner specified, ts worker path is not supported")}let C=(s===!0?Pe:Array.isArray(s)?s:[]).filter(({moduleName:y})=>W(y));S??(S=new Int32Array(O??(O=new SharedArrayBuffer(ve)),0,1));let H=C.length>0,Y=a?!p:!i&&H,z=new _e(i&&H||p&&P===f.TsNode?$e(`${oe(E,C)};import '${String(K)}'`):Y?`${oe(E,C,"require")};${V(E,"require")}`:K,{eval:Y,workerData:{sharedBuffer:O,workerPort:l,pnpLoaderPath:ce},transferList:[l,...o],execArgv:ue}),fe=0,J=(y,m,x)=>{let L=Date.now(),T=Atomics.wait(S,0,0,x);if(Atomics.store(S,0,0),!["ok","not-equal"].includes(T)){let M={id:m,cmd:"abort"};throw y.postMessage(M),new Error("Internal error: Atomics.wait() failed: "+T)}let N=ge(c).message,{id:R}=N,pe=Q(N,["id"]);if(R<m){let M=Date.now()-L;return J(y,m,x?x-M:void 0)}if(m!==R)throw new Error(`Internal error: Expected id ${m} but got id ${R}`);return Object.assign({id:R},pe)},le=(...y)=>{let m=fe++,x={id:m,args:y};z.postMessage(x);let{result:L,error:T,properties:N}=J(c,m,t);if(T)throw Object.assign(T,N);return L};return z.unref(),le}function ot(e){if(!re)return;let{workerPort:t,sharedBuffer:n,pnpLoaderPath:r}=re;r&&ie&&se.register(r);let o=new Int32Array(n,0,1);we.on("message",({id:s,args:c})=>{Z(this,void 0,void 0,function*(){let l=!1,a=i=>{i.id===s&&i.cmd==="abort"&&(l=!0)};t.on("message",a);let u;try{u={id:s,result:yield e(...c)}}catch(i){u={id:s,error:i,properties:Re(i)}}t.off("message",a),!l&&(t.postMessage(u),Atomics.add(o,0,1),Atomics.notify(o,0))})})}export{nt as a,ot as b};
@@ -1,5 +1,5 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{a as ga}from"./chunk-YBYGBP4O.js";import{a as U,b,c as ee,e as u}from"./chunk-R76WNJFY.js";var ya=b(Ct=>{"use strict";u();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.splitWhen=Ct.flatten=void 0;function Pm(e){return e.reduce((t,r)=>[].concat(t,r),[])}Ct.flatten=Pm;function Fm(e,t){let r=[[]],o=0;for(let i of e)t(i)?(o++,r[o]=[]):r[o].push(i);return r}Ct.splitWhen=Fm});var Da=b(yr=>{"use strict";u();Object.defineProperty(yr,"__esModule",{value:!0});yr.isEnoentCodeError=void 0;function Tm(e){return e.code==="ENOENT"}yr.isEnoentCodeError=Tm});var ba=b(Dr=>{"use strict";u();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.createDirentFromStats=void 0;var mo=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 Om(e,t){return new mo(e,t)}Dr.createDirentFromStats=Om});var wa=b(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.convertPosixPathToPattern=Q.convertWindowsPathToPattern=Q.convertPathToPattern=Q.escapePosixPath=Q.escapeWindowsPath=Q.escape=Q.removeLeadingDotSegment=Q.makeAbsolute=Q.unixify=void 0;var $m=U("os"),Lm=U("path"),Ca=$m.platform()==="win32",Mm=2,Bm=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,jm=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Nm=/^\\\\([.?])/,Im=/\\(?![!()+@[\]{}])/g;function Vm(e){return e.replace(/\\/g,"/")}Q.unixify=Vm;function Hm(e,t){return Lm.resolve(e,t)}Q.makeAbsolute=Hm;function qm(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Mm)}return e}Q.removeLeadingDotSegment=qm;Q.escape=Ca?ho:go;function ho(e){return e.replace(jm,"\\$2")}Q.escapeWindowsPath=ho;function go(e){return e.replace(Bm,"\\$2")}Q.escapePosixPath=go;Q.convertPathToPattern=Ca?_a:va;function _a(e){return ho(e).replace(Nm,"//$1").replace(Im,"/")}Q.convertWindowsPathToPattern=_a;function va(e){return go(e)}Q.convertPosixPathToPattern=va});var Sa=b((Gx,xa)=>{"use strict";u();xa.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 ka=b((Ux,Ea)=>{"use strict";u();var Gm=Sa(),Ra={"{":"}","(":")","[":"]"},Wm=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,o=-2,i=-2,n=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||o!==-1&&e[t]==="["&&e[t+1]!=="]"&&(o<t&&(o=e.indexOf("]",t)),o>t&&(s===-1||s>o||(s=e.indexOf("\\",t),s===-1||s>o)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||n!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(n=e.indexOf(")",t),n>t&&(s=e.indexOf("\\",t),s===-1||s>n))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(n=e.indexOf(")",r),n>r&&(s=e.indexOf("\\",r),s===-1||s>n))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=Ra[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},Um=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 o=Ra[r];if(o){var i=e.indexOf(o,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Ea.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Gm(t))return!0;var o=Wm;return r&&r.strict===!1&&(o=Um),o(t)}});var Pa=b((Jx,Aa)=>{"use strict";u();var zm=ka(),Jm=U("path").posix.dirname,Km=U("os").platform()==="win32",yo="/",Ym=/\\/g,Xm=/[\{\[].*[\}\]]$/,Qm=/(^|[^\\])([\{\[]|\([^\)]+$)/,Zm=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Aa.exports=function(t,r){var o=Object.assign({flipBackslashes:!0},r);o.flipBackslashes&&Km&&t.indexOf(yo)<0&&(t=t.replace(Ym,yo)),Xm.test(t)&&(t+=yo),t+="a";do t=Jm(t);while(zm(t)||Qm.test(t));return t.replace(Zm,"$1")}});var br=b(he=>{"use strict";u();he.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;he.find=(e,t)=>e.nodes.find(r=>r.type===t);he.exceedsLimit=(e,t,r=1,o)=>o===!1||!he.isInteger(e)||!he.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=o;he.escapeNode=(e,t=0,r)=>{let o=e.nodes[t];o&&(r&&o.type===r||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};he.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);he.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;he.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;he.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);he.flatten=(...e)=>{let t=[],r=o=>{for(let i=0;i<o.length;i++){let n=o[i];if(Array.isArray(n)){r(n);continue}n!==void 0&&t.push(n)}return t};return r(e),t}});var Cr=b((Qx,Ta)=>{"use strict";u();var Fa=br();Ta.exports=(e,t={})=>{let r=(o,i={})=>{let n=t.escapeInvalid&&Fa.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a="";if(o.value)return(n||s)&&Fa.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let l of o.nodes)a+=r(l);return a};return r(e)}});var $a=b((eS,Oa)=>{"use strict";u();Oa.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var qa=b((rS,Ha)=>{"use strict";u();var La=$a(),at=(e,t,r)=>{if(La(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(La(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...r};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let i=String(o.relaxZeros),n=String(o.shorthand),s=String(o.capture),a=String(o.wrap),l=e+":"+t+"="+i+n+s+a;if(at.cache.hasOwnProperty(l))return at.cache[l].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let D=e+"|"+t;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let d=Va(e)||Va(t),p={min:e,max:t,a:c,b:f},g=[],y=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),c<0){let D=f<0?Math.abs(f):1;y=Ma(D,Math.abs(c),p,o),c=p.a=0}return f>=0&&(g=Ma(c,f,p,o)),p.negatives=y,p.positives=g,p.result=eh(y,g,o),o.capture===!0?p.result=`(${p.result})`:o.wrap!==!1&&g.length+y.length>1&&(p.result=`(?:${p.result})`),at.cache[l]=p,p.result};function eh(e,t,r){let o=Do(e,t,"-",!1,r)||[],i=Do(t,e,"",!1,r)||[],n=Do(e,t,"-?",!0,r)||[];return o.concat(n).concat(i).join("|")}function th(e,t){let r=1,o=1,i=ja(e,r),n=new Set([t]);for(;e<=i&&i<=t;)n.add(i),r+=1,i=ja(e,r);for(i=Na(t+1,o)-1;e<i&&i<=t;)n.add(i),o+=1,i=Na(t+1,o)-1;return n=[...n],n.sort(oh),n}function rh(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=nh(e,t),i=o.length,n="",s=0;for(let a=0;a<i;a++){let[l,c]=o[a];l===c?n+=l:l!=="0"||c!=="9"?n+=ih(l,c,r):s++}return s&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[s],digits:i}}function Ma(e,t,r,o){let i=th(e,t),n=[],s=e,a;for(let l=0;l<i.length;l++){let c=i[l],f=rh(String(s),String(c),o),d="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Ia(a.count),s=c+1;continue}r.isPadded&&(d=sh(c,r,o)),f.string=d+f.pattern+Ia(f.count),n.push(f),s=c+1,a=f}return n}function Do(e,t,r,o,i){let n=[];for(let s of e){let{string:a}=s;!o&&!Ba(t,"string",a)&&n.push(r+a),o&&Ba(t,"string",a)&&n.push(r+a)}return n}function nh(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}function oh(e,t){return e>t?1:t>e?-1:0}function Ba(e,t,r){return e.some(o=>o[t]===r)}function ja(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Na(e,t){return e-e%Math.pow(10,t)}function Ia(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function ih(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Va(e){return/^-?(0+)\d/.test(e)}function sh(e,t,r){if(!t.isPadded)return e;let o=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(o){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${o}}`:`0{${o}}`}}at.cache={};at.clearCache=()=>at.cache={};Ha.exports=at});var _o=b((oS,Ya)=>{"use strict";u();var ah=U("util"),Wa=qa(),Ga=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),lh=e=>t=>e===!0?Number(t):String(t),bo=e=>typeof e=="number"||typeof e=="string"&&e!=="",zt=e=>Number.isInteger(+e),Co=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},uh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ch=(e,t,r)=>{if(t>0){let o=e[0]==="-"?"-":"";o&&(e=e.slice(1)),e=o+e.padStart(o?t-1:t,"0")}return r===!1?String(e):e},vr=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},fh=(e,t,r)=>{e.negatives.sort((a,l)=>a<l?-1:a>l?1:0),e.positives.sort((a,l)=>a<l?-1:a>l?1:0);let o=t.capture?"":"?:",i="",n="",s;return e.positives.length&&(i=e.positives.map(a=>vr(String(a),r)).join("|")),e.negatives.length&&(n=`-(${o}${e.negatives.map(a=>vr(String(a),r)).join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,t.wrap?`(${o}${s})`:s},Ua=(e,t,r,o)=>{if(r)return Wa(e,t,{wrap:!1,...o});let i=String.fromCharCode(e);if(e===t)return i;let n=String.fromCharCode(t);return`[${i}-${n}]`},za=(e,t,r)=>{if(Array.isArray(e)){let o=r.wrap===!0,i=r.capture?"":"?:";return o?`(${i}${e.join("|")})`:e.join("|")}return Wa(e,t,r)},Ja=(...e)=>new RangeError("Invalid range arguments: "+ah.inspect(...e)),Ka=(e,t,r)=>{if(r.strictRanges===!0)throw Ja([e,t]);return[]},ph=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},dh=(e,t,r=1,o={})=>{let i=Number(e),n=Number(t);if(!Number.isInteger(i)||!Number.isInteger(n)){if(o.strictRanges===!0)throw Ja([e,t]);return[]}i===0&&(i=0),n===0&&(n=0);let s=i>n,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=Co(a)||Co(l)||Co(c),d=f?Math.max(a.length,l.length,c.length):0,p=f===!1&&uh(e,t,o)===!1,g=o.transform||lh(p);if(o.toRegex&&r===1)return Ua(vr(e,d),vr(t,d),!0,o);let y={negatives:[],positives:[]},D=O=>y[O<0?"negatives":"positives"].push(Math.abs(O)),S=[],A=0;for(;s?i>=n:i<=n;)o.toRegex===!0&&r>1?D(i):S.push(ch(g(i,A),d,p)),i=s?i-r:i+r,A++;return o.toRegex===!0?r>1?fh(y,o,d):za(S,null,{wrap:!1,...o}):S},mh=(e,t,r=1,o={})=>{if(!zt(e)&&e.length>1||!zt(t)&&t.length>1)return Ka(e,t,o);let i=o.transform||(p=>String.fromCharCode(p)),n=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=n>s,l=Math.min(n,s),c=Math.max(n,s);if(o.toRegex&&r===1)return Ua(l,c,!1,o);let f=[],d=0;for(;a?n>=s:n<=s;)f.push(i(n,d)),n=a?n-r:n+r,d++;return o.toRegex===!0?za(f,null,{wrap:!1,options:o}):f},_r=(e,t,r,o={})=>{if(t==null&&bo(e))return[e];if(!bo(e)||!bo(t))return Ka(e,t,o);if(typeof r=="function")return _r(e,t,1,{transform:r});if(Ga(r))return _r(e,t,0,r);let i={...o};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,zt(r)?zt(e)&&zt(t)?dh(e,t,r,i):mh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Ga(r)?ph(r,i):_r(e,t,1,r)};Ya.exports=_r});var Za=b((sS,Qa)=>{"use strict";u();var hh=_o(),Xa=br(),gh=(e,t={})=>{let r=(o,i={})=>{let n=Xa.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a=n===!0||s===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(o.isOpen===!0)return l+o.value;if(o.isClose===!0)return console.log("node.isClose",l,o.value),l+o.value;if(o.type==="open")return a?l+o.value:"(";if(o.type==="close")return a?l+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":a?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let f=Xa.reduce(o.nodes),d=hh(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(o.nodes)for(let f of o.nodes)c+=r(f,o);return c};return r(e)};Qa.exports=gh});var rl=b((lS,tl)=>{"use strict";u();var yh=_o(),el=Cr(),_t=br(),lt=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?_t.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let n of i)o.push(lt(n,t,r));else for(let n of t)r===!0&&typeof n=="string"&&(n=`{${n}}`),o.push(Array.isArray(n)?lt(i,n,r):i+n);return _t.flatten(o)},Dh=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,o=(i,n={})=>{i.queue=[];let s=n,a=n.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(i.invalid||i.dollar){a.push(lt(a.pop(),el(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(lt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=_t.reduce(i.nodes);if(_t.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=yh(...d,t);p.length===0&&(p=el(i,t)),a.push(lt(a.pop(),p)),i.nodes=[];return}let l=_t.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let d=0;d<i.nodes.length;d++){let p=i.nodes[d];if(p.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(p.type==="close"){a.push(lt(a.pop(),c,l));continue}if(p.value&&p.type!=="open"){c.push(lt(c.pop(),p.value));continue}p.nodes&&o(p,i)}return c};return _t.flatten(o(e))};tl.exports=Dh});var ol=b((cS,nl)=>{"use strict";u();nl.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ import{a as ga}from"./chunk-2TIFAWAJ.js";import{a as U,b,c as ee,e as u}from"./chunk-3KRYIAHJ.js";var ya=b(Ct=>{"use strict";u();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.splitWhen=Ct.flatten=void 0;function Pm(e){return e.reduce((t,r)=>[].concat(t,r),[])}Ct.flatten=Pm;function Fm(e,t){let r=[[]],o=0;for(let i of e)t(i)?(o++,r[o]=[]):r[o].push(i);return r}Ct.splitWhen=Fm});var Da=b(yr=>{"use strict";u();Object.defineProperty(yr,"__esModule",{value:!0});yr.isEnoentCodeError=void 0;function Tm(e){return e.code==="ENOENT"}yr.isEnoentCodeError=Tm});var ba=b(Dr=>{"use strict";u();Object.defineProperty(Dr,"__esModule",{value:!0});Dr.createDirentFromStats=void 0;var mo=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 Om(e,t){return new mo(e,t)}Dr.createDirentFromStats=Om});var wa=b(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.convertPosixPathToPattern=Q.convertWindowsPathToPattern=Q.convertPathToPattern=Q.escapePosixPath=Q.escapeWindowsPath=Q.escape=Q.removeLeadingDotSegment=Q.makeAbsolute=Q.unixify=void 0;var $m=U("os"),Lm=U("path"),Ca=$m.platform()==="win32",Mm=2,Bm=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,jm=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,Nm=/^\\\\([.?])/,Im=/\\(?![!()+@[\]{}])/g;function Vm(e){return e.replace(/\\/g,"/")}Q.unixify=Vm;function Hm(e,t){return Lm.resolve(e,t)}Q.makeAbsolute=Hm;function qm(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Mm)}return e}Q.removeLeadingDotSegment=qm;Q.escape=Ca?ho:go;function ho(e){return e.replace(jm,"\\$2")}Q.escapeWindowsPath=ho;function go(e){return e.replace(Bm,"\\$2")}Q.escapePosixPath=go;Q.convertPathToPattern=Ca?_a:va;function _a(e){return ho(e).replace(Nm,"//$1").replace(Im,"/")}Q.convertWindowsPathToPattern=_a;function va(e){return go(e)}Q.convertPosixPathToPattern=va});var Sa=b((Gx,xa)=>{"use strict";u();xa.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 ka=b((Ux,Ea)=>{"use strict";u();var Gm=Sa(),Ra={"{":"}","(":")","[":"]"},Wm=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,o=-2,i=-2,n=-2,s=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||o!==-1&&e[t]==="["&&e[t+1]!=="]"&&(o<t&&(o=e.indexOf("]",t)),o>t&&(s===-1||s>o||(s=e.indexOf("\\",t),s===-1||s>o)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(s=e.indexOf("\\",t),s===-1||s>i))||n!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(n=e.indexOf(")",t),n>t&&(s=e.indexOf("\\",t),s===-1||s>n))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(n=e.indexOf(")",r),n>r&&(s=e.indexOf("\\",r),s===-1||s>n))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=Ra[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},Um=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 o=Ra[r];if(o){var i=e.indexOf(o,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Ea.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Gm(t))return!0;var o=Wm;return r&&r.strict===!1&&(o=Um),o(t)}});var Pa=b((Jx,Aa)=>{"use strict";u();var zm=ka(),Jm=U("path").posix.dirname,Km=U("os").platform()==="win32",yo="/",Ym=/\\/g,Xm=/[\{\[].*[\}\]]$/,Qm=/(^|[^\\])([\{\[]|\([^\)]+$)/,Zm=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Aa.exports=function(t,r){var o=Object.assign({flipBackslashes:!0},r);o.flipBackslashes&&Km&&t.indexOf(yo)<0&&(t=t.replace(Ym,yo)),Xm.test(t)&&(t+=yo),t+="a";do t=Jm(t);while(zm(t)||Qm.test(t));return t.replace(Zm,"$1")}});var br=b(he=>{"use strict";u();he.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;he.find=(e,t)=>e.nodes.find(r=>r.type===t);he.exceedsLimit=(e,t,r=1,o)=>o===!1||!he.isInteger(e)||!he.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=o;he.escapeNode=(e,t=0,r)=>{let o=e.nodes[t];o&&(r&&o.type===r||o.type==="open"||o.type==="close")&&o.escaped!==!0&&(o.value="\\"+o.value,o.escaped=!0)};he.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);he.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;he.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;he.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);he.flatten=(...e)=>{let t=[],r=o=>{for(let i=0;i<o.length;i++){let n=o[i];if(Array.isArray(n)){r(n);continue}n!==void 0&&t.push(n)}return t};return r(e),t}});var Cr=b((Qx,Ta)=>{"use strict";u();var Fa=br();Ta.exports=(e,t={})=>{let r=(o,i={})=>{let n=t.escapeInvalid&&Fa.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a="";if(o.value)return(n||s)&&Fa.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let l of o.nodes)a+=r(l);return a};return r(e)}});var $a=b((eS,Oa)=>{"use strict";u();Oa.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var qa=b((rS,Ha)=>{"use strict";u();var La=$a(),at=(e,t,r)=>{if(La(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(La(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...r};typeof o.strictZeros=="boolean"&&(o.relaxZeros=o.strictZeros===!1);let i=String(o.relaxZeros),n=String(o.shorthand),s=String(o.capture),a=String(o.wrap),l=e+":"+t+"="+i+n+s+a;if(at.cache.hasOwnProperty(l))return at.cache[l].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let D=e+"|"+t;return o.capture?`(${D})`:o.wrap===!1?D:`(?:${D})`}let d=Va(e)||Va(t),p={min:e,max:t,a:c,b:f},g=[],y=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),c<0){let D=f<0?Math.abs(f):1;y=Ma(D,Math.abs(c),p,o),c=p.a=0}return f>=0&&(g=Ma(c,f,p,o)),p.negatives=y,p.positives=g,p.result=eh(y,g,o),o.capture===!0?p.result=`(${p.result})`:o.wrap!==!1&&g.length+y.length>1&&(p.result=`(?:${p.result})`),at.cache[l]=p,p.result};function eh(e,t,r){let o=Do(e,t,"-",!1,r)||[],i=Do(t,e,"",!1,r)||[],n=Do(e,t,"-?",!0,r)||[];return o.concat(n).concat(i).join("|")}function th(e,t){let r=1,o=1,i=ja(e,r),n=new Set([t]);for(;e<=i&&i<=t;)n.add(i),r+=1,i=ja(e,r);for(i=Na(t+1,o)-1;e<i&&i<=t;)n.add(i),o+=1,i=Na(t+1,o)-1;return n=[...n],n.sort(oh),n}function rh(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=nh(e,t),i=o.length,n="",s=0;for(let a=0;a<i;a++){let[l,c]=o[a];l===c?n+=l:l!=="0"||c!=="9"?n+=ih(l,c,r):s++}return s&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[s],digits:i}}function Ma(e,t,r,o){let i=th(e,t),n=[],s=e,a;for(let l=0;l<i.length;l++){let c=i[l],f=rh(String(s),String(c),o),d="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Ia(a.count),s=c+1;continue}r.isPadded&&(d=sh(c,r,o)),f.string=d+f.pattern+Ia(f.count),n.push(f),s=c+1,a=f}return n}function Do(e,t,r,o,i){let n=[];for(let s of e){let{string:a}=s;!o&&!Ba(t,"string",a)&&n.push(r+a),o&&Ba(t,"string",a)&&n.push(r+a)}return n}function nh(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}function oh(e,t){return e>t?1:t>e?-1:0}function Ba(e,t,r){return e.some(o=>o[t]===r)}function ja(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Na(e,t){return e-e%Math.pow(10,t)}function Ia(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function ih(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Va(e){return/^-?(0+)\d/.test(e)}function sh(e,t,r){if(!t.isPadded)return e;let o=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(o){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${o}}`:`0{${o}}`}}at.cache={};at.clearCache=()=>at.cache={};Ha.exports=at});var _o=b((oS,Ya)=>{"use strict";u();var ah=U("util"),Wa=qa(),Ga=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),lh=e=>t=>e===!0?Number(t):String(t),bo=e=>typeof e=="number"||typeof e=="string"&&e!=="",zt=e=>Number.isInteger(+e),Co=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},uh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ch=(e,t,r)=>{if(t>0){let o=e[0]==="-"?"-":"";o&&(e=e.slice(1)),e=o+e.padStart(o?t-1:t,"0")}return r===!1?String(e):e},vr=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},fh=(e,t,r)=>{e.negatives.sort((a,l)=>a<l?-1:a>l?1:0),e.positives.sort((a,l)=>a<l?-1:a>l?1:0);let o=t.capture?"":"?:",i="",n="",s;return e.positives.length&&(i=e.positives.map(a=>vr(String(a),r)).join("|")),e.negatives.length&&(n=`-(${o}${e.negatives.map(a=>vr(String(a),r)).join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,t.wrap?`(${o}${s})`:s},Ua=(e,t,r,o)=>{if(r)return Wa(e,t,{wrap:!1,...o});let i=String.fromCharCode(e);if(e===t)return i;let n=String.fromCharCode(t);return`[${i}-${n}]`},za=(e,t,r)=>{if(Array.isArray(e)){let o=r.wrap===!0,i=r.capture?"":"?:";return o?`(${i}${e.join("|")})`:e.join("|")}return Wa(e,t,r)},Ja=(...e)=>new RangeError("Invalid range arguments: "+ah.inspect(...e)),Ka=(e,t,r)=>{if(r.strictRanges===!0)throw Ja([e,t]);return[]},ph=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},dh=(e,t,r=1,o={})=>{let i=Number(e),n=Number(t);if(!Number.isInteger(i)||!Number.isInteger(n)){if(o.strictRanges===!0)throw Ja([e,t]);return[]}i===0&&(i=0),n===0&&(n=0);let s=i>n,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=Co(a)||Co(l)||Co(c),d=f?Math.max(a.length,l.length,c.length):0,p=f===!1&&uh(e,t,o)===!1,g=o.transform||lh(p);if(o.toRegex&&r===1)return Ua(vr(e,d),vr(t,d),!0,o);let y={negatives:[],positives:[]},D=O=>y[O<0?"negatives":"positives"].push(Math.abs(O)),S=[],A=0;for(;s?i>=n:i<=n;)o.toRegex===!0&&r>1?D(i):S.push(ch(g(i,A),d,p)),i=s?i-r:i+r,A++;return o.toRegex===!0?r>1?fh(y,o,d):za(S,null,{wrap:!1,...o}):S},mh=(e,t,r=1,o={})=>{if(!zt(e)&&e.length>1||!zt(t)&&t.length>1)return Ka(e,t,o);let i=o.transform||(p=>String.fromCharCode(p)),n=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=n>s,l=Math.min(n,s),c=Math.max(n,s);if(o.toRegex&&r===1)return Ua(l,c,!1,o);let f=[],d=0;for(;a?n>=s:n<=s;)f.push(i(n,d)),n=a?n-r:n+r,d++;return o.toRegex===!0?za(f,null,{wrap:!1,options:o}):f},_r=(e,t,r,o={})=>{if(t==null&&bo(e))return[e];if(!bo(e)||!bo(t))return Ka(e,t,o);if(typeof r=="function")return _r(e,t,1,{transform:r});if(Ga(r))return _r(e,t,0,r);let i={...o};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,zt(r)?zt(e)&&zt(t)?dh(e,t,r,i):mh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Ga(r)?ph(r,i):_r(e,t,1,r)};Ya.exports=_r});var Za=b((sS,Qa)=>{"use strict";u();var hh=_o(),Xa=br(),gh=(e,t={})=>{let r=(o,i={})=>{let n=Xa.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a=n===!0||s===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(o.isOpen===!0)return l+o.value;if(o.isClose===!0)return console.log("node.isClose",l,o.value),l+o.value;if(o.type==="open")return a?l+o.value:"(";if(o.type==="close")return a?l+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":a?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let f=Xa.reduce(o.nodes),d=hh(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(o.nodes)for(let f of o.nodes)c+=r(f,o);return c};return r(e)};Qa.exports=gh});var rl=b((lS,tl)=>{"use strict";u();var yh=_o(),el=Cr(),_t=br(),lt=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?_t.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let n of i)o.push(lt(n,t,r));else for(let n of t)r===!0&&typeof n=="string"&&(n=`{${n}}`),o.push(Array.isArray(n)?lt(i,n,r):i+n);return _t.flatten(o)},Dh=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,o=(i,n={})=>{i.queue=[];let s=n,a=n.queue;for(;s.type!=="brace"&&s.type!=="root"&&s.parent;)s=s.parent,a=s.queue;if(i.invalid||i.dollar){a.push(lt(a.pop(),el(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(lt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=_t.reduce(i.nodes);if(_t.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=yh(...d,t);p.length===0&&(p=el(i,t)),a.push(lt(a.pop(),p)),i.nodes=[];return}let l=_t.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let d=0;d<i.nodes.length;d++){let p=i.nodes[d];if(p.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(p.type==="close"){a.push(lt(a.pop(),c,l));continue}if(p.value&&p.type!=="open"){c.push(lt(c.pop(),p.value));continue}p.nodes&&o(p,i)}return c};return _t.flatten(o(e))};tl.exports=Dh});var ol=b((cS,nl)=>{"use strict";u();nl.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
3
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 ul=b((pS,ll)=>{"use strict";u();var bh=Cr(),{MAX_LENGTH:il,CHAR_BACKSLASH:vo,CHAR_BACKTICK:Ch,CHAR_COMMA:_h,CHAR_DOT:vh,CHAR_LEFT_PARENTHESES:wh,CHAR_RIGHT_PARENTHESES:xh,CHAR_LEFT_CURLY_BRACE:Sh,CHAR_RIGHT_CURLY_BRACE:Rh,CHAR_LEFT_SQUARE_BRACKET:sl,CHAR_RIGHT_SQUARE_BRACKET:al,CHAR_DOUBLE_QUOTE:Eh,CHAR_SINGLE_QUOTE:kh,CHAR_NO_BREAK_SPACE:Ah,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ph}=ol(),Fh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},o=typeof r.maxLength=="number"?Math.min(il,r.maxLength):il;if(e.length>o)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${o})`);let i={type:"root",input:e,nodes:[]},n=[i],s=i,a=i,l=0,c=e.length,f=0,d=0,p,g=()=>e[f++],y=D=>{if(D.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&D.type==="text"){a.value+=D.value;return}return s.nodes.push(D),D.parent=s,D.prev=a,a=D,D};for(y({type:"bos"});f<c;)if(s=n[n.length-1],p=g(),!(p===Ph||p===Ah)){if(p===vo){y({type:"text",value:(t.keepEscaping?p:"")+g()});continue}if(p===al){y({type:"text",value:"\\"+p});continue}if(p===sl){l++;let D;for(;f<c&&(D=g());){if(p+=D,D===sl){l++;continue}if(D===vo){p+=g();continue}if(D===al&&(l--,l===0))break}y({type:"text",value:p});continue}if(p===wh){s=y({type:"paren",nodes:[]}),n.push(s),y({type:"text",value:p});continue}if(p===xh){if(s.type!=="paren"){y({type:"text",value:p});continue}s=n.pop(),y({type:"text",value:p}),s=n[n.length-1];continue}if(p===Eh||p===kh||p===Ch){let D=p,S;for(t.keepQuotes!==!0&&(p="");f<c&&(S=g());){if(S===vo){p+=S+g();continue}if(S===D){t.keepQuotes===!0&&(p+=S);break}p+=S}y({type:"text",value:p});continue}if(p===Sh){d++;let S={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||s.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};s=y(S),n.push(s),y({type:"open",value:p});continue}if(p===Rh){if(s.type!=="brace"){y({type:"text",value:p});continue}let D="close";s=n.pop(),s.close=!0,y({type:D,value:p}),d--,s=n[n.length-1];continue}if(p===_h&&d>0){if(s.ranges>0){s.ranges=0;let D=s.nodes.shift();s.nodes=[D,{type:"text",value:bh(s)}]}y({type:"comma",value:p}),s.commas++;continue}if(p===vh&&d>0&&s.commas===0){let D=s.nodes;if(d===0||D.length===0){y({type:"text",value:p});continue}if(a.type==="dot"){if(s.range=[],a.value+=p,a.type="range",s.nodes.length!==3&&s.nodes.length!==5){s.invalid=!0,s.ranges=0,a.type="text";continue}s.ranges++,s.args=[];continue}if(a.type==="range"){D.pop();let S=D[D.length-1];S.value+=a.value+p,a=S,s.ranges--;continue}y({type:"dot",value:p});continue}y({type:"text",value:p})}do if(s=n.pop(),s.type!=="root"){s.nodes.forEach(A=>{A.nodes||(A.type==="open"&&(A.isOpen=!0),A.type==="close"&&(A.isClose=!0),A.nodes||(A.type="text"),A.invalid=!0)});let D=n[n.length-1],S=D.nodes.indexOf(s);D.nodes.splice(S,1,...s.nodes)}while(n.length>0);return y({type:"eos"}),i};ll.exports=Fh});var pl=b((mS,fl)=>{"use strict";u();var cl=Cr(),Th=Za(),Oh=rl(),$h=ul(),fe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let o of e){let i=fe.create(o,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(fe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};fe.parse=(e,t={})=>$h(e,t);fe.stringify=(e,t={})=>cl(typeof e=="string"?fe.parse(e,t):e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),Th(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=Oh(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};fe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?fe.compile(e,t):fe.expand(e,t);fl.exports=fe});var Jt=b((gS,yl)=>{"use strict";u();var Lh=U("path"),Se="\\\\/",dl=`[^${Se}]`,Le="\\.",Mh="\\+",Bh="\\?",wr="\\/",jh="(?=.)",ml="[^/]",wo=`(?:${wr}|$)`,hl=`(?:^|${wr})`,xo=`${Le}{1,2}${wo}`,Nh=`(?!${Le})`,Ih=`(?!${hl}${xo})`,Vh=`(?!${Le}{0,1}${wo})`,Hh=`(?!${xo})`,qh=`[^.${wr}]`,Gh=`${ml}*?`,gl={DOT_LITERAL:Le,PLUS_LITERAL:Mh,QMARK_LITERAL:Bh,SLASH_LITERAL:wr,ONE_CHAR:jh,QMARK:ml,END_ANCHOR:wo,DOTS_SLASH:xo,NO_DOT:Nh,NO_DOTS:Ih,NO_DOT_SLASH:Vh,NO_DOTS_SLASH:Hh,QMARK_NO_DOT:qh,STAR:Gh,START_ANCHOR:hl},Wh={...gl,SLASH_LITERAL:`[${Se}]`,QMARK:dl,STAR:`${dl}*?`,DOTS_SLASH:`${Le}{1,2}(?:[${Se}]|$)`,NO_DOT:`(?!${Le})`,NO_DOTS:`(?!(?:^|[${Se}])${Le}{1,2}(?:[${Se}]|$))`,NO_DOT_SLASH:`(?!${Le}{0,1}(?:[${Se}]|$))`,NO_DOTS_SLASH:`(?!${Le}{1,2}(?:[${Se}]|$))`,QMARK_NO_DOT:`[^.${Se}]`,START_ANCHOR:`(?:^|[${Se}])`,END_ANCHOR:`(?:[${Se}]|$)`},Uh={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"};yl.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Uh,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:Lh.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?Wh:gl}}});var Kt=b(ue=>{"use strict";u();var zh=U("path"),Jh=process.platform==="win32",{REGEX_BACKSLASH:Kh,REGEX_REMOVE_BACKSLASH:Yh,REGEX_SPECIAL_CHARS:Xh,REGEX_SPECIAL_CHARS_GLOBAL:Qh}=Jt();ue.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ue.hasRegexChars=e=>Xh.test(e);ue.isRegexChar=e=>e.length===1&&ue.hasRegexChars(e);ue.escapeRegex=e=>e.replace(Qh,"\\$1");ue.toPosixSlashes=e=>e.replace(Kh,"/");ue.removeBackslashes=e=>e.replace(Yh,t=>t==="\\"?"":t);ue.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ue.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Jh===!0||zh.sep==="\\";ue.escapeLast=(e,t,r)=>{let o=e.lastIndexOf(t,r);return o===-1?e:e[o-1]==="\\"?ue.escapeLast(e,t,o-1):`${e.slice(0,o)}\\${e.slice(o)}`};ue.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ue.wrapOutput=(e,t={},r={})=>{let o=r.contains?"":"^",i=r.contains?"":"$",n=`${o}(?:${e})${i}`;return t.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var Sl=b((CS,xl)=>{"use strict";u();var Dl=Kt(),{CHAR_ASTERISK:So,CHAR_AT:Zh,CHAR_BACKWARD_SLASH:Yt,CHAR_COMMA:eg,CHAR_DOT:Ro,CHAR_EXCLAMATION_MARK:Eo,CHAR_FORWARD_SLASH:wl,CHAR_LEFT_CURLY_BRACE:ko,CHAR_LEFT_PARENTHESES:Ao,CHAR_LEFT_SQUARE_BRACKET:tg,CHAR_PLUS:rg,CHAR_QUESTION_MARK:bl,CHAR_RIGHT_CURLY_BRACE:ng,CHAR_RIGHT_PARENTHESES:Cl,CHAR_RIGHT_SQUARE_BRACKET:og}=Jt(),_l=e=>e===wl||e===Yt,vl=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},ig=(e,t)=>{let r=t||{},o=e.length-1,i=r.parts===!0||r.scanToEnd===!0,n=[],s=[],a=[],l=e,c=-1,f=0,d=0,p=!1,g=!1,y=!1,D=!1,S=!1,A=!1,O=!1,$=!1,H=!1,T=!1,I=0,P,E,M={value:"",depth:0,isGlob:!1},re=()=>c>=o,w=()=>l.charCodeAt(c+1),J=()=>(P=E,l.charCodeAt(++c));for(;c<o;){E=J();let ie;if(E===Yt){O=M.backslashes=!0,E=J(),E===ko&&(A=!0);continue}if(A===!0||E===ko){for(I++;re()!==!0&&(E=J());){if(E===Yt){O=M.backslashes=!0,J();continue}if(E===ko){I++;continue}if(A!==!0&&E===Ro&&(E=J())===Ro){if(p=M.isBrace=!0,y=M.isGlob=!0,T=!0,i===!0)continue;break}if(A!==!0&&E===eg){if(p=M.isBrace=!0,y=M.isGlob=!0,T=!0,i===!0)continue;break}if(E===ng&&(I--,I===0)){A=!1,p=M.isBrace=!0,T=!0;break}}if(i===!0)continue;break}if(E===wl){if(n.push(c),s.push(M),M={value:"",depth:0,isGlob:!1},T===!0)continue;if(P===Ro&&c===f+1){f+=2;continue}d=c+1;continue}if(r.noext!==!0&&(E===rg||E===Zh||E===So||E===bl||E===Eo)===!0&&w()===Ao){if(y=M.isGlob=!0,D=M.isExtglob=!0,T=!0,E===Eo&&c===f&&(H=!0),i===!0){for(;re()!==!0&&(E=J());){if(E===Yt){O=M.backslashes=!0,E=J();continue}if(E===Cl){y=M.isGlob=!0,T=!0;break}}continue}break}if(E===So){if(P===So&&(S=M.isGlobstar=!0),y=M.isGlob=!0,T=!0,i===!0)continue;break}if(E===bl){if(y=M.isGlob=!0,T=!0,i===!0)continue;break}if(E===tg){for(;re()!==!0&&(ie=J());){if(ie===Yt){O=M.backslashes=!0,J();continue}if(ie===og){g=M.isBracket=!0,y=M.isGlob=!0,T=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&E===Eo&&c===f){$=M.negated=!0,f++;continue}if(r.noparen!==!0&&E===Ao){if(y=M.isGlob=!0,i===!0){for(;re()!==!0&&(E=J());){if(E===Ao){O=M.backslashes=!0,E=J();continue}if(E===Cl){T=!0;break}}continue}break}if(y===!0){if(T=!0,i===!0)continue;break}}r.noext===!0&&(D=!1,y=!1);let G=l,Ve="",_="";f>0&&(Ve=l.slice(0,f),l=l.slice(f),d-=f),G&&y===!0&&d>0?(G=l.slice(0,d),_=l.slice(d)):y===!0?(G="",_=l):G=l,G&&G!==""&&G!=="/"&&G!==l&&_l(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),r.unescape===!0&&(_&&(_=Dl.removeBackslashes(_)),G&&O===!0&&(G=Dl.removeBackslashes(G)));let v={prefix:Ve,input:e,start:f,base:G,glob:_,isBrace:p,isBracket:g,isGlob:y,isExtglob:D,isGlobstar:S,negated:$,negatedExtglob:H};if(r.tokens===!0&&(v.maxDepth=0,_l(E)||s.push(M),v.tokens=s),r.parts===!0||r.tokens===!0){let ie;for(let N=0;N<n.length;N++){let we=ie?ie+1:f,xe=n[N],ce=e.slice(we,xe);r.tokens&&(N===0&&f!==0?(s[N].isPrefix=!0,s[N].value=Ve):s[N].value=ce,vl(s[N]),v.maxDepth+=s[N].depth),(N!==0||ce!=="")&&a.push(ce),ie=xe}if(ie&&ie+1<e.length){let N=e.slice(ie+1);a.push(N),r.tokens&&(s[s.length-1].value=N,vl(s[s.length-1]),v.maxDepth+=s[s.length-1].depth)}v.slashes=n,v.parts=a}return v};xl.exports=ig});var kl=b((vS,El)=>{"use strict";u();var xr=Jt(),pe=Kt(),{MAX_LENGTH:Sr,POSIX_REGEX_SOURCE:sg,REGEX_NON_SPECIAL_CHARS:ag,REGEX_SPECIAL_CHARS_BACKREF:lg,REPLACEMENTS:Rl}=xr,ug=(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(i=>pe.escapeRegex(i)).join("..")}return r},vt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Po=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Rl[e]||e;let r={...t},o=typeof r.maxLength=="number"?Math.min(Sr,r.maxLength):Sr,i=e.length;if(i>o)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`);let n={type:"bos",value:"",output:r.prepend||""},s=[n],a=r.capture?"":"?:",l=pe.isWindows(t),c=xr.globChars(l),f=xr.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:g,ONE_CHAR:y,DOTS_SLASH:D,NO_DOT:S,NO_DOT_SLASH:A,NO_DOTS_SLASH:O,QMARK:$,QMARK_NO_DOT:H,STAR:T,START_ANCHOR:I}=c,P=R=>`(${a}(?:(?!${I}${R.dot?D:d}).)*?)`,E=r.dot?"":S,M=r.dot?$:H,re=r.bash===!0?P(r):T;r.capture&&(re=`(${re})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let w={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:s};e=pe.removePrefix(e,w),i=e.length;let J=[],G=[],Ve=[],_=n,v,ie=()=>w.index===i-1,N=w.peek=(R=1)=>e[w.index+R],we=w.advance=()=>e[++w.index]||"",xe=()=>e.slice(w.index+1),ce=(R="",W=0)=>{w.consumed+=R,w.index+=W},dr=R=>{w.output+=R.output!=null?R.output:R.value,ce(R.value)},Em=()=>{let R=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)we(),w.start++,R++;return R%2===0?!1:(w.negated=!0,w.start++,!0)},mr=R=>{w[R]++,Ve.push(R)},st=R=>{w[R]--,Ve.pop()},B=R=>{if(_.type==="globstar"){let W=w.braces>0&&(R.type==="comma"||R.type==="brace"),x=R.extglob===!0||J.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!W&&!x&&(w.output=w.output.slice(0,-_.output.length),_.type="star",_.value="*",_.output=re,w.output+=_.output)}if(J.length&&R.type!=="paren"&&(J[J.length-1].inner+=R.value),(R.value||R.output)&&dr(R),_&&_.type==="text"&&R.type==="text"){_.value+=R.value,_.output=(_.output||"")+R.value;return}R.prev=_,s.push(R),_=R},hr=(R,W)=>{let x={...f[W],conditions:1,inner:""};x.prev=_,x.parens=w.parens,x.output=w.output;let L=(r.capture?"(":"")+x.open;mr("parens"),B({type:R,value:W,output:w.output?"":y}),B({type:"paren",extglob:!0,value:we(),output:L}),J.push(x)},km=R=>{let W=R.close+(r.capture?")":""),x;if(R.type==="negate"){let L=re;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(L=P(r)),(L!==re||ie()||/^\)+$/.test(xe()))&&(W=R.close=`)$))${L}`),R.inner.includes("*")&&(x=xe())&&/^\.[^\\/.]+$/.test(x)){let Y=Po(x,{...t,fastpaths:!1}).output;W=R.close=`)${Y})${L})`}R.prev.type==="bos"&&(w.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:v,output:W}),st("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let R=!1,W=e.replace(lg,(x,L,Y,se,Z,po)=>se==="\\"?(R=!0,x):se==="?"?L?L+se+(Z?$.repeat(Z.length):""):po===0?M+(Z?$.repeat(Z.length):""):$.repeat(Y.length):se==="."?d.repeat(Y.length):se==="*"?L?L+se+(Z?re:""):re:L?x:`\\${x}`);return R===!0&&(r.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,x=>x.length%2===0?"\\\\":x?"\\":"")),W===e&&r.contains===!0?(w.output=e,w):(w.output=pe.wrapOutput(W,w,t),w)}for(;!ie();){if(v=we(),v==="\0")continue;if(v==="\\"){let x=N();if(x==="/"&&r.bash!==!0||x==="."||x===";")continue;if(!x){v+="\\",B({type:"text",value:v});continue}let L=/^\\+/.exec(xe()),Y=0;if(L&&L[0].length>2&&(Y=L[0].length,w.index+=Y,Y%2!==0&&(v+="\\")),r.unescape===!0?v=we():v+=we(),w.brackets===0){B({type:"text",value:v});continue}}if(w.brackets>0&&(v!=="]"||_.value==="["||_.value==="[^")){if(r.posix!==!1&&v===":"){let x=_.value.slice(1);if(x.includes("[")&&(_.posix=!0,x.includes(":"))){let L=_.value.lastIndexOf("["),Y=_.value.slice(0,L),se=_.value.slice(L+2),Z=sg[se];if(Z){_.value=Y+Z,w.backtrack=!0,we(),!n.output&&s.indexOf(_)===1&&(n.output=y);continue}}}(v==="["&&N()!==":"||v==="-"&&N()==="]")&&(v=`\\${v}`),v==="]"&&(_.value==="["||_.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&_.value==="["&&(v="^"),_.value+=v,dr({value:v});continue}if(w.quotes===1&&v!=='"'){v=pe.escapeRegex(v),_.value+=v,dr({value:v});continue}if(v==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&B({type:"text",value:v});continue}if(v==="("){mr("parens"),B({type:"paren",value:v});continue}if(v===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(vt("opening","("));let x=J[J.length-1];if(x&&w.parens===x.parens+1){km(J.pop());continue}B({type:"paren",value:v,output:w.parens?")":"\\)"}),st("parens");continue}if(v==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));v=`\\${v}`}else mr("brackets");B({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||_&&_.type==="bracket"&&_.value.length===1){B({type:"text",value:v,output:`\\${v}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(vt("opening","["));B({type:"text",value:v,output:`\\${v}`});continue}st("brackets");let x=_.value.slice(1);if(_.posix!==!0&&x[0]==="^"&&!x.includes("/")&&(v=`/${v}`),_.value+=v,dr({value:v}),r.literalBrackets===!1||pe.hasRegexChars(x))continue;let L=pe.escapeRegex(_.value);if(w.output=w.output.slice(0,-_.value.length),r.literalBrackets===!0){w.output+=L,_.value=L;continue}_.value=`(${a}${L}|${_.value})`,w.output+=_.value;continue}if(v==="{"&&r.nobrace!==!0){mr("braces");let x={type:"brace",value:v,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};G.push(x),B(x);continue}if(v==="}"){let x=G[G.length-1];if(r.nobrace===!0||!x){B({type:"text",value:v,output:v});continue}let L=")";if(x.dots===!0){let Y=s.slice(),se=[];for(let Z=Y.length-1;Z>=0&&(s.pop(),Y[Z].type!=="brace");Z--)Y[Z].type!=="dots"&&se.unshift(Y[Z].value);L=ug(se,r),w.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){let Y=w.output.slice(0,x.outputIndex),se=w.tokens.slice(x.tokensIndex);x.value=x.output="\\{",v=L="\\}",w.output=Y;for(let Z of se)w.output+=Z.output||Z.value}B({type:"brace",value:v,output:L}),st("braces"),G.pop();continue}if(v==="|"){J.length>0&&J[J.length-1].conditions++,B({type:"text",value:v});continue}if(v===","){let x=v,L=G[G.length-1];L&&Ve[Ve.length-1]==="braces"&&(L.comma=!0,x="|"),B({type:"comma",value:v,output:x});continue}if(v==="/"){if(_.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",s.pop(),_=n;continue}B({type:"slash",value:v,output:g});continue}if(v==="."){if(w.braces>0&&_.type==="dot"){_.value==="."&&(_.output=d);let x=G[G.length-1];_.type="dots",_.output+=v,_.value+=v,x.dots=!0;continue}if(w.braces+w.parens===0&&_.type!=="bos"&&_.type!=="slash"){B({type:"text",value:v,output:d});continue}B({type:"dot",value:v,output:d});continue}if(v==="?"){if(!(_&&_.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){hr("qmark",v);continue}if(_&&_.type==="paren"){let L=N(),Y=v;if(L==="<"&&!pe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(_.value==="("&&!/[!=<:]/.test(L)||L==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(Y=`\\${v}`),B({type:"text",value:v,output:Y});continue}if(r.dot!==!0&&(_.type==="slash"||_.type==="bos")){B({type:"qmark",value:v,output:H});continue}B({type:"qmark",value:v,output:$});continue}if(v==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){hr("negate",v);continue}if(r.nonegate!==!0&&w.index===0){Em();continue}}if(v==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){hr("plus",v);continue}if(_&&_.value==="("||r.regex===!1){B({type:"plus",value:v,output:p});continue}if(_&&(_.type==="bracket"||_.type==="paren"||_.type==="brace")||w.parens>0){B({type:"plus",value:v});continue}B({type:"plus",value:p});continue}if(v==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){B({type:"at",extglob:!0,value:v,output:""});continue}B({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let x=ag.exec(xe());x&&(v+=x[0],w.index+=x[0].length),B({type:"text",value:v});continue}if(_&&(_.type==="globstar"||_.star===!0)){_.type="star",_.star=!0,_.value+=v,_.output=re,w.backtrack=!0,w.globstar=!0,ce(v);continue}let R=xe();if(r.noextglob!==!0&&/^\([^?]/.test(R)){hr("star",v);continue}if(_.type==="star"){if(r.noglobstar===!0){ce(v);continue}let x=_.prev,L=x.prev,Y=x.type==="slash"||x.type==="bos",se=L&&(L.type==="star"||L.type==="globstar");if(r.bash===!0&&(!Y||R[0]&&R[0]!=="/")){B({type:"star",value:v,output:""});continue}let Z=w.braces>0&&(x.type==="comma"||x.type==="brace"),po=J.length&&(x.type==="pipe"||x.type==="paren");if(!Y&&x.type!=="paren"&&!Z&&!po){B({type:"star",value:v,output:""});continue}for(;R.slice(0,3)==="/**";){let gr=e[w.index+4];if(gr&&gr!=="/")break;R=R.slice(3),ce("/**",3)}if(x.type==="bos"&&ie()){_.type="globstar",_.value+=v,_.output=P(r),w.output=_.output,w.globstar=!0,ce(v);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!se&&ie()){w.output=w.output.slice(0,-(x.output+_.output).length),x.output=`(?:${x.output}`,_.type="globstar",_.output=P(r)+(r.strictSlashes?")":"|$)"),_.value+=v,w.globstar=!0,w.output+=x.output+_.output,ce(v);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&R[0]==="/"){let gr=R[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(x.output+_.output).length),x.output=`(?:${x.output}`,_.type="globstar",_.output=`${P(r)}${g}|${g}${gr})`,_.value+=v,w.output+=x.output+_.output,w.globstar=!0,ce(v+we()),B({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&R[0]==="/"){_.type="globstar",_.value+=v,_.output=`(?:^|${g}|${P(r)}${g})`,w.output=_.output,w.globstar=!0,ce(v+we()),B({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-_.output.length),_.type="globstar",_.output=P(r),_.value+=v,w.output+=_.output,w.globstar=!0,ce(v);continue}let W={type:"star",value:v,output:re};if(r.bash===!0){W.output=".*?",(_.type==="bos"||_.type==="slash")&&(W.output=E+W.output),B(W);continue}if(_&&(_.type==="bracket"||_.type==="paren")&&r.regex===!0){W.output=v,B(W);continue}(w.index===w.start||_.type==="slash"||_.type==="dot")&&(_.type==="dot"?(w.output+=A,_.output+=A):r.dot===!0?(w.output+=O,_.output+=O):(w.output+=E,_.output+=E),N()!=="*"&&(w.output+=y,_.output+=y)),B(W)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","]"));w.output=pe.escapeLast(w.output,"["),st("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing",")"));w.output=pe.escapeLast(w.output,"("),st("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(vt("closing","}"));w.output=pe.escapeLast(w.output,"{"),st("braces")}if(r.strictSlashes!==!0&&(_.type==="star"||_.type==="bracket")&&B({type:"maybe_slash",value:"",output:`${g}?`}),w.backtrack===!0){w.output="";for(let R of w.tokens)w.output+=R.output!=null?R.output:R.value,R.suffix&&(w.output+=R.suffix)}return w};Po.fastpaths=(e,t)=>{let r={...t},o=typeof r.maxLength=="number"?Math.min(Sr,r.maxLength):Sr,i=e.length;if(i>o)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`);e=Rl[e]||e;let n=pe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:g,START_ANCHOR:y}=xr.globChars(n),D=r.dot?d:f,S=r.dot?p:f,A=r.capture?"":"?:",O={negated:!1,prefix:""},$=r.bash===!0?".*?":g;r.capture&&($=`(${$})`);let H=E=>E.noglobstar===!0?$:`(${A}(?:(?!${y}${E.dot?c:s}).)*?)`,T=E=>{switch(E){case"*":return`${D}${l}${$}`;case".*":return`${s}${l}${$}`;case"*.*":return`${D}${$}${s}${l}${$}`;case"*/*":return`${D}${$}${a}${l}${S}${$}`;case"**":return D+H(r);case"**/*":return`(?:${D}${H(r)}${a})?${S}${l}${$}`;case"**/*.*":return`(?:${D}${H(r)}${a})?${S}${$}${s}${l}${$}`;case"**/.*":return`(?:${D}${H(r)}${a})?${s}${l}${$}`;default:{let M=/^(.*?)\.(\w+)$/.exec(E);if(!M)return;let re=T(M[1]);return re?re+s+M[2]:void 0}}},I=pe.removePrefix(e,O),P=T(I);return P&&r.strictSlashes!==!0&&(P+=`${a}?`),P};El.exports=Po});var Pl=b((xS,Al)=>{"use strict";u();var cg=U("path"),fg=Sl(),Fo=kl(),To=Kt(),pg=Jt(),dg=e=>e&&typeof e=="object"&&!Array.isArray(e),X=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(p=>X(p,t,r));return p=>{for(let g of f){let y=g(p);if(y)return y}return!1}}let o=dg(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!o)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},n=To.isWindows(t),s=o?X.compileRe(e,t):X.makeRe(e,t,!1,!0),a=s.state;delete s.state;let l=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};l=X(i.ignore,f,r)}let c=(f,d=!1)=>{let{isMatch:p,match:g,output:y}=X.test(f,s,t,{glob:e,posix:n}),D={glob:e,state:a,regex:s,posix:n,input:f,output:y,match:g,isMatch:p};return typeof i.onResult=="function"&&i.onResult(D),p===!1?(D.isMatch=!1,d?D:!1):l(f)?(typeof i.onIgnore=="function"&&i.onIgnore(D),D.isMatch=!1,d?D:!1):(typeof i.onMatch=="function"&&i.onMatch(D),d?D:!0)};return r&&(c.state=a),c};X.test=(e,t,r,{glob:o,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let n=r||{},s=n.format||(i?To.toPosixSlashes:null),a=e===o,l=a&&s?s(e):e;return a===!1&&(l=s?s(e):e,a=l===o),(a===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?a=X.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:!!a,match:a,output:l}};X.matchBase=(e,t,r,o=To.isWindows(r))=>(t instanceof RegExp?t:X.makeRe(t,r)).test(cg.basename(e));X.isMatch=(e,t,r)=>X(t,r)(e);X.parse=(e,t)=>Array.isArray(e)?e.map(r=>X.parse(r,t)):Fo(e,{...t,fastpaths:!1});X.scan=(e,t)=>fg(e,t);X.compileRe=(e,t,r=!1,o=!1)=>{if(r===!0)return e.output;let i=t||{},n=i.contains?"":"^",s=i.contains?"":"$",a=`${n}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let l=X.toRegex(a,t);return o===!0&&(l.state=e),l};X.makeRe=(e,t={},r=!1,o=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Fo.fastpaths(e,t)),i.output||(i=Fo(e,t)),X.compileRe(i,t,r,o)};X.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/$^/}};X.constants=pg;Al.exports=X});var Tl=b((RS,Fl)=>{"use strict";u();Fl.exports=Pl()});var jl=b((kS,Bl)=>{"use strict";u();var $l=U("util"),Ll=pl(),Re=Tl(),Oo=Kt(),Ol=e=>e===""||e==="./",Ml=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},z=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let o=new Set,i=new Set,n=new Set,s=0,a=f=>{n.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let d=Re(String(t[f]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let g of e){let y=d(g,!0);(p?!y.isMatch:y.isMatch)&&(p?o.add(y.output):(o.delete(y.output),i.add(y.output)))}}let c=(s===t.length?[...n]:[...i]).filter(f=>!o.has(f));if(r&&c.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(f=>f.replace(/\\/g,"")):t}return c};z.match=z;z.matcher=(e,t)=>Re(e,t);z.isMatch=(e,t,r)=>Re(t,r)(e);z.any=z.isMatch;z.not=(e,t,r={})=>{t=[].concat(t).map(String);let o=new Set,i=[],n=a=>{r.onResult&&r.onResult(a),i.push(a.output)},s=new Set(z(e,t,{...r,onResult:n}));for(let a of i)s.has(a)||o.add(a);return[...o]};z.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${$l.inspect(e)}"`);if(Array.isArray(t))return t.some(o=>z.contains(e,o,r));if(typeof t=="string"){if(Ol(e)||Ol(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return z.isMatch(e,t,{...r,contains:!0})};z.matchKeys=(e,t,r)=>{if(!Oo.isObject(e))throw new TypeError("Expected the first argument to be an object");let o=z(Object.keys(e),t,r),i={};for(let n of o)i[n]=e[n];return i};z.some=(e,t,r)=>{let o=[].concat(e);for(let i of[].concat(t)){let n=Re(String(i),r);if(o.some(s=>n(s)))return!0}return!1};z.every=(e,t,r)=>{let o=[].concat(e);for(let i of[].concat(t)){let n=Re(String(i),r);if(!o.every(s=>n(s)))return!1}return!0};z.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${$l.inspect(e)}"`);return[].concat(t).every(o=>Re(o,r)(e))};z.capture=(e,t,r)=>{let o=Oo.isWindows(r),n=Re.makeRe(String(e),{...r,capture:!0}).exec(o?Oo.toPosixSlashes(t):t);if(n)return n.slice(1).map(s=>s===void 0?"":s)};z.makeRe=(...e)=>Re.makeRe(...e);z.scan=(...e)=>Re.scan(...e);z.parse=(e,t)=>{let r=[];for(let o of[].concat(e||[]))for(let i of Ll(String(o),t))r.push(Re.parse(i,t));return r};z.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!Ml(e)?[e]:Ll(e,t)};z.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return z.braces(e,{...t,expand:!0})};z.hasBraces=Ml;Bl.exports=z});var Jl=b(F=>{"use strict";u();Object.defineProperty(F,"__esModule",{value:!0});F.isAbsolute=F.partitionAbsoluteAndRelative=F.removeDuplicateSlashes=F.matchAny=F.convertPatternsToRe=F.makeRe=F.getPatternParts=F.expandBraceExpansion=F.expandPatternsWithBraceExpansion=F.isAffectDepthOfReadingPattern=F.endsWithSlashGlobStar=F.hasGlobStar=F.getBaseDirectory=F.isPatternRelatedToParentDirectory=F.getPatternsOutsideCurrentDirectory=F.getPatternsInsideCurrentDirectory=F.getPositivePatterns=F.getNegativePatterns=F.isPositivePattern=F.isNegativePattern=F.convertToNegativePattern=F.convertToPositivePattern=F.isDynamicPattern=F.isStaticPattern=void 0;var Nl=U("path"),mg=Pa(),$o=jl(),Il="**",hg="\\",gg=/[*?]|^!/,yg=/\[[^[]*]/,Dg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,bg=/[!*+?@]\([^(]*\)/,Cg=/,|\.\./,_g=/(?!^)\/{2,}/g;function Vl(e,t={}){return!Hl(e,t)}F.isStaticPattern=Vl;function Hl(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(hg)||gg.test(e)||yg.test(e)||Dg.test(e)||t.extglob!==!1&&bg.test(e)||t.braceExpansion!==!1&&vg(e))}F.isDynamicPattern=Hl;function vg(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let o=e.slice(t,r);return Cg.test(o)}function wg(e){return Rr(e)?e.slice(1):e}F.convertToPositivePattern=wg;function xg(e){return"!"+e}F.convertToNegativePattern=xg;function Rr(e){return e.startsWith("!")&&e[1]!=="("}F.isNegativePattern=Rr;function ql(e){return!Rr(e)}F.isPositivePattern=ql;function Sg(e){return e.filter(Rr)}F.getNegativePatterns=Sg;function Rg(e){return e.filter(ql)}F.getPositivePatterns=Rg;function Eg(e){return e.filter(t=>!Lo(t))}F.getPatternsInsideCurrentDirectory=Eg;function kg(e){return e.filter(Lo)}F.getPatternsOutsideCurrentDirectory=kg;function Lo(e){return e.startsWith("..")||e.startsWith("./..")}F.isPatternRelatedToParentDirectory=Lo;function Ag(e){return mg(e,{flipBackslashes:!1})}F.getBaseDirectory=Ag;function Pg(e){return e.includes(Il)}F.hasGlobStar=Pg;function Gl(e){return e.endsWith("/"+Il)}F.endsWithSlashGlobStar=Gl;function Fg(e){let t=Nl.basename(e);return Gl(e)||Vl(t)}F.isAffectDepthOfReadingPattern=Fg;function Tg(e){return e.reduce((t,r)=>t.concat(Wl(r)),[])}F.expandPatternsWithBraceExpansion=Tg;function Wl(e){let t=$o.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,o)=>r.length-o.length),t.filter(r=>r!=="")}F.expandBraceExpansion=Wl;function Og(e,t){let{parts:r}=$o.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}F.getPatternParts=Og;function Ul(e,t){return $o.makeRe(e,t)}F.makeRe=Ul;function $g(e,t){return e.map(r=>Ul(r,t))}F.convertPatternsToRe=$g;function Lg(e,t){return t.some(r=>r.test(e))}F.matchAny=Lg;function Mg(e){return e.replace(_g,"/")}F.removeDuplicateSlashes=Mg;function Bg(e){let t=[],r=[];for(let o of e)zl(o)?t.push(o):r.push(o);return[t,r]}F.partitionAbsoluteAndRelative=Bg;function zl(e){return Nl.isAbsolute(e)}F.isAbsolute=zl});var Ql=b((TS,Xl)=>{"use strict";u();var jg=U("stream"),Kl=jg.PassThrough,Ng=Array.prototype.slice;Xl.exports=Ig;function Ig(){let e=[],t=Ng.call(arguments),r=!1,o=t[t.length-1];o&&!Array.isArray(o)&&o.pipe==null?t.pop():o={};let i=o.end!==!1,n=o.pipeError===!0;o.objectMode==null&&(o.objectMode=!0),o.highWaterMark==null&&(o.highWaterMark=64*1024);let s=Kl(o);function a(){for(let f=0,d=arguments.length;f<d;f++)e.push(Yl(arguments[f],o));return l(),this}function l(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let d=f.length+1;function p(){--d>0||(r=!1,l())}function g(y){function D(){y.removeListener("merge2UnpipeEnd",D),y.removeListener("end",D),n&&y.removeListener("error",S),p()}function S(A){s.emit("error",A)}if(y._readableState.endEmitted)return p();y.on("merge2UnpipeEnd",D),y.on("end",D),n&&y.on("error",S),y.pipe(s,{end:!1}),y.resume()}for(let y=0;y<f.length;y++)g(f[y]);p()}function c(){r=!1,s.emit("queueDrain"),i&&s.end()}return s.setMaxListeners(0),s.add=a,s.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),s}function Yl(e,t){if(Array.isArray(e))for(let r=0,o=e.length;r<o;r++)e[r]=Yl(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Kl(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var eu=b(Er=>{"use strict";u();Object.defineProperty(Er,"__esModule",{value:!0});Er.merge=void 0;var Vg=Ql();function Hg(e){let t=Vg(e);return e.forEach(r=>{r.once("error",o=>t.emit("error",o))}),t.once("close",()=>Zl(e)),t.once("end",()=>Zl(e)),t}Er.merge=Hg;function Zl(e){e.forEach(t=>t.emit("close"))}});var tu=b(wt=>{"use strict";u();Object.defineProperty(wt,"__esModule",{value:!0});wt.isEmpty=wt.isString=void 0;function qg(e){return typeof e=="string"}wt.isString=qg;function Gg(e){return e===""}wt.isEmpty=Gg});var Me=b(ne=>{"use strict";u();Object.defineProperty(ne,"__esModule",{value:!0});ne.string=ne.stream=ne.pattern=ne.path=ne.fs=ne.errno=ne.array=void 0;var Wg=ya();ne.array=Wg;var Ug=Da();ne.errno=Ug;var zg=ba();ne.fs=zg;var Jg=wa();ne.path=Jg;var Kg=Jl();ne.pattern=Kg;var Yg=eu();ne.stream=Yg;var Xg=tu();ne.string=Xg});var iu=b(oe=>{"use strict";u();Object.defineProperty(oe,"__esModule",{value:!0});oe.convertPatternGroupToTask=oe.convertPatternGroupsToTasks=oe.groupPatternsByBaseDirectory=oe.getNegativePatternsAsPositive=oe.getPositivePatterns=oe.convertPatternsToTasks=oe.generate=void 0;var Ce=Me();function Qg(e,t){let r=ru(e,t),o=ru(t.ignore,t),i=nu(r),n=ou(r,o),s=i.filter(f=>Ce.pattern.isStaticPattern(f,t)),a=i.filter(f=>Ce.pattern.isDynamicPattern(f,t)),l=Mo(s,n,!1),c=Mo(a,n,!0);return l.concat(c)}oe.generate=Qg;function ru(e,t){let r=e;return t.braceExpansion&&(r=Ce.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(o=>o.includes("/")?o:`**/${o}`)),r.map(o=>Ce.pattern.removeDuplicateSlashes(o))}function Mo(e,t,r){let o=[],i=Ce.pattern.getPatternsOutsideCurrentDirectory(e),n=Ce.pattern.getPatternsInsideCurrentDirectory(e),s=Bo(i),a=Bo(n);return o.push(...jo(s,t,r)),"."in a?o.push(No(".",n,t,r)):o.push(...jo(a,t,r)),o}oe.convertPatternsToTasks=Mo;function nu(e){return Ce.pattern.getPositivePatterns(e)}oe.getPositivePatterns=nu;function ou(e,t){return Ce.pattern.getNegativePatterns(e).concat(t).map(Ce.pattern.convertToPositivePattern)}oe.getNegativePatternsAsPositive=ou;function Bo(e){let t={};return e.reduce((r,o)=>{let i=Ce.pattern.getBaseDirectory(o);return i in r?r[i].push(o):r[i]=[o],r},t)}oe.groupPatternsByBaseDirectory=Bo;function jo(e,t,r){return Object.keys(e).map(o=>No(o,e[o],t,r))}oe.convertPatternGroupsToTasks=jo;function No(e,t,r,o){return{dynamic:o,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Ce.pattern.convertToNegativePattern))}}oe.convertPatternGroupToTask=No});var au=b(kr=>{"use strict";u();Object.defineProperty(kr,"__esModule",{value:!0});kr.read=void 0;function Zg(e,t,r){t.fs.lstat(e,(o,i)=>{if(o!==null){su(r,o);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Io(r,i);return}t.fs.stat(e,(n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){su(r,n);return}Io(r,i);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Io(r,s)})})}kr.read=Zg;function su(e,t){e(t)}function Io(e,t){e(null,t)}});var lu=b(Ar=>{"use strict";u();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.read=void 0;function ey(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let o=t.fs.statSync(e);return t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),o}catch(o){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw o}}Ar.read=ey});var uu=b(He=>{"use strict";u();Object.defineProperty(He,"__esModule",{value:!0});He.createFileSystemAdapter=He.FILE_SYSTEM_ADAPTER=void 0;var Pr=U("fs");He.FILE_SYSTEM_ADAPTER={lstat:Pr.lstat,stat:Pr.stat,lstatSync:Pr.lstatSync,statSync:Pr.statSync};function ty(e){return e===void 0?He.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},He.FILE_SYSTEM_ADAPTER),e)}He.createFileSystemAdapter=ty});var cu=b(Ho=>{"use strict";u();Object.defineProperty(Ho,"__esModule",{value:!0});var ry=uu(),Vo=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=ry.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}};Ho.default=Vo});var ut=b(qe=>{"use strict";u();Object.defineProperty(qe,"__esModule",{value:!0});qe.statSync=qe.stat=qe.Settings=void 0;var fu=au(),ny=lu(),qo=cu();qe.Settings=qo.default;function oy(e,t,r){if(typeof t=="function"){fu.read(e,Go(),t);return}fu.read(e,Go(t),r)}qe.stat=oy;function iy(e,t){let r=Go(t);return ny.read(e,r)}qe.statSync=iy;function Go(e={}){return e instanceof qo.default?e:new qo.default(e)}});var mu=b((QS,du)=>{"use strict";u();var pu;du.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(pu||(pu=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var gu=b((eR,hu)=>{"use strict";u();hu.exports=ay;var sy=mu();function ay(e,t){let r,o,i,n=!0;Array.isArray(e)?(r=[],o=e.length):(i=Object.keys(e),r={},o=i.length);function s(l){function c(){t&&t(l,r),t=null}n?sy(c):c()}function a(l,c,f){r[l]=f,(--o===0||c)&&s(c)}o?i?i.forEach(function(l){e[l](function(c,f){a(l,c,f)})}):e.forEach(function(l,c){l(function(f,d){a(c,f,d)})}):s(null),n=!1}});var Wo=b(Tr=>{"use strict";u();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Fr=process.versions.node.split(".");if(Fr[0]===void 0||Fr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var yu=Number.parseInt(Fr[0],10),ly=Number.parseInt(Fr[1],10),Du=10,uy=10,cy=yu>Du,fy=yu===Du&&ly>=uy;Tr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=cy||fy});var bu=b(Or=>{"use strict";u();Object.defineProperty(Or,"__esModule",{value:!0});Or.createDirentFromStats=void 0;var Uo=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 py(e,t){return new Uo(e,t)}Or.createDirentFromStats=py});var zo=b($r=>{"use strict";u();Object.defineProperty($r,"__esModule",{value:!0});$r.fs=void 0;var dy=bu();$r.fs=dy});var Jo=b(Lr=>{"use strict";u();Object.defineProperty(Lr,"__esModule",{value:!0});Lr.joinPathSegments=void 0;function my(e,t,r){return e.endsWith(r)?e+t:e+r+t}Lr.joinPathSegments=my});var Su=b(Ge=>{"use strict";u();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var hy=ut(),Cu=gu(),gy=Wo(),_u=zo(),vu=Jo();function yy(e,t,r){if(!t.stats&&gy.IS_SUPPORT_READDIR_WITH_FILE_TYPES){wu(e,t,r);return}xu(e,t,r)}Ge.read=yy;function wu(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(o,i)=>{if(o!==null){Mr(r,o);return}let n=i.map(a=>({dirent:a,name:a.name,path:vu.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ko(r,n);return}let s=n.map(a=>Dy(a,t));Cu(s,(a,l)=>{if(a!==null){Mr(r,a);return}Ko(r,l)})})}Ge.readdirWithFileTypes=wu;function Dy(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(o,i)=>{if(o!==null){if(t.throwErrorOnBrokenSymbolicLink){r(o);return}r(null,e);return}e.dirent=_u.fs.createDirentFromStats(e.name,i),r(null,e)})}}function xu(e,t,r){t.fs.readdir(e,(o,i)=>{if(o!==null){Mr(r,o);return}let n=i.map(s=>{let a=vu.joinPathSegments(e,s,t.pathSegmentSeparator);return l=>{hy.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){l(c);return}let d={name:s,path:a,dirent:_u.fs.createDirentFromStats(s,f)};t.stats&&(d.stats=f),l(null,d)})}});Cu(n,(s,a)=>{if(s!==null){Mr(r,s);return}Ko(r,a)})})}Ge.readdir=xu;function Mr(e,t){e(t)}function Ko(e,t){e(null,t)}});var Pu=b(We=>{"use strict";u();Object.defineProperty(We,"__esModule",{value:!0});We.readdir=We.readdirWithFileTypes=We.read=void 0;var by=ut(),Cy=Wo(),Ru=zo(),Eu=Jo();function _y(e,t){return!t.stats&&Cy.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ku(e,t):Au(e,t)}We.read=_y;function ku(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(o=>{let i={dirent:o,name:o.name,path:Eu.joinPathSegments(e,o.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let n=t.fs.statSync(i.path);i.dirent=Ru.fs.createDirentFromStats(i.name,n)}catch(n){if(t.throwErrorOnBrokenSymbolicLink)throw n}return i})}We.readdirWithFileTypes=ku;function Au(e,t){return t.fs.readdirSync(e).map(o=>{let i=Eu.joinPathSegments(e,o,t.pathSegmentSeparator),n=by.statSync(i,t.fsStatSettings),s={name:o,path:i,dirent:Ru.fs.createDirentFromStats(o,n)};return t.stats&&(s.stats=n),s})}We.readdir=Au});var Fu=b(Ue=>{"use strict";u();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createFileSystemAdapter=Ue.FILE_SYSTEM_ADAPTER=void 0;var xt=U("fs");Ue.FILE_SYSTEM_ADAPTER={lstat:xt.lstat,stat:xt.stat,lstatSync:xt.lstatSync,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};function vy(e){return e===void 0?Ue.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ue.FILE_SYSTEM_ADAPTER),e)}Ue.createFileSystemAdapter=vy});var Tu=b(Xo=>{"use strict";u();Object.defineProperty(Xo,"__esModule",{value:!0});var wy=U("path"),xy=ut(),Sy=Fu(),Yo=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Sy.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,wy.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new xy.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Xo.default=Yo});var Br=b(ze=>{"use strict";u();Object.defineProperty(ze,"__esModule",{value:!0});ze.Settings=ze.scandirSync=ze.scandir=void 0;var Ou=Su(),Ry=Pu(),Qo=Tu();ze.Settings=Qo.default;function Ey(e,t,r){if(typeof t=="function"){Ou.read(e,Zo(),t);return}Ou.read(e,Zo(t),r)}ze.scandir=Ey;function ky(e,t){let r=Zo(t);return Ry.read(e,r)}ze.scandirSync=ky;function Zo(e={}){return e instanceof Qo.default?e:new Qo.default(e)}});var Lu=b((CR,$u)=>{"use strict";u();function Ay(e){var t=new e,r=t;function o(){var n=t;return n.next?t=n.next:(t=new e,r=t),n.next=null,n}function i(n){r.next=n,r=n}return{get:o,release:i}}$u.exports=Ay});var Bu=b((vR,ei)=>{"use strict";u();var Py=Lu();function Mu(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var o=Py(Fy),i=null,n=null,s=0,a=null,l={push:D,drain:ge,saturated:ge,pause:f,paused:!1,get concurrency(){return r},set concurrency(T){if(!(T>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=T,!l.paused)for(;i&&s<r;)s++,A()},running:c,resume:g,idle:y,length:d,getQueue:p,unshift:S,empty:ge,kill:O,killAndDrain:$,error:H};return l;function c(){return s}function f(){l.paused=!0}function d(){for(var T=i,I=0;T;)T=T.next,I++;return I}function p(){for(var T=i,I=[];T;)I.push(T.value),T=T.next;return I}function g(){if(l.paused){if(l.paused=!1,i===null){s++,A();return}for(;i&&s<r;)s++,A()}}function y(){return s===0&&l.length()===0}function D(T,I){var P=o.get();P.context=e,P.release=A,P.value=T,P.callback=I||ge,P.errorHandler=a,s>=r||l.paused?n?(n.next=P,n=P):(i=P,n=P,l.saturated()):(s++,t.call(e,P.value,P.worked))}function S(T,I){var P=o.get();P.context=e,P.release=A,P.value=T,P.callback=I||ge,P.errorHandler=a,s>=r||l.paused?i?(P.next=i,i=P):(i=P,n=P,l.saturated()):(s++,t.call(e,P.value,P.worked))}function A(T){T&&o.release(T);var I=i;I&&s<=r?l.paused?s--:(n===i&&(n=null),i=I.next,I.next=null,t.call(e,I.value,I.worked),n===null&&l.empty()):--s===0&&l.drain()}function O(){i=null,n=null,l.drain=ge}function $(){i=null,n=null,l.drain(),l.drain=ge}function H(T){a=T}}function ge(){}function Fy(){this.value=null,this.callback=ge,this.next=null,this.release=ge,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,o){var i=e.callback,n=e.errorHandler,s=e.value;e.value=null,e.callback=ge,e.errorHandler&&n(r,s),i.call(e.context,r,o),e.release(e)}}function Ty(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function o(f,d){t.call(this,f).then(function(p){d(null,p)},d)}var i=Mu(e,o,r),n=i.push,s=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(f){var d=new Promise(function(p,g){n(f,function(y,D){if(y){g(y);return}p(D)})});return d.catch(ge),d}function l(f){var d=new Promise(function(p,g){s(f,function(y,D){if(y){g(y);return}p(D)})});return d.catch(ge),d}function c(){var f=new Promise(function(d){process.nextTick(function(){if(i.idle())d();else{var p=i.drain;i.drain=function(){typeof p=="function"&&p(),d(),i.drain=p}}})});return f}}ei.exports=Mu;ei.exports.promise=Ty});var jr=b(Ee=>{"use strict";u();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.joinPathSegments=Ee.replacePathSegmentSeparator=Ee.isAppliedFilter=Ee.isFatalError=void 0;function Oy(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ee.isFatalError=Oy;function $y(e,t){return e===null||e(t)}Ee.isAppliedFilter=$y;function Ly(e,t){return e.split(/[/\\]/).join(t)}Ee.replacePathSegmentSeparator=Ly;function My(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ee.joinPathSegments=My});var ni=b(ri=>{"use strict";u();Object.defineProperty(ri,"__esModule",{value:!0});var By=jr(),ti=class{constructor(t,r){this._root=t,this._settings=r,this._root=By.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};ri.default=ti});var si=b(ii=>{"use strict";u();Object.defineProperty(ii,"__esModule",{value:!0});var jy=U("events"),Ny=Br(),Iy=Bu(),Nr=jr(),Vy=ni(),oi=class extends Vy.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Ny.scandir,this._emitter=new jy.EventEmitter,this._queue=Iy(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 o={directory:t,base:r};this._queue.push(o,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(o,i)=>{if(o!==null){r(o,void 0);return}for(let n of i)this._handleEntry(n,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Nr.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 o=t.path;r!==void 0&&(t.path=Nr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Nr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Nr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ii.default=oi});var ju=b(li=>{"use strict";u();Object.defineProperty(li,"__esModule",{value:!0});var Hy=si(),ai=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Hy.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{qy(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Gy(t,this._storage)}),this._reader.read()}};li.default=ai;function qy(e,t){e(t)}function Gy(e,t){e(null,t)}});var Nu=b(ci=>{"use strict";u();Object.defineProperty(ci,"__esModule",{value:!0});var Wy=U("stream"),Uy=si(),ui=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Uy.default(this._root,this._settings),this._stream=new Wy.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}};ci.default=ui});var Iu=b(pi=>{"use strict";u();Object.defineProperty(pi,"__esModule",{value:!0});var zy=Br(),Ir=jr(),Jy=ni(),fi=class extends Jy.default{constructor(){super(...arguments),this._scandir=zy.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 o=this._scandir(t,this._settings.fsScandirSettings);for(let i of o)this._handleEntry(i,r)}catch(o){this._handleError(o)}}_handleError(t){if(Ir.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let o=t.path;r!==void 0&&(t.path=Ir.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Ir.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Ir.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};pi.default=fi});var Vu=b(mi=>{"use strict";u();Object.defineProperty(mi,"__esModule",{value:!0});var Ky=Iu(),di=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Ky.default(this._root,this._settings)}read(){return this._reader.read()}};mi.default=di});var Hu=b(gi=>{"use strict";u();Object.defineProperty(gi,"__esModule",{value:!0});var Yy=U("path"),Xy=Br(),hi=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,Yy.sep),this.fsScandirSettings=new Xy.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}};gi.default=hi});var Hr=b(ke=>{"use strict";u();Object.defineProperty(ke,"__esModule",{value:!0});ke.Settings=ke.walkStream=ke.walkSync=ke.walk=void 0;var qu=ju(),Qy=Nu(),Zy=Vu(),yi=Hu();ke.Settings=yi.default;function eD(e,t,r){if(typeof t=="function"){new qu.default(e,Vr()).read(t);return}new qu.default(e,Vr(t)).read(r)}ke.walk=eD;function tD(e,t){let r=Vr(t);return new Zy.default(e,r).read()}ke.walkSync=tD;function rD(e,t){let r=Vr(t);return new Qy.default(e,r).read()}ke.walkStream=rD;function Vr(e={}){return e instanceof yi.default?e:new yi.default(e)}});var qr=b(bi=>{"use strict";u();Object.defineProperty(bi,"__esModule",{value:!0});var nD=U("path"),oD=ut(),Gu=Me(),Di=class{constructor(t){this._settings=t,this._fsStatSettings=new oD.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return nD.resolve(this._settings.cwd,t)}_makeEntry(t,r){let o={name:r,path:r,dirent:Gu.fs.createDirentFromStats(r,t)};return this._settings.stats&&(o.stats=t),o}_isFatalError(t){return!Gu.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};bi.default=Di});var vi=b(_i=>{"use strict";u();Object.defineProperty(_i,"__esModule",{value:!0});var iD=U("stream"),sD=ut(),aD=Hr(),lD=qr(),Ci=class extends lD.default{constructor(){super(...arguments),this._walkStream=aD.walkStream,this._stat=sD.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let o=t.map(this._getFullEntryPath,this),i=new iD.PassThrough({objectMode:!0});i._write=(n,s,a)=>this._getEntry(o[n],t[n],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),n===o.length-1&&i.end(),a()}).catch(a);for(let n=0;n<o.length;n++)i.write(n);return i}_getEntry(t,r,o){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(o.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,o)=>{this._stat(t,this._fsStatSettings,(i,n)=>i===null?r(n):o(i))})}};_i.default=Ci});var Wu=b(xi=>{"use strict";u();Object.defineProperty(xi,"__esModule",{value:!0});var uD=Hr(),cD=qr(),fD=vi(),wi=class extends cD.default{constructor(){super(...arguments),this._walkAsync=uD.walk,this._readerStream=new fD.default(this._settings)}dynamic(t,r){return new Promise((o,i)=>{this._walkAsync(t,r,(n,s)=>{n===null?o(s):i(n)})})}async static(t,r){let o=[],i=this._readerStream.static(t,r);return new Promise((n,s)=>{i.once("error",s),i.on("data",a=>o.push(a)),i.once("end",()=>n(o))})}};xi.default=wi});var Uu=b(Ri=>{"use strict";u();Object.defineProperty(Ri,"__esModule",{value:!0});var Xt=Me(),Si=class{constructor(t,r,o){this._patterns=t,this._settings=r,this._micromatchOptions=o,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),o=this._splitSegmentsIntoSections(r);this._storage.push({complete:o.length<=1,pattern:t,segments:r,sections:o})}}_getPatternSegments(t){return Xt.pattern.getPatternParts(t,this._micromatchOptions).map(o=>Xt.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:Xt.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(t){return Xt.array.splitWhen(t,r=>r.dynamic&&Xt.pattern.hasGlobStar(r.pattern))}};Ri.default=Si});var zu=b(ki=>{"use strict";u();Object.defineProperty(ki,"__esModule",{value:!0});var pD=Uu(),Ei=class extends pD.default{match(t){let r=t.split("/"),o=r.length,i=this._storage.filter(n=>!n.complete||n.segments.length>o);for(let n of i){let s=n.sections[0];if(!n.complete&&o>s.length||r.every((l,c)=>{let f=n.segments[c];return!!(f.dynamic&&f.patternRe.test(l)||!f.dynamic&&f.pattern===l)}))return!0}return!1}};ki.default=Ei});var Ju=b(Pi=>{"use strict";u();Object.defineProperty(Pi,"__esModule",{value:!0});var Gr=Me(),dD=zu(),Ai=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,o){let i=this._getMatcher(r),n=this._getNegativePatternsRe(o);return s=>this._filter(t,s,i,n)}_getMatcher(t){return new dD.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Gr.pattern.isAffectDepthOfReadingPattern);return Gr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,o,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Gr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(n,o)?!1:this._isSkippedByNegativePatterns(n,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let o=r.split("/").length;if(t==="")return o;let i=t.split("/").length;return o-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Gr.pattern.matchAny(t,r)}};Pi.default=Ai});var Ku=b(Ti=>{"use strict";u();Object.defineProperty(Ti,"__esModule",{value:!0});var Je=Me(),Fi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[o,i]=Je.pattern.partitionAbsoluteAndRelative(r),n={positive:{all:Je.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:Je.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:Je.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,n)}_filter(t,r){let o=Je.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(o)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(o,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(o),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,o){return!(!this._isMatchToPatterns(t,r.positive.all,o)||this._isMatchToPatterns(t,r.negative.relative,o)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,o))}_isMatchToAbsoluteNegative(t,r,o){if(r.length===0)return!1;let i=Je.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,o)}_isMatchToPatterns(t,r,o){if(r.length===0)return!1;let i=Je.pattern.matchAny(t,r);return!i&&o?Je.pattern.matchAny(t+"/",r):i}};Ti.default=Fi});var Yu=b($i=>{"use strict";u();Object.defineProperty($i,"__esModule",{value:!0});var mD=Me(),Oi=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return mD.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};$i.default=Oi});var Qu=b(Mi=>{"use strict";u();Object.defineProperty(Mi,"__esModule",{value:!0});var Xu=Me(),Li=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Xu.path.makeAbsolute(this._settings.cwd,r),r=Xu.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Mi.default=Li});var Wr=b(ji=>{"use strict";u();Object.defineProperty(ji,"__esModule",{value:!0});var hD=U("path"),gD=Ju(),yD=Ku(),DD=Yu(),bD=Qu(),Bi=class{constructor(t){this._settings=t,this.errorFilter=new DD.default(this._settings),this.entryFilter=new yD.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new gD.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new bD.default(this._settings)}_getRootDirectory(t){return hD.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}}};ji.default=Bi});var Zu=b(Ii=>{"use strict";u();Object.defineProperty(Ii,"__esModule",{value:!0});var CD=Wu(),_D=Wr(),Ni=class extends _D.default{constructor(){super(...arguments),this._reader=new CD.default(this._settings)}async read(t){let r=this._getRootDirectory(t),o=this._getReaderOptions(t);return(await this.api(r,t,o)).map(n=>o.transform(n))}api(t,r,o){return r.dynamic?this._reader.dynamic(t,o):this._reader.static(r.patterns,o)}};Ii.default=Ni});var ec=b(Hi=>{"use strict";u();Object.defineProperty(Hi,"__esModule",{value:!0});var vD=U("stream"),wD=vi(),xD=Wr(),Vi=class extends xD.default{constructor(){super(...arguments),this._reader=new wD.default(this._settings)}read(t){let r=this._getRootDirectory(t),o=this._getReaderOptions(t),i=this.api(r,t,o),n=new vD.Readable({objectMode:!0,read:()=>{}});return i.once("error",s=>n.emit("error",s)).on("data",s=>n.emit("data",o.transform(s))).once("end",()=>n.emit("end")),n.once("close",()=>i.destroy()),n}api(t,r,o){return r.dynamic?this._reader.dynamic(t,o):this._reader.static(r.patterns,o)}};Hi.default=Vi});var tc=b(Gi=>{"use strict";u();Object.defineProperty(Gi,"__esModule",{value:!0});var SD=ut(),RD=Hr(),ED=qr(),qi=class extends ED.default{constructor(){super(...arguments),this._walkSync=RD.walkSync,this._statSync=SD.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let o=[];for(let i of t){let n=this._getFullEntryPath(i),s=this._getEntry(n,i,r);s===null||!r.entryFilter(s)||o.push(s)}return o}_getEntry(t,r,o){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(o.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Gi.default=qi});var rc=b(Ui=>{"use strict";u();Object.defineProperty(Ui,"__esModule",{value:!0});var kD=tc(),AD=Wr(),Wi=class extends AD.default{constructor(){super(...arguments),this._reader=new kD.default(this._settings)}read(t){let r=this._getRootDirectory(t),o=this._getReaderOptions(t);return this.api(r,t,o).map(o.transform)}api(t,r,o){return r.dynamic?this._reader.dynamic(t,o):this._reader.static(r.patterns,o)}};Ui.default=Wi});var nc=b(Rt=>{"use strict";u();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var St=U("fs"),PD=U("os"),FD=Math.max(PD.cpus().length,1);Rt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:St.lstat,lstatSync:St.lstatSync,stat:St.stat,statSync:St.statSync,readdir:St.readdir,readdirSync:St.readdirSync};var zi=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,FD),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Rt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Rt.default=zi});var Ur=b((DE,ic)=>{"use strict";u();var oc=iu(),TD=Zu(),OD=ec(),$D=rc(),Ji=nc(),ye=Me();async function Ki(e,t){_e(e);let r=Yi(e,TD.default,t),o=await Promise.all(r);return ye.array.flatten(o)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){_e(c);let d=Yi(c,$D.default,f);return ye.array.flatten(d)}e.sync=t;function r(c,f){_e(c);let d=Yi(c,OD.default,f);return ye.stream.merge(d)}e.stream=r;function o(c,f){_e(c);let d=[].concat(c),p=new Ji.default(f);return oc.generate(d,p)}e.generateTasks=o;function i(c,f){_e(c);let d=new Ji.default(f);return ye.pattern.isDynamicPattern(c,d)}e.isDynamicPattern=i;function n(c){return _e(c),ye.path.escape(c)}e.escapePath=n;function s(c){return _e(c),ye.path.convertPathToPattern(c)}e.convertPathToPattern=s;let a;(function(c){function f(p){return _e(p),ye.path.escapePosixPath(p)}c.escapePath=f;function d(p){return _e(p),ye.path.convertPosixPathToPattern(p)}c.convertPathToPattern=d})(a=e.posix||(e.posix={}));let l;(function(c){function f(p){return _e(p),ye.path.escapeWindowsPath(p)}c.escapePath=f;function d(p){return _e(p),ye.path.convertWindowsPathToPattern(p)}c.convertPathToPattern=d})(l=e.win32||(e.win32={}))})(Ki||(Ki={}));function Yi(e,t,r){let o=[].concat(e),i=new Ji.default(r),n=oc.generate(o,i),s=new t(i);return n.map(s.read,s)}function _e(e){if(![].concat(e).every(o=>ye.string.isString(o)&&!ye.string.isEmpty(o)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}ic.exports=Ki});var ae=b((CE,Xi)=>{"use strict";u();var Jr=process||{},sc=Jr.argv||[],zr=Jr.env||{},LD=!(zr.NO_COLOR||sc.includes("--no-color"))&&(!!zr.FORCE_COLOR||sc.includes("--color")||Jr.platform==="win32"||(Jr.stdout||{}).isTTY&&zr.TERM!=="dumb"||!!zr.CI),MD=(e,t,r=e)=>o=>{let i=""+o,n=i.indexOf(t,e.length);return~n?e+BD(i,t,r,n)+t:e+i+t},BD=(e,t,r,o)=>{let i="",n=0;do i+=e.substring(n,o)+r,n=o+t.length,o=e.indexOf(t,n);while(~o);return i+e.substring(n)},ac=(e=LD)=>{let t=e?MD:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Xi.exports=ac();Xi.exports.createColors=ac});var qc=b((a2,Hc)=>{"use strict";u();Hc.exports=({onlyFirst:e=!1}={})=>{let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}});var sn=b((u2,Gc)=>{"use strict";u();var L0=qc();Gc.exports=e=>typeof e=="string"?e.replace(L0(),""):e});var us=b((f2,ls)=>{"use strict";u();var Wc=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);ls.exports=Wc;ls.exports.default=Wc});var zc=b((d2,Uc)=>{"use strict";u();Uc.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Lt=b((h2,cs)=>{"use strict";u();var M0=sn(),B0=us(),j0=zc(),Jc=e=>{if(typeof e!="string"||e.length===0||(e=M0(e),e.length===0))return 0;e=e.replace(j0()," ");let t=0;for(let r=0;r<e.length;r++){let o=e.codePointAt(r);o<=31||o>=127&&o<=159||o>=768&&o<=879||(o>65535&&r++,t+=B0(o)?2:1)}return t};cs.exports=Jc;cs.exports.default=Jc});var Xc=b((y2,Yc)=>{"use strict";u();var Kc="[\uD800-\uDBFF][\uDC00-\uDFFF]",N0=e=>e&&e.exact?new RegExp(`^${Kc}$`):new RegExp(Kc,"g");Yc.exports=N0});var Zc=b((b2,Qc)=>{"use strict";u();Qc.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var fs=b((_2,tf)=>{"use strict";u();var or=Zc(),ef={};for(let e of Object.keys(or))ef[or[e]]=e;var k={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};tf.exports=k;for(let e of Object.keys(k)){if(!("channels"in k[e]))throw new Error("missing channels property: "+e);if(!("labels"in k[e]))throw new Error("missing channel labels property: "+e);if(k[e].labels.length!==k[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=k[e];delete k[e].channels,delete k[e].labels,Object.defineProperty(k[e],"channels",{value:t}),Object.defineProperty(k[e],"labels",{value:r})}k.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.min(t,r,o),n=Math.max(t,r,o),s=n-i,a,l;n===i?a=0:t===n?a=(r-o)/s:r===n?a=2+(o-t)/s:o===n&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let c=(i+n)/2;return n===i?l=0:c<=.5?l=s/(n+i):l=s/(2-n-i),[a,l*100,c*100]};k.rgb.hsv=function(e){let t,r,o,i,n,s=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(s,a,l),f=c-Math.min(s,a,l),d=function(p){return(c-p)/6/f+1/2};return f===0?(i=0,n=0):(n=f/c,t=d(s),r=d(a),o=d(l),s===c?i=o-r:a===c?i=1/3+t-o:l===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,n*100,c*100]};k.rgb.hwb=function(e){let t=e[0],r=e[1],o=e[2],i=k.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(r,o));return o=1-1/255*Math.max(t,Math.max(r,o)),[i,n*100,o*100]};k.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.min(1-t,1-r,1-o),n=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-o-i)/(1-i)||0;return[n*100,s*100,a*100,i*100]};function I0(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}k.rgb.keyword=function(e){let t=ef[e];if(t)return t;let r=1/0,o;for(let i of Object.keys(or)){let n=or[i],s=I0(e,n);s<r&&(r=s,o=i)}return o};k.keyword.rgb=function(e){return or[e]};k.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,o=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;let i=t*.4124+r*.3576+o*.1805,n=t*.2126+r*.7152+o*.0722,s=t*.0193+r*.1192+o*.9505;return[i*100,n*100,s*100]};k.rgb.lab=function(e){let t=k.rgb.xyz(e),r=t[0],o=t[1],i=t[2];r/=95.047,o/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let n=116*o-16,s=500*(r-o),a=200*(o-i);return[n,s,a]};k.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,o=e[2]/100,i,n,s;if(r===0)return s=o*255,[s,s,s];o<.5?i=o*(1+r):i=o+r-o*r;let a=2*o-i,l=[0,0,0];for(let c=0;c<3;c++)n=t+1/3*-(c-1),n<0&&n++,n>1&&n--,6*n<1?s=a+(i-a)*6*n:2*n<1?s=i:3*n<2?s=a+(i-a)*(2/3-n)*6:s=a,l[c]=s*255;return l};k.hsl.hsv=function(e){let t=e[0],r=e[1]/100,o=e[2]/100,i=r,n=Math.max(o,.01);o*=2,r*=o<=1?o:2-o,i*=n<=1?n:2-n;let s=(o+r)/2,a=o===0?2*i/(n+i):2*r/(o+r);return[t,a*100,s*100]};k.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,o=e[2]/100,i=Math.floor(t)%6,n=t-Math.floor(t),s=255*o*(1-r),a=255*o*(1-r*n),l=255*o*(1-r*(1-n));switch(o*=255,i){case 0:return[o,l,s];case 1:return[a,o,s];case 2:return[s,o,l];case 3:return[s,a,o];case 4:return[l,s,o];case 5:return[o,s,a]}};k.hsv.hsl=function(e){let t=e[0],r=e[1]/100,o=e[2]/100,i=Math.max(o,.01),n,s;s=(2-r)*o;let a=(2-r)*i;return n=r*i,n/=a<=1?a:2-a,n=n||0,s/=2,[t,n*100,s*100]};k.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,o=e[2]/100,i=r+o,n;i>1&&(r/=i,o/=i);let s=Math.floor(6*t),a=1-o;n=6*t-s,s&1&&(n=1-n);let l=r+n*(a-r),c,f,d;switch(s){default:case 6:case 0:c=a,f=l,d=r;break;case 1:c=l,f=a,d=r;break;case 2:c=r,f=a,d=l;break;case 3:c=r,f=l,d=a;break;case 4:c=l,f=r,d=a;break;case 5:c=a,f=r,d=l;break}return[c*255,f*255,d*255]};k.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,o=e[2]/100,i=e[3]/100,n=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,o*(1-i)+i);return[n*255,s*255,a*255]};k.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,o=e[2]/100,i,n,s;return i=t*3.2406+r*-1.5372+o*-.4986,n=t*-.9689+r*1.8758+o*.0415,s=t*.0557+r*-.204+o*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),[i*255,n*255,s*255]};k.xyz.lab=function(e){let t=e[0],r=e[1],o=e[2];t/=95.047,r/=100,o/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let i=116*r-16,n=500*(t-r),s=200*(r-o);return[i,n,s]};k.lab.xyz=function(e){let t=e[0],r=e[1],o=e[2],i,n,s;n=(t+16)/116,i=r/500+n,s=n-o/200;let a=n**3,l=i**3,c=s**3;return n=a>.008856?a:(n-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,i*=95.047,n*=100,s*=108.883,[i,n,s]};k.lab.lch=function(e){let t=e[0],r=e[1],o=e[2],i;i=Math.atan2(o,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+o*o);return[t,s,i]};k.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,n=r*Math.cos(i),s=r*Math.sin(i);return[t,n,s]};k.rgb.ansi16=function(e,t=null){let[r,o,i]=e,n=t===null?k.rgb.hsv(e)[2]:t;if(n=Math.round(n/50),n===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(o/255)<<1|Math.round(r/255));return n===2&&(s+=60),s};k.hsv.ansi16=function(e){return k.rgb.ansi16(k.hsv.rgb(e),e[2])};k.rgb.ansi256=function(e){let t=e[0],r=e[1],o=e[2];return t===r&&r===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(o/255*5)};k.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,o=(t&1)*r*255,i=(t>>1&1)*r*255,n=(t>>2&1)*r*255;return[o,i,n]};k.ansi256.rgb=function(e){if(e>=232){let n=(e-232)*10+8;return[n,n,n]}e-=16;let t,r=Math.floor(e/36)/5*255,o=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,o,i]};k.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};k.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let o=parseInt(r,16),i=o>>16&255,n=o>>8&255,s=o&255;return[i,n,s]};k.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,o=e[2]/255,i=Math.max(Math.max(t,r),o),n=Math.min(Math.min(t,r),o),s=i-n,a,l;return s<1?a=n/(1-s):a=0,s<=0?l=0:i===t?l=(r-o)/s%6:i===r?l=2+(o-t)/s:l=4+(t-r)/s,l/=6,l%=1,[l*360,s*100,a*100]};k.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,o=r<.5?2*t*r:2*t*(1-r),i=0;return o<1&&(i=(r-.5*o)/(1-o)),[e[0],o*100,i*100]};k.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,o=t*r,i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};k.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,o=e[2]/100;if(r===0)return[o*255,o*255,o*255];let i=[0,0,0],n=t%1*6,s=n%1,a=1-s,l=0;switch(Math.floor(n)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-r)*o,[(r*i[0]+l)*255,(r*i[1]+l)*255,(r*i[2]+l)*255]};k.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,o=t+r*(1-t),i=0;return o>0&&(i=t/o),[e[0],i*100,o*100]};k.hcg.hsl=function(e){let t=e[1]/100,o=e[2]/100*(1-t)+.5*t,i=0;return o>0&&o<.5?i=t/(2*o):o>=.5&&o<1&&(i=t/(2*(1-o))),[e[0],i*100,o*100]};k.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,o=t+r*(1-t);return[e[0],(o-t)*100,(1-o)*100]};k.hwb.hcg=function(e){let t=e[1]/100,o=1-e[2]/100,i=o-t,n=0;return i<1&&(n=(o-i)/(1-i)),[e[0],i*100,n*100]};k.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};k.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};k.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};k.gray.hsl=function(e){return[0,0,e[0]]};k.gray.hsv=k.gray.hsl;k.gray.hwb=function(e){return[0,100,e[0]]};k.gray.cmyk=function(e){return[0,0,0,e[0]]};k.gray.lab=function(e){return[e[0],0,0]};k.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,o=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(o.length)+o};k.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var nf=b((w2,rf)=>{"use strict";u();var an=fs();function V0(){let e={},t=Object.keys(an);for(let r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}function H0(e){let t=V0(),r=[e];for(t[e].distance=0;r.length;){let o=r.pop(),i=Object.keys(an[o]);for(let n=i.length,s=0;s<n;s++){let a=i[s],l=t[a];l.distance===-1&&(l.distance=t[o].distance+1,l.parent=o,r.unshift(a))}}return t}function q0(e,t){return function(r){return t(e(r))}}function G0(e,t){let r=[t[e].parent,e],o=an[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),o=q0(an[t[i].parent][i],o),i=t[i].parent;return o.conversion=r,o}rf.exports=function(e){let t=H0(e),r={},o=Object.keys(t);for(let i=o.length,n=0;n<i;n++){let s=o[n];t[s].parent!==null&&(r[s]=G0(s,t))}return r}});var sf=b((S2,of)=>{"use strict";u();var ps=fs(),W0=nf(),Mt={},U0=Object.keys(ps);function z0(e){let t=function(...r){let o=r[0];return o==null?o:(o.length>1&&(r=o),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function J0(e){let t=function(...r){let o=r[0];if(o==null)return o;o.length>1&&(r=o);let i=e(r);if(typeof i=="object")for(let n=i.length,s=0;s<n;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}U0.forEach(e=>{Mt[e]={},Object.defineProperty(Mt[e],"channels",{value:ps[e].channels}),Object.defineProperty(Mt[e],"labels",{value:ps[e].labels});let t=W0(e);Object.keys(t).forEach(o=>{let i=t[o];Mt[e][o]=J0(i),Mt[e][o].raw=z0(i)})});of.exports=Mt});var pf=b((E2,ff)=>{"use strict";u();var af=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,lf=(e,t)=>(...r)=>{let o=e(...r);return`\x1B[${38+t};5;${o}m`},uf=(e,t)=>(...r)=>{let o=e(...r);return`\x1B[${38+t};2;${o[0]};${o[1]};${o[2]}m`},ln=e=>e,cf=(e,t,r)=>[e,t,r],Bt=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let o=r();return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0}),o},enumerable:!0,configurable:!0})},ds,jt=(e,t,r,o)=>{ds===void 0&&(ds=sf());let i=o?10:0,n={};for(let[s,a]of Object.entries(ds)){let l=s==="ansi16"?"ansi":s;s===t?n[l]=e(r,i):typeof a=="object"&&(n[l]=e(a[t],i))}return n};function K0(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,o]of Object.entries(t)){for(let[i,n]of Object.entries(o))t[i]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},o[i]=t[i],e.set(n[0],n[1]);Object.defineProperty(t,r,{value:o,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",Bt(t.color,"ansi",()=>jt(af,"ansi16",ln,!1)),Bt(t.color,"ansi256",()=>jt(lf,"ansi256",ln,!1)),Bt(t.color,"ansi16m",()=>jt(uf,"rgb",cf,!1)),Bt(t.bgColor,"ansi",()=>jt(af,"ansi16",ln,!0)),Bt(t.bgColor,"ansi256",()=>jt(lf,"ansi256",ln,!0)),Bt(t.bgColor,"ansi16m",()=>jt(uf,"rgb",cf,!0)),t}Object.defineProperty(ff,"exports",{enumerable:!0,get:K0})});var cn=b((A2,gf)=>{"use strict";u();var Y0=us(),X0=Xc(),df=pf(),hf=["\x1B","\x9B"],un=e=>`${hf[0]}[${e}m`,mf=(e,t,r)=>{let o=[];e=[...e];for(let i of e){let n=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let s=df.codes.get(Number.parseInt(i,10));if(s){let a=e.indexOf(s.toString());a===-1?o.push(un(t?s:n)):e.splice(a,1)}else if(t){o.push(un(0));break}else o.push(un(n))}if(t&&(o=o.filter((i,n)=>o.indexOf(i)===n),r!==void 0)){let i=un(df.codes.get(Number.parseInt(r,10)));o=o.reduce((n,s)=>s===i?[s,...n]:[...n,s],[])}return o.join("")};gf.exports=(e,t,r)=>{let o=[...e],i=[],n=typeof r=="number"?r:o.length,s=!1,a,l=0,c="";for(let[f,d]of o.entries()){let p=!1;if(hf.includes(d)){let g=/\d[^m]*/.exec(e.slice(f,f+18));a=g&&g.length>0?g[0]:void 0,l<n&&(s=!0,a!==void 0&&i.push(a))}else s&&d==="m"&&(s=!1,p=!0);if(!s&&!p&&l++,!X0({exact:!0}).test(d)&&Y0(d.codePointAt())&&(l++,typeof r!="number"&&n++),l>t&&l<=n)c+=d;else if(l===t&&!s&&a!==void 0)c=mf(i);else if(l>=n){c+=mf(i,!0,a);break}}return c}});var ms=b(fn=>{"use strict";u();Object.defineProperty(fn,"__esModule",{value:!0});fn.getBorderCharacters=void 0;var Q0=e=>{if(e==="honeywell")return{topBody:"\u2550",topJoin:"\u2564",topLeft:"\u2554",topRight:"\u2557",bottomBody:"\u2550",bottomJoin:"\u2567",bottomLeft:"\u255A",bottomRight:"\u255D",bodyLeft:"\u2551",bodyRight:"\u2551",bodyJoin:"\u2502",headerJoin:"\u252C",joinBody:"\u2500",joinLeft:"\u255F",joinRight:"\u2562",joinJoin:"\u253C",joinMiddleDown:"\u252C",joinMiddleUp:"\u2534",joinMiddleLeft:"\u2524",joinMiddleRight:"\u251C"};if(e==="norc")return{topBody:"\u2500",topJoin:"\u252C",topLeft:"\u250C",topRight:"\u2510",bottomBody:"\u2500",bottomJoin:"\u2534",bottomLeft:"\u2514",bottomRight:"\u2518",bodyLeft:"\u2502",bodyRight:"\u2502",bodyJoin:"\u2502",headerJoin:"\u252C",joinBody:"\u2500",joinLeft:"\u251C",joinRight:"\u2524",joinJoin:"\u253C",joinMiddleDown:"\u252C",joinMiddleUp:"\u2534",joinMiddleLeft:"\u2524",joinMiddleRight:"\u251C"};if(e==="ramac")return{topBody:"-",topJoin:"+",topLeft:"+",topRight:"+",bottomBody:"-",bottomJoin:"+",bottomLeft:"+",bottomRight:"+",bodyLeft:"|",bodyRight:"|",bodyJoin:"|",headerJoin:"+",joinBody:"-",joinLeft:"|",joinRight:"|",joinJoin:"|",joinMiddleDown:"+",joinMiddleUp:"+",joinMiddleLeft:"+",joinMiddleRight:"+"};if(e==="void")return{topBody:"",topJoin:"",topLeft:"",topRight:"",bottomBody:"",bottomJoin:"",bottomLeft:"",bottomRight:"",bodyLeft:"",bodyRight:"",bodyJoin:"",headerJoin:"",joinBody:"",joinLeft:"",joinRight:"",joinJoin:"",joinMiddleDown:"",joinMiddleUp:"",joinMiddleLeft:"",joinMiddleRight:""};throw new Error('Unknown border template "'+e+'".')};fn.getBorderCharacters=Q0});var te=b(V=>{"use strict";u();var hs=V&&V.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V,"__esModule",{value:!0});V.isCellInRange=V.areCellEqual=V.calculateRangeCoordinate=V.flatten=V.extractTruncates=V.sumArray=V.sequence=V.distributeUnevenly=V.countSpaceSequence=V.groupBySizes=V.makeBorderConfig=V.splitAnsi=V.normalizeString=void 0;var Z0=hs(cn()),eb=hs(Lt()),tb=hs(sn()),rb=ms(),nb=e=>e.replace(/\r\n/g,`
4
4
  `);V.normalizeString=nb;var ob=e=>{let t=(0,tb.default)(e).split(`
5
5
  `).map(eb.default),r=[],o=0;return t.forEach(i=>{r.push(i===0?"":(0,Z0.default)(e,o,o+i)),o+=i+1}),r};V.splitAnsi=ob;var ib=e=>({...(0,rb.getBorderCharacters)("honeywell"),...e});V.makeBorderConfig=ib;var sb=(e,t)=>{let r=0;return t.map(o=>{let i=e.slice(r,r+o);return r+=o,i})};V.groupBySizes=sb;var ab=e=>{var t,r;return(r=(t=e.match(/\s+/g))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0};V.countSpaceSequence=ab;var lb=(e,t)=>Array.from({length:t}).fill(Math.floor(e/t)).map((o,i)=>o+(i<e%t?1:0));V.distributeUnevenly=lb;var ub=(e,t)=>Array.from({length:t-e+1},(r,o)=>o+e);V.sequence=ub;var cb=e=>e.reduce((t,r)=>t+r,0);V.sumArray=cb;var fb=e=>e.columns.map(({truncate:t})=>t);V.extractTruncates=fb;var pb=e=>[].concat(...e);V.flatten=pb;var db=e=>{let{row:t,col:r,colSpan:o=1,rowSpan:i=1}=e;return{bottomRight:{col:r+o-1,row:t+i-1},topLeft:{col:r,row:t}}};V.calculateRangeCoordinate=db;var mb=(e,t)=>e.row===t.row&&e.col===t.col;V.areCellEqual=mb;var hb=(e,{topLeft:t,bottomRight:r})=>t.row<=e.row&&e.row<=r.row&&t.col<=e.col&&e.col<=r.col;V.isCellInRange=hb});var ys=b(Nt=>{"use strict";u();var gb=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.alignString=void 0;var yb=gb(Lt()),yf=te(),gs=(e,t)=>e+" ".repeat(t),Db=(e,t)=>" ".repeat(t)+e,bb=(e,t)=>" ".repeat(Math.floor(t/2))+e+" ".repeat(Math.ceil(t/2)),Cb=(e,t)=>{let r=(0,yf.countSpaceSequence)(e);if(r===0)return gs(e,t);let o=(0,yf.distributeUnevenly)(t,r);if(Math.max(...o)>3)return gs(e,t);let i=0;return e.replace(/\s+/g,n=>n+" ".repeat(o[i++]))},_b=(e,t,r)=>{let o=(0,yb.default)(e);if(o===t)return e;if(o>t)throw new Error("Subject parameter value width cannot be greater than the container width.");if(o===0)return" ".repeat(t);let i=t-o;return r==="left"?gs(e,i):r==="right"?Db(e,i):r==="justify"?Cb(e,i):bb(e,i)};Nt.alignString=_b});var Ds=b(pn=>{"use strict";u();Object.defineProperty(pn,"__esModule",{value:!0});pn.alignTableData=void 0;var vb=ys(),wb=(e,t)=>e.map((r,o)=>r.map((i,n)=>{var s;let{width:a,alignment:l}=t.columns[n];return((s=t.spanningCellManager)===null||s===void 0?void 0:s.getContainingRange({col:n,row:o},{mapped:!0}))?i:(0,vb.alignString)(i,a,l)}));pn.alignTableData=wb});var Cf=b(It=>{"use strict";u();var bf=It&&It.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(It,"__esModule",{value:!0});It.wrapString=void 0;var Df=bf(cn()),xb=bf(Lt()),Sb=(e,t)=>{let r=e,o=[];do o.push((0,Df.default)(r,0,t)),r=(0,Df.default)(r,t).trim();while((0,xb.default)(r));return o};It.wrapString=Sb});var vf=b(Vt=>{"use strict";u();var _f=Vt&&Vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.wrapWord=void 0;var Rb=_f(cn()),Eb=_f(sn()),kb=(e,t)=>{let r=(0,Eb.default)(e),o=[],i=new RegExp("(^.{1,"+String(Math.max(t,1))+"}(\\s+|$))|(^.{1,"+String(Math.max(t-1,1))+"}(\\\\|/|_|\\.|,|;|-))");do{let n,s=i.exec(r);if(s){n=s[0],r=r.slice(n.length);let a=n.trim().length,l=n.length-a;o.push([a,l])}else n=r.slice(0,t),r=r.slice(t),o.push([n.length,0])}while(r.length);return o},Ab=(e,t)=>{let r=[],o=0;return kb(e,t).forEach(([i,n])=>{r.push((0,Rb.default)(e,o,o+i)),o+=i+n}),r};Vt.wrapWord=Ab});var mn=b(dn=>{"use strict";u();Object.defineProperty(dn,"__esModule",{value:!0});dn.wrapCell=void 0;var Pb=te(),Fb=Cf(),Tb=vf(),Ob=(e,t,r)=>{let o=(0,Pb.splitAnsi)(e);for(let i=0;i<o.length;){let n;r?n=(0,Tb.wrapWord)(o[i],t):n=(0,Fb.wrapString)(o[i],t),o.splice(i,1,...n),i+=n.length}return o};dn.wrapCell=Ob});var wf=b(hn=>{"use strict";u();Object.defineProperty(hn,"__esModule",{value:!0});hn.calculateCellHeight=void 0;var $b=mn(),Lb=(e,t,r=!1)=>(0,$b.wrapCell)(e,t,r).length;hn.calculateCellHeight=Lb});var bs=b(gn=>{"use strict";u();Object.defineProperty(gn,"__esModule",{value:!0});gn.calculateRowHeights=void 0;var Mb=wf(),xf=te(),Bb=(e,t)=>{let r=[];for(let[o,i]of e.entries()){let n=1;i.forEach((s,a)=>{var l;let c=(l=t.spanningCellManager)===null||l===void 0?void 0:l.getContainingRange({col:a,row:o});if(!c){let g=(0,Mb.calculateCellHeight)(s,t.columns[a].width,t.columns[a].wrapWord);n=Math.max(n,g);return}let{topLeft:f,bottomRight:d,height:p}=c;if(o===d.row){let g=(0,xf.sumArray)(r.slice(f.row)),y=d.row-f.row,D=(0,xf.sequence)(f.row+1,d.row).filter(A=>{var O;return!(!((O=t.drawHorizontalLine)===null||O===void 0)&&O.call(t,A,e.length))}).length,S=p-g-y+D;n=Math.max(n,S)}}),r.push(n)}return r};gn.calculateRowHeights=Bb});var Dn=b(yn=>{"use strict";u();Object.defineProperty(yn,"__esModule",{value:!0});yn.drawContent=void 0;var jb=e=>{let{contents:t,separatorGetter:r,drawSeparator:o,spanningCellManager:i,rowIndex:n,elementType:s}=e,a=t.length,l=[];return o(0,a)&&l.push(r(0,a)),t.forEach((c,f)=>{if((!s||s==="border"||s==="row")&&l.push(c),s==="cell"&&n===void 0&&l.push(c),s==="cell"&&n!==void 0){let d=i?.getContainingRange({col:f,row:n});(!d||f===d.topLeft.col)&&l.push(c)}if(f+1<a&&o(f+1,a)){let d=r(f+1,a);if(s==="cell"&&n!==void 0){let p={col:f+1,row:n},g=i?.getContainingRange(p);(!g||g.topLeft.col===p.col)&&l.push(d)}else l.push(d)}}),o(a,a)&&l.push(r(a,a)),l.join("")};yn.drawContent=jb});var Cs=b(K=>{"use strict";u();Object.defineProperty(K,"__esModule",{value:!0});K.createTableBorderGetter=K.drawBorderBottom=K.drawBorderJoin=K.drawBorderTop=K.drawBorder=K.createSeparatorGetter=K.drawBorderSegments=void 0;var Nb=Dn(),Ib=(e,t)=>{let{separator:r,horizontalBorderIndex:o,spanningCellManager:i}=t;return e.map((n,s)=>{let a=r.body.repeat(n);if(o===void 0)return a;let l=i?.getContainingRange({col:s,row:o});if(!l)return a;let{topLeft:c}=l;return o===c.row?a:s!==c.col?"":l.extractBorderContent(o)})};K.drawBorderSegments=Ib;var Vb=e=>{let{separator:t,spanningCellManager:r,horizontalBorderIndex:o,rowCount:i}=e;return(n,s)=>{let a=r?.inSameRange;if(o!==void 0&&a){let l={col:n,row:o-1},c={col:n-1,row:o},f={col:n-1,row:o-1},d={col:n,row:o},p=[[f,l],[l,d],[d,c],[c,f]];if(n===0)return a(d,l)&&t.bodyJoinOuter?t.bodyJoinOuter:t.left;if(n===s)return a(f,c)&&t.bodyJoinOuter?t.bodyJoinOuter:t.right;if(o===0)return a(d,c)?t.body:t.join;if(o===i)return a(l,f)?t.body:t.join;let g=p.map(y=>a(...y)).filter(Boolean).length;if(g===0)return t.join;if(g===4)return"";if(g===2)return a(...p[1])&&a(...p[3])&&t.bodyJoinInner?t.bodyJoinInner:t.body;if(g===1){if(!t.joinRight||!t.joinLeft||!t.joinUp||!t.joinDown)throw new Error(`Can not get border separator for position [${o}, ${n}]`);return a(...p[0])?t.joinDown:a(...p[1])?t.joinLeft:a(...p[2])?t.joinUp:t.joinRight}throw new Error("Invalid case")}return n===0?t.left:n===s?t.right:t.join}};K.createSeparatorGetter=Vb;var Hb=(e,t)=>{let r=(0,K.drawBorderSegments)(e,t),{drawVerticalLine:o,horizontalBorderIndex:i,spanningCellManager:n}=t;return(0,Nb.drawContent)({contents:r,drawSeparator:o,elementType:"border",rowIndex:i,separatorGetter:(0,K.createSeparatorGetter)(t),spanningCellManager:n})+`
@@ -7,7 +7,7 @@ import{a as ga}from"./chunk-YBYGBP4O.js";import{a as U,b,c as ee,e as u}from"./c
7
7
  `?"":o};K.drawBorderTop=qb;var Gb=(e,t)=>{let{border:r}=t;return(0,K.drawBorder)(e,{...t,separator:{body:r.joinBody,bodyJoinInner:r.bodyJoin,bodyJoinOuter:r.bodyLeft,join:r.joinJoin,joinDown:r.joinMiddleDown,joinLeft:r.joinMiddleLeft,joinRight:r.joinMiddleRight,joinUp:r.joinMiddleUp,left:r.joinLeft,right:r.joinRight}})};K.drawBorderJoin=Gb;var Wb=(e,t)=>{let{border:r}=t;return(0,K.drawBorder)(e,{...t,separator:{body:r.bottomBody,join:r.bottomJoin,left:r.bottomLeft,right:r.bottomRight}})};K.drawBorderBottom=Wb;var Ub=(e,t)=>(r,o)=>{let i={...t,horizontalBorderIndex:r};return r===0?(0,K.drawBorderTop)(e,i):r===o?(0,K.drawBorderBottom)(e,i):(0,K.drawBorderJoin)(e,i)};K.createTableBorderGetter=Ub});var _s=b(bn=>{"use strict";u();Object.defineProperty(bn,"__esModule",{value:!0});bn.drawRow=void 0;var zb=Dn(),Jb=(e,t)=>{let{border:r,drawVerticalLine:o,rowIndex:i,spanningCellManager:n}=t;return(0,zb.drawContent)({contents:e,drawSeparator:o,elementType:"cell",rowIndex:i,separatorGetter:(s,a)=>s===0?r.bodyLeft:s===a?r.bodyRight:r.bodyJoin,spanningCellManager:n})+`
8
8
  `};bn.drawRow=Jb});var Rf=b((tP,Sf)=>{"use strict";u();Sf.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(i=o;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(n=Object.keys(t),o=n.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=o;i--!==0;){var s=n[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var kf=b(vs=>{"use strict";u();Object.defineProperty(vs,"__esModule",{value:!0});var Ef=Rf();Ef.code='require("ajv/dist/runtime/equal").default';vs.default=Ef});var $f=b(xs=>{"use strict";u();xs["config.json"]=Tf;var Kb={$id:"config.json",$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{border:{$ref:"shared.json#/definitions/borders"},header:{type:"object",properties:{content:{type:"string"},alignment:{$ref:"shared.json#/definitions/alignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["content"],additionalProperties:!1},columns:{$ref:"shared.json#/definitions/columns"},columnDefault:{$ref:"shared.json#/definitions/column"},drawVerticalLine:{typeof:"function"},drawHorizontalLine:{typeof:"function"},singleLine:{typeof:"boolean"},spanningCells:{type:"array",items:{type:"object",properties:{col:{type:"integer",minimum:0},row:{type:"integer",minimum:0},colSpan:{type:"integer",minimum:1},rowSpan:{type:"integer",minimum:1},alignment:{$ref:"shared.json#/definitions/alignment"},verticalAlignment:{$ref:"shared.json#/definitions/verticalAlignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["row","col"],additionalProperties:!1}}},additionalProperties:!1},Af={type:"object",properties:{topBody:{$ref:"#/definitions/border"},topJoin:{$ref:"#/definitions/border"},topLeft:{$ref:"#/definitions/border"},topRight:{$ref:"#/definitions/border"},bottomBody:{$ref:"#/definitions/border"},bottomJoin:{$ref:"#/definitions/border"},bottomLeft:{$ref:"#/definitions/border"},bottomRight:{$ref:"#/definitions/border"},bodyLeft:{$ref:"#/definitions/border"},bodyRight:{$ref:"#/definitions/border"},bodyJoin:{$ref:"#/definitions/border"},headerJoin:{$ref:"#/definitions/border"},joinBody:{$ref:"#/definitions/border"},joinLeft:{$ref:"#/definitions/border"},joinRight:{$ref:"#/definitions/border"},joinJoin:{$ref:"#/definitions/border"},joinMiddleUp:{$ref:"#/definitions/border"},joinMiddleDown:{$ref:"#/definitions/border"},joinMiddleLeft:{$ref:"#/definitions/border"},joinMiddleRight:{$ref:"#/definitions/border"}},additionalProperties:!1},ws=Object.prototype.hasOwnProperty;function C(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(typeof e!="string"){let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[a]:n.push(a),s++}return C.errors=n,s===0}function Cn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let a in e)if(!ws.call(Af.properties,a)){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}e.topBody!==void 0&&(C(e.topBody,{instancePath:t+"/topBody",parentData:e,parentDataProperty:"topBody",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.topJoin!==void 0&&(C(e.topJoin,{instancePath:t+"/topJoin",parentData:e,parentDataProperty:"topJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.topLeft!==void 0&&(C(e.topLeft,{instancePath:t+"/topLeft",parentData:e,parentDataProperty:"topLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.topRight!==void 0&&(C(e.topRight,{instancePath:t+"/topRight",parentData:e,parentDataProperty:"topRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomBody!==void 0&&(C(e.bottomBody,{instancePath:t+"/bottomBody",parentData:e,parentDataProperty:"bottomBody",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomJoin!==void 0&&(C(e.bottomJoin,{instancePath:t+"/bottomJoin",parentData:e,parentDataProperty:"bottomJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomLeft!==void 0&&(C(e.bottomLeft,{instancePath:t+"/bottomLeft",parentData:e,parentDataProperty:"bottomLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomRight!==void 0&&(C(e.bottomRight,{instancePath:t+"/bottomRight",parentData:e,parentDataProperty:"bottomRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bodyLeft!==void 0&&(C(e.bodyLeft,{instancePath:t+"/bodyLeft",parentData:e,parentDataProperty:"bodyLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bodyRight!==void 0&&(C(e.bodyRight,{instancePath:t+"/bodyRight",parentData:e,parentDataProperty:"bodyRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bodyJoin!==void 0&&(C(e.bodyJoin,{instancePath:t+"/bodyJoin",parentData:e,parentDataProperty:"bodyJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.headerJoin!==void 0&&(C(e.headerJoin,{instancePath:t+"/headerJoin",parentData:e,parentDataProperty:"headerJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinBody!==void 0&&(C(e.joinBody,{instancePath:t+"/joinBody",parentData:e,parentDataProperty:"joinBody",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinLeft!==void 0&&(C(e.joinLeft,{instancePath:t+"/joinLeft",parentData:e,parentDataProperty:"joinLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinRight!==void 0&&(C(e.joinRight,{instancePath:t+"/joinRight",parentData:e,parentDataProperty:"joinRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinJoin!==void 0&&(C(e.joinJoin,{instancePath:t+"/joinJoin",parentData:e,parentDataProperty:"joinJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleUp!==void 0&&(C(e.joinMiddleUp,{instancePath:t+"/joinMiddleUp",parentData:e,parentDataProperty:"joinMiddleUp",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleDown!==void 0&&(C(e.joinMiddleDown,{instancePath:t+"/joinMiddleDown",parentData:e,parentDataProperty:"joinMiddleDown",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleLeft!==void 0&&(C(e.joinMiddleLeft,{instancePath:t+"/joinMiddleLeft",parentData:e,parentDataProperty:"joinMiddleLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleRight!==void 0&&(C(e.joinMiddleRight,{instancePath:t+"/joinMiddleRight",parentData:e,parentDataProperty:"joinMiddleRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length))}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return Cn.errors=n,s===0}var Pf={type:"string",enum:["left","right","center","justify"]},iP=kf().default;function ft(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(typeof e!="string"){let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[a]:n.push(a),s++}if(!(e==="left"||e==="right"||e==="center"||e==="justify")){let a={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Pf.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return ft.errors=n,s===0}var En=new RegExp("^[0-9]+$","u");function Fe(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(typeof e!="string"){let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[a]:n.push(a),s++}if(!(e==="left"||e==="right"||e==="center"||e==="justify")){let a={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Pf.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return Fe.errors=n,s===0}var Ff={type:"string",enum:["top","middle","bottom"]};function Te(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(typeof e!="string"){let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[a]:n.push(a),s++}if(!(e==="top"||e==="middle"||e==="bottom")){let a={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Ff.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return Te.errors=n,s===0}function de(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let a in e)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}if(e.alignment!==void 0&&(Fe(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(n=n===null?Fe.errors:n.concat(Fe.errors),s=n.length)),e.verticalAlignment!==void 0&&(Te(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Te.errors:n.concat(Te.errors),s=n.length)),e.width!==void 0){let a=e.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let l={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[l]:n.push(l),s++}}if(e.wrapWord!==void 0&&typeof e.wrapWord!="boolean"){let a={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[a]:n.push(a),s++}if(e.truncate!==void 0){let a=e.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}if(e.paddingLeft!==void 0){let a=e.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}if(e.paddingRight!==void 0){let a=e.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return de.errors=n,s===0}function _n(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0,a=s,l=!1,c=null,f=s;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let g in e)if(!En.test(g)){let y={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"};n===null?n=[y]:n.push(y),s++}for(let g in e)En.test(g)&&(de(e[g],{instancePath:t+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:g,rootData:i})||(n=n===null?de.errors:n.concat(de.errors),s=n.length))}else{let g={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[g]:n.push(g),s++}var p=f===s;p&&(l=!0,c=0);let d=s;if(Array.isArray(e)){let g=e.length;for(let y=0;y<g;y++)de(e[y],{instancePath:t+"/"+y,parentData:e,parentDataProperty:y,rootData:i})||(n=n===null?de.errors:n.concat(de.errors),s=n.length)}else{let g={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[g]:n.push(g),s++}var p=d===s;if(p&&l?(l=!1,c=[c,1]):p&&(l=!0,c=1),l)s=a,n!==null&&(a?n.length=a:n=null);else{let g={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};n===null?n=[g]:n.push(g),s++}return _n.errors=n,s===0}function vn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let a in e)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}if(e.alignment!==void 0&&(Fe(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(n=n===null?Fe.errors:n.concat(Fe.errors),s=n.length)),e.verticalAlignment!==void 0&&(Te(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Te.errors:n.concat(Te.errors),s=n.length)),e.width!==void 0){let a=e.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let l={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[l]:n.push(l),s++}}if(e.wrapWord!==void 0&&typeof e.wrapWord!="boolean"){let a={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[a]:n.push(a),s++}if(e.truncate!==void 0){let a=e.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}if(e.paddingLeft!==void 0){let a=e.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}if(e.paddingRight!==void 0){let a=e.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return vn.errors=n,s===0}function wn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(typeof e!="string"){let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[a]:n.push(a),s++}if(!(e==="top"||e==="middle"||e==="bottom")){let a={instancePath:t,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Ff.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return wn.errors=n,s===0}function Tf(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let a in e)if(!(a==="border"||a==="header"||a==="columns"||a==="columnDefault"||a==="drawVerticalLine"||a==="drawHorizontalLine"||a==="singleLine"||a==="spanningCells")){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}if(e.border!==void 0&&(Cn(e.border,{instancePath:t+"/border",parentData:e,parentDataProperty:"border",rootData:i})||(n=n===null?Cn.errors:n.concat(Cn.errors),s=n.length)),e.header!==void 0){let a=e.header;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.content===void 0){let l={instancePath:t+"/header",schemaPath:"#/properties/header/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};n===null?n=[l]:n.push(l),s++}for(let l in a)if(!(l==="content"||l==="alignment"||l==="wrapWord"||l==="truncate"||l==="paddingLeft"||l==="paddingRight")){let c={instancePath:t+"/header",schemaPath:"#/properties/header/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};n===null?n=[c]:n.push(c),s++}if(a.content!==void 0&&typeof a.content!="string"){let l={instancePath:t+"/header/content",schemaPath:"#/properties/header/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[l]:n.push(l),s++}if(a.alignment!==void 0&&(ft(a.alignment,{instancePath:t+"/header/alignment",parentData:a,parentDataProperty:"alignment",rootData:i})||(n=n===null?ft.errors:n.concat(ft.errors),s=n.length)),a.wrapWord!==void 0&&typeof a.wrapWord!="boolean"){let l={instancePath:t+"/header/wrapWord",schemaPath:"#/properties/header/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[l]:n.push(l),s++}if(a.truncate!==void 0){let l=a.truncate;if(!(typeof l=="number"&&!(l%1)&&!isNaN(l)&&isFinite(l))){let c={instancePath:t+"/header/truncate",schemaPath:"#/properties/header/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[c]:n.push(c),s++}}if(a.paddingLeft!==void 0){let l=a.paddingLeft;if(!(typeof l=="number"&&!(l%1)&&!isNaN(l)&&isFinite(l))){let c={instancePath:t+"/header/paddingLeft",schemaPath:"#/properties/header/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[c]:n.push(c),s++}}if(a.paddingRight!==void 0){let l=a.paddingRight;if(!(typeof l=="number"&&!(l%1)&&!isNaN(l)&&isFinite(l))){let c={instancePath:t+"/header/paddingRight",schemaPath:"#/properties/header/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[c]:n.push(c),s++}}}else{let l={instancePath:t+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[l]:n.push(l),s++}}if(e.columns!==void 0&&(_n(e.columns,{instancePath:t+"/columns",parentData:e,parentDataProperty:"columns",rootData:i})||(n=n===null?_n.errors:n.concat(_n.errors),s=n.length)),e.columnDefault!==void 0&&(vn(e.columnDefault,{instancePath:t+"/columnDefault",parentData:e,parentDataProperty:"columnDefault",rootData:i})||(n=n===null?vn.errors:n.concat(vn.errors),s=n.length)),e.drawVerticalLine!==void 0&&typeof e.drawVerticalLine!="function"){let a={instancePath:t+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};n===null?n=[a]:n.push(a),s++}if(e.drawHorizontalLine!==void 0&&typeof e.drawHorizontalLine!="function"){let a={instancePath:t+"/drawHorizontalLine",schemaPath:"#/properties/drawHorizontalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};n===null?n=[a]:n.push(a),s++}if(e.singleLine!==void 0&&typeof e.singleLine!="boolean"){let a={instancePath:t+"/singleLine",schemaPath:"#/properties/singleLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};n===null?n=[a]:n.push(a),s++}if(e.spanningCells!==void 0){let a=e.spanningCells;if(Array.isArray(a)){let l=a.length;for(let c=0;c<l;c++){let f=a[c];if(f&&typeof f=="object"&&!Array.isArray(f)){if(f.row===void 0){let d={instancePath:t+"/spanningCells/"+c,schemaPath:"#/properties/spanningCells/items/required",keyword:"required",params:{missingProperty:"row"},message:"must have required property 'row'"};n===null?n=[d]:n.push(d),s++}if(f.col===void 0){let d={instancePath:t+"/spanningCells/"+c,schemaPath:"#/properties/spanningCells/items/required",keyword:"required",params:{missingProperty:"col"},message:"must have required property 'col'"};n===null?n=[d]:n.push(d),s++}for(let d in f)if(!ws.call(Kb.properties.spanningCells.items.properties,d)){let p={instancePath:t+"/spanningCells/"+c,schemaPath:"#/properties/spanningCells/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"};n===null?n=[p]:n.push(p),s++}if(f.col!==void 0){let d=f.col;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/col",schemaPath:"#/properties/spanningCells/items/properties/col/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}if(typeof d=="number"&&isFinite(d)&&(d<0||isNaN(d))){let p={instancePath:t+"/spanningCells/"+c+"/col",schemaPath:"#/properties/spanningCells/items/properties/col/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};n===null?n=[p]:n.push(p),s++}}if(f.row!==void 0){let d=f.row;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}if(typeof d=="number"&&isFinite(d)&&(d<0||isNaN(d))){let p={instancePath:t+"/spanningCells/"+c+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};n===null?n=[p]:n.push(p),s++}}if(f.colSpan!==void 0){let d=f.colSpan;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}if(typeof d=="number"&&isFinite(d)&&(d<1||isNaN(d))){let p={instancePath:t+"/spanningCells/"+c+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[p]:n.push(p),s++}}if(f.rowSpan!==void 0){let d=f.rowSpan;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}if(typeof d=="number"&&isFinite(d)&&(d<1||isNaN(d))){let p={instancePath:t+"/spanningCells/"+c+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[p]:n.push(p),s++}}if(f.alignment!==void 0&&(ft(f.alignment,{instancePath:t+"/spanningCells/"+c+"/alignment",parentData:f,parentDataProperty:"alignment",rootData:i})||(n=n===null?ft.errors:n.concat(ft.errors),s=n.length)),f.verticalAlignment!==void 0&&(wn(f.verticalAlignment,{instancePath:t+"/spanningCells/"+c+"/verticalAlignment",parentData:f,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?wn.errors:n.concat(wn.errors),s=n.length)),f.wrapWord!==void 0&&typeof f.wrapWord!="boolean"){let d={instancePath:t+"/spanningCells/"+c+"/wrapWord",schemaPath:"#/properties/spanningCells/items/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[d]:n.push(d),s++}if(f.truncate!==void 0){let d=f.truncate;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/truncate",schemaPath:"#/properties/spanningCells/items/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}}if(f.paddingLeft!==void 0){let d=f.paddingLeft;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/paddingLeft",schemaPath:"#/properties/spanningCells/items/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}}if(f.paddingRight!==void 0){let d=f.paddingRight;if(!(typeof d=="number"&&!(d%1)&&!isNaN(d)&&isFinite(d))){let p={instancePath:t+"/spanningCells/"+c+"/paddingRight",schemaPath:"#/properties/spanningCells/items/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[p]:n.push(p),s++}}}else{let d={instancePath:t+"/spanningCells/"+c,schemaPath:"#/properties/spanningCells/items/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[d]:n.push(d),s++}}}else{let l={instancePath:t+"/spanningCells",schemaPath:"#/properties/spanningCells/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[l]:n.push(l),s++}}}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return Tf.errors=n,s===0}xs["streamConfig.json"]=Of;function xn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let a in e)if(!ws.call(Af.properties,a)){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}e.topBody!==void 0&&(C(e.topBody,{instancePath:t+"/topBody",parentData:e,parentDataProperty:"topBody",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.topJoin!==void 0&&(C(e.topJoin,{instancePath:t+"/topJoin",parentData:e,parentDataProperty:"topJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.topLeft!==void 0&&(C(e.topLeft,{instancePath:t+"/topLeft",parentData:e,parentDataProperty:"topLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.topRight!==void 0&&(C(e.topRight,{instancePath:t+"/topRight",parentData:e,parentDataProperty:"topRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomBody!==void 0&&(C(e.bottomBody,{instancePath:t+"/bottomBody",parentData:e,parentDataProperty:"bottomBody",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomJoin!==void 0&&(C(e.bottomJoin,{instancePath:t+"/bottomJoin",parentData:e,parentDataProperty:"bottomJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomLeft!==void 0&&(C(e.bottomLeft,{instancePath:t+"/bottomLeft",parentData:e,parentDataProperty:"bottomLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bottomRight!==void 0&&(C(e.bottomRight,{instancePath:t+"/bottomRight",parentData:e,parentDataProperty:"bottomRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bodyLeft!==void 0&&(C(e.bodyLeft,{instancePath:t+"/bodyLeft",parentData:e,parentDataProperty:"bodyLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bodyRight!==void 0&&(C(e.bodyRight,{instancePath:t+"/bodyRight",parentData:e,parentDataProperty:"bodyRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.bodyJoin!==void 0&&(C(e.bodyJoin,{instancePath:t+"/bodyJoin",parentData:e,parentDataProperty:"bodyJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.headerJoin!==void 0&&(C(e.headerJoin,{instancePath:t+"/headerJoin",parentData:e,parentDataProperty:"headerJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinBody!==void 0&&(C(e.joinBody,{instancePath:t+"/joinBody",parentData:e,parentDataProperty:"joinBody",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinLeft!==void 0&&(C(e.joinLeft,{instancePath:t+"/joinLeft",parentData:e,parentDataProperty:"joinLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinRight!==void 0&&(C(e.joinRight,{instancePath:t+"/joinRight",parentData:e,parentDataProperty:"joinRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinJoin!==void 0&&(C(e.joinJoin,{instancePath:t+"/joinJoin",parentData:e,parentDataProperty:"joinJoin",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleUp!==void 0&&(C(e.joinMiddleUp,{instancePath:t+"/joinMiddleUp",parentData:e,parentDataProperty:"joinMiddleUp",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleDown!==void 0&&(C(e.joinMiddleDown,{instancePath:t+"/joinMiddleDown",parentData:e,parentDataProperty:"joinMiddleDown",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleLeft!==void 0&&(C(e.joinMiddleLeft,{instancePath:t+"/joinMiddleLeft",parentData:e,parentDataProperty:"joinMiddleLeft",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length)),e.joinMiddleRight!==void 0&&(C(e.joinMiddleRight,{instancePath:t+"/joinMiddleRight",parentData:e,parentDataProperty:"joinMiddleRight",rootData:i})||(n=n===null?C.errors:n.concat(C.errors),s=n.length))}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return xn.errors=n,s===0}function Sn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0,a=s,l=!1,c=null,f=s;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let g in e)if(!En.test(g)){let y={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"};n===null?n=[y]:n.push(y),s++}for(let g in e)En.test(g)&&(de(e[g],{instancePath:t+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:g,rootData:i})||(n=n===null?de.errors:n.concat(de.errors),s=n.length))}else{let g={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[g]:n.push(g),s++}var p=f===s;p&&(l=!0,c=0);let d=s;if(Array.isArray(e)){let g=e.length;for(let y=0;y<g;y++)de(e[y],{instancePath:t+"/"+y,parentData:e,parentDataProperty:y,rootData:i})||(n=n===null?de.errors:n.concat(de.errors),s=n.length)}else{let g={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[g]:n.push(g),s++}var p=d===s;if(p&&l?(l=!1,c=[c,1]):p&&(l=!0,c=1),l)s=a,n!==null&&(a?n.length=a:n=null);else{let g={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};n===null?n=[g]:n.push(g),s++}return Sn.errors=n,s===0}function Rn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let a in e)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}if(e.alignment!==void 0&&(Fe(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(n=n===null?Fe.errors:n.concat(Fe.errors),s=n.length)),e.verticalAlignment!==void 0&&(Te(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Te.errors:n.concat(Te.errors),s=n.length)),e.width!==void 0){let a=e.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let l={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[l]:n.push(l),s++}}if(e.wrapWord!==void 0&&typeof e.wrapWord!="boolean"){let a={instancePath:t+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[a]:n.push(a),s++}if(e.truncate!==void 0){let a=e.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}if(e.paddingLeft!==void 0){let a=e.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}if(e.paddingRight!==void 0){let a=e.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}}}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return Rn.errors=n,s===0}function Of(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0;if(e&&typeof e=="object"&&!Array.isArray(e)){if(e.columnDefault===void 0){let a={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnDefault"},message:"must have required property 'columnDefault'"};n===null?n=[a]:n.push(a),s++}if(e.columnCount===void 0){let a={instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnCount"},message:"must have required property 'columnCount'"};n===null?n=[a]:n.push(a),s++}for(let a in e)if(!(a==="border"||a==="columns"||a==="columnDefault"||a==="columnCount"||a==="drawVerticalLine")){let l={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[l]:n.push(l),s++}if(e.border!==void 0&&(xn(e.border,{instancePath:t+"/border",parentData:e,parentDataProperty:"border",rootData:i})||(n=n===null?xn.errors:n.concat(xn.errors),s=n.length)),e.columns!==void 0&&(Sn(e.columns,{instancePath:t+"/columns",parentData:e,parentDataProperty:"columns",rootData:i})||(n=n===null?Sn.errors:n.concat(Sn.errors),s=n.length)),e.columnDefault!==void 0&&(Rn(e.columnDefault,{instancePath:t+"/columnDefault",parentData:e,parentDataProperty:"columnDefault",rootData:i})||(n=n===null?Rn.errors:n.concat(Rn.errors),s=n.length)),e.columnCount!==void 0){let a=e.columnCount;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let l={instancePath:t+"/columnCount",schemaPath:"#/properties/columnCount/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[l]:n.push(l),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let l={instancePath:t+"/columnCount",schemaPath:"#/properties/columnCount/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[l]:n.push(l),s++}}if(e.drawVerticalLine!==void 0&&typeof e.drawVerticalLine!="function"){let a={instancePath:t+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};n===null?n=[a]:n.push(a),s++}}else{let a={instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[a]:n.push(a),s++}return Of.errors=n,s===0}});var Ss=b(Ht=>{"use strict";u();var Yb=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.validateConfig=void 0;var Xb=Yb($f()),Qb=(e,t)=>{let r=Xb.default[e];if(!r(t)&&r.errors){let o=r.errors.map(i=>({message:i.message,params:i.params,schemaPath:i.schemaPath}));throw console.log("config",t),console.log("errors",o),new Error("Invalid config.")}};Ht.validateConfig=Qb});var Lf=b(kn=>{"use strict";u();Object.defineProperty(kn,"__esModule",{value:!0});kn.makeStreamConfig=void 0;var Zb=te(),eC=Ss(),tC=(e,t={},r)=>Array.from({length:e}).map((o,i)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",wrapWord:!1,...r,...t[i]})),rC=e=>{if((0,eC.validateConfig)("streamConfig.json",e),e.columnDefault.width===void 0)throw new Error("Must provide config.columnDefault.width when creating a stream.");return{drawVerticalLine:()=>!0,...e,border:(0,Zb.makeBorderConfig)(e.border),columns:tC(e.columnCount,e.columns,e.columnDefault)}};kn.makeStreamConfig=rC});var Pn=b(pt=>{"use strict";u();Object.defineProperty(pt,"__esModule",{value:!0});pt.mapDataUsingRowHeights=pt.padCellVertically=void 0;var nC=te(),oC=mn(),An=e=>new Array(e).fill(""),iC=(e,t,r)=>{let o=t-e.length;return r==="top"?[...e,...An(o)]:r==="bottom"?[...An(o),...e]:[...An(Math.floor(o/2)),...e,...An(Math.ceil(o/2))]};pt.padCellVertically=iC;var sC=(e,t,r)=>{let o=e[0].length,i=e.map((n,s)=>{let a=t[s],l=Array.from({length:a},()=>new Array(o).fill(""));return n.forEach((c,f)=>{var d;let p=(d=r.spanningCellManager)===null||d===void 0?void 0:d.getContainingRange({col:f,row:s});if(p){p.extractCellContent(s).forEach((D,S)=>{l[S][f]=D});return}let g=(0,oC.wrapCell)(c,r.columns[f].width,r.columns[f].wrapWord);(0,pt.padCellVertically)(g,a,r.columns[f].verticalAlignment).forEach((D,S)=>{l[S][f]=D})}),l});return(0,nC.flatten)(i)};pt.mapDataUsingRowHeights=sC});var Fn=b(dt=>{"use strict";u();Object.defineProperty(dt,"__esModule",{value:!0});dt.padTableData=dt.padString=void 0;var aC=(e,t,r)=>" ".repeat(t)+e+" ".repeat(r);dt.padString=aC;var lC=(e,t)=>e.map((r,o)=>r.map((i,n)=>{var s;if((s=t.spanningCellManager)===null||s===void 0?void 0:s.getContainingRange({col:n,row:o},{mapped:!0}))return i;let{paddingLeft:l,paddingRight:c}=t.columns[n];return(0,dt.padString)(i,l,c)}));dt.padTableData=lC});var Rs=b(Tn=>{"use strict";u();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.stringifyTableData=void 0;var uC=te(),cC=e=>e.map(t=>t.map(r=>(0,uC.normalizeString)(String(r))));Tn.stringifyTableData=cC});var op=b((ir,qt)=>{"use strict";u();var fC=30,pC="...",Es=1/0,dC=17976931348623157e292,Mf=NaN,mC="[object RegExp]",hC="[object Symbol]",gC=/^\s+|\s+$/g,yC=/\w*$/,DC=/^[-+]0x[0-9a-f]+$/i,bC=/^0b[01]+$/i,CC=/^0o[0-7]+$/i,Ts="\\ud800-\\udfff",Wf="\\u0300-\\u036f\\ufe20-\\ufe23",Uf="\\u20d0-\\u20f0",zf="\\ufe0e\\ufe0f",_C="["+Ts+"]",ks="["+Wf+Uf+"]",As="\\ud83c[\\udffb-\\udfff]",vC="(?:"+ks+"|"+As+")",Jf="[^"+Ts+"]",Kf="(?:\\ud83c[\\udde6-\\uddff]){2}",Yf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xf="\\u200d",Qf=vC+"?",Zf="["+zf+"]?",wC="(?:"+Xf+"(?:"+[Jf,Kf,Yf].join("|")+")"+Zf+Qf+")*",xC=Zf+Qf+wC,SC="(?:"+[Jf+ks+"?",ks,Kf,Yf,_C].join("|")+")",Ps=RegExp(As+"(?="+As+")|"+SC+xC,"g"),RC=RegExp("["+Xf+Ts+Wf+Uf+zf+"]"),EC=parseInt,ep=typeof global=="object"&&global&&global.Object===Object&&global,kC=typeof self=="object"&&self&&self.Object===Object&&self,AC=ep||kC||Function("return this")(),tp=typeof ir=="object"&&ir&&!ir.nodeType&&ir,Bf=tp&&typeof qt=="object"&&qt&&!qt.nodeType&&qt,PC=Bf&&Bf.exports===tp,jf=PC&&ep.process,Nf=function(){try{return jf&&jf.binding("util")}catch{}}(),If=Nf&&Nf.isRegExp,FC=OC("length");function TC(e){return e.split("")}function OC(e){return function(t){return t?.[e]}}function $C(e){return function(t){return e(t)}}function Os(e){return RC.test(e)}function LC(e){return Os(e)?BC(e):FC(e)}function MC(e){return Os(e)?jC(e):TC(e)}function BC(e){for(var t=Ps.lastIndex=0;Ps.test(e);)t++;return t}function jC(e){return e.match(Ps)||[]}var NC=Object.prototype,rp=NC.toString,Vf=AC.Symbol,Hf=Vf?Vf.prototype:void 0,qf=Hf?Hf.toString:void 0;function IC(e){return On(e)&&rp.call(e)==mC}function VC(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(i);++o<i;)n[o]=e[o+t];return n}function Fs(e){if(typeof e=="string")return e;if(np(e))return qf?qf.call(e):"";var t=e+"";return t=="0"&&1/e==-Es?"-0":t}function HC(e,t,r){var o=e.length;return r=r===void 0?o:r,!t&&r>=o?e:VC(e,t,r)}function On(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function qC(e){return!!e&&typeof e=="object"}var GC=If?$C(If):IC;function np(e){return typeof e=="symbol"||qC(e)&&rp.call(e)==hC}function WC(e){if(!e)return e===0?e:0;if(e=zC(e),e===Es||e===-Es){var t=e<0?-1:1;return t*dC}return e===e?e:0}function UC(e){var t=WC(e),r=t%1;return t===t?r?t-r:t:0}function zC(e){if(typeof e=="number")return e;if(np(e))return Mf;if(On(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=On(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(gC,"");var r=bC.test(e);return r||CC.test(e)?EC(e.slice(2),r?2:8):DC.test(e)?Mf:+e}function Gf(e){return e==null?"":Fs(e)}function JC(e,t){var r=fC,o=pC;if(On(t)){var i="separator"in t?t.separator:i;r="length"in t?UC(t.length):r,o="omission"in t?Fs(t.omission):o}e=Gf(e);var n=e.length;if(Os(e)){var s=MC(e);n=s.length}if(r>=n)return e;var a=r-LC(o);if(a<1)return o;var l=s?HC(s,0,a).join(""):e.slice(0,a);if(i===void 0)return l+o;if(s&&(a+=l.length-a),GC(i)){if(e.slice(a).search(i)){var c,f=l;for(i.global||(i=RegExp(i.source,Gf(yC.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;l=l.slice(0,d===void 0?a:d)}}else if(e.indexOf(Fs(i),a)!=a){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+o}qt.exports=JC});var $n=b(je=>{"use strict";u();var KC=je&&je.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(je,"__esModule",{value:!0});je.truncateTableData=je.truncateString=void 0;var YC=KC(op()),XC=(e,t)=>(0,YC.default)(e,{length:t,omission:"\u2026"});je.truncateString=XC;var QC=(e,t)=>e.map(r=>r.map((o,i)=>(0,je.truncateString)(o,t[i])));je.truncateTableData=QC});var ap=b(Mn=>{"use strict";u();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.createStream=void 0;var ZC=Ds(),e_=bs(),Ln=Cs(),ip=_s(),t_=Lf(),r_=Pn(),n_=Fn(),o_=Rs(),i_=$n(),s_=te(),sp=(e,t)=>{let r=(0,o_.stringifyTableData)(e);r=(0,i_.truncateTableData)(r,(0,s_.extractTruncates)(t));let o=(0,e_.calculateRowHeights)(r,t);return r=(0,r_.mapDataUsingRowHeights)(r,o,t),r=(0,ZC.alignTableData)(r,t),r=(0,n_.padTableData)(r,t),r},a_=(e,t,r)=>{let i=sp([e],r).map(s=>(0,ip.drawRow)(s,r)).join(""),n;n="",n+=(0,Ln.drawBorderTop)(t,r),n+=i,n+=(0,Ln.drawBorderBottom)(t,r),n=n.trimEnd(),process.stdout.write(n)},l_=(e,t,r)=>{let i=sp([e],r).map(a=>(0,ip.drawRow)(a,r)).join(""),n="",s=(0,Ln.drawBorderBottom)(t,r);s!==`
9
9
  `&&(n="\r\x1B[K"),n+=(0,Ln.drawBorderJoin)(t,r),n+=i,n+=s,n=n.trimEnd(),process.stdout.write(n)},u_=e=>{let t=(0,t_.makeStreamConfig)(e),r=Object.values(t.columns).map(i=>i.width+i.paddingLeft+i.paddingRight),o=!0;return{write:i=>{if(i.length!==t.columnCount)throw new Error("Row cell count does not match the config.columnCount.");o?(o=!1,a_(i,r,t)):l_(i,r,t)}}};Mn.createStream=u_});var lp=b(Bn=>{"use strict";u();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.calculateOutputColumnWidths=void 0;var c_=e=>e.columns.map(t=>t.paddingLeft+t.width+t.paddingRight);Bn.calculateOutputColumnWidths=c_});var up=b(jn=>{"use strict";u();Object.defineProperty(jn,"__esModule",{value:!0});jn.drawTable=void 0;var f_=Cs(),p_=Dn(),d_=_s(),m_=te(),h_=(e,t,r,o)=>{let{drawHorizontalLine:i,singleLine:n}=o,s=(0,m_.groupBySizes)(e,r).map((a,l)=>a.map(c=>(0,d_.drawRow)(c,{...o,rowIndex:l})).join(""));return(0,p_.drawContent)({contents:s,drawSeparator:(a,l)=>(a===0||a===l||!n)&&i(a,l),elementType:"row",rowIndex:-1,separatorGetter:(0,f_.createTableBorderGetter)(t,{...o,rowCount:s.length}),spanningCellManager:o.spanningCellManager})};jn.drawTable=h_});var cp=b(Nn=>{"use strict";u();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.injectHeaderConfig=void 0;var g_=(e,t)=>{var r;let o=(r=t.spanningCells)!==null&&r!==void 0?r:[],i=t.header,n=[...e];if(i){o=o.map(({row:l,...c})=>({...c,row:l+1}));let{content:s,...a}=i;o.unshift({alignment:"center",col:0,colSpan:e[0].length,paddingLeft:1,paddingRight:1,row:0,wrapWord:!1,...a}),n.unshift([s,...Array.from({length:e[0].length-1}).fill("")])}return[n,o]};Nn.injectHeaderConfig=g_});var pp=b(Ne=>{"use strict";u();var y_=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.calculateMaximumColumnWidths=Ne.calculateMaximumCellWidth=void 0;var D_=y_(Lt()),fp=te(),b_=e=>Math.max(...e.split(`
10
- `).map(D_.default));Ne.calculateMaximumCellWidth=b_;var C_=(e,t=[])=>{let r=new Array(e[0].length).fill(0),o=t.map(fp.calculateRangeCoordinate),i=(n,s)=>o.some(a=>(0,fp.isCellInRange)({col:s,row:n},a));return e.forEach((n,s)=>{n.forEach((a,l)=>{i(s,l)||(r[l]=Math.max(r[l],(0,Ne.calculateMaximumCellWidth)(a)))})}),r};Ne.calculateMaximumColumnWidths=C_});var mp=b(rt=>{"use strict";u();var __=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0});rt.alignVerticalRangeContent=rt.wrapRangeContent=void 0;var v_=__(Lt()),w_=ys(),x_=Pn(),S_=Fn(),R_=$n(),dp=te(),E_=mn(),k_=(e,t,r)=>{let{topLeft:o,paddingRight:i,paddingLeft:n,truncate:s,wrapWord:a,alignment:l}=e,c=r.rows[o.row][o.col],f=t-n-i;return(0,E_.wrapCell)((0,R_.truncateString)(c,s),f,a).map(d=>{let p=(0,w_.alignString)(d,f,l);return(0,S_.padString)(p,n,i)})};rt.wrapRangeContent=k_;var A_=(e,t,r)=>{let{rows:o,drawHorizontalLine:i,rowHeights:n}=r,{topLeft:s,bottomRight:a,verticalAlignment:l}=e;if(n.length===0)return[];let c=(0,dp.sumArray)(n.slice(s.row,a.row+1)),f=a.row-s.row,d=(0,dp.sequence)(s.row+1,a.row).filter(g=>!i(g,o.length)).length,p=c+f-d;return(0,x_.padCellVertically)(t,p,l).map(g=>g.length===0?" ".repeat((0,v_.default)(t[0])):g)};rt.alignVerticalRangeContent=A_});var hp=b(In=>{"use strict";u();Object.defineProperty(In,"__esModule",{value:!0});In.calculateSpanningCellWidth=void 0;var $s=te(),P_=(e,t)=>{let{columnsConfig:r,drawVerticalLine:o}=t,{topLeft:i,bottomRight:n}=e,s=(0,$s.sumArray)(r.slice(i.col,n.col+1).map(({width:f})=>f)),a=i.col===n.col?r[i.col].paddingRight+r[n.col].paddingLeft:(0,$s.sumArray)(r.slice(i.col,n.col+1).map(({paddingLeft:f,paddingRight:d})=>f+d)),l=n.col-i.col,c=(0,$s.sequence)(i.col+1,n.col).filter(f=>!o(f,r.length)).length;return s+a+l-c};In.calculateSpanningCellWidth=P_});var gp=b(Vn=>{"use strict";u();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.makeRangeConfig=void 0;var F_=te(),T_=(e,t)=>{var r;let{topLeft:o,bottomRight:i}=(0,F_.calculateRangeCoordinate)(e);return{...{...t[o.col],...e,paddingRight:(r=e.paddingRight)!==null&&r!==void 0?r:t[i.col].paddingRight},bottomRight:i,topLeft:o}};Vn.makeRangeConfig=T_});var bp=b(Hn=>{"use strict";u();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.createSpanningCellManager=void 0;var yp=mp(),O_=hp(),$_=gp(),Gt=te(),Ls=(e,t)=>t.find(r=>(0,Gt.isCellInRange)(e,r)),Dp=(e,t)=>{let r=(0,O_.calculateSpanningCellWidth)(e,t),o=(0,yp.wrapRangeContent)(e,r,t),i=(0,yp.alignVerticalRangeContent)(e,o,t);return{...e,extractBorderContent:a=>{let{topLeft:l}=e,c=(0,Gt.sumArray)(t.rowHeights.slice(l.row,a))+(a-l.row-1);return i[c]},extractCellContent:a=>{let{topLeft:l}=e,{drawHorizontalLine:c,rowHeights:f}=t,d=a-l.row,p=(0,Gt.sequence)(l.row+1,a).filter(y=>!c?.(y,f.length)).length,g=(0,Gt.sumArray)(f.slice(l.row,a))+d-p;return i.slice(g,g+f[a])},height:o.length,width:r}},L_=(e,t,r)=>{let o=Ls(e,r),i=Ls(t,r);return o&&i?(0,Gt.areCellEqual)(o.topLeft,i.topLeft):!1},M_=e=>{let{row:t,col:r}=e.topLeft;return`${t}/${r}`},B_=e=>{let{spanningCellConfigs:t,columnsConfig:r}=e,o=t.map(a=>(0,$_.makeRangeConfig)(a,r)),i={},n=[],s=[];return{getContainingRange:(a,l)=>{var c;let f=l?.mapped?s[a.row]:a.row,d=Ls({...a,row:f},o);if(!d)return;if(n.length===0)return Dp(d,{...e,rowHeights:n});let p=M_(d);return(c=i[p])!==null&&c!==void 0||(i[p]=Dp(d,{...e,rowHeights:n})),i[p]},inSameRange:(a,l)=>L_(a,l,o),rowHeights:n,rowIndexMapping:s,setRowHeights:a=>{n=a},setRowIndexMapping:a=>{s=(0,Gt.flatten)(a.map((l,c)=>Array.from({length:l},()=>c)))}}};Hn.createSpanningCellManager=B_});var Cp=b(Gn=>{"use strict";u();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.validateSpanningCellConfig=void 0;var Ms=te(),qn=(e,t,r)=>e<=r&&r<=t,j_=(e,t)=>{let[r,o]=[e.length,e[0].length];t.forEach((s,a)=>{let{colSpan:l,rowSpan:c}=s;if(l===void 0&&c===void 0)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${a}]`);if(l!==void 0&&l<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${l} in config.spanningCells[${a}]`);if(c!==void 0&&c<1)throw new Error(`Expect rowSpan is not equal zero, instead got: ${c} in config.spanningCells[${a}]`)});let i=t.map(Ms.calculateRangeCoordinate);i.forEach(({topLeft:s,bottomRight:a},l)=>{if(!qn(0,o-1,s.col)||!qn(0,r-1,s.row)||!qn(0,o-1,a.col)||!qn(0,r-1,a.row))throw new Error(`Some cells in config.spanningCells[${l}] are out of the table`)});let n=Array.from({length:r},()=>Array.from({length:o}));i.forEach(({topLeft:s,bottomRight:a},l)=>{(0,Ms.sequence)(s.row,a.row).forEach(c=>{(0,Ms.sequence)(s.col,a.col).forEach(f=>{if(n[c][f]!==void 0)throw new Error(`Spanning cells in config.spanningCells[${n[c][f]}] and config.spanningCells[${l}] are overlap each other`);n[c][f]=l})})})};Gn.validateSpanningCellConfig=j_});var _p=b(Wn=>{"use strict";u();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.makeTableConfig=void 0;var N_=pp(),I_=bp(),V_=te(),H_=Ss(),q_=Cp(),G_=(e,t,r,o)=>{let i=(0,N_.calculateMaximumColumnWidths)(e,o);return e[0].map((n,s)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",width:i[s],wrapWord:!1,...r,...t?.[s]}))},W_=(e,t={},r)=>{var o,i,n,s,a;(0,H_.validateConfig)("config.json",t),(0,q_.validateSpanningCellConfig)(e,(o=t.spanningCells)!==null&&o!==void 0?o:[]);let l=(i=r??t.spanningCells)!==null&&i!==void 0?i:[],c=G_(e,t.columns,t.columnDefault,l),f=(n=t.drawVerticalLine)!==null&&n!==void 0?n:()=>!0,d=(s=t.drawHorizontalLine)!==null&&s!==void 0?s:()=>!0;return{...t,border:(0,V_.makeBorderConfig)(t.border),columns:c,drawHorizontalLine:d,drawVerticalLine:f,singleLine:(a=t.singleLine)!==null&&a!==void 0?a:!1,spanningCellManager:(0,I_.createSpanningCellManager)({columnsConfig:c,drawHorizontalLine:d,drawVerticalLine:f,rows:e,spanningCellConfigs:l})}};Wn.makeTableConfig=W_});var vp=b(Un=>{"use strict";u();Object.defineProperty(Un,"__esModule",{value:!0});Un.validateTableData=void 0;var U_=te(),z_=e=>{if(!Array.isArray(e))throw new TypeError("Table data must be an array.");if(e.length===0)throw new Error("Table must define at least one row.");if(e[0].length===0)throw new Error("Table must define at least one column.");let t=e[0].length;for(let r of e){if(!Array.isArray(r))throw new TypeError("Table row data must be an array.");if(r.length!==t)throw new Error("Table must have a consistent number of cells.");for(let o of r)if(/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0,U_.normalizeString)(String(o))))throw new Error("Table data must not contain control characters.")}};Un.validateTableData=z_});var wp=b(zn=>{"use strict";u();Object.defineProperty(zn,"__esModule",{value:!0});zn.table=void 0;var J_=Ds(),K_=lp(),Y_=bs(),X_=up(),Q_=cp(),Z_=_p(),ev=Pn(),tv=Fn(),rv=Rs(),nv=$n(),ov=te(),iv=vp(),sv=(e,t={})=>{(0,iv.validateTableData)(e);let r=(0,rv.stringifyTableData)(e),[o,i]=(0,Q_.injectHeaderConfig)(r,t),n=(0,Z_.makeTableConfig)(o,t,i);r=(0,nv.truncateTableData)(o,(0,ov.extractTruncates)(n));let s=(0,Y_.calculateRowHeights)(r,n);n.spanningCellManager.setRowHeights(s),n.spanningCellManager.setRowIndexMapping(s),r=(0,ev.mapDataUsingRowHeights)(r,s,n),r=(0,J_.alignTableData)(r,n),r=(0,tv.padTableData)(r,n);let a=(0,K_.calculateOutputColumnWidths)(n);return(0,X_.drawTable)(r,a,s,n)};zn.table=sv});var Sp=b(xp=>{"use strict";u();Object.defineProperty(xp,"__esModule",{value:!0})});var Rp=b(me=>{"use strict";u();var av=me&&me.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),lv=me&&me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&av(t,e,r)};Object.defineProperty(me,"__esModule",{value:!0});me.getBorderCharacters=me.createStream=me.table=void 0;var uv=ap();Object.defineProperty(me,"createStream",{enumerable:!0,get:function(){return uv.createStream}});var cv=ms();Object.defineProperty(me,"getBorderCharacters",{enumerable:!0,get:function(){return cv.getBorderCharacters}});var fv=wp();Object.defineProperty(me,"table",{enumerable:!0,get:function(){return fv.table}});lv(Sp(),me)});u();import Fx from"node:process";import Tx from"yargs";import{hideBin as Ox}from"yargs/helpers";var bt="0.22.10";u();var Ic=ee(Ur(),1),tt=ee(ae(),1);import Ot from"node:path";import $t from"consola";import et from"fs-extra";import T0 from"gray-matter";u();function lc(e,t){t.forEach(r=>{r.setup?.(e)})}u();function Ke(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}u();var Mc=ee(Ur(),1),Qe=ee(ae(),1);import{dirname as w0}from"node:path";import Oc from"node:process";import{ensureSuffix as $c,uniq as x0}from"@antfu/utils";import Lc from"consola";import S0 from"debug";import Bc from"fs-extra";import{resolve as nr}from"pathe";u();import jD from"node:path";var ND=new Map,ID=new Map;function VD(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var HD=/\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/;function qD(e,t){if(e.includes("node_modules")&&!HD.test(e)&&Qi(e,t,ND))return!0}function Qi(e,t,r,o=null,i=[]){if(r.has(e))return!!r.get(e);if(i.includes(e))return r.set(e,!1),!1;let n=t(e);if(!n)return r.set(e,!1),!1;if(o?o.test(e):n.isEntry)return r.set(e,!0),!0;let s=n.importers.some(a=>Qi(a,t,r,o,i.concat(e)));return r.set(e,s),s}function uc(e){let t=["/@siteData","node_modules/@vueuse/core/","node_modules/@vueuse/shared/","node_modules/vue/","node_modules/vue-demi/",e.clientRoot],r=new RegExp(`^${VD(jD.resolve(e.themeRoot,"index.ts").replace(/\\/g,"/"))}`),o="assets";return{...e.config.vite?.build?.rollupOptions,external:[],preserveEntrySignatures:"allow-extension",output:{assetFileNames:`${o}/[name].[hash].[ext]`,entryFileNames:`${o}/[name].[hash].js`,chunkFileNames(){return`${o}/[name].[hash].js`},manualChunks(n,s){if(n.startsWith("\0vite")||n.includes("plugin-vue:export-helper"))return"framework";let a=["@vueuse/motion","dayjs","vue-i18n","vue-router","nprogress","pinia"];for(let l of a)if(n.includes(l))return`chunks/${l}`;if(qD(n,s.getModuleInfo)&&/@vue\/(runtime|shared|reactivity)/.test(n))return"framework";if((n.startsWith(e.themeRoot)||!t.some(l=>n.includes(l)))&&Qi(n,s.getModuleInfo,ID,r))return"theme"}}}}u();u();import o0 from"node:path";import i0 from"fs-extra";u();var At=ee(ae(),1);import ZD from"node:process";import{isFunction as pc}from"@antfu/utils";import e0 from"consola";import{createDefu as t0}from"defu";import{mergeConfig as r0}from"vite";u();import PE from"consola";function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}u();var kt=ee(ae(),1);import{webcrypto as fc}from"node:crypto";import YD from"consola";import{options as XD}from"floating-vue";u();import GD from"node:process";import cc from"consola";import WD from"fs-extra";import{createJiti as UD}from"jiti";import{resolve as zD}from"pathe";var JD=UD(import.meta.url,{moduleCache:!1});async function KD(e){let{name:t,cwd:r}=e,o=zD(r,`${t}.config.ts`),i={};if(await WD.exists(o))try{i=await JD.import(o,{default:!0})}catch(n){console.error(n),cc.error(`Failed to load config file: ${o}`)}else cc.debug(`Config file not found: ${o}`);return{config:i,configFile:o}}async function Et(e,t={}){let{config:r,configFile:o}=await KD({name:e,cwd:t.cwd||GD.cwd()}),i=r;return typeof r=="function"&&(i=await r(t.valaxyOptions||{})),{config:i,configFile:o}}var Kr={mode:"auto",url:"/",lang:"en",languages:["en","zh-CN"],timezone:"",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://valaxy.site/valaxy-logo.png",email:"i@valaxy.site",link:"https://valaxy.site",name:"VALAXY Developer",status:{emoji:"\u{1F30C}",message:"The moonlight is beautiful."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,description:"\u8FD9\u662F\u5173\u4E8E\u8D5E\u52A9\u7684\u4E00\u4E9B\u63CF\u8FF0",methods:[]},search:{enable:!1,type:"fuse"},fuse:{dataPath:"valaxy-fuse-list.json",options:{keys:[]}},comment:{enable:!1},frontmatter:{time_warning:180*24*60*60*1e3},cdn:{prefix:"https://unpkg.com/"},mediumZoom:{enable:!1,selector:"",options:{}},vanillaLazyload:{enable:!1,options:{}},floatingVue:XD,statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:fc.getRandomValues(new Uint8Array(16)),iv:fc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function WE(e){return e}async function QD(e){return Et("site",{cwd:e})}async function Yr(e){let t=Ye(),{config:r,configFile:o}=await QD(e),i=t();return r&&o&&YD.success(`Resolve ${(0,kt.cyan)("siteConfig")} from ${(0,kt.dim)(o)} ${(0,kt.yellow)(i)}`),{siteConfig:r,siteConfigFile:o}}var Zi={siteConfig:Kr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},build:{ssgForPagination:!1},deploy:{},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0,fullText:!1}},features:{katex:!0},vite:{build:{emptyOutDir:!0}},devtools:!0};function n0(e){return e}var rk=n0;async function Qt(e,t){return await Et("valaxy",{cwd:e,valaxyOptions:t})}var ct=t0((e,t,r)=>{if(pc(e[t])&&pc(r)&&(e[t]=function(...o){e[t].call(this,...o),r.call(this,...o)}),t==="vite")return e[t]=r0(e[t],r),!0});async function dc(e){let t=e.userRoot||ZD.cwd(),r=Ye(),{config:o,configFile:i}=await Qt(t),n=r();i&&o&&Object.keys(o).length!==0&&e0.success(`Resolve ${(0,At.cyan)("userValaxyConfig")} from ${(0,At.dim)(i)} ${(0,At.yellow)(n)}`);let s=e.theme||o?.theme||"yun";return{config:o,configFile:i,theme:s}}function s0(e){return e}var lk=s0;async function mc(e,t){let r={};for(let o of e){let i=o0.resolve(o.root,"valaxy.config.ts");if(!await i0.exists(i))continue;let{config:n,configFile:s}=await Qt(o.root,t);n&&(o.configFile=s,r=ct(n,r))}return r}u();var Qr=ee(ae(),1);import u0 from"defu";u();var gc=ee(ae(),1);import a0 from"consola";import{colors as hc}from"consola/utils";import l0 from"ora";var Ae=a0.create({}),Xe=hc.magenta("[valaxy]"),Zt={success:(...e)=>Ae.success(Xe,...e),info:(...e)=>Ae.info(Xe,...e),ready:(...e)=>Ae.ready(Xe,...e)};async function er(e,t){let r=`${hc.cyan("[HOOK]")} ${(0,gc.magenta)(e)}`,o=l0(`${r} calling...`).start();await t.hooks.callHook(e),o.succeed(`${r} done.`)}async function Xr(e){return Et("theme",{cwd:e})}async function yc(e){let{config:t,configFile:r}=await Xr(e.userRoot);if(t&&r&&Ae.info(`Resolve ${(0,Qr.cyan)("themeConfig")} from ${(0,Qr.dim)(r)}`),e?.themeRoot){let{config:o}=await Xr(e.themeRoot);t=u0(t||{},o)}return{themeConfig:t,themeConfigFile:r}}function c0(e){return e}var bk=c0;function vk(e){return e}u();import{createDefu as f0}from"defu";var tr=f0((e,t,r)=>{if(t&&e[t]&&Array.isArray(e[t])&&Array.isArray(r))return e[t]=r,!0});u();u();import{spawn as p0}from"cross-spawn";function rr(e,t="updated"){return new Promise((r,o)=>{let i=["log"];t==="updated"&&i.push("-1"),i.push('--pretty="%ci"',e),t==="created"&&i.push("|","tail","-1");let n=p0("git",i),s="";n.stdout.on("data",a=>s+=String(a)),n.on("close",()=>{r(+new Date(s))}),n.on("error",()=>{r(0)})})}u();u();var Dc="<!-- more -->",Pt=/^https?:/i,bc=/^pathname:\/\//,Mk="/:all(.*)*",Cc=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"]),Ft={css:{preprocessorOptions:{scss:{api:"modern-compiler"}}}};function _c(e){return Pt.test(e)}function vc(e){return e.startsWith("/")||/^\.\.?[/\\]/.test(e)}function es(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}u();import{ensurePrefix as d0,slash as m0}from"@antfu/utils";import wc from"consola";import{resolvePath as h0}from"mlly";import{resolveGlobal as g0}from"resolve-global";var ts={};async function rs(e){return q(await Be(e,!0))}function q(e){return`/@fs${d0("/",m0(e))}`}async function Be(e,t=!1){try{return await h0(e,{url:import.meta.url})}catch(r){wc.log(r)}if(ts.value)try{return g0(e)}catch{}if(t)throw new Error(`Failed to resolve package ${e}`);wc.warn(`Failed to resolve package ${e}`)}u();var Pe=ee(ae(),1);import Ac from"node:process";import Rc from"defu";import Ec from"fs-extra";import D0 from"ora";import{resolve as b0}from"pathe";u();import{dirname as xc}from"node:path";import y0 from"fs-extra";import{resolve as Sc}from"pathe";async function Zr(e,t){if(!e)return"";if(vc(e))if(t){let r=y0.lstatSync(t).isFile();return Sc(r?xc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Sc(xc(await Be(`${e}/package.json`)||""))}async function Pc(e,t=Ac.cwd()){let r=D0(`Resolve ${(0,Pe.cyan)("addons")} from ${(0,Pe.dim)(t)}`).start(),o={},i=s=>{s&&(o[s.name]=Rc(o[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){i(await kc(s,{cwd:t}));continue}typeof s=="object"&&i(Rc(await kc(s.name,{cwd:t}),s||{}))}r.succeed();let n=Object.values(o).filter(s=>s.enable);return n.forEach((s,a)=>{console.log(` ${a===n.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Pe.yellow)(s.name)} ${(0,Pe.blue)(`v${s.pkg?.version}`)}${s.global?(0,Pe.cyan)(" (global)"):""} ${(0,Pe.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository||"")}`)}),n}async function kc(e,t={}){let r=await C0(e,t.cwd||Ac.cwd()),o=b0(r,"./package.json");if(!await Ec.exists(o)){Ae.error(`No addon named ${e} found`);return}let i=await Ec.readJSON(o);return{enable:!0,name:i.name,global:!!i.global,root:r,options:{},props:{},pkg:i}}async function C0(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return await Zr(r,t)}u();import{writeFile as _0}from"node:fs/promises";import{ensureFile as v0}from"fs-extra";function en(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function tn(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let o of r.from)t.push({from:en(o),to:en(r.to)});else t.push({from:en(r.from),to:en(r.to)});return t}async function Fc(e,t){await v0(t),await _0(t,`
10
+ `).map(D_.default));Ne.calculateMaximumCellWidth=b_;var C_=(e,t=[])=>{let r=new Array(e[0].length).fill(0),o=t.map(fp.calculateRangeCoordinate),i=(n,s)=>o.some(a=>(0,fp.isCellInRange)({col:s,row:n},a));return e.forEach((n,s)=>{n.forEach((a,l)=>{i(s,l)||(r[l]=Math.max(r[l],(0,Ne.calculateMaximumCellWidth)(a)))})}),r};Ne.calculateMaximumColumnWidths=C_});var mp=b(rt=>{"use strict";u();var __=rt&&rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rt,"__esModule",{value:!0});rt.alignVerticalRangeContent=rt.wrapRangeContent=void 0;var v_=__(Lt()),w_=ys(),x_=Pn(),S_=Fn(),R_=$n(),dp=te(),E_=mn(),k_=(e,t,r)=>{let{topLeft:o,paddingRight:i,paddingLeft:n,truncate:s,wrapWord:a,alignment:l}=e,c=r.rows[o.row][o.col],f=t-n-i;return(0,E_.wrapCell)((0,R_.truncateString)(c,s),f,a).map(d=>{let p=(0,w_.alignString)(d,f,l);return(0,S_.padString)(p,n,i)})};rt.wrapRangeContent=k_;var A_=(e,t,r)=>{let{rows:o,drawHorizontalLine:i,rowHeights:n}=r,{topLeft:s,bottomRight:a,verticalAlignment:l}=e;if(n.length===0)return[];let c=(0,dp.sumArray)(n.slice(s.row,a.row+1)),f=a.row-s.row,d=(0,dp.sequence)(s.row+1,a.row).filter(g=>!i(g,o.length)).length,p=c+f-d;return(0,x_.padCellVertically)(t,p,l).map(g=>g.length===0?" ".repeat((0,v_.default)(t[0])):g)};rt.alignVerticalRangeContent=A_});var hp=b(In=>{"use strict";u();Object.defineProperty(In,"__esModule",{value:!0});In.calculateSpanningCellWidth=void 0;var $s=te(),P_=(e,t)=>{let{columnsConfig:r,drawVerticalLine:o}=t,{topLeft:i,bottomRight:n}=e,s=(0,$s.sumArray)(r.slice(i.col,n.col+1).map(({width:f})=>f)),a=i.col===n.col?r[i.col].paddingRight+r[n.col].paddingLeft:(0,$s.sumArray)(r.slice(i.col,n.col+1).map(({paddingLeft:f,paddingRight:d})=>f+d)),l=n.col-i.col,c=(0,$s.sequence)(i.col+1,n.col).filter(f=>!o(f,r.length)).length;return s+a+l-c};In.calculateSpanningCellWidth=P_});var gp=b(Vn=>{"use strict";u();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.makeRangeConfig=void 0;var F_=te(),T_=(e,t)=>{var r;let{topLeft:o,bottomRight:i}=(0,F_.calculateRangeCoordinate)(e);return{...{...t[o.col],...e,paddingRight:(r=e.paddingRight)!==null&&r!==void 0?r:t[i.col].paddingRight},bottomRight:i,topLeft:o}};Vn.makeRangeConfig=T_});var bp=b(Hn=>{"use strict";u();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.createSpanningCellManager=void 0;var yp=mp(),O_=hp(),$_=gp(),Gt=te(),Ls=(e,t)=>t.find(r=>(0,Gt.isCellInRange)(e,r)),Dp=(e,t)=>{let r=(0,O_.calculateSpanningCellWidth)(e,t),o=(0,yp.wrapRangeContent)(e,r,t),i=(0,yp.alignVerticalRangeContent)(e,o,t);return{...e,extractBorderContent:a=>{let{topLeft:l}=e,c=(0,Gt.sumArray)(t.rowHeights.slice(l.row,a))+(a-l.row-1);return i[c]},extractCellContent:a=>{let{topLeft:l}=e,{drawHorizontalLine:c,rowHeights:f}=t,d=a-l.row,p=(0,Gt.sequence)(l.row+1,a).filter(y=>!c?.(y,f.length)).length,g=(0,Gt.sumArray)(f.slice(l.row,a))+d-p;return i.slice(g,g+f[a])},height:o.length,width:r}},L_=(e,t,r)=>{let o=Ls(e,r),i=Ls(t,r);return o&&i?(0,Gt.areCellEqual)(o.topLeft,i.topLeft):!1},M_=e=>{let{row:t,col:r}=e.topLeft;return`${t}/${r}`},B_=e=>{let{spanningCellConfigs:t,columnsConfig:r}=e,o=t.map(a=>(0,$_.makeRangeConfig)(a,r)),i={},n=[],s=[];return{getContainingRange:(a,l)=>{var c;let f=l?.mapped?s[a.row]:a.row,d=Ls({...a,row:f},o);if(!d)return;if(n.length===0)return Dp(d,{...e,rowHeights:n});let p=M_(d);return(c=i[p])!==null&&c!==void 0||(i[p]=Dp(d,{...e,rowHeights:n})),i[p]},inSameRange:(a,l)=>L_(a,l,o),rowHeights:n,rowIndexMapping:s,setRowHeights:a=>{n=a},setRowIndexMapping:a=>{s=(0,Gt.flatten)(a.map((l,c)=>Array.from({length:l},()=>c)))}}};Hn.createSpanningCellManager=B_});var Cp=b(Gn=>{"use strict";u();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.validateSpanningCellConfig=void 0;var Ms=te(),qn=(e,t,r)=>e<=r&&r<=t,j_=(e,t)=>{let[r,o]=[e.length,e[0].length];t.forEach((s,a)=>{let{colSpan:l,rowSpan:c}=s;if(l===void 0&&c===void 0)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${a}]`);if(l!==void 0&&l<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${l} in config.spanningCells[${a}]`);if(c!==void 0&&c<1)throw new Error(`Expect rowSpan is not equal zero, instead got: ${c} in config.spanningCells[${a}]`)});let i=t.map(Ms.calculateRangeCoordinate);i.forEach(({topLeft:s,bottomRight:a},l)=>{if(!qn(0,o-1,s.col)||!qn(0,r-1,s.row)||!qn(0,o-1,a.col)||!qn(0,r-1,a.row))throw new Error(`Some cells in config.spanningCells[${l}] are out of the table`)});let n=Array.from({length:r},()=>Array.from({length:o}));i.forEach(({topLeft:s,bottomRight:a},l)=>{(0,Ms.sequence)(s.row,a.row).forEach(c=>{(0,Ms.sequence)(s.col,a.col).forEach(f=>{if(n[c][f]!==void 0)throw new Error(`Spanning cells in config.spanningCells[${n[c][f]}] and config.spanningCells[${l}] are overlap each other`);n[c][f]=l})})})};Gn.validateSpanningCellConfig=j_});var _p=b(Wn=>{"use strict";u();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.makeTableConfig=void 0;var N_=pp(),I_=bp(),V_=te(),H_=Ss(),q_=Cp(),G_=(e,t,r,o)=>{let i=(0,N_.calculateMaximumColumnWidths)(e,o);return e[0].map((n,s)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",width:i[s],wrapWord:!1,...r,...t?.[s]}))},W_=(e,t={},r)=>{var o,i,n,s,a;(0,H_.validateConfig)("config.json",t),(0,q_.validateSpanningCellConfig)(e,(o=t.spanningCells)!==null&&o!==void 0?o:[]);let l=(i=r??t.spanningCells)!==null&&i!==void 0?i:[],c=G_(e,t.columns,t.columnDefault,l),f=(n=t.drawVerticalLine)!==null&&n!==void 0?n:()=>!0,d=(s=t.drawHorizontalLine)!==null&&s!==void 0?s:()=>!0;return{...t,border:(0,V_.makeBorderConfig)(t.border),columns:c,drawHorizontalLine:d,drawVerticalLine:f,singleLine:(a=t.singleLine)!==null&&a!==void 0?a:!1,spanningCellManager:(0,I_.createSpanningCellManager)({columnsConfig:c,drawHorizontalLine:d,drawVerticalLine:f,rows:e,spanningCellConfigs:l})}};Wn.makeTableConfig=W_});var vp=b(Un=>{"use strict";u();Object.defineProperty(Un,"__esModule",{value:!0});Un.validateTableData=void 0;var U_=te(),z_=e=>{if(!Array.isArray(e))throw new TypeError("Table data must be an array.");if(e.length===0)throw new Error("Table must define at least one row.");if(e[0].length===0)throw new Error("Table must define at least one column.");let t=e[0].length;for(let r of e){if(!Array.isArray(r))throw new TypeError("Table row data must be an array.");if(r.length!==t)throw new Error("Table must have a consistent number of cells.");for(let o of r)if(/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0,U_.normalizeString)(String(o))))throw new Error("Table data must not contain control characters.")}};Un.validateTableData=z_});var wp=b(zn=>{"use strict";u();Object.defineProperty(zn,"__esModule",{value:!0});zn.table=void 0;var J_=Ds(),K_=lp(),Y_=bs(),X_=up(),Q_=cp(),Z_=_p(),ev=Pn(),tv=Fn(),rv=Rs(),nv=$n(),ov=te(),iv=vp(),sv=(e,t={})=>{(0,iv.validateTableData)(e);let r=(0,rv.stringifyTableData)(e),[o,i]=(0,Q_.injectHeaderConfig)(r,t),n=(0,Z_.makeTableConfig)(o,t,i);r=(0,nv.truncateTableData)(o,(0,ov.extractTruncates)(n));let s=(0,Y_.calculateRowHeights)(r,n);n.spanningCellManager.setRowHeights(s),n.spanningCellManager.setRowIndexMapping(s),r=(0,ev.mapDataUsingRowHeights)(r,s,n),r=(0,J_.alignTableData)(r,n),r=(0,tv.padTableData)(r,n);let a=(0,K_.calculateOutputColumnWidths)(n);return(0,X_.drawTable)(r,a,s,n)};zn.table=sv});var Sp=b(xp=>{"use strict";u();Object.defineProperty(xp,"__esModule",{value:!0})});var Rp=b(me=>{"use strict";u();var av=me&&me.__createBinding||(Object.create?function(e,t,r,o){o===void 0&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]}),lv=me&&me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&av(t,e,r)};Object.defineProperty(me,"__esModule",{value:!0});me.getBorderCharacters=me.createStream=me.table=void 0;var uv=ap();Object.defineProperty(me,"createStream",{enumerable:!0,get:function(){return uv.createStream}});var cv=ms();Object.defineProperty(me,"getBorderCharacters",{enumerable:!0,get:function(){return cv.getBorderCharacters}});var fv=wp();Object.defineProperty(me,"table",{enumerable:!0,get:function(){return fv.table}});lv(Sp(),me)});u();import Fx from"node:process";import Tx from"yargs";import{hideBin as Ox}from"yargs/helpers";var bt="0.22.12";u();var Ic=ee(Ur(),1),tt=ee(ae(),1);import Ot from"node:path";import $t from"consola";import et from"fs-extra";import T0 from"gray-matter";u();function lc(e,t){t.forEach(r=>{r.setup?.(e)})}u();function Ke(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}u();var Mc=ee(Ur(),1),Qe=ee(ae(),1);import{dirname as w0}from"node:path";import Oc from"node:process";import{ensureSuffix as $c,uniq as x0}from"@antfu/utils";import Lc from"consola";import S0 from"debug";import Bc from"fs-extra";import{resolve as nr}from"pathe";u();import jD from"node:path";var ND=new Map,ID=new Map;function VD(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var HD=/\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/;function qD(e,t){if(e.includes("node_modules")&&!HD.test(e)&&Qi(e,t,ND))return!0}function Qi(e,t,r,o=null,i=[]){if(r.has(e))return!!r.get(e);if(i.includes(e))return r.set(e,!1),!1;let n=t(e);if(!n)return r.set(e,!1),!1;if(o?o.test(e):n.isEntry)return r.set(e,!0),!0;let s=n.importers.some(a=>Qi(a,t,r,o,i.concat(e)));return r.set(e,s),s}function uc(e){let t=["/@siteData","node_modules/@vueuse/core/","node_modules/@vueuse/shared/","node_modules/vue/","node_modules/vue-demi/",e.clientRoot],r=new RegExp(`^${VD(jD.resolve(e.themeRoot,"index.ts").replace(/\\/g,"/"))}`),o="assets";return{...e.config.vite?.build?.rollupOptions,external:[],preserveEntrySignatures:"allow-extension",output:{assetFileNames:`${o}/[name].[hash].[ext]`,entryFileNames:`${o}/[name].[hash].js`,chunkFileNames(){return`${o}/[name].[hash].js`},manualChunks(n,s){if(n.startsWith("\0vite")||n.includes("plugin-vue:export-helper"))return"framework";let a=["@vueuse/motion","dayjs","vue-i18n","vue-router","nprogress","pinia"];for(let l of a)if(n.includes(l))return`chunks/${l}`;if(qD(n,s.getModuleInfo)&&/@vue\/(runtime|shared|reactivity)/.test(n))return"framework";if((n.startsWith(e.themeRoot)||!t.some(l=>n.includes(l)))&&Qi(n,s.getModuleInfo,ID,r))return"theme"}}}}u();u();import o0 from"node:path";import i0 from"fs-extra";u();var At=ee(ae(),1);import ZD from"node:process";import{isFunction as pc}from"@antfu/utils";import e0 from"consola";import{createDefu as t0}from"defu";import{mergeConfig as r0}from"vite";u();import PE from"consola";function Ye(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}u();var kt=ee(ae(),1);import{webcrypto as fc}from"node:crypto";import YD from"consola";import{options as XD}from"floating-vue";u();import GD from"node:process";import cc from"consola";import WD from"fs-extra";import{createJiti as UD}from"jiti";import{resolve as zD}from"pathe";var JD=UD(import.meta.url,{moduleCache:!1});async function KD(e){let{name:t,cwd:r}=e,o=zD(r,`${t}.config.ts`),i={};if(await WD.exists(o))try{i=await JD.import(o,{default:!0})}catch(n){console.error(n),cc.error(`Failed to load config file: ${o}`)}else cc.debug(`Config file not found: ${o}`);return{config:i,configFile:o}}async function Et(e,t={}){let{config:r,configFile:o}=await KD({name:e,cwd:t.cwd||GD.cwd()}),i=r;return typeof r=="function"&&(i=await r(t.valaxyOptions||{})),{config:i,configFile:o}}var Kr={mode:"auto",url:"/",lang:"en",languages:["en","zh-CN"],timezone:"",title:"Valaxy Blog",description:"A blog generated by Valaxy.",subtitle:"Next Generation Static Blog Framework.",author:{avatar:"https://valaxy.site/valaxy-logo.png",email:"i@valaxy.site",link:"https://valaxy.site",name:"VALAXY Developer",status:{emoji:"\u{1F30C}",message:"The moonlight is beautiful."}},favicon:"/favicon.svg",feed:{name:"",favicon:"/favicon.svg"},social:[],lastUpdated:!0,license:{enabled:!0,language:"",type:"by-nc-sa"},sponsor:{enable:!0,description:"\u8FD9\u662F\u5173\u4E8E\u8D5E\u52A9\u7684\u4E00\u4E9B\u63CF\u8FF0",methods:[]},search:{enable:!1,type:"fuse"},fuse:{dataPath:"valaxy-fuse-list.json",options:{keys:[]}},comment:{enable:!1},frontmatter:{time_warning:180*24*60*60*1e3},cdn:{prefix:"https://unpkg.com/"},mediumZoom:{enable:!1,selector:"",options:{}},vanillaLazyload:{enable:!1,options:{}},floatingVue:XD,statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:fc.getRandomValues(new Uint8Array(16)),iv:fc.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function WE(e){return e}async function QD(e){return Et("site",{cwd:e})}async function Yr(e){let t=Ye(),{config:r,configFile:o}=await QD(e),i=t();return r&&o&&YD.success(`Resolve ${(0,kt.cyan)("siteConfig")} from ${(0,kt.dim)(o)} ${(0,kt.yellow)(i)}`),{siteConfig:r,siteConfigFile:o}}var Zi={siteConfig:Kr,theme:"yun",themeConfig:{pkg:{name:"",version:""}},build:{ssgForPagination:!1},deploy:{},runtimeConfig:{addons:{},redirects:{useVueRouter:!0,redirectRoutes:[]}},modules:{rss:{enable:!0,fullText:!1}},features:{katex:!0},vite:{build:{emptyOutDir:!0}},devtools:!0};function n0(e){return e}var rk=n0;async function Qt(e,t){return await Et("valaxy",{cwd:e,valaxyOptions:t})}var ct=t0((e,t,r)=>{if(pc(e[t])&&pc(r)&&(e[t]=function(...o){e[t].call(this,...o),r.call(this,...o)}),t==="vite")return e[t]=r0(e[t],r),!0});async function dc(e){let t=e.userRoot||ZD.cwd(),r=Ye(),{config:o,configFile:i}=await Qt(t),n=r();i&&o&&Object.keys(o).length!==0&&e0.success(`Resolve ${(0,At.cyan)("userValaxyConfig")} from ${(0,At.dim)(i)} ${(0,At.yellow)(n)}`);let s=e.theme||o?.theme||"yun";return{config:o,configFile:i,theme:s}}function s0(e){return e}var lk=s0;async function mc(e,t){let r={};for(let o of e){let i=o0.resolve(o.root,"valaxy.config.ts");if(!await i0.exists(i))continue;let{config:n,configFile:s}=await Qt(o.root,t);n&&(o.configFile=s,r=ct(n,r))}return r}u();var Qr=ee(ae(),1);import u0 from"defu";u();var gc=ee(ae(),1);import a0 from"consola";import{colors as hc}from"consola/utils";import l0 from"ora";var Ae=a0.create({}),Xe=hc.magenta("[valaxy]"),Zt={success:(...e)=>Ae.success(Xe,...e),info:(...e)=>Ae.info(Xe,...e),ready:(...e)=>Ae.ready(Xe,...e)};async function er(e,t){let r=`${hc.cyan("[HOOK]")} ${(0,gc.magenta)(e)}`,o=l0(`${r} calling...`).start();await t.hooks.callHook(e),o.succeed(`${r} done.`)}async function Xr(e){return Et("theme",{cwd:e})}async function yc(e){let{config:t,configFile:r}=await Xr(e.userRoot);if(t&&r&&Ae.info(`Resolve ${(0,Qr.cyan)("themeConfig")} from ${(0,Qr.dim)(r)}`),e?.themeRoot){let{config:o}=await Xr(e.themeRoot);t=u0(t||{},o)}return{themeConfig:t,themeConfigFile:r}}function c0(e){return e}var bk=c0;function vk(e){return e}u();import{createDefu as f0}from"defu";var tr=f0((e,t,r)=>{if(t&&e[t]&&Array.isArray(e[t])&&Array.isArray(r))return e[t]=r,!0});u();u();import{spawn as p0}from"cross-spawn";function rr(e,t="updated"){return new Promise((r,o)=>{let i=["log"];t==="updated"&&i.push("-1"),i.push('--pretty="%ci"',e),t==="created"&&i.push("|","tail","-1");let n=p0("git",i),s="";n.stdout.on("data",a=>s+=String(a)),n.on("close",()=>{r(+new Date(s))}),n.on("error",()=>{r(0)})})}u();u();var Dc="<!-- more -->",Pt=/^https?:/i,bc=/^pathname:\/\//,Mk="/:all(.*)*",Cc=new Set(["annotation","math","menclose","mfrac","mglyph","mi","mlabeledtr","mn","mo","mover","mpadded","mphantom","mroot","mrow","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"]),Ft={css:{preprocessorOptions:{scss:{api:"modern-compiler"}}}};function _c(e){return Pt.test(e)}function vc(e){return e.startsWith("/")||/^\.\.?[/\\]/.test(e)}function es(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}u();import{ensurePrefix as d0,slash as m0}from"@antfu/utils";import wc from"consola";import{resolvePath as h0}from"mlly";import{resolveGlobal as g0}from"resolve-global";var ts={};async function rs(e){return q(await Be(e,!0))}function q(e){return`/@fs${d0("/",m0(e))}`}async function Be(e,t=!1){try{return await h0(e,{url:import.meta.url})}catch(r){wc.log(r)}if(ts.value)try{return g0(e)}catch{}if(t)throw new Error(`Failed to resolve package ${e}`);wc.warn(`Failed to resolve package ${e}`)}u();var Pe=ee(ae(),1);import Ac from"node:process";import Rc from"defu";import Ec from"fs-extra";import D0 from"ora";import{resolve as b0}from"pathe";u();import{dirname as xc}from"node:path";import y0 from"fs-extra";import{resolve as Sc}from"pathe";async function Zr(e,t){if(!e)return"";if(vc(e))if(t){let r=y0.lstatSync(t).isFile();return Sc(r?xc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return Sc(xc(await Be(`${e}/package.json`)||""))}async function Pc(e,t=Ac.cwd()){let r=D0(`Resolve ${(0,Pe.cyan)("addons")} from ${(0,Pe.dim)(t)}`).start(),o={},i=s=>{s&&(o[s.name]=Rc(o[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){i(await kc(s,{cwd:t}));continue}typeof s=="object"&&i(Rc(await kc(s.name,{cwd:t}),s||{}))}r.succeed();let n=Object.values(o).filter(s=>s.enable);return n.forEach((s,a)=>{console.log(` ${a===n.length-1?"\u2514\u2500":"\u251C\u2500"} ${(0,Pe.yellow)(s.name)} ${(0,Pe.blue)(`v${s.pkg?.version}`)}${s.global?(0,Pe.cyan)(" (global)"):""} ${(0,Pe.dim)(s.pkg.homepage||s.pkg.repository?.url||s.pkg.repository||"")}`)}),n}async function kc(e,t={}){let r=await C0(e,t.cwd||Ac.cwd()),o=b0(r,"./package.json");if(!await Ec.exists(o)){Ae.error(`No addon named ${e} found`);return}let i=await Ec.readJSON(o);return{enable:!0,name:i.name,global:!!i.global,root:r,options:{},props:{},pkg:i}}async function C0(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return await Zr(r,t)}u();import{writeFile as _0}from"node:fs/promises";import{ensureFile as v0}from"fs-extra";function en(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function tn(e){if(!e)return[];let t=[];for(let r of e)if(Array.isArray(r.from))for(let o of r.from)t.push({from:en(o),to:en(r.to)});else t.push({from:en(r.from),to:en(r.to)});return t}async function Fc(e,t){await v0(t),await _0(t,`
11
11
  <!DOCTYPE html>
12
12
  <html lang="en">
13
13
  <head>
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{V as a,W as b,X as c,Y as d}from"../../chunk-5NDFDKOT.js";import"../../chunk-YBYGBP4O.js";import"../../chunk-R76WNJFY.js";export{c as cli,b as registerDevCommand,d as run,a as startValaxyDev};
2
+ import{V as a,W as b,X as c,Y as d}from"../../chunk-Y2R2NVO2.js";import"../../chunk-2TIFAWAJ.js";import"../../chunk-3KRYIAHJ.js";export{c as cli,b as registerDevCommand,d as run,a as startValaxyDev};
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-5NDFDKOT.js";import"../chunk-YBYGBP4O.js";import"../chunk-R76WNJFY.js";export{d as ALL_ROUTE,a as EXCERPT_SEPARATOR,b as EXTERNAL_URL_RE,c as PATHNAME_PROTOCOL_RE,O as ViteValaxyPlugins,P as build,X as cli,U as createServer,N as createValaxyLoader,e as customElements,s as defaultSiteConfig,w as defaultValaxyConfig,f as defaultViteConfig,D as defineAddon,y as defineConfig,t as defineSiteConfig,I as defineTheme,J as defineUnoSetup,C as defineValaxyAddon,x as defineValaxyConfig,H as defineValaxyTheme,S as generateClientRedirects,g as getGitTimestamp,p as getIndexHtml,T as getServerInfoText,h as isExternal,k as isInstalledGlobally,i as isPath,q as loadConfig,r as loadConfigFromFile,A as mergeValaxyConfig,o as mergeViteConfigs,R as postProcessForSSG,K as processValaxyOptions,W as registerDevCommand,E as resolveAddonsConfig,n as resolveImportPath,l as resolveImportUrl,L as resolveOptions,v as resolveSiteConfig,u as resolveSiteConfigFromRoot,F as resolveThemeConfigFromRoot,M as resolveThemeValaxyConfig,G as resolveUserThemeConfig,B as resolveValaxyConfig,z as resolveValaxyConfigFromRoot,Y as run,Q as ssgBuild,V as startValaxyDev,m as toAtFS,j as transformObject};
2
+ import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-Y2R2NVO2.js";import"../chunk-2TIFAWAJ.js";import"../chunk-3KRYIAHJ.js";export{d as ALL_ROUTE,a as EXCERPT_SEPARATOR,b as EXTERNAL_URL_RE,c as PATHNAME_PROTOCOL_RE,O as ViteValaxyPlugins,P as build,X as cli,U as createServer,N as createValaxyLoader,e as customElements,s as defaultSiteConfig,w as defaultValaxyConfig,f as defaultViteConfig,D as defineAddon,y as defineConfig,t as defineSiteConfig,I as defineTheme,J as defineUnoSetup,C as defineValaxyAddon,x as defineValaxyConfig,H as defineValaxyTheme,S as generateClientRedirects,g as getGitTimestamp,p as getIndexHtml,T as getServerInfoText,h as isExternal,k as isInstalledGlobally,i as isPath,q as loadConfig,r as loadConfigFromFile,A as mergeValaxyConfig,o as mergeViteConfigs,R as postProcessForSSG,K as processValaxyOptions,W as registerDevCommand,E as resolveAddonsConfig,n as resolveImportPath,l as resolveImportUrl,L as resolveOptions,v as resolveSiteConfig,u as resolveSiteConfigFromRoot,F as resolveThemeConfigFromRoot,M as resolveThemeValaxyConfig,G as resolveUserThemeConfig,B as resolveValaxyConfig,z as resolveValaxyConfigFromRoot,Y as run,Q as ssgBuild,V as startValaxyDev,m as toAtFS,j as transformObject};
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{b as n}from"../chunk-YBYGBP4O.js";import{e}from"../chunk-R76WNJFY.js";e();import{bundledLanguages as t}from"shiki";async function i(a){return t[a]?.().then(r=>r.default)||[]}n(i);
2
+ import{b as n}from"../chunk-2TIFAWAJ.js";import{e}from"../chunk-3KRYIAHJ.js";e();import{bundledLanguages as t}from"shiki";async function i(a){return t[a]?.().then(r=>r.default)||[]}n(i);
@@ -1,2 +1,2 @@
1
1
  import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
2
- import{e}from"../chunk-R76WNJFY.js";e();e();e();e();e();e();e();e();e();e();
2
+ import{e}from"../chunk-3KRYIAHJ.js";e();e();e();e();e();e();e();e();e();e();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "valaxy",
3
3
  "type": "module",
4
- "version": "0.22.10",
4
+ "version": "0.22.12",
5
5
  "description": "📄 Vite & Vue powered static blog generator.",
6
6
  "author": {
7
7
  "email": "me@yunyoujun.cn",
@@ -108,14 +108,14 @@
108
108
  "qrcode": "^1.5.4",
109
109
  "resolve-global": "^2.0.0",
110
110
  "sass": "^1.85.0",
111
- "shiki": "^2",
111
+ "shiki": "^2.5.0",
112
112
  "star-markdown-css": "^0.5.3",
113
113
  "unocss": "^66.0.0",
114
114
  "unplugin-vue-components": "28.0.0",
115
115
  "unplugin-vue-markdown": "^28.3.1",
116
116
  "unplugin-vue-router": "^0.11.2",
117
117
  "vanilla-lazyload": "^19.1.3",
118
- "vite": "^6.1.0",
118
+ "vite": "^6.1.1",
119
119
  "vite-dev-rpc": "^1.0.7",
120
120
  "vite-plugin-vue-devtools": "^7.7.2",
121
121
  "vite-plugin-vue-layouts": "^0.11.0",
@@ -125,8 +125,8 @@
125
125
  "vue-i18n": "^11.1.1",
126
126
  "vue-router": "^4.5.0",
127
127
  "yargs": "^17.7.2",
128
- "@valaxyjs/utils": "0.22.10",
129
- "@valaxyjs/devtools": "0.22.10"
128
+ "@valaxyjs/devtools": "0.22.12",
129
+ "@valaxyjs/utils": "0.22.12"
130
130
  },
131
131
  "devDependencies": {
132
132
  "@mdit-vue/plugin-component": "^2.1.3",
File without changes