@lousy-agents/mcp 5.8.0 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/316.js +2961 -0
- package/dist/316.js.map +1 -0
- package/dist/511.js +1260 -0
- package/dist/511.js.map +1 -0
- package/dist/mcp-server.js +588 -707
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
- package/dist/433.js +0 -1740
- package/dist/433.js.map +0 -1
- package/dist/696.js +0 -13
- package/dist/696.js.map +0 -1
package/dist/mcp-server.js
CHANGED
|
@@ -6530,50 +6530,18 @@ module.exports = __rspack_createRequire_require("events");
|
|
|
6530
6530
|
9896(module) {
|
|
6531
6531
|
module.exports = __rspack_createRequire_require("fs");
|
|
6532
6532
|
|
|
6533
|
-
},
|
|
6534
|
-
8611(module) {
|
|
6535
|
-
module.exports = __rspack_createRequire_require("http");
|
|
6536
|
-
|
|
6537
|
-
},
|
|
6538
|
-
5692(module) {
|
|
6539
|
-
module.exports = __rspack_createRequire_require("https");
|
|
6540
|
-
|
|
6541
|
-
},
|
|
6542
|
-
9278(module) {
|
|
6543
|
-
module.exports = __rspack_createRequire_require("net");
|
|
6544
|
-
|
|
6545
6533
|
},
|
|
6546
6534
|
4589(module) {
|
|
6547
6535
|
module.exports = __rspack_createRequire_require("node:assert");
|
|
6548
6536
|
|
|
6549
|
-
},
|
|
6550
|
-
6698(module) {
|
|
6551
|
-
module.exports = __rspack_createRequire_require("node:async_hooks");
|
|
6552
|
-
|
|
6553
|
-
},
|
|
6554
|
-
4573(module) {
|
|
6555
|
-
module.exports = __rspack_createRequire_require("node:buffer");
|
|
6556
|
-
|
|
6557
6537
|
},
|
|
6558
6538
|
1421(module) {
|
|
6559
6539
|
module.exports = __rspack_createRequire_require("node:child_process");
|
|
6560
6540
|
|
|
6561
|
-
},
|
|
6562
|
-
7540(module) {
|
|
6563
|
-
module.exports = __rspack_createRequire_require("node:console");
|
|
6564
|
-
|
|
6565
6541
|
},
|
|
6566
6542
|
7598(module) {
|
|
6567
6543
|
module.exports = __rspack_createRequire_require("node:crypto");
|
|
6568
6544
|
|
|
6569
|
-
},
|
|
6570
|
-
3053(module) {
|
|
6571
|
-
module.exports = __rspack_createRequire_require("node:diagnostics_channel");
|
|
6572
|
-
|
|
6573
|
-
},
|
|
6574
|
-
610(module) {
|
|
6575
|
-
module.exports = __rspack_createRequire_require("node:dns");
|
|
6576
|
-
|
|
6577
6545
|
},
|
|
6578
6546
|
8474(module) {
|
|
6579
6547
|
module.exports = __rspack_createRequire_require("node:events");
|
|
@@ -6586,26 +6554,10 @@ module.exports = __rspack_createRequire_require("node:fs");
|
|
|
6586
6554
|
1455(module) {
|
|
6587
6555
|
module.exports = __rspack_createRequire_require("node:fs/promises");
|
|
6588
6556
|
|
|
6589
|
-
},
|
|
6590
|
-
7067(module) {
|
|
6591
|
-
module.exports = __rspack_createRequire_require("node:http");
|
|
6592
|
-
|
|
6593
|
-
},
|
|
6594
|
-
2467(module) {
|
|
6595
|
-
module.exports = __rspack_createRequire_require("node:http2");
|
|
6596
|
-
|
|
6597
|
-
},
|
|
6598
|
-
4708(module) {
|
|
6599
|
-
module.exports = __rspack_createRequire_require("node:https");
|
|
6600
|
-
|
|
6601
6557
|
},
|
|
6602
6558
|
8995(module) {
|
|
6603
6559
|
module.exports = __rspack_createRequire_require("node:module");
|
|
6604
6560
|
|
|
6605
|
-
},
|
|
6606
|
-
7030(module) {
|
|
6607
|
-
module.exports = __rspack_createRequire_require("node:net");
|
|
6608
|
-
|
|
6609
6561
|
},
|
|
6610
6562
|
8161(module) {
|
|
6611
6563
|
module.exports = __rspack_createRequire_require("node:os");
|
|
@@ -6622,10 +6574,6 @@ module.exports = __rspack_createRequire_require("node:perf_hooks");
|
|
|
6622
6574
|
1708(module) {
|
|
6623
6575
|
module.exports = __rspack_createRequire_require("node:process");
|
|
6624
6576
|
|
|
6625
|
-
},
|
|
6626
|
-
1792(module) {
|
|
6627
|
-
module.exports = __rspack_createRequire_require("node:querystring");
|
|
6628
|
-
|
|
6629
6577
|
},
|
|
6630
6578
|
481(module) {
|
|
6631
6579
|
module.exports = __rspack_createRequire_require("node:readline");
|
|
@@ -6635,12 +6583,12 @@ module.exports = __rspack_createRequire_require("node:readline");
|
|
|
6635
6583
|
module.exports = __rspack_createRequire_require("node:stream");
|
|
6636
6584
|
|
|
6637
6585
|
},
|
|
6638
|
-
|
|
6639
|
-
module.exports = __rspack_createRequire_require("node:stream/
|
|
6586
|
+
6466(module) {
|
|
6587
|
+
module.exports = __rspack_createRequire_require("node:stream/promises");
|
|
6640
6588
|
|
|
6641
6589
|
},
|
|
6642
|
-
|
|
6643
|
-
module.exports = __rspack_createRequire_require("node:
|
|
6590
|
+
6193(module) {
|
|
6591
|
+
module.exports = __rspack_createRequire_require("node:string_decoder");
|
|
6644
6592
|
|
|
6645
6593
|
},
|
|
6646
6594
|
7066(module) {
|
|
@@ -6654,10 +6602,6 @@ module.exports = __rspack_createRequire_require("node:url");
|
|
|
6654
6602
|
7975(module) {
|
|
6655
6603
|
module.exports = __rspack_createRequire_require("node:util");
|
|
6656
6604
|
|
|
6657
|
-
},
|
|
6658
|
-
3429(module) {
|
|
6659
|
-
module.exports = __rspack_createRequire_require("node:util/types");
|
|
6660
|
-
|
|
6661
6605
|
},
|
|
6662
6606
|
8877(module) {
|
|
6663
6607
|
module.exports = __rspack_createRequire_require("node:v8");
|
|
@@ -6666,14 +6610,6 @@ module.exports = __rspack_createRequire_require("node:v8");
|
|
|
6666
6610
|
714(module) {
|
|
6667
6611
|
module.exports = __rspack_createRequire_require("node:vm");
|
|
6668
6612
|
|
|
6669
|
-
},
|
|
6670
|
-
5919(module) {
|
|
6671
|
-
module.exports = __rspack_createRequire_require("node:worker_threads");
|
|
6672
|
-
|
|
6673
|
-
},
|
|
6674
|
-
8522(module) {
|
|
6675
|
-
module.exports = __rspack_createRequire_require("node:zlib");
|
|
6676
|
-
|
|
6677
6613
|
},
|
|
6678
6614
|
857(module) {
|
|
6679
6615
|
module.exports = __rspack_createRequire_require("os");
|
|
@@ -6686,34 +6622,6 @@ module.exports = __rspack_createRequire_require("path");
|
|
|
6686
6622
|
932(module) {
|
|
6687
6623
|
module.exports = __rspack_createRequire_require("process");
|
|
6688
6624
|
|
|
6689
|
-
},
|
|
6690
|
-
2203(module) {
|
|
6691
|
-
module.exports = __rspack_createRequire_require("stream");
|
|
6692
|
-
|
|
6693
|
-
},
|
|
6694
|
-
3193(module) {
|
|
6695
|
-
module.exports = __rspack_createRequire_require("string_decoder");
|
|
6696
|
-
|
|
6697
|
-
},
|
|
6698
|
-
4756(module) {
|
|
6699
|
-
module.exports = __rspack_createRequire_require("tls");
|
|
6700
|
-
|
|
6701
|
-
},
|
|
6702
|
-
2018(module) {
|
|
6703
|
-
module.exports = __rspack_createRequire_require("tty");
|
|
6704
|
-
|
|
6705
|
-
},
|
|
6706
|
-
7016(module) {
|
|
6707
|
-
module.exports = __rspack_createRequire_require("url");
|
|
6708
|
-
|
|
6709
|
-
},
|
|
6710
|
-
9023(module) {
|
|
6711
|
-
module.exports = __rspack_createRequire_require("util");
|
|
6712
|
-
|
|
6713
|
-
},
|
|
6714
|
-
8167(module) {
|
|
6715
|
-
module.exports = __rspack_createRequire_require("worker_threads");
|
|
6716
|
-
|
|
6717
6625
|
},
|
|
6718
6626
|
3106(module) {
|
|
6719
6627
|
module.exports = __rspack_createRequire_require("zlib");
|
|
@@ -16033,344 +15941,6 @@ function jsonc_parser_e(e,i=!1){let a=e.length,o=0,s=``,c=0,l=16,u=0,d=0,f=0,p=0
|
|
|
16033
15941
|
;// CONCATENATED MODULE: ../../node_modules/confbox/dist/jsonc.mjs
|
|
16034
15942
|
function jsonc_r(n,r){let i=jsonc_parser_m(n,r?.errors,r);return (0,_format.n)(n,i,r),i}function jsonc_i(e,t){return n(e,t)}
|
|
16035
15943
|
|
|
16036
|
-
},
|
|
16037
|
-
8437(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
16038
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
16039
|
-
$Q: () => (defu)
|
|
16040
|
-
});
|
|
16041
|
-
function isPlainObject(value) {
|
|
16042
|
-
if (value === null || typeof value !== "object") {
|
|
16043
|
-
return false;
|
|
16044
|
-
}
|
|
16045
|
-
const prototype = Object.getPrototypeOf(value);
|
|
16046
|
-
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
|
|
16047
|
-
return false;
|
|
16048
|
-
}
|
|
16049
|
-
if (Symbol.iterator in value) {
|
|
16050
|
-
return false;
|
|
16051
|
-
}
|
|
16052
|
-
if (Symbol.toStringTag in value) {
|
|
16053
|
-
return Object.prototype.toString.call(value) === "[object Module]";
|
|
16054
|
-
}
|
|
16055
|
-
return true;
|
|
16056
|
-
}
|
|
16057
|
-
|
|
16058
|
-
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
16059
|
-
if (!isPlainObject(defaults)) {
|
|
16060
|
-
return _defu(baseObject, {}, namespace, merger);
|
|
16061
|
-
}
|
|
16062
|
-
const object = Object.assign({}, defaults);
|
|
16063
|
-
for (const key in baseObject) {
|
|
16064
|
-
if (key === "__proto__" || key === "constructor") {
|
|
16065
|
-
continue;
|
|
16066
|
-
}
|
|
16067
|
-
const value = baseObject[key];
|
|
16068
|
-
if (value === null || value === void 0) {
|
|
16069
|
-
continue;
|
|
16070
|
-
}
|
|
16071
|
-
if (merger && merger(object, key, value, namespace)) {
|
|
16072
|
-
continue;
|
|
16073
|
-
}
|
|
16074
|
-
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
16075
|
-
object[key] = [...value, ...object[key]];
|
|
16076
|
-
} else if (isPlainObject(value) && isPlainObject(object[key])) {
|
|
16077
|
-
object[key] = _defu(
|
|
16078
|
-
value,
|
|
16079
|
-
object[key],
|
|
16080
|
-
(namespace ? `${namespace}.` : "") + key.toString(),
|
|
16081
|
-
merger
|
|
16082
|
-
);
|
|
16083
|
-
} else {
|
|
16084
|
-
object[key] = value;
|
|
16085
|
-
}
|
|
16086
|
-
}
|
|
16087
|
-
return object;
|
|
16088
|
-
}
|
|
16089
|
-
function createDefu(merger) {
|
|
16090
|
-
return (...arguments_) => (
|
|
16091
|
-
// eslint-disable-next-line unicorn/no-array-reduce
|
|
16092
|
-
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
16093
|
-
);
|
|
16094
|
-
}
|
|
16095
|
-
const defu = createDefu();
|
|
16096
|
-
const defuFn = createDefu((object, key, currentValue) => {
|
|
16097
|
-
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
16098
|
-
object[key] = currentValue(object[key]);
|
|
16099
|
-
return true;
|
|
16100
|
-
}
|
|
16101
|
-
});
|
|
16102
|
-
const defuArrayFn = createDefu((object, key, currentValue) => {
|
|
16103
|
-
if (Array.isArray(object[key]) && typeof currentValue === "function") {
|
|
16104
|
-
object[key] = currentValue(object[key]);
|
|
16105
|
-
return true;
|
|
16106
|
-
}
|
|
16107
|
-
});
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
},
|
|
16113
|
-
2072(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
16114
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
16115
|
-
c: () => (basename),
|
|
16116
|
-
d: () => (dirname),
|
|
16117
|
-
e: () => (extname),
|
|
16118
|
-
i: () => (isAbsolute),
|
|
16119
|
-
j: () => (join),
|
|
16120
|
-
n: () => (normalize),
|
|
16121
|
-
r: () => (resolve)
|
|
16122
|
-
});
|
|
16123
|
-
let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},"__esModule",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r=="function",Q=r=>r.length===0,W=r=>typeof r=="number",K=r=>typeof r=="object"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r=="string",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,"y"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error("Invalid rule")}),P="abcdefghijklmnopqrstuvwxyz",ir=r=>{let e="";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,"0")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join("")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\*\*\/\*$/,".*"),cr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}`),lr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(r,e,n,a)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}(?:${a.replaceAll(",","|").replaceAll(".","\\.")})`),y=i(/\\./,p),pr=i(/[$.*+?^(){}[\]\|]/,r=>`\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,""),fr=l([hr,dr]),xr=i(/\/(\*\*\/)+/,"(?:/.+/|/)"),gr=i(/^(\*\*\/)+/,"(?:^|.*/)"),mr=i(/\/(\*\*)$/,"(?:/.*|$)"),_r=i(/\*\*/,".*"),j=l([xr,gr,mr,_r]),Sr=i(/\*\/(?!\*\*\/)/,"[^/]*/"),yr=i(/\*/,"[^/]*"),N=l([Sr,yr]),k=i("?","[^/]"),$r=i("[",p),wr=i("]",p),Ar=i(/[!^]/,"^/"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Mr=i(/[^\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i("{","(?:"),Or=i("}",")"),Rr=i(/(\d+)\.\.(\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join("|")),zr=i(/([a-z]+)\.\.([a-z]+)/,(r,e,n)=>R(e,n).join("|")),jr=i(/([A-Z]+)\.\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i("{","(?:"),Br=i("}",")"),Ir=i(",","|"),Fr=i(/[$.*+?^(){[\]\|]/,r=>`\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\./,p),qr=i(/./,p),Hr=i(/\*\*\*+/,"*"),Jr=i(/([^/{[(!])\*\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\*\*(?=[^*/)\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\/(?:\*\*)?|\[\/\])$/.test(s)),o=e.replace(/[\\\/]+/g,"/").replace(/\/$/,t?"/":"");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,"s");var re=$;return J(w)})();
|
|
16124
|
-
return __lib__.default || __lib__; };
|
|
16125
|
-
let _match;
|
|
16126
|
-
const zeptomatch = (path, pattern) => {
|
|
16127
|
-
if (!_match) {
|
|
16128
|
-
_match = _lazyMatch();
|
|
16129
|
-
_lazyMatch = null;
|
|
16130
|
-
}
|
|
16131
|
-
return _match(path, pattern);
|
|
16132
|
-
};
|
|
16133
|
-
|
|
16134
|
-
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
16135
|
-
function normalizeWindowsPath(input = "") {
|
|
16136
|
-
if (!input) {
|
|
16137
|
-
return input;
|
|
16138
|
-
}
|
|
16139
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
16140
|
-
}
|
|
16141
|
-
|
|
16142
|
-
const _UNC_REGEX = /^[/\\]{2}/;
|
|
16143
|
-
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
16144
|
-
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
16145
|
-
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
16146
|
-
const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
16147
|
-
const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
|
|
16148
|
-
const sep = "/";
|
|
16149
|
-
const normalize = function(path) {
|
|
16150
|
-
if (path.length === 0) {
|
|
16151
|
-
return ".";
|
|
16152
|
-
}
|
|
16153
|
-
path = normalizeWindowsPath(path);
|
|
16154
|
-
const isUNCPath = path.match(_UNC_REGEX);
|
|
16155
|
-
const isPathAbsolute = isAbsolute(path);
|
|
16156
|
-
const trailingSeparator = path[path.length - 1] === "/";
|
|
16157
|
-
path = normalizeString(path, !isPathAbsolute);
|
|
16158
|
-
if (path.length === 0) {
|
|
16159
|
-
if (isPathAbsolute) {
|
|
16160
|
-
return "/";
|
|
16161
|
-
}
|
|
16162
|
-
return trailingSeparator ? "./" : ".";
|
|
16163
|
-
}
|
|
16164
|
-
if (trailingSeparator) {
|
|
16165
|
-
path += "/";
|
|
16166
|
-
}
|
|
16167
|
-
if (_DRIVE_LETTER_RE.test(path)) {
|
|
16168
|
-
path += "/";
|
|
16169
|
-
}
|
|
16170
|
-
if (isUNCPath) {
|
|
16171
|
-
if (!isPathAbsolute) {
|
|
16172
|
-
return `//./${path}`;
|
|
16173
|
-
}
|
|
16174
|
-
return `//${path}`;
|
|
16175
|
-
}
|
|
16176
|
-
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
16177
|
-
};
|
|
16178
|
-
const join = function(...segments) {
|
|
16179
|
-
let path = "";
|
|
16180
|
-
for (const seg of segments) {
|
|
16181
|
-
if (!seg) {
|
|
16182
|
-
continue;
|
|
16183
|
-
}
|
|
16184
|
-
if (path.length > 0) {
|
|
16185
|
-
const pathTrailing = path[path.length - 1] === "/";
|
|
16186
|
-
const segLeading = seg[0] === "/";
|
|
16187
|
-
const both = pathTrailing && segLeading;
|
|
16188
|
-
if (both) {
|
|
16189
|
-
path += seg.slice(1);
|
|
16190
|
-
} else {
|
|
16191
|
-
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
16192
|
-
}
|
|
16193
|
-
} else {
|
|
16194
|
-
path += seg;
|
|
16195
|
-
}
|
|
16196
|
-
}
|
|
16197
|
-
return normalize(path);
|
|
16198
|
-
};
|
|
16199
|
-
function cwd() {
|
|
16200
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
16201
|
-
return process.cwd().replace(/\\/g, "/");
|
|
16202
|
-
}
|
|
16203
|
-
return "/";
|
|
16204
|
-
}
|
|
16205
|
-
const resolve = function(...arguments_) {
|
|
16206
|
-
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
16207
|
-
let resolvedPath = "";
|
|
16208
|
-
let resolvedAbsolute = false;
|
|
16209
|
-
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
16210
|
-
const path = index >= 0 ? arguments_[index] : cwd();
|
|
16211
|
-
if (!path || path.length === 0) {
|
|
16212
|
-
continue;
|
|
16213
|
-
}
|
|
16214
|
-
resolvedPath = `${path}/${resolvedPath}`;
|
|
16215
|
-
resolvedAbsolute = isAbsolute(path);
|
|
16216
|
-
}
|
|
16217
|
-
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
16218
|
-
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
16219
|
-
return `/${resolvedPath}`;
|
|
16220
|
-
}
|
|
16221
|
-
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
16222
|
-
};
|
|
16223
|
-
function normalizeString(path, allowAboveRoot) {
|
|
16224
|
-
let res = "";
|
|
16225
|
-
let lastSegmentLength = 0;
|
|
16226
|
-
let lastSlash = -1;
|
|
16227
|
-
let dots = 0;
|
|
16228
|
-
let char = null;
|
|
16229
|
-
for (let index = 0; index <= path.length; ++index) {
|
|
16230
|
-
if (index < path.length) {
|
|
16231
|
-
char = path[index];
|
|
16232
|
-
} else if (char === "/") {
|
|
16233
|
-
break;
|
|
16234
|
-
} else {
|
|
16235
|
-
char = "/";
|
|
16236
|
-
}
|
|
16237
|
-
if (char === "/") {
|
|
16238
|
-
if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
|
|
16239
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
16240
|
-
if (res.length > 2) {
|
|
16241
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
16242
|
-
if (lastSlashIndex === -1) {
|
|
16243
|
-
res = "";
|
|
16244
|
-
lastSegmentLength = 0;
|
|
16245
|
-
} else {
|
|
16246
|
-
res = res.slice(0, lastSlashIndex);
|
|
16247
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
16248
|
-
}
|
|
16249
|
-
lastSlash = index;
|
|
16250
|
-
dots = 0;
|
|
16251
|
-
continue;
|
|
16252
|
-
} else if (res.length > 0) {
|
|
16253
|
-
res = "";
|
|
16254
|
-
lastSegmentLength = 0;
|
|
16255
|
-
lastSlash = index;
|
|
16256
|
-
dots = 0;
|
|
16257
|
-
continue;
|
|
16258
|
-
}
|
|
16259
|
-
}
|
|
16260
|
-
if (allowAboveRoot) {
|
|
16261
|
-
res += res.length > 0 ? "/.." : "..";
|
|
16262
|
-
lastSegmentLength = 2;
|
|
16263
|
-
}
|
|
16264
|
-
} else {
|
|
16265
|
-
if (res.length > 0) {
|
|
16266
|
-
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
16267
|
-
} else {
|
|
16268
|
-
res = path.slice(lastSlash + 1, index);
|
|
16269
|
-
}
|
|
16270
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
16271
|
-
}
|
|
16272
|
-
lastSlash = index;
|
|
16273
|
-
dots = 0;
|
|
16274
|
-
} else if (char === "." && dots !== -1) {
|
|
16275
|
-
++dots;
|
|
16276
|
-
} else {
|
|
16277
|
-
dots = -1;
|
|
16278
|
-
}
|
|
16279
|
-
}
|
|
16280
|
-
return res;
|
|
16281
|
-
}
|
|
16282
|
-
const isAbsolute = function(p) {
|
|
16283
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
16284
|
-
};
|
|
16285
|
-
const toNamespacedPath = function(p) {
|
|
16286
|
-
return normalizeWindowsPath(p);
|
|
16287
|
-
};
|
|
16288
|
-
const extname = function(p) {
|
|
16289
|
-
if (p === "..") return "";
|
|
16290
|
-
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
16291
|
-
return match && match[1] || "";
|
|
16292
|
-
};
|
|
16293
|
-
const relative = function(from, to) {
|
|
16294
|
-
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
16295
|
-
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
16296
|
-
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
16297
|
-
return _to.join("/");
|
|
16298
|
-
}
|
|
16299
|
-
const _fromCopy = [..._from];
|
|
16300
|
-
for (const segment of _fromCopy) {
|
|
16301
|
-
if (_to[0] !== segment) {
|
|
16302
|
-
break;
|
|
16303
|
-
}
|
|
16304
|
-
_from.shift();
|
|
16305
|
-
_to.shift();
|
|
16306
|
-
}
|
|
16307
|
-
return [..._from.map(() => ".."), ..._to].join("/");
|
|
16308
|
-
};
|
|
16309
|
-
const dirname = function(p) {
|
|
16310
|
-
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
16311
|
-
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
16312
|
-
segments[0] += "/";
|
|
16313
|
-
}
|
|
16314
|
-
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
16315
|
-
};
|
|
16316
|
-
const format = function(p) {
|
|
16317
|
-
const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
|
|
16318
|
-
const segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
|
|
16319
|
-
Boolean
|
|
16320
|
-
);
|
|
16321
|
-
return normalizeWindowsPath(
|
|
16322
|
-
p.root ? resolve(...segments) : segments.join("/")
|
|
16323
|
-
);
|
|
16324
|
-
};
|
|
16325
|
-
const basename = function(p, extension) {
|
|
16326
|
-
const segments = normalizeWindowsPath(p).split("/");
|
|
16327
|
-
let lastSegment = "";
|
|
16328
|
-
for (let i = segments.length - 1; i >= 0; i--) {
|
|
16329
|
-
const val = segments[i];
|
|
16330
|
-
if (val) {
|
|
16331
|
-
lastSegment = val;
|
|
16332
|
-
break;
|
|
16333
|
-
}
|
|
16334
|
-
}
|
|
16335
|
-
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
16336
|
-
};
|
|
16337
|
-
const parse = function(p) {
|
|
16338
|
-
const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
|
|
16339
|
-
const base = basename(p);
|
|
16340
|
-
const extension = extname(base);
|
|
16341
|
-
return {
|
|
16342
|
-
root,
|
|
16343
|
-
dir: dirname(p),
|
|
16344
|
-
base,
|
|
16345
|
-
ext: extension,
|
|
16346
|
-
name: base.slice(0, base.length - extension.length)
|
|
16347
|
-
};
|
|
16348
|
-
};
|
|
16349
|
-
const matchesGlob = (path, pattern) => {
|
|
16350
|
-
return zeptomatch(pattern, normalize(path));
|
|
16351
|
-
};
|
|
16352
|
-
|
|
16353
|
-
const _path = (/* unused pure expression or super */ null && ({
|
|
16354
|
-
__proto__: null,
|
|
16355
|
-
basename: basename,
|
|
16356
|
-
dirname: dirname,
|
|
16357
|
-
extname: extname,
|
|
16358
|
-
format: format,
|
|
16359
|
-
isAbsolute: isAbsolute,
|
|
16360
|
-
join: join,
|
|
16361
|
-
matchesGlob: matchesGlob,
|
|
16362
|
-
normalize: normalize,
|
|
16363
|
-
normalizeString: normalizeString,
|
|
16364
|
-
parse: parse,
|
|
16365
|
-
relative: relative,
|
|
16366
|
-
resolve: resolve,
|
|
16367
|
-
sep: sep,
|
|
16368
|
-
toNamespacedPath: toNamespacedPath
|
|
16369
|
-
}));
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
15944
|
},
|
|
16375
15945
|
3770(module) {
|
|
16376
15946
|
module.exports = JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')
|
|
@@ -20813,7 +20383,7 @@ const ar_error = () => {
|
|
|
20813
20383
|
}
|
|
20814
20384
|
};
|
|
20815
20385
|
};
|
|
20816
|
-
/* export default */ function
|
|
20386
|
+
/* export default */ function locales_ar() {
|
|
20817
20387
|
return {
|
|
20818
20388
|
localeError: ar_error(),
|
|
20819
20389
|
};
|
|
@@ -22345,7 +21915,7 @@ const fr_error = () => {
|
|
|
22345
21915
|
}
|
|
22346
21916
|
};
|
|
22347
21917
|
};
|
|
22348
|
-
/* export default */ function
|
|
21918
|
+
/* export default */ function locales_fr() {
|
|
22349
21919
|
return {
|
|
22350
21920
|
localeError: fr_error(),
|
|
22351
21921
|
};
|
|
@@ -25520,7 +25090,7 @@ const tr_error = () => {
|
|
|
25520
25090
|
}
|
|
25521
25091
|
};
|
|
25522
25092
|
};
|
|
25523
|
-
/* export default */ function
|
|
25093
|
+
/* export default */ function locales_tr() {
|
|
25524
25094
|
return {
|
|
25525
25095
|
localeError: tr_error(),
|
|
25526
25096
|
};
|
|
@@ -25749,7 +25319,7 @@ const ur_error = () => {
|
|
|
25749
25319
|
}
|
|
25750
25320
|
};
|
|
25751
25321
|
};
|
|
25752
|
-
/* export default */ function
|
|
25322
|
+
/* export default */ function locales_ur() {
|
|
25753
25323
|
return {
|
|
25754
25324
|
localeError: ur_error(),
|
|
25755
25325
|
};
|
|
@@ -43042,8 +42612,257 @@ function isPathWithinRoot(rootPath, candidatePath) {
|
|
|
43042
42612
|
|
|
43043
42613
|
// EXTERNAL MODULE: external "node:fs"
|
|
43044
42614
|
var external_node_fs_ = __webpack_require__(3024);
|
|
43045
|
-
|
|
43046
|
-
var
|
|
42615
|
+
;// CONCATENATED MODULE: ../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
42616
|
+
let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},"__esModule",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r=="function",Q=r=>r.length===0,W=r=>typeof r=="number",K=r=>typeof r=="object"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r=="string",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: "${a}"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,"y"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error("Invalid rule")}),P="abcdefghijklmnopqrstuvwxyz",ir=r=>{let e="";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,"0")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join("")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\*\*\/\*$/,".*"),cr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}`),lr=i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(r,e,n,a)=>`.*${e?"":"(?:^|/)"}${n.replaceAll(".","\\.")}(?:${a.replaceAll(",","|").replaceAll(".","\\.")})`),y=i(/\\./,p),pr=i(/[$.*+?^(){}[\]\|]/,r=>`\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,""),fr=l([hr,dr]),xr=i(/\/(\*\*\/)+/,"(?:/.+/|/)"),gr=i(/^(\*\*\/)+/,"(?:^|.*/)"),mr=i(/\/(\*\*)$/,"(?:/.*|$)"),_r=i(/\*\*/,".*"),j=l([xr,gr,mr,_r]),Sr=i(/\*\/(?!\*\*\/)/,"[^/]*/"),yr=i(/\*/,"[^/]*"),N=l([Sr,yr]),k=i("?","[^/]"),$r=i("[",p),wr=i("]",p),Ar=i(/[!^]/,"^/"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\|]/,r=>`\\${r}`),Mr=i(/[^\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i("{","(?:"),Or=i("}",")"),Rr=i(/(\d+)\.\.(\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join("|")),zr=i(/([a-z]+)\.\.([a-z]+)/,(r,e,n)=>R(e,n).join("|")),jr=i(/([A-Z]+)\.\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join("|").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i("{","(?:"),Br=i("}",")"),Ir=i(",","|"),Fr=i(/[$.*+?^(){[\]\|]/,r=>`\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\./,p),qr=i(/./,p),Hr=i(/\*\*\*+/,"*"),Jr=i(/([^/{[(!])\*\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\*\*(?=[^*/)\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\/(?:\*\*)?|\[\/\])$/.test(s)),o=e.replace(/[\\\/]+/g,"/").replace(/\/$/,t?"/":"");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,"s");var re=$;return J(w)})();
|
|
42617
|
+
return __lib__.default || __lib__; };
|
|
42618
|
+
let _match;
|
|
42619
|
+
const zeptomatch = (path, pattern) => {
|
|
42620
|
+
if (!_match) {
|
|
42621
|
+
_match = _lazyMatch();
|
|
42622
|
+
_lazyMatch = null;
|
|
42623
|
+
}
|
|
42624
|
+
return _match(path, pattern);
|
|
42625
|
+
};
|
|
42626
|
+
|
|
42627
|
+
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
42628
|
+
function normalizeWindowsPath(input = "") {
|
|
42629
|
+
if (!input) {
|
|
42630
|
+
return input;
|
|
42631
|
+
}
|
|
42632
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
42633
|
+
}
|
|
42634
|
+
|
|
42635
|
+
const _UNC_REGEX = /^[/\\]{2}/;
|
|
42636
|
+
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
42637
|
+
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
42638
|
+
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
42639
|
+
const _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
42640
|
+
const _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/;
|
|
42641
|
+
const sep = "/";
|
|
42642
|
+
const normalize = function(path) {
|
|
42643
|
+
if (path.length === 0) {
|
|
42644
|
+
return ".";
|
|
42645
|
+
}
|
|
42646
|
+
path = normalizeWindowsPath(path);
|
|
42647
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
42648
|
+
const isPathAbsolute = isAbsolute(path);
|
|
42649
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
42650
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
42651
|
+
if (path.length === 0) {
|
|
42652
|
+
if (isPathAbsolute) {
|
|
42653
|
+
return "/";
|
|
42654
|
+
}
|
|
42655
|
+
return trailingSeparator ? "./" : ".";
|
|
42656
|
+
}
|
|
42657
|
+
if (trailingSeparator) {
|
|
42658
|
+
path += "/";
|
|
42659
|
+
}
|
|
42660
|
+
if (_DRIVE_LETTER_RE.test(path)) {
|
|
42661
|
+
path += "/";
|
|
42662
|
+
}
|
|
42663
|
+
if (isUNCPath) {
|
|
42664
|
+
if (!isPathAbsolute) {
|
|
42665
|
+
return `//./${path}`;
|
|
42666
|
+
}
|
|
42667
|
+
return `//${path}`;
|
|
42668
|
+
}
|
|
42669
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
42670
|
+
};
|
|
42671
|
+
const pathe_M_eThtNZ_join = function(...segments) {
|
|
42672
|
+
let path = "";
|
|
42673
|
+
for (const seg of segments) {
|
|
42674
|
+
if (!seg) {
|
|
42675
|
+
continue;
|
|
42676
|
+
}
|
|
42677
|
+
if (path.length > 0) {
|
|
42678
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
42679
|
+
const segLeading = seg[0] === "/";
|
|
42680
|
+
const both = pathTrailing && segLeading;
|
|
42681
|
+
if (both) {
|
|
42682
|
+
path += seg.slice(1);
|
|
42683
|
+
} else {
|
|
42684
|
+
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
42685
|
+
}
|
|
42686
|
+
} else {
|
|
42687
|
+
path += seg;
|
|
42688
|
+
}
|
|
42689
|
+
}
|
|
42690
|
+
return normalize(path);
|
|
42691
|
+
};
|
|
42692
|
+
function pathe_M_eThtNZ_cwd() {
|
|
42693
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
42694
|
+
return process.cwd().replace(/\\/g, "/");
|
|
42695
|
+
}
|
|
42696
|
+
return "/";
|
|
42697
|
+
}
|
|
42698
|
+
const pathe_M_eThtNZ_resolve = function(...arguments_) {
|
|
42699
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
42700
|
+
let resolvedPath = "";
|
|
42701
|
+
let resolvedAbsolute = false;
|
|
42702
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
42703
|
+
const path = index >= 0 ? arguments_[index] : pathe_M_eThtNZ_cwd();
|
|
42704
|
+
if (!path || path.length === 0) {
|
|
42705
|
+
continue;
|
|
42706
|
+
}
|
|
42707
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
42708
|
+
resolvedAbsolute = isAbsolute(path);
|
|
42709
|
+
}
|
|
42710
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
42711
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
42712
|
+
return `/${resolvedPath}`;
|
|
42713
|
+
}
|
|
42714
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
42715
|
+
};
|
|
42716
|
+
function normalizeString(path, allowAboveRoot) {
|
|
42717
|
+
let res = "";
|
|
42718
|
+
let lastSegmentLength = 0;
|
|
42719
|
+
let lastSlash = -1;
|
|
42720
|
+
let dots = 0;
|
|
42721
|
+
let char = null;
|
|
42722
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
42723
|
+
if (index < path.length) {
|
|
42724
|
+
char = path[index];
|
|
42725
|
+
} else if (char === "/") {
|
|
42726
|
+
break;
|
|
42727
|
+
} else {
|
|
42728
|
+
char = "/";
|
|
42729
|
+
}
|
|
42730
|
+
if (char === "/") {
|
|
42731
|
+
if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
|
|
42732
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
42733
|
+
if (res.length > 2) {
|
|
42734
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
42735
|
+
if (lastSlashIndex === -1) {
|
|
42736
|
+
res = "";
|
|
42737
|
+
lastSegmentLength = 0;
|
|
42738
|
+
} else {
|
|
42739
|
+
res = res.slice(0, lastSlashIndex);
|
|
42740
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
42741
|
+
}
|
|
42742
|
+
lastSlash = index;
|
|
42743
|
+
dots = 0;
|
|
42744
|
+
continue;
|
|
42745
|
+
} else if (res.length > 0) {
|
|
42746
|
+
res = "";
|
|
42747
|
+
lastSegmentLength = 0;
|
|
42748
|
+
lastSlash = index;
|
|
42749
|
+
dots = 0;
|
|
42750
|
+
continue;
|
|
42751
|
+
}
|
|
42752
|
+
}
|
|
42753
|
+
if (allowAboveRoot) {
|
|
42754
|
+
res += res.length > 0 ? "/.." : "..";
|
|
42755
|
+
lastSegmentLength = 2;
|
|
42756
|
+
}
|
|
42757
|
+
} else {
|
|
42758
|
+
if (res.length > 0) {
|
|
42759
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
42760
|
+
} else {
|
|
42761
|
+
res = path.slice(lastSlash + 1, index);
|
|
42762
|
+
}
|
|
42763
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
42764
|
+
}
|
|
42765
|
+
lastSlash = index;
|
|
42766
|
+
dots = 0;
|
|
42767
|
+
} else if (char === "." && dots !== -1) {
|
|
42768
|
+
++dots;
|
|
42769
|
+
} else {
|
|
42770
|
+
dots = -1;
|
|
42771
|
+
}
|
|
42772
|
+
}
|
|
42773
|
+
return res;
|
|
42774
|
+
}
|
|
42775
|
+
const isAbsolute = function(p) {
|
|
42776
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
42777
|
+
};
|
|
42778
|
+
const toNamespacedPath = function(p) {
|
|
42779
|
+
return normalizeWindowsPath(p);
|
|
42780
|
+
};
|
|
42781
|
+
const pathe_M_eThtNZ_extname = function(p) {
|
|
42782
|
+
if (p === "..") return "";
|
|
42783
|
+
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
42784
|
+
return match && match[1] || "";
|
|
42785
|
+
};
|
|
42786
|
+
const relative = function(from, to) {
|
|
42787
|
+
const _from = pathe_M_eThtNZ_resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
42788
|
+
const _to = pathe_M_eThtNZ_resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
42789
|
+
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
42790
|
+
return _to.join("/");
|
|
42791
|
+
}
|
|
42792
|
+
const _fromCopy = [..._from];
|
|
42793
|
+
for (const segment of _fromCopy) {
|
|
42794
|
+
if (_to[0] !== segment) {
|
|
42795
|
+
break;
|
|
42796
|
+
}
|
|
42797
|
+
_from.shift();
|
|
42798
|
+
_to.shift();
|
|
42799
|
+
}
|
|
42800
|
+
return [..._from.map(() => ".."), ..._to].join("/");
|
|
42801
|
+
};
|
|
42802
|
+
const pathe_M_eThtNZ_dirname = function(p) {
|
|
42803
|
+
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
42804
|
+
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
42805
|
+
segments[0] += "/";
|
|
42806
|
+
}
|
|
42807
|
+
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
42808
|
+
};
|
|
42809
|
+
const pathe_M_eThtNZ_format = function(p) {
|
|
42810
|
+
const ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "";
|
|
42811
|
+
const segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
|
|
42812
|
+
Boolean
|
|
42813
|
+
);
|
|
42814
|
+
return normalizeWindowsPath(
|
|
42815
|
+
p.root ? pathe_M_eThtNZ_resolve(...segments) : segments.join("/")
|
|
42816
|
+
);
|
|
42817
|
+
};
|
|
42818
|
+
const pathe_M_eThtNZ_basename = function(p, extension) {
|
|
42819
|
+
const segments = normalizeWindowsPath(p).split("/");
|
|
42820
|
+
let lastSegment = "";
|
|
42821
|
+
for (let i = segments.length - 1; i >= 0; i--) {
|
|
42822
|
+
const val = segments[i];
|
|
42823
|
+
if (val) {
|
|
42824
|
+
lastSegment = val;
|
|
42825
|
+
break;
|
|
42826
|
+
}
|
|
42827
|
+
}
|
|
42828
|
+
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
42829
|
+
};
|
|
42830
|
+
const pathe_M_eThtNZ_parse = function(p) {
|
|
42831
|
+
const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "";
|
|
42832
|
+
const base = pathe_M_eThtNZ_basename(p);
|
|
42833
|
+
const extension = pathe_M_eThtNZ_extname(base);
|
|
42834
|
+
return {
|
|
42835
|
+
root,
|
|
42836
|
+
dir: pathe_M_eThtNZ_dirname(p),
|
|
42837
|
+
base,
|
|
42838
|
+
ext: extension,
|
|
42839
|
+
name: base.slice(0, base.length - extension.length)
|
|
42840
|
+
};
|
|
42841
|
+
};
|
|
42842
|
+
const matchesGlob = (path, pattern) => {
|
|
42843
|
+
return zeptomatch(pattern, normalize(path));
|
|
42844
|
+
};
|
|
42845
|
+
|
|
42846
|
+
const pathe_M_eThtNZ_path = (/* unused pure expression or super */ null && ({
|
|
42847
|
+
__proto__: null,
|
|
42848
|
+
basename: pathe_M_eThtNZ_basename,
|
|
42849
|
+
dirname: pathe_M_eThtNZ_dirname,
|
|
42850
|
+
extname: pathe_M_eThtNZ_extname,
|
|
42851
|
+
format: pathe_M_eThtNZ_format,
|
|
42852
|
+
isAbsolute: isAbsolute,
|
|
42853
|
+
join: pathe_M_eThtNZ_join,
|
|
42854
|
+
matchesGlob: matchesGlob,
|
|
42855
|
+
normalize: normalize,
|
|
42856
|
+
normalizeString: normalizeString,
|
|
42857
|
+
parse: pathe_M_eThtNZ_parse,
|
|
42858
|
+
relative: relative,
|
|
42859
|
+
resolve: pathe_M_eThtNZ_resolve,
|
|
42860
|
+
sep: sep,
|
|
42861
|
+
toNamespacedPath: toNamespacedPath
|
|
42862
|
+
}));
|
|
42863
|
+
|
|
42864
|
+
|
|
42865
|
+
|
|
43047
42866
|
// EXTERNAL MODULE: ../../node_modules/dotenv/lib/main.js
|
|
43048
42867
|
var lib_main = __webpack_require__(5599);
|
|
43049
42868
|
// EXTERNAL MODULE: external "node:url"
|
|
@@ -44137,6 +43956,92 @@ function createJiti(id, opts = {}) {
|
|
|
44137
43956
|
|
|
44138
43957
|
/* export default */ const lib_jiti = ((/* unused pure expression or super */ null && (createJiti)));
|
|
44139
43958
|
|
|
43959
|
+
;// CONCATENATED MODULE: ../../node_modules/rc9/dist/_chunks/libs/flat.mjs
|
|
43960
|
+
//#region node_modules/.pnpm/flat@6.0.1/node_modules/flat/index.js
|
|
43961
|
+
function isBuffer(obj) {
|
|
43962
|
+
return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
|
|
43963
|
+
}
|
|
43964
|
+
function keyIdentity(key) {
|
|
43965
|
+
return key;
|
|
43966
|
+
}
|
|
43967
|
+
function flat_flatten(target, opts) {
|
|
43968
|
+
opts = opts || {};
|
|
43969
|
+
const delimiter = opts.delimiter || ".";
|
|
43970
|
+
const maxDepth = opts.maxDepth;
|
|
43971
|
+
const transformKey = opts.transformKey || keyIdentity;
|
|
43972
|
+
const output = {};
|
|
43973
|
+
function step(object, prev, currentDepth) {
|
|
43974
|
+
currentDepth = currentDepth || 1;
|
|
43975
|
+
Object.keys(object).forEach(function(key) {
|
|
43976
|
+
const value = object[key];
|
|
43977
|
+
const isarray = opts.safe && Array.isArray(value);
|
|
43978
|
+
const type = Object.prototype.toString.call(value);
|
|
43979
|
+
const isbuffer = isBuffer(value);
|
|
43980
|
+
const isobject = type === "[object Object]" || type === "[object Array]";
|
|
43981
|
+
const newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
|
|
43982
|
+
if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!opts.maxDepth || currentDepth < maxDepth)) return step(value, newKey, currentDepth + 1);
|
|
43983
|
+
output[newKey] = value;
|
|
43984
|
+
});
|
|
43985
|
+
}
|
|
43986
|
+
step(target);
|
|
43987
|
+
return output;
|
|
43988
|
+
}
|
|
43989
|
+
function flat_unflatten(target, opts) {
|
|
43990
|
+
opts = opts || {};
|
|
43991
|
+
const delimiter = opts.delimiter || ".";
|
|
43992
|
+
const overwrite = opts.overwrite || false;
|
|
43993
|
+
const transformKey = opts.transformKey || keyIdentity;
|
|
43994
|
+
const result = {};
|
|
43995
|
+
if (isBuffer(target) || Object.prototype.toString.call(target) !== "[object Object]") return target;
|
|
43996
|
+
function getkey(key) {
|
|
43997
|
+
const parsedKey = Number(key);
|
|
43998
|
+
return isNaN(parsedKey) || key.indexOf(".") !== -1 || opts.object ? key : parsedKey;
|
|
43999
|
+
}
|
|
44000
|
+
function addKeys(keyPrefix, recipient, target) {
|
|
44001
|
+
return Object.keys(target).reduce(function(result, key) {
|
|
44002
|
+
result[keyPrefix + delimiter + key] = target[key];
|
|
44003
|
+
return result;
|
|
44004
|
+
}, recipient);
|
|
44005
|
+
}
|
|
44006
|
+
function isEmpty(val) {
|
|
44007
|
+
const type = Object.prototype.toString.call(val);
|
|
44008
|
+
const isArray = type === "[object Array]";
|
|
44009
|
+
const isObject = type === "[object Object]";
|
|
44010
|
+
if (!val) return true;
|
|
44011
|
+
else if (isArray) return !val.length;
|
|
44012
|
+
else if (isObject) return !Object.keys(val).length;
|
|
44013
|
+
}
|
|
44014
|
+
target = Object.keys(target).reduce(function(result, key) {
|
|
44015
|
+
const type = Object.prototype.toString.call(target[key]);
|
|
44016
|
+
if (!(type === "[object Object]" || type === "[object Array]") || isEmpty(target[key])) {
|
|
44017
|
+
result[key] = target[key];
|
|
44018
|
+
return result;
|
|
44019
|
+
} else return addKeys(key, result, flat_flatten(target[key], opts));
|
|
44020
|
+
}, {});
|
|
44021
|
+
Object.keys(target).forEach(function(key) {
|
|
44022
|
+
const split = key.split(delimiter).map(transformKey);
|
|
44023
|
+
let key1 = getkey(split.shift());
|
|
44024
|
+
let key2 = getkey(split[0]);
|
|
44025
|
+
let recipient = result;
|
|
44026
|
+
while (key2 !== void 0) {
|
|
44027
|
+
if (key1 === "__proto__") return;
|
|
44028
|
+
const type = Object.prototype.toString.call(recipient[key1]);
|
|
44029
|
+
const isobject = type === "[object Object]" || type === "[object Array]";
|
|
44030
|
+
if (!overwrite && !isobject && typeof recipient[key1] !== "undefined") return;
|
|
44031
|
+
if (overwrite && !isobject || !overwrite && recipient[key1] == null) recipient[key1] = typeof key2 === "number" && !opts.object ? [] : {};
|
|
44032
|
+
recipient = recipient[key1];
|
|
44033
|
+
if (split.length > 0) {
|
|
44034
|
+
key1 = getkey(split.shift());
|
|
44035
|
+
key2 = getkey(split[0]);
|
|
44036
|
+
}
|
|
44037
|
+
}
|
|
44038
|
+
recipient[key1] = flat_unflatten(target[key], opts);
|
|
44039
|
+
});
|
|
44040
|
+
return result;
|
|
44041
|
+
}
|
|
44042
|
+
//#endregion
|
|
44043
|
+
|
|
44044
|
+
|
|
44140
44045
|
;// CONCATENATED MODULE: ../../node_modules/destr/dist/index.mjs
|
|
44141
44046
|
const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
|
|
44142
44047
|
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
|
@@ -44211,255 +44116,235 @@ function safeDestr(value, options = {}) {
|
|
|
44211
44116
|
|
|
44212
44117
|
|
|
44213
44118
|
|
|
44214
|
-
|
|
44215
|
-
|
|
44216
|
-
|
|
44217
|
-
|
|
44218
|
-
|
|
44219
|
-
|
|
44220
|
-
|
|
44221
|
-
|
|
44222
|
-
|
|
44223
|
-
function isBuffer (obj) {
|
|
44224
|
-
return obj &&
|
|
44225
|
-
obj.constructor &&
|
|
44226
|
-
(typeof obj.constructor.isBuffer === 'function') &&
|
|
44227
|
-
obj.constructor.isBuffer(obj)
|
|
44228
|
-
}
|
|
44229
|
-
|
|
44230
|
-
function keyIdentity (key) {
|
|
44231
|
-
return key
|
|
44232
|
-
}
|
|
44233
|
-
|
|
44234
|
-
function flatten (target, opts) {
|
|
44235
|
-
opts = opts || {};
|
|
44236
|
-
|
|
44237
|
-
const delimiter = opts.delimiter || '.';
|
|
44238
|
-
const maxDepth = opts.maxDepth;
|
|
44239
|
-
const transformKey = opts.transformKey || keyIdentity;
|
|
44240
|
-
const output = {};
|
|
44241
|
-
|
|
44242
|
-
function step (object, prev, currentDepth) {
|
|
44243
|
-
currentDepth = currentDepth || 1;
|
|
44244
|
-
Object.keys(object).forEach(function (key) {
|
|
44245
|
-
const value = object[key];
|
|
44246
|
-
const isarray = opts.safe && Array.isArray(value);
|
|
44247
|
-
const type = Object.prototype.toString.call(value);
|
|
44248
|
-
const isbuffer = isBuffer(value);
|
|
44249
|
-
const isobject = (
|
|
44250
|
-
type === '[object Object]' ||
|
|
44251
|
-
type === '[object Array]'
|
|
44252
|
-
);
|
|
44253
|
-
|
|
44254
|
-
const newKey = prev
|
|
44255
|
-
? prev + delimiter + transformKey(key)
|
|
44256
|
-
: transformKey(key);
|
|
44257
|
-
|
|
44258
|
-
if (!isarray && !isbuffer && isobject && Object.keys(value).length &&
|
|
44259
|
-
(!opts.maxDepth || currentDepth < maxDepth)) {
|
|
44260
|
-
return step(value, newKey, currentDepth + 1)
|
|
44261
|
-
}
|
|
44262
|
-
|
|
44263
|
-
output[newKey] = value;
|
|
44264
|
-
});
|
|
44119
|
+
;// CONCATENATED MODULE: ../../node_modules/defu/dist/defu.mjs
|
|
44120
|
+
function defu_isPlainObject(value) {
|
|
44121
|
+
if (value === null || typeof value !== "object") {
|
|
44122
|
+
return false;
|
|
44265
44123
|
}
|
|
44266
|
-
|
|
44267
|
-
|
|
44268
|
-
|
|
44269
|
-
return output
|
|
44270
|
-
}
|
|
44271
|
-
|
|
44272
|
-
function unflatten (target, opts) {
|
|
44273
|
-
opts = opts || {};
|
|
44274
|
-
|
|
44275
|
-
const delimiter = opts.delimiter || '.';
|
|
44276
|
-
const overwrite = opts.overwrite || false;
|
|
44277
|
-
const transformKey = opts.transformKey || keyIdentity;
|
|
44278
|
-
const result = {};
|
|
44279
|
-
|
|
44280
|
-
const isbuffer = isBuffer(target);
|
|
44281
|
-
if (isbuffer || Object.prototype.toString.call(target) !== '[object Object]') {
|
|
44282
|
-
return target
|
|
44124
|
+
const prototype = Object.getPrototypeOf(value);
|
|
44125
|
+
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
|
|
44126
|
+
return false;
|
|
44283
44127
|
}
|
|
44284
|
-
|
|
44285
|
-
|
|
44286
|
-
// an integer.
|
|
44287
|
-
function getkey (key) {
|
|
44288
|
-
const parsedKey = Number(key);
|
|
44289
|
-
|
|
44290
|
-
return (
|
|
44291
|
-
isNaN(parsedKey) ||
|
|
44292
|
-
key.indexOf('.') !== -1 ||
|
|
44293
|
-
opts.object
|
|
44294
|
-
)
|
|
44295
|
-
? key
|
|
44296
|
-
: parsedKey
|
|
44128
|
+
if (Symbol.iterator in value) {
|
|
44129
|
+
return false;
|
|
44297
44130
|
}
|
|
44298
|
-
|
|
44299
|
-
|
|
44300
|
-
return Object.keys(target).reduce(function (result, key) {
|
|
44301
|
-
result[keyPrefix + delimiter + key] = target[key];
|
|
44302
|
-
|
|
44303
|
-
return result
|
|
44304
|
-
}, recipient)
|
|
44131
|
+
if (Symbol.toStringTag in value) {
|
|
44132
|
+
return Object.prototype.toString.call(value) === "[object Module]";
|
|
44305
44133
|
}
|
|
44134
|
+
return true;
|
|
44135
|
+
}
|
|
44306
44136
|
|
|
44307
|
-
|
|
44308
|
-
|
|
44309
|
-
|
|
44310
|
-
const isObject = type === '[object Object]';
|
|
44311
|
-
|
|
44312
|
-
if (!val) {
|
|
44313
|
-
return true
|
|
44314
|
-
} else if (isArray) {
|
|
44315
|
-
return !val.length
|
|
44316
|
-
} else if (isObject) {
|
|
44317
|
-
return !Object.keys(val).length
|
|
44318
|
-
}
|
|
44137
|
+
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
44138
|
+
if (!defu_isPlainObject(defaults)) {
|
|
44139
|
+
return _defu(baseObject, {}, namespace, merger);
|
|
44319
44140
|
}
|
|
44320
|
-
|
|
44321
|
-
|
|
44322
|
-
|
|
44323
|
-
|
|
44324
|
-
|
|
44325
|
-
|
|
44326
|
-
|
|
44141
|
+
const object = { ...defaults };
|
|
44142
|
+
for (const key of Object.keys(baseObject)) {
|
|
44143
|
+
if (key === "__proto__" || key === "constructor") {
|
|
44144
|
+
continue;
|
|
44145
|
+
}
|
|
44146
|
+
const value = baseObject[key];
|
|
44147
|
+
if (value === null || value === void 0) {
|
|
44148
|
+
continue;
|
|
44149
|
+
}
|
|
44150
|
+
if (merger && merger(object, key, value, namespace)) {
|
|
44151
|
+
continue;
|
|
44152
|
+
}
|
|
44153
|
+
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
44154
|
+
object[key] = [...value, ...object[key]];
|
|
44155
|
+
} else if (defu_isPlainObject(value) && defu_isPlainObject(object[key])) {
|
|
44156
|
+
object[key] = _defu(
|
|
44157
|
+
value,
|
|
44158
|
+
object[key],
|
|
44159
|
+
(namespace ? `${namespace}.` : "") + key.toString(),
|
|
44160
|
+
merger
|
|
44161
|
+
);
|
|
44327
44162
|
} else {
|
|
44328
|
-
|
|
44329
|
-
key,
|
|
44330
|
-
result,
|
|
44331
|
-
flatten(target[key], opts)
|
|
44332
|
-
)
|
|
44163
|
+
object[key] = value;
|
|
44333
44164
|
}
|
|
44334
|
-
}
|
|
44165
|
+
}
|
|
44166
|
+
return object;
|
|
44167
|
+
}
|
|
44168
|
+
function createDefu(merger) {
|
|
44169
|
+
return (...arguments_) => (
|
|
44170
|
+
// eslint-disable-next-line unicorn/no-array-reduce
|
|
44171
|
+
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
44172
|
+
);
|
|
44173
|
+
}
|
|
44174
|
+
const defu_defu = createDefu();
|
|
44175
|
+
const defuFn = createDefu((object, key, currentValue) => {
|
|
44176
|
+
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
44177
|
+
object[key] = currentValue(object[key]);
|
|
44178
|
+
return true;
|
|
44179
|
+
}
|
|
44180
|
+
});
|
|
44181
|
+
const defuArrayFn = createDefu((object, key, currentValue) => {
|
|
44182
|
+
if (Array.isArray(object[key]) && typeof currentValue === "function") {
|
|
44183
|
+
object[key] = currentValue(object[key]);
|
|
44184
|
+
return true;
|
|
44185
|
+
}
|
|
44186
|
+
});
|
|
44335
44187
|
|
|
44336
|
-
Object.keys(target).forEach(function (key) {
|
|
44337
|
-
const split = key.split(delimiter).map(transformKey);
|
|
44338
|
-
let key1 = getkey(split.shift());
|
|
44339
|
-
let key2 = getkey(split[0]);
|
|
44340
|
-
let recipient = result;
|
|
44341
44188
|
|
|
44342
|
-
while (key2 !== undefined) {
|
|
44343
|
-
if (key1 === '__proto__') {
|
|
44344
|
-
return
|
|
44345
|
-
}
|
|
44346
44189
|
|
|
44347
|
-
|
|
44348
|
-
const isobject = (
|
|
44349
|
-
type === '[object Object]' ||
|
|
44350
|
-
type === '[object Array]'
|
|
44351
|
-
);
|
|
44190
|
+
;// CONCATENATED MODULE: ../../node_modules/rc9/dist/index.mjs
|
|
44352
44191
|
|
|
44353
|
-
// do not write over falsey, non-undefined values if overwrite is false
|
|
44354
|
-
if (!overwrite && !isobject && typeof recipient[key1] !== 'undefined') {
|
|
44355
|
-
return
|
|
44356
|
-
}
|
|
44357
44192
|
|
|
44358
|
-
if ((overwrite && !isobject) || (!overwrite && recipient[key1] == null)) {
|
|
44359
|
-
recipient[key1] = (
|
|
44360
|
-
typeof key2 === 'number' &&
|
|
44361
|
-
!opts.object
|
|
44362
|
-
? []
|
|
44363
|
-
: {}
|
|
44364
|
-
);
|
|
44365
|
-
}
|
|
44366
44193
|
|
|
44367
|
-
recipient = recipient[key1];
|
|
44368
|
-
if (split.length > 0) {
|
|
44369
|
-
key1 = getkey(split.shift());
|
|
44370
|
-
key2 = getkey(split[0]);
|
|
44371
|
-
}
|
|
44372
|
-
}
|
|
44373
44194
|
|
|
44374
|
-
// unflatten again for 'messy objects'
|
|
44375
|
-
recipient[key1] = unflatten(target[key], opts);
|
|
44376
|
-
});
|
|
44377
44195
|
|
|
44378
|
-
return result
|
|
44379
|
-
}
|
|
44380
44196
|
|
|
44197
|
+
//#region src/index.ts
|
|
44381
44198
|
const RE_KEY_VAL = /^\s*([^\s=]+)\s*=\s*(.*)?\s*$/;
|
|
44382
44199
|
const RE_LINES = /\n|\r|\r\n/;
|
|
44200
|
+
/**
|
|
44201
|
+
* The default options for the configuration file.
|
|
44202
|
+
*/
|
|
44383
44203
|
const dist_defaults = {
|
|
44384
|
-
|
|
44385
|
-
|
|
44386
|
-
|
|
44204
|
+
name: ".conf",
|
|
44205
|
+
dir: process.cwd(),
|
|
44206
|
+
flat: false
|
|
44387
44207
|
};
|
|
44388
44208
|
function withDefaults(options) {
|
|
44389
|
-
|
|
44390
|
-
|
|
44391
|
-
|
|
44392
|
-
|
|
44209
|
+
if (typeof options === "string") options = { name: options };
|
|
44210
|
+
return {
|
|
44211
|
+
...dist_defaults,
|
|
44212
|
+
...options
|
|
44213
|
+
};
|
|
44393
44214
|
}
|
|
44394
44215
|
function dist_parse(contents, options = {}) {
|
|
44395
|
-
|
|
44396
|
-
|
|
44397
|
-
|
|
44398
|
-
|
|
44399
|
-
|
|
44400
|
-
|
|
44401
|
-
|
|
44402
|
-
|
|
44403
|
-
|
|
44404
|
-
|
|
44405
|
-
|
|
44406
|
-
|
|
44407
|
-
|
|
44408
|
-
|
|
44409
|
-
|
|
44410
|
-
|
|
44411
|
-
const nkey = key.slice(0, Math.max(0, key.length - 2));
|
|
44412
|
-
config[nkey] = (config[nkey] || []).concat(value);
|
|
44413
|
-
continue;
|
|
44414
|
-
}
|
|
44415
|
-
config[key] = value;
|
|
44416
|
-
}
|
|
44417
|
-
return options.flat ? config : unflatten(config, { overwrite: true });
|
|
44216
|
+
const config = {};
|
|
44217
|
+
const lines = contents.split(RE_LINES);
|
|
44218
|
+
for (const line of lines) {
|
|
44219
|
+
const match = line.match(RE_KEY_VAL);
|
|
44220
|
+
if (!match) continue;
|
|
44221
|
+
const key = match[1];
|
|
44222
|
+
if (!key || key === "__proto__" || key === "constructor") continue;
|
|
44223
|
+
const value = destr((match[2] || "").trim());
|
|
44224
|
+
if (key.endsWith("[]")) {
|
|
44225
|
+
const nkey = key.slice(0, Math.max(0, key.length - 2));
|
|
44226
|
+
config[nkey] = (config[nkey] || []).concat(value);
|
|
44227
|
+
continue;
|
|
44228
|
+
}
|
|
44229
|
+
config[key] = value;
|
|
44230
|
+
}
|
|
44231
|
+
return options.flat ? config : flat_unflatten(config, { overwrite: true });
|
|
44418
44232
|
}
|
|
44233
|
+
/**
|
|
44234
|
+
* Parses a configuration string into an object.
|
|
44235
|
+
* @param {string} contents - The configuration data as a raw string.
|
|
44236
|
+
* @param {RCOptions} [options={}] - Options to control the parsing behaviour. See {@link RCOptions}.
|
|
44237
|
+
* @returns {RC} - The parsed configuration object. See {@link RC}.
|
|
44238
|
+
*/
|
|
44419
44239
|
function parseFile(path, options) {
|
|
44420
|
-
|
|
44421
|
-
|
|
44422
|
-
}
|
|
44423
|
-
return dist_parse((0,external_node_fs_.readFileSync)(path, "utf8"), options);
|
|
44240
|
+
if (!(0,external_node_fs_.existsSync)(path)) return {};
|
|
44241
|
+
return dist_parse((0,external_node_fs_.readFileSync)(path, "utf8"), options);
|
|
44424
44242
|
}
|
|
44243
|
+
/**
|
|
44244
|
+
* Reads a configuration file from a default or specified location and parses its contents.
|
|
44245
|
+
* @param {RCOptions|string} [options] - Options for reading the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44246
|
+
* @returns {RC} - The parsed configuration object. See {@link RC}.
|
|
44247
|
+
*/
|
|
44425
44248
|
function dist_read(options) {
|
|
44426
|
-
|
|
44427
|
-
|
|
44249
|
+
options = withDefaults(options);
|
|
44250
|
+
return parseFile((0,external_node_path_.resolve)(options.dir, options.name), options);
|
|
44428
44251
|
}
|
|
44252
|
+
/**
|
|
44253
|
+
* Reads a custom configuration file from a default or specified location and parses its contents.
|
|
44254
|
+
* @param {RCOptions|string} [options] - Options for reading the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44255
|
+
* @returns {RC} - The parsed configuration object.
|
|
44256
|
+
* @deprecated Use {@link readUserConfig} instead, which uses `~/.config` following XDG conventions.
|
|
44257
|
+
*/
|
|
44429
44258
|
function readUser(options) {
|
|
44430
|
-
|
|
44431
|
-
|
|
44432
|
-
|
|
44259
|
+
options = withDefaults(options);
|
|
44260
|
+
options.dir = process.env.XDG_CONFIG_HOME || (0,external_node_os_.homedir)();
|
|
44261
|
+
return dist_read(options);
|
|
44433
44262
|
}
|
|
44263
|
+
/**
|
|
44264
|
+
* Serialises a configuration object to a string format.
|
|
44265
|
+
* @param {RC} config - The configuration object to serialise. See {@link RC}.
|
|
44266
|
+
* @returns {string} - The serialised configuration string.
|
|
44267
|
+
*/
|
|
44434
44268
|
function serialize(config) {
|
|
44435
|
-
|
|
44269
|
+
return Object.entries(flatten(config)).map(([key, value]) => `${key}=${JSON.stringify(value)}`).join("\n");
|
|
44436
44270
|
}
|
|
44271
|
+
/**
|
|
44272
|
+
* Writes a configuration object to a file in a default or specified location.
|
|
44273
|
+
* @param {RC} config - The configuration object to write. See {@link RC}.
|
|
44274
|
+
* @param {RCOptions|string} [options] - Options for writing the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44275
|
+
*/
|
|
44437
44276
|
function dist_write(config, options) {
|
|
44438
|
-
|
|
44439
|
-
|
|
44440
|
-
encoding: "utf8"
|
|
44441
|
-
});
|
|
44277
|
+
options = withDefaults(options);
|
|
44278
|
+
writeFileSync(resolve(options.dir, options.name), serialize(config), { encoding: "utf8" });
|
|
44442
44279
|
}
|
|
44280
|
+
/**
|
|
44281
|
+
* Writes a custom configuration object to a file in a default or specified location.
|
|
44282
|
+
* @param {RC} config - The configuration object to write. See {@link RC}.
|
|
44283
|
+
* @param {RCOptions|string} [options] - Options for writing the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44284
|
+
* @deprecated Use {@link writeUserConfig} instead, which uses `~/.config` following XDG conventions.
|
|
44285
|
+
*/
|
|
44443
44286
|
function writeUser(config, options) {
|
|
44444
|
-
|
|
44445
|
-
|
|
44446
|
-
|
|
44287
|
+
options = withDefaults(options);
|
|
44288
|
+
options.dir = process.env.XDG_CONFIG_HOME || homedir();
|
|
44289
|
+
dist_write(config, options);
|
|
44447
44290
|
}
|
|
44448
|
-
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44452
|
-
|
|
44453
|
-
|
|
44454
|
-
|
|
44455
|
-
|
|
44291
|
+
/**
|
|
44292
|
+
* Reads a configuration file from `$XDG_CONFIG_HOME` or `$HOME/.config` and parses its contents.
|
|
44293
|
+
* @param {RCOptions|string} [options] - Options for reading the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44294
|
+
* @returns {RC} - The parsed configuration object.
|
|
44295
|
+
*/
|
|
44296
|
+
function readUserConfig(options) {
|
|
44297
|
+
options = withDefaults(options);
|
|
44298
|
+
options.dir = process.env.XDG_CONFIG_HOME || resolve(homedir(), ".config");
|
|
44299
|
+
return dist_read(options);
|
|
44456
44300
|
}
|
|
44301
|
+
/**
|
|
44302
|
+
* Writes a configuration object to a file in `$XDG_CONFIG_HOME` or `$HOME/.config`.
|
|
44303
|
+
* @param {RC} config - The configuration object to write. See {@link RC}.
|
|
44304
|
+
* @param {RCOptions|string} [options] - Options for writing the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44305
|
+
*/
|
|
44306
|
+
function writeUserConfig(config, options) {
|
|
44307
|
+
options = withDefaults(options);
|
|
44308
|
+
options.dir = process.env.XDG_CONFIG_HOME || resolve(homedir(), ".config");
|
|
44309
|
+
dist_write(config, options);
|
|
44310
|
+
}
|
|
44311
|
+
/**
|
|
44312
|
+
* Updates a configuration object in `$XDG_CONFIG_HOME` or `$HOME/.config` by merging and writing the result.
|
|
44313
|
+
* @param {RC} config - The configuration object to update. See {@link RC}.
|
|
44314
|
+
* @param {RCOptions|string} [options] - Options for updating the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44315
|
+
* @returns {RC} - The updated configuration object.
|
|
44316
|
+
*/
|
|
44317
|
+
function updateUserConfig(config, options) {
|
|
44318
|
+
options = withDefaults(options);
|
|
44319
|
+
options.dir = process.env.XDG_CONFIG_HOME || resolve(homedir(), ".config");
|
|
44320
|
+
return update(config, options);
|
|
44321
|
+
}
|
|
44322
|
+
/**
|
|
44323
|
+
* Updates an existing configuration object by merging it with the contents of a configuration file and writing the result.
|
|
44324
|
+
* @param {RC} config - The configuration object to update. See {@link RC}.
|
|
44325
|
+
* @param {RCOptions|string} [options] - Options for updating the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44326
|
+
* @returns {RC} - The updated configuration object. See {@link RC}.
|
|
44327
|
+
*/
|
|
44328
|
+
function update(config, options) {
|
|
44329
|
+
options = withDefaults(options);
|
|
44330
|
+
if (!options.flat) config = unflatten(config, { overwrite: true });
|
|
44331
|
+
const newConfig = defu(config, dist_read(options));
|
|
44332
|
+
dist_write(newConfig, options);
|
|
44333
|
+
return newConfig;
|
|
44334
|
+
}
|
|
44335
|
+
/**
|
|
44336
|
+
* Updates a custom configuration object by merging it with the contents of a configuration file in a default location and writing the result.
|
|
44337
|
+
* @param {RC} config - The configuration object to update. See {@link RC}.
|
|
44338
|
+
* @param {RCOptions|string} [options] - Options for updating the configuration file, or the name of the configuration file. See {@link RCOptions}.
|
|
44339
|
+
* @returns {RC} - The updated configuration object. See {@link RC}.
|
|
44340
|
+
* @deprecated Use {@link updateUserConfig} instead, which uses `~/.config` following XDG conventions.
|
|
44341
|
+
*/
|
|
44457
44342
|
function updateUser(config, options) {
|
|
44458
|
-
|
|
44459
|
-
|
|
44460
|
-
|
|
44343
|
+
options = withDefaults(options);
|
|
44344
|
+
options.dir = process.env.XDG_CONFIG_HOME || homedir();
|
|
44345
|
+
return update(config, options);
|
|
44461
44346
|
}
|
|
44462
|
-
|
|
44347
|
+
//#endregion
|
|
44463
44348
|
|
|
44464
44349
|
|
|
44465
44350
|
// EXTERNAL MODULE: ../../node_modules/confbox/dist/_chunks/_format.mjs
|
|
@@ -44493,7 +44378,7 @@ const defaultFindOptions = {
|
|
|
44493
44378
|
async function findFile(filename, _options = {}) {
|
|
44494
44379
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
44495
44380
|
const options = { ...defaultFindOptions, ..._options };
|
|
44496
|
-
const basePath = (
|
|
44381
|
+
const basePath = pathe_M_eThtNZ_resolve(options.startingFrom);
|
|
44497
44382
|
const leadingSlash = basePath[0] === "/";
|
|
44498
44383
|
const segments = basePath.split("/").filter(Boolean);
|
|
44499
44384
|
if (filenames.includes(segments.at(-1)) && await options.test(basePath)) {
|
|
@@ -44509,7 +44394,7 @@ async function findFile(filename, _options = {}) {
|
|
|
44509
44394
|
if (options.reverse) {
|
|
44510
44395
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
44511
44396
|
for (const filename2 of filenames) {
|
|
44512
|
-
const filePath = (
|
|
44397
|
+
const filePath = pathe_M_eThtNZ_join(...segments.slice(0, index), filename2);
|
|
44513
44398
|
if (await options.test(filePath)) {
|
|
44514
44399
|
return filePath;
|
|
44515
44400
|
}
|
|
@@ -44518,7 +44403,7 @@ async function findFile(filename, _options = {}) {
|
|
|
44518
44403
|
} else {
|
|
44519
44404
|
for (let index = segments.length; index > root; index--) {
|
|
44520
44405
|
for (const filename2 of filenames) {
|
|
44521
|
-
const filePath = (
|
|
44406
|
+
const filePath = pathe_M_eThtNZ_join(...segments.slice(0, index), filename2);
|
|
44522
44407
|
if (await options.test(filePath)) {
|
|
44523
44408
|
return filePath;
|
|
44524
44409
|
}
|
|
@@ -44538,10 +44423,10 @@ function findFarthestFile(filename, options = {}) {
|
|
|
44538
44423
|
|
|
44539
44424
|
function _resolvePath(id, opts = {}) {
|
|
44540
44425
|
if (id instanceof URL || id.startsWith("file://")) {
|
|
44541
|
-
return (
|
|
44426
|
+
return normalize((0,external_node_url_.fileURLToPath)(id));
|
|
44542
44427
|
}
|
|
44543
|
-
if ((
|
|
44544
|
-
return (
|
|
44428
|
+
if (isAbsolute(id)) {
|
|
44429
|
+
return normalize(id);
|
|
44545
44430
|
}
|
|
44546
44431
|
return resolveModulePath(id, {
|
|
44547
44432
|
...opts,
|
|
@@ -44667,10 +44552,10 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
44667
44552
|
});
|
|
44668
44553
|
}
|
|
44669
44554
|
const workspaceTests = {
|
|
44670
|
-
workspaceFile: (opts) => findFile(workspaceFiles, opts).then((r) => (
|
|
44671
|
-
gitConfig: (opts) => findFile(".git/config", opts).then((r) => (
|
|
44672
|
-
lockFile: (opts) => findFile(lockFiles, opts).then((r) => (
|
|
44673
|
-
packageJson: (opts) => findFile(packageFiles, opts).then((r) => (
|
|
44555
|
+
workspaceFile: (opts) => findFile(workspaceFiles, opts).then((r) => pathe_M_eThtNZ_dirname(r)),
|
|
44556
|
+
gitConfig: (opts) => findFile(".git/config", opts).then((r) => pathe_M_eThtNZ_resolve(r, "../..")),
|
|
44557
|
+
lockFile: (opts) => findFile(lockFiles, opts).then((r) => pathe_M_eThtNZ_dirname(r)),
|
|
44558
|
+
packageJson: (opts) => findFile(packageFiles, opts).then((r) => pathe_M_eThtNZ_dirname(r))
|
|
44674
44559
|
};
|
|
44675
44560
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
44676
44561
|
const startingFrom = _resolvePath(id, options);
|
|
@@ -44854,7 +44739,6 @@ function stringifyGitConfig(config) {
|
|
|
44854
44739
|
|
|
44855
44740
|
|
|
44856
44741
|
|
|
44857
|
-
|
|
44858
44742
|
//#region src/dotenv.ts
|
|
44859
44743
|
/**
|
|
44860
44744
|
* Load and interpolate environment variables into `process.env`.
|
|
@@ -44879,13 +44763,13 @@ async function setupDotenv(options) {
|
|
|
44879
44763
|
/** Load environment variables into an object. */
|
|
44880
44764
|
async function loadDotenv(options) {
|
|
44881
44765
|
const environment = Object.create(null);
|
|
44882
|
-
const cwd = (
|
|
44766
|
+
const cwd = pathe_M_eThtNZ_resolve(options.cwd || ".");
|
|
44883
44767
|
const _fileName = options.fileName || ".env";
|
|
44884
44768
|
const dotenvFiles = typeof _fileName === "string" ? [_fileName] : _fileName;
|
|
44885
44769
|
const dotenvVars = getDotEnvVars(options.env || {});
|
|
44886
44770
|
Object.assign(environment, options.env);
|
|
44887
44771
|
for (const file of dotenvFiles) {
|
|
44888
|
-
const dotenvFile = (
|
|
44772
|
+
const dotenvFile = pathe_M_eThtNZ_resolve(cwd, file);
|
|
44889
44773
|
if (!(0,external_node_fs_.statSync)(dotenvFile, { throwIfNoEntry: false })?.isFile()) continue;
|
|
44890
44774
|
const parsed = lib_main.parse(await external_node_fs_.promises.readFile(dotenvFile, "utf8"));
|
|
44891
44775
|
for (const key in parsed) {
|
|
@@ -44894,22 +44778,22 @@ async function loadDotenv(options) {
|
|
|
44894
44778
|
dotenvVars.add(key);
|
|
44895
44779
|
}
|
|
44896
44780
|
}
|
|
44897
|
-
if (options.interpolate)
|
|
44781
|
+
if (options.interpolate) dist_interpolate(environment);
|
|
44898
44782
|
return environment;
|
|
44899
44783
|
}
|
|
44900
|
-
function
|
|
44784
|
+
function dist_interpolate(target, source = {}, parse = (v) => v) {
|
|
44901
44785
|
function getValue(key) {
|
|
44902
44786
|
return source[key] === void 0 ? target[key] : source[key];
|
|
44903
44787
|
}
|
|
44904
|
-
function interpolate
|
|
44788
|
+
function interpolate(value, parents = []) {
|
|
44905
44789
|
if (typeof value !== "string") return value;
|
|
44906
44790
|
return parse((value.match(/(.?\${?(?:[\w:]+)?}?)/g) || []).reduce((newValue, match) => {
|
|
44907
44791
|
const parts = /(.?)\${?([\w:]+)?}?/g.exec(match) || [];
|
|
44908
44792
|
const prefix = parts[1];
|
|
44909
|
-
let value
|
|
44793
|
+
let value, replacePart;
|
|
44910
44794
|
if (prefix === "\\") {
|
|
44911
44795
|
replacePart = parts[0] || "";
|
|
44912
|
-
value
|
|
44796
|
+
value = replacePart.replace(String.raw`\$`, "$");
|
|
44913
44797
|
} else {
|
|
44914
44798
|
const key = parts[2];
|
|
44915
44799
|
replacePart = (parts[0] || "").slice(prefix.length);
|
|
@@ -44917,20 +44801,19 @@ function interpolate(target, source = {}, parse = (v) => v) {
|
|
|
44917
44801
|
console.warn(`Please avoid recursive environment variables ( loop: ${parents.join(" > ")} > ${key} )`);
|
|
44918
44802
|
return "";
|
|
44919
44803
|
}
|
|
44920
|
-
value
|
|
44921
|
-
value
|
|
44804
|
+
value = getValue(key);
|
|
44805
|
+
value = interpolate(value, [...parents, key]);
|
|
44922
44806
|
}
|
|
44923
|
-
return value
|
|
44807
|
+
return value === void 0 ? newValue : newValue.replace(replacePart, value);
|
|
44924
44808
|
}, value));
|
|
44925
44809
|
}
|
|
44926
|
-
for (const key in target) target[key] = interpolate
|
|
44810
|
+
for (const key in target) target[key] = interpolate(getValue(key));
|
|
44927
44811
|
}
|
|
44928
44812
|
function getDotEnvVars(targetEnvironment) {
|
|
44929
44813
|
const globalRegistry = globalThis.__c12_dotenv_vars__ ||= /* @__PURE__ */ new Map();
|
|
44930
44814
|
if (!globalRegistry.has(targetEnvironment)) globalRegistry.set(targetEnvironment, /* @__PURE__ */ new Set());
|
|
44931
44815
|
return globalRegistry.get(targetEnvironment);
|
|
44932
44816
|
}
|
|
44933
|
-
|
|
44934
44817
|
//#endregion
|
|
44935
44818
|
//#region src/loader.ts
|
|
44936
44819
|
const dist_normalize = (p) => p?.replace(/\\/g, "/");
|
|
@@ -44956,7 +44839,7 @@ const SUPPORTED_EXTENSIONS = Object.freeze([
|
|
|
44956
44839
|
".toml"
|
|
44957
44840
|
]);
|
|
44958
44841
|
async function loadConfig(options) {
|
|
44959
|
-
options.cwd = (
|
|
44842
|
+
options.cwd = pathe_M_eThtNZ_resolve(process.cwd(), options.cwd || ".");
|
|
44960
44843
|
options.name = options.name || "config";
|
|
44961
44844
|
options.envName = options.envName ?? "production";
|
|
44962
44845
|
options.configFile = options.configFile ?? (options.name === "config" ? "config" : `${options.name}.config`);
|
|
@@ -44965,8 +44848,8 @@ async function loadConfig(options) {
|
|
|
44965
44848
|
extendKey: "extends",
|
|
44966
44849
|
...options.extend
|
|
44967
44850
|
};
|
|
44968
|
-
const _merger = options.merger ||
|
|
44969
|
-
options.jiti = options.jiti || createJiti((
|
|
44851
|
+
const _merger = options.merger || defu_defu;
|
|
44852
|
+
options.jiti = options.jiti || createJiti(pathe_M_eThtNZ_join(options.cwd, options.configFile), {
|
|
44970
44853
|
interopDefault: true,
|
|
44971
44854
|
moduleCache: false,
|
|
44972
44855
|
extensions: [...SUPPORTED_EXTENSIONS],
|
|
@@ -44975,7 +44858,7 @@ async function loadConfig(options) {
|
|
|
44975
44858
|
const r = {
|
|
44976
44859
|
config: {},
|
|
44977
44860
|
cwd: options.cwd,
|
|
44978
|
-
configFile: (
|
|
44861
|
+
configFile: pathe_M_eThtNZ_resolve(options.cwd, options.configFile),
|
|
44979
44862
|
layers: [],
|
|
44980
44863
|
_configFile: void 0
|
|
44981
44864
|
};
|
|
@@ -45118,22 +45001,22 @@ const GIGET_PREFIXES = [
|
|
|
45118
45001
|
const NPM_PACKAGE_RE = /^(@[\da-z~-][\d._a-z~-]*\/)?[\da-z~-][\d._a-z~-]*($|\/.*)/;
|
|
45119
45002
|
async function resolveConfig(source, options, sourceOptions = {}) {
|
|
45120
45003
|
if (options.resolve) {
|
|
45121
|
-
const res
|
|
45122
|
-
if (res
|
|
45004
|
+
const res = await options.resolve(source, options);
|
|
45005
|
+
if (res) return res;
|
|
45123
45006
|
}
|
|
45124
|
-
const _merger = options.merger ||
|
|
45007
|
+
const _merger = options.merger || defu_defu;
|
|
45125
45008
|
const customProviderKeys = Object.keys(sourceOptions.giget?.providers || {}).map((key) => `${key}:`);
|
|
45126
45009
|
const gigetPrefixes = customProviderKeys.length > 0 ? [...new Set([...customProviderKeys, ...GIGET_PREFIXES])] : GIGET_PREFIXES;
|
|
45127
45010
|
if (options.giget !== false && gigetPrefixes.some((prefix) => source.startsWith(prefix))) {
|
|
45128
|
-
const { downloadTemplate } = await __webpack_require__.e(/* import() */ "
|
|
45011
|
+
const { downloadTemplate } = await __webpack_require__.e(/* import() */ "511").then(__webpack_require__.bind(__webpack_require__, 7170));
|
|
45129
45012
|
const { digest } = await __webpack_require__.e(/* import() */ "714").then(__webpack_require__.bind(__webpack_require__, 4689));
|
|
45130
45013
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
|
|
45131
45014
|
let cloneDir;
|
|
45132
|
-
const localNodeModules = (
|
|
45133
|
-
const parentDir = (
|
|
45134
|
-
if ((
|
|
45135
|
-
else if ((0,external_node_fs_.existsSync)(localNodeModules)) cloneDir = (
|
|
45136
|
-
else cloneDir = process.env.XDG_CACHE_HOME ? (
|
|
45015
|
+
const localNodeModules = pathe_M_eThtNZ_resolve(options.cwd, "node_modules");
|
|
45016
|
+
const parentDir = pathe_M_eThtNZ_dirname(options.cwd);
|
|
45017
|
+
if (pathe_M_eThtNZ_basename(parentDir) === ".c12") cloneDir = pathe_M_eThtNZ_join(parentDir, cloneName);
|
|
45018
|
+
else if ((0,external_node_fs_.existsSync)(localNodeModules)) cloneDir = pathe_M_eThtNZ_join(localNodeModules, ".c12", cloneName);
|
|
45019
|
+
else cloneDir = process.env.XDG_CACHE_HOME ? pathe_M_eThtNZ_resolve(process.env.XDG_CACHE_HOME, "c12", cloneName) : pathe_M_eThtNZ_resolve((0,external_node_os_.homedir)(), ".cache/c12", cloneName);
|
|
45137
45020
|
if ((0,external_node_fs_.existsSync)(cloneDir) && !sourceOptions.install) await (0,promises_.rm)(cloneDir, { recursive: true });
|
|
45138
45021
|
source = (await downloadTemplate(source, {
|
|
45139
45022
|
dir: cloneDir,
|
|
@@ -45145,9 +45028,9 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
45145
45028
|
})).dir;
|
|
45146
45029
|
}
|
|
45147
45030
|
if (NPM_PACKAGE_RE.test(source)) source = tryResolve(source, options) || source;
|
|
45148
|
-
const ext = (
|
|
45149
|
-
const isDir = !ext || ext === (
|
|
45150
|
-
const cwd = (
|
|
45031
|
+
const ext = pathe_M_eThtNZ_extname(source);
|
|
45032
|
+
const isDir = !ext || ext === pathe_M_eThtNZ_basename(source);
|
|
45033
|
+
const cwd = pathe_M_eThtNZ_resolve(options.cwd, isDir ? source : pathe_M_eThtNZ_dirname(source));
|
|
45151
45034
|
if (isDir) source = options.configFile;
|
|
45152
45035
|
const res = {
|
|
45153
45036
|
config: void 0,
|
|
@@ -45156,10 +45039,10 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
45156
45039
|
source,
|
|
45157
45040
|
sourceOptions
|
|
45158
45041
|
};
|
|
45159
|
-
res.configFile = tryResolve((
|
|
45042
|
+
res.configFile = tryResolve(pathe_M_eThtNZ_resolve(cwd, source), options) || tryResolve(pathe_M_eThtNZ_resolve(cwd, ".config", source.replace(/\.config$/, "")), options) || tryResolve(pathe_M_eThtNZ_resolve(cwd, ".config", source), options) || source;
|
|
45160
45043
|
if (!(0,external_node_fs_.existsSync)(res.configFile)) return res;
|
|
45161
45044
|
res._configFile = res.configFile;
|
|
45162
|
-
const configFileExt = (
|
|
45045
|
+
const configFileExt = pathe_M_eThtNZ_extname(res.configFile) || "";
|
|
45163
45046
|
if (configFileExt in ASYNC_LOADERS) res.config = (await ASYNC_LOADERS[configFileExt]())(await (0,promises_.readFile)(res.configFile, "utf8"));
|
|
45164
45047
|
else res.config = await options.jiti.import(res.configFile, { default: true });
|
|
45165
45048
|
if (typeof res.config === "function") res.config = await res.config(options.context);
|
|
@@ -45170,7 +45053,7 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
45170
45053
|
};
|
|
45171
45054
|
if (Object.keys(envConfig).length > 0) res.config = _merger(envConfig, res.config);
|
|
45172
45055
|
}
|
|
45173
|
-
res.meta = (
|
|
45056
|
+
res.meta = defu_defu(res.sourceOptions.meta, res.config.$meta);
|
|
45174
45057
|
delete res.config.$meta;
|
|
45175
45058
|
if (res.sourceOptions.overrides) res.config = _merger(res.sourceOptions.overrides, res.config);
|
|
45176
45059
|
res.configFile = dist_normalize(res.configFile);
|
|
@@ -45180,20 +45063,18 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
45180
45063
|
function tryResolve(id, options) {
|
|
45181
45064
|
const res = resolveModulePath(id, {
|
|
45182
45065
|
try: true,
|
|
45183
|
-
from: (0,external_node_url_.pathToFileURL)((
|
|
45066
|
+
from: (0,external_node_url_.pathToFileURL)(pathe_M_eThtNZ_join(options.cwd || ".", options.configFile || "/")),
|
|
45184
45067
|
suffixes: ["", "/index"],
|
|
45185
45068
|
extensions: SUPPORTED_EXTENSIONS,
|
|
45186
45069
|
cache: false
|
|
45187
45070
|
});
|
|
45188
|
-
return res ? (
|
|
45071
|
+
return res ? normalize(res) : void 0;
|
|
45189
45072
|
}
|
|
45190
|
-
|
|
45191
45073
|
//#endregion
|
|
45192
45074
|
//#region src/types.ts
|
|
45193
45075
|
function createDefineConfig() {
|
|
45194
45076
|
return (input) => input;
|
|
45195
45077
|
}
|
|
45196
|
-
|
|
45197
45078
|
//#endregion
|
|
45198
45079
|
//#region src/watch.ts
|
|
45199
45080
|
const eventMap = (/* unused pure expression or super */ null && ({
|
|
@@ -45258,9 +45139,9 @@ async function watchConfig(options) {
|
|
|
45258
45139
|
return config[prop];
|
|
45259
45140
|
} });
|
|
45260
45141
|
}
|
|
45261
|
-
|
|
45262
45142
|
//#endregion
|
|
45263
45143
|
|
|
45144
|
+
|
|
45264
45145
|
;// CONCATENATED MODULE: ../core/src/entities/copilot-setup-config.ts
|
|
45265
45146
|
/**
|
|
45266
45147
|
* Canonical install command per package manager type.
|
|
@@ -46146,9 +46027,9 @@ function isPlainObject$1(value) {
|
|
|
46146
46027
|
return true;
|
|
46147
46028
|
}
|
|
46148
46029
|
|
|
46149
|
-
function
|
|
46030
|
+
function core_defu(baseObject, defaults, namespace = ".", merger) {
|
|
46150
46031
|
if (!isPlainObject$1(defaults)) {
|
|
46151
|
-
return
|
|
46032
|
+
return core_defu(baseObject, {}, namespace, merger);
|
|
46152
46033
|
}
|
|
46153
46034
|
const object = Object.assign({}, defaults);
|
|
46154
46035
|
for (const key in baseObject) {
|
|
@@ -46165,7 +46046,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
46165
46046
|
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
46166
46047
|
object[key] = [...value, ...object[key]];
|
|
46167
46048
|
} else if (isPlainObject$1(value) && isPlainObject$1(object[key])) {
|
|
46168
|
-
object[key] =
|
|
46049
|
+
object[key] = core_defu(
|
|
46169
46050
|
value,
|
|
46170
46051
|
object[key],
|
|
46171
46052
|
(namespace ? `${namespace}.` : "") + key.toString(),
|
|
@@ -46177,13 +46058,13 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
46177
46058
|
}
|
|
46178
46059
|
return object;
|
|
46179
46060
|
}
|
|
46180
|
-
function
|
|
46061
|
+
function core_createDefu(merger) {
|
|
46181
46062
|
return (...arguments_) => (
|
|
46182
46063
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
46183
|
-
arguments_.reduce((p, c) =>
|
|
46064
|
+
arguments_.reduce((p, c) => core_defu(p, c, "", merger), {})
|
|
46184
46065
|
);
|
|
46185
46066
|
}
|
|
46186
|
-
const
|
|
46067
|
+
const dist_core_defu = core_createDefu();
|
|
46187
46068
|
|
|
46188
46069
|
function core_isPlainObject(obj) {
|
|
46189
46070
|
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
@@ -46214,7 +46095,7 @@ class Consola {
|
|
|
46214
46095
|
*/
|
|
46215
46096
|
constructor(options = {}) {
|
|
46216
46097
|
const types = options.types || LogTypes;
|
|
46217
|
-
this.options =
|
|
46098
|
+
this.options = dist_core_defu(
|
|
46218
46099
|
{
|
|
46219
46100
|
...options,
|
|
46220
46101
|
defaults: { ...options.defaults },
|
|
@@ -46950,7 +46831,7 @@ function box(text, _opts = {}) {
|
|
|
46950
46831
|
|
|
46951
46832
|
|
|
46952
46833
|
|
|
46953
|
-
const dist_r=Object.create(null),dist_i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dist_r:globalThis),dist_o=new Proxy(dist_r,{get(e,s){return dist_i()[s]??dist_r[s]},has(e,s){const E=dist_i();return s in E||s in dist_r},set(e,s,E){const B=dist_i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=dist_i(true);return delete E[s],true},ownKeys(){const e=dist_i(true);return Object.keys(e)}}),dist_t=typeof process<"u"&&process.env&&"production"||"",dist_f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function dist_b(){if(globalThis.process?.env)for(const e of dist_f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const dist_l=dist_b();dist_l.name;function dist_n(e){return e?e!=="false":false}const
|
|
46834
|
+
const dist_r=Object.create(null),dist_i=e=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?dist_r:globalThis),dist_o=new Proxy(dist_r,{get(e,s){return dist_i()[s]??dist_r[s]},has(e,s){const E=dist_i();return s in E||s in dist_r},set(e,s,E){const B=dist_i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=dist_i(true);return delete E[s],true},ownKeys(){const e=dist_i(true);return Object.keys(e)}}),dist_t=typeof process<"u"&&process.env&&"production"||"",dist_f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function dist_b(){if(globalThis.process?.env)for(const e of dist_f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const dist_l=dist_b();dist_l.name;function dist_n(e){return e?e!=="false":false}const dist_I=globalThis.process?.platform||"",dist_T=dist_n(dist_o.CI)||dist_l.ci!==false,dist_a=dist_n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),dist_g=dist_n(dist_o.DEBUG),dist_R=dist_t==="test"||dist_n(dist_o.TEST);dist_n(dist_o.MINIMAL)||dist_T||dist_R||!dist_a;const dist_A=/^win/i.test(dist_I);!dist_n(dist_o.NO_COLOR)&&(dist_n(dist_o.FORCE_COLOR)||(dist_a||dist_A)&&dist_o.TERM!=="dumb"||dist_T);const dist_C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(dist_C?.split(".")[0])||null;const dist_y=globalThis.process||Object.create(null),dist_={versions:{}};new Proxy(dist_y,{get(e,s){if(s==="env")return dist_o;if(s in e)return e[s];if(s in dist_)return dist_[s]}});const dist_c=globalThis.process?.release?.name==="node",dist_O=!!globalThis.Bun||!!globalThis.process?.versions?.bun,dist_D=!!globalThis.Deno,dist_L=!!globalThis.fastly,dist_S=!!globalThis.Netlify,dist_u=!!globalThis.EdgeRuntime,dist_N=globalThis.navigator?.userAgent==="Cloudflare-Workers",dist_F=[[dist_S,"netlify"],[dist_u,"edge-light"],[dist_N,"workerd"],[dist_L,"fastly"],[dist_D,"deno"],[dist_O,"bun"],[dist_c,"node"]];function dist_G(){const e=dist_F.find(s=>s[0]);if(e)return {name:e[1]}}const dist_P=dist_G();dist_P?.name||"";
|
|
46954
46835
|
|
|
46955
46836
|
function dist_ansiRegex({onlyFirst = false} = {}) {
|
|
46956
46837
|
// Valid string terminator sequences are BEL, ESC\, and 0x9c
|
|
@@ -47574,17 +47455,17 @@ function dist_createConsola(options = {}) {
|
|
|
47574
47455
|
stderr: process.stderr,
|
|
47575
47456
|
prompt: (...args) => __webpack_require__.e(/* import() */ "116").then(__webpack_require__.bind(__webpack_require__, 8711)).then((m) => m.prompt(...args)),
|
|
47576
47457
|
reporters: options.reporters || [
|
|
47577
|
-
options.fancy ?? !(
|
|
47458
|
+
options.fancy ?? !(dist_T || dist_R) ? new FancyReporter() : new BasicReporter()
|
|
47578
47459
|
],
|
|
47579
47460
|
...options
|
|
47580
47461
|
});
|
|
47581
47462
|
return consola2;
|
|
47582
47463
|
}
|
|
47583
47464
|
function _getDefaultLogLevel() {
|
|
47584
|
-
if (
|
|
47465
|
+
if (dist_g) {
|
|
47585
47466
|
return LogLevels.debug;
|
|
47586
47467
|
}
|
|
47587
|
-
if (
|
|
47468
|
+
if (dist_R) {
|
|
47588
47469
|
return LogLevels.warn;
|
|
47589
47470
|
}
|
|
47590
47471
|
return LogLevels.info;
|