valaxy 0.20.6 → 0.20.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/components/ValaxyApp.vue +0 -1
- package/client/components/ValaxyDecrypt.vue +8 -7
- package/client/components/ValaxyLogo.vue +5 -1
- package/client/composables/app/useValaxyHead.ts +10 -3
- package/client/composables/outline/anchor.ts +8 -7
- package/client/setups.ts +1 -1
- package/client/styles/common/markdown.scss +4 -4
- package/client/styles/index.scss +0 -1
- package/dist/{chunk-F3UFLKIV.cjs → chunk-JOSLTXIR.cjs} +25 -25
- package/dist/{chunk-BQRH2D76.mjs → chunk-LB5BBIUM.mjs} +4 -4
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +20 -20
- package/client/styles/common/scrollbar.scss +0 -30
- /package/dist/{chunk-6GE64PZD.cjs → chunk-BJ22GQI6.cjs} +0 -0
- /package/dist/{chunk-WE2LNW3F.mjs → chunk-XKANGEKW.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import{a as Y,b,c as ee,d as l}from"./chunk-WE2LNW3F.mjs";var na=b(ht=>{"use strict";l();Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function rm(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=rm;function nm(e,t){let r=[[]],o=0;for(let i of e)t(i)?(o++,r[o]=[]):r[o].push(i);return r}ht.splitWhen=nm});var oa=b(gr=>{"use strict";l();Object.defineProperty(gr,"__esModule",{value:!0});gr.isEnoentCodeError=void 0;function om(e){return e.code==="ENOENT"}gr.isEnoentCodeError=om});var ia=b(hr=>{"use strict";l();Object.defineProperty(hr,"__esModule",{value:!0});hr.createDirentFromStats=void 0;var lo=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 im(e,t){return new lo(e,t)}hr.createDirentFromStats=im});var la=b(Q=>{"use strict";l();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 sm=Y("os"),am=Y("path"),sa=sm.platform()==="win32",um=2,lm=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,cm=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,fm=/^\\\\([.?])/,pm=/\\(?![!()+@[\]{}])/g;function dm(e){return e.replace(/\\/g,"/")}Q.unixify=dm;function mm(e,t){return am.resolve(e,t)}Q.makeAbsolute=mm;function gm(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(um)}return e}Q.removeLeadingDotSegment=gm;Q.escape=sa?co:fo;function co(e){return e.replace(cm,"\\$2")}Q.escapeWindowsPath=co;function fo(e){return e.replace(lm,"\\$2")}Q.escapePosixPath=fo;Q.convertPathToPattern=sa?aa:ua;function aa(e){return co(e).replace(fm,"//$1").replace(pm,"/")}Q.convertWindowsPathToPattern=aa;function ua(e){return fo(e)}Q.convertPosixPathToPattern=ua});var fa=b((qw,ca)=>{"use strict";l();ca.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 ma=b((Ww,da)=>{"use strict";l();var hm=fa(),pa={"{":"}","(":")","[":"]"},ym=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 u=pa[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},Dm=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=pa[r];if(o){var i=e.indexOf(o,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};da.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(hm(t))return!0;var o=ym;return r&&r.strict===!1&&(o=Dm),o(t)}});var ha=b((Jw,ga)=>{"use strict";l();var bm=ma(),Cm=Y("path").posix.dirname,vm=Y("os").platform()==="win32",po="/",xm=/\\/g,wm=/[\{\[].*[\}\]]$/,_m=/(^|[^\\])([\{\[]|\([^\)]+$)/,Em=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ga.exports=function(t,r){var o=Object.assign({flipBackslashes:!0},r);o.flipBackslashes&&vm&&t.indexOf(po)<0&&(t=t.replace(xm,po)),wm.test(t)&&(t+=po),t+="a";do t=Cm(t);while(bm(t)||_m.test(t));return t.replace(Em,"$1")}});var yr=b(ge=>{"use strict";l();ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ge.find=(e,t)=>e.nodes.find(r=>r.type===t);ge.exceedsLimit=(e,t,r=1,o)=>o===!1||!ge.isInteger(e)||!ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=o;ge.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)};ge.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ge.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;ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ge.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 Dr=b((Xw,Da)=>{"use strict";l();var ya=yr();Da.exports=(e,t={})=>{let r=(o,i={})=>{let n=t.escapeInvalid&&ya.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a="";if(o.value)return(n||s)&&ya.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let u of o.nodes)a+=r(u);return a};return r(e)}});var Ca=b((Zw,ba)=>{"use strict";l();ba.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Aa=b((t_,Sa)=>{"use strict";l();var va=Ca(),ot=(e,t,r)=>{if(va(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(va(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),u=e+":"+t+"="+i+n+s+a;if(ot.cache.hasOwnProperty(u))return ot.cache[u].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=Fa(e)||Fa(t),p={min:e,max:t,a:c,b:f},h=[],y=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),c<0){let D=f<0?Math.abs(f):1;y=xa(D,Math.abs(c),p,o),c=p.a=0}return f>=0&&(h=xa(c,f,p,o)),p.negatives=y,p.positives=h,p.result=Rm(y,h,o),o.capture===!0?p.result=`(${p.result})`:o.wrap!==!1&&h.length+y.length>1&&(p.result=`(?:${p.result})`),ot.cache[u]=p,p.result};function Rm(e,t,r){let o=mo(e,t,"-",!1,r)||[],i=mo(t,e,"",!1,r)||[],n=mo(e,t,"-?",!0,r)||[];return o.concat(n).concat(i).join("|")}function Fm(e,t){let r=1,o=1,i=_a(e,r),n=new Set([t]);for(;e<=i&&i<=t;)n.add(i),r+=1,i=_a(e,r);for(i=Ea(t+1,o)-1;e<i&&i<=t;)n.add(i),o+=1,i=Ea(t+1,o)-1;return n=[...n],n.sort(Pm),n}function Sm(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=Am(e,t),i=o.length,n="",s=0;for(let a=0;a<i;a++){let[u,c]=o[a];u===c?n+=u:u!=="0"||c!=="9"?n+=km(u,c,r):s++}return s&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[s],digits:i}}function xa(e,t,r,o){let i=Fm(e,t),n=[],s=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=Sm(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+Ra(a.count),s=c+1;continue}r.isPadded&&(d=Om(c,r,o)),f.string=d+f.pattern+Ra(f.count),n.push(f),s=c+1,a=f}return n}function mo(e,t,r,o,i){let n=[];for(let s of e){let{string:a}=s;!o&&!wa(t,"string",a)&&n.push(r+a),o&&wa(t,"string",a)&&n.push(r+a)}return n}function Am(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}function Pm(e,t){return e>t?1:t>e?-1:0}function wa(e,t,r){return e.some(o=>o[t]===r)}function _a(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ea(e,t){return e-e%Math.pow(10,t)}function Ra(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function km(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Fa(e){return/^-?(0+)\d/.test(e)}function Om(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}}`}}ot.cache={};ot.clearCache=()=>ot.cache={};Sa.exports=ot});var yo=b((n_,Ma)=>{"use strict";l();var Tm=Y("util"),ka=Aa(),Pa=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),$m=e=>t=>e===!0?Number(t):String(t),go=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ut=e=>Number.isInteger(+e),ho=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Bm=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Mm=(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},Cr=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},jm=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let o=t.capture?"":"?:",i="",n="",s;return e.positives.length&&(i=e.positives.map(a=>Cr(String(a),r)).join("|")),e.negatives.length&&(n=`-(${o}${e.negatives.map(a=>Cr(String(a),r)).join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,t.wrap?`(${o}${s})`:s},Oa=(e,t,r,o)=>{if(r)return ka(e,t,{wrap:!1,...o});let i=String.fromCharCode(e);if(e===t)return i;let n=String.fromCharCode(t);return`[${i}-${n}]`},Ta=(e,t,r)=>{if(Array.isArray(e)){let o=r.wrap===!0,i=r.capture?"":"?:";return o?`(${i}${e.join("|")})`:e.join("|")}return ka(e,t,r)},$a=(...e)=>new RangeError("Invalid range arguments: "+Tm.inspect(...e)),Ba=(e,t,r)=>{if(r.strictRanges===!0)throw $a([e,t]);return[]},Lm=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Nm=(e,t,r=1,o={})=>{let i=Number(e),n=Number(t);if(!Number.isInteger(i)||!Number.isInteger(n)){if(o.strictRanges===!0)throw $a([e,t]);return[]}i===0&&(i=0),n===0&&(n=0);let s=i>n,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=ho(a)||ho(u)||ho(c),d=f?Math.max(a.length,u.length,c.length):0,p=f===!1&&Bm(e,t,o)===!1,h=o.transform||$m(p);if(o.toRegex&&r===1)return Oa(Cr(e,d),Cr(t,d),!0,o);let y={negatives:[],positives:[]},D=O=>y[O<0?"negatives":"positives"].push(Math.abs(O)),R=[],A=0;for(;s?i>=n:i<=n;)o.toRegex===!0&&r>1?D(i):R.push(Mm(h(i,A),d,p)),i=s?i-r:i+r,A++;return o.toRegex===!0?r>1?jm(y,o,d):Ta(R,null,{wrap:!1,...o}):R},Vm=(e,t,r=1,o={})=>{if(!Ut(e)&&e.length>1||!Ut(t)&&t.length>1)return Ba(e,t,o);let i=o.transform||(p=>String.fromCharCode(p)),n=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=n>s,u=Math.min(n,s),c=Math.max(n,s);if(o.toRegex&&r===1)return Oa(u,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?Ta(f,null,{wrap:!1,options:o}):f},br=(e,t,r,o={})=>{if(t==null&&go(e))return[e];if(!go(e)||!go(t))return Ba(e,t,o);if(typeof r=="function")return br(e,t,1,{transform:r});if(Pa(r))return br(e,t,0,r);let i={...o};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ut(r)?Ut(e)&&Ut(t)?Nm(e,t,r,i):Vm(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Pa(r)?Lm(r,i):br(e,t,1,r)};Ma.exports=br});var Na=b((i_,La)=>{"use strict";l();var Im=yo(),ja=yr(),Hm=(e,t={})=>{let r=(o,i={})=>{let n=ja.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a=n===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(o.isOpen===!0)return u+o.value;if(o.isClose===!0)return console.log("node.isClose",u,o.value),u+o.value;if(o.type==="open")return a?u+o.value:"(";if(o.type==="close")return a?u+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=ja.reduce(o.nodes),d=Im(...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)};La.exports=Hm});var Ha=b((a_,Ia)=>{"use strict";l();var qm=yo(),Va=Dr(),yt=yr(),it=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?yt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let n of i)o.push(it(n,t,r));else for(let n of t)r===!0&&typeof n=="string"&&(n=`{${n}}`),o.push(Array.isArray(n)?it(i,n,r):i+n);return yt.flatten(o)},Um=(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(it(a.pop(),Va(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(it(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=yt.reduce(i.nodes);if(yt.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=qm(...d,t);p.length===0&&(p=Va(i,t)),a.push(it(a.pop(),p)),i.nodes=[];return}let u=yt.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(it(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(it(c.pop(),p.value));continue}p.nodes&&o(p,i)}return c};return yt.flatten(o(e))};Ia.exports=Um});var Ua=b((l_,qa)=>{"use strict";l();qa.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 Y,b,c as ee,d as l}from"./chunk-XKANGEKW.mjs";var na=b(ht=>{"use strict";l();Object.defineProperty(ht,"__esModule",{value:!0});ht.splitWhen=ht.flatten=void 0;function rm(e){return e.reduce((t,r)=>[].concat(t,r),[])}ht.flatten=rm;function nm(e,t){let r=[[]],o=0;for(let i of e)t(i)?(o++,r[o]=[]):r[o].push(i);return r}ht.splitWhen=nm});var oa=b(gr=>{"use strict";l();Object.defineProperty(gr,"__esModule",{value:!0});gr.isEnoentCodeError=void 0;function om(e){return e.code==="ENOENT"}gr.isEnoentCodeError=om});var ia=b(hr=>{"use strict";l();Object.defineProperty(hr,"__esModule",{value:!0});hr.createDirentFromStats=void 0;var lo=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 im(e,t){return new lo(e,t)}hr.createDirentFromStats=im});var la=b(Q=>{"use strict";l();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 sm=Y("os"),am=Y("path"),sa=sm.platform()==="win32",um=2,lm=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,cm=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,fm=/^\\\\([.?])/,pm=/\\(?![!()+@[\]{}])/g;function dm(e){return e.replace(/\\/g,"/")}Q.unixify=dm;function mm(e,t){return am.resolve(e,t)}Q.makeAbsolute=mm;function gm(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(um)}return e}Q.removeLeadingDotSegment=gm;Q.escape=sa?co:fo;function co(e){return e.replace(cm,"\\$2")}Q.escapeWindowsPath=co;function fo(e){return e.replace(lm,"\\$2")}Q.escapePosixPath=fo;Q.convertPathToPattern=sa?aa:ua;function aa(e){return co(e).replace(fm,"//$1").replace(pm,"/")}Q.convertWindowsPathToPattern=aa;function ua(e){return fo(e)}Q.convertPosixPathToPattern=ua});var fa=b((qw,ca)=>{"use strict";l();ca.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 ma=b((Ww,da)=>{"use strict";l();var hm=fa(),pa={"{":"}","(":")","[":"]"},ym=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 u=pa[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},Dm=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=pa[r];if(o){var i=e.indexOf(o,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};da.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(hm(t))return!0;var o=ym;return r&&r.strict===!1&&(o=Dm),o(t)}});var ha=b((Jw,ga)=>{"use strict";l();var bm=ma(),Cm=Y("path").posix.dirname,vm=Y("os").platform()==="win32",po="/",xm=/\\/g,wm=/[\{\[].*[\}\]]$/,_m=/(^|[^\\])([\{\[]|\([^\)]+$)/,Em=/\\([\!\*\?\|\[\]\(\)\{\}])/g;ga.exports=function(t,r){var o=Object.assign({flipBackslashes:!0},r);o.flipBackslashes&&vm&&t.indexOf(po)<0&&(t=t.replace(xm,po)),wm.test(t)&&(t+=po),t+="a";do t=Cm(t);while(bm(t)||_m.test(t));return t.replace(Em,"$1")}});var yr=b(ge=>{"use strict";l();ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ge.find=(e,t)=>e.nodes.find(r=>r.type===t);ge.exceedsLimit=(e,t,r=1,o)=>o===!1||!ge.isInteger(e)||!ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=o;ge.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)};ge.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);ge.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;ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ge.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 Dr=b((Xw,Da)=>{"use strict";l();var ya=yr();Da.exports=(e,t={})=>{let r=(o,i={})=>{let n=t.escapeInvalid&&ya.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a="";if(o.value)return(n||s)&&ya.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let u of o.nodes)a+=r(u);return a};return r(e)}});var Ca=b((Zw,ba)=>{"use strict";l();ba.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Aa=b((t_,Sa)=>{"use strict";l();var va=Ca(),ot=(e,t,r)=>{if(va(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(va(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),u=e+":"+t+"="+i+n+s+a;if(ot.cache.hasOwnProperty(u))return ot.cache[u].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=Fa(e)||Fa(t),p={min:e,max:t,a:c,b:f},h=[],y=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),c<0){let D=f<0?Math.abs(f):1;y=xa(D,Math.abs(c),p,o),c=p.a=0}return f>=0&&(h=xa(c,f,p,o)),p.negatives=y,p.positives=h,p.result=Rm(y,h,o),o.capture===!0?p.result=`(${p.result})`:o.wrap!==!1&&h.length+y.length>1&&(p.result=`(?:${p.result})`),ot.cache[u]=p,p.result};function Rm(e,t,r){let o=mo(e,t,"-",!1,r)||[],i=mo(t,e,"",!1,r)||[],n=mo(e,t,"-?",!0,r)||[];return o.concat(n).concat(i).join("|")}function Fm(e,t){let r=1,o=1,i=_a(e,r),n=new Set([t]);for(;e<=i&&i<=t;)n.add(i),r+=1,i=_a(e,r);for(i=Ea(t+1,o)-1;e<i&&i<=t;)n.add(i),o+=1,i=Ea(t+1,o)-1;return n=[...n],n.sort(Pm),n}function Sm(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let o=Am(e,t),i=o.length,n="",s=0;for(let a=0;a<i;a++){let[u,c]=o[a];u===c?n+=u:u!=="0"||c!=="9"?n+=km(u,c,r):s++}return s&&(n+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:n,count:[s],digits:i}}function xa(e,t,r,o){let i=Fm(e,t),n=[],s=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=Sm(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+Ra(a.count),s=c+1;continue}r.isPadded&&(d=Om(c,r,o)),f.string=d+f.pattern+Ra(f.count),n.push(f),s=c+1,a=f}return n}function mo(e,t,r,o,i){let n=[];for(let s of e){let{string:a}=s;!o&&!wa(t,"string",a)&&n.push(r+a),o&&wa(t,"string",a)&&n.push(r+a)}return n}function Am(e,t){let r=[];for(let o=0;o<e.length;o++)r.push([e[o],t[o]]);return r}function Pm(e,t){return e>t?1:t>e?-1:0}function wa(e,t,r){return e.some(o=>o[t]===r)}function _a(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ea(e,t){return e-e%Math.pow(10,t)}function Ra(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function km(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Fa(e){return/^-?(0+)\d/.test(e)}function Om(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}}`}}ot.cache={};ot.clearCache=()=>ot.cache={};Sa.exports=ot});var yo=b((n_,Ma)=>{"use strict";l();var Tm=Y("util"),ka=Aa(),Pa=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),$m=e=>t=>e===!0?Number(t):String(t),go=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ut=e=>Number.isInteger(+e),ho=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Bm=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Mm=(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},Cr=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},jm=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let o=t.capture?"":"?:",i="",n="",s;return e.positives.length&&(i=e.positives.map(a=>Cr(String(a),r)).join("|")),e.negatives.length&&(n=`-(${o}${e.negatives.map(a=>Cr(String(a),r)).join("|")})`),i&&n?s=`${i}|${n}`:s=i||n,t.wrap?`(${o}${s})`:s},Oa=(e,t,r,o)=>{if(r)return ka(e,t,{wrap:!1,...o});let i=String.fromCharCode(e);if(e===t)return i;let n=String.fromCharCode(t);return`[${i}-${n}]`},Ta=(e,t,r)=>{if(Array.isArray(e)){let o=r.wrap===!0,i=r.capture?"":"?:";return o?`(${i}${e.join("|")})`:e.join("|")}return ka(e,t,r)},$a=(...e)=>new RangeError("Invalid range arguments: "+Tm.inspect(...e)),Ba=(e,t,r)=>{if(r.strictRanges===!0)throw $a([e,t]);return[]},Lm=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Nm=(e,t,r=1,o={})=>{let i=Number(e),n=Number(t);if(!Number.isInteger(i)||!Number.isInteger(n)){if(o.strictRanges===!0)throw $a([e,t]);return[]}i===0&&(i=0),n===0&&(n=0);let s=i>n,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=ho(a)||ho(u)||ho(c),d=f?Math.max(a.length,u.length,c.length):0,p=f===!1&&Bm(e,t,o)===!1,h=o.transform||$m(p);if(o.toRegex&&r===1)return Oa(Cr(e,d),Cr(t,d),!0,o);let y={negatives:[],positives:[]},D=O=>y[O<0?"negatives":"positives"].push(Math.abs(O)),R=[],A=0;for(;s?i>=n:i<=n;)o.toRegex===!0&&r>1?D(i):R.push(Mm(h(i,A),d,p)),i=s?i-r:i+r,A++;return o.toRegex===!0?r>1?jm(y,o,d):Ta(R,null,{wrap:!1,...o}):R},Vm=(e,t,r=1,o={})=>{if(!Ut(e)&&e.length>1||!Ut(t)&&t.length>1)return Ba(e,t,o);let i=o.transform||(p=>String.fromCharCode(p)),n=`${e}`.charCodeAt(0),s=`${t}`.charCodeAt(0),a=n>s,u=Math.min(n,s),c=Math.max(n,s);if(o.toRegex&&r===1)return Oa(u,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?Ta(f,null,{wrap:!1,options:o}):f},br=(e,t,r,o={})=>{if(t==null&&go(e))return[e];if(!go(e)||!go(t))return Ba(e,t,o);if(typeof r=="function")return br(e,t,1,{transform:r});if(Pa(r))return br(e,t,0,r);let i={...o};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ut(r)?Ut(e)&&Ut(t)?Nm(e,t,r,i):Vm(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Pa(r)?Lm(r,i):br(e,t,1,r)};Ma.exports=br});var Na=b((i_,La)=>{"use strict";l();var Im=yo(),ja=yr(),Hm=(e,t={})=>{let r=(o,i={})=>{let n=ja.isInvalidBrace(i),s=o.invalid===!0&&t.escapeInvalid===!0,a=n===!0||s===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(o.isOpen===!0)return u+o.value;if(o.isClose===!0)return console.log("node.isClose",u,o.value),u+o.value;if(o.type==="open")return a?u+o.value:"(";if(o.type==="close")return a?u+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=ja.reduce(o.nodes),d=Im(...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)};La.exports=Hm});var Ha=b((a_,Ia)=>{"use strict";l();var qm=yo(),Va=Dr(),yt=yr(),it=(e="",t="",r=!1)=>{let o=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?yt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let n of i)o.push(it(n,t,r));else for(let n of t)r===!0&&typeof n=="string"&&(n=`{${n}}`),o.push(Array.isArray(n)?it(i,n,r):i+n);return yt.flatten(o)},Um=(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(it(a.pop(),Va(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(it(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=yt.reduce(i.nodes);if(yt.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=qm(...d,t);p.length===0&&(p=Va(i,t)),a.push(it(a.pop(),p)),i.nodes=[];return}let u=yt.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(it(a.pop(),c,u));continue}if(p.value&&p.type!=="open"){c.push(it(c.pop(),p.value));continue}p.nodes&&o(p,i)}return c};return yt.flatten(o(e))};Ia.exports=Um});var Ua=b((l_,qa)=>{"use strict";l();qa.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 Ka=b((f_,za)=>{"use strict";l();var Wm=Dr(),{MAX_LENGTH:Wa,CHAR_BACKSLASH:Do,CHAR_BACKTICK:Gm,CHAR_COMMA:Jm,CHAR_DOT:zm,CHAR_LEFT_PARENTHESES:Km,CHAR_RIGHT_PARENTHESES:Ym,CHAR_LEFT_CURLY_BRACE:Xm,CHAR_RIGHT_CURLY_BRACE:Qm,CHAR_LEFT_SQUARE_BRACKET:Ga,CHAR_RIGHT_SQUARE_BRACKET:Ja,CHAR_DOUBLE_QUOTE:Zm,CHAR_SINGLE_QUOTE:eg,CHAR_NO_BREAK_SPACE:tg,CHAR_ZERO_WIDTH_NOBREAK_SPACE:rg}=Ua(),ng=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},o=typeof r.maxLength=="number"?Math.min(Wa,r.maxLength):Wa;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,u=0,c=e.length,f=0,d=0,p,h=()=>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=h(),!(p===rg||p===tg)){if(p===Do){y({type:"text",value:(t.keepEscaping?p:"")+h()});continue}if(p===Ja){y({type:"text",value:"\\"+p});continue}if(p===Ga){u++;let D;for(;f<c&&(D=h());){if(p+=D,D===Ga){u++;continue}if(D===Do){p+=h();continue}if(D===Ja&&(u--,u===0))break}y({type:"text",value:p});continue}if(p===Km){s=y({type:"paren",nodes:[]}),n.push(s),y({type:"text",value:p});continue}if(p===Ym){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===Zm||p===eg||p===Gm){let D=p,R;for(t.keepQuotes!==!0&&(p="");f<c&&(R=h());){if(R===Do){p+=R+h();continue}if(R===D){t.keepQuotes===!0&&(p+=R);break}p+=R}y({type:"text",value:p});continue}if(p===Xm){d++;let R={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(R),n.push(s),y({type:"open",value:p});continue}if(p===Qm){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===Jm&&d>0){if(s.ranges>0){s.ranges=0;let D=s.nodes.shift();s.nodes=[D,{type:"text",value:Wm(s)}]}y({type:"comma",value:p}),s.commas++;continue}if(p===zm&&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 R=D[D.length-1];R.value+=a.value+p,a=R,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],R=D.nodes.indexOf(s);D.nodes.splice(R,1,...s.nodes)}while(n.length>0);return y({type:"eos"}),i};za.exports=ng});var Qa=b((d_,Xa)=>{"use strict";l();var Ya=Dr(),og=Na(),ig=Ha(),sg=Ka(),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={})=>sg(e,t);fe.stringify=(e,t={})=>Ya(typeof e=="string"?fe.parse(e,t):e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),og(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=ig(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);Xa.exports=fe});var Wt=b((g_,nu)=>{"use strict";l();var ag=Y("path"),_e="\\\\/",Za=`[^${_e}]`,$e="\\.",ug="\\+",lg="\\?",vr="\\/",cg="(?=.)",eu="[^/]",bo=`(?:${vr}|$)`,tu=`(?:^|${vr})`,Co=`${$e}{1,2}${bo}`,fg=`(?!${$e})`,pg=`(?!${tu}${Co})`,dg=`(?!${$e}{0,1}${bo})`,mg=`(?!${Co})`,gg=`[^.${vr}]`,hg=`${eu}*?`,ru={DOT_LITERAL:$e,PLUS_LITERAL:ug,QMARK_LITERAL:lg,SLASH_LITERAL:vr,ONE_CHAR:cg,QMARK:eu,END_ANCHOR:bo,DOTS_SLASH:Co,NO_DOT:fg,NO_DOTS:pg,NO_DOT_SLASH:dg,NO_DOTS_SLASH:mg,QMARK_NO_DOT:gg,STAR:hg,START_ANCHOR:tu},yg={...ru,SLASH_LITERAL:`[${_e}]`,QMARK:Za,STAR:`${Za}*?`,DOTS_SLASH:`${$e}{1,2}(?:[${_e}]|$)`,NO_DOT:`(?!${$e})`,NO_DOTS:`(?!(?:^|[${_e}])${$e}{1,2}(?:[${_e}]|$))`,NO_DOT_SLASH:`(?!${$e}{0,1}(?:[${_e}]|$))`,NO_DOTS_SLASH:`(?!${$e}{1,2}(?:[${_e}]|$))`,QMARK_NO_DOT:`[^.${_e}]`,START_ANCHOR:`(?:^|[${_e}])`,END_ANCHOR:`(?:[${_e}]|$)`},Dg={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"};nu.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Dg,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:ag.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?yg:ru}}});var Gt=b(le=>{"use strict";l();var bg=Y("path"),Cg=process.platform==="win32",{REGEX_BACKSLASH:vg,REGEX_REMOVE_BACKSLASH:xg,REGEX_SPECIAL_CHARS:wg,REGEX_SPECIAL_CHARS_GLOBAL:_g}=Wt();le.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);le.hasRegexChars=e=>wg.test(e);le.isRegexChar=e=>e.length===1&&le.hasRegexChars(e);le.escapeRegex=e=>e.replace(_g,"\\$1");le.toPosixSlashes=e=>e.replace(vg,"/");le.removeBackslashes=e=>e.replace(xg,t=>t==="\\"?"":t);le.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};le.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Cg===!0||bg.sep==="\\";le.escapeLast=(e,t,r)=>{let o=e.lastIndexOf(t,r);return o===-1?e:e[o-1]==="\\"?le.escapeLast(e,t,o-1):`${e.slice(0,o)}\\${e.slice(o)}`};le.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};le.wrapOutput=(e,t={},r={})=>{let o=r.contains?"":"^",i=r.contains?"":"$",n=`${o}(?:${e})${i}`;return t.negated===!0&&(n=`(?:^(?!${n}).*$)`),n}});var fu=b((b_,cu)=>{"use strict";l();var ou=Gt(),{CHAR_ASTERISK:vo,CHAR_AT:Eg,CHAR_BACKWARD_SLASH:Jt,CHAR_COMMA:Rg,CHAR_DOT:xo,CHAR_EXCLAMATION_MARK:wo,CHAR_FORWARD_SLASH:lu,CHAR_LEFT_CURLY_BRACE:_o,CHAR_LEFT_PARENTHESES:Eo,CHAR_LEFT_SQUARE_BRACKET:Fg,CHAR_PLUS:Sg,CHAR_QUESTION_MARK:iu,CHAR_RIGHT_CURLY_BRACE:Ag,CHAR_RIGHT_PARENTHESES:su,CHAR_RIGHT_SQUARE_BRACKET:Pg}=Wt(),au=e=>e===lu||e===Jt,uu=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},kg=(e,t)=>{let r=t||{},o=e.length-1,i=r.parts===!0||r.scanToEnd===!0,n=[],s=[],a=[],u=e,c=-1,f=0,d=0,p=!1,h=!1,y=!1,D=!1,R=!1,A=!1,O=!1,T=!1,M=!1,S=!1,L=0,$,P,I={value:"",depth:0,isGlob:!1},re=()=>c>=o,w=()=>u.charCodeAt(c+1),G=()=>($=P,u.charCodeAt(++c));for(;c<o;){P=G();let ie;if(P===Jt){O=I.backslashes=!0,P=G(),P===_o&&(A=!0);continue}if(A===!0||P===_o){for(L++;re()!==!0&&(P=G());){if(P===Jt){O=I.backslashes=!0,G();continue}if(P===_o){L++;continue}if(A!==!0&&P===xo&&(P=G())===xo){if(p=I.isBrace=!0,y=I.isGlob=!0,S=!0,i===!0)continue;break}if(A!==!0&&P===Rg){if(p=I.isBrace=!0,y=I.isGlob=!0,S=!0,i===!0)continue;break}if(P===Ag&&(L--,L===0)){A=!1,p=I.isBrace=!0,S=!0;break}}if(i===!0)continue;break}if(P===lu){if(n.push(c),s.push(I),I={value:"",depth:0,isGlob:!1},S===!0)continue;if($===xo&&c===f+1){f+=2;continue}d=c+1;continue}if(r.noext!==!0&&(P===Sg||P===Eg||P===vo||P===iu||P===wo)===!0&&w()===Eo){if(y=I.isGlob=!0,D=I.isExtglob=!0,S=!0,P===wo&&c===f&&(M=!0),i===!0){for(;re()!==!0&&(P=G());){if(P===Jt){O=I.backslashes=!0,P=G();continue}if(P===su){y=I.isGlob=!0,S=!0;break}}continue}break}if(P===vo){if($===vo&&(R=I.isGlobstar=!0),y=I.isGlob=!0,S=!0,i===!0)continue;break}if(P===iu){if(y=I.isGlob=!0,S=!0,i===!0)continue;break}if(P===Fg){for(;re()!==!0&&(ie=G());){if(ie===Jt){O=I.backslashes=!0,G();continue}if(ie===Pg){h=I.isBracket=!0,y=I.isGlob=!0,S=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&P===wo&&c===f){T=I.negated=!0,f++;continue}if(r.noparen!==!0&&P===Eo){if(y=I.isGlob=!0,i===!0){for(;re()!==!0&&(P=G());){if(P===Eo){O=I.backslashes=!0,P=G();continue}if(P===su){S=!0;break}}continue}break}if(y===!0){if(S=!0,i===!0)continue;break}}r.noext===!0&&(D=!1,y=!1);let q=u,Ne="",v="";f>0&&(Ne=u.slice(0,f),u=u.slice(f),d-=f),q&&y===!0&&d>0?(q=u.slice(0,d),v=u.slice(d)):y===!0?(q="",v=u):q=u,q&&q!==""&&q!=="/"&&q!==u&&au(q.charCodeAt(q.length-1))&&(q=q.slice(0,-1)),r.unescape===!0&&(v&&(v=ou.removeBackslashes(v)),q&&O===!0&&(q=ou.removeBackslashes(q)));let x={prefix:Ne,input:e,start:f,base:q,glob:v,isBrace:p,isBracket:h,isGlob:y,isExtglob:D,isGlobstar:R,negated:T,negatedExtglob:M};if(r.tokens===!0&&(x.maxDepth=0,au(P)||s.push(I),x.tokens=s),r.parts===!0||r.tokens===!0){let ie;for(let V=0;V<n.length;V++){let xe=ie?ie+1:f,we=n[V],ce=e.slice(xe,we);r.tokens&&(V===0&&f!==0?(s[V].isPrefix=!0,s[V].value=Ne):s[V].value=ce,uu(s[V]),x.maxDepth+=s[V].depth),(V!==0||ce!=="")&&a.push(ce),ie=we}if(ie&&ie+1<e.length){let V=e.slice(ie+1);a.push(V),r.tokens&&(s[s.length-1].value=V,uu(s[s.length-1]),x.maxDepth+=s[s.length-1].depth)}x.slashes=n,x.parts=a}return x};cu.exports=kg});var mu=b((v_,du)=>{"use strict";l();var xr=Wt(),pe=Gt(),{MAX_LENGTH:wr,POSIX_REGEX_SOURCE:Og,REGEX_NON_SPECIAL_CHARS:Tg,REGEX_SPECIAL_CHARS_BACKREF:$g,REPLACEMENTS:pu}=xr,Bg=(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},Dt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ro=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=pu[e]||e;let r={...t},o=typeof r.maxLength=="number"?Math.min(wr,r.maxLength):wr,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?"":"?:",u=pe.isWindows(t),c=xr.globChars(u),f=xr.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:h,ONE_CHAR:y,DOTS_SLASH:D,NO_DOT:R,NO_DOT_SLASH:A,NO_DOTS_SLASH:O,QMARK:T,QMARK_NO_DOT:M,STAR:S,START_ANCHOR:L}=c,$=E=>`(${a}(?:(?!${L}${E.dot?D:d}).)*?)`,P=r.dot?"":R,I=r.dot?T:M,re=r.bash===!0?$(r):S;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 G=[],q=[],Ne=[],v=n,x,ie=()=>w.index===i-1,V=w.peek=(E=1)=>e[w.index+E],xe=w.advance=()=>e[++w.index]||"",we=()=>e.slice(w.index+1),ce=(E="",U=0)=>{w.consumed+=E,w.index+=U},fr=E=>{w.output+=E.output!=null?E.output:E.value,ce(E.value)},Zd=()=>{let E=1;for(;V()==="!"&&(V(2)!=="("||V(3)==="?");)xe(),w.start++,E++;return E%2===0?!1:(w.negated=!0,w.start++,!0)},pr=E=>{w[E]++,Ne.push(E)},nt=E=>{w[E]--,Ne.pop()},j=E=>{if(v.type==="globstar"){let U=w.braces>0&&(E.type==="comma"||E.type==="brace"),_=E.extglob===!0||G.length&&(E.type==="pipe"||E.type==="paren");E.type!=="slash"&&E.type!=="paren"&&!U&&!_&&(w.output=w.output.slice(0,-v.output.length),v.type="star",v.value="*",v.output=re,w.output+=v.output)}if(G.length&&E.type!=="paren"&&(G[G.length-1].inner+=E.value),(E.value||E.output)&&fr(E),v&&v.type==="text"&&E.type==="text"){v.value+=E.value,v.output=(v.output||"")+E.value;return}E.prev=v,s.push(E),v=E},dr=(E,U)=>{let _={...f[U],conditions:1,inner:""};_.prev=v,_.parens=w.parens,_.output=w.output;let B=(r.capture?"(":"")+_.open;pr("parens"),j({type:E,value:U,output:w.output?"":y}),j({type:"paren",extglob:!0,value:xe(),output:B}),G.push(_)},em=E=>{let U=E.close+(r.capture?")":""),_;if(E.type==="negate"){let B=re;if(E.inner&&E.inner.length>1&&E.inner.includes("/")&&(B=$(r)),(B!==re||ie()||/^\)+$/.test(we()))&&(U=E.close=`)$))${B}`),E.inner.includes("*")&&(_=we())&&/^\.[^\\/.]+$/.test(_)){let K=Ro(_,{...t,fastpaths:!1}).output;U=E.close=`)${K})${B})`}E.prev.type==="bos"&&(w.negatedExtglob=!0)}j({type:"paren",extglob:!0,value:x,output:U}),nt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let E=!1,U=e.replace($g,(_,B,K,se,Z,uo)=>se==="\\"?(E=!0,_):se==="?"?B?B+se+(Z?T.repeat(Z.length):""):uo===0?I+(Z?T.repeat(Z.length):""):T.repeat(K.length):se==="."?d.repeat(K.length):se==="*"?B?B+se+(Z?re:""):re:B?_:`\\${_}`);return E===!0&&(r.unescape===!0?U=U.replace(/\\/g,""):U=U.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),U===e&&r.contains===!0?(w.output=e,w):(w.output=pe.wrapOutput(U,w,t),w)}for(;!ie();){if(x=xe(),x==="\0")continue;if(x==="\\"){let _=V();if(_==="/"&&r.bash!==!0||_==="."||_===";")continue;if(!_){x+="\\",j({type:"text",value:x});continue}let B=/^\\+/.exec(we()),K=0;if(B&&B[0].length>2&&(K=B[0].length,w.index+=K,K%2!==0&&(x+="\\")),r.unescape===!0?x=xe():x+=xe(),w.brackets===0){j({type:"text",value:x});continue}}if(w.brackets>0&&(x!=="]"||v.value==="["||v.value==="[^")){if(r.posix!==!1&&x===":"){let _=v.value.slice(1);if(_.includes("[")&&(v.posix=!0,_.includes(":"))){let B=v.value.lastIndexOf("["),K=v.value.slice(0,B),se=v.value.slice(B+2),Z=Og[se];if(Z){v.value=K+Z,w.backtrack=!0,xe(),!n.output&&s.indexOf(v)===1&&(n.output=y);continue}}}(x==="["&&V()!==":"||x==="-"&&V()==="]")&&(x=`\\${x}`),x==="]"&&(v.value==="["||v.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&v.value==="["&&(x="^"),v.value+=x,fr({value:x});continue}if(w.quotes===1&&x!=='"'){x=pe.escapeRegex(x),v.value+=x,fr({value:x});continue}if(x==='"'){w.quotes=w.quotes===1?0:1,r.keepQuotes===!0&&j({type:"text",value:x});continue}if(x==="("){pr("parens"),j({type:"paren",value:x});continue}if(x===")"){if(w.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Dt("opening","("));let _=G[G.length-1];if(_&&w.parens===_.parens+1){em(G.pop());continue}j({type:"paren",value:x,output:w.parens?")":"\\)"}),nt("parens");continue}if(x==="["){if(r.nobracket===!0||!we().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Dt("closing","]"));x=`\\${x}`}else pr("brackets");j({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||v&&v.type==="bracket"&&v.value.length===1){j({type:"text",value:x,output:`\\${x}`});continue}if(w.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Dt("opening","["));j({type:"text",value:x,output:`\\${x}`});continue}nt("brackets");let _=v.value.slice(1);if(v.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(x=`/${x}`),v.value+=x,fr({value:x}),r.literalBrackets===!1||pe.hasRegexChars(_))continue;let B=pe.escapeRegex(v.value);if(w.output=w.output.slice(0,-v.value.length),r.literalBrackets===!0){w.output+=B,v.value=B;continue}v.value=`(${a}${B}|${v.value})`,w.output+=v.value;continue}if(x==="{"&&r.nobrace!==!0){pr("braces");let _={type:"brace",value:x,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};q.push(_),j(_);continue}if(x==="}"){let _=q[q.length-1];if(r.nobrace===!0||!_){j({type:"text",value:x,output:x});continue}let B=")";if(_.dots===!0){let K=s.slice(),se=[];for(let Z=K.length-1;Z>=0&&(s.pop(),K[Z].type!=="brace");Z--)K[Z].type!=="dots"&&se.unshift(K[Z].value);B=Bg(se,r),w.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){let K=w.output.slice(0,_.outputIndex),se=w.tokens.slice(_.tokensIndex);_.value=_.output="\\{",x=B="\\}",w.output=K;for(let Z of se)w.output+=Z.output||Z.value}j({type:"brace",value:x,output:B}),nt("braces"),q.pop();continue}if(x==="|"){G.length>0&&G[G.length-1].conditions++,j({type:"text",value:x});continue}if(x===","){let _=x,B=q[q.length-1];B&&Ne[Ne.length-1]==="braces"&&(B.comma=!0,_="|"),j({type:"comma",value:x,output:_});continue}if(x==="/"){if(v.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",s.pop(),v=n;continue}j({type:"slash",value:x,output:h});continue}if(x==="."){if(w.braces>0&&v.type==="dot"){v.value==="."&&(v.output=d);let _=q[q.length-1];v.type="dots",v.output+=x,v.value+=x,_.dots=!0;continue}if(w.braces+w.parens===0&&v.type!=="bos"&&v.type!=="slash"){j({type:"text",value:x,output:d});continue}j({type:"dot",value:x,output:d});continue}if(x==="?"){if(!(v&&v.value==="(")&&r.noextglob!==!0&&V()==="("&&V(2)!=="?"){dr("qmark",x);continue}if(v&&v.type==="paren"){let B=V(),K=x;if(B==="<"&&!pe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(v.value==="("&&!/[!=<:]/.test(B)||B==="<"&&!/<([!=]|\w+>)/.test(we()))&&(K=`\\${x}`),j({type:"text",value:x,output:K});continue}if(r.dot!==!0&&(v.type==="slash"||v.type==="bos")){j({type:"qmark",value:x,output:M});continue}j({type:"qmark",value:x,output:T});continue}if(x==="!"){if(r.noextglob!==!0&&V()==="("&&(V(2)!=="?"||!/[!=<:]/.test(V(3)))){dr("negate",x);continue}if(r.nonegate!==!0&&w.index===0){Zd();continue}}if(x==="+"){if(r.noextglob!==!0&&V()==="("&&V(2)!=="?"){dr("plus",x);continue}if(v&&v.value==="("||r.regex===!1){j({type:"plus",value:x,output:p});continue}if(v&&(v.type==="bracket"||v.type==="paren"||v.type==="brace")||w.parens>0){j({type:"plus",value:x});continue}j({type:"plus",value:p});continue}if(x==="@"){if(r.noextglob!==!0&&V()==="("&&V(2)!=="?"){j({type:"at",extglob:!0,value:x,output:""});continue}j({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let _=Tg.exec(we());_&&(x+=_[0],w.index+=_[0].length),j({type:"text",value:x});continue}if(v&&(v.type==="globstar"||v.star===!0)){v.type="star",v.star=!0,v.value+=x,v.output=re,w.backtrack=!0,w.globstar=!0,ce(x);continue}let E=we();if(r.noextglob!==!0&&/^\([^?]/.test(E)){dr("star",x);continue}if(v.type==="star"){if(r.noglobstar===!0){ce(x);continue}let _=v.prev,B=_.prev,K=_.type==="slash"||_.type==="bos",se=B&&(B.type==="star"||B.type==="globstar");if(r.bash===!0&&(!K||E[0]&&E[0]!=="/")){j({type:"star",value:x,output:""});continue}let Z=w.braces>0&&(_.type==="comma"||_.type==="brace"),uo=G.length&&(_.type==="pipe"||_.type==="paren");if(!K&&_.type!=="paren"&&!Z&&!uo){j({type:"star",value:x,output:""});continue}for(;E.slice(0,3)==="/**";){let mr=e[w.index+4];if(mr&&mr!=="/")break;E=E.slice(3),ce("/**",3)}if(_.type==="bos"&&ie()){v.type="globstar",v.value+=x,v.output=$(r),w.output=v.output,w.globstar=!0,ce(x);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!se&&ie()){w.output=w.output.slice(0,-(_.output+v.output).length),_.output=`(?:${_.output}`,v.type="globstar",v.output=$(r)+(r.strictSlashes?")":"|$)"),v.value+=x,w.globstar=!0,w.output+=_.output+v.output,ce(x);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&E[0]==="/"){let mr=E[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(_.output+v.output).length),_.output=`(?:${_.output}`,v.type="globstar",v.output=`${$(r)}${h}|${h}${mr})`,v.value+=x,w.output+=_.output+v.output,w.globstar=!0,ce(x+xe()),j({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&E[0]==="/"){v.type="globstar",v.value+=x,v.output=`(?:^|${h}|${$(r)}${h})`,w.output=v.output,w.globstar=!0,ce(x+xe()),j({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-v.output.length),v.type="globstar",v.output=$(r),v.value+=x,w.output+=v.output,w.globstar=!0,ce(x);continue}let U={type:"star",value:x,output:re};if(r.bash===!0){U.output=".*?",(v.type==="bos"||v.type==="slash")&&(U.output=P+U.output),j(U);continue}if(v&&(v.type==="bracket"||v.type==="paren")&&r.regex===!0){U.output=x,j(U);continue}(w.index===w.start||v.type==="slash"||v.type==="dot")&&(v.type==="dot"?(w.output+=A,v.output+=A):r.dot===!0?(w.output+=O,v.output+=O):(w.output+=P,v.output+=P),V()!=="*"&&(w.output+=y,v.output+=y)),j(U)}for(;w.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Dt("closing","]"));w.output=pe.escapeLast(w.output,"["),nt("brackets")}for(;w.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Dt("closing",")"));w.output=pe.escapeLast(w.output,"("),nt("parens")}for(;w.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Dt("closing","}"));w.output=pe.escapeLast(w.output,"{"),nt("braces")}if(r.strictSlashes!==!0&&(v.type==="star"||v.type==="bracket")&&j({type:"maybe_slash",value:"",output:`${h}?`}),w.backtrack===!0){w.output="";for(let E of w.tokens)w.output+=E.output!=null?E.output:E.value,E.suffix&&(w.output+=E.suffix)}return w};Ro.fastpaths=(e,t)=>{let r={...t},o=typeof r.maxLength=="number"?Math.min(wr,r.maxLength):wr,i=e.length;if(i>o)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${o}`);e=pu[e]||e;let n=pe.isWindows(t),{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:h,START_ANCHOR:y}=xr.globChars(n),D=r.dot?d:f,R=r.dot?p:f,A=r.capture?"":"?:",O={negated:!1,prefix:""},T=r.bash===!0?".*?":h;r.capture&&(T=`(${T})`);let M=P=>P.noglobstar===!0?T:`(${A}(?:(?!${y}${P.dot?c:s}).)*?)`,S=P=>{switch(P){case"*":return`${D}${u}${T}`;case".*":return`${s}${u}${T}`;case"*.*":return`${D}${T}${s}${u}${T}`;case"*/*":return`${D}${T}${a}${u}${R}${T}`;case"**":return D+M(r);case"**/*":return`(?:${D}${M(r)}${a})?${R}${u}${T}`;case"**/*.*":return`(?:${D}${M(r)}${a})?${R}${T}${s}${u}${T}`;case"**/.*":return`(?:${D}${M(r)}${a})?${s}${u}${T}`;default:{let I=/^(.*?)\.(\w+)$/.exec(P);if(!I)return;let re=S(I[1]);return re?re+s+I[2]:void 0}}},L=pe.removePrefix(e,O),$=S(L);return $&&r.strictSlashes!==!0&&($+=`${a}?`),$};du.exports=Ro});var hu=b((w_,gu)=>{"use strict";l();var Mg=Y("path"),jg=fu(),Fo=mu(),So=Gt(),Lg=Wt(),Ng=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 h of f){let y=h(p);if(y)return y}return!1}}let o=Ng(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=So.isWindows(t),s=o?X.compileRe(e,t):X.makeRe(e,t,!1,!0),a=s.state;delete s.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=X(i.ignore,f,r)}let c=(f,d=!1)=>{let{isMatch:p,match:h,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:h,isMatch:p};return typeof i.onResult=="function"&&i.onResult(D),p===!1?(D.isMatch=!1,d?D:!1):u(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?So.toPosixSlashes:null),a=e===o,u=a&&s?s(e):e;return a===!1&&(u=s?s(e):e,a=u===o),(a===!1||n.capture===!0)&&(n.matchBase===!0||n.basename===!0?a=X.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};X.matchBase=(e,t,r,o=So.isWindows(r))=>(t instanceof RegExp?t:X.makeRe(t,r)).test(Mg.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)=>jg(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 u=X.toRegex(a,t);return o===!0&&(u.state=e),u};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=Lg;gu.exports=X});var Du=b((E_,yu)=>{"use strict";l();yu.exports=hu()});var _u=b((F_,wu)=>{"use strict";l();var Cu=Y("util"),vu=Qa(),Ee=Du(),Ao=Gt(),bu=e=>e===""||e==="./",xu=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},W=(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=Ee(String(t[f]),{...r,onResult:a},!0),p=d.state.negated||d.state.negatedExtglob;p&&s++;for(let h of e){let y=d(h,!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};W.match=W;W.matcher=(e,t)=>Ee(e,t);W.isMatch=(e,t,r)=>Ee(t,r)(e);W.any=W.isMatch;W.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(W(e,t,{...r,onResult:n}));for(let a of i)s.has(a)||o.add(a);return[...o]};W.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Cu.inspect(e)}"`);if(Array.isArray(t))return t.some(o=>W.contains(e,o,r));if(typeof t=="string"){if(bu(e)||bu(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return W.isMatch(e,t,{...r,contains:!0})};W.matchKeys=(e,t,r)=>{if(!Ao.isObject(e))throw new TypeError("Expected the first argument to be an object");let o=W(Object.keys(e),t,r),i={};for(let n of o)i[n]=e[n];return i};W.some=(e,t,r)=>{let o=[].concat(e);for(let i of[].concat(t)){let n=Ee(String(i),r);if(o.some(s=>n(s)))return!0}return!1};W.every=(e,t,r)=>{let o=[].concat(e);for(let i of[].concat(t)){let n=Ee(String(i),r);if(!o.every(s=>n(s)))return!1}return!0};W.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Cu.inspect(e)}"`);return[].concat(t).every(o=>Ee(o,r)(e))};W.capture=(e,t,r)=>{let o=Ao.isWindows(r),n=Ee.makeRe(String(e),{...r,capture:!0}).exec(o?Ao.toPosixSlashes(t):t);if(n)return n.slice(1).map(s=>s===void 0?"":s)};W.makeRe=(...e)=>Ee.makeRe(...e);W.scan=(...e)=>Ee.scan(...e);W.parse=(e,t)=>{let r=[];for(let o of[].concat(e||[]))for(let i of vu(String(o),t))r.push(Ee.parse(i,t));return r};W.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!xu(e)?[e]:vu(e,t)};W.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return W.braces(e,{...t,expand:!0})};W.hasBraces=xu;wu.exports=W});var Ou=b(k=>{"use strict";l();Object.defineProperty(k,"__esModule",{value:!0});k.removeDuplicateSlashes=k.matchAny=k.convertPatternsToRe=k.makeRe=k.getPatternParts=k.expandBraceExpansion=k.expandPatternsWithBraceExpansion=k.isAffectDepthOfReadingPattern=k.endsWithSlashGlobStar=k.hasGlobStar=k.getBaseDirectory=k.isPatternRelatedToParentDirectory=k.getPatternsOutsideCurrentDirectory=k.getPatternsInsideCurrentDirectory=k.getPositivePatterns=k.getNegativePatterns=k.isPositivePattern=k.isNegativePattern=k.convertToNegativePattern=k.convertToPositivePattern=k.isDynamicPattern=k.isStaticPattern=void 0;var Vg=Y("path"),Ig=ha(),Po=_u(),Eu="**",Hg="\\",qg=/[*?]|^!/,Ug=/\[[^[]*]/,Wg=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Gg=/[!*+?@]\([^(]*\)/,Jg=/,|\.\./,zg=/(?!^)\/{2,}/g;function Ru(e,t={}){return!Fu(e,t)}k.isStaticPattern=Ru;function Fu(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Hg)||qg.test(e)||Ug.test(e)||Wg.test(e)||t.extglob!==!1&&Gg.test(e)||t.braceExpansion!==!1&&Kg(e))}k.isDynamicPattern=Fu;function Kg(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 Jg.test(o)}function Yg(e){return _r(e)?e.slice(1):e}k.convertToPositivePattern=Yg;function Xg(e){return"!"+e}k.convertToNegativePattern=Xg;function _r(e){return e.startsWith("!")&&e[1]!=="("}k.isNegativePattern=_r;function Su(e){return!_r(e)}k.isPositivePattern=Su;function Qg(e){return e.filter(_r)}k.getNegativePatterns=Qg;function Zg(e){return e.filter(Su)}k.getPositivePatterns=Zg;function eh(e){return e.filter(t=>!ko(t))}k.getPatternsInsideCurrentDirectory=eh;function th(e){return e.filter(ko)}k.getPatternsOutsideCurrentDirectory=th;function ko(e){return e.startsWith("..")||e.startsWith("./..")}k.isPatternRelatedToParentDirectory=ko;function rh(e){return Ig(e,{flipBackslashes:!1})}k.getBaseDirectory=rh;function nh(e){return e.includes(Eu)}k.hasGlobStar=nh;function Au(e){return e.endsWith("/"+Eu)}k.endsWithSlashGlobStar=Au;function oh(e){let t=Vg.basename(e);return Au(e)||Ru(t)}k.isAffectDepthOfReadingPattern=oh;function ih(e){return e.reduce((t,r)=>t.concat(Pu(r)),[])}k.expandPatternsWithBraceExpansion=ih;function Pu(e){let t=Po.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,o)=>r.length-o.length),t.filter(r=>r!=="")}k.expandBraceExpansion=Pu;function sh(e,t){let{parts:r}=Po.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}k.getPatternParts=sh;function ku(e,t){return Po.makeRe(e,t)}k.makeRe=ku;function ah(e,t){return e.map(r=>ku(r,t))}k.convertPatternsToRe=ah;function uh(e,t){return t.some(r=>r.test(e))}k.matchAny=uh;function lh(e){return e.replace(zg,"/")}k.removeDuplicateSlashes=lh});var Mu=b((k_,Bu)=>{"use strict";l();var ch=Y("stream"),Tu=ch.PassThrough,fh=Array.prototype.slice;Bu.exports=ph;function ph(){let e=[],t=fh.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=Tu(o);function a(){for(let f=0,d=arguments.length;f<d;f++)e.push($u(arguments[f],o));return u(),this}function u(){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,u())}function h(y){function D(){y.removeListener("merge2UnpipeEnd",D),y.removeListener("end",D),n&&y.removeListener("error",R),p()}function R(A){s.emit("error",A)}if(y._readableState.endEmitted)return p();y.on("merge2UnpipeEnd",D),y.on("end",D),n&&y.on("error",R),y.pipe(s,{end:!1}),y.resume()}for(let y=0;y<f.length;y++)h(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 $u(e,t){if(Array.isArray(e))for(let r=0,o=e.length;r<o;r++)e[r]=$u(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Tu(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Lu=b(Er=>{"use strict";l();Object.defineProperty(Er,"__esModule",{value:!0});Er.merge=void 0;var dh=Mu();function mh(e){let t=dh(e);return e.forEach(r=>{r.once("error",o=>t.emit("error",o))}),t.once("close",()=>ju(e)),t.once("end",()=>ju(e)),t}Er.merge=mh;function ju(e){e.forEach(t=>t.emit("close"))}});var Nu=b(bt=>{"use strict";l();Object.defineProperty(bt,"__esModule",{value:!0});bt.isEmpty=bt.isString=void 0;function gh(e){return typeof e=="string"}bt.isString=gh;function hh(e){return e===""}bt.isEmpty=hh});var Be=b(ne=>{"use strict";l();Object.defineProperty(ne,"__esModule",{value:!0});ne.string=ne.stream=ne.pattern=ne.path=ne.fs=ne.errno=ne.array=void 0;var yh=na();ne.array=yh;var Dh=oa();ne.errno=Dh;var bh=ia();ne.fs=bh;var Ch=la();ne.path=Ch;var vh=Ou();ne.pattern=vh;var xh=Lu();ne.stream=xh;var wh=Nu();ne.string=wh});var qu=b(oe=>{"use strict";l();Object.defineProperty(oe,"__esModule",{value:!0});oe.convertPatternGroupToTask=oe.convertPatternGroupsToTasks=oe.groupPatternsByBaseDirectory=oe.getNegativePatternsAsPositive=oe.getPositivePatterns=oe.convertPatternsToTasks=oe.generate=void 0;var be=Be();function _h(e,t){let r=Vu(e,t),o=Vu(t.ignore,t),i=Iu(r),n=Hu(r,o),s=i.filter(f=>be.pattern.isStaticPattern(f,t)),a=i.filter(f=>be.pattern.isDynamicPattern(f,t)),u=Oo(s,n,!1),c=Oo(a,n,!0);return u.concat(c)}oe.generate=_h;function Vu(e,t){let r=e;return t.braceExpansion&&(r=be.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(o=>o.includes("/")?o:`**/${o}`)),r.map(o=>be.pattern.removeDuplicateSlashes(o))}function Oo(e,t,r){let o=[],i=be.pattern.getPatternsOutsideCurrentDirectory(e),n=be.pattern.getPatternsInsideCurrentDirectory(e),s=To(i),a=To(n);return o.push(...$o(s,t,r)),"."in a?o.push(Bo(".",n,t,r)):o.push(...$o(a,t,r)),o}oe.convertPatternsToTasks=Oo;function Iu(e){return be.pattern.getPositivePatterns(e)}oe.getPositivePatterns=Iu;function Hu(e,t){return be.pattern.getNegativePatterns(e).concat(t).map(be.pattern.convertToPositivePattern)}oe.getNegativePatternsAsPositive=Hu;function To(e){let t={};return e.reduce((r,o)=>{let i=be.pattern.getBaseDirectory(o);return i in r?r[i].push(o):r[i]=[o],r},t)}oe.groupPatternsByBaseDirectory=To;function $o(e,t,r){return Object.keys(e).map(o=>Bo(o,e[o],t,r))}oe.convertPatternGroupsToTasks=$o;function Bo(e,t,r,o){return{dynamic:o,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(be.pattern.convertToNegativePattern))}}oe.convertPatternGroupToTask=Bo});var Wu=b(Rr=>{"use strict";l();Object.defineProperty(Rr,"__esModule",{value:!0});Rr.read=void 0;function Eh(e,t,r){t.fs.lstat(e,(o,i)=>{if(o!==null){Uu(r,o);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Mo(r,i);return}t.fs.stat(e,(n,s)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){Uu(r,n);return}Mo(r,i);return}t.markSymbolicLink&&(s.isSymbolicLink=()=>!0),Mo(r,s)})})}Rr.read=Eh;function Uu(e,t){e(t)}function Mo(e,t){e(null,t)}});var Gu=b(Fr=>{"use strict";l();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.read=void 0;function Rh(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}}Fr.read=Rh});var Ju=b(Ve=>{"use strict";l();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.createFileSystemAdapter=Ve.FILE_SYSTEM_ADAPTER=void 0;var Sr=Y("fs");Ve.FILE_SYSTEM_ADAPTER={lstat:Sr.lstat,stat:Sr.stat,lstatSync:Sr.lstatSync,statSync:Sr.statSync};function Fh(e){return e===void 0?Ve.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ve.FILE_SYSTEM_ADAPTER),e)}Ve.createFileSystemAdapter=Fh});var zu=b(Lo=>{"use strict";l();Object.defineProperty(Lo,"__esModule",{value:!0});var Sh=Ju(),jo=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Sh.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}};Lo.default=jo});var st=b(Ie=>{"use strict";l();Object.defineProperty(Ie,"__esModule",{value:!0});Ie.statSync=Ie.stat=Ie.Settings=void 0;var Ku=Wu(),Ah=Gu(),No=zu();Ie.Settings=No.default;function Ph(e,t,r){if(typeof t=="function"){Ku.read(e,Vo(),t);return}Ku.read(e,Vo(t),r)}Ie.stat=Ph;function kh(e,t){let r=Vo(t);return Ah.read(e,r)}Ie.statSync=kh;function Vo(e={}){return e instanceof No.default?e:new No.default(e)}});var Qu=b((X_,Xu)=>{"use strict";l();var Yu;Xu.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Yu||(Yu=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var el=b((Z_,Zu)=>{"use strict";l();Zu.exports=Th;var Oh=Qu();function Th(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(u){function c(){t&&t(u,r),t=null}n?Oh(c):c()}function a(u,c,f){r[u]=f,(--o===0||c)&&s(c)}o?i?i.forEach(function(u){e[u](function(c,f){a(u,c,f)})}):e.forEach(function(u,c){u(function(f,d){a(c,f,d)})}):s(null),n=!1}});var Io=b(Pr=>{"use strict";l();Object.defineProperty(Pr,"__esModule",{value:!0});Pr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Ar=process.versions.node.split(".");if(Ar[0]===void 0||Ar[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var tl=Number.parseInt(Ar[0],10),$h=Number.parseInt(Ar[1],10),rl=10,Bh=10,Mh=tl>rl,jh=tl===rl&&$h>=Bh;Pr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Mh||jh});var nl=b(kr=>{"use strict";l();Object.defineProperty(kr,"__esModule",{value:!0});kr.createDirentFromStats=void 0;var Ho=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 Lh(e,t){return new Ho(e,t)}kr.createDirentFromStats=Lh});var qo=b(Or=>{"use strict";l();Object.defineProperty(Or,"__esModule",{value:!0});Or.fs=void 0;var Nh=nl();Or.fs=Nh});var Uo=b(Tr=>{"use strict";l();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.joinPathSegments=void 0;function Vh(e,t,r){return e.endsWith(r)?e+t:e+r+t}Tr.joinPathSegments=Vh});var ll=b(He=>{"use strict";l();Object.defineProperty(He,"__esModule",{value:!0});He.readdir=He.readdirWithFileTypes=He.read=void 0;var Ih=st(),ol=el(),Hh=Io(),il=qo(),sl=Uo();function qh(e,t,r){if(!t.stats&&Hh.IS_SUPPORT_READDIR_WITH_FILE_TYPES){al(e,t,r);return}ul(e,t,r)}He.read=qh;function al(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(o,i)=>{if(o!==null){$r(r,o);return}let n=i.map(a=>({dirent:a,name:a.name,path:sl.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Wo(r,n);return}let s=n.map(a=>Uh(a,t));ol(s,(a,u)=>{if(a!==null){$r(r,a);return}Wo(r,u)})})}He.readdirWithFileTypes=al;function Uh(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=il.fs.createDirentFromStats(e.name,i),r(null,e)})}}function ul(e,t,r){t.fs.readdir(e,(o,i)=>{if(o!==null){$r(r,o);return}let n=i.map(s=>{let a=sl.joinPathSegments(e,s,t.pathSegmentSeparator);return u=>{Ih.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let d={name:s,path:a,dirent:il.fs.createDirentFromStats(s,f)};t.stats&&(d.stats=f),u(null,d)})}});ol(n,(s,a)=>{if(s!==null){$r(r,s);return}Wo(r,a)})})}He.readdir=ul;function $r(e,t){e(t)}function Wo(e,t){e(null,t)}});var ml=b(qe=>{"use strict";l();Object.defineProperty(qe,"__esModule",{value:!0});qe.readdir=qe.readdirWithFileTypes=qe.read=void 0;var Wh=st(),Gh=Io(),cl=qo(),fl=Uo();function Jh(e,t){return!t.stats&&Gh.IS_SUPPORT_READDIR_WITH_FILE_TYPES?pl(e,t):dl(e,t)}qe.read=Jh;function pl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(o=>{let i={dirent:o,name:o.name,path:fl.joinPathSegments(e,o.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let n=t.fs.statSync(i.path);i.dirent=cl.fs.createDirentFromStats(i.name,n)}catch(n){if(t.throwErrorOnBrokenSymbolicLink)throw n}return i})}qe.readdirWithFileTypes=pl;function dl(e,t){return t.fs.readdirSync(e).map(o=>{let i=fl.joinPathSegments(e,o,t.pathSegmentSeparator),n=Wh.statSync(i,t.fsStatSettings),s={name:o,path:i,dirent:cl.fs.createDirentFromStats(o,n)};return t.stats&&(s.stats=n),s})}qe.readdir=dl});var gl=b(Ue=>{"use strict";l();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.createFileSystemAdapter=Ue.FILE_SYSTEM_ADAPTER=void 0;var Ct=Y("fs");Ue.FILE_SYSTEM_ADAPTER={lstat:Ct.lstat,stat:Ct.stat,lstatSync:Ct.lstatSync,statSync:Ct.statSync,readdir:Ct.readdir,readdirSync:Ct.readdirSync};function zh(e){return e===void 0?Ue.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ue.FILE_SYSTEM_ADAPTER),e)}Ue.createFileSystemAdapter=zh});var hl=b(Jo=>{"use strict";l();Object.defineProperty(Jo,"__esModule",{value:!0});var Kh=Y("path"),Yh=st(),Xh=gl(),Go=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Xh.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Kh.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Yh.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Jo.default=Go});var Br=b(We=>{"use strict";l();Object.defineProperty(We,"__esModule",{value:!0});We.Settings=We.scandirSync=We.scandir=void 0;var yl=ll(),Qh=ml(),zo=hl();We.Settings=zo.default;function Zh(e,t,r){if(typeof t=="function"){yl.read(e,Ko(),t);return}yl.read(e,Ko(t),r)}We.scandir=Zh;function ey(e,t){let r=Ko(t);return Qh.read(e,r)}We.scandirSync=ey;function Ko(e={}){return e instanceof zo.default?e:new zo.default(e)}});var bl=b((bE,Dl)=>{"use strict";l();function ty(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}}Dl.exports=ty});var vl=b((vE,Yo)=>{"use strict";l();var ry=bl();function Cl(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=ry(ny),i=null,n=null,s=0,a=null,u={push:D,drain:he,saturated:he,pause:f,paused:!1,get concurrency(){return r},set concurrency(S){if(!(S>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=S,!u.paused)for(;i&&s<r;)s++,A()},running:c,resume:h,idle:y,length:d,getQueue:p,unshift:R,empty:he,kill:O,killAndDrain:T,error:M};return u;function c(){return s}function f(){u.paused=!0}function d(){for(var S=i,L=0;S;)S=S.next,L++;return L}function p(){for(var S=i,L=[];S;)L.push(S.value),S=S.next;return L}function h(){if(u.paused){if(u.paused=!1,i===null){s++,A();return}for(;i&&s<r;)s++,A()}}function y(){return s===0&&u.length()===0}function D(S,L){var $=o.get();$.context=e,$.release=A,$.value=S,$.callback=L||he,$.errorHandler=a,s>=r||u.paused?n?(n.next=$,n=$):(i=$,n=$,u.saturated()):(s++,t.call(e,$.value,$.worked))}function R(S,L){var $=o.get();$.context=e,$.release=A,$.value=S,$.callback=L||he,$.errorHandler=a,s>=r||u.paused?i?($.next=i,i=$):(i=$,n=$,u.saturated()):(s++,t.call(e,$.value,$.worked))}function A(S){S&&o.release(S);var L=i;L&&s<=r?u.paused?s--:(n===i&&(n=null),i=L.next,L.next=null,t.call(e,L.value,L.worked),n===null&&u.empty()):--s===0&&u.drain()}function O(){i=null,n=null,u.drain=he}function T(){i=null,n=null,u.drain(),u.drain=he}function M(S){a=S}}function he(){}function ny(){this.value=null,this.callback=he,this.next=null,this.release=he,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=he,e.errorHandler&&n(r,s),i.call(e.context,r,o),e.release(e)}}function oy(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=Cl(e,o,r),n=i.push,s=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(f){var d=new Promise(function(p,h){n(f,function(y,D){if(y){h(y);return}p(D)})});return d.catch(he),d}function u(f){var d=new Promise(function(p,h){s(f,function(y,D){if(y){h(y);return}p(D)})});return d.catch(he),d}function c(){if(i.idle())return new Promise(function(p){p()});var f=i.drain,d=new Promise(function(p){i.drain=function(){f(),p()}});return d}}Yo.exports=Cl;Yo.exports.promise=oy});var Mr=b(Re=>{"use strict";l();Object.defineProperty(Re,"__esModule",{value:!0});Re.joinPathSegments=Re.replacePathSegmentSeparator=Re.isAppliedFilter=Re.isFatalError=void 0;function iy(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Re.isFatalError=iy;function sy(e,t){return e===null||e(t)}Re.isAppliedFilter=sy;function ay(e,t){return e.split(/[/\\]/).join(t)}Re.replacePathSegmentSeparator=ay;function uy(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Re.joinPathSegments=uy});var Zo=b(Qo=>{"use strict";l();Object.defineProperty(Qo,"__esModule",{value:!0});var ly=Mr(),Xo=class{constructor(t,r){this._root=t,this._settings=r,this._root=ly.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Qo.default=Xo});var ri=b(ti=>{"use strict";l();Object.defineProperty(ti,"__esModule",{value:!0});var cy=Y("events"),fy=Br(),py=vl(),jr=Mr(),dy=Zo(),ei=class extends dy.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=fy.scandir,this._emitter=new cy.EventEmitter,this._queue=py(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||!jr.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=jr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),jr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&jr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};ti.default=ei});var xl=b(oi=>{"use strict";l();Object.defineProperty(oi,"__esModule",{value:!0});var my=ri(),ni=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new my.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{gy(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{hy(t,this._storage)}),this._reader.read()}};oi.default=ni;function gy(e,t){e(t)}function hy(e,t){e(null,t)}});var wl=b(si=>{"use strict";l();Object.defineProperty(si,"__esModule",{value:!0});var yy=Y("stream"),Dy=ri(),ii=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Dy.default(this._root,this._settings),this._stream=new yy.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}};si.default=ii});var _l=b(ui=>{"use strict";l();Object.defineProperty(ui,"__esModule",{value:!0});var by=Br(),Lr=Mr(),Cy=Zo(),ai=class extends Cy.default{constructor(){super(...arguments),this._scandir=by.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(Lr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let o=t.path;r!==void 0&&(t.path=Lr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Lr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Lr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(o,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};ui.default=ai});var El=b(ci=>{"use strict";l();Object.defineProperty(ci,"__esModule",{value:!0});var vy=_l(),li=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new vy.default(this._root,this._settings)}read(){return this._reader.read()}};ci.default=li});var Rl=b(pi=>{"use strict";l();Object.defineProperty(pi,"__esModule",{value:!0});var xy=Y("path"),wy=Br(),fi=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,xy.sep),this.fsScandirSettings=new wy.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}};pi.default=fi});var Vr=b(Fe=>{"use strict";l();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.Settings=Fe.walkStream=Fe.walkSync=Fe.walk=void 0;var Fl=xl(),_y=wl(),Ey=El(),di=Rl();Fe.Settings=di.default;function Ry(e,t,r){if(typeof t=="function"){new Fl.default(e,Nr()).read(t);return}new Fl.default(e,Nr(t)).read(r)}Fe.walk=Ry;function Fy(e,t){let r=Nr(t);return new Ey.default(e,r).read()}Fe.walkSync=Fy;function Sy(e,t){let r=Nr(t);return new _y.default(e,r).read()}Fe.walkStream=Sy;function Nr(e={}){return e instanceof di.default?e:new di.default(e)}});var Ir=b(gi=>{"use strict";l();Object.defineProperty(gi,"__esModule",{value:!0});var Ay=Y("path"),Py=st(),Sl=Be(),mi=class{constructor(t){this._settings=t,this._fsStatSettings=new Py.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Ay.resolve(this._settings.cwd,t)}_makeEntry(t,r){let o={name:r,path:r,dirent:Sl.fs.createDirentFromStats(r,t)};return this._settings.stats&&(o.stats=t),o}_isFatalError(t){return!Sl.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};gi.default=mi});var Di=b(yi=>{"use strict";l();Object.defineProperty(yi,"__esModule",{value:!0});var ky=Y("stream"),Oy=st(),Ty=Vr(),$y=Ir(),hi=class extends $y.default{constructor(){super(...arguments),this._walkStream=Ty.walkStream,this._stat=Oy.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let o=t.map(this._getFullEntryPath,this),i=new ky.PassThrough({objectMode:!0});i._write=(n,s,a)=>this._getEntry(o[n],t[n],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),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))})}};yi.default=hi});var Al=b(Ci=>{"use strict";l();Object.defineProperty(Ci,"__esModule",{value:!0});var By=Vr(),My=Ir(),jy=Di(),bi=class extends My.default{constructor(){super(...arguments),this._walkAsync=By.walk,this._readerStream=new jy.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))})}};Ci.default=bi});var Pl=b(xi=>{"use strict";l();Object.defineProperty(xi,"__esModule",{value:!0});var zt=Be(),vi=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 zt.pattern.getPatternParts(t,this._micromatchOptions).map(o=>zt.pattern.isDynamicPattern(o,this._settings)?{dynamic:!0,pattern:o,patternRe:zt.pattern.makeRe(o,this._micromatchOptions)}:{dynamic:!1,pattern:o})}_splitSegmentsIntoSections(t){return zt.array.splitWhen(t,r=>r.dynamic&&zt.pattern.hasGlobStar(r.pattern))}};xi.default=vi});var kl=b(_i=>{"use strict";l();Object.defineProperty(_i,"__esModule",{value:!0});var Ly=Pl(),wi=class extends Ly.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((u,c)=>{let f=n.segments[c];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};_i.default=wi});var Ol=b(Ri=>{"use strict";l();Object.defineProperty(Ri,"__esModule",{value:!0});var Hr=Be(),Ny=kl(),Ei=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 Ny.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Hr.pattern.isAffectDepthOfReadingPattern);return Hr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,o,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let n=Hr.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!Hr.pattern.matchAny(t,r)}};Ri.default=Ei});var Tl=b(Si=>{"use strict";l();Object.defineProperty(Si,"__esModule",{value:!0});var at=Be(),Fi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let o=at.pattern.convertPatternsToRe(t,this._micromatchOptions),i=at.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return n=>this._filter(n,o,i)}_filter(t,r,o){let i=at.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(i,o))return!1;let n=t.dirent.isDirectory(),s=this._isMatchToPatterns(i,r,n)&&!this._isMatchToPatterns(i,o,n);return this._settings.unique&&s&&this._createIndexRecord(i),s}_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()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let o=at.path.makeAbsolute(this._settings.cwd,t);return at.pattern.matchAny(o,r)}_isMatchToPatterns(t,r,o){let i=at.pattern.matchAny(t,r);return!i&&o?at.pattern.matchAny(t+"/",r):i}};Si.default=Fi});var $l=b(Pi=>{"use strict";l();Object.defineProperty(Pi,"__esModule",{value:!0});var Vy=Be(),Ai=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Vy.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Pi.default=Ai});var Ml=b(Oi=>{"use strict";l();Object.defineProperty(Oi,"__esModule",{value:!0});var Bl=Be(),ki=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Bl.path.makeAbsolute(this._settings.cwd,r),r=Bl.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Oi.default=ki});var qr=b($i=>{"use strict";l();Object.defineProperty($i,"__esModule",{value:!0});var Iy=Y("path"),Hy=Ol(),qy=Tl(),Uy=$l(),Wy=Ml(),Ti=class{constructor(t){this._settings=t,this.errorFilter=new Uy.default(this._settings),this.entryFilter=new qy.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Hy.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Wy.default(this._settings)}_getRootDirectory(t){return Iy.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}}};$i.default=Ti});var jl=b(Mi=>{"use strict";l();Object.defineProperty(Mi,"__esModule",{value:!0});var Gy=Al(),Jy=qr(),Bi=class extends Jy.default{constructor(){super(...arguments),this._reader=new Gy.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)}};Mi.default=Bi});var Ll=b(Li=>{"use strict";l();Object.defineProperty(Li,"__esModule",{value:!0});var zy=Y("stream"),Ky=Di(),Yy=qr(),ji=class extends Yy.default{constructor(){super(...arguments),this._reader=new Ky.default(this._settings)}read(t){let r=this._getRootDirectory(t),o=this._getReaderOptions(t),i=this.api(r,t,o),n=new zy.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)}};Li.default=ji});var Nl=b(Vi=>{"use strict";l();Object.defineProperty(Vi,"__esModule",{value:!0});var Xy=st(),Qy=Vr(),Zy=Ir(),Ni=class extends Zy.default{constructor(){super(...arguments),this._walkSync=Qy.walkSync,this._statSync=Xy.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)}};Vi.default=Ni});var Vl=b(Hi=>{"use strict";l();Object.defineProperty(Hi,"__esModule",{value:!0});var eD=Nl(),tD=qr(),Ii=class extends tD.default{constructor(){super(...arguments),this._reader=new eD.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)}};Hi.default=Ii});var Il=b(xt=>{"use strict";l();Object.defineProperty(xt,"__esModule",{value:!0});xt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var vt=Y("fs"),rD=Y("os"),nD=Math.max(rD.cpus().length,1);xt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:vt.lstat,lstatSync:vt.lstatSync,stat:vt.stat,statSync:vt.statSync,readdir:vt.readdir,readdirSync:vt.readdirSync};var qi=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,nD),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({},xt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};xt.default=qi});var Ur=b((y2,ql)=>{"use strict";l();var Hl=qu(),oD=jl(),iD=Ll(),sD=Vl(),Ui=Il(),ye=Be();async function Wi(e,t){Ce(e);let r=Gi(e,oD.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){Ce(c);let d=Gi(c,sD.default,f);return ye.array.flatten(d)}e.sync=t;function r(c,f){Ce(c);let d=Gi(c,iD.default,f);return ye.stream.merge(d)}e.stream=r;function o(c,f){Ce(c);let d=[].concat(c),p=new Ui.default(f);return Hl.generate(d,p)}e.generateTasks=o;function i(c,f){Ce(c);let d=new Ui.default(f);return ye.pattern.isDynamicPattern(c,d)}e.isDynamicPattern=i;function n(c){return Ce(c),ye.path.escape(c)}e.escapePath=n;function s(c){return Ce(c),ye.path.convertPathToPattern(c)}e.convertPathToPattern=s;let a;(function(c){function f(p){return Ce(p),ye.path.escapePosixPath(p)}c.escapePath=f;function d(p){return Ce(p),ye.path.convertPosixPathToPattern(p)}c.convertPathToPattern=d})(a=e.posix||(e.posix={}));let u;(function(c){function f(p){return Ce(p),ye.path.escapeWindowsPath(p)}c.escapePath=f;function d(p){return Ce(p),ye.path.convertWindowsPathToPattern(p)}c.convertPathToPattern=d})(u=e.win32||(e.win32={}))})(Wi||(Wi={}));function Gi(e,t,r){let o=[].concat(e),i=new Ui.default(r),n=Hl.generate(o,i),s=new t(i);return n.map(s.read,s)}function Ce(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")}ql.exports=Wi});var ae=b((b2,Ji)=>{"use strict";l();var Gr=process||{},Ul=Gr.argv||[],Wr=Gr.env||{},aD=!(Wr.NO_COLOR||Ul.includes("--no-color"))&&(!!Wr.FORCE_COLOR||Ul.includes("--color")||Gr.platform==="win32"||(Gr.stdout||{}).isTTY&&Wr.TERM!=="dumb"||!!Wr.CI),uD=(e,t,r=e)=>o=>{let i=""+o,n=i.indexOf(t,e.length);return~n?e+lD(i,t,r,n)+t:e+i+t},lD=(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)},Wl=(e=aD)=>{let t=e?uD:()=>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")}};Ji.exports=Wl();Ji.exports.createColors=Wl});var Ac=b((ZF,Sc)=>{"use strict";l();Sc.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 rn=b((tS,Pc)=>{"use strict";l();var e0=Ac();Pc.exports=e=>typeof e=="string"?e.replace(e0(),""):e});var ts=b((nS,es)=>{"use strict";l();var kc=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);es.exports=kc;es.exports.default=kc});var Tc=b((iS,Oc)=>{"use strict";l();Oc.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 kt=b((aS,rs)=>{"use strict";l();var t0=rn(),r0=ts(),n0=Tc(),$c=e=>{if(typeof e!="string"||e.length===0||(e=t0(e),e.length===0))return 0;e=e.replace(n0()," ");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+=r0(o)?2:1)}return t};rs.exports=$c;rs.exports.default=$c});var jc=b((lS,Mc)=>{"use strict";l();var Bc="[\uD800-\uDBFF][\uDC00-\uDFFF]",o0=e=>e&&e.exact?new RegExp(`^${Bc}$`):new RegExp(Bc,"g");Mc.exports=o0});var Nc=b((fS,Lc)=>{"use strict";l();Lc.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 ns=b((dS,Ic)=>{"use strict";l();var tr=Nc(),Vc={};for(let e of Object.keys(tr))Vc[tr[e]]=e;var F={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"]}};Ic.exports=F;for(let e of Object.keys(F)){if(!("channels"in F[e]))throw new Error("missing channels property: "+e);if(!("labels"in F[e]))throw new Error("missing channel labels property: "+e);if(F[e].labels.length!==F[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=F[e];delete F[e].channels,delete F[e].labels,Object.defineProperty(F[e],"channels",{value:t}),Object.defineProperty(F[e],"labels",{value:r})}F.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,u;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?u=0:c<=.5?u=s/(n+i):u=s/(2-n-i),[a,u*100,c*100]};F.rgb.hsv=function(e){let t,r,o,i,n,s=e[0]/255,a=e[1]/255,u=e[2]/255,c=Math.max(s,a,u),f=c-Math.min(s,a,u),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(u),s===c?i=o-r:a===c?i=1/3+t-o:u===c&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,n*100,c*100]};F.rgb.hwb=function(e){let t=e[0],r=e[1],o=e[2],i=F.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]};F.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}F.rgb.keyword=function(e){let t=Vc[e];if(t)return t;let r=1/0,o;for(let i of Object.keys(tr)){let n=tr[i],s=i0(e,n);s<r&&(r=s,o=i)}return o};F.keyword.rgb=function(e){return tr[e]};F.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]};F.rgb.lab=function(e){let t=F.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]};F.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,u=[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,u[c]=s*255;return u};F.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]};F.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),u=255*o*(1-r*(1-n));switch(o*=255,i){case 0:return[o,u,s];case 1:return[a,o,s];case 2:return[s,o,u];case 3:return[s,a,o];case 4:return[u,s,o];case 5:return[o,s,a]}};F.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]};F.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 u=r+n*(a-r),c,f,d;switch(s){default:case 6:case 0:c=a,f=u,d=r;break;case 1:c=u,f=a,d=r;break;case 2:c=r,f=a,d=u;break;case 3:c=r,f=u,d=a;break;case 4:c=u,f=r,d=a;break;case 5:c=a,f=r,d=u;break}return[c*255,f*255,d*255]};F.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]};F.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]};F.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]};F.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,u=i**3,c=s**3;return n=a>.008856?a:(n-16/116)/7.787,i=u>.008856?u:(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]};F.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]};F.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]};F.rgb.ansi16=function(e,t=null){let[r,o,i]=e,n=t===null?F.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};F.hsv.ansi16=function(e){return F.rgb.ansi16(F.hsv.rgb(e),e[2])};F.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)};F.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]};F.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]};F.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};F.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]};F.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,u;return s<1?a=n/(1-s):a=0,s<=0?u=0:i===t?u=(r-o)/s%6:i===r?u=2+(o-t)/s:u=4+(t-r)/s,u/=6,u%=1,[u*360,s*100,a*100]};F.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]};F.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]};F.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,u=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 u=(1-r)*o,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};F.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]};F.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]};F.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]};F.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]};F.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};F.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};F.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};F.gray.hsl=function(e){return[0,0,e[0]]};F.gray.hsv=F.gray.hsl;F.gray.hwb=function(e){return[0,100,e[0]]};F.gray.cmyk=function(e){return[0,0,0,e[0]]};F.gray.lab=function(e){return[e[0],0,0]};F.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};F.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var qc=b((gS,Hc)=>{"use strict";l();var nn=ns();function s0(){let e={},t=Object.keys(nn);for(let r=t.length,o=0;o<r;o++)e[t[o]]={distance:-1,parent:null};return e}function a0(e){let t=s0(),r=[e];for(t[e].distance=0;r.length;){let o=r.pop(),i=Object.keys(nn[o]);for(let n=i.length,s=0;s<n;s++){let a=i[s],u=t[a];u.distance===-1&&(u.distance=t[o].distance+1,u.parent=o,r.unshift(a))}}return t}function u0(e,t){return function(r){return t(e(r))}}function l0(e,t){let r=[t[e].parent,e],o=nn[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),o=u0(nn[t[i].parent][i],o),i=t[i].parent;return o.conversion=r,o}Hc.exports=function(e){let t=a0(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]=l0(s,t))}return r}});var Wc=b((yS,Uc)=>{"use strict";l();var os=ns(),c0=qc(),Ot={},f0=Object.keys(os);function p0(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 d0(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}f0.forEach(e=>{Ot[e]={},Object.defineProperty(Ot[e],"channels",{value:os[e].channels}),Object.defineProperty(Ot[e],"labels",{value:os[e].labels});let t=c0(e);Object.keys(t).forEach(o=>{let i=t[o];Ot[e][o]=d0(i),Ot[e][o].raw=p0(i)})});Uc.exports=Ot});var Xc=b((bS,Yc)=>{"use strict";l();var Gc=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Jc=(e,t)=>(...r)=>{let o=e(...r);return`\x1B[${38+t};5;${o}m`},zc=(e,t)=>(...r)=>{let o=e(...r);return`\x1B[${38+t};2;${o[0]};${o[1]};${o[2]}m`},on=e=>e,Kc=(e,t,r)=>[e,t,r],Tt=(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})},is,$t=(e,t,r,o)=>{is===void 0&&(is=Wc());let i=o?10:0,n={};for(let[s,a]of Object.entries(is)){let u=s==="ansi16"?"ansi":s;s===t?n[u]=e(r,i):typeof a=="object"&&(n[u]=e(a[t],i))}return n};function m0(){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",Tt(t.color,"ansi",()=>$t(Gc,"ansi16",on,!1)),Tt(t.color,"ansi256",()=>$t(Jc,"ansi256",on,!1)),Tt(t.color,"ansi16m",()=>$t(zc,"rgb",Kc,!1)),Tt(t.bgColor,"ansi",()=>$t(Gc,"ansi16",on,!0)),Tt(t.bgColor,"ansi256",()=>$t(Jc,"ansi256",on,!0)),Tt(t.bgColor,"ansi16m",()=>$t(zc,"rgb",Kc,!0)),t}Object.defineProperty(Yc,"exports",{enumerable:!0,get:m0})});var an=b((vS,tf)=>{"use strict";l();var g0=ts(),h0=jc(),Qc=Xc(),ef=["\x1B","\x9B"],sn=e=>`${ef[0]}[${e}m`,Zc=(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=Qc.codes.get(Number.parseInt(i,10));if(s){let a=e.indexOf(s.toString());a===-1?o.push(sn(t?s:n)):e.splice(a,1)}else if(t){o.push(sn(0));break}else o.push(sn(n))}if(t&&(o=o.filter((i,n)=>o.indexOf(i)===n),r!==void 0)){let i=sn(Qc.codes.get(Number.parseInt(r,10)));o=o.reduce((n,s)=>s===i?[s,...n]:[...n,s],[])}return o.join("")};tf.exports=(e,t,r)=>{let o=[...e],i=[],n=typeof r=="number"?r:o.length,s=!1,a,u=0,c="";for(let[f,d]of o.entries()){let p=!1;if(ef.includes(d)){let h=/\d[^m]*/.exec(e.slice(f,f+18));a=h&&h.length>0?h[0]:void 0,u<n&&(s=!0,a!==void 0&&i.push(a))}else s&&d==="m"&&(s=!1,p=!0);if(!s&&!p&&u++,!h0({exact:!0}).test(d)&&g0(d.codePointAt())&&(u++,typeof r!="number"&&n++),u>t&&u<=n)c+=d;else if(u===t&&!s&&a!==void 0)c=Zc(i);else if(u>=n){c+=Zc(i,!0,a);break}}return c}});var ss=b(un=>{"use strict";l();Object.defineProperty(un,"__esModule",{value:!0});un.getBorderCharacters=void 0;var y0=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+'".')};un.getBorderCharacters=y0});var te=b(H=>{"use strict";l();var as=H&&H.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(H,"__esModule",{value:!0});H.isCellInRange=H.areCellEqual=H.calculateRangeCoordinate=H.flatten=H.extractTruncates=H.sumArray=H.sequence=H.distributeUnevenly=H.countSpaceSequence=H.groupBySizes=H.makeBorderConfig=H.splitAnsi=H.normalizeString=void 0;var D0=as(an()),b0=as(kt()),C0=as(rn()),v0=ss(),x0=e=>e.replace(/\r\n/g,`
|
|
4
4
|
`);H.normalizeString=x0;var w0=e=>{let t=(0,C0.default)(e).split(`
|
|
5
5
|
`).map(b0.default),r=[],o=0;return t.forEach(i=>{r.push(i===0?"":(0,D0.default)(e,o,o+i)),o+=i+1}),r};H.splitAnsi=w0;var _0=e=>({...(0,v0.getBorderCharacters)("honeywell"),...e});H.makeBorderConfig=_0;var E0=(e,t)=>{let r=0;return t.map(o=>{let i=e.slice(r,r+o);return r+=o,i})};H.groupBySizes=E0;var R0=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};H.countSpaceSequence=R0;var F0=(e,t)=>Array.from({length:t}).fill(Math.floor(e/t)).map((o,i)=>o+(i<e%t?1:0));H.distributeUnevenly=F0;var S0=(e,t)=>Array.from({length:t-e+1},(r,o)=>o+e);H.sequence=S0;var A0=e=>e.reduce((t,r)=>t+r,0);H.sumArray=A0;var P0=e=>e.columns.map(({truncate:t})=>t);H.extractTruncates=P0;var k0=e=>[].concat(...e);H.flatten=k0;var O0=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}}};H.calculateRangeCoordinate=O0;var T0=(e,t)=>e.row===t.row&&e.col===t.col;H.areCellEqual=T0;var $0=(e,{topLeft:t,bottomRight:r})=>t.row<=e.row&&e.row<=r.row&&t.col<=e.col&&e.col<=r.col;H.isCellInRange=$0});var ls=b(Bt=>{"use strict";l();var B0=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.alignString=void 0;var M0=B0(kt()),rf=te(),us=(e,t)=>e+" ".repeat(t),j0=(e,t)=>" ".repeat(t)+e,L0=(e,t)=>" ".repeat(Math.floor(t/2))+e+" ".repeat(Math.ceil(t/2)),N0=(e,t)=>{let r=(0,rf.countSpaceSequence)(e);if(r===0)return us(e,t);let o=(0,rf.distributeUnevenly)(t,r);if(Math.max(...o)>3)return us(e,t);let i=0;return e.replace(/\s+/g,n=>n+" ".repeat(o[i++]))},V0=(e,t,r)=>{let o=(0,M0.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"?us(e,i):r==="right"?j0(e,i):r==="justify"?N0(e,i):L0(e,i)};Bt.alignString=V0});var cs=b(ln=>{"use strict";l();Object.defineProperty(ln,"__esModule",{value:!0});ln.alignTableData=void 0;var I0=ls(),H0=(e,t)=>e.map((r,o)=>r.map((i,n)=>{var s;let{width:a,alignment:u}=t.columns[n];return((s=t.spanningCellManager)===null||s===void 0?void 0:s.getContainingRange({col:n,row:o},{mapped:!0}))?i:(0,I0.alignString)(i,a,u)}));ln.alignTableData=H0});var sf=b(Mt=>{"use strict";l();var of=Mt&&Mt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.wrapString=void 0;var nf=of(an()),q0=of(kt()),U0=(e,t)=>{let r=e,o=[];do o.push((0,nf.default)(r,0,t)),r=(0,nf.default)(r,t).trim();while((0,q0.default)(r));return o};Mt.wrapString=U0});var uf=b(jt=>{"use strict";l();var af=jt&&jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jt,"__esModule",{value:!0});jt.wrapWord=void 0;var W0=af(an()),G0=af(rn()),J0=(e,t)=>{let r=(0,G0.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,u=n.length-a;o.push([a,u])}else n=r.slice(0,t),r=r.slice(t),o.push([n.length,0])}while(r.length);return o},z0=(e,t)=>{let r=[],o=0;return J0(e,t).forEach(([i,n])=>{r.push((0,W0.default)(e,o,o+i)),o+=i+n}),r};jt.wrapWord=z0});var fn=b(cn=>{"use strict";l();Object.defineProperty(cn,"__esModule",{value:!0});cn.wrapCell=void 0;var K0=te(),Y0=sf(),X0=uf(),Q0=(e,t,r)=>{let o=(0,K0.splitAnsi)(e);for(let i=0;i<o.length;){let n;r?n=(0,X0.wrapWord)(o[i],t):n=(0,Y0.wrapString)(o[i],t),o.splice(i,1,...n),i+=n.length}return o};cn.wrapCell=Q0});var lf=b(pn=>{"use strict";l();Object.defineProperty(pn,"__esModule",{value:!0});pn.calculateCellHeight=void 0;var Z0=fn(),eb=(e,t,r=!1)=>(0,Z0.wrapCell)(e,t,r).length;pn.calculateCellHeight=eb});var fs=b(dn=>{"use strict";l();Object.defineProperty(dn,"__esModule",{value:!0});dn.calculateRowHeights=void 0;var tb=lf(),cf=te(),rb=(e,t)=>{let r=[];for(let[o,i]of e.entries()){let n=1;i.forEach((s,a)=>{var u;let c=(u=t.spanningCellManager)===null||u===void 0?void 0:u.getContainingRange({col:a,row:o});if(!c){let h=(0,tb.calculateCellHeight)(s,t.columns[a].width,t.columns[a].wrapWord);n=Math.max(n,h);return}let{topLeft:f,bottomRight:d,height:p}=c;if(o===d.row){let h=(0,cf.sumArray)(r.slice(f.row)),y=d.row-f.row,D=(0,cf.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,R=p-h-y+D;n=Math.max(n,R)}}),r.push(n)}return r};dn.calculateRowHeights=rb});var gn=b(mn=>{"use strict";l();Object.defineProperty(mn,"__esModule",{value:!0});mn.drawContent=void 0;var nb=e=>{let{contents:t,separatorGetter:r,drawSeparator:o,spanningCellManager:i,rowIndex:n,elementType:s}=e,a=t.length,u=[];return o(0,a)&&u.push(r(0,a)),t.forEach((c,f)=>{if((!s||s==="border"||s==="row")&&u.push(c),s==="cell"&&n===void 0&&u.push(c),s==="cell"&&n!==void 0){let d=i?.getContainingRange({col:f,row:n});(!d||f===d.topLeft.col)&&u.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},h=i?.getContainingRange(p);(!h||h.topLeft.col===p.col)&&u.push(d)}else u.push(d)}}),o(a,a)&&u.push(r(a,a)),u.join("")};mn.drawContent=nb});var ps=b(z=>{"use strict";l();Object.defineProperty(z,"__esModule",{value:!0});z.createTableBorderGetter=z.drawBorderBottom=z.drawBorderJoin=z.drawBorderTop=z.drawBorder=z.createSeparatorGetter=z.drawBorderSegments=void 0;var ob=gn(),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 u=i?.getContainingRange({col:s,row:o});if(!u)return a;let{topLeft:c}=u;return o===c.row?a:s!==c.col?"":u.extractBorderContent(o)})};z.drawBorderSegments=ib;var sb=e=>{let{separator:t,spanningCellManager:r,horizontalBorderIndex:o,rowCount:i}=e;return(n,s)=>{let a=r?.inSameRange;if(o!==void 0&&a){let u={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,u],[u,d],[d,c],[c,f]];if(n===0)return a(d,u)&&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(u,f)?t.body:t.join;let h=p.map(y=>a(...y)).filter(Boolean).length;if(h===0)return t.join;if(h===4)return"";if(h===2)return a(...p[1])&&a(...p[3])&&t.bodyJoinInner?t.bodyJoinInner:t.body;if(h===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}};z.createSeparatorGetter=sb;var ab=(e,t)=>{let r=(0,z.drawBorderSegments)(e,t),{drawVerticalLine:o,horizontalBorderIndex:i,spanningCellManager:n}=t;return(0,ob.drawContent)({contents:r,drawSeparator:o,elementType:"border",rowIndex:i,separatorGetter:(0,z.createSeparatorGetter)(t),spanningCellManager:n})+`
|
|
@@ -7,7 +7,7 @@ import{a as Y,b,c as ee,d as l}from"./chunk-WE2LNW3F.mjs";var na=b(ht=>{"use str
|
|
|
7
7
|
`?"":o};z.drawBorderTop=ub;var lb=(e,t)=>{let{border:r}=t;return(0,z.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}})};z.drawBorderJoin=lb;var cb=(e,t)=>{let{border:r}=t;return(0,z.drawBorder)(e,{...t,separator:{body:r.bottomBody,join:r.bottomJoin,left:r.bottomLeft,right:r.bottomRight}})};z.drawBorderBottom=cb;var fb=(e,t)=>(r,o)=>{let i={...t,horizontalBorderIndex:r};return r===0?(0,z.drawBorderTop)(e,i):r===o?(0,z.drawBorderBottom)(e,i):(0,z.drawBorderJoin)(e,i)};z.createTableBorderGetter=fb});var ds=b(hn=>{"use strict";l();Object.defineProperty(hn,"__esModule",{value:!0});hn.drawRow=void 0;var pb=gn(),db=(e,t)=>{let{border:r,drawVerticalLine:o,rowIndex:i,spanningCellManager:n}=t;return(0,pb.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
|
`};hn.drawRow=db});var pf=b((JS,ff)=>{"use strict";l();ff.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 mf=b(ms=>{"use strict";l();Object.defineProperty(ms,"__esModule",{value:!0});var df=pf();df.code='require("ajv/dist/runtime/equal").default';ms.default=df});var Cf=b(hs=>{"use strict";l();hs["config.json"]=Df;var mb={$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},gf={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},gs=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 yn(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(!gs.call(gf.properties,a)){let u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),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 yn.errors=n,s===0}var hf={type:"string",enum:["left","right","center","justify"]},XS=mf().default;function lt(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:hf.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return lt.errors=n,s===0}var _n=new RegExp("^[0-9]+$","u");function ke(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:hf.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return ke.errors=n,s===0}var yf={type:"string",enum:["top","middle","bottom"]};function Oe(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:yf.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return Oe.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 u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),s++}if(e.alignment!==void 0&&(ke(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length)),e.verticalAlignment!==void 0&&(Oe(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Oe.errors:n.concat(Oe.errors),s=n.length)),e.width!==void 0){let a=e.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[u]:n.push(u),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 u={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}}if(e.paddingLeft!==void 0){let a=e.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}}if(e.paddingRight!==void 0){let a=e.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),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 Dn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0,a=s,u=!1,c=null,f=s;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let h in e)if(!_n.test(h)){let y={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"};n===null?n=[y]:n.push(y),s++}for(let h in e)_n.test(h)&&(de(e[h],{instancePath:t+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:h,rootData:i})||(n=n===null?de.errors:n.concat(de.errors),s=n.length))}else{let h={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[h]:n.push(h),s++}var p=f===s;p&&(u=!0,c=0);let d=s;if(Array.isArray(e)){let h=e.length;for(let y=0;y<h;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 h={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[h]:n.push(h),s++}var p=d===s;if(p&&u?(u=!1,c=[c,1]):p&&(u=!0,c=1),u)s=a,n!==null&&(a?n.length=a:n=null);else{let h={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};n===null?n=[h]:n.push(h),s++}return Dn.errors=n,s===0}function bn(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 u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),s++}if(e.alignment!==void 0&&(ke(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length)),e.verticalAlignment!==void 0&&(Oe(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Oe.errors:n.concat(Oe.errors),s=n.length)),e.width!==void 0){let a=e.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[u]:n.push(u),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 u={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}}if(e.paddingLeft!==void 0){let a=e.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}}if(e.paddingRight!==void 0){let a=e.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),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 bn.errors=n,s===0}function Cn(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:yf.enum},message:"must be equal to one of the allowed values"};n===null?n=[a]:n.push(a),s++}return Cn.errors=n,s===0}function Df(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 u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),s++}if(e.border!==void 0&&(yn(e.border,{instancePath:t+"/border",parentData:e,parentDataProperty:"border",rootData:i})||(n=n===null?yn.errors:n.concat(yn.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 u={instancePath:t+"/header",schemaPath:"#/properties/header/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};n===null?n=[u]:n.push(u),s++}for(let u in a)if(!(u==="content"||u==="alignment"||u==="wrapWord"||u==="truncate"||u==="paddingLeft"||u==="paddingRight")){let c={instancePath:t+"/header",schemaPath:"#/properties/header/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};n===null?n=[c]:n.push(c),s++}if(a.content!==void 0&&typeof a.content!="string"){let u={instancePath:t+"/header/content",schemaPath:"#/properties/header/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[u]:n.push(u),s++}if(a.alignment!==void 0&&(lt(a.alignment,{instancePath:t+"/header/alignment",parentData:a,parentDataProperty:"alignment",rootData:i})||(n=n===null?lt.errors:n.concat(lt.errors),s=n.length)),a.wrapWord!==void 0&&typeof a.wrapWord!="boolean"){let u={instancePath:t+"/header/wrapWord",schemaPath:"#/properties/header/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[u]:n.push(u),s++}if(a.truncate!==void 0){let u=a.truncate;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){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 u=a.paddingLeft;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){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 u=a.paddingRight;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){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 u={instancePath:t+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[u]:n.push(u),s++}}if(e.columns!==void 0&&(Dn(e.columns,{instancePath:t+"/columns",parentData:e,parentDataProperty:"columns",rootData:i})||(n=n===null?Dn.errors:n.concat(Dn.errors),s=n.length)),e.columnDefault!==void 0&&(bn(e.columnDefault,{instancePath:t+"/columnDefault",parentData:e,parentDataProperty:"columnDefault",rootData:i})||(n=n===null?bn.errors:n.concat(bn.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 u=a.length;for(let c=0;c<u;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(!gs.call(mb.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&&(lt(f.alignment,{instancePath:t+"/spanningCells/"+c+"/alignment",parentData:f,parentDataProperty:"alignment",rootData:i})||(n=n===null?lt.errors:n.concat(lt.errors),s=n.length)),f.verticalAlignment!==void 0&&(Cn(f.verticalAlignment,{instancePath:t+"/spanningCells/"+c+"/verticalAlignment",parentData:f,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Cn.errors:n.concat(Cn.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 u={instancePath:t+"/spanningCells",schemaPath:"#/properties/spanningCells/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[u]:n.push(u),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 Df.errors=n,s===0}hs["streamConfig.json"]=bf;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(!gs.call(gf.properties,a)){let u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),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 vn.errors=n,s===0}function xn(e,{instancePath:t="",parentData:r,parentDataProperty:o,rootData:i=e}={}){let n=null,s=0,a=s,u=!1,c=null,f=s;if(e&&typeof e=="object"&&!Array.isArray(e)){for(let h in e)if(!_n.test(h)){let y={instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"};n===null?n=[y]:n.push(y),s++}for(let h in e)_n.test(h)&&(de(e[h],{instancePath:t+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:h,rootData:i})||(n=n===null?de.errors:n.concat(de.errors),s=n.length))}else{let h={instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[h]:n.push(h),s++}var p=f===s;p&&(u=!0,c=0);let d=s;if(Array.isArray(e)){let h=e.length;for(let y=0;y<h;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 h={instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[h]:n.push(h),s++}var p=d===s;if(p&&u?(u=!1,c=[c,1]):p&&(u=!0,c=1),u)s=a,n!==null&&(a?n.length=a:n=null);else{let h={instancePath:t,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};n===null?n=[h]:n.push(h),s++}return xn.errors=n,s===0}function wn(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 u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),s++}if(e.alignment!==void 0&&(ke(e.alignment,{instancePath:t+"/alignment",parentData:e,parentDataProperty:"alignment",rootData:i})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length)),e.verticalAlignment!==void 0&&(Oe(e.verticalAlignment,{instancePath:t+"/verticalAlignment",parentData:e,parentDataProperty:"verticalAlignment",rootData:i})||(n=n===null?Oe.errors:n.concat(Oe.errors),s=n.length)),e.width!==void 0){let a=e.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:t+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[u]:n.push(u),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 u={instancePath:t+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}}if(e.paddingLeft!==void 0){let a=e.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}}if(e.paddingRight!==void 0){let a=e.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),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 wn.errors=n,s===0}function bf(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 u={instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};n===null?n=[u]:n.push(u),s++}if(e.border!==void 0&&(vn(e.border,{instancePath:t+"/border",parentData:e,parentDataProperty:"border",rootData:i})||(n=n===null?vn.errors:n.concat(vn.errors),s=n.length)),e.columns!==void 0&&(xn(e.columns,{instancePath:t+"/columns",parentData:e,parentDataProperty:"columns",rootData:i})||(n=n===null?xn.errors:n.concat(xn.errors),s=n.length)),e.columnDefault!==void 0&&(wn(e.columnDefault,{instancePath:t+"/columnDefault",parentData:e,parentDataProperty:"columnDefault",rootData:i})||(n=n===null?wn.errors:n.concat(wn.errors),s=n.length)),e.columnCount!==void 0){let a=e.columnCount;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:t+"/columnCount",schemaPath:"#/properties/columnCount/type",keyword:"type",params:{type:"integer"},message:"must be integer"};n===null?n=[u]:n.push(u),s++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:t+"/columnCount",schemaPath:"#/properties/columnCount/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};n===null?n=[u]:n.push(u),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 bf.errors=n,s===0}});var ys=b(Lt=>{"use strict";l();var gb=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.validateConfig=void 0;var hb=gb(Cf()),yb=(e,t)=>{let r=hb.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.")}};Lt.validateConfig=yb});var vf=b(En=>{"use strict";l();Object.defineProperty(En,"__esModule",{value:!0});En.makeStreamConfig=void 0;var Db=te(),bb=ys(),Cb=(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]})),vb=e=>{if((0,bb.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,Db.makeBorderConfig)(e.border),columns:Cb(e.columnCount,e.columns,e.columnDefault)}};En.makeStreamConfig=vb});var Fn=b(ct=>{"use strict";l();Object.defineProperty(ct,"__esModule",{value:!0});ct.mapDataUsingRowHeights=ct.padCellVertically=void 0;var xb=te(),wb=fn(),Rn=e=>new Array(e).fill(""),_b=(e,t,r)=>{let o=t-e.length;return r==="top"?[...e,...Rn(o)]:r==="bottom"?[...Rn(o),...e]:[...Rn(Math.floor(o/2)),...e,...Rn(Math.ceil(o/2))]};ct.padCellVertically=_b;var Eb=(e,t,r)=>{let o=e[0].length,i=e.map((n,s)=>{let a=t[s],u=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,R)=>{u[R][f]=D});return}let h=(0,wb.wrapCell)(c,r.columns[f].width,r.columns[f].wrapWord);(0,ct.padCellVertically)(h,a,r.columns[f].verticalAlignment).forEach((D,R)=>{u[R][f]=D})}),u});return(0,xb.flatten)(i)};ct.mapDataUsingRowHeights=Eb});var Sn=b(ft=>{"use strict";l();Object.defineProperty(ft,"__esModule",{value:!0});ft.padTableData=ft.padString=void 0;var Rb=(e,t,r)=>" ".repeat(t)+e+" ".repeat(r);ft.padString=Rb;var Fb=(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:u,paddingRight:c}=t.columns[n];return(0,ft.padString)(i,u,c)}));ft.padTableData=Fb});var Ds=b(An=>{"use strict";l();Object.defineProperty(An,"__esModule",{value:!0});An.stringifyTableData=void 0;var Sb=te(),Ab=e=>e.map(t=>t.map(r=>(0,Sb.normalizeString)(String(r))));An.stringifyTableData=Ab});var Uf=b((rr,Nt)=>{"use strict";l();var Pb=30,kb="...",bs=1/0,Ob=17976931348623157e292,xf=NaN,Tb="[object RegExp]",$b="[object Symbol]",Bb=/^\s+|\s+$/g,Mb=/\w*$/,jb=/^[-+]0x[0-9a-f]+$/i,Lb=/^0b[01]+$/i,Nb=/^0o[0-7]+$/i,_s="\\ud800-\\udfff",kf="\\u0300-\\u036f\\ufe20-\\ufe23",Of="\\u20d0-\\u20f0",Tf="\\ufe0e\\ufe0f",Vb="["+_s+"]",Cs="["+kf+Of+"]",vs="\\ud83c[\\udffb-\\udfff]",Ib="(?:"+Cs+"|"+vs+")",$f="[^"+_s+"]",Bf="(?:\\ud83c[\\udde6-\\uddff]){2}",Mf="[\\ud800-\\udbff][\\udc00-\\udfff]",jf="\\u200d",Lf=Ib+"?",Nf="["+Tf+"]?",Hb="(?:"+jf+"(?:"+[$f,Bf,Mf].join("|")+")"+Nf+Lf+")*",qb=Nf+Lf+Hb,Ub="(?:"+[$f+Cs+"?",Cs,Bf,Mf,Vb].join("|")+")",xs=RegExp(vs+"(?="+vs+")|"+Ub+qb,"g"),Wb=RegExp("["+jf+_s+kf+Of+Tf+"]"),Gb=parseInt,Vf=typeof global=="object"&&global&&global.Object===Object&&global,Jb=typeof self=="object"&&self&&self.Object===Object&&self,zb=Vf||Jb||Function("return this")(),If=typeof rr=="object"&&rr&&!rr.nodeType&&rr,wf=If&&typeof Nt=="object"&&Nt&&!Nt.nodeType&&Nt,Kb=wf&&wf.exports===If,_f=Kb&&Vf.process,Ef=function(){try{return _f&&_f.binding("util")}catch{}}(),Rf=Ef&&Ef.isRegExp,Yb=Qb("length");function Xb(e){return e.split("")}function Qb(e){return function(t){return t?.[e]}}function Zb(e){return function(t){return e(t)}}function Es(e){return Wb.test(e)}function eC(e){return Es(e)?rC(e):Yb(e)}function tC(e){return Es(e)?nC(e):Xb(e)}function rC(e){for(var t=xs.lastIndex=0;xs.test(e);)t++;return t}function nC(e){return e.match(xs)||[]}var oC=Object.prototype,Hf=oC.toString,Ff=zb.Symbol,Sf=Ff?Ff.prototype:void 0,Af=Sf?Sf.toString:void 0;function iC(e){return Pn(e)&&Hf.call(e)==Tb}function sC(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 ws(e){if(typeof e=="string")return e;if(qf(e))return Af?Af.call(e):"";var t=e+"";return t=="0"&&1/e==-bs?"-0":t}function aC(e,t,r){var o=e.length;return r=r===void 0?o:r,!t&&r>=o?e:sC(e,t,r)}function Pn(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function uC(e){return!!e&&typeof e=="object"}var lC=Rf?Zb(Rf):iC;function qf(e){return typeof e=="symbol"||uC(e)&&Hf.call(e)==$b}function cC(e){if(!e)return e===0?e:0;if(e=pC(e),e===bs||e===-bs){var t=e<0?-1:1;return t*Ob}return e===e?e:0}function fC(e){var t=cC(e),r=t%1;return t===t?r?t-r:t:0}function pC(e){if(typeof e=="number")return e;if(qf(e))return xf;if(Pn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Pn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(Bb,"");var r=Lb.test(e);return r||Nb.test(e)?Gb(e.slice(2),r?2:8):jb.test(e)?xf:+e}function Pf(e){return e==null?"":ws(e)}function dC(e,t){var r=Pb,o=kb;if(Pn(t)){var i="separator"in t?t.separator:i;r="length"in t?fC(t.length):r,o="omission"in t?ws(t.omission):o}e=Pf(e);var n=e.length;if(Es(e)){var s=tC(e);n=s.length}if(r>=n)return e;var a=r-eC(o);if(a<1)return o;var u=s?aC(s,0,a).join(""):e.slice(0,a);if(i===void 0)return u+o;if(s&&(a+=u.length-a),lC(i)){if(e.slice(a).search(i)){var c,f=u;for(i.global||(i=RegExp(i.source,Pf(Mb.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===void 0?a:d)}}else if(e.indexOf(ws(i),a)!=a){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o}Nt.exports=dC});var kn=b(Me=>{"use strict";l();var mC=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0});Me.truncateTableData=Me.truncateString=void 0;var gC=mC(Uf()),hC=(e,t)=>(0,gC.default)(e,{length:t,omission:"\u2026"});Me.truncateString=hC;var yC=(e,t)=>e.map(r=>r.map((o,i)=>(0,Me.truncateString)(o,t[i])));Me.truncateTableData=yC});var Jf=b(Tn=>{"use strict";l();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.createStream=void 0;var DC=cs(),bC=fs(),On=ps(),Wf=ds(),CC=vf(),vC=Fn(),xC=Sn(),wC=Ds(),_C=kn(),EC=te(),Gf=(e,t)=>{let r=(0,wC.stringifyTableData)(e);r=(0,_C.truncateTableData)(r,(0,EC.extractTruncates)(t));let o=(0,bC.calculateRowHeights)(r,t);return r=(0,vC.mapDataUsingRowHeights)(r,o,t),r=(0,DC.alignTableData)(r,t),r=(0,xC.padTableData)(r,t),r},RC=(e,t,r)=>{let i=Gf([e],r).map(s=>(0,Wf.drawRow)(s,r)).join(""),n;n="",n+=(0,On.drawBorderTop)(t,r),n+=i,n+=(0,On.drawBorderBottom)(t,r),n=n.trimEnd(),process.stdout.write(n)},FC=(e,t,r)=>{let i=Gf([e],r).map(a=>(0,Wf.drawRow)(a,r)).join(""),n="",s=(0,On.drawBorderBottom)(t,r);s!==`
|
|
9
9
|
`&&(n="\r\x1B[K"),n+=(0,On.drawBorderJoin)(t,r),n+=i,n+=s,n=n.trimEnd(),process.stdout.write(n)},SC=e=>{let t=(0,CC.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,RC(i,r,t)):FC(i,r,t)}}};Tn.createStream=SC});var zf=b($n=>{"use strict";l();Object.defineProperty($n,"__esModule",{value:!0});$n.calculateOutputColumnWidths=void 0;var AC=e=>e.columns.map(t=>t.paddingLeft+t.width+t.paddingRight);$n.calculateOutputColumnWidths=AC});var Kf=b(Bn=>{"use strict";l();Object.defineProperty(Bn,"__esModule",{value:!0});Bn.drawTable=void 0;var PC=ps(),kC=gn(),OC=ds(),TC=te(),$C=(e,t,r,o)=>{let{drawHorizontalLine:i,singleLine:n}=o,s=(0,TC.groupBySizes)(e,r).map((a,u)=>a.map(c=>(0,OC.drawRow)(c,{...o,rowIndex:u})).join(""));return(0,kC.drawContent)({contents:s,drawSeparator:(a,u)=>(a===0||a===u||!n)&&i(a,u),elementType:"row",rowIndex:-1,separatorGetter:(0,PC.createTableBorderGetter)(t,{...o,rowCount:s.length}),spanningCellManager:o.spanningCellManager})};Bn.drawTable=$C});var Yf=b(Mn=>{"use strict";l();Object.defineProperty(Mn,"__esModule",{value:!0});Mn.injectHeaderConfig=void 0;var BC=(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:u,...c})=>({...c,row:u+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]};Mn.injectHeaderConfig=BC});var Qf=b(je=>{"use strict";l();var MC=je&&je.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(je,"__esModule",{value:!0});je.calculateMaximumColumnWidths=je.calculateMaximumCellWidth=void 0;var jC=MC(kt()),Xf=te(),LC=e=>Math.max(...e.split(`
|
|
10
|
-
`).map(jC.default));je.calculateMaximumCellWidth=LC;var NC=(e,t=[])=>{let r=new Array(e[0].length).fill(0),o=t.map(Xf.calculateRangeCoordinate),i=(n,s)=>o.some(a=>(0,Xf.isCellInRange)({col:s,row:n},a));return e.forEach((n,s)=>{n.forEach((a,u)=>{i(s,u)||(r[u]=Math.max(r[u],(0,je.calculateMaximumCellWidth)(a)))})}),r};je.calculateMaximumColumnWidths=NC});var ep=b(Ze=>{"use strict";l();var VC=Ze&&Ze.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.alignVerticalRangeContent=Ze.wrapRangeContent=void 0;var IC=VC(kt()),HC=ls(),qC=Fn(),UC=Sn(),WC=kn(),Zf=te(),GC=fn(),JC=(e,t,r)=>{let{topLeft:o,paddingRight:i,paddingLeft:n,truncate:s,wrapWord:a,alignment:u}=e,c=r.rows[o.row][o.col],f=t-n-i;return(0,GC.wrapCell)((0,WC.truncateString)(c,s),f,a).map(d=>{let p=(0,HC.alignString)(d,f,u);return(0,UC.padString)(p,n,i)})};Ze.wrapRangeContent=JC;var zC=(e,t,r)=>{let{rows:o,drawHorizontalLine:i,rowHeights:n}=r,{topLeft:s,bottomRight:a,verticalAlignment:u}=e;if(n.length===0)return[];let c=(0,Zf.sumArray)(n.slice(s.row,a.row+1)),f=a.row-s.row,d=(0,Zf.sequence)(s.row+1,a.row).filter(h=>!i(h,o.length)).length,p=c+f-d;return(0,qC.padCellVertically)(t,p,u).map(h=>h.length===0?" ".repeat((0,IC.default)(t[0])):h)};Ze.alignVerticalRangeContent=zC});var tp=b(jn=>{"use strict";l();Object.defineProperty(jn,"__esModule",{value:!0});jn.calculateSpanningCellWidth=void 0;var Rs=te(),KC=(e,t)=>{let{columnsConfig:r,drawVerticalLine:o}=t,{topLeft:i,bottomRight:n}=e,s=(0,Rs.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,Rs.sumArray)(r.slice(i.col,n.col+1).map(({paddingLeft:f,paddingRight:d})=>f+d)),u=n.col-i.col,c=(0,Rs.sequence)(i.col+1,n.col).filter(f=>!o(f,r.length)).length;return s+a+u-c};jn.calculateSpanningCellWidth=KC});var rp=b(Ln=>{"use strict";l();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.makeRangeConfig=void 0;var YC=te(),XC=(e,t)=>{var r;let{topLeft:o,bottomRight:i}=(0,YC.calculateRangeCoordinate)(e);return{...{...t[o.col],...e,paddingRight:(r=e.paddingRight)!==null&&r!==void 0?r:t[i.col].paddingRight},bottomRight:i,topLeft:o}};Ln.makeRangeConfig=XC});var ip=b(Nn=>{"use strict";l();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.createSpanningCellManager=void 0;var np=ep(),QC=tp(),ZC=rp(),Vt=te(),Fs=(e,t)=>t.find(r=>(0,Vt.isCellInRange)(e,r)),op=(e,t)=>{let r=(0,QC.calculateSpanningCellWidth)(e,t),o=(0,np.wrapRangeContent)(e,r,t),i=(0,np.alignVerticalRangeContent)(e,o,t);return{...e,extractBorderContent:a=>{let{topLeft:u}=e,c=(0,Vt.sumArray)(t.rowHeights.slice(u.row,a))+(a-u.row-1);return i[c]},extractCellContent:a=>{let{topLeft:u}=e,{drawHorizontalLine:c,rowHeights:f}=t,d=a-u.row,p=(0,Vt.sequence)(u.row+1,a).filter(y=>!c?.(y,f.length)).length,h=(0,Vt.sumArray)(f.slice(u.row,a))+d-p;return i.slice(h,h+f[a])},height:o.length,width:r}},ev=(e,t,r)=>{let o=Fs(e,r),i=Fs(t,r);return o&&i?(0,Vt.areCellEqual)(o.topLeft,i.topLeft):!1},tv=e=>{let{row:t,col:r}=e.topLeft;return`${t}/${r}`},rv=e=>{let{spanningCellConfigs:t,columnsConfig:r}=e,o=t.map(a=>(0,ZC.makeRangeConfig)(a,r)),i={},n=[],s=[];return{getContainingRange:(a,u)=>{var c;let f=u?.mapped?s[a.row]:a.row,d=Fs({...a,row:f},o);if(!d)return;if(n.length===0)return op(d,{...e,rowHeights:n});let p=tv(d);return(c=i[p])!==null&&c!==void 0||(i[p]=op(d,{...e,rowHeights:n})),i[p]},inSameRange:(a,u)=>ev(a,u,o),rowHeights:n,rowIndexMapping:s,setRowHeights:a=>{n=a},setRowIndexMapping:a=>{s=(0,Vt.flatten)(a.map((u,c)=>Array.from({length:u},()=>c)))}}};Nn.createSpanningCellManager=rv});var sp=b(In=>{"use strict";l();Object.defineProperty(In,"__esModule",{value:!0});In.validateSpanningCellConfig=void 0;var Ss=te(),Vn=(e,t,r)=>e<=r&&r<=t,nv=(e,t)=>{let[r,o]=[e.length,e[0].length];t.forEach((s,a)=>{let{colSpan:u,rowSpan:c}=s;if(u===void 0&&c===void 0)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${a}]`);if(u!==void 0&&u<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${u} 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(Ss.calculateRangeCoordinate);i.forEach(({topLeft:s,bottomRight:a},u)=>{if(!Vn(0,o-1,s.col)||!Vn(0,r-1,s.row)||!Vn(0,o-1,a.col)||!Vn(0,r-1,a.row))throw new Error(`Some cells in config.spanningCells[${u}] are out of the table`)});let n=Array.from({length:r},()=>Array.from({length:o}));i.forEach(({topLeft:s,bottomRight:a},u)=>{(0,Ss.sequence)(s.row,a.row).forEach(c=>{(0,Ss.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[${u}] are overlap each other`);n[c][f]=u})})})};In.validateSpanningCellConfig=nv});var ap=b(Hn=>{"use strict";l();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.makeTableConfig=void 0;var ov=Qf(),iv=ip(),sv=te(),av=ys(),uv=sp(),lv=(e,t,r,o)=>{let i=(0,ov.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]}))},cv=(e,t={},r)=>{var o,i,n,s,a;(0,av.validateConfig)("config.json",t),(0,uv.validateSpanningCellConfig)(e,(o=t.spanningCells)!==null&&o!==void 0?o:[]);let u=(i=r??t.spanningCells)!==null&&i!==void 0?i:[],c=lv(e,t.columns,t.columnDefault,u),f=(n=t.drawVerticalLine)!==null&&n!==void 0?n:()=>!0,d=(s=t.drawHorizontalLine)!==null&&s!==void 0?s:()=>!0;return{...t,border:(0,sv.makeBorderConfig)(t.border),columns:c,drawHorizontalLine:d,drawVerticalLine:f,singleLine:(a=t.singleLine)!==null&&a!==void 0?a:!1,spanningCellManager:(0,iv.createSpanningCellManager)({columnsConfig:c,drawHorizontalLine:d,drawVerticalLine:f,rows:e,spanningCellConfigs:u})}};Hn.makeTableConfig=cv});var up=b(qn=>{"use strict";l();Object.defineProperty(qn,"__esModule",{value:!0});qn.validateTableData=void 0;var fv=te(),pv=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,fv.normalizeString)(String(o))))throw new Error("Table data must not contain control characters.")}};qn.validateTableData=pv});var lp=b(Un=>{"use strict";l();Object.defineProperty(Un,"__esModule",{value:!0});Un.table=void 0;var dv=cs(),mv=zf(),gv=fs(),hv=Kf(),yv=Yf(),Dv=ap(),bv=Fn(),Cv=Sn(),vv=Ds(),xv=kn(),wv=te(),_v=up(),Ev=(e,t={})=>{(0,_v.validateTableData)(e);let r=(0,vv.stringifyTableData)(e),[o,i]=(0,yv.injectHeaderConfig)(r,t),n=(0,Dv.makeTableConfig)(o,t,i);r=(0,xv.truncateTableData)(o,(0,wv.extractTruncates)(n));let s=(0,gv.calculateRowHeights)(r,n);n.spanningCellManager.setRowHeights(s),n.spanningCellManager.setRowIndexMapping(s),r=(0,bv.mapDataUsingRowHeights)(r,s,n),r=(0,dv.alignTableData)(r,n),r=(0,Cv.padTableData)(r,n);let a=(0,mv.calculateOutputColumnWidths)(n);return(0,hv.drawTable)(r,a,s,n)};Un.table=Ev});var fp=b(cp=>{"use strict";l();Object.defineProperty(cp,"__esModule",{value:!0})});var pp=b(me=>{"use strict";l();var Rv=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]}),Fv=me&&me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Rv(t,e,r)};Object.defineProperty(me,"__esModule",{value:!0});me.getBorderCharacters=me.createStream=me.table=void 0;var Sv=Jf();Object.defineProperty(me,"createStream",{enumerable:!0,get:function(){return Sv.createStream}});var Av=ss();Object.defineProperty(me,"getBorderCharacters",{enumerable:!0,get:function(){return Av.getBorderCharacters}});var Pv=lp();Object.defineProperty(me,"table",{enumerable:!0,get:function(){return Pv.table}});Fv(fp(),me)});l();import Pw from"node:process";import kw from"yargs";import{hideBin as Ow}from"yargs/helpers";var gt="0.20.6";l();var Rc=ee(Ur(),1),Qe=ee(ae(),1);import At from"node:path";import Pt from"consola";import Xe from"fs-extra";import XD from"gray-matter";l();function Gl(e,t){t.forEach(r=>{r.setup?.(e)})}l();function Ge(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}l();var vc=ee(Ur(),1),Ke=ee(ae(),1);import{dirname as HD}from"node:path";import Dc from"node:process";import{ensureSuffix as bc,uniq as qD}from"@antfu/utils";import Cc from"consola";import UD from"debug";import xc from"fs-extra";import{resolve as er}from"pathe";l();l();import _D from"node:path";import ED from"fs-extra";l();var Et=ee(ae(),1);import bD from"node:process";import{isFunction as Kl}from"@antfu/utils";import CD from"consola";import{createDefu as vD}from"defu";import{mergeConfig as xD}from"vite";l();function Je(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}l();var _t=ee(ae(),1);import{webcrypto as zl}from"node:crypto";import hD from"consola";import{options as yD}from"floating-vue";l();import cD from"node:process";import Jl from"consola";import fD from"fs-extra";import{createJiti as pD}from"jiti";import{resolve as dD}from"pathe";var mD=pD(import.meta.url,{moduleCache:!1});async function gD(e){let{name:t,cwd:r}=e,o=dD(r,`${t}.config.ts`),i={};if(await fD.exists(o))try{i=await mD.import(o,{default:!0})}catch(n){console.error(n),Jl.error(`Failed to load config file: ${o}`)}else Jl.debug(`Config file not found: ${o}`);return{config:i,configFile:o}}async function wt(e,t={}){let{config:r,configFile:o}=await gD({name:e,cwd:t.cwd||cD.cwd()}),i=r;return typeof r=="function"&&(i=await r(t.valaxyOptions||{})),{config:i,configFile:o}}var Jr={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:yD,statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:zl.getRandomValues(new Uint8Array(16)),iv:zl.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function N2(e){return e}async function DD(e){return wt("site",{cwd:e})}async function zr(e){let t=Je(),{config:r,configFile:o}=await DD(e),i=t();return r&&o&&hD.success(`Resolve ${(0,_t.cyan)("siteConfig")} from ${(0,_t.dim)(o)} ${(0,_t.yellow)(i)}`),{siteConfig:r,siteConfigFile:o}}var Yl={siteConfig:Jr,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:{rollupOptions:{external:[]}}},devtools:!0};function wD(e){return e}var Y2=wD;async function Kt(e,t){return await wt("valaxy",{cwd:e,valaxyOptions:t})}var ut=vD((e,t,r)=>{if(Kl(e[t])&&Kl(r)&&(e[t]=function(...o){e[t].call(this,...o),r.call(this,...o)}),t==="vite")return e[t]=xD(e[t],r),!0});async function Xl(e){let t=e.userRoot||bD.cwd(),r=Je(),{config:o,configFile:i}=await Kt(t),n=r();i&&o&&Object.keys(o).length!==0&&CD.success(`Resolve ${(0,Et.cyan)("userValaxyConfig")} from ${(0,Et.dim)(i)} ${(0,Et.yellow)(n)}`);let s=e.theme||o?.theme||"yun";return{config:o,configFile:i,theme:s}}function RD(e){return e}var rR=RD;async function Ql(e,t){let r={};for(let o of e){let i=_D.resolve(o.root,"valaxy.config.ts");if(!await ED.exists(i))continue;let{config:n,configFile:s}=await Kt(o.root,t);n&&(o.configFile=s,r=ut(n,r))}return r}l();var Yr=ee(ae(),1);import AD from"defu";l();var ec=ee(ae(),1);import FD from"consola";import{colors as Zl}from"consola/utils";import SD from"ora";var Se=FD.create({}),ze=Zl.magenta("[valaxy]"),Yt={success:(...e)=>Se.success(ze,...e),info:(...e)=>Se.info(ze,...e),ready:(...e)=>Se.ready(ze,...e)};async function Xt(e,t){let r=`${Zl.cyan("[HOOK]")} ${(0,ec.magenta)(e)}`,o=SD(`${r} calling...`).start();await t.hooks.callHook(e),o.succeed(`${r} done.`)}async function Kr(e){return wt("theme",{cwd:e})}async function tc(e){let{config:t,configFile:r}=await Kr(e.userRoot);if(t&&r&&Se.info(`Resolve ${(0,Yr.cyan)("themeConfig")} from ${(0,Yr.dim)(r)}`),e?.themeRoot){let{config:o}=await Kr(e.themeRoot);t=AD(t||{},o)}return{themeConfig:t,themeConfigFile:r}}function PD(e){return e}var dR=PD;function hR(e){return e}l();import{createDefu as kD}from"defu";var Qt=kD((e,t,r)=>{if(t&&e[t]&&Array.isArray(e[t])&&Array.isArray(r))return e[t]=r,!0});l();l();import{spawn as OD}from"cross-spawn";function Zt(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=OD("git",i),s="";n.stdout.on("data",a=>s+=String(a)),n.on("close",()=>{r(+new Date(s))}),n.on("error",()=>{r(0)})})}l();l();var rc="<!-- more -->",Rt=/^https?:/i,nc=/^pathname:\/\//,PR="/:all(.*)*",oc=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 ic(e){return Rt.test(e)}function TD(e){return e.replace(/\\/g,"/")}function zi(e,t){return t.startsWith(e)?t:e+t}function J(e){return`/@fs${zi("/",TD(e))}`}function sc(e){return e.startsWith("/")||/^\.\.?[/\\]/.test(e)}function ac(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}l();import uc from"consola";import{resolvePath as $D}from"mlly";import{resolveGlobal as BD}from"resolve-global";var Ki={};async function Ae(e,t=!1){try{return await $D(e,{url:import.meta.url})}catch(r){uc.log(r)}if(Ki.value)try{return BD(e)}catch{}if(t)throw new Error(`Failed to resolve package ${e}`);uc.warn(`Failed to resolve package ${e}`)}l();var Pe=ee(ae(),1);import mc from"node:process";import fc from"defu";import pc from"fs-extra";import jD from"ora";import{resolve as LD}from"pathe";l();import{dirname as lc}from"node:path";import MD from"fs-extra";import{resolve as cc}from"pathe";async function Xr(e,t){if(!e)return"";if(sc(e))if(t){let r=MD.lstatSync(t).isFile();return cc(r?lc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return cc(lc(await Ae(`${e}/package.json`)||""))}async function gc(e,t=mc.cwd()){let r=jD(`Resolve ${(0,Pe.cyan)("addons")} from ${(0,Pe.dim)(t)}`).start(),o={},i=s=>{s&&(o[s.name]=fc(o[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){i(await dc(s,{cwd:t}));continue}typeof s=="object"&&i(fc(await dc(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 dc(e,t={}){let r=await ND(e,t.cwd||mc.cwd()),o=LD(r,"./package.json");if(!await pc.exists(o)){Se.error(`No addon named ${e} found`);return}let i=await pc.readJSON(o);return{enable:!0,name:i.name,global:!!i.global,root:r,options:{},props:{},pkg:i}}async function ND(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return await Xr(r,t)}l();import{writeFile as VD}from"node:fs/promises";import{ensureFile as ID}from"fs-extra";function Qr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Zr(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:Qr(o),to:Qr(r.to)});else t.push({from:Qr(r.from),to:Qr(r.to)});return t}async function hc(e,t){await ID(t),await VD(t,`
|
|
10
|
+
`).map(jC.default));je.calculateMaximumCellWidth=LC;var NC=(e,t=[])=>{let r=new Array(e[0].length).fill(0),o=t.map(Xf.calculateRangeCoordinate),i=(n,s)=>o.some(a=>(0,Xf.isCellInRange)({col:s,row:n},a));return e.forEach((n,s)=>{n.forEach((a,u)=>{i(s,u)||(r[u]=Math.max(r[u],(0,je.calculateMaximumCellWidth)(a)))})}),r};je.calculateMaximumColumnWidths=NC});var ep=b(Ze=>{"use strict";l();var VC=Ze&&Ze.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.alignVerticalRangeContent=Ze.wrapRangeContent=void 0;var IC=VC(kt()),HC=ls(),qC=Fn(),UC=Sn(),WC=kn(),Zf=te(),GC=fn(),JC=(e,t,r)=>{let{topLeft:o,paddingRight:i,paddingLeft:n,truncate:s,wrapWord:a,alignment:u}=e,c=r.rows[o.row][o.col],f=t-n-i;return(0,GC.wrapCell)((0,WC.truncateString)(c,s),f,a).map(d=>{let p=(0,HC.alignString)(d,f,u);return(0,UC.padString)(p,n,i)})};Ze.wrapRangeContent=JC;var zC=(e,t,r)=>{let{rows:o,drawHorizontalLine:i,rowHeights:n}=r,{topLeft:s,bottomRight:a,verticalAlignment:u}=e;if(n.length===0)return[];let c=(0,Zf.sumArray)(n.slice(s.row,a.row+1)),f=a.row-s.row,d=(0,Zf.sequence)(s.row+1,a.row).filter(h=>!i(h,o.length)).length,p=c+f-d;return(0,qC.padCellVertically)(t,p,u).map(h=>h.length===0?" ".repeat((0,IC.default)(t[0])):h)};Ze.alignVerticalRangeContent=zC});var tp=b(jn=>{"use strict";l();Object.defineProperty(jn,"__esModule",{value:!0});jn.calculateSpanningCellWidth=void 0;var Rs=te(),KC=(e,t)=>{let{columnsConfig:r,drawVerticalLine:o}=t,{topLeft:i,bottomRight:n}=e,s=(0,Rs.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,Rs.sumArray)(r.slice(i.col,n.col+1).map(({paddingLeft:f,paddingRight:d})=>f+d)),u=n.col-i.col,c=(0,Rs.sequence)(i.col+1,n.col).filter(f=>!o(f,r.length)).length;return s+a+u-c};jn.calculateSpanningCellWidth=KC});var rp=b(Ln=>{"use strict";l();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.makeRangeConfig=void 0;var YC=te(),XC=(e,t)=>{var r;let{topLeft:o,bottomRight:i}=(0,YC.calculateRangeCoordinate)(e);return{...{...t[o.col],...e,paddingRight:(r=e.paddingRight)!==null&&r!==void 0?r:t[i.col].paddingRight},bottomRight:i,topLeft:o}};Ln.makeRangeConfig=XC});var ip=b(Nn=>{"use strict";l();Object.defineProperty(Nn,"__esModule",{value:!0});Nn.createSpanningCellManager=void 0;var np=ep(),QC=tp(),ZC=rp(),Vt=te(),Fs=(e,t)=>t.find(r=>(0,Vt.isCellInRange)(e,r)),op=(e,t)=>{let r=(0,QC.calculateSpanningCellWidth)(e,t),o=(0,np.wrapRangeContent)(e,r,t),i=(0,np.alignVerticalRangeContent)(e,o,t);return{...e,extractBorderContent:a=>{let{topLeft:u}=e,c=(0,Vt.sumArray)(t.rowHeights.slice(u.row,a))+(a-u.row-1);return i[c]},extractCellContent:a=>{let{topLeft:u}=e,{drawHorizontalLine:c,rowHeights:f}=t,d=a-u.row,p=(0,Vt.sequence)(u.row+1,a).filter(y=>!c?.(y,f.length)).length,h=(0,Vt.sumArray)(f.slice(u.row,a))+d-p;return i.slice(h,h+f[a])},height:o.length,width:r}},ev=(e,t,r)=>{let o=Fs(e,r),i=Fs(t,r);return o&&i?(0,Vt.areCellEqual)(o.topLeft,i.topLeft):!1},tv=e=>{let{row:t,col:r}=e.topLeft;return`${t}/${r}`},rv=e=>{let{spanningCellConfigs:t,columnsConfig:r}=e,o=t.map(a=>(0,ZC.makeRangeConfig)(a,r)),i={},n=[],s=[];return{getContainingRange:(a,u)=>{var c;let f=u?.mapped?s[a.row]:a.row,d=Fs({...a,row:f},o);if(!d)return;if(n.length===0)return op(d,{...e,rowHeights:n});let p=tv(d);return(c=i[p])!==null&&c!==void 0||(i[p]=op(d,{...e,rowHeights:n})),i[p]},inSameRange:(a,u)=>ev(a,u,o),rowHeights:n,rowIndexMapping:s,setRowHeights:a=>{n=a},setRowIndexMapping:a=>{s=(0,Vt.flatten)(a.map((u,c)=>Array.from({length:u},()=>c)))}}};Nn.createSpanningCellManager=rv});var sp=b(In=>{"use strict";l();Object.defineProperty(In,"__esModule",{value:!0});In.validateSpanningCellConfig=void 0;var Ss=te(),Vn=(e,t,r)=>e<=r&&r<=t,nv=(e,t)=>{let[r,o]=[e.length,e[0].length];t.forEach((s,a)=>{let{colSpan:u,rowSpan:c}=s;if(u===void 0&&c===void 0)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${a}]`);if(u!==void 0&&u<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${u} 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(Ss.calculateRangeCoordinate);i.forEach(({topLeft:s,bottomRight:a},u)=>{if(!Vn(0,o-1,s.col)||!Vn(0,r-1,s.row)||!Vn(0,o-1,a.col)||!Vn(0,r-1,a.row))throw new Error(`Some cells in config.spanningCells[${u}] are out of the table`)});let n=Array.from({length:r},()=>Array.from({length:o}));i.forEach(({topLeft:s,bottomRight:a},u)=>{(0,Ss.sequence)(s.row,a.row).forEach(c=>{(0,Ss.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[${u}] are overlap each other`);n[c][f]=u})})})};In.validateSpanningCellConfig=nv});var ap=b(Hn=>{"use strict";l();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.makeTableConfig=void 0;var ov=Qf(),iv=ip(),sv=te(),av=ys(),uv=sp(),lv=(e,t,r,o)=>{let i=(0,ov.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]}))},cv=(e,t={},r)=>{var o,i,n,s,a;(0,av.validateConfig)("config.json",t),(0,uv.validateSpanningCellConfig)(e,(o=t.spanningCells)!==null&&o!==void 0?o:[]);let u=(i=r??t.spanningCells)!==null&&i!==void 0?i:[],c=lv(e,t.columns,t.columnDefault,u),f=(n=t.drawVerticalLine)!==null&&n!==void 0?n:()=>!0,d=(s=t.drawHorizontalLine)!==null&&s!==void 0?s:()=>!0;return{...t,border:(0,sv.makeBorderConfig)(t.border),columns:c,drawHorizontalLine:d,drawVerticalLine:f,singleLine:(a=t.singleLine)!==null&&a!==void 0?a:!1,spanningCellManager:(0,iv.createSpanningCellManager)({columnsConfig:c,drawHorizontalLine:d,drawVerticalLine:f,rows:e,spanningCellConfigs:u})}};Hn.makeTableConfig=cv});var up=b(qn=>{"use strict";l();Object.defineProperty(qn,"__esModule",{value:!0});qn.validateTableData=void 0;var fv=te(),pv=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,fv.normalizeString)(String(o))))throw new Error("Table data must not contain control characters.")}};qn.validateTableData=pv});var lp=b(Un=>{"use strict";l();Object.defineProperty(Un,"__esModule",{value:!0});Un.table=void 0;var dv=cs(),mv=zf(),gv=fs(),hv=Kf(),yv=Yf(),Dv=ap(),bv=Fn(),Cv=Sn(),vv=Ds(),xv=kn(),wv=te(),_v=up(),Ev=(e,t={})=>{(0,_v.validateTableData)(e);let r=(0,vv.stringifyTableData)(e),[o,i]=(0,yv.injectHeaderConfig)(r,t),n=(0,Dv.makeTableConfig)(o,t,i);r=(0,xv.truncateTableData)(o,(0,wv.extractTruncates)(n));let s=(0,gv.calculateRowHeights)(r,n);n.spanningCellManager.setRowHeights(s),n.spanningCellManager.setRowIndexMapping(s),r=(0,bv.mapDataUsingRowHeights)(r,s,n),r=(0,dv.alignTableData)(r,n),r=(0,Cv.padTableData)(r,n);let a=(0,mv.calculateOutputColumnWidths)(n);return(0,hv.drawTable)(r,a,s,n)};Un.table=Ev});var fp=b(cp=>{"use strict";l();Object.defineProperty(cp,"__esModule",{value:!0})});var pp=b(me=>{"use strict";l();var Rv=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]}),Fv=me&&me.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Rv(t,e,r)};Object.defineProperty(me,"__esModule",{value:!0});me.getBorderCharacters=me.createStream=me.table=void 0;var Sv=Jf();Object.defineProperty(me,"createStream",{enumerable:!0,get:function(){return Sv.createStream}});var Av=ss();Object.defineProperty(me,"getBorderCharacters",{enumerable:!0,get:function(){return Av.getBorderCharacters}});var Pv=lp();Object.defineProperty(me,"table",{enumerable:!0,get:function(){return Pv.table}});Fv(fp(),me)});l();import Pw from"node:process";import kw from"yargs";import{hideBin as Ow}from"yargs/helpers";var gt="0.20.7";l();var Rc=ee(Ur(),1),Qe=ee(ae(),1);import At from"node:path";import Pt from"consola";import Xe from"fs-extra";import XD from"gray-matter";l();function Gl(e,t){t.forEach(r=>{r.setup?.(e)})}l();function Ge(e){return e.positional("root",{default:".",type:"string",describe:"root folder of your source files"})}l();var vc=ee(Ur(),1),Ke=ee(ae(),1);import{dirname as HD}from"node:path";import Dc from"node:process";import{ensureSuffix as bc,uniq as qD}from"@antfu/utils";import Cc from"consola";import UD from"debug";import xc from"fs-extra";import{resolve as er}from"pathe";l();l();import _D from"node:path";import ED from"fs-extra";l();var Et=ee(ae(),1);import bD from"node:process";import{isFunction as Kl}from"@antfu/utils";import CD from"consola";import{createDefu as vD}from"defu";import{mergeConfig as xD}from"vite";l();function Je(){let e=performance.now();return()=>{let r=performance.now()-e;return r>1e3?`${(r/1e3).toFixed(2)}s`:`${r.toFixed(2)}ms`}}l();var _t=ee(ae(),1);import{webcrypto as zl}from"node:crypto";import hD from"consola";import{options as yD}from"floating-vue";l();import cD from"node:process";import Jl from"consola";import fD from"fs-extra";import{createJiti as pD}from"jiti";import{resolve as dD}from"pathe";var mD=pD(import.meta.url,{moduleCache:!1});async function gD(e){let{name:t,cwd:r}=e,o=dD(r,`${t}.config.ts`),i={};if(await fD.exists(o))try{i=await mD.import(o,{default:!0})}catch(n){console.error(n),Jl.error(`Failed to load config file: ${o}`)}else Jl.debug(`Config file not found: ${o}`);return{config:i,configFile:o}}async function wt(e,t={}){let{config:r,configFile:o}=await gD({name:e,cwd:t.cwd||cD.cwd()}),i=r;return typeof r=="function"&&(i=await r(t.valaxyOptions||{})),{config:i,configFile:o}}var Jr={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:yD,statistics:{enable:!1,readTime:{speed:{cn:300,en:100}}},pageSize:7,encrypt:{enable:!1,algorithm:"AES-CBC",salt:zl.getRandomValues(new Uint8Array(16)),iv:zl.getRandomValues(new Uint8Array(16))},redirects:{useVueRouter:!0,rules:[]}};function N2(e){return e}async function DD(e){return wt("site",{cwd:e})}async function zr(e){let t=Je(),{config:r,configFile:o}=await DD(e),i=t();return r&&o&&hD.success(`Resolve ${(0,_t.cyan)("siteConfig")} from ${(0,_t.dim)(o)} ${(0,_t.yellow)(i)}`),{siteConfig:r,siteConfigFile:o}}var Yl={siteConfig:Jr,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:{rollupOptions:{external:[]}}},devtools:!0};function wD(e){return e}var Y2=wD;async function Kt(e,t){return await wt("valaxy",{cwd:e,valaxyOptions:t})}var ut=vD((e,t,r)=>{if(Kl(e[t])&&Kl(r)&&(e[t]=function(...o){e[t].call(this,...o),r.call(this,...o)}),t==="vite")return e[t]=xD(e[t],r),!0});async function Xl(e){let t=e.userRoot||bD.cwd(),r=Je(),{config:o,configFile:i}=await Kt(t),n=r();i&&o&&Object.keys(o).length!==0&&CD.success(`Resolve ${(0,Et.cyan)("userValaxyConfig")} from ${(0,Et.dim)(i)} ${(0,Et.yellow)(n)}`);let s=e.theme||o?.theme||"yun";return{config:o,configFile:i,theme:s}}function RD(e){return e}var rR=RD;async function Ql(e,t){let r={};for(let o of e){let i=_D.resolve(o.root,"valaxy.config.ts");if(!await ED.exists(i))continue;let{config:n,configFile:s}=await Kt(o.root,t);n&&(o.configFile=s,r=ut(n,r))}return r}l();var Yr=ee(ae(),1);import AD from"defu";l();var ec=ee(ae(),1);import FD from"consola";import{colors as Zl}from"consola/utils";import SD from"ora";var Se=FD.create({}),ze=Zl.magenta("[valaxy]"),Yt={success:(...e)=>Se.success(ze,...e),info:(...e)=>Se.info(ze,...e),ready:(...e)=>Se.ready(ze,...e)};async function Xt(e,t){let r=`${Zl.cyan("[HOOK]")} ${(0,ec.magenta)(e)}`,o=SD(`${r} calling...`).start();await t.hooks.callHook(e),o.succeed(`${r} done.`)}async function Kr(e){return wt("theme",{cwd:e})}async function tc(e){let{config:t,configFile:r}=await Kr(e.userRoot);if(t&&r&&Se.info(`Resolve ${(0,Yr.cyan)("themeConfig")} from ${(0,Yr.dim)(r)}`),e?.themeRoot){let{config:o}=await Kr(e.themeRoot);t=AD(t||{},o)}return{themeConfig:t,themeConfigFile:r}}function PD(e){return e}var dR=PD;function hR(e){return e}l();import{createDefu as kD}from"defu";var Qt=kD((e,t,r)=>{if(t&&e[t]&&Array.isArray(e[t])&&Array.isArray(r))return e[t]=r,!0});l();l();import{spawn as OD}from"cross-spawn";function Zt(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=OD("git",i),s="";n.stdout.on("data",a=>s+=String(a)),n.on("close",()=>{r(+new Date(s))}),n.on("error",()=>{r(0)})})}l();l();var rc="<!-- more -->",Rt=/^https?:/i,nc=/^pathname:\/\//,PR="/:all(.*)*",oc=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 ic(e){return Rt.test(e)}function TD(e){return e.replace(/\\/g,"/")}function zi(e,t){return t.startsWith(e)?t:e+t}function J(e){return`/@fs${zi("/",TD(e))}`}function sc(e){return e.startsWith("/")||/^\.\.?[/\\]/.test(e)}function ac(e){return`JSON.parse(${JSON.stringify(JSON.stringify(e))})`}l();import uc from"consola";import{resolvePath as $D}from"mlly";import{resolveGlobal as BD}from"resolve-global";var Ki={};async function Ae(e,t=!1){try{return await $D(e,{url:import.meta.url})}catch(r){uc.log(r)}if(Ki.value)try{return BD(e)}catch{}if(t)throw new Error(`Failed to resolve package ${e}`);uc.warn(`Failed to resolve package ${e}`)}l();var Pe=ee(ae(),1);import mc from"node:process";import fc from"defu";import pc from"fs-extra";import jD from"ora";import{resolve as LD}from"pathe";l();import{dirname as lc}from"node:path";import MD from"fs-extra";import{resolve as cc}from"pathe";async function Xr(e,t){if(!e)return"";if(sc(e))if(t){let r=MD.lstatSync(t).isFile();return cc(r?lc(t):t,e)}else throw new Error(`entry is required when ${e} is path`);else return cc(lc(await Ae(`${e}/package.json`)||""))}async function gc(e,t=mc.cwd()){let r=jD(`Resolve ${(0,Pe.cyan)("addons")} from ${(0,Pe.dim)(t)}`).start(),o={},i=s=>{s&&(o[s.name]=fc(o[s.name]||{},s))};if(Array.isArray(e))for(let s of e){if(typeof s=="string"){i(await dc(s,{cwd:t}));continue}typeof s=="object"&&i(fc(await dc(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 dc(e,t={}){let r=await ND(e,t.cwd||mc.cwd()),o=LD(r,"./package.json");if(!await pc.exists(o)){Se.error(`No addon named ${e} found`);return}let i=await pc.readJSON(o);return{enable:!0,name:i.name,global:!!i.global,root:r,options:{},props:{},pkg:i}}async function ND(e,t){let r=e.startsWith("valaxy-addon")||e.startsWith(".")?e:`valaxy-addon-${e}`;return await Xr(r,t)}l();import{writeFile as VD}from"node:fs/promises";import{ensureFile as ID}from"fs-extra";function Qr(e){return e==="/"?"/index":e.endsWith("/")?e.slice(0,-1):e}function Zr(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:Qr(o),to:Qr(r.to)});else t.push({from:Qr(r.from),to:Qr(r.to)});return t}async function hc(e,t){await ID(t),await VD(t,`
|
|
11
11
|
<!DOCTYPE html>
|
|
12
12
|
<html lang="en">
|
|
13
13
|
<head>
|
|
@@ -70,7 +70,7 @@ The language '${p}' is not loaded, falling back to '${o||"txt"}' for syntax high
|
|
|
70
70
|
`)}return f=`<!-- @included: ${s} -->
|
|
71
71
|
${f}`,Gs(e,f,c)}catch{return n}})}var $x=/<!--\s*@included:\s*(.*?)\s*-->/g;function Zp(e){let t=e.userRoot;return(r,o)=>Gs(t,r,o)}function ed(e,t,r){let o=[],i=Js.dirname(t);return e=e.replace($x,(n,s)=>{let u=s.startsWith("@")?Js.resolve(r.userRoot,s.slice(s[1]==="/"?2:1)):Js.join(i,s);return o.push(Tx(u)),""}),{code:e,includes:o}}l();import*as td from"js-base64";function rd(e){return e=e.replace(/^````txt\n```mermaid/gm,"````txt\n\\`\\`\\`mermaid"),e=e.replace(/^```mermaid\s*?(\{.*?\})?\n([\s\S]+?)\n```/gm,(t,r="",o="")=>(o=o.trim(),r=r.trim()||"{}",`<ValaxyMermaid :code="'${td.encode(o,!0)}'" v-bind="${r}" />`)),e=e.replace(/^````txt\n\\`\\`\\`mermaid/gm,"````txt\n```mermaid"),e}async function nd(e){let t=e?.config.markdown||{},r=t.theme??Qn,o=Zp(e);return Bx({include:[/\.md$/],wrapperClasses:"",frontmatter:!0,exportFrontmatter:!1,frontmatterOptions:{grayMatterOptions:Ye},escapeCodeTagInterpolation:!0,markdownItOptions:{quotes:`""''`,html:!0,xhtmlOut:!0,linkify:!0,highlight:await Ms(r,t),...t?.markdownItOptions},async markdownItSetup(i){i.linkify.set({fuzzyLink:!1}),await ir(i,e),e?.config.markdown?.markdownItSetup?.(i);function n(s){s.core.ruler.push("valaxy_md_env",a=>{e.env=a.env})}i.use(n)},transforms:{before(i,n){return i=rd(i),i=o(i,n),i}},...t})}l();import{objectEntries as Mx}from"@antfu/utils";function od(e){let t=Mx($s(e));return[{name:"valaxy:flags",enforce:"pre",transform(r,o){if(o.match(/\.vue($|\?)/)){let i=r;if(t.forEach(([n,s])=>{r=r.replace(new RegExp(n,"g"),s)}),i!==r)return r}}}]}l();import{existsSync as jx}from"node:fs";import{join as Lx,resolve as Nx}from"node:path";import{slash as Vx,uniq as Ix}from"@antfu/utils";function id({clientRoot:e,themeRoot:t,userRoot:r}){let o=Vx(Nx(e,"setup"));return{name:"valaxy:setup",enforce:"pre",async transform(i,n){if(n.startsWith(o)){let s=n.slice(o.length+1).replace(/\?.*$/,""),a=[],u=[];return Ix([t,r]).map(f=>Lx(f,"setup",s)).forEach((f,d)=>{if(!jx(f))return;a.push(`import __n${d} from '${J(f)}'`);let p=`__n${d}`;/\binjection_return\b/.test(i)&&(p=`injection_return = ${p}`),/\binjection_arg\b/.test(i)?p+="(injection_arg)":p+="()",u.push(`// ${f}`,p)}),i=i.replace("/* __imports__ */",a.join(`
|
|
72
72
|
`)),i=i.replace("/* __injections__ */",u.join(`
|
|
73
|
-
`)),i}return null}}}l();import{resolve as Jx}from"node:path";import ud from"defu";import zx from"fs-extra";import{createJiti as Kx}from"jiti";import{presetAttributify as Yx,presetIcons as Xx,presetTypography as Qx,presetUno as Zx,transformerDirectives as e1,transformerVariantGroup as t1}from"unocss";l();import{resolve as Hx}from"node:path";import{isObject as qx}from"@antfu/utils";import Ux from"fs-extra";import{createJiti as Wx}from"jiti";var Gx=Wx(import.meta.url);function sd(e,t,r=""){return e={...e},Object.keys(t).forEach(o=>{qx(e[o])?e[o]=sd(e[o],t[o],r?`${r}.${o}`:o):Array.isArray(e[o])?e[o]=[...e[o],...t[o]]:e[o]=t[o]}),e}async function ad(e,t,r,o,i=!0){let n=o;for(let s of e){let a=Hx(s,"setup",t);if(Ux.existsSync(a)){let c=await(await Gx.import(a,{default:!0}))(r);c!==null&&(n=i?sd(n,c):c)}}return n}var r1=Kx(import.meta.url);async function n1(e){let{config:t}=e,o=["animate-fade-in","m-auto","text-left","rotate-y-180",...["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"],...e.config.unocss?.safelist??[]],i=t.siteConfig;if(t.markdown?.blocks){let s=t.markdown.blocks;Object.entries(s).forEach(([a,u])=>{u.icon&&o.push(u.icon)})}i.social?.length&&i.social.forEach(s=>o.push(s?.icon||""));let n=i.sponsor?.methods||[];return n.length&&n.forEach(s=>o.push(s?.icon||"")),o}async function o1(e){let{config:t}=e;return{shortcuts:[["flex-center","flex items-center justify-center"],["inline-flex-center","inline-flex items-center justify-center"],["btn","px-4 py-1 rounded inline-block bg-$va-c-primary text-white cursor-pointer transition hover:bg-$va-c-primary-light disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],["icon-btn","inline-flex justify-center items-center cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-sky-600"],["va-card","shadow hover:shadow-lg bg-$va-c-bg-light"]],presets:[Zx(t.unocssPresets?.uno),Yx(t.unocssPresets?.attributify),Xx({scale:1.2,...t.unocssPresets?.icons}),Qx(t.unocssPresets?.typography)],rules:[["font-serif",{"font-family":"var(--va-font-serif)"}],["font-sans",{"font-family":"var(--va-font-sans)"}],["font-mono",{"font-family":"var(--va-font-mono)"}]],transformers:[e1(),t1()],safelist:await n1(e)}}async function ld(e){let t=await import("unocss/vite").then(p=>p.default),{unocss:r}=e.config,o=await o1(e),{themeRoot:i,clientRoot:n,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],u=[];[i,n].forEach(p=>a.forEach(h=>u.push(Jx(p,h))));let f={},d=[];for(let p of u)if(await zx.exists(p)){let h=await r1.import(p,{default:!0});f=ud(f,h),d.push(p)}return f=await ad(s,"unocss.ts",{},f,!0),t({configDeps:d,configFile:!1,...ud(r||{},f,o)})}l();var eo=ee(ae(),1);import vd from"consola";import ar from"fs-extra";import b1 from"pascalcase";import{join as sr,relative as C1,resolve as v1}from"pathe";l();import g1 from"debug";import{LRUCache as h1}from"lru-cache";import y1 from"pathe";l();function i1(e,t,r){if(typeof r!="number"||r<=0)return e;let o=t.config.siteConfig.codeHeightLimit;return e=e.replaceAll(/<div.+class="language-\w+">/g,i=>(o!==void 0&&o>0?i=i.replace(/\d+/,r.toString()):i=`${i.slice(0,5)}style="max-height: ${r}px;"${i.slice(5)}`,i)),e}function cd(e){return t=>{let{frontmatter:r={}}=e.env;return i1(t,e,r.codeHeightLimit)}}l();import{slash as s1}from"@antfu/utils";import a1 from"fs-extra";import It from"pathe";function fd(e){let t=It.resolve(e.userRoot,"pages"),{ignoreDeadLinks:r}=e.config,o=e.config.vite?.publicDir||"public";return(i,n)=>{let{links:s=[]}=e.env,a=n,u=n,c=[],f=p=>{c.push({url:p,file:It.relative(t,a)})};function d(p){return r?r===!0?!0:r==="localhostLinks"?p.replace(Rt,"").startsWith("//localhost"):r.some(h=>typeof h=="string"?p===h:h instanceof RegExp?h.test(p):typeof h=="function"?h(p):!1):!1}if(s){let p=It.dirname(u);for(let h of s){let{pathname:y}=new URL(h,"http://a.com");if(!Qp(y))continue;h=h.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),h.endsWith("/")&&(h+="index");let D=decodeURIComponent(s1(h.startsWith("/")?h.slice(1):It.relative(t,It.resolve(p,h)))).replace(/\/index$/,"");!e.pages.includes(D)&&!a1.existsSync(It.resolve(p,o,`${D}.html`))&&!d(h)&&f(h)}}return c}}l();l();import{webcrypto as zs}from"node:crypto";function u1(e){let t=new TextEncoder;return zs.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function l1(e,t){return zs.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function Zn(e,t){let{password:r,iv:o,salt:i}=t,n=await u1(r),s=await l1(n,i),a=new TextEncoder,u=await zs.subtle.encrypt({name:"AES-CBC",iv:o},s,a.encode(e));return String.fromCharCode(...new Uint8Array(u))}function pd(e){let{config:{siteConfig:{encrypt:t}}}=e;return async(r,o,i)=>{let{frontmatter:n={}}=i;if(t.enable){let s=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,
|
|
73
|
+
`)),i}return null}}}l();import{resolve as Jx}from"node:path";import ud from"defu";import zx from"fs-extra";import{createJiti as Kx}from"jiti";import{presetAttributify as Yx,presetIcons as Xx,presetTypography as Qx,presetUno as Zx,transformerDirectives as e1,transformerVariantGroup as t1}from"unocss";l();import{resolve as Hx}from"node:path";import{isObject as qx}from"@antfu/utils";import Ux from"fs-extra";import{createJiti as Wx}from"jiti";var Gx=Wx(import.meta.url);function sd(e,t,r=""){return e={...e},Object.keys(t).forEach(o=>{qx(e[o])?e[o]=sd(e[o],t[o],r?`${r}.${o}`:o):Array.isArray(e[o])?e[o]=[...e[o],...t[o]]:e[o]=t[o]}),e}async function ad(e,t,r,o,i=!0){let n=o;for(let s of e){let a=Hx(s,"setup",t);if(Ux.existsSync(a)){let c=await(await Gx.import(a,{default:!0}))(r);c!==null&&(n=i?sd(n,c):c)}}return n}var r1=Kx(import.meta.url);async function n1(e){let{config:t}=e,o=["animate-fade-in","m-auto","text-left","rotate-y-180",...["i-ri-clipboard-line","i-ri-archive-line","i-ri-folder-2-line","i-ri-price-tag-3-line","i-ri-cloud-line"],...e.config.unocss?.safelist??[]],i=t.siteConfig;if(t.markdown?.blocks){let s=t.markdown.blocks;Object.entries(s).forEach(([a,u])=>{u.icon&&o.push(u.icon)})}i.social?.length&&i.social.forEach(s=>o.push(s?.icon||""));let n=i.sponsor?.methods||[];return n.length&&n.forEach(s=>o.push(s?.icon||"")),o}async function o1(e){let{config:t}=e;return{shortcuts:[["flex-center","flex items-center justify-center"],["inline-flex-center","inline-flex items-center justify-center"],["btn","px-4 py-1 rounded inline-block bg-$va-c-primary text-white cursor-pointer transition hover:bg-$va-c-primary-light disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50"],["icon-btn","inline-flex justify-center items-center cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-sky-600"],["va-card","shadow hover:shadow-lg bg-$va-c-bg-light"]],presets:[Zx(t.unocssPresets?.uno),Yx(t.unocssPresets?.attributify),Xx({scale:1.2,...t.unocssPresets?.icons}),Qx(t.unocssPresets?.typography)],rules:[["font-serif",{"font-family":"var(--va-font-serif)"}],["font-sans",{"font-family":"var(--va-font-sans)"}],["font-mono",{"font-family":"var(--va-font-mono)"}]],transformers:[e1(),t1()],safelist:await n1(e)}}async function ld(e){let t=await import("unocss/vite").then(p=>p.default),{unocss:r}=e.config,o=await o1(e),{themeRoot:i,clientRoot:n,roots:s}=e,a=["uno.config.ts","unocss.config.ts"],u=[];[i,n].forEach(p=>a.forEach(h=>u.push(Jx(p,h))));let f={},d=[];for(let p of u)if(await zx.exists(p)){let h=await r1.import(p,{default:!0});f=ud(f,h),d.push(p)}return f=await ad(s,"unocss.ts",{},f,!0),t({configDeps:d,configFile:!1,...ud(r||{},f,o)})}l();var eo=ee(ae(),1);import vd from"consola";import ar from"fs-extra";import b1 from"pascalcase";import{join as sr,relative as C1,resolve as v1}from"pathe";l();import g1 from"debug";import{LRUCache as h1}from"lru-cache";import y1 from"pathe";l();function i1(e,t,r){if(typeof r!="number"||r<=0)return e;let o=t.config.siteConfig.codeHeightLimit;return e=e.replaceAll(/<div.+class="language-\w+">/g,i=>(o!==void 0&&o>0?i=i.replace(/\d+/,r.toString()):i=`${i.slice(0,5)}style="max-height: ${r}px;"${i.slice(5)}`,i)),e}function cd(e){return t=>{let{frontmatter:r={}}=e.env;return i1(t,e,r.codeHeightLimit)}}l();import{slash as s1}from"@antfu/utils";import a1 from"fs-extra";import It from"pathe";function fd(e){let t=It.resolve(e.userRoot,"pages"),{ignoreDeadLinks:r}=e.config,o=e.config.vite?.publicDir||"public";return(i,n)=>{let{links:s=[]}=e.env,a=n,u=n,c=[],f=p=>{c.push({url:p,file:It.relative(t,a)})};function d(p){return r?r===!0?!0:r==="localhostLinks"?p.replace(Rt,"").startsWith("//localhost"):r.some(h=>typeof h=="string"?p===h:h instanceof RegExp?h.test(p):typeof h=="function"?h(p):!1):!1}if(s){let p=It.dirname(u);for(let h of s){let{pathname:y}=new URL(h,"http://a.com");if(!Qp(y))continue;h=h.replace(/[?#].*$/,"").replace(/\.(html|md)$/,""),h.endsWith("/")&&(h+="index");let D=decodeURIComponent(s1(h.startsWith("/")?h.slice(1):It.relative(t,It.resolve(p,h)))).replace(/\/index$/,"");!e.pages.includes(D)&&!a1.existsSync(It.resolve(p,o,`${D}.html`))&&!d(h)&&f(h)}}return c}}l();l();import{webcrypto as zs}from"node:crypto";function u1(e){let t=new TextEncoder;return zs.subtle.importKey("raw",t.encode(e),"PBKDF2",!1,["deriveBits","deriveKey"])}function l1(e,t){return zs.subtle.deriveKey({name:"PBKDF2",salt:t,iterations:1e5,hash:"SHA-256"},e,{name:"AES-CBC",length:256},!0,["encrypt","decrypt"])}async function Zn(e,t){let{password:r,iv:o,salt:i}=t,n=await u1(r),s=await l1(n,i),a=new TextEncoder,u=await zs.subtle.encrypt({name:"AES-CBC",iv:o},s,a.encode(e));return String.fromCharCode(...new Uint8Array(u))}function pd(e){let{config:{siteConfig:{encrypt:t}}}=e;return async(r,o,i)=>{let{frontmatter:n={}}=i;if(t.enable){let a=function(f){return["<ClientOnly>",`<ValaxyDecrypt :encrypted-content="${f.encryptedContent}" hint="${f.hint}" />`,"</ClientOnly>"].join("")};var s=a;let u=/<!-- valaxy-encrypt-start:(?<password>\w+) -->(?<content>.*?)<!-- valaxy-encrypt-end -->/gs,c=/((<!-- valaxy-encrypt-start:\w+ -->)|(<!-- valaxy-encrypt-end -->))/g;if(n.password)r=r.replaceAll(c,"");else{let f=[];for(let p of r.matchAll(u))f.push(await Zn(p.groups.content,{password:p.groups.password,iv:t.iv,salt:t.salt}));let d=0;f.length&&(n.partiallyEncryptedContents=f,r=r.replaceAll(u,()=>{let h=`$frontmatter.partiallyEncryptedContents[${d++}]`;return a({encryptedContent:h,hint:n.password_hint})}))}if(n.password){let f=r.indexOf("<template>"),d=r.lastIndexOf("</template>"),p=r.slice(f+10,d),h=await Zn(p,{password:n.password,iv:t.iv,salt:t.salt});n.encryptedContent=h,n.encrypt=!0,delete n.password,r=r.replace(p,a({encryptedContent:"$frontmatter.encryptedContent",hint:n.password_hint}));let D=r.lastIndexOf("<script setup>"),R=r.lastIndexOf("</script>"),A=r.slice(D+14,R);r=r.replace(A,"")}if(n.gallery_password){let f=await Zn(JSON.stringify(n.photos),{password:n.gallery_password,iv:t.iv,salt:t.salt});n.encryptedPhotos=f,delete n.gallery_password,delete n.photos}}return r}}l();function dd(e){let t=new Map;return e.replace(/<ValaxyFootnoteItem id="(.*?)">(.*?)<\/ValaxyFootnoteItem>/gs,(r,o,i)=>{let n=i.match(/<ValaxyFootnoteContent>(.*?)<\/ValaxyFootnoteContent>/s)[1].replace(/<ValaxyFootnoteAnchor.*?>(.*?)<\/ValaxyFootnoteAnchor>/gs,""),s=i.replace(/<ValaxyFootnoteContent>(.*?)<\/ValaxyFootnoteContent>/gs,(a,u)=>u).replace(/<ValaxyFootnoteAnchor.*?>(.*?)<\/ValaxyFootnoteAnchor>/gs,(a,u)=>u);return t.set(o,n),s}).replace(/<ValaxyFootnoteRef href="#(.*?)".*?>(.*?)<\/ValaxyFootnoteRef>/gs,(r,o,i)=>`<ValaxyFootnoteTooltip>${i}<template #popper>${t.get(o)}</template></ValaxyFootnoteTooltip>`)}l();var Ht=ee(ae(),1);import c1 from"consola";function md(e,t){return e.includes("{%")&&e.includes("%}")&&c1.error(`${`${t}
|
|
74
74
|
`} Please ${(0,Ht.red)("remove")} ${(0,Ht.cyan)("{% %}")}, because it conflicts with ${(0,Ht.yellow)("markdown-it-attrs")}.`),e.replace("{%","{%"),e.replace("%}","%}"),e}l();function f1(e){return["import { provide } from 'vue'","import { useRoute } from 'vue-router'",`
|
|
75
75
|
const data = ${ac(e)}
|
|
76
76
|
const route = useRoute()`,`const $frontmatter = data.frontmatter || {}
|
|
@@ -98,7 +98,7 @@ ${t.slice(c)}`,t}}l();import p1 from"pathe";function d1(e,t){if(!e||!e.length)re
|
|
|
98
98
|
`)}function E1(e){let t=e.addons.filter(n=>n.global).filter(n=>ar.existsSync(sr(n.root,"./App.vue"))),r=n=>`Addon${b1(n)}App`,o=t.map(n=>`import ${r(n.name)} from "${n.name}/App.vue"`).join(`
|
|
99
99
|
`),i=t.map(n=>`{ component: ${r(n.name)}, props: ${JSON.stringify(n.props)} }`).join(",");return`${o}
|
|
100
100
|
export default [${i}]`}var R1='import { defineComponent } from "vue"; export default defineComponent({ render: () => null });';function Ks(e){let t=sr(e,"App.vue");return ar.existsSync(t)?[`import AppVue from "${J(t)}"`,"export default AppVue"].join(`
|
|
101
|
-
`):R1}async function xd(e,t={}){let{config:r}=e,o="/@valaxy",i=e.roots,n=!1,s,a;return[{name:"valaxy:loader",enforce:"pre",async configResolved(u){a=u,s=await Cd(e,a)},configureServer(u){u.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(u){return u.startsWith(o)?u:null},async load(u){if(u==="/@valaxyjs/config")return x1(e);if(u==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(u==="/@valaxyjs/styles")return await w1(i,e);if(u==="/@valaxyjs/locales")return _1(i);if(u==="/@valaxyjs/addons")return E1(e);if(u==="/@valaxyjs/AppVue")return Ks(e.clientRoot);if(u==="/@valaxyjs/UserAppVue")return Ks(e.userRoot);if(u==="/@valaxyjs/ThemeAppVue")return Ks(e.themeRoot);if(u.startsWith(o))return{code:"",map:{mappings:""}}},async transform(u,c){if(c.endsWith(".md")){let{code:f,deadLinks:d,includes:p}=await s(u,c);return d.length&&(n=!0,vd.error(`Dead links found in ${c}`),vd.error(d)),p.length&&p.forEach(h=>{this.addWatchFile(h)}),f}},renderStart(){if(n&&!(r.ignoreDeadLinks||r.build.ignoreDeadLinks))throw new Error("One or more pages contain dead links.")},async handleHotUpdate(u){let{file:c,server:f,read:d}=u,p=y=>{t.onConfigReload?.(y,e.config),Object.assign(e.config,y),r=y;let D=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(D).map(A=>f.moduleGraph.getModuleById(A))].filter(A=>!!A)};if([e.configFile].includes(c)){let{config:y}=await De({userRoot:e.userRoot});return p(y)}if(c===e.siteConfigFile){let{siteConfig:y}=await zr(e.userRoot);return r.siteConfig=Qt(y,Jr),p(r)}if(c===e.themeConfigFile){let{themeConfig:y}=await tc(e),D=r.themeConfig.pkg;return y.pkg=D,r.themeConfig=y,p(r)}if(c===v1(e.themeRoot,"valaxy.config.ts")){let y=await Xi(e),D=ut(e.config,y),{config:R}=await Yi(e,D);return p(R)}if(c.endsWith(".md")){let y=Je(),D=await d(),{code:R,pageData:A}=await s(D,c),T={path:`/${C1(`${e.userRoot}/pages`,c)}`,pageData:A};f.hot.send({type:"custom",event:"valaxy:pageData",data:T}),Yt.success(`${(0,eo.yellow)("[HMR]")} ${c} ${(0,eo.dim)(`updated in ${y()}`)}`),u.read=()=>R}}}]}l();import Ys from"fs-extra";import T1 from"gray-matter";import{convert as $1}from"html-to-text";import B1 from"markdown-it";import{resolve as M1}from"pathe";import j1 from"unplugin-vue-router/vite";l();import{existsSync as F1,readFileSync as S1}from"node:fs";function A1(e){let t=(e.match(/[\u4E00-\u9FA5]/g)||[]).length,r=(e.replace(/[\u4E00-\u9FA5]/g,"").match(/[\w\u0392-\u03C9\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|[\u00E4\u00C4\u00E5\u00C5\u00F6\u00D6]+/g)||[]).length;return{cn:t,en:r}}function P1({cn:e,en:t},r){let o=e/(r.speed.cn||300)+t/(r.speed.en||100);return o<1?1:Math.ceil(o)}function k1({cn:e,en:t}){let r=e+t;return r<1e3?r.toString():`${Math.round(r/100)/10}k`}function O1(e,t){let r=A1(e);return{countData:r,wordCount:k1(r),readingTime:P1(r,t.readTime)}}function wd({route:e,options:t}){let r=e.components.get("default")||"";if(F1(r)){let o=S1(r,"utf-8"),{wordCount:i,readingTime:n}=O1(o,{readTime:Object.assign({speed:{cn:300,en:100}},t.readTime)});e.meta.frontmatter&&(e.meta.frontmatter.wordCount||(e.meta.frontmatter.wordCount=i),e.meta.frontmatter.readingTime||(e.meta.frontmatter.readingTime=n))}}function L1(e="",t="html",r){switch(t){case"ai":case"md":return e;case"html":return r.render(e);case"text":return $1(r.render(e));default:return e}}async function _d(e){let{options:t}=e,{roots:r,config:o}=t,i=new B1({html:!0});return await ir(i,t),j1({extensions:[".vue",".md"],routesFolder:r.map(n=>`${n}/pages`),dts:M1(t.tempDir,"typed-router.d.ts"),...o.router,async extendRoute(n){let s=JSON.parse(JSON.stringify(o.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:u,otherMeta:c}=n.meta;n.meta=c}n.addToMeta({frontmatter:s}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"}),["/posts","/posts/"].includes(n.fullPath)?n.addToMeta({layout:"posts"}):n.fullPath.startsWith("/posts/")&&n.children.length===0&&n.addToMeta({layout:"post"});let a=n.components.get("default")||"";if(a.endsWith(".md")){let u=Ys.readFileSync(a,"utf-8"),{data:c,excerpt:f,content:d}=T1(u,Ye),p=c,h=t.config.siteConfig.lastUpdated;if(delete p.password,p.gallery_password&&(delete p.gallery_password,delete p.photos),p.date||(p.date=Ys.statSync(a).mtime),h&&(p.updated||(p.updated=Ys.statSync(a).ctime)),p.from&&(Array.isArray(p.from)?p.from.forEach(D=>{t.redirects.push({from:D,to:n.fullPath})}):t.redirects.push({from:p.from,to:n.fullPath})),n.addToMeta({frontmatter:p,excerpt:f?L1(f,p.excerpt_type,i):""}),c.layout&&n.addToMeta({layout:c.layout}),n.meta.frontmatter?.updated||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let D=n.meta.frontmatter.tags;typeof D=="string"&&(n.meta.frontmatter.tags=[D])}o.siteConfig.statistics.enable&&wd({options:o.siteConfig.statistics,route:n});let y={route:n,data:c,excerpt:f,content:d,path:a};o.extendMd?.(y)}return await e.hooks.callHook("vue-router:extendRoute",n),o.router?.extendRoute?.(n)}})}async function ur(e,t={}){let{options:r}=e,{roots:o,config:i}=r,n=await nd(r),s=await xd(r,t),a=[n,Cp(r),id(r),I1({include:[/\.vue$/,/\.md$/],exclude:[],template:{compilerOptions:{isCustomElement:u=>{let c=oc.has(u);return i.vue?.isCustomElement?.forEach(f=>{c=c||f(u)}),c}}},...i.vue}),s,V1(),await _d(e),U1({layoutsDirs:o.map(u=>`${u}/layouts`),...i.layouts}),q1({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:o.map(u=>`${u}/components`).concat(["src/components","components"]),dts:H1(r.tempDir,"components.d.ts"),...i.components}),await ld(r),N1({runtimeOnly:!0,compositionOnly:!0,include:o.map(u=>`${u}/locales/**`)
|
|
101
|
+
`):R1}async function xd(e,t={}){let{config:r}=e,o="/@valaxy",i=e.roots,n=!1,s,a;return[{name:"valaxy:loader",enforce:"pre",async configResolved(u){a=u,s=await Cd(e,a)},configureServer(u){u.watcher.add([e.configFile,e.clientRoot,e.themeRoot,e.userRoot])},resolveId(u){return u.startsWith(o)?u:null},async load(u){if(u==="/@valaxyjs/config")return x1(e);if(u==="/@valaxyjs/context")return`export default ${JSON.stringify(JSON.stringify({userRoot:e.userRoot}))}`;if(u==="/@valaxyjs/styles")return await w1(i,e);if(u==="/@valaxyjs/locales")return _1(i);if(u==="/@valaxyjs/addons")return E1(e);if(u==="/@valaxyjs/AppVue")return Ks(e.clientRoot);if(u==="/@valaxyjs/UserAppVue")return Ks(e.userRoot);if(u==="/@valaxyjs/ThemeAppVue")return Ks(e.themeRoot);if(u.startsWith(o))return{code:"",map:{mappings:""}}},async transform(u,c){if(c.endsWith(".md")){let{code:f,deadLinks:d,includes:p}=await s(u,c);return d.length&&(n=!0,vd.error(`Dead links found in ${c}`),vd.error(d)),p.length&&p.forEach(h=>{this.addWatchFile(h)}),f}},renderStart(){if(n&&!(r.ignoreDeadLinks||r.build.ignoreDeadLinks))throw new Error("One or more pages contain dead links.")},async handleHotUpdate(u){let{file:c,server:f,read:d}=u,p=y=>{t.onConfigReload?.(y,e.config),Object.assign(e.config,y),r=y;let D=["/@valaxyjs/config","/@valaxyjs/context"];return[...Array.from(D).map(A=>f.moduleGraph.getModuleById(A))].filter(A=>!!A)};if([e.configFile].includes(c)){let{config:y}=await De({userRoot:e.userRoot});return p(y)}if(c===e.siteConfigFile){let{siteConfig:y}=await zr(e.userRoot);return r.siteConfig=Qt(y,Jr),p(r)}if(c===e.themeConfigFile){let{themeConfig:y}=await tc(e),D=r.themeConfig.pkg;return y.pkg=D,r.themeConfig=y,p(r)}if(c===v1(e.themeRoot,"valaxy.config.ts")){let y=await Xi(e),D=ut(e.config,y),{config:R}=await Yi(e,D);return p(R)}if(c.endsWith(".md")){let y=Je(),D=await d(),{code:R,pageData:A}=await s(D,c),T={path:`/${C1(`${e.userRoot}/pages`,c)}`,pageData:A};f.hot.send({type:"custom",event:"valaxy:pageData",data:T}),Yt.success(`${(0,eo.yellow)("[HMR]")} ${c} ${(0,eo.dim)(`updated in ${y()}`)}`),u.read=()=>R}}}]}l();import Ys from"fs-extra";import T1 from"gray-matter";import{convert as $1}from"html-to-text";import B1 from"markdown-it";import{resolve as M1}from"pathe";import j1 from"unplugin-vue-router/vite";l();import{existsSync as F1,readFileSync as S1}from"node:fs";function A1(e){let t=(e.match(/[\u4E00-\u9FA5]/g)||[]).length,r=(e.replace(/[\u4E00-\u9FA5]/g,"").match(/[\w\u0392-\u03C9\u0400-\u04FF]+|[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|[\u00E4\u00C4\u00E5\u00C5\u00F6\u00D6]+/g)||[]).length;return{cn:t,en:r}}function P1({cn:e,en:t},r){let o=e/(r.speed.cn||300)+t/(r.speed.en||100);return o<1?1:Math.ceil(o)}function k1({cn:e,en:t}){let r=e+t;return r<1e3?r.toString():`${Math.round(r/100)/10}k`}function O1(e,t){let r=A1(e);return{countData:r,wordCount:k1(r),readingTime:P1(r,t.readTime)}}function wd({route:e,options:t}){let r=e.components.get("default")||"";if(F1(r)){let o=S1(r,"utf-8"),{wordCount:i,readingTime:n}=O1(o,{readTime:Object.assign({speed:{cn:300,en:100}},t.readTime)});e.meta.frontmatter&&(e.meta.frontmatter.wordCount||(e.meta.frontmatter.wordCount=i),e.meta.frontmatter.readingTime||(e.meta.frontmatter.readingTime=n))}}function L1(e="",t="html",r){switch(t){case"ai":case"md":return e;case"html":return r.render(e);case"text":return $1(r.render(e));default:return e}}async function _d(e){let{options:t}=e,{roots:r,config:o}=t,i=new B1({html:!0});return await ir(i,t),j1({extensions:[".vue",".md"],routesFolder:r.map(n=>`${n}/pages`),dts:M1(t.tempDir,"typed-router.d.ts"),...o.router,async extendRoute(n){let s=JSON.parse(JSON.stringify(o.siteConfig.frontmatter))||{};if(n.meta&&n.meta.frontmatter){let{frontmatter:u,otherMeta:c}=n.meta;n.meta=c}n.addToMeta({frontmatter:s}),(n.fullPath==="/"||n.fullPath==="/page")&&n.addToMeta({layout:"home"}),["/posts","/posts/"].includes(n.fullPath)?n.addToMeta({layout:"posts"}):n.fullPath.startsWith("/posts/")&&n.children.length===0&&n.addToMeta({layout:"post"});let a=n.components.get("default")||"";if(a.endsWith(".md")){let u=Ys.readFileSync(a,"utf-8"),{data:c,excerpt:f,content:d}=T1(u,Ye),p=c,h=t.config.siteConfig.lastUpdated;if(delete p.password,p.gallery_password&&(delete p.gallery_password,delete p.photos),p.date||(p.date=Ys.statSync(a).mtime),h&&(p.updated||(p.updated=Ys.statSync(a).ctime)),p.from&&(Array.isArray(p.from)?p.from.forEach(D=>{t.redirects.push({from:D,to:n.fullPath})}):t.redirects.push({from:p.from,to:n.fullPath})),n.addToMeta({frontmatter:p,excerpt:f?L1(f,p.excerpt_type,i):""}),c.layout&&n.addToMeta({layout:c.layout}),n.meta.frontmatter?.updated||(n.meta.frontmatter.updated=n.meta.frontmatter.date),n.meta.frontmatter.tags){let D=n.meta.frontmatter.tags;typeof D=="string"&&(n.meta.frontmatter.tags=[D])}o.siteConfig.statistics.enable&&wd({options:o.siteConfig.statistics,route:n});let y={route:n,data:c,excerpt:f,content:d,path:a};o.extendMd?.(y)}return await e.hooks.callHook("vue-router:extendRoute",n),o.router?.extendRoute?.(n)}})}async function ur(e,t={}){let{options:r}=e,{roots:o,config:i}=r,n=await nd(r),s=await xd(r,t),a=[n,Cp(r),id(r),I1({include:[/\.vue$/,/\.md$/],exclude:[],template:{compilerOptions:{isCustomElement:u=>{let c=oc.has(u);return i.vue?.isCustomElement?.forEach(f=>{c=c||f(u)}),c}}},...i.vue}),s,V1(),await _d(e),U1({layoutsDirs:o.map(u=>`${u}/layouts`),...i.layouts}),q1({extensions:["vue","md"],include:[/\.vue$/,/\.vue\?vue/,/\.md$/],exclude:[],allowOverrides:!0,dirs:o.map(u=>`${u}/components`).concat(["src/components","components"]),dts:H1(r.tempDir,"components.d.ts"),...i.components}),await ld(r),N1({runtimeOnly:!0,compositionOnly:!0,fullInstall:!0,include:o.map(u=>`${u}/locales/**`)}),od(r)];if(i.visualizer)try{let u=(await import("rollup-plugin-visualizer")).visualizer;a.push(u({open:!0,gzipSize:!0,...i.visualizer}))}catch(u){console.error(u),Xs.error("Failed to load rollup-plugin-visualizer"),Xs.error("Please install `rollup-plugin-visualizer` to enable the feature"),console.log(),Xs.info("pnpm add -D rollup-plugin-visualizer"),console.log()}return a}async function Ad(e,t=Ft){let r=Sd(t,{...Ft,plugins:await ur(e)});await W1(r)}async function Pd(e,t={}){let{options:r}=e,o={...Ft,plugins:await ur(e),ssr:{noExternal:["workbox-window",/vue-i18n/,"@vue/devtools-api"]}};o.ssgOptions={script:"async",formatting:"minify",beastiesOptions:{reduceInlineStyles:!1},onFinished(){G1({hostname:r.config.siteConfig.url})}},r.config.build.ssgForPagination&&(o.ssgOptions.includedRoutes=(n,s)=>{let a=n,u=n.filter(f=>f.startsWith("/posts/")),c=Math.ceil(u.length/r.config.siteConfig.pageSize);ro.info(`Generate ${Fd.default.yellow(c)} pages for pagination.`);for(let f=1;f<=c;f++)a.push(`/page/${f}`);return r.config.vite?.ssgOptions?.includeAllRoutes?a:a.filter(f=>!f.split("/").some(d=>d.startsWith(":")))});let i=Sd(o,t);await J1({},i)}async function kd(e){let{userRoot:t}=e,r=Rd(t,"dist/index.html");if(to.existsSync(r)){ro.info("post process for ssg...");let o=await to.readFile(r,"utf-8"),i="</html>";if(!o.endsWith(i)){ro.warn("fix incomplete index.html...");let n=o.lastIndexOf(i);await to.writeFile(r,o.slice(0,n+i.length),"utf-8")}}e.config.siteConfig.redirects?.useVueRouter||await z1(e)}async function z1(e){ro.info("generate client redirects...");let t=Rd(e.userRoot,"dist"),o=Zr(e.redirects).map(async i=>{let n=Ed(t,`${i.from}.html`),s=Ed(t,`${i.to}.html`);if(!await to.pathExists(s))throw new Error(`the route of '${i.to}' not exists`);await hc(i.to,n)});await Promise.all(o)}l();l();import Bd from"node:process";import{colors as tw}from"consola/utils";import{createServer as rw,mergeConfig as nw}from"vite";l();var N=ee(ae(),1);import K1 from"node:os";import Y1 from"node:path";import rt from"node:process";import*as Td from"node:readline";import X1 from"consola";import{colors as Q1}from"consola/utils";import Z1 from"ora";import{mergeConfig as ew}from"vite";var no;function oo(e,t,r){let o=(0,N.blue)(`v${e.config.themeConfig?.pkg?.version}`)||"unknown";if(console.log(),console.log(` ${(0,N.bold)("\u{1F30C} Valaxy")} ${(0,N.blue)(`v${gt}`)}`),console.log(),console.log(`${(0,N.dim)(" \u{1FA90} theme ")} > ${e.theme?(0,N.green)(e.theme):(0,N.gray)("none")} (${o})`),console.log(` ${(0,N.dim)("\u{1F4C1}")} ${(0,N.dim)(Y1.resolve(e.userRoot))}`),t){console.log(),console.log(`${(0,N.dim)(" Preview ")} > ${(0,N.cyan)(`http://localhost:${(0,N.bold)(t)}/`)}`),r&&Object.values(K1.networkInterfaces()).forEach(c=>(c||[]).filter(f=>f.family==="IPv4"&&!f.address.includes("127.0.0.1")).forEach(({address:f})=>{console.log(`${(0,N.dim)(" Network ")} > ${(0,N.blue)(`http://${f}:${(0,N.bold)(t)}/`)}`)})),console.log();let i=`${(0,N.underline)("r")}${(0,N.dim)("estart")}`,n=`${(0,N.underline)("e")}${(0,N.dim)("dit")}`,s=`${(0,N.underline)("o")}${(0,N.dim)("pen")}`,a=`${(0,N.underline)("q")}${(0,N.dim)("r")}`,u=`${(0,N.dim)(" | ")}`;console.log(`${(0,N.dim)(" shortcuts ")} > ${i}${u}${s}${u}${a}${u}${n}`)}console.log()}var qt=Z1(`${ze} creating server ...`);async function lr(e,t){no&&(Yt.info("close server..."),await no.close());let{options:r}=e;qt.start();let o=ew(await Kn(r,"serve"),t);try{no=await Od(e,o,{async onConfigReload(i,n,s=!1){s&&(Yt.info(`${(0,N.yellow)("force")} reload the server`),lr(e,t));let a=!1;i.theme!==n.theme&&(a=!0),a&&lr(e,t)}}),await no.listen(),qt.succeed(`${ze} ${Q1.green("server ready.")}`)}catch(i){X1.error(`failed to start server. error:
|
|
102
102
|
`),console.error(i),rt.exit(1)}}function $d(e){rt.stdin.resume(),rt.stdin.setEncoding("utf8"),Td.emitKeypressEvents(rt.stdin),rt.stdin.isTTY&&rt.stdin.setRawMode(!0),rt.stdin.on("keypress",(t,r)=>{if(r.ctrl&&r.name==="c")rt.exit();else{let[o]=e.filter(i=>i.name===t);if(o)try{o.action()}catch(i){console.error(`Failed to execute shortcut ${o.fullName}`,i)}}})}function Qs(e){return`${ze} ${tw.gray(e)}`}async function Od(e,t={},r={}){Bd.env.EDITOR=Bd.env.EDITOR||"code";let{options:o}=e;qt.text=Qs("init vite plugins ..");let i=await ur(e,r),n=o.mode==="dev"&&o.config.devtools,s=[...i];n&&s.push((await import("vite-plugin-vue-devtools")).default(),(await import("@valaxyjs/devtools")).default()),qt.text=Qs("merge vite config ...");let a=nw(t,{plugins:s});return qt.text=Qs("create vite server ..."),await rw(a)}l();l();import{createHooks as ow}from"hookable";var iw=["build:before","build:after"];function io(e){let t=ow();typeof e.config.hooks=="object"&&Object.keys(e.config.hooks).forEach(o=>{let i=o,n=e.config.hooks[i];typeof n=="function"&&(iw.includes(i)?e.mode==="build"&&t.hook(i,n):t.hook(i,n))});let r={version:gt,hooks:t,hook:t.hook,options:e};return e.addons.forEach(o=>{typeof o.setup=="function"&&o.setup(r)}),r}async function ea({ssg:e,root:t,output:r,log:o}){St(),en(t)||sw.exit(0);let i=Zs.resolve(t),n=await De({userRoot:i},"build");oo(n);let s=io(n);await Xt("options:resolved",s);let a=[];n.config.siteConfig.search.type==="fuse"&&a.push(tn),n.config.modules.rss.enable&&a.push(zn),Gl(s,a);let u=Md(await Kn(n,"build"),n.config.vite||{}),c=Md(u,{configFile:Zs.resolve(n.clientRoot,"vite.config.ts"),build:{emptyOutDir:!0,outDir:Zs.resolve(n.userRoot,r)},logLevel:o});await Xt("config:init",s),await Xt("build:before",s),so.box("\u{1F320} Start building...");try{if(e){so.info(`use ${(0,jd.yellow)("vite-ssg")} to do ssg build...`);try{await Pd(s,c),await kd(n)}catch(f){so.error("[vite-ssg] An internal error occurred."),console.log(f)}}else so.info("use vite do spa build..."),await Ad(s,c)}catch(f){console.log(f)}finally{await Xt("build:after",s)}}function Ld(e){e.command("build [root]","build your blog to static content",t=>Ge(t).option("ssg",{alias:"s",type:"boolean",default:!1,describe:"static site generate"}).option("output",{alias:"o",type:"string",default:"dist",describe:"output dir"}).option("log",{default:"warn",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({ssg:t,root:r,output:o,log:i})=>{await ea({ssg:t,root:r,output:o,log:i})})}l();import Nd from"node:path";import Vd from"node:process";import ve from"consola";import Id from"fs-extra";l();import{access as aw}from"node:fs/promises";async function mt(e){try{return await aw(e),!0}catch{return!1}}async function uw(){let e=Nd.join(Vd.cwd(),"dist"),t=Nd.join(Vd.cwd(),".valaxy");if(ve.box("\u{1F9F9} Starting clean..."),await mt(e)){ve.info("dist directory exists, removing...");try{await Id.rm(e,{recursive:!0,force:!0}),ve.success("dist directory has been successfully removed.")}catch(r){ve.error("Failed to remove dist directory."),ve.error(r)}}else ve.info("No dist directory found, nothing to clean.");if(await mt(t)){ve.info(".valaxy cache directory exists, removing...");try{await Id.rm(t,{recursive:!0,force:!0}),ve.success(".valaxy cache directory has been successfully removed.")}catch(r){ve.error("Failed to remove .valaxy cache directory."),ve.error(r)}}else ve.info("No .valaxy cache directory found, nothing to clean.")}function Hd(e){e.command("clean","Clean the dist folder and cache",()=>{},async()=>{await uw()})}l();import lw from"consola";function qd(e){e.command("debug","Debug your blog",async()=>{lw.info("\u63D0\u95EE\u524D\u8BF7\u643A\u5E26\u4EE5\u4E0B\u4FE1\u606F\uFF1A")})}l();import cw from"node:process";import{confirm as Ud,intro as fw,outro as Wd,select as pw}from"@clack/prompts";function Gd(e){e.command("deploy","deploy your blog to the cloud",async()=>{if(fw("Deploying Your Blog"),await Ud({message:"Do you want to build your blog before deploying?"})&&await ea({ssg:!0,root:cw.cwd(),output:"dist",log:"info"}),await pw({message:"Where do you want to deploy?",options:[{label:"GitHub Pages",value:"gh-pages",hint:"You need install `gh-pages` dependencies."},{label:"Your Own Server",value:"server"}]})==="gh-pages"){let o=!1;try{await import("gh-pages"),o=!0}catch(i){console.error(i),await Ud({message:"Do you want to install `gh-pages` now?"})?(await import("@antfu/install-pkg").then(s=>s.installPackage("gh-pages",{dev:!0})),o=!0):Wd("Please install `gh-pages` before deploying to GitHub Pages.")}if(o){let{publish:i}=await import("gh-pages");await i("dist",{branch:"gh-pages",message:"chore: deploy by valaxy"}),Wd("Done!")}}})}l();import{exec as gw}from"node:child_process";import hw from"node:os";import yw from"node:path";import Dw from"node:process";import bw from"qrcode";import{mergeConfig as Cw}from"vite";l();import dw from"node:net";async function ta(e){return await mw(e)?e:await ta(e+1)}function mw(e){return new Promise(t=>{let r=dw.createServer(o=>{o.write(`Echo server\r
|
|
103
103
|
`),o.pipe(o)});r.listen(e,"0.0.0.0"),r.on("error",()=>{t(!1)}),r.on("listening",()=>{r.close(),t(!0)})})}function Jd(e){e.command("* [root]","Start a local server for Valaxy",t=>Ge(t).option("port",{alias:"p",type:"number",describe:"port"}).option("open",{alias:"o",default:!1,type:"boolean",describe:"open in browser"}).option("remote",{default:!0,type:"boolean",describe:"listen public host and enable remote control"}).option("log",{default:"info",type:"string",choices:["error","warn","info","silent"],describe:"log level"}).strict().help(),async({root:t,port:r,open:o,remote:i,log:n})=>{Zi(),en(t)||Dw.exit(0);let s=r||await ta(4859),a=await De({userRoot:t}),u=io(a),c=Cw({...Ft,configFile:yw.resolve(a.clientRoot,"vite.config.ts"),server:{watch:{ignored:[`!${a.themeRoot}/**`,`${a.userRoot}/**.md`]},port:s,strictPort:!0,open:o,host:i?"0.0.0.0":"localhost"},logLevel:n},a.config.vite||{});await lr(u,c),oo(a,s,i),$d([{name:"r",fullName:"restart",action(){lr(u,c)}},{name:"o",fullName:"open",async action(){let{default:d}=await import("open");d(`http://localhost:${s}`)}},{name:"q",fullName:"qr",action(){let p=`http://${Object.values(hw.networkInterfaces()).flat().filter(h=>h?.family==="IPv4"&&!h.address.includes("127.0.0.1"))[0]?.address||"localhost"}:${s}`;bw.toString(p,{type:"terminal"},(h,y)=>{if(h)throw h;console.log(y)})}},{name:"e",fullName:"edit",action(){gw(`code "${t}"`)}}])})}l();l();var ao=ee(ae(),1);import{writeFile as _w}from"node:fs/promises";import{join as Ew,resolve as Yd}from"node:path";import{ensureSuffix as Rw}from"@antfu/utils";import{consola as ra}from"consola";import{formatDate as Fw}from"date-fns";import{render as Sw}from"ejs";l();import vw from"node:process";var cr=vw.cwd(),zd=`---
|
|
104
104
|
layout: <%=layout%>
|